nolo-cli 0.210.0-alpha.2 → 0.212.0-alpha.1

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 (158) hide show
  1. package/{_executeModel-VVQEOY3D.js → _executeModel-KE6MBNUJ.js} +51 -48
  2. package/{action-U235TV4P.js → action-DF5UYSJF.js} +4 -4
  3. package/{addContentAction-7C76J7ST.js → addContentAction-N2YC5IL3.js} +8 -8
  4. package/{addDialogAgentAction-KTYANUEC.js → addDialogAgentAction-3NKVQCEC.js} +15 -12
  5. package/{agentDeleteCommand-WHRU6VDJ.js → agentDeleteCommand-NWK7VU4N.js} +71 -67
  6. package/{agentEmailCommands-ALLHXPW3.js → agentEmailCommands-UZ4DHEX2.js} +77 -72
  7. package/{agentListCommands-POKMEKMS.js → agentListCommands-HE7L2A6L.js} +190 -77
  8. package/{agentMachineCommands-WJLZLBPI.js → agentMachineCommands-6TE4MBMP.js} +30 -29
  9. package/{agentProviderCommands-MN3ABDME.js → agentProviderCommands-Q5O33MED.js} +33 -4
  10. package/{agentRecordCommands-OULZW3KM.js → agentRecordCommands-L3QQ7HZ4.js} +66 -61
  11. package/{agentRunCommand-ZNG4LGNQ.js → agentRunCommand-2IFGQHCO.js} +68 -64
  12. package/{agentRunControl-AF7BMR22.js → agentRunControl-OI3LOENH.js} +7 -6
  13. package/{agentRuntimeLocal-YMUHFV5M.js → agentRuntimeLocal-HL526DNQ.js} +28 -25
  14. package/{agentSlice-WNGUIMQZ.js → agentSlice-TMYP2UEA.js} +12 -12
  15. package/{appDeleteCommands-6MXPLAVF.js → appDeleteCommands-ZERW4AXY.js} +30 -29
  16. package/{appDeployCommands-ERRSVASW.js → appDeployCommands-DUWSMYHL.js} +30 -29
  17. package/{appDeployStatusCommands-ULICISLI.js → appDeployStatusCommands-N2KIE4BF.js} +30 -29
  18. package/{appGetCommands-WYYYWROF.js → appGetCommands-YVR4NPVY.js} +30 -29
  19. package/{appListCommands-DFCUCRCV.js → appListCommands-JS6HOHZS.js} +30 -29
  20. package/{authCommand-ZJMWXFMA.js → authCommand-FE2C3ZUM.js} +14 -14
  21. package/{authCommands-WK6E42L2.js → authCommands-HV3EAU3V.js} +2 -2
  22. package/{builtinSkillRegistry-HH75G5J3.js → builtinSkillRegistry-3YOIGEF6.js} +5 -4
  23. package/{chunk-JKW6LERJ.js → chunk-22CIEBYO.js} +14 -14
  24. package/{chunk-6HVBI6TI.js → chunk-25JZEIXN.js} +1 -218
  25. package/{chunk-TRZP7JZ7.js → chunk-2QHFH3DR.js} +1 -0
  26. package/{chunk-4LEGTOSR.js → chunk-3AKFVZ2I.js} +1 -1
  27. package/{chunk-XE4Q46FF.js → chunk-3CGG2PAL.js} +1 -1
  28. package/{chunk-25M2K6OA.js → chunk-3FOQHGHN.js} +3 -3
  29. package/{chunk-BSISWVB4.js → chunk-4I7ERB7F.js} +1 -1
  30. package/{chunk-TCTSYFDM.js → chunk-4KH4J3G5.js} +19 -6
  31. package/{chunk-NEZGPBL7.js → chunk-5AQR3DGV.js} +2 -2
  32. package/{chunk-YLTLB5A7.js → chunk-5RYBGBQH.js} +7 -6
  33. package/{chunk-RIALQUSF.js → chunk-6NSSLV67.js} +5 -5
  34. package/{chunk-RXCCWVA2.js → chunk-6OQUPIQF.js} +3 -3
  35. package/chunk-6VLJ6YA7.js +11751 -0
  36. package/{chunk-27E2CBBY.js → chunk-7OCO4TDT.js} +1 -1
  37. package/chunk-7RFNTILS.js +2213 -0
  38. package/{chunk-4WCEC56C.js → chunk-AVTVGMDY.js} +1 -1
  39. package/{chunk-3J3U3KXB.js → chunk-B7NJ3T4A.js} +4 -4
  40. package/{chunk-UMEGDH6A.js → chunk-BFM34N54.js} +7 -7
  41. package/chunk-CJEIOP3E.js +0 -0
  42. package/{chunk-YXOBCDNW.js → chunk-CJRONOYL.js} +5 -5
  43. package/{chunk-LT3EAHJY.js → chunk-CQ46IRNN.js} +38 -36
  44. package/{chunk-NTSRCTUX.js → chunk-CTPXME7U.js} +2 -2
  45. package/{chunk-M4NTDZG3.js → chunk-D5RCRX4A.js} +134 -141
  46. package/{chunk-25OB36GU.js → chunk-DM6UMOEL.js} +4 -4
  47. package/{chunk-TPCDYNJK.js → chunk-EYUBHHFB.js} +1 -1
  48. package/{chunk-Y6M7KJOA.js → chunk-EZFQ6XRV.js} +2 -2
  49. package/{chunk-ZOO3WJIE.js → chunk-FHU44LN3.js} +711 -40
  50. package/chunk-FY7F4Q6X.js +127 -0
  51. package/chunk-G7MLNNEX.js +84 -0
  52. package/{chunk-RYWO5AKN.js → chunk-GNDJKC4B.js} +10 -10
  53. package/{chunk-V3M6IXQI.js → chunk-GPO7FCEZ.js} +187 -36
  54. package/{chunk-RQ22OZD7.js → chunk-H2TJUNCH.js} +1 -1
  55. package/{chunk-C2XZM3K4.js → chunk-HIRC32DV.js} +5 -24
  56. package/{chunk-QQM464AL.js → chunk-HPFCI4SK.js} +3 -3
  57. package/chunk-HRMJUN5J.js +26 -0
  58. package/{chunk-HD3WR3TD.js → chunk-IAPCBNEE.js} +1 -1
  59. package/{chunk-XDMGY5IU.js → chunk-IF45XG7K.js} +220 -9
  60. package/{chunk-NLT32XBZ.js → chunk-IIQ6JGRI.js} +2 -2
  61. package/{chunk-OP7PTBAJ.js → chunk-IJXYFTV7.js} +8 -8
  62. package/{chunk-IIHY4ZAI.js → chunk-INSBKSBB.js} +8 -4
  63. package/{chunk-PAFTGNWA.js → chunk-JIT6FSXJ.js} +1 -1
  64. package/{chunk-WTKYP6QO.js → chunk-JTDORD5P.js} +5 -5
  65. package/{chunk-ECX3NKRD.js → chunk-JY5NGFFH.js} +11 -0
  66. package/chunk-KC4XDTT3.js +227 -0
  67. package/{chunk-PLYWH7XM.js → chunk-KIM6CLW5.js} +7 -7
  68. package/{chunk-SCYQJPGA.js → chunk-M6RL5JCD.js} +147 -20
  69. package/chunk-MMA3LZ3W.js +105 -0
  70. package/{chunk-I5PBXF7O.js → chunk-MMNYUVLW.js} +1 -1
  71. package/{chunk-NHQKWPLP.js → chunk-NJR3WKVP.js} +24 -22
  72. package/{chunk-W5VC7F7V.js → chunk-NOMIGOST.js} +59 -60
  73. package/{chunk-WI6OGHXJ.js → chunk-NRFKLKRU.js} +5 -5
  74. package/{chunk-NXCGNS4N.js → chunk-OHNELDTO.js} +1 -1
  75. package/{chunk-7IYBN7IA.js → chunk-OOF4UPC5.js} +22 -13
  76. package/{chunk-UIOEHFF6.js → chunk-OQHIVPG4.js} +1 -0
  77. package/{chunk-X4F26D5K.js → chunk-P5L7CXOC.js} +58 -33
  78. package/{chunk-5ORJGHTL.js → chunk-PDGKOTO7.js} +5 -5
  79. package/{chunk-UCPAVEQB.js → chunk-PYRUW7XN.js} +1 -1
  80. package/{chunk-SU3QL7YG.js → chunk-QT6PKHYJ.js} +1 -1
  81. package/{chunk-SN5XE6GQ.js → chunk-RPQXPZZF.js} +4 -4
  82. package/{chunk-ZN5AH4BY.js → chunk-RU4SD66C.js} +6 -6
  83. package/{chunk-YKFP6UGT.js → chunk-SOHTHFV2.js} +14 -14
  84. package/{chunk-CKOO42G5.js → chunk-UHJGXRJ4.js} +4 -4
  85. package/{chunk-CVCRAO6Q.js → chunk-UTV2AYEG.js} +9 -7
  86. package/{chunk-DQLB4NQ3.js → chunk-VPAZOH2D.js} +2 -2
  87. package/{chunk-MBS6CTZB.js → chunk-VZKUKCA6.js} +236 -1993
  88. package/{chunk-LNYHAKBP.js → chunk-W4S457LU.js} +1 -1
  89. package/chunk-WPORQFYN.js +74 -0
  90. package/{chunk-ET2CWLIJ.js → chunk-WXYLV624.js} +3 -3
  91. package/chunk-XFYFMTOM.js +92 -0
  92. package/{chunk-NV572QM3.js → chunk-YJMRHHGY.js} +15 -15
  93. package/{chunk-JBOUVTZX.js → chunk-YOIW77S2.js} +13 -2
  94. package/{chunk-ADBWFYJD.js → chunk-YPD3VJZW.js} +9 -9
  95. package/{chunk-DA7CTWT4.js → chunk-YWSEPJ7C.js} +5 -5
  96. package/{chunk-3V2QMRNN.js → chunk-ZL5RAEEB.js} +3 -3
  97. package/cliAgentConfigHelpers-WJBZQTLW.js +41 -0
  98. package/{commandRegistry-FI2IOQ3U.js → commandRegistry-VVMTPFAX.js} +85 -81
  99. package/{contentThunks-5LKNNDGY.js → contentThunks-N52O67MI.js} +25 -24
  100. package/{createAgentAutomationAction-TI4QG4CY.js → createAgentAutomationAction-ZC57YRSV.js} +25 -24
  101. package/{createDialogAction-TJ3JKLO4.js → createDialogAction-VQW5WDYX.js} +27 -26
  102. package/{createPageAction-GKXT6WEH.js → createPageAction-M5VDA7SC.js} +26 -25
  103. package/{dbSlice-LPMZ2DGJ.js → dbSlice-HP7G4LX3.js} +7 -7
  104. package/{deleteFile-EPUQHKPA.js → deleteFile-7VQGLK2V.js} +3 -3
  105. package/{dialogCommands-IWPXIZ5P.js → dialogCommands-JHMR2N2Y.js} +32 -30
  106. package/{dialogSlice-ZWNNS7GZ.js → dialogSlice-GRSVGDTF.js} +23 -22
  107. package/{dialogUsageCommand-ZCPPHPJ5.js → dialogUsageCommand-7KCPYGHG.js} +1 -1
  108. package/{docCreateCommands-HFSPKJSI.js → docCreateCommands-F2K3UPSQ.js} +28 -27
  109. package/{docDeleteCommands-CRL62POH.js → docDeleteCommands-XGXB5RFT.js} +29 -28
  110. package/{docReadCommands-QOTOX3XW.js → docReadCommands-7HWZZV6J.js} +28 -27
  111. package/{docStore-WYLRB7ED.js → docStore-KNZK6Y2G.js} +10 -10
  112. package/{docUpdateCommands-7BMH4MCA.js → docUpdateCommands-OZZ7NQII.js} +28 -27
  113. package/{fetchMessages-YY4SATNR.js → fetchMessages-M3QU7ZCQ.js} +1 -1
  114. package/{getPricing-OQXBJ6VZ.js → getPricing-2MNMXEVG.js} +3 -3
  115. package/{handleSendMessageAction-P27YP2DQ.js → handleSendMessageAction-SHIH74GJ.js} +46 -44
  116. package/hostCredentialCreate-X64WK4JD.js +357 -0
  117. package/index.js +5 -5
  118. package/{keys-P4ZDOVJW.js → keys-BEGDOTRL.js} +3 -1
  119. package/{localDialogRead-5VCMQQZF.js → localDialogRead-XRLAH4CZ.js} +1 -1
  120. package/{localRuntimeAdapter-GP6ZSSO3.js → localRuntimeAdapter-A7K3ABA6.js} +73 -66
  121. package/{machineCommands-6Z6H4BFX.js → machineCommands-DE3MR7CJ.js} +65 -60
  122. package/{machineWsRunDispatch-F2ZIXMYM.js → machineWsRunDispatch-R26P5V36.js} +65 -60
  123. package/{memberThunks-YSEFJF47.js → memberThunks-7WJAY5V6.js} +8 -8
  124. package/package.json +1 -1
  125. package/{projectArchive-PIGEOX3D.js → projectArchive-GGL5HLMD.js} +26 -25
  126. package/{providerPresetApply-ZYMLQA46.js → providerPresetApply-YXGV6NXB.js} +4 -4
  127. package/{providerRegistry-E34XWDLJ.js → providerRegistry-S6UL6UNA.js} +4 -4
  128. package/{read-DIIQBOOO.js → read-4VZQODSN.js} +3 -3
  129. package/{readDocTool-HXYGOEA7.js → readDocTool-AVD32RUJ.js} +1 -1
  130. package/{readlineWorkspace-UG25G7KC.js → readlineWorkspace-XKYKNL2I.js} +157 -100
  131. package/{removeDialogAgentAction-ALJDUJ2E.js → removeDialogAgentAction-FKL4BYMR.js} +17 -14
  132. package/{runAgentClientLoop-IO5F7TCZ.js → runAgentClientLoop-V7E2WBVM.js} +49 -46
  133. package/{runtimeDoctorCommands-PGAA47G5.js → runtimeDoctorCommands-QAI3MBKQ.js} +6 -6
  134. package/{secretCommands-ZCZ4KVET.js → secretCommands-4QS3HCA2.js} +3 -3
  135. package/{setDialogExtraReferencesAction-O3SVMD5A.js → setDialogExtraReferencesAction-TLIOLWWI.js} +10 -10
  136. package/{setPrimaryDialogAgentAction-HE7RVFFF.js → setPrimaryDialogAgentAction-2OLWRFYR.js} +18 -15
  137. package/{settingThunks-BWWJQG4L.js → settingThunks-UGBPCNYF.js} +12 -11
  138. package/{spaceCommands-UAELIFEI.js → spaceCommands-4KSLKVNF.js} +28 -27
  139. package/{streamAgentChatTurn-VUKZQYJR.js → streamAgentChatTurn-7FR7X2NU.js} +57 -54
  140. package/{switchDialogAgentAction-3VZS7SOS.js → switchDialogAgentAction-UZSAG2N5.js} +15 -12
  141. package/{tools-VRXJAVYI.js → tools-ZLKCC25W.js} +43 -40
  142. package/{tuiSummaryLlmCaller-TGCHZLSW.js → tuiSummaryLlmCaller-WC54MVGP.js} +10 -10
  143. package/{updateCommands-Q6CYAEYJ.js → updateCommands-4744PL3P.js} +3 -1
  144. package/{updateDialogTitleAction-MULWCJCW.js → updateDialogTitleAction-U53ZT7PJ.js} +38 -70
  145. package/usageCommand-F4IPVMIZ.js +32 -0
  146. package/usageRebuildCommand-HAW2AD5N.js +626 -0
  147. package/chunk-4LCOCOR5.js +0 -50
  148. package/chunk-7AUQ3WCW.js +0 -51
  149. package/chunk-ZRAU6T47.js +0 -56
  150. package/{agentFavoriteCommands-GAFEXKKP.js → agentFavoriteCommands-EDK743YA.js} +1 -1
  151. package/{agentGrantCommands-V5FOQKFD.js → agentGrantCommands-RQWK2TEV.js} +1 -1
  152. package/{agentPullCommand-2JMJP5BS.js → agentPullCommand-6EM3URVK.js} +1 -1
  153. package/{chunk-BTYQAODF.js → chunk-CZM5YTZ7.js} +3 -3
  154. package/{chunk-A2ZMIRLN.js → chunk-INN4LTAJ.js} +5 -5
  155. package/{chunk-XPHZK3PJ.js → chunk-JNKSDZFS.js} +3 -3
  156. package/{chunk-PV6JJAUB.js → chunk-TCZHTTUU.js} +8 -8
  157. package/{chunk-AKE53VMW.js → chunk-ZCWRMUWT.js} +0 -0
  158. package/{tableCommands-D7WR4QSM.js → tableCommands-MP6VFSVT.js} +3 -3
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-E2BESSAW.js";
5
5
  import {
6
6
  resolveAgentImageInputSupport
7
- } from "./chunk-DA7CTWT4.js";
7
+ } from "./chunk-YWSEPJ7C.js";
8
8
  import {
9
9
  isRecord
10
10
  } from "./chunk-KUG52IAP.js";
@@ -0,0 +1,74 @@
1
+ import {
2
+ require_addLeadingZeros,
3
+ require_interopRequireDefault,
4
+ require_requiredArgs,
5
+ require_toDate
6
+ } from "./chunk-MMA3LZ3W.js";
7
+ import {
8
+ __commonJS
9
+ } from "./chunk-4VNS5WPM.js";
10
+
11
+ // node_modules/date-fns/formatISO/index.js
12
+ var require_formatISO = __commonJS({
13
+ "node_modules/date-fns/formatISO/index.js"(exports, module) {
14
+ "use strict";
15
+ var _interopRequireDefault = require_interopRequireDefault().default;
16
+ Object.defineProperty(exports, "__esModule", {
17
+ value: true
18
+ });
19
+ exports.default = formatISO;
20
+ var _index = _interopRequireDefault(require_toDate());
21
+ var _index2 = _interopRequireDefault(require_addLeadingZeros());
22
+ var _index3 = _interopRequireDefault(require_requiredArgs());
23
+ function formatISO(date, options) {
24
+ var _options$format, _options$representati;
25
+ (0, _index3.default)(1, arguments);
26
+ var originalDate = (0, _index.default)(date);
27
+ if (isNaN(originalDate.getTime())) {
28
+ throw new RangeError("Invalid time value");
29
+ }
30
+ var format = String((_options$format = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format !== void 0 ? _options$format : "extended");
31
+ var representation = String((_options$representati = options === null || options === void 0 ? void 0 : options.representation) !== null && _options$representati !== void 0 ? _options$representati : "complete");
32
+ if (format !== "extended" && format !== "basic") {
33
+ throw new RangeError("format must be 'extended' or 'basic'");
34
+ }
35
+ if (representation !== "date" && representation !== "time" && representation !== "complete") {
36
+ throw new RangeError("representation must be 'date', 'time', or 'complete'");
37
+ }
38
+ var result = "";
39
+ var tzOffset = "";
40
+ var dateDelimiter = format === "extended" ? "-" : "";
41
+ var timeDelimiter = format === "extended" ? ":" : "";
42
+ if (representation !== "time") {
43
+ var day = (0, _index2.default)(originalDate.getDate(), 2);
44
+ var month = (0, _index2.default)(originalDate.getMonth() + 1, 2);
45
+ var year = (0, _index2.default)(originalDate.getFullYear(), 4);
46
+ result = "".concat(year).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day);
47
+ }
48
+ if (representation !== "date") {
49
+ var offset = originalDate.getTimezoneOffset();
50
+ if (offset !== 0) {
51
+ var absoluteOffset = Math.abs(offset);
52
+ var hourOffset = (0, _index2.default)(Math.floor(absoluteOffset / 60), 2);
53
+ var minuteOffset = (0, _index2.default)(absoluteOffset % 60, 2);
54
+ var sign = offset < 0 ? "+" : "-";
55
+ tzOffset = "".concat(sign).concat(hourOffset, ":").concat(minuteOffset);
56
+ } else {
57
+ tzOffset = "Z";
58
+ }
59
+ var hour = (0, _index2.default)(originalDate.getHours(), 2);
60
+ var minute = (0, _index2.default)(originalDate.getMinutes(), 2);
61
+ var second = (0, _index2.default)(originalDate.getSeconds(), 2);
62
+ var separator = result === "" ? "" : "T";
63
+ var time = [hour, minute, second].join(timeDelimiter);
64
+ result = "".concat(result).concat(separator).concat(time).concat(tzOffset);
65
+ }
66
+ return result;
67
+ }
68
+ module.exports = exports.default;
69
+ }
70
+ });
71
+
72
+ export {
73
+ require_formatISO
74
+ };
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  listUserRecordsFromServers,
3
3
  readLiveDbRecordAfterTombstoneMerge
4
- } from "./chunk-4LEGTOSR.js";
4
+ } from "./chunk-3AKFVZ2I.js";
5
5
  import {
6
6
  agentRecordHasConfiguredCredential
7
- } from "./chunk-XDMGY5IU.js";
7
+ } from "./chunk-IF45XG7K.js";
8
8
  import {
9
9
  deriveCredentialGroup
10
- } from "./chunk-YXOBCDNW.js";
10
+ } from "./chunk-CJRONOYL.js";
11
11
  import {
12
12
  isTombstoneRecord
13
13
  } from "./chunk-D2MDMY2M.js";
@@ -0,0 +1,92 @@
1
+ // packages/agent-runtime/credentialUseGrant.ts
2
+ var BIGMODEL_PROVIDER_TARGET = {
3
+ providerId: "bigmodel",
4
+ /** 规范化 origin:协议 + 主机 + 端口,不含路径。 */
5
+ allowedOrigin: "https://open.bigmodel.cn"
6
+ };
7
+ function normalizeOrigin(url) {
8
+ const raw = typeof url === "string" ? url.trim() : "";
9
+ if (!raw) return null;
10
+ let parsed;
11
+ try {
12
+ parsed = new URL(raw);
13
+ } catch {
14
+ return null;
15
+ }
16
+ if (parsed.protocol !== "https:" && parsed.protocol !== "http:") return null;
17
+ if (parsed.username || parsed.password) return null;
18
+ return parsed.origin;
19
+ }
20
+ function buildCredentialUseGrant(input) {
21
+ const { gate, result } = input;
22
+ if (gate.kind !== "confirm") {
23
+ return { ok: false, reason: "grant-requires-confirm-gate" };
24
+ }
25
+ if (!result || result.gateId !== gate.id) {
26
+ return { ok: false, reason: "grant-result-does-not-match-gate" };
27
+ }
28
+ if (result.status !== "completed" || result.output !== "confirmed") {
29
+ return { ok: false, reason: "grant-not-confirmed-by-host" };
30
+ }
31
+ const providerId = (input.providerId ?? "").trim();
32
+ if (providerId !== BIGMODEL_PROVIDER_TARGET.providerId) {
33
+ return { ok: false, reason: "grant-provider-not-allowed" };
34
+ }
35
+ const origin = normalizeOrigin(input.providerUrl);
36
+ if (!origin || origin !== BIGMODEL_PROVIDER_TARGET.allowedOrigin) {
37
+ return { ok: false, reason: "grant-target-origin-not-allowed" };
38
+ }
39
+ const credentialRef = (input.credentialRef ?? "").trim();
40
+ const agentKey = (input.agentKey ?? "").trim();
41
+ const deviceId = (input.deviceId ?? "").trim();
42
+ if (!credentialRef || !agentKey || !deviceId) {
43
+ return { ok: false, reason: "grant-missing-identity" };
44
+ }
45
+ if (!input.operations.includes("verify")) {
46
+ return { ok: false, reason: "grant-missing-verify-operation" };
47
+ }
48
+ return {
49
+ ok: true,
50
+ grant: {
51
+ credentialRef,
52
+ deviceId,
53
+ agentKey,
54
+ providerId,
55
+ allowedOrigin: origin,
56
+ operations: [...input.operations],
57
+ persistence: input.persistence,
58
+ userAuthorizationEventId: gate.id
59
+ }
60
+ };
61
+ }
62
+ function verifyCredentialUseGrant(args) {
63
+ const { grant } = args;
64
+ if (!grant) return { ok: false, reason: "no-grant" };
65
+ if (grant.providerId !== BIGMODEL_PROVIDER_TARGET.providerId) {
66
+ return { ok: false, reason: "grant-provider-not-allowed" };
67
+ }
68
+ if (grant.allowedOrigin !== BIGMODEL_PROVIDER_TARGET.allowedOrigin) {
69
+ return { ok: false, reason: "grant-target-origin-not-allowed" };
70
+ }
71
+ if (grant.credentialRef !== args.credentialRef) {
72
+ return { ok: false, reason: "grant-credential-mismatch" };
73
+ }
74
+ if (grant.agentKey !== args.agentKey) {
75
+ return { ok: false, reason: "grant-agent-mismatch" };
76
+ }
77
+ if (!grant.operations.includes(args.operation)) {
78
+ return { ok: false, reason: "grant-operation-not-allowed" };
79
+ }
80
+ const requestOrigin = normalizeOrigin(args.requestUrl);
81
+ if (!requestOrigin || requestOrigin !== grant.allowedOrigin) {
82
+ return { ok: false, reason: "request-origin-not-allowed" };
83
+ }
84
+ return { ok: true };
85
+ }
86
+
87
+ export {
88
+ BIGMODEL_PROVIDER_TARGET,
89
+ normalizeOrigin,
90
+ buildCredentialUseGrant,
91
+ verifyCredentialUseGrant
92
+ };
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-HS7MLR74.js";
4
4
  import {
5
5
  performServerProxyFetchWithRetry
6
- } from "./chunk-ZN5AH4BY.js";
6
+ } from "./chunk-RU4SD66C.js";
7
7
  import {
8
8
  fetchServerSyncedCredential
9
- } from "./chunk-ADBWFYJD.js";
9
+ } from "./chunk-YPD3VJZW.js";
10
10
  import {
11
11
  buildSkillGuidancePromptBlock
12
- } from "./chunk-Y6M7KJOA.js";
12
+ } from "./chunk-EZFQ6XRV.js";
13
13
  import {
14
14
  CREDENTIAL_HYGIENE_RULE,
15
15
  DELETE_SAFETY_RED_LINE,
@@ -25,7 +25,7 @@ import {
25
25
  compileContextLayers,
26
26
  detectDispatchIntentFromMessages,
27
27
  resolveToolGuidedSections
28
- } from "./chunk-W5VC7F7V.js";
28
+ } from "./chunk-NOMIGOST.js";
29
29
  import {
30
30
  convertMessagesToResponsesInput,
31
31
  getUsageRequestOptions,
@@ -34,14 +34,14 @@ import {
34
34
  resolveReasoningReplayOptions,
35
35
  shouldStripReasoningContentForOutbound,
36
36
  stablePromptCacheKey
37
- } from "./chunk-CVCRAO6Q.js";
37
+ } from "./chunk-UTV2AYEG.js";
38
38
  import {
39
39
  resolveAgentCallPlan,
40
40
  resolveClientWire
41
- } from "./chunk-CKOO42G5.js";
41
+ } from "./chunk-UHJGXRJ4.js";
42
42
  import {
43
43
  createFileCredentialBroker
44
- } from "./chunk-UIOEHFF6.js";
44
+ } from "./chunk-OQHIVPG4.js";
45
45
  import {
46
46
  MEMORY_USE_GUIDANCE,
47
47
  buildUserResponseLanguageContext,
@@ -49,10 +49,10 @@ import {
49
49
  } from "./chunk-4VJAC32I.js";
50
50
  import {
51
51
  canonicalizeToolNames
52
- } from "./chunk-AKE53VMW.js";
52
+ } from "./chunk-ZCWRMUWT.js";
53
53
  import {
54
54
  buildProviderAuthHeaders
55
- } from "./chunk-PV6JJAUB.js";
55
+ } from "./chunk-TCZHTTUU.js";
56
56
  import {
57
57
  clampReasoningEffort,
58
58
  getModelConfig,
@@ -64,6 +64,12 @@ import {
64
64
  import {
65
65
  isRecord
66
66
  } from "./chunk-KUG52IAP.js";
67
+ import {
68
+ isDeepInfraKimiModel,
69
+ isFireworksKimiModel,
70
+ isPlatformMimoProviderModel,
71
+ resolveFireworksKimiModel
72
+ } from "./chunk-GOO6G4PY.js";
67
73
  import {
68
74
  API_ENDPOINTS
69
75
  } from "./chunk-LCBAMY2M.js";
@@ -76,12 +82,6 @@ import {
76
82
  import {
77
83
  asOptionalTrimmedString
78
84
  } from "./chunk-G3SUCT4W.js";
79
- import {
80
- isDeepInfraKimiModel,
81
- isFireworksKimiModel,
82
- isPlatformMimoProviderModel,
83
- resolveFireworksKimiModel
84
- } from "./chunk-GOO6G4PY.js";
85
85
 
86
86
  // packages/agent-runtime/responsesConversationState.ts
87
87
  function supportsResponsesConversationState(agent) {
@@ -79,8 +79,17 @@ function resolveStandaloneBundleRepoBase(channel) {
79
79
  }
80
80
  function buildStandaloneManualUpdateHint(channel) {
81
81
  const repoBase = resolveStandaloneBundleRepoBase(channel);
82
+ if (channel === "alpha") {
83
+ return `curl -fsSL ${repoBase}/install-nolo.sh | NOLO_INSTALL_CHANNEL=alpha sh`;
84
+ }
82
85
  return `curl -fsSL ${repoBase}/install-nolo.sh | sh`;
83
86
  }
87
+ function buildStandaloneBundleTarballName(tarballName, channel) {
88
+ if (channel !== "alpha") return tarballName;
89
+ const suffix = ".tar.gz";
90
+ const stem = tarballName.endsWith(suffix) ? tarballName.slice(0, -suffix.length) : tarballName;
91
+ return `${stem}-alpha.tar.gz`;
92
+ }
84
93
  function resolveStandaloneInstallDir() {
85
94
  const candidates = [
86
95
  "/usr/local/bin",
@@ -356,8 +365,9 @@ async function runStandaloneBundleUpdate(options) {
356
365
  }
357
366
  const { tarballName, extractSubdir } = platform;
358
367
  const repoBase = resolveStandaloneBundleRepoBase(channel);
359
- const tarballUrl = `${repoBase}/public/downloads/${tarballName}`;
360
- const fallbackUrl = `https://nolo.chat/public/downloads/${tarballName}`;
368
+ const bundleName = buildStandaloneBundleTarballName(tarballName, channel);
369
+ const tarballUrl = `${repoBase}/public/downloads/${bundleName}`;
370
+ const fallbackUrl = `https://nolo.chat/public/downloads/${bundleName}`;
361
371
  const extractDir = join(homedir(), ".nolo", extractSubdir);
362
372
  const installDir = resolveStandaloneInstallDir();
363
373
  const symlinkPath = join(installDir, "nolo");
@@ -569,6 +579,7 @@ export {
569
579
  resolveStandaloneBundlePlatform,
570
580
  resolveStandaloneBundleRepoBase,
571
581
  buildStandaloneManualUpdateHint,
582
+ buildStandaloneBundleTarballName,
572
583
  readPackageInfo,
573
584
  buildCliVersionText,
574
585
  buildSelfUpdateCommand,
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  upsertSSREntity,
3
3
  write
4
- } from "./chunk-UMEGDH6A.js";
4
+ } from "./chunk-BFM34N54.js";
5
5
  import {
6
6
  getRuntimeServerContext,
7
7
  resolveRecordAuthority
8
- } from "./chunk-UCPAVEQB.js";
8
+ } from "./chunk-PYRUW7XN.js";
9
9
  import {
10
10
  TIMEOUT,
11
11
  asyncThunkCreator,
12
12
  buildCreateSlice,
13
13
  noloRequest
14
- } from "./chunk-X4F26D5K.js";
14
+ } from "./chunk-P5L7CXOC.js";
15
15
  import {
16
16
  isLevelNotFoundError
17
17
  } from "./chunk-OW765XBU.js";
@@ -19,10 +19,10 @@ import {
19
19
  applyAgentSecretMigrationUpdates,
20
20
  migrateAgentSecrets,
21
21
  normalizeAgentRuntimeToolPolicy
22
- } from "./chunk-TRZP7JZ7.js";
22
+ } from "./chunk-2QHFH3DR.js";
23
23
  import {
24
24
  createFileCredentialBroker
25
- } from "./chunk-UIOEHFF6.js";
25
+ } from "./chunk-OQHIVPG4.js";
26
26
  import {
27
27
  asRecordOrEmpty
28
28
  } from "./chunk-KX6YBIHG.js";
@@ -36,7 +36,7 @@ import {
36
36
  createAgentKey,
37
37
  createUserKey,
38
38
  toTrimmedString
39
- } from "./chunk-ECX3NKRD.js";
39
+ } from "./chunk-JY5NGFFH.js";
40
40
  import {
41
41
  asTrimmedString
42
42
  } from "./chunk-3EUW3WEO.js";
@@ -458,7 +458,7 @@ var slice = createSliceWithThunks({
458
458
  const overrides = {};
459
459
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
460
460
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
461
- const { _executeModel } = await import("./_executeModel-VVQEOY3D.js");
461
+ const { _executeModel } = await import("./_executeModel-KE6MBNUJ.js");
462
462
  return _executeModel(
463
463
  {
464
464
  isStreaming: args.isStreaming ?? false,
@@ -479,7 +479,7 @@ var slice = createSliceWithThunks({
479
479
  * - 循环直到无工具调用或触发其他运行时停止条件
480
480
  */
481
481
  runAgent: create.asyncThunk(async (args, thunkApi) => {
482
- const { runAgentClientLoop } = await import("./runAgentClientLoop-IO5F7TCZ.js");
482
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-V7E2WBVM.js");
483
483
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
484
484
  {
485
485
  agentKey: args.agentKey,
@@ -495,7 +495,7 @@ var slice = createSliceWithThunks({
495
495
  * 聊天轮次流式 Agent 调用
496
496
  */
497
497
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
498
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-VUKZQYJR.js");
498
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-7FR7X2NU.js");
499
499
  return streamAgentChatTurnHandler(args, thunkApi);
500
500
  }),
501
501
  /**
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  resolveAgentCallPlan
3
- } from "./chunk-CKOO42G5.js";
3
+ } from "./chunk-UHJGXRJ4.js";
4
4
  import {
5
5
  SUBSCRIPTION_OAUTH_PROVIDERS
6
- } from "./chunk-PLYWH7XM.js";
6
+ } from "./chunk-KIM6CLW5.js";
7
7
  import {
8
8
  findModelConfig,
9
9
  getProviderByModelName
10
10
  } from "./chunk-SM3NSZJV.js";
11
- import {
12
- asOptionalTrimmedString
13
- } from "./chunk-G3SUCT4W.js";
14
11
  import {
15
12
  asTrimmedLowercaseString
16
13
  } from "./chunk-QSJ3HFEF.js";
14
+ import {
15
+ asOptionalTrimmedString
16
+ } from "./chunk-G3SUCT4W.js";
17
17
 
18
18
  // packages/ai/llm/agentCapabilities.ts
19
19
  var ANTIGRAVITY_EFFORT_SUFFIXES = [
@@ -1,9 +1,9 @@
1
+ import {
2
+ resolvePlatformAuthToken
3
+ } from "./chunk-TCZHTTUU.js";
1
4
  import {
2
5
  getCredentialsDir
3
6
  } from "./chunk-G7Y4GXTY.js";
4
- import {
5
- resolvePlatformAuthToken
6
- } from "./chunk-PV6JJAUB.js";
7
7
 
8
8
  // packages/cli/client/authGuidance.ts
9
9
  import { readdirSync } from "node:fs";
@@ -0,0 +1,41 @@
1
+ import {
2
+ BUILTIN_NOLO_AGENT_KEY,
3
+ extractLastUserText,
4
+ isBuiltinNoloAgentConfig,
5
+ isBuiltinNoloAgentRef,
6
+ localTurnHasSubjectRefs,
7
+ resolveLocalUserId,
8
+ withResolvedRuntimeToolSurface
9
+ } from "./chunk-G7MLNNEX.js";
10
+ import "./chunk-NBTY7YJF.js";
11
+ import "./chunk-KC4XDTT3.js";
12
+ import "./chunk-ZCWRMUWT.js";
13
+ import "./chunk-ZC3CMUKU.js";
14
+ import "./chunk-LOEO7LRC.js";
15
+ import "./chunk-M2EJHDJP.js";
16
+ import "./chunk-HRMJUN5J.js";
17
+ import "./chunk-TCZHTTUU.js";
18
+ import "./chunk-YUA6OAH5.js";
19
+ import "./chunk-SM3NSZJV.js";
20
+ import "./chunk-JRTNUU5Z.js";
21
+ import "./chunk-KUG52IAP.js";
22
+ import "./chunk-GOO6G4PY.js";
23
+ import "./chunk-QSJ3HFEF.js";
24
+ import "./chunk-WACI5I6V.js";
25
+ import "./chunk-OLZBQWZU.js";
26
+ import "./chunk-LCBAMY2M.js";
27
+ import "./chunk-4SN6J65J.js";
28
+ import "./chunk-CF7PE763.js";
29
+ import "./chunk-I42VC5KR.js";
30
+ import "./chunk-3EUW3WEO.js";
31
+ import "./chunk-G3SUCT4W.js";
32
+ import "./chunk-4VNS5WPM.js";
33
+ export {
34
+ BUILTIN_NOLO_AGENT_KEY,
35
+ extractLastUserText,
36
+ isBuiltinNoloAgentConfig,
37
+ isBuiltinNoloAgentRef,
38
+ localTurnHasSubjectRefs,
39
+ resolveLocalUserId,
40
+ withResolvedRuntimeToolSurface
41
+ };