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
|
@@ -698,3 +698,206 @@ export function registerMultimodalCommand(program) {
|
|
|
698
698
|
|
|
699
699
|
program.addCommand(mm);
|
|
700
700
|
}
|
|
701
|
+
|
|
702
|
+
// === Iter18 V2 governance overlay ===
|
|
703
|
+
export function registerMmgovV2Commands(program) {
|
|
704
|
+
const parent = program.commands.find((c) => c.name() === "multimodal");
|
|
705
|
+
if (!parent) return;
|
|
706
|
+
const L = async () => await import("../lib/multimodal.js");
|
|
707
|
+
parent
|
|
708
|
+
.command("mmgov-enums-v2")
|
|
709
|
+
.description("Show V2 enums")
|
|
710
|
+
.action(async () => {
|
|
711
|
+
const m = await L();
|
|
712
|
+
console.log(
|
|
713
|
+
JSON.stringify(
|
|
714
|
+
{
|
|
715
|
+
profileMaturity: m.MMGOV_PROFILE_MATURITY_V2,
|
|
716
|
+
jobLifecycle: m.MMGOV_JOB_LIFECYCLE_V2,
|
|
717
|
+
},
|
|
718
|
+
null,
|
|
719
|
+
2,
|
|
720
|
+
),
|
|
721
|
+
);
|
|
722
|
+
});
|
|
723
|
+
parent
|
|
724
|
+
.command("mmgov-config-v2")
|
|
725
|
+
.description("Show V2 config")
|
|
726
|
+
.action(async () => {
|
|
727
|
+
const m = await L();
|
|
728
|
+
console.log(
|
|
729
|
+
JSON.stringify(
|
|
730
|
+
{
|
|
731
|
+
maxActive: m.getMaxActiveMmgovProfilesPerOwnerV2(),
|
|
732
|
+
maxPending: m.getMaxPendingMmgovJobsPerProfileV2(),
|
|
733
|
+
idleMs: m.getMmgovProfileIdleMsV2(),
|
|
734
|
+
stuckMs: m.getMmgovJobStuckMsV2(),
|
|
735
|
+
},
|
|
736
|
+
null,
|
|
737
|
+
2,
|
|
738
|
+
),
|
|
739
|
+
);
|
|
740
|
+
});
|
|
741
|
+
parent
|
|
742
|
+
.command("mmgov-set-max-active-v2 <n>")
|
|
743
|
+
.description("Set max active")
|
|
744
|
+
.action(async (n) => {
|
|
745
|
+
(await L()).setMaxActiveMmgovProfilesPerOwnerV2(Number(n));
|
|
746
|
+
console.log("ok");
|
|
747
|
+
});
|
|
748
|
+
parent
|
|
749
|
+
.command("mmgov-set-max-pending-v2 <n>")
|
|
750
|
+
.description("Set max pending")
|
|
751
|
+
.action(async (n) => {
|
|
752
|
+
(await L()).setMaxPendingMmgovJobsPerProfileV2(Number(n));
|
|
753
|
+
console.log("ok");
|
|
754
|
+
});
|
|
755
|
+
parent
|
|
756
|
+
.command("mmgov-set-idle-ms-v2 <n>")
|
|
757
|
+
.description("Set idle threshold ms")
|
|
758
|
+
.action(async (n) => {
|
|
759
|
+
(await L()).setMmgovProfileIdleMsV2(Number(n));
|
|
760
|
+
console.log("ok");
|
|
761
|
+
});
|
|
762
|
+
parent
|
|
763
|
+
.command("mmgov-set-stuck-ms-v2 <n>")
|
|
764
|
+
.description("Set stuck threshold ms")
|
|
765
|
+
.action(async (n) => {
|
|
766
|
+
(await L()).setMmgovJobStuckMsV2(Number(n));
|
|
767
|
+
console.log("ok");
|
|
768
|
+
});
|
|
769
|
+
parent
|
|
770
|
+
.command("mmgov-register-v2 <id> <owner>")
|
|
771
|
+
.description("Register V2 profile")
|
|
772
|
+
.option("--kind <v>", "kind")
|
|
773
|
+
.action(async (id, owner, o) => {
|
|
774
|
+
const m = await L();
|
|
775
|
+
console.log(
|
|
776
|
+
JSON.stringify(
|
|
777
|
+
m.registerMmgovProfileV2({ id, owner, kind: o.kind }),
|
|
778
|
+
null,
|
|
779
|
+
2,
|
|
780
|
+
),
|
|
781
|
+
);
|
|
782
|
+
});
|
|
783
|
+
parent
|
|
784
|
+
.command("mmgov-activate-v2 <id>")
|
|
785
|
+
.description("Activate profile")
|
|
786
|
+
.action(async (id) => {
|
|
787
|
+
console.log(
|
|
788
|
+
JSON.stringify((await L()).activateMmgovProfileV2(id), null, 2),
|
|
789
|
+
);
|
|
790
|
+
});
|
|
791
|
+
parent
|
|
792
|
+
.command("mmgov-stale-v2 <id>")
|
|
793
|
+
.description("Stale profile")
|
|
794
|
+
.action(async (id) => {
|
|
795
|
+
console.log(JSON.stringify((await L()).staleMmgovProfileV2(id), null, 2));
|
|
796
|
+
});
|
|
797
|
+
parent
|
|
798
|
+
.command("mmgov-archive-v2 <id>")
|
|
799
|
+
.description("Archive profile")
|
|
800
|
+
.action(async (id) => {
|
|
801
|
+
console.log(
|
|
802
|
+
JSON.stringify((await L()).archiveMmgovProfileV2(id), null, 2),
|
|
803
|
+
);
|
|
804
|
+
});
|
|
805
|
+
parent
|
|
806
|
+
.command("mmgov-touch-v2 <id>")
|
|
807
|
+
.description("Touch profile")
|
|
808
|
+
.action(async (id) => {
|
|
809
|
+
console.log(JSON.stringify((await L()).touchMmgovProfileV2(id), null, 2));
|
|
810
|
+
});
|
|
811
|
+
parent
|
|
812
|
+
.command("mmgov-get-v2 <id>")
|
|
813
|
+
.description("Get profile")
|
|
814
|
+
.action(async (id) => {
|
|
815
|
+
console.log(JSON.stringify((await L()).getMmgovProfileV2(id), null, 2));
|
|
816
|
+
});
|
|
817
|
+
parent
|
|
818
|
+
.command("mmgov-list-v2")
|
|
819
|
+
.description("List profiles")
|
|
820
|
+
.action(async () => {
|
|
821
|
+
console.log(JSON.stringify((await L()).listMmgovProfilesV2(), null, 2));
|
|
822
|
+
});
|
|
823
|
+
parent
|
|
824
|
+
.command("mmgov-create-job-v2 <id> <profileId>")
|
|
825
|
+
.description("Create job")
|
|
826
|
+
.option("--input <v>", "input")
|
|
827
|
+
.action(async (id, profileId, o) => {
|
|
828
|
+
const m = await L();
|
|
829
|
+
console.log(
|
|
830
|
+
JSON.stringify(
|
|
831
|
+
m.createMmgovJobV2({ id, profileId, input: o.input }),
|
|
832
|
+
null,
|
|
833
|
+
2,
|
|
834
|
+
),
|
|
835
|
+
);
|
|
836
|
+
});
|
|
837
|
+
parent
|
|
838
|
+
.command("mmgov-processing-job-v2 <id>")
|
|
839
|
+
.description("Mark job as processing")
|
|
840
|
+
.action(async (id) => {
|
|
841
|
+
console.log(
|
|
842
|
+
JSON.stringify((await L()).processingMmgovJobV2(id), null, 2),
|
|
843
|
+
);
|
|
844
|
+
});
|
|
845
|
+
parent
|
|
846
|
+
.command("mmgov-complete-job-v2 <id>")
|
|
847
|
+
.description("Complete job")
|
|
848
|
+
.action(async (id) => {
|
|
849
|
+
console.log(JSON.stringify((await L()).completeJobMmgovV2(id), null, 2));
|
|
850
|
+
});
|
|
851
|
+
parent
|
|
852
|
+
.command("mmgov-fail-job-v2 <id> [reason]")
|
|
853
|
+
.description("Fail job")
|
|
854
|
+
.action(async (id, reason) => {
|
|
855
|
+
console.log(
|
|
856
|
+
JSON.stringify((await L()).failMmgovJobV2(id, reason), null, 2),
|
|
857
|
+
);
|
|
858
|
+
});
|
|
859
|
+
parent
|
|
860
|
+
.command("mmgov-cancel-job-v2 <id> [reason]")
|
|
861
|
+
.description("Cancel job")
|
|
862
|
+
.action(async (id, reason) => {
|
|
863
|
+
console.log(
|
|
864
|
+
JSON.stringify((await L()).cancelMmgovJobV2(id, reason), null, 2),
|
|
865
|
+
);
|
|
866
|
+
});
|
|
867
|
+
parent
|
|
868
|
+
.command("mmgov-get-job-v2 <id>")
|
|
869
|
+
.description("Get job")
|
|
870
|
+
.action(async (id) => {
|
|
871
|
+
console.log(JSON.stringify((await L()).getMmgovJobV2(id), null, 2));
|
|
872
|
+
});
|
|
873
|
+
parent
|
|
874
|
+
.command("mmgov-list-jobs-v2")
|
|
875
|
+
.description("List jobs")
|
|
876
|
+
.action(async () => {
|
|
877
|
+
console.log(JSON.stringify((await L()).listMmgovJobsV2(), null, 2));
|
|
878
|
+
});
|
|
879
|
+
parent
|
|
880
|
+
.command("mmgov-auto-stale-idle-v2")
|
|
881
|
+
.description("Auto-stale idle")
|
|
882
|
+
.action(async () => {
|
|
883
|
+
console.log(
|
|
884
|
+
JSON.stringify((await L()).autoStaleIdleMmgovProfilesV2(), null, 2),
|
|
885
|
+
);
|
|
886
|
+
});
|
|
887
|
+
parent
|
|
888
|
+
.command("mmgov-auto-fail-stuck-v2")
|
|
889
|
+
.description("Auto-fail stuck jobs")
|
|
890
|
+
.action(async () => {
|
|
891
|
+
console.log(
|
|
892
|
+
JSON.stringify((await L()).autoFailStuckMmgovJobsV2(), null, 2),
|
|
893
|
+
);
|
|
894
|
+
});
|
|
895
|
+
parent
|
|
896
|
+
.command("mmgov-gov-stats-v2")
|
|
897
|
+
.description("V2 gov stats")
|
|
898
|
+
.action(async () => {
|
|
899
|
+
console.log(
|
|
900
|
+
JSON.stringify((await L()).getMultimodalGovStatsV2(), null, 2),
|
|
901
|
+
);
|
|
902
|
+
});
|
|
903
|
+
}
|
package/src/commands/nlprog.js
CHANGED
|
@@ -683,3 +683,228 @@ export function registerNlProgCommand(program) {
|
|
|
683
683
|
|
|
684
684
|
program.addCommand(nlp);
|
|
685
685
|
}
|
|
686
|
+
|
|
687
|
+
// === Iter18 V2 governance overlay ===
|
|
688
|
+
export function registerNlpgovV2Commands(program) {
|
|
689
|
+
const parent = program.commands.find((c) => c.name() === "nlprog");
|
|
690
|
+
if (!parent) return;
|
|
691
|
+
const L = async () => await import("../lib/nl-programming.js");
|
|
692
|
+
parent
|
|
693
|
+
.command("nlpgov-enums-v2")
|
|
694
|
+
.description("Show V2 enums")
|
|
695
|
+
.action(async () => {
|
|
696
|
+
const m = await L();
|
|
697
|
+
console.log(
|
|
698
|
+
JSON.stringify(
|
|
699
|
+
{
|
|
700
|
+
profileMaturity: m.NLPGOV_PROFILE_MATURITY_V2,
|
|
701
|
+
translationLifecycle: m.NLPGOV_TRANSLATION_LIFECYCLE_V2,
|
|
702
|
+
},
|
|
703
|
+
null,
|
|
704
|
+
2,
|
|
705
|
+
),
|
|
706
|
+
);
|
|
707
|
+
});
|
|
708
|
+
parent
|
|
709
|
+
.command("nlpgov-config-v2")
|
|
710
|
+
.description("Show V2 config")
|
|
711
|
+
.action(async () => {
|
|
712
|
+
const m = await L();
|
|
713
|
+
console.log(
|
|
714
|
+
JSON.stringify(
|
|
715
|
+
{
|
|
716
|
+
maxActive: m.getMaxActiveNlpgovProfilesPerOwnerV2(),
|
|
717
|
+
maxPending: m.getMaxPendingNlpgovTranslationsPerProfileV2(),
|
|
718
|
+
idleMs: m.getNlpgovProfileIdleMsV2(),
|
|
719
|
+
stuckMs: m.getNlpgovTranslationStuckMsV2(),
|
|
720
|
+
},
|
|
721
|
+
null,
|
|
722
|
+
2,
|
|
723
|
+
),
|
|
724
|
+
);
|
|
725
|
+
});
|
|
726
|
+
parent
|
|
727
|
+
.command("nlpgov-set-max-active-v2 <n>")
|
|
728
|
+
.description("Set max active")
|
|
729
|
+
.action(async (n) => {
|
|
730
|
+
(await L()).setMaxActiveNlpgovProfilesPerOwnerV2(Number(n));
|
|
731
|
+
console.log("ok");
|
|
732
|
+
});
|
|
733
|
+
parent
|
|
734
|
+
.command("nlpgov-set-max-pending-v2 <n>")
|
|
735
|
+
.description("Set max pending")
|
|
736
|
+
.action(async (n) => {
|
|
737
|
+
(await L()).setMaxPendingNlpgovTranslationsPerProfileV2(Number(n));
|
|
738
|
+
console.log("ok");
|
|
739
|
+
});
|
|
740
|
+
parent
|
|
741
|
+
.command("nlpgov-set-idle-ms-v2 <n>")
|
|
742
|
+
.description("Set idle threshold ms")
|
|
743
|
+
.action(async (n) => {
|
|
744
|
+
(await L()).setNlpgovProfileIdleMsV2(Number(n));
|
|
745
|
+
console.log("ok");
|
|
746
|
+
});
|
|
747
|
+
parent
|
|
748
|
+
.command("nlpgov-set-stuck-ms-v2 <n>")
|
|
749
|
+
.description("Set stuck threshold ms")
|
|
750
|
+
.action(async (n) => {
|
|
751
|
+
(await L()).setNlpgovTranslationStuckMsV2(Number(n));
|
|
752
|
+
console.log("ok");
|
|
753
|
+
});
|
|
754
|
+
parent
|
|
755
|
+
.command("nlpgov-register-v2 <id> <owner>")
|
|
756
|
+
.description("Register V2 profile")
|
|
757
|
+
.option("--style <v>", "style")
|
|
758
|
+
.action(async (id, owner, o) => {
|
|
759
|
+
const m = await L();
|
|
760
|
+
console.log(
|
|
761
|
+
JSON.stringify(
|
|
762
|
+
m.registerNlpgovProfileV2({ id, owner, style: o.style }),
|
|
763
|
+
null,
|
|
764
|
+
2,
|
|
765
|
+
),
|
|
766
|
+
);
|
|
767
|
+
});
|
|
768
|
+
parent
|
|
769
|
+
.command("nlpgov-activate-v2 <id>")
|
|
770
|
+
.description("Activate profile")
|
|
771
|
+
.action(async (id) => {
|
|
772
|
+
console.log(
|
|
773
|
+
JSON.stringify((await L()).activateNlpgovProfileV2(id), null, 2),
|
|
774
|
+
);
|
|
775
|
+
});
|
|
776
|
+
parent
|
|
777
|
+
.command("nlpgov-stale-v2 <id>")
|
|
778
|
+
.description("Stale profile")
|
|
779
|
+
.action(async (id) => {
|
|
780
|
+
console.log(
|
|
781
|
+
JSON.stringify((await L()).staleNlpgovProfileV2(id), null, 2),
|
|
782
|
+
);
|
|
783
|
+
});
|
|
784
|
+
parent
|
|
785
|
+
.command("nlpgov-archive-v2 <id>")
|
|
786
|
+
.description("Archive profile")
|
|
787
|
+
.action(async (id) => {
|
|
788
|
+
console.log(
|
|
789
|
+
JSON.stringify((await L()).archiveNlpgovProfileV2(id), null, 2),
|
|
790
|
+
);
|
|
791
|
+
});
|
|
792
|
+
parent
|
|
793
|
+
.command("nlpgov-touch-v2 <id>")
|
|
794
|
+
.description("Touch profile")
|
|
795
|
+
.action(async (id) => {
|
|
796
|
+
console.log(
|
|
797
|
+
JSON.stringify((await L()).touchNlpgovProfileV2(id), null, 2),
|
|
798
|
+
);
|
|
799
|
+
});
|
|
800
|
+
parent
|
|
801
|
+
.command("nlpgov-get-v2 <id>")
|
|
802
|
+
.description("Get profile")
|
|
803
|
+
.action(async (id) => {
|
|
804
|
+
console.log(JSON.stringify((await L()).getNlpgovProfileV2(id), null, 2));
|
|
805
|
+
});
|
|
806
|
+
parent
|
|
807
|
+
.command("nlpgov-list-v2")
|
|
808
|
+
.description("List profiles")
|
|
809
|
+
.action(async () => {
|
|
810
|
+
console.log(JSON.stringify((await L()).listNlpgovProfilesV2(), null, 2));
|
|
811
|
+
});
|
|
812
|
+
parent
|
|
813
|
+
.command("nlpgov-create-translation-v2 <id> <profileId>")
|
|
814
|
+
.description("Create translation")
|
|
815
|
+
.option("--intent <v>", "intent")
|
|
816
|
+
.action(async (id, profileId, o) => {
|
|
817
|
+
const m = await L();
|
|
818
|
+
console.log(
|
|
819
|
+
JSON.stringify(
|
|
820
|
+
m.createNlpgovTranslationV2({ id, profileId, intent: o.intent }),
|
|
821
|
+
null,
|
|
822
|
+
2,
|
|
823
|
+
),
|
|
824
|
+
);
|
|
825
|
+
});
|
|
826
|
+
parent
|
|
827
|
+
.command("nlpgov-translating-translation-v2 <id>")
|
|
828
|
+
.description("Mark translation as translating")
|
|
829
|
+
.action(async (id) => {
|
|
830
|
+
console.log(
|
|
831
|
+
JSON.stringify((await L()).translatingNlpgovTranslationV2(id), null, 2),
|
|
832
|
+
);
|
|
833
|
+
});
|
|
834
|
+
parent
|
|
835
|
+
.command("nlpgov-complete-translation-v2 <id>")
|
|
836
|
+
.description("Complete translation")
|
|
837
|
+
.action(async (id) => {
|
|
838
|
+
console.log(
|
|
839
|
+
JSON.stringify((await L()).completeTranslationNlpgovV2(id), null, 2),
|
|
840
|
+
);
|
|
841
|
+
});
|
|
842
|
+
parent
|
|
843
|
+
.command("nlpgov-fail-translation-v2 <id> [reason]")
|
|
844
|
+
.description("Fail translation")
|
|
845
|
+
.action(async (id, reason) => {
|
|
846
|
+
console.log(
|
|
847
|
+
JSON.stringify(
|
|
848
|
+
(await L()).failNlpgovTranslationV2(id, reason),
|
|
849
|
+
null,
|
|
850
|
+
2,
|
|
851
|
+
),
|
|
852
|
+
);
|
|
853
|
+
});
|
|
854
|
+
parent
|
|
855
|
+
.command("nlpgov-cancel-translation-v2 <id> [reason]")
|
|
856
|
+
.description("Cancel translation")
|
|
857
|
+
.action(async (id, reason) => {
|
|
858
|
+
console.log(
|
|
859
|
+
JSON.stringify(
|
|
860
|
+
(await L()).cancelNlpgovTranslationV2(id, reason),
|
|
861
|
+
null,
|
|
862
|
+
2,
|
|
863
|
+
),
|
|
864
|
+
);
|
|
865
|
+
});
|
|
866
|
+
parent
|
|
867
|
+
.command("nlpgov-get-translation-v2 <id>")
|
|
868
|
+
.description("Get translation")
|
|
869
|
+
.action(async (id) => {
|
|
870
|
+
console.log(
|
|
871
|
+
JSON.stringify((await L()).getNlpgovTranslationV2(id), null, 2),
|
|
872
|
+
);
|
|
873
|
+
});
|
|
874
|
+
parent
|
|
875
|
+
.command("nlpgov-list-translations-v2")
|
|
876
|
+
.description("List translations")
|
|
877
|
+
.action(async () => {
|
|
878
|
+
console.log(
|
|
879
|
+
JSON.stringify((await L()).listNlpgovTranslationsV2(), null, 2),
|
|
880
|
+
);
|
|
881
|
+
});
|
|
882
|
+
parent
|
|
883
|
+
.command("nlpgov-auto-stale-idle-v2")
|
|
884
|
+
.description("Auto-stale idle")
|
|
885
|
+
.action(async () => {
|
|
886
|
+
console.log(
|
|
887
|
+
JSON.stringify((await L()).autoStaleIdleNlpgovProfilesV2(), null, 2),
|
|
888
|
+
);
|
|
889
|
+
});
|
|
890
|
+
parent
|
|
891
|
+
.command("nlpgov-auto-fail-stuck-v2")
|
|
892
|
+
.description("Auto-fail stuck translations")
|
|
893
|
+
.action(async () => {
|
|
894
|
+
console.log(
|
|
895
|
+
JSON.stringify(
|
|
896
|
+
(await L()).autoFailStuckNlpgovTranslationsV2(),
|
|
897
|
+
null,
|
|
898
|
+
2,
|
|
899
|
+
),
|
|
900
|
+
);
|
|
901
|
+
});
|
|
902
|
+
parent
|
|
903
|
+
.command("nlpgov-gov-stats-v2")
|
|
904
|
+
.description("V2 gov stats")
|
|
905
|
+
.action(async () => {
|
|
906
|
+
console.log(
|
|
907
|
+
JSON.stringify((await L()).getNlProgrammingGovStatsV2(), null, 2),
|
|
908
|
+
);
|
|
909
|
+
});
|
|
910
|
+
}
|
package/src/commands/nostr.js
CHANGED
|
@@ -585,3 +585,212 @@ export function registerNostrV2Command(nostr) {
|
|
|
585
585
|
console.log(JSON.stringify(getNostrBridgeStatsV2(), null, 2));
|
|
586
586
|
});
|
|
587
587
|
}
|
|
588
|
+
|
|
589
|
+
// === Iter21 V2 governance overlay ===
|
|
590
|
+
export function registerNosgovV2Commands(program) {
|
|
591
|
+
const parent = program.commands.find((c) => c.name() === "nostr");
|
|
592
|
+
if (!parent) return;
|
|
593
|
+
const L = async () => await import("../lib/nostr-bridge.js");
|
|
594
|
+
parent
|
|
595
|
+
.command("nosgov-enums-v2")
|
|
596
|
+
.description("Show V2 enums")
|
|
597
|
+
.action(async () => {
|
|
598
|
+
const m = await L();
|
|
599
|
+
console.log(
|
|
600
|
+
JSON.stringify(
|
|
601
|
+
{
|
|
602
|
+
profileMaturity: m.NOSGOV_PROFILE_MATURITY_V2,
|
|
603
|
+
publishLifecycle: m.NOSGOV_PUBLISH_LIFECYCLE_V2,
|
|
604
|
+
},
|
|
605
|
+
null,
|
|
606
|
+
2,
|
|
607
|
+
),
|
|
608
|
+
);
|
|
609
|
+
});
|
|
610
|
+
parent
|
|
611
|
+
.command("nosgov-config-v2")
|
|
612
|
+
.description("Show V2 config")
|
|
613
|
+
.action(async () => {
|
|
614
|
+
const m = await L();
|
|
615
|
+
console.log(
|
|
616
|
+
JSON.stringify(
|
|
617
|
+
{
|
|
618
|
+
maxActive: m.getMaxActiveNosgovProfilesPerOwnerV2(),
|
|
619
|
+
maxPending: m.getMaxPendingNosgovPublishsPerProfileV2(),
|
|
620
|
+
idleMs: m.getNosgovProfileIdleMsV2(),
|
|
621
|
+
stuckMs: m.getNosgovPublishStuckMsV2(),
|
|
622
|
+
},
|
|
623
|
+
null,
|
|
624
|
+
2,
|
|
625
|
+
),
|
|
626
|
+
);
|
|
627
|
+
});
|
|
628
|
+
parent
|
|
629
|
+
.command("nosgov-set-max-active-v2 <n>")
|
|
630
|
+
.description("Set max active")
|
|
631
|
+
.action(async (n) => {
|
|
632
|
+
(await L()).setMaxActiveNosgovProfilesPerOwnerV2(Number(n));
|
|
633
|
+
console.log("ok");
|
|
634
|
+
});
|
|
635
|
+
parent
|
|
636
|
+
.command("nosgov-set-max-pending-v2 <n>")
|
|
637
|
+
.description("Set max pending")
|
|
638
|
+
.action(async (n) => {
|
|
639
|
+
(await L()).setMaxPendingNosgovPublishsPerProfileV2(Number(n));
|
|
640
|
+
console.log("ok");
|
|
641
|
+
});
|
|
642
|
+
parent
|
|
643
|
+
.command("nosgov-set-idle-ms-v2 <n>")
|
|
644
|
+
.description("Set idle threshold ms")
|
|
645
|
+
.action(async (n) => {
|
|
646
|
+
(await L()).setNosgovProfileIdleMsV2(Number(n));
|
|
647
|
+
console.log("ok");
|
|
648
|
+
});
|
|
649
|
+
parent
|
|
650
|
+
.command("nosgov-set-stuck-ms-v2 <n>")
|
|
651
|
+
.description("Set stuck threshold ms")
|
|
652
|
+
.action(async (n) => {
|
|
653
|
+
(await L()).setNosgovPublishStuckMsV2(Number(n));
|
|
654
|
+
console.log("ok");
|
|
655
|
+
});
|
|
656
|
+
parent
|
|
657
|
+
.command("nosgov-register-v2 <id> <owner>")
|
|
658
|
+
.description("Register V2 profile")
|
|
659
|
+
.option("--relay <v>", "relay")
|
|
660
|
+
.action(async (id, owner, o) => {
|
|
661
|
+
const m = await L();
|
|
662
|
+
console.log(
|
|
663
|
+
JSON.stringify(
|
|
664
|
+
m.registerNosgovProfileV2({ id, owner, relay: o.relay }),
|
|
665
|
+
null,
|
|
666
|
+
2,
|
|
667
|
+
),
|
|
668
|
+
);
|
|
669
|
+
});
|
|
670
|
+
parent
|
|
671
|
+
.command("nosgov-activate-v2 <id>")
|
|
672
|
+
.description("Activate profile")
|
|
673
|
+
.action(async (id) => {
|
|
674
|
+
console.log(
|
|
675
|
+
JSON.stringify((await L()).activateNosgovProfileV2(id), null, 2),
|
|
676
|
+
);
|
|
677
|
+
});
|
|
678
|
+
parent
|
|
679
|
+
.command("nosgov-suspend-v2 <id>")
|
|
680
|
+
.description("Suspend profile")
|
|
681
|
+
.action(async (id) => {
|
|
682
|
+
console.log(
|
|
683
|
+
JSON.stringify((await L()).suspendNosgovProfileV2(id), null, 2),
|
|
684
|
+
);
|
|
685
|
+
});
|
|
686
|
+
parent
|
|
687
|
+
.command("nosgov-archive-v2 <id>")
|
|
688
|
+
.description("Archive profile")
|
|
689
|
+
.action(async (id) => {
|
|
690
|
+
console.log(
|
|
691
|
+
JSON.stringify((await L()).archiveNosgovProfileV2(id), null, 2),
|
|
692
|
+
);
|
|
693
|
+
});
|
|
694
|
+
parent
|
|
695
|
+
.command("nosgov-touch-v2 <id>")
|
|
696
|
+
.description("Touch profile")
|
|
697
|
+
.action(async (id) => {
|
|
698
|
+
console.log(
|
|
699
|
+
JSON.stringify((await L()).touchNosgovProfileV2(id), null, 2),
|
|
700
|
+
);
|
|
701
|
+
});
|
|
702
|
+
parent
|
|
703
|
+
.command("nosgov-get-v2 <id>")
|
|
704
|
+
.description("Get profile")
|
|
705
|
+
.action(async (id) => {
|
|
706
|
+
console.log(JSON.stringify((await L()).getNosgovProfileV2(id), null, 2));
|
|
707
|
+
});
|
|
708
|
+
parent
|
|
709
|
+
.command("nosgov-list-v2")
|
|
710
|
+
.description("List profiles")
|
|
711
|
+
.action(async () => {
|
|
712
|
+
console.log(JSON.stringify((await L()).listNosgovProfilesV2(), null, 2));
|
|
713
|
+
});
|
|
714
|
+
parent
|
|
715
|
+
.command("nosgov-create-publish-v2 <id> <profileId>")
|
|
716
|
+
.description("Create publish")
|
|
717
|
+
.option("--kind <v>", "kind")
|
|
718
|
+
.action(async (id, profileId, o) => {
|
|
719
|
+
const m = await L();
|
|
720
|
+
console.log(
|
|
721
|
+
JSON.stringify(
|
|
722
|
+
m.createNosgovPublishV2({ id, profileId, kind: o.kind }),
|
|
723
|
+
null,
|
|
724
|
+
2,
|
|
725
|
+
),
|
|
726
|
+
);
|
|
727
|
+
});
|
|
728
|
+
parent
|
|
729
|
+
.command("nosgov-publishing-publish-v2 <id>")
|
|
730
|
+
.description("Mark publish as publishing")
|
|
731
|
+
.action(async (id) => {
|
|
732
|
+
console.log(
|
|
733
|
+
JSON.stringify((await L()).publishingNosgovPublishV2(id), null, 2),
|
|
734
|
+
);
|
|
735
|
+
});
|
|
736
|
+
parent
|
|
737
|
+
.command("nosgov-complete-publish-v2 <id>")
|
|
738
|
+
.description("Complete publish")
|
|
739
|
+
.action(async (id) => {
|
|
740
|
+
console.log(
|
|
741
|
+
JSON.stringify((await L()).completePublishNosgovV2(id), null, 2),
|
|
742
|
+
);
|
|
743
|
+
});
|
|
744
|
+
parent
|
|
745
|
+
.command("nosgov-fail-publish-v2 <id> [reason]")
|
|
746
|
+
.description("Fail publish")
|
|
747
|
+
.action(async (id, reason) => {
|
|
748
|
+
console.log(
|
|
749
|
+
JSON.stringify((await L()).failNosgovPublishV2(id, reason), null, 2),
|
|
750
|
+
);
|
|
751
|
+
});
|
|
752
|
+
parent
|
|
753
|
+
.command("nosgov-cancel-publish-v2 <id> [reason]")
|
|
754
|
+
.description("Cancel publish")
|
|
755
|
+
.action(async (id, reason) => {
|
|
756
|
+
console.log(
|
|
757
|
+
JSON.stringify((await L()).cancelNosgovPublishV2(id, reason), null, 2),
|
|
758
|
+
);
|
|
759
|
+
});
|
|
760
|
+
parent
|
|
761
|
+
.command("nosgov-get-publish-v2 <id>")
|
|
762
|
+
.description("Get publish")
|
|
763
|
+
.action(async (id) => {
|
|
764
|
+
console.log(JSON.stringify((await L()).getNosgovPublishV2(id), null, 2));
|
|
765
|
+
});
|
|
766
|
+
parent
|
|
767
|
+
.command("nosgov-list-publishs-v2")
|
|
768
|
+
.description("List publishs")
|
|
769
|
+
.action(async () => {
|
|
770
|
+
console.log(JSON.stringify((await L()).listNosgovPublishsV2(), null, 2));
|
|
771
|
+
});
|
|
772
|
+
parent
|
|
773
|
+
.command("nosgov-auto-suspend-idle-v2")
|
|
774
|
+
.description("Auto-suspend idle")
|
|
775
|
+
.action(async () => {
|
|
776
|
+
console.log(
|
|
777
|
+
JSON.stringify((await L()).autoSuspendIdleNosgovProfilesV2(), null, 2),
|
|
778
|
+
);
|
|
779
|
+
});
|
|
780
|
+
parent
|
|
781
|
+
.command("nosgov-auto-fail-stuck-v2")
|
|
782
|
+
.description("Auto-fail stuck publishs")
|
|
783
|
+
.action(async () => {
|
|
784
|
+
console.log(
|
|
785
|
+
JSON.stringify((await L()).autoFailStuckNosgovPublishsV2(), null, 2),
|
|
786
|
+
);
|
|
787
|
+
});
|
|
788
|
+
parent
|
|
789
|
+
.command("nosgov-gov-stats-v2")
|
|
790
|
+
.description("V2 gov stats")
|
|
791
|
+
.action(async () => {
|
|
792
|
+
console.log(
|
|
793
|
+
JSON.stringify((await L()).getNostrBridgeGovStatsV2(), null, 2),
|
|
794
|
+
);
|
|
795
|
+
});
|
|
796
|
+
}
|