nolo-cli 0.102.1 → 0.102.3

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 (107) hide show
  1. package/{_executeModel-WLFACVFR.js → _executeModel-TOH473HN.js} +32 -32
  2. package/{action-PNPQLJHG.js → action-C4KMTCJF.js} +2 -2
  3. package/{addContentAction-RBOUD7SJ.js → addContentAction-7TNIOVZI.js} +6 -6
  4. package/{addDialogAgentAction-IODCR6TB.js → addDialogAgentAction-O47J3MVW.js} +5 -5
  5. package/{agentDeleteCommand-XHHDYJ3U.js → agentDeleteCommand-3EV2EOUI.js} +38 -38
  6. package/{agentEmailCommands-GJ2TE3CV.js → agentEmailCommands-V2V54ZIH.js} +38 -38
  7. package/{agentListCommands-B3YHJQNM.js → agentListCommands-SRRN3TCW.js} +21 -21
  8. package/{agentMachineCommands-KQLRJF5O.js → agentMachineCommands-JYJMU27G.js} +19 -19
  9. package/{agentRecordCommands-LXDIXYQM.js → agentRecordCommands-KQMZLZHW.js} +38 -38
  10. package/{agentRunCommand-P2KLVSYL.js → agentRunCommand-IWKQO47Q.js} +38 -38
  11. package/{agentRuntimeLocal-SXYAKX3A.js → agentRuntimeLocal-3QKZ76C7.js} +16 -16
  12. package/{agentSlice-WBSSBKBB.js → agentSlice-MR6JWMM5.js} +7 -7
  13. package/{appDeleteCommands-4EX37I4K.js → appDeleteCommands-SZFKFV4S.js} +20 -20
  14. package/{appDeployCommands-SDBR3J75.js → appDeployCommands-JWH5HMET.js} +20 -20
  15. package/{appDeployStatusCommands-764PQNYN.js → appDeployStatusCommands-CLONFBVO.js} +20 -20
  16. package/{appGetCommands-BBCN3XJC.js → appGetCommands-4Z7V7UYA.js} +20 -20
  17. package/{appListCommands-OGTABCS3.js → appListCommands-IIUS64VI.js} +20 -20
  18. package/{authCommand-NHDLY3IB.js → authCommand-NQPMGYHP.js} +3 -3
  19. package/{authCommands-UDBJVSZU.js → authCommands-LWLOZETU.js} +2 -2
  20. package/{builtinSkillRegistry-MAR5LPAC.js → builtinSkillRegistry-GFY77VRN.js} +4 -4
  21. package/{chunk-UM4PH574.js → chunk-22RVE2PC.js} +1 -1
  22. package/{chunk-XFUBXRVI.js → chunk-2H6SEVDS.js} +1 -1
  23. package/{chunk-PCF3QU5Q.js → chunk-2K4TM6AW.js} +1 -1
  24. package/{chunk-ODTDLPBV.js → chunk-3MSJ4XDQ.js} +3 -3
  25. package/{chunk-VEYL5MO5.js → chunk-4G4C5SXT.js} +3 -3
  26. package/{chunk-WCGC6S77.js → chunk-4HTMUQIZ.js} +2 -2
  27. package/{chunk-4FFUDT6D.js → chunk-56HJ2LAA.js} +17 -7
  28. package/{chunk-E73ON47R.js → chunk-5EPHWMP5.js} +2 -2
  29. package/{chunk-7EPXUZOX.js → chunk-6UEJDFF7.js} +2 -2
  30. package/{chunk-5LTAPGPV.js → chunk-6XHM3LNF.js} +2 -2
  31. package/{chunk-5OA5HMTL.js → chunk-7JWCVINR.js} +1 -1
  32. package/{chunk-4YSOUKUR.js → chunk-7KWFIKKK.js} +1 -1
  33. package/{chunk-AOJB5QYD.js → chunk-AFRHU2JO.js} +10 -11
  34. package/{chunk-G53AA7RW.js → chunk-BML3APFI.js} +90 -18
  35. package/{chunk-YXZYNMYK.js → chunk-CMKQ7RCH.js} +2 -2
  36. package/{chunk-6O4IK4V2.js → chunk-CUF4MYKI.js} +1 -1
  37. package/{chunk-PTDYOADJ.js → chunk-D2GQE6AF.js} +1 -1
  38. package/{chunk-46Y5D2BZ.js → chunk-EV235ILT.js} +1 -1
  39. package/{chunk-HRYFI64G.js → chunk-F6DFZLO4.js} +3 -3
  40. package/{chunk-FJ5BGMNM.js → chunk-FBTNYNAL.js} +1 -1
  41. package/{chunk-EHER73LN.js → chunk-GCTKWVLU.js} +1 -1
  42. package/{chunk-CJN5OERD.js → chunk-GLD6Q25H.js} +22 -22
  43. package/{chunk-SEB5HAUU.js → chunk-HD3S2F7U.js} +1 -1
  44. package/{chunk-XIRXOUBV.js → chunk-HDYUKPEB.js} +6 -6
  45. package/{chunk-LKERWYPX.js → chunk-IRZTHHNM.js} +2 -2
  46. package/{chunk-CHNCM7EF.js → chunk-JVP74JRH.js} +7 -7
  47. package/{chunk-7TKWCTSY.js → chunk-KNVDNYH7.js} +2 -2
  48. package/{chunk-7MMSLEPA.js → chunk-LB5A6JTU.js} +3 -3
  49. package/{chunk-PH275YDS.js → chunk-MEZSLGQZ.js} +25 -18
  50. package/{chunk-TVCAR26G.js → chunk-MSFZ7FMO.js} +1 -1
  51. package/chunk-NKWIS6G2.js +442 -0
  52. package/{chunk-DNHENQ3T.js → chunk-NR7N2RWA.js} +5 -5
  53. package/{chunk-Z56IK6UT.js → chunk-O2LBWZLR.js} +8 -8
  54. package/{chunk-UJXNKP5V.js → chunk-O7SVKKLY.js} +129 -14
  55. package/{chunk-SNMQMOD2.js → chunk-Q7O72MF5.js} +1 -1
  56. package/{chunk-U6IGAJT4.js → chunk-REPRKRB2.js} +7 -7
  57. package/{chunk-GARACBQB.js → chunk-RILRSUGC.js} +1 -1
  58. package/{chunk-OYPMWCIQ.js → chunk-S274RDSE.js} +9 -9
  59. package/{chunk-SEA64CDY.js → chunk-TSXNDTXL.js} +1 -1
  60. package/{chunk-W72ISAKC.js → chunk-UNAOTLKO.js} +1 -1
  61. package/{chunk-KLUBZL6X.js → chunk-USTPPV3J.js} +1 -1
  62. package/{chunk-N4QIAW6W.js → chunk-V6YASAZR.js} +1 -1
  63. package/{chunk-V5OWQOJZ.js → chunk-VL3H5ZU3.js} +48 -7
  64. package/{chunk-AUDNYVRC.js → chunk-VLGL7FOL.js} +1 -1
  65. package/{chunk-NTDEBTK5.js → chunk-XMUZHRSB.js} +6 -6
  66. package/{chunk-ADBZWMFB.js → chunk-YDO5ERB4.js} +1 -1
  67. package/{chunk-U7XXEI5R.js → chunk-YGCJITP3.js} +2 -2
  68. package/{chunk-GUYEMTRK.js → chunk-YIEUDVD6.js} +45 -32
  69. package/{chunk-OW4APERY.js → chunk-YK5MHOWM.js} +54 -9
  70. package/{commandRegistry-TDXN5OP7.js → commandRegistry-POKHERIN.js} +50 -50
  71. package/{contentThunks-F2BNWOZV.js → contentThunks-HEEW3GBT.js} +15 -15
  72. package/{createAgentAutomationAction-5N2NRNR7.js → createAgentAutomationAction-C5UTM2ZI.js} +15 -15
  73. package/{createDialogAction-DSEG4L5Y.js → createDialogAction-VODZCSHM.js} +18 -18
  74. package/{createPageAction-K32FYQPE.js → createPageAction-XUFSVLBC.js} +16 -16
  75. package/{dbSlice-Q25STFGJ.js → dbSlice-QOLNF5GN.js} +5 -5
  76. package/{deleteFile-AJ2EZMHT.js → deleteFile-KESP65GC.js} +2 -2
  77. package/{dialogCommands-ODG2OKLO.js → dialogCommands-4XNYPCE7.js} +21 -21
  78. package/{dialogSlice-4GBOUTGL.js → dialogSlice-KXBFWRVK.js} +14 -14
  79. package/{docCreateCommands-Q6FQUHUF.js → docCreateCommands-P4XCR2SW.js} +21 -21
  80. package/{docDeleteCommands-N224CFZL.js → docDeleteCommands-KZZ3L6LS.js} +22 -22
  81. package/{docReadCommands-CJWAEAB4.js → docReadCommands-JN6HL4BC.js} +21 -21
  82. package/{docStore-ZTYSP3YE.js → docStore-PLGBTV5U.js} +6 -6
  83. package/{docUpdateCommands-OPG6ZY4H.js → docUpdateCommands-EYE7BTXW.js} +21 -21
  84. package/{fetchMessages-I5ICDDHM.js → fetchMessages-5L7OVM5Y.js} +2 -2
  85. package/{handleSendMessageAction-XFZH2TQS.js → handleSendMessageAction-BBB6A54Z.js} +14 -14
  86. package/index.js +3 -3
  87. package/{localDialogRead-ZHZ3KXDM.js → localDialogRead-O5A26FDK.js} +1 -1
  88. package/{machineCommands-KMU3D5I5.js → machineCommands-4LP4XFEY.js} +37 -37
  89. package/{machineWsRunDispatch-6GJ5YOSW.js → machineWsRunDispatch-4PWOZYRA.js} +37 -37
  90. package/{memberThunks-R75S3RWP.js → memberThunks-25K6DDRA.js} +6 -6
  91. package/package.json +1 -1
  92. package/{read-SRQMNO26.js → read-PJIT2YEJ.js} +2 -2
  93. package/{readDocTool-RC3JUNJ2.js → readDocTool-DRSXHGNL.js} +1 -1
  94. package/{readlineWorkspace-EXCG3IFX.js → readlineWorkspace-CFUUABFV.js} +70 -71
  95. package/{removeDialogAgentAction-46XQV5Q7.js → removeDialogAgentAction-VIWJL6MX.js} +6 -6
  96. package/{runAgentClientLoop-URRDZ5WG.js → runAgentClientLoop-CAPNBF7Q.js} +30 -30
  97. package/{setDialogExtraReferencesAction-J4V5ADQF.js → setDialogExtraReferencesAction-A7VA3NFM.js} +6 -6
  98. package/{setPrimaryDialogAgentAction-UHHV2QZW.js → setPrimaryDialogAgentAction-B4P7YQX2.js} +6 -6
  99. package/{settingThunks-PPZZZOWN.js → settingThunks-KOYSAT65.js} +5 -5
  100. package/{spaceCommands-7CLUNI2I.js → spaceCommands-QCZUWUMS.js} +19 -19
  101. package/{streamAgentChatTurn-YPUYKXDX.js → streamAgentChatTurn-XX3N3P4J.js} +33 -33
  102. package/{switchDialogAgentAction-A2TMVGAE.js → switchDialogAgentAction-3VYWHZKH.js} +5 -5
  103. package/{tools-M5ENXZRJ.js → tools-U6BT6H56.js} +27 -27
  104. package/{tuiSummaryLlmCaller-Q65IBDGO.js → tuiSummaryLlmCaller-QCHCULPM.js} +9 -9
  105. package/{updateDialogTitleAction-7PNUE23W.js → updateDialogTitleAction-NKHQ5LCX.js} +15 -15
  106. package/chunk-CQ3WA2NE.js +0 -299
  107. /package/{chunk-3AH7LNUB.js → chunk-ODAPITXL.js} +0 -0
@@ -2,7 +2,7 @@ import {
2
2
  DEVIN_CONNECT_URL,
3
3
  parseSseDataLineJson,
4
4
  parseSseDataLineObject
5
- } from "./chunk-OW4APERY.js";
5
+ } from "./chunk-YK5MHOWM.js";
6
6
  import {
7
7
  applyChatCompletionDelta,
8
8
  applyResponsesToolEvent,
@@ -11,7 +11,7 @@ import {
11
11
  flushChatCompletionStream,
12
12
  providerHttpFailure,
13
13
  throwIfChatCompletionStreamFailed
14
- } from "./chunk-V5OWQOJZ.js";
14
+ } from "./chunk-VL3H5ZU3.js";
15
15
  import {
16
16
  readSseFrames
17
17
  } from "./chunk-GMZLP5DV.js";
@@ -27,13 +27,13 @@ import {
27
27
  resolveHistoricalToolContentCap,
28
28
  resolveToolOutputProfile,
29
29
  stripImagePartsFromMessages
30
- } from "./chunk-SEB5HAUU.js";
30
+ } from "./chunk-HD3S2F7U.js";
31
31
  import {
32
32
  downgradeUnparsableToolCalls,
33
33
  hasParsableObjectArguments,
34
34
  repairTruncatedToolArguments,
35
35
  sanitizeForOutbound
36
- } from "./chunk-CQ3WA2NE.js";
36
+ } from "./chunk-NKWIS6G2.js";
37
37
  import {
38
38
  createThinkParserState,
39
39
  createToolCallAccumulator,
@@ -54,7 +54,7 @@ import {
54
54
  requiresBareImageUrl,
55
55
  resolveToolGuidedSections,
56
56
  toBareImageUrlMessages
57
- } from "./chunk-7TKWCTSY.js";
57
+ } from "./chunk-KNVDNYH7.js";
58
58
  import {
59
59
  convertMessagesToResponsesInput,
60
60
  extractReasoningFromResponseOutput,
@@ -80,7 +80,7 @@ import {
80
80
  parseNoloWorkspaceToolArguments,
81
81
  readTextStreamUpToChars,
82
82
  resolveNoloDialogInput
83
- } from "./chunk-4YSOUKUR.js";
83
+ } from "./chunk-7KWFIKKK.js";
84
84
  import {
85
85
  buildDialogFallbackTitleFromUserInput
86
86
  } from "./chunk-2MBTWINN.js";
@@ -94,7 +94,7 @@ import {
94
94
  resolveEmptyAssistantFallbackMessage,
95
95
  resolveEmptyAssistantOutcome,
96
96
  resolveTruncatedReasoningTailLog
97
- } from "./chunk-LKERWYPX.js";
97
+ } from "./chunk-IRZTHHNM.js";
98
98
  import {
99
99
  COMPACTION_SUMMARY_SCHEMA_VERSION,
100
100
  COMPACTION_SUMMARY_SYSTEM_PROMPT,
@@ -112,7 +112,7 @@ import {
112
112
  resolveCompressionTriggerRatio,
113
113
  truncateToolOutputForContext,
114
114
  withProviderCallTimingFields
115
- } from "./chunk-7MMSLEPA.js";
115
+ } from "./chunk-LB5A6JTU.js";
116
116
  import {
117
117
  clipCompactText
118
118
  } from "./chunk-5MMAK75Q.js";
@@ -152,7 +152,7 @@ import {
152
152
  asTrimmedNonEmptyStringArray,
153
153
  dialogMessageKey,
154
154
  dialogMessageRange
155
- } from "./chunk-3AH7LNUB.js";
155
+ } from "./chunk-ODAPITXL.js";
156
156
  import {
157
157
  asOptionalFiniteNumber
158
158
  } from "./chunk-WWC7I6TA.js";
@@ -12517,7 +12517,7 @@ function formatToolOverflowMarker(args2) {
12517
12517
  }
12518
12518
 
12519
12519
  // packages/agent-runtime/localAutoCompaction.ts
12520
- import { createHash as createHash2 } from "node:crypto";
12520
+ import { createHash as createHash2, randomUUID } from "node:crypto";
12521
12521
  function toPlanCompressionMessages(history) {
12522
12522
  return history.map((message, index) => ({
12523
12523
  id: `local-${index}`,
@@ -12688,6 +12688,37 @@ async function maybeAutoCompactLocalHistory(args2) {
12688
12688
  return projectExisting();
12689
12689
  }
12690
12690
  emitPhase({ kind: "compaction-start" });
12691
+ const compactionAttemptId = randomUUID();
12692
+ let compactionT0 = Date.now();
12693
+ let compactionInputTokens;
12694
+ let compactionPrevSummaryTokens;
12695
+ let compactionInputSource;
12696
+ let compactionPrevSummarySource;
12697
+ let primaryElapsedMs;
12698
+ let saveElapsedMs;
12699
+ const logCompactionTiming = (outcome, fields) => {
12700
+ if (compactionInputTokens === void 0 && compactionInputSource !== void 0) {
12701
+ compactionInputTokens = estimateTokenCount(compactionInputSource);
12702
+ }
12703
+ if (compactionPrevSummaryTokens === void 0 && compactionPrevSummarySource !== void 0) {
12704
+ compactionPrevSummaryTokens = estimateTokenCount(compactionPrevSummarySource);
12705
+ }
12706
+ console.log(
12707
+ `[compaction-timing] ${JSON.stringify({
12708
+ attemptId: compactionAttemptId,
12709
+ model: fields.model ?? args2.model ?? null,
12710
+ inputTokens: compactionInputTokens ?? null,
12711
+ prevSummaryTokens: compactionPrevSummaryTokens ?? null,
12712
+ outputChars: fields.outputChars ?? null,
12713
+ elapsedMs: Date.now() - compactionT0,
12714
+ primaryElapsedMs: primaryElapsedMs ?? null,
12715
+ // main 无 fallback 通道,保留该字段以兼容日志 schema。
12716
+ fallbackElapsedMs: null,
12717
+ saveElapsedMs: saveElapsedMs ?? null,
12718
+ outcome
12719
+ })}`
12720
+ );
12721
+ };
12691
12722
  try {
12692
12723
  if (args2.abortSignal?.aborted) {
12693
12724
  throw Object.assign(new Error("auto-compaction aborted"), { compactionReason: "aborted" });
@@ -12708,13 +12739,22 @@ async function maybeAutoCompactLocalHistory(args2) {
12708
12739
  fileOpsText
12709
12740
  });
12710
12741
  emitPhase({ kind: "waiting-provider" });
12742
+ compactionInputSource = messagesText;
12743
+ compactionPrevSummarySource = existingSummary;
12744
+ compactionT0 = Date.now();
12711
12745
  const timeoutMs = typeof args2.timeoutMs === "number" && Number.isFinite(args2.timeoutMs) && args2.timeoutMs > 0 ? args2.timeoutMs : void 0;
12712
12746
  const requestController = new AbortController();
12713
12747
  let timeoutHandle;
12714
12748
  let abortListener;
12715
12749
  const request3 = provider.complete(
12716
12750
  [{ role: "system", content: COMPACTION_SUMMARY_SYSTEM_PROMPT }, { role: "user", content: promptContent }],
12717
- { signal: requestController.signal, ...timeoutMs ? { timeoutMs } : {} }
12751
+ {
12752
+ signal: requestController.signal,
12753
+ ...timeoutMs ? { timeoutMs } : {},
12754
+ // 仅日志用的 attempt id:让 compaction 埋点与 transport 诊断日志 /
12755
+ // 服务端 x-request-id 可对上,用于关联请求级证据。不进 prompt/摘要/持久化。
12756
+ requestId: compactionAttemptId
12757
+ }
12718
12758
  ).then(
12719
12759
  (value) => ({ kind: "done", value }),
12720
12760
  (error) => ({ kind: "provider-error", error })
@@ -12734,6 +12774,7 @@ async function maybeAutoCompactLocalHistory(args2) {
12734
12774
  args2.abortSignal?.addEventListener("abort", abortListener, { once: true });
12735
12775
  }));
12736
12776
  const outcome = guards.length ? await Promise.race([request3, ...guards]) : await request3;
12777
+ primaryElapsedMs = Date.now() - compactionT0;
12737
12778
  if (timeoutHandle) clearTimeout(timeoutHandle);
12738
12779
  if (abortListener) args2.abortSignal?.removeEventListener("abort", abortListener);
12739
12780
  if (outcome.kind !== "done") {
@@ -12747,6 +12788,7 @@ async function maybeAutoCompactLocalHistory(args2) {
12747
12788
  console.warn(
12748
12789
  "[localLoop] auto-compaction produced empty summary; keeping prior projection"
12749
12790
  );
12791
+ logCompactionTiming("empty", {});
12750
12792
  const failureReason = "provider-error";
12751
12793
  emitPhase({ kind: "compaction-failed", reason: failureReason });
12752
12794
  return {
@@ -12760,6 +12802,7 @@ async function maybeAutoCompactLocalHistory(args2) {
12760
12802
  }
12761
12803
  };
12762
12804
  }
12805
+ const saveT0 = Date.now();
12763
12806
  await adapter.saveDialogSummary({
12764
12807
  dialogId,
12765
12808
  summary: newSummary,
@@ -12773,6 +12816,7 @@ async function maybeAutoCompactLocalHistory(args2) {
12773
12816
  })(),
12774
12817
  schemaVersion: COMPACTION_SUMMARY_SCHEMA_VERSION
12775
12818
  });
12819
+ saveElapsedMs = Date.now() - saveT0;
12776
12820
  const metricsReason = invalidSummary ? "invalid_summary" : coldResume ? "cold_resume" : "context_budget";
12777
12821
  const metrics = buildCompactionMetricsFromPlan({
12778
12822
  reason: metricsReason,
@@ -12782,6 +12826,10 @@ async function maybeAutoCompactLocalHistory(args2) {
12782
12826
  summaryUsage: result4.usage
12783
12827
  });
12784
12828
  console.log(formatCompactionMetricsLog(metrics));
12829
+ logCompactionTiming("success", {
12830
+ model: result4?.model ?? args2.model ?? null,
12831
+ outputChars: newSummary.length
12832
+ });
12785
12833
  emitPhase({ kind: "compaction-end" });
12786
12834
  return {
12787
12835
  history: projectHistoryWithSummary({
@@ -12811,6 +12859,7 @@ async function maybeAutoCompactLocalHistory(args2) {
12811
12859
  console.warn("[localLoop] auto-compaction failed:", error);
12812
12860
  const failureMessage = error instanceof Error && error.message ? error.message.slice(0, 200) : String(error).slice(0, 200);
12813
12861
  const failureReason = error instanceof Error && "compactionReason" in error ? error.compactionReason : "provider-error";
12862
+ logCompactionTiming(failureReason, {});
12814
12863
  emitPhase({ kind: "compaction-failed", reason: failureReason });
12815
12864
  return {
12816
12865
  ...projectExisting(),
@@ -14507,8 +14556,31 @@ function createResponsesStreamCollector(callbacks) {
14507
14556
  };
14508
14557
  const finalize2 = () => {
14509
14558
  let finalToolCalls = finalizeResponsesToolCalls(toolCallsAcc);
14510
- if (finalToolCalls.length === 0 && completedResponse) {
14511
- finalToolCalls = extractToolCallsFromResponseOutput(completedResponse);
14559
+ if (completedResponse) {
14560
+ const completedToolCalls = extractToolCallsFromResponseOutput(completedResponse);
14561
+ const completedById = new Map(completedToolCalls.map((call) => [call.id, call]));
14562
+ finalToolCalls = finalToolCalls.map((call) => {
14563
+ const completed = completedById.get(call.id);
14564
+ if (!completed) return call;
14565
+ let accumulatedParses = false;
14566
+ let completedParses = false;
14567
+ try {
14568
+ JSON.parse(call.function.arguments);
14569
+ accumulatedParses = true;
14570
+ } catch {
14571
+ }
14572
+ try {
14573
+ JSON.parse(completed.function.arguments);
14574
+ completedParses = true;
14575
+ } catch {
14576
+ return call;
14577
+ }
14578
+ if (completedParses && (!accumulatedParses || completed.function.arguments.startsWith(call.function.arguments))) {
14579
+ return { ...call, function: { ...call.function, arguments: completed.function.arguments } };
14580
+ }
14581
+ return call;
14582
+ });
14583
+ if (finalToolCalls.length === 0) finalToolCalls = completedToolCalls;
14512
14584
  }
14513
14585
  if (!content && completedResponse) {
14514
14586
  content = extractTextFromResponseOutput(completedResponse);
@@ -19997,7 +20069,7 @@ function buildLoadSkillExecutor(args2) {
19997
20069
  const { resolveSkillByName } = await import("./skillDiscovery-ZBU76COE.js");
19998
20070
  const resolved = resolveSkillByName(args2.cwd, name);
19999
20071
  if (!resolved) {
20000
- const { resolveBuiltinSkillByName } = await import("./builtinSkillRegistry-MAR5LPAC.js");
20072
+ const { resolveBuiltinSkillByName } = await import("./builtinSkillRegistry-GFY77VRN.js");
20001
20073
  const builtin = resolveBuiltinSkillByName(name);
20002
20074
  if (builtin) {
20003
20075
  return {
@@ -20075,7 +20147,7 @@ function resolveSessionKey(args2) {
20075
20147
  }
20076
20148
 
20077
20149
  // packages/agent-runtime/devin/devinProvider.ts
20078
- import { randomBytes, randomUUID } from "node:crypto";
20150
+ import { randomBytes, randomUUID as randomUUID2 } from "node:crypto";
20079
20151
  var CLIENT_NAME = "chisel";
20080
20152
  var CLIENT_VERSION = "3000.11.3";
20081
20153
  function writeVarint(fieldNum, value) {
@@ -20135,7 +20207,7 @@ function encodeDevinClientMetadata(token) {
20135
20207
  ]);
20136
20208
  }
20137
20209
  function devinId(id, purpose) {
20138
- return id?.sessionKey && isStableSessionIdentityEnabled() ? deriveStableUuid(id.sessionKey, purpose) : randomUUID();
20210
+ return id?.sessionKey && isStableSessionIdentityEnabled() ? deriveStableUuid(id.sessionKey, purpose) : randomUUID2();
20139
20211
  }
20140
20212
  function encodeDevinChatMessage(msg, identity2, index = 0) {
20141
20213
  const source = msg.role === "assistant" ? 2 : msg.role === "tool" ? 4 : 1;
@@ -20229,7 +20301,7 @@ ${item.text}`;
20229
20301
  const chatMessageBuffers = coalesced.map((m, i) => encodeDevinChatMessage(m, identity2, i));
20230
20302
  const completionConfig = buildCompletionConfig({ temperature });
20231
20303
  const modelConfig = Buffer.concat([
20232
- writeStringField(1, randomUUID()),
20304
+ writeStringField(1, randomUUID2()),
20233
20305
  writeVarint(2, 1),
20234
20306
  writeVarint(3, 4)
20235
20307
  ]);
@@ -20241,7 +20313,7 @@ ${item.text}`;
20241
20313
  writeMessageField(8, completionConfig),
20242
20314
  ...tools.map((tool) => writeMessageField(10, encodeDevinToolDefinition(tool))),
20243
20315
  writeMessageField(15, modelConfig),
20244
- writeStringField(16, randomUUID()),
20316
+ writeStringField(16, randomUUID2()),
20245
20317
  writeVarint(20, 1),
20246
20318
  writeStringField(21, model)
20247
20319
  ]);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clearCliLocalRuntimePreparedAgentCache
3
- } from "./chunk-PH275YDS.js";
3
+ } from "./chunk-MEZSLGQZ.js";
4
4
  import {
5
5
  getReadableCliDb
6
6
  } from "./chunk-LOCNXNOU.js";
@@ -13,7 +13,7 @@ import {
13
13
  resolveAgentRecordFromHybridStore,
14
14
  sanitizeAgentRecordForCliOutput,
15
15
  writeAgentRecord
16
- } from "./chunk-7EPXUZOX.js";
16
+ } from "./chunk-6UEJDFF7.js";
17
17
  import {
18
18
  resolveCliAgentKeyInput
19
19
  } from "./chunk-SV5IJK6K.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  dialogMessageKey
3
- } from "./chunk-3AH7LNUB.js";
3
+ } from "./chunk-ODAPITXL.js";
4
4
  import {
5
5
  asOptionalFiniteNumber
6
6
  } from "./chunk-WWC7I6TA.js";
@@ -7,7 +7,7 @@ import {
7
7
  scheduleExistingRecordReplication,
8
8
  shouldReplaceLocalWithRemoteRecord,
9
9
  shouldReplicateLocalRecord
10
- } from "./chunk-UJXNKP5V.js";
10
+ } from "./chunk-O7SVKKLY.js";
11
11
  import {
12
12
  shouldReplaceWithNextRecord
13
13
  } from "./chunk-D2MDMY2M.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getRuntimeServerContext,
3
3
  scheduleDeleteReplication
4
- } from "./chunk-UJXNKP5V.js";
4
+ } from "./chunk-O7SVKKLY.js";
5
5
  import {
6
6
  buildTombstoneRecord
7
7
  } from "./chunk-D2MDMY2M.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  listUserRecordsFromServers,
3
3
  readLiveDbRecordAfterTombstoneMerge
4
- } from "./chunk-SEA64CDY.js";
4
+ } from "./chunk-TSXNDTXL.js";
5
5
  import {
6
6
  agentRecordHasConfiguredCredential
7
- } from "./chunk-7EPXUZOX.js";
7
+ } from "./chunk-6UEJDFF7.js";
8
8
  import {
9
9
  deriveCredentialGroup
10
- } from "./chunk-U7XXEI5R.js";
10
+ } from "./chunk-YGCJITP3.js";
11
11
  import {
12
12
  PUBLIC_AGENT_KEY_PREFIX,
13
13
  ownedAgentKey,
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-UAD2WT54.js";
8
8
  import {
9
9
  toTimestampMs
10
- } from "./chunk-4FFUDT6D.js";
10
+ } from "./chunk-56HJ2LAA.js";
11
11
  import {
12
12
  isTombstoneRecord
13
13
  } from "./chunk-D2MDMY2M.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-7EPXUZOX.js";
4
+ } from "./chunk-6UEJDFF7.js";
5
5
  import {
6
6
  buildSkillSummaryMarker
7
7
  } from "./chunk-VF4K2QE6.js";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  buildDialogAttachmentPlan,
6
6
  extractFileContentIds
7
- } from "./chunk-6O4IK4V2.js";
7
+ } from "./chunk-CUF4MYKI.js";
8
8
  import {
9
9
  BUILTIN_DIALOG_LLM_FALLBACK_MODEL,
10
10
  BUILTIN_SUMMARY_LLM_CONFIG
@@ -14,10 +14,10 @@ import {
14
14
  } from "./chunk-AGGIDPCZ.js";
15
15
  import {
16
16
  runLlm
17
- } from "./chunk-CHNCM7EF.js";
17
+ } from "./chunk-JVP74JRH.js";
18
18
  import {
19
19
  cleanupCliSessionForDialog
20
- } from "./chunk-PCF3QU5Q.js";
20
+ } from "./chunk-2K4TM6AW.js";
21
21
  import {
22
22
  getActiveDialogAgentId,
23
23
  getDialogAgentIds,
@@ -48,7 +48,7 @@ import {
48
48
  } from "./chunk-YDH3FDFQ.js";
49
49
  import {
50
50
  fetchMessages
51
- } from "./chunk-ADBZWMFB.js";
51
+ } from "./chunk-YDO5ERB4.js";
52
52
  import {
53
53
  nolotusId
54
54
  } from "./chunk-A4SQRTZ6.js";
@@ -64,7 +64,7 @@ import {
64
64
  getModelInfo,
65
65
  normalizeUsage,
66
66
  resolveAutoExecutionProfile
67
- } from "./chunk-LKERWYPX.js";
67
+ } from "./chunk-IRZTHHNM.js";
68
68
  import {
69
69
  COMPACTION_SUMMARY_SYSTEM_PROMPT,
70
70
  buildCompactionMetricsFromPlan,
@@ -75,7 +75,7 @@ import {
75
75
  normalizeAssistantContentBuffer,
76
76
  planCompression,
77
77
  serializeMessageContent
78
- } from "./chunk-7MMSLEPA.js";
78
+ } from "./chunk-LB5A6JTU.js";
79
79
  import {
80
80
  asRecordOrEmpty
81
81
  } from "./chunk-KX6YBIHG.js";
@@ -85,7 +85,7 @@ import {
85
85
  remove,
86
86
  selectById,
87
87
  write
88
- } from "./chunk-4FFUDT6D.js";
88
+ } from "./chunk-56HJ2LAA.js";
89
89
  import {
90
90
  findModelConfig,
91
91
  getModelConfig
@@ -109,7 +109,7 @@ import {
109
109
  getRuntimeServerContext,
110
110
  parseOwnerUserIdFromDbKey,
111
111
  scheduleDeleteReplication
112
- } from "./chunk-UJXNKP5V.js";
112
+ } from "./chunk-O7SVKKLY.js";
113
113
  import {
114
114
  getRecordTimestamp,
115
115
  getTombstoneTimestamp,
@@ -140,7 +140,7 @@ import {
140
140
  isDialogRecordKey,
141
141
  isPageKey,
142
142
  isTableMetaKey
143
- } from "./chunk-3AH7LNUB.js";
143
+ } from "./chunk-ODAPITXL.js";
144
144
  import {
145
145
  asOptionalFiniteNumber
146
146
  } from "./chunk-WWC7I6TA.js";
@@ -10528,7 +10528,7 @@ var messageSlice = createSliceWithThunks({
10528
10528
  runtimeOptions: args.runtimeOptions
10529
10529
  });
10530
10530
  if (agentKeyToUse) {
10531
- const { streamAgentChatTurn } = await import("./agentSlice-WBSSBKBB.js");
10531
+ const { streamAgentChatTurn } = await import("./agentSlice-MR6JWMM5.js");
10532
10532
  await dispatch(
10533
10533
  streamAgentChatTurn({
10534
10534
  agentKey: agentKeyToUse,
@@ -13211,7 +13211,7 @@ var deleteOwnedDialogAttachments = async (args) => {
13211
13211
  metadataReadFailures
13212
13212
  });
13213
13213
  if (!plan.deleteCandidates.length) return plan;
13214
- const { deleteFileAction } = await import("./deleteFile-AJ2EZMHT.js");
13214
+ const { deleteFileAction } = await import("./deleteFile-KESP65GC.js");
13215
13215
  for (const candidate of plan.deleteCandidates) {
13216
13216
  if (candidate.fileDbKey) {
13217
13217
  await deleteFileAction(candidate.fileDbKey, args.thunkApi);
@@ -13273,7 +13273,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
13273
13273
  }
13274
13274
  if (isCurrentDialog) {
13275
13275
  await thunkApi.dispatch(resetMsgs());
13276
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-4GBOUTGL.js");
13276
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-KXBFWRVK.js");
13277
13277
  dispatch(clearPendingAttachments2());
13278
13278
  }
13279
13279
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -13281,39 +13281,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
13281
13281
 
13282
13282
  // packages/chat/dialog/dialogSlice.ts
13283
13283
  var runCreateDialogAction = async (args, thunkApi) => {
13284
- const { createDialogAction } = await import("./createDialogAction-DSEG4L5Y.js");
13284
+ const { createDialogAction } = await import("./createDialogAction-VODZCSHM.js");
13285
13285
  return createDialogAction(args, thunkApi);
13286
13286
  };
13287
13287
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
13288
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-5N2NRNR7.js");
13288
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-C5UTM2ZI.js");
13289
13289
  return createAgentAutomationAction(args, thunkApi);
13290
13290
  };
13291
13291
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
13292
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-7PNUE23W.js");
13292
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-NKHQ5LCX.js");
13293
13293
  return updateDialogTitleAction(args, thunkApi);
13294
13294
  };
13295
13295
  var runAddDialogAgentAction = async (args, thunkApi) => {
13296
- const { addDialogAgentAction } = await import("./addDialogAgentAction-IODCR6TB.js");
13296
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-O47J3MVW.js");
13297
13297
  return addDialogAgentAction(args, thunkApi);
13298
13298
  };
13299
13299
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
13300
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-46XQV5Q7.js");
13300
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-VIWJL6MX.js");
13301
13301
  return removeDialogAgentAction(args, thunkApi);
13302
13302
  };
13303
13303
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
13304
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-UHHV2QZW.js");
13304
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-B4P7YQX2.js");
13305
13305
  return setPrimaryDialogAgentAction(args, thunkApi);
13306
13306
  };
13307
13307
  var runSwitchDialogAgentAction = async (args, thunkApi) => {
13308
- const { switchDialogAgentAction } = await import("./switchDialogAgentAction-A2TMVGAE.js");
13308
+ const { switchDialogAgentAction } = await import("./switchDialogAgentAction-3VYWHZKH.js");
13309
13309
  return switchDialogAgentAction(args, thunkApi);
13310
13310
  };
13311
13311
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
13312
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-J4V5ADQF.js");
13312
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-A7VA3NFM.js");
13313
13313
  return setDialogExtraReferencesAction(args, thunkApi);
13314
13314
  };
13315
13315
  var runHandleSendMessageAction = async (args, thunkApi) => {
13316
- const { handleSendMessageAction } = await import("./handleSendMessageAction-XFZH2TQS.js");
13316
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-BBB6A54Z.js");
13317
13317
  return handleSendMessageAction(args, thunkApi);
13318
13318
  };
13319
13319
  function clearDialogState() {
@@ -13326,7 +13326,7 @@ var createPageAndAddReference = createAsyncThunk(
13326
13326
  async (payload, { dispatch, getState, rejectWithValue }) => {
13327
13327
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
13328
13328
  try {
13329
- const { createDocState } = await import("./docStore-ZTYSP3YE.js");
13329
+ const { createDocState } = await import("./docStore-PLGBTV5U.js");
13330
13330
  const pageKey = await createDocState(
13331
13331
  { slateData, title },
13332
13332
  { dispatch, getState }
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-5ZUL4CUO.js";
4
4
  import {
5
5
  getModelContextWindow
6
- } from "./chunk-LKERWYPX.js";
6
+ } from "./chunk-IRZTHHNM.js";
7
7
  import {
8
8
  findModelConfig,
9
9
  getProviderByModelName
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-PH275YDS.js";
4
+ } from "./chunk-MEZSLGQZ.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-GUYEMTRK.js";
7
+ } from "./chunk-YIEUDVD6.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-G53AA7RW.js";
10
+ } from "./chunk-BML3APFI.js";
11
11
  import {
12
12
  applyToolSurfaceConstraints
13
- } from "./chunk-4YSOUKUR.js";
13
+ } from "./chunk-7KWFIKKK.js";
14
14
  import {
15
15
  resolveLocalRuntimeEnvFromPolicy
16
- } from "./chunk-XFUBXRVI.js";
16
+ } from "./chunk-2H6SEVDS.js";
17
17
  import {
18
18
  asRecordOrEmpty
19
19
  } from "./chunk-KX6YBIHG.js";
@@ -38,7 +38,7 @@ import {
38
38
  } from "./chunk-KUG52IAP.js";
39
39
  import {
40
40
  asTrimmedNonEmptyStringArray
41
- } from "./chunk-3AH7LNUB.js";
41
+ } from "./chunk-ODAPITXL.js";
42
42
  import {
43
43
  asOptionalPositiveFiniteNumber
44
44
  } from "./chunk-U6VC4MU4.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  normalizeTimingMs
3
- } from "./chunk-7MMSLEPA.js";
3
+ } from "./chunk-LB5A6JTU.js";
4
4
  import {
5
5
  MODEL_LOOKUP_MAP
6
6
  } from "./chunk-3BXNTXYI.js";
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-BNGW5ASC.js";
13
13
  import {
14
14
  asTrimmedNonEmptyStringArray
15
- } from "./chunk-3AH7LNUB.js";
15
+ } from "./chunk-ODAPITXL.js";
16
16
  import {
17
17
  asOptionalFiniteNumber
18
18
  } from "./chunk-WWC7I6TA.js";
@@ -3,7 +3,7 @@ import {
3
3
  createFileCredentialBroker,
4
4
  migrateAgentSecrets,
5
5
  normalizeAgentRuntimeToolPolicy
6
- } from "./chunk-XFUBXRVI.js";
6
+ } from "./chunk-2H6SEVDS.js";
7
7
  import {
8
8
  asRecordOrEmpty
9
9
  } from "./chunk-KX6YBIHG.js";
@@ -11,14 +11,14 @@ import {
11
11
  patch,
12
12
  remove,
13
13
  write
14
- } from "./chunk-4FFUDT6D.js";
14
+ } from "./chunk-56HJ2LAA.js";
15
15
  import {
16
16
  getRuntimeServerContext
17
- } from "./chunk-UJXNKP5V.js";
17
+ } from "./chunk-O7SVKKLY.js";
18
18
  import {
19
19
  createAgentKey,
20
20
  toTrimmedString
21
- } from "./chunk-3AH7LNUB.js";
21
+ } from "./chunk-ODAPITXL.js";
22
22
  import {
23
23
  asyncThunkCreator,
24
24
  buildCreateSlice
@@ -306,7 +306,7 @@ var slice = createSliceWithThunks({
306
306
  const overrides = {};
307
307
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
308
308
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
309
- const { _executeModel } = await import("./_executeModel-WLFACVFR.js");
309
+ const { _executeModel } = await import("./_executeModel-TOH473HN.js");
310
310
  return _executeModel(
311
311
  {
312
312
  isStreaming: args.isStreaming ?? false,
@@ -327,7 +327,7 @@ var slice = createSliceWithThunks({
327
327
  * - 循环直到无工具调用或触发其他运行时停止条件
328
328
  */
329
329
  runAgent: create.asyncThunk(async (args, thunkApi) => {
330
- const { runAgentClientLoop } = await import("./runAgentClientLoop-URRDZ5WG.js");
330
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-CAPNBF7Q.js");
331
331
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
332
332
  {
333
333
  agentKey: args.agentKey,
@@ -343,7 +343,7 @@ var slice = createSliceWithThunks({
343
343
  * 聊天轮次流式 Agent 调用
344
344
  */
345
345
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
346
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-YPUYKXDX.js");
346
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-XX3N3P4J.js");
347
347
  return streamAgentChatTurnHandler(args, thunkApi);
348
348
  }),
349
349
  /**
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-M7VLQGQP.js";
5
5
  import {
6
6
  AGENT_SELECTION_PRIORITY_INSTRUCTIONS
7
- } from "./chunk-4YSOUKUR.js";
7
+ } from "./chunk-7KWFIKKK.js";
8
8
  import {
9
9
  getModelContextWindow
10
- } from "./chunk-LKERWYPX.js";
10
+ } from "./chunk-IRZTHHNM.js";
11
11
  import {
12
12
  estimateTokenCount
13
13
  } from "./chunk-PSCNXBYA.js";
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-PSCNXBYA.js";
4
4
  import {
5
5
  addContentAction
6
- } from "./chunk-E73ON47R.js";
6
+ } from "./chunk-5EPHWMP5.js";
7
7
  import {
8
8
  upload
9
- } from "./chunk-4FFUDT6D.js";
9
+ } from "./chunk-56HJ2LAA.js";
10
10
  import {
11
11
  getRuntimeServerContext
12
- } from "./chunk-UJXNKP5V.js";
12
+ } from "./chunk-O7SVKKLY.js";
13
13
  import {
14
14
  API_ENDPOINTS
15
15
  } from "./chunk-LCBAMY2M.js";