@quickback-dev/cli 0.14.2 → 0.16.0
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/commands/compile.d.ts.map +1 -1
- package/dist/commands/compile.js +40 -2
- package/dist/commands/compile.js.map +1 -1
- package/dist/docs/content.js +5 -5
- package/dist/docs/content.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/copy-public-assets.d.ts +34 -0
- package/dist/lib/copy-public-assets.d.ts.map +1 -0
- package/dist/lib/copy-public-assets.js +118 -0
- package/dist/lib/copy-public-assets.js.map +1 -0
- package/dist/lib/copy-public-assets.test.d.ts +2 -0
- package/dist/lib/copy-public-assets.test.d.ts.map +1 -0
- package/dist/lib/copy-public-assets.test.js +151 -0
- package/dist/lib/copy-public-assets.test.js.map +1 -0
- package/dist/skill/docs/changelog.md +158 -0
- package/dist/skill/docs/compiler/config/index.md +18 -0
- package/dist/skill/docs/compiler/config/output.md +34 -0
- package/dist/skill/docs/compiler/definitions/access.md +16 -2
- package/dist/skill/docs/compiler/definitions/firewall.md +27 -0
- package/dist/skill/docs/compiler/definitions/schema.md +9 -0
- package/package.json +1 -1
- package/src/skill/docs/changelog.md +158 -0
- package/src/skill/docs/compiler/config/index.md +18 -0
- package/src/skill/docs/compiler/config/output.md +34 -0
- package/src/skill/docs/compiler/definitions/access.md +16 -2
- package/src/skill/docs/compiler/definitions/firewall.md +27 -0
- package/src/skill/docs/compiler/definitions/schema.md +9 -0
package/dist/docs/content.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/docs/content.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,0DAA0D;AAO1D,MAAM,CAAC,MAAM,IAAI,GAA6B;IAC5C,WAAW,EAAE;QACX,OAAO,EAAE,WAAW;QACpB,SAAS,EAAE,u24FAAu24F;KACn34F;IACD,4BAA4B,EAAE;QAC5B,OAAO,EAAE,oB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;IACjB,0BAA0B;IAC1B,yBAAyB;IACzB,2BAA2B;IAC3B,oBAAoB;IACpB,uBAAuB;IACvB,OAAO;IACP,uBAAuB;IACvB,cAAc;IACd,2BAA2B;IAC3B,gCAAgC;IAChC,gBAAgB;IAChB,kCAAkC;IAClC,+BAA+B;IAC/B,eAAe;IACf,kBAAkB;IAClB,kBAAkB;IAClB,wBAAwB;IACxB,wBAAwB;IACxB,yBAAyB;IACzB,cAAc;IACd,+BAA+B;IAC/B,wBAAwB;IACxB,gBAAgB;IAChB,yBAAyB;CAC1B,CAAC"}
|
|
1
|
+
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../src/docs/content.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,0DAA0D;AAO1D,MAAM,CAAC,MAAM,IAAI,GAA6B;IAC5C,WAAW,EAAE;QACX,OAAO,EAAE,WAAW;QACpB,SAAS,EAAE,oplHAAoplH;KAChqlH;IACD,4BAA4B,EAAE;QAC5B,OAAO,EAAE,oBAAoB;QAC7B,SAAS,EAAE,giRAAgiR;KAC5iR;IACD,wCAAwC,EAAE;QACxC,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,2nEAA2nE;KACvoE;IACD,6BAA6B,EAAE;QAC7B,OAAO,EAAE,eAAe;QACxB,SAAS,EAAE,upQAAupQ;KACnqQ;IACD,mCAAmC,EAAE;QACnC,OAAO,EAAE,WAAW;QACpB,SAAS,EAAE,iuGAAiuG;KAC7uG;IACD,yBAAyB,EAAE;QACzB,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,w4EAAw4E;KACp5E;IACD,wCAAwC,EAAE;QACxC,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,+tFAA+tF;KAC3uF;IACD,yCAAyC,EAAE;QACzC,OAAO,EAAE,iBAAiB;QAC1B,SAAS,EAAE,k/DAAk/D;KAC9/D;IACD,wBAAwB,EAAE;QACxB,OAAO,EAAE,oBAAoB;QAC7B,SAAS,EAAE,w+MAAw+M;KACp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ACjD,sDAAsD;IACtD,mDAAmD;IACnD,kBAAkB;IAClB,+BAA+B;IAC/B,2CAA2C;IAC3C,wCAAwC;IACxC,qCAAqC;IACrC,0BAA0B;IAC1B,OAAO;IACP,gCAAgC;IAChC,wCAAwC;IACxC,iCAAiC;IACjC,oCAAoC;IACpC,mCAAmC;IACnC,yCAAyC;IACzC,2BAA2B;IAC3B,yCAAyC;IACzC,oCAAoC;IACpC,wCAAwC;IACxC,oCAAoC;IACpC,wBAAwB;IACxB,kBAAkB;IAClB,gCAAgC;IAChC,6BAA6B;IAC7B,iCAAiC;IACjC,yBAAyB;IACzB,qBAAqB;IACrB,wBAAwB;IACxB,YAAY;IACZ,6BAA6B;IAC7B,4BAA4B;IAC5B,+BAA+B;IAC/B,oBAAoB;IACpB,sCAAsC;IACtC,qBAAqB;IACrB,uBAAuB;IACvB,mBAAmB;IACnB,sBAAsB;IACtB,sBAAsB;IACtB,qBAAqB;IACrB,WAAW;IACX,0BAA0B;IAC1B,iBAAiB;IACjB,0BAA0B;IAC1B,yBAAyB;IACzB,2BAA2B;IAC3B,oBAAoB;IACpB,uBAAuB;IACvB,OAAO;IACP,uBAAuB;IACvB,cAAc;IACd,2BAA2B;IAC3B,gCAAgC;IAChC,gBAAgB;IAChB,kCAAkC;IAClC,+BAA+B;IAC/B,eAAe;IACf,kBAAkB;IAClB,kBAAkB;IAClB,wBAAwB;IACxB,wBAAwB;IACxB,yBAAyB;IACzB,cAAc;IACd,+BAA+B;IAC/B,wBAAwB;IACxB,gBAAgB;IAChB,yBAAyB;CAC1B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface CopyPublicAssetsOptions {
|
|
2
|
+
/** Project root — the parent of the `quickback/` folder. */
|
|
3
|
+
projectRoot: string;
|
|
4
|
+
/** Output root — where `src/` lives. Usually equals projectRoot. */
|
|
5
|
+
outputDir: string;
|
|
6
|
+
/** Paths the compiler is writing this run, relative to outputDir. */
|
|
7
|
+
manifestPaths: Iterable<string>;
|
|
8
|
+
}
|
|
9
|
+
export interface CopyPublicAssetsResult {
|
|
10
|
+
/** Number of files copied. Zero when the folder is missing or empty. */
|
|
11
|
+
copied: number;
|
|
12
|
+
/** Absolute path of the source folder, for logging — undefined when missing. */
|
|
13
|
+
sourceDir?: string;
|
|
14
|
+
/** Final destination paths, relative to outputDir. */
|
|
15
|
+
destPaths: string[];
|
|
16
|
+
}
|
|
17
|
+
export declare class PublicAssetCollisionError extends Error {
|
|
18
|
+
readonly collisions: Array<{
|
|
19
|
+
publicPath: string;
|
|
20
|
+
manifestPath: string;
|
|
21
|
+
}>;
|
|
22
|
+
constructor(collisions: Array<{
|
|
23
|
+
publicPath: string;
|
|
24
|
+
manifestPath: string;
|
|
25
|
+
}>);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Copy `<projectRoot>/quickback/public/**` into `<outputDir>/src/apps/**`.
|
|
29
|
+
*
|
|
30
|
+
* Returns `{ copied: 0 }` when the source folder is absent — public/ is
|
|
31
|
+
* an opt-in convention, not a required directory.
|
|
32
|
+
*/
|
|
33
|
+
export declare function copyPublicAssets(options: CopyPublicAssetsOptions): Promise<CopyPublicAssetsResult>;
|
|
34
|
+
//# sourceMappingURL=copy-public-assets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-public-assets.d.ts","sourceRoot":"","sources":["../../src/lib/copy-public-assets.ts"],"names":[],"mappings":"AA6BA,MAAM,WAAW,uBAAuB;IACtC,4DAA4D;IAC5D,WAAW,EAAE,MAAM,CAAC;IACpB,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,sBAAsB;IACrC,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,qBAAa,yBAA0B,SAAQ,KAAK;IAClD,QAAQ,CAAC,UAAU,EAAE,KAAK,CAAC;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;gBAE7D,UAAU,EAAE,KAAK,CAAC;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC;CAc5E;AAED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,sBAAsB,CAAC,CAoCjC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Static-asset passthrough for `quickback/public/`.
|
|
3
|
+
*
|
|
4
|
+
* Anything under `<projectRoot>/quickback/public/` is copied verbatim into
|
|
5
|
+
* `<outputDir>/src/apps/`, preserving directory structure. The compiler
|
|
6
|
+
* never sees these files — they ride past it as bytes and land in the
|
|
7
|
+
* Cloudflare ASSETS directory the worker already binds for the SPAs.
|
|
8
|
+
*
|
|
9
|
+
* Why bytes, not strings: `writeFilesWithMerge` writes `content` as utf-8,
|
|
10
|
+
* which corrupts PNGs / fonts / PDFs. Routing the copy through a separate
|
|
11
|
+
* `fs.copyFile` step keeps binaries intact and avoids a base64 round-trip
|
|
12
|
+
* through the compiler API.
|
|
13
|
+
*
|
|
14
|
+
* Why after the wipe-and-write: `prepareGeneratedDir` wipes `src/` based on
|
|
15
|
+
* the compiler's manifest, so on every compile we start clean and copy
|
|
16
|
+
* fresh. Files removed from `quickback/public/` disappear automatically on
|
|
17
|
+
* the next compile — no orphan tracking needed.
|
|
18
|
+
*
|
|
19
|
+
* Collisions with compiler-emitted paths (e.g. a user dropping
|
|
20
|
+
* `cms/index.html` into public/ and shadowing the SPA shell) are rejected
|
|
21
|
+
* with a clear error rather than silently overwritten — silent overwrite
|
|
22
|
+
* would make a confused SPA build look like a broken compiler.
|
|
23
|
+
*/
|
|
24
|
+
import { promises as fs } from 'fs';
|
|
25
|
+
import { join, relative, sep } from 'path';
|
|
26
|
+
const PUBLIC_DIR_NAME = 'public';
|
|
27
|
+
const TARGET_PREFIX = join('src', 'apps');
|
|
28
|
+
export class PublicAssetCollisionError extends Error {
|
|
29
|
+
collisions;
|
|
30
|
+
constructor(collisions) {
|
|
31
|
+
const lines = collisions.map((c) => ` • quickback/${PUBLIC_DIR_NAME}/${c.publicPath} → ${c.manifestPath} (already emitted by compiler)`);
|
|
32
|
+
super([
|
|
33
|
+
`quickback/${PUBLIC_DIR_NAME}/ contains ${collisions.length} file(s) that would overwrite compiler output:`,
|
|
34
|
+
...lines,
|
|
35
|
+
`Rename or remove these files. Reserved subpaths under src/apps/ include cms/ and account/ when those SPAs are enabled.`,
|
|
36
|
+
].join('\n'));
|
|
37
|
+
this.name = 'PublicAssetCollisionError';
|
|
38
|
+
this.collisions = collisions;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Copy `<projectRoot>/quickback/public/**` into `<outputDir>/src/apps/**`.
|
|
43
|
+
*
|
|
44
|
+
* Returns `{ copied: 0 }` when the source folder is absent — public/ is
|
|
45
|
+
* an opt-in convention, not a required directory.
|
|
46
|
+
*/
|
|
47
|
+
export async function copyPublicAssets(options) {
|
|
48
|
+
const sourceDir = join(options.projectRoot, 'quickback', PUBLIC_DIR_NAME);
|
|
49
|
+
if (!(await isDirectory(sourceDir))) {
|
|
50
|
+
return { copied: 0, destPaths: [] };
|
|
51
|
+
}
|
|
52
|
+
const sources = await collectFiles(sourceDir);
|
|
53
|
+
if (sources.length === 0) {
|
|
54
|
+
return { copied: 0, sourceDir, destPaths: [] };
|
|
55
|
+
}
|
|
56
|
+
const manifestSet = new Set();
|
|
57
|
+
for (const p of options.manifestPaths)
|
|
58
|
+
manifestSet.add(toPosix(p));
|
|
59
|
+
const collisions = [];
|
|
60
|
+
const destPaths = [];
|
|
61
|
+
for (const rel of sources) {
|
|
62
|
+
const dest = join(TARGET_PREFIX, rel);
|
|
63
|
+
const destPosix = toPosix(dest);
|
|
64
|
+
if (manifestSet.has(destPosix)) {
|
|
65
|
+
collisions.push({ publicPath: toPosix(rel), manifestPath: destPosix });
|
|
66
|
+
}
|
|
67
|
+
destPaths.push(dest);
|
|
68
|
+
}
|
|
69
|
+
if (collisions.length > 0) {
|
|
70
|
+
throw new PublicAssetCollisionError(collisions);
|
|
71
|
+
}
|
|
72
|
+
for (const rel of sources) {
|
|
73
|
+
const src = join(sourceDir, rel);
|
|
74
|
+
const dest = join(options.outputDir, TARGET_PREFIX, rel);
|
|
75
|
+
await fs.mkdir(join(dest, '..'), { recursive: true });
|
|
76
|
+
await fs.copyFile(src, dest);
|
|
77
|
+
}
|
|
78
|
+
return { copied: sources.length, sourceDir, destPaths };
|
|
79
|
+
}
|
|
80
|
+
async function isDirectory(p) {
|
|
81
|
+
try {
|
|
82
|
+
const s = await fs.stat(p);
|
|
83
|
+
return s.isDirectory();
|
|
84
|
+
}
|
|
85
|
+
catch {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Walk a directory tree and return every regular file as a path relative
|
|
91
|
+
* to the root. Hidden entries (`.DS_Store`, `.git/`, etc.) are skipped —
|
|
92
|
+
* the user did not "drop these in public/" intentionally and they break
|
|
93
|
+
* worker asset bindings.
|
|
94
|
+
*/
|
|
95
|
+
async function collectFiles(root) {
|
|
96
|
+
const out = [];
|
|
97
|
+
async function walk(dir) {
|
|
98
|
+
const entries = await fs.readdir(dir, { withFileTypes: true });
|
|
99
|
+
for (const entry of entries) {
|
|
100
|
+
if (entry.name.startsWith('.'))
|
|
101
|
+
continue;
|
|
102
|
+
const full = join(dir, entry.name);
|
|
103
|
+
if (entry.isDirectory()) {
|
|
104
|
+
await walk(full);
|
|
105
|
+
}
|
|
106
|
+
else if (entry.isFile()) {
|
|
107
|
+
out.push(relative(root, full));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
await walk(root);
|
|
112
|
+
out.sort();
|
|
113
|
+
return out;
|
|
114
|
+
}
|
|
115
|
+
function toPosix(p) {
|
|
116
|
+
return sep === '/' ? p : p.split(sep).join('/');
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=copy-public-assets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-public-assets.js","sourceRoot":"","sources":["../../src/lib/copy-public-assets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAE3C,MAAM,eAAe,GAAG,QAAQ,CAAC;AACjC,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AAoB1C,MAAM,OAAO,yBAA0B,SAAQ,KAAK;IACzC,UAAU,CAAsD;IAEzE,YAAY,UAA+D;QACzE,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,CAC1B,CAAC,CAAC,EAAE,EAAE,CAAC,iBAAiB,eAAe,IAAI,CAAC,CAAC,UAAU,MAAM,CAAC,CAAC,YAAY,gCAAgC,CAC5G,CAAC;QACF,KAAK,CACH;YACE,aAAa,eAAe,cAAc,UAAU,CAAC,MAAM,gDAAgD;YAC3G,GAAG,KAAK;YACR,wHAAwH;SACzH,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,2BAA2B,CAAC;QACxC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,OAAgC;IAEhC,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CA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C;iBAAM,IAAI,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC;gBAC1B,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;YACjC,CAAC;QACH,CAAC;IACH,CAAC;IACD,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC;IACjB,GAAG,CAAC,IAAI,EAAE,CAAC;IACX,OAAO,GAAG,CAAC;AACb,CAAC;AAED,SAAS,OAAO,CAAC,CAAS;IACxB,OAAO,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-public-assets.test.d.ts","sourceRoot":"","sources":["../../src/lib/copy-public-assets.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { describe, expect, test, beforeEach, afterEach } from 'bun:test';
|
|
2
|
+
import { promises as fs } from 'fs';
|
|
3
|
+
import { join } from 'path';
|
|
4
|
+
import { tmpdir } from 'os';
|
|
5
|
+
import { copyPublicAssets, PublicAssetCollisionError } from './copy-public-assets.js';
|
|
6
|
+
let tmp;
|
|
7
|
+
let projectRoot;
|
|
8
|
+
let outputDir;
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
tmp = await fs.mkdtemp(join(tmpdir(), 'public-assets-'));
|
|
11
|
+
projectRoot = join(tmp, 'project');
|
|
12
|
+
outputDir = projectRoot;
|
|
13
|
+
await fs.mkdir(projectRoot, { recursive: true });
|
|
14
|
+
});
|
|
15
|
+
afterEach(async () => {
|
|
16
|
+
await fs.rm(tmp, { recursive: true, force: true }).catch(() => { });
|
|
17
|
+
});
|
|
18
|
+
async function writePublic(rel, content) {
|
|
19
|
+
const full = join(projectRoot, 'quickback', 'public', rel);
|
|
20
|
+
await fs.mkdir(join(full, '..'), { recursive: true });
|
|
21
|
+
await fs.writeFile(full, content);
|
|
22
|
+
}
|
|
23
|
+
async function readDest(rel) {
|
|
24
|
+
return fs.readFile(join(outputDir, 'src', 'apps', rel));
|
|
25
|
+
}
|
|
26
|
+
async function pathExists(p) {
|
|
27
|
+
try {
|
|
28
|
+
await fs.access(p);
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
describe('copyPublicAssets — quickback/public passthrough', () => {
|
|
36
|
+
test('no-op when public folder is missing', async () => {
|
|
37
|
+
const result = await copyPublicAssets({
|
|
38
|
+
projectRoot,
|
|
39
|
+
outputDir,
|
|
40
|
+
manifestPaths: ['src/index.ts'],
|
|
41
|
+
});
|
|
42
|
+
expect(result.copied).toBe(0);
|
|
43
|
+
expect(result.destPaths).toEqual([]);
|
|
44
|
+
expect(await pathExists(join(outputDir, 'src', 'apps'))).toBe(false);
|
|
45
|
+
});
|
|
46
|
+
test('copies a single text file at the root of public/ to src/apps/', async () => {
|
|
47
|
+
await writePublic('robots.txt', 'User-agent: *\nDisallow:\n');
|
|
48
|
+
const result = await copyPublicAssets({
|
|
49
|
+
projectRoot,
|
|
50
|
+
outputDir,
|
|
51
|
+
manifestPaths: ['src/index.ts'],
|
|
52
|
+
});
|
|
53
|
+
expect(result.copied).toBe(1);
|
|
54
|
+
expect(result.destPaths).toContain(join('src', 'apps', 'robots.txt'));
|
|
55
|
+
expect((await readDest('robots.txt')).toString('utf-8')).toBe('User-agent: *\nDisallow:\n');
|
|
56
|
+
});
|
|
57
|
+
test('preserves nested directory structure', async () => {
|
|
58
|
+
await writePublic('.well-known/apple-app-site-association', '{}');
|
|
59
|
+
await writePublic('og/og-image.png', Buffer.from([0x89, 0x50, 0x4e, 0x47]));
|
|
60
|
+
const result = await copyPublicAssets({
|
|
61
|
+
projectRoot,
|
|
62
|
+
outputDir,
|
|
63
|
+
manifestPaths: [],
|
|
64
|
+
});
|
|
65
|
+
// .well-known starts with a dot — it's filtered (hidden-entry rule).
|
|
66
|
+
expect(result.copied).toBe(1);
|
|
67
|
+
expect(result.destPaths).toContain(join('src', 'apps', 'og', 'og-image.png'));
|
|
68
|
+
const png = await readDest('og/og-image.png');
|
|
69
|
+
expect(png[0]).toBe(0x89);
|
|
70
|
+
expect(png[3]).toBe(0x47);
|
|
71
|
+
});
|
|
72
|
+
test('preserves binary content byte-for-byte', async () => {
|
|
73
|
+
// Random non-utf8 bytes — utf8 round-tripping would corrupt these.
|
|
74
|
+
const bytes = Buffer.from([0xff, 0xfe, 0x00, 0x80, 0xc0, 0xff]);
|
|
75
|
+
await writePublic('weird.bin', bytes);
|
|
76
|
+
await copyPublicAssets({ projectRoot, outputDir, manifestPaths: [] });
|
|
77
|
+
const out = await readDest('weird.bin');
|
|
78
|
+
expect(Buffer.compare(out, bytes)).toBe(0);
|
|
79
|
+
});
|
|
80
|
+
test('skips hidden files and directories (.DS_Store, .git/, etc.)', async () => {
|
|
81
|
+
await writePublic('.DS_Store', 'junk');
|
|
82
|
+
await writePublic('.git/HEAD', 'ref: refs/heads/main');
|
|
83
|
+
await writePublic('favicon.ico', 'icon-bytes');
|
|
84
|
+
const result = await copyPublicAssets({
|
|
85
|
+
projectRoot,
|
|
86
|
+
outputDir,
|
|
87
|
+
manifestPaths: [],
|
|
88
|
+
});
|
|
89
|
+
expect(result.copied).toBe(1);
|
|
90
|
+
expect(result.destPaths).toContain(join('src', 'apps', 'favicon.ico'));
|
|
91
|
+
expect(await pathExists(join(outputDir, 'src', 'apps', '.DS_Store'))).toBe(false);
|
|
92
|
+
expect(await pathExists(join(outputDir, 'src', 'apps', '.git'))).toBe(false);
|
|
93
|
+
});
|
|
94
|
+
test('refuses to overwrite a compiler-emitted manifest path', async () => {
|
|
95
|
+
await writePublic('cms/index.html', '<html>not the real shell</html>');
|
|
96
|
+
await expect(copyPublicAssets({
|
|
97
|
+
projectRoot,
|
|
98
|
+
outputDir,
|
|
99
|
+
manifestPaths: ['src/apps/cms/index.html', 'src/index.ts'],
|
|
100
|
+
})).rejects.toBeInstanceOf(PublicAssetCollisionError);
|
|
101
|
+
// Nothing should have been written when we threw.
|
|
102
|
+
expect(await pathExists(join(outputDir, 'src', 'apps', 'cms'))).toBe(false);
|
|
103
|
+
});
|
|
104
|
+
test('reports every collision in one error, not just the first', async () => {
|
|
105
|
+
await writePublic('cms/index.html', 'x');
|
|
106
|
+
await writePublic('account/index.html', 'y');
|
|
107
|
+
await writePublic('robots.txt', 'z');
|
|
108
|
+
let err;
|
|
109
|
+
try {
|
|
110
|
+
await copyPublicAssets({
|
|
111
|
+
projectRoot,
|
|
112
|
+
outputDir,
|
|
113
|
+
manifestPaths: ['src/apps/cms/index.html', 'src/apps/account/index.html'],
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
catch (e) {
|
|
117
|
+
err = e;
|
|
118
|
+
}
|
|
119
|
+
expect(err).toBeInstanceOf(PublicAssetCollisionError);
|
|
120
|
+
expect(err.collisions).toHaveLength(2);
|
|
121
|
+
const paths = err.collisions.map((c) => c.publicPath).sort();
|
|
122
|
+
expect(paths).toEqual(['account/index.html', 'cms/index.html']);
|
|
123
|
+
});
|
|
124
|
+
test('empty public folder reports zero copied without erroring', async () => {
|
|
125
|
+
await fs.mkdir(join(projectRoot, 'quickback', 'public'), { recursive: true });
|
|
126
|
+
const result = await copyPublicAssets({
|
|
127
|
+
projectRoot,
|
|
128
|
+
outputDir,
|
|
129
|
+
manifestPaths: ['src/index.ts'],
|
|
130
|
+
});
|
|
131
|
+
expect(result.copied).toBe(0);
|
|
132
|
+
expect(result.sourceDir).toBeDefined();
|
|
133
|
+
});
|
|
134
|
+
test('outputDir distinct from projectRoot still resolves correctly', async () => {
|
|
135
|
+
outputDir = join(tmp, 'dist');
|
|
136
|
+
await fs.mkdir(outputDir, { recursive: true });
|
|
137
|
+
await writePublic('logo.svg', '<svg/>');
|
|
138
|
+
const result = await copyPublicAssets({
|
|
139
|
+
projectRoot,
|
|
140
|
+
outputDir,
|
|
141
|
+
manifestPaths: [],
|
|
142
|
+
});
|
|
143
|
+
expect(result.copied).toBe(1);
|
|
144
|
+
expect((await fs.readFile(join(outputDir, 'src', 'apps', 'logo.svg'))).toString())
|
|
145
|
+
.toBe('<svg/>');
|
|
146
|
+
// Source still in projectRoot, untouched.
|
|
147
|
+
expect(await pathExists(join(projectRoot, 'quickback', 'public', 'logo.svg')))
|
|
148
|
+
.toBe(true);
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
//# sourceMappingURL=copy-public-assets.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-public-assets.test.js","sourceRoot":"","sources":["../../src/lib/copy-public-assets.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACzE,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEtF,IAAI,GAAW,CAAC;AAChB,IAAI,WAAmB,CAAC;AACxB,IAAI,SAAiB,CAAC;AAEtB,UAAU,CAAC,KAAK,IAAI,EAAE;IACpB,GAAG,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,gBAAgB,CAAC,CAAC,CAAC;IACzD,WAAW,GAAG,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IACnC,SAAS,GAAG,WAAW,CAAC;IACxB,MAAM,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AACnD,C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9E,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QAC9B,MAAM,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAC/C,MAAM,WAAW,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QACxC,MAAM,MAAM,GAAG,MAAM,gBAAgB,CAAC;YACpC,WAAW;YACX,SAAS;YACT,aAAa,EAAE,EAAE;SAClB,CAAC,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC9B,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;aAC/E,IAAI,CAAC,QAAQ,CAAC,CAAC;QAClB,0CAA0C;QAC1C,MAAM,CAAC,MAAM,UAAU,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC;aAC3E,IAAI,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -4,6 +4,164 @@ Release notes for the Quickback compiler, CLI, and platform.
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## v0.15.0 — May 7, 2026
|
|
8
|
+
|
|
9
|
+
### Sysadmin tier — cross-tenant DB-admin role for the CMS
|
|
10
|
+
|
|
11
|
+
A new opt-in `cms: { sysadmin: true }` flag turns the CMS into a Supabase-style cross-tenant DB-admin tool gated by `user.role === 'sysadmin'`. Distinct from `'admin'` so Better Auth admin-plugin powers (user management, impersonation) and DB-admin powers stay decoupled. Off by default — projects without the feature get zero behavior change.
|
|
12
|
+
|
|
13
|
+
When enabled, the compiler emits a `SYSADMIN` pseudo-role (fifth marker alongside `PUBLIC` / `AUTHENTICATED` / `USER` / `ADMIN`); a firewall escape hatch in every `buildFirewallConditions` that drops tenant scopes for `ctx.userRole === 'sysadmin'` while preserving soft-delete; a true cross-tenant `/admin/v1/sysadmin/organizations` endpoint that selects directly from the auth-schema `organization` table; and a relaxed cross-tenant guard that skips the `ORG_REQUIRED` 400 for sysadmins on list routes — that's how the SPA's "All organizations" sentinel reaches the firewall escape end-to-end.
|
|
14
|
+
|
|
15
|
+
The CMS SPA gains a two-mode design: org admins keep the existing membership-based switcher (Better Auth's `setActiveOrganization`); sysadmins get a `SysadminOrgSelector` that loads from the cross-tenant endpoint, defaults to "All organizations" (omits the org filter on reads), and pins selected tenants via `?organizationId=` on every API call (sysadmins have no member rows, so `setActive` would 403). A new `OrgGate` component handles no-active-org cases for org users — auto-pick when there's exactly one membership, full-frame picker for multiple, empty state for zero — so sessions that lost their active org don't dead-end.
|
|
16
|
+
|
|
17
|
+
Refusing to compile `roles: ["SYSADMIN"]` without `cms.sysadmin: true` keeps the role from sitting as dead code. RLS providers (Neon, Supabase) emit `false` for `SYSADMIN` today; per-table RLS policy emit is a follow-up.
|
|
18
|
+
|
|
19
|
+
### Durable Object `[[migrations]]` order is now preserved across recompiles
|
|
20
|
+
|
|
21
|
+
Cloudflare's migration system is append-only — every deploy must include previously-deployed migration tags in their original order, with new ones appended last. CF rejects deploys with `code: 10061` when the order shifts. The compiler used to iterate `bindings.durableObjects` in config order at emit time, so a user inserting a new DO into the middle of the array bumped every later auto-migration into the wrong slot, breaking deploys for projects with multiple DOs (caught by AttendVIP).
|
|
22
|
+
|
|
23
|
+
The CLI now sends the project's existing `wrangler.toml` (when present) in `existingFiles` alongside the drizzle meta. The compiler parses migration tags from it via `parseExistingMigrationTags`, then emits auto-generated DO `[[migrations]]` blocks in two phases: deployed entries first (preserving the existing wrangler.toml order), net-new entries appended last in `bindings.durableObjects` config order. Reordering DOs in the config array no longer reshuffles deployed migrations; inserting a new DO anywhere in the array always appends its migration block last. First compiles (no existing wrangler.toml) keep the current config-order behavior — no behavior change for new projects. User-declared `bindings.durableObjectMigrations` (historical entries) are unaffected; they continue to emit first.
|
|
24
|
+
|
|
25
|
+
### Standalone-action wrapper no longer 403s `AUTHENTICATED`-only routes on org-scoped projects
|
|
26
|
+
|
|
27
|
+
Standalone actions (`standalone: true`) on org-scoped projects emitted an unconditional `if (!ctx.activeOrgId) return 403 ACCESS_NO_ORG` gate before role checking. For an action declared `access: { roles: ["AUTHENTICATED"] }`, this contradicted the access rule itself: a signed-in user with no active org (e.g. just signed up but not yet joined an organization, or a token-auth caller) was the exact caller `AUTHENTICATED` was supposed to admit. Found by AttendVIP — every recompile re-introduced the bug because the fix lived in handler-side patches, not the generator. The standalone wrapper now skips the org gate when the access tree references any pseudo-role anywhere, including under `or:`/`and:` arms.
|
|
28
|
+
|
|
29
|
+
### Queue handler emit no longer drops the `queue` export when there are no embeddings
|
|
30
|
+
|
|
31
|
+
`compiler.ts` emits `src/queue-consumer.ts` whenever `embeddingFeatures.length > 0 || queueHandlers.length > 0`, but the worker entry only checked `hasEmbeddings`. Projects with custom queue handlers under `services/queues/*` and no embeddings got the consumer file generated and then no entry-point wiring — wrangler bound the queue to a missing handler at deploy time. Caught against AttendVIP's `sendCancelEmail` queue handler. `MainAppOptions` and `CloudflareMainAppOptions` gain a `hasQueueHandlers` flag; `generateQueueImport` and `generateCloudflareExport` now gate on `hasEmbeddings || hasQueueHandlers`.
|
|
32
|
+
|
|
33
|
+
### `quickback/public/` — static-asset passthrough into `src/apps/`
|
|
34
|
+
|
|
35
|
+
A new opt-in folder. Anything you drop under `quickback/public/` is copied verbatim into `src/apps/` on every compile, where the wrangler `[assets]` binding (`directory = "src/apps"`) already serves it. So `quickback/public/robots.txt` becomes reachable at `https://your-domain/robots.txt`, `quickback/public/og/og-image.png` at `/og/og-image.png`, and so on. Favicons, `robots.txt`, OG images, marketing PDFs, sitemap fragments, `.well-known/` files — anything you'd previously have had to post-process into `src/apps/` after each compile.
|
|
36
|
+
|
|
37
|
+
The compiler does **not** parse, template, or otherwise touch these files. They ride past it as bytes — the CLI does the copy after `writeFilesWithMerge`, using `fs.copyFile` so binaries (PNGs, fonts, PDFs) stay byte-perfect rather than being corrupted by the utf-8 string channel the compiler manifest uses for source files. The compiler API contract is unchanged; nothing round-trips through `compile.quickback.dev`.
|
|
38
|
+
|
|
39
|
+
Rules:
|
|
40
|
+
|
|
41
|
+
- **Optional.** If the folder doesn't exist, the step is a no-op.
|
|
42
|
+
- **Stale-cleaned.** `src/` is wiped and rewritten each compile, so files removed from `quickback/public/` disappear from `src/apps/` automatically on the next run.
|
|
43
|
+
- **Hidden entries skipped.** `.DS_Store`, `.git/`, dotfiles — none of these were intentional drops; including them would break worker asset bindings.
|
|
44
|
+
- **Collisions fail loud.** A file in `quickback/public/` whose path would shadow a compiler-emitted manifest entry — e.g. `quickback/public/cms/index.html` against the SPA shell — fails the compile with the offending paths listed, rather than silently overwriting and producing a confused-looking SPA build. Move or rename the offending file.
|
|
45
|
+
|
|
46
|
+
The change is contained to the CLI: `packages/cli/src/lib/copy-public-assets.ts` (helper + `PublicAssetCollisionError`) and one block in `packages/cli/src/commands/compile.ts`. Test coverage in `copy-public-assets.test.ts` walks the missing-folder, single-file, nested-tree, binary-preservation, hidden-entry, single-collision, multi-collision, empty-folder, and split-output cases — nine tests, byte-level assertions on the binary path.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## v0.14.7 — May 7, 2026
|
|
51
|
+
|
|
52
|
+
### Four more codegen bugs caught by AttendVIP — generated output now typechecks for projects with non-`id` PKs and DO-only features
|
|
53
|
+
|
|
54
|
+
Filed after AttendVIP's `tsc` reported 230 errors against the generated `src/`. Triage split them into six patterns; four are surgical and ship here. The other two (TS2769 ×156 + TS2339 ×~50) trace to a deeper assumption — every queryable table has a string-typed `id` column — and are deferred to v0.14.8 along with the agreed `id` auto-inject design (see *Coming next* below).
|
|
55
|
+
|
|
56
|
+
**1. Duplicate `guests` import in routes that use relationship-roles (`TS2300`).** The relationship-import injector (`generators/feature-generator.ts`) added `import { <table>, buildFirewallConditions as build<Table>FirewallConditions } from './<table>.resource'` whenever it detected a relationship-table reference in the routes file — without checking that the table binding was already imported from `./schema` upstream. So `guests.routes.ts` ended up with `guests` declared twice. Fix: scan the existing import block, only add identifiers that aren't already in scope (drop the binding from the new import line, or skip the line entirely if both binding and alias are imported).
|
|
57
|
+
|
|
58
|
+
**2. `db` referenced before declaration in single-record + bulk action handlers (`TS2448` / `TS2304`).** `record-based.ts:195,541` baked `firewallClause = ...buildFirewallConditions(ctx, db)...` and used the same string in two places: (a) the outer pre-fetch `await unsafeDb.select().from(table).where(firewallClause)` — where `db` doesn't exist yet (`db = createScopedDb(unsafeDb, ctx)` is declared later for handler scope), and (b) inside `processBatch` where `db` is created from the tx/handle param. The outer use threw at typecheck (`'db' is used before its declaration`); at runtime it would have been a `ReferenceError`. Fix: pass `unsafeDb` (the in-scope handle) to `buildFirewallConditions` in both `firewallClause` definitions. The helper only uses its `db` arg for relationship-role subqueries (when `via:` is in play); either handle is a valid Drizzle client for that lookup.
|
|
59
|
+
|
|
60
|
+
**3. PartyServer realtime gates passed 1 arg to a 2-arg `buildFirewall_X` (`TS2554`).** `optional-routes.ts` emitted `buildFirewall_<feature>(ctx as any)` in the WebSocket-upgrade gate for every Durable Object that declared `access: { resource }`. After v0.14.4 made `buildFirewallConditions(ctx, db)` 2-arg whenever the resource has any `via:` predicate, this gate stopped compiling for any DO whose target feature uses relationship-roles. AttendVIP's `event-pages` DO sits on `event_pages` (admin via `guestOf`), which is exactly that case. Fix: the gate already constructs `db = drizzle(c.env.<binding>)` for its own `db.select(...).limit(1)` — pass that same `db` into the firewall call. Mirrored in both the single-resource and multi-resource gate branches.
|
|
61
|
+
|
|
62
|
+
**4. Durable-object-only features dropped their `lib/` files from output (`TS2307`).** `compiler.ts:546` only ran the feature-walker (and copied `featureLibFiles` to output) when the feature had at least one action file. AttendVIP's `user-profiles/` declares a single DO source under `lib/UserGateway.ts` and zero `actions/` — perfectly valid (per-user realtime gateway, the Slack/Linear pattern), but the walker skipped the feature entirely. The compile finished without error, then `index.ts` tried to import `./features/user-profiles/lib/UserGateway` and `tsc` 404'd the module. `event-pages/PageRoom.ts` worked only because that feature happens to also have `actions/`. Fix: run the discovery + lib-copy path whenever the feature has either actions OR lib files. Copying `lib/` files when the feature has at least one of either is the safe reading of the original intent.
|
|
63
|
+
|
|
64
|
+
**Drops ~20 of the 230 attendvip errors** (TS2300 ×2, TS2448 ×11, TS2304 ×6, TS2554 ×2 from the realtime gate, TS2307 ×1 — depending on cache state). The remaining 210 are TS2769 (numeric-ID arrays where the column is `integer`, not `text`) and TS2339 (`.id` referenced on tables that have a non-`id` PK or a compound PK) — both downstream of the same root: `id` is currently *not* auto-injected, only audit columns are.
|
|
65
|
+
|
|
66
|
+
### Account auth: emailOtp on AWS SES drops the magic-link companion (OTP-only)
|
|
67
|
+
|
|
68
|
+
The compiler used to auto-wire `createComboAuthSendVerificationOTP` from `@quickback-dev/better-auth-combo-auth` whenever a project used `emailOtp` with the `aws-ses` email provider — sign-in / sign-up / verify emails carried *both* a 6-digit OTP and a clickable magic link, with `useComboAuthEmail: true` in the SES config. This was on by default for every account-app project that picked AWS SES.
|
|
69
|
+
|
|
70
|
+
Two reasons to drop the magic-link half:
|
|
71
|
+
|
|
72
|
+
1. **Mail-client URL prefetching can burn the OTP before the human sees the email.** Outlook Safe Links, Gmail mobile, corporate proxies, and security scanners all eagerly fetch URLs in incoming mail; the magic link's `?data=...` payload includes the OTP server-side, so the first GET completes the sign-in (consuming the one-time code) and the user clicking through 30 seconds later gets a "code already used" failure.
|
|
73
|
+
2. **Two sign-in surfaces are harder to support.** The account SPA's `/welcome` and `/email-otp` routes only render the OTP form; the magic-link arm bypasses that UI entirely. One canonical entry point (enter the code) keeps the account flow legible.
|
|
74
|
+
|
|
75
|
+
The compiler now emits a plain `sendVerificationOTP` callback that calls `sendEmailWithSES` with `emailTemplates.emailOTP` directly — no combo wrapper, no magic-link URL. `useComboAuthEmail` is hardcoded to `false`. The `@quickback-dev/better-auth-combo-auth` package and the `magicLink` plugin are still available for users who explicitly opt in via a custom `sendVerificationOTP` in their config; the change here is just the auto-wired default.
|
|
76
|
+
|
|
77
|
+
Test coverage: `auth-email-wiring.test.ts` was updated to assert the new shape — generated auth files for `emailOtp + aws-ses` now contain `emailTemplates.emailOTP` and `useComboAuthEmail: false`, and explicitly do not contain `createComboAuthSendVerificationOTP` or `better-auth-combo-auth`.
|
|
78
|
+
|
|
79
|
+
### Coming next — `id` field auto-injection (v0.14.8)
|
|
80
|
+
|
|
81
|
+
The compiler treats `id` as load-bearing across CRUD/action route generators, FK probing, access checks, OpenAPI emission, and CMS — but doesn't add it for you the way it adds `createdAt`/`modifiedAt`/`createdBy`/`modifiedBy` (or `organizationId` in org-scoped features, or `deletedAt`/`deletedBy` for soft-delete tables). Tables that omit `id` (or use a non-`id` single PK like `userId.primaryKey()`, or a compound `primaryKey({ columns: [...] })` constraint) are accepted at parse time but produce broken output downstream. AttendVIP's `user_profiles`, `user_presence`, `user_notification_prefs`, `chat_reads`, and `chat_channel_members` all hit this.
|
|
82
|
+
|
|
83
|
+
**Agreed direction:** mirror `injectAuditFields` with a new `injectIdField` that runs unconditionally — including on junction tables. Tables with no PK or a non-`id` PK get an `id` column auto-injected; existing column-level `.primaryKey()` on a non-`id` column gets demoted to `.notNull()`; `primaryKey({ columns: [...] })` constraints get rewritten to `uniqueIndex().on(...)`. The cost (one extra column per junction row) is minimal and closes the asymmetry — every table participating in routes gets a single string-typed `id`, just like every table gets `createdAt`. Migration tail (existing D1 databases need an ADD COLUMN + index rewrite per affected table) is generated alongside.
|
|
84
|
+
|
|
85
|
+
No user code changes required for the four fixes shipping in v0.14.7. Recompile and the affected features typecheck.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## v0.14.6 — May 7, 2026
|
|
90
|
+
|
|
91
|
+
### Four more v0.14 compiler bugs caught by AttendVIP's MCP rollout
|
|
92
|
+
|
|
93
|
+
Filed in `research/attendvip-v014-mcp-and-firewall-gaps.md` after AttendVIP patched these locally and asked us to upstream them. All four ride a single MCP `tools/call` against a team-scoped resource over a Bearer api-key — fix any one and the next bug surfaces. We're shipping them as one patch release with end-to-end coverage of the chain.
|
|
94
|
+
|
|
95
|
+
**1. MCP `tools/call` URL is double-prefixed for action tools.** The OpenAPI spec emits action paths as `/api/v1/<action>` already-absolute, but the MCP request builder did `'/api/v1' + tool._path` unconditionally — so action tool calls hit `/api/v1/api/v1/<action>` and 404'd. CRUD tools (bare `_path: '/customers'`) were unaffected. Fix: prefix only when `_path` doesn't already start with `/api/v1/`.
|
|
96
|
+
|
|
97
|
+
**2. Auth middleware ignored `Authorization: Bearer <api-key>`.** MCP clients (claude.ai, etc.) only set `Authorization: Bearer ...`. The api-key block read from `x-api-key` header / `?api_key=` / `?key=` query but not from `Authorization`; the JWT fast-path narrowly gated on `bearerToken.startsWith('eyJ')`. Non-JWT bearers fell through to BA session auth, which doesn't recognise api-keys, so the request authenticated as anonymous and `tools/list` returned only PUBLIC tools. Fix: api-key extraction now also accepts a non-JWT `Authorization: Bearer <token>` as the key candidate. Three transports for one credential — header / query / Bearer.
|
|
98
|
+
|
|
99
|
+
**3. `auth.roleHierarchy` was silently inert for runtime role checks.** A user configured `auth.roleHierarchy: ['owner', 'admin', 'member']` and expected an `owner` to satisfy any check requiring `admin` or `member`. But the api-key + JWT fast-paths populated `ctx.roles` with the single org-member role, and the access checker did strict intersection — owner ∩ {admin, member} = ∅ → 403. Fix: at the api-key, JWT fast-path, AND BA session paths, expand the user's role via `auth.roleHierarchy` so a higher role inherits all lower-role privileges. The hierarchy is auto-normalized — users who write the array reversed (`['owner', 'admin', 'member']` instead of the documented `['member', 'admin', 'owner']`) now get the same correct expansion.
|
|
100
|
+
|
|
101
|
+
**4. Team-firewall predicate hardcoded `eq(table.teamId, ctx.activeTeamId!)` even when no team was active.** The `!` non-null assertion lied at runtime — api-keys, JWTs, and sessions without an active team carry `undefined`. The resulting SQL was `team_id = NULL` which matches nothing, so api-key callers saw zero rows on team-scoped resources. Fix: emit the team predicate as `(ctx.activeTeamId ? eq(...) : undefined)` — drizzle's `and(...)` drops `undefined`, so the WHERE collapses to the org scope only. Org and owner predicates are deliberately NOT softened the same way (those are security boundaries, not optional scopes).
|
|
102
|
+
|
|
103
|
+
After upstreaming, the AttendVIP one-shot verification passes:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
curl -fs -X POST https://attend.vip/mcp \
|
|
107
|
+
-H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
|
|
108
|
+
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"listEvents","arguments":{}}}' \
|
|
109
|
+
| jq '.result.content[0].text | fromjson | .data | length' # > 0
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
No user code changes required for any of the four. Recompile and the MCP path works end-to-end against team-scoped, role-gated resources via Bearer api-key.
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## v0.14.5 — May 7, 2026
|
|
117
|
+
|
|
118
|
+
### MCP `tools/call` no longer crashes with `undefined (reading 'AUTH_DB')`
|
|
119
|
+
|
|
120
|
+
The generated MCP server's `tools/call` dispatch re-enters the same Hono app via `app.request(internalReq)` so every tool invocation runs through the full middleware chain (auth, firewall, access, guards, masking). But the call passed only the request — not `env` or `executionCtx` — so the sub-request handler ran with `c.env === undefined`. Any tool whose route touched a Cloudflare binding (e.g. the `AUTH_DB` D1, KV, R2, Queues) crashed with `Cannot read properties of undefined (reading 'AUTH_DB')`. Found by AttendVIP — every action that hit auth-side data (acceptInvite, etc.) failed.
|
|
121
|
+
|
|
122
|
+
**Fix:** `mountMcp` now threads `c.env` and `c.executionCtx` through to `handle → handleRpc → callTool → app.request(internalReq, undefined, env, executionCtx)`. Hono's `request()` 3rd/4th args set the bindings + execution context for the sub-request, so the action handler sees the same env the outer worker received. Tools/list was unaffected — it reads ctx in-process and never re-enters the app.
|
|
123
|
+
|
|
124
|
+
No user code changes required. Recompile against v0.14.5 and the MCP endpoint dispatches actions correctly against all bindings.
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## v0.14.4 — May 7, 2026
|
|
129
|
+
|
|
130
|
+
### `via:` firewall predicates no longer crash with `ReferenceError: db is not defined`
|
|
131
|
+
|
|
132
|
+
The relationship-role generator (v0.14.0) emits a `buildFirewallConditions` body that references `db`, `inArray`, and `sql` at function scope when any predicate has `via:` — but the resource-file imports it generated only pulled in `eq, and, isNull, type SQL`. So every endpoint guarded by `firewall: [{ field, via }]` threw `ReferenceError: db is not defined` at the very first request, and the catch-all returned 500 before the firewall query ever ran. Found by AttendVIP on `/api/v1/event-pages` against v0.14.3 — none of the v0.14.0 → v0.14.3 unit tests exercised emitted-import resolution, so the bug rode through three patch releases.
|
|
133
|
+
|
|
134
|
+
Two fixes:
|
|
135
|
+
|
|
136
|
+
1. **Imports in the generated resource file now include `inArray, sql`** when the firewall has any `via:` predicate. Hidden behind a flag so a no-via resource still gets the minimal import surface.
|
|
137
|
+
2. **`buildFirewallConditions` now takes `(ctx, db)`** and the wrapper template (`WITH_FIREWALL_HELPER`) pulls `const db = c.get('db' as never) as any;` from the Hono context before invoking it. Every CRUD/action call site (single-record + batch + record-based-action) was updated to pass `db` through.
|
|
138
|
+
|
|
139
|
+
Regression test added (`firewall-via-imports.test.ts`) that parses the generated resource file's top-level imports and asserts every free identifier referenced in `buildFirewallConditions` resolves to either an import or a function parameter — so a future generator change that introduces a new free identifier (`exists`, `not`, etc.) without importing it fails the unit suite instead of leaking to a real project.
|
|
140
|
+
|
|
141
|
+
No user code changes required — recompile and `via:` predicates work end-to-end.
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## v0.14.3 — May 7, 2026
|
|
146
|
+
|
|
147
|
+
### Relationship-role consumers now resolve the relationship-table binding at runtime
|
|
148
|
+
|
|
149
|
+
Pre-fix, the v0.14.0 relationship-role generator emitted imports like `import { eventGuests, buildFirewallConditions as buildEventGuestsFirewallConditions } from '../event-guests/event-guests.resource'` on every consuming resource — but the relationship-table's own `.resource.ts` file imported `event_guests` from `./schema` for its own use without re-exporting it. So the consuming file got `undefined` at runtime, every relationship subquery failed with `Cannot read properties of undefined`, and the whole authz layer was unreachable on real projects.
|
|
150
|
+
|
|
151
|
+
Found by AttendVIP within minutes of recompiling against v0.14.2: the moment they hit any endpoint guarded by `firewall: [{ field, via }]` or `crud.<op>.access roles: ['guest']`, the request errored before the firewall query ran.
|
|
152
|
+
|
|
153
|
+
The fix is one line in `generateTableResourceHelpers` — re-export the Drizzle table binding from the `.resource` file alongside the existing import. The `.resource` file is the public surface of the table; the schema is an implementation detail. This decision was implicit in the relationship-import resolver's path choice but not enforced on the producer side.
|
|
154
|
+
|
|
155
|
+
```ts
|
|
156
|
+
// generated <table>.resource.ts (after fix)
|
|
157
|
+
import { event_guests } from './schema';
|
|
158
|
+
export { event_guests }; // ← was missing
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Regression test added (`authz-end-to-end.test.ts`) that asserts every `.resource` file re-exports its Drizzle binding, so this can't drift again. No user code changes required — recompile and the cross-feature relationship subqueries resolve correctly.
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
7
165
|
## v0.14.2 — May 7, 2026
|
|
8
166
|
|
|
9
167
|
### Wrangler `[[migrations]]` no longer drops historical Durable Object lifecycle entries
|
|
@@ -225,12 +225,30 @@ cms: { domain: "cms.example.com" },
|
|
|
225
225
|
|
|
226
226
|
// With access control (only admins can access CMS)
|
|
227
227
|
cms: { domain: "cms.example.com", access: "admin" },
|
|
228
|
+
|
|
229
|
+
// Cross-tenant DB-admin tier — sysadmins see every tenant's data
|
|
230
|
+
cms: { domain: "cms.example.com", sysadmin: true },
|
|
228
231
|
```
|
|
229
232
|
|
|
230
233
|
| Option | Type | Default | Description |
|
|
231
234
|
|--------|------|---------|-------------|
|
|
232
235
|
| `domain` | `string` | — | Custom domain for CMS. Adds a `custom_domain` route to `wrangler.toml`. |
|
|
233
236
|
| `access` | `"user" \| "admin"` | `"user"` | Controls who can access the CMS. When `"admin"`, only users with `user.role === "admin"` can enter — enforced at the Worker level (SPA shell, `/api/v1/schema`, and `custom_view` CRUD all return 403 to non-admins) and in the SPA. Also hides the CMS link in Account UI. See [CMS Connecting](/stack/cms/connecting) for the full enforcement model. |
|
|
237
|
+
| `sysadmin` | `boolean` | `false` | Cross-tenant DB-admin tier. When `true`, opts into the `SYSADMIN` pseudo-role (`user.role === "sysadmin"`), the firewall escape hatch (sysadmins bypass tenant scopes, soft-delete still enforced), the cross-tenant `/admin/v1/sysadmin/organizations` endpoint, and the SPA's "All organizations" sentinel. The CMS HTML gate admits `userRole === "sysadmin"` alongside `"admin"` — sysadmin is a strict superset. Off by default. See [`SYSADMIN` pseudo-role](/compiler/definitions/access#sysadmin--cross-tenant-db-admin-tier). |
|
|
238
|
+
|
|
239
|
+
### Sysadmin tier (`cms.sysadmin: true`)
|
|
240
|
+
|
|
241
|
+
Quickback's default model assumes every CMS user belongs to at least one organization (`member` row in the auth DB). For platforms that need a Supabase-style cross-tenant DB-admin tool — debugging a tenant's data, running cross-tenant queries, supporting a customer — that's a poor fit: a sysadmin without `member` rows would dead-end, and auto-filling their active org from "first membership" silently scopes them to a tenant they have no relationship with.
|
|
242
|
+
|
|
243
|
+
`cms: { sysadmin: true }` introduces a separate role tier:
|
|
244
|
+
|
|
245
|
+
- **Role**: `user.role === "sysadmin"` (set on the Better Auth user table). Distinct from `"admin"` — admins keep org-scoped CMS access via the membership switcher; sysadmins get cross-tenant.
|
|
246
|
+
- **Firewall**: every `buildFirewallConditions()` emits an `if (ctx.userRole === "sysadmin") return undefined` (or just the soft-delete predicate when present) at the top, so sysadmins see every tenant's rows. See [Firewall escape hatch](/compiler/definitions/firewall#sysadmin-escape-hatch).
|
|
247
|
+
- **Org listing**: a new `GET /admin/v1/sysadmin/organizations` endpoint selects directly from the auth-schema `organization` table — every row, every tenant. The existing `/admin/v1/organizations` (membership-bound, used by org admins) is unchanged.
|
|
248
|
+
- **CMS SPA**: when the user is a sysadmin, the header switcher loads from the cross-tenant endpoint, defaults to "All organizations" (which omits `?organizationId=` and reaches the firewall escape), and pins selected tenants via `?organizationId=` on every API call. Org admins keep the existing membership-based switcher.
|
|
249
|
+
- **CMS HTML gate**: admits `userRole === "sysadmin"` alongside `"admin"`. Org admins are not locked out — both roles can enter the CMS in `cms.access: "admin"` mode.
|
|
250
|
+
|
|
251
|
+
Off by default. Projects that don't enable it get zero behavior change; setting `cms.sysadmin: true` and granting a user `user.role = "sysadmin"` is the only way to unlock the cross-tenant view.
|
|
234
252
|
|
|
235
253
|
## Account UI Configuration
|
|
236
254
|
|