vibes-diy 14.1.37 → 14.1.39
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/cli/cmd-evento.d.ts +212 -197
- package/cli/cmd-evento.js +2 -1
- package/cli/cmd-evento.js.map +1 -1
- package/cli/cmds/app/index.d.ts +29 -0
- package/cli/cmds/app/index.js +4 -1
- package/cli/cmds/app/index.js.map +1 -1
- package/cli/cmds/app/screenshot-cmd.d.ts +47 -0
- package/cli/cmds/app/screenshot-cmd.js +139 -0
- package/cli/cmds/app/screenshot-cmd.js.map +1 -0
- package/cli/cmds/app/screenshot-cmd.test.d.ts +1 -0
- package/cli/cmds/app/screenshot-cmd.test.js +58 -0
- package/cli/cmds/app/screenshot-cmd.test.js.map +1 -0
- package/cli/device-id-env.js +5 -47
- package/cli/device-id-env.js.map +1 -1
- package/cli/device-id-env.test.js +12 -20
- package/cli/device-id-env.test.js.map +1 -1
- package/cli/main.js +13 -1
- package/cli/main.js.map +1 -1
- package/package.json +8 -8
package/cli/cmd-evento.d.ts
CHANGED
|
@@ -2,168 +2,82 @@ import { isCmdProgress, sendMsg, sendProgress, type CmdProgress, type CmdTSMsg,
|
|
|
2
2
|
export type { CmdTSMsg, WrapCmdTSMsg, CmdProgress };
|
|
3
3
|
export { isCmdProgress, sendMsg, sendProgress };
|
|
4
4
|
export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
5
|
-
type: "
|
|
6
|
-
commonName: string;
|
|
7
|
-
organization: string;
|
|
8
|
-
locality: string;
|
|
9
|
-
state: string;
|
|
10
|
-
country: string;
|
|
11
|
-
caUrl: string;
|
|
12
|
-
port: string;
|
|
13
|
-
timeout: string;
|
|
14
|
-
forceRenew: boolean;
|
|
5
|
+
type: "vibes-diy.cli.system";
|
|
15
6
|
}, {
|
|
16
|
-
type: "
|
|
17
|
-
|
|
7
|
+
type: "vibes-diy.cli.res-system";
|
|
8
|
+
systemPrompt: string;
|
|
18
9
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
19
|
-
type: "
|
|
10
|
+
type: "vibes-diy.cli.remix";
|
|
11
|
+
srcUserSlug: string;
|
|
12
|
+
srcAppSlug: string;
|
|
13
|
+
dstOwnerHandle?: string | undefined;
|
|
14
|
+
dstAppSlug?: string | undefined;
|
|
15
|
+
published: boolean;
|
|
16
|
+
settingsOnly: boolean;
|
|
17
|
+
apiUrl: string;
|
|
20
18
|
}, {
|
|
21
|
-
type: "
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
slug: string;
|
|
29
|
-
content: string;
|
|
19
|
+
type: "vibes-diy.cli.res-remix";
|
|
20
|
+
ownerHandle: string;
|
|
21
|
+
appSlug: string;
|
|
22
|
+
url: string;
|
|
23
|
+
carried?: string[] | undefined;
|
|
24
|
+
skippedPresent?: string[] | undefined;
|
|
25
|
+
chatId?: string | undefined;
|
|
30
26
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
31
|
-
type: "vibes-diy.cli.
|
|
32
|
-
|
|
27
|
+
type: "vibes-diy.cli.put-asset";
|
|
28
|
+
file: string;
|
|
33
29
|
appSlug: string;
|
|
34
30
|
ownerHandle: string;
|
|
35
|
-
instantJoin?: boolean | undefined;
|
|
36
|
-
noAccessFn?: boolean | undefined;
|
|
37
|
-
verbose: boolean;
|
|
38
31
|
apiUrl: string;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
apiKey?: string | undefined;
|
|
32
|
+
mimeType: string;
|
|
33
|
+
verifyFetch: boolean;
|
|
42
34
|
}, {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
fileSystem: {
|
|
50
|
-
fileName: string;
|
|
51
|
-
mimeType: string;
|
|
52
|
-
assetId: string;
|
|
53
|
-
assetURI: string;
|
|
54
|
-
transform?: {
|
|
55
|
-
type: "jsx-to-js";
|
|
56
|
-
transformedAssetId: string;
|
|
57
|
-
} | {
|
|
58
|
-
type: "imports";
|
|
59
|
-
importMapAssetId: string;
|
|
60
|
-
} | {
|
|
61
|
-
type: "import-map";
|
|
62
|
-
fromAssetIds: string[];
|
|
63
|
-
} | {
|
|
64
|
-
type: "transformed";
|
|
65
|
-
action: "jsx-to-js";
|
|
66
|
-
transformedAssetId: string;
|
|
67
|
-
} | {
|
|
68
|
-
type: "tailwind-css";
|
|
69
|
-
} | undefined;
|
|
70
|
-
entryPoint?: boolean | undefined;
|
|
71
|
-
size: number;
|
|
72
|
-
kind?: "asset" | undefined;
|
|
73
|
-
}[];
|
|
74
|
-
} | {
|
|
75
|
-
type: "vibes.diy.res-error";
|
|
76
|
-
error: {
|
|
77
|
-
message: string;
|
|
78
|
-
code: "require-login";
|
|
79
|
-
};
|
|
80
|
-
} | {
|
|
81
|
-
type: "vibes.diy.res-error";
|
|
82
|
-
error: {
|
|
83
|
-
message: string;
|
|
84
|
-
code: "user-slug-invalid";
|
|
85
|
-
};
|
|
86
|
-
} | {
|
|
87
|
-
type: "vibes.diy.res-error";
|
|
88
|
-
error: {
|
|
89
|
-
message: string;
|
|
90
|
-
code: "app-slug-invalid";
|
|
91
|
-
};
|
|
92
|
-
} | {
|
|
93
|
-
type: "vibes.diy.res-error";
|
|
94
|
-
error: {
|
|
95
|
-
message: string;
|
|
96
|
-
code: "max-app-slugs-reached";
|
|
97
|
-
};
|
|
98
|
-
} | {
|
|
99
|
-
type: "vibes.diy.res-error";
|
|
100
|
-
error: {
|
|
101
|
-
message: string;
|
|
102
|
-
code: "handle-required";
|
|
103
|
-
};
|
|
104
|
-
} | {
|
|
105
|
-
type: "vibes.diy.res-error";
|
|
106
|
-
error: {
|
|
107
|
-
message: string;
|
|
108
|
-
code: "from-not-owned";
|
|
109
|
-
};
|
|
110
|
-
} | {
|
|
111
|
-
type: "vibes.diy.res-error";
|
|
112
|
-
error: {
|
|
113
|
-
message: string;
|
|
114
|
-
code: "from-carry-failed";
|
|
115
|
-
};
|
|
116
|
-
} | {
|
|
117
|
-
type: "vibes-diy.cli.res-generate";
|
|
118
|
-
appSlug: string;
|
|
119
|
-
ownerHandle: string;
|
|
120
|
-
url: string;
|
|
121
|
-
directory: string;
|
|
35
|
+
type: "vibes-diy.cli.res-put-asset";
|
|
36
|
+
cid: string;
|
|
37
|
+
getURL: string;
|
|
38
|
+
size: number;
|
|
39
|
+
uploadId: string;
|
|
40
|
+
verified?: boolean | undefined;
|
|
122
41
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
123
|
-
type: "vibes-diy.cli.db.
|
|
42
|
+
type: "vibes-diy.cli.db.del";
|
|
124
43
|
apiUrl: string;
|
|
125
44
|
appSlug: string;
|
|
126
45
|
ownerHandle: string;
|
|
127
46
|
dbName: string;
|
|
128
|
-
docJson: string;
|
|
129
47
|
docId: string;
|
|
130
48
|
admin: boolean;
|
|
131
49
|
actingHandle: string;
|
|
132
50
|
}, {
|
|
133
|
-
type: "vibes-diy.cli.db.
|
|
51
|
+
type: "vibes-diy.cli.db.del-res";
|
|
134
52
|
id: string;
|
|
135
53
|
ok: true;
|
|
136
54
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
137
|
-
type: "vibes-diy.cli.
|
|
55
|
+
type: "vibes-diy.cli.versions";
|
|
138
56
|
appSlug: string;
|
|
139
57
|
ownerHandle: string;
|
|
140
|
-
dir: string;
|
|
141
58
|
apiUrl: string;
|
|
142
|
-
fsId?: string | undefined;
|
|
143
|
-
published: boolean;
|
|
144
|
-
draft: boolean;
|
|
145
|
-
version?: string | undefined;
|
|
146
59
|
}, {
|
|
147
|
-
type: "vibes-diy.cli.res-
|
|
60
|
+
type: "vibes-diy.cli.res-versions";
|
|
148
61
|
appSlug: string;
|
|
149
62
|
ownerHandle: string;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
63
|
+
items: {
|
|
64
|
+
fsId: string;
|
|
65
|
+
mode: "dev" | "production";
|
|
66
|
+
releaseSeq: number;
|
|
67
|
+
created: string;
|
|
68
|
+
published: boolean;
|
|
154
69
|
}[];
|
|
155
70
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
156
|
-
type: "vibes-diy.cli.app-
|
|
71
|
+
type: "vibes-diy.cli.app-schedule-off";
|
|
157
72
|
appSlug: string;
|
|
158
73
|
ownerHandle: string;
|
|
159
74
|
apiUrl: string;
|
|
160
75
|
}, {
|
|
161
|
-
type: "vibes-diy.cli.res-app-
|
|
76
|
+
type: "vibes-diy.cli.res-app-schedule-off";
|
|
162
77
|
appSlug: string;
|
|
163
78
|
ownerHandle: string;
|
|
164
79
|
state: "dead" | "healthy" | "overdue" | "running" | "unscheduled";
|
|
165
80
|
intervalMs: number | null;
|
|
166
|
-
nextAlarmAt: string | null;
|
|
167
81
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
168
82
|
type: "vibes-diy.cli.app-status";
|
|
169
83
|
appSlug: string;
|
|
@@ -186,16 +100,17 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
186
100
|
overdueMs: number;
|
|
187
101
|
healed: boolean;
|
|
188
102
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
189
|
-
type: "vibes-diy.cli.app-
|
|
103
|
+
type: "vibes-diy.cli.app-rearm";
|
|
190
104
|
appSlug: string;
|
|
191
105
|
ownerHandle: string;
|
|
192
106
|
apiUrl: string;
|
|
193
107
|
}, {
|
|
194
|
-
type: "vibes-diy.cli.res-app-
|
|
108
|
+
type: "vibes-diy.cli.res-app-rearm";
|
|
195
109
|
appSlug: string;
|
|
196
110
|
ownerHandle: string;
|
|
197
111
|
state: "dead" | "healthy" | "overdue" | "running" | "unscheduled";
|
|
198
112
|
intervalMs: number | null;
|
|
113
|
+
nextAlarmAt: string | null;
|
|
199
114
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
200
115
|
type: "vibes-diy.cli.app-logs";
|
|
201
116
|
appSlug: string;
|
|
@@ -242,6 +157,21 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
242
157
|
fsId: string;
|
|
243
158
|
releaseSeq: number;
|
|
244
159
|
chips: string[];
|
|
160
|
+
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
161
|
+
type: "vibes-diy.cli.app-screenshot";
|
|
162
|
+
appSlug: string;
|
|
163
|
+
ownerHandle: string;
|
|
164
|
+
more: string[];
|
|
165
|
+
apiUrl: string;
|
|
166
|
+
}, {
|
|
167
|
+
type: "vibes-diy.cli.res-app-screenshot";
|
|
168
|
+
results: {
|
|
169
|
+
ownerHandle: string;
|
|
170
|
+
appSlug: string;
|
|
171
|
+
fsId: string;
|
|
172
|
+
enqueued: boolean;
|
|
173
|
+
error?: string | undefined;
|
|
174
|
+
}[];
|
|
245
175
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
246
176
|
type: "vibes-diy.cli.developer";
|
|
247
177
|
apiUrl: string;
|
|
@@ -269,32 +199,6 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
269
199
|
type: "vibes.diy.res-ensure-user-settings";
|
|
270
200
|
userId: string;
|
|
271
201
|
settings: ({
|
|
272
|
-
type: "notifications";
|
|
273
|
-
buildComplete?: boolean | undefined;
|
|
274
|
-
buildFailed?: boolean | undefined;
|
|
275
|
-
vibePublished?: boolean | undefined;
|
|
276
|
-
commentPosted?: boolean | undefined;
|
|
277
|
-
requestApproved?: boolean | undefined;
|
|
278
|
-
requestRevoked?: boolean | undefined;
|
|
279
|
-
vibeRemixed?: boolean | undefined;
|
|
280
|
-
dmReceived?: boolean | undefined;
|
|
281
|
-
memberJoined?: boolean | undefined;
|
|
282
|
-
accessRequested?: boolean | undefined;
|
|
283
|
-
emailDigest?: boolean | undefined;
|
|
284
|
-
retentionEmail?: boolean | undefined;
|
|
285
|
-
followRequest?: boolean | undefined;
|
|
286
|
-
followerAdded?: boolean | undefined;
|
|
287
|
-
followApproved?: boolean | undefined;
|
|
288
|
-
appMessage?: boolean | undefined;
|
|
289
|
-
connectionExpiring?: boolean | undefined;
|
|
290
|
-
assetBlocked?: boolean | undefined;
|
|
291
|
-
assetCheckFailed?: boolean | undefined;
|
|
292
|
-
emailInstant?: boolean | undefined;
|
|
293
|
-
mutes?: {
|
|
294
|
-
vibes?: string[] | undefined;
|
|
295
|
-
handles?: string[] | undefined;
|
|
296
|
-
} | undefined;
|
|
297
|
-
} | {
|
|
298
202
|
type: "sharing";
|
|
299
203
|
grants: {
|
|
300
204
|
grant: "allow" | "deny";
|
|
@@ -376,6 +280,32 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
376
280
|
type: "profile";
|
|
377
281
|
avatarCid?: string | undefined;
|
|
378
282
|
displayName?: string | undefined;
|
|
283
|
+
} | {
|
|
284
|
+
type: "notifications";
|
|
285
|
+
buildComplete?: boolean | undefined;
|
|
286
|
+
buildFailed?: boolean | undefined;
|
|
287
|
+
vibePublished?: boolean | undefined;
|
|
288
|
+
commentPosted?: boolean | undefined;
|
|
289
|
+
requestApproved?: boolean | undefined;
|
|
290
|
+
requestRevoked?: boolean | undefined;
|
|
291
|
+
vibeRemixed?: boolean | undefined;
|
|
292
|
+
dmReceived?: boolean | undefined;
|
|
293
|
+
memberJoined?: boolean | undefined;
|
|
294
|
+
accessRequested?: boolean | undefined;
|
|
295
|
+
emailDigest?: boolean | undefined;
|
|
296
|
+
retentionEmail?: boolean | undefined;
|
|
297
|
+
followRequest?: boolean | undefined;
|
|
298
|
+
followerAdded?: boolean | undefined;
|
|
299
|
+
followApproved?: boolean | undefined;
|
|
300
|
+
appMessage?: boolean | undefined;
|
|
301
|
+
connectionExpiring?: boolean | undefined;
|
|
302
|
+
assetBlocked?: boolean | undefined;
|
|
303
|
+
assetCheckFailed?: boolean | undefined;
|
|
304
|
+
emailInstant?: boolean | undefined;
|
|
305
|
+
mutes?: {
|
|
306
|
+
vibes?: string[] | undefined;
|
|
307
|
+
handles?: string[] | undefined;
|
|
308
|
+
} | undefined;
|
|
379
309
|
} | {
|
|
380
310
|
type: "egressStatus";
|
|
381
311
|
status: "blessed" | "blocked";
|
|
@@ -386,6 +316,9 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
386
316
|
email: string;
|
|
387
317
|
updatedAt: string;
|
|
388
318
|
verified?: boolean | undefined;
|
|
319
|
+
} | {
|
|
320
|
+
type: "onboarding";
|
|
321
|
+
completedAt: string;
|
|
389
322
|
} | {
|
|
390
323
|
type: "geoCountry";
|
|
391
324
|
country: string;
|
|
@@ -396,9 +329,6 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
396
329
|
[x: string]: string;
|
|
397
330
|
};
|
|
398
331
|
updatedAt: string;
|
|
399
|
-
} | {
|
|
400
|
-
type: "onboarding";
|
|
401
|
-
completedAt: string;
|
|
402
332
|
} | {
|
|
403
333
|
type: "kyc";
|
|
404
334
|
cardAt?: string | undefined;
|
|
@@ -421,10 +351,17 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
421
351
|
name: string;
|
|
422
352
|
content: string;
|
|
423
353
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
424
|
-
type: "vibes
|
|
354
|
+
type: "use-vibes.cli.themes";
|
|
425
355
|
}, {
|
|
426
|
-
type: "vibes
|
|
427
|
-
|
|
356
|
+
type: "use-vibes.cli.res-themes-list";
|
|
357
|
+
themes: {
|
|
358
|
+
slug: string;
|
|
359
|
+
name: string;
|
|
360
|
+
}[];
|
|
361
|
+
} | {
|
|
362
|
+
type: "use-vibes.cli.res-theme-content";
|
|
363
|
+
slug: string;
|
|
364
|
+
content: string;
|
|
428
365
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
429
366
|
type: "vibes-diy.cli.push";
|
|
430
367
|
mode: string;
|
|
@@ -515,23 +452,6 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
515
452
|
message: string;
|
|
516
453
|
code: "from-carry-failed";
|
|
517
454
|
};
|
|
518
|
-
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
519
|
-
type: "vibes-diy.cli.remix";
|
|
520
|
-
srcUserSlug: string;
|
|
521
|
-
srcAppSlug: string;
|
|
522
|
-
dstOwnerHandle?: string | undefined;
|
|
523
|
-
dstAppSlug?: string | undefined;
|
|
524
|
-
published: boolean;
|
|
525
|
-
settingsOnly: boolean;
|
|
526
|
-
apiUrl: string;
|
|
527
|
-
}, {
|
|
528
|
-
type: "vibes-diy.cli.res-remix";
|
|
529
|
-
ownerHandle: string;
|
|
530
|
-
appSlug: string;
|
|
531
|
-
url: string;
|
|
532
|
-
carried?: string[] | undefined;
|
|
533
|
-
skippedPresent?: string[] | undefined;
|
|
534
|
-
chatId?: string | undefined;
|
|
535
455
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
536
456
|
type: "vibes-diy.cli.claim-handle";
|
|
537
457
|
apiUrl: string;
|
|
@@ -543,20 +463,97 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
543
463
|
defaultHandleSet?: boolean | undefined;
|
|
544
464
|
suggestions: string[];
|
|
545
465
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
546
|
-
type: "vibes-diy.cli.
|
|
547
|
-
|
|
466
|
+
type: "vibes-diy.cli.generate";
|
|
467
|
+
prompt: string;
|
|
548
468
|
appSlug: string;
|
|
549
469
|
ownerHandle: string;
|
|
470
|
+
instantJoin?: boolean | undefined;
|
|
471
|
+
noAccessFn?: boolean | undefined;
|
|
472
|
+
verbose: boolean;
|
|
550
473
|
apiUrl: string;
|
|
551
|
-
|
|
552
|
-
|
|
474
|
+
focusPath?: string | undefined;
|
|
475
|
+
model?: string | undefined;
|
|
476
|
+
apiKey?: string | undefined;
|
|
553
477
|
}, {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
478
|
+
appSlug: string;
|
|
479
|
+
ownerHandle: string;
|
|
480
|
+
mode: "dev" | "production";
|
|
481
|
+
fsId: string;
|
|
482
|
+
type: "vibes.diy.res-ensure-app-slug";
|
|
483
|
+
env: Record<string, string>;
|
|
484
|
+
fileSystem: {
|
|
485
|
+
fileName: string;
|
|
486
|
+
mimeType: string;
|
|
487
|
+
assetId: string;
|
|
488
|
+
assetURI: string;
|
|
489
|
+
transform?: {
|
|
490
|
+
type: "jsx-to-js";
|
|
491
|
+
transformedAssetId: string;
|
|
492
|
+
} | {
|
|
493
|
+
type: "imports";
|
|
494
|
+
importMapAssetId: string;
|
|
495
|
+
} | {
|
|
496
|
+
type: "import-map";
|
|
497
|
+
fromAssetIds: string[];
|
|
498
|
+
} | {
|
|
499
|
+
type: "transformed";
|
|
500
|
+
action: "jsx-to-js";
|
|
501
|
+
transformedAssetId: string;
|
|
502
|
+
} | {
|
|
503
|
+
type: "tailwind-css";
|
|
504
|
+
} | undefined;
|
|
505
|
+
entryPoint?: boolean | undefined;
|
|
506
|
+
size: number;
|
|
507
|
+
kind?: "asset" | undefined;
|
|
508
|
+
}[];
|
|
509
|
+
} | {
|
|
510
|
+
type: "vibes.diy.res-error";
|
|
511
|
+
error: {
|
|
512
|
+
message: string;
|
|
513
|
+
code: "require-login";
|
|
514
|
+
};
|
|
515
|
+
} | {
|
|
516
|
+
type: "vibes.diy.res-error";
|
|
517
|
+
error: {
|
|
518
|
+
message: string;
|
|
519
|
+
code: "user-slug-invalid";
|
|
520
|
+
};
|
|
521
|
+
} | {
|
|
522
|
+
type: "vibes.diy.res-error";
|
|
523
|
+
error: {
|
|
524
|
+
message: string;
|
|
525
|
+
code: "app-slug-invalid";
|
|
526
|
+
};
|
|
527
|
+
} | {
|
|
528
|
+
type: "vibes.diy.res-error";
|
|
529
|
+
error: {
|
|
530
|
+
message: string;
|
|
531
|
+
code: "max-app-slugs-reached";
|
|
532
|
+
};
|
|
533
|
+
} | {
|
|
534
|
+
type: "vibes.diy.res-error";
|
|
535
|
+
error: {
|
|
536
|
+
message: string;
|
|
537
|
+
code: "handle-required";
|
|
538
|
+
};
|
|
539
|
+
} | {
|
|
540
|
+
type: "vibes.diy.res-error";
|
|
541
|
+
error: {
|
|
542
|
+
message: string;
|
|
543
|
+
code: "from-not-owned";
|
|
544
|
+
};
|
|
545
|
+
} | {
|
|
546
|
+
type: "vibes.diy.res-error";
|
|
547
|
+
error: {
|
|
548
|
+
message: string;
|
|
549
|
+
code: "from-carry-failed";
|
|
550
|
+
};
|
|
551
|
+
} | {
|
|
552
|
+
type: "vibes-diy.cli.res-generate";
|
|
553
|
+
appSlug: string;
|
|
554
|
+
ownerHandle: string;
|
|
555
|
+
url: string;
|
|
556
|
+
directory: string;
|
|
560
557
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
561
558
|
type: "vibes-diy.cli.app-chats";
|
|
562
559
|
appSlug: string;
|
|
@@ -726,20 +723,23 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
726
723
|
unpublishedAt?: string | undefined;
|
|
727
724
|
}[];
|
|
728
725
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
729
|
-
type: "vibes-diy.cli.
|
|
726
|
+
type: "vibes-diy.cli.pull";
|
|
730
727
|
appSlug: string;
|
|
731
728
|
ownerHandle: string;
|
|
729
|
+
dir: string;
|
|
732
730
|
apiUrl: string;
|
|
731
|
+
fsId?: string | undefined;
|
|
732
|
+
published: boolean;
|
|
733
|
+
draft: boolean;
|
|
734
|
+
version?: string | undefined;
|
|
733
735
|
}, {
|
|
734
|
-
type: "vibes-diy.cli.res-
|
|
736
|
+
type: "vibes-diy.cli.res-pull";
|
|
735
737
|
appSlug: string;
|
|
736
738
|
ownerHandle: string;
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
created: string;
|
|
742
|
-
published: boolean;
|
|
739
|
+
directory: string;
|
|
740
|
+
files: {
|
|
741
|
+
name: string;
|
|
742
|
+
size: number;
|
|
743
743
|
}[];
|
|
744
744
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
745
745
|
type: "vibes-diy.cli.assets-ls";
|
|
@@ -836,6 +836,20 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
836
836
|
type: "vibes-diy.cli.res-retention-reset";
|
|
837
837
|
userId: string;
|
|
838
838
|
cleared: string[];
|
|
839
|
+
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
840
|
+
type: "core-cli.device-id-register";
|
|
841
|
+
commonName: string;
|
|
842
|
+
organization: string;
|
|
843
|
+
locality: string;
|
|
844
|
+
state: string;
|
|
845
|
+
country: string;
|
|
846
|
+
caUrl: string;
|
|
847
|
+
port: string;
|
|
848
|
+
timeout: string;
|
|
849
|
+
forceRenew: boolean;
|
|
850
|
+
}, {
|
|
851
|
+
type: "core-cli.res-device-id-register";
|
|
852
|
+
output: string;
|
|
839
853
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
840
854
|
type: "vibes-diy.cli.db.list";
|
|
841
855
|
apiUrl: string;
|
|
@@ -860,16 +874,17 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
860
874
|
[x: string]: unknown;
|
|
861
875
|
};
|
|
862
876
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
863
|
-
type: "vibes-diy.cli.db.
|
|
877
|
+
type: "vibes-diy.cli.db.put";
|
|
864
878
|
apiUrl: string;
|
|
865
879
|
appSlug: string;
|
|
866
880
|
ownerHandle: string;
|
|
867
881
|
dbName: string;
|
|
882
|
+
docJson: string;
|
|
868
883
|
docId: string;
|
|
869
884
|
admin: boolean;
|
|
870
885
|
actingHandle: string;
|
|
871
886
|
}, {
|
|
872
|
-
type: "vibes-diy.cli.db.
|
|
887
|
+
type: "vibes-diy.cli.db.put-res";
|
|
873
888
|
id: string;
|
|
874
889
|
ok: true;
|
|
875
890
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
package/cli/cmd-evento.js
CHANGED
|
@@ -15,7 +15,7 @@ import { listEvento } from "./cmds/list-cmd.js";
|
|
|
15
15
|
import { pullEvento } from "./cmds/pull-cmd.js";
|
|
16
16
|
import { versionsEvento } from "./cmds/versions-cmd.js";
|
|
17
17
|
import { assetsLsEvento } from "./cmds/assets-cmd.js";
|
|
18
|
-
import { appStatusEvento, appRearmEvento, appScheduleOffEvento, appLogsEvento, appChipsEvento } from "./cmds/app/index.js";
|
|
18
|
+
import { appStatusEvento, appRearmEvento, appScheduleOffEvento, appLogsEvento, appChipsEvento, appScreenshotEvento, } from "./cmds/app/index.js";
|
|
19
19
|
import { setUnpublishEvento, publishEvento } from "./cmds/unpublish-cmd.js";
|
|
20
20
|
import { secretsEvento } from "./cmds/secrets/secrets-cmd.js";
|
|
21
21
|
import { recommendEvento } from "./cmds/recommend/recommend-cmd.js";
|
|
@@ -44,6 +44,7 @@ export function cliEventoHandlers() {
|
|
|
44
44
|
assetsLsEvento,
|
|
45
45
|
appStatusEvento,
|
|
46
46
|
appRearmEvento,
|
|
47
|
+
appScreenshotEvento,
|
|
47
48
|
appScheduleOffEvento,
|
|
48
49
|
appLogsEvento,
|
|
49
50
|
appChipsEvento,
|
package/cli/cmd-evento.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cmd-evento.js","sourceRoot":"","sources":["../../jsr/cli/cmd-evento.ts"],"names":[],"mappings":"AAAA,OAA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Ib,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;AAOhD,MAAM,UAAU,iBAAiB;IAC/B,OAAO;QACL,kBAAkB;QAClB,YAAY;QACZ,YAAY;QACZ,YAAY;QACZ,UAAU;QACV,WAAW;QACX,iBAAiB;QACjB,cAAc;QACd,cAAc;QACd,cAAc;QACd,gBAAgB;QAChB,UAAU;QACV,UAAU;QACV,UAAU;QACV,cAAc;QACd,cAAc;QACd,eAAe;QACf,cAAc;QACd,mBAAmB;QACnB,oBAAoB;QACpB,aAAa;QACb,cAAc;QACd,kBAAkB;QAClB,aAAa;QACb,aAAa;QACb,eAAe;QACf,eAAe;QACf,sBAAsB;QACtB,oBAAoB;QACpB,sBAAsB;QACtB,YAAY;QACZ,WAAW;QACX,WAAW;QACX,WAAW;QACX,aAAa;QACb,iBAAiB;KAClB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,WAAW;IACzB,OAAO,eAAe,CAAC,iBAAiB,EAAE,CAAC,CAAC;AAC9C,CAAC"}
|
package/cli/cmds/app/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { appRearmEvento, isResAppRearmCli, renderAppRearmLines, type ResAppRearm
|
|
|
4
4
|
export { appScheduleOffEvento, isResAppScheduleOffCli, renderAppScheduleOffLines, type ResAppScheduleOffCli, } from "./schedule-cmd.js";
|
|
5
5
|
export { appLogsEvento, isResAppLogsCli, renderAppLogLines, parseSince, type ResAppLogsCli } from "./logs-cmd.js";
|
|
6
6
|
export { appChipsEvento, isResAppChipsCli, renderAppChipsLines, type ResAppChipsCli } from "./chips-cmd.js";
|
|
7
|
+
export { appScreenshotEvento, isResAppScreenshotCli, renderAppScreenshotLines, type ResAppScreenshotCli, } from "./screenshot-cmd.js";
|
|
7
8
|
export declare function appSubcommands(ctx: CliCtx): Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
8
9
|
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<{
|
|
9
10
|
command: "chips";
|
|
@@ -55,6 +56,17 @@ export declare function appSubcommands(ctx: CliCtx): Partial<import("cmd-ts/dist
|
|
|
55
56
|
handle: string;
|
|
56
57
|
};
|
|
57
58
|
};
|
|
59
|
+
} | {
|
|
60
|
+
command: "screenshot";
|
|
61
|
+
args: {
|
|
62
|
+
apiUrl: string;
|
|
63
|
+
json: boolean;
|
|
64
|
+
text: boolean;
|
|
65
|
+
appSlug: string | undefined;
|
|
66
|
+
more: string[];
|
|
67
|
+
vibe: string;
|
|
68
|
+
handle: string;
|
|
69
|
+
};
|
|
58
70
|
} | {
|
|
59
71
|
command: "status";
|
|
60
72
|
args: {
|
|
@@ -116,6 +128,17 @@ export declare function appSubcommands(ctx: CliCtx): Partial<import("cmd-ts/dist
|
|
|
116
128
|
handle: string;
|
|
117
129
|
};
|
|
118
130
|
};
|
|
131
|
+
} | {
|
|
132
|
+
command: "screenshot";
|
|
133
|
+
args: {
|
|
134
|
+
apiUrl: string;
|
|
135
|
+
json: boolean;
|
|
136
|
+
text: boolean;
|
|
137
|
+
appSlug: string | undefined;
|
|
138
|
+
more: string[];
|
|
139
|
+
vibe: string;
|
|
140
|
+
handle: string;
|
|
141
|
+
};
|
|
119
142
|
} | {
|
|
120
143
|
command: "status";
|
|
121
144
|
args: {
|
|
@@ -141,6 +164,9 @@ export declare function appSubcommands(ctx: CliCtx): Partial<import("cmd-ts/dist
|
|
|
141
164
|
command: "off";
|
|
142
165
|
value: never;
|
|
143
166
|
};
|
|
167
|
+
} | {
|
|
168
|
+
command: "screenshot";
|
|
169
|
+
value: never;
|
|
144
170
|
} | {
|
|
145
171
|
command: "status";
|
|
146
172
|
value: never;
|
|
@@ -160,6 +186,9 @@ export declare function appSubcommands(ctx: CliCtx): Partial<import("cmd-ts/dist
|
|
|
160
186
|
command: "off";
|
|
161
187
|
value: never;
|
|
162
188
|
};
|
|
189
|
+
} | {
|
|
190
|
+
command: "screenshot";
|
|
191
|
+
value: never;
|
|
163
192
|
} | {
|
|
164
193
|
command: "status";
|
|
165
194
|
value: never;
|
package/cli/cmds/app/index.js
CHANGED
|
@@ -4,21 +4,24 @@ import { appRearmCmd } from "./rearm-cmd.js";
|
|
|
4
4
|
import { appScheduleCmd } from "./schedule-cmd.js";
|
|
5
5
|
import { appLogsCmd } from "./logs-cmd.js";
|
|
6
6
|
import { appChipsCmd } from "./chips-cmd.js";
|
|
7
|
+
import { appScreenshotCmd } from "./screenshot-cmd.js";
|
|
7
8
|
export { appStatusEvento, isResAppStatusCli, renderAppStatusLines } from "./status-cmd.js";
|
|
8
9
|
export { appRearmEvento, isResAppRearmCli, renderAppRearmLines } from "./rearm-cmd.js";
|
|
9
10
|
export { appScheduleOffEvento, isResAppScheduleOffCli, renderAppScheduleOffLines, } from "./schedule-cmd.js";
|
|
10
11
|
export { appLogsEvento, isResAppLogsCli, renderAppLogLines, parseSince } from "./logs-cmd.js";
|
|
11
12
|
export { appChipsEvento, isResAppChipsCli, renderAppChipsLines } from "./chips-cmd.js";
|
|
13
|
+
export { appScreenshotEvento, isResAppScreenshotCli, renderAppScreenshotLines, } from "./screenshot-cmd.js";
|
|
12
14
|
export function appSubcommands(ctx) {
|
|
13
15
|
return subcommands({
|
|
14
16
|
name: "app",
|
|
15
|
-
description: "Operate a deployed vibe: scheduled-task health, recovery, its ctx.log diagnostics,
|
|
17
|
+
description: "Operate a deployed vibe: scheduled-task health, recovery, its ctx.log diagnostics, its visitor-facing chips, and its gallery screenshot",
|
|
16
18
|
cmds: {
|
|
17
19
|
status: appStatusCmd(ctx),
|
|
18
20
|
rearm: appRearmCmd(ctx),
|
|
19
21
|
schedule: appScheduleCmd(ctx),
|
|
20
22
|
logs: appLogsCmd(ctx),
|
|
21
23
|
chips: appChipsCmd(ctx),
|
|
24
|
+
screenshot: appScreenshotCmd(ctx),
|
|
22
25
|
},
|
|
23
26
|
});
|
|
24
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../jsr/cli/cmds/app/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAErC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../jsr/cli/cmds/app/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAErC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,oBAAoB,EAAwB,MAAM,iBAAiB,CAAC;AACjH,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,mBAAmB,EAAuB,MAAM,gBAAgB,CAAC;AAC5G,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,yBAAyB,GAE1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,iBAAiB,EAAE,UAAU,EAAsB,MAAM,eAAe,CAAC;AAClH,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,mBAAmB,EAA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