nolo-cli 0.31.0-alpha.7 → 0.31.0-alpha.8
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-YG2E4GEO.js → agentDeleteCommand-D3MYZK6E.js} +1 -1
- package/{agentEmailCommands-GA6XIW47.js → agentEmailCommands-4NZYNLYF.js} +4 -4
- package/{agentListCommands-Z2APZJVD.js → agentListCommands-SF3HEUTT.js} +1 -1
- package/{agentMachineCommands-EPSFJASS.js → agentMachineCommands-5RFLYQ6Q.js} +2 -2
- package/{agentPullCommand-4V36XNGV.js → agentPullCommand-ARSIDNVC.js} +1 -1
- package/{agentRecordCommands-2M6NJOAO.js → agentRecordCommands-GCXQBTWG.js} +4 -4
- package/{agentRunCommand-NWZOXX5R.js → agentRunCommand-44S7TSQO.js} +4 -4
- package/{authCommand-3GQR43KB.js → authCommand-BBDHMSO6.js} +2 -2
- package/{authCommands-CXJ6PI2O.js → authCommands-4UDEKRE6.js} +2 -2
- package/{chunk-LABJBLQQ.js → chunk-4KFW6HK3.js} +3 -3
- package/{chunk-2OUJC7YP.js → chunk-53J7CH53.js} +1 -1
- package/{chunk-WFHXMLHZ.js → chunk-6YABCOFU.js} +1 -1
- package/{chunk-VQLXUSS3.js → chunk-BQ3MI344.js} +2 -2
- package/{chunk-45X23W6O.js → chunk-BTSNLYKW.js} +66 -24
- package/{chunk-WJRJDX2W.js → chunk-Q3CSL43H.js} +1 -1
- package/{chunk-XFGM5PJP.js → chunk-VMWR7VNI.js} +1 -1
- package/index.js +28 -28
- package/{localRuntimeAuthority-4IXJCHZ7.js → localRuntimeAuthority-NDUA2D7Y.js} +10 -1
- package/{localRuntimeDb-THJZGAOJ.js → localRuntimeDb-GKYRBWLQ.js} +1 -1
- package/{machineCommands-7C3NKUAW.js → machineCommands-VEODP2TD.js} +3 -3
- package/{machineWsRunDispatch-RE5GJPTV.js → machineWsRunDispatch-V67NWOCY.js} +3 -3
- package/package.json +1 -1
- package/{readlineWorkspace-LTSW7XNF.js → readlineWorkspace-JDZZXXNA.js} +4 -4
- package/{runtimeDoctorCommands-E2OUORHK.js → runtimeDoctorCommands-WI2YZUSJ.js} +2 -2
|
@@ -8,17 +8,17 @@ import {
|
|
|
8
8
|
} from "./chunk-AOS5IN2I.js";
|
|
9
9
|
import {
|
|
10
10
|
runAgentCreateCommand
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-BQ3MI344.js";
|
|
12
|
+
import "./chunk-BTSNLYKW.js";
|
|
13
13
|
import "./chunk-SFWZUTCI.js";
|
|
14
14
|
import "./chunk-7KNERA53.js";
|
|
15
15
|
import "./chunk-JDSUTNYY.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-Q3CSL43H.js";
|
|
17
17
|
import "./chunk-LM6IYQ3F.js";
|
|
18
18
|
import "./chunk-JBTJAPUF.js";
|
|
19
19
|
import {
|
|
20
20
|
getReadableCliDb
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-6YABCOFU.js";
|
|
22
22
|
import {
|
|
23
23
|
fetchWithTransportFallback,
|
|
24
24
|
resolveAgentRecordFromHybridStore
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-IXZX5CJK.js";
|
|
4
4
|
import {
|
|
5
5
|
getReadableCliDb
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6YABCOFU.js";
|
|
7
7
|
import {
|
|
8
8
|
readAgentRecord,
|
|
9
9
|
resolveAgentRecordFromHybridStore,
|
|
@@ -99,7 +99,7 @@ async function defaultExecuteCli(provider, prompt, options) {
|
|
|
99
99
|
return executeCli(provider, prompt, options);
|
|
100
100
|
}
|
|
101
101
|
async function forwardConnectorRunMessage(machine, message, pushMessage, executeCli, env, fetchImpl) {
|
|
102
|
-
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-
|
|
102
|
+
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-V67NWOCY.js");
|
|
103
103
|
return handleConnectorRunMessage(message, pushMessage, executeCli, env, fetchImpl);
|
|
104
104
|
}
|
|
105
105
|
async function detectLaunchableMachineInfo() {
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
runAgentCreateCommand,
|
|
3
3
|
runAgentReadCommand,
|
|
4
4
|
runAgentUpdateCommand
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-BQ3MI344.js";
|
|
6
|
+
import "./chunk-BTSNLYKW.js";
|
|
7
7
|
import "./chunk-SFWZUTCI.js";
|
|
8
8
|
import "./chunk-7KNERA53.js";
|
|
9
9
|
import "./chunk-JDSUTNYY.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-Q3CSL43H.js";
|
|
11
11
|
import "./chunk-LM6IYQ3F.js";
|
|
12
12
|
import "./chunk-JBTJAPUF.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-6YABCOFU.js";
|
|
14
14
|
import "./chunk-V42OE5HT.js";
|
|
15
15
|
import "./chunk-VVEH6XUE.js";
|
|
16
16
|
import "./chunk-K6QEHQZ3.js";
|
|
@@ -7,19 +7,19 @@ import {
|
|
|
7
7
|
prependSubjectDialogMarker,
|
|
8
8
|
resolveWorkflowReference,
|
|
9
9
|
runAgentRunCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4KFW6HK3.js";
|
|
11
11
|
import {
|
|
12
12
|
parseAgentRunArgs
|
|
13
13
|
} from "./chunk-AOS5IN2I.js";
|
|
14
14
|
import "./chunk-6HYVJV7B.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-BTSNLYKW.js";
|
|
16
16
|
import "./chunk-SFWZUTCI.js";
|
|
17
17
|
import "./chunk-7KNERA53.js";
|
|
18
18
|
import "./chunk-JDSUTNYY.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-Q3CSL43H.js";
|
|
20
20
|
import "./chunk-LM6IYQ3F.js";
|
|
21
21
|
import "./chunk-JBTJAPUF.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-6YABCOFU.js";
|
|
23
23
|
import "./chunk-V42OE5HT.js";
|
|
24
24
|
import "./chunk-VVEH6XUE.js";
|
|
25
25
|
import "./chunk-K6QEHQZ3.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultOpenBrowser
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VMWR7VNI.js";
|
|
4
4
|
import {
|
|
5
5
|
generateCloudflareEmailRoutingToken,
|
|
6
6
|
parseFlagWithOptionalValue,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
validateXAIEndpoint,
|
|
48
48
|
xaiOAuthDiscovery
|
|
49
49
|
} from "./chunk-SFWZUTCI.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-Q3CSL43H.js";
|
|
51
51
|
import "./chunk-LM6IYQ3F.js";
|
|
52
52
|
import "./chunk-JBTJAPUF.js";
|
|
53
53
|
import "./chunk-YHGHADBQ.js";
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
runLoginCommand,
|
|
7
7
|
runLogoutCommand,
|
|
8
8
|
runWhoamiCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VMWR7VNI.js";
|
|
10
10
|
import "./chunk-6HYVJV7B.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-Q3CSL43H.js";
|
|
12
12
|
import "./chunk-LM6IYQ3F.js";
|
|
13
13
|
import "./chunk-JBTJAPUF.js";
|
|
14
14
|
import "./chunk-GE6IWA5N.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
parseAgentRunEvent,
|
|
20
20
|
t,
|
|
21
21
|
toolLabel
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BTSNLYKW.js";
|
|
23
23
|
import {
|
|
24
24
|
createRunActivityTracker,
|
|
25
25
|
finalizeRunRecord,
|
|
@@ -30,10 +30,10 @@ import {
|
|
|
30
30
|
} from "./chunk-JDSUTNYY.js";
|
|
31
31
|
import {
|
|
32
32
|
getDefaultCliLocalRuntimeDb
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-Q3CSL43H.js";
|
|
34
34
|
import {
|
|
35
35
|
getReadableCliDb
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-6YABCOFU.js";
|
|
37
37
|
import {
|
|
38
38
|
normalizeAgentHandle,
|
|
39
39
|
readDbRecord,
|
|
@@ -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-GKYRBWLQ.js");
|
|
8
8
|
return getDefaultCliLocalRuntimeDb();
|
|
9
9
|
}
|
|
10
10
|
function createNullCliDb() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearCliLocalRuntimePreparedAgentCache
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BTSNLYKW.js";
|
|
4
4
|
import {
|
|
5
5
|
getReadableCliDb
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6YABCOFU.js";
|
|
7
7
|
import {
|
|
8
8
|
buildCreatedAgentRecord,
|
|
9
9
|
buildUpdatedAgentRecord,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk-JDSUTNYY.js";
|
|
25
25
|
import {
|
|
26
26
|
getDefaultCliLocalRuntimeDb
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-Q3CSL43H.js";
|
|
28
28
|
import {
|
|
29
29
|
buildLocalAgentLookupKeys
|
|
30
30
|
} from "./chunk-VVEH6XUE.js";
|
|
@@ -10622,8 +10622,46 @@ function isRemoteAuthEndpoint(endpoint) {
|
|
|
10622
10622
|
return false;
|
|
10623
10623
|
}
|
|
10624
10624
|
|
|
10625
|
+
// packages/core/concurrencyLimiter.ts
|
|
10626
|
+
function createConcurrencyLimiter(maxConcurrent) {
|
|
10627
|
+
if (!Number.isInteger(maxConcurrent) || maxConcurrent < 1) {
|
|
10628
|
+
throw new RangeError("maxConcurrent must be a positive integer");
|
|
10629
|
+
}
|
|
10630
|
+
let active = 0;
|
|
10631
|
+
const pending = [];
|
|
10632
|
+
function drain() {
|
|
10633
|
+
while (active < maxConcurrent && pending.length > 0) {
|
|
10634
|
+
const entry = pending.shift();
|
|
10635
|
+
active += 1;
|
|
10636
|
+
Promise.resolve().then(() => entry.task()).then(
|
|
10637
|
+
(value) => entry.resolve(value),
|
|
10638
|
+
(error) => entry.reject(error)
|
|
10639
|
+
).finally(() => {
|
|
10640
|
+
active -= 1;
|
|
10641
|
+
drain();
|
|
10642
|
+
});
|
|
10643
|
+
}
|
|
10644
|
+
}
|
|
10645
|
+
return {
|
|
10646
|
+
run(task) {
|
|
10647
|
+
return new Promise((resolve, reject) => {
|
|
10648
|
+
pending.push({ task, resolve, reject });
|
|
10649
|
+
drain();
|
|
10650
|
+
});
|
|
10651
|
+
},
|
|
10652
|
+
get activeCount() {
|
|
10653
|
+
return active;
|
|
10654
|
+
},
|
|
10655
|
+
get pendingCount() {
|
|
10656
|
+
return pending.length;
|
|
10657
|
+
}
|
|
10658
|
+
};
|
|
10659
|
+
}
|
|
10660
|
+
|
|
10625
10661
|
// packages/cli/client/localRuntimeDialog.ts
|
|
10626
10662
|
var import_date_fns = __toESM(require_date_fns(), 1);
|
|
10663
|
+
var titlePatchLimiter = createConcurrencyLimiter(2);
|
|
10664
|
+
var remoteSyncLimiter = createConcurrencyLimiter(3);
|
|
10627
10665
|
async function resolveStore(deps) {
|
|
10628
10666
|
if (deps.store) return deps.store;
|
|
10629
10667
|
return createCliHybridRecordStore({
|
|
@@ -10761,7 +10799,7 @@ async function writeDialog(args) {
|
|
|
10761
10799
|
let existingDialog = null;
|
|
10762
10800
|
if (args.input.continueDialogId) {
|
|
10763
10801
|
const dialogKey = `dialog-${args.userId}-${args.input.continueDialogId}`;
|
|
10764
|
-
existingDialog = await args.store.read(dialogKey);
|
|
10802
|
+
existingDialog = await args.store.read(dialogKey, { remote: false });
|
|
10765
10803
|
}
|
|
10766
10804
|
if (__perfEnabled) {
|
|
10767
10805
|
const ms = (performance.now() - __perfT0).toFixed(1);
|
|
@@ -10850,14 +10888,16 @@ async function writeDialog(args) {
|
|
|
10850
10888
|
})();
|
|
10851
10889
|
await remoteSyncPromise;
|
|
10852
10890
|
} else {
|
|
10853
|
-
remoteSyncPromise =
|
|
10854
|
-
|
|
10855
|
-
|
|
10856
|
-
|
|
10857
|
-
|
|
10858
|
-
|
|
10859
|
-
|
|
10860
|
-
|
|
10891
|
+
remoteSyncPromise = remoteSyncLimiter.run(
|
|
10892
|
+
() => syncLocalDialogEvidenceToRemote({
|
|
10893
|
+
env: args.env,
|
|
10894
|
+
fetchImpl: args.fetchImpl,
|
|
10895
|
+
input: args.input,
|
|
10896
|
+
ops: [...plan.ops, ...tokenOps],
|
|
10897
|
+
output: args.output,
|
|
10898
|
+
userId: args.userId
|
|
10899
|
+
})
|
|
10900
|
+
).catch((error) => {
|
|
10861
10901
|
args.output?.write(
|
|
10862
10902
|
`[nolo] Remote dialog evidence sync failed; local dialog only: ${toErrorMessage(error)}
|
|
10863
10903
|
`
|
|
@@ -10870,20 +10910,22 @@ async function writeDialog(args) {
|
|
|
10870
10910
|
const dialogKey = `dialog-${args.userId}-${plan.dialogId}`;
|
|
10871
10911
|
titlePatchPromise = titlePromise.then(async (resolvedTitle) => {
|
|
10872
10912
|
if (!resolvedTitle) return;
|
|
10873
|
-
|
|
10874
|
-
|
|
10875
|
-
|
|
10876
|
-
|
|
10877
|
-
|
|
10878
|
-
|
|
10879
|
-
|
|
10880
|
-
|
|
10881
|
-
|
|
10882
|
-
|
|
10883
|
-
|
|
10884
|
-
|
|
10885
|
-
|
|
10886
|
-
|
|
10913
|
+
await titlePatchLimiter.run(async () => {
|
|
10914
|
+
try {
|
|
10915
|
+
const existing = await args.store.read(dialogKey);
|
|
10916
|
+
if (!existing || typeof existing !== "object") return;
|
|
10917
|
+
if (existing?.titleSource === "manual") return;
|
|
10918
|
+
const existingTitleUpdatedAtMs = parseTitleUpdatedAtMs(existing);
|
|
10919
|
+
if (existingTitleUpdatedAtMs > nowMs) return;
|
|
10920
|
+
await args.store.write(dialogKey, {
|
|
10921
|
+
...existing,
|
|
10922
|
+
title: resolvedTitle,
|
|
10923
|
+
titleSource: "auto",
|
|
10924
|
+
titleUpdatedAt: new Date(nowMs).toISOString()
|
|
10925
|
+
});
|
|
10926
|
+
} catch {
|
|
10927
|
+
}
|
|
10928
|
+
});
|
|
10887
10929
|
});
|
|
10888
10930
|
}
|
|
10889
10931
|
if (__perfEnabled) {
|
|
@@ -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-NDUA2D7Y.js");
|
|
18
18
|
return getAuthorityBackedDb(options);
|
|
19
19
|
}
|
|
20
20
|
|
package/index.js
CHANGED
|
@@ -126,7 +126,7 @@ function createDaemonShortcutCommand(path, description, command2) {
|
|
|
126
126
|
// packages/cli/agentInternalCommandEntries.ts
|
|
127
127
|
function getAgentInternalCommandEntries() {
|
|
128
128
|
const createAgentRunCommand = (path, description) => createContextCommand(path, description, async (args2, ctx) => {
|
|
129
|
-
const { runAgentRunCommand } = await import("./agentRunCommand-
|
|
129
|
+
const { runAgentRunCommand } = await import("./agentRunCommand-44S7TSQO.js");
|
|
130
130
|
return runAgentRunCommand(args2, {
|
|
131
131
|
env: ctx.env,
|
|
132
132
|
scriptDir: ctx.scriptDir,
|
|
@@ -138,19 +138,19 @@ function getAgentInternalCommandEntries() {
|
|
|
138
138
|
createAgentRunCommand(["run"], "Run a no-login local agent in this workspace"),
|
|
139
139
|
createAgentRunCommand(["chat"], "Chat with an agent"),
|
|
140
140
|
createEnvCommand(["agent", "list"], "List owned agents", async (args2, deps) => {
|
|
141
|
-
const { runAgentListCommand } = await import("./agentListCommands-
|
|
141
|
+
const { runAgentListCommand } = await import("./agentListCommands-SF3HEUTT.js");
|
|
142
142
|
return runAgentListCommand(args2, deps);
|
|
143
143
|
}),
|
|
144
144
|
createEnvCommand(["agent", "create"], "Create a new agent", async (args2, deps) => {
|
|
145
|
-
const { runAgentCreateCommand } = await import("./agentRecordCommands-
|
|
145
|
+
const { runAgentCreateCommand } = await import("./agentRecordCommands-GCXQBTWG.js");
|
|
146
146
|
return runAgentCreateCommand(args2, deps);
|
|
147
147
|
}),
|
|
148
148
|
createEnvCommand(["agent", "pull"], "Cache an agent for local runs", async (args2, deps) => {
|
|
149
|
-
const { runAgentPullCommand } = await import("./agentPullCommand-
|
|
149
|
+
const { runAgentPullCommand } = await import("./agentPullCommand-ARSIDNVC.js");
|
|
150
150
|
return runAgentPullCommand(args2, deps);
|
|
151
151
|
}),
|
|
152
152
|
createEnvCommand(["agent", "read"], "Read a single agent", async (args2, deps) => {
|
|
153
|
-
const { runAgentReadCommand } = await import("./agentRecordCommands-
|
|
153
|
+
const { runAgentReadCommand } = await import("./agentRecordCommands-GCXQBTWG.js");
|
|
154
154
|
return runAgentReadCommand(args2, deps);
|
|
155
155
|
}),
|
|
156
156
|
createAgentRunCommand(["agent", "run"], "Run an agent"),
|
|
@@ -179,31 +179,31 @@ function getAgentInternalCommandEntries() {
|
|
|
179
179
|
return runSetupOfflineMarxistsAgentCommand(args2, deps);
|
|
180
180
|
}),
|
|
181
181
|
createEnvCommand(["agent", "update"], "Update agent fields", async (args2, deps) => {
|
|
182
|
-
const { runAgentUpdateCommand } = await import("./agentRecordCommands-
|
|
182
|
+
const { runAgentUpdateCommand } = await import("./agentRecordCommands-GCXQBTWG.js");
|
|
183
183
|
return runAgentUpdateCommand(args2, deps);
|
|
184
184
|
}),
|
|
185
185
|
createEnvCommand(["agent", "email", "provision"], "Provision a controlled inbox for an agent", async (args2, deps) => {
|
|
186
|
-
const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-
|
|
186
|
+
const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-4NZYNLYF.js");
|
|
187
187
|
return runAgentEmailProvisionCommand(args2, deps);
|
|
188
188
|
}),
|
|
189
189
|
createEnvCommand(["agent", "email", "bind"], "Bind an existing email address to an agent", async (args2, deps) => {
|
|
190
|
-
const { runAgentEmailBindCommand } = await import("./agentEmailCommands-
|
|
190
|
+
const { runAgentEmailBindCommand } = await import("./agentEmailCommands-4NZYNLYF.js");
|
|
191
191
|
return runAgentEmailBindCommand(args2, deps);
|
|
192
192
|
}),
|
|
193
193
|
createEnvCommand(["agent", "email", "transfer"], "Transfer an email identity from one agent to another (cross-account)", async (args2, deps) => {
|
|
194
|
-
const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-
|
|
194
|
+
const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-4NZYNLYF.js");
|
|
195
195
|
return runAgentEmailTransferCommand(args2, deps);
|
|
196
196
|
}),
|
|
197
197
|
createEnvCommand(
|
|
198
198
|
["agent", "email", "create-and-provision"],
|
|
199
199
|
"Create an agent and provision its controlled inbox",
|
|
200
200
|
async (args2, deps) => {
|
|
201
|
-
const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-
|
|
201
|
+
const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-4NZYNLYF.js");
|
|
202
202
|
return runAgentEmailCreateAndProvisionCommand(args2, deps);
|
|
203
203
|
}
|
|
204
204
|
),
|
|
205
205
|
createEnvCommand(["agent", "delete"], "Hard-delete an agent's private and public records", async (args2, deps) => {
|
|
206
|
-
const { runAgentDeleteCommand } = await import("./agentDeleteCommand-
|
|
206
|
+
const { runAgentDeleteCommand } = await import("./agentDeleteCommand-D3MYZK6E.js");
|
|
207
207
|
return runAgentDeleteCommand(args2, deps);
|
|
208
208
|
}),
|
|
209
209
|
createEnvCommand(["agent", "grant"], "Grant another user access to this agent's owner credentials", async (args2, deps) => {
|
|
@@ -219,15 +219,15 @@ function getAgentInternalCommandEntries() {
|
|
|
219
219
|
return runAgentRevokeGrantCommand(args2, deps);
|
|
220
220
|
}),
|
|
221
221
|
createEnvCommand(["agent", "bind-current"], "Bind an agent to this machine", async (args2, deps) => {
|
|
222
|
-
const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-
|
|
222
|
+
const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-5RFLYQ6Q.js");
|
|
223
223
|
return runAgentBindCurrentCommand(args2, deps);
|
|
224
224
|
}),
|
|
225
225
|
createEnvCommand(["agent", "smoke-current"], "Smoke test a bound agent through this machine", async (args2, deps) => {
|
|
226
|
-
const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-
|
|
226
|
+
const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-5RFLYQ6Q.js");
|
|
227
227
|
return runAgentSmokeCurrentCommand(args2, deps);
|
|
228
228
|
}),
|
|
229
229
|
createEnvCommand(["agent", "runtime-doctor"], "Diagnose current machine runtime compatibility", async (args2, deps) => {
|
|
230
|
-
const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-
|
|
230
|
+
const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-5RFLYQ6Q.js");
|
|
231
231
|
return runAgentRuntimeDoctorCommand(args2, deps);
|
|
232
232
|
}),
|
|
233
233
|
createAgentRunCommand(["agent", "chat"], "Chat with an agent")
|
|
@@ -372,55 +372,55 @@ function getSpaceInternalCommandEntries() {
|
|
|
372
372
|
function getSystemInternalCommandEntries(renderHelpText2) {
|
|
373
373
|
return [
|
|
374
374
|
createArgsCommand(["auth", "cloudflare"], "Authorize Cloudflare OAuth", async (args2) => {
|
|
375
|
-
const { runAuthCloudflareCommand } = await import("./authCommand-
|
|
375
|
+
const { runAuthCloudflareCommand } = await import("./authCommand-BBDHMSO6.js");
|
|
376
376
|
return runAuthCloudflareCommand(args2);
|
|
377
377
|
}),
|
|
378
378
|
createArgsCommand(["auth", "chatgpt"], "Authorize ChatGPT / OpenAI Codex OAuth", async (args2) => {
|
|
379
|
-
const { runAuthChatgptCommand } = await import("./authCommand-
|
|
379
|
+
const { runAuthChatgptCommand } = await import("./authCommand-BBDHMSO6.js");
|
|
380
380
|
return runAuthChatgptCommand(args2);
|
|
381
381
|
}),
|
|
382
382
|
createArgsCommand(["auth", "xai"], "Authorize xAI Grok OAuth (SuperGrok subscription)", async (args2) => {
|
|
383
|
-
const { runAuthXaiCommand } = await import("./authCommand-
|
|
383
|
+
const { runAuthXaiCommand } = await import("./authCommand-BBDHMSO6.js");
|
|
384
384
|
return runAuthXaiCommand(args2);
|
|
385
385
|
}),
|
|
386
386
|
createArgsCommand(["auth", "antigravity"], "Authorize Google Antigravity OAuth", async (args2) => {
|
|
387
|
-
const { runAuthAntigravityCommand } = await import("./authCommand-
|
|
387
|
+
const { runAuthAntigravityCommand } = await import("./authCommand-BBDHMSO6.js");
|
|
388
388
|
return runAuthAntigravityCommand(args2);
|
|
389
389
|
}),
|
|
390
390
|
createArgsCommand(["auth", "claude"], "Authorize Claude Pro/Max OAuth", async (args2) => {
|
|
391
|
-
const { runAuthClaudeCommand } = await import("./authCommand-
|
|
391
|
+
const { runAuthClaudeCommand } = await import("./authCommand-BBDHMSO6.js");
|
|
392
392
|
return runAuthClaudeCommand(args2);
|
|
393
393
|
}),
|
|
394
394
|
createArgsCommand(["auth", "cursor"], "Authorize Cursor Pro OAuth", async (args2) => {
|
|
395
|
-
const { runAuthCursorCommand } = await import("./authCommand-
|
|
395
|
+
const { runAuthCursorCommand } = await import("./authCommand-BBDHMSO6.js");
|
|
396
396
|
return runAuthCursorCommand(args2);
|
|
397
397
|
}),
|
|
398
398
|
createArgsCommand(["login"], "Log in to Nolo", async (args2) => {
|
|
399
|
-
const { runLoginCommand } = await import("./authCommands-
|
|
399
|
+
const { runLoginCommand } = await import("./authCommands-4UDEKRE6.js");
|
|
400
400
|
return runLoginCommand(args2);
|
|
401
401
|
}),
|
|
402
402
|
createContextCommand(["logout"], "Log out of Nolo", async (args2, ctx) => {
|
|
403
|
-
const { runLogoutCommand } = await import("./authCommands-
|
|
403
|
+
const { runLogoutCommand } = await import("./authCommands-4UDEKRE6.js");
|
|
404
404
|
return runLogoutCommand({ args: args2, env: ctx.env });
|
|
405
405
|
}),
|
|
406
406
|
createContextCommand(["whoami"], "Show the current login state", async (args2, ctx) => {
|
|
407
|
-
const { runWhoamiCommand } = await import("./authCommands-
|
|
407
|
+
const { runWhoamiCommand } = await import("./authCommands-4UDEKRE6.js");
|
|
408
408
|
return runWhoamiCommand({ args: args2, env: ctx.env });
|
|
409
409
|
}),
|
|
410
410
|
createEntrypointEnvCommand(["connect"], "Send machine heartbeats or hold a connector websocket", async (args2, deps) => {
|
|
411
|
-
const { runMachineConnectCommand } = await import("./machineCommands-
|
|
411
|
+
const { runMachineConnectCommand } = await import("./machineCommands-VEODP2TD.js");
|
|
412
412
|
return runMachineConnectCommand(args2, deps);
|
|
413
413
|
}),
|
|
414
414
|
createDaemonShortcutCommand(["daemon"], "Run the connector daemon shortcut", async (args2, deps) => {
|
|
415
|
-
const { runMachineConnectCommand } = await import("./machineCommands-
|
|
415
|
+
const { runMachineConnectCommand } = await import("./machineCommands-VEODP2TD.js");
|
|
416
416
|
return runMachineConnectCommand(args2, deps);
|
|
417
417
|
}),
|
|
418
418
|
createEnvCommand(["machine", "status"], "List machines registered to the current profile", async (args2, deps) => {
|
|
419
|
-
const { runMachineStatusCommand } = await import("./machineCommands-
|
|
419
|
+
const { runMachineStatusCommand } = await import("./machineCommands-VEODP2TD.js");
|
|
420
420
|
return runMachineStatusCommand(args2, deps);
|
|
421
421
|
}),
|
|
422
422
|
createEnvCommand(["doctor", "runtime"], "Diagnose local-first agent runtime selection", async (args2, deps) => {
|
|
423
|
-
const { runDoctorRuntimeCommand } = await import("./runtimeDoctorCommands-
|
|
423
|
+
const { runDoctorRuntimeCommand } = await import("./runtimeDoctorCommands-WI2YZUSJ.js");
|
|
424
424
|
return runDoctorRuntimeCommand(args2, deps);
|
|
425
425
|
}),
|
|
426
426
|
createContextCommand(["doctor"], "Show CLI doctor information", async (_args, ctx) => {
|
|
@@ -796,7 +796,7 @@ async function runScript(script, forwardedArgs, env) {
|
|
|
796
796
|
return proc.exited;
|
|
797
797
|
}
|
|
798
798
|
async function launchTuiWorkspace(args2) {
|
|
799
|
-
const { startTuiWorkspace } = await import("./readlineWorkspace-
|
|
799
|
+
const { startTuiWorkspace } = await import("./readlineWorkspace-JDZZXXNA.js");
|
|
800
800
|
const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-SRZ4QQUP.js");
|
|
801
801
|
return startTuiWorkspace({
|
|
802
802
|
...args2,
|
|
@@ -271,7 +271,8 @@ function resolveCliLocalRuntimeDbPath(options = {}) {
|
|
|
271
271
|
var defaultCliAuthorityBrokerConnectDeps = {
|
|
272
272
|
createClient: (options) => createCliAuthorityBrokerClient(options),
|
|
273
273
|
startBroker: (options) => getOrCreateCliAuthorityBrokerServer(options),
|
|
274
|
-
sleep
|
|
274
|
+
sleep,
|
|
275
|
+
useFastPath: true
|
|
275
276
|
};
|
|
276
277
|
async function connectCliAuthorityBroker(args) {
|
|
277
278
|
const deps = {
|
|
@@ -295,6 +296,14 @@ async function connectCliAuthorityBroker(args) {
|
|
|
295
296
|
}
|
|
296
297
|
return false;
|
|
297
298
|
}
|
|
299
|
+
if (deps.useFastPath) {
|
|
300
|
+
try {
|
|
301
|
+
await client2.open();
|
|
302
|
+
return client2;
|
|
303
|
+
} catch (error) {
|
|
304
|
+
if (!isCliAuthorityBrokerUnavailableError(error)) throw error;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
298
307
|
try {
|
|
299
308
|
await deps.startBroker({
|
|
300
309
|
endpoint: args.endpoint,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
buildMachinePermissionPromptBlock,
|
|
3
3
|
handleConnectorRunMessage,
|
|
4
4
|
resolveMachineRunPermissionPolicy
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-53J7CH53.js";
|
|
6
6
|
import {
|
|
7
7
|
isConnectorWebSocketAuthError,
|
|
8
8
|
isConnectorWebSocketRetryableError,
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
detectMachineInfo
|
|
13
13
|
} from "./chunk-6HYVJV7B.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-BTSNLYKW.js";
|
|
15
15
|
import "./chunk-SFWZUTCI.js";
|
|
16
16
|
import "./chunk-7KNERA53.js";
|
|
17
17
|
import "./chunk-JDSUTNYY.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-Q3CSL43H.js";
|
|
19
19
|
import "./chunk-LM6IYQ3F.js";
|
|
20
20
|
import "./chunk-JBTJAPUF.js";
|
|
21
21
|
import "./chunk-VVEH6XUE.js";
|
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
runtimeWorkspacePermissionPolicy,
|
|
12
12
|
scopePermissionPolicyToRuntimeWorkspace,
|
|
13
13
|
summarizeAgentConfigForLogs
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-53J7CH53.js";
|
|
15
|
+
import "./chunk-BTSNLYKW.js";
|
|
16
16
|
import "./chunk-SFWZUTCI.js";
|
|
17
17
|
import "./chunk-7KNERA53.js";
|
|
18
18
|
import "./chunk-JDSUTNYY.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-Q3CSL43H.js";
|
|
20
20
|
import "./chunk-LM6IYQ3F.js";
|
|
21
21
|
import "./chunk-JBTJAPUF.js";
|
|
22
22
|
import "./chunk-VVEH6XUE.js";
|
package/package.json
CHANGED
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
visibleWidth,
|
|
59
59
|
wrapTextToLines,
|
|
60
60
|
wrapTranscriptLine
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-4KFW6HK3.js";
|
|
62
62
|
import "./chunk-AOS5IN2I.js";
|
|
63
63
|
import "./chunk-6HYVJV7B.js";
|
|
64
64
|
import {
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
readTimestamp,
|
|
81
81
|
setCliLocale,
|
|
82
82
|
t
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-BTSNLYKW.js";
|
|
84
84
|
import "./chunk-SFWZUTCI.js";
|
|
85
85
|
import {
|
|
86
86
|
checkStaleRun,
|
|
@@ -88,12 +88,12 @@ import {
|
|
|
88
88
|
readRunRecord
|
|
89
89
|
} from "./chunk-7KNERA53.js";
|
|
90
90
|
import "./chunk-JDSUTNYY.js";
|
|
91
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-Q3CSL43H.js";
|
|
92
92
|
import "./chunk-LM6IYQ3F.js";
|
|
93
93
|
import "./chunk-JBTJAPUF.js";
|
|
94
94
|
import {
|
|
95
95
|
getReadableCliDb
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-6YABCOFU.js";
|
|
97
97
|
import {
|
|
98
98
|
deleteDbRecord,
|
|
99
99
|
queryUserRecords,
|
|
@@ -115,7 +115,7 @@ function detectProviderLabel(env) {
|
|
|
115
115
|
return "missing";
|
|
116
116
|
}
|
|
117
117
|
async function defaultLocalRuntimeProbe(env, deps = {}) {
|
|
118
|
-
const { resolveCliLocalRuntimeDbPath } = await import("./localRuntimeDb-
|
|
118
|
+
const { resolveCliLocalRuntimeDbPath } = await import("./localRuntimeDb-GKYRBWLQ.js");
|
|
119
119
|
const dbPath = resolveCliLocalRuntimeDbPath({ env });
|
|
120
120
|
const authorityDriver = resolveCliAuthorityStoreDriver({ env });
|
|
121
121
|
const authorityEndpoint = resolveCliAuthorityBrokerEndpoint({ transport: "tcp", env });
|
|
@@ -123,7 +123,7 @@ async function defaultLocalRuntimeProbe(env, deps = {}) {
|
|
|
123
123
|
const authorityHealthPath = resolveCliAuthorityBrokerHealthPath({ transport: "tcp", env });
|
|
124
124
|
const agentKey = readLocalAgentKey(env);
|
|
125
125
|
try {
|
|
126
|
-
const db = deps.getDb ? await deps.getDb() : await import("./localRuntimeDb-
|
|
126
|
+
const db = deps.getDb ? await deps.getDb() : await import("./localRuntimeDb-GKYRBWLQ.js").then(
|
|
127
127
|
({ getDefaultCliLocalRuntimeDb }) => getDefaultCliLocalRuntimeDb({ env })
|
|
128
128
|
);
|
|
129
129
|
const authorityHealth = await (deps.probeAuthorityHealth ?? probeCliAuthorityBrokerHealth)({
|