nolo-cli 0.156.0-alpha.2 → 0.156.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 (164) hide show
  1. package/{_executeModel-5WS2PA62.js → _executeModel-3FMHTHSS.js} +55 -55
  2. package/{accountResolver-7RYB4D2P.js → accountResolver-55EDKEIK.js} +1 -1
  3. package/{action-ZJYUBXFC.js → action-GPPJC5TI.js} +5 -5
  4. package/{addContentAction-TVHB4526.js → addContentAction-XJQEJ4XW.js} +8 -8
  5. package/{addDialogAgentAction-FDPBU6K6.js → addDialogAgentAction-5WZX5CAY.js} +7 -7
  6. package/{agentDeleteCommand-MDC7OS3I.js → agentDeleteCommand-VRHLJZKX.js} +75 -76
  7. package/{agentEmailCommands-WN4EOPKQ.js → agentEmailCommands-YGBQXOL3.js} +78 -79
  8. package/{agentListCommands-G36AMSBR.js → agentListCommands-GOCGOQUB.js} +36 -36
  9. package/{agentMachineCommands-63GXO27A.js → agentMachineCommands-FBAWZYHI.js} +35 -32
  10. package/{agentProviderCommands-X2HQE6HY.js → agentProviderCommands-CXBHNONN.js} +5 -5
  11. package/{agentPullCommand-FA43RBRU.js → agentPullCommand-GXXEDOSA.js} +4 -4
  12. package/{agentRecordCommands-X4WJRHDW.js → agentRecordCommands-KAK2G56H.js} +72 -73
  13. package/{agentRunCommand-4YMIVVHF.js → agentRunCommand-62P3AGJA.js} +75 -75
  14. package/{agentRunControl-2C5GM3BW.js → agentRunControl-XBSNHHZE.js} +7 -7
  15. package/{agentRuntimeLocal-Q7ZOMZC7.js → agentRuntimeLocal-J6I63NZC.js} +21 -19
  16. package/{agentSlice-E3XS5FTQ.js → agentSlice-IZFU3WWH.js} +8 -8
  17. package/{appDeleteCommands-MMWT54BR.js → appDeleteCommands-KKLAK2UR.js} +31 -29
  18. package/{appDeployCommands-OIFXVDOF.js → appDeployCommands-PXWK4FAX.js} +31 -29
  19. package/{appDeployStatusCommands-OTXMSDFB.js → appDeployStatusCommands-3NGWDZTX.js} +31 -29
  20. package/{appGetCommands-JPY36ANL.js → appGetCommands-APWYPEO3.js} +31 -29
  21. package/{appListCommands-IHJGN36O.js → appListCommands-OP7IRALO.js} +31 -29
  22. package/{authCommand-J3XILHWW.js → authCommand-3Z52KJID.js} +22 -302
  23. package/{authCommands-77CHYBGF.js → authCommands-QOCKVPX3.js} +5 -5
  24. package/{builtinSkillRegistry-A6VSPJEJ.js → builtinSkillRegistry-LJV7FHNI.js} +4 -4
  25. package/{chromeCommands-OBBNJCLS.js → chromeCommands-IY4NVSXZ.js} +17 -10
  26. package/{chunk-SW4S4XYB.js → chunk-2AB2HA4M.js} +84 -34
  27. package/{chunk-H4KACZMG.js → chunk-2QQ7D3P5.js} +271 -138
  28. package/{chunk-C5VPAHIU.js → chunk-32ZKZET7.js} +1 -1
  29. package/{chunk-FPWT3RH2.js → chunk-36IWXF25.js} +22 -22
  30. package/{chunk-XPWGOTBQ.js → chunk-3L2WKC3W.js} +1 -8
  31. package/{chunk-3XZKV7QQ.js → chunk-3L5MSPWX.js} +1 -1
  32. package/{chunk-QLQ573SU.js → chunk-3M52COK5.js} +120 -0
  33. package/{chunk-Z6KQDSZW.js → chunk-43OFVLWJ.js} +6 -6
  34. package/{chunk-7A4LJCDR.js → chunk-4FDDVVCE.js} +5 -5
  35. package/{chunk-TJ2VPCBE.js → chunk-4JCAW7TO.js} +2 -2
  36. package/{chunk-6TF64IF2.js → chunk-4L4K6YR7.js} +16 -2
  37. package/{chunk-ZG73GDYU.js → chunk-5E5VB7PS.js} +332 -59
  38. package/{chunk-HKT6QXP3.js → chunk-5IKRTRRR.js} +5 -5
  39. package/{chunk-P5QACQDK.js → chunk-62TBKWTV.js} +1 -1
  40. package/{chunk-TRW43TSC.js → chunk-6EQD4AQL.js} +41 -1
  41. package/{chunk-RUNKPFM5.js → chunk-6QIBWOPT.js} +12 -8
  42. package/{chunk-YLMMECCH.js → chunk-6XIE5ZGI.js} +1 -1
  43. package/{chunk-7GC3EKUG.js → chunk-7PDNSQZC.js} +3 -3
  44. package/{chunk-DW7MGLMG.js → chunk-7YQQXP42.js} +35 -207
  45. package/{chunk-WZ6OU4NX.js → chunk-BAWAKW7X.js} +2 -2
  46. package/{chunk-UUPR3TD7.js → chunk-BL4HFN6L.js} +2 -4
  47. package/{chunk-2GGXHQIW.js → chunk-BLVSFYQ3.js} +4 -2
  48. package/{chunk-HP6O6LTV.js → chunk-CDLP56BS.js} +9 -9
  49. package/{chunk-4LRK5Q2Z.js → chunk-CI6YDDL2.js} +18 -17
  50. package/{chunk-5MM7NNO6.js → chunk-CNWKLQRL.js} +8 -3
  51. package/{chunk-UTIMX333.js → chunk-DJ2BOPJY.js} +1 -1
  52. package/{chunk-36OMEXXR.js → chunk-DLV3H464.js} +8 -8
  53. package/{chunk-X5SUT4CN.js → chunk-EDJND3FK.js} +6 -6
  54. package/{chunk-CE7PIHQD.js → chunk-ESMZW5PE.js} +3 -3
  55. package/{chunk-PSJWPSKS.js → chunk-EWO77ZGF.js} +9 -43
  56. package/{chunk-ZWG3C7VI.js → chunk-F3SOW2EU.js} +81 -1
  57. package/{chunk-FY4SDK2E.js → chunk-FDLDMJTM.js} +1 -1
  58. package/chunk-FTHF2P2I.js +2685 -0
  59. package/{chunk-7KYVUFDG.js → chunk-G3VYRPTV.js} +5 -267
  60. package/{chunk-NQ64VVAI.js → chunk-GXZZOTDM.js} +826 -689
  61. package/{chunk-6MJNEXUU.js → chunk-HGDKT2D6.js} +4 -0
  62. package/{chunk-6KVZAZJA.js → chunk-HRZW3SQN.js} +7 -7
  63. package/{chunk-B2EGWZJG.js → chunk-I7S63QUU.js} +1 -1
  64. package/{chunk-ROPSATAB.js → chunk-IF7V3CBU.js} +1 -1
  65. package/{chunk-T6CBQ6BN.js → chunk-INFHX73M.js} +1 -1
  66. package/{chunk-YBNHPX4S.js → chunk-IW64YHXL.js} +155 -31
  67. package/{chunk-VSOWPETY.js → chunk-JIAZK434.js} +10 -10
  68. package/{chunk-K43ZF2C3.js → chunk-JPPQ3GUO.js} +1 -1
  69. package/{chunk-TZTWMGE3.js → chunk-JWEXJ573.js} +3 -3
  70. package/{chunk-OH2M7WEU.js → chunk-K3N2DWLT.js} +3 -3
  71. package/{chunk-I2ZMGXXF.js → chunk-KFHREHUQ.js} +1 -1
  72. package/{chunk-3C2QLERX.js → chunk-KMDDG73K.js} +1 -1
  73. package/{chunk-EM3YOZJ4.js → chunk-L2JMH4I5.js} +3 -3
  74. package/{chunk-D4OWHT5Y.js → chunk-MAYW6V3E.js} +2 -2
  75. package/{chunk-IPAW7XLD.js → chunk-MFVOJ6KF.js} +2 -2
  76. package/{chunk-CBHGZRCE.js → chunk-MYOH447Z.js} +1 -1
  77. package/{chunk-6MPAEODB.js → chunk-NHEWV5FD.js} +17 -3
  78. package/{chunk-SUKSWFLP.js → chunk-PIG2IUVZ.js} +1 -1
  79. package/{chunk-WP6RXNE6.js → chunk-PNACBSRF.js} +134 -126
  80. package/{chunk-SEJ5OS6F.js → chunk-PXYBUFDB.js} +4 -0
  81. package/{chunk-SKPPKHD3.js → chunk-Q5LVXPGT.js} +2 -2
  82. package/{chunk-2MTE2PEH.js → chunk-QA2C5NKI.js} +5 -739
  83. package/{chunk-XFKZ3MCV.js → chunk-QFL42TMV.js} +251 -77
  84. package/{chunk-L6EQV5OC.js → chunk-QXZH5UDF.js} +3 -3
  85. package/{chunk-TNIX77YM.js → chunk-R5GO3YZP.js} +34 -1
  86. package/{chunk-4Z245KOA.js → chunk-SH3XD4E2.js} +8 -4
  87. package/{chunk-MM3662RS.js → chunk-SNAWGDXT.js} +263 -4
  88. package/{chunk-JGRPBIZZ.js → chunk-SQX235S2.js} +1 -1
  89. package/chunk-TT644UJD.js +188 -0
  90. package/{chunk-IYBIRCQV.js → chunk-U34KT53V.js} +29 -11
  91. package/{chunk-KOB75UNU.js → chunk-U5U4WAFS.js} +19 -3
  92. package/{chunk-ANJTRG52.js → chunk-ULQAD7ZY.js} +18 -43
  93. package/{chunk-FDT27L7S.js → chunk-UUPXTEZA.js} +19 -17
  94. package/{chunk-QDA4Y5O6.js → chunk-V67W64OY.js} +21 -17
  95. package/{chunk-I2RMFLLH.js → chunk-V7PCFWX3.js} +1 -1
  96. package/{chunk-HXHSTRGH.js → chunk-VYNMQ6HW.js} +0 -27
  97. package/{chunk-G47IPDOK.js → chunk-W7FGZRLK.js} +1 -1
  98. package/{chunk-7BSQK2UC.js → chunk-WRCZXJ4N.js} +2 -2
  99. package/{chunk-KX6LPG7W.js → chunk-WYJTNSVL.js} +9 -9
  100. package/chunk-Y5GCAMGP.js +9 -0
  101. package/{chunk-JZX2XLKC.js → chunk-YCRROBDY.js} +1 -1
  102. package/{chunk-SCJD2PNK.js → chunk-YPG7TUQD.js} +3 -3
  103. package/{chunk-YANF2RR4.js → chunk-ZPKUJROL.js} +1 -1
  104. package/{chunk-TYND6RDQ.js → chunk-ZZDVBZOP.js} +74 -3
  105. package/{commandRegistry-NE2JOCQT.js → commandRegistry-2DDDET7G.js} +88 -96
  106. package/{contentThunks-B3FRQGP7.js → contentThunks-5DNEHJ2Z.js} +21 -21
  107. package/{createAgentAutomationAction-T2YFJ6MY.js → createAgentAutomationAction-4SUS2EFX.js} +21 -21
  108. package/{createDialogAction-2NFGFBXW.js → createDialogAction-JSFXX6JE.js} +25 -25
  109. package/{createPageAction-LDAVZDN7.js → createPageAction-37HHOXZ2.js} +24 -25
  110. package/{dbSlice-5QGKMQLO.js → dbSlice-6PVPY44C.js} +7 -7
  111. package/{deleteFile-EW6QNRRT.js → deleteFile-YM6NDPAR.js} +5 -5
  112. package/{dialogCommands-H3K7PTF6.js → dialogCommands-ZJRMCP4S.js} +35 -32
  113. package/{dialogSlice-64S3J6CP.js → dialogSlice-2Z66AWEW.js} +20 -20
  114. package/{dist-NJC2W7I4.js → dist-Q2JSMAKA.js} +7 -361
  115. package/{docCreateCommands-KP64KMVL.js → docCreateCommands-KQHQNLRX.js} +32 -30
  116. package/{docDeleteCommands-C3F4SZSR.js → docDeleteCommands-O3DWFX2W.js} +33 -31
  117. package/{docReadCommands-7H6BDOUR.js → docReadCommands-2U2BUONC.js} +32 -30
  118. package/{docStore-NIP7OO4I.js → docStore-XMTUF3GX.js} +8 -8
  119. package/{docUpdateCommands-JDW4BRBH.js → docUpdateCommands-MF3C52XI.js} +32 -30
  120. package/{getPricing-TX35D7PI.js → getPricing-XQ3N3RBP.js} +2 -2
  121. package/{handleSendMessageAction-TOKA7ED7.js → handleSendMessageAction-4VFVXTF2.js} +43 -39
  122. package/index.js +8 -8
  123. package/{localRuntimeAdapter-OPPDLUG3.js → localRuntimeAdapter-KKIVRYVN.js} +70 -69
  124. package/{localRuntimeAuthority-JDAD7CB6.js → localRuntimeAuthority-BPN5OAQG.js} +2 -2
  125. package/{localRuntimeDb-CVC62PM5.js → localRuntimeDb-QIVAXMUL.js} +1 -1
  126. package/{machineCommands-OPLQR7XY.js → machineCommands-UHQVCOD3.js} +80 -79
  127. package/{machineWsRunDispatch-PTS42QDK.js → machineWsRunDispatch-TX4X7TOJ.js} +70 -71
  128. package/{memberThunks-KRV5YXOB.js → memberThunks-AZINUM4S.js} +10 -10
  129. package/package.json +6 -2
  130. package/{profileConfig-ZGOFORWV.js → profileConfig-KN3N2BLF.js} +7 -1
  131. package/{providerPresetApply-CRZFMQD5.js → providerPresetApply-PKUOHQJT.js} +5 -5
  132. package/{providerRegistry-7IS43D3X.js → providerRegistry-HNQLIFN2.js} +5 -5
  133. package/{read-5KAZHHDM.js → read-7JPIWRBQ.js} +5 -5
  134. package/{readDocTool-5QO34OSX.js → readDocTool-AAQTB2Y3.js} +1 -1
  135. package/{readlineWorkspace-3XC7SEMZ.js → readlineWorkspace-BFVB2ON5.js} +375 -200
  136. package/{removeDialogAgentAction-6X63HMI3.js → removeDialogAgentAction-RMVRILLK.js} +9 -9
  137. package/{runAgentClientLoop-5QIGEALK.js → runAgentClientLoop-HHLHNMBE.js} +59 -54
  138. package/{runtimeDoctorCommands-56NWKNON.js → runtimeDoctorCommands-MMCP4B4U.js} +12 -12
  139. package/{secretCommands-ZXZRLR3R.js → secretCommands-DNY56NSU.js} +11 -1
  140. package/{setDialogExtraReferencesAction-4MAYKKYW.js → setDialogExtraReferencesAction-L3V7JTMG.js} +8 -8
  141. package/{setPrimaryDialogAgentAction-EGBAMREH.js → setPrimaryDialogAgentAction-X52JQGTJ.js} +9 -9
  142. package/settingThunks-N6XFWPOU.js +923 -0
  143. package/{spaceCommands-JQN7D4FE.js → spaceCommands-NDPGHDMD.js} +29 -27
  144. package/{streamAgentChatTurn-456DWXNY.js → streamAgentChatTurn-KNPOLET7.js} +154 -95
  145. package/{switchDialogAgentAction-YBKTD6DO.js → switchDialogAgentAction-ZJ5CGU7J.js} +7 -7
  146. package/{tableCommands-U3QDY4L6.js → tableCommands-IVC5S7Y3.js} +11 -11
  147. package/{toolApiClient-7WSJJJBV.js → toolApiClient-HGNO53TC.js} +2 -2
  148. package/{tools-IWNXKK4Y.js → tools-ULA7XJQT.js} +43 -44
  149. package/{tuiSummaryLlmCaller-KLK6K3Q3.js → tuiSummaryLlmCaller-FESHBDTT.js} +7 -7
  150. package/{updateCommands-NQXAGFM7.js → updateCommands-FJHGWD3Q.js} +5 -3
  151. package/{updateDialogTitleAction-SX53FZWO.js → updateDialogTitleAction-VUIVBDAS.js} +21 -21
  152. package/{workloadLifecycle-36DXRZKU.js → workloadLifecycle-6O6PMISX.js} +2 -2
  153. package/chunk-IA7TRNNR.js +0 -11
  154. package/chunk-UKZX3NHN.js +0 -48
  155. package/chunk-VAZHH6FO.js +0 -7012
  156. package/chunk-W4S6OTSC.js +0 -35
  157. package/clipboardy-GCO3GT3I.js +0 -11793
  158. package/settingThunks-FTDRZNSJ.js +0 -1371
  159. package/{agentGrantCommands-HOJ3JBBQ.js → agentGrantCommands-5DPHYEKP.js} +3 -3
  160. package/{chromeOpsCommands-3Z34RKSE.js → chromeOpsCommands-GZVVK7HU.js} +4 -4
  161. package/{chunk-XETG4RIX.js → chunk-AETZ7AD6.js} +4 -4
  162. package/{chunk-2IXDJNZI.js → chunk-GAGGEA7D.js} +3 -3
  163. package/{memoryCommands-CUNBFRVS.js → memoryCommands-ZS3VQJAL.js} +3 -3
  164. package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-3GLX4QQY.js} +3 -3
@@ -3,16 +3,13 @@ import {
3
3
  classifyAgentApiKeyRef,
4
4
  formatUnsupportedAgentApiKeyRefMessage,
5
5
  shouldReadAgentKeyRemotely
6
- } from "./chunk-UUPR3TD7.js";
6
+ } from "./chunk-BL4HFN6L.js";
7
7
  import {
8
8
  resolveCliAgentKeyInput
9
9
  } from "./chunk-NBTY7YJF.js";
10
10
  import {
11
11
  createAgentKey
12
12
  } from "./chunk-5EMSBTQ6.js";
13
- import {
14
- toErrorMessage
15
- } from "./chunk-HNMXYYJR.js";
16
13
  import {
17
14
  parseUserIdFromAuthToken,
18
15
  readOption,
@@ -24,6 +21,9 @@ import {
24
21
  readPipeText,
25
22
  spawnProcess
26
23
  } from "./chunk-Y6ROFCZO.js";
24
+ import {
25
+ toErrorMessage
26
+ } from "./chunk-HNMXYYJR.js";
27
27
 
28
28
  // packages/cli/agentRecordHelpers.ts
29
29
  import { readFileSync } from "node:fs";
@@ -556,7 +556,7 @@ async function buildCreatedAgentRecord(args) {
556
556
  const resolvedAgentInput = resolveCliAgentKeyInput(args.parsed.agentInput);
557
557
  const agentKey = resolvedAgentInput.startsWith("agent-") ? resolvedAgentInput : createAgentKey.private(userId || "local", resolvedAgentInput);
558
558
  if (args.parsed.presetId) {
559
- const { resolveProviderPresetFields } = await import("./providerPresetApply-CRZFMQD5.js");
559
+ const { resolveProviderPresetFields } = await import("./providerPresetApply-PKUOHQJT.js");
560
560
  const fields = resolveProviderPresetFields(args.parsed.presetId);
561
561
  if (fields.kind === "manual") {
562
562
  throw new Error(
@@ -4,7 +4,7 @@ import {
4
4
 
5
5
  // packages/cli/agentCommandSupport.ts
6
6
  async function getDefaultCliDb() {
7
- const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-CVC62PM5.js");
7
+ const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-QIVAXMUL.js");
8
8
  return getDefaultCliLocalRuntimeDb();
9
9
  }
10
10
  function createNullCliDb() {
@@ -575,6 +575,44 @@ var stepfunStepPlanModels = [
575
575
  }
576
576
  ];
577
577
 
578
+ // packages/integrations/minimax/models.ts
579
+ var minimaxModels = [
580
+ {
581
+ name: "MiniMax-M3.1-Flash",
582
+ displayName: "MiniMax M3.1 Flash",
583
+ hasVision: true,
584
+ contextWindow: 1e6,
585
+ maxOutputTokens: 8192,
586
+ jsonOutput: true,
587
+ fnCall: true,
588
+ supportsTool: true,
589
+ price: {
590
+ input: toCnyCredits(1),
591
+ output: toCnyCredits(4),
592
+ inputCacheHit: toCnyCredits(0.1)
593
+ },
594
+ provider: "minimax",
595
+ description: "MiniMax \u65B0\u4E00\u4EE3 Flash \u65D7\u8230\u6A21\u578B\uFF0C1M \u4E0A\u4E0B\u6587\uFF0C\u539F\u751F\u591A\u6A21\u6001\u89C6\u89C9\u7406\u89E3\uFF0C\u9488\u5BF9 Agent\u3001\u4EE3\u7801\u4E0E\u5DE5\u5177\u8C03\u7528\u6DF1\u5EA6\u4F18\u5316\u3002"
596
+ },
597
+ {
598
+ name: "MiniMax-M3",
599
+ displayName: "MiniMax M3",
600
+ hasVision: true,
601
+ contextWindow: 1e6,
602
+ maxOutputTokens: 8192,
603
+ jsonOutput: true,
604
+ fnCall: true,
605
+ supportsTool: true,
606
+ price: {
607
+ input: toCnyCredits(2.1),
608
+ output: toCnyCredits(8.4),
609
+ inputCacheHit: toCnyCredits(0.42)
610
+ },
611
+ provider: "minimax",
612
+ description: "MiniMax M3 \u65D7\u8230\u591A\u6A21\u6001\u63A8\u7406\u6A21\u578B\uFF0C1M \u4E0A\u4E0B\u6587\uFF0C\u652F\u6301\u6587\u672C\u4E0E\u89C6\u89C9\u7406\u89E3\u3001\u5DE5\u5177\u8C03\u7528\u3002"
613
+ }
614
+ ];
615
+
578
616
  // packages/integrations/commandcode/models.ts
579
617
  var commandCodeModels = [
580
618
  // ── DeepSeek ──
@@ -3297,7 +3335,8 @@ var MODEL_MAP = {
3297
3335
  zai: zaiModels,
3298
3336
  qwen: qwenAllModels,
3299
3337
  moonshot: moonshotAllModels,
3300
- stepfun: stepfunAllModels
3338
+ stepfun: stepfunAllModels,
3339
+ minimax: minimaxModels
3301
3340
  };
3302
3341
  var MODEL_LOOKUP_MAP = {
3303
3342
  anthropic: [...anthropicModels, ...anthropicOAuthModels],
@@ -3539,6 +3578,7 @@ export {
3539
3578
  kimiCodeModels,
3540
3579
  stepfunModels,
3541
3580
  stepfunStepPlanModels,
3581
+ minimaxModels,
3542
3582
  commandCodeModels,
3543
3583
  opencodeGoModels,
3544
3584
  DEFAULT_REASONING_EFFORT,
@@ -5,24 +5,24 @@ import {
5
5
  normalizePolicyLevelSetting,
6
6
  normalizeSystemBuiltinSkills,
7
7
  normalizeTonePresetSetting
8
- } from "./chunk-HXHSTRGH.js";
8
+ } from "./chunk-VYNMQ6HW.js";
9
9
  import {
10
10
  fetchAndCacheTableRows
11
- } from "./chunk-VAZHH6FO.js";
11
+ } from "./chunk-FTHF2P2I.js";
12
12
  import {
13
13
  require_react
14
14
  } from "./chunk-YDH3FDFQ.js";
15
15
  import {
16
16
  createAsyncThunk,
17
17
  createSelector
18
- } from "./chunk-7BSQK2UC.js";
18
+ } from "./chunk-WRCZXJ4N.js";
19
19
  import {
20
20
  selectIdentityUserId
21
- } from "./chunk-SEJ5OS6F.js";
21
+ } from "./chunk-PXYBUFDB.js";
22
22
  import {
23
23
  resolveBuiltinCapability,
24
24
  resolveBuiltinSkillEntry
25
- } from "./chunk-4Z245KOA.js";
25
+ } from "./chunk-SH3XD4E2.js";
26
26
  import {
27
27
  DEFAULT_SYSTEM_AGENT_CAPABILITIES
28
28
  } from "./chunk-EUGTFFO6.js";
@@ -287,7 +287,11 @@ var MODES = [
287
287
  var DEFAULT_RECOMMENDED_SKILL_SLUGS = [
288
288
  "worktree-isolation",
289
289
  "systematic-investigation",
290
- "show-me"
290
+ "show-me",
291
+ // 凭据管理:仓库已有 nolo secret(set/list/run/bind),但技能发现只扫
292
+ // `.agents/skills`,内置的 secrets-manager 不会出现在"可用技能"里。放进默认
293
+ // 提示名单让它至少以一行提示出现(不授工具、不放宽权限)。
294
+ "secrets-manager"
291
295
  ];
292
296
  var asMode = (value) => typeof value === "string" && MODES.includes(value) ? value : null;
293
297
  var resolveAgentSkillConfig = (source) => {
@@ -517,7 +521,7 @@ var executeToolRun = createAsyncThunk(
517
521
  if (!executionInput) {
518
522
  throw new Error(`ToolRun ${id} has no input to execute with.`);
519
523
  }
520
- const { findToolExecutor } = await import("./tools-IWNXKK4Y.js");
524
+ const { findToolExecutor } = await import("./tools-ULA7XJQT.js");
521
525
  const { executor } = findToolExecutor(run.toolName);
522
526
  toolRunStarted({
523
527
  id: run.id,
@@ -541,7 +545,7 @@ var executeToolRun = createAsyncThunk(
541
545
  const latestState = thunkApi.getState();
542
546
  const userId = selectIdentityUserId(latestState);
543
547
  if (userId) {
544
- const { fetchUserSpaceMemberships } = await import("./memberThunks-KRV5YXOB.js");
548
+ const { fetchUserSpaceMemberships } = await import("./memberThunks-AZINUM4S.js");
545
549
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
546
550
  }
547
551
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildSkillDocMarkdown
3
- } from "./chunk-XETG4RIX.js";
3
+ } from "./chunk-AETZ7AD6.js";
4
4
 
5
5
  // packages/cli/docPageHelpers.ts
6
6
  import { readFileSync } from "node:fs";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-VSOWPETY.js";
4
+ } from "./chunk-JIAZK434.js";
5
5
  import {
6
6
  updateTokensAction
7
- } from "./chunk-H4KACZMG.js";
7
+ } from "./chunk-2QQ7D3P5.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-6TF64IF2.js";
15
+ } from "./chunk-4L4K6YR7.js";
16
16
  import {
17
17
  isRecord
18
18
  } from "./chunk-KUG52IAP.js";
@@ -1,32 +1,29 @@
1
- import {
2
- buildResponseGuidelines
3
- } from "./chunk-W4S6OTSC.js";
4
1
  import {
5
2
  getLocalProviderSecret
6
3
  } from "./chunk-HS7MLR74.js";
7
4
  import {
8
5
  performServerProxyFetchWithRetry
9
- } from "./chunk-VSOWPETY.js";
10
- import {
11
- shouldUseServerProxy
12
- } from "./chunk-UKZX3NHN.js";
6
+ } from "./chunk-JIAZK434.js";
13
7
  import {
14
8
  fetchServerSyncedCredential
15
- } from "./chunk-X5SUT4CN.js";
9
+ } from "./chunk-EDJND3FK.js";
16
10
  import {
17
11
  buildSkillGuidancePromptBlock
18
- } from "./chunk-4Z245KOA.js";
12
+ } from "./chunk-SH3XD4E2.js";
19
13
  import {
14
+ CREDENTIAL_HYGIENE_RULE,
20
15
  DELETE_SAFETY_RED_LINE,
16
+ DISPATCH_BACKEND_POLICY,
21
17
  PARALLEL_DISPATCH_DEFAULT_RULE,
22
18
  PLATFORM_RISK_CONTROL_RULE,
23
19
  buildConsultationModeBlock,
24
20
  buildIdentityBlock,
21
+ buildResponseGuidelines,
25
22
  buildRuntimeGuidanceBlocks,
26
23
  compileContextLayers,
27
24
  detectDispatchIntentFromMessages,
28
25
  resolveToolGuidedSections
29
- } from "./chunk-TYND6RDQ.js";
26
+ } from "./chunk-ZZDVBZOP.js";
30
27
  import {
31
28
  convertMessagesToResponsesInput,
32
29
  getUsageRequestOptions,
@@ -35,32 +32,33 @@ import {
35
32
  resolveReasoningReplayOptions,
36
33
  shouldStripReasoningContentForOutbound,
37
34
  stablePromptCacheKey
38
- } from "./chunk-6TF64IF2.js";
35
+ } from "./chunk-4L4K6YR7.js";
36
+ import {
37
+ resolveAgentCallPlan,
38
+ resolveClientWire
39
+ } from "./chunk-TT644UJD.js";
39
40
  import {
40
41
  createFileCredentialBroker
41
42
  } from "./chunk-UHTDNB5Y.js";
43
+ import {
44
+ MEMORY_USE_GUIDANCE,
45
+ buildUserResponseLanguageContext,
46
+ wrapHistoricalSummaryWithReplayGuard
47
+ } from "./chunk-4VJAC32I.js";
42
48
  import {
43
49
  canonicalizeToolNames
44
50
  } from "./chunk-5EBLANFT.js";
45
51
  import {
46
- ANTIGRAVITY_CLOUD_CODE_BASE_URL,
47
- isAntigravityCloudCodeBaseUrl,
48
- isAntigravityOAuthAgent
49
- } from "./chunk-JGRPBIZZ.js";
52
+ API_ENDPOINTS
53
+ } from "./chunk-LCBAMY2M.js";
50
54
  import {
51
55
  buildProviderAuthHeaders
52
- } from "./chunk-SUKSWFLP.js";
53
- import {
54
- isOpenAiResponsesModel,
55
- resolvePlatformChatCompletionsEndpoint,
56
- resolvePlatformResponsesEndpoint
57
- } from "./chunk-I2RMFLLH.js";
56
+ } from "./chunk-PIG2IUVZ.js";
58
57
  import {
59
58
  clampReasoningEffort,
60
- findModelConfig,
61
59
  getModelConfig,
62
60
  isModelSupportReasoningEffort
63
- } from "./chunk-TRW43TSC.js";
61
+ } from "./chunk-6EQD4AQL.js";
64
62
  import {
65
63
  isRecord
66
64
  } from "./chunk-KUG52IAP.js";
@@ -70,9 +68,6 @@ import {
70
68
  import {
71
69
  toErrorMessage
72
70
  } from "./chunk-HNMXYYJR.js";
73
- import {
74
- API_ENDPOINTS
75
- } from "./chunk-LCBAMY2M.js";
76
71
  import {
77
72
  isLoopbackUrl
78
73
  } from "./chunk-4SN6J65J.js";
@@ -85,14 +80,6 @@ import {
85
80
  isPlatformMimoProviderModel,
86
81
  resolveFireworksKimiModel
87
82
  } from "./chunk-CGFNDIKK.js";
88
- import {
89
- asTrimmedLowercaseString
90
- } from "./chunk-QSJ3HFEF.js";
91
- import {
92
- MEMORY_USE_GUIDANCE,
93
- buildUserResponseLanguageContext,
94
- wrapHistoricalSummaryWithReplayGuard
95
- } from "./chunk-4VJAC32I.js";
96
83
 
97
84
  // packages/agent-runtime/responsesConversationState.ts
98
85
  function supportsResponsesConversationState(agent) {
@@ -133,177 +120,6 @@ function isResponsesConversationStateRejection(status, responseBody) {
133
120
  return mentionsResponseState && rejectsState;
134
121
  }
135
122
 
136
- // packages/agent-runtime/agentCallPlan.ts
137
- var CODEX_RESPONSES_URL = "https://chatgpt.com/backend-api/codex/responses";
138
- var CURSOR_AGENT_URL = "https://api2.cursor.sh/agent.v1.AgentService/Run";
139
- var DEVIN_CONNECT_URL = "https://server.codeium.com/exa.api_server_pb.ApiServerService/GetChatMessage";
140
- function resolveClientWire(plan) {
141
- if (plan.upstreamWire === "gemini-cca") return "chat.completions";
142
- if (plan.upstreamWire === "anthropic-messages") return "chat.completions";
143
- if (plan.upstreamWire === "cursor-connect") return "chat.completions";
144
- if (plan.upstreamWire === "devin-connect") return "chat.completions";
145
- if (plan.upstreamWire === "custom-gemini") return "chat.completions";
146
- if (plan.upstreamWire === "custom-openai-responses") return "chat.completions";
147
- if (plan.upstreamWire === "custom-anthropic-messages") return "chat.completions";
148
- if (plan.upstreamWire === "responses" && plan.authMethod.kind === "oauth" && plan.authMethod.ref === "chatgpt") {
149
- return "chat.completions";
150
- }
151
- return plan.upstreamWire;
152
- }
153
- var XAI_CHAT_COMPLETIONS_URL = "https://api.x.ai/v1/chat/completions";
154
- var ANTHROPIC_MESSAGES_URL = "https://api.anthropic.com/v1/messages";
155
- var CODEX_REQUIRED_HEADERS = [
156
- "chatgpt-account-id",
157
- "OpenAI-Beta",
158
- "originator",
159
- "version"
160
- ];
161
- var ANTIGRAVITY_REQUIRED_HEADERS = [
162
- "User-Agent"
163
- // antigravity-specific UA (matches getAntigravityUserAgent)
164
- ];
165
- function agentShouldUseServerProxy(agentConfig) {
166
- return shouldUseServerProxy(agentConfig);
167
- }
168
- function resolveCustomUpstreamWire(endpoint, nativeProtocol) {
169
- const responsesEndpoint = endpoint.includes("/responses");
170
- if (nativeProtocol === "openai-responses" && responsesEndpoint) return "responses";
171
- if (nativeProtocol === "gemini") return "custom-gemini";
172
- if (nativeProtocol === "openai-responses") return "custom-openai-responses";
173
- if (nativeProtocol === "anthropic-messages") return "custom-anthropic-messages";
174
- return responsesEndpoint ? "responses" : "chat.completions";
175
- }
176
- function hasOwnCustomProviderKey(agentConfig) {
177
- const endpoint = asOptionalTrimmedString(agentConfig.customProviderUrl);
178
- if (!endpoint) return false;
179
- if (isAntigravityCloudCodeBaseUrl(endpoint)) return false;
180
- return Boolean(asOptionalTrimmedString(agentConfig.apiKey));
181
- }
182
- function resolveAgentCallPlan(agentConfig, _env) {
183
- const apiKeyRef = asTrimmedLowercaseString(agentConfig.apiKeyRef);
184
- const provider = asTrimmedLowercaseString(
185
- agentConfig.provider ?? agentConfig.apiSource
186
- );
187
- const ownCustomKeyWins = hasOwnCustomProviderKey(agentConfig);
188
- const oauthApiKeyRef = ownCustomKeyWins ? "" : apiKeyRef;
189
- if (!ownCustomKeyWins && isAntigravityOAuthAgent(agentConfig)) {
190
- return {
191
- authMethod: { kind: "oauth", ref: "antigravity" },
192
- transport: "server-proxy",
193
- upstreamWire: "gemini-cca",
194
- endpoint: ANTIGRAVITY_CLOUD_CODE_BASE_URL,
195
- requiredHeaders: [...ANTIGRAVITY_REQUIRED_HEADERS],
196
- vendor: provider || "google-antigravity"
197
- };
198
- }
199
- if (oauthApiKeyRef === "chatgpt") {
200
- return {
201
- authMethod: { kind: "oauth", ref: "chatgpt" },
202
- transport: "server-proxy",
203
- upstreamWire: "responses",
204
- endpoint: CODEX_RESPONSES_URL,
205
- requiredHeaders: [...CODEX_REQUIRED_HEADERS],
206
- vendor: provider || "openai"
207
- };
208
- }
209
- if (oauthApiKeyRef === "claude") {
210
- return {
211
- authMethod: { kind: "oauth", ref: "claude" },
212
- transport: "server-proxy",
213
- upstreamWire: "anthropic-messages",
214
- endpoint: ANTHROPIC_MESSAGES_URL,
215
- requiredHeaders: ["anthropic-version", "anthropic-beta"],
216
- vendor: provider || "anthropic"
217
- };
218
- }
219
- if (oauthApiKeyRef === "workbuddy" || oauthApiKeyRef === "workbuddy-ai") {
220
- return {
221
- authMethod: { kind: "oauth", ref: oauthApiKeyRef },
222
- transport: "server-proxy",
223
- upstreamWire: "chat.completions",
224
- endpoint: oauthApiKeyRef === "workbuddy" ? "https://copilot.tencent.com/v2/chat/completions" : "https://www.workbuddy.ai/v2/chat/completions",
225
- requiredHeaders: [],
226
- vendor: oauthApiKeyRef
227
- };
228
- }
229
- if (oauthApiKeyRef === "xai") {
230
- return {
231
- authMethod: { kind: "oauth", ref: "xai" },
232
- transport: "server-proxy",
233
- upstreamWire: "chat.completions",
234
- endpoint: XAI_CHAT_COMPLETIONS_URL,
235
- requiredHeaders: [],
236
- vendor: provider || "xai"
237
- };
238
- }
239
- if (oauthApiKeyRef === "cursor") {
240
- return {
241
- authMethod: { kind: "oauth", ref: "cursor" },
242
- transport: "server-proxy",
243
- upstreamWire: "cursor-connect",
244
- endpoint: CURSOR_AGENT_URL,
245
- requiredHeaders: [
246
- "x-cursor-client-version",
247
- "x-cursor-client-type",
248
- "x-ghost-mode"
249
- ],
250
- vendor: provider || "cursor"
251
- };
252
- }
253
- if (oauthApiKeyRef === "devin" || !ownCustomKeyWins && provider === "devin") {
254
- return {
255
- authMethod: { kind: "oauth", ref: "devin" },
256
- transport: "server-proxy",
257
- upstreamWire: "devin-connect",
258
- endpoint: DEVIN_CONNECT_URL,
259
- requiredHeaders: ["connect-protocol-version"],
260
- vendor: provider || "devin"
261
- };
262
- }
263
- if (agentConfig.cliProvider || agentConfig.apiSource === "cli" || provider === "cli") {
264
- return {
265
- authMethod: { kind: "cli", provider: agentConfig.cliProvider || provider || "codex" },
266
- transport: "direct",
267
- upstreamWire: "cli",
268
- endpoint: "",
269
- requiredHeaders: [],
270
- vendor: provider || "cli"
271
- };
272
- }
273
- if (agentConfig.customProviderUrl || agentConfig.apiSource === "custom") {
274
- const transport2 = agentShouldUseServerProxy(agentConfig) ? "server-proxy" : "direct";
275
- const endpoint2 = asOptionalTrimmedString(agentConfig.customProviderUrl) ?? "";
276
- const upstreamWire2 = resolveCustomUpstreamWire(
277
- endpoint2,
278
- findModelConfig(provider, agentConfig.model ?? "")?.nativeProtocol
279
- );
280
- return {
281
- authMethod: { kind: "custom-key" },
282
- transport: transport2,
283
- upstreamWire: upstreamWire2,
284
- endpoint: endpoint2,
285
- requiredHeaders: [],
286
- vendor: provider || "custom"
287
- };
288
- }
289
- const transport = agentShouldUseServerProxy(agentConfig) ? "server-proxy" : "direct";
290
- const useResponses = isOpenAiResponsesModel({
291
- provider,
292
- model: agentConfig.model,
293
- endpointKey: agentConfig.endpointKey
294
- });
295
- const upstreamWire = useResponses ? "responses" : "chat.completions";
296
- const endpoint = upstreamWire === "responses" ? resolvePlatformResponsesEndpoint(provider, agentConfig.model) ?? "" : resolvePlatformChatCompletionsEndpoint(provider, agentConfig.model) ?? "";
297
- return {
298
- authMethod: { kind: "platform-key" },
299
- transport,
300
- upstreamWire,
301
- endpoint,
302
- requiredHeaders: [],
303
- vendor: provider || "openai"
304
- };
305
- }
306
-
307
123
  // packages/ai/agent/buildSystemPrompt.ts
308
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`;
309
125
  var isBrowser = typeof window !== "undefined";
@@ -455,6 +271,13 @@ ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
455
271
  cacheScope: "static",
456
272
  content: DELETE_SAFETY_RED_LINE
457
273
  },
274
+ // 凭据纪律:与红线同为无条件系统层块,四条装配线同源。
275
+ {
276
+ id: "credential-hygiene",
277
+ owner: "platform",
278
+ cacheScope: "static",
279
+ content: CREDENTIAL_HYGIENE_RULE
280
+ },
458
281
  // 并行是默认:系统层固定块,紧随红线(同为无条件前缀,不随工具/轮次变化)。
459
282
  {
460
283
  id: "parallel-dispatch-default",
@@ -462,6 +285,13 @@ ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
462
285
  cacheScope: "static",
463
286
  content: PARALLEL_DISPATCH_DEFAULT_RULE
464
287
  },
288
+ // 派发落点:并行派发纪律的下一层(派到哪个执行后端),紧随并行块。
289
+ {
290
+ id: "dispatch-backend-policy",
291
+ owner: "platform",
292
+ cacheScope: "static",
293
+ content: DISPATCH_BACKEND_POLICY
294
+ },
465
295
  // 平台风控纪律:无条件静态前缀,紧随并行派发块。
466
296
  {
467
297
  id: "platform-risk-control",
@@ -1397,8 +1227,6 @@ export {
1397
1227
  selectResponsesConversationState,
1398
1228
  updateResponsesConversationState,
1399
1229
  isResponsesConversationStateRejection,
1400
- resolveClientWire,
1401
- resolveAgentCallPlan,
1402
1230
  generateRequestBody,
1403
1231
  CONFIRMATION_INPUT_KEYS,
1404
1232
  stripModelToolArgs,
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-UAD2WT54.js";
8
8
  import {
9
9
  toTimestampMs
10
- } from "./chunk-HP6O6LTV.js";
10
+ } from "./chunk-CDLP56BS.js";
11
11
  import {
12
12
  fetchFromServer,
13
13
  getAllServers
@@ -15,7 +15,7 @@ import {
15
15
  import {
16
16
  selectIdentityToken,
17
17
  selectIdentityUserId
18
- } from "./chunk-SEJ5OS6F.js";
18
+ } from "./chunk-PXYBUFDB.js";
19
19
  import {
20
20
  isTombstoneRecord
21
21
  } from "./chunk-D2MDMY2M.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildAgentRuntimeAgentLookupKeys,
3
3
  shouldFetchAgentRuntimeRecordRemotely
4
- } from "./chunk-QLQ573SU.js";
4
+ } from "./chunk-3M52COK5.js";
5
5
 
6
6
  // packages/agent-runtime/oauthProviderRefs.ts
7
7
  var OAUTH_PROVIDER_REFS = [
@@ -10,9 +10,7 @@ var OAUTH_PROVIDER_REFS = [
10
10
  "antigravity",
11
11
  "claude",
12
12
  "cursor",
13
- "devin",
14
- "workbuddy",
15
- "workbuddy-ai"
13
+ "devin"
16
14
  ];
17
15
  var METERED_API_KEY_REF_PREFIX = "api-key:";
18
16
  var normalizeRef = (ref) => typeof ref === "string" ? ref.trim().toLowerCase() : "";
@@ -1,11 +1,13 @@
1
+ import {
2
+ parsePositiveFiniteNumberOrFallback
3
+ } from "./chunk-Y5GCAMGP.js";
1
4
  import {
2
5
  isGatewayHttpStatus
3
6
  } from "./chunk-NF64D32W.js";
4
7
  import {
5
8
  CORE_DRAIN_REASON,
6
- parsePositiveFiniteNumberOrFallback,
7
9
  parseRetryAfterHeaderMs
8
- } from "./chunk-XPWGOTBQ.js";
10
+ } from "./chunk-3L2WKC3W.js";
9
11
  import {
10
12
  asTrimmedLowercaseString
11
13
  } from "./chunk-QSJ3HFEF.js";
@@ -6,12 +6,12 @@ import {
6
6
  readAction,
7
7
  readRequestManager,
8
8
  resolveAgentReadServers
9
- } from "./chunk-6MPAEODB.js";
9
+ } from "./chunk-NHEWV5FD.js";
10
10
  import {
11
11
  loadFileFromIndexedDb,
12
12
  removeAction,
13
13
  saveFileToIndexedDb
14
- } from "./chunk-D4OWHT5Y.js";
14
+ } from "./chunk-MAYW6V3E.js";
15
15
  import {
16
16
  beginWriteAck,
17
17
  compareRemoteRecordsByComparableTime,
@@ -28,13 +28,13 @@ import {
28
28
  shouldReplaceLocalWithRemoteRecord,
29
29
  shouldReplicateLocalRecord,
30
30
  uploadToCurrentServer
31
- } from "./chunk-Z6KQDSZW.js";
31
+ } from "./chunk-43OFVLWJ.js";
32
32
  import {
33
33
  asyncThunkCreator,
34
34
  buildCreateSlice,
35
35
  createEntityAdapter,
36
36
  noloDeleteRequest
37
- } from "./chunk-7BSQK2UC.js";
37
+ } from "./chunk-WRCZXJ4N.js";
38
38
  import {
39
39
  fetchFromClientDb,
40
40
  fetchFromServer,
@@ -49,12 +49,12 @@ import {
49
49
  getFileIdFromKey,
50
50
  ulid
51
51
  } from "./chunk-5EMSBTQ6.js";
52
- import {
53
- isRecord
54
- } from "./chunk-KUG52IAP.js";
55
52
  import {
56
53
  API_ENDPOINTS
57
54
  } from "./chunk-LCBAMY2M.js";
55
+ import {
56
+ isRecord
57
+ } from "./chunk-KUG52IAP.js";
58
58
 
59
59
  // packages/database/actions/readAndWait.ts
60
60
  var hashTokenScope = (currentToken) => {
@@ -706,7 +706,7 @@ var dbSlice = createSliceWithThunks({
706
706
  // 动态 import 在调用期解析,避开 TDZ/求值顺序问题(同下方 share)。
707
707
  read: create.asyncThunk(
708
708
  async (payload, thunkApi) => {
709
- const { readAction: readAction2 } = await import("./read-5KAZHHDM.js");
709
+ const { readAction: readAction2 } = await import("./read-7JPIWRBQ.js");
710
710
  return readAction2(payload, thunkApi);
711
711
  },
712
712
  {
@@ -780,7 +780,7 @@ var dbSlice = createSliceWithThunks({
780
780
  // 这里改成动态 import,运行期才解析,彻底断开这条边。
781
781
  share: create.asyncThunk(
782
782
  async (config, thunkApi) => {
783
- const { shareResourceAction } = await import("./action-ZJYUBXFC.js");
783
+ const { shareResourceAction } = await import("./action-GPPJC5TI.js");
784
784
  return shareResourceAction(config, thunkApi);
785
785
  }
786
786
  ),