@lazehq/cli 0.1.64 → 0.1.65
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/dist/laze.mjs +837 -152
- package/package.json +1 -1
package/dist/laze.mjs
CHANGED
|
@@ -53,6 +53,42 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
53
53
|
mod
|
|
54
54
|
));
|
|
55
55
|
|
|
56
|
+
// ../../packages/time/src/locales/ar.json
|
|
57
|
+
var ar_exports = {};
|
|
58
|
+
__export(ar_exports, {
|
|
59
|
+
default: () => ar_default
|
|
60
|
+
});
|
|
61
|
+
var ar_default;
|
|
62
|
+
var init_ar = __esm({
|
|
63
|
+
"../../packages/time/src/locales/ar.json"() {
|
|
64
|
+
ar_default = {
|
|
65
|
+
xSeconds: "{count, plural, zero {# \u062B\u0627\u0646\u064A\u0629} one {\u062B\u0627\u0646\u064A\u0629 \u0648\u0627\u062D\u062F\u0629} two {\u062B\u0627\u0646\u064A\u062A\u0627\u0646} few {# \u062B\u0648\u0627\u0646} many {# \u062B\u0627\u0646\u064A\u0629} other {# \u062B\u0627\u0646\u064A\u0629}}",
|
|
66
|
+
lessThanXMinutes: "{count, plural, zero {\u0623\u0642\u0644 \u0645\u0646 # \u062F\u0642\u064A\u0642\u0629} one {\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u0629} two {\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u062A\u064A\u0646} few {\u0623\u0642\u0644 \u0645\u0646 # \u062F\u0642\u0627\u0626\u0642} many {\u0623\u0642\u0644 \u0645\u0646 # \u062F\u0642\u064A\u0642\u0629} other {\u0623\u0642\u0644 \u0645\u0646 # \u062F\u0642\u064A\u0642\u0629}}",
|
|
67
|
+
xMinutes: "{count, plural, zero {# \u062F\u0642\u064A\u0642\u0629} one {\u062F\u0642\u064A\u0642\u0629 \u0648\u0627\u062D\u062F\u0629} two {\u062F\u0642\u064A\u0642\u062A\u0627\u0646} few {# \u062F\u0642\u0627\u0626\u0642} many {# \u062F\u0642\u064A\u0642\u0629} other {# \u062F\u0642\u064A\u0642\u0629}}",
|
|
68
|
+
aboutXHours: "{count, plural, zero {\u062D\u0648\u0627\u0644\u064A # \u0633\u0627\u0639\u0629} one {\u062D\u0648\u0627\u0644\u064A \u0633\u0627\u0639\u0629} two {\u062D\u0648\u0627\u0644\u064A \u0633\u0627\u0639\u062A\u064A\u0646} few {\u062D\u0648\u0627\u0644\u064A # \u0633\u0627\u0639\u0627\u062A} many {\u062D\u0648\u0627\u0644\u064A # \u0633\u0627\u0639\u0629} other {\u062D\u0648\u0627\u0644\u064A # \u0633\u0627\u0639\u0629}}",
|
|
69
|
+
xHours: "{count, plural, zero {# \u0633\u0627\u0639\u0629} one {\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629} two {\u0633\u0627\u0639\u062A\u0627\u0646} few {# \u0633\u0627\u0639\u0627\u062A} many {# \u0633\u0627\u0639\u0629} other {# \u0633\u0627\u0639\u0629}}",
|
|
70
|
+
xDays: "{count, plural, zero {# \u064A\u0648\u0645} one {\u064A\u0648\u0645 \u0648\u0627\u062D\u062F} two {\u064A\u0648\u0645\u0627\u0646} few {# \u0623\u064A\u0627\u0645} many {# \u064A\u0648\u0645\u064B\u0627} other {# \u064A\u0648\u0645}}",
|
|
71
|
+
aboutXMonths: "{count, plural, zero {\u062D\u0648\u0627\u0644\u064A # \u0634\u0647\u0631} one {\u062D\u0648\u0627\u0644\u064A \u0634\u0647\u0631} two {\u062D\u0648\u0627\u0644\u064A \u0634\u0647\u0631\u064A\u0646} few {\u062D\u0648\u0627\u0644\u064A # \u0623\u0634\u0647\u0631} many {\u062D\u0648\u0627\u0644\u064A # \u0634\u0647\u0631\u064B\u0627} other {\u062D\u0648\u0627\u0644\u064A # \u0634\u0647\u0631}}",
|
|
72
|
+
xMonths: "{count, plural, zero {# \u0634\u0647\u0631} one {\u0634\u0647\u0631 \u0648\u0627\u062D\u062F} two {\u0634\u0647\u0631\u0627\u0646} few {# \u0623\u0634\u0647\u0631} many {# \u0634\u0647\u0631\u064B\u0627} other {# \u0634\u0647\u0631}}",
|
|
73
|
+
aboutXYears: "{count, plural, zero {\u062D\u0648\u0627\u0644\u064A # \u0633\u0646\u0629} one {\u062D\u0648\u0627\u0644\u064A \u0633\u0646\u0629} two {\u062D\u0648\u0627\u0644\u064A \u0633\u0646\u062A\u064A\u0646} few {\u062D\u0648\u0627\u0644\u064A # \u0633\u0646\u0648\u0627\u062A} many {\u062D\u0648\u0627\u0644\u064A # \u0633\u0646\u0629} other {\u062D\u0648\u0627\u0644\u064A # \u0633\u0646\u0629}}",
|
|
74
|
+
xYears: "{count, plural, zero {# \u0633\u0646\u0629} one {\u0633\u0646\u0629 \u0648\u0627\u062D\u062F\u0629} two {\u0633\u0646\u062A\u0627\u0646} few {# \u0633\u0646\u0648\u0627\u062A} many {# \u0633\u0646\u0629} other {# \u0633\u0646\u0629}}",
|
|
75
|
+
overXYears: "{count, plural, zero {\u0623\u0643\u062B\u0631 \u0645\u0646 # \u0633\u0646\u0629} one {\u0623\u0643\u062B\u0631 \u0645\u0646 \u0633\u0646\u0629} two {\u0623\u0643\u062B\u0631 \u0645\u0646 \u0633\u0646\u062A\u064A\u0646} few {\u0623\u0643\u062B\u0631 \u0645\u0646 # \u0633\u0646\u0648\u0627\u062A} many {\u0623\u0643\u062B\u0631 \u0645\u0646 # \u0633\u0646\u0629} other {\u0623\u0643\u062B\u0631 \u0645\u0646 # \u0633\u0646\u0629}}",
|
|
76
|
+
almostXYears: "{count, plural, zero {\u0642\u0631\u0627\u0628\u0629 # \u0633\u0646\u0629} one {\u0642\u0631\u0627\u0628\u0629 \u0633\u0646\u0629} two {\u0642\u0631\u0627\u0628\u0629 \u0633\u0646\u062A\u064A\u0646} few {\u0642\u0631\u0627\u0628\u0629 # \u0633\u0646\u0648\u0627\u062A} many {\u0642\u0631\u0627\u0628\u0629 # \u0633\u0646\u0629} other {\u0642\u0631\u0627\u0628\u0629 # \u0633\u0646\u0629}}",
|
|
77
|
+
future: "\u062E\u0644\u0627\u0644 {distance}",
|
|
78
|
+
past: "\u0645\u0646\u0630 {distance}",
|
|
79
|
+
"compact.now": "\u0627\u0644\u0622\u0646",
|
|
80
|
+
"compact.minutes": "\u0645\u0646\u0630 {count} \u062F",
|
|
81
|
+
"compact.hours": "\u0645\u0646\u0630 {count} \u0633",
|
|
82
|
+
"compact.days": "\u0645\u0646\u0630 {count} \u064A",
|
|
83
|
+
"compact.weeks": "\u0645\u0646\u0630 {count} \u0623",
|
|
84
|
+
"compact.months": "\u0645\u0646\u0630 {count} \u0634",
|
|
85
|
+
"day.today": "\u0627\u0644\u064A\u0648\u0645 \u0641\u064A {time}",
|
|
86
|
+
"day.tomorrow": "\u063A\u062F\u064B\u0627 \u0641\u064A {time}",
|
|
87
|
+
"day.other": "{date} \u0641\u064A {time}"
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
|
|
56
92
|
// ../../packages/time/src/locales/de.json
|
|
57
93
|
var de_exports = {};
|
|
58
94
|
__export(de_exports, {
|
|
@@ -161,6 +197,114 @@ var init_fr = __esm({
|
|
|
161
197
|
}
|
|
162
198
|
});
|
|
163
199
|
|
|
200
|
+
// ../../packages/time/src/locales/he.json
|
|
201
|
+
var he_exports = {};
|
|
202
|
+
__export(he_exports, {
|
|
203
|
+
default: () => he_default
|
|
204
|
+
});
|
|
205
|
+
var he_default;
|
|
206
|
+
var init_he = __esm({
|
|
207
|
+
"../../packages/time/src/locales/he.json"() {
|
|
208
|
+
he_default = {
|
|
209
|
+
xSeconds: "{count, plural, one {\u05E9\u05E0\u05D9\u05D9\u05D4 \u05D0\u05D7\u05EA} two {\u05E9\u05EA\u05D9 \u05E9\u05E0\u05D9\u05D5\u05EA} other {# \u05E9\u05E0\u05D9\u05D5\u05EA}}",
|
|
210
|
+
lessThanXMinutes: "{count, plural, one {\u05E4\u05D7\u05D5\u05EA \u05DE\u05D3\u05E7\u05D4} two {\u05E4\u05D7\u05D5\u05EA \u05DE\u05E9\u05EA\u05D9 \u05D3\u05E7\u05D5\u05EA} other {\u05E4\u05D7\u05D5\u05EA \u05DE-# \u05D3\u05E7\u05D5\u05EA}}",
|
|
211
|
+
xMinutes: "{count, plural, one {\u05D3\u05E7\u05D4 \u05D0\u05D7\u05EA} two {\u05E9\u05EA\u05D9 \u05D3\u05E7\u05D5\u05EA} other {# \u05D3\u05E7\u05D5\u05EA}}",
|
|
212
|
+
aboutXHours: "{count, plural, one {\u05D1\u05E2\u05E8\u05DA \u05E9\u05E2\u05D4} two {\u05D1\u05E2\u05E8\u05DA \u05E9\u05E2\u05EA\u05D9\u05D9\u05DD} other {\u05D1\u05E2\u05E8\u05DA # \u05E9\u05E2\u05D5\u05EA}}",
|
|
213
|
+
xHours: "{count, plural, one {\u05E9\u05E2\u05D4 \u05D0\u05D7\u05EA} two {\u05E9\u05E2\u05EA\u05D9\u05D9\u05DD} other {# \u05E9\u05E2\u05D5\u05EA}}",
|
|
214
|
+
xDays: "{count, plural, one {\u05D9\u05D5\u05DD \u05D0\u05D7\u05D3} two {\u05D9\u05D5\u05DE\u05D9\u05D9\u05DD} other {# \u05D9\u05DE\u05D9\u05DD}}",
|
|
215
|
+
aboutXMonths: "{count, plural, one {\u05D1\u05E2\u05E8\u05DA \u05D7\u05D5\u05D3\u05E9} two {\u05D1\u05E2\u05E8\u05DA \u05D7\u05D5\u05D3\u05E9\u05D9\u05D9\u05DD} other {\u05D1\u05E2\u05E8\u05DA # \u05D7\u05D5\u05D3\u05E9\u05D9\u05DD}}",
|
|
216
|
+
xMonths: "{count, plural, one {\u05D7\u05D5\u05D3\u05E9 \u05D0\u05D7\u05D3} two {\u05D7\u05D5\u05D3\u05E9\u05D9\u05D9\u05DD} other {# \u05D7\u05D5\u05D3\u05E9\u05D9\u05DD}}",
|
|
217
|
+
aboutXYears: "{count, plural, one {\u05D1\u05E2\u05E8\u05DA \u05E9\u05E0\u05D4} two {\u05D1\u05E2\u05E8\u05DA \u05E9\u05E0\u05EA\u05D9\u05D9\u05DD} other {\u05D1\u05E2\u05E8\u05DA # \u05E9\u05E0\u05D9\u05DD}}",
|
|
218
|
+
xYears: "{count, plural, one {\u05E9\u05E0\u05D4 \u05D0\u05D7\u05EA} two {\u05E9\u05E0\u05EA\u05D9\u05D9\u05DD} other {# \u05E9\u05E0\u05D9\u05DD}}",
|
|
219
|
+
overXYears: "{count, plural, one {\u05DE\u05E2\u05DC \u05E9\u05E0\u05D4} two {\u05DE\u05E2\u05DC \u05E9\u05E0\u05EA\u05D9\u05D9\u05DD} other {\u05DE\u05E2\u05DC # \u05E9\u05E0\u05D9\u05DD}}",
|
|
220
|
+
almostXYears: "{count, plural, one {\u05DB\u05DE\u05E2\u05D8 \u05E9\u05E0\u05D4} two {\u05DB\u05DE\u05E2\u05D8 \u05E9\u05E0\u05EA\u05D9\u05D9\u05DD} other {\u05DB\u05DE\u05E2\u05D8 # \u05E9\u05E0\u05D9\u05DD}}",
|
|
221
|
+
future: "\u05D1\u05E2\u05D5\u05D3 {distance}",
|
|
222
|
+
past: "\u05DC\u05E4\u05E0\u05D9 {distance}",
|
|
223
|
+
"compact.now": "\u05E2\u05DB\u05E9\u05D9\u05D5",
|
|
224
|
+
"compact.minutes": "\u05DC\u05E4\u05E0\u05D9 {count} \u05D3\u05E7'",
|
|
225
|
+
"compact.hours": "\u05DC\u05E4\u05E0\u05D9 {count} \u05E9\u05E2'",
|
|
226
|
+
"compact.days": "\u05DC\u05E4\u05E0\u05D9 {count} \u05D9\u05DE\u05D9\u05DD",
|
|
227
|
+
"compact.weeks": "\u05DC\u05E4\u05E0\u05D9 {count} \u05E9\u05D1\u05D5\u05E2\u05D5\u05EA",
|
|
228
|
+
"compact.months": "\u05DC\u05E4\u05E0\u05D9 {count} \u05D7\u05D5\u05D3\u05E9\u05D9\u05DD",
|
|
229
|
+
"day.today": "\u05D4\u05D9\u05D5\u05DD \u05D1-{time}",
|
|
230
|
+
"day.tomorrow": "\u05DE\u05D7\u05E8 \u05D1-{time}",
|
|
231
|
+
"day.other": "{date} \u05D1-{time}"
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
// ../../packages/time/src/locales/hi.json
|
|
237
|
+
var hi_exports = {};
|
|
238
|
+
__export(hi_exports, {
|
|
239
|
+
default: () => hi_default
|
|
240
|
+
});
|
|
241
|
+
var hi_default;
|
|
242
|
+
var init_hi = __esm({
|
|
243
|
+
"../../packages/time/src/locales/hi.json"() {
|
|
244
|
+
hi_default = {
|
|
245
|
+
xSeconds: "{count, plural, one {# \u0938\u0947\u0915\u0902\u0921} other {# \u0938\u0947\u0915\u0902\u0921}}",
|
|
246
|
+
lessThanXMinutes: "{count, plural, one {\u090F\u0915 \u092E\u093F\u0928\u091F \u0938\u0947 \u0915\u092E} other {# \u092E\u093F\u0928\u091F \u0938\u0947 \u0915\u092E}}",
|
|
247
|
+
xMinutes: "{count, plural, one {# \u092E\u093F\u0928\u091F} other {# \u092E\u093F\u0928\u091F}}",
|
|
248
|
+
aboutXHours: "{count, plural, one {\u0932\u0917\u092D\u0917 # \u0918\u0902\u091F\u093E} other {\u0932\u0917\u092D\u0917 # \u0918\u0902\u091F\u0947}}",
|
|
249
|
+
xHours: "{count, plural, one {# \u0918\u0902\u091F\u093E} other {# \u0918\u0902\u091F\u0947}}",
|
|
250
|
+
xDays: "{count, plural, one {# \u0926\u093F\u0928} other {# \u0926\u093F\u0928}}",
|
|
251
|
+
aboutXMonths: "{count, plural, one {\u0932\u0917\u092D\u0917 # \u092E\u0939\u0940\u0928\u093E} other {\u0932\u0917\u092D\u0917 # \u092E\u0939\u0940\u0928\u0947}}",
|
|
252
|
+
xMonths: "{count, plural, one {# \u092E\u0939\u0940\u0928\u093E} other {# \u092E\u0939\u0940\u0928\u0947}}",
|
|
253
|
+
aboutXYears: "{count, plural, one {\u0932\u0917\u092D\u0917 # \u0938\u093E\u0932} other {\u0932\u0917\u092D\u0917 # \u0938\u093E\u0932}}",
|
|
254
|
+
xYears: "{count, plural, one {# \u0938\u093E\u0932} other {# \u0938\u093E\u0932}}",
|
|
255
|
+
overXYears: "{count, plural, one {# \u0938\u093E\u0932 \u0938\u0947 \u091C\u093C\u094D\u092F\u093E\u0926\u093E} other {# \u0938\u093E\u0932 \u0938\u0947 \u091C\u093C\u094D\u092F\u093E\u0926\u093E}}",
|
|
256
|
+
almostXYears: "{count, plural, one {\u0915\u0930\u0940\u092C # \u0938\u093E\u0932} other {\u0915\u0930\u0940\u092C # \u0938\u093E\u0932}}",
|
|
257
|
+
future: "{distance} \u092E\u0947\u0902",
|
|
258
|
+
past: "{distance} \u092A\u0939\u0932\u0947",
|
|
259
|
+
"compact.now": "\u0905\u092D\u0940",
|
|
260
|
+
"compact.minutes": "{count} \u092E\u093F. \u092A\u0939\u0932\u0947",
|
|
261
|
+
"compact.hours": "{count} \u0918\u0902. \u092A\u0939\u0932\u0947",
|
|
262
|
+
"compact.days": "{count} \u0926\u093F\u0928 \u092A\u0939\u0932\u0947",
|
|
263
|
+
"compact.weeks": "{count} \u0939\u092B\u093C\u094D\u0924\u0947 \u092A\u0939\u0932\u0947",
|
|
264
|
+
"compact.months": "{count} \u092E\u093E\u0939 \u092A\u0939\u0932\u0947",
|
|
265
|
+
"day.today": "\u0906\u091C {time}",
|
|
266
|
+
"day.tomorrow": "\u0915\u0932 {time}",
|
|
267
|
+
"day.other": "{date} \u0915\u094B {time}"
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
|
|
272
|
+
// ../../packages/time/src/locales/id.json
|
|
273
|
+
var id_exports = {};
|
|
274
|
+
__export(id_exports, {
|
|
275
|
+
default: () => id_default
|
|
276
|
+
});
|
|
277
|
+
var id_default;
|
|
278
|
+
var init_id = __esm({
|
|
279
|
+
"../../packages/time/src/locales/id.json"() {
|
|
280
|
+
id_default = {
|
|
281
|
+
xSeconds: "{count, plural, other {# detik}}",
|
|
282
|
+
lessThanXMinutes: "{count, plural, other {kurang dari # menit}}",
|
|
283
|
+
xMinutes: "{count, plural, other {# menit}}",
|
|
284
|
+
aboutXHours: "{count, plural, other {sekitar # jam}}",
|
|
285
|
+
xHours: "{count, plural, other {# jam}}",
|
|
286
|
+
xDays: "{count, plural, other {# hari}}",
|
|
287
|
+
aboutXMonths: "{count, plural, other {sekitar # bulan}}",
|
|
288
|
+
xMonths: "{count, plural, other {# bulan}}",
|
|
289
|
+
aboutXYears: "{count, plural, other {sekitar # tahun}}",
|
|
290
|
+
xYears: "{count, plural, other {# tahun}}",
|
|
291
|
+
overXYears: "{count, plural, other {lebih dari # tahun}}",
|
|
292
|
+
almostXYears: "{count, plural, other {hampir # tahun}}",
|
|
293
|
+
future: "dalam {distance}",
|
|
294
|
+
past: "{distance} yang lalu",
|
|
295
|
+
"compact.now": "sekarang",
|
|
296
|
+
"compact.minutes": "{count}m lalu",
|
|
297
|
+
"compact.hours": "{count}j lalu",
|
|
298
|
+
"compact.days": "{count}h lalu",
|
|
299
|
+
"compact.weeks": "{count}mgg lalu",
|
|
300
|
+
"compact.months": "{count}bln lalu",
|
|
301
|
+
"day.today": "hari ini pukul {time}",
|
|
302
|
+
"day.tomorrow": "besok pukul {time}",
|
|
303
|
+
"day.other": "{date} pukul {time}"
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
|
|
164
308
|
// ../../packages/time/src/locales/it.json
|
|
165
309
|
var it_exports = {};
|
|
166
310
|
__export(it_exports, {
|
|
@@ -197,6 +341,78 @@ var init_it = __esm({
|
|
|
197
341
|
}
|
|
198
342
|
});
|
|
199
343
|
|
|
344
|
+
// ../../packages/time/src/locales/ja.json
|
|
345
|
+
var ja_exports = {};
|
|
346
|
+
__export(ja_exports, {
|
|
347
|
+
default: () => ja_default
|
|
348
|
+
});
|
|
349
|
+
var ja_default;
|
|
350
|
+
var init_ja = __esm({
|
|
351
|
+
"../../packages/time/src/locales/ja.json"() {
|
|
352
|
+
ja_default = {
|
|
353
|
+
xSeconds: "{count, plural, other {#\u79D2}}",
|
|
354
|
+
lessThanXMinutes: "{count, plural, other {#\u5206\u672A\u6E80}}",
|
|
355
|
+
xMinutes: "{count, plural, other {#\u5206}}",
|
|
356
|
+
aboutXHours: "{count, plural, other {\u7D04#\u6642\u9593}}",
|
|
357
|
+
xHours: "{count, plural, other {#\u6642\u9593}}",
|
|
358
|
+
xDays: "{count, plural, other {#\u65E5}}",
|
|
359
|
+
aboutXMonths: "{count, plural, other {\u7D04#\u304B\u6708}}",
|
|
360
|
+
xMonths: "{count, plural, other {#\u304B\u6708}}",
|
|
361
|
+
aboutXYears: "{count, plural, other {\u7D04#\u5E74}}",
|
|
362
|
+
xYears: "{count, plural, other {#\u5E74}}",
|
|
363
|
+
overXYears: "{count, plural, other {#\u5E74\u4EE5\u4E0A}}",
|
|
364
|
+
almostXYears: "{count, plural, other {\u307B\u307C#\u5E74}}",
|
|
365
|
+
future: "{distance}\u5F8C",
|
|
366
|
+
past: "{distance}\u524D",
|
|
367
|
+
"compact.now": "\u4ECA",
|
|
368
|
+
"compact.minutes": "{count}\u5206\u524D",
|
|
369
|
+
"compact.hours": "{count}\u6642\u9593\u524D",
|
|
370
|
+
"compact.days": "{count}\u65E5\u524D",
|
|
371
|
+
"compact.weeks": "{count}\u9031\u9593\u524D",
|
|
372
|
+
"compact.months": "{count}\u304B\u6708\u524D",
|
|
373
|
+
"day.today": "\u4ECA\u65E5 {time}",
|
|
374
|
+
"day.tomorrow": "\u660E\u65E5 {time}",
|
|
375
|
+
"day.other": "{date} {time}"
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
|
|
380
|
+
// ../../packages/time/src/locales/ko.json
|
|
381
|
+
var ko_exports = {};
|
|
382
|
+
__export(ko_exports, {
|
|
383
|
+
default: () => ko_default
|
|
384
|
+
});
|
|
385
|
+
var ko_default;
|
|
386
|
+
var init_ko = __esm({
|
|
387
|
+
"../../packages/time/src/locales/ko.json"() {
|
|
388
|
+
ko_default = {
|
|
389
|
+
xSeconds: "{count, plural, other {#\uCD08}}",
|
|
390
|
+
lessThanXMinutes: "{count, plural, other {#\uBD84 \uBBF8\uB9CC}}",
|
|
391
|
+
xMinutes: "{count, plural, other {#\uBD84}}",
|
|
392
|
+
aboutXHours: "{count, plural, other {\uC57D #\uC2DC\uAC04}}",
|
|
393
|
+
xHours: "{count, plural, other {#\uC2DC\uAC04}}",
|
|
394
|
+
xDays: "{count, plural, other {#\uC77C}}",
|
|
395
|
+
aboutXMonths: "{count, plural, other {\uC57D #\uAC1C\uC6D4}}",
|
|
396
|
+
xMonths: "{count, plural, other {#\uAC1C\uC6D4}}",
|
|
397
|
+
aboutXYears: "{count, plural, other {\uC57D #\uB144}}",
|
|
398
|
+
xYears: "{count, plural, other {#\uB144}}",
|
|
399
|
+
overXYears: "{count, plural, other {#\uB144 \uC774\uC0C1}}",
|
|
400
|
+
almostXYears: "{count, plural, other {\uAC70\uC758 #\uB144}}",
|
|
401
|
+
future: "{distance} \uD6C4",
|
|
402
|
+
past: "{distance} \uC804",
|
|
403
|
+
"compact.now": "\uC9C0\uAE08",
|
|
404
|
+
"compact.minutes": "{count}\uBD84 \uC804",
|
|
405
|
+
"compact.hours": "{count}\uC2DC\uAC04 \uC804",
|
|
406
|
+
"compact.days": "{count}\uC77C \uC804",
|
|
407
|
+
"compact.weeks": "{count}\uC8FC \uC804",
|
|
408
|
+
"compact.months": "{count}\uAC1C\uC6D4 \uC804",
|
|
409
|
+
"day.today": "\uC624\uB298 {time}",
|
|
410
|
+
"day.tomorrow": "\uB0B4\uC77C {time}",
|
|
411
|
+
"day.other": "{date} {time}"
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
});
|
|
415
|
+
|
|
200
416
|
// ../../packages/time/src/locales/nl.json
|
|
201
417
|
var nl_exports = {};
|
|
202
418
|
__export(nl_exports, {
|
|
@@ -233,6 +449,42 @@ var init_nl = __esm({
|
|
|
233
449
|
}
|
|
234
450
|
});
|
|
235
451
|
|
|
452
|
+
// ../../packages/time/src/locales/pl.json
|
|
453
|
+
var pl_exports = {};
|
|
454
|
+
__export(pl_exports, {
|
|
455
|
+
default: () => pl_default
|
|
456
|
+
});
|
|
457
|
+
var pl_default;
|
|
458
|
+
var init_pl = __esm({
|
|
459
|
+
"../../packages/time/src/locales/pl.json"() {
|
|
460
|
+
pl_default = {
|
|
461
|
+
xSeconds: "{count, plural, one {# sekund\u0119} few {# sekundy} many {# sekund} other {# sekund}}",
|
|
462
|
+
lessThanXMinutes: "{count, plural, one {mniej ni\u017C minut\u0119} few {mniej ni\u017C # minuty} many {mniej ni\u017C # minut} other {mniej ni\u017C # minut}}",
|
|
463
|
+
xMinutes: "{count, plural, one {# minut\u0119} few {# minuty} many {# minut} other {# minut}}",
|
|
464
|
+
aboutXHours: "{count, plural, one {oko\u0142o # godzin\u0119} few {oko\u0142o # godziny} many {oko\u0142o # godzin} other {oko\u0142o # godzin}}",
|
|
465
|
+
xHours: "{count, plural, one {# godzin\u0119} few {# godziny} many {# godzin} other {# godzin}}",
|
|
466
|
+
xDays: "{count, plural, one {# dzie\u0144} few {# dni} many {# dni} other {# dni}}",
|
|
467
|
+
aboutXMonths: "{count, plural, one {oko\u0142o # miesi\u0105c} few {oko\u0142o # miesi\u0105ce} many {oko\u0142o # miesi\u0119cy} other {oko\u0142o # miesi\u0119cy}}",
|
|
468
|
+
xMonths: "{count, plural, one {# miesi\u0105c} few {# miesi\u0105ce} many {# miesi\u0119cy} other {# miesi\u0119cy}}",
|
|
469
|
+
aboutXYears: "{count, plural, one {oko\u0142o # rok} few {oko\u0142o # lata} many {oko\u0142o # lat} other {oko\u0142o # lat}}",
|
|
470
|
+
xYears: "{count, plural, one {# rok} few {# lata} many {# lat} other {# lat}}",
|
|
471
|
+
overXYears: "{count, plural, one {ponad # rok} few {ponad # lata} many {ponad # lat} other {ponad # lat}}",
|
|
472
|
+
almostXYears: "{count, plural, one {prawie # rok} few {prawie # lata} many {prawie # lat} other {prawie # lat}}",
|
|
473
|
+
future: "za {distance}",
|
|
474
|
+
past: "{distance} temu",
|
|
475
|
+
"compact.now": "teraz",
|
|
476
|
+
"compact.minutes": "{count} min temu",
|
|
477
|
+
"compact.hours": "{count} godz. temu",
|
|
478
|
+
"compact.days": "{count} d. temu",
|
|
479
|
+
"compact.weeks": "{count} tyg. temu",
|
|
480
|
+
"compact.months": "{count} mies. temu",
|
|
481
|
+
"day.today": "dzisiaj o {time}",
|
|
482
|
+
"day.tomorrow": "jutro o {time}",
|
|
483
|
+
"day.other": "{date} o {time}"
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
});
|
|
487
|
+
|
|
236
488
|
// ../../packages/time/src/locales/pt-BR.json
|
|
237
489
|
var pt_BR_exports = {};
|
|
238
490
|
__export(pt_BR_exports, {
|
|
@@ -269,6 +521,258 @@ var init_pt_BR = __esm({
|
|
|
269
521
|
}
|
|
270
522
|
});
|
|
271
523
|
|
|
524
|
+
// ../../packages/time/src/locales/ru.json
|
|
525
|
+
var ru_exports = {};
|
|
526
|
+
__export(ru_exports, {
|
|
527
|
+
default: () => ru_default
|
|
528
|
+
});
|
|
529
|
+
var ru_default;
|
|
530
|
+
var init_ru = __esm({
|
|
531
|
+
"../../packages/time/src/locales/ru.json"() {
|
|
532
|
+
ru_default = {
|
|
533
|
+
xSeconds: "{count, plural, one {# \u0441\u0435\u043A\u0443\u043D\u0434\u0443} few {# \u0441\u0435\u043A\u0443\u043D\u0434\u044B} many {# \u0441\u0435\u043A\u0443\u043D\u0434} other {# \u0441\u0435\u043A\u0443\u043D\u0434\u044B}}",
|
|
534
|
+
lessThanXMinutes: "{count, plural, one {\u043C\u0435\u043D\u044C\u0448\u0435 # \u043C\u0438\u043D\u0443\u0442\u044B} few {\u043C\u0435\u043D\u044C\u0448\u0435 # \u043C\u0438\u043D\u0443\u0442} many {\u043C\u0435\u043D\u044C\u0448\u0435 # \u043C\u0438\u043D\u0443\u0442} other {\u043C\u0435\u043D\u044C\u0448\u0435 # \u043C\u0438\u043D\u0443\u0442}}",
|
|
535
|
+
xMinutes: "{count, plural, one {# \u043C\u0438\u043D\u0443\u0442\u0443} few {# \u043C\u0438\u043D\u0443\u0442\u044B} many {# \u043C\u0438\u043D\u0443\u0442} other {# \u043C\u0438\u043D\u0443\u0442\u044B}}",
|
|
536
|
+
aboutXHours: "{count, plural, one {\u043E\u043A\u043E\u043B\u043E # \u0447\u0430\u0441\u0430} few {\u043E\u043A\u043E\u043B\u043E # \u0447\u0430\u0441\u043E\u0432} many {\u043E\u043A\u043E\u043B\u043E # \u0447\u0430\u0441\u043E\u0432} other {\u043E\u043A\u043E\u043B\u043E # \u0447\u0430\u0441\u043E\u0432}}",
|
|
537
|
+
xHours: "{count, plural, one {# \u0447\u0430\u0441} few {# \u0447\u0430\u0441\u0430} many {# \u0447\u0430\u0441\u043E\u0432} other {# \u0447\u0430\u0441\u0430}}",
|
|
538
|
+
xDays: "{count, plural, one {# \u0434\u0435\u043D\u044C} few {# \u0434\u043D\u044F} many {# \u0434\u043D\u0435\u0439} other {# \u0434\u043D\u044F}}",
|
|
539
|
+
aboutXMonths: "{count, plural, one {\u043E\u043A\u043E\u043B\u043E # \u043C\u0435\u0441\u044F\u0446\u0430} few {\u043E\u043A\u043E\u043B\u043E # \u043C\u0435\u0441\u044F\u0446\u0435\u0432} many {\u043E\u043A\u043E\u043B\u043E # \u043C\u0435\u0441\u044F\u0446\u0435\u0432} other {\u043E\u043A\u043E\u043B\u043E # \u043C\u0435\u0441\u044F\u0446\u0435\u0432}}",
|
|
540
|
+
xMonths: "{count, plural, one {# \u043C\u0435\u0441\u044F\u0446} few {# \u043C\u0435\u0441\u044F\u0446\u0430} many {# \u043C\u0435\u0441\u044F\u0446\u0435\u0432} other {# \u043C\u0435\u0441\u044F\u0446\u0430}}",
|
|
541
|
+
aboutXYears: "{count, plural, one {\u043E\u043A\u043E\u043B\u043E # \u0433\u043E\u0434\u0430} few {\u043E\u043A\u043E\u043B\u043E # \u043B\u0435\u0442} many {\u043E\u043A\u043E\u043B\u043E # \u043B\u0435\u0442} other {\u043E\u043A\u043E\u043B\u043E # \u043B\u0435\u0442}}",
|
|
542
|
+
xYears: "{count, plural, one {# \u0433\u043E\u0434} few {# \u0433\u043E\u0434\u0430} many {# \u043B\u0435\u0442} other {# \u0433\u043E\u0434\u0430}}",
|
|
543
|
+
overXYears: "{count, plural, one {\u0431\u043E\u043B\u044C\u0448\u0435 # \u0433\u043E\u0434\u0430} few {\u0431\u043E\u043B\u044C\u0448\u0435 # \u043B\u0435\u0442} many {\u0431\u043E\u043B\u044C\u0448\u0435 # \u043B\u0435\u0442} other {\u0431\u043E\u043B\u044C\u0448\u0435 # \u043B\u0435\u0442}}",
|
|
544
|
+
almostXYears: "{count, plural, one {\u043F\u043E\u0447\u0442\u0438 # \u0433\u043E\u0434} few {\u043F\u043E\u0447\u0442\u0438 # \u0433\u043E\u0434\u0430} many {\u043F\u043E\u0447\u0442\u0438 # \u043B\u0435\u0442} other {\u043F\u043E\u0447\u0442\u0438 # \u0433\u043E\u0434\u0430}}",
|
|
545
|
+
future: "\u0447\u0435\u0440\u0435\u0437 {distance}",
|
|
546
|
+
past: "{distance} \u043D\u0430\u0437\u0430\u0434",
|
|
547
|
+
"compact.now": "\u0441\u0435\u0439\u0447\u0430\u0441",
|
|
548
|
+
"compact.minutes": "{count} \u043C\u0438\u043D \u043D\u0430\u0437\u0430\u0434",
|
|
549
|
+
"compact.hours": "{count} \u0447 \u043D\u0430\u0437\u0430\u0434",
|
|
550
|
+
"compact.days": "{count} \u0434 \u043D\u0430\u0437\u0430\u0434",
|
|
551
|
+
"compact.weeks": "{count} \u043D\u0435\u0434 \u043D\u0430\u0437\u0430\u0434",
|
|
552
|
+
"compact.months": "{count} \u043C\u0435\u0441 \u043D\u0430\u0437\u0430\u0434",
|
|
553
|
+
"day.today": "\u0441\u0435\u0433\u043E\u0434\u043D\u044F \u0432 {time}",
|
|
554
|
+
"day.tomorrow": "\u0437\u0430\u0432\u0442\u0440\u0430 \u0432 {time}",
|
|
555
|
+
"day.other": "{date} \u0432 {time}"
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
});
|
|
559
|
+
|
|
560
|
+
// ../../packages/time/src/locales/sv.json
|
|
561
|
+
var sv_exports = {};
|
|
562
|
+
__export(sv_exports, {
|
|
563
|
+
default: () => sv_default
|
|
564
|
+
});
|
|
565
|
+
var sv_default;
|
|
566
|
+
var init_sv = __esm({
|
|
567
|
+
"../../packages/time/src/locales/sv.json"() {
|
|
568
|
+
sv_default = {
|
|
569
|
+
xSeconds: "{count, plural, one {# sekund} other {# sekunder}}",
|
|
570
|
+
lessThanXMinutes: "{count, plural, one {mindre \xE4n en minut} other {mindre \xE4n # minuter}}",
|
|
571
|
+
xMinutes: "{count, plural, one {# minut} other {# minuter}}",
|
|
572
|
+
aboutXHours: "{count, plural, one {ungef\xE4r # timme} other {ungef\xE4r # timmar}}",
|
|
573
|
+
xHours: "{count, plural, one {# timme} other {# timmar}}",
|
|
574
|
+
xDays: "{count, plural, one {# dag} other {# dagar}}",
|
|
575
|
+
aboutXMonths: "{count, plural, one {ungef\xE4r # m\xE5nad} other {ungef\xE4r # m\xE5nader}}",
|
|
576
|
+
xMonths: "{count, plural, one {# m\xE5nad} other {# m\xE5nader}}",
|
|
577
|
+
aboutXYears: "{count, plural, one {ungef\xE4r # \xE5r} other {ungef\xE4r # \xE5r}}",
|
|
578
|
+
xYears: "{count, plural, one {# \xE5r} other {# \xE5r}}",
|
|
579
|
+
overXYears: "{count, plural, one {\xF6ver # \xE5r} other {\xF6ver # \xE5r}}",
|
|
580
|
+
almostXYears: "{count, plural, one {n\xE4stan # \xE5r} other {n\xE4stan # \xE5r}}",
|
|
581
|
+
future: "om {distance}",
|
|
582
|
+
past: "f\xF6r {distance} sedan",
|
|
583
|
+
"compact.now": "nu",
|
|
584
|
+
"compact.minutes": "{count}m sen",
|
|
585
|
+
"compact.hours": "{count}h sen",
|
|
586
|
+
"compact.days": "{count}d sen",
|
|
587
|
+
"compact.weeks": "{count}v sen",
|
|
588
|
+
"compact.months": "{count}m\xE5n sen",
|
|
589
|
+
"day.today": "idag kl. {time}",
|
|
590
|
+
"day.tomorrow": "imorgon kl. {time}",
|
|
591
|
+
"day.other": "{date} kl. {time}"
|
|
592
|
+
};
|
|
593
|
+
}
|
|
594
|
+
});
|
|
595
|
+
|
|
596
|
+
// ../../packages/time/src/locales/th.json
|
|
597
|
+
var th_exports = {};
|
|
598
|
+
__export(th_exports, {
|
|
599
|
+
default: () => th_default
|
|
600
|
+
});
|
|
601
|
+
var th_default;
|
|
602
|
+
var init_th = __esm({
|
|
603
|
+
"../../packages/time/src/locales/th.json"() {
|
|
604
|
+
th_default = {
|
|
605
|
+
xSeconds: "{count, plural, other {# \u0E27\u0E34\u0E19\u0E32\u0E17\u0E35}}",
|
|
606
|
+
lessThanXMinutes: "{count, plural, other {\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32 # \u0E19\u0E32\u0E17\u0E35}}",
|
|
607
|
+
xMinutes: "{count, plural, other {# \u0E19\u0E32\u0E17\u0E35}}",
|
|
608
|
+
aboutXHours: "{count, plural, other {\u0E1B\u0E23\u0E30\u0E21\u0E32\u0E13 # \u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07}}",
|
|
609
|
+
xHours: "{count, plural, other {# \u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07}}",
|
|
610
|
+
xDays: "{count, plural, other {# \u0E27\u0E31\u0E19}}",
|
|
611
|
+
aboutXMonths: "{count, plural, other {\u0E1B\u0E23\u0E30\u0E21\u0E32\u0E13 # \u0E40\u0E14\u0E37\u0E2D\u0E19}}",
|
|
612
|
+
xMonths: "{count, plural, other {# \u0E40\u0E14\u0E37\u0E2D\u0E19}}",
|
|
613
|
+
aboutXYears: "{count, plural, other {\u0E1B\u0E23\u0E30\u0E21\u0E32\u0E13 # \u0E1B\u0E35}}",
|
|
614
|
+
xYears: "{count, plural, other {# \u0E1B\u0E35}}",
|
|
615
|
+
overXYears: "{count, plural, other {\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32 # \u0E1B\u0E35}}",
|
|
616
|
+
almostXYears: "{count, plural, other {\u0E40\u0E01\u0E37\u0E2D\u0E1A # \u0E1B\u0E35}}",
|
|
617
|
+
future: "\u0E2D\u0E35\u0E01 {distance}",
|
|
618
|
+
past: "{distance}\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27",
|
|
619
|
+
"compact.now": "\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49",
|
|
620
|
+
"compact.minutes": "{count} \u0E19\u0E32\u0E17\u0E35\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27",
|
|
621
|
+
"compact.hours": "{count} \u0E0A\u0E21.\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27",
|
|
622
|
+
"compact.days": "{count} \u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27",
|
|
623
|
+
"compact.weeks": "{count} \u0E2A\u0E31\u0E1B\u0E14\u0E32\u0E2B\u0E4C\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27",
|
|
624
|
+
"compact.months": "{count} \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27",
|
|
625
|
+
"day.today": "\u0E27\u0E31\u0E19\u0E19\u0E35\u0E49\u0E40\u0E27\u0E25\u0E32 {time}",
|
|
626
|
+
"day.tomorrow": "\u0E1E\u0E23\u0E38\u0E48\u0E07\u0E19\u0E35\u0E49\u0E40\u0E27\u0E25\u0E32 {time}",
|
|
627
|
+
"day.other": "{date} \u0E40\u0E27\u0E25\u0E32 {time}"
|
|
628
|
+
};
|
|
629
|
+
}
|
|
630
|
+
});
|
|
631
|
+
|
|
632
|
+
// ../../packages/time/src/locales/tr.json
|
|
633
|
+
var tr_exports = {};
|
|
634
|
+
__export(tr_exports, {
|
|
635
|
+
default: () => tr_default
|
|
636
|
+
});
|
|
637
|
+
var tr_default;
|
|
638
|
+
var init_tr = __esm({
|
|
639
|
+
"../../packages/time/src/locales/tr.json"() {
|
|
640
|
+
tr_default = {
|
|
641
|
+
xSeconds: "{count, plural, one {# saniye} other {# saniye}}",
|
|
642
|
+
lessThanXMinutes: "{count, plural, one {bir dakikadan az} other {# dakikadan az}}",
|
|
643
|
+
xMinutes: "{count, plural, one {# dakika} other {# dakika}}",
|
|
644
|
+
aboutXHours: "{count, plural, one {yakla\u015F\u0131k # saat} other {yakla\u015F\u0131k # saat}}",
|
|
645
|
+
xHours: "{count, plural, one {# saat} other {# saat}}",
|
|
646
|
+
xDays: "{count, plural, one {# g\xFCn} other {# g\xFCn}}",
|
|
647
|
+
aboutXMonths: "{count, plural, one {yakla\u015F\u0131k # ay} other {yakla\u015F\u0131k # ay}}",
|
|
648
|
+
xMonths: "{count, plural, one {# ay} other {# ay}}",
|
|
649
|
+
aboutXYears: "{count, plural, one {yakla\u015F\u0131k # y\u0131l} other {yakla\u015F\u0131k # y\u0131l}}",
|
|
650
|
+
xYears: "{count, plural, one {# y\u0131l} other {# y\u0131l}}",
|
|
651
|
+
overXYears: "{count, plural, one {# y\u0131ldan fazla} other {# y\u0131ldan fazla}}",
|
|
652
|
+
almostXYears: "{count, plural, one {neredeyse # y\u0131l} other {neredeyse # y\u0131l}}",
|
|
653
|
+
future: "{distance} sonra",
|
|
654
|
+
past: "{distance} \xF6nce",
|
|
655
|
+
"compact.now": "\u015Fimdi",
|
|
656
|
+
"compact.minutes": "{count} dk \xF6nce",
|
|
657
|
+
"compact.hours": "{count} sa \xF6nce",
|
|
658
|
+
"compact.days": "{count} g \xF6nce",
|
|
659
|
+
"compact.weeks": "{count} hf \xF6nce",
|
|
660
|
+
"compact.months": "{count} ay \xF6nce",
|
|
661
|
+
"day.today": "bug\xFCn {time}",
|
|
662
|
+
"day.tomorrow": "yar\u0131n {time}",
|
|
663
|
+
"day.other": "{date} {time}"
|
|
664
|
+
};
|
|
665
|
+
}
|
|
666
|
+
});
|
|
667
|
+
|
|
668
|
+
// ../../packages/time/src/locales/vi.json
|
|
669
|
+
var vi_exports = {};
|
|
670
|
+
__export(vi_exports, {
|
|
671
|
+
default: () => vi_default
|
|
672
|
+
});
|
|
673
|
+
var vi_default;
|
|
674
|
+
var init_vi = __esm({
|
|
675
|
+
"../../packages/time/src/locales/vi.json"() {
|
|
676
|
+
vi_default = {
|
|
677
|
+
xSeconds: "{count, plural, other {# gi\xE2y}}",
|
|
678
|
+
lessThanXMinutes: "{count, plural, other {d\u01B0\u1EDBi # ph\xFAt}}",
|
|
679
|
+
xMinutes: "{count, plural, other {# ph\xFAt}}",
|
|
680
|
+
aboutXHours: "{count, plural, other {kho\u1EA3ng # gi\u1EDD}}",
|
|
681
|
+
xHours: "{count, plural, other {# gi\u1EDD}}",
|
|
682
|
+
xDays: "{count, plural, other {# ng\xE0y}}",
|
|
683
|
+
aboutXMonths: "{count, plural, other {kho\u1EA3ng # th\xE1ng}}",
|
|
684
|
+
xMonths: "{count, plural, other {# th\xE1ng}}",
|
|
685
|
+
aboutXYears: "{count, plural, other {kho\u1EA3ng # n\u0103m}}",
|
|
686
|
+
xYears: "{count, plural, other {# n\u0103m}}",
|
|
687
|
+
overXYears: "{count, plural, other {h\u01A1n # n\u0103m}}",
|
|
688
|
+
almostXYears: "{count, plural, other {g\u1EA7n # n\u0103m}}",
|
|
689
|
+
future: "trong {distance}",
|
|
690
|
+
past: "{distance} tr\u01B0\u1EDBc",
|
|
691
|
+
"compact.now": "b\xE2y gi\u1EDD",
|
|
692
|
+
"compact.minutes": "{count} ph\xFAt tr\u01B0\u1EDBc",
|
|
693
|
+
"compact.hours": "{count} gi\u1EDD tr\u01B0\u1EDBc",
|
|
694
|
+
"compact.days": "{count} ng\xE0y tr\u01B0\u1EDBc",
|
|
695
|
+
"compact.weeks": "{count} tu\u1EA7n tr\u01B0\u1EDBc",
|
|
696
|
+
"compact.months": "{count} th\xE1ng tr\u01B0\u1EDBc",
|
|
697
|
+
"day.today": "h\xF4m nay l\xFAc {time}",
|
|
698
|
+
"day.tomorrow": "ng\xE0y mai l\xFAc {time}",
|
|
699
|
+
"day.other": "{date} l\xFAc {time}"
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
});
|
|
703
|
+
|
|
704
|
+
// ../../packages/time/src/locales/zh-Hans.json
|
|
705
|
+
var zh_Hans_exports = {};
|
|
706
|
+
__export(zh_Hans_exports, {
|
|
707
|
+
default: () => zh_Hans_default
|
|
708
|
+
});
|
|
709
|
+
var zh_Hans_default;
|
|
710
|
+
var init_zh_Hans = __esm({
|
|
711
|
+
"../../packages/time/src/locales/zh-Hans.json"() {
|
|
712
|
+
zh_Hans_default = {
|
|
713
|
+
xSeconds: "{count, plural, other {# \u79D2}}",
|
|
714
|
+
lessThanXMinutes: "{count, plural, other {\u4E0D\u5230 # \u5206\u949F}}",
|
|
715
|
+
xMinutes: "{count, plural, other {# \u5206\u949F}}",
|
|
716
|
+
aboutXHours: "{count, plural, other {\u7EA6 # \u5C0F\u65F6}}",
|
|
717
|
+
xHours: "{count, plural, other {# \u5C0F\u65F6}}",
|
|
718
|
+
xDays: "{count, plural, other {# \u5929}}",
|
|
719
|
+
aboutXMonths: "{count, plural, other {\u7EA6 # \u4E2A\u6708}}",
|
|
720
|
+
xMonths: "{count, plural, other {# \u4E2A\u6708}}",
|
|
721
|
+
aboutXYears: "{count, plural, other {\u7EA6 # \u5E74}}",
|
|
722
|
+
xYears: "{count, plural, other {# \u5E74}}",
|
|
723
|
+
overXYears: "{count, plural, other {\u8D85\u8FC7 # \u5E74}}",
|
|
724
|
+
almostXYears: "{count, plural, other {\u5C06\u8FD1 # \u5E74}}",
|
|
725
|
+
future: "{distance}\u540E",
|
|
726
|
+
past: "{distance}\u524D",
|
|
727
|
+
"compact.now": "\u521A\u521A",
|
|
728
|
+
"compact.minutes": "{count}\u5206\u949F\u524D",
|
|
729
|
+
"compact.hours": "{count}\u5C0F\u65F6\u524D",
|
|
730
|
+
"compact.days": "{count}\u5929\u524D",
|
|
731
|
+
"compact.weeks": "{count}\u5468\u524D",
|
|
732
|
+
"compact.months": "{count}\u4E2A\u6708\u524D",
|
|
733
|
+
"day.today": "\u4ECA\u5929 {time}",
|
|
734
|
+
"day.tomorrow": "\u660E\u5929 {time}",
|
|
735
|
+
"day.other": "{date} {time}"
|
|
736
|
+
};
|
|
737
|
+
}
|
|
738
|
+
});
|
|
739
|
+
|
|
740
|
+
// ../../packages/time/src/locales/zh-Hant.json
|
|
741
|
+
var zh_Hant_exports = {};
|
|
742
|
+
__export(zh_Hant_exports, {
|
|
743
|
+
default: () => zh_Hant_default
|
|
744
|
+
});
|
|
745
|
+
var zh_Hant_default;
|
|
746
|
+
var init_zh_Hant = __esm({
|
|
747
|
+
"../../packages/time/src/locales/zh-Hant.json"() {
|
|
748
|
+
zh_Hant_default = {
|
|
749
|
+
xSeconds: "{count, plural, other {# \u79D2}}",
|
|
750
|
+
lessThanXMinutes: "{count, plural, other {\u4E0D\u5230 # \u5206\u9418}}",
|
|
751
|
+
xMinutes: "{count, plural, other {# \u5206\u9418}}",
|
|
752
|
+
aboutXHours: "{count, plural, other {\u5927\u7D04 # \u5C0F\u6642}}",
|
|
753
|
+
xHours: "{count, plural, other {# \u5C0F\u6642}}",
|
|
754
|
+
xDays: "{count, plural, other {# \u5929}}",
|
|
755
|
+
aboutXMonths: "{count, plural, other {\u5927\u7D04 # \u500B\u6708}}",
|
|
756
|
+
xMonths: "{count, plural, other {# \u500B\u6708}}",
|
|
757
|
+
aboutXYears: "{count, plural, other {\u5927\u7D04 # \u5E74}}",
|
|
758
|
+
xYears: "{count, plural, other {# \u5E74}}",
|
|
759
|
+
overXYears: "{count, plural, other {\u8D85\u904E # \u5E74}}",
|
|
760
|
+
almostXYears: "{count, plural, other {\u5C07\u8FD1 # \u5E74}}",
|
|
761
|
+
future: "{distance}\u5F8C",
|
|
762
|
+
past: "{distance}\u524D",
|
|
763
|
+
"compact.now": "\u73FE\u5728",
|
|
764
|
+
"compact.minutes": "{count} \u5206\u9418\u524D",
|
|
765
|
+
"compact.hours": "{count} \u5C0F\u6642\u524D",
|
|
766
|
+
"compact.days": "{count} \u5929\u524D",
|
|
767
|
+
"compact.weeks": "{count} \u9031\u524D",
|
|
768
|
+
"compact.months": "{count} \u500B\u6708\u524D",
|
|
769
|
+
"day.today": "\u4ECA\u5929 {time}",
|
|
770
|
+
"day.tomorrow": "\u660E\u5929 {time}",
|
|
771
|
+
"day.other": "{date} {time}"
|
|
772
|
+
};
|
|
773
|
+
}
|
|
774
|
+
});
|
|
775
|
+
|
|
272
776
|
// ../../node_modules/.pnpm/ws@8.21.3_bufferutil@4.1.0/node_modules/ws/lib/constants.js
|
|
273
777
|
var require_constants = __commonJS({
|
|
274
778
|
"../../node_modules/.pnpm/ws@8.21.3_bufferutil@4.1.0/node_modules/ws/lib/constants.js"(exports, module) {
|
|
@@ -325,9 +829,9 @@ var require_node_gyp_build = __commonJS({
|
|
|
325
829
|
var debug = getFirst(path.join(dir, "build/Debug"), matchBuild);
|
|
326
830
|
if (debug) return debug;
|
|
327
831
|
}
|
|
328
|
-
var prebuild =
|
|
832
|
+
var prebuild = resolve22(dir);
|
|
329
833
|
if (prebuild) return prebuild;
|
|
330
|
-
var nearby =
|
|
834
|
+
var nearby = resolve22(path.dirname(process.execPath));
|
|
331
835
|
if (nearby) return nearby;
|
|
332
836
|
var target = [
|
|
333
837
|
"platform=" + platform,
|
|
@@ -343,7 +847,7 @@ var require_node_gyp_build = __commonJS({
|
|
|
343
847
|
// eslint-disable-line
|
|
344
848
|
].filter(Boolean).join(" ");
|
|
345
849
|
throw new Error("No native build was found for " + target + "\n loaded from: " + dir + "\n");
|
|
346
|
-
function
|
|
850
|
+
function resolve22(dir2) {
|
|
347
851
|
var tuples = readdirSync(path.join(dir2, "prebuilds")).map(parseTuple);
|
|
348
852
|
var tuple2 = tuples.filter(matchTuple(platform, arch)).sort(compareTuples)[0];
|
|
349
853
|
if (!tuple2) return;
|
|
@@ -6790,9 +7294,9 @@ var require_dispatcher_base = __commonJS({
|
|
|
6790
7294
|
}
|
|
6791
7295
|
close(callback) {
|
|
6792
7296
|
if (callback === void 0) {
|
|
6793
|
-
return new Promise((
|
|
7297
|
+
return new Promise((resolve22, reject) => {
|
|
6794
7298
|
this.close((err, data) => {
|
|
6795
|
-
return err ? reject(err) :
|
|
7299
|
+
return err ? reject(err) : resolve22(data);
|
|
6796
7300
|
});
|
|
6797
7301
|
});
|
|
6798
7302
|
}
|
|
@@ -6830,9 +7334,9 @@ var require_dispatcher_base = __commonJS({
|
|
|
6830
7334
|
err = null;
|
|
6831
7335
|
}
|
|
6832
7336
|
if (callback === void 0) {
|
|
6833
|
-
return new Promise((
|
|
7337
|
+
return new Promise((resolve22, reject) => {
|
|
6834
7338
|
this.destroy(err, (err2, data) => {
|
|
6835
|
-
return err2 ? reject(err2) :
|
|
7339
|
+
return err2 ? reject(err2) : resolve22(data);
|
|
6836
7340
|
});
|
|
6837
7341
|
});
|
|
6838
7342
|
}
|
|
@@ -11787,12 +12291,12 @@ upgrade: ${upgrade2}\r
|
|
|
11787
12291
|
cb();
|
|
11788
12292
|
}
|
|
11789
12293
|
}
|
|
11790
|
-
const waitForDrain = () => new Promise((
|
|
12294
|
+
const waitForDrain = () => new Promise((resolve22, reject) => {
|
|
11791
12295
|
assert2(callback === null);
|
|
11792
12296
|
if (socket[kError]) {
|
|
11793
12297
|
reject(socket[kError]);
|
|
11794
12298
|
} else {
|
|
11795
|
-
callback =
|
|
12299
|
+
callback = resolve22;
|
|
11796
12300
|
}
|
|
11797
12301
|
});
|
|
11798
12302
|
socket.on("close", onDrain).on("drain", onDrain);
|
|
@@ -13150,12 +13654,12 @@ var require_client_h2 = __commonJS({
|
|
|
13150
13654
|
cb();
|
|
13151
13655
|
}
|
|
13152
13656
|
}
|
|
13153
|
-
const waitForDrain = () => new Promise((
|
|
13657
|
+
const waitForDrain = () => new Promise((resolve22, reject) => {
|
|
13154
13658
|
assert2(callback === null);
|
|
13155
13659
|
if (socket[kError]) {
|
|
13156
13660
|
reject(socket[kError]);
|
|
13157
13661
|
} else {
|
|
13158
|
-
callback =
|
|
13662
|
+
callback = resolve22;
|
|
13159
13663
|
}
|
|
13160
13664
|
});
|
|
13161
13665
|
h2stream.on("close", onDrain).on("drain", onDrain);
|
|
@@ -13523,16 +14027,16 @@ var require_client = __commonJS({
|
|
|
13523
14027
|
return this[kNeedDrain] < 2;
|
|
13524
14028
|
}
|
|
13525
14029
|
[kClose]() {
|
|
13526
|
-
return new Promise((
|
|
14030
|
+
return new Promise((resolve22) => {
|
|
13527
14031
|
if (this[kSize]) {
|
|
13528
|
-
this[kClosedResolve] =
|
|
14032
|
+
this[kClosedResolve] = resolve22;
|
|
13529
14033
|
} else {
|
|
13530
|
-
|
|
14034
|
+
resolve22(null);
|
|
13531
14035
|
}
|
|
13532
14036
|
});
|
|
13533
14037
|
}
|
|
13534
14038
|
[kDestroy](err) {
|
|
13535
|
-
return new Promise((
|
|
14039
|
+
return new Promise((resolve22) => {
|
|
13536
14040
|
const requests2 = this[kQueue].splice(this[kPendingIdx]);
|
|
13537
14041
|
for (let i = 0; i < requests2.length; i++) {
|
|
13538
14042
|
const request2 = requests2[i];
|
|
@@ -13545,7 +14049,7 @@ var require_client = __commonJS({
|
|
|
13545
14049
|
this[kClosedResolve]();
|
|
13546
14050
|
this[kClosedResolve] = null;
|
|
13547
14051
|
}
|
|
13548
|
-
|
|
14052
|
+
resolve22(null);
|
|
13549
14053
|
};
|
|
13550
14054
|
if (this[kHTTPContext]) {
|
|
13551
14055
|
this[kHTTPContext].destroy(err, callback);
|
|
@@ -13958,8 +14462,8 @@ var require_pool_base = __commonJS({
|
|
|
13958
14462
|
}
|
|
13959
14463
|
return Promise.all(closeAll);
|
|
13960
14464
|
} else {
|
|
13961
|
-
return new Promise((
|
|
13962
|
-
this[kClosedResolve] =
|
|
14465
|
+
return new Promise((resolve22) => {
|
|
14466
|
+
this[kClosedResolve] = resolve22;
|
|
13963
14467
|
});
|
|
13964
14468
|
}
|
|
13965
14469
|
}
|
|
@@ -16470,7 +16974,7 @@ var require_readable = __commonJS({
|
|
|
16470
16974
|
if (this._readableState.closeEmitted) {
|
|
16471
16975
|
return Promise.resolve(null);
|
|
16472
16976
|
}
|
|
16473
|
-
return new Promise((
|
|
16977
|
+
return new Promise((resolve22, reject) => {
|
|
16474
16978
|
if (this[kContentLength] && this[kContentLength] > limit || this[kBytesRead] > limit) {
|
|
16475
16979
|
this.destroy(new AbortError());
|
|
16476
16980
|
}
|
|
@@ -16484,11 +16988,11 @@ var require_readable = __commonJS({
|
|
|
16484
16988
|
if (signal.aborted) {
|
|
16485
16989
|
reject(signal.reason ?? new AbortError());
|
|
16486
16990
|
} else {
|
|
16487
|
-
|
|
16991
|
+
resolve22(null);
|
|
16488
16992
|
}
|
|
16489
16993
|
});
|
|
16490
16994
|
} else {
|
|
16491
|
-
this.on("close",
|
|
16995
|
+
this.on("close", resolve22);
|
|
16492
16996
|
}
|
|
16493
16997
|
this.on("error", noop2).on("data", () => {
|
|
16494
16998
|
if (this[kBytesRead] > limit) {
|
|
@@ -16516,7 +17020,7 @@ var require_readable = __commonJS({
|
|
|
16516
17020
|
}
|
|
16517
17021
|
function consume(stream, type) {
|
|
16518
17022
|
assert2(!stream[kConsume]);
|
|
16519
|
-
return new Promise((
|
|
17023
|
+
return new Promise((resolve22, reject) => {
|
|
16520
17024
|
if (isUnusable(stream)) {
|
|
16521
17025
|
const rState = stream._readableState;
|
|
16522
17026
|
if (rState.destroyed && rState.closeEmitted === false) {
|
|
@@ -16531,7 +17035,7 @@ var require_readable = __commonJS({
|
|
|
16531
17035
|
stream[kConsume] = {
|
|
16532
17036
|
type,
|
|
16533
17037
|
stream,
|
|
16534
|
-
resolve:
|
|
17038
|
+
resolve: resolve22,
|
|
16535
17039
|
reject,
|
|
16536
17040
|
length: 0,
|
|
16537
17041
|
body: []
|
|
@@ -16609,18 +17113,18 @@ var require_readable = __commonJS({
|
|
|
16609
17113
|
return buffer;
|
|
16610
17114
|
}
|
|
16611
17115
|
function consumeEnd(consume2, encoding) {
|
|
16612
|
-
const { type, body, resolve:
|
|
17116
|
+
const { type, body, resolve: resolve22, stream, length } = consume2;
|
|
16613
17117
|
try {
|
|
16614
17118
|
if (type === "text") {
|
|
16615
|
-
|
|
17119
|
+
resolve22(chunksDecode(body, length, encoding));
|
|
16616
17120
|
} else if (type === "json") {
|
|
16617
|
-
|
|
17121
|
+
resolve22(JSON.parse(chunksDecode(body, length, encoding)));
|
|
16618
17122
|
} else if (type === "arrayBuffer") {
|
|
16619
|
-
|
|
17123
|
+
resolve22(chunksConcat(body, length).buffer);
|
|
16620
17124
|
} else if (type === "blob") {
|
|
16621
|
-
|
|
17125
|
+
resolve22(new Blob(body, { type: stream[kContentType] }));
|
|
16622
17126
|
} else if (type === "bytes") {
|
|
16623
|
-
|
|
17127
|
+
resolve22(chunksConcat(body, length));
|
|
16624
17128
|
}
|
|
16625
17129
|
consumeFinish(consume2);
|
|
16626
17130
|
} catch (err) {
|
|
@@ -16839,9 +17343,9 @@ var require_api_request = __commonJS({
|
|
|
16839
17343
|
};
|
|
16840
17344
|
function request2(opts, callback) {
|
|
16841
17345
|
if (callback === void 0) {
|
|
16842
|
-
return new Promise((
|
|
17346
|
+
return new Promise((resolve22, reject) => {
|
|
16843
17347
|
request2.call(this, opts, (err, data) => {
|
|
16844
|
-
return err ? reject(err) :
|
|
17348
|
+
return err ? reject(err) : resolve22(data);
|
|
16845
17349
|
});
|
|
16846
17350
|
});
|
|
16847
17351
|
}
|
|
@@ -17102,9 +17606,9 @@ var require_api_stream = __commonJS({
|
|
|
17102
17606
|
};
|
|
17103
17607
|
function stream(opts, factory, callback) {
|
|
17104
17608
|
if (callback === void 0) {
|
|
17105
|
-
return new Promise((
|
|
17609
|
+
return new Promise((resolve22, reject) => {
|
|
17106
17610
|
stream.call(this, opts, factory, (err, data) => {
|
|
17107
|
-
return err ? reject(err) :
|
|
17611
|
+
return err ? reject(err) : resolve22(data);
|
|
17108
17612
|
});
|
|
17109
17613
|
});
|
|
17110
17614
|
}
|
|
@@ -17404,9 +17908,9 @@ var require_api_upgrade = __commonJS({
|
|
|
17404
17908
|
};
|
|
17405
17909
|
function upgrade2(opts, callback) {
|
|
17406
17910
|
if (callback === void 0) {
|
|
17407
|
-
return new Promise((
|
|
17911
|
+
return new Promise((resolve22, reject) => {
|
|
17408
17912
|
upgrade2.call(this, opts, (err, data) => {
|
|
17409
|
-
return err ? reject(err) :
|
|
17913
|
+
return err ? reject(err) : resolve22(data);
|
|
17410
17914
|
});
|
|
17411
17915
|
});
|
|
17412
17916
|
}
|
|
@@ -17500,9 +18004,9 @@ var require_api_connect = __commonJS({
|
|
|
17500
18004
|
};
|
|
17501
18005
|
function connect7(opts, callback) {
|
|
17502
18006
|
if (callback === void 0) {
|
|
17503
|
-
return new Promise((
|
|
18007
|
+
return new Promise((resolve22, reject) => {
|
|
17504
18008
|
connect7.call(this, opts, (err, data) => {
|
|
17505
|
-
return err ? reject(err) :
|
|
18009
|
+
return err ? reject(err) : resolve22(data);
|
|
17506
18010
|
});
|
|
17507
18011
|
});
|
|
17508
18012
|
}
|
|
@@ -18962,8 +19466,8 @@ var require_snapshot_utils = __commonJS({
|
|
|
18962
19466
|
var require_snapshot_recorder = __commonJS({
|
|
18963
19467
|
"../../node_modules/.pnpm/undici@8.10.0/node_modules/undici/lib/mock/snapshot-recorder.js"(exports, module) {
|
|
18964
19468
|
"use strict";
|
|
18965
|
-
var { writeFile: writeFile25, readFile:
|
|
18966
|
-
var { dirname: dirname25, resolve:
|
|
19469
|
+
var { writeFile: writeFile25, readFile: readFile46, mkdir: mkdir24 } = __require("node:fs/promises");
|
|
19470
|
+
var { dirname: dirname25, resolve: resolve22 } = __require("node:path");
|
|
18967
19471
|
var { setTimeout: setTimeout2, clearTimeout: clearTimeout2 } = __require("node:timers");
|
|
18968
19472
|
var { InvalidArgumentError, UndiciError } = require_errors();
|
|
18969
19473
|
var { hashId, isUrlExcludedFactory, normalizeHeaders, createHeaderFilters } = require_snapshot_utils();
|
|
@@ -19179,7 +19683,7 @@ var require_snapshot_recorder = __commonJS({
|
|
|
19179
19683
|
throw new InvalidArgumentError("Snapshot path is required");
|
|
19180
19684
|
}
|
|
19181
19685
|
try {
|
|
19182
|
-
const data = await
|
|
19686
|
+
const data = await readFile46(resolve22(path), "utf8");
|
|
19183
19687
|
const parsed = JSON.parse(data);
|
|
19184
19688
|
if (Array.isArray(parsed)) {
|
|
19185
19689
|
this.#snapshots.clear();
|
|
@@ -19208,7 +19712,7 @@ var require_snapshot_recorder = __commonJS({
|
|
|
19208
19712
|
if (!path) {
|
|
19209
19713
|
throw new InvalidArgumentError("Snapshot path is required");
|
|
19210
19714
|
}
|
|
19211
|
-
const resolvedPath =
|
|
19715
|
+
const resolvedPath = resolve22(path);
|
|
19212
19716
|
await mkdir24(dirname25(resolvedPath), { recursive: true });
|
|
19213
19717
|
const data = Array.from(this.#snapshots.entries()).map(([hash2, snapshot]) => ({
|
|
19214
19718
|
hash: hash2,
|
|
@@ -26706,7 +27210,7 @@ var require_fetch = __commonJS({
|
|
|
26706
27210
|
const hasTrailingQuestionMark = url2.search.length === 0 && url2.href[url2.href.length - url2.hash.length - 1] === "?";
|
|
26707
27211
|
return dispatchWithProtocolPreference(body);
|
|
26708
27212
|
function dispatchWithProtocolPreference(body2, allowH2) {
|
|
26709
|
-
return new Promise((
|
|
27213
|
+
return new Promise((resolve22, reject) => agent3.dispatch(
|
|
26710
27214
|
{
|
|
26711
27215
|
path: hasTrailingQuestionMark ? `${path}?` : path,
|
|
26712
27216
|
origin: url2.origin,
|
|
@@ -26789,7 +27293,7 @@ var require_fetch = __commonJS({
|
|
|
26789
27293
|
}
|
|
26790
27294
|
}
|
|
26791
27295
|
const onError = (err) => this.onResponseError(controller, err);
|
|
26792
|
-
|
|
27296
|
+
resolve22({
|
|
26793
27297
|
status: status10,
|
|
26794
27298
|
statusText,
|
|
26795
27299
|
headersList,
|
|
@@ -26822,7 +27326,7 @@ var require_fetch = __commonJS({
|
|
|
26822
27326
|
fetchParams.controller.off("terminated", this.abort);
|
|
26823
27327
|
}
|
|
26824
27328
|
if (request2.mode === "websocket" && allowH2 !== false && error62?.code === "UND_ERR_INFO" && error62?.message === "HTTP/2: Extended CONNECT protocol not supported by server") {
|
|
26825
|
-
|
|
27329
|
+
resolve22(dispatchWithProtocolPreference(body2, false));
|
|
26826
27330
|
return;
|
|
26827
27331
|
}
|
|
26828
27332
|
this.body?.destroy(error62);
|
|
@@ -26836,7 +27340,7 @@ var require_fetch = __commonJS({
|
|
|
26836
27340
|
const rawHeaders = controller?.rawHeaders ?? [];
|
|
26837
27341
|
const headersList = new HeadersList();
|
|
26838
27342
|
appendHeadersListFromResponseHeaders(headersList, headers, rawHeaders);
|
|
26839
|
-
|
|
27343
|
+
resolve22({
|
|
26840
27344
|
status: status10,
|
|
26841
27345
|
statusText: STATUS_CODES[status10],
|
|
26842
27346
|
headersList,
|
|
@@ -32128,7 +32632,7 @@ function runRedacted({
|
|
|
32128
32632
|
redact
|
|
32129
32633
|
}) {
|
|
32130
32634
|
const values = redact ?? Object.values(env);
|
|
32131
|
-
return new Promise((
|
|
32635
|
+
return new Promise((resolve22, reject) => {
|
|
32132
32636
|
const [file3, ...args] = command;
|
|
32133
32637
|
const child = spawn(file3, args, {
|
|
32134
32638
|
env: { ...baseEnv, ...env },
|
|
@@ -32154,7 +32658,7 @@ function runRedacted({
|
|
|
32154
32658
|
child.on("error", reject);
|
|
32155
32659
|
child.on("close", (code, ended) => {
|
|
32156
32660
|
signal?.removeEventListener("abort", killGroup);
|
|
32157
|
-
void drained.then(() =>
|
|
32661
|
+
void drained.then(() => resolve22(code ?? (ended ? 128 + signalNumber(ended) : 1)));
|
|
32158
32662
|
});
|
|
32159
32663
|
});
|
|
32160
32664
|
}
|
|
@@ -35992,12 +36496,26 @@ var en = {
|
|
|
35992
36496
|
|
|
35993
36497
|
// import("./locales/**/*.json") in ../../packages/time/src/messages.ts
|
|
35994
36498
|
var globImport_locales_json = __glob({
|
|
36499
|
+
"./locales/ar.json": () => Promise.resolve().then(() => (init_ar(), ar_exports)),
|
|
35995
36500
|
"./locales/de.json": () => Promise.resolve().then(() => (init_de(), de_exports)),
|
|
35996
36501
|
"./locales/es.json": () => Promise.resolve().then(() => (init_es(), es_exports)),
|
|
35997
36502
|
"./locales/fr.json": () => Promise.resolve().then(() => (init_fr(), fr_exports)),
|
|
36503
|
+
"./locales/he.json": () => Promise.resolve().then(() => (init_he(), he_exports)),
|
|
36504
|
+
"./locales/hi.json": () => Promise.resolve().then(() => (init_hi(), hi_exports)),
|
|
36505
|
+
"./locales/id.json": () => Promise.resolve().then(() => (init_id(), id_exports)),
|
|
35998
36506
|
"./locales/it.json": () => Promise.resolve().then(() => (init_it(), it_exports)),
|
|
36507
|
+
"./locales/ja.json": () => Promise.resolve().then(() => (init_ja(), ja_exports)),
|
|
36508
|
+
"./locales/ko.json": () => Promise.resolve().then(() => (init_ko(), ko_exports)),
|
|
35999
36509
|
"./locales/nl.json": () => Promise.resolve().then(() => (init_nl(), nl_exports)),
|
|
36000
|
-
"./locales/
|
|
36510
|
+
"./locales/pl.json": () => Promise.resolve().then(() => (init_pl(), pl_exports)),
|
|
36511
|
+
"./locales/pt-BR.json": () => Promise.resolve().then(() => (init_pt_BR(), pt_BR_exports)),
|
|
36512
|
+
"./locales/ru.json": () => Promise.resolve().then(() => (init_ru(), ru_exports)),
|
|
36513
|
+
"./locales/sv.json": () => Promise.resolve().then(() => (init_sv(), sv_exports)),
|
|
36514
|
+
"./locales/th.json": () => Promise.resolve().then(() => (init_th(), th_exports)),
|
|
36515
|
+
"./locales/tr.json": () => Promise.resolve().then(() => (init_tr(), tr_exports)),
|
|
36516
|
+
"./locales/vi.json": () => Promise.resolve().then(() => (init_vi(), vi_exports)),
|
|
36517
|
+
"./locales/zh-Hans.json": () => Promise.resolve().then(() => (init_zh_Hans(), zh_Hans_exports)),
|
|
36518
|
+
"./locales/zh-Hant.json": () => Promise.resolve().then(() => (init_zh_Hant(), zh_Hant_exports))
|
|
36001
36519
|
});
|
|
36002
36520
|
|
|
36003
36521
|
// ../../packages/time/src/messages.ts
|
|
@@ -36371,7 +36889,7 @@ function flagText({
|
|
|
36371
36889
|
}
|
|
36372
36890
|
|
|
36373
36891
|
// src/rules/cli-version.rules.ts
|
|
36374
|
-
var STAMPED = "0.1.
|
|
36892
|
+
var STAMPED = "0.1.65";
|
|
36375
36893
|
function cliVersionOf({ stamped = STAMPED } = {}) {
|
|
36376
36894
|
return stamped.startsWith("__") ? "dev" : stamped;
|
|
36377
36895
|
}
|
|
@@ -41418,7 +41936,7 @@ var recursive = /* @__PURE__ */ new WeakMap();
|
|
|
41418
41936
|
var NONE = 0;
|
|
41419
41937
|
var ASSUMED = 1;
|
|
41420
41938
|
var PROVEN = 2;
|
|
41421
|
-
function isRecursive(inst, stack,
|
|
41939
|
+
function isRecursive(inst, stack, resolve22) {
|
|
41422
41940
|
const cached2 = recursive.get(inst);
|
|
41423
41941
|
if (cached2 !== void 0)
|
|
41424
41942
|
return cached2 ? PROVEN : NONE;
|
|
@@ -41428,7 +41946,7 @@ function isRecursive(inst, stack, resolve21) {
|
|
|
41428
41946
|
let result = NONE;
|
|
41429
41947
|
const check3 = (child) => {
|
|
41430
41948
|
if (result !== PROVEN && child?._zod) {
|
|
41431
|
-
const answer5 = isRecursive(child, stack,
|
|
41949
|
+
const answer5 = isRecursive(child, stack, resolve22);
|
|
41432
41950
|
if (answer5 > result)
|
|
41433
41951
|
result = answer5;
|
|
41434
41952
|
}
|
|
@@ -41439,7 +41957,7 @@ function isRecursive(inst, stack, resolve21) {
|
|
|
41439
41957
|
const desc = Object.getOwnPropertyDescriptor(sh, key);
|
|
41440
41958
|
if (spread && !desc.enumerable)
|
|
41441
41959
|
continue;
|
|
41442
|
-
const child = desc.get ? ASSUMED : desc.value?._zod ? isRecursive(desc.value, stack,
|
|
41960
|
+
const child = desc.get ? ASSUMED : desc.value?._zod ? isRecursive(desc.value, stack, resolve22) : NONE;
|
|
41443
41961
|
if (child > answer5)
|
|
41444
41962
|
answer5 = child;
|
|
41445
41963
|
}
|
|
@@ -41503,7 +42021,7 @@ function isRecursive(inst, stack, resolve21) {
|
|
|
41503
42021
|
break;
|
|
41504
42022
|
// `$ZodLazy` caches its inner on the def, so a resolved edge is followed exactly
|
|
41505
42023
|
case "lazy": {
|
|
41506
|
-
const inner = def._cachedInner ?? (
|
|
42024
|
+
const inner = def._cachedInner ?? (resolve22 ? inst._zod.innerType : void 0);
|
|
41507
42025
|
merge2(inner ? isRecursive(inner, stack, false) : ASSUMED);
|
|
41508
42026
|
break;
|
|
41509
42027
|
}
|
|
@@ -41679,7 +42197,7 @@ function isBackEdge(ctx, value) {
|
|
|
41679
42197
|
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/index.js
|
|
41680
42198
|
var locales_exports = {};
|
|
41681
42199
|
__export(locales_exports, {
|
|
41682
|
-
ar: () =>
|
|
42200
|
+
ar: () => ar_default2,
|
|
41683
42201
|
az: () => az_default,
|
|
41684
42202
|
be: () => be_default,
|
|
41685
42203
|
bg: () => bg_default,
|
|
@@ -41698,20 +42216,20 @@ __export(locales_exports, {
|
|
|
41698
42216
|
fr: () => fr_default2,
|
|
41699
42217
|
frCA: () => fr_CA_default,
|
|
41700
42218
|
gu: () => gu_default,
|
|
41701
|
-
he: () =>
|
|
41702
|
-
hi: () =>
|
|
42219
|
+
he: () => he_default2,
|
|
42220
|
+
hi: () => hi_default2,
|
|
41703
42221
|
hr: () => hr_default,
|
|
41704
42222
|
hu: () => hu_default,
|
|
41705
42223
|
hy: () => hy_default,
|
|
41706
|
-
id: () =>
|
|
42224
|
+
id: () => id_default2,
|
|
41707
42225
|
is: () => is_default,
|
|
41708
42226
|
it: () => it_default2,
|
|
41709
|
-
ja: () =>
|
|
42227
|
+
ja: () => ja_default2,
|
|
41710
42228
|
ka: () => ka_default,
|
|
41711
42229
|
kh: () => kh_default,
|
|
41712
42230
|
km: () => km_default,
|
|
41713
42231
|
kn: () => kn_default,
|
|
41714
|
-
ko: () =>
|
|
42232
|
+
ko: () => ko_default2,
|
|
41715
42233
|
lt: () => lt_default,
|
|
41716
42234
|
mk: () => mk_default,
|
|
41717
42235
|
ms: () => ms_default,
|
|
@@ -41720,25 +42238,25 @@ __export(locales_exports, {
|
|
|
41720
42238
|
nn: () => nn_default,
|
|
41721
42239
|
no: () => no_default,
|
|
41722
42240
|
ota: () => ota_default,
|
|
41723
|
-
pl: () =>
|
|
42241
|
+
pl: () => pl_default2,
|
|
41724
42242
|
ps: () => ps_default,
|
|
41725
42243
|
pt: () => pt_default,
|
|
41726
42244
|
ptBR: () => pt_BR_default2,
|
|
41727
42245
|
ro: () => ro_default,
|
|
41728
|
-
ru: () =>
|
|
42246
|
+
ru: () => ru_default2,
|
|
41729
42247
|
sk: () => sk_default,
|
|
41730
42248
|
sl: () => sl_default,
|
|
41731
|
-
sv: () =>
|
|
42249
|
+
sv: () => sv_default2,
|
|
41732
42250
|
ta: () => ta_default,
|
|
41733
42251
|
tg: () => tg_default,
|
|
41734
|
-
th: () =>
|
|
42252
|
+
th: () => th_default2,
|
|
41735
42253
|
tk: () => tk_default,
|
|
41736
|
-
tr: () =>
|
|
42254
|
+
tr: () => tr_default2,
|
|
41737
42255
|
ua: () => ua_default,
|
|
41738
42256
|
uk: () => uk_default,
|
|
41739
42257
|
ur: () => ur_default,
|
|
41740
42258
|
uz: () => uz_default,
|
|
41741
|
-
vi: () =>
|
|
42259
|
+
vi: () => vi_default2,
|
|
41742
42260
|
yo: () => yo_default,
|
|
41743
42261
|
zhCN: () => zh_CN_default,
|
|
41744
42262
|
zhTW: () => zh_TW_default
|
|
@@ -41850,7 +42368,7 @@ var error = () => {
|
|
|
41850
42368
|
}
|
|
41851
42369
|
};
|
|
41852
42370
|
};
|
|
41853
|
-
function
|
|
42371
|
+
function ar_default2() {
|
|
41854
42372
|
return {
|
|
41855
42373
|
localeError: error()
|
|
41856
42374
|
};
|
|
@@ -44256,7 +44774,7 @@ var error20 = () => {
|
|
|
44256
44774
|
}
|
|
44257
44775
|
};
|
|
44258
44776
|
};
|
|
44259
|
-
function
|
|
44777
|
+
function he_default2() {
|
|
44260
44778
|
return {
|
|
44261
44779
|
localeError: error20()
|
|
44262
44780
|
};
|
|
@@ -44368,7 +44886,7 @@ var error21 = () => {
|
|
|
44368
44886
|
}
|
|
44369
44887
|
};
|
|
44370
44888
|
};
|
|
44371
|
-
function
|
|
44889
|
+
function hi_default2() {
|
|
44372
44890
|
return {
|
|
44373
44891
|
localeError: error21()
|
|
44374
44892
|
};
|
|
@@ -44880,7 +45398,7 @@ var error25 = () => {
|
|
|
44880
45398
|
}
|
|
44881
45399
|
};
|
|
44882
45400
|
};
|
|
44883
|
-
function
|
|
45401
|
+
function id_default2() {
|
|
44884
45402
|
return {
|
|
44885
45403
|
localeError: error25()
|
|
44886
45404
|
};
|
|
@@ -45222,7 +45740,7 @@ var error28 = () => {
|
|
|
45222
45740
|
}
|
|
45223
45741
|
};
|
|
45224
45742
|
};
|
|
45225
|
-
function
|
|
45743
|
+
function ja_default2() {
|
|
45226
45744
|
return {
|
|
45227
45745
|
localeError: error28()
|
|
45228
45746
|
};
|
|
@@ -45694,7 +46212,7 @@ var error32 = () => {
|
|
|
45694
46212
|
}
|
|
45695
46213
|
};
|
|
45696
46214
|
};
|
|
45697
|
-
function
|
|
46215
|
+
function ko_default2() {
|
|
45698
46216
|
return {
|
|
45699
46217
|
localeError: error32()
|
|
45700
46218
|
};
|
|
@@ -46936,7 +47454,7 @@ var error42 = () => {
|
|
|
46936
47454
|
}
|
|
46937
47455
|
};
|
|
46938
47456
|
};
|
|
46939
|
-
function
|
|
47457
|
+
function pl_default2() {
|
|
46940
47458
|
return {
|
|
46941
47459
|
localeError: error42()
|
|
46942
47460
|
};
|
|
@@ -47517,7 +48035,7 @@ var error46 = () => {
|
|
|
47517
48035
|
}
|
|
47518
48036
|
};
|
|
47519
48037
|
};
|
|
47520
|
-
function
|
|
48038
|
+
function ru_default2() {
|
|
47521
48039
|
return {
|
|
47522
48040
|
localeError: error46()
|
|
47523
48041
|
};
|
|
@@ -47865,7 +48383,7 @@ var error49 = () => {
|
|
|
47865
48383
|
}
|
|
47866
48384
|
};
|
|
47867
48385
|
};
|
|
47868
|
-
function
|
|
48386
|
+
function sv_default2() {
|
|
47869
48387
|
return {
|
|
47870
48388
|
localeError: error49()
|
|
47871
48389
|
};
|
|
@@ -48214,7 +48732,7 @@ var error52 = () => {
|
|
|
48214
48732
|
}
|
|
48215
48733
|
};
|
|
48216
48734
|
};
|
|
48217
|
-
function
|
|
48735
|
+
function th_default2() {
|
|
48218
48736
|
return {
|
|
48219
48737
|
localeError: error52()
|
|
48220
48738
|
};
|
|
@@ -48433,7 +48951,7 @@ var error54 = () => {
|
|
|
48433
48951
|
}
|
|
48434
48952
|
};
|
|
48435
48953
|
};
|
|
48436
|
-
function
|
|
48954
|
+
function tr_default2() {
|
|
48437
48955
|
return {
|
|
48438
48956
|
localeError: error54()
|
|
48439
48957
|
};
|
|
@@ -48896,7 +49414,7 @@ var error58 = () => {
|
|
|
48896
49414
|
}
|
|
48897
49415
|
};
|
|
48898
49416
|
};
|
|
48899
|
-
function
|
|
49417
|
+
function vi_default2() {
|
|
48900
49418
|
return {
|
|
48901
49419
|
localeError: error58()
|
|
48902
49420
|
};
|
|
@@ -72629,8 +73147,8 @@ var CodexAppServer = class _CodexAppServer {
|
|
|
72629
73147
|
}
|
|
72630
73148
|
async call(method, params) {
|
|
72631
73149
|
const id2 = ++this.#nextId;
|
|
72632
|
-
const reply2 = await new Promise((
|
|
72633
|
-
this.#pending.set(id2,
|
|
73150
|
+
const reply2 = await new Promise((resolve22) => {
|
|
73151
|
+
this.#pending.set(id2, resolve22);
|
|
72634
73152
|
this.write({ id: id2, method, params });
|
|
72635
73153
|
});
|
|
72636
73154
|
if (reply2.error !== void 0) throw new Error(`${method}: ${JSON.stringify(reply2.error)}`);
|
|
@@ -72642,12 +73160,12 @@ var CodexAppServer = class _CodexAppServer {
|
|
|
72642
73160
|
/** Starts one turn; `done` settles when it completes, keeping its last agent message. */
|
|
72643
73161
|
async startTurn({ threadId, text: text2 }) {
|
|
72644
73162
|
const result = { answer: "" };
|
|
72645
|
-
const done = new Promise((
|
|
73163
|
+
const done = new Promise((resolve22) => {
|
|
72646
73164
|
const listen = (message2) => {
|
|
72647
73165
|
absorbTurnEvent({ result, message: message2 });
|
|
72648
73166
|
if (message2.method !== "turn/completed") return;
|
|
72649
73167
|
this.#listeners.delete(listen);
|
|
72650
|
-
|
|
73168
|
+
resolve22(result);
|
|
72651
73169
|
};
|
|
72652
73170
|
this.#listeners.add(listen);
|
|
72653
73171
|
});
|
|
@@ -77565,16 +78083,16 @@ async function serveAppFolder({
|
|
|
77565
78083
|
(error62) => failed({ response, error: error62 })
|
|
77566
78084
|
);
|
|
77567
78085
|
});
|
|
77568
|
-
await new Promise((
|
|
78086
|
+
await new Promise((resolve22, reject) => {
|
|
77569
78087
|
server.once("error", reject);
|
|
77570
|
-
server.listen(port, "127.0.0.1", () =>
|
|
78088
|
+
server.listen(port, "127.0.0.1", () => resolve22());
|
|
77571
78089
|
});
|
|
77572
78090
|
const { port: bound } = server.address();
|
|
77573
78091
|
return {
|
|
77574
78092
|
url: `http://127.0.0.1:${bound}/`,
|
|
77575
|
-
close: () => new Promise((
|
|
78093
|
+
close: () => new Promise((resolve22) => {
|
|
77576
78094
|
server.closeAllConnections();
|
|
77577
|
-
server.close(() =>
|
|
78095
|
+
server.close(() => resolve22());
|
|
77578
78096
|
})
|
|
77579
78097
|
};
|
|
77580
78098
|
}
|
|
@@ -80019,7 +80537,7 @@ function tunnel({
|
|
|
80019
80537
|
host: host2,
|
|
80020
80538
|
port
|
|
80021
80539
|
}) {
|
|
80022
|
-
return new Promise((
|
|
80540
|
+
return new Promise((resolve22, reject) => {
|
|
80023
80541
|
const socket = connectTcp(proxy.port, proxy.host);
|
|
80024
80542
|
let answer5 = "";
|
|
80025
80543
|
const auth = proxy.authorization ? `Proxy-Authorization: ${proxy.authorization}\r
|
|
@@ -80036,7 +80554,7 @@ ${auth}\r
|
|
|
80036
80554
|
answer5 += chunk.toString("latin1");
|
|
80037
80555
|
if (!answer5.includes(HEADER_END)) return;
|
|
80038
80556
|
socket.off("data", onData);
|
|
80039
|
-
if (/^HTTP\/1\.[01] 200/.test(answer5)) return
|
|
80557
|
+
if (/^HTTP\/1\.[01] 200/.test(answer5)) return resolve22(socket);
|
|
80040
80558
|
socket.destroy();
|
|
80041
80559
|
reject(new Error(`proxy refused the tunnel: ${answer5.split("\r\n")[0] ?? ""}`));
|
|
80042
80560
|
};
|
|
@@ -80049,8 +80567,8 @@ async function upstreamOf({ target, proxy }) {
|
|
|
80049
80567
|
const raw = proxy ? await tunnel({ proxy, host: target.hostname, port }) : connectTcp(port, target.hostname);
|
|
80050
80568
|
if (!secure) return raw;
|
|
80051
80569
|
const tls = connectTls({ socket: raw, servername: target.hostname });
|
|
80052
|
-
await new Promise((
|
|
80053
|
-
tls.once("secureConnect", () =>
|
|
80570
|
+
await new Promise((resolve22, reject) => {
|
|
80571
|
+
tls.once("secureConnect", () => resolve22());
|
|
80054
80572
|
tls.once("error", reject);
|
|
80055
80573
|
});
|
|
80056
80574
|
return tls;
|
|
@@ -80092,8 +80610,8 @@ async function browserSocket({
|
|
|
80092
80610
|
createConnection: () => upstream,
|
|
80093
80611
|
perMessageDeflate: false
|
|
80094
80612
|
});
|
|
80095
|
-
await new Promise((
|
|
80096
|
-
socket.once("open", () =>
|
|
80613
|
+
await new Promise((resolve22, reject) => {
|
|
80614
|
+
socket.once("open", () => resolve22());
|
|
80097
80615
|
socket.once("error", reject);
|
|
80098
80616
|
});
|
|
80099
80617
|
return socket;
|
|
@@ -80106,12 +80624,12 @@ async function browserCall({
|
|
|
80106
80624
|
}) {
|
|
80107
80625
|
const socket = await browserSocket({ target, proxy });
|
|
80108
80626
|
try {
|
|
80109
|
-
return await new Promise((
|
|
80627
|
+
return await new Promise((resolve22, reject) => {
|
|
80110
80628
|
socket.on("message", (data) => {
|
|
80111
80629
|
const reply2 = JSON.parse(textOf2(data));
|
|
80112
80630
|
if (reply2.id !== 1) return;
|
|
80113
80631
|
if (reply2.error) reject(new Error(`${method}: ${JSON.stringify(reply2.error)}`));
|
|
80114
|
-
else
|
|
80632
|
+
else resolve22(reply2.result ?? {});
|
|
80115
80633
|
});
|
|
80116
80634
|
socket.once(
|
|
80117
80635
|
"close",
|
|
@@ -80275,18 +80793,18 @@ function retargetCdpBridge({
|
|
|
80275
80793
|
target,
|
|
80276
80794
|
expiresAt
|
|
80277
80795
|
}) {
|
|
80278
|
-
return new Promise((
|
|
80796
|
+
return new Promise((resolve22) => {
|
|
80279
80797
|
const call = httpRequest(
|
|
80280
80798
|
{ host: "127.0.0.1", port, path: TARGET_PATH, method: "PUT", timeout: 2e3 },
|
|
80281
80799
|
(response) => {
|
|
80282
80800
|
response.resume();
|
|
80283
|
-
|
|
80801
|
+
resolve22(response.statusCode === 204);
|
|
80284
80802
|
}
|
|
80285
80803
|
);
|
|
80286
80804
|
call.setHeader(KEY_HEADER, key);
|
|
80287
80805
|
call.setHeader("content-type", "application/json");
|
|
80288
80806
|
call.once("timeout", () => call.destroy());
|
|
80289
|
-
call.once("error", () =>
|
|
80807
|
+
call.once("error", () => resolve22(false));
|
|
80290
80808
|
call.end(JSON.stringify({ target, expiresAt }));
|
|
80291
80809
|
});
|
|
80292
80810
|
}
|
|
@@ -80335,15 +80853,15 @@ async function startCdpBridge({
|
|
|
80335
80853
|
(socket) => relayPage({ client: socket, targetId, target: url2, proxy })
|
|
80336
80854
|
);
|
|
80337
80855
|
});
|
|
80338
|
-
await new Promise((
|
|
80856
|
+
await new Promise((resolve22) => server.listen(0, "127.0.0.1", resolve22));
|
|
80339
80857
|
const port = server.address().port;
|
|
80340
80858
|
return {
|
|
80341
80859
|
port,
|
|
80342
|
-
close: () => new Promise((
|
|
80860
|
+
close: () => new Promise((resolve22) => {
|
|
80343
80861
|
for (const client of relayed) client.destroy();
|
|
80344
80862
|
pages.close();
|
|
80345
80863
|
server.closeAllConnections();
|
|
80346
|
-
server.close(() =>
|
|
80864
|
+
server.close(() => resolve22());
|
|
80347
80865
|
})
|
|
80348
80866
|
};
|
|
80349
80867
|
}
|
|
@@ -80360,7 +80878,7 @@ function launchCdpBridge({
|
|
|
80360
80878
|
stdio: ["ignore", "pipe", "ignore"],
|
|
80361
80879
|
env: { ...env, LAZE_CDP_TARGET: target, LAZE_CDP_EXPIRES_AT: expiresAt, LAZE_CDP_KEY: key }
|
|
80362
80880
|
});
|
|
80363
|
-
return new Promise((
|
|
80881
|
+
return new Promise((resolve22, reject) => {
|
|
80364
80882
|
let printed2 = "";
|
|
80365
80883
|
child.once("error", reject);
|
|
80366
80884
|
child.once("exit", (code) => reject(new Error(`the CDP bridge stopped (${code})`)));
|
|
@@ -80371,7 +80889,7 @@ function launchCdpBridge({
|
|
|
80371
80889
|
child.stdout.destroy();
|
|
80372
80890
|
child.removeAllListeners("exit");
|
|
80373
80891
|
child.unref();
|
|
80374
|
-
if (Number.isInteger(port) && port > 0)
|
|
80892
|
+
if (Number.isInteger(port) && port > 0) resolve22(port);
|
|
80375
80893
|
else reject(new Error("the CDP bridge printed no port"));
|
|
80376
80894
|
});
|
|
80377
80895
|
});
|
|
@@ -82029,6 +82547,13 @@ var billingConfig = Config.define((c) => ({
|
|
|
82029
82547
|
teamPriceId: c.env("STRIPE_PRICE_TEAM", priceId),
|
|
82030
82548
|
/** Team's price before 2026-10-25 (first step of 2), kept by subscriptions started on it. */
|
|
82031
82549
|
legacyTeamPriceId: c.env("STRIPE_PRICE_TEAM_LEGACY", priceId),
|
|
82550
|
+
/** Earlier live Team prices on the first step of 3, comma separated; their subscriptions stay. */
|
|
82551
|
+
earlierTeamPriceIds: c.env(
|
|
82552
|
+
"STRIPE_PRICES_TEAM_EARLIER",
|
|
82553
|
+
external_exports.string().optional().transform(
|
|
82554
|
+
(value) => (value ?? "").split(",").map((id2) => id2.trim()).filter(Boolean)
|
|
82555
|
+
)
|
|
82556
|
+
),
|
|
82032
82557
|
/** The product every top-up and auto-recharge line names; a bare line without it. */
|
|
82033
82558
|
creditsProductId: c.env("STRIPE_PRODUCT_CREDITS", external_exports.string().min(1).optional()),
|
|
82034
82559
|
/** The customer portal configuration; Stripe's default one without it. */
|
|
@@ -82073,7 +82598,7 @@ var TEAM_PRICING = {
|
|
|
82073
82598
|
teamSizeStep: 10,
|
|
82074
82599
|
prices: {
|
|
82075
82600
|
usd: { firstPeoplePrice: 20, perPersonToStep: 10, perPersonAfterStep: 8 },
|
|
82076
|
-
eur: { firstPeoplePrice:
|
|
82601
|
+
eur: { firstPeoplePrice: 20, perPersonToStep: 10, perPersonAfterStep: 8 }
|
|
82077
82602
|
}
|
|
82078
82603
|
};
|
|
82079
82604
|
var teamPricingRuleSchema = external_exports.enum(["first_three", "first_two"]);
|
|
@@ -85406,8 +85931,8 @@ var DOMAINS_USAGE = `Usage:
|
|
|
85406
85931
|
var printJson5 = (context, data) => context.out(`${JSON.stringify(data, null, 2)}
|
|
85407
85932
|
`);
|
|
85408
85933
|
function printDomain(context, row) {
|
|
85409
|
-
const
|
|
85410
|
-
context.out(`${row.domain} ${
|
|
85934
|
+
const join30 = row.autoJoin ? "auto-join on" : "auto-join off";
|
|
85935
|
+
context.out(`${row.domain} ${join30}${row.enforced ? " single sign-on enforced" : ""}
|
|
85411
85936
|
`);
|
|
85412
85937
|
}
|
|
85413
85938
|
async function list4({ context, args }) {
|
|
@@ -89355,6 +89880,10 @@ async function serveMcp({
|
|
|
89355
89880
|
await answerMcpLines({ context, args, lines: lines2, runCommandLine });
|
|
89356
89881
|
}
|
|
89357
89882
|
|
|
89883
|
+
// src/services/memory-commands.service.ts
|
|
89884
|
+
import { readdir as readdir7, readFile as readFile36 } from "node:fs/promises";
|
|
89885
|
+
import { join as join25, resolve as resolve15 } from "node:path";
|
|
89886
|
+
|
|
89358
89887
|
// src/services/mount-files.service.ts
|
|
89359
89888
|
import { mkdir as mkdir21, readFile as readFile35, rm as rm12, writeFile as writeFile21 } from "node:fs/promises";
|
|
89360
89889
|
import { dirname as dirname20, relative as relative5, resolve as resolve14 } from "node:path";
|
|
@@ -89398,7 +89927,20 @@ var USAGE11 = `Usage:
|
|
|
89398
89927
|
laze memory history SOUL.md|AGENTS.md|MEMORY.md [--channel <channel>]
|
|
89399
89928
|
laze memory pull [--channel <channel>] [--dir .laze] the turn mount: <dir>/memory/*
|
|
89400
89929
|
|
|
89401
|
-
|
|
89930
|
+
Person and agent memory (add --layer agent for the agent's own):
|
|
89931
|
+
laze memory note --said|--decided|--verified|--inferred|--observed "<line>" [--pin "<span>"]
|
|
89932
|
+
laze memory correct <N> --<provenance> "<line>"
|
|
89933
|
+
laze memory remove <N>
|
|
89934
|
+
laze memory nap [<a-b> "<line>"] no arguments: the next nap to write
|
|
89935
|
+
laze memory zoom <a-b>
|
|
89936
|
+
laze memory recall <words>
|
|
89937
|
+
laze memory forget <a-b>
|
|
89938
|
+
laze memory wake
|
|
89939
|
+
laze memory import --optmem <dir> an OptMem folder into your own empty memory, every line private to you
|
|
89940
|
+
|
|
89941
|
+
MEMORY.md is the file of the turn's channel (LAZE_CHANNEL), or of --channel when the agent is in it.
|
|
89942
|
+
Person memory is the memory of the person whose message started the turn (LAZE_TURN_MESSAGES).`;
|
|
89943
|
+
var PROVENANCES = ["said", "decided", "verified", "inferred", "observed"];
|
|
89402
89944
|
var FILES = /* @__PURE__ */ new Set(["SOUL.md", "AGENTS.md", "MEMORY.md"]);
|
|
89403
89945
|
function fileRef({ context, args }) {
|
|
89404
89946
|
const file3 = args.words[2] ?? "";
|
|
@@ -89490,7 +90032,150 @@ async function memoryPull({ context, args }) {
|
|
|
89490
90032
|
context.out(`${files2.length} files in ${root}
|
|
89491
90033
|
`);
|
|
89492
90034
|
}
|
|
90035
|
+
function logTarget({ context, args }) {
|
|
90036
|
+
const layer = flagText({ args, name: "layer", fallback: "person" });
|
|
90037
|
+
if (layer !== "person" && layer !== "agent") throw new CliUsageError(USAGE11);
|
|
90038
|
+
const channel = turnChannel({ context, args });
|
|
90039
|
+
const turn = (context.environment.inherited.LAZE_TURN_MESSAGES ?? "").split(",").map((id2) => id2.trim()).filter(Boolean);
|
|
90040
|
+
const message2 = flagText({ args, name: "message" }) || turn.at(-1) || "";
|
|
90041
|
+
const person = flagText({ args, name: "person" });
|
|
90042
|
+
return {
|
|
90043
|
+
layer,
|
|
90044
|
+
...channel ? { channel } : {},
|
|
90045
|
+
...message2 ? { message: message2 } : {},
|
|
90046
|
+
...person ? { person } : {}
|
|
90047
|
+
};
|
|
90048
|
+
}
|
|
90049
|
+
async function taggedLine({
|
|
90050
|
+
context,
|
|
90051
|
+
args,
|
|
90052
|
+
from
|
|
90053
|
+
}) {
|
|
90054
|
+
const given = PROVENANCES.filter((tag2) => args.flags[tag2] !== void 0);
|
|
90055
|
+
if (given.length !== 1) {
|
|
90056
|
+
throw new CliUsageError(
|
|
90057
|
+
`memory_entry_invalid: give exactly one of ${PROVENANCES.map((tag2) => `--${tag2}`).join(" ")}`
|
|
90058
|
+
);
|
|
90059
|
+
}
|
|
90060
|
+
const [tag] = given;
|
|
90061
|
+
const value = args.flags[tag];
|
|
90062
|
+
const raw = typeof value === "string" ? value : args.words.slice(from).join(" ");
|
|
90063
|
+
if (!raw.trim()) throw new CliUsageError(USAGE11);
|
|
90064
|
+
const text2 = await textArgument({ context, value: raw });
|
|
90065
|
+
return { tag, text: text2, pins: [...args.lists.pin ?? []] };
|
|
90066
|
+
}
|
|
90067
|
+
function printAnswer2({
|
|
90068
|
+
context,
|
|
90069
|
+
args,
|
|
90070
|
+
answer: answer5
|
|
90071
|
+
}) {
|
|
90072
|
+
if (args.flags.json) return context.out(`${JSON.stringify(answer5, null, 2)}
|
|
90073
|
+
`);
|
|
90074
|
+
context.out(`${answer5.message}
|
|
90075
|
+
`);
|
|
90076
|
+
if (answer5.nextNap) context.out(`
|
|
90077
|
+
Next nap:
|
|
90078
|
+
${answer5.nextNap}
|
|
90079
|
+
`);
|
|
90080
|
+
}
|
|
90081
|
+
async function logCall({
|
|
90082
|
+
context,
|
|
90083
|
+
args,
|
|
90084
|
+
path,
|
|
90085
|
+
body
|
|
90086
|
+
}) {
|
|
90087
|
+
const { client } = await signedIn({ context, args });
|
|
90088
|
+
const answer5 = await client.post(`/api/memory/${path}`, {
|
|
90089
|
+
...logTarget({ context, args }),
|
|
90090
|
+
...body
|
|
90091
|
+
});
|
|
90092
|
+
printAnswer2({ context, args, answer: answer5 });
|
|
90093
|
+
}
|
|
90094
|
+
function entryId(args) {
|
|
90095
|
+
const id2 = Number((args.words[2] ?? "").replace(/^#/, ""));
|
|
90096
|
+
if (!Number.isInteger(id2) || id2 < 0) throw new CliUsageError(USAGE11);
|
|
90097
|
+
return id2;
|
|
90098
|
+
}
|
|
90099
|
+
function blockArg(args) {
|
|
90100
|
+
const block2 = (args.words[2] ?? "").replace(/^#/, "");
|
|
90101
|
+
if (!block2) throw new CliUsageError(USAGE11);
|
|
90102
|
+
return block2;
|
|
90103
|
+
}
|
|
90104
|
+
async function memoryNote({ context, args }) {
|
|
90105
|
+
const line = await taggedLine({ context, args, from: 2 });
|
|
90106
|
+
await logCall({ context, args, path: "note", body: line });
|
|
90107
|
+
}
|
|
90108
|
+
async function memoryCorrect({ context, args }) {
|
|
90109
|
+
const id2 = entryId(args);
|
|
90110
|
+
const line = await taggedLine({ context, args, from: 3 });
|
|
90111
|
+
await logCall({ context, args, path: "correct", body: { id: id2, ...line } });
|
|
90112
|
+
}
|
|
90113
|
+
async function memoryRemove({ context, args }) {
|
|
90114
|
+
await logCall({ context, args, path: "remove", body: { id: entryId(args) } });
|
|
90115
|
+
}
|
|
90116
|
+
async function memoryNap({ context, args }) {
|
|
90117
|
+
const block2 = (args.words[2] ?? "").replace(/^#/, "");
|
|
90118
|
+
const text2 = args.words.slice(3).join(" ");
|
|
90119
|
+
if (block2 && !text2) throw new CliUsageError(USAGE11);
|
|
90120
|
+
const line = text2 ? await textArgument({ context, value: text2 }) : "";
|
|
90121
|
+
await logCall({ context, args, path: "nap", body: block2 ? { block: block2, text: line } : {} });
|
|
90122
|
+
}
|
|
90123
|
+
async function memoryZoom({ context, args }) {
|
|
90124
|
+
await logCall({ context, args, path: "zoom", body: { block: blockArg(args) } });
|
|
90125
|
+
}
|
|
90126
|
+
async function memoryForget({ context, args }) {
|
|
90127
|
+
await logCall({ context, args, path: "forget", body: { block: blockArg(args) } });
|
|
90128
|
+
}
|
|
90129
|
+
async function memoryRecall({ context, args }) {
|
|
90130
|
+
const query = args.words.slice(2).join(" ").trim();
|
|
90131
|
+
if (!query) throw new CliUsageError(USAGE11);
|
|
90132
|
+
await logCall({ context, args, path: "recall", body: { query } });
|
|
90133
|
+
}
|
|
90134
|
+
async function memoryWake({ context, args }) {
|
|
90135
|
+
const { layer: _layer, ...target } = logTarget({ context, args });
|
|
90136
|
+
const { client } = await signedIn({ context, args });
|
|
90137
|
+
const wake = await client.post("/api/memory/wake", target);
|
|
90138
|
+
if (args.flags.json) return context.out(`${JSON.stringify(wake, null, 2)}
|
|
90139
|
+
`);
|
|
90140
|
+
if (!wake.enabled) return context.out("Person and agent memory is off in this workspace.\n");
|
|
90141
|
+
const parts = [wake.person?.text, wake.agent?.text].filter(Boolean);
|
|
90142
|
+
context.out(`${parts.length > 0 ? parts.join("\n\n") : "No memory here."}
|
|
90143
|
+
`);
|
|
90144
|
+
}
|
|
90145
|
+
async function memoryImport({ context, args }) {
|
|
90146
|
+
const dir = flagText({ args, name: "optmem" });
|
|
90147
|
+
if (!dir) throw new CliUsageError(USAGE11);
|
|
90148
|
+
const root = resolve15(context.cwd, dir);
|
|
90149
|
+
const log = await readFile36(join25(root, "LOG.txt"));
|
|
90150
|
+
const sizes2 = (await readdir7(join25(root, "TREE")).catch(() => [])).filter(
|
|
90151
|
+
(name3) => /^\d{1,4}$/.test(name3)
|
|
90152
|
+
);
|
|
90153
|
+
const tree = Object.fromEntries(
|
|
90154
|
+
await Promise.all(
|
|
90155
|
+
sizes2.map(async (size) => [
|
|
90156
|
+
size,
|
|
90157
|
+
(await readFile36(join25(root, "TREE", size))).toString("base64")
|
|
90158
|
+
])
|
|
90159
|
+
)
|
|
90160
|
+
);
|
|
90161
|
+
const { client } = await signedIn({ context, args });
|
|
90162
|
+
const answer5 = await client.post("/api/memory/import", {
|
|
90163
|
+
log: log.toString("base64"),
|
|
90164
|
+
tree
|
|
90165
|
+
});
|
|
90166
|
+
context.out(`${answer5.message}
|
|
90167
|
+
`);
|
|
90168
|
+
}
|
|
89493
90169
|
var MEMORY_COMMANDS = {
|
|
90170
|
+
note: memoryNote,
|
|
90171
|
+
correct: memoryCorrect,
|
|
90172
|
+
remove: memoryRemove,
|
|
90173
|
+
nap: memoryNap,
|
|
90174
|
+
zoom: memoryZoom,
|
|
90175
|
+
forget: memoryForget,
|
|
90176
|
+
recall: memoryRecall,
|
|
90177
|
+
wake: memoryWake,
|
|
90178
|
+
import: memoryImport,
|
|
89494
90179
|
get: memoryGet,
|
|
89495
90180
|
set: memorySet,
|
|
89496
90181
|
append: memoryAppend,
|
|
@@ -89810,7 +90495,7 @@ async function notifications({ context, args }) {
|
|
|
89810
90495
|
}
|
|
89811
90496
|
|
|
89812
90497
|
// src/services/openclaw-commands.service.ts
|
|
89813
|
-
import { resolve as
|
|
90498
|
+
import { resolve as resolve16 } from "node:path";
|
|
89814
90499
|
var OPENCLAW_USAGE = `Usage (a person's key; a gateway belongs to the person who connects it):
|
|
89815
90500
|
laze openclaw list the gateways connected here and their agents
|
|
89816
90501
|
laze openclaw connect <wss url> [--label <label>] (< token | --from-file <file> | --from-vault <connection>)
|
|
@@ -89961,7 +90646,7 @@ var agentKey = async ({ context, args, client, url: url2 }) => {
|
|
|
89961
90646
|
});
|
|
89962
90647
|
const login2 = flagText({ args, name: "login" });
|
|
89963
90648
|
if (login2) {
|
|
89964
|
-
const folder =
|
|
90649
|
+
const folder = resolve16(context.cwd, login2);
|
|
89965
90650
|
const profile = profileNameOf(key.agentName);
|
|
89966
90651
|
await signInFolder({ context, url: url2, token: key.token, name: profile, folder });
|
|
89967
90652
|
context.out(
|
|
@@ -90042,8 +90727,8 @@ ${OPS_USAGE}`);
|
|
|
90042
90727
|
}
|
|
90043
90728
|
|
|
90044
90729
|
// src/services/release-watch.service.ts
|
|
90045
|
-
import { mkdir as mkdir22, readFile as
|
|
90046
|
-
import { dirname as dirname21, join as
|
|
90730
|
+
import { mkdir as mkdir22, readFile as readFile37, realpath, writeFile as writeFile22 } from "node:fs/promises";
|
|
90731
|
+
import { dirname as dirname21, join as join26 } from "node:path";
|
|
90047
90732
|
|
|
90048
90733
|
// src/rules/cli-update.rules.ts
|
|
90049
90734
|
var CLI_PACKAGE = "@lazehq/cli";
|
|
@@ -90190,15 +90875,15 @@ async function startedUpdate({
|
|
|
90190
90875
|
const plan2 = updatePlanOf({ script: await scriptOf(context) });
|
|
90191
90876
|
if (plan2.kind !== "install") return null;
|
|
90192
90877
|
const folder = dirname21(context.environment.configPath);
|
|
90193
|
-
const stamp =
|
|
90194
|
-
const last = await
|
|
90878
|
+
const stamp = join26(folder, "auto-update.json");
|
|
90879
|
+
const last = await readFile37(stamp, "utf8").then((text2) => JSON.parse(text2)).catch(() => null);
|
|
90195
90880
|
const now = context.nowMs();
|
|
90196
90881
|
if (last?.server === server && now - last.atMs < RETRY_AFTER_MS) return null;
|
|
90197
90882
|
await mkdir22(folder, { recursive: true, mode: 448 });
|
|
90198
90883
|
await writeFile22(stamp, JSON.stringify({ server, atMs: now }), { mode: 384 });
|
|
90199
90884
|
context.processes.spawnDetached({
|
|
90200
90885
|
argv: [...context.program, "update"],
|
|
90201
|
-
logPath:
|
|
90886
|
+
logPath: join26(folder, "auto-update.log")
|
|
90202
90887
|
});
|
|
90203
90888
|
return { manager: plan2.manager };
|
|
90204
90889
|
}
|
|
@@ -90235,7 +90920,7 @@ function watchingRelease({
|
|
|
90235
90920
|
}
|
|
90236
90921
|
|
|
90237
90922
|
// src/services/rush-guard.service.ts
|
|
90238
|
-
import { readFile as
|
|
90923
|
+
import { readFile as readFile38, rm as rm13 } from "node:fs/promises";
|
|
90239
90924
|
var WATCH_MS3 = 2e3;
|
|
90240
90925
|
var RETRY_MS2 = 3e4;
|
|
90241
90926
|
async function guardRound(guard) {
|
|
@@ -90278,7 +90963,7 @@ async function rushWakeHook({ context, args }) {
|
|
|
90278
90963
|
while (context.processes.alive(claudePid)) await context.sleep(WATCH_MS3);
|
|
90279
90964
|
const { client, name: name3 } = await signedIn({ context, args });
|
|
90280
90965
|
const noted = statePathOf({ context, kind: "sessions", profile: String(claudePid) });
|
|
90281
|
-
const note = await
|
|
90966
|
+
const note = await readFile38(noted, "utf8").then(
|
|
90282
90967
|
(text2) => JSON.parse(text2),
|
|
90283
90968
|
() => void 0
|
|
90284
90969
|
);
|
|
@@ -90453,8 +91138,8 @@ async function schedule({ context, args }) {
|
|
|
90453
91138
|
}
|
|
90454
91139
|
|
|
90455
91140
|
// src/services/skill-commands.service.ts
|
|
90456
|
-
import { readdir as
|
|
90457
|
-
import { join as
|
|
91141
|
+
import { readdir as readdir8, readFile as readFile39 } from "node:fs/promises";
|
|
91142
|
+
import { join as join27, relative as relative6, resolve as resolve17 } from "node:path";
|
|
90458
91143
|
var USAGE15 = `Usage:
|
|
90459
91144
|
laze skill list [--agent <agentId>]
|
|
90460
91145
|
laze skill install <catalogue-id> [--as <name>] [--agent <agentId>]
|
|
@@ -90471,12 +91156,12 @@ var USAGE15 = `Usage:
|
|
|
90471
91156
|
--agent names the agent with a person's key; an agent's key works on its own skills.
|
|
90472
91157
|
With a person's key, list without --agent shows every agent's skills.`;
|
|
90473
91158
|
async function folderFiles({ root }) {
|
|
90474
|
-
const entries = await
|
|
91159
|
+
const entries = await readdir8(root, { recursive: true, withFileTypes: true });
|
|
90475
91160
|
const files2 = [];
|
|
90476
91161
|
for (const entry of entries) {
|
|
90477
91162
|
if (!entry.isFile()) continue;
|
|
90478
|
-
const full =
|
|
90479
|
-
files2.push({ path: relative6(root, full), content: await
|
|
91163
|
+
const full = join27(entry.parentPath, entry.name);
|
|
91164
|
+
files2.push({ path: relative6(root, full), content: await readFile39(full, "utf8") });
|
|
90480
91165
|
}
|
|
90481
91166
|
return files2.toSorted((a, b) => a.path.localeCompare(b.path));
|
|
90482
91167
|
}
|
|
@@ -90507,7 +91192,7 @@ async function skillInstall({ context, args }) {
|
|
|
90507
91192
|
if (!catalogueId === !from) throw new CliUsageError(USAGE15);
|
|
90508
91193
|
const name3 = flagText({ args, name: "as" });
|
|
90509
91194
|
const agent3 = flagText({ args, name: "agent" });
|
|
90510
|
-
const files2 = from ? await folderFiles({ root:
|
|
91195
|
+
const files2 = from ? await folderFiles({ root: resolve17(context.cwd, from) }) : void 0;
|
|
90511
91196
|
const { client } = await signedIn({ context, args });
|
|
90512
91197
|
const installed = await client.post("/api/skills/install", {
|
|
90513
91198
|
...catalogueId ? { catalogueId } : {},
|
|
@@ -90574,7 +91259,7 @@ async function skillUpdate({ context, args }) {
|
|
|
90574
91259
|
if (!name3 || !newName && description === void 0 && !skillMdFile) {
|
|
90575
91260
|
throw new CliUsageError(USAGE15);
|
|
90576
91261
|
}
|
|
90577
|
-
const skillMd = skillMdFile ? await
|
|
91262
|
+
const skillMd = skillMdFile ? await readFile39(resolve17(context.cwd, skillMdFile), "utf8") : void 0;
|
|
90578
91263
|
const { client } = await signedIn({ context, args });
|
|
90579
91264
|
const updated = await client.post("/api/skills/update", {
|
|
90580
91265
|
name: name3,
|
|
@@ -90620,8 +91305,8 @@ async function skill({ context, args }) {
|
|
|
90620
91305
|
}
|
|
90621
91306
|
|
|
90622
91307
|
// src/services/slack-commands.service.ts
|
|
90623
|
-
import { readFile as
|
|
90624
|
-
import { resolve as
|
|
91308
|
+
import { readFile as readFile40 } from "node:fs/promises";
|
|
91309
|
+
import { resolve as resolve18 } from "node:path";
|
|
90625
91310
|
var SLACK_USAGE = `Usage (a person's key; Slack stays the source, the bot joins no channel by itself):
|
|
90626
91311
|
laze slack overview connected Slack workspaces, mirrors, your link
|
|
90627
91312
|
laze slack link-prompts Slack workspaces you have not linked yet
|
|
@@ -90668,7 +91353,7 @@ async function secretLines({ context, args }) {
|
|
|
90668
91353
|
throw new CliUsageError("A secret never goes in a flag: pipe it on stdin or use --from-file.");
|
|
90669
91354
|
}
|
|
90670
91355
|
const file3 = flagText({ args, name: "from-file" });
|
|
90671
|
-
const text2 = file3 ? await
|
|
91356
|
+
const text2 = file3 ? await readFile40(resolve18(context.cwd, file3), "utf8") : await context.readStdin();
|
|
90672
91357
|
return text2.split("\n").map((line) => line.trim()).filter(Boolean);
|
|
90673
91358
|
}
|
|
90674
91359
|
async function secretsOf2({
|
|
@@ -90972,7 +91657,7 @@ async function slack({
|
|
|
90972
91657
|
}
|
|
90973
91658
|
|
|
90974
91659
|
// src/services/sso-commands.service.ts
|
|
90975
|
-
import { readFile as
|
|
91660
|
+
import { readFile as readFile41 } from "node:fs/promises";
|
|
90976
91661
|
var SSO_USAGE = `Usage:
|
|
90977
91662
|
laze sso domains claimed domains and how each signs in (admins)
|
|
90978
91663
|
laze sso claim <domain> the TXT record that proves the domain
|
|
@@ -91059,7 +91744,7 @@ function refuseSecretFlags({ args }) {
|
|
|
91059
91744
|
}
|
|
91060
91745
|
async function clientSecretOf({ context, args }) {
|
|
91061
91746
|
const file3 = flagText({ args, name: "from-file" });
|
|
91062
|
-
const text2 = file3 ? await
|
|
91747
|
+
const text2 = file3 ? await readFile41(file3, "utf8") : await context.readStdin();
|
|
91063
91748
|
const secret = text2.trim();
|
|
91064
91749
|
if (!secret) throw new CliUsageError("No client secret: pipe it on stdin or use --from-file.");
|
|
91065
91750
|
return secret;
|
|
@@ -91391,8 +92076,8 @@ async function update2({
|
|
|
91391
92076
|
}
|
|
91392
92077
|
|
|
91393
92078
|
// src/services/vault-env-commands.service.ts
|
|
91394
|
-
import { readFile as
|
|
91395
|
-
import { dirname as dirname22, join as
|
|
92079
|
+
import { readFile as readFile42, stat as stat7 } from "node:fs/promises";
|
|
92080
|
+
import { dirname as dirname22, join as join28, resolve as resolve19 } from "node:path";
|
|
91396
92081
|
|
|
91397
92082
|
// src/rules/vault-manifest.rules.ts
|
|
91398
92083
|
var VARIABLE = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
@@ -91737,11 +92422,11 @@ async function manifestPathOf({
|
|
|
91737
92422
|
args
|
|
91738
92423
|
}) {
|
|
91739
92424
|
const named = args.words[2];
|
|
91740
|
-
if (named) return
|
|
92425
|
+
if (named) return resolve19(context.cwd, named);
|
|
91741
92426
|
const environment = flagText({ args, name: "env" });
|
|
91742
92427
|
const file3 = environment ? `.env.${environment}.vault` : ".env.vault";
|
|
91743
|
-
for (let dir =
|
|
91744
|
-
if (await isFile(
|
|
92428
|
+
for (let dir = resolve19(context.cwd); ; dir = dirname22(dir)) {
|
|
92429
|
+
if (await isFile(join28(dir, file3))) return join28(dir, file3);
|
|
91745
92430
|
if (dirname22(dir) === dir) break;
|
|
91746
92431
|
}
|
|
91747
92432
|
throw new CliUsageError(`laze vault: no ${file3} here or in a parent folder
|
|
@@ -91752,7 +92437,7 @@ async function manifestOf({
|
|
|
91752
92437
|
args
|
|
91753
92438
|
}) {
|
|
91754
92439
|
const file3 = await manifestPathOf({ context, args });
|
|
91755
|
-
const text2 = await
|
|
92440
|
+
const text2 = await readFile42(file3, "utf8").catch(() => {
|
|
91756
92441
|
throw new CliUsageError(`laze vault: cannot read ${file3}`);
|
|
91757
92442
|
});
|
|
91758
92443
|
return { file: file3, lines: parseManifest({ text: text2, file: file3 }) };
|
|
@@ -92067,8 +92752,8 @@ async function vaultScrub({ context, args }) {
|
|
|
92067
92752
|
}
|
|
92068
92753
|
|
|
92069
92754
|
// src/services/whatsapp-business-commands.service.ts
|
|
92070
|
-
import { readFile as
|
|
92071
|
-
import { resolve as
|
|
92755
|
+
import { readFile as readFile43 } from "node:fs/promises";
|
|
92756
|
+
import { resolve as resolve20 } from "node:path";
|
|
92072
92757
|
|
|
92073
92758
|
// ../../modules/whatsapp-business/contract/src/whatsapp-business.prices.ts
|
|
92074
92759
|
var whatsappBusinessCategorySchema = external_exports.enum([
|
|
@@ -92487,7 +93172,7 @@ async function secretsOf3({ context, args }) {
|
|
|
92487
93172
|
const fromConnection = flagText({ args, name: "from-vault" });
|
|
92488
93173
|
if (fromConnection) return { fromConnection };
|
|
92489
93174
|
const file3 = flagText({ args, name: "from-file" });
|
|
92490
|
-
const text2 = file3 ? await
|
|
93175
|
+
const text2 = file3 ? await readFile43(resolve20(context.cwd, file3), "utf8") : await context.readStdin();
|
|
92491
93176
|
const lines2 = text2.split("\n").map((line) => line.trim()).filter(Boolean);
|
|
92492
93177
|
if (lines2.length !== 2) {
|
|
92493
93178
|
throw new CliUsageError(
|
|
@@ -92689,7 +93374,7 @@ async function whatsappBusiness({
|
|
|
92689
93374
|
|
|
92690
93375
|
// src/services/whatsapp-pairing-commands.service.ts
|
|
92691
93376
|
import { writeFile as writeFile23 } from "node:fs/promises";
|
|
92692
|
-
import { resolve as
|
|
93377
|
+
import { resolve as resolve21 } from "node:path";
|
|
92693
93378
|
var WHATSAPP_PAIRING_USAGE = [
|
|
92694
93379
|
" laze whatsapp pair <machine> [--qr <file.svg>] link WhatsApp on your machine; scan the code (owner)",
|
|
92695
93380
|
" laze whatsapp pairing <pairing-id> [--qr <file.svg>] where the linking stands, with a fresh code",
|
|
@@ -92708,7 +93393,7 @@ function svgOf(dataUrl) {
|
|
|
92708
93393
|
return decodeURIComponent(body);
|
|
92709
93394
|
}
|
|
92710
93395
|
async function report2({ context, args, pairing: pairing2 }) {
|
|
92711
|
-
const qrFile = pairing2.qrSvg ?
|
|
93396
|
+
const qrFile = pairing2.qrSvg ? resolve21(context.cwd, flagText({ args, name: "qr", fallback: "whatsapp-qr.svg" })) : null;
|
|
92712
93397
|
if (qrFile && pairing2.qrSvg) await writeFile23(qrFile, svgOf(pairing2.qrSvg), "utf8");
|
|
92713
93398
|
if (args.flags.json) return context.out(`${JSON.stringify({ ...pairing2, qrFile }, null, 2)}
|
|
92714
93399
|
`);
|
|
@@ -93586,15 +94271,15 @@ import {
|
|
|
93586
94271
|
randomBytes as randomBytes3,
|
|
93587
94272
|
sign
|
|
93588
94273
|
} from "node:crypto";
|
|
93589
|
-
import { chmod as chmod3, link, mkdir as mkdir23, readFile as
|
|
93590
|
-
import { dirname as dirname23, join as
|
|
94274
|
+
import { chmod as chmod3, link, mkdir as mkdir23, readFile as readFile44, rm as rm15, writeFile as writeFile24 } from "node:fs/promises";
|
|
94275
|
+
import { dirname as dirname23, join as join29 } from "node:path";
|
|
93591
94276
|
var KEYCHAIN_SERVICE = "laze-cli-machine-key";
|
|
93592
|
-
var runProgram = ({ program, args, stdin: stdin2, timeoutMs }) => new Promise((
|
|
94277
|
+
var runProgram = ({ program, args, stdin: stdin2, timeoutMs }) => new Promise((resolve22, reject) => {
|
|
93593
94278
|
const child = execFile2(
|
|
93594
94279
|
program,
|
|
93595
94280
|
[...args],
|
|
93596
94281
|
{ timeout: timeoutMs },
|
|
93597
|
-
(error62, stdout2) => error62 ? reject(error62) :
|
|
94282
|
+
(error62, stdout2) => error62 ? reject(error62) : resolve22(String(stdout2))
|
|
93598
94283
|
);
|
|
93599
94284
|
if (stdin2 !== void 0) child.stdin?.end(stdin2);
|
|
93600
94285
|
});
|
|
@@ -93627,11 +94312,11 @@ var MachineKeyStore = class _MachineKeyStore {
|
|
|
93627
94312
|
});
|
|
93628
94313
|
}
|
|
93629
94314
|
get metaPath() {
|
|
93630
|
-
return
|
|
94315
|
+
return join29(dirname23(this.options.configPath), "machine-key.json");
|
|
93631
94316
|
}
|
|
93632
94317
|
/** Named by the key, so two CLIs making a key at once never overwrite each other's. */
|
|
93633
94318
|
pemPathOf(jwk) {
|
|
93634
|
-
return
|
|
94319
|
+
return join29(dirname23(this.options.configPath), `machine-key-${shortOf(jwk)}.pem`);
|
|
93635
94320
|
}
|
|
93636
94321
|
/** The Keychain item's account: one per config file and key. */
|
|
93637
94322
|
accountOf(jwk) {
|
|
@@ -93659,7 +94344,7 @@ var MachineKeyStore = class _MachineKeyStore {
|
|
|
93659
94344
|
async read() {
|
|
93660
94345
|
let meta3;
|
|
93661
94346
|
try {
|
|
93662
|
-
meta3 = machineKeyRegistrationSchema.parse(JSON.parse(await
|
|
94347
|
+
meta3 = machineKeyRegistrationSchema.parse(JSON.parse(await readFile44(this.metaPath, "utf8")));
|
|
93663
94348
|
} catch {
|
|
93664
94349
|
return null;
|
|
93665
94350
|
}
|
|
@@ -93674,7 +94359,7 @@ var MachineKeyStore = class _MachineKeyStore {
|
|
|
93674
94359
|
"-w"
|
|
93675
94360
|
],
|
|
93676
94361
|
timeoutMs: 1e4
|
|
93677
|
-
}) : await
|
|
94362
|
+
}) : await readFile44(this.pemPathOf(meta3.jwk), "utf8");
|
|
93678
94363
|
return keyOf2({ meta: meta3, privateKey: createPrivateKey(pemOf(pem)) });
|
|
93679
94364
|
}
|
|
93680
94365
|
async make() {
|
|
@@ -93816,7 +94501,7 @@ function machineProofFetch({
|
|
|
93816
94501
|
// src/services/processes.service.ts
|
|
93817
94502
|
import { execFile as execFile3, spawn as spawn4 } from "node:child_process";
|
|
93818
94503
|
import { mkdirSync, openSync } from "node:fs";
|
|
93819
|
-
import { readFile as
|
|
94504
|
+
import { readFile as readFile45, readlink } from "node:fs/promises";
|
|
93820
94505
|
import { dirname as dirname24 } from "node:path";
|
|
93821
94506
|
import { promisify as promisify2 } from "node:util";
|
|
93822
94507
|
var run3 = promisify2(execFile3);
|
|
@@ -93830,14 +94515,14 @@ function alive(pid) {
|
|
|
93830
94515
|
}
|
|
93831
94516
|
}
|
|
93832
94517
|
async function argsOf(pid) {
|
|
93833
|
-
const raw = await
|
|
94518
|
+
const raw = await readFile45(`/proc/${pid}/cmdline`, "utf8").catch(() => void 0);
|
|
93834
94519
|
if (raw) return raw.split("\0").filter(Boolean);
|
|
93835
94520
|
const listed = await run3("ps", ["-o", "args=", "-p", String(pid)]).catch(() => void 0);
|
|
93836
94521
|
const line = listed?.stdout.trim();
|
|
93837
94522
|
return line ? line.split(/\s+/) : void 0;
|
|
93838
94523
|
}
|
|
93839
94524
|
async function parentOf(pid) {
|
|
93840
|
-
const stat8 = await
|
|
94525
|
+
const stat8 = await readFile45(`/proc/${pid}/stat`, "utf8").catch(() => void 0);
|
|
93841
94526
|
const fromStat = stat8 ? Number(stat8.slice(stat8.lastIndexOf(")") + 2).split(" ")[1]) : NaN;
|
|
93842
94527
|
if (fromStat > 0) return fromStat;
|
|
93843
94528
|
const listed = await run3("ps", ["-o", "ppid=", "-p", String(pid)]).catch(() => void 0);
|
|
@@ -93950,15 +94635,15 @@ function terminalAsk() {
|
|
|
93950
94635
|
};
|
|
93951
94636
|
}
|
|
93952
94637
|
function sleep(ms, signal) {
|
|
93953
|
-
return new Promise((
|
|
93954
|
-
if (signal?.aborted) return
|
|
94638
|
+
return new Promise((resolve22) => {
|
|
94639
|
+
if (signal?.aborted) return resolve22();
|
|
93955
94640
|
const stop3 = () => {
|
|
93956
94641
|
clearTimeout(timer);
|
|
93957
|
-
|
|
94642
|
+
resolve22();
|
|
93958
94643
|
};
|
|
93959
94644
|
const timer = setTimeout(() => {
|
|
93960
94645
|
signal?.removeEventListener("abort", stop3);
|
|
93961
|
-
|
|
94646
|
+
resolve22();
|
|
93962
94647
|
}, ms);
|
|
93963
94648
|
signal?.addEventListener("abort", stop3, { once: true });
|
|
93964
94649
|
});
|