nolo-cli 0.8.0-alpha.11 → 0.8.0-alpha.13

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 (82) hide show
  1. package/{_executeModel-GPU2276G.js → _executeModel-EBU7YBDV.js} +26 -22
  2. package/{action-PAXRPJJF.js → action-SQGI5JY5.js} +5 -4
  3. package/{addContentAction-CZVWF3QZ.js → addContentAction-ZX2PUS3X.js} +4 -3
  4. package/{addDialogAgentAction-CCIDTPHC.js → addDialogAgentAction-ULADQX2Q.js} +3 -2
  5. package/{agentDeleteCommand-4ZZFM6AT.js → agentDeleteCommand-GNVYHOGZ.js} +11 -8
  6. package/{agentEmailCommands-C4FIVQYV.js → agentEmailCommands-IC52LATA.js} +29 -25
  7. package/{agentListCommands-VQAKVNEX.js → agentListCommands-FM4OWXYT.js} +12 -9
  8. package/{agentMachineCommands-ONFDXZUQ.js → agentMachineCommands-SFWC6KN4.js} +11 -8
  9. package/{agentRecordCommands-QANUGHLK.js → agentRecordCommands-VLMLWLCM.js} +29 -25
  10. package/{agentRunCommand-A3OSRB5Q.js → agentRunCommand-D2PVHUGR.js} +30 -25
  11. package/{agentRuntimeLocal-62ZB2ODP.js → agentRuntimeLocal-XL5PLRJV.js} +16 -12
  12. package/{agentSlice-GCGLVR2N.js → agentSlice-IIC7AISR.js} +5 -4
  13. package/{chunk-YOUZDXU7.js → chunk-3N55DSXH.js} +21 -17
  14. package/chunk-4ZDM73SD.js +34 -0
  15. package/{chunk-TDIQFT2F.js → chunk-5CS33IBL.js} +1 -1
  16. package/{chunk-IYQV26RA.js → chunk-6A3LI5TZ.js} +2 -2
  17. package/{chunk-VEJLAVTC.js → chunk-6CBN7GGH.js} +2 -2
  18. package/{chunk-BSTNFPHD.js → chunk-6XKX2N2E.js} +1 -1
  19. package/{chunk-7OC5VCLW.js → chunk-7EPLXPTM.js} +4 -4
  20. package/{chunk-GCMRDRCQ.js → chunk-7IPLJUYC.js} +1 -1
  21. package/{chunk-53DNV5AT.js → chunk-7U4TQSWU.js} +3 -3
  22. package/{chunk-GGUO4FKF.js → chunk-7XN726FS.js} +41 -19
  23. package/{chunk-I3D64LRJ.js → chunk-BKPVTIEK.js} +4 -4
  24. package/{chunk-7YLKNMOM.js → chunk-DAB7DRXD.js} +6 -6
  25. package/{chunk-LM25IZBJ.js → chunk-DG7AAAR3.js} +1 -1
  26. package/{chunk-F6QQI5YI.js → chunk-DGFWICQJ.js} +1 -1
  27. package/chunk-DSNONPGW.js +386 -0
  28. package/{chunk-LAWBMYBC.js → chunk-FE2TZO7Z.js} +2 -2
  29. package/{chunk-R2HXWML7.js → chunk-HLM6MG7F.js} +19 -20
  30. package/chunk-I42VC5KR.js +15 -0
  31. package/{chunk-J5KV47ZW.js → chunk-IBJC3GOP.js} +2 -2
  32. package/chunk-JEXVIMYZ.js +55 -0
  33. package/{chunk-6B7G54GE.js → chunk-KH4OXCBK.js} +5 -5
  34. package/{chunk-SYOF5TAS.js → chunk-MXLQWBVM.js} +36 -95
  35. package/chunk-OPZYGHUC.js +89 -0
  36. package/{chunk-J4576WMJ.js → chunk-PCWC3JTN.js} +1 -1
  37. package/{chunk-HEIIIZBX.js → chunk-Q2YZULBH.js} +1 -1
  38. package/{chunk-KB7YFGL6.js → chunk-Q3K5K4KS.js} +1 -1
  39. package/{chunk-IAXBCTTE.js → chunk-QO4YO77G.js} +2 -2
  40. package/{chunk-GGXABIPP.js → chunk-RJKDVL4L.js} +2 -2
  41. package/{chunk-CJH2VTEU.js → chunk-RLCFUU46.js} +3 -3
  42. package/{chunk-2UZXR7WO.js → chunk-SACYB45H.js} +19 -378
  43. package/{chunk-PN7AFLOK.js → chunk-SH2CFQOH.js} +3 -13
  44. package/{chunk-XBIUN5CR.js → chunk-TWPGVS2U.js} +2 -2
  45. package/{chunk-G5H7RNFL.js → chunk-V2AISYMA.js} +2 -2
  46. package/{chunk-TZNCFAUP.js → chunk-XOH46MRF.js} +8 -15
  47. package/{chunk-CQAHS7YO.js → chunk-YDESHYQC.js} +56 -12
  48. package/{chunk-AUGHVUFE.js → chunk-YYUCRDOK.js} +1 -1
  49. package/{chunk-H2RMRZJE.js → chunk-ZDXZSXYQ.js} +1 -1
  50. package/{chunk-NXZGF7F7.js → chunk-ZQ2UM4KG.js} +1 -1
  51. package/{chunk-QR5IPGT3.js → chunk-ZRS4MX3R.js} +170 -176
  52. package/{createAgentAutomationAction-537X433B.js → createAgentAutomationAction-GNRYFKTT.js} +12 -10
  53. package/{createDialogAction-YUD4RKBS.js → createDialogAction-Q4ISCARO.js} +15 -13
  54. package/{createPageAction-KJMFHL4C.js → createPageAction-7YCAZPK3.js} +13 -11
  55. package/{dbSlice-C4UJLRZP.js → dbSlice-TO2TSMWM.js} +3 -2
  56. package/{dialogCommands-H74KJKHC.js → dialogCommands-DWSE4PMW.js} +13 -10
  57. package/{dialogSlice-ETSD4YWS.js → dialogSlice-5KZA46HM.js} +12 -10
  58. package/{docCreateCommands-ADUSU34K.js → docCreateCommands-UFJL5PUM.js} +12 -9
  59. package/{docDeleteCommands-ZXV3S5OS.js → docDeleteCommands-XHEIBAB2.js} +13 -10
  60. package/{docReadCommands-YYYI6LT7.js → docReadCommands-PEDIC2CW.js} +12 -9
  61. package/{docStore-ZBF5DDKR.js → docStore-M7K7QFVS.js} +13 -11
  62. package/{docUpdateCommands-7MGJ3BYA.js → docUpdateCommands-WBRODQ7P.js} +12 -9
  63. package/{fetchMessages-JOCYIFKL.js → fetchMessages-U6ZHN56A.js} +3 -2
  64. package/{handleSendMessageAction-MGKI62Y6.js → handleSendMessageAction-SEV4YIPL.js} +12 -10
  65. package/index.js +40 -36
  66. package/{localDialogRead-D3BELSTF.js → localDialogRead-Z5UTAJPU.js} +1 -1
  67. package/{machineCommands-RMTMN7VQ.js → machineCommands-T4DN3MOU.js} +28 -24
  68. package/{machineWsRunDispatch-UIP355FN.js → machineWsRunDispatch-QRIIT2AK.js} +28 -24
  69. package/package.json +1 -1
  70. package/{readlineWorkspace-CRNQRZ6D.js → readlineWorkspace-DXOTOVHL.js} +163 -31
  71. package/{removeDialogAgentAction-CXLST3N6.js → removeDialogAgentAction-3MUQGFZX.js} +5 -4
  72. package/{runAgentClientLoop-2S334SGA.js → runAgentClientLoop-UEQEP3XG.js} +21 -19
  73. package/{setDialogExtraReferencesAction-LP6VYGU7.js → setDialogExtraReferencesAction-MXHX2HPK.js} +3 -2
  74. package/{setPrimaryDialogAgentAction-D3GGH23T.js → setPrimaryDialogAgentAction-7DLDZHDT.js} +5 -4
  75. package/{settingSlice-J4I3Z5H7.js → settingSlice-PNLASZGI.js} +4 -3
  76. package/{spaceCommands-NDEWMFZJ.js → spaceCommands-ORSFAWEY.js} +11 -8
  77. package/{spaceSlice-RLB6RTHO.js → spaceSlice-HOMW64JA.js} +12 -10
  78. package/{streamAgentChatTurn-Y2TTYPBD.js → streamAgentChatTurn-REWDBIL3.js} +28 -26
  79. package/{tools-YZYLY2ZQ.js → tools-L4UQS5VW.js} +19 -17
  80. package/tuiSummaryLlmCaller-JSI4GL6W.js +78 -0
  81. package/{understanding-HCSFPE7R.js → understanding-YH4X3XU6.js} +3 -2
  82. package/{updateDialogTitleAction-LQV6QLBW.js → updateDialogTitleAction-CKLNP73H.js} +14 -11
@@ -16,17 +16,17 @@ import {
16
16
  createCliCallAgentToolExecutor,
17
17
  createCliLocalRuntimeAdapter,
18
18
  isBuiltinNoloAgentRef
19
- } from "./chunk-YOUZDXU7.js";
19
+ } from "./chunk-3N55DSXH.js";
20
20
  import {
21
21
  getReadableCliDb
22
22
  } from "./chunk-W4NVOSFF.js";
23
23
  import {
24
24
  readDbRecord,
25
25
  resolveAgentRecordFromHybridStore
26
- } from "./chunk-GGXABIPP.js";
26
+ } from "./chunk-RJKDVL4L.js";
27
27
  import {
28
28
  normalizeAgentHandle
29
- } from "./chunk-F6QQI5YI.js";
29
+ } from "./chunk-DGFWICQJ.js";
30
30
  import {
31
31
  NOLO_PROJECT_MANAGER_AGENT_KEY,
32
32
  isLocalCliAgentKey
@@ -46,11 +46,11 @@ import {
46
46
  load,
47
47
  parseExternalSkillMarkdown,
48
48
  parseSkillDocProtocol
49
- } from "./chunk-NXZGF7F7.js";
49
+ } from "./chunk-ZQ2UM4KG.js";
50
50
  import {
51
51
  getModelContextWindow,
52
52
  parseUiAskChoiceContent
53
- } from "./chunk-QR5IPGT3.js";
53
+ } from "./chunk-ZRS4MX3R.js";
54
54
  import {
55
55
  readPipeText,
56
56
  spawnProcess
@@ -61,7 +61,7 @@ import {
61
61
  import {
62
62
  buildPlatformChatCompletionRequest,
63
63
  parsePlatformChatCompletionData
64
- } from "./chunk-2UZXR7WO.js";
64
+ } from "./chunk-DSNONPGW.js";
65
65
  import {
66
66
  resolveAgentRuntimeConfigFromRecord
67
67
  } from "./chunk-TILFE6LV.js";
@@ -70,7 +70,7 @@ import {
70
70
  LOCAL_TURN_ABORTED_CODE,
71
71
  readActionGate,
72
72
  readCommandActionGatePayload
73
- } from "./chunk-SYOF5TAS.js";
73
+ } from "./chunk-MXLQWBVM.js";
74
74
  import {
75
75
  resolvePlatformChatCompletionsEndpoint
76
76
  } from "./chunk-XDVAYP26.js";
@@ -91,7 +91,7 @@ import {
91
91
  } from "./chunk-Y5GCAMGP.js";
92
92
  import {
93
93
  require_index_umd
94
- } from "./chunk-PN7AFLOK.js";
94
+ } from "./chunk-SH2CFQOH.js";
95
95
  import {
96
96
  asTrimmedLowercaseString
97
97
  } from "./chunk-QSJ3HFEF.js";
@@ -486,10 +486,35 @@ function themeText(text, token, colorEnabled = resolveCliColorEnabled(), env = p
486
486
  if (!colorEnabled) return text;
487
487
  return `${themeColorSequence(token, env)}${text}\x1B[39m`;
488
488
  }
489
+ function renderDiffCodeBlock(code, env = process.env) {
490
+ const border = themeText("\u2502", "chrome", true, env);
491
+ const addedColor = themeColorSequence("success", env);
492
+ const deletedColor = themeColorSequence("danger", env);
493
+ const hunkColor = themeColorSequence("info", env);
494
+ const contextColor = themeColorSequence("chrome", env);
495
+ const reset = "\x1B[0m";
496
+ const lines = code.split("\n").map((line) => {
497
+ let color = contextColor;
498
+ if (line.startsWith("@@")) {
499
+ color = hunkColor;
500
+ } else if (line.startsWith("+") && !line.startsWith("+++")) {
501
+ color = addedColor;
502
+ } else if (line.startsWith("-") && !line.startsWith("---")) {
503
+ color = deletedColor;
504
+ }
505
+ return ` ${border} ${color}${line}${reset}`;
506
+ });
507
+ return ` ${themeText("\u250C\u2500\u2500\u2500", "chrome", true, env)}
508
+ ${lines.join("\n")}
509
+ ${themeText("\u2514\u2500\u2500\u2500", "chrome", true, env)}`;
510
+ }
489
511
  function highlightMarkdown(text, colorEnabled = resolveCliColorEnabled(), env = process.env) {
490
512
  if (!colorEnabled) return text;
491
513
  let result = text;
492
- result = result.replace(/```[a-zA-Z-]*\n([\s\S]*?)\n```/g, (match, code) => {
514
+ result = result.replace(/```([a-zA-Z-]*)\n([\s\S]*?)\n```/g, (match, lang, code) => {
515
+ if (lang.toLowerCase() === "diff") {
516
+ return renderDiffCodeBlock(code, env);
517
+ }
493
518
  const infoColor = themeColorSequence("info", env);
494
519
  const reset2 = "\x1B[39m\x1B[22m";
495
520
  const border = themeText("\u2502", "chrome", true, env);
@@ -580,6 +605,8 @@ function normalizeCodeLang(raw) {
580
605
  return "sh";
581
606
  case "json":
582
607
  return "json";
608
+ case "diff":
609
+ return "diff";
583
610
  default:
584
611
  return "unknown";
585
612
  }
@@ -652,7 +679,8 @@ var KEYWORDS = {
652
679
  "echo",
653
680
  "cd"
654
681
  ]),
655
- json: /* @__PURE__ */ new Set(["true", "false", "null"])
682
+ json: /* @__PURE__ */ new Set(["true", "false", "null"]),
683
+ diff: /* @__PURE__ */ new Set([])
656
684
  };
657
685
  function scanStringCommentRegions(line, lang) {
658
686
  const regions = [];
@@ -698,6 +726,22 @@ function highlightCodeLine(line, lang, brightness) {
698
726
  if (lang === "unknown") {
699
727
  return `${info}${line}${STYLE.reset}`;
700
728
  }
729
+ if (lang === "diff") {
730
+ const added = colorSeq("success", brightness);
731
+ const deleted = colorSeq("danger", brightness);
732
+ const hunk = colorSeq("info", brightness);
733
+ const context = colorSeq("chrome", brightness);
734
+ const reset2 = STYLE.reset;
735
+ let color = context;
736
+ if (line.startsWith("@@")) {
737
+ color = hunk;
738
+ } else if (line.startsWith("+") && !line.startsWith("+++")) {
739
+ color = added;
740
+ } else if (line.startsWith("-") && !line.startsWith("---")) {
741
+ color = deleted;
742
+ }
743
+ return `${color}${line}${reset2}`;
744
+ }
701
745
  const regions = scanStringCommentRegions(line, lang);
702
746
  const keywords = KEYWORDS[lang];
703
747
  const accent = colorSeq("accent", brightness);
@@ -2732,7 +2776,7 @@ function isKnownServerPlatformAgent(options) {
2732
2776
  // packages/cli/client/agentRun.ts
2733
2777
  var import_ulid = __toESM(require_index_umd(), 1);
2734
2778
  async function loadRunLocalAgentTurn() {
2735
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-62ZB2ODP.js");
2779
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-XL5PLRJV.js");
2736
2780
  return runLocalAgentTurn;
2737
2781
  }
2738
2782
  async function resolveCurrentMachineId(options) {
@@ -3130,7 +3174,7 @@ async function runLocalAgentTurnForCli(options, settings) {
3130
3174
  } : void 0;
3131
3175
  const currentDialogId = options.continueDialogId ?? (0, import_ulid.ulid)();
3132
3176
  const runChildTurn = async (input) => {
3133
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-62ZB2ODP.js");
3177
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-XL5PLRJV.js");
3134
3178
  return runLocalAgentTurn(input);
3135
3179
  };
3136
3180
  const createFreshChildBaseAdapter = () => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  dialogMessageRange
3
- } from "./chunk-PN7AFLOK.js";
3
+ } from "./chunk-SH2CFQOH.js";
4
4
  import {
5
5
  isTombstoneRecord
6
6
  } from "./chunk-GBRG75BQ.js";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  patch,
6
6
  read
7
- } from "./chunk-G5H7RNFL.js";
7
+ } from "./chunk-V2AISYMA.js";
8
8
  import {
9
9
  DEVICE_LOCAL_OWNER_ID,
10
10
  isDeviceLocalSpaceBody,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  asTrimmedNonEmptyStringArray
3
- } from "./chunk-PN7AFLOK.js";
3
+ } from "./chunk-I42VC5KR.js";
4
4
  import {
5
5
  asOptionalTrimmedString
6
6
  } from "./chunk-G3SUCT4W.js";