@vibes.diy/api-types 4.0.16 → 4.0.17

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/README.md CHANGED
@@ -524,7 +524,7 @@ The `write-apps.ts` module applies transforms to uploaded files:
524
524
 
525
525
  3. **Import Map Generation**
526
526
  - Unknown packages → npm registry lookup for version → `esm.sh` URL
527
- - Predefined mappings for React 19.2.1, Fireproof, Clerk, etc.
527
+ - Predefined mappings for React (pinned via `lockedVersions.REACT`, kept equal to the workspace React), Fireproof, Clerk, etc.
528
528
  - Output: `/~~calculated~~/import-map.json` with `transform: { type: "import-map" }`
529
529
 
530
530
  ### fsId Calculation
package/app.d.ts CHANGED
@@ -727,6 +727,24 @@ export declare const resGetApplicationChat: import("arktype/internal/variants/ob
727
727
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
728
728
  type: "prompt.raw";
729
729
  text: string;
730
+ } | {
731
+ streamId: string;
732
+ chatId: string;
733
+ seq: number;
734
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
735
+ type: "prompt.fs-persisted";
736
+ fsRef: (In: {
737
+ appSlug: string;
738
+ ownerHandle?: string | undefined;
739
+ userSlug?: string | undefined;
740
+ mode: "dev" | "production";
741
+ fsId: string;
742
+ }) => import("arktype").Out<{
743
+ appSlug: string;
744
+ mode: "dev" | "production";
745
+ fsId: string;
746
+ ownerHandle: string;
747
+ }>;
730
748
  })[];
731
749
  }, {}>;
732
750
  export type ResGetApplicationChat = typeof resGetApplicationChat.infer;
package/chat.d.ts CHANGED
@@ -1299,6 +1299,24 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
1299
1299
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1300
1300
  type: "prompt.raw";
1301
1301
  text: string;
1302
+ } | {
1303
+ streamId: string;
1304
+ chatId: string;
1305
+ seq: number;
1306
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1307
+ type: "prompt.fs-persisted";
1308
+ fsRef: (In: {
1309
+ appSlug: string;
1310
+ ownerHandle?: string | undefined;
1311
+ userSlug?: string | undefined;
1312
+ mode: "dev" | "production";
1313
+ fsId: string;
1314
+ }) => import("arktype").Out<{
1315
+ appSlug: string;
1316
+ mode: "dev" | "production";
1317
+ fsId: string;
1318
+ ownerHandle: string;
1319
+ }>;
1302
1320
  }, {}>;
1303
1321
  export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
1304
1322
  export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
@@ -1642,6 +1660,24 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
1642
1660
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1643
1661
  type: "prompt.raw";
1644
1662
  text: string;
1663
+ } | {
1664
+ streamId: string;
1665
+ chatId: string;
1666
+ seq: number;
1667
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1668
+ type: "prompt.fs-persisted";
1669
+ fsRef: (In: {
1670
+ appSlug: string;
1671
+ ownerHandle?: string | undefined;
1672
+ userSlug?: string | undefined;
1673
+ mode: "dev" | "production";
1674
+ fsId: string;
1675
+ }) => import("arktype").Out<{
1676
+ appSlug: string;
1677
+ mode: "dev" | "production";
1678
+ fsId: string;
1679
+ ownerHandle: string;
1680
+ }>;
1645
1681
  })[];
1646
1682
  }, {}>;
1647
1683
  export type SectionEvent = typeof sectionEvent.infer;
@@ -1996,6 +2032,24 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
1996
2032
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1997
2033
  type: "prompt.raw";
1998
2034
  text: string;
2035
+ } | {
2036
+ streamId: string;
2037
+ chatId: string;
2038
+ seq: number;
2039
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2040
+ type: "prompt.fs-persisted";
2041
+ fsRef: (In: {
2042
+ appSlug: string;
2043
+ ownerHandle?: string | undefined;
2044
+ userSlug?: string | undefined;
2045
+ mode: "dev" | "production";
2046
+ fsId: string;
2047
+ }) => import("arktype").Out<{
2048
+ appSlug: string;
2049
+ mode: "dev" | "production";
2050
+ fsId: string;
2051
+ ownerHandle: string;
2052
+ }>;
1999
2053
  })[];
2000
2054
  }, {}>;
2001
2055
  export type ResChatResponseSection = typeof resChatResponseSection.infer;
@@ -2341,6 +2395,24 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
2341
2395
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2342
2396
  type: "prompt.raw";
2343
2397
  text: string;
2398
+ } | {
2399
+ streamId: string;
2400
+ chatId: string;
2401
+ seq: number;
2402
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2403
+ type: "prompt.fs-persisted";
2404
+ fsRef: (In: {
2405
+ appSlug: string;
2406
+ ownerHandle?: string | undefined;
2407
+ userSlug?: string | undefined;
2408
+ mode: "dev" | "production";
2409
+ fsId: string;
2410
+ }) => import("arktype").Out<{
2411
+ appSlug: string;
2412
+ mode: "dev" | "production";
2413
+ fsId: string;
2414
+ ownerHandle: string;
2415
+ }>;
2344
2416
  })[];
2345
2417
  }[];
2346
2418
  }, {}>;
@@ -2692,6 +2764,24 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
2692
2764
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2693
2765
  type: "prompt.raw";
2694
2766
  text: string;
2767
+ } | {
2768
+ streamId: string;
2769
+ chatId: string;
2770
+ seq: number;
2771
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2772
+ type: "prompt.fs-persisted";
2773
+ fsRef: (In: {
2774
+ appSlug: string;
2775
+ ownerHandle?: string | undefined;
2776
+ userSlug?: string | undefined;
2777
+ mode: "dev" | "production";
2778
+ fsId: string;
2779
+ }) => import("arktype").Out<{
2780
+ appSlug: string;
2781
+ mode: "dev" | "production";
2782
+ fsId: string;
2783
+ ownerHandle: string;
2784
+ }>;
2695
2785
  })[];
2696
2786
  }[];
2697
2787
  }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibes.diy/api-types",
3
- "version": "4.0.16",
3
+ "version": "4.0.17",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "scripts": {
@@ -10,9 +10,9 @@
10
10
  "@adviser/cement": "~0.5.34",
11
11
  "@ark/json-schema": "~0.0.4",
12
12
  "@cloudflare/workers-types": "~4.20260617.1",
13
- "@vibes.diy/call-ai-v2": "4.0.16",
14
- "@vibes.diy/identity": "4.0.16",
15
- "@vibes.diy/vibe-types": "4.0.16",
13
+ "@vibes.diy/call-ai-v2": "4.0.17",
14
+ "@vibes.diy/identity": "4.0.17",
15
+ "@vibes.diy/vibe-types": "4.0.17",
16
16
  "arktype": "~2.2.1"
17
17
  },
18
18
  "repository": {
package/prompt.d.ts CHANGED
@@ -122,6 +122,27 @@ export declare const PromptModelResolved: import("arktype/internal/variants/obje
122
122
  }, {}>;
123
123
  export type PromptModelResolved = typeof PromptModelResolved.infer;
124
124
  export declare function isPromptModelResolved(msg: unknown): msg is PromptModelResolved;
125
+ export declare const PromptFsPersisted: import("arktype/internal/variants/object.ts").ObjectType<{
126
+ streamId: string;
127
+ chatId: string;
128
+ seq: number;
129
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
130
+ type: "prompt.fs-persisted";
131
+ fsRef: (In: {
132
+ appSlug: string;
133
+ ownerHandle?: string | undefined;
134
+ userSlug?: string | undefined;
135
+ mode: "dev" | "production";
136
+ fsId: string;
137
+ }) => import("arktype").Out<{
138
+ appSlug: string;
139
+ mode: "dev" | "production";
140
+ fsId: string;
141
+ ownerHandle: string;
142
+ }>;
143
+ }, {}>;
144
+ export type PromptFsPersisted = typeof PromptFsPersisted.infer;
145
+ export declare function isPromptFsPersisted(msg: unknown): msg is PromptFsPersisted;
125
146
  export declare const PromptRaw: import("arktype/internal/variants/object.ts").ObjectType<{
126
147
  streamId: string;
127
148
  chatId: string;
@@ -269,6 +290,24 @@ export declare const PromptMsgs: import("arktype/internal/variants/object.ts").O
269
290
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
270
291
  type: "prompt.model-resolved";
271
292
  model: string;
293
+ } | {
294
+ streamId: string;
295
+ chatId: string;
296
+ seq: number;
297
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
298
+ type: "prompt.fs-persisted";
299
+ fsRef: (In: {
300
+ appSlug: string;
301
+ ownerHandle?: string | undefined;
302
+ userSlug?: string | undefined;
303
+ mode: "dev" | "production";
304
+ fsId: string;
305
+ }) => import("arktype").Out<{
306
+ appSlug: string;
307
+ mode: "dev" | "production";
308
+ fsId: string;
309
+ ownerHandle: string;
310
+ }>;
272
311
  } | {
273
312
  streamId: string;
274
313
  chatId: string;
package/prompt.js CHANGED
@@ -1,4 +1,4 @@
1
- import { CoercedDate, LLMRequest } from "@vibes.diy/call-ai-v2";
1
+ import { CoercedDate, FileSystemRef, LLMRequest } from "@vibes.diy/call-ai-v2";
2
2
  import { type } from "arktype";
3
3
  import { vibeFile } from "./common.js";
4
4
  export const PromptBase = type({
@@ -41,6 +41,13 @@ export const PromptModelResolved = type({
41
41
  export function isPromptModelResolved(msg) {
42
42
  return !(PromptModelResolved(msg) instanceof type.errors);
43
43
  }
44
+ export const PromptFsPersisted = type({
45
+ type: "'prompt.fs-persisted'",
46
+ fsRef: FileSystemRef,
47
+ }).and(PromptBase);
48
+ export function isPromptFsPersisted(msg) {
49
+ return !(PromptFsPersisted(msg) instanceof type.errors);
50
+ }
44
51
  export const PromptRaw = type({
45
52
  type: "'prompt.raw'",
46
53
  text: "string",
@@ -61,7 +68,8 @@ export const PromptMsgs = PromptBlockBegin.or(PromptBlockEnd)
61
68
  .or(PromptFS)
62
69
  .or(PromptDryRunPayload)
63
70
  .or(PromptModelResolved)
64
- .or(PromptRaw);
71
+ .or(PromptRaw)
72
+ .or(PromptFsPersisted);
65
73
  export const isPromptMsg = (msg) => !(PromptMsgs(msg) instanceof type.errors);
66
74
  export function isPromptBlockBegin(msg) {
67
75
  return !(PromptBlockBegin(msg) instanceof type.errors);
package/prompt.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"prompt.js","sourceRoot":"","sources":["../jsr/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,QAAQ;IAClB,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,QAAQ;IACb,SAAS,EAAE,WAAW;CACvB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,cAAc;IACpB,OAAO,EAAE,UAAU;CACpB,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;AAGnB,MAAM,UAAU,WAAW,CAAC,GAAY;IACtC,OAAO,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC;AAYD,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,aAAa;IACnB,UAAU,EAAE,QAAQ,CAAC,KAAK,EAAE;CAC7B,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;AAGnB,MAAM,UAAU,aAAa,CAAC,GAAY;IACxC,OAAO,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC;IACnC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AC;KACZ,EAAE,CAAC,mBAAmB,CAAC;KACvB,EAAE,CAAC,mBAAmB,CAAC;KACvB,EAAE,CAAC,SAAS,CAAC;KACb,EAAE,CAAC,iBAAiB,CAAC,CAAC;AAIzB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAY,EAAqB,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAE1G,MAAM,UAAU,kBAAkB,CAAC,GAAY;IAC7C,OAAO,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,GAAY,EAAE,QAAiB;IAC9D,IAAI,cAAc,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAC7D,OAAO,CAAC,QAAQ,IAAK,GAAsB,CAAC,QAAQ,KAAK,QAAQ,CAAC;AACpE,CAAC"}
@@ -31,7 +31,9 @@ export interface LLMChat extends LLMChatEntry {
31
31
  focusPath?: string;
32
32
  selected?: SelectedSlotInput;
33
33
  }): Promise<Result<ResPromptChatSection, VibesDiyError>>;
34
- promptFS(req: FSUpdate | VibeFile[]): Promise<Result<ResPromptChatSection, VibesDiyError>>;
34
+ promptFS(req: FSUpdate | VibeFile[], opts?: {
35
+ refFsId?: string;
36
+ }): Promise<Result<ResPromptChatSection, VibesDiyError>>;
35
37
  readonly sectionStream: ReadableStream<OnResponseTypes>;
36
38
  close(force?: boolean): Promise<void>;
37
39
  }
@@ -6,6 +6,7 @@ export declare const vibesSvcEnv: import("arktype/internal/variants/object.ts").
6
6
  POSTHOG_HOST?: string | undefined;
7
7
  VIBES_DIY_PUBLIC_BASE_URL: string;
8
8
  VIBES_SSR?: string | undefined;
9
+ ENVIRONMENT?: string | undefined;
9
10
  VIBES_CACHED_SUGGESTIONS?: string | undefined;
10
11
  BACKEND_JS?: string | undefined;
11
12
  }, {}>;
@@ -34,6 +35,7 @@ export declare const vibesDiyServCtx: import("arktype/internal/variants/object.t
34
35
  POSTHOG_HOST?: string | undefined;
35
36
  VIBES_DIY_PUBLIC_BASE_URL: string;
36
37
  VIBES_SSR?: string | undefined;
38
+ ENVIRONMENT?: string | undefined;
37
39
  VIBES_CACHED_SUGGESTIONS?: string | undefined;
38
40
  BACKEND_JS?: string | undefined;
39
41
  };
@@ -8,6 +8,7 @@ export const vibesSvcEnv = type({
8
8
  "POSTHOG_HOST?": "string",
9
9
  VIBES_DIY_PUBLIC_BASE_URL: "string",
10
10
  "VIBES_SSR?": "string",
11
+ "ENVIRONMENT?": "string",
11
12
  "VIBES_CACHED_SUGGESTIONS?": "string",
12
13
  "BACKEND_JS?": "string",
13
14
  });
@@ -1 +1 @@
1
- {"version":3,"file":"vibes-diy-serv-ctx.js","sourceRoot":"","sources":["../jsr/vibes-diy-serv-ctx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC;IAC9B,qBAAqB,EAAE,QAAQ;IAC/B,iBAAiB,EAAE,QAAQ;IAE3B,mBAAmB,EAAE,QAAQ;IAC7B,cAAc,EAAE,QAAQ;IACxB,eAAe,EAAE,QAAQ;IAQzB,yBAAyB,EAAE,QAAQ;IAInC,YAAY,EAAE,QAAQ;IAKtB,2BAA2B,EAAE,QAAQ;IAKrC,aAAa,EAAE,QAAQ;CAKxB,CAAC,CAAC;AAIH,MAAM,SAAS,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,QAAQ;IACrB,WAAW,EAAE,QAAQ;IACrB,eAAe,EAAE,QAAQ;CAC1B,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC;IAChC,OAAO,EAAE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