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.
- package/README.md +2 -2
- package/{_executeModel-IULR47HG.js → _executeModel-BPUR2QYH.js} +51 -50
- package/{action-D22U6CTH.js → action-P4TNFGAD.js} +11 -11
- package/{addContentAction-XAPUTGL4.js → addContentAction-MB2HHMDZ.js} +9 -9
- package/{addDialogAgentAction-M7VLLBZM.js → addDialogAgentAction-S2NRBCWW.js} +9 -9
- package/{agentDeleteCommand-2S4WCDQC.js → agentDeleteCommand-MNAA6MIG.js} +32 -30
- package/{agentEmailCommands-V3ADGHX7.js → agentEmailCommands-SK34WJKU.js} +70 -66
- package/{agentGrantCommands-R3VQEZJR.js → agentGrantCommands-M3XFO6EN.js} +2 -2
- package/{agentListCommands-EPK3S274.js → agentListCommands-I26MKI4T.js} +55 -36
- package/{agentMachineCommands-XMZWK7P3.js → agentMachineCommands-M6QDR6P3.js} +32 -30
- package/{agentProviderCommands-65ZC2WB4.js → agentProviderCommands-X3UNW77C.js} +87 -0
- package/{agentPullCommand-N7L2CT7L.js → agentPullCommand-O5MPVJ5E.js} +3 -3
- package/agentRecordCommands-HTHLO2MM.js +129 -0
- package/{agentRunCommand-VUWNWC7C.js → agentRunCommand-IAIRCMTH.js} +70 -65
- package/{agentRunControl-T44MESII.js → agentRunControl-AVJR4JW4.js} +2 -2
- package/{agentRuntimeLocal-YRONTDLM.js → agentRuntimeLocal-3WTYYIT2.js} +32 -26
- package/{agentSlice-2P7OJFES.js → agentSlice-TVP3HINW.js} +10 -10
- package/{appDeleteCommands-YS7UGMP3.js → appDeleteCommands-SB5TNLKY.js} +32 -30
- package/{appDeployCommands-XIE5Z4BE.js → appDeployCommands-2IPKZINV.js} +32 -30
- package/{appDeployStatusCommands-54UDVYET.js → appDeployStatusCommands-K63TFUID.js} +32 -30
- package/{appGetCommands-6XYLBCRN.js → appGetCommands-VU2SLNEH.js} +32 -30
- package/{appListCommands-VEGH7SF5.js → appListCommands-S3T4DJ36.js} +32 -30
- package/{authCommand-JIEOFHXW.js → authCommand-HGP2XTKC.js} +185 -28
- package/{authCommands-ILTBI6JV.js → authCommands-RGOGCPP6.js} +4 -5
- package/builtinSkillRegistry-Q2VVY3SC.js +33 -0
- package/{chatQueueReduxAdapter-GPYCH5Z2.js → chatQueueReduxAdapter-TWIYKVIZ.js} +25 -25
- package/{chromeCommands-VOIRNJBL.js → chromeCommands-FZYAU75D.js} +1 -1
- package/{chromeOpsCommands-M7DPCX2T.js → chromeOpsCommands-62P2Q2YB.js} +31 -1
- package/{chunk-C3FZR5EC.js → chunk-2F7RJC6L.js} +1 -1
- package/{chunk-BOYUESO7.js → chunk-3AMA42ZI.js} +1 -1
- package/{chunk-RZOJRTKR.js → chunk-3BGIKIPF.js} +444 -920
- package/{chunk-HQUORJTM.js → chunk-3BMYXEUW.js} +1 -1
- package/{chunk-EBKMQULC.js → chunk-3IUWIAHP.js} +13 -15
- package/{chunk-NTW5GWDM.js → chunk-3VNWWVKB.js} +2 -0
- package/{chunk-4SZ37KLL.js → chunk-3VUWPRFW.js} +50 -30
- package/{chunk-WL2RKIBF.js → chunk-3YIAR5UI.js} +1 -1
- package/{chunk-DWUCB2A3.js → chunk-42V6BK2E.js} +1 -1
- package/{chunk-AX7RMXSH.js → chunk-4MK3I7Y4.js} +38 -4
- package/{chunk-PF6O3GR3.js → chunk-52Q2IW2X.js} +1340 -1273
- package/{chunk-Y3NZYLPG.js → chunk-5MEYHVIB.js} +1 -1
- package/{chunk-5XTOKQLW.js → chunk-5UTFL4QJ.js} +6 -2
- package/chunk-5ZUL4CUO.js +10 -0
- package/{chunk-6YTOJY35.js → chunk-6D2JFXLY.js} +35 -0
- package/{chunk-E6RGHPDR.js → chunk-6D6VBVEW.js} +4 -6
- package/{chunk-FZGV4FGK.js → chunk-6GFOD3TK.js} +260 -140
- package/{chunk-TMPLPCVX.js → chunk-6OZ36FXI.js} +2 -2
- package/{chunk-PZM3EENV.js → chunk-6Z7MY3V7.js} +1 -1
- package/{chunk-BYEJ7K2Z.js → chunk-7S4YWN7P.js} +1 -1
- package/{chunk-SREASRV5.js → chunk-ABQYVJBJ.js} +1 -1
- package/chunk-ACTMNVHM.js +93 -0
- package/{chunk-ZZCJUXUI.js → chunk-AHAHBQMU.js} +2 -2
- package/{chunk-BJCWNHVU.js → chunk-BFDFRLLQ.js} +2 -2
- package/chunk-BMQ2MJUK.js +153 -0
- package/chunk-BNGW5ASC.js +344 -0
- package/{chunk-2KDR4CWE.js → chunk-BYMV6QZG.js} +24 -1
- package/{chunk-73BR2IQT.js → chunk-CWQINZEA.js} +127 -7
- package/{chunk-HTMVBPOF.js → chunk-DD6XE56O.js} +19 -72
- package/{chunk-CADAR6QU.js → chunk-EYAQT56M.js} +4 -3
- package/{chunk-CJCJF5XB.js → chunk-FDTR4QJ6.js} +4 -2
- package/{chunk-D6XYLSOS.js → chunk-FKNWP6SG.js} +1 -1
- package/{chunk-3VPDELAP.js → chunk-FP76KI2Y.js} +1500 -84
- package/chunk-FV3JEYR3.js +870 -0
- package/{chunk-GCJ3IS5M.js → chunk-GIVFXPWK.js} +177 -6
- package/chunk-GMZLP5DV.js +82 -0
- package/{chunk-LHDV2QUI.js → chunk-GNCCNNZD.js} +4 -2
- package/{chunk-XWNRAIUL.js → chunk-GP5LKBUZ.js} +6 -16
- package/{chunk-PZCTYKGU.js → chunk-GQBOR3G6.js} +2 -2
- package/{chunk-NFT2AOK5.js → chunk-H4AHY5BU.js} +13 -85
- package/{chunk-FNGAF7C4.js → chunk-HAFJ3NDE.js} +137 -12
- package/{chunk-ZVN6I33J.js → chunk-HCT7U36O.js} +9 -5
- package/{chunk-7QVPPOEC.js → chunk-HKNXJGEC.js} +43 -43
- package/{chunk-3JQ2NRYU.js → chunk-HVURBGF3.js} +4 -4
- package/{chunk-OZX2IPKM.js → chunk-HYJFRTLW.js} +2 -2
- package/{chunk-HH65VA5U.js → chunk-I3TQJXQ7.js} +109 -6
- package/{chunk-UDQWGU7F.js → chunk-J4MOO56S.js} +1 -1
- package/{chunk-KC5FAHVS.js → chunk-JEDZAO7L.js} +1 -1
- package/{chunk-6XIE5ZGI.js → chunk-JPGCXHNM.js} +1 -1
- package/{chunk-DUJWWUGV.js → chunk-K36IXSCQ.js} +1 -1
- package/{chunk-KRMWO2NN.js → chunk-KAUSRTO6.js} +3 -3
- package/{chunk-7FWPLK4M.js → chunk-LJ5VW2UJ.js} +1 -1
- package/{chunk-GHEJJGJI.js → chunk-LMREEBWT.js} +833 -109
- package/{chunk-RXX4GDIH.js → chunk-LS2ZANRJ.js} +1 -1
- package/chunk-LVIFM7VW.js +1625 -0
- package/{chunk-BJIRLHJR.js → chunk-M2EJHDJP.js} +4 -0
- package/{chunk-EVBFYPDC.js → chunk-MC4XLIJ7.js} +6 -2
- package/{chunk-KEZNSFGD.js → chunk-MZYBSTMH.js} +11 -173
- package/chunk-OCZKATRC.js +129 -0
- package/{chunk-MXUSPS2N.js → chunk-OIVSQH2O.js} +1510 -1592
- package/{chunk-E36HZARC.js → chunk-P5EVSOPA.js} +93 -17
- package/{chunk-SZLVDREM.js → chunk-PBA4UJBK.js} +3 -3
- package/{chunk-URWDSZRW.js → chunk-PMAIQX7A.js} +3 -3
- package/{chunk-AETZ7AD6.js → chunk-Q554LLSI.js} +1 -1
- package/{chunk-AJHEFRGJ.js → chunk-Q67DOFOO.js} +214 -5
- package/{chunk-UZ6XXCVR.js → chunk-QDSINZM3.js} +15 -2
- package/{chunk-NRALD3CC.js → chunk-QSHEEA5N.js} +54 -10
- package/chunk-QU7KDSZX.js +677 -0
- package/{chunk-T25L377S.js → chunk-RPJUFEGR.js} +10 -10
- package/{chunk-QCZX4FTW.js → chunk-SH43IESU.js} +173 -15
- package/{chunk-SPAQ4PVV.js → chunk-SV5IJK6K.js} +1 -1
- package/{chunk-BKJO7LDP.js → chunk-U4OKDZFH.js} +6 -6
- package/{chunk-DM4FBSWG.js → chunk-UDVH2P4A.js} +7 -7
- package/{chunk-4EJ5QYB5.js → chunk-UEVXFHQB.js} +2 -2
- package/{chunk-JYYZCK2Z.js → chunk-V7E4PXQD.js} +1 -1
- package/{chunk-NHRQCXIQ.js → chunk-VMFTFOWF.js} +13 -3
- package/{chunk-YFADVSZE.js → chunk-VRTTFDBM.js} +7 -6
- package/{chunk-U7YP7ECK.js → chunk-WP5UXDA5.js} +84 -13
- package/{chunk-5J7W2VWW.js → chunk-WV42OMV7.js} +6 -265
- package/{chunk-3QPYFHAH.js → chunk-XD2MJFUG.js} +1 -1
- package/{chunk-IDGYOD2O.js → chunk-XP3VVAPG.js} +3174 -223
- package/{chunk-ETLZZQJE.js → chunk-Z2PV6O2T.js} +121 -26
- package/{chunk-BZNGCVAW.js → chunk-Z5625XML.js} +4 -4
- package/{contentThunks-THSCADSK.js → contentThunks-JYWI7G7I.js} +26 -26
- package/{cooldownCommands-BSCH2W7P.js → cooldownCommands-REAWYVTY.js} +2 -2
- package/{createAgentAutomationAction-WGN3UQ5A.js → createAgentAutomationAction-Z4SUJ54Y.js} +26 -26
- package/{createDialogAction-3EN2NLH7.js → createDialogAction-RCHFLVJ2.js} +29 -29
- package/{createPageAction-4VK473QV.js → createPageAction-YK2253XQ.js} +28 -28
- package/{dbSlice-GKGGFNOB.js → dbSlice-A6C6H32X.js} +8 -8
- package/{deleteFile-LWSR674W.js → deleteFile-YG6QMJLU.js} +3 -3
- package/{dialogCommands-PS4NWYY7.js → dialogCommands-X4UOZQWX.js} +36 -32
- package/{dialogSlice-CLV7SVOZ.js → dialogSlice-IVTWLCE2.js} +31 -25
- package/{docCreateCommands-4KANZJR6.js → docCreateCommands-VD6TGHG4.js} +33 -31
- package/{docDeleteCommands-F2S2TRUF.js → docDeleteCommands-OT3R2G4W.js} +34 -32
- package/{docReadCommands-B2WDPZQE.js → docReadCommands-2G7BIXSH.js} +33 -31
- package/{docStore-TDLCHWPF.js → docStore-UENKCCDX.js} +9 -9
- package/{docUpdateCommands-E7TKHRIO.js → docUpdateCommands-45MVJKZA.js} +33 -31
- package/{fetchMessages-DRABNDPZ.js → fetchMessages-EIU7UFFK.js} +3 -4
- package/{getPricing-QVTUQQTM.js → getPricing-LUSEABA6.js} +4 -4
- package/{handleSendMessageAction-AHL3ZHE4.js → handleSendMessageAction-LM2J4HC3.js} +66 -74
- package/index.js +99 -86
- package/{localDialogRead-PUQKFI73.js → localDialogRead-BTFJ4V2I.js} +2 -2
- package/{localRuntimeDb-P37ZTX55.js → localRuntimeDb-SYQGUF4U.js} +1 -1
- package/{machineCommands-OTABVXOA.js → machineCommands-6N6MQIE6.js} +69 -65
- package/{machineWsRunDispatch-V4EVQSMZ.js → machineWsRunDispatch-7MFKVQCR.js} +65 -61
- package/{memberThunks-KATHH3F4.js → memberThunks-P2ECUJ56.js} +9 -9
- package/{models-GS72DVJS.js → models-T3SG6MJ5.js} +2 -2
- package/{offlineMarxistsAgentCommand-GEH6SNNA.js → offlineMarxistsAgentCommand-HGXZV4XJ.js} +1 -1
- package/package.json +1 -1
- package/pdf-U6KSUEZZ.js +26435 -0
- package/providerPresetApply-XI3WUPTI.js +214 -0
- package/providerRegistry-KEPWWGXD.js +31 -0
- package/{read-LC6HVYBN.js → read-COE3ZYR6.js} +5 -4
- package/{readDocTool-N3ERJHHF.js → readDocTool-5USN4A6V.js} +1 -1
- package/{readlineWorkspace-IIT3FQ6I.js → readlineWorkspace-JWBON5CX.js} +291 -135
- package/{removeDialogAgentAction-F5GPTALR.js → removeDialogAgentAction-W66BJ7CF.js} +12 -12
- package/{runAgentClientLoop-7TQM7IAR.js → runAgentClientLoop-TA4SSPHE.js} +49 -49
- package/{runtimeDoctorCommands-CROTMULY.js → runtimeDoctorCommands-X6WDBEQX.js} +2 -2
- package/{setDialogExtraReferencesAction-AY4ZCF3A.js → setDialogExtraReferencesAction-2ALKG3WA.js} +10 -10
- package/{setPrimaryDialogAgentAction-HPMG7V3R.js → setPrimaryDialogAgentAction-TQZB55F6.js} +12 -12
- package/{settingSlice-OEJA4NQO.js → settingSlice-P4ZW7K5X.js} +10 -10
- package/{spaceCommands-FSYH7AL4.js → spaceCommands-6NSAXB7D.js} +31 -29
- package/{streamAgentChatTurn-6EF6TVFK.js → streamAgentChatTurn-X5ENGUIS.js} +126 -65
- package/{switchDialogAgentAction-HMDZTZ4I.js → switchDialogAgentAction-3KI72HHS.js} +9 -9
- package/{tableCommands-SUNTHAYX.js → tableCommands-O6NWHFKV.js} +1 -1
- package/{toolApiClient-VGYUB4P5.js → toolApiClient-G3M73RTB.js} +3 -3
- package/{tools-R3QNWWTD.js → tools-XRQR7ZZR.js} +45 -45
- package/tuiSummaryLlmCaller-UFGFOIIW.js +128 -0
- package/{updateCommands-Y363MC3L.js → updateCommands-2M74UL7P.js} +2 -2
- package/{updateDialogTitleAction-F3EUOWOB.js → updateDialogTitleAction-ESUUD3GT.js} +46 -29
- package/agentRecordCommands-WFPWLWOF.js +0 -125
- package/chunk-FMODTASJ.js +0 -109
- package/chunk-I42VC5KR.js +0 -15
- package/chunk-NB5SIWC4.js +0 -611
- package/chunk-NG4UT4K4.js +0 -79
- package/codingSkills-7S6523WH.js +0 -48
- package/tuiSummaryLlmCaller-PWOXTCBF.js +0 -116
- package/{chunk-3RAG2NAD.js → chunk-UKWGR5SS.js} +3 -3
- package/{db-VQSAOWAO.js → db-WK5MDZVN.js} +1 -1
- 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
|
-
};
|
package/codingSkills-7S6523WH.js
DELETED
|
@@ -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-NFT2AOK5.js";
|
|
10
|
-
import "./chunk-CQ3WA2NE.js";
|
|
11
|
-
import "./chunk-N7J63Q6C.js";
|
|
12
|
-
import "./chunk-PUOC4YRO.js";
|
|
13
|
-
import "./chunk-TMPLPCVX.js";
|
|
14
|
-
import {
|
|
15
|
-
COMPACTION_SUMMARY_SYSTEM_PROMPT
|
|
16
|
-
} from "./chunk-E36HZARC.js";
|
|
17
|
-
import "./chunk-PZCTYKGU.js";
|
|
18
|
-
import "./chunk-PSCNXBYA.js";
|
|
19
|
-
import "./chunk-BYXBJQAS.js";
|
|
20
|
-
import "./chunk-MXUSPS2N.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,
|