@pmate/cli 0.30.0 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +409 -389
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -88,7 +88,7 @@ var init_namespacedRef = __esm({
|
|
|
88
88
|
|
|
89
89
|
// src/sessionStore.ts
|
|
90
90
|
function buildSessionStorePath() {
|
|
91
|
-
return import_node_path4.default.join(import_node_os3.default.homedir(), ".pmate", "session.json");
|
|
91
|
+
return process.env.PMATE_SESSION_FILE?.trim() || import_node_path4.default.join(import_node_os3.default.homedir(), ".pmate", "session.json");
|
|
92
92
|
}
|
|
93
93
|
function assertValidAppRef(appRef2) {
|
|
94
94
|
return parseNamespacedRef(appRef2, { entityLabel: "app ref" }).fullId;
|
|
@@ -153,7 +153,7 @@ function loadSessionStore() {
|
|
|
153
153
|
}
|
|
154
154
|
function loadExistingSessionStoreOrEmpty() {
|
|
155
155
|
const sessionPath = buildSessionStorePath();
|
|
156
|
-
if (!(0,
|
|
156
|
+
if (!(0, import_node_fs4.existsSync)(sessionPath)) {
|
|
157
157
|
return {
|
|
158
158
|
version: SESSION_STORE_VERSION,
|
|
159
159
|
activeAppRef: DEFAULT_APP_ID,
|
|
@@ -172,10 +172,10 @@ function loadExistingSessionStoreOrEmpty() {
|
|
|
172
172
|
}
|
|
173
173
|
function loadSessionStoreWithPath() {
|
|
174
174
|
const sessionPath = buildSessionStorePath();
|
|
175
|
-
if (!(0,
|
|
175
|
+
if (!(0, import_node_fs4.existsSync)(sessionPath)) {
|
|
176
176
|
throw new Error(`Missing session file at ${sessionPath}. Run "pmate login" first.`);
|
|
177
177
|
}
|
|
178
|
-
const raw = (0,
|
|
178
|
+
const raw = (0, import_node_fs4.readFileSync)(sessionPath, "utf8");
|
|
179
179
|
const parsed = JSON.parse(raw);
|
|
180
180
|
const store = normalizeStore(parsed);
|
|
181
181
|
return { sessionPath, store };
|
|
@@ -265,12 +265,12 @@ function resolveReadApp(store, options) {
|
|
|
265
265
|
}
|
|
266
266
|
function writeSessionStore(store) {
|
|
267
267
|
const sessionPath = buildSessionStorePath();
|
|
268
|
-
(0,
|
|
269
|
-
(0,
|
|
268
|
+
(0, import_node_fs4.mkdirSync)(import_node_path4.default.dirname(sessionPath), { recursive: true });
|
|
269
|
+
(0, import_node_fs4.writeFileSync)(sessionPath, JSON.stringify(store, null, 2), {
|
|
270
270
|
mode: 384
|
|
271
271
|
});
|
|
272
272
|
try {
|
|
273
|
-
(0,
|
|
273
|
+
(0, import_node_fs4.chmodSync)(sessionPath, 384);
|
|
274
274
|
} catch {
|
|
275
275
|
}
|
|
276
276
|
}
|
|
@@ -280,11 +280,11 @@ function buildMissingSessionMessage(sessionPath, app) {
|
|
|
280
280
|
}
|
|
281
281
|
return `Missing session for app ${app} in ${sessionPath}. Run "pmate login --app ${app}" first.`;
|
|
282
282
|
}
|
|
283
|
-
var
|
|
283
|
+
var import_node_fs4, import_node_os3, import_node_path4, DEFAULT_APP_ID, SESSION_STORE_VERSION;
|
|
284
284
|
var init_sessionStore = __esm({
|
|
285
285
|
"src/sessionStore.ts"() {
|
|
286
286
|
"use strict";
|
|
287
|
-
|
|
287
|
+
import_node_fs4 = require("fs");
|
|
288
288
|
import_node_os3 = __toESM(require("os"));
|
|
289
289
|
import_node_path4 = __toESM(require("path"));
|
|
290
290
|
init_namespacedRef();
|
|
@@ -293,181 +293,181 @@ var init_sessionStore = __esm({
|
|
|
293
293
|
}
|
|
294
294
|
});
|
|
295
295
|
|
|
296
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/account.types.ts
|
|
296
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/account.types.ts
|
|
297
297
|
var init_account_types = __esm({
|
|
298
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/account.types.ts"() {
|
|
298
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/account.types.ts"() {
|
|
299
299
|
"use strict";
|
|
300
300
|
}
|
|
301
301
|
});
|
|
302
302
|
|
|
303
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/achievements.types.ts
|
|
303
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/achievements.types.ts
|
|
304
304
|
var init_achievements_types = __esm({
|
|
305
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/achievements.types.ts"() {
|
|
305
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/achievements.types.ts"() {
|
|
306
306
|
"use strict";
|
|
307
307
|
}
|
|
308
308
|
});
|
|
309
309
|
|
|
310
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/aigen.types.ts
|
|
310
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/aigen.types.ts
|
|
311
311
|
var init_aigen_types = __esm({
|
|
312
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/aigen.types.ts"() {
|
|
312
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/aigen.types.ts"() {
|
|
313
313
|
"use strict";
|
|
314
314
|
}
|
|
315
315
|
});
|
|
316
316
|
|
|
317
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/agent.types.ts
|
|
317
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/agent.types.ts
|
|
318
318
|
var init_agent_types = __esm({
|
|
319
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/agent.types.ts"() {
|
|
319
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/agent.types.ts"() {
|
|
320
320
|
"use strict";
|
|
321
321
|
}
|
|
322
322
|
});
|
|
323
323
|
|
|
324
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/agent-registry.types.ts
|
|
324
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/agent-registry.types.ts
|
|
325
325
|
var init_agent_registry_types = __esm({
|
|
326
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/agent-registry.types.ts"() {
|
|
326
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/agent-registry.types.ts"() {
|
|
327
327
|
"use strict";
|
|
328
328
|
}
|
|
329
329
|
});
|
|
330
330
|
|
|
331
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/runner-registry.types.ts
|
|
331
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/runner-registry.types.ts
|
|
332
332
|
var init_runner_registry_types = __esm({
|
|
333
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/runner-registry.types.ts"() {
|
|
333
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/runner-registry.types.ts"() {
|
|
334
334
|
"use strict";
|
|
335
335
|
}
|
|
336
336
|
});
|
|
337
337
|
|
|
338
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/function-registry.types.ts
|
|
338
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/function-registry.types.ts
|
|
339
339
|
var init_function_registry_types = __esm({
|
|
340
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/function-registry.types.ts"() {
|
|
340
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/function-registry.types.ts"() {
|
|
341
341
|
"use strict";
|
|
342
342
|
}
|
|
343
343
|
});
|
|
344
344
|
|
|
345
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/worker-registry.types.ts
|
|
345
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/worker-registry.types.ts
|
|
346
346
|
var init_worker_registry_types = __esm({
|
|
347
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/worker-registry.types.ts"() {
|
|
347
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/worker-registry.types.ts"() {
|
|
348
348
|
"use strict";
|
|
349
349
|
}
|
|
350
350
|
});
|
|
351
351
|
|
|
352
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/call.types.ts
|
|
352
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/call.types.ts
|
|
353
353
|
var init_call_types = __esm({
|
|
354
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/call.types.ts"() {
|
|
354
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/call.types.ts"() {
|
|
355
355
|
"use strict";
|
|
356
356
|
}
|
|
357
357
|
});
|
|
358
358
|
|
|
359
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/blockchain.types.ts
|
|
359
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/blockchain.types.ts
|
|
360
360
|
var init_blockchain_types = __esm({
|
|
361
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/blockchain.types.ts"() {
|
|
361
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/blockchain.types.ts"() {
|
|
362
362
|
"use strict";
|
|
363
363
|
}
|
|
364
364
|
});
|
|
365
365
|
|
|
366
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/breakdown.types.ts
|
|
366
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/breakdown.types.ts
|
|
367
367
|
var init_breakdown_types = __esm({
|
|
368
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/breakdown.types.ts"() {
|
|
368
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/breakdown.types.ts"() {
|
|
369
369
|
"use strict";
|
|
370
370
|
}
|
|
371
371
|
});
|
|
372
372
|
|
|
373
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/chat.types.ts
|
|
373
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/chat.types.ts
|
|
374
374
|
var init_chat_types = __esm({
|
|
375
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/chat.types.ts"() {
|
|
375
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/chat.types.ts"() {
|
|
376
376
|
"use strict";
|
|
377
377
|
}
|
|
378
378
|
});
|
|
379
379
|
|
|
380
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/companion.types.ts
|
|
380
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/companion.types.ts
|
|
381
381
|
var init_companion_types = __esm({
|
|
382
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/companion.types.ts"() {
|
|
382
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/companion.types.ts"() {
|
|
383
383
|
"use strict";
|
|
384
384
|
}
|
|
385
385
|
});
|
|
386
386
|
|
|
387
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/enums.ts
|
|
387
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/enums.ts
|
|
388
388
|
var init_enums = __esm({
|
|
389
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/enums.ts"() {
|
|
389
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/enums.ts"() {
|
|
390
390
|
"use strict";
|
|
391
391
|
}
|
|
392
392
|
});
|
|
393
393
|
|
|
394
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/lang.types.ts
|
|
394
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/lang.types.ts
|
|
395
395
|
var init_lang_types = __esm({
|
|
396
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/lang.types.ts"() {
|
|
396
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/lang.types.ts"() {
|
|
397
397
|
"use strict";
|
|
398
398
|
}
|
|
399
399
|
});
|
|
400
400
|
|
|
401
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/logs.types.ts
|
|
401
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/logs.types.ts
|
|
402
402
|
var init_logs_types = __esm({
|
|
403
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/logs.types.ts"() {
|
|
403
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/logs.types.ts"() {
|
|
404
404
|
"use strict";
|
|
405
405
|
}
|
|
406
406
|
});
|
|
407
407
|
|
|
408
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/message.types.ts
|
|
408
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/message.types.ts
|
|
409
409
|
var PING, PONG;
|
|
410
410
|
var init_message_types = __esm({
|
|
411
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/message.types.ts"() {
|
|
411
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/message.types.ts"() {
|
|
412
412
|
"use strict";
|
|
413
413
|
PING = 1;
|
|
414
414
|
PONG = 2;
|
|
415
415
|
}
|
|
416
416
|
});
|
|
417
417
|
|
|
418
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/newLog.types.ts
|
|
418
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/newLog.types.ts
|
|
419
419
|
var init_newLog_types = __esm({
|
|
420
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/newLog.types.ts"() {
|
|
420
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/newLog.types.ts"() {
|
|
421
421
|
"use strict";
|
|
422
422
|
}
|
|
423
423
|
});
|
|
424
424
|
|
|
425
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/novel.types.ts
|
|
425
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/novel.types.ts
|
|
426
426
|
var init_novel_types = __esm({
|
|
427
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/novel.types.ts"() {
|
|
427
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/novel.types.ts"() {
|
|
428
428
|
"use strict";
|
|
429
429
|
}
|
|
430
430
|
});
|
|
431
431
|
|
|
432
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/offline.types.ts
|
|
432
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/offline.types.ts
|
|
433
433
|
var init_offline_types = __esm({
|
|
434
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/offline.types.ts"() {
|
|
434
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/offline.types.ts"() {
|
|
435
435
|
"use strict";
|
|
436
436
|
}
|
|
437
437
|
});
|
|
438
438
|
|
|
439
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/prompt.types.ts
|
|
439
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/prompt.types.ts
|
|
440
440
|
var init_prompt_types = __esm({
|
|
441
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/prompt.types.ts"() {
|
|
441
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/prompt.types.ts"() {
|
|
442
442
|
"use strict";
|
|
443
443
|
}
|
|
444
444
|
});
|
|
445
445
|
|
|
446
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/reading.types.ts
|
|
446
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/reading.types.ts
|
|
447
447
|
var init_reading_types = __esm({
|
|
448
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/reading.types.ts"() {
|
|
448
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/reading.types.ts"() {
|
|
449
449
|
"use strict";
|
|
450
450
|
}
|
|
451
451
|
});
|
|
452
452
|
|
|
453
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/settings.types.ts
|
|
453
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/settings.types.ts
|
|
454
454
|
var init_settings_types = __esm({
|
|
455
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/settings.types.ts"() {
|
|
455
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/settings.types.ts"() {
|
|
456
456
|
"use strict";
|
|
457
457
|
}
|
|
458
458
|
});
|
|
459
459
|
|
|
460
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/subscription.types.ts
|
|
460
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/subscription.types.ts
|
|
461
461
|
var init_subscription_types = __esm({
|
|
462
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/subscription.types.ts"() {
|
|
462
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/subscription.types.ts"() {
|
|
463
463
|
"use strict";
|
|
464
464
|
}
|
|
465
465
|
});
|
|
466
466
|
|
|
467
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/types.ts
|
|
467
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/types.ts
|
|
468
468
|
var buildVoiceKey, createVoice;
|
|
469
469
|
var init_types = __esm({
|
|
470
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/types.ts"() {
|
|
470
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/types.ts"() {
|
|
471
471
|
"use strict";
|
|
472
472
|
buildVoiceKey = (provider, name) => {
|
|
473
473
|
return `${provider}:${name}`;
|
|
@@ -489,44 +489,44 @@ var init_types = __esm({
|
|
|
489
489
|
}
|
|
490
490
|
});
|
|
491
491
|
|
|
492
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/wordv5.def.ts
|
|
492
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/wordv5.def.ts
|
|
493
493
|
var init_wordv5_def = __esm({
|
|
494
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/wordv5.def.ts"() {
|
|
494
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/wordv5.def.ts"() {
|
|
495
495
|
"use strict";
|
|
496
496
|
}
|
|
497
497
|
});
|
|
498
498
|
|
|
499
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/auth.types.ts
|
|
499
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/auth.types.ts
|
|
500
500
|
var init_auth_types = __esm({
|
|
501
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/auth.types.ts"() {
|
|
501
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/auth.types.ts"() {
|
|
502
502
|
"use strict";
|
|
503
503
|
}
|
|
504
504
|
});
|
|
505
505
|
|
|
506
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/apps.types.ts
|
|
506
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/apps.types.ts
|
|
507
507
|
var init_apps_types = __esm({
|
|
508
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/apps.types.ts"() {
|
|
508
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/apps.types.ts"() {
|
|
509
509
|
"use strict";
|
|
510
510
|
}
|
|
511
511
|
});
|
|
512
512
|
|
|
513
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/response.types.ts
|
|
513
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/response.types.ts
|
|
514
514
|
var init_response_types = __esm({
|
|
515
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/response.types.ts"() {
|
|
515
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/response.types.ts"() {
|
|
516
516
|
"use strict";
|
|
517
517
|
}
|
|
518
518
|
});
|
|
519
519
|
|
|
520
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/role.types.ts
|
|
520
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/role.types.ts
|
|
521
521
|
var init_role_types = __esm({
|
|
522
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/role.types.ts"() {
|
|
522
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/role.types.ts"() {
|
|
523
523
|
"use strict";
|
|
524
524
|
}
|
|
525
525
|
});
|
|
526
526
|
|
|
527
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/index.ts
|
|
527
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/index.ts
|
|
528
528
|
var init_types2 = __esm({
|
|
529
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/index.ts"() {
|
|
529
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/types/index.ts"() {
|
|
530
530
|
"use strict";
|
|
531
531
|
init_account_types();
|
|
532
532
|
init_achievements_types();
|
|
@@ -561,24 +561,24 @@ var init_types2 = __esm({
|
|
|
561
561
|
}
|
|
562
562
|
});
|
|
563
563
|
|
|
564
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/BizErrorCode.ts
|
|
564
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/BizErrorCode.ts
|
|
565
565
|
var init_BizErrorCode = __esm({
|
|
566
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/BizErrorCode.ts"() {
|
|
566
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/BizErrorCode.ts"() {
|
|
567
567
|
"use strict";
|
|
568
568
|
}
|
|
569
569
|
});
|
|
570
570
|
|
|
571
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/consts.ts
|
|
571
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/consts.ts
|
|
572
572
|
var init_consts = __esm({
|
|
573
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/consts.ts"() {
|
|
573
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/consts.ts"() {
|
|
574
574
|
"use strict";
|
|
575
575
|
}
|
|
576
576
|
});
|
|
577
577
|
|
|
578
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/TopicNames.ts
|
|
578
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/TopicNames.ts
|
|
579
579
|
var TopicNames, topicKindMatchers;
|
|
580
580
|
var init_TopicNames = __esm({
|
|
581
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/TopicNames.ts"() {
|
|
581
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/TopicNames.ts"() {
|
|
582
582
|
"use strict";
|
|
583
583
|
init_types2();
|
|
584
584
|
TopicNames = class _TopicNames {
|
|
@@ -664,18 +664,18 @@ var init_TopicNames = __esm({
|
|
|
664
664
|
}
|
|
665
665
|
});
|
|
666
666
|
|
|
667
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/OSSKeys.ts
|
|
667
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/OSSKeys.ts
|
|
668
668
|
var init_OSSKeys = __esm({
|
|
669
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/OSSKeys.ts"() {
|
|
669
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/OSSKeys.ts"() {
|
|
670
670
|
"use strict";
|
|
671
671
|
init_consts();
|
|
672
672
|
}
|
|
673
673
|
});
|
|
674
674
|
|
|
675
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/CompanionProfiles.ts
|
|
675
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/CompanionProfiles.ts
|
|
676
676
|
var openAICoral, openAIAsh, openAIBallad, openAINova, openAIVerse;
|
|
677
677
|
var init_CompanionProfiles = __esm({
|
|
678
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/CompanionProfiles.ts"() {
|
|
678
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/CompanionProfiles.ts"() {
|
|
679
679
|
"use strict";
|
|
680
680
|
init_types2();
|
|
681
681
|
openAICoral = createVoice({
|
|
@@ -710,9 +710,9 @@ var init_CompanionProfiles = __esm({
|
|
|
710
710
|
}
|
|
711
711
|
});
|
|
712
712
|
|
|
713
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/index.ts
|
|
713
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/index.ts
|
|
714
714
|
var init_config = __esm({
|
|
715
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/index.ts"() {
|
|
715
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/config/index.ts"() {
|
|
716
716
|
"use strict";
|
|
717
717
|
init_BizErrorCode();
|
|
718
718
|
init_consts();
|
|
@@ -722,83 +722,83 @@ var init_config = __esm({
|
|
|
722
722
|
}
|
|
723
723
|
});
|
|
724
724
|
|
|
725
|
-
// node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/index.ts
|
|
725
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/index.ts
|
|
726
726
|
var init_src = __esm({
|
|
727
|
-
"node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/index.ts"() {
|
|
727
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+meta@1.3.1/node_modules/@pmate/meta/src/index.ts"() {
|
|
728
728
|
"use strict";
|
|
729
729
|
init_types2();
|
|
730
730
|
init_config();
|
|
731
731
|
}
|
|
732
732
|
});
|
|
733
733
|
|
|
734
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/base64.ts
|
|
734
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/base64.ts
|
|
735
735
|
var init_base64 = __esm({
|
|
736
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/base64.ts"() {
|
|
736
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/base64.ts"() {
|
|
737
737
|
"use strict";
|
|
738
738
|
}
|
|
739
739
|
});
|
|
740
740
|
|
|
741
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Cache.ts
|
|
741
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Cache.ts
|
|
742
742
|
var init_Cache = __esm({
|
|
743
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Cache.ts"() {
|
|
743
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Cache.ts"() {
|
|
744
744
|
"use strict";
|
|
745
745
|
}
|
|
746
746
|
});
|
|
747
747
|
|
|
748
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/batchResolve.ts
|
|
748
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/batchResolve.ts
|
|
749
749
|
var init_batchResolve = __esm({
|
|
750
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/batchResolve.ts"() {
|
|
750
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/batchResolve.ts"() {
|
|
751
751
|
"use strict";
|
|
752
752
|
init_Cache();
|
|
753
753
|
}
|
|
754
754
|
});
|
|
755
755
|
|
|
756
|
-
// node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceSpliter.ts
|
|
756
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceSpliter.ts
|
|
757
757
|
var init_sentenceSpliter = __esm({
|
|
758
|
-
"node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceSpliter.ts"() {
|
|
758
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceSpliter.ts"() {
|
|
759
759
|
"use strict";
|
|
760
760
|
}
|
|
761
761
|
});
|
|
762
762
|
|
|
763
|
-
// node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceTrim.ts
|
|
763
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceTrim.ts
|
|
764
764
|
var init_sentenceTrim = __esm({
|
|
765
|
-
"node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceTrim.ts"() {
|
|
765
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/sentenceTrim.ts"() {
|
|
766
766
|
"use strict";
|
|
767
767
|
}
|
|
768
768
|
});
|
|
769
769
|
|
|
770
|
-
// node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/wordSpliter.ts
|
|
770
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/wordSpliter.ts
|
|
771
771
|
var init_wordSpliter = __esm({
|
|
772
|
-
"node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/wordSpliter.ts"() {
|
|
772
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/cn/wordSpliter.ts"() {
|
|
773
773
|
"use strict";
|
|
774
774
|
}
|
|
775
775
|
});
|
|
776
776
|
|
|
777
|
-
// node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/regex.ts
|
|
777
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/regex.ts
|
|
778
778
|
var init_regex = __esm({
|
|
779
|
-
"node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/regex.ts"() {
|
|
779
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/regex.ts"() {
|
|
780
780
|
"use strict";
|
|
781
781
|
}
|
|
782
782
|
});
|
|
783
783
|
|
|
784
|
-
// node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceSpliter.ts
|
|
784
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceSpliter.ts
|
|
785
785
|
var init_sentenceSpliter2 = __esm({
|
|
786
|
-
"node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceSpliter.ts"() {
|
|
786
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceSpliter.ts"() {
|
|
787
787
|
"use strict";
|
|
788
788
|
}
|
|
789
789
|
});
|
|
790
790
|
|
|
791
|
-
// node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceTrim.ts
|
|
791
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceTrim.ts
|
|
792
792
|
var init_sentenceTrim2 = __esm({
|
|
793
|
-
"node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceTrim.ts"() {
|
|
793
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/sentenceTrim.ts"() {
|
|
794
794
|
"use strict";
|
|
795
795
|
}
|
|
796
796
|
});
|
|
797
797
|
|
|
798
|
-
// node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/wordSpliter.ts
|
|
798
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/wordSpliter.ts
|
|
799
799
|
var regex;
|
|
800
800
|
var init_wordSpliter2 = __esm({
|
|
801
|
-
"node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/wordSpliter.ts"() {
|
|
801
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/en/wordSpliter.ts"() {
|
|
802
802
|
"use strict";
|
|
803
803
|
regex = new RegExp(
|
|
804
804
|
[
|
|
@@ -834,23 +834,23 @@ var init_wordSpliter2 = __esm({
|
|
|
834
834
|
}
|
|
835
835
|
});
|
|
836
836
|
|
|
837
|
-
// node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/sentenceSpliter.ts
|
|
837
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/sentenceSpliter.ts
|
|
838
838
|
var init_sentenceSpliter3 = __esm({
|
|
839
|
-
"node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/sentenceSpliter.ts"() {
|
|
839
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/sentenceSpliter.ts"() {
|
|
840
840
|
"use strict";
|
|
841
841
|
}
|
|
842
842
|
});
|
|
843
843
|
|
|
844
|
-
// node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/wordSpliter.ts
|
|
844
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/wordSpliter.ts
|
|
845
845
|
var init_wordSpliter3 = __esm({
|
|
846
|
-
"node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/wordSpliter.ts"() {
|
|
846
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/kr/wordSpliter.ts"() {
|
|
847
847
|
"use strict";
|
|
848
848
|
}
|
|
849
849
|
});
|
|
850
850
|
|
|
851
|
-
// node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/readingSettings.ts
|
|
851
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/readingSettings.ts
|
|
852
852
|
var init_readingSettings = __esm({
|
|
853
|
-
"node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/readingSettings.ts"() {
|
|
853
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/readingSettings.ts"() {
|
|
854
854
|
"use strict";
|
|
855
855
|
init_sentenceSpliter();
|
|
856
856
|
init_wordSpliter();
|
|
@@ -861,17 +861,17 @@ var init_readingSettings = __esm({
|
|
|
861
861
|
}
|
|
862
862
|
});
|
|
863
863
|
|
|
864
|
-
// node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/utils.ts
|
|
864
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/utils.ts
|
|
865
865
|
var init_utils = __esm({
|
|
866
|
-
"node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/utils.ts"() {
|
|
866
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/utils.ts"() {
|
|
867
867
|
"use strict";
|
|
868
868
|
init_src();
|
|
869
869
|
}
|
|
870
870
|
});
|
|
871
871
|
|
|
872
|
-
// node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/index.ts
|
|
872
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/index.ts
|
|
873
873
|
var init_src2 = __esm({
|
|
874
|
-
"node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/index.ts"() {
|
|
874
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+lang@1.0.4/node_modules/@pmate/lang/src/index.ts"() {
|
|
875
875
|
"use strict";
|
|
876
876
|
init_sentenceSpliter();
|
|
877
877
|
init_sentenceTrim();
|
|
@@ -887,32 +887,32 @@ var init_src2 = __esm({
|
|
|
887
887
|
}
|
|
888
888
|
});
|
|
889
889
|
|
|
890
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/bookStats.ts
|
|
890
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/bookStats.ts
|
|
891
891
|
var init_bookStats = __esm({
|
|
892
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/bookStats.ts"() {
|
|
892
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/bookStats.ts"() {
|
|
893
893
|
"use strict";
|
|
894
894
|
init_src2();
|
|
895
895
|
}
|
|
896
896
|
});
|
|
897
897
|
|
|
898
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/BoundedConcurrentQueue.ts
|
|
898
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/BoundedConcurrentQueue.ts
|
|
899
899
|
var init_BoundedConcurrentQueue = __esm({
|
|
900
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/BoundedConcurrentQueue.ts"() {
|
|
900
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/BoundedConcurrentQueue.ts"() {
|
|
901
901
|
"use strict";
|
|
902
902
|
}
|
|
903
903
|
});
|
|
904
904
|
|
|
905
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/lru.ts
|
|
905
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/lru.ts
|
|
906
906
|
var init_lru = __esm({
|
|
907
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/lru.ts"() {
|
|
907
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/lru.ts"() {
|
|
908
908
|
"use strict";
|
|
909
909
|
init_Cache();
|
|
910
910
|
}
|
|
911
911
|
});
|
|
912
912
|
|
|
913
|
-
// node_modules/.pnpm/js-sha3@0.9.3/node_modules/js-sha3/src/sha3.js
|
|
913
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/js-sha3@0.9.3/node_modules/js-sha3/src/sha3.js
|
|
914
914
|
var require_sha3 = __commonJS({
|
|
915
|
-
"node_modules/.pnpm/js-sha3@0.9.3/node_modules/js-sha3/src/sha3.js"(exports2, module2) {
|
|
915
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/js-sha3@0.9.3/node_modules/js-sha3/src/sha3.js"(exports2, module2) {
|
|
916
916
|
"use strict";
|
|
917
917
|
(function() {
|
|
918
918
|
"use strict";
|
|
@@ -1557,24 +1557,24 @@ var require_sha3 = __commonJS({
|
|
|
1557
1557
|
}
|
|
1558
1558
|
});
|
|
1559
1559
|
|
|
1560
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Maybe.ts
|
|
1560
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Maybe.ts
|
|
1561
1561
|
var init_Maybe = __esm({
|
|
1562
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Maybe.ts"() {
|
|
1562
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Maybe.ts"() {
|
|
1563
1563
|
"use strict";
|
|
1564
1564
|
}
|
|
1565
1565
|
});
|
|
1566
1566
|
|
|
1567
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/cacheMethodInMem.ts
|
|
1567
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/cacheMethodInMem.ts
|
|
1568
1568
|
var import_js_sha3;
|
|
1569
1569
|
var init_cacheMethodInMem = __esm({
|
|
1570
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/cacheMethodInMem.ts"() {
|
|
1570
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/cacheMethodInMem.ts"() {
|
|
1571
1571
|
"use strict";
|
|
1572
1572
|
import_js_sha3 = __toESM(require_sha3(), 1);
|
|
1573
1573
|
init_Maybe();
|
|
1574
1574
|
}
|
|
1575
1575
|
});
|
|
1576
1576
|
|
|
1577
|
-
// node_modules/.pnpm/pako@2.1.0/node_modules/pako/dist/pako.esm.mjs
|
|
1577
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/pako@2.1.0/node_modules/pako/dist/pako.esm.mjs
|
|
1578
1578
|
function zero$1(buf) {
|
|
1579
1579
|
let len = buf.length;
|
|
1580
1580
|
while (--len >= 0) {
|
|
@@ -1862,7 +1862,7 @@ function inflateRaw$1(input, options) {
|
|
|
1862
1862
|
}
|
|
1863
1863
|
var Z_FIXED$1, Z_BINARY, Z_TEXT, Z_UNKNOWN$1, STORED_BLOCK, STATIC_TREES, DYN_TREES, MIN_MATCH$1, MAX_MATCH$1, LENGTH_CODES$1, LITERALS$1, L_CODES$1, D_CODES$1, BL_CODES$1, HEAP_SIZE$1, MAX_BITS$1, Buf_size, MAX_BL_BITS, END_BLOCK, REP_3_6, REPZ_3_10, REPZ_11_138, extra_lbits, extra_dbits, extra_blbits, bl_order, DIST_CODE_LEN, static_ltree, static_dtree, _dist_code, _length_code, base_length, base_dist, static_l_desc, static_d_desc, static_bl_desc, d_code, put_short, send_bits, send_code, bi_reverse, bi_flush, gen_bitlen, gen_codes, tr_static_init, init_block, bi_windup, smaller, pqdownheap, compress_block, build_tree, scan_tree, send_tree, build_bl_tree, send_all_trees, detect_data_type, static_init_done, _tr_init$1, _tr_stored_block$1, _tr_align$1, _tr_flush_block$1, _tr_tally$1, _tr_init_1, _tr_stored_block_1, _tr_flush_block_1, _tr_tally_1, _tr_align_1, trees, adler32, adler32_1, makeTable, crcTable, crc32, crc32_1, messages, constants$2, _tr_init, _tr_stored_block, _tr_flush_block, _tr_tally, _tr_align, Z_NO_FLUSH$2, Z_PARTIAL_FLUSH, Z_FULL_FLUSH$1, Z_FINISH$3, Z_BLOCK$1, Z_OK$3, Z_STREAM_END$3, Z_STREAM_ERROR$2, Z_DATA_ERROR$2, Z_BUF_ERROR$1, Z_DEFAULT_COMPRESSION$1, Z_FILTERED, Z_HUFFMAN_ONLY, Z_RLE, Z_FIXED, Z_DEFAULT_STRATEGY$1, Z_UNKNOWN, Z_DEFLATED$2, MAX_MEM_LEVEL, MAX_WBITS$1, DEF_MEM_LEVEL, LENGTH_CODES, LITERALS, L_CODES, D_CODES, BL_CODES, HEAP_SIZE, MAX_BITS, MIN_MATCH, MAX_MATCH, MIN_LOOKAHEAD, PRESET_DICT, INIT_STATE, GZIP_STATE, EXTRA_STATE, NAME_STATE, COMMENT_STATE, HCRC_STATE, BUSY_STATE, FINISH_STATE, BS_NEED_MORE, BS_BLOCK_DONE, BS_FINISH_STARTED, BS_FINISH_DONE, OS_CODE, err, rank, zero, slide_hash, HASH_ZLIB, HASH, flush_pending, flush_block_only, put_byte, putShortMSB, read_buf, longest_match, fill_window, deflate_stored, deflate_fast, deflate_slow, deflate_rle, deflate_huff, configuration_table, lm_init, deflateStateCheck, deflateResetKeep, deflateReset, deflateSetHeader, deflateInit2, deflateInit, deflate$2, deflateEnd, deflateSetDictionary, deflateInit_1, deflateInit2_1, deflateReset_1, deflateResetKeep_1, deflateSetHeader_1, deflate_2$1, deflateEnd_1, deflateSetDictionary_1, deflateInfo, deflate_1$2, _has, assign, flattenChunks, common, STR_APPLY_UIA_OK, _utf8len, string2buf, buf2binstring, buf2string, utf8border, strings, zstream, toString$1, Z_NO_FLUSH$1, Z_SYNC_FLUSH, Z_FULL_FLUSH, Z_FINISH$2, Z_OK$2, Z_STREAM_END$2, Z_DEFAULT_COMPRESSION, Z_DEFAULT_STRATEGY, Z_DEFLATED$1, Deflate_1$1, deflate_2, deflateRaw_1$1, gzip_1$1, constants$1, deflate_1$1, BAD$1, TYPE$1, inffast, MAXBITS, ENOUGH_LENS$1, ENOUGH_DISTS$1, CODES$1, LENS$1, DISTS$1, lbase, lext, dbase, dext, inflate_table, inftrees, CODES, LENS, DISTS, Z_FINISH$1, Z_BLOCK, Z_TREES, Z_OK$1, Z_STREAM_END$1, Z_NEED_DICT$1, Z_STREAM_ERROR$1, Z_DATA_ERROR$1, Z_MEM_ERROR$1, Z_BUF_ERROR, Z_DEFLATED, HEAD, FLAGS, TIME, OS, EXLEN, EXTRA, NAME, COMMENT, HCRC, DICTID, DICT, TYPE, TYPEDO, STORED, COPY_, COPY, TABLE, LENLENS, CODELENS, LEN_, LEN, LENEXT, DIST, DISTEXT, MATCH, LIT, CHECK, LENGTH, DONE, BAD, MEM, SYNC, ENOUGH_LENS, ENOUGH_DISTS, MAX_WBITS, DEF_WBITS, zswap32, inflateStateCheck, inflateResetKeep, inflateReset, inflateReset2, inflateInit2, inflateInit, virgin, lenfix, distfix, fixedtables, updatewindow, inflate$2, inflateEnd, inflateGetHeader, inflateSetDictionary, inflateReset_1, inflateReset2_1, inflateResetKeep_1, inflateInit_1, inflateInit2_1, inflate_2$1, inflateEnd_1, inflateGetHeader_1, inflateSetDictionary_1, inflateInfo, inflate_1$2, gzheader, toString, Z_NO_FLUSH, Z_FINISH, Z_OK, Z_STREAM_END, Z_NEED_DICT, Z_STREAM_ERROR, Z_DATA_ERROR, Z_MEM_ERROR, Inflate_1$1, inflate_2, inflateRaw_1$1, ungzip$1, constants, inflate_1$1, Deflate, deflate, deflateRaw, gzip, Inflate, inflate, inflateRaw, ungzip, gzip_1;
|
|
1864
1864
|
var init_pako_esm = __esm({
|
|
1865
|
-
"node_modules/.pnpm/pako@2.1.0/node_modules/pako/dist/pako.esm.mjs"() {
|
|
1865
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/pako@2.1.0/node_modules/pako/dist/pako.esm.mjs"() {
|
|
1866
1866
|
"use strict";
|
|
1867
1867
|
Z_FIXED$1 = 4;
|
|
1868
1868
|
Z_BINARY = 0;
|
|
@@ -5743,7 +5743,7 @@ var init_pako_esm = __esm({
|
|
|
5743
5743
|
}
|
|
5744
5744
|
});
|
|
5745
5745
|
|
|
5746
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/compress.ts
|
|
5746
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/compress.ts
|
|
5747
5747
|
async function gzipEncodeBlob(input) {
|
|
5748
5748
|
const array = await toUint8Array(input);
|
|
5749
5749
|
return gzip_1(array);
|
|
@@ -5769,16 +5769,16 @@ async function toUint8Array(input) {
|
|
|
5769
5769
|
throw new TypeError("Unsupported input type for gzipEncodeBlob");
|
|
5770
5770
|
}
|
|
5771
5771
|
var init_compress = __esm({
|
|
5772
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/compress.ts"() {
|
|
5772
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/compress.ts"() {
|
|
5773
5773
|
"use strict";
|
|
5774
5774
|
init_pako_esm();
|
|
5775
5775
|
}
|
|
5776
5776
|
});
|
|
5777
5777
|
|
|
5778
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/AsyncStream.ts
|
|
5778
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/AsyncStream.ts
|
|
5779
5779
|
var AsyncStream;
|
|
5780
5780
|
var init_AsyncStream = __esm({
|
|
5781
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/AsyncStream.ts"() {
|
|
5781
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/AsyncStream.ts"() {
|
|
5782
5782
|
"use strict";
|
|
5783
5783
|
AsyncStream = class _AsyncStream {
|
|
5784
5784
|
constructor() {
|
|
@@ -5966,10 +5966,10 @@ var init_AsyncStream = __esm({
|
|
|
5966
5966
|
}
|
|
5967
5967
|
});
|
|
5968
5968
|
|
|
5969
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/uniqHash.ts
|
|
5969
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/uniqHash.ts
|
|
5970
5970
|
var import_js_sha32, sortKeys, uniqHash;
|
|
5971
5971
|
var init_uniqHash = __esm({
|
|
5972
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/uniqHash.ts"() {
|
|
5972
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/uniqHash.ts"() {
|
|
5973
5973
|
"use strict";
|
|
5974
5974
|
init_src();
|
|
5975
5975
|
import_js_sha32 = __toESM(require_sha3(), 1);
|
|
@@ -5999,69 +5999,69 @@ var init_uniqHash = __esm({
|
|
|
5999
5999
|
}
|
|
6000
6000
|
});
|
|
6001
6001
|
|
|
6002
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/createMsg.ts
|
|
6002
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/createMsg.ts
|
|
6003
6003
|
var init_createMsg = __esm({
|
|
6004
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/createMsg.ts"() {
|
|
6004
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/createMsg.ts"() {
|
|
6005
6005
|
"use strict";
|
|
6006
6006
|
init_src();
|
|
6007
6007
|
init_uniqHash();
|
|
6008
6008
|
}
|
|
6009
6009
|
});
|
|
6010
6010
|
|
|
6011
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/detectText.ts
|
|
6011
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/detectText.ts
|
|
6012
6012
|
var init_detectText = __esm({
|
|
6013
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/detectText.ts"() {
|
|
6013
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/detectText.ts"() {
|
|
6014
6014
|
"use strict";
|
|
6015
6015
|
}
|
|
6016
6016
|
});
|
|
6017
6017
|
|
|
6018
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Emitter.ts
|
|
6018
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Emitter.ts
|
|
6019
6019
|
var init_Emitter = __esm({
|
|
6020
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Emitter.ts"() {
|
|
6020
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Emitter.ts"() {
|
|
6021
6021
|
"use strict";
|
|
6022
6022
|
}
|
|
6023
6023
|
});
|
|
6024
6024
|
|
|
6025
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/EmitterV2.ts
|
|
6025
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/EmitterV2.ts
|
|
6026
6026
|
var init_EmitterV2 = __esm({
|
|
6027
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/EmitterV2.ts"() {
|
|
6027
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/EmitterV2.ts"() {
|
|
6028
6028
|
"use strict";
|
|
6029
6029
|
}
|
|
6030
6030
|
});
|
|
6031
6031
|
|
|
6032
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/format/formatTime.ts
|
|
6032
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/format/formatTime.ts
|
|
6033
6033
|
var init_formatTime = __esm({
|
|
6034
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/format/formatTime.ts"() {
|
|
6034
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/format/formatTime.ts"() {
|
|
6035
6035
|
"use strict";
|
|
6036
6036
|
}
|
|
6037
6037
|
});
|
|
6038
6038
|
|
|
6039
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/format/index.ts
|
|
6039
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/format/index.ts
|
|
6040
6040
|
var init_format = __esm({
|
|
6041
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/format/index.ts"() {
|
|
6041
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/format/index.ts"() {
|
|
6042
6042
|
"use strict";
|
|
6043
6043
|
init_formatTime();
|
|
6044
6044
|
}
|
|
6045
6045
|
});
|
|
6046
6046
|
|
|
6047
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/isVolcabulary.ts
|
|
6047
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/isVolcabulary.ts
|
|
6048
6048
|
var init_isVolcabulary = __esm({
|
|
6049
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/isVolcabulary.ts"() {
|
|
6049
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/isVolcabulary.ts"() {
|
|
6050
6050
|
"use strict";
|
|
6051
6051
|
}
|
|
6052
6052
|
});
|
|
6053
6053
|
|
|
6054
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Loadable.ts
|
|
6054
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Loadable.ts
|
|
6055
6055
|
var init_Loadable = __esm({
|
|
6056
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Loadable.ts"() {
|
|
6056
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Loadable.ts"() {
|
|
6057
6057
|
"use strict";
|
|
6058
6058
|
}
|
|
6059
6059
|
});
|
|
6060
6060
|
|
|
6061
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Logger.ts
|
|
6061
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Logger.ts
|
|
6062
6062
|
var Logger;
|
|
6063
6063
|
var init_Logger = __esm({
|
|
6064
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Logger.ts"() {
|
|
6064
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Logger.ts"() {
|
|
6065
6065
|
"use strict";
|
|
6066
6066
|
Logger = class _Logger {
|
|
6067
6067
|
constructor(name) {
|
|
@@ -6086,21 +6086,21 @@ var init_Logger = __esm({
|
|
|
6086
6086
|
}
|
|
6087
6087
|
});
|
|
6088
6088
|
|
|
6089
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/mapToReadingBook.ts
|
|
6089
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/mapToReadingBook.ts
|
|
6090
6090
|
var init_mapToReadingBook = __esm({
|
|
6091
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/mapToReadingBook.ts"() {
|
|
6091
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/mapToReadingBook.ts"() {
|
|
6092
6092
|
"use strict";
|
|
6093
6093
|
}
|
|
6094
6094
|
});
|
|
6095
6095
|
|
|
6096
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/memoize.ts
|
|
6096
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/memoize.ts
|
|
6097
6097
|
var init_memoize = __esm({
|
|
6098
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/memoize.ts"() {
|
|
6098
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/memoize.ts"() {
|
|
6099
6099
|
"use strict";
|
|
6100
6100
|
}
|
|
6101
6101
|
});
|
|
6102
6102
|
|
|
6103
|
-
// node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs
|
|
6103
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs
|
|
6104
6104
|
function utf8Count(str) {
|
|
6105
6105
|
const strLength = str.length;
|
|
6106
6106
|
let byteLength = 0;
|
|
@@ -6227,7 +6227,7 @@ function utf8Decode(bytes, inputOffset, byteLength) {
|
|
|
6227
6227
|
}
|
|
6228
6228
|
var sharedTextEncoder, TEXT_ENCODER_THRESHOLD, CHUNK_SIZE, sharedTextDecoder, TEXT_DECODER_THRESHOLD;
|
|
6229
6229
|
var init_utf8 = __esm({
|
|
6230
|
-
"node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs"() {
|
|
6230
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/utf8.mjs"() {
|
|
6231
6231
|
"use strict";
|
|
6232
6232
|
sharedTextEncoder = new TextEncoder();
|
|
6233
6233
|
TEXT_ENCODER_THRESHOLD = 50;
|
|
@@ -6237,10 +6237,10 @@ var init_utf8 = __esm({
|
|
|
6237
6237
|
}
|
|
6238
6238
|
});
|
|
6239
6239
|
|
|
6240
|
-
// node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs
|
|
6240
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs
|
|
6241
6241
|
var ExtData;
|
|
6242
6242
|
var init_ExtData = __esm({
|
|
6243
|
-
"node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs"() {
|
|
6243
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtData.mjs"() {
|
|
6244
6244
|
"use strict";
|
|
6245
6245
|
ExtData = class {
|
|
6246
6246
|
type;
|
|
@@ -6253,10 +6253,10 @@ var init_ExtData = __esm({
|
|
|
6253
6253
|
}
|
|
6254
6254
|
});
|
|
6255
6255
|
|
|
6256
|
-
// node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs
|
|
6256
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs
|
|
6257
6257
|
var DecodeError;
|
|
6258
6258
|
var init_DecodeError = __esm({
|
|
6259
|
-
"node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs"() {
|
|
6259
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/DecodeError.mjs"() {
|
|
6260
6260
|
"use strict";
|
|
6261
6261
|
DecodeError = class _DecodeError extends Error {
|
|
6262
6262
|
constructor(message) {
|
|
@@ -6273,7 +6273,7 @@ var init_DecodeError = __esm({
|
|
|
6273
6273
|
}
|
|
6274
6274
|
});
|
|
6275
6275
|
|
|
6276
|
-
// node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs
|
|
6276
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs
|
|
6277
6277
|
function setUint64(view, offset, value) {
|
|
6278
6278
|
const high = value / 4294967296;
|
|
6279
6279
|
const low = value;
|
|
@@ -6298,13 +6298,13 @@ function getUint64(view, offset) {
|
|
|
6298
6298
|
}
|
|
6299
6299
|
var UINT32_MAX;
|
|
6300
6300
|
var init_int = __esm({
|
|
6301
|
-
"node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs"() {
|
|
6301
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/int.mjs"() {
|
|
6302
6302
|
"use strict";
|
|
6303
6303
|
UINT32_MAX = 4294967295;
|
|
6304
6304
|
}
|
|
6305
6305
|
});
|
|
6306
6306
|
|
|
6307
|
-
// node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs
|
|
6307
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs
|
|
6308
6308
|
function encodeTimeSpecToTimestamp({ sec, nsec }) {
|
|
6309
6309
|
if (sec >= 0 && nsec >= 0 && sec <= TIMESTAMP64_MAX_SEC) {
|
|
6310
6310
|
if (nsec === 0 && sec <= TIMESTAMP32_MAX_SEC) {
|
|
@@ -6377,7 +6377,7 @@ function decodeTimestampExtension(data) {
|
|
|
6377
6377
|
}
|
|
6378
6378
|
var EXT_TIMESTAMP, TIMESTAMP32_MAX_SEC, TIMESTAMP64_MAX_SEC, timestampExtension;
|
|
6379
6379
|
var init_timestamp = __esm({
|
|
6380
|
-
"node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs"() {
|
|
6380
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/timestamp.mjs"() {
|
|
6381
6381
|
"use strict";
|
|
6382
6382
|
init_DecodeError();
|
|
6383
6383
|
init_int();
|
|
@@ -6392,10 +6392,10 @@ var init_timestamp = __esm({
|
|
|
6392
6392
|
}
|
|
6393
6393
|
});
|
|
6394
6394
|
|
|
6395
|
-
// node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs
|
|
6395
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs
|
|
6396
6396
|
var ExtensionCodec;
|
|
6397
6397
|
var init_ExtensionCodec = __esm({
|
|
6398
|
-
"node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs"() {
|
|
6398
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/ExtensionCodec.mjs"() {
|
|
6399
6399
|
"use strict";
|
|
6400
6400
|
init_ExtData();
|
|
6401
6401
|
init_timestamp();
|
|
@@ -6462,7 +6462,7 @@ var init_ExtensionCodec = __esm({
|
|
|
6462
6462
|
}
|
|
6463
6463
|
});
|
|
6464
6464
|
|
|
6465
|
-
// node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs
|
|
6465
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs
|
|
6466
6466
|
function isArrayBufferLike(buffer) {
|
|
6467
6467
|
return buffer instanceof ArrayBuffer || typeof SharedArrayBuffer !== "undefined" && buffer instanceof SharedArrayBuffer;
|
|
6468
6468
|
}
|
|
@@ -6478,15 +6478,15 @@ function ensureUint8Array(buffer) {
|
|
|
6478
6478
|
}
|
|
6479
6479
|
}
|
|
6480
6480
|
var init_typedArrays = __esm({
|
|
6481
|
-
"node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs"() {
|
|
6481
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/typedArrays.mjs"() {
|
|
6482
6482
|
"use strict";
|
|
6483
6483
|
}
|
|
6484
6484
|
});
|
|
6485
6485
|
|
|
6486
|
-
// node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs
|
|
6486
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs
|
|
6487
6487
|
var DEFAULT_MAX_DEPTH, DEFAULT_INITIAL_BUFFER_SIZE, Encoder;
|
|
6488
6488
|
var init_Encoder = __esm({
|
|
6489
|
-
"node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs"() {
|
|
6489
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Encoder.mjs"() {
|
|
6490
6490
|
"use strict";
|
|
6491
6491
|
init_utf8();
|
|
6492
6492
|
init_ExtensionCodec();
|
|
@@ -6896,32 +6896,32 @@ var init_Encoder = __esm({
|
|
|
6896
6896
|
}
|
|
6897
6897
|
});
|
|
6898
6898
|
|
|
6899
|
-
// node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/encode.mjs
|
|
6899
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/encode.mjs
|
|
6900
6900
|
function encode(value, options) {
|
|
6901
6901
|
const encoder2 = new Encoder(options);
|
|
6902
6902
|
return encoder2.encodeSharedRef(value);
|
|
6903
6903
|
}
|
|
6904
6904
|
var init_encode = __esm({
|
|
6905
|
-
"node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/encode.mjs"() {
|
|
6905
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/encode.mjs"() {
|
|
6906
6906
|
"use strict";
|
|
6907
6907
|
init_Encoder();
|
|
6908
6908
|
}
|
|
6909
6909
|
});
|
|
6910
6910
|
|
|
6911
|
-
// node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs
|
|
6911
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs
|
|
6912
6912
|
function prettyByte(byte) {
|
|
6913
6913
|
return `${byte < 0 ? "-" : ""}0x${Math.abs(byte).toString(16).padStart(2, "0")}`;
|
|
6914
6914
|
}
|
|
6915
6915
|
var init_prettyByte = __esm({
|
|
6916
|
-
"node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs"() {
|
|
6916
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/utils/prettyByte.mjs"() {
|
|
6917
6917
|
"use strict";
|
|
6918
6918
|
}
|
|
6919
6919
|
});
|
|
6920
6920
|
|
|
6921
|
-
// node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs
|
|
6921
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs
|
|
6922
6922
|
var DEFAULT_MAX_KEY_LENGTH, DEFAULT_MAX_LENGTH_PER_KEY, CachedKeyDecoder;
|
|
6923
6923
|
var init_CachedKeyDecoder = __esm({
|
|
6924
|
-
"node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs"() {
|
|
6924
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/CachedKeyDecoder.mjs"() {
|
|
6925
6925
|
"use strict";
|
|
6926
6926
|
init_utf8();
|
|
6927
6927
|
DEFAULT_MAX_KEY_LENGTH = 16;
|
|
@@ -6981,10 +6981,10 @@ var init_CachedKeyDecoder = __esm({
|
|
|
6981
6981
|
}
|
|
6982
6982
|
});
|
|
6983
6983
|
|
|
6984
|
-
// node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs
|
|
6984
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs
|
|
6985
6985
|
var STATE_ARRAY, STATE_MAP_KEY, STATE_MAP_VALUE, mapKeyConverter, StackPool, HEAD_BYTE_REQUIRED, EMPTY_VIEW, EMPTY_BYTES, MORE_DATA, sharedCachedKeyDecoder, Decoder;
|
|
6986
6986
|
var init_Decoder = __esm({
|
|
6987
|
-
"node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs"() {
|
|
6987
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/Decoder.mjs"() {
|
|
6988
6988
|
"use strict";
|
|
6989
6989
|
init_prettyByte();
|
|
6990
6990
|
init_ExtensionCodec();
|
|
@@ -7622,31 +7622,31 @@ var init_Decoder = __esm({
|
|
|
7622
7622
|
}
|
|
7623
7623
|
});
|
|
7624
7624
|
|
|
7625
|
-
// node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/decode.mjs
|
|
7625
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/decode.mjs
|
|
7626
7626
|
function decode(buffer, options) {
|
|
7627
7627
|
const decoder = new Decoder(options);
|
|
7628
7628
|
return decoder.decode(buffer);
|
|
7629
7629
|
}
|
|
7630
7630
|
var init_decode = __esm({
|
|
7631
|
-
"node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/decode.mjs"() {
|
|
7631
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/decode.mjs"() {
|
|
7632
7632
|
"use strict";
|
|
7633
7633
|
init_Decoder();
|
|
7634
7634
|
}
|
|
7635
7635
|
});
|
|
7636
7636
|
|
|
7637
|
-
// node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/index.mjs
|
|
7637
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/index.mjs
|
|
7638
7638
|
var init_dist = __esm({
|
|
7639
|
-
"node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/index.mjs"() {
|
|
7639
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@msgpack+msgpack@3.1.3/node_modules/@msgpack/msgpack/dist.esm/index.mjs"() {
|
|
7640
7640
|
"use strict";
|
|
7641
7641
|
init_encode();
|
|
7642
7642
|
init_decode();
|
|
7643
7643
|
}
|
|
7644
7644
|
});
|
|
7645
7645
|
|
|
7646
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Msg.ts
|
|
7646
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Msg.ts
|
|
7647
7647
|
var encoder, Msg;
|
|
7648
7648
|
var init_Msg = __esm({
|
|
7649
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Msg.ts"() {
|
|
7649
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/Msg.ts"() {
|
|
7650
7650
|
"use strict";
|
|
7651
7651
|
init_dist();
|
|
7652
7652
|
init_src();
|
|
@@ -7774,106 +7774,106 @@ var init_Msg = __esm({
|
|
|
7774
7774
|
}
|
|
7775
7775
|
});
|
|
7776
7776
|
|
|
7777
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/normalize.ts
|
|
7777
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/normalize.ts
|
|
7778
7778
|
var init_normalize = __esm({
|
|
7779
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/normalize.ts"() {
|
|
7779
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/normalize.ts"() {
|
|
7780
7780
|
"use strict";
|
|
7781
7781
|
}
|
|
7782
7782
|
});
|
|
7783
7783
|
|
|
7784
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/pageURL.ts
|
|
7784
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/pageURL.ts
|
|
7785
7785
|
var init_pageURL = __esm({
|
|
7786
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/pageURL.ts"() {
|
|
7786
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/pageURL.ts"() {
|
|
7787
7787
|
"use strict";
|
|
7788
7788
|
}
|
|
7789
7789
|
});
|
|
7790
7790
|
|
|
7791
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/PromiseQueue.ts
|
|
7791
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/PromiseQueue.ts
|
|
7792
7792
|
var init_PromiseQueue = __esm({
|
|
7793
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/PromiseQueue.ts"() {
|
|
7793
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/PromiseQueue.ts"() {
|
|
7794
7794
|
"use strict";
|
|
7795
7795
|
}
|
|
7796
7796
|
});
|
|
7797
7797
|
|
|
7798
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/resourceKey.ts
|
|
7798
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/resourceKey.ts
|
|
7799
7799
|
var import_js_sha33;
|
|
7800
7800
|
var init_resourceKey = __esm({
|
|
7801
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/resourceKey.ts"() {
|
|
7801
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/resourceKey.ts"() {
|
|
7802
7802
|
"use strict";
|
|
7803
7803
|
import_js_sha33 = __toESM(require_sha3(), 1);
|
|
7804
7804
|
}
|
|
7805
7805
|
});
|
|
7806
7806
|
|
|
7807
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/SelectionHelper.ts
|
|
7807
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/SelectionHelper.ts
|
|
7808
7808
|
var init_SelectionHelper = __esm({
|
|
7809
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/SelectionHelper.ts"() {
|
|
7809
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/SelectionHelper.ts"() {
|
|
7810
7810
|
"use strict";
|
|
7811
7811
|
}
|
|
7812
7812
|
});
|
|
7813
7813
|
|
|
7814
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/setMinus.ts
|
|
7814
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/setMinus.ts
|
|
7815
7815
|
var init_setMinus = __esm({
|
|
7816
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/setMinus.ts"() {
|
|
7816
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/setMinus.ts"() {
|
|
7817
7817
|
"use strict";
|
|
7818
7818
|
}
|
|
7819
7819
|
});
|
|
7820
7820
|
|
|
7821
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/sha1Hash.ts
|
|
7821
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/sha1Hash.ts
|
|
7822
7822
|
var init_sha1Hash = __esm({
|
|
7823
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/sha1Hash.ts"() {
|
|
7823
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/sha1Hash.ts"() {
|
|
7824
7824
|
"use strict";
|
|
7825
7825
|
}
|
|
7826
7826
|
});
|
|
7827
7827
|
|
|
7828
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/TaskWaiter.ts
|
|
7828
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/TaskWaiter.ts
|
|
7829
7829
|
var init_TaskWaiter = __esm({
|
|
7830
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/TaskWaiter.ts"() {
|
|
7830
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/TaskWaiter.ts"() {
|
|
7831
7831
|
"use strict";
|
|
7832
7832
|
init_src3();
|
|
7833
7833
|
}
|
|
7834
7834
|
});
|
|
7835
7835
|
|
|
7836
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/toSentenceAnalyze.ts
|
|
7836
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/toSentenceAnalyze.ts
|
|
7837
7837
|
var init_toSentenceAnalyze = __esm({
|
|
7838
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/toSentenceAnalyze.ts"() {
|
|
7838
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/toSentenceAnalyze.ts"() {
|
|
7839
7839
|
"use strict";
|
|
7840
7840
|
}
|
|
7841
7841
|
});
|
|
7842
7842
|
|
|
7843
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/txtBookToJson.ts
|
|
7843
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/txtBookToJson.ts
|
|
7844
7844
|
var init_txtBookToJson = __esm({
|
|
7845
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/txtBookToJson.ts"() {
|
|
7845
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/txtBookToJson.ts"() {
|
|
7846
7846
|
"use strict";
|
|
7847
7847
|
init_src2();
|
|
7848
7848
|
}
|
|
7849
7849
|
});
|
|
7850
7850
|
|
|
7851
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/VocabularyMap.ts
|
|
7851
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/VocabularyMap.ts
|
|
7852
7852
|
var init_VocabularyMap = __esm({
|
|
7853
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/VocabularyMap.ts"() {
|
|
7853
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/VocabularyMap.ts"() {
|
|
7854
7854
|
"use strict";
|
|
7855
7855
|
init_Emitter();
|
|
7856
7856
|
}
|
|
7857
7857
|
});
|
|
7858
7858
|
|
|
7859
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/wait.ts
|
|
7859
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/wait.ts
|
|
7860
7860
|
var init_wait = __esm({
|
|
7861
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/wait.ts"() {
|
|
7861
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/wait.ts"() {
|
|
7862
7862
|
"use strict";
|
|
7863
7863
|
}
|
|
7864
7864
|
});
|
|
7865
7865
|
|
|
7866
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/wordCount.ts
|
|
7866
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/wordCount.ts
|
|
7867
7867
|
var init_wordCount = __esm({
|
|
7868
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/wordCount.ts"() {
|
|
7868
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/wordCount.ts"() {
|
|
7869
7869
|
"use strict";
|
|
7870
7870
|
}
|
|
7871
7871
|
});
|
|
7872
7872
|
|
|
7873
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketHeartbeat.ts
|
|
7873
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketHeartbeat.ts
|
|
7874
7874
|
var logger, WebsocketHeartbeat;
|
|
7875
7875
|
var init_WebsocketHeartbeat = __esm({
|
|
7876
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketHeartbeat.ts"() {
|
|
7876
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketHeartbeat.ts"() {
|
|
7877
7877
|
"use strict";
|
|
7878
7878
|
init_src();
|
|
7879
7879
|
init_Logger();
|
|
@@ -7914,10 +7914,10 @@ var init_WebsocketHeartbeat = __esm({
|
|
|
7914
7914
|
}
|
|
7915
7915
|
});
|
|
7916
7916
|
|
|
7917
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketClient.ts
|
|
7917
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketClient.ts
|
|
7918
7918
|
var logger2;
|
|
7919
7919
|
var init_WebsocketClient = __esm({
|
|
7920
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketClient.ts"() {
|
|
7920
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketClient.ts"() {
|
|
7921
7921
|
"use strict";
|
|
7922
7922
|
init_src();
|
|
7923
7923
|
init_Emitter();
|
|
@@ -7928,7 +7928,7 @@ var init_WebsocketClient = __esm({
|
|
|
7928
7928
|
}
|
|
7929
7929
|
});
|
|
7930
7930
|
|
|
7931
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketClientV2.ts
|
|
7931
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketClientV2.ts
|
|
7932
7932
|
function isEventLike(value) {
|
|
7933
7933
|
return typeof value === "object" && value !== null && "type" in value && typeof value.type === "string";
|
|
7934
7934
|
}
|
|
@@ -7937,7 +7937,7 @@ function isCloseEvent(value) {
|
|
|
7937
7937
|
}
|
|
7938
7938
|
var logger3, WebsocketClientV2;
|
|
7939
7939
|
var init_WebsocketClientV2 = __esm({
|
|
7940
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketClientV2.ts"() {
|
|
7940
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/WebsocketClientV2.ts"() {
|
|
7941
7941
|
"use strict";
|
|
7942
7942
|
init_src();
|
|
7943
7943
|
init_AsyncStream();
|
|
@@ -8184,10 +8184,10 @@ var init_WebsocketClientV2 = __esm({
|
|
|
8184
8184
|
}
|
|
8185
8185
|
});
|
|
8186
8186
|
|
|
8187
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/H3Client.ts
|
|
8187
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/H3Client.ts
|
|
8188
8188
|
var logger4;
|
|
8189
8189
|
var init_H3Client = __esm({
|
|
8190
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/H3Client.ts"() {
|
|
8190
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/H3Client.ts"() {
|
|
8191
8191
|
"use strict";
|
|
8192
8192
|
init_Emitter();
|
|
8193
8193
|
init_Logger();
|
|
@@ -8197,9 +8197,9 @@ var init_H3Client = __esm({
|
|
|
8197
8197
|
}
|
|
8198
8198
|
});
|
|
8199
8199
|
|
|
8200
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/index.ts
|
|
8200
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/index.ts
|
|
8201
8201
|
var init_websocket = __esm({
|
|
8202
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/index.ts"() {
|
|
8202
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/websocket/index.ts"() {
|
|
8203
8203
|
"use strict";
|
|
8204
8204
|
init_WebsocketClient();
|
|
8205
8205
|
init_WebsocketClientV2();
|
|
@@ -8207,9 +8207,9 @@ var init_websocket = __esm({
|
|
|
8207
8207
|
}
|
|
8208
8208
|
});
|
|
8209
8209
|
|
|
8210
|
-
// node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/index.ts
|
|
8210
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/index.ts
|
|
8211
8211
|
var init_src3 = __esm({
|
|
8212
|
-
"node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/index.ts"() {
|
|
8212
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+utils@1.1.4/node_modules/@pmate/utils/src/index.ts"() {
|
|
8213
8213
|
"use strict";
|
|
8214
8214
|
init_base64();
|
|
8215
8215
|
init_batchResolve();
|
|
@@ -8249,23 +8249,23 @@ var init_src3 = __esm({
|
|
|
8249
8249
|
}
|
|
8250
8250
|
});
|
|
8251
8251
|
|
|
8252
|
-
// node_modules/.pnpm/@pmate+hub-sdk@0.4.1/node_modules/@pmate/hub-sdk/dist/AgentClient.js
|
|
8252
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+hub-sdk@0.4.1/node_modules/@pmate/hub-sdk/dist/AgentClient.js
|
|
8253
8253
|
var init_AgentClient = __esm({
|
|
8254
|
-
"node_modules/.pnpm/@pmate+hub-sdk@0.4.1/node_modules/@pmate/hub-sdk/dist/AgentClient.js"() {
|
|
8254
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+hub-sdk@0.4.1/node_modules/@pmate/hub-sdk/dist/AgentClient.js"() {
|
|
8255
8255
|
"use strict";
|
|
8256
8256
|
init_src();
|
|
8257
8257
|
init_src3();
|
|
8258
8258
|
}
|
|
8259
8259
|
});
|
|
8260
8260
|
|
|
8261
|
-
// node_modules/.pnpm/@pmate+hub-sdk@0.4.1/node_modules/@pmate/hub-sdk/dist/FunctionService.js
|
|
8261
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+hub-sdk@0.4.1/node_modules/@pmate/hub-sdk/dist/FunctionService.js
|
|
8262
8262
|
var init_FunctionService = __esm({
|
|
8263
|
-
"node_modules/.pnpm/@pmate+hub-sdk@0.4.1/node_modules/@pmate/hub-sdk/dist/FunctionService.js"() {
|
|
8263
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+hub-sdk@0.4.1/node_modules/@pmate/hub-sdk/dist/FunctionService.js"() {
|
|
8264
8264
|
"use strict";
|
|
8265
8265
|
}
|
|
8266
8266
|
});
|
|
8267
8267
|
|
|
8268
|
-
// node_modules/.pnpm/@pmate+hub-sdk@0.4.1/node_modules/@pmate/hub-sdk/dist/HubClient.js
|
|
8268
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+hub-sdk@0.4.1/node_modules/@pmate/hub-sdk/dist/HubClient.js
|
|
8269
8269
|
function createCallId(functionId) {
|
|
8270
8270
|
return uniqHash(`${functionId}-${Date.now()}-${Math.random()}`, "task-v1" /* Task */);
|
|
8271
8271
|
}
|
|
@@ -8326,7 +8326,7 @@ function withTimeout(promise, timeoutMs, message) {
|
|
|
8326
8326
|
}
|
|
8327
8327
|
var DEFAULT_TIMEOUT_MS, DEFAULT_STREAM_TIMEOUT_MS, HubClient, AsyncCallQueue;
|
|
8328
8328
|
var init_HubClient = __esm({
|
|
8329
|
-
"node_modules/.pnpm/@pmate+hub-sdk@0.4.1/node_modules/@pmate/hub-sdk/dist/HubClient.js"() {
|
|
8329
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+hub-sdk@0.4.1/node_modules/@pmate/hub-sdk/dist/HubClient.js"() {
|
|
8330
8330
|
"use strict";
|
|
8331
8331
|
init_src();
|
|
8332
8332
|
init_src3();
|
|
@@ -8746,9 +8746,9 @@ var init_HubClient = __esm({
|
|
|
8746
8746
|
}
|
|
8747
8747
|
});
|
|
8748
8748
|
|
|
8749
|
-
// node_modules/.pnpm/@pmate+hub-sdk@0.4.1/node_modules/@pmate/hub-sdk/dist/index.js
|
|
8749
|
+
// ../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+hub-sdk@0.4.1/node_modules/@pmate/hub-sdk/dist/index.js
|
|
8750
8750
|
var init_dist2 = __esm({
|
|
8751
|
-
"node_modules/.pnpm/@pmate+hub-sdk@0.4.1/node_modules/@pmate/hub-sdk/dist/index.js"() {
|
|
8751
|
+
"../../../Users/ramroll/dev/pmate/pmate-cli/node_modules/.pnpm/@pmate+hub-sdk@0.4.1/node_modules/@pmate/hub-sdk/dist/index.js"() {
|
|
8752
8752
|
"use strict";
|
|
8753
8753
|
init_AgentClient();
|
|
8754
8754
|
init_FunctionService();
|
|
@@ -8818,8 +8818,27 @@ __export(index_exports, {
|
|
|
8818
8818
|
parseCommandArgs: () => parseCommandArgs
|
|
8819
8819
|
});
|
|
8820
8820
|
module.exports = __toCommonJS(index_exports);
|
|
8821
|
-
var
|
|
8821
|
+
var import_node_fs26 = require("fs");
|
|
8822
8822
|
var import_node_path30 = __toESM(require("path"));
|
|
8823
|
+
|
|
8824
|
+
// src/managedSession.ts
|
|
8825
|
+
var import_node_fs = require("fs");
|
|
8826
|
+
async function ensureManagedSession(env = process.env, fetcher = fetch) {
|
|
8827
|
+
if (env.PCS_AGENT_SESSION_MANAGED !== "1") return;
|
|
8828
|
+
if (!env.PMATE_SESSION_FILE) throw Error("Managed session file is required");
|
|
8829
|
+
const state = JSON.parse((0, import_node_fs.readFileSync)(env.PMATE_SESSION_FILE, "utf8"));
|
|
8830
|
+
if (!state.refreshKey) throw Error("Managed session refresh key is missing");
|
|
8831
|
+
const port = Number(env.PCS_AGENT_CONTROL_PORT ?? 39399);
|
|
8832
|
+
if (!Number.isInteger(port) || port < 1 || port > 65535) throw Error("Invalid controller port");
|
|
8833
|
+
const r = await fetcher(`http://127.0.0.1:${port}/v2/session/refresh`, {
|
|
8834
|
+
method: "POST",
|
|
8835
|
+
headers: { "x-agent-session-key": state.refreshKey },
|
|
8836
|
+
signal: AbortSignal.timeout(45e3)
|
|
8837
|
+
});
|
|
8838
|
+
if (!r.ok) throw Error(`Managed session renewal unavailable (${r.status}); retry later`);
|
|
8839
|
+
}
|
|
8840
|
+
|
|
8841
|
+
// src/index.ts
|
|
8823
8842
|
var import_chalk4 = __toESM(require("chalk"));
|
|
8824
8843
|
|
|
8825
8844
|
// src/cli.ts
|
|
@@ -8865,7 +8884,7 @@ var ui = {
|
|
|
8865
8884
|
var import_node_path2 = __toESM(require("path"));
|
|
8866
8885
|
|
|
8867
8886
|
// src/config.ts
|
|
8868
|
-
var
|
|
8887
|
+
var import_node_fs2 = require("fs");
|
|
8869
8888
|
var import_node_os = __toESM(require("os"));
|
|
8870
8889
|
var import_node_path = __toESM(require("path"));
|
|
8871
8890
|
var import_ajv = __toESM(require("ajv"));
|
|
@@ -8994,8 +9013,8 @@ function loadPmateConfig() {
|
|
|
8994
9013
|
const pmateDir = import_node_path.default.join(import_node_os.default.homedir(), ".pmate");
|
|
8995
9014
|
const yamlPath = import_node_path.default.join(pmateDir, "config.yaml");
|
|
8996
9015
|
let yamlConfig = null;
|
|
8997
|
-
if ((0,
|
|
8998
|
-
const raw = (0,
|
|
9016
|
+
if ((0, import_node_fs2.existsSync)(yamlPath)) {
|
|
9017
|
+
const raw = (0, import_node_fs2.readFileSync)(yamlPath, "utf8");
|
|
8999
9018
|
try {
|
|
9000
9019
|
const parsed = import_yaml.default.parse(raw);
|
|
9001
9020
|
yamlConfig = validateParsedConfig(parsed, yamlPath);
|
|
@@ -9060,12 +9079,12 @@ function findRepoConfigPaths(cwd, searchParents) {
|
|
|
9060
9079
|
let current = import_node_path.default.resolve(cwd);
|
|
9061
9080
|
while (true) {
|
|
9062
9081
|
const candidate = import_node_path.default.join(current, ".pmate.yaml");
|
|
9063
|
-
if ((0,
|
|
9082
|
+
if ((0, import_node_fs2.existsSync)(candidate)) {
|
|
9064
9083
|
const localCandidate = import_node_path.default.join(current, ".pmate.local.yaml");
|
|
9065
9084
|
return {
|
|
9066
9085
|
rootDir: current,
|
|
9067
9086
|
configPath: candidate,
|
|
9068
|
-
localConfigPath: (0,
|
|
9087
|
+
localConfigPath: (0, import_node_fs2.existsSync)(localCandidate) ? localCandidate : void 0
|
|
9069
9088
|
};
|
|
9070
9089
|
}
|
|
9071
9090
|
if (!searchParents) {
|
|
@@ -9087,7 +9106,7 @@ function loadMergedRepoYaml(paths) {
|
|
|
9087
9106
|
return mergeRepoConfigValues(base, local);
|
|
9088
9107
|
}
|
|
9089
9108
|
function parseYamlFile(configPath) {
|
|
9090
|
-
const raw = (0,
|
|
9109
|
+
const raw = (0, import_node_fs2.readFileSync)(configPath, "utf8");
|
|
9091
9110
|
try {
|
|
9092
9111
|
return import_yaml.default.parse(raw);
|
|
9093
9112
|
} catch (error) {
|
|
@@ -9256,17 +9275,17 @@ var import_node_http = require("http");
|
|
|
9256
9275
|
var import_promises = require("readline/promises");
|
|
9257
9276
|
|
|
9258
9277
|
// src/accessKeyFile.ts
|
|
9259
|
-
var
|
|
9278
|
+
var import_node_fs3 = require("fs");
|
|
9260
9279
|
var import_node_os2 = __toESM(require("os"));
|
|
9261
9280
|
var import_node_path3 = __toESM(require("path"));
|
|
9262
9281
|
function readAccessKeyFile(filePath, options = {}) {
|
|
9263
9282
|
const absolutePath = resolveFilePath(filePath, options.cwd);
|
|
9264
|
-
if (!(0,
|
|
9283
|
+
if (!(0, import_node_fs3.existsSync)(absolutePath)) {
|
|
9265
9284
|
throw new Error(`Access key file not found: ${absolutePath}`);
|
|
9266
9285
|
}
|
|
9267
9286
|
let parsed;
|
|
9268
9287
|
try {
|
|
9269
|
-
parsed = JSON.parse((0,
|
|
9288
|
+
parsed = JSON.parse((0, import_node_fs3.readFileSync)(absolutePath, "utf8"));
|
|
9270
9289
|
} catch (error) {
|
|
9271
9290
|
const message = error instanceof Error ? error.message : String(error);
|
|
9272
9291
|
throw new Error(`Invalid JSON in ${absolutePath}: ${message}`);
|
|
@@ -9283,10 +9302,10 @@ function readAccessKeyFile(filePath, options = {}) {
|
|
|
9283
9302
|
}
|
|
9284
9303
|
function scanAccessKeyFiles(app) {
|
|
9285
9304
|
const dir = resolveAccessKeyDir(app);
|
|
9286
|
-
if (!(0,
|
|
9305
|
+
if (!(0, import_node_fs3.existsSync)(dir)) {
|
|
9287
9306
|
return [];
|
|
9288
9307
|
}
|
|
9289
|
-
return (0,
|
|
9308
|
+
return (0, import_node_fs3.readdirSync)(dir, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".access-key.json")).map((entry) => import_node_path3.default.join(dir, entry.name)).flatMap((filePath) => {
|
|
9290
9309
|
try {
|
|
9291
9310
|
return [{ filePath, key: readAccessKeyFile(filePath, { expectedApp: app }) }];
|
|
9292
9311
|
} catch {
|
|
@@ -9808,7 +9827,7 @@ var import_openapi_client = require("@alicloud/openapi-client");
|
|
|
9808
9827
|
var import_sts20150401 = __toESM(require("@alicloud/sts20150401"));
|
|
9809
9828
|
var import_ali_oss = __toESM(require("ali-oss"));
|
|
9810
9829
|
var import_node_crypto = require("crypto");
|
|
9811
|
-
var
|
|
9830
|
+
var import_node_fs5 = require("fs");
|
|
9812
9831
|
var import_node_path6 = __toESM(require("path"));
|
|
9813
9832
|
|
|
9814
9833
|
// src/certs.ts
|
|
@@ -10112,7 +10131,7 @@ var AliyunService = class {
|
|
|
10112
10131
|
const options = Object.keys(headers).length > 0 ? { headers } : void 0;
|
|
10113
10132
|
const existing = existingMap.get(objectKey);
|
|
10114
10133
|
if (existing && typeof existing.size === "number" && !cacheControl) {
|
|
10115
|
-
const stat = await
|
|
10134
|
+
const stat = await import_node_fs5.promises.stat(filePath);
|
|
10116
10135
|
if (stat.size === existing.size) {
|
|
10117
10136
|
const etag = this.normalizeEtag(existing.etag);
|
|
10118
10137
|
if (etag && !etag.includes("-")) {
|
|
@@ -10137,7 +10156,7 @@ var AliyunService = class {
|
|
|
10137
10156
|
if (!region) throw new Error("Missing oss.public.region in ~/.pmate/config.yaml.");
|
|
10138
10157
|
if (!accessKeyId) throw new Error("Missing aliyun.ak in ~/.pmate/config.yaml.");
|
|
10139
10158
|
if (!accessKeySecret) throw new Error("Missing aliyun.sk in ~/.pmate/config.yaml.");
|
|
10140
|
-
if (!(0,
|
|
10159
|
+
if (!(0, import_node_fs5.existsSync)(localFile)) {
|
|
10141
10160
|
throw new Error(`File not found: ${localFile}`);
|
|
10142
10161
|
}
|
|
10143
10162
|
const client = new import_ali_oss.default({ region, accessKeyId, accessKeySecret, bucket });
|
|
@@ -10484,7 +10503,7 @@ var AliyunService = class {
|
|
|
10484
10503
|
}
|
|
10485
10504
|
/** Recursively collect file paths under a directory. */
|
|
10486
10505
|
static async collectFiles(dir) {
|
|
10487
|
-
const entries = await
|
|
10506
|
+
const entries = await import_node_fs5.promises.readdir(dir, { withFileTypes: true });
|
|
10488
10507
|
const files = [];
|
|
10489
10508
|
for (const entry of entries) {
|
|
10490
10509
|
const fullPath = import_node_path6.default.join(dir, entry.name);
|
|
@@ -10536,7 +10555,7 @@ var AliyunService = class {
|
|
|
10536
10555
|
static getFileMd5(filePath) {
|
|
10537
10556
|
return new Promise((resolve, reject) => {
|
|
10538
10557
|
const hash = (0, import_node_crypto.createHash)("md5");
|
|
10539
|
-
const stream = (0,
|
|
10558
|
+
const stream = (0, import_node_fs5.createReadStream)(filePath);
|
|
10540
10559
|
stream.on("data", (chunk) => {
|
|
10541
10560
|
hash.update(chunk);
|
|
10542
10561
|
});
|
|
@@ -10982,7 +11001,7 @@ var DeleteCommandHandler = class {
|
|
|
10982
11001
|
};
|
|
10983
11002
|
|
|
10984
11003
|
// src/commands/DevCommandHandler.ts
|
|
10985
|
-
var
|
|
11004
|
+
var import_node_fs6 = require("fs");
|
|
10986
11005
|
var import_node_path9 = __toESM(require("path"));
|
|
10987
11006
|
var import_node_child_process3 = require("child_process");
|
|
10988
11007
|
|
|
@@ -11034,7 +11053,7 @@ var DevCommandHandler = class {
|
|
|
11034
11053
|
}
|
|
11035
11054
|
const appDir = resolveLocalAppDir(cwd, appName, appConfig.dir);
|
|
11036
11055
|
const packageJsonPath = import_node_path9.default.join(appDir, "package.json");
|
|
11037
|
-
if (!(0,
|
|
11056
|
+
if (!(0, import_node_fs6.existsSync)(packageJsonPath)) {
|
|
11038
11057
|
throw new Error(`No package.json found at ${packageJsonPath}`);
|
|
11039
11058
|
}
|
|
11040
11059
|
const pkg2 = this.loadPackageJson(packageJsonPath);
|
|
@@ -11054,7 +11073,7 @@ var DevCommandHandler = class {
|
|
|
11054
11073
|
return loadAppConfig(cwd);
|
|
11055
11074
|
}
|
|
11056
11075
|
loadPackageJson(packageJsonPath) {
|
|
11057
|
-
const raw = (0,
|
|
11076
|
+
const raw = (0, import_node_fs6.readFileSync)(packageJsonPath, "utf8");
|
|
11058
11077
|
const parsed = JSON.parse(raw);
|
|
11059
11078
|
if (!parsed || typeof parsed !== "object") {
|
|
11060
11079
|
throw new Error(`Invalid package.json at ${packageJsonPath}`);
|
|
@@ -11082,7 +11101,7 @@ var DevCommandHandler = class {
|
|
|
11082
11101
|
};
|
|
11083
11102
|
|
|
11084
11103
|
// src/commands/OssCommandHandler.ts
|
|
11085
|
-
var
|
|
11104
|
+
var import_node_fs7 = require("fs");
|
|
11086
11105
|
var import_node_path10 = __toESM(require("path"));
|
|
11087
11106
|
var PARROT_STATIC_PUBLIC_BASE_URL = "https://parrot-static.pmate.chat";
|
|
11088
11107
|
var OssCommandHandler = class _OssCommandHandler {
|
|
@@ -11112,10 +11131,10 @@ var OssCommandHandler = class _OssCommandHandler {
|
|
|
11112
11131
|
}
|
|
11113
11132
|
}
|
|
11114
11133
|
assertFile(filePath) {
|
|
11115
|
-
if (!(0,
|
|
11134
|
+
if (!(0, import_node_fs7.existsSync)(filePath)) {
|
|
11116
11135
|
throw new Error(`File not found: ${filePath}`);
|
|
11117
11136
|
}
|
|
11118
|
-
const stat = (0,
|
|
11137
|
+
const stat = (0, import_node_fs7.statSync)(filePath);
|
|
11119
11138
|
if (!stat.isFile()) {
|
|
11120
11139
|
throw new Error(`Not a file: ${filePath}`);
|
|
11121
11140
|
}
|
|
@@ -12336,7 +12355,7 @@ function truncate2(value, limit) {
|
|
|
12336
12355
|
|
|
12337
12356
|
// src/commands/LinearCommandHandler.ts
|
|
12338
12357
|
var import_node_child_process7 = require("child_process");
|
|
12339
|
-
var
|
|
12358
|
+
var import_node_fs8 = require("fs");
|
|
12340
12359
|
var import_node_os4 = __toESM(require("os"));
|
|
12341
12360
|
var import_node_path13 = __toESM(require("path"));
|
|
12342
12361
|
var import_promises3 = require("readline/promises");
|
|
@@ -13226,11 +13245,11 @@ var LinearCommandHandler = class {
|
|
|
13226
13245
|
}
|
|
13227
13246
|
readCachedLinearSelection(cwd) {
|
|
13228
13247
|
const selectionPath = this.getLinearSelectionPath();
|
|
13229
|
-
if (!(0,
|
|
13248
|
+
if (!(0, import_node_fs8.existsSync)(selectionPath)) {
|
|
13230
13249
|
return void 0;
|
|
13231
13250
|
}
|
|
13232
13251
|
try {
|
|
13233
|
-
const raw = (0,
|
|
13252
|
+
const raw = (0, import_node_fs8.readFileSync)(selectionPath, "utf8").trim();
|
|
13234
13253
|
if (!raw) return void 0;
|
|
13235
13254
|
const parsed = JSON.parse(raw);
|
|
13236
13255
|
const value = parsed[cwd];
|
|
@@ -13242,11 +13261,11 @@ var LinearCommandHandler = class {
|
|
|
13242
13261
|
writeCachedLinearSelection(cwd, title) {
|
|
13243
13262
|
const selectionPath = this.getLinearSelectionPath();
|
|
13244
13263
|
const dir = import_node_path13.default.dirname(selectionPath);
|
|
13245
|
-
(0,
|
|
13264
|
+
(0, import_node_fs8.mkdirSync)(dir, { recursive: true });
|
|
13246
13265
|
let data = {};
|
|
13247
|
-
if ((0,
|
|
13266
|
+
if ((0, import_node_fs8.existsSync)(selectionPath)) {
|
|
13248
13267
|
try {
|
|
13249
|
-
const raw = (0,
|
|
13268
|
+
const raw = (0, import_node_fs8.readFileSync)(selectionPath, "utf8").trim();
|
|
13250
13269
|
if (raw) {
|
|
13251
13270
|
data = JSON.parse(raw);
|
|
13252
13271
|
}
|
|
@@ -13255,7 +13274,7 @@ var LinearCommandHandler = class {
|
|
|
13255
13274
|
}
|
|
13256
13275
|
}
|
|
13257
13276
|
data[cwd] = title;
|
|
13258
|
-
(0,
|
|
13277
|
+
(0, import_node_fs8.writeFileSync)(selectionPath, `${JSON.stringify(data, null, 2)}
|
|
13259
13278
|
`, "utf8");
|
|
13260
13279
|
}
|
|
13261
13280
|
async lookupIssue(client, issueRef) {
|
|
@@ -13432,14 +13451,14 @@ var LinearCommandHandler = class {
|
|
|
13432
13451
|
if (process.platform !== "darwin") {
|
|
13433
13452
|
throw new Error("Screenshot capture only supports macOS.");
|
|
13434
13453
|
}
|
|
13435
|
-
const dir = await
|
|
13454
|
+
const dir = await import_node_fs8.promises.mkdtemp(import_node_path13.default.join(import_node_os4.default.tmpdir(), "pmate-screenshot-"));
|
|
13436
13455
|
const filePath = import_node_path13.default.join(dir, `screenshot-${index}.png`);
|
|
13437
13456
|
try {
|
|
13438
13457
|
const code = await this.run("screencapture", ["-i", "-x", filePath], true);
|
|
13439
13458
|
if (code !== 0) {
|
|
13440
13459
|
throw new Error("Screenshot capture canceled or failed.");
|
|
13441
13460
|
}
|
|
13442
|
-
const buffer = await
|
|
13461
|
+
const buffer = await import_node_fs8.promises.readFile(filePath);
|
|
13443
13462
|
if (buffer.length === 0) {
|
|
13444
13463
|
throw new Error("Screenshot capture produced an empty file.");
|
|
13445
13464
|
}
|
|
@@ -13451,7 +13470,7 @@ var LinearCommandHandler = class {
|
|
|
13451
13470
|
return { buffer, mime, filename: `screenshot-${index}.${extension}` };
|
|
13452
13471
|
} finally {
|
|
13453
13472
|
try {
|
|
13454
|
-
await
|
|
13473
|
+
await import_node_fs8.promises.rm(dir, { recursive: true, force: true });
|
|
13455
13474
|
} catch {
|
|
13456
13475
|
}
|
|
13457
13476
|
}
|
|
@@ -13595,17 +13614,17 @@ var LinearCommandHandler = class {
|
|
|
13595
13614
|
return compact.length > limit ? `${compact.slice(0, limit)}...` : compact;
|
|
13596
13615
|
}
|
|
13597
13616
|
async convertToPng(buffer, ext) {
|
|
13598
|
-
const dir = await
|
|
13617
|
+
const dir = await import_node_fs8.promises.mkdtemp(import_node_path13.default.join(import_node_os4.default.tmpdir(), "pmate-"));
|
|
13599
13618
|
const inputPath = import_node_path13.default.join(dir, `clipboard.${ext}`);
|
|
13600
13619
|
const outputPath = import_node_path13.default.join(dir, "clipboard.png");
|
|
13601
13620
|
try {
|
|
13602
|
-
await
|
|
13621
|
+
await import_node_fs8.promises.writeFile(inputPath, buffer);
|
|
13603
13622
|
const stderr = await this.runCapture(
|
|
13604
13623
|
"sips",
|
|
13605
13624
|
["-s", "format", "png", inputPath, "--out", outputPath],
|
|
13606
13625
|
true
|
|
13607
13626
|
);
|
|
13608
|
-
const out = await
|
|
13627
|
+
const out = await import_node_fs8.promises.readFile(outputPath);
|
|
13609
13628
|
if (this.detectImageMime(out) !== "image/png") {
|
|
13610
13629
|
throw new Error(
|
|
13611
13630
|
stderr?.trim() ? `Failed to convert clipboard ${ext} to PNG: ${stderr.trim()}` : `Failed to convert clipboard ${ext} to PNG.`
|
|
@@ -13614,7 +13633,7 @@ var LinearCommandHandler = class {
|
|
|
13614
13633
|
return out;
|
|
13615
13634
|
} finally {
|
|
13616
13635
|
try {
|
|
13617
|
-
await
|
|
13636
|
+
await import_node_fs8.promises.rm(dir, { recursive: true, force: true });
|
|
13618
13637
|
} catch {
|
|
13619
13638
|
}
|
|
13620
13639
|
}
|
|
@@ -13960,7 +13979,7 @@ function sleep2(ms) {
|
|
|
13960
13979
|
}
|
|
13961
13980
|
|
|
13962
13981
|
// src/commands/NotionCommandHandler.ts
|
|
13963
|
-
var
|
|
13982
|
+
var import_node_fs9 = require("fs");
|
|
13964
13983
|
var import_node_path14 = __toESM(require("path"));
|
|
13965
13984
|
|
|
13966
13985
|
// src/services/NotionService.ts
|
|
@@ -14301,13 +14320,13 @@ var NotionCommandHandler = class {
|
|
|
14301
14320
|
return "";
|
|
14302
14321
|
}
|
|
14303
14322
|
const resolved = import_node_path14.default.resolve(process.cwd(), args.filePath);
|
|
14304
|
-
return (0,
|
|
14323
|
+
return (0, import_node_fs9.readFileSync)(resolved, "utf8");
|
|
14305
14324
|
}
|
|
14306
14325
|
};
|
|
14307
14326
|
|
|
14308
14327
|
// src/commands/QrcodeCommandHandler.ts
|
|
14309
14328
|
var import_node_child_process8 = require("child_process");
|
|
14310
|
-
var
|
|
14329
|
+
var import_node_fs10 = require("fs");
|
|
14311
14330
|
var import_node_os5 = __toESM(require("os"));
|
|
14312
14331
|
var import_node_path15 = __toESM(require("path"));
|
|
14313
14332
|
var import_promises4 = require("readline/promises");
|
|
@@ -14335,7 +14354,7 @@ var QrcodeCommandHandler = class {
|
|
|
14335
14354
|
ui.success("QR code value:", value);
|
|
14336
14355
|
} finally {
|
|
14337
14356
|
try {
|
|
14338
|
-
await
|
|
14357
|
+
await import_node_fs10.promises.rm(dir, { recursive: true, force: true });
|
|
14339
14358
|
} catch {
|
|
14340
14359
|
}
|
|
14341
14360
|
}
|
|
@@ -14351,13 +14370,13 @@ var QrcodeCommandHandler = class {
|
|
|
14351
14370
|
} finally {
|
|
14352
14371
|
rl.close();
|
|
14353
14372
|
}
|
|
14354
|
-
const dir = await
|
|
14373
|
+
const dir = await import_node_fs10.promises.mkdtemp(import_node_path15.default.join(import_node_os5.default.tmpdir(), "pmate-qrcode-"));
|
|
14355
14374
|
const filePath = import_node_path15.default.join(dir, "qrcode.png");
|
|
14356
14375
|
const code = await this.run("screencapture", ["-i", "-x", filePath], true);
|
|
14357
14376
|
if (code !== 0) {
|
|
14358
14377
|
throw new Error("Screenshot capture canceled or failed.");
|
|
14359
14378
|
}
|
|
14360
|
-
const buffer = await
|
|
14379
|
+
const buffer = await import_node_fs10.promises.readFile(filePath);
|
|
14361
14380
|
if (buffer.length === 0) {
|
|
14362
14381
|
throw new Error("Screenshot capture produced an empty file.");
|
|
14363
14382
|
}
|
|
@@ -14373,7 +14392,7 @@ var QrcodeCommandHandler = class {
|
|
|
14373
14392
|
async decodeQr(filePath) {
|
|
14374
14393
|
let buffer;
|
|
14375
14394
|
try {
|
|
14376
|
-
buffer = await
|
|
14395
|
+
buffer = await import_node_fs10.promises.readFile(filePath);
|
|
14377
14396
|
} catch {
|
|
14378
14397
|
return null;
|
|
14379
14398
|
}
|
|
@@ -14631,7 +14650,7 @@ function clampNumber(value, min, max, fallback) {
|
|
|
14631
14650
|
}
|
|
14632
14651
|
|
|
14633
14652
|
// src/commands/QuizCommandHandler.ts
|
|
14634
|
-
var
|
|
14653
|
+
var import_node_fs11 = require("fs");
|
|
14635
14654
|
var import_node_path16 = __toESM(require("path"));
|
|
14636
14655
|
init_sessionStore();
|
|
14637
14656
|
|
|
@@ -15178,7 +15197,7 @@ var QuizCommandHandler = class {
|
|
|
15178
15197
|
}
|
|
15179
15198
|
if (args.action === "update-meta") {
|
|
15180
15199
|
const resolvedFilePath = import_node_path16.default.resolve(process.cwd(), args.filePath);
|
|
15181
|
-
const metadata = JSON.parse((0,
|
|
15200
|
+
const metadata = JSON.parse((0, import_node_fs11.readFileSync)(resolvedFilePath, "utf8"));
|
|
15182
15201
|
const result = await updateQuizPaperMetadata({
|
|
15183
15202
|
apiBaseUrl,
|
|
15184
15203
|
linkBaseUrl,
|
|
@@ -15191,7 +15210,7 @@ var QuizCommandHandler = class {
|
|
|
15191
15210
|
}
|
|
15192
15211
|
if (args.action === "append-step") {
|
|
15193
15212
|
const resolvedFilePath = import_node_path16.default.resolve(process.cwd(), args.filePath);
|
|
15194
|
-
const step = JSON.parse((0,
|
|
15213
|
+
const step = JSON.parse((0, import_node_fs11.readFileSync)(resolvedFilePath, "utf8"));
|
|
15195
15214
|
const result = await appendQuizPaperStep({
|
|
15196
15215
|
apiBaseUrl,
|
|
15197
15216
|
linkBaseUrl,
|
|
@@ -15205,7 +15224,7 @@ var QuizCommandHandler = class {
|
|
|
15205
15224
|
}
|
|
15206
15225
|
if (args.action === "update-step") {
|
|
15207
15226
|
const resolvedFilePath = import_node_path16.default.resolve(process.cwd(), args.filePath);
|
|
15208
|
-
const step = JSON.parse((0,
|
|
15227
|
+
const step = JSON.parse((0, import_node_fs11.readFileSync)(resolvedFilePath, "utf8"));
|
|
15209
15228
|
step.stepId = args.stepId;
|
|
15210
15229
|
const result = await updateQuizPaperStep({
|
|
15211
15230
|
apiBaseUrl,
|
|
@@ -15269,7 +15288,7 @@ var QuizCommandHandler = class {
|
|
|
15269
15288
|
throw new Error(`\u672A\u627E\u5230 stepId=${args.stepId}\uFF0C\u65E0\u6CD5\u66F4\u65B0\u8BE5\u9898\u76EE\u3002`);
|
|
15270
15289
|
}
|
|
15271
15290
|
const resolvedFilePath = import_node_path16.default.resolve(process.cwd(), args.filePath);
|
|
15272
|
-
const nextStep = JSON.parse((0,
|
|
15291
|
+
const nextStep = JSON.parse((0, import_node_fs11.readFileSync)(resolvedFilePath, "utf8"));
|
|
15273
15292
|
nextStep.stepId = args.stepId;
|
|
15274
15293
|
const nextSteps = [...basePaper.steps];
|
|
15275
15294
|
nextSteps[targetIndex] = nextStep;
|
|
@@ -15319,7 +15338,7 @@ var QuizCommandHandler = class {
|
|
|
15319
15338
|
};
|
|
15320
15339
|
|
|
15321
15340
|
// src/commands/CollectCommandHandler.ts
|
|
15322
|
-
var
|
|
15341
|
+
var import_node_fs13 = require("fs");
|
|
15323
15342
|
var import_node_os7 = __toESM(require("os"));
|
|
15324
15343
|
var import_node_path18 = __toESM(require("path"));
|
|
15325
15344
|
var import_playwright = require("playwright");
|
|
@@ -15405,7 +15424,7 @@ var Im1BotClient = class {
|
|
|
15405
15424
|
|
|
15406
15425
|
// src/collectStore.ts
|
|
15407
15426
|
var import_node_crypto3 = require("crypto");
|
|
15408
|
-
var
|
|
15427
|
+
var import_node_fs12 = require("fs");
|
|
15409
15428
|
var import_node_os6 = __toESM(require("os"));
|
|
15410
15429
|
var import_node_path17 = __toESM(require("path"));
|
|
15411
15430
|
function resolveCollectTarget(input) {
|
|
@@ -15423,7 +15442,7 @@ function toThreadKey(name) {
|
|
|
15423
15442
|
async function readStoredThread(rootDir, threadKey) {
|
|
15424
15443
|
const filePath = getThreadMetaFilePath(rootDir, threadKey);
|
|
15425
15444
|
try {
|
|
15426
|
-
const raw = await
|
|
15445
|
+
const raw = await import_node_fs12.promises.readFile(filePath, "utf8");
|
|
15427
15446
|
const parsed = JSON.parse(raw);
|
|
15428
15447
|
if ("messages" in parsed && Array.isArray(parsed.messages)) {
|
|
15429
15448
|
return parsed;
|
|
@@ -15441,15 +15460,15 @@ async function writeStoredThread(rootDir, thread) {
|
|
|
15441
15460
|
const metaPath = getThreadMetaFilePath(rootDir, thread.threadKey);
|
|
15442
15461
|
const messagePath = getThreadMessagesFilePath(rootDir, thread.threadKey);
|
|
15443
15462
|
const { messages: messages2, ...meta } = thread;
|
|
15444
|
-
await
|
|
15445
|
-
await
|
|
15463
|
+
await import_node_fs12.promises.mkdir(import_node_path17.default.dirname(metaPath), { recursive: true });
|
|
15464
|
+
await import_node_fs12.promises.writeFile(metaPath, JSON.stringify(meta, null, 2) + "\n", "utf8");
|
|
15446
15465
|
const body = messages2.map((message) => JSON.stringify(message)).join("\n");
|
|
15447
|
-
await
|
|
15466
|
+
await import_node_fs12.promises.writeFile(messagePath, `${body}${body ? "\n" : ""}`, "utf8");
|
|
15448
15467
|
}
|
|
15449
15468
|
async function writeStoredIndex(rootDir, index) {
|
|
15450
|
-
await
|
|
15469
|
+
await import_node_fs12.promises.mkdir(rootDir, { recursive: true });
|
|
15451
15470
|
const filePath = import_node_path17.default.join(rootDir, "index.json");
|
|
15452
|
-
await
|
|
15471
|
+
await import_node_fs12.promises.writeFile(filePath, JSON.stringify(index, null, 2) + "\n", "utf8");
|
|
15453
15472
|
}
|
|
15454
15473
|
function diffMessages(existing, incoming) {
|
|
15455
15474
|
const seenMessageIds = new Set(
|
|
@@ -15523,7 +15542,7 @@ function joinNormalized(values) {
|
|
|
15523
15542
|
async function readStoredMessages(rootDir, threadKey) {
|
|
15524
15543
|
const filePath = getThreadMessagesFilePath(rootDir, threadKey);
|
|
15525
15544
|
try {
|
|
15526
|
-
const raw = await
|
|
15545
|
+
const raw = await import_node_fs12.promises.readFile(filePath, "utf8");
|
|
15527
15546
|
return raw.split("\n").map((line) => line.trim()).filter(Boolean).map((line) => normalizeStoredMessage(JSON.parse(line)));
|
|
15528
15547
|
} catch {
|
|
15529
15548
|
return [];
|
|
@@ -15532,7 +15551,7 @@ async function readStoredMessages(rootDir, threadKey) {
|
|
|
15532
15551
|
async function readLegacyStoredThread(rootDir, threadKey) {
|
|
15533
15552
|
const filePath = getLegacyThreadFilePath(rootDir, threadKey);
|
|
15534
15553
|
try {
|
|
15535
|
-
const raw = await
|
|
15554
|
+
const raw = await import_node_fs12.promises.readFile(filePath, "utf8");
|
|
15536
15555
|
return JSON.parse(raw);
|
|
15537
15556
|
} catch {
|
|
15538
15557
|
return null;
|
|
@@ -15562,7 +15581,7 @@ function normalizeStoredMessage(message) {
|
|
|
15562
15581
|
// src/commands/CollectCommandHandler.ts
|
|
15563
15582
|
async function readOutgoingAttachment(filePath) {
|
|
15564
15583
|
const resolved = import_node_path18.default.resolve(filePath);
|
|
15565
|
-
const data = await
|
|
15584
|
+
const data = await import_node_fs13.promises.readFile(resolved);
|
|
15566
15585
|
const extension = import_node_path18.default.extname(resolved).toLowerCase();
|
|
15567
15586
|
const contentTypes = {
|
|
15568
15587
|
".png": "image/png",
|
|
@@ -15857,8 +15876,8 @@ var CollectCommandHandler = class {
|
|
|
15857
15876
|
addedMessages: result.diff.added,
|
|
15858
15877
|
upgradedMessages: result.diff.upgraded
|
|
15859
15878
|
})).filter((thread) => thread.addedCount > 0 || thread.upgradedCount > 0);
|
|
15860
|
-
await
|
|
15861
|
-
await
|
|
15879
|
+
await import_node_fs13.promises.mkdir(import_node_path18.default.dirname(reportPath), { recursive: true });
|
|
15880
|
+
await import_node_fs13.promises.writeFile(
|
|
15862
15881
|
reportPath,
|
|
15863
15882
|
JSON.stringify(
|
|
15864
15883
|
{
|
|
@@ -16047,8 +16066,8 @@ async function archiveMessageImage(rootDir, attachmentRoot, threadKey, imagePath
|
|
|
16047
16066
|
const destinationRelativePath = import_node_path18.default.posix.join("attachments", threadKey, normalized);
|
|
16048
16067
|
const destinationPath = import_node_path18.default.join(rootDir, ...destinationRelativePath.split("/"));
|
|
16049
16068
|
try {
|
|
16050
|
-
await
|
|
16051
|
-
await
|
|
16069
|
+
await import_node_fs13.promises.mkdir(import_node_path18.default.dirname(destinationPath), { recursive: true });
|
|
16070
|
+
await import_node_fs13.promises.copyFile(sourcePath, destinationPath);
|
|
16052
16071
|
return destinationPath;
|
|
16053
16072
|
} catch {
|
|
16054
16073
|
return imagePath;
|
|
@@ -16682,7 +16701,7 @@ function pad2(value) {
|
|
|
16682
16701
|
}
|
|
16683
16702
|
|
|
16684
16703
|
// src/commands/ChatRoomCommandHandler.ts
|
|
16685
|
-
var
|
|
16704
|
+
var import_node_fs14 = require("fs");
|
|
16686
16705
|
var ChatRoomCommandHandler = class {
|
|
16687
16706
|
async handle(args) {
|
|
16688
16707
|
const sdk = await loadChatSdk();
|
|
@@ -16732,8 +16751,8 @@ var ChatRoomCommandHandler = class {
|
|
|
16732
16751
|
const a = await this.connect(sdk, args.botA, args.app, args.hubUrl, args.authBaseUrl);
|
|
16733
16752
|
const b = await this.connect(sdk, args.botB, args.app, args.hubUrl, args.authBaseUrl);
|
|
16734
16753
|
try {
|
|
16735
|
-
const botA = sdk.parsePmateBotKeyJson((0,
|
|
16736
|
-
const botB = sdk.parsePmateBotKeyJson((0,
|
|
16754
|
+
const botA = sdk.parsePmateBotKeyJson((0, import_node_fs14.readFileSync)(args.botA, "utf8"));
|
|
16755
|
+
const botB = sdk.parsePmateBotKeyJson((0, import_node_fs14.readFileSync)(args.botB, "utf8"));
|
|
16737
16756
|
await a.requestFriend({ to: botB.name, message: "smoke friend request" });
|
|
16738
16757
|
await b.acceptFriend({ to: botA.name, message: "smoke friend accept" });
|
|
16739
16758
|
await a.sendDm({ to: botB.name, text: "smoke dm from a" });
|
|
@@ -16752,7 +16771,7 @@ var ChatRoomCommandHandler = class {
|
|
|
16752
16771
|
if (!botPath) {
|
|
16753
16772
|
throw new Error("Missing required option: --bot");
|
|
16754
16773
|
}
|
|
16755
|
-
const botKey = sdk.parsePmateBotKeyJson((0,
|
|
16774
|
+
const botKey = sdk.parsePmateBotKeyJson((0, import_node_fs14.readFileSync)(botPath, "utf8"));
|
|
16756
16775
|
const client = sdk.createChatClient({ appId, botKey, hubUrl, authBaseUrl });
|
|
16757
16776
|
await client.connect();
|
|
16758
16777
|
return client;
|
|
@@ -16764,7 +16783,7 @@ async function loadChatSdk() {
|
|
|
16764
16783
|
}
|
|
16765
16784
|
|
|
16766
16785
|
// src/commands/RegistryResourceCommandHandler.ts
|
|
16767
|
-
var
|
|
16786
|
+
var import_node_fs15 = require("fs");
|
|
16768
16787
|
var import_node_path19 = __toESM(require("path"));
|
|
16769
16788
|
init_sessionStore();
|
|
16770
16789
|
var RegistryResourceCommandHandler = class {
|
|
@@ -16801,8 +16820,8 @@ var RegistryResourceCommandHandler = class {
|
|
|
16801
16820
|
};
|
|
16802
16821
|
function readJson(filePath) {
|
|
16803
16822
|
const absolutePath = import_node_path19.default.resolve(process.cwd(), filePath);
|
|
16804
|
-
if (!(0,
|
|
16805
|
-
return JSON.parse((0,
|
|
16823
|
+
if (!(0, import_node_fs15.existsSync)(absolutePath)) throw new Error(`JSON file not found: ${absolutePath}`);
|
|
16824
|
+
return JSON.parse((0, import_node_fs15.readFileSync)(absolutePath, "utf8"));
|
|
16806
16825
|
}
|
|
16807
16826
|
async function request(baseUrl, token, method, pathname, body) {
|
|
16808
16827
|
const response = await fetch(`${baseUrl}${pathname}`, {
|
|
@@ -16816,7 +16835,7 @@ async function request(baseUrl, token, method, pathname, body) {
|
|
|
16816
16835
|
}
|
|
16817
16836
|
|
|
16818
16837
|
// src/commands/CallCommandHandler.ts
|
|
16819
|
-
var
|
|
16838
|
+
var import_node_fs16 = require("fs");
|
|
16820
16839
|
var import_node_path20 = __toESM(require("path"));
|
|
16821
16840
|
init_dist2();
|
|
16822
16841
|
init_sessionStore();
|
|
@@ -16841,7 +16860,7 @@ var CallCommandHandler = class {
|
|
|
16841
16860
|
};
|
|
16842
16861
|
async function callWithBinaryFile(hub, functionId, filePath, contentType, timeoutMs) {
|
|
16843
16862
|
const absolutePath = import_node_path20.default.resolve(process.cwd(), filePath);
|
|
16844
|
-
if (!(0,
|
|
16863
|
+
if (!(0, import_node_fs16.existsSync)(absolutePath)) throw new Error(`Binary file not found: ${absolutePath}`);
|
|
16845
16864
|
const mimeType = contentType || inferContentType(absolutePath);
|
|
16846
16865
|
const result = hub.stream({
|
|
16847
16866
|
functionId,
|
|
@@ -16851,7 +16870,7 @@ async function callWithBinaryFile(hub, functionId, filePath, contentType, timeou
|
|
|
16851
16870
|
return result.finish();
|
|
16852
16871
|
}
|
|
16853
16872
|
async function* streamFile(filePath, contentType) {
|
|
16854
|
-
for await (const chunk of (0,
|
|
16873
|
+
for await (const chunk of (0, import_node_fs16.createReadStream)(filePath)) {
|
|
16855
16874
|
yield new Blob([chunk], { type: contentType });
|
|
16856
16875
|
}
|
|
16857
16876
|
}
|
|
@@ -16870,8 +16889,8 @@ function inferContentType(filePath) {
|
|
|
16870
16889
|
}
|
|
16871
16890
|
function readJson2(filePath) {
|
|
16872
16891
|
const absolutePath = import_node_path20.default.resolve(process.cwd(), filePath);
|
|
16873
|
-
if (!(0,
|
|
16874
|
-
const decoded = JSON.parse((0,
|
|
16892
|
+
if (!(0, import_node_fs16.existsSync)(absolutePath)) throw new Error(`JSON file not found: ${absolutePath}`);
|
|
16893
|
+
const decoded = JSON.parse((0, import_node_fs16.readFileSync)(absolutePath, "utf8"));
|
|
16875
16894
|
if (!decoded || typeof decoded !== "object" || Array.isArray(decoded)) {
|
|
16876
16895
|
throw new Error("Call input file must contain a JSON object");
|
|
16877
16896
|
}
|
|
@@ -17258,7 +17277,7 @@ var NsCommandHandler = class {
|
|
|
17258
17277
|
};
|
|
17259
17278
|
|
|
17260
17279
|
// src/commands/StoreCommandHandler.ts
|
|
17261
|
-
var
|
|
17280
|
+
var import_node_fs17 = require("fs");
|
|
17262
17281
|
var import_node_path21 = __toESM(require("path"));
|
|
17263
17282
|
init_sessionStore();
|
|
17264
17283
|
var StoreCommandHandler = class {
|
|
@@ -17414,10 +17433,10 @@ var StoreCommandHandler = class {
|
|
|
17414
17433
|
}
|
|
17415
17434
|
readJsonFile(filePath) {
|
|
17416
17435
|
const absolutePath = import_node_path21.default.resolve(process.cwd(), filePath);
|
|
17417
|
-
if (!(0,
|
|
17436
|
+
if (!(0, import_node_fs17.existsSync)(absolutePath)) {
|
|
17418
17437
|
throw new Error(`JSON file not found: ${absolutePath}`);
|
|
17419
17438
|
}
|
|
17420
|
-
const raw = (0,
|
|
17439
|
+
const raw = (0, import_node_fs17.readFileSync)(absolutePath, "utf8");
|
|
17421
17440
|
try {
|
|
17422
17441
|
return JSON.parse(raw);
|
|
17423
17442
|
} catch (error) {
|
|
@@ -17469,12 +17488,12 @@ var StoreCommandHandler = class {
|
|
|
17469
17488
|
};
|
|
17470
17489
|
|
|
17471
17490
|
// src/commands/AppCommandHandler.ts
|
|
17472
|
-
var
|
|
17491
|
+
var import_node_fs19 = require("fs");
|
|
17473
17492
|
var import_node_path23 = __toESM(require("path"));
|
|
17474
17493
|
init_sessionStore();
|
|
17475
17494
|
|
|
17476
17495
|
// src/appIcon.ts
|
|
17477
|
-
var
|
|
17496
|
+
var import_node_fs18 = require("fs");
|
|
17478
17497
|
var import_node_os8 = __toESM(require("os"));
|
|
17479
17498
|
var import_node_path22 = __toESM(require("path"));
|
|
17480
17499
|
var import_sharp = __toESM(require("sharp"));
|
|
@@ -17582,7 +17601,7 @@ function createAppIconExportPlans(input) {
|
|
|
17582
17601
|
throw new Error("App icon preset export requires --out-dir.");
|
|
17583
17602
|
}
|
|
17584
17603
|
const outDir = import_node_path22.default.resolve(input.cwd, input.outDir);
|
|
17585
|
-
(0,
|
|
17604
|
+
(0, import_node_fs18.mkdirSync)(outDir, { recursive: true });
|
|
17586
17605
|
return specs.map((spec) => ({
|
|
17587
17606
|
width: spec.width,
|
|
17588
17607
|
height: spec.height,
|
|
@@ -17601,7 +17620,7 @@ function createAppIconExportPlans(input) {
|
|
|
17601
17620
|
throw new Error("Single-size app icon export requires --output.");
|
|
17602
17621
|
}
|
|
17603
17622
|
const resolvedOutput = import_node_path22.default.resolve(input.cwd, input.output);
|
|
17604
|
-
(0,
|
|
17623
|
+
(0, import_node_fs18.mkdirSync)(import_node_path22.default.dirname(resolvedOutput), { recursive: true });
|
|
17605
17624
|
return [
|
|
17606
17625
|
{
|
|
17607
17626
|
width: input.width,
|
|
@@ -17615,7 +17634,7 @@ async function exportAppIcon(icon, plans) {
|
|
|
17615
17634
|
const svg = await resolveAppIconSvg(icon);
|
|
17616
17635
|
for (const plan of plans) {
|
|
17617
17636
|
const bytes = await renderAppIcon(svg, plan.width, plan.height, plan.format);
|
|
17618
|
-
(0,
|
|
17637
|
+
(0, import_node_fs18.writeFileSync)(plan.outputPath, bytes);
|
|
17619
17638
|
}
|
|
17620
17639
|
}
|
|
17621
17640
|
async function renderAppIconVariant(input) {
|
|
@@ -17624,8 +17643,8 @@ async function renderAppIconVariant(input) {
|
|
|
17624
17643
|
let outputPath;
|
|
17625
17644
|
if (input.output) {
|
|
17626
17645
|
outputPath = import_node_path22.default.resolve(input.cwd, input.output);
|
|
17627
|
-
(0,
|
|
17628
|
-
(0,
|
|
17646
|
+
(0, import_node_fs18.mkdirSync)(import_node_path22.default.dirname(outputPath), { recursive: true });
|
|
17647
|
+
(0, import_node_fs18.writeFileSync)(outputPath, bytes);
|
|
17629
17648
|
}
|
|
17630
17649
|
if (input.name) {
|
|
17631
17650
|
return {
|
|
@@ -17655,7 +17674,7 @@ async function loadAppIconVariantFile(input) {
|
|
|
17655
17674
|
name: input.name,
|
|
17656
17675
|
format,
|
|
17657
17676
|
sourcePath: absolutePath
|
|
17658
|
-
}) : createImageDataUrl((0,
|
|
17677
|
+
}) : createImageDataUrl((0, import_node_fs18.readFileSync)(absolutePath), format),
|
|
17659
17678
|
format,
|
|
17660
17679
|
absolutePath
|
|
17661
17680
|
};
|
|
@@ -17785,7 +17804,7 @@ async function uploadAppIconVariantAsset(input) {
|
|
|
17785
17804
|
await AliyunService.uploadFile(sourcePath, DEFAULT_APP_ICON_VARIANT_BUCKET, objectKey);
|
|
17786
17805
|
} finally {
|
|
17787
17806
|
if (shouldCleanup) {
|
|
17788
|
-
(0,
|
|
17807
|
+
(0, import_node_fs18.rmSync)(import_node_path22.default.dirname(sourcePath), { recursive: true, force: true });
|
|
17789
17808
|
}
|
|
17790
17809
|
}
|
|
17791
17810
|
return `${DEFAULT_APP_ICON_VARIANT_PUBLIC_BASE_URL}/${objectKey}`;
|
|
@@ -17830,9 +17849,9 @@ function writeTempAppIconVariantFile(objectKey, format, bytes) {
|
|
|
17830
17849
|
if (!bytes) {
|
|
17831
17850
|
throw new Error("App icon variant upload requires bytes or a source file.");
|
|
17832
17851
|
}
|
|
17833
|
-
const tempDir = (0,
|
|
17852
|
+
const tempDir = (0, import_node_fs18.mkdtempSync)(import_node_path22.default.join(import_node_os8.default.tmpdir(), "pmate-app-icon-"));
|
|
17834
17853
|
const tempPath = import_node_path22.default.join(tempDir, import_node_path22.default.basename(objectKey) || `variant.${extensionForIconFormat(format)}`);
|
|
17835
|
-
(0,
|
|
17854
|
+
(0, import_node_fs18.writeFileSync)(tempPath, bytes);
|
|
17836
17855
|
return tempPath;
|
|
17837
17856
|
}
|
|
17838
17857
|
|
|
@@ -18041,10 +18060,10 @@ var AppCommandHandler = class {
|
|
|
18041
18060
|
}
|
|
18042
18061
|
readJsonFile(filePath) {
|
|
18043
18062
|
const absolutePath = this.resolveFilePath(filePath);
|
|
18044
|
-
if (!(0,
|
|
18063
|
+
if (!(0, import_node_fs19.existsSync)(absolutePath)) {
|
|
18045
18064
|
throw new Error(`JSON file not found: ${absolutePath}`);
|
|
18046
18065
|
}
|
|
18047
|
-
const raw = (0,
|
|
18066
|
+
const raw = (0, import_node_fs19.readFileSync)(absolutePath, "utf8");
|
|
18048
18067
|
try {
|
|
18049
18068
|
return JSON.parse(raw);
|
|
18050
18069
|
} catch (error) {
|
|
@@ -18177,7 +18196,7 @@ function readNamespaceFromPayload(payload) {
|
|
|
18177
18196
|
}
|
|
18178
18197
|
|
|
18179
18198
|
// src/commands/ServiceCommandHandler.ts
|
|
18180
|
-
var
|
|
18199
|
+
var import_node_fs22 = require("fs");
|
|
18181
18200
|
var import_promises5 = require("fs/promises");
|
|
18182
18201
|
var import_node_path26 = __toESM(require("path"));
|
|
18183
18202
|
var import_node_child_process11 = require("child_process");
|
|
@@ -18186,7 +18205,7 @@ var import_promises6 = require("readline/promises");
|
|
|
18186
18205
|
// src/services/AndroidApkReleaseService.ts
|
|
18187
18206
|
var import_node_child_process9 = require("child_process");
|
|
18188
18207
|
var import_node_crypto4 = require("crypto");
|
|
18189
|
-
var
|
|
18208
|
+
var import_node_fs20 = require("fs");
|
|
18190
18209
|
var import_node_os9 = __toESM(require("os"));
|
|
18191
18210
|
var import_node_path24 = __toESM(require("path"));
|
|
18192
18211
|
var ANDROID_APK_BUCKET = "parrot-static";
|
|
@@ -18222,7 +18241,7 @@ var AndroidApkReleaseService = class {
|
|
|
18222
18241
|
}
|
|
18223
18242
|
await AliyunService.uploadFile(apkPath, ANDROID_APK_BUCKET, objectKey);
|
|
18224
18243
|
const sha256 = await sha256File(apkPath);
|
|
18225
|
-
const size = (0,
|
|
18244
|
+
const size = (0, import_node_fs20.statSync)(apkPath).size;
|
|
18226
18245
|
const artifact = {
|
|
18227
18246
|
serviceId: service.id,
|
|
18228
18247
|
env: options.env,
|
|
@@ -18256,15 +18275,15 @@ var AndroidApkReleaseService = class {
|
|
|
18256
18275
|
minimumVersionCode: options.minimumVersionCode
|
|
18257
18276
|
});
|
|
18258
18277
|
const objectKey = buildAndroidLatestManifestObjectKey(service.namespace, service.name);
|
|
18259
|
-
const tempDir = (0,
|
|
18278
|
+
const tempDir = (0, import_node_fs20.mkdtempSync)(import_node_path24.default.join(import_node_os9.default.tmpdir(), "pmate-apk-latest-"));
|
|
18260
18279
|
const manifestPath = import_node_path24.default.join(tempDir, "latest.json");
|
|
18261
18280
|
try {
|
|
18262
|
-
(0,
|
|
18281
|
+
(0, import_node_fs20.writeFileSync)(manifestPath, `${JSON.stringify(manifest, null, 2)}
|
|
18263
18282
|
`);
|
|
18264
18283
|
await AliyunService.uploadFile(manifestPath, ANDROID_APK_BUCKET, objectKey);
|
|
18265
18284
|
ui.success(`Published Android update manifest ${ANDROID_APK_PUBLIC_BASE_URL}/${objectKey}`);
|
|
18266
18285
|
} finally {
|
|
18267
|
-
(0,
|
|
18286
|
+
(0, import_node_fs20.rmSync)(tempDir, { recursive: true, force: true });
|
|
18268
18287
|
}
|
|
18269
18288
|
}
|
|
18270
18289
|
async list(service, options) {
|
|
@@ -18316,7 +18335,7 @@ var AndroidApkReleaseService = class {
|
|
|
18316
18335
|
throw new Error(`Missing dir for android service ${service.id}`);
|
|
18317
18336
|
}
|
|
18318
18337
|
const appDir = import_node_path24.default.resolve(repoRoot, dir);
|
|
18319
|
-
if (!(0,
|
|
18338
|
+
if (!(0, import_node_fs20.existsSync)(appDir)) {
|
|
18320
18339
|
throw new Error(`Android app dir not found: ${appDir}`);
|
|
18321
18340
|
}
|
|
18322
18341
|
return appDir;
|
|
@@ -18332,7 +18351,7 @@ var AndroidApkReleaseService = class {
|
|
|
18332
18351
|
return void 0;
|
|
18333
18352
|
}
|
|
18334
18353
|
async runGradleAssembleAndFindApk(repoRoot, appDir, variant) {
|
|
18335
|
-
const gradlew = [import_node_path24.default.join(appDir, "gradlew"), import_node_path24.default.join(repoRoot, "gradlew")].find((candidate) => (0,
|
|
18354
|
+
const gradlew = [import_node_path24.default.join(appDir, "gradlew"), import_node_path24.default.join(repoRoot, "gradlew")].find((candidate) => (0, import_node_fs20.existsSync)(candidate));
|
|
18336
18355
|
if (!gradlew) {
|
|
18337
18356
|
throw new Error(`Gradle wrapper not found in ${appDir} or ${repoRoot}`);
|
|
18338
18357
|
}
|
|
@@ -18486,9 +18505,9 @@ function bumpAndroidProjectVersion(appDir, bump) {
|
|
|
18486
18505
|
import_node_path24.default.join(appDir, "build.gradle")
|
|
18487
18506
|
];
|
|
18488
18507
|
for (const candidate of candidates) {
|
|
18489
|
-
if (!(0,
|
|
18490
|
-
const result = bumpAndroidGradleVersionText((0,
|
|
18491
|
-
(0,
|
|
18508
|
+
if (!(0, import_node_fs20.existsSync)(candidate)) continue;
|
|
18509
|
+
const result = bumpAndroidGradleVersionText((0, import_node_fs20.readFileSync)(candidate, "utf8"), bump);
|
|
18510
|
+
(0, import_node_fs20.writeFileSync)(candidate, result.source);
|
|
18492
18511
|
return { filePath: candidate, ...result };
|
|
18493
18512
|
}
|
|
18494
18513
|
throw new Error(`No Android Gradle version file found under ${appDir}`);
|
|
@@ -18503,19 +18522,19 @@ function findLatestApk(repoRoot, appDir, variant) {
|
|
|
18503
18522
|
if (files.length === 0) {
|
|
18504
18523
|
throw new Error(`Cannot find APK output for variant ${variant}`);
|
|
18505
18524
|
}
|
|
18506
|
-
files.sort((a, b) => (0,
|
|
18525
|
+
files.sort((a, b) => (0, import_node_fs20.statSync)(b).mtimeMs - (0, import_node_fs20.statSync)(a).mtimeMs);
|
|
18507
18526
|
return files[0];
|
|
18508
18527
|
}
|
|
18509
18528
|
function readGradleOutputMetadata(apkPath) {
|
|
18510
18529
|
const metadataPath = import_node_path24.default.join(import_node_path24.default.dirname(apkPath), "output-metadata.json");
|
|
18511
|
-
if (!(0,
|
|
18530
|
+
if (!(0, import_node_fs20.existsSync)(metadataPath)) {
|
|
18512
18531
|
throw new Error(`Gradle output metadata not found: ${metadataPath}`);
|
|
18513
18532
|
}
|
|
18514
|
-
return parseGradleOutputMetadata((0,
|
|
18533
|
+
return parseGradleOutputMetadata((0, import_node_fs20.readFileSync)(metadataPath, "utf8"), import_node_path24.default.basename(apkPath));
|
|
18515
18534
|
}
|
|
18516
18535
|
function listApks(dir) {
|
|
18517
|
-
if (!(0,
|
|
18518
|
-
return (0,
|
|
18536
|
+
if (!(0, import_node_fs20.existsSync)(dir)) return [];
|
|
18537
|
+
return (0, import_node_fs20.readdirSync)(dir).filter((entry) => entry.endsWith(".apk")).map((entry) => import_node_path24.default.join(dir, entry)).filter((entry) => (0, import_node_fs20.statSync)(entry).isFile());
|
|
18519
18538
|
}
|
|
18520
18539
|
function runCommand(command, args, cwd) {
|
|
18521
18540
|
return new Promise((resolve, reject) => {
|
|
@@ -18556,19 +18575,19 @@ function findAndroidSdkTool(toolName) {
|
|
|
18556
18575
|
...listVersionedToolCandidates(import_node_path24.default.join(sdkRoot, "cmdline-tools"), import_node_path24.default.join("bin", toolName)),
|
|
18557
18576
|
import_node_path24.default.join(sdkRoot, "tools", "bin", toolName)
|
|
18558
18577
|
];
|
|
18559
|
-
const match = candidates.find((candidate) => (0,
|
|
18578
|
+
const match = candidates.find((candidate) => (0, import_node_fs20.existsSync)(candidate));
|
|
18560
18579
|
if (match) return match;
|
|
18561
18580
|
}
|
|
18562
18581
|
return void 0;
|
|
18563
18582
|
}
|
|
18564
18583
|
function listVersionedToolCandidates(parentDir, relativeToolPath) {
|
|
18565
|
-
if (!(0,
|
|
18566
|
-
return (0,
|
|
18584
|
+
if (!(0, import_node_fs20.existsSync)(parentDir)) return [];
|
|
18585
|
+
return (0, import_node_fs20.readdirSync)(parentDir).map((entry) => import_node_path24.default.join(parentDir, entry)).filter((entry) => (0, import_node_fs20.statSync)(entry).isDirectory()).sort((a, b) => import_node_path24.default.basename(b).localeCompare(import_node_path24.default.basename(a), void 0, { numeric: true })).map((entry) => import_node_path24.default.join(entry, relativeToolPath));
|
|
18567
18586
|
}
|
|
18568
18587
|
function sha256File(filePath) {
|
|
18569
18588
|
return new Promise((resolve, reject) => {
|
|
18570
18589
|
const hash = (0, import_node_crypto4.createHash)("sha256");
|
|
18571
|
-
const stream = (0,
|
|
18590
|
+
const stream = (0, import_node_fs20.createReadStream)(filePath);
|
|
18572
18591
|
stream.on("data", (chunk) => hash.update(chunk));
|
|
18573
18592
|
stream.on("error", reject);
|
|
18574
18593
|
stream.on("end", () => resolve(hash.digest("hex")));
|
|
@@ -18585,7 +18604,7 @@ function capitalize(value) {
|
|
|
18585
18604
|
}
|
|
18586
18605
|
|
|
18587
18606
|
// src/services/ServiceRuntimeRunner.ts
|
|
18588
|
-
var
|
|
18607
|
+
var import_node_fs21 = require("fs");
|
|
18589
18608
|
var import_node_os10 = __toESM(require("os"));
|
|
18590
18609
|
var import_node_path25 = __toESM(require("path"));
|
|
18591
18610
|
var import_node_child_process10 = require("child_process");
|
|
@@ -19087,7 +19106,7 @@ var ServiceRuntimeRunner = class {
|
|
|
19087
19106
|
const repoName = repository.replace(/\/+$/, "").split("/").pop()?.replace(/\.git$/i, "");
|
|
19088
19107
|
if (repoName) {
|
|
19089
19108
|
const candidate = import_node_path25.default.join(import_node_os10.default.homedir(), "dev", "pmate", repoName);
|
|
19090
|
-
if ((0,
|
|
19109
|
+
if ((0, import_node_fs21.existsSync)(candidate)) {
|
|
19091
19110
|
return candidate;
|
|
19092
19111
|
}
|
|
19093
19112
|
}
|
|
@@ -19106,7 +19125,7 @@ var ServiceRuntimeRunner = class {
|
|
|
19106
19125
|
this.assertDeployableStaticSite(service);
|
|
19107
19126
|
const appDir = this.resolveLocalDir(service, options.cwd);
|
|
19108
19127
|
const packageJsonPath = import_node_path25.default.join(appDir, "package.json");
|
|
19109
|
-
if (!(0,
|
|
19128
|
+
if (!(0, import_node_fs21.existsSync)(packageJsonPath)) {
|
|
19110
19129
|
throw new Error(`No package.json found at ${packageJsonPath}`);
|
|
19111
19130
|
}
|
|
19112
19131
|
const pkg2 = this.loadPackageJson(packageJsonPath);
|
|
@@ -19122,7 +19141,7 @@ var ServiceRuntimeRunner = class {
|
|
|
19122
19141
|
buildEnv
|
|
19123
19142
|
);
|
|
19124
19143
|
const distDir = import_node_path25.default.join(appDir, "dist");
|
|
19125
|
-
if (!(0,
|
|
19144
|
+
if (!(0, import_node_fs21.existsSync)(distDir)) {
|
|
19126
19145
|
throw new Error(`No dist directory found at ${distDir}`);
|
|
19127
19146
|
}
|
|
19128
19147
|
const site = this.getSite(service);
|
|
@@ -19136,7 +19155,7 @@ var ServiceRuntimeRunner = class {
|
|
|
19136
19155
|
this.assertDeployableStaticSite(service);
|
|
19137
19156
|
const appDir = this.resolveLocalDir(service, options.cwd);
|
|
19138
19157
|
const srcDir = import_node_path25.default.join(appDir, "src");
|
|
19139
|
-
if (!(0,
|
|
19158
|
+
if (!(0, import_node_fs21.existsSync)(srcDir)) {
|
|
19140
19159
|
throw new Error(`No src directory found at ${srcDir}`);
|
|
19141
19160
|
}
|
|
19142
19161
|
const site = this.getSite(service);
|
|
@@ -19171,7 +19190,7 @@ var ServiceRuntimeRunner = class {
|
|
|
19171
19190
|
const repoRoot = this.resolveRepoRoot(service, options.cwd);
|
|
19172
19191
|
const appDir = this.resolveLocalDir(service, options.cwd);
|
|
19173
19192
|
const packageJsonPath = import_node_path25.default.join(appDir, "package.json");
|
|
19174
|
-
if (!(0,
|
|
19193
|
+
if (!(0, import_node_fs21.existsSync)(packageJsonPath)) {
|
|
19175
19194
|
throw new Error(`No package.json found at ${packageJsonPath}`);
|
|
19176
19195
|
}
|
|
19177
19196
|
const pkg2 = this.loadPackageJson(packageJsonPath);
|
|
@@ -19225,14 +19244,14 @@ var ServiceRuntimeRunner = class {
|
|
|
19225
19244
|
const appDir = this.resolveLocalDir(service, options.cwd);
|
|
19226
19245
|
await this.ensurePnpmWorkspaceRoot(repoRoot);
|
|
19227
19246
|
const configPath = import_node_path25.default.join(appDir, fc.configFile ?? "s.yaml");
|
|
19228
|
-
if (!(0,
|
|
19247
|
+
if (!(0, import_node_fs21.existsSync)(configPath)) {
|
|
19229
19248
|
throw new Error(`Missing FC config file at ${configPath}`);
|
|
19230
19249
|
}
|
|
19231
19250
|
const packageJsonPath = import_node_path25.default.join(appDir, "package.json");
|
|
19232
|
-
if (!(0,
|
|
19251
|
+
if (!(0, import_node_fs21.existsSync)(packageJsonPath)) {
|
|
19233
19252
|
throw new Error(`No package.json found at ${packageJsonPath}`);
|
|
19234
19253
|
}
|
|
19235
|
-
const rawConfig = (0,
|
|
19254
|
+
const rawConfig = (0, import_node_fs21.readFileSync)(configPath, "utf8");
|
|
19236
19255
|
if (!rawConfig.includes(fc.functionName)) {
|
|
19237
19256
|
throw new Error(`FC config ${configPath} does not mention functionName ${fc.functionName}`);
|
|
19238
19257
|
}
|
|
@@ -19513,7 +19532,7 @@ var ServiceRuntimeRunner = class {
|
|
|
19513
19532
|
const serverAddress = await resolveServerAddress(server);
|
|
19514
19533
|
const templateName = exposeType === "websocket" ? "nginx.ws.template" : exposeType === "mixed" ? "nginx.mixed.template" : "nginx.rest.template";
|
|
19515
19534
|
const templatePath = this.resolveTemplatePath(templateName);
|
|
19516
|
-
const template = (0,
|
|
19535
|
+
const template = (0, import_node_fs21.readFileSync)(templatePath, "utf8");
|
|
19517
19536
|
const host = `${subdomain}.${("domain" in network ? network.domain?.trim() : void 0) || "pmate.chat"}`;
|
|
19518
19537
|
const rendered = template.replace(/\$\{\{PORT\}\}/g, String(port)).replace(/\$\{\{HOSTS\}\}/g, host).replace(/\$\{\{HOST\}\}/g, host);
|
|
19519
19538
|
const remotePath = `/etc/nginx/sites-enabled/${subdomain}.conf`;
|
|
@@ -19546,10 +19565,10 @@ var ServiceRuntimeRunner = class {
|
|
|
19546
19565
|
if (config.ensurePackageJson) {
|
|
19547
19566
|
const appDir = this.resolveLocalDir(service, options.cwd);
|
|
19548
19567
|
const packageJsonPath = import_node_path25.default.join(appDir, "package.json");
|
|
19549
|
-
if (!(0,
|
|
19568
|
+
if (!(0, import_node_fs21.existsSync)(packageJsonPath)) {
|
|
19550
19569
|
throw new Error(`Missing package.json at ${packageJsonPath}`);
|
|
19551
19570
|
}
|
|
19552
|
-
const pkgStat = (0,
|
|
19571
|
+
const pkgStat = (0, import_node_fs21.statSync)(packageJsonPath);
|
|
19553
19572
|
if (!pkgStat.isFile()) {
|
|
19554
19573
|
throw new Error(`package.json is not a file at ${packageJsonPath}`);
|
|
19555
19574
|
}
|
|
@@ -20028,7 +20047,7 @@ var ServiceRuntimeRunner = class {
|
|
|
20028
20047
|
import_node_path25.default.join(__dirname, "templates", templateName)
|
|
20029
20048
|
];
|
|
20030
20049
|
for (const candidate of candidates) {
|
|
20031
|
-
if ((0,
|
|
20050
|
+
if ((0, import_node_fs21.existsSync)(candidate)) {
|
|
20032
20051
|
return candidate;
|
|
20033
20052
|
}
|
|
20034
20053
|
}
|
|
@@ -20060,7 +20079,7 @@ var ServiceRuntimeRunner = class {
|
|
|
20060
20079
|
});
|
|
20061
20080
|
}
|
|
20062
20081
|
loadPackageJson(packageJsonPath) {
|
|
20063
|
-
const raw = (0,
|
|
20082
|
+
const raw = (0, import_node_fs21.readFileSync)(packageJsonPath, "utf8");
|
|
20064
20083
|
const parsed = JSON.parse(raw);
|
|
20065
20084
|
if (!parsed || typeof parsed !== "object") {
|
|
20066
20085
|
throw new Error(`Invalid package.json at ${packageJsonPath}`);
|
|
@@ -20069,7 +20088,7 @@ var ServiceRuntimeRunner = class {
|
|
|
20069
20088
|
}
|
|
20070
20089
|
writePackageJson(packageJsonPath, data) {
|
|
20071
20090
|
const serialized = JSON.stringify(data, null, 2);
|
|
20072
|
-
(0,
|
|
20091
|
+
(0, import_node_fs21.writeFileSync)(packageJsonPath, `${serialized}
|
|
20073
20092
|
`, "utf8");
|
|
20074
20093
|
}
|
|
20075
20094
|
validateFcConfig(service, fc) {
|
|
@@ -20097,7 +20116,7 @@ var ServiceRuntimeRunner = class {
|
|
|
20097
20116
|
}
|
|
20098
20117
|
async ensurePnpmWorkspaceRoot(repoRoot) {
|
|
20099
20118
|
const workspacePath = import_node_path25.default.join(repoRoot, "pnpm-workspace.yaml");
|
|
20100
|
-
if (!(0,
|
|
20119
|
+
if (!(0, import_node_fs21.existsSync)(workspacePath)) {
|
|
20101
20120
|
throw new Error(`Missing pnpm-workspace.yaml at ${workspacePath}`);
|
|
20102
20121
|
}
|
|
20103
20122
|
}
|
|
@@ -20171,16 +20190,16 @@ var ServiceRuntimeRunner = class {
|
|
|
20171
20190
|
if (!privateKeyPath) {
|
|
20172
20191
|
throw new Error("Missing ssl.prv in ~/.pmate/config.yaml.");
|
|
20173
20192
|
}
|
|
20174
|
-
if (!(0,
|
|
20193
|
+
if (!(0, import_node_fs21.existsSync)(certificatePath)) {
|
|
20175
20194
|
throw new Error(`SSL certificate file not found: ${certificatePath}`);
|
|
20176
20195
|
}
|
|
20177
|
-
if (!(0,
|
|
20196
|
+
if (!(0, import_node_fs21.existsSync)(privateKeyPath)) {
|
|
20178
20197
|
throw new Error(`SSL private key file not found: ${privateKeyPath}`);
|
|
20179
20198
|
}
|
|
20180
20199
|
return {
|
|
20181
20200
|
certName: host,
|
|
20182
|
-
certificate: (0,
|
|
20183
|
-
privateKey: (0,
|
|
20201
|
+
certificate: (0, import_node_fs21.readFileSync)(certificatePath, "utf8"),
|
|
20202
|
+
privateKey: (0, import_node_fs21.readFileSync)(privateKeyPath, "utf8")
|
|
20184
20203
|
};
|
|
20185
20204
|
}
|
|
20186
20205
|
resolveFcProtocol(fc, certConfig) {
|
|
@@ -20920,10 +20939,10 @@ var ServiceCommandHandler = class {
|
|
|
20920
20939
|
}
|
|
20921
20940
|
readJsonFile(filePath) {
|
|
20922
20941
|
const absolutePath = import_node_path26.default.resolve(process.cwd(), filePath);
|
|
20923
|
-
if (!(0,
|
|
20942
|
+
if (!(0, import_node_fs22.existsSync)(absolutePath)) {
|
|
20924
20943
|
throw new Error(`JSON file not found: ${absolutePath}`);
|
|
20925
20944
|
}
|
|
20926
|
-
const raw = (0,
|
|
20945
|
+
const raw = (0, import_node_fs22.readFileSync)(absolutePath, "utf8");
|
|
20927
20946
|
try {
|
|
20928
20947
|
return JSON.parse(raw);
|
|
20929
20948
|
} catch (error) {
|
|
@@ -21731,7 +21750,7 @@ var RoleCommandHandler = class {
|
|
|
21731
21750
|
};
|
|
21732
21751
|
|
|
21733
21752
|
// src/commands/AccountCommandHandler.ts
|
|
21734
|
-
var
|
|
21753
|
+
var import_node_fs23 = require("fs");
|
|
21735
21754
|
var import_node_crypto5 = require("crypto");
|
|
21736
21755
|
var import_node_path27 = __toESM(require("path"));
|
|
21737
21756
|
init_sessionStore();
|
|
@@ -21741,9 +21760,9 @@ var AccountCommandHandler = class {
|
|
|
21741
21760
|
case "bot-keygen": {
|
|
21742
21761
|
const keyFile = this.generateBotKeyFile(args.app, args.name);
|
|
21743
21762
|
const outPath = args.out ? this.resolveFilePath(args.out) : this.resolveDefaultBotKeyPath(args.app, args.name);
|
|
21744
|
-
(0,
|
|
21745
|
-
(0,
|
|
21746
|
-
(0,
|
|
21763
|
+
(0, import_node_fs23.mkdirSync)(import_node_path27.default.dirname(outPath), { recursive: true });
|
|
21764
|
+
(0, import_node_fs23.writeFileSync)(outPath, JSON.stringify(keyFile, null, 2), { mode: 384 });
|
|
21765
|
+
(0, import_node_fs23.chmodSync)(outPath, 384);
|
|
21747
21766
|
if (!args.json) {
|
|
21748
21767
|
ui.success(`Bot key saved to ${outPath}`);
|
|
21749
21768
|
}
|
|
@@ -22303,10 +22322,10 @@ var AccountCommandHandler = class {
|
|
|
22303
22322
|
throw new Error("Missing visible apps input");
|
|
22304
22323
|
}
|
|
22305
22324
|
const absolutePath = this.resolveFilePath(args.filePath);
|
|
22306
|
-
if (!(0,
|
|
22325
|
+
if (!(0, import_node_fs23.existsSync)(absolutePath)) {
|
|
22307
22326
|
throw new Error(`JSON file not found: ${absolutePath}`);
|
|
22308
22327
|
}
|
|
22309
|
-
const raw = (0,
|
|
22328
|
+
const raw = (0, import_node_fs23.readFileSync)(absolutePath, "utf8");
|
|
22310
22329
|
let parsed;
|
|
22311
22330
|
try {
|
|
22312
22331
|
parsed = JSON.parse(raw);
|
|
@@ -22346,14 +22365,14 @@ var AccountCommandHandler = class {
|
|
|
22346
22365
|
}
|
|
22347
22366
|
renameDefaultBotKeyFile(app, name, newName) {
|
|
22348
22367
|
const oldPath = this.resolveDefaultBotKeyPath(app, name);
|
|
22349
|
-
if (!(0,
|
|
22368
|
+
if (!(0, import_node_fs23.existsSync)(oldPath)) {
|
|
22350
22369
|
return void 0;
|
|
22351
22370
|
}
|
|
22352
22371
|
const keyFile = this.readBotKeyFile(oldPath, app, name);
|
|
22353
22372
|
const newPath = this.resolveDefaultBotKeyPath(app, newName);
|
|
22354
|
-
(0,
|
|
22355
|
-
(0,
|
|
22356
|
-
(0,
|
|
22373
|
+
(0, import_node_fs23.mkdirSync)(import_node_path27.default.dirname(newPath), { recursive: true, mode: 448 });
|
|
22374
|
+
(0, import_node_fs23.writeFileSync)(newPath, JSON.stringify({ ...keyFile, name: newName }, null, 2));
|
|
22375
|
+
(0, import_node_fs23.chmodSync)(newPath, 384);
|
|
22357
22376
|
return newPath;
|
|
22358
22377
|
}
|
|
22359
22378
|
readBotKeyFile(filePath, expectedApp, expectedName) {
|
|
@@ -22361,10 +22380,10 @@ var AccountCommandHandler = class {
|
|
|
22361
22380
|
throw new Error("Missing bot key file");
|
|
22362
22381
|
}
|
|
22363
22382
|
const absolutePath = this.resolveFilePath(filePath);
|
|
22364
|
-
if (!(0,
|
|
22383
|
+
if (!(0, import_node_fs23.existsSync)(absolutePath)) {
|
|
22365
22384
|
throw new Error(`Bot key file not found: ${absolutePath}`);
|
|
22366
22385
|
}
|
|
22367
|
-
const parsed = JSON.parse((0,
|
|
22386
|
+
const parsed = JSON.parse((0, import_node_fs23.readFileSync)(absolutePath, "utf8"));
|
|
22368
22387
|
if (parsed.type !== "pmate-bot-key" || parsed.version !== 1 || parsed.algorithm !== "ed25519" || !parsed.publicKey || !parsed.privateKey) {
|
|
22369
22388
|
throw new Error(`Invalid PMate bot key file: ${absolutePath}`);
|
|
22370
22389
|
}
|
|
@@ -22381,10 +22400,10 @@ var AccountCommandHandler = class {
|
|
|
22381
22400
|
throw new Error("Missing access key file");
|
|
22382
22401
|
}
|
|
22383
22402
|
const absolutePath = this.resolveFilePath(filePath);
|
|
22384
|
-
if (!(0,
|
|
22403
|
+
if (!(0, import_node_fs23.existsSync)(absolutePath)) {
|
|
22385
22404
|
throw new Error(`Access key file not found: ${absolutePath}`);
|
|
22386
22405
|
}
|
|
22387
|
-
const parsed = JSON.parse((0,
|
|
22406
|
+
const parsed = JSON.parse((0, import_node_fs23.readFileSync)(absolutePath, "utf8"));
|
|
22388
22407
|
if (parsed.type !== "pmate-access-key" || parsed.version !== 1 || !parsed.id || !parsed.app || !parsed.secret || !parsed.expiresAt) {
|
|
22389
22408
|
throw new Error(`Invalid PMate access key file: ${absolutePath}`);
|
|
22390
22409
|
}
|
|
@@ -22406,9 +22425,9 @@ var AccountCommandHandler = class {
|
|
|
22406
22425
|
createdAt: result.key.createdAt
|
|
22407
22426
|
};
|
|
22408
22427
|
const outPath = out ? this.resolveFilePath(out) : this.resolveDefaultAccessKeyPath(result.key.app, result.key.name);
|
|
22409
|
-
(0,
|
|
22410
|
-
(0,
|
|
22411
|
-
(0,
|
|
22428
|
+
(0, import_node_fs23.mkdirSync)(import_node_path27.default.dirname(outPath), { recursive: true });
|
|
22429
|
+
(0, import_node_fs23.writeFileSync)(outPath, JSON.stringify(keyFile, null, 2), { mode: 384 });
|
|
22430
|
+
(0, import_node_fs23.chmodSync)(outPath, 384);
|
|
22412
22431
|
}
|
|
22413
22432
|
renderAccessKeyCreateResult(result, asJson, out) {
|
|
22414
22433
|
if (asJson) {
|
|
@@ -22493,7 +22512,7 @@ function encodePathSegment2(value) {
|
|
|
22493
22512
|
}
|
|
22494
22513
|
|
|
22495
22514
|
// src/commands/OrgCommandHandler.ts
|
|
22496
|
-
var
|
|
22515
|
+
var import_node_fs24 = require("fs");
|
|
22497
22516
|
var import_node_path28 = __toESM(require("path"));
|
|
22498
22517
|
init_sessionStore();
|
|
22499
22518
|
var OrgCommandHandler = class {
|
|
@@ -22665,10 +22684,10 @@ var OrgCommandHandler = class {
|
|
|
22665
22684
|
throw new Error(`Missing ${itemLabel} input`);
|
|
22666
22685
|
}
|
|
22667
22686
|
const absolutePath = import_node_path28.default.resolve(process.cwd(), filePath);
|
|
22668
|
-
if (!(0,
|
|
22687
|
+
if (!(0, import_node_fs24.existsSync)(absolutePath)) {
|
|
22669
22688
|
throw new Error(`JSON file not found: ${absolutePath}`);
|
|
22670
22689
|
}
|
|
22671
|
-
const raw = (0,
|
|
22690
|
+
const raw = (0, import_node_fs24.readFileSync)(absolutePath, "utf8");
|
|
22672
22691
|
let parsed;
|
|
22673
22692
|
try {
|
|
22674
22693
|
parsed = JSON.parse(raw);
|
|
@@ -22739,7 +22758,7 @@ function encodePathSegment3(value) {
|
|
|
22739
22758
|
}
|
|
22740
22759
|
|
|
22741
22760
|
// src/commands/HostCommandHandler.ts
|
|
22742
|
-
var
|
|
22761
|
+
var import_node_fs25 = require("fs");
|
|
22743
22762
|
var import_node_os11 = require("os");
|
|
22744
22763
|
var import_node_path29 = __toESM(require("path"));
|
|
22745
22764
|
var import_node_child_process13 = require("child_process");
|
|
@@ -25950,7 +25969,7 @@ function requireValue11(tokens, option) {
|
|
|
25950
25969
|
|
|
25951
25970
|
// src/index.ts
|
|
25952
25971
|
var pkg = JSON.parse(
|
|
25953
|
-
(0,
|
|
25972
|
+
(0, import_node_fs26.readFileSync)(import_node_path30.default.resolve(__dirname, "..", "package.json"), "utf8")
|
|
25954
25973
|
);
|
|
25955
25974
|
var HELP_TEXT = [
|
|
25956
25975
|
import_chalk4.default.bold(`pmate v${pkg.version}`),
|
|
@@ -27857,6 +27876,7 @@ function parseNonNegativeInt(value, optionName) {
|
|
|
27857
27876
|
}
|
|
27858
27877
|
async function main() {
|
|
27859
27878
|
try {
|
|
27879
|
+
await ensureManagedSession();
|
|
27860
27880
|
const args = parseArgs(process.argv.slice(2));
|
|
27861
27881
|
if (args.help) {
|
|
27862
27882
|
showHelp();
|