nolo-cli 0.164.0-alpha.3 → 0.164.0-alpha.5

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.
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-62TBKWTV.js";
7
7
  import {
8
8
  clearCliLocalRuntimePreparedAgentCache
9
- } from "./chunk-365IMT4M.js";
9
+ } from "./chunk-35CEDQD6.js";
10
10
  import "./chunk-G3VYRPTV.js";
11
11
  import "./chunk-6MXDOUMH.js";
12
12
  import {
@@ -132,7 +132,7 @@ import {
132
132
  import "./chunk-5EMSBTQ6.js";
133
133
  import "./chunk-I42VC5KR.js";
134
134
  import "./chunk-U6VC4MU4.js";
135
- import "./chunk-WJJL7RMW.js";
135
+ import "./chunk-LPO6AMQU.js";
136
136
  import "./chunk-PJNFNEJE.js";
137
137
  import "./chunk-PSCNXBYA.js";
138
138
  import {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-I7S63QUU.js";
5
5
  import {
6
6
  runAgentCreateCommand
7
- } from "./chunk-752XQDKF.js";
7
+ } from "./chunk-TDMS3H4D.js";
8
8
  import "./chunk-U4STABYN.js";
9
9
  import {
10
10
  positionalArgs,
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  getReadableCliDb
15
15
  } from "./chunk-62TBKWTV.js";
16
- import "./chunk-365IMT4M.js";
16
+ import "./chunk-35CEDQD6.js";
17
17
  import "./chunk-G3VYRPTV.js";
18
18
  import "./chunk-6MXDOUMH.js";
19
19
  import "./chunk-2AB2HA4M.js";
@@ -132,7 +132,7 @@ import {
132
132
  } from "./chunk-5EMSBTQ6.js";
133
133
  import "./chunk-I42VC5KR.js";
134
134
  import "./chunk-U6VC4MU4.js";
135
- import "./chunk-WJJL7RMW.js";
135
+ import "./chunk-LPO6AMQU.js";
136
136
  import "./chunk-PJNFNEJE.js";
137
137
  import "./chunk-PSCNXBYA.js";
138
138
  import "./chunk-FDLDMJTM.js";
@@ -93,7 +93,7 @@ async function defaultExecuteCli(provider, prompt, options) {
93
93
  return executeCli(provider, prompt, options);
94
94
  }
95
95
  async function forwardConnectorRunMessage(machine, message, pushMessage, executeCli, env, fetchImpl) {
96
- const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-L4A6JY4P.js");
96
+ const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-DQE55BK5.js");
97
97
  return handleConnectorRunMessage(message, pushMessage, executeCli, env, fetchImpl);
98
98
  }
99
99
  async function detectLaunchableMachineInfo() {
@@ -2,10 +2,10 @@ import {
2
2
  runAgentCreateCommand,
3
3
  runAgentReadCommand,
4
4
  runAgentUpdateCommand
5
- } from "./chunk-752XQDKF.js";
5
+ } from "./chunk-TDMS3H4D.js";
6
6
  import "./chunk-U4STABYN.js";
7
7
  import "./chunk-62TBKWTV.js";
8
- import "./chunk-365IMT4M.js";
8
+ import "./chunk-35CEDQD6.js";
9
9
  import "./chunk-G3VYRPTV.js";
10
10
  import "./chunk-6MXDOUMH.js";
11
11
  import "./chunk-2AB2HA4M.js";
@@ -117,7 +117,7 @@ import "./chunk-M2EJHDJP.js";
117
117
  import "./chunk-5EMSBTQ6.js";
118
118
  import "./chunk-I42VC5KR.js";
119
119
  import "./chunk-U6VC4MU4.js";
120
- import "./chunk-WJJL7RMW.js";
120
+ import "./chunk-LPO6AMQU.js";
121
121
  import "./chunk-PJNFNEJE.js";
122
122
  import "./chunk-PSCNXBYA.js";
123
123
  import "./chunk-FDLDMJTM.js";
@@ -9,13 +9,13 @@ import {
9
9
  resolveRunSettlementNote,
10
10
  resolveWorkflowReference,
11
11
  runAgentRunCommand
12
- } from "./chunk-YABGINA3.js";
12
+ } from "./chunk-GVGQKI6E.js";
13
13
  import "./chunk-6QDYSCPW.js";
14
14
  import {
15
15
  parseAgentRunArgs
16
16
  } from "./chunk-N665S3Z2.js";
17
17
  import "./chunk-62TBKWTV.js";
18
- import "./chunk-365IMT4M.js";
18
+ import "./chunk-35CEDQD6.js";
19
19
  import "./chunk-G3VYRPTV.js";
20
20
  import "./chunk-6MXDOUMH.js";
21
21
  import "./chunk-2AB2HA4M.js";
@@ -136,7 +136,7 @@ import "./chunk-M2EJHDJP.js";
136
136
  import "./chunk-5EMSBTQ6.js";
137
137
  import "./chunk-I42VC5KR.js";
138
138
  import "./chunk-U6VC4MU4.js";
139
- import "./chunk-WJJL7RMW.js";
139
+ import "./chunk-LPO6AMQU.js";
140
140
  import "./chunk-PJNFNEJE.js";
141
141
  import "./chunk-PSCNXBYA.js";
142
142
  import "./chunk-EXAJ6DCR.js";
@@ -71,8 +71,9 @@ import {
71
71
  terminateRunProcess,
72
72
  transitionRunToTerminal,
73
73
  withQueueLock,
74
+ withRunRecordLock,
74
75
  writeRunRecord
75
- } from "./chunk-WJJL7RMW.js";
76
+ } from "./chunk-LPO6AMQU.js";
76
77
  import "./chunk-PJNFNEJE.js";
77
78
  import "./chunk-PSCNXBYA.js";
78
79
  import "./chunk-A7GB5UGH.js";
@@ -163,5 +164,6 @@ export {
163
164
  terminateRunProcess,
164
165
  transitionRunToTerminal,
165
166
  withQueueLock,
167
+ withRunRecordLock,
166
168
  writeRunRecord
167
169
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-365IMT4M.js";
4
+ } from "./chunk-35CEDQD6.js";
5
5
  import {
6
6
  t
7
7
  } from "./chunk-2AB2HA4M.js";
@@ -301,7 +301,7 @@ import {
301
301
  terminateRunProcess,
302
302
  transitionRunToTerminal,
303
303
  withQueueLock
304
- } from "./chunk-WJJL7RMW.js";
304
+ } from "./chunk-LPO6AMQU.js";
305
305
  import {
306
306
  TASK_PREVIEW_MAX,
307
307
  formatListRunsCard,
@@ -12027,6 +12027,7 @@ function createCliLocalRuntimeAdapter(deps) {
12027
12027
  );
12028
12028
  }
12029
12029
  instaboxWorkloadLoad ??= (async () => {
12030
+ assertInstaboxPrerequisites(deps.env);
12030
12031
  let runConfig;
12031
12032
  try {
12032
12033
  runConfig = loadInstaboxRunConfig({ env: deps.env });
@@ -12059,7 +12060,7 @@ function createCliLocalRuntimeAdapter(deps) {
12059
12060
  const recordRunExecutionIsolation = async () => {
12060
12061
  try {
12061
12062
  const { writeFileSync: writeFileSync4, mkdirSync: mkdirSync4 } = await import("node:fs");
12062
- const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-NQR3GB6H.js");
12063
+ const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-QWFFIAQY.js");
12063
12064
  const fact = resolveLocalRunExecutionIsolationFact({
12064
12065
  // F1:显式点名宿主执行的 run 在审计里必须与 docker 沙盒区分开
12065
12066
  // (reason: host-explicit-writes vs docker-workload)。
@@ -12091,7 +12092,7 @@ function createCliLocalRuntimeAdapter(deps) {
12091
12092
  dockerWorkloadReleased = true;
12092
12093
  dockerWorkloadLoad = null;
12093
12094
  if (loaded) {
12094
- const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-NQR3GB6H.js");
12095
+ const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-QWFFIAQY.js");
12095
12096
  const exportRunDiff = deps.exportDockerRunDiffArtifact ?? exportDockerRunDiffArtifact;
12096
12097
  const warn = (message) => process.stderr.write(`[nolo] ${message}
12097
12098
  `);
@@ -31,7 +31,7 @@ import {
31
31
  resolveFileWriteGateEnabled,
32
32
  resolveLocalUserId,
33
33
  validateInstaboxWorkspaceSelection
34
- } from "./chunk-365IMT4M.js";
34
+ } from "./chunk-35CEDQD6.js";
35
35
  import {
36
36
  clearCredentialAvailability,
37
37
  readCredentialEntry,
@@ -186,7 +186,7 @@ import {
186
186
  serverOriginForDialog,
187
187
  settleRunTerminalAuthoritatively,
188
188
  spawnLocalBackgroundRun
189
- } from "./chunk-WJJL7RMW.js";
189
+ } from "./chunk-LPO6AMQU.js";
190
190
  import {
191
191
  formatAgentListCard,
192
192
  formatFinishedRunCard,
@@ -1422,10 +1422,14 @@ function withRunRecordLock(runId, deps, fn, opts = {}) {
1422
1422
  const lockPath = `${resolveRunRecordPath(runId, deps.env, deps.homedir)}.lock`;
1423
1423
  let held = false;
1424
1424
  try {
1425
+ fs.mkdirSync(dirname(lockPath), { recursive: true });
1425
1426
  try {
1426
1427
  fs.writeFileSync(lockPath, String(process.pid), { flag: "wx" });
1427
1428
  held = true;
1428
- } catch {
1429
+ } catch (err) {
1430
+ if (err?.code !== "EEXIST") {
1431
+ throw err;
1432
+ }
1429
1433
  try {
1430
1434
  const stat = fs.statSync?.(lockPath);
1431
1435
  const ageMs = stat ? now().getTime() - stat.mtimeMs : Number.POSITIVE_INFINITY;
@@ -1825,8 +1829,9 @@ function emitHostMemoryNotice(mem, output) {
1825
1829
  return notice;
1826
1830
  }
1827
1831
  async function spawnLocalBackgroundRun(input, deps = {}) {
1828
- const env = deps.env ?? process.env;
1829
1832
  const homedir = deps.homedir ?? nodeHomedir;
1833
+ const env = deps.env ?? (deps.homedir ? { ...process.env, NOLO_HOME: join2(homedir(), ".nolo") } : process.env);
1834
+ const resolvedDeps = { ...deps, env, homedir };
1830
1835
  const fs = deps.fs ?? nodeFs2;
1831
1836
  const spawn = deps.spawn ?? nodeSpawn;
1832
1837
  const generateRunId = deps.generateRunId ?? defaultGenerateRunId;
@@ -1925,10 +1930,10 @@ async function spawnLocalBackgroundRun(input, deps = {}) {
1925
1930
  runsDir,
1926
1931
  runId,
1927
1932
  fs: reservationFs,
1928
- now: deps.now,
1929
- readHostMemory: () => hostMemory = (deps.readHostMemory ?? readHostMemory)(),
1930
- getProcessStartTime: deps.getProcessStartTime ?? defaultGetProcessStartTime,
1931
- withLock: (id, fn, opts) => withRunRecordLock(id, deps, fn, opts)
1933
+ now: resolvedDeps.now,
1934
+ readHostMemory: () => hostMemory = (resolvedDeps.readHostMemory ?? readHostMemory)(),
1935
+ getProcessStartTime: resolvedDeps.getProcessStartTime ?? defaultGetProcessStartTime,
1936
+ withLock: (id, fn, opts) => withRunRecordLock(id, resolvedDeps, fn, opts)
1932
1937
  });
1933
1938
  proc = spawn(execPath, childArgs, {
1934
1939
  cwd: input.cwd,
@@ -1940,7 +1945,7 @@ async function spawnLocalBackgroundRun(input, deps = {}) {
1940
1945
  try {
1941
1946
  reservation?.release("spawn_sync_failed");
1942
1947
  } finally {
1943
- finalizeRunRecord(runId, { status: "failed", exitCode: 1, note: String(error) }, deps);
1948
+ finalizeRunRecord(runId, { status: "failed", exitCode: 1, note: String(error) }, resolvedDeps);
1944
1949
  }
1945
1950
  throw error;
1946
1951
  } finally {
@@ -1954,29 +1959,29 @@ async function spawnLocalBackgroundRun(input, deps = {}) {
1954
1959
  status: "failed",
1955
1960
  exitCode: 1,
1956
1961
  note: `${error}; reservation release failed: ${releaseError}`
1957
- }, deps);
1962
+ }, resolvedDeps);
1958
1963
  return;
1959
1964
  }
1960
- finalizeRunRecord(runId, { status: "failed", exitCode: 1, note: String(error) }, deps);
1965
+ finalizeRunRecord(runId, { status: "failed", exitCode: 1, note: String(error) }, resolvedDeps);
1961
1966
  });
1962
1967
  const hostMemoryNotice = emitHostMemoryNotice(hostMemory, input.output);
1963
1968
  if (typeof proc.pid === "number") {
1964
1969
  let processStartedAt;
1965
1970
  try {
1966
- processStartedAt = (deps.getProcessStartTime ?? defaultGetProcessStartTime)(proc.pid);
1971
+ processStartedAt = (resolvedDeps.getProcessStartTime ?? defaultGetProcessStartTime)(proc.pid);
1967
1972
  if (processStartedAt && !Number.isFinite(processStartedAt.getTime())) processStartedAt = null;
1968
1973
  } catch {
1969
1974
  processStartedAt = null;
1970
1975
  }
1971
- withRunRecordLock(runId, deps, () => {
1972
- const latest = readRunRecord(runId, deps) ?? record;
1976
+ withRunRecordLock(runId, resolvedDeps, () => {
1977
+ const latest = readRunRecord(runId, resolvedDeps) ?? record;
1973
1978
  latest.pid = proc.pid;
1974
1979
  if (processStartedAt) latest.processStartedAt = processStartedAt.toISOString();
1975
- writeRunRecord(latest, deps);
1980
+ writeRunRecord(latest, resolvedDeps);
1976
1981
  return true;
1977
1982
  }, { strict: true });
1978
1983
  try {
1979
- const persisted = readRunRecord(runId, deps);
1984
+ const persisted = readRunRecord(runId, resolvedDeps);
1980
1985
  reservation.associate({ runId, pid: proc.pid, processStartedAt: processStartedAt?.toISOString() });
1981
1986
  if (persisted?.pid !== proc.pid || !persisted.processStartedAt) throw new Error("Child identity persistence failed");
1982
1987
  } catch (error) {
@@ -2718,6 +2723,7 @@ export {
2718
2723
  popQueueMessages,
2719
2724
  defaultGenerateRunId,
2720
2725
  defaultGenerateBatchId,
2726
+ withRunRecordLock,
2721
2727
  writeRunRecord,
2722
2728
  createRunActivityTracker,
2723
2729
  readRunRecord,
@@ -42,7 +42,7 @@ import {
42
42
  } from "./chunk-I42VC5KR.js";
43
43
  import {
44
44
  resolveRunsDir
45
- } from "./chunk-WJJL7RMW.js";
45
+ } from "./chunk-LPO6AMQU.js";
46
46
  import {
47
47
  getDefaultCliLocalRuntimeDb
48
48
  } from "./chunk-GAGGEA7D.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-62TBKWTV.js";
7
7
  import {
8
8
  clearCliLocalRuntimePreparedAgentCache
9
- } from "./chunk-365IMT4M.js";
9
+ } from "./chunk-35CEDQD6.js";
10
10
  import {
11
11
  readCredentialAvailability
12
12
  } from "./chunk-6MXDOUMH.js";
@@ -110,7 +110,7 @@ function createDaemonShortcutCommand(path, description, command) {
110
110
  // packages/cli/agentInternalCommandEntries.ts
111
111
  function getAgentInternalCommandEntries() {
112
112
  const createAgentRunCommand = (path, description) => createContextCommand(path, description, async (args, ctx) => {
113
- const { runAgentRunCommand } = await import("./agentRunCommand-UY4CAYHE.js");
113
+ const { runAgentRunCommand } = await import("./agentRunCommand-2QU75CBD.js");
114
114
  return runAgentRunCommand(args, {
115
115
  env: ctx.env,
116
116
  scriptDir: ctx.scriptDir,
@@ -126,7 +126,7 @@ function getAgentInternalCommandEntries() {
126
126
  return runAgentListCommand(args, deps);
127
127
  }),
128
128
  createEnvCommand(["agent", "create"], "Create a new agent", async (args, deps) => {
129
- const { runAgentCreateCommand } = await import("./agentRecordCommands-5RS2SFJU.js");
129
+ const { runAgentCreateCommand } = await import("./agentRecordCommands-GHQNXIVM.js");
130
130
  return runAgentCreateCommand(args, deps);
131
131
  }),
132
132
  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) => {
@@ -142,28 +142,28 @@ function getAgentInternalCommandEntries() {
142
142
  return runAgentPullCommand(args, deps);
143
143
  }),
144
144
  createEnvCommand(["agent", "read"], "Read a single agent", async (args, deps) => {
145
- const { runAgentReadCommand } = await import("./agentRecordCommands-5RS2SFJU.js");
145
+ const { runAgentReadCommand } = await import("./agentRecordCommands-GHQNXIVM.js");
146
146
  return runAgentReadCommand(args, deps);
147
147
  }),
148
148
  createAgentRunCommand(["agent", "run"], "Run an agent"),
149
149
  createEnvCommand(["agent", "ps"], "List active and recent local agent runs (--json for machine-readable output)", async (_args, deps) => {
150
- const { runAgentPsCommand } = await import("./agentRunControl-NQR3GB6H.js");
150
+ const { runAgentPsCommand } = await import("./agentRunControl-QWFFIAQY.js");
151
151
  return runAgentPsCommand(_args, { ...deps, output: process.stdout });
152
152
  }),
153
153
  createEnvCommand(["agent", "status"], "Show status of a local agent run (--json, --watch, --interval-ms N)", async (args, deps) => {
154
- const { runAgentStatusCommand } = await import("./agentRunControl-NQR3GB6H.js");
154
+ const { runAgentStatusCommand } = await import("./agentRunControl-QWFFIAQY.js");
155
155
  return runAgentStatusCommand(args, { ...deps, output: process.stdout });
156
156
  }),
157
157
  createEnvCommand(["agent", "logs"], "Show logs of a local agent run", async (args, deps) => {
158
- const { runAgentLogsCommand } = await import("./agentRunControl-NQR3GB6H.js");
158
+ const { runAgentLogsCommand } = await import("./agentRunControl-QWFFIAQY.js");
159
159
  return runAgentLogsCommand(args, { ...deps, output: process.stdout });
160
160
  }),
161
161
  createEnvCommand(["agent", "stop"], "Stop a local agent run", async (args, deps) => {
162
- const { runAgentStopCommand } = await import("./agentRunControl-NQR3GB6H.js");
162
+ const { runAgentStopCommand } = await import("./agentRunControl-QWFFIAQY.js");
163
163
  return runAgentStopCommand(args, { ...deps, output: process.stdout });
164
164
  }),
165
165
  createEnvCommand(["agent", "kill"], "Kill a local agent run", async (args, deps) => {
166
- const { runAgentKillCommand } = await import("./agentRunControl-NQR3GB6H.js");
166
+ const { runAgentKillCommand } = await import("./agentRunControl-QWFFIAQY.js");
167
167
  return runAgentKillCommand(args, { ...deps, output: process.stdout });
168
168
  }),
169
169
  createEnvCommand(["agent", "setup-offline-marxists"], "Create or update the Marxists.org offline book agent", async (args, deps) => {
@@ -171,31 +171,31 @@ function getAgentInternalCommandEntries() {
171
171
  return runSetupOfflineMarxistsAgentCommand(args, deps);
172
172
  }),
173
173
  createEnvCommand(["agent", "update"], "Update agent fields", async (args, deps) => {
174
- const { runAgentUpdateCommand } = await import("./agentRecordCommands-5RS2SFJU.js");
174
+ const { runAgentUpdateCommand } = await import("./agentRecordCommands-GHQNXIVM.js");
175
175
  return runAgentUpdateCommand(args, deps);
176
176
  }),
177
177
  createEnvCommand(["agent", "email", "provision"], "Provision a controlled inbox for an agent", async (args, deps) => {
178
- const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-CO3IH7S7.js");
178
+ const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-SBPLOOIY.js");
179
179
  return runAgentEmailProvisionCommand(args, deps);
180
180
  }),
181
181
  createEnvCommand(["agent", "email", "bind"], "Bind an existing email address to an agent", async (args, deps) => {
182
- const { runAgentEmailBindCommand } = await import("./agentEmailCommands-CO3IH7S7.js");
182
+ const { runAgentEmailBindCommand } = await import("./agentEmailCommands-SBPLOOIY.js");
183
183
  return runAgentEmailBindCommand(args, deps);
184
184
  }),
185
185
  createEnvCommand(["agent", "email", "transfer"], "Transfer an email identity from one agent to another (cross-account)", async (args, deps) => {
186
- const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-CO3IH7S7.js");
186
+ const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-SBPLOOIY.js");
187
187
  return runAgentEmailTransferCommand(args, deps);
188
188
  }),
189
189
  createEnvCommand(
190
190
  ["agent", "email", "create-and-provision"],
191
191
  "Create an agent and provision its controlled inbox",
192
192
  async (args, deps) => {
193
- const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-CO3IH7S7.js");
193
+ const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-SBPLOOIY.js");
194
194
  return runAgentEmailCreateAndProvisionCommand(args, deps);
195
195
  }
196
196
  ),
197
197
  createEnvCommand(["agent", "delete"], "Hard-delete an agent's private and public records", async (args, deps) => {
198
- const { runAgentDeleteCommand } = await import("./agentDeleteCommand-FKJ7I3EH.js");
198
+ const { runAgentDeleteCommand } = await import("./agentDeleteCommand-FNLCIWA7.js");
199
199
  return runAgentDeleteCommand(args, deps);
200
200
  }),
201
201
  createEnvCommand(["agent", "grant"], "Grant another user access to this agent's owner credentials", async (args, deps) => {
@@ -211,15 +211,15 @@ function getAgentInternalCommandEntries() {
211
211
  return runAgentRevokeGrantCommand(args, deps);
212
212
  }),
213
213
  createEnvCommand(["agent", "bind-current"], "Bind an agent to this machine", async (args, deps) => {
214
- const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-BPGSGJ3E.js");
214
+ const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-L7NY3BCY.js");
215
215
  return runAgentBindCurrentCommand(args, deps);
216
216
  }),
217
217
  createEnvCommand(["agent", "smoke-current"], "Smoke test a bound agent through this machine", async (args, deps) => {
218
- const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-BPGSGJ3E.js");
218
+ const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-L7NY3BCY.js");
219
219
  return runAgentSmokeCurrentCommand(args, deps);
220
220
  }),
221
221
  createEnvCommand(["agent", "runtime-doctor"], "Diagnose current machine runtime compatibility", async (args, deps) => {
222
- const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-BPGSGJ3E.js");
222
+ const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-L7NY3BCY.js");
223
223
  return runAgentRuntimeDoctorCommand(args, deps);
224
224
  }),
225
225
  createAgentRunCommand(["agent", "chat"], "Chat with an agent")
@@ -374,27 +374,27 @@ function getCiInternalCommandEntries() {
374
374
  function getDialogInternalCommandEntries() {
375
375
  return [
376
376
  createEnvCommand(["dialog", "search"], "Search dialog messages across dialogs", async (args, deps) => {
377
- const { runDialogSearchCommand } = await import("./dialogCommands-7FZEZ5DV.js");
377
+ const { runDialogSearchCommand } = await import("./dialogCommands-3W6AIUXT.js");
378
378
  return runDialogSearchCommand(args, deps);
379
379
  }),
380
380
  createEnvCommand(["dialog", "list"], "List dialogs (default --limit 50; --all/--limit 0 full; --jsonl streams)", async (args, deps) => {
381
- const { runDialogListCommand } = await import("./dialogCommands-7FZEZ5DV.js");
381
+ const { runDialogListCommand } = await import("./dialogCommands-3W6AIUXT.js");
382
382
  return runDialogListCommand(args, deps);
383
383
  }),
384
384
  createEnvCommand(["dialog", "delete"], "Delete one or more dialogs", async (args, deps) => {
385
- const { runDialogDeleteCommand } = await import("./dialogCommands-7FZEZ5DV.js");
385
+ const { runDialogDeleteCommand } = await import("./dialogCommands-3W6AIUXT.js");
386
386
  return runDialogDeleteCommand(args, deps);
387
387
  }),
388
388
  createEnvCommand(["dialog", "query"], "Query dialogs by subject refs (default --limit 50; --all full; --jsonl streams)", async (args, deps) => {
389
- const { runDialogQueryCommand } = await import("./dialogCommands-7FZEZ5DV.js");
389
+ const { runDialogQueryCommand } = await import("./dialogCommands-3W6AIUXT.js");
390
390
  return runDialogQueryCommand(args, deps);
391
391
  }),
392
392
  createEnvCommand(["dialog", "read"], "Read a dialog", async (args, deps) => {
393
- const { runDialogReadCommand } = await import("./dialogCommands-7FZEZ5DV.js");
393
+ const { runDialogReadCommand } = await import("./dialogCommands-3W6AIUXT.js");
394
394
  return runDialogReadCommand(args, deps);
395
395
  }),
396
396
  createEnvCommand(["dialog", "status"], "Read compact dialog status", async (args, deps) => {
397
- const { runDialogStatusCommand } = await import("./dialogCommands-7FZEZ5DV.js");
397
+ const { runDialogStatusCommand } = await import("./dialogCommands-3W6AIUXT.js");
398
398
  return runDialogStatusCommand(args, deps);
399
399
  })
400
400
  ];
@@ -530,15 +530,15 @@ function getSystemInternalCommandEntries(renderHelpText2) {
530
530
  return runWhoamiCommand({ args, env: ctx.env });
531
531
  }),
532
532
  createEntrypointEnvCommand(["connect"], "Send machine heartbeats or hold a connector websocket", async (args, deps) => {
533
- const { runMachineConnectCommand } = await import("./machineCommands-P3VUFO3B.js");
533
+ const { runMachineConnectCommand } = await import("./machineCommands-2SN3XNMT.js");
534
534
  return runMachineConnectCommand(args, deps);
535
535
  }),
536
536
  createDaemonShortcutCommand(["daemon"], "Run the connector daemon shortcut", async (args, deps) => {
537
- const { runMachineConnectCommand } = await import("./machineCommands-P3VUFO3B.js");
537
+ const { runMachineConnectCommand } = await import("./machineCommands-2SN3XNMT.js");
538
538
  return runMachineConnectCommand(args, deps);
539
539
  }),
540
540
  createEnvCommand(["machine", "status"], "List machines registered to the current profile", async (args, deps) => {
541
- const { runMachineStatusCommand } = await import("./machineCommands-P3VUFO3B.js");
541
+ const { runMachineStatusCommand } = await import("./machineCommands-2SN3XNMT.js");
542
542
  return runMachineStatusCommand(args, deps);
543
543
  }),
544
544
  createEnvCommand(["doctor", "runtime"], "Diagnose local-first agent runtime selection", async (args, deps) => {
@@ -15,7 +15,7 @@ import {
15
15
  runDialogSearchCommand,
16
16
  runDialogStatusCommand,
17
17
  sortDialogs
18
- } from "./chunk-NOFLIR3Z.js";
18
+ } from "./chunk-MLEANT7D.js";
19
19
  import "./chunk-ID4G2MAR.js";
20
20
  import "./chunk-W7FGZRLK.js";
21
21
  import "./chunk-Y5GCAMGP.js";
@@ -66,7 +66,7 @@ import "./chunk-M2EJHDJP.js";
66
66
  import "./chunk-5EMSBTQ6.js";
67
67
  import "./chunk-I42VC5KR.js";
68
68
  import "./chunk-U6VC4MU4.js";
69
- import "./chunk-WJJL7RMW.js";
69
+ import "./chunk-LPO6AMQU.js";
70
70
  import "./chunk-PJNFNEJE.js";
71
71
  import "./chunk-PSCNXBYA.js";
72
72
  import "./chunk-GAGGEA7D.js";
package/index.js CHANGED
@@ -71,9 +71,9 @@ async function runScript(script, forwardedArgs, env) {
71
71
  return proc.exited;
72
72
  }
73
73
  async function launchTuiWorkspace(args2) {
74
- const { startTuiWorkspace } = await import("./readlineWorkspace-ZWBEFUHN.js");
74
+ const { startTuiWorkspace } = await import("./readlineWorkspace-VM35JAR6.js");
75
75
  const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-FESHBDTT.js");
76
- const { setCliAutoCompactionSummaryFallback } = await import("./localRuntimeAdapter-5PDJV4DL.js");
76
+ const { setCliAutoCompactionSummaryFallback } = await import("./localRuntimeAdapter-IIGPBSU6.js");
77
77
  setCliAutoCompactionSummaryFallback(
78
78
  createTuiSummaryLlmCaller(args2.env, { timeoutMs: 3e4 })
79
79
  );
@@ -85,7 +85,7 @@ async function launchTuiWorkspace(args2) {
85
85
  });
86
86
  }
87
87
  async function main() {
88
- const { createCliRuntimeContext, looksLikeDaemonShortcut, renderHelpText, resolveCommand, runResolvedCommand } = await import("./commandRegistry-XVWG2EZH.js");
88
+ const { createCliRuntimeContext, looksLikeDaemonShortcut, renderHelpText, resolveCommand, runResolvedCommand } = await import("./commandRegistry-6VNTR43G.js");
89
89
  const { buildCliRuntimeEnv, loadProfileConfig } = await import("./profileConfig-KN3N2BLF.js");
90
90
  const { resolveTuiLaunchMode } = await import("./runtimeModeArgs-2Y7BALTO.js");
91
91
  const runtimeEnv = {
@@ -45,7 +45,7 @@ import {
45
45
  withRuntimeEnabledPacksAndPrompt,
46
46
  writeDialog,
47
47
  writeLocalTokenRecord
48
- } from "./chunk-365IMT4M.js";
48
+ } from "./chunk-35CEDQD6.js";
49
49
  import "./chunk-G3VYRPTV.js";
50
50
  import "./chunk-6MXDOUMH.js";
51
51
  import "./chunk-2AB2HA4M.js";
@@ -163,7 +163,7 @@ import "./chunk-I42VC5KR.js";
163
163
  import "./chunk-U6VC4MU4.js";
164
164
  import {
165
165
  setRemoteDialogSyncTimeoutForTest
166
- } from "./chunk-WJJL7RMW.js";
166
+ } from "./chunk-LPO6AMQU.js";
167
167
  import "./chunk-PJNFNEJE.js";
168
168
  import "./chunk-PSCNXBYA.js";
169
169
  import "./chunk-FDLDMJTM.js";
@@ -2,7 +2,7 @@ import {
2
2
  buildMachinePermissionPromptBlock,
3
3
  handleConnectorRunMessage,
4
4
  resolveMachineRunPermissionPolicy
5
- } from "./chunk-RUG2OSIT.js";
5
+ } from "./chunk-2MWKM3NP.js";
6
6
  import {
7
7
  MAX_CONNECTOR_TIMER_DELAY_MS,
8
8
  clampConnectorTimerDelayMs,
@@ -11,7 +11,7 @@ import {
11
11
  resolveConnectorProbeTimeoutMs,
12
12
  resolveConnectorWebSocketTarget
13
13
  } from "./chunk-BLVSFYQ3.js";
14
- import "./chunk-365IMT4M.js";
14
+ import "./chunk-35CEDQD6.js";
15
15
  import "./chunk-G3VYRPTV.js";
16
16
  import "./chunk-6MXDOUMH.js";
17
17
  import "./chunk-2AB2HA4M.js";
@@ -135,7 +135,7 @@ import "./chunk-M2EJHDJP.js";
135
135
  import "./chunk-5EMSBTQ6.js";
136
136
  import "./chunk-I42VC5KR.js";
137
137
  import "./chunk-U6VC4MU4.js";
138
- import "./chunk-WJJL7RMW.js";
138
+ import "./chunk-LPO6AMQU.js";
139
139
  import "./chunk-PJNFNEJE.js";
140
140
  import "./chunk-PSCNXBYA.js";
141
141
  import "./chunk-FDLDMJTM.js";
@@ -11,8 +11,8 @@ import {
11
11
  runtimeWorkspacePermissionPolicy,
12
12
  scopePermissionPolicyToRuntimeWorkspace,
13
13
  summarizeAgentConfigForLogs
14
- } from "./chunk-RUG2OSIT.js";
15
- import "./chunk-365IMT4M.js";
14
+ } from "./chunk-2MWKM3NP.js";
15
+ import "./chunk-35CEDQD6.js";
16
16
  import "./chunk-G3VYRPTV.js";
17
17
  import "./chunk-6MXDOUMH.js";
18
18
  import "./chunk-2AB2HA4M.js";
@@ -123,7 +123,7 @@ import "./chunk-M2EJHDJP.js";
123
123
  import "./chunk-5EMSBTQ6.js";
124
124
  import "./chunk-I42VC5KR.js";
125
125
  import "./chunk-U6VC4MU4.js";
126
- import "./chunk-WJJL7RMW.js";
126
+ import "./chunk-LPO6AMQU.js";
127
127
  import "./chunk-PJNFNEJE.js";
128
128
  import "./chunk-PSCNXBYA.js";
129
129
  import "./chunk-FDLDMJTM.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nolo-cli",
3
- "version": "0.164.0-alpha.3",
3
+ "version": "0.164.0-alpha.5",
4
4
  "type": "module",
5
5
  "description": "Agent-first terminal workspace for Nolo",
6
6
  "bin": {
@@ -90,7 +90,7 @@ import {
90
90
  wrapTextToLines,
91
91
  wrapTranscriptLine,
92
92
  wrapTranscriptLineWithLayout
93
- } from "./chunk-YABGINA3.js";
93
+ } from "./chunk-GVGQKI6E.js";
94
94
  import "./chunk-6QDYSCPW.js";
95
95
  import "./chunk-N665S3Z2.js";
96
96
  import {
@@ -102,7 +102,7 @@ import {
102
102
  createCliLocalRuntimeAdapter,
103
103
  createOriginShellGrant,
104
104
  readTimestamp
105
- } from "./chunk-365IMT4M.js";
105
+ } from "./chunk-35CEDQD6.js";
106
106
  import "./chunk-G3VYRPTV.js";
107
107
  import "./chunk-6MXDOUMH.js";
108
108
  import {
@@ -123,7 +123,7 @@ import {
123
123
  normalizeDialogRecord,
124
124
  readDialogSnapshot,
125
125
  sortDialogs
126
- } from "./chunk-NOFLIR3Z.js";
126
+ } from "./chunk-MLEANT7D.js";
127
127
  import "./chunk-ID4G2MAR.js";
128
128
  import {
129
129
  listUserRecordsFromServers,
@@ -320,7 +320,7 @@ import {
320
320
  isRunRecordClaimed,
321
321
  listRunRecords,
322
322
  readRunRecord
323
- } from "./chunk-WJJL7RMW.js";
323
+ } from "./chunk-LPO6AMQU.js";
324
324
  import {
325
325
  clipText,
326
326
  formatDuration,