nolo-cli 0.252.0-alpha.2 → 0.252.0-alpha.3
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/{agentDeleteCommand-EJAI2VTH.js → agentDeleteCommand-OKR6IDGK.js} +6 -6
- package/{agentEmailCommands-YBKHZMMZ.js → agentEmailCommands-UKPURCCI.js} +7 -7
- package/{agentListCommands-M2KYLAOB.js → agentListCommands-CTY7WAMN.js} +1 -1
- package/{agentMachineCommands-GLY6NJWZ.js → agentMachineCommands-WTCQHXHZ.js} +2 -2
- package/{agentPullCommand-6OCNLVGC.js → agentPullCommand-2EYJ5ENC.js} +1 -1
- package/{agentRecordCommands-JANPX6XI.js → agentRecordCommands-IM2WIFKB.js} +7 -7
- package/{agentRunCommand-TNLAXLUU.js → agentRunCommand-7MCCRUJY.js} +7 -7
- package/{authCommand-5DC3ES4Q.js → authCommand-HBO5G6RL.js} +3 -3
- package/{authCommands-BLXNAUF4.js → authCommands-T5FODCEG.js} +2 -2
- package/{chunk-UTFTXJU3.js → chunk-4KBKOG2L.js} +2 -2
- package/{chunk-5QEOTC35.js → chunk-6AJIU6OC.js} +1 -1
- package/{chunk-EFM2IPZR.js → chunk-HQUGB2HM.js} +1 -1
- package/{chunk-NMXGIRSG.js → chunk-HSBHS6KT.js} +1 -1
- package/{chunk-7RYODZDD.js → chunk-J55F3IEZ.js} +1 -1
- package/{chunk-LUPZLKXL.js → chunk-JLZJL3WC.js} +31 -3
- package/{chunk-HZD5HXUO.js → chunk-OQFOE4SJ.js} +1 -1
- package/{chunk-VH7AQEEF.js → chunk-OWXOXKH7.js} +2 -2
- package/{chunk-J4KLOLYP.js → chunk-RE32BIKY.js} +1 -1
- package/{chunk-NJDOID7N.js → chunk-RGWYRTSY.js} +3 -3
- package/{chunk-F6GZFIGR.js → chunk-SE7UURHT.js} +3 -3
- package/{chunk-NRWZHHOB.js → chunk-V644LXPC.js} +1 -1
- package/{chunk-SSZHE2RK.js → chunk-ZYPXOQS2.js} +1 -1
- package/{cliAuthorityBrokerProcess-IUCB4XA6.js → cliAuthorityBrokerProcess-5ZFBTHLB.js} +1 -1
- package/{commandRegistry-YQMAXCLP.js → commandRegistry-YSV6ZWPO.js} +37 -37
- package/{dialogCommands-ULWP5ASX.js → dialogCommands-IZSD4CQM.js} +3 -3
- package/{dialogUsageCommand-IHAXS7DW.js → dialogUsageCommand-3JMINURR.js} +1 -1
- package/{hostCredentialCreate-SIRXPUFR.js → hostCredentialCreate-T33O7WLA.js} +7 -7
- package/index.js +5 -5
- package/{localRuntimeAdapter-VRB5EDDZ.js → localRuntimeAdapter-CNFP7ZEP.js} +5 -5
- package/{localRuntimeAuthority-QKWTPBQQ.js → localRuntimeAuthority-UF2DAQ3F.js} +2 -2
- package/{localRuntimeDb-3CIC4SKC.js → localRuntimeDb-ZJFGNHML.js} +1 -1
- package/{machineCommands-MG3BB6XM.js → machineCommands-TGA5EH2G.js} +6 -6
- package/{machineWsRunDispatch-3TOO3NCU.js → machineWsRunDispatch-LMJPGTTZ.js} +6 -6
- package/{mcpLocalAuthorizeCommand-LO7E4VQ5.js → mcpLocalAuthorizeCommand-Y3SOZFXT.js} +3 -3
- package/package.json +1 -1
- package/{readlineWorkspace-RBH6PSE7.js → readlineWorkspace-HA6DWK4N.js} +13 -13
- package/{runtimeDoctorCommands-QGZSKNSE.js → runtimeDoctorCommands-V3M3JTUV.js} +2 -2
- package/{usageCommand-XVJ7ZUTM.js → usageCommand-HVCMX7BG.js} +2 -2
- package/{usageRebuildCommand-NK6S3D4J.js → usageRebuildCommand-VMPIZ2ME.js} +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getReadableCliDb
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZYPXOQS2.js";
|
|
4
4
|
import {
|
|
5
5
|
clearCliLocalRuntimePreparedAgentCache
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-RGWYRTSY.js";
|
|
7
|
+
import "./chunk-HSBHS6KT.js";
|
|
8
8
|
import "./chunk-FE7G6DSP.js";
|
|
9
9
|
import "./chunk-QV32GSVO.js";
|
|
10
10
|
import "./chunk-GIXWVN2W.js";
|
|
@@ -54,7 +54,7 @@ import "./chunk-UAD2WT54.js";
|
|
|
54
54
|
import "./chunk-GJ4UTSAW.js";
|
|
55
55
|
import "./chunk-3PVYUPXK.js";
|
|
56
56
|
import "./chunk-N7UXTVAR.js";
|
|
57
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-J55F3IEZ.js";
|
|
58
58
|
import "./chunk-HXER7YJF.js";
|
|
59
59
|
import {
|
|
60
60
|
getOrCreateServerStoreRuntime
|
|
@@ -90,9 +90,9 @@ import "./chunk-PXYBUFDB.js";
|
|
|
90
90
|
import "./chunk-GBWGPTA7.js";
|
|
91
91
|
import {
|
|
92
92
|
getDefaultCliLocalRuntimeDb
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-OQFOE4SJ.js";
|
|
94
94
|
import "./chunk-TRRXYFTR.js";
|
|
95
|
-
import "./chunk-
|
|
95
|
+
import "./chunk-JLZJL3WC.js";
|
|
96
96
|
import "./chunk-3A5NNQCN.js";
|
|
97
97
|
import "./chunk-R3MV2GII.js";
|
|
98
98
|
import "./chunk-SQL7YNED.js";
|
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
} from "./chunk-3272HU62.js";
|
|
5
5
|
import {
|
|
6
6
|
runAgentCreateCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4KBKOG2L.js";
|
|
8
8
|
import "./chunk-P27E22MA.js";
|
|
9
9
|
import {
|
|
10
10
|
getReadableCliDb
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZYPXOQS2.js";
|
|
12
12
|
import {
|
|
13
13
|
positionalArgs,
|
|
14
14
|
readFlagValue
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-RGWYRTSY.js";
|
|
16
|
+
import "./chunk-HSBHS6KT.js";
|
|
17
17
|
import "./chunk-FE7G6DSP.js";
|
|
18
18
|
import "./chunk-QV32GSVO.js";
|
|
19
19
|
import "./chunk-GIXWVN2W.js";
|
|
@@ -64,7 +64,7 @@ import "./chunk-UAD2WT54.js";
|
|
|
64
64
|
import "./chunk-GJ4UTSAW.js";
|
|
65
65
|
import "./chunk-3PVYUPXK.js";
|
|
66
66
|
import "./chunk-N7UXTVAR.js";
|
|
67
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-J55F3IEZ.js";
|
|
68
68
|
import "./chunk-HXER7YJF.js";
|
|
69
69
|
import "./chunk-N2ZAY2DK.js";
|
|
70
70
|
import "./chunk-LKZPX6YH.js";
|
|
@@ -91,9 +91,9 @@ import "./chunk-YJPK35HB.js";
|
|
|
91
91
|
import "./chunk-QQ56R7KS.js";
|
|
92
92
|
import "./chunk-PXYBUFDB.js";
|
|
93
93
|
import "./chunk-GBWGPTA7.js";
|
|
94
|
-
import "./chunk-
|
|
94
|
+
import "./chunk-OQFOE4SJ.js";
|
|
95
95
|
import "./chunk-TRRXYFTR.js";
|
|
96
|
-
import "./chunk-
|
|
96
|
+
import "./chunk-JLZJL3WC.js";
|
|
97
97
|
import "./chunk-3A5NNQCN.js";
|
|
98
98
|
import "./chunk-R3MV2GII.js";
|
|
99
99
|
import "./chunk-SQL7YNED.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-LISC7BD4.js";
|
|
4
4
|
import {
|
|
5
5
|
getReadableCliDb
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZYPXOQS2.js";
|
|
7
7
|
import "./chunk-NF64D32W.js";
|
|
8
8
|
import "./chunk-Y5GCAMGP.js";
|
|
9
9
|
import {
|
|
@@ -121,7 +121,7 @@ async function defaultExecuteCli(provider, prompt, options) {
|
|
|
121
121
|
return executeCli(provider, prompt, options);
|
|
122
122
|
}
|
|
123
123
|
async function forwardConnectorRunMessage(machine, message, pushMessage, executeCli, env, fetchImpl) {
|
|
124
|
-
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-
|
|
124
|
+
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-LMJPGTTZ.js");
|
|
125
125
|
return handleConnectorRunMessage(message, pushMessage, executeCli, env, fetchImpl);
|
|
126
126
|
}
|
|
127
127
|
async function detectLaunchableMachineInfo() {
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
runAgentCreateCommand,
|
|
3
3
|
runAgentReadCommand,
|
|
4
4
|
runAgentUpdateCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4KBKOG2L.js";
|
|
6
6
|
import "./chunk-P27E22MA.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-ZYPXOQS2.js";
|
|
8
|
+
import "./chunk-RGWYRTSY.js";
|
|
9
|
+
import "./chunk-HSBHS6KT.js";
|
|
10
10
|
import "./chunk-FE7G6DSP.js";
|
|
11
11
|
import "./chunk-QV32GSVO.js";
|
|
12
12
|
import "./chunk-GIXWVN2W.js";
|
|
@@ -57,7 +57,7 @@ import "./chunk-UAD2WT54.js";
|
|
|
57
57
|
import "./chunk-GJ4UTSAW.js";
|
|
58
58
|
import "./chunk-3PVYUPXK.js";
|
|
59
59
|
import "./chunk-N7UXTVAR.js";
|
|
60
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-J55F3IEZ.js";
|
|
61
61
|
import "./chunk-HXER7YJF.js";
|
|
62
62
|
import "./chunk-N2ZAY2DK.js";
|
|
63
63
|
import "./chunk-LKZPX6YH.js";
|
|
@@ -81,9 +81,9 @@ import "./chunk-YJPK35HB.js";
|
|
|
81
81
|
import "./chunk-QQ56R7KS.js";
|
|
82
82
|
import "./chunk-PXYBUFDB.js";
|
|
83
83
|
import "./chunk-GBWGPTA7.js";
|
|
84
|
-
import "./chunk-
|
|
84
|
+
import "./chunk-OQFOE4SJ.js";
|
|
85
85
|
import "./chunk-TRRXYFTR.js";
|
|
86
|
-
import "./chunk-
|
|
86
|
+
import "./chunk-JLZJL3WC.js";
|
|
87
87
|
import "./chunk-3A5NNQCN.js";
|
|
88
88
|
import "./chunk-R3MV2GII.js";
|
|
89
89
|
import "./chunk-SQL7YNED.js";
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
resolveRunSettlementNote,
|
|
10
10
|
resolveWorkflowReference,
|
|
11
11
|
runAgentRunCommand
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SE7UURHT.js";
|
|
13
13
|
import "./chunk-6QDYSCPW.js";
|
|
14
14
|
import "./chunk-GAHJLSDO.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-ZYPXOQS2.js";
|
|
16
16
|
import {
|
|
17
17
|
parseAgentRunArgs
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-RGWYRTSY.js";
|
|
19
|
+
import "./chunk-HSBHS6KT.js";
|
|
20
20
|
import "./chunk-FE7G6DSP.js";
|
|
21
21
|
import "./chunk-QV32GSVO.js";
|
|
22
22
|
import "./chunk-GIXWVN2W.js";
|
|
@@ -77,7 +77,7 @@ import "./chunk-UAD2WT54.js";
|
|
|
77
77
|
import "./chunk-GJ4UTSAW.js";
|
|
78
78
|
import "./chunk-3PVYUPXK.js";
|
|
79
79
|
import "./chunk-N7UXTVAR.js";
|
|
80
|
-
import "./chunk-
|
|
80
|
+
import "./chunk-J55F3IEZ.js";
|
|
81
81
|
import "./chunk-HXER7YJF.js";
|
|
82
82
|
import "./chunk-Y5GCAMGP.js";
|
|
83
83
|
import "./chunk-N2ZAY2DK.js";
|
|
@@ -103,9 +103,9 @@ import "./chunk-QQ56R7KS.js";
|
|
|
103
103
|
import "./chunk-PXYBUFDB.js";
|
|
104
104
|
import "./chunk-UHW6SCVK.js";
|
|
105
105
|
import "./chunk-GBWGPTA7.js";
|
|
106
|
-
import "./chunk-
|
|
106
|
+
import "./chunk-OQFOE4SJ.js";
|
|
107
107
|
import "./chunk-TRRXYFTR.js";
|
|
108
|
-
import "./chunk-
|
|
108
|
+
import "./chunk-JLZJL3WC.js";
|
|
109
109
|
import "./chunk-3A5NNQCN.js";
|
|
110
110
|
import "./chunk-R3MV2GII.js";
|
|
111
111
|
import "./chunk-SQL7YNED.js";
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
runAuthProviderCommand,
|
|
9
9
|
runAuthXaiCommand,
|
|
10
10
|
syncCredentialToServer
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-6AJIU6OC.js";
|
|
12
|
+
import "./chunk-HQUGB2HM.js";
|
|
13
13
|
import "./chunk-3272HU62.js";
|
|
14
14
|
import "./chunk-GAHJLSDO.js";
|
|
15
15
|
import {
|
|
@@ -25,7 +25,7 @@ import "./chunk-S73EPYNC.js";
|
|
|
25
25
|
import "./chunk-ZEZC7IIM.js";
|
|
26
26
|
import "./chunk-BMQ2MJUK.js";
|
|
27
27
|
import "./chunk-MVOZ22RZ.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-J55F3IEZ.js";
|
|
29
29
|
import "./chunk-LKZPX6YH.js";
|
|
30
30
|
import "./chunk-YJPK35HB.js";
|
|
31
31
|
import "./chunk-GLKOYSRU.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
runLogoutCommand,
|
|
8
8
|
runWhoamiCommand,
|
|
9
9
|
saveTokenLogin
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HQUGB2HM.js";
|
|
11
11
|
import "./chunk-GAHJLSDO.js";
|
|
12
12
|
import "./chunk-4D4QD7FT.js";
|
|
13
13
|
import "./chunk-PVFYPUIM.js";
|
|
@@ -18,7 +18,7 @@ import "./chunk-324FWHUA.js";
|
|
|
18
18
|
import "./chunk-S73EPYNC.js";
|
|
19
19
|
import "./chunk-ZEZC7IIM.js";
|
|
20
20
|
import "./chunk-MVOZ22RZ.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-J55F3IEZ.js";
|
|
22
22
|
import "./chunk-YJPK35HB.js";
|
|
23
23
|
import "./chunk-GLKOYSRU.js";
|
|
24
24
|
import "./chunk-SR4FE5VD.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-P27E22MA.js";
|
|
4
4
|
import {
|
|
5
5
|
getReadableCliDb
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZYPXOQS2.js";
|
|
7
7
|
import {
|
|
8
8
|
clearCliLocalRuntimePreparedAgentCache
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RGWYRTSY.js";
|
|
10
10
|
import {
|
|
11
11
|
readCredentialAvailability
|
|
12
12
|
} from "./chunk-GIXWVN2W.js";
|
|
@@ -14,7 +14,7 @@ function buildCliLocalRuntimeDbEnv(env = process.env) {
|
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
async function getDefaultCliLocalRuntimeDb(options = {}) {
|
|
17
|
-
const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-
|
|
17
|
+
const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-UF2DAQ3F.js");
|
|
18
18
|
return getAuthorityBackedDb(options);
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -780,6 +780,12 @@ function getOrCreateCliAuthorityBrokerServer(options) {
|
|
|
780
780
|
}
|
|
781
781
|
|
|
782
782
|
// packages/cli/cliAuthorityBrokerProcess.ts
|
|
783
|
+
var testOwnedBroker = () => process.env.NOLO_TEST_AUTHORITY_BROKER_LIFETIME === "1";
|
|
784
|
+
function stopOnParentExit(stop) {
|
|
785
|
+
process.stdin.once("end", stop);
|
|
786
|
+
process.stdin.once("error", stop);
|
|
787
|
+
process.stdin.resume();
|
|
788
|
+
}
|
|
783
789
|
function describeFailure(error, depth = 0) {
|
|
784
790
|
if (!(error instanceof Error)) return { message: String(error) };
|
|
785
791
|
const { message, code, ownerPid, cause } = error;
|
|
@@ -799,6 +805,7 @@ async function launchBroker(options, detached) {
|
|
|
799
805
|
if (!dbPath || !metadataPath || !healthPath) throw new Error("Missing authority broker paths");
|
|
800
806
|
const entrypoint = isCompiledBinary() ? [] : [resolveCliEntrypointPath(import.meta.url)];
|
|
801
807
|
const { PATH, HOME, USERPROFILE, LOCALAPPDATA, SystemRoot, TMPDIR, TEMP, TMP } = process.env;
|
|
808
|
+
const testOwned = testOwnedBroker();
|
|
802
809
|
const child = spawn(getHostRuntimeExecutable(), [
|
|
803
810
|
...entrypoint,
|
|
804
811
|
detached ? "__authority-broker-supervise" : "__authority-broker",
|
|
@@ -810,8 +817,22 @@ async function launchBroker(options, detached) {
|
|
|
810
817
|
], {
|
|
811
818
|
detached,
|
|
812
819
|
windowsHide: true,
|
|
813
|
-
|
|
814
|
-
|
|
820
|
+
// Only tests hold a lifetime pipe. Production deliberately outlives its launcher.
|
|
821
|
+
stdio: [testOwned ? "pipe" : "ignore", "pipe", "ignore"],
|
|
822
|
+
env: {
|
|
823
|
+
PATH,
|
|
824
|
+
HOME,
|
|
825
|
+
USERPROFILE,
|
|
826
|
+
LOCALAPPDATA,
|
|
827
|
+
SystemRoot,
|
|
828
|
+
TMPDIR,
|
|
829
|
+
TEMP,
|
|
830
|
+
TMP,
|
|
831
|
+
NOLO_HOME: dirname(dirname(resolve(dbPath))),
|
|
832
|
+
...testOwned ? { NOLO_TEST_AUTHORITY_BROKER_LIFETIME: "1" } : {}
|
|
833
|
+
}
|
|
834
|
+
});
|
|
835
|
+
child.stdin?.on("error", () => {
|
|
815
836
|
});
|
|
816
837
|
const output = child.stdout;
|
|
817
838
|
try {
|
|
@@ -847,6 +868,7 @@ async function launchBroker(options, detached) {
|
|
|
847
868
|
});
|
|
848
869
|
return child;
|
|
849
870
|
} catch (error) {
|
|
871
|
+
child.stdin?.end();
|
|
850
872
|
child.unref();
|
|
851
873
|
throw error;
|
|
852
874
|
} finally {
|
|
@@ -861,6 +883,7 @@ async function superviseCliAuthorityBrokerProcess(args) {
|
|
|
861
883
|
const requestStop = () => stop.abort();
|
|
862
884
|
process.once("SIGTERM", requestStop);
|
|
863
885
|
process.once("SIGINT", requestStop);
|
|
886
|
+
if (testOwnedBroker()) stopOnParentExit(requestStop);
|
|
864
887
|
process.stdout.on("error", () => {
|
|
865
888
|
});
|
|
866
889
|
let ready = false;
|
|
@@ -894,9 +917,11 @@ async function superviseCliAuthorityBrokerProcess(args) {
|
|
|
894
917
|
logger.warn("Authority broker storage probe failed", error, { endpoint, workerPid: child.pid, failures });
|
|
895
918
|
}
|
|
896
919
|
}
|
|
920
|
+
invoke.close?.();
|
|
897
921
|
if (child.exitCode === null && child.signalCode === null) {
|
|
898
922
|
if (!stop.signal.aborted) logger.warn("Restarting unresponsive authority broker worker", { endpoint, workerPid: child.pid });
|
|
899
|
-
child.
|
|
923
|
+
if (child.stdin) child.stdin.end();
|
|
924
|
+
else child.kill("SIGTERM");
|
|
900
925
|
const killed = await Promise.race([exited.then(() => true), delay(5e3, false, { ref: false })]);
|
|
901
926
|
if (!killed) {
|
|
902
927
|
child.kill("SIGKILL");
|
|
@@ -914,6 +939,7 @@ async function superviseCliAuthorityBrokerProcess(args) {
|
|
|
914
939
|
} finally {
|
|
915
940
|
process.off("SIGTERM", requestStop);
|
|
916
941
|
process.off("SIGINT", requestStop);
|
|
942
|
+
if (testOwnedBroker()) process.stdin.destroy();
|
|
917
943
|
}
|
|
918
944
|
}
|
|
919
945
|
async function runCliAuthorityBrokerProcess(args) {
|
|
@@ -938,6 +964,7 @@ async function runCliAuthorityBrokerProcess(args) {
|
|
|
938
964
|
createStore: () => createLevelAuthorityStore(dbPath)
|
|
939
965
|
});
|
|
940
966
|
const close = () => {
|
|
967
|
+
if (testOwnedBroker()) process.stdin.destroy();
|
|
941
968
|
void broker.close().catch((error) => {
|
|
942
969
|
getLogger("cli.authorityBroker").error("Authority broker worker shutdown failed", error);
|
|
943
970
|
process.exit(1);
|
|
@@ -945,6 +972,7 @@ async function runCliAuthorityBrokerProcess(args) {
|
|
|
945
972
|
};
|
|
946
973
|
process.once("SIGTERM", close);
|
|
947
974
|
process.once("SIGINT", close);
|
|
975
|
+
if (testOwnedBroker()) stopOnParentExit(close);
|
|
948
976
|
process.stdout.write('{"ok":true}\n');
|
|
949
977
|
} catch (error) {
|
|
950
978
|
process.exitCode = 1;
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
} from "./chunk-YNIYE47Z.js";
|
|
37
37
|
import {
|
|
38
38
|
getDefaultCliLocalRuntimeDb
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-J55F3IEZ.js";
|
|
40
40
|
import {
|
|
41
41
|
createTokenStatsKey
|
|
42
42
|
} from "./chunk-SYTHYBMI.js";
|
|
@@ -11658,7 +11658,7 @@ async function runUsageCommand(args, deps) {
|
|
|
11658
11658
|
const output = deps.output ?? process.stdout;
|
|
11659
11659
|
const errorOutput = deps.errorOutput ?? process.stderr;
|
|
11660
11660
|
if (args[0] === "rebuild") {
|
|
11661
|
-
const { runUsageRebuildCommand } = await import("./usageRebuildCommand-
|
|
11661
|
+
const { runUsageRebuildCommand } = await import("./usageRebuildCommand-VMPIZ2ME.js");
|
|
11662
11662
|
return runUsageRebuildCommand(args.slice(1), deps);
|
|
11663
11663
|
}
|
|
11664
11664
|
if (hasFlag(args, "-h") || hasFlag(args, "--help")) {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
parsePendingApprovalResult,
|
|
8
8
|
runConnectorToolWithHostApproval,
|
|
9
9
|
withHostApprovalRequest
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HSBHS6KT.js";
|
|
11
11
|
import {
|
|
12
12
|
BROWSER_SHELL_BRIDGE_ENV
|
|
13
13
|
} from "./chunk-FE7G6DSP.js";
|
|
@@ -127,7 +127,7 @@ import {
|
|
|
127
127
|
} from "./chunk-BVCCRSGK.js";
|
|
128
128
|
import {
|
|
129
129
|
getDefaultCliLocalRuntimeDb
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-J55F3IEZ.js";
|
|
131
131
|
import {
|
|
132
132
|
defaultLoopbackRequest,
|
|
133
133
|
loadLocalRunChildDialogIds
|
|
@@ -6505,7 +6505,7 @@ function buildServerPlatformToolExecutors(args) {
|
|
|
6505
6505
|
const shortHash = (value, len) => createHash2("sha256").update(value).digest("hex").slice(0, len);
|
|
6506
6506
|
const localMemoryContext = async () => {
|
|
6507
6507
|
const openCliLocalRuntimeDb = async () => {
|
|
6508
|
-
const { getDefaultCliLocalRuntimeDb: getDefaultCliLocalRuntimeDb2 } = await import("./localRuntimeDb-
|
|
6508
|
+
const { getDefaultCliLocalRuntimeDb: getDefaultCliLocalRuntimeDb2 } = await import("./localRuntimeDb-ZJFGNHML.js");
|
|
6509
6509
|
return getDefaultCliLocalRuntimeDb2({ env: args.env });
|
|
6510
6510
|
};
|
|
6511
6511
|
try {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-GAHJLSDO.js";
|
|
9
9
|
import {
|
|
10
10
|
getReadableCliDb
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZYPXOQS2.js";
|
|
12
12
|
import {
|
|
13
13
|
INSTABOX_RUN_CONFIG_ENV,
|
|
14
14
|
buildLocalRunEnv,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
resolveServerUrl,
|
|
34
34
|
validateInstaboxWorkspaceSelection,
|
|
35
35
|
writeUsage
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-RGWYRTSY.js";
|
|
37
37
|
import {
|
|
38
38
|
boxGlyphs,
|
|
39
39
|
displayWidth,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
} from "./chunk-26KL6533.js";
|
|
117
117
|
import {
|
|
118
118
|
getDefaultCliLocalRuntimeDb
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-J55F3IEZ.js";
|
|
120
120
|
import {
|
|
121
121
|
parsePositiveFiniteNumberOrFallback
|
|
122
122
|
} from "./chunk-Y5GCAMGP.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// packages/cli/agentCommandSupport.ts
|
|
6
6
|
async function getDefaultCliDb() {
|
|
7
|
-
const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-
|
|
7
|
+
const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-ZJFGNHML.js");
|
|
8
8
|
return getDefaultCliLocalRuntimeDb();
|
|
9
9
|
}
|
|
10
10
|
function createNullCliDb() {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
runCliAuthorityBrokerProcess,
|
|
3
3
|
startCliAuthorityBrokerProcess,
|
|
4
4
|
superviseCliAuthorityBrokerProcess
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JLZJL3WC.js";
|
|
6
6
|
import "./chunk-3A5NNQCN.js";
|
|
7
7
|
import "./chunk-R3MV2GII.js";
|
|
8
8
|
import "./chunk-SQL7YNED.js";
|
|
@@ -112,7 +112,7 @@ function createDaemonShortcutCommand(path, description, command) {
|
|
|
112
112
|
// packages/cli/agentInternalCommandEntries.ts
|
|
113
113
|
function getAgentInternalCommandEntries() {
|
|
114
114
|
const createAgentRunCommand = (path, description) => createContextCommand(path, description, async (args, ctx) => {
|
|
115
|
-
const { runAgentRunCommand } = await import("./agentRunCommand-
|
|
115
|
+
const { runAgentRunCommand } = await import("./agentRunCommand-7MCCRUJY.js");
|
|
116
116
|
return runAgentRunCommand(args, {
|
|
117
117
|
env: ctx.env,
|
|
118
118
|
scriptDir: ctx.scriptDir,
|
|
@@ -124,11 +124,11 @@ function getAgentInternalCommandEntries() {
|
|
|
124
124
|
createAgentRunCommand(["run"], "Run a no-login local agent in this workspace"),
|
|
125
125
|
createAgentRunCommand(["chat"], "Chat with an agent"),
|
|
126
126
|
createEnvCommand(["agent", "list"], "List owned agents", async (args, deps) => {
|
|
127
|
-
const { runAgentListCommand } = await import("./agentListCommands-
|
|
127
|
+
const { runAgentListCommand } = await import("./agentListCommands-CTY7WAMN.js");
|
|
128
128
|
return runAgentListCommand(args, deps);
|
|
129
129
|
}),
|
|
130
130
|
createEnvCommand(["agent", "create"], "Create a new agent", async (args, deps) => {
|
|
131
|
-
const { runAgentCreateCommand } = await import("./agentRecordCommands-
|
|
131
|
+
const { runAgentCreateCommand } = await import("./agentRecordCommands-IM2WIFKB.js");
|
|
132
132
|
return runAgentCreateCommand(args, deps);
|
|
133
133
|
}),
|
|
134
134
|
createEnvCommand(["agent", "models"], "List models: --preset <id> (server discovery, exit 1 on static fallback) or --url <base> --api-key <key> (OpenAI-compatible /models)", async (args, deps) => {
|
|
@@ -140,11 +140,11 @@ function getAgentInternalCommandEntries() {
|
|
|
140
140
|
return runAgentProvidersCommand(args, deps);
|
|
141
141
|
}),
|
|
142
142
|
createEnvCommand(["agent", "pull"], "Cache an agent for local runs", async (args, deps) => {
|
|
143
|
-
const { runAgentPullCommand } = await import("./agentPullCommand-
|
|
143
|
+
const { runAgentPullCommand } = await import("./agentPullCommand-2EYJ5ENC.js");
|
|
144
144
|
return runAgentPullCommand(args, deps);
|
|
145
145
|
}),
|
|
146
146
|
createEnvCommand(["agent", "read"], "Read a single agent", async (args, deps) => {
|
|
147
|
-
const { runAgentReadCommand } = await import("./agentRecordCommands-
|
|
147
|
+
const { runAgentReadCommand } = await import("./agentRecordCommands-IM2WIFKB.js");
|
|
148
148
|
return runAgentReadCommand(args, deps);
|
|
149
149
|
}),
|
|
150
150
|
createAgentRunCommand(["agent", "run"], "Run an agent"),
|
|
@@ -177,31 +177,31 @@ function getAgentInternalCommandEntries() {
|
|
|
177
177
|
return runSetupOfflineMarxistsAgentCommand(args, deps);
|
|
178
178
|
}),
|
|
179
179
|
createEnvCommand(["agent", "update"], "Update agent fields", async (args, deps) => {
|
|
180
|
-
const { runAgentUpdateCommand } = await import("./agentRecordCommands-
|
|
180
|
+
const { runAgentUpdateCommand } = await import("./agentRecordCommands-IM2WIFKB.js");
|
|
181
181
|
return runAgentUpdateCommand(args, deps);
|
|
182
182
|
}),
|
|
183
183
|
createEnvCommand(["agent", "email", "provision"], "Provision a controlled inbox for an agent", async (args, deps) => {
|
|
184
|
-
const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-
|
|
184
|
+
const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-UKPURCCI.js");
|
|
185
185
|
return runAgentEmailProvisionCommand(args, deps);
|
|
186
186
|
}),
|
|
187
187
|
createEnvCommand(["agent", "email", "bind"], "Bind an existing email address to an agent", async (args, deps) => {
|
|
188
|
-
const { runAgentEmailBindCommand } = await import("./agentEmailCommands-
|
|
188
|
+
const { runAgentEmailBindCommand } = await import("./agentEmailCommands-UKPURCCI.js");
|
|
189
189
|
return runAgentEmailBindCommand(args, deps);
|
|
190
190
|
}),
|
|
191
191
|
createEnvCommand(["agent", "email", "transfer"], "Transfer an email identity from one agent to another (cross-account)", async (args, deps) => {
|
|
192
|
-
const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-
|
|
192
|
+
const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-UKPURCCI.js");
|
|
193
193
|
return runAgentEmailTransferCommand(args, deps);
|
|
194
194
|
}),
|
|
195
195
|
createEnvCommand(
|
|
196
196
|
["agent", "email", "create-and-provision"],
|
|
197
197
|
"Create an agent and provision its controlled inbox",
|
|
198
198
|
async (args, deps) => {
|
|
199
|
-
const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-
|
|
199
|
+
const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-UKPURCCI.js");
|
|
200
200
|
return runAgentEmailCreateAndProvisionCommand(args, deps);
|
|
201
201
|
}
|
|
202
202
|
),
|
|
203
203
|
createEnvCommand(["agent", "delete"], "Hard-delete an agent's private and public records", async (args, deps) => {
|
|
204
|
-
const { runAgentDeleteCommand } = await import("./agentDeleteCommand-
|
|
204
|
+
const { runAgentDeleteCommand } = await import("./agentDeleteCommand-OKR6IDGK.js");
|
|
205
205
|
return runAgentDeleteCommand(args, deps);
|
|
206
206
|
}),
|
|
207
207
|
createEnvCommand(["agent", "grant"], "Grant another user access to this agent's owner credentials", async (args, deps) => {
|
|
@@ -221,15 +221,15 @@ function getAgentInternalCommandEntries() {
|
|
|
221
221
|
return runAgentRevokeGrantCommand(args, deps);
|
|
222
222
|
}),
|
|
223
223
|
createEnvCommand(["agent", "bind-current"], "Bind an agent to this machine", async (args, deps) => {
|
|
224
|
-
const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-
|
|
224
|
+
const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-WTCQHXHZ.js");
|
|
225
225
|
return runAgentBindCurrentCommand(args, deps);
|
|
226
226
|
}),
|
|
227
227
|
createEnvCommand(["agent", "smoke-current"], "Smoke test a bound agent through this machine", async (args, deps) => {
|
|
228
|
-
const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-
|
|
228
|
+
const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-WTCQHXHZ.js");
|
|
229
229
|
return runAgentSmokeCurrentCommand(args, deps);
|
|
230
230
|
}),
|
|
231
231
|
createEnvCommand(["agent", "runtime-doctor"], "Diagnose current machine runtime compatibility", async (args, deps) => {
|
|
232
|
-
const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-
|
|
232
|
+
const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-WTCQHXHZ.js");
|
|
233
233
|
return runAgentRuntimeDoctorCommand(args, deps);
|
|
234
234
|
}),
|
|
235
235
|
createAgentRunCommand(["agent", "chat"], "Chat with an agent")
|
|
@@ -421,23 +421,23 @@ function getCiInternalCommandEntries() {
|
|
|
421
421
|
function getDialogInternalCommandEntries() {
|
|
422
422
|
return [
|
|
423
423
|
createEnvCommand(["dialog", "search"], "Search dialog messages across dialogs", async (args, deps) => {
|
|
424
|
-
const { runDialogSearchCommand } = await import("./dialogCommands-
|
|
424
|
+
const { runDialogSearchCommand } = await import("./dialogCommands-IZSD4CQM.js");
|
|
425
425
|
return runDialogSearchCommand(args, deps);
|
|
426
426
|
}),
|
|
427
427
|
createEnvCommand(["dialog", "list"], "List dialogs (default --limit 50; --all/--limit 0 full; --jsonl streams)", async (args, deps) => {
|
|
428
|
-
const { runDialogListCommand } = await import("./dialogCommands-
|
|
428
|
+
const { runDialogListCommand } = await import("./dialogCommands-IZSD4CQM.js");
|
|
429
429
|
return runDialogListCommand(args, deps);
|
|
430
430
|
}),
|
|
431
431
|
createEnvCommand(["dialog", "delete"], "Delete one or more dialogs", async (args, deps) => {
|
|
432
|
-
const { runDialogDeleteCommand } = await import("./dialogCommands-
|
|
432
|
+
const { runDialogDeleteCommand } = await import("./dialogCommands-IZSD4CQM.js");
|
|
433
433
|
return runDialogDeleteCommand(args, deps);
|
|
434
434
|
}),
|
|
435
435
|
createEnvCommand(["dialog", "query"], "Query dialogs by subject refs (default --limit 50; --all full; --jsonl streams)", async (args, deps) => {
|
|
436
|
-
const { runDialogQueryCommand } = await import("./dialogCommands-
|
|
436
|
+
const { runDialogQueryCommand } = await import("./dialogCommands-IZSD4CQM.js");
|
|
437
437
|
return runDialogQueryCommand(args, deps);
|
|
438
438
|
}),
|
|
439
439
|
createEnvCommand(["dialog", "read"], "Read a dialog", async (args, deps) => {
|
|
440
|
-
const { runDialogReadCommand } = await import("./dialogCommands-
|
|
440
|
+
const { runDialogReadCommand } = await import("./dialogCommands-IZSD4CQM.js");
|
|
441
441
|
return runDialogReadCommand(args, deps);
|
|
442
442
|
}),
|
|
443
443
|
createEnvCommand(["dialog", "notify"], "Deliver a notification into a live CLI dialog's existing queue (--message/--file, --idempotency-key; --status for the receipt)", async (args, deps) => {
|
|
@@ -445,7 +445,7 @@ function getDialogInternalCommandEntries() {
|
|
|
445
445
|
return runDialogNotifyCommand(args, deps);
|
|
446
446
|
}),
|
|
447
447
|
createEnvCommand(["dialog", "status"], "Read compact dialog status", async (args, deps) => {
|
|
448
|
-
const { runDialogStatusCommand } = await import("./dialogCommands-
|
|
448
|
+
const { runDialogStatusCommand } = await import("./dialogCommands-IZSD4CQM.js");
|
|
449
449
|
return runDialogStatusCommand(args, deps);
|
|
450
450
|
})
|
|
451
451
|
];
|
|
@@ -537,15 +537,15 @@ function getSpaceInternalCommandEntries() {
|
|
|
537
537
|
function getSystemInternalCommandEntries(renderHelpText2) {
|
|
538
538
|
return [
|
|
539
539
|
createContextCommand(["mcp", "local", "authorize"], "Authorize a local HTTP MCP connection (explicit registration only)", async (args, ctx) => {
|
|
540
|
-
const { runMcpLocalAuthorizeCommand } = await import("./mcpLocalAuthorizeCommand-
|
|
540
|
+
const { runMcpLocalAuthorizeCommand } = await import("./mcpLocalAuthorizeCommand-Y3SOZFXT.js");
|
|
541
541
|
return runMcpLocalAuthorizeCommand(args, ctx.env);
|
|
542
542
|
}),
|
|
543
543
|
createContextCommand(["dialog", "usage"], "Show dialog tokens, recorded duration and speed by basis", async (args, ctx) => {
|
|
544
|
-
const { runDialogUsageCommand } = await import("./dialogUsageCommand-
|
|
544
|
+
const { runDialogUsageCommand } = await import("./dialogUsageCommand-3JMINURR.js");
|
|
545
545
|
return runDialogUsageCommand(args, { env: ctx.env });
|
|
546
546
|
}),
|
|
547
547
|
createContextCommand(["usage"], "Summarize local token usage by day/provider/model/agent (reads DayStats via LevelDB iterator)", async (args, ctx) => {
|
|
548
|
-
const { runUsageCommand } = await import("./usageCommand-
|
|
548
|
+
const { runUsageCommand } = await import("./usageCommand-HVCMX7BG.js");
|
|
549
549
|
return runUsageCommand(args, { env: ctx.env });
|
|
550
550
|
}),
|
|
551
551
|
createContextCommand(["auth", "cooldown"], "List / clear credential availability cooldowns", async (_args, ctx) => {
|
|
@@ -553,59 +553,59 @@ function getSystemInternalCommandEntries(renderHelpText2) {
|
|
|
553
553
|
return runAuthCooldownCommand(_args, ctx.env);
|
|
554
554
|
}),
|
|
555
555
|
createArgsCommand(["auth", "cloudflare"], "Authorize Cloudflare OAuth", async (args) => {
|
|
556
|
-
const { runAuthCloudflareCommand } = await import("./authCommand-
|
|
556
|
+
const { runAuthCloudflareCommand } = await import("./authCommand-HBO5G6RL.js");
|
|
557
557
|
return runAuthCloudflareCommand(args);
|
|
558
558
|
}),
|
|
559
559
|
createArgsCommand(["auth", "chatgpt"], "Authorize ChatGPT / OpenAI Codex OAuth", async (args) => {
|
|
560
|
-
const { runAuthChatgptCommand } = await import("./authCommand-
|
|
560
|
+
const { runAuthChatgptCommand } = await import("./authCommand-HBO5G6RL.js");
|
|
561
561
|
return runAuthChatgptCommand(args);
|
|
562
562
|
}),
|
|
563
563
|
createArgsCommand(["auth", "xai"], "Authorize xAI Grok OAuth (SuperGrok subscription)", async (args) => {
|
|
564
|
-
const { runAuthXaiCommand } = await import("./authCommand-
|
|
564
|
+
const { runAuthXaiCommand } = await import("./authCommand-HBO5G6RL.js");
|
|
565
565
|
return runAuthXaiCommand(args);
|
|
566
566
|
}),
|
|
567
567
|
createArgsCommand(["auth", "antigravity"], "Authorize Google Antigravity OAuth", async (args) => {
|
|
568
|
-
const { runAuthAntigravityCommand } = await import("./authCommand-
|
|
568
|
+
const { runAuthAntigravityCommand } = await import("./authCommand-HBO5G6RL.js");
|
|
569
569
|
return runAuthAntigravityCommand(args);
|
|
570
570
|
}),
|
|
571
571
|
createArgsCommand(["auth", "claude"], "Authorize Claude Pro/Max OAuth", async (args) => {
|
|
572
|
-
const { runAuthClaudeCommand } = await import("./authCommand-
|
|
572
|
+
const { runAuthClaudeCommand } = await import("./authCommand-HBO5G6RL.js");
|
|
573
573
|
return runAuthClaudeCommand(args);
|
|
574
574
|
}),
|
|
575
575
|
createArgsCommand(["auth", "cursor"], "Authorize Cursor Pro OAuth", async (args) => {
|
|
576
|
-
const { runAuthCursorCommand } = await import("./authCommand-
|
|
576
|
+
const { runAuthCursorCommand } = await import("./authCommand-HBO5G6RL.js");
|
|
577
577
|
return runAuthCursorCommand(args);
|
|
578
578
|
}),
|
|
579
579
|
createArgsCommand(["auth", "devin"], "Authorize Devin OAuth (Free SWE-2)", async (args) => {
|
|
580
|
-
const { runAuthDevinCommand } = await import("./authCommand-
|
|
580
|
+
const { runAuthDevinCommand } = await import("./authCommand-HBO5G6RL.js");
|
|
581
581
|
return runAuthDevinCommand(args);
|
|
582
582
|
}),
|
|
583
583
|
createArgsCommand(["login"], "Log in to Nolo", async (args) => {
|
|
584
|
-
const { runLoginCommand } = await import("./authCommands-
|
|
584
|
+
const { runLoginCommand } = await import("./authCommands-T5FODCEG.js");
|
|
585
585
|
return runLoginCommand(args);
|
|
586
586
|
}),
|
|
587
587
|
createContextCommand(["logout"], "Log out of Nolo", async (args, ctx) => {
|
|
588
|
-
const { runLogoutCommand } = await import("./authCommands-
|
|
588
|
+
const { runLogoutCommand } = await import("./authCommands-T5FODCEG.js");
|
|
589
589
|
return runLogoutCommand({ args, env: ctx.env });
|
|
590
590
|
}),
|
|
591
591
|
createContextCommand(["whoami"], "Show the current login state", async (args, ctx) => {
|
|
592
|
-
const { runWhoamiCommand } = await import("./authCommands-
|
|
592
|
+
const { runWhoamiCommand } = await import("./authCommands-T5FODCEG.js");
|
|
593
593
|
return runWhoamiCommand({ args, env: ctx.env });
|
|
594
594
|
}),
|
|
595
595
|
createEntrypointEnvCommand(["connect"], "Hold a connector websocket for this machine", async (args, deps) => {
|
|
596
|
-
const { runMachineConnectCommand } = await import("./machineCommands-
|
|
596
|
+
const { runMachineConnectCommand } = await import("./machineCommands-TGA5EH2G.js");
|
|
597
597
|
return runMachineConnectCommand(args, deps);
|
|
598
598
|
}),
|
|
599
599
|
createDaemonShortcutCommand(["daemon"], "Run the connector daemon shortcut", async (args, deps) => {
|
|
600
|
-
const { runMachineConnectCommand } = await import("./machineCommands-
|
|
600
|
+
const { runMachineConnectCommand } = await import("./machineCommands-TGA5EH2G.js");
|
|
601
601
|
return runMachineConnectCommand(args, deps);
|
|
602
602
|
}),
|
|
603
603
|
createEnvCommand(["machine", "status"], "List machines registered to the current profile", async (args, deps) => {
|
|
604
|
-
const { runMachineStatusCommand } = await import("./machineCommands-
|
|
604
|
+
const { runMachineStatusCommand } = await import("./machineCommands-TGA5EH2G.js");
|
|
605
605
|
return runMachineStatusCommand(args, deps);
|
|
606
606
|
}),
|
|
607
607
|
createEnvCommand(["doctor", "runtime"], "Diagnose local-first agent runtime selection", async (args, deps) => {
|
|
608
|
-
const { runDoctorRuntimeCommand } = await import("./runtimeDoctorCommands-
|
|
608
|
+
const { runDoctorRuntimeCommand } = await import("./runtimeDoctorCommands-V3M3JTUV.js");
|
|
609
609
|
return runDoctorRuntimeCommand(args, deps);
|
|
610
610
|
}),
|
|
611
611
|
createContextCommand(["doctor"], "Show CLI doctor information", async (_args, ctx) => {
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
runDialogSearchCommand,
|
|
16
16
|
runDialogStatusCommand,
|
|
17
17
|
sortDialogs
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-V644LXPC.js";
|
|
19
19
|
import "./chunk-ID4G2MAR.js";
|
|
20
20
|
import "./chunk-YWLMUFZ5.js";
|
|
21
21
|
import "./chunk-Y5GCAMGP.js";
|
|
@@ -30,9 +30,9 @@ import "./chunk-7XO73H5X.js";
|
|
|
30
30
|
import "./chunk-S25VJYXV.js";
|
|
31
31
|
import "./chunk-QQ56R7KS.js";
|
|
32
32
|
import "./chunk-GBWGPTA7.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-OQFOE4SJ.js";
|
|
34
34
|
import "./chunk-TRRXYFTR.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-JLZJL3WC.js";
|
|
36
36
|
import "./chunk-3A5NNQCN.js";
|
|
37
37
|
import "./chunk-R3MV2GII.js";
|
|
38
38
|
import "./chunk-SQL7YNED.js";
|
|
@@ -134,7 +134,7 @@ function readLiveBrokerEndpoint(metadataPath) {
|
|
|
134
134
|
}
|
|
135
135
|
async function openLocalTokenScanClient(env) {
|
|
136
136
|
const [{ getDefaultCliLocalRuntimeAuthority }, driver, broker] = await Promise.all([
|
|
137
|
-
import("./localRuntimeAuthority-
|
|
137
|
+
import("./localRuntimeAuthority-UF2DAQ3F.js"),
|
|
138
138
|
import("./cliAuthorityStoreDriver-6FE3BJNB.js"),
|
|
139
139
|
import("./cliAuthorityBrokerClient-TFNXJLXL.js")
|
|
140
140
|
]);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runAgentCreateCommand
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4KBKOG2L.js";
|
|
4
4
|
import "./chunk-P27E22MA.js";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-ZYPXOQS2.js";
|
|
6
|
+
import "./chunk-RGWYRTSY.js";
|
|
7
|
+
import "./chunk-HSBHS6KT.js";
|
|
8
8
|
import "./chunk-FE7G6DSP.js";
|
|
9
9
|
import "./chunk-QV32GSVO.js";
|
|
10
10
|
import "./chunk-GIXWVN2W.js";
|
|
@@ -58,7 +58,7 @@ import "./chunk-UAD2WT54.js";
|
|
|
58
58
|
import "./chunk-GJ4UTSAW.js";
|
|
59
59
|
import "./chunk-3PVYUPXK.js";
|
|
60
60
|
import "./chunk-N7UXTVAR.js";
|
|
61
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-J55F3IEZ.js";
|
|
62
62
|
import "./chunk-HXER7YJF.js";
|
|
63
63
|
import "./chunk-N2ZAY2DK.js";
|
|
64
64
|
import "./chunk-LKZPX6YH.js";
|
|
@@ -82,9 +82,9 @@ import "./chunk-YJPK35HB.js";
|
|
|
82
82
|
import "./chunk-QQ56R7KS.js";
|
|
83
83
|
import "./chunk-PXYBUFDB.js";
|
|
84
84
|
import "./chunk-GBWGPTA7.js";
|
|
85
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-OQFOE4SJ.js";
|
|
86
86
|
import "./chunk-TRRXYFTR.js";
|
|
87
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-JLZJL3WC.js";
|
|
88
88
|
import "./chunk-3A5NNQCN.js";
|
|
89
89
|
import "./chunk-R3MV2GII.js";
|
|
90
90
|
import "./chunk-SQL7YNED.js";
|
package/index.js
CHANGED
|
@@ -131,9 +131,9 @@ async function runScript(script, forwardedArgs, env) {
|
|
|
131
131
|
return proc.exited;
|
|
132
132
|
}
|
|
133
133
|
async function launchTuiWorkspace(args2) {
|
|
134
|
-
const { startTuiWorkspace } = await import("./readlineWorkspace-
|
|
134
|
+
const { startTuiWorkspace } = await import("./readlineWorkspace-HA6DWK4N.js");
|
|
135
135
|
const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-HROLGN4F.js");
|
|
136
|
-
const { setCliAutoCompactionSummaryFallback } = await import("./localRuntimeAdapter-
|
|
136
|
+
const { setCliAutoCompactionSummaryFallback } = await import("./localRuntimeAdapter-CNFP7ZEP.js");
|
|
137
137
|
setCliAutoCompactionSummaryFallback(
|
|
138
138
|
createTuiSummaryLlmCaller(args2.env, { platformPrimary: true })
|
|
139
139
|
);
|
|
@@ -160,16 +160,16 @@ async function launchTuiWorkspace(args2) {
|
|
|
160
160
|
}
|
|
161
161
|
async function main() {
|
|
162
162
|
if (args[0] === "__authority-broker") {
|
|
163
|
-
const { runCliAuthorityBrokerProcess } = await import("./cliAuthorityBrokerProcess-
|
|
163
|
+
const { runCliAuthorityBrokerProcess } = await import("./cliAuthorityBrokerProcess-5ZFBTHLB.js");
|
|
164
164
|
await runCliAuthorityBrokerProcess(args.slice(1));
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
167
|
if (args[0] === "__authority-broker-supervise") {
|
|
168
|
-
const { superviseCliAuthorityBrokerProcess } = await import("./cliAuthorityBrokerProcess-
|
|
168
|
+
const { superviseCliAuthorityBrokerProcess } = await import("./cliAuthorityBrokerProcess-5ZFBTHLB.js");
|
|
169
169
|
await superviseCliAuthorityBrokerProcess(args.slice(1));
|
|
170
170
|
return;
|
|
171
171
|
}
|
|
172
|
-
const { createCliRuntimeContext, looksLikeDaemonShortcut, renderHelpText, resolveCommand, runResolvedCommand } = await import("./commandRegistry-
|
|
172
|
+
const { createCliRuntimeContext, looksLikeDaemonShortcut, renderHelpText, resolveCommand, runResolvedCommand } = await import("./commandRegistry-YSV6ZWPO.js");
|
|
173
173
|
const { buildCliRuntimeEnv, loadProfileConfig } = await import("./profileConfig-KOWK4HOG.js");
|
|
174
174
|
const { resolveTuiLaunchMode } = await import("./runtimeModeArgs-X7DL7PUN.js");
|
|
175
175
|
const runtimeEnv = {
|
|
@@ -40,8 +40,8 @@ import {
|
|
|
40
40
|
withRuntimeEnabledPacksAndPrompt,
|
|
41
41
|
writeDialog,
|
|
42
42
|
writeLocalTokenRecord
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-RGWYRTSY.js";
|
|
44
|
+
import "./chunk-HSBHS6KT.js";
|
|
45
45
|
import "./chunk-FE7G6DSP.js";
|
|
46
46
|
import "./chunk-QV32GSVO.js";
|
|
47
47
|
import "./chunk-GIXWVN2W.js";
|
|
@@ -91,7 +91,7 @@ import "./chunk-UAD2WT54.js";
|
|
|
91
91
|
import "./chunk-GJ4UTSAW.js";
|
|
92
92
|
import "./chunk-3PVYUPXK.js";
|
|
93
93
|
import "./chunk-N7UXTVAR.js";
|
|
94
|
-
import "./chunk-
|
|
94
|
+
import "./chunk-J55F3IEZ.js";
|
|
95
95
|
import "./chunk-HXER7YJF.js";
|
|
96
96
|
import {
|
|
97
97
|
defaultLoopbackRequest,
|
|
@@ -120,9 +120,9 @@ import "./chunk-YJPK35HB.js";
|
|
|
120
120
|
import "./chunk-QQ56R7KS.js";
|
|
121
121
|
import "./chunk-PXYBUFDB.js";
|
|
122
122
|
import "./chunk-GBWGPTA7.js";
|
|
123
|
-
import "./chunk-
|
|
123
|
+
import "./chunk-OQFOE4SJ.js";
|
|
124
124
|
import "./chunk-TRRXYFTR.js";
|
|
125
|
-
import "./chunk-
|
|
125
|
+
import "./chunk-JLZJL3WC.js";
|
|
126
126
|
import "./chunk-3A5NNQCN.js";
|
|
127
127
|
import "./chunk-R3MV2GII.js";
|
|
128
128
|
import "./chunk-SQL7YNED.js";
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
createCliLocalMcpConnectionRevisionWriter,
|
|
4
4
|
getDefaultCliLocalRuntimeAuthority,
|
|
5
5
|
getDefaultCliLocalRuntimeDb
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OQFOE4SJ.js";
|
|
7
7
|
import "./chunk-TRRXYFTR.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-JLZJL3WC.js";
|
|
9
9
|
import "./chunk-3A5NNQCN.js";
|
|
10
10
|
import "./chunk-R3MV2GII.js";
|
|
11
11
|
import "./chunk-SQL7YNED.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
buildMachinePermissionPromptBlock,
|
|
3
3
|
handleConnectorRunMessage,
|
|
4
4
|
resolveMachineRunPermissionPolicy
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RE32BIKY.js";
|
|
6
6
|
import {
|
|
7
7
|
MAX_CONNECTOR_TIMER_DELAY_MS,
|
|
8
8
|
clampConnectorTimerDelayMs,
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
resolveConnectorProbeTimeoutMs,
|
|
12
12
|
resolveConnectorWebSocketTarget
|
|
13
13
|
} from "./chunk-LISC7BD4.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-RGWYRTSY.js";
|
|
15
|
+
import "./chunk-HSBHS6KT.js";
|
|
16
16
|
import "./chunk-FE7G6DSP.js";
|
|
17
17
|
import "./chunk-QV32GSVO.js";
|
|
18
18
|
import "./chunk-GIXWVN2W.js";
|
|
@@ -66,7 +66,7 @@ import "./chunk-UAD2WT54.js";
|
|
|
66
66
|
import "./chunk-GJ4UTSAW.js";
|
|
67
67
|
import "./chunk-3PVYUPXK.js";
|
|
68
68
|
import "./chunk-N7UXTVAR.js";
|
|
69
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-J55F3IEZ.js";
|
|
70
70
|
import "./chunk-HXER7YJF.js";
|
|
71
71
|
import {
|
|
72
72
|
parsePositiveFiniteNumberOrFallback
|
|
@@ -95,9 +95,9 @@ import "./chunk-YJPK35HB.js";
|
|
|
95
95
|
import "./chunk-QQ56R7KS.js";
|
|
96
96
|
import "./chunk-PXYBUFDB.js";
|
|
97
97
|
import "./chunk-GBWGPTA7.js";
|
|
98
|
-
import "./chunk-
|
|
98
|
+
import "./chunk-OQFOE4SJ.js";
|
|
99
99
|
import "./chunk-TRRXYFTR.js";
|
|
100
|
-
import "./chunk-
|
|
100
|
+
import "./chunk-JLZJL3WC.js";
|
|
101
101
|
import "./chunk-3A5NNQCN.js";
|
|
102
102
|
import "./chunk-R3MV2GII.js";
|
|
103
103
|
import "./chunk-SQL7YNED.js";
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
runtimeWorkspacePermissionPolicy,
|
|
12
12
|
scopePermissionPolicyToRuntimeWorkspace,
|
|
13
13
|
summarizeAgentConfigForLogs
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-RE32BIKY.js";
|
|
15
|
+
import "./chunk-RGWYRTSY.js";
|
|
16
|
+
import "./chunk-HSBHS6KT.js";
|
|
17
17
|
import "./chunk-FE7G6DSP.js";
|
|
18
18
|
import "./chunk-QV32GSVO.js";
|
|
19
19
|
import "./chunk-GIXWVN2W.js";
|
|
@@ -63,7 +63,7 @@ import "./chunk-UAD2WT54.js";
|
|
|
63
63
|
import "./chunk-GJ4UTSAW.js";
|
|
64
64
|
import "./chunk-3PVYUPXK.js";
|
|
65
65
|
import "./chunk-N7UXTVAR.js";
|
|
66
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-J55F3IEZ.js";
|
|
67
67
|
import "./chunk-HXER7YJF.js";
|
|
68
68
|
import "./chunk-N2ZAY2DK.js";
|
|
69
69
|
import "./chunk-LKZPX6YH.js";
|
|
@@ -87,9 +87,9 @@ import "./chunk-YJPK35HB.js";
|
|
|
87
87
|
import "./chunk-QQ56R7KS.js";
|
|
88
88
|
import "./chunk-PXYBUFDB.js";
|
|
89
89
|
import "./chunk-GBWGPTA7.js";
|
|
90
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-OQFOE4SJ.js";
|
|
91
91
|
import "./chunk-TRRXYFTR.js";
|
|
92
|
-
import "./chunk-
|
|
92
|
+
import "./chunk-JLZJL3WC.js";
|
|
93
93
|
import "./chunk-3A5NNQCN.js";
|
|
94
94
|
import "./chunk-R3MV2GII.js";
|
|
95
95
|
import "./chunk-SQL7YNED.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDefaultMcpLocalOAuthManager,
|
|
3
3
|
openMcpLocalManagement
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-HSBHS6KT.js";
|
|
5
|
+
import "./chunk-OQFOE4SJ.js";
|
|
6
6
|
import "./chunk-TRRXYFTR.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-JLZJL3WC.js";
|
|
8
8
|
import "./chunk-3A5NNQCN.js";
|
|
9
9
|
import "./chunk-R3MV2GII.js";
|
|
10
10
|
import "./chunk-SQL7YNED.js";
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
runXaiOAuthDeviceCode,
|
|
17
17
|
runXaiOAuthLogin,
|
|
18
18
|
syncCredentialToServer
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6AJIU6OC.js";
|
|
20
20
|
import {
|
|
21
21
|
createAccountSessionCore,
|
|
22
22
|
createDeviceAuthorizationProtocol,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
parseStoredTokenEntries,
|
|
25
25
|
parseUserToken,
|
|
26
26
|
saveTokenLogin
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-HQUGB2HM.js";
|
|
28
28
|
import {
|
|
29
29
|
listFavoriteAgentIdsAcrossServers,
|
|
30
30
|
listLocalCachedAgents,
|
|
@@ -114,7 +114,7 @@ import {
|
|
|
114
114
|
toolRowDetailLine,
|
|
115
115
|
tuiRenderThemeFingerprint,
|
|
116
116
|
userBubbleSurfaceBackgroundSequence
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-SE7UURHT.js";
|
|
118
118
|
import "./chunk-6QDYSCPW.js";
|
|
119
119
|
import "./chunk-GAHJLSDO.js";
|
|
120
120
|
import {
|
|
@@ -122,7 +122,7 @@ import {
|
|
|
122
122
|
} from "./chunk-P27E22MA.js";
|
|
123
123
|
import {
|
|
124
124
|
getReadableCliDb
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-ZYPXOQS2.js";
|
|
126
126
|
import {
|
|
127
127
|
buildCliNoticeText,
|
|
128
128
|
buildNoticeTasksFromRuns,
|
|
@@ -138,12 +138,12 @@ import {
|
|
|
138
138
|
renderNoticeElements,
|
|
139
139
|
resolveNoticeTitle,
|
|
140
140
|
setTurnNoticeMeta
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-RGWYRTSY.js";
|
|
142
142
|
import {
|
|
143
143
|
createHostApprovalCardQueue,
|
|
144
144
|
formatApprovalRemaining,
|
|
145
145
|
registerHostApprovalRenderer
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-HSBHS6KT.js";
|
|
147
147
|
import "./chunk-FE7G6DSP.js";
|
|
148
148
|
import {
|
|
149
149
|
ANSI_ESCAPE_REGEX,
|
|
@@ -267,14 +267,14 @@ import "./chunk-3PVYUPXK.js";
|
|
|
267
267
|
import "./chunk-N7UXTVAR.js";
|
|
268
268
|
import {
|
|
269
269
|
getDefaultCliLocalRuntimeDb
|
|
270
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-J55F3IEZ.js";
|
|
271
271
|
import "./chunk-HXER7YJF.js";
|
|
272
272
|
import {
|
|
273
273
|
isHiddenFromDialogList,
|
|
274
274
|
normalizeDialogRecord,
|
|
275
275
|
readDialogSnapshot,
|
|
276
276
|
sortDialogs
|
|
277
|
-
} from "./chunk-
|
|
277
|
+
} from "./chunk-V644LXPC.js";
|
|
278
278
|
import "./chunk-ID4G2MAR.js";
|
|
279
279
|
import {
|
|
280
280
|
listUserRecordsFromServers,
|
|
@@ -336,9 +336,9 @@ import {
|
|
|
336
336
|
discoverSkills
|
|
337
337
|
} from "./chunk-UHW6SCVK.js";
|
|
338
338
|
import "./chunk-GBWGPTA7.js";
|
|
339
|
-
import "./chunk-
|
|
339
|
+
import "./chunk-OQFOE4SJ.js";
|
|
340
340
|
import "./chunk-TRRXYFTR.js";
|
|
341
|
-
import "./chunk-
|
|
341
|
+
import "./chunk-JLZJL3WC.js";
|
|
342
342
|
import "./chunk-3A5NNQCN.js";
|
|
343
343
|
import "./chunk-R3MV2GII.js";
|
|
344
344
|
import "./chunk-SQL7YNED.js";
|
|
@@ -15562,7 +15562,7 @@ async function runOneAgentTurn(ctx, inputMsg, imageUrls, actionGateHandler, conf
|
|
|
15562
15562
|
if (!approved) return false;
|
|
15563
15563
|
const commandText = typeof request.command === "string" ? request.command : "";
|
|
15564
15564
|
if (commandText) {
|
|
15565
|
-
const { runApprovedCredentialCommand } = await import("./hostCredentialCreate-
|
|
15565
|
+
const { runApprovedCredentialCommand } = await import("./hostCredentialCreate-T33O7WLA.js");
|
|
15566
15566
|
const hostResult = await runApprovedCredentialCommand({
|
|
15567
15567
|
commandText,
|
|
15568
15568
|
approvalEventId: request.id,
|
|
@@ -17713,7 +17713,7 @@ async function compactDialog(options) {
|
|
|
17713
17713
|
fetchImpl,
|
|
17714
17714
|
agentRef: getActiveDialogAgentId(current) ?? void 0,
|
|
17715
17715
|
loadAdapter: async () => {
|
|
17716
|
-
const { createCliLocalRuntimeAdapter: createCliLocalRuntimeAdapter2 } = await import("./localRuntimeAdapter-
|
|
17716
|
+
const { createCliLocalRuntimeAdapter: createCliLocalRuntimeAdapter2 } = await import("./localRuntimeAdapter-CNFP7ZEP.js");
|
|
17717
17717
|
return createCliLocalRuntimeAdapter2({ env: { ...options.env ?? {}, AUTH_TOKEN: options.authToken, NOLO_SERVER: options.serverUrl }, fetchImpl });
|
|
17718
17718
|
}
|
|
17719
17719
|
}) : void 0);
|
|
@@ -20861,7 +20861,7 @@ ${lines}` : lines;
|
|
|
20861
20861
|
onApprove: createSnapshotGuardedApproval("local", () => state.permissionGrants, approveLocalConfirms),
|
|
20862
20862
|
onApproved: async (approvedGate) => {
|
|
20863
20863
|
if (approvedGate.kind !== "confirm") return null;
|
|
20864
|
-
const { executeApprovedCredentialCreate } = await import("./hostCredentialCreate-
|
|
20864
|
+
const { executeApprovedCredentialCreate } = await import("./hostCredentialCreate-T33O7WLA.js");
|
|
20865
20865
|
const hostResult = await executeApprovedCredentialCreate({
|
|
20866
20866
|
gate: approvedGate,
|
|
20867
20867
|
approvalGateId: approvedGate.id,
|
|
@@ -133,7 +133,7 @@ function detectProviderLabel(env) {
|
|
|
133
133
|
return "missing";
|
|
134
134
|
}
|
|
135
135
|
async function defaultLocalRuntimeProbe(env, deps = {}) {
|
|
136
|
-
const { resolveCliLocalRuntimeDbPath } = await import("./localRuntimeDb-
|
|
136
|
+
const { resolveCliLocalRuntimeDbPath } = await import("./localRuntimeDb-ZJFGNHML.js");
|
|
137
137
|
const dbPath = resolveCliLocalRuntimeDbPath({ env });
|
|
138
138
|
const authorityDriver = resolveCliAuthorityStoreDriver({ env });
|
|
139
139
|
const authorityEndpoint = resolveCliAuthorityBrokerEndpoint({ transport: "tcp", env });
|
|
@@ -141,7 +141,7 @@ async function defaultLocalRuntimeProbe(env, deps = {}) {
|
|
|
141
141
|
const authorityHealthPath = resolveCliAuthorityBrokerHealthPath({ transport: "tcp", env });
|
|
142
142
|
const agentKey = readLocalAgentKey(env);
|
|
143
143
|
try {
|
|
144
|
-
const db = deps.getDb ? await deps.getDb() : await import("./localRuntimeDb-
|
|
144
|
+
const db = deps.getDb ? await deps.getDb() : await import("./localRuntimeDb-ZJFGNHML.js").then(
|
|
145
145
|
({ getDefaultCliLocalRuntimeDb }) => getDefaultCliLocalRuntimeDb({ env })
|
|
146
146
|
);
|
|
147
147
|
const authorityHealth = await (deps.probeAuthorityHealth ?? probeCliAuthorityBrokerHealth)({
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
resolveDateWindow,
|
|
7
7
|
runUsageCommand,
|
|
8
8
|
summarizeUsage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OWXOXKH7.js";
|
|
10
10
|
import "./chunk-Z4PCXPUE.js";
|
|
11
11
|
import "./chunk-BUDVRYES.js";
|
|
12
12
|
import "./chunk-UVLYNWIE.js";
|
|
13
13
|
import "./chunk-YNIYE47Z.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-J55F3IEZ.js";
|
|
15
15
|
import "./chunk-GLKOYSRU.js";
|
|
16
16
|
import "./chunk-SYTHYBMI.js";
|
|
17
17
|
import "./chunk-OJKUU3LP.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
parseUsageArgs,
|
|
3
3
|
require_date_fns,
|
|
4
4
|
resolveDateWindow
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OWXOXKH7.js";
|
|
6
6
|
import "./chunk-Z4PCXPUE.js";
|
|
7
7
|
import {
|
|
8
8
|
applyTokenUsageToDayStats,
|
|
@@ -12,7 +12,7 @@ import "./chunk-UVLYNWIE.js";
|
|
|
12
12
|
import "./chunk-YNIYE47Z.js";
|
|
13
13
|
import {
|
|
14
14
|
getDefaultCliLocalRuntimeDb
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-J55F3IEZ.js";
|
|
16
16
|
import "./chunk-GLKOYSRU.js";
|
|
17
17
|
import {
|
|
18
18
|
isLevelNotFoundError
|