feat: align codex app server 0.136
This commit is contained in:
@@ -37,6 +37,7 @@ if (args[0] === "app-server" && args[1] === "generate-json-schema") {
|
||||
anyOf: [
|
||||
{ properties: { method: { const: "thread/start" } } },
|
||||
{ properties: { method: { const: "thread/inject_items" } } },
|
||||
{ properties: { method: { const: "skills/extraRoots/set" } } },
|
||||
{ properties: { method: { const: "turn/start" } } }
|
||||
]
|
||||
}, null, 2));
|
||||
@@ -44,7 +45,7 @@ if (args[0] === "app-server" && args[1] === "generate-json-schema") {
|
||||
}
|
||||
if (args[0] === "app-server" && args[1] === "generate-ts") {
|
||||
const out = args[args.indexOf("--out") + 1];
|
||||
writeGenerated(out, "ClientRequest.ts", 'export type ClientRequest = { "method": "thread/start" } | { "method": "turn/start" };\\n');
|
||||
writeGenerated(out, "ClientRequest.ts", 'export type ClientRequest = { "method": "thread/start" } | { "method": "skills/extraRoots/set" } | { "method": "turn/start" };\\n');
|
||||
process.exit(0);
|
||||
}
|
||||
console.error("unexpected args " + args.join(" "));
|
||||
@@ -76,7 +77,8 @@ process.exit(2);
|
||||
assert.equal(manifest.supports.wsTransport, true);
|
||||
assert.equal(manifest.supports.unixTransport, true);
|
||||
assert.equal(manifest.supports.threadInjectItems, true);
|
||||
assert.deepEqual(manifest.methods, ["thread/inject_items", "thread/start", "turn/start"]);
|
||||
assert.equal(manifest.supports.skillsExtraRoots, true);
|
||||
assert.deepEqual(manifest.methods, ["skills/extraRoots/set", "thread/inject_items", "thread/start", "turn/start"]);
|
||||
assert.match(
|
||||
await readFile(path.join(outDir, "0.135.0-alpha.1", "app-server-help.txt"), "utf8"),
|
||||
/ws:\/\/IP:PORT/,
|
||||
|
||||
Reference in New Issue
Block a user