vibes-diy 14.3.6 → 14.3.7
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 +183 -161
- package/cli/cmd-evento.js +2 -1
- package/cli/cmd-evento.js.map +1 -1
- package/cli/cmds/app/anon-write-cmd.d.ts +62 -0
- package/cli/cmds/app/anon-write-cmd.js +173 -0
- package/cli/cmds/app/anon-write-cmd.js.map +1 -0
- package/cli/cmds/app/anon-write-cmd.test.js +90 -0
- package/cli/cmds/app/anon-write-cmd.test.js.map +1 -0
- 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/edit-cmd.js +216 -184
- package/cli/cmds/edit-cmd.js.map +1 -1
- package/cli/cmds/edit-cmd.test.js +129 -8
- package/cli/cmds/edit-cmd.test.js.map +1 -1
- package/cli/cmds/fixtures/edit-agent-lane-edge-vision-gen.json.gz +0 -0
- package/cli/cmds/follow-chat-build.js +12 -0
- package/cli/cmds/follow-chat-build.js.map +1 -1
- package/cli/cmds/follow-chat-build.test.js +30 -0
- package/cli/cmds/follow-chat-build.test.js.map +1 -1
- package/cli/cmds/format-no-files-error.d.ts +1 -0
- package/cli/cmds/format-no-files-error.js +3 -0
- package/cli/cmds/format-no-files-error.js.map +1 -1
- package/cli/cmds/generate-core.js.map +1 -1
- package/cli/cmds/push-from-dir.js +2 -2
- package/cli/cmds/push-from-dir.js.map +1 -1
- package/cli/cmds/push-from-dir.test.js +1 -1
- package/cli/cmds/push-from-dir.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/cmds/resolved-model.d.ts +0 -2
- package/cli/cmds/resolved-model.js +0 -15
- package/cli/cmds/resolved-model.js.map +0 -1
- package/cli/cmds/resolved-model.test.js +0 -70
- package/cli/cmds/resolved-model.test.js.map +0 -1
- /package/cli/cmds/{resolved-model.test.d.ts → app/anon-write-cmd.test.d.ts} +0 -0
package/cli/cmd-evento.d.ts
CHANGED
|
@@ -71,151 +71,23 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
71
71
|
appSlug?: string | undefined;
|
|
72
72
|
output: string;
|
|
73
73
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
74
|
-
type: "vibes-diy.cli.
|
|
75
|
-
appSlug: string;
|
|
76
|
-
prompt: string;
|
|
77
|
-
ownerHandle: string;
|
|
78
|
-
instantJoin?: boolean | undefined;
|
|
79
|
-
verbose: boolean;
|
|
80
|
-
dir: string;
|
|
81
|
-
apiUrl: string;
|
|
82
|
-
dryRun: boolean;
|
|
83
|
-
transcript: boolean;
|
|
84
|
-
directBuild?: boolean | undefined;
|
|
85
|
-
focusPath?: string | undefined;
|
|
86
|
-
model?: string | undefined;
|
|
87
|
-
apiKey?: string | undefined;
|
|
88
|
-
}, {
|
|
89
|
-
appSlug: string;
|
|
90
|
-
ownerHandle: string;
|
|
91
|
-
mode: "dev" | "production";
|
|
92
|
-
fsId: string;
|
|
93
|
-
type: "vibes.diy.res-ensure-app-slug";
|
|
94
|
-
env: Record<string, string>;
|
|
95
|
-
fileSystem: {
|
|
96
|
-
fileName: string;
|
|
97
|
-
mimeType: string;
|
|
98
|
-
assetId: string;
|
|
99
|
-
assetURI: string;
|
|
100
|
-
transform?: {
|
|
101
|
-
type: "jsx-to-js";
|
|
102
|
-
transformedAssetId: string;
|
|
103
|
-
} | {
|
|
104
|
-
type: "imports";
|
|
105
|
-
importMapAssetId: string;
|
|
106
|
-
} | {
|
|
107
|
-
type: "import-map";
|
|
108
|
-
fromAssetIds: string[];
|
|
109
|
-
} | {
|
|
110
|
-
type: "transformed";
|
|
111
|
-
action: "jsx-to-js";
|
|
112
|
-
transformedAssetId: string;
|
|
113
|
-
} | {
|
|
114
|
-
type: "tailwind-css";
|
|
115
|
-
} | undefined;
|
|
116
|
-
entryPoint?: boolean | undefined;
|
|
117
|
-
size: number;
|
|
118
|
-
kind?: "asset" | undefined;
|
|
119
|
-
}[];
|
|
120
|
-
} | {
|
|
121
|
-
type: "vibes.diy.res-error";
|
|
122
|
-
error: {
|
|
123
|
-
message: string;
|
|
124
|
-
code: "require-login";
|
|
125
|
-
};
|
|
126
|
-
} | {
|
|
127
|
-
type: "vibes.diy.res-error";
|
|
128
|
-
error: {
|
|
129
|
-
message: string;
|
|
130
|
-
code: "user-slug-invalid";
|
|
131
|
-
};
|
|
132
|
-
} | {
|
|
133
|
-
type: "vibes.diy.res-error";
|
|
134
|
-
error: {
|
|
135
|
-
message: string;
|
|
136
|
-
code: "app-slug-invalid";
|
|
137
|
-
};
|
|
138
|
-
} | {
|
|
139
|
-
type: "vibes.diy.res-error";
|
|
140
|
-
error: {
|
|
141
|
-
message: string;
|
|
142
|
-
code: "max-app-slugs-reached";
|
|
143
|
-
};
|
|
144
|
-
} | {
|
|
145
|
-
type: "vibes.diy.res-error";
|
|
146
|
-
error: {
|
|
147
|
-
message: string;
|
|
148
|
-
code: "handle-required";
|
|
149
|
-
};
|
|
150
|
-
} | {
|
|
151
|
-
type: "vibes.diy.res-error";
|
|
152
|
-
error: {
|
|
153
|
-
message: string;
|
|
154
|
-
code: "from-not-owned";
|
|
155
|
-
};
|
|
156
|
-
} | {
|
|
157
|
-
type: "vibes.diy.res-error";
|
|
158
|
-
error: {
|
|
159
|
-
message: string;
|
|
160
|
-
code: "from-carry-failed";
|
|
161
|
-
};
|
|
162
|
-
} | {
|
|
163
|
-
type: "vibes-diy.cli.res-edit";
|
|
164
|
-
appSlug: string;
|
|
165
|
-
ownerHandle: string;
|
|
166
|
-
url: string;
|
|
167
|
-
directory: string;
|
|
168
|
-
restyled?: boolean | undefined;
|
|
169
|
-
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
170
|
-
type: "vibes-diy.cli.assets-ls";
|
|
171
|
-
appSlug: string;
|
|
172
|
-
ownerHandle: string;
|
|
74
|
+
type: "vibes-diy.cli.list";
|
|
173
75
|
apiUrl: string;
|
|
174
|
-
published: boolean;
|
|
175
76
|
}, {
|
|
176
|
-
type: "vibes-diy.cli.res-
|
|
177
|
-
appSlug: string;
|
|
178
|
-
ownerHandle: string;
|
|
179
|
-
fsId: string;
|
|
77
|
+
type: "vibes-diy.cli.res-list";
|
|
180
78
|
items: {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
since: string;
|
|
193
|
-
level: string;
|
|
194
|
-
limit: number;
|
|
195
|
-
tail: boolean;
|
|
196
|
-
}, {
|
|
197
|
-
type: "vibes-diy.cli.res-app-logs";
|
|
198
|
-
appSlug: string;
|
|
199
|
-
ownerHandle: string;
|
|
200
|
-
events: {
|
|
201
|
-
id: string;
|
|
202
|
-
ts: string;
|
|
203
|
-
lane: string;
|
|
204
|
-
level: string;
|
|
205
|
-
trigger: string;
|
|
206
|
-
fsId: string;
|
|
207
|
-
body: string;
|
|
208
|
-
sessionId: string | null;
|
|
209
|
-
viewerHandle: string | null;
|
|
79
|
+
ownerHandle: string;
|
|
80
|
+
appSlug: string;
|
|
81
|
+
updated: string;
|
|
82
|
+
title?: string | undefined;
|
|
83
|
+
icon?: {
|
|
84
|
+
cid: string;
|
|
85
|
+
mime: string;
|
|
86
|
+
} | undefined;
|
|
87
|
+
pinnedAt?: string | undefined;
|
|
88
|
+
neverPublished?: boolean | undefined;
|
|
89
|
+
unpublishedAt?: string | undefined;
|
|
210
90
|
}[];
|
|
211
|
-
priorFsId: string | null;
|
|
212
|
-
nextCursor: string | null;
|
|
213
|
-
tail: boolean;
|
|
214
|
-
latestTs?: string | null | undefined;
|
|
215
|
-
since: string;
|
|
216
|
-
level: string;
|
|
217
|
-
sinceTs?: string | undefined;
|
|
218
|
-
firstPage: boolean;
|
|
219
91
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
220
92
|
type: "vibes-diy.cli.app-status";
|
|
221
93
|
appSlug: string;
|
|
@@ -237,6 +109,20 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
237
109
|
graceMs: number;
|
|
238
110
|
overdueMs: number;
|
|
239
111
|
healed: boolean;
|
|
112
|
+
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
113
|
+
type: "vibes-diy.cli.app-chips";
|
|
114
|
+
appSlug: string;
|
|
115
|
+
ownerHandle: string;
|
|
116
|
+
apiUrl: string;
|
|
117
|
+
chips: string[];
|
|
118
|
+
fsId: string;
|
|
119
|
+
}, {
|
|
120
|
+
type: "vibes-diy.cli.res-app-chips";
|
|
121
|
+
appSlug: string;
|
|
122
|
+
ownerHandle: string;
|
|
123
|
+
fsId: string;
|
|
124
|
+
releaseSeq: number;
|
|
125
|
+
chips: string[];
|
|
240
126
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
241
127
|
type: "vibes-diy.cli.app-rearm";
|
|
242
128
|
appSlug: string;
|
|
@@ -261,19 +147,37 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
261
147
|
state: "dead" | "healthy" | "overdue" | "running" | "unscheduled";
|
|
262
148
|
intervalMs: number | null;
|
|
263
149
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
264
|
-
type: "vibes-diy.cli.app-
|
|
150
|
+
type: "vibes-diy.cli.app-logs";
|
|
265
151
|
appSlug: string;
|
|
266
152
|
ownerHandle: string;
|
|
267
153
|
apiUrl: string;
|
|
268
|
-
|
|
269
|
-
|
|
154
|
+
since: string;
|
|
155
|
+
level: string;
|
|
156
|
+
limit: number;
|
|
157
|
+
tail: boolean;
|
|
270
158
|
}, {
|
|
271
|
-
type: "vibes-diy.cli.res-app-
|
|
159
|
+
type: "vibes-diy.cli.res-app-logs";
|
|
272
160
|
appSlug: string;
|
|
273
161
|
ownerHandle: string;
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
162
|
+
events: {
|
|
163
|
+
id: string;
|
|
164
|
+
ts: string;
|
|
165
|
+
lane: string;
|
|
166
|
+
level: string;
|
|
167
|
+
trigger: string;
|
|
168
|
+
fsId: string;
|
|
169
|
+
body: string;
|
|
170
|
+
sessionId: string | null;
|
|
171
|
+
viewerHandle: string | null;
|
|
172
|
+
}[];
|
|
173
|
+
priorFsId: string | null;
|
|
174
|
+
nextCursor: string | null;
|
|
175
|
+
tail: boolean;
|
|
176
|
+
latestTs?: string | null | undefined;
|
|
177
|
+
since: string;
|
|
178
|
+
level: string;
|
|
179
|
+
sinceTs?: string | undefined;
|
|
180
|
+
firstPage: boolean;
|
|
277
181
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
278
182
|
type: "vibes-diy.cli.app-screenshot";
|
|
279
183
|
appSlug: string;
|
|
@@ -316,6 +220,25 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
316
220
|
wroteVariety: boolean;
|
|
317
221
|
clearedVariety: boolean;
|
|
318
222
|
relayout: boolean;
|
|
223
|
+
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
224
|
+
type: "vibes-diy.cli.app-anon-write";
|
|
225
|
+
appSlug: string;
|
|
226
|
+
ownerHandle: string;
|
|
227
|
+
apiUrl: string;
|
|
228
|
+
set: "" | "off" | "on";
|
|
229
|
+
}, {
|
|
230
|
+
type: "vibes-diy.cli.res-app-anon-write";
|
|
231
|
+
ownerHandle: string;
|
|
232
|
+
appSlug: string;
|
|
233
|
+
wrote: boolean;
|
|
234
|
+
posture: string;
|
|
235
|
+
anonWrite: "explicit" | "legacy" | "off";
|
|
236
|
+
wildcardWrite: string[];
|
|
237
|
+
restrictedDbs: {
|
|
238
|
+
dbName: string;
|
|
239
|
+
provenance: "platform-default" | "your-pin";
|
|
240
|
+
write: string[];
|
|
241
|
+
}[];
|
|
319
242
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
320
243
|
type: "vibes-diy.cli.developer";
|
|
321
244
|
apiUrl: string;
|
|
@@ -509,6 +432,9 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
509
432
|
fbc: string;
|
|
510
433
|
clickedAt: number;
|
|
511
434
|
updatedAt: string;
|
|
435
|
+
} | {
|
|
436
|
+
type: "lastVisit";
|
|
437
|
+
day: string;
|
|
512
438
|
} | {
|
|
513
439
|
type: "defaultHandle";
|
|
514
440
|
ownerHandle: string;
|
|
@@ -810,23 +736,101 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
810
736
|
type: "vibes-diy.cli.res-codegen-log-response";
|
|
811
737
|
output: string;
|
|
812
738
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
813
|
-
type: "vibes-diy.cli.
|
|
739
|
+
type: "vibes-diy.cli.edit";
|
|
740
|
+
appSlug: string;
|
|
741
|
+
prompt: string;
|
|
742
|
+
ownerHandle: string;
|
|
743
|
+
instantJoin?: boolean | undefined;
|
|
744
|
+
verbose: boolean;
|
|
745
|
+
dir: string;
|
|
814
746
|
apiUrl: string;
|
|
747
|
+
dryRun: boolean;
|
|
748
|
+
transcript: boolean;
|
|
749
|
+
directBuild?: boolean | undefined;
|
|
750
|
+
focusPath?: string | undefined;
|
|
751
|
+
model?: string | undefined;
|
|
752
|
+
apiKey?: string | undefined;
|
|
815
753
|
}, {
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
754
|
+
appSlug: string;
|
|
755
|
+
ownerHandle: string;
|
|
756
|
+
mode: "dev" | "production";
|
|
757
|
+
fsId: string;
|
|
758
|
+
type: "vibes.diy.res-ensure-app-slug";
|
|
759
|
+
env: Record<string, string>;
|
|
760
|
+
fileSystem: {
|
|
761
|
+
fileName: string;
|
|
762
|
+
mimeType: string;
|
|
763
|
+
assetId: string;
|
|
764
|
+
assetURI: string;
|
|
765
|
+
transform?: {
|
|
766
|
+
type: "jsx-to-js";
|
|
767
|
+
transformedAssetId: string;
|
|
768
|
+
} | {
|
|
769
|
+
type: "imports";
|
|
770
|
+
importMapAssetId: string;
|
|
771
|
+
} | {
|
|
772
|
+
type: "import-map";
|
|
773
|
+
fromAssetIds: string[];
|
|
774
|
+
} | {
|
|
775
|
+
type: "transformed";
|
|
776
|
+
action: "jsx-to-js";
|
|
777
|
+
transformedAssetId: string;
|
|
778
|
+
} | {
|
|
779
|
+
type: "tailwind-css";
|
|
825
780
|
} | undefined;
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
781
|
+
entryPoint?: boolean | undefined;
|
|
782
|
+
size: number;
|
|
783
|
+
kind?: "asset" | undefined;
|
|
829
784
|
}[];
|
|
785
|
+
} | {
|
|
786
|
+
type: "vibes.diy.res-error";
|
|
787
|
+
error: {
|
|
788
|
+
message: string;
|
|
789
|
+
code: "require-login";
|
|
790
|
+
};
|
|
791
|
+
} | {
|
|
792
|
+
type: "vibes.diy.res-error";
|
|
793
|
+
error: {
|
|
794
|
+
message: string;
|
|
795
|
+
code: "user-slug-invalid";
|
|
796
|
+
};
|
|
797
|
+
} | {
|
|
798
|
+
type: "vibes.diy.res-error";
|
|
799
|
+
error: {
|
|
800
|
+
message: string;
|
|
801
|
+
code: "app-slug-invalid";
|
|
802
|
+
};
|
|
803
|
+
} | {
|
|
804
|
+
type: "vibes.diy.res-error";
|
|
805
|
+
error: {
|
|
806
|
+
message: string;
|
|
807
|
+
code: "max-app-slugs-reached";
|
|
808
|
+
};
|
|
809
|
+
} | {
|
|
810
|
+
type: "vibes.diy.res-error";
|
|
811
|
+
error: {
|
|
812
|
+
message: string;
|
|
813
|
+
code: "handle-required";
|
|
814
|
+
};
|
|
815
|
+
} | {
|
|
816
|
+
type: "vibes.diy.res-error";
|
|
817
|
+
error: {
|
|
818
|
+
message: string;
|
|
819
|
+
code: "from-not-owned";
|
|
820
|
+
};
|
|
821
|
+
} | {
|
|
822
|
+
type: "vibes.diy.res-error";
|
|
823
|
+
error: {
|
|
824
|
+
message: string;
|
|
825
|
+
code: "from-carry-failed";
|
|
826
|
+
};
|
|
827
|
+
} | {
|
|
828
|
+
type: "vibes-diy.cli.res-edit";
|
|
829
|
+
appSlug: string;
|
|
830
|
+
ownerHandle: string;
|
|
831
|
+
url: string;
|
|
832
|
+
directory: string;
|
|
833
|
+
restyled?: boolean | undefined;
|
|
830
834
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
831
835
|
type: "vibes-diy.cli.pull";
|
|
832
836
|
appSlug: string;
|
|
@@ -862,6 +866,24 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
862
866
|
created: string;
|
|
863
867
|
published: boolean;
|
|
864
868
|
}[];
|
|
869
|
+
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
870
|
+
type: "vibes-diy.cli.assets-ls";
|
|
871
|
+
appSlug: string;
|
|
872
|
+
ownerHandle: string;
|
|
873
|
+
apiUrl: string;
|
|
874
|
+
published: boolean;
|
|
875
|
+
}, {
|
|
876
|
+
type: "vibes-diy.cli.res-assets-ls";
|
|
877
|
+
appSlug: string;
|
|
878
|
+
ownerHandle: string;
|
|
879
|
+
fsId: string;
|
|
880
|
+
items: {
|
|
881
|
+
path: string;
|
|
882
|
+
mime: string;
|
|
883
|
+
size: number;
|
|
884
|
+
cid: string;
|
|
885
|
+
safety: "error" | "high" | "low" | "pending" | "unknown";
|
|
886
|
+
}[];
|
|
865
887
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
866
888
|
type: "vibes-diy.cli.set-unpublish";
|
|
867
889
|
appSlug: string;
|
package/cli/cmd-evento.js
CHANGED
|
@@ -16,7 +16,7 @@ import { listEvento } from "./cmds/list-cmd.js";
|
|
|
16
16
|
import { pullEvento } from "./cmds/pull-cmd.js";
|
|
17
17
|
import { versionsEvento } from "./cmds/versions-cmd.js";
|
|
18
18
|
import { assetsLsEvento } from "./cmds/assets-cmd.js";
|
|
19
|
-
import { appStatusEvento, appRearmEvento, appScheduleOffEvento, appLogsEvento, appChipsEvento, appScreenshotEvento, appLookEvento, } from "./cmds/app/index.js";
|
|
19
|
+
import { appStatusEvento, appRearmEvento, appScheduleOffEvento, appLogsEvento, appChipsEvento, appScreenshotEvento, appLookEvento, appAnonWriteEvento, } from "./cmds/app/index.js";
|
|
20
20
|
import { setUnpublishEvento, publishEvento } from "./cmds/unpublish-cmd.js";
|
|
21
21
|
import { secretsEvento } from "./cmds/secrets/secrets-cmd.js";
|
|
22
22
|
import { recommendEvento } from "./cmds/recommend/recommend-cmd.js";
|
|
@@ -51,6 +51,7 @@ export function cliEventoHandlers() {
|
|
|
51
51
|
appLogsEvento,
|
|
52
52
|
appChipsEvento,
|
|
53
53
|
appLookEvento,
|
|
54
|
+
appAnonWriteEvento,
|
|
54
55
|
setUnpublishEvento,
|
|
55
56
|
publishEvento,
|
|
56
57
|
secretsEvento,
|
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,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,WAA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B;IAC/B,OAAO;QACL,kBAAkB;QAClB,YAAY;QACZ,YAAY;QACZ,aAAa;QACb,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,aAAa;QACb,kBAAkB;QAClB,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"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Result, EventoHandler } from "@adviser/cement";
|
|
2
|
+
import type { AppEnvelopeReadout, AnonWriteMode } from "@vibes.diy/api-types";
|
|
3
|
+
import { CliCtx } from "../../cli-ctx.js";
|
|
4
|
+
import { WrapCmdTSMsg } from "../../cmd-evento.js";
|
|
5
|
+
export declare const ANON_WRITE_WORDS: readonly ["on", "off"];
|
|
6
|
+
export type AnonWriteWord = (typeof ANON_WRITE_WORDS)[number];
|
|
7
|
+
export declare function anonWriteModeFor(word: AnonWriteWord): AnonWriteMode;
|
|
8
|
+
export declare const ReqAppAnonWrite: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
9
|
+
type: "vibes-diy.cli.app-anon-write";
|
|
10
|
+
appSlug: string;
|
|
11
|
+
ownerHandle: string;
|
|
12
|
+
apiUrl: string;
|
|
13
|
+
set: "" | "off" | "on";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type ReqAppAnonWrite = typeof ReqAppAnonWrite.infer;
|
|
16
|
+
export declare function isReqAppAnonWrite(obj: unknown): obj is ReqAppAnonWrite;
|
|
17
|
+
export declare const ResAppAnonWriteCli: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
18
|
+
type: "vibes-diy.cli.res-app-anon-write";
|
|
19
|
+
ownerHandle: string;
|
|
20
|
+
appSlug: string;
|
|
21
|
+
wrote: boolean;
|
|
22
|
+
posture: string;
|
|
23
|
+
anonWrite: "explicit" | "legacy" | "off";
|
|
24
|
+
wildcardWrite: string[];
|
|
25
|
+
restrictedDbs: {
|
|
26
|
+
dbName: string;
|
|
27
|
+
provenance: "platform-default" | "your-pin";
|
|
28
|
+
write: string[];
|
|
29
|
+
}[];
|
|
30
|
+
}, {}>;
|
|
31
|
+
export type ResAppAnonWriteCli = typeof ResAppAnonWriteCli.infer;
|
|
32
|
+
export declare function isResAppAnonWriteCli(obj: unknown): obj is ResAppAnonWriteCli;
|
|
33
|
+
export declare function appAnonWriteFromEnvelope(input: {
|
|
34
|
+
readonly ownerHandle: string;
|
|
35
|
+
readonly appSlug: string;
|
|
36
|
+
readonly wrote: boolean;
|
|
37
|
+
readonly envelope: AppEnvelopeReadout;
|
|
38
|
+
}): ResAppAnonWriteCli;
|
|
39
|
+
export declare function renderAppAnonWriteLines(msg: ResAppAnonWriteCli): string[];
|
|
40
|
+
export declare const appAnonWriteEvento: EventoHandler<WrapCmdTSMsg<unknown>, ReqAppAnonWrite, ResAppAnonWriteCli>;
|
|
41
|
+
export declare function parseAnonWriteWord(raw: string | undefined): Result<"" | AnonWriteWord>;
|
|
42
|
+
export declare function appAnonWriteCmd(ctx: CliCtx): Partial<import("cmd-ts/dist/cjs/argparser.js").Register> & {
|
|
43
|
+
parse(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<{
|
|
44
|
+
apiUrl: string;
|
|
45
|
+
json: boolean;
|
|
46
|
+
text: boolean;
|
|
47
|
+
appSlug: string | undefined;
|
|
48
|
+
mode: string | undefined;
|
|
49
|
+
vibe: string;
|
|
50
|
+
handle: string;
|
|
51
|
+
}>>;
|
|
52
|
+
} & import("cmd-ts/dist/cjs/helpdoc.js").PrintHelp & import("cmd-ts/dist/cjs/helpdoc.js").ProvidesHelp & import("cmd-ts/dist/cjs/helpdoc.js").Named & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Versioned> & import("cmd-ts/dist/cjs/argparser.js").Register & import("cmd-ts/dist/cjs/runner.js").Handling<{
|
|
53
|
+
apiUrl: string;
|
|
54
|
+
json: boolean;
|
|
55
|
+
text: boolean;
|
|
56
|
+
appSlug: string | undefined;
|
|
57
|
+
mode: string | undefined;
|
|
58
|
+
vibe: string;
|
|
59
|
+
handle: string;
|
|
60
|
+
}, never> & {
|
|
61
|
+
run(context: import("cmd-ts/dist/cjs/argparser.js").ParseContext): Promise<import("cmd-ts/dist/cjs/argparser.js").ParsingResult<never>>;
|
|
62
|
+
} & Partial<import("cmd-ts/dist/cjs/helpdoc.js").Versioned & import("cmd-ts/dist/cjs/helpdoc.js").Descriptive & import("cmd-ts/dist/cjs/helpdoc.js").Aliased>;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { command, option, optional, positional, string } from "cmd-ts";
|
|
2
|
+
import { Result, Option } from "@adviser/cement";
|
|
3
|
+
import { type } from "arktype";
|
|
4
|
+
import { cmdTsDefaultArgs } from "../../cli-ctx.js";
|
|
5
|
+
import { sendMsg } from "../../cmd-evento.js";
|
|
6
|
+
import { resolveHandle } from "../../resolve-handle.js";
|
|
7
|
+
import { resolveVibePositionals } from "../../parse-vibe.js";
|
|
8
|
+
import { formatErr } from "../format-err.js";
|
|
9
|
+
import { HANDLE_REQUIRED_CLI_MESSAGE } from "../../handle-required.js";
|
|
10
|
+
export const ANON_WRITE_WORDS = ["on", "off"];
|
|
11
|
+
export function anonWriteModeFor(word) {
|
|
12
|
+
return word === "on" ? "explicit" : "off";
|
|
13
|
+
}
|
|
14
|
+
export const ReqAppAnonWrite = type({
|
|
15
|
+
type: "'vibes-diy.cli.app-anon-write'",
|
|
16
|
+
appSlug: "string",
|
|
17
|
+
ownerHandle: "string",
|
|
18
|
+
apiUrl: "string",
|
|
19
|
+
set: "'' | 'on' | 'off'",
|
|
20
|
+
});
|
|
21
|
+
export function isReqAppAnonWrite(obj) {
|
|
22
|
+
return !(ReqAppAnonWrite(obj) instanceof type.errors);
|
|
23
|
+
}
|
|
24
|
+
const DbWriteRow = type({ dbName: "string", provenance: "'platform-default' | 'your-pin'", write: "string[]" });
|
|
25
|
+
export const ResAppAnonWriteCli = type({
|
|
26
|
+
type: "'vibes-diy.cli.res-app-anon-write'",
|
|
27
|
+
ownerHandle: "string",
|
|
28
|
+
appSlug: "string",
|
|
29
|
+
wrote: "boolean",
|
|
30
|
+
posture: "string",
|
|
31
|
+
anonWrite: "'explicit' | 'legacy' | 'off'",
|
|
32
|
+
wildcardWrite: "string[]",
|
|
33
|
+
restrictedDbs: DbWriteRow.array(),
|
|
34
|
+
});
|
|
35
|
+
export function isResAppAnonWriteCli(obj) {
|
|
36
|
+
return !(ResAppAnonWriteCli(obj) instanceof type.errors);
|
|
37
|
+
}
|
|
38
|
+
export function appAnonWriteFromEnvelope(input) {
|
|
39
|
+
const wildcardWrite = [...(input.envelope.wildcard.write ?? [])];
|
|
40
|
+
const restrictedDbs = input.envelope.dbs
|
|
41
|
+
.filter((row) => row.absorbed === false)
|
|
42
|
+
.map((row) => ({ dbName: row.dbName, provenance: row.provenance, write: [...(row.effective.write ?? [])] }));
|
|
43
|
+
return {
|
|
44
|
+
type: "vibes-diy.cli.res-app-anon-write",
|
|
45
|
+
ownerHandle: input.ownerHandle,
|
|
46
|
+
appSlug: input.appSlug,
|
|
47
|
+
wrote: input.wrote,
|
|
48
|
+
posture: input.envelope.posture,
|
|
49
|
+
anonWrite: input.envelope.anonWrite,
|
|
50
|
+
wildcardWrite,
|
|
51
|
+
restrictedDbs,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function subjects(list) {
|
|
55
|
+
return list.length === 0 ? "(owner only)" : list.join(", ");
|
|
56
|
+
}
|
|
57
|
+
export function renderAppAnonWriteLines(msg) {
|
|
58
|
+
const admits = msg.anonWrite === "explicit" || msg.anonWrite === "legacy";
|
|
59
|
+
const lines = [
|
|
60
|
+
`${msg.ownerHandle}/${msg.appSlug}`,
|
|
61
|
+
` anonWrite ${msg.anonWrite}${msg.anonWrite === "legacy" ? " (grandfathered by migration)" : ""}`,
|
|
62
|
+
` posture ${msg.posture}`,
|
|
63
|
+
` wildcard.write ${subjects(msg.wildcardWrite)}`,
|
|
64
|
+
];
|
|
65
|
+
for (const row of msg.restrictedDbs) {
|
|
66
|
+
lines.push(` db ${row.dbName} write ${subjects(row.write)} (${row.provenance})`);
|
|
67
|
+
}
|
|
68
|
+
if (msg.wrote) {
|
|
69
|
+
lines.push(admits
|
|
70
|
+
? "Signed-out visitors can now write, wherever access.js allows it (allowAnonymous: true). Revoke with `off`."
|
|
71
|
+
: "Signed-out writes now stay on the visitor's device. Turn them back on with `on`.");
|
|
72
|
+
}
|
|
73
|
+
if (admits && msg.posture === "private") {
|
|
74
|
+
lines.push("Note: this app is private, so signed-out visitors cannot open it. Push with --access open or gated to reach them.");
|
|
75
|
+
}
|
|
76
|
+
return lines;
|
|
77
|
+
}
|
|
78
|
+
export const appAnonWriteEvento = {
|
|
79
|
+
hash: "vibes-diy.cli.app-anon-write",
|
|
80
|
+
validate: (ctx) => {
|
|
81
|
+
if (isReqAppAnonWrite(ctx.enRequest)) {
|
|
82
|
+
return Promise.resolve(Result.Ok(Option.Some(ctx.enRequest)));
|
|
83
|
+
}
|
|
84
|
+
return Promise.resolve(Result.Ok(Option.None()));
|
|
85
|
+
},
|
|
86
|
+
handle: async (ctx) => {
|
|
87
|
+
const ectx = ctx.ctx.getOrThrow("cliCtx");
|
|
88
|
+
if (!ectx.vibesDiyApiFactory) {
|
|
89
|
+
return Result.Err("Not logged in. Run 'vibes-diy login' first.");
|
|
90
|
+
}
|
|
91
|
+
const args = ctx.validated;
|
|
92
|
+
const api = ectx.vibesDiyApiFactory(args.apiUrl);
|
|
93
|
+
const ownerHandle = await resolveHandle(api, args.ownerHandle === "" ? undefined : args.ownerHandle);
|
|
94
|
+
if (ownerHandle === undefined) {
|
|
95
|
+
return Result.Err(HANDLE_REQUIRED_CLI_MESSAGE);
|
|
96
|
+
}
|
|
97
|
+
if (args.appSlug === "") {
|
|
98
|
+
return Result.Err("Missing vibe — pass an app slug or handle/app-slug.");
|
|
99
|
+
}
|
|
100
|
+
const wrote = args.set !== "";
|
|
101
|
+
const rRes = await api.ensureAppSettings({
|
|
102
|
+
appSlug: args.appSlug,
|
|
103
|
+
ownerHandle,
|
|
104
|
+
...(wrote ? { anonWrite: anonWriteModeFor(args.set) } : {}),
|
|
105
|
+
});
|
|
106
|
+
if (rRes.isErr()) {
|
|
107
|
+
return Result.Err(formatErr(rRes.Err()));
|
|
108
|
+
}
|
|
109
|
+
const res = rRes.Ok();
|
|
110
|
+
if (res.error !== undefined) {
|
|
111
|
+
return Result.Err(res.error);
|
|
112
|
+
}
|
|
113
|
+
if (res.envelope === undefined) {
|
|
114
|
+
return Result.Err(`${ownerHandle}/${args.appSlug}: the server returned no envelope readout; the dial state is unknown.`);
|
|
115
|
+
}
|
|
116
|
+
return sendMsg(ctx, appAnonWriteFromEnvelope({ ownerHandle, appSlug: args.appSlug, wrote, envelope: res.envelope }));
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
export function parseAnonWriteWord(raw) {
|
|
120
|
+
if (raw === undefined || raw === "")
|
|
121
|
+
return Result.Ok("");
|
|
122
|
+
if (ANON_WRITE_WORDS.includes(raw))
|
|
123
|
+
return Result.Ok(raw);
|
|
124
|
+
return Result.Err(`Expected on or off (got "${raw}"). Run with no argument to read the current state.`);
|
|
125
|
+
}
|
|
126
|
+
export function appAnonWriteCmd(ctx) {
|
|
127
|
+
return command({
|
|
128
|
+
name: "anon-write",
|
|
129
|
+
description: "Read or set whether signed-out visitors' writes reach the server (owner, or a developer they delegated). `on` admits them wherever access.js allows it; `off` keeps them on the visitor's device. No argument reads. Default is off.",
|
|
130
|
+
args: {
|
|
131
|
+
...cmdTsDefaultArgs(ctx),
|
|
132
|
+
appSlug: positional({
|
|
133
|
+
displayName: "vibe",
|
|
134
|
+
description: "App slug or handle/app-slug (e.g. jchris/guestbook)",
|
|
135
|
+
type: optional(string),
|
|
136
|
+
}),
|
|
137
|
+
mode: positional({
|
|
138
|
+
displayName: "on|off",
|
|
139
|
+
description: "on = admit anonymous writes, off = revoke. Omit to read.",
|
|
140
|
+
type: optional(string),
|
|
141
|
+
}),
|
|
142
|
+
vibe: option({
|
|
143
|
+
long: "vibe",
|
|
144
|
+
description: "Vibe identifier as handle/app-slug",
|
|
145
|
+
type: string,
|
|
146
|
+
defaultValue: () => "",
|
|
147
|
+
defaultValueIsSerializable: true,
|
|
148
|
+
}),
|
|
149
|
+
handle: option({
|
|
150
|
+
long: "handle",
|
|
151
|
+
description: "Act as this bound handle for this call only (leaves your default handle unchanged)",
|
|
152
|
+
type: string,
|
|
153
|
+
defaultValue: () => "",
|
|
154
|
+
defaultValueIsSerializable: true,
|
|
155
|
+
}),
|
|
156
|
+
},
|
|
157
|
+
handler: ctx.cliStream.enqueue((args) => {
|
|
158
|
+
const resolved = resolveVibePositionals({ vibe: args.vibe, handle: args.handle, positionals: [args.appSlug, args.mode] });
|
|
159
|
+
const rWord = parseAnonWriteWord(resolved.trailing[0]);
|
|
160
|
+
if (rWord.isErr()) {
|
|
161
|
+
throw new Error(rWord.Err().message);
|
|
162
|
+
}
|
|
163
|
+
return {
|
|
164
|
+
type: "vibes-diy.cli.app-anon-write",
|
|
165
|
+
appSlug: resolved.appSlug,
|
|
166
|
+
ownerHandle: resolved.handle,
|
|
167
|
+
apiUrl: args.apiUrl,
|
|
168
|
+
set: rWord.Ok(),
|
|
169
|
+
};
|
|
170
|
+
}),
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
//# s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