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
@@ -1845,38 +1845,828 @@ export function registerComplianceCommand(program) {
1845
1845
 
1846
1846
  function _registerComplianceFwReporterV2Commands(parent) {
1847
1847
  const L = async () => await import("../lib/compliance-framework-reporter.js");
1848
- parent.command("fwrep-enums-v2").description("Show V2 enums (fw maturity + report lifecycle)")
1849
- .action(async () => { const m = await L(); console.log(JSON.stringify({ fwMaturity: m.COMPLIANCE_FW_MATURITY_V2, reportLifecycle: m.COMPLIANCE_FW_REPORT_LIFECYCLE_V2 }, null, 2)); });
1850
- parent.command("fwrep-config-v2").description("Show V2 config thresholds")
1851
- .action(async () => { const m = await L(); console.log(JSON.stringify({ maxActiveComplianceFwsPerOwner: m.getMaxActiveComplianceFwsPerOwnerV2(), maxPendingComplianceFwReportsPerFw: m.getMaxPendingComplianceFwReportsPerFwV2(), complianceFwIdleMs: m.getComplianceFwIdleMsV2(), complianceFwReportStuckMs: m.getComplianceFwReportStuckMsV2() }, null, 2)); });
1852
- parent.command("fwrep-set-max-active-v2 <n>").description("Set max active fws per owner")
1853
- .action(async (n) => { const m = await L(); m.setMaxActiveComplianceFwsPerOwnerV2(Number(n)); console.log("ok"); });
1854
- parent.command("fwrep-set-max-pending-v2 <n>").description("Set max pending reports per fw")
1855
- .action(async (n) => { const m = await L(); m.setMaxPendingComplianceFwReportsPerFwV2(Number(n)); console.log("ok"); });
1856
- parent.command("fwrep-set-fw-idle-ms-v2 <n>").description("Set fw idle threshold (ms)")
1857
- .action(async (n) => { const m = await L(); m.setComplianceFwIdleMsV2(Number(n)); console.log("ok"); });
1858
- parent.command("fwrep-set-report-stuck-ms-v2 <n>").description("Set report stuck threshold (ms)")
1859
- .action(async (n) => { const m = await L(); m.setComplianceFwReportStuckMsV2(Number(n)); console.log("ok"); });
1860
- parent.command("fwrep-register-v2 <id> <owner>").description("Register V2 compliance framework")
1861
- .option("--name <n>", "Framework name").action(async (id, owner, o) => { const m = await L(); console.log(JSON.stringify(m.registerComplianceFwV2({ id, owner, name: o.name }), null, 2)); });
1862
- parent.command("fwrep-activate-v2 <id>").description("Activate framework").action(async (id) => { const m = await L(); console.log(JSON.stringify(m.activateComplianceFwV2(id), null, 2)); });
1863
- parent.command("fwrep-deprecate-v2 <id>").description("Deprecate framework").action(async (id) => { const m = await L(); console.log(JSON.stringify(m.deprecateComplianceFwV2(id), null, 2)); });
1864
- parent.command("fwrep-archive-v2 <id>").description("Archive framework (terminal)").action(async (id) => { const m = await L(); console.log(JSON.stringify(m.archiveComplianceFwV2(id), null, 2)); });
1865
- parent.command("fwrep-touch-v2 <id>").description("Touch framework").action(async (id) => { const m = await L(); console.log(JSON.stringify(m.touchComplianceFwV2(id), null, 2)); });
1866
- parent.command("fwrep-get-v2 <id>").description("Get V2 framework").action(async (id) => { const m = await L(); console.log(JSON.stringify(m.getComplianceFwV2(id), null, 2)); });
1867
- parent.command("fwrep-list-v2").description("List V2 frameworks").action(async () => { const m = await L(); console.log(JSON.stringify(m.listComplianceFwsV2(), null, 2)); });
1868
- parent.command("fwrep-create-report-v2 <id> <frameworkId>").description("Create V2 report (queued)")
1869
- .option("--format <f>", "Format", "markdown").action(async (id, frameworkId, o) => { const m = await L(); console.log(JSON.stringify(m.createComplianceFwReportV2({ id, frameworkId, format: o.format }), null, 2)); });
1870
- parent.command("fwrep-start-report-v2 <id>").description("Start report").action(async (id) => { const m = await L(); console.log(JSON.stringify(m.startComplianceFwReportV2(id), null, 2)); });
1871
- parent.command("fwrep-complete-report-v2 <id>").description("Complete report").action(async (id) => { const m = await L(); console.log(JSON.stringify(m.completeComplianceFwReportV2(id), null, 2)); });
1872
- parent.command("fwrep-fail-report-v2 <id> [reason]").description("Fail report").action(async (id, reason) => { const m = await L(); console.log(JSON.stringify(m.failComplianceFwReportV2(id, reason), null, 2)); });
1873
- parent.command("fwrep-cancel-report-v2 <id> [reason]").description("Cancel report").action(async (id, reason) => { const m = await L(); console.log(JSON.stringify(m.cancelComplianceFwReportV2(id, reason), null, 2)); });
1874
- parent.command("fwrep-get-report-v2 <id>").description("Get V2 report").action(async (id) => { const m = await L(); console.log(JSON.stringify(m.getComplianceFwReportV2(id), null, 2)); });
1875
- parent.command("fwrep-list-reports-v2").description("List V2 reports").action(async () => { const m = await L(); console.log(JSON.stringify(m.listComplianceFwReportsV2(), null, 2)); });
1876
- parent.command("fwrep-auto-deprecate-idle-v2").description("Auto-deprecate idle fws")
1877
- .action(async () => { const m = await L(); console.log(JSON.stringify(m.autoDeprecateIdleComplianceFwsV2(), null, 2)); });
1878
- parent.command("fwrep-auto-fail-stuck-v2").description("Auto-fail stuck generating reports")
1879
- .action(async () => { const m = await L(); console.log(JSON.stringify(m.autoFailStuckComplianceFwReportsV2(), null, 2)); });
1880
- parent.command("fwrep-gov-stats-v2").description("V2 gov aggregate stats (fw reporter)")
1881
- .action(async () => { const m = await L(); console.log(JSON.stringify(m.getComplianceFwReporterGovStatsV2(), null, 2)); });
1848
+ parent
1849
+ .command("fwrep-enums-v2")
1850
+ .description("Show V2 enums (fw maturity + report lifecycle)")
1851
+ .action(async () => {
1852
+ const m = await L();
1853
+ console.log(
1854
+ JSON.stringify(
1855
+ {
1856
+ fwMaturity: m.COMPLIANCE_FW_MATURITY_V2,
1857
+ reportLifecycle: m.COMPLIANCE_FW_REPORT_LIFECYCLE_V2,
1858
+ },
1859
+ null,
1860
+ 2,
1861
+ ),
1862
+ );
1863
+ });
1864
+ parent
1865
+ .command("fwrep-config-v2")
1866
+ .description("Show V2 config thresholds")
1867
+ .action(async () => {
1868
+ const m = await L();
1869
+ console.log(
1870
+ JSON.stringify(
1871
+ {
1872
+ maxActiveComplianceFwsPerOwner:
1873
+ m.getMaxActiveComplianceFwsPerOwnerV2(),
1874
+ maxPendingComplianceFwReportsPerFw:
1875
+ m.getMaxPendingComplianceFwReportsPerFwV2(),
1876
+ complianceFwIdleMs: m.getComplianceFwIdleMsV2(),
1877
+ complianceFwReportStuckMs: m.getComplianceFwReportStuckMsV2(),
1878
+ },
1879
+ null,
1880
+ 2,
1881
+ ),
1882
+ );
1883
+ });
1884
+ parent
1885
+ .command("fwrep-set-max-active-v2 <n>")
1886
+ .description("Set max active fws per owner")
1887
+ .action(async (n) => {
1888
+ const m = await L();
1889
+ m.setMaxActiveComplianceFwsPerOwnerV2(Number(n));
1890
+ console.log("ok");
1891
+ });
1892
+ parent
1893
+ .command("fwrep-set-max-pending-v2 <n>")
1894
+ .description("Set max pending reports per fw")
1895
+ .action(async (n) => {
1896
+ const m = await L();
1897
+ m.setMaxPendingComplianceFwReportsPerFwV2(Number(n));
1898
+ console.log("ok");
1899
+ });
1900
+ parent
1901
+ .command("fwrep-set-fw-idle-ms-v2 <n>")
1902
+ .description("Set fw idle threshold (ms)")
1903
+ .action(async (n) => {
1904
+ const m = await L();
1905
+ m.setComplianceFwIdleMsV2(Number(n));
1906
+ console.log("ok");
1907
+ });
1908
+ parent
1909
+ .command("fwrep-set-report-stuck-ms-v2 <n>")
1910
+ .description("Set report stuck threshold (ms)")
1911
+ .action(async (n) => {
1912
+ const m = await L();
1913
+ m.setComplianceFwReportStuckMsV2(Number(n));
1914
+ console.log("ok");
1915
+ });
1916
+ parent
1917
+ .command("fwrep-register-v2 <id> <owner>")
1918
+ .description("Register V2 compliance framework")
1919
+ .option("--name <n>", "Framework name")
1920
+ .action(async (id, owner, o) => {
1921
+ const m = await L();
1922
+ console.log(
1923
+ JSON.stringify(
1924
+ m.registerComplianceFwV2({ id, owner, name: o.name }),
1925
+ null,
1926
+ 2,
1927
+ ),
1928
+ );
1929
+ });
1930
+ parent
1931
+ .command("fwrep-activate-v2 <id>")
1932
+ .description("Activate framework")
1933
+ .action(async (id) => {
1934
+ const m = await L();
1935
+ console.log(JSON.stringify(m.activateComplianceFwV2(id), null, 2));
1936
+ });
1937
+ parent
1938
+ .command("fwrep-deprecate-v2 <id>")
1939
+ .description("Deprecate framework")
1940
+ .action(async (id) => {
1941
+ const m = await L();
1942
+ console.log(JSON.stringify(m.deprecateComplianceFwV2(id), null, 2));
1943
+ });
1944
+ parent
1945
+ .command("fwrep-archive-v2 <id>")
1946
+ .description("Archive framework (terminal)")
1947
+ .action(async (id) => {
1948
+ const m = await L();
1949
+ console.log(JSON.stringify(m.archiveComplianceFwV2(id), null, 2));
1950
+ });
1951
+ parent
1952
+ .command("fwrep-touch-v2 <id>")
1953
+ .description("Touch framework")
1954
+ .action(async (id) => {
1955
+ const m = await L();
1956
+ console.log(JSON.stringify(m.touchComplianceFwV2(id), null, 2));
1957
+ });
1958
+ parent
1959
+ .command("fwrep-get-v2 <id>")
1960
+ .description("Get V2 framework")
1961
+ .action(async (id) => {
1962
+ const m = await L();
1963
+ console.log(JSON.stringify(m.getComplianceFwV2(id), null, 2));
1964
+ });
1965
+ parent
1966
+ .command("fwrep-list-v2")
1967
+ .description("List V2 frameworks")
1968
+ .action(async () => {
1969
+ const m = await L();
1970
+ console.log(JSON.stringify(m.listComplianceFwsV2(), null, 2));
1971
+ });
1972
+ parent
1973
+ .command("fwrep-create-report-v2 <id> <frameworkId>")
1974
+ .description("Create V2 report (queued)")
1975
+ .option("--format <f>", "Format", "markdown")
1976
+ .action(async (id, frameworkId, o) => {
1977
+ const m = await L();
1978
+ console.log(
1979
+ JSON.stringify(
1980
+ m.createComplianceFwReportV2({ id, frameworkId, format: o.format }),
1981
+ null,
1982
+ 2,
1983
+ ),
1984
+ );
1985
+ });
1986
+ parent
1987
+ .command("fwrep-start-report-v2 <id>")
1988
+ .description("Start report")
1989
+ .action(async (id) => {
1990
+ const m = await L();
1991
+ console.log(JSON.stringify(m.startComplianceFwReportV2(id), null, 2));
1992
+ });
1993
+ parent
1994
+ .command("fwrep-complete-report-v2 <id>")
1995
+ .description("Complete report")
1996
+ .action(async (id) => {
1997
+ const m = await L();
1998
+ console.log(JSON.stringify(m.completeComplianceFwReportV2(id), null, 2));
1999
+ });
2000
+ parent
2001
+ .command("fwrep-fail-report-v2 <id> [reason]")
2002
+ .description("Fail report")
2003
+ .action(async (id, reason) => {
2004
+ const m = await L();
2005
+ console.log(
2006
+ JSON.stringify(m.failComplianceFwReportV2(id, reason), null, 2),
2007
+ );
2008
+ });
2009
+ parent
2010
+ .command("fwrep-cancel-report-v2 <id> [reason]")
2011
+ .description("Cancel report")
2012
+ .action(async (id, reason) => {
2013
+ const m = await L();
2014
+ console.log(
2015
+ JSON.stringify(m.cancelComplianceFwReportV2(id, reason), null, 2),
2016
+ );
2017
+ });
2018
+ parent
2019
+ .command("fwrep-get-report-v2 <id>")
2020
+ .description("Get V2 report")
2021
+ .action(async (id) => {
2022
+ const m = await L();
2023
+ console.log(JSON.stringify(m.getComplianceFwReportV2(id), null, 2));
2024
+ });
2025
+ parent
2026
+ .command("fwrep-list-reports-v2")
2027
+ .description("List V2 reports")
2028
+ .action(async () => {
2029
+ const m = await L();
2030
+ console.log(JSON.stringify(m.listComplianceFwReportsV2(), null, 2));
2031
+ });
2032
+ parent
2033
+ .command("fwrep-auto-deprecate-idle-v2")
2034
+ .description("Auto-deprecate idle fws")
2035
+ .action(async () => {
2036
+ const m = await L();
2037
+ console.log(
2038
+ JSON.stringify(m.autoDeprecateIdleComplianceFwsV2(), null, 2),
2039
+ );
2040
+ });
2041
+ parent
2042
+ .command("fwrep-auto-fail-stuck-v2")
2043
+ .description("Auto-fail stuck generating reports")
2044
+ .action(async () => {
2045
+ const m = await L();
2046
+ console.log(
2047
+ JSON.stringify(m.autoFailStuckComplianceFwReportsV2(), null, 2),
2048
+ );
2049
+ });
2050
+ parent
2051
+ .command("fwrep-gov-stats-v2")
2052
+ .description("V2 gov aggregate stats (fw reporter)")
2053
+ .action(async () => {
2054
+ const m = await L();
2055
+ console.log(
2056
+ JSON.stringify(m.getComplianceFwReporterGovStatsV2(), null, 2),
2057
+ );
2058
+ });
2059
+ }
2060
+
2061
+ // === Iter17 V2 governance overlay ===
2062
+ export function registerCmgrV2Commands(program) {
2063
+ const parent = program.commands.find((c) => c.name() === "compliance");
2064
+ if (!parent) return;
2065
+ const L = async () => await import("../lib/compliance-manager.js");
2066
+ parent
2067
+ .command("cmgr-enums-v2")
2068
+ .description("Show V2 enums")
2069
+ .action(async () => {
2070
+ const m = await L();
2071
+ console.log(
2072
+ JSON.stringify(
2073
+ {
2074
+ profileMaturity: m.CMGR_PROFILE_MATURITY_V2,
2075
+ auditLifecycle: m.CMGR_AUDIT_LIFECYCLE_V2,
2076
+ },
2077
+ null,
2078
+ 2,
2079
+ ),
2080
+ );
2081
+ });
2082
+ parent
2083
+ .command("cmgr-config-v2")
2084
+ .description("Show V2 config")
2085
+ .action(async () => {
2086
+ const m = await L();
2087
+ console.log(
2088
+ JSON.stringify(
2089
+ {
2090
+ maxActive: m.getMaxActiveCmgrProfilesPerOwnerV2(),
2091
+ maxPending: m.getMaxPendingCmgrAuditsPerProfileV2(),
2092
+ idleMs: m.getCmgrProfileIdleMsV2(),
2093
+ stuckMs: m.getCmgrAuditStuckMsV2(),
2094
+ },
2095
+ null,
2096
+ 2,
2097
+ ),
2098
+ );
2099
+ });
2100
+ parent
2101
+ .command("cmgr-set-max-active-v2 <n>")
2102
+ .description("Set max active")
2103
+ .action(async (n) => {
2104
+ (await L()).setMaxActiveCmgrProfilesPerOwnerV2(Number(n));
2105
+ console.log("ok");
2106
+ });
2107
+ parent
2108
+ .command("cmgr-set-max-pending-v2 <n>")
2109
+ .description("Set max pending")
2110
+ .action(async (n) => {
2111
+ (await L()).setMaxPendingCmgrAuditsPerProfileV2(Number(n));
2112
+ console.log("ok");
2113
+ });
2114
+ parent
2115
+ .command("cmgr-set-idle-ms-v2 <n>")
2116
+ .description("Set idle threshold ms")
2117
+ .action(async (n) => {
2118
+ (await L()).setCmgrProfileIdleMsV2(Number(n));
2119
+ console.log("ok");
2120
+ });
2121
+ parent
2122
+ .command("cmgr-set-stuck-ms-v2 <n>")
2123
+ .description("Set stuck threshold ms")
2124
+ .action(async (n) => {
2125
+ (await L()).setCmgrAuditStuckMsV2(Number(n));
2126
+ console.log("ok");
2127
+ });
2128
+ parent
2129
+ .command("cmgr-register-v2 <id> <owner>")
2130
+ .description("Register V2 profile")
2131
+ .option("--framework <v>", "framework")
2132
+ .action(async (id, owner, o) => {
2133
+ const m = await L();
2134
+ console.log(
2135
+ JSON.stringify(
2136
+ m.registerCmgrProfileV2({ id, owner, framework: o.framework }),
2137
+ null,
2138
+ 2,
2139
+ ),
2140
+ );
2141
+ });
2142
+ parent
2143
+ .command("cmgr-activate-v2 <id>")
2144
+ .description("Activate profile")
2145
+ .action(async (id) => {
2146
+ console.log(
2147
+ JSON.stringify((await L()).activateCmgrProfileV2(id), null, 2),
2148
+ );
2149
+ });
2150
+ parent
2151
+ .command("cmgr-deprecate-v2 <id>")
2152
+ .description("Deprecate profile")
2153
+ .action(async (id) => {
2154
+ console.log(
2155
+ JSON.stringify((await L()).deprecateCmgrProfileV2(id), null, 2),
2156
+ );
2157
+ });
2158
+ parent
2159
+ .command("cmgr-archive-v2 <id>")
2160
+ .description("Archive profile")
2161
+ .action(async (id) => {
2162
+ console.log(
2163
+ JSON.stringify((await L()).archiveCmgrProfileV2(id), null, 2),
2164
+ );
2165
+ });
2166
+ parent
2167
+ .command("cmgr-touch-v2 <id>")
2168
+ .description("Touch profile")
2169
+ .action(async (id) => {
2170
+ console.log(JSON.stringify((await L()).touchCmgrProfileV2(id), null, 2));
2171
+ });
2172
+ parent
2173
+ .command("cmgr-get-v2 <id>")
2174
+ .description("Get profile")
2175
+ .action(async (id) => {
2176
+ console.log(JSON.stringify((await L()).getCmgrProfileV2(id), null, 2));
2177
+ });
2178
+ parent
2179
+ .command("cmgr-list-v2")
2180
+ .description("List profiles")
2181
+ .action(async () => {
2182
+ console.log(JSON.stringify((await L()).listCmgrProfilesV2(), null, 2));
2183
+ });
2184
+ parent
2185
+ .command("cmgr-create-audit-v2 <id> <profileId>")
2186
+ .description("Create audit")
2187
+ .option("--control <v>", "control")
2188
+ .action(async (id, profileId, o) => {
2189
+ const m = await L();
2190
+ console.log(
2191
+ JSON.stringify(
2192
+ m.createCmgrAuditV2({ id, profileId, control: o.control }),
2193
+ null,
2194
+ 2,
2195
+ ),
2196
+ );
2197
+ });
2198
+ parent
2199
+ .command("cmgr-auditing-audit-v2 <id>")
2200
+ .description("Mark audit as auditing")
2201
+ .action(async (id) => {
2202
+ console.log(JSON.stringify((await L()).auditingCmgrAuditV2(id), null, 2));
2203
+ });
2204
+ parent
2205
+ .command("cmgr-complete-audit-v2 <id>")
2206
+ .description("Complete audit")
2207
+ .action(async (id) => {
2208
+ console.log(JSON.stringify((await L()).completeAuditCmgrV2(id), null, 2));
2209
+ });
2210
+ parent
2211
+ .command("cmgr-fail-audit-v2 <id> [reason]")
2212
+ .description("Fail audit")
2213
+ .action(async (id, reason) => {
2214
+ console.log(
2215
+ JSON.stringify((await L()).failCmgrAuditV2(id, reason), null, 2),
2216
+ );
2217
+ });
2218
+ parent
2219
+ .command("cmgr-cancel-audit-v2 <id> [reason]")
2220
+ .description("Cancel audit")
2221
+ .action(async (id, reason) => {
2222
+ console.log(
2223
+ JSON.stringify((await L()).cancelCmgrAuditV2(id, reason), null, 2),
2224
+ );
2225
+ });
2226
+ parent
2227
+ .command("cmgr-get-audit-v2 <id>")
2228
+ .description("Get audit")
2229
+ .action(async (id) => {
2230
+ console.log(JSON.stringify((await L()).getCmgrAuditV2(id), null, 2));
2231
+ });
2232
+ parent
2233
+ .command("cmgr-list-audits-v2")
2234
+ .description("List audits")
2235
+ .action(async () => {
2236
+ console.log(JSON.stringify((await L()).listCmgrAuditsV2(), null, 2));
2237
+ });
2238
+ parent
2239
+ .command("cmgr-auto-deprecate-idle-v2")
2240
+ .description("Auto-deprecate idle")
2241
+ .action(async () => {
2242
+ console.log(
2243
+ JSON.stringify((await L()).autoDeprecateIdleCmgrProfilesV2(), null, 2),
2244
+ );
2245
+ });
2246
+ parent
2247
+ .command("cmgr-auto-fail-stuck-v2")
2248
+ .description("Auto-fail stuck audits")
2249
+ .action(async () => {
2250
+ console.log(
2251
+ JSON.stringify((await L()).autoFailStuckCmgrAuditsV2(), null, 2),
2252
+ );
2253
+ });
2254
+ parent
2255
+ .command("cmgr-gov-stats-v2")
2256
+ .description("V2 gov stats")
2257
+ .action(async () => {
2258
+ console.log(
2259
+ JSON.stringify((await L()).getComplianceManagerGovStatsV2(), null, 2),
2260
+ );
2261
+ });
2262
+ }
2263
+
2264
+ // === Iter24 V2 governance overlay ===
2265
+ export function registerTigovV2Commands(program) {
2266
+ const parent = program.commands.find((c) => c.name() === "compliance");
2267
+ if (!parent) return;
2268
+ const L = async () => await import("../lib/threat-intel.js");
2269
+ parent
2270
+ .command("tigov-enums-v2")
2271
+ .description("Show V2 enums")
2272
+ .action(async () => {
2273
+ const m = await L();
2274
+ console.log(
2275
+ JSON.stringify(
2276
+ {
2277
+ profileMaturity: m.TIGOV_PROFILE_MATURITY_V2,
2278
+ feedLifecycle: m.TIGOV_FEED_LIFECYCLE_V2,
2279
+ },
2280
+ null,
2281
+ 2,
2282
+ ),
2283
+ );
2284
+ });
2285
+ parent
2286
+ .command("tigov-config-v2")
2287
+ .description("Show V2 config")
2288
+ .action(async () => {
2289
+ const m = await L();
2290
+ console.log(
2291
+ JSON.stringify(
2292
+ {
2293
+ maxActive: m.getMaxActiveTigovProfilesPerOwnerV2(),
2294
+ maxPending: m.getMaxPendingTigovFeedsPerProfileV2(),
2295
+ idleMs: m.getTigovProfileIdleMsV2(),
2296
+ stuckMs: m.getTigovFeedStuckMsV2(),
2297
+ },
2298
+ null,
2299
+ 2,
2300
+ ),
2301
+ );
2302
+ });
2303
+ parent
2304
+ .command("tigov-set-max-active-v2 <n>")
2305
+ .description("Set max active")
2306
+ .action(async (n) => {
2307
+ (await L()).setMaxActiveTigovProfilesPerOwnerV2(Number(n));
2308
+ console.log("ok");
2309
+ });
2310
+ parent
2311
+ .command("tigov-set-max-pending-v2 <n>")
2312
+ .description("Set max pending")
2313
+ .action(async (n) => {
2314
+ (await L()).setMaxPendingTigovFeedsPerProfileV2(Number(n));
2315
+ console.log("ok");
2316
+ });
2317
+ parent
2318
+ .command("tigov-set-idle-ms-v2 <n>")
2319
+ .description("Set idle threshold ms")
2320
+ .action(async (n) => {
2321
+ (await L()).setTigovProfileIdleMsV2(Number(n));
2322
+ console.log("ok");
2323
+ });
2324
+ parent
2325
+ .command("tigov-set-stuck-ms-v2 <n>")
2326
+ .description("Set stuck threshold ms")
2327
+ .action(async (n) => {
2328
+ (await L()).setTigovFeedStuckMsV2(Number(n));
2329
+ console.log("ok");
2330
+ });
2331
+ parent
2332
+ .command("tigov-register-v2 <id> <owner>")
2333
+ .description("Register V2 profile")
2334
+ .option("--source <v>", "source")
2335
+ .action(async (id, owner, o) => {
2336
+ const m = await L();
2337
+ console.log(
2338
+ JSON.stringify(
2339
+ m.registerTigovProfileV2({ id, owner, source: o.source }),
2340
+ null,
2341
+ 2,
2342
+ ),
2343
+ );
2344
+ });
2345
+ parent
2346
+ .command("tigov-activate-v2 <id>")
2347
+ .description("Activate profile")
2348
+ .action(async (id) => {
2349
+ console.log(
2350
+ JSON.stringify((await L()).activateTigovProfileV2(id), null, 2),
2351
+ );
2352
+ });
2353
+ parent
2354
+ .command("tigov-stale-v2 <id>")
2355
+ .description("Stale profile")
2356
+ .action(async (id) => {
2357
+ console.log(JSON.stringify((await L()).staleTigovProfileV2(id), null, 2));
2358
+ });
2359
+ parent
2360
+ .command("tigov-archive-v2 <id>")
2361
+ .description("Archive profile")
2362
+ .action(async (id) => {
2363
+ console.log(
2364
+ JSON.stringify((await L()).archiveTigovProfileV2(id), null, 2),
2365
+ );
2366
+ });
2367
+ parent
2368
+ .command("tigov-touch-v2 <id>")
2369
+ .description("Touch profile")
2370
+ .action(async (id) => {
2371
+ console.log(JSON.stringify((await L()).touchTigovProfileV2(id), null, 2));
2372
+ });
2373
+ parent
2374
+ .command("tigov-get-v2 <id>")
2375
+ .description("Get profile")
2376
+ .action(async (id) => {
2377
+ console.log(JSON.stringify((await L()).getTigovProfileV2(id), null, 2));
2378
+ });
2379
+ parent
2380
+ .command("tigov-list-v2")
2381
+ .description("List profiles")
2382
+ .action(async () => {
2383
+ console.log(JSON.stringify((await L()).listTigovProfilesV2(), null, 2));
2384
+ });
2385
+ parent
2386
+ .command("tigov-create-feed-v2 <id> <profileId>")
2387
+ .description("Create feed")
2388
+ .option("--indicator <v>", "indicator")
2389
+ .action(async (id, profileId, o) => {
2390
+ const m = await L();
2391
+ console.log(
2392
+ JSON.stringify(
2393
+ m.createTigovFeedV2({ id, profileId, indicator: o.indicator }),
2394
+ null,
2395
+ 2,
2396
+ ),
2397
+ );
2398
+ });
2399
+ parent
2400
+ .command("tigov-ingesting-feed-v2 <id>")
2401
+ .description("Mark feed as ingesting")
2402
+ .action(async (id) => {
2403
+ console.log(
2404
+ JSON.stringify((await L()).ingestingTigovFeedV2(id), null, 2),
2405
+ );
2406
+ });
2407
+ parent
2408
+ .command("tigov-complete-feed-v2 <id>")
2409
+ .description("Complete feed")
2410
+ .action(async (id) => {
2411
+ console.log(JSON.stringify((await L()).completeFeedTigovV2(id), null, 2));
2412
+ });
2413
+ parent
2414
+ .command("tigov-fail-feed-v2 <id> [reason]")
2415
+ .description("Fail feed")
2416
+ .action(async (id, reason) => {
2417
+ console.log(
2418
+ JSON.stringify((await L()).failTigovFeedV2(id, reason), null, 2),
2419
+ );
2420
+ });
2421
+ parent
2422
+ .command("tigov-cancel-feed-v2 <id> [reason]")
2423
+ .description("Cancel feed")
2424
+ .action(async (id, reason) => {
2425
+ console.log(
2426
+ JSON.stringify((await L()).cancelTigovFeedV2(id, reason), null, 2),
2427
+ );
2428
+ });
2429
+ parent
2430
+ .command("tigov-get-feed-v2 <id>")
2431
+ .description("Get feed")
2432
+ .action(async (id) => {
2433
+ console.log(JSON.stringify((await L()).getTigovFeedV2(id), null, 2));
2434
+ });
2435
+ parent
2436
+ .command("tigov-list-feeds-v2")
2437
+ .description("List feeds")
2438
+ .action(async () => {
2439
+ console.log(JSON.stringify((await L()).listTigovFeedsV2(), null, 2));
2440
+ });
2441
+ parent
2442
+ .command("tigov-auto-stale-idle-v2")
2443
+ .description("Auto-stale idle")
2444
+ .action(async () => {
2445
+ console.log(
2446
+ JSON.stringify((await L()).autoStaleIdleTigovProfilesV2(), null, 2),
2447
+ );
2448
+ });
2449
+ parent
2450
+ .command("tigov-auto-fail-stuck-v2")
2451
+ .description("Auto-fail stuck feeds")
2452
+ .action(async () => {
2453
+ console.log(
2454
+ JSON.stringify((await L()).autoFailStuckTigovFeedsV2(), null, 2),
2455
+ );
2456
+ });
2457
+ parent
2458
+ .command("tigov-gov-stats-v2")
2459
+ .description("V2 gov stats")
2460
+ .action(async () => {
2461
+ console.log(
2462
+ JSON.stringify((await L()).getThreatIntelGovStatsV2(), null, 2),
2463
+ );
2464
+ });
2465
+ }
2466
+
2467
+ // === Iter24 V2 governance overlay ===
2468
+ export function registerUebgovV2Commands(program) {
2469
+ const parent = program.commands.find((c) => c.name() === "compliance");
2470
+ if (!parent) return;
2471
+ const L = async () => await import("../lib/ueba.js");
2472
+ parent
2473
+ .command("uebgov-enums-v2")
2474
+ .description("Show V2 enums")
2475
+ .action(async () => {
2476
+ const m = await L();
2477
+ console.log(
2478
+ JSON.stringify(
2479
+ {
2480
+ profileMaturity: m.UEBGOV_PROFILE_MATURITY_V2,
2481
+ alertLifecycle: m.UEBGOV_ALERT_LIFECYCLE_V2,
2482
+ },
2483
+ null,
2484
+ 2,
2485
+ ),
2486
+ );
2487
+ });
2488
+ parent
2489
+ .command("uebgov-config-v2")
2490
+ .description("Show V2 config")
2491
+ .action(async () => {
2492
+ const m = await L();
2493
+ console.log(
2494
+ JSON.stringify(
2495
+ {
2496
+ maxActive: m.getMaxActiveUebgovProfilesPerOwnerV2(),
2497
+ maxPending: m.getMaxPendingUebgovAlertsPerProfileV2(),
2498
+ idleMs: m.getUebgovProfileIdleMsV2(),
2499
+ stuckMs: m.getUebgovAlertStuckMsV2(),
2500
+ },
2501
+ null,
2502
+ 2,
2503
+ ),
2504
+ );
2505
+ });
2506
+ parent
2507
+ .command("uebgov-set-max-active-v2 <n>")
2508
+ .description("Set max active")
2509
+ .action(async (n) => {
2510
+ (await L()).setMaxActiveUebgovProfilesPerOwnerV2(Number(n));
2511
+ console.log("ok");
2512
+ });
2513
+ parent
2514
+ .command("uebgov-set-max-pending-v2 <n>")
2515
+ .description("Set max pending")
2516
+ .action(async (n) => {
2517
+ (await L()).setMaxPendingUebgovAlertsPerProfileV2(Number(n));
2518
+ console.log("ok");
2519
+ });
2520
+ parent
2521
+ .command("uebgov-set-idle-ms-v2 <n>")
2522
+ .description("Set idle threshold ms")
2523
+ .action(async (n) => {
2524
+ (await L()).setUebgovProfileIdleMsV2(Number(n));
2525
+ console.log("ok");
2526
+ });
2527
+ parent
2528
+ .command("uebgov-set-stuck-ms-v2 <n>")
2529
+ .description("Set stuck threshold ms")
2530
+ .action(async (n) => {
2531
+ (await L()).setUebgovAlertStuckMsV2(Number(n));
2532
+ console.log("ok");
2533
+ });
2534
+ parent
2535
+ .command("uebgov-register-v2 <id> <owner>")
2536
+ .description("Register V2 profile")
2537
+ .option("--entity <v>", "entity")
2538
+ .action(async (id, owner, o) => {
2539
+ const m = await L();
2540
+ console.log(
2541
+ JSON.stringify(
2542
+ m.registerUebgovProfileV2({ id, owner, entity: o.entity }),
2543
+ null,
2544
+ 2,
2545
+ ),
2546
+ );
2547
+ });
2548
+ parent
2549
+ .command("uebgov-activate-v2 <id>")
2550
+ .description("Activate profile")
2551
+ .action(async (id) => {
2552
+ console.log(
2553
+ JSON.stringify((await L()).activateUebgovProfileV2(id), null, 2),
2554
+ );
2555
+ });
2556
+ parent
2557
+ .command("uebgov-suppress-v2 <id>")
2558
+ .description("Suppress profile")
2559
+ .action(async (id) => {
2560
+ console.log(
2561
+ JSON.stringify((await L()).suppressUebgovProfileV2(id), null, 2),
2562
+ );
2563
+ });
2564
+ parent
2565
+ .command("uebgov-archive-v2 <id>")
2566
+ .description("Archive profile")
2567
+ .action(async (id) => {
2568
+ console.log(
2569
+ JSON.stringify((await L()).archiveUebgovProfileV2(id), null, 2),
2570
+ );
2571
+ });
2572
+ parent
2573
+ .command("uebgov-touch-v2 <id>")
2574
+ .description("Touch profile")
2575
+ .action(async (id) => {
2576
+ console.log(
2577
+ JSON.stringify((await L()).touchUebgovProfileV2(id), null, 2),
2578
+ );
2579
+ });
2580
+ parent
2581
+ .command("uebgov-get-v2 <id>")
2582
+ .description("Get profile")
2583
+ .action(async (id) => {
2584
+ console.log(JSON.stringify((await L()).getUebgovProfileV2(id), null, 2));
2585
+ });
2586
+ parent
2587
+ .command("uebgov-list-v2")
2588
+ .description("List profiles")
2589
+ .action(async () => {
2590
+ console.log(JSON.stringify((await L()).listUebgovProfilesV2(), null, 2));
2591
+ });
2592
+ parent
2593
+ .command("uebgov-create-alert-v2 <id> <profileId>")
2594
+ .description("Create alert")
2595
+ .option("--behavior <v>", "behavior")
2596
+ .action(async (id, profileId, o) => {
2597
+ const m = await L();
2598
+ console.log(
2599
+ JSON.stringify(
2600
+ m.createUebgovAlertV2({ id, profileId, behavior: o.behavior }),
2601
+ null,
2602
+ 2,
2603
+ ),
2604
+ );
2605
+ });
2606
+ parent
2607
+ .command("uebgov-analyzing-alert-v2 <id>")
2608
+ .description("Mark alert as analyzing")
2609
+ .action(async (id) => {
2610
+ console.log(
2611
+ JSON.stringify((await L()).analyzingUebgovAlertV2(id), null, 2),
2612
+ );
2613
+ });
2614
+ parent
2615
+ .command("uebgov-complete-alert-v2 <id>")
2616
+ .description("Complete alert")
2617
+ .action(async (id) => {
2618
+ console.log(
2619
+ JSON.stringify((await L()).completeAlertUebgovV2(id), null, 2),
2620
+ );
2621
+ });
2622
+ parent
2623
+ .command("uebgov-fail-alert-v2 <id> [reason]")
2624
+ .description("Fail alert")
2625
+ .action(async (id, reason) => {
2626
+ console.log(
2627
+ JSON.stringify((await L()).failUebgovAlertV2(id, reason), null, 2),
2628
+ );
2629
+ });
2630
+ parent
2631
+ .command("uebgov-cancel-alert-v2 <id> [reason]")
2632
+ .description("Cancel alert")
2633
+ .action(async (id, reason) => {
2634
+ console.log(
2635
+ JSON.stringify((await L()).cancelUebgovAlertV2(id, reason), null, 2),
2636
+ );
2637
+ });
2638
+ parent
2639
+ .command("uebgov-get-alert-v2 <id>")
2640
+ .description("Get alert")
2641
+ .action(async (id) => {
2642
+ console.log(JSON.stringify((await L()).getUebgovAlertV2(id), null, 2));
2643
+ });
2644
+ parent
2645
+ .command("uebgov-list-alerts-v2")
2646
+ .description("List alerts")
2647
+ .action(async () => {
2648
+ console.log(JSON.stringify((await L()).listUebgovAlertsV2(), null, 2));
2649
+ });
2650
+ parent
2651
+ .command("uebgov-auto-suppress-idle-v2")
2652
+ .description("Auto-suppress idle")
2653
+ .action(async () => {
2654
+ console.log(
2655
+ JSON.stringify((await L()).autoSuppressIdleUebgovProfilesV2(), null, 2),
2656
+ );
2657
+ });
2658
+ parent
2659
+ .command("uebgov-auto-fail-stuck-v2")
2660
+ .description("Auto-fail stuck alerts")
2661
+ .action(async () => {
2662
+ console.log(
2663
+ JSON.stringify((await L()).autoFailStuckUebgovAlertsV2(), null, 2),
2664
+ );
2665
+ });
2666
+ parent
2667
+ .command("uebgov-gov-stats-v2")
2668
+ .description("V2 gov stats")
2669
+ .action(async () => {
2670
+ console.log(JSON.stringify((await L()).getUebaGovStatsV2(), null, 2));
2671
+ });
1882
2672
  }