@jbkjr/relay 0.0.0-stage → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/LICENSES/Apache-2.0.txt +201 -0
- package/LICENSES/README.md +19 -0
- package/LICENSES/codex-NOTICE.txt +6 -0
- package/README.md +393 -2
- package/SECURITY.md +145 -0
- package/adapters/briefs/claude.md +43 -0
- package/adapters/briefs/codex.md +56 -0
- package/adapters/briefs/models.json +33 -0
- package/adapters/build.mjs +8 -0
- package/adapters/claude/.claude-plugin/marketplace.json +13 -0
- package/adapters/claude/relay/.claude-plugin/plugin.json +5 -0
- package/adapters/claude/relay/agents/codex.md +21 -0
- package/adapters/claude/relay/agents/operator.md +21 -0
- package/adapters/claude/relay/skills/ask/SKILL.md +20 -0
- package/adapters/claude/relay/skills/chat/SKILL.md +13 -0
- package/adapters/claude/relay/skills/delegate/SKILL.md +21 -0
- package/adapters/claude/relay/skills/discuss/SKILL.md +19 -0
- package/adapters/claude/relay/skills/review/SKILL.md +21 -0
- package/adapters/claude/relay/skills/tree/SKILL.md +10 -0
- package/adapters/claude/relay/skills/write-for-codex/SKILL.md +78 -0
- package/adapters/codex/.agents/plugins/marketplace.json +20 -0
- package/adapters/codex/AGENTS.snippet.md +5 -0
- package/adapters/codex/relay/.codex-plugin/plugin.json +6 -0
- package/adapters/codex/relay/skills/relay-ask/SKILL.md +20 -0
- package/adapters/codex/relay/skills/relay-chat/SKILL.md +13 -0
- package/adapters/codex/relay/skills/relay-delegate/SKILL.md +21 -0
- package/adapters/codex/relay/skills/relay-discuss/SKILL.md +19 -0
- package/adapters/codex/relay/skills/relay-review/SKILL.md +21 -0
- package/adapters/codex/relay/skills/relay-tree/SKILL.md +10 -0
- package/adapters/codex/relay/skills/relay-write-for-claude/SKILL.md +66 -0
- package/adapters/generate.mjs +124 -0
- package/bin/relay +59 -0
- package/codex-pin.json +12 -0
- package/dist/backends/acp.js +1424 -0
- package/dist/backends/claude.js +890 -0
- package/dist/backends/cli-version.js +112 -0
- package/dist/backends/codex-app.js +1539 -0
- package/dist/backends/codex-daybreak.js +75 -0
- package/dist/backends/codex-env.js +656 -0
- package/dist/backends/codex-network.js +304 -0
- package/dist/backends/codex-pin.js +345 -0
- package/dist/backends/codex-shell-policy.js +182 -0
- package/dist/backends/codex-stage2.js +998 -0
- package/dist/backends/codex-subagents.js +47 -0
- package/dist/backends/codex.js +641 -0
- package/dist/backends/copilot.js +246 -0
- package/dist/backends/env.js +147 -0
- package/dist/backends/gemini.js +607 -0
- package/dist/backends/grok.js +337 -0
- package/dist/backends/index.js +8 -0
- package/dist/backends/native-temp.js +187 -0
- package/dist/backends/never-admission.js +90 -0
- package/dist/backends/run.js +67 -0
- package/dist/backends/stream.js +230 -0
- package/dist/backends/tool-discovery.js +15 -0
- package/dist/backends/types.js +264 -0
- package/dist/build-info.json +5 -0
- package/dist/cli.js +344 -0
- package/dist/confine/bridge.js +113 -0
- package/dist/confine/broker-core.js +76 -0
- package/dist/confine/broker-http.js +650 -0
- package/dist/confine/broker-names.js +9 -0
- package/dist/confine/broker.js +258 -0
- package/dist/confine/canary.js +380 -0
- package/dist/confine/diagnostics.js +122 -0
- package/dist/confine/gemini-tools-main.js +8 -0
- package/dist/confine/gemini-tools.js +181 -0
- package/dist/confine/hardlinks.js +58 -0
- package/dist/confine/harness-config.js +16 -0
- package/dist/confine/index.js +117 -0
- package/dist/confine/leases.js +217 -0
- package/dist/confine/paths.js +6 -0
- package/dist/confine/peer.js +115 -0
- package/dist/confine/port-policy.js +8 -0
- package/dist/confine/ports.js +365 -0
- package/dist/confine/private-root.js +208 -0
- package/dist/confine/probe-stage2.js +501 -0
- package/dist/confine/probe.js +1109 -0
- package/dist/confine/proxy.js +783 -0
- package/dist/confine/sbcheck.js +208 -0
- package/dist/confine/seatbelt-never.js +41 -0
- package/dist/confine/seatbelt-stage2.js +139 -0
- package/dist/confine/seatbelt.js +1129 -0
- package/dist/confine/sockets.js +36 -0
- package/dist/confine/turn-probe.js +19 -0
- package/dist/confine/turn.js +86 -0
- package/dist/core/adoption.js +124 -0
- package/dist/core/api-keys.js +423 -0
- package/dist/core/approvals.js +740 -0
- package/dist/core/build-identity.js +248 -0
- package/dist/core/caller.js +749 -0
- package/dist/core/calls.js +102 -0
- package/dist/core/claude-settings.js +1045 -0
- package/dist/core/config.js +453 -0
- package/dist/core/context.js +186 -0
- package/dist/core/db.js +753 -0
- package/dist/core/dispatch.js +110 -0
- package/dist/core/env-broker.js +505 -0
- package/dist/core/env-policy.js +182 -0
- package/dist/core/escalation-authority.js +76 -0
- package/dist/core/escalation-contract.js +13 -0
- package/dist/core/escalation-person-path.js +131 -0
- package/dist/core/escalation-policy.js +79 -0
- package/dist/core/escalation-runtime.js +135 -0
- package/dist/core/escalation-state.js +42 -0
- package/dist/core/escalations.js +191 -0
- package/dist/core/events.js +235 -0
- package/dist/core/executables.js +147 -0
- package/dist/core/extensions.js +645 -0
- package/dist/core/families.js +204 -0
- package/dist/core/git.js +657 -0
- package/dist/core/identity.js +113 -0
- package/dist/core/liveness.js +68 -0
- package/dist/core/mediated-network-provider.js +81 -0
- package/dist/core/never-checkpoint.js +76 -0
- package/dist/core/never-coverage.js +97 -0
- package/dist/core/never-network.js +49 -0
- package/dist/core/never-policy.js +302 -0
- package/dist/core/never-proxy-policy.js +109 -0
- package/dist/core/never-schema.js +61 -0
- package/dist/core/never-tools.js +56 -0
- package/dist/core/notices.js +48 -0
- package/dist/core/ops.js +959 -0
- package/dist/core/outcome.js +224 -0
- package/dist/core/params.js +32 -0
- package/dist/core/presence.js +174 -0
- package/dist/core/procs.js +546 -0
- package/dist/core/prompts.js +363 -0
- package/dist/core/protected-config.js +238 -0
- package/dist/core/raw-network.js +192 -0
- package/dist/core/redact.js +152 -0
- package/dist/core/refusal.js +33 -0
- package/dist/core/relay-command.js +310 -0
- package/dist/core/reported.js +3 -0
- package/dist/core/restart-overlay.js +651 -0
- package/dist/core/retention.js +1135 -0
- package/dist/core/secrets.js +329 -0
- package/dist/core/session-token.js +175 -0
- package/dist/core/session.js +744 -0
- package/dist/core/shell.js +2 -0
- package/dist/core/shipped-pin.js +47 -0
- package/dist/core/shown.js +42 -0
- package/dist/core/slots.js +67 -0
- package/dist/core/stage2-executors.js +453 -0
- package/dist/core/stage2-switch.js +5 -0
- package/dist/core/steering.js +149 -0
- package/dist/core/storage.js +358 -0
- package/dist/core/toml.js +175 -0
- package/dist/core/views.js +324 -0
- package/dist/core/wait.js +114 -0
- package/dist/core/wake.js +207 -0
- package/dist/core/watch.js +247 -0
- package/dist/core/worktree.js +213 -0
- package/dist/hosts/claude-desktop.js +274 -0
- package/dist/hosts/claude.js +249 -0
- package/dist/hosts/codex.js +345 -0
- package/dist/hosts/desktop-shared.js +20 -0
- package/dist/hosts/index.js +11 -0
- package/dist/hosts/types.js +4 -0
- package/dist/install/basics.js +18 -0
- package/dist/install/claude-init.js +133 -0
- package/dist/install/common.js +655 -0
- package/dist/install/doctor.js +635 -0
- package/dist/install/qualify-codex.js +205 -0
- package/dist/install.js +524 -0
- package/dist/mcp/elicit.js +209 -0
- package/dist/mcp/gateway.js +218 -0
- package/dist/mcp/host.js +253 -0
- package/dist/mcp/server.js +1124 -0
- package/dist/mcp/stdio.js +37 -0
- package/dist/modes/discussion.js +393 -0
- package/dist/modes/review.js +722 -0
- package/dist/native/relay-sbcheck +0 -0
- package/dist/targets/briefs.js +86 -0
- package/dist/targets/claude.js +94 -0
- package/dist/targets/codex.js +66 -0
- package/dist/targets/copilot.js +93 -0
- package/dist/targets/gemini.js +119 -0
- package/dist/targets/grok.js +126 -0
- package/dist/targets/index.js +192 -0
- package/dist/targets/types.js +18 -0
- package/dist/targets/verified.js +35 -0
- package/dist/worker.js +113 -0
- package/docs/UPGRADING.md +1518 -0
- package/docs/pinned-codex.md +333 -0
- package/experiments/stage2-redteam/lib/oracles.mjs +214 -0
- package/experiments/stage2-redteam/lib/report.mjs +35 -0
- package/npm-shrinkwrap.json +1632 -0
- package/package.json +82 -4
- package/scripts/codex-qualify/codex-pin-store.mjs +353 -0
- package/scripts/codex-qualify/codex-qualifier-process.mjs +265 -0
- package/scripts/codex-qualify/codex-qualifier.example.json +5 -0
- package/scripts/codex-qualify/codex-qualifier.mjs +281 -0
- package/scripts/codex-qualify/codex-shipped-pin.mjs +158 -0
- package/scripts/codex-qualify/codex-stage2-pin.mjs +48 -0
- package/scripts/codex-qualify/codex-stage2.mjs +2381 -0
- package/scripts/codex-qualify/install-codex-qualifier.mjs +98 -0
- package/scripts/codex-qualify/main-module.mjs +14 -0
- package/scripts/codex-qualify/relay-codex-qualifier.plist +37 -0
- package/scripts/codex-qualify/scratch-env.mjs +31 -0
- package/scripts/codex-qualify/session.mjs +96 -0
- package/scripts/codex-qualify/stage2-escalation-cases.mjs +125 -0
- package/test/codex-permissions.test.ts +875 -0
- package/test/fixtures/boundary-probes.mjs +17 -0
- package/test/fixtures/denial-stream-host.mjs +7 -0
- package/test/fixtures/families.json +246 -0
- package/test/fixtures/install-snapshots/claude-desktop-foreign.txt +158 -0
- package/test/fixtures/install-snapshots/claude-desktop-fresh.txt +101 -0
- package/test/fixtures/install-snapshots/claude-desktop-installed.txt +161 -0
- package/test/fixtures/install-snapshots/claude-foreign.txt +133 -0
- package/test/fixtures/install-snapshots/claude-fresh.txt +77 -0
- package/test/fixtures/install-snapshots/claude-installed.txt +133 -0
- package/test/fixtures/install-snapshots/codex-foreign.txt +159 -0
- package/test/fixtures/install-snapshots/codex-fresh.txt +107 -0
- package/test/fixtures/install-snapshots/codex-installed.txt +161 -0
- package/test/fixtures/link-parent.mjs +6 -0
- package/test/fixtures/mediated-command.cjs +72 -0
- package/test/fixtures/native-skill-isolation.json +280 -0
- package/test/fixtures/pinned-codex-app-server.mjs +25 -0
- package/test/fixtures/qualified-ext-adapters.mjs +36 -0
- package/test/fixtures/refusals/README.md +52 -0
- package/test/fixtures/refusals/claude-source-result.json +7 -0
- package/test/fixtures/refusals/openai-app-capacity.json +24 -0
- package/test/fixtures/refusals/openai-app-cyberPolicy.json +24 -0
- package/test/fixtures/refusals/openai-gpt-6-astra-max.json +12 -0
- package/test/fixtures/refusals/openai-gpt-6.1-sol-xhigh.json +12 -0
- package/test/fixtures/refusals/openai-review-capacity.json +24 -0
- package/test/fixtures/relay-0.2.0.sql +57 -0
- package/test/fixtures/relay-0.9.1.gen.mjs +212 -0
- package/test/fixtures/relay-0.9.1.sql +340 -0
- package/test/fixtures/slow-boundary-probes.mjs +37 -0
- package/test/fixtures/stable-surfaces/config.json +1122 -0
- package/test/fixtures/stable-surfaces/escalation.json +128 -0
- package/test/fixtures/stable-surfaces/events.json +37 -0
- package/test/fixtures/stable-surfaces/gemini-native-resume.json +4 -0
- package/test/fixtures/stable-surfaces/inbox.jsonl +2 -0
- package/test/fixtures/stable-surfaces/notice.txt +1 -0
- package/test/fixtures/stable-surfaces/refusal-item.json +28 -0
- package/test/fixtures/stable-surfaces/refusal-review.json +23 -0
- package/test/fixtures/stable-surfaces/registry.json +49 -0
- package/test/fixtures/stable-surfaces/tools-desktop.json +575 -0
- package/test/fixtures/stable-surfaces/tools.json +716 -0
- package/test/fixtures/stable-surfaces/usage.txt +46 -0
- package/test/fixtures/stage2-acp-native.mjs +138 -0
- package/test/fixtures/stage2-app-server.mjs +23 -0
- package/test/fixtures/stage2-catalog.json +91 -0
- package/test/fixtures/stage2-hostile-web.mjs +35 -0
- package/test/fixtures/stage2-native-network.mjs +62 -0
- package/test/fixtures/stage2-worker.ts +87 -0
- package/test/fixtures/status-views/expected.json +7825 -0
- package/test/fixtures/status-views/registries.json +1 -0
- package/test/fixtures/steering.json +209 -0
- package/test/helpers.ts +740 -0
- package/test/host-env.ts +7 -0
- package/test/keychain-decoy.ts +197 -0
- package/test/live-scope.ts +44 -0
- package/test/mediated-network.test.ts +192 -0
- package/test/mediated-proxy.test.ts +264 -0
- package/test/native-temp-alias.ts +10 -0
- package/test/never-policy.test.ts +629 -0
- package/test/never-tools.test.ts +136 -0
- package/test/process-home.ts +18 -0
- package/test/proxy.test.ts +531 -0
- package/test/restart-overlay-live.test.ts +85 -0
- package/test/restart-overlay-profile.test.ts +66 -0
- package/test/restart-overlay.test.ts +416 -0
- package/test/stable-surfaces.test.ts +249 -0
- package/test/stage2-escalation-live.test.ts +544 -0
- package/test/stage2-escalation-qualification.test.ts +170 -0
- package/test/stage2-escalation.test.ts +747 -0
- package/test/stage2-executor.test.ts +849 -0
- package/test/stage2-grant.test.ts +603 -0
- package/test/stage2-native-live.test.ts +647 -0
- package/test/stage2-network-decisions.test.ts +70 -0
- package/test/stage2-probe.test.ts +845 -0
- package/test/stage2-standing-live.test.ts +203 -0
- package/test/stubs/broker-host.mjs +59 -0
- package/test/stubs/broker-peer.mjs +20 -0
- package/test/stubs/confined-harness.mjs +91 -0
- package/test/stubs/ext-broken-server.mjs +2 -0
- package/test/stubs/ext-odd-server.mjs +21 -0
- package/test/stubs/ext-server.mjs +31 -0
- package/test/stubs/fake-host-cli.mjs +218 -0
- package/test/stubs/procargs.mjs +30 -0
- package/test/stubs/stub-acp +4 -0
- package/test/stubs/stub-agent.mjs +322 -0
- package/test/stubs/stub-claude +4 -0
- package/test/stubs/stub-codex +4 -0
- package/test/stubs/targets/acp.mjs +307 -0
- package/test/stubs/targets/claude.mjs +149 -0
- package/test/stubs/targets/codex.mjs +479 -0
- package/test/stubs/targets/gemini.mjs +604 -0
- package/test/temp-root.ts +11 -0
- package/test/wp4-adapters.test.ts +353 -0
- package/test/wp4-interlock.test.ts +136 -0
|
@@ -0,0 +1,575 @@
|
|
|
1
|
+
{
|
|
2
|
+
"adopt": {
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"run_id": {
|
|
6
|
+
"type": "string"
|
|
7
|
+
},
|
|
8
|
+
"into_session": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"in_directory": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"item_count": {
|
|
15
|
+
"type": "integer",
|
|
16
|
+
"minimum": 0,
|
|
17
|
+
"maximum": 9007199254740991
|
|
18
|
+
},
|
|
19
|
+
"session_token": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": [
|
|
24
|
+
"run_id",
|
|
25
|
+
"into_session"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"approve": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"request_id": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"decision": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": [
|
|
37
|
+
"allow",
|
|
38
|
+
"deny"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"note": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"scope": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"enum": [
|
|
47
|
+
"once",
|
|
48
|
+
"job"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"user_confirmed": {
|
|
52
|
+
"type": "boolean"
|
|
53
|
+
},
|
|
54
|
+
"session_token": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": [
|
|
59
|
+
"request_id",
|
|
60
|
+
"decision"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"ask": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"properties": {
|
|
66
|
+
"target": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"enum": [
|
|
69
|
+
"claude",
|
|
70
|
+
"codex",
|
|
71
|
+
"copilot",
|
|
72
|
+
"gemini",
|
|
73
|
+
"grok"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"message": {
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
"thread_id": {
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
"context": {
|
|
83
|
+
"type": "array",
|
|
84
|
+
"items": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"allow_delegation": {
|
|
89
|
+
"type": "boolean"
|
|
90
|
+
},
|
|
91
|
+
"model": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
"effort": {
|
|
95
|
+
"type": "string"
|
|
96
|
+
},
|
|
97
|
+
"cwd": {
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
100
|
+
"speed": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"enum": [
|
|
103
|
+
"standard",
|
|
104
|
+
"fast",
|
|
105
|
+
"ultrafast"
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
"grant": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"properties": {
|
|
111
|
+
"network": {
|
|
112
|
+
"type": "boolean"
|
|
113
|
+
},
|
|
114
|
+
"env": {
|
|
115
|
+
"type": "array",
|
|
116
|
+
"items": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"request_id": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"minLength": 1,
|
|
126
|
+
"maxLength": 200
|
|
127
|
+
},
|
|
128
|
+
"extensions": {
|
|
129
|
+
"type": "boolean"
|
|
130
|
+
},
|
|
131
|
+
"session_token": {
|
|
132
|
+
"type": "string"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"required": [
|
|
136
|
+
"message"
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
"brief": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"properties": {
|
|
142
|
+
"target": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"enum": [
|
|
145
|
+
"claude",
|
|
146
|
+
"codex",
|
|
147
|
+
"copilot",
|
|
148
|
+
"gemini",
|
|
149
|
+
"grok"
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"cancel": {
|
|
155
|
+
"type": "object",
|
|
156
|
+
"properties": {
|
|
157
|
+
"id": {
|
|
158
|
+
"type": "string"
|
|
159
|
+
},
|
|
160
|
+
"session_token": {
|
|
161
|
+
"type": "string"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"required": [
|
|
165
|
+
"id"
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"confirm": {
|
|
169
|
+
"type": "object",
|
|
170
|
+
"properties": {
|
|
171
|
+
"request_id": {
|
|
172
|
+
"type": "string"
|
|
173
|
+
},
|
|
174
|
+
"from": {
|
|
175
|
+
"type": "string"
|
|
176
|
+
},
|
|
177
|
+
"wants": {
|
|
178
|
+
"type": "string"
|
|
179
|
+
},
|
|
180
|
+
"kind": {
|
|
181
|
+
"type": "string"
|
|
182
|
+
},
|
|
183
|
+
"effect": {
|
|
184
|
+
"type": "string"
|
|
185
|
+
},
|
|
186
|
+
"in_directory": {
|
|
187
|
+
"type": "string"
|
|
188
|
+
},
|
|
189
|
+
"scope": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"enum": [
|
|
192
|
+
"once",
|
|
193
|
+
"job"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"note": {
|
|
197
|
+
"type": "string"
|
|
198
|
+
},
|
|
199
|
+
"session_token": {
|
|
200
|
+
"type": "string"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"required": [
|
|
204
|
+
"request_id",
|
|
205
|
+
"from",
|
|
206
|
+
"wants",
|
|
207
|
+
"kind",
|
|
208
|
+
"effect",
|
|
209
|
+
"in_directory"
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
"delegate": {
|
|
213
|
+
"type": "object",
|
|
214
|
+
"properties": {
|
|
215
|
+
"target": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"enum": [
|
|
218
|
+
"claude",
|
|
219
|
+
"codex",
|
|
220
|
+
"copilot",
|
|
221
|
+
"gemini",
|
|
222
|
+
"grok"
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
"task": {
|
|
226
|
+
"type": "string"
|
|
227
|
+
},
|
|
228
|
+
"scope": {
|
|
229
|
+
"type": "array",
|
|
230
|
+
"items": {
|
|
231
|
+
"type": "string"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"mode": {
|
|
235
|
+
"type": "string",
|
|
236
|
+
"enum": [
|
|
237
|
+
"read",
|
|
238
|
+
"write"
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
"allow_delegation": {
|
|
242
|
+
"type": "boolean"
|
|
243
|
+
},
|
|
244
|
+
"model": {
|
|
245
|
+
"type": "string"
|
|
246
|
+
},
|
|
247
|
+
"effort": {
|
|
248
|
+
"type": "string"
|
|
249
|
+
},
|
|
250
|
+
"speed": {
|
|
251
|
+
"type": "string",
|
|
252
|
+
"enum": [
|
|
253
|
+
"standard",
|
|
254
|
+
"fast",
|
|
255
|
+
"ultrafast"
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
"background": {
|
|
259
|
+
"type": "boolean"
|
|
260
|
+
},
|
|
261
|
+
"grant": {
|
|
262
|
+
"type": "object",
|
|
263
|
+
"properties": {
|
|
264
|
+
"network": {
|
|
265
|
+
"type": "boolean"
|
|
266
|
+
},
|
|
267
|
+
"env": {
|
|
268
|
+
"type": "array",
|
|
269
|
+
"items": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"write_paths": {
|
|
275
|
+
"type": "array",
|
|
276
|
+
"items": {
|
|
277
|
+
"type": "string"
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
"raw_network": {
|
|
281
|
+
"type": "boolean"
|
|
282
|
+
},
|
|
283
|
+
"local_network": {
|
|
284
|
+
"type": "boolean"
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"cwd": {
|
|
289
|
+
"type": "string"
|
|
290
|
+
},
|
|
291
|
+
"request_id": {
|
|
292
|
+
"type": "string",
|
|
293
|
+
"minLength": 1,
|
|
294
|
+
"maxLength": 200
|
|
295
|
+
},
|
|
296
|
+
"extensions": {
|
|
297
|
+
"type": "boolean"
|
|
298
|
+
},
|
|
299
|
+
"session_token": {
|
|
300
|
+
"type": "string"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"required": [
|
|
304
|
+
"task",
|
|
305
|
+
"mode"
|
|
306
|
+
]
|
|
307
|
+
},
|
|
308
|
+
"discuss": {
|
|
309
|
+
"type": "object",
|
|
310
|
+
"properties": {
|
|
311
|
+
"message": {
|
|
312
|
+
"type": "string"
|
|
313
|
+
},
|
|
314
|
+
"topic": {
|
|
315
|
+
"type": "string"
|
|
316
|
+
},
|
|
317
|
+
"discussion_id": {
|
|
318
|
+
"type": "string"
|
|
319
|
+
},
|
|
320
|
+
"target": {
|
|
321
|
+
"type": "string",
|
|
322
|
+
"enum": [
|
|
323
|
+
"claude",
|
|
324
|
+
"codex",
|
|
325
|
+
"copilot",
|
|
326
|
+
"gemini",
|
|
327
|
+
"grok"
|
|
328
|
+
]
|
|
329
|
+
},
|
|
330
|
+
"with": {
|
|
331
|
+
"type": "string"
|
|
332
|
+
},
|
|
333
|
+
"context": {
|
|
334
|
+
"type": "array",
|
|
335
|
+
"items": {
|
|
336
|
+
"type": "string"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"role": {
|
|
340
|
+
"type": "string"
|
|
341
|
+
},
|
|
342
|
+
"max_turns": {
|
|
343
|
+
"type": "integer",
|
|
344
|
+
"minimum": 2,
|
|
345
|
+
"maximum": 9007199254740991
|
|
346
|
+
},
|
|
347
|
+
"allow_delegation": {
|
|
348
|
+
"type": "boolean"
|
|
349
|
+
},
|
|
350
|
+
"model": {
|
|
351
|
+
"type": "string"
|
|
352
|
+
},
|
|
353
|
+
"effort": {
|
|
354
|
+
"type": "string"
|
|
355
|
+
},
|
|
356
|
+
"cwd": {
|
|
357
|
+
"type": "string"
|
|
358
|
+
},
|
|
359
|
+
"speed": {
|
|
360
|
+
"type": "string",
|
|
361
|
+
"enum": [
|
|
362
|
+
"standard",
|
|
363
|
+
"fast",
|
|
364
|
+
"ultrafast"
|
|
365
|
+
]
|
|
366
|
+
},
|
|
367
|
+
"grant": {
|
|
368
|
+
"type": "object",
|
|
369
|
+
"properties": {
|
|
370
|
+
"network": {
|
|
371
|
+
"type": "boolean"
|
|
372
|
+
},
|
|
373
|
+
"env": {
|
|
374
|
+
"type": "array",
|
|
375
|
+
"items": {
|
|
376
|
+
"type": "string",
|
|
377
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"request_id": {
|
|
383
|
+
"type": "string",
|
|
384
|
+
"minLength": 1,
|
|
385
|
+
"maxLength": 200
|
|
386
|
+
},
|
|
387
|
+
"session_token": {
|
|
388
|
+
"type": "string"
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"required": [
|
|
392
|
+
"message"
|
|
393
|
+
]
|
|
394
|
+
},
|
|
395
|
+
"merge": {
|
|
396
|
+
"type": "object",
|
|
397
|
+
"properties": {
|
|
398
|
+
"job_id": {
|
|
399
|
+
"type": "string"
|
|
400
|
+
},
|
|
401
|
+
"continue": {
|
|
402
|
+
"type": "boolean"
|
|
403
|
+
},
|
|
404
|
+
"include_changes_since_result": {
|
|
405
|
+
"type": "boolean"
|
|
406
|
+
},
|
|
407
|
+
"cwd": {
|
|
408
|
+
"type": "string"
|
|
409
|
+
},
|
|
410
|
+
"session_token": {
|
|
411
|
+
"type": "string"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
"required": [
|
|
415
|
+
"job_id"
|
|
416
|
+
]
|
|
417
|
+
},
|
|
418
|
+
"result": {
|
|
419
|
+
"type": "object",
|
|
420
|
+
"properties": {
|
|
421
|
+
"job_id": {
|
|
422
|
+
"type": "string"
|
|
423
|
+
},
|
|
424
|
+
"session_token": {
|
|
425
|
+
"type": "string"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"required": [
|
|
429
|
+
"job_id"
|
|
430
|
+
]
|
|
431
|
+
},
|
|
432
|
+
"resume": {
|
|
433
|
+
"type": "object",
|
|
434
|
+
"properties": {
|
|
435
|
+
"job_id": {
|
|
436
|
+
"type": "string"
|
|
437
|
+
},
|
|
438
|
+
"message": {
|
|
439
|
+
"type": "string"
|
|
440
|
+
},
|
|
441
|
+
"grant": {
|
|
442
|
+
"type": "object",
|
|
443
|
+
"properties": {
|
|
444
|
+
"network": {
|
|
445
|
+
"type": "boolean"
|
|
446
|
+
},
|
|
447
|
+
"env": {
|
|
448
|
+
"type": "array",
|
|
449
|
+
"items": {
|
|
450
|
+
"type": "string",
|
|
451
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
"write_paths": {
|
|
455
|
+
"type": "array",
|
|
456
|
+
"items": {
|
|
457
|
+
"type": "string"
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
"raw_network": {
|
|
461
|
+
"type": "boolean"
|
|
462
|
+
},
|
|
463
|
+
"local_network": {
|
|
464
|
+
"type": "boolean"
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
"speed": {
|
|
469
|
+
"type": "string",
|
|
470
|
+
"enum": [
|
|
471
|
+
"standard",
|
|
472
|
+
"fast",
|
|
473
|
+
"ultrafast"
|
|
474
|
+
]
|
|
475
|
+
},
|
|
476
|
+
"session_token": {
|
|
477
|
+
"type": "string"
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
"required": [
|
|
481
|
+
"job_id",
|
|
482
|
+
"message"
|
|
483
|
+
]
|
|
484
|
+
},
|
|
485
|
+
"review": {
|
|
486
|
+
"type": "object",
|
|
487
|
+
"properties": {
|
|
488
|
+
"target": {
|
|
489
|
+
"type": "string"
|
|
490
|
+
},
|
|
491
|
+
"plan": {
|
|
492
|
+
"type": "string"
|
|
493
|
+
},
|
|
494
|
+
"focus": {
|
|
495
|
+
"type": "string"
|
|
496
|
+
},
|
|
497
|
+
"reviewer": {
|
|
498
|
+
"type": "string",
|
|
499
|
+
"enum": [
|
|
500
|
+
"claude",
|
|
501
|
+
"codex",
|
|
502
|
+
"copilot",
|
|
503
|
+
"gemini",
|
|
504
|
+
"grok"
|
|
505
|
+
]
|
|
506
|
+
},
|
|
507
|
+
"review_id": {
|
|
508
|
+
"type": "string"
|
|
509
|
+
},
|
|
510
|
+
"own_review": {
|
|
511
|
+
"type": "string"
|
|
512
|
+
},
|
|
513
|
+
"skip_own": {
|
|
514
|
+
"type": "boolean"
|
|
515
|
+
},
|
|
516
|
+
"model": {
|
|
517
|
+
"type": "string"
|
|
518
|
+
},
|
|
519
|
+
"effort": {
|
|
520
|
+
"type": "string"
|
|
521
|
+
},
|
|
522
|
+
"cwd": {
|
|
523
|
+
"type": "string"
|
|
524
|
+
},
|
|
525
|
+
"speed": {
|
|
526
|
+
"type": "string",
|
|
527
|
+
"enum": [
|
|
528
|
+
"standard",
|
|
529
|
+
"fast",
|
|
530
|
+
"ultrafast"
|
|
531
|
+
]
|
|
532
|
+
},
|
|
533
|
+
"request_id": {
|
|
534
|
+
"type": "string",
|
|
535
|
+
"minLength": 1,
|
|
536
|
+
"maxLength": 200
|
|
537
|
+
},
|
|
538
|
+
"session_token": {
|
|
539
|
+
"type": "string"
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"status": {
|
|
544
|
+
"type": "object",
|
|
545
|
+
"properties": {
|
|
546
|
+
"id": {
|
|
547
|
+
"type": "string"
|
|
548
|
+
},
|
|
549
|
+
"wait_s": {
|
|
550
|
+
"type": "number"
|
|
551
|
+
},
|
|
552
|
+
"notice": {
|
|
553
|
+
"type": "object",
|
|
554
|
+
"properties": {
|
|
555
|
+
"event_id": {
|
|
556
|
+
"type": "integer",
|
|
557
|
+
"exclusiveMinimum": 0,
|
|
558
|
+
"maximum": 9007199254740991
|
|
559
|
+
},
|
|
560
|
+
"tag": {
|
|
561
|
+
"type": "string",
|
|
562
|
+
"maxLength": 256
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
"required": [
|
|
566
|
+
"event_id",
|
|
567
|
+
"tag"
|
|
568
|
+
]
|
|
569
|
+
},
|
|
570
|
+
"session_token": {
|
|
571
|
+
"type": "string"
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|