chainlesschain 0.145.0 → 0.152.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/activitypub.js +207 -0
- package/src/commands/agent-network.js +217 -0
- package/src/commands/automation.js +201 -0
- package/src/commands/bi.js +203 -0
- package/src/commands/browse.js +213 -0
- package/src/commands/codegen.js +207 -0
- package/src/commands/collab.js +211 -0
- package/src/commands/compliance.js +410 -0
- package/src/commands/cowork.js +203 -0
- package/src/commands/dbevo.js +227 -0
- package/src/commands/dev.js +207 -0
- package/src/commands/did-v2.js +217 -0
- package/src/commands/did.js +221 -0
- package/src/commands/dlp.js +213 -0
- package/src/commands/evomap.js +205 -0
- package/src/commands/export.js +213 -0
- package/src/commands/federation.js +209 -0
- package/src/commands/fusion.js +205 -0
- package/src/commands/governance.js +209 -0
- package/src/commands/hook.js +209 -0
- package/src/commands/import.js +209 -0
- package/src/commands/infra.js +203 -0
- package/src/commands/instinct.js +209 -0
- package/src/commands/ipfs.js +207 -0
- package/src/commands/llm.js +217 -0
- package/src/commands/matrix.js +207 -0
- package/src/commands/mcp.js +217 -0
- package/src/commands/memory.js +209 -0
- package/src/commands/multimodal.js +203 -0
- package/src/commands/nlprog.js +225 -0
- package/src/commands/nostr.js +209 -0
- package/src/commands/note.js +205 -0
- package/src/commands/ops.js +219 -0
- package/src/commands/org.js +209 -0
- package/src/commands/p2p.js +209 -0
- package/src/commands/perception.js +209 -0
- package/src/commands/permmem.js +203 -0
- package/src/commands/plugin-ecosystem.js +209 -0
- package/src/commands/pqc.js +213 -0
- package/src/commands/quantization.js +207 -0
- package/src/commands/rcache.js +205 -0
- package/src/commands/recommend.js +233 -0
- package/src/commands/runtime.js +205 -0
- package/src/commands/scim.js +209 -0
- package/src/commands/session.js +209 -0
- package/src/commands/skill.js +207 -0
- package/src/commands/social.js +201 -0
- package/src/commands/sso.js +209 -0
- package/src/commands/sync.js +209 -0
- package/src/commands/tech.js +209 -0
- package/src/commands/tenant.js +217 -0
- package/src/commands/tokens.js +209 -0
- package/src/commands/trust.js +217 -0
- package/src/commands/wallet.js +209 -0
- package/src/commands/workflow.js +203 -0
- package/src/index.js +140 -0
- package/src/lib/activitypub-bridge.js +334 -0
- package/src/lib/agent-network.js +341 -0
- package/src/lib/aiops.js +346 -0
- package/src/lib/automation-engine.js +335 -0
- package/src/lib/autonomous-developer.js +332 -0
- package/src/lib/bi-engine.js +333 -0
- package/src/lib/browser-automation.js +334 -0
- package/src/lib/code-agent.js +339 -0
- package/src/lib/collaboration-governance.js +334 -0
- package/src/lib/community-governance.js +346 -0
- package/src/lib/content-recommendation.js +351 -0
- package/src/lib/cowork-share.js +338 -0
- package/src/lib/dbevo.js +351 -0
- package/src/lib/decentral-infra.js +330 -0
- package/src/lib/did-manager.js +341 -0
- package/src/lib/did-v2-manager.js +341 -0
- package/src/lib/dlp-engine.js +339 -0
- package/src/lib/evomap-governance.js +334 -0
- package/src/lib/federation-hardening.js +340 -0
- package/src/lib/hook-manager.js +341 -0
- package/src/lib/instinct-manager.js +346 -0
- package/src/lib/ipfs-storage.js +334 -0
- package/src/lib/knowledge-exporter.js +341 -0
- package/src/lib/knowledge-importer.js +341 -0
- package/src/lib/llm-providers.js +346 -0
- package/src/lib/matrix-bridge.js +339 -0
- package/src/lib/mcp-registry.js +346 -0
- package/src/lib/memory-manager.js +336 -0
- package/src/lib/multimodal.js +330 -0
- package/src/lib/nl-programming.js +341 -0
- package/src/lib/nostr-bridge.js +336 -0
- package/src/lib/note-versioning.js +339 -0
- package/src/lib/org-manager.js +336 -0
- package/src/lib/p2p-manager.js +341 -0
- package/src/lib/perception.js +346 -0
- package/src/lib/permanent-memory.js +327 -0
- package/src/lib/plugin-ecosystem.js +346 -0
- package/src/lib/pqc-manager.js +346 -0
- package/src/lib/protocol-fusion.js +338 -0
- package/src/lib/quantization.js +337 -0
- package/src/lib/response-cache.js +333 -0
- package/src/lib/scim-manager.js +346 -0
- package/src/lib/session-manager.js +334 -0
- package/src/lib/skill-loader.js +334 -0
- package/src/lib/social-manager.js +330 -0
- package/src/lib/sso-manager.js +340 -0
- package/src/lib/sync-manager.js +336 -0
- package/src/lib/tech-learning-engine.js +341 -0
- package/src/lib/tenant-saas.js +341 -0
- package/src/lib/threat-intel.js +330 -0
- package/src/lib/token-tracker.js +336 -0
- package/src/lib/trust-security.js +343 -0
- package/src/lib/ueba.js +340 -0
- package/src/lib/universal-runtime.js +330 -0
- package/src/lib/wallet-manager.js +336 -0
- package/src/lib/workflow-engine.js +330 -0
package/src/commands/collab.js
CHANGED
|
@@ -821,3 +821,214 @@ export function registerCollabCommand(program) {
|
|
|
821
821
|
console.log(JSON.stringify(autoWithdrawStuckProposalsV2(), null, 2));
|
|
822
822
|
});
|
|
823
823
|
}
|
|
824
|
+
|
|
825
|
+
// === Iter19 V2 governance overlay ===
|
|
826
|
+
export function registerCogovV2Commands(program) {
|
|
827
|
+
const parent = program.commands.find((c) => c.name() === "collab");
|
|
828
|
+
if (!parent) return;
|
|
829
|
+
const L = async () => await import("../lib/collaboration-governance.js");
|
|
830
|
+
parent
|
|
831
|
+
.command("cogov-enums-v2")
|
|
832
|
+
.description("Show V2 enums")
|
|
833
|
+
.action(async () => {
|
|
834
|
+
const m = await L();
|
|
835
|
+
console.log(
|
|
836
|
+
JSON.stringify(
|
|
837
|
+
{
|
|
838
|
+
profileMaturity: m.COGOV_PROFILE_MATURITY_V2,
|
|
839
|
+
decisionLifecycle: m.COGOV_DECISION_LIFECYCLE_V2,
|
|
840
|
+
},
|
|
841
|
+
null,
|
|
842
|
+
2,
|
|
843
|
+
),
|
|
844
|
+
);
|
|
845
|
+
});
|
|
846
|
+
parent
|
|
847
|
+
.command("cogov-config-v2")
|
|
848
|
+
.description("Show V2 config")
|
|
849
|
+
.action(async () => {
|
|
850
|
+
const m = await L();
|
|
851
|
+
console.log(
|
|
852
|
+
JSON.stringify(
|
|
853
|
+
{
|
|
854
|
+
maxActive: m.getMaxActiveCogovProfilesPerOwnerV2(),
|
|
855
|
+
maxPending: m.getMaxPendingCogovDecisionsPerProfileV2(),
|
|
856
|
+
idleMs: m.getCogovProfileIdleMsV2(),
|
|
857
|
+
stuckMs: m.getCogovDecisionStuckMsV2(),
|
|
858
|
+
},
|
|
859
|
+
null,
|
|
860
|
+
2,
|
|
861
|
+
),
|
|
862
|
+
);
|
|
863
|
+
});
|
|
864
|
+
parent
|
|
865
|
+
.command("cogov-set-max-active-v2 <n>")
|
|
866
|
+
.description("Set max active")
|
|
867
|
+
.action(async (n) => {
|
|
868
|
+
(await L()).setMaxActiveCogovProfilesPerOwnerV2(Number(n));
|
|
869
|
+
console.log("ok");
|
|
870
|
+
});
|
|
871
|
+
parent
|
|
872
|
+
.command("cogov-set-max-pending-v2 <n>")
|
|
873
|
+
.description("Set max pending")
|
|
874
|
+
.action(async (n) => {
|
|
875
|
+
(await L()).setMaxPendingCogovDecisionsPerProfileV2(Number(n));
|
|
876
|
+
console.log("ok");
|
|
877
|
+
});
|
|
878
|
+
parent
|
|
879
|
+
.command("cogov-set-idle-ms-v2 <n>")
|
|
880
|
+
.description("Set idle threshold ms")
|
|
881
|
+
.action(async (n) => {
|
|
882
|
+
(await L()).setCogovProfileIdleMsV2(Number(n));
|
|
883
|
+
console.log("ok");
|
|
884
|
+
});
|
|
885
|
+
parent
|
|
886
|
+
.command("cogov-set-stuck-ms-v2 <n>")
|
|
887
|
+
.description("Set stuck threshold ms")
|
|
888
|
+
.action(async (n) => {
|
|
889
|
+
(await L()).setCogovDecisionStuckMsV2(Number(n));
|
|
890
|
+
console.log("ok");
|
|
891
|
+
});
|
|
892
|
+
parent
|
|
893
|
+
.command("cogov-register-v2 <id> <owner>")
|
|
894
|
+
.description("Register V2 profile")
|
|
895
|
+
.option("--scope <v>", "scope")
|
|
896
|
+
.action(async (id, owner, o) => {
|
|
897
|
+
const m = await L();
|
|
898
|
+
console.log(
|
|
899
|
+
JSON.stringify(
|
|
900
|
+
m.registerCogovProfileV2({ id, owner, scope: o.scope }),
|
|
901
|
+
null,
|
|
902
|
+
2,
|
|
903
|
+
),
|
|
904
|
+
);
|
|
905
|
+
});
|
|
906
|
+
parent
|
|
907
|
+
.command("cogov-activate-v2 <id>")
|
|
908
|
+
.description("Activate profile")
|
|
909
|
+
.action(async (id) => {
|
|
910
|
+
console.log(
|
|
911
|
+
JSON.stringify((await L()).activateCogovProfileV2(id), null, 2),
|
|
912
|
+
);
|
|
913
|
+
});
|
|
914
|
+
parent
|
|
915
|
+
.command("cogov-suspend-v2 <id>")
|
|
916
|
+
.description("Suspend profile")
|
|
917
|
+
.action(async (id) => {
|
|
918
|
+
console.log(
|
|
919
|
+
JSON.stringify((await L()).suspendCogovProfileV2(id), null, 2),
|
|
920
|
+
);
|
|
921
|
+
});
|
|
922
|
+
parent
|
|
923
|
+
.command("cogov-archive-v2 <id>")
|
|
924
|
+
.description("Archive profile")
|
|
925
|
+
.action(async (id) => {
|
|
926
|
+
console.log(
|
|
927
|
+
JSON.stringify((await L()).archiveCogovProfileV2(id), null, 2),
|
|
928
|
+
);
|
|
929
|
+
});
|
|
930
|
+
parent
|
|
931
|
+
.command("cogov-touch-v2 <id>")
|
|
932
|
+
.description("Touch profile")
|
|
933
|
+
.action(async (id) => {
|
|
934
|
+
console.log(JSON.stringify((await L()).touchCogovProfileV2(id), null, 2));
|
|
935
|
+
});
|
|
936
|
+
parent
|
|
937
|
+
.command("cogov-get-v2 <id>")
|
|
938
|
+
.description("Get profile")
|
|
939
|
+
.action(async (id) => {
|
|
940
|
+
console.log(JSON.stringify((await L()).getCogovProfileV2(id), null, 2));
|
|
941
|
+
});
|
|
942
|
+
parent
|
|
943
|
+
.command("cogov-list-v2")
|
|
944
|
+
.description("List profiles")
|
|
945
|
+
.action(async () => {
|
|
946
|
+
console.log(JSON.stringify((await L()).listCogovProfilesV2(), null, 2));
|
|
947
|
+
});
|
|
948
|
+
parent
|
|
949
|
+
.command("cogov-create-decision-v2 <id> <profileId>")
|
|
950
|
+
.description("Create decision")
|
|
951
|
+
.option("--topic <v>", "topic")
|
|
952
|
+
.action(async (id, profileId, o) => {
|
|
953
|
+
const m = await L();
|
|
954
|
+
console.log(
|
|
955
|
+
JSON.stringify(
|
|
956
|
+
m.createCogovDecisionV2({ id, profileId, topic: o.topic }),
|
|
957
|
+
null,
|
|
958
|
+
2,
|
|
959
|
+
),
|
|
960
|
+
);
|
|
961
|
+
});
|
|
962
|
+
parent
|
|
963
|
+
.command("cogov-deliberating-decision-v2 <id>")
|
|
964
|
+
.description("Mark decision as deliberating")
|
|
965
|
+
.action(async (id) => {
|
|
966
|
+
console.log(
|
|
967
|
+
JSON.stringify((await L()).deliberatingCogovDecisionV2(id), null, 2),
|
|
968
|
+
);
|
|
969
|
+
});
|
|
970
|
+
parent
|
|
971
|
+
.command("cogov-complete-decision-v2 <id>")
|
|
972
|
+
.description("Complete decision")
|
|
973
|
+
.action(async (id) => {
|
|
974
|
+
console.log(
|
|
975
|
+
JSON.stringify((await L()).completeDecisionCogovV2(id), null, 2),
|
|
976
|
+
);
|
|
977
|
+
});
|
|
978
|
+
parent
|
|
979
|
+
.command("cogov-fail-decision-v2 <id> [reason]")
|
|
980
|
+
.description("Fail decision")
|
|
981
|
+
.action(async (id, reason) => {
|
|
982
|
+
console.log(
|
|
983
|
+
JSON.stringify((await L()).failCogovDecisionV2(id, reason), null, 2),
|
|
984
|
+
);
|
|
985
|
+
});
|
|
986
|
+
parent
|
|
987
|
+
.command("cogov-cancel-decision-v2 <id> [reason]")
|
|
988
|
+
.description("Cancel decision")
|
|
989
|
+
.action(async (id, reason) => {
|
|
990
|
+
console.log(
|
|
991
|
+
JSON.stringify((await L()).cancelCogovDecisionV2(id, reason), null, 2),
|
|
992
|
+
);
|
|
993
|
+
});
|
|
994
|
+
parent
|
|
995
|
+
.command("cogov-get-decision-v2 <id>")
|
|
996
|
+
.description("Get decision")
|
|
997
|
+
.action(async (id) => {
|
|
998
|
+
console.log(JSON.stringify((await L()).getCogovDecisionV2(id), null, 2));
|
|
999
|
+
});
|
|
1000
|
+
parent
|
|
1001
|
+
.command("cogov-list-decisions-v2")
|
|
1002
|
+
.description("List decisions")
|
|
1003
|
+
.action(async () => {
|
|
1004
|
+
console.log(JSON.stringify((await L()).listCogovDecisionsV2(), null, 2));
|
|
1005
|
+
});
|
|
1006
|
+
parent
|
|
1007
|
+
.command("cogov-auto-suspend-idle-v2")
|
|
1008
|
+
.description("Auto-suspend idle")
|
|
1009
|
+
.action(async () => {
|
|
1010
|
+
console.log(
|
|
1011
|
+
JSON.stringify((await L()).autoSuspendIdleCogovProfilesV2(), null, 2),
|
|
1012
|
+
);
|
|
1013
|
+
});
|
|
1014
|
+
parent
|
|
1015
|
+
.command("cogov-auto-fail-stuck-v2")
|
|
1016
|
+
.description("Auto-fail stuck decisions")
|
|
1017
|
+
.action(async () => {
|
|
1018
|
+
console.log(
|
|
1019
|
+
JSON.stringify((await L()).autoFailStuckCogovDecisionsV2(), null, 2),
|
|
1020
|
+
);
|
|
1021
|
+
});
|
|
1022
|
+
parent
|
|
1023
|
+
.command("cogov-gov-stats-v2")
|
|
1024
|
+
.description("V2 gov stats")
|
|
1025
|
+
.action(async () => {
|
|
1026
|
+
console.log(
|
|
1027
|
+
JSON.stringify(
|
|
1028
|
+
(await L()).getCollaborationGovernanceGovStatsV2(),
|
|
1029
|
+
null,
|
|
1030
|
+
2,
|
|
1031
|
+
),
|
|
1032
|
+
);
|
|
1033
|
+
});
|
|
1034
|
+
}
|
|
@@ -2260,3 +2260,413 @@ export function registerCmgrV2Commands(program) {
|
|
|
2260
2260
|
);
|
|
2261
2261
|
});
|
|
2262
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
|
+
});
|
|
2672
|
+
}
|