chainlesschain 0.143.0 → 0.152.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 (227) hide show
  1. package/package.json +1 -1
  2. package/src/commands/a2a.js +196 -28
  3. package/src/commands/activitypub.js +364 -27
  4. package/src/commands/agent-network.js +217 -0
  5. package/src/commands/agent.js +587 -103
  6. package/src/commands/audit.js +206 -0
  7. package/src/commands/automation.js +201 -0
  8. package/src/commands/bi.js +355 -27
  9. package/src/commands/bm25.js +111 -27
  10. package/src/commands/browse.js +403 -29
  11. package/src/commands/ccron.js +128 -28
  12. package/src/commands/chat.js +207 -0
  13. package/src/commands/codegen.js +207 -0
  14. package/src/commands/collab.js +211 -0
  15. package/src/commands/compliance.js +824 -34
  16. package/src/commands/compt.js +127 -29
  17. package/src/commands/consol.js +8 -2
  18. package/src/commands/cowork.js +783 -34
  19. package/src/commands/crosschain.js +182 -28
  20. package/src/commands/dao.js +182 -28
  21. package/src/commands/dbevo.js +227 -0
  22. package/src/commands/dev.js +207 -0
  23. package/src/commands/did-v2.js +217 -0
  24. package/src/commands/did.js +221 -0
  25. package/src/commands/dlp.js +385 -27
  26. package/src/commands/economy.js +205 -50
  27. package/src/commands/evolution.js +203 -50
  28. package/src/commands/evomap.js +387 -27
  29. package/src/commands/export.js +213 -0
  30. package/src/commands/federation.js +209 -0
  31. package/src/commands/fflag.js +74 -22
  32. package/src/commands/fusion.js +205 -0
  33. package/src/commands/git.js +177 -37
  34. package/src/commands/governance.js +209 -0
  35. package/src/commands/hardening.js +209 -0
  36. package/src/commands/hmemory.js +204 -50
  37. package/src/commands/hook.js +209 -0
  38. package/src/commands/import.js +209 -0
  39. package/src/commands/incentive.js +209 -0
  40. package/src/commands/inference.js +170 -34
  41. package/src/commands/infra.js +203 -0
  42. package/src/commands/instinct.js +209 -0
  43. package/src/commands/ipfs.js +207 -0
  44. package/src/commands/itbudget.js +149 -33
  45. package/src/commands/kg.js +206 -0
  46. package/src/commands/llm.js +217 -0
  47. package/src/commands/lowcode.js +195 -38
  48. package/src/commands/marketplace.js +206 -0
  49. package/src/commands/matrix.js +386 -27
  50. package/src/commands/mcp.js +217 -0
  51. package/src/commands/mcpscaf.js +145 -33
  52. package/src/commands/meminj.js +145 -33
  53. package/src/commands/memory.js +209 -0
  54. package/src/commands/multimodal.js +203 -0
  55. package/src/commands/nlprog.js +225 -0
  56. package/src/commands/nostr.js +387 -27
  57. package/src/commands/note.js +205 -0
  58. package/src/commands/ops.js +219 -0
  59. package/src/commands/orchestrate.js +217 -0
  60. package/src/commands/orchgov.js +144 -33
  61. package/src/commands/org.js +209 -0
  62. package/src/commands/p2p.js +209 -0
  63. package/src/commands/pdfp.js +109 -27
  64. package/src/commands/perception.js +209 -0
  65. package/src/commands/perf.js +169 -32
  66. package/src/commands/perm.js +144 -33
  67. package/src/commands/permmem.js +203 -0
  68. package/src/commands/pipeline.js +207 -52
  69. package/src/commands/planmode.js +141 -32
  70. package/src/commands/plugin-ecosystem.js +209 -0
  71. package/src/commands/pqc.js +213 -0
  72. package/src/commands/privacy.js +203 -0
  73. package/src/commands/promcomp.js +111 -27
  74. package/src/commands/quantization.js +207 -0
  75. package/src/commands/rcache.js +205 -0
  76. package/src/commands/recommend.js +410 -34
  77. package/src/commands/reputation.js +208 -0
  78. package/src/commands/runtime.js +205 -0
  79. package/src/commands/sandbox.js +206 -0
  80. package/src/commands/scim.js +209 -0
  81. package/src/commands/seshhook.js +145 -33
  82. package/src/commands/seshsearch.js +141 -33
  83. package/src/commands/seshtail.js +144 -33
  84. package/src/commands/seshu.js +152 -33
  85. package/src/commands/session.js +209 -0
  86. package/src/commands/sganal.js +123 -29
  87. package/src/commands/siem.js +201 -34
  88. package/src/commands/skill.js +207 -0
  89. package/src/commands/sla.js +212 -0
  90. package/src/commands/slotfill.js +146 -33
  91. package/src/commands/social.js +358 -32
  92. package/src/commands/sso.js +209 -0
  93. package/src/commands/stress.js +206 -0
  94. package/src/commands/svccont.js +145 -33
  95. package/src/commands/sync.js +209 -0
  96. package/src/commands/tech.js +209 -0
  97. package/src/commands/tenant.js +217 -0
  98. package/src/commands/terraform.js +206 -0
  99. package/src/commands/tms.js +171 -33
  100. package/src/commands/tokens.js +209 -0
  101. package/src/commands/topiccls.js +146 -33
  102. package/src/commands/trust.js +217 -0
  103. package/src/commands/uprof.js +141 -32
  104. package/src/commands/vcheck.js +122 -28
  105. package/src/commands/wallet.js +209 -0
  106. package/src/commands/webfetch.js +141 -32
  107. package/src/commands/workflow.js +203 -0
  108. package/src/commands/zkp.js +184 -28
  109. package/src/index.js +180 -0
  110. package/src/lib/a2a-protocol.js +319 -51
  111. package/src/lib/activitypub-bridge.js +622 -50
  112. package/src/lib/agent-economy.js +304 -51
  113. package/src/lib/agent-network.js +341 -0
  114. package/src/lib/aiops.js +346 -0
  115. package/src/lib/app-builder.js +279 -46
  116. package/src/lib/audit-logger.js +321 -0
  117. package/src/lib/automation-engine.js +335 -0
  118. package/src/lib/autonomous-agent.js +284 -48
  119. package/src/lib/autonomous-developer.js +332 -0
  120. package/src/lib/bi-engine.js +616 -49
  121. package/src/lib/bm25-search.js +301 -49
  122. package/src/lib/browser-automation.js +630 -49
  123. package/src/lib/chat-core.js +336 -0
  124. package/src/lib/claude-code-bridge.js +341 -0
  125. package/src/lib/code-agent.js +339 -0
  126. package/src/lib/collaboration-governance.js +334 -0
  127. package/src/lib/community-governance.js +346 -0
  128. package/src/lib/compliance-framework-reporter.js +305 -51
  129. package/src/lib/compliance-manager.js +330 -0
  130. package/src/lib/compression-telemetry.js +301 -49
  131. package/src/lib/content-recommendation.js +351 -0
  132. package/src/lib/content-recommender.js +317 -52
  133. package/src/lib/cowork-cron.js +298 -49
  134. package/src/lib/cowork-learning.js +333 -0
  135. package/src/lib/cowork-share.js +338 -0
  136. package/src/lib/cowork-task-runner.js +308 -51
  137. package/src/lib/cowork-workflow.js +327 -0
  138. package/src/lib/cross-chain.js +311 -51
  139. package/src/lib/dao-governance.js +280 -46
  140. package/src/lib/dbevo.js +351 -0
  141. package/src/lib/decentral-infra.js +330 -0
  142. package/src/lib/did-manager.js +341 -0
  143. package/src/lib/did-v2-manager.js +341 -0
  144. package/src/lib/dlp-engine.js +626 -49
  145. package/src/lib/evolution-system.js +278 -47
  146. package/src/lib/evomap-governance.js +334 -0
  147. package/src/lib/evomap-manager.js +280 -46
  148. package/src/lib/execution-backend.js +294 -48
  149. package/src/lib/feature-flags.js +294 -49
  150. package/src/lib/federation-hardening.js +340 -0
  151. package/src/lib/git-integration.js +285 -47
  152. package/src/lib/hardening-manager.js +341 -0
  153. package/src/lib/hierarchical-memory.js +284 -48
  154. package/src/lib/hook-manager.js +341 -0
  155. package/src/lib/inference-network.js +308 -51
  156. package/src/lib/instinct-manager.js +346 -0
  157. package/src/lib/ipfs-storage.js +334 -0
  158. package/src/lib/iteration-budget.js +302 -50
  159. package/src/lib/knowledge-exporter.js +341 -0
  160. package/src/lib/knowledge-graph.js +333 -0
  161. package/src/lib/knowledge-importer.js +341 -0
  162. package/src/lib/llm-providers.js +346 -0
  163. package/src/lib/matrix-bridge.js +620 -47
  164. package/src/lib/mcp-registry.js +346 -0
  165. package/src/lib/mcp-scaffold.js +318 -54
  166. package/src/lib/memory-injection.js +288 -49
  167. package/src/lib/memory-manager.js +336 -0
  168. package/src/lib/multimodal.js +330 -0
  169. package/src/lib/nl-programming.js +341 -0
  170. package/src/lib/nostr-bridge.js +622 -49
  171. package/src/lib/note-versioning.js +339 -0
  172. package/src/lib/orchestrator.js +293 -48
  173. package/src/lib/org-manager.js +336 -0
  174. package/src/lib/p2p-manager.js +341 -0
  175. package/src/lib/pdf-parser.js +298 -49
  176. package/src/lib/perception.js +346 -0
  177. package/src/lib/perf-tuning.js +309 -50
  178. package/src/lib/permanent-memory.js +327 -0
  179. package/src/lib/permission-engine.js +287 -49
  180. package/src/lib/pipeline-orchestrator.js +289 -49
  181. package/src/lib/plan-mode.js +298 -51
  182. package/src/lib/plugin-ecosystem.js +346 -0
  183. package/src/lib/pqc-manager.js +346 -0
  184. package/src/lib/privacy-computing.js +335 -0
  185. package/src/lib/protocol-fusion.js +338 -0
  186. package/src/lib/quantization.js +337 -0
  187. package/src/lib/reputation-optimizer.js +340 -0
  188. package/src/lib/response-cache.js +333 -0
  189. package/src/lib/sandbox-v2.js +327 -0
  190. package/src/lib/scim-manager.js +346 -0
  191. package/src/lib/service-container.js +313 -52
  192. package/src/lib/session-consolidator.js +296 -49
  193. package/src/lib/session-hooks.js +312 -53
  194. package/src/lib/session-manager.js +334 -0
  195. package/src/lib/session-search.js +304 -51
  196. package/src/lib/session-tail.js +288 -49
  197. package/src/lib/session-usage.js +298 -52
  198. package/src/lib/siem-exporter.js +298 -51
  199. package/src/lib/skill-loader.js +334 -0
  200. package/src/lib/skill-marketplace.js +345 -0
  201. package/src/lib/sla-manager.js +341 -0
  202. package/src/lib/slot-filler.js +303 -51
  203. package/src/lib/social-graph-analytics.js +295 -49
  204. package/src/lib/social-graph.js +272 -49
  205. package/src/lib/social-manager.js +330 -0
  206. package/src/lib/sso-manager.js +340 -0
  207. package/src/lib/stress-tester.js +342 -0
  208. package/src/lib/sub-agent-registry.js +302 -53
  209. package/src/lib/sync-manager.js +336 -0
  210. package/src/lib/task-model-selector.js +302 -50
  211. package/src/lib/tech-learning-engine.js +341 -0
  212. package/src/lib/tenant-saas.js +341 -0
  213. package/src/lib/terraform-manager.js +333 -0
  214. package/src/lib/threat-intel.js +330 -0
  215. package/src/lib/todo-manager.js +281 -47
  216. package/src/lib/token-incentive.js +341 -0
  217. package/src/lib/token-tracker.js +336 -0
  218. package/src/lib/topic-classifier.js +297 -49
  219. package/src/lib/trust-security.js +343 -0
  220. package/src/lib/ueba.js +340 -0
  221. package/src/lib/universal-runtime.js +330 -0
  222. package/src/lib/user-profile.js +294 -50
  223. package/src/lib/version-checker.js +304 -50
  224. package/src/lib/wallet-manager.js +336 -0
  225. package/src/lib/web-fetch.js +292 -51
  226. package/src/lib/workflow-engine.js +330 -0
  227. package/src/lib/zkp-engine.js +286 -49
@@ -848,3 +848,206 @@ export function registerWorkflowCommand(program) {
848
848
  .description("V2 auto-fail stuck")
849
849
  .action(() => _v2json(autoFailStuckRunsV2()));
850
850
  }
851
+
852
+ // === Iter21 V2 governance overlay ===
853
+ export function registerWfgovV2Commands(program) {
854
+ const parent = program.commands.find((c) => c.name() === "workflow");
855
+ if (!parent) return;
856
+ const L = async () => await import("../lib/workflow-engine.js");
857
+ parent
858
+ .command("wfgov-enums-v2")
859
+ .description("Show V2 enums")
860
+ .action(async () => {
861
+ const m = await L();
862
+ console.log(
863
+ JSON.stringify(
864
+ {
865
+ profileMaturity: m.WFGOV_PROFILE_MATURITY_V2,
866
+ stepLifecycle: m.WFGOV_STEP_LIFECYCLE_V2,
867
+ },
868
+ null,
869
+ 2,
870
+ ),
871
+ );
872
+ });
873
+ parent
874
+ .command("wfgov-config-v2")
875
+ .description("Show V2 config")
876
+ .action(async () => {
877
+ const m = await L();
878
+ console.log(
879
+ JSON.stringify(
880
+ {
881
+ maxActive: m.getMaxActiveWfgovProfilesPerOwnerV2(),
882
+ maxPending: m.getMaxPendingWfgovStepsPerProfileV2(),
883
+ idleMs: m.getWfgovProfileIdleMsV2(),
884
+ stuckMs: m.getWfgovStepStuckMsV2(),
885
+ },
886
+ null,
887
+ 2,
888
+ ),
889
+ );
890
+ });
891
+ parent
892
+ .command("wfgov-set-max-active-v2 <n>")
893
+ .description("Set max active")
894
+ .action(async (n) => {
895
+ (await L()).setMaxActiveWfgovProfilesPerOwnerV2(Number(n));
896
+ console.log("ok");
897
+ });
898
+ parent
899
+ .command("wfgov-set-max-pending-v2 <n>")
900
+ .description("Set max pending")
901
+ .action(async (n) => {
902
+ (await L()).setMaxPendingWfgovStepsPerProfileV2(Number(n));
903
+ console.log("ok");
904
+ });
905
+ parent
906
+ .command("wfgov-set-idle-ms-v2 <n>")
907
+ .description("Set idle threshold ms")
908
+ .action(async (n) => {
909
+ (await L()).setWfgovProfileIdleMsV2(Number(n));
910
+ console.log("ok");
911
+ });
912
+ parent
913
+ .command("wfgov-set-stuck-ms-v2 <n>")
914
+ .description("Set stuck threshold ms")
915
+ .action(async (n) => {
916
+ (await L()).setWfgovStepStuckMsV2(Number(n));
917
+ console.log("ok");
918
+ });
919
+ parent
920
+ .command("wfgov-register-v2 <id> <owner>")
921
+ .description("Register V2 profile")
922
+ .option("--kind <v>", "kind")
923
+ .action(async (id, owner, o) => {
924
+ const m = await L();
925
+ console.log(
926
+ JSON.stringify(
927
+ m.registerWfgovProfileV2({ id, owner, kind: o.kind }),
928
+ null,
929
+ 2,
930
+ ),
931
+ );
932
+ });
933
+ parent
934
+ .command("wfgov-activate-v2 <id>")
935
+ .description("Activate profile")
936
+ .action(async (id) => {
937
+ console.log(
938
+ JSON.stringify((await L()).activateWfgovProfileV2(id), null, 2),
939
+ );
940
+ });
941
+ parent
942
+ .command("wfgov-pause-v2 <id>")
943
+ .description("Pause profile")
944
+ .action(async (id) => {
945
+ console.log(JSON.stringify((await L()).pauseWfgovProfileV2(id), null, 2));
946
+ });
947
+ parent
948
+ .command("wfgov-archive-v2 <id>")
949
+ .description("Archive profile")
950
+ .action(async (id) => {
951
+ console.log(
952
+ JSON.stringify((await L()).archiveWfgovProfileV2(id), null, 2),
953
+ );
954
+ });
955
+ parent
956
+ .command("wfgov-touch-v2 <id>")
957
+ .description("Touch profile")
958
+ .action(async (id) => {
959
+ console.log(JSON.stringify((await L()).touchWfgovProfileV2(id), null, 2));
960
+ });
961
+ parent
962
+ .command("wfgov-get-v2 <id>")
963
+ .description("Get profile")
964
+ .action(async (id) => {
965
+ console.log(JSON.stringify((await L()).getWfgovProfileV2(id), null, 2));
966
+ });
967
+ parent
968
+ .command("wfgov-list-v2")
969
+ .description("List profiles")
970
+ .action(async () => {
971
+ console.log(JSON.stringify((await L()).listWfgovProfilesV2(), null, 2));
972
+ });
973
+ parent
974
+ .command("wfgov-create-step-v2 <id> <profileId>")
975
+ .description("Create step")
976
+ .option("--stepName <v>", "stepName")
977
+ .action(async (id, profileId, o) => {
978
+ const m = await L();
979
+ console.log(
980
+ JSON.stringify(
981
+ m.createWfgovStepV2({ id, profileId, stepName: o.stepName }),
982
+ null,
983
+ 2,
984
+ ),
985
+ );
986
+ });
987
+ parent
988
+ .command("wfgov-executing-step-v2 <id>")
989
+ .description("Mark step as executing")
990
+ .action(async (id) => {
991
+ console.log(
992
+ JSON.stringify((await L()).executingWfgovStepV2(id), null, 2),
993
+ );
994
+ });
995
+ parent
996
+ .command("wfgov-complete-step-v2 <id>")
997
+ .description("Complete step")
998
+ .action(async (id) => {
999
+ console.log(JSON.stringify((await L()).completeStepWfgovV2(id), null, 2));
1000
+ });
1001
+ parent
1002
+ .command("wfgov-fail-step-v2 <id> [reason]")
1003
+ .description("Fail step")
1004
+ .action(async (id, reason) => {
1005
+ console.log(
1006
+ JSON.stringify((await L()).failWfgovStepV2(id, reason), null, 2),
1007
+ );
1008
+ });
1009
+ parent
1010
+ .command("wfgov-cancel-step-v2 <id> [reason]")
1011
+ .description("Cancel step")
1012
+ .action(async (id, reason) => {
1013
+ console.log(
1014
+ JSON.stringify((await L()).cancelWfgovStepV2(id, reason), null, 2),
1015
+ );
1016
+ });
1017
+ parent
1018
+ .command("wfgov-get-step-v2 <id>")
1019
+ .description("Get step")
1020
+ .action(async (id) => {
1021
+ console.log(JSON.stringify((await L()).getWfgovStepV2(id), null, 2));
1022
+ });
1023
+ parent
1024
+ .command("wfgov-list-steps-v2")
1025
+ .description("List steps")
1026
+ .action(async () => {
1027
+ console.log(JSON.stringify((await L()).listWfgovStepsV2(), null, 2));
1028
+ });
1029
+ parent
1030
+ .command("wfgov-auto-pause-idle-v2")
1031
+ .description("Auto-pause idle")
1032
+ .action(async () => {
1033
+ console.log(
1034
+ JSON.stringify((await L()).autoPauseIdleWfgovProfilesV2(), null, 2),
1035
+ );
1036
+ });
1037
+ parent
1038
+ .command("wfgov-auto-fail-stuck-v2")
1039
+ .description("Auto-fail stuck steps")
1040
+ .action(async () => {
1041
+ console.log(
1042
+ JSON.stringify((await L()).autoFailStuckWfgovStepsV2(), null, 2),
1043
+ );
1044
+ });
1045
+ parent
1046
+ .command("wfgov-gov-stats-v2")
1047
+ .description("V2 gov stats")
1048
+ .action(async () => {
1049
+ console.log(
1050
+ JSON.stringify((await L()).getWorkflowEngineGovStatsV2(), null, 2),
1051
+ );
1052
+ });
1053
+ }
@@ -838,7 +838,6 @@ export function registerZkpCommand(program) {
838
838
  registerZkpV2Command(zkp);
839
839
  }
840
840
 
841
-
842
841
  import {
843
842
  ZKP_CIRCUIT_MATURITY_V2,
844
843
  ZKP_PROOF_LIFECYCLE_V2,
@@ -870,31 +869,188 @@ import {
870
869
  } from "../lib/zkp-engine.js";
871
870
 
872
871
  export function registerZkpV2Command(zkp) {
873
- zkp.command("enums-v2").description("Show V2 governance enums").action(() => { console.log(JSON.stringify({ ZKP_CIRCUIT_MATURITY_V2, ZKP_PROOF_LIFECYCLE_V2 }, null, 2)); });
874
- zkp.command("register-circuit-v2").description("Register a zkp circuit profile (pending)")
875
- .requiredOption("--id <id>").requiredOption("--owner <owner>").option("--scheme <scheme>")
876
- .action((o) => { console.log(JSON.stringify(registerZkpCircuitV2({ id: o.id, owner: o.owner, scheme: o.scheme }), null, 2)); });
877
- zkp.command("activate-circuit-v2 <id>").description("Activate circuit").action((id) => { console.log(JSON.stringify(activateZkpCircuitV2(id), null, 2)); });
878
- zkp.command("deprecate-circuit-v2 <id>").description("Deprecate circuit").action((id) => { console.log(JSON.stringify(deprecateZkpCircuitV2(id), null, 2)); });
879
- zkp.command("archive-circuit-v2 <id>").description("Archive circuit (terminal)").action((id) => { console.log(JSON.stringify(archiveZkpCircuitV2(id), null, 2)); });
880
- zkp.command("touch-circuit-v2 <id>").description("Refresh lastTouchedAt").action((id) => { console.log(JSON.stringify(touchZkpCircuitV2(id), null, 2)); });
881
- zkp.command("get-circuit-v2 <id>").description("Get circuit").action((id) => { console.log(JSON.stringify(getZkpCircuitV2(id), null, 2)); });
882
- zkp.command("list-circuits-v2").description("List circuits").action(() => { console.log(JSON.stringify(listZkpCircuitsV2(), null, 2)); });
883
- zkp.command("create-proof-v2").description("Create a zkp proof (queued)")
884
- .requiredOption("--id <id>").requiredOption("--circuit-id <circuitId>").option("--inputs <inputs>")
885
- .action((o) => { console.log(JSON.stringify(createZkpProofV2({ id: o.id, circuitId: o.circuitId, inputs: o.inputs }), null, 2)); });
886
- zkp.command("start-proof-v2 <id>").description("Transition proof to proving").action((id) => { console.log(JSON.stringify(startZkpProofV2(id), null, 2)); });
887
- zkp.command("verify-proof-v2 <id>").description("Transition proof to verified").action((id) => { console.log(JSON.stringify(verifyZkpProofV2(id), null, 2)); });
888
- zkp.command("fail-proof-v2 <id>").description("Fail proof").option("--reason <r>").action((id, o) => { console.log(JSON.stringify(failZkpProofV2(id, o.reason), null, 2)); });
889
- zkp.command("cancel-proof-v2 <id>").description("Cancel proof").option("--reason <r>").action((id, o) => { console.log(JSON.stringify(cancelZkpProofV2(id, o.reason), null, 2)); });
890
- zkp.command("get-proof-v2 <id>").description("Get proof").action((id) => { console.log(JSON.stringify(getZkpProofV2(id), null, 2)); });
891
- zkp.command("list-proofs-v2").description("List proofs").action(() => { console.log(JSON.stringify(listZkpProofsV2(), null, 2)); });
892
- zkp.command("set-max-active-circuits-v2 <n>").description("Set per-owner active cap").action((n) => { setMaxActiveZkpCircuitsPerOwnerV2(Number(n)); console.log(JSON.stringify({ maxActiveZkpCircuitsPerOwner: getMaxActiveZkpCircuitsPerOwnerV2() }, null, 2)); });
893
- zkp.command("set-max-pending-proofs-v2 <n>").description("Set per-circuit pending cap").action((n) => { setMaxPendingZkpProofsPerCircuitV2(Number(n)); console.log(JSON.stringify({ maxPendingZkpProofsPerCircuit: getMaxPendingZkpProofsPerCircuitV2() }, null, 2)); });
894
- zkp.command("set-circuit-idle-ms-v2 <n>").description("Set idle threshold").action((n) => { setZkpCircuitIdleMsV2(Number(n)); console.log(JSON.stringify({ zkpCircuitIdleMs: getZkpCircuitIdleMsV2() }, null, 2)); });
895
- zkp.command("set-proof-stuck-ms-v2 <n>").description("Set stuck threshold").action((n) => { setZkpProofStuckMsV2(Number(n)); console.log(JSON.stringify({ zkpProofStuckMs: getZkpProofStuckMsV2() }, null, 2)); });
896
- zkp.command("auto-deprecate-idle-circuits-v2").description("Auto-deprecate idle circuits").action(() => { console.log(JSON.stringify(autoDeprecateIdleZkpCircuitsV2(), null, 2)); });
897
- zkp.command("auto-fail-stuck-proofs-v2").description("Auto-fail stuck proving proofs").action(() => { console.log(JSON.stringify(autoFailStuckZkpProofsV2(), null, 2)); });
898
- zkp.command("gov-stats-v2").description("V2 governance aggregate stats").action(() => { console.log(JSON.stringify(getZkpEngineGovStatsV2(), null, 2)); });
872
+ zkp
873
+ .command("enums-v2")
874
+ .description("Show V2 governance enums")
875
+ .action(() => {
876
+ console.log(
877
+ JSON.stringify(
878
+ { ZKP_CIRCUIT_MATURITY_V2, ZKP_PROOF_LIFECYCLE_V2 },
879
+ null,
880
+ 2,
881
+ ),
882
+ );
883
+ });
884
+ zkp
885
+ .command("register-circuit-v2")
886
+ .description("Register a zkp circuit profile (pending)")
887
+ .requiredOption("--id <id>")
888
+ .requiredOption("--owner <owner>")
889
+ .option("--scheme <scheme>")
890
+ .action((o) => {
891
+ console.log(
892
+ JSON.stringify(
893
+ registerZkpCircuitV2({ id: o.id, owner: o.owner, scheme: o.scheme }),
894
+ null,
895
+ 2,
896
+ ),
897
+ );
898
+ });
899
+ zkp
900
+ .command("activate-circuit-v2 <id>")
901
+ .description("Activate circuit")
902
+ .action((id) => {
903
+ console.log(JSON.stringify(activateZkpCircuitV2(id), null, 2));
904
+ });
905
+ zkp
906
+ .command("deprecate-circuit-v2 <id>")
907
+ .description("Deprecate circuit")
908
+ .action((id) => {
909
+ console.log(JSON.stringify(deprecateZkpCircuitV2(id), null, 2));
910
+ });
911
+ zkp
912
+ .command("archive-circuit-v2 <id>")
913
+ .description("Archive circuit (terminal)")
914
+ .action((id) => {
915
+ console.log(JSON.stringify(archiveZkpCircuitV2(id), null, 2));
916
+ });
917
+ zkp
918
+ .command("touch-circuit-v2 <id>")
919
+ .description("Refresh lastTouchedAt")
920
+ .action((id) => {
921
+ console.log(JSON.stringify(touchZkpCircuitV2(id), null, 2));
922
+ });
923
+ zkp
924
+ .command("get-circuit-v2 <id>")
925
+ .description("Get circuit")
926
+ .action((id) => {
927
+ console.log(JSON.stringify(getZkpCircuitV2(id), null, 2));
928
+ });
929
+ zkp
930
+ .command("list-circuits-v2")
931
+ .description("List circuits")
932
+ .action(() => {
933
+ console.log(JSON.stringify(listZkpCircuitsV2(), null, 2));
934
+ });
935
+ zkp
936
+ .command("create-proof-v2")
937
+ .description("Create a zkp proof (queued)")
938
+ .requiredOption("--id <id>")
939
+ .requiredOption("--circuit-id <circuitId>")
940
+ .option("--inputs <inputs>")
941
+ .action((o) => {
942
+ console.log(
943
+ JSON.stringify(
944
+ createZkpProofV2({
945
+ id: o.id,
946
+ circuitId: o.circuitId,
947
+ inputs: o.inputs,
948
+ }),
949
+ null,
950
+ 2,
951
+ ),
952
+ );
953
+ });
954
+ zkp
955
+ .command("start-proof-v2 <id>")
956
+ .description("Transition proof to proving")
957
+ .action((id) => {
958
+ console.log(JSON.stringify(startZkpProofV2(id), null, 2));
959
+ });
960
+ zkp
961
+ .command("verify-proof-v2 <id>")
962
+ .description("Transition proof to verified")
963
+ .action((id) => {
964
+ console.log(JSON.stringify(verifyZkpProofV2(id), null, 2));
965
+ });
966
+ zkp
967
+ .command("fail-proof-v2 <id>")
968
+ .description("Fail proof")
969
+ .option("--reason <r>")
970
+ .action((id, o) => {
971
+ console.log(JSON.stringify(failZkpProofV2(id, o.reason), null, 2));
972
+ });
973
+ zkp
974
+ .command("cancel-proof-v2 <id>")
975
+ .description("Cancel proof")
976
+ .option("--reason <r>")
977
+ .action((id, o) => {
978
+ console.log(JSON.stringify(cancelZkpProofV2(id, o.reason), null, 2));
979
+ });
980
+ zkp
981
+ .command("get-proof-v2 <id>")
982
+ .description("Get proof")
983
+ .action((id) => {
984
+ console.log(JSON.stringify(getZkpProofV2(id), null, 2));
985
+ });
986
+ zkp
987
+ .command("list-proofs-v2")
988
+ .description("List proofs")
989
+ .action(() => {
990
+ console.log(JSON.stringify(listZkpProofsV2(), null, 2));
991
+ });
992
+ zkp
993
+ .command("set-max-active-circuits-v2 <n>")
994
+ .description("Set per-owner active cap")
995
+ .action((n) => {
996
+ setMaxActiveZkpCircuitsPerOwnerV2(Number(n));
997
+ console.log(
998
+ JSON.stringify(
999
+ { maxActiveZkpCircuitsPerOwner: getMaxActiveZkpCircuitsPerOwnerV2() },
1000
+ null,
1001
+ 2,
1002
+ ),
1003
+ );
1004
+ });
1005
+ zkp
1006
+ .command("set-max-pending-proofs-v2 <n>")
1007
+ .description("Set per-circuit pending cap")
1008
+ .action((n) => {
1009
+ setMaxPendingZkpProofsPerCircuitV2(Number(n));
1010
+ console.log(
1011
+ JSON.stringify(
1012
+ {
1013
+ maxPendingZkpProofsPerCircuit: getMaxPendingZkpProofsPerCircuitV2(),
1014
+ },
1015
+ null,
1016
+ 2,
1017
+ ),
1018
+ );
1019
+ });
1020
+ zkp
1021
+ .command("set-circuit-idle-ms-v2 <n>")
1022
+ .description("Set idle threshold")
1023
+ .action((n) => {
1024
+ setZkpCircuitIdleMsV2(Number(n));
1025
+ console.log(
1026
+ JSON.stringify({ zkpCircuitIdleMs: getZkpCircuitIdleMsV2() }, null, 2),
1027
+ );
1028
+ });
1029
+ zkp
1030
+ .command("set-proof-stuck-ms-v2 <n>")
1031
+ .description("Set stuck threshold")
1032
+ .action((n) => {
1033
+ setZkpProofStuckMsV2(Number(n));
1034
+ console.log(
1035
+ JSON.stringify({ zkpProofStuckMs: getZkpProofStuckMsV2() }, null, 2),
1036
+ );
1037
+ });
1038
+ zkp
1039
+ .command("auto-deprecate-idle-circuits-v2")
1040
+ .description("Auto-deprecate idle circuits")
1041
+ .action(() => {
1042
+ console.log(JSON.stringify(autoDeprecateIdleZkpCircuitsV2(), null, 2));
1043
+ });
1044
+ zkp
1045
+ .command("auto-fail-stuck-proofs-v2")
1046
+ .description("Auto-fail stuck proving proofs")
1047
+ .action(() => {
1048
+ console.log(JSON.stringify(autoFailStuckZkpProofsV2(), null, 2));
1049
+ });
1050
+ zkp
1051
+ .command("gov-stats-v2")
1052
+ .description("V2 governance aggregate stats")
1053
+ .action(() => {
1054
+ console.log(JSON.stringify(getZkpEngineGovStatsV2(), null, 2));
1055
+ });
899
1056
  }
900
-
package/src/index.js CHANGED
@@ -209,6 +209,96 @@ import { registerAutomationCommand } from "./commands/automation.js";
209
209
  // Phase 14: SSO Enterprise Authentication (SAML / OAuth2 / OIDC + session lifecycle + DID bridge)
210
210
  import { registerSsoCommand } from "./commands/sso.js";
211
211
 
212
+ // Iter16 V2 governance overlays (appended to existing parent commands)
213
+ import { registerAuditGovV2Commands } from "./commands/audit.js";
214
+ import { registerKgovV2Commands } from "./commands/kg.js";
215
+ import { registerSboxGovV2Commands } from "./commands/sandbox.js";
216
+ import { registerSlagovV2Commands } from "./commands/sla.js";
217
+ import { registerStrgovV2Commands } from "./commands/stress.js";
218
+ import { registerTfgovV2Commands } from "./commands/terraform.js";
219
+ import { registerRepgovV2Commands } from "./commands/reputation.js";
220
+ import { registerMktgovV2Commands } from "./commands/marketplace.js";
221
+
222
+ // Iter17 V2 governance overlays
223
+ import { registerChatgovV2Commands } from "./commands/chat.js";
224
+ import { registerCcbgovV2Commands } from "./commands/orchestrate.js";
225
+ import { registerCmgrV2Commands } from "./commands/compliance.js";
226
+ import { registerCwLearnV2Commands } from "./commands/cowork.js";
227
+ import { registerCwwfV2Commands } from "./commands/cowork.js";
228
+ import { registerPcgovV2Commands } from "./commands/privacy.js";
229
+ import { registerIncgovV2Commands } from "./commands/incentive.js";
230
+ import { registerHardgovV2Commands } from "./commands/hardening.js";
231
+
232
+ // Iter18 V2 governance overlays
233
+ import { registerAiopsgovV2Commands } from "./commands/ops.js";
234
+ import { registerMmgovV2Commands } from "./commands/multimodal.js";
235
+ import { registerInstgovV2Commands } from "./commands/instinct.js";
236
+ import { registerTnsgovV2Commands } from "./commands/tenant.js";
237
+ import { registerQntgovV2Commands } from "./commands/quantization.js";
238
+ import { registerTrustgovV2Commands } from "./commands/trust.js";
239
+ import { registerNlpgovV2Commands } from "./commands/nlprog.js";
240
+ import { registerPercgovV2Commands } from "./commands/perception.js";
241
+
242
+ // Iter19 V2 governance overlays
243
+ import { registerCdagovV2Commands } from "./commands/codegen.js";
244
+ import { registerCogovV2Commands } from "./commands/collab.js";
245
+ import { registerCommgovV2Commands } from "./commands/governance.js";
246
+ import { registerDidgovV2Commands } from "./commands/did.js";
247
+ import { registerSsogovV2Commands } from "./commands/sso.js";
248
+ import { registerOrggovV2Commands } from "./commands/org.js";
249
+ import { registerScimgovV2Commands } from "./commands/scim.js";
250
+ import { registerSyncgovV2Commands } from "./commands/sync.js";
251
+
252
+ // Iter20 V2 governance overlays
253
+ import { registerAnetgovV2Commands } from "./commands/agent-network.js";
254
+ import { registerBagovV2Commands } from "./commands/browse.js";
255
+ import { registerDlpgovV2Commands } from "./commands/dlp.js";
256
+ import { registerEvgovV2Commands } from "./commands/evomap.js";
257
+ import { registerFedgovV2Commands } from "./commands/federation.js";
258
+ import { registerIpfsgovV2Commands } from "./commands/ipfs.js";
259
+ import { registerP2pgovV2Commands } from "./commands/p2p.js";
260
+ import { registerWalgovV2Commands } from "./commands/wallet.js";
261
+
262
+ // Iter21 V2 governance overlays
263
+ import { registerApgovV2Commands } from "./commands/activitypub.js";
264
+ import { registerMatgovV2Commands } from "./commands/matrix.js";
265
+ import { registerNosgovV2Commands } from "./commands/nostr.js";
266
+ import { registerBigovV2Commands } from "./commands/bi.js";
267
+ import { registerMemgovV2Commands } from "./commands/memory.js";
268
+ import { registerSesgovV2Commands } from "./commands/session.js";
269
+ import { registerHookgovV2Commands } from "./commands/hook.js";
270
+ import { registerWfgovV2Commands } from "./commands/workflow.js";
271
+
272
+ // Iter22 V2 governance overlays
273
+ import { registerAugovV2Commands } from "./commands/automation.js";
274
+ import { registerShgovV2Commands } from "./commands/cowork.js";
275
+ import { registerDv2govV2Commands } from "./commands/did-v2.js";
276
+ import { registerKexpgovV2Commands } from "./commands/export.js";
277
+ import { registerKimpgovV2Commands } from "./commands/import.js";
278
+ import { registerLlmgovV2Commands } from "./commands/llm.js";
279
+ import { registerPqcgovV2Commands } from "./commands/pqc.js";
280
+ import { registerSmgovV2Commands } from "./commands/social.js";
281
+
282
+ // Iter23 V2 governance overlays
283
+ import { registerRcgovV2Commands } from "./commands/rcache.js";
284
+ import { registerTechgovV2Commands } from "./commands/tech.js";
285
+ import { registerRtgovV2Commands } from "./commands/runtime.js";
286
+ import { registerNtgovV2Commands } from "./commands/note.js";
287
+ import { registerPmgovV2Commands } from "./commands/permmem.js";
288
+ import { registerPfgovV2Commands } from "./commands/fusion.js";
289
+ import { registerDbevogovV2Commands } from "./commands/dbevo.js";
290
+ import { registerDigovV2Commands } from "./commands/infra.js";
291
+
292
+ // Iter24 V2 governance overlays
293
+ import { registerRcmdgovV2Commands } from "./commands/recommend.js";
294
+ import { registerMcpgovV2Commands } from "./commands/mcp.js";
295
+ import { registerEcogovV2Commands } from "./commands/plugin-ecosystem.js";
296
+ import { registerSklgovV2Commands } from "./commands/skill.js";
297
+ import { registerToktgovV2Commands } from "./commands/tokens.js";
298
+ import { registerDevgovV2Commands } from "./commands/dev.js";
299
+ import { registerTigovV2Commands } from "./commands/compliance.js";
300
+ import { registerUebgovV2Commands } from "./commands/compliance.js";
301
+
212
302
  export function createProgram() {
213
303
  const program = new Command();
214
304
 
@@ -428,5 +518,95 @@ export function createProgram() {
428
518
  registerAutomationCommand(program);
429
519
  registerSsoCommand(program);
430
520
 
521
+ // Iter16 V2 governance overlays (must run after parent commands above)
522
+ registerAuditGovV2Commands(program);
523
+ registerKgovV2Commands(program);
524
+ registerSboxGovV2Commands(program);
525
+ registerSlagovV2Commands(program);
526
+ registerStrgovV2Commands(program);
527
+ registerTfgovV2Commands(program);
528
+ registerRepgovV2Commands(program);
529
+ registerMktgovV2Commands(program);
530
+
531
+ // Iter17 V2 governance overlays
532
+ registerChatgovV2Commands(program);
533
+ registerCcbgovV2Commands(program);
534
+ registerCmgrV2Commands(program);
535
+ registerCwLearnV2Commands(program);
536
+ registerCwwfV2Commands(program);
537
+ registerPcgovV2Commands(program);
538
+ registerIncgovV2Commands(program);
539
+ registerHardgovV2Commands(program);
540
+
541
+ // Iter18 V2 governance overlays
542
+ registerAiopsgovV2Commands(program);
543
+ registerMmgovV2Commands(program);
544
+ registerInstgovV2Commands(program);
545
+ registerTnsgovV2Commands(program);
546
+ registerQntgovV2Commands(program);
547
+ registerTrustgovV2Commands(program);
548
+ registerNlpgovV2Commands(program);
549
+ registerPercgovV2Commands(program);
550
+
551
+ // Iter19 V2 governance overlays
552
+ registerCdagovV2Commands(program);
553
+ registerCogovV2Commands(program);
554
+ registerCommgovV2Commands(program);
555
+ registerDidgovV2Commands(program);
556
+ registerSsogovV2Commands(program);
557
+ registerOrggovV2Commands(program);
558
+ registerScimgovV2Commands(program);
559
+ registerSyncgovV2Commands(program);
560
+
561
+ // Iter20 V2 governance overlays
562
+ registerAnetgovV2Commands(program);
563
+ registerBagovV2Commands(program);
564
+ registerDlpgovV2Commands(program);
565
+ registerEvgovV2Commands(program);
566
+ registerFedgovV2Commands(program);
567
+ registerIpfsgovV2Commands(program);
568
+ registerP2pgovV2Commands(program);
569
+ registerWalgovV2Commands(program);
570
+
571
+ // Iter21 V2 governance overlays
572
+ registerApgovV2Commands(program);
573
+ registerMatgovV2Commands(program);
574
+ registerNosgovV2Commands(program);
575
+ registerBigovV2Commands(program);
576
+ registerMemgovV2Commands(program);
577
+ registerSesgovV2Commands(program);
578
+ registerHookgovV2Commands(program);
579
+ registerWfgovV2Commands(program);
580
+
581
+ // Iter22 V2 governance overlays
582
+ registerAugovV2Commands(program);
583
+ registerShgovV2Commands(program);
584
+ registerDv2govV2Commands(program);
585
+ registerKexpgovV2Commands(program);
586
+ registerKimpgovV2Commands(program);
587
+ registerLlmgovV2Commands(program);
588
+ registerPqcgovV2Commands(program);
589
+ registerSmgovV2Commands(program);
590
+
591
+ // Iter23 V2 governance overlays
592
+ registerRcgovV2Commands(program);
593
+ registerTechgovV2Commands(program);
594
+ registerRtgovV2Commands(program);
595
+ registerNtgovV2Commands(program);
596
+ registerPmgovV2Commands(program);
597
+ registerPfgovV2Commands(program);
598
+ registerDbevogovV2Commands(program);
599
+ registerDigovV2Commands(program);
600
+
601
+ // Iter24 V2 governance overlays
602
+ registerRcmdgovV2Commands(program);
603
+ registerMcpgovV2Commands(program);
604
+ registerEcogovV2Commands(program);
605
+ registerSklgovV2Commands(program);
606
+ registerToktgovV2Commands(program);
607
+ registerDevgovV2Commands(program);
608
+ registerTigovV2Commands(program);
609
+ registerUebgovV2Commands(program);
610
+
431
611
  return program;
432
612
  }