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/package.json
CHANGED
|
@@ -722,3 +722,210 @@ export function registerActivityPubV2Command(ap) {
|
|
|
722
722
|
console.log(JSON.stringify(getActivityPubBridgeStatsV2(), null, 2));
|
|
723
723
|
});
|
|
724
724
|
}
|
|
725
|
+
|
|
726
|
+
// === Iter21 V2 governance overlay ===
|
|
727
|
+
export function registerApgovV2Commands(program) {
|
|
728
|
+
const parent = program.commands.find((c) => c.name() === "activitypub");
|
|
729
|
+
if (!parent) return;
|
|
730
|
+
const L = async () => await import("../lib/activitypub-bridge.js");
|
|
731
|
+
parent
|
|
732
|
+
.command("apgov-enums-v2")
|
|
733
|
+
.description("Show V2 enums")
|
|
734
|
+
.action(async () => {
|
|
735
|
+
const m = await L();
|
|
736
|
+
console.log(
|
|
737
|
+
JSON.stringify(
|
|
738
|
+
{
|
|
739
|
+
profileMaturity: m.APGOV_PROFILE_MATURITY_V2,
|
|
740
|
+
deliveryLifecycle: m.APGOV_DELIVERY_LIFECYCLE_V2,
|
|
741
|
+
},
|
|
742
|
+
null,
|
|
743
|
+
2,
|
|
744
|
+
),
|
|
745
|
+
);
|
|
746
|
+
});
|
|
747
|
+
parent
|
|
748
|
+
.command("apgov-config-v2")
|
|
749
|
+
.description("Show V2 config")
|
|
750
|
+
.action(async () => {
|
|
751
|
+
const m = await L();
|
|
752
|
+
console.log(
|
|
753
|
+
JSON.stringify(
|
|
754
|
+
{
|
|
755
|
+
maxActive: m.getMaxActiveApgovProfilesPerOwnerV2(),
|
|
756
|
+
maxPending: m.getMaxPendingApgovDeliverysPerProfileV2(),
|
|
757
|
+
idleMs: m.getApgovProfileIdleMsV2(),
|
|
758
|
+
stuckMs: m.getApgovDeliveryStuckMsV2(),
|
|
759
|
+
},
|
|
760
|
+
null,
|
|
761
|
+
2,
|
|
762
|
+
),
|
|
763
|
+
);
|
|
764
|
+
});
|
|
765
|
+
parent
|
|
766
|
+
.command("apgov-set-max-active-v2 <n>")
|
|
767
|
+
.description("Set max active")
|
|
768
|
+
.action(async (n) => {
|
|
769
|
+
(await L()).setMaxActiveApgovProfilesPerOwnerV2(Number(n));
|
|
770
|
+
console.log("ok");
|
|
771
|
+
});
|
|
772
|
+
parent
|
|
773
|
+
.command("apgov-set-max-pending-v2 <n>")
|
|
774
|
+
.description("Set max pending")
|
|
775
|
+
.action(async (n) => {
|
|
776
|
+
(await L()).setMaxPendingApgovDeliverysPerProfileV2(Number(n));
|
|
777
|
+
console.log("ok");
|
|
778
|
+
});
|
|
779
|
+
parent
|
|
780
|
+
.command("apgov-set-idle-ms-v2 <n>")
|
|
781
|
+
.description("Set idle threshold ms")
|
|
782
|
+
.action(async (n) => {
|
|
783
|
+
(await L()).setApgovProfileIdleMsV2(Number(n));
|
|
784
|
+
console.log("ok");
|
|
785
|
+
});
|
|
786
|
+
parent
|
|
787
|
+
.command("apgov-set-stuck-ms-v2 <n>")
|
|
788
|
+
.description("Set stuck threshold ms")
|
|
789
|
+
.action(async (n) => {
|
|
790
|
+
(await L()).setApgovDeliveryStuckMsV2(Number(n));
|
|
791
|
+
console.log("ok");
|
|
792
|
+
});
|
|
793
|
+
parent
|
|
794
|
+
.command("apgov-register-v2 <id> <owner>")
|
|
795
|
+
.description("Register V2 profile")
|
|
796
|
+
.option("--actor <v>", "actor")
|
|
797
|
+
.action(async (id, owner, o) => {
|
|
798
|
+
const m = await L();
|
|
799
|
+
console.log(
|
|
800
|
+
JSON.stringify(
|
|
801
|
+
m.registerApgovProfileV2({ id, owner, actor: o.actor }),
|
|
802
|
+
null,
|
|
803
|
+
2,
|
|
804
|
+
),
|
|
805
|
+
);
|
|
806
|
+
});
|
|
807
|
+
parent
|
|
808
|
+
.command("apgov-activate-v2 <id>")
|
|
809
|
+
.description("Activate profile")
|
|
810
|
+
.action(async (id) => {
|
|
811
|
+
console.log(
|
|
812
|
+
JSON.stringify((await L()).activateApgovProfileV2(id), null, 2),
|
|
813
|
+
);
|
|
814
|
+
});
|
|
815
|
+
parent
|
|
816
|
+
.command("apgov-suspend-v2 <id>")
|
|
817
|
+
.description("Suspend profile")
|
|
818
|
+
.action(async (id) => {
|
|
819
|
+
console.log(
|
|
820
|
+
JSON.stringify((await L()).suspendApgovProfileV2(id), null, 2),
|
|
821
|
+
);
|
|
822
|
+
});
|
|
823
|
+
parent
|
|
824
|
+
.command("apgov-archive-v2 <id>")
|
|
825
|
+
.description("Archive profile")
|
|
826
|
+
.action(async (id) => {
|
|
827
|
+
console.log(
|
|
828
|
+
JSON.stringify((await L()).archiveApgovProfileV2(id), null, 2),
|
|
829
|
+
);
|
|
830
|
+
});
|
|
831
|
+
parent
|
|
832
|
+
.command("apgov-touch-v2 <id>")
|
|
833
|
+
.description("Touch profile")
|
|
834
|
+
.action(async (id) => {
|
|
835
|
+
console.log(JSON.stringify((await L()).touchApgovProfileV2(id), null, 2));
|
|
836
|
+
});
|
|
837
|
+
parent
|
|
838
|
+
.command("apgov-get-v2 <id>")
|
|
839
|
+
.description("Get profile")
|
|
840
|
+
.action(async (id) => {
|
|
841
|
+
console.log(JSON.stringify((await L()).getApgovProfileV2(id), null, 2));
|
|
842
|
+
});
|
|
843
|
+
parent
|
|
844
|
+
.command("apgov-list-v2")
|
|
845
|
+
.description("List profiles")
|
|
846
|
+
.action(async () => {
|
|
847
|
+
console.log(JSON.stringify((await L()).listApgovProfilesV2(), null, 2));
|
|
848
|
+
});
|
|
849
|
+
parent
|
|
850
|
+
.command("apgov-create-delivery-v2 <id> <profileId>")
|
|
851
|
+
.description("Create delivery")
|
|
852
|
+
.option("--inbox <v>", "inbox")
|
|
853
|
+
.action(async (id, profileId, o) => {
|
|
854
|
+
const m = await L();
|
|
855
|
+
console.log(
|
|
856
|
+
JSON.stringify(
|
|
857
|
+
m.createApgovDeliveryV2({ id, profileId, inbox: o.inbox }),
|
|
858
|
+
null,
|
|
859
|
+
2,
|
|
860
|
+
),
|
|
861
|
+
);
|
|
862
|
+
});
|
|
863
|
+
parent
|
|
864
|
+
.command("apgov-delivering-delivery-v2 <id>")
|
|
865
|
+
.description("Mark delivery as delivering")
|
|
866
|
+
.action(async (id) => {
|
|
867
|
+
console.log(
|
|
868
|
+
JSON.stringify((await L()).deliveringApgovDeliveryV2(id), null, 2),
|
|
869
|
+
);
|
|
870
|
+
});
|
|
871
|
+
parent
|
|
872
|
+
.command("apgov-complete-delivery-v2 <id>")
|
|
873
|
+
.description("Complete delivery")
|
|
874
|
+
.action(async (id) => {
|
|
875
|
+
console.log(
|
|
876
|
+
JSON.stringify((await L()).completeDeliveryApgovV2(id), null, 2),
|
|
877
|
+
);
|
|
878
|
+
});
|
|
879
|
+
parent
|
|
880
|
+
.command("apgov-fail-delivery-v2 <id> [reason]")
|
|
881
|
+
.description("Fail delivery")
|
|
882
|
+
.action(async (id, reason) => {
|
|
883
|
+
console.log(
|
|
884
|
+
JSON.stringify((await L()).failApgovDeliveryV2(id, reason), null, 2),
|
|
885
|
+
);
|
|
886
|
+
});
|
|
887
|
+
parent
|
|
888
|
+
.command("apgov-cancel-delivery-v2 <id> [reason]")
|
|
889
|
+
.description("Cancel delivery")
|
|
890
|
+
.action(async (id, reason) => {
|
|
891
|
+
console.log(
|
|
892
|
+
JSON.stringify((await L()).cancelApgovDeliveryV2(id, reason), null, 2),
|
|
893
|
+
);
|
|
894
|
+
});
|
|
895
|
+
parent
|
|
896
|
+
.command("apgov-get-delivery-v2 <id>")
|
|
897
|
+
.description("Get delivery")
|
|
898
|
+
.action(async (id) => {
|
|
899
|
+
console.log(JSON.stringify((await L()).getApgovDeliveryV2(id), null, 2));
|
|
900
|
+
});
|
|
901
|
+
parent
|
|
902
|
+
.command("apgov-list-deliverys-v2")
|
|
903
|
+
.description("List deliverys")
|
|
904
|
+
.action(async () => {
|
|
905
|
+
console.log(JSON.stringify((await L()).listApgovDeliverysV2(), null, 2));
|
|
906
|
+
});
|
|
907
|
+
parent
|
|
908
|
+
.command("apgov-auto-suspend-idle-v2")
|
|
909
|
+
.description("Auto-suspend idle")
|
|
910
|
+
.action(async () => {
|
|
911
|
+
console.log(
|
|
912
|
+
JSON.stringify((await L()).autoSuspendIdleApgovProfilesV2(), null, 2),
|
|
913
|
+
);
|
|
914
|
+
});
|
|
915
|
+
parent
|
|
916
|
+
.command("apgov-auto-fail-stuck-v2")
|
|
917
|
+
.description("Auto-fail stuck deliverys")
|
|
918
|
+
.action(async () => {
|
|
919
|
+
console.log(
|
|
920
|
+
JSON.stringify((await L()).autoFailStuckApgovDeliverysV2(), null, 2),
|
|
921
|
+
);
|
|
922
|
+
});
|
|
923
|
+
parent
|
|
924
|
+
.command("apgov-gov-stats-v2")
|
|
925
|
+
.description("V2 gov stats")
|
|
926
|
+
.action(async () => {
|
|
927
|
+
console.log(
|
|
928
|
+
JSON.stringify((await L()).getActivityPubBridgeGovStatsV2(), null, 2),
|
|
929
|
+
);
|
|
930
|
+
});
|
|
931
|
+
}
|
|
@@ -1036,3 +1036,220 @@ export function registerAgentNetworkCommand(program) {
|
|
|
1036
1036
|
program.addCommand(anet);
|
|
1037
1037
|
return anet;
|
|
1038
1038
|
}
|
|
1039
|
+
|
|
1040
|
+
// === Iter20 V2 governance overlay ===
|
|
1041
|
+
export function registerAnetgovV2Commands(program) {
|
|
1042
|
+
const parent = program.commands.find((c) => c.name() === "agent-network");
|
|
1043
|
+
if (!parent) return;
|
|
1044
|
+
const L = async () => await import("../lib/agent-network.js");
|
|
1045
|
+
parent
|
|
1046
|
+
.command("anetgov-enums-v2")
|
|
1047
|
+
.description("Show V2 enums")
|
|
1048
|
+
.action(async () => {
|
|
1049
|
+
const m = await L();
|
|
1050
|
+
console.log(
|
|
1051
|
+
JSON.stringify(
|
|
1052
|
+
{
|
|
1053
|
+
profileMaturity: m.ANETGOV_PROFILE_MATURITY_V2,
|
|
1054
|
+
dispatchLifecycle: m.ANETGOV_DISPATCH_LIFECYCLE_V2,
|
|
1055
|
+
},
|
|
1056
|
+
null,
|
|
1057
|
+
2,
|
|
1058
|
+
),
|
|
1059
|
+
);
|
|
1060
|
+
});
|
|
1061
|
+
parent
|
|
1062
|
+
.command("anetgov-config-v2")
|
|
1063
|
+
.description("Show V2 config")
|
|
1064
|
+
.action(async () => {
|
|
1065
|
+
const m = await L();
|
|
1066
|
+
console.log(
|
|
1067
|
+
JSON.stringify(
|
|
1068
|
+
{
|
|
1069
|
+
maxActive: m.getMaxActiveAnetgovProfilesPerOwnerV2(),
|
|
1070
|
+
maxPending: m.getMaxPendingAnetgovDispatchsPerProfileV2(),
|
|
1071
|
+
idleMs: m.getAnetgovProfileIdleMsV2(),
|
|
1072
|
+
stuckMs: m.getAnetgovDispatchStuckMsV2(),
|
|
1073
|
+
},
|
|
1074
|
+
null,
|
|
1075
|
+
2,
|
|
1076
|
+
),
|
|
1077
|
+
);
|
|
1078
|
+
});
|
|
1079
|
+
parent
|
|
1080
|
+
.command("anetgov-set-max-active-v2 <n>")
|
|
1081
|
+
.description("Set max active")
|
|
1082
|
+
.action(async (n) => {
|
|
1083
|
+
(await L()).setMaxActiveAnetgovProfilesPerOwnerV2(Number(n));
|
|
1084
|
+
console.log("ok");
|
|
1085
|
+
});
|
|
1086
|
+
parent
|
|
1087
|
+
.command("anetgov-set-max-pending-v2 <n>")
|
|
1088
|
+
.description("Set max pending")
|
|
1089
|
+
.action(async (n) => {
|
|
1090
|
+
(await L()).setMaxPendingAnetgovDispatchsPerProfileV2(Number(n));
|
|
1091
|
+
console.log("ok");
|
|
1092
|
+
});
|
|
1093
|
+
parent
|
|
1094
|
+
.command("anetgov-set-idle-ms-v2 <n>")
|
|
1095
|
+
.description("Set idle threshold ms")
|
|
1096
|
+
.action(async (n) => {
|
|
1097
|
+
(await L()).setAnetgovProfileIdleMsV2(Number(n));
|
|
1098
|
+
console.log("ok");
|
|
1099
|
+
});
|
|
1100
|
+
parent
|
|
1101
|
+
.command("anetgov-set-stuck-ms-v2 <n>")
|
|
1102
|
+
.description("Set stuck threshold ms")
|
|
1103
|
+
.action(async (n) => {
|
|
1104
|
+
(await L()).setAnetgovDispatchStuckMsV2(Number(n));
|
|
1105
|
+
console.log("ok");
|
|
1106
|
+
});
|
|
1107
|
+
parent
|
|
1108
|
+
.command("anetgov-register-v2 <id> <owner>")
|
|
1109
|
+
.description("Register V2 profile")
|
|
1110
|
+
.option("--role <v>", "role")
|
|
1111
|
+
.action(async (id, owner, o) => {
|
|
1112
|
+
const m = await L();
|
|
1113
|
+
console.log(
|
|
1114
|
+
JSON.stringify(
|
|
1115
|
+
m.registerAnetgovProfileV2({ id, owner, role: o.role }),
|
|
1116
|
+
null,
|
|
1117
|
+
2,
|
|
1118
|
+
),
|
|
1119
|
+
);
|
|
1120
|
+
});
|
|
1121
|
+
parent
|
|
1122
|
+
.command("anetgov-activate-v2 <id>")
|
|
1123
|
+
.description("Activate profile")
|
|
1124
|
+
.action(async (id) => {
|
|
1125
|
+
console.log(
|
|
1126
|
+
JSON.stringify((await L()).activateAnetgovProfileV2(id), null, 2),
|
|
1127
|
+
);
|
|
1128
|
+
});
|
|
1129
|
+
parent
|
|
1130
|
+
.command("anetgov-suspend-v2 <id>")
|
|
1131
|
+
.description("Suspend profile")
|
|
1132
|
+
.action(async (id) => {
|
|
1133
|
+
console.log(
|
|
1134
|
+
JSON.stringify((await L()).suspendAnetgovProfileV2(id), null, 2),
|
|
1135
|
+
);
|
|
1136
|
+
});
|
|
1137
|
+
parent
|
|
1138
|
+
.command("anetgov-archive-v2 <id>")
|
|
1139
|
+
.description("Archive profile")
|
|
1140
|
+
.action(async (id) => {
|
|
1141
|
+
console.log(
|
|
1142
|
+
JSON.stringify((await L()).archiveAnetgovProfileV2(id), null, 2),
|
|
1143
|
+
);
|
|
1144
|
+
});
|
|
1145
|
+
parent
|
|
1146
|
+
.command("anetgov-touch-v2 <id>")
|
|
1147
|
+
.description("Touch profile")
|
|
1148
|
+
.action(async (id) => {
|
|
1149
|
+
console.log(
|
|
1150
|
+
JSON.stringify((await L()).touchAnetgovProfileV2(id), null, 2),
|
|
1151
|
+
);
|
|
1152
|
+
});
|
|
1153
|
+
parent
|
|
1154
|
+
.command("anetgov-get-v2 <id>")
|
|
1155
|
+
.description("Get profile")
|
|
1156
|
+
.action(async (id) => {
|
|
1157
|
+
console.log(JSON.stringify((await L()).getAnetgovProfileV2(id), null, 2));
|
|
1158
|
+
});
|
|
1159
|
+
parent
|
|
1160
|
+
.command("anetgov-list-v2")
|
|
1161
|
+
.description("List profiles")
|
|
1162
|
+
.action(async () => {
|
|
1163
|
+
console.log(JSON.stringify((await L()).listAnetgovProfilesV2(), null, 2));
|
|
1164
|
+
});
|
|
1165
|
+
parent
|
|
1166
|
+
.command("anetgov-create-dispatch-v2 <id> <profileId>")
|
|
1167
|
+
.description("Create dispatch")
|
|
1168
|
+
.option("--target <v>", "target")
|
|
1169
|
+
.action(async (id, profileId, o) => {
|
|
1170
|
+
const m = await L();
|
|
1171
|
+
console.log(
|
|
1172
|
+
JSON.stringify(
|
|
1173
|
+
m.createAnetgovDispatchV2({ id, profileId, target: o.target }),
|
|
1174
|
+
null,
|
|
1175
|
+
2,
|
|
1176
|
+
),
|
|
1177
|
+
);
|
|
1178
|
+
});
|
|
1179
|
+
parent
|
|
1180
|
+
.command("anetgov-dispatching-dispatch-v2 <id>")
|
|
1181
|
+
.description("Mark dispatch as dispatching")
|
|
1182
|
+
.action(async (id) => {
|
|
1183
|
+
console.log(
|
|
1184
|
+
JSON.stringify((await L()).dispatchingAnetgovDispatchV2(id), null, 2),
|
|
1185
|
+
);
|
|
1186
|
+
});
|
|
1187
|
+
parent
|
|
1188
|
+
.command("anetgov-complete-dispatch-v2 <id>")
|
|
1189
|
+
.description("Complete dispatch")
|
|
1190
|
+
.action(async (id) => {
|
|
1191
|
+
console.log(
|
|
1192
|
+
JSON.stringify((await L()).completeDispatchAnetgovV2(id), null, 2),
|
|
1193
|
+
);
|
|
1194
|
+
});
|
|
1195
|
+
parent
|
|
1196
|
+
.command("anetgov-fail-dispatch-v2 <id> [reason]")
|
|
1197
|
+
.description("Fail dispatch")
|
|
1198
|
+
.action(async (id, reason) => {
|
|
1199
|
+
console.log(
|
|
1200
|
+
JSON.stringify((await L()).failAnetgovDispatchV2(id, reason), null, 2),
|
|
1201
|
+
);
|
|
1202
|
+
});
|
|
1203
|
+
parent
|
|
1204
|
+
.command("anetgov-cancel-dispatch-v2 <id> [reason]")
|
|
1205
|
+
.description("Cancel dispatch")
|
|
1206
|
+
.action(async (id, reason) => {
|
|
1207
|
+
console.log(
|
|
1208
|
+
JSON.stringify(
|
|
1209
|
+
(await L()).cancelAnetgovDispatchV2(id, reason),
|
|
1210
|
+
null,
|
|
1211
|
+
2,
|
|
1212
|
+
),
|
|
1213
|
+
);
|
|
1214
|
+
});
|
|
1215
|
+
parent
|
|
1216
|
+
.command("anetgov-get-dispatch-v2 <id>")
|
|
1217
|
+
.description("Get dispatch")
|
|
1218
|
+
.action(async (id) => {
|
|
1219
|
+
console.log(
|
|
1220
|
+
JSON.stringify((await L()).getAnetgovDispatchV2(id), null, 2),
|
|
1221
|
+
);
|
|
1222
|
+
});
|
|
1223
|
+
parent
|
|
1224
|
+
.command("anetgov-list-dispatchs-v2")
|
|
1225
|
+
.description("List dispatchs")
|
|
1226
|
+
.action(async () => {
|
|
1227
|
+
console.log(
|
|
1228
|
+
JSON.stringify((await L()).listAnetgovDispatchsV2(), null, 2),
|
|
1229
|
+
);
|
|
1230
|
+
});
|
|
1231
|
+
parent
|
|
1232
|
+
.command("anetgov-auto-suspend-idle-v2")
|
|
1233
|
+
.description("Auto-suspend idle")
|
|
1234
|
+
.action(async () => {
|
|
1235
|
+
console.log(
|
|
1236
|
+
JSON.stringify((await L()).autoSuspendIdleAnetgovProfilesV2(), null, 2),
|
|
1237
|
+
);
|
|
1238
|
+
});
|
|
1239
|
+
parent
|
|
1240
|
+
.command("anetgov-auto-fail-stuck-v2")
|
|
1241
|
+
.description("Auto-fail stuck dispatchs")
|
|
1242
|
+
.action(async () => {
|
|
1243
|
+
console.log(
|
|
1244
|
+
JSON.stringify((await L()).autoFailStuckAnetgovDispatchsV2(), null, 2),
|
|
1245
|
+
);
|
|
1246
|
+
});
|
|
1247
|
+
parent
|
|
1248
|
+
.command("anetgov-gov-stats-v2")
|
|
1249
|
+
.description("V2 gov stats")
|
|
1250
|
+
.action(async () => {
|
|
1251
|
+
console.log(
|
|
1252
|
+
JSON.stringify((await L()).getAgentNetworkGovStatsV2(), null, 2),
|
|
1253
|
+
);
|
|
1254
|
+
});
|
|
1255
|
+
}
|
|
@@ -922,3 +922,204 @@ function _wire(root) {
|
|
|
922
922
|
.description("Auto-fail stuck V2 executions")
|
|
923
923
|
.action(() => outV2(autoFailStuckExecutionsV2()));
|
|
924
924
|
}
|
|
925
|
+
|
|
926
|
+
// === Iter22 V2 governance overlay ===
|
|
927
|
+
export function registerAugovV2Commands(program) {
|
|
928
|
+
const parent = program.commands.find((c) => c.name() === "automation");
|
|
929
|
+
if (!parent) return;
|
|
930
|
+
const L = async () => await import("../lib/automation-engine.js");
|
|
931
|
+
parent
|
|
932
|
+
.command("augov-enums-v2")
|
|
933
|
+
.description("Show V2 enums")
|
|
934
|
+
.action(async () => {
|
|
935
|
+
const m = await L();
|
|
936
|
+
console.log(
|
|
937
|
+
JSON.stringify(
|
|
938
|
+
{
|
|
939
|
+
profileMaturity: m.AUGOV_PROFILE_MATURITY_V2,
|
|
940
|
+
flowLifecycle: m.AUGOV_FLOW_LIFECYCLE_V2,
|
|
941
|
+
},
|
|
942
|
+
null,
|
|
943
|
+
2,
|
|
944
|
+
),
|
|
945
|
+
);
|
|
946
|
+
});
|
|
947
|
+
parent
|
|
948
|
+
.command("augov-config-v2")
|
|
949
|
+
.description("Show V2 config")
|
|
950
|
+
.action(async () => {
|
|
951
|
+
const m = await L();
|
|
952
|
+
console.log(
|
|
953
|
+
JSON.stringify(
|
|
954
|
+
{
|
|
955
|
+
maxActive: m.getMaxActiveAugovProfilesPerOwnerV2(),
|
|
956
|
+
maxPending: m.getMaxPendingAugovFlowsPerProfileV2(),
|
|
957
|
+
idleMs: m.getAugovProfileIdleMsV2(),
|
|
958
|
+
stuckMs: m.getAugovFlowStuckMsV2(),
|
|
959
|
+
},
|
|
960
|
+
null,
|
|
961
|
+
2,
|
|
962
|
+
),
|
|
963
|
+
);
|
|
964
|
+
});
|
|
965
|
+
parent
|
|
966
|
+
.command("augov-set-max-active-v2 <n>")
|
|
967
|
+
.description("Set max active")
|
|
968
|
+
.action(async (n) => {
|
|
969
|
+
(await L()).setMaxActiveAugovProfilesPerOwnerV2(Number(n));
|
|
970
|
+
console.log("ok");
|
|
971
|
+
});
|
|
972
|
+
parent
|
|
973
|
+
.command("augov-set-max-pending-v2 <n>")
|
|
974
|
+
.description("Set max pending")
|
|
975
|
+
.action(async (n) => {
|
|
976
|
+
(await L()).setMaxPendingAugovFlowsPerProfileV2(Number(n));
|
|
977
|
+
console.log("ok");
|
|
978
|
+
});
|
|
979
|
+
parent
|
|
980
|
+
.command("augov-set-idle-ms-v2 <n>")
|
|
981
|
+
.description("Set idle threshold ms")
|
|
982
|
+
.action(async (n) => {
|
|
983
|
+
(await L()).setAugovProfileIdleMsV2(Number(n));
|
|
984
|
+
console.log("ok");
|
|
985
|
+
});
|
|
986
|
+
parent
|
|
987
|
+
.command("augov-set-stuck-ms-v2 <n>")
|
|
988
|
+
.description("Set stuck threshold ms")
|
|
989
|
+
.action(async (n) => {
|
|
990
|
+
(await L()).setAugovFlowStuckMsV2(Number(n));
|
|
991
|
+
console.log("ok");
|
|
992
|
+
});
|
|
993
|
+
parent
|
|
994
|
+
.command("augov-register-v2 <id> <owner>")
|
|
995
|
+
.description("Register V2 profile")
|
|
996
|
+
.option("--connector <v>", "connector")
|
|
997
|
+
.action(async (id, owner, o) => {
|
|
998
|
+
const m = await L();
|
|
999
|
+
console.log(
|
|
1000
|
+
JSON.stringify(
|
|
1001
|
+
m.registerAugovProfileV2({ id, owner, connector: o.connector }),
|
|
1002
|
+
null,
|
|
1003
|
+
2,
|
|
1004
|
+
),
|
|
1005
|
+
);
|
|
1006
|
+
});
|
|
1007
|
+
parent
|
|
1008
|
+
.command("augov-activate-v2 <id>")
|
|
1009
|
+
.description("Activate profile")
|
|
1010
|
+
.action(async (id) => {
|
|
1011
|
+
console.log(
|
|
1012
|
+
JSON.stringify((await L()).activateAugovProfileV2(id), null, 2),
|
|
1013
|
+
);
|
|
1014
|
+
});
|
|
1015
|
+
parent
|
|
1016
|
+
.command("augov-pause-v2 <id>")
|
|
1017
|
+
.description("Pause profile")
|
|
1018
|
+
.action(async (id) => {
|
|
1019
|
+
console.log(JSON.stringify((await L()).pauseAugovProfileV2(id), null, 2));
|
|
1020
|
+
});
|
|
1021
|
+
parent
|
|
1022
|
+
.command("augov-archive-v2 <id>")
|
|
1023
|
+
.description("Archive profile")
|
|
1024
|
+
.action(async (id) => {
|
|
1025
|
+
console.log(
|
|
1026
|
+
JSON.stringify((await L()).archiveAugovProfileV2(id), null, 2),
|
|
1027
|
+
);
|
|
1028
|
+
});
|
|
1029
|
+
parent
|
|
1030
|
+
.command("augov-touch-v2 <id>")
|
|
1031
|
+
.description("Touch profile")
|
|
1032
|
+
.action(async (id) => {
|
|
1033
|
+
console.log(JSON.stringify((await L()).touchAugovProfileV2(id), null, 2));
|
|
1034
|
+
});
|
|
1035
|
+
parent
|
|
1036
|
+
.command("augov-get-v2 <id>")
|
|
1037
|
+
.description("Get profile")
|
|
1038
|
+
.action(async (id) => {
|
|
1039
|
+
console.log(JSON.stringify((await L()).getAugovProfileV2(id), null, 2));
|
|
1040
|
+
});
|
|
1041
|
+
parent
|
|
1042
|
+
.command("augov-list-v2")
|
|
1043
|
+
.description("List profiles")
|
|
1044
|
+
.action(async () => {
|
|
1045
|
+
console.log(JSON.stringify((await L()).listAugovProfilesV2(), null, 2));
|
|
1046
|
+
});
|
|
1047
|
+
parent
|
|
1048
|
+
.command("augov-create-flow-v2 <id> <profileId>")
|
|
1049
|
+
.description("Create flow")
|
|
1050
|
+
.option("--trigger <v>", "trigger")
|
|
1051
|
+
.action(async (id, profileId, o) => {
|
|
1052
|
+
const m = await L();
|
|
1053
|
+
console.log(
|
|
1054
|
+
JSON.stringify(
|
|
1055
|
+
m.createAugovFlowV2({ id, profileId, trigger: o.trigger }),
|
|
1056
|
+
null,
|
|
1057
|
+
2,
|
|
1058
|
+
),
|
|
1059
|
+
);
|
|
1060
|
+
});
|
|
1061
|
+
parent
|
|
1062
|
+
.command("augov-running-flow-v2 <id>")
|
|
1063
|
+
.description("Mark flow as running")
|
|
1064
|
+
.action(async (id) => {
|
|
1065
|
+
console.log(JSON.stringify((await L()).runningAugovFlowV2(id), null, 2));
|
|
1066
|
+
});
|
|
1067
|
+
parent
|
|
1068
|
+
.command("augov-complete-flow-v2 <id>")
|
|
1069
|
+
.description("Complete flow")
|
|
1070
|
+
.action(async (id) => {
|
|
1071
|
+
console.log(JSON.stringify((await L()).completeFlowAugovV2(id), null, 2));
|
|
1072
|
+
});
|
|
1073
|
+
parent
|
|
1074
|
+
.command("augov-fail-flow-v2 <id> [reason]")
|
|
1075
|
+
.description("Fail flow")
|
|
1076
|
+
.action(async (id, reason) => {
|
|
1077
|
+
console.log(
|
|
1078
|
+
JSON.stringify((await L()).failAugovFlowV2(id, reason), null, 2),
|
|
1079
|
+
);
|
|
1080
|
+
});
|
|
1081
|
+
parent
|
|
1082
|
+
.command("augov-cancel-flow-v2 <id> [reason]")
|
|
1083
|
+
.description("Cancel flow")
|
|
1084
|
+
.action(async (id, reason) => {
|
|
1085
|
+
console.log(
|
|
1086
|
+
JSON.stringify((await L()).cancelAugovFlowV2(id, reason), null, 2),
|
|
1087
|
+
);
|
|
1088
|
+
});
|
|
1089
|
+
parent
|
|
1090
|
+
.command("augov-get-flow-v2 <id>")
|
|
1091
|
+
.description("Get flow")
|
|
1092
|
+
.action(async (id) => {
|
|
1093
|
+
console.log(JSON.stringify((await L()).getAugovFlowV2(id), null, 2));
|
|
1094
|
+
});
|
|
1095
|
+
parent
|
|
1096
|
+
.command("augov-list-flows-v2")
|
|
1097
|
+
.description("List flows")
|
|
1098
|
+
.action(async () => {
|
|
1099
|
+
console.log(JSON.stringify((await L()).listAugovFlowsV2(), null, 2));
|
|
1100
|
+
});
|
|
1101
|
+
parent
|
|
1102
|
+
.command("augov-auto-pause-idle-v2")
|
|
1103
|
+
.description("Auto-pause idle")
|
|
1104
|
+
.action(async () => {
|
|
1105
|
+
console.log(
|
|
1106
|
+
JSON.stringify((await L()).autoPauseIdleAugovProfilesV2(), null, 2),
|
|
1107
|
+
);
|
|
1108
|
+
});
|
|
1109
|
+
parent
|
|
1110
|
+
.command("augov-auto-fail-stuck-v2")
|
|
1111
|
+
.description("Auto-fail stuck flows")
|
|
1112
|
+
.action(async () => {
|
|
1113
|
+
console.log(
|
|
1114
|
+
JSON.stringify((await L()).autoFailStuckAugovFlowsV2(), null, 2),
|
|
1115
|
+
);
|
|
1116
|
+
});
|
|
1117
|
+
parent
|
|
1118
|
+
.command("augov-gov-stats-v2")
|
|
1119
|
+
.description("V2 gov stats")
|
|
1120
|
+
.action(async () => {
|
|
1121
|
+
console.log(
|
|
1122
|
+
JSON.stringify((await L()).getAutomationEngineGovStatsV2(), null, 2),
|
|
1123
|
+
);
|
|
1124
|
+
});
|
|
1125
|
+
}
|