nolo-cli 0.98.0-alpha.2 → 0.98.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/{agentEmailCommands-RE2E7J5U.js → agentEmailCommands-KNYBWNMA.js} +3 -3
- package/{agentMachineCommands-WAB65VQQ.js → agentMachineCommands-N62I3D5Q.js} +1 -1
- package/{agentRecordCommands-J5OBRSAV.js → agentRecordCommands-GOC5K27T.js} +3 -3
- package/{agentRunCommand-VUSTQP4Z.js → agentRunCommand-JP2U3MQF.js} +3 -3
- package/{agentRunControl-WCTKX5VL.js → agentRunControl-AVJR4JW4.js} +1 -1
- package/{chunk-677AH2IM.js → chunk-2FA3ITSX.js} +2 -2
- package/{chunk-WGR3J4Q6.js → chunk-I3TQJXQ7.js} +8 -2
- package/{chunk-C26JRUFH.js → chunk-UY2NBS4V.js} +1 -1
- package/{chunk-D4T5RT5D.js → chunk-V4I3A7DR.js} +1 -1
- package/{chunk-PY5D7R4Z.js → chunk-ZMD2CQFC.js} +1 -1
- package/index.js +20 -20
- package/{machineCommands-QWDAUIRP.js → machineCommands-Y64KAIRW.js} +3 -3
- package/{machineWsRunDispatch-S2SMIDWM.js → machineWsRunDispatch-M366L2LJ.js} +3 -3
- package/package.json +1 -1
- package/{readlineWorkspace-3VZDKUXT.js → readlineWorkspace-45XNHFXU.js} +3 -3
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
} from "./chunk-V7E4PXQD.js";
|
|
9
9
|
import {
|
|
10
10
|
runAgentCreateCommand
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-UY2NBS4V.js";
|
|
12
|
+
import "./chunk-ZMD2CQFC.js";
|
|
13
13
|
import "./chunk-53HEEOTT.js";
|
|
14
14
|
import "./chunk-EADNWBAZ.js";
|
|
15
15
|
import "./chunk-SH43IESU.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-I3TQJXQ7.js";
|
|
17
17
|
import "./chunk-42V6BK2E.js";
|
|
18
18
|
import {
|
|
19
19
|
getReadableCliDb
|
|
@@ -91,7 +91,7 @@ async function defaultExecuteCli(provider, prompt, options) {
|
|
|
91
91
|
return executeCli(provider, prompt, options);
|
|
92
92
|
}
|
|
93
93
|
async function forwardConnectorRunMessage(machine, message, pushMessage, executeCli, env, fetchImpl) {
|
|
94
|
-
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-
|
|
94
|
+
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-M366L2LJ.js");
|
|
95
95
|
return handleConnectorRunMessage(message, pushMessage, executeCli, env, fetchImpl);
|
|
96
96
|
}
|
|
97
97
|
async function detectLaunchableMachineInfo() {
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
runAgentCreateCommand,
|
|
3
3
|
runAgentReadCommand,
|
|
4
4
|
runAgentUpdateCommand
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-UY2NBS4V.js";
|
|
6
|
+
import "./chunk-ZMD2CQFC.js";
|
|
7
7
|
import "./chunk-53HEEOTT.js";
|
|
8
8
|
import "./chunk-EADNWBAZ.js";
|
|
9
9
|
import "./chunk-SH43IESU.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-I3TQJXQ7.js";
|
|
11
11
|
import "./chunk-42V6BK2E.js";
|
|
12
12
|
import "./chunk-LS2ZANRJ.js";
|
|
13
13
|
import "./chunk-76WEAXJB.js";
|
|
@@ -8,16 +8,16 @@ import {
|
|
|
8
8
|
resolveRunSettlementNote,
|
|
9
9
|
resolveWorkflowReference,
|
|
10
10
|
runAgentRunCommand
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2FA3ITSX.js";
|
|
12
12
|
import "./chunk-S7Z2HMCN.js";
|
|
13
13
|
import {
|
|
14
14
|
parseAgentRunArgs
|
|
15
15
|
} from "./chunk-V7E4PXQD.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-ZMD2CQFC.js";
|
|
17
17
|
import "./chunk-53HEEOTT.js";
|
|
18
18
|
import "./chunk-EADNWBAZ.js";
|
|
19
19
|
import "./chunk-SH43IESU.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-I3TQJXQ7.js";
|
|
21
21
|
import "./chunk-42V6BK2E.js";
|
|
22
22
|
import "./chunk-LS2ZANRJ.js";
|
|
23
23
|
import "./chunk-76WEAXJB.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
resolveLocalUserId,
|
|
28
28
|
t,
|
|
29
29
|
toolLabel
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-ZMD2CQFC.js";
|
|
31
31
|
import {
|
|
32
32
|
createRunActivityTracker,
|
|
33
33
|
popSingleQueueMessage,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
resolveRunQueuePath,
|
|
36
36
|
settleRunTerminalAuthoritatively,
|
|
37
37
|
spawnLocalBackgroundRun
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-I3TQJXQ7.js";
|
|
39
39
|
import {
|
|
40
40
|
clearCredentialAvailability,
|
|
41
41
|
readCredentialEntry,
|
|
@@ -1473,14 +1473,20 @@ async function terminateRunProcess(record, initialSignal, deps) {
|
|
|
1473
1473
|
signalGroup(initialSignal);
|
|
1474
1474
|
if (initialSignal === "SIGTERM") {
|
|
1475
1475
|
const deadline = nowMs() + TERMINATE_GRACE_MS;
|
|
1476
|
-
|
|
1476
|
+
const maxIterations = Math.ceil(TERMINATE_GRACE_MS / TERMINATE_POLL_MS) + 1;
|
|
1477
|
+
let iterations = 0;
|
|
1478
|
+
while (!isPidGone(pid, deps) && nowMs() < deadline && iterations < maxIterations) {
|
|
1479
|
+
iterations += 1;
|
|
1477
1480
|
await sleep(TERMINATE_POLL_MS);
|
|
1478
1481
|
}
|
|
1479
1482
|
}
|
|
1480
1483
|
if (!isPidGone(pid, deps)) {
|
|
1481
1484
|
signalGroup("SIGKILL");
|
|
1482
1485
|
const killDeadline = nowMs() + TERMINATE_KILL_GRACE_MS;
|
|
1483
|
-
|
|
1486
|
+
const maxIterations = Math.ceil(TERMINATE_KILL_GRACE_MS / TERMINATE_POLL_MS) + 1;
|
|
1487
|
+
let iterations = 0;
|
|
1488
|
+
while (!isPidGone(pid, deps) && nowMs() < killDeadline && iterations < maxIterations) {
|
|
1489
|
+
iterations += 1;
|
|
1484
1490
|
await sleep(TERMINATE_POLL_MS);
|
|
1485
1491
|
}
|
|
1486
1492
|
}
|
package/index.js
CHANGED
|
@@ -127,7 +127,7 @@ function createDaemonShortcutCommand(path, description, command2) {
|
|
|
127
127
|
// packages/cli/agentInternalCommandEntries.ts
|
|
128
128
|
function getAgentInternalCommandEntries() {
|
|
129
129
|
const createAgentRunCommand = (path, description) => createContextCommand(path, description, async (args2, ctx) => {
|
|
130
|
-
const { runAgentRunCommand } = await import("./agentRunCommand-
|
|
130
|
+
const { runAgentRunCommand } = await import("./agentRunCommand-JP2U3MQF.js");
|
|
131
131
|
return runAgentRunCommand(args2, {
|
|
132
132
|
env: ctx.env,
|
|
133
133
|
scriptDir: ctx.scriptDir,
|
|
@@ -143,7 +143,7 @@ function getAgentInternalCommandEntries() {
|
|
|
143
143
|
return runAgentListCommand(args2, deps);
|
|
144
144
|
}),
|
|
145
145
|
createEnvCommand(["agent", "create"], "Create a new agent", async (args2, deps) => {
|
|
146
|
-
const { runAgentCreateCommand } = await import("./agentRecordCommands-
|
|
146
|
+
const { runAgentCreateCommand } = await import("./agentRecordCommands-GOC5K27T.js");
|
|
147
147
|
return runAgentCreateCommand(args2, deps);
|
|
148
148
|
}),
|
|
149
149
|
createEnvCommand(["agent", "models"], "List models available on an OpenAI-compatible provider", async (args2, deps) => {
|
|
@@ -159,28 +159,28 @@ function getAgentInternalCommandEntries() {
|
|
|
159
159
|
return runAgentPullCommand(args2, deps);
|
|
160
160
|
}),
|
|
161
161
|
createEnvCommand(["agent", "read"], "Read a single agent", async (args2, deps) => {
|
|
162
|
-
const { runAgentReadCommand } = await import("./agentRecordCommands-
|
|
162
|
+
const { runAgentReadCommand } = await import("./agentRecordCommands-GOC5K27T.js");
|
|
163
163
|
return runAgentReadCommand(args2, deps);
|
|
164
164
|
}),
|
|
165
165
|
createAgentRunCommand(["agent", "run"], "Run an agent"),
|
|
166
166
|
createEnvCommand(["agent", "ps"], "List active and recent local agent runs (--json for machine-readable output)", async (_args, deps) => {
|
|
167
|
-
const { runAgentPsCommand } = await import("./agentRunControl-
|
|
167
|
+
const { runAgentPsCommand } = await import("./agentRunControl-AVJR4JW4.js");
|
|
168
168
|
return runAgentPsCommand(_args, { ...deps, output: process.stdout });
|
|
169
169
|
}),
|
|
170
170
|
createEnvCommand(["agent", "status"], "Show status of a local agent run (--json, --watch, --interval-ms N)", async (args2, deps) => {
|
|
171
|
-
const { runAgentStatusCommand } = await import("./agentRunControl-
|
|
171
|
+
const { runAgentStatusCommand } = await import("./agentRunControl-AVJR4JW4.js");
|
|
172
172
|
return runAgentStatusCommand(args2, { ...deps, output: process.stdout });
|
|
173
173
|
}),
|
|
174
174
|
createEnvCommand(["agent", "logs"], "Show logs of a local agent run", async (args2, deps) => {
|
|
175
|
-
const { runAgentLogsCommand } = await import("./agentRunControl-
|
|
175
|
+
const { runAgentLogsCommand } = await import("./agentRunControl-AVJR4JW4.js");
|
|
176
176
|
return runAgentLogsCommand(args2, { ...deps, output: process.stdout });
|
|
177
177
|
}),
|
|
178
178
|
createEnvCommand(["agent", "stop"], "Stop a local agent run", async (args2, deps) => {
|
|
179
|
-
const { runAgentStopCommand } = await import("./agentRunControl-
|
|
179
|
+
const { runAgentStopCommand } = await import("./agentRunControl-AVJR4JW4.js");
|
|
180
180
|
return runAgentStopCommand(args2, { ...deps, output: process.stdout });
|
|
181
181
|
}),
|
|
182
182
|
createEnvCommand(["agent", "kill"], "Kill a local agent run", async (args2, deps) => {
|
|
183
|
-
const { runAgentKillCommand } = await import("./agentRunControl-
|
|
183
|
+
const { runAgentKillCommand } = await import("./agentRunControl-AVJR4JW4.js");
|
|
184
184
|
return runAgentKillCommand(args2, { ...deps, output: process.stdout });
|
|
185
185
|
}),
|
|
186
186
|
createEnvCommand(["agent", "setup-offline-marxists"], "Create or update the Marxists.org offline book agent", async (args2, deps) => {
|
|
@@ -188,26 +188,26 @@ function getAgentInternalCommandEntries() {
|
|
|
188
188
|
return runSetupOfflineMarxistsAgentCommand(args2, deps);
|
|
189
189
|
}),
|
|
190
190
|
createEnvCommand(["agent", "update"], "Update agent fields", async (args2, deps) => {
|
|
191
|
-
const { runAgentUpdateCommand } = await import("./agentRecordCommands-
|
|
191
|
+
const { runAgentUpdateCommand } = await import("./agentRecordCommands-GOC5K27T.js");
|
|
192
192
|
return runAgentUpdateCommand(args2, deps);
|
|
193
193
|
}),
|
|
194
194
|
createEnvCommand(["agent", "email", "provision"], "Provision a controlled inbox for an agent", async (args2, deps) => {
|
|
195
|
-
const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-
|
|
195
|
+
const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-KNYBWNMA.js");
|
|
196
196
|
return runAgentEmailProvisionCommand(args2, deps);
|
|
197
197
|
}),
|
|
198
198
|
createEnvCommand(["agent", "email", "bind"], "Bind an existing email address to an agent", async (args2, deps) => {
|
|
199
|
-
const { runAgentEmailBindCommand } = await import("./agentEmailCommands-
|
|
199
|
+
const { runAgentEmailBindCommand } = await import("./agentEmailCommands-KNYBWNMA.js");
|
|
200
200
|
return runAgentEmailBindCommand(args2, deps);
|
|
201
201
|
}),
|
|
202
202
|
createEnvCommand(["agent", "email", "transfer"], "Transfer an email identity from one agent to another (cross-account)", async (args2, deps) => {
|
|
203
|
-
const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-
|
|
203
|
+
const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-KNYBWNMA.js");
|
|
204
204
|
return runAgentEmailTransferCommand(args2, deps);
|
|
205
205
|
}),
|
|
206
206
|
createEnvCommand(
|
|
207
207
|
["agent", "email", "create-and-provision"],
|
|
208
208
|
"Create an agent and provision its controlled inbox",
|
|
209
209
|
async (args2, deps) => {
|
|
210
|
-
const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-
|
|
210
|
+
const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-KNYBWNMA.js");
|
|
211
211
|
return runAgentEmailCreateAndProvisionCommand(args2, deps);
|
|
212
212
|
}
|
|
213
213
|
),
|
|
@@ -228,15 +228,15 @@ function getAgentInternalCommandEntries() {
|
|
|
228
228
|
return runAgentRevokeGrantCommand(args2, deps);
|
|
229
229
|
}),
|
|
230
230
|
createEnvCommand(["agent", "bind-current"], "Bind an agent to this machine", async (args2, deps) => {
|
|
231
|
-
const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-
|
|
231
|
+
const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-N62I3D5Q.js");
|
|
232
232
|
return runAgentBindCurrentCommand(args2, deps);
|
|
233
233
|
}),
|
|
234
234
|
createEnvCommand(["agent", "smoke-current"], "Smoke test a bound agent through this machine", async (args2, deps) => {
|
|
235
|
-
const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-
|
|
235
|
+
const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-N62I3D5Q.js");
|
|
236
236
|
return runAgentSmokeCurrentCommand(args2, deps);
|
|
237
237
|
}),
|
|
238
238
|
createEnvCommand(["agent", "runtime-doctor"], "Diagnose current machine runtime compatibility", async (args2, deps) => {
|
|
239
|
-
const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-
|
|
239
|
+
const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-N62I3D5Q.js");
|
|
240
240
|
return runAgentRuntimeDoctorCommand(args2, deps);
|
|
241
241
|
}),
|
|
242
242
|
createAgentRunCommand(["agent", "chat"], "Chat with an agent")
|
|
@@ -488,15 +488,15 @@ function getSystemInternalCommandEntries(renderHelpText2) {
|
|
|
488
488
|
return runWhoamiCommand({ args: args2, env: ctx.env });
|
|
489
489
|
}),
|
|
490
490
|
createEntrypointEnvCommand(["connect"], "Send machine heartbeats or hold a connector websocket", async (args2, deps) => {
|
|
491
|
-
const { runMachineConnectCommand } = await import("./machineCommands-
|
|
491
|
+
const { runMachineConnectCommand } = await import("./machineCommands-Y64KAIRW.js");
|
|
492
492
|
return runMachineConnectCommand(args2, deps);
|
|
493
493
|
}),
|
|
494
494
|
createDaemonShortcutCommand(["daemon"], "Run the connector daemon shortcut", async (args2, deps) => {
|
|
495
|
-
const { runMachineConnectCommand } = await import("./machineCommands-
|
|
495
|
+
const { runMachineConnectCommand } = await import("./machineCommands-Y64KAIRW.js");
|
|
496
496
|
return runMachineConnectCommand(args2, deps);
|
|
497
497
|
}),
|
|
498
498
|
createEnvCommand(["machine", "status"], "List machines registered to the current profile", async (args2, deps) => {
|
|
499
|
-
const { runMachineStatusCommand } = await import("./machineCommands-
|
|
499
|
+
const { runMachineStatusCommand } = await import("./machineCommands-Y64KAIRW.js");
|
|
500
500
|
return runMachineStatusCommand(args2, deps);
|
|
501
501
|
}),
|
|
502
502
|
createEnvCommand(["doctor", "runtime"], "Diagnose local-first agent runtime selection", async (args2, deps) => {
|
|
@@ -892,7 +892,7 @@ async function runScript(script, forwardedArgs, env) {
|
|
|
892
892
|
return proc.exited;
|
|
893
893
|
}
|
|
894
894
|
async function launchTuiWorkspace(args2) {
|
|
895
|
-
const { startTuiWorkspace } = await import("./readlineWorkspace-
|
|
895
|
+
const { startTuiWorkspace } = await import("./readlineWorkspace-45XNHFXU.js");
|
|
896
896
|
const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-WFRWERGK.js");
|
|
897
897
|
return startTuiWorkspace({
|
|
898
898
|
...args2,
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
buildMachinePermissionPromptBlock,
|
|
3
3
|
handleConnectorRunMessage,
|
|
4
4
|
resolveMachineRunPermissionPolicy
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-V4I3A7DR.js";
|
|
6
6
|
import {
|
|
7
7
|
isConnectorWebSocketAuthError,
|
|
8
8
|
isConnectorWebSocketRetryableError,
|
|
9
9
|
resolveConnectorWebSocketTarget
|
|
10
10
|
} from "./chunk-ALXHV7NK.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-ZMD2CQFC.js";
|
|
12
12
|
import "./chunk-53HEEOTT.js";
|
|
13
13
|
import "./chunk-EADNWBAZ.js";
|
|
14
14
|
import "./chunk-SH43IESU.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-I3TQJXQ7.js";
|
|
16
16
|
import "./chunk-42V6BK2E.js";
|
|
17
17
|
import "./chunk-Z77CRGTW.js";
|
|
18
18
|
import "./chunk-SV5IJK6K.js";
|
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
runtimeWorkspacePermissionPolicy,
|
|
12
12
|
scopePermissionPolicyToRuntimeWorkspace,
|
|
13
13
|
summarizeAgentConfigForLogs
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-V4I3A7DR.js";
|
|
15
|
+
import "./chunk-ZMD2CQFC.js";
|
|
16
16
|
import "./chunk-53HEEOTT.js";
|
|
17
17
|
import "./chunk-EADNWBAZ.js";
|
|
18
18
|
import "./chunk-SH43IESU.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-I3TQJXQ7.js";
|
|
20
20
|
import "./chunk-42V6BK2E.js";
|
|
21
21
|
import "./chunk-Z77CRGTW.js";
|
|
22
22
|
import "./chunk-SV5IJK6K.js";
|
package/package.json
CHANGED
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
wrapTextToLines,
|
|
73
73
|
wrapTranscriptLine,
|
|
74
74
|
wrapTranscriptLineWithLayout
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-2FA3ITSX.js";
|
|
76
76
|
import "./chunk-S7Z2HMCN.js";
|
|
77
77
|
import "./chunk-V7E4PXQD.js";
|
|
78
78
|
import {
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
readTimestamp,
|
|
97
97
|
setCliLocale,
|
|
98
98
|
t
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-ZMD2CQFC.js";
|
|
100
100
|
import "./chunk-53HEEOTT.js";
|
|
101
101
|
import "./chunk-EADNWBAZ.js";
|
|
102
102
|
import "./chunk-SH43IESU.js";
|
|
@@ -106,7 +106,7 @@ import {
|
|
|
106
106
|
isRunRecordClaimed,
|
|
107
107
|
listRunRecords,
|
|
108
108
|
readRunRecord
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-I3TQJXQ7.js";
|
|
110
110
|
import "./chunk-42V6BK2E.js";
|
|
111
111
|
import {
|
|
112
112
|
getReadableCliDb
|