nolo-cli 0.153.2 → 0.154.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 (136) hide show
  1. package/{_executeModel-7PZNF3KM.js → _executeModel-3HHZYHHB.js} +44 -42
  2. package/accountResolver-55EDKEIK.js +1 -1
  3. package/action-GPPJC5TI.js +1 -1
  4. package/{addContentAction-BI6RDRTQ.js → addContentAction-XJQEJ4XW.js} +6 -6
  5. package/{addDialogAgentAction-4RJYUSIK.js → addDialogAgentAction-5WZX5CAY.js} +5 -5
  6. package/{agentDeleteCommand-52SBFMA4.js → agentDeleteCommand-ON2KVSJ5.js} +60 -60
  7. package/{agentEmailCommands-FLTHAK4Y.js → agentEmailCommands-2QPD5VP3.js} +63 -63
  8. package/{agentListCommands-LKFRVROH.js → agentListCommands-L33M3I6V.js} +33 -33
  9. package/{agentMachineCommands-V3E6STQ6.js → agentMachineCommands-V44DPSED.js} +30 -28
  10. package/{agentProviderCommands-MKG2OOEY.js → agentProviderCommands-CXBHNONN.js} +5 -5
  11. package/{agentPullCommand-FA43RBRU.js → agentPullCommand-GXXEDOSA.js} +4 -4
  12. package/{agentRecordCommands-KAOY56RD.js → agentRecordCommands-CKILCNQZ.js} +57 -57
  13. package/{agentRunCommand-FXAN65RN.js → agentRunCommand-6IN7NK7H.js} +59 -59
  14. package/{agentRunControl-2C5GM3BW.js → agentRunControl-XBSNHHZE.js} +7 -7
  15. package/{agentRuntimeLocal-V4URZOQL.js → agentRuntimeLocal-XCKO5FVP.js} +20 -18
  16. package/{agentSlice-LAV5TJXT.js → agentSlice-YT3VCCEW.js} +6 -6
  17. package/{appDeleteCommands-7EZRTNIP.js → appDeleteCommands-2PJFNLAJ.js} +28 -26
  18. package/{appDeployCommands-3U6MEES7.js → appDeployCommands-AZCMCMK6.js} +28 -26
  19. package/{appDeployStatusCommands-TAC6BYC6.js → appDeployStatusCommands-HSIKPVJN.js} +28 -26
  20. package/{appGetCommands-MFNPLXGO.js → appGetCommands-IUZCPAP7.js} +28 -26
  21. package/{appListCommands-QVZAUEUU.js → appListCommands-JLFVS44M.js} +28 -26
  22. package/{authCommand-NIV3DKPF.js → authCommand-3Z52KJID.js} +19 -19
  23. package/{authCommands-AMNIAKEG.js → authCommands-QOCKVPX3.js} +5 -5
  24. package/{builtinSkillRegistry-H3AY27TR.js → builtinSkillRegistry-LJV7FHNI.js} +4 -4
  25. package/{chunk-4RJJDA57.js → chunk-2ODX2C4E.js} +154 -30
  26. package/{chunk-UCLSOLX4.js → chunk-2XDQAWBM.js} +12 -12
  27. package/{chunk-XJOBYJWN.js → chunk-2ZYCNT2O.js} +72 -33
  28. package/{chunk-YIIQNHJW.js → chunk-3GTVM7NJ.js} +19 -19
  29. package/{chunk-US6MKPE7.js → chunk-3L5MSPWX.js} +1 -1
  30. package/{chunk-SGJRNVYF.js → chunk-4L4K6YR7.js} +16 -2
  31. package/{chunk-P5QACQDK.js → chunk-62TBKWTV.js} +1 -1
  32. package/{chunk-TRW43TSC.js → chunk-6EQD4AQL.js} +41 -1
  33. package/{chunk-YLMMECCH.js → chunk-6XIE5ZGI.js} +1 -1
  34. package/{chunk-J2ATF74A.js → chunk-BAWAKW7X.js} +1 -1
  35. package/{chunk-ZVQHBIWV.js → chunk-CDLP56BS.js} +7 -7
  36. package/{chunk-JPJGMOIM.js → chunk-DD2EOI6S.js} +1 -1
  37. package/{chunk-OON4OBWI.js → chunk-DLV3H464.js} +7 -7
  38. package/{chunk-RWSOTHY4.js → chunk-DT7EWFTY.js} +5 -5
  39. package/{chunk-IRTOYSA2.js → chunk-ESMZW5PE.js} +1 -1
  40. package/{chunk-V6P4AYYJ.js → chunk-EVPKKBSI.js} +13 -13
  41. package/{chunk-HB4XPBC7.js → chunk-EWO77ZGF.js} +9 -11
  42. package/{chunk-KJ7MT3UC.js → chunk-F3SOW2EU.js} +81 -1
  43. package/{chunk-T64RZQBO.js → chunk-F5WASHQA.js} +247 -132
  44. package/{chunk-WUGRUG5Z.js → chunk-FB5WLEOD.js} +12 -12
  45. package/{chunk-SOEJSA7I.js → chunk-FCUKCVKN.js} +4 -4
  46. package/{chunk-FY4SDK2E.js → chunk-FDLDMJTM.js} +1 -1
  47. package/{chunk-ICRRXBRN.js → chunk-FFHV45HO.js} +3 -3
  48. package/{chunk-BUCB3RT4.js → chunk-FZYKQFBQ.js} +3 -3
  49. package/{chunk-IE5PXKVU.js → chunk-G3VYRPTV.js} +5 -5
  50. package/{chunk-3CHPRXKY.js → chunk-HW7EBEC5.js} +26 -194
  51. package/{chunk-UFYBYB26.js → chunk-I7S63QUU.js} +1 -1
  52. package/{chunk-CON6SI7N.js → chunk-IF7V3CBU.js} +1 -1
  53. package/{chunk-RAEBIT7A.js → chunk-JDKSYQQN.js} +4 -4
  54. package/{chunk-K43ZF2C3.js → chunk-JPPQ3GUO.js} +1 -1
  55. package/{chunk-QJJQZ4EK.js → chunk-JSB2OPQT.js} +115 -119
  56. package/{chunk-M2P3OGXZ.js → chunk-JWEXJ573.js} +2 -2
  57. package/{chunk-7G4KH3C4.js → chunk-K25WQPP3.js} +220 -54
  58. package/{chunk-ZEY4NJRE.js → chunk-KABQ74UQ.js} +4 -4
  59. package/{chunk-3C2QLERX.js → chunk-KMDDG73K.js} +1 -1
  60. package/{chunk-SPKLALBU.js → chunk-MAYW6V3E.js} +1 -1
  61. package/{chunk-IPAW7XLD.js → chunk-MFVOJ6KF.js} +2 -2
  62. package/{chunk-NDZOXXIM.js → chunk-NHEWV5FD.js} +1 -1
  63. package/{chunk-QPY264HO.js → chunk-O2IWR23M.js} +1 -1
  64. package/{chunk-TFPOD4YZ.js → chunk-OLVOR45M.js} +2 -2
  65. package/{chunk-SUKSWFLP.js → chunk-PIG2IUVZ.js} +1 -1
  66. package/{chunk-AAMWEIEP.js → chunk-QA2C5NKI.js} +3 -3
  67. package/{chunk-3WIXU4XO.js → chunk-QI2WVWXV.js} +13 -1
  68. package/{chunk-VSJIIKGY.js → chunk-QXZH5UDF.js} +3 -3
  69. package/{chunk-SQ73U3BG.js → chunk-QZIOZDM6.js} +9 -9
  70. package/{chunk-MJ54WBLO.js → chunk-R2KWTENX.js} +3 -3
  71. package/{chunk-C3OK72G3.js → chunk-RIHQGFFA.js} +1 -1
  72. package/{chunk-DC3SZCRR.js → chunk-SH3XD4E2.js} +2 -2
  73. package/{chunk-MM3662RS.js → chunk-SNAWGDXT.js} +263 -4
  74. package/{chunk-JGRPBIZZ.js → chunk-SQX235S2.js} +1 -1
  75. package/chunk-TT644UJD.js +188 -0
  76. package/{chunk-IYBIRCQV.js → chunk-U34KT53V.js} +29 -11
  77. package/{chunk-ZJZGF77K.js → chunk-ULQAD7ZY.js} +18 -43
  78. package/{chunk-DJKBZYMR.js → chunk-UY73HNIN.js} +53 -49
  79. package/{chunk-I2RMFLLH.js → chunk-V7PCFWX3.js} +1 -1
  80. package/{chunk-KLA62VVE.js → chunk-VXS4YYJ2.js} +8 -8
  81. package/{chunk-JZX2XLKC.js → chunk-YCRROBDY.js} +1 -1
  82. package/{chunk-C5A3GWRG.js → chunk-YR47Y7CN.js} +6 -6
  83. package/{chunk-AXYXKGPN.js → chunk-ZAV4YVEA.js} +1 -1
  84. package/{chunk-YANF2RR4.js → chunk-ZPKUJROL.js} +1 -1
  85. package/{chunk-AWY25K65.js → chunk-ZSLIYVIQ.js} +7 -7
  86. package/{commandRegistry-BZGZP4AW.js → commandRegistry-4LWXIPNX.js} +83 -83
  87. package/{contentThunks-56AWRCC4.js → contentThunks-QBL5NK2W.js} +17 -17
  88. package/{createAgentAutomationAction-W5D4IHHK.js → createAgentAutomationAction-5UWBLR2N.js} +17 -17
  89. package/{createDialogAction-YMU646CH.js → createDialogAction-NJ2LE7KC.js} +21 -21
  90. package/{createPageAction-T4WRPDOH.js → createPageAction-7T3RINS2.js} +19 -19
  91. package/{dbSlice-DC2J53RC.js → dbSlice-6PVPY44C.js} +5 -5
  92. package/{deleteFile-KYWEMNFX.js → deleteFile-YM6NDPAR.js} +3 -3
  93. package/{dialogCommands-3T3LM566.js → dialogCommands-KMECTGCW.js} +30 -28
  94. package/{dialogSlice-Z5KOY4CC.js → dialogSlice-GQMTD4HR.js} +16 -16
  95. package/{docCreateCommands-OLNS64OJ.js → docCreateCommands-4IT5PUAL.js} +30 -28
  96. package/{docDeleteCommands-U4UOLXZQ.js → docDeleteCommands-QS66YNZV.js} +31 -29
  97. package/{docReadCommands-WUYVWGOH.js → docReadCommands-3SAI46YC.js} +30 -28
  98. package/{docStore-2EN5A7PW.js → docStore-PM5PYKPZ.js} +6 -6
  99. package/{docUpdateCommands-RKVB6XAQ.js → docUpdateCommands-OGYG5BRC.js} +30 -28
  100. package/{getPricing-TX35D7PI.js → getPricing-XQ3N3RBP.js} +2 -2
  101. package/{handleSendMessageAction-EF3LOTXW.js → handleSendMessageAction-EQ3U6K5N.js} +35 -31
  102. package/index.js +7 -7
  103. package/{localRuntimeAdapter-OAHN57AM.js → localRuntimeAdapter-MO64KEOS.js} +53 -53
  104. package/{localRuntimeAuthority-JDAD7CB6.js → localRuntimeAuthority-BPN5OAQG.js} +2 -2
  105. package/{localRuntimeDb-CVC62PM5.js → localRuntimeDb-QIVAXMUL.js} +1 -1
  106. package/{machineCommands-RTYX5UN3.js → machineCommands-7MBJJY4K.js} +60 -60
  107. package/{machineWsRunDispatch-ELDKKIHF.js → machineWsRunDispatch-T4LFRJL3.js} +55 -55
  108. package/{memberThunks-2DWKLE6W.js → memberThunks-AZINUM4S.js} +8 -8
  109. package/package.json +1 -1
  110. package/{providerPresetApply-GSJI4JBJ.js → providerPresetApply-PKUOHQJT.js} +5 -5
  111. package/{providerRegistry-TSSTPGWF.js → providerRegistry-HNQLIFN2.js} +5 -5
  112. package/{read-L7QEJETH.js → read-7JPIWRBQ.js} +3 -3
  113. package/{readDocTool-QELXV2GW.js → readDocTool-AAQTB2Y3.js} +1 -1
  114. package/{readlineWorkspace-BUEUGN7D.js → readlineWorkspace-2DR5GHLQ.js} +92 -126
  115. package/{removeDialogAgentAction-376XSUP2.js → removeDialogAgentAction-RMVRILLK.js} +6 -6
  116. package/{runAgentClientLoop-BDN5VYZN.js → runAgentClientLoop-EXIQDX7G.js} +42 -40
  117. package/{runtimeDoctorCommands-56NWKNON.js → runtimeDoctorCommands-MMCP4B4U.js} +12 -12
  118. package/{setDialogExtraReferencesAction-QBDSH63D.js → setDialogExtraReferencesAction-L3V7JTMG.js} +6 -6
  119. package/{setPrimaryDialogAgentAction-537QFGW3.js → setPrimaryDialogAgentAction-X52JQGTJ.js} +6 -6
  120. package/{settingThunks-4Z43ZSAT.js → settingThunks-N6XFWPOU.js} +5 -5
  121. package/{spaceCommands-KHCPOFEB.js → spaceCommands-WQMUCGV7.js} +27 -25
  122. package/{streamAgentChatTurn-WFNIELXS.js → streamAgentChatTurn-DI2334G3.js} +142 -81
  123. package/{switchDialogAgentAction-CSO6AKRL.js → switchDialogAgentAction-ZJ5CGU7J.js} +5 -5
  124. package/{tools-2LGM37M4.js → tools-23VQGJOX.js} +32 -32
  125. package/{tuiSummaryLlmCaller-NBEHCAFU.js → tuiSummaryLlmCaller-FESHBDTT.js} +7 -7
  126. package/{updateCommands-LXZLG44Y.js → updateCommands-ODWC7SK7.js} +5 -3
  127. package/{updateDialogTitleAction-IFC2MM4P.js → updateDialogTitleAction-AGAYHWS7.js} +17 -17
  128. package/chunk-UKZX3NHN.js +0 -48
  129. package/{agentGrantCommands-HOJ3JBBQ.js → agentGrantCommands-5DPHYEKP.js} +3 -3
  130. package/{chromeOpsCommands-3Z34RKSE.js → chromeOpsCommands-GZVVK7HU.js} +4 -4
  131. package/{chunk-2SGAI64X.js → chunk-43OFVLWJ.js} +4 -4
  132. package/{chunk-XETG4RIX.js → chunk-AETZ7AD6.js} +4 -4
  133. package/{chunk-2IXDJNZI.js → chunk-GAGGEA7D.js} +3 -3
  134. package/{memoryCommands-CUNBFRVS.js → memoryCommands-ZS3VQJAL.js} +3 -3
  135. package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-3GLX4QQY.js} +3 -3
  136. package/{tableCommands-LBH3QPPO.js → tableCommands-IVC5S7Y3.js} +11 -11
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-VYNMQ6HW.js";
9
9
  import {
10
10
  fetchAndCacheTableRows
11
- } from "./chunk-C5A3GWRG.js";
11
+ } from "./chunk-YR47Y7CN.js";
12
12
  import {
13
13
  require_react
14
14
  } from "./chunk-YDH3FDFQ.js";
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  resolveBuiltinCapability,
24
24
  resolveBuiltinSkillEntry
25
- } from "./chunk-DC3SZCRR.js";
25
+ } from "./chunk-SH3XD4E2.js";
26
26
  import {
27
27
  DEFAULT_SYSTEM_AGENT_CAPABILITIES
28
28
  } from "./chunk-EUGTFFO6.js";
@@ -521,7 +521,7 @@ var executeToolRun = createAsyncThunk(
521
521
  if (!executionInput) {
522
522
  throw new Error(`ToolRun ${id} has no input to execute with.`);
523
523
  }
524
- const { findToolExecutor } = await import("./tools-2LGM37M4.js");
524
+ const { findToolExecutor } = await import("./tools-23VQGJOX.js");
525
525
  const { executor } = findToolExecutor(run.toolName);
526
526
  toolRunStarted({
527
527
  id: run.id,
@@ -545,7 +545,7 @@ var executeToolRun = createAsyncThunk(
545
545
  const latestState = thunkApi.getState();
546
546
  const userId = selectIdentityUserId(latestState);
547
547
  if (userId) {
548
- const { fetchUserSpaceMemberships } = await import("./memberThunks-2DWKLE6W.js");
548
+ const { fetchUserSpaceMemberships } = await import("./memberThunks-AZINUM4S.js");
549
549
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
550
550
  }
551
551
  }
@@ -14,7 +14,7 @@ function buildCliLocalRuntimeDbEnv(env = process.env) {
14
14
  };
15
15
  }
16
16
  async function getDefaultCliLocalRuntimeDb(options = {}) {
17
- const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-JDAD7CB6.js");
17
+ const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-BPN5OAQG.js");
18
18
  return getAuthorityBackedDb(options);
19
19
  }
20
20
 
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  listUserRecordsFromServers,
3
3
  readLiveDbRecordAfterTombstoneMerge
4
- } from "./chunk-QPY264HO.js";
4
+ } from "./chunk-O2IWR23M.js";
5
5
  import {
6
6
  agentRecordHasConfiguredCredential
7
- } from "./chunk-ZEY4NJRE.js";
7
+ } from "./chunk-KABQ74UQ.js";
8
8
  import {
9
9
  deriveCredentialGroup
10
- } from "./chunk-KLA62VVE.js";
10
+ } from "./chunk-VXS4YYJ2.js";
11
11
  import {
12
12
  isTombstoneRecord
13
13
  } from "./chunk-D2MDMY2M.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-SQ73U3BG.js";
4
+ } from "./chunk-QZIOZDM6.js";
5
5
  import {
6
6
  updateTokensAction
7
- } from "./chunk-T64RZQBO.js";
7
+ } from "./chunk-F5WASHQA.js";
8
8
  import {
9
9
  applyUpdateTokensFulfilled
10
10
  } from "./chunk-OWYYDMGJ.js";
@@ -12,7 +12,7 @@ import {
12
12
  extractReasoningFromResponseOutput,
13
13
  extractTextFromResponseOutput,
14
14
  extractToolCallsFromResponseOutput
15
- } from "./chunk-SGJRNVYF.js";
15
+ } from "./chunk-4L4K6YR7.js";
16
16
  import {
17
17
  isRecord
18
18
  } from "./chunk-KUG52IAP.js";
@@ -1,3 +1,7 @@
1
+ import {
2
+ buildEnvFromProfile,
3
+ loadProfileConfig
4
+ } from "./chunk-R5GO3YZP.js";
1
5
  import {
2
6
  ANTIGRAVITY_AUTH_URL,
3
7
  ANTIGRAVITY_CALLBACK_PATH,
@@ -11,7 +15,7 @@ import {
11
15
  getAntigravityUserAgent,
12
16
  normalizeAntigravityTokenPayload,
13
17
  refreshAntigravityToken
14
- } from "./chunk-JGRPBIZZ.js";
18
+ } from "./chunk-SQX235S2.js";
15
19
  import {
16
20
  asOptionalFiniteNumber
17
21
  } from "./chunk-WWC7I6TA.js";
@@ -24,10 +28,6 @@ import {
24
28
  import {
25
29
  toErrorMessage
26
30
  } from "./chunk-HNMXYYJR.js";
27
- import {
28
- buildEnvFromProfile,
29
- loadProfileConfig
30
- } from "./chunk-R5GO3YZP.js";
31
31
  import {
32
32
  writeOAuthCredential
33
33
  } from "./chunk-ZWQUWF6W.js";
@@ -3,19 +3,17 @@ import {
3
3
  } from "./chunk-HS7MLR74.js";
4
4
  import {
5
5
  performServerProxyFetchWithRetry
6
- } from "./chunk-SQ73U3BG.js";
7
- import {
8
- shouldUseServerProxy
9
- } from "./chunk-UKZX3NHN.js";
6
+ } from "./chunk-QZIOZDM6.js";
10
7
  import {
11
8
  fetchServerSyncedCredential
12
- } from "./chunk-RWSOTHY4.js";
9
+ } from "./chunk-DT7EWFTY.js";
13
10
  import {
14
11
  buildSkillGuidancePromptBlock
15
- } from "./chunk-DC3SZCRR.js";
12
+ } from "./chunk-SH3XD4E2.js";
16
13
  import {
17
14
  CREDENTIAL_HYGIENE_RULE,
18
15
  DELETE_SAFETY_RED_LINE,
16
+ DISPATCH_BACKEND_POLICY,
19
17
  PARALLEL_DISPATCH_DEFAULT_RULE,
20
18
  PLATFORM_RISK_CONTROL_RULE,
21
19
  buildConsultationModeBlock,
@@ -25,7 +23,7 @@ import {
25
23
  compileContextLayers,
26
24
  detectDispatchIntentFromMessages,
27
25
  resolveToolGuidedSections
28
- } from "./chunk-3WIXU4XO.js";
26
+ } from "./chunk-QI2WVWXV.js";
29
27
  import {
30
28
  convertMessagesToResponsesInput,
31
29
  getUsageRequestOptions,
@@ -34,32 +32,33 @@ import {
34
32
  resolveReasoningReplayOptions,
35
33
  shouldStripReasoningContentForOutbound,
36
34
  stablePromptCacheKey
37
- } from "./chunk-SGJRNVYF.js";
35
+ } from "./chunk-4L4K6YR7.js";
36
+ import {
37
+ resolveAgentCallPlan,
38
+ resolveClientWire
39
+ } from "./chunk-TT644UJD.js";
38
40
  import {
39
41
  createFileCredentialBroker
40
42
  } from "./chunk-UHTDNB5Y.js";
43
+ import {
44
+ MEMORY_USE_GUIDANCE,
45
+ buildUserResponseLanguageContext,
46
+ wrapHistoricalSummaryWithReplayGuard
47
+ } from "./chunk-4VJAC32I.js";
41
48
  import {
42
49
  canonicalizeToolNames
43
50
  } from "./chunk-5EBLANFT.js";
44
51
  import {
45
- ANTIGRAVITY_CLOUD_CODE_BASE_URL,
46
- isAntigravityCloudCodeBaseUrl,
47
- isAntigravityOAuthAgent
48
- } from "./chunk-JGRPBIZZ.js";
52
+ API_ENDPOINTS
53
+ } from "./chunk-LCBAMY2M.js";
49
54
  import {
50
55
  buildProviderAuthHeaders
51
- } from "./chunk-SUKSWFLP.js";
52
- import {
53
- isOpenAiResponsesModel,
54
- resolvePlatformChatCompletionsEndpoint,
55
- resolvePlatformResponsesEndpoint
56
- } from "./chunk-I2RMFLLH.js";
56
+ } from "./chunk-PIG2IUVZ.js";
57
57
  import {
58
58
  clampReasoningEffort,
59
- findModelConfig,
60
59
  getModelConfig,
61
60
  isModelSupportReasoningEffort
62
- } from "./chunk-TRW43TSC.js";
61
+ } from "./chunk-6EQD4AQL.js";
63
62
  import {
64
63
  isRecord
65
64
  } from "./chunk-KUG52IAP.js";
@@ -69,9 +68,6 @@ import {
69
68
  import {
70
69
  toErrorMessage
71
70
  } from "./chunk-HNMXYYJR.js";
72
- import {
73
- API_ENDPOINTS
74
- } from "./chunk-LCBAMY2M.js";
75
71
  import {
76
72
  isLoopbackUrl
77
73
  } from "./chunk-4SN6J65J.js";
@@ -84,14 +80,6 @@ import {
84
80
  isPlatformMimoProviderModel,
85
81
  resolveFireworksKimiModel
86
82
  } from "./chunk-CGFNDIKK.js";
87
- import {
88
- asTrimmedLowercaseString
89
- } from "./chunk-QSJ3HFEF.js";
90
- import {
91
- MEMORY_USE_GUIDANCE,
92
- buildUserResponseLanguageContext,
93
- wrapHistoricalSummaryWithReplayGuard
94
- } from "./chunk-4VJAC32I.js";
95
83
 
96
84
  // packages/agent-runtime/responsesConversationState.ts
97
85
  function supportsResponsesConversationState(agent) {
@@ -132,167 +120,6 @@ function isResponsesConversationStateRejection(status, responseBody) {
132
120
  return mentionsResponseState && rejectsState;
133
121
  }
134
122
 
135
- // packages/agent-runtime/agentCallPlan.ts
136
- var CODEX_RESPONSES_URL = "https://chatgpt.com/backend-api/codex/responses";
137
- var CURSOR_AGENT_URL = "https://api2.cursor.sh/agent.v1.AgentService/Run";
138
- var DEVIN_CONNECT_URL = "https://server.codeium.com/exa.api_server_pb.ApiServerService/GetChatMessage";
139
- function resolveClientWire(plan) {
140
- if (plan.upstreamWire === "gemini-cca") return "chat.completions";
141
- if (plan.upstreamWire === "anthropic-messages") return "chat.completions";
142
- if (plan.upstreamWire === "cursor-connect") return "chat.completions";
143
- if (plan.upstreamWire === "devin-connect") return "chat.completions";
144
- if (plan.upstreamWire === "custom-gemini") return "chat.completions";
145
- if (plan.upstreamWire === "custom-openai-responses") return "chat.completions";
146
- if (plan.upstreamWire === "custom-anthropic-messages") return "chat.completions";
147
- if (plan.upstreamWire === "responses" && plan.authMethod.kind === "oauth" && plan.authMethod.ref === "chatgpt") {
148
- return "chat.completions";
149
- }
150
- return plan.upstreamWire;
151
- }
152
- var XAI_CHAT_COMPLETIONS_URL = "https://api.x.ai/v1/chat/completions";
153
- var ANTHROPIC_MESSAGES_URL = "https://api.anthropic.com/v1/messages";
154
- var CODEX_REQUIRED_HEADERS = [
155
- "chatgpt-account-id",
156
- "OpenAI-Beta",
157
- "originator",
158
- "version"
159
- ];
160
- var ANTIGRAVITY_REQUIRED_HEADERS = [
161
- "User-Agent"
162
- // antigravity-specific UA (matches getAntigravityUserAgent)
163
- ];
164
- function agentShouldUseServerProxy(agentConfig) {
165
- return shouldUseServerProxy(agentConfig);
166
- }
167
- function resolveCustomUpstreamWire(endpoint, nativeProtocol) {
168
- const responsesEndpoint = endpoint.includes("/responses");
169
- if (nativeProtocol === "openai-responses" && responsesEndpoint) return "responses";
170
- if (nativeProtocol === "gemini") return "custom-gemini";
171
- if (nativeProtocol === "openai-responses") return "custom-openai-responses";
172
- if (nativeProtocol === "anthropic-messages") return "custom-anthropic-messages";
173
- return responsesEndpoint ? "responses" : "chat.completions";
174
- }
175
- function hasOwnCustomProviderKey(agentConfig) {
176
- const endpoint = asOptionalTrimmedString(agentConfig.customProviderUrl);
177
- if (!endpoint) return false;
178
- if (isAntigravityCloudCodeBaseUrl(endpoint)) return false;
179
- return Boolean(asOptionalTrimmedString(agentConfig.apiKey));
180
- }
181
- function resolveAgentCallPlan(agentConfig, _env) {
182
- const apiKeyRef = asTrimmedLowercaseString(agentConfig.apiKeyRef);
183
- const provider = asTrimmedLowercaseString(
184
- agentConfig.provider ?? agentConfig.apiSource
185
- );
186
- const ownCustomKeyWins = hasOwnCustomProviderKey(agentConfig);
187
- const oauthApiKeyRef = ownCustomKeyWins ? "" : apiKeyRef;
188
- if (!ownCustomKeyWins && isAntigravityOAuthAgent(agentConfig)) {
189
- return {
190
- authMethod: { kind: "oauth", ref: "antigravity" },
191
- transport: "server-proxy",
192
- upstreamWire: "gemini-cca",
193
- endpoint: ANTIGRAVITY_CLOUD_CODE_BASE_URL,
194
- requiredHeaders: [...ANTIGRAVITY_REQUIRED_HEADERS],
195
- vendor: provider || "google-antigravity"
196
- };
197
- }
198
- if (oauthApiKeyRef === "chatgpt") {
199
- return {
200
- authMethod: { kind: "oauth", ref: "chatgpt" },
201
- transport: "server-proxy",
202
- upstreamWire: "responses",
203
- endpoint: CODEX_RESPONSES_URL,
204
- requiredHeaders: [...CODEX_REQUIRED_HEADERS],
205
- vendor: provider || "openai"
206
- };
207
- }
208
- if (oauthApiKeyRef === "claude") {
209
- return {
210
- authMethod: { kind: "oauth", ref: "claude" },
211
- transport: "server-proxy",
212
- upstreamWire: "anthropic-messages",
213
- endpoint: ANTHROPIC_MESSAGES_URL,
214
- requiredHeaders: ["anthropic-version", "anthropic-beta"],
215
- vendor: provider || "anthropic"
216
- };
217
- }
218
- if (oauthApiKeyRef === "xai") {
219
- return {
220
- authMethod: { kind: "oauth", ref: "xai" },
221
- transport: "server-proxy",
222
- upstreamWire: "chat.completions",
223
- endpoint: XAI_CHAT_COMPLETIONS_URL,
224
- requiredHeaders: [],
225
- vendor: provider || "xai"
226
- };
227
- }
228
- if (oauthApiKeyRef === "cursor") {
229
- return {
230
- authMethod: { kind: "oauth", ref: "cursor" },
231
- transport: "server-proxy",
232
- upstreamWire: "cursor-connect",
233
- endpoint: CURSOR_AGENT_URL,
234
- requiredHeaders: [
235
- "x-cursor-client-version",
236
- "x-cursor-client-type",
237
- "x-ghost-mode"
238
- ],
239
- vendor: provider || "cursor"
240
- };
241
- }
242
- if (oauthApiKeyRef === "devin" || !ownCustomKeyWins && provider === "devin") {
243
- return {
244
- authMethod: { kind: "oauth", ref: "devin" },
245
- transport: "server-proxy",
246
- upstreamWire: "devin-connect",
247
- endpoint: DEVIN_CONNECT_URL,
248
- requiredHeaders: ["connect-protocol-version"],
249
- vendor: provider || "devin"
250
- };
251
- }
252
- if (agentConfig.cliProvider || agentConfig.apiSource === "cli" || provider === "cli") {
253
- return {
254
- authMethod: { kind: "cli", provider: agentConfig.cliProvider || provider || "codex" },
255
- transport: "direct",
256
- upstreamWire: "cli",
257
- endpoint: "",
258
- requiredHeaders: [],
259
- vendor: provider || "cli"
260
- };
261
- }
262
- if (agentConfig.customProviderUrl || agentConfig.apiSource === "custom") {
263
- const transport2 = agentShouldUseServerProxy(agentConfig) ? "server-proxy" : "direct";
264
- const endpoint2 = asOptionalTrimmedString(agentConfig.customProviderUrl) ?? "";
265
- const upstreamWire2 = resolveCustomUpstreamWire(
266
- endpoint2,
267
- findModelConfig(provider, agentConfig.model ?? "")?.nativeProtocol
268
- );
269
- return {
270
- authMethod: { kind: "custom-key" },
271
- transport: transport2,
272
- upstreamWire: upstreamWire2,
273
- endpoint: endpoint2,
274
- requiredHeaders: [],
275
- vendor: provider || "custom"
276
- };
277
- }
278
- const transport = agentShouldUseServerProxy(agentConfig) ? "server-proxy" : "direct";
279
- const useResponses = isOpenAiResponsesModel({
280
- provider,
281
- model: agentConfig.model,
282
- endpointKey: agentConfig.endpointKey
283
- });
284
- const upstreamWire = useResponses ? "responses" : "chat.completions";
285
- const endpoint = upstreamWire === "responses" ? resolvePlatformResponsesEndpoint(provider, agentConfig.model) ?? "" : resolvePlatformChatCompletionsEndpoint(provider, agentConfig.model) ?? "";
286
- return {
287
- authMethod: { kind: "platform-key" },
288
- transport,
289
- upstreamWire,
290
- endpoint,
291
- requiredHeaders: [],
292
- vendor: provider || "openai"
293
- };
294
- }
295
-
296
123
  // packages/ai/agent/buildSystemPrompt.ts
297
124
  var CLARIFICATION_MODE_INSTRUCTIONS = `\u5728\u4F60\u8FD8\u4E0D\u4E86\u89E3\u7528\u6237\u610F\u56FE\u65F6\uFF0C\u901A\u8FC7\u63D0\u95EE\u6765\u6F84\u6E05\u9700\u6C42\uFF0C\u800C\u4E0D\u662F\u4ED3\u4FC3\u7ED9\u51FA\u7B54\u6848\u3002`;
298
125
  var isBrowser = typeof window !== "undefined";
@@ -458,6 +285,13 @@ ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
458
285
  cacheScope: "static",
459
286
  content: PARALLEL_DISPATCH_DEFAULT_RULE
460
287
  },
288
+ // 派发落点:并行派发纪律的下一层(派到哪个执行后端),紧随并行块。
289
+ {
290
+ id: "dispatch-backend-policy",
291
+ owner: "platform",
292
+ cacheScope: "static",
293
+ content: DISPATCH_BACKEND_POLICY
294
+ },
461
295
  // 平台风控纪律:无条件静态前缀,紧随并行派发块。
462
296
  {
463
297
  id: "platform-risk-control",
@@ -1393,8 +1227,6 @@ export {
1393
1227
  selectResponsesConversationState,
1394
1228
  updateResponsesConversationState,
1395
1229
  isResponsesConversationStateRejection,
1396
- resolveClientWire,
1397
- resolveAgentCallPlan,
1398
1230
  generateRequestBody,
1399
1231
  CONFIRMATION_INPUT_KEYS,
1400
1232
  stripModelToolArgs,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  generatePkcePair,
3
3
  startCallbackServer
4
- } from "./chunk-IE5PXKVU.js";
4
+ } from "./chunk-G3VYRPTV.js";
5
5
  import {
6
6
  asOptionalFiniteNumber
7
7
  } from "./chunk-WWC7I6TA.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  patch,
9
9
  selectById
10
- } from "./chunk-ZVQHBIWV.js";
10
+ } from "./chunk-CDLP56BS.js";
11
11
 
12
12
  // packages/chat/dialog/actions/setDialogExtraReferencesAction.ts
13
13
  var setDialogExtraReferencesAction = async (extraReferences, thunkApi) => {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-C5A3GWRG.js";
3
+ } from "./chunk-YR47Y7CN.js";
4
4
  import {
5
5
  format,
6
6
  prepareAndPersistMessage,
7
7
  uiAskChoiceFunc,
8
8
  uiAskChoiceFunctionSchema
9
- } from "./chunk-T64RZQBO.js";
9
+ } from "./chunk-F5WASHQA.js";
10
10
  import {
11
11
  formatISO
12
12
  } from "./chunk-ZRAU6T47.js";
@@ -16,7 +16,7 @@ import {
16
16
  removeCachedEntity,
17
17
  upsertSSREntity,
18
18
  write
19
- } from "./chunk-ZVQHBIWV.js";
19
+ } from "./chunk-CDLP56BS.js";
20
20
  import {
21
21
  isDevelopment
22
22
  } from "./chunk-6Q7UTJKR.js";
@@ -25,7 +25,7 @@ import {
25
25
  } from "./chunk-PXYBUFDB.js";
26
26
  import {
27
27
  buildBuiltinObjectSkillReference
28
- } from "./chunk-JZX2XLKC.js";
28
+ } from "./chunk-YCRROBDY.js";
29
29
  import {
30
30
  extractCustomId
31
31
  } from "./chunk-M2EJHDJP.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolvePlatformAuthToken
3
- } from "./chunk-SUKSWFLP.js";
3
+ } from "./chunk-PIG2IUVZ.js";
4
4
  import {
5
5
  getCredentialsDir
6
6
  } from "./chunk-ZWQUWF6W.js";