feat: expose codex runtime lifecycle events
This commit is contained in:
@@ -38,15 +38,21 @@ if (args[0] === "app-server" && args[1] === "generate-json-schema") {
|
||||
{ properties: { method: { const: "thread/start" } } },
|
||||
{ properties: { method: { const: "thread/inject_items" } } },
|
||||
{ properties: { method: { const: "thread/archive" } } },
|
||||
{ properties: { method: { const: "thread/archived" } } },
|
||||
{ properties: { method: { const: "thread/unarchive" } } },
|
||||
{ properties: { method: { const: "thread/unarchived" } } },
|
||||
{ properties: { method: { const: "thread/fork" } } },
|
||||
{ properties: { method: { const: "thread/closed" } } },
|
||||
{ properties: { method: { const: "thread/compact/start" } } },
|
||||
{ properties: { method: { const: "thread/rollback" } } },
|
||||
{ properties: { method: { const: "thread/name/set" } } },
|
||||
{ properties: { method: { const: "thread/name/updated" } } },
|
||||
{ properties: { method: { const: "thread/metadata/update" } } },
|
||||
{ properties: { method: { const: "thread/shellCommand" } } },
|
||||
{ properties: { method: { const: "thread/unsubscribe" } } },
|
||||
{ properties: { method: { const: "thread/started" } } },
|
||||
{ properties: { method: { const: "plugin/install" } } },
|
||||
{ properties: { method: { const: "plugin/installed" } } },
|
||||
{ properties: { method: { const: "plugin/uninstall" } } },
|
||||
{ properties: { method: { const: "plugin/read" } } },
|
||||
{ properties: { method: { const: "plugin/skill/read" } } },
|
||||
@@ -99,7 +105,11 @@ if (args[0] === "app-server" && args[1] === "generate-json-schema") {
|
||||
{ properties: { method: { const: "mcpServer/elicitation/request" } } },
|
||||
{ properties: { method: { const: "item/tool/requestUserInput" } } },
|
||||
{ properties: { method: { const: "item/permissions/requestApproval" } } },
|
||||
{ properties: { method: { const: "process/outputDelta" } } },
|
||||
{ properties: { method: { const: "process/exited" } } },
|
||||
{ properties: { method: { const: "rawResponseItem/completed" } } },
|
||||
{ properties: { method: { const: "thread/approveGuardianDeniedAction" } } },
|
||||
{ properties: { method: { const: "skills/changed" } } },
|
||||
{ properties: { method: { const: "skills/extraRoots/set" } } },
|
||||
{ properties: { method: { const: "hooks/list" } } },
|
||||
{ properties: { method: { const: "turn/interrupt" } } },
|
||||
@@ -190,6 +200,11 @@ process.exit(2);
|
||||
assert.equal(manifest.supports.toolRequestUserInput, true);
|
||||
assert.equal(manifest.supports.permissionRequestApproval, true);
|
||||
assert.equal(manifest.supports.guardianDeniedActionApproval, true);
|
||||
assert.equal(manifest.supports.processEvents, true);
|
||||
assert.equal(manifest.supports.rawResponseCompleted, true);
|
||||
assert.equal(manifest.supports.skillsChanged, true);
|
||||
assert.equal(manifest.supports.pluginInstalledNotification, true);
|
||||
assert.equal(manifest.supports.threadLifecycleEvents, true);
|
||||
assert.deepEqual(manifest.methods, [
|
||||
"account/chatgptAuthTokens/refresh",
|
||||
"account/login/cancel",
|
||||
@@ -232,6 +247,7 @@ process.exit(2);
|
||||
"mcpServer/resource/read",
|
||||
"mcpServer/tool/call",
|
||||
"plugin/install",
|
||||
"plugin/installed",
|
||||
"plugin/read",
|
||||
"plugin/share/checkout",
|
||||
"plugin/share/delete",
|
||||
@@ -240,20 +256,29 @@ process.exit(2);
|
||||
"plugin/share/updateTargets",
|
||||
"plugin/skill/read",
|
||||
"plugin/uninstall",
|
||||
"process/exited",
|
||||
"process/outputDelta",
|
||||
"rawResponseItem/completed",
|
||||
"review/start",
|
||||
"skills/changed",
|
||||
"skills/config/write",
|
||||
"skills/extraRoots/set",
|
||||
"thread/approveGuardianDeniedAction",
|
||||
"thread/archive",
|
||||
"thread/archived",
|
||||
"thread/closed",
|
||||
"thread/compact/start",
|
||||
"thread/fork",
|
||||
"thread/inject_items",
|
||||
"thread/metadata/update",
|
||||
"thread/name/set",
|
||||
"thread/name/updated",
|
||||
"thread/rollback",
|
||||
"thread/shellCommand",
|
||||
"thread/start",
|
||||
"thread/started",
|
||||
"thread/unarchive",
|
||||
"thread/unarchived",
|
||||
"thread/unsubscribe",
|
||||
"turn/interrupt",
|
||||
"turn/start",
|
||||
|
||||
Reference in New Issue
Block a user