@aiwg/cli 2026.11.8 → 2026.11.9

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.
Files changed (157) hide show
  1. package/README.md +1 -1
  2. package/agentic/code/providers/capability-matrix.yaml +4 -4
  3. package/agentic/code/providers/model-capabilities.v1.json +150 -28
  4. package/agentic/code/providers/model-catalog.v1.json +6 -5
  5. package/bin/aiwg.mjs +3 -1
  6. package/dist/src/agents/agent-packager.js +3 -3
  7. package/dist/src/artifacts/cli.js +6 -2
  8. package/dist/src/artifacts/fortemi-core-sync.js +2 -0
  9. package/dist/src/artifacts/index-query-help.js +27 -0
  10. package/dist/src/artifacts/query-engine-installation.js +17 -4
  11. package/dist/src/artifacts/query-engine-name-intent.js +56 -0
  12. package/dist/src/artifacts/query-engine-scoring.js +14 -8
  13. package/dist/src/artifacts/query-engine-show-card.js +3 -3
  14. package/dist/src/cli/agent-spawn.js +4 -4
  15. package/dist/src/cli/handlers/best-practices-audit.js +1 -1
  16. package/dist/src/cli/handlers/bundle-deployment-mode.js +26 -13
  17. package/dist/src/cli/handlers/bundle-reconciliation.js +2 -2
  18. package/dist/src/cli/handlers/init.js +1 -1
  19. package/dist/src/cli/handlers/issues.js +5 -0
  20. package/dist/src/cli/handlers/marketplace-plugin-search.js +6 -5
  21. package/dist/src/cli/handlers/marketplace.js +1 -1
  22. package/dist/src/cli/handlers/models-muse-wrapper.js +32 -0
  23. package/dist/src/cli/handlers/models.js +5 -4
  24. package/dist/src/cli/handlers/refresh-artifact-freshness.js +51 -0
  25. package/dist/src/cli/handlers/refresh-bundles.js +3 -0
  26. package/dist/src/cli/handlers/refresh-managed-deployment.js +6 -4
  27. package/dist/src/cli/handlers/refresh.js +7 -3
  28. package/dist/src/cli/handlers/repo-access.js +15 -2
  29. package/dist/src/cli/handlers/sdlc-accelerate.js +1 -1
  30. package/dist/src/cli/handlers/steward.js +1 -1
  31. package/dist/src/cli/handlers/subcommands-bundles.js +1 -1
  32. package/dist/src/cli/handlers/subcommands-discovery.js +5 -0
  33. package/dist/src/cli/handlers/subcommands-list.js +1 -1
  34. package/dist/src/cli/handlers/subcommands-plugins.js +1 -1
  35. package/dist/src/cli/handlers/subcommands-storage.js +11 -0
  36. package/dist/src/cli/handlers/team.js +1 -1
  37. package/dist/src/cli/handlers/use-additive-bundles.js +9 -2
  38. package/dist/src/cli/handlers/use-bundle-counts.js +1 -1
  39. package/dist/src/cli/handlers/use-copy-selection.js +42 -0
  40. package/dist/src/cli/handlers/use.js +33 -38
  41. package/dist/src/cli/handlers/workspace-context.js +4 -0
  42. package/dist/src/cli/help-generator.js +1 -1
  43. package/dist/src/cli/new-project-options.js +46 -0
  44. package/dist/src/cli/router.js +15 -4
  45. package/dist/src/cli/scope-resolver.js +6 -6
  46. package/dist/src/cli/services/deployment-probe-scope.js +11 -0
  47. package/dist/src/cli/services/deployment-staleness.js +83 -0
  48. package/dist/src/cli/services/deployment-verification.js +20 -11
  49. package/dist/src/config/aiwg-config.js +1 -1
  50. package/dist/src/config/authorization-cli.js +36 -1
  51. package/dist/src/config/config-normalization.js +3 -1
  52. package/dist/src/data/community.yaml +3 -3
  53. package/dist/src/extensions/commands/definitions.js +2 -2
  54. package/dist/src/extensions/manifest.js +27 -1
  55. package/dist/src/extensions/user-hook-diagnostics.js +6 -4
  56. package/dist/src/extensions/verified-hook-command.js +7 -5
  57. package/dist/src/features/catalog.js +2 -2
  58. package/dist/src/issues/cli.js +10 -2
  59. package/dist/src/marketplace/cache.js +31 -0
  60. package/dist/src/marketplace/plugin-search.js +39 -20
  61. package/dist/src/marketplace/public-search.js +122 -0
  62. package/dist/src/marketplace/registry.js +2 -0
  63. package/dist/src/marketplace/search-contract.js +19 -0
  64. package/dist/src/marketplace/sources/public-search.js +81 -0
  65. package/dist/src/mcp/cli.mjs +8 -7
  66. package/dist/src/mcp/credentials.mjs +1 -1
  67. package/dist/src/mcp/registry.js +6 -2
  68. package/dist/src/mcp/tool-filters.mjs +1 -1
  69. package/dist/src/memory/provider-memory-adapter.js +1 -1
  70. package/dist/src/models/catalog-policy.js +2 -1
  71. package/dist/src/models/config-loader.js +2 -1
  72. package/dist/src/models/cursor-worker-version.d.mts +2 -0
  73. package/dist/src/models/cursor-worker-version.mjs +27 -0
  74. package/dist/src/models/model-capabilities.v1.json +150 -28
  75. package/dist/src/models/model-catalog.v1.json +6 -5
  76. package/dist/src/models/model-discovery.js +3 -3
  77. package/dist/src/models/policy-resources.js +1 -1
  78. package/dist/src/models/worker-direct-readiness.js +8 -5
  79. package/dist/src/models/worker-installation.d.mts +3 -2
  80. package/dist/src/models/worker-installation.mjs +12 -10
  81. package/dist/src/models/worker-invocation-policy.js +1 -1
  82. package/dist/src/models/wrapper-deployment.js +1 -1
  83. package/dist/src/models/wrapper-enforcement.js +6 -2
  84. package/dist/src/plugin/skill-command-frontmatter.js +1 -1
  85. package/dist/src/plugin/skill-command-translator.js +1 -1
  86. package/dist/src/policy/repo-access-workspace-spec.js +63 -0
  87. package/dist/src/policy/repo-access.js +22 -0
  88. package/dist/src/providers/capability-matrix.yaml +4 -4
  89. package/dist/src/providers/deployment-ownership.mjs +1 -1
  90. package/dist/src/providers/deployment-preservation.mjs +10 -5
  91. package/dist/src/providers/deployment-removal.js +1 -1
  92. package/dist/src/providers/devin-compat.d.mts +4 -0
  93. package/dist/src/providers/devin-compat.mjs +29 -0
  94. package/dist/src/providers/grok-build-acp.js +39 -9
  95. package/dist/src/providers/grok-build-paths.js +8 -7
  96. package/dist/src/providers/provider-context-contracts.js +4 -3
  97. package/dist/src/providers/provider-definition-schema.js +1 -1
  98. package/dist/src/providers/provider-definitions.js +1 -1
  99. package/dist/src/providers/provider-definitions.mjs +3 -3
  100. package/dist/src/providers/provider-inventory.js +13 -1
  101. package/dist/src/providers/provider-seeds-3.js +10 -9
  102. package/dist/src/providers/transformation-receipt-integration.js +1 -1
  103. package/dist/src/sessions/adapters/windsurf.js +7 -7
  104. package/dist/src/sessions/grok-build-cli-output.js +1 -1
  105. package/dist/src/sessions/grok-build-cli.js +7 -1
  106. package/dist/src/skills/bundle-import-cli.js +61 -0
  107. package/dist/src/skills/bundle-import-plan.js +108 -0
  108. package/dist/src/skills/bundle-import.js +192 -0
  109. package/dist/src/skills/cli.js +5 -0
  110. package/dist/src/skills/deployment-policy.js +1 -1
  111. package/dist/src/skills/importer.js +4 -4
  112. package/dist/src/smiths/agentsmith/demo.js +1 -1
  113. package/dist/src/smiths/agentsmith/examples.js +6 -6
  114. package/dist/src/smiths/commandsmith/generator.js +1 -1
  115. package/dist/src/smiths/context-pipeline/allowlist.js +1 -1
  116. package/dist/src/smiths/context-pipeline/parallelism-section.js +2 -2
  117. package/dist/src/smiths/skillsmith/collision-detector.js +1 -1
  118. package/dist/src/smiths/skillsmith/namespace-adapter.js +1 -1
  119. package/dist/src/smiths/skillsmith/platform-resolver.js +2 -2
  120. package/dist/src/writing/campaign-report.js +4 -3
  121. package/dist/src/writing/contextual-diagnostics.js +27 -2
  122. package/dist/src/writing/current-patterns.js +1 -0
  123. package/dist/src/writing/structural-judgment.catalogue.json +17 -0
  124. package/dist/src/writing/structural-judgment.js +33 -0
  125. package/dist/src/writing/structural-patterns.js +55 -0
  126. package/dist/src/writing/validation-campaign.js +3 -0
  127. package/dist/src/writing/validation-engine.js +7 -4
  128. package/package.json +4 -2
  129. package/schemas/models/model-config-compatibility.v1.schema.json +1 -1
  130. package/tools/agents/deploy-agents.mjs +12 -10
  131. package/tools/agents/deploy-options.mjs +1 -0
  132. package/tools/agents/providers/base-behaviors.mjs +1 -1
  133. package/tools/agents/providers/base-contract.mjs +1 -1
  134. package/tools/agents/providers/base-kernel-skills.mjs +1 -1
  135. package/tools/agents/providers/base-models-platforms.mjs +9 -7
  136. package/tools/agents/providers/base-rule-index.mjs +1 -1
  137. package/tools/agents/providers/codex.mjs +1 -0
  138. package/tools/agents/providers/devin.mjs +3 -0
  139. package/tools/agents/providers/grok-build.mjs +14 -19
  140. package/tools/agents/providers/hook-capabilities.mjs +1 -1
  141. package/tools/agents/providers/model-wrapper.mjs +1 -1
  142. package/tools/agents/providers/rule-delivery-surface.mjs +14 -10
  143. package/tools/agents/providers/rule-deployment-prepare.mjs +8 -8
  144. package/tools/agents/providers/rule-projection.mjs +5 -5
  145. package/tools/agents/providers/rule-startup.mjs +1 -1
  146. package/tools/agents/providers/skill-copy-prune.mjs +5 -1
  147. package/tools/agents/providers/windsurf.mjs +26 -26
  148. package/tools/agents/use-rule-selection.mjs +1 -1
  149. package/tools/cli/workspace-deployment-health.mjs +38 -0
  150. package/tools/cli/workspace-status.mjs +5 -2
  151. package/tools/daemon/provider-watcher.mjs +3 -3
  152. package/tools/plugin/package-plugins.mjs +16 -2
  153. package/tools/ralph-external/lib/deepseek-harness-adapter.mjs +36 -22
  154. package/tools/ralph-external/lib/factory-adapter.mjs +13 -28
  155. package/tools/ralph-external/lib/factory-stream-final.mjs +31 -0
  156. package/tools/skills/deploy-skills-codex.mjs +2 -1
  157. package/vscode-extension/schemas/aiwg.config.v1.json +2 -1
@@ -10,7 +10,7 @@
10
10
  "agent": "native",
11
11
  "skill": "native",
12
12
  "globalChild": "inherited",
13
- "identifierSyntax": "model identifier accepted by Antigravity CLI 1.3.3 --model",
13
+ "identifierSyntax": "effort-suffixed Gemini model identifier accepted by Antigravity CLI 1.5.10 --model",
14
14
  "effortValues": [
15
15
  "low",
16
16
  "medium",
@@ -30,7 +30,7 @@
30
30
  "id": "antigravity",
31
31
  "provider": "antigravity",
32
32
  "adapterVersion": "1",
33
- "supportedVersions": "1.3.3",
33
+ "supportedVersions": ">=1.5.10 <1.6.0",
34
34
  "runtimeDriver": "installed:antigravity",
35
35
  "catalogAdapter": {
36
36
  "kind": "file",
@@ -47,8 +47,6 @@
47
47
  "stream-json",
48
48
  "--model",
49
49
  "${model}",
50
- "--effort",
51
- "${effort}",
52
50
  "--sandbox",
53
51
  "--disable-slash-commands"
54
52
  ],
@@ -83,7 +81,7 @@
83
81
  "invocationProfiles": {
84
82
  "direct-shell": {
85
83
  "transport": "shell",
86
- "supportedVersions": "1.3.3",
84
+ "supportedVersions": ">=1.5.10 <1.6.0",
87
85
  "controls": {
88
86
  "model": {
89
87
  "support": "unqualified",
@@ -92,8 +90,8 @@
92
90
  },
93
91
  "effort": {
94
92
  "support": "unqualified",
95
- "mapping": "[--effort low|medium|high|xhigh|max], always explicit",
96
- "evidence": "H: agy 1.3.3 --help documents --effort (low|medium|high|xhigh|max); D (strings): changelog fixes confirm both --model and --effort were previously silently ignored and now apply; unqualified until live evidence"
93
+ "mapping": "Map low|medium|high|xhigh into gemini-4-{neon,argon,hydrogen}-EFFORT; replace any existing suffix; reject max and unknown model mappings; never emit --effort without evidence of support",
94
+ "evidence": "R: #4348 reports agy 1.5.10 rejects gemini-3-pro with --effort low; agy models lists Gemini 4 neon/argon/hydrogen effort-suffixed ids; unqualified until a successful live run"
97
95
  },
98
96
  "sandbox": {
99
97
  "support": "unqualified",
@@ -117,7 +115,7 @@
117
115
  },
118
116
  "stdin": {
119
117
  "support": "unqualified",
120
- "mapping": "adapter-frame: the installed adapter supplies exact bounded stdin bytes: one NDJSON line {\"event\":\"user\",\"message\":<brief>} on stdin, then EOF; no --print flag and no prompt value are ever emitted (--print requires a value, swallows the next argv token when omitted, and still hard-errors on an explicit empty value)",
118
+ "mapping": "adapter-frame: the installed adapter supplies exact bounded stdin bytes: one NDJSON line {\"event\":\"user\",\"message\":{\"content\":<brief>}} (candidate content field; live confirmation required) on stdin, then EOF; no --print flag and no prompt value are ever emitted (--print requires a value, swallows the next argv token when omitted, and still hard-errors on an explicit empty value)",
121
119
  "evidence": "R: live, fix round 1, conductor probes A/B/C/D/E, 2026-10-11, no login reached. (A) `agy --print --output-format bogus-format </dev/null` -> \"Error: --print took \\\"--output-format\\\" as its prompt...\"; (B) `agy --output-format bogus-format --print </dev/null` -> \"flag needs an argument: -print\"; (C) `--print=` -> \"Error: empty prompt...\"; (D)/(E) `--input-format stream-json --output-format stream-json` with or without `--print` omitted entirely both pass argument validation and reach the same auth stop. D (strings, extraction: ssh noodle 'strings -n 8 ~/.local/bin/agy | grep -n \"stream input\"'): \"stream input message is missing the \\\"event\\\" field\", \"stream input message event %q is not supported yet\", \"stream input \\\"user\\\" message is missing the \\\"message\\\" field\" fix the NDJSON input envelope field names; unqualified until live evidence"
122
120
  },
123
121
  "structuredOutput": {
@@ -160,7 +158,7 @@
160
158
  "GEMINI_API_KEY is documented at https://antigravity.google/docs/install/ (reviewed 2026-10-26): settings.json must also set modelProvider to gemini; the key alone has no effect. Earlier 1.3.3 probes only exercised missing account login. This documentation confirms the credential name, not authenticated execution or qualification of this version-bound worker profile.",
161
159
  "The 1.3.3 --effort enum (low|medium|high|xhigh|max) supersedes the stale 1.1.26-pinned three-value set in tools/providers/antigravity-transport.mjs (a separate, unedited legacy transport used by the MCP/doctor bridge, not this direct-shell profile).",
162
160
  "Flag validation happens BEFORE auth: live probe F, `agy --print=x --input-format bogus --output-format stream-json`, returned \"Error: unknown --input-format \\\"bogus\\\" (want text or stream-json)\" without reaching the auth stop, confirming --input-format is validated against exactly {text, stream-json} independent of login state.",
163
- "The brief reaches agy through adapter-frame: the installed buildWorkerStdinFrame hook supplies exactly one NDJSON user message and EOF. The stdin control stays unqualified pending one authenticated smoke run."
161
+ "#4348: agy 1.5.10 rejects a string message (StreamInputUserMessage). Nested content is a candidate, not confirmed vendor grammar. The brief reaches agy through adapter-frame: the installed buildWorkerStdinFrame hook supplies exactly one NDJSON user message and EOF. The stdin control stays unqualified pending one authenticated smoke run."
164
162
  ],
165
163
  "health": {
166
164
  "version": 1,
@@ -891,7 +889,7 @@
891
889
  "id": "cursor-direct",
892
890
  "provider": "cursor",
893
891
  "adapterVersion": "1",
894
- "supportedVersions": "2026.11.13-eacade1",
892
+ "supportedVersions": ">=2026.11.13",
895
893
  "runtimeDriver": "installed:cursor",
896
894
  "catalogAdapter": {
897
895
  "kind": "file",
@@ -946,7 +944,7 @@
946
944
  "invocationProfiles": {
947
945
  "direct-shell": {
948
946
  "transport": "shell",
949
- "supportedVersions": "2026.11.13-eacade1",
947
+ "supportedVersions": ">=2026.11.13",
950
948
  "controls": {
951
949
  "model": {
952
950
  "support": "unqualified",
@@ -1025,7 +1023,7 @@
1025
1023
  "A type:\"interaction_query\" line means the CLI is waiting for an approval answer this profile cannot supply; treated as fatal regardless of position (before or after a success line), never as a pending success.",
1026
1024
  "The template placeholder ${mode} documents the conditional --mode ask that read-only additionally emits on top of --sandbox enabled; it is omitted entirely for workspace-write, never rendered as an empty token.",
1027
1025
  "Auth may use CURSOR_API_KEY or an existing login (live smoke used login); HOME locates ~/.cursor for persistent settings.",
1028
- "SE4: historical raw banner 2026.10.01-e373342 needs semver normalization to 2026.10.1-e373342; current supported version 2026.11.13-eacade1 needs no normalization."
1026
+ "SE4: date cores normalize decimal components; Cursor build hashes are retained for approval identity but ignored for supported-range comparison. Builds from 2026.11.13 onward are admitted; newer than tested builds warn with the manual smoke and approval refresh path."
1029
1027
  ],
1030
1028
  "health": {
1031
1029
  "version": 1,
@@ -1102,7 +1100,7 @@
1102
1100
  "id": "factory-direct",
1103
1101
  "provider": "factory",
1104
1102
  "adapterVersion": "1",
1105
- "supportedVersions": "1.0.0",
1103
+ "supportedVersions": "1.0.x",
1106
1104
  "runtimeDriver": "installed:factory",
1107
1105
  "catalogAdapter": {
1108
1106
  "kind": "file",
@@ -1152,7 +1150,7 @@
1152
1150
  "invocationProfiles": {
1153
1151
  "direct-shell": {
1154
1152
  "transport": "shell",
1155
- "supportedVersions": "1.0.0",
1153
+ "supportedVersions": "1.0.x",
1156
1154
  "controls": {
1157
1155
  "model": {
1158
1156
  "support": "unqualified",
@@ -1181,8 +1179,8 @@
1181
1179
  },
1182
1180
  "finalOutput": {
1183
1181
  "support": "unqualified",
1184
- "mapping": "unavailable as a file target: no -o/output-file flag is documented for exec (-o/--output-format selects stream shape, not a destination); the final is the last type:\"result\" line of the captured --output-format stream-json stdout stream",
1185
- "evidence": "H: droid-cli 1.0.0 exec --help documents -o/--output-format <text|json|stream-json|stream-jsonrpc|acp> with no file-path argument; D: https://docs.factory.com/droid-exec/overview documents the terminal result object shape; unqualified until live evidence"
1182
+ "mapping": "unavailable as a file target: no -o/output-file flag is documented for exec (-o/--output-format selects stream shape, not a destination); the final is completion.finalText or legacy result from the captured --output-format stream-json stdout stream",
1183
+ "evidence": "H: droid-cli 1.0.0 exec --help documents -o/--output-format <text|json|stream-json|stream-jsonrpc|acp> with no file-path argument; D: https://docs.factory.com/droid-exec/overview documents the legacy result shape; #4362 records droid 1.0.0 completion.finalText on 2026-11-21; unqualified until operator approval"
1186
1184
  },
1187
1185
  "stdin": {
1188
1186
  "support": "unqualified",
@@ -1225,7 +1223,7 @@
1225
1223
  "Unknown model, effort, permission or required step mappings block dispatch.",
1226
1224
  "Native MCP/client, MSP/ACP, gateway and conversation capabilities do not establish worker authority.",
1227
1225
  "--skip-permissions-unsafe is Ralph-loop legacy and never part of the direct profile.",
1228
- "The stream-json/json event vocabulary (assistant/user/tool_call/tool_result/hook/error/result) is doc-sourced (docs.factory.com), not help-verified; it never promotes qualification status beyond unqualified.",
1226
+ "Droid 1.0.0 stream-json ends with completion.finalText (#4362, 2026-11-21); legacy result requires subtype success, is_error false and non-empty result. Any error event fails the stream. This never promotes qualification status beyond unqualified.",
1229
1227
  "There is no -o/output-file flag on exec: the final is read from the captured stdout stream, never a separate file.",
1230
1228
  "Auth is the Factory account (FACTORY_API_KEY or keyring) or a BYOK customModels entry in ~/.factory/settings.json whose apiKey is an env reference; the launch env must carry that variable (OPENROUTER_API_KEY is allowlisted; a BYOK key under another name blocks with Custom model apiKey references the environment variable ... which is not set). HOME locates ~/.factory/settings.json."
1231
1229
  ],
@@ -2129,7 +2127,7 @@
2129
2127
  "id": "deepseek-harness-direct",
2130
2128
  "provider": "deepseek-harness",
2131
2129
  "adapterVersion": "1",
2132
- "supportedVersions": "0.2.0-rc.2",
2130
+ "supportedVersions": "0.2.0-rc.2 || 0.2.2-rc.1",
2133
2131
  "runtimeDriver": "installed:deepseek-harness-direct",
2134
2132
  "catalogAdapter": {
2135
2133
  "kind": "file",
@@ -2151,6 +2149,7 @@
2151
2149
  "cwd": "${workspace}",
2152
2150
  "envAllowlist": [
2153
2151
  "DEEPSEEK_API_KEY",
2152
+ "OPENROUTER_API_KEY",
2154
2153
  "PATH"
2155
2154
  ],
2156
2155
  "versionArgv": [
@@ -2177,11 +2176,11 @@
2177
2176
  "invocationProfiles": {
2178
2177
  "direct-shell": {
2179
2178
  "transport": "shell",
2180
- "supportedVersions": "0.2.0-rc.2",
2179
+ "supportedVersions": "0.2.0-rc.2 || 0.2.2-rc.1",
2181
2180
  "controls": {
2182
2181
  "model": {
2183
2182
  "support": "unqualified",
2184
- "mapping": "--patch YAML overlay would set the agent-default-model plugin entry {provider: \"deepseek-official\", model}; no --model flag exists on `--profile headless --help`. The launcher writes the declared patch exclusively into its private run directory and cleans it up; the override is unverified for enforcement, only for parse-before-model-call.",
2183
+ "mapping": "--patch YAML overlay would set the agent-default-model plugin entry {provider: \"deepseek-official\", model}; no --model flag exists on `--profile headless --help`. The resolved inferenceProvider selects deepseek-official (deepseek alias accepted) or the opt-in direct-shell-openrouter profile; OpenRouter adds llm-pi-ai providers.openrouter.apiKeyEnv: OPENROUTER_API_KEY. The launcher writes the declared patch exclusively into its private run directory and cleans it up; the override is unverified for enforcement, only for parse-before-model-call.",
2185
2184
  "evidence": "R: dsh 0.2.0-rc.2 --profile headless --dump-config-schema/--dump-default-config (agent-default-model config9, required provider+model); no-model probe on noodle 2026-10-11 confirmed a --patch file is read and parsed before any model call (MISSING_CREDENTIAL still names provider route deepseek-official), never that the override is enforced; unqualified until live model-pin evidence"
2186
2185
  },
2187
2186
  "effort": {
@@ -2197,7 +2196,7 @@
2197
2196
  "approval": {
2198
2197
  "support": "unqualified",
2199
2198
  "mapping": "--patch YAML overlay would set the approval plugin entry {policy: never}; ask is refused (no prompt channel in headless). What \"never\" actually permits is unverified: no analogy to another CLI's approval semantics is drawn.",
2200
- "evidence": "R: dsh 0.2.0-rc.2 --dump-default-config approval config.policy (APPROVAL_POLICIES ask|never, dsh-permission-presets/lib/index.js); no-model probe on noodle 2026-10-11 confirmed the stock permission-presets plugin fails to mount for workspace-write+never (\"did not activate\" diagnostic) -- this means that stock preset-switch plugin is not mounted for this combination, not that sandbox-policy/approval themselves enforce anything; unqualified"
2199
+ "evidence": "R: dsh 0.2.0-rc.2 --dump-default-config approval config.policy (APPROVAL_POLICIES ask|never, dsh-permission-presets/lib/index.js); #4313 overlay adds permission.presets.headless-<sandbox> with the exact sandbox/approval pair and permission.defaultPreset; synthetic tests cover both accepted pairs. Plugin activation and enforcement remain separate; unqualified"
2201
2200
  },
2202
2201
  "workdir": {
2203
2202
  "support": "unqualified",
@@ -2248,8 +2247,131 @@
2248
2247
  "buildWorkerArgs emits ${artifact:dsh-patch}; buildWorkerArtifacts declares the pure overlay. The launcher owns exclusive/no-follow private file creation and cleanup. Controls remain unqualified pending an authenticated run.",
2249
2248
  "Documentation/help, schema-dump and synthetic observations are not authenticated live qualification.",
2250
2249
  "Reaching MISSING_CREDENTIAL on a no-model probe proves the --patch file is parsed before any model call; it proves neither sandbox confinement nor approval semantics, since no probe without a real model call can exercise a tool call.",
2251
- "danger-full-access (the only shipped preset pairing approval:never) is a full bypass and is never emitted; this profile would patch sandbox-policy/approval directly instead, with unverified effect.",
2252
- "The stock dsh-permission-presets plugin fails to mount (\"did not activate\" diagnostic) for the workspace-write+never combination; this means only that the stock preset-switch plugin itself is unmounted, not that sandbox-policy/approval enforce anything.",
2250
+ "danger-full-access (the only shipped preset pairing approval:never) is a full bypass and is never emitted; this profile patches sandbox-policy/approval and a matching named permission preset, with unverified confinement.",
2251
+ "The overlay declares headless-read-only or headless-workspace-write and sets permission.defaultPreset explicitly so composed defaults match a named preset; activation does not prove confinement.",
2252
+ "With DSH_HOME unset (KNOWN GAP: getEnvOverrides() has no invocation context to synthesize a per-run isolated home without a shared-code change), the operator's own profiles/plugins load and could alter behavior.",
2253
+ "The agent-default-model/sandbox-policy/approval overlay shape comes only from --dump-config-schema/--dump-default-config, never from a live run; treat it as unverified, not confirmed.",
2254
+ "Unknown model, effort, permission or required step mappings block dispatch.",
2255
+ "Native MCP/client, MSP/ACP, gateway and conversation capabilities do not establish worker authority."
2256
+ ],
2257
+ "health": {
2258
+ "version": 1,
2259
+ "handshake": "process-only",
2260
+ "outputFraming": "jsonl",
2261
+ "signalParser": "provider-deepseek-harness-health-v1",
2262
+ "sessionLogLocator": null,
2263
+ "progressEvidence": [
2264
+ "text",
2265
+ "thinking",
2266
+ "tool_call",
2267
+ "tool_result"
2268
+ ],
2269
+ "stopEvidence": "owned process identity and observed exit; terminal text alone is insufficient",
2270
+ "fixtureRef": "test/fixtures/providers/deepseek-harness/health/manifest-direct.json",
2271
+ "qualifiedAt": null,
2272
+ "statusOperation": null,
2273
+ "cancelOperation": null,
2274
+ "coverage": "degraded",
2275
+ "qualificationTarget": "process-only",
2276
+ "evidenceGrades": [
2277
+ "R"
2278
+ ],
2279
+ "provenance": [
2280
+ {
2281
+ "kind": "repository",
2282
+ "ref": "tools/ralph-external/lib/deepseek-harness-adapter.mjs",
2283
+ "observedAt": "2026-10-11T00:00:00Z",
2284
+ "cliVersion": null
2285
+ }
2286
+ ],
2287
+ "qualificationOwner": "B-OG-44",
2288
+ "qualification": {
2289
+ "status": "unqualified",
2290
+ "scopeDigest": null,
2291
+ "cliVersion": null,
2292
+ "accountScope": null,
2293
+ "profileRef": null,
2294
+ "modelKey": null,
2295
+ "effort": null,
2296
+ "authorizedLive": false
2297
+ }
2298
+ }
2299
+ },
2300
+ "direct-shell-openrouter": {
2301
+ "transport": "shell",
2302
+ "supportedVersions": "0.2.0-rc.2 || 0.2.2-rc.1",
2303
+ "controls": {
2304
+ "model": {
2305
+ "support": "unqualified",
2306
+ "mapping": "--patch YAML overlay would set the agent-default-model plugin entry {provider: \"deepseek-official\", model}; no --model flag exists on `--profile headless --help`. The resolved inferenceProvider selects deepseek-official (deepseek alias accepted) or the opt-in direct-shell-openrouter profile; OpenRouter adds llm-pi-ai providers.openrouter.apiKeyEnv: OPENROUTER_API_KEY. The launcher writes the declared patch exclusively into its private run directory and cleans it up; the override is unverified for enforcement, only for parse-before-model-call.",
2307
+ "evidence": "R: dsh 0.2.0-rc.2 --profile headless --dump-config-schema/--dump-default-config (agent-default-model config9, required provider+model); no-model probe on noodle 2026-10-11 confirmed a --patch file is read and parsed before any model call (MISSING_CREDENTIAL still names provider route deepseek-official), never that the override is enforced; unqualified until live model-pin evidence"
2308
+ },
2309
+ "effort": {
2310
+ "support": "unqualified",
2311
+ "mapping": "Same --patch agent-default-model entry would set reasoningEffort (off|low|high|max); unverified for the same reason as model",
2312
+ "evidence": "R: dsh 0.2.0-rc.2 --profile headless --dump-config-schema (deepseek-official provider reasoningEffort enum off|low|high|max); unqualified until live evidence"
2313
+ },
2314
+ "sandbox": {
2315
+ "support": "unqualified",
2316
+ "mapping": "--patch YAML overlay would set the sandbox-policy plugin entry {mode: read-only|workspace-write}; danger-full-access (full bypass) is never emitted. Reaching MISSING_CREDENTIAL proves the patch parses, not that sandbox-policy.mode actually confines file/exec access -- no probe without a real model call can exercise a tool call to prove confinement.",
2317
+ "evidence": "R: dsh 0.2.0-rc.2 --dump-default-config sandbox-policy config.mode; no-model probe on noodle 2026-10-11 confirmed the run proceeds past plugin mount to MISSING_CREDENTIAL, which is evidence of parsing only; confinement itself is unverified"
2318
+ },
2319
+ "approval": {
2320
+ "support": "unqualified",
2321
+ "mapping": "--patch YAML overlay would set the approval plugin entry {policy: never}; ask is refused (no prompt channel in headless). What \"never\" actually permits is unverified: no analogy to another CLI's approval semantics is drawn.",
2322
+ "evidence": "R: dsh 0.2.0-rc.2 --dump-default-config approval config.policy (APPROVAL_POLICIES ask|never, dsh-permission-presets/lib/index.js); #4313 overlay adds permission.presets.headless-<sandbox> with the exact sandbox/approval pair and permission.defaultPreset; synthetic tests cover both accepted pairs. Plugin activation and enforcement remain separate; unqualified"
2323
+ },
2324
+ "workdir": {
2325
+ "support": "unqualified",
2326
+ "mapping": "Spawn cwd option; `dsh --profile headless --help` has no --cwd flag and the headless runner uses process.cwd()",
2327
+ "evidence": "H: dsh 0.2.0-rc.2 --profile headless --help (.aiwg/working/s1-scratch/cli-help/dsh-0.2.0-rc.2.txt); R: installed @deepseek-ai/dsh-headless package lib/index.js `run()`, read on noodle 2026-10-11; unqualified until live evidence"
2328
+ },
2329
+ "finalOutput": {
2330
+ "support": "unqualified",
2331
+ "mapping": "stdout --json event stream; the last {\"type\":\"final\",\"text\"} line is the answer, required to be the last event with the prior turn_end's reason.kind==\"completed\"",
2332
+ "evidence": "R: installed @deepseek-ai/dsh-headless package lib/json-stream-*.js + lib/index.js, read on noodle 2026-10-11; confirmed live via the no-model probe's exact session/status/final lines; unqualified until live evidence"
2333
+ },
2334
+ "stdin": {
2335
+ "support": "unqualified",
2336
+ "mapping": "brief-text: the \"-\" task argument reads stdin to EOF",
2337
+ "evidence": "H+R: dsh 0.2.0-rc.2 --profile headless --help (\"`-` reads stdin\"); no-model probe on noodle 2026-10-11 confirmed stdin arity (empty stdin -> \"a task is required\"; piped text -> reaches MISSING_CREDENTIAL, never a model call); unqualified until live evidence"
2338
+ },
2339
+ "structuredOutput": {
2340
+ "support": "unqualified",
2341
+ "mapping": "no --output-schema or structured-final flag documented on `--profile headless --help`",
2342
+ "evidence": "H: dsh 0.2.0-rc.2 --profile headless --help (.aiwg/working/s1-scratch/cli-help/dsh-0.2.0-rc.2.txt); unqualified until live evidence"
2343
+ },
2344
+ "stepCap": {
2345
+ "support": "unqualified",
2346
+ "mapping": "no per-invocation step-cap flag documented on `--profile headless --help`",
2347
+ "evidence": "H: dsh 0.2.0-rc.2 --profile headless --help (.aiwg/working/s1-scratch/cli-help/dsh-0.2.0-rc.2.txt); unknown controls block tasks requiring them"
2348
+ },
2349
+ "trust": {
2350
+ "support": "unqualified",
2351
+ "mapping": "no trust-workspace flag documented on `--profile headless --help`",
2352
+ "evidence": "H: dsh 0.2.0-rc.2 --profile headless --help (.aiwg/working/s1-scratch/cli-help/dsh-0.2.0-rc.2.txt); unqualified until live evidence"
2353
+ },
2354
+ "children": {
2355
+ "support": "unqualified",
2356
+ "mapping": "subagent/fork tools (tool-subagent, tool-subagent-fork, subagent-spawn-in-process, subagent-fork-in-process) are bundled by default; a disabling patch is not live-verified",
2357
+ "evidence": "R: installed @deepseek-ai/dsh package default profile config, read on noodle 2026-10-11; needs a verified disabling --patch before this control can be native"
2358
+ },
2359
+ "fallback": {
2360
+ "support": "unqualified",
2361
+ "mapping": "no CLI-level fallback-model control documented; agent-default-model is the only model source",
2362
+ "evidence": "H: dsh 0.2.0-rc.2 --profile headless --help (.aiwg/working/s1-scratch/cli-help/dsh-0.2.0-rc.2.txt); this profile never emits a fallback"
2363
+ }
2364
+ },
2365
+ "envAllowlist": [
2366
+ "OPENROUTER_API_KEY",
2367
+ "PATH"
2368
+ ],
2369
+ "pitfalls": [
2370
+ "buildWorkerArgs emits ${artifact:dsh-patch}; buildWorkerArtifacts declares the pure overlay. The launcher owns exclusive/no-follow private file creation and cleanup. Controls remain unqualified pending an authenticated run.",
2371
+ "Documentation/help, schema-dump and synthetic observations are not authenticated live qualification.",
2372
+ "Reaching MISSING_CREDENTIAL on a no-model probe proves the --patch file is parsed before any model call; it proves neither sandbox confinement nor approval semantics, since no probe without a real model call can exercise a tool call.",
2373
+ "danger-full-access (the only shipped preset pairing approval:never) is a full bypass and is never emitted; this profile patches sandbox-policy/approval and a matching named permission preset, with unverified confinement.",
2374
+ "The overlay declares headless-read-only or headless-workspace-write and sets permission.defaultPreset explicitly so composed defaults match a named preset; activation does not prove confinement.",
2253
2375
  "With DSH_HOME unset (KNOWN GAP: getEnvOverrides() has no invocation context to synthesize a per-run isolated home without a shared-code change), the operator's own profiles/plugins load and could alter behavior.",
2254
2376
  "The agent-default-model/sandbox-policy/approval overlay shape comes only from --dump-config-schema/--dump-default-config, never from a live run; treat it as unverified, not confirmed.",
2255
2377
  "Unknown model, effort, permission or required step mappings block dispatch.",
@@ -2301,7 +2423,7 @@
2301
2423
  }
2302
2424
  }
2303
2425
  },
2304
- "windsurf": {
2426
+ "devin": {
2305
2427
  "sessionEnvAllowlist": [],
2306
2428
  "agent": "unsupported",
2307
2429
  "skill": "unsupported",
@@ -2324,7 +2446,7 @@
2324
2446
  ],
2325
2447
  "qualificationOwner": "B-OG-47",
2326
2448
  "provenance": [
2327
- "src/providers/provider-definitions.ts#windsurf",
2449
+ "src/providers/provider-seeds-3.ts#devin",
2328
2450
  "https://docs.devin.ai/cli/reference/commands.md"
2329
2451
  ],
2330
2452
  "reason": "Desktop/client capability does not establish a headless worker interface."
@@ -2615,7 +2737,7 @@
2615
2737
  "id": "grok-build",
2616
2738
  "provider": "grok-build",
2617
2739
  "adapterVersion": "1",
2618
- "supportedVersions": "1.0.50",
2740
+ "supportedVersions": "1.0.77",
2619
2741
  "runtimeDriver": "installed:grok-build",
2620
2742
  "catalogAdapter": {
2621
2743
  "kind": "file",
@@ -2681,7 +2803,7 @@
2681
2803
  "invocationProfiles": {
2682
2804
  "direct-shell": {
2683
2805
  "transport": "shell",
2684
- "supportedVersions": "1.0.50",
2806
+ "supportedVersions": "1.0.77",
2685
2807
  "controls": {
2686
2808
  "model": {
2687
2809
  "support": "unqualified",
@@ -2757,7 +2879,7 @@
2757
2879
  "No --no-ask-user-equivalent flag is listed in the captured root --help for this version (an internal no-ask-user arg name exists in the compiled binary's own strings but is not printed help text), so it is never emitted; whether an ask_user_question tool call blocks indefinitely under dontAsk in a non-interactive run is unqualified, not invented away.",
2758
2880
  "--always-approve and --permission-mode bypassPermissions are never emitted; a scoped --allow/--deny rule value, or the model/effort value, starting with '-' or containing whitespace/control characters is refused by the driver before argv is built.",
2759
2881
  "Permission-mode and sandbox-profile semantics are quoted directly from the installed binary's own bundled documentation (see docs/providers/grok-build-cli-evidence.md for the full extracts, strings command and binary version/hash); where that documentation does not settle a question (e.g. ask_user_question behavior under dontAsk), the control stays unqualified rather than assumed safe.",
2760
- "1.0.77 captured permissions (2026-11-10): default headless cancels spawn_subagent and workflow because a headless run cannot ask for approval; --allow spawn_subagent did not cover them. --permission-mode auto ran them, but AIWG keeps its existing permission defaults. Evidence: test/fixtures/providers/grok-build/captured-20261110/permissions.json; test/unit/providers/grok-build-headless.test.ts. ACP authMethods, logged-in session/new, end_turn usage, compact notifications and cancelled/MidTurnAbort are replayed in grok-build-acp.test.ts; live ACP dispatch qualification remains deferred. Native -w creates standalone copies under ~/.grok/worktrees/<slug>/<name>, not git worktrees; ownership/recovery list parsing is tested in grok-build-dispatch.test.ts. The combined flags were verified live on 1.0.77 (2026-11-10: no spawn_subagent or workflow call, no subagent records); compatibility with the older pinned 1.0.50 direct profile remains unverified.",
2882
+ "1.0.77 captured permissions (2026-11-10): default headless cancels spawn_subagent and workflow because a headless run cannot ask for approval; --allow spawn_subagent did not cover them. --permission-mode auto ran them, but AIWG keeps its existing permission defaults. Evidence: test/fixtures/providers/grok-build/captured-20261110/permissions.json; test/unit/providers/grok-build-headless.test.ts. ACP authMethods, logged-in session/new, end_turn usage, compact notifications and cancelled/MidTurnAbort are replayed in grok-build-acp.test.ts; live ACP dispatch qualification remains deferred. Native -w creates standalone copies under ~/.grok/worktrees/<slug>/<name>, not git worktrees; ownership/recovery list parsing is tested in grok-build-dispatch.test.ts. The combined flags were verified live on 1.0.77 (2026-11-10: no spawn_subagent or workflow call, no subagent records). The direct profile now pins 1.0.77; historical 1.0.50 help provenance is retained without requalification.",
2761
2883
  "Live qualification is an open S1 blocker: this profile has been exercised only against --help/--version/subcommand --help plus strings-read bundled docs, never a live prompted run. The smoke command in docs/providers/grok-build-direct.md is the first live check and needs an XAI_API_KEY (or cached grok login) from the operator."
2762
2884
  ],
2763
2885
  "health": {
@@ -7,23 +7,24 @@
7
7
  "antigravity": {
8
8
  "roles": {
9
9
  "reasoning": {
10
- "id": "configured/reasoning",
10
+ "id": "gemini-4-neon-high",
11
11
  "status": "unverified",
12
12
  "observed": false
13
13
  },
14
14
  "coding": {
15
- "id": "configured/coding",
15
+ "id": "gemini-4-argon-medium",
16
16
  "status": "unverified",
17
17
  "observed": false
18
18
  },
19
19
  "efficiency": {
20
- "id": "configured/efficiency",
20
+ "id": "gemini-4-hydrogen-low",
21
21
  "status": "unverified",
22
22
  "observed": false
23
23
  }
24
24
  },
25
25
  "sourceUrl": "https://antigravity.google/docs/cli/overview/",
26
- "verifiedAt": "2026-09-04"
26
+ "verifiedAt": "2026-11-19",
27
+ "evidence": "#4348 supplied agy 1.5.10 models output: gemini-4-neon-low|medium|high|xhigh, gemini-4-argon-low|medium|high|xhigh, gemini-4-hydrogen-low|medium|high|xhigh, gemini-pro-orchestrator-neon. Role pins remain unverified; orchestrator effort support is unknown."
27
28
  },
28
29
  "claude": {
29
30
  "roles": {
@@ -286,7 +287,7 @@
286
287
  "sourceUrl": "https://docs.warp.dev/agent-platform/capabilities/agent-profiles-permissions",
287
288
  "verifiedAt": "2026-07-20"
288
289
  },
289
- "windsurf": {
290
+ "devin": {
290
291
  "roles": {
291
292
  "reasoning": {
292
293
  "id": "inherited",
@@ -118,11 +118,11 @@ export const PROVIDER_DISCOVERY_DECISIONS = {
118
118
  reason: 'Warp model choice is profile-managed and no documented CLI command enumerates account-available models.',
119
119
  documentation: 'https://docs.warp.dev/agent-platform/agent/using-agents',
120
120
  },
121
- windsurf: {
122
- provider: 'windsurf',
121
+ devin: {
122
+ provider: 'devin',
123
123
  status: 'unsupported',
124
124
  interface: null,
125
- reason: 'The Windsurf/Devin desktop CLI exposes editor controls but no documented machine-readable model-list command.',
125
+ reason: 'The Devin Desktop CLI exposes editor controls but no documented machine-readable model-list command.',
126
126
  documentation: 'https://docs.windsurf.com/windsurf/getting-started',
127
127
  },
128
128
  };
@@ -23,6 +23,6 @@ export function requireModelResource(filename) {
23
23
  }
24
24
  export const ProviderSchema = z.enum([
25
25
  'antigravity', 'claude', 'codex', 'copilot', 'cursor', 'deepseek-harness', 'factory', 'flue', 'grokbot', 'grok-build', 'hermes',
26
- 'muse', 'opencode', 'openclaw', 'openhuman', 'omp', 'pi', 'warp', 'windsurf',
26
+ 'muse', 'opencode', 'openclaw', 'openhuman', 'omp', 'pi', 'warp', 'devin',
27
27
  ]);
28
28
  //# sourceMappingURL=policy-resources.js.map
@@ -57,6 +57,7 @@
57
57
  * performs no live-qualification recording and requires no evidence files.
58
58
  */
59
59
  import { tmpdir } from 'node:os';
60
+ import { cursorWorkerVersionWarning } from './cursor-worker-version.mjs';
60
61
  import { advisoryStatus, allConfiguredCliIds, checkDispatchEligibility, describeConfigContext, isCliRequired, memberLabels, memberReferences, resolveDirectBinding, SMOKE_NOTE, } from './worker-direct-readiness-policy.js';
61
62
  import { isAbsolute, resolve as resolvePath } from 'node:path';
62
63
  import { boundedVersionProbe, normalizeWorkerVersionBanner, workerVersionProbeDefaults, workerVersionProbeEnvironment, workerVersionRangeMismatch, } from './worker-installation.mjs';
@@ -133,7 +134,7 @@ export async function diagnoseDirectWorkerReadiness(input) {
133
134
  }
134
135
  const pushInstall = (finding) => {
135
136
  report.findings.push({ ...finding, kind: 'install', eligibility: null, eligibilityDetail: null });
136
- if (finding.status === 'error' || finding.status === 'warn')
137
+ if (finding.readiness !== 'ready' && (finding.status === 'error' || finding.status === 'warn'))
137
138
  report.ready = false;
138
139
  };
139
140
  const pushDispatch = (cli, profile, status, code, eligibility, detail, configKey, members, nextAction, diagnostics) => {
@@ -234,7 +235,7 @@ export async function diagnoseDirectWorkerReadiness(input) {
234
235
  const rawBanner = outcome.rawBanner.trim();
235
236
  let installedVersion;
236
237
  try {
237
- installedVersion = normalizeWorkerVersionBanner(rawBanner, adapter.invocation.versionPattern);
238
+ installedVersion = normalizeWorkerVersionBanner(rawBanner, adapter.invocation.versionPattern, adapter.provider);
238
239
  }
239
240
  catch {
240
241
  pushInstall({ cli, profile: profileRef, executable, installedVersion: null,
@@ -246,7 +247,7 @@ export async function diagnoseDirectWorkerReadiness(input) {
246
247
  pushDispatch(cli, profileRef, 'warn', 'WORKER_DIRECT_DISPATCH_BLOCKED', eligibility, detail, configKey, members, 'reinstall-supported-cli', diagnostics);
247
248
  return;
248
249
  }
249
- const mismatch = workerVersionRangeMismatch(installedVersion, [profile.supportedVersions, adapter.supportedVersions]);
250
+ const mismatch = workerVersionRangeMismatch(installedVersion, [profile.supportedVersions, adapter.supportedVersions], adapter.provider);
250
251
  if (mismatch) {
251
252
  pushInstall({ cli, profile: profileRef, executable, installedVersion,
252
253
  status: advisoryStatus('warn', required), code: 'WORKER_DIRECT_VERSION_OUT_OF_RANGE',
@@ -257,9 +258,11 @@ export async function diagnoseDirectWorkerReadiness(input) {
257
258
  pushDispatch(cli, profileRef, 'warn', 'WORKER_DIRECT_DISPATCH_BLOCKED', eligibility, detail, configKey, members, 'upgrade-or-pin-cli', diagnostics);
258
259
  return;
259
260
  }
261
+ const versionWarning = adapter.provider === 'cursor'
262
+ ? cursorWorkerVersionWarning(installedVersion, profile.health?.provenance?.map(row => row.cliVersion) ?? [], cli) : null;
260
263
  pushInstall({ cli, profile: profileRef, executable, installedVersion,
261
- status: 'ok', code: 'WORKER_DIRECT_READY',
262
- message: `CLI '${executable}' version ${installedVersion} matches profile '${profileRef}' for cli '${cli}' (config ${configFile} key ${configKey}). Installation readiness: ready. ${SMOKE_NOTE} See the dispatch finding for whether the resolver would dispatch. (${describeConfigContext(members)})`,
264
+ status: versionWarning ? 'warn' : 'ok', code: 'WORKER_DIRECT_READY',
265
+ message: `CLI '${executable}' version ${installedVersion} matches profile '${profileRef}' for cli '${cli}' (config ${configFile} key ${configKey}). Installation readiness: ready. ${versionWarning ?? ''} ${SMOKE_NOTE} See the dispatch finding for whether the resolver would dispatch. (${describeConfigContext(members)})`,
263
266
  nextAction: 'qualify-installed-cli',
264
267
  configFile, configKey, readiness: 'ready', members });
265
268
  const { eligibility, detail, diagnostics } = checkDispatchEligibility(parallelism, registry, cli, true, resolverSnapshot, refs);
@@ -18,11 +18,11 @@ export function loadRecordedWorkerInstallations(input: {
18
18
  export function hasProvider(name: string): boolean;
19
19
 
20
20
  export function compileWorkerVersionPattern(pattern: string): RegExp;
21
- export function normalizeWorkerVersionBanner(banner: string, pattern?: string): string;
21
+ export function normalizeWorkerVersionBanner(banner: string, pattern?: string, provider?: string): string;
22
22
  export const workerVersionProbeEnvAllowlist: readonly string[];
23
23
  export function workerVersionProbeEnvironment(source?: Record<string, string | undefined>): Record<string, string>;
24
24
  export const workerVersionProbeDefaults: { readonly timeoutMs: number; readonly maxBytes: number };
25
- export function workerVersionRangeMismatch(version: string, ranges: string[]): string | null;
25
+ export function workerVersionRangeMismatch(version: string, ranges: string[], provider?: string): string | null;
26
26
  export function boundedVersionProbe(
27
27
  executable: string,
28
28
  argv: string[],
@@ -31,6 +31,7 @@ export function boundedVersionProbe(
31
31
  timeoutMs: number,
32
32
  maxBytes: number,
33
33
  versionPattern: string | undefined,
34
+ provider?: string,
34
35
  ): Promise<{ rawBanner: string; version: string }>;
35
36
 
36
37
  export interface WorkerRecoveryCapabilities {
@@ -9,6 +9,7 @@ import { pathToFileURL } from 'node:url';
9
9
  import { createHash } from 'node:crypto';
10
10
  import { parse } from 'acorn';
11
11
  import { satisfies, valid, validRange } from 'semver';
12
+ import { workerComparableVersion } from './cursor-worker-version.mjs';
12
13
 
13
14
  // Recovery metadata belongs to the installed driver identity, never its shape.
14
15
  const workerRecoveryCapabilities = new WeakMap();
@@ -138,7 +139,7 @@ export async function qualifyWorkerInstallation(instance, options) {
138
139
  const { evidence } = request;
139
140
  const { rawBanner, version } = await boundedVersionProbe(scope.binary.realpath,
140
141
  request.adapter.invocation.versionArgv, request.environment ?? {}, request.cwd,
141
- request.timeoutMs ?? 10_000, Math.min(request.maxBytes ?? 4096, 4096), request.adapter.invocation.versionPattern);
142
+ request.timeoutMs ?? 10_000, Math.min(request.maxBytes ?? 4096, 4096), request.adapter.invocation.versionPattern, request.adapter.provider);
142
143
  if (version !== request.cliVersion) throw new Error('Installed CLI version changed');
143
144
  if (request.versionProbe) {
144
145
  const pattern = request.adapter.invocation.versionPattern;
@@ -373,7 +374,7 @@ export function compileWorkerVersionPattern(pattern) {
373
374
  return new RegExp(pattern, 'u');
374
375
  }
375
376
 
376
- export function normalizeWorkerVersionBanner(banner, pattern) {
377
+ export function normalizeWorkerVersionBanner(banner, pattern, provider) {
377
378
  if (typeof banner !== 'string' || Buffer.byteLength(banner) > 4096) throw new Error('Worker version banner exceeds bound');
378
379
  if (pattern === undefined) return banner;
379
380
  const match = compileWorkerVersionPattern(pattern).exec(banner);
@@ -383,7 +384,8 @@ export function normalizeWorkerVersionBanner(banner, pattern) {
383
384
  // prerelease and build identifiers remain byte-for-byte unchanged.
384
385
  const version = match[1].replace(/^([0-9]+)\.([0-9]+)\.([0-9]+)/,
385
386
  (_, major, minor, patch) => [major, minor, patch].map(n => String(Number(n))).join('.'));
386
- if (!/^[0-9]+\.[0-9]+\.[0-9]+(?:-|\+|$)/.test(version) || !valid(version)) throw new Error('Worker version capture is not semver');
387
+ if (!/^[0-9]+\.[0-9]+\.[0-9]+(?:-|\+|$)/.test(version)
388
+ || !(provider === 'cursor' ? workerComparableVersion(version, provider) : valid(version))) throw new Error('Worker version capture is not semver');
387
389
  return version;
388
390
  }
389
391
 
@@ -415,15 +417,15 @@ export const workerVersionProbeDefaults = Object.freeze({ timeoutMs: 10_000, max
415
417
  // Shared semver range check for an installed CLI version. Returns the first
416
418
  // unsupported range (or the invalid range declaration), else null. Read-only
417
419
  // surfaces reuse this instead of re-deriving the inspector's range logic.
418
- export function workerVersionRangeMismatch(version, ranges) {
420
+ export function workerVersionRangeMismatch(version, ranges, provider) {
419
421
  for (const range of ranges) {
420
422
  if (typeof range !== 'string' || !validRange(range)) return `Unsupported version range '${range}'`;
421
- if (!satisfies(version, range)) return range;
423
+ if (!satisfies(workerComparableVersion(version, provider), range)) return range;
422
424
  }
423
425
  return null;
424
426
  }
425
427
 
426
- export function boundedVersionProbe(executable, argv, environment, cwd, timeoutMs, maxBytes, versionPattern) {
428
+ export function boundedVersionProbe(executable, argv, environment, cwd, timeoutMs, maxBytes, versionPattern, provider) {
427
429
  if (!Number.isInteger(timeoutMs) || timeoutMs < 1 || timeoutMs > 10_000
428
430
  || !Number.isInteger(maxBytes) || maxBytes < 1 || maxBytes > 5 * 1024 * 1024
429
431
  || !Array.isArray(argv) || argv.some(arg => typeof arg !== 'string' || arg.includes('\0'))) {
@@ -433,7 +435,7 @@ export function boundedVersionProbe(executable, argv, environment, cwd, timeoutM
433
435
  // process forked while the file was being written or a CLI mid-update. It
434
436
  // clears in milliseconds, so retry the spawn within the same overall bound.
435
437
  const deadline = Date.now() + timeoutMs;
436
- const attempt = delayMs => runBoundedVersionProbe(executable, argv, environment, cwd, timeoutMs, maxBytes, versionPattern)
438
+ const attempt = delayMs => runBoundedVersionProbe(executable, argv, environment, cwd, timeoutMs, maxBytes, versionPattern, provider)
437
439
  .catch(error => {
438
440
  if (error?.code !== 'ETXTBSY' || Date.now() + delayMs >= deadline) throw error;
439
441
  return new Promise(resolveDelay => setTimeout(resolveDelay, delayMs)).then(() => attempt(Math.min(delayMs * 2, 200)));
@@ -441,7 +443,7 @@ export function boundedVersionProbe(executable, argv, environment, cwd, timeoutM
441
443
  return attempt(10);
442
444
  }
443
445
 
444
- function runBoundedVersionProbe(executable, argv, environment, cwd, timeoutMs, maxBytes, versionPattern) {
446
+ function runBoundedVersionProbe(executable, argv, environment, cwd, timeoutMs, maxBytes, versionPattern, provider) {
445
447
  return new Promise((resolve, reject) => {
446
448
  const child = spawn(executable, argv, { cwd, env: environment, stdio: 'pipe', detached: true, shell: false });
447
449
  let output = Buffer.alloc(0);
@@ -481,7 +483,7 @@ function runBoundedVersionProbe(executable, argv, environment, cwd, timeoutMs, m
481
483
  else {
482
484
  try {
483
485
  const rawBanner = new TextDecoder('utf-8', { fatal: true }).decode(output);
484
- resolve({ rawBanner, version: normalizeWorkerVersionBanner(rawBanner.trim(), versionPattern) });
486
+ resolve({ rawBanner, version: normalizeWorkerVersionBanner(rawBanner.trim(), versionPattern, provider) });
485
487
  }
486
488
  catch (error) { reject(error); }
487
489
  }
@@ -988,7 +990,7 @@ export async function loadRecordedWorkerInstallations({ registry, cwd, policy, p
988
990
  const { version } = await boundedVersionProbe(scope.binary.realpath,
989
991
  adapter.invocation.versionArgv, workerVersionProbeEnvironment(), cwd,
990
992
  workerVersionProbeDefaults.timeoutMs, workerVersionProbeDefaults.maxBytes,
991
- adapter.invocation.versionPattern);
993
+ adapter.invocation.versionPattern, adapter.provider);
992
994
  if (version !== binding.cliVersion) throw fail();
993
995
  reason = 'scope-digest';
994
996
  if ((await inspectWorkerInstallation(instance, installation)).scopeDigest !== scope.scopeDigest) throw fail();
@@ -200,7 +200,7 @@ export function inspectWorkerInvocationProfile(adapter, selection) {
200
200
  // Shared range predicate (worker-installation.mjs): read-only surfaces
201
201
  // (worker-direct-readiness.ts) reuse the same helper instead of
202
202
  // re-deriving this inspector's range logic.
203
- if (workerVersionRangeMismatch(selection.cliVersion, [adapter.supportedVersions, profile.supportedVersions]) !== null) {
203
+ if (workerVersionRangeMismatch(selection.cliVersion, [adapter.supportedVersions, profile.supportedVersions], adapter.provider) !== null) {
204
204
  throw new Error('Worker CLI version is outside qualified profile');
205
205
  }
206
206
  // The direct CLI baseline trusts the installed driver's bounded renderer.
@@ -107,7 +107,7 @@ async function validateArtifact(file, definition, expectation) {
107
107
  return mismatches;
108
108
  }
109
109
  const fields = artifactFields(file, content)
110
- ?? (expectation.provider === 'windsurf' && content.includes(`### ${wrapper}`) ? { name: wrapper } : null);
110
+ ?? (expectation.provider === 'devin' && content.includes(`### ${wrapper}`) ? { name: wrapper } : null);
111
111
  if (!fields) {
112
112
  addMismatch(mismatches, wrapper, file, 'format', 'wrapper artifact is malformed or has no parseable metadata');
113
113
  return mismatches;