@fabrika/builder 0.5.4 → 0.5.5

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.
@@ -1,5 +1,13 @@
1
1
  import { createRpcClient, type RpcFetch } from '@fabrika/app'
2
- import type { AppEnvDto, ControlRpcContract, JsonValue, ProviderEnvelopeDto, RunStatus } from '@fabrika/control-contract'
2
+ import {
3
+ type AppEnvDto,
4
+ type ControlRpcContract,
5
+ type JsonValue,
6
+ type ProviderEnvelopeDto,
7
+ type RunStatus,
8
+ SURFACE_REACHES,
9
+ type SurfaceEndpointDto,
10
+ } from '@fabrika/control-contract'
3
11
  import { z } from 'zod'
4
12
  import { parseBuilderOrigin } from '../../shared'
5
13
  import { PlatformError, type StoredCredential, storedIntegerSchema, storedTextSchema } from './platform-storage'
@@ -24,6 +32,16 @@ const envelopeSchema: z.ZodType<ProviderEnvelopeDto> = z.object({
24
32
  version: storedIntegerSchema,
25
33
  payload: jsonValueSchema,
26
34
  })
35
+ const surfaceEndpointSchema: z.ZodType<SurfaceEndpointDto> = z.object({
36
+ id: storedTextSchema,
37
+ method: z.enum(['GET', 'POST']),
38
+ path: storedTextSchema,
39
+ kind: z.enum(['query', 'mutation', 'spa', 'upload', 'download', 'health', 'form', 'webhook', 'link-spa', 'public-spa']),
40
+ reach: z.enum(SURFACE_REACHES),
41
+ callers: z.array(storedTextSchema),
42
+ requirement: storedTextSchema.nullable(),
43
+ notes: z.array(storedTextSchema),
44
+ })
27
45
  const environmentsSchema = z.object({
28
46
  items: z.array(z.object({
29
47
  appId: storedTextSchema,
@@ -38,6 +56,8 @@ const environmentsSchema = z.object({
38
56
  publishedRunId: storedTextSchema.nullable(),
39
57
  // A Control older than the field lists none.
40
58
  deviationSubjects: z.array(z.object({ subject: storedTextSchema, steps: z.array(storedTextSchema) })).default([]),
59
+ // A Control older than the field lists none.
60
+ surface: z.array(surfaceEndpointSchema).default([]),
41
61
  namespaceId: storedTextSchema.nullable(),
42
62
  provider: storedTextSchema,
43
63
  target: envelopeSchema,
@@ -7,7 +7,7 @@ provides: [authentication, authorization, proxy-enforcement]
7
7
  requires: [zerops-platform]
8
8
  recommends: []
9
9
  conflicts: [propustka, cloudflare-access, auth-password-kv]
10
- npm: ["@fabrika/app@0.5.4", "@fabrika/db@0.5.4", "zod@^3.25.76"]
10
+ npm: ["@fabrika/app@0.5.5", "@fabrika/db@0.5.5", "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.5.4", "@fabrika/app@0.5.4", "@fabrika/cli@0.5.4"]
10
+ npm: ["@fabrika/provider-zerops@0.5.5", "@fabrika/app@0.5.5", "@fabrika/cli@0.5.5"]
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.5.4",
3
+ "version": "0.5.5",
4
4
  "type": "module",
5
5
  "description": "Local-first guided application design and agent-assisted implementation.",
6
6
  "license": "MIT",
@@ -47,13 +47,13 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "zod": "^3.25.76",
50
- "@fabrika/annotations": "0.5.4",
51
- "@fabrika/app": "0.5.4",
52
- "@fabrika/auth-core": "0.5.4",
53
- "@fabrika/canvas-kernel": "0.5.4",
54
- "@fabrika/control-contract": "0.5.4",
55
- "@fabrika/daemon-kit": "0.5.4",
56
- "@fabrika/provider-zerops": "0.5.4",
50
+ "@fabrika/annotations": "0.5.5",
51
+ "@fabrika/app": "0.5.5",
52
+ "@fabrika/auth-core": "0.5.5",
53
+ "@fabrika/canvas-kernel": "0.5.5",
54
+ "@fabrika/control-contract": "0.5.5",
55
+ "@fabrika/daemon-kit": "0.5.5",
56
+ "@fabrika/provider-zerops": "0.5.5",
57
57
  "preact": "^10.25.0"
58
58
  }
59
59
  }