@tailorkit/app 0.1.0-beta.16 → 0.1.0-beta.18

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
@@ -96,7 +96,7 @@ Add `server: {}` to `tailorkit.config.ts` to build the backend from `src/server.
96
96
 
97
97
  `tailorkit deploy` uploads the client and private server artifact through existing platform-issued blob upload URLs. Apps need no Cloudflare credentials. R2 stores them under separate `client/` and `server/` prefixes; only client assets are public. Client-only apps continue to build without a server artifact. Watch mode watches both builds.
98
98
 
99
- The legacy `app-storage` SDK, `storage` config and storage CLI commands have been removed. Use `server` config and this SDK. Host authorization is configured with `backend.resolveInstallation`; the host session endpoint is `/backend/session`.
99
+ The legacy `app-storage` SDK, `storage` config and storage CLI commands have been removed. Use `server` config and this SDK. The host session endpoint `/backend/session` uses the existing host `authenticate` callback. The platform verifies scope access and resolves the installation and runtime URL automatically; no extra host backend configuration is required.
100
100
 
101
101
  ## Preact hooks
102
102
 
@@ -17,7 +17,84 @@ declare const tailorkitConfigSchema: z.ZodObject<{
17
17
  migrations: z.ZodOptional<z.ZodString>;
18
18
  }, z.core.$strict>>;
19
19
  }, z.core.$strict>;
20
- export type TailorKitConfig = z.input<typeof tailorkitConfigSchema>;
20
+ /**
21
+ * App configuration exported from `tailorkit.config.ts`.
22
+ * Relative paths are resolved from the directory containing the config file.
23
+ */
24
+ export interface TailorKitConfig extends z.input<typeof tailorkitConfigSchema> {
25
+ /**
26
+ * ID of the app on the TailorKit host, used for deployment and remote preview.
27
+ * When omitted, the first deployment creates an app and saves its ID here.
28
+ * The agent command prompts to select or create an app and saves its ID here.
29
+ * Remote preview requires an existing app ID.
30
+ * @default undefined
31
+ */
32
+ appId?: string;
33
+ /**
34
+ * Build output settings. Omit to use the default output directory.
35
+ * @default undefined
36
+ */
37
+ build?: {
38
+ /**
39
+ * Directory for generated client bundles, server bundles, and migration assets.
40
+ * A build or CLI `outDir` option overrides this value.
41
+ * @default ".tailorkit"
42
+ */
43
+ outDir?: string;
44
+ };
45
+ /**
46
+ * Browser client build settings. Omit to use the default client entry point.
47
+ * @default undefined
48
+ */
49
+ client?: {
50
+ /**
51
+ * Source entry point for the app's browser bundle.
52
+ * @default "src/client.ts"
53
+ */
54
+ entry?: string;
55
+ };
56
+ /**
57
+ * URL of the TailorKit host used for authentication, deployment, remote preview,
58
+ * and fetching the host schema for generated types. Required; has no default.
59
+ */
60
+ host: string;
61
+ /**
62
+ * Optional app logo assets included in the build and uploaded on deployment.
63
+ * Accepts SVG, PNG, or WebP files. Omit to upload no custom logos.
64
+ * @default undefined
65
+ */
66
+ logos?: {
67
+ /**
68
+ * Path to the app logo for dark mode. Omit to upload no dark-mode logo.
69
+ * @default undefined
70
+ */
71
+ dark?: string;
72
+ /**
73
+ * Path to the app logo for light mode. Omit to upload no light-mode logo.
74
+ * @default undefined
75
+ */
76
+ light?: string;
77
+ };
78
+ /**
79
+ * Enables the private app backend and its database migrations when present.
80
+ * Set to `{}` to use the default paths; omit for a client-only app.
81
+ * @default undefined
82
+ */
83
+ server?: {
84
+ /**
85
+ * Source entry point for the app's private backend bundle.
86
+ * @default "src/server.ts"
87
+ */
88
+ entry?: string;
89
+ /**
90
+ * Directory containing Drizzle migrations, used for generation and bundling.
91
+ * When omitted, uses `./migrations` and allows that directory to be absent.
92
+ * An explicitly configured directory must exist when building the backend.
93
+ * @default "./migrations"
94
+ */
95
+ migrations?: string;
96
+ };
97
+ }
21
98
  export type ResolvedTailorKitConfig = z.output<typeof tailorkitConfigSchema>;
22
99
  export { tailorkitConfigSchema };
23
100
  export declare const defineConfig: (config: TailorKitConfig) => TailorKitConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailorkit/app",
3
- "version": "0.1.0-beta.16",
3
+ "version": "0.1.0-beta.18",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,8 +47,8 @@
47
47
  "dependencies": {
48
48
  "@orpc/client": "2.0.0-beta.40",
49
49
  "@orpc/contract": "2.0.0-beta.40",
50
- "@tanstack/preact-store": "0.13.3",
51
- "@tanstack/store": "0.11.1",
50
+ "@tanstack/preact-store": "0.13.4",
51
+ "@tanstack/store": "0.11.2",
52
52
  "cosmiconfig": "^10.0.1",
53
53
  "drizzle-orm": "1.0.0-rc.4-5d5b77c",
54
54
  "vite": "npm:@voidzero-dev/vite-plus-core@1.0.0",
@@ -57,7 +57,7 @@
57
57
  "devDependencies": {
58
58
  "@tailorkit/asset-delivery": "0.0.0",
59
59
  "@tailorkit/config": "0.0.0",
60
- "@types/node": "26.6.3",
60
+ "@types/node": "26.6.4",
61
61
  "happy-dom": "^20.14.5",
62
62
  "preact": "^10.29.8",
63
63
  "tsup": "^8.5.1",