nolo-cli 0.30.0 → 1.0.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/{_executeModel-VBHHG7LT.js → _executeModel-MYLWE5K2.js} +31 -30
- package/{action-FENWPT3C.js → action-P5NVIGGG.js} +7 -7
- package/{addContentAction-Z5S5ZQ7I.js → addContentAction-V2QQUJ32.js} +6 -6
- package/{addDialogAgentAction-VUNVD2XR.js → addDialogAgentAction-536QKJ6L.js} +5 -5
- package/{agentDeleteCommand-LLGZXUYJ.js → agentDeleteCommand-RIILFDSH.js} +24 -23
- package/{agentEmailCommands-LC2FPN6G.js → agentEmailCommands-KWJ5CUHY.js} +36 -35
- package/{agentListCommands-A6OBQ3QX.js → agentListCommands-BZZSDNCU.js} +26 -25
- package/{agentMachineCommands-4O4Q5B5X.js → agentMachineCommands-Q7LS3LQH.js} +24 -23
- package/{agentRecordCommands-W22RIQRV.js → agentRecordCommands-SJUBM3AJ.js} +35 -34
- package/{agentRunCommand-V4OBU4FB.js → agentRunCommand-6O2VTHXQ.js} +35 -34
- package/{agentRuntimeLocal-I57YSGH4.js → agentRuntimeLocal-43ZQHP35.js} +21 -20
- package/{agentSlice-3ZHY7RAO.js → agentSlice-JLADUWUP.js} +6 -6
- package/{appDeleteCommands-DJJF466K.js → appDeleteCommands-4UNQSSWN.js} +25 -24
- package/{appDeployCommands-WJZGIOEZ.js → appDeployCommands-KG2BZXOG.js} +25 -24
- package/{appDeployStatusCommands-ICYXUJNO.js → appDeployStatusCommands-KF7DF2YA.js} +25 -24
- package/{appGetCommands-UOCWYJPV.js → appGetCommands-QPHSEE5N.js} +25 -24
- package/{appListCommands-EOKWTXPW.js → appListCommands-F3EP542I.js} +25 -24
- package/{authCommand-H5KE7K7K.js → authCommand-YLP77TMC.js} +5 -5
- package/{chunk-IZ3CBMD5.js → chunk-2U6OW2C3.js} +4 -4
- package/{chunk-R5V5G73M.js → chunk-5RDLGLAP.js} +0 -1
- package/{chunk-TJYWZ3LO.js → chunk-75XQT73Q.js} +2 -2
- package/{chunk-7CD24PU4.js → chunk-B4HGX366.js} +6 -6
- package/{chunk-KWKD3BCC.js → chunk-BSMTXN5T.js} +11 -11
- package/{chunk-MMCVBEAD.js → chunk-D6K6XCUJ.js} +25 -23
- package/{chunk-A4JDTA5T.js → chunk-DFPTW7QE.js} +6 -6
- package/{chunk-YWGSCF37.js → chunk-DWZMXGKK.js} +1 -1
- package/{chunk-ZFTCLBEX.js → chunk-E5WZMGFH.js} +417 -237
- package/{chunk-DCWBP2O7.js → chunk-EAKXD6CA.js} +10 -10
- package/{chunk-VSTUQGLT.js → chunk-ECHKECDC.js} +170 -42
- package/{chunk-QLV2GKU5.js → chunk-FCHECEX7.js} +7 -5
- package/{chunk-DWQNDGO7.js → chunk-FD6FKCDH.js} +2 -2
- package/{chunk-GAGUBI42.js → chunk-GD5XAUJ3.js} +5 -5
- package/{chunk-VP4WJWKW.js → chunk-GM6PU7B6.js} +431 -345
- package/{chunk-KW47OSRJ.js → chunk-HC73BU6M.js} +50 -70
- package/{chunk-3LY4F7SV.js → chunk-INZZJSQF.js} +348 -331
- package/{chunk-G6VITLCZ.js → chunk-IT7IN5AX.js} +2 -2
- package/{chunk-Q24P6TUS.js → chunk-JQFRQWGN.js} +1 -1
- package/{chunk-FS5TTXPS.js → chunk-JZTOEZJ4.js} +4 -4
- package/{chunk-UKC5HU2C.js → chunk-KHYNTGOT.js} +5 -5
- package/{chunk-MEUZFIAJ.js → chunk-KMGSN747.js} +1 -1
- package/{chunk-CV6I4HBA.js → chunk-KR6G42Z2.js} +1 -1
- package/{chunk-HI7QZNWX.js → chunk-KU6JXKVW.js} +4 -4
- package/{chunk-2XM5KUNE.js → chunk-LE5PV7CF.js} +2 -2
- package/{chunk-SWOTB2TX.js → chunk-LOZF4FBI.js} +43 -36
- package/{chunk-66O5MZYH.js → chunk-MZIHJGB5.js} +1 -1
- package/{chunk-T3Y5EMJS.js → chunk-N6F6HKEE.js} +1 -1
- package/{chunk-DI6MXJK5.js → chunk-NHOV2D4N.js} +16 -14
- package/{chunk-HLG6GAUD.js → chunk-NLEEVJZU.js} +1 -1
- package/{chunk-446VANPP.js → chunk-OJE3M2CY.js} +4 -4
- package/{chunk-DKRT67FG.js → chunk-OMR6FM26.js} +3 -3
- package/{chunk-GVKTKT3O.js → chunk-ORCLFNKB.js} +3 -3
- package/{chunk-BOL2D2JW.js → chunk-QGSD46W6.js} +2 -2
- package/{chunk-L3VQOVKK.js → chunk-R3YEGS4D.js} +3 -3
- package/{chunk-56IUA7RU.js → chunk-RXGTXWYH.js} +1 -1
- package/{chunk-UTQZ73QQ.js → chunk-SVZ6MSA3.js} +1 -1
- package/{chunk-YLADSPDU.js → chunk-U2I2DYUD.js} +2 -2
- package/chunk-UD4A2FNM.js +7923 -0
- package/{chunk-OYK7PA5U.js → chunk-UEH4ANWR.js} +6 -6
- package/chunk-UUNZE2KQ.js +5558 -0
- package/{chunk-3RIWR23B.js → chunk-VWBCW4JY.js} +1 -1
- package/{chunk-SZ5CBYMZ.js → chunk-W427FQJD.js} +2 -2
- package/{chunk-W2YKDXT7.js → chunk-XBACY73D.js} +1 -1
- package/{chunk-G5JHHUAK.js → chunk-XD6JM3SC.js} +1 -1
- package/{chunk-XD5NQEOH.js → chunk-ZIKG63EC.js} +1 -1
- package/{clipboardy-BVE3LVEH.js → clipboardy-MMBYVRLF.js} +166 -372
- package/{createAgentAutomationAction-3GMH6ORX.js → createAgentAutomationAction-B6ZSNUUI.js} +12 -11
- package/{createDialogAction-R5MCL4RE.js → createDialogAction-G34J7HP5.js} +13 -12
- package/{createPageAction-QYTG656R.js → createPageAction-KL4OCNNH.js} +14 -13
- package/{dbSlice-OBV7VFCF.js → dbSlice-6IRTSQLA.js} +5 -5
- package/{deleteFile-AC45HYSM.js → deleteFile-TSEW36N4.js} +3 -3
- package/{dialogCommands-NUQGIXVZ.js → dialogCommands-PHH75OPO.js} +25 -24
- package/{dialogSlice-CFDECXEU.js → dialogSlice-2B5AGZXL.js} +11 -11
- package/{docCreateCommands-UNFCXB5N.js → docCreateCommands-2EZAGRNU.js} +24 -23
- package/{docDeleteCommands-NG5IVKE5.js → docDeleteCommands-ZYL2JBF2.js} +25 -24
- package/{docReadCommands-6J7MUUX6.js → docReadCommands-Q5HGLLRZ.js} +24 -23
- package/{docStore-MZZWJM4F.js → docStore-CCQWPWYV.js} +13 -12
- package/{docUpdateCommands-6AW3VZOX.js → docUpdateCommands-KGOPINTR.js} +24 -23
- package/{getPricing-XQYSSVV6.js → getPricing-6FIKFX4A.js} +2 -2
- package/{handleSendMessageAction-IU2QNTLM.js → handleSendMessageAction-TS5MF7R4.js} +11 -11
- package/index.js +58 -58
- package/{lib-FYYBQIXS.js → lib-2ZTNRXR4.js} +432 -183
- package/{machineCommands-Z2QEWTHZ.js → machineCommands-4UGY53XP.js} +34 -33
- package/{machineWsRunDispatch-SJTYHZHN.js → machineWsRunDispatch-6KNOLLYI.js} +34 -33
- package/package.json +1 -1
- package/{read-QK7ZRX6G.js → read-UMWKE5D4.js} +3 -3
- package/{readDocTool-EYDMVRBL.js → readDocTool-FEHZDVEE.js} +1 -1
- package/{readlineWorkspace-EY3BPXIU.js → readlineWorkspace-7YWWGBSU.js} +97 -59
- package/{removeDialogAgentAction-TBW3UZJW.js → removeDialogAgentAction-X32EDHZX.js} +7 -7
- package/{runAgentClientLoop-N3YDLTMS.js → runAgentClientLoop-UQ23LEWR.js} +27 -26
- package/{setDialogExtraReferencesAction-Q3ANF2NR.js → setDialogExtraReferencesAction-VGI5CCSY.js} +6 -6
- package/{setPrimaryDialogAgentAction-FQ5R3EFJ.js → setPrimaryDialogAgentAction-QOFXGQT6.js} +7 -7
- package/{settingSlice-JKKV2T7O.js → settingSlice-RHSYAKFT.js} +6 -6
- package/{slateUtils-2M7MUTWX.js → slateUtils-VO2FU36K.js} +1 -1
- package/{spaceCommands-R6AEQNLG.js → spaceCommands-GH5DTWKY.js} +208 -26
- package/{spaceSlice-MCH7RLLP.js → spaceSlice-AW66HZHQ.js} +12 -11
- package/{streamAgentChatTurn-Q4U2CVMI.js → streamAgentChatTurn-TZQZFDJQ.js} +32 -30
- package/{switchDialogAgentAction-QQGVE4SL.js → switchDialogAgentAction-KX56UKUF.js} +5 -5
- package/{tableCommands-PRJNWN6Q.js → tableCommands-RJZ3V4TF.js} +1 -1
- package/{tools-Y3UBLLYW.js → tools-FO7J53WL.js} +22 -21
- package/{tuiSummaryLlmCaller-4474IBTI.js → tuiSummaryLlmCaller-OX5M2GJW.js} +3 -3
- package/{updateDialogTitleAction-3J7GH67I.js → updateDialogTitleAction-FVDTGJNA.js} +15 -13
- package/chunk-THTAR67C.js +0 -16338
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ANTIGRAVITY_CLOUD_CODE_BASE_URL,
|
|
3
3
|
isAntigravityOAuthAgent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-75XQT73Q.js";
|
|
5
5
|
import {
|
|
6
6
|
buildCurrentTimeBlock,
|
|
7
7
|
buildIdentityBlock,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
requiresBareImageUrl,
|
|
10
10
|
resolveToolGuidedSections,
|
|
11
11
|
toBareImageUrlMessages
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-B4HGX366.js";
|
|
13
13
|
import {
|
|
14
14
|
convertMessagesToResponsesInput,
|
|
15
15
|
preserveAgentStateFields
|
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
isOpenAiResponsesModel,
|
|
20
20
|
resolvePlatformChatCompletionsEndpoint,
|
|
21
21
|
resolvePlatformResponsesEndpoint
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZIKG63EC.js";
|
|
23
23
|
import {
|
|
24
24
|
MEMORY_USE_GUIDANCE,
|
|
25
25
|
wrapHistoricalSummaryWithReplayGuard
|
|
26
26
|
} from "./chunk-4PWB7JRR.js";
|
|
27
27
|
import {
|
|
28
28
|
waitForAbortableDelay
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-LOZF4FBI.js";
|
|
30
30
|
import {
|
|
31
31
|
createDrainExhaustedResponse,
|
|
32
32
|
isCoreDrainingBody,
|
|
@@ -36,15 +36,15 @@ import {
|
|
|
36
36
|
} from "./chunk-Z5MXSEOJ.js";
|
|
37
37
|
import {
|
|
38
38
|
resolveBuiltinSkillPage
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-UEH4ANWR.js";
|
|
40
40
|
import {
|
|
41
41
|
estimateTokenCount,
|
|
42
42
|
shouldUseServerProxy
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-UUNZE2KQ.js";
|
|
44
44
|
import {
|
|
45
45
|
createFileCredentialBroker,
|
|
46
46
|
fetchServerSyncedCredential
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-GD5XAUJ3.js";
|
|
48
48
|
import {
|
|
49
49
|
toErrorMessage
|
|
50
50
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
clampReasoningEffort,
|
|
53
53
|
getModelConfig,
|
|
54
54
|
isModelSupportReasoningEffort
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-ECHKECDC.js";
|
|
56
56
|
import {
|
|
57
57
|
isDeepInfraKimiModel,
|
|
58
58
|
isFireworksKimiModel,
|
|
@@ -60,13 +60,13 @@ import {
|
|
|
60
60
|
} from "./chunk-CAENRKNJ.js";
|
|
61
61
|
import {
|
|
62
62
|
read
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-DFPTW7QE.js";
|
|
64
64
|
import {
|
|
65
65
|
asTrimmedLowercaseString
|
|
66
66
|
} from "./chunk-QSJ3HFEF.js";
|
|
67
67
|
import {
|
|
68
68
|
isAbortError
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-5RDLGLAP.js";
|
|
70
70
|
import {
|
|
71
71
|
API_ENDPOINTS
|
|
72
72
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -505,7 +505,151 @@ var kimiCodeModels = [
|
|
|
505
505
|
}
|
|
506
506
|
];
|
|
507
507
|
|
|
508
|
-
//
|
|
508
|
+
// packages/integrations/opencode/models.ts
|
|
509
|
+
var opencodeGoModels = [
|
|
510
|
+
// ── OpenAI ──
|
|
511
|
+
{
|
|
512
|
+
name: "gpt-5.6-luna",
|
|
513
|
+
displayName: "GPT-5.6 Luna (Fast)",
|
|
514
|
+
hasVision: true,
|
|
515
|
+
contextWindow: 272e3,
|
|
516
|
+
maxOutputTokens: 128e3,
|
|
517
|
+
jsonOutput: true,
|
|
518
|
+
fnCall: true,
|
|
519
|
+
supportsTool: true,
|
|
520
|
+
price: { input: 0, output: 0 },
|
|
521
|
+
provider: "opencode-go",
|
|
522
|
+
description: "OpenAI GPT-5.6 Luna \u5FEB\u901F\u6A21\u578B\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
|
|
523
|
+
},
|
|
524
|
+
// gpt-5.6-sol 不在 Go 订阅内:GET /models 不返回它,直接调用返回
|
|
525
|
+
// 401 "Model gpt-5.6-sol is not supported"(实测 2026-08-03)。
|
|
526
|
+
// ── Grok ──
|
|
527
|
+
{
|
|
528
|
+
name: "grok-4.5",
|
|
529
|
+
displayName: "Grok 4.5",
|
|
530
|
+
hasVision: true,
|
|
531
|
+
contextWindow: 5e5,
|
|
532
|
+
maxOutputTokens: 262144,
|
|
533
|
+
jsonOutput: true,
|
|
534
|
+
fnCall: true,
|
|
535
|
+
supportsTool: true,
|
|
536
|
+
price: { input: 0, output: 0 },
|
|
537
|
+
provider: "opencode-go",
|
|
538
|
+
description: "xAI Grok 4.5\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
|
|
539
|
+
},
|
|
540
|
+
// ── Kimi ──
|
|
541
|
+
{
|
|
542
|
+
name: "kimi-k3",
|
|
543
|
+
displayName: "Kimi K3",
|
|
544
|
+
hasVision: true,
|
|
545
|
+
contextWindow: 1e6,
|
|
546
|
+
maxOutputTokens: 262144,
|
|
547
|
+
jsonOutput: true,
|
|
548
|
+
fnCall: true,
|
|
549
|
+
supportsTool: true,
|
|
550
|
+
price: { input: 0, output: 0 },
|
|
551
|
+
provider: "opencode-go",
|
|
552
|
+
description: "Kimi K3 \u65D7\u8230\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
|
|
553
|
+
},
|
|
554
|
+
// ── Qwen ──
|
|
555
|
+
{
|
|
556
|
+
name: "qwen3.8-max",
|
|
557
|
+
displayName: "Qwen3.8 Max",
|
|
558
|
+
hasVision: true,
|
|
559
|
+
contextWindow: 262144,
|
|
560
|
+
maxOutputTokens: 32768,
|
|
561
|
+
jsonOutput: true,
|
|
562
|
+
fnCall: true,
|
|
563
|
+
supportsTool: true,
|
|
564
|
+
price: { input: 0, output: 0 },
|
|
565
|
+
provider: "opencode-go",
|
|
566
|
+
description: "\u5343\u95EE 3.8 Max \u65D7\u8230\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
name: "qwen3.7-max",
|
|
570
|
+
displayName: "Qwen3.7 Max",
|
|
571
|
+
hasVision: false,
|
|
572
|
+
contextWindow: 262144,
|
|
573
|
+
maxOutputTokens: 32768,
|
|
574
|
+
jsonOutput: true,
|
|
575
|
+
fnCall: true,
|
|
576
|
+
supportsTool: true,
|
|
577
|
+
price: { input: 0, output: 0 },
|
|
578
|
+
provider: "opencode-go",
|
|
579
|
+
description: "\u5343\u95EE 3.7 Max\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
|
|
580
|
+
},
|
|
581
|
+
// ── GLM ──
|
|
582
|
+
{
|
|
583
|
+
name: "glm-5.2",
|
|
584
|
+
displayName: "GLM 5.2",
|
|
585
|
+
hasVision: false,
|
|
586
|
+
contextWindow: 1e6,
|
|
587
|
+
maxOutputTokens: 16384,
|
|
588
|
+
jsonOutput: true,
|
|
589
|
+
fnCall: true,
|
|
590
|
+
supportsTool: true,
|
|
591
|
+
price: { input: 0, output: 0 },
|
|
592
|
+
provider: "opencode-go",
|
|
593
|
+
description: "\u667A\u8C31 GLM 5.2\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
|
|
594
|
+
},
|
|
595
|
+
// ── MiMo ──
|
|
596
|
+
{
|
|
597
|
+
name: "mimo-v2.5-pro",
|
|
598
|
+
displayName: "MiMo V2.5 Pro",
|
|
599
|
+
hasVision: false,
|
|
600
|
+
contextWindow: 131072,
|
|
601
|
+
maxOutputTokens: 16384,
|
|
602
|
+
jsonOutput: true,
|
|
603
|
+
fnCall: true,
|
|
604
|
+
supportsTool: true,
|
|
605
|
+
price: { input: 0, output: 0 },
|
|
606
|
+
provider: "opencode-go",
|
|
607
|
+
description: "\u5C0F\u7C73 MiMo V2.5 Pro\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
|
|
608
|
+
},
|
|
609
|
+
// ── MiniMax ──
|
|
610
|
+
{
|
|
611
|
+
name: "minimax-m3",
|
|
612
|
+
displayName: "MiniMax M3",
|
|
613
|
+
hasVision: true,
|
|
614
|
+
contextWindow: 1e6,
|
|
615
|
+
maxOutputTokens: 262144,
|
|
616
|
+
jsonOutput: true,
|
|
617
|
+
fnCall: true,
|
|
618
|
+
supportsTool: true,
|
|
619
|
+
price: { input: 0, output: 0 },
|
|
620
|
+
provider: "opencode-go",
|
|
621
|
+
description: "MiniMax M3\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
|
|
622
|
+
},
|
|
623
|
+
// ── DeepSeek ──
|
|
624
|
+
{
|
|
625
|
+
name: "deepseek-v4-pro",
|
|
626
|
+
displayName: "DeepSeek V4 Pro",
|
|
627
|
+
hasVision: false,
|
|
628
|
+
contextWindow: 1e6,
|
|
629
|
+
maxOutputTokens: 384e3,
|
|
630
|
+
jsonOutput: true,
|
|
631
|
+
fnCall: true,
|
|
632
|
+
supportsTool: true,
|
|
633
|
+
price: { input: 0, output: 0 },
|
|
634
|
+
provider: "opencode-go",
|
|
635
|
+
description: "DeepSeek V4 Pro\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
name: "deepseek-v4-flash",
|
|
639
|
+
displayName: "DeepSeek V4 Flash",
|
|
640
|
+
hasVision: false,
|
|
641
|
+
contextWindow: 1e6,
|
|
642
|
+
maxOutputTokens: 384e3,
|
|
643
|
+
jsonOutput: true,
|
|
644
|
+
fnCall: true,
|
|
645
|
+
supportsTool: true,
|
|
646
|
+
price: { input: 0, output: 0 },
|
|
647
|
+
provider: "opencode-go",
|
|
648
|
+
description: "DeepSeek V4 Flash\uFF0COpenCode Go \u8BA2\u9605\u542B\u3002"
|
|
649
|
+
}
|
|
650
|
+
];
|
|
651
|
+
|
|
652
|
+
// node_modules/zod/v3/external.js
|
|
509
653
|
var external_exports = {};
|
|
510
654
|
__export(external_exports, {
|
|
511
655
|
BRAND: () => BRAND,
|
|
@@ -617,7 +761,7 @@ __export(external_exports, {
|
|
|
617
761
|
void: () => voidType
|
|
618
762
|
});
|
|
619
763
|
|
|
620
|
-
// node_modules/zod/
|
|
764
|
+
// node_modules/zod/v3/helpers/util.js
|
|
621
765
|
var util;
|
|
622
766
|
(function(util2) {
|
|
623
767
|
util2.assertEqual = (_) => {
|
|
@@ -751,7 +895,7 @@ var getParsedType = (data) => {
|
|
|
751
895
|
}
|
|
752
896
|
};
|
|
753
897
|
|
|
754
|
-
// node_modules/zod/
|
|
898
|
+
// node_modules/zod/v3/ZodError.js
|
|
755
899
|
var ZodIssueCode = util.arrayToEnum([
|
|
756
900
|
"invalid_type",
|
|
757
901
|
"invalid_literal",
|
|
@@ -851,8 +995,9 @@ var ZodError = class _ZodError extends Error {
|
|
|
851
995
|
const formErrors = [];
|
|
852
996
|
for (const sub of this.issues) {
|
|
853
997
|
if (sub.path.length > 0) {
|
|
854
|
-
|
|
855
|
-
fieldErrors[
|
|
998
|
+
const firstEl = sub.path[0];
|
|
999
|
+
fieldErrors[firstEl] = fieldErrors[firstEl] || [];
|
|
1000
|
+
fieldErrors[firstEl].push(mapper(sub));
|
|
856
1001
|
} else {
|
|
857
1002
|
formErrors.push(mapper(sub));
|
|
858
1003
|
}
|
|
@@ -868,7 +1013,7 @@ ZodError.create = (issues) => {
|
|
|
868
1013
|
return error;
|
|
869
1014
|
};
|
|
870
1015
|
|
|
871
|
-
// node_modules/zod/
|
|
1016
|
+
// node_modules/zod/v3/locales/en.js
|
|
872
1017
|
var errorMap = (issue, _ctx) => {
|
|
873
1018
|
let message;
|
|
874
1019
|
switch (issue.code) {
|
|
@@ -930,6 +1075,8 @@ var errorMap = (issue, _ctx) => {
|
|
|
930
1075
|
message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
|
|
931
1076
|
else if (issue.type === "number")
|
|
932
1077
|
message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
|
|
1078
|
+
else if (issue.type === "bigint")
|
|
1079
|
+
message = `Number must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${issue.minimum}`;
|
|
933
1080
|
else if (issue.type === "date")
|
|
934
1081
|
message = `Date must be ${issue.exact ? `exactly equal to ` : issue.inclusive ? `greater than or equal to ` : `greater than `}${new Date(Number(issue.minimum))}`;
|
|
935
1082
|
else
|
|
@@ -969,7 +1116,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
969
1116
|
};
|
|
970
1117
|
var en_default = errorMap;
|
|
971
1118
|
|
|
972
|
-
// node_modules/zod/
|
|
1119
|
+
// node_modules/zod/v3/errors.js
|
|
973
1120
|
var overrideErrorMap = en_default;
|
|
974
1121
|
function setErrorMap(map) {
|
|
975
1122
|
overrideErrorMap = map;
|
|
@@ -978,7 +1125,7 @@ function getErrorMap() {
|
|
|
978
1125
|
return overrideErrorMap;
|
|
979
1126
|
}
|
|
980
1127
|
|
|
981
|
-
// node_modules/zod/
|
|
1128
|
+
// node_modules/zod/v3/helpers/parseUtil.js
|
|
982
1129
|
var makeIssue = (params) => {
|
|
983
1130
|
const { data, path, errorMaps, issueData } = params;
|
|
984
1131
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -1088,27 +1235,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
1088
1235
|
var isValid = (x) => x.status === "valid";
|
|
1089
1236
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
1090
1237
|
|
|
1091
|
-
// node_modules/zod/
|
|
1238
|
+
// node_modules/zod/v3/helpers/errorUtil.js
|
|
1092
1239
|
var errorUtil;
|
|
1093
1240
|
(function(errorUtil2) {
|
|
1094
1241
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
1095
1242
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
1096
1243
|
})(errorUtil || (errorUtil = {}));
|
|
1097
1244
|
|
|
1098
|
-
// node_modules/zod/
|
|
1099
|
-
var __classPrivateFieldGet = function(receiver, state, kind, f) {
|
|
1100
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
1101
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1102
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
1103
|
-
};
|
|
1104
|
-
var __classPrivateFieldSet = function(receiver, state, value, kind, f) {
|
|
1105
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
1106
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
1107
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
1108
|
-
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
1109
|
-
};
|
|
1110
|
-
var _ZodEnum_cache;
|
|
1111
|
-
var _ZodNativeEnum_cache;
|
|
1245
|
+
// node_modules/zod/v3/types.js
|
|
1112
1246
|
var ParseInputLazyPath = class {
|
|
1113
1247
|
constructor(parent, value, path, key) {
|
|
1114
1248
|
this._cachedPath = [];
|
|
@@ -1507,6 +1641,8 @@ function isValidJWT(jwt, alg) {
|
|
|
1507
1641
|
return false;
|
|
1508
1642
|
try {
|
|
1509
1643
|
const [header] = jwt.split(".");
|
|
1644
|
+
if (!header)
|
|
1645
|
+
return false;
|
|
1510
1646
|
const base64 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");
|
|
1511
1647
|
const decoded = JSON.parse(atob(base64));
|
|
1512
1648
|
if (typeof decoded !== "object" || decoded === null)
|
|
@@ -3933,10 +4069,6 @@ function createZodEnum(values, params) {
|
|
|
3933
4069
|
});
|
|
3934
4070
|
}
|
|
3935
4071
|
var ZodEnum = class _ZodEnum extends ZodType {
|
|
3936
|
-
constructor() {
|
|
3937
|
-
super(...arguments);
|
|
3938
|
-
_ZodEnum_cache.set(this, void 0);
|
|
3939
|
-
}
|
|
3940
4072
|
_parse(input) {
|
|
3941
4073
|
if (typeof input.data !== "string") {
|
|
3942
4074
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -3948,10 +4080,10 @@ var ZodEnum = class _ZodEnum extends ZodType {
|
|
|
3948
4080
|
});
|
|
3949
4081
|
return INVALID;
|
|
3950
4082
|
}
|
|
3951
|
-
if (!
|
|
3952
|
-
|
|
4083
|
+
if (!this._cache) {
|
|
4084
|
+
this._cache = new Set(this._def.values);
|
|
3953
4085
|
}
|
|
3954
|
-
if (!
|
|
4086
|
+
if (!this._cache.has(input.data)) {
|
|
3955
4087
|
const ctx = this._getOrReturnCtx(input);
|
|
3956
4088
|
const expectedValues = this._def.values;
|
|
3957
4089
|
addIssueToContext(ctx, {
|
|
@@ -4000,13 +4132,8 @@ var ZodEnum = class _ZodEnum extends ZodType {
|
|
|
4000
4132
|
});
|
|
4001
4133
|
}
|
|
4002
4134
|
};
|
|
4003
|
-
_ZodEnum_cache = /* @__PURE__ */ new WeakMap();
|
|
4004
4135
|
ZodEnum.create = createZodEnum;
|
|
4005
4136
|
var ZodNativeEnum = class extends ZodType {
|
|
4006
|
-
constructor() {
|
|
4007
|
-
super(...arguments);
|
|
4008
|
-
_ZodNativeEnum_cache.set(this, void 0);
|
|
4009
|
-
}
|
|
4010
4137
|
_parse(input) {
|
|
4011
4138
|
const nativeEnumValues = util.getValidEnumValues(this._def.values);
|
|
4012
4139
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -4019,10 +4146,10 @@ var ZodNativeEnum = class extends ZodType {
|
|
|
4019
4146
|
});
|
|
4020
4147
|
return INVALID;
|
|
4021
4148
|
}
|
|
4022
|
-
if (!
|
|
4023
|
-
|
|
4149
|
+
if (!this._cache) {
|
|
4150
|
+
this._cache = new Set(util.getValidEnumValues(this._def.values));
|
|
4024
4151
|
}
|
|
4025
|
-
if (!
|
|
4152
|
+
if (!this._cache.has(input.data)) {
|
|
4026
4153
|
const expectedValues = util.objectValues(nativeEnumValues);
|
|
4027
4154
|
addIssueToContext(ctx, {
|
|
4028
4155
|
received: ctx.data,
|
|
@@ -4037,7 +4164,6 @@ var ZodNativeEnum = class extends ZodType {
|
|
|
4037
4164
|
return this._def.values;
|
|
4038
4165
|
}
|
|
4039
4166
|
};
|
|
4040
|
-
_ZodNativeEnum_cache = /* @__PURE__ */ new WeakMap();
|
|
4041
4167
|
ZodNativeEnum.create = (values, params) => {
|
|
4042
4168
|
return new ZodNativeEnum({
|
|
4043
4169
|
values,
|
|
@@ -4178,7 +4304,7 @@ var ZodEffects = class extends ZodType {
|
|
|
4178
4304
|
parent: ctx
|
|
4179
4305
|
});
|
|
4180
4306
|
if (!isValid(base))
|
|
4181
|
-
return
|
|
4307
|
+
return INVALID;
|
|
4182
4308
|
const result = effect.transform(base.value, checkCtx);
|
|
4183
4309
|
if (result instanceof Promise) {
|
|
4184
4310
|
throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
|
|
@@ -4187,7 +4313,7 @@ var ZodEffects = class extends ZodType {
|
|
|
4187
4313
|
} else {
|
|
4188
4314
|
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
|
|
4189
4315
|
if (!isValid(base))
|
|
4190
|
-
return
|
|
4316
|
+
return INVALID;
|
|
4191
4317
|
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
4192
4318
|
status: status.value,
|
|
4193
4319
|
value: result
|
|
@@ -4723,6 +4849,8 @@ var MODEL_MAP = {
|
|
|
4723
4849
|
var MODEL_LOOKUP_MAP = {
|
|
4724
4850
|
anthropic: [...anthropicModels, ...anthropicOAuthModels],
|
|
4725
4851
|
xai: xaiModels,
|
|
4852
|
+
"opencode-go": opencodeGoModels,
|
|
4853
|
+
opencode: opencodeGoModels,
|
|
4726
4854
|
...MODEL_MAP
|
|
4727
4855
|
};
|
|
4728
4856
|
var ANTHROPIC_MODEL_ALIASES = {
|
|
@@ -4856,7 +4984,7 @@ function getModelConfig(provider, name) {
|
|
|
4856
4984
|
return model;
|
|
4857
4985
|
}
|
|
4858
4986
|
function getProviderByModelName(modelName) {
|
|
4859
|
-
for (const [provider, models] of Object.entries(
|
|
4987
|
+
for (const [provider, models] of Object.entries(MODEL_LOOKUP_MAP)) {
|
|
4860
4988
|
if (models.some((m) => m.name === modelName)) {
|
|
4861
4989
|
return provider;
|
|
4862
4990
|
}
|
|
@@ -2,11 +2,13 @@ import {
|
|
|
2
2
|
buildBuiltinObjectSkillReference
|
|
3
3
|
} from "./chunk-DCDL3GC4.js";
|
|
4
4
|
import {
|
|
5
|
-
addContentToSpace
|
|
5
|
+
addContentToSpace
|
|
6
|
+
} from "./chunk-UD4A2FNM.js";
|
|
7
|
+
import {
|
|
6
8
|
prepareAndPersistMessage,
|
|
7
9
|
uiAskChoiceFunc,
|
|
8
10
|
uiAskChoiceFunctionSchema
|
|
9
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UUNZE2KQ.js";
|
|
10
12
|
import {
|
|
11
13
|
require_date_fns
|
|
12
14
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -21,16 +23,16 @@ import {
|
|
|
21
23
|
removeCachedEntity,
|
|
22
24
|
upsertSSREntity,
|
|
23
25
|
write
|
|
24
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DFPTW7QE.js";
|
|
25
27
|
import {
|
|
26
28
|
extractCustomId
|
|
27
29
|
} from "./chunk-TOW4E763.js";
|
|
28
30
|
import {
|
|
29
31
|
selectIdentityUserId
|
|
30
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-E5WZMGFH.js";
|
|
31
33
|
import {
|
|
32
34
|
isDevelopment
|
|
33
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-5RDLGLAP.js";
|
|
34
36
|
import {
|
|
35
37
|
createAgentKey,
|
|
36
38
|
createDialogKey,
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
scheduleExistingRecordReplication,
|
|
11
11
|
shouldReplaceLocalWithRemoteRecord,
|
|
12
12
|
shouldReplicateLocalRecord
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-E5WZMGFH.js";
|
|
14
14
|
import {
|
|
15
15
|
fetchFromClientDb,
|
|
16
16
|
fetchFromServer,
|
|
17
17
|
isAbortError,
|
|
18
18
|
isReadTimeoutError,
|
|
19
19
|
logger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5RDLGLAP.js";
|
|
21
21
|
import {
|
|
22
22
|
NOLO_CLUSTER_SERVERS,
|
|
23
23
|
normalizeKnownServerOrigin
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
patch,
|
|
9
9
|
remove,
|
|
10
10
|
write
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DFPTW7QE.js";
|
|
12
12
|
import {
|
|
13
13
|
asyncThunkCreator,
|
|
14
14
|
buildCreateSlice,
|
|
15
15
|
getRuntimeServerContext
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-E5WZMGFH.js";
|
|
17
17
|
import {
|
|
18
18
|
createAgentKey,
|
|
19
19
|
toTrimmedString
|
|
@@ -583,7 +583,7 @@ var slice = createSliceWithThunks({
|
|
|
583
583
|
const overrides = {};
|
|
584
584
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
585
585
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
586
|
-
const { _executeModel } = await import("./_executeModel-
|
|
586
|
+
const { _executeModel } = await import("./_executeModel-MYLWE5K2.js");
|
|
587
587
|
return _executeModel(
|
|
588
588
|
{
|
|
589
589
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -604,7 +604,7 @@ var slice = createSliceWithThunks({
|
|
|
604
604
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
605
605
|
*/
|
|
606
606
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
607
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
607
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-UQ23LEWR.js");
|
|
608
608
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
609
609
|
{
|
|
610
610
|
agentKey: args.agentKey,
|
|
@@ -620,7 +620,7 @@ var slice = createSliceWithThunks({
|
|
|
620
620
|
* 聊天轮次流式 Agent 调用
|
|
621
621
|
*/
|
|
622
622
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
623
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
623
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-TZQZFDJQ.js");
|
|
624
624
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
625
625
|
}),
|
|
626
626
|
/**
|