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/bi.js
CHANGED
|
@@ -772,3 +772,206 @@ export function registerBiV2Command(bi) {
|
|
|
772
772
|
console.log(JSON.stringify(getBiEngineStatsV2(), null, 2));
|
|
773
773
|
});
|
|
774
774
|
}
|
|
775
|
+
|
|
776
|
+
// === Iter21 V2 governance overlay ===
|
|
777
|
+
export function registerBigovV2Commands(program) {
|
|
778
|
+
const parent = program.commands.find((c) => c.name() === "bi");
|
|
779
|
+
if (!parent) return;
|
|
780
|
+
const L = async () => await import("../lib/bi-engine.js");
|
|
781
|
+
parent
|
|
782
|
+
.command("bigov-enums-v2")
|
|
783
|
+
.description("Show V2 enums")
|
|
784
|
+
.action(async () => {
|
|
785
|
+
const m = await L();
|
|
786
|
+
console.log(
|
|
787
|
+
JSON.stringify(
|
|
788
|
+
{
|
|
789
|
+
profileMaturity: m.BIGOV_PROFILE_MATURITY_V2,
|
|
790
|
+
queryLifecycle: m.BIGOV_QUERY_LIFECYCLE_V2,
|
|
791
|
+
},
|
|
792
|
+
null,
|
|
793
|
+
2,
|
|
794
|
+
),
|
|
795
|
+
);
|
|
796
|
+
});
|
|
797
|
+
parent
|
|
798
|
+
.command("bigov-config-v2")
|
|
799
|
+
.description("Show V2 config")
|
|
800
|
+
.action(async () => {
|
|
801
|
+
const m = await L();
|
|
802
|
+
console.log(
|
|
803
|
+
JSON.stringify(
|
|
804
|
+
{
|
|
805
|
+
maxActive: m.getMaxActiveBigovProfilesPerOwnerV2(),
|
|
806
|
+
maxPending: m.getMaxPendingBigovQuerysPerProfileV2(),
|
|
807
|
+
idleMs: m.getBigovProfileIdleMsV2(),
|
|
808
|
+
stuckMs: m.getBigovQueryStuckMsV2(),
|
|
809
|
+
},
|
|
810
|
+
null,
|
|
811
|
+
2,
|
|
812
|
+
),
|
|
813
|
+
);
|
|
814
|
+
});
|
|
815
|
+
parent
|
|
816
|
+
.command("bigov-set-max-active-v2 <n>")
|
|
817
|
+
.description("Set max active")
|
|
818
|
+
.action(async (n) => {
|
|
819
|
+
(await L()).setMaxActiveBigovProfilesPerOwnerV2(Number(n));
|
|
820
|
+
console.log("ok");
|
|
821
|
+
});
|
|
822
|
+
parent
|
|
823
|
+
.command("bigov-set-max-pending-v2 <n>")
|
|
824
|
+
.description("Set max pending")
|
|
825
|
+
.action(async (n) => {
|
|
826
|
+
(await L()).setMaxPendingBigovQuerysPerProfileV2(Number(n));
|
|
827
|
+
console.log("ok");
|
|
828
|
+
});
|
|
829
|
+
parent
|
|
830
|
+
.command("bigov-set-idle-ms-v2 <n>")
|
|
831
|
+
.description("Set idle threshold ms")
|
|
832
|
+
.action(async (n) => {
|
|
833
|
+
(await L()).setBigovProfileIdleMsV2(Number(n));
|
|
834
|
+
console.log("ok");
|
|
835
|
+
});
|
|
836
|
+
parent
|
|
837
|
+
.command("bigov-set-stuck-ms-v2 <n>")
|
|
838
|
+
.description("Set stuck threshold ms")
|
|
839
|
+
.action(async (n) => {
|
|
840
|
+
(await L()).setBigovQueryStuckMsV2(Number(n));
|
|
841
|
+
console.log("ok");
|
|
842
|
+
});
|
|
843
|
+
parent
|
|
844
|
+
.command("bigov-register-v2 <id> <owner>")
|
|
845
|
+
.description("Register V2 profile")
|
|
846
|
+
.option("--dataset <v>", "dataset")
|
|
847
|
+
.action(async (id, owner, o) => {
|
|
848
|
+
const m = await L();
|
|
849
|
+
console.log(
|
|
850
|
+
JSON.stringify(
|
|
851
|
+
m.registerBigovProfileV2({ id, owner, dataset: o.dataset }),
|
|
852
|
+
null,
|
|
853
|
+
2,
|
|
854
|
+
),
|
|
855
|
+
);
|
|
856
|
+
});
|
|
857
|
+
parent
|
|
858
|
+
.command("bigov-activate-v2 <id>")
|
|
859
|
+
.description("Activate profile")
|
|
860
|
+
.action(async (id) => {
|
|
861
|
+
console.log(
|
|
862
|
+
JSON.stringify((await L()).activateBigovProfileV2(id), null, 2),
|
|
863
|
+
);
|
|
864
|
+
});
|
|
865
|
+
parent
|
|
866
|
+
.command("bigov-stale-v2 <id>")
|
|
867
|
+
.description("Stale profile")
|
|
868
|
+
.action(async (id) => {
|
|
869
|
+
console.log(JSON.stringify((await L()).staleBigovProfileV2(id), null, 2));
|
|
870
|
+
});
|
|
871
|
+
parent
|
|
872
|
+
.command("bigov-archive-v2 <id>")
|
|
873
|
+
.description("Archive profile")
|
|
874
|
+
.action(async (id) => {
|
|
875
|
+
console.log(
|
|
876
|
+
JSON.stringify((await L()).archiveBigovProfileV2(id), null, 2),
|
|
877
|
+
);
|
|
878
|
+
});
|
|
879
|
+
parent
|
|
880
|
+
.command("bigov-touch-v2 <id>")
|
|
881
|
+
.description("Touch profile")
|
|
882
|
+
.action(async (id) => {
|
|
883
|
+
console.log(JSON.stringify((await L()).touchBigovProfileV2(id), null, 2));
|
|
884
|
+
});
|
|
885
|
+
parent
|
|
886
|
+
.command("bigov-get-v2 <id>")
|
|
887
|
+
.description("Get profile")
|
|
888
|
+
.action(async (id) => {
|
|
889
|
+
console.log(JSON.stringify((await L()).getBigovProfileV2(id), null, 2));
|
|
890
|
+
});
|
|
891
|
+
parent
|
|
892
|
+
.command("bigov-list-v2")
|
|
893
|
+
.description("List profiles")
|
|
894
|
+
.action(async () => {
|
|
895
|
+
console.log(JSON.stringify((await L()).listBigovProfilesV2(), null, 2));
|
|
896
|
+
});
|
|
897
|
+
parent
|
|
898
|
+
.command("bigov-create-query-v2 <id> <profileId>")
|
|
899
|
+
.description("Create query")
|
|
900
|
+
.option("--kpi <v>", "kpi")
|
|
901
|
+
.action(async (id, profileId, o) => {
|
|
902
|
+
const m = await L();
|
|
903
|
+
console.log(
|
|
904
|
+
JSON.stringify(
|
|
905
|
+
m.createBigovQueryV2({ id, profileId, kpi: o.kpi }),
|
|
906
|
+
null,
|
|
907
|
+
2,
|
|
908
|
+
),
|
|
909
|
+
);
|
|
910
|
+
});
|
|
911
|
+
parent
|
|
912
|
+
.command("bigov-querying-query-v2 <id>")
|
|
913
|
+
.description("Mark query as querying")
|
|
914
|
+
.action(async (id) => {
|
|
915
|
+
console.log(
|
|
916
|
+
JSON.stringify((await L()).queryingBigovQueryV2(id), null, 2),
|
|
917
|
+
);
|
|
918
|
+
});
|
|
919
|
+
parent
|
|
920
|
+
.command("bigov-complete-query-v2 <id>")
|
|
921
|
+
.description("Complete query")
|
|
922
|
+
.action(async (id) => {
|
|
923
|
+
console.log(
|
|
924
|
+
JSON.stringify((await L()).completeQueryBigovV2(id), null, 2),
|
|
925
|
+
);
|
|
926
|
+
});
|
|
927
|
+
parent
|
|
928
|
+
.command("bigov-fail-query-v2 <id> [reason]")
|
|
929
|
+
.description("Fail query")
|
|
930
|
+
.action(async (id, reason) => {
|
|
931
|
+
console.log(
|
|
932
|
+
JSON.stringify((await L()).failBigovQueryV2(id, reason), null, 2),
|
|
933
|
+
);
|
|
934
|
+
});
|
|
935
|
+
parent
|
|
936
|
+
.command("bigov-cancel-query-v2 <id> [reason]")
|
|
937
|
+
.description("Cancel query")
|
|
938
|
+
.action(async (id, reason) => {
|
|
939
|
+
console.log(
|
|
940
|
+
JSON.stringify((await L()).cancelBigovQueryV2(id, reason), null, 2),
|
|
941
|
+
);
|
|
942
|
+
});
|
|
943
|
+
parent
|
|
944
|
+
.command("bigov-get-query-v2 <id>")
|
|
945
|
+
.description("Get query")
|
|
946
|
+
.action(async (id) => {
|
|
947
|
+
console.log(JSON.stringify((await L()).getBigovQueryV2(id), null, 2));
|
|
948
|
+
});
|
|
949
|
+
parent
|
|
950
|
+
.command("bigov-list-querys-v2")
|
|
951
|
+
.description("List querys")
|
|
952
|
+
.action(async () => {
|
|
953
|
+
console.log(JSON.stringify((await L()).listBigovQuerysV2(), null, 2));
|
|
954
|
+
});
|
|
955
|
+
parent
|
|
956
|
+
.command("bigov-auto-stale-idle-v2")
|
|
957
|
+
.description("Auto-stale idle")
|
|
958
|
+
.action(async () => {
|
|
959
|
+
console.log(
|
|
960
|
+
JSON.stringify((await L()).autoStaleIdleBigovProfilesV2(), null, 2),
|
|
961
|
+
);
|
|
962
|
+
});
|
|
963
|
+
parent
|
|
964
|
+
.command("bigov-auto-fail-stuck-v2")
|
|
965
|
+
.description("Auto-fail stuck querys")
|
|
966
|
+
.action(async () => {
|
|
967
|
+
console.log(
|
|
968
|
+
JSON.stringify((await L()).autoFailStuckBigovQuerysV2(), null, 2),
|
|
969
|
+
);
|
|
970
|
+
});
|
|
971
|
+
parent
|
|
972
|
+
.command("bigov-gov-stats-v2")
|
|
973
|
+
.description("V2 gov stats")
|
|
974
|
+
.action(async () => {
|
|
975
|
+
console.log(JSON.stringify((await L()).getBiEngineGovStatsV2(), null, 2));
|
|
976
|
+
});
|
|
977
|
+
}
|
package/src/commands/browse.js
CHANGED
|
@@ -407,3 +407,216 @@ export function registerBrowseV2Command(browse) {
|
|
|
407
407
|
console.log(JSON.stringify(getBrowserAutomationStatsV2(), null, 2));
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
|
+
|
|
411
|
+
// === Iter20 V2 governance overlay ===
|
|
412
|
+
export function registerBagovV2Commands(program) {
|
|
413
|
+
const parent = program.commands.find((c) => c.name() === "browse");
|
|
414
|
+
if (!parent) return;
|
|
415
|
+
const L = async () => await import("../lib/browser-automation.js");
|
|
416
|
+
parent
|
|
417
|
+
.command("bagov-enums-v2")
|
|
418
|
+
.description("Show V2 enums")
|
|
419
|
+
.action(async () => {
|
|
420
|
+
const m = await L();
|
|
421
|
+
console.log(
|
|
422
|
+
JSON.stringify(
|
|
423
|
+
{
|
|
424
|
+
profileMaturity: m.BAGOV_PROFILE_MATURITY_V2,
|
|
425
|
+
navigationLifecycle: m.BAGOV_NAVIGATION_LIFECYCLE_V2,
|
|
426
|
+
},
|
|
427
|
+
null,
|
|
428
|
+
2,
|
|
429
|
+
),
|
|
430
|
+
);
|
|
431
|
+
});
|
|
432
|
+
parent
|
|
433
|
+
.command("bagov-config-v2")
|
|
434
|
+
.description("Show V2 config")
|
|
435
|
+
.action(async () => {
|
|
436
|
+
const m = await L();
|
|
437
|
+
console.log(
|
|
438
|
+
JSON.stringify(
|
|
439
|
+
{
|
|
440
|
+
maxActive: m.getMaxActiveBagovProfilesPerOwnerV2(),
|
|
441
|
+
maxPending: m.getMaxPendingBagovNavigationsPerProfileV2(),
|
|
442
|
+
idleMs: m.getBagovProfileIdleMsV2(),
|
|
443
|
+
stuckMs: m.getBagovNavigationStuckMsV2(),
|
|
444
|
+
},
|
|
445
|
+
null,
|
|
446
|
+
2,
|
|
447
|
+
),
|
|
448
|
+
);
|
|
449
|
+
});
|
|
450
|
+
parent
|
|
451
|
+
.command("bagov-set-max-active-v2 <n>")
|
|
452
|
+
.description("Set max active")
|
|
453
|
+
.action(async (n) => {
|
|
454
|
+
(await L()).setMaxActiveBagovProfilesPerOwnerV2(Number(n));
|
|
455
|
+
console.log("ok");
|
|
456
|
+
});
|
|
457
|
+
parent
|
|
458
|
+
.command("bagov-set-max-pending-v2 <n>")
|
|
459
|
+
.description("Set max pending")
|
|
460
|
+
.action(async (n) => {
|
|
461
|
+
(await L()).setMaxPendingBagovNavigationsPerProfileV2(Number(n));
|
|
462
|
+
console.log("ok");
|
|
463
|
+
});
|
|
464
|
+
parent
|
|
465
|
+
.command("bagov-set-idle-ms-v2 <n>")
|
|
466
|
+
.description("Set idle threshold ms")
|
|
467
|
+
.action(async (n) => {
|
|
468
|
+
(await L()).setBagovProfileIdleMsV2(Number(n));
|
|
469
|
+
console.log("ok");
|
|
470
|
+
});
|
|
471
|
+
parent
|
|
472
|
+
.command("bagov-set-stuck-ms-v2 <n>")
|
|
473
|
+
.description("Set stuck threshold ms")
|
|
474
|
+
.action(async (n) => {
|
|
475
|
+
(await L()).setBagovNavigationStuckMsV2(Number(n));
|
|
476
|
+
console.log("ok");
|
|
477
|
+
});
|
|
478
|
+
parent
|
|
479
|
+
.command("bagov-register-v2 <id> <owner>")
|
|
480
|
+
.description("Register V2 profile")
|
|
481
|
+
.option("--engine <v>", "engine")
|
|
482
|
+
.action(async (id, owner, o) => {
|
|
483
|
+
const m = await L();
|
|
484
|
+
console.log(
|
|
485
|
+
JSON.stringify(
|
|
486
|
+
m.registerBagovProfileV2({ id, owner, engine: o.engine }),
|
|
487
|
+
null,
|
|
488
|
+
2,
|
|
489
|
+
),
|
|
490
|
+
);
|
|
491
|
+
});
|
|
492
|
+
parent
|
|
493
|
+
.command("bagov-activate-v2 <id>")
|
|
494
|
+
.description("Activate profile")
|
|
495
|
+
.action(async (id) => {
|
|
496
|
+
console.log(
|
|
497
|
+
JSON.stringify((await L()).activateBagovProfileV2(id), null, 2),
|
|
498
|
+
);
|
|
499
|
+
});
|
|
500
|
+
parent
|
|
501
|
+
.command("bagov-stale-v2 <id>")
|
|
502
|
+
.description("Stale profile")
|
|
503
|
+
.action(async (id) => {
|
|
504
|
+
console.log(JSON.stringify((await L()).staleBagovProfileV2(id), null, 2));
|
|
505
|
+
});
|
|
506
|
+
parent
|
|
507
|
+
.command("bagov-archive-v2 <id>")
|
|
508
|
+
.description("Archive profile")
|
|
509
|
+
.action(async (id) => {
|
|
510
|
+
console.log(
|
|
511
|
+
JSON.stringify((await L()).archiveBagovProfileV2(id), null, 2),
|
|
512
|
+
);
|
|
513
|
+
});
|
|
514
|
+
parent
|
|
515
|
+
.command("bagov-touch-v2 <id>")
|
|
516
|
+
.description("Touch profile")
|
|
517
|
+
.action(async (id) => {
|
|
518
|
+
console.log(JSON.stringify((await L()).touchBagovProfileV2(id), null, 2));
|
|
519
|
+
});
|
|
520
|
+
parent
|
|
521
|
+
.command("bagov-get-v2 <id>")
|
|
522
|
+
.description("Get profile")
|
|
523
|
+
.action(async (id) => {
|
|
524
|
+
console.log(JSON.stringify((await L()).getBagovProfileV2(id), null, 2));
|
|
525
|
+
});
|
|
526
|
+
parent
|
|
527
|
+
.command("bagov-list-v2")
|
|
528
|
+
.description("List profiles")
|
|
529
|
+
.action(async () => {
|
|
530
|
+
console.log(JSON.stringify((await L()).listBagovProfilesV2(), null, 2));
|
|
531
|
+
});
|
|
532
|
+
parent
|
|
533
|
+
.command("bagov-create-navigation-v2 <id> <profileId>")
|
|
534
|
+
.description("Create navigation")
|
|
535
|
+
.option("--url <v>", "url")
|
|
536
|
+
.action(async (id, profileId, o) => {
|
|
537
|
+
const m = await L();
|
|
538
|
+
console.log(
|
|
539
|
+
JSON.stringify(
|
|
540
|
+
m.createBagovNavigationV2({ id, profileId, url: o.url }),
|
|
541
|
+
null,
|
|
542
|
+
2,
|
|
543
|
+
),
|
|
544
|
+
);
|
|
545
|
+
});
|
|
546
|
+
parent
|
|
547
|
+
.command("bagov-navigating-navigation-v2 <id>")
|
|
548
|
+
.description("Mark navigation as navigating")
|
|
549
|
+
.action(async (id) => {
|
|
550
|
+
console.log(
|
|
551
|
+
JSON.stringify((await L()).navigatingBagovNavigationV2(id), null, 2),
|
|
552
|
+
);
|
|
553
|
+
});
|
|
554
|
+
parent
|
|
555
|
+
.command("bagov-complete-navigation-v2 <id>")
|
|
556
|
+
.description("Complete navigation")
|
|
557
|
+
.action(async (id) => {
|
|
558
|
+
console.log(
|
|
559
|
+
JSON.stringify((await L()).completeNavigationBagovV2(id), null, 2),
|
|
560
|
+
);
|
|
561
|
+
});
|
|
562
|
+
parent
|
|
563
|
+
.command("bagov-fail-navigation-v2 <id> [reason]")
|
|
564
|
+
.description("Fail navigation")
|
|
565
|
+
.action(async (id, reason) => {
|
|
566
|
+
console.log(
|
|
567
|
+
JSON.stringify((await L()).failBagovNavigationV2(id, reason), null, 2),
|
|
568
|
+
);
|
|
569
|
+
});
|
|
570
|
+
parent
|
|
571
|
+
.command("bagov-cancel-navigation-v2 <id> [reason]")
|
|
572
|
+
.description("Cancel navigation")
|
|
573
|
+
.action(async (id, reason) => {
|
|
574
|
+
console.log(
|
|
575
|
+
JSON.stringify(
|
|
576
|
+
(await L()).cancelBagovNavigationV2(id, reason),
|
|
577
|
+
null,
|
|
578
|
+
2,
|
|
579
|
+
),
|
|
580
|
+
);
|
|
581
|
+
});
|
|
582
|
+
parent
|
|
583
|
+
.command("bagov-get-navigation-v2 <id>")
|
|
584
|
+
.description("Get navigation")
|
|
585
|
+
.action(async (id) => {
|
|
586
|
+
console.log(
|
|
587
|
+
JSON.stringify((await L()).getBagovNavigationV2(id), null, 2),
|
|
588
|
+
);
|
|
589
|
+
});
|
|
590
|
+
parent
|
|
591
|
+
.command("bagov-list-navigations-v2")
|
|
592
|
+
.description("List navigations")
|
|
593
|
+
.action(async () => {
|
|
594
|
+
console.log(
|
|
595
|
+
JSON.stringify((await L()).listBagovNavigationsV2(), null, 2),
|
|
596
|
+
);
|
|
597
|
+
});
|
|
598
|
+
parent
|
|
599
|
+
.command("bagov-auto-stale-idle-v2")
|
|
600
|
+
.description("Auto-stale idle")
|
|
601
|
+
.action(async () => {
|
|
602
|
+
console.log(
|
|
603
|
+
JSON.stringify((await L()).autoStaleIdleBagovProfilesV2(), null, 2),
|
|
604
|
+
);
|
|
605
|
+
});
|
|
606
|
+
parent
|
|
607
|
+
.command("bagov-auto-fail-stuck-v2")
|
|
608
|
+
.description("Auto-fail stuck navigations")
|
|
609
|
+
.action(async () => {
|
|
610
|
+
console.log(
|
|
611
|
+
JSON.stringify((await L()).autoFailStuckBagovNavigationsV2(), null, 2),
|
|
612
|
+
);
|
|
613
|
+
});
|
|
614
|
+
parent
|
|
615
|
+
.command("bagov-gov-stats-v2")
|
|
616
|
+
.description("V2 gov stats")
|
|
617
|
+
.action(async () => {
|
|
618
|
+
console.log(
|
|
619
|
+
JSON.stringify((await L()).getBrowserAutomationGovStatsV2(), null, 2),
|
|
620
|
+
);
|
|
621
|
+
});
|
|
622
|
+
}
|
package/src/commands/codegen.js
CHANGED
|
@@ -525,3 +525,210 @@ export function registerCodegenCommand(program) {
|
|
|
525
525
|
|
|
526
526
|
program.addCommand(cg);
|
|
527
527
|
}
|
|
528
|
+
|
|
529
|
+
// === Iter19 V2 governance overlay ===
|
|
530
|
+
export function registerCdagovV2Commands(program) {
|
|
531
|
+
const parent = program.commands.find((c) => c.name() === "codegen");
|
|
532
|
+
if (!parent) return;
|
|
533
|
+
const L = async () => await import("../lib/code-agent.js");
|
|
534
|
+
parent
|
|
535
|
+
.command("cdagov-enums-v2")
|
|
536
|
+
.description("Show V2 enums")
|
|
537
|
+
.action(async () => {
|
|
538
|
+
const m = await L();
|
|
539
|
+
console.log(
|
|
540
|
+
JSON.stringify(
|
|
541
|
+
{
|
|
542
|
+
profileMaturity: m.CDAGOV_PROFILE_MATURITY_V2,
|
|
543
|
+
editLifecycle: m.CDAGOV_EDIT_LIFECYCLE_V2,
|
|
544
|
+
},
|
|
545
|
+
null,
|
|
546
|
+
2,
|
|
547
|
+
),
|
|
548
|
+
);
|
|
549
|
+
});
|
|
550
|
+
parent
|
|
551
|
+
.command("cdagov-config-v2")
|
|
552
|
+
.description("Show V2 config")
|
|
553
|
+
.action(async () => {
|
|
554
|
+
const m = await L();
|
|
555
|
+
console.log(
|
|
556
|
+
JSON.stringify(
|
|
557
|
+
{
|
|
558
|
+
maxActive: m.getMaxActiveCdagovProfilesPerOwnerV2(),
|
|
559
|
+
maxPending: m.getMaxPendingCdagovEditsPerProfileV2(),
|
|
560
|
+
idleMs: m.getCdagovProfileIdleMsV2(),
|
|
561
|
+
stuckMs: m.getCdagovEditStuckMsV2(),
|
|
562
|
+
},
|
|
563
|
+
null,
|
|
564
|
+
2,
|
|
565
|
+
),
|
|
566
|
+
);
|
|
567
|
+
});
|
|
568
|
+
parent
|
|
569
|
+
.command("cdagov-set-max-active-v2 <n>")
|
|
570
|
+
.description("Set max active")
|
|
571
|
+
.action(async (n) => {
|
|
572
|
+
(await L()).setMaxActiveCdagovProfilesPerOwnerV2(Number(n));
|
|
573
|
+
console.log("ok");
|
|
574
|
+
});
|
|
575
|
+
parent
|
|
576
|
+
.command("cdagov-set-max-pending-v2 <n>")
|
|
577
|
+
.description("Set max pending")
|
|
578
|
+
.action(async (n) => {
|
|
579
|
+
(await L()).setMaxPendingCdagovEditsPerProfileV2(Number(n));
|
|
580
|
+
console.log("ok");
|
|
581
|
+
});
|
|
582
|
+
parent
|
|
583
|
+
.command("cdagov-set-idle-ms-v2 <n>")
|
|
584
|
+
.description("Set idle threshold ms")
|
|
585
|
+
.action(async (n) => {
|
|
586
|
+
(await L()).setCdagovProfileIdleMsV2(Number(n));
|
|
587
|
+
console.log("ok");
|
|
588
|
+
});
|
|
589
|
+
parent
|
|
590
|
+
.command("cdagov-set-stuck-ms-v2 <n>")
|
|
591
|
+
.description("Set stuck threshold ms")
|
|
592
|
+
.action(async (n) => {
|
|
593
|
+
(await L()).setCdagovEditStuckMsV2(Number(n));
|
|
594
|
+
console.log("ok");
|
|
595
|
+
});
|
|
596
|
+
parent
|
|
597
|
+
.command("cdagov-register-v2 <id> <owner>")
|
|
598
|
+
.description("Register V2 profile")
|
|
599
|
+
.option("--language <v>", "language")
|
|
600
|
+
.action(async (id, owner, o) => {
|
|
601
|
+
const m = await L();
|
|
602
|
+
console.log(
|
|
603
|
+
JSON.stringify(
|
|
604
|
+
m.registerCdagovProfileV2({ id, owner, language: o.language }),
|
|
605
|
+
null,
|
|
606
|
+
2,
|
|
607
|
+
),
|
|
608
|
+
);
|
|
609
|
+
});
|
|
610
|
+
parent
|
|
611
|
+
.command("cdagov-activate-v2 <id>")
|
|
612
|
+
.description("Activate profile")
|
|
613
|
+
.action(async (id) => {
|
|
614
|
+
console.log(
|
|
615
|
+
JSON.stringify((await L()).activateCdagovProfileV2(id), null, 2),
|
|
616
|
+
);
|
|
617
|
+
});
|
|
618
|
+
parent
|
|
619
|
+
.command("cdagov-stale-v2 <id>")
|
|
620
|
+
.description("Stale profile")
|
|
621
|
+
.action(async (id) => {
|
|
622
|
+
console.log(
|
|
623
|
+
JSON.stringify((await L()).staleCdagovProfileV2(id), null, 2),
|
|
624
|
+
);
|
|
625
|
+
});
|
|
626
|
+
parent
|
|
627
|
+
.command("cdagov-archive-v2 <id>")
|
|
628
|
+
.description("Archive profile")
|
|
629
|
+
.action(async (id) => {
|
|
630
|
+
console.log(
|
|
631
|
+
JSON.stringify((await L()).archiveCdagovProfileV2(id), null, 2),
|
|
632
|
+
);
|
|
633
|
+
});
|
|
634
|
+
parent
|
|
635
|
+
.command("cdagov-touch-v2 <id>")
|
|
636
|
+
.description("Touch profile")
|
|
637
|
+
.action(async (id) => {
|
|
638
|
+
console.log(
|
|
639
|
+
JSON.stringify((await L()).touchCdagovProfileV2(id), null, 2),
|
|
640
|
+
);
|
|
641
|
+
});
|
|
642
|
+
parent
|
|
643
|
+
.command("cdagov-get-v2 <id>")
|
|
644
|
+
.description("Get profile")
|
|
645
|
+
.action(async (id) => {
|
|
646
|
+
console.log(JSON.stringify((await L()).getCdagovProfileV2(id), null, 2));
|
|
647
|
+
});
|
|
648
|
+
parent
|
|
649
|
+
.command("cdagov-list-v2")
|
|
650
|
+
.description("List profiles")
|
|
651
|
+
.action(async () => {
|
|
652
|
+
console.log(JSON.stringify((await L()).listCdagovProfilesV2(), null, 2));
|
|
653
|
+
});
|
|
654
|
+
parent
|
|
655
|
+
.command("cdagov-create-edit-v2 <id> <profileId>")
|
|
656
|
+
.description("Create edit")
|
|
657
|
+
.option("--target <v>", "target")
|
|
658
|
+
.action(async (id, profileId, o) => {
|
|
659
|
+
const m = await L();
|
|
660
|
+
console.log(
|
|
661
|
+
JSON.stringify(
|
|
662
|
+
m.createCdagovEditV2({ id, profileId, target: o.target }),
|
|
663
|
+
null,
|
|
664
|
+
2,
|
|
665
|
+
),
|
|
666
|
+
);
|
|
667
|
+
});
|
|
668
|
+
parent
|
|
669
|
+
.command("cdagov-editing-edit-v2 <id>")
|
|
670
|
+
.description("Mark edit as editing")
|
|
671
|
+
.action(async (id) => {
|
|
672
|
+
console.log(JSON.stringify((await L()).editingCdagovEditV2(id), null, 2));
|
|
673
|
+
});
|
|
674
|
+
parent
|
|
675
|
+
.command("cdagov-complete-edit-v2 <id>")
|
|
676
|
+
.description("Complete edit")
|
|
677
|
+
.action(async (id) => {
|
|
678
|
+
console.log(
|
|
679
|
+
JSON.stringify((await L()).completeEditCdagovV2(id), null, 2),
|
|
680
|
+
);
|
|
681
|
+
});
|
|
682
|
+
parent
|
|
683
|
+
.command("cdagov-fail-edit-v2 <id> [reason]")
|
|
684
|
+
.description("Fail edit")
|
|
685
|
+
.action(async (id, reason) => {
|
|
686
|
+
console.log(
|
|
687
|
+
JSON.stringify((await L()).failCdagovEditV2(id, reason), null, 2),
|
|
688
|
+
);
|
|
689
|
+
});
|
|
690
|
+
parent
|
|
691
|
+
.command("cdagov-cancel-edit-v2 <id> [reason]")
|
|
692
|
+
.description("Cancel edit")
|
|
693
|
+
.action(async (id, reason) => {
|
|
694
|
+
console.log(
|
|
695
|
+
JSON.stringify((await L()).cancelCdagovEditV2(id, reason), null, 2),
|
|
696
|
+
);
|
|
697
|
+
});
|
|
698
|
+
parent
|
|
699
|
+
.command("cdagov-get-edit-v2 <id>")
|
|
700
|
+
.description("Get edit")
|
|
701
|
+
.action(async (id) => {
|
|
702
|
+
console.log(JSON.stringify((await L()).getCdagovEditV2(id), null, 2));
|
|
703
|
+
});
|
|
704
|
+
parent
|
|
705
|
+
.command("cdagov-list-edits-v2")
|
|
706
|
+
.description("List edits")
|
|
707
|
+
.action(async () => {
|
|
708
|
+
console.log(JSON.stringify((await L()).listCdagovEditsV2(), null, 2));
|
|
709
|
+
});
|
|
710
|
+
parent
|
|
711
|
+
.command("cdagov-auto-stale-idle-v2")
|
|
712
|
+
.description("Auto-stale idle")
|
|
713
|
+
.action(async () => {
|
|
714
|
+
console.log(
|
|
715
|
+
JSON.stringify((await L()).autoStaleIdleCdagovProfilesV2(), null, 2),
|
|
716
|
+
);
|
|
717
|
+
});
|
|
718
|
+
parent
|
|
719
|
+
.command("cdagov-auto-fail-stuck-v2")
|
|
720
|
+
.description("Auto-fail stuck edits")
|
|
721
|
+
.action(async () => {
|
|
722
|
+
console.log(
|
|
723
|
+
JSON.stringify((await L()).autoFailStuckCdagovEditsV2(), null, 2),
|
|
724
|
+
);
|
|
725
|
+
});
|
|
726
|
+
parent
|
|
727
|
+
.command("cdagov-gov-stats-v2")
|
|
728
|
+
.description("V2 gov stats")
|
|
729
|
+
.action(async () => {
|
|
730
|
+
console.log(
|
|
731
|
+
JSON.stringify((await L()).getCodeAgentGovStatsV2(), null, 2),
|
|
732
|
+
);
|
|
733
|
+
});
|
|
734
|
+
}
|