@pmate/cli 0.35.9 → 0.35.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/index.js +449 -420
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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
|
+
// ../../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
|
+
"../../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,8 @@ __export(index_exports, {
|
|
|
8818
8818
|
parseCommandArgs: () => parseCommandArgs
|
|
8819
8819
|
});
|
|
8820
8820
|
module.exports = __toCommonJS(index_exports);
|
|
8821
|
-
var
|
|
8822
|
-
var
|
|
8821
|
+
var import_node_fs28 = require("fs");
|
|
8822
|
+
var import_node_path33 = __toESM(require("path"));
|
|
8823
8823
|
|
|
8824
8824
|
// src/managedSession.ts
|
|
8825
8825
|
var import_node_fs = require("fs");
|
|
@@ -14267,9 +14267,9 @@ ${indent}\`\`\``;
|
|
|
14267
14267
|
static richTextToPlain(richText) {
|
|
14268
14268
|
return richText.map((item) => item.plain_text ?? item.text?.content ?? "").join("").trim();
|
|
14269
14269
|
}
|
|
14270
|
-
static async requestJson(
|
|
14270
|
+
static async requestJson(path33, init) {
|
|
14271
14271
|
const token = this.getToken();
|
|
14272
|
-
const response = await fetch(`${this.baseUrl}${
|
|
14272
|
+
const response = await fetch(`${this.baseUrl}${path33}`, {
|
|
14273
14273
|
method: init.method,
|
|
14274
14274
|
headers: {
|
|
14275
14275
|
Authorization: `Bearer ${token}`,
|
|
@@ -16974,8 +16974,8 @@ function descriptorPathSegments(descriptor) {
|
|
|
16974
16974
|
return ["chains", normalized.chain, "namespaces", normalized.ns, normalized.kind, normalized.name];
|
|
16975
16975
|
}
|
|
16976
16976
|
function buildPathUrl(baseUrl, pathSegments, query) {
|
|
16977
|
-
const
|
|
16978
|
-
const url = new URL(
|
|
16977
|
+
const path33 = `/${pathSegments.map((segment) => encodeURIComponent(segment)).join("/")}`;
|
|
16978
|
+
const url = new URL(path33, baseUrl);
|
|
16979
16979
|
if (query) {
|
|
16980
16980
|
for (const [key, value] of Object.entries(query)) {
|
|
16981
16981
|
url.searchParams.set(key, String(value));
|
|
@@ -17537,14 +17537,41 @@ var StoreCommandHandler = class {
|
|
|
17537
17537
|
|
|
17538
17538
|
// src/electronBuild.ts
|
|
17539
17539
|
var import_node_child_process9 = require("child_process");
|
|
17540
|
+
var import_node_crypto5 = require("crypto");
|
|
17541
|
+
var import_node_fs19 = require("fs");
|
|
17542
|
+
var import_node_os9 = require("os");
|
|
17543
|
+
var import_node_path24 = __toESM(require("path"));
|
|
17544
|
+
|
|
17545
|
+
// src/desktopRelease.ts
|
|
17540
17546
|
var import_node_crypto4 = require("crypto");
|
|
17541
17547
|
var import_node_fs18 = require("fs");
|
|
17542
|
-
var import_node_os9 = require("os");
|
|
17543
17548
|
var import_node_path23 = __toESM(require("path"));
|
|
17549
|
+
async function uploadDesktopArtifacts(directory, app, version, platform, arch) {
|
|
17550
|
+
const segments = [...app.split(":"), version, platform, arch];
|
|
17551
|
+
if (app.split(":").length !== 2 || segments.some((s) => !/^[\w.-]+$/.test(s) || s === "." || s === "..")) throw new Error("Invalid desktop release identity");
|
|
17552
|
+
const bucket = "parrot-static";
|
|
17553
|
+
const prefix = `desktop/${segments.join("/")}/`;
|
|
17554
|
+
const url = (key) => `https://parrot-static.pmate.chat/${key.split("/").map(encodeURIComponent).join("/")}`;
|
|
17555
|
+
const artifacts = (0, import_node_fs18.readdirSync)(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && (platform === "mac" ? /\.(dmg|zip)$/i : /\.(exe|zip)$/i).test(entry.name)).sort((a, b) => a.name.localeCompare(b.name)).map((entry) => {
|
|
17556
|
+
const bytes = (0, import_node_fs18.readFileSync)(import_node_path23.default.join(directory, entry.name));
|
|
17557
|
+
const objectKey = prefix + entry.name;
|
|
17558
|
+
return { name: entry.name, objectKey, downloadUrl: url(objectKey), sha256: (0, import_node_crypto4.createHash)("sha256").update(bytes).digest("hex"), size: bytes.length };
|
|
17559
|
+
});
|
|
17560
|
+
if (!artifacts.length) throw new Error("No desktop installers found to publish");
|
|
17561
|
+
const manifestKey = prefix + "release.json";
|
|
17562
|
+
const existing = await AliyunService.readJsonObject(bucket, manifestKey);
|
|
17563
|
+
const release = { schemaVersion: 1, app, version, platform, arch, artifacts };
|
|
17564
|
+
if (existing !== null && JSON.stringify(existing) !== JSON.stringify(release)) throw new Error("Desktop release already exists with different artifacts; bump the app version");
|
|
17565
|
+
for (const artifact of artifacts) await AliyunService.uploadFile(import_node_path23.default.join(directory, artifact.name), bucket, artifact.objectKey);
|
|
17566
|
+
await AliyunService.uploadJsonObject(bucket, manifestKey, release);
|
|
17567
|
+
return { bucket, manifestUrl: url(manifestKey), downloads: artifacts };
|
|
17568
|
+
}
|
|
17569
|
+
|
|
17570
|
+
// src/electronBuild.ts
|
|
17544
17571
|
var ELECTRON_VERSION = "44.5.1";
|
|
17545
17572
|
var BUILDER_VERSION = "26.15.3";
|
|
17546
17573
|
function readDesktopConfig(file, appId) {
|
|
17547
|
-
const c = JSON.parse((0,
|
|
17574
|
+
const c = JSON.parse((0, import_node_fs19.readFileSync)(file, "utf8"));
|
|
17548
17575
|
if (c.schemaVersion !== 1 || c.app !== appId) throw new Error("Desktop config schemaVersion/app mismatch");
|
|
17549
17576
|
for (const key of ["productName", "bundleId", "version", "icon"]) {
|
|
17550
17577
|
if (typeof c[key] !== "string" || !c[key].trim()) throw new Error(`Missing desktop ${key}`);
|
|
@@ -17564,16 +17591,16 @@ function readDesktopConfig(file, appId) {
|
|
|
17564
17591
|
function collectStaticFiles(root) {
|
|
17565
17592
|
const files = [];
|
|
17566
17593
|
const walk = (dir) => {
|
|
17567
|
-
for (const entry of (0,
|
|
17568
|
-
const full =
|
|
17594
|
+
for (const entry of (0, import_node_fs19.readdirSync)(dir, { withFileTypes: true })) {
|
|
17595
|
+
const full = import_node_path24.default.join(dir, entry.name);
|
|
17569
17596
|
if (entry.isSymbolicLink()) throw new Error(`Symlinks are not allowed in desktop resources: ${entry.name}`);
|
|
17570
17597
|
if (entry.name.startsWith(".") || /\.(?:pem|key|p12|pfx)$/i.test(entry.name) || /bot-key|session\.json/i.test(entry.name)) throw new Error(`Private or hidden file in desktop resources: ${entry.name}`);
|
|
17571
17598
|
if (entry.isDirectory()) walk(full);
|
|
17572
|
-
else if (entry.isFile() && !entry.name.endsWith(".map")) files.push(
|
|
17599
|
+
else if (entry.isFile() && !entry.name.endsWith(".map")) files.push(import_node_path24.default.relative(root, full));
|
|
17573
17600
|
else if (!entry.isFile()) throw new Error(`Unsupported resource: ${entry.name}`);
|
|
17574
17601
|
}
|
|
17575
17602
|
};
|
|
17576
|
-
if ((0,
|
|
17603
|
+
if ((0, import_node_fs19.lstatSync)(root).isSymbolicLink()) throw new Error("Static resource root cannot be a symlink");
|
|
17577
17604
|
walk(root);
|
|
17578
17605
|
if (!files.includes("index.html")) throw new Error("Web build must produce index.html");
|
|
17579
17606
|
return files.sort();
|
|
@@ -17586,19 +17613,19 @@ async function runBuildCommand(command, cwd, env = process.env) {
|
|
|
17586
17613
|
});
|
|
17587
17614
|
}
|
|
17588
17615
|
async function buildDesktop(args) {
|
|
17589
|
-
const file =
|
|
17616
|
+
const file = import_node_path24.default.resolve(args.config);
|
|
17590
17617
|
const c = readDesktopConfig(file, args.id);
|
|
17591
|
-
const base =
|
|
17592
|
-
const cwd =
|
|
17593
|
-
const dist =
|
|
17594
|
-
const icon =
|
|
17595
|
-
const output =
|
|
17596
|
-
if (!(0,
|
|
17618
|
+
const base = import_node_path24.default.dirname(file);
|
|
17619
|
+
const cwd = import_node_path24.default.resolve(base, c.web.cwd);
|
|
17620
|
+
const dist = import_node_path24.default.resolve(cwd, c.web.dist);
|
|
17621
|
+
const icon = import_node_path24.default.resolve(base, c.icon);
|
|
17622
|
+
const output = import_node_path24.default.resolve(args.outDir);
|
|
17623
|
+
if (!(0, import_node_fs19.existsSync)(icon) || !(0, import_node_fs19.statSync)(icon).isFile()) throw new Error(`Desktop icon not found: ${icon}`);
|
|
17597
17624
|
if (!["mac", "win"].includes(args.platform) || !["arm64", "x64"].includes(args.arch)) throw new Error("Supported target: mac|win --arch arm64|x64");
|
|
17598
17625
|
if (args.platform === "mac" && process.platform !== "darwin") throw new Error("macOS desktop packaging requires a macOS build host");
|
|
17599
17626
|
const within = (parent, child) => {
|
|
17600
|
-
const rel =
|
|
17601
|
-
return !rel || !rel.startsWith("..") && !
|
|
17627
|
+
const rel = import_node_path24.default.relative(parent, child);
|
|
17628
|
+
return !rel || !rel.startsWith("..") && !import_node_path24.default.isAbsolute(rel);
|
|
17602
17629
|
};
|
|
17603
17630
|
if (within(dist, cwd) || within(dist, output) || within(output, cwd)) throw new Error("Build output, web source and static resource paths overlap");
|
|
17604
17631
|
const plan = { app: c.app, productName: c.productName, version: c.version, target: args.platform, arch: args.arch, command: c.web.build, cwd, dist, output, electron: ELECTRON_VERSION, builder: BUILDER_VERSION, signed: args.signed };
|
|
@@ -17606,37 +17633,37 @@ async function buildDesktop(args) {
|
|
|
17606
17633
|
if (args.dryRun) return;
|
|
17607
17634
|
const started = Date.now();
|
|
17608
17635
|
await runBuildCommand(c.web.build, cwd);
|
|
17609
|
-
if (!(0,
|
|
17636
|
+
if (!(0, import_node_fs19.existsSync)(import_node_path24.default.join(dist, "index.html")) || (0, import_node_fs19.statSync)(import_node_path24.default.join(dist, "index.html")).mtimeMs < started - 1e3) throw new Error("Build did not produce a fresh index.html; refusing stale resources");
|
|
17610
17637
|
const files = collectStaticFiles(dist);
|
|
17611
|
-
(0,
|
|
17612
|
-
const staging = (0,
|
|
17613
|
-
const appDir =
|
|
17614
|
-
(0,
|
|
17638
|
+
(0, import_node_fs19.mkdirSync)(output, { recursive: true });
|
|
17639
|
+
const staging = (0, import_node_fs19.mkdtempSync)(import_node_path24.default.join(output, ".desktop-build-"));
|
|
17640
|
+
const appDir = import_node_path24.default.join(staging, "app");
|
|
17641
|
+
(0, import_node_fs19.mkdirSync)(import_node_path24.default.join(appDir, "renderer"), { recursive: true });
|
|
17615
17642
|
const manifest = {};
|
|
17616
17643
|
for (const name of files) {
|
|
17617
|
-
const source =
|
|
17618
|
-
(0,
|
|
17619
|
-
(0,
|
|
17620
|
-
manifest[name] = (0,
|
|
17621
|
-
}
|
|
17622
|
-
const templateDir =
|
|
17623
|
-
(0,
|
|
17624
|
-
(0,
|
|
17625
|
-
(0,
|
|
17626
|
-
(0,
|
|
17644
|
+
const source = import_node_path24.default.join(dist, name), target = import_node_path24.default.join(appDir, "renderer", name);
|
|
17645
|
+
(0, import_node_fs19.mkdirSync)(import_node_path24.default.dirname(target), { recursive: true });
|
|
17646
|
+
(0, import_node_fs19.cpSync)(source, target);
|
|
17647
|
+
manifest[name] = (0, import_node_crypto5.createHash)("sha256").update((0, import_node_fs19.readFileSync)(source)).digest("hex");
|
|
17648
|
+
}
|
|
17649
|
+
const templateDir = import_node_path24.default.join(__dirname, "templates", "electron");
|
|
17650
|
+
(0, import_node_fs19.cpSync)(templateDir, appDir, { recursive: true });
|
|
17651
|
+
(0, import_node_fs19.writeFileSync)(import_node_path24.default.join(appDir, "desktop-config.json"), JSON.stringify({ app: c.app, productName: c.productName, origin: c.origin, authOrigins: c.authOrigins, bundleId: c.bundleId }));
|
|
17652
|
+
(0, import_node_fs19.writeFileSync)(import_node_path24.default.join(appDir, "resource-manifest.json"), JSON.stringify(manifest, null, 2));
|
|
17653
|
+
(0, import_node_fs19.writeFileSync)(import_node_path24.default.join(appDir, "package.json"), JSON.stringify({ name: c.bundleId.replace(/\./g, "-"), version: c.version, description: `${c.productName} desktop application`, author: "PMate", main: "main.cjs", dependencies: { "@pmate/chat-sdk": "0.11.7" } }));
|
|
17627
17654
|
await runBuildCommand(["npm", "install", "--omit=dev", "--no-audit", "--no-fund"], appDir);
|
|
17628
|
-
const cache =
|
|
17629
|
-
(0,
|
|
17655
|
+
const cache = import_node_path24.default.join((0, import_node_os9.homedir)(), ".cache", "pmate", "electron", `${ELECTRON_VERSION}-${BUILDER_VERSION}`);
|
|
17656
|
+
(0, import_node_fs19.mkdirSync)(cache, { recursive: true });
|
|
17630
17657
|
const toolPackage = { name: "pmate-desktop-toolchain", private: true, dependencies: { electron: ELECTRON_VERSION, "electron-builder": BUILDER_VERSION } };
|
|
17631
|
-
if (!(0,
|
|
17632
|
-
(0,
|
|
17633
|
-
await runBuildCommand(["npm", (0,
|
|
17658
|
+
if (!(0, import_node_fs19.existsSync)(import_node_path24.default.join(cache, "node_modules", "electron", "dist", "Electron.app")) || !(0, import_node_fs19.existsSync)(import_node_path24.default.join(cache, "node_modules", "electron-builder", "cli.js"))) {
|
|
17659
|
+
(0, import_node_fs19.writeFileSync)(import_node_path24.default.join(cache, "package.json"), JSON.stringify(toolPackage));
|
|
17660
|
+
await runBuildCommand(["npm", (0, import_node_fs19.existsSync)(import_node_path24.default.join(cache, "package-lock.json")) ? "ci" : "install", "--no-audit", "--no-fund"], cache);
|
|
17634
17661
|
}
|
|
17635
17662
|
const builderConfig = {
|
|
17636
17663
|
appId: c.bundleId,
|
|
17637
17664
|
productName: c.productName,
|
|
17638
17665
|
electronVersion: ELECTRON_VERSION,
|
|
17639
|
-
directories: { app: appDir, output:
|
|
17666
|
+
directories: { app: appDir, output: import_node_path24.default.join(staging, "artifacts") },
|
|
17640
17667
|
files: ["**/*"],
|
|
17641
17668
|
asar: true,
|
|
17642
17669
|
artifactName: "${productName}-${version}-${arch}.${ext}",
|
|
@@ -17644,23 +17671,25 @@ async function buildDesktop(args) {
|
|
|
17644
17671
|
win: { icon, target: args.dir ? ["dir"] : ["nsis", "zip"], ...args.signed ? {} : { signExecutable: false } },
|
|
17645
17672
|
forceCodeSigning: args.signed
|
|
17646
17673
|
};
|
|
17647
|
-
const configPath =
|
|
17648
|
-
(0,
|
|
17649
|
-
await runBuildCommand([process.execPath,
|
|
17650
|
-
const result = { ...plan, signature: args.signed ? args.platform === "mac" ? "configured-signing-required; verify notarization before distribution" : "configured-signing-required; verify Authenticode before distribution" : args.platform === "mac" ? "ad-hoc; local development" : "unsigned; local development", artifacts:
|
|
17651
|
-
(0,
|
|
17652
|
-
|
|
17674
|
+
const configPath = import_node_path24.default.join(staging, "builder.json");
|
|
17675
|
+
(0, import_node_fs19.writeFileSync)(configPath, JSON.stringify(builderConfig));
|
|
17676
|
+
await runBuildCommand([process.execPath, import_node_path24.default.join(cache, "node_modules", "electron-builder", "cli.js"), "--config", configPath, args.platform === "mac" ? "--mac" : "--win", `--${args.arch}`, "--publish", "never"], appDir, { ...process.env, ...args.signed ? {} : { CSC_IDENTITY_AUTO_DISCOVERY: "false" } });
|
|
17677
|
+
const result = { ...plan, signature: args.signed ? args.platform === "mac" ? "configured-signing-required; verify notarization before distribution" : "configured-signing-required; verify Authenticode before distribution" : args.platform === "mac" ? "ad-hoc; local development" : "unsigned; local development", artifacts: import_node_path24.default.join(staging, "artifacts"), resources: manifest };
|
|
17678
|
+
(0, import_node_fs19.writeFileSync)(import_node_path24.default.join(staging, "build-report.json"), JSON.stringify(result, null, 2));
|
|
17679
|
+
const publication = args.dir ? void 0 : await uploadDesktopArtifacts(result.artifacts, c.app, c.version, args.platform, args.arch);
|
|
17680
|
+
(0, import_node_fs19.writeFileSync)(import_node_path24.default.join(staging, "build-report.json"), JSON.stringify({ ...result, publication }, null, 2));
|
|
17681
|
+
console.log(JSON.stringify({ phase: "complete", report: import_node_path24.default.join(staging, "build-report.json"), artifacts: result.artifacts, signature: result.signature, publication }, null, 2));
|
|
17653
17682
|
}
|
|
17654
17683
|
|
|
17655
17684
|
// src/commands/AppCommandHandler.ts
|
|
17656
|
-
var
|
|
17657
|
-
var
|
|
17685
|
+
var import_node_fs21 = require("fs");
|
|
17686
|
+
var import_node_path26 = __toESM(require("path"));
|
|
17658
17687
|
init_sessionStore();
|
|
17659
17688
|
|
|
17660
17689
|
// src/appIcon.ts
|
|
17661
|
-
var
|
|
17690
|
+
var import_node_fs20 = require("fs");
|
|
17662
17691
|
var import_node_os10 = __toESM(require("os"));
|
|
17663
|
-
var
|
|
17692
|
+
var import_node_path25 = __toESM(require("path"));
|
|
17664
17693
|
var import_sharp = __toESM(require("sharp"));
|
|
17665
17694
|
init_namespacedRef();
|
|
17666
17695
|
var ANDROID_ICON_SPECS = [
|
|
@@ -17765,13 +17794,13 @@ function createAppIconExportPlans(input) {
|
|
|
17765
17794
|
if (!input.outDir) {
|
|
17766
17795
|
throw new Error("App icon preset export requires --out-dir.");
|
|
17767
17796
|
}
|
|
17768
|
-
const outDir =
|
|
17769
|
-
(0,
|
|
17797
|
+
const outDir = import_node_path25.default.resolve(input.cwd, input.outDir);
|
|
17798
|
+
(0, import_node_fs20.mkdirSync)(outDir, { recursive: true });
|
|
17770
17799
|
return specs.map((spec) => ({
|
|
17771
17800
|
width: spec.width,
|
|
17772
17801
|
height: spec.height,
|
|
17773
17802
|
format: "png",
|
|
17774
|
-
outputPath:
|
|
17803
|
+
outputPath: import_node_path25.default.join(
|
|
17775
17804
|
outDir,
|
|
17776
17805
|
`${namespace}-${objectId}-${spec.name}-${spec.width}x${spec.height}.png`
|
|
17777
17806
|
)
|
|
@@ -17784,8 +17813,8 @@ function createAppIconExportPlans(input) {
|
|
|
17784
17813
|
if (!input.output) {
|
|
17785
17814
|
throw new Error("Single-size app icon export requires --output.");
|
|
17786
17815
|
}
|
|
17787
|
-
const resolvedOutput =
|
|
17788
|
-
(0,
|
|
17816
|
+
const resolvedOutput = import_node_path25.default.resolve(input.cwd, input.output);
|
|
17817
|
+
(0, import_node_fs20.mkdirSync)(import_node_path25.default.dirname(resolvedOutput), { recursive: true });
|
|
17789
17818
|
return [
|
|
17790
17819
|
{
|
|
17791
17820
|
width: input.width,
|
|
@@ -17799,7 +17828,7 @@ async function exportAppIcon(icon, plans) {
|
|
|
17799
17828
|
const svg = await resolveAppIconSvg(icon);
|
|
17800
17829
|
for (const plan of plans) {
|
|
17801
17830
|
const bytes = await renderAppIcon(svg, plan.width, plan.height, plan.format);
|
|
17802
|
-
(0,
|
|
17831
|
+
(0, import_node_fs20.writeFileSync)(plan.outputPath, bytes);
|
|
17803
17832
|
}
|
|
17804
17833
|
}
|
|
17805
17834
|
async function renderAppIconVariant(input) {
|
|
@@ -17807,9 +17836,9 @@ async function renderAppIconVariant(input) {
|
|
|
17807
17836
|
const bytes = await renderAppIcon(svg, input.width, input.height, input.format);
|
|
17808
17837
|
let outputPath;
|
|
17809
17838
|
if (input.output) {
|
|
17810
|
-
outputPath =
|
|
17811
|
-
(0,
|
|
17812
|
-
(0,
|
|
17839
|
+
outputPath = import_node_path25.default.resolve(input.cwd, input.output);
|
|
17840
|
+
(0, import_node_fs20.mkdirSync)(import_node_path25.default.dirname(outputPath), { recursive: true });
|
|
17841
|
+
(0, import_node_fs20.writeFileSync)(outputPath, bytes);
|
|
17813
17842
|
}
|
|
17814
17843
|
if (input.name) {
|
|
17815
17844
|
return {
|
|
@@ -17830,7 +17859,7 @@ async function renderAppIconVariant(input) {
|
|
|
17830
17859
|
};
|
|
17831
17860
|
}
|
|
17832
17861
|
async function loadAppIconVariantFile(input) {
|
|
17833
|
-
const absolutePath =
|
|
17862
|
+
const absolutePath = import_node_path25.default.resolve(input.cwd, input.filePath);
|
|
17834
17863
|
const format = inferVariantFormatFromPath(absolutePath);
|
|
17835
17864
|
return {
|
|
17836
17865
|
value: input.name ? await uploadAppIconVariantAsset({
|
|
@@ -17839,7 +17868,7 @@ async function loadAppIconVariantFile(input) {
|
|
|
17839
17868
|
name: input.name,
|
|
17840
17869
|
format,
|
|
17841
17870
|
sourcePath: absolutePath
|
|
17842
|
-
}) : createImageDataUrl((0,
|
|
17871
|
+
}) : createImageDataUrl((0, import_node_fs20.readFileSync)(absolutePath), format),
|
|
17843
17872
|
format,
|
|
17844
17873
|
absolutePath
|
|
17845
17874
|
};
|
|
@@ -17898,7 +17927,7 @@ function shouldAutoGenerateDefaultVariant(icon) {
|
|
|
17898
17927
|
return looksLikeSvgMarkup(icon) || looksLikeSvgUrl(icon);
|
|
17899
17928
|
}
|
|
17900
17929
|
function inferVariantFormatFromPath(filePath) {
|
|
17901
|
-
const ext =
|
|
17930
|
+
const ext = import_node_path25.default.extname(filePath).toLowerCase();
|
|
17902
17931
|
switch (ext) {
|
|
17903
17932
|
case ".png":
|
|
17904
17933
|
return "png";
|
|
@@ -17969,13 +17998,13 @@ async function uploadAppIconVariantAsset(input) {
|
|
|
17969
17998
|
await AliyunService.uploadFile(sourcePath, DEFAULT_APP_ICON_VARIANT_BUCKET, objectKey);
|
|
17970
17999
|
} finally {
|
|
17971
18000
|
if (shouldCleanup) {
|
|
17972
|
-
(0,
|
|
18001
|
+
(0, import_node_fs20.rmSync)(import_node_path25.default.dirname(sourcePath), { recursive: true, force: true });
|
|
17973
18002
|
}
|
|
17974
18003
|
}
|
|
17975
18004
|
return `${DEFAULT_APP_ICON_VARIANT_PUBLIC_BASE_URL}/${objectKey}`;
|
|
17976
18005
|
}
|
|
17977
18006
|
function buildAppIconVariantObjectKey(input) {
|
|
17978
|
-
return
|
|
18007
|
+
return import_node_path25.default.posix.join(
|
|
17979
18008
|
"apps",
|
|
17980
18009
|
`${resolveAppIconAssetStem(input.icon, input.appRef)}-${input.name}.${extensionForIconFormat(input.format)}`
|
|
17981
18010
|
);
|
|
@@ -17984,8 +18013,8 @@ function resolveAppIconAssetStem(icon, appRef2) {
|
|
|
17984
18013
|
if (icon) {
|
|
17985
18014
|
try {
|
|
17986
18015
|
const url = new URL(icon);
|
|
17987
|
-
const ext =
|
|
17988
|
-
const basename =
|
|
18016
|
+
const ext = import_node_path25.default.posix.extname(url.pathname);
|
|
18017
|
+
const basename = import_node_path25.default.posix.basename(url.pathname, ext);
|
|
17989
18018
|
const normalized = sanitizeAppIconAssetStem(basename);
|
|
17990
18019
|
if (normalized) {
|
|
17991
18020
|
return normalized;
|
|
@@ -18014,9 +18043,9 @@ function writeTempAppIconVariantFile(objectKey, format, bytes) {
|
|
|
18014
18043
|
if (!bytes) {
|
|
18015
18044
|
throw new Error("App icon variant upload requires bytes or a source file.");
|
|
18016
18045
|
}
|
|
18017
|
-
const tempDir = (0,
|
|
18018
|
-
const tempPath =
|
|
18019
|
-
(0,
|
|
18046
|
+
const tempDir = (0, import_node_fs20.mkdtempSync)(import_node_path25.default.join(import_node_os10.default.tmpdir(), "pmate-app-icon-"));
|
|
18047
|
+
const tempPath = import_node_path25.default.join(tempDir, import_node_path25.default.basename(objectKey) || `variant.${extensionForIconFormat(format)}`);
|
|
18048
|
+
(0, import_node_fs20.writeFileSync)(tempPath, bytes);
|
|
18020
18049
|
return tempPath;
|
|
18021
18050
|
}
|
|
18022
18051
|
|
|
@@ -18226,10 +18255,10 @@ var AppCommandHandler = class {
|
|
|
18226
18255
|
}
|
|
18227
18256
|
readJsonFile(filePath) {
|
|
18228
18257
|
const absolutePath = this.resolveFilePath(filePath);
|
|
18229
|
-
if (!(0,
|
|
18258
|
+
if (!(0, import_node_fs21.existsSync)(absolutePath)) {
|
|
18230
18259
|
throw new Error(`JSON file not found: ${absolutePath}`);
|
|
18231
18260
|
}
|
|
18232
|
-
const raw = (0,
|
|
18261
|
+
const raw = (0, import_node_fs21.readFileSync)(absolutePath, "utf8");
|
|
18233
18262
|
try {
|
|
18234
18263
|
return JSON.parse(raw);
|
|
18235
18264
|
} catch (error) {
|
|
@@ -18239,10 +18268,10 @@ var AppCommandHandler = class {
|
|
|
18239
18268
|
}
|
|
18240
18269
|
async preparePayload(filePath, appRef2) {
|
|
18241
18270
|
const absolutePath = this.resolveFilePath(filePath);
|
|
18242
|
-
return prepareAppPayload(this.readJsonFile(filePath),
|
|
18271
|
+
return prepareAppPayload(this.readJsonFile(filePath), import_node_path26.default.dirname(absolutePath), { appRef: appRef2 });
|
|
18243
18272
|
}
|
|
18244
18273
|
resolveFilePath(filePath) {
|
|
18245
|
-
return
|
|
18274
|
+
return import_node_path26.default.resolve(process.cwd(), filePath);
|
|
18246
18275
|
}
|
|
18247
18276
|
async request(baseUrl, token, method, pathname, body) {
|
|
18248
18277
|
const response = await fetch(`${baseUrl}${pathname}`, {
|
|
@@ -18362,18 +18391,18 @@ function readNamespaceFromPayload(payload) {
|
|
|
18362
18391
|
}
|
|
18363
18392
|
|
|
18364
18393
|
// src/commands/ServiceCommandHandler.ts
|
|
18365
|
-
var
|
|
18394
|
+
var import_node_fs24 = require("fs");
|
|
18366
18395
|
var import_promises5 = require("fs/promises");
|
|
18367
|
-
var
|
|
18396
|
+
var import_node_path29 = __toESM(require("path"));
|
|
18368
18397
|
var import_node_child_process12 = require("child_process");
|
|
18369
18398
|
var import_promises6 = require("readline/promises");
|
|
18370
18399
|
|
|
18371
18400
|
// src/services/AndroidApkReleaseService.ts
|
|
18372
18401
|
var import_node_child_process10 = require("child_process");
|
|
18373
|
-
var
|
|
18374
|
-
var
|
|
18402
|
+
var import_node_crypto6 = require("crypto");
|
|
18403
|
+
var import_node_fs22 = require("fs");
|
|
18375
18404
|
var import_node_os11 = __toESM(require("os"));
|
|
18376
|
-
var
|
|
18405
|
+
var import_node_path27 = __toESM(require("path"));
|
|
18377
18406
|
var ANDROID_APK_BUCKET = "parrot-static";
|
|
18378
18407
|
var ANDROID_APK_PUBLIC_BASE_URL = "https://parrot-static.pmate.chat";
|
|
18379
18408
|
var ANDROID_SIGNING_ENV_KEYS = ["ANDROID_KEYSTORE_BASE64", "ANDROID_KEYSTORE_PASSWORD", "ANDROID_KEY_ALIAS", "ANDROID_KEY_PASSWORD", "ANDROID_SIGNING_CERT_SHA256"];
|
|
@@ -18393,9 +18422,9 @@ function verifyAndroidSigningCertificate(output, expected) {
|
|
|
18393
18422
|
async function signAndroidApk(apkPath, signing) {
|
|
18394
18423
|
const tool = findAndroidSdkTool("apksigner");
|
|
18395
18424
|
if (!tool) throw new Error("Android SDK tool not found: apksigner");
|
|
18396
|
-
const tempDir = (0,
|
|
18397
|
-
const keystorePath =
|
|
18398
|
-
const cleanup = () => (0,
|
|
18425
|
+
const tempDir = (0, import_node_fs22.mkdtempSync)(import_node_path27.default.join(import_node_os11.default.tmpdir(), "pmate-apk-signing-"));
|
|
18426
|
+
const keystorePath = import_node_path27.default.join(tempDir, "signing.keystore");
|
|
18427
|
+
const cleanup = () => (0, import_node_fs22.rmSync)(tempDir, { recursive: true, force: true });
|
|
18399
18428
|
const interrupted = () => {
|
|
18400
18429
|
cleanup();
|
|
18401
18430
|
process.exit(130);
|
|
@@ -18403,7 +18432,7 @@ async function signAndroidApk(apkPath, signing) {
|
|
|
18403
18432
|
process.once("SIGINT", interrupted);
|
|
18404
18433
|
process.once("SIGTERM", interrupted);
|
|
18405
18434
|
try {
|
|
18406
|
-
(0,
|
|
18435
|
+
(0, import_node_fs22.writeFileSync)(keystorePath, signing.keystore, { mode: 384 });
|
|
18407
18436
|
await new Promise((resolve, reject) => {
|
|
18408
18437
|
const child = (0, import_node_child_process10.spawn)(tool, ["sign", "--ks", keystorePath, "--ks-key-alias", signing.alias, "--ks-pass", "env:PMATE_APK_STORE_PASSWORD", "--key-pass", "env:PMATE_APK_KEY_PASSWORD", apkPath], {
|
|
18409
18438
|
env: { ...process.env, PMATE_APK_STORE_PASSWORD: signing.storePassword, PMATE_APK_KEY_PASSWORD: signing.keyPassword },
|
|
@@ -18454,7 +18483,7 @@ var AndroidApkReleaseService = class {
|
|
|
18454
18483
|
ui.warn("Overwriting existing APK object", { objectKey, etag: existing.etag, size: existing.size });
|
|
18455
18484
|
}
|
|
18456
18485
|
const sha256 = await sha256File(apkPath);
|
|
18457
|
-
const size = (0,
|
|
18486
|
+
const size = (0, import_node_fs22.statSync)(apkPath).size;
|
|
18458
18487
|
const artifact = {
|
|
18459
18488
|
serviceId: service.id,
|
|
18460
18489
|
env: options.env,
|
|
@@ -18504,15 +18533,15 @@ var AndroidApkReleaseService = class {
|
|
|
18504
18533
|
minimumVersionCode: options.minimumVersionCode
|
|
18505
18534
|
});
|
|
18506
18535
|
const objectKey = buildAndroidLatestManifestObjectKey(service.namespace, service.name);
|
|
18507
|
-
const tempDir = (0,
|
|
18508
|
-
const manifestPath =
|
|
18536
|
+
const tempDir = (0, import_node_fs22.mkdtempSync)(import_node_path27.default.join(import_node_os11.default.tmpdir(), "pmate-apk-latest-"));
|
|
18537
|
+
const manifestPath = import_node_path27.default.join(tempDir, "latest.json");
|
|
18509
18538
|
try {
|
|
18510
|
-
(0,
|
|
18539
|
+
(0, import_node_fs22.writeFileSync)(manifestPath, `${JSON.stringify(manifest, null, 2)}
|
|
18511
18540
|
`);
|
|
18512
18541
|
await AliyunService.uploadFile(manifestPath, ANDROID_APK_BUCKET, objectKey);
|
|
18513
18542
|
ui.success(`Published Android update manifest ${ANDROID_APK_PUBLIC_BASE_URL}/${objectKey}`);
|
|
18514
18543
|
} finally {
|
|
18515
|
-
(0,
|
|
18544
|
+
(0, import_node_fs22.rmSync)(tempDir, { recursive: true, force: true });
|
|
18516
18545
|
}
|
|
18517
18546
|
}
|
|
18518
18547
|
async list(service, options) {
|
|
@@ -18528,7 +18557,7 @@ var AndroidApkReleaseService = class {
|
|
|
18528
18557
|
const prefix = `apks/${service.namespace}/${service.name}`;
|
|
18529
18558
|
const objects = await AliyunService.listObjects(ANDROID_APK_BUCKET, prefix);
|
|
18530
18559
|
return objects.filter((item) => item.name.endsWith(".apk")).map((item) => {
|
|
18531
|
-
const versionName =
|
|
18560
|
+
const versionName = import_node_path27.default.basename(item.name, ".apk");
|
|
18532
18561
|
return {
|
|
18533
18562
|
serviceId,
|
|
18534
18563
|
env: options.env ?? "unknown",
|
|
@@ -18551,7 +18580,7 @@ var AndroidApkReleaseService = class {
|
|
|
18551
18580
|
}
|
|
18552
18581
|
}
|
|
18553
18582
|
resolveRepoRoot(service, cwd) {
|
|
18554
|
-
if (cwd) return
|
|
18583
|
+
if (cwd) return import_node_path27.default.resolve(process.cwd(), cwd);
|
|
18555
18584
|
const repository = this.getRepository(service);
|
|
18556
18585
|
if (repository) {
|
|
18557
18586
|
return resolveRepositoryLocalRoot(repository);
|
|
@@ -18563,8 +18592,8 @@ var AndroidApkReleaseService = class {
|
|
|
18563
18592
|
if (!dir) {
|
|
18564
18593
|
throw new Error(`Missing dir for android service ${service.id}`);
|
|
18565
18594
|
}
|
|
18566
|
-
const appDir =
|
|
18567
|
-
if (!(0,
|
|
18595
|
+
const appDir = import_node_path27.default.resolve(repoRoot, dir);
|
|
18596
|
+
if (!(0, import_node_fs22.existsSync)(appDir)) {
|
|
18568
18597
|
throw new Error(`Android app dir not found: ${appDir}`);
|
|
18569
18598
|
}
|
|
18570
18599
|
return appDir;
|
|
@@ -18580,11 +18609,11 @@ var AndroidApkReleaseService = class {
|
|
|
18580
18609
|
return void 0;
|
|
18581
18610
|
}
|
|
18582
18611
|
async runGradleAssembleAndFindApk(repoRoot, appDir, variant) {
|
|
18583
|
-
const gradlew = [
|
|
18612
|
+
const gradlew = [import_node_path27.default.join(appDir, "gradlew"), import_node_path27.default.join(repoRoot, "gradlew")].find((candidate) => (0, import_node_fs22.existsSync)(candidate));
|
|
18584
18613
|
if (!gradlew) {
|
|
18585
18614
|
throw new Error(`Gradle wrapper not found in ${appDir} or ${repoRoot}`);
|
|
18586
18615
|
}
|
|
18587
|
-
const gradleCwd =
|
|
18616
|
+
const gradleCwd = import_node_path27.default.dirname(gradlew);
|
|
18588
18617
|
const normalizedVariant = variant.toLowerCase();
|
|
18589
18618
|
const taskSuffix = `assemble${capitalize(normalizedVariant)}`;
|
|
18590
18619
|
const tasks = [`:app:${taskSuffix}`, taskSuffix];
|
|
@@ -18698,7 +18727,7 @@ function resolveRepositoryLocalRoot(repository) {
|
|
|
18698
18727
|
if (!repoName) {
|
|
18699
18728
|
throw new Error(`Invalid repository: ${repository}`);
|
|
18700
18729
|
}
|
|
18701
|
-
return
|
|
18730
|
+
return import_node_path27.default.join(import_node_os11.default.homedir(), "dev", "pmate", repoName);
|
|
18702
18731
|
}
|
|
18703
18732
|
function bumpAndroidGradleVersionText(source, bump) {
|
|
18704
18733
|
const versionNameMatch = source.match(/(^\s*versionName\s+["'])([^"']+)(["']\s*$)/m) ?? source.match(/(^\s*versionName\s*=\s*["'])([^"']+)(["']\s*$)/m);
|
|
@@ -18754,42 +18783,42 @@ function parseGradleOutputMetadata(source, apkFileName) {
|
|
|
18754
18783
|
}
|
|
18755
18784
|
function bumpAndroidProjectVersion(appDir, bump) {
|
|
18756
18785
|
const candidates = [
|
|
18757
|
-
|
|
18758
|
-
|
|
18759
|
-
|
|
18760
|
-
|
|
18786
|
+
import_node_path27.default.join(appDir, "app", "build.gradle.kts"),
|
|
18787
|
+
import_node_path27.default.join(appDir, "app", "build.gradle"),
|
|
18788
|
+
import_node_path27.default.join(appDir, "build.gradle.kts"),
|
|
18789
|
+
import_node_path27.default.join(appDir, "build.gradle")
|
|
18761
18790
|
];
|
|
18762
18791
|
for (const candidate of candidates) {
|
|
18763
|
-
if (!(0,
|
|
18764
|
-
const result = bumpAndroidGradleVersionText((0,
|
|
18765
|
-
(0,
|
|
18792
|
+
if (!(0, import_node_fs22.existsSync)(candidate)) continue;
|
|
18793
|
+
const result = bumpAndroidGradleVersionText((0, import_node_fs22.readFileSync)(candidate, "utf8"), bump);
|
|
18794
|
+
(0, import_node_fs22.writeFileSync)(candidate, result.source);
|
|
18766
18795
|
return { filePath: candidate, ...result };
|
|
18767
18796
|
}
|
|
18768
18797
|
throw new Error(`No Android Gradle version file found under ${appDir}`);
|
|
18769
18798
|
}
|
|
18770
18799
|
function findLatestApk(repoRoot, appDir, variant) {
|
|
18771
18800
|
const dirs = [
|
|
18772
|
-
|
|
18773
|
-
|
|
18774
|
-
|
|
18801
|
+
import_node_path27.default.join(appDir, "app", "build", "outputs", "apk", variant),
|
|
18802
|
+
import_node_path27.default.join(appDir, "build", "outputs", "apk", variant),
|
|
18803
|
+
import_node_path27.default.join(repoRoot, "app", "build", "outputs", "apk", variant)
|
|
18775
18804
|
];
|
|
18776
18805
|
const files = dirs.flatMap((dir) => listApks(dir));
|
|
18777
18806
|
if (files.length === 0) {
|
|
18778
18807
|
throw new Error(`Cannot find APK output for variant ${variant}`);
|
|
18779
18808
|
}
|
|
18780
|
-
files.sort((a, b) => (0,
|
|
18809
|
+
files.sort((a, b) => (0, import_node_fs22.statSync)(b).mtimeMs - (0, import_node_fs22.statSync)(a).mtimeMs);
|
|
18781
18810
|
return files[0];
|
|
18782
18811
|
}
|
|
18783
18812
|
function readGradleOutputMetadata(apkPath) {
|
|
18784
|
-
const metadataPath =
|
|
18785
|
-
if (!(0,
|
|
18813
|
+
const metadataPath = import_node_path27.default.join(import_node_path27.default.dirname(apkPath), "output-metadata.json");
|
|
18814
|
+
if (!(0, import_node_fs22.existsSync)(metadataPath)) {
|
|
18786
18815
|
throw new Error(`Gradle output metadata not found: ${metadataPath}`);
|
|
18787
18816
|
}
|
|
18788
|
-
return parseGradleOutputMetadata((0,
|
|
18817
|
+
return parseGradleOutputMetadata((0, import_node_fs22.readFileSync)(metadataPath, "utf8"), import_node_path27.default.basename(apkPath));
|
|
18789
18818
|
}
|
|
18790
18819
|
function listApks(dir) {
|
|
18791
|
-
if (!(0,
|
|
18792
|
-
return (0,
|
|
18820
|
+
if (!(0, import_node_fs22.existsSync)(dir)) return [];
|
|
18821
|
+
return (0, import_node_fs22.readdirSync)(dir).filter((entry) => entry.endsWith(".apk")).map((entry) => import_node_path27.default.join(dir, entry)).filter((entry) => (0, import_node_fs22.statSync)(entry).isFile());
|
|
18793
18822
|
}
|
|
18794
18823
|
function runCommand(command, args, cwd) {
|
|
18795
18824
|
return new Promise((resolve, reject) => {
|
|
@@ -18823,26 +18852,26 @@ async function runAndroidSdkToolCapture(toolName, args) {
|
|
|
18823
18852
|
return runCommandCapture(toolPath, args);
|
|
18824
18853
|
}
|
|
18825
18854
|
function findAndroidSdkTool(toolName) {
|
|
18826
|
-
const sdkRoots = [process.env.ANDROID_HOME, process.env.ANDROID_SDK_ROOT].filter((item) => Boolean(item)).map((item) =>
|
|
18855
|
+
const sdkRoots = [process.env.ANDROID_HOME, process.env.ANDROID_SDK_ROOT].filter((item) => Boolean(item)).map((item) => import_node_path27.default.resolve(item));
|
|
18827
18856
|
for (const sdkRoot of sdkRoots) {
|
|
18828
|
-
const candidates = toolName === "aapt" || toolName === "apksigner" ? listVersionedToolCandidates(
|
|
18829
|
-
|
|
18830
|
-
...listVersionedToolCandidates(
|
|
18831
|
-
|
|
18857
|
+
const candidates = toolName === "aapt" || toolName === "apksigner" ? listVersionedToolCandidates(import_node_path27.default.join(sdkRoot, "build-tools"), toolName) : [
|
|
18858
|
+
import_node_path27.default.join(sdkRoot, "cmdline-tools", "latest", "bin", toolName),
|
|
18859
|
+
...listVersionedToolCandidates(import_node_path27.default.join(sdkRoot, "cmdline-tools"), import_node_path27.default.join("bin", toolName)),
|
|
18860
|
+
import_node_path27.default.join(sdkRoot, "tools", "bin", toolName)
|
|
18832
18861
|
];
|
|
18833
|
-
const match = candidates.find((candidate) => (0,
|
|
18862
|
+
const match = candidates.find((candidate) => (0, import_node_fs22.existsSync)(candidate));
|
|
18834
18863
|
if (match) return match;
|
|
18835
18864
|
}
|
|
18836
18865
|
return void 0;
|
|
18837
18866
|
}
|
|
18838
18867
|
function listVersionedToolCandidates(parentDir, relativeToolPath) {
|
|
18839
|
-
if (!(0,
|
|
18840
|
-
return (0,
|
|
18868
|
+
if (!(0, import_node_fs22.existsSync)(parentDir)) return [];
|
|
18869
|
+
return (0, import_node_fs22.readdirSync)(parentDir).map((entry) => import_node_path27.default.join(parentDir, entry)).filter((entry) => (0, import_node_fs22.statSync)(entry).isDirectory()).sort((a, b) => import_node_path27.default.basename(b).localeCompare(import_node_path27.default.basename(a), void 0, { numeric: true })).map((entry) => import_node_path27.default.join(entry, relativeToolPath));
|
|
18841
18870
|
}
|
|
18842
18871
|
function sha256File(filePath) {
|
|
18843
18872
|
return new Promise((resolve, reject) => {
|
|
18844
|
-
const hash = (0,
|
|
18845
|
-
const stream = (0,
|
|
18873
|
+
const hash = (0, import_node_crypto6.createHash)("sha256");
|
|
18874
|
+
const stream = (0, import_node_fs22.createReadStream)(filePath);
|
|
18846
18875
|
stream.on("data", (chunk) => hash.update(chunk));
|
|
18847
18876
|
stream.on("error", reject);
|
|
18848
18877
|
stream.on("end", () => resolve(hash.digest("hex")));
|
|
@@ -18945,9 +18974,9 @@ async function requestDeveloperLogTool(tool, params, fetcher = fetch, delegate)
|
|
|
18945
18974
|
}
|
|
18946
18975
|
|
|
18947
18976
|
// src/services/ServiceRuntimeRunner.ts
|
|
18948
|
-
var
|
|
18977
|
+
var import_node_fs23 = require("fs");
|
|
18949
18978
|
var import_node_os12 = __toESM(require("os"));
|
|
18950
|
-
var
|
|
18979
|
+
var import_node_path28 = __toESM(require("path"));
|
|
18951
18980
|
var import_node_child_process11 = require("child_process");
|
|
18952
18981
|
var import_node_readline = require("readline");
|
|
18953
18982
|
var import_chalk3 = __toESM(require("chalk"));
|
|
@@ -19447,14 +19476,14 @@ var ServiceRuntimeRunner = class {
|
|
|
19447
19476
|
}
|
|
19448
19477
|
resolveRepoRoot(service, cwd) {
|
|
19449
19478
|
if (cwd) {
|
|
19450
|
-
return
|
|
19479
|
+
return import_node_path28.default.resolve(process.cwd(), cwd);
|
|
19451
19480
|
}
|
|
19452
19481
|
const repository = this.getType(service) === "vite" || this.getType(service) === "static" ? this.getRepoStaticSite(service).repository.trim() : this.getType(service) === "fc" ? this.getFc(service).repository?.trim() : this.getType(service) === "ios" || this.getType(service) === "android" ? void 0 : this.getNetwork(service).repository?.trim();
|
|
19453
19482
|
if (repository) {
|
|
19454
19483
|
const repoName = repository.replace(/\/+$/, "").split("/").pop()?.replace(/\.git$/i, "");
|
|
19455
19484
|
if (repoName) {
|
|
19456
|
-
const candidate =
|
|
19457
|
-
if ((0,
|
|
19485
|
+
const candidate = import_node_path28.default.join(import_node_os12.default.homedir(), "dev", "pmate", repoName);
|
|
19486
|
+
if ((0, import_node_fs23.existsSync)(candidate)) {
|
|
19458
19487
|
return candidate;
|
|
19459
19488
|
}
|
|
19460
19489
|
}
|
|
@@ -19467,13 +19496,13 @@ var ServiceRuntimeRunner = class {
|
|
|
19467
19496
|
if (!dir) {
|
|
19468
19497
|
throw new Error(`Missing service dir for ${service.id}`);
|
|
19469
19498
|
}
|
|
19470
|
-
return
|
|
19499
|
+
return import_node_path28.default.resolve(repoRoot, dir);
|
|
19471
19500
|
}
|
|
19472
19501
|
async deployVite(service, options) {
|
|
19473
19502
|
this.assertDeployableStaticSite(service);
|
|
19474
19503
|
const appDir = this.resolveLocalDir(service, options.cwd);
|
|
19475
|
-
const packageJsonPath =
|
|
19476
|
-
if (!(0,
|
|
19504
|
+
const packageJsonPath = import_node_path28.default.join(appDir, "package.json");
|
|
19505
|
+
if (!(0, import_node_fs23.existsSync)(packageJsonPath)) {
|
|
19477
19506
|
throw new Error(`No package.json found at ${packageJsonPath}`);
|
|
19478
19507
|
}
|
|
19479
19508
|
const pkg2 = this.loadPackageJson(packageJsonPath);
|
|
@@ -19488,8 +19517,8 @@ var ServiceRuntimeRunner = class {
|
|
|
19488
19517
|
this.resolveRepoRoot(service, options.cwd),
|
|
19489
19518
|
buildEnv
|
|
19490
19519
|
);
|
|
19491
|
-
const distDir =
|
|
19492
|
-
if (!(0,
|
|
19520
|
+
const distDir = import_node_path28.default.join(appDir, "dist");
|
|
19521
|
+
if (!(0, import_node_fs23.existsSync)(distDir)) {
|
|
19493
19522
|
throw new Error(`No dist directory found at ${distDir}`);
|
|
19494
19523
|
}
|
|
19495
19524
|
const site = this.getSite(service);
|
|
@@ -19502,8 +19531,8 @@ var ServiceRuntimeRunner = class {
|
|
|
19502
19531
|
async deployStatic(service, options) {
|
|
19503
19532
|
this.assertDeployableStaticSite(service);
|
|
19504
19533
|
const appDir = this.resolveLocalDir(service, options.cwd);
|
|
19505
|
-
const srcDir =
|
|
19506
|
-
if (!(0,
|
|
19534
|
+
const srcDir = import_node_path28.default.join(appDir, "src");
|
|
19535
|
+
if (!(0, import_node_fs23.existsSync)(srcDir)) {
|
|
19507
19536
|
throw new Error(`No src directory found at ${srcDir}`);
|
|
19508
19537
|
}
|
|
19509
19538
|
const site = this.getSite(service);
|
|
@@ -19537,8 +19566,8 @@ var ServiceRuntimeRunner = class {
|
|
|
19537
19566
|
this.validateFcConfig(service, fc);
|
|
19538
19567
|
const repoRoot = this.resolveRepoRoot(service, options.cwd);
|
|
19539
19568
|
const appDir = this.resolveLocalDir(service, options.cwd);
|
|
19540
|
-
const packageJsonPath =
|
|
19541
|
-
if (!(0,
|
|
19569
|
+
const packageJsonPath = import_node_path28.default.join(appDir, "package.json");
|
|
19570
|
+
if (!(0, import_node_fs23.existsSync)(packageJsonPath)) {
|
|
19542
19571
|
throw new Error(`No package.json found at ${packageJsonPath}`);
|
|
19543
19572
|
}
|
|
19544
19573
|
const pkg2 = this.loadPackageJson(packageJsonPath);
|
|
@@ -19591,15 +19620,15 @@ var ServiceRuntimeRunner = class {
|
|
|
19591
19620
|
const repoRoot = this.resolveRepoRoot(service, options.cwd);
|
|
19592
19621
|
const appDir = this.resolveLocalDir(service, options.cwd);
|
|
19593
19622
|
await this.ensurePnpmWorkspaceRoot(repoRoot);
|
|
19594
|
-
const configPath =
|
|
19595
|
-
if (!(0,
|
|
19623
|
+
const configPath = import_node_path28.default.join(appDir, fc.configFile ?? "s.yaml");
|
|
19624
|
+
if (!(0, import_node_fs23.existsSync)(configPath)) {
|
|
19596
19625
|
throw new Error(`Missing FC config file at ${configPath}`);
|
|
19597
19626
|
}
|
|
19598
|
-
const packageJsonPath =
|
|
19599
|
-
if (!(0,
|
|
19627
|
+
const packageJsonPath = import_node_path28.default.join(appDir, "package.json");
|
|
19628
|
+
if (!(0, import_node_fs23.existsSync)(packageJsonPath)) {
|
|
19600
19629
|
throw new Error(`No package.json found at ${packageJsonPath}`);
|
|
19601
19630
|
}
|
|
19602
|
-
const rawConfig = (0,
|
|
19631
|
+
const rawConfig = (0, import_node_fs23.readFileSync)(configPath, "utf8");
|
|
19603
19632
|
if (!rawConfig.includes(fc.functionName)) {
|
|
19604
19633
|
throw new Error(`FC config ${configPath} does not mention functionName ${fc.functionName}`);
|
|
19605
19634
|
}
|
|
@@ -19889,7 +19918,7 @@ var ServiceRuntimeRunner = class {
|
|
|
19889
19918
|
const serverAddress = await resolveServerAddress(server);
|
|
19890
19919
|
const templateName = exposeType === "websocket" ? "nginx.ws.template" : exposeType === "mixed" ? "nginx.mixed.template" : "nginx.rest.template";
|
|
19891
19920
|
const templatePath = this.resolveTemplatePath(templateName);
|
|
19892
|
-
const template = (0,
|
|
19921
|
+
const template = (0, import_node_fs23.readFileSync)(templatePath, "utf8");
|
|
19893
19922
|
const host = `${subdomain}.${("domain" in network ? network.domain?.trim() : void 0) || "pmate.chat"}`;
|
|
19894
19923
|
const rendered = template.replace(/\$\{\{PORT\}\}/g, String(port)).replace(/\$\{\{HOSTS\}\}/g, host).replace(/\$\{\{HOST\}\}/g, host);
|
|
19895
19924
|
const remotePath = `/etc/nginx/sites-enabled/${subdomain}.conf`;
|
|
@@ -19921,11 +19950,11 @@ var ServiceRuntimeRunner = class {
|
|
|
19921
19950
|
}
|
|
19922
19951
|
if (config.ensurePackageJson) {
|
|
19923
19952
|
const appDir = this.resolveLocalDir(service, options.cwd);
|
|
19924
|
-
const packageJsonPath =
|
|
19925
|
-
if (!(0,
|
|
19953
|
+
const packageJsonPath = import_node_path28.default.join(appDir, "package.json");
|
|
19954
|
+
if (!(0, import_node_fs23.existsSync)(packageJsonPath)) {
|
|
19926
19955
|
throw new Error(`Missing package.json at ${packageJsonPath}`);
|
|
19927
19956
|
}
|
|
19928
|
-
const pkgStat = (0,
|
|
19957
|
+
const pkgStat = (0, import_node_fs23.statSync)(packageJsonPath);
|
|
19929
19958
|
if (!pkgStat.isFile()) {
|
|
19930
19959
|
throw new Error(`package.json is not a file at ${packageJsonPath}`);
|
|
19931
19960
|
}
|
|
@@ -20335,9 +20364,9 @@ var ServiceRuntimeRunner = class {
|
|
|
20335
20364
|
return tokens;
|
|
20336
20365
|
}
|
|
20337
20366
|
readPathValue(source, pathExpr) {
|
|
20338
|
-
const
|
|
20367
|
+
const path33 = pathExpr.split(".").map((segment) => segment.trim()).filter(Boolean);
|
|
20339
20368
|
let cursor = source;
|
|
20340
|
-
for (const segment of
|
|
20369
|
+
for (const segment of path33) {
|
|
20341
20370
|
if (!cursor || typeof cursor !== "object" || Array.isArray(cursor)) {
|
|
20342
20371
|
return void 0;
|
|
20343
20372
|
}
|
|
@@ -20380,12 +20409,12 @@ var ServiceRuntimeRunner = class {
|
|
|
20380
20409
|
}
|
|
20381
20410
|
resolveTemplatePath(templateName) {
|
|
20382
20411
|
const candidates = [
|
|
20383
|
-
|
|
20384
|
-
|
|
20385
|
-
|
|
20412
|
+
import_node_path28.default.join(__dirname, "..", "templates", templateName),
|
|
20413
|
+
import_node_path28.default.join(__dirname, "..", "src", "templates", templateName),
|
|
20414
|
+
import_node_path28.default.join(__dirname, "templates", templateName)
|
|
20386
20415
|
];
|
|
20387
20416
|
for (const candidate of candidates) {
|
|
20388
|
-
if ((0,
|
|
20417
|
+
if ((0, import_node_fs23.existsSync)(candidate)) {
|
|
20389
20418
|
return candidate;
|
|
20390
20419
|
}
|
|
20391
20420
|
}
|
|
@@ -20417,7 +20446,7 @@ var ServiceRuntimeRunner = class {
|
|
|
20417
20446
|
});
|
|
20418
20447
|
}
|
|
20419
20448
|
loadPackageJson(packageJsonPath) {
|
|
20420
|
-
const raw = (0,
|
|
20449
|
+
const raw = (0, import_node_fs23.readFileSync)(packageJsonPath, "utf8");
|
|
20421
20450
|
const parsed = JSON.parse(raw);
|
|
20422
20451
|
if (!parsed || typeof parsed !== "object") {
|
|
20423
20452
|
throw new Error(`Invalid package.json at ${packageJsonPath}`);
|
|
@@ -20426,7 +20455,7 @@ var ServiceRuntimeRunner = class {
|
|
|
20426
20455
|
}
|
|
20427
20456
|
writePackageJson(packageJsonPath, data) {
|
|
20428
20457
|
const serialized = JSON.stringify(data, null, 2);
|
|
20429
|
-
(0,
|
|
20458
|
+
(0, import_node_fs23.writeFileSync)(packageJsonPath, `${serialized}
|
|
20430
20459
|
`, "utf8");
|
|
20431
20460
|
}
|
|
20432
20461
|
validateFcConfig(service, fc) {
|
|
@@ -20453,8 +20482,8 @@ var ServiceRuntimeRunner = class {
|
|
|
20453
20482
|
}
|
|
20454
20483
|
}
|
|
20455
20484
|
async ensurePnpmWorkspaceRoot(repoRoot) {
|
|
20456
|
-
const workspacePath =
|
|
20457
|
-
if (!(0,
|
|
20485
|
+
const workspacePath = import_node_path28.default.join(repoRoot, "pnpm-workspace.yaml");
|
|
20486
|
+
if (!(0, import_node_fs23.existsSync)(workspacePath)) {
|
|
20458
20487
|
throw new Error(`Missing pnpm-workspace.yaml at ${workspacePath}`);
|
|
20459
20488
|
}
|
|
20460
20489
|
}
|
|
@@ -20528,16 +20557,16 @@ var ServiceRuntimeRunner = class {
|
|
|
20528
20557
|
if (!privateKeyPath) {
|
|
20529
20558
|
throw new Error("Missing ssl.prv in ~/.pmate/config.yaml.");
|
|
20530
20559
|
}
|
|
20531
|
-
if (!(0,
|
|
20560
|
+
if (!(0, import_node_fs23.existsSync)(certificatePath)) {
|
|
20532
20561
|
throw new Error(`SSL certificate file not found: ${certificatePath}`);
|
|
20533
20562
|
}
|
|
20534
|
-
if (!(0,
|
|
20563
|
+
if (!(0, import_node_fs23.existsSync)(privateKeyPath)) {
|
|
20535
20564
|
throw new Error(`SSL private key file not found: ${privateKeyPath}`);
|
|
20536
20565
|
}
|
|
20537
20566
|
return {
|
|
20538
20567
|
certName: host,
|
|
20539
|
-
certificate: (0,
|
|
20540
|
-
privateKey: (0,
|
|
20568
|
+
certificate: (0, import_node_fs23.readFileSync)(certificatePath, "utf8"),
|
|
20569
|
+
privateKey: (0, import_node_fs23.readFileSync)(privateKeyPath, "utf8")
|
|
20541
20570
|
};
|
|
20542
20571
|
}
|
|
20543
20572
|
resolveFcProtocol(fc, certConfig) {
|
|
@@ -21013,7 +21042,7 @@ var ServiceCommandHandler = class {
|
|
|
21013
21042
|
format: "dotenv"
|
|
21014
21043
|
}
|
|
21015
21044
|
);
|
|
21016
|
-
const outputPath =
|
|
21045
|
+
const outputPath = import_node_path29.default.resolve(process.cwd(), args.output);
|
|
21017
21046
|
await (0, import_promises5.writeFile)(outputPath, payload.content, "utf8");
|
|
21018
21047
|
ui.success(`Wrote env file for ${args.appId} to ${outputPath}`);
|
|
21019
21048
|
this.renderJson({ ...payload, output: outputPath }, args.json);
|
|
@@ -21239,11 +21268,11 @@ var ServiceCommandHandler = class {
|
|
|
21239
21268
|
return (baseUrl || process.env.PMATE_APPS_API_BASE_URL || "https://apps-api.pmate.chat").replace(/\/+$/, "");
|
|
21240
21269
|
}
|
|
21241
21270
|
readJsonFile(filePath) {
|
|
21242
|
-
const absolutePath =
|
|
21243
|
-
if (!(0,
|
|
21271
|
+
const absolutePath = import_node_path29.default.resolve(process.cwd(), filePath);
|
|
21272
|
+
if (!(0, import_node_fs24.existsSync)(absolutePath)) {
|
|
21244
21273
|
throw new Error(`JSON file not found: ${absolutePath}`);
|
|
21245
21274
|
}
|
|
21246
|
-
const raw = (0,
|
|
21275
|
+
const raw = (0, import_node_fs24.readFileSync)(absolutePath, "utf8");
|
|
21247
21276
|
try {
|
|
21248
21277
|
return JSON.parse(raw);
|
|
21249
21278
|
} catch (error) {
|
|
@@ -22051,9 +22080,9 @@ var RoleCommandHandler = class {
|
|
|
22051
22080
|
};
|
|
22052
22081
|
|
|
22053
22082
|
// src/commands/AccountCommandHandler.ts
|
|
22054
|
-
var
|
|
22055
|
-
var
|
|
22056
|
-
var
|
|
22083
|
+
var import_node_fs25 = require("fs");
|
|
22084
|
+
var import_node_crypto7 = require("crypto");
|
|
22085
|
+
var import_node_path30 = __toESM(require("path"));
|
|
22057
22086
|
init_sessionStore();
|
|
22058
22087
|
var AccountCommandHandler = class {
|
|
22059
22088
|
async handle(args) {
|
|
@@ -22061,9 +22090,9 @@ var AccountCommandHandler = class {
|
|
|
22061
22090
|
case "bot-keygen": {
|
|
22062
22091
|
const keyFile = this.generateBotKeyFile(args.app, args.name);
|
|
22063
22092
|
const outPath = args.out ? this.resolveFilePath(args.out) : this.resolveDefaultBotKeyPath(args.app, args.name);
|
|
22064
|
-
(0,
|
|
22065
|
-
(0,
|
|
22066
|
-
(0,
|
|
22093
|
+
(0, import_node_fs25.mkdirSync)(import_node_path30.default.dirname(outPath), { recursive: true });
|
|
22094
|
+
(0, import_node_fs25.writeFileSync)(outPath, JSON.stringify(keyFile, null, 2), { mode: 384 });
|
|
22095
|
+
(0, import_node_fs25.chmodSync)(outPath, 384);
|
|
22067
22096
|
if (!args.json) {
|
|
22068
22097
|
ui.success(`Bot key saved to ${outPath}`);
|
|
22069
22098
|
}
|
|
@@ -22623,10 +22652,10 @@ var AccountCommandHandler = class {
|
|
|
22623
22652
|
throw new Error("Missing visible apps input");
|
|
22624
22653
|
}
|
|
22625
22654
|
const absolutePath = this.resolveFilePath(args.filePath);
|
|
22626
|
-
if (!(0,
|
|
22655
|
+
if (!(0, import_node_fs25.existsSync)(absolutePath)) {
|
|
22627
22656
|
throw new Error(`JSON file not found: ${absolutePath}`);
|
|
22628
22657
|
}
|
|
22629
|
-
const raw = (0,
|
|
22658
|
+
const raw = (0, import_node_fs25.readFileSync)(absolutePath, "utf8");
|
|
22630
22659
|
let parsed;
|
|
22631
22660
|
try {
|
|
22632
22661
|
parsed = JSON.parse(raw);
|
|
@@ -22640,19 +22669,19 @@ var AccountCommandHandler = class {
|
|
|
22640
22669
|
return parsed;
|
|
22641
22670
|
}
|
|
22642
22671
|
resolveFilePath(filePath) {
|
|
22643
|
-
return
|
|
22672
|
+
return import_node_path30.default.resolve(process.cwd(), filePath);
|
|
22644
22673
|
}
|
|
22645
22674
|
resolveDefaultBotKeyPath(app, name) {
|
|
22646
|
-
return
|
|
22675
|
+
return import_node_path30.default.join(this.homeDir(), ".pmate", "bots", app, `${name}.bot-key.json`);
|
|
22647
22676
|
}
|
|
22648
22677
|
resolveDefaultAccessKeyPath(app, name) {
|
|
22649
|
-
return
|
|
22678
|
+
return import_node_path30.default.join(this.homeDir(), ".pmate", "access-keys", app, `${name}.access-key.json`);
|
|
22650
22679
|
}
|
|
22651
22680
|
homeDir() {
|
|
22652
22681
|
return process.env.HOME || process.env.USERPROFILE || process.cwd();
|
|
22653
22682
|
}
|
|
22654
22683
|
generateBotKeyFile(app, name) {
|
|
22655
|
-
const { publicKey, privateKey } = (0,
|
|
22684
|
+
const { publicKey, privateKey } = (0, import_node_crypto7.generateKeyPairSync)("ed25519");
|
|
22656
22685
|
return {
|
|
22657
22686
|
type: "pmate-bot-key",
|
|
22658
22687
|
version: 1,
|
|
@@ -22666,14 +22695,14 @@ var AccountCommandHandler = class {
|
|
|
22666
22695
|
}
|
|
22667
22696
|
renameDefaultBotKeyFile(app, name, newName) {
|
|
22668
22697
|
const oldPath = this.resolveDefaultBotKeyPath(app, name);
|
|
22669
|
-
if (!(0,
|
|
22698
|
+
if (!(0, import_node_fs25.existsSync)(oldPath)) {
|
|
22670
22699
|
return void 0;
|
|
22671
22700
|
}
|
|
22672
22701
|
const keyFile = this.readBotKeyFile(oldPath, app, name);
|
|
22673
22702
|
const newPath = this.resolveDefaultBotKeyPath(app, newName);
|
|
22674
|
-
(0,
|
|
22675
|
-
(0,
|
|
22676
|
-
(0,
|
|
22703
|
+
(0, import_node_fs25.mkdirSync)(import_node_path30.default.dirname(newPath), { recursive: true, mode: 448 });
|
|
22704
|
+
(0, import_node_fs25.writeFileSync)(newPath, JSON.stringify({ ...keyFile, name: newName }, null, 2));
|
|
22705
|
+
(0, import_node_fs25.chmodSync)(newPath, 384);
|
|
22677
22706
|
return newPath;
|
|
22678
22707
|
}
|
|
22679
22708
|
readBotKeyFile(filePath, expectedApp, expectedName) {
|
|
@@ -22681,10 +22710,10 @@ var AccountCommandHandler = class {
|
|
|
22681
22710
|
throw new Error("Missing bot key file");
|
|
22682
22711
|
}
|
|
22683
22712
|
const absolutePath = this.resolveFilePath(filePath);
|
|
22684
|
-
if (!(0,
|
|
22713
|
+
if (!(0, import_node_fs25.existsSync)(absolutePath)) {
|
|
22685
22714
|
throw new Error(`Bot key file not found: ${absolutePath}`);
|
|
22686
22715
|
}
|
|
22687
|
-
const parsed = JSON.parse((0,
|
|
22716
|
+
const parsed = JSON.parse((0, import_node_fs25.readFileSync)(absolutePath, "utf8"));
|
|
22688
22717
|
if (parsed.type !== "pmate-bot-key" || parsed.version !== 1 || parsed.algorithm !== "ed25519" || !parsed.publicKey || !parsed.privateKey) {
|
|
22689
22718
|
throw new Error(`Invalid PMate bot key file: ${absolutePath}`);
|
|
22690
22719
|
}
|
|
@@ -22701,10 +22730,10 @@ var AccountCommandHandler = class {
|
|
|
22701
22730
|
throw new Error("Missing access key file");
|
|
22702
22731
|
}
|
|
22703
22732
|
const absolutePath = this.resolveFilePath(filePath);
|
|
22704
|
-
if (!(0,
|
|
22733
|
+
if (!(0, import_node_fs25.existsSync)(absolutePath)) {
|
|
22705
22734
|
throw new Error(`Access key file not found: ${absolutePath}`);
|
|
22706
22735
|
}
|
|
22707
|
-
const parsed = JSON.parse((0,
|
|
22736
|
+
const parsed = JSON.parse((0, import_node_fs25.readFileSync)(absolutePath, "utf8"));
|
|
22708
22737
|
if (parsed.type !== "pmate-access-key" || parsed.version !== 1 || !parsed.id || !parsed.app || !parsed.secret || !parsed.expiresAt) {
|
|
22709
22738
|
throw new Error(`Invalid PMate access key file: ${absolutePath}`);
|
|
22710
22739
|
}
|
|
@@ -22726,9 +22755,9 @@ var AccountCommandHandler = class {
|
|
|
22726
22755
|
createdAt: result.key.createdAt
|
|
22727
22756
|
};
|
|
22728
22757
|
const outPath = out ? this.resolveFilePath(out) : this.resolveDefaultAccessKeyPath(result.key.app, result.key.name);
|
|
22729
|
-
(0,
|
|
22730
|
-
(0,
|
|
22731
|
-
(0,
|
|
22758
|
+
(0, import_node_fs25.mkdirSync)(import_node_path30.default.dirname(outPath), { recursive: true });
|
|
22759
|
+
(0, import_node_fs25.writeFileSync)(outPath, JSON.stringify(keyFile, null, 2), { mode: 384 });
|
|
22760
|
+
(0, import_node_fs25.chmodSync)(outPath, 384);
|
|
22732
22761
|
}
|
|
22733
22762
|
renderAccessKeyCreateResult(result, asJson, out) {
|
|
22734
22763
|
if (asJson) {
|
|
@@ -22774,12 +22803,12 @@ var AccountCommandHandler = class {
|
|
|
22774
22803
|
});
|
|
22775
22804
|
}
|
|
22776
22805
|
signBotChallenge(challenge, privateKey) {
|
|
22777
|
-
const key = (0,
|
|
22806
|
+
const key = (0, import_node_crypto7.createPrivateKey)({
|
|
22778
22807
|
key: Buffer.from(privateKey, "base64url"),
|
|
22779
22808
|
format: "der",
|
|
22780
22809
|
type: "pkcs8"
|
|
22781
22810
|
});
|
|
22782
|
-
return (0,
|
|
22811
|
+
return (0, import_node_crypto7.sign)(
|
|
22783
22812
|
null,
|
|
22784
22813
|
Buffer.from(JSON.stringify({
|
|
22785
22814
|
id: challenge.id,
|
|
@@ -22813,8 +22842,8 @@ function encodePathSegment2(value) {
|
|
|
22813
22842
|
}
|
|
22814
22843
|
|
|
22815
22844
|
// src/commands/OrgCommandHandler.ts
|
|
22816
|
-
var
|
|
22817
|
-
var
|
|
22845
|
+
var import_node_fs26 = require("fs");
|
|
22846
|
+
var import_node_path31 = __toESM(require("path"));
|
|
22818
22847
|
init_sessionStore();
|
|
22819
22848
|
var OrgCommandHandler = class {
|
|
22820
22849
|
async handle(args) {
|
|
@@ -22984,11 +23013,11 @@ var OrgCommandHandler = class {
|
|
|
22984
23013
|
if (!filePath) {
|
|
22985
23014
|
throw new Error(`Missing ${itemLabel} input`);
|
|
22986
23015
|
}
|
|
22987
|
-
const absolutePath =
|
|
22988
|
-
if (!(0,
|
|
23016
|
+
const absolutePath = import_node_path31.default.resolve(process.cwd(), filePath);
|
|
23017
|
+
if (!(0, import_node_fs26.existsSync)(absolutePath)) {
|
|
22989
23018
|
throw new Error(`JSON file not found: ${absolutePath}`);
|
|
22990
23019
|
}
|
|
22991
|
-
const raw = (0,
|
|
23020
|
+
const raw = (0, import_node_fs26.readFileSync)(absolutePath, "utf8");
|
|
22992
23021
|
let parsed;
|
|
22993
23022
|
try {
|
|
22994
23023
|
parsed = JSON.parse(raw);
|
|
@@ -23059,9 +23088,9 @@ function encodePathSegment3(value) {
|
|
|
23059
23088
|
}
|
|
23060
23089
|
|
|
23061
23090
|
// src/commands/HostCommandHandler.ts
|
|
23062
|
-
var
|
|
23091
|
+
var import_node_fs27 = require("fs");
|
|
23063
23092
|
var import_node_os13 = require("os");
|
|
23064
|
-
var
|
|
23093
|
+
var import_node_path32 = __toESM(require("path"));
|
|
23065
23094
|
var import_node_child_process14 = require("child_process");
|
|
23066
23095
|
var BLOCK_START = "# >>> pmate host env >>>";
|
|
23067
23096
|
var BLOCK_END = "# <<< pmate host env <<<";
|
|
@@ -26381,7 +26410,7 @@ function requireValue11(tokens, option) {
|
|
|
26381
26410
|
|
|
26382
26411
|
// src/index.ts
|
|
26383
26412
|
var pkg = JSON.parse(
|
|
26384
|
-
(0,
|
|
26413
|
+
(0, import_node_fs28.readFileSync)(import_node_path33.default.resolve(__dirname, "..", "package.json"), "utf8")
|
|
26385
26414
|
);
|
|
26386
26415
|
var HELP_TEXT = [
|
|
26387
26416
|
import_chalk4.default.bold(`pmate v${pkg.version}`),
|