nolo-cli 0.191.0-alpha.3 → 0.191.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 (149) hide show
  1. package/{_executeModel-WQ2D4ZRH.js → _executeModel-4HQQXPN4.js} +44 -46
  2. package/{action-BHWB4MOK.js → action-HNG2JKWK.js} +3 -3
  3. package/{addContentAction-BY375D35.js → addContentAction-FEN3H2EE.js} +6 -6
  4. package/{addDialogAgentAction-HOZYOCWC.js → addDialogAgentAction-DDA6S3WS.js} +5 -5
  5. package/{agentDeleteCommand-TTCVC74A.js → agentDeleteCommand-HZFWSKED.js} +57 -59
  6. package/{agentEmailCommands-PTG35KER.js → agentEmailCommands-HRYMVHC7.js} +59 -61
  7. package/{agentListCommands-MAG736RU.js → agentListCommands-HE2CCZEW.js} +33 -31
  8. package/{agentMachineCommands-ATOZK3R5.js → agentMachineCommands-ISSULCRR.js} +23 -23
  9. package/{agentProviderCommands-XSZUCNIR.js → agentProviderCommands-4EAYN3ZY.js} +3 -3
  10. package/{agentRecordCommands-KGRPIJN5.js → agentRecordCommands-WGAMWQLA.js} +57 -59
  11. package/{agentRunCommand-75VVJTNU.js → agentRunCommand-7EQ64FIB.js} +59 -61
  12. package/{agentRunControl-6HHESKDB.js → agentRunControl-EJPBPVLU.js} +5 -5
  13. package/{agentRuntimeLocal-NAAYNHCW.js → agentRuntimeLocal-ONSIOOQB.js} +20 -20
  14. package/{agentSlice-UJPIKKKP.js → agentSlice-CHWNVAS5.js} +6 -6
  15. package/{appDeleteCommands-VDHCDVBF.js → appDeleteCommands-RNAF4V5C.js} +25 -25
  16. package/{appDeployCommands-V6UTKVXR.js → appDeployCommands-LTIZ4QH7.js} +25 -25
  17. package/{appDeployStatusCommands-4UIFSEPC.js → appDeployStatusCommands-OJJR4LDK.js} +25 -25
  18. package/{appGetCommands-XKDXLC3C.js → appGetCommands-UJZF6U4V.js} +25 -25
  19. package/{appListCommands-BELRVX2Y.js → appListCommands-M5C5BIDY.js} +25 -25
  20. package/{authCommand-RV5MQDWN.js → authCommand-RMUBRAXF.js} +11 -11
  21. package/{builtinSkillRegistry-7MBUY5EY.js → builtinSkillRegistry-XDBPVNY6.js} +3 -5
  22. package/{chromeOpsCommands-C46BXHEE.js → chromeOpsCommands-P4PFQDT7.js} +19 -4
  23. package/{chunk-7UODCAWW.js → chunk-32GANJHJ.js} +1 -1
  24. package/{chunk-G6OOUQWJ.js → chunk-4KB6WQUL.js} +2 -0
  25. package/{chunk-LHOR5MC2.js → chunk-4KYV2TAI.js} +164 -323
  26. package/{chunk-5EFNSNAV.js → chunk-6CFXWUYE.js} +7 -7
  27. package/{chunk-6XIE5ZGI.js → chunk-6HIGYUBQ.js} +1 -1
  28. package/{chunk-LBXUNNDS.js → chunk-6K2AKJAD.js} +1 -1
  29. package/{chunk-U5ZHUOLT.js → chunk-6OBTQSJ2.js} +2 -2
  30. package/{chunk-XPL63OIC.js → chunk-7SUYSFPG.js} +140 -66
  31. package/{chunk-53RSTB7T.js → chunk-7TMVGMM3.js} +26 -31
  32. package/{chunk-ZBCBFOWC.js → chunk-A2ZMIRLN.js} +2 -2
  33. package/{chunk-MJWUBTK7.js → chunk-AOYR4XOA.js} +1 -1
  34. package/{chunk-IIX6VWLW.js → chunk-AV6IE6NM.js} +224 -38
  35. package/{chunk-WFUIXNKC.js → chunk-BMXR7CFX.js} +3 -3
  36. package/{chunk-JIFYXQRD.js → chunk-BTYQAODF.js} +26 -8
  37. package/{chunk-VHGD6FHV.js → chunk-BZKBX5BO.js} +28 -5
  38. package/{chunk-Q6RMLYSA.js → chunk-CMLBKYEI.js} +4 -2
  39. package/chunk-CMTTXP5Y.js +291 -0
  40. package/{chunk-OHRDHS4N.js → chunk-CVCRAO6Q.js} +9 -4
  41. package/{chunk-SM56M7N7.js → chunk-DBRXPVWY.js} +39 -5
  42. package/{chunk-2KBNF477.js → chunk-DSVR6ZAV.js} +30 -21
  43. package/{chunk-ADTJJVDJ.js → chunk-DXDG4XLD.js} +2838 -2255
  44. package/{chunk-R5LJWMZE.js → chunk-EMXVOJDB.js} +3 -3
  45. package/{chunk-KHCLMKZZ.js → chunk-EY7V7REW.js} +280 -6
  46. package/{chunk-KGP7UTNN.js → chunk-FNXSQ7A3.js} +15 -15
  47. package/{chunk-BTBT2566.js → chunk-FSEGCTZQ.js} +1 -1
  48. package/{chunk-CNMQATUF.js → chunk-GL7W7TTR.js} +2 -2
  49. package/{chunk-5KTQVMCX.js → chunk-GOO6G4PY.js} +85 -0
  50. package/{chunk-HTLIKE5U.js → chunk-GVMF62PR.js} +2 -2
  51. package/{chunk-UZHYRBUB.js → chunk-H4CFODT7.js} +137 -61
  52. package/{chunk-R4BMKAR5.js → chunk-HAB2UDLT.js} +1 -1
  53. package/{chunk-3NPXGNSK.js → chunk-HVXL4VOO.js} +348 -87
  54. package/{chunk-32ZKZET7.js → chunk-HWZT5DKX.js} +1 -1
  55. package/{chunk-GYVLAHA4.js → chunk-IY7DGZSY.js} +10 -4
  56. package/{chunk-FEDJHD5X.js → chunk-J5Z2SSIY.js} +6 -6
  57. package/{chunk-UVWBGWBO.js → chunk-JA6WCCDO.js} +3 -3
  58. package/{chunk-YE6A72XL.js → chunk-JI5MQU5B.js} +35 -31
  59. package/{chunk-TFSMPRAY.js → chunk-JLOCKFSI.js} +4 -4
  60. package/{chunk-UBLITLAZ.js → chunk-K2GL335R.js} +13 -3
  61. package/{chunk-DS5DAOIY.js → chunk-KYQXW7DL.js} +3 -3
  62. package/{chunk-5HAPEKNH.js → chunk-LFJRTOUV.js} +158 -43
  63. package/{chunk-N7E3LQ4A.js → chunk-LGW6A7GK.js} +1 -1
  64. package/{chunk-UNOILAZP.js → chunk-M6AGLVV4.js} +74 -2
  65. package/{chunk-BA2FHPS4.js → chunk-MOCY5LJI.js} +1 -1
  66. package/{chunk-INFHX73M.js → chunk-MR6L6U46.js} +55 -3
  67. package/{chunk-CTPFBJAF.js → chunk-N7IBYQEC.js} +182 -91
  68. package/{chunk-QU3TLYBR.js → chunk-NHI3JZP4.js} +32 -8
  69. package/{chunk-B2N5GZBU.js → chunk-OHYCQKPW.js} +6 -6
  70. package/{chunk-WAZ6BTSC.js → chunk-OOERQPG5.js} +1 -1
  71. package/{chunk-EHB4CKUI.js → chunk-OTKNEZE3.js} +9 -9
  72. package/chunk-OVBUUU7L.js +2648 -0
  73. package/{chunk-PVD7CRYV.js → chunk-P7SUBTGZ.js} +3 -3
  74. package/{chunk-RJ3EYB5G.js → chunk-PRIROPK4.js} +1 -1
  75. package/chunk-PRJ473FK.js +63 -0
  76. package/{chunk-K6TZSON4.js → chunk-PXERKNSJ.js} +1 -1
  77. package/{chunk-B6EZB6DW.js → chunk-QAYCF4CH.js} +2 -2
  78. package/{chunk-5DPVRMSY.js → chunk-RBJASUX4.js} +1 -1
  79. package/{chunk-NVOYW6H4.js → chunk-RDKNGJ5M.js} +12 -8
  80. package/{chunk-GTP6VNWH.js → chunk-RQ22OZD7.js} +3 -3
  81. package/{chunk-2E5M3JVS.js → chunk-RWGIVUH3.js} +11 -5
  82. package/{chunk-DFF6B7P7.js → chunk-RXUKDHS5.js} +1 -1
  83. package/{chunk-JLR5NWP2.js → chunk-RXX262QX.js} +17 -3
  84. package/{chunk-GC64WGMD.js → chunk-SM3NSZJV.js} +16 -5
  85. package/{chunk-A5BLRE3G.js → chunk-T3U2KQF4.js} +2 -2
  86. package/{chunk-HLAL63BZ.js → chunk-T43B7LB2.js} +1 -1
  87. package/{chunk-LCSAJ5TJ.js → chunk-UDKNC3CV.js} +3 -3
  88. package/{chunk-VE3FEZIT.js → chunk-WKGOIXFV.js} +5 -5
  89. package/{chunk-4YMD7B4Y.js → chunk-WPOKOKZA.js} +2 -2
  90. package/{chunk-YIRADHSY.js → chunk-WYKMOZTW.js} +1 -1
  91. package/{chunk-WRCZXJ4N.js → chunk-X4F26D5K.js} +2 -0
  92. package/{chunk-4MYCKDSI.js → chunk-XUOF4MA7.js} +2 -2
  93. package/{chunk-PD2YRFAI.js → chunk-Y5ZEHS3F.js} +1 -1
  94. package/{chunk-4CEAZRZ4.js → chunk-YU2DGFKG.js} +1 -1
  95. package/{chunk-TVGX5QIN.js → chunk-YUA6OAH5.js} +2 -2
  96. package/{chunk-53PBXLID.js → chunk-Z3MQYKRN.js} +17 -17
  97. package/{chunk-I3HWJODB.js → chunk-ZHOKF4MY.js} +31 -26
  98. package/{chunk-2XUOREKD.js → chunk-ZI5MFQ42.js} +5 -4
  99. package/{chunk-DYQXB46J.js → chunk-ZSCIGIJS.js} +1 -1
  100. package/{commandRegistry-4JHVRMW7.js → commandRegistry-O2657YC7.js} +86 -66
  101. package/{contentThunks-HQBAAXNW.js → contentThunks-THWDEBJU.js} +17 -17
  102. package/{cooldownCommands-4XKJFEBW.js → cooldownCommands-V4EEBD55.js} +3 -3
  103. package/{createAgentAutomationAction-KELPOVMP.js → createAgentAutomationAction-2ZZTFGWG.js} +17 -17
  104. package/{createDialogAction-Z3SASMTM.js → createDialogAction-FCRKPKIT.js} +20 -22
  105. package/{createPageAction-PNHOIG44.js → createPageAction-EC25JTKW.js} +18 -19
  106. package/{dbSlice-QAUXABCC.js → dbSlice-JK7LWBDO.js} +5 -5
  107. package/{deleteFile-R5OBP7OM.js → deleteFile-CE24BROO.js} +3 -3
  108. package/{dialogCommands-4BGV6DPD.js → dialogCommands-QH7BJ3DJ.js} +26 -26
  109. package/{dialogSlice-QHV6I3OQ.js → dialogSlice-Z5E7POEN.js} +16 -16
  110. package/{docCreateCommands-3CW75UF2.js → docCreateCommands-KP42NGIF.js} +26 -27
  111. package/{docDeleteCommands-NL4ZYMN5.js → docDeleteCommands-7YOCX5GC.js} +27 -28
  112. package/{docReadCommands-HXCNVDPQ.js → docReadCommands-EJEIAOKQ.js} +26 -27
  113. package/{docStore-LVMUSECS.js → docStore-6MHLMMWO.js} +6 -6
  114. package/{docUpdateCommands-RMVBAMDE.js → docUpdateCommands-ACJLISGA.js} +26 -27
  115. package/{getPricing-E2PLNWCR.js → getPricing-3PQY3TGI.js} +3 -3
  116. package/{handleSendMessageAction-7TONIXHY.js → handleSendMessageAction-MTOPN4D3.js} +86 -42
  117. package/index.js +7 -7
  118. package/{lib-4YTWAGY7.js → lib-5KKIBFIT.js} +439 -272
  119. package/{localRuntimeAdapter-HRAB7P5E.js → localRuntimeAdapter-4USQ3EP7.js} +55 -57
  120. package/{machineCommands-OTXFRTDA.js → machineCommands-CJMSDSOO.js} +56 -58
  121. package/{machineWsRunDispatch-KWVWOHHG.js → machineWsRunDispatch-YIPO76QH.js} +56 -58
  122. package/{memberThunks-ZAE52VIP.js → memberThunks-WT2KVRP4.js} +158 -55
  123. package/{models-UUNO6DOL.js → models-PJBE6JDV.js} +2 -2
  124. package/package.json +1 -1
  125. package/{providerPresetApply-JGNMO2KX.js → providerPresetApply-ISA35424.js} +5 -5
  126. package/{providerRegistry-33J3ZYFJ.js → providerRegistry-QIQCHVNP.js} +5 -5
  127. package/{read-D6NEWSGG.js → read-ILTT75DW.js} +3 -3
  128. package/{readDocTool-NTAXO7SX.js → readDocTool-374CFJYO.js} +1 -1
  129. package/{readlineWorkspace-CEX5TXGM.js → readlineWorkspace-RORGDWZN.js} +291 -99
  130. package/{removeDialogAgentAction-YEPO5AYI.js → removeDialogAgentAction-BDLO7UC2.js} +7 -7
  131. package/{runAgentClientLoop-DCV4BD2W.js → runAgentClientLoop-CDCBSUWW.js} +41 -43
  132. package/{runtimeDoctorCommands-NYBOTA6D.js → runtimeDoctorCommands-AM2V5YVH.js} +5 -5
  133. package/{secretCommands-N6CMCJDZ.js → secretCommands-G5XYCXZB.js} +308 -1
  134. package/{setDialogExtraReferencesAction-EH5GWDAJ.js → setDialogExtraReferencesAction-GBIT7WAG.js} +6 -6
  135. package/{setPrimaryDialogAgentAction-PNWRK6IY.js → setPrimaryDialogAgentAction-PGBTR247.js} +7 -7
  136. package/{settingThunks-7VCWB6P7.js → settingThunks-XQJZVA4D.js} +38 -7
  137. package/{skillDiscovery-F3TMVQOJ.js → skillDiscovery-DO5372J5.js} +2 -3
  138. package/{spaceCommands-ZUI4CTSO.js → spaceCommands-BTSANKDH.js} +23 -23
  139. package/{streamAgentChatTurn-NKFKMFQ2.js → streamAgentChatTurn-VUF3EUMS.js} +66 -59
  140. package/{switchDialogAgentAction-23BFWJMV.js → switchDialogAgentAction-O7WTPLKG.js} +5 -5
  141. package/{tools-626VXEY7.js → tools-GAAYAIEW.js} +35 -37
  142. package/{tuiSummaryLlmCaller-FSOADMXK.js → tuiSummaryLlmCaller-MKOLOSH3.js} +11 -11
  143. package/{updateCommands-KE6LP3QX.js → updateCommands-W7TXEV7N.js} +3 -3
  144. package/{updateDialogTitleAction-RNNQAMXG.js → updateDialogTitleAction-LE2DBQDS.js} +17 -17
  145. package/{windowsSelfUpdate-26TSFXEZ.js → windowsSelfUpdate-575VQ6QO.js} +2 -2
  146. package/chunk-7KWPNGVJ.js +0 -150
  147. package/chunk-AETZ7AD6.js +0 -274
  148. package/chunk-EUGTFFO6.js +0 -42
  149. package/chunk-VYNMQ6HW.js +0 -138
@@ -7,13 +7,13 @@ import {
7
7
  deleteDialog,
8
8
  runtime_default,
9
9
  toast
10
- } from "./chunk-YE6A72XL.js";
10
+ } from "./chunk-JI5MQU5B.js";
11
11
  import {
12
12
  UNCATEGORIZED_ID,
13
13
  addContentAction,
14
14
  checkSpaceMembership,
15
15
  localSpaceAuthorityPatchStamp
16
- } from "./chunk-B6EZB6DW.js";
16
+ } from "./chunk-QAYCF4CH.js";
17
17
  import {
18
18
  createSpaceKey,
19
19
  normalizeSpaceId
@@ -32,7 +32,7 @@ import {
32
32
  uploadFileAction,
33
33
  upsertSSREntity,
34
34
  write
35
- } from "./chunk-B2N5GZBU.js";
35
+ } from "./chunk-OHYCQKPW.js";
36
36
  import {
37
37
  resolveFileCategory
38
38
  } from "./chunk-3PVYUPXK.js";
@@ -43,10 +43,10 @@ import {
43
43
  resolveReplicationServers,
44
44
  scheduleDeleteReplication,
45
45
  scheduleWriteReplication
46
- } from "./chunk-7UODCAWW.js";
46
+ } from "./chunk-32GANJHJ.js";
47
47
  import {
48
48
  createAsyncThunk
49
- } from "./chunk-WRCZXJ4N.js";
49
+ } from "./chunk-X4F26D5K.js";
50
50
  import {
51
51
  getIsDesktopApp
52
52
  } from "./chunk-6Q7UTJKR.js";
@@ -1497,11 +1497,11 @@ var ENTITY_DELETE_STRATEGIES = {
1497
1497
  await dispatch(deleteTable({ dbKey: key })).unwrap();
1498
1498
  },
1499
1499
  file: async (key, { thunkAPI }) => {
1500
- const { deleteFileAction } = await import("./deleteFile-R5OBP7OM.js");
1500
+ const { deleteFileAction } = await import("./deleteFile-CE24BROO.js");
1501
1501
  await deleteFileAction(key, thunkAPI);
1502
1502
  },
1503
1503
  image: async (key, { thunkAPI }) => {
1504
- const { deleteFileAction } = await import("./deleteFile-R5OBP7OM.js");
1504
+ const { deleteFileAction } = await import("./deleteFile-CE24BROO.js");
1505
1505
  await deleteFileAction(key, thunkAPI);
1506
1506
  },
1507
1507
  agent: async (key, { dispatch, userId, sourceServerOrigin }) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildSkillDocMarkdown
3
- } from "./chunk-AETZ7AD6.js";
3
+ } from "./chunk-EY7V7REW.js";
4
4
 
5
5
  // packages/cli/docPageHelpers.ts
6
6
  import { readFileSync } from "node:fs";
@@ -7,7 +7,7 @@ import {
7
7
  scheduleExistingRecordReplication,
8
8
  shouldReplaceLocalWithRemoteRecord,
9
9
  shouldReplicateLocalRecord
10
- } from "./chunk-7UODCAWW.js";
10
+ } from "./chunk-32GANJHJ.js";
11
11
  import {
12
12
  fetchFromClientDb,
13
13
  fetchFromServer,
@@ -5,10 +5,10 @@ import {
5
5
  } from "./chunk-NBTY7YJF.js";
6
6
  import {
7
7
  resolveCliLocalRuntimeKeyCapability
8
- } from "./chunk-LHOR5MC2.js";
8
+ } from "./chunk-4KYV2TAI.js";
9
9
  import {
10
10
  HIGH_RISK_MUTATION_TOOL_NAMES
11
- } from "./chunk-UBLITLAZ.js";
11
+ } from "./chunk-K2GL335R.js";
12
12
  import {
13
13
  DEFAULT_NOLO_SERVER_URL
14
14
  } from "./chunk-OLZBQWZU.js";
@@ -5,7 +5,7 @@ import {
5
5
  refreshOpenAiCodexToken,
6
6
  resolveServerSyncConfig,
7
7
  xaiRefresh
8
- } from "./chunk-DYQXB46J.js";
8
+ } from "./chunk-ZSCIGIJS.js";
9
9
  import {
10
10
  defaultLoopbackRequest
11
11
  } from "./chunk-VP3BINY7.js";
@@ -15,11 +15,11 @@ import {
15
15
  readCredentialEntry,
16
16
  readEffectiveCredentialEntry,
17
17
  recordCredentialProbe
18
- } from "./chunk-R4BMKAR5.js";
18
+ } from "./chunk-HAB2UDLT.js";
19
19
  import {
20
20
  OAUTH_PROVIDER_REFS,
21
21
  buildLocalAgentLookupKeys
22
- } from "./chunk-RJ3EYB5G.js";
22
+ } from "./chunk-PRIROPK4.js";
23
23
  import {
24
24
  LOCAL_CODEX_AGENT_ID,
25
25
  LOCAL_CODEX_AGENT_KEY,
@@ -45,7 +45,7 @@ import {
45
45
  } from "./chunk-7JWW65DU.js";
46
46
  import {
47
47
  applyPublicAgentCatalogOverride
48
- } from "./chunk-GTP6VNWH.js";
48
+ } from "./chunk-RQ22OZD7.js";
49
49
  import {
50
50
  CliProviderQuotaError,
51
51
  executeCli,
@@ -55,12 +55,13 @@ import {
55
55
  buildCliPrompt
56
56
  } from "./chunk-ATNTHIZI.js";
57
57
  import {
58
- inferCaptureIntent
59
- } from "./chunk-INFHX73M.js";
58
+ inferCaptureIntent,
59
+ resolveUserSkillRuntime
60
+ } from "./chunk-MR6L6U46.js";
60
61
  import {
61
62
  inlineImageUrlsForCustomProvider,
62
63
  prepareTools
63
- } from "./chunk-LCSAJ5TJ.js";
64
+ } from "./chunk-UDKNC3CV.js";
64
65
  import {
65
66
  getServerProviderSecret
66
67
  } from "./chunk-HS7MLR74.js";
@@ -82,7 +83,7 @@ import {
82
83
  resolveCliLocalRuntimeKeyCapability,
83
84
  resolveCliLocalSpawnDispatch,
84
85
  resolveStartAgentRunCwd
85
- } from "./chunk-LHOR5MC2.js";
86
+ } from "./chunk-4KYV2TAI.js";
86
87
  import {
87
88
  fetchWithTransientRetry,
88
89
  isTransientFetchError
@@ -90,10 +91,11 @@ import {
90
91
  import {
91
92
  deriveCredentialGroup,
92
93
  deriveCustomProviderCredentialGroup
93
- } from "./chunk-53RSTB7T.js";
94
+ } from "./chunk-7TMVGMM3.js";
94
95
  import {
95
- resolveAgentRequiredPackIds
96
- } from "./chunk-3NPXGNSK.js";
96
+ resolveAgentRequiredPackIds,
97
+ resolveUserEnabledSkills
98
+ } from "./chunk-CMTTXP5Y.js";
97
99
  import {
98
100
  applyBuiltinAgentRuntimeOverride,
99
101
  applyTokenUsageToDayStats,
@@ -102,14 +104,14 @@ import {
102
104
  resolveBuiltinPlatformAgentConfig,
103
105
  runKeyed,
104
106
  validateAskChoiceInput
105
- } from "./chunk-YE6A72XL.js";
107
+ } from "./chunk-JI5MQU5B.js";
106
108
  import {
107
109
  BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL,
108
110
  BUILTIN_TITLE_LLM_CONFIG
109
111
  } from "./chunk-523DITKR.js";
110
112
  import {
111
113
  fetchServerSyncedCredential
112
- } from "./chunk-CTPFBJAF.js";
114
+ } from "./chunk-N7IBYQEC.js";
113
115
  import {
114
116
  getDefaultCliLocalRuntimeDb
115
117
  } from "./chunk-P64WRQYV.js";
@@ -125,7 +127,7 @@ import {
125
127
  applySystemBuiltinSkillFilter,
126
128
  expandEnabledPacks,
127
129
  resolveEffectiveEnabledPacks
128
- } from "./chunk-SM56M7N7.js";
130
+ } from "./chunk-DBRXPVWY.js";
129
131
  import {
130
132
  DEFAULT_HYBRID_READ_TIMEOUT_MS,
131
133
  Duration_exports,
@@ -169,7 +171,7 @@ import {
169
171
  runExecShellGates,
170
172
  validateConfiguredRootExecutionLease,
171
173
  verifyOwnerRouteAck
172
- } from "./chunk-ADTJJVDJ.js";
174
+ } from "./chunk-DXDG4XLD.js";
173
175
  import {
174
176
  accumulateGeminiChunks,
175
177
  buildGeminiGenerateContentRequest,
@@ -181,7 +183,7 @@ import {
181
183
  resolveAntigravityFinishReason,
182
184
  resolveGeminiModelQuirks,
183
185
  shouldUseGeminiNativeToolRoute
184
- } from "./chunk-IIX6VWLW.js";
186
+ } from "./chunk-AV6IE6NM.js";
185
187
  import {
186
188
  PlatformStreamInterruptedError,
187
189
  buildPlatformChatCompletionRequest,
@@ -192,27 +194,27 @@ import {
192
194
  readPlatformChatSseCompletion,
193
195
  resolvePlatformChatProviderConfig,
194
196
  shouldUsePlatformChatProvider
195
- } from "./chunk-NVOYW6H4.js";
197
+ } from "./chunk-RDKNGJ5M.js";
196
198
  import {
197
199
  readSseDataValues,
198
200
  readSseFrames
199
201
  } from "./chunk-HNUWUO75.js";
200
202
  import {
201
203
  resolveAgentRuntimeConfigFromRecord
202
- } from "./chunk-N7E3LQ4A.js";
204
+ } from "./chunk-LGW6A7GK.js";
203
205
  import {
204
206
  resolveHistoricalToolContentCap
205
207
  } from "./chunk-2WZXXAQD.js";
206
208
  import {
207
209
  resolveToolImagePolicy
208
- } from "./chunk-PVD7CRYV.js";
210
+ } from "./chunk-P7SUBTGZ.js";
209
211
  import {
210
212
  collectStablePromptPrefix,
211
213
  convertMessagesToResponsesInput,
212
214
  findAgentStatePairingIssues,
213
215
  stablePromptCacheKey,
214
216
  toResponsesTools
215
- } from "./chunk-OHRDHS4N.js";
217
+ } from "./chunk-CVCRAO6Q.js";
216
218
  import {
217
219
  EMPTY_TOOL_RESULT_TEXT,
218
220
  createToolImageBudget,
@@ -228,21 +230,21 @@ import {
228
230
  parseNoloWorkspaceToolArguments,
229
231
  resolveRequestToolSurface,
230
232
  resolveRuntimeToolSurfaceForAgent
231
- } from "./chunk-UBLITLAZ.js";
233
+ } from "./chunk-K2GL335R.js";
232
234
  import {
233
235
  isCapacitySaturatedRateLimit,
234
236
  mergeAvailabilityDeadline,
235
237
  resolveAvailabilityAction,
236
238
  resolveCooldownGate,
237
239
  resolveCredentialKeyWithFallback
238
- } from "./chunk-JLR5NWP2.js";
240
+ } from "./chunk-RXX262QX.js";
239
241
  import {
240
242
  buildDialogFallbackTitleFromUserInput,
241
243
  normalizeDialogTitle
242
244
  } from "./chunk-2MBTWINN.js";
243
245
  import {
244
246
  normalizeUsage
245
- } from "./chunk-K6TZSON4.js";
247
+ } from "./chunk-PXERKNSJ.js";
246
248
  import {
247
249
  isDevinOAuthAgent
248
250
  } from "./chunk-5ZUL4CUO.js";
@@ -294,7 +296,7 @@ import {
294
296
  } from "./chunk-LOEO7LRC.js";
295
297
  import {
296
298
  isAntigravityOAuthAgent
297
- } from "./chunk-QU3TLYBR.js";
299
+ } from "./chunk-NHI3JZP4.js";
298
300
  import {
299
301
  toErrorMessage
300
302
  } from "./chunk-HNMXYYJR.js";
@@ -321,7 +323,7 @@ import {
321
323
  terminateRunProcess,
322
324
  transitionRunToTerminal,
323
325
  withQueueLock
324
- } from "./chunk-BTBT2566.js";
326
+ } from "./chunk-FSEGCTZQ.js";
325
327
  import {
326
328
  TASK_PREVIEW_MAX,
327
329
  formatListRunsCard,
@@ -341,12 +343,12 @@ import {
341
343
  import {
342
344
  buildProviderSessionHeaders,
343
345
  resolvePlatformAuthToken
344
- } from "./chunk-4YMD7B4Y.js";
346
+ } from "./chunk-WPOKOKZA.js";
345
347
  import {
346
348
  anthropicOAuthModelMaxOutputTokens,
347
349
  findModelConfig,
348
350
  isAdaptiveThinkingModelId
349
- } from "./chunk-GC64WGMD.js";
351
+ } from "./chunk-SM3NSZJV.js";
350
352
  import {
351
353
  CLI_PROVIDER_VALUES,
352
354
  isCliProvider
@@ -378,7 +380,7 @@ import {
378
380
  import {
379
381
  agentRunCardLabels,
380
382
  t
381
- } from "./chunk-UNOILAZP.js";
383
+ } from "./chunk-M6AGLVV4.js";
382
384
  import {
383
385
  createTokenDialogIndexKey,
384
386
  createTokenKey,
@@ -1104,6 +1106,7 @@ function buildPreparedAgentCacheKey(args) {
1104
1106
  const systemBuiltinSkillsKey = args.systemBuiltinSkills ? JSON.stringify(
1105
1107
  Object.keys(args.systemBuiltinSkills).sort().map((key) => [key, args.systemBuiltinSkills?.[key]])
1106
1108
  ) : "default";
1109
+ const userSkillsKey = JSON.stringify(resolveUserEnabledSkills(args).sort());
1107
1110
  const wakeKey = args.wake !== void 0 ? args.wake ? "wake:1" : "wake:0" : "";
1108
1111
  const policyKey = JSON.stringify([
1109
1112
  args.env?.NOLO_LOCAL_WORKSPACE_TOOLSET ?? "",
@@ -1113,7 +1116,7 @@ function buildPreparedAgentCacheKey(args) {
1113
1116
  args.env?.NOLO_LOCAL_ALLOWED_TOOLS ?? "",
1114
1117
  args.env?.NOLO_LOCAL_ALLOW_UNDECLARED_TOOLS ?? ""
1115
1118
  ]);
1116
- return `${policyKey}\0${args.userId}\0${args.agentRef}\0${args.cwd}\0${systemBuiltinSkillsKey}${wakeKey ? `\0${wakeKey}` : ""}`;
1119
+ return `${policyKey}\0${args.userId}\0${args.agentRef}\0${args.cwd}\0${systemBuiltinSkillsKey}\0${userSkillsKey}${wakeKey ? `\0${wakeKey}` : ""}`;
1117
1120
  }
1118
1121
  function clearCliLocalRuntimePreparedAgentCache() {
1119
1122
  preparedAgentRuntimeCache.clear();
@@ -2298,7 +2301,7 @@ var resolveCliProviderTransport = async (ctx) => {
2298
2301
  const prompt = buildPromptForCliProvider(messages);
2299
2302
  try {
2300
2303
  const reasoningEffortRaw = agentConfig.reasoning_effort;
2301
- const reasoningEffort = reasoningEffortRaw === "low" || reasoningEffortRaw === "medium" || reasoningEffortRaw === "high" || reasoningEffortRaw === "xhigh" || reasoningEffortRaw === "max" ? reasoningEffortRaw : void 0;
2304
+ const reasoningEffort = reasoningEffortRaw === "low" || reasoningEffortRaw === "medium" || reasoningEffortRaw === "high" || reasoningEffortRaw === "xhigh" || reasoningEffortRaw === "max" || reasoningEffortRaw === "ultra" ? reasoningEffortRaw : void 0;
2302
2305
  const cliOptions = {
2303
2306
  ...agentConfig.model ? { model: agentConfig.model } : {},
2304
2307
  ...reasoningEffort ? { reasoningEffort } : {},
@@ -2342,6 +2345,41 @@ var resolveCliProviderTransport = async (ctx) => {
2342
2345
  // packages/agent-runtime/codexResponsesProvider.ts
2343
2346
  import { createHash } from "node:crypto";
2344
2347
  import { randomUUID as randomUUID2 } from "node:crypto";
2348
+
2349
+ // packages/agent-runtime/codexOAuthModelAliases.ts
2350
+ var CODEX_OAUTH_MODEL_ALIASES = {
2351
+ // sol 家族最新:gpt-6.1-sol
2352
+ "gpt-6-sol": {
2353
+ aliasOf: "gpt-6.1-sol",
2354
+ since: "2026-11-01",
2355
+ reason: "\u540C\u5BB6\u65CF\u6362\u4EE3\uFF0Cowner \u51B3\u5B9A\u900F\u660E\u91CD\u5B9A\u5411\uFF08sol \u5BB6\u65CF\u6700\u65B0\u4E3A gpt-6.1-sol\uFF09\u3002"
2356
+ },
2357
+ "gpt-5.6-sol": {
2358
+ aliasOf: "gpt-6.1-sol",
2359
+ since: "2026-11-01",
2360
+ reason: "\u540C\u5BB6\u65CF\u6362\u4EE3\uFF0Cowner \u51B3\u5B9A\u900F\u660E\u91CD\u5B9A\u5411\uFF08sol \u5BB6\u65CF\u6700\u65B0\u4E3A gpt-6.1-sol\uFF09\u3002"
2361
+ },
2362
+ // terra 家族最新:gpt-6.1-terra
2363
+ "gpt-5.6-terra": {
2364
+ aliasOf: "gpt-6.1-terra",
2365
+ since: "2026-11-01",
2366
+ reason: "\u540C\u5BB6\u65CF\u6362\u4EE3\uFF0Cowner \u51B3\u5B9A\u900F\u660E\u91CD\u5B9A\u5411\uFF08terra \u5BB6\u65CF\u6700\u65B0\u4E3A gpt-6.1-terra\uFF09\u3002"
2367
+ },
2368
+ // luna 家族最新:gpt-6-luna(上游无 6.1-luna,luna 家族最新即为 gpt-6-luna)
2369
+ "gpt-5.6-luna": {
2370
+ aliasOf: "gpt-6-luna",
2371
+ since: "2026-11-01",
2372
+ reason: "\u540C\u5BB6\u65CF\u6362\u4EE3\uFF0Cowner \u51B3\u5B9A\u900F\u660E\u91CD\u5B9A\u5411\uFF08luna \u5BB6\u65CF\u6700\u65B0\u4E3A gpt-6-luna\uFF09\u3002"
2373
+ }
2374
+ };
2375
+ function resolveCodexOAuthEffectiveModel(model) {
2376
+ const raw = asOptionalTrimmedString(model);
2377
+ if (!raw) return void 0;
2378
+ const normalized = raw.toLowerCase();
2379
+ return CODEX_OAUTH_MODEL_ALIASES[normalized]?.aliasOf ?? raw;
2380
+ }
2381
+
2382
+ // packages/agent-runtime/codexResponsesProvider.ts
2345
2383
  var CODEX_RESPONSES_URL = "https://chatgpt.com/backend-api/codex/responses";
2346
2384
  var CODEX_CLIENT_VERSION = "0.162.1";
2347
2385
  var CODEX_ORIGINATOR = "codex_cli_rs";
@@ -2466,15 +2504,16 @@ function buildCodexRequestBody(args, identity = createCodexRequestIdentity(), se
2466
2504
  const role = m && typeof m === "object" ? String(m.role) : "";
2467
2505
  return role !== "system" && role !== "developer";
2468
2506
  });
2507
+ const rawModel = asOptionalTrimmedString(args.openAiBody.model) ?? asOptionalTrimmedString(args.agentConfig.model) ?? "gpt-5.5";
2508
+ const model = resolveCodexOAuthEffectiveModel(rawModel) ?? rawModel;
2469
2509
  const input = convertMessagesToCodexInput(nonSystem, resolveToolImagePolicy({
2470
2510
  ...args.agentConfig,
2471
- model: typeof args.openAiBody.model === "string" ? args.openAiBody.model : args.agentConfig.model,
2511
+ model,
2472
2512
  routeKind: "codex/responses",
2473
2513
  legacySupportsToolImages: false
2474
2514
  }));
2475
2515
  const instructions = collectInstructions(rawMessages, args.agentConfig.prompt);
2476
2516
  const stableInstructions = collectStablePromptPrefix(rawMessages, args.agentConfig.prompt);
2477
- const model = asOptionalTrimmedString(args.openAiBody.model) ?? asOptionalTrimmedString(args.agentConfig.model) ?? "gpt-5.5";
2478
2517
  const tools = toResponsesTools(
2479
2518
  Array.isArray(args.openAiBody.tools) ? args.openAiBody.tools : void 0
2480
2519
  );
@@ -4199,9 +4238,16 @@ async function resolveLocalProvider(ctx) {
4199
4238
  );
4200
4239
  }
4201
4240
 
4202
- // packages/cli/client/localRuntimeAdapter.ts
4203
- import { dirname as dirname4, extname, join as join6 } from "node:path";
4241
+ // packages/cli/client/localRuntimePaths.ts
4242
+ import { dirname, extname, join } from "node:path";
4204
4243
  import { fileURLToPath } from "node:url";
4244
+ function resolveLocalRuntimePaths(moduleUrl, compiled, execPath) {
4245
+ if (compiled) return { cliDir: dirname(execPath), cliEntrypoint: execPath };
4246
+ const modulePath = fileURLToPath(moduleUrl);
4247
+ const extension = extname(modulePath) === ".js" ? ".js" : ".ts";
4248
+ const cliDir = extension === ".js" ? dirname(modulePath) : dirname(dirname(modulePath));
4249
+ return { cliDir, cliEntrypoint: join(cliDir, `index${extension}`) };
4250
+ }
4205
4251
 
4206
4252
  // packages/cli/client/localRunExecutionIsolation.ts
4207
4253
  var UNSANDBOXED_HOST_EXECUTION_MESSAGE = "\u672C\u673A\u6267\u884C\u65E0\u6C99\u76D2\u9694\u79BB\uFF0C\u547D\u4EE4\u76F4\u63A5\u4F5C\u7528\u4E8E\u4F60\u7684\u5DE5\u4F5C\u533A";
@@ -5824,7 +5870,7 @@ function deriveAgentRunTodoStatus(input) {
5824
5870
  // packages/cli/client/fileSystemStores.ts
5825
5871
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
5826
5872
  import { homedir as nodeHomedir } from "node:os";
5827
- import { dirname, join } from "node:path";
5873
+ import { dirname as dirname2, join as join2 } from "node:path";
5828
5874
  var nodeFs = {
5829
5875
  mkdirSync,
5830
5876
  writeFileSync,
@@ -5836,7 +5882,7 @@ function resolveNoloHome(env, homedir2) {
5836
5882
  if (custom && custom.trim()) return custom.trim();
5837
5883
  const ambient = process.env.NOLO_HOME?.trim();
5838
5884
  if (ambient) return ambient;
5839
- return join(homedir2(), ".nolo");
5885
+ return join2(homedir2(), ".nolo");
5840
5886
  }
5841
5887
  function ensureDir(dir, fs) {
5842
5888
  fs.mkdirSync(dir, { recursive: true });
@@ -5858,8 +5904,8 @@ function createFileSystemTodoStore(opts = {}) {
5858
5904
  const homedir2 = opts.homedir ?? nodeHomedir;
5859
5905
  const fs = opts.fs ?? nodeFs;
5860
5906
  const noloHome = resolveNoloHome(env, homedir2);
5861
- const filePath = opts.filePath ?? join(noloHome, "agent_run_todos.json");
5862
- const oldFilePath = join(noloHome, "todos.json");
5907
+ const filePath = opts.filePath ?? join2(noloHome, "agent_run_todos.json");
5908
+ const oldFilePath = join2(noloHome, "todos.json");
5863
5909
  const loadMap = () => {
5864
5910
  if (!opts.filePath && !fs.existsSync(filePath) && fs.existsSync(oldFilePath)) {
5865
5911
  const oldData = readJson(oldFilePath, fs);
@@ -5884,7 +5930,7 @@ function createFileSystemTodoStore(opts = {}) {
5884
5930
  }
5885
5931
  }
5886
5932
  }
5887
- ensureDir(dirname(filePath), fs);
5933
+ ensureDir(dirname2(filePath), fs);
5888
5934
  writeJson(filePath, { todos: [...map2.values()] }, fs);
5889
5935
  return map2;
5890
5936
  }
@@ -5898,7 +5944,7 @@ function createFileSystemTodoStore(opts = {}) {
5898
5944
  return map;
5899
5945
  };
5900
5946
  const persist = (map) => {
5901
- ensureDir(dirname(filePath), fs);
5947
+ ensureDir(dirname2(filePath), fs);
5902
5948
  writeJson(filePath, { todos: [...map.values()] }, fs);
5903
5949
  };
5904
5950
  return {
@@ -8689,7 +8735,7 @@ import {
8689
8735
  } from "node:fs";
8690
8736
  import { access } from "node:fs/promises";
8691
8737
  import { tmpdir } from "node:os";
8692
- import { isAbsolute as isAbsolute2, join as join2, relative, resolve as resolve2 } from "node:path";
8738
+ import { isAbsolute as isAbsolute2, join as join3, relative, resolve as resolve2 } from "node:path";
8693
8739
 
8694
8740
  // packages/agent-runtime/linuxSandboxSeccomp.ts
8695
8741
  var AUDIT_ARCH_X86_64 = 3221225534;
@@ -8812,8 +8858,8 @@ function openRootHandle(path) {
8812
8858
  }
8813
8859
  }
8814
8860
  function openSeccompFd(program) {
8815
- const dir = mkdtempSync(join2(tmpdir(), "nolo-bwrap-seccomp-"));
8816
- const file = join2(dir, "filter.bpf");
8861
+ const dir = mkdtempSync(join3(tmpdir(), "nolo-bwrap-seccomp-"));
8862
+ const file = join3(dir, "filter.bpf");
8817
8863
  let writer = -1;
8818
8864
  let reader = -1;
8819
8865
  try {
@@ -9714,7 +9760,7 @@ import { spawnSync } from "node:child_process";
9714
9760
  import { mkdtempSync as mkdtempSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
9715
9761
  import { rm } from "node:fs/promises";
9716
9762
  import { tmpdir as tmpdir2 } from "node:os";
9717
- import { join as join3 } from "node:path";
9763
+ import { join as join4 } from "node:path";
9718
9764
  var runHostCommand = (argv, { cwd }) => {
9719
9765
  const result = spawnSync(argv[0], argv.slice(1), {
9720
9766
  cwd,
@@ -9774,11 +9820,11 @@ function prepareHostWorkspaceDelivery(args) {
9774
9820
  `\u5DE5\u4F5C\u533A\u6587\u4EF6\u6570 ${tracked.length} \u8D85\u8FC7\u4E0A\u9650 ${MAX_DELIVERY_FILE_COUNT}\uFF1A\u7591\u4F3C\u628A node_modules / \u6784\u5EFA\u4EA7\u7269\u6253\u8FDB\u4E86\u5F52\u6863\uFF08\u5F52\u6863\u53EA\u53D6 git ls-files\uFF09\u3002`
9775
9821
  );
9776
9822
  }
9777
- const stagingDir = mkdtempSync2(join3(args.tmpDir ?? tmpdir2(), "nolo-workspace-delivery-"));
9823
+ const stagingDir = mkdtempSync2(join4(args.tmpDir ?? tmpdir2(), "nolo-workspace-delivery-"));
9778
9824
  const stamp = `${process.pid}-${Date.now()}`;
9779
- const archivePath = join3(stagingDir, `workspace-${stamp}.tar.gz`);
9780
- const bundlePath = join3(stagingDir, `workspace-${stamp}.bundle`);
9781
- const listPath = join3(stagingDir, `filelist-${stamp}.z`);
9825
+ const archivePath = join4(stagingDir, `workspace-${stamp}.tar.gz`);
9826
+ const bundlePath = join4(stagingDir, `workspace-${stamp}.bundle`);
9827
+ const listPath = join4(stagingDir, `filelist-${stamp}.z`);
9782
9828
  const removeFile = args.removeFile ?? (async (filePath) => {
9783
9829
  await rm(filePath, { force: true });
9784
9830
  });
@@ -10636,7 +10682,7 @@ import { createHash as createHash4, randomUUID as randomUUID3 } from "node:crypt
10636
10682
  // packages/agent-runtime/artifactStore.ts
10637
10683
  import { createHash as createHash3, createHmac } from "node:crypto";
10638
10684
  import { mkdir, readFile, unlink, writeFile } from "node:fs/promises";
10639
- import { dirname as dirname2, resolve as resolve4, sep } from "node:path";
10685
+ import { dirname as dirname3, resolve as resolve4, sep } from "node:path";
10640
10686
  var ArtifactStoreError = class extends Error {
10641
10687
  code;
10642
10688
  key;
@@ -10705,7 +10751,7 @@ function createLocalArtifactStore(options) {
10705
10751
  const bytes = toBytes(data);
10706
10752
  const target = pathFor(key);
10707
10753
  try {
10708
- await mkdir(dirname2(target), { recursive: true });
10754
+ await mkdir(dirname3(target), { recursive: true });
10709
10755
  await writeFile(target, bytes);
10710
10756
  } catch (error) {
10711
10757
  if (error instanceof ArtifactStoreError) throw error;
@@ -11272,7 +11318,7 @@ async function createLocalInstaboxWorkload(args) {
11272
11318
 
11273
11319
  // packages/cli/client/localRunArtifactExport.ts
11274
11320
  import { mkdirSync as mkdirSync2, writeFileSync as writeFileSync3 } from "node:fs";
11275
- import { dirname as dirname3, join as join4 } from "node:path";
11321
+ import { dirname as dirname4, join as join5 } from "node:path";
11276
11322
 
11277
11323
  // packages/agent-runtime/runArtifactExport.ts
11278
11324
  var RUN_DIFF_COMMAND = "git add -A && git diff --cached --binary";
@@ -11480,11 +11526,11 @@ function serializeRunArtifactAudit(record) {
11480
11526
  // packages/cli/client/localRunArtifactExport.ts
11481
11527
  function resolveRunArtifactsRootDir(runsDir) {
11482
11528
  const normalized = runsDir.replace(/[/\\]+$/, "");
11483
- return join4(dirname3(normalized || runsDir), "artifacts");
11529
+ return join5(dirname4(normalized || runsDir), "artifacts");
11484
11530
  }
11485
11531
  function writeRunArtifactAudit(args) {
11486
11532
  const fs = args.fs ?? { mkdirSync: mkdirSync2, writeFileSync: writeFileSync3 };
11487
- const path = join4(args.runsDir, `${args.record.runId}.artifacts.json`);
11533
+ const path = join5(args.runsDir, `${args.record.runId}.artifacts.json`);
11488
11534
  fs.mkdirSync?.(args.runsDir, { recursive: true });
11489
11535
  fs.writeFileSync(path, serializeRunArtifactAudit(args.record));
11490
11536
  return path;
@@ -11837,7 +11883,7 @@ function buildTokenDialogIndexOps(args) {
11837
11883
  // packages/cli/client/localRuntimeDialog.ts
11838
11884
  import { appendFileSync, mkdirSync as mkdirSync3 } from "fs";
11839
11885
  import { homedir } from "os";
11840
- import { join as join5 } from "path";
11886
+ import { join as join6 } from "path";
11841
11887
  var diagLog = {
11842
11888
  warn: (msg) => getLogger("cli.localRuntimeDialog").warn(msg),
11843
11889
  info: (msg) => getLogger("cli.localRuntimeDialog").info(msg)
@@ -11888,11 +11934,11 @@ function projectRawUsage(usage) {
11888
11934
  function debugCaptureRawUsage(item) {
11889
11935
  if (!process.env.NOLO_DEBUG_RAW_USAGE) return;
11890
11936
  try {
11891
- const noloHome = process.env.NOLO_HOME?.trim() || join5(homedir(), ".nolo");
11892
- const dir = join5(noloHome, "logs");
11937
+ const noloHome = process.env.NOLO_HOME?.trim() || join6(homedir(), ".nolo");
11938
+ const dir = join6(noloHome, "logs");
11893
11939
  mkdirSync3(dir, { recursive: true });
11894
11940
  appendFileSync(
11895
- join5(dir, "raw-usage.jsonl"),
11941
+ join6(dir, "raw-usage.jsonl"),
11896
11942
  JSON.stringify({
11897
11943
  ts: Date.now(),
11898
11944
  model: item.model,
@@ -12339,11 +12385,11 @@ function resolveLocalInstaboxToolRoute(args) {
12339
12385
  }
12340
12386
  return { action: "intercept", toolName };
12341
12387
  }
12342
- var currentMetaFile = fileURLToPath(import.meta.url);
12343
- var isJsBundle = extname(currentMetaFile) === ".js";
12344
- var SOURCE_CLI_DIR = isJsBundle ? dirname4(currentMetaFile) : dirname4(dirname4(currentMetaFile));
12345
- var CLI_DIR = isCompiledBinary() ? dirname4(process.execPath) : SOURCE_CLI_DIR;
12346
- var CLI_ENTRYPOINT = isCompiledBinary() ? process.execPath : isJsBundle ? currentMetaFile : join6(SOURCE_CLI_DIR, "index.ts");
12388
+ var { cliDir: CLI_DIR, cliEntrypoint: CLI_ENTRYPOINT } = resolveLocalRuntimePaths(
12389
+ import.meta.url,
12390
+ isCompiledBinary(),
12391
+ process.execPath
12392
+ );
12347
12393
  var KNOWN_HINT_LABELS = /* @__PURE__ */ new Map([
12348
12394
  ["usage_limit_reached", "usage-limit"],
12349
12395
  ["rate_limit_exceeded", "rate-limit"],
@@ -12676,7 +12722,7 @@ function createCliLocalRuntimeAdapter(deps) {
12676
12722
  emitRunIsolationNotice(fact, { runId });
12677
12723
  try {
12678
12724
  const { writeFileSync: writeFileSync4, mkdirSync: mkdirSync4 } = await import("node:fs");
12679
- const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-6HHESKDB.js");
12725
+ const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-EJPBPVLU.js");
12680
12726
  recordLocalRunExecutionIsolation({
12681
12727
  runId,
12682
12728
  runsDir: resolveRunsDir2(deps.env),
@@ -12701,7 +12747,7 @@ function createCliLocalRuntimeAdapter(deps) {
12701
12747
  dockerWorkloadReleased = true;
12702
12748
  dockerWorkloadLoad = null;
12703
12749
  if (loaded) {
12704
- const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-6HHESKDB.js");
12750
+ const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-EJPBPVLU.js");
12705
12751
  const exportRunDiff = deps.exportDockerRunDiffArtifact ?? exportDockerRunDiffArtifact;
12706
12752
  const warn = (message) => process.stderr.write(`[nolo] ${message}
12707
12753
  `);
@@ -12836,6 +12882,7 @@ function createCliLocalRuntimeAdapter(deps) {
12836
12882
  credentialBroker,
12837
12883
  loadAgentConfig: async (agentRef) => {
12838
12884
  let systemBuiltinSkills = null;
12885
+ let skillPreferences = {};
12839
12886
  const sharedStore = await getOrCreateSharedStore(deps);
12840
12887
  if (userId) {
12841
12888
  try {
@@ -12843,15 +12890,23 @@ function createCliLocalRuntimeAdapter(deps) {
12843
12890
  createUserKey.settings(userId),
12844
12891
  { remote: false }
12845
12892
  );
12893
+ if (settingsRecord && typeof settingsRecord === "object") {
12894
+ skillPreferences = {
12895
+ ...Object.prototype.hasOwnProperty.call(settingsRecord, "enabledSkills") ? { enabledSkills: settingsRecord.enabledSkills } : {},
12896
+ enabledPromptSkills: settingsRecord.enabledPromptSkills
12897
+ };
12898
+ }
12846
12899
  systemBuiltinSkills = settingsRecord && typeof settingsRecord === "object" ? settingsRecord.systemBuiltinSkills ?? null : null;
12847
12900
  } catch {
12848
12901
  }
12849
12902
  }
12903
+ const enabledSkills = resolveUserEnabledSkills(skillPreferences).sort();
12850
12904
  const cacheKey = `${buildPreparedAgentCacheKey({
12851
12905
  userId,
12852
12906
  agentRef,
12853
12907
  cwd: normalizeRuntimeCacheCwd(workspaceRoot),
12854
12908
  systemBuiltinSkills,
12909
+ enabledSkills,
12855
12910
  wake: hasRunWakeChannel(deps.env),
12856
12911
  env: deps.env
12857
12912
  })}:${dockerRuntimeEnabled ? "docker" : instaboxRuntimeEnabled ? "instabox" : "host"}`;
@@ -12868,11 +12923,30 @@ function createCliLocalRuntimeAdapter(deps) {
12868
12923
  userId
12869
12924
  });
12870
12925
  const fallbackLocalCliAgentConfig = storedAgentConfig ? null : resolveBuiltinLocalCliAgentConfig(agentRef, userId);
12926
+ const sourceAgentConfig = storedAgentConfig ?? fallbackLocalCliAgentConfig;
12927
+ const userSkills = await resolveUserSkillRuntime(sourceAgentConfig, {
12928
+ enabledSkills,
12929
+ enabledPromptSkills: skillPreferences.enabledPromptSkills
12930
+ });
12871
12931
  const baseAgentConfig = withResolvedRuntimeToolSurface(
12872
- storedAgentConfig ?? fallbackLocalCliAgentConfig,
12932
+ sourceAgentConfig && {
12933
+ ...sourceAgentConfig,
12934
+ toolNames: [.../* @__PURE__ */ new Set([
12935
+ ...sourceAgentConfig.toolNames ?? [],
12936
+ ...userSkills.requiredTools
12937
+ ])]
12938
+ },
12873
12939
  deps.env
12874
12940
  );
12875
- const agentConfig = baseAgentConfig ? withRuntimeEnabledPacksAndPrompt(baseAgentConfig) : baseAgentConfig;
12941
+ const packAgentConfig = baseAgentConfig ? withRuntimeEnabledPacksAndPrompt(baseAgentConfig) : baseAgentConfig;
12942
+ const userPromptPatches = userSkills.skillPromptPatches;
12943
+ const agentConfig = packAgentConfig && userPromptPatches.length ? {
12944
+ ...packAgentConfig,
12945
+ prompt: [
12946
+ packAgentConfig.prompt,
12947
+ ...userPromptPatches.filter((patch) => !String(packAgentConfig.prompt ?? "").includes(patch))
12948
+ ].filter(Boolean).join("\n\n")
12949
+ } : packAgentConfig;
12876
12950
  const requestedToolNames = agentConfig ? resolveCliRequestedToolNames(
12877
12951
  agentConfig,
12878
12952
  deps.env,