@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
package/README.md CHANGED
@@ -1111,7 +1111,7 @@ Package invariants include:
1111
1111
  - [GitHub issues](https://github.com/jmagly/aiwg/issues)
1112
1112
  - [Discussions](https://github.com/jmagly/aiwg/discussions)
1113
1113
  - [Discord](https://discord.gg/BuAusFMxdA)
1114
- - [Telegram](https://t.me/+oJg9w2lE6A5lOGFh)
1114
+ - [AIWG Telegram foyer](https://t.me/joinaiwg) (verify, then get an invite)
1115
1115
  - [AIWG website](https://aiwg.io)
1116
1116
 
1117
1117
  For a security vulnerability, follow
@@ -457,10 +457,10 @@ providers:
457
457
  deploy_target: project
458
458
  aggregated_output: true
459
459
 
460
- windsurf:
460
+ devin:
461
461
  display_name: Devin Desktop
462
462
  aliases:
463
- - devin
463
+ - windsurf
464
464
  - devin-desktop
465
465
  - devin-local
466
466
  - cascade
@@ -476,13 +476,13 @@ providers:
476
476
  source_date: "2026-10-08"
477
477
  live_qualified: false
478
478
  sources:
479
- - "src/providers/provider-definitions.ts#windsurf"
479
+ - "src/providers/provider-seeds-3.ts#devin"
480
480
  - "https://docs.devin.ai/cli/reference/commands.md"
481
481
  - "https://docs.devin.ai/_llms/en/desktop.md"
482
482
  exclusion_gap: "Devin Desktop documents no headless worker command and no worker-serving MCP tool; its MCP settings configure clients, IDE startup is not inference."
483
483
  recheck: "Rechecked 2026-10-08: Desktop unchanged, still OUT. Devin CLI documents `devin -p/--print`, `--model`, `--prompt-file`, `--permission-mode` and `--sandbox` (no JSON output or effort flag found; `devin acp` is ACP, `devin mcp` manages client servers). Devin CLI stays a distinct future-provider surface, not a windsurf alias, until registry support exists."
484
484
  status: stable
485
- # Devin Desktop uses the Windsurf compatibility surface and requires a VS Code host — daemon not supported
485
+ # Devin Desktop uses retained legacy compatibility paths and requires a VS Code host — daemon not supported
486
486
  daemon_tier: unsupported
487
487
  daemon_pty_adapter: false
488
488
  artifact_paths:
@@ -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",
package/bin/aiwg.mjs CHANGED
@@ -268,7 +268,9 @@ maybeWarnUnbuiltDist();
268
268
  // Propagate the strict no-write contract through helpers that may resolve
269
269
  // installation/channel state before the command context exists.
270
270
  function isReadOnlyReport(args) {
271
- return (args[0] === 'memory' && (['audit', 'cost', 'recommend', 'plan', 'verify'].includes(args[1]) || args.includes('--preview') || args.includes('--help') || args.includes('-h')))
271
+ // Scaffolding validates its own writes; startup must leave rejected requests untouched.
272
+ return ['new', '-new', '--new'].includes(args[0])
273
+ || (args[0] === 'memory' && (['audit', 'cost', 'recommend', 'plan', 'verify'].includes(args[1]) || args.includes('--preview') || args.includes('--help') || args.includes('-h')))
272
274
  || (['marketplace', 'market'].includes(args[0]) && args[1] === 'search' && args.includes('--plugins'))
273
275
  || (args[0] === 'help' && args[1] === 'memory')
274
276
  || (args[0] === 'rules' && ['inventory', 'list'].includes(args[1]))
@@ -199,15 +199,15 @@ export class AgentPackager {
199
199
  return lines.join('\n');
200
200
  }
201
201
  /**
202
- * Convert to Windsurf format (plain markdown, no YAML frontmatter)
202
+ * Convert to Devin Desktop format (plain markdown, no YAML frontmatter)
203
203
  *
204
- * Windsurf uses AGENTS.md for directory-scoped instructions.
204
+ * Devin Desktop uses AGENTS.md for directory-scoped instructions.
205
205
  * Individual agent definitions use clean markdown sections.
206
206
  */
207
207
  convertToWindsurfFormat(agent) {
208
208
  const { metadata, content } = agent;
209
209
  const lines = [];
210
- // Windsurf prefers clean markdown without YAML frontmatter
210
+ // Devin Desktop prefers clean markdown without YAML frontmatter
211
211
  lines.push(`### ${metadata.name}`);
212
212
  lines.push('');
213
213
  // Only add description if present
@@ -668,6 +668,10 @@ async function validateIndexConfigOrExit(cwd) {
668
668
  * Stub — full implementation in #416
669
669
  */
670
670
  async function handleQuery(args) {
671
+ if (args.includes('--help') || args.includes('-h')) {
672
+ const { printIndexQueryHelp } = await import('./index-query-help.js');
673
+ return printIndexQueryHelp();
674
+ }
671
675
  const { queryIndex } = await import('./query-engine.js');
672
676
  const cwd = process.cwd();
673
677
  // Parse query text (positional args before any -- flags)
@@ -1169,7 +1173,7 @@ async function handleSync(args) {
1169
1173
  console.log(JSON.stringify({ manifests, failures }, null, 2));
1170
1174
  return;
1171
1175
  }
1172
- console.log(`Fortemi Core sync: ${manifests.length} graph(s) succeeded, ${failures.length} failed`);
1176
+ console.log(`Fortemi Core sync: ${manifests.length} graph(s) succeeded, ${failures.length} failed\nSource bodies: no size cap; 0 items omitted for size.`);
1173
1177
  for (const manifest of manifests) {
1174
1178
  console.log(` ${manifest.graph}: ${manifest.status}, ${manifest.item_count} item(s) → ${manifest.export_path}`);
1175
1179
  warnSyncTextQuality(manifest);
@@ -1187,7 +1191,7 @@ async function handleSync(args) {
1187
1191
  console.log(JSON.stringify(manifest, null, 2));
1188
1192
  return;
1189
1193
  }
1190
- console.log(`Fortemi Core ${manifest.status}: ${manifest.item_count} item(s) → ${manifest.export_path}`);
1194
+ console.log(`Fortemi Core ${manifest.status}: ${manifest.item_count} item(s) → ${manifest.export_path}\nSource bodies: no size cap; 0 items omitted for size.`);
1191
1195
  warnSyncTextQuality(manifest);
1192
1196
  }
1193
1197
  catch (err) {
@@ -199,6 +199,8 @@ export function syncFortemiCoreIndex(cwd, options = {}) {
199
199
  privacy: options.privacy,
200
200
  generatedAt,
201
201
  schemaVersion: "v2",
202
+ // Fulltext must include trailing tokens even beyond the standalone export cap (#4352).
203
+ maxSourceBodyBytes: Number.POSITIVE_INFINITY,
202
204
  });
203
205
  const checksum = writeExport(temporaryPath, exported, maxChars);
204
206
  const recordsWithConcepts = exported.items.filter((item) => (item.skos_concepts?.length ?? 0) > 0).length;
@@ -0,0 +1,27 @@
1
+ // Public query help, including the source-body size policy for each backend.
2
+ export function printIndexQueryHelp() {
3
+ console.log(`Usage: aiwg index query [text] [options]
4
+
5
+ Options:
6
+ --fulltext BM25 search over source bodies
7
+ --backend fortemi-core|local Search backend (default: fortemi-core)
8
+ --graph <name> Graph to search (default: project on Fortemi Core)
9
+ --type <type> Filter by artifact type
10
+ --phase <phase> Filter by phase
11
+ --tags <tag,...> Filter by tags
12
+ --path <glob> Filter by source path
13
+ --updated-after <date> Filter by update date
14
+ --limit <n> Maximum results (default: 20)
15
+ --semantic Semantic query mode
16
+ --hybrid Fortemi Core hybrid query mode
17
+ --json Machine-readable results
18
+ --help, -h Show this help
19
+
20
+ --fulltext source sizes:
21
+ Fortemi Core: searches text bodies captured at sync, without a size cap.
22
+ Binary and unreadable sources remain metadata-only. Re-run 'aiwg index sync'
23
+ to replace older caches that omitted bodies larger than 256 KiB.
24
+ local: reads current source files at query time, without a size cap.
25
+ Neither backend truncates text bodies by size during fulltext search.`);
26
+ }
27
+ //# sourceMappingURL=index-query-help.js.map
@@ -3,25 +3,38 @@ import fs from 'node:fs';
3
3
  import path from 'node:path';
4
4
  import os from 'node:os';
5
5
  import { isCorpusBundleInstalled } from './framework-capabilities.js';
6
+ import { readAiwgConfigCandidate } from '../config/aiwg-config.js';
7
+ import { frameworkRegistryId } from '../config/framework-aliases.js';
6
8
  export async function isArtifactInstalled(cwd, root, entry, kind, bundle) {
7
- if (entry.type === 'skill') {
9
+ if (['skill', 'agent', 'command'].includes(entry.type)) {
8
10
  const normalized = entry.path.replace(/\\/g, '/');
9
11
  const slug = path.posix.basename(normalized) === 'SKILL.md'
10
12
  ? path.posix.basename(path.posix.dirname(normalized)) : path.posix.basename(normalized, '.md');
11
13
  const { listProviderDeploymentLayouts, resolveProviderPathValue } = await import('../providers/provider-definitions.js');
12
14
  for (const provider of listProviderDeploymentLayouts()) {
13
- const roots = [provider.paths.kernelSkills, provider.paths.artifacts.skills, provider.paths.contextDiscovery?.skills,
14
- provider.smithPaths?.skills];
15
+ const roots = entry.type === 'skill'
16
+ ? [provider.paths.kernelSkills, provider.paths.artifacts.skills, provider.paths.contextDiscovery?.skills, provider.smithPaths?.skills]
17
+ : [provider.paths.artifacts[entry.type === 'agent' ? 'agents' : 'commands']];
15
18
  for (const base of [cwd, os.homedir()])
16
19
  for (const relative of roots) {
17
20
  if (!relative)
18
21
  continue;
19
22
  const directory = resolveProviderPathValue(relative, base);
20
- if (fs.existsSync(path.join(directory, slug, 'SKILL.md')))
23
+ const files = entry.type === 'skill' ? [path.join(slug, 'SKILL.md')]
24
+ : [slug + '.md', slug + '.toml', slug + '.yaml', slug + '.prompt.md'];
25
+ if (files.some(file => fs.existsSync(path.join(directory, file))))
21
26
  return true;
22
27
  }
23
28
  }
24
29
  }
30
+ if (bundle && ['skill', 'agent', 'command'].includes(entry.type)) {
31
+ const config = await readAiwgConfigCandidate(cwd);
32
+ const selected = Object.entries(config?.installed ?? {}).find(([id]) => frameworkRegistryId(id) === frameworkRegistryId(bundle))?.[1]
33
+ ?? config?.installed.all;
34
+ const deployments = Object.values(selected?.deployedTo ?? {});
35
+ if (deployments.length && deployments.every(flags => flags.copy === false && flags.kernelOnly !== false))
36
+ return false;
37
+ }
25
38
  return isCorpusBundleInstalled(cwd, root, kind, bundle);
26
39
  }
27
40
  //# sourceMappingURL=query-engine-installation.js.map