nolo-cli 0.264.0-alpha.1 → 0.265.0-alpha.1

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.
Files changed (57) hide show
  1. package/{_executeModel-YQNZNR2Y.js → _executeModel-B3ENLKM4.js} +14 -14
  2. package/{agentDeleteCommand-MJF6BWP5.js → agentDeleteCommand-R4LKLXQR.js} +12 -12
  3. package/{agentEmailCommands-KX3OQQAW.js → agentEmailCommands-SUEXVAY4.js} +13 -13
  4. package/{agentMachineCommands-X5ZLRVTF.js → agentMachineCommands-AXPZRHUY.js} +2 -2
  5. package/{agentRecordCommands-KETL6CLV.js → agentRecordCommands-NE4OPX5K.js} +13 -13
  6. package/{agentRun-DSQD2VC5.js → agentRun-NSNLIOM7.js} +13 -13
  7. package/{agentRunCommand-COJOJSNF.js → agentRunCommand-T6QTKMCJ.js} +14 -14
  8. package/{agentSlice-HHNKNNYM.js → agentSlice-FZJZONCT.js} +1 -1
  9. package/{chunk-LYPJYBE5.js → chunk-2QKIWEZS.js} +2 -2
  10. package/{chunk-7E6YXSFZ.js → chunk-4TDUT2LC.js} +2 -2
  11. package/{chunk-CWOZIF6Z.js → chunk-6A6CTCMC.js} +1 -1
  12. package/{chunk-DBEOW57U.js → chunk-APOIIIB4.js} +2 -2
  13. package/{chunk-MALPQFGT.js → chunk-B7CTVEUV.js} +5 -5
  14. package/{chunk-7422ZLGL.js → chunk-BY2CHBIZ.js} +6 -6
  15. package/{chunk-ZSZBHRLP.js → chunk-CYS6HOJ2.js} +4 -4
  16. package/{chunk-JUMQJSQF.js → chunk-DALXH7BG.js} +211 -177
  17. package/{chunk-DBCWXGOC.js → chunk-DKEOYC4L.js} +8 -8
  18. package/{chunk-EN6WNK2M.js → chunk-DXDCL3Z6.js} +6 -6
  19. package/{chunk-WLRDY5OG.js → chunk-DZJWSGCV.js} +1 -1
  20. package/{chunk-TGVVE5BA.js → chunk-FRFFUKGH.js} +1 -1
  21. package/{chunk-4RUQ2PFX.js → chunk-G5KDYBTG.js} +3 -3
  22. package/chunk-GBXRKW26.js +613 -0
  23. package/{chunk-QG2ALEDQ.js → chunk-IHU2ZFCQ.js} +3 -3
  24. package/{chunk-R5PN5DE2.js → chunk-JGUHOA42.js} +3 -3
  25. package/{chunk-TKLBBR7P.js → chunk-L2DHCG6C.js} +3 -3
  26. package/{chunk-HXEO5DNV.js → chunk-LBPW6OCD.js} +2 -2
  27. package/{chunk-PDSXYHNI.js → chunk-NACE7NWO.js} +2 -2
  28. package/{chunk-U7OULUMF.js → chunk-S52BPZ7A.js} +2 -2
  29. package/{chunk-EBH4RFJ6.js → chunk-SCEPD46O.js} +20 -14
  30. package/{chunk-6K4V4R2I.js → chunk-XGYQCBWS.js} +5 -5
  31. package/{chunk-EODBQPRM.js → chunk-Z6LVL5MC.js} +2 -2
  32. package/{cliExecutor-Z62UBJ5S.js → cliExecutor-N3445G2Z.js} +1 -1
  33. package/{commandRegistry-WOKBQU6B.js → commandRegistry-XPLM5SWC.js} +18 -18
  34. package/{contentThunks-ERA42OXW.js → contentThunks-RK6MJWBY.js} +3 -3
  35. package/{createAgentAutomationAction-DMD2VDPI.js → createAgentAutomationAction-KN7XLCU2.js} +3 -3
  36. package/{createDialogAction-3SPOJQAK.js → createDialogAction-KAG6DBVM.js} +4 -4
  37. package/{createPageAction-AVXUMZVT.js → createPageAction-7XNPH76L.js} +4 -4
  38. package/{deleteDbKey-KV6MYBAI.js → deleteDbKey-MUCJP6DK.js} +4 -4
  39. package/{dialogSlice-Q7H2YVNO.js → dialogSlice-BD6WOOD3.js} +2 -2
  40. package/{docStore-GWPFDV6Y.js → docStore-RK4CD4QN.js} +1 -1
  41. package/{handleSendMessageAction-FHGUFT2X.js → handleSendMessageAction-VQP5HT5I.js} +8 -8
  42. package/{hostCredentialCreate-T6SOV4FN.js → hostCredentialCreate-CPIWBALC.js} +13 -13
  43. package/index.js +3 -3
  44. package/{localAutomationCommands-TJCH7ZSF.js → localAutomationCommands-WPYIYTDP.js} +1 -1
  45. package/{localAutomationRuntime-RBAKV5LR.js → localAutomationRuntime-M7WWU6WY.js} +1 -1
  46. package/{localRuntimeAdapter-KH6UHNAO.js → localRuntimeAdapter-SNE2NUDN.js} +12 -12
  47. package/{machineCommands-F2Z4PV5E.js → machineCommands-LHJMILRA.js} +15 -15
  48. package/{machineWsRunDispatch-YY2FJP2O.js → machineWsRunDispatch-VHEIHXWY.js} +13 -13
  49. package/{memberThunks-NEZRAW5K.js → memberThunks-IPS3SLOF.js} +1 -1
  50. package/package.json +1 -1
  51. package/{projectArchive-WE3VVPZ2.js → projectArchive-HUET56SH.js} +4 -4
  52. package/{readlineWorkspace-CJ5M7SU6.js → readlineWorkspace-5EASNOQ4.js} +17 -17
  53. package/{runAgentClientLoop-2SFASHDS.js → runAgentClientLoop-ELTV5MSJ.js} +12 -12
  54. package/{streamAgentChatTurn-KOUWITHH.js → streamAgentChatTurn-BL3ESUEN.js} +14 -14
  55. package/{tools-WN4AVSNS.js → tools-KB6CJ2KT.js} +9 -9
  56. package/{updateDialogTitleAction-XOSLNRT3.js → updateDialogTitleAction-OPAZF5VC.js} +3 -3
  57. package/chunk-ZCMAKAZM.js +0 -184
@@ -960,6 +960,7 @@ ${entry.content.trim()}`).join("\n\n");
960
960
  }
961
961
  async start() {
962
962
  this.assertNotRetired();
963
+ assertAgyAcpAllowed();
963
964
  const binPath = this.config.binPath || process.env.AGY_BIN || "agy";
964
965
  const cwd = this.config.cwd || process.cwd();
965
966
  const args = ["acp"];
@@ -1458,6 +1459,7 @@ ${error.message}`));
1458
1459
  }
1459
1460
  };
1460
1461
  var agyAcpSessions = /* @__PURE__ */ new Map();
1462
+ var activeAgyPrintCount = 0;
1461
1463
  function isAgyAcpEnabled(env = process.env) {
1462
1464
  const raw = (env.NOLO_AGY_ACP ?? "").trim().toLowerCase();
1463
1465
  return !(raw === "0" || raw === "false" || raw === "off" || raw === "no");
@@ -1479,12 +1481,31 @@ function assertAgyPrintAllowed(label) {
1479
1481
  `${label} blocked: an agy ACP session is active on this machine. Local agy runs only one stable delegated session at a time; wait for the interactive session to finish (or close that dialog) and retry, or dispatch to another provider.`
1480
1482
  );
1481
1483
  }
1484
+ function assertAgyAcpAllowed() {
1485
+ if (activeAgyPrintCount <= 0) return;
1486
+ throw new CliProviderQuotaError(
1487
+ "agy",
1488
+ "agy ACP blocked: an agy --print run is active on this machine. Local agy runs only one stable delegated session at a time; wait for the print run to finish and retry, or dispatch to another provider."
1489
+ );
1490
+ }
1491
+ function acquireAgyPrintSlot(label) {
1492
+ assertAgyPrintAllowed(label);
1493
+ activeAgyPrintCount += 1;
1494
+ let released = false;
1495
+ return () => {
1496
+ if (released) return;
1497
+ released = true;
1498
+ activeAgyPrintCount = Math.max(0, activeAgyPrintCount - 1);
1499
+ };
1500
+ }
1482
1501
  function getAgyAcpSession(key, config) {
1483
1502
  const existing = agyAcpSessions.get(key);
1484
1503
  if (existing) {
1504
+ if (!existing.isOccupyingSlot()) assertAgyAcpAllowed();
1485
1505
  existing.updateConfig(config);
1486
1506
  return existing;
1487
1507
  }
1508
+ assertAgyAcpAllowed();
1488
1509
  if (liveSessionCount() > 0) {
1489
1510
  throw new CliProviderQuotaError(
1490
1511
  "agy",
@@ -2325,87 +2346,93 @@ function executeAgy(prompt, options) {
2325
2346
  yolo = true,
2326
2347
  reasoningEffort
2327
2348
  } = options;
2328
- assertAgyPrintAllowed("agy --print");
2329
- return new Promise((resolve3, reject) => {
2330
- const args = [
2331
- "--add-dir",
2332
- cwd,
2333
- "--print",
2334
- prompt,
2335
- "--output-format",
2336
- "json",
2337
- "--print-timeout",
2338
- formatCliTimeout(timeout)
2339
- ];
2340
- if (options.model) args.push("--model", options.model);
2341
- if (reasoningEffort) args.push("--effort", mapAgyEffort(reasoningEffort));
2342
- if (yolo) {
2343
- args.push("--dangerously-skip-permissions");
2344
- }
2345
- const start = Date.now();
2346
- const proc = spawnCliProcess("agy", args, {
2347
- cwd,
2348
- env: buildCliProcessEnv(options.env),
2349
- stdio: ["ignore", "pipe", "pipe"],
2350
- detached: process.platform !== "win32",
2351
- signal: options.signal
2352
- }, reject);
2353
- const stdout = createUtf8Collector();
2354
- const stderr = createUtf8Collector();
2355
- let timer;
2356
- let settled = false;
2357
- const clearTimers = () => {
2358
- if (timer) clearTimeout(timer);
2359
- };
2360
- if (timeout > 0) {
2361
- timer = setTimeout(() => {
2362
- if (settled) return;
2349
+ const releasePrintSlot = acquireAgyPrintSlot("agy --print");
2350
+ let promise;
2351
+ try {
2352
+ promise = new Promise((resolve3, reject) => {
2353
+ const args = [
2354
+ "--add-dir",
2355
+ cwd,
2356
+ "--print=" + prompt,
2357
+ "--output-format",
2358
+ "json",
2359
+ "--print-timeout",
2360
+ formatCliTimeout(timeout)
2361
+ ];
2362
+ if (options.model) args.push("--model", options.model);
2363
+ if (reasoningEffort) args.push("--effort", mapAgyEffort(reasoningEffort));
2364
+ if (yolo) {
2365
+ args.push("--dangerously-skip-permissions");
2366
+ }
2367
+ const start = Date.now();
2368
+ const proc = spawnCliProcess("agy", args, {
2369
+ cwd,
2370
+ env: buildCliProcessEnv(options.env),
2371
+ stdio: ["ignore", "pipe", "pipe"],
2372
+ detached: process.platform !== "win32",
2373
+ signal: options.signal
2374
+ }, reject);
2375
+ const stdout = createUtf8Collector();
2376
+ const stderr = createUtf8Collector();
2377
+ let timer;
2378
+ let settled = false;
2379
+ const clearTimers = () => {
2380
+ if (timer) clearTimeout(timer);
2381
+ };
2382
+ if (timeout > 0) {
2383
+ timer = setTimeout(() => {
2384
+ if (settled) return;
2385
+ settled = true;
2386
+ reject(stoppingCliError(buildAgyTimeoutError(timeout, stdout.end(), stderr.end()), proc));
2387
+ }, timeout + 1e3);
2388
+ }
2389
+ proc.stdout.on("data", (data) => {
2390
+ stdout.write(data);
2391
+ });
2392
+ proc.stderr.on("data", (data) => {
2393
+ stderr.write(data);
2394
+ });
2395
+ onCliClose(proc, resolve3, reject, (resolve4, reject2, code) => {
2396
+ if (settled) {
2397
+ clearTimers();
2398
+ return;
2399
+ }
2363
2400
  settled = true;
2364
- reject(stoppingCliError(buildAgyTimeoutError(timeout, stdout.end(), stderr.end()), proc));
2365
- }, timeout + 1e3);
2366
- }
2367
- proc.stdout.on("data", (data) => {
2368
- stdout.write(data);
2369
- });
2370
- proc.stderr.on("data", (data) => {
2371
- stderr.write(data);
2372
- });
2373
- onCliClose(proc, resolve3, reject, (resolve4, reject2, code) => {
2374
- if (settled) {
2375
2401
  clearTimers();
2376
- return;
2377
- }
2378
- settled = true;
2379
- clearTimers();
2380
- const stdoutText = stdout.end();
2381
- const stderrText = stderr.end();
2382
- if (code !== 0 && code !== null) {
2383
- console.error("[cliExecutor] agy process exited with non-zero code:", code, "stderr:", stderrText);
2384
- const quota = detectCliProviderQuotaLimit("agy", stdoutText, stderrText, code);
2385
- if (quota.limited) {
2386
- reject2(new CliProviderQuotaError("agy", quota.message || "Agy reported quota/limit"));
2402
+ const stdoutText = stdout.end();
2403
+ const stderrText = stderr.end();
2404
+ if (code !== 0 && code !== null) {
2405
+ console.error("[cliExecutor] agy process exited with non-zero code:", code, "stderr:", stderrText);
2406
+ const quota = detectCliProviderQuotaLimit("agy", stdoutText, stderrText, code);
2407
+ if (quota.limited) {
2408
+ reject2(new CliProviderQuotaError("agy", quota.message || "Agy reported quota/limit"));
2409
+ return;
2410
+ }
2411
+ reject2(new Error(`Antigravity CLI exited with code ${code}
2412
+ stderr: ${stderrText}`));
2387
2413
  return;
2388
2414
  }
2389
- reject2(new Error(`Antigravity CLI exited with code ${code}
2390
- stderr: ${stderrText}`));
2391
- return;
2392
- }
2393
- const parsed = parseAgyJsonResult(stdoutText);
2394
- resolve4({
2395
- text: (parsed?.response ?? stdoutText).trim(),
2396
- raw: stdoutText,
2397
- elapsed: Date.now() - start,
2398
- ...parsed?.usage ? { usage: parsed.usage } : {}
2415
+ const parsed = parseAgyJsonResult(stdoutText);
2416
+ resolve4({
2417
+ text: (parsed?.response ?? stdoutText).trim(),
2418
+ raw: stdoutText,
2419
+ elapsed: Date.now() - start,
2420
+ ...parsed?.usage ? { usage: parsed.usage } : {}
2421
+ });
2422
+ });
2423
+ proc.on("error", (err) => {
2424
+ if (settled) return;
2425
+ settled = true;
2426
+ clearTimers();
2427
+ console.error("[cliExecutor] agy process error event:", err);
2428
+ reject(proc.pid ? stoppingCliError(err, proc) : err);
2399
2429
  });
2400
2430
  });
2401
- proc.on("error", (err) => {
2402
- if (settled) return;
2403
- settled = true;
2404
- clearTimers();
2405
- console.error("[cliExecutor] agy process error event:", err);
2406
- reject(proc.pid ? stoppingCliError(err, proc) : err);
2407
- });
2408
- });
2431
+ } catch (err) {
2432
+ releasePrintSlot();
2433
+ throw err;
2434
+ }
2435
+ return promise.finally(releasePrintSlot);
2409
2436
  }
2410
2437
  function executeAgyStreaming(prompt, options) {
2411
2438
  const {
@@ -2416,109 +2443,116 @@ function executeAgyStreaming(prompt, options) {
2416
2443
  reasoningEffort,
2417
2444
  onChunk
2418
2445
  } = options;
2419
- assertAgyPrintAllowed("agy --print");
2420
- return new Promise((resolve3, reject) => {
2421
- const args = [
2422
- "--add-dir",
2423
- cwd,
2424
- "--print=" + prompt,
2425
- "--output-format",
2426
- "stream-json",
2427
- "--print-timeout",
2428
- formatCliTimeout(timeout)
2429
- ];
2430
- if (model) args.push("--model", model);
2431
- if (reasoningEffort) args.push("--effort", mapAgyEffort(reasoningEffort));
2432
- if (yolo) args.push("--dangerously-skip-permissions");
2433
- const start = Date.now();
2434
- const proc = spawnCliProcess("agy", args, {
2435
- cwd,
2436
- env: buildCliProcessEnv(options.env),
2437
- stdio: ["ignore", "pipe", "pipe"],
2438
- detached: process.platform !== "win32",
2439
- signal: options.signal
2440
- });
2441
- const stdout = createUtf8Collector();
2442
- const stderr = createUtf8Collector();
2443
- let pending = "";
2444
- let answer = "";
2445
- let agyUsage;
2446
- let settled = false;
2447
- let timer;
2448
- let detachAbort = () => {
2449
- };
2450
- const finish = (callback) => {
2451
- if (settled) return;
2452
- settled = true;
2453
- if (timer) clearTimeout(timer);
2454
- detachAbort();
2455
- callback();
2456
- };
2457
- const fail = (error) => {
2458
- if (settled) return;
2459
- finish(() => reject(stoppingCliError(error, proc)));
2460
- };
2461
- detachAbort = attachCliAbortSignal(proc, options.signal, (error) => {
2462
- finish(() => reject(error));
2463
- });
2464
- if (!settled && timeout > 0) {
2465
- timer = setTimeout(() => {
2466
- fail(buildAgyTimeoutError(timeout, stdout.end(), stderr.end()));
2467
- }, timeout + 1e3);
2468
- }
2469
- const consumeLine = (line) => {
2470
- if (settled || !line.trim()) return;
2471
- let event;
2472
- try {
2473
- event = JSON.parse(line);
2474
- } catch {
2475
- return;
2476
- }
2477
- const usageSource = event?.event === "result" ? event.result?.usage : event?.event === "step_update" ? event.step_update?.usage : void 0;
2478
- const normalizedUsage = normalizeAgyUsage(usageSource);
2479
- if (normalizedUsage) agyUsage = normalizedUsage;
2480
- if (event?.event !== "step_update" || event.step_update?.step_type !== "agent_response" || typeof event.step_update.text_delta !== "string") return;
2481
- const delta = event.step_update.text_delta;
2482
- if (!delta) return;
2483
- answer += delta;
2484
- try {
2485
- onChunk(delta);
2486
- } catch (error) {
2487
- fail(error);
2488
- }
2489
- };
2490
- proc.stdout.on("data", (data) => {
2491
- if (settled) return;
2492
- pending += stdout.write(data);
2493
- const lines = pending.split("\n");
2494
- pending = lines.pop() ?? "";
2495
- for (const line of lines) consumeLine(line);
2496
- });
2497
- proc.stderr.on("data", (data) => {
2498
- if (!settled) stderr.write(data);
2499
- });
2500
- onCliClose(proc, resolve3, reject, (resolve4, reject2, code, signal) => {
2501
- if (settled) return;
2502
- pending += stdout.finish();
2503
- consumeLine(pending);
2504
- if (settled) return;
2505
- const raw = stdout.end();
2506
- const stderrText = stderr.end();
2507
- if (code !== 0 || signal) {
2508
- const quota = detectCliProviderQuotaLimit("agy", raw, stderrText, code);
2509
- finish(() => reject2(quota.limited ? new CliProviderQuotaError("agy", quota.message || "Agy reported quota/limit") : new Error(`Antigravity CLI exited with ${signal ? `signal ${signal}` : `code ${code}`}
2446
+ const releasePrintSlot = acquireAgyPrintSlot("agy --print");
2447
+ let promise;
2448
+ try {
2449
+ promise = new Promise((resolve3, reject) => {
2450
+ const args = [
2451
+ "--add-dir",
2452
+ cwd,
2453
+ "--print=" + prompt,
2454
+ "--output-format",
2455
+ "stream-json",
2456
+ "--print-timeout",
2457
+ formatCliTimeout(timeout)
2458
+ ];
2459
+ if (model) args.push("--model", model);
2460
+ if (reasoningEffort) args.push("--effort", mapAgyEffort(reasoningEffort));
2461
+ if (yolo) args.push("--dangerously-skip-permissions");
2462
+ const start = Date.now();
2463
+ const proc = spawnCliProcess("agy", args, {
2464
+ cwd,
2465
+ env: buildCliProcessEnv(options.env),
2466
+ stdio: ["ignore", "pipe", "pipe"],
2467
+ detached: process.platform !== "win32",
2468
+ signal: options.signal
2469
+ });
2470
+ const stdout = createUtf8Collector();
2471
+ const stderr = createUtf8Collector();
2472
+ let pending = "";
2473
+ let answer = "";
2474
+ let agyUsage;
2475
+ let settled = false;
2476
+ let timer;
2477
+ let detachAbort = () => {
2478
+ };
2479
+ const finish = (callback) => {
2480
+ if (settled) return;
2481
+ settled = true;
2482
+ if (timer) clearTimeout(timer);
2483
+ detachAbort();
2484
+ callback();
2485
+ };
2486
+ const fail = (error) => {
2487
+ if (settled) return;
2488
+ finish(() => reject(stoppingCliError(error, proc)));
2489
+ };
2490
+ detachAbort = attachCliAbortSignal(proc, options.signal, (error) => {
2491
+ finish(() => reject(error));
2492
+ });
2493
+ if (!settled && timeout > 0) {
2494
+ timer = setTimeout(() => {
2495
+ fail(buildAgyTimeoutError(timeout, stdout.end(), stderr.end()));
2496
+ }, timeout + 1e3);
2497
+ }
2498
+ const consumeLine = (line) => {
2499
+ if (settled || !line.trim()) return;
2500
+ let event;
2501
+ try {
2502
+ event = JSON.parse(line);
2503
+ } catch {
2504
+ return;
2505
+ }
2506
+ const usageSource = event?.event === "result" ? event.result?.usage : event?.event === "step_update" ? event.step_update?.usage : void 0;
2507
+ const normalizedUsage = normalizeAgyUsage(usageSource);
2508
+ if (normalizedUsage) agyUsage = normalizedUsage;
2509
+ if (event?.event !== "step_update" || event.step_update?.step_type !== "agent_response" || typeof event.step_update.text_delta !== "string") return;
2510
+ const delta = event.step_update.text_delta;
2511
+ if (!delta) return;
2512
+ answer += delta;
2513
+ try {
2514
+ onChunk(delta);
2515
+ } catch (error) {
2516
+ fail(error);
2517
+ }
2518
+ };
2519
+ proc.stdout.on("data", (data) => {
2520
+ if (settled) return;
2521
+ pending += stdout.write(data);
2522
+ const lines = pending.split("\n");
2523
+ pending = lines.pop() ?? "";
2524
+ for (const line of lines) consumeLine(line);
2525
+ });
2526
+ proc.stderr.on("data", (data) => {
2527
+ if (!settled) stderr.write(data);
2528
+ });
2529
+ onCliClose(proc, resolve3, reject, (resolve4, reject2, code, signal) => {
2530
+ if (settled) return;
2531
+ pending += stdout.finish();
2532
+ consumeLine(pending);
2533
+ if (settled) return;
2534
+ const raw = stdout.end();
2535
+ const stderrText = stderr.end();
2536
+ if (code !== 0 || signal) {
2537
+ const quota = detectCliProviderQuotaLimit("agy", raw, stderrText, code);
2538
+ finish(() => reject2(quota.limited ? new CliProviderQuotaError("agy", quota.message || "Agy reported quota/limit") : new Error(`Antigravity CLI exited with ${signal ? `signal ${signal}` : `code ${code}`}
2510
2539
  stderr: ${stderrText}`)));
2511
- return;
2512
- }
2513
- finish(() => resolve4({
2514
- text: answer.trim(),
2515
- raw,
2516
- elapsed: Date.now() - start,
2517
- ...agyUsage ? { usage: agyUsage } : {}
2518
- }));
2540
+ return;
2541
+ }
2542
+ finish(() => resolve4({
2543
+ text: answer.trim(),
2544
+ raw,
2545
+ elapsed: Date.now() - start,
2546
+ ...agyUsage ? { usage: agyUsage } : {}
2547
+ }));
2548
+ });
2549
+ proc.on("error", (error) => fail(error));
2519
2550
  });
2520
- proc.on("error", (error) => fail(error));
2521
- });
2551
+ } catch (err) {
2552
+ releasePrintSlot();
2553
+ throw err;
2554
+ }
2555
+ return promise.finally(releasePrintSlot);
2522
2556
  }
2523
2557
  function executeQoder(prompt, options) {
2524
2558
  const {
@@ -3008,7 +3042,7 @@ async function executeAgyAcpTurn(session, userInput, options, onChunk) {
3008
3042
  // 用 resolveCliExecution 的产物:非原生 systemPrompt 的 provider 已经被内联进 prompt,
3009
3043
  // 这里再传一份会让 ACP 的 buildPromptText 前置第二次(首轮系统提示重复)。
3010
3044
  systemPrompt: resolved.options.systemPrompt,
3011
- yolo: session.options.yolo
3045
+ yolo: resolved.options.yolo
3012
3046
  });
3013
3047
  const result = await acp.prompt(resolved.prompt, {
3014
3048
  signal: resolved.options.signal,
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-FGXG6OLW.js";
13
13
  import {
14
14
  runLlm
15
- } from "./chunk-TKLBBR7P.js";
15
+ } from "./chunk-L2DHCG6C.js";
16
16
  import {
17
17
  nolotusId
18
18
  } from "./chunk-IB5AR52X.js";
@@ -13664,7 +13664,7 @@ var editUserMessageAndReplay = messageOperation(
13664
13664
  runtimeOptions: args.runtimeOptions
13665
13665
  });
13666
13666
  if (agentKeyToUse) {
13667
- const { streamAgentChatTurn } = await import("./agentSlice-HHNKNNYM.js");
13667
+ const { streamAgentChatTurn } = await import("./agentSlice-FZJZONCT.js");
13668
13668
  await dispatch(
13669
13669
  streamAgentChatTurn({
13670
13670
  agentKey: agentKeyToUse,
@@ -14930,7 +14930,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
14930
14930
  }
14931
14931
  if (isCurrentDialog) {
14932
14932
  await thunkApi.dispatch(resetMsgs());
14933
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-Q7H2YVNO.js");
14933
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-BD6WOOD3.js");
14934
14934
  dispatch(clearPendingAttachments2());
14935
14935
  }
14936
14936
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -14938,15 +14938,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
14938
14938
 
14939
14939
  // packages/chat/dialog/dialogSlice.ts
14940
14940
  var runCreateDialogAction = async (args, thunkApi) => {
14941
- const { createDialogAction } = await import("./createDialogAction-3SPOJQAK.js");
14941
+ const { createDialogAction } = await import("./createDialogAction-KAG6DBVM.js");
14942
14942
  return createDialogAction(args, thunkApi);
14943
14943
  };
14944
14944
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
14945
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-DMD2VDPI.js");
14945
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-KN7XLCU2.js");
14946
14946
  return createAgentAutomationAction(args, thunkApi);
14947
14947
  };
14948
14948
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
14949
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-XOSLNRT3.js");
14949
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-OPAZF5VC.js");
14950
14950
  return updateDialogTitleAction(args, thunkApi);
14951
14951
  };
14952
14952
  var runAddDialogAgentAction = async (args, thunkApi) => {
@@ -14970,7 +14970,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
14970
14970
  return setDialogExtraReferencesAction(args, thunkApi);
14971
14971
  };
14972
14972
  var runHandleSendMessageAction = async (args, thunkApi) => {
14973
- const { handleSendMessageAction } = await import("./handleSendMessageAction-FHGUFT2X.js");
14973
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-VQP5HT5I.js");
14974
14974
  return handleSendMessageAction(args, thunkApi);
14975
14975
  };
14976
14976
  function clearDialogState() {
@@ -14983,7 +14983,7 @@ var createPageAndAddReference = createActionAsyncThunk(
14983
14983
  async (payload, { dispatch, getState, rejectWithValue }) => {
14984
14984
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
14985
14985
  try {
14986
- const { createDocState } = await import("./docStore-GWPFDV6Y.js");
14986
+ const { createDocState } = await import("./docStore-RK4CD4QN.js");
14987
14987
  const pageKey = await createDocState(
14988
14988
  { slateData, title },
14989
14989
  { dispatch, getState }
@@ -58,7 +58,7 @@ import {
58
58
  executeCli,
59
59
  executeCliStreaming,
60
60
  getExecutionStoppedPromise
61
- } from "./chunk-JUMQJSQF.js";
61
+ } from "./chunk-DALXH7BG.js";
62
62
  import {
63
63
  isCursorOAuthAgent
64
64
  } from "./chunk-VIWDGTDA.js";
@@ -71,7 +71,7 @@ import {
71
71
  import {
72
72
  inlineImageUrlsForCustomProvider,
73
73
  prepareTools
74
- } from "./chunk-DBEOW57U.js";
74
+ } from "./chunk-APOIIIB4.js";
75
75
  import {
76
76
  getServerProviderSecret
77
77
  } from "./chunk-56OAS5RZ.js";
@@ -94,17 +94,17 @@ import {
94
94
  resolveCliLocalSpawnDispatch,
95
95
  resolveRunContextFacts,
96
96
  resolveStartAgentRunCwd
97
- } from "./chunk-EBH4RFJ6.js";
97
+ } from "./chunk-SCEPD46O.js";
98
98
  import {
99
99
  normalizeEnabledPromptSkills,
100
100
  resolveUserEnabledSkills
101
101
  } from "./chunk-P62DHV4F.js";
102
102
  import {
103
103
  validateAskChoiceInput
104
- } from "./chunk-HXEO5DNV.js";
104
+ } from "./chunk-LBPW6OCD.js";
105
105
  import {
106
106
  prepareTokenUsageData
107
- } from "./chunk-DBCWXGOC.js";
107
+ } from "./chunk-DKEOYC4L.js";
108
108
  import {
109
109
  applyTokenUsageToDayStats
110
110
  } from "./chunk-KDDXC2IH.js";
@@ -114,7 +114,7 @@ import {
114
114
  } from "./chunk-FGXG6OLW.js";
115
115
  import {
116
116
  fetchServerSyncedCredential
117
- } from "./chunk-TKLBBR7P.js";
117
+ } from "./chunk-L2DHCG6C.js";
118
118
  import {
119
119
  formatLocalDate
120
120
  } from "./chunk-PL5RKESU.js";
@@ -361,7 +361,7 @@ function createLocalAutomationScheduler(deps) {
361
361
  }
362
362
 
363
363
  // packages/cli/automation/localAutomationRuntime.ts
364
- function createLocalAutomationExecutor({ env, scriptDir, output }, runTurn = async (options) => (await import("./agentRun-DSQD2VC5.js")).runAgentTurn(options)) {
364
+ function createLocalAutomationExecutor({ env, scriptDir, output }, runTurn = async (options) => (await import("./agentRun-NSNLIOM7.js")).runAgentTurn(options)) {
365
365
  return async (record, signal) => {
366
366
  signal.throwIfAborted();
367
367
  const result = await runTurn({
@@ -12,7 +12,7 @@ import {
12
12
  deleteDialog,
13
13
  runtime_default,
14
14
  toast
15
- } from "./chunk-DBCWXGOC.js";
15
+ } from "./chunk-DKEOYC4L.js";
16
16
  import {
17
17
  isSystemAdmin
18
18
  } from "./chunk-IB5AR52X.js";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  deleteContentFromSpace,
3
3
  deleteTable
4
- } from "./chunk-TGVVE5BA.js";
4
+ } from "./chunk-FRFFUKGH.js";
5
5
  import {
6
6
  getAllMemberSpaces
7
7
  } from "./chunk-JDMWYVUF.js";
8
8
  import {
9
9
  deleteDialog
10
- } from "./chunk-DBCWXGOC.js";
10
+ } from "./chunk-DKEOYC4L.js";
11
11
  import {
12
12
  deleteServerSyncedCredential
13
- } from "./chunk-TKLBBR7P.js";
13
+ } from "./chunk-L2DHCG6C.js";
14
14
  import {
15
15
  read,
16
16
  remove,