@aiwg/cli 2026.10.6 → 2026.10.8

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 (100) hide show
  1. package/bin/aiwg.mjs +4 -2
  2. package/dist/src/a2a/agent-card.js +11 -0
  3. package/dist/src/api/index.d.ts +1 -0
  4. package/dist/src/api/index.js +1 -0
  5. package/dist/src/artifacts/fortemi-shard-contract/2.2.0/contract.json +103 -0
  6. package/dist/src/artifacts/fortemi-shard-contract/2.2.0/full-v1-embedding-config.schema.json +212 -0
  7. package/dist/src/artifacts/fortemi-shard-contract/2.2.0/full-v1-embedding-set.schema.json +240 -0
  8. package/dist/src/artifacts/fortemi-shard-contract/2.2.0/full-v1-manifest.schema.json +451 -0
  9. package/dist/src/artifacts/fortemi-shard-export.js +284 -0
  10. package/dist/src/artifacts/index-preparation.js +2 -0
  11. package/dist/src/auth/client.js +5 -1
  12. package/dist/src/auth/credential-store.js +5 -1
  13. package/dist/src/auth/sensitive-input.js +151 -0
  14. package/dist/src/channel/manager.mjs +3 -0
  15. package/dist/src/cli/handlers/agentcard.js +47 -25
  16. package/dist/src/cli/handlers/auth.js +22 -2
  17. package/dist/src/cli/handlers/cost-report.js +7 -1
  18. package/dist/src/cli/handlers/decision.js +36 -10
  19. package/dist/src/cli/handlers/effect.js +4 -84
  20. package/dist/src/cli/handlers/guided-setup.js +1 -1
  21. package/dist/src/cli/handlers/init.js +1 -1
  22. package/dist/src/cli/handlers/install.js +6 -0
  23. package/dist/src/cli/handlers/local-executor.js +33 -6
  24. package/dist/src/cli/handlers/marketplace.js +15 -4
  25. package/dist/src/cli/handlers/setup.js +24 -20
  26. package/dist/src/cli/handlers/use.js +57 -15
  27. package/dist/src/cli/prompt-utils.js +73 -0
  28. package/dist/src/config/gitignore.js +4 -0
  29. package/dist/src/config/workspace.js +2 -1
  30. package/dist/src/cost/fleet-report.js +20 -22
  31. package/dist/src/decision/adapters/jev.js +20 -31
  32. package/dist/src/decision/ask.js +6 -1
  33. package/dist/src/decision/benchmark.js +19 -6
  34. package/dist/src/decision/driver.js +2 -2
  35. package/dist/src/decision/jev-credentials.js +18 -5
  36. package/dist/src/decision/ledger.js +230 -34
  37. package/dist/src/decision/qualification/gate-evidence.js +6 -4
  38. package/dist/src/decision/qualification/load-staged.js +47 -10
  39. package/dist/src/decision/qualification/runner.js +7 -3
  40. package/dist/src/discovery/interview.js +10 -5
  41. package/dist/src/discovery/plan-apply.js +26 -30
  42. package/dist/src/discovery/plan-validation.js +2 -2
  43. package/dist/src/effects/host.js +91 -0
  44. package/dist/src/extensions/commands/definitions.js +2 -2
  45. package/dist/src/extensions/project-local-gitignore.js +2 -0
  46. package/dist/src/issues/cli.js +16 -5
  47. package/dist/src/issues/live.js +44 -12
  48. package/dist/src/marketplace/exchange.js +18 -6
  49. package/dist/src/marketplace/provenance.js +3 -2
  50. package/dist/src/mcp/adapters/codex-runtime.js +46 -76
  51. package/dist/src/mcp/cli.mjs +122 -109
  52. package/dist/src/mcp/credentials.d.mts +4 -0
  53. package/dist/src/mcp/credentials.mjs +44 -3
  54. package/dist/src/mcp/grok-build-config.mjs +4 -1
  55. package/dist/src/mcp/muse-native-config.mjs +2 -1
  56. package/dist/src/mcp/omp-config.mjs +2 -0
  57. package/dist/src/mcp/registry.js +19 -15
  58. package/dist/src/mcp/registry.mjs +2 -18
  59. package/dist/src/mcp/tools/agentic-sandbox.mjs +46 -28
  60. package/dist/src/mcp/tools/worker-invoke.mjs +13 -2
  61. package/dist/src/memory/project-registry.js +2 -1
  62. package/dist/src/mission-protocol/worker-status.js +91 -1
  63. package/dist/src/models/grok-build-models.js +20 -0
  64. package/dist/src/models/worker-installation.d.mts +1 -1
  65. package/dist/src/models/worker-installation.mjs +65 -4
  66. package/dist/src/packages/adapters/git.js +99 -23
  67. package/dist/src/packages/adapters/gitea.js +8 -27
  68. package/dist/src/packages/adapters/github.js +7 -25
  69. package/dist/src/packages/registry.js +4 -4
  70. package/dist/src/process/cli-command.d.mts +5 -0
  71. package/dist/src/process/cli-command.mjs +42 -0
  72. package/dist/src/providers/provider-definitions.js +2 -2
  73. package/dist/src/serve/shared-host-scheduler.js +4 -1
  74. package/dist/src/serve/worker-invocation.js +10 -0
  75. package/dist/src/smiths/context-pipeline/claude-hook.js +9 -9
  76. package/dist/src/smiths/context-pipeline/context-file-safety.js +330 -9
  77. package/dist/src/smiths/context-pipeline/finalization.js +3 -2
  78. package/dist/src/smiths/context-pipeline/generator.js +7 -19
  79. package/dist/src/smiths/context-pipeline/legacy-inject.js +3 -10
  80. package/dist/src/smiths/context-pipeline/managed-hook.js +5 -5
  81. package/dist/src/smiths/context-pipeline/workspace-context.js +4 -12
  82. package/dist/src/storage/backends/fortemi.js +107 -49
  83. package/dist/src/tracker/project-inputs.js +2 -0
  84. package/dist/src/update/notifier.mjs +2 -4
  85. package/package.json +1 -1
  86. package/tools/agents/providers/base.mjs +5 -1
  87. package/tools/agents/providers/claude.mjs +5 -2
  88. package/tools/agents/providers/codex.mjs +4 -1
  89. package/tools/agents/providers/context-write.mjs +28 -0
  90. package/tools/agents/providers/copilot.mjs +5 -2
  91. package/tools/agents/providers/hermes.mjs +5 -2
  92. package/tools/agents/providers/omp.mjs +3 -1
  93. package/tools/agents/providers/rule-delivery.mjs +29 -12
  94. package/tools/agents/providers/warp.mjs +4 -1
  95. package/tools/agents/providers/windsurf.mjs +6 -3
  96. package/tools/ralph-external/lib/consecutive-failure-circuit-breaker.mjs +26 -0
  97. package/tools/ralph-external/lib/launcher-recovery-evidence.mjs +7 -1
  98. package/tools/ralph-external/lib/recovery-probe.mjs +14 -4
  99. package/tools/ralph-external/process-monitor.mjs +42 -4
  100. package/tools/ralph-external/session-launcher.mjs +125 -3
@@ -0,0 +1,451 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schemas.fortemi.dev/knowledge-shard/2.2.0/full-v1/manifest.schema.json",
4
+ "title": "Fortemi Knowledge Shard full-v1 candidate manifest",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": [
8
+ "version",
9
+ "profile",
10
+ "producer",
11
+ "format",
12
+ "created_at",
13
+ "components",
14
+ "counts",
15
+ "checksums",
16
+ "min_reader_version"
17
+ ],
18
+ "properties": {
19
+ "version": {
20
+ "const": "2.2.0"
21
+ },
22
+ "profile": {
23
+ "const": "full-v1"
24
+ },
25
+ "producer": {
26
+ "type": "object",
27
+ "additionalProperties": false,
28
+ "required": [
29
+ "name",
30
+ "version"
31
+ ],
32
+ "properties": {
33
+ "name": {
34
+ "type": "string",
35
+ "minLength": 1
36
+ },
37
+ "version": {
38
+ "type": "string",
39
+ "minLength": 1
40
+ },
41
+ "revision": {
42
+ "type": "string",
43
+ "minLength": 1
44
+ }
45
+ }
46
+ },
47
+ "matric_version": {
48
+ "type": "string",
49
+ "minLength": 1,
50
+ "deprecated": true
51
+ },
52
+ "format": {
53
+ "const": "matric-shard"
54
+ },
55
+ "created_at": {
56
+ "type": "string",
57
+ "format": "date-time"
58
+ },
59
+ "components": {
60
+ "type": "array",
61
+ "minItems": 33,
62
+ "maxItems": 33,
63
+ "uniqueItems": true,
64
+ "items": {
65
+ "enum": [
66
+ "notes",
67
+ "collections",
68
+ "tags",
69
+ "templates",
70
+ "links",
71
+ "note_originals",
72
+ "note_original_history",
73
+ "note_revised_current",
74
+ "note_revisions",
75
+ "embedding_configs",
76
+ "embedding_sets",
77
+ "embedding_set_members",
78
+ "embeddings",
79
+ "provenance_edges",
80
+ "provenance_activities",
81
+ "named_locations",
82
+ "provenance_locations",
83
+ "provenance_devices",
84
+ "provenance_records",
85
+ "skos_schemes",
86
+ "skos_concepts",
87
+ "skos_labels",
88
+ "skos_notes",
89
+ "skos_relations",
90
+ "skos_mapping_relations",
91
+ "skos_scheme_memberships",
92
+ "note_skos_tags",
93
+ "skos_collections",
94
+ "skos_collection_members",
95
+ "graph_sources",
96
+ "graph_edges",
97
+ "communities",
98
+ "community_assignments"
99
+ ]
100
+ }
101
+ },
102
+ "counts": {
103
+ "$ref": "#/$defs/counts"
104
+ },
105
+ "checksums": {
106
+ "$ref": "#/$defs/checksums"
107
+ },
108
+ "min_reader_version": {
109
+ "const": "2.2.0"
110
+ },
111
+ "migrated_from": {
112
+ "$ref": "#/$defs/strictSemVer"
113
+ },
114
+ "migration_history": {
115
+ "type": "array",
116
+ "items": {
117
+ "type": "object",
118
+ "additionalProperties": false,
119
+ "required": [
120
+ "from_version",
121
+ "to_version",
122
+ "migrated_at",
123
+ "migrated_by",
124
+ "changes"
125
+ ],
126
+ "properties": {
127
+ "from_version": {
128
+ "$ref": "#/$defs/strictSemVer"
129
+ },
130
+ "to_version": {
131
+ "$ref": "#/$defs/strictSemVer"
132
+ },
133
+ "migrated_at": {
134
+ "type": "string",
135
+ "format": "date-time"
136
+ },
137
+ "migrated_by": {
138
+ "type": "string",
139
+ "minLength": 1
140
+ },
141
+ "changes": {
142
+ "type": "array",
143
+ "minItems": 1,
144
+ "items": {
145
+ "type": "string",
146
+ "minLength": 1
147
+ }
148
+ }
149
+ }
150
+ }
151
+ }
152
+ },
153
+ "$defs": {
154
+ "strictSemVer": {
155
+ "type": "string",
156
+ "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"
157
+ },
158
+ "sha256": {
159
+ "type": "string",
160
+ "pattern": "^[0-9a-f]{64}$"
161
+ },
162
+ "count": {
163
+ "type": "integer",
164
+ "minimum": 0
165
+ },
166
+ "counts": {
167
+ "type": "object",
168
+ "additionalProperties": false,
169
+ "required": [
170
+ "notes",
171
+ "collections",
172
+ "tags",
173
+ "templates",
174
+ "links",
175
+ "note_originals",
176
+ "note_original_history",
177
+ "note_revised_current",
178
+ "note_revisions",
179
+ "embedding_configs",
180
+ "embedding_sets",
181
+ "embedding_set_members",
182
+ "embeddings",
183
+ "provenance_edges",
184
+ "provenance_activities",
185
+ "named_locations",
186
+ "provenance_locations",
187
+ "provenance_devices",
188
+ "provenance_records",
189
+ "skos_schemes",
190
+ "skos_concepts",
191
+ "skos_labels",
192
+ "skos_notes",
193
+ "skos_relations",
194
+ "skos_mapping_relations",
195
+ "skos_scheme_memberships",
196
+ "note_skos_tags",
197
+ "skos_collections",
198
+ "skos_collection_members",
199
+ "graph_sources",
200
+ "graph_edges",
201
+ "community_sets",
202
+ "communities",
203
+ "community_assignments"
204
+ ],
205
+ "properties": {
206
+ "notes": {
207
+ "$ref": "#/$defs/count"
208
+ },
209
+ "collections": {
210
+ "$ref": "#/$defs/count"
211
+ },
212
+ "tags": {
213
+ "$ref": "#/$defs/count"
214
+ },
215
+ "templates": {
216
+ "$ref": "#/$defs/count"
217
+ },
218
+ "links": {
219
+ "$ref": "#/$defs/count"
220
+ },
221
+ "note_originals": {
222
+ "$ref": "#/$defs/count"
223
+ },
224
+ "note_original_history": {
225
+ "$ref": "#/$defs/count"
226
+ },
227
+ "note_revised_current": {
228
+ "$ref": "#/$defs/count"
229
+ },
230
+ "note_revisions": {
231
+ "$ref": "#/$defs/count"
232
+ },
233
+ "embedding_configs": {
234
+ "$ref": "#/$defs/count"
235
+ },
236
+ "embedding_sets": {
237
+ "$ref": "#/$defs/count"
238
+ },
239
+ "embedding_set_members": {
240
+ "$ref": "#/$defs/count"
241
+ },
242
+ "embeddings": {
243
+ "$ref": "#/$defs/count"
244
+ },
245
+ "provenance_edges": {
246
+ "$ref": "#/$defs/count"
247
+ },
248
+ "provenance_activities": {
249
+ "$ref": "#/$defs/count"
250
+ },
251
+ "named_locations": {
252
+ "$ref": "#/$defs/count"
253
+ },
254
+ "provenance_locations": {
255
+ "$ref": "#/$defs/count"
256
+ },
257
+ "provenance_devices": {
258
+ "$ref": "#/$defs/count"
259
+ },
260
+ "provenance_records": {
261
+ "$ref": "#/$defs/count"
262
+ },
263
+ "skos_schemes": {
264
+ "$ref": "#/$defs/count"
265
+ },
266
+ "skos_concepts": {
267
+ "$ref": "#/$defs/count"
268
+ },
269
+ "skos_labels": {
270
+ "$ref": "#/$defs/count"
271
+ },
272
+ "skos_notes": {
273
+ "$ref": "#/$defs/count"
274
+ },
275
+ "skos_relations": {
276
+ "$ref": "#/$defs/count"
277
+ },
278
+ "skos_mapping_relations": {
279
+ "$ref": "#/$defs/count"
280
+ },
281
+ "skos_scheme_memberships": {
282
+ "$ref": "#/$defs/count"
283
+ },
284
+ "note_skos_tags": {
285
+ "$ref": "#/$defs/count"
286
+ },
287
+ "skos_collections": {
288
+ "$ref": "#/$defs/count"
289
+ },
290
+ "skos_collection_members": {
291
+ "$ref": "#/$defs/count"
292
+ },
293
+ "graph_sources": {
294
+ "$ref": "#/$defs/count"
295
+ },
296
+ "graph_edges": {
297
+ "$ref": "#/$defs/count"
298
+ },
299
+ "community_sets": {
300
+ "$ref": "#/$defs/count"
301
+ },
302
+ "communities": {
303
+ "$ref": "#/$defs/count"
304
+ },
305
+ "community_assignments": {
306
+ "$ref": "#/$defs/count"
307
+ }
308
+ }
309
+ },
310
+ "checksums": {
311
+ "type": "object",
312
+ "additionalProperties": false,
313
+ "required": [
314
+ "notes.jsonl",
315
+ "collections.json",
316
+ "tags.json",
317
+ "templates.json",
318
+ "links.jsonl",
319
+ "note_originals.jsonl",
320
+ "note_original_history.jsonl",
321
+ "note_revised_current.jsonl",
322
+ "note_revisions.jsonl",
323
+ "embedding_configs.json",
324
+ "embedding_sets.json",
325
+ "embedding_set_members.jsonl",
326
+ "embeddings.jsonl",
327
+ "provenance_edges.jsonl",
328
+ "provenance_activities.jsonl",
329
+ "named_locations.jsonl",
330
+ "provenance_locations.jsonl",
331
+ "provenance_devices.jsonl",
332
+ "provenance_records.jsonl",
333
+ "skos_schemes.json",
334
+ "skos_concepts.json",
335
+ "skos_labels.jsonl",
336
+ "skos_notes.jsonl",
337
+ "skos_relations.jsonl",
338
+ "skos_mapping_relations.jsonl",
339
+ "skos_scheme_memberships.jsonl",
340
+ "note_skos_tags.jsonl",
341
+ "skos_collections.json",
342
+ "skos_collection_members.jsonl",
343
+ "graph_sources.json",
344
+ "graph_edges.jsonl",
345
+ "communities.json",
346
+ "community_assignments.jsonl"
347
+ ],
348
+ "properties": {
349
+ "notes.jsonl": {
350
+ "$ref": "#/$defs/sha256"
351
+ },
352
+ "collections.json": {
353
+ "$ref": "#/$defs/sha256"
354
+ },
355
+ "tags.json": {
356
+ "$ref": "#/$defs/sha256"
357
+ },
358
+ "templates.json": {
359
+ "$ref": "#/$defs/sha256"
360
+ },
361
+ "links.jsonl": {
362
+ "$ref": "#/$defs/sha256"
363
+ },
364
+ "note_originals.jsonl": {
365
+ "$ref": "#/$defs/sha256"
366
+ },
367
+ "note_original_history.jsonl": {
368
+ "$ref": "#/$defs/sha256"
369
+ },
370
+ "note_revised_current.jsonl": {
371
+ "$ref": "#/$defs/sha256"
372
+ },
373
+ "note_revisions.jsonl": {
374
+ "$ref": "#/$defs/sha256"
375
+ },
376
+ "embedding_configs.json": {
377
+ "$ref": "#/$defs/sha256"
378
+ },
379
+ "embedding_sets.json": {
380
+ "$ref": "#/$defs/sha256"
381
+ },
382
+ "embedding_set_members.jsonl": {
383
+ "$ref": "#/$defs/sha256"
384
+ },
385
+ "embeddings.jsonl": {
386
+ "$ref": "#/$defs/sha256"
387
+ },
388
+ "provenance_edges.jsonl": {
389
+ "$ref": "#/$defs/sha256"
390
+ },
391
+ "provenance_activities.jsonl": {
392
+ "$ref": "#/$defs/sha256"
393
+ },
394
+ "named_locations.jsonl": {
395
+ "$ref": "#/$defs/sha256"
396
+ },
397
+ "provenance_locations.jsonl": {
398
+ "$ref": "#/$defs/sha256"
399
+ },
400
+ "provenance_devices.jsonl": {
401
+ "$ref": "#/$defs/sha256"
402
+ },
403
+ "provenance_records.jsonl": {
404
+ "$ref": "#/$defs/sha256"
405
+ },
406
+ "skos_schemes.json": {
407
+ "$ref": "#/$defs/sha256"
408
+ },
409
+ "skos_concepts.json": {
410
+ "$ref": "#/$defs/sha256"
411
+ },
412
+ "skos_labels.jsonl": {
413
+ "$ref": "#/$defs/sha256"
414
+ },
415
+ "skos_notes.jsonl": {
416
+ "$ref": "#/$defs/sha256"
417
+ },
418
+ "skos_relations.jsonl": {
419
+ "$ref": "#/$defs/sha256"
420
+ },
421
+ "skos_mapping_relations.jsonl": {
422
+ "$ref": "#/$defs/sha256"
423
+ },
424
+ "skos_scheme_memberships.jsonl": {
425
+ "$ref": "#/$defs/sha256"
426
+ },
427
+ "note_skos_tags.jsonl": {
428
+ "$ref": "#/$defs/sha256"
429
+ },
430
+ "skos_collections.json": {
431
+ "$ref": "#/$defs/sha256"
432
+ },
433
+ "skos_collection_members.jsonl": {
434
+ "$ref": "#/$defs/sha256"
435
+ },
436
+ "graph_sources.json": {
437
+ "$ref": "#/$defs/sha256"
438
+ },
439
+ "graph_edges.jsonl": {
440
+ "$ref": "#/$defs/sha256"
441
+ },
442
+ "communities.json": {
443
+ "$ref": "#/$defs/sha256"
444
+ },
445
+ "community_assignments.jsonl": {
446
+ "$ref": "#/$defs/sha256"
447
+ }
448
+ }
449
+ }
450
+ }
451
+ }