@aiwg/cli 2026.11.5 → 2026.11.7

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 (201) hide show
  1. package/agentic/code/providers/model-capabilities.v1.json +9 -9
  2. package/bin/aiwg.mjs +6 -4
  3. package/dist/src/activity-log/cli.js +1 -1
  4. package/dist/src/agents/agent-deployer.js +1 -1
  5. package/dist/src/artifacts/audit/types.js +1 -1
  6. package/dist/src/artifacts/browser-export.js +1 -0
  7. package/dist/src/artifacts/discover-facets.js +1 -1
  8. package/dist/src/artifacts/enrichment/prompt.js +1 -1
  9. package/dist/src/artifacts/enrichment/types.js +1 -1
  10. package/dist/src/artifacts/fortemi-core-query-adapter.js +2 -0
  11. package/dist/src/artifacts/index-builder.js +1 -0
  12. package/dist/src/artifacts/query-engine-discover-output.js +1 -0
  13. package/dist/src/artifacts/query-engine-discover.js +2 -2
  14. package/dist/src/artifacts/query-engine-scoring.js +7 -0
  15. package/dist/src/artifacts/template-output-kind.js +10 -0
  16. package/dist/src/artifacts/types.js +1 -1
  17. package/dist/src/artifacts/views/definition.js +1 -1
  18. package/dist/src/artifacts/views/types.js +1 -1
  19. package/dist/src/catalog/cli.js +1 -1
  20. package/dist/src/catalog/cli.mjs +1 -1
  21. package/dist/src/catalog/loader.js +1 -1
  22. package/dist/src/catalog/loader.mjs +1 -1
  23. package/dist/src/catalog/types.js +1 -1
  24. package/dist/src/cli/cli-extension-loader.js +19 -5
  25. package/dist/src/cli/cli-extension-paths.js +65 -0
  26. package/dist/src/cli/handlers/best-practices-audit.js +1 -1
  27. package/dist/src/cli/handlers/dataset.js +11 -2
  28. package/dist/src/cli/handlers/help.js +3 -4
  29. package/dist/src/cli/handlers/index.js +1 -1
  30. package/dist/src/cli/handlers/marketplace-plugin-search.js +37 -0
  31. package/dist/src/cli/handlers/marketplace.js +3 -1
  32. package/dist/src/cli/handlers/models.js +1 -1
  33. package/dist/src/cli/handlers/ralph-launcher.js +8 -2
  34. package/dist/src/cli/handlers/ralph.js +1 -1
  35. package/dist/src/cli/handlers/runtime-info.js +1 -1
  36. package/dist/src/cli/handlers/scaffolding.js +2 -2
  37. package/dist/src/cli/handlers/script-runner.js +1 -1
  38. package/dist/src/cli/handlers/sdlc-accelerate.js +1 -1
  39. package/dist/src/cli/handlers/subcommands-bundles.js +1 -1
  40. package/dist/src/cli/handlers/subcommands-list-format.js +19 -1
  41. package/dist/src/cli/handlers/types.js +1 -1
  42. package/dist/src/cli/handlers/update.js +26 -12
  43. package/dist/src/cli/handlers/use.js +6 -5
  44. package/dist/src/cli/handlers/utilities.js +1 -1
  45. package/dist/src/cli/handlers/version.js +1 -1
  46. package/dist/src/cli/handlers/workspace.js +1 -1
  47. package/dist/src/cli/handlers/writing.js +7 -1
  48. package/dist/src/cli/help-generator.js +9 -11
  49. package/dist/src/cli/hooks/builtin/activity-log-hook.js +1 -1
  50. package/dist/src/cli/router.js +1 -1
  51. package/dist/src/cli/workflow-orchestrator.js +1 -1
  52. package/dist/src/config/worker-context.js +37 -7
  53. package/dist/src/config/worker-parallelism.js +11 -0
  54. package/dist/src/contributors/detect.js +1 -1
  55. package/dist/src/contributors/discover.js +1 -1
  56. package/dist/src/contributors/heuristic.js +1 -1
  57. package/dist/src/contributors/index.js +1 -1
  58. package/dist/src/contributors/types.js +1 -1
  59. package/dist/src/contributors/validation.js +1 -1
  60. package/dist/src/dataset/backend-selection.d.ts +3 -0
  61. package/dist/src/dataset/backend-selection.js +11 -0
  62. package/dist/src/dataset/contract-range.d.ts +7 -0
  63. package/dist/src/dataset/contract-range.js +55 -0
  64. package/dist/src/dataset/fortemi-execution-bridge.d.ts +2 -0
  65. package/dist/src/dataset/fortemi-execution-bridge.js +12 -1
  66. package/dist/src/dataset/index.d.ts +2 -0
  67. package/dist/src/dataset/index.js +2 -0
  68. package/dist/src/dataset/orchestration-service.d.ts +1 -1
  69. package/dist/src/dataset/orchestration-service.js +7 -8
  70. package/dist/src/dataset/orchestration-types.d.ts +2 -0
  71. package/dist/src/dataset/service-binding-checkpoints.d.ts +10 -0
  72. package/dist/src/dataset/service-binding-checkpoints.js +26 -0
  73. package/dist/src/dataset/service-binding-contract.d.ts +46 -0
  74. package/dist/src/dataset/service-binding-contract.js +25 -0
  75. package/dist/src/dataset/service-binding-registry.d.ts +12 -0
  76. package/dist/src/dataset/service-binding-registry.js +118 -0
  77. package/dist/src/effects/worker-delivery.js +83 -0
  78. package/dist/src/extensions/capability-index.js +1 -1
  79. package/dist/src/extensions/commands/definitions.js +2 -2
  80. package/dist/src/extensions/deployment-registration.js +1 -1
  81. package/dist/src/extensions/index.js +1 -1
  82. package/dist/src/extensions/loader.js +1 -1
  83. package/dist/src/extensions/manifest.js +27 -9
  84. package/dist/src/extensions/project-local-activity.js +1 -1
  85. package/dist/src/extensions/project-local-discovery.js +2 -2
  86. package/dist/src/extensions/project-local-doctor.js +9 -4
  87. package/dist/src/extensions/project-local-promote.js +3 -3
  88. package/dist/src/extensions/project-local-remove.js +3 -3
  89. package/dist/src/extensions/project-local-scaffold.js +1 -1
  90. package/dist/src/extensions/project-quickref-discovery.js +11 -0
  91. package/dist/src/extensions/project-quickref.js +4 -7
  92. package/dist/src/extensions/registry.js +1 -1
  93. package/dist/src/extensions/shadow-resolver.js +1 -1
  94. package/dist/src/extensions/types.js +1 -1
  95. package/dist/src/extensions/upstream-registry.js +1 -1
  96. package/dist/src/extensions/validation.js +1 -1
  97. package/dist/src/intake/git-history-analyzer.js +1 -1
  98. package/dist/src/kb/cli.js +1 -1
  99. package/dist/src/marketplace/plugin-directory.js +36 -0
  100. package/dist/src/marketplace/plugin-search.js +180 -0
  101. package/dist/src/mcp/cli.mjs +2 -2
  102. package/dist/src/mcp/helpers.mjs +1 -1
  103. package/dist/src/mcp/http-tools.mjs +8 -6
  104. package/dist/src/mcp/http-transport.mjs +3 -1
  105. package/dist/src/mcp/server.mjs +1 -1
  106. package/dist/src/mcp/tools/command-run.mjs +1 -1
  107. package/dist/src/mcp/tools/discovery.mjs +1 -1
  108. package/dist/src/mcp/tools/subsystems.mjs +1 -1
  109. package/dist/src/mcp/tools/worker-invoke.mjs +71 -23
  110. package/dist/src/mcp/tools/worker-launch-ledger.mjs +33 -0
  111. package/dist/src/mcp/tools/worker-local-only-preflight.mjs +79 -0
  112. package/dist/src/mcp/tools/worker-recorded-launch.mjs +26 -0
  113. package/dist/src/mcp/tools/worker-stdin-runtime.mjs +33 -6
  114. package/dist/src/mcp/tools/worker-verify-deliver-schema.mjs +49 -0
  115. package/dist/src/mcp/tools/worker-verify-deliver.mjs +25 -0
  116. package/dist/src/models/catalog-policy.js +2 -2
  117. package/dist/src/models/conductor-data-policy.mjs +83 -14
  118. package/dist/src/models/config-loader.js +2 -2
  119. package/dist/src/models/index.js +2 -2
  120. package/dist/src/models/local-endpoint-models.js +155 -0
  121. package/dist/src/models/model-capabilities.v1.json +9 -9
  122. package/dist/src/models/model-discovery.js +9 -5
  123. package/dist/src/models/opencode-worker-model.mjs +16 -0
  124. package/dist/src/models/resolver.js +2 -2
  125. package/dist/src/models/worker-installation.mjs +5 -3
  126. package/dist/src/models/worker-plan.js +1 -1
  127. package/dist/src/plugin/plugin-installer.js +2 -2
  128. package/dist/src/plugin/registry-validator.js +2 -2
  129. package/dist/src/plugin/skill-command-translator.js +1 -1
  130. package/dist/src/providers/deployment-input-session.d.mts +2 -0
  131. package/dist/src/providers/deployment-input-session.mjs +38 -0
  132. package/dist/src/rlm/cache/hash.js +1 -1
  133. package/dist/src/rlm/cache/store.js +1 -1
  134. package/dist/src/rlm/cache/types.js +1 -1
  135. package/dist/src/serve/worker-invocation-preparation.js +54 -22
  136. package/dist/src/serve/worker-invocation.js +25 -8
  137. package/dist/src/serve/worker-shell-prompt.d.mts +6 -0
  138. package/dist/src/serve/worker-shell-prompt.mjs +78 -0
  139. package/dist/src/skills/run.js +0 -11
  140. package/dist/src/smiths/agentsmith/generator.js +1 -1
  141. package/dist/src/smiths/context-pipeline/index.js +1 -1
  142. package/dist/src/smiths/context-pipeline/provider-policy.js +1 -1
  143. package/dist/src/smiths/context-pipeline/types.js +1 -1
  144. package/dist/src/smiths/mcpsmith/analyzers/cli-analyzer.js +2 -2
  145. package/dist/src/smiths/mcpsmith/generator.js +2 -2
  146. package/dist/src/smiths/mcpsmith/index.js +2 -2
  147. package/dist/src/smiths/mcpsmith/types.js +2 -2
  148. package/dist/src/smiths/skillsmith/collision-detector.js +1 -1
  149. package/dist/src/smiths/skillsmith/namespace-adapter.js +1 -1
  150. package/dist/src/smiths/toolsmith/runtime-discovery.mjs +2 -2
  151. package/dist/src/smiths/toolsmith/types.js +2 -2
  152. package/dist/src/storage/backends/fortemi.js +1 -1
  153. package/dist/src/storage/backends/fs.js +1 -1
  154. package/dist/src/storage/backends/logseq.js +1 -1
  155. package/dist/src/storage/backends/obsidian.js +1 -1
  156. package/dist/src/storage/cli.js +2 -2
  157. package/dist/src/storage/config.js +1 -1
  158. package/dist/src/storage/index.js +1 -1
  159. package/dist/src/storage/subsystem-cli.js +1 -1
  160. package/dist/src/storage/types.js +1 -1
  161. package/dist/src/testing/generators/test-case-generator.js +1 -1
  162. package/dist/src/writing/campaign-patterns.js +96 -0
  163. package/dist/src/writing/campaign-report.js +41 -0
  164. package/dist/src/writing/contextual-diagnostics.js +29 -5
  165. package/dist/src/writing/current-patterns.catalogue.json +87 -0
  166. package/dist/src/writing/current-patterns.js +99 -0
  167. package/dist/src/writing/prose-mask.js +80 -0
  168. package/dist/src/writing/structural-patterns.js +109 -0
  169. package/dist/src/writing/validation-campaign.js +19 -0
  170. package/dist/src/writing/validation-engine.js +18 -11
  171. package/dist/src/writing/validation-rules.js +4 -3
  172. package/package.json +11 -1
  173. package/schemas/dataset/service-binding.v1.schema.json +70 -0
  174. package/schemas/models/model-catalog.v1.schema.json +6 -3
  175. package/tools/agents/providers/base-models-platforms.mjs +87 -48
  176. package/tools/agents/providers/conductor-data-guard.mjs +1 -1
  177. package/tools/agents/providers/rule-deployment-corpus-inputs.mjs +19 -0
  178. package/tools/agents/providers/rule-deployment-input-session.mjs +40 -0
  179. package/tools/agents/providers/rule-deployment-prepare.mjs +15 -6
  180. package/tools/plugin/package-plugins.mjs +2 -0
  181. package/tools/ralph-external/lib/mcp-worker-launch.mjs +67 -0
  182. package/tools/ralph-external/lib/opencode-adapter.mjs +9 -7
  183. package/tools/ralph-external/lib/trusted-verification.mjs +1021 -0
  184. package/tools/ralph-external/lib/typed-stop-delivery.mjs +55 -0
  185. package/tools/ralph-external/lib/verification-isolation.mjs +509 -0
  186. package/tools/ralph-external/lib/worker-context.mjs +3 -3
  187. package/tools/ralph-external/lib/worker-delivery-guards.mjs +141 -0
  188. package/tools/ralph-external/lib/worker-delivery-record.mjs +15 -0
  189. package/tools/ralph-external/lib/worker-final.mjs +4 -1
  190. package/tools/ralph-external/lib/worker-isolation-status.mjs +3 -0
  191. package/tools/ralph-external/lib/worker-launch-cli.mjs +8 -0
  192. package/tools/ralph-external/lib/worker-local-only-paths.mjs +45 -0
  193. package/tools/ralph-external/lib/worker-prompt.mjs +4 -1
  194. package/tools/ralph-external/lib/worker-retry-evidence.mjs +2 -1
  195. package/tools/ralph-external/lib/worker-run-directory-refusal.mjs +2 -1
  196. package/tools/ralph-external/lib/worker-run-directory.mjs +45 -0
  197. package/tools/ralph-external/lib/worker-unit-cleanup.mjs +10 -2
  198. package/tools/ralph-external/lib/worker-verification-cli.mjs +164 -0
  199. package/tools/ralph-external/lib/worktree-preparation.mjs +417 -0
  200. package/tools/ralph-external/session-launcher.mjs +8 -15
  201. package/vscode-extension/schemas/aiwg.config.v1.json +27 -0
@@ -1312,7 +1312,7 @@
1312
1312
  "id": "opencode-direct",
1313
1313
  "provider": "opencode",
1314
1314
  "adapterVersion": "1",
1315
- "supportedVersions": "2.0.26",
1315
+ "supportedVersions": ">=1.18.0 <2.0.0 || >=2.0.26 <3.0.0",
1316
1316
  "runtimeDriver": "installed:opencode",
1317
1317
  "catalogAdapter": {
1318
1318
  "kind": "file",
@@ -1359,27 +1359,27 @@
1359
1359
  "invocationProfiles": {
1360
1360
  "direct-shell": {
1361
1361
  "transport": "shell",
1362
- "supportedVersions": "2.0.26",
1362
+ "supportedVersions": ">=1.18.0 <2.0.0 || >=2.0.26 <3.0.0",
1363
1363
  "controls": {
1364
1364
  "model": {
1365
1365
  "support": "unqualified",
1366
- "mapping": "-m/--model (opencode run --help: '--model, -m string Model to use in the format provider/model#variant')",
1367
- "evidence": "H: opencode 2.0.26 `opencode run --help` (captured 2026-10-10, .aiwg/working/s1-scratch/cli-help/opencode-2.0.26.txt)"
1366
+ "mapping": "1.x: -m/--model provider/model with separate --variant <effort>; 2.x: -m/--model (opencode run --help: '--model, -m string Model to use in the format provider/model#variant')",
1367
+ "evidence": "H: opencode 2.0.26 `opencode run --help` (captured 2026-10-10, .aiwg/working/s1-scratch/cli-help/opencode-2.0.26.txt); H: opencode 1.19.0 `opencode run --help` (titan, 2026-11-15): -m, --model model to use in the format of provider/model; --variant model variant (provider-specific reasoning effort, e.g., high, max, minimal)"
1368
1368
  },
1369
1369
  "effort": {
1370
1370
  "support": "unqualified",
1371
- "mapping": "explicit effort maps to a #<variant> suffix on --model (provider/model#variant); binary disassembly of the installed CLI (the variant-builder, minified as qU(model, manual)) shows variant ids are drawn directly from each model's own capabilities.supports.reasoning_effort list (e.g. low/medium/high), or fixed ids \"max\"/\"high\" for extended-thinking models exposing max_thinking_budget instead; the valid id set is model-specific and not enumerated here, so this adapter appends a syntactically valid id and the real CLI refuses one a given model does not expose",
1372
- "evidence": "R: conductor binary disassembly of the installed opencode 2.0.26 CLI (variant-builder function, host 'noodle', 2026-10-09), confirming H: opencode 2.0.26 `opencode run --help` ('--model, -m string Model to use in the format provider/model#variant')"
1371
+ "mapping": "1.x explicit effort maps to --variant <effort>; 2.x explicit effort maps to a #<variant> suffix on --model (provider/model#variant); binary disassembly of the installed CLI (the variant-builder, minified as qU(model, manual)) shows variant ids are drawn directly from each model's own capabilities.supports.reasoning_effort list (e.g. low/medium/high), or fixed ids \"max\"/\"high\" for extended-thinking models exposing max_thinking_budget instead; the valid id set is model-specific and not enumerated here, so this adapter appends a syntactically valid id and the real CLI refuses one a given model does not expose",
1372
+ "evidence": "R: conductor binary disassembly of the installed opencode 2.0.26 CLI (variant-builder function, host 'noodle', 2026-10-09), confirming H: opencode 2.0.26 `opencode run --help` ('--model, -m string Model to use in the format provider/model#variant'); H: opencode 1.19.0 `opencode run --help` (titan, 2026-11-15): --variant model variant (provider-specific reasoning effort, e.g., high, max, minimal)"
1373
1373
  },
1374
1374
  "sandbox": {
1375
1375
  "support": "unqualified",
1376
1376
  "mapping": "unavailable: no scoped sandbox flag on 'run'; the only permission-adjacent flag is --auto, a blanket approval bypass this profile never emits",
1377
- "evidence": "H: opencode 2.0.26 `opencode run --help` ('--auto Auto-approve permissions that are not explicitly denied')"
1377
+ "evidence": "H: opencode 2.0.26 `opencode run --help` ('--auto Auto-approve permissions that are not explicitly denied'); H: opencode 1.19.0 `opencode run --help` (titan, 2026-11-15): --auto auto-approve permissions that are not explicitly denied"
1378
1378
  },
1379
1379
  "approval": {
1380
1380
  "support": "unqualified",
1381
1381
  "mapping": "--auto ('Auto-approve permissions that are not explicitly denied') is a blanket bypass and is refused by policy; what a permission request does without --auto in non-interactive `run` is not independently confirmed: binary disassembly shows a shared permission.asked/permission.replied protocol where an unanswered request resolves to a \"reject\" outcome (`_===\"once\"||_===\"always\"?_:\"reject\"`, with requestPermission(...).catch(()=>{return}) on no responder), but that path is traced through the ACP/session-protocol layer, not reproduced against plain `run`, so this stays unavailable rather than asserted",
1382
- "evidence": "R: conductor binary disassembly of the installed opencode 2.0.26 CLI (permission.asked/permission.replied reject-on-no-answer pattern, host 'noodle', 2026-10-09), confirming H: opencode 2.0.26 `opencode run --help`"
1382
+ "evidence": "R: conductor binary disassembly of the installed opencode 2.0.26 CLI (permission.asked/permission.replied reject-on-no-answer pattern, host 'noodle', 2026-10-09), confirming H: opencode 2.0.26 `opencode run --help`; H: opencode 1.19.0 `opencode run --help` (titan, 2026-11-15): --auto auto-approve permissions that are not explicitly denied"
1383
1383
  },
1384
1384
  "workdir": {
1385
1385
  "support": "unqualified",
@@ -1389,7 +1389,7 @@
1389
1389
  "finalOutput": {
1390
1390
  "support": "unqualified",
1391
1391
  "mapping": "no --output/-o flag and no positive whole-run terminal event (binary disassembly: the run loop returns silently on session.execution.succeeded, in any mode); the final answer is the captured stdout --format json JSONL stream, accepted only when every line parses, no error event occurs, any present step_finish says \"stop\", and at least one text part has a recorded part.time.end (or a stop step_finish substitutes for that) -- a live 2.0.26 run confirmed a clean single-text-event stream with no step_start/step_finish at all",
1392
- "evidence": "H: opencode 2.0.26 `opencode run --help` ('--format choice Output format (choices: default, json)')"
1392
+ "evidence": "H: opencode 2.0.26 `opencode run --help` ('--format choice Output format (choices: default, json)'); H: opencode 1.19.0 `opencode run --help` (titan, 2026-11-15): --format default|json"
1393
1393
  },
1394
1394
  "stdin": {
1395
1395
  "support": "unqualified",
package/bin/aiwg.mjs CHANGED
@@ -214,7 +214,7 @@ const FAST_HELP_TEXT = `
214
214
  --use-stable Switch back to stable npm package
215
215
  ────────────────────────────────────────────────────────
216
216
 
217
- Providers: 12 — claude (default), codex, copilot, cursor, factory, hermes, opencode, openclaw, openhuman, pi, warp, windsurf (alias: devin)
217
+ {{PROVIDERS}}
218
218
 
219
219
  Examples:
220
220
  aiwg use sdlc Install SDLC framework
@@ -227,10 +227,11 @@ const FAST_HELP_TEXT = `
227
227
  aiwg refresh Pull latest + redeploy frameworks
228
228
  `;
229
229
 
230
- function maybeHandleFastHelp(args) {
230
+ async function maybeHandleFastHelp(args) {
231
231
  if (args.length !== 1) return false;
232
232
  if (!['help', '--help', '-help', '-h'].includes(args[0])) return false;
233
- process.stdout.write(`${FAST_HELP_TEXT}\n`);
233
+ const { generateProviderHelp } = await import('../dist/src/cli/help-generator.js');
234
+ process.stdout.write(`${FAST_HELP_TEXT.replace('{{PROVIDERS}}', generateProviderHelp())}\n`);
234
235
  return true;
235
236
  }
236
237
 
@@ -268,6 +269,7 @@ maybeWarnUnbuiltDist();
268
269
  // installation/channel state before the command context exists.
269
270
  function isReadOnlyReport(args) {
270
271
  return (args[0] === 'memory' && (['audit', 'cost', 'recommend', 'plan', 'verify'].includes(args[1]) || args.includes('--preview') || args.includes('--help') || args.includes('-h')))
272
+ || (['marketplace', 'market'].includes(args[0]) && args[1] === 'search' && args.includes('--plugins'))
271
273
  || (args[0] === 'help' && args[1] === 'memory')
272
274
  || (args[0] === 'rules' && ['inventory', 'list'].includes(args[1]))
273
275
  || (['doctor', '-doctor', '--doctor'].includes(args[0]) && args.includes('--decision-offload'))
@@ -381,7 +383,7 @@ if (indexRefresh || readOnlyReport) {
381
383
  if (maybeHandleFastVersion(cliArgs)) {
382
384
  process.exit(0);
383
385
  }
384
- if (maybeHandleFastHelp(cliArgs)) {
386
+ if (await maybeHandleFastHelp(cliArgs)) {
385
387
  process.exit(0);
386
388
  }
387
389
 
@@ -11,7 +11,7 @@
11
11
  * backend, byte-identical to the legacy `echo >> .aiwg/activity.log`
12
12
  * pattern documented in the activity-log skill.
13
13
  *
14
- * @design @.aiwg/architecture/storage-design.md (§4, §8.2)
14
+ * @design @docs/storage/overview.md
15
15
  * @issue #934
16
16
  * @issue #964
17
17
  */
@@ -4,7 +4,7 @@
4
4
  * Core deployment engine for multi-platform agent deployment.
5
5
  *
6
6
  * @implements @.aiwg/requirements/use-cases/UC-002-deploy-sdlc-framework.md
7
- * @architecture @.aiwg/architecture/software-architecture-doc.md - Section 2.1 CLI Entry Point
7
+ * @architecture @docs/architecture/cli/index.md
8
8
  * @nfr @.aiwg/requirements/nfr-modules/performance.md - NFR-PERF-002 (<10s deployment)
9
9
  * @tests @test/unit/agents/agent-deployer.test.ts
10
10
  * @depends @src/agents/agent-validator.ts
@@ -2,7 +2,7 @@
2
2
  * Drift audit — type definitions.
3
3
  *
4
4
  * @implements #1208
5
- * @see .aiwg/architecture/adr-rlm-index-features-impl-plan.md
5
+ * @see docs/architecture/index-and-manifest-loading.md
6
6
  */
7
7
  export const DEFAULT_THRESHOLDS = {
8
8
  keywordOverlapMin: 0.70,
@@ -448,6 +448,7 @@ function recordForEntry(cwd, entry, graphName, dependencyGraph, privacy, schemaV
448
448
  phase: entry.phase,
449
449
  type: entry.type,
450
450
  frontmatter: {
451
+ ...(entry.outputKind ? { outputKind: entry.outputKind } : {}),
451
452
  ...(entry.memoryRecord ? { aiwg_memory_record: entry.memoryRecord } : {}),
452
453
  ...(entry.kernel === undefined ? {} : { kernel: entry.kernel }),
453
454
  ...(entry.kind ? { aiwg_kind: entry.kind } : {}),
@@ -18,7 +18,7 @@
18
18
  * Design notes:
19
19
  * - Facets are *curated*, not learned — appropriate at this corpus size and
20
20
  * portable across all 10 providers (no embedding store, no fine-tuned
21
- * router). See `.aiwg/architecture/adr-steward-feature-discoverability.md`.
21
+ * router). See `docs/architecture/cli/discovery.md`.
22
22
  * - Mapped capabilities are matched against an entry's canonical `name`
23
23
  * (falling back to the path basename / parent-dir slug), so the table lists
24
24
  * names — not paths — and survives bundle moves.
@@ -7,7 +7,7 @@
7
7
  * previously-enriched artifact.
8
8
  *
9
9
  * @implements #1204
10
- * @see .aiwg/architecture/adr-rlm-index-features-impl-plan.md
10
+ * @see docs/architecture/index-and-manifest-loading.md
11
11
  */
12
12
  export const ENRICHMENT_PROMPT = `Read the artifact below. Return JSON matching this schema exactly:
13
13
 
@@ -6,7 +6,7 @@
6
6
  * `aiwg index query` when enrichment is present.
7
7
  *
8
8
  * @implements #1204
9
- * @see .aiwg/architecture/adr-rlm-index-features-impl-plan.md
9
+ * @see docs/architecture/index-and-manifest-loading.md
10
10
  */
11
11
  export {};
12
12
  //# sourceMappingURL=types.js.map
@@ -272,6 +272,8 @@ function entryFromRecord(record) {
272
272
  relationship.source_path ??
273
273
  relationship.target_id),
274
274
  triggers: record.search?.triggers,
275
+ ...(artifactTypeFromRecord(record) === 'template' && typeof indexedFrontmatter.outputKind === 'string'
276
+ ? { outputKind: indexedFrontmatter.outputKind } : {}),
275
277
  capability: record.search?.capability,
276
278
  searchTerms: Array.isArray(indexedSearchTerms)
277
279
  ? indexedSearchTerms.filter((term) => typeof term === "string")
@@ -936,6 +936,7 @@ function extractIndexArtifact(job, bindingOnly, warnings = []) {
936
936
  ...(markdownLinks.length > 0 ? { markdownLinks } : {}),
937
937
  dependents: [], // Computed after all entries are processed
938
938
  ...(name ? { name } : {}),
939
+ ...(type === 'template' && typeof data.outputKind === 'string' && data.outputKind.trim() ? { outputKind: data.outputKind.trim() } : {}),
939
940
  ...(triggers && triggers.length > 0 ? { triggers } : {}),
940
941
  ...(capability ? { capability } : {}),
941
942
  ...(searchTerms && searchTerms.length > 0 ? { searchTerms } : {}),
@@ -121,6 +121,7 @@ export async function emitDiscoverResults(context) {
121
121
  ...(includePaths ? { path: resolvePath(r.entry) } : {}),
122
122
  type: r.entry.type,
123
123
  name: r.entry.name,
124
+ ...(r.entry.outputKind ? { outputKind: r.entry.outputKind } : {}),
124
125
  title: r.entry.title,
125
126
  ...orderingFor(r.entry),
126
127
  ...templateRelationFields(r.entry, ruleRelations, 3, includePaths),
@@ -288,7 +288,7 @@ export async function discoverCapability(cwd, params) {
288
288
  const lexicalDiagnostics = new Map();
289
289
  const legacyStrictScored = candidates
290
290
  .map(entry => {
291
- const detailed = scoreEntryDetailed(entry, params.phrase, { personaIdentitySuppressed });
291
+ const detailed = scoreEntryDetailed(entry, params.phrase, { personaIdentitySuppressed, typeFilter: params.typeFilter });
292
292
  const legacyScore = detailed.score;
293
293
  const fortemiScore = fortemiCoreDiscoveryScores?.get(entry.path) ?? 0;
294
294
  lexicalDiagnostics.set(entry.path, detailed.diagnostic);
@@ -318,7 +318,7 @@ export async function discoverCapability(cwd, params) {
318
318
  const strictPaths = new Set(strictScored.map(result => result.entry.path));
319
319
  const combinedByPath = new Map(strictScored.map(result => [result.entry.path, result]));
320
320
  for (const entry of candidates) {
321
- const detailed = scoreEntryDetailed(entry, params.phrase, { relaxOverlap: true, personaIdentitySuppressed });
321
+ const detailed = scoreEntryDetailed(entry, params.phrase, { relaxOverlap: true, personaIdentitySuppressed, typeFilter: params.typeFilter });
322
322
  if (detailed.score < RELAXED_MIN_SCORE)
323
323
  continue;
324
324
  const existing = combinedByPath.get(entry.path);
@@ -1,5 +1,6 @@
1
1
  // Tokenize discovery phrases and score metadata matches with lexical diagnostics.
2
2
  import { diagnoseFacetActivations } from './discover-facets.js';
3
+ import { matchTemplateOutputKind } from './template-output-kind.js';
3
4
  import { verboseQueryProfile } from './query-engine-verbose.js';
4
5
  export function containsTokenSequence(haystack, needle) {
5
6
  if (needle.length === 0 || haystack.length < needle.length)
@@ -210,6 +211,12 @@ export function scoreEntryDetailed(entry, text, opts = {}) {
210
211
  query_token_coverage: tokens.length > 0 ? newlyMatched.length / tokens.length : 0,
211
212
  });
212
213
  };
214
+ const outputKindMatch = opts.typeFilter?.includes('template') ? matchTemplateOutputKind(entry, text) : undefined;
215
+ if (outputKindMatch) {
216
+ matches.push({ field: 'output_kind', match: 'exact', value: outputKindMatch,
217
+ contribution: 1.002, matched_tokens: tokens, query_token_coverage: 1 });
218
+ return finish(1.002, 1.002);
219
+ }
213
220
  // Exact and near-name floors preserve deliberate artifact selection. The
214
221
  // 1.001 offset sorts exact names above capped lexical matches (display: 1.0).
215
222
  if (entry.name) {
@@ -0,0 +1,10 @@
1
+ export function matchTemplateOutputKind(entry, phrase) {
2
+ if (entry.type !== 'template' || !entry.outputKind)
3
+ return undefined;
4
+ const normalize = (value) => value.toLowerCase().replace(/[._\s-]+/g, ' ').trim();
5
+ const query = normalize(phrase).replace(/ templates?$/, '').trim();
6
+ if (!query)
7
+ return undefined;
8
+ return [entry.outputKind, ...(entry.triggers ?? [])].find(value => normalize(value) === query);
9
+ }
10
+ //# sourceMappingURL=template-output-kind.js.map
@@ -110,7 +110,7 @@ export const INDEX_VERSION = '1.0.0';
110
110
  * making the serialized index schema incompatible; a mismatch simply forces a
111
111
  * one-time content re-extraction during the next incremental build.
112
112
  */
113
- export const INDEX_EXTRACTOR_VERSION = '2026.11.10.1';
113
+ export const INDEX_EXTRACTOR_VERSION = '2026.11.16.1';
114
114
  /**
115
115
  * Built-in graph definitions
116
116
  */
@@ -2,7 +2,7 @@
2
2
  * View definition parser and validator.
3
3
  *
4
4
  * @implements #1207
5
- * @see .aiwg/architecture/adr-rlm-index-features-impl-plan.md
5
+ * @see docs/architecture/index-and-manifest-loading.md
6
6
  */
7
7
  import { load as loadYaml, dump as dumpYaml } from 'js-yaml';
8
8
  const VALID_AGGREGATES = [
@@ -2,7 +2,7 @@
2
2
  * Materialized index views — type definitions.
3
3
  *
4
4
  * @implements #1207
5
- * @see .aiwg/architecture/adr-rlm-index-features-impl-plan.md
5
+ * @see docs/architecture/index-and-manifest-loading.md
6
6
  */
7
7
  export {};
8
8
  //# sourceMappingURL=types.js.map
@@ -6,7 +6,7 @@
6
6
  * - info: Show detailed model information
7
7
  * - search: Search models by query
8
8
  *
9
- * @implements @.aiwg/architecture/enhanced-model-selection-design.md#9-model-catalog-system
9
+ * @implements @docs/models/supported-models.md
10
10
  * @module src/catalog/cli
11
11
  */
12
12
  import { loadCatalog, getModel, listModels, getProvider, searchModels, } from './loader.js';
@@ -6,7 +6,7 @@
6
6
  * - info: Show detailed model information
7
7
  * - search: Search models by query
8
8
  *
9
- * @implements @.aiwg/architecture/enhanced-model-selection-design.md#9-model-catalog-system
9
+ * @implements @docs/models/supported-models.md
10
10
  * @module src/catalog/cli
11
11
  */
12
12
 
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * Merge priority: custom > discovered > builtin
10
10
  *
11
- * @implements @.aiwg/architecture/enhanced-model-selection-design.md#9-model-catalog-system
11
+ * @implements @docs/models/supported-models.md
12
12
  * @module src/catalog/loader
13
13
  */
14
14
  import { readFile } from 'fs/promises';
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * Merge priority: custom > discovered > builtin
10
10
  *
11
- * @implements @.aiwg/architecture/enhanced-model-selection-design.md#9-model-catalog-system
11
+ * @implements @docs/models/supported-models.md
12
12
  * @module src/catalog/loader
13
13
  */
14
14
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Model Catalog Type Definitions
3
3
  *
4
- * @implements @.aiwg/architecture/enhanced-model-selection-design.md#9-model-catalog-system
4
+ * @implements @docs/models/supported-models.md
5
5
  * @module src/catalog/types
6
6
  */
7
7
  export {};
@@ -13,6 +13,7 @@ import fs from 'fs/promises';
13
13
  import path from 'path';
14
14
  import { pathToFileURL } from 'url';
15
15
  import * as ui from './ui.js';
16
+ import { portableCliExtensionSource, resolveCliExtensionSource } from './cli-extension-paths.js';
16
17
  import { projectAiwgPath, resolveProjectAiwgDir } from '../config/project-artifacts.js';
17
18
  /**
18
19
  * Read the cli-extensions registry from the current project
@@ -44,9 +45,7 @@ export async function registerCliCommands(cwd, namespace, description, source, s
44
45
  if (!/^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/.test(namespace)) {
45
46
  throw new Error(`Invalid CLI namespace: ${namespace}`);
46
47
  }
47
- if (!source || !path.isAbsolute(source)) {
48
- throw new Error('CLI extension source must be an absolute path.');
49
- }
48
+ const portableSource = await portableCliExtensionSource(cwd, source);
50
49
  if (Object.keys(subcommands).length === 0) {
51
50
  throw new Error(`CLI namespace '${namespace}' declares no subcommands.`);
52
51
  }
@@ -64,7 +63,7 @@ export async function registerCliCommands(cwd, namespace, description, source, s
64
63
  }
65
64
  }
66
65
  const existing = await readRegistry(cwd) ?? {};
67
- existing[namespace] = { source, description, subcommands };
66
+ existing[namespace] = { source: portableSource, description, subcommands };
68
67
  await writeRegistry(cwd, existing);
69
68
  }
70
69
  /**
@@ -144,7 +143,22 @@ export async function tryExecuteCliExtension(rawCommand, commandArgs, cwd, frame
144
143
  return { exitCode: 1 };
145
144
  }
146
145
  // Resolve the mjs file path
147
- const mjsPath = path.resolve(ns.source, path.basename(sub.file));
146
+ let mjsPath;
147
+ try {
148
+ const source = await resolveCliExtensionSource(cwd, ns.source);
149
+ if (!/^[a-zA-Z0-9_-]+\.mjs$/.test(sub.file))
150
+ throw new Error('Expected a local .mjs file.');
151
+ mjsPath = path.resolve(source, sub.file);
152
+ const relative = path.relative(await fs.realpath(source), await fs.realpath(mjsPath));
153
+ if (relative === '..' || relative.startsWith(`..${path.sep}`) || path.isAbsolute(relative)) {
154
+ throw new Error('CLI extension module escapes its source directory.');
155
+ }
156
+ }
157
+ catch (error) {
158
+ const message = error.message;
159
+ ui.error(message);
160
+ return { exitCode: 1, message };
161
+ }
148
162
  try {
149
163
  await fs.access(mjsPath);
150
164
  }
@@ -0,0 +1,65 @@
1
+ // Resolve portable CLI namespace sources and diagnose stale registrations.
2
+ import fs from 'node:fs/promises';
3
+ import path from 'node:path';
4
+ import { projectAiwgPath } from '../config/project-artifacts.js';
5
+ function inside(root, candidate) {
6
+ const relative = path.relative(root, candidate);
7
+ return relative !== '..' && !relative.startsWith(`..${path.sep}`) && !path.isAbsolute(relative);
8
+ }
9
+ /** Relative sources are project-root-relative; external sources remain absolute. */
10
+ export async function resolveCliExtensionSource(cwd, source) {
11
+ if (typeof source !== 'string' || !source.trim() || source.split(/[\\/]+/).includes('..')) {
12
+ throw new Error('Unsafe CLI extension source: empty path or parent traversal.');
13
+ }
14
+ const resolved = path.resolve(cwd, source);
15
+ if (path.isAbsolute(source))
16
+ return resolved;
17
+ if (!inside(path.resolve(cwd), resolved))
18
+ throw new Error('CLI extension source escapes project root.');
19
+ // Inspect real paths so an in-project symlink cannot grant an external source.
20
+ try {
21
+ const [rootReal, sourceReal] = await Promise.all([fs.realpath(cwd), fs.realpath(resolved)]);
22
+ if (!inside(rootReal, sourceReal))
23
+ throw new Error('CLI extension source escapes project root via symlink.');
24
+ }
25
+ catch (error) {
26
+ if (error.code !== 'ENOENT')
27
+ throw error;
28
+ // Missing directories are reported at execution and by doctor.
29
+ }
30
+ return resolved;
31
+ }
32
+ export async function portableCliExtensionSource(cwd, source) {
33
+ const resolved = await resolveCliExtensionSource(cwd, source);
34
+ if (!inside(path.resolve(cwd), resolved))
35
+ return resolved;
36
+ const relative = path.relative(path.resolve(cwd), resolved) || '.';
37
+ await resolveCliExtensionSource(cwd, relative);
38
+ return relative.split(path.sep).join('/');
39
+ }
40
+ /** Diagnose every registry, including committed registries in a fresh clone. */
41
+ export async function cliExtensionSourceWarnings(cwd) {
42
+ const file = projectAiwgPath(cwd, 'cli-extensions.json');
43
+ let registry;
44
+ try {
45
+ registry = JSON.parse(await fs.readFile(file, 'utf8'));
46
+ if (!registry || typeof registry !== 'object' || Array.isArray(registry))
47
+ throw new Error('expected namespace object');
48
+ }
49
+ catch (error) {
50
+ return error.code === 'ENOENT' ? [] : [`CLI extensions: invalid ${file}: ${error.message}`];
51
+ }
52
+ const warnings = [];
53
+ for (const [namespace, entry] of Object.entries(registry)) {
54
+ try {
55
+ const source = await resolveCliExtensionSource(cwd, entry?.source);
56
+ if (!(await fs.stat(source)).isDirectory())
57
+ throw new Error('source is not a directory');
58
+ }
59
+ catch (error) {
60
+ warnings.push(`CLI extension '${namespace}' source '${entry?.source}': ${error.message}. Run aiwg use <bundle> to register its current source.`);
61
+ }
62
+ }
63
+ return warnings;
64
+ }
65
+ //# sourceMappingURL=cli-extension-paths.js.map
@@ -12,7 +12,7 @@
12
12
  * Pattern matches src/cli/handlers/sdlc-accelerate.ts — same agent-spawn
13
13
  * conventions, same provider gating, same --params / --dangerous handling.
14
14
  *
15
- * @architecture @.aiwg/architecture/decisions/ADR-023-contributor-discovery-convention.md
15
+ * @architecture @docs/contributing/contributor-quickstart.md
16
16
  * @issue #943
17
17
  */
18
18
  import { spawn } from 'child_process';
@@ -5,6 +5,7 @@ import { FileDatasetOrchestrationRepository } from "../../dataset/file-orchestra
5
5
  import { LocalDatasetExecutionBackend } from "../../dataset/local-execution-backend.js";
6
6
  import { DatasetOrchestrationService } from "../../dataset/orchestration-service.js";
7
7
  import { presentDatasetResult } from "../../dataset/presentation.js";
8
+ import { datasetBindingRegistry } from "../../dataset/service-binding-registry.js";
8
9
  export const DATASET_ACTIONS = [
9
10
  "source",
10
11
  "check",
@@ -27,6 +28,7 @@ function option(args, name) {
27
28
  function positions(args) {
28
29
  const values = new Set([
29
30
  "--file",
31
+ "--binding",
30
32
  "--count",
31
33
  "--digest",
32
34
  "--idempotency-key",
@@ -51,7 +53,12 @@ function input(ctx) {
51
53
  throw new Error("DATASET_INPUT_REQUIRED: --file <json> is required");
52
54
  return JSON.parse(readFileSync(resolve(ctx.cwd, file), "utf8"));
53
55
  }
54
- function service(ctx) {
56
+ export function createDatasetCliService(ctx, bindings = datasetBindingRegistry) {
57
+ const selected = ctx.args.filter(arg => arg === "--binding").length;
58
+ const bindingFile = option(ctx.args, "--binding");
59
+ if (selected && (selected !== 1 || !bindingFile || bindingFile.startsWith("--")))
60
+ throw new Error("DATASET_BINDING_SELECTION_REQUIRED: --binding <json>");
61
+ const binding = bindingFile ? bindings.select(JSON.parse(readFileSync(resolve(ctx.cwd, bindingFile), "utf8"))) : undefined;
55
62
  const registry = createBuiltinAdapterRegistry();
56
63
  return new DatasetOrchestrationService(new FileDatasetOrchestrationRepository(ctx.cwd), {
57
64
  adapter: (id, version) => {
@@ -64,6 +71,7 @@ function service(ctx) {
64
71
  return adapter;
65
72
  },
66
73
  localBackend: new LocalDatasetExecutionBackend(),
74
+ ...binding,
67
75
  });
68
76
  }
69
77
  export async function executeDatasetCommand(ctx, providedService) {
@@ -89,7 +97,7 @@ export async function executeDatasetCommand(ctx, providedService) {
89
97
  }],
90
98
  }, ctx.args.includes("--json")),
91
99
  };
92
- const s = providedService ?? service(ctx);
100
+ const s = providedService ?? createDatasetCliService(ctx);
93
101
  let result;
94
102
  switch (action) {
95
103
  case "source":
@@ -172,6 +180,7 @@ export const datasetHandler = {
172
180
  "preview: <source-id> [--count N] [--offline]",
173
181
  "ingest: <plan-id> --digest <sha256> --idempotency-key <key> [--approve id,id]",
174
182
  "status <run-id>: Inspect one run by its required ID.",
183
+ "All actions: --binding <json> explicitly selects a pre-registered qualified service binding.",
175
184
  "All actions: --json for the canonical aiwg.dataset-orchestration/v1 envelope.",
176
185
  ].join("\n"),
177
186
  };
@@ -3,13 +3,13 @@
3
3
  *
4
4
  * Displays comprehensive CLI help information.
5
5
  *
6
- * @implements @.aiwg/architecture/decisions/ADR-001-unified-extension-system.md
6
+ * @implements @docs/architecture/cli/adr-001-unified-extension-registry.md
7
7
  * @source @src/cli/router.ts
8
8
  * @issue #33
9
9
  */
10
10
  import * as ui from '../ui.js';
11
11
  import { maybePrintCommunityFooter } from '../../community/footer.js';
12
- import { listProviderDefinitions } from '../../providers/provider-definitions.js';
12
+ import { generateProviderHelp } from '../help-generator.js';
13
13
  import { getCommandIds } from '../../extensions/commands/definitions.js';
14
14
  /**
15
15
  * Help command handler
@@ -159,8 +159,7 @@ function displayHelp() {
159
159
  ]);
160
160
  ui.rule();
161
161
  ui.blank();
162
- const providers = listProviderDefinitions().filter(({ id }) => id !== 'generic');
163
- console.log(` ${ui.dimText('Providers:')} ${providers.length} — ${providers.map(({ id, status }) => status === 'experimental' ? `${id} (experimental)` : id).join(', ')} (default: claude; aliases: agy → antigravity, devin → windsurf, oh-my-pi → omp)`);
162
+ console.log(` ${generateProviderHelp()}`);
164
163
  ui.blank();
165
164
  console.log(` ${ui.dimText('Examples:')}`);
166
165
  console.log(` aiwg use sdlc ${ui.dimText('Install SDLC framework')}`);
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Aggregates all extracted command handlers for registry-based routing.
5
5
  *
6
- * @implements @.aiwg/architecture/decisions/ADR-001-unified-extension-system.md
6
+ * @implements @docs/architecture/cli/adr-001-unified-extension-registry.md
7
7
  * @tests @test/unit/cli/handlers/index.test.ts
8
8
  * @issue #42
9
9
  */
@@ -0,0 +1,37 @@
1
+ // Handle the read-only provider-plugin mode separately from remote skill catalogs.
2
+ import { formatPluginSearch, searchProviderPlugins } from '../../marketplace/plugin-search.js';
3
+ export function handlePluginSearch(ctx) {
4
+ try {
5
+ const values = {};
6
+ const query = [];
7
+ for (let index = 1; index < ctx.args.length; index++) {
8
+ const arg = ctx.args[index];
9
+ if (arg === '--plugins' || arg === '--json')
10
+ continue;
11
+ if (arg === '--provider' || arg === '--max-age-days') {
12
+ const value = ctx.args[++index];
13
+ if (!value || value.startsWith('--'))
14
+ throw new Error(`${arg} requires a value`);
15
+ values[arg] = value;
16
+ }
17
+ else if (arg.startsWith('--'))
18
+ throw new Error(`Unsupported plugin search flag: ${arg}`);
19
+ else
20
+ query.push(arg);
21
+ }
22
+ if (!query.join(' ').trim())
23
+ throw new Error('Query required for plugin search');
24
+ const report = searchProviderPlugins(query.join(' '), {
25
+ provider: values['--provider'],
26
+ maxAgeDays: values['--max-age-days'] === undefined ? undefined : Number(values['--max-age-days']),
27
+ });
28
+ for (const warning of report.warnings)
29
+ console.warn(`Warning: ${warning}`);
30
+ console.log(ctx.args.includes('--json') ? JSON.stringify(report, null, 2) : formatPluginSearch(report));
31
+ return { exitCode: 0 };
32
+ }
33
+ catch (error) {
34
+ return { exitCode: 1, message: `Error: ${error instanceof Error ? error.message : String(error)}` };
35
+ }
36
+ }
37
+ //# sourceMappingURL=marketplace-plugin-search.js.map
@@ -7,6 +7,7 @@
7
7
  * @implements #805
8
8
  * @implements #2009
9
9
  */
10
+ import { handlePluginSearch } from './marketplace-plugin-search.js';
10
11
  import fs from 'node:fs';
11
12
  import path from 'node:path';
12
13
  import { sensitiveInputOptions } from '../../auth/sensitive-input.js';
@@ -20,6 +21,7 @@ const USAGE = [
20
21
  'Usage:',
21
22
  ' aiwg marketplace add <catalog-git-url> [--ref <tag-or-sha>]',
22
23
  ' aiwg marketplace search <query> Search packages and signed catalogs',
24
+ ' aiwg marketplace search <query> --plugins [--provider all|claude|codex] [--max-age-days 30] [--json]',
23
25
  ' aiwg marketplace info <package> Show provenance and catalog observations',
24
26
  ' aiwg marketplace install <url|package> Install and lock direct Git or catalog package',
25
27
  ' aiwg marketplace verify <package|lock> Verify cached content and receipts offline',
@@ -82,7 +84,7 @@ export const marketplaceHandler = {
82
84
  if (subcommand === 'add')
83
85
  return handleAdd(ctx);
84
86
  if (subcommand === 'search')
85
- return handleSearch(ctx);
87
+ return ctx.args.includes('--plugins') ? handlePluginSearch(ctx) : handleSearch(ctx);
86
88
  if (subcommand === 'info')
87
89
  return handleInfo(ctx);
88
90
  if (subcommand === 'install')
@@ -290,7 +290,7 @@ async function effectiveCatalog(ctx, target, allowNetwork, parsed, provider) {
290
290
  } : undefined;
291
291
  return resolveDynamicModelCatalog({
292
292
  aiwgRoot,
293
- inventory,
293
+ inventory, parallelism: (await readAiwgConfig(target))?.parallelism,
294
294
  allowNetwork,
295
295
  forceRefresh: allowNetwork,
296
296
  ...(nativeDiscoverers ? { nativeDiscoverers } : {}),