nolo-cli 0.30.0-alpha.2 → 0.30.0-alpha.4

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 (93) hide show
  1. package/{_executeModel-VBHHG7LT.js → _executeModel-7KWY4TOT.js} +27 -27
  2. package/{action-FENWPT3C.js → action-PABHQA2V.js} +6 -6
  3. package/{addContentAction-Z5S5ZQ7I.js → addContentAction-QOCQY2OK.js} +5 -5
  4. package/{addDialogAgentAction-VUNVD2XR.js → addDialogAgentAction-HQKBYZZM.js} +4 -4
  5. package/{agentDeleteCommand-LLGZXUYJ.js → agentDeleteCommand-K56FLXHX.js} +21 -21
  6. package/{agentEmailCommands-LC2FPN6G.js → agentEmailCommands-4HTNF3NM.js} +32 -32
  7. package/{agentListCommands-A6OBQ3QX.js → agentListCommands-2AJIJEK3.js} +23 -23
  8. package/{agentMachineCommands-4O4Q5B5X.js → agentMachineCommands-CTO3ICU7.js} +21 -21
  9. package/{agentRecordCommands-W22RIQRV.js → agentRecordCommands-QMD3GDVM.js} +31 -31
  10. package/{agentRunCommand-V4OBU4FB.js → agentRunCommand-VW7DXSDX.js} +31 -31
  11. package/{agentRuntimeLocal-I57YSGH4.js → agentRuntimeLocal-7P7RPLWZ.js} +18 -18
  12. package/{agentSlice-3ZHY7RAO.js → agentSlice-4ZVASIFY.js} +5 -5
  13. package/{appDeleteCommands-DJJF466K.js → appDeleteCommands-3V5H4PZP.js} +22 -22
  14. package/{appDeployCommands-WJZGIOEZ.js → appDeployCommands-CP2FN4XQ.js} +22 -22
  15. package/{appDeployStatusCommands-ICYXUJNO.js → appDeployStatusCommands-4BJ2IMW3.js} +22 -22
  16. package/{appGetCommands-UOCWYJPV.js → appGetCommands-T6YXMZKL.js} +22 -22
  17. package/{appListCommands-EOKWTXPW.js → appListCommands-TRN2EUCV.js} +22 -22
  18. package/{authCommand-H5KE7K7K.js → authCommand-RR5LAYSW.js} +5 -5
  19. package/{chunk-Q24P6TUS.js → chunk-2FNQS3NE.js} +1 -1
  20. package/{chunk-KW47OSRJ.js → chunk-2NKRHXDO.js} +45 -67
  21. package/{chunk-TJYWZ3LO.js → chunk-2NYIVLAY.js} +1 -1
  22. package/{chunk-2XM5KUNE.js → chunk-3MUUQJXW.js} +2 -2
  23. package/{chunk-MMCVBEAD.js → chunk-3NHLRJTZ.js} +25 -23
  24. package/{chunk-3RIWR23B.js → chunk-4VJZODXQ.js} +1 -1
  25. package/{chunk-GVKTKT3O.js → chunk-5GDLMDLY.js} +3 -3
  26. package/{chunk-DKRT67FG.js → chunk-7NE6SSNO.js} +2 -2
  27. package/{chunk-A4JDTA5T.js → chunk-AKF3R6YT.js} +5 -5
  28. package/{chunk-446VANPP.js → chunk-B2F42PFJ.js} +3 -3
  29. package/{chunk-HI7QZNWX.js → chunk-BGY4FZB4.js} +4 -4
  30. package/{chunk-OYK7PA5U.js → chunk-BNM4PN7V.js} +6 -6
  31. package/{chunk-IZ3CBMD5.js → chunk-BPB4MFE5.js} +3 -3
  32. package/{chunk-56IUA7RU.js → chunk-CYSB5B6O.js} +1 -1
  33. package/{chunk-VSTUQGLT.js → chunk-EIQDGAAE.js} +147 -1
  34. package/{chunk-W2YKDXT7.js → chunk-FVKMFU3A.js} +1 -1
  35. package/{chunk-HLG6GAUD.js → chunk-FXCLTQEO.js} +1 -1
  36. package/{chunk-UKC5HU2C.js → chunk-GR4ULAGB.js} +5 -5
  37. package/{chunk-BOL2D2JW.js → chunk-H42QD4SH.js} +1 -1
  38. package/{chunk-FS5TTXPS.js → chunk-H5UXA6OF.js} +3 -3
  39. package/{chunk-SWOTB2TX.js → chunk-INRBVD6S.js} +24 -24
  40. package/{chunk-CV6I4HBA.js → chunk-LWP3HB56.js} +1 -1
  41. package/{chunk-YLADSPDU.js → chunk-LZSOKNT7.js} +2 -2
  42. package/{chunk-DWQNDGO7.js → chunk-MBZE75JH.js} +1 -1
  43. package/{chunk-GAGUBI42.js → chunk-N3F3I7CF.js} +5 -5
  44. package/{chunk-THTAR67C.js → chunk-NCPP67IY.js} +25 -27
  45. package/{chunk-7CD24PU4.js → chunk-OWO7RJJP.js} +5 -5
  46. package/{chunk-YWGSCF37.js → chunk-PACNSC37.js} +1 -1
  47. package/{chunk-66O5MZYH.js → chunk-QMGLMEEF.js} +1 -1
  48. package/{chunk-ZFTCLBEX.js → chunk-REBLMWZW.js} +2 -0
  49. package/{chunk-G5JHHUAK.js → chunk-S45OJAFJ.js} +1 -1
  50. package/{chunk-DI6MXJK5.js → chunk-TNAX4WSO.js} +12 -12
  51. package/{chunk-UTQZ73QQ.js → chunk-VNQ4HVEE.js} +1 -1
  52. package/{chunk-G6VITLCZ.js → chunk-VQRRTI4N.js} +2 -2
  53. package/{chunk-KWKD3BCC.js → chunk-VTADMA7F.js} +11 -11
  54. package/{chunk-DCWBP2O7.js → chunk-W53SDRNA.js} +9 -9
  55. package/{chunk-T3Y5EMJS.js → chunk-WJD5RNVB.js} +1 -1
  56. package/{chunk-XD5NQEOH.js → chunk-WTPC3XD4.js} +1 -1
  57. package/{chunk-QLV2GKU5.js → chunk-WZ7E2MTX.js} +3 -3
  58. package/{chunk-MEUZFIAJ.js → chunk-XORE26Z4.js} +1 -1
  59. package/{chunk-SZ5CBYMZ.js → chunk-Y4C6CIWP.js} +2 -2
  60. package/{chunk-L3VQOVKK.js → chunk-ZSMZGOZ2.js} +3 -3
  61. package/{createAgentAutomationAction-3GMH6ORX.js → createAgentAutomationAction-3CG7CZF2.js} +10 -10
  62. package/{createDialogAction-R5MCL4RE.js → createDialogAction-OPFOUFO7.js} +11 -11
  63. package/{createPageAction-QYTG656R.js → createPageAction-Y54TU4LK.js} +10 -10
  64. package/{dbSlice-OBV7VFCF.js → dbSlice-YGWTAMGP.js} +4 -4
  65. package/{deleteFile-AC45HYSM.js → deleteFile-6BPXHM5G.js} +2 -2
  66. package/{dialogCommands-NUQGIXVZ.js → dialogCommands-KUOPTTW7.js} +22 -22
  67. package/{dialogSlice-CFDECXEU.js → dialogSlice-ZWPGG6CW.js} +10 -10
  68. package/{docCreateCommands-UNFCXB5N.js → docCreateCommands-NWT3CF6Z.js} +21 -21
  69. package/{docDeleteCommands-NG5IVKE5.js → docDeleteCommands-N6Y2GBXZ.js} +22 -22
  70. package/{docReadCommands-6J7MUUX6.js → docReadCommands-WMUAO7NP.js} +21 -21
  71. package/{docStore-MZZWJM4F.js → docStore-MMY7W6LI.js} +11 -11
  72. package/{docUpdateCommands-6AW3VZOX.js → docUpdateCommands-BJ6RXO6N.js} +21 -21
  73. package/{getPricing-XQYSSVV6.js → getPricing-67TQVKFV.js} +2 -2
  74. package/{handleSendMessageAction-IU2QNTLM.js → handleSendMessageAction-4E2363XK.js} +10 -10
  75. package/index.js +47 -47
  76. package/{machineCommands-Z2QEWTHZ.js → machineCommands-G3XNZ4K7.js} +30 -30
  77. package/{machineWsRunDispatch-SJTYHZHN.js → machineWsRunDispatch-TDXCER6V.js} +30 -30
  78. package/package.json +1 -1
  79. package/{read-QK7ZRX6G.js → read-QUUPWYTV.js} +2 -2
  80. package/{readDocTool-EYDMVRBL.js → readDocTool-J6U623EK.js} +1 -1
  81. package/{readlineWorkspace-BGKPABK4.js → readlineWorkspace-XX2N2R76.js} +34 -34
  82. package/{removeDialogAgentAction-TBW3UZJW.js → removeDialogAgentAction-UMXNPWYC.js} +6 -6
  83. package/{runAgentClientLoop-N3YDLTMS.js → runAgentClientLoop-TJLJMHWD.js} +23 -23
  84. package/{setDialogExtraReferencesAction-Q3ANF2NR.js → setDialogExtraReferencesAction-A3MC5BRN.js} +5 -5
  85. package/{setPrimaryDialogAgentAction-FQ5R3EFJ.js → setPrimaryDialogAgentAction-43JNNAH4.js} +6 -6
  86. package/{settingSlice-JKKV2T7O.js → settingSlice-XIATPDJH.js} +5 -5
  87. package/{spaceCommands-R6AEQNLG.js → spaceCommands-DFLZCOPH.js} +21 -21
  88. package/{spaceSlice-MCH7RLLP.js → spaceSlice-UL7KEYOZ.js} +10 -10
  89. package/{streamAgentChatTurn-Q4U2CVMI.js → streamAgentChatTurn-MOIP2RPM.js} +26 -26
  90. package/{switchDialogAgentAction-QQGVE4SL.js → switchDialogAgentAction-K42FPQXR.js} +4 -4
  91. package/{tools-Y3UBLLYW.js → tools-NTOMB4LH.js} +18 -18
  92. package/{tuiSummaryLlmCaller-4474IBTI.js → tuiSummaryLlmCaller-YQBN5IMG.js} +3 -3
  93. package/{updateDialogTitleAction-3J7GH67I.js → updateDialogTitleAction-IHHHSMZW.js} +10 -10
@@ -2,12 +2,12 @@ import {
2
2
  loadFileFromIndexedDb,
3
3
  removeAction,
4
4
  saveFileToIndexedDb
5
- } from "./chunk-BOL2D2JW.js";
5
+ } from "./chunk-H42QD4SH.js";
6
6
  import {
7
7
  readAction,
8
8
  readRequestManager,
9
9
  resolveAgentReadServers
10
- } from "./chunk-DWQNDGO7.js";
10
+ } from "./chunk-MBZE75JH.js";
11
11
  import {
12
12
  asyncThunkCreator,
13
13
  buildCreateSlice,
@@ -27,7 +27,7 @@ import {
27
27
  shouldReplaceLocalWithRemoteRecord,
28
28
  shouldReplicateLocalRecord,
29
29
  uploadToCurrentServer
30
- } from "./chunk-ZFTCLBEX.js";
30
+ } from "./chunk-REBLMWZW.js";
31
31
  import {
32
32
  fetchFromClientDb,
33
33
  fetchFromServer,
@@ -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-QUUPWYTV.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-PABHQA2V.js");
782
782
  return shareResourceAction(config, thunkApi);
783
783
  }
784
784
  ),
@@ -7,13 +7,13 @@ import {
7
7
  toTimestampMs,
8
8
  upsert,
9
9
  write
10
- } from "./chunk-A4JDTA5T.js";
10
+ } from "./chunk-AKF3R6YT.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-MBZE75JH.js";
17
17
  import {
18
18
  asyncThunkCreator,
19
19
  buildCreateSlice,
@@ -21,7 +21,7 @@ import {
21
21
  createAsyncThunk,
22
22
  createSelector,
23
23
  selectIdentityUserId
24
- } from "./chunk-ZFTCLBEX.js";
24
+ } from "./chunk-REBLMWZW.js";
25
25
  import {
26
26
  getAllServers,
27
27
  getIsDesktopApp,
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-MMCVBEAD.js";
4
+ } from "./chunk-3NHLRJTZ.js";
5
5
  import {
6
6
  runLocalAgentTurn
7
- } from "./chunk-KW47OSRJ.js";
7
+ } from "./chunk-2NKRHXDO.js";
8
8
  import {
9
9
  clipMultilineText
10
- } from "./chunk-OYK7PA5U.js";
10
+ } from "./chunk-BNM4PN7V.js";
11
11
  import {
12
12
  resolveLocalRuntimeEnvFromPolicy
13
- } from "./chunk-GAGUBI42.js";
13
+ } from "./chunk-N3F3I7CF.js";
14
14
  import {
15
15
  toErrorMessage
16
16
  } from "./chunk-HNMXYYJR.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-DCDL3GC4.js";
7
7
  import {
8
8
  fetchAndCacheTableRows
9
- } from "./chunk-THTAR67C.js";
9
+ } from "./chunk-NCPP67IY.js";
10
10
  import {
11
11
  toErrorMessage
12
12
  } from "./chunk-HNMXYYJR.js";
@@ -15,13 +15,13 @@ import {
15
15
  } from "./chunk-3ASDTTEI.js";
16
16
  import {
17
17
  nolotusId
18
- } from "./chunk-446VANPP.js";
18
+ } from "./chunk-B2F42PFJ.js";
19
19
  import {
20
20
  asRecordOrEmpty
21
21
  } from "./chunk-KX6YBIHG.js";
22
22
  import {
23
23
  DEFAULT_CODE_PLANNER_EXECUTOR_CANDIDATE_KEYS
24
- } from "./chunk-DWQNDGO7.js";
24
+ } from "./chunk-MBZE75JH.js";
25
25
  import {
26
26
  isOwnedAgentKey,
27
27
  ownedAgentKey,
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-TOW4E763.js";
30
30
  import {
31
31
  createAsyncThunk
32
- } from "./chunk-ZFTCLBEX.js";
32
+ } from "./chunk-REBLMWZW.js";
33
33
  import {
34
34
  asOptionalFiniteNumber
35
35
  } from "./chunk-WWC7I6TA.js";
@@ -1621,7 +1621,7 @@ var executeToolRun = createAsyncThunk(
1621
1621
  if (!executionInput) {
1622
1622
  throw new Error(`ToolRun ${id} has no input to execute with.`);
1623
1623
  }
1624
- const { findToolExecutor } = await import("./tools-Y3UBLLYW.js");
1624
+ const { findToolExecutor } = await import("./tools-NTOMB4LH.js");
1625
1625
  const { executor } = findToolExecutor(run.toolName);
1626
1626
  toolRunStarted({
1627
1627
  id: run.id,
@@ -1645,7 +1645,7 @@ var executeToolRun = createAsyncThunk(
1645
1645
  const latestState = thunkApi.getState();
1646
1646
  const userId = latestState.auth?.currentUser?.userId;
1647
1647
  if (userId) {
1648
- const { fetchUserSpaceMemberships } = await import("./spaceSlice-MCH7RLLP.js");
1648
+ const { fetchUserSpaceMemberships } = await import("./spaceSlice-UL7KEYOZ.js");
1649
1649
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
1650
1650
  }
1651
1651
  }
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  selectCurrentServer
3
- } from "./chunk-446VANPP.js";
3
+ } from "./chunk-B2F42PFJ.js";
4
4
  import {
5
5
  patch
6
- } from "./chunk-A4JDTA5T.js";
6
+ } from "./chunk-AKF3R6YT.js";
7
7
  import {
8
8
  selectIdentityToken
9
- } from "./chunk-ZFTCLBEX.js";
9
+ } from "./chunk-REBLMWZW.js";
10
10
  import {
11
11
  getIsDesktopApp
12
12
  } from "./chunk-R5V5G73M.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildLocalAgentLookupKeys,
3
3
  shouldReadAgentKeyRemotely
4
- } from "./chunk-66O5MZYH.js";
4
+ } from "./chunk-QMGLMEEF.js";
5
5
  import {
6
6
  resolveCliAgentKeyInput
7
7
  } from "./chunk-K6QEHQZ3.js";
@@ -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
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  i18n_default,
3
3
  toolRegistry
4
- } from "./chunk-SWOTB2TX.js";
4
+ } from "./chunk-INRBVD6S.js";
5
5
  import {
6
6
  isNoloHostedProvider
7
7
  } from "./chunk-CAENRKNJ.js";
@@ -2,7 +2,7 @@ import {
2
2
  deleteDbRecord,
3
3
  queryUserRecords,
4
4
  readDbRecord
5
- } from "./chunk-56IUA7RU.js";
5
+ } from "./chunk-CYSB5B6O.js";
6
6
  import {
7
7
  mergeAndDedupUserData
8
8
  } from "./chunk-KQHGZWSV.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-2NKRHXDO.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-OWO7RJJP.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-BNM4PN7V.js";
43
43
  import {
44
44
  toErrorMessage
45
45
  } from "./chunk-HNMXYYJR.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getRuntimeServerContext,
3
3
  scheduleDeleteReplication
4
- } from "./chunk-ZFTCLBEX.js";
4
+ } from "./chunk-REBLMWZW.js";
5
5
  import {
6
6
  fetchFromClientDb
7
7
  } from "./chunk-R5V5G73M.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  updateContentTitle
3
- } from "./chunk-THTAR67C.js";
3
+ } from "./chunk-NCPP67IY.js";
4
4
  import {
5
5
  require_date_fns
6
6
  } from "./chunk-M76ECQRD.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  patch,
15
15
  readAndWait
16
- } from "./chunk-A4JDTA5T.js";
16
+ } from "./chunk-AKF3R6YT.js";
17
17
  import {
18
18
  asOptionalTrimmedString
19
19
  } from "./chunk-G3SUCT4W.js";
@@ -367,7 +367,7 @@ async function saveDocState(arg, { dispatch, getState }) {
367
367
  }
368
368
  }
369
369
  async function createDocState(args, thunkApi) {
370
- const { createPageAction } = await import("./createPageAction-QYTG656R.js");
370
+ const { createPageAction } = await import("./createPageAction-Y54TU4LK.js");
371
371
  return createPageAction(args, thunkApi);
372
372
  }
373
373
  function subscribe(listener) {
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  sortSafeAgentSummaries,
19
19
  toSafeAgentSummary
20
- } from "./chunk-UTQZ73QQ.js";
20
+ } from "./chunk-VNQ4HVEE.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-BNM4PN7V.js";
47
47
  import {
48
48
  createDocState
49
- } from "./chunk-FS5TTXPS.js";
49
+ } from "./chunk-H5UXA6OF.js";
50
50
  import {
51
51
  setDialogExtraReferencesAction
52
- } from "./chunk-Q24P6TUS.js";
52
+ } from "./chunk-2FNQS3NE.js";
53
53
  import {
54
54
  readDocFunc,
55
55
  readDocFunctionSchema,
56
56
  readPageFunc,
57
57
  readPageFunctionSchema
58
- } from "./chunk-G5JHHUAK.js";
58
+ } from "./chunk-S45OJAFJ.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-WZ7E2MTX.js";
73
73
  import {
74
74
  markdownToSlate
75
75
  } from "./chunk-3LY4F7SV.js";
@@ -95,7 +95,6 @@ import {
95
95
  selectCurrentDialogConfig,
96
96
  selectCurrentDialogId,
97
97
  selectCurrentSpaceId,
98
- selectCurrentUserBalance,
99
98
  selectMsgById,
100
99
  setWorkflow,
101
100
  uiAskChoiceFunc,
@@ -103,13 +102,13 @@ import {
103
102
  updateContentCategory,
104
103
  updateContentTitle,
105
104
  updateStep
106
- } from "./chunk-THTAR67C.js";
105
+ } from "./chunk-NCPP67IY.js";
107
106
  import {
108
107
  createAgent,
109
108
  runLlm,
110
109
  streamAgentChatTurn,
111
110
  updateAgent
112
- } from "./chunk-GAGUBI42.js";
111
+ } from "./chunk-N3F3I7CF.js";
113
112
  import {
114
113
  toErrorMessage
115
114
  } from "./chunk-HNMXYYJR.js";
@@ -125,10 +124,10 @@ import {
125
124
  addContentAction,
126
125
  createSpaceKey,
127
126
  normalizeSpaceId
128
- } from "./chunk-YLADSPDU.js";
127
+ } from "./chunk-LZSOKNT7.js";
129
128
  import {
130
129
  DEFAULT_MODEL
131
- } from "./chunk-VSTUQGLT.js";
130
+ } from "./chunk-EIQDGAAE.js";
132
131
  import {
133
132
  slateToRenderMarkdown
134
133
  } from "./chunk-63W5N6P3.js";
@@ -137,14 +136,14 @@ import {
137
136
  } from "./chunk-VF4K2QE6.js";
138
137
  import {
139
138
  shareResourceAction
140
- } from "./chunk-DKRT67FG.js";
139
+ } from "./chunk-7NE6SSNO.js";
141
140
  import {
142
141
  AGENT_UPDATE_FIELD_NAMES,
143
142
  normalizeAgentUpdateFieldList,
144
143
  selectAutoApproveSelfUpdateFields,
145
144
  selectCurrentServer,
146
145
  selectSyncServers
147
- } from "./chunk-446VANPP.js";
146
+ } from "./chunk-B2F42PFJ.js";
148
147
  import {
149
148
  asRecordOrEmpty
150
149
  } from "./chunk-KX6YBIHG.js";
@@ -156,13 +155,13 @@ import {
156
155
  selectById,
157
156
  toTimestampMs,
158
157
  write
159
- } from "./chunk-A4JDTA5T.js";
158
+ } from "./chunk-AKF3R6YT.js";
160
159
  import {
161
160
  asTrimmedLowercaseString
162
161
  } from "./chunk-QSJ3HFEF.js";
163
162
  import {
164
163
  readAction
165
- } from "./chunk-DWQNDGO7.js";
164
+ } from "./chunk-MBZE75JH.js";
166
165
  import {
167
166
  extractCustomId
168
167
  } from "./chunk-TOW4E763.js";
@@ -171,9 +170,10 @@ import {
171
170
  getRuntimeServerContext,
172
171
  noloWriteRequest,
173
172
  selectIdentityToken,
173
+ selectIdentityUserBalance,
174
174
  selectIdentityUserId,
175
175
  selectRuntimeSnapshot
176
- } from "./chunk-ZFTCLBEX.js";
176
+ } from "./chunk-REBLMWZW.js";
177
177
  import {
178
178
  isAbortError
179
179
  } from "./chunk-R5V5G73M.js";
@@ -10182,7 +10182,7 @@ var appBuilder_locale_default = {
10182
10182
  }
10183
10183
  };
10184
10184
 
10185
- // packages/auth/gptProTier.ts
10185
+ // packages/core/gptProTier.ts
10186
10186
  var ADVANCED_FEATURE_MIN_BALANCE = 19;
10187
10187
  var GPT_PRO_REQUIRED_RECHARGE_AMOUNT = 199;
10188
10188
  function isGptProModel(provider, model) {
@@ -11478,7 +11478,7 @@ var buildFormDataFromArgs = async (args) => {
11478
11478
  const trimmedModel = toTrimmedString(model);
11479
11479
  const trimmedProvider = toTrimmedString(provider);
11480
11480
  const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
11481
- const { getModelPricing } = await import("./getPricing-XQYSSVV6.js");
11481
+ const { getModelPricing } = await import("./getPricing-67TQVKFV.js");
11482
11482
  const normalizedTools = tools ?? [];
11483
11483
  const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
11484
11484
  const formData = {
@@ -11539,7 +11539,7 @@ var findSpaceConfig = (nameOrId, allSpaces) => {
11539
11539
  async function createAgentToolFunc(args, thunkApi) {
11540
11540
  const state = thunkApi.getState();
11541
11541
  const currentUserId = selectIdentityUserId(state);
11542
- const currentBalance = selectCurrentUserBalance(state);
11542
+ const currentBalance = selectIdentityUserBalance(state);
11543
11543
  const allSpaces = selectAllMemberSpaces(state);
11544
11544
  if (!currentUserId) {
11545
11545
  throw new Error("\u521B\u5EFA Agent \u5931\u8D25\uFF1A\u5F53\u524D\u672A\u767B\u5F55\u6216\u7F3A\u5C11 userId\u3002");
@@ -13918,7 +13918,7 @@ async function deleteDialogsFunc(args, thunkApi) {
13918
13918
  const deletedDialogIds = [];
13919
13919
  const deletedDialogKeys = [];
13920
13920
  const failures = [];
13921
- const { deleteDialog } = await import("./dialogSlice-CFDECXEU.js");
13921
+ const { deleteDialog } = await import("./dialogSlice-ZWPGG6CW.js");
13922
13922
  for (const target of targets) {
13923
13923
  try {
13924
13924
  await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
@@ -14187,7 +14187,7 @@ var readSkillDocFunctionSchema = {
14187
14187
  }
14188
14188
  };
14189
14189
  async function readSkillDocFunc(args, thunkApi) {
14190
- const { buildReadDocResult } = await import("./readDocTool-EYDMVRBL.js");
14190
+ const { buildReadDocResult } = await import("./readDocTool-J6U623EK.js");
14191
14191
  const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
14192
14192
  if (typeof id !== "string" || !id.trim()) {
14193
14193
  throw new Error("readSkillDoc requires id or doc.");
@@ -19637,7 +19637,7 @@ var selectUserIdFromState = (state) => typeof state?.auth?.currentUser?.userId =
19637
19637
  var selectCurrentServerFromState = (state) => typeof state?.settings?.currentServer === "string" ? state.settings.currentServer : null;
19638
19638
  async function addImageContentToSpace(input) {
19639
19639
  const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
19640
- const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-Z5S5ZQ7I.js")).addContentAction;
19640
+ const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-QOCQY2OK.js")).addContentAction;
19641
19641
  await addContentAction2(
19642
19642
  {
19643
19643
  spaceId: input.spaceId,
@@ -25663,7 +25663,7 @@ async function updateDocFunc(args, thunkApi) {
25663
25663
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
25664
25664
  };
25665
25665
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
25666
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-MZZWJM4F.js");
25666
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-MMY7W6LI.js");
25667
25667
  if (getDocState().pageKey === id) {
25668
25668
  applyExternalDocUpdate({
25669
25669
  slateData: finalSlateData,
@@ -25688,7 +25688,7 @@ async function updateDocFunc(args, thunkApi) {
25688
25688
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
25689
25689
  async function dispatchSetSettings(thunkApi, changes) {
25690
25690
  const injectedSetSettings = thunkApi?.extra?.setSettings;
25691
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-JKKV2T7O.js")).setSettings;
25691
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-XIATPDJH.js")).setSettings;
25692
25692
  await thunkApi.dispatch(setSettings(changes)).unwrap();
25693
25693
  }
25694
25694
  var updateUserPreferenceProfileFunctionSchema = {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  generatePkcePair,
3
3
  startCallbackServer
4
- } from "./chunk-T3Y5EMJS.js";
4
+ } from "./chunk-WJD5RNVB.js";
5
5
  import {
6
6
  toErrorMessage
7
7
  } from "./chunk-HNMXYYJR.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  patch,
3
3
  read
4
- } from "./chunk-A4JDTA5T.js";
4
+ } from "./chunk-AKF3R6YT.js";
5
5
  import {
6
6
  DEVICE_LOCAL_OWNER_ID,
7
7
  isDeviceLocalSpaceBody,
8
8
  selectIdentityUserId
9
- } from "./chunk-ZFTCLBEX.js";
9
+ } from "./chunk-REBLMWZW.js";
10
10
 
11
11
  // packages/create/space/spaceKeys.ts
12
12
  var SEPARATOR = "-";
@@ -10,7 +10,7 @@ import {
10
10
  scheduleExistingRecordReplication,
11
11
  shouldReplaceLocalWithRemoteRecord,
12
12
  shouldReplicateLocalRecord
13
- } from "./chunk-ZFTCLBEX.js";
13
+ } from "./chunk-REBLMWZW.js";
14
14
  import {
15
15
  fetchFromClientDb,
16
16
  fetchFromServer,