nolo-cli 0.30.0-alpha.1 → 0.30.0-alpha.10

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 (97) hide show
  1. package/{_executeModel-VBHHG7LT.js → _executeModel-5ARVVUIK.js} +29 -28
  2. package/{action-FENWPT3C.js → action-HI3VRQLP.js} +7 -7
  3. package/{addContentAction-Z5S5ZQ7I.js → addContentAction-NCURJ6PK.js} +6 -6
  4. package/{addDialogAgentAction-VUNVD2XR.js → addDialogAgentAction-RCY4ECF4.js} +5 -5
  5. package/{agentDeleteCommand-LLGZXUYJ.js → agentDeleteCommand-5Q6TDCJU.js} +23 -22
  6. package/{agentEmailCommands-LC2FPN6G.js → agentEmailCommands-DSX4BJ2I.js} +34 -33
  7. package/{agentListCommands-A6OBQ3QX.js → agentListCommands-S66HL5RO.js} +25 -24
  8. package/{agentMachineCommands-4O4Q5B5X.js → agentMachineCommands-ULCQ5ZNN.js} +23 -22
  9. package/{agentRecordCommands-W22RIQRV.js → agentRecordCommands-2AA3GEGO.js} +33 -32
  10. package/{agentRunCommand-V4OBU4FB.js → agentRunCommand-3KOT77XY.js} +33 -32
  11. package/{agentRuntimeLocal-I57YSGH4.js → agentRuntimeLocal-7TMDJD4S.js} +20 -19
  12. package/{agentSlice-3ZHY7RAO.js → agentSlice-6IQRQZX3.js} +6 -6
  13. package/{appDeleteCommands-DJJF466K.js → appDeleteCommands-UUDIWLNE.js} +24 -23
  14. package/{appDeployCommands-WJZGIOEZ.js → appDeployCommands-CO6SZ7YP.js} +24 -23
  15. package/{appDeployStatusCommands-ICYXUJNO.js → appDeployStatusCommands-QEVKVECJ.js} +24 -23
  16. package/{appGetCommands-UOCWYJPV.js → appGetCommands-3YSCCLK4.js} +24 -23
  17. package/{appListCommands-EOKWTXPW.js → appListCommands-FBJAFZKK.js} +24 -23
  18. package/{authCommand-H5KE7K7K.js → authCommand-3ADNCFKD.js} +5 -5
  19. package/{chunk-G6VITLCZ.js → chunk-2CYGIPJH.js} +2 -2
  20. package/{chunk-UTQZ73QQ.js → chunk-2HQ4OG6N.js} +1 -1
  21. package/{chunk-ZFTCLBEX.js → chunk-2IJAKBK2.js} +3 -1
  22. package/{chunk-DI6MXJK5.js → chunk-2SOQY5L6.js} +16 -14
  23. package/{chunk-Q24P6TUS.js → chunk-43EPBPZ2.js} +1 -1
  24. package/{chunk-GAGUBI42.js → chunk-4F77PJBR.js} +5 -5
  25. package/{chunk-R5V5G73M.js → chunk-5RDLGLAP.js} +0 -1
  26. package/{chunk-FS5TTXPS.js → chunk-6JH2DF7J.js} +3 -3
  27. package/{chunk-HI7QZNWX.js → chunk-ARPAHODF.js} +4 -4
  28. package/{chunk-IZ3CBMD5.js → chunk-ATK5WJOA.js} +4 -4
  29. package/{chunk-2XM5KUNE.js → chunk-BIPRFBC2.js} +2 -2
  30. package/{chunk-OYK7PA5U.js → chunk-CYRMUTGB.js} +6 -6
  31. package/{chunk-T3Y5EMJS.js → chunk-EBNSAABL.js} +1 -1
  32. package/{chunk-CV6I4HBA.js → chunk-EDWM6D6L.js} +1 -1
  33. package/{chunk-VSTUQGLT.js → chunk-EIQDGAAE.js} +147 -1
  34. package/{chunk-G5JHHUAK.js → chunk-F3MP7CP6.js} +1 -1
  35. package/{chunk-446VANPP.js → chunk-G5GVZAXF.js} +4 -4
  36. package/{chunk-UKC5HU2C.js → chunk-GKXS4F2I.js} +5 -5
  37. package/{chunk-66O5MZYH.js → chunk-GVPMJPCT.js} +1 -1
  38. package/{chunk-SWOTB2TX.js → chunk-IPSPETAL.js} +40 -33
  39. package/{chunk-TJYWZ3LO.js → chunk-J3LHGBNO.js} +2 -2
  40. package/{chunk-DKRT67FG.js → chunk-KGEVMUMI.js} +3 -3
  41. package/{chunk-A4JDTA5T.js → chunk-LAXMH7JY.js} +6 -6
  42. package/chunk-LEVCXTDN.js +5558 -0
  43. package/{chunk-3RIWR23B.js → chunk-N2IX3ZYK.js} +1 -1
  44. package/{chunk-W2YKDXT7.js → chunk-NZBH7FTB.js} +1 -1
  45. package/{chunk-7CD24PU4.js → chunk-OIW2RJ74.js} +5 -5
  46. package/{chunk-YWGSCF37.js → chunk-PACNSC37.js} +1 -1
  47. package/{chunk-56IUA7RU.js → chunk-PIC6Z7VI.js} +1 -1
  48. package/{chunk-MMCVBEAD.js → chunk-Q243PXRU.js} +25 -23
  49. package/{chunk-SZ5CBYMZ.js → chunk-QBOW6RZN.js} +2 -2
  50. package/{chunk-DCWBP2O7.js → chunk-R5Y4XELF.js} +10 -10
  51. package/{chunk-HLG6GAUD.js → chunk-RWJPDKPB.js} +1 -1
  52. package/{chunk-GVKTKT3O.js → chunk-S2BMRBR2.js} +3 -3
  53. package/{chunk-QLV2GKU5.js → chunk-T4X4GCYT.js} +7 -5
  54. package/{chunk-L3VQOVKK.js → chunk-TXVSNFHC.js} +3 -3
  55. package/{chunk-YLADSPDU.js → chunk-V54H24CQ.js} +2 -2
  56. package/{chunk-KW47OSRJ.js → chunk-VQ4QPCKE.js} +50 -70
  57. package/{chunk-KWKD3BCC.js → chunk-W3UDJJMA.js} +11 -11
  58. package/{chunk-XD5NQEOH.js → chunk-WTPC3XD4.js} +1 -1
  59. package/{chunk-MEUZFIAJ.js → chunk-XORE26Z4.js} +1 -1
  60. package/chunk-YLC42PIE.js +7889 -0
  61. package/{chunk-BOL2D2JW.js → chunk-ZJ2WITOO.js} +2 -2
  62. package/{chunk-DWQNDGO7.js → chunk-ZJH3LKEW.js} +2 -2
  63. package/{createAgentAutomationAction-3GMH6ORX.js → createAgentAutomationAction-EYNYY2LB.js} +12 -11
  64. package/{createDialogAction-R5MCL4RE.js → createDialogAction-OUIRWYZP.js} +13 -12
  65. package/{createPageAction-QYTG656R.js → createPageAction-2I5PHJFF.js} +12 -11
  66. package/{dbSlice-OBV7VFCF.js → dbSlice-BBL3PEVW.js} +5 -5
  67. package/{deleteFile-AC45HYSM.js → deleteFile-RJTEPOT4.js} +3 -3
  68. package/{dialogCommands-NUQGIXVZ.js → dialogCommands-5CL4QYQ7.js} +24 -23
  69. package/{dialogSlice-CFDECXEU.js → dialogSlice-EKKVFKBJ.js} +11 -11
  70. package/{docCreateCommands-UNFCXB5N.js → docCreateCommands-QHCLYGNW.js} +23 -22
  71. package/{docDeleteCommands-NG5IVKE5.js → docDeleteCommands-DS6KOU6N.js} +24 -23
  72. package/{docReadCommands-6J7MUUX6.js → docReadCommands-FRI5DAKH.js} +23 -22
  73. package/{docStore-MZZWJM4F.js → docStore-V7EJS4PX.js} +13 -12
  74. package/{docUpdateCommands-6AW3VZOX.js → docUpdateCommands-RQO5ZTXT.js} +23 -22
  75. package/{getPricing-XQYSSVV6.js → getPricing-67TQVKFV.js} +2 -2
  76. package/{handleSendMessageAction-IU2QNTLM.js → handleSendMessageAction-KCF7KII4.js} +11 -11
  77. package/index.js +58 -58
  78. package/{machineCommands-Z2QEWTHZ.js → machineCommands-IAGAKTHV.js} +32 -31
  79. package/{machineWsRunDispatch-SJTYHZHN.js → machineWsRunDispatch-JGKC2HEK.js} +32 -31
  80. package/package.json +1 -1
  81. package/{read-QK7ZRX6G.js → read-64OQDO3I.js} +3 -3
  82. package/{readDocTool-EYDMVRBL.js → readDocTool-MXM3T6PE.js} +1 -1
  83. package/{readlineWorkspace-EY3BPXIU.js → readlineWorkspace-5AQHHIBK.js} +94 -56
  84. package/{removeDialogAgentAction-TBW3UZJW.js → removeDialogAgentAction-NEKVAMSH.js} +7 -7
  85. package/{runAgentClientLoop-N3YDLTMS.js → runAgentClientLoop-6OGPS6SI.js} +25 -24
  86. package/{setDialogExtraReferencesAction-Q3ANF2NR.js → setDialogExtraReferencesAction-WTOHQDIV.js} +6 -6
  87. package/{setPrimaryDialogAgentAction-FQ5R3EFJ.js → setPrimaryDialogAgentAction-LDJOYC4F.js} +7 -7
  88. package/{settingSlice-JKKV2T7O.js → settingSlice-4M37TN7V.js} +6 -6
  89. package/{spaceCommands-R6AEQNLG.js → spaceCommands-VTDNKTSF.js} +207 -25
  90. package/{spaceSlice-MCH7RLLP.js → spaceSlice-LGUZMB7Y.js} +12 -11
  91. package/{streamAgentChatTurn-Q4U2CVMI.js → streamAgentChatTurn-TIGCZUNZ.js} +30 -28
  92. package/{switchDialogAgentAction-QQGVE4SL.js → switchDialogAgentAction-XVWGKR2Z.js} +5 -5
  93. package/{tableCommands-PRJNWN6Q.js → tableCommands-RJZ3V4TF.js} +1 -1
  94. package/{tools-Y3UBLLYW.js → tools-BQAOPYMR.js} +20 -19
  95. package/{tuiSummaryLlmCaller-4474IBTI.js → tuiSummaryLlmCaller-YQBN5IMG.js} +3 -3
  96. package/{updateDialogTitleAction-3J7GH67I.js → updateDialogTitleAction-E6HMEDPH.js} +15 -13
  97. package/chunk-THTAR67C.js +0 -16338
@@ -505,6 +505,150 @@ var kimiCodeModels = [
505
505
  }
506
506
  ];
507
507
 
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
+
508
652
  // node_modules/zod/dist/esm/v3/external.js
509
653
  var external_exports = {};
510
654
  __export(external_exports, {
@@ -4723,6 +4867,8 @@ var MODEL_MAP = {
4723
4867
  var MODEL_LOOKUP_MAP = {
4724
4868
  anthropic: [...anthropicModels, ...anthropicOAuthModels],
4725
4869
  xai: xaiModels,
4870
+ "opencode-go": opencodeGoModels,
4871
+ opencode: opencodeGoModels,
4726
4872
  ...MODEL_MAP
4727
4873
  };
4728
4874
  var ANTHROPIC_MODEL_ALIASES = {
@@ -4856,7 +5002,7 @@ function getModelConfig(provider, name) {
4856
5002
  return model;
4857
5003
  }
4858
5004
  function getProviderByModelName(modelName) {
4859
- for (const [provider, models] of Object.entries(MODEL_MAP)) {
5005
+ for (const [provider, models] of Object.entries(MODEL_LOOKUP_MAP)) {
4860
5006
  if (models.some((m) => m.name === modelName)) {
4861
5007
  return provider;
4862
5008
  }
@@ -52,7 +52,7 @@ async function readDocFunc(args, thunkApi) {
52
52
  throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
53
53
  }
54
54
  try {
55
- const { readAction } = await import("./read-QK7ZRX6G.js");
55
+ const { readAction } = await import("./read-64OQDO3I.js");
56
56
  const pageData = await readAction({ dbKey: id }, thunkApi);
57
57
  if (!pageData) {
58
58
  throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
@@ -7,13 +7,13 @@ import {
7
7
  toTimestampMs,
8
8
  upsert,
9
9
  write
10
- } from "./chunk-A4JDTA5T.js";
10
+ } from "./chunk-LAXMH7JY.js";
11
11
  import {
12
12
  asTrimmedLowercaseString
13
13
  } from "./chunk-QSJ3HFEF.js";
14
14
  import {
15
15
  BUILTIN_NOLO_AGENT_KEY
16
- } from "./chunk-DWQNDGO7.js";
16
+ } from "./chunk-ZJH3LKEW.js";
17
17
  import {
18
18
  asyncThunkCreator,
19
19
  buildCreateSlice,
@@ -21,12 +21,12 @@ import {
21
21
  createAsyncThunk,
22
22
  createSelector,
23
23
  selectIdentityUserId
24
- } from "./chunk-ZFTCLBEX.js";
24
+ } from "./chunk-2IJAKBK2.js";
25
25
  import {
26
26
  getAllServers,
27
27
  getIsDesktopApp,
28
28
  isProduction
29
- } from "./chunk-R5V5G73M.js";
29
+ } from "./chunk-5RDLGLAP.js";
30
30
  import {
31
31
  SERVERS
32
32
  } from "./chunk-LCBAMY2M.js";
@@ -4,14 +4,14 @@ import {
4
4
  providerHttpFailure,
5
5
  readSseFrames,
6
6
  throwIfChatCompletionStreamFailed
7
- } from "./chunk-MEUZFIAJ.js";
7
+ } from "./chunk-XORE26Z4.js";
8
8
  import {
9
9
  sanitizeForOutbound
10
10
  } from "./chunk-T27IEBNQ.js";
11
11
  import {
12
12
  parseToolArgumentsJson,
13
13
  resolveHistoricalToolContentCap
14
- } from "./chunk-KW47OSRJ.js";
14
+ } from "./chunk-VQ4QPCKE.js";
15
15
  import {
16
16
  createThinkParserState,
17
17
  createToolCallAccumulator,
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  requiresBareImageUrl,
24
24
  toBareImageUrlMessages
25
- } from "./chunk-7CD24PU4.js";
25
+ } from "./chunk-OIW2RJ74.js";
26
26
  import {
27
27
  shouldStripReasoningContentForOutbound,
28
28
  toOpenAiCompatibleMessages
@@ -30,7 +30,7 @@ import {
30
30
  import {
31
31
  buildProviderAuthHeaders,
32
32
  buildProviderExecutionPlan
33
- } from "./chunk-XD5NQEOH.js";
33
+ } from "./chunk-WTPC3XD4.js";
34
34
  import {
35
35
  buildDialogFallbackTitleFromUserInput
36
36
  } from "./chunk-2MBTWINN.js";
@@ -39,7 +39,7 @@ import {
39
39
  buildNoloWorkspaceCommandArgs,
40
40
  noloStringArg,
41
41
  parseNoloWorkspaceToolArguments
42
- } from "./chunk-OYK7PA5U.js";
42
+ } from "./chunk-CYRMUTGB.js";
43
43
  import {
44
44
  toErrorMessage
45
45
  } from "./chunk-HNMXYYJR.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildAgentRuntimeAgentLookupKeys,
3
3
  shouldFetchAgentRuntimeRecordRemotely
4
- } from "./chunk-OYK7PA5U.js";
4
+ } from "./chunk-CYRMUTGB.js";
5
5
 
6
6
  // packages/cli/client/localAgentRecords.ts
7
7
  var buildLocalAgentLookupKeys = buildAgentRuntimeAgentLookupKeys;
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  sortSafeAgentSummaries,
19
19
  toSafeAgentSummary
20
- } from "./chunk-UTQZ73QQ.js";
20
+ } from "./chunk-2HQ4OG6N.js";
21
21
  import {
22
22
  getUserDataItemTimestamp,
23
23
  mergeAndDedupUserData
@@ -43,19 +43,19 @@ import {
43
43
  resolveNoloDialogInput,
44
44
  toolRunUpdated,
45
45
  verifyNoloDialogSubjectRefQuery
46
- } from "./chunk-OYK7PA5U.js";
46
+ } from "./chunk-CYRMUTGB.js";
47
47
  import {
48
48
  createDocState
49
- } from "./chunk-FS5TTXPS.js";
49
+ } from "./chunk-6JH2DF7J.js";
50
50
  import {
51
51
  setDialogExtraReferencesAction
52
- } from "./chunk-Q24P6TUS.js";
52
+ } from "./chunk-43EPBPZ2.js";
53
53
  import {
54
54
  readDocFunc,
55
55
  readDocFunctionSchema,
56
56
  readPageFunc,
57
57
  readPageFunctionSchema
58
- } from "./chunk-G5JHHUAK.js";
58
+ } from "./chunk-F3MP7CP6.js";
59
59
  import {
60
60
  slateToSimplifiedMarkdown
61
61
  } from "./chunk-SWYMCHM7.js";
@@ -69,7 +69,7 @@ import {
69
69
  } from "./chunk-44HACRCK.js";
70
70
  import {
71
71
  createDialogAction
72
- } from "./chunk-QLV2GKU5.js";
72
+ } from "./chunk-T4X4GCYT.js";
73
73
  import {
74
74
  markdownToSlate
75
75
  } from "./chunk-3LY4F7SV.js";
@@ -77,39 +77,40 @@ import {
77
77
  addCategory,
78
78
  addContentToSpace,
79
79
  addRow,
80
- buildDatabaseFileContentUrl,
81
80
  createTable,
82
81
  deleteDbKey,
83
82
  deleteSpace,
84
83
  fetchUserData,
85
84
  i18nBaseConfig,
86
- incrementFailedSteps,
87
- incrementStepsExecuted,
88
85
  initReactI18next,
89
86
  instance,
90
87
  loadTableRows,
88
+ selectAllMemberSpaces,
89
+ selectCurrentSpaceId,
90
+ updateContentCategory,
91
+ updateContentTitle
92
+ } from "./chunk-YLC42PIE.js";
93
+ import {
94
+ buildDatabaseFileContentUrl,
95
+ incrementFailedSteps,
96
+ incrementStepsExecuted,
91
97
  normalizeAppRouteId,
92
98
  resolveDialogRuntimeAgentKey,
93
- selectAllMemberSpaces,
94
99
  selectAllMsgs,
95
100
  selectCurrentDialogConfig,
96
101
  selectCurrentDialogId,
97
- selectCurrentSpaceId,
98
- selectCurrentUserBalance,
99
102
  selectMsgById,
100
103
  setWorkflow,
101
104
  uiAskChoiceFunc,
102
105
  uiAskChoiceFunctionSchema,
103
- updateContentCategory,
104
- updateContentTitle,
105
106
  updateStep
106
- } from "./chunk-THTAR67C.js";
107
+ } from "./chunk-LEVCXTDN.js";
107
108
  import {
108
109
  createAgent,
109
110
  runLlm,
110
111
  streamAgentChatTurn,
111
112
  updateAgent
112
- } from "./chunk-GAGUBI42.js";
113
+ } from "./chunk-4F77PJBR.js";
113
114
  import {
114
115
  toErrorMessage
115
116
  } from "./chunk-HNMXYYJR.js";
@@ -125,10 +126,10 @@ import {
125
126
  addContentAction,
126
127
  createSpaceKey,
127
128
  normalizeSpaceId
128
- } from "./chunk-YLADSPDU.js";
129
+ } from "./chunk-V54H24CQ.js";
129
130
  import {
130
131
  DEFAULT_MODEL
131
- } from "./chunk-VSTUQGLT.js";
132
+ } from "./chunk-EIQDGAAE.js";
132
133
  import {
133
134
  slateToRenderMarkdown
134
135
  } from "./chunk-63W5N6P3.js";
@@ -137,14 +138,14 @@ import {
137
138
  } from "./chunk-VF4K2QE6.js";
138
139
  import {
139
140
  shareResourceAction
140
- } from "./chunk-DKRT67FG.js";
141
+ } from "./chunk-KGEVMUMI.js";
141
142
  import {
142
143
  AGENT_UPDATE_FIELD_NAMES,
143
144
  normalizeAgentUpdateFieldList,
144
145
  selectAutoApproveSelfUpdateFields,
145
146
  selectCurrentServer,
146
147
  selectSyncServers
147
- } from "./chunk-446VANPP.js";
148
+ } from "./chunk-G5GVZAXF.js";
148
149
  import {
149
150
  asRecordOrEmpty
150
151
  } from "./chunk-KX6YBIHG.js";
@@ -156,13 +157,13 @@ import {
156
157
  selectById,
157
158
  toTimestampMs,
158
159
  write
159
- } from "./chunk-A4JDTA5T.js";
160
+ } from "./chunk-LAXMH7JY.js";
160
161
  import {
161
162
  asTrimmedLowercaseString
162
163
  } from "./chunk-QSJ3HFEF.js";
163
164
  import {
164
165
  readAction
165
- } from "./chunk-DWQNDGO7.js";
166
+ } from "./chunk-ZJH3LKEW.js";
166
167
  import {
167
168
  extractCustomId
168
169
  } from "./chunk-TOW4E763.js";
@@ -171,12 +172,13 @@ import {
171
172
  getRuntimeServerContext,
172
173
  noloWriteRequest,
173
174
  selectIdentityToken,
175
+ selectIdentityUserBalance,
174
176
  selectIdentityUserId,
175
177
  selectRuntimeSnapshot
176
- } from "./chunk-ZFTCLBEX.js";
178
+ } from "./chunk-2IJAKBK2.js";
177
179
  import {
178
180
  isAbortError
179
- } from "./chunk-R5V5G73M.js";
181
+ } from "./chunk-5RDLGLAP.js";
180
182
  import {
181
183
  API_ENDPOINTS
182
184
  } from "./chunk-LCBAMY2M.js";
@@ -10182,7 +10184,7 @@ var appBuilder_locale_default = {
10182
10184
  }
10183
10185
  };
10184
10186
 
10185
- // packages/auth/gptProTier.ts
10187
+ // packages/core/gptProTier.ts
10186
10188
  var ADVANCED_FEATURE_MIN_BALANCE = 19;
10187
10189
  var GPT_PRO_REQUIRED_RECHARGE_AMOUNT = 199;
10188
10190
  function isGptProModel(provider, model) {
@@ -11478,7 +11480,7 @@ var buildFormDataFromArgs = async (args) => {
11478
11480
  const trimmedModel = toTrimmedString(model);
11479
11481
  const trimmedProvider = toTrimmedString(provider);
11480
11482
  const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
11481
- const { getModelPricing } = await import("./getPricing-XQYSSVV6.js");
11483
+ const { getModelPricing } = await import("./getPricing-67TQVKFV.js");
11482
11484
  const normalizedTools = tools ?? [];
11483
11485
  const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
11484
11486
  const formData = {
@@ -11539,7 +11541,7 @@ var findSpaceConfig = (nameOrId, allSpaces) => {
11539
11541
  async function createAgentToolFunc(args, thunkApi) {
11540
11542
  const state = thunkApi.getState();
11541
11543
  const currentUserId = selectIdentityUserId(state);
11542
- const currentBalance = selectCurrentUserBalance(state);
11544
+ const currentBalance = selectIdentityUserBalance(state);
11543
11545
  const allSpaces = selectAllMemberSpaces(state);
11544
11546
  if (!currentUserId) {
11545
11547
  throw new Error("\u521B\u5EFA Agent \u5931\u8D25\uFF1A\u5F53\u524D\u672A\u767B\u5F55\u6216\u7F3A\u5C11 userId\u3002");
@@ -13918,7 +13920,7 @@ async function deleteDialogsFunc(args, thunkApi) {
13918
13920
  const deletedDialogIds = [];
13919
13921
  const deletedDialogKeys = [];
13920
13922
  const failures = [];
13921
- const { deleteDialog } = await import("./dialogSlice-CFDECXEU.js");
13923
+ const { deleteDialog } = await import("./dialogSlice-EKKVFKBJ.js");
13922
13924
  for (const target of targets) {
13923
13925
  try {
13924
13926
  await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
@@ -14187,7 +14189,7 @@ var readSkillDocFunctionSchema = {
14187
14189
  }
14188
14190
  };
14189
14191
  async function readSkillDocFunc(args, thunkApi) {
14190
- const { buildReadDocResult } = await import("./readDocTool-EYDMVRBL.js");
14192
+ const { buildReadDocResult } = await import("./readDocTool-MXM3T6PE.js");
14191
14193
  const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
14192
14194
  if (typeof id !== "string" || !id.trim()) {
14193
14195
  throw new Error("readSkillDoc requires id or doc.");
@@ -16747,7 +16749,12 @@ var inlineCssUrlAssets = async (args) => {
16747
16749
  const assetUrl = new URL(rawRef, args.cssUrl).toString();
16748
16750
  if (!replacements.has(rawRef)) {
16749
16751
  const bytes = await fetchBytes(assetUrl, args.fetchImpl);
16750
- const base64 = Buffer.from(bytes).toString("base64");
16752
+ const chunkSize = 32766;
16753
+ let base64 = "";
16754
+ const u8 = new Uint8Array(bytes);
16755
+ for (let i = 0; i < u8.length; i += chunkSize) {
16756
+ base64 += btoa(String.fromCharCode(...u8.subarray(i, i + chunkSize)));
16757
+ }
16751
16758
  replacements.set(
16752
16759
  rawRef,
16753
16760
  `data:${guessMimeType(assetUrl)};base64,${base64}`
@@ -19637,7 +19644,7 @@ var selectUserIdFromState = (state) => typeof state?.auth?.currentUser?.userId =
19637
19644
  var selectCurrentServerFromState = (state) => typeof state?.settings?.currentServer === "string" ? state.settings.currentServer : null;
19638
19645
  async function addImageContentToSpace(input) {
19639
19646
  const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
19640
- const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-Z5S5ZQ7I.js")).addContentAction;
19647
+ const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-NCURJ6PK.js")).addContentAction;
19641
19648
  await addContentAction2(
19642
19649
  {
19643
19650
  spaceId: input.spaceId,
@@ -25663,7 +25670,7 @@ async function updateDocFunc(args, thunkApi) {
25663
25670
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
25664
25671
  };
25665
25672
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
25666
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-MZZWJM4F.js");
25673
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-V7EJS4PX.js");
25667
25674
  if (getDocState().pageKey === id) {
25668
25675
  applyExternalDocUpdate({
25669
25676
  slateData: finalSlateData,
@@ -25688,7 +25695,7 @@ async function updateDocFunc(args, thunkApi) {
25688
25695
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
25689
25696
  async function dispatchSetSettings(thunkApi, changes) {
25690
25697
  const injectedSetSettings = thunkApi?.extra?.setSettings;
25691
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-JKKV2T7O.js")).setSettings;
25698
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-4M37TN7V.js")).setSettings;
25692
25699
  await thunkApi.dispatch(setSettings(changes)).unwrap();
25693
25700
  }
25694
25701
  var updateUserPreferenceProfileFunctionSchema = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  trimTrailingSlash
3
- } from "./chunk-XD5NQEOH.js";
3
+ } from "./chunk-WTPC3XD4.js";
4
4
  import {
5
5
  toErrorMessage
6
6
  } from "./chunk-HNMXYYJR.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-G3SUCT4W.js";
16
16
 
17
17
  // packages/agent-runtime/antigravityOAuth.ts
18
- var decodeBase64 = (s) => Buffer.from(s, "base64").toString("utf8");
18
+ var decodeBase64 = (s) => typeof Buffer !== "undefined" ? Buffer.from(s, "base64").toString("utf8") : typeof atob === "function" ? atob(s) : s;
19
19
  var ANTIGRAVITY_CLIENT_ID = decodeBase64(
20
20
  "MTA3MTAwNjA2MDU5MS10bWhzc2luMmgyMWxjcmUyMzV2dG9sb2poNGc0MDNlcC5hcHBzLmdvb2dsZXVzZXJjb250ZW50LmNvbQ=="
21
21
  );
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  selectCurrentServer,
3
3
  selectRemoteServers
4
- } from "./chunk-446VANPP.js";
4
+ } from "./chunk-G5GVZAXF.js";
5
5
  import {
6
6
  noloDeleteRequest,
7
7
  noloWriteRequest,
8
8
  selectIdentityUser,
9
9
  selectIdentityUserId
10
- } from "./chunk-ZFTCLBEX.js";
10
+ } from "./chunk-2IJAKBK2.js";
11
11
  import {
12
12
  normalizeTimeFields
13
- } from "./chunk-R5V5G73M.js";
13
+ } from "./chunk-5RDLGLAP.js";
14
14
  import {
15
15
  createUserKey,
16
16
  extractAgentInfo,
@@ -2,12 +2,12 @@ import {
2
2
  loadFileFromIndexedDb,
3
3
  removeAction,
4
4
  saveFileToIndexedDb
5
- } from "./chunk-BOL2D2JW.js";
5
+ } from "./chunk-ZJ2WITOO.js";
6
6
  import {
7
7
  readAction,
8
8
  readRequestManager,
9
9
  resolveAgentReadServers
10
- } from "./chunk-DWQNDGO7.js";
10
+ } from "./chunk-ZJH3LKEW.js";
11
11
  import {
12
12
  asyncThunkCreator,
13
13
  buildCreateSlice,
@@ -27,13 +27,13 @@ import {
27
27
  shouldReplaceLocalWithRemoteRecord,
28
28
  shouldReplicateLocalRecord,
29
29
  uploadToCurrentServer
30
- } from "./chunk-ZFTCLBEX.js";
30
+ } from "./chunk-2IJAKBK2.js";
31
31
  import {
32
32
  fetchFromClientDb,
33
33
  fetchFromServer,
34
34
  logger,
35
35
  normalizeTimeFields
36
- } from "./chunk-R5V5G73M.js";
36
+ } from "./chunk-5RDLGLAP.js";
37
37
  import {
38
38
  API_ENDPOINTS
39
39
  } from "./chunk-LCBAMY2M.js";
@@ -704,7 +704,7 @@ var dbSlice = createSliceWithThunks({
704
704
  // 动态 import 在调用期解析,避开 TDZ/求值顺序问题(同下方 share)。
705
705
  read: create.asyncThunk(
706
706
  async (payload, thunkApi) => {
707
- const { readAction: readAction2 } = await import("./read-QK7ZRX6G.js");
707
+ const { readAction: readAction2 } = await import("./read-64OQDO3I.js");
708
708
  return readAction2(payload, thunkApi);
709
709
  },
710
710
  {
@@ -778,7 +778,7 @@ var dbSlice = createSliceWithThunks({
778
778
  // 这里改成动态 import,运行期才解析,彻底断开这条边。
779
779
  share: create.asyncThunk(
780
780
  async (config, thunkApi) => {
781
- const { shareResourceAction } = await import("./action-FENWPT3C.js");
781
+ const { shareResourceAction } = await import("./action-HI3VRQLP.js");
782
782
  return shareResourceAction(config, thunkApi);
783
783
  }
784
784
  ),