chainlesschain 0.145.0 → 0.156.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/README.md +52 -3
- package/package.json +1 -1
- package/src/commands/a2a.js +201 -0
- package/src/commands/activitypub.js +207 -0
- package/src/commands/agent-network.js +217 -0
- package/src/commands/agent.js +1250 -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/chat.js +605 -0
- package/src/commands/cli-anything.js +426 -0
- package/src/commands/codegen.js +207 -0
- package/src/commands/collab.js +211 -0
- package/src/commands/compliance.js +822 -0
- package/src/commands/config.js +213 -0
- package/src/commands/cowork.js +1666 -0
- package/src/commands/crosschain.js +203 -0
- package/src/commands/dao.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/economy.js +199 -0
- package/src/commands/encrypt.js +201 -0
- package/src/commands/evolution.js +199 -0
- package/src/commands/evomap.js +830 -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/hmemory.js +203 -0
- package/src/commands/hook.js +209 -0
- package/src/commands/import.js +209 -0
- package/src/commands/inference.js +207 -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/kg.js +195 -0
- package/src/commands/llm.js +426 -0
- package/src/commands/matrix.js +207 -0
- package/src/commands/mcp.js +217 -0
- package/src/commands/memory.js +412 -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/orchestrate.js +406 -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/pipeline.js +199 -0
- package/src/commands/planmode.js +426 -0
- package/src/commands/plugin-ecosystem.js +209 -0
- package/src/commands/plugin.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/services.js +207 -0
- package/src/commands/session.js +209 -0
- package/src/commands/setup.js +205 -0
- package/src/commands/skill.js +414 -0
- package/src/commands/social.js +201 -0
- package/src/commands/sso.js +209 -0
- package/src/commands/start.js +209 -0
- package/src/commands/stream.js +213 -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/ui.js +225 -0
- package/src/commands/wallet.js +209 -0
- package/src/commands/workflow.js +412 -0
- package/src/index.js +252 -0
- package/src/lib/a2a-protocol.js +332 -0
- package/src/lib/activitypub-bridge.js +334 -0
- package/src/lib/agent-coordinator.js +334 -0
- package/src/lib/agent-economy.js +334 -0
- package/src/lib/agent-network.js +341 -0
- package/src/lib/agent-router.js +333 -0
- package/src/lib/aiops.js +346 -0
- package/src/lib/automation-engine.js +335 -0
- package/src/lib/autonomous-agent.js +332 -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/chat-core.js +335 -0
- package/src/lib/cli-anything-bridge.js +341 -0
- package/src/lib/cli-context-engineering.js +351 -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/compliance-manager.js +334 -0
- package/src/lib/content-recommendation.js +351 -0
- package/src/lib/cowork-adapter.js +336 -0
- package/src/lib/cowork-evomap-adapter.js +341 -0
- package/src/lib/cowork-mcp-tools.js +341 -0
- package/src/lib/cowork-observe-html.js +341 -0
- package/src/lib/cowork-observe.js +341 -0
- package/src/lib/cowork-share.js +338 -0
- package/src/lib/cowork-task-templates.js +342 -1
- package/src/lib/cowork-template-marketplace.js +340 -0
- package/src/lib/cross-chain.js +339 -0
- package/src/lib/crypto-manager.js +334 -0
- package/src/lib/dao-governance.js +339 -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/downloader.js +334 -0
- package/src/lib/evolution-system.js +334 -0
- package/src/lib/evomap-client.js +342 -0
- package/src/lib/evomap-federation.js +338 -0
- package/src/lib/evomap-governance.js +334 -0
- package/src/lib/evomap-manager.js +330 -0
- package/src/lib/execution-backend.js +330 -0
- package/src/lib/federation-hardening.js +340 -0
- package/src/lib/hashline.js +338 -0
- package/src/lib/hierarchical-memory.js +334 -0
- package/src/lib/hook-manager.js +341 -0
- package/src/lib/inference-network.js +341 -0
- package/src/lib/instinct-manager.js +346 -0
- package/src/lib/interaction-adapter.js +330 -0
- package/src/lib/interactive-planner.js +354 -0
- package/src/lib/ipfs-storage.js +334 -0
- package/src/lib/knowledge-exporter.js +341 -0
- package/src/lib/knowledge-graph.js +331 -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/pipeline-orchestrator.js +332 -0
- package/src/lib/plan-mode.js +336 -0
- package/src/lib/plugin-autodiscovery.js +334 -0
- package/src/lib/plugin-ecosystem.js +346 -0
- package/src/lib/pqc-manager.js +346 -0
- package/src/lib/process-manager.js +336 -0
- package/src/lib/protocol-fusion.js +338 -0
- package/src/lib/provider-options.js +346 -0
- package/src/lib/provider-stream.js +348 -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/service-manager.js +337 -0
- package/src/lib/session-core-singletons.js +341 -0
- package/src/lib/session-manager.js +334 -0
- package/src/lib/skill-loader.js +334 -0
- package/src/lib/skill-mcp.js +336 -0
- package/src/lib/social-manager.js +330 -0
- package/src/lib/sso-manager.js +340 -0
- package/src/lib/stix-parser.js +346 -0
- package/src/lib/sub-agent-context.js +343 -0
- package/src/lib/sub-agent-profiles.js +335 -0
- package/src/lib/sub-agent-registry.js +336 -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/todo-manager.js +336 -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/web-ui-server.js +348 -0
- package/src/lib/workflow-engine.js +330 -0
- package/src/lib/workflow-expr.js +346 -0
- package/src/lib/ws-chat-handler.js +337 -0
package/src/commands/note.js
CHANGED
|
@@ -731,3 +731,208 @@ export function registerNoteCommand(program) {
|
|
|
731
731
|
console.log(JSON.stringify(autoDiscardStaleRevisionsV2(), null, 2)),
|
|
732
732
|
);
|
|
733
733
|
}
|
|
734
|
+
|
|
735
|
+
// === Iter23 V2 governance overlay ===
|
|
736
|
+
export function registerNtgovV2Commands(program) {
|
|
737
|
+
const parent = program.commands.find((c) => c.name() === "note");
|
|
738
|
+
if (!parent) return;
|
|
739
|
+
const L = async () => await import("../lib/note-versioning.js");
|
|
740
|
+
parent
|
|
741
|
+
.command("ntgov-enums-v2")
|
|
742
|
+
.description("Show V2 enums")
|
|
743
|
+
.action(async () => {
|
|
744
|
+
const m = await L();
|
|
745
|
+
console.log(
|
|
746
|
+
JSON.stringify(
|
|
747
|
+
{
|
|
748
|
+
profileMaturity: m.NTGOV_PROFILE_MATURITY_V2,
|
|
749
|
+
revisionLifecycle: m.NTGOV_REVISION_LIFECYCLE_V2,
|
|
750
|
+
},
|
|
751
|
+
null,
|
|
752
|
+
2,
|
|
753
|
+
),
|
|
754
|
+
);
|
|
755
|
+
});
|
|
756
|
+
parent
|
|
757
|
+
.command("ntgov-config-v2")
|
|
758
|
+
.description("Show V2 config")
|
|
759
|
+
.action(async () => {
|
|
760
|
+
const m = await L();
|
|
761
|
+
console.log(
|
|
762
|
+
JSON.stringify(
|
|
763
|
+
{
|
|
764
|
+
maxActive: m.getMaxActiveNtgovProfilesPerOwnerV2(),
|
|
765
|
+
maxPending: m.getMaxPendingNtgovRevisionsPerProfileV2(),
|
|
766
|
+
idleMs: m.getNtgovProfileIdleMsV2(),
|
|
767
|
+
stuckMs: m.getNtgovRevisionStuckMsV2(),
|
|
768
|
+
},
|
|
769
|
+
null,
|
|
770
|
+
2,
|
|
771
|
+
),
|
|
772
|
+
);
|
|
773
|
+
});
|
|
774
|
+
parent
|
|
775
|
+
.command("ntgov-set-max-active-v2 <n>")
|
|
776
|
+
.description("Set max active")
|
|
777
|
+
.action(async (n) => {
|
|
778
|
+
(await L()).setMaxActiveNtgovProfilesPerOwnerV2(Number(n));
|
|
779
|
+
console.log("ok");
|
|
780
|
+
});
|
|
781
|
+
parent
|
|
782
|
+
.command("ntgov-set-max-pending-v2 <n>")
|
|
783
|
+
.description("Set max pending")
|
|
784
|
+
.action(async (n) => {
|
|
785
|
+
(await L()).setMaxPendingNtgovRevisionsPerProfileV2(Number(n));
|
|
786
|
+
console.log("ok");
|
|
787
|
+
});
|
|
788
|
+
parent
|
|
789
|
+
.command("ntgov-set-idle-ms-v2 <n>")
|
|
790
|
+
.description("Set idle threshold ms")
|
|
791
|
+
.action(async (n) => {
|
|
792
|
+
(await L()).setNtgovProfileIdleMsV2(Number(n));
|
|
793
|
+
console.log("ok");
|
|
794
|
+
});
|
|
795
|
+
parent
|
|
796
|
+
.command("ntgov-set-stuck-ms-v2 <n>")
|
|
797
|
+
.description("Set stuck threshold ms")
|
|
798
|
+
.action(async (n) => {
|
|
799
|
+
(await L()).setNtgovRevisionStuckMsV2(Number(n));
|
|
800
|
+
console.log("ok");
|
|
801
|
+
});
|
|
802
|
+
parent
|
|
803
|
+
.command("ntgov-register-v2 <id> <owner>")
|
|
804
|
+
.description("Register V2 profile")
|
|
805
|
+
.option("--series <v>", "series")
|
|
806
|
+
.action(async (id, owner, o) => {
|
|
807
|
+
const m = await L();
|
|
808
|
+
console.log(
|
|
809
|
+
JSON.stringify(
|
|
810
|
+
m.registerNtgovProfileV2({ id, owner, series: o.series }),
|
|
811
|
+
null,
|
|
812
|
+
2,
|
|
813
|
+
),
|
|
814
|
+
);
|
|
815
|
+
});
|
|
816
|
+
parent
|
|
817
|
+
.command("ntgov-activate-v2 <id>")
|
|
818
|
+
.description("Activate profile")
|
|
819
|
+
.action(async (id) => {
|
|
820
|
+
console.log(
|
|
821
|
+
JSON.stringify((await L()).activateNtgovProfileV2(id), null, 2),
|
|
822
|
+
);
|
|
823
|
+
});
|
|
824
|
+
parent
|
|
825
|
+
.command("ntgov-stale-v2 <id>")
|
|
826
|
+
.description("Stale profile")
|
|
827
|
+
.action(async (id) => {
|
|
828
|
+
console.log(JSON.stringify((await L()).staleNtgovProfileV2(id), null, 2));
|
|
829
|
+
});
|
|
830
|
+
parent
|
|
831
|
+
.command("ntgov-archive-v2 <id>")
|
|
832
|
+
.description("Archive profile")
|
|
833
|
+
.action(async (id) => {
|
|
834
|
+
console.log(
|
|
835
|
+
JSON.stringify((await L()).archiveNtgovProfileV2(id), null, 2),
|
|
836
|
+
);
|
|
837
|
+
});
|
|
838
|
+
parent
|
|
839
|
+
.command("ntgov-touch-v2 <id>")
|
|
840
|
+
.description("Touch profile")
|
|
841
|
+
.action(async (id) => {
|
|
842
|
+
console.log(JSON.stringify((await L()).touchNtgovProfileV2(id), null, 2));
|
|
843
|
+
});
|
|
844
|
+
parent
|
|
845
|
+
.command("ntgov-get-v2 <id>")
|
|
846
|
+
.description("Get profile")
|
|
847
|
+
.action(async (id) => {
|
|
848
|
+
console.log(JSON.stringify((await L()).getNtgovProfileV2(id), null, 2));
|
|
849
|
+
});
|
|
850
|
+
parent
|
|
851
|
+
.command("ntgov-list-v2")
|
|
852
|
+
.description("List profiles")
|
|
853
|
+
.action(async () => {
|
|
854
|
+
console.log(JSON.stringify((await L()).listNtgovProfilesV2(), null, 2));
|
|
855
|
+
});
|
|
856
|
+
parent
|
|
857
|
+
.command("ntgov-create-revision-v2 <id> <profileId>")
|
|
858
|
+
.description("Create revision")
|
|
859
|
+
.option("--author <v>", "author")
|
|
860
|
+
.action(async (id, profileId, o) => {
|
|
861
|
+
const m = await L();
|
|
862
|
+
console.log(
|
|
863
|
+
JSON.stringify(
|
|
864
|
+
m.createNtgovRevisionV2({ id, profileId, author: o.author }),
|
|
865
|
+
null,
|
|
866
|
+
2,
|
|
867
|
+
),
|
|
868
|
+
);
|
|
869
|
+
});
|
|
870
|
+
parent
|
|
871
|
+
.command("ntgov-reviewing-revision-v2 <id>")
|
|
872
|
+
.description("Mark revision as reviewing")
|
|
873
|
+
.action(async (id) => {
|
|
874
|
+
console.log(
|
|
875
|
+
JSON.stringify((await L()).reviewingNtgovRevisionV2(id), null, 2),
|
|
876
|
+
);
|
|
877
|
+
});
|
|
878
|
+
parent
|
|
879
|
+
.command("ntgov-complete-revision-v2 <id>")
|
|
880
|
+
.description("Merge revision")
|
|
881
|
+
.action(async (id) => {
|
|
882
|
+
console.log(
|
|
883
|
+
JSON.stringify((await L()).completeRevisionNtgovV2(id), null, 2),
|
|
884
|
+
);
|
|
885
|
+
});
|
|
886
|
+
parent
|
|
887
|
+
.command("ntgov-fail-revision-v2 <id> [reason]")
|
|
888
|
+
.description("Fail revision")
|
|
889
|
+
.action(async (id, reason) => {
|
|
890
|
+
console.log(
|
|
891
|
+
JSON.stringify((await L()).failNtgovRevisionV2(id, reason), null, 2),
|
|
892
|
+
);
|
|
893
|
+
});
|
|
894
|
+
parent
|
|
895
|
+
.command("ntgov-cancel-revision-v2 <id> [reason]")
|
|
896
|
+
.description("Cancel revision")
|
|
897
|
+
.action(async (id, reason) => {
|
|
898
|
+
console.log(
|
|
899
|
+
JSON.stringify((await L()).cancelNtgovRevisionV2(id, reason), null, 2),
|
|
900
|
+
);
|
|
901
|
+
});
|
|
902
|
+
parent
|
|
903
|
+
.command("ntgov-get-revision-v2 <id>")
|
|
904
|
+
.description("Get revision")
|
|
905
|
+
.action(async (id) => {
|
|
906
|
+
console.log(JSON.stringify((await L()).getNtgovRevisionV2(id), null, 2));
|
|
907
|
+
});
|
|
908
|
+
parent
|
|
909
|
+
.command("ntgov-list-revisions-v2")
|
|
910
|
+
.description("List revisions")
|
|
911
|
+
.action(async () => {
|
|
912
|
+
console.log(JSON.stringify((await L()).listNtgovRevisionsV2(), null, 2));
|
|
913
|
+
});
|
|
914
|
+
parent
|
|
915
|
+
.command("ntgov-auto-stale-idle-v2")
|
|
916
|
+
.description("Auto-stale idle")
|
|
917
|
+
.action(async () => {
|
|
918
|
+
console.log(
|
|
919
|
+
JSON.stringify((await L()).autoStaleIdleNtgovProfilesV2(), null, 2),
|
|
920
|
+
);
|
|
921
|
+
});
|
|
922
|
+
parent
|
|
923
|
+
.command("ntgov-auto-fail-stuck-v2")
|
|
924
|
+
.description("Auto-fail stuck revisions")
|
|
925
|
+
.action(async () => {
|
|
926
|
+
console.log(
|
|
927
|
+
JSON.stringify((await L()).autoFailStuckNtgovRevisionsV2(), null, 2),
|
|
928
|
+
);
|
|
929
|
+
});
|
|
930
|
+
parent
|
|
931
|
+
.command("ntgov-gov-stats-v2")
|
|
932
|
+
.description("V2 gov stats")
|
|
933
|
+
.action(async () => {
|
|
934
|
+
console.log(
|
|
935
|
+
JSON.stringify((await L()).getNoteVersioningGovStatsV2(), null, 2),
|
|
936
|
+
);
|
|
937
|
+
});
|
|
938
|
+
}
|
package/src/commands/ops.js
CHANGED
|
@@ -760,3 +760,222 @@ export function registerOpsCommand(program) {
|
|
|
760
760
|
|
|
761
761
|
program.addCommand(ops);
|
|
762
762
|
}
|
|
763
|
+
|
|
764
|
+
// === Iter18 V2 governance overlay ===
|
|
765
|
+
export function registerAiopsgovV2Commands(program) {
|
|
766
|
+
const parent = program.commands.find((c) => c.name() === "ops");
|
|
767
|
+
if (!parent) return;
|
|
768
|
+
const L = async () => await import("../lib/aiops.js");
|
|
769
|
+
parent
|
|
770
|
+
.command("aiopsgov-enums-v2")
|
|
771
|
+
.description("Show V2 enums")
|
|
772
|
+
.action(async () => {
|
|
773
|
+
const m = await L();
|
|
774
|
+
console.log(
|
|
775
|
+
JSON.stringify(
|
|
776
|
+
{
|
|
777
|
+
profileMaturity: m.AIOPSGOV_PROFILE_MATURITY_V2,
|
|
778
|
+
incidentLifecycle: m.AIOPSGOV_INCIDENT_LIFECYCLE_V2,
|
|
779
|
+
},
|
|
780
|
+
null,
|
|
781
|
+
2,
|
|
782
|
+
),
|
|
783
|
+
);
|
|
784
|
+
});
|
|
785
|
+
parent
|
|
786
|
+
.command("aiopsgov-config-v2")
|
|
787
|
+
.description("Show V2 config")
|
|
788
|
+
.action(async () => {
|
|
789
|
+
const m = await L();
|
|
790
|
+
console.log(
|
|
791
|
+
JSON.stringify(
|
|
792
|
+
{
|
|
793
|
+
maxActive: m.getMaxActiveAiopsgovProfilesPerOwnerV2(),
|
|
794
|
+
maxPending: m.getMaxPendingAiopsgovIncidentsPerProfileV2(),
|
|
795
|
+
idleMs: m.getAiopsgovProfileIdleMsV2(),
|
|
796
|
+
stuckMs: m.getAiopsgovIncidentStuckMsV2(),
|
|
797
|
+
},
|
|
798
|
+
null,
|
|
799
|
+
2,
|
|
800
|
+
),
|
|
801
|
+
);
|
|
802
|
+
});
|
|
803
|
+
parent
|
|
804
|
+
.command("aiopsgov-set-max-active-v2 <n>")
|
|
805
|
+
.description("Set max active")
|
|
806
|
+
.action(async (n) => {
|
|
807
|
+
(await L()).setMaxActiveAiopsgovProfilesPerOwnerV2(Number(n));
|
|
808
|
+
console.log("ok");
|
|
809
|
+
});
|
|
810
|
+
parent
|
|
811
|
+
.command("aiopsgov-set-max-pending-v2 <n>")
|
|
812
|
+
.description("Set max pending")
|
|
813
|
+
.action(async (n) => {
|
|
814
|
+
(await L()).setMaxPendingAiopsgovIncidentsPerProfileV2(Number(n));
|
|
815
|
+
console.log("ok");
|
|
816
|
+
});
|
|
817
|
+
parent
|
|
818
|
+
.command("aiopsgov-set-idle-ms-v2 <n>")
|
|
819
|
+
.description("Set idle threshold ms")
|
|
820
|
+
.action(async (n) => {
|
|
821
|
+
(await L()).setAiopsgovProfileIdleMsV2(Number(n));
|
|
822
|
+
console.log("ok");
|
|
823
|
+
});
|
|
824
|
+
parent
|
|
825
|
+
.command("aiopsgov-set-stuck-ms-v2 <n>")
|
|
826
|
+
.description("Set stuck threshold ms")
|
|
827
|
+
.action(async (n) => {
|
|
828
|
+
(await L()).setAiopsgovIncidentStuckMsV2(Number(n));
|
|
829
|
+
console.log("ok");
|
|
830
|
+
});
|
|
831
|
+
parent
|
|
832
|
+
.command("aiopsgov-register-v2 <id> <owner>")
|
|
833
|
+
.description("Register V2 profile")
|
|
834
|
+
.option("--mode <v>", "mode")
|
|
835
|
+
.action(async (id, owner, o) => {
|
|
836
|
+
const m = await L();
|
|
837
|
+
console.log(
|
|
838
|
+
JSON.stringify(
|
|
839
|
+
m.registerAiopsgovProfileV2({ id, owner, mode: o.mode }),
|
|
840
|
+
null,
|
|
841
|
+
2,
|
|
842
|
+
),
|
|
843
|
+
);
|
|
844
|
+
});
|
|
845
|
+
parent
|
|
846
|
+
.command("aiopsgov-activate-v2 <id>")
|
|
847
|
+
.description("Activate profile")
|
|
848
|
+
.action(async (id) => {
|
|
849
|
+
console.log(
|
|
850
|
+
JSON.stringify((await L()).activateAiopsgovProfileV2(id), null, 2),
|
|
851
|
+
);
|
|
852
|
+
});
|
|
853
|
+
parent
|
|
854
|
+
.command("aiopsgov-stale-v2 <id>")
|
|
855
|
+
.description("Stale profile")
|
|
856
|
+
.action(async (id) => {
|
|
857
|
+
console.log(
|
|
858
|
+
JSON.stringify((await L()).staleAiopsgovProfileV2(id), null, 2),
|
|
859
|
+
);
|
|
860
|
+
});
|
|
861
|
+
parent
|
|
862
|
+
.command("aiopsgov-archive-v2 <id>")
|
|
863
|
+
.description("Archive profile")
|
|
864
|
+
.action(async (id) => {
|
|
865
|
+
console.log(
|
|
866
|
+
JSON.stringify((await L()).archiveAiopsgovProfileV2(id), null, 2),
|
|
867
|
+
);
|
|
868
|
+
});
|
|
869
|
+
parent
|
|
870
|
+
.command("aiopsgov-touch-v2 <id>")
|
|
871
|
+
.description("Touch profile")
|
|
872
|
+
.action(async (id) => {
|
|
873
|
+
console.log(
|
|
874
|
+
JSON.stringify((await L()).touchAiopsgovProfileV2(id), null, 2),
|
|
875
|
+
);
|
|
876
|
+
});
|
|
877
|
+
parent
|
|
878
|
+
.command("aiopsgov-get-v2 <id>")
|
|
879
|
+
.description("Get profile")
|
|
880
|
+
.action(async (id) => {
|
|
881
|
+
console.log(
|
|
882
|
+
JSON.stringify((await L()).getAiopsgovProfileV2(id), null, 2),
|
|
883
|
+
);
|
|
884
|
+
});
|
|
885
|
+
parent
|
|
886
|
+
.command("aiopsgov-list-v2")
|
|
887
|
+
.description("List profiles")
|
|
888
|
+
.action(async () => {
|
|
889
|
+
console.log(
|
|
890
|
+
JSON.stringify((await L()).listAiopsgovProfilesV2(), null, 2),
|
|
891
|
+
);
|
|
892
|
+
});
|
|
893
|
+
parent
|
|
894
|
+
.command("aiopsgov-create-incident-v2 <id> <profileId>")
|
|
895
|
+
.description("Create incident")
|
|
896
|
+
.option("--summary <v>", "summary")
|
|
897
|
+
.action(async (id, profileId, o) => {
|
|
898
|
+
const m = await L();
|
|
899
|
+
console.log(
|
|
900
|
+
JSON.stringify(
|
|
901
|
+
m.createAiopsgovIncidentV2({ id, profileId, summary: o.summary }),
|
|
902
|
+
null,
|
|
903
|
+
2,
|
|
904
|
+
),
|
|
905
|
+
);
|
|
906
|
+
});
|
|
907
|
+
parent
|
|
908
|
+
.command("aiopsgov-triaging-incident-v2 <id>")
|
|
909
|
+
.description("Mark incident as triaging")
|
|
910
|
+
.action(async (id) => {
|
|
911
|
+
console.log(
|
|
912
|
+
JSON.stringify((await L()).triagingAiopsgovIncidentV2(id), null, 2),
|
|
913
|
+
);
|
|
914
|
+
});
|
|
915
|
+
parent
|
|
916
|
+
.command("aiopsgov-complete-incident-v2 <id>")
|
|
917
|
+
.description("Complete incident")
|
|
918
|
+
.action(async (id) => {
|
|
919
|
+
console.log(
|
|
920
|
+
JSON.stringify((await L()).completeIncidentAiopsgovV2(id), null, 2),
|
|
921
|
+
);
|
|
922
|
+
});
|
|
923
|
+
parent
|
|
924
|
+
.command("aiopsgov-fail-incident-v2 <id> [reason]")
|
|
925
|
+
.description("Fail incident")
|
|
926
|
+
.action(async (id, reason) => {
|
|
927
|
+
console.log(
|
|
928
|
+
JSON.stringify((await L()).failAiopsgovIncidentV2(id, reason), null, 2),
|
|
929
|
+
);
|
|
930
|
+
});
|
|
931
|
+
parent
|
|
932
|
+
.command("aiopsgov-cancel-incident-v2 <id> [reason]")
|
|
933
|
+
.description("Cancel incident")
|
|
934
|
+
.action(async (id, reason) => {
|
|
935
|
+
console.log(
|
|
936
|
+
JSON.stringify(
|
|
937
|
+
(await L()).cancelAiopsgovIncidentV2(id, reason),
|
|
938
|
+
null,
|
|
939
|
+
2,
|
|
940
|
+
),
|
|
941
|
+
);
|
|
942
|
+
});
|
|
943
|
+
parent
|
|
944
|
+
.command("aiopsgov-get-incident-v2 <id>")
|
|
945
|
+
.description("Get incident")
|
|
946
|
+
.action(async (id) => {
|
|
947
|
+
console.log(
|
|
948
|
+
JSON.stringify((await L()).getAiopsgovIncidentV2(id), null, 2),
|
|
949
|
+
);
|
|
950
|
+
});
|
|
951
|
+
parent
|
|
952
|
+
.command("aiopsgov-list-incidents-v2")
|
|
953
|
+
.description("List incidents")
|
|
954
|
+
.action(async () => {
|
|
955
|
+
console.log(
|
|
956
|
+
JSON.stringify((await L()).listAiopsgovIncidentsV2(), null, 2),
|
|
957
|
+
);
|
|
958
|
+
});
|
|
959
|
+
parent
|
|
960
|
+
.command("aiopsgov-auto-stale-idle-v2")
|
|
961
|
+
.description("Auto-stale idle")
|
|
962
|
+
.action(async () => {
|
|
963
|
+
console.log(
|
|
964
|
+
JSON.stringify((await L()).autoStaleIdleAiopsgovProfilesV2(), null, 2),
|
|
965
|
+
);
|
|
966
|
+
});
|
|
967
|
+
parent
|
|
968
|
+
.command("aiopsgov-auto-fail-stuck-v2")
|
|
969
|
+
.description("Auto-fail stuck incidents")
|
|
970
|
+
.action(async () => {
|
|
971
|
+
console.log(
|
|
972
|
+
JSON.stringify((await L()).autoFailStuckAiopsgovIncidentsV2(), null, 2),
|
|
973
|
+
);
|
|
974
|
+
});
|
|
975
|
+
parent
|
|
976
|
+
.command("aiopsgov-gov-stats-v2")
|
|
977
|
+
.description("V2 gov stats")
|
|
978
|
+
.action(async () => {
|
|
979
|
+
console.log(JSON.stringify((await L()).getAiopsGovStatsV2(), null, 2));
|
|
980
|
+
});
|
|
981
|
+
}
|