feat: expose codex account config governance

This commit is contained in:
AI Bot
2026-06-03 11:36:44 +08:00
parent ca92133019
commit 21e514a895
12 changed files with 153 additions and 7 deletions

View File

@@ -55,6 +55,16 @@ if (args[0] === "app-server" && args[1] === "generate-json-schema") {
{ properties: { method: { const: "plugin/share/delete" } } },
{ properties: { method: { const: "plugin/share/updateTargets" } } },
{ properties: { method: { const: "plugin/share/list" } } },
{ properties: { method: { const: "account/login/start" } } },
{ properties: { method: { const: "account/login/cancel" } } },
{ properties: { method: { const: "account/login/completed" } } },
{ properties: { method: { const: "account/logout" } } },
{ properties: { method: { const: "account/chatgptAuthTokens/refresh" } } },
{ properties: { method: { const: "account/sendAddCreditsNudgeEmail" } } },
{ properties: { method: { const: "config/value/write" } } },
{ properties: { method: { const: "config/batchWrite" } } },
{ properties: { method: { const: "config/mcpServer/reload" } } },
{ properties: { method: { const: "skills/config/write" } } },
{ properties: { method: { const: "skills/extraRoots/set" } } },
{ properties: { method: { const: "hooks/list" } } },
{ properties: { method: { const: "turn/interrupt" } } },
@@ -114,7 +124,24 @@ process.exit(2);
assert.equal(manifest.supports.pluginRead, true);
assert.equal(manifest.supports.pluginSkillRead, true);
assert.equal(manifest.supports.pluginShare, true);
assert.equal(manifest.supports.accountLogin, true);
assert.equal(manifest.supports.accountLogout, true);
assert.equal(manifest.supports.accountTokenRefresh, true);
assert.equal(manifest.supports.accountAddCreditsNudge, true);
assert.equal(manifest.supports.configValueWrite, true);
assert.equal(manifest.supports.configBatchWrite, true);
assert.equal(manifest.supports.configMcpServerReload, true);
assert.equal(manifest.supports.skillsConfigWrite, true);
assert.deepEqual(manifest.methods, [
"account/chatgptAuthTokens/refresh",
"account/login/cancel",
"account/login/completed",
"account/login/start",
"account/logout",
"account/sendAddCreditsNudgeEmail",
"config/batchWrite",
"config/mcpServer/reload",
"config/value/write",
"hooks/list",
"plugin/install",
"plugin/read",
@@ -125,6 +152,7 @@ process.exit(2);
"plugin/share/updateTargets",
"plugin/skill/read",
"plugin/uninstall",
"skills/config/write",
"skills/extraRoots/set",
"thread/archive",
"thread/compact/start",