@dfosco/storyboard 0.5.0-beta.50 → 0.5.0-beta.52
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/dist/runtime/client/index.d.ts +1 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/schema/index.d.ts +7 -7
- package/package.json +1 -1
- package/src/core/cli/dev.js +4 -0
- package/src/internals/vite/data-plugin.js +5 -1
- package/dist/runtime/{api-CJeUwdWK.d.ts → api-BowaDQ1c.d.ts} +18 -18
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { H as Health, A as AcquireRequest, a as AcquireResponse, R as ReleaseRequest, P as ProxyState, c as ProxyUpsertRequest, d as ProxyRemoveRequest, b as PoolStatus, e as RuntimeError } from '../api-
|
|
2
|
+
import { H as Health, A as AcquireRequest, a as AcquireResponse, R as ReleaseRequest, P as ProxyState, c as ProxyUpsertRequest, d as ProxyRemoveRequest, b as PoolStatus, e as RuntimeError } from '../api-BowaDQ1c.js';
|
|
3
3
|
|
|
4
4
|
interface RuntimeClientOptions {
|
|
5
5
|
/** Override base URL (mostly for tests). */
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ALLOWED_TRANSITIONS, DEFAULT_DEV_DOMAIN, DevDomain, DevServer, DevServerSlot, DevServerStatus, IllegalTransitionError, Lease, Port, ProxyRoute, WorktreeName, assertTransition, slotKey } from './schema/index.js';
|
|
2
|
-
export { A as AcquireRequest, a as AcquireResponse, H as Health, b as PoolStatus, d as ProxyRemoveRequest, P as ProxyState, c as ProxyUpsertRequest, R as ReleaseRequest, e as RuntimeError } from './api-
|
|
2
|
+
export { A as AcquireRequest, a as AcquireResponse, H as Health, b as PoolStatus, d as ProxyRemoveRequest, P as ProxyState, c as ProxyUpsertRequest, R as ReleaseRequest, e as RuntimeError } from './api-BowaDQ1c.js';
|
|
3
3
|
export { RuntimeClient, RuntimeRequestError, runtime } from './client/index.js';
|
|
4
4
|
export { startDaemon } from './server/main.js';
|
|
5
5
|
import 'zod';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export { A as AcquireRequest, a as AcquireResponse, H as Health, b as PoolStatus, d as ProxyRemoveRequest, P as ProxyState, c as ProxyUpsertRequest, R as ReleaseRequest, e as RuntimeError } from '../api-
|
|
2
|
+
export { A as AcquireRequest, a as AcquireResponse, H as Health, b as PoolStatus, d as ProxyRemoveRequest, P as ProxyState, c as ProxyUpsertRequest, R as ReleaseRequest, e as RuntimeError } from '../api-BowaDQ1c.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The legacy/default devDomain. Acquire requests using this value are rejected
|
|
@@ -100,25 +100,25 @@ declare const DevServer: z.ZodObject<{
|
|
|
100
100
|
updatedAt: z.ZodString;
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
102
|
status?: "spawning" | "ready" | "stopped";
|
|
103
|
-
id?: string;
|
|
104
|
-
pid?: number;
|
|
105
103
|
port?: number & z.BRAND<"Port">;
|
|
106
104
|
slot?: {
|
|
107
105
|
devDomain?: string & z.BRAND<"DevDomain">;
|
|
108
106
|
worktree?: string & z.BRAND<"WorktreeName">;
|
|
109
107
|
};
|
|
108
|
+
id?: string;
|
|
109
|
+
pid?: number;
|
|
110
110
|
cwd?: string;
|
|
111
111
|
spawnedAt?: string;
|
|
112
112
|
updatedAt?: string;
|
|
113
113
|
}, {
|
|
114
114
|
status?: "spawning" | "ready" | "stopped";
|
|
115
|
-
id?: string;
|
|
116
|
-
pid?: number;
|
|
117
115
|
port?: number;
|
|
118
116
|
slot?: {
|
|
119
117
|
devDomain?: string;
|
|
120
118
|
worktree?: string;
|
|
121
119
|
};
|
|
120
|
+
id?: string;
|
|
121
|
+
pid?: number;
|
|
122
122
|
cwd?: string;
|
|
123
123
|
spawnedAt?: string;
|
|
124
124
|
updatedAt?: string;
|
|
@@ -149,20 +149,20 @@ declare const Lease: z.ZodObject<{
|
|
|
149
149
|
/** Far-future sentinel — leases don't actually expire. */
|
|
150
150
|
expiresAt: z.ZodString;
|
|
151
151
|
}, "strip", z.ZodTypeAny, {
|
|
152
|
-
id?: string;
|
|
153
152
|
slot?: {
|
|
154
153
|
devDomain?: string & z.BRAND<"DevDomain">;
|
|
155
154
|
worktree?: string & z.BRAND<"WorktreeName">;
|
|
156
155
|
};
|
|
156
|
+
id?: string;
|
|
157
157
|
devServerId?: string;
|
|
158
158
|
url?: string;
|
|
159
159
|
expiresAt?: string;
|
|
160
160
|
}, {
|
|
161
|
-
id?: string;
|
|
162
161
|
slot?: {
|
|
163
162
|
devDomain?: string;
|
|
164
163
|
worktree?: string;
|
|
165
164
|
};
|
|
165
|
+
id?: string;
|
|
166
166
|
devServerId?: string;
|
|
167
167
|
url?: string;
|
|
168
168
|
expiresAt?: string;
|
package/package.json
CHANGED
package/src/core/cli/dev.js
CHANGED
|
@@ -174,6 +174,10 @@ async function main() {
|
|
|
174
174
|
} catch (err) {
|
|
175
175
|
s.stop('Failed')
|
|
176
176
|
p.log.error(err.message || String(err))
|
|
177
|
+
const stderr = err?.details?.stderr
|
|
178
|
+
if (stderr && typeof stderr === 'string' && stderr.trim()) {
|
|
179
|
+
p.log.message(stderr.trim())
|
|
180
|
+
}
|
|
177
181
|
if (err.code === 'CONFLICT') p.log.info('Tip: another repo is already bound to this slot. Use a unique devDomain in storyboard.config.json.')
|
|
178
182
|
if (err.code === 'FORBIDDEN_DEFAULT_DOMAIN') p.log.info('Tip: edit storyboard.config.json and replace "storyboard" with a unique devDomain.')
|
|
179
183
|
process.exit(1)
|
|
@@ -306,7 +306,7 @@ function batchGitMetadata(root, filePaths) {
|
|
|
306
306
|
*/
|
|
307
307
|
function buildIndex(root, opts = {}) {
|
|
308
308
|
const { includeTilde = false } = opts
|
|
309
|
-
const ignore = ['node_modules/**', 'dist/**', '.git/**', '.worktrees/**', 'public/**']
|
|
309
|
+
const ignore = ['node_modules/**', 'dist/**', '.git/**', '.worktrees/**', 'worktrees/**', 'public/**']
|
|
310
310
|
const files = globSync(GLOB_PATTERN, { cwd: root, ignore, absolute: false })
|
|
311
311
|
const canvasFiles = globSync(CANVAS_GLOB_PATTERN, { cwd: root, ignore, absolute: false })
|
|
312
312
|
const canvasMetaFiles = globSync(CANVAS_META_GLOB_PATTERN, { cwd: root, ignore, absolute: false })
|
|
@@ -1046,6 +1046,10 @@ export default function storyboardDataPlugin() {
|
|
|
1046
1046
|
// imports `c` from react-compiler-runtime (CJS). Pre-bundle both
|
|
1047
1047
|
// so Vite generates the proper named-export interop.
|
|
1048
1048
|
'@primer/react', 'react-compiler-runtime',
|
|
1049
|
+
// react-is ships as CJS and @primer/react imports `isElement` as a
|
|
1050
|
+
// named ESM import. Without pre-bundling, Vite serves the raw CJS
|
|
1051
|
+
// file which breaks the named import in the browser.
|
|
1052
|
+
'react-is',
|
|
1049
1053
|
],
|
|
1050
1054
|
exclude: ['@dfosco/storyboard'],
|
|
1051
1055
|
},
|
|
@@ -58,20 +58,20 @@ declare const AcquireResponse: z.ZodObject<{
|
|
|
58
58
|
url: z.ZodString;
|
|
59
59
|
expiresAt: z.ZodString;
|
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
|
61
|
-
id?: string;
|
|
62
61
|
slot?: {
|
|
63
62
|
devDomain?: string & z.BRAND<"DevDomain">;
|
|
64
63
|
worktree?: string & z.BRAND<"WorktreeName">;
|
|
65
64
|
};
|
|
65
|
+
id?: string;
|
|
66
66
|
devServerId?: string;
|
|
67
67
|
url?: string;
|
|
68
68
|
expiresAt?: string;
|
|
69
69
|
}, {
|
|
70
|
-
id?: string;
|
|
71
70
|
slot?: {
|
|
72
71
|
devDomain?: string;
|
|
73
72
|
worktree?: string;
|
|
74
73
|
};
|
|
74
|
+
id?: string;
|
|
75
75
|
devServerId?: string;
|
|
76
76
|
url?: string;
|
|
77
77
|
expiresAt?: string;
|
|
@@ -96,73 +96,73 @@ declare const AcquireResponse: z.ZodObject<{
|
|
|
96
96
|
updatedAt: z.ZodString;
|
|
97
97
|
}, "strip", z.ZodTypeAny, {
|
|
98
98
|
status?: "spawning" | "ready" | "stopped";
|
|
99
|
-
id?: string;
|
|
100
|
-
pid?: number;
|
|
101
99
|
port?: number & z.BRAND<"Port">;
|
|
102
100
|
slot?: {
|
|
103
101
|
devDomain?: string & z.BRAND<"DevDomain">;
|
|
104
102
|
worktree?: string & z.BRAND<"WorktreeName">;
|
|
105
103
|
};
|
|
104
|
+
id?: string;
|
|
105
|
+
pid?: number;
|
|
106
106
|
cwd?: string;
|
|
107
107
|
spawnedAt?: string;
|
|
108
108
|
updatedAt?: string;
|
|
109
109
|
}, {
|
|
110
110
|
status?: "spawning" | "ready" | "stopped";
|
|
111
|
-
id?: string;
|
|
112
|
-
pid?: number;
|
|
113
111
|
port?: number;
|
|
114
112
|
slot?: {
|
|
115
113
|
devDomain?: string;
|
|
116
114
|
worktree?: string;
|
|
117
115
|
};
|
|
116
|
+
id?: string;
|
|
117
|
+
pid?: number;
|
|
118
118
|
cwd?: string;
|
|
119
119
|
spawnedAt?: string;
|
|
120
120
|
updatedAt?: string;
|
|
121
121
|
}>;
|
|
122
122
|
}, "strip", z.ZodTypeAny, {
|
|
123
123
|
lease?: {
|
|
124
|
-
id?: string;
|
|
125
124
|
slot?: {
|
|
126
125
|
devDomain?: string & z.BRAND<"DevDomain">;
|
|
127
126
|
worktree?: string & z.BRAND<"WorktreeName">;
|
|
128
127
|
};
|
|
128
|
+
id?: string;
|
|
129
129
|
devServerId?: string;
|
|
130
130
|
url?: string;
|
|
131
131
|
expiresAt?: string;
|
|
132
132
|
};
|
|
133
133
|
devServer?: {
|
|
134
134
|
status?: "spawning" | "ready" | "stopped";
|
|
135
|
-
id?: string;
|
|
136
|
-
pid?: number;
|
|
137
135
|
port?: number & z.BRAND<"Port">;
|
|
138
136
|
slot?: {
|
|
139
137
|
devDomain?: string & z.BRAND<"DevDomain">;
|
|
140
138
|
worktree?: string & z.BRAND<"WorktreeName">;
|
|
141
139
|
};
|
|
140
|
+
id?: string;
|
|
141
|
+
pid?: number;
|
|
142
142
|
cwd?: string;
|
|
143
143
|
spawnedAt?: string;
|
|
144
144
|
updatedAt?: string;
|
|
145
145
|
};
|
|
146
146
|
}, {
|
|
147
147
|
lease?: {
|
|
148
|
-
id?: string;
|
|
149
148
|
slot?: {
|
|
150
149
|
devDomain?: string;
|
|
151
150
|
worktree?: string;
|
|
152
151
|
};
|
|
152
|
+
id?: string;
|
|
153
153
|
devServerId?: string;
|
|
154
154
|
url?: string;
|
|
155
155
|
expiresAt?: string;
|
|
156
156
|
};
|
|
157
157
|
devServer?: {
|
|
158
158
|
status?: "spawning" | "ready" | "stopped";
|
|
159
|
-
id?: string;
|
|
160
|
-
pid?: number;
|
|
161
159
|
port?: number;
|
|
162
160
|
slot?: {
|
|
163
161
|
devDomain?: string;
|
|
164
162
|
worktree?: string;
|
|
165
163
|
};
|
|
164
|
+
id?: string;
|
|
165
|
+
pid?: number;
|
|
166
166
|
cwd?: string;
|
|
167
167
|
spawnedAt?: string;
|
|
168
168
|
updatedAt?: string;
|
|
@@ -231,13 +231,13 @@ declare const ProxyUpsertRequest: z.ZodObject<{
|
|
|
231
231
|
worktree: z.ZodString;
|
|
232
232
|
port: z.ZodNumber;
|
|
233
233
|
}, "strip", z.ZodTypeAny, {
|
|
234
|
+
port?: number;
|
|
234
235
|
devDomain?: string;
|
|
235
236
|
worktree?: string;
|
|
236
|
-
port?: number;
|
|
237
237
|
}, {
|
|
238
|
+
port?: number;
|
|
238
239
|
devDomain?: string;
|
|
239
240
|
worktree?: string;
|
|
240
|
-
port?: number;
|
|
241
241
|
}>;
|
|
242
242
|
type ProxyUpsertRequest = z.infer<typeof ProxyUpsertRequest>;
|
|
243
243
|
/** `POST /proxy/remove` — drop a worktree's route from the proxy. */
|
|
@@ -259,15 +259,15 @@ declare const Health: z.ZodObject<{
|
|
|
259
259
|
uptimeSeconds: z.ZodNumber;
|
|
260
260
|
port: z.ZodBranded<z.ZodNumber, "Port">;
|
|
261
261
|
}, "strip", z.ZodTypeAny, {
|
|
262
|
-
port?: number & z.BRAND<"Port">;
|
|
263
262
|
ok?: true;
|
|
264
263
|
version?: string;
|
|
265
264
|
uptimeSeconds?: number;
|
|
265
|
+
port?: number & z.BRAND<"Port">;
|
|
266
266
|
}, {
|
|
267
|
-
port?: number;
|
|
268
267
|
ok?: true;
|
|
269
268
|
version?: string;
|
|
270
269
|
uptimeSeconds?: number;
|
|
270
|
+
port?: number;
|
|
271
271
|
}>;
|
|
272
272
|
type Health = z.infer<typeof Health>;
|
|
273
273
|
/** Runtime error envelope. All non-2xx responses share this shape. */
|
|
@@ -276,12 +276,12 @@ declare const RuntimeError: z.ZodObject<{
|
|
|
276
276
|
code: z.ZodEnum<["NOT_IMPLEMENTED", "BAD_REQUEST", "CONFLICT", "NOT_FOUND", "FORBIDDEN_DEFAULT_DOMAIN", "INTERNAL", "CADDY_UNREACHABLE", "PORT_EXHAUSTED", "TIMEOUT"]>;
|
|
277
277
|
details: z.ZodOptional<z.ZodUnknown>;
|
|
278
278
|
}, "strip", z.ZodTypeAny, {
|
|
279
|
-
code?: "NOT_IMPLEMENTED" | "BAD_REQUEST" | "CONFLICT" | "NOT_FOUND" | "FORBIDDEN_DEFAULT_DOMAIN" | "INTERNAL" | "CADDY_UNREACHABLE" | "PORT_EXHAUSTED" | "TIMEOUT";
|
|
280
279
|
error?: string;
|
|
280
|
+
code?: "NOT_IMPLEMENTED" | "BAD_REQUEST" | "CONFLICT" | "NOT_FOUND" | "FORBIDDEN_DEFAULT_DOMAIN" | "INTERNAL" | "CADDY_UNREACHABLE" | "PORT_EXHAUSTED" | "TIMEOUT";
|
|
281
281
|
details?: unknown;
|
|
282
282
|
}, {
|
|
283
|
-
code?: "NOT_IMPLEMENTED" | "BAD_REQUEST" | "CONFLICT" | "NOT_FOUND" | "FORBIDDEN_DEFAULT_DOMAIN" | "INTERNAL" | "CADDY_UNREACHABLE" | "PORT_EXHAUSTED" | "TIMEOUT";
|
|
284
283
|
error?: string;
|
|
284
|
+
code?: "NOT_IMPLEMENTED" | "BAD_REQUEST" | "CONFLICT" | "NOT_FOUND" | "FORBIDDEN_DEFAULT_DOMAIN" | "INTERNAL" | "CADDY_UNREACHABLE" | "PORT_EXHAUSTED" | "TIMEOUT";
|
|
285
285
|
details?: unknown;
|
|
286
286
|
}>;
|
|
287
287
|
type RuntimeError = z.infer<typeof RuntimeError>;
|