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.
Files changed (113) hide show
  1. package/package.json +1 -1
  2. package/src/commands/activitypub.js +207 -0
  3. package/src/commands/agent-network.js +217 -0
  4. package/src/commands/automation.js +201 -0
  5. package/src/commands/bi.js +203 -0
  6. package/src/commands/browse.js +213 -0
  7. package/src/commands/codegen.js +207 -0
  8. package/src/commands/collab.js +211 -0
  9. package/src/commands/compliance.js +410 -0
  10. package/src/commands/cowork.js +203 -0
  11. package/src/commands/dbevo.js +227 -0
  12. package/src/commands/dev.js +207 -0
  13. package/src/commands/did-v2.js +217 -0
  14. package/src/commands/did.js +221 -0
  15. package/src/commands/dlp.js +213 -0
  16. package/src/commands/evomap.js +205 -0
  17. package/src/commands/export.js +213 -0
  18. package/src/commands/federation.js +209 -0
  19. package/src/commands/fusion.js +205 -0
  20. package/src/commands/governance.js +209 -0
  21. package/src/commands/hook.js +209 -0
  22. package/src/commands/import.js +209 -0
  23. package/src/commands/infra.js +203 -0
  24. package/src/commands/instinct.js +209 -0
  25. package/src/commands/ipfs.js +207 -0
  26. package/src/commands/llm.js +217 -0
  27. package/src/commands/matrix.js +207 -0
  28. package/src/commands/mcp.js +217 -0
  29. package/src/commands/memory.js +209 -0
  30. package/src/commands/multimodal.js +203 -0
  31. package/src/commands/nlprog.js +225 -0
  32. package/src/commands/nostr.js +209 -0
  33. package/src/commands/note.js +205 -0
  34. package/src/commands/ops.js +219 -0
  35. package/src/commands/org.js +209 -0
  36. package/src/commands/p2p.js +209 -0
  37. package/src/commands/perception.js +209 -0
  38. package/src/commands/permmem.js +203 -0
  39. package/src/commands/plugin-ecosystem.js +209 -0
  40. package/src/commands/pqc.js +213 -0
  41. package/src/commands/quantization.js +207 -0
  42. package/src/commands/rcache.js +205 -0
  43. package/src/commands/recommend.js +233 -0
  44. package/src/commands/runtime.js +205 -0
  45. package/src/commands/scim.js +209 -0
  46. package/src/commands/session.js +209 -0
  47. package/src/commands/skill.js +207 -0
  48. package/src/commands/social.js +201 -0
  49. package/src/commands/sso.js +209 -0
  50. package/src/commands/sync.js +209 -0
  51. package/src/commands/tech.js +209 -0
  52. package/src/commands/tenant.js +217 -0
  53. package/src/commands/tokens.js +209 -0
  54. package/src/commands/trust.js +217 -0
  55. package/src/commands/wallet.js +209 -0
  56. package/src/commands/workflow.js +203 -0
  57. package/src/index.js +140 -0
  58. package/src/lib/activitypub-bridge.js +334 -0
  59. package/src/lib/agent-network.js +341 -0
  60. package/src/lib/aiops.js +346 -0
  61. package/src/lib/automation-engine.js +335 -0
  62. package/src/lib/autonomous-developer.js +332 -0
  63. package/src/lib/bi-engine.js +333 -0
  64. package/src/lib/browser-automation.js +334 -0
  65. package/src/lib/code-agent.js +339 -0
  66. package/src/lib/collaboration-governance.js +334 -0
  67. package/src/lib/community-governance.js +346 -0
  68. package/src/lib/content-recommendation.js +351 -0
  69. package/src/lib/cowork-share.js +338 -0
  70. package/src/lib/dbevo.js +351 -0
  71. package/src/lib/decentral-infra.js +330 -0
  72. package/src/lib/did-manager.js +341 -0
  73. package/src/lib/did-v2-manager.js +341 -0
  74. package/src/lib/dlp-engine.js +339 -0
  75. package/src/lib/evomap-governance.js +334 -0
  76. package/src/lib/federation-hardening.js +340 -0
  77. package/src/lib/hook-manager.js +341 -0
  78. package/src/lib/instinct-manager.js +346 -0
  79. package/src/lib/ipfs-storage.js +334 -0
  80. package/src/lib/knowledge-exporter.js +341 -0
  81. package/src/lib/knowledge-importer.js +341 -0
  82. package/src/lib/llm-providers.js +346 -0
  83. package/src/lib/matrix-bridge.js +339 -0
  84. package/src/lib/mcp-registry.js +346 -0
  85. package/src/lib/memory-manager.js +336 -0
  86. package/src/lib/multimodal.js +330 -0
  87. package/src/lib/nl-programming.js +341 -0
  88. package/src/lib/nostr-bridge.js +336 -0
  89. package/src/lib/note-versioning.js +339 -0
  90. package/src/lib/org-manager.js +336 -0
  91. package/src/lib/p2p-manager.js +341 -0
  92. package/src/lib/perception.js +346 -0
  93. package/src/lib/permanent-memory.js +327 -0
  94. package/src/lib/plugin-ecosystem.js +346 -0
  95. package/src/lib/pqc-manager.js +346 -0
  96. package/src/lib/protocol-fusion.js +338 -0
  97. package/src/lib/quantization.js +337 -0
  98. package/src/lib/response-cache.js +333 -0
  99. package/src/lib/scim-manager.js +346 -0
  100. package/src/lib/session-manager.js +334 -0
  101. package/src/lib/skill-loader.js +334 -0
  102. package/src/lib/social-manager.js +330 -0
  103. package/src/lib/sso-manager.js +340 -0
  104. package/src/lib/sync-manager.js +336 -0
  105. package/src/lib/tech-learning-engine.js +341 -0
  106. package/src/lib/tenant-saas.js +341 -0
  107. package/src/lib/threat-intel.js +330 -0
  108. package/src/lib/token-tracker.js +336 -0
  109. package/src/lib/trust-security.js +343 -0
  110. package/src/lib/ueba.js +340 -0
  111. package/src/lib/universal-runtime.js +330 -0
  112. package/src/lib/wallet-manager.js +336 -0
  113. package/src/lib/workflow-engine.js +330 -0
@@ -673,3 +673,212 @@ export function registerPerceptionCommand(program) {
673
673
 
674
674
  program.addCommand(perc);
675
675
  }
676
+
677
+ // === Iter18 V2 governance overlay ===
678
+ export function registerPercgovV2Commands(program) {
679
+ const parent = program.commands.find((c) => c.name() === "perception");
680
+ if (!parent) return;
681
+ const L = async () => await import("../lib/perception.js");
682
+ parent
683
+ .command("percgov-enums-v2")
684
+ .description("Show V2 enums")
685
+ .action(async () => {
686
+ const m = await L();
687
+ console.log(
688
+ JSON.stringify(
689
+ {
690
+ profileMaturity: m.PERCGOV_PROFILE_MATURITY_V2,
691
+ signalLifecycle: m.PERCGOV_SIGNAL_LIFECYCLE_V2,
692
+ },
693
+ null,
694
+ 2,
695
+ ),
696
+ );
697
+ });
698
+ parent
699
+ .command("percgov-config-v2")
700
+ .description("Show V2 config")
701
+ .action(async () => {
702
+ const m = await L();
703
+ console.log(
704
+ JSON.stringify(
705
+ {
706
+ maxActive: m.getMaxActivePercgovProfilesPerOwnerV2(),
707
+ maxPending: m.getMaxPendingPercgovSignalsPerProfileV2(),
708
+ idleMs: m.getPercgovProfileIdleMsV2(),
709
+ stuckMs: m.getPercgovSignalStuckMsV2(),
710
+ },
711
+ null,
712
+ 2,
713
+ ),
714
+ );
715
+ });
716
+ parent
717
+ .command("percgov-set-max-active-v2 <n>")
718
+ .description("Set max active")
719
+ .action(async (n) => {
720
+ (await L()).setMaxActivePercgovProfilesPerOwnerV2(Number(n));
721
+ console.log("ok");
722
+ });
723
+ parent
724
+ .command("percgov-set-max-pending-v2 <n>")
725
+ .description("Set max pending")
726
+ .action(async (n) => {
727
+ (await L()).setMaxPendingPercgovSignalsPerProfileV2(Number(n));
728
+ console.log("ok");
729
+ });
730
+ parent
731
+ .command("percgov-set-idle-ms-v2 <n>")
732
+ .description("Set idle threshold ms")
733
+ .action(async (n) => {
734
+ (await L()).setPercgovProfileIdleMsV2(Number(n));
735
+ console.log("ok");
736
+ });
737
+ parent
738
+ .command("percgov-set-stuck-ms-v2 <n>")
739
+ .description("Set stuck threshold ms")
740
+ .action(async (n) => {
741
+ (await L()).setPercgovSignalStuckMsV2(Number(n));
742
+ console.log("ok");
743
+ });
744
+ parent
745
+ .command("percgov-register-v2 <id> <owner>")
746
+ .description("Register V2 profile")
747
+ .option("--modality <v>", "modality")
748
+ .action(async (id, owner, o) => {
749
+ const m = await L();
750
+ console.log(
751
+ JSON.stringify(
752
+ m.registerPercgovProfileV2({ id, owner, modality: o.modality }),
753
+ null,
754
+ 2,
755
+ ),
756
+ );
757
+ });
758
+ parent
759
+ .command("percgov-activate-v2 <id>")
760
+ .description("Activate profile")
761
+ .action(async (id) => {
762
+ console.log(
763
+ JSON.stringify((await L()).activatePercgovProfileV2(id), null, 2),
764
+ );
765
+ });
766
+ parent
767
+ .command("percgov-stale-v2 <id>")
768
+ .description("Stale profile")
769
+ .action(async (id) => {
770
+ console.log(
771
+ JSON.stringify((await L()).stalePercgovProfileV2(id), null, 2),
772
+ );
773
+ });
774
+ parent
775
+ .command("percgov-archive-v2 <id>")
776
+ .description("Archive profile")
777
+ .action(async (id) => {
778
+ console.log(
779
+ JSON.stringify((await L()).archivePercgovProfileV2(id), null, 2),
780
+ );
781
+ });
782
+ parent
783
+ .command("percgov-touch-v2 <id>")
784
+ .description("Touch profile")
785
+ .action(async (id) => {
786
+ console.log(
787
+ JSON.stringify((await L()).touchPercgovProfileV2(id), null, 2),
788
+ );
789
+ });
790
+ parent
791
+ .command("percgov-get-v2 <id>")
792
+ .description("Get profile")
793
+ .action(async (id) => {
794
+ console.log(JSON.stringify((await L()).getPercgovProfileV2(id), null, 2));
795
+ });
796
+ parent
797
+ .command("percgov-list-v2")
798
+ .description("List profiles")
799
+ .action(async () => {
800
+ console.log(JSON.stringify((await L()).listPercgovProfilesV2(), null, 2));
801
+ });
802
+ parent
803
+ .command("percgov-create-signal-v2 <id> <profileId>")
804
+ .description("Create signal")
805
+ .option("--source <v>", "source")
806
+ .action(async (id, profileId, o) => {
807
+ const m = await L();
808
+ console.log(
809
+ JSON.stringify(
810
+ m.createPercgovSignalV2({ id, profileId, source: o.source }),
811
+ null,
812
+ 2,
813
+ ),
814
+ );
815
+ });
816
+ parent
817
+ .command("percgov-analyzing-signal-v2 <id>")
818
+ .description("Mark signal as analyzing")
819
+ .action(async (id) => {
820
+ console.log(
821
+ JSON.stringify((await L()).analyzingPercgovSignalV2(id), null, 2),
822
+ );
823
+ });
824
+ parent
825
+ .command("percgov-complete-signal-v2 <id>")
826
+ .description("Complete signal")
827
+ .action(async (id) => {
828
+ console.log(
829
+ JSON.stringify((await L()).completeSignalPercgovV2(id), null, 2),
830
+ );
831
+ });
832
+ parent
833
+ .command("percgov-fail-signal-v2 <id> [reason]")
834
+ .description("Fail signal")
835
+ .action(async (id, reason) => {
836
+ console.log(
837
+ JSON.stringify((await L()).failPercgovSignalV2(id, reason), null, 2),
838
+ );
839
+ });
840
+ parent
841
+ .command("percgov-cancel-signal-v2 <id> [reason]")
842
+ .description("Cancel signal")
843
+ .action(async (id, reason) => {
844
+ console.log(
845
+ JSON.stringify((await L()).cancelPercgovSignalV2(id, reason), null, 2),
846
+ );
847
+ });
848
+ parent
849
+ .command("percgov-get-signal-v2 <id>")
850
+ .description("Get signal")
851
+ .action(async (id) => {
852
+ console.log(JSON.stringify((await L()).getPercgovSignalV2(id), null, 2));
853
+ });
854
+ parent
855
+ .command("percgov-list-signals-v2")
856
+ .description("List signals")
857
+ .action(async () => {
858
+ console.log(JSON.stringify((await L()).listPercgovSignalsV2(), null, 2));
859
+ });
860
+ parent
861
+ .command("percgov-auto-stale-idle-v2")
862
+ .description("Auto-stale idle")
863
+ .action(async () => {
864
+ console.log(
865
+ JSON.stringify((await L()).autoStaleIdlePercgovProfilesV2(), null, 2),
866
+ );
867
+ });
868
+ parent
869
+ .command("percgov-auto-fail-stuck-v2")
870
+ .description("Auto-fail stuck signals")
871
+ .action(async () => {
872
+ console.log(
873
+ JSON.stringify((await L()).autoFailStuckPercgovSignalsV2(), null, 2),
874
+ );
875
+ });
876
+ parent
877
+ .command("percgov-gov-stats-v2")
878
+ .description("V2 gov stats")
879
+ .action(async () => {
880
+ console.log(
881
+ JSON.stringify((await L()).getPerceptionGovStatsV2(), null, 2),
882
+ );
883
+ });
884
+ }
@@ -249,3 +249,206 @@ export function registerPermMemCommand(program) {
249
249
  .description("Auto-fail stuck V2 retention jobs")
250
250
  .action(() => out(autoFailStuckJobsV2()));
251
251
  }
252
+
253
+ // === Iter23 V2 governance overlay ===
254
+ export function registerPmgovV2Commands(program) {
255
+ const parent = program.commands.find((c) => c.name() === "permmem");
256
+ if (!parent) return;
257
+ const L = async () => await import("../lib/permanent-memory.js");
258
+ parent
259
+ .command("pmgov-enums-v2")
260
+ .description("Show V2 enums")
261
+ .action(async () => {
262
+ const m = await L();
263
+ console.log(
264
+ JSON.stringify(
265
+ {
266
+ profileMaturity: m.PMGOV_PROFILE_MATURITY_V2,
267
+ pinLifecycle: m.PMGOV_PIN_LIFECYCLE_V2,
268
+ },
269
+ null,
270
+ 2,
271
+ ),
272
+ );
273
+ });
274
+ parent
275
+ .command("pmgov-config-v2")
276
+ .description("Show V2 config")
277
+ .action(async () => {
278
+ const m = await L();
279
+ console.log(
280
+ JSON.stringify(
281
+ {
282
+ maxActive: m.getMaxActivePmgovProfilesPerOwnerV2(),
283
+ maxPending: m.getMaxPendingPmgovPinsPerProfileV2(),
284
+ idleMs: m.getPmgovProfileIdleMsV2(),
285
+ stuckMs: m.getPmgovPinStuckMsV2(),
286
+ },
287
+ null,
288
+ 2,
289
+ ),
290
+ );
291
+ });
292
+ parent
293
+ .command("pmgov-set-max-active-v2 <n>")
294
+ .description("Set max active")
295
+ .action(async (n) => {
296
+ (await L()).setMaxActivePmgovProfilesPerOwnerV2(Number(n));
297
+ console.log("ok");
298
+ });
299
+ parent
300
+ .command("pmgov-set-max-pending-v2 <n>")
301
+ .description("Set max pending")
302
+ .action(async (n) => {
303
+ (await L()).setMaxPendingPmgovPinsPerProfileV2(Number(n));
304
+ console.log("ok");
305
+ });
306
+ parent
307
+ .command("pmgov-set-idle-ms-v2 <n>")
308
+ .description("Set idle threshold ms")
309
+ .action(async (n) => {
310
+ (await L()).setPmgovProfileIdleMsV2(Number(n));
311
+ console.log("ok");
312
+ });
313
+ parent
314
+ .command("pmgov-set-stuck-ms-v2 <n>")
315
+ .description("Set stuck threshold ms")
316
+ .action(async (n) => {
317
+ (await L()).setPmgovPinStuckMsV2(Number(n));
318
+ console.log("ok");
319
+ });
320
+ parent
321
+ .command("pmgov-register-v2 <id> <owner>")
322
+ .description("Register V2 profile")
323
+ .option("--bucket <v>", "bucket")
324
+ .action(async (id, owner, o) => {
325
+ const m = await L();
326
+ console.log(
327
+ JSON.stringify(
328
+ m.registerPmgovProfileV2({ id, owner, bucket: o.bucket }),
329
+ null,
330
+ 2,
331
+ ),
332
+ );
333
+ });
334
+ parent
335
+ .command("pmgov-activate-v2 <id>")
336
+ .description("Activate profile")
337
+ .action(async (id) => {
338
+ console.log(
339
+ JSON.stringify((await L()).activatePmgovProfileV2(id), null, 2),
340
+ );
341
+ });
342
+ parent
343
+ .command("pmgov-dormant-v2 <id>")
344
+ .description("Dormant profile")
345
+ .action(async (id) => {
346
+ console.log(
347
+ JSON.stringify((await L()).dormantPmgovProfileV2(id), null, 2),
348
+ );
349
+ });
350
+ parent
351
+ .command("pmgov-archive-v2 <id>")
352
+ .description("Archive profile")
353
+ .action(async (id) => {
354
+ console.log(
355
+ JSON.stringify((await L()).archivePmgovProfileV2(id), null, 2),
356
+ );
357
+ });
358
+ parent
359
+ .command("pmgov-touch-v2 <id>")
360
+ .description("Touch profile")
361
+ .action(async (id) => {
362
+ console.log(JSON.stringify((await L()).touchPmgovProfileV2(id), null, 2));
363
+ });
364
+ parent
365
+ .command("pmgov-get-v2 <id>")
366
+ .description("Get profile")
367
+ .action(async (id) => {
368
+ console.log(JSON.stringify((await L()).getPmgovProfileV2(id), null, 2));
369
+ });
370
+ parent
371
+ .command("pmgov-list-v2")
372
+ .description("List profiles")
373
+ .action(async () => {
374
+ console.log(JSON.stringify((await L()).listPmgovProfilesV2(), null, 2));
375
+ });
376
+ parent
377
+ .command("pmgov-create-pin-v2 <id> <profileId>")
378
+ .description("Create pin")
379
+ .option("--key <v>", "key")
380
+ .action(async (id, profileId, o) => {
381
+ const m = await L();
382
+ console.log(
383
+ JSON.stringify(
384
+ m.createPmgovPinV2({ id, profileId, key: o.key }),
385
+ null,
386
+ 2,
387
+ ),
388
+ );
389
+ });
390
+ parent
391
+ .command("pmgov-pinning-pin-v2 <id>")
392
+ .description("Mark pin as pinning")
393
+ .action(async (id) => {
394
+ console.log(JSON.stringify((await L()).pinningPmgovPinV2(id), null, 2));
395
+ });
396
+ parent
397
+ .command("pmgov-complete-pin-v2 <id>")
398
+ .description("Complete pin")
399
+ .action(async (id) => {
400
+ console.log(JSON.stringify((await L()).completePinPmgovV2(id), null, 2));
401
+ });
402
+ parent
403
+ .command("pmgov-fail-pin-v2 <id> [reason]")
404
+ .description("Fail pin")
405
+ .action(async (id, reason) => {
406
+ console.log(
407
+ JSON.stringify((await L()).failPmgovPinV2(id, reason), null, 2),
408
+ );
409
+ });
410
+ parent
411
+ .command("pmgov-cancel-pin-v2 <id> [reason]")
412
+ .description("Cancel pin")
413
+ .action(async (id, reason) => {
414
+ console.log(
415
+ JSON.stringify((await L()).cancelPmgovPinV2(id, reason), null, 2),
416
+ );
417
+ });
418
+ parent
419
+ .command("pmgov-get-pin-v2 <id>")
420
+ .description("Get pin")
421
+ .action(async (id) => {
422
+ console.log(JSON.stringify((await L()).getPmgovPinV2(id), null, 2));
423
+ });
424
+ parent
425
+ .command("pmgov-list-pins-v2")
426
+ .description("List pins")
427
+ .action(async () => {
428
+ console.log(JSON.stringify((await L()).listPmgovPinsV2(), null, 2));
429
+ });
430
+ parent
431
+ .command("pmgov-auto-dormant-idle-v2")
432
+ .description("Auto-dormant idle")
433
+ .action(async () => {
434
+ console.log(
435
+ JSON.stringify((await L()).autoDormantIdlePmgovProfilesV2(), null, 2),
436
+ );
437
+ });
438
+ parent
439
+ .command("pmgov-auto-fail-stuck-v2")
440
+ .description("Auto-fail stuck pins")
441
+ .action(async () => {
442
+ console.log(
443
+ JSON.stringify((await L()).autoFailStuckPmgovPinsV2(), null, 2),
444
+ );
445
+ });
446
+ parent
447
+ .command("pmgov-gov-stats-v2")
448
+ .description("V2 gov stats")
449
+ .action(async () => {
450
+ console.log(
451
+ JSON.stringify((await L()).getPermanentMemoryGovStatsV2(), null, 2),
452
+ );
453
+ });
454
+ }
@@ -788,3 +788,212 @@ export function registerPluginEcosystemCommand(program) {
788
788
  program.addCommand(eco);
789
789
  return eco;
790
790
  }
791
+
792
+ // === Iter24 V2 governance overlay ===
793
+ export function registerEcogovV2Commands(program) {
794
+ const parent = program.commands.find((c) => c.name() === "ecosystem");
795
+ if (!parent) return;
796
+ const L = async () => await import("../lib/plugin-ecosystem.js");
797
+ parent
798
+ .command("ecogov-enums-v2")
799
+ .description("Show V2 enums")
800
+ .action(async () => {
801
+ const m = await L();
802
+ console.log(
803
+ JSON.stringify(
804
+ {
805
+ profileMaturity: m.ECOGOV_PROFILE_MATURITY_V2,
806
+ installLifecycle: m.ECOGOV_INSTALL_LIFECYCLE_V2,
807
+ },
808
+ null,
809
+ 2,
810
+ ),
811
+ );
812
+ });
813
+ parent
814
+ .command("ecogov-config-v2")
815
+ .description("Show V2 config")
816
+ .action(async () => {
817
+ const m = await L();
818
+ console.log(
819
+ JSON.stringify(
820
+ {
821
+ maxActive: m.getMaxActiveEcogovProfilesPerOwnerV2(),
822
+ maxPending: m.getMaxPendingEcogovInstallsPerProfileV2(),
823
+ idleMs: m.getEcogovProfileIdleMsV2(),
824
+ stuckMs: m.getEcogovInstallStuckMsV2(),
825
+ },
826
+ null,
827
+ 2,
828
+ ),
829
+ );
830
+ });
831
+ parent
832
+ .command("ecogov-set-max-active-v2 <n>")
833
+ .description("Set max active")
834
+ .action(async (n) => {
835
+ (await L()).setMaxActiveEcogovProfilesPerOwnerV2(Number(n));
836
+ console.log("ok");
837
+ });
838
+ parent
839
+ .command("ecogov-set-max-pending-v2 <n>")
840
+ .description("Set max pending")
841
+ .action(async (n) => {
842
+ (await L()).setMaxPendingEcogovInstallsPerProfileV2(Number(n));
843
+ console.log("ok");
844
+ });
845
+ parent
846
+ .command("ecogov-set-idle-ms-v2 <n>")
847
+ .description("Set idle threshold ms")
848
+ .action(async (n) => {
849
+ (await L()).setEcogovProfileIdleMsV2(Number(n));
850
+ console.log("ok");
851
+ });
852
+ parent
853
+ .command("ecogov-set-stuck-ms-v2 <n>")
854
+ .description("Set stuck threshold ms")
855
+ .action(async (n) => {
856
+ (await L()).setEcogovInstallStuckMsV2(Number(n));
857
+ console.log("ok");
858
+ });
859
+ parent
860
+ .command("ecogov-register-v2 <id> <owner>")
861
+ .description("Register V2 profile")
862
+ .option("--category <v>", "category")
863
+ .action(async (id, owner, o) => {
864
+ const m = await L();
865
+ console.log(
866
+ JSON.stringify(
867
+ m.registerEcogovProfileV2({ id, owner, category: o.category }),
868
+ null,
869
+ 2,
870
+ ),
871
+ );
872
+ });
873
+ parent
874
+ .command("ecogov-activate-v2 <id>")
875
+ .description("Activate profile")
876
+ .action(async (id) => {
877
+ console.log(
878
+ JSON.stringify((await L()).activateEcogovProfileV2(id), null, 2),
879
+ );
880
+ });
881
+ parent
882
+ .command("ecogov-disable-v2 <id>")
883
+ .description("Disable profile")
884
+ .action(async (id) => {
885
+ console.log(
886
+ JSON.stringify((await L()).disableEcogovProfileV2(id), null, 2),
887
+ );
888
+ });
889
+ parent
890
+ .command("ecogov-archive-v2 <id>")
891
+ .description("Archive profile")
892
+ .action(async (id) => {
893
+ console.log(
894
+ JSON.stringify((await L()).archiveEcogovProfileV2(id), null, 2),
895
+ );
896
+ });
897
+ parent
898
+ .command("ecogov-touch-v2 <id>")
899
+ .description("Touch profile")
900
+ .action(async (id) => {
901
+ console.log(
902
+ JSON.stringify((await L()).touchEcogovProfileV2(id), null, 2),
903
+ );
904
+ });
905
+ parent
906
+ .command("ecogov-get-v2 <id>")
907
+ .description("Get profile")
908
+ .action(async (id) => {
909
+ console.log(JSON.stringify((await L()).getEcogovProfileV2(id), null, 2));
910
+ });
911
+ parent
912
+ .command("ecogov-list-v2")
913
+ .description("List profiles")
914
+ .action(async () => {
915
+ console.log(JSON.stringify((await L()).listEcogovProfilesV2(), null, 2));
916
+ });
917
+ parent
918
+ .command("ecogov-create-install-v2 <id> <profileId>")
919
+ .description("Create install")
920
+ .option("--version <v>", "version")
921
+ .action(async (id, profileId, o) => {
922
+ const m = await L();
923
+ console.log(
924
+ JSON.stringify(
925
+ m.createEcogovInstallV2({ id, profileId, version: o.version }),
926
+ null,
927
+ 2,
928
+ ),
929
+ );
930
+ });
931
+ parent
932
+ .command("ecogov-installing-install-v2 <id>")
933
+ .description("Mark install as installing")
934
+ .action(async (id) => {
935
+ console.log(
936
+ JSON.stringify((await L()).installingEcogovInstallV2(id), null, 2),
937
+ );
938
+ });
939
+ parent
940
+ .command("ecogov-complete-install-v2 <id>")
941
+ .description("Complete install")
942
+ .action(async (id) => {
943
+ console.log(
944
+ JSON.stringify((await L()).completeInstallEcogovV2(id), null, 2),
945
+ );
946
+ });
947
+ parent
948
+ .command("ecogov-fail-install-v2 <id> [reason]")
949
+ .description("Fail install")
950
+ .action(async (id, reason) => {
951
+ console.log(
952
+ JSON.stringify((await L()).failEcogovInstallV2(id, reason), null, 2),
953
+ );
954
+ });
955
+ parent
956
+ .command("ecogov-cancel-install-v2 <id> [reason]")
957
+ .description("Cancel install")
958
+ .action(async (id, reason) => {
959
+ console.log(
960
+ JSON.stringify((await L()).cancelEcogovInstallV2(id, reason), null, 2),
961
+ );
962
+ });
963
+ parent
964
+ .command("ecogov-get-install-v2 <id>")
965
+ .description("Get install")
966
+ .action(async (id) => {
967
+ console.log(JSON.stringify((await L()).getEcogovInstallV2(id), null, 2));
968
+ });
969
+ parent
970
+ .command("ecogov-list-installs-v2")
971
+ .description("List installs")
972
+ .action(async () => {
973
+ console.log(JSON.stringify((await L()).listEcogovInstallsV2(), null, 2));
974
+ });
975
+ parent
976
+ .command("ecogov-auto-disable-idle-v2")
977
+ .description("Auto-disable idle")
978
+ .action(async () => {
979
+ console.log(
980
+ JSON.stringify((await L()).autoDisableIdleEcogovProfilesV2(), null, 2),
981
+ );
982
+ });
983
+ parent
984
+ .command("ecogov-auto-fail-stuck-v2")
985
+ .description("Auto-fail stuck installs")
986
+ .action(async () => {
987
+ console.log(
988
+ JSON.stringify((await L()).autoFailStuckEcogovInstallsV2(), null, 2),
989
+ );
990
+ });
991
+ parent
992
+ .command("ecogov-gov-stats-v2")
993
+ .description("V2 gov stats")
994
+ .action(async () => {
995
+ console.log(
996
+ JSON.stringify((await L()).getPluginEcosystemGovStatsV2(), null, 2),
997
+ );
998
+ });
999
+ }