vibes-diy 14.3.338 → 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.
@@ -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: "core-cli.device-id-register";
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-diy.cli.res-variety-list";
27
- grammar: string;
28
- flourishCount: number;
29
- archetypes: {
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.put-asset";
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
- instantJoin?: boolean | undefined;
58
- noAccessFn?: boolean | undefined;
59
- privateMode?: boolean | undefined;
60
- verbose: boolean;
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
- appSlug: string;
72
- ownerHandle: string;
73
- mode: "dev" | "production";
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.query";
31
+ type: "vibes-diy.cli.db.del";
165
32
  apiUrl: string;
166
33
  appSlug: string;
167
34
  ownerHandle: string;
168
35
  dbName: string;
169
- field: string;
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.query-res";
179
- docs: {
180
- [x: string]: unknown;
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.whoami";
65
+ type: "vibes-diy.cli.doctor";
184
66
  apiUrl: string;
185
67
  }, {
186
- type: "vibes-diy.cli.res-whoami";
187
- authenticated: boolean;
188
- userId?: string | undefined;
189
- defaultHandle?: string | undefined;
190
- handles: string[];
191
- detail?: string | undefined;
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;
@@ -592,6 +492,15 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
592
492
  thresholds: number[];
593
493
  updatedAt: string;
594
494
  claimId?: string | undefined;
495
+ } | {
496
+ type: "planAck";
497
+ entries: {
498
+ key: string;
499
+ state: "pending" | "sent";
500
+ at: string;
501
+ claimId: string;
502
+ }[];
503
+ updatedAt: string;
595
504
  } | {
596
505
  type: "defaultHandle";
597
506
  ownerHandle: string;
@@ -611,17 +520,19 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
611
520
  name: string;
612
521
  content: string;
613
522
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
614
- type: "use-vibes.cli.themes";
523
+ type: "vibes-diy.cli.variety";
615
524
  }, {
616
- type: "use-vibes.cli.res-themes-list";
617
- themes: {
618
- slug: string;
619
- name: string;
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;
620
535
  }[];
621
- } | {
622
- type: "use-vibes.cli.res-theme-content";
623
- slug: string;
624
- content: string;
625
536
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
626
537
  type: "vibes-diy.cli.system";
627
538
  }, {
@@ -808,6 +719,132 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
808
719
  model: string;
809
720
  };
810
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
+ };
811
848
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
812
849
  type: "vibes-diy.cli.app-chats";
813
850
  appSlug: string;
@@ -988,31 +1025,15 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
988
1025
  unpublishedAt?: string | undefined;
989
1026
  }[];
990
1027
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
991
- type: "vibes-diy.cli.doctor";
1028
+ type: "vibes-diy.cli.whoami";
992
1029
  apiUrl: string;
993
1030
  }, {
994
- type: "vibes-diy.cli.res-doctor";
995
- cliVersion: string;
996
- node: string;
997
- keybagPath: string;
998
- keybagInstance?: string | undefined;
999
- device: string;
1000
- deviceOk: boolean;
1001
- fingerprint?: string | undefined;
1002
- certExpires?: string | undefined;
1003
- apiUrl: string;
1004
- wsUrl: string;
1005
- proxy: string;
1006
- handshake: {
1007
- ok: boolean;
1008
- detail: string;
1009
- ms?: number | undefined;
1010
- };
1011
- auth?: {
1012
- ok: boolean;
1013
- detail: string;
1014
- ms?: number | undefined;
1015
- } | 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;
1016
1037
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1017
1038
  type: "vibes-diy.cli.pull";
1018
1039
  appSlug: string;
@@ -1092,6 +1113,8 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
1092
1113
  state: "dead" | "healthy" | "overdue" | "running" | "unscheduled";
1093
1114
  intervalMs: number | null;
1094
1115
  nextAlarmAt: string | null;
1116
+ pausedIntervalMs: number | null;
1117
+ settingsUrl: string;
1095
1118
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1096
1119
  type: "vibes-diy.cli.app-screenshot";
1097
1120
  appSlug: string;
@@ -1444,6 +1467,7 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
1444
1467
  type: "vibes-diy.cli.phone-link-alerts";
1445
1468
  apiUrl: string;
1446
1469
  handle: string;
1470
+ settles?: true | undefined;
1447
1471
  }, {
1448
1472
  type: "vibes-diy.cli.res-phone-link-alerts";
1449
1473
  ownerHandle: string;
@@ -1465,6 +1489,17 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
1465
1489
  expiresAt?: string | undefined;
1466
1490
  }[];
1467
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";
1468
1503
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1469
1504
  type: "vibes-diy.cli.phone-link-wakes";
1470
1505
  apiUrl: string;
@@ -1547,6 +1582,25 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
1547
1582
  }, {
1548
1583
  type: "vibes-diy.cli.res-phone-link-classify";
1549
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;
1550
1604
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1551
1605
  type: "vibes-diy.cli.db.list";
1552
1606
  apiUrl: string;
@@ -1556,20 +1610,6 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
1556
1610
  }, {
1557
1611
  type: "vibes-diy.cli.db.list-res";
1558
1612
  dbNames: string[];
1559
- }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1560
- type: "vibes-diy.cli.db.get";
1561
- apiUrl: string;
1562
- appSlug: string;
1563
- ownerHandle: string;
1564
- dbName: string;
1565
- docId: string;
1566
- admin: boolean;
1567
- actingHandle: string;
1568
- }, {
1569
- type: "vibes-diy.cli.db.get-res";
1570
- doc: {
1571
- [x: string]: unknown;
1572
- };
1573
1613
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1574
1614
  type: "vibes-diy.cli.db.put";
1575
1615
  apiUrl: string;
@@ -1591,44 +1631,29 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
1591
1631
  uploadId: string;
1592
1632
  }[] | undefined;
1593
1633
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1594
- type: "vibes-diy.cli.db.del";
1634
+ type: "vibes-diy.cli.db.query";
1595
1635
  apiUrl: string;
1596
1636
  appSlug: string;
1597
1637
  ownerHandle: string;
1598
1638
  dbName: string;
1599
- docId: string;
1639
+ field: string;
1640
+ key: string;
1641
+ prefix: string;
1642
+ range: string;
1643
+ limit: number;
1644
+ descending: boolean;
1600
1645
  admin: boolean;
1601
1646
  actingHandle: string;
1602
1647
  }, {
1603
- type: "vibes-diy.cli.db.del-res";
1604
- id: string;
1605
- ok: true;
1648
+ type: "vibes-diy.cli.db.query-res";
1649
+ docs: {
1650
+ [x: string]: unknown;
1651
+ }[];
1606
1652
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1607
1653
  type: "vibes-diy.cli.db.subscribe";
1608
1654
  apiUrl: string;
1609
1655
  appSlug: string;
1610
1656
  ownerHandle: string;
1611
1657
  dbName: string;
1612
- }, never> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1613
- type: "vibes-diy.cli.db.seed";
1614
- action: "add" | "remove";
1615
- apiUrl: string;
1616
- appSlug: string;
1617
- ownerHandle: string;
1618
- }, {
1619
- type: "vibes-diy.cli.db.seed-res";
1620
- action: "add" | "remove";
1621
- appSlug: string;
1622
- ownerHandle: string;
1623
- seedFile: "absent" | "invalid" | "present" | "unknown";
1624
- changed: number;
1625
- skipped: number;
1626
- failed: number;
1627
- perDb: {
1628
- dbName: string;
1629
- changed: number;
1630
- skipped: number;
1631
- failed: number;
1632
- }[];
1633
- }>)[];
1658
+ }, never>)[];
1634
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 bold = `${colorTheme === "pouf" ? "home" : colorTheme}-bold`;
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;