popost 4.6.10 → 4.6.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/README.md +2 -0
  2. package/SKILL.md +4 -2
  3. package/assets/canvas/assets/{dist-C40jmU-w.js → dist-DAI3U0Jz.js} +1 -1
  4. package/assets/canvas/assets/{es-aF1SvUMY.js → es-3zEBH4X5.js} +1 -1
  5. package/assets/canvas/assets/index-Ce4sDSi9.css +1 -0
  6. package/assets/canvas/assets/{index-CxUXSxcb.js → index-Dc4qgNYJ.js} +4 -4
  7. package/assets/canvas/assets/{jszip.min-Bf2BQwaC.js → jszip.min-BwYI3Gs3.js} +1 -1
  8. package/assets/canvas/build-info.json +6 -6
  9. package/assets/canvas/index.html +2 -2
  10. package/dist/cli.js +30435 -27843
  11. package/dist/index.js +30565 -28037
  12. package/dist/types/cloud/account.d.ts +14 -0
  13. package/dist/types/cloud/deliver.d.ts +29 -0
  14. package/dist/types/cloud/entitlement.d.ts +55 -0
  15. package/dist/types/cloud/paid-gate.d.ts +159 -0
  16. package/dist/types/cloud/service.d.ts +68 -23
  17. package/dist/types/commands/update.d.ts +2 -0
  18. package/dist/types/device-login.d.ts +35 -0
  19. package/dist/types/editor/canvas-state.d.ts +1 -1
  20. package/dist/types/editor/handoff.d.ts +10 -3
  21. package/dist/types/editor/http-types.d.ts +4 -1
  22. package/dist/types/editor/routes-cloud.d.ts +4 -3
  23. package/dist/types/install/record.d.ts +15 -0
  24. package/dist/types/providers/api-errors.d.ts +2 -0
  25. package/dist/types/providers/api.d.ts +1 -1
  26. package/dist/types/providers/link.d.ts +2 -0
  27. package/dist/types/runtime.d.ts +38 -0
  28. package/dist/types/update/auto.d.ts +14 -0
  29. package/dist/types/update/check.d.ts +47 -0
  30. package/dist/types/update/install-kind.d.ts +27 -0
  31. package/dist/types/update/npm.d.ts +8 -0
  32. package/dist/types/update/perform.d.ts +64 -0
  33. package/dist/types/update/report.d.ts +7 -0
  34. package/dist/types/update/semver.d.ts +17 -0
  35. package/dist/types/update/session.d.ts +19 -0
  36. package/dist/types/update/state.d.ts +91 -0
  37. package/dist/types/update/verify.d.ts +33 -0
  38. package/dist/types/version.d.ts +1 -1
  39. package/dist/types/video/cache/frames.d.ts +85 -0
  40. package/dist/types/video/cache/holds.d.ts +35 -0
  41. package/dist/types/video/cache/project.d.ts +57 -0
  42. package/dist/types/video/commands/clean.d.ts +9 -0
  43. package/dist/types/video/commands/product.d.ts +15 -0
  44. package/dist/types/video/compile/footage.d.ts +24 -7
  45. package/dist/types/video/compile/index.d.ts +3 -0
  46. package/dist/types/video/generate/index.d.ts +13 -1
  47. package/dist/types/video/preview/cloud.d.ts +20 -1
  48. package/dist/types/video/preview/edit/routes.d.ts +17 -11
  49. package/dist/types/video/preview/export-settings.d.ts +1 -2
  50. package/dist/types/video/preview/project.d.ts +3 -0
  51. package/dist/types/video/preview/shell/dom.d.ts +2 -0
  52. package/dist/types/video/preview/shell/studio/cloud.d.ts +6 -1
  53. package/dist/types/video/preview/shell/studio/compare.d.ts +16 -0
  54. package/dist/types/video/preview/shell/studio/copy.d.ts +24 -3
  55. package/dist/types/video/preview/shell/studio/paid.d.ts +23 -0
  56. package/dist/types/video/preview/shell/studio/style.d.ts +2 -2
  57. package/dist/types/video/preview/shell/studio/workspace.d.ts +2 -0
  58. package/dist/types/video/preview/shell-bundle.d.ts +1 -1
  59. package/dist/types/video/product/requests.d.ts +74 -0
  60. package/dist/types/video/product/review.d.ts +74 -0
  61. package/dist/types/video/product/sheet.d.ts +99 -0
  62. package/dist/types/video/project/schema.d.ts +21 -21
  63. package/dist/types/video/render/index.d.ts +2 -0
  64. package/dist/types/video/render/session.d.ts +4 -0
  65. package/dist/types/video/replication/contract.d.ts +29 -29
  66. package/dist/types/video/replication/production.d.ts +5 -5
  67. package/dist/types/video/replication/schema.d.ts +2 -2
  68. package/dist/types/video/replication/speech-observed.d.ts +6 -6
  69. package/package.json +1 -1
  70. package/references/host-editor.md +21 -6
  71. package/references/image-workflow.md +5 -5
  72. package/references/onboarding.md +20 -0
  73. package/references/post-bundle.md +5 -5
  74. package/references/video-editing.md +19 -7
  75. package/references/video-performers.md +2 -2
  76. package/references/video-product.md +174 -0
  77. package/references/video-replication.md +1 -1
  78. package/references/video-step-1-read.md +5 -0
  79. package/references/video-step-3-content.md +14 -6
  80. package/references/video-step-7-deliver.md +36 -1
  81. package/references/video-tools.md +43 -7
  82. package/references/video.md +5 -0
  83. package/assets/canvas/assets/index-C5rz5H21.css +0 -1
  84. package/dist/types/cloud/auth-flow.d.ts +0 -30
@@ -22,9 +22,9 @@ export declare const evidenceSchema: z.ZodObject<{
22
22
  sha256: z.ZodOptional<z.ZodString>;
23
23
  media: z.ZodOptional<z.ZodEnum<{
24
24
  video: "video";
25
+ frame: "frame";
25
26
  data: "data";
26
27
  audio: "audio";
27
- frame: "frame";
28
28
  }>>;
29
29
  frame: z.ZodOptional<z.ZodNumber>;
30
30
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -33,8 +33,8 @@ export type ReplicationEvidence = z.infer<typeof evidenceSchema>;
33
33
  declare const findingSchema: z.ZodObject<{
34
34
  status: z.ZodEnum<{
35
35
  pending: "pending";
36
- failed: "failed";
37
36
  unknown: "unknown";
37
+ failed: "failed";
38
38
  passed: "passed";
39
39
  }>;
40
40
  evidence: z.ZodArray<z.ZodObject<{
@@ -49,9 +49,9 @@ declare const findingSchema: z.ZodObject<{
49
49
  sha256: z.ZodOptional<z.ZodString>;
50
50
  media: z.ZodOptional<z.ZodEnum<{
51
51
  video: "video";
52
+ frame: "frame";
52
53
  data: "data";
53
54
  audio: "audio";
54
- frame: "frame";
55
55
  }>>;
56
56
  frame: z.ZodOptional<z.ZodNumber>;
57
57
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -61,9 +61,9 @@ export type ReplicationFinding = z.infer<typeof findingSchema>;
61
61
  declare const audioUseSchema: z.ZodObject<{
62
62
  kind: z.ZodEnum<{
63
63
  sound: "sound";
64
+ bed: "bed";
64
65
  speak: "speak";
65
66
  native: "native";
66
- bed: "bed";
67
67
  }>;
68
68
  role: z.ZodEnum<{
69
69
  music: "music";
@@ -90,9 +90,9 @@ declare const audioUseSchema: z.ZodObject<{
90
90
  sha256: z.ZodOptional<z.ZodString>;
91
91
  media: z.ZodOptional<z.ZodEnum<{
92
92
  video: "video";
93
+ frame: "frame";
93
94
  data: "data";
94
95
  audio: "audio";
95
- frame: "frame";
96
96
  }>>;
97
97
  frame: z.ZodOptional<z.ZodNumber>;
98
98
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -127,8 +127,8 @@ export declare const reviewSchema: z.ZodObject<{
127
127
  audio: z.ZodOptional<z.ZodObject<{
128
128
  status: z.ZodEnum<{
129
129
  pending: "pending";
130
- failed: "failed";
131
130
  unknown: "unknown";
131
+ failed: "failed";
132
132
  passed: "passed";
133
133
  }>;
134
134
  evidence: z.ZodArray<z.ZodObject<{
@@ -143,9 +143,9 @@ export declare const reviewSchema: z.ZodObject<{
143
143
  sha256: z.ZodOptional<z.ZodString>;
144
144
  media: z.ZodOptional<z.ZodEnum<{
145
145
  video: "video";
146
+ frame: "frame";
146
147
  data: "data";
147
148
  audio: "audio";
148
- frame: "frame";
149
149
  }>>;
150
150
  frame: z.ZodOptional<z.ZodNumber>;
151
151
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -154,8 +154,8 @@ export declare const reviewSchema: z.ZodObject<{
154
154
  visual: z.ZodOptional<z.ZodObject<{
155
155
  status: z.ZodEnum<{
156
156
  pending: "pending";
157
- failed: "failed";
158
157
  unknown: "unknown";
158
+ failed: "failed";
159
159
  passed: "passed";
160
160
  }>;
161
161
  evidence: z.ZodArray<z.ZodObject<{
@@ -170,9 +170,9 @@ export declare const reviewSchema: z.ZodObject<{
170
170
  sha256: z.ZodOptional<z.ZodString>;
171
171
  media: z.ZodOptional<z.ZodEnum<{
172
172
  video: "video";
173
+ frame: "frame";
173
174
  data: "data";
174
175
  audio: "audio";
175
- frame: "frame";
176
176
  }>>;
177
177
  frame: z.ZodOptional<z.ZodNumber>;
178
178
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -181,8 +181,8 @@ export declare const reviewSchema: z.ZodObject<{
181
181
  events: z.ZodOptional<z.ZodArray<z.ZodObject<{
182
182
  status: z.ZodEnum<{
183
183
  pending: "pending";
184
- failed: "failed";
185
184
  unknown: "unknown";
185
+ failed: "failed";
186
186
  passed: "passed";
187
187
  }>;
188
188
  evidence: z.ZodArray<z.ZodObject<{
@@ -197,9 +197,9 @@ export declare const reviewSchema: z.ZodObject<{
197
197
  sha256: z.ZodOptional<z.ZodString>;
198
198
  media: z.ZodOptional<z.ZodEnum<{
199
199
  video: "video";
200
+ frame: "frame";
200
201
  data: "data";
201
202
  audio: "audio";
202
- frame: "frame";
203
203
  }>>;
204
204
  frame: z.ZodOptional<z.ZodNumber>;
205
205
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -209,9 +209,9 @@ export declare const reviewSchema: z.ZodObject<{
209
209
  audioUses: z.ZodOptional<z.ZodArray<z.ZodObject<{
210
210
  kind: z.ZodEnum<{
211
211
  sound: "sound";
212
+ bed: "bed";
212
213
  speak: "speak";
213
214
  native: "native";
214
- bed: "bed";
215
215
  }>;
216
216
  role: z.ZodEnum<{
217
217
  music: "music";
@@ -238,9 +238,9 @@ export declare const reviewSchema: z.ZodObject<{
238
238
  sha256: z.ZodOptional<z.ZodString>;
239
239
  media: z.ZodOptional<z.ZodEnum<{
240
240
  video: "video";
241
+ frame: "frame";
241
242
  data: "data";
242
243
  audio: "audio";
243
- frame: "frame";
244
244
  }>>;
245
245
  frame: z.ZodOptional<z.ZodNumber>;
246
246
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -293,9 +293,9 @@ export declare const eventSchema: z.ZodObject<{
293
293
  sha256: z.ZodOptional<z.ZodString>;
294
294
  media: z.ZodOptional<z.ZodEnum<{
295
295
  video: "video";
296
+ frame: "frame";
296
297
  data: "data";
297
298
  audio: "audio";
298
- frame: "frame";
299
299
  }>>;
300
300
  frame: z.ZodOptional<z.ZodNumber>;
301
301
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -346,9 +346,9 @@ export declare const contractSchema: z.ZodObject<{
346
346
  sha256: z.ZodOptional<z.ZodString>;
347
347
  media: z.ZodOptional<z.ZodEnum<{
348
348
  video: "video";
349
+ frame: "frame";
349
350
  data: "data";
350
351
  audio: "audio";
351
- frame: "frame";
352
352
  }>>;
353
353
  frame: z.ZodOptional<z.ZodNumber>;
354
354
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -372,9 +372,9 @@ export declare const contractSchema: z.ZodObject<{
372
372
  sha256: z.ZodOptional<z.ZodString>;
373
373
  media: z.ZodOptional<z.ZodEnum<{
374
374
  video: "video";
375
+ frame: "frame";
375
376
  data: "data";
376
377
  audio: "audio";
377
- frame: "frame";
378
378
  }>>;
379
379
  frame: z.ZodOptional<z.ZodNumber>;
380
380
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -392,9 +392,9 @@ export declare const contractSchema: z.ZodObject<{
392
392
  sha256: z.ZodOptional<z.ZodString>;
393
393
  media: z.ZodOptional<z.ZodEnum<{
394
394
  video: "video";
395
+ frame: "frame";
395
396
  data: "data";
396
397
  audio: "audio";
397
- frame: "frame";
398
398
  }>>;
399
399
  frame: z.ZodOptional<z.ZodNumber>;
400
400
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -415,9 +415,9 @@ export declare const contractSchema: z.ZodObject<{
415
415
  sha256: z.ZodOptional<z.ZodString>;
416
416
  media: z.ZodOptional<z.ZodEnum<{
417
417
  video: "video";
418
+ frame: "frame";
418
419
  data: "data";
419
420
  audio: "audio";
420
- frame: "frame";
421
421
  }>>;
422
422
  frame: z.ZodOptional<z.ZodNumber>;
423
423
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -440,9 +440,9 @@ export declare const contractSchema: z.ZodObject<{
440
440
  sha256: z.ZodOptional<z.ZodString>;
441
441
  media: z.ZodOptional<z.ZodEnum<{
442
442
  video: "video";
443
+ frame: "frame";
443
444
  data: "data";
444
445
  audio: "audio";
445
- frame: "frame";
446
446
  }>>;
447
447
  frame: z.ZodOptional<z.ZodNumber>;
448
448
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -493,9 +493,9 @@ export declare const contractSchema: z.ZodObject<{
493
493
  sha256: z.ZodOptional<z.ZodString>;
494
494
  media: z.ZodOptional<z.ZodEnum<{
495
495
  video: "video";
496
+ frame: "frame";
496
497
  data: "data";
497
498
  audio: "audio";
498
- frame: "frame";
499
499
  }>>;
500
500
  frame: z.ZodOptional<z.ZodNumber>;
501
501
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -516,9 +516,9 @@ export declare const contractSchema: z.ZodObject<{
516
516
  sha256: z.ZodOptional<z.ZodString>;
517
517
  media: z.ZodOptional<z.ZodEnum<{
518
518
  video: "video";
519
+ frame: "frame";
519
520
  data: "data";
520
521
  audio: "audio";
521
- frame: "frame";
522
522
  }>>;
523
523
  frame: z.ZodOptional<z.ZodNumber>;
524
524
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -541,8 +541,8 @@ export declare const contractSchema: z.ZodObject<{
541
541
  audio: z.ZodOptional<z.ZodObject<{
542
542
  status: z.ZodEnum<{
543
543
  pending: "pending";
544
- failed: "failed";
545
544
  unknown: "unknown";
545
+ failed: "failed";
546
546
  passed: "passed";
547
547
  }>;
548
548
  evidence: z.ZodArray<z.ZodObject<{
@@ -557,9 +557,9 @@ export declare const contractSchema: z.ZodObject<{
557
557
  sha256: z.ZodOptional<z.ZodString>;
558
558
  media: z.ZodOptional<z.ZodEnum<{
559
559
  video: "video";
560
+ frame: "frame";
560
561
  data: "data";
561
562
  audio: "audio";
562
- frame: "frame";
563
563
  }>>;
564
564
  frame: z.ZodOptional<z.ZodNumber>;
565
565
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -568,8 +568,8 @@ export declare const contractSchema: z.ZodObject<{
568
568
  visual: z.ZodOptional<z.ZodObject<{
569
569
  status: z.ZodEnum<{
570
570
  pending: "pending";
571
- failed: "failed";
572
571
  unknown: "unknown";
572
+ failed: "failed";
573
573
  passed: "passed";
574
574
  }>;
575
575
  evidence: z.ZodArray<z.ZodObject<{
@@ -584,9 +584,9 @@ export declare const contractSchema: z.ZodObject<{
584
584
  sha256: z.ZodOptional<z.ZodString>;
585
585
  media: z.ZodOptional<z.ZodEnum<{
586
586
  video: "video";
587
+ frame: "frame";
587
588
  data: "data";
588
589
  audio: "audio";
589
- frame: "frame";
590
590
  }>>;
591
591
  frame: z.ZodOptional<z.ZodNumber>;
592
592
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -595,8 +595,8 @@ export declare const contractSchema: z.ZodObject<{
595
595
  events: z.ZodOptional<z.ZodArray<z.ZodObject<{
596
596
  status: z.ZodEnum<{
597
597
  pending: "pending";
598
- failed: "failed";
599
598
  unknown: "unknown";
599
+ failed: "failed";
600
600
  passed: "passed";
601
601
  }>;
602
602
  evidence: z.ZodArray<z.ZodObject<{
@@ -611,9 +611,9 @@ export declare const contractSchema: z.ZodObject<{
611
611
  sha256: z.ZodOptional<z.ZodString>;
612
612
  media: z.ZodOptional<z.ZodEnum<{
613
613
  video: "video";
614
+ frame: "frame";
614
615
  data: "data";
615
616
  audio: "audio";
616
- frame: "frame";
617
617
  }>>;
618
618
  frame: z.ZodOptional<z.ZodNumber>;
619
619
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -623,9 +623,9 @@ export declare const contractSchema: z.ZodObject<{
623
623
  audioUses: z.ZodOptional<z.ZodArray<z.ZodObject<{
624
624
  kind: z.ZodEnum<{
625
625
  sound: "sound";
626
+ bed: "bed";
626
627
  speak: "speak";
627
628
  native: "native";
628
- bed: "bed";
629
629
  }>;
630
630
  role: z.ZodEnum<{
631
631
  music: "music";
@@ -652,9 +652,9 @@ export declare const contractSchema: z.ZodObject<{
652
652
  sha256: z.ZodOptional<z.ZodString>;
653
653
  media: z.ZodOptional<z.ZodEnum<{
654
654
  video: "video";
655
+ frame: "frame";
655
656
  data: "data";
656
657
  audio: "audio";
657
- frame: "frame";
658
658
  }>>;
659
659
  frame: z.ZodOptional<z.ZodNumber>;
660
660
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -13,9 +13,9 @@ export declare const audioSchema: z.ZodObject<{
13
13
  sha256: z.ZodString;
14
14
  kind: z.ZodEnum<{
15
15
  sound: "sound";
16
+ bed: "bed";
16
17
  speak: "speak";
17
18
  native: "native";
18
- bed: "bed";
19
19
  }>;
20
20
  role: z.ZodEnum<{
21
21
  music: "music";
@@ -42,9 +42,9 @@ export declare const audioSchema: z.ZodObject<{
42
42
  sha256: z.ZodOptional<z.ZodString>;
43
43
  media: z.ZodOptional<z.ZodEnum<{
44
44
  video: "video";
45
+ frame: "frame";
45
46
  data: "data";
46
47
  audio: "audio";
47
- frame: "frame";
48
48
  }>>;
49
49
  frame: z.ZodOptional<z.ZodNumber>;
50
50
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -92,9 +92,9 @@ export declare const planSchema: z.ZodObject<{
92
92
  sha256: z.ZodOptional<z.ZodString>;
93
93
  media: z.ZodOptional<z.ZodEnum<{
94
94
  video: "video";
95
+ frame: "frame";
95
96
  data: "data";
96
97
  audio: "audio";
97
- frame: "frame";
98
98
  }>>;
99
99
  frame: z.ZodOptional<z.ZodNumber>;
100
100
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -113,9 +113,9 @@ export declare const planSchema: z.ZodObject<{
113
113
  sha256: z.ZodOptional<z.ZodString>;
114
114
  media: z.ZodOptional<z.ZodEnum<{
115
115
  video: "video";
116
+ frame: "frame";
116
117
  data: "data";
117
118
  audio: "audio";
118
- frame: "frame";
119
119
  }>>;
120
120
  frame: z.ZodOptional<z.ZodNumber>;
121
121
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -141,9 +141,9 @@ export declare const planSchema: z.ZodObject<{
141
141
  sha256: z.ZodOptional<z.ZodString>;
142
142
  media: z.ZodOptional<z.ZodEnum<{
143
143
  video: "video";
144
+ frame: "frame";
144
145
  data: "data";
145
146
  audio: "audio";
146
- frame: "frame";
147
147
  }>>;
148
148
  frame: z.ZodOptional<z.ZodNumber>;
149
149
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -30,7 +30,7 @@ export declare const replicationSchema: (only?: string) => {
30
30
  detail: string;
31
31
  file?: string | undefined;
32
32
  sha256?: string | undefined;
33
- media?: "video" | "data" | "audio" | "frame" | undefined;
33
+ media?: "video" | "frame" | "data" | "audio" | undefined;
34
34
  frame?: number | undefined;
35
35
  at?: [number, number] | undefined;
36
36
  }[];
@@ -47,7 +47,7 @@ export declare const replicationSchema: (only?: string) => {
47
47
  detail: string;
48
48
  file?: string | undefined;
49
49
  sha256?: string | undefined;
50
- media?: "video" | "data" | "audio" | "frame" | undefined;
50
+ media?: "video" | "frame" | "data" | "audio" | undefined;
51
51
  frame?: number | undefined;
52
52
  at?: [number, number] | undefined;
53
53
  };
@@ -5,13 +5,13 @@ import type { Problem } from '../types';
5
5
  export declare const OBSERVED_SPEECH = ".speech-observed.json";
6
6
  export declare const speechObservationReviewSchema: z.ZodObject<{
7
7
  words: z.ZodEnum<{
8
- failed: "failed";
9
8
  unknown: "unknown";
9
+ failed: "failed";
10
10
  passed: "passed";
11
11
  }>;
12
12
  articulation: z.ZodEnum<{
13
- failed: "failed";
14
13
  unknown: "unknown";
14
+ failed: "failed";
15
15
  passed: "passed";
16
16
  }>;
17
17
  evidence: z.ZodArray<z.ZodObject<{
@@ -26,9 +26,9 @@ export declare const speechObservationReviewSchema: z.ZodObject<{
26
26
  sha256: z.ZodOptional<z.ZodString>;
27
27
  media: z.ZodOptional<z.ZodEnum<{
28
28
  video: "video";
29
+ frame: "frame";
29
30
  data: "data";
30
31
  audio: "audio";
31
- frame: "frame";
32
32
  }>>;
33
33
  frame: z.ZodOptional<z.ZodNumber>;
34
34
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
@@ -53,13 +53,13 @@ declare const observedSchema: z.ZodObject<{
53
53
  spansSeconds: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
54
54
  review: z.ZodOptional<z.ZodObject<{
55
55
  words: z.ZodEnum<{
56
- failed: "failed";
57
56
  unknown: "unknown";
57
+ failed: "failed";
58
58
  passed: "passed";
59
59
  }>;
60
60
  articulation: z.ZodEnum<{
61
- failed: "failed";
62
61
  unknown: "unknown";
62
+ failed: "failed";
63
63
  passed: "passed";
64
64
  }>;
65
65
  evidence: z.ZodArray<z.ZodObject<{
@@ -74,9 +74,9 @@ declare const observedSchema: z.ZodObject<{
74
74
  sha256: z.ZodOptional<z.ZodString>;
75
75
  media: z.ZodOptional<z.ZodEnum<{
76
76
  video: "video";
77
+ frame: "frame";
77
78
  data: "data";
78
79
  audio: "audio";
79
- frame: "frame";
80
80
  }>>;
81
81
  frame: z.ZodOptional<z.ZodNumber>;
82
82
  at: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "popost",
3
- "version": "4.6.10",
3
+ "version": "4.6.11",
4
4
  "description": "popost Skill and CLI: reproduce videos, create and reproduce image posts, edit canvas and Studio projects, and save social inspiration links in coding agents such as Codex and Claude Code.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "CLIPCAT AI LTD",
@@ -44,12 +44,27 @@ WorkBuddy 会在一次普通命令调用结束后切断它启动的进程对工
44
44
 
45
45
  `present --cloud auto|off`(默认 `auto`)控制交付和云端保存。`present` 返回的 `transport` 表示打开哪种画布,`cloud` 描述云端结果。
46
46
 
47
- - 配置了 Popost API Key 的用户会在「我的资产 → 我的项目」看到同步后的作品。复刻作品带有本地排版参考时,`open.url` 保留本地画布以展示复刻对比,`cloud.webUrl` 仍可查看已同步资产;其他作品直接打开 `open.url`。如果侧栏出现登录页,用户用 Key 所属的账号登录后会回到这个作品。网页编辑保存在该账号的项目中。
48
- - 没有 Key 时,打开本地画布。`cloud.mode` 是 `anonymous`。右上角「保存到云端」的悬停提示为「在popost网页端管理你的所有资产」。点击后先保存当前编辑,再打开 popost.ai。用户登录并确认后,网站将一次性上传凭证通过回调交给本地服务,上传完成后可打开云端项目。弹窗被拦截时,按钮旁会提供可复制的登录链接。
49
- - Key 校验或同步失败时,打开本地画布。`cloud.error` 提供失败原因。默认通过本地画布的「保存到云端」重新登录并上传。网页上有更新且本地也有新改动时,先确认要保留哪一版。只有用户明确选择覆盖网页修改时,才运行 `popost cloud push --dir P --force`。
50
- - 默认保留右上角「保存到云端 / 同步」入口,使用 `--cloud auto`。本地 Agent、内嵌侧栏、未登录或云同步失败都不是关闭该入口的理由;失败时使用默认本地回退和浏览器登录。只有用户明确要求关闭云保存时才使用 `--cloud off`,它会隐藏云同步入口,只打开本地画布。`serve` 是显式启动本地服务的命令,默认按原有 Key 或登录方式保存到云端,也可用 `--cloud login` 只启用浏览器登录。
47
+ - 已连接账号(API Key 或 `popost auth login` 的设备连接)且账号的「云端同步」开关打开时,完成的作品会自动同步到「我的资产 → 我的项目」,不管有没有打开过编辑器:`export --final` 在导出完成后同步一次,输出里的 `cloud` 是 `{state:"saved", webUrl}`、`{state:"failed", error}` 或 `{state:"paused", manageUrl}`;同步失败不影响导出和退出码(`export --final --cloud off` 不同步)。在你打开的编辑器里继续修改,保存后 3 秒也会自动同步。
48
+ - 「云端同步」开关在 popost.ai 的「连接与 API Key」页面,按账号生效,默认打开。关闭后 Skill 什么都不同步:`present` 打开本地画布,`cloud.mode` 是 `paused`,右上角显示「云端同步已关闭」,点击打开 `cloud.manageUrl`(悬停提示「如需开启请到平台「连接与 API Key」处设置打开」);`popost cloud push` 返回 `CLOUD_SYNC_OFF`。这是用户的选择:告诉用户一次在哪里打开,不要换别的方式上传。
49
+ - 已连接且开关打开的用户会在「我的资产 → 我的项目」看到同步后的作品。复刻作品带有本地排版参考时,`open.url` 保留本地画布以展示复刻对比,`cloud.webUrl` 仍可查看已同步资产;其他作品直接打开 `open.url`。如果侧栏出现登录页,用户用 Key 所属的账号登录后会回到这个作品。网页编辑保存在该账号的项目中。
50
+ - 没有连接账号时,打开本地画布。`cloud.mode` 是 `anonymous`。右上角「保存到云端」的悬停提示为「在popost网页端管理你的所有资产」。点击后先保存当前编辑,再发起完整的账号连接(和 `popost auth login` 同一套设备授权,同一个待确认请求):由本机的 `popost` 服务在系统浏览器里打开 popost.ai 的授权页(`/workspace/device?code=…`,已带上设备码;和 `popost auth login` 一样,不在 Agent 侧栏里打开),按钮旁显示设备码和「复制链接」;服务打不开浏览器时显示可复制的授权链接,没有这项能力的宿主仍由编辑器自己开一个新窗口。用户登录并点允许后,连接保存到本机(`popost auth login` 用的同一个位置),账号的云端同步开关被打开,作品开始同步,按钮变为「已打开云端同步」(悬停提示「如需取消请到平台「连接与 API Key」处设置关闭」),旁边的「打开」进入云端项目。用户拒绝或设备码过期时按钮会说明,点「重试」重新发起。没有可持久保存的用户目录的宿主,或设置了 `POPOST_API_KEY` 环境变量时,按钮会说明这里不能连接账号。
51
+ - Key 校验或同步失败时,打开本地画布。`cloud.error` 提供失败原因。默认通过本地画布的「保存到云端」重新连接账号并同步。网页上有更新且本地也有新改动时,先确认要保留哪一版。只有用户明确选择覆盖网页修改时,才运行 `popost cloud push --dir P --force`。
52
+ - 默认保留右上角「保存到云端 / 同步」入口,使用 `--cloud auto`。本地 Agent、内嵌侧栏、未连接账号或云同步失败都不是关闭该入口的理由;失败时使用默认本地回退和账号连接。只有用户明确要求关闭云保存时才使用 `--cloud off`,它会隐藏云同步入口,只打开本地画布。`serve` 是显式启动本地服务的命令,默认按已连接的账号同步,没有账号时由按钮连接;`--cloud login` 让服务先不使用已有的 Key,直到用户从按钮连接了账号。
51
53
 
52
- 同一个 `projectId` 在同一个账号下复用云端项目。网页修改后再次打开时,已在同一账号同步过、且本地导出内容未变的作品会直接打开网页版本。网页保存会更新云端项目;本地工程和离线导出仍基于本地文件。不要在聊天里向用户索要 Key、拼接登录地址或转发上传凭证。`.popost-editor/cloud.json` 仅记录同步结果、账号标识的哈希、内容指纹及上传索引,不进入工程 ZIP。网页版 Agent 沙箱使用宿主自带的画布。本机浏览器才能接收本地授权回调。远程宿主可用配置 Key 的方式打开和同步项目。
54
+ 同一个 `projectId` 在同一个账号下复用云端项目。网页修改后再次打开时,已在同一账号同步过、且本地导出内容未变的作品会直接打开网页版本。网页保存会更新云端项目;本地工程和离线导出仍基于本地文件。不要在聊天里向用户索要 Key、自己拼接授权地址或转发任何凭证;设备码可以告诉用户,它只用于核对。`.popost-editor/cloud.json` 仅记录同步结果、账号标识的哈希、内容指纹及上传索引,不进入工程 ZIP。网页版 Agent 沙箱使用宿主自带的画布。从按钮连接账号需要本机能保存连接(桌面环境);远程宿主用配置 Key 的方式打开和同步项目。
55
+
56
+ ## 付费导出项(图文画布和视频 Studio)
57
+
58
+ 本地画布导出面板里的付费项是 1× 以上的分辨率和 SVG / PSD / PDF;视频 Studio 导出里是 1080p 以上的分辨率(现在是 4K)。它们带一个锁的标记,由编辑器自己处理,不需要 Agent 介入:
59
+
60
+ - 账号已连接且是付费套餐:没有锁,直接选。
61
+ - 账号已连接、免费套餐:点付费项后在原位出现「该功能为付费权益」和「查看套餐」。点击后由本机的 `popost` 服务在**系统浏览器**里打开套餐页(`<站点>/<语言>/pricing`),不在 Agent 侧栏里打开,因为侧栏里用户没有登录。服务打不开浏览器时(远程主机、无桌面),原位显示可复制的链接。用户付款后回到编辑器,不用刷新:窗口重新获得焦点时,以及提示打开期间每隔几秒,编辑器会重新确认套餐,然后解锁并自动选中用户刚才点的那一项。
62
+ - 账号未连接:提示先连接账号,「连接账号」发起和右上角「保存到云端」同一套设备授权(同一个待确认请求,授权页同样由本机服务在系统浏览器里打开,原位显示设备码和可复制的链接)。用户允许后自动继续:付费套餐直接选中,免费套餐转为上面的套餐提示。
63
+ - 整个过程中导出面板保持打开,已选的页面、格式、分辨率、文件名都不变。
64
+
65
+ Agent 该怎么说、怎么做:告诉用户「点一下带锁的选项,按提示连接账号或查看套餐,页面会在你的浏览器里打开」。**不要**用侧栏、内置浏览器或浏览器自动化工具打开套餐页或授权页,不要自己拼这些地址,也不要替用户判断套餐;用户问「我付费了为什么还锁着」时,让他点一下带锁的选项或切回编辑器窗口,编辑器会重新确认。`--cloud off` 时编辑器里不能连接账号,提示会改为让用户运行 `popost auth login`。
66
+
67
+ 服务接口(本机回环,写操作校验来源):`GET /api/export-options?lang=zh|en[&fresh=1]` 返回 `{ state: "unknown"|"free"|"paid", connected, premium, verified, tier?, pricingUrl, canOpenExternal, canConnect }`(`premium`、`verified` 是旧字段,保留);`POST /api/open-pricing {lang}` 让服务打开套餐页并返回 `{ opened, url }`,地址只由服务按已配置的站点和语言生成,请求里的任何地址都不会被打开;`POST /api/cloud/start`(Studio 是 `/api/studio/cloud/start`)带 `open: true` 时由服务打开授权页并返回 `opened`。套餐读自 `GET /me`(`plan.premiumExport`;旧服务端没有这个字段时,档位不是 `free` 即视为包含),每个凭证缓存几分钟,`fresh=1` 重新读取(最多每 2 秒一次)。
53
68
 
54
69
  ## 编辑器兼容与恢复
55
70
 
@@ -59,6 +74,6 @@ WorkBuddy 会在一次普通命令调用结束后切断它启动的进程对工
59
74
 
60
75
  ### Local canvas tools
61
76
 
62
- The installed Skill uses the same editing canvas and export panel as the web workbench. Export selected pages as PNG, JPG, SVG, PSD, HTML, or PDF, with a file name and resolution of your choice. Standard PNG, JPG and HTML export runs locally. Premium formats and higher resolutions show the same entitlement icon and upgrade prompt as the web workbench; signed-in paid accounts are checked through the public account endpoint. The CLI `export --final` still uses the reviewed PNGs.
77
+ The installed Skill uses the same editing canvas and export panel as the web workbench. Export selected pages as PNG, JPG, SVG, PSD, HTML, or PDF, with a file name and resolution of your choice. Standard PNG, JPG and HTML export runs locally. Premium formats and higher resolutions carry a lock until the connected account is on a paid plan; clicking one connects the account or opens the plans in the system browser, as described in 「付费导出项」 above. The CLI `export --final` still uses the reviewed PNGs.
63
78
 
64
79
  For side-by-side comparison, register the original post images as layout references in page order (`reference --role layout` or `setup.references`). If you assign a reference to a page ID, it follows that page when reordered. Images that are only product, style or concept inputs are not used as comparison pages. The local asset tab reads images from the current project.
@@ -16,7 +16,7 @@ Read this for image-post creation, replication and editing, after selecting the
16
16
  6. **制作并导入素材。** 需要摄影、插画、材质时使用真实模型能力;文字、表格、图表与简单结构由 HTML/CSS/可控矢量承担。生成前读 [imagery.md](imagery.md) 与 [providers.md](providers.md)。正式素材的生成不计入“一次内部构图参考”额度,仍需相应费用授权。互不依赖的素材全部 prepare 后一起报价、一起运行(`image quote --all`、`image run --all-quoted --confirm`,同时生成),不要逐个来;`setup` 已经替你 prepare 并报价。计划与费用已有有效授权后用 `image run ... --no-wait` 发出(几张图一起:`--quote-id q1,q2` 或 `--all-quoted`),它立即返回(退出码 4,`pending`,已扣费),随即去写页面 HTML:图在生成,页面同时在写;第一次 `render` 之前再运行同一条 `image run`(不带 `--no-wait` 时等图到)或 `image status --id ID`(看一眼)取图,不会重复发送或扣费。只有手上就这一张图要等、没有别的事可做时,才不带 `--no-wait` 直接等。图的扩展名要等图到了才知道(不透明图是 `.jpg`,带透明通道的是 `.png`,其他 provider 可能不同):等任务结束后 `ls assets/` 核对文件名,把猜错扩展名的页面改对,再做第一次 `render`。用户给的商品照带着不合设计的背景时,先读 [imagery.md](imagery.md) 的商品照规则,不要用 CSS 去遮背景。
17
17
  7. **完成活字 HTML。** 每页的 HTML 一次写完整,不先写骨架再逐块补。每页一个 `.post`/`.page`,固定画幅;每个独立可移动语义单元有唯一 `data-layer-id`,文字叶子用 `data-slot`。坐标以页面 HTML 为权威,工程 JSON 不复制运行时布局。图片与字体用工程内相对路径;已装字体由每页 `<head>` 里的 `<link rel="stylesheet" href="../css/<角色>.css">` 引入,这些 link 由 CLI 维护(`setup`、`font install`、`render` 都会补上,输出里的 `fontLinks.linked` / `fontLinksRestored` 列出补了哪几页):不要自己写或改字体 `<link>`,整页重写后漏了也会在下一次 `render` 或 `font install` 时补回。字体规则见 [fonts.md](fonts.md)。改页面时整页重写(用写文件工具,保留 `<head>`),不要对压成一行的 HTML 连环 `sed -i`,一处 `sed` 写错就破坏整页;想知道页面哪里错了,运行 `popost page check --dir P`(或直接看 `render` 输出里的 `problems`),不要用 `sed -n`、`tail`、`od`、`cat -A` 去一段段读文件,每一次读都是一整轮模型调用;要读多个文件,合成一条命令。公共字库与两端编辑器菜单都由 `<skill>/assets/fonts/palette.json` 驱动,必须从库中选用并安装实际字体;按内容检查字形覆盖。
18
18
  8. **看图和检查。** `render` 之后用 `sheet --dir P --compare` 一张图看完整篇:每页一格并标页 id,多页即整组缩略图,复刻时参考排在上一行、成品在下一行。只有要核对细节(小字、商品还原、手机阅读尺度)时,才单独打开某一页 PNG。打开的每张图都会留在对话里,让之后的每一步更慢,所以先看总览,再按需看单页。按 [quality-review.md](quality-review.md) 修正并记录逐页与整组审核。技术检查证明工程可运行,实际看图判断信息、审美与还原效果。
19
- 9. **交付编辑器。** 运行 `present --dir P --host <当前宿主>`,实际调用宿主工具把返回的 `open.url` 打开在聊天旁的侧栏。Codex 使用返回的 `open_in_codex` 操作,其他 Agent 见 [宿主侧栏与交付协议](host-editor.md)。`transport=web-http` 时,作品已同步到 Key 所属账号的「我的资产 → 我的项目」,直接打开网页版画布。遇到登录页时,请用户使用 Key 对应的 Popost 账号登录,登录后继续进入作品。`transport=loopback-http` 时,打开本地画布,并告诉用户可以用右上角的「保存到云端」登录后上传(`cloud.mode=anonymous`)。有 `cloud.error` 时说明为什么打开了本地画布;遇到网页版本冲突,保留各自的改动,等待用户选择。不要在聊天里索要 Key。确认作品、文字/图片和编辑入口已加载,再告诉用户画布已打开,并交付 PNG 与完整工程。画布是图文交付的一部分,不是可选项:由你主动在侧栏打开(不要让用户自己去找),最终回复里必须写出画布的可点击链接(`open.url`),和 PNG、工程 ZIP 一起交付;页面显示报错或 JSON(如 `{"ok":false,…}`)不算画布已打开,先按 [host-editor.md](host-editor.md) 排查再交付。编辑器升级或集成变更时验证编辑、保存、重开、下载与 ZIP 恢复。内部参考、提示、审核资料留在制作工程,不额外交付 Replay、图层展开展示或 PPTX。
19
+ 9. **交付编辑器。** 运行 `present --dir P --host <当前宿主>`,实际调用宿主工具把返回的 `open.url` 打开在聊天旁的侧栏。Codex 使用返回的 `open_in_codex` 操作,其他 Agent 见 [宿主侧栏与交付协议](host-editor.md)。已连接账号且账号的云端同步开关打开时,上一步的 `export --final` 已经把作品同步到「我的资产 → 我的项目」(输出里的 `cloud.state` 是 `saved`,`cloud.webUrl` 是云端项目;`failed` 时照常交付本地成果并转述原因;`paused` 表示用户在 popost.ai「连接与 API Key」关掉了云端同步,告诉用户一次可以到 `cloud.manageUrl` 打开,不要另想办法上传)。`transport=web-http` 时,作品已同步到所连接账号的「我的资产 → 我的项目」,直接打开网页版画布。遇到登录页时,请用户使用所连接的 Popost 账号登录,登录后继续进入作品。`transport=loopback-http` 时,打开本地画布:`cloud.mode=anonymous` 时告诉用户可以用右上角的「保存到云端」连接账号,连接后作品自动同步,按钮显示「已打开云端同步」;`cloud.mode=paused` 时右上角显示「云端同步已关闭」,不同步。有 `cloud.error` 时说明为什么打开了本地画布;遇到网页版本冲突,保留各自的改动,等待用户选择。不要在聊天里索要 Key。确认作品、文字/图片和编辑入口已加载,再告诉用户画布已打开,并交付 PNG 与完整工程。画布是图文交付的一部分,不是可选项:由你主动在侧栏打开(不要让用户自己去找),最终回复里必须写出画布的可点击链接(`open.url`),和 PNG、工程 ZIP 一起交付;页面显示报错或 JSON(如 `{"ok":false,…}`)不算画布已打开,先按 [host-editor.md](host-editor.md) 排查再交付。编辑器升级或集成变更时验证编辑、保存、重开、下载与 ZIP 恢复。内部参考、提示、审核资料留在制作工程,不额外交付 Replay、图层展开展示或 PPTX。
20
20
 
21
21
  ## 保持效果的提速方式
22
22
 
@@ -69,10 +69,10 @@ popost account # Verify the account and read balance/purchase page; never char
69
69
  popost pricing [--config PRIVATE_CONFIG] # Read the dynamic link tariff and balance; never creates a task
70
70
  popost link quote [--config PRIVATE_CONFIG] # Same read-only tariff query; image fees are separate
71
71
  popost inspiration quote [--config PRIVATE_CONFIG] # Read the live link import tariff and balance; no charge
72
- popost inspiration add URL --confirm --max-credits N [--note "备注"] [--timeout 600] [--dry-run] # Parse and save a supported post directly to this account's My Inspirations
73
- popost inspiration status TASK_ID [--timeout 600] # Resume an existing save task; no new charge
72
+ popost inspiration add URL --confirm --max-credits N [--note "备注"] [--timeout 900] [--dry-run] # Parse and save a supported post directly to this account's My Inspirations
73
+ popost inspiration status TASK_ID [--timeout 900] # Resume an existing save task; no new charge
74
74
  popost inspiration import --file bundle.json [--note "收藏理由"] [--dry-run]
75
- popost link parse URL --confirm --max-credits N [--note "备注"] [--out DIR] [--timeout 600] [--no-download] [--no-video] [--dry-run] # popost.ai 解析帖子链接(用平台积分);图片和 postbundle.json 存到 inputs/link-<任务 id 前 8 位>/
75
+ popost link parse URL --confirm --max-credits N [--note "备注"] [--out DIR] [--timeout 900] [--no-download] [--no-video] [--dry-run] # popost.ai 解析帖子链接(用平台积分);图片和 postbundle.json 存到 inputs/link-<任务 id 前 8 位>/
76
76
  popost link status TASK_ID [--out DIR] [--no-download] # parse 超时或被打断后继续等待并下载;不新建任务、不扣积分
77
77
  popost template search --query "关键词" [--platform tiktok] [--category shoes] [--limit 5] # 检索随 Skill 附带的 Skill 模板;只列候选,不选定
78
78
  popost template-profile --dir P --file scene-profile.json
@@ -93,7 +93,7 @@ popost package --dir P
93
93
  popost unpack --file project.popost.zip --dir NEW_DIRECTORY
94
94
  popost serve --dir P [--port 8765]
95
95
  popost present --dir P --host codex|claude-code|workbuddy|doubao|generic|web # 省略 --host 即 auto
96
- popost cloud push --dir P [--force] # 需要 popost Key:把工程同步到用户的 popost.ai 账号并输出 webUrl;网页端改过时需确认后 --force 覆盖
96
+ popost cloud push --dir P [--force] # 需要已连接账号:把工程同步到用户的 popost.ai 账号并输出 webUrl;网页端改过时需确认后 --force 覆盖;账号关了云端同步时返回 CLOUD_SYNC_OFF(export --final 会自动同步,通常不需要手动运行)
97
97
  ```
98
98
 
99
99
  `setup` 的 spec 是一份 JSON(路径相对 spec 文件;新工程目录不要放 spec):
@@ -10,6 +10,26 @@ First locate the active executable and inspect `popost --version` and the releva
10
10
 
11
11
  Maintainers must publish matching CLI, Skill and resources before advertising a new capability through the standard npm command. Updating Skill text alone does not release executable features. Updates preserve projects, accepted assets, credentials, profiles and existing service choices; they do not regenerate work or update unrelated tools.
12
12
 
13
+ ## Updates
14
+
15
+ A standard installation (`npm install -g popost`, the published package in npm's own global directory) keeps itself current. At most once a day a command asks the npm registry which version is published: one small request for `popost/latest`, and, the first time a newer version appears, a second one that confirms the running version is a published build. Both run beside the command and never delay it. A request that fails is tried again after an hour, not by every command. What happens next:
16
+
17
+ - **A newer patch or minor version**: the command that learnt of it starts the update in the background as it ends, with no waiting period. The update asks npm for the registry's entry of that exact version, downloads the package as one file into a staging directory, and checks it before anything is installed: the file's sha512 must be the registry's integrity value, and the registry's signature over it must be valid. Then npm installs that file in the staging directory, the new command line is started once, and the installed directory is replaced by two renames, one directly after the other (a command starting in exactly that instant fails and works when run again; a running command keeps the code it loaded). Last, the new package's `popost install --existing` refreshes the Skill copies that already exist. The next command says `popost was updated to X` once, on stderr and in the `update` field of its JSON output. Projects, sign-in, profiles and settings are untouched.
18
+ - **Only existing Skill copies are refreshed.** An update never creates a Skill copy: it refreshes the copy in each supported Agent's skills directory that already holds one (the shared `~/.agents/skills` included) and in every directory an earlier `popost install --dir` recorded (`~/.popost/installs.json`), and keeps each copy's sign-in profile. With no copy anywhere it updates the command line only and says that no Skill copy was found. A copy that an older version installed with `--dir` was never recorded: run `popost install --dir <skills directory>` once more for it.
19
+ - **A new major version, a version the registry marks as deprecated, Windows, a process running as root (a container, `sudo popost …`), or a global npm directory the user cannot write**: nothing is installed. The command says `popost X is available (this is Y); run: popost update`, at most once a day.
20
+ - **A copy installed with pnpm, Yarn, Bun or Volta**: never replaced by popost. The notice names that manager's command instead, for example `pnpm add -g popost@latest && popost install --existing`.
21
+ - **A failed automatic update** (npm failed or ran longer than ten minutes, the package did not match the registry, the new command line did not start): the installed copy is unchanged; the next command says `an automatic update to X failed: <reason>; run popost update` once, and the same version is not tried again for 7 days.
22
+
23
+ The registry check works like this: with the official registry (`registry.npmjs.org`) a version without a valid registry signature is refused. With a registry of the user's own choice (a mirror, a company registry) that publishes no signing keys, only the integrity is checked, and the result says `"checked": "integrity"`; one that publishes keys must have signed the version. A check that fails or cannot be made leaves the installation as it is.
24
+
25
+ `popost update` runs the same update on request, with the same checks, and prints the previous and new version, how the package was checked, and what `install --existing` refreshed; a deprecated version is installed when asked for this way. It refuses while another popost process of the same installation is running (an open editor or Studio service, a render) and names it; close that process, or pass `--force`. `popost update --check` only compares the running version with the published one; `popost update --dry-run` shows the steps. `popost update --auto off` turns the automatic update off for this user (`--auto on` restores it). `POPOST_NO_AUTO_UPDATE=1` does the same for one environment and keeps the notice; `POPOST_NO_UPDATE_CHECK=1` also stops the registry requests. Nothing is checked or installed in CI (`CI` set).
26
+
27
+ The automatic update never starts after `update`, `install`, `serve`, `present` or a video render, preview or capture, never while another popost process of the same installation is running, and never twice at once.
28
+
29
+ Only the published package in npm's global directory is updated. A source checkout or linked build, a supplied build (it carries `dist/distribution.json`), a pre-release version, a build whose version is not on the registry, a copy inside a project or the `npx` cache, a copy in a directory that is not where this Node's npm keeps global packages, and popost inside the web workbench are left alone: `popost update` refuses with the reason. A test build that must stay must therefore carry a version that was never published (for example a pre-release such as `4.8.0-test.1`).
30
+
31
+ When a command's output or stderr carries one of these lines, tell the user in one line and continue the task. Run `popost update` or `popost install --existing` only when the line names it and the user wants it. If the Agent still shows the old Skill text after an update, restart the Agent or start a new chat; work in progress and its projects are unaffected.
32
+
13
33
  ## Start from useful work
14
34
 
15
35
  After installation, offer these four concrete first messages in the user's language. For Chinese users, use:
@@ -14,8 +14,8 @@
14
14
 
15
15
  ```text
16
16
  inspiration quote [--config PRIVATE_CONFIG]
17
- inspiration add <URL> --confirm --max-credits N [--note "为什么收藏"] [--timeout 600] [--dry-run] [--config PRIVATE_CONFIG]
18
- inspiration status <task id> [--timeout 600] [--config PRIVATE_CONFIG]
17
+ inspiration add <URL> --confirm --max-credits N [--note "为什么收藏"] [--timeout 900] [--dry-run] [--config PRIVATE_CONFIG]
18
+ inspiration status <task id> [--timeout 900] [--config PRIVATE_CONFIG]
19
19
  ```
20
20
 
21
21
  `--dry-run` 不联网、不查询价格、不扣费。正式提交需要当前账号的 API Key;服务端按 `maxCredits` 再次检查费用。成功输出 `inspiration{id,platform,title,sourceUrl,imageCount}` 和 `task{created,chargedCredits}`;到 Key 所属账号的「我的灵感」查看。已保存或正在解析的同一链接会复用,实际扣费以 `task.chargedCredits` 为准。若等待超时,用输出中的 `inspiration status <task id>` 查询;它不会新建任务或再次扣费。解析失败时平台尝试退款,失败任务上的正数扣费可能尚在退款中。不要把 `--dry-run` 或本地模拟测试当作真实保存成功。
@@ -40,8 +40,8 @@ inspiration import --file bundle.json [--note "为什么收藏"] [--dry-run] [--
40
40
 
41
41
  ```text
42
42
  link quote [--config PRIVATE_CONFIG]
43
- link parse <URL> --confirm --max-credits N [--note "备注"] [--out DIR] [--timeout 600] [--no-download] [--no-video] [--dry-run] [--config PRIVATE_CONFIG]
44
- link status <task id> [--out DIR] [--timeout 600] [--no-download] [--no-video] [--config PRIVATE_CONFIG]
43
+ link parse <URL> --confirm --max-credits N [--note "备注"] [--out DIR] [--timeout 900] [--no-download] [--no-video] [--dry-run] [--config PRIVATE_CONFIG]
44
+ link status <task id> [--out DIR] [--timeout 900] [--no-download] [--no-video] [--config PRIVATE_CONFIG]
45
45
  ```
46
46
 
47
47
  1. Run `link quote` (free read-only platform tariff/balance query), show the parsing charge separately from image fees and obtain authorization. `--dry-run` only describes the request locally; it does not query a price. Then submit with `--confirm --max-credits N`.
@@ -49,7 +49,7 @@ link status <task id> [--out DIR] [--timeout 600] [--no-download] [--no-video] [
49
49
  视频帖(`post.kind=video`)的图片只有封面;原视频另存为 `video.mp4`(`.mov`、`.webm`,类型取自文件头),输出里是 `video`,bundle 里是 `resources` 中 `kind=video` 的一项(不进 `pageOrder`)。这一步不另扣积分;`--no-video` 跳过。平台给不出视频(YouTube、哔哩哔哩、微信视频号,或平台已不再提供这条视频)、或下载失败时解析照样成功,输出带 `videoMissing{code,error}`(如 `LINK_VIDEO_UNAVAILABLE`):bundle 只有封面和文字,要做视频分析时再请用户提供视频文件或录屏;下载失败可重跑 `link status` 再取。
50
50
  3. 链接已在用户的灵感库里时直接复用:`task.created=false`、`chargedCredits=0`。平台解析时已把这条帖子存入「我的灵感」,不要再对这个 bundle 跑 `inspiration import`,那会重复保存。
51
51
  4. 任务失败输出 `{ok:false, code, error, task}`,退出码 1,The platform attempts a refund; `chargedCredits` is the current net charge. A positive value on a failed task means refund pending, not refunded. Query status to reconcile.常见 code:`LINK_UNSUPPORTED`(不是五平台的帖子链接)、`LINK_POST_NOT_FOUND`(帖子不存在或不公开)、`LINK_PARSE_FAILED`、`LINK_IMAGES_FAILED`、`LINK_PARSE_UNAVAILABLE`。`LINK_UNSUPPORTED`、`INSUFFICIENT_CREDITS`、`RATE_LIMITED` 在建任务前就拒绝,没有任务,也没扣积分。
52
- 5. 等待:每 2 秒查询一次,最长 `--timeout` 秒(平台约 10 分钟仍未完成的任务会判失败);个别查询失败(网络、5xx)会容忍,连续 5 次失败才停;被限流时按平台给的时间等待后再查,不算失败。超时、停止等待或命令被打断时,解析可能仍在平台进行:用输出里的 `popost link status <task id>` 继续等待并下载,它不会新建任务、也不会再扣积分。图片下载失败时已下载的保留,同样重跑 `link status`(图片地址每次查询都会重新签发)。`--no-download` 不下载,只打印帖子和图片地址,地址是短期签名链接。
52
+ 5. 等待:每 2 秒查询一次,最长 `--timeout` 秒(默认 900 秒;平台约 15 分钟仍未完成的任务会判失败);个别查询失败(网络、5xx)会容忍,连续 5 次失败才停;被限流时按平台给的时间等待后再查,不算失败。超时、停止等待或命令被打断时,解析可能仍在平台进行:用输出里的 `popost link status <task id>` 继续等待并下载,它不会新建任务、也不会再扣积分。图片下载失败时已下载的保留,同样重跑 `link status`(图片地址每次查询都会重新签发)。`--no-download` 不下载,只打印帖子和图片地址,地址是短期签名链接。
53
53
  6. 建任务的请求超时或断连,结果不确定(`UNCERTAIN`):不自动重试,先告诉用户。重新运行同一条命令是安全的:同一链接的任务仍在进行时会并入同一个任务、不重复扣;已保存的链接直接返回、也不再扣。
54
54
 
55
55
  退出码:0 成功;1 平台拒绝、任务失败、结果不确定或等待未完成;2 本地参数或环境问题(缺 Key、链接格式、`--out` 是文件)。