nolo-cli 0.160.0-alpha.3 → 0.160.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-UY73HNIN.js";
9
+ } from "./chunk-BO3ARJRK.js";
10
10
  import "./chunk-G3VYRPTV.js";
11
11
  import "./chunk-6MXDOUMH.js";
12
12
  import {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-I7S63QUU.js";
5
5
  import {
6
6
  runAgentCreateCommand
7
- } from "./chunk-ZSLIYVIQ.js";
7
+ } from "./chunk-BMCPKNL2.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-UY73HNIN.js";
16
+ import "./chunk-BO3ARJRK.js";
17
17
  import "./chunk-G3VYRPTV.js";
18
18
  import "./chunk-6MXDOUMH.js";
19
19
  import "./chunk-2AB2HA4M.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-T4LFRJL3.js");
96
+ const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-CCDVG5AO.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-ZSLIYVIQ.js";
5
+ } from "./chunk-BMCPKNL2.js";
6
6
  import "./chunk-U4STABYN.js";
7
7
  import "./chunk-62TBKWTV.js";
8
- import "./chunk-UY73HNIN.js";
8
+ import "./chunk-BO3ARJRK.js";
9
9
  import "./chunk-G3VYRPTV.js";
10
10
  import "./chunk-6MXDOUMH.js";
11
11
  import "./chunk-2AB2HA4M.js";
@@ -9,13 +9,13 @@ import {
9
9
  resolveRunSettlementNote,
10
10
  resolveWorkflowReference,
11
11
  runAgentRunCommand
12
- } from "./chunk-JSB2OPQT.js";
12
+ } from "./chunk-CXCMXNME.js";
13
13
  import "./chunk-6QDYSCPW.js";
14
14
  import {
15
15
  parseAgentRunArgs
16
16
  } from "./chunk-ZAV4YVEA.js";
17
17
  import "./chunk-62TBKWTV.js";
18
- import "./chunk-UY73HNIN.js";
18
+ import "./chunk-BO3ARJRK.js";
19
19
  import "./chunk-G3VYRPTV.js";
20
20
  import "./chunk-6MXDOUMH.js";
21
21
  import "./chunk-2AB2HA4M.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-62TBKWTV.js";
7
7
  import {
8
8
  clearCliLocalRuntimePreparedAgentCache
9
- } from "./chunk-UY73HNIN.js";
9
+ } from "./chunk-BO3ARJRK.js";
10
10
  import {
11
11
  readCredentialAvailability
12
12
  } from "./chunk-6MXDOUMH.js";
@@ -3532,6 +3532,77 @@ var OWNER_PROXY_BODY_FORBIDDEN_KEYS = [
3532
3532
  "agentHydratedKey",
3533
3533
  "credentialPolicy"
3534
3534
  ];
3535
+ var OWNER_PROXY_RETRYABLE_STATUSES = /* @__PURE__ */ new Set([429, 503]);
3536
+ var OWNER_PROXY_TOTAL_MAX_ATTEMPTS = 30;
3537
+ var OWNER_PROXY_GENERIC_MAX_ATTEMPTS = 3;
3538
+ var OWNER_PROXY_CORE_DRAINING_MAX_ATTEMPTS = 30;
3539
+ async function readStructuredErrorCode(response) {
3540
+ try {
3541
+ const body = await response.clone().json();
3542
+ const nested = body?.error?.code;
3543
+ if (typeof nested === "string") return nested;
3544
+ return typeof body?.code === "string" ? body.code : null;
3545
+ } catch {
3546
+ return null;
3547
+ }
3548
+ }
3549
+ async function shouldRetryOwnerProxyResponse(response) {
3550
+ if (response.status === 503) {
3551
+ try {
3552
+ const body = await response.clone().json();
3553
+ return body?.reason === "core_draining" || body?.retryable === true;
3554
+ } catch {
3555
+ return false;
3556
+ }
3557
+ }
3558
+ return false;
3559
+ }
3560
+ var OWNER_ORIGIN_MISMATCH_RETRY_BUDGET = {
3561
+ /** 额外尝试次数上限(不含首次请求)。 */
3562
+ maxExtraAttempts: 2,
3563
+ /** 每次额外尝试前的等待时长(ms),按序使用。 */
3564
+ delaysMs: [5e3, 15e3]
3565
+ };
3566
+ function waitWithAbort(ms, signal) {
3567
+ if (signal?.aborted) {
3568
+ return Promise.reject(signal.reason ?? new Error("owner-required proxy aborted"));
3569
+ }
3570
+ return new Promise((resolve4, reject) => {
3571
+ let timer;
3572
+ const cleanup = () => {
3573
+ if (timer !== void 0) clearTimeout(timer);
3574
+ signal?.removeEventListener("abort", onAbort);
3575
+ };
3576
+ const onAbort = () => {
3577
+ cleanup();
3578
+ reject(signal?.reason ?? new Error("owner-required proxy aborted"));
3579
+ };
3580
+ timer = setTimeout(() => {
3581
+ cleanup();
3582
+ resolve4();
3583
+ }, ms);
3584
+ signal?.addEventListener("abort", onAbort, { once: true });
3585
+ });
3586
+ }
3587
+ async function sendWithOwnerOriginMismatchRetry(send, signal, onRetry) {
3588
+ let attempt = await send();
3589
+ for (let extra = 0; extra < OWNER_ORIGIN_MISMATCH_RETRY_BUDGET.maxExtraAttempts; extra += 1) {
3590
+ const response = attempt.response;
3591
+ if (response.status !== 403) return response;
3592
+ const code = await readStructuredErrorCode(response);
3593
+ if (code !== "owner_origin_mismatch") return response;
3594
+ if (attempt.innerRetried) return response;
3595
+ const delayMs = OWNER_ORIGIN_MISMATCH_RETRY_BUDGET.delaysMs[extra] ?? 0;
3596
+ onRetry?.({
3597
+ attempt: extra + 1,
3598
+ maxAttempts: OWNER_ORIGIN_MISMATCH_RETRY_BUDGET.maxExtraAttempts,
3599
+ delayMs
3600
+ });
3601
+ await waitWithAbort(delayMs, signal);
3602
+ attempt = await send();
3603
+ }
3604
+ return attempt.response;
3605
+ }
3535
3606
  var resolveOwnerOAuthProxyTransport = async (ctx) => {
3536
3607
  const {
3537
3608
  agentConfig,
@@ -3610,32 +3681,57 @@ var resolveOwnerOAuthProxyTransport = async (ctx) => {
3610
3681
  originSessionId: ownerOriginExecution.origin.sessionId
3611
3682
  });
3612
3683
  try {
3613
- const res = await fetchWithTransientRetry(
3614
- fetchImpl,
3615
- request.url,
3616
- init,
3617
- {
3618
- sleep: deps.sleep,
3619
- loopbackRequest,
3620
- // 与 platform-proxy 同口径:仅等服务端显式 draining 准入信号重试,
3621
- // 网络错误不重放(服务端可能已受理,重放会产生重复扣费/重复 tool_calls)。
3622
- retryableStatuses: /* @__PURE__ */ new Set([503]),
3623
- shouldRetryResponse: async (response) => {
3624
- if (response.status !== 503) return false;
3625
- try {
3626
- const body2 = await response.clone().json();
3627
- return body2?.reason === "core_draining" || body2?.retryable === true;
3628
- } catch {
3629
- return false;
3684
+ let usedAttempts = 0;
3685
+ const send = async () => {
3686
+ const remaining = Math.max(
3687
+ 1,
3688
+ OWNER_PROXY_TOTAL_MAX_ATTEMPTS - usedAttempts
3689
+ );
3690
+ let innerRetries = 0;
3691
+ const response = await fetchWithTransientRetry(
3692
+ fetchImpl,
3693
+ request.url,
3694
+ init,
3695
+ {
3696
+ sleep: deps.sleep,
3697
+ loopbackRequest,
3698
+ // 与 platform-proxy 同口径:网络错误不重放(服务端可能已受理,重放会
3699
+ // 产生重复扣费/重复 tool_calls)。
3700
+ retryableStatuses: OWNER_PROXY_RETRYABLE_STATUSES,
3701
+ shouldRetryResponse: shouldRetryOwnerProxyResponse,
3702
+ retryNetworkErrors: false,
3703
+ // 内层预算按「剩余总额度」裁剪:普通可重试状态码 ≤ 3 次、503
3704
+ // core_draining 排空窗口 ≤ 30 次,且都不超过剩余总额度。
3705
+ maxAttempts: Math.min(
3706
+ OWNER_PROXY_GENERIC_MAX_ATTEMPTS,
3707
+ remaining
3708
+ ),
3709
+ coreDrainingMaxAttempts: Math.min(
3710
+ OWNER_PROXY_CORE_DRAINING_MAX_ATTEMPTS,
3711
+ remaining
3712
+ ),
3713
+ // 注意:计数必须**无条件**挂在 onRetry 上——若只在有 activityReporter
3714
+ // 时才挂,innerRetries / usedAttempts 会漏计,重试预算就形同虚设。
3715
+ onRetry: ({ attempt, maxAttempts, delayMs }) => {
3716
+ innerRetries += 1;
3717
+ usedAttempts += 1;
3718
+ deps.activityReporter?.(
3719
+ `\u81EA\u52A8\u91CD\u8BD5 ${attempt}/${maxAttempts} \xB7 ${Math.ceil(delayMs / 1e3)}s`
3720
+ );
3630
3721
  }
3631
- },
3632
- retryNetworkErrors: false,
3633
- onRetry: deps.activityReporter ? ({ attempt, maxAttempts, delayMs }) => {
3634
- deps.activityReporter(
3635
- `\u81EA\u52A8\u91CD\u8BD5 ${attempt}/${maxAttempts} \xB7 ${Math.ceil(delayMs / 1e3)}s`
3636
- );
3637
- } : void 0
3638
- }
3722
+ }
3723
+ );
3724
+ usedAttempts += 1;
3725
+ return { response, innerRetried: innerRetries > 0 };
3726
+ };
3727
+ const res = await sendWithOwnerOriginMismatchRetry(
3728
+ send,
3729
+ init.signal ?? void 0,
3730
+ deps.activityReporter ? ({ attempt, maxAttempts, delayMs }) => {
3731
+ deps.activityReporter(
3732
+ `\u81EA\u52A8\u91CD\u8BD5 ${attempt}/${maxAttempts} \xB7 ${Math.ceil(delayMs / 1e3)}s`
3733
+ );
3734
+ } : void 0
3639
3735
  );
3640
3736
  if (!res.ok) {
3641
3737
  const raw2 = await res.text().catch(() => "");
@@ -27,7 +27,7 @@ import {
27
27
  resolveBoundMachineId,
28
28
  resolveFileWriteGateEnabled,
29
29
  resolveLocalUserId
30
- } from "./chunk-UY73HNIN.js";
30
+ } from "./chunk-BO3ARJRK.js";
31
31
  import {
32
32
  clearCredentialAvailability,
33
33
  readCredentialEntry,
@@ -938,8 +938,8 @@ cleanup() {
938
938
  mv "$BACKUP" "$EXTRACT_DIR" || exit 1
939
939
  fi
940
940
  fi
941
- rm -rf "$STAGING"
942
- rm -f "$LINK"
941
+ rm -rf "$STAGING" || true
942
+ rm -f "$LINK" || true
943
943
  exit "$status"
944
944
  }
945
945
  # Refuse collisions before installing cleanup: never remove somebody else's path.
@@ -1043,7 +1043,7 @@ committed=1
1043
1043
  # Retain only the newest recovery copy from this run; prune older backups.
1044
1044
  for old_copy in "$EXTRACT_DIR.old."*; do
1045
1045
  if [ -d "$old_copy" ] && [ ! -L "$old_copy" ] && [ "$old_copy" != "$BACKUP" ]; then
1046
- rm -rf "$old_copy"
1046
+ rm -rf "$old_copy" || true
1047
1047
  fi
1048
1048
  done
1049
1049
  # Retain the previous bundle as a recovery copy; never unlink the live entry.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-UY73HNIN.js";
4
+ } from "./chunk-BO3ARJRK.js";
5
5
  import {
6
6
  t
7
7
  } from "./chunk-2AB2HA4M.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-6IN7NK7H.js");
113
+ const { runAgentRunCommand } = await import("./agentRunCommand-UTBBUSHP.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-CKILCNQZ.js");
129
+ const { runAgentCreateCommand } = await import("./agentRecordCommands-JWW5NQQ7.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,7 +142,7 @@ 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-CKILCNQZ.js");
145
+ const { runAgentReadCommand } = await import("./agentRecordCommands-JWW5NQQ7.js");
146
146
  return runAgentReadCommand(args, deps);
147
147
  }),
148
148
  createAgentRunCommand(["agent", "run"], "Run an agent"),
@@ -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-CKILCNQZ.js");
174
+ const { runAgentUpdateCommand } = await import("./agentRecordCommands-JWW5NQQ7.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-2QPD5VP3.js");
178
+ const { runAgentEmailProvisionCommand } = await import("./agentEmailCommands-ST7HL3E7.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-2QPD5VP3.js");
182
+ const { runAgentEmailBindCommand } = await import("./agentEmailCommands-ST7HL3E7.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-2QPD5VP3.js");
186
+ const { runAgentEmailTransferCommand } = await import("./agentEmailCommands-ST7HL3E7.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-2QPD5VP3.js");
193
+ const { runAgentEmailCreateAndProvisionCommand } = await import("./agentEmailCommands-ST7HL3E7.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-ON2KVSJ5.js");
198
+ const { runAgentDeleteCommand } = await import("./agentDeleteCommand-74EL5T7G.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-V44DPSED.js");
214
+ const { runAgentBindCurrentCommand } = await import("./agentMachineCommands-JSQPNSS5.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-V44DPSED.js");
218
+ const { runAgentSmokeCurrentCommand } = await import("./agentMachineCommands-JSQPNSS5.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-V44DPSED.js");
222
+ const { runAgentRuntimeDoctorCommand } = await import("./agentMachineCommands-JSQPNSS5.js");
223
223
  return runAgentRuntimeDoctorCommand(args, deps);
224
224
  }),
225
225
  createAgentRunCommand(["agent", "chat"], "Chat with an agent")
@@ -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-7MBJJY4K.js");
533
+ const { runMachineConnectCommand } = await import("./machineCommands-BUZTMLYD.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-7MBJJY4K.js");
537
+ const { runMachineConnectCommand } = await import("./machineCommands-BUZTMLYD.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-7MBJJY4K.js");
541
+ const { runMachineStatusCommand } = await import("./machineCommands-BUZTMLYD.js");
542
542
  return runMachineStatusCommand(args, deps);
543
543
  }),
544
544
  createEnvCommand(["doctor", "runtime"], "Diagnose local-first agent runtime selection", async (args, deps) => {
@@ -546,7 +546,7 @@ function getSystemInternalCommandEntries(renderHelpText2) {
546
546
  return runDoctorRuntimeCommand(args, deps);
547
547
  }),
548
548
  createContextCommand(["doctor"], "Show CLI doctor information", async (_args, ctx) => {
549
- const { buildCliDoctorText, getCliInstallChannel, resolveSelfUpdateServerUrl } = await import("./updateCommands-ODWC7SK7.js");
549
+ const { buildCliDoctorText, getCliInstallChannel, resolveSelfUpdateServerUrl } = await import("./updateCommands-FJHGWD3Q.js");
550
550
  const { isCompiledBinary } = await import("./cliEnvHelpers-ZXNMX7VV.js");
551
551
  const serverUrl = resolveSelfUpdateServerUrl(ctx.env);
552
552
  console.log(
@@ -563,7 +563,7 @@ function getSystemInternalCommandEntries(renderHelpText2) {
563
563
  return 0;
564
564
  }),
565
565
  createContextCommand(["update"], "Update the CLI", async (_args, ctx) => {
566
- const { resolveSelfUpdateServerUrl, runSelfUpdate } = await import("./updateCommands-ODWC7SK7.js");
566
+ const { resolveSelfUpdateServerUrl, runSelfUpdate } = await import("./updateCommands-FJHGWD3Q.js");
567
567
  return runSelfUpdate({
568
568
  entrypointPath: ctx.entrypointPath,
569
569
  serverUrl: resolveSelfUpdateServerUrl(ctx.env),
@@ -576,17 +576,17 @@ function getSystemInternalCommandEntries(renderHelpText2) {
576
576
  return process.exitCode ?? 0;
577
577
  }),
578
578
  createContextCommand(["version"], "Show CLI version", async (_args, ctx) => {
579
- const { buildCliVersionText } = await import("./updateCommands-ODWC7SK7.js");
579
+ const { buildCliVersionText } = await import("./updateCommands-FJHGWD3Q.js");
580
580
  console.log(buildCliVersionText(ctx.packageInfo));
581
581
  return 0;
582
582
  }),
583
583
  createContextCommand(["--version"], "Show CLI version", async (_args, ctx) => {
584
- const { buildCliVersionText } = await import("./updateCommands-ODWC7SK7.js");
584
+ const { buildCliVersionText } = await import("./updateCommands-FJHGWD3Q.js");
585
585
  console.log(buildCliVersionText(ctx.packageInfo));
586
586
  return 0;
587
587
  }),
588
588
  createContextCommand(["-v"], "Show CLI version", async (_args, ctx) => {
589
- const { buildCliVersionText } = await import("./updateCommands-ODWC7SK7.js");
589
+ const { buildCliVersionText } = await import("./updateCommands-FJHGWD3Q.js");
590
590
  console.log(buildCliVersionText(ctx.packageInfo));
591
591
  return 0;
592
592
  }),
package/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  consumeWindowsUpdateStartupNotice,
8
8
  getWindowsUpdateStatus,
9
9
  readPackageInfo
10
- } from "./chunk-2ODX2C4E.js";
10
+ } from "./chunk-IW64YHXL.js";
11
11
  import {
12
12
  isCompiledBinary
13
13
  } from "./chunk-A7GB5UGH.js";
@@ -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-2DR5GHLQ.js");
74
+ const { startTuiWorkspace } = await import("./readlineWorkspace-MS2ZIQ2P.js");
75
75
  const { createTuiSummaryLlmCaller } = await import("./tuiSummaryLlmCaller-FESHBDTT.js");
76
- const { setCliAutoCompactionSummaryFallback } = await import("./localRuntimeAdapter-MO64KEOS.js");
76
+ const { setCliAutoCompactionSummaryFallback } = await import("./localRuntimeAdapter-74L7FLMW.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-4LWXIPNX.js");
88
+ const { createCliRuntimeContext, looksLikeDaemonShortcut, renderHelpText, resolveCommand, runResolvedCommand } = await import("./commandRegistry-HPL2KOVB.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-UY73HNIN.js";
48
+ } from "./chunk-BO3ARJRK.js";
49
49
  import "./chunk-G3VYRPTV.js";
50
50
  import "./chunk-6MXDOUMH.js";
51
51
  import "./chunk-2AB2HA4M.js";
@@ -2,7 +2,7 @@ import {
2
2
  buildMachinePermissionPromptBlock,
3
3
  handleConnectorRunMessage,
4
4
  resolveMachineRunPermissionPolicy
5
- } from "./chunk-EVPKKBSI.js";
5
+ } from "./chunk-OWCHFPWR.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-UY73HNIN.js";
14
+ import "./chunk-BO3ARJRK.js";
15
15
  import "./chunk-G3VYRPTV.js";
16
16
  import "./chunk-6MXDOUMH.js";
17
17
  import "./chunk-2AB2HA4M.js";
@@ -11,8 +11,8 @@ import {
11
11
  runtimeWorkspacePermissionPolicy,
12
12
  scopePermissionPolicyToRuntimeWorkspace,
13
13
  summarizeAgentConfigForLogs
14
- } from "./chunk-EVPKKBSI.js";
15
- import "./chunk-UY73HNIN.js";
14
+ } from "./chunk-OWCHFPWR.js";
15
+ import "./chunk-BO3ARJRK.js";
16
16
  import "./chunk-G3VYRPTV.js";
17
17
  import "./chunk-6MXDOUMH.js";
18
18
  import "./chunk-2AB2HA4M.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nolo-cli",
3
- "version": "0.160.0-alpha.3",
3
+ "version": "0.160.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-JSB2OPQT.js";
93
+ } from "./chunk-CXCMXNME.js";
94
94
  import "./chunk-6QDYSCPW.js";
95
95
  import "./chunk-ZAV4YVEA.js";
96
96
  import {
@@ -102,7 +102,7 @@ import {
102
102
  createCliLocalRuntimeAdapter,
103
103
  createOriginShellGrant,
104
104
  readTimestamp
105
- } from "./chunk-UY73HNIN.js";
105
+ } from "./chunk-BO3ARJRK.js";
106
106
  import "./chunk-G3VYRPTV.js";
107
107
  import "./chunk-6MXDOUMH.js";
108
108
  import {
@@ -348,7 +348,7 @@ import {
348
348
  import {
349
349
  checkForCliUpdate,
350
350
  runSelfUpdateDetailed
351
- } from "./chunk-2ODX2C4E.js";
351
+ } from "./chunk-IW64YHXL.js";
352
352
  import {
353
353
  parseUserIdFromAuthToken,
354
354
  resolveAuthToken,
@@ -17,7 +17,7 @@ import {
17
17
  runSelfUpdate,
18
18
  runSelfUpdateDetailed,
19
19
  runStandaloneBundleUpdate
20
- } from "./chunk-2ODX2C4E.js";
20
+ } from "./chunk-IW64YHXL.js";
21
21
  import "./chunk-A7GB5UGH.js";
22
22
  import "./chunk-OLZBQWZU.js";
23
23
  import "./chunk-LCBAMY2M.js";