chainlesschain 0.145.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.
- package/package.json +1 -1
- package/src/commands/activitypub.js +207 -0
- package/src/commands/agent-network.js +217 -0
- package/src/commands/automation.js +201 -0
- package/src/commands/bi.js +203 -0
- package/src/commands/browse.js +213 -0
- package/src/commands/codegen.js +207 -0
- package/src/commands/collab.js +211 -0
- package/src/commands/compliance.js +410 -0
- package/src/commands/cowork.js +203 -0
- package/src/commands/dbevo.js +227 -0
- package/src/commands/dev.js +207 -0
- package/src/commands/did-v2.js +217 -0
- package/src/commands/did.js +221 -0
- package/src/commands/dlp.js +213 -0
- package/src/commands/evomap.js +205 -0
- package/src/commands/export.js +213 -0
- package/src/commands/federation.js +209 -0
- package/src/commands/fusion.js +205 -0
- package/src/commands/governance.js +209 -0
- package/src/commands/hook.js +209 -0
- package/src/commands/import.js +209 -0
- package/src/commands/infra.js +203 -0
- package/src/commands/instinct.js +209 -0
- package/src/commands/ipfs.js +207 -0
- package/src/commands/llm.js +217 -0
- package/src/commands/matrix.js +207 -0
- package/src/commands/mcp.js +217 -0
- package/src/commands/memory.js +209 -0
- package/src/commands/multimodal.js +203 -0
- package/src/commands/nlprog.js +225 -0
- package/src/commands/nostr.js +209 -0
- package/src/commands/note.js +205 -0
- package/src/commands/ops.js +219 -0
- package/src/commands/org.js +209 -0
- package/src/commands/p2p.js +209 -0
- package/src/commands/perception.js +209 -0
- package/src/commands/permmem.js +203 -0
- package/src/commands/plugin-ecosystem.js +209 -0
- package/src/commands/pqc.js +213 -0
- package/src/commands/quantization.js +207 -0
- package/src/commands/rcache.js +205 -0
- package/src/commands/recommend.js +233 -0
- package/src/commands/runtime.js +205 -0
- package/src/commands/scim.js +209 -0
- package/src/commands/session.js +209 -0
- package/src/commands/skill.js +207 -0
- package/src/commands/social.js +201 -0
- package/src/commands/sso.js +209 -0
- package/src/commands/sync.js +209 -0
- package/src/commands/tech.js +209 -0
- package/src/commands/tenant.js +217 -0
- package/src/commands/tokens.js +209 -0
- package/src/commands/trust.js +217 -0
- package/src/commands/wallet.js +209 -0
- package/src/commands/workflow.js +203 -0
- package/src/index.js +140 -0
- package/src/lib/activitypub-bridge.js +334 -0
- package/src/lib/agent-network.js +341 -0
- package/src/lib/aiops.js +346 -0
- package/src/lib/automation-engine.js +335 -0
- package/src/lib/autonomous-developer.js +332 -0
- package/src/lib/bi-engine.js +333 -0
- package/src/lib/browser-automation.js +334 -0
- package/src/lib/code-agent.js +339 -0
- package/src/lib/collaboration-governance.js +334 -0
- package/src/lib/community-governance.js +346 -0
- package/src/lib/content-recommendation.js +351 -0
- package/src/lib/cowork-share.js +338 -0
- package/src/lib/dbevo.js +351 -0
- package/src/lib/decentral-infra.js +330 -0
- package/src/lib/did-manager.js +341 -0
- package/src/lib/did-v2-manager.js +341 -0
- package/src/lib/dlp-engine.js +339 -0
- package/src/lib/evomap-governance.js +334 -0
- package/src/lib/federation-hardening.js +340 -0
- package/src/lib/hook-manager.js +341 -0
- package/src/lib/instinct-manager.js +346 -0
- package/src/lib/ipfs-storage.js +334 -0
- package/src/lib/knowledge-exporter.js +341 -0
- package/src/lib/knowledge-importer.js +341 -0
- package/src/lib/llm-providers.js +346 -0
- package/src/lib/matrix-bridge.js +339 -0
- package/src/lib/mcp-registry.js +346 -0
- package/src/lib/memory-manager.js +336 -0
- package/src/lib/multimodal.js +330 -0
- package/src/lib/nl-programming.js +341 -0
- package/src/lib/nostr-bridge.js +336 -0
- package/src/lib/note-versioning.js +339 -0
- package/src/lib/org-manager.js +336 -0
- package/src/lib/p2p-manager.js +341 -0
- package/src/lib/perception.js +346 -0
- package/src/lib/permanent-memory.js +327 -0
- package/src/lib/plugin-ecosystem.js +346 -0
- package/src/lib/pqc-manager.js +346 -0
- package/src/lib/protocol-fusion.js +338 -0
- package/src/lib/quantization.js +337 -0
- package/src/lib/response-cache.js +333 -0
- package/src/lib/scim-manager.js +346 -0
- package/src/lib/session-manager.js +334 -0
- package/src/lib/skill-loader.js +334 -0
- package/src/lib/social-manager.js +330 -0
- package/src/lib/sso-manager.js +340 -0
- package/src/lib/sync-manager.js +336 -0
- package/src/lib/tech-learning-engine.js +341 -0
- package/src/lib/tenant-saas.js +341 -0
- package/src/lib/threat-intel.js +330 -0
- package/src/lib/token-tracker.js +336 -0
- package/src/lib/trust-security.js +343 -0
- package/src/lib/ueba.js +340 -0
- package/src/lib/universal-runtime.js +330 -0
- package/src/lib/wallet-manager.js +336 -0
- package/src/lib/workflow-engine.js +330 -0
package/src/commands/import.js
CHANGED
|
@@ -509,3 +509,212 @@ export function registerImportCommand(program) {
|
|
|
509
509
|
.description("Auto-fail stuck V2 import jobs")
|
|
510
510
|
.action(() => out(autoFailStuckImportJobsV2()));
|
|
511
511
|
}
|
|
512
|
+
|
|
513
|
+
// === Iter22 V2 governance overlay ===
|
|
514
|
+
export function registerKimpgovV2Commands(program) {
|
|
515
|
+
const parent = program.commands.find((c) => c.name() === "import");
|
|
516
|
+
if (!parent) return;
|
|
517
|
+
const L = async () => await import("../lib/knowledge-importer.js");
|
|
518
|
+
parent
|
|
519
|
+
.command("kimpgov-enums-v2")
|
|
520
|
+
.description("Show V2 enums")
|
|
521
|
+
.action(async () => {
|
|
522
|
+
const m = await L();
|
|
523
|
+
console.log(
|
|
524
|
+
JSON.stringify(
|
|
525
|
+
{
|
|
526
|
+
profileMaturity: m.KIMPGOV_PROFILE_MATURITY_V2,
|
|
527
|
+
importLifecycle: m.KIMPGOV_IMPORT_LIFECYCLE_V2,
|
|
528
|
+
},
|
|
529
|
+
null,
|
|
530
|
+
2,
|
|
531
|
+
),
|
|
532
|
+
);
|
|
533
|
+
});
|
|
534
|
+
parent
|
|
535
|
+
.command("kimpgov-config-v2")
|
|
536
|
+
.description("Show V2 config")
|
|
537
|
+
.action(async () => {
|
|
538
|
+
const m = await L();
|
|
539
|
+
console.log(
|
|
540
|
+
JSON.stringify(
|
|
541
|
+
{
|
|
542
|
+
maxActive: m.getMaxActiveKimpgovProfilesPerOwnerV2(),
|
|
543
|
+
maxPending: m.getMaxPendingKimpgovImportsPerProfileV2(),
|
|
544
|
+
idleMs: m.getKimpgovProfileIdleMsV2(),
|
|
545
|
+
stuckMs: m.getKimpgovImportStuckMsV2(),
|
|
546
|
+
},
|
|
547
|
+
null,
|
|
548
|
+
2,
|
|
549
|
+
),
|
|
550
|
+
);
|
|
551
|
+
});
|
|
552
|
+
parent
|
|
553
|
+
.command("kimpgov-set-max-active-v2 <n>")
|
|
554
|
+
.description("Set max active")
|
|
555
|
+
.action(async (n) => {
|
|
556
|
+
(await L()).setMaxActiveKimpgovProfilesPerOwnerV2(Number(n));
|
|
557
|
+
console.log("ok");
|
|
558
|
+
});
|
|
559
|
+
parent
|
|
560
|
+
.command("kimpgov-set-max-pending-v2 <n>")
|
|
561
|
+
.description("Set max pending")
|
|
562
|
+
.action(async (n) => {
|
|
563
|
+
(await L()).setMaxPendingKimpgovImportsPerProfileV2(Number(n));
|
|
564
|
+
console.log("ok");
|
|
565
|
+
});
|
|
566
|
+
parent
|
|
567
|
+
.command("kimpgov-set-idle-ms-v2 <n>")
|
|
568
|
+
.description("Set idle threshold ms")
|
|
569
|
+
.action(async (n) => {
|
|
570
|
+
(await L()).setKimpgovProfileIdleMsV2(Number(n));
|
|
571
|
+
console.log("ok");
|
|
572
|
+
});
|
|
573
|
+
parent
|
|
574
|
+
.command("kimpgov-set-stuck-ms-v2 <n>")
|
|
575
|
+
.description("Set stuck threshold ms")
|
|
576
|
+
.action(async (n) => {
|
|
577
|
+
(await L()).setKimpgovImportStuckMsV2(Number(n));
|
|
578
|
+
console.log("ok");
|
|
579
|
+
});
|
|
580
|
+
parent
|
|
581
|
+
.command("kimpgov-register-v2 <id> <owner>")
|
|
582
|
+
.description("Register V2 profile")
|
|
583
|
+
.option("--format <v>", "format")
|
|
584
|
+
.action(async (id, owner, o) => {
|
|
585
|
+
const m = await L();
|
|
586
|
+
console.log(
|
|
587
|
+
JSON.stringify(
|
|
588
|
+
m.registerKimpgovProfileV2({ id, owner, format: o.format }),
|
|
589
|
+
null,
|
|
590
|
+
2,
|
|
591
|
+
),
|
|
592
|
+
);
|
|
593
|
+
});
|
|
594
|
+
parent
|
|
595
|
+
.command("kimpgov-activate-v2 <id>")
|
|
596
|
+
.description("Activate profile")
|
|
597
|
+
.action(async (id) => {
|
|
598
|
+
console.log(
|
|
599
|
+
JSON.stringify((await L()).activateKimpgovProfileV2(id), null, 2),
|
|
600
|
+
);
|
|
601
|
+
});
|
|
602
|
+
parent
|
|
603
|
+
.command("kimpgov-stale-v2 <id>")
|
|
604
|
+
.description("Stale profile")
|
|
605
|
+
.action(async (id) => {
|
|
606
|
+
console.log(
|
|
607
|
+
JSON.stringify((await L()).staleKimpgovProfileV2(id), null, 2),
|
|
608
|
+
);
|
|
609
|
+
});
|
|
610
|
+
parent
|
|
611
|
+
.command("kimpgov-archive-v2 <id>")
|
|
612
|
+
.description("Archive profile")
|
|
613
|
+
.action(async (id) => {
|
|
614
|
+
console.log(
|
|
615
|
+
JSON.stringify((await L()).archiveKimpgovProfileV2(id), null, 2),
|
|
616
|
+
);
|
|
617
|
+
});
|
|
618
|
+
parent
|
|
619
|
+
.command("kimpgov-touch-v2 <id>")
|
|
620
|
+
.description("Touch profile")
|
|
621
|
+
.action(async (id) => {
|
|
622
|
+
console.log(
|
|
623
|
+
JSON.stringify((await L()).touchKimpgovProfileV2(id), null, 2),
|
|
624
|
+
);
|
|
625
|
+
});
|
|
626
|
+
parent
|
|
627
|
+
.command("kimpgov-get-v2 <id>")
|
|
628
|
+
.description("Get profile")
|
|
629
|
+
.action(async (id) => {
|
|
630
|
+
console.log(JSON.stringify((await L()).getKimpgovProfileV2(id), null, 2));
|
|
631
|
+
});
|
|
632
|
+
parent
|
|
633
|
+
.command("kimpgov-list-v2")
|
|
634
|
+
.description("List profiles")
|
|
635
|
+
.action(async () => {
|
|
636
|
+
console.log(JSON.stringify((await L()).listKimpgovProfilesV2(), null, 2));
|
|
637
|
+
});
|
|
638
|
+
parent
|
|
639
|
+
.command("kimpgov-create-import-v2 <id> <profileId>")
|
|
640
|
+
.description("Create import")
|
|
641
|
+
.option("--source <v>", "source")
|
|
642
|
+
.action(async (id, profileId, o) => {
|
|
643
|
+
const m = await L();
|
|
644
|
+
console.log(
|
|
645
|
+
JSON.stringify(
|
|
646
|
+
m.createKimpgovImportV2({ id, profileId, source: o.source }),
|
|
647
|
+
null,
|
|
648
|
+
2,
|
|
649
|
+
),
|
|
650
|
+
);
|
|
651
|
+
});
|
|
652
|
+
parent
|
|
653
|
+
.command("kimpgov-importing-import-v2 <id>")
|
|
654
|
+
.description("Mark import as importing")
|
|
655
|
+
.action(async (id) => {
|
|
656
|
+
console.log(
|
|
657
|
+
JSON.stringify((await L()).importingKimpgovImportV2(id), null, 2),
|
|
658
|
+
);
|
|
659
|
+
});
|
|
660
|
+
parent
|
|
661
|
+
.command("kimpgov-complete-import-v2 <id>")
|
|
662
|
+
.description("Complete import")
|
|
663
|
+
.action(async (id) => {
|
|
664
|
+
console.log(
|
|
665
|
+
JSON.stringify((await L()).completeImportKimpgovV2(id), null, 2),
|
|
666
|
+
);
|
|
667
|
+
});
|
|
668
|
+
parent
|
|
669
|
+
.command("kimpgov-fail-import-v2 <id> [reason]")
|
|
670
|
+
.description("Fail import")
|
|
671
|
+
.action(async (id, reason) => {
|
|
672
|
+
console.log(
|
|
673
|
+
JSON.stringify((await L()).failKimpgovImportV2(id, reason), null, 2),
|
|
674
|
+
);
|
|
675
|
+
});
|
|
676
|
+
parent
|
|
677
|
+
.command("kimpgov-cancel-import-v2 <id> [reason]")
|
|
678
|
+
.description("Cancel import")
|
|
679
|
+
.action(async (id, reason) => {
|
|
680
|
+
console.log(
|
|
681
|
+
JSON.stringify((await L()).cancelKimpgovImportV2(id, reason), null, 2),
|
|
682
|
+
);
|
|
683
|
+
});
|
|
684
|
+
parent
|
|
685
|
+
.command("kimpgov-get-import-v2 <id>")
|
|
686
|
+
.description("Get import")
|
|
687
|
+
.action(async (id) => {
|
|
688
|
+
console.log(JSON.stringify((await L()).getKimpgovImportV2(id), null, 2));
|
|
689
|
+
});
|
|
690
|
+
parent
|
|
691
|
+
.command("kimpgov-list-imports-v2")
|
|
692
|
+
.description("List imports")
|
|
693
|
+
.action(async () => {
|
|
694
|
+
console.log(JSON.stringify((await L()).listKimpgovImportsV2(), null, 2));
|
|
695
|
+
});
|
|
696
|
+
parent
|
|
697
|
+
.command("kimpgov-auto-stale-idle-v2")
|
|
698
|
+
.description("Auto-stale idle")
|
|
699
|
+
.action(async () => {
|
|
700
|
+
console.log(
|
|
701
|
+
JSON.stringify((await L()).autoStaleIdleKimpgovProfilesV2(), null, 2),
|
|
702
|
+
);
|
|
703
|
+
});
|
|
704
|
+
parent
|
|
705
|
+
.command("kimpgov-auto-fail-stuck-v2")
|
|
706
|
+
.description("Auto-fail stuck imports")
|
|
707
|
+
.action(async () => {
|
|
708
|
+
console.log(
|
|
709
|
+
JSON.stringify((await L()).autoFailStuckKimpgovImportsV2(), null, 2),
|
|
710
|
+
);
|
|
711
|
+
});
|
|
712
|
+
parent
|
|
713
|
+
.command("kimpgov-gov-stats-v2")
|
|
714
|
+
.description("V2 gov stats")
|
|
715
|
+
.action(async () => {
|
|
716
|
+
console.log(
|
|
717
|
+
JSON.stringify((await L()).getKnowledgeImporterGovStatsV2(), null, 2),
|
|
718
|
+
);
|
|
719
|
+
});
|
|
720
|
+
}
|
package/src/commands/infra.js
CHANGED
|
@@ -603,3 +603,206 @@ export function registerInfraCommand(program) {
|
|
|
603
603
|
|
|
604
604
|
program.addCommand(inf);
|
|
605
605
|
}
|
|
606
|
+
|
|
607
|
+
// === Iter23 V2 governance overlay ===
|
|
608
|
+
export function registerDigovV2Commands(program) {
|
|
609
|
+
const parent = program.commands.find((c) => c.name() === "infra");
|
|
610
|
+
if (!parent) return;
|
|
611
|
+
const L = async () => await import("../lib/decentral-infra.js");
|
|
612
|
+
parent
|
|
613
|
+
.command("digov-enums-v2")
|
|
614
|
+
.description("Show V2 enums")
|
|
615
|
+
.action(async () => {
|
|
616
|
+
const m = await L();
|
|
617
|
+
console.log(
|
|
618
|
+
JSON.stringify(
|
|
619
|
+
{
|
|
620
|
+
profileMaturity: m.DIGOV_PROFILE_MATURITY_V2,
|
|
621
|
+
dealLifecycle: m.DIGOV_DEAL_LIFECYCLE_V2,
|
|
622
|
+
},
|
|
623
|
+
null,
|
|
624
|
+
2,
|
|
625
|
+
),
|
|
626
|
+
);
|
|
627
|
+
});
|
|
628
|
+
parent
|
|
629
|
+
.command("digov-config-v2")
|
|
630
|
+
.description("Show V2 config")
|
|
631
|
+
.action(async () => {
|
|
632
|
+
const m = await L();
|
|
633
|
+
console.log(
|
|
634
|
+
JSON.stringify(
|
|
635
|
+
{
|
|
636
|
+
maxActive: m.getMaxActiveDigovProfilesPerOwnerV2(),
|
|
637
|
+
maxPending: m.getMaxPendingDigovDealsPerProfileV2(),
|
|
638
|
+
idleMs: m.getDigovProfileIdleMsV2(),
|
|
639
|
+
stuckMs: m.getDigovDealStuckMsV2(),
|
|
640
|
+
},
|
|
641
|
+
null,
|
|
642
|
+
2,
|
|
643
|
+
),
|
|
644
|
+
);
|
|
645
|
+
});
|
|
646
|
+
parent
|
|
647
|
+
.command("digov-set-max-active-v2 <n>")
|
|
648
|
+
.description("Set max active")
|
|
649
|
+
.action(async (n) => {
|
|
650
|
+
(await L()).setMaxActiveDigovProfilesPerOwnerV2(Number(n));
|
|
651
|
+
console.log("ok");
|
|
652
|
+
});
|
|
653
|
+
parent
|
|
654
|
+
.command("digov-set-max-pending-v2 <n>")
|
|
655
|
+
.description("Set max pending")
|
|
656
|
+
.action(async (n) => {
|
|
657
|
+
(await L()).setMaxPendingDigovDealsPerProfileV2(Number(n));
|
|
658
|
+
console.log("ok");
|
|
659
|
+
});
|
|
660
|
+
parent
|
|
661
|
+
.command("digov-set-idle-ms-v2 <n>")
|
|
662
|
+
.description("Set idle threshold ms")
|
|
663
|
+
.action(async (n) => {
|
|
664
|
+
(await L()).setDigovProfileIdleMsV2(Number(n));
|
|
665
|
+
console.log("ok");
|
|
666
|
+
});
|
|
667
|
+
parent
|
|
668
|
+
.command("digov-set-stuck-ms-v2 <n>")
|
|
669
|
+
.description("Set stuck threshold ms")
|
|
670
|
+
.action(async (n) => {
|
|
671
|
+
(await L()).setDigovDealStuckMsV2(Number(n));
|
|
672
|
+
console.log("ok");
|
|
673
|
+
});
|
|
674
|
+
parent
|
|
675
|
+
.command("digov-register-v2 <id> <owner>")
|
|
676
|
+
.description("Register V2 profile")
|
|
677
|
+
.option("--region <v>", "region")
|
|
678
|
+
.action(async (id, owner, o) => {
|
|
679
|
+
const m = await L();
|
|
680
|
+
console.log(
|
|
681
|
+
JSON.stringify(
|
|
682
|
+
m.registerDigovProfileV2({ id, owner, region: o.region }),
|
|
683
|
+
null,
|
|
684
|
+
2,
|
|
685
|
+
),
|
|
686
|
+
);
|
|
687
|
+
});
|
|
688
|
+
parent
|
|
689
|
+
.command("digov-activate-v2 <id>")
|
|
690
|
+
.description("Activate profile")
|
|
691
|
+
.action(async (id) => {
|
|
692
|
+
console.log(
|
|
693
|
+
JSON.stringify((await L()).activateDigovProfileV2(id), null, 2),
|
|
694
|
+
);
|
|
695
|
+
});
|
|
696
|
+
parent
|
|
697
|
+
.command("digov-stale-v2 <id>")
|
|
698
|
+
.description("Stale profile")
|
|
699
|
+
.action(async (id) => {
|
|
700
|
+
console.log(JSON.stringify((await L()).staleDigovProfileV2(id), null, 2));
|
|
701
|
+
});
|
|
702
|
+
parent
|
|
703
|
+
.command("digov-archive-v2 <id>")
|
|
704
|
+
.description("Archive profile")
|
|
705
|
+
.action(async (id) => {
|
|
706
|
+
console.log(
|
|
707
|
+
JSON.stringify((await L()).archiveDigovProfileV2(id), null, 2),
|
|
708
|
+
);
|
|
709
|
+
});
|
|
710
|
+
parent
|
|
711
|
+
.command("digov-touch-v2 <id>")
|
|
712
|
+
.description("Touch profile")
|
|
713
|
+
.action(async (id) => {
|
|
714
|
+
console.log(JSON.stringify((await L()).touchDigovProfileV2(id), null, 2));
|
|
715
|
+
});
|
|
716
|
+
parent
|
|
717
|
+
.command("digov-get-v2 <id>")
|
|
718
|
+
.description("Get profile")
|
|
719
|
+
.action(async (id) => {
|
|
720
|
+
console.log(JSON.stringify((await L()).getDigovProfileV2(id), null, 2));
|
|
721
|
+
});
|
|
722
|
+
parent
|
|
723
|
+
.command("digov-list-v2")
|
|
724
|
+
.description("List profiles")
|
|
725
|
+
.action(async () => {
|
|
726
|
+
console.log(JSON.stringify((await L()).listDigovProfilesV2(), null, 2));
|
|
727
|
+
});
|
|
728
|
+
parent
|
|
729
|
+
.command("digov-create-deal-v2 <id> <profileId>")
|
|
730
|
+
.description("Create deal")
|
|
731
|
+
.option("--provider <v>", "provider")
|
|
732
|
+
.action(async (id, profileId, o) => {
|
|
733
|
+
const m = await L();
|
|
734
|
+
console.log(
|
|
735
|
+
JSON.stringify(
|
|
736
|
+
m.createDigovDealV2({ id, profileId, provider: o.provider }),
|
|
737
|
+
null,
|
|
738
|
+
2,
|
|
739
|
+
),
|
|
740
|
+
);
|
|
741
|
+
});
|
|
742
|
+
parent
|
|
743
|
+
.command("digov-negotiating-deal-v2 <id>")
|
|
744
|
+
.description("Mark deal as negotiating")
|
|
745
|
+
.action(async (id) => {
|
|
746
|
+
console.log(
|
|
747
|
+
JSON.stringify((await L()).negotiatingDigovDealV2(id), null, 2),
|
|
748
|
+
);
|
|
749
|
+
});
|
|
750
|
+
parent
|
|
751
|
+
.command("digov-complete-deal-v2 <id>")
|
|
752
|
+
.description("Complete deal")
|
|
753
|
+
.action(async (id) => {
|
|
754
|
+
console.log(JSON.stringify((await L()).completeDealDigovV2(id), null, 2));
|
|
755
|
+
});
|
|
756
|
+
parent
|
|
757
|
+
.command("digov-fail-deal-v2 <id> [reason]")
|
|
758
|
+
.description("Fail deal")
|
|
759
|
+
.action(async (id, reason) => {
|
|
760
|
+
console.log(
|
|
761
|
+
JSON.stringify((await L()).failDigovDealV2(id, reason), null, 2),
|
|
762
|
+
);
|
|
763
|
+
});
|
|
764
|
+
parent
|
|
765
|
+
.command("digov-cancel-deal-v2 <id> [reason]")
|
|
766
|
+
.description("Cancel deal")
|
|
767
|
+
.action(async (id, reason) => {
|
|
768
|
+
console.log(
|
|
769
|
+
JSON.stringify((await L()).cancelDigovDealV2(id, reason), null, 2),
|
|
770
|
+
);
|
|
771
|
+
});
|
|
772
|
+
parent
|
|
773
|
+
.command("digov-get-deal-v2 <id>")
|
|
774
|
+
.description("Get deal")
|
|
775
|
+
.action(async (id) => {
|
|
776
|
+
console.log(JSON.stringify((await L()).getDigovDealV2(id), null, 2));
|
|
777
|
+
});
|
|
778
|
+
parent
|
|
779
|
+
.command("digov-list-deals-v2")
|
|
780
|
+
.description("List deals")
|
|
781
|
+
.action(async () => {
|
|
782
|
+
console.log(JSON.stringify((await L()).listDigovDealsV2(), null, 2));
|
|
783
|
+
});
|
|
784
|
+
parent
|
|
785
|
+
.command("digov-auto-stale-idle-v2")
|
|
786
|
+
.description("Auto-stale idle")
|
|
787
|
+
.action(async () => {
|
|
788
|
+
console.log(
|
|
789
|
+
JSON.stringify((await L()).autoStaleIdleDigovProfilesV2(), null, 2),
|
|
790
|
+
);
|
|
791
|
+
});
|
|
792
|
+
parent
|
|
793
|
+
.command("digov-auto-fail-stuck-v2")
|
|
794
|
+
.description("Auto-fail stuck deals")
|
|
795
|
+
.action(async () => {
|
|
796
|
+
console.log(
|
|
797
|
+
JSON.stringify((await L()).autoFailStuckDigovDealsV2(), null, 2),
|
|
798
|
+
);
|
|
799
|
+
});
|
|
800
|
+
parent
|
|
801
|
+
.command("digov-gov-stats-v2")
|
|
802
|
+
.description("V2 gov stats")
|
|
803
|
+
.action(async () => {
|
|
804
|
+
console.log(
|
|
805
|
+
JSON.stringify((await L()).getDecentralInfraGovStatsV2(), null, 2),
|
|
806
|
+
);
|
|
807
|
+
});
|
|
808
|
+
}
|
package/src/commands/instinct.js
CHANGED
|
@@ -460,3 +460,212 @@ export function registerInstinctCommand(program) {
|
|
|
460
460
|
console.log(JSON.stringify(autoDiscardStaleObservationsV2(), null, 2)),
|
|
461
461
|
);
|
|
462
462
|
}
|
|
463
|
+
|
|
464
|
+
// === Iter18 V2 governance overlay ===
|
|
465
|
+
export function registerInstgovV2Commands(program) {
|
|
466
|
+
const parent = program.commands.find((c) => c.name() === "instinct");
|
|
467
|
+
if (!parent) return;
|
|
468
|
+
const L = async () => await import("../lib/instinct-manager.js");
|
|
469
|
+
parent
|
|
470
|
+
.command("instgov-enums-v2")
|
|
471
|
+
.description("Show V2 enums")
|
|
472
|
+
.action(async () => {
|
|
473
|
+
const m = await L();
|
|
474
|
+
console.log(
|
|
475
|
+
JSON.stringify(
|
|
476
|
+
{
|
|
477
|
+
profileMaturity: m.INSTGOV_PROFILE_MATURITY_V2,
|
|
478
|
+
triggerLifecycle: m.INSTGOV_TRIGGER_LIFECYCLE_V2,
|
|
479
|
+
},
|
|
480
|
+
null,
|
|
481
|
+
2,
|
|
482
|
+
),
|
|
483
|
+
);
|
|
484
|
+
});
|
|
485
|
+
parent
|
|
486
|
+
.command("instgov-config-v2")
|
|
487
|
+
.description("Show V2 config")
|
|
488
|
+
.action(async () => {
|
|
489
|
+
const m = await L();
|
|
490
|
+
console.log(
|
|
491
|
+
JSON.stringify(
|
|
492
|
+
{
|
|
493
|
+
maxActive: m.getMaxActiveInstgovProfilesPerOwnerV2(),
|
|
494
|
+
maxPending: m.getMaxPendingInstgovTriggersPerProfileV2(),
|
|
495
|
+
idleMs: m.getInstgovProfileIdleMsV2(),
|
|
496
|
+
stuckMs: m.getInstgovTriggerStuckMsV2(),
|
|
497
|
+
},
|
|
498
|
+
null,
|
|
499
|
+
2,
|
|
500
|
+
),
|
|
501
|
+
);
|
|
502
|
+
});
|
|
503
|
+
parent
|
|
504
|
+
.command("instgov-set-max-active-v2 <n>")
|
|
505
|
+
.description("Set max active")
|
|
506
|
+
.action(async (n) => {
|
|
507
|
+
(await L()).setMaxActiveInstgovProfilesPerOwnerV2(Number(n));
|
|
508
|
+
console.log("ok");
|
|
509
|
+
});
|
|
510
|
+
parent
|
|
511
|
+
.command("instgov-set-max-pending-v2 <n>")
|
|
512
|
+
.description("Set max pending")
|
|
513
|
+
.action(async (n) => {
|
|
514
|
+
(await L()).setMaxPendingInstgovTriggersPerProfileV2(Number(n));
|
|
515
|
+
console.log("ok");
|
|
516
|
+
});
|
|
517
|
+
parent
|
|
518
|
+
.command("instgov-set-idle-ms-v2 <n>")
|
|
519
|
+
.description("Set idle threshold ms")
|
|
520
|
+
.action(async (n) => {
|
|
521
|
+
(await L()).setInstgovProfileIdleMsV2(Number(n));
|
|
522
|
+
console.log("ok");
|
|
523
|
+
});
|
|
524
|
+
parent
|
|
525
|
+
.command("instgov-set-stuck-ms-v2 <n>")
|
|
526
|
+
.description("Set stuck threshold ms")
|
|
527
|
+
.action(async (n) => {
|
|
528
|
+
(await L()).setInstgovTriggerStuckMsV2(Number(n));
|
|
529
|
+
console.log("ok");
|
|
530
|
+
});
|
|
531
|
+
parent
|
|
532
|
+
.command("instgov-register-v2 <id> <owner>")
|
|
533
|
+
.description("Register V2 profile")
|
|
534
|
+
.option("--priority <v>", "priority")
|
|
535
|
+
.action(async (id, owner, o) => {
|
|
536
|
+
const m = await L();
|
|
537
|
+
console.log(
|
|
538
|
+
JSON.stringify(
|
|
539
|
+
m.registerInstgovProfileV2({ id, owner, priority: o.priority }),
|
|
540
|
+
null,
|
|
541
|
+
2,
|
|
542
|
+
),
|
|
543
|
+
);
|
|
544
|
+
});
|
|
545
|
+
parent
|
|
546
|
+
.command("instgov-activate-v2 <id>")
|
|
547
|
+
.description("Activate profile")
|
|
548
|
+
.action(async (id) => {
|
|
549
|
+
console.log(
|
|
550
|
+
JSON.stringify((await L()).activateInstgovProfileV2(id), null, 2),
|
|
551
|
+
);
|
|
552
|
+
});
|
|
553
|
+
parent
|
|
554
|
+
.command("instgov-dormant-v2 <id>")
|
|
555
|
+
.description("Dormant profile")
|
|
556
|
+
.action(async (id) => {
|
|
557
|
+
console.log(
|
|
558
|
+
JSON.stringify((await L()).dormantInstgovProfileV2(id), null, 2),
|
|
559
|
+
);
|
|
560
|
+
});
|
|
561
|
+
parent
|
|
562
|
+
.command("instgov-archive-v2 <id>")
|
|
563
|
+
.description("Archive profile")
|
|
564
|
+
.action(async (id) => {
|
|
565
|
+
console.log(
|
|
566
|
+
JSON.stringify((await L()).archiveInstgovProfileV2(id), null, 2),
|
|
567
|
+
);
|
|
568
|
+
});
|
|
569
|
+
parent
|
|
570
|
+
.command("instgov-touch-v2 <id>")
|
|
571
|
+
.description("Touch profile")
|
|
572
|
+
.action(async (id) => {
|
|
573
|
+
console.log(
|
|
574
|
+
JSON.stringify((await L()).touchInstgovProfileV2(id), null, 2),
|
|
575
|
+
);
|
|
576
|
+
});
|
|
577
|
+
parent
|
|
578
|
+
.command("instgov-get-v2 <id>")
|
|
579
|
+
.description("Get profile")
|
|
580
|
+
.action(async (id) => {
|
|
581
|
+
console.log(JSON.stringify((await L()).getInstgovProfileV2(id), null, 2));
|
|
582
|
+
});
|
|
583
|
+
parent
|
|
584
|
+
.command("instgov-list-v2")
|
|
585
|
+
.description("List profiles")
|
|
586
|
+
.action(async () => {
|
|
587
|
+
console.log(JSON.stringify((await L()).listInstgovProfilesV2(), null, 2));
|
|
588
|
+
});
|
|
589
|
+
parent
|
|
590
|
+
.command("instgov-create-trigger-v2 <id> <profileId>")
|
|
591
|
+
.description("Create trigger")
|
|
592
|
+
.option("--pattern <v>", "pattern")
|
|
593
|
+
.action(async (id, profileId, o) => {
|
|
594
|
+
const m = await L();
|
|
595
|
+
console.log(
|
|
596
|
+
JSON.stringify(
|
|
597
|
+
m.createInstgovTriggerV2({ id, profileId, pattern: o.pattern }),
|
|
598
|
+
null,
|
|
599
|
+
2,
|
|
600
|
+
),
|
|
601
|
+
);
|
|
602
|
+
});
|
|
603
|
+
parent
|
|
604
|
+
.command("instgov-firing-trigger-v2 <id>")
|
|
605
|
+
.description("Mark trigger as firing")
|
|
606
|
+
.action(async (id) => {
|
|
607
|
+
console.log(
|
|
608
|
+
JSON.stringify((await L()).firingInstgovTriggerV2(id), null, 2),
|
|
609
|
+
);
|
|
610
|
+
});
|
|
611
|
+
parent
|
|
612
|
+
.command("instgov-complete-trigger-v2 <id>")
|
|
613
|
+
.description("Complete trigger")
|
|
614
|
+
.action(async (id) => {
|
|
615
|
+
console.log(
|
|
616
|
+
JSON.stringify((await L()).completeTriggerInstgovV2(id), null, 2),
|
|
617
|
+
);
|
|
618
|
+
});
|
|
619
|
+
parent
|
|
620
|
+
.command("instgov-fail-trigger-v2 <id> [reason]")
|
|
621
|
+
.description("Fail trigger")
|
|
622
|
+
.action(async (id, reason) => {
|
|
623
|
+
console.log(
|
|
624
|
+
JSON.stringify((await L()).failInstgovTriggerV2(id, reason), null, 2),
|
|
625
|
+
);
|
|
626
|
+
});
|
|
627
|
+
parent
|
|
628
|
+
.command("instgov-cancel-trigger-v2 <id> [reason]")
|
|
629
|
+
.description("Cancel trigger")
|
|
630
|
+
.action(async (id, reason) => {
|
|
631
|
+
console.log(
|
|
632
|
+
JSON.stringify((await L()).cancelInstgovTriggerV2(id, reason), null, 2),
|
|
633
|
+
);
|
|
634
|
+
});
|
|
635
|
+
parent
|
|
636
|
+
.command("instgov-get-trigger-v2 <id>")
|
|
637
|
+
.description("Get trigger")
|
|
638
|
+
.action(async (id) => {
|
|
639
|
+
console.log(JSON.stringify((await L()).getInstgovTriggerV2(id), null, 2));
|
|
640
|
+
});
|
|
641
|
+
parent
|
|
642
|
+
.command("instgov-list-triggers-v2")
|
|
643
|
+
.description("List triggers")
|
|
644
|
+
.action(async () => {
|
|
645
|
+
console.log(JSON.stringify((await L()).listInstgovTriggersV2(), null, 2));
|
|
646
|
+
});
|
|
647
|
+
parent
|
|
648
|
+
.command("instgov-auto-dormant-idle-v2")
|
|
649
|
+
.description("Auto-dormant idle")
|
|
650
|
+
.action(async () => {
|
|
651
|
+
console.log(
|
|
652
|
+
JSON.stringify((await L()).autoDormantIdleInstgovProfilesV2(), null, 2),
|
|
653
|
+
);
|
|
654
|
+
});
|
|
655
|
+
parent
|
|
656
|
+
.command("instgov-auto-fail-stuck-v2")
|
|
657
|
+
.description("Auto-fail stuck triggers")
|
|
658
|
+
.action(async () => {
|
|
659
|
+
console.log(
|
|
660
|
+
JSON.stringify((await L()).autoFailStuckInstgovTriggersV2(), null, 2),
|
|
661
|
+
);
|
|
662
|
+
});
|
|
663
|
+
parent
|
|
664
|
+
.command("instgov-gov-stats-v2")
|
|
665
|
+
.description("V2 gov stats")
|
|
666
|
+
.action(async () => {
|
|
667
|
+
console.log(
|
|
668
|
+
JSON.stringify((await L()).getInstinctManagerGovStatsV2(), null, 2),
|
|
669
|
+
);
|
|
670
|
+
});
|
|
671
|
+
}
|