nolo-cli 0.147.0-alpha.1 → 0.148.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 (102) hide show
  1. package/{_executeModel-MQFQCXIE.js → _executeModel-NFJAMAGJ.js} +29 -28
  2. package/{action-3ZOODRBC.js → action-GI44T4DR.js} +6 -6
  3. package/{addContentAction-IJHG2ZV7.js → addContentAction-B2DRF7P6.js} +5 -5
  4. package/{addDialogAgentAction-RLPSTAQ2.js → addDialogAgentAction-2P2FLTLD.js} +4 -4
  5. package/{agentDeleteCommand-6OGADD24.js → agentDeleteCommand-7IDWF6E3.js} +14 -13
  6. package/{agentEmailCommands-SV276XHA.js → agentEmailCommands-4KW33JII.js} +31 -30
  7. package/{agentListCommands-FRJZOOEG.js → agentListCommands-IW3GQVUP.js} +16 -15
  8. package/{agentMachineCommands-IB2WMF3X.js → agentMachineCommands-CMQR4RQ4.js} +14 -13
  9. package/{agentProviderCommands-TWB6E5WD.js → agentProviderCommands-YK2BIIXZ.js} +1 -1
  10. package/{agentRecordCommands-D5FUBTKU.js → agentRecordCommands-4YBSYPIY.js} +31 -30
  11. package/{agentRunCommand-TNW4RJ6W.js → agentRunCommand-5MU5X5OT.js} +31 -30
  12. package/{agentRuntimeLocal-QQCDFR7B.js → agentRuntimeLocal-AK2QVJHY.js} +12 -11
  13. package/{agentSlice-L6ILXYZ3.js → agentSlice-OZ33K224.js} +5 -5
  14. package/{appDeleteCommands-OGKQC2AM.js → appDeleteCommands-N3XEVVYC.js} +15 -14
  15. package/{appDeployCommands-Y2FV4JML.js → appDeployCommands-AWFIXYVW.js} +15 -14
  16. package/{appDeployStatusCommands-FNML5SUV.js → appDeployStatusCommands-CZRON2FO.js} +15 -14
  17. package/{appGetCommands-4FOY7W5E.js → appGetCommands-XQIUY4TD.js} +15 -14
  18. package/{appListCommands-E5SF6SIY.js → appListCommands-NNG4H36Y.js} +15 -14
  19. package/{chatQueueReduxAdapter-OUCL4GQF.js → chatQueueReduxAdapter-HVHA2HPM.js} +11 -11
  20. package/{chunk-GP4TSLAB.js → chunk-2JMMBU6V.js} +27 -257
  21. package/{chunk-T76D3OYX.js → chunk-3SV7RM24.js} +1 -1
  22. package/{chunk-C4YCNZFV.js → chunk-42Z3EMC4.js} +39 -27
  23. package/{chunk-O7WXJIUI.js → chunk-4H22P2JV.js} +11 -9
  24. package/{chunk-6RO37MST.js → chunk-523WHFSL.js} +10 -10
  25. package/{chunk-M2YBIBBS.js → chunk-5TEEECZM.js} +1 -1
  26. package/{chunk-Z7IZQF56.js → chunk-6FGTMQCL.js} +1 -1
  27. package/{chunk-ETZWFV6M.js → chunk-7CHC4W22.js} +1 -1
  28. package/{chunk-ZSPC3ZTC.js → chunk-AKG5W4LG.js} +1 -1
  29. package/{chunk-CCOXTK3I.js → chunk-ALFH24P3.js} +26 -0
  30. package/{chunk-7NANRWL4.js → chunk-ALGORS6Y.js} +1 -1
  31. package/chunk-BKWMNZ2X.js +411 -0
  32. package/{chunk-HNRASX3X.js → chunk-CPUFH46E.js} +1 -1
  33. package/{chunk-GMVELWJG.js → chunk-CU3QB4HW.js} +2 -2
  34. package/{chunk-QWYHDF4G.js → chunk-DCFPQW22.js} +2 -2
  35. package/{chunk-XA4RT4LC.js → chunk-DIXLJWCD.js} +14 -14
  36. package/{chunk-2EE5UD3N.js → chunk-DY7ANLKG.js} +1 -1
  37. package/{chunk-YAE5DQ5C.js → chunk-FWQEKRTD.js} +3 -3
  38. package/{chunk-I44MDY73.js → chunk-GOH6RW6F.js} +3 -3
  39. package/chunk-HUFPWXFW.js +1716 -0
  40. package/{chunk-QALRKMHF.js → chunk-HYZIYH2H.js} +5 -5
  41. package/{chunk-EFZKILX6.js → chunk-IAESIMK7.js} +1 -1
  42. package/{chunk-DSY37Y5Z.js → chunk-IAG4FHOJ.js} +1 -1
  43. package/{chunk-HLUYTEBY.js → chunk-K2CSUCHJ.js} +1 -1
  44. package/{chunk-NLBUI6IU.js → chunk-LPVCRQMM.js} +5 -5
  45. package/{chunk-QJLEMM2V.js → chunk-O2OWEFII.js} +1 -1
  46. package/{chunk-724HIKHT.js → chunk-OHOVNO7I.js} +4 -127
  47. package/{chunk-A7WFQXNK.js → chunk-P4BX6FFU.js} +4 -571
  48. package/{chunk-5ROO623H.js → chunk-PCVVZ2MH.js} +3 -3
  49. package/chunk-PQWU42UQ.js +132 -0
  50. package/{chunk-6HWONTC6.js → chunk-QU5A4LYX.js} +6 -6
  51. package/{chunk-QIH323EV.js → chunk-QXGPFY6J.js} +1 -1
  52. package/{chunk-B7ANJQWZ.js → chunk-RSEEDUMS.js} +2 -2
  53. package/{chunk-ELYEQNUI.js → chunk-RYZINGPM.js} +3 -3
  54. package/{chunk-AATZZAZE.js → chunk-SLLGJZDT.js} +1 -1
  55. package/{chunk-3IYMTWYZ.js → chunk-SONWNI3L.js} +2 -2
  56. package/chunk-T767MPHB.js +681 -0
  57. package/{chunk-67QZSNVD.js → chunk-T7F46O36.js} +3 -3
  58. package/{chunk-BJUDYFV5.js → chunk-UQNS32WZ.js} +1 -1
  59. package/{chunk-AUXHZ2M5.js → chunk-WIWM4FE3.js} +1 -1
  60. package/{chunk-7V2HN64K.js → chunk-WRMKCKZ3.js} +16 -14
  61. package/{chunk-YU2THNST.js → chunk-XISEYOGH.js} +1 -1
  62. package/{chunk-WSGZ4I7M.js → chunk-YUWMM4US.js} +3 -3
  63. package/{chunk-D76D3RTR.js → chunk-Z4CSIXYP.js} +2 -2
  64. package/{commandRegistry-OIUSLAJG.js → commandRegistry-YOEQUA7T.js} +42 -42
  65. package/{contentThunks-5QTQNUD2.js → contentThunks-AK2F3KNC.js} +12 -12
  66. package/{createAgentAutomationAction-YQKECXJV.js → createAgentAutomationAction-5EJL6ROU.js} +12 -12
  67. package/{createDialogAction-3NGUXFB7.js → createDialogAction-F5WEWA47.js} +13 -13
  68. package/{createPageAction-6MIKNYUH.js → createPageAction-75ELC64R.js} +12 -12
  69. package/{dbSlice-HFPIJT5P.js → dbSlice-DQ32LYTJ.js} +4 -4
  70. package/{deleteFile-UEAD5A5Z.js → deleteFile-NX6QHCWZ.js} +2 -2
  71. package/{dialogCommands-KSPH6QOU.js → dialogCommands-G7YBVAMC.js} +15 -14
  72. package/{dialogSlice-UGWF2KW6.js → dialogSlice-KSXPGJB2.js} +11 -11
  73. package/{docCreateCommands-B64BLZVJ.js → docCreateCommands-ZSLGVBZT.js} +14 -13
  74. package/{docDeleteCommands-UX2GXKUT.js → docDeleteCommands-5N4GVZBG.js} +15 -14
  75. package/{docReadCommands-5A6GF3XL.js → docReadCommands-YJSAA7AV.js} +14 -13
  76. package/{docStore-MOM2DHF5.js → docStore-AROBVRCR.js} +5 -5
  77. package/{docUpdateCommands-UTBGZPSR.js → docUpdateCommands-WEMLSW6W.js} +14 -13
  78. package/{handleSendMessageAction-QD6DK7XX.js → handleSendMessageAction-EGNWHAUB.js} +229 -45
  79. package/index.js +3 -3
  80. package/{machineCommands-42EQE5E2.js → machineCommands-ARZYKGGE.js} +30 -29
  81. package/{machineWsRunDispatch-QTUFQTZ5.js → machineWsRunDispatch-I7F4L532.js} +30 -29
  82. package/{memberThunks-SKFZ37VS.js → memberThunks-5ZXPR63F.js} +5 -5
  83. package/package.json +1 -1
  84. package/{providerPresetApply-XTEXOH7X.js → providerPresetApply-DD6NGWW6.js} +1 -1
  85. package/{providerRegistry-ADYDSLKR.js → providerRegistry-XDRLMYGJ.js} +1 -1
  86. package/{read-IEJLLUXY.js → read-EPTJRAEF.js} +2 -2
  87. package/{readDocTool-4SPYCP2Y.js → readDocTool-W4NDXNEX.js} +1 -1
  88. package/{readlineWorkspace-2QJL7CU4.js → readlineWorkspace-3XOFVARF.js} +34 -33
  89. package/{removeDialogAgentAction-R4RTGM2S.js → removeDialogAgentAction-OSYNZRX7.js} +6 -6
  90. package/{runAgentClientLoop-2EFDJHKS.js → runAgentClientLoop-UMF7VZYZ.js} +30 -28
  91. package/{setDialogExtraReferencesAction-NU2VZ7JZ.js → setDialogExtraReferencesAction-M32UYNCG.js} +5 -5
  92. package/{setPrimaryDialogAgentAction-VUY2FRVL.js → setPrimaryDialogAgentAction-WZ7KI3YA.js} +6 -6
  93. package/{settingSlice-CNE75ISY.js → settingSlice-Q6EKL7EQ.js} +5 -5
  94. package/{spaceCommands-HZUAGZXH.js → spaceCommands-UJOVU4XI.js} +14 -13
  95. package/{streamAgentChatTurn-IUFYM3LS.js → streamAgentChatTurn-GYGMYOSM.js} +71 -1268
  96. package/{switchDialogAgentAction-JC27CP72.js → switchDialogAgentAction-GMR7WN3P.js} +4 -4
  97. package/{tools-G7AM5SXM.js → tools-DU4JXVAV.js} +21 -21
  98. package/{tuiSummaryLlmCaller-RVW6CJSK.js → tuiSummaryLlmCaller-3YFNHCTW.js} +7 -7
  99. package/{updateDialogTitleAction-56P5NFOI.js → updateDialogTitleAction-4U5W4AMH.js} +12 -12
  100. package/chunk-BJ3KD73I.js +0 -155
  101. package/chunk-JK5XW3NO.js +0 -108
  102. package/chunk-YYKMFBK7.js +0 -306
@@ -0,0 +1,132 @@
1
+ import {
2
+ findModelConfig,
3
+ getProviderByModelName
4
+ } from "./chunk-3BXNTXYI.js";
5
+ import {
6
+ asTrimmedLowercaseString
7
+ } from "./chunk-QSJ3HFEF.js";
8
+ import {
9
+ asOptionalTrimmedString
10
+ } from "./chunk-G3SUCT4W.js";
11
+
12
+ // packages/ai/agent/toolOutputPolicy.ts
13
+ var MAX_IN_TURN_TOOL_CONTENT_CHARS = 4e3;
14
+ var DEFAULT_TOOL_OUTPUT_PROFILE = {
15
+ maxChars: MAX_IN_TURN_TOOL_CONTENT_CHARS,
16
+ headRatio: 0.5
17
+ };
18
+ var TOOL_OUTPUT_PROFILES = {
19
+ readFile: { maxChars: 4800, headRatio: 0.68, historicalMaxChars: 4800 },
20
+ read_file: { maxChars: 4800, headRatio: 0.68, historicalMaxChars: 4800 },
21
+ readWorkspaceFile: { maxChars: 4800, headRatio: 0.68, historicalMaxChars: 4800 },
22
+ globFiles: { maxChars: 2800, headRatio: 0.85 },
23
+ execShell: { maxChars: 4e3, headRatio: 0.35 },
24
+ runCommand: { maxChars: 4e3, headRatio: 0.35 },
25
+ launchProcess: { maxChars: 2800, headRatio: 0.35 },
26
+ editFile: { maxChars: 2800, headRatio: 0.62 },
27
+ writeFile: { maxChars: 2400, headRatio: 0.62 },
28
+ readPastedText: { maxChars: 4800, headRatio: 0.5, historicalMaxChars: 4800 }
29
+ };
30
+ function resolveToolOutputProfile(toolName) {
31
+ return (toolName ? TOOL_OUTPUT_PROFILES[toolName] : void 0) ?? DEFAULT_TOOL_OUTPUT_PROFILE;
32
+ }
33
+ function resolveHistoricalToolContentCap(toolName, historicalMaxChars) {
34
+ const profile = toolName ? TOOL_OUTPUT_PROFILES[toolName] : void 0;
35
+ return profile?.historicalMaxChars !== void 0 ? Math.max(historicalMaxChars, profile.historicalMaxChars) : historicalMaxChars;
36
+ }
37
+ function projectToolMessageContent(input) {
38
+ const { content, toolName } = input;
39
+ const maxChars = resolveToolOutputProfile(toolName).maxChars;
40
+ if (content.length <= maxChars) return content;
41
+ return clipToolText(
42
+ content,
43
+ maxChars,
44
+ resolveToolOutputProfile(toolName).headRatio,
45
+ `
46
+ \u2026[\u622A\u65AD\uFF0C\u539F\u59CB\u957F\u5EA6 ${content.length} \u5B57\u7B26]`
47
+ );
48
+ }
49
+ function clipToolText(content, maxChars, headRatio, marker = "\n\n[... tool output middle omitted; head/tail preserved ...]\n\n") {
50
+ const normalized = content.replace(/\r\n/g, "\n").trim();
51
+ if (normalized.length <= maxChars) return normalized;
52
+ if (maxChars <= marker.length + 2) return normalized.slice(0, maxChars);
53
+ const available = maxChars - marker.length;
54
+ const headChars = Math.max(1, Math.floor(available * headRatio));
55
+ const tailChars = Math.max(1, available - headChars);
56
+ return `${normalized.slice(0, headChars)}${marker}${normalized.slice(-tailChars)}`;
57
+ }
58
+
59
+ // packages/ai/llm/agentCapabilities.ts
60
+ var ANTIGRAVITY_EFFORT_SUFFIXES = [
61
+ "-tiered",
62
+ "-extra-low",
63
+ "-low",
64
+ "-medium",
65
+ "-high"
66
+ ];
67
+ function stripEffortSuffix(model) {
68
+ for (const suffix of ANTIGRAVITY_EFFORT_SUFFIXES) {
69
+ if (model.endsWith(suffix) && model.length > suffix.length) {
70
+ return model.slice(0, -suffix.length);
71
+ }
72
+ }
73
+ return model;
74
+ }
75
+ function stripPreviewSuffix(model) {
76
+ const suffix = "-preview";
77
+ if (model.endsWith(suffix) && model.length > suffix.length) {
78
+ return model.slice(0, -suffix.length);
79
+ }
80
+ return model;
81
+ }
82
+ var lookupKnownModelVision = (provider, model) => {
83
+ if (!model) return void 0;
84
+ const candidates = [model];
85
+ const strippedEffort = stripEffortSuffix(model);
86
+ if (strippedEffort !== model) candidates.push(strippedEffort);
87
+ const strippedPreview = stripPreviewSuffix(model);
88
+ if (strippedPreview !== model) candidates.push(strippedPreview);
89
+ for (const candidate of candidates) {
90
+ if (provider && provider !== "custom") {
91
+ const direct = findModelConfig(provider, candidate);
92
+ if (direct && typeof direct.hasVision === "boolean") return direct.hasVision;
93
+ }
94
+ const detected = getProviderByModelName(candidate);
95
+ if (detected) {
96
+ const found = findModelConfig(detected, candidate)?.hasVision;
97
+ if (found !== void 0) return found;
98
+ }
99
+ if (candidate.includes("/")) {
100
+ const slash = candidate.indexOf("/");
101
+ const modelProvider = candidate.slice(0, slash).toLowerCase();
102
+ const modelName = candidate.slice(slash + 1);
103
+ const nested = findModelConfig(modelProvider, modelName);
104
+ if (nested && typeof nested.hasVision === "boolean") return nested.hasVision;
105
+ }
106
+ }
107
+ return void 0;
108
+ };
109
+ var resolveAgentImageInputSupport = (agent) => {
110
+ if (!agent) return true;
111
+ const provider = asTrimmedLowercaseString(agent.provider) || null;
112
+ const model = asOptionalTrimmedString(agent.model) ?? "";
113
+ const catalogHasVision = lookupKnownModelVision(
114
+ provider,
115
+ model
116
+ );
117
+ if (catalogHasVision !== void 0) {
118
+ return catalogHasVision;
119
+ }
120
+ if (typeof agent.hasVision === "boolean") {
121
+ return agent.hasVision;
122
+ }
123
+ return true;
124
+ };
125
+
126
+ export {
127
+ resolveToolOutputProfile,
128
+ resolveHistoricalToolContentCap,
129
+ projectToolMessageContent,
130
+ clipToolText,
131
+ resolveAgentImageInputSupport
132
+ };
@@ -9,7 +9,7 @@ import {
9
9
  initReactI18next,
10
10
  instance,
11
11
  toast
12
- } from "./chunk-C4YCNZFV.js";
12
+ } from "./chunk-42Z3EMC4.js";
13
13
  import {
14
14
  require_date_fns
15
15
  } from "./chunk-M76ECQRD.js";
@@ -21,7 +21,7 @@ import {
21
21
  addContentAction,
22
22
  checkSpaceMembership,
23
23
  localSpaceAuthorityPatchStamp
24
- } from "./chunk-B7ANJQWZ.js";
24
+ } from "./chunk-RSEEDUMS.js";
25
25
  import {
26
26
  createSpaceKey,
27
27
  normalizeSpaceId
@@ -41,7 +41,7 @@ import {
41
41
  uploadFileAction,
42
42
  upsertSSREntity,
43
43
  write
44
- } from "./chunk-QALRKMHF.js";
44
+ } from "./chunk-HYZIYH2H.js";
45
45
  import {
46
46
  SEPARATOR,
47
47
  asTrimmedNonEmptyStringArray,
@@ -65,7 +65,7 @@ import {
65
65
  resolveReplicationServers,
66
66
  scheduleDeleteReplication,
67
67
  scheduleWriteReplication
68
- } from "./chunk-AUXHZ2M5.js";
68
+ } from "./chunk-WIWM4FE3.js";
69
69
  import {
70
70
  createClientLogger,
71
71
  isAbortError
@@ -1453,11 +1453,11 @@ var ENTITY_DELETE_STRATEGIES = {
1453
1453
  await dispatch(deleteTable({ dbKey: key })).unwrap();
1454
1454
  },
1455
1455
  file: async (key, { thunkAPI }) => {
1456
- const { deleteFileAction } = await import("./deleteFile-UEAD5A5Z.js");
1456
+ const { deleteFileAction } = await import("./deleteFile-NX6QHCWZ.js");
1457
1457
  await deleteFileAction(key, thunkAPI);
1458
1458
  },
1459
1459
  image: async (key, { thunkAPI }) => {
1460
- const { deleteFileAction } = await import("./deleteFile-UEAD5A5Z.js");
1460
+ const { deleteFileAction } = await import("./deleteFile-NX6QHCWZ.js");
1461
1461
  await deleteFileAction(key, thunkAPI);
1462
1462
  },
1463
1463
  agent: async (key, { dispatch, userId, sourceServerOrigin }) => {
@@ -43,7 +43,7 @@ import {
43
43
  clipCompactText,
44
44
  isMeaningfulChatCompletionOutput,
45
45
  isMeaningfulResponsesOutput
46
- } from "./chunk-ELYEQNUI.js";
46
+ } from "./chunk-RYZINGPM.js";
47
47
  import {
48
48
  NOLO_CLIENT_VERSION_HEADER,
49
49
  isPlatformMimoProviderModel
@@ -4,11 +4,11 @@ import {
4
4
  import {
5
5
  patch,
6
6
  read
7
- } from "./chunk-QALRKMHF.js";
7
+ } from "./chunk-HYZIYH2H.js";
8
8
  import {
9
9
  DEVICE_LOCAL_OWNER_ID,
10
10
  isDeviceLocalSpaceBody
11
- } from "./chunk-AUXHZ2M5.js";
11
+ } from "./chunk-WIWM4FE3.js";
12
12
  import {
13
13
  selectIdentityUserId
14
14
  } from "./chunk-SEJ5OS6F.js";
@@ -6,13 +6,13 @@ import {
6
6
  } from "./chunk-DWLEOOGR.js";
7
7
  import {
8
8
  addContentAction
9
- } from "./chunk-B7ANJQWZ.js";
9
+ } from "./chunk-RSEEDUMS.js";
10
10
  import {
11
11
  upload
12
- } from "./chunk-QALRKMHF.js";
12
+ } from "./chunk-HYZIYH2H.js";
13
13
  import {
14
14
  getRuntimeServerContext
15
- } from "./chunk-AUXHZ2M5.js";
15
+ } from "./chunk-WIWM4FE3.js";
16
16
  import {
17
17
  API_ENDPOINTS
18
18
  } from "./chunk-LCBAMY2M.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-7NANRWL4.js";
4
+ } from "./chunk-ALGORS6Y.js";
5
5
  import {
6
6
  buildSkillSummaryMarker
7
7
  } from "./chunk-VF4K2QE6.js";
@@ -14,7 +14,7 @@ import {
14
14
  toTimestampMs,
15
15
  upsert,
16
16
  write
17
- } from "./chunk-QALRKMHF.js";
17
+ } from "./chunk-HYZIYH2H.js";
18
18
  import {
19
19
  createUserKey,
20
20
  createUserPreferenceKey,
@@ -29,7 +29,7 @@ import {
29
29
  createAction,
30
30
  createAsyncThunk,
31
31
  createSelector
32
- } from "./chunk-AUXHZ2M5.js";
32
+ } from "./chunk-WIWM4FE3.js";
33
33
  import {
34
34
  getAllServers,
35
35
  getIsDesktopApp,