nolo-cli 0.84.0-alpha.1 → 0.84.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 (168) hide show
  1. package/README.md +2 -2
  2. package/{_executeModel-IULR47HG.js → _executeModel-BPUR2QYH.js} +51 -50
  3. package/{action-D22U6CTH.js → action-P4TNFGAD.js} +11 -11
  4. package/{addContentAction-XAPUTGL4.js → addContentAction-MB2HHMDZ.js} +9 -9
  5. package/{addDialogAgentAction-M7VLLBZM.js → addDialogAgentAction-S2NRBCWW.js} +9 -9
  6. package/{agentDeleteCommand-2S4WCDQC.js → agentDeleteCommand-MNAA6MIG.js} +32 -30
  7. package/{agentEmailCommands-V3ADGHX7.js → agentEmailCommands-SK34WJKU.js} +70 -66
  8. package/{agentGrantCommands-R3VQEZJR.js → agentGrantCommands-M3XFO6EN.js} +2 -2
  9. package/{agentListCommands-EPK3S274.js → agentListCommands-I26MKI4T.js} +55 -36
  10. package/{agentMachineCommands-XMZWK7P3.js → agentMachineCommands-M6QDR6P3.js} +32 -30
  11. package/{agentProviderCommands-65ZC2WB4.js → agentProviderCommands-X3UNW77C.js} +87 -0
  12. package/{agentPullCommand-N7L2CT7L.js → agentPullCommand-O5MPVJ5E.js} +3 -3
  13. package/agentRecordCommands-HTHLO2MM.js +129 -0
  14. package/{agentRunCommand-VUWNWC7C.js → agentRunCommand-IAIRCMTH.js} +70 -65
  15. package/{agentRunControl-T44MESII.js → agentRunControl-AVJR4JW4.js} +2 -2
  16. package/{agentRuntimeLocal-YRONTDLM.js → agentRuntimeLocal-3WTYYIT2.js} +32 -26
  17. package/{agentSlice-2P7OJFES.js → agentSlice-TVP3HINW.js} +10 -10
  18. package/{appDeleteCommands-YS7UGMP3.js → appDeleteCommands-SB5TNLKY.js} +32 -30
  19. package/{appDeployCommands-XIE5Z4BE.js → appDeployCommands-2IPKZINV.js} +32 -30
  20. package/{appDeployStatusCommands-54UDVYET.js → appDeployStatusCommands-K63TFUID.js} +32 -30
  21. package/{appGetCommands-6XYLBCRN.js → appGetCommands-VU2SLNEH.js} +32 -30
  22. package/{appListCommands-VEGH7SF5.js → appListCommands-S3T4DJ36.js} +32 -30
  23. package/{authCommand-JIEOFHXW.js → authCommand-HGP2XTKC.js} +185 -28
  24. package/{authCommands-ILTBI6JV.js → authCommands-RGOGCPP6.js} +4 -5
  25. package/builtinSkillRegistry-Q2VVY3SC.js +33 -0
  26. package/{chatQueueReduxAdapter-GPYCH5Z2.js → chatQueueReduxAdapter-TWIYKVIZ.js} +25 -25
  27. package/{chromeCommands-VOIRNJBL.js → chromeCommands-FZYAU75D.js} +1 -1
  28. package/{chromeOpsCommands-M7DPCX2T.js → chromeOpsCommands-62P2Q2YB.js} +31 -1
  29. package/{chunk-C3FZR5EC.js → chunk-2F7RJC6L.js} +1 -1
  30. package/{chunk-BOYUESO7.js → chunk-3AMA42ZI.js} +1 -1
  31. package/{chunk-RZOJRTKR.js → chunk-3BGIKIPF.js} +444 -920
  32. package/{chunk-HQUORJTM.js → chunk-3BMYXEUW.js} +1 -1
  33. package/{chunk-EBKMQULC.js → chunk-3IUWIAHP.js} +13 -15
  34. package/{chunk-NTW5GWDM.js → chunk-3VNWWVKB.js} +2 -0
  35. package/{chunk-4SZ37KLL.js → chunk-3VUWPRFW.js} +50 -30
  36. package/{chunk-WL2RKIBF.js → chunk-3YIAR5UI.js} +1 -1
  37. package/{chunk-DWUCB2A3.js → chunk-42V6BK2E.js} +1 -1
  38. package/{chunk-AX7RMXSH.js → chunk-4MK3I7Y4.js} +38 -4
  39. package/{chunk-PF6O3GR3.js → chunk-52Q2IW2X.js} +1340 -1273
  40. package/{chunk-Y3NZYLPG.js → chunk-5MEYHVIB.js} +1 -1
  41. package/{chunk-5XTOKQLW.js → chunk-5UTFL4QJ.js} +6 -2
  42. package/chunk-5ZUL4CUO.js +10 -0
  43. package/{chunk-6YTOJY35.js → chunk-6D2JFXLY.js} +35 -0
  44. package/{chunk-E6RGHPDR.js → chunk-6D6VBVEW.js} +4 -6
  45. package/{chunk-FZGV4FGK.js → chunk-6GFOD3TK.js} +260 -140
  46. package/{chunk-TMPLPCVX.js → chunk-6OZ36FXI.js} +2 -2
  47. package/{chunk-PZM3EENV.js → chunk-6Z7MY3V7.js} +1 -1
  48. package/{chunk-BYEJ7K2Z.js → chunk-7S4YWN7P.js} +1 -1
  49. package/{chunk-SREASRV5.js → chunk-ABQYVJBJ.js} +1 -1
  50. package/chunk-ACTMNVHM.js +93 -0
  51. package/{chunk-ZZCJUXUI.js → chunk-AHAHBQMU.js} +2 -2
  52. package/{chunk-BJCWNHVU.js → chunk-BFDFRLLQ.js} +2 -2
  53. package/chunk-BMQ2MJUK.js +153 -0
  54. package/chunk-BNGW5ASC.js +344 -0
  55. package/{chunk-2KDR4CWE.js → chunk-BYMV6QZG.js} +24 -1
  56. package/{chunk-73BR2IQT.js → chunk-CWQINZEA.js} +127 -7
  57. package/{chunk-HTMVBPOF.js → chunk-DD6XE56O.js} +19 -72
  58. package/{chunk-CADAR6QU.js → chunk-EYAQT56M.js} +4 -3
  59. package/{chunk-CJCJF5XB.js → chunk-FDTR4QJ6.js} +4 -2
  60. package/{chunk-D6XYLSOS.js → chunk-FKNWP6SG.js} +1 -1
  61. package/{chunk-3VPDELAP.js → chunk-FP76KI2Y.js} +1500 -84
  62. package/chunk-FV3JEYR3.js +870 -0
  63. package/{chunk-GCJ3IS5M.js → chunk-GIVFXPWK.js} +177 -6
  64. package/chunk-GMZLP5DV.js +82 -0
  65. package/{chunk-LHDV2QUI.js → chunk-GNCCNNZD.js} +4 -2
  66. package/{chunk-XWNRAIUL.js → chunk-GP5LKBUZ.js} +6 -16
  67. package/{chunk-PZCTYKGU.js → chunk-GQBOR3G6.js} +2 -2
  68. package/{chunk-NFT2AOK5.js → chunk-H4AHY5BU.js} +13 -85
  69. package/{chunk-FNGAF7C4.js → chunk-HAFJ3NDE.js} +137 -12
  70. package/{chunk-ZVN6I33J.js → chunk-HCT7U36O.js} +9 -5
  71. package/{chunk-7QVPPOEC.js → chunk-HKNXJGEC.js} +43 -43
  72. package/{chunk-3JQ2NRYU.js → chunk-HVURBGF3.js} +4 -4
  73. package/{chunk-OZX2IPKM.js → chunk-HYJFRTLW.js} +2 -2
  74. package/{chunk-HH65VA5U.js → chunk-I3TQJXQ7.js} +109 -6
  75. package/{chunk-UDQWGU7F.js → chunk-J4MOO56S.js} +1 -1
  76. package/{chunk-KC5FAHVS.js → chunk-JEDZAO7L.js} +1 -1
  77. package/{chunk-6XIE5ZGI.js → chunk-JPGCXHNM.js} +1 -1
  78. package/{chunk-DUJWWUGV.js → chunk-K36IXSCQ.js} +1 -1
  79. package/{chunk-KRMWO2NN.js → chunk-KAUSRTO6.js} +3 -3
  80. package/{chunk-7FWPLK4M.js → chunk-LJ5VW2UJ.js} +1 -1
  81. package/{chunk-GHEJJGJI.js → chunk-LMREEBWT.js} +833 -109
  82. package/{chunk-RXX4GDIH.js → chunk-LS2ZANRJ.js} +1 -1
  83. package/chunk-LVIFM7VW.js +1625 -0
  84. package/{chunk-BJIRLHJR.js → chunk-M2EJHDJP.js} +4 -0
  85. package/{chunk-EVBFYPDC.js → chunk-MC4XLIJ7.js} +6 -2
  86. package/{chunk-KEZNSFGD.js → chunk-MZYBSTMH.js} +11 -173
  87. package/chunk-OCZKATRC.js +129 -0
  88. package/{chunk-MXUSPS2N.js → chunk-OIVSQH2O.js} +1510 -1592
  89. package/{chunk-E36HZARC.js → chunk-P5EVSOPA.js} +93 -17
  90. package/{chunk-SZLVDREM.js → chunk-PBA4UJBK.js} +3 -3
  91. package/{chunk-URWDSZRW.js → chunk-PMAIQX7A.js} +3 -3
  92. package/{chunk-AETZ7AD6.js → chunk-Q554LLSI.js} +1 -1
  93. package/{chunk-AJHEFRGJ.js → chunk-Q67DOFOO.js} +214 -5
  94. package/{chunk-UZ6XXCVR.js → chunk-QDSINZM3.js} +15 -2
  95. package/{chunk-NRALD3CC.js → chunk-QSHEEA5N.js} +54 -10
  96. package/chunk-QU7KDSZX.js +677 -0
  97. package/{chunk-T25L377S.js → chunk-RPJUFEGR.js} +10 -10
  98. package/{chunk-QCZX4FTW.js → chunk-SH43IESU.js} +173 -15
  99. package/{chunk-SPAQ4PVV.js → chunk-SV5IJK6K.js} +1 -1
  100. package/{chunk-BKJO7LDP.js → chunk-U4OKDZFH.js} +6 -6
  101. package/{chunk-DM4FBSWG.js → chunk-UDVH2P4A.js} +7 -7
  102. package/{chunk-4EJ5QYB5.js → chunk-UEVXFHQB.js} +2 -2
  103. package/{chunk-JYYZCK2Z.js → chunk-V7E4PXQD.js} +1 -1
  104. package/{chunk-NHRQCXIQ.js → chunk-VMFTFOWF.js} +13 -3
  105. package/{chunk-YFADVSZE.js → chunk-VRTTFDBM.js} +7 -6
  106. package/{chunk-U7YP7ECK.js → chunk-WP5UXDA5.js} +84 -13
  107. package/{chunk-5J7W2VWW.js → chunk-WV42OMV7.js} +6 -265
  108. package/{chunk-3QPYFHAH.js → chunk-XD2MJFUG.js} +1 -1
  109. package/{chunk-IDGYOD2O.js → chunk-XP3VVAPG.js} +3174 -223
  110. package/{chunk-ETLZZQJE.js → chunk-Z2PV6O2T.js} +121 -26
  111. package/{chunk-BZNGCVAW.js → chunk-Z5625XML.js} +4 -4
  112. package/{contentThunks-THSCADSK.js → contentThunks-JYWI7G7I.js} +26 -26
  113. package/{cooldownCommands-BSCH2W7P.js → cooldownCommands-REAWYVTY.js} +2 -2
  114. package/{createAgentAutomationAction-WGN3UQ5A.js → createAgentAutomationAction-Z4SUJ54Y.js} +26 -26
  115. package/{createDialogAction-3EN2NLH7.js → createDialogAction-RCHFLVJ2.js} +29 -29
  116. package/{createPageAction-4VK473QV.js → createPageAction-YK2253XQ.js} +28 -28
  117. package/{dbSlice-GKGGFNOB.js → dbSlice-A6C6H32X.js} +8 -8
  118. package/{deleteFile-LWSR674W.js → deleteFile-YG6QMJLU.js} +3 -3
  119. package/{dialogCommands-PS4NWYY7.js → dialogCommands-X4UOZQWX.js} +36 -32
  120. package/{dialogSlice-CLV7SVOZ.js → dialogSlice-IVTWLCE2.js} +31 -25
  121. package/{docCreateCommands-4KANZJR6.js → docCreateCommands-VD6TGHG4.js} +33 -31
  122. package/{docDeleteCommands-F2S2TRUF.js → docDeleteCommands-OT3R2G4W.js} +34 -32
  123. package/{docReadCommands-B2WDPZQE.js → docReadCommands-2G7BIXSH.js} +33 -31
  124. package/{docStore-TDLCHWPF.js → docStore-UENKCCDX.js} +9 -9
  125. package/{docUpdateCommands-E7TKHRIO.js → docUpdateCommands-45MVJKZA.js} +33 -31
  126. package/{fetchMessages-DRABNDPZ.js → fetchMessages-EIU7UFFK.js} +3 -4
  127. package/{getPricing-QVTUQQTM.js → getPricing-LUSEABA6.js} +4 -4
  128. package/{handleSendMessageAction-AHL3ZHE4.js → handleSendMessageAction-LM2J4HC3.js} +66 -74
  129. package/index.js +99 -86
  130. package/{localDialogRead-PUQKFI73.js → localDialogRead-BTFJ4V2I.js} +2 -2
  131. package/{localRuntimeDb-P37ZTX55.js → localRuntimeDb-SYQGUF4U.js} +1 -1
  132. package/{machineCommands-OTABVXOA.js → machineCommands-6N6MQIE6.js} +69 -65
  133. package/{machineWsRunDispatch-V4EVQSMZ.js → machineWsRunDispatch-7MFKVQCR.js} +65 -61
  134. package/{memberThunks-KATHH3F4.js → memberThunks-P2ECUJ56.js} +9 -9
  135. package/{models-GS72DVJS.js → models-T3SG6MJ5.js} +2 -2
  136. package/{offlineMarxistsAgentCommand-GEH6SNNA.js → offlineMarxistsAgentCommand-HGXZV4XJ.js} +1 -1
  137. package/package.json +1 -1
  138. package/pdf-U6KSUEZZ.js +26435 -0
  139. package/providerPresetApply-XI3WUPTI.js +214 -0
  140. package/providerRegistry-KEPWWGXD.js +31 -0
  141. package/{read-LC6HVYBN.js → read-COE3ZYR6.js} +5 -4
  142. package/{readDocTool-N3ERJHHF.js → readDocTool-5USN4A6V.js} +1 -1
  143. package/{readlineWorkspace-IIT3FQ6I.js → readlineWorkspace-JWBON5CX.js} +291 -135
  144. package/{removeDialogAgentAction-F5GPTALR.js → removeDialogAgentAction-W66BJ7CF.js} +12 -12
  145. package/{runAgentClientLoop-7TQM7IAR.js → runAgentClientLoop-TA4SSPHE.js} +49 -49
  146. package/{runtimeDoctorCommands-CROTMULY.js → runtimeDoctorCommands-X6WDBEQX.js} +2 -2
  147. package/{setDialogExtraReferencesAction-AY4ZCF3A.js → setDialogExtraReferencesAction-2ALKG3WA.js} +10 -10
  148. package/{setPrimaryDialogAgentAction-HPMG7V3R.js → setPrimaryDialogAgentAction-TQZB55F6.js} +12 -12
  149. package/{settingSlice-OEJA4NQO.js → settingSlice-P4ZW7K5X.js} +10 -10
  150. package/{spaceCommands-FSYH7AL4.js → spaceCommands-6NSAXB7D.js} +31 -29
  151. package/{streamAgentChatTurn-6EF6TVFK.js → streamAgentChatTurn-X5ENGUIS.js} +126 -65
  152. package/{switchDialogAgentAction-HMDZTZ4I.js → switchDialogAgentAction-3KI72HHS.js} +9 -9
  153. package/{tableCommands-SUNTHAYX.js → tableCommands-O6NWHFKV.js} +1 -1
  154. package/{toolApiClient-VGYUB4P5.js → toolApiClient-G3M73RTB.js} +3 -3
  155. package/{tools-R3QNWWTD.js → tools-XRQR7ZZR.js} +45 -45
  156. package/tuiSummaryLlmCaller-UFGFOIIW.js +128 -0
  157. package/{updateCommands-Y363MC3L.js → updateCommands-2M74UL7P.js} +2 -2
  158. package/{updateDialogTitleAction-F3EUOWOB.js → updateDialogTitleAction-ESUUD3GT.js} +46 -29
  159. package/agentRecordCommands-WFPWLWOF.js +0 -125
  160. package/chunk-FMODTASJ.js +0 -109
  161. package/chunk-I42VC5KR.js +0 -15
  162. package/chunk-NB5SIWC4.js +0 -611
  163. package/chunk-NG4UT4K4.js +0 -79
  164. package/codingSkills-7S6523WH.js +0 -48
  165. package/tuiSummaryLlmCaller-PWOXTCBF.js +0 -116
  166. package/{chunk-3RAG2NAD.js → chunk-UKWGR5SS.js} +3 -3
  167. package/{db-VQSAOWAO.js → db-WK5MDZVN.js} +1 -1
  168. package/{localRuntimeAuthority-R5UBODT3.js → localRuntimeAuthority-6IR6BBXE.js} +3 -3
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  dialogMessageKey
3
- } from "./chunk-NHRQCXIQ.js";
3
+ } from "./chunk-VMFTFOWF.js";
4
4
  import {
5
5
  asOptionalFiniteNumber
6
6
  } from "./chunk-WWC7I6TA.js";
@@ -9,7 +9,7 @@ import {
9
9
  initReactI18next,
10
10
  instance,
11
11
  toast
12
- } from "./chunk-IDGYOD2O.js";
12
+ } from "./chunk-XP3VVAPG.js";
13
13
  import {
14
14
  require_date_fns
15
15
  } from "./chunk-M76ECQRD.js";
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-YDH3FDFQ.js";
19
19
  import {
20
20
  isSystemAdmin
21
- } from "./chunk-XWNRAIUL.js";
21
+ } from "./chunk-QDSINZM3.js";
22
22
  import {
23
23
  asRecordOrEmpty
24
24
  } from "./chunk-KX6YBIHG.js";
@@ -27,7 +27,7 @@ import {
27
27
  addContentAction,
28
28
  checkSpaceMembership,
29
29
  localSpaceAuthorityPatchStamp
30
- } from "./chunk-ZZCJUXUI.js";
30
+ } from "./chunk-AHAHBQMU.js";
31
31
  import {
32
32
  createSpaceKey,
33
33
  normalizeSpaceId
@@ -41,9 +41,10 @@ import {
41
41
  uploadFileAction,
42
42
  upsertSSREntity,
43
43
  write
44
- } from "./chunk-YFADVSZE.js";
44
+ } from "./chunk-VRTTFDBM.js";
45
45
  import {
46
46
  SEPARATOR,
47
+ asTrimmedNonEmptyStringArray,
47
48
  createKey,
48
49
  fileKey,
49
50
  isAgentKey,
@@ -52,16 +53,13 @@ import {
52
53
  rowKey,
53
54
  splitKey,
54
55
  ulid
55
- } from "./chunk-NHRQCXIQ.js";
56
+ } from "./chunk-VMFTFOWF.js";
56
57
  import {
57
58
  asOptionalFiniteNumber
58
59
  } from "./chunk-WWC7I6TA.js";
59
- import {
60
- asTrimmedNonEmptyStringArray
61
- } from "./chunk-I42VC5KR.js";
62
60
  import {
63
61
  extractUserId
64
- } from "./chunk-BJIRLHJR.js";
62
+ } from "./chunk-M2EJHDJP.js";
65
63
  import {
66
64
  DEVICE_LOCAL_OWNER_ID,
67
65
  createAsyncThunk,
@@ -70,7 +68,7 @@ import {
70
68
  resolveReplicationServers,
71
69
  scheduleDeleteReplication,
72
70
  scheduleWriteReplication
73
- } from "./chunk-3RAG2NAD.js";
71
+ } from "./chunk-UKWGR5SS.js";
74
72
  import {
75
73
  createClientLogger,
76
74
  isAbortError
@@ -81,15 +79,15 @@ import {
81
79
  import {
82
80
  buildTombstoneRecord
83
81
  } from "./chunk-GBRG75BQ.js";
82
+ import {
83
+ isRecord
84
+ } from "./chunk-KUG52IAP.js";
84
85
  import {
85
86
  asTrimmedString
86
87
  } from "./chunk-3EUW3WEO.js";
87
88
  import {
88
89
  asOptionalPositiveFiniteNumber
89
90
  } from "./chunk-U6VC4MU4.js";
90
- import {
91
- isRecord
92
- } from "./chunk-KUG52IAP.js";
93
91
  import {
94
92
  asOptionalTrimmedString
95
93
  } from "./chunk-G3SUCT4W.js";
@@ -1455,11 +1453,11 @@ var ENTITY_DELETE_STRATEGIES = {
1455
1453
  await dispatch(deleteTable({ dbKey: key })).unwrap();
1456
1454
  },
1457
1455
  file: async (key, { thunkAPI }) => {
1458
- const { deleteFileAction } = await import("./deleteFile-LWSR674W.js");
1456
+ const { deleteFileAction } = await import("./deleteFile-YG6QMJLU.js");
1459
1457
  await deleteFileAction(key, thunkAPI);
1460
1458
  },
1461
1459
  image: async (key, { thunkAPI }) => {
1462
- const { deleteFileAction } = await import("./deleteFile-LWSR674W.js");
1460
+ const { deleteFileAction } = await import("./deleteFile-YG6QMJLU.js");
1463
1461
  await deleteFileAction(key, thunkAPI);
1464
1462
  },
1465
1463
  agent: async (key, { dispatch, userId, sourceServerOrigin }) => {
@@ -19,6 +19,7 @@ ${input}`;
19
19
  }
20
20
  let jsonStr;
21
21
  try {
22
+ JSON.stringify(input);
22
23
  const serialized = JSON.stringify(input, null, 2);
23
24
  if (serialized === void 0) {
24
25
  return task;
@@ -43,6 +44,7 @@ function calculateDelegatedPayloadMetrics(task, input, delegatedContent) {
43
44
  serializedInputForTokens = input;
44
45
  } else {
45
46
  try {
47
+ JSON.stringify(input);
46
48
  const serialized = JSON.stringify(input, null, 2);
47
49
  if (serialized !== void 0) {
48
50
  inputChars = serialized.length;
@@ -6,9 +6,8 @@ import {
6
6
  } from "./chunk-HS7MLR74.js";
7
7
  import {
8
8
  clipMultilineText,
9
- fetchAndSerializeTable,
10
- resolveBuiltinSkillPage
11
- } from "./chunk-RZOJRTKR.js";
9
+ fetchAndSerializeTable
10
+ } from "./chunk-3BGIKIPF.js";
12
11
  import {
13
12
  isGatewayHttpStatus
14
13
  } from "./chunk-NF64D32W.js";
@@ -20,7 +19,7 @@ import {
20
19
  } from "./chunk-3L2WKC3W.js";
21
20
  import {
22
21
  slateToSimplifiedMarkdown
23
- } from "./chunk-UDQWGU7F.js";
22
+ } from "./chunk-J4MOO56S.js";
24
23
  import {
25
24
  waitForAbortableDelay
26
25
  } from "./chunk-N4G4PKQ6.js";
@@ -29,25 +28,28 @@ import {
29
28
  } from "./chunk-MEYIRKDN.js";
30
29
  import {
31
30
  fetchAndCacheMessages
32
- } from "./chunk-IDGYOD2O.js";
31
+ } from "./chunk-XP3VVAPG.js";
33
32
  import {
34
33
  shouldUseServerProxy
35
34
  } from "./chunk-YYLHWIW6.js";
36
35
  import {
37
36
  fetchServerSyncedCredential
38
- } from "./chunk-DM4FBSWG.js";
37
+ } from "./chunk-UDVH2P4A.js";
39
38
  import {
40
39
  buildSkillGuidancePromptBlock,
41
40
  extractRuntimePageCapabilities,
41
+ resolveBuiltinSkillPage,
42
42
  resolveSkillGraphFromRoots
43
- } from "./chunk-NB5SIWC4.js";
43
+ } from "./chunk-LVIFM7VW.js";
44
44
  import {
45
+ DELETE_SAFETY_RED_LINE,
45
46
  buildIdentityBlock,
46
47
  buildRuntimeGuidanceBlocks,
47
48
  compileContextLayers,
49
+ detectDispatchIntentFromMessages,
48
50
  normalizeChatCompletionsBodyForProvider,
49
51
  resolveToolGuidedSections
50
- } from "./chunk-ETLZZQJE.js";
52
+ } from "./chunk-Z2PV6O2T.js";
51
53
  import {
52
54
  convertMessagesToResponsesInput,
53
55
  getUsageRequestOptions,
@@ -57,26 +59,26 @@ import {
57
59
  import {
58
60
  ANTIGRAVITY_CLOUD_CODE_BASE_URL,
59
61
  isAntigravityOAuthAgent
60
- } from "./chunk-LHDV2QUI.js";
62
+ } from "./chunk-GNCCNNZD.js";
61
63
  import {
62
64
  buildProviderAuthHeaders
63
- } from "./chunk-TMPLPCVX.js";
65
+ } from "./chunk-6OZ36FXI.js";
66
+ import {
67
+ estimateTokenCount
68
+ } from "./chunk-PSCNXBYA.js";
64
69
  import {
65
70
  isOpenAiResponsesModel,
66
71
  resolvePlatformChatCompletionsEndpoint,
67
72
  resolvePlatformResponsesEndpoint
68
- } from "./chunk-PZCTYKGU.js";
69
- import {
70
- estimateTokenCount
71
- } from "./chunk-PSCNXBYA.js";
73
+ } from "./chunk-GQBOR3G6.js";
72
74
  import {
73
75
  clampReasoningEffort,
74
76
  getModelConfig,
75
77
  isModelSupportReasoningEffort
76
- } from "./chunk-MXUSPS2N.js";
78
+ } from "./chunk-OIVSQH2O.js";
77
79
  import {
78
80
  createFileCredentialBroker
79
- } from "./chunk-3JQ2NRYU.js";
81
+ } from "./chunk-HVURBGF3.js";
80
82
  import {
81
83
  toErrorMessage
82
84
  } from "./chunk-HNMXYYJR.js";
@@ -91,32 +93,33 @@ import {
91
93
  import {
92
94
  isDeepInfraKimiModel,
93
95
  isFireworksKimiModel,
96
+ isPlatformMimoProviderModel,
94
97
  resolveFireworksKimiModel
95
- } from "./chunk-AJHEFRGJ.js";
98
+ } from "./chunk-Q67DOFOO.js";
96
99
  import {
97
100
  createSpaceKey
98
101
  } from "./chunk-UAD2WT54.js";
99
102
  import {
100
103
  read
101
- } from "./chunk-YFADVSZE.js";
104
+ } from "./chunk-VRTTFDBM.js";
102
105
  import {
103
106
  asTrimmedLowercaseString
104
107
  } from "./chunk-QSJ3HFEF.js";
105
108
  import {
106
109
  extractCustomId
107
- } from "./chunk-BJIRLHJR.js";
110
+ } from "./chunk-M2EJHDJP.js";
108
111
  import {
109
112
  getRuntimeServerContext
110
- } from "./chunk-3RAG2NAD.js";
113
+ } from "./chunk-UKWGR5SS.js";
111
114
  import {
112
115
  isAbortError
113
116
  } from "./chunk-QOKAKDPE.js";
114
- import {
115
- asTrimmedString
116
- } from "./chunk-3EUW3WEO.js";
117
117
  import {
118
118
  isRecord
119
119
  } from "./chunk-KUG52IAP.js";
120
+ import {
121
+ asTrimmedString
122
+ } from "./chunk-3EUW3WEO.js";
120
123
  import {
121
124
  API_ENDPOINTS
122
125
  } from "./chunk-LCBAMY2M.js";
@@ -618,7 +621,9 @@ var buildSystemPromptContext = (options) => {
618
621
  ${mainPrompt}` : "";
619
622
  const agentTools = canonicalizeToolNames(agentConfig.tools ?? []);
620
623
  const hasAskTool = agentTools.includes("ask_user");
621
- const toolSections = resolveToolGuidedSections(agentTools);
624
+ const toolSections = resolveToolGuidedSections(agentTools, {
625
+ dispatchIntent: options.dispatchIntent === true
626
+ });
622
627
  const {
623
628
  startupProtocol,
624
629
  contextLayerContract,
@@ -644,6 +649,14 @@ ${contexts.userGlobalPrompt.trim()} ` : "";
644
649
  const dialogSummarySection = contexts.dialogSummary?.trim() ? `--- \u5386\u53F2\u5BF9\u8BDD\u6458\u8981 ---
645
650
  ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
646
651
  return compileContextLayers([
652
+ // 删除安全红线:系统层最高优先级约束,位于所有层之前(含身份信息),
653
+ // owner 要求常驻「根本提示词」的最顶部(2026-09-26 批量误删事故)。
654
+ {
655
+ id: "delete-safety-red-line",
656
+ owner: "platform",
657
+ cacheScope: "static",
658
+ content: DELETE_SAFETY_RED_LINE
659
+ },
647
660
  { id: "identity", owner: "platform", cacheScope: "session", content: identitySection },
648
661
  { id: "user-response-language", owner: "platform", cacheScope: "session", content: buildUserResponseLanguageContext({ language: safeLanguage }) },
649
662
  { id: "startup-protocol", owner: "platform", cacheScope: "static", content: startupProtocol },
@@ -651,6 +664,7 @@ ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
651
664
  { id: "tool-round-economy", owner: "platform", cacheScope: "session", content: toolSections.toolRoundEconomy },
652
665
  { id: "tool-use-guidance", owner: "platform", cacheScope: "session", content: toolSections.toolUseGuidance },
653
666
  { id: "privilege-escalation", owner: "platform", cacheScope: "session", content: toolSections.privilegeEscalation },
667
+ { id: "shell-task-lifecycle", owner: "platform", cacheScope: "session", content: toolSections.shellTaskLifecycle },
654
668
  { id: "agent-orchestration", owner: "platform", cacheScope: "session", content: toolSections.agentOrchestration },
655
669
  { id: "agent-collaboration", owner: "platform", cacheScope: "session", content: toolSections.agentCollaboration },
656
670
  { id: "web-access", owner: "platform", cacheScope: "session", content: toolSections.webAccess },
@@ -698,8 +712,9 @@ var applyClaudeCache = (stableContent, dynamicContent) => {
698
712
  var prependPromptMessage = (messages, agentConfig, resolvedModel, language, contexts, prependSystemPrompt = true) => {
699
713
  if (!prependSystemPrompt) return messages;
700
714
  if (!contexts && !agentConfig.prompt) return messages;
715
+ const dispatchIntent = detectDispatchIntentFromMessages(messages);
701
716
  if (isClaudeModel(resolvedModel)) {
702
- const compiled = buildSystemPromptContext({ agentConfig, language, contexts });
717
+ const compiled = buildSystemPromptContext({ agentConfig, language, contexts, dispatchIntent });
703
718
  if (!compiled.content.trim()) return messages;
704
719
  const content = applyClaudeCache(
705
720
  compiled.stablePrefixContent,
@@ -708,7 +723,7 @@ var prependPromptMessage = (messages, agentConfig, resolvedModel, language, cont
708
723
  const systemMessage2 = { role: "system", content };
709
724
  return [systemMessage2, ...messages];
710
725
  }
711
- const promptContent = buildSystemPrompt({ agentConfig, language, contexts });
726
+ const promptContent = buildSystemPrompt({ agentConfig, language, contexts, dispatchIntent });
712
727
  if (!promptContent.trim()) return messages;
713
728
  const systemMessage = { role: "system", content: promptContent };
714
729
  return [systemMessage, ...messages];
@@ -718,9 +733,12 @@ var shouldInjectLlamaCppThinkingToggle = (agentConfig) => {
718
733
  if (!isLoopbackUrl(agentConfig.customProviderUrl)) return false;
719
734
  return /qwen/i.test(agentConfig.model ?? "");
720
735
  };
721
- var shouldDisableMiMoThinking = (agentConfig) => {
736
+ var shouldDisableMiMoThinking = (agentConfig, resolvedModel) => {
722
737
  if (agentConfig.enableThinking === true) return false;
723
- return /xiaomimimo\.com/i.test(agentConfig.customProviderUrl ?? "") || (agentConfig.provider ?? "").toLowerCase() === "mimo";
738
+ if (/xiaomimimo\.com/i.test(agentConfig.customProviderUrl ?? "") || (agentConfig.provider ?? "").toLowerCase() === "mimo") {
739
+ return true;
740
+ }
741
+ return isPlatformMimoProviderModel(agentConfig.provider, resolvedModel);
724
742
  };
725
743
  var shouldDisableKimiThinking = (agentConfig, providerName, resolvedModel) => {
726
744
  if (agentConfig.enableThinking !== false) return false;
@@ -835,7 +853,7 @@ var generateOpenAIRequestBody = (agentConfig, providerName, messages, contexts,
835
853
  enable_thinking: agentConfig.enableThinking
836
854
  };
837
855
  }
838
- if (shouldDisableMiMoThinking(agentConfig)) {
856
+ if (shouldDisableMiMoThinking(agentConfig, resolvedModel)) {
839
857
  requestBody.thinking = { type: "disabled" };
840
858
  }
841
859
  if (shouldDisableKimiThinking(agentConfig, providerName, resolvedModel)) {
@@ -888,7 +906,9 @@ function generateResponseRequestBody(agentConfig, msgs, contexts, prependSystemP
888
906
  const promptContent = buildSystemPrompt({
889
907
  agentConfig,
890
908
  language,
891
- contexts
909
+ contexts,
910
+ // 按当前用户输入检测派发意图:无意图只注入最小派发协议(安全硬门常在)。
911
+ dispatchIntent: detectDispatchIntentFromMessages(msgs)
892
912
  });
893
913
  body.instructions = promptContent;
894
914
  }
@@ -2,7 +2,7 @@ import {
2
2
  deleteDbRecord,
3
3
  queryUserRecords,
4
4
  readDbRecord
5
- } from "./chunk-NRALD3CC.js";
5
+ } from "./chunk-QSHEEA5N.js";
6
6
  import {
7
7
  mergeAndDedupUserData
8
8
  } from "./chunk-KQHGZWSV.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  mergeAvailabilityDeadline
3
- } from "./chunk-CJCJF5XB.js";
3
+ } from "./chunk-FDTR4QJ6.js";
4
4
 
5
5
  // packages/cli/credentialAvailability.ts
6
6
  import { homedir } from "node:os";
@@ -1,19 +1,25 @@
1
+ import {
2
+ isDevinOAuthAgent
3
+ } from "./chunk-5ZUL4CUO.js";
4
+ import {
5
+ getModelContextWindow
6
+ } from "./chunk-HKNXJGEC.js";
1
7
  import {
2
8
  findModelConfig,
3
9
  getProviderByModelName
4
- } from "./chunk-MXUSPS2N.js";
10
+ } from "./chunk-OIVSQH2O.js";
5
11
  import {
6
12
  asOptionalFiniteNumber
7
13
  } from "./chunk-WWC7I6TA.js";
8
14
  import {
9
15
  asTrimmedLowercaseString
10
16
  } from "./chunk-QSJ3HFEF.js";
11
- import {
12
- asTrimmedString
13
- } from "./chunk-3EUW3WEO.js";
14
17
  import {
15
18
  isRecord
16
19
  } from "./chunk-KUG52IAP.js";
20
+ import {
21
+ asTrimmedString
22
+ } from "./chunk-3EUW3WEO.js";
17
23
  import {
18
24
  asOptionalTrimmedString
19
25
  } from "./chunk-G3SUCT4W.js";
@@ -120,6 +126,33 @@ async function stripImagePartsForTextOnlyAgent(messages, agentConfig) {
120
126
  return { messages: !supportsVision && hasImages ? stripImagePartsFromMessages(messages) : messages };
121
127
  }
122
128
 
129
+ // packages/agent-runtime/devin/devinChannelWindows.ts
130
+ var DEVIN_CHANNEL_CONTEXT_WINDOWS = {
131
+ // SWE-2 家族(catalog 无裸 swe-2 selector;旧点号/裸写法如 swe-2、
132
+ // swe-1.7 实测均 permission_denied,已不是可用 selector)。
133
+ "swe-2-max": 262e3,
134
+ "swe-2-high": 262e3,
135
+ "swe-2-medium": 262e3,
136
+ // SWE-1.7 家族。
137
+ "swe-1-7": 262e3,
138
+ "swe-1-7-medium": 262e3,
139
+ "swe-1-7-lightning": 202752,
140
+ // SWE-1.6 家族(免费档默认)。
141
+ "swe-1-6": 2e5,
142
+ "swe-1-6-fast": 2e5,
143
+ // 经 devin 通道转售、且与厂商原生窗口不同的模型(catalog 枚举型 selector)。
144
+ "MODEL_GPT_5_2_LOW": 384e3,
145
+ "MODEL_GPT_5_2_MEDIUM": 384e3,
146
+ "MODEL_GPT_5_2_HIGH": 384e3,
147
+ "MODEL_GPT_5_2_XHIGH": 384e3
148
+ };
149
+ var devinChannelContextWindow = (model) => {
150
+ const raw = model?.trim();
151
+ if (!raw) return void 0;
152
+ return DEVIN_CHANNEL_CONTEXT_WINDOWS[raw];
153
+ };
154
+ var resolveAgentContextWindow = (agent) => (isDevinOAuthAgent(agent) ? devinChannelContextWindow(agent.model) : void 0) ?? getModelContextWindow(agent.model ?? "");
155
+
123
156
  // packages/agent-runtime/agentRecordConfig.ts
124
157
  function stringField(record, key) {
125
158
  const value = record[key];
@@ -540,6 +573,7 @@ export {
540
573
  resolveHistoricalToolContentCap,
541
574
  projectToolMessageContent,
542
575
  clipToolText,
576
+ resolveAgentContextWindow,
543
577
  resolveAgentRuntimeConfigFromRecord,
544
578
  buildDesktopAgentRuntimeAgentConfigSnapshot,
545
579
  buildDesktopAgentRuntimeDialogHistorySnapshot,