chainlesschain 0.145.0 → 0.156.0

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 (184) hide show
  1. package/README.md +52 -3
  2. package/package.json +1 -1
  3. package/src/commands/a2a.js +201 -0
  4. package/src/commands/activitypub.js +207 -0
  5. package/src/commands/agent-network.js +217 -0
  6. package/src/commands/agent.js +1250 -0
  7. package/src/commands/automation.js +201 -0
  8. package/src/commands/bi.js +203 -0
  9. package/src/commands/browse.js +213 -0
  10. package/src/commands/chat.js +605 -0
  11. package/src/commands/cli-anything.js +426 -0
  12. package/src/commands/codegen.js +207 -0
  13. package/src/commands/collab.js +211 -0
  14. package/src/commands/compliance.js +822 -0
  15. package/src/commands/config.js +213 -0
  16. package/src/commands/cowork.js +1666 -0
  17. package/src/commands/crosschain.js +203 -0
  18. package/src/commands/dao.js +203 -0
  19. package/src/commands/dbevo.js +227 -0
  20. package/src/commands/dev.js +207 -0
  21. package/src/commands/did-v2.js +217 -0
  22. package/src/commands/did.js +221 -0
  23. package/src/commands/dlp.js +213 -0
  24. package/src/commands/economy.js +199 -0
  25. package/src/commands/encrypt.js +201 -0
  26. package/src/commands/evolution.js +199 -0
  27. package/src/commands/evomap.js +830 -0
  28. package/src/commands/export.js +213 -0
  29. package/src/commands/federation.js +209 -0
  30. package/src/commands/fusion.js +205 -0
  31. package/src/commands/governance.js +209 -0
  32. package/src/commands/hmemory.js +203 -0
  33. package/src/commands/hook.js +209 -0
  34. package/src/commands/import.js +209 -0
  35. package/src/commands/inference.js +207 -0
  36. package/src/commands/infra.js +203 -0
  37. package/src/commands/instinct.js +209 -0
  38. package/src/commands/ipfs.js +207 -0
  39. package/src/commands/kg.js +195 -0
  40. package/src/commands/llm.js +426 -0
  41. package/src/commands/matrix.js +207 -0
  42. package/src/commands/mcp.js +217 -0
  43. package/src/commands/memory.js +412 -0
  44. package/src/commands/multimodal.js +203 -0
  45. package/src/commands/nlprog.js +225 -0
  46. package/src/commands/nostr.js +209 -0
  47. package/src/commands/note.js +205 -0
  48. package/src/commands/ops.js +219 -0
  49. package/src/commands/orchestrate.js +406 -0
  50. package/src/commands/org.js +209 -0
  51. package/src/commands/p2p.js +209 -0
  52. package/src/commands/perception.js +209 -0
  53. package/src/commands/permmem.js +203 -0
  54. package/src/commands/pipeline.js +199 -0
  55. package/src/commands/planmode.js +426 -0
  56. package/src/commands/plugin-ecosystem.js +209 -0
  57. package/src/commands/plugin.js +209 -0
  58. package/src/commands/pqc.js +213 -0
  59. package/src/commands/quantization.js +207 -0
  60. package/src/commands/rcache.js +205 -0
  61. package/src/commands/recommend.js +233 -0
  62. package/src/commands/runtime.js +205 -0
  63. package/src/commands/scim.js +209 -0
  64. package/src/commands/services.js +207 -0
  65. package/src/commands/session.js +209 -0
  66. package/src/commands/setup.js +205 -0
  67. package/src/commands/skill.js +414 -0
  68. package/src/commands/social.js +201 -0
  69. package/src/commands/sso.js +209 -0
  70. package/src/commands/start.js +209 -0
  71. package/src/commands/stream.js +213 -0
  72. package/src/commands/sync.js +209 -0
  73. package/src/commands/tech.js +209 -0
  74. package/src/commands/tenant.js +217 -0
  75. package/src/commands/tokens.js +209 -0
  76. package/src/commands/trust.js +217 -0
  77. package/src/commands/ui.js +225 -0
  78. package/src/commands/wallet.js +209 -0
  79. package/src/commands/workflow.js +412 -0
  80. package/src/index.js +252 -0
  81. package/src/lib/a2a-protocol.js +332 -0
  82. package/src/lib/activitypub-bridge.js +334 -0
  83. package/src/lib/agent-coordinator.js +334 -0
  84. package/src/lib/agent-economy.js +334 -0
  85. package/src/lib/agent-network.js +341 -0
  86. package/src/lib/agent-router.js +333 -0
  87. package/src/lib/aiops.js +346 -0
  88. package/src/lib/automation-engine.js +335 -0
  89. package/src/lib/autonomous-agent.js +332 -0
  90. package/src/lib/autonomous-developer.js +332 -0
  91. package/src/lib/bi-engine.js +333 -0
  92. package/src/lib/browser-automation.js +334 -0
  93. package/src/lib/chat-core.js +335 -0
  94. package/src/lib/cli-anything-bridge.js +341 -0
  95. package/src/lib/cli-context-engineering.js +351 -0
  96. package/src/lib/code-agent.js +339 -0
  97. package/src/lib/collaboration-governance.js +334 -0
  98. package/src/lib/community-governance.js +346 -0
  99. package/src/lib/compliance-manager.js +334 -0
  100. package/src/lib/content-recommendation.js +351 -0
  101. package/src/lib/cowork-adapter.js +336 -0
  102. package/src/lib/cowork-evomap-adapter.js +341 -0
  103. package/src/lib/cowork-mcp-tools.js +341 -0
  104. package/src/lib/cowork-observe-html.js +341 -0
  105. package/src/lib/cowork-observe.js +341 -0
  106. package/src/lib/cowork-share.js +338 -0
  107. package/src/lib/cowork-task-templates.js +342 -1
  108. package/src/lib/cowork-template-marketplace.js +340 -0
  109. package/src/lib/cross-chain.js +339 -0
  110. package/src/lib/crypto-manager.js +334 -0
  111. package/src/lib/dao-governance.js +339 -0
  112. package/src/lib/dbevo.js +351 -0
  113. package/src/lib/decentral-infra.js +330 -0
  114. package/src/lib/did-manager.js +341 -0
  115. package/src/lib/did-v2-manager.js +341 -0
  116. package/src/lib/dlp-engine.js +339 -0
  117. package/src/lib/downloader.js +334 -0
  118. package/src/lib/evolution-system.js +334 -0
  119. package/src/lib/evomap-client.js +342 -0
  120. package/src/lib/evomap-federation.js +338 -0
  121. package/src/lib/evomap-governance.js +334 -0
  122. package/src/lib/evomap-manager.js +330 -0
  123. package/src/lib/execution-backend.js +330 -0
  124. package/src/lib/federation-hardening.js +340 -0
  125. package/src/lib/hashline.js +338 -0
  126. package/src/lib/hierarchical-memory.js +334 -0
  127. package/src/lib/hook-manager.js +341 -0
  128. package/src/lib/inference-network.js +341 -0
  129. package/src/lib/instinct-manager.js +346 -0
  130. package/src/lib/interaction-adapter.js +330 -0
  131. package/src/lib/interactive-planner.js +354 -0
  132. package/src/lib/ipfs-storage.js +334 -0
  133. package/src/lib/knowledge-exporter.js +341 -0
  134. package/src/lib/knowledge-graph.js +331 -0
  135. package/src/lib/knowledge-importer.js +341 -0
  136. package/src/lib/llm-providers.js +346 -0
  137. package/src/lib/matrix-bridge.js +339 -0
  138. package/src/lib/mcp-registry.js +346 -0
  139. package/src/lib/memory-manager.js +336 -0
  140. package/src/lib/multimodal.js +330 -0
  141. package/src/lib/nl-programming.js +341 -0
  142. package/src/lib/nostr-bridge.js +336 -0
  143. package/src/lib/note-versioning.js +339 -0
  144. package/src/lib/org-manager.js +336 -0
  145. package/src/lib/p2p-manager.js +341 -0
  146. package/src/lib/perception.js +346 -0
  147. package/src/lib/permanent-memory.js +327 -0
  148. package/src/lib/pipeline-orchestrator.js +332 -0
  149. package/src/lib/plan-mode.js +336 -0
  150. package/src/lib/plugin-autodiscovery.js +334 -0
  151. package/src/lib/plugin-ecosystem.js +346 -0
  152. package/src/lib/pqc-manager.js +346 -0
  153. package/src/lib/process-manager.js +336 -0
  154. package/src/lib/protocol-fusion.js +338 -0
  155. package/src/lib/provider-options.js +346 -0
  156. package/src/lib/provider-stream.js +348 -0
  157. package/src/lib/quantization.js +337 -0
  158. package/src/lib/response-cache.js +333 -0
  159. package/src/lib/scim-manager.js +346 -0
  160. package/src/lib/service-manager.js +337 -0
  161. package/src/lib/session-core-singletons.js +341 -0
  162. package/src/lib/session-manager.js +334 -0
  163. package/src/lib/skill-loader.js +334 -0
  164. package/src/lib/skill-mcp.js +336 -0
  165. package/src/lib/social-manager.js +330 -0
  166. package/src/lib/sso-manager.js +340 -0
  167. package/src/lib/stix-parser.js +346 -0
  168. package/src/lib/sub-agent-context.js +343 -0
  169. package/src/lib/sub-agent-profiles.js +335 -0
  170. package/src/lib/sub-agent-registry.js +336 -0
  171. package/src/lib/sync-manager.js +336 -0
  172. package/src/lib/tech-learning-engine.js +341 -0
  173. package/src/lib/tenant-saas.js +341 -0
  174. package/src/lib/threat-intel.js +330 -0
  175. package/src/lib/todo-manager.js +336 -0
  176. package/src/lib/token-tracker.js +336 -0
  177. package/src/lib/trust-security.js +343 -0
  178. package/src/lib/ueba.js +340 -0
  179. package/src/lib/universal-runtime.js +330 -0
  180. package/src/lib/wallet-manager.js +336 -0
  181. package/src/lib/web-ui-server.js +348 -0
  182. package/src/lib/workflow-engine.js +330 -0
  183. package/src/lib/workflow-expr.js +346 -0
  184. package/src/lib/ws-chat-handler.js +337 -0
@@ -214,3 +214,216 @@ function printConfig(obj, indent = "") {
214
214
  }
215
215
  }
216
216
  }
217
+
218
+ // === Iter27 V2 governance overlay ===
219
+ export function registerScsgovV2Commands(program) {
220
+ const parent = program.commands.find((c) => c.name() === "config");
221
+ if (!parent) return;
222
+ const L = async () => await import("../lib/session-core-singletons.js");
223
+ parent
224
+ .command("scsgov-enums-v2")
225
+ .description("Show V2 enums")
226
+ .action(async () => {
227
+ const m = await L();
228
+ console.log(
229
+ JSON.stringify(
230
+ {
231
+ profileMaturity: m.SCSGOV_PROFILE_MATURITY_V2,
232
+ accessLifecycle: m.SCSGOV_ACCESS_LIFECYCLE_V2,
233
+ },
234
+ null,
235
+ 2,
236
+ ),
237
+ );
238
+ });
239
+ parent
240
+ .command("scsgov-config-v2")
241
+ .description("Show V2 config")
242
+ .action(async () => {
243
+ const m = await L();
244
+ console.log(
245
+ JSON.stringify(
246
+ {
247
+ maxActive: m.getMaxActiveScsgovProfilesPerOwnerV2(),
248
+ maxPending: m.getMaxPendingScsgovAccesssPerProfileV2(),
249
+ idleMs: m.getScsgovProfileIdleMsV2(),
250
+ stuckMs: m.getScsgovAccessStuckMsV2(),
251
+ },
252
+ null,
253
+ 2,
254
+ ),
255
+ );
256
+ });
257
+ parent
258
+ .command("scsgov-set-max-active-v2 <n>")
259
+ .description("Set max active")
260
+ .action(async (n) => {
261
+ (await L()).setMaxActiveScsgovProfilesPerOwnerV2(Number(n));
262
+ console.log("ok");
263
+ });
264
+ parent
265
+ .command("scsgov-set-max-pending-v2 <n>")
266
+ .description("Set max pending")
267
+ .action(async (n) => {
268
+ (await L()).setMaxPendingScsgovAccesssPerProfileV2(Number(n));
269
+ console.log("ok");
270
+ });
271
+ parent
272
+ .command("scsgov-set-idle-ms-v2 <n>")
273
+ .description("Set idle threshold ms")
274
+ .action(async (n) => {
275
+ (await L()).setScsgovProfileIdleMsV2(Number(n));
276
+ console.log("ok");
277
+ });
278
+ parent
279
+ .command("scsgov-set-stuck-ms-v2 <n>")
280
+ .description("Set stuck threshold ms")
281
+ .action(async (n) => {
282
+ (await L()).setScsgovAccessStuckMsV2(Number(n));
283
+ console.log("ok");
284
+ });
285
+ parent
286
+ .command("scsgov-register-v2 <id> <owner>")
287
+ .description("Register V2 profile")
288
+ .option("--component <v>", "component")
289
+ .action(async (id, owner, o) => {
290
+ const m = await L();
291
+ console.log(
292
+ JSON.stringify(
293
+ m.registerScsgovProfileV2({ id, owner, component: o.component }),
294
+ null,
295
+ 2,
296
+ ),
297
+ );
298
+ });
299
+ parent
300
+ .command("scsgov-activate-v2 <id>")
301
+ .description("Activate profile")
302
+ .action(async (id) => {
303
+ console.log(
304
+ JSON.stringify((await L()).activateScsgovProfileV2(id), null, 2),
305
+ );
306
+ });
307
+ parent
308
+ .command("scsgov-stale-v2 <id>")
309
+ .description("Stale profile")
310
+ .action(async (id) => {
311
+ console.log(
312
+ JSON.stringify((await L()).staleScsgovProfileV2(id), null, 2),
313
+ );
314
+ });
315
+ parent
316
+ .command("scsgov-archive-v2 <id>")
317
+ .description("Archive profile")
318
+ .action(async (id) => {
319
+ console.log(
320
+ JSON.stringify((await L()).archiveScsgovProfileV2(id), null, 2),
321
+ );
322
+ });
323
+ parent
324
+ .command("scsgov-touch-v2 <id>")
325
+ .description("Touch profile")
326
+ .action(async (id) => {
327
+ console.log(
328
+ JSON.stringify((await L()).touchScsgovProfileV2(id), null, 2),
329
+ );
330
+ });
331
+ parent
332
+ .command("scsgov-get-v2 <id>")
333
+ .description("Get profile")
334
+ .action(async (id) => {
335
+ console.log(JSON.stringify((await L()).getScsgovProfileV2(id), null, 2));
336
+ });
337
+ parent
338
+ .command("scsgov-list-v2")
339
+ .description("List profiles")
340
+ .action(async () => {
341
+ console.log(JSON.stringify((await L()).listScsgovProfilesV2(), null, 2));
342
+ });
343
+ parent
344
+ .command("scsgov-create-access-v2 <id> <profileId>")
345
+ .description("Create access")
346
+ .option("--caller <v>", "caller")
347
+ .action(async (id, profileId, o) => {
348
+ const m = await L();
349
+ console.log(
350
+ JSON.stringify(
351
+ m.createScsgovAccessV2({ id, profileId, caller: o.caller }),
352
+ null,
353
+ 2,
354
+ ),
355
+ );
356
+ });
357
+ parent
358
+ .command("scsgov-resolving-access-v2 <id>")
359
+ .description("Mark access as resolving")
360
+ .action(async (id) => {
361
+ console.log(
362
+ JSON.stringify((await L()).resolvingScsgovAccessV2(id), null, 2),
363
+ );
364
+ });
365
+ parent
366
+ .command("scsgov-complete-access-v2 <id>")
367
+ .description("Complete access")
368
+ .action(async (id) => {
369
+ console.log(
370
+ JSON.stringify((await L()).completeAccessScsgovV2(id), null, 2),
371
+ );
372
+ });
373
+ parent
374
+ .command("scsgov-fail-access-v2 <id> [reason]")
375
+ .description("Fail access")
376
+ .action(async (id, reason) => {
377
+ console.log(
378
+ JSON.stringify((await L()).failScsgovAccessV2(id, reason), null, 2),
379
+ );
380
+ });
381
+ parent
382
+ .command("scsgov-cancel-access-v2 <id> [reason]")
383
+ .description("Cancel access")
384
+ .action(async (id, reason) => {
385
+ console.log(
386
+ JSON.stringify((await L()).cancelScsgovAccessV2(id, reason), null, 2),
387
+ );
388
+ });
389
+ parent
390
+ .command("scsgov-get-access-v2 <id>")
391
+ .description("Get access")
392
+ .action(async (id) => {
393
+ console.log(JSON.stringify((await L()).getScsgovAccessV2(id), null, 2));
394
+ });
395
+ parent
396
+ .command("scsgov-list-accesss-v2")
397
+ .description("List accesss")
398
+ .action(async () => {
399
+ console.log(JSON.stringify((await L()).listScsgovAccesssV2(), null, 2));
400
+ });
401
+ parent
402
+ .command("scsgov-auto-stale-idle-v2")
403
+ .description("Auto-stale idle")
404
+ .action(async () => {
405
+ console.log(
406
+ JSON.stringify((await L()).autoStaleIdleScsgovProfilesV2(), null, 2),
407
+ );
408
+ });
409
+ parent
410
+ .command("scsgov-auto-fail-stuck-v2")
411
+ .description("Auto-fail stuck accesss")
412
+ .action(async () => {
413
+ console.log(
414
+ JSON.stringify((await L()).autoFailStuckScsgovAccesssV2(), null, 2),
415
+ );
416
+ });
417
+ parent
418
+ .command("scsgov-gov-stats-v2")
419
+ .description("V2 gov stats")
420
+ .action(async () => {
421
+ console.log(
422
+ JSON.stringify(
423
+ (await L()).getSessionCoreSingletonsGovStatsV2(),
424
+ null,
425
+ 2,
426
+ ),
427
+ );
428
+ });
429
+ }