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.
- package/package.json +1 -1
- package/src/commands/a2a.js +196 -28
- package/src/commands/activitypub.js +157 -27
- package/src/commands/agent.js +587 -103
- package/src/commands/audit.js +206 -0
- package/src/commands/bi.js +152 -27
- package/src/commands/bm25.js +111 -27
- package/src/commands/browse.js +190 -29
- package/src/commands/ccron.js +128 -28
- package/src/commands/chat.js +207 -0
- package/src/commands/compliance.js +414 -34
- package/src/commands/compt.js +127 -29
- package/src/commands/consol.js +8 -2
- package/src/commands/cowork.js +580 -34
- package/src/commands/crosschain.js +182 -28
- package/src/commands/dao.js +182 -28
- package/src/commands/dlp.js +172 -27
- package/src/commands/economy.js +205 -50
- package/src/commands/evolution.js +203 -50
- package/src/commands/evomap.js +182 -27
- package/src/commands/fflag.js +74 -22
- package/src/commands/git.js +177 -37
- package/src/commands/hardening.js +209 -0
- package/src/commands/hmemory.js +204 -50
- package/src/commands/incentive.js +209 -0
- package/src/commands/inference.js +170 -34
- package/src/commands/itbudget.js +149 -33
- package/src/commands/kg.js +206 -0
- package/src/commands/lowcode.js +195 -38
- package/src/commands/marketplace.js +206 -0
- package/src/commands/matrix.js +179 -27
- package/src/commands/mcpscaf.js +145 -33
- package/src/commands/meminj.js +145 -33
- package/src/commands/nostr.js +178 -27
- package/src/commands/orchestrate.js +217 -0
- package/src/commands/orchgov.js +144 -33
- package/src/commands/pdfp.js +109 -27
- package/src/commands/perf.js +169 -32
- package/src/commands/perm.js +144 -33
- package/src/commands/pipeline.js +207 -52
- package/src/commands/planmode.js +141 -32
- package/src/commands/privacy.js +203 -0
- package/src/commands/promcomp.js +111 -27
- package/src/commands/recommend.js +177 -34
- package/src/commands/reputation.js +208 -0
- package/src/commands/sandbox.js +206 -0
- package/src/commands/seshhook.js +145 -33
- package/src/commands/seshsearch.js +141 -33
- package/src/commands/seshtail.js +144 -33
- package/src/commands/seshu.js +152 -33
- package/src/commands/sganal.js +123 -29
- package/src/commands/siem.js +201 -34
- package/src/commands/sla.js +212 -0
- package/src/commands/slotfill.js +146 -33
- package/src/commands/social.js +157 -32
- package/src/commands/stress.js +206 -0
- package/src/commands/svccont.js +145 -33
- package/src/commands/terraform.js +206 -0
- package/src/commands/tms.js +171 -33
- package/src/commands/topiccls.js +146 -33
- package/src/commands/uprof.js +141 -32
- package/src/commands/vcheck.js +122 -28
- package/src/commands/webfetch.js +141 -32
- package/src/commands/zkp.js +184 -28
- package/src/index.js +40 -0
- package/src/lib/a2a-protocol.js +319 -51
- package/src/lib/activitypub-bridge.js +288 -50
- package/src/lib/agent-economy.js +304 -51
- package/src/lib/app-builder.js +279 -46
- package/src/lib/audit-logger.js +321 -0
- package/src/lib/autonomous-agent.js +284 -48
- package/src/lib/bi-engine.js +283 -49
- package/src/lib/bm25-search.js +301 -49
- package/src/lib/browser-automation.js +296 -49
- package/src/lib/chat-core.js +336 -0
- package/src/lib/claude-code-bridge.js +341 -0
- package/src/lib/compliance-framework-reporter.js +305 -51
- package/src/lib/compliance-manager.js +330 -0
- package/src/lib/compression-telemetry.js +301 -49
- package/src/lib/content-recommender.js +317 -52
- package/src/lib/cowork-cron.js +298 -49
- package/src/lib/cowork-learning.js +333 -0
- package/src/lib/cowork-task-runner.js +308 -51
- package/src/lib/cowork-workflow.js +327 -0
- package/src/lib/cross-chain.js +311 -51
- package/src/lib/dao-governance.js +280 -46
- package/src/lib/dlp-engine.js +287 -49
- package/src/lib/evolution-system.js +278 -47
- package/src/lib/evomap-manager.js +280 -46
- package/src/lib/execution-backend.js +294 -48
- package/src/lib/feature-flags.js +294 -49
- package/src/lib/git-integration.js +285 -47
- package/src/lib/hardening-manager.js +341 -0
- package/src/lib/hierarchical-memory.js +284 -48
- package/src/lib/inference-network.js +308 -51
- package/src/lib/iteration-budget.js +302 -50
- package/src/lib/knowledge-graph.js +333 -0
- package/src/lib/matrix-bridge.js +281 -47
- package/src/lib/mcp-scaffold.js +318 -54
- package/src/lib/memory-injection.js +288 -49
- package/src/lib/nostr-bridge.js +286 -49
- package/src/lib/orchestrator.js +293 -48
- package/src/lib/pdf-parser.js +298 -49
- package/src/lib/perf-tuning.js +309 -50
- package/src/lib/permission-engine.js +287 -49
- package/src/lib/pipeline-orchestrator.js +289 -49
- package/src/lib/plan-mode.js +298 -51
- package/src/lib/privacy-computing.js +335 -0
- package/src/lib/reputation-optimizer.js +340 -0
- package/src/lib/sandbox-v2.js +327 -0
- package/src/lib/service-container.js +313 -52
- package/src/lib/session-consolidator.js +296 -49
- package/src/lib/session-hooks.js +312 -53
- package/src/lib/session-search.js +304 -51
- package/src/lib/session-tail.js +288 -49
- package/src/lib/session-usage.js +298 -52
- package/src/lib/siem-exporter.js +298 -51
- package/src/lib/skill-marketplace.js +345 -0
- package/src/lib/sla-manager.js +341 -0
- package/src/lib/slot-filler.js +303 -51
- package/src/lib/social-graph-analytics.js +295 -49
- package/src/lib/social-graph.js +272 -49
- package/src/lib/stress-tester.js +342 -0
- package/src/lib/sub-agent-registry.js +302 -53
- package/src/lib/task-model-selector.js +302 -50
- package/src/lib/terraform-manager.js +333 -0
- package/src/lib/todo-manager.js +281 -47
- package/src/lib/token-incentive.js +341 -0
- package/src/lib/topic-classifier.js +297 -49
- package/src/lib/user-profile.js +294 -50
- package/src/lib/version-checker.js +304 -50
- package/src/lib/web-fetch.js +292 -51
- package/src/lib/zkp-engine.js +286 -49
package/src/commands/zkp.js
CHANGED
|
@@ -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
|
|
874
|
-
|
|
875
|
-
.
|
|
876
|
-
.action((
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
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
|
}
|