vibes-diy 14.3.446 → 14.3.447

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/cli-ctx.d.ts CHANGED
@@ -33,5 +33,6 @@ export interface CliCtx extends HarnessCliCtx {
33
33
  readonly cliVersion?: string;
34
34
  readonly certPickupClient?: (apiUrl: string) => CertPickupClient;
35
35
  readonly signedInAccount?: (apiUrl: string) => Promise<Result<ApprovingAccount>>;
36
+ readonly askPerson?: (question: string) => Promise<boolean | undefined>;
36
37
  exitCode: number;
37
38
  }
@@ -2,34 +2,70 @@ 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: "vibes-diy.cli.variety";
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;
6
20
  }, {
7
- type: "vibes-diy.cli.res-variety-list";
8
- grammar: string;
9
- flourishCount: number;
10
- archetypes: {
11
- id: string;
12
- guidance: string;
13
- }[];
14
- flourishes: {
15
- id: string;
16
- guidance: string;
17
- }[];
21
+ type: "core-cli.res-device-id-register";
22
+ output: string;
18
23
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
19
- type: "vibes-diy.cli.put-asset";
20
- file: string;
21
- appSlug: string;
24
+ type: "vibes-diy.cli.system";
25
+ }, {
26
+ type: "vibes-diy.cli.res-system";
27
+ systemPrompt: string;
28
+ }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
29
+ type: "vibes-diy.cli.remix";
30
+ srcUserSlug: string;
31
+ srcAppSlug: string;
32
+ dstOwnerHandle?: string | undefined;
33
+ dstAppSlug?: string | undefined;
34
+ published: boolean;
35
+ settingsOnly: boolean;
36
+ apiUrl: string;
37
+ }, {
38
+ type: "vibes-diy.cli.res-remix";
22
39
  ownerHandle: string;
40
+ appSlug: string;
41
+ url: string;
42
+ carried?: string[] | undefined;
43
+ skippedPresent?: string[] | undefined;
44
+ chatId?: string | undefined;
45
+ }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
46
+ type: "vibes-diy.cli.agent";
23
47
  apiUrl: string;
24
- mimeType: string;
25
- verifyFetch: boolean;
48
+ prompt: string;
49
+ ownerHandle: string;
50
+ followMs: number;
51
+ json: boolean;
52
+ chatId?: string | undefined;
53
+ newChat?: boolean | undefined;
54
+ images?: string[] | undefined;
55
+ byText?: boolean | undefined;
56
+ startedBy?: "person" | "wake" | undefined;
57
+ askedBy?: string | undefined;
26
58
  }, {
27
- type: "vibes-diy.cli.res-put-asset";
28
- cid: string;
29
- getURL: string;
30
- size: number;
31
- uploadId: string;
32
- verified?: boolean | undefined;
59
+ type: "vibes-diy.cli.res-agent";
60
+ ownerHandle: string;
61
+ chatId: string;
62
+ messages: string[];
63
+ shorts?: string[] | undefined;
64
+ links: string[];
65
+ idle: boolean;
66
+ reactions?: string[] | undefined;
67
+ error?: string | undefined;
68
+ credits?: number | undefined;
33
69
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
34
70
  type: "vibes-diy.cli.generate";
35
71
  prompt: string;
@@ -83,6 +119,11 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
83
119
  }[];
84
120
  autoEnhanceOff?: true | undefined;
85
121
  appCreated?: true | undefined;
122
+ anonWriteFollowed?: {
123
+ to: "explicit" | "off";
124
+ because: "not-open" | "personal-details" | "rules-ask" | "rules-do-not-ask" | "rules-not-bound" | "sensitive";
125
+ } | undefined;
126
+ backendWarnings?: string[] | undefined;
86
127
  } | {
87
128
  type: "vibes.diy.res-error";
88
129
  error: {
@@ -171,75 +212,63 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
171
212
  handles: string[];
172
213
  detail?: string | undefined;
173
214
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
174
- type: "vibes-diy.cli.run";
215
+ type: "vibes-diy.cli.versions";
216
+ appSlug: string;
217
+ ownerHandle: string;
175
218
  apiUrl: string;
176
- vibe: string;
177
- dir: string;
178
- port: number;
179
- host: string;
180
- stateDir: string;
181
- baseUrl: string;
182
219
  }, {
183
- type: "vibes-diy.cli.res-run";
184
- origin: string;
185
- ownerHandle: string;
220
+ type: "vibes-diy.cli.res-versions";
186
221
  appSlug: string;
222
+ ownerHandle: string;
223
+ items: {
224
+ fsId: string;
225
+ mode: "dev" | "production";
226
+ releaseSeq: number;
227
+ created: string;
228
+ published: boolean;
229
+ byHandle?: string | undefined;
230
+ }[];
187
231
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
188
- type: "vibes-diy.cli.app-rearm";
232
+ type: "vibes-diy.cli.app-tick";
189
233
  appSlug: string;
190
234
  ownerHandle: string;
235
+ at: string;
191
236
  apiUrl: string;
192
237
  }, {
193
- type: "vibes-diy.cli.res-app-rearm";
238
+ type: "vibes-diy.cli.res-app-tick";
194
239
  appSlug: string;
195
240
  ownerHandle: string;
196
- state: "dead" | "healthy" | "overdue" | "running" | "unscheduled";
197
- intervalMs: number | null;
198
- nextAlarmAt: string | null;
199
- pausedIntervalMs: number | null;
200
- settingsUrl: string;
241
+ scheduledTime: string;
242
+ ran: boolean;
243
+ reason: string | null;
244
+ detail: string | null;
201
245
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
202
- type: "vibes-diy.cli.app-chips";
246
+ type: "vibes-diy.cli.app-screenshot";
203
247
  appSlug: string;
204
248
  ownerHandle: string;
249
+ more: string[];
205
250
  apiUrl: string;
206
- chips: (string | {
207
- label: string;
208
- gold?: boolean | undefined;
209
- kind?: "access" | "connect" | "edit" | "pay" | "publish" | "seed" | undefined;
210
- })[];
211
- fsId: string;
212
251
  }, {
213
- type: "vibes-diy.cli.res-app-chips";
214
- appSlug: string;
215
- ownerHandle: string;
216
- fsId: string;
217
- releaseSeq: number;
218
- chips: string[];
219
- chipItems?: {
220
- label: string;
221
- gold?: boolean | undefined;
222
- kind?: "access" | "connect" | "edit" | "pay" | "publish" | "seed" | undefined;
223
- }[] | undefined;
252
+ type: "vibes-diy.cli.res-app-screenshot";
253
+ results: {
254
+ ownerHandle: string;
255
+ appSlug: string;
256
+ fsId: string;
257
+ enqueued: boolean;
258
+ error?: string | undefined;
259
+ }[];
224
260
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
225
- type: "vibes-diy.cli.app-anon-write";
261
+ type: "vibes-diy.cli.app-auto-enhance";
226
262
  appSlug: string;
227
263
  ownerHandle: string;
228
264
  apiUrl: string;
229
265
  set: "" | "off" | "on";
230
266
  }, {
231
- type: "vibes-diy.cli.res-app-anon-write";
267
+ type: "vibes-diy.cli.res-app-auto-enhance";
232
268
  ownerHandle: string;
233
269
  appSlug: string;
234
270
  wrote: boolean;
235
- posture: string;
236
- anonWrite: "explicit" | "legacy" | "off";
237
- wildcardWrite: string[];
238
- restrictedDbs: {
239
- dbName: string;
240
- provenance: "platform-default" | "your-pin";
241
- write: string[];
242
- }[];
271
+ autoEnhance: boolean;
243
272
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
244
273
  type: "vibes-diy.cli.set-unpublish";
245
274
  appSlug: string;
@@ -338,6 +367,7 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
338
367
  checkoutUnfinished?: boolean | undefined;
339
368
  safetyAlert?: boolean | undefined;
340
369
  reminder?: boolean | undefined;
370
+ teamMessages?: boolean | undefined;
341
371
  emailInstant?: boolean | undefined;
342
372
  mutes?: {
343
373
  vibes?: string[] | undefined;
@@ -644,10 +674,19 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
644
674
  slug: string;
645
675
  content: string;
646
676
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
647
- type: "vibes-diy.cli.system";
677
+ type: "vibes-diy.cli.variety";
648
678
  }, {
649
- type: "vibes-diy.cli.res-system";
650
- systemPrompt: string;
679
+ type: "vibes-diy.cli.res-variety-list";
680
+ grammar: string;
681
+ flourishCount: number;
682
+ archetypes: {
683
+ id: string;
684
+ guidance: string;
685
+ }[];
686
+ flourishes: {
687
+ id: string;
688
+ guidance: string;
689
+ }[];
651
690
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
652
691
  type: "vibes-diy.cli.push";
653
692
  mode: string;
@@ -700,6 +739,11 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
700
739
  }[];
701
740
  autoEnhanceOff?: true | undefined;
702
741
  appCreated?: true | undefined;
742
+ anonWriteFollowed?: {
743
+ to: "explicit" | "off";
744
+ because: "not-open" | "personal-details" | "rules-ask" | "rules-do-not-ask" | "rules-not-bound" | "sensitive";
745
+ } | undefined;
746
+ backendWarnings?: string[] | undefined;
703
747
  } | {
704
748
  type: "vibes.diy.res-error";
705
749
  error: {
@@ -748,23 +792,6 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
748
792
  message: string;
749
793
  code: "auto-enhance-off";
750
794
  };
751
- }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
752
- type: "vibes-diy.cli.remix";
753
- srcUserSlug: string;
754
- srcAppSlug: string;
755
- dstOwnerHandle?: string | undefined;
756
- dstAppSlug?: string | undefined;
757
- published: boolean;
758
- settingsOnly: boolean;
759
- apiUrl: string;
760
- }, {
761
- type: "vibes-diy.cli.res-remix";
762
- ownerHandle: string;
763
- appSlug: string;
764
- url: string;
765
- carried?: string[] | undefined;
766
- skippedPresent?: string[] | undefined;
767
- chatId?: string | undefined;
768
795
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
769
796
  type: "vibes-diy.cli.claim-handle";
770
797
  apiUrl: string;
@@ -777,28 +804,6 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
777
804
  defaultHandleSet?: boolean | undefined;
778
805
  defaultSkipped?: boolean | undefined;
779
806
  suggestions: string[];
780
- }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
781
- type: "vibes-diy.cli.agent";
782
- apiUrl: string;
783
- prompt: string;
784
- ownerHandle: string;
785
- followMs: number;
786
- json: boolean;
787
- chatId?: string | undefined;
788
- newChat?: boolean | undefined;
789
- images?: string[] | undefined;
790
- byText?: boolean | undefined;
791
- }, {
792
- type: "vibes-diy.cli.res-agent";
793
- ownerHandle: string;
794
- chatId: string;
795
- messages: string[];
796
- shorts?: string[] | undefined;
797
- links: string[];
798
- idle: boolean;
799
- reactions?: string[] | undefined;
800
- error?: string | undefined;
801
- credits?: number | undefined;
802
807
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
803
808
  type: "vibes-diy.cli.image";
804
809
  apiUrl: string;
@@ -831,6 +836,21 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
831
836
  model: string;
832
837
  };
833
838
  };
839
+ }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
840
+ type: "vibes-diy.cli.put-asset";
841
+ file: string;
842
+ appSlug: string;
843
+ ownerHandle: string;
844
+ apiUrl: string;
845
+ mimeType: string;
846
+ verifyFetch: boolean;
847
+ }, {
848
+ type: "vibes-diy.cli.res-put-asset";
849
+ cid: string;
850
+ getURL: string;
851
+ size: number;
852
+ uploadId: string;
853
+ verified?: boolean | undefined;
834
854
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
835
855
  type: "vibes-diy.cli.app-chats";
836
856
  appSlug: string;
@@ -936,6 +956,11 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
936
956
  }[];
937
957
  autoEnhanceOff?: true | undefined;
938
958
  appCreated?: true | undefined;
959
+ anonWriteFollowed?: {
960
+ to: "explicit" | "off";
961
+ because: "not-open" | "personal-details" | "rules-ask" | "rules-do-not-ask" | "rules-not-bound" | "sensitive";
962
+ } | undefined;
963
+ backendWarnings?: string[] | undefined;
939
964
  } | {
940
965
  type: "vibes.diy.res-error";
941
966
  error: {
@@ -1056,22 +1081,19 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
1056
1081
  size: number;
1057
1082
  }[];
1058
1083
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1059
- type: "vibes-diy.cli.versions";
1060
- appSlug: string;
1061
- ownerHandle: string;
1084
+ type: "vibes-diy.cli.run";
1062
1085
  apiUrl: string;
1086
+ vibe: string;
1087
+ dir: string;
1088
+ port: number;
1089
+ host: string;
1090
+ stateDir: string;
1091
+ baseUrl: string;
1063
1092
  }, {
1064
- type: "vibes-diy.cli.res-versions";
1065
- appSlug: string;
1093
+ type: "vibes-diy.cli.res-run";
1094
+ origin: string;
1066
1095
  ownerHandle: string;
1067
- items: {
1068
- fsId: string;
1069
- mode: "dev" | "production";
1070
- releaseSeq: number;
1071
- created: string;
1072
- published: boolean;
1073
- byHandle?: string | undefined;
1074
- }[];
1096
+ appSlug: string;
1075
1097
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1076
1098
  type: "vibes-diy.cli.assets-ls";
1077
1099
  appSlug: string;
@@ -1115,36 +1137,25 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
1115
1137
  pausedIntervalMs: number | null;
1116
1138
  stoppedIntervalMs: number | null;
1117
1139
  stoppedAt: string | null;
1140
+ laterTimers: number | null;
1141
+ timersPaused: boolean | null;
1118
1142
  settingsUrl: string;
1119
1143
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1120
- type: "vibes-diy.cli.app-tick";
1144
+ type: "vibes-diy.cli.app-rearm";
1121
1145
  appSlug: string;
1122
1146
  ownerHandle: string;
1123
- at: string;
1124
1147
  apiUrl: string;
1125
1148
  }, {
1126
- type: "vibes-diy.cli.res-app-tick";
1127
- appSlug: string;
1128
- ownerHandle: string;
1129
- scheduledTime: string;
1130
- ran: boolean;
1131
- reason: string | null;
1132
- detail: string | null;
1133
- }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1134
- type: "vibes-diy.cli.app-screenshot";
1149
+ type: "vibes-diy.cli.res-app-rearm";
1135
1150
  appSlug: string;
1136
1151
  ownerHandle: string;
1137
- more: string[];
1138
- apiUrl: string;
1139
- }, {
1140
- type: "vibes-diy.cli.res-app-screenshot";
1141
- results: {
1142
- ownerHandle: string;
1143
- appSlug: string;
1144
- fsId: string;
1145
- enqueued: boolean;
1146
- error?: string | undefined;
1147
- }[];
1152
+ state: "dead" | "healthy" | "overdue" | "running" | "unscheduled";
1153
+ intervalMs: number | null;
1154
+ nextAlarmAt: string | null;
1155
+ pausedIntervalMs: number | null;
1156
+ laterTimers: number | null;
1157
+ timersPaused: boolean | null;
1158
+ settingsUrl: string;
1148
1159
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1149
1160
  type: "vibes-diy.cli.app-schedule-off";
1150
1161
  appSlug: string;
@@ -1156,6 +1167,8 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
1156
1167
  ownerHandle: string;
1157
1168
  state: "dead" | "healthy" | "overdue" | "running" | "unscheduled";
1158
1169
  intervalMs: number | null;
1170
+ laterTimers: number | null;
1171
+ timersPaused: boolean | null;
1159
1172
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1160
1173
  type: "vibes-diy.cli.app-logs";
1161
1174
  appSlug: string;
@@ -1188,6 +1201,29 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
1188
1201
  level: string;
1189
1202
  sinceTs?: string | undefined;
1190
1203
  firstPage: boolean;
1204
+ }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1205
+ type: "vibes-diy.cli.app-chips";
1206
+ appSlug: string;
1207
+ ownerHandle: string;
1208
+ apiUrl: string;
1209
+ chips: (string | {
1210
+ label: string;
1211
+ gold?: boolean | undefined;
1212
+ kind?: "access" | "connect" | "edit" | "pay" | "publish" | "seed" | undefined;
1213
+ })[];
1214
+ fsId: string;
1215
+ }, {
1216
+ type: "vibes-diy.cli.res-app-chips";
1217
+ appSlug: string;
1218
+ ownerHandle: string;
1219
+ fsId: string;
1220
+ releaseSeq: number;
1221
+ chips: string[];
1222
+ chipItems?: {
1223
+ label: string;
1224
+ gold?: boolean | undefined;
1225
+ kind?: "access" | "connect" | "edit" | "pay" | "publish" | "seed" | undefined;
1226
+ }[] | undefined;
1191
1227
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1192
1228
  type: "vibes-diy.cli.app-look";
1193
1229
  op: "get" | "set";
@@ -1310,17 +1346,24 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
1310
1346
  revertedDraft: boolean;
1311
1347
  relayout: boolean;
1312
1348
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1313
- type: "vibes-diy.cli.app-auto-enhance";
1349
+ type: "vibes-diy.cli.app-anon-write";
1314
1350
  appSlug: string;
1315
1351
  ownerHandle: string;
1316
1352
  apiUrl: string;
1317
1353
  set: "" | "off" | "on";
1318
1354
  }, {
1319
- type: "vibes-diy.cli.res-app-auto-enhance";
1355
+ type: "vibes-diy.cli.res-app-anon-write";
1320
1356
  ownerHandle: string;
1321
1357
  appSlug: string;
1322
1358
  wrote: boolean;
1323
- autoEnhance: boolean;
1359
+ posture: string;
1360
+ anonWrite: "explicit" | "legacy" | "off";
1361
+ wildcardWrite: string[];
1362
+ restrictedDbs: {
1363
+ dbName: string;
1364
+ provenance: "platform-default" | "your-pin";
1365
+ write: string[];
1366
+ }[];
1324
1367
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1325
1368
  type: "vibes-diy.cli.app-call";
1326
1369
  appSlug: string;
@@ -1338,6 +1381,62 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
1338
1381
  status: number;
1339
1382
  ok: boolean;
1340
1383
  body: string;
1384
+ }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1385
+ type: "vibes-diy.cli.app-tools";
1386
+ appSlug: string;
1387
+ ownerHandle: string;
1388
+ apiUrl: string;
1389
+ }, {
1390
+ type: "vibes-diy.cli.res-app-tools";
1391
+ ownerHandle: string;
1392
+ appSlug: string;
1393
+ tools: {
1394
+ name: string;
1395
+ title?: string | undefined;
1396
+ description: string;
1397
+ for: "anyone" | "members" | "owner";
1398
+ runs: "handler" | "write";
1399
+ db?: string | undefined;
1400
+ inputSchema: Record<string, unknown>;
1401
+ annotations?: {
1402
+ readOnly?: true | undefined;
1403
+ consequential?: true | undefined;
1404
+ } | undefined;
1405
+ outputSchema?: Record<string, unknown> | undefined;
1406
+ }[];
1407
+ note: string;
1408
+ }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1409
+ type: "vibes-diy.cli.app-call-tool";
1410
+ appSlug: string;
1411
+ ownerHandle: string;
1412
+ apiUrl: string;
1413
+ tool: string;
1414
+ input: string;
1415
+ }, {
1416
+ type: "vibes-diy.cli.res-app-call-tool";
1417
+ ownerHandle: string;
1418
+ appSlug: string;
1419
+ tool: string;
1420
+ outcome: {
1421
+ reason: "cancelled" | "needs-confirm";
1422
+ } | {
1423
+ reason: "ok";
1424
+ result: unknown;
1425
+ truncated?: true | undefined;
1426
+ } | {
1427
+ reason: "refused";
1428
+ message: string;
1429
+ needsConfirm?: true | undefined;
1430
+ } | {
1431
+ reason: "invalid_input" | "tool_error";
1432
+ message: string;
1433
+ } | {
1434
+ reason: "handler_threw";
1435
+ errorName: string;
1436
+ } | {
1437
+ reason: "no_tool" | "unavailable" | "unknown_outcome";
1438
+ };
1439
+ note: string;
1341
1440
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1342
1441
  type: "vibes-diy.cli.secrets";
1343
1442
  apiUrl: string;
@@ -1614,25 +1713,6 @@ export declare function cliEventoHandlers(): (import("@adviser/cement").EventoHa
1614
1713
  }, {
1615
1714
  type: "vibes-diy.cli.res-phone-link-classify";
1616
1715
  reaction?: string | undefined;
1617
- }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1618
- type: "core-cli.device-id-register";
1619
- commonName: string;
1620
- organization: string;
1621
- locality: string;
1622
- state: string;
1623
- country: string;
1624
- caUrl: string;
1625
- port: string;
1626
- timeout: string;
1627
- forceRenew: boolean;
1628
- cert?: string | undefined;
1629
- noBrowser?: boolean | undefined;
1630
- apiUrl?: string | undefined;
1631
- expectHandle?: string | undefined;
1632
- expectUser?: string | undefined;
1633
- }, {
1634
- type: "core-cli.res-device-id-register";
1635
- output: string;
1636
1716
  }> | import("@adviser/cement").EventoHandler<WrapCmdTSMsg<unknown>, {
1637
1717
  type: "vibes-diy.cli.db.list";
1638
1718
  apiUrl: string;
package/cli/cmd-evento.js CHANGED
@@ -21,7 +21,7 @@ import { pullEvento } from "./cmds/pull-cmd.js";
21
21
  import { runEvento } from "./cmds/run/run-cmd.js";
22
22
  import { versionsEvento } from "./cmds/versions-cmd.js";
23
23
  import { assetsLsEvento } from "./cmds/assets-cmd.js";
24
- import { appStatusEvento, appRearmEvento, appTickEvento, appScheduleOffEvento, appLogsEvento, appChipsEvento, appScreenshotEvento, appLookEvento, appAnonWriteEvento, appAutoEnhanceEvento, appCallEvento, } from "./cmds/app/index.js";
24
+ import { appStatusEvento, appRearmEvento, appTickEvento, appScheduleOffEvento, appLogsEvento, appChipsEvento, appScreenshotEvento, appLookEvento, appAnonWriteEvento, appAutoEnhanceEvento, appCallEvento, appToolsEvento, appCallToolEvento, } from "./cmds/app/index.js";
25
25
  import { setUnpublishEvento, publishEvento } from "./cmds/unpublish-cmd.js";
26
26
  import { secretsEvento } from "./cmds/secrets/secrets-cmd.js";
27
27
  import { recommendEvento } from "./cmds/recommend/recommend-cmd.js";
@@ -70,6 +70,8 @@ export function cliEventoHandlers() {
70
70
  appAnonWriteEvento,
71
71
  appAutoEnhanceEvento,
72
72
  appCallEvento,
73
+ appToolsEvento,
74
+ appCallToolEvento,
73
75
  setUnpublishEvento,
74
76
  publishEvento,
75
77
  secretsEvento,
@@ -18,8 +18,16 @@ export declare const ReqAgent: import("arktype/internal/variants/object.ts").Obj
18
18
  newChat?: boolean | undefined;
19
19
  images?: string[] | undefined;
20
20
  byText?: boolean | undefined;
21
+ startedBy?: "person" | "wake" | undefined;
22
+ askedBy?: string | undefined;
21
23
  }, {}>;
22
24
  export type ReqAgent = typeof ReqAgent.infer;
25
+ export declare function startedByFromEnv(value: string | undefined): {
26
+ readonly startedBy: "person" | "wake";
27
+ } | undefined;
28
+ export declare function askedByFromEnv(value: string | undefined): {
29
+ readonly askedBy: string;
30
+ } | undefined;
23
31
  export declare function isReqAgent(obj: unknown): obj is ReqAgent;
24
32
  export declare const ResAgent: import("arktype/internal/variants/object.ts").ObjectType<{
25
33
  type: "vibes-diy.cli.res-agent";
@@ -42,7 +42,16 @@ export const ReqAgent = type({
42
42
  "newChat?": "boolean",
43
43
  "images?": "string[]",
44
44
  "byText?": "boolean",
45
+ "startedBy?": "'person' | 'wake'",
46
+ "askedBy?": "string",
45
47
  });
48
+ export function startedByFromEnv(value) {
49
+ return value === "person" || value === "wake" ? { startedBy: value } : undefined;
50
+ }
51
+ export function askedByFromEnv(value) {
52
+ const v = value?.trim() ?? "";
53
+ return v === "" || v.length > 120 ? undefined : { askedBy: v };
54
+ }
46
55
  export function isReqAgent(obj) {
47
56
  return ReqAgent.allows(obj);
48
57
  }
@@ -154,6 +163,8 @@ export const agentEvento = {
154
163
  const turnOpts = {
155
164
  ...(fileBlocks.length === 0 ? {} : { fileBlocks }),
156
165
  ...(args.byText === true ? { byText: true } : {}),
166
+ ...(args.byText === true && args.startedBy !== undefined ? { startedBy: args.startedBy } : {}),
167
+ ...(args.byText === true && args.startedBy === "person" && args.askedBy !== undefined ? { askedBy: args.askedBy } : {}),
157
168
  };
158
169
  const sent = await session
159
170
  .prompt(args.prompt, Object.keys(turnOpts).length === 0 ? undefined : turnOpts)
@@ -267,6 +278,8 @@ export function agentCmd(ctx) {
267
278
  ...(args.newChat ? { newChat: true } : {}),
268
279
  ...(args.images.length === 0 ? {} : { images: args.images }),
269
280
  ...(args.byText ? { byText: true } : {}),
281
+ ...(startedByFromEnv(ctx.sthis.env.get("VIBES_AGENT_STARTED_BY")) ?? {}),
282
+ ...(askedByFromEnv(ctx.sthis.env.get("VIBES_AGENT_ASKED_BY")) ?? {}),
270
283
  };
271
284
  }),
272
285
  });
@@ -0,0 +1,2 @@
1
+ import type { AnonWriteFollowChange } from "@vibes.diy/api-types";
2
+ export declare function anonWriteFollowNotice(ownerHandle: string, appSlug: string, change: AnonWriteFollowChange): string;
@@ -0,0 +1,18 @@
1
+ const CLOSE_REASON = {
2
+ "rules-do-not-ask": "this access.js no longer returns `allowAnonymous: true`",
3
+ "not-open": "the app is no longer open to everyone",
4
+ sensitive: "the app is marked sensitive",
5
+ "personal-details": "the app now carries a real person's identifying details",
6
+ "rules-not-bound": "this release's access.js is not bound to every database yet",
7
+ };
8
+ export function anonWriteFollowNotice(ownerHandle, appSlug, change) {
9
+ const app = `${ownerHandle}/${appSlug}`;
10
+ if (change.to === "explicit") {
11
+ return (`Signed-out writes: turned ON for ${app}. This access.js returns \`allowAnonymous: true\`, so signed-out visitors' ` +
12
+ `saves now reach the shared data wherever your rules allow them. Make it your own setting with ` +
13
+ `\`vibes-diy app anon-write ${app} on\`, or \`off\` to keep them on each visitor's device.`);
14
+ }
15
+ const why = change.because === "rules-ask" ? "the rules changed" : CLOSE_REASON[change.because];
16
+ return (`Signed-out writes: turned OFF for ${app}, because ${why}. Signed-out visitors' saves stay on their own device. ` +
17
+ `Turn them on yourself with \`vibes-diy app anon-write ${app} on\`.`);
18
+ }