@pmate/cli 0.29.3 → 0.29.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +136 -86
- package/dist/templates/nginx.mixed.template +34 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1043,7 +1043,7 @@ type ServiceCommandArgs = {
|
|
|
1043
1043
|
action: "service-env-expose";
|
|
1044
1044
|
appId: string;
|
|
1045
1045
|
envName: string;
|
|
1046
|
-
exposeType?: "https" | "websocket";
|
|
1046
|
+
exposeType?: "https" | "websocket" | "mixed";
|
|
1047
1047
|
off: boolean;
|
|
1048
1048
|
domain?: string;
|
|
1049
1049
|
baseUrl?: string;
|
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.
|
|
296
|
+
// 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.
|
|
298
|
+
"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.
|
|
303
|
+
// 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.
|
|
305
|
+
"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.
|
|
310
|
+
// 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.
|
|
312
|
+
"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.
|
|
317
|
+
// 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.
|
|
319
|
+
"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.
|
|
324
|
+
// 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.
|
|
326
|
+
"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.
|
|
331
|
+
// 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.
|
|
333
|
+
"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.
|
|
338
|
+
// 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.
|
|
340
|
+
"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.
|
|
345
|
+
// 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.
|
|
347
|
+
"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.
|
|
352
|
+
// 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.
|
|
354
|
+
"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.
|
|
359
|
+
// 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.
|
|
361
|
+
"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.
|
|
366
|
+
// 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.
|
|
368
|
+
"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.
|
|
373
|
+
// 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.
|
|
375
|
+
"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.
|
|
380
|
+
// 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.
|
|
382
|
+
"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.
|
|
387
|
+
// 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.
|
|
389
|
+
"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.
|
|
394
|
+
// 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.
|
|
396
|
+
"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.
|
|
401
|
+
// 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.
|
|
403
|
+
"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.
|
|
408
|
+
// 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.
|
|
411
|
+
"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.
|
|
418
|
+
// 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.
|
|
420
|
+
"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.
|
|
425
|
+
// 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.
|
|
427
|
+
"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.
|
|
432
|
+
// 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.
|
|
434
|
+
"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.
|
|
439
|
+
// 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.
|
|
441
|
+
"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.
|
|
446
|
+
// 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.
|
|
448
|
+
"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.
|
|
453
|
+
// 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.
|
|
455
|
+
"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.
|
|
460
|
+
// 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.
|
|
462
|
+
"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.
|
|
467
|
+
// 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.
|
|
470
|
+
"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.
|
|
492
|
+
// 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.
|
|
494
|
+
"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.
|
|
499
|
+
// 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.
|
|
501
|
+
"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.
|
|
506
|
+
// 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.
|
|
508
|
+
"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.
|
|
513
|
+
// 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.
|
|
515
|
+
"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.
|
|
520
|
+
// 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.
|
|
522
|
+
"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.
|
|
527
|
+
// 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.
|
|
529
|
+
"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.
|
|
564
|
+
// 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.
|
|
566
|
+
"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.
|
|
571
|
+
// 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.
|
|
573
|
+
"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.
|
|
578
|
+
// 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.
|
|
581
|
+
"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.
|
|
667
|
+
// 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.
|
|
669
|
+
"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.
|
|
675
|
+
// 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.
|
|
678
|
+
"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.
|
|
713
|
+
// 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.
|
|
715
|
+
"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,9 +722,9 @@ var init_config = __esm({
|
|
|
722
722
|
}
|
|
723
723
|
});
|
|
724
724
|
|
|
725
|
-
// node_modules/.pnpm/@pmate+meta@1.3.
|
|
725
|
+
// 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.
|
|
727
|
+
"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();
|
|
@@ -18935,7 +18935,7 @@ var ServiceRuntimeRunner = class {
|
|
|
18935
18935
|
...deploy.subdomain ? { subdomain: deploy.subdomain } : {}
|
|
18936
18936
|
};
|
|
18937
18937
|
}
|
|
18938
|
-
const exposeType = deploy.serviceType === "ws" ? "websocket" : "rest";
|
|
18938
|
+
const exposeType = deploy.serviceType === "ws" ? "websocket" : deploy.serviceType === "mixed" ? "mixed" : "rest";
|
|
18939
18939
|
return {
|
|
18940
18940
|
exposeType,
|
|
18941
18941
|
repository: String(deploy.repository ?? ""),
|
|
@@ -19386,12 +19386,12 @@ var ServiceRuntimeRunner = class {
|
|
|
19386
19386
|
if (subdomain && !server) {
|
|
19387
19387
|
throw new Error(`Missing network.server for ${service.id}`);
|
|
19388
19388
|
}
|
|
19389
|
-
if (!["rest", "rpc", "websocket", "internal"].includes(exposeType)) {
|
|
19389
|
+
if (!["rest", "rpc", "websocket", "mixed", "internal"].includes(exposeType)) {
|
|
19390
19390
|
throw new Error(`Invalid network.exposeType for ${service.id}`);
|
|
19391
19391
|
}
|
|
19392
19392
|
if (subdomain) {
|
|
19393
19393
|
const serverAddress = await resolveServerAddress(server);
|
|
19394
|
-
const templateName = exposeType === "websocket" ? "nginx.ws.template" : "nginx.rest.template";
|
|
19394
|
+
const templateName = exposeType === "websocket" ? "nginx.ws.template" : exposeType === "mixed" ? "nginx.mixed.template" : "nginx.rest.template";
|
|
19395
19395
|
const templatePath = this.resolveTemplatePath(templateName);
|
|
19396
19396
|
const template = (0, import_node_fs20.readFileSync)(templatePath, "utf8");
|
|
19397
19397
|
const host = `${subdomain}.${("domain" in network ? network.domain?.trim() : void 0) || "pmate.chat"}`;
|
|
@@ -19472,7 +19472,7 @@ var ServiceRuntimeRunner = class {
|
|
|
19472
19472
|
}
|
|
19473
19473
|
async fetchLogPage(namespace, appName, options) {
|
|
19474
19474
|
const baseUrl = (process.env.INDEXER_BASE_URL || "https://indexer.pmate.chat").replace(/\/$/, "");
|
|
19475
|
-
const chainId =
|
|
19475
|
+
const chainId = resolveLogChainId();
|
|
19476
19476
|
const hasSearch = Boolean(options.search?.trim());
|
|
19477
19477
|
const action = options.history || !hasSearch ? "list" : "search";
|
|
19478
19478
|
const url = new URL(
|
|
@@ -20181,6 +20181,9 @@ var ServiceRuntimeRunner = class {
|
|
|
20181
20181
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
20182
20182
|
}
|
|
20183
20183
|
};
|
|
20184
|
+
function resolveLogChainId(env = process.env) {
|
|
20185
|
+
return env.BLOCKCHAIN_CHAIN_ID?.trim() || "app-log";
|
|
20186
|
+
}
|
|
20184
20187
|
function shellQuote2(value) {
|
|
20185
20188
|
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
20186
20189
|
}
|
|
@@ -20661,7 +20664,7 @@ var ServiceCommandHandler = class {
|
|
|
20661
20664
|
type: service.type === "node-api" ? "node-api" : "node",
|
|
20662
20665
|
sslCert: service.sslCert,
|
|
20663
20666
|
network: {
|
|
20664
|
-
exposeType: env.network?.type === "websocket" ? "websocket" : env.network ? "rest" : "internal",
|
|
20667
|
+
exposeType: env.network?.type === "websocket" ? "websocket" : env.network?.type === "mixed" ? "mixed" : env.network ? "rest" : "internal",
|
|
20665
20668
|
repository,
|
|
20666
20669
|
dir,
|
|
20667
20670
|
server: requireString(runtime.server, `runtime.server for ${service.id} ${env.name}`),
|
|
@@ -20678,7 +20681,7 @@ var ServiceCommandHandler = class {
|
|
|
20678
20681
|
type: service.type === "node-job" ? "node-job" : service.type === "rust" ? "rust" : "python",
|
|
20679
20682
|
sslCert: service.sslCert,
|
|
20680
20683
|
network: {
|
|
20681
|
-
exposeType: env.network?.type === "websocket" ? "websocket" : env.network ? "rest" : "internal",
|
|
20684
|
+
exposeType: env.network?.type === "websocket" ? "websocket" : env.network?.type === "mixed" ? "mixed" : env.network ? "rest" : "internal",
|
|
20682
20685
|
repository,
|
|
20683
20686
|
dir: runtime.cwd?.trim() || dir,
|
|
20684
20687
|
server: requireString(runtime.server, `runtime.server for ${service.id} ${env.name}`),
|
|
@@ -21785,6 +21788,30 @@ var AccountCommandHandler = class {
|
|
|
21785
21788
|
}
|
|
21786
21789
|
return;
|
|
21787
21790
|
}
|
|
21791
|
+
case "bot-rename": {
|
|
21792
|
+
const token = this.readToken();
|
|
21793
|
+
const baseUrl = this.resolveAuthBaseUrl(args.baseUrl);
|
|
21794
|
+
const bot = await this.request(
|
|
21795
|
+
baseUrl,
|
|
21796
|
+
token,
|
|
21797
|
+
"POST",
|
|
21798
|
+
"/accounts/bots/rename",
|
|
21799
|
+
{
|
|
21800
|
+
app: args.app,
|
|
21801
|
+
name: args.name,
|
|
21802
|
+
newName: args.newName
|
|
21803
|
+
}
|
|
21804
|
+
);
|
|
21805
|
+
const migratedKeyPath = this.renameDefaultBotKeyFile(args.app, args.name, args.newName);
|
|
21806
|
+
if (!args.json) {
|
|
21807
|
+
ui.success(`Renamed bot ${args.app}/${args.name} to ${args.newName}`);
|
|
21808
|
+
if (migratedKeyPath) {
|
|
21809
|
+
ui.info(`Bot key copied to ${migratedKeyPath}`);
|
|
21810
|
+
}
|
|
21811
|
+
}
|
|
21812
|
+
this.renderJson(bot, args.json);
|
|
21813
|
+
return;
|
|
21814
|
+
}
|
|
21788
21815
|
case "bot-login": {
|
|
21789
21816
|
const baseUrl = this.resolveAuthBaseUrl(args.baseUrl);
|
|
21790
21817
|
const privateKey = args.privateKey ?? this.readBotKeyFile(args.keyFile, args.app, args.name).privateKey;
|
|
@@ -22146,6 +22173,18 @@ var AccountCommandHandler = class {
|
|
|
22146
22173
|
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
22147
22174
|
};
|
|
22148
22175
|
}
|
|
22176
|
+
renameDefaultBotKeyFile(app, name, newName) {
|
|
22177
|
+
const oldPath = this.resolveDefaultBotKeyPath(app, name);
|
|
22178
|
+
if (!(0, import_node_fs22.existsSync)(oldPath)) {
|
|
22179
|
+
return void 0;
|
|
22180
|
+
}
|
|
22181
|
+
const keyFile = this.readBotKeyFile(oldPath, app, name);
|
|
22182
|
+
const newPath = this.resolveDefaultBotKeyPath(app, newName);
|
|
22183
|
+
(0, import_node_fs22.mkdirSync)(import_node_path27.default.dirname(newPath), { recursive: true, mode: 448 });
|
|
22184
|
+
(0, import_node_fs22.writeFileSync)(newPath, JSON.stringify({ ...keyFile, name: newName }, null, 2));
|
|
22185
|
+
(0, import_node_fs22.chmodSync)(newPath, 384);
|
|
22186
|
+
return newPath;
|
|
22187
|
+
}
|
|
22149
22188
|
readBotKeyFile(filePath, expectedApp, expectedName) {
|
|
22150
22189
|
if (!filePath) {
|
|
22151
22190
|
throw new Error("Missing bot key file");
|
|
@@ -23992,7 +24031,7 @@ function parseServiceEnvDefinitionArgs(appId, tokens) {
|
|
|
23992
24031
|
if (action === "expose") {
|
|
23993
24032
|
const envName = rest.shift();
|
|
23994
24033
|
if (!envName || envName.startsWith("-")) {
|
|
23995
|
-
throw new Error("Usage: service <ns:service> env expose <env> [--type https|websocket] [--domain <domain>] [--off]");
|
|
24034
|
+
throw new Error("Usage: service <ns:service> env expose <env> [--type https|websocket|mixed] [--domain <domain>] [--off]");
|
|
23996
24035
|
}
|
|
23997
24036
|
let exposeType;
|
|
23998
24037
|
let domain;
|
|
@@ -24002,8 +24041,8 @@ function parseServiceEnvDefinitionArgs(appId, tokens) {
|
|
|
24002
24041
|
switch (token) {
|
|
24003
24042
|
case "--type": {
|
|
24004
24043
|
const value = requireValue4(rest, token);
|
|
24005
|
-
if (value !== "https" && value !== "websocket") {
|
|
24006
|
-
throw new Error("--type must be https or
|
|
24044
|
+
if (value !== "https" && value !== "websocket" && value !== "mixed") {
|
|
24045
|
+
throw new Error("--type must be https, websocket, or mixed");
|
|
24007
24046
|
}
|
|
24008
24047
|
exposeType = value;
|
|
24009
24048
|
break;
|
|
@@ -24658,7 +24697,7 @@ function parseAccountArgs(tokens) {
|
|
|
24658
24697
|
if (action === "bot") {
|
|
24659
24698
|
const botAction = rest.shift();
|
|
24660
24699
|
if (!botAction) {
|
|
24661
|
-
throw new Error("Missing account bot action. Use: account bot keygen|create|view|list|login|profile");
|
|
24700
|
+
throw new Error("Missing account bot action. Use: account bot keygen|create|view|list|rename|login|profile");
|
|
24662
24701
|
}
|
|
24663
24702
|
const botProfileAction = botAction === "profile" ? rest.shift() : void 0;
|
|
24664
24703
|
let app;
|
|
@@ -24667,6 +24706,7 @@ function parseAccountArgs(tokens) {
|
|
|
24667
24706
|
let keyFile;
|
|
24668
24707
|
let publicKey;
|
|
24669
24708
|
let privateKey;
|
|
24709
|
+
let newName;
|
|
24670
24710
|
let nickName;
|
|
24671
24711
|
let role2;
|
|
24672
24712
|
let baseUrl2;
|
|
@@ -24694,6 +24734,10 @@ function parseAccountArgs(tokens) {
|
|
|
24694
24734
|
case "--private-key":
|
|
24695
24735
|
privateKey = requireValue6(rest, token);
|
|
24696
24736
|
break;
|
|
24737
|
+
case "--new-name":
|
|
24738
|
+
case "--newName":
|
|
24739
|
+
newName = requireValue6(rest, token);
|
|
24740
|
+
break;
|
|
24697
24741
|
case "--nickname":
|
|
24698
24742
|
case "--nickName":
|
|
24699
24743
|
nickName = requireValue6(rest, token);
|
|
@@ -24740,6 +24784,12 @@ function parseAccountArgs(tokens) {
|
|
|
24740
24784
|
}
|
|
24741
24785
|
return { type: "account" /* Account */, action: "bot-list", app, baseUrl: baseUrl2, json: json2 };
|
|
24742
24786
|
}
|
|
24787
|
+
if (botAction === "rename") {
|
|
24788
|
+
if (!app || !name || !newName) {
|
|
24789
|
+
throw new Error("Usage: account bot rename --app <ns:app> --name <name> --new-name <new-name> [--base-url <url>] [--json]");
|
|
24790
|
+
}
|
|
24791
|
+
return { type: "account" /* Account */, action: "bot-rename", app, name, newName, baseUrl: baseUrl2, json: json2 };
|
|
24792
|
+
}
|
|
24743
24793
|
if (botAction === "login") {
|
|
24744
24794
|
if (!app || !name || !keyFile && !privateKey) {
|
|
24745
24795
|
throw new Error("Usage: account bot login --app <ns:app> --name <name> (--key-file <path> | --private-key <key>) [--base-url <url>] [--json]");
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
server {
|
|
2
|
+
listen 443 ssl http2;
|
|
3
|
+
server_name ${{HOST}};
|
|
4
|
+
ssl_certificate /etc/nginx/ssl/fullchain.crt;
|
|
5
|
+
ssl_certificate_key /etc/nginx/ssl/fullchain.key;
|
|
6
|
+
|
|
7
|
+
ssl_protocols TLSv1.2 TLSv1.3;
|
|
8
|
+
ssl_prefer_server_ciphers on;
|
|
9
|
+
ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384";
|
|
10
|
+
ssl_session_cache shared:SSL:10m;
|
|
11
|
+
ssl_session_tickets off;
|
|
12
|
+
|
|
13
|
+
client_max_body_size 10M;
|
|
14
|
+
|
|
15
|
+
set $pmate_connection "close";
|
|
16
|
+
if ($http_upgrade != "") {
|
|
17
|
+
set $pmate_connection "upgrade";
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
location / {
|
|
21
|
+
proxy_pass http://127.0.0.1:${{PORT}};
|
|
22
|
+
proxy_http_version 1.1;
|
|
23
|
+
proxy_set_header Upgrade $http_upgrade;
|
|
24
|
+
proxy_set_header Connection $pmate_connection;
|
|
25
|
+
proxy_set_header Host $host;
|
|
26
|
+
proxy_cache_bypass $http_upgrade;
|
|
27
|
+
proxy_set_header X-Real-IP $remote_addr;
|
|
28
|
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
29
|
+
proxy_set_header X-Forwarded-Proto $scheme;
|
|
30
|
+
proxy_read_timeout 3600s;
|
|
31
|
+
proxy_send_timeout 3600s;
|
|
32
|
+
send_timeout 3600s;
|
|
33
|
+
}
|
|
34
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pmate/cli",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.5",
|
|
4
4
|
"description": "CLI utilities for the pMate project",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"yaml": "^2.8.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@pmate/meta": "^1.3.
|
|
50
|
+
"@pmate/meta": "^1.3.1",
|
|
51
51
|
"@pmate/utils": "^1.1.4",
|
|
52
52
|
"@types/node": "^25.0.3",
|
|
53
53
|
"@types/pngjs": "^6.0.5",
|