chainlesschain 0.143.0 → 0.145.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 (133) hide show
  1. package/package.json +1 -1
  2. package/src/commands/a2a.js +196 -28
  3. package/src/commands/activitypub.js +157 -27
  4. package/src/commands/agent.js +587 -103
  5. package/src/commands/audit.js +206 -0
  6. package/src/commands/bi.js +152 -27
  7. package/src/commands/bm25.js +111 -27
  8. package/src/commands/browse.js +190 -29
  9. package/src/commands/ccron.js +128 -28
  10. package/src/commands/chat.js +207 -0
  11. package/src/commands/compliance.js +414 -34
  12. package/src/commands/compt.js +127 -29
  13. package/src/commands/consol.js +8 -2
  14. package/src/commands/cowork.js +580 -34
  15. package/src/commands/crosschain.js +182 -28
  16. package/src/commands/dao.js +182 -28
  17. package/src/commands/dlp.js +172 -27
  18. package/src/commands/economy.js +205 -50
  19. package/src/commands/evolution.js +203 -50
  20. package/src/commands/evomap.js +182 -27
  21. package/src/commands/fflag.js +74 -22
  22. package/src/commands/git.js +177 -37
  23. package/src/commands/hardening.js +209 -0
  24. package/src/commands/hmemory.js +204 -50
  25. package/src/commands/incentive.js +209 -0
  26. package/src/commands/inference.js +170 -34
  27. package/src/commands/itbudget.js +149 -33
  28. package/src/commands/kg.js +206 -0
  29. package/src/commands/lowcode.js +195 -38
  30. package/src/commands/marketplace.js +206 -0
  31. package/src/commands/matrix.js +179 -27
  32. package/src/commands/mcpscaf.js +145 -33
  33. package/src/commands/meminj.js +145 -33
  34. package/src/commands/nostr.js +178 -27
  35. package/src/commands/orchestrate.js +217 -0
  36. package/src/commands/orchgov.js +144 -33
  37. package/src/commands/pdfp.js +109 -27
  38. package/src/commands/perf.js +169 -32
  39. package/src/commands/perm.js +144 -33
  40. package/src/commands/pipeline.js +207 -52
  41. package/src/commands/planmode.js +141 -32
  42. package/src/commands/privacy.js +203 -0
  43. package/src/commands/promcomp.js +111 -27
  44. package/src/commands/recommend.js +177 -34
  45. package/src/commands/reputation.js +208 -0
  46. package/src/commands/sandbox.js +206 -0
  47. package/src/commands/seshhook.js +145 -33
  48. package/src/commands/seshsearch.js +141 -33
  49. package/src/commands/seshtail.js +144 -33
  50. package/src/commands/seshu.js +152 -33
  51. package/src/commands/sganal.js +123 -29
  52. package/src/commands/siem.js +201 -34
  53. package/src/commands/sla.js +212 -0
  54. package/src/commands/slotfill.js +146 -33
  55. package/src/commands/social.js +157 -32
  56. package/src/commands/stress.js +206 -0
  57. package/src/commands/svccont.js +145 -33
  58. package/src/commands/terraform.js +206 -0
  59. package/src/commands/tms.js +171 -33
  60. package/src/commands/topiccls.js +146 -33
  61. package/src/commands/uprof.js +141 -32
  62. package/src/commands/vcheck.js +122 -28
  63. package/src/commands/webfetch.js +141 -32
  64. package/src/commands/zkp.js +184 -28
  65. package/src/index.js +40 -0
  66. package/src/lib/a2a-protocol.js +319 -51
  67. package/src/lib/activitypub-bridge.js +288 -50
  68. package/src/lib/agent-economy.js +304 -51
  69. package/src/lib/app-builder.js +279 -46
  70. package/src/lib/audit-logger.js +321 -0
  71. package/src/lib/autonomous-agent.js +284 -48
  72. package/src/lib/bi-engine.js +283 -49
  73. package/src/lib/bm25-search.js +301 -49
  74. package/src/lib/browser-automation.js +296 -49
  75. package/src/lib/chat-core.js +336 -0
  76. package/src/lib/claude-code-bridge.js +341 -0
  77. package/src/lib/compliance-framework-reporter.js +305 -51
  78. package/src/lib/compliance-manager.js +330 -0
  79. package/src/lib/compression-telemetry.js +301 -49
  80. package/src/lib/content-recommender.js +317 -52
  81. package/src/lib/cowork-cron.js +298 -49
  82. package/src/lib/cowork-learning.js +333 -0
  83. package/src/lib/cowork-task-runner.js +308 -51
  84. package/src/lib/cowork-workflow.js +327 -0
  85. package/src/lib/cross-chain.js +311 -51
  86. package/src/lib/dao-governance.js +280 -46
  87. package/src/lib/dlp-engine.js +287 -49
  88. package/src/lib/evolution-system.js +278 -47
  89. package/src/lib/evomap-manager.js +280 -46
  90. package/src/lib/execution-backend.js +294 -48
  91. package/src/lib/feature-flags.js +294 -49
  92. package/src/lib/git-integration.js +285 -47
  93. package/src/lib/hardening-manager.js +341 -0
  94. package/src/lib/hierarchical-memory.js +284 -48
  95. package/src/lib/inference-network.js +308 -51
  96. package/src/lib/iteration-budget.js +302 -50
  97. package/src/lib/knowledge-graph.js +333 -0
  98. package/src/lib/matrix-bridge.js +281 -47
  99. package/src/lib/mcp-scaffold.js +318 -54
  100. package/src/lib/memory-injection.js +288 -49
  101. package/src/lib/nostr-bridge.js +286 -49
  102. package/src/lib/orchestrator.js +293 -48
  103. package/src/lib/pdf-parser.js +298 -49
  104. package/src/lib/perf-tuning.js +309 -50
  105. package/src/lib/permission-engine.js +287 -49
  106. package/src/lib/pipeline-orchestrator.js +289 -49
  107. package/src/lib/plan-mode.js +298 -51
  108. package/src/lib/privacy-computing.js +335 -0
  109. package/src/lib/reputation-optimizer.js +340 -0
  110. package/src/lib/sandbox-v2.js +327 -0
  111. package/src/lib/service-container.js +313 -52
  112. package/src/lib/session-consolidator.js +296 -49
  113. package/src/lib/session-hooks.js +312 -53
  114. package/src/lib/session-search.js +304 -51
  115. package/src/lib/session-tail.js +288 -49
  116. package/src/lib/session-usage.js +298 -52
  117. package/src/lib/siem-exporter.js +298 -51
  118. package/src/lib/skill-marketplace.js +345 -0
  119. package/src/lib/sla-manager.js +341 -0
  120. package/src/lib/slot-filler.js +303 -51
  121. package/src/lib/social-graph-analytics.js +295 -49
  122. package/src/lib/social-graph.js +272 -49
  123. package/src/lib/stress-tester.js +342 -0
  124. package/src/lib/sub-agent-registry.js +302 -53
  125. package/src/lib/task-model-selector.js +302 -50
  126. package/src/lib/terraform-manager.js +333 -0
  127. package/src/lib/todo-manager.js +281 -47
  128. package/src/lib/token-incentive.js +341 -0
  129. package/src/lib/topic-classifier.js +297 -49
  130. package/src/lib/user-profile.js +294 -50
  131. package/src/lib/version-checker.js +304 -50
  132. package/src/lib/web-fetch.js +292 -51
  133. package/src/lib/zkp-engine.js +286 -49
@@ -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,26 @@ 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
+
212
232
  export function createProgram() {
213
233
  const program = new Command();
214
234
 
@@ -428,5 +448,25 @@ export function createProgram() {
428
448
  registerAutomationCommand(program);
429
449
  registerSsoCommand(program);
430
450
 
451
+ // Iter16 V2 governance overlays (must run after parent commands above)
452
+ registerAuditGovV2Commands(program);
453
+ registerKgovV2Commands(program);
454
+ registerSboxGovV2Commands(program);
455
+ registerSlagovV2Commands(program);
456
+ registerStrgovV2Commands(program);
457
+ registerTfgovV2Commands(program);
458
+ registerRepgovV2Commands(program);
459
+ registerMktgovV2Commands(program);
460
+
461
+ // Iter17 V2 governance overlays
462
+ registerChatgovV2Commands(program);
463
+ registerCcbgovV2Commands(program);
464
+ registerCmgrV2Commands(program);
465
+ registerCwLearnV2Commands(program);
466
+ registerCwwfV2Commands(program);
467
+ registerPcgovV2Commands(program);
468
+ registerIncgovV2Commands(program);
469
+ registerHardgovV2Commands(program);
470
+
431
471
  return program;
432
472
  }