feat: expose codex thread action capabilities

This commit is contained in:
AI Bot
2026-06-03 11:14:12 +08:00
parent 0071dec860
commit b0526215c5
12 changed files with 113 additions and 6 deletions

View File

@@ -37,8 +37,18 @@ 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: "thread/archive" } } },
{ properties: { method: { const: "thread/unarchive" } } },
{ properties: { method: { const: "thread/fork" } } },
{ properties: { method: { const: "thread/compact/start" } } },
{ properties: { method: { const: "thread/rollback" } } },
{ properties: { method: { const: "thread/name/set" } } },
{ properties: { method: { const: "thread/metadata/update" } } },
{ properties: { method: { const: "thread/shellCommand" } } },
{ properties: { method: { const: "thread/unsubscribe" } } },
{ properties: { method: { const: "skills/extraRoots/set" } } },
{ properties: { method: { const: "hooks/list" } } },
{ properties: { method: { const: "turn/interrupt" } } },
{ properties: { method: { const: "turn/start" } } }
]
}, null, 2));
@@ -80,11 +90,31 @@ process.exit(2);
assert.equal(manifest.supports.threadInjectItems, true);
assert.equal(manifest.supports.skillsExtraRoots, true);
assert.equal(manifest.supports.hooksList, true);
assert.equal(manifest.supports.threadArchive, true);
assert.equal(manifest.supports.threadUnarchive, true);
assert.equal(manifest.supports.threadFork, true);
assert.equal(manifest.supports.threadCompactStart, true);
assert.equal(manifest.supports.threadRollback, true);
assert.equal(manifest.supports.threadNameSet, true);
assert.equal(manifest.supports.threadMetadataUpdate, true);
assert.equal(manifest.supports.threadShellCommand, true);
assert.equal(manifest.supports.threadUnsubscribe, true);
assert.equal(manifest.supports.turnInterrupt, true);
assert.deepEqual(manifest.methods, [
"hooks/list",
"skills/extraRoots/set",
"thread/archive",
"thread/compact/start",
"thread/fork",
"thread/inject_items",
"thread/metadata/update",
"thread/name/set",
"thread/rollback",
"thread/shellCommand",
"thread/start",
"thread/unarchive",
"thread/unsubscribe",
"turn/interrupt",
"turn/start",
]);
assert.match(