@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.
- package/README.md +1 -1
- package/agentic/code/providers/capability-matrix.yaml +4 -4
- package/agentic/code/providers/model-capabilities.v1.json +150 -28
- package/agentic/code/providers/model-catalog.v1.json +6 -5
- package/bin/aiwg.mjs +3 -1
- package/dist/src/agents/agent-packager.js +3 -3
- package/dist/src/artifacts/cli.js +6 -2
- package/dist/src/artifacts/fortemi-core-sync.js +2 -0
- package/dist/src/artifacts/index-query-help.js +27 -0
- package/dist/src/artifacts/query-engine-installation.js +17 -4
- package/dist/src/artifacts/query-engine-name-intent.js +56 -0
- package/dist/src/artifacts/query-engine-scoring.js +14 -8
- package/dist/src/artifacts/query-engine-show-card.js +3 -3
- package/dist/src/cli/agent-spawn.js +4 -4
- package/dist/src/cli/handlers/best-practices-audit.js +1 -1
- package/dist/src/cli/handlers/bundle-deployment-mode.js +26 -13
- package/dist/src/cli/handlers/bundle-reconciliation.js +2 -2
- package/dist/src/cli/handlers/init.js +1 -1
- package/dist/src/cli/handlers/issues.js +5 -0
- package/dist/src/cli/handlers/marketplace-plugin-search.js +6 -5
- package/dist/src/cli/handlers/marketplace.js +1 -1
- package/dist/src/cli/handlers/models-muse-wrapper.js +32 -0
- package/dist/src/cli/handlers/models.js +5 -4
- package/dist/src/cli/handlers/refresh-artifact-freshness.js +51 -0
- package/dist/src/cli/handlers/refresh-bundles.js +3 -0
- package/dist/src/cli/handlers/refresh-managed-deployment.js +6 -4
- package/dist/src/cli/handlers/refresh.js +7 -3
- package/dist/src/cli/handlers/repo-access.js +15 -2
- package/dist/src/cli/handlers/sdlc-accelerate.js +1 -1
- package/dist/src/cli/handlers/steward.js +1 -1
- package/dist/src/cli/handlers/subcommands-bundles.js +1 -1
- package/dist/src/cli/handlers/subcommands-discovery.js +5 -0
- package/dist/src/cli/handlers/subcommands-list.js +1 -1
- package/dist/src/cli/handlers/subcommands-plugins.js +1 -1
- package/dist/src/cli/handlers/subcommands-storage.js +11 -0
- package/dist/src/cli/handlers/team.js +1 -1
- package/dist/src/cli/handlers/use-additive-bundles.js +9 -2
- package/dist/src/cli/handlers/use-bundle-counts.js +1 -1
- package/dist/src/cli/handlers/use-copy-selection.js +42 -0
- package/dist/src/cli/handlers/use.js +33 -38
- package/dist/src/cli/handlers/workspace-context.js +4 -0
- package/dist/src/cli/help-generator.js +1 -1
- package/dist/src/cli/new-project-options.js +46 -0
- package/dist/src/cli/router.js +15 -4
- package/dist/src/cli/scope-resolver.js +6 -6
- package/dist/src/cli/services/deployment-probe-scope.js +11 -0
- package/dist/src/cli/services/deployment-staleness.js +83 -0
- package/dist/src/cli/services/deployment-verification.js +20 -11
- package/dist/src/config/aiwg-config.js +1 -1
- package/dist/src/config/authorization-cli.js +36 -1
- package/dist/src/config/config-normalization.js +3 -1
- package/dist/src/data/community.yaml +3 -3
- package/dist/src/extensions/commands/definitions.js +2 -2
- package/dist/src/extensions/manifest.js +27 -1
- package/dist/src/extensions/user-hook-diagnostics.js +6 -4
- package/dist/src/extensions/verified-hook-command.js +7 -5
- package/dist/src/features/catalog.js +2 -2
- package/dist/src/issues/cli.js +10 -2
- package/dist/src/marketplace/cache.js +31 -0
- package/dist/src/marketplace/plugin-search.js +39 -20
- package/dist/src/marketplace/public-search.js +122 -0
- package/dist/src/marketplace/registry.js +2 -0
- package/dist/src/marketplace/search-contract.js +19 -0
- package/dist/src/marketplace/sources/public-search.js +81 -0
- package/dist/src/mcp/cli.mjs +8 -7
- package/dist/src/mcp/credentials.mjs +1 -1
- package/dist/src/mcp/registry.js +6 -2
- package/dist/src/mcp/tool-filters.mjs +1 -1
- package/dist/src/memory/provider-memory-adapter.js +1 -1
- package/dist/src/models/catalog-policy.js +2 -1
- package/dist/src/models/config-loader.js +2 -1
- package/dist/src/models/cursor-worker-version.d.mts +2 -0
- package/dist/src/models/cursor-worker-version.mjs +27 -0
- package/dist/src/models/model-capabilities.v1.json +150 -28
- package/dist/src/models/model-catalog.v1.json +6 -5
- package/dist/src/models/model-discovery.js +3 -3
- package/dist/src/models/policy-resources.js +1 -1
- package/dist/src/models/worker-direct-readiness.js +8 -5
- package/dist/src/models/worker-installation.d.mts +3 -2
- package/dist/src/models/worker-installation.mjs +12 -10
- package/dist/src/models/worker-invocation-policy.js +1 -1
- package/dist/src/models/wrapper-deployment.js +1 -1
- package/dist/src/models/wrapper-enforcement.js +6 -2
- package/dist/src/plugin/skill-command-frontmatter.js +1 -1
- package/dist/src/plugin/skill-command-translator.js +1 -1
- package/dist/src/policy/repo-access-workspace-spec.js +63 -0
- package/dist/src/policy/repo-access.js +22 -0
- package/dist/src/providers/capability-matrix.yaml +4 -4
- package/dist/src/providers/deployment-ownership.mjs +1 -1
- package/dist/src/providers/deployment-preservation.mjs +10 -5
- package/dist/src/providers/deployment-removal.js +1 -1
- package/dist/src/providers/devin-compat.d.mts +4 -0
- package/dist/src/providers/devin-compat.mjs +29 -0
- package/dist/src/providers/grok-build-acp.js +39 -9
- package/dist/src/providers/grok-build-paths.js +8 -7
- package/dist/src/providers/provider-context-contracts.js +4 -3
- package/dist/src/providers/provider-definition-schema.js +1 -1
- package/dist/src/providers/provider-definitions.js +1 -1
- package/dist/src/providers/provider-definitions.mjs +3 -3
- package/dist/src/providers/provider-inventory.js +13 -1
- package/dist/src/providers/provider-seeds-3.js +10 -9
- package/dist/src/providers/transformation-receipt-integration.js +1 -1
- package/dist/src/sessions/adapters/windsurf.js +7 -7
- package/dist/src/sessions/grok-build-cli-output.js +1 -1
- package/dist/src/sessions/grok-build-cli.js +7 -1
- package/dist/src/skills/bundle-import-cli.js +61 -0
- package/dist/src/skills/bundle-import-plan.js +108 -0
- package/dist/src/skills/bundle-import.js +192 -0
- package/dist/src/skills/cli.js +5 -0
- package/dist/src/skills/deployment-policy.js +1 -1
- package/dist/src/skills/importer.js +4 -4
- package/dist/src/smiths/agentsmith/demo.js +1 -1
- package/dist/src/smiths/agentsmith/examples.js +6 -6
- package/dist/src/smiths/commandsmith/generator.js +1 -1
- package/dist/src/smiths/context-pipeline/allowlist.js +1 -1
- package/dist/src/smiths/context-pipeline/parallelism-section.js +2 -2
- package/dist/src/smiths/skillsmith/collision-detector.js +1 -1
- package/dist/src/smiths/skillsmith/namespace-adapter.js +1 -1
- package/dist/src/smiths/skillsmith/platform-resolver.js +2 -2
- package/dist/src/writing/campaign-report.js +4 -3
- package/dist/src/writing/contextual-diagnostics.js +27 -2
- package/dist/src/writing/current-patterns.js +1 -0
- package/dist/src/writing/structural-judgment.catalogue.json +17 -0
- package/dist/src/writing/structural-judgment.js +33 -0
- package/dist/src/writing/structural-patterns.js +55 -0
- package/dist/src/writing/validation-campaign.js +3 -0
- package/dist/src/writing/validation-engine.js +7 -4
- package/package.json +4 -2
- package/schemas/models/model-config-compatibility.v1.schema.json +1 -1
- package/tools/agents/deploy-agents.mjs +12 -10
- package/tools/agents/deploy-options.mjs +1 -0
- package/tools/agents/providers/base-behaviors.mjs +1 -1
- package/tools/agents/providers/base-contract.mjs +1 -1
- package/tools/agents/providers/base-kernel-skills.mjs +1 -1
- package/tools/agents/providers/base-models-platforms.mjs +9 -7
- package/tools/agents/providers/base-rule-index.mjs +1 -1
- package/tools/agents/providers/codex.mjs +1 -0
- package/tools/agents/providers/devin.mjs +3 -0
- package/tools/agents/providers/grok-build.mjs +14 -19
- package/tools/agents/providers/hook-capabilities.mjs +1 -1
- package/tools/agents/providers/model-wrapper.mjs +1 -1
- package/tools/agents/providers/rule-delivery-surface.mjs +14 -10
- package/tools/agents/providers/rule-deployment-prepare.mjs +8 -8
- package/tools/agents/providers/rule-projection.mjs +5 -5
- package/tools/agents/providers/rule-startup.mjs +1 -1
- package/tools/agents/providers/skill-copy-prune.mjs +5 -1
- package/tools/agents/providers/windsurf.mjs +26 -26
- package/tools/agents/use-rule-selection.mjs +1 -1
- package/tools/cli/workspace-deployment-health.mjs +38 -0
- package/tools/cli/workspace-status.mjs +5 -2
- package/tools/daemon/provider-watcher.mjs +3 -3
- package/tools/plugin/package-plugins.mjs +16 -2
- package/tools/ralph-external/lib/deepseek-harness-adapter.mjs +36 -22
- package/tools/ralph-external/lib/factory-adapter.mjs +13 -28
- package/tools/ralph-external/lib/factory-stream-final.mjs +31 -0
- package/tools/skills/deploy-skills-codex.mjs +2 -1
- package/vscode-extension/schemas/aiwg.config.v1.json +2 -1
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
import { ProviderAdapter, registerProvider } from './provider-adapter.mjs';
|
|
26
26
|
import { classifyWorkerHealthFailure, healthEventMatchesBinding } from './worker-health.mjs';
|
|
27
|
+
import { factoryTerminalResult, parseFactoryDirectFinal } from './factory-stream-final.mjs';
|
|
27
28
|
|
|
28
29
|
/** Model mapping from generic names to Factory/Droid model IDs */
|
|
29
30
|
const MODEL_MAP = {
|
|
@@ -46,7 +47,10 @@ const MODEL_MAP = {
|
|
|
46
47
|
* `--cwd` and `-o/--output-format` are all `exec`-level flags on 1.0.0
|
|
47
48
|
* `exec --help`. There is no file-output flag (`-o` selects the *format*,
|
|
48
49
|
* not a destination path): the final is read from the captured stdout
|
|
49
|
-
* stream instead, never a separate file.
|
|
50
|
+
* stream instead, never a separate file. Droid 1.0.0's observed terminal
|
|
51
|
+
* is `completion` with non-empty `finalText` (#4362, 2026-11-21); the
|
|
52
|
+
* documented legacy `result` success shape remains accepted. The catalog
|
|
53
|
+
* bounds this direct profile to 1.0.x. There is no positional `prompt`
|
|
50
54
|
* requirement either — `exec --help`'s own Examples show
|
|
51
55
|
* `echo "analyze code" | droid exec` and `cat prompt.txt | droid exec --auto
|
|
52
56
|
* medium` with no `prompt` argument at all, so omitting the positional and
|
|
@@ -96,7 +100,7 @@ const MODEL_MAP = {
|
|
|
96
100
|
* Ralph-loop registry only; the direct worker profile loads through the
|
|
97
101
|
* installed loader.
|
|
98
102
|
*/
|
|
99
|
-
export const FACTORY_SUPPORTED_VERSIONS = Object.freeze(['1.0.
|
|
103
|
+
export const FACTORY_SUPPORTED_VERSIONS = Object.freeze(['1.0.x']);
|
|
100
104
|
/** Union of every reasoning-effort label observed across models in
|
|
101
105
|
* `exec --help`'s "Model details" section (including `none`, the sole
|
|
102
106
|
* level for "Auto Model" and one of the levels for GPT-6 Sol/Luna and
|
|
@@ -137,8 +141,8 @@ const FACTORY_RESERVED_MODEL_VALUES = Object.freeze(['auto']);
|
|
|
137
141
|
export class FactoryAdapter extends ProviderAdapter {
|
|
138
142
|
/**
|
|
139
143
|
* Doc-sourced `assistant`/`user`/`tool_call`/`tool_result`/`hook`/`error`/
|
|
140
|
-
* `result` vocabulary (module doc above).
|
|
141
|
-
*
|
|
144
|
+
* `result` plus observed `completion` vocabulary (module doc above).
|
|
145
|
+
* The handshake stays `process-only`; a standalone `error`
|
|
142
146
|
* event is fatal exactly like a `result` with `is_error: true`, so a later
|
|
143
147
|
* clean terminal can never paper over it. Session exports and another
|
|
144
148
|
* provider's event names cannot qualify this grammar.
|
|
@@ -158,10 +162,8 @@ export class FactoryAdapter extends ProviderAdapter {
|
|
|
158
162
|
observeHealthEvent(event, source, binding) {
|
|
159
163
|
if (source?.kind !== 'stdout' || !event || typeof event !== 'object' || typeof event.type !== 'string') return null;
|
|
160
164
|
if (!healthEventMatchesBinding({ sessionId: event.session_id }, binding)) return null;
|
|
161
|
-
if (event.type === 'result') {
|
|
162
|
-
|
|
163
|
-
const success = event.subtype === 'success' && event.is_error === false && hasResultContent;
|
|
164
|
-
return { kind: 'terminal', success, key: event.subtype ?? 'result' };
|
|
165
|
+
if (event.type === 'result' || event.type === 'completion') {
|
|
166
|
+
return { kind: 'terminal', success: factoryTerminalResult(event) !== null, key: event.subtype ?? event.type };
|
|
165
167
|
}
|
|
166
168
|
if (event.type === 'error') {
|
|
167
169
|
return { ...classifyWorkerHealthFailure({ type: 'error', message: event.message ?? event.error?.message }, { source, provider: 'factory' }),
|
|
@@ -251,30 +253,13 @@ export class FactoryAdapter extends ProviderAdapter {
|
|
|
251
253
|
* `result` line that is not the documented success shape (`subtype ===
|
|
252
254
|
* 'success'`, `is_error === false`, non-empty `result`) rejects the whole
|
|
253
255
|
* stream. A later success never replaces an earlier failure, and an error
|
|
254
|
-
* after a success is never ignored.
|
|
256
|
+
* after a success is never ignored. Also accepts the observed 1.0.0
|
|
257
|
+
* `completion.finalText`, normalized to `result` for claims extraction.
|
|
255
258
|
* @param {string} stdout
|
|
256
259
|
* @returns {Object|null}
|
|
257
260
|
*/
|
|
258
261
|
parseDirectFinal(stdout) {
|
|
259
|
-
|
|
260
|
-
let final = null;
|
|
261
|
-
for (const line of stdout.split('\n')) {
|
|
262
|
-
const trimmed = line.trim();
|
|
263
|
-
if (!trimmed) continue;
|
|
264
|
-
let event;
|
|
265
|
-
try {
|
|
266
|
-
event = JSON.parse(trimmed);
|
|
267
|
-
} catch {
|
|
268
|
-
return null;
|
|
269
|
-
}
|
|
270
|
-
if (!event || typeof event !== 'object' || Array.isArray(event)) return null;
|
|
271
|
-
if (event.type === 'error') return null;
|
|
272
|
-
if (event.type !== 'result') continue;
|
|
273
|
-
const hasResultContent = typeof event.result === 'string' && event.result.trim().length > 0;
|
|
274
|
-
if (!(event.subtype === 'success' && event.is_error === false && hasResultContent)) return null;
|
|
275
|
-
final = event;
|
|
276
|
-
}
|
|
277
|
-
return final;
|
|
262
|
+
return parseFactoryDirectFinal(stdout);
|
|
278
263
|
}
|
|
279
264
|
|
|
280
265
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Normalize Droid completion and legacy result terminals for direct workers.
|
|
2
|
+
export function factoryTerminalResult(event) {
|
|
3
|
+
if (event.type === 'completion') {
|
|
4
|
+
return typeof event.finalText === 'string' && event.finalText.trim().length > 0
|
|
5
|
+
? { ...event, result: event.finalText } : null;
|
|
6
|
+
}
|
|
7
|
+
return event.subtype === 'success' && event.is_error === false
|
|
8
|
+
&& typeof event.result === 'string' && event.result.trim().length > 0 ? event : null;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** Any malformed line, error event or unsuccessful terminal rejects the stream. */
|
|
12
|
+
export function parseFactoryDirectFinal(stdout) {
|
|
13
|
+
if (typeof stdout !== 'string' || !stdout.trim()) return null;
|
|
14
|
+
let final = null;
|
|
15
|
+
for (const line of stdout.split('\n')) {
|
|
16
|
+
const trimmed = line.trim();
|
|
17
|
+
if (!trimmed) continue;
|
|
18
|
+
let event;
|
|
19
|
+
try {
|
|
20
|
+
event = JSON.parse(trimmed);
|
|
21
|
+
} catch {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
if (!event || typeof event !== 'object' || Array.isArray(event)) return null;
|
|
25
|
+
if (event.type === 'error') return null;
|
|
26
|
+
if (event.type !== 'result' && event.type !== 'completion') continue;
|
|
27
|
+
final = factoryTerminalResult(event);
|
|
28
|
+
if (!final) return null;
|
|
29
|
+
}
|
|
30
|
+
return final;
|
|
31
|
+
}
|
|
@@ -134,6 +134,7 @@ function parseArgs(args, homeDir) {
|
|
|
134
134
|
else if (a === '--dry-run') cfg.dryRun = true;
|
|
135
135
|
else if (a === '--force') cfg.force = true;
|
|
136
136
|
else if (a === '--index-mode') cfg.indexMode = true;
|
|
137
|
+
else if (a === '--preserve-copies') cfg.preserveCopies = true;
|
|
137
138
|
else if (a === '--copy-all' || a === '--copy-standard-skills') cfg.copyStandardSkills = true;
|
|
138
139
|
else if (a === '--listing-cap' && args[i + 1]) { cfg.listingCap = Math.max(0, Number(args[++i]) || 0); cfg.listingCapExplicit = true; }
|
|
139
140
|
else if (a === '--standard-target' && args[i + 1]) cfg.standardTarget = path.resolve(args[++i]);
|
|
@@ -407,7 +408,7 @@ export async function main(args = process.argv.slice(2), internal = {}) {
|
|
|
407
408
|
// skills can delete the kernel skills installed by the preceding full-root
|
|
408
409
|
// Codex pass, leaving `.agents/skills/` empty while `aiwg use` still exits 0.
|
|
409
410
|
let totalPruned = 0;
|
|
410
|
-
if ((!copyStandardSkills || cfg.indexMode) && fs.existsSync(target)) {
|
|
411
|
+
if (!cfg.preserveCopies && (!copyStandardSkills || cfg.indexMode) && fs.existsSync(target)) {
|
|
411
412
|
const targetEntries = fs.readdirSync(target, { withFileTypes: true });
|
|
412
413
|
for (const entry of targetEntries) {
|
|
413
414
|
if (!entry.isDirectory()) continue;
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
},
|
|
162
162
|
"providers": {
|
|
163
163
|
"type": "array",
|
|
164
|
-
"description": "Active AI provider targets",
|
|
164
|
+
"description": "Active AI provider targets; devin is canonical, windsurf is a deprecated alias",
|
|
165
165
|
"items": {
|
|
166
166
|
"type": "string",
|
|
167
167
|
"enum": [
|
|
@@ -169,6 +169,7 @@
|
|
|
169
169
|
"copilot",
|
|
170
170
|
"cursor",
|
|
171
171
|
"warp",
|
|
172
|
+
"devin",
|
|
172
173
|
"windsurf",
|
|
173
174
|
"openclaw",
|
|
174
175
|
"codex",
|