nolo-cli 0.15.0 → 0.16.0-alpha.10

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 (97) hide show
  1. package/{_executeModel-QAUS6B7J.js → _executeModel-6BR65FSI.js} +29 -28
  2. package/{action-GUOZYYGN.js → action-F5JACQBG.js} +4 -4
  3. package/{addContentAction-QDGHGUBH.js → addContentAction-AQXEYRBE.js} +3 -3
  4. package/{addDialogAgentAction-Z4YCYZIV.js → addDialogAgentAction-EJHHJZWW.js} +2 -2
  5. package/{agentDeleteCommand-QDO62EZA.js → agentDeleteCommand-PBIUC4FT.js} +18 -17
  6. package/{agentEmailCommands-UZ5BKX3P.js → agentEmailCommands-KNZY4HXV.js} +35 -34
  7. package/{agentListCommands-ZC33UDWT.js → agentListCommands-N64PHBXM.js} +20 -19
  8. package/{agentMachineCommands-RZGZEZRL.js → agentMachineCommands-2AIPJKFM.js} +18 -17
  9. package/{agentRecordCommands-DGDXE2VH.js → agentRecordCommands-TB4N7YSB.js} +34 -33
  10. package/{agentRunCommand-SRZWFOPH.js → agentRunCommand-UVW2ZLKT.js} +34 -33
  11. package/{agentRuntimeLocal-4YCF6IRF.js → agentRuntimeLocal-T6YECTNF.js} +15 -16
  12. package/{agentSlice-IVE735EV.js → agentSlice-533PEM4O.js} +3 -3
  13. package/{appDeleteCommands-7I26L64I.js → appDeleteCommands-D6B6Z4ZQ.js} +19 -18
  14. package/{appDeployCommands-TZLZNTJN.js → appDeployCommands-YMO5FK4T.js} +19 -18
  15. package/{appDeployStatusCommands-OPPTLHRW.js → appDeployStatusCommands-EO5DWWPQ.js} +19 -18
  16. package/{appGetCommands-N2S4HYKY.js → appGetCommands-6SMZ3URQ.js} +19 -18
  17. package/{appListCommands-OBTPPKUM.js → appListCommands-RZXSWR2G.js} +19 -18
  18. package/{authCommand-YFTR3347.js → authCommand-MSSBXCQ6.js} +8 -2
  19. package/{chunk-OQMPU2ML.js → chunk-2OUI4TLC.js} +4 -4
  20. package/{chunk-SFXYKGK2.js → chunk-3S2VOMIF.js} +3 -3
  21. package/{chunk-JBKVPAYK.js → chunk-6KBBMW4D.js} +2 -2
  22. package/{chunk-U7LEGLEB.js → chunk-6N4KODMN.js} +1 -1
  23. package/{chunk-IZ2QRVEU.js → chunk-A7O4KKLZ.js} +3 -3
  24. package/{chunk-WA6KZL5V.js → chunk-AAODAAUQ.js} +23 -20
  25. package/{chunk-K53477EY.js → chunk-C4MMO7W4.js} +1 -1
  26. package/{chunk-YNHQIXX5.js → chunk-CXM4IIUF.js} +21 -21
  27. package/{chunk-JKWWVF2I.js → chunk-D3HVJJIA.js} +1 -1
  28. package/{chunk-XGQZFBO5.js → chunk-DBLHEQH7.js} +148 -175
  29. package/{chunk-TTGAVETO.js → chunk-EABWT43X.js} +2 -2
  30. package/{chunk-OKSYPTDZ.js → chunk-F3UOACU4.js} +1 -1
  31. package/{chunk-VE6XMVKG.js → chunk-G2IQGDQZ.js} +163 -53
  32. package/{chunk-RKM3K52F.js → chunk-GPELDE6I.js} +2 -2
  33. package/{chunk-OGGHETUE.js → chunk-HQPG2PIV.js} +62 -19
  34. package/{chunk-XVP3C2KY.js → chunk-IWLUTMYX.js} +1 -1
  35. package/{chunk-B4KT7RN2.js → chunk-JTMNCCWF.js} +2 -2
  36. package/chunk-KFEVY3ST.js +255 -0
  37. package/{chunk-WNLPAOIT.js → chunk-KFHN5NGJ.js} +1 -1
  38. package/{chunk-P4MJQWWF.js → chunk-KPD4CEQD.js} +2 -2
  39. package/{chunk-G2MKOQCB.js → chunk-KPJWHHG4.js} +1 -1
  40. package/{chunk-ISYE6GZB.js → chunk-L6NVTGI7.js} +1 -1
  41. package/{chunk-O53CP2QR.js → chunk-LCMAJFAD.js} +3 -3
  42. package/{chunk-UXKQQ2MR.js → chunk-LO6JNGCT.js} +3 -3
  43. package/{chunk-472E5RMQ.js → chunk-MSA4JAOZ.js} +1 -1
  44. package/{chunk-HRQCKQA5.js → chunk-MUCU6ATG.js} +8 -257
  45. package/{chunk-524BDL33.js → chunk-O6W2O2DA.js} +1 -15
  46. package/{chunk-4QQFLN5C.js → chunk-OVBVEXZ7.js} +4 -4
  47. package/{chunk-IOQ7IBPU.js → chunk-PU4LXVAC.js} +1 -1
  48. package/{chunk-Z24FGIU2.js → chunk-R4L524UB.js} +3 -3
  49. package/{chunk-4IJYA27C.js → chunk-RG2U2MTJ.js} +1 -1
  50. package/{chunk-6MHDWKOT.js → chunk-RIF3XLXK.js} +9 -5
  51. package/{chunk-IKXL2HZ3.js → chunk-RK5NYQEL.js} +1 -1
  52. package/{chunk-JS33TCQ3.js → chunk-RPDGJO4D.js} +2 -2
  53. package/{chunk-BFRVXJJJ.js → chunk-SI73WO7P.js} +10 -10
  54. package/{chunk-WRN5EQT7.js → chunk-T26DWCH5.js} +3 -3
  55. package/{chunk-EHLHSX7R.js → chunk-UB4RYYNQ.js} +9 -2
  56. package/{chunk-5VMYGIIL.js → chunk-VHXXRWNL.js} +23 -9
  57. package/{chunk-OOIN7HSO.js → chunk-XJITGCTM.js} +10 -1
  58. package/{chunk-AWDOJBHW.js → chunk-XJYXSTBK.js} +883 -174
  59. package/{chunk-V2J635L5.js → chunk-XOIF2TNF.js} +2 -2
  60. package/{chunk-VPTJB4HM.js → chunk-XPC5C7BK.js} +0 -3
  61. package/{chunk-NTC6I2FN.js → chunk-XRSPI6CP.js} +1 -1
  62. package/{chunk-N5424GSW.js → chunk-YJKXGHJ6.js} +1 -1
  63. package/chunk-ZHXJ6M7T.js +27 -0
  64. package/{chunk-6565R2TI.js → chunk-ZOQNJXMS.js} +23 -18
  65. package/{createAgentAutomationAction-TS6NNZ4X.js → createAgentAutomationAction-OARFMDWU.js} +13 -13
  66. package/{createDialogAction-5HVQ33EX.js → createDialogAction-4E6ALCDK.js} +14 -14
  67. package/{createPageAction-4F3ZGQJD.js → createPageAction-RS65DDRX.js} +13 -13
  68. package/{dbSlice-OP6UPXKA.js → dbSlice-7KQH6GOU.js} +2 -2
  69. package/{dialogCommands-3GEPXHFB.js → dialogCommands-DFY5HJ6M.js} +19 -18
  70. package/{dialogSlice-FAWUQDJW.js → dialogSlice-MS7OYWHW.js} +13 -13
  71. package/{docCreateCommands-ZE3S6BCP.js → docCreateCommands-5L76YTI2.js} +18 -17
  72. package/{docDeleteCommands-TW6PGTRT.js → docDeleteCommands-3GASP3VR.js} +19 -18
  73. package/{docReadCommands-LDXL3B6J.js → docReadCommands-ALA77AZM.js} +18 -17
  74. package/{docStore-2UHVWLTV.js → docStore-KYTKNGMU.js} +14 -14
  75. package/{docUpdateCommands-GYD6XI5O.js → docUpdateCommands-6AZGXE5M.js} +18 -17
  76. package/{getPricing-UGDJHI7M.js → getPricing-RYY6OBA4.js} +4 -4
  77. package/{handleSendMessageAction-LJPUYNOH.js → handleSendMessageAction-LHTGYRMN.js} +201 -15
  78. package/index.js +47 -47
  79. package/{machineCommands-OKNDYS3M.js → machineCommands-RDQQBA72.js} +33 -32
  80. package/{machineWsRunDispatch-ZX5AJ6FJ.js → machineWsRunDispatch-27RCTQQF.js} +33 -32
  81. package/{models-LSCRJJ6P.js → models-5K5G2CZI.js} +2 -2
  82. package/package.json +1 -1
  83. package/{read-HXHAZBKH.js → read-CN3TNXIP.js} +1 -1
  84. package/{readDocTool-VPBDTO4G.js → readDocTool-WF3675ED.js} +1 -1
  85. package/{readlineWorkspace-MB3ANKHM.js → readlineWorkspace-BTONC7NW.js} +177 -76
  86. package/{removeDialogAgentAction-HUFVN35S.js → removeDialogAgentAction-YDHBFEGI.js} +5 -5
  87. package/{runAgentClientLoop-A75BUU6D.js → runAgentClientLoop-Q4CL22BP.js} +26 -25
  88. package/{setDialogExtraReferencesAction-2VLGWQKG.js → setDialogExtraReferencesAction-LR6MSIXO.js} +2 -2
  89. package/{setPrimaryDialogAgentAction-VB4UV2CC.js → setPrimaryDialogAgentAction-IIVDCY5C.js} +5 -5
  90. package/{settingSlice-7JYPQNAC.js → settingSlice-O23YDK2O.js} +3 -3
  91. package/{spaceCommands-O3KJNCON.js → spaceCommands-AB2D7A2R.js} +18 -17
  92. package/{spaceSlice-444MFUP6.js → spaceSlice-XLJ4DRG6.js} +13 -13
  93. package/{streamAgentChatTurn-DJAE7USZ.js → streamAgentChatTurn-YYAAGLZL.js} +30 -32
  94. package/{tools-YB6LXSVN.js → tools-5UKY65R3.js} +20 -20
  95. package/{tuiSummaryLlmCaller-QQL3JA5I.js → tuiSummaryLlmCaller-VUNVBRX3.js} +7 -6
  96. package/{updateDialogTitleAction-6HGFBM64.js → updateDialogTitleAction-VNSUVPUZ.js} +13 -13
  97. package/chunk-BYXBJQAS.js +0 -0
@@ -14,7 +14,7 @@ var deepSeekModels = [
14
14
  fnCall: true,
15
15
  supportsTool: true,
16
16
  supportsReasoningEffort: true,
17
- endpointKey: "responses",
17
+ endpointKey: "chat.completions",
18
18
  price: {
19
19
  input: 1,
20
20
  inputCacheHit: 0.02,
@@ -499,7 +499,6 @@ var zaiModels = [];
499
499
  // packages/ai/llm/kimi.ts
500
500
  var PLATFORM_HOSTED_KIMI_K3_MODEL = "kimi-k3";
501
501
  var PLATFORM_HOSTED_KIMI_K26_MODEL = "kimi-k2.6";
502
- var PLATFORM_HOSTED_KIMI_K27_CODE_MODEL = "kimi-k2.7-code";
503
502
  var PLATFORM_HOSTED_KIMI_PROVIDER = "nolo";
504
503
  var LEGACY_OLLAMA_CLOUD_PROVIDER = "ollama-cloud";
505
504
  var isNoloHostedProvider = (provider) => {
@@ -531,10 +530,6 @@ var PLATFORM_HOSTED_KIMI_PRICE = {
531
530
  input: toPlatformCredits(0.6),
532
531
  output: toPlatformCredits(2.4)
533
532
  };
534
- var PLATFORM_HOSTED_KIMI_K27_CODE_PRICE = {
535
- input: toPlatformCredits(1.2),
536
- output: toPlatformCredits(4.8)
537
- };
538
533
  var PLATFORM_HOSTED_KIMI_K3_PRICE = {
539
534
  input: toPlatformCredits(3),
540
535
  output: toPlatformCredits(15)
@@ -572,15 +567,6 @@ var platformHostedModels = [
572
567
  contextWindow: 262144,
573
568
  supportsTool: true
574
569
  },
575
- {
576
- name: PLATFORM_HOSTED_KIMI_K27_CODE_MODEL,
577
- displayName: "Kimi K2.7 Coding",
578
- hasVision: true,
579
- price: { ...PLATFORM_HOSTED_KIMI_K27_CODE_PRICE },
580
- maxOutputTokens: 262144,
581
- contextWindow: 256e3,
582
- supportsTool: true
583
- },
584
570
  {
585
571
  name: PLATFORM_HOSTED_GLM_52_MODEL,
586
572
  displayName: "GLM 5.2",
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  MODEL_LOOKUP_MAP
3
- } from "./chunk-OGGHETUE.js";
3
+ } from "./chunk-HQPG2PIV.js";
4
4
  import {
5
5
  ALL_MODELS
6
- } from "./chunk-IKXL2HZ3.js";
6
+ } from "./chunk-RK5NYQEL.js";
7
7
  import {
8
8
  addContentAction
9
- } from "./chunk-XVP3C2KY.js";
9
+ } from "./chunk-IWLUTMYX.js";
10
10
  import {
11
11
  upload
12
- } from "./chunk-SFXYKGK2.js";
12
+ } from "./chunk-3S2VOMIF.js";
13
13
  import {
14
14
  getRuntimeServerContext
15
15
  } from "./chunk-DVRHHFEA.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildAgentRuntimeAgentLookupKeys,
3
3
  shouldFetchAgentRuntimeRecordRemotely
4
- } from "./chunk-5VMYGIIL.js";
4
+ } from "./chunk-VHXXRWNL.js";
5
5
 
6
6
  // packages/cli/client/localAgentRecords.ts
7
7
  var buildLocalAgentLookupKeys = buildAgentRuntimeAgentLookupKeys;
@@ -3,7 +3,7 @@ import {
3
3
  prepareAndPersistMessage,
4
4
  uiAskChoiceFunc,
5
5
  uiAskChoiceFunctionSchema
6
- } from "./chunk-YNHQIXX5.js";
6
+ } from "./chunk-CXM4IIUF.js";
7
7
  import {
8
8
  require_date_fns
9
9
  } from "./chunk-M76ECQRD.js";
@@ -14,14 +14,14 @@ import {
14
14
  PLATFORM_HOSTED_GLM_52_MODEL,
15
15
  PLATFORM_HOSTED_GLM_PRICE,
16
16
  PLATFORM_HOSTED_KIMI_PROVIDER
17
- } from "./chunk-524BDL33.js";
17
+ } from "./chunk-O6W2O2DA.js";
18
18
  import {
19
19
  read,
20
20
  readAndWait,
21
21
  removeCachedEntity,
22
22
  upsertSSREntity,
23
23
  write
24
- } from "./chunk-SFXYKGK2.js";
24
+ } from "./chunk-3S2VOMIF.js";
25
25
  import {
26
26
  createAgentKey,
27
27
  createDialogKey,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  generatePkcePair,
3
3
  startCallbackServer
4
- } from "./chunk-EHLHSX7R.js";
4
+ } from "./chunk-UB4RYYNQ.js";
5
5
  import {
6
6
  toErrorMessage
7
7
  } from "./chunk-HNMXYYJR.js";
@@ -2,24 +2,24 @@ import {
2
2
  buildCurrentTimeBlock,
3
3
  buildIdentityBlock,
4
4
  buildRuntimeGuidanceBlocks
5
- } from "./chunk-RKM3K52F.js";
5
+ } from "./chunk-GPELDE6I.js";
6
6
  import {
7
7
  canonicalizeToolNames
8
- } from "./chunk-B4KT7RN2.js";
8
+ } from "./chunk-JTMNCCWF.js";
9
9
  import {
10
10
  estimateTokenCount,
11
11
  getModelContextWindow,
12
12
  planCompression,
13
13
  planContextUsage,
14
14
  serializeMessageContent
15
- } from "./chunk-4QQFLN5C.js";
15
+ } from "./chunk-OVBVEXZ7.js";
16
16
  import {
17
17
  clipCompactText
18
18
  } from "./chunk-5MMAK75Q.js";
19
19
  import {
20
20
  findModelConfig,
21
21
  getProviderByModelName
22
- } from "./chunk-OGGHETUE.js";
22
+ } from "./chunk-HQPG2PIV.js";
23
23
  import {
24
24
  buildDialogSummaryLayer
25
25
  } from "./chunk-QLUFR47U.js";
@@ -1034,7 +1034,11 @@ function buildMessages(args) {
1034
1034
  ${dynamicContent}` : stableContent;
1035
1035
  return {
1036
1036
  messages: [
1037
- ...systemContent2 ? [{ role: "system", content: systemContent2 }] : [],
1037
+ ...systemContent2 ? [{
1038
+ role: "system",
1039
+ content: systemContent2,
1040
+ ...stableContent ? { stable_prefix_chars: stableContent.length } : {}
1041
+ }] : [],
1038
1042
  ...prepareHistoryForNextTurn(args.history, args.contextReferenceResolver),
1039
1043
  { role: "user", content: args.input }
1040
1044
  ],
@@ -10,7 +10,7 @@ import {
10
10
  platformHostedModels,
11
11
  xaiModels,
12
12
  zaiModels
13
- } from "./chunk-524BDL33.js";
13
+ } from "./chunk-O6W2O2DA.js";
14
14
 
15
15
  // packages/ai/llm/modelAbility.ts
16
16
  var MODEL_ABILITY_TABLE = {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  selectCurrentServer
3
- } from "./chunk-TTGAVETO.js";
3
+ } from "./chunk-EABWT43X.js";
4
4
  import {
5
5
  patch
6
- } from "./chunk-SFXYKGK2.js";
6
+ } from "./chunk-3S2VOMIF.js";
7
7
  import {
8
8
  selectIdentityToken
9
9
  } from "./chunk-DVRHHFEA.js";
@@ -5,10 +5,10 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-WRN5EQT7.js";
8
+ } from "./chunk-T26DWCH5.js";
9
9
  import {
10
10
  performFetchRequest
11
- } from "./chunk-6565R2TI.js";
11
+ } from "./chunk-ZOQNJXMS.js";
12
12
  import {
13
13
  createSSEParser,
14
14
  createToolRunId,
@@ -19,7 +19,7 @@ import {
19
19
  toolRunSetPending,
20
20
  toolRunStarted,
21
21
  toolRunSucceeded
22
- } from "./chunk-VE6XMVKG.js";
22
+ } from "./chunk-G2IQGDQZ.js";
23
23
  import {
24
24
  getPublicImageAgentMode
25
25
  } from "./chunk-VIDPVFP3.js";
@@ -29,13 +29,13 @@ import {
29
29
  messageStreaming,
30
30
  selectCurrentSpaceId,
31
31
  updateToolMessage
32
- } from "./chunk-YNHQIXX5.js";
32
+ } from "./chunk-CXM4IIUF.js";
33
33
  import {
34
34
  streamAgentChatTurn
35
- } from "./chunk-OQMPU2ML.js";
35
+ } from "./chunk-2OUI4TLC.js";
36
36
  import {
37
37
  EMPTY_ASSISTANT_REPAIR_PROMPT
38
- } from "./chunk-6MHDWKOT.js";
38
+ } from "./chunk-RIF3XLXK.js";
39
39
  import {
40
40
  accumulateToolCallDelta,
41
41
  createThinkParserState,
@@ -47,10 +47,10 @@ import {
47
47
  } from "./chunk-LSFAWXKC.js";
48
48
  import {
49
49
  getModelInfo
50
- } from "./chunk-4QQFLN5C.js";
50
+ } from "./chunk-OVBVEXZ7.js";
51
51
  import {
52
52
  getApiEndpoint
53
- } from "./chunk-OGGHETUE.js";
53
+ } from "./chunk-HQPG2PIV.js";
54
54
  import {
55
55
  extractCustomId
56
56
  } from "./chunk-DFFIZ25G.js";
@@ -64,10 +64,10 @@ import {
64
64
  } from "./chunk-HNMXYYJR.js";
65
65
  import {
66
66
  selectCurrentServer
67
- } from "./chunk-TTGAVETO.js";
67
+ } from "./chunk-EABWT43X.js";
68
68
  import {
69
69
  write
70
- } from "./chunk-SFXYKGK2.js";
70
+ } from "./chunk-3S2VOMIF.js";
71
71
  import {
72
72
  createDialogMessageKeyAndId,
73
73
  dialogMessageKey,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  i18n_default,
3
3
  toolRegistry
4
- } from "./chunk-VE6XMVKG.js";
4
+ } from "./chunk-G2IQGDQZ.js";
5
5
  import {
6
6
  canonicalizeToolNames
7
- } from "./chunk-B4KT7RN2.js";
7
+ } from "./chunk-JTMNCCWF.js";
8
8
  import {
9
9
  isNoloHostedProvider
10
- } from "./chunk-524BDL33.js";
10
+ } from "./chunk-O6W2O2DA.js";
11
11
  import {
12
12
  asTrimmedLowercaseString
13
13
  } from "./chunk-QSJ3HFEF.js";
@@ -1,3 +1,6 @@
1
+ import {
2
+ getAntigravityUserAgent
3
+ } from "./chunk-L6NVTGI7.js";
1
4
  import {
2
5
  writeOAuthCredential
3
6
  } from "./chunk-JZPBVBIY.js";
@@ -167,7 +170,7 @@ var SCOPES = [
167
170
  var AUTH_URL = "https://accounts.google.com/o/oauth2/v2/auth";
168
171
  var TOKEN_URL = "https://oauth2.googleapis.com/token";
169
172
  var USERINFO_URL = "https://www.googleapis.com/oauth2/v1/userinfo?alt=json";
170
- var CLOUD_CODE_ENDPOINT = "https://cloudcode-pa.googleapis.com";
173
+ var CLOUD_CODE_ENDPOINT = "https://daily-cloudcode-pa.googleapis.com";
171
174
  var TIER_LEGACY = "legacy-tier";
172
175
  var PROJECT_ONBOARD_MAX_ATTEMPTS = 5;
173
176
  var PROJECT_ONBOARD_INTERVAL_MS = 2e3;
@@ -241,7 +244,11 @@ async function onboardProjectWithRetries(fetchImpl, endpoint, headers, onboardBo
241
244
  async function discoverProject(fetchImpl, accessToken, onProgress) {
242
245
  const headers = {
243
246
  Authorization: `Bearer ${accessToken}`,
244
- "Content-Type": "application/json"
247
+ "Content-Type": "application/json",
248
+ // Google's Cloud Code Assist API validates the Antigravity client
249
+ // User-Agent; requests without it are rejected even with a valid token.
250
+ // (Matches oh-my-pi's google-antigravity.ts discoverProject.)
251
+ "User-Agent": getAntigravityUserAgent()
245
252
  };
246
253
  onProgress?.("Checking for existing project...");
247
254
  const endpoint = CLOUD_CODE_ENDPOINT;
@@ -4,10 +4,10 @@ import {
4
4
  providerHttpFailure,
5
5
  readSseFrames,
6
6
  throwIfChatCompletionStreamFailed
7
- } from "./chunk-WA6KZL5V.js";
7
+ } from "./chunk-AAODAAUQ.js";
8
8
  import {
9
9
  parseToolArgumentsJson
10
- } from "./chunk-6MHDWKOT.js";
10
+ } from "./chunk-RIF3XLXK.js";
11
11
  import {
12
12
  createThinkParserState,
13
13
  createToolCallAccumulator,
@@ -18,17 +18,20 @@ import {
18
18
  import {
19
19
  requiresBareImageUrl,
20
20
  toBareImageUrlMessages
21
- } from "./chunk-RKM3K52F.js";
21
+ } from "./chunk-GPELDE6I.js";
22
22
  import {
23
- buildProviderAuthHeaders,
24
- buildProviderExecutionPlan,
23
+ shouldStripReasoningContentForOutbound,
25
24
  toOpenAiCompatibleMessages
26
- } from "./chunk-HRQCKQA5.js";
25
+ } from "./chunk-KFEVY3ST.js";
26
+ import {
27
+ buildProviderAuthHeaders,
28
+ buildProviderExecutionPlan
29
+ } from "./chunk-MUCU6ATG.js";
27
30
  import {
28
31
  canonicalizeToolName,
29
32
  createGlob,
30
33
  resolveExecutableOnPath
31
- } from "./chunk-B4KT7RN2.js";
34
+ } from "./chunk-JTMNCCWF.js";
32
35
  import {
33
36
  toErrorMessage
34
37
  } from "./chunk-HNMXYYJR.js";
@@ -85,10 +88,20 @@ function parseSseDataLineJson(line) {
85
88
  return null;
86
89
  }
87
90
  }
91
+ function parseSseDataLineObject(line) {
92
+ const parsed = parseSseDataLineJson(line);
93
+ return parsed && typeof parsed === "object" ? parsed : null;
94
+ }
88
95
 
89
96
  // packages/agent-runtime/openAiCompatibleProvider.ts
90
97
  function buildOpenAiCompatibleChatCompletionRequest(args) {
91
- const messages = toOpenAiCompatibleMessages(args.messages);
98
+ const shouldStripReasoning = shouldStripReasoningContentForOutbound(
99
+ args.providerConfig.provider,
100
+ args.providerConfig.model
101
+ );
102
+ const messages = toOpenAiCompatibleMessages(args.messages, {
103
+ stripReasoningContent: shouldStripReasoning
104
+ });
92
105
  const body = {
93
106
  model: args.providerConfig.model,
94
107
  messages: requiresBareImageUrl({
@@ -2078,7 +2091,7 @@ function collectIntegerArg(args) {
2078
2091
  var LINES_ARG_SYNTAX = '"40-120", "120-", "-50", or "50"';
2079
2092
  var LINES_RANGE_FORMAT = /^(\d+)?\s*-\s*(\d+)?$/;
2080
2093
  function parseLinesArg(value) {
2081
- const text = typeof value === "string" ? value.trim() : "";
2094
+ const text = asTrimmedString(value);
2082
2095
  if (!text) {
2083
2096
  return {
2084
2097
  warning: `Ignored lines: expected ${LINES_ARG_SYNTAX}, received ${describeRejectedArgValue(value)}.`
@@ -3617,6 +3630,7 @@ function createLocalWorkspaceToolExecutors(args) {
3617
3630
 
3618
3631
  export {
3619
3632
  parseSseDataLineJson,
3633
+ parseSseDataLineObject,
3620
3634
  buildOpenAiCompatibleChatCompletionRequest,
3621
3635
  parseOpenAiCompatibleChatCompletionResponse,
3622
3636
  readOpenAiCompatibleSseCompletion,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getModelAbility
3
- } from "./chunk-IKXL2HZ3.js";
3
+ } from "./chunk-RK5NYQEL.js";
4
4
 
5
5
  // packages/ai/agent/safeAgentSummary.ts
6
6
  function parseTimestamp(val) {
@@ -103,6 +103,10 @@ function toSafeAgentSummary(record, options) {
103
103
  const favStatus = resolveFavoriteStatus(record, options);
104
104
  const isPublic = record?.isPublic === true || record?.isPublicFlag === true || record?.publicRecordExists === true;
105
105
  const updatedAt = safeTimestamp(record?.updatedAt ?? record?.createdAt ?? record?.created);
106
+ const currentUserId = options?.userId;
107
+ const isOwnedByRecord = Boolean(currentUserId) && (typeof record?.userId === "string" && record.userId === currentUserId || typeof record?.ownerId === "string" && record.ownerId === currentUserId);
108
+ const isOwnedByDbKey = Boolean(currentUserId) && typeof record?.dbKey === "string" && record.dbKey.startsWith(`agent-${currentUserId}-`);
109
+ const isOwned = isOwnedByRecord || isOwnedByDbKey;
106
110
  return {
107
111
  id,
108
112
  ...publicKey !== void 0 ? { publicKey } : {},
@@ -120,11 +124,16 @@ function toSafeAgentSummary(record, options) {
120
124
  isFavorite: favStatus.isFavorite,
121
125
  favoritedAt: favStatus.favoritedAt,
122
126
  isPublic,
127
+ isOwned,
123
128
  updatedAt
124
129
  };
125
130
  }
126
131
  function sortSafeAgentSummaries(agents) {
127
132
  return [...agents].sort((left, right) => {
133
+ const leftOwned = left.isOwned === true;
134
+ const rightOwned = right.isOwned === true;
135
+ if (leftOwned && !rightOwned) return -1;
136
+ if (!leftOwned && rightOwned) return 1;
128
137
  const leftFav = left.isFavorite === true;
129
138
  const rightFav = right.isFavorite === true;
130
139
  if (leftFav && !rightFav) return -1;