vibes-diy 14.3.339 → 14.3.340
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 +259 -243
- package/cli/cmd-evento.js +2 -1
- package/cli/cmds/app/look-style-edits.js +23 -2
- package/cli/cmds/app/rearm-cmd.d.ts +2 -0
- package/cli/cmds/app/rearm-cmd.js +8 -0
- package/cli/cmds/app/status-cmd.d.ts +4 -0
- package/cli/cmds/app/status-cmd.js +17 -0
- package/cli/cmds/credits-wall.d.ts +1 -0
- package/cli/cmds/credits-wall.js +5 -3
- package/cli/cmds/generate-cmd.js +5 -2
- package/cli/cmds/generate-core.js +55 -11
- package/cli/cmds/phone-link-cmd.d.ts +46 -0
- package/cli/cmds/phone-link-cmd.js +87 -1
- package/cli/cmds/publish-saved-build.d.ts +16 -0
- package/cli/cmds/publish-saved-build.js +12 -1
- package/cli/cmds/run/backend-worker/run-backend-entry.js +2902 -1333
- package/cli/cmds/run/bundle-inputs.json +6 -0
- package/cli/cmds/run/run-bundle.js +2950 -1389
- package/cli/main.js +14 -2
- package/package.json +8 -8
package/cli/cmd-evento.d.ts
CHANGED
|
@@ -2,193 +2,91 @@ 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;
|
|
15
|
-
cert?: string | undefined;
|
|
16
|
-
noBrowser?: boolean | undefined;
|
|
17
|
-
apiUrl?: string | undefined;
|
|
18
|
-
expectHandle?: string | undefined;
|
|
19
|
-
expectUser?: string | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
type: "core-cli.res-device-id-register";
|
|
22
|
-
output: string;
|
|
23
|
-
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
24
|
-
type: "vibes-diy.cli.variety";
|
|
5
|
+
type: "use-vibes.cli.themes";
|
|
25
6
|
}, {
|
|
26
|
-
type: "vibes
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
id: string;
|
|
31
|
-
guidance: string;
|
|
32
|
-
}[];
|
|
33
|
-
flourishes: {
|
|
34
|
-
id: string;
|
|
35
|
-
guidance: string;
|
|
7
|
+
type: "use-vibes.cli.res-themes-list";
|
|
8
|
+
themes: {
|
|
9
|
+
slug: string;
|
|
10
|
+
name: string;
|
|
36
11
|
}[];
|
|
12
|
+
} | {
|
|
13
|
+
type: "use-vibes.cli.res-theme-content";
|
|
14
|
+
slug: string;
|
|
15
|
+
content: string;
|
|
37
16
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
38
|
-
type: "vibes-diy.cli.
|
|
39
|
-
file: string;
|
|
40
|
-
appSlug: string;
|
|
41
|
-
ownerHandle: string;
|
|
17
|
+
type: "vibes-diy.cli.db.get";
|
|
42
18
|
apiUrl: string;
|
|
43
|
-
mimeType: string;
|
|
44
|
-
verifyFetch: boolean;
|
|
45
|
-
}, {
|
|
46
|
-
type: "vibes-diy.cli.res-put-asset";
|
|
47
|
-
cid: string;
|
|
48
|
-
getURL: string;
|
|
49
|
-
size: number;
|
|
50
|
-
uploadId: string;
|
|
51
|
-
verified?: boolean | undefined;
|
|
52
|
-
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
53
|
-
type: "vibes-diy.cli.generate";
|
|
54
|
-
prompt: string;
|
|
55
19
|
appSlug: string;
|
|
56
20
|
ownerHandle: string;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
apiUrl: string;
|
|
62
|
-
focusPath?: string | undefined;
|
|
63
|
-
model?: string | undefined;
|
|
64
|
-
builderModel?: string | undefined;
|
|
65
|
-
apiKey?: string | undefined;
|
|
66
|
-
variety?: string | undefined;
|
|
67
|
-
record?: string | undefined;
|
|
68
|
-
style?: string | undefined;
|
|
69
|
-
fastPass?: boolean | undefined;
|
|
21
|
+
dbName: string;
|
|
22
|
+
docId: string;
|
|
23
|
+
admin: boolean;
|
|
24
|
+
actingHandle: string;
|
|
70
25
|
}, {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
fsId: string;
|
|
75
|
-
type: "vibes.diy.res-ensure-app-slug";
|
|
76
|
-
env: Record<string, string>;
|
|
77
|
-
fileSystem: {
|
|
78
|
-
fileName: string;
|
|
79
|
-
mimeType: string;
|
|
80
|
-
assetId: string;
|
|
81
|
-
assetURI: string;
|
|
82
|
-
transform?: {
|
|
83
|
-
type: "jsx-to-js";
|
|
84
|
-
transformedAssetId: string;
|
|
85
|
-
} | {
|
|
86
|
-
type: "imports";
|
|
87
|
-
importMapAssetId: string;
|
|
88
|
-
} | {
|
|
89
|
-
type: "import-map";
|
|
90
|
-
fromAssetIds: string[];
|
|
91
|
-
} | {
|
|
92
|
-
type: "transformed";
|
|
93
|
-
action: "jsx-to-js";
|
|
94
|
-
transformedAssetId: string;
|
|
95
|
-
} | {
|
|
96
|
-
type: "tailwind-css";
|
|
97
|
-
} | undefined;
|
|
98
|
-
entryPoint?: boolean | undefined;
|
|
99
|
-
size: number;
|
|
100
|
-
kind?: "asset" | undefined;
|
|
101
|
-
uploadId?: string | undefined;
|
|
102
|
-
}[];
|
|
103
|
-
autoEnhanceOff?: true | undefined;
|
|
104
|
-
appCreated?: true | undefined;
|
|
105
|
-
} | {
|
|
106
|
-
type: "vibes.diy.res-error";
|
|
107
|
-
error: {
|
|
108
|
-
message: string;
|
|
109
|
-
code: "require-login";
|
|
110
|
-
};
|
|
111
|
-
} | {
|
|
112
|
-
type: "vibes.diy.res-error";
|
|
113
|
-
error: {
|
|
114
|
-
message: string;
|
|
115
|
-
code: "user-slug-invalid";
|
|
116
|
-
};
|
|
117
|
-
} | {
|
|
118
|
-
type: "vibes.diy.res-error";
|
|
119
|
-
error: {
|
|
120
|
-
message: string;
|
|
121
|
-
code: "app-slug-invalid";
|
|
122
|
-
};
|
|
123
|
-
} | {
|
|
124
|
-
type: "vibes.diy.res-error";
|
|
125
|
-
error: {
|
|
126
|
-
message: string;
|
|
127
|
-
code: "max-app-slugs-reached";
|
|
128
|
-
};
|
|
129
|
-
} | {
|
|
130
|
-
type: "vibes.diy.res-error";
|
|
131
|
-
error: {
|
|
132
|
-
message: string;
|
|
133
|
-
code: "handle-required";
|
|
134
|
-
};
|
|
135
|
-
} | {
|
|
136
|
-
type: "vibes.diy.res-error";
|
|
137
|
-
error: {
|
|
138
|
-
message: string;
|
|
139
|
-
code: "from-not-owned";
|
|
140
|
-
};
|
|
141
|
-
} | {
|
|
142
|
-
type: "vibes.diy.res-error";
|
|
143
|
-
error: {
|
|
144
|
-
message: string;
|
|
145
|
-
code: "from-carry-failed";
|
|
146
|
-
};
|
|
147
|
-
} | {
|
|
148
|
-
type: "vibes.diy.res-error";
|
|
149
|
-
error: {
|
|
150
|
-
message: string;
|
|
151
|
-
code: "auto-enhance-off";
|
|
26
|
+
type: "vibes-diy.cli.db.get-res";
|
|
27
|
+
doc: {
|
|
28
|
+
[x: string]: unknown;
|
|
152
29
|
};
|
|
153
|
-
} | {
|
|
154
|
-
type: "vibes-diy.cli.res-generate";
|
|
155
|
-
appSlug: string;
|
|
156
|
-
ownerHandle: string;
|
|
157
|
-
url: string;
|
|
158
|
-
directory: string;
|
|
159
|
-
release?: "not-visible" | "published" | "version-locked" | undefined;
|
|
160
|
-
turns?: number | undefined;
|
|
161
|
-
publish?: "kept-private-no-access-fn" | "private" | "published" | undefined;
|
|
162
|
-
posture?: "gated" | "open" | "private" | undefined;
|
|
163
30
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
164
|
-
type: "vibes-diy.cli.db.
|
|
31
|
+
type: "vibes-diy.cli.db.del";
|
|
165
32
|
apiUrl: string;
|
|
166
33
|
appSlug: string;
|
|
167
34
|
ownerHandle: string;
|
|
168
35
|
dbName: string;
|
|
169
|
-
|
|
170
|
-
key: string;
|
|
171
|
-
prefix: string;
|
|
172
|
-
range: string;
|
|
173
|
-
limit: number;
|
|
174
|
-
descending: boolean;
|
|
36
|
+
docId: string;
|
|
175
37
|
admin: boolean;
|
|
176
38
|
actingHandle: string;
|
|
177
39
|
}, {
|
|
178
|
-
type: "vibes-diy.cli.db.
|
|
179
|
-
|
|
180
|
-
|
|
40
|
+
type: "vibes-diy.cli.db.del-res";
|
|
41
|
+
id: string;
|
|
42
|
+
ok: true;
|
|
43
|
+
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
44
|
+
type: "vibes-diy.cli.db.seed";
|
|
45
|
+
action: "add" | "remove";
|
|
46
|
+
apiUrl: string;
|
|
47
|
+
appSlug: string;
|
|
48
|
+
ownerHandle: string;
|
|
49
|
+
}, {
|
|
50
|
+
type: "vibes-diy.cli.db.seed-res";
|
|
51
|
+
action: "add" | "remove";
|
|
52
|
+
appSlug: string;
|
|
53
|
+
ownerHandle: string;
|
|
54
|
+
seedFile: "absent" | "invalid" | "present" | "unknown";
|
|
55
|
+
changed: number;
|
|
56
|
+
skipped: number;
|
|
57
|
+
failed: number;
|
|
58
|
+
perDb: {
|
|
59
|
+
dbName: string;
|
|
60
|
+
changed: number;
|
|
61
|
+
skipped: number;
|
|
62
|
+
failed: number;
|
|
181
63
|
}[];
|
|
182
64
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
183
|
-
type: "vibes-diy.cli.
|
|
65
|
+
type: "vibes-diy.cli.doctor";
|
|
184
66
|
apiUrl: string;
|
|
185
67
|
}, {
|
|
186
|
-
type: "vibes-diy.cli.res-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
68
|
+
type: "vibes-diy.cli.res-doctor";
|
|
69
|
+
cliVersion: string;
|
|
70
|
+
node: string;
|
|
71
|
+
keybagPath: string;
|
|
72
|
+
keybagInstance?: string | undefined;
|
|
73
|
+
device: string;
|
|
74
|
+
deviceOk: boolean;
|
|
75
|
+
fingerprint?: string | undefined;
|
|
76
|
+
certExpires?: string | undefined;
|
|
77
|
+
apiUrl: string;
|
|
78
|
+
wsUrl: string;
|
|
79
|
+
proxy: string;
|
|
80
|
+
handshake: {
|
|
81
|
+
ok: boolean;
|
|
82
|
+
detail: string;
|
|
83
|
+
ms?: number | undefined;
|
|
84
|
+
};
|
|
85
|
+
auth?: {
|
|
86
|
+
ok: boolean;
|
|
87
|
+
detail: string;
|
|
88
|
+
ms?: number | undefined;
|
|
89
|
+
} | undefined;
|
|
192
90
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
193
91
|
type: "vibes-diy.cli.app-status";
|
|
194
92
|
appSlug: string;
|
|
@@ -211,6 +109,8 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
211
109
|
overdueMs: number;
|
|
212
110
|
healed: boolean;
|
|
213
111
|
releaseIntervalMs: number | null;
|
|
112
|
+
pausedIntervalMs: number | null;
|
|
113
|
+
settingsUrl: string;
|
|
214
114
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
215
115
|
type: "vibes-diy.cli.app-chips";
|
|
216
116
|
appSlug: string;
|
|
@@ -500,9 +400,6 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
500
400
|
email: string;
|
|
501
401
|
updatedAt: string;
|
|
502
402
|
verified?: boolean | undefined;
|
|
503
|
-
} | {
|
|
504
|
-
type: "onboarding";
|
|
505
|
-
completedAt: string;
|
|
506
403
|
} | {
|
|
507
404
|
type: "geoCountry";
|
|
508
405
|
country: string;
|
|
@@ -513,6 +410,9 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
513
410
|
[x: string]: string;
|
|
514
411
|
};
|
|
515
412
|
updatedAt: string;
|
|
413
|
+
} | {
|
|
414
|
+
type: "onboarding";
|
|
415
|
+
completedAt: string;
|
|
516
416
|
} | {
|
|
517
417
|
type: "kyc";
|
|
518
418
|
cardAt?: string | undefined;
|
|
@@ -620,17 +520,19 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
620
520
|
name: string;
|
|
621
521
|
content: string;
|
|
622
522
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
623
|
-
type: "
|
|
523
|
+
type: "vibes-diy.cli.variety";
|
|
624
524
|
}, {
|
|
625
|
-
type: "
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
525
|
+
type: "vibes-diy.cli.res-variety-list";
|
|
526
|
+
grammar: string;
|
|
527
|
+
flourishCount: number;
|
|
528
|
+
archetypes: {
|
|
529
|
+
id: string;
|
|
530
|
+
guidance: string;
|
|
531
|
+
}[];
|
|
532
|
+
flourishes: {
|
|
533
|
+
id: string;
|
|
534
|
+
guidance: string;
|
|
629
535
|
}[];
|
|
630
|
-
} | {
|
|
631
|
-
type: "use-vibes.cli.res-theme-content";
|
|
632
|
-
slug: string;
|
|
633
|
-
content: string;
|
|
634
536
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
635
537
|
type: "vibes-diy.cli.system";
|
|
636
538
|
}, {
|
|
@@ -817,6 +719,132 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
817
719
|
model: string;
|
|
818
720
|
};
|
|
819
721
|
};
|
|
722
|
+
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
723
|
+
type: "vibes-diy.cli.put-asset";
|
|
724
|
+
file: string;
|
|
725
|
+
appSlug: string;
|
|
726
|
+
ownerHandle: string;
|
|
727
|
+
apiUrl: string;
|
|
728
|
+
mimeType: string;
|
|
729
|
+
verifyFetch: boolean;
|
|
730
|
+
}, {
|
|
731
|
+
type: "vibes-diy.cli.res-put-asset";
|
|
732
|
+
cid: string;
|
|
733
|
+
getURL: string;
|
|
734
|
+
size: number;
|
|
735
|
+
uploadId: string;
|
|
736
|
+
verified?: boolean | undefined;
|
|
737
|
+
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
738
|
+
type: "vibes-diy.cli.generate";
|
|
739
|
+
prompt: string;
|
|
740
|
+
appSlug: string;
|
|
741
|
+
ownerHandle: string;
|
|
742
|
+
instantJoin?: boolean | undefined;
|
|
743
|
+
noAccessFn?: boolean | undefined;
|
|
744
|
+
privateMode?: boolean | undefined;
|
|
745
|
+
verbose: boolean;
|
|
746
|
+
apiUrl: string;
|
|
747
|
+
focusPath?: string | undefined;
|
|
748
|
+
model?: string | undefined;
|
|
749
|
+
builderModel?: string | undefined;
|
|
750
|
+
apiKey?: string | undefined;
|
|
751
|
+
variety?: string | undefined;
|
|
752
|
+
record?: string | undefined;
|
|
753
|
+
style?: string | undefined;
|
|
754
|
+
fastPass?: boolean | undefined;
|
|
755
|
+
}, {
|
|
756
|
+
type: "vibes-diy.cli.res-generate";
|
|
757
|
+
appSlug: string;
|
|
758
|
+
ownerHandle: string;
|
|
759
|
+
url: string;
|
|
760
|
+
directory: string;
|
|
761
|
+
release?: "not-visible" | "published" | "version-locked" | undefined;
|
|
762
|
+
turns?: number | undefined;
|
|
763
|
+
publish?: "kept-private-no-access-fn" | "private" | "published" | undefined;
|
|
764
|
+
posture?: "gated" | "open" | "private" | undefined;
|
|
765
|
+
} | {
|
|
766
|
+
appSlug: string;
|
|
767
|
+
ownerHandle: string;
|
|
768
|
+
mode: "dev" | "production";
|
|
769
|
+
fsId: string;
|
|
770
|
+
type: "vibes.diy.res-ensure-app-slug";
|
|
771
|
+
env: Record<string, string>;
|
|
772
|
+
fileSystem: {
|
|
773
|
+
fileName: string;
|
|
774
|
+
mimeType: string;
|
|
775
|
+
assetId: string;
|
|
776
|
+
assetURI: string;
|
|
777
|
+
transform?: {
|
|
778
|
+
type: "jsx-to-js";
|
|
779
|
+
transformedAssetId: string;
|
|
780
|
+
} | {
|
|
781
|
+
type: "imports";
|
|
782
|
+
importMapAssetId: string;
|
|
783
|
+
} | {
|
|
784
|
+
type: "import-map";
|
|
785
|
+
fromAssetIds: string[];
|
|
786
|
+
} | {
|
|
787
|
+
type: "transformed";
|
|
788
|
+
action: "jsx-to-js";
|
|
789
|
+
transformedAssetId: string;
|
|
790
|
+
} | {
|
|
791
|
+
type: "tailwind-css";
|
|
792
|
+
} | undefined;
|
|
793
|
+
entryPoint?: boolean | undefined;
|
|
794
|
+
size: number;
|
|
795
|
+
kind?: "asset" | undefined;
|
|
796
|
+
uploadId?: string | undefined;
|
|
797
|
+
}[];
|
|
798
|
+
autoEnhanceOff?: true | undefined;
|
|
799
|
+
appCreated?: true | undefined;
|
|
800
|
+
} | {
|
|
801
|
+
type: "vibes.diy.res-error";
|
|
802
|
+
error: {
|
|
803
|
+
message: string;
|
|
804
|
+
code: "require-login";
|
|
805
|
+
};
|
|
806
|
+
} | {
|
|
807
|
+
type: "vibes.diy.res-error";
|
|
808
|
+
error: {
|
|
809
|
+
message: string;
|
|
810
|
+
code: "user-slug-invalid";
|
|
811
|
+
};
|
|
812
|
+
} | {
|
|
813
|
+
type: "vibes.diy.res-error";
|
|
814
|
+
error: {
|
|
815
|
+
message: string;
|
|
816
|
+
code: "app-slug-invalid";
|
|
817
|
+
};
|
|
818
|
+
} | {
|
|
819
|
+
type: "vibes.diy.res-error";
|
|
820
|
+
error: {
|
|
821
|
+
message: string;
|
|
822
|
+
code: "max-app-slugs-reached";
|
|
823
|
+
};
|
|
824
|
+
} | {
|
|
825
|
+
type: "vibes.diy.res-error";
|
|
826
|
+
error: {
|
|
827
|
+
message: string;
|
|
828
|
+
code: "handle-required";
|
|
829
|
+
};
|
|
830
|
+
} | {
|
|
831
|
+
type: "vibes.diy.res-error";
|
|
832
|
+
error: {
|
|
833
|
+
message: string;
|
|
834
|
+
code: "from-not-owned";
|
|
835
|
+
};
|
|
836
|
+
} | {
|
|
837
|
+
type: "vibes.diy.res-error";
|
|
838
|
+
error: {
|
|
839
|
+
message: string;
|
|
840
|
+
code: "from-carry-failed";
|
|
841
|
+
};
|
|
842
|
+
} | {
|
|
843
|
+
type: "vibes.diy.res-error";
|
|
844
|
+
error: {
|
|
845
|
+
message: string;
|
|
846
|
+
code: "auto-enhance-off";
|
|
847
|
+
};
|
|
820
848
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
821
849
|
type: "vibes-diy.cli.app-chats";
|
|
822
850
|
appSlug: string;
|
|
@@ -997,31 +1025,15 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
997
1025
|
unpublishedAt?: string | undefined;
|
|
998
1026
|
}[];
|
|
999
1027
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
1000
|
-
type: "vibes-diy.cli.
|
|
1028
|
+
type: "vibes-diy.cli.whoami";
|
|
1001
1029
|
apiUrl: string;
|
|
1002
1030
|
}, {
|
|
1003
|
-
type: "vibes-diy.cli.res-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
deviceOk: boolean;
|
|
1010
|
-
fingerprint?: string | undefined;
|
|
1011
|
-
certExpires?: string | undefined;
|
|
1012
|
-
apiUrl: string;
|
|
1013
|
-
wsUrl: string;
|
|
1014
|
-
proxy: string;
|
|
1015
|
-
handshake: {
|
|
1016
|
-
ok: boolean;
|
|
1017
|
-
detail: string;
|
|
1018
|
-
ms?: number | undefined;
|
|
1019
|
-
};
|
|
1020
|
-
auth?: {
|
|
1021
|
-
ok: boolean;
|
|
1022
|
-
detail: string;
|
|
1023
|
-
ms?: number | undefined;
|
|
1024
|
-
} | undefined;
|
|
1031
|
+
type: "vibes-diy.cli.res-whoami";
|
|
1032
|
+
authenticated: boolean;
|
|
1033
|
+
userId?: string | undefined;
|
|
1034
|
+
defaultHandle?: string | undefined;
|
|
1035
|
+
handles: string[];
|
|
1036
|
+
detail?: string | undefined;
|
|
1025
1037
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
1026
1038
|
type: "vibes-diy.cli.pull";
|
|
1027
1039
|
appSlug: string;
|
|
@@ -1101,6 +1113,8 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
1101
1113
|
state: "dead" | "healthy" | "overdue" | "running" | "unscheduled";
|
|
1102
1114
|
intervalMs: number | null;
|
|
1103
1115
|
nextAlarmAt: string | null;
|
|
1116
|
+
pausedIntervalMs: number | null;
|
|
1117
|
+
settingsUrl: string;
|
|
1104
1118
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
1105
1119
|
type: "vibes-diy.cli.app-screenshot";
|
|
1106
1120
|
appSlug: string;
|
|
@@ -1453,6 +1467,7 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
1453
1467
|
type: "vibes-diy.cli.phone-link-alerts";
|
|
1454
1468
|
apiUrl: string;
|
|
1455
1469
|
handle: string;
|
|
1470
|
+
settles?: true | undefined;
|
|
1456
1471
|
}, {
|
|
1457
1472
|
type: "vibes-diy.cli.res-phone-link-alerts";
|
|
1458
1473
|
ownerHandle: string;
|
|
@@ -1474,6 +1489,17 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
1474
1489
|
expiresAt?: string | undefined;
|
|
1475
1490
|
}[];
|
|
1476
1491
|
more: boolean;
|
|
1492
|
+
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
1493
|
+
type: "vibes-diy.cli.phone-link-settle-alert";
|
|
1494
|
+
apiUrl: string;
|
|
1495
|
+
handle: string;
|
|
1496
|
+
id: string;
|
|
1497
|
+
outcome: string;
|
|
1498
|
+
}, {
|
|
1499
|
+
type: "vibes-diy.cli.res-phone-link-settle-alert";
|
|
1500
|
+
ownerHandle: string;
|
|
1501
|
+
id: string;
|
|
1502
|
+
outcome: "missed" | "sent";
|
|
1477
1503
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
1478
1504
|
type: "vibes-diy.cli.phone-link-wakes";
|
|
1479
1505
|
apiUrl: string;
|
|
@@ -1556,6 +1582,25 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
1556
1582
|
}, {
|
|
1557
1583
|
type: "vibes-diy.cli.res-phone-link-classify";
|
|
1558
1584
|
reaction?: string | undefined;
|
|
1585
|
+
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
1586
|
+
type: "core-cli.device-id-register";
|
|
1587
|
+
commonName: string;
|
|
1588
|
+
organization: string;
|
|
1589
|
+
locality: string;
|
|
1590
|
+
state: string;
|
|
1591
|
+
country: string;
|
|
1592
|
+
caUrl: string;
|
|
1593
|
+
port: string;
|
|
1594
|
+
timeout: string;
|
|
1595
|
+
forceRenew: boolean;
|
|
1596
|
+
cert?: string | undefined;
|
|
1597
|
+
noBrowser?: boolean | undefined;
|
|
1598
|
+
apiUrl?: string | undefined;
|
|
1599
|
+
expectHandle?: string | undefined;
|
|
1600
|
+
expectUser?: string | undefined;
|
|
1601
|
+
}, {
|
|
1602
|
+
type: "core-cli.res-device-id-register";
|
|
1603
|
+
output: string;
|
|
1559
1604
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
1560
1605
|
type: "vibes-diy.cli.db.list";
|
|
1561
1606
|
apiUrl: string;
|
|
@@ -1565,20 +1610,6 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
1565
1610
|
}, {
|
|
1566
1611
|
type: "vibes-diy.cli.db.list-res";
|
|
1567
1612
|
dbNames: string[];
|
|
1568
|
-
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
1569
|
-
type: "vibes-diy.cli.db.get";
|
|
1570
|
-
apiUrl: string;
|
|
1571
|
-
appSlug: string;
|
|
1572
|
-
ownerHandle: string;
|
|
1573
|
-
dbName: string;
|
|
1574
|
-
docId: string;
|
|
1575
|
-
admin: boolean;
|
|
1576
|
-
actingHandle: string;
|
|
1577
|
-
}, {
|
|
1578
|
-
type: "vibes-diy.cli.db.get-res";
|
|
1579
|
-
doc: {
|
|
1580
|
-
[x: string]: unknown;
|
|
1581
|
-
};
|
|
1582
1613
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
1583
1614
|
type: "vibes-diy.cli.db.put";
|
|
1584
1615
|
apiUrl: string;
|
|
@@ -1600,44 +1631,29 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
|
|
|
1600
1631
|
uploadId: string;
|
|
1601
1632
|
}[] | undefined;
|
|
1602
1633
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
1603
|
-
type: "vibes-diy.cli.db.
|
|
1634
|
+
type: "vibes-diy.cli.db.query";
|
|
1604
1635
|
apiUrl: string;
|
|
1605
1636
|
appSlug: string;
|
|
1606
1637
|
ownerHandle: string;
|
|
1607
1638
|
dbName: string;
|
|
1608
|
-
|
|
1639
|
+
field: string;
|
|
1640
|
+
key: string;
|
|
1641
|
+
prefix: string;
|
|
1642
|
+
range: string;
|
|
1643
|
+
limit: number;
|
|
1644
|
+
descending: boolean;
|
|
1609
1645
|
admin: boolean;
|
|
1610
1646
|
actingHandle: string;
|
|
1611
1647
|
}, {
|
|
1612
|
-
type: "vibes-diy.cli.db.
|
|
1613
|
-
|
|
1614
|
-
|
|
1648
|
+
type: "vibes-diy.cli.db.query-res";
|
|
1649
|
+
docs: {
|
|
1650
|
+
[x: string]: unknown;
|
|
1651
|
+
}[];
|
|
1615
1652
|
}> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
|
|
1616
1653
|
type: "vibes-diy.cli.db.subscribe";
|
|
1617
1654
|
apiUrl: string;
|
|
1618
1655
|
appSlug: string;
|
|
1619
1656
|
ownerHandle: string;
|
|
1620
1657
|
dbName: string;
|
|
1621
|
-
}, never>
|
|
1622
|
-
type: "vibes-diy.cli.db.seed";
|
|
1623
|
-
action: "add" | "remove";
|
|
1624
|
-
apiUrl: string;
|
|
1625
|
-
appSlug: string;
|
|
1626
|
-
ownerHandle: string;
|
|
1627
|
-
}, {
|
|
1628
|
-
type: "vibes-diy.cli.db.seed-res";
|
|
1629
|
-
action: "add" | "remove";
|
|
1630
|
-
appSlug: string;
|
|
1631
|
-
ownerHandle: string;
|
|
1632
|
-
seedFile: "absent" | "invalid" | "present" | "unknown";
|
|
1633
|
-
changed: number;
|
|
1634
|
-
skipped: number;
|
|
1635
|
-
failed: number;
|
|
1636
|
-
perDb: {
|
|
1637
|
-
dbName: string;
|
|
1638
|
-
changed: number;
|
|
1639
|
-
skipped: number;
|
|
1640
|
-
failed: number;
|
|
1641
|
-
}[];
|
|
1642
|
-
}>)[];
|
|
1658
|
+
}, never>)[];
|
|
1643
1659
|
export declare function cmdTsEvento(): import("@adviser/cement").Evento;
|
package/cli/cmd-evento.js
CHANGED
|
@@ -29,7 +29,7 @@ import { developerEvento } from "./cmds/developer/developer-cmd.js";
|
|
|
29
29
|
import { membersEvento } from "./cmds/members/members-cmd.js";
|
|
30
30
|
import { retentionPreviewEvento, retentionResetEvento } from "./cmds/retention/index.js";
|
|
31
31
|
import { moderationEvento } from "./cmds/moderation/index.js";
|
|
32
|
-
import { phoneLinkAlertsEvento, phoneLinkWakesEvento, phoneLinkVibesEvento, phoneLinkPauseVibeEvento, phoneLinkGroupEvento, phoneLinkPayForGroupEvento, phoneLinkGroupRosterEvento, phoneLinkStopSponsoringEvento, phoneLinkRedeemEvento, } from "./cmds/phone-link-cmd.js";
|
|
32
|
+
import { phoneLinkAlertsEvento, phoneLinkSettleAlertEvento, phoneLinkWakesEvento, phoneLinkVibesEvento, phoneLinkPauseVibeEvento, phoneLinkGroupEvento, phoneLinkPayForGroupEvento, phoneLinkGroupRosterEvento, phoneLinkStopSponsoringEvento, phoneLinkRedeemEvento, } from "./cmds/phone-link-cmd.js";
|
|
33
33
|
import { phoneLinkInviteEvento, phoneLinkInviteStatusEvento } from "./cmds/phone-link-invite-cmd.js";
|
|
34
34
|
import { phoneLinkClassifyEvento } from "./cmds/phone-link-classify-cmd.js";
|
|
35
35
|
import { deviceIdRegisterEvento } from "@vibes.diy/identity/node";
|
|
@@ -84,6 +84,7 @@ export function cliEventoHandlers() {
|
|
|
84
84
|
phoneLinkGroupRosterEvento,
|
|
85
85
|
phoneLinkStopSponsoringEvento,
|
|
86
86
|
phoneLinkAlertsEvento,
|
|
87
|
+
phoneLinkSettleAlertEvento,
|
|
87
88
|
phoneLinkWakesEvento,
|
|
88
89
|
phoneLinkVibesEvento,
|
|
89
90
|
phoneLinkPauseVibeEvento,
|
|
@@ -238,12 +238,33 @@ export function poufBoldRoom(slug) {
|
|
|
238
238
|
export function poufWornRoom(pouf, colorTheme) {
|
|
239
239
|
if (poufSeedMatchesRoom(pouf, colorTheme))
|
|
240
240
|
return { slug: colorTheme, edited: false };
|
|
241
|
-
const
|
|
241
|
+
const stored = colorTheme === "pouf" ? "home" : colorTheme;
|
|
242
|
+
const bold = `${stored}-bold`;
|
|
242
243
|
if (pouf.tone === POUF_BOLD_TONE && poufSeedMatchesRoom(pouf, bold))
|
|
243
244
|
return { slug: bold, edited: false };
|
|
244
245
|
const rooms = pouf.tone === POUF_BOLD_TONE ? POUF_BOLD_PRESETS.map((p) => p.slug) : POUF_ROOM_SLUGS;
|
|
245
246
|
const other = rooms.find((slug) => poufSeedMatchesRoom(pouf, slug));
|
|
246
247
|
if (other !== undefined)
|
|
247
248
|
return { slug: other, edited: false };
|
|
248
|
-
return { slug: colorTheme, edited: true };
|
|
249
|
+
return { slug: editedFromRoom(pouf, rooms, pouf.tone === POUF_BOLD_TONE ? bold : stored) ?? colorTheme, edited: true };
|
|
250
|
+
}
|
|
251
|
+
function poufRoomDistance(pouf, roomSlug) {
|
|
252
|
+
const room = getStylePreset(roomSlug)?.palette.pouf;
|
|
253
|
+
if (room === undefined)
|
|
254
|
+
return undefined;
|
|
255
|
+
return Number(room.lead !== pouf.lead) + Number(room.gap !== pouf.gap) + Number(room.locked !== pouf.locked);
|
|
256
|
+
}
|
|
257
|
+
function editedFromRoom(pouf, rooms, storedSlug) {
|
|
258
|
+
const scored = rooms.flatMap((slug) => {
|
|
259
|
+
const d = poufRoomDistance(pouf, slug);
|
|
260
|
+
return d === undefined ? [] : [{ slug, d }];
|
|
261
|
+
});
|
|
262
|
+
if (scored.length === 0)
|
|
263
|
+
return undefined;
|
|
264
|
+
const best = Math.min(...scored.map((s) => s.d));
|
|
265
|
+
const nearest = scored.filter((s) => s.d === best);
|
|
266
|
+
if (nearest.some((s) => s.slug === storedSlug) || nearest.length !== 1)
|
|
267
|
+
return undefined;
|
|
268
|
+
const slug = nearest[0].slug;
|
|
269
|
+
return slug.endsWith("-bold") ? slug.slice(0, -"-bold".length) : slug;
|
|
249
270
|
}
|
|
@@ -16,6 +16,8 @@ export declare const ResAppRearmCli: import("arktype/internal/variants/object.ts
|
|
|
16
16
|
state: "dead" | "healthy" | "overdue" | "running" | "unscheduled";
|
|
17
17
|
intervalMs: number | null;
|
|
18
18
|
nextAlarmAt: string | null;
|
|
19
|
+
pausedIntervalMs: number | null;
|
|
20
|
+
settingsUrl: string;
|
|
19
21
|
}, {}>;
|
|
20
22
|
export type ResAppRearmCli = typeof ResAppRearmCli.infer;
|
|
21
23
|
export declare function isResAppRearmCli(obj: unknown): obj is ResAppRearmCli;
|