nolo-cli 0.14.0-alpha.6 → 0.14.0-alpha.9

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 (71) hide show
  1. package/{_executeModel-BDNT3M7C.js → _executeModel-OQ6KPFSB.js} +13 -13
  2. package/{agentDeleteCommand-AZDVM4HQ.js → agentDeleteCommand-UBXH2FDO.js} +9 -9
  3. package/{agentEmailCommands-HR5GNO5Z.js → agentEmailCommands-ZI2FIUBV.js} +18 -18
  4. package/{agentGrantCommands-B4MB23VQ.js → agentGrantCommands-JMTM6U4B.js} +1 -1
  5. package/{agentListCommands-OJLOXSKL.js → agentListCommands-7M6FHCSH.js} +10 -10
  6. package/{agentMachineCommands-5UMPWDEZ.js → agentMachineCommands-R3FW62QH.js} +9 -9
  7. package/{agentPullCommand-KRBRIFIY.js → agentPullCommand-UXANSFU3.js} +1 -1
  8. package/{agentRecordCommands-27XJHS6U.js → agentRecordCommands-WUY3C3HZ.js} +18 -18
  9. package/{agentRunCommand-USJDTEHC.js → agentRunCommand-CWXYVYPZ.js} +18 -18
  10. package/{agentRunControl-IX4F5W2C.js → agentRunControl-6ADXVYMR.js} +2 -2
  11. package/{agentRuntimeLocal-DSUBT77I.js → agentRuntimeLocal-BONMVACL.js} +5 -5
  12. package/{agentSlice-6FLDYJ5L.js → agentSlice-IHOSTSWC.js} +1 -1
  13. package/{authCommand-66ME4KZX.js → authCommand-IKIU4FZY.js} +2 -2
  14. package/{authCommands-GH5T6RYV.js → authCommands-QP43ADV3.js} +2 -2
  15. package/{chunk-VQFY3VXW.js → chunk-2ROIXEDX.js} +2 -1
  16. package/{chunk-PB2DHBEQ.js → chunk-3AE4NQ5O.js} +1 -1
  17. package/{chunk-QWQLEBOR.js → chunk-7VKJDLPO.js} +1 -1
  18. package/{chunk-5NBHQD4D.js → chunk-A7GB5UGH.js} +1 -1
  19. package/{chunk-TQCONXQ3.js → chunk-CDQ2ICPR.js} +1 -1
  20. package/{chunk-RZALKBP4.js → chunk-CXLGUR7M.js} +2 -2
  21. package/{chunk-TLNEQI2R.js → chunk-CY4TAX6S.js} +2 -2
  22. package/{chunk-RW3RYRDZ.js → chunk-DUE6E46E.js} +6 -6
  23. package/{chunk-7LQV6SPR.js → chunk-FVGJNXPJ.js} +19 -15
  24. package/{chunk-B5OCTKY4.js → chunk-GGHFCK3X.js} +85 -35
  25. package/{chunk-OHEKYYJF.js → chunk-HBRZXXP5.js} +1 -1
  26. package/{chunk-UW3WOIWJ.js → chunk-JHFMRUGX.js} +1 -1
  27. package/{chunk-7JJCGV7N.js → chunk-K6EUAOW3.js} +1 -1
  28. package/{chunk-5R6K4O2K.js → chunk-KUDUXBNE.js} +23 -13
  29. package/{chunk-H7RWYDJI.js → chunk-MEXNTURY.js} +1 -1
  30. package/{chunk-4ON5AV72.js → chunk-MYMMNKYL.js} +1 -1
  31. package/{chunk-TVDTAB3M.js → chunk-NFHGY5T5.js} +3 -3
  32. package/{chunk-QMGMBQCE.js → chunk-NSZB7BYV.js} +3 -3
  33. package/{chunk-AOVMTFWV.js → chunk-P6DRYHVM.js} +10 -8
  34. package/{chunk-OIMX7MM4.js → chunk-QLO2G5HP.js} +1 -1
  35. package/{chunk-YZ2YZTE3.js → chunk-QNXEDF7V.js} +2 -2
  36. package/{chunk-KTFJUPDW.js → chunk-SRKNB2WB.js} +31 -31
  37. package/{chunk-K5X6VB6K.js → chunk-SW3Q2OV5.js} +11 -10
  38. package/{chunk-33K5FKRL.js → chunk-SZ7RUWAQ.js} +17 -5
  39. package/{chunk-XIDYAII4.js → chunk-U4J6ZZFY.js} +2 -2
  40. package/{chunk-7BZOSM2E.js → chunk-UONU6Q4P.js} +1 -1
  41. package/{chunk-P4ULL2AV.js → chunk-YDOTMXTK.js} +4 -4
  42. package/{chunk-5R73BS7Y.js → chunk-YG3CCS7C.js} +2 -2
  43. package/{chunk-4UUJFFMK.js → chunk-YQAG2J2T.js} +1 -1
  44. package/{cliEnvHelpers-VYC2OPTB.js → cliEnvHelpers-ZXNMX7VV.js} +1 -1
  45. package/{createAgentAutomationAction-7K5UGUTT.js → createAgentAutomationAction-W4OZQ63I.js} +2 -2
  46. package/{createDialogAction-QOWFWYK6.js → createDialogAction-G6XQLPAN.js} +3 -3
  47. package/{createPageAction-6GXB676B.js → createPageAction-RNT4LCAX.js} +2 -2
  48. package/{dialogCommands-BQDGLVMO.js → dialogCommands-YUTOCICO.js} +10 -10
  49. package/{dialogSlice-JNJLLNVG.js → dialogSlice-QZZF4JXD.js} +2 -2
  50. package/{docCreateCommands-K2MPMXYF.js → docCreateCommands-LQYOVE7D.js} +9 -9
  51. package/{docDeleteCommands-NBAARB77.js → docDeleteCommands-LNS5V76K.js} +10 -10
  52. package/{docReadCommands-S3MO5RPS.js → docReadCommands-IRCP66BG.js} +9 -9
  53. package/{docStore-EAYEABFN.js → docStore-66Q4JTTG.js} +3 -3
  54. package/{docUpdateCommands-EHEI7FCE.js → docUpdateCommands-4VUX3Q7W.js} +9 -9
  55. package/{handleSendMessageAction-FCVAJBHI.js → handleSendMessageAction-CB5UKK2X.js} +2 -2
  56. package/index.js +77 -77
  57. package/{machineCommands-EB6JTZMM.js → machineCommands-PX2BADIB.js} +17 -17
  58. package/{machineWsRunDispatch-L3ZC55NE.js → machineWsRunDispatch-IBNCRCEQ.js} +17 -17
  59. package/{memoryCommands-AFMES3LN.js → memoryCommands-EBMICQR6.js} +1 -1
  60. package/package.json +1 -1
  61. package/{readlineWorkspace-ZBG7ZV2C.js → readlineWorkspace-YIXJ2OOO.js} +51 -31
  62. package/{runAgentClientLoop-JXGJA2JD.js → runAgentClientLoop-BXMDAQB2.js} +10 -10
  63. package/{runtimeDoctorCommands-QNF3J3UV.js → runtimeDoctorCommands-THIHX2SY.js} +1 -1
  64. package/{spaceCommands-4R63UST3.js → spaceCommands-7Z6DZFEE.js} +9 -9
  65. package/{spaceSlice-KMUD3BJT.js → spaceSlice-3GLIRD3Q.js} +2 -2
  66. package/{streamAgentChatTurn-ZR67N6BK.js → streamAgentChatTurn-SN7YS2VV.js} +12 -12
  67. package/{tableCommands-E4SQWDOX.js → tableCommands-V5O7QMXY.js} +1 -1
  68. package/{tools-5FAAMWSC.js → tools-4JSNWHIK.js} +5 -5
  69. package/{tuiSummaryLlmCaller-2D65LKWM.js → tuiSummaryLlmCaller-PS5BDLHV.js} +2 -2
  70. package/{updateCommands-XZDOOYFH.js → updateCommands-XTW55TOT.js} +2 -2
  71. package/{updateDialogTitleAction-XGO6IWI6.js → updateDialogTitleAction-DUJ2JZXX.js} +2 -2
@@ -34,10 +34,10 @@ import {
34
34
  } from "./chunk-VF4K2QE6.js";
35
35
  import {
36
36
  createDocState
37
- } from "./chunk-YZ2YZTE3.js";
37
+ } from "./chunk-QNXEDF7V.js";
38
38
  import {
39
39
  createDialogAction
40
- } from "./chunk-QWQLEBOR.js";
40
+ } from "./chunk-7VKJDLPO.js";
41
41
  import {
42
42
  buildSkillDocMarkdown,
43
43
  normalizeSkillBudgetTier,
@@ -76,13 +76,13 @@ import {
76
76
  updateContentCategory,
77
77
  updateContentTitle,
78
78
  updateStep
79
- } from "./chunk-K5X6VB6K.js";
79
+ } from "./chunk-SW3Q2OV5.js";
80
80
  import {
81
81
  createAgent,
82
82
  runLlm,
83
83
  streamAgentChatTurn,
84
84
  updateAgent
85
- } from "./chunk-TVDTAB3M.js";
85
+ } from "./chunk-NFHGY5T5.js";
86
86
  import {
87
87
  NOLO_WORKSPACE_TOOL_NAMES,
88
88
  buildNoloSubjectRefQueryTarget,
@@ -5445,6 +5445,8 @@ var interface_locale_default = {
5445
5445
  // === End Welcome Section ===
5446
5446
  quickChat: {
5447
5447
  greeting: "What are we working on today?",
5448
+ workspace: "Workspace",
5449
+ workspaceUnset: "Not set",
5448
5450
  placeholder: "I'm {{name}}. Want to chat? You can also switch AI or set up a partner in settings.",
5449
5451
  uploadImage: "Upload Image",
5450
5452
  failedToStart: "Failed to start",
@@ -6670,6 +6672,8 @@ var interface_locale_default = {
6670
6672
  // === End Welcome Section ===
6671
6673
  quickChat: {
6672
6674
  greeting: "\u4ECA\u5929\u4E00\u8D77\u505A\u4EC0\u4E48\uFF1F",
6675
+ workspace: "\u5DE5\u4F5C\u533A",
6676
+ workspaceUnset: "\u672A\u8BBE\u7F6E",
6673
6677
  placeholder: "\u6211\u662F {{name}}\u3002\u60F3\u8DDF\u6211\u804A\u804A\u5417\uFF1F\u4E5F\u53EF\u4EE5\u5728\u8BBE\u7F6E\u91CC\u5207\u6362 AI \u6216\u914D\u4E00\u4E2A\u642D\u6863",
6674
6678
  uploadImage: "\u4E0A\u4F20\u56FE\u7247",
6675
6679
  failedToStart: "\u542F\u52A8\u5931\u8D25",
@@ -7895,6 +7899,8 @@ var interface_locale_default = {
7895
7899
  // === End Welcome Section ===
7896
7900
  quickChat: {
7897
7901
  greeting: "\u4ECA\u5929\u4E00\u8D77\u505A\u4EC0\u9EBC\uFF1F",
7902
+ workspace: "\u5DE5\u4F5C\u5340",
7903
+ workspaceUnset: "\u672A\u8A2D\u5B9A",
7898
7904
  placeholder: "\u6211\u662F {{name}}\u3002\u60F3\u8DDF\u6211\u804A\u804A\u5417\uFF1F\u4F60\u4E5F\u53EF\u4EE5\u5728\u8BBE\u7F6E\u91CC\u5207\u6362 AI \u6216\u5B9A\u5236\u4F60\u7684\u4E13\u5C5E AI",
7899
7905
  uploadImage: "\u4E0A\u50B3\u5716\u7247",
7900
7906
  failedToStart: "\u555F\u52D5\u5931\u6557",
@@ -14149,7 +14155,7 @@ async function deleteDialogsFunc(args, thunkApi) {
14149
14155
  const deletedDialogIds = [];
14150
14156
  const deletedDialogKeys = [];
14151
14157
  const failures = [];
14152
- const { deleteDialog } = await import("./dialogSlice-JNJLLNVG.js");
14158
+ const { deleteDialog } = await import("./dialogSlice-QZZF4JXD.js");
14153
14159
  for (const target of targets) {
14154
14160
  try {
14155
14161
  await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
@@ -21987,7 +21993,7 @@ var startAgentRunFunctionSchema = {
21987
21993
  properties: {
21988
21994
  agentKey: {
21989
21995
  type: "string",
21990
- description: "\u8981\u542F\u52A8\u7684 Agent \u7684\u53EF\u8FD0\u884C dbKey\uFF08\u4F18\u5148\u4F7F\u7528 readAgent \u8FD4\u56DE\u7684 agentKey\uFF0C\u683C\u5F0F\u5982 agent-xxx\uFF09\u3002"
21996
+ description: "\u8981\u542F\u52A8\u7684 Agent \u7684\u53EF\u8FD0\u884C dbKey\uFF08\u4F18\u5148\u4F7F\u7528 readAgent \u8FD4\u56DE\u7684 agentKey\uFF0C\u683C\u5F0F\u5982 agent-xxx\uFF09\u3002\u5982\u679C\u5DF2\u901A\u8FC7 listAgents/readAgent \u83B7\u53D6\u540D\u79F0\uFF0C\u8BF7\u540C\u65F6\u4F20 agentName\u3002"
21991
21997
  },
21992
21998
  task: {
21993
21999
  type: "string",
@@ -21995,13 +22001,17 @@ var startAgentRunFunctionSchema = {
21995
22001
  },
21996
22002
  input: {
21997
22003
  description: "\u53EF\u9009\u3002JSON \u6216\u5B57\u7B26\u4E32\uFF0C\u4F5C\u4E3A\u672C\u6B21\u5B50\u4EFB\u52A1\u7684\u9644\u52A0\u8F93\u5165\uFF08\u5982\u6293\u53D6\u5230\u7684\u539F\u59CB\u6570\u636E\u3001\u4E0A\u4E0B\u6587\u7247\u6BB5\u7B49\uFF09\u3002"
22004
+ },
22005
+ agentName: {
22006
+ type: "string",
22007
+ description: "\u53EF\u9009\u3002\u7531 listAgents/readAgent \u5F97\u5230\u7684\u53EF\u8BFB Agent \u540D\u79F0\uFF0C\u7528\u4E8E TUI \u8FD0\u884C\u5361\u7247\u5C55\u793A\u3002"
21998
22008
  }
21999
22009
  },
22000
22010
  required: ["agentKey", "task"]
22001
22011
  }
22002
22012
  };
22003
22013
  async function startAgentRunFunc(args, thunkApi, _context) {
22004
- const { agentKey, task, input } = args;
22014
+ const { agentKey, task, input, agentName } = args;
22005
22015
  const { dispatch } = thunkApi;
22006
22016
  if (!agentKey) {
22007
22017
  throw new Error("startAgentRun: \u7F3A\u5C11 agentKey \u53C2\u6570\u3002");
@@ -22023,14 +22033,14 @@ async function startAgentRunFunc(args, thunkApi, _context) {
22023
22033
  ).unwrap();
22024
22034
  const runId = bgResult.dialogId;
22025
22035
  const status = bgResult.status ?? "pending";
22026
- const name = bgResult.agentName || bgResult.name || "agent";
22036
+ const displayName = agentName?.trim() || bgResult.agentName || bgResult.name || "agent";
22027
22037
  return {
22028
22038
  rawData: {
22029
22039
  runId,
22030
22040
  status,
22031
- ...bgResult.agentName ? { agentName: bgResult.agentName } : {}
22041
+ ...displayName !== "agent" ? { agentName: displayName } : {}
22032
22042
  },
22033
- displayData: formatStartRunCard(name, status)
22043
+ displayData: formatStartRunCard(displayName, status)
22034
22044
  };
22035
22045
  } catch (e) {
22036
22046
  throw new Error(`startAgentRun \u542F\u52A8 Agent [${agentKey}] \u5931\u8D25: ${toErrorMessage(e)}`);
@@ -23351,7 +23361,7 @@ var executeToolRun = createAsyncThunk(
23351
23361
  if (!executionInput) {
23352
23362
  throw new Error(`ToolRun ${id} has no input to execute with.`);
23353
23363
  }
23354
- const { findToolExecutor: findToolExecutor2 } = await import("./tools-5FAAMWSC.js");
23364
+ const { findToolExecutor: findToolExecutor2 } = await import("./tools-4JSNWHIK.js");
23355
23365
  const { executor } = findToolExecutor2(run.toolName);
23356
23366
  toolRunStarted({
23357
23367
  id: run.id,
@@ -23375,7 +23385,7 @@ var executeToolRun = createAsyncThunk(
23375
23385
  const latestState = thunkApi.getState();
23376
23386
  const userId = latestState.auth?.currentUser?.userId;
23377
23387
  if (userId) {
23378
- const { fetchUserSpaceMemberships } = await import("./spaceSlice-KMUD3BJT.js");
23388
+ const { fetchUserSpaceMemberships } = await import("./spaceSlice-3GLIRD3Q.js");
23379
23389
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
23380
23390
  }
23381
23391
  }
@@ -25778,7 +25788,7 @@ async function updateDocFunc(args, thunkApi) {
25778
25788
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
25779
25789
  };
25780
25790
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
25781
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-EAYEABFN.js");
25791
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-66Q4JTTG.js");
25782
25792
  if (getDocState().pageKey === id) {
25783
25793
  applyExternalDocUpdate({
25784
25794
  slateData: finalSlateData,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  i18n_default,
3
3
  toolRegistry
4
- } from "./chunk-5R6K4O2K.js";
4
+ } from "./chunk-KUDUXBNE.js";
5
5
  import {
6
6
  canonicalizeToolNames
7
7
  } from "./chunk-B4KT7RN2.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isCompiledBinary,
3
3
  resolveCliEntrypointPath
4
- } from "./chunk-5NBHQD4D.js";
4
+ } from "./chunk-A7GB5UGH.js";
5
5
 
6
6
  // packages/cli/agentRunControl.ts
7
7
  import { homedir as nodeHomedir } from "node:os";
@@ -300,7 +300,7 @@ var slice = createSliceWithThunks({
300
300
  const overrides = {};
301
301
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
302
302
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
303
- const { _executeModel } = await import("./_executeModel-BDNT3M7C.js");
303
+ const { _executeModel } = await import("./_executeModel-OQ6KPFSB.js");
304
304
  return _executeModel(
305
305
  {
306
306
  isStreaming: args.isStreaming ?? false,
@@ -321,7 +321,7 @@ var slice = createSliceWithThunks({
321
321
  * - 循环直到无工具调用或触发其他运行时停止条件
322
322
  */
323
323
  runAgent: create.asyncThunk(async (args, thunkApi) => {
324
- const { runAgentClientLoop } = await import("./runAgentClientLoop-JXGJA2JD.js");
324
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-BXMDAQB2.js");
325
325
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
326
326
  {
327
327
  agentKey: args.agentKey,
@@ -337,7 +337,7 @@ var slice = createSliceWithThunks({
337
337
  * 聊天轮次流式 Agent 调用
338
338
  */
339
339
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
340
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-ZR67N6BK.js");
340
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-SN7YS2VV.js");
341
341
  return streamAgentChatTurnHandler(args, thunkApi);
342
342
  }),
343
343
  /**
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clearCliLocalRuntimePreparedAgentCache
3
- } from "./chunk-B5OCTKY4.js";
3
+ } from "./chunk-GGHFCK3X.js";
4
4
  import {
5
5
  getReadableCliDb
6
6
  } from "./chunk-W4NVOSFF.js";
@@ -12,7 +12,7 @@ import {
12
12
  resolveAgentRecordFromHybridStore,
13
13
  sanitizeAgentRecordForCliOutput,
14
14
  writeAgentRecord
15
- } from "./chunk-5R73BS7Y.js";
15
+ } from "./chunk-YG3CCS7C.js";
16
16
  import {
17
17
  resolveCliAgentKeyInput
18
18
  } from "./chunk-VHBWHNVT.js";
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  parseUserIdFromAuthToken,
24
24
  resolveAuthToken
25
- } from "./chunk-5NBHQD4D.js";
25
+ } from "./chunk-A7GB5UGH.js";
26
26
 
27
27
  // packages/cli/agentRecordCommands.ts
28
28
  async function runAgentReadCommand(args, deps = {}) {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  ANTIGRAVITY_CLOUD_CODE_BASE_URL,
3
3
  isAntigravityOAuthAgent
4
- } from "./chunk-OIMX7MM4.js";
4
+ } from "./chunk-QLO2G5HP.js";
5
5
  import {
6
6
  clipMultilineText,
7
7
  fetchAndSerializeTable,
8
8
  waitForAbortableDelay
9
- } from "./chunk-5R6K4O2K.js";
9
+ } from "./chunk-KUDUXBNE.js";
10
10
  import {
11
11
  createDrainExhaustedResponse,
12
12
  isCoreDrainingBody,
@@ -26,17 +26,17 @@ import {
26
26
  import {
27
27
  fetchAndCacheMessages,
28
28
  shouldUseServerProxy
29
- } from "./chunk-K5X6VB6K.js";
29
+ } from "./chunk-SW3Q2OV5.js";
30
30
  import {
31
31
  fetchServerSyncedCredential
32
- } from "./chunk-TVDTAB3M.js";
32
+ } from "./chunk-NFHGY5T5.js";
33
33
  import {
34
34
  buildCurrentTimeBlock,
35
35
  buildIdentityBlock,
36
36
  buildRuntimeGuidanceBlocks,
37
37
  requiresBareImageUrl,
38
38
  toBareImageUrlMessages
39
- } from "./chunk-UW3WOIWJ.js";
39
+ } from "./chunk-JHFMRUGX.js";
40
40
  import {
41
41
  buildProviderAuthHeaders,
42
42
  convertMessagesToResponsesInput,
@@ -44,7 +44,7 @@ import {
44
44
  preserveAgentStateFields,
45
45
  resolvePlatformChatCompletionsEndpoint,
46
46
  resolvePlatformResponsesEndpoint
47
- } from "./chunk-KTFJUPDW.js";
47
+ } from "./chunk-SRKNB2WB.js";
48
48
  import {
49
49
  canonicalizeToolNames
50
50
  } from "./chunk-B4KT7RN2.js";
@@ -785,10 +785,12 @@ var MENU_USAGE_INSTRUCTIONS = `--- \u4EA4\u4E92\u8BF4\u660E ---
785
785
  3\uFF09\u65B0\u4F1A\u8BDD\u5F00\u5934\uFF0C\u6839\u636E\u7528\u6237\u753B\u50CF\u7ED9\u51FA\u82E5\u5E72"\u63A5\u4E0B\u6765\u53EF\u4EE5\u5C1D\u8BD5\u7684\u4E8B\u60C5"\u4F5C\u4E3A\u529F\u80FD\u5BFC\u822A\u6216\u4F7F\u7528\u5F15\u5BFC\u3002
786
786
 
787
787
  ## \u8C03\u7528 ui_ask_choice \u7684\u89C4\u8303
788
+ - \u8C03\u7528\u524D\u5FC5\u987B\u5148\u5728\u666E\u901A\u56DE\u590D\u6587\u672C\u91CC\u5199\u6E05\u80CC\u666F\u3001\u7406\u7531\u6216\u6743\u8861\uFF08\u5148\u89E3\u91CA\uFF0C\u518D\u8C03\u7528\u5DE5\u5177\uFF09\uFF1B
788
789
  - \u63D0\u4F9B 2\uFF5E5 \u4E2A\u4E92\u65A5\u9009\u9879\uFF1B\u5982\u679C\u4F60\u6709\u63A8\u8350\u65B9\u5411\uFF0C\u628A\u5B83\u653E\u5728 choices \u7684\u7B2C\u4E00\u4F4D\uFF1B
789
- - \u6BCF\u4E2A\u9009\u9879\u7684 label \u5199\u7B80\u77ED\u6309\u94AE\u6587\u6848\uFF0CuserMessage \u5199\u6210\u5B8C\u6574\u7684\u4E0B\u4E00\u53E5\u8BDD\uFF0C\u65B9\u4FBF\u7528\u6237\u70B9\u51FB\u540E\u4E0A\u4E0B\u6587\u8FDE\u8D2F\uFF1B
790
+ - \u9009\u9879\u53EA\u627F\u8F7D\u9002\u5EA6\u4FE1\u606F\uFF1Alabel \u4E3A\u7B80\u77ED\u6309\u94AE\u6587\u6848\uFF1Bdetail \u4E3A\u53EF\u9009\u3001\u81F3\u591A\u4E00\u53E5\u8BDD\u7684\u7B80\u77ED\u8865\u5145\uFF1B\u7981\u6B62\u628A\u957F\u6BB5\u89E3\u91CA\u6216\u6743\u8861\u585E\u8FDB choices/detail\uFF1B
791
+ - \u6BCF\u4E2A\u9009\u9879\u7684 userMessage \u5199\u6210\u5B8C\u6574\u7684\u4E0B\u4E00\u53E5\u8BDD\uFF0C\u65B9\u4FBF\u7528\u6237\u70B9\u51FB\u540E\u4E0A\u4E0B\u6587\u8FDE\u8D2F\uFF1B
790
792
  - \u4E0D\u8981\u5728\u9009\u9879\u5217\u8868\u91CC\u653E"\u5176\u4ED6/Other"\u2014\u2014\u5BA2\u6237\u7AEF\u4F1A\u81EA\u52A8\u4E3A\u7528\u6237\u8FFD\u52A0\u81EA\u7531\u8F93\u5165\u7684\u9000\u8DEF\uFF1B
791
- - \u628A\u8981\u95EE\u7528\u6237\u7684\u95EE\u9898\u5199\u5728 question \u5B57\u6BB5\u91CC\uFF0C\u4E0D\u8981\u5728\u540C\u4E00\u8F6E assistant \u666E\u901A\u6587\u672C\u91CC\u91CD\u590D\u8FD9\u53E5\u8BDD\uFF1B
793
+ - \u628A\u8981\u95EE\u7528\u6237\u7684\u95EE\u9898\u5199\u5728 question \u5B57\u6BB5\u91CC\uFF0C\u4E0D\u8981\u5728\u540C\u4E00\u8F6E assistant \u666E\u901A\u6587\u672C\u91CC\u91CD\u590D\u8FD9\u53E5\u8BDD\uFF08\u89E3\u91CA\u80CC\u666F\u4E0E\u6743\u8861\u2260\u91CD\u590D\u95EE\u9898\u53E5\uFF09\uFF1B
792
794
  - \u5982\u679C\u7528\u6237\u7684\u76EE\u6807\u5DF2\u7ECF\u975E\u5E38\u5177\u4F53\u6E05\u6670\uFF0C\u5373\u4FBF\u4E0A\u8FF0\u6761\u4EF6\u770B\u4F3C\u6EE1\u8DB3\uFF0C\u4E5F\u4F18\u5148\u76F4\u63A5\u56DE\u7B54\uFF0C\u4E0D\u8981\u5F3A\u884C\u5F39\u9009\u62E9\u83DC\u5355\u3002`;
793
795
  var WEBPAGE_ACCESS_INSTRUCTIONS = `--- \u7F51\u9875\u8BBF\u95EE\u80FD\u529B (Web Access) ---
794
796
  \u83B7\u53D6\u5916\u90E8\u4FE1\u606F\u65F6\u7531\u7B80\u5165\u7E41\uFF1A
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  trimTrailingSlash
3
- } from "./chunk-KTFJUPDW.js";
3
+ } from "./chunk-SRKNB2WB.js";
4
4
  import {
5
5
  asTrimmedLowercaseString
6
6
  } from "./chunk-QSJ3HFEF.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  updateContentTitle
3
- } from "./chunk-K5X6VB6K.js";
3
+ } from "./chunk-SW3Q2OV5.js";
4
4
  import {
5
5
  require_date_fns
6
6
  } from "./chunk-M76ECQRD.js";
@@ -367,7 +367,7 @@ async function saveDocState(arg, { dispatch, getState }) {
367
367
  }
368
368
  }
369
369
  async function createDocState(args, thunkApi) {
370
- const { createPageAction } = await import("./createPageAction-6GXB676B.js");
370
+ const { createPageAction } = await import("./createPageAction-RNT4LCAX.js");
371
371
  return createPageAction(args, thunkApi);
372
372
  }
373
373
  function subscribe(listener) {
@@ -29,32 +29,6 @@ function pickAgentRuntimeInferenceOptions(agentConfig) {
29
29
  };
30
30
  }
31
31
 
32
- // packages/agent-runtime/openAiCompatibleMessages.ts
33
- function preserveAgentStateFields(source, target) {
34
- const mutableTarget = target;
35
- if (source.role === "assistant") {
36
- if (typeof source.reasoning_content === "string") {
37
- mutableTarget.reasoning_content = source.reasoning_content;
38
- }
39
- if (Array.isArray(source.tool_calls)) {
40
- mutableTarget.tool_calls = source.tool_calls;
41
- }
42
- }
43
- if (source.role === "tool") {
44
- const toolCallId = typeof source.tool_call_id === "string" ? source.tool_call_id.trim() : typeof source.toolCallId === "string" ? source.toolCallId.trim() : "";
45
- if (toolCallId) mutableTarget.tool_call_id = toolCallId;
46
- }
47
- return target;
48
- }
49
- function toOpenAiCompatibleMessages(messages) {
50
- return messages.map(
51
- (message) => preserveAgentStateFields(message, {
52
- role: message.role,
53
- content: message.content ?? ""
54
- })
55
- );
56
- }
57
-
58
32
  // packages/agent-runtime/platformProviderEndpoints.ts
59
33
  var OPENAI_RESPONSES_ENDPOINT = "https://api.openai.com/v1/responses";
60
34
  var DEEPSEEK_RESPONSES_ENDPOINT = "https://api.deepseek.com/v1/responses";
@@ -158,7 +132,7 @@ function resolvePlatformServerUrl(env) {
158
132
  return trimTrailingSlash(env.NOLO_SERVER || env.BASE_URL || "https://nolo.chat");
159
133
  }
160
134
  function resolvePlatformAuthToken(env) {
161
- return env.AUTH_TOKEN || env.AUTH || env.BENCHMARK_AUTH_TOKEN || "";
135
+ return env.AUTH_TOKEN || env.AUTH || env.NOLO_MACHINE_API_KEY || env.BENCHMARK_AUTH_TOKEN || "";
162
136
  }
163
137
  function canUsePlatformChatProvider(env) {
164
138
  return Boolean(resolvePlatformAuthToken(env));
@@ -370,6 +344,32 @@ async function buildProviderExecutionPlan(args) {
370
344
  };
371
345
  }
372
346
 
347
+ // packages/agent-runtime/openAiCompatibleMessages.ts
348
+ function preserveAgentStateFields(source, target) {
349
+ const mutableTarget = target;
350
+ if (source.role === "assistant") {
351
+ if (typeof source.reasoning_content === "string") {
352
+ mutableTarget.reasoning_content = source.reasoning_content;
353
+ }
354
+ if (Array.isArray(source.tool_calls)) {
355
+ mutableTarget.tool_calls = source.tool_calls;
356
+ }
357
+ }
358
+ if (source.role === "tool") {
359
+ const toolCallId = typeof source.tool_call_id === "string" ? source.tool_call_id.trim() : typeof source.toolCallId === "string" ? source.toolCallId.trim() : "";
360
+ if (toolCallId) mutableTarget.tool_call_id = toolCallId;
361
+ }
362
+ return target;
363
+ }
364
+ function toOpenAiCompatibleMessages(messages) {
365
+ return messages.map(
366
+ (message) => preserveAgentStateFields(message, {
367
+ role: message.role,
368
+ content: message.content ?? ""
369
+ })
370
+ );
371
+ }
372
+
373
373
  // packages/integrations/openai/responsesHelpers.ts
374
374
  var RESPONSES_TOP_LEVEL_SCHEMA_KEYS = ["anyOf", "oneOf", "allOf", "enum", "not"];
375
375
  var sanitizeResponsesParameters = (parameters) => {
@@ -575,10 +575,6 @@ function hasImageParts(messages) {
575
575
 
576
576
  export {
577
577
  pickAgentRuntimeInferenceOptions,
578
- isImageUrlPart,
579
- hasImageParts,
580
- preserveAgentStateFields,
581
- toOpenAiCompatibleMessages,
582
578
  isOpenAiResponsesModel,
583
579
  resolvePlatformResponsesEndpoint,
584
580
  resolvePlatformChatCompletionsEndpoint,
@@ -591,6 +587,10 @@ export {
591
587
  resolveProviderTransportDecision,
592
588
  buildProviderAuthHeaders,
593
589
  buildProviderExecutionPlan,
590
+ isImageUrlPart,
591
+ hasImageParts,
592
+ preserveAgentStateFields,
593
+ toOpenAiCompatibleMessages,
594
594
  toResponsesTools,
595
595
  convertMessagesToResponsesInput,
596
596
  extractTextFromResponseOutput,
@@ -15,7 +15,7 @@ import {
15
15
  import {
16
16
  deleteServerSyncedCredential,
17
17
  runLlm
18
- } from "./chunk-TVDTAB3M.js";
18
+ } from "./chunk-NFHGY5T5.js";
19
19
  import {
20
20
  cleanupCliSessionForDialog
21
21
  } from "./chunk-V6VXDXGY.js";
@@ -8598,6 +8598,7 @@ var uiAskChoiceFunctionSchema = {
8598
8598
  name: "ui_ask_choice",
8599
8599
  description: [
8600
8600
  "\u8BA9\u7528\u6237\u5728 2\uFF5E5 \u4E2A\u4E92\u65A5\u9009\u9879\u4E4B\u95F4\u505A\u9009\u62E9\u7684\u901A\u7528\u201C\u51FA\u9009\u9879\u201D\u5DE5\u5177\u3002\u9002\u7528\u573A\u666F\uFF1A\u9700\u6C42\u6A21\u7CCA\u65F6\u7ED9\u65B9\u5411\u5019\u9009\u3001\u8BA1\u5212\u5206\u652F\u8282\u70B9\u51B3\u7B56\u3001\u51FA\u9898/\u95EE\u5377\u3001\u65B0\u4F1A\u8BDD\u529F\u80FD\u5BFC\u822A\u3002",
8601
+ "\u8C03\u7528\u524D\u987B\u5148\u5728\u666E\u901A\u56DE\u590D\u6587\u672C\u91CC\u89E3\u91CA\u80CC\u666F\u4E0E\u6743\u8861\uFF08\u5148\u89E3\u91CA\uFF0C\u518D\u8C03\u7528\uFF09\u3002",
8601
8602
  "",
8602
8603
  "\u591A\u95EE\u9898 & \u591A\u9009\u652F\u6301\uFF1A",
8603
8604
  "- \u5F53\u4F60\u9700\u8981\u4E00\u6B21\u95EE\u591A\u4E2A\u95EE\u9898\u65F6\uFF0C\u4F7F\u7528 questions \u6570\u7EC4\u4EE3\u66FF question+choices\u3002",
@@ -8630,7 +8631,7 @@ var uiAskChoiceFunctionSchema = {
8630
8631
  },
8631
8632
  detail: {
8632
8633
  type: "string",
8633
- description: "\u9009\u9879\u7684\u8865\u5145\u63CF\u8FF0\uFF0C\u663E\u793A\u5728 label \u4E0B\u65B9\u3002\u53EF\u9009\u3002"
8634
+ description: "\u7B80\u77ED\u8865\u5145\uFF08\u5EFA\u8BAE\u4E00\u53E5\u8BDD\uFF09\uFF0C\u957F\u89E3\u91CA\u5199\u8FDB\u8C03\u7528\u524D\u7684\u56DE\u590D\u6587\u672C\u3002"
8634
8635
  },
8635
8636
  userMessage: {
8636
8637
  type: "string",
@@ -8668,7 +8669,7 @@ var uiAskChoiceFunctionSchema = {
8668
8669
  label: { type: "string" },
8669
8670
  detail: {
8670
8671
  type: "string",
8671
- description: "\u8865\u5145\u63CF\u8FF0\u3002"
8672
+ description: "\u7B80\u77ED\u8865\u5145\uFF08\u5EFA\u8BAE\u4E00\u53E5\u8BDD\uFF09\uFF0C\u957F\u89E3\u91CA\u5199\u8FDB\u8C03\u7528\u524D\u7684\u56DE\u590D\u6587\u672C\u3002"
8672
8673
  },
8673
8674
  userMessage: { type: "string" }
8674
8675
  },
@@ -10498,7 +10499,7 @@ var messageSlice = createSliceWithThunks({
10498
10499
  runtimeOptions: args.runtimeOptions
10499
10500
  });
10500
10501
  if (agentKeyToUse) {
10501
- const { streamAgentChatTurn } = await import("./agentSlice-6FLDYJ5L.js");
10502
+ const { streamAgentChatTurn } = await import("./agentSlice-IHOSTSWC.js");
10502
10503
  await dispatch(
10503
10504
  streamAgentChatTurn({
10504
10505
  agentKey: agentKeyToUse,
@@ -13209,7 +13210,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
13209
13210
  }
13210
13211
  if (isCurrentDialog) {
13211
13212
  await thunkApi.dispatch(resetMsgs());
13212
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-JNJLLNVG.js");
13213
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-QZZF4JXD.js");
13213
13214
  dispatch(clearPendingAttachments2());
13214
13215
  clearWorkflow();
13215
13216
  }
@@ -13218,15 +13219,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
13218
13219
 
13219
13220
  // packages/chat/dialog/dialogSlice.ts
13220
13221
  var runCreateDialogAction = async (args, thunkApi) => {
13221
- const { createDialogAction } = await import("./createDialogAction-QOWFWYK6.js");
13222
+ const { createDialogAction } = await import("./createDialogAction-G6XQLPAN.js");
13222
13223
  return createDialogAction(args, thunkApi);
13223
13224
  };
13224
13225
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
13225
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-7K5UGUTT.js");
13226
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-W4OZQ63I.js");
13226
13227
  return createAgentAutomationAction(args, thunkApi);
13227
13228
  };
13228
13229
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
13229
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-XGO6IWI6.js");
13230
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-DUJ2JZXX.js");
13230
13231
  return updateDialogTitleAction(args, thunkApi);
13231
13232
  };
13232
13233
  var runAddDialogAgentAction = async (args, thunkApi) => {
@@ -13246,7 +13247,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
13246
13247
  return setDialogExtraReferencesAction(args, thunkApi);
13247
13248
  };
13248
13249
  var runHandleSendMessageAction = async (args, thunkApi) => {
13249
- const { handleSendMessageAction } = await import("./handleSendMessageAction-FCVAJBHI.js");
13250
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-CB5UKK2X.js");
13250
13251
  return handleSendMessageAction(args, thunkApi);
13251
13252
  };
13252
13253
  function clearDialogState() {
@@ -13259,7 +13260,7 @@ var createPageAndAddReference = createAsyncThunk(
13259
13260
  async (payload, { dispatch, getState, rejectWithValue }) => {
13260
13261
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
13261
13262
  try {
13262
- const { createDocState } = await import("./docStore-EAYEABFN.js");
13263
+ const { createDocState } = await import("./docStore-66Q4JTTG.js");
13263
13264
  const pageKey = await createDocState(
13264
13265
  { slateData, title },
13265
13266
  { dispatch, getState }
@@ -4,10 +4,10 @@ import {
4
4
  providerHttpFailure,
5
5
  readSseFrames,
6
6
  throwIfChatCompletionStreamFailed
7
- } from "./chunk-PB2DHBEQ.js";
7
+ } from "./chunk-3AE4NQ5O.js";
8
8
  import {
9
9
  parseToolArgumentsJson
10
- } from "./chunk-VQFY3VXW.js";
10
+ } from "./chunk-2ROIXEDX.js";
11
11
  import {
12
12
  createThinkParserState,
13
13
  createToolCallAccumulator,
@@ -17,12 +17,12 @@ import {
17
17
  import {
18
18
  requiresBareImageUrl,
19
19
  toBareImageUrlMessages
20
- } from "./chunk-UW3WOIWJ.js";
20
+ } from "./chunk-JHFMRUGX.js";
21
21
  import {
22
22
  buildProviderAuthHeaders,
23
23
  buildProviderExecutionPlan,
24
24
  toOpenAiCompatibleMessages
25
- } from "./chunk-KTFJUPDW.js";
25
+ } from "./chunk-SRKNB2WB.js";
26
26
  import {
27
27
  canonicalizeToolName,
28
28
  createGlob,
@@ -432,6 +432,16 @@ function resolveDialogTitle(args) {
432
432
  const lastUserText = extractLastUserText(args.messages).trim();
433
433
  return lastUserText ? lastUserText.slice(0, 80) : "Local agent run";
434
434
  }
435
+ function pickDialogTitle(args) {
436
+ const existing = args.existingDialog?.title;
437
+ if (typeof existing === "string" && existing.trim()) return existing.trim();
438
+ const override = args.titleOverride?.trim();
439
+ if (override) return override;
440
+ return resolveDialogTitle({
441
+ existingDialog: args.existingDialog,
442
+ messages: args.messages
443
+ });
444
+ }
435
445
  function normalizeSubjectRef(ref) {
436
446
  if (!ref || typeof ref !== "object") return null;
437
447
  const raw = ref;
@@ -520,8 +530,9 @@ function buildAgentRuntimeDialogWritePlan(args) {
520
530
  userId: args.userId,
521
531
  cybots: [args.input.agentKey],
522
532
  primaryAgentKey: args.input.agentKey,
523
- title: typeof args.existingDialog?.title === "string" && args.existingDialog.title.trim() ? args.existingDialog.title.trim() : args.titleOverride?.trim() ? args.titleOverride.trim() : resolveDialogTitle({
533
+ title: pickDialogTitle({
524
534
  existingDialog: args.existingDialog,
535
+ titleOverride: args.titleOverride,
525
536
  messages: args.input.messages
526
537
  }),
527
538
  status: args.input.result.error === true ? "failed" : "done",
@@ -552,6 +563,7 @@ function buildAgentRuntimeDialogWritePlan(args) {
552
563
  };
553
564
  return {
554
565
  dialogId,
566
+ title: dialogRecord.title,
555
567
  ops: [
556
568
  {
557
569
  type: "put",
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-5R73BS7Y.js";
4
+ } from "./chunk-YG3CCS7C.js";
5
5
  import {
6
6
  buildSkillSummaryMarker
7
7
  } from "./chunk-VF4K2QE6.js";
@@ -19,7 +19,7 @@ import {
19
19
  readOption,
20
20
  resolveAuthToken,
21
21
  resolveServerUrl
22
- } from "./chunk-5NBHQD4D.js";
22
+ } from "./chunk-A7GB5UGH.js";
23
23
  import {
24
24
  NOLO_CLUSTER_SERVERS
25
25
  } from "./chunk-LCBAMY2M.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-AOVMTFWV.js";
4
+ } from "./chunk-P6DRYHVM.js";
5
5
 
6
6
  // packages/ai/agent/fetchAgentContexts.ts
7
7
  async function fetchAgentContexts(references, dispatch) {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-B5OCTKY4.js";
4
+ } from "./chunk-GGHFCK3X.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-5R6K4O2K.js";
7
+ } from "./chunk-KUDUXBNE.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-VQFY3VXW.js";
10
+ } from "./chunk-2ROIXEDX.js";
11
11
  import {
12
12
  resolveLocalRuntimeEnvFromPolicy
13
13
  } from "./chunk-5CS33IBL.js";
@@ -35,7 +35,7 @@ import {
35
35
  } from "./chunk-KUG52IAP.js";
36
36
  import {
37
37
  parseUserIdFromAuthToken
38
- } from "./chunk-5NBHQD4D.js";
38
+ } from "./chunk-A7GB5UGH.js";
39
39
  import {
40
40
  DEFAULT_NOLO_SERVER_URL
41
41
  } from "./chunk-OLZBQWZU.js";
@@ -2,7 +2,7 @@ import {
2
2
  buildLocalAgentLookupKeys,
3
3
  normalizeAgentHandle,
4
4
  shouldReadAgentKeyRemotely
5
- } from "./chunk-TQCONXQ3.js";
5
+ } from "./chunk-CDQ2ICPR.js";
6
6
  import {
7
7
  resolveCliAgentKeyInput
8
8
  } from "./chunk-VHBWHNVT.js";
@@ -22,7 +22,7 @@ import {
22
22
  resolveAuthToken,
23
23
  resolveServerCandidates,
24
24
  resolveServerUrl
25
- } from "./chunk-5NBHQD4D.js";
25
+ } from "./chunk-A7GB5UGH.js";
26
26
 
27
27
  // packages/cli/agentRecordHelpers.ts
28
28
  import { readFileSync } from "node:fs";
@@ -2,7 +2,7 @@ import {
2
2
  deleteDbRecord,
3
3
  queryUserRecords,
4
4
  readDbRecord
5
- } from "./chunk-5R73BS7Y.js";
5
+ } from "./chunk-YG3CCS7C.js";
6
6
  import {
7
7
  mergeAndDedupUserData
8
8
  } from "./chunk-KQHGZWSV.js";
@@ -9,7 +9,7 @@ import {
9
9
  resolveServerCandidates,
10
10
  resolveServerUrl,
11
11
  resolveServerUrlFromEnv
12
- } from "./chunk-5NBHQD4D.js";
12
+ } from "./chunk-A7GB5UGH.js";
13
13
  import "./chunk-OLZBQWZU.js";
14
14
  import "./chunk-LCBAMY2M.js";
15
15
  import "./chunk-4SN6J65J.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-K5X6VB6K.js";
3
+ } from "./chunk-SW3Q2OV5.js";
4
4
  import "./chunk-V2J635L5.js";
5
5
  import "./chunk-MRC4Q34M.js";
6
6
  import "./chunk-MTU75CZ2.js";
7
7
  import "./chunk-CWMSB67P.js";
8
- import "./chunk-TVDTAB3M.js";
8
+ import "./chunk-NFHGY5T5.js";
9
9
  import "./chunk-V6VXDXGY.js";
10
10
  import "./chunk-Z4NR32XR.js";
11
11
  import "./chunk-M76ECQRD.js";