@fabrika/builder 0.9.0-dev.14 → 0.9.0-dev.15

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,6 +2,7 @@ import { BUILDER_DAEMON_HOST } from '../../shared/urls'
2
2
 
3
3
  export function admitRequest(req: Request, url: URL, port: number): Response | null {
4
4
  const authority = req.headers.get('host')
5
+ // Bun ≥ 1.4 builds `url` from Host even for an absolute-form target (against RFC 9112 §3.2.2), so its authority is unseen.
5
6
  const allowedHostname = url.hostname === BUILDER_DAEMON_HOST || url.hostname === 'localhost'
6
7
  const allowedAuthority = authority === `${url.hostname}:${port}` || (port === 80 && authority === url.hostname)
7
8
  const expectedPort = port === 80 ? '' : String(port)
@@ -36,8 +36,8 @@ this shape; do not add them.
36
36
  `fabrika db codegen` writes, and `src/app.ts` is
37
37
  `serve(contract, { database: scoped(tables) })`.
38
38
  - **The Worker entrypoint is generated** by `fabrika app build --provider=cloudflare`
39
- (`fabrika/entry.generated.ts`, `fabrika/migrations.generated.ts`). Never edit
40
- either. Which generated files are committed and which are ignored is the app
39
+ (`fabrika/entry.generated.ts`, `fabrika/migrations.generated.ts`,
40
+ `fabrika/contract.generated.ts`). Never edit them. Which generated files are committed and which are ignored is the app
41
41
  skill's list (`app-setup.md`, "Ignored files").
42
42
  - **The SPA** is built with Bun (`build-web.ts`) into the directory its `c.spa`
43
43
  mount names, and the config's `pipeline.build` runs that build. Build it on the
@@ -7,7 +7,7 @@ provides: [authentication, authorization, proxy-enforcement]
7
7
  requires: [cloudflare]
8
8
  recommends: []
9
9
  conflicts: [fabrika-iam, cloudflare-access, auth-password-kv, zerops-fabrika-auth]
10
- npm: ["@fabrika/app@0.9.0-dev.14", "@fabrika/db@0.9.0-dev.14", "@fabrika/ui@0.9.0-dev.14", "@fabrika/provider-cloudflare@0.9.0-dev.14", "@fabrika/check@0.9.0-dev.14", "@fabrika/cli@0.9.0-dev.14", "zod@^3.25.76"]
10
+ npm: ["@fabrika/app@0.9.0-dev.15", "@fabrika/db@0.9.0-dev.15", "@fabrika/ui@0.9.0-dev.15", "@fabrika/provider-cloudflare@0.9.0-dev.15", "@fabrika/check@0.9.0-dev.15", "@fabrika/cli@0.9.0-dev.15", "zod@^3.25.76"]
11
11
  status: wip
12
12
  sources:
13
13
  - where: "packages/app/skill/SKILL.md in fabrika-platform (the `fabrika-app` skill)"
@@ -7,7 +7,7 @@ provides: [authentication, authorization, proxy-enforcement]
7
7
  requires: [zerops-platform]
8
8
  recommends: []
9
9
  conflicts: [fabrika-iam, cloudflare-access, auth-password-kv]
10
- npm: ["@fabrika/app@0.9.0-dev.14", "@fabrika/db@0.9.0-dev.14", "zod@^3.25.76"]
10
+ npm: ["@fabrika/app@0.9.0-dev.15", "@fabrika/db@0.9.0-dev.15", "zod@^3.25.76"]
11
11
  status: wip
12
12
  sources:
13
13
  - where: "packages/app/skill/SKILL.md in fabrika-platform (the `fabrika-app` skill)"
@@ -7,7 +7,7 @@ provides: [platform, private-services, managed-deploy]
7
7
  requires: [bun, postgres]
8
8
  recommends: []
9
9
  conflicts: [cloudflare]
10
- npm: ["@fabrika/provider-zerops@0.9.0-dev.14", "@fabrika/app@0.9.0-dev.14", "@fabrika/cli@0.9.0-dev.14"]
10
+ npm: ["@fabrika/provider-zerops@0.9.0-dev.15", "@fabrika/app@0.9.0-dev.15", "@fabrika/cli@0.9.0-dev.15"]
11
11
  status: wip
12
12
  sources:
13
13
  - where: "examples/zerops-app/fabrika.config.ts + zerops.yaml in fabrika-platform"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabrika/builder",
3
- "version": "0.9.0-dev.14",
3
+ "version": "0.9.0-dev.15",
4
4
  "type": "module",
5
5
  "description": "Local-first guided application design and agent-assisted implementation.",
6
6
  "license": "MIT",
@@ -51,13 +51,13 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "zod": "^3.25.76",
54
- "@fabrika/annotations": "0.9.0-dev.14",
55
- "@fabrika/app": "0.9.0-dev.14",
56
- "@fabrika/auth-core": "0.9.0-dev.14",
57
- "@fabrika/canvas-kernel": "0.9.0-dev.14",
58
- "@fabrika/control-contract": "0.9.0-dev.14",
59
- "@fabrika/daemon-kit": "0.9.0-dev.14",
60
- "@fabrika/provider-zerops": "0.9.0-dev.14",
54
+ "@fabrika/annotations": "0.9.0-dev.15",
55
+ "@fabrika/app": "0.9.0-dev.15",
56
+ "@fabrika/auth-core": "0.9.0-dev.15",
57
+ "@fabrika/canvas-kernel": "0.9.0-dev.15",
58
+ "@fabrika/control-contract": "0.9.0-dev.15",
59
+ "@fabrika/daemon-kit": "0.9.0-dev.15",
60
+ "@fabrika/provider-zerops": "0.9.0-dev.15",
61
61
  "preact": "^10.25.0"
62
62
  }
63
63
  }
@@ -267,19 +267,19 @@ export declare const planResultSchema: z.ZodEffects<z.ZodObject<{
267
267
  gate?: string | undefined;
268
268
  revision?: number | undefined;
269
269
  error?: string | undefined;
270
+ errors?: Record<string, string> | undefined;
270
271
  browserUrl?: string | undefined;
271
272
  isNew?: boolean | undefined;
272
273
  canvasFiles?: string[] | undefined;
273
- errors?: Record<string, string> | undefined;
274
274
  }, {
275
275
  ok: boolean;
276
276
  gate?: unknown;
277
277
  revision?: unknown;
278
278
  error?: unknown;
279
+ errors?: unknown;
279
280
  browserUrl?: unknown;
280
281
  isNew?: unknown;
281
282
  canvasFiles?: unknown;
282
- errors?: unknown;
283
283
  }>, {
284
284
  errors?: Record<string, string> | undefined;
285
285
  error?: string | undefined;
@@ -294,10 +294,10 @@ export declare const planResultSchema: z.ZodEffects<z.ZodObject<{
294
294
  gate?: unknown;
295
295
  revision?: unknown;
296
296
  error?: unknown;
297
+ errors?: unknown;
297
298
  browserUrl?: unknown;
298
299
  isNew?: unknown;
299
300
  canvasFiles?: unknown;
300
- errors?: unknown;
301
301
  }>;
302
302
  export declare const buildEventSchema: z.ZodEffects<z.ZodObject<{
303
303
  status: z.ZodEnum<["queued", "running", "passed", "failed", "blocked", "info"]>;
@@ -1 +1 @@
1
- import{createContext as t,useContext as o}from"react";var i=t(null),r=t(""),e=t({sessionId:"",isShared:!1,fsAvailable:!1,uploadUrl:null});function s(){let n=o(i);if(!n)throw Error("useAnnotations requires an AnnotationProvider");return n}function l(){return o(e)}export{s as useAnnotations,l as useAnnotationHost,r as SessionContext,e as AnnotationHostContext,i as AnnotationCtx};
1
+ import{createContext as t,useContext as o}from"react";var i=t(null),r=t(""),e=t({sessionId:"",isShared:!1,fsAvailable:!1,uploadUrl:null});function s(){let n=o(i);if(!n)throw Error("useAnnotations requires an AnnotationProvider");return n}function l(){return o(e)}export{i as AnnotationCtx,e as AnnotationHostContext,r as SessionContext,l as useAnnotationHost,s as useAnnotations};