chainlesschain 0.143.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 (227) hide show
  1. package/package.json +1 -1
  2. package/src/commands/a2a.js +196 -28
  3. package/src/commands/activitypub.js +364 -27
  4. package/src/commands/agent-network.js +217 -0
  5. package/src/commands/agent.js +587 -103
  6. package/src/commands/audit.js +206 -0
  7. package/src/commands/automation.js +201 -0
  8. package/src/commands/bi.js +355 -27
  9. package/src/commands/bm25.js +111 -27
  10. package/src/commands/browse.js +403 -29
  11. package/src/commands/ccron.js +128 -28
  12. package/src/commands/chat.js +207 -0
  13. package/src/commands/codegen.js +207 -0
  14. package/src/commands/collab.js +211 -0
  15. package/src/commands/compliance.js +824 -34
  16. package/src/commands/compt.js +127 -29
  17. package/src/commands/consol.js +8 -2
  18. package/src/commands/cowork.js +783 -34
  19. package/src/commands/crosschain.js +182 -28
  20. package/src/commands/dao.js +182 -28
  21. package/src/commands/dbevo.js +227 -0
  22. package/src/commands/dev.js +207 -0
  23. package/src/commands/did-v2.js +217 -0
  24. package/src/commands/did.js +221 -0
  25. package/src/commands/dlp.js +385 -27
  26. package/src/commands/economy.js +205 -50
  27. package/src/commands/evolution.js +203 -50
  28. package/src/commands/evomap.js +387 -27
  29. package/src/commands/export.js +213 -0
  30. package/src/commands/federation.js +209 -0
  31. package/src/commands/fflag.js +74 -22
  32. package/src/commands/fusion.js +205 -0
  33. package/src/commands/git.js +177 -37
  34. package/src/commands/governance.js +209 -0
  35. package/src/commands/hardening.js +209 -0
  36. package/src/commands/hmemory.js +204 -50
  37. package/src/commands/hook.js +209 -0
  38. package/src/commands/import.js +209 -0
  39. package/src/commands/incentive.js +209 -0
  40. package/src/commands/inference.js +170 -34
  41. package/src/commands/infra.js +203 -0
  42. package/src/commands/instinct.js +209 -0
  43. package/src/commands/ipfs.js +207 -0
  44. package/src/commands/itbudget.js +149 -33
  45. package/src/commands/kg.js +206 -0
  46. package/src/commands/llm.js +217 -0
  47. package/src/commands/lowcode.js +195 -38
  48. package/src/commands/marketplace.js +206 -0
  49. package/src/commands/matrix.js +386 -27
  50. package/src/commands/mcp.js +217 -0
  51. package/src/commands/mcpscaf.js +145 -33
  52. package/src/commands/meminj.js +145 -33
  53. package/src/commands/memory.js +209 -0
  54. package/src/commands/multimodal.js +203 -0
  55. package/src/commands/nlprog.js +225 -0
  56. package/src/commands/nostr.js +387 -27
  57. package/src/commands/note.js +205 -0
  58. package/src/commands/ops.js +219 -0
  59. package/src/commands/orchestrate.js +217 -0
  60. package/src/commands/orchgov.js +144 -33
  61. package/src/commands/org.js +209 -0
  62. package/src/commands/p2p.js +209 -0
  63. package/src/commands/pdfp.js +109 -27
  64. package/src/commands/perception.js +209 -0
  65. package/src/commands/perf.js +169 -32
  66. package/src/commands/perm.js +144 -33
  67. package/src/commands/permmem.js +203 -0
  68. package/src/commands/pipeline.js +207 -52
  69. package/src/commands/planmode.js +141 -32
  70. package/src/commands/plugin-ecosystem.js +209 -0
  71. package/src/commands/pqc.js +213 -0
  72. package/src/commands/privacy.js +203 -0
  73. package/src/commands/promcomp.js +111 -27
  74. package/src/commands/quantization.js +207 -0
  75. package/src/commands/rcache.js +205 -0
  76. package/src/commands/recommend.js +410 -34
  77. package/src/commands/reputation.js +208 -0
  78. package/src/commands/runtime.js +205 -0
  79. package/src/commands/sandbox.js +206 -0
  80. package/src/commands/scim.js +209 -0
  81. package/src/commands/seshhook.js +145 -33
  82. package/src/commands/seshsearch.js +141 -33
  83. package/src/commands/seshtail.js +144 -33
  84. package/src/commands/seshu.js +152 -33
  85. package/src/commands/session.js +209 -0
  86. package/src/commands/sganal.js +123 -29
  87. package/src/commands/siem.js +201 -34
  88. package/src/commands/skill.js +207 -0
  89. package/src/commands/sla.js +212 -0
  90. package/src/commands/slotfill.js +146 -33
  91. package/src/commands/social.js +358 -32
  92. package/src/commands/sso.js +209 -0
  93. package/src/commands/stress.js +206 -0
  94. package/src/commands/svccont.js +145 -33
  95. package/src/commands/sync.js +209 -0
  96. package/src/commands/tech.js +209 -0
  97. package/src/commands/tenant.js +217 -0
  98. package/src/commands/terraform.js +206 -0
  99. package/src/commands/tms.js +171 -33
  100. package/src/commands/tokens.js +209 -0
  101. package/src/commands/topiccls.js +146 -33
  102. package/src/commands/trust.js +217 -0
  103. package/src/commands/uprof.js +141 -32
  104. package/src/commands/vcheck.js +122 -28
  105. package/src/commands/wallet.js +209 -0
  106. package/src/commands/webfetch.js +141 -32
  107. package/src/commands/workflow.js +203 -0
  108. package/src/commands/zkp.js +184 -28
  109. package/src/index.js +180 -0
  110. package/src/lib/a2a-protocol.js +319 -51
  111. package/src/lib/activitypub-bridge.js +622 -50
  112. package/src/lib/agent-economy.js +304 -51
  113. package/src/lib/agent-network.js +341 -0
  114. package/src/lib/aiops.js +346 -0
  115. package/src/lib/app-builder.js +279 -46
  116. package/src/lib/audit-logger.js +321 -0
  117. package/src/lib/automation-engine.js +335 -0
  118. package/src/lib/autonomous-agent.js +284 -48
  119. package/src/lib/autonomous-developer.js +332 -0
  120. package/src/lib/bi-engine.js +616 -49
  121. package/src/lib/bm25-search.js +301 -49
  122. package/src/lib/browser-automation.js +630 -49
  123. package/src/lib/chat-core.js +336 -0
  124. package/src/lib/claude-code-bridge.js +341 -0
  125. package/src/lib/code-agent.js +339 -0
  126. package/src/lib/collaboration-governance.js +334 -0
  127. package/src/lib/community-governance.js +346 -0
  128. package/src/lib/compliance-framework-reporter.js +305 -51
  129. package/src/lib/compliance-manager.js +330 -0
  130. package/src/lib/compression-telemetry.js +301 -49
  131. package/src/lib/content-recommendation.js +351 -0
  132. package/src/lib/content-recommender.js +317 -52
  133. package/src/lib/cowork-cron.js +298 -49
  134. package/src/lib/cowork-learning.js +333 -0
  135. package/src/lib/cowork-share.js +338 -0
  136. package/src/lib/cowork-task-runner.js +308 -51
  137. package/src/lib/cowork-workflow.js +327 -0
  138. package/src/lib/cross-chain.js +311 -51
  139. package/src/lib/dao-governance.js +280 -46
  140. package/src/lib/dbevo.js +351 -0
  141. package/src/lib/decentral-infra.js +330 -0
  142. package/src/lib/did-manager.js +341 -0
  143. package/src/lib/did-v2-manager.js +341 -0
  144. package/src/lib/dlp-engine.js +626 -49
  145. package/src/lib/evolution-system.js +278 -47
  146. package/src/lib/evomap-governance.js +334 -0
  147. package/src/lib/evomap-manager.js +280 -46
  148. package/src/lib/execution-backend.js +294 -48
  149. package/src/lib/feature-flags.js +294 -49
  150. package/src/lib/federation-hardening.js +340 -0
  151. package/src/lib/git-integration.js +285 -47
  152. package/src/lib/hardening-manager.js +341 -0
  153. package/src/lib/hierarchical-memory.js +284 -48
  154. package/src/lib/hook-manager.js +341 -0
  155. package/src/lib/inference-network.js +308 -51
  156. package/src/lib/instinct-manager.js +346 -0
  157. package/src/lib/ipfs-storage.js +334 -0
  158. package/src/lib/iteration-budget.js +302 -50
  159. package/src/lib/knowledge-exporter.js +341 -0
  160. package/src/lib/knowledge-graph.js +333 -0
  161. package/src/lib/knowledge-importer.js +341 -0
  162. package/src/lib/llm-providers.js +346 -0
  163. package/src/lib/matrix-bridge.js +620 -47
  164. package/src/lib/mcp-registry.js +346 -0
  165. package/src/lib/mcp-scaffold.js +318 -54
  166. package/src/lib/memory-injection.js +288 -49
  167. package/src/lib/memory-manager.js +336 -0
  168. package/src/lib/multimodal.js +330 -0
  169. package/src/lib/nl-programming.js +341 -0
  170. package/src/lib/nostr-bridge.js +622 -49
  171. package/src/lib/note-versioning.js +339 -0
  172. package/src/lib/orchestrator.js +293 -48
  173. package/src/lib/org-manager.js +336 -0
  174. package/src/lib/p2p-manager.js +341 -0
  175. package/src/lib/pdf-parser.js +298 -49
  176. package/src/lib/perception.js +346 -0
  177. package/src/lib/perf-tuning.js +309 -50
  178. package/src/lib/permanent-memory.js +327 -0
  179. package/src/lib/permission-engine.js +287 -49
  180. package/src/lib/pipeline-orchestrator.js +289 -49
  181. package/src/lib/plan-mode.js +298 -51
  182. package/src/lib/plugin-ecosystem.js +346 -0
  183. package/src/lib/pqc-manager.js +346 -0
  184. package/src/lib/privacy-computing.js +335 -0
  185. package/src/lib/protocol-fusion.js +338 -0
  186. package/src/lib/quantization.js +337 -0
  187. package/src/lib/reputation-optimizer.js +340 -0
  188. package/src/lib/response-cache.js +333 -0
  189. package/src/lib/sandbox-v2.js +327 -0
  190. package/src/lib/scim-manager.js +346 -0
  191. package/src/lib/service-container.js +313 -52
  192. package/src/lib/session-consolidator.js +296 -49
  193. package/src/lib/session-hooks.js +312 -53
  194. package/src/lib/session-manager.js +334 -0
  195. package/src/lib/session-search.js +304 -51
  196. package/src/lib/session-tail.js +288 -49
  197. package/src/lib/session-usage.js +298 -52
  198. package/src/lib/siem-exporter.js +298 -51
  199. package/src/lib/skill-loader.js +334 -0
  200. package/src/lib/skill-marketplace.js +345 -0
  201. package/src/lib/sla-manager.js +341 -0
  202. package/src/lib/slot-filler.js +303 -51
  203. package/src/lib/social-graph-analytics.js +295 -49
  204. package/src/lib/social-graph.js +272 -49
  205. package/src/lib/social-manager.js +330 -0
  206. package/src/lib/sso-manager.js +340 -0
  207. package/src/lib/stress-tester.js +342 -0
  208. package/src/lib/sub-agent-registry.js +302 -53
  209. package/src/lib/sync-manager.js +336 -0
  210. package/src/lib/task-model-selector.js +302 -50
  211. package/src/lib/tech-learning-engine.js +341 -0
  212. package/src/lib/tenant-saas.js +341 -0
  213. package/src/lib/terraform-manager.js +333 -0
  214. package/src/lib/threat-intel.js +330 -0
  215. package/src/lib/todo-manager.js +281 -47
  216. package/src/lib/token-incentive.js +341 -0
  217. package/src/lib/token-tracker.js +336 -0
  218. package/src/lib/topic-classifier.js +297 -49
  219. package/src/lib/trust-security.js +343 -0
  220. package/src/lib/ueba.js +340 -0
  221. package/src/lib/universal-runtime.js +330 -0
  222. package/src/lib/user-profile.js +294 -50
  223. package/src/lib/version-checker.js +304 -50
  224. package/src/lib/wallet-manager.js +336 -0
  225. package/src/lib/web-fetch.js +292 -51
  226. package/src/lib/workflow-engine.js +330 -0
  227. package/src/lib/zkp-engine.js +286 -49
@@ -586,3 +586,209 @@ export function registerAuditCommand(program) {
586
586
  logger.log(JSON.stringify(getAuditStatsV2(), null, 2));
587
587
  });
588
588
  }
589
+
590
+ // === Iter16 V2 governance overlay ===
591
+ export function registerAuditGovV2Commands(program) {
592
+ const parent = program.commands.find((c) => c.name() === "audit");
593
+ if (!parent) return;
594
+ const L = async () => await import("../lib/audit-logger.js");
595
+ parent
596
+ .command("aud-gov-enums-v2")
597
+ .description("Show V2 enums (aud maturity + write lifecycle)")
598
+ .action(async () => {
599
+ const m = await L();
600
+ console.log(
601
+ JSON.stringify(
602
+ {
603
+ profileMaturity: m.AUD_PROFILE_MATURITY_V2,
604
+ writeLifecycle: m.AUD_WRITE_LIFECYCLE_V2,
605
+ },
606
+ null,
607
+ 2,
608
+ ),
609
+ );
610
+ });
611
+ parent
612
+ .command("aud-gov-config-v2")
613
+ .description("Show V2 config thresholds")
614
+ .action(async () => {
615
+ const m = await L();
616
+ console.log(
617
+ JSON.stringify(
618
+ {
619
+ maxActive: m.getMaxActiveAudProfilesPerOwnerV2(),
620
+ maxPending: m.getMaxPendingAudWritesPerProfileV2(),
621
+ idleMs: m.getAudProfileIdleMsV2(),
622
+ stuckMs: m.getAudWriteStuckMsV2(),
623
+ },
624
+ null,
625
+ 2,
626
+ ),
627
+ );
628
+ });
629
+ parent
630
+ .command("aud-gov-set-max-active-v2 <n>")
631
+ .description("Set max active profiles per owner")
632
+ .action(async (n) => {
633
+ const m = await L();
634
+ m.setMaxActiveAudProfilesPerOwnerV2(Number(n));
635
+ console.log("ok");
636
+ });
637
+ parent
638
+ .command("aud-gov-set-max-pending-v2 <n>")
639
+ .description("Set max pending writes per profile")
640
+ .action(async (n) => {
641
+ const m = await L();
642
+ m.setMaxPendingAudWritesPerProfileV2(Number(n));
643
+ console.log("ok");
644
+ });
645
+ parent
646
+ .command("aud-gov-set-idle-ms-v2 <n>")
647
+ .description("Set profile idle threshold (ms)")
648
+ .action(async (n) => {
649
+ const m = await L();
650
+ m.setAudProfileIdleMsV2(Number(n));
651
+ console.log("ok");
652
+ });
653
+ parent
654
+ .command("aud-gov-set-stuck-ms-v2 <n>")
655
+ .description("Set write stuck threshold (ms)")
656
+ .action(async (n) => {
657
+ const m = await L();
658
+ m.setAudWriteStuckMsV2(Number(n));
659
+ console.log("ok");
660
+ });
661
+ parent
662
+ .command("aud-gov-register-v2 <id> <owner>")
663
+ .description("Register V2 aud profile")
664
+ .option("--level <v>", "level")
665
+ .action(async (id, owner, o) => {
666
+ const m = await L();
667
+ console.log(
668
+ JSON.stringify(
669
+ m.registerAudProfileV2({ id, owner, level: o.level }),
670
+ null,
671
+ 2,
672
+ ),
673
+ );
674
+ });
675
+ parent
676
+ .command("aud-gov-activate-v2 <id>")
677
+ .description("Activate profile")
678
+ .action(async (id) => {
679
+ const m = await L();
680
+ console.log(JSON.stringify(m.activateAudProfileV2(id), null, 2));
681
+ });
682
+ parent
683
+ .command("aud-gov-suspend-v2 <id>")
684
+ .description("Suspend profile")
685
+ .action(async (id) => {
686
+ const m = await L();
687
+ console.log(JSON.stringify(m.suspendAudProfileV2(id), null, 2));
688
+ });
689
+ parent
690
+ .command("aud-gov-archive-v2 <id>")
691
+ .description("Archive profile (terminal)")
692
+ .action(async (id) => {
693
+ const m = await L();
694
+ console.log(JSON.stringify(m.archiveAudProfileV2(id), null, 2));
695
+ });
696
+ parent
697
+ .command("aud-gov-touch-v2 <id>")
698
+ .description("Touch profile")
699
+ .action(async (id) => {
700
+ const m = await L();
701
+ console.log(JSON.stringify(m.touchAudProfileV2(id), null, 2));
702
+ });
703
+ parent
704
+ .command("aud-gov-get-v2 <id>")
705
+ .description("Get profile")
706
+ .action(async (id) => {
707
+ const m = await L();
708
+ console.log(JSON.stringify(m.getAudProfileV2(id), null, 2));
709
+ });
710
+ parent
711
+ .command("aud-gov-list-v2")
712
+ .description("List profiles")
713
+ .action(async () => {
714
+ const m = await L();
715
+ console.log(JSON.stringify(m.listAudProfilesV2(), null, 2));
716
+ });
717
+ parent
718
+ .command("aud-gov-create-write-v2 <id> <profileId>")
719
+ .description("Create write (queued)")
720
+ .option("--key <v>", "key")
721
+ .action(async (id, profileId, o) => {
722
+ const m = await L();
723
+ console.log(
724
+ JSON.stringify(
725
+ m.createAudWriteV2({ id, profileId, key: o.key }),
726
+ null,
727
+ 2,
728
+ ),
729
+ );
730
+ });
731
+ parent
732
+ .command("aud-gov-writing-write-v2 <id>")
733
+ .description("Mark write as writing")
734
+ .action(async (id) => {
735
+ const m = await L();
736
+ console.log(JSON.stringify(m.writingAudWriteV2(id), null, 2));
737
+ });
738
+ parent
739
+ .command("aud-gov-complete-write-v2 <id>")
740
+ .description("Write OK")
741
+ .action(async (id) => {
742
+ const m = await L();
743
+ console.log(JSON.stringify(m.writeOkAudV2(id), null, 2));
744
+ });
745
+ parent
746
+ .command("aud-gov-fail-write-v2 <id> [reason]")
747
+ .description("Fail write")
748
+ .action(async (id, reason) => {
749
+ const m = await L();
750
+ console.log(JSON.stringify(m.failAudWriteV2(id, reason), null, 2));
751
+ });
752
+ parent
753
+ .command("aud-gov-cancel-write-v2 <id> [reason]")
754
+ .description("Cancel write")
755
+ .action(async (id, reason) => {
756
+ const m = await L();
757
+ console.log(JSON.stringify(m.cancelAudWriteV2(id, reason), null, 2));
758
+ });
759
+ parent
760
+ .command("aud-gov-get-write-v2 <id>")
761
+ .description("Get write")
762
+ .action(async (id) => {
763
+ const m = await L();
764
+ console.log(JSON.stringify(m.getAudWriteV2(id), null, 2));
765
+ });
766
+ parent
767
+ .command("aud-gov-list-writes-v2")
768
+ .description("List writes")
769
+ .action(async () => {
770
+ const m = await L();
771
+ console.log(JSON.stringify(m.listAudWritesV2(), null, 2));
772
+ });
773
+ parent
774
+ .command("aud-gov-auto-suspend-idle-v2")
775
+ .description("Auto-suspend idle profiles")
776
+ .action(async () => {
777
+ const m = await L();
778
+ console.log(JSON.stringify(m.autoSuspendIdleAudProfilesV2(), null, 2));
779
+ });
780
+ parent
781
+ .command("aud-gov-auto-fail-stuck-v2")
782
+ .description("Auto-fail stuck writes")
783
+ .action(async () => {
784
+ const m = await L();
785
+ console.log(JSON.stringify(m.autoFailStuckAudWritesV2(), null, 2));
786
+ });
787
+ parent
788
+ .command("aud-gov-gov-stats-v2")
789
+ .description("V2 gov aggregate stats")
790
+ .action(async () => {
791
+ const m = await L();
792
+ console.log(JSON.stringify(m.getAuditLoggerGovStatsV2(), null, 2));
793
+ });
794
+ }
@@ -922,3 +922,204 @@ function _wire(root) {
922
922
  .description("Auto-fail stuck V2 executions")
923
923
  .action(() => outV2(autoFailStuckExecutionsV2()));
924
924
  }
925
+
926
+ // === Iter22 V2 governance overlay ===
927
+ export function registerAugovV2Commands(program) {
928
+ const parent = program.commands.find((c) => c.name() === "automation");
929
+ if (!parent) return;
930
+ const L = async () => await import("../lib/automation-engine.js");
931
+ parent
932
+ .command("augov-enums-v2")
933
+ .description("Show V2 enums")
934
+ .action(async () => {
935
+ const m = await L();
936
+ console.log(
937
+ JSON.stringify(
938
+ {
939
+ profileMaturity: m.AUGOV_PROFILE_MATURITY_V2,
940
+ flowLifecycle: m.AUGOV_FLOW_LIFECYCLE_V2,
941
+ },
942
+ null,
943
+ 2,
944
+ ),
945
+ );
946
+ });
947
+ parent
948
+ .command("augov-config-v2")
949
+ .description("Show V2 config")
950
+ .action(async () => {
951
+ const m = await L();
952
+ console.log(
953
+ JSON.stringify(
954
+ {
955
+ maxActive: m.getMaxActiveAugovProfilesPerOwnerV2(),
956
+ maxPending: m.getMaxPendingAugovFlowsPerProfileV2(),
957
+ idleMs: m.getAugovProfileIdleMsV2(),
958
+ stuckMs: m.getAugovFlowStuckMsV2(),
959
+ },
960
+ null,
961
+ 2,
962
+ ),
963
+ );
964
+ });
965
+ parent
966
+ .command("augov-set-max-active-v2 <n>")
967
+ .description("Set max active")
968
+ .action(async (n) => {
969
+ (await L()).setMaxActiveAugovProfilesPerOwnerV2(Number(n));
970
+ console.log("ok");
971
+ });
972
+ parent
973
+ .command("augov-set-max-pending-v2 <n>")
974
+ .description("Set max pending")
975
+ .action(async (n) => {
976
+ (await L()).setMaxPendingAugovFlowsPerProfileV2(Number(n));
977
+ console.log("ok");
978
+ });
979
+ parent
980
+ .command("augov-set-idle-ms-v2 <n>")
981
+ .description("Set idle threshold ms")
982
+ .action(async (n) => {
983
+ (await L()).setAugovProfileIdleMsV2(Number(n));
984
+ console.log("ok");
985
+ });
986
+ parent
987
+ .command("augov-set-stuck-ms-v2 <n>")
988
+ .description("Set stuck threshold ms")
989
+ .action(async (n) => {
990
+ (await L()).setAugovFlowStuckMsV2(Number(n));
991
+ console.log("ok");
992
+ });
993
+ parent
994
+ .command("augov-register-v2 <id> <owner>")
995
+ .description("Register V2 profile")
996
+ .option("--connector <v>", "connector")
997
+ .action(async (id, owner, o) => {
998
+ const m = await L();
999
+ console.log(
1000
+ JSON.stringify(
1001
+ m.registerAugovProfileV2({ id, owner, connector: o.connector }),
1002
+ null,
1003
+ 2,
1004
+ ),
1005
+ );
1006
+ });
1007
+ parent
1008
+ .command("augov-activate-v2 <id>")
1009
+ .description("Activate profile")
1010
+ .action(async (id) => {
1011
+ console.log(
1012
+ JSON.stringify((await L()).activateAugovProfileV2(id), null, 2),
1013
+ );
1014
+ });
1015
+ parent
1016
+ .command("augov-pause-v2 <id>")
1017
+ .description("Pause profile")
1018
+ .action(async (id) => {
1019
+ console.log(JSON.stringify((await L()).pauseAugovProfileV2(id), null, 2));
1020
+ });
1021
+ parent
1022
+ .command("augov-archive-v2 <id>")
1023
+ .description("Archive profile")
1024
+ .action(async (id) => {
1025
+ console.log(
1026
+ JSON.stringify((await L()).archiveAugovProfileV2(id), null, 2),
1027
+ );
1028
+ });
1029
+ parent
1030
+ .command("augov-touch-v2 <id>")
1031
+ .description("Touch profile")
1032
+ .action(async (id) => {
1033
+ console.log(JSON.stringify((await L()).touchAugovProfileV2(id), null, 2));
1034
+ });
1035
+ parent
1036
+ .command("augov-get-v2 <id>")
1037
+ .description("Get profile")
1038
+ .action(async (id) => {
1039
+ console.log(JSON.stringify((await L()).getAugovProfileV2(id), null, 2));
1040
+ });
1041
+ parent
1042
+ .command("augov-list-v2")
1043
+ .description("List profiles")
1044
+ .action(async () => {
1045
+ console.log(JSON.stringify((await L()).listAugovProfilesV2(), null, 2));
1046
+ });
1047
+ parent
1048
+ .command("augov-create-flow-v2 <id> <profileId>")
1049
+ .description("Create flow")
1050
+ .option("--trigger <v>", "trigger")
1051
+ .action(async (id, profileId, o) => {
1052
+ const m = await L();
1053
+ console.log(
1054
+ JSON.stringify(
1055
+ m.createAugovFlowV2({ id, profileId, trigger: o.trigger }),
1056
+ null,
1057
+ 2,
1058
+ ),
1059
+ );
1060
+ });
1061
+ parent
1062
+ .command("augov-running-flow-v2 <id>")
1063
+ .description("Mark flow as running")
1064
+ .action(async (id) => {
1065
+ console.log(JSON.stringify((await L()).runningAugovFlowV2(id), null, 2));
1066
+ });
1067
+ parent
1068
+ .command("augov-complete-flow-v2 <id>")
1069
+ .description("Complete flow")
1070
+ .action(async (id) => {
1071
+ console.log(JSON.stringify((await L()).completeFlowAugovV2(id), null, 2));
1072
+ });
1073
+ parent
1074
+ .command("augov-fail-flow-v2 <id> [reason]")
1075
+ .description("Fail flow")
1076
+ .action(async (id, reason) => {
1077
+ console.log(
1078
+ JSON.stringify((await L()).failAugovFlowV2(id, reason), null, 2),
1079
+ );
1080
+ });
1081
+ parent
1082
+ .command("augov-cancel-flow-v2 <id> [reason]")
1083
+ .description("Cancel flow")
1084
+ .action(async (id, reason) => {
1085
+ console.log(
1086
+ JSON.stringify((await L()).cancelAugovFlowV2(id, reason), null, 2),
1087
+ );
1088
+ });
1089
+ parent
1090
+ .command("augov-get-flow-v2 <id>")
1091
+ .description("Get flow")
1092
+ .action(async (id) => {
1093
+ console.log(JSON.stringify((await L()).getAugovFlowV2(id), null, 2));
1094
+ });
1095
+ parent
1096
+ .command("augov-list-flows-v2")
1097
+ .description("List flows")
1098
+ .action(async () => {
1099
+ console.log(JSON.stringify((await L()).listAugovFlowsV2(), null, 2));
1100
+ });
1101
+ parent
1102
+ .command("augov-auto-pause-idle-v2")
1103
+ .description("Auto-pause idle")
1104
+ .action(async () => {
1105
+ console.log(
1106
+ JSON.stringify((await L()).autoPauseIdleAugovProfilesV2(), null, 2),
1107
+ );
1108
+ });
1109
+ parent
1110
+ .command("augov-auto-fail-stuck-v2")
1111
+ .description("Auto-fail stuck flows")
1112
+ .action(async () => {
1113
+ console.log(
1114
+ JSON.stringify((await L()).autoFailStuckAugovFlowsV2(), null, 2),
1115
+ );
1116
+ });
1117
+ parent
1118
+ .command("augov-gov-stats-v2")
1119
+ .description("V2 gov stats")
1120
+ .action(async () => {
1121
+ console.log(
1122
+ JSON.stringify((await L()).getAutomationEngineGovStatsV2(), null, 2),
1123
+ );
1124
+ });
1125
+ }