nolo-cli 0.83.0-alpha.1 → 0.83.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 (161) hide show
  1. package/README.md +2 -2
  2. package/{_executeModel-TRYFRXDJ.js → _executeModel-LUNEV235.js} +48 -48
  3. package/{action-D22U6CTH.js → action-YVYQEAAV.js} +11 -11
  4. package/{addContentAction-XAPUTGL4.js → addContentAction-O7R66HEX.js} +9 -9
  5. package/{addDialogAgentAction-M7VLLBZM.js → addDialogAgentAction-74OA7KYP.js} +8 -8
  6. package/{agentDeleteCommand-EKSPHWHV.js → agentDeleteCommand-2YAHAZFJ.js} +31 -30
  7. package/{agentEmailCommands-QD2K4YG6.js → agentEmailCommands-G6A7IRPQ.js} +67 -64
  8. package/{agentGrantCommands-R3VQEZJR.js → agentGrantCommands-M3XFO6EN.js} +2 -2
  9. package/{agentListCommands-WFBYAQKO.js → agentListCommands-KMS675GZ.js} +40 -33
  10. package/{agentMachineCommands-F5DKXCQP.js → agentMachineCommands-W2SMNSQ3.js} +31 -30
  11. package/{agentProviderCommands-65ZC2WB4.js → agentProviderCommands-GNPTL5XR.js} +87 -0
  12. package/{agentPullCommand-N7L2CT7L.js → agentPullCommand-O5MPVJ5E.js} +3 -3
  13. package/agentRecordCommands-D7BRMFNI.js +128 -0
  14. package/{agentRunCommand-4VMDFEQF.js → agentRunCommand-VL6MMEUB.js} +65 -62
  15. package/{agentRunControl-T44MESII.js → agentRunControl-AVJR4JW4.js} +2 -2
  16. package/{agentRuntimeLocal-FMOEMRUU.js → agentRuntimeLocal-VXZSDIGT.js} +27 -26
  17. package/{agentSlice-Q5XOM2PN.js → agentSlice-5YJHUO47.js} +10 -10
  18. package/{appDeleteCommands-AXB7XZE7.js → appDeleteCommands-32MHLR4L.js} +31 -30
  19. package/{appDeployCommands-ZLWI4QUC.js → appDeployCommands-WCQOUSOB.js} +31 -30
  20. package/{appDeployStatusCommands-2RAEYJQF.js → appDeployStatusCommands-6QKB7DYN.js} +31 -30
  21. package/{appGetCommands-QYUXS4W4.js → appGetCommands-SFAPP5PB.js} +31 -30
  22. package/{appListCommands-GQLN4J5X.js → appListCommands-EKUBDRUO.js} +31 -30
  23. package/{authCommand-7N2G6MXP.js → authCommand-F4EFRRX6.js} +89 -24
  24. package/{authCommands-ILTBI6JV.js → authCommands-RGOGCPP6.js} +4 -5
  25. package/builtinSkillRegistry-FUAVTRVZ.js +33 -0
  26. package/{chatQueueReduxAdapter-WICMMQZT.js → chatQueueReduxAdapter-PQMRR2PK.js} +24 -24
  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-HQUORJTM.js → chunk-3BMYXEUW.js} +1 -1
  31. package/{chunk-3QPYFHAH.js → chunk-3DII57IT.js} +1 -1
  32. package/{chunk-NTW5GWDM.js → chunk-3VNWWVKB.js} +2 -0
  33. package/{chunk-DWUCB2A3.js → chunk-42V6BK2E.js} +1 -1
  34. package/{chunk-XRMBP7IW.js → chunk-45C5ER5U.js} +10 -10
  35. package/{chunk-DSRXPQWA.js → chunk-4OEFYTWL.js} +43 -43
  36. package/{chunk-6RUOYAPM.js → chunk-4S5QUMJP.js} +7 -7
  37. package/{chunk-GBPZKFYK.js → chunk-53HEEOTT.js} +4 -4
  38. package/{chunk-5Q5LYRJH.js → chunk-5FBTLSFG.js} +155 -795
  39. package/{chunk-KIS76A2P.js → chunk-5H7KJX7J.js} +38 -4
  40. package/{chunk-5XTOKQLW.js → chunk-5UTFL4QJ.js} +6 -2
  41. package/chunk-5ZUL4CUO.js +10 -0
  42. package/{chunk-E6RGHPDR.js → chunk-6D6VBVEW.js} +4 -6
  43. package/{chunk-KVDUCO4Q.js → chunk-6IG4XSS6.js} +16 -12
  44. package/{chunk-CMH2SYHX.js → chunk-6OZ36FXI.js} +2 -2
  45. package/{chunk-5BVAAVIF.js → chunk-6Q33GUCC.js} +1 -1
  46. package/{chunk-EWRS6HJ3.js → chunk-6VFARHZW.js} +625 -303
  47. package/{chunk-BYEJ7K2Z.js → chunk-7S4YWN7P.js} +1 -1
  48. package/{chunk-SREASRV5.js → chunk-ABQYVJBJ.js} +1 -1
  49. package/chunk-ACTMNVHM.js +93 -0
  50. package/{chunk-NRALD3CC.js → chunk-AEOE4Z6Q.js} +54 -10
  51. package/{chunk-XWNRAIUL.js → chunk-AFUORTY4.js} +6 -16
  52. package/chunk-BNGW5ASC.js +344 -0
  53. package/{chunk-SZLVDREM.js → chunk-BP4XNZRM.js} +3 -3
  54. package/{chunk-JZYXSXMZ.js → chunk-BTI7PJDX.js} +15 -15
  55. package/{chunk-2KDR4CWE.js → chunk-BYMV6QZG.js} +24 -1
  56. package/{chunk-GCJ3IS5M.js → chunk-DHDMC6FO.js} +175 -6
  57. package/{chunk-E36HZARC.js → chunk-DNCEALKX.js} +93 -17
  58. package/{chunk-N5KGQ5AD.js → chunk-DRGSDQBL.js} +3 -3
  59. package/{chunk-D6XYLSOS.js → chunk-ETI2NYVF.js} +1 -1
  60. package/{chunk-EXMHJN7C.js → chunk-EYAQT56M.js} +4 -3
  61. package/{chunk-CJCJF5XB.js → chunk-FDTR4QJ6.js} +4 -2
  62. package/{chunk-JPVNC5B2.js → chunk-G2O6V3HJ.js} +3 -3
  63. package/{chunk-WL2RKIBF.js → chunk-GEPUP7OO.js} +1 -1
  64. package/{chunk-PYXL2CJL.js → chunk-GPCZ7UXG.js} +1 -1
  65. package/{chunk-K7AG465Q.js → chunk-GQBOR3G6.js} +4 -2
  66. package/{chunk-YFADVSZE.js → chunk-H62HCIUP.js} +6 -6
  67. package/{chunk-PZM3EENV.js → chunk-HJUYAD4A.js} +1 -1
  68. package/{chunk-3JQ2NRYU.js → chunk-HVURBGF3.js} +4 -4
  69. package/{chunk-HH65VA5U.js → chunk-I3TQJXQ7.js} +109 -6
  70. package/{chunk-ZVN6I33J.js → chunk-IIVGDG4I.js} +6 -5
  71. package/{chunk-UDQWGU7F.js → chunk-J4MOO56S.js} +1 -1
  72. package/{chunk-KC5FAHVS.js → chunk-JEDZAO7L.js} +1 -1
  73. package/{chunk-6XIE5ZGI.js → chunk-JPGCXHNM.js} +1 -1
  74. package/chunk-JRQFUXY7.js +1625 -0
  75. package/chunk-KQ4ONNQD.js +677 -0
  76. package/{chunk-CPSZJBLK.js → chunk-L5UXH3B2.js} +105 -26
  77. package/{chunk-RXX4GDIH.js → chunk-LS2ZANRJ.js} +1 -1
  78. package/{chunk-BJIRLHJR.js → chunk-M2EJHDJP.js} +4 -0
  79. package/{chunk-EVBFYPDC.js → chunk-MC4XLIJ7.js} +6 -2
  80. package/{chunk-DUJWWUGV.js → chunk-NA35QHCF.js} +1 -1
  81. package/{chunk-FNGAF7C4.js → chunk-OEVAY4J6.js} +137 -12
  82. package/{chunk-UJ63UXGE.js → chunk-OIVSQH2O.js} +1006 -801
  83. package/{chunk-LZIMZZYT.js → chunk-ORYWEJO4.js} +13 -15
  84. package/{chunk-LKSDMMY2.js → chunk-Q2XN3EOZ.js} +40 -30
  85. package/{chunk-AETZ7AD6.js → chunk-Q554LLSI.js} +1 -1
  86. package/{chunk-FMODTASJ.js → chunk-Q5FJJ6XI.js} +1 -7
  87. package/{chunk-AJHEFRGJ.js → chunk-Q67DOFOO.js} +214 -5
  88. package/{chunk-UZ6XXCVR.js → chunk-QDSINZM3.js} +15 -2
  89. package/{chunk-BHXK3KPV.js → chunk-QVKRR2SS.js} +2314 -66
  90. package/{chunk-BNQK6UPC.js → chunk-RFCKMYDK.js} +11 -173
  91. package/{chunk-YWG6EMH3.js → chunk-RG6JBBX5.js} +10 -6
  92. package/{chunk-QCZX4FTW.js → chunk-SH43IESU.js} +173 -15
  93. package/{chunk-YIR5OYHU.js → chunk-SSDAAEC2.js} +1235 -59
  94. package/{chunk-SPAQ4PVV.js → chunk-SV5IJK6K.js} +1 -1
  95. package/{chunk-BJCWNHVU.js → chunk-TOP2VXOR.js} +2 -2
  96. package/{chunk-4EJ5QYB5.js → chunk-UKZDAFYT.js} +1 -1
  97. package/{chunk-PGSKWZCB.js → chunk-UZGQNTVW.js} +1 -1
  98. package/{chunk-ZZCJUXUI.js → chunk-V4MJDUSR.js} +2 -2
  99. package/{chunk-JYYZCK2Z.js → chunk-V7E4PXQD.js} +1 -1
  100. package/{chunk-OZX2IPKM.js → chunk-VLTIYV3X.js} +1 -1
  101. package/{chunk-NHRQCXIQ.js → chunk-VMFTFOWF.js} +13 -3
  102. package/{chunk-5J7W2VWW.js → chunk-WV42OMV7.js} +6 -265
  103. package/{chunk-PFDKB7IZ.js → chunk-X6DN5HBD.js} +6 -6
  104. package/{chunk-Q7TA25PG.js → chunk-YFE4A4O7.js} +731 -90
  105. package/{chunk-BOYUESO7.js → chunk-Z77CRGTW.js} +1 -1
  106. package/{chunk-QC5LGHYP.js → chunk-ZCYXJSTU.js} +10 -5
  107. package/{contentThunks-A2ZG3SW6.js → contentThunks-GJV22WVZ.js} +25 -25
  108. package/{cooldownCommands-BSCH2W7P.js → cooldownCommands-REAWYVTY.js} +2 -2
  109. package/{createAgentAutomationAction-QFQQPG35.js → createAgentAutomationAction-6V25TZEO.js} +25 -25
  110. package/{createDialogAction-WI73R5EQ.js → createDialogAction-SX36BGSX.js} +28 -28
  111. package/{createPageAction-XN237WPJ.js → createPageAction-IR4BGJSI.js} +26 -26
  112. package/{dbSlice-GKGGFNOB.js → dbSlice-XVWBAGYN.js} +8 -8
  113. package/{deleteFile-LWSR674W.js → deleteFile-YG6QMJLU.js} +3 -3
  114. package/{dialogCommands-SFRDEMB3.js → dialogCommands-5J56DFWN.js} +35 -32
  115. package/{dialogSlice-56G4Q4RU.js → dialogSlice-UNX2FAPZ.js} +24 -24
  116. package/{docCreateCommands-OMQLZ3OW.js → docCreateCommands-KYI2DC2U.js} +32 -31
  117. package/{docDeleteCommands-7RCC6P23.js → docDeleteCommands-67REUSRY.js} +33 -32
  118. package/{docReadCommands-5FABO4UV.js → docReadCommands-HOSVSBDJ.js} +32 -31
  119. package/{docStore-PZSZWXX3.js → docStore-JWVG5NDO.js} +9 -9
  120. package/{docUpdateCommands-P5AQI6HB.js → docUpdateCommands-EMGCSMXY.js} +32 -31
  121. package/{fetchMessages-DRABNDPZ.js → fetchMessages-EIU7UFFK.js} +3 -4
  122. package/{getPricing-HRMSOF3E.js → getPricing-LUSEABA6.js} +4 -4
  123. package/{handleSendMessageAction-MHKC4R3Q.js → handleSendMessageAction-B75UOJKF.js} +24 -24
  124. package/index.js +99 -86
  125. package/{localDialogRead-PUQKFI73.js → localDialogRead-BTFJ4V2I.js} +2 -2
  126. package/{localRuntimeDb-P37ZTX55.js → localRuntimeDb-SYQGUF4U.js} +1 -1
  127. package/{machineCommands-VJABZGD2.js → machineCommands-GFPTOY6L.js} +64 -61
  128. package/{machineWsRunDispatch-5SPILS2O.js → machineWsRunDispatch-46PSZ3DJ.js} +62 -59
  129. package/{memberThunks-KATHH3F4.js → memberThunks-QGFLFVCI.js} +9 -9
  130. package/{models-GS72DVJS.js → models-T3SG6MJ5.js} +2 -2
  131. package/{offlineMarxistsAgentCommand-GEH6SNNA.js → offlineMarxistsAgentCommand-HGXZV4XJ.js} +1 -1
  132. package/package.json +1 -1
  133. package/providerPresetApply-FG6NZ57W.js +214 -0
  134. package/providerRegistry-757OWH3O.js +31 -0
  135. package/{read-LC6HVYBN.js → read-COE3ZYR6.js} +5 -4
  136. package/{readDocTool-N3ERJHHF.js → readDocTool-5USN4A6V.js} +1 -1
  137. package/{readlineWorkspace-GMYIPMRU.js → readlineWorkspace-UFSWHFKD.js} +144 -109
  138. package/{removeDialogAgentAction-F5GPTALR.js → removeDialogAgentAction-IX3MN2ZO.js} +11 -11
  139. package/{runAgentClientLoop-U3GEPCQI.js → runAgentClientLoop-25LJ4XGV.js} +47 -47
  140. package/{runtimeDoctorCommands-CROTMULY.js → runtimeDoctorCommands-X6WDBEQX.js} +2 -2
  141. package/{setDialogExtraReferencesAction-AY4ZCF3A.js → setDialogExtraReferencesAction-X4HCPNZL.js} +9 -9
  142. package/{setPrimaryDialogAgentAction-HPMG7V3R.js → setPrimaryDialogAgentAction-4GMIQLOD.js} +11 -11
  143. package/{settingSlice-OEJA4NQO.js → settingSlice-ZQZVUPKK.js} +10 -10
  144. package/{spaceCommands-FNXBNF5X.js → spaceCommands-NKJVJCQQ.js} +30 -29
  145. package/{streamAgentChatTurn-DAGDJH3L.js → streamAgentChatTurn-A46QFV4O.js} +59 -58
  146. package/{switchDialogAgentAction-HMDZTZ4I.js → switchDialogAgentAction-N52LRPA3.js} +8 -8
  147. package/{tableCommands-SUNTHAYX.js → tableCommands-O6NWHFKV.js} +1 -1
  148. package/{toolApiClient-VGYUB4P5.js → toolApiClient-QVJ6HDNN.js} +2 -2
  149. package/{tools-73VPBNX3.js → tools-TTDGRNY6.js} +43 -43
  150. package/tuiSummaryLlmCaller-WFRWERGK.js +127 -0
  151. package/{updateCommands-Y363MC3L.js → updateCommands-2M74UL7P.js} +2 -2
  152. package/{updateDialogTitleAction-RFQONESQ.js → updateDialogTitleAction-QJPZGF52.js} +45 -28
  153. package/agentRecordCommands-DAZ2FDZP.js +0 -125
  154. package/chunk-I42VC5KR.js +0 -15
  155. package/chunk-NB5SIWC4.js +0 -611
  156. package/chunk-NG4UT4K4.js +0 -79
  157. package/codingSkills-7S6523WH.js +0 -48
  158. package/tuiSummaryLlmCaller-3Z24VUWM.js +0 -116
  159. package/{chunk-3RAG2NAD.js → chunk-UKWGR5SS.js} +3 -3
  160. package/{db-VQSAOWAO.js → db-WK5MDZVN.js} +1 -1
  161. package/{localRuntimeAuthority-R5UBODT3.js → localRuntimeAuthority-6IR6BBXE.js} +3 -3
package/chunk-NG4UT4K4.js DELETED
@@ -1,79 +0,0 @@
1
- import {
2
- cloudflareModels,
3
- gmiModels,
4
- openrouterModels,
5
- platformHostedModels,
6
- zaiModels
7
- } from "./chunk-AJHEFRGJ.js";
8
-
9
- // packages/ai/llm/modelAbility.ts
10
- var MODEL_ABILITY_TABLE = {
11
- "claude-opus-5": { passAt1: 74, benchmarkScore: 61, writingScore: 82 },
12
- "gpt-6-astra": { passAt1: 85, benchmarkScore: 90, writingScore: 92 },
13
- "claude-opus-4-6": { passAt1: 65, benchmarkScore: 68, writingScore: 78 },
14
- "gpt-5.6-sol": { passAt1: 73, benchmarkScore: 59, writingScore: 80 },
15
- "claude-fable-5": { passAt1: 70 },
16
- "gpt-5.6-terra": { passAt1: 70, benchmarkScore: 55 },
17
- "kimi-k3": { passAt1: 69, benchmarkScore: 57, writingScore: 81 },
18
- "gpt-5.5": { passAt1: 67 },
19
- "gpt-5.6-luna": { passAt1: 67, benchmarkScore: 51 },
20
- "grok-4.6": { passAt1: 67 },
21
- "deepseek-v4-pro": { passAt1: 63, writingScore: 79 },
22
- "qwen3.8-max": { passAt1: 57, writingScore: 77 },
23
- "muse-spark-1.2": { passAt1: 55 },
24
- "grok-4.5": { passAt1: 54, benchmarkScore: 54 },
25
- "claude-sonnet-5": { passAt1: 54, benchmarkScore: 53 },
26
- "deepseek-flash": { passAt1: 53 },
27
- "deepseek-v4-flash": { passAt1: 53 },
28
- "gemini-3.7-flash": { passAt1: 58, benchmarkScore: 65, writingScore: 88 },
29
- // TODO(benchmark): gemini-3.8-flash 官方基准快照未出,暂沿用 3.7 分数占位,确认后更新。
30
- "gemini-3.8-flash": { passAt1: 58, benchmarkScore: 65, writingScore: 88 },
31
- "muse-spark-1.1": { passAt1: 53 },
32
- "gpt-5.4": { passAt1: 52 },
33
- "gemini-3.6-flash": { passAt1: 49, benchmarkScore: 50 },
34
- "glm-5.3": { passAt1: 52, benchmarkScore: 60 },
35
- "glm-5.2": { passAt1: 44, benchmarkScore: 51 }
36
- };
37
- var EFFORT_SUFFIXES = [
38
- "-extra-low",
39
- "-low",
40
- "-medium",
41
- "-high",
42
- "-thinking",
43
- "-tiered",
44
- ":cloud"
45
- ];
46
- function normalizeModelName(raw) {
47
- let name = raw.trim().toLowerCase();
48
- const slash = name.indexOf("/");
49
- if (slash !== -1) name = name.slice(slash + 1);
50
- for (const suffix of EFFORT_SUFFIXES) {
51
- if (name.endsWith(suffix) && name.length > suffix.length) {
52
- name = name.slice(0, -suffix.length);
53
- break;
54
- }
55
- }
56
- return name;
57
- }
58
- function getModelAbility(modelName) {
59
- const entry = MODEL_ABILITY_TABLE[normalizeModelName(modelName)];
60
- return entry ? { ...entry } : void 0;
61
- }
62
-
63
- // packages/ai/llm/models.ts
64
- var withProvider = (provider) => (models) => models.map((model) => ({ ...model, provider }));
65
- var ALL_MODELS = [
66
- ...withProvider("nolo")(platformHostedModels),
67
- ...withProvider("openrouter")(openrouterModels),
68
- ...withProvider("cloudflare")(cloudflareModels),
69
- ...withProvider("gmi")(gmiModels),
70
- ...withProvider("zai")(zaiModels)
71
- ].map((model) => {
72
- const ability = getModelAbility(model.name);
73
- return ability ? { ...model, ability } : model;
74
- });
75
-
76
- export {
77
- getModelAbility,
78
- ALL_MODELS
79
- };
@@ -1,48 +0,0 @@
1
- import {
2
- CODING_COMPILED_EFFECTIVE_TOOLS,
3
- CODING_ROOT_SKILL_ID,
4
- CODING_ROOT_SKILL_REFERENCE,
5
- CODING_ROOT_SKILL_SLUG,
6
- CODING_SKILL_SEEDS,
7
- CODING_SKILL_SLUGS,
8
- buildCodingRootSkillReference,
9
- buildCodingSkillConfig,
10
- buildCodingSkillContentByKey,
11
- buildCodingSkillContentBySlug,
12
- buildCodingSkillId,
13
- buildCodingSkillPageKey,
14
- buildCodingSkillPageRecords,
15
- collectCodingReachableSkillSlugs,
16
- compileCodingEffectivePromptPatches,
17
- compileCodingEffectiveTools,
18
- resolveCodingBuiltinSlug,
19
- resolveCodingEffectiveTools
20
- } from "./chunk-NB5SIWC4.js";
21
- import "./chunk-GCJ3IS5M.js";
22
- import "./chunk-AETZ7AD6.js";
23
- import "./chunk-KHCLMKZZ.js";
24
- import "./chunk-O6OSWFZQ.js";
25
- import "./chunk-UZ6XXCVR.js";
26
- import "./chunk-I42VC5KR.js";
27
- import "./chunk-G3SUCT4W.js";
28
- import "./chunk-4VNS5WPM.js";
29
- export {
30
- CODING_COMPILED_EFFECTIVE_TOOLS,
31
- CODING_ROOT_SKILL_ID,
32
- CODING_ROOT_SKILL_REFERENCE,
33
- CODING_ROOT_SKILL_SLUG,
34
- CODING_SKILL_SEEDS,
35
- CODING_SKILL_SLUGS,
36
- buildCodingRootSkillReference,
37
- buildCodingSkillConfig,
38
- buildCodingSkillContentByKey,
39
- buildCodingSkillContentBySlug,
40
- buildCodingSkillId,
41
- buildCodingSkillPageKey,
42
- buildCodingSkillPageRecords,
43
- collectCodingReachableSkillSlugs,
44
- compileCodingEffectivePromptPatches,
45
- compileCodingEffectiveTools,
46
- resolveCodingBuiltinSlug,
47
- resolveCodingEffectiveTools
48
- };
@@ -1,116 +0,0 @@
1
- import {
2
- BUILTIN_SUMMARY_LLM_CONFIG
3
- } from "./chunk-EVBFYPDC.js";
4
- import {
5
- buildPlatformChatCompletionRequest,
6
- canUsePlatformChatProvider,
7
- parsePlatformChatCompletionResponse,
8
- resolvePlatformChatProviderConfig
9
- } from "./chunk-QC5LGHYP.js";
10
- import "./chunk-CQ3WA2NE.js";
11
- import "./chunk-N7J63Q6C.js";
12
- import "./chunk-PUOC4YRO.js";
13
- import "./chunk-CMH2SYHX.js";
14
- import {
15
- COMPACTION_SUMMARY_SYSTEM_PROMPT
16
- } from "./chunk-E36HZARC.js";
17
- import "./chunk-K7AG465Q.js";
18
- import "./chunk-PSCNXBYA.js";
19
- import "./chunk-BYXBJQAS.js";
20
- import "./chunk-UJ63UXGE.js";
21
- import "./chunk-DWLEOOGR.js";
22
- import "./chunk-W7XHHYWM.js";
23
- import "./chunk-AJHEFRGJ.js";
24
- import "./chunk-ZZCJUXUI.js";
25
- import "./chunk-UAD2WT54.js";
26
- import "./chunk-YFADVSZE.js";
27
- import "./chunk-NHRQCXIQ.js";
28
- import "./chunk-WWC7I6TA.js";
29
- import "./chunk-I42VC5KR.js";
30
- import "./chunk-SREASRV5.js";
31
- import "./chunk-QSJ3HFEF.js";
32
- import "./chunk-5J7W2VWW.js";
33
- import "./chunk-BJIRLHJR.js";
34
- import "./chunk-3RAG2NAD.js";
35
- import "./chunk-QOKAKDPE.js";
36
- import "./chunk-OW765XBU.js";
37
- import "./chunk-SEJ5OS6F.js";
38
- import "./chunk-GBRG75BQ.js";
39
- import "./chunk-3EUW3WEO.js";
40
- import "./chunk-U6VC4MU4.js";
41
- import "./chunk-KUG52IAP.js";
42
- import "./chunk-LCBAMY2M.js";
43
- import "./chunk-4SN6J65J.js";
44
- import "./chunk-CF7PE763.js";
45
- import "./chunk-G3SUCT4W.js";
46
- import "./chunk-4VNS5WPM.js";
47
-
48
- // packages/cli/client/tuiSummaryLlmCaller.ts
49
- function createTuiSummaryLlmCaller(env, options) {
50
- const fetchImpl = options?.fetchImpl ?? fetch;
51
- const timeoutMs = options?.timeoutMs ?? 3e4;
52
- return async (content) => {
53
- if (!canUsePlatformChatProvider(env)) {
54
- return null;
55
- }
56
- try {
57
- const providerConfig = await resolvePlatformChatProviderConfig({
58
- agentConfig: { ...BUILTIN_SUMMARY_LLM_CONFIG, key: BUILTIN_SUMMARY_LLM_CONFIG.id },
59
- env,
60
- apiKeyRefResolver: options?.apiKeyRefResolver,
61
- credentialBroker: options?.credentialBroker
62
- });
63
- if (!providerConfig?.authToken) {
64
- return null;
65
- }
66
- const messages = [
67
- { role: "system", content: COMPACTION_SUMMARY_SYSTEM_PROMPT },
68
- { role: "user", content }
69
- ];
70
- const request = buildPlatformChatCompletionRequest({
71
- providerConfig,
72
- messages,
73
- stream: false
74
- });
75
- let parsedBody = {};
76
- if (typeof request.init?.body === "string") {
77
- parsedBody = safeParseJson(request.init.body) ?? {};
78
- } else if (typeof request.init?.body === "object" && request.init?.body !== null) {
79
- parsedBody = request.init.body;
80
- }
81
- const patchedBody = {
82
- ...parsedBody,
83
- reasoning_effort: "low"
84
- };
85
- const response = await fetchImpl(request.url, {
86
- ...request.init,
87
- body: JSON.stringify(patchedBody),
88
- signal: AbortSignal.timeout(timeoutMs)
89
- });
90
- if (!response.ok) {
91
- return null;
92
- }
93
- const raw = await response.text().catch(() => "");
94
- const data = safeParseJson(raw);
95
- if (!data) return null;
96
- const parsed = parsePlatformChatCompletionResponse({
97
- providerConfig,
98
- data,
99
- trace: []
100
- });
101
- return parsed?.content?.trim() || null;
102
- } catch {
103
- return null;
104
- }
105
- };
106
- }
107
- function safeParseJson(raw) {
108
- try {
109
- return JSON.parse(raw);
110
- } catch {
111
- return null;
112
- }
113
- }
114
- export {
115
- createTuiSummaryLlmCaller
116
- };
@@ -8,15 +8,15 @@ import {
8
8
  selectIdentityUser,
9
9
  selectIdentityUserId
10
10
  } from "./chunk-SEJ5OS6F.js";
11
+ import {
12
+ isRecord
13
+ } from "./chunk-KUG52IAP.js";
11
14
  import {
12
15
  asTrimmedString
13
16
  } from "./chunk-3EUW3WEO.js";
14
17
  import {
15
18
  asOptionalPositiveFiniteNumber
16
19
  } from "./chunk-U6VC4MU4.js";
17
- import {
18
- isRecord
19
- } from "./chunk-KUG52IAP.js";
20
20
  import {
21
21
  API_ENDPOINTS,
22
22
  SERVERS,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getOrCreateServerStoreRuntime
3
3
  } from "./chunk-M5PVFLD4.js";
4
- import "./chunk-CIF4X6ZM.js";
5
4
  import {
6
5
  isLevelLockError
7
6
  } from "./chunk-URMS4XY2.js";
7
+ import "./chunk-CIF4X6ZM.js";
8
8
  import "./chunk-UV6VISQJ.js";
9
9
  import {
10
10
  resolveServerDbPath
@@ -3,13 +3,13 @@ import {
3
3
  resolveCliAuthorityBrokerHealthPath,
4
4
  resolveCliAuthorityBrokerMetadataPath
5
5
  } from "./chunk-BFU6C242.js";
6
+ import {
7
+ isLevelLockError
8
+ } from "./chunk-URMS4XY2.js";
6
9
  import {
7
10
  createLegacyServerDb,
8
11
  createLevelAuthorityStore
9
12
  } from "./chunk-CIF4X6ZM.js";
10
- import {
11
- isLevelLockError
12
- } from "./chunk-URMS4XY2.js";
13
13
  import {
14
14
  createCliAuthorityBrokerClient,
15
15
  createCliAuthorityBrokerSocketInvoker,