nolo-cli 0.70.0-alpha.1 → 0.70.0

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 (98) hide show
  1. package/{_executeModel-GOV2OHC7.js → _executeModel-YXI7ADJF.js} +32 -32
  2. package/{action-D22U6CTH.js → action-AOORTHTU.js} +4 -4
  3. package/{addContentAction-XAPUTGL4.js → addContentAction-E3S6F3IS.js} +3 -3
  4. package/{addDialogAgentAction-M7VLLBZM.js → addDialogAgentAction-EUBNJ5SS.js} +2 -2
  5. package/{agentDeleteCommand-FSIMTL4K.js → agentDeleteCommand-B5SKAPTR.js} +16 -16
  6. package/{agentEmailCommands-YZQ2VVHY.js → agentEmailCommands-LVUZQHBF.js} +37 -37
  7. package/{agentListCommands-2YWZYH52.js → agentListCommands-D2E7SFRQ.js} +18 -18
  8. package/{agentMachineCommands-UCYM5RRQ.js → agentMachineCommands-XNIBG4L2.js} +17 -17
  9. package/{agentRecordCommands-TPBYOPMA.js → agentRecordCommands-ID3URU2J.js} +36 -36
  10. package/{agentRunCommand-HBC2EQVU.js → agentRunCommand-KZMPUI53.js} +36 -36
  11. package/{agentRuntimeLocal-O6DZDTK4.js → agentRuntimeLocal-T47DU3IA.js} +16 -16
  12. package/{agentSlice-ZPODGT3P.js → agentSlice-K5IE7FV3.js} +3 -3
  13. package/{appDeleteCommands-HIJNWSK7.js → appDeleteCommands-URD2F5YN.js} +16 -16
  14. package/{appDeployCommands-XULV2ZN6.js → appDeployCommands-OACWEEWP.js} +16 -16
  15. package/{appDeployStatusCommands-ETY4Z7K6.js → appDeployStatusCommands-TVYLIUEU.js} +16 -16
  16. package/{appGetCommands-M253LKDA.js → appGetCommands-ZWG2YEAE.js} +16 -16
  17. package/{appListCommands-XYFXJMNP.js → appListCommands-E3BMSQEY.js} +16 -16
  18. package/{authCommand-EVGFLAHO.js → authCommand-QHMBXOOH.js} +7 -7
  19. package/{chatQueueReduxAdapter-Z67OC4WO.js → chatQueueReduxAdapter-HL5A3L2W.js} +13 -13
  20. package/{chunk-BLCUMZNV.js → chunk-2L7EUBRN.js} +4 -4
  21. package/{chunk-DSRXPQWA.js → chunk-2XENHR3P.js} +4 -4
  22. package/{chunk-PWGW5JTK.js → chunk-36G25COQ.js} +1 -1
  23. package/{chunk-E36HZARC.js → chunk-3E67YXGD.js} +2 -2
  24. package/{chunk-F657NADX.js → chunk-4ENGEYUY.js} +4 -4
  25. package/{chunk-YFADVSZE.js → chunk-4K6DB3GJ.js} +3 -3
  26. package/{chunk-5J7W2VWW.js → chunk-4MKPBCTN.js} +3 -2
  27. package/{chunk-UDQWGU7F.js → chunk-5TJQUZQ7.js} +1 -1
  28. package/{chunk-AJHEFRGJ.js → chunk-5YIL5WDC.js} +71 -220
  29. package/{chunk-NG4UT4K4.js → chunk-6IT5ECCC.js} +1 -1
  30. package/{chunk-FCCT2LU2.js → chunk-6RNOFHEM.js} +28 -116
  31. package/{chunk-BJCWNHVU.js → chunk-76JAMDUT.js} +2 -2
  32. package/{chunk-4EJ5QYB5.js → chunk-7JS3F5ZR.js} +1 -1
  33. package/{chunk-MYU3MJCF.js → chunk-AJF6YRN7.js} +1 -5
  34. package/{chunk-GBPZKFYK.js → chunk-BNATE77Z.js} +1 -1
  35. package/{chunk-ZIUMSKK4.js → chunk-C2SHPJSS.js} +38 -28
  36. package/{chunk-ZZCJUXUI.js → chunk-IM5EETJX.js} +1 -1
  37. package/{chunk-3U3EA3BO.js → chunk-IOZR6BLM.js} +1 -1
  38. package/{chunk-RFMPSCHX.js → chunk-JKAWV72Y.js} +14 -14
  39. package/{chunk-PZM3EENV.js → chunk-K647EQV3.js} +1 -1
  40. package/{chunk-ZLPA7K55.js → chunk-KRR3AG7T.js} +3 -3
  41. package/{chunk-NUTDASGX.js → chunk-LMEH4C4G.js} +3 -3
  42. package/{chunk-YYLLD6H6.js → chunk-O2X6R45W.js} +3 -3
  43. package/{chunk-3NVAU4WZ.js → chunk-OMHOVU2L.js} +1 -1
  44. package/{chunk-XWNRAIUL.js → chunk-OPNHMILE.js} +2 -2
  45. package/{chunk-DQAEUZSQ.js → chunk-PADUIVUU.js} +3 -3
  46. package/{chunk-3QPYFHAH.js → chunk-RJ5HQDHL.js} +1 -1
  47. package/{chunk-PYXL2CJL.js → chunk-RSDPPLSM.js} +1 -1
  48. package/{chunk-3IT2PFHL.js → chunk-RW76G3YN.js} +1 -1
  49. package/{chunk-CJ23A7U4.js → chunk-RXYIUZU5.js} +9 -9
  50. package/{chunk-EXMHJN7C.js → chunk-SHPRRU2W.js} +2 -2
  51. package/{chunk-VLX45P4L.js → chunk-SKWZFK56.js} +5 -5
  52. package/{chunk-K7AG465Q.js → chunk-SQDGTW2T.js} +4 -2
  53. package/{chunk-UJ63UXGE.js → chunk-TQC77XVE.js} +1 -1
  54. package/{chunk-FPTQQSS6.js → chunk-UFTOGLCE.js} +1 -1
  55. package/{chunk-TVDZABBT.js → chunk-V3B6FQKC.js} +13 -13
  56. package/{chunk-CMH2SYHX.js → chunk-VLQRD7ZJ.js} +2 -2
  57. package/{chunk-AAWBX67U.js → chunk-VOEOMLKR.js} +9 -9
  58. package/{chunk-SZLVDREM.js → chunk-WMRPXIZY.js} +1 -1
  59. package/{chunk-PUOC4YRO.js → chunk-XTJTN3RW.js} +4 -0
  60. package/{chunk-KIS76A2P.js → chunk-Y7PULBIA.js} +1 -1
  61. package/{chunk-SPQ7GSUX.js → chunk-Z3XXUE2E.js} +17 -17
  62. package/{chunk-HXAINXPQ.js → chunk-ZCVO2HLZ.js} +4 -4
  63. package/{chunk-PGSKWZCB.js → chunk-ZW22L5ES.js} +1 -1
  64. package/{codingSkills-E6KSDNSJ.js → codingSkills-DB4QPUND.js} +2 -2
  65. package/{contentThunks-VGXYTSKU.js → contentThunks-XV3U3V2O.js} +14 -14
  66. package/{createAgentAutomationAction-6YBZFLET.js → createAgentAutomationAction-UKKP6SAJ.js} +14 -14
  67. package/{createDialogAction-N7CTNKB5.js → createDialogAction-WK6Y7DD7.js} +16 -16
  68. package/{createPageAction-RXOOVKVO.js → createPageAction-SLRDORVZ.js} +14 -14
  69. package/{dbSlice-GKGGFNOB.js → dbSlice-WL5T2LVF.js} +2 -2
  70. package/{dialogCommands-PE5FEFJ5.js → dialogCommands-E5AAV7PB.js} +16 -16
  71. package/{dialogSlice-NLSKRXBN.js → dialogSlice-2TSABNK5.js} +13 -13
  72. package/{docCreateCommands-IPDFZVPG.js → docCreateCommands-N7P5VBTU.js} +16 -16
  73. package/{docDeleteCommands-VQ4Y66CM.js → docDeleteCommands-LZPPUYY6.js} +16 -16
  74. package/{docReadCommands-PD33VV27.js → docReadCommands-UCQGMMBR.js} +16 -16
  75. package/{docStore-CIAYE5WP.js → docStore-GX4LBBIB.js} +3 -3
  76. package/{docUpdateCommands-CGUQ2JY3.js → docUpdateCommands-H57EVVVE.js} +16 -16
  77. package/{getPricing-HRMSOF3E.js → getPricing-JRNHI5CV.js} +3 -3
  78. package/{handleSendMessageAction-ENUNMW3Z.js → handleSendMessageAction-DYAB4HTU.js} +13 -13
  79. package/index.js +47 -47
  80. package/{machineCommands-APIJY7UA.js → machineCommands-3Y3EHK2H.js} +36 -36
  81. package/{machineWsRunDispatch-42WKRDE7.js → machineWsRunDispatch-RSVSJ4D7.js} +36 -36
  82. package/{memberThunks-KATHH3F4.js → memberThunks-OBDDU3NR.js} +3 -3
  83. package/{models-GS72DVJS.js → models-NBVTQACP.js} +2 -2
  84. package/package.json +1 -1
  85. package/{read-LC6HVYBN.js → read-OOTHDABU.js} +1 -1
  86. package/{readDocTool-N3ERJHHF.js → readDocTool-OU4QXJT6.js} +1 -1
  87. package/{readlineWorkspace-MUV7VRD4.js → readlineWorkspace-7FZA4JYG.js} +37 -37
  88. package/{removeDialogAgentAction-F5GPTALR.js → removeDialogAgentAction-BVU6E27N.js} +4 -4
  89. package/{runAgentClientLoop-A4OXYOCL.js → runAgentClientLoop-VZCX37ZP.js} +30 -30
  90. package/{setDialogExtraReferencesAction-AY4ZCF3A.js → setDialogExtraReferencesAction-AUKADSTQ.js} +3 -3
  91. package/{setPrimaryDialogAgentAction-HPMG7V3R.js → setPrimaryDialogAgentAction-HMHZWURC.js} +4 -4
  92. package/{settingSlice-OEJA4NQO.js → settingSlice-HIQRILF5.js} +3 -3
  93. package/{spaceCommands-Y47DDAQD.js → spaceCommands-ANELRNRF.js} +16 -16
  94. package/{streamAgentChatTurn-YHKNJEFR.js → streamAgentChatTurn-QM364J6U.js} +34 -34
  95. package/{switchDialogAgentAction-HMDZTZ4I.js → switchDialogAgentAction-Y66ZTIGP.js} +2 -2
  96. package/{tools-S5RSWF3R.js → tools-YNRN4HC7.js} +24 -24
  97. package/{tuiSummaryLlmCaller-J5BEPLW5.js → tuiSummaryLlmCaller-ZGATEM35.js} +10 -10
  98. package/{updateDialogTitleAction-BU2VPE5B.js → updateDialogTitleAction-OOYKI7LI.js} +14 -14
@@ -29,7 +29,7 @@ import {
29
29
  toCompactAgentSummary,
30
30
  toSafeAgentSummary,
31
31
  toUnavailableAgentSummary
32
- } from "./chunk-FPTQQSS6.js";
32
+ } from "./chunk-UFTOGLCE.js";
33
33
  import {
34
34
  getUserDataItemTimestamp,
35
35
  mergeAndDedupUserData
@@ -40,7 +40,7 @@ import {
40
40
  readPageFunc,
41
41
  readPageFunctionSchema,
42
42
  slateToSimplifiedMarkdown
43
- } from "./chunk-UDQWGU7F.js";
43
+ } from "./chunk-5TJQUZQ7.js";
44
44
  import {
45
45
  addMemberSpace,
46
46
  fetchAuthoritativeRemoteSpace,
@@ -52,7 +52,7 @@ import {
52
52
  setMembershipRejected,
53
53
  setSpaceInitialized,
54
54
  updateMemberSpaceName
55
- } from "./chunk-PZM3EENV.js";
55
+ } from "./chunk-K647EQV3.js";
56
56
  import {
57
57
  ToolApiError,
58
58
  buildToolRequestHeaders,
@@ -63,7 +63,7 @@ import {
63
63
  } from "./chunk-OZX2IPKM.js";
64
64
  import {
65
65
  setDialogExtraReferencesAction
66
- } from "./chunk-4EJ5QYB5.js";
66
+ } from "./chunk-7JS3F5ZR.js";
67
67
  import {
68
68
  waitForAbortableDelay
69
69
  } from "./chunk-N4G4PKQ6.js";
@@ -81,14 +81,14 @@ import {
81
81
  } from "./chunk-VF4K2QE6.js";
82
82
  import {
83
83
  createDocState
84
- } from "./chunk-DQAEUZSQ.js";
84
+ } from "./chunk-PADUIVUU.js";
85
85
  import {
86
86
  BUILTIN_OBJECT_SKILL_IDS,
87
87
  buildBuiltinObjectSkillConfig,
88
88
  buildBuiltinObjectSkillDbKey,
89
89
  buildBuiltinObjectSkillPageContent,
90
90
  createDialogAction
91
- } from "./chunk-VLX45P4L.js";
91
+ } from "./chunk-SKWZFK56.js";
92
92
  import {
93
93
  DEFAULT_COLLAPSED_CATEGORIES,
94
94
  addContentToSpace,
@@ -106,7 +106,7 @@ import {
106
106
  updateContentCategory,
107
107
  updateContentTitle,
108
108
  writeStoredCollapsedCategories
109
- } from "./chunk-BLCUMZNV.js";
109
+ } from "./chunk-2L7EUBRN.js";
110
110
  import {
111
111
  getCurrentSpaceId,
112
112
  getCurrentSpaceIdRaw,
@@ -128,14 +128,14 @@ import {
128
128
  selectMsgById,
129
129
  uiAskChoiceFunc,
130
130
  uiAskChoiceFunctionSchema
131
- } from "./chunk-ZIUMSKK4.js";
131
+ } from "./chunk-C2SHPJSS.js";
132
132
  import {
133
133
  createAgent,
134
134
  deleteServerSyncedCredential,
135
135
  runLlm,
136
136
  streamAgentChatTurn,
137
137
  updateAgent
138
- } from "./chunk-F657NADX.js";
138
+ } from "./chunk-4ENGEYUY.js";
139
139
  import {
140
140
  getActiveDialogKey,
141
141
  selectCurrentDialogKey,
@@ -150,10 +150,10 @@ import {
150
150
  buildCodingSkillContentBySlug,
151
151
  buildCodingSkillId,
152
152
  buildCodingSkillPageKey
153
- } from "./chunk-3IT2PFHL.js";
153
+ } from "./chunk-RW76G3YN.js";
154
154
  import {
155
155
  CAPABILITY_PACKS
156
- } from "./chunk-MYU3MJCF.js";
156
+ } from "./chunk-AJF6YRN7.js";
157
157
  import {
158
158
  buildSkillDocMarkdown,
159
159
  normalizeSkillModalities,
@@ -184,10 +184,10 @@ import {
184
184
  } from "./chunk-CJCJF5XB.js";
185
185
  import {
186
186
  buildDatabaseFileContentUrl
187
- } from "./chunk-E36HZARC.js";
187
+ } from "./chunk-3E67YXGD.js";
188
188
  import {
189
189
  DEFAULT_MODEL
190
- } from "./chunk-UJ63UXGE.js";
190
+ } from "./chunk-TQC77XVE.js";
191
191
  import {
192
192
  compactWhitespace
193
193
  } from "./chunk-DWLEOOGR.js";
@@ -203,7 +203,7 @@ import {
203
203
  } from "./chunk-O6OSWFZQ.js";
204
204
  import {
205
205
  shareResourceAction
206
- } from "./chunk-SZLVDREM.js";
206
+ } from "./chunk-WMRPXIZY.js";
207
207
  import {
208
208
  AGENT_UPDATE_FIELD_NAMES,
209
209
  nolotusId,
@@ -211,7 +211,7 @@ import {
211
211
  selectAutoApproveSelfUpdateFields,
212
212
  selectCurrentServer,
213
213
  selectSyncServers
214
- } from "./chunk-XWNRAIUL.js";
214
+ } from "./chunk-OPNHMILE.js";
215
215
  import {
216
216
  asRecordOrEmpty
217
217
  } from "./chunk-KX6YBIHG.js";
@@ -219,7 +219,7 @@ import {
219
219
  UNCATEGORIZED_ID,
220
220
  addContentAction,
221
221
  checkSpaceMembership
222
- } from "./chunk-ZZCJUXUI.js";
222
+ } from "./chunk-IM5EETJX.js";
223
223
  import {
224
224
  createSpaceKey,
225
225
  normalizeSpaceId
@@ -234,7 +234,7 @@ import {
234
234
  selectEntities,
235
235
  toTimestampMs,
236
236
  write
237
- } from "./chunk-YFADVSZE.js";
237
+ } from "./chunk-4K6DB3GJ.js";
238
238
  import {
239
239
  SEPARATOR,
240
240
  TYPE_STORAGE_PREFIXES,
@@ -266,7 +266,7 @@ import {
266
266
  } from "./chunk-QSJ3HFEF.js";
267
267
  import {
268
268
  readAction
269
- } from "./chunk-5J7W2VWW.js";
269
+ } from "./chunk-4MKPBCTN.js";
270
270
  import {
271
271
  extractCustomId
272
272
  } from "./chunk-BJIRLHJR.js";
@@ -919,7 +919,7 @@ var HOSTED_EXEC_RUNTIME_TOOL_POLICY = {
919
919
  workspace: { mode: "lease" }
920
920
  };
921
921
  var findModelConfig = async (modelName, provider) => {
922
- const { ALL_MODELS } = await import("./models-GS72DVJS.js");
922
+ const { ALL_MODELS } = await import("./models-NBVTQACP.js");
923
923
  const name = toTrimmedString(modelName);
924
924
  const prov = toTrimmedString(provider ?? "");
925
925
  if (!name) return null;
@@ -1164,7 +1164,7 @@ var buildPlatformFormDataFromArgs = async (args) => {
1164
1164
  const trimmedModel = toTrimmedString(model);
1165
1165
  const trimmedProvider = toTrimmedString(provider);
1166
1166
  const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
1167
- const { getModelPricing } = await import("./getPricing-HRMSOF3E.js");
1167
+ const { getModelPricing } = await import("./getPricing-JRNHI5CV.js");
1168
1168
  const normalizedTools = tools ?? [];
1169
1169
  const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
1170
1170
  const formData = {
@@ -4672,7 +4672,7 @@ async function deleteDialogsFunc(args, thunkApi) {
4672
4672
  const deletedDialogIds = [];
4673
4673
  const deletedDialogKeys = [];
4674
4674
  const failures = [];
4675
- const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-NLSKRXBN.js");
4675
+ const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-2TSABNK5.js");
4676
4676
  for (const target of targets) {
4677
4677
  try {
4678
4678
  await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
@@ -4979,7 +4979,7 @@ var readSkillDocFunctionSchema = {
4979
4979
  }
4980
4980
  };
4981
4981
  async function readSkillDocFunc(args, thunkApi) {
4982
- const { buildReadDocResult } = await import("./readDocTool-N3ERJHHF.js");
4982
+ const { buildReadDocResult } = await import("./readDocTool-OU4QXJT6.js");
4983
4983
  const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
4984
4984
  if (typeof id !== "string" || !id.trim()) {
4985
4985
  throw new Error("readSkillDoc requires id or doc.");
@@ -5782,7 +5782,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
5782
5782
  const spaceKey = createSpaceKey.space(spaceId);
5783
5783
  const readSpace = async (dbKey) => {
5784
5784
  try {
5785
- const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-GKGGFNOB.js");
5785
+ const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-WL5T2LVF.js");
5786
5786
  if (fresh) {
5787
5787
  return await dispatch(readAndWait2(dbKey)).unwrap();
5788
5788
  }
@@ -9653,82 +9653,6 @@ async function wereadGatewayFunc(args, thunkApi) {
9653
9653
  return callToolApi(thunkApi, "/api/weread/gateway", args, { withAuth: true });
9654
9654
  }
9655
9655
 
9656
- // packages/ai/tools/watchCompletionTool.ts
9657
- var WATCH_COMPLETION_API_PATH = "/api/watch-completion";
9658
- var watchCompletionFunctionSchema = {
9659
- name: "watchCompletion",
9660
- description: "\u767B\u8BB0\u4E00\u6B21\u300C\u4EFB\u52A1\u5B8C\u6210\u8BA2\u9605\u300D\u540E\u7ACB\u5373\u8FD4\u56DE\uFF1A\u88AB\u8FFD\u8E2A\u7684 nolo-ci \u4EFB\u52A1\uFF08\u5982 push \u89E6\u53D1\u7684\u90E8\u7F72\uFF09\u5230\u8FBE\u7EC8\u6001\u65F6\uFF0C\u670D\u52A1\u7AEF\u4F1A\u81EA\u52A8\u5524\u9192\u672C\u5BF9\u8BDD\u5E76\u4EA4\u4ED8\u7ED3\u679C\u3002\u8C03\u7528\u540E\u4E0D\u8981\u8F6E\u8BE2\u72B6\u6001\u3001\u4E0D\u8981\u7B49\u5F85\u2014\u2014\u76F4\u63A5\u5411\u7528\u6237\u786E\u8BA4\u8BA2\u9605\u5DF2\u5EFA\u7ACB\u5373\u53EF\u3002ref \u4F20 jobId \u6216\u76EE\u6807 commit sha\uFF1Benvironment \u662F\u76EE\u6807\u90E8\u7F72\u73AF\u5883\u3002",
9661
- parameters: {
9662
- type: "object",
9663
- properties: {
9664
- kind: {
9665
- type: "string",
9666
- enum: ["nolo-ci-job"],
9667
- description: "\u8BA2\u9605\u6765\u6E90\u7C7B\u578B\u3002\u5F53\u524D\u652F\u6301 nolo-ci-job\uFF08push \u89E6\u53D1\u7684 nolo-ci \u90E8\u7F72/\u53D1\u5E03\u4EFB\u52A1\uFF09\u3002"
9668
- },
9669
- ref: {
9670
- type: "string",
9671
- description: "\u7CBE\u786E\u8FFD\u8E2A\u76EE\u6807\uFF1Anolo-ci \u7684 jobId\uFF0C\u6216\u671F\u671B\u4E0A\u7EBF\u7684 commit sha\uFF08\u5B8C\u6574\u6216 \u22657 \u4F4D\u77ED sha\uFF09\u3002"
9672
- },
9673
- environment: {
9674
- type: "string",
9675
- enum: ["alpha", "main"],
9676
- description: "\u76EE\u6807\u73AF\u5883\uFF1Aalpha\uFF08us.nolo.chat\uFF09\u6216 main\uFF08nolo.chat\uFF09\u3002"
9677
- }
9678
- },
9679
- required: ["kind", "ref", "environment"]
9680
- }
9681
- };
9682
- var normalizeArgs = (rawArgs) => ({
9683
- kind: typeof rawArgs?.kind === "string" ? rawArgs.kind.trim() : "",
9684
- ref: typeof rawArgs?.ref === "string" ? rawArgs.ref.trim() : "",
9685
- environment: typeof rawArgs?.environment === "string" ? rawArgs.environment.trim() : ""
9686
- });
9687
- var findMissingWatchCompletionArg = (args) => !args.kind ? "kind" : !args.ref ? "ref" : !args.environment ? "environment" : null;
9688
- function buildWatchCompletionRequestBody(args) {
9689
- const body = {
9690
- kind: args.kind,
9691
- ref: args.ref,
9692
- environment: args.environment
9693
- };
9694
- const parentDialogId = typeof args.dialogId === "string" && args.dialogId.trim() || null;
9695
- if (parentDialogId) body.parentDialogId = parentDialogId;
9696
- return body;
9697
- }
9698
- async function watchCompletionFunc(rawArgs, thunkApi, context) {
9699
- const args = normalizeArgs(rawArgs);
9700
- const invalid = findMissingWatchCompletionArg(args);
9701
- if (invalid) {
9702
- const display = `watchCompletion: \u7F3A\u5C11\u5FC5\u586B\u53C2\u6570 ${invalid}\u3002`;
9703
- return { rawData: { ok: false, error: display }, displayData: display };
9704
- }
9705
- const body = buildWatchCompletionRequestBody({
9706
- kind: args.kind,
9707
- ref: args.ref,
9708
- environment: args.environment,
9709
- dialogId: typeof context?.dialogId === "string" ? context.dialogId : null
9710
- });
9711
- try {
9712
- const data = await callToolApi(
9713
- thunkApi,
9714
- WATCH_COMPLETION_API_PATH,
9715
- body,
9716
- { withAuth: true }
9717
- );
9718
- if (!data?.ok) {
9719
- const display = `watchCompletion: \u8BA2\u9605\u767B\u8BB0\u5931\u8D25${data?.error ? `\uFF1A${data.error}` : "\u3002"}`;
9720
- return { rawData: data ?? { ok: false }, displayData: display };
9721
- }
9722
- return {
9723
- rawData: data,
9724
- displayData: data.message ?? "\u2705 \u5DF2\u767B\u8BB0\u4EFB\u52A1\u5B8C\u6210\u8BA2\u9605\uFF0C\u4EFB\u52A1\u7EC8\u6001\u540E\u672C\u5BF9\u8BDD\u4F1A\u88AB\u81EA\u52A8\u5524\u9192\u3002\u7B49\u5F85\u671F\u95F4\u65E0\u9700\u8F6E\u8BE2\u3002"
9725
- };
9726
- } catch (error) {
9727
- const display = `watchCompletion: \u8BA2\u9605\u767B\u8BB0\u8BF7\u6C42\u5931\u8D25\uFF1A${error?.message ?? String(error)}`;
9728
- return { rawData: { ok: false, error: display }, displayData: display };
9729
- }
9730
- }
9731
-
9732
9656
  // packages/ai/tools/browserTools/common.ts
9733
9657
  async function executeBrowserTool(toolName, parameters, thunkApi) {
9734
9658
  try {
@@ -11584,7 +11508,7 @@ var selectUserIdFromState = (state2) => {
11584
11508
  var selectCurrentServerFromState = (state2) => typeof state2?.settings?.currentServer === "string" ? state2.settings.currentServer : null;
11585
11509
  async function addImageContentToSpace(input) {
11586
11510
  const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
11587
- const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-XAPUTGL4.js")).addContentAction;
11511
+ const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-E3S6F3IS.js")).addContentAction;
11588
11512
  await addContentAction2(
11589
11513
  {
11590
11514
  spaceId: input.spaceId,
@@ -15505,7 +15429,7 @@ var executeToolRun = createAsyncThunk(
15505
15429
  if (!executionInput) {
15506
15430
  throw new Error(`ToolRun ${id} has no input to execute with.`);
15507
15431
  }
15508
- const { findToolExecutor: findToolExecutor2 } = await import("./tools-S5RSWF3R.js");
15432
+ const { findToolExecutor: findToolExecutor2 } = await import("./tools-YNRN4HC7.js");
15509
15433
  const { executor } = findToolExecutor2(run.toolName);
15510
15434
  toolRunStarted({
15511
15435
  id: run.id,
@@ -15529,7 +15453,7 @@ var executeToolRun = createAsyncThunk(
15529
15453
  const latestState = thunkApi.getState();
15530
15454
  const userId = selectIdentityUserId(latestState);
15531
15455
  if (userId) {
15532
- const { fetchUserSpaceMemberships } = await import("./memberThunks-KATHH3F4.js");
15456
+ const { fetchUserSpaceMemberships } = await import("./memberThunks-OBDDU3NR.js");
15533
15457
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
15534
15458
  }
15535
15459
  }
@@ -18012,7 +17936,7 @@ async function updateDocFunc(args, thunkApi) {
18012
17936
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
18013
17937
  };
18014
17938
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
18015
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-CIAYE5WP.js");
17939
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-GX4LBBIB.js");
18016
17940
  if (getDocState().pageKey === id) {
18017
17941
  applyExternalDocUpdate({
18018
17942
  slateData: finalSlateData,
@@ -18037,7 +17961,7 @@ async function updateDocFunc(args, thunkApi) {
18037
17961
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
18038
17962
  async function dispatchSetSettings(thunkApi, changes) {
18039
17963
  const injectedSetSettings = thunkApi?.extra?.setSettings;
18040
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-OEJA4NQO.js")).setSettings;
17964
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-HIQRILF5.js")).setSettings;
18041
17965
  await thunkApi.dispatch(setSettings(changes)).unwrap();
18042
17966
  }
18043
17967
  var updateUserPreferenceProfileFunctionSchema = {
@@ -19960,18 +19884,6 @@ var baseToolDefinitions = [
19960
19884
  behavior: "data",
19961
19885
  uiGroup: "general"
19962
19886
  },
19963
- {
19964
- id: "watchCompletion",
19965
- schema: watchCompletionFunctionSchema,
19966
- executor: watchCompletionFunc,
19967
- description: {
19968
- name: "watchCompletion",
19969
- description: "\u767B\u8BB0\u4E00\u6B21\u4E1A\u52A1\u7EC8\u6001\u8BA2\u9605\uFF08nolo-ci \u90E8\u7F72\u4EFB\u52A1\u7B49\uFF09\uFF0C\u4EFB\u52A1\u7ED3\u675F\u65F6\u81EA\u52A8\u5524\u9192\u672C\u5BF9\u8BDD\u4EA4\u4ED8\u7ED3\u679C\uFF0C\u7B49\u5F85\u671F\u95F4\u96F6\u8F6E\u8BE2\u3002",
19970
- category: "\u5E94\u7528\u90E8\u7F72"
19971
- },
19972
- behavior: "data",
19973
- uiGroup: "general"
19974
- },
19975
19887
  {
19976
19888
  id: "appList",
19977
19889
  schema: appListFunctionSchema,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  selectCurrentServer
3
- } from "./chunk-XWNRAIUL.js";
3
+ } from "./chunk-OPNHMILE.js";
4
4
  import {
5
5
  patch
6
- } from "./chunk-YFADVSZE.js";
6
+ } from "./chunk-4K6DB3GJ.js";
7
7
  import {
8
8
  getIsDesktopApp
9
9
  } from "./chunk-QOKAKDPE.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  patch,
9
9
  selectById
10
- } from "./chunk-YFADVSZE.js";
10
+ } from "./chunk-4K6DB3GJ.js";
11
11
  import {
12
12
  __toESM
13
13
  } from "./chunk-4VNS5WPM.js";
@@ -75,11 +75,7 @@ var TOOL_PACKS = {
75
75
  "taskWait",
76
76
  "taskLogs",
77
77
  "taskStop",
78
- "tasks",
79
- // watchCompletion:push 后登记「业务终态订阅」,部署结束时服务端唤醒父对话
80
- // (等待期间 0 轮询 0 token)。与代码工作流同链路(push → CI → 通知),随
81
- // 「代码执行」能力包走。
82
- "watchCompletion"
78
+ "tasks"
83
79
  ],
84
80
  // 表格读写。唯一真相源——app-builder 能力包与 table object skill 都从这里取,
85
81
  // 以前两边各抄一份,改一个忘另一个就会静默不同步。
@@ -11,7 +11,7 @@ import {
11
11
  getAntigravityUserAgent,
12
12
  normalizeAntigravityTokenPayload,
13
13
  refreshAntigravityToken
14
- } from "./chunk-PGSKWZCB.js";
14
+ } from "./chunk-ZW22L5ES.js";
15
15
  import {
16
16
  writeOAuthCredential
17
17
  } from "./chunk-ONXOABJR.js";
@@ -13,10 +13,10 @@ import {
13
13
  } from "./chunk-AGGIDPCZ.js";
14
14
  import {
15
15
  runLlm
16
- } from "./chunk-F657NADX.js";
16
+ } from "./chunk-4ENGEYUY.js";
17
17
  import {
18
18
  cleanupCliSessionForDialog
19
- } from "./chunk-BJCWNHVU.js";
19
+ } from "./chunk-76JAMDUT.js";
20
20
  import {
21
21
  getActiveDialogAgentId,
22
22
  getDialogAgentIds,
@@ -54,7 +54,7 @@ import {
54
54
  getModelInfo,
55
55
  normalizeUsage,
56
56
  resolveAutoExecutionProfile
57
- } from "./chunk-DSRXPQWA.js";
57
+ } from "./chunk-2XENHR3P.js";
58
58
  import {
59
59
  COMPACTION_SUMMARY_SYSTEM_PROMPT,
60
60
  buildCompactionMetricsFromPlan,
@@ -65,11 +65,11 @@ import {
65
65
  normalizeAssistantContentBuffer,
66
66
  planCompression,
67
67
  serializeMessageContent
68
- } from "./chunk-E36HZARC.js";
68
+ } from "./chunk-3E67YXGD.js";
69
69
  import {
70
70
  findModelConfig,
71
71
  getModelConfig
72
- } from "./chunk-UJ63UXGE.js";
72
+ } from "./chunk-TQC77XVE.js";
73
73
  import {
74
74
  toErrorMessage
75
75
  } from "./chunk-HNMXYYJR.js";
@@ -80,14 +80,16 @@ import {
80
80
  PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
81
81
  PLATFORM_HOSTED_DEEPSEEK_PRO_MODEL,
82
82
  PLATFORM_HOSTED_GLM_53_FLASH_BASETEN_PRICE,
83
+ PLATFORM_HOSTED_GLM_53_FLASH_MODEL,
83
84
  getPlatformHostedDeepSeekV4Price,
85
+ isPlatformHostedClaudeModel,
84
86
  isPlatformHostedDeepSeekV4Model,
85
87
  isPlatformHostedImageModel,
86
88
  isPlatformHostedOpenAIImageModel
87
- } from "./chunk-AJHEFRGJ.js";
89
+ } from "./chunk-5YIL5WDC.js";
88
90
  import {
89
91
  nolotusId
90
- } from "./chunk-XWNRAIUL.js";
92
+ } from "./chunk-OPNHMILE.js";
91
93
  import {
92
94
  asRecordOrEmpty
93
95
  } from "./chunk-KX6YBIHG.js";
@@ -97,7 +99,7 @@ import {
97
99
  remove,
98
100
  selectById,
99
101
  write
100
- } from "./chunk-YFADVSZE.js";
102
+ } from "./chunk-4K6DB3GJ.js";
101
103
  import {
102
104
  buildDialogAgentListIndexDeleteOps,
103
105
  createDialogMessageKeyAndId,
@@ -119,7 +121,7 @@ import {
119
121
  builtinAgentCatalogEntryById,
120
122
  builtinRuntimeFallbackEntries,
121
123
  isBuiltinPlatformAgentKey
122
- } from "./chunk-5J7W2VWW.js";
124
+ } from "./chunk-4MKPBCTN.js";
123
125
  import {
124
126
  extractCustomId,
125
127
  extractUserId,
@@ -17086,7 +17088,7 @@ var messageSlice = createSliceWithThunks({
17086
17088
  runtimeOptions: args.runtimeOptions
17087
17089
  });
17088
17090
  if (agentKeyToUse) {
17089
- const { streamAgentChatTurn } = await import("./agentSlice-ZPODGT3P.js");
17091
+ const { streamAgentChatTurn } = await import("./agentSlice-K5IE7FV3.js");
17090
17092
  await dispatch(
17091
17093
  streamAgentChatTurn({
17092
17094
  agentKey: agentKeyToUse,
@@ -17395,20 +17397,15 @@ var calculateBasicCost = (model, usage, provider, externalPrice, billingServiceT
17395
17397
  switch (provider) {
17396
17398
  case "deepseek":
17397
17399
  case "openai":
17400
+ case "deepinfra":
17398
17401
  case "runinfra":
17399
17402
  case "baseten":
17400
17403
  return calculateCacheBasedCost(resolvedPrice, usage, externalPrice);
17401
- // deepinfra:多数模型带上游缓存价(走 cache-hit 折扣);无缓存价的模型
17402
- // (如 Claude 系,rate_per_input_token_cached=null)必须把 cache_read 按
17403
- // input 全价计——calculateCacheBasedCost 在缺 inputCacheHit 时取 0 价,
17404
- // 会把缓存 token 打成免费。与 nolo 组同一防御。
17405
- case "deepinfra":
17406
- return typeof resolvedPrice.inputCacheHit === "number" ? calculateCacheBasedCost(resolvedPrice, usage, externalPrice) : calculateSimpleCost(resolvedPrice, usage, externalPrice);
17407
- // nolo: honor inputCacheHit only when the model defines it (K3 has
17408
17404
  // without it keep simple full-price billing so cached tokens are not
17409
17405
  // priced at 0 — but a platform-hosted model用于 agentic 循环时必须补上
17410
17406
  // 这一项,否则每轮重放的上下文会被按 input 原价重复计费。
17411
17407
  case "nolo":
17408
+ case "upstream-k3":
17412
17409
  return typeof resolvedPrice.inputCacheHit === "number" ? calculateCacheBasedCost(resolvedPrice, usage, externalPrice) : calculateSimpleCost(resolvedPrice, usage, externalPrice);
17413
17410
  case "anthropic":
17414
17411
  return calculateAnthropicCost(resolvedPrice, usage, externalPrice);
@@ -17528,6 +17525,19 @@ var calculatePrice = ({
17528
17525
  const pay3 = calculatePayDistribution(costs3, externalPrice, sharingLevel);
17529
17526
  return { cost: sanitizeCost(costs3.charge), pay: pay3 };
17530
17527
  }
17528
+ if (provider === "nolo" && isPlatformHostedClaudeModel(modelName)) {
17529
+ const compatModel = getModelConfig("nolo", PLATFORM_HOSTED_GLM_53_FLASH_MODEL);
17530
+ const costs3 = calculateBasicCost(
17531
+ compatModel,
17532
+ usage,
17533
+ provider,
17534
+ externalPrice,
17535
+ billingServiceTier,
17536
+ nowMs
17537
+ );
17538
+ const pay3 = calculatePayDistribution(costs3, externalPrice, sharingLevel);
17539
+ return { cost: sanitizeCost(costs3.charge), pay: pay3 };
17540
+ }
17531
17541
  const zeroCostModel = {
17532
17542
  name: modelName,
17533
17543
  hasVision: false,
@@ -18219,7 +18229,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
18219
18229
  }
18220
18230
  if (isCurrentDialog) {
18221
18231
  await thunkApi.dispatch(resetMsgs());
18222
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-NLSKRXBN.js");
18232
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-2TSABNK5.js");
18223
18233
  dispatch(clearPendingAttachments2());
18224
18234
  }
18225
18235
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -18227,39 +18237,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
18227
18237
 
18228
18238
  // packages/chat/dialog/dialogSlice.ts
18229
18239
  var runCreateDialogAction = async (args, thunkApi) => {
18230
- const { createDialogAction } = await import("./createDialogAction-N7CTNKB5.js");
18240
+ const { createDialogAction } = await import("./createDialogAction-WK6Y7DD7.js");
18231
18241
  return createDialogAction(args, thunkApi);
18232
18242
  };
18233
18243
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
18234
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-6YBZFLET.js");
18244
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-UKKP6SAJ.js");
18235
18245
  return createAgentAutomationAction(args, thunkApi);
18236
18246
  };
18237
18247
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
18238
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-BU2VPE5B.js");
18248
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-OOYKI7LI.js");
18239
18249
  return updateDialogTitleAction(args, thunkApi);
18240
18250
  };
18241
18251
  var runAddDialogAgentAction = async (args, thunkApi) => {
18242
- const { addDialogAgentAction } = await import("./addDialogAgentAction-M7VLLBZM.js");
18252
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-EUBNJ5SS.js");
18243
18253
  return addDialogAgentAction(args, thunkApi);
18244
18254
  };
18245
18255
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
18246
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-F5GPTALR.js");
18256
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-BVU6E27N.js");
18247
18257
  return removeDialogAgentAction(args, thunkApi);
18248
18258
  };
18249
18259
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
18250
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-HPMG7V3R.js");
18260
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-HMHZWURC.js");
18251
18261
  return setPrimaryDialogAgentAction(args, thunkApi);
18252
18262
  };
18253
18263
  var runSwitchDialogAgentAction = async (args, thunkApi) => {
18254
- const { switchDialogAgentAction } = await import("./switchDialogAgentAction-HMDZTZ4I.js");
18264
+ const { switchDialogAgentAction } = await import("./switchDialogAgentAction-Y66ZTIGP.js");
18255
18265
  return switchDialogAgentAction(args, thunkApi);
18256
18266
  };
18257
18267
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
18258
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-AY4ZCF3A.js");
18268
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-AUKADSTQ.js");
18259
18269
  return setDialogExtraReferencesAction(args, thunkApi);
18260
18270
  };
18261
18271
  var runHandleSendMessageAction = async (args, thunkApi) => {
18262
- const { handleSendMessageAction } = await import("./handleSendMessageAction-ENUNMW3Z.js");
18272
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-DYAB4HTU.js");
18263
18273
  return handleSendMessageAction(args, thunkApi);
18264
18274
  };
18265
18275
  function clearDialogState() {
@@ -18272,7 +18282,7 @@ var createPageAndAddReference = createAsyncThunk(
18272
18282
  async (payload, { dispatch, getState, rejectWithValue }) => {
18273
18283
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
18274
18284
  try {
18275
- const { createDocState } = await import("./docStore-CIAYE5WP.js");
18285
+ const { createDocState } = await import("./docStore-GX4LBBIB.js");
18276
18286
  const pageKey = await createDocState(
18277
18287
  { slateData, title },
18278
18288
  { dispatch, getState }
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  patch,
6
6
  read
7
- } from "./chunk-YFADVSZE.js";
7
+ } from "./chunk-4K6DB3GJ.js";
8
8
  import {
9
9
  DEVICE_LOCAL_OWNER_ID,
10
10
  isDeviceLocalSpaceBody
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  deriveCredentialGroup,
10
10
  toSafeAgentSummary
11
- } from "./chunk-FPTQQSS6.js";
11
+ } from "./chunk-UFTOGLCE.js";
12
12
  import {
13
13
  PUBLIC_AGENT_KEY_PREFIX,
14
14
  isOwnedAgentKey,