nolo-cli 0.8.0-alpha.12 → 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-JOUHEEDS.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-TVJH2JID.js → agentDeleteCommand-GNVYHOGZ.js} +11 -8
  6. package/{agentEmailCommands-TB2RKQJL.js → agentEmailCommands-IC52LATA.js} +29 -25
  7. package/{agentListCommands-GVD6ZQ3B.js → agentListCommands-FM4OWXYT.js} +12 -9
  8. package/{agentMachineCommands-UJI6CDKE.js → agentMachineCommands-SFWC6KN4.js} +11 -8
  9. package/{agentRecordCommands-IQBFI3QO.js → agentRecordCommands-VLMLWLCM.js} +29 -25
  10. package/{agentRunCommand-VCQ5ONRC.js → agentRunCommand-D2PVHUGR.js} +30 -25
  11. package/{agentRuntimeLocal-JTCFVEEL.js → agentRuntimeLocal-XL5PLRJV.js} +16 -12
  12. package/{agentSlice-NZMLVXT5.js → agentSlice-IIC7AISR.js} +5 -4
  13. package/{chunk-GH7LOVLY.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-5KDNEBJR.js → chunk-7EPLXPTM.js} +4 -4
  20. package/{chunk-IEPE5Z7Y.js → chunk-7IPLJUYC.js} +1 -1
  21. package/{chunk-GSENGCXB.js → chunk-7U4TQSWU.js} +3 -3
  22. package/{chunk-FY4NQTEC.js → chunk-7XN726FS.js} +41 -19
  23. package/{chunk-QNCWJXVH.js → chunk-BKPVTIEK.js} +4 -4
  24. package/{chunk-6G3WLUY5.js → chunk-DAB7DRXD.js} +6 -6
  25. package/{chunk-LM25IZBJ.js → chunk-DG7AAAR3.js} +1 -1
  26. package/{chunk-K367HWYT.js → chunk-DGFWICQJ.js} +1 -1
  27. package/chunk-DSNONPGW.js +386 -0
  28. package/{chunk-4EPRP7A3.js → chunk-FE2TZO7Z.js} +2 -2
  29. package/{chunk-6HSAQUHW.js → chunk-HLM6MG7F.js} +19 -20
  30. package/chunk-I42VC5KR.js +15 -0
  31. package/{chunk-6VTZSYDT.js → chunk-IBJC3GOP.js} +2 -2
  32. package/chunk-JEXVIMYZ.js +55 -0
  33. package/{chunk-OF6IBT3Z.js → chunk-KH4OXCBK.js} +5 -5
  34. package/{chunk-AAKR4CKW.js → chunk-MXLQWBVM.js} +1 -88
  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-VJEKUYDK.js → chunk-Q3K5K4KS.js} +1 -1
  39. package/{chunk-IAXBCTTE.js → chunk-QO4YO77G.js} +2 -2
  40. package/{chunk-RAUV2V7X.js → chunk-RJKDVL4L.js} +2 -2
  41. package/{chunk-MTV2I4IF.js → chunk-RLCFUU46.js} +3 -3
  42. package/{chunk-U5CWPEKM.js → chunk-SACYB45H.js} +19 -378
  43. package/{chunk-PN7AFLOK.js → chunk-SH2CFQOH.js} +3 -13
  44. package/{chunk-VEWET5JQ.js → chunk-TWPGVS2U.js} +2 -2
  45. package/{chunk-G5H7RNFL.js → chunk-V2AISYMA.js} +2 -2
  46. package/{chunk-NDZOFKHS.js → chunk-XOH46MRF.js} +8 -15
  47. package/{chunk-FUU63UA7.js → chunk-YDESHYQC.js} +10 -10
  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-OW6OA65Z.js → chunk-ZRS4MX3R.js} +170 -176
  52. package/{createAgentAutomationAction-CGYKGZQK.js → createAgentAutomationAction-GNRYFKTT.js} +12 -10
  53. package/{createDialogAction-W34WVXOG.js → createDialogAction-Q4ISCARO.js} +15 -13
  54. package/{createPageAction-BX3BTTBM.js → createPageAction-7YCAZPK3.js} +13 -11
  55. package/{dbSlice-C4UJLRZP.js → dbSlice-TO2TSMWM.js} +3 -2
  56. package/{dialogCommands-DS6WHBNJ.js → dialogCommands-DWSE4PMW.js} +13 -10
  57. package/{dialogSlice-3QIHGXBA.js → dialogSlice-5KZA46HM.js} +12 -10
  58. package/{docCreateCommands-X6ACQKZU.js → docCreateCommands-UFJL5PUM.js} +12 -9
  59. package/{docDeleteCommands-NS7VBNDH.js → docDeleteCommands-XHEIBAB2.js} +13 -10
  60. package/{docReadCommands-U5PGIWTF.js → docReadCommands-PEDIC2CW.js} +12 -9
  61. package/{docStore-ZUQS4K5X.js → docStore-M7K7QFVS.js} +13 -11
  62. package/{docUpdateCommands-MKUDMRFB.js → docUpdateCommands-WBRODQ7P.js} +12 -9
  63. package/{fetchMessages-JOCYIFKL.js → fetchMessages-U6ZHN56A.js} +3 -2
  64. package/{handleSendMessageAction-T4LFZFCM.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-EFFHN5DU.js → machineCommands-T4DN3MOU.js} +28 -24
  68. package/{machineWsRunDispatch-NXBROTNC.js → machineWsRunDispatch-QRIIT2AK.js} +28 -24
  69. package/package.json +1 -1
  70. package/{readlineWorkspace-32SJR27M.js → readlineWorkspace-DXOTOVHL.js} +163 -31
  71. package/{removeDialogAgentAction-CXLST3N6.js → removeDialogAgentAction-3MUQGFZX.js} +5 -4
  72. package/{runAgentClientLoop-AUA4XII6.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-JLMZTC3V.js → spaceCommands-ORSFAWEY.js} +11 -8
  77. package/{spaceSlice-ECPEQE5G.js → spaceSlice-HOMW64JA.js} +12 -10
  78. package/{streamAgentChatTurn-5UNGDRXQ.js → streamAgentChatTurn-REWDBIL3.js} +28 -26
  79. package/{tools-BLAZGXMF.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-Y4SKBCZX.js → updateDialogTitleAction-CKLNP73H.js} +14 -11
@@ -890,89 +890,6 @@ async function runLocalAgentTurn(input) {
890
890
  };
891
891
  }
892
892
 
893
- // packages/agent-runtime/thinkTagParser.ts
894
- var OPEN_TAG = "<think>";
895
- var CLOSE_TAG = "</think>";
896
- function longestTagPrefixLength(buffer, tag) {
897
- const max = Math.min(buffer.length, tag.length - 1);
898
- for (let len = max; len > 0; len--) {
899
- if (tag.startsWith(buffer.slice(-len))) {
900
- return len;
901
- }
902
- }
903
- return 0;
904
- }
905
- function extractThinkContent(content) {
906
- const regex = new RegExp(`${OPEN_TAG}([\\s\\S]*?)${CLOSE_TAG}`, "g");
907
- const matches = [...content.matchAll(regex)];
908
- if (matches.length === 0) {
909
- return { content };
910
- }
911
- const reasoning = matches.map((m) => m[1]).join("\n");
912
- const cleaned = content.replace(regex, "");
913
- return { content: cleaned.replace(/^\n/, ""), reasoning };
914
- }
915
- function createThinkParserState() {
916
- return { mode: "content", buffer: "", trimNextVisible: false };
917
- }
918
- function processThinkChunk(chunk, state) {
919
- let visible = "";
920
- let reasoning = "";
921
- let { mode, buffer, trimNextVisible } = state;
922
- buffer += chunk;
923
- while (true) {
924
- if (mode === "content") {
925
- const idx = buffer.indexOf(OPEN_TAG);
926
- if (idx === -1) {
927
- const keep = longestTagPrefixLength(buffer, OPEN_TAG);
928
- visible += buffer.slice(0, buffer.length - keep);
929
- buffer = buffer.slice(buffer.length - keep);
930
- break;
931
- }
932
- visible += buffer.slice(0, idx);
933
- buffer = buffer.slice(idx + OPEN_TAG.length);
934
- mode = "reasoning";
935
- } else {
936
- const idx = buffer.indexOf(CLOSE_TAG);
937
- if (idx === -1) {
938
- const keep = longestTagPrefixLength(buffer, CLOSE_TAG);
939
- reasoning += buffer.slice(0, buffer.length - keep);
940
- buffer = buffer.slice(buffer.length - keep);
941
- break;
942
- }
943
- reasoning += buffer.slice(0, idx);
944
- buffer = buffer.slice(idx + CLOSE_TAG.length);
945
- mode = "content";
946
- trimNextVisible = true;
947
- }
948
- }
949
- if (mode === "content" && visible.length > 0 && trimNextVisible) {
950
- visible = visible.replace(/^\n/, "");
951
- trimNextVisible = false;
952
- }
953
- return { content: visible, reasoning, state: { mode, buffer, trimNextVisible } };
954
- }
955
- function flushThinkParser(state) {
956
- const { mode, buffer, trimNextVisible } = state;
957
- if (mode === "reasoning") {
958
- return {
959
- content: "",
960
- reasoning: buffer,
961
- state: { mode: "content", buffer: "", trimNextVisible: false }
962
- };
963
- }
964
- let visible = buffer;
965
- const nextTrim = trimNextVisible;
966
- if (nextTrim) {
967
- visible = visible.replace(/^\n/, "");
968
- }
969
- return {
970
- content: visible,
971
- reasoning: "",
972
- state: { mode: "content", buffer: "", trimNextVisible: false }
973
- };
974
- }
975
-
976
893
  export {
977
894
  readCommandActionGatePayload,
978
895
  readActionGate,
@@ -982,9 +899,5 @@ export {
982
899
  LOCAL_AGENT_CONFIG_MISSING_CODE,
983
900
  EMPTY_ASSISTANT_REPAIR_PROMPT,
984
901
  LOCAL_TURN_ABORTED_CODE,
985
- runLocalAgentTurn,
986
- extractThinkContent,
987
- createThinkParserState,
988
- processThinkChunk,
989
- flushThinkParser
902
+ runLocalAgentTurn
990
903
  };
@@ -0,0 +1,89 @@
1
+ // packages/agent-runtime/thinkTagParser.ts
2
+ var OPEN_TAG = "<think>";
3
+ var CLOSE_TAG = "</think>";
4
+ function longestTagPrefixLength(buffer, tag) {
5
+ const max = Math.min(buffer.length, tag.length - 1);
6
+ for (let len = max; len > 0; len--) {
7
+ if (tag.startsWith(buffer.slice(-len))) {
8
+ return len;
9
+ }
10
+ }
11
+ return 0;
12
+ }
13
+ function extractThinkContent(content) {
14
+ const regex = new RegExp(`${OPEN_TAG}([\\s\\S]*?)${CLOSE_TAG}`, "g");
15
+ const matches = [...content.matchAll(regex)];
16
+ if (matches.length === 0) {
17
+ return { content };
18
+ }
19
+ const reasoning = matches.map((m) => m[1]).join("\n");
20
+ const cleaned = content.replace(regex, "");
21
+ return { content: cleaned.replace(/^\n/, ""), reasoning };
22
+ }
23
+ function createThinkParserState() {
24
+ return { mode: "content", buffer: "", trimNextVisible: false };
25
+ }
26
+ function processThinkChunk(chunk, state) {
27
+ let visible = "";
28
+ let reasoning = "";
29
+ let { mode, buffer, trimNextVisible } = state;
30
+ buffer += chunk;
31
+ while (true) {
32
+ if (mode === "content") {
33
+ const idx = buffer.indexOf(OPEN_TAG);
34
+ if (idx === -1) {
35
+ const keep = longestTagPrefixLength(buffer, OPEN_TAG);
36
+ visible += buffer.slice(0, buffer.length - keep);
37
+ buffer = buffer.slice(buffer.length - keep);
38
+ break;
39
+ }
40
+ visible += buffer.slice(0, idx);
41
+ buffer = buffer.slice(idx + OPEN_TAG.length);
42
+ mode = "reasoning";
43
+ } else {
44
+ const idx = buffer.indexOf(CLOSE_TAG);
45
+ if (idx === -1) {
46
+ const keep = longestTagPrefixLength(buffer, CLOSE_TAG);
47
+ reasoning += buffer.slice(0, buffer.length - keep);
48
+ buffer = buffer.slice(buffer.length - keep);
49
+ break;
50
+ }
51
+ reasoning += buffer.slice(0, idx);
52
+ buffer = buffer.slice(idx + CLOSE_TAG.length);
53
+ mode = "content";
54
+ trimNextVisible = true;
55
+ }
56
+ }
57
+ if (mode === "content" && visible.length > 0 && trimNextVisible) {
58
+ visible = visible.replace(/^\n/, "");
59
+ trimNextVisible = false;
60
+ }
61
+ return { content: visible, reasoning, state: { mode, buffer, trimNextVisible } };
62
+ }
63
+ function flushThinkParser(state) {
64
+ const { mode, buffer, trimNextVisible } = state;
65
+ if (mode === "reasoning") {
66
+ return {
67
+ content: "",
68
+ reasoning: buffer,
69
+ state: { mode: "content", buffer: "", trimNextVisible: false }
70
+ };
71
+ }
72
+ let visible = buffer;
73
+ const nextTrim = trimNextVisible;
74
+ if (nextTrim) {
75
+ visible = visible.replace(/^\n/, "");
76
+ }
77
+ return {
78
+ content: visible,
79
+ reasoning: "",
80
+ state: { mode: "content", buffer: "", trimNextVisible: false }
81
+ };
82
+ }
83
+
84
+ export {
85
+ extractThinkContent,
86
+ createThinkParserState,
87
+ processThinkChunk,
88
+ flushThinkParser
89
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  dialogMessageKey
3
- } from "./chunk-PN7AFLOK.js";
3
+ } from "./chunk-SH2CFQOH.js";
4
4
  import {
5
5
  asOptionalFiniteNumber
6
6
  } from "./chunk-WWC7I6TA.js";
@@ -2,7 +2,7 @@ import {
2
2
  createMemoryKey,
3
3
  memoryOwnerRange,
4
4
  memorySubjectKindRange
5
- } from "./chunk-PN7AFLOK.js";
5
+ } from "./chunk-SH2CFQOH.js";
6
6
 
7
7
  // packages/ai/memory/queryShared.ts
8
8
  var chooseMemoryOwners = (input) => {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-NDZOFKHS.js";
4
+ } from "./chunk-XOH46MRF.js";
5
5
 
6
6
  // packages/ai/agent/fetchAgentContexts.ts
7
7
  async function fetchAgentContexts(references, dispatch) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  selectCurrentServer,
3
3
  selectRemoteServers
4
- } from "./chunk-VEJLAVTC.js";
4
+ } from "./chunk-6CBN7GGH.js";
5
5
  import {
6
6
  createUserKey,
7
7
  extractAgentInfo,
@@ -10,7 +10,7 @@ import {
10
10
  sanitizeShareData,
11
11
  shareKey,
12
12
  toNonEmptyString
13
- } from "./chunk-PN7AFLOK.js";
13
+ } from "./chunk-SH2CFQOH.js";
14
14
  import {
15
15
  noloDeleteRequest,
16
16
  noloWriteRequest,
@@ -2,7 +2,7 @@ import {
2
2
  buildLocalAgentLookupKeys,
3
3
  normalizeAgentHandle,
4
4
  shouldReadAgentKeyRemotely
5
- } from "./chunk-K367HWYT.js";
5
+ } from "./chunk-DGFWICQJ.js";
6
6
  import {
7
7
  resolveCliAgentKeyInput
8
8
  } from "./chunk-VHBWHNVT.js";
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-HNMXYYJR.js";
23
23
  import {
24
24
  createAgentKey
25
- } from "./chunk-PN7AFLOK.js";
25
+ } from "./chunk-SH2CFQOH.js";
26
26
 
27
27
  // packages/cli/agentRecordHelpers.ts
28
28
  import { readFileSync } from "node:fs";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-RAUV2V7X.js";
4
+ } from "./chunk-RJKDVL4L.js";
5
5
  import {
6
6
  buildSkillSummaryMarker
7
7
  } from "./chunk-VF4K2QE6.js";
8
8
  import {
9
9
  buildSkillDocMarkdown
10
- } from "./chunk-NXZGF7F7.js";
10
+ } from "./chunk-ZQ2UM4KG.js";
11
11
  import {
12
12
  createSpaceKey
13
13
  } from "./chunk-UAD2WT54.js";
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-ISNCLGUZ.js";
20
20
  import {
21
21
  require_index_umd
22
- } from "./chunk-PN7AFLOK.js";
22
+ } from "./chunk-SH2CFQOH.js";
23
23
  import {
24
24
  asTrimmedLowercaseString
25
25
  } from "./chunk-QSJ3HFEF.js";