@quickback-dev/cli 0.16.0 → 0.16.2

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.
Files changed (37) hide show
  1. package/dist/commands/compile.d.ts.map +1 -1
  2. package/dist/commands/compile.js +24 -0
  3. package/dist/commands/compile.js.map +1 -1
  4. package/dist/commands/create.js +2 -2
  5. package/dist/docs/content.d.ts.map +1 -1
  6. package/dist/docs/content.js +14 -9
  7. package/dist/docs/content.js.map +1 -1
  8. package/dist/index.js +1 -1
  9. package/dist/lib/copy-source-apps.d.ts +34 -0
  10. package/dist/lib/copy-source-apps.d.ts.map +1 -0
  11. package/dist/lib/copy-source-apps.js +136 -0
  12. package/dist/lib/copy-source-apps.js.map +1 -0
  13. package/dist/lib/copy-source-apps.test.d.ts +2 -0
  14. package/dist/lib/copy-source-apps.test.d.ts.map +1 -0
  15. package/dist/lib/copy-source-apps.test.js +170 -0
  16. package/dist/lib/copy-source-apps.test.js.map +1 -0
  17. package/dist/skill/docs/changelog.md +98 -0
  18. package/dist/skill/docs/compiler/config/bindings.md +35 -1
  19. package/dist/skill/docs/compiler/config/output.md +41 -0
  20. package/dist/skill/docs/compiler/definitions/access.md +1 -1
  21. package/dist/skill/docs/compiler/getting-started/template-empty.md +1 -1
  22. package/dist/skill/docs/compiler/targets/hono-api/using-the-api/errors.md +84 -2
  23. package/dist/skill/docs/stack/auth/plugins/agent-auth.md +131 -0
  24. package/dist/skill/docs/stack/cms/security.md +1 -1
  25. package/dist/skill/docs/stack/realtime/durable-objects.md +16 -0
  26. package/dist/skill/docs/stack/realtime/partyserver-rooms.md +10 -2
  27. package/package.json +1 -1
  28. package/src/skill/docs/changelog.md +98 -0
  29. package/src/skill/docs/compiler/config/bindings.md +35 -1
  30. package/src/skill/docs/compiler/config/output.md +41 -0
  31. package/src/skill/docs/compiler/definitions/access.md +1 -1
  32. package/src/skill/docs/compiler/getting-started/template-empty.md +1 -1
  33. package/src/skill/docs/compiler/targets/hono-api/using-the-api/errors.md +84 -2
  34. package/src/skill/docs/stack/auth/plugins/agent-auth.md +131 -0
  35. package/src/skill/docs/stack/cms/security.md +1 -1
  36. package/src/skill/docs/stack/realtime/durable-objects.md +16 -0
  37. package/src/skill/docs/stack/realtime/partyserver-rooms.md +10 -2
@@ -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,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/M;IACD,sBAAsB,EAAE;QACtB,OAAO,EAAE,YAAY;QACrB,SAAS,EAAE,sqPAAsqP;KAClrP;IACD,0BAA0B,EAAE;QAC1B,OAAO,EAAE,iBAAiB;QAC1B,SAAS,EAAE,+yMAA+yM;KA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,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"}
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,m/mIAAm/mI;KAC//mI;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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,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
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import pc from "picocolors";
12
12
  // Version injected at build time by scripts/inject-version.ts
13
- const CLI_VERSION = "0.15.0";
13
+ const CLI_VERSION = "0.16.2";
14
14
  function getPackageVersion() {
15
15
  return CLI_VERSION;
16
16
  }
@@ -0,0 +1,34 @@
1
+ export interface CopySourceAppsOptions {
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 CopySourceAppsResult {
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 SourceAppCollisionError extends Error {
18
+ readonly collisions: Array<{
19
+ sourcePath: string;
20
+ manifestPath: string;
21
+ }>;
22
+ constructor(collisions: Array<{
23
+ sourcePath: string;
24
+ manifestPath: string;
25
+ }>);
26
+ }
27
+ /**
28
+ * Copy `<projectRoot>/quickback/apps/**` into `<outputDir>/src/apps/**`.
29
+ *
30
+ * Returns `{ copied: 0 }` when the source folder is absent — apps/ is an
31
+ * opt-in convention, not a required directory.
32
+ */
33
+ export declare function copySourceApps(options: CopySourceAppsOptions): Promise<CopySourceAppsResult>;
34
+ //# sourceMappingURL=copy-source-apps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy-source-apps.d.ts","sourceRoot":"","sources":["../../src/lib/copy-source-apps.ts"],"names":[],"mappings":"AA6CA,MAAM,WAAW,qBAAqB;IACpC,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,oBAAoB;IACnC,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,uBAAwB,SAAQ,KAAK;IAChD,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,cAAc,CAClC,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,oBAAoB,CAAC,CAoC/B"}
@@ -0,0 +1,136 @@
1
+ /**
2
+ * Source-app passthrough for `quickback/apps/`.
3
+ *
4
+ * Anything under `<projectRoot>/quickback/apps/<name>/` is copied verbatim
5
+ * into `<outputDir>/src/apps/<name>/`, preserving directory structure. The
6
+ * compiler never sees these files — they ride past it as bytes and land
7
+ * alongside the SPA shells the compiler emits.
8
+ *
9
+ * Why a separate folder from `quickback/public/`: `public/` is for static
10
+ * binary assets (logos, fonts, OG images) that ride past the worker as
11
+ * bytes. `apps/` is for hand-authored TypeScript / JavaScript / TSX apps
12
+ * — companion mini-SPAs (e.g. `m/`, `admin/`) that live alongside the
13
+ * compiler-emitted `cms/` and `account/` shells. Different conventions,
14
+ * different ergonomics: this folder additionally skips `node_modules/`,
15
+ * `dist/`, and `build/` so a casual `bun install` inside a hand-authored
16
+ * app folder doesn't drag the world into the worker bundle.
17
+ *
18
+ * Why bytes, not strings: the compiler manifest is a utf-8 string channel
19
+ * which is fine for source code in practice, but corrupts any binary fixture
20
+ * a source-authored app might bundle (sprite sheets, sample WAVs, etc.).
21
+ * Routing the copy through `fs.copyFile` keeps everything intact.
22
+ *
23
+ * Why after the wipe-and-write: `prepareGeneratedDir` wipes `src/` based on
24
+ * the compiler manifest. We restore the user's hand-authored tree on top of
25
+ * the fresh write. Files removed from `quickback/apps/` disappear on the
26
+ * next compile — no orphan tracking needed.
27
+ *
28
+ * Collisions with compiler-emitted paths (e.g. dropping a hand-authored
29
+ * `cms/index.tsx` that would shadow the SPA shell) are rejected with a
30
+ * clear error rather than silently overwritten.
31
+ */
32
+ import { promises as fs } from 'fs';
33
+ import { join, relative, sep } from 'path';
34
+ const APPS_DIR_NAME = 'apps';
35
+ const TARGET_PREFIX = join('src', 'apps');
36
+ /**
37
+ * Subdirectories we never copy. Symmetric with what a developer would
38
+ * `.gitignore` inside a hand-authored app folder. Not configurable for now —
39
+ * if a user has a compelling case to ship `dist/` through the passthrough,
40
+ * they can stage it under `public/` instead.
41
+ */
42
+ const SKIP_DIRS = new Set(['node_modules', 'dist', 'build', '.next', '.turbo', '.cache']);
43
+ export class SourceAppCollisionError extends Error {
44
+ collisions;
45
+ constructor(collisions) {
46
+ const lines = collisions.map((c) => ` • quickback/${APPS_DIR_NAME}/${c.sourcePath} → ${c.manifestPath} (already emitted by compiler)`);
47
+ super([
48
+ `quickback/${APPS_DIR_NAME}/ contains ${collisions.length} file(s) that would overwrite compiler output:`,
49
+ ...lines,
50
+ `Rename or remove these files. Reserved subpaths under src/apps/ include cms/ and account/ when those SPAs are enabled.`,
51
+ ].join('\n'));
52
+ this.name = 'SourceAppCollisionError';
53
+ this.collisions = collisions;
54
+ }
55
+ }
56
+ /**
57
+ * Copy `<projectRoot>/quickback/apps/**` into `<outputDir>/src/apps/**`.
58
+ *
59
+ * Returns `{ copied: 0 }` when the source folder is absent — apps/ is an
60
+ * opt-in convention, not a required directory.
61
+ */
62
+ export async function copySourceApps(options) {
63
+ const sourceDir = join(options.projectRoot, 'quickback', APPS_DIR_NAME);
64
+ if (!(await isDirectory(sourceDir))) {
65
+ return { copied: 0, destPaths: [] };
66
+ }
67
+ const sources = await collectFiles(sourceDir);
68
+ if (sources.length === 0) {
69
+ return { copied: 0, sourceDir, destPaths: [] };
70
+ }
71
+ const manifestSet = new Set();
72
+ for (const p of options.manifestPaths)
73
+ manifestSet.add(toPosix(p));
74
+ const collisions = [];
75
+ const destPaths = [];
76
+ for (const rel of sources) {
77
+ const dest = join(TARGET_PREFIX, rel);
78
+ const destPosix = toPosix(dest);
79
+ if (manifestSet.has(destPosix)) {
80
+ collisions.push({ sourcePath: toPosix(rel), manifestPath: destPosix });
81
+ }
82
+ destPaths.push(dest);
83
+ }
84
+ if (collisions.length > 0) {
85
+ throw new SourceAppCollisionError(collisions);
86
+ }
87
+ for (const rel of sources) {
88
+ const src = join(sourceDir, rel);
89
+ const dest = join(options.outputDir, TARGET_PREFIX, rel);
90
+ await fs.mkdir(join(dest, '..'), { recursive: true });
91
+ await fs.copyFile(src, dest);
92
+ }
93
+ return { copied: sources.length, sourceDir, destPaths };
94
+ }
95
+ async function isDirectory(p) {
96
+ try {
97
+ const s = await fs.stat(p);
98
+ return s.isDirectory();
99
+ }
100
+ catch {
101
+ return false;
102
+ }
103
+ }
104
+ /**
105
+ * Walk a directory tree and return every regular file as a path relative
106
+ * to the root. Hidden entries (`.DS_Store`, `.git/`, dotfiles) and the
107
+ * `SKIP_DIRS` set (`node_modules/`, `dist/`, `build/`, etc.) are pruned —
108
+ * accidentally bundling those would inflate the worker output and was a
109
+ * top reason `quickback/public/` couldn't simply absorb this use case.
110
+ */
111
+ async function collectFiles(root) {
112
+ const out = [];
113
+ async function walk(dir) {
114
+ const entries = await fs.readdir(dir, { withFileTypes: true });
115
+ for (const entry of entries) {
116
+ if (entry.name.startsWith('.'))
117
+ continue;
118
+ if (entry.isDirectory() && SKIP_DIRS.has(entry.name))
119
+ continue;
120
+ const full = join(dir, entry.name);
121
+ if (entry.isDirectory()) {
122
+ await walk(full);
123
+ }
124
+ else if (entry.isFile()) {
125
+ out.push(relative(root, full));
126
+ }
127
+ }
128
+ }
129
+ await walk(root);
130
+ out.sort();
131
+ return out;
132
+ }
133
+ function toPosix(p) {
134
+ return sep === '/' ? p : p.split(sep).join('/');
135
+ }
136
+ //# sourceMappingURL=copy-source-apps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy-source-apps.js","sourceRoot":"","sources":["../../src/lib/copy-source-apps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAE3C,MAAM,aAAa,GAAG,MAAM,CAAC;AAC7B,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;AAoB1F,MAAM,OAAO,uBAAwB,SAAQ,KAAK;IACvC,UAAU,CAAsD;IAEzE,YAAY,UAA+D;QACzE,MAAM,KAAK,GAAG,UAAU,CAAC,GAAG,CAC1B,CAAC,CAAC,EAAE,EAAE,CAAC,iBAAiB,aAAa,IAAI,CAAC,CAAC,UAAU,MAAM,CAAC,CAAC,YAAY,gCAAgC,CAC1G,CAAC;QACF,KAAK,CACH;YACE,aAA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AAE,IAAI,EAAE,CAAC,CAAC;QAC/D,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;YAC5B,IAAI,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC;gBAAE,SAAS;YACzC,IAAI,KAAK,CAAC,WAAW,EAAE,IAAI,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;gBAAE,SAAS;YAC/D,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;YACnC,IAAI,KAAK,CAAC,WAAW,EAAE,EAAE,CAAC;gBACxB,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC;YACnB,CAAC;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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=copy-source-apps.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy-source-apps.test.d.ts","sourceRoot":"","sources":["../../src/lib/copy-source-apps.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,170 @@
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 { copySourceApps, SourceAppCollisionError } from './copy-source-apps.js';
6
+ let tmp;
7
+ let projectRoot;
8
+ let outputDir;
9
+ beforeEach(async () => {
10
+ tmp = await fs.mkdtemp(join(tmpdir(), 'source-apps-'));
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 writeApp(rel, content) {
19
+ const full = join(projectRoot, 'quickback', 'apps', 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('copySourceApps — quickback/apps passthrough', () => {
36
+ test('no-op when apps folder is missing', async () => {
37
+ const result = await copySourceApps({
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 hand-authored TSX files into src/apps/<name>/', async () => {
47
+ await writeApp('m/index.tsx', 'export default function App() { return null; }');
48
+ await writeApp('m/styles.css', 'body { margin: 0; }');
49
+ const result = await copySourceApps({
50
+ projectRoot,
51
+ outputDir,
52
+ manifestPaths: ['src/index.ts'],
53
+ });
54
+ expect(result.copied).toBe(2);
55
+ expect(result.destPaths).toContain(join('src', 'apps', 'm', 'index.tsx'));
56
+ expect(result.destPaths).toContain(join('src', 'apps', 'm', 'styles.css'));
57
+ expect((await readDest('m/index.tsx')).toString('utf-8')).toContain('export default');
58
+ });
59
+ test('preserves nested directory structure across multiple apps', async () => {
60
+ await writeApp('m/components/Button.tsx', 'export const Button = () => null;');
61
+ await writeApp('m/lib/utils.ts', 'export const x = 1;');
62
+ await writeApp('admin/index.tsx', 'export default () => null;');
63
+ const result = await copySourceApps({
64
+ projectRoot,
65
+ outputDir,
66
+ manifestPaths: [],
67
+ });
68
+ expect(result.copied).toBe(3);
69
+ expect(result.destPaths).toContain(join('src', 'apps', 'm', 'components', 'Button.tsx'));
70
+ expect(result.destPaths).toContain(join('src', 'apps', 'm', 'lib', 'utils.ts'));
71
+ expect(result.destPaths).toContain(join('src', 'apps', 'admin', 'index.tsx'));
72
+ });
73
+ test('preserves binary fixtures (e.g., sprite sheets) byte-for-byte', async () => {
74
+ const bytes = Buffer.from([0xff, 0xfe, 0x00, 0x80, 0xc0, 0xff]);
75
+ await writeApp('m/assets/sprite.bin', bytes);
76
+ await copySourceApps({ projectRoot, outputDir, manifestPaths: [] });
77
+ const out = await readDest('m/assets/sprite.bin');
78
+ expect(Buffer.compare(out, bytes)).toBe(0);
79
+ });
80
+ test('skips hidden files and directories (.DS_Store, .git/, dotfiles)', async () => {
81
+ await writeApp('m/.DS_Store', 'junk');
82
+ await writeApp('m/.git/HEAD', 'ref: refs/heads/main');
83
+ await writeApp('m/index.tsx', 'export default () => null;');
84
+ const result = await copySourceApps({
85
+ projectRoot,
86
+ outputDir,
87
+ manifestPaths: [],
88
+ });
89
+ expect(result.copied).toBe(1);
90
+ expect(result.destPaths).toContain(join('src', 'apps', 'm', 'index.tsx'));
91
+ expect(await pathExists(join(outputDir, 'src', 'apps', 'm', '.DS_Store'))).toBe(false);
92
+ expect(await pathExists(join(outputDir, 'src', 'apps', 'm', '.git'))).toBe(false);
93
+ });
94
+ test('skips node_modules / dist / build / .next / .turbo / .cache', async () => {
95
+ await writeApp('m/index.tsx', 'export default () => null;');
96
+ await writeApp('m/node_modules/react/index.js', 'module.exports = {};');
97
+ await writeApp('m/dist/bundle.js', 'compiled');
98
+ await writeApp('m/build/main.js', 'compiled');
99
+ await writeApp('m/.next/cache/x', 'x');
100
+ await writeApp('m/.turbo/run.log', 'x');
101
+ await writeApp('m/.cache/blob', 'x');
102
+ const result = await copySourceApps({
103
+ projectRoot,
104
+ outputDir,
105
+ manifestPaths: [],
106
+ });
107
+ expect(result.copied).toBe(1);
108
+ expect(result.destPaths).toEqual([join('src', 'apps', 'm', 'index.tsx')]);
109
+ expect(await pathExists(join(outputDir, 'src', 'apps', 'm', 'node_modules'))).toBe(false);
110
+ expect(await pathExists(join(outputDir, 'src', 'apps', 'm', 'dist'))).toBe(false);
111
+ expect(await pathExists(join(outputDir, 'src', 'apps', 'm', 'build'))).toBe(false);
112
+ });
113
+ test('refuses to overwrite a compiler-emitted manifest path', async () => {
114
+ await writeApp('cms/index.tsx', 'export default () => null;');
115
+ await expect(copySourceApps({
116
+ projectRoot,
117
+ outputDir,
118
+ manifestPaths: ['src/apps/cms/index.tsx', 'src/index.ts'],
119
+ })).rejects.toBeInstanceOf(SourceAppCollisionError);
120
+ // Nothing should have been written when we threw.
121
+ expect(await pathExists(join(outputDir, 'src', 'apps', 'cms'))).toBe(false);
122
+ });
123
+ test('reports every collision in one error, not just the first', async () => {
124
+ await writeApp('cms/index.tsx', 'x');
125
+ await writeApp('account/index.tsx', 'y');
126
+ await writeApp('m/index.tsx', 'z');
127
+ let err;
128
+ try {
129
+ await copySourceApps({
130
+ projectRoot,
131
+ outputDir,
132
+ manifestPaths: ['src/apps/cms/index.tsx', 'src/apps/account/index.tsx'],
133
+ });
134
+ }
135
+ catch (e) {
136
+ err = e;
137
+ }
138
+ expect(err).toBeInstanceOf(SourceAppCollisionError);
139
+ expect(err.collisions).toHaveLength(2);
140
+ const paths = err.collisions.map((c) => c.sourcePath).sort();
141
+ expect(paths).toEqual(['account/index.tsx', 'cms/index.tsx']);
142
+ });
143
+ test('empty apps folder reports zero copied without erroring', async () => {
144
+ await fs.mkdir(join(projectRoot, 'quickback', 'apps'), { recursive: true });
145
+ const result = await copySourceApps({
146
+ projectRoot,
147
+ outputDir,
148
+ manifestPaths: ['src/index.ts'],
149
+ });
150
+ expect(result.copied).toBe(0);
151
+ expect(result.sourceDir).toBeDefined();
152
+ });
153
+ test('outputDir distinct from projectRoot still resolves correctly', async () => {
154
+ outputDir = join(tmp, 'dist');
155
+ await fs.mkdir(outputDir, { recursive: true });
156
+ await writeApp('m/main.tsx', 'export default () => null;');
157
+ const result = await copySourceApps({
158
+ projectRoot,
159
+ outputDir,
160
+ manifestPaths: [],
161
+ });
162
+ expect(result.copied).toBe(1);
163
+ expect((await fs.readFile(join(outputDir, 'src', 'apps', 'm', 'main.tsx'))).toString())
164
+ .toContain('export default');
165
+ // Source still in projectRoot, untouched.
166
+ expect(await pathExists(join(projectRoot, 'quickback', 'apps', 'm', 'main.tsx')))
167
+ .toBe(true);
168
+ });
169
+ });
170
+ //# sourceMappingURL=copy-source-apps.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy-source-apps.test.js","sourceRoot":"","sources":["../../src/lib/copy-source-apps.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,cAAc,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhF,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,cAAc,CAAC,CAAC,CAAC;IACvD,WAAW,GAAG,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IACnC,SAAS,GAAG,WAAW,CAAC;IACxB,MAAM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CLI, and platform.
4
4
 
5
5
  ---
6
6
 
7
+ ## v0.16.1 — May 9, 2026
8
+
9
+ ### Cloudflare ASSETS canonicalization — worker SPA emits no longer 307-loop
10
+
11
+ Cloudflare's static-assets binding canonicalizes any request for `/<dir>/index.html` into a 307 redirect to `/<dir>/` (the default `html_handling=auto-trailing-slash`). When a worker subrequest issues `c.env.ASSETS.fetch(new Request(new URL('/<dir>/index.html', …)))`, the binding returns the 307; the worker forwards it; the browser re-requests `/<dir>/`; the same SPA-fallback handler (or hostname middleware) catches the directory request and re-fetches `/<dir>/index.html`. Infinite loop. Caught by AttendVIP writing custom `/admin/` and `/m/` host-routing patches on the deployed worker — the fix in their patches was switching to `/admin/` (trailing slash, no `index.html`), which Cloudflare resolves to the directory's `index.html` content with a 200.
12
+
13
+ The compiler had the same bug baked into every emit point. `cloudflare.ts` now fetches `/<dir>/` everywhere it previously asked for `/<dir>/index.html`: CMS hostname middleware, `/cms/*` SPA catchall, apex `/` handler, account/admin hostname middleware, `/account/*` SPA catchall, and the multi-domain catchall. Eight regression tests in `cf-assets-canonicalization-spa-fallback.test.ts` pin every emit so a future copy/paste can't sneak the literal back in.
14
+
15
+ ### `account.customLogin` — drop a project-branded sign-in page in front of the SPA
16
+
17
+ A new `account: { customLogin: true }` flag emits an explicit `app.get('/account/login', …)` route that serves a project-supplied static page instead of letting the bundled Account SPA's client router handle the path. Drop the page at `quickback/public/account/login/index.html` (a *directory*, not a bare `login.html` — see the canonicalization note above) and the existing `quickback/public/` passthrough copies it into the asset binding. The route is registered before the `/account/*` SPA catch-all so the static handler wins; everything else under `/account/...` (profile, organizations, devices, …) keeps going through the React SPA. Same surface AttendVIP was hand-patching post-compile — promoting the flag means the next compile no longer wipes their override. Default `false`.
18
+
19
+ ### Project-level realtime auto-broadcasts every resource by default
20
+
21
+ `dbConfig.realtime: true` now treats every resource as realtime-enabled unless its `realtime` block explicitly opts out. The previous behavior set `effectiveResourceRealtime` to `undefined` when a resource didn't declare its own block — so a project that flipped the project-level flag still had to add per-table `realtime: { enabled: true }` everywhere to actually get auto-broadcasts. Caught against AttendVIP after the v0.15.x auto-broadcast wiring landed but didn't fire. New default: project-level on with no per-resource override = `{ enabled: true }`. Per-resource `realtime: { enabled: false }` still wins.
22
+
23
+ ### Drizzle metadata gets a DO NOT EDIT header + journal drift warning
24
+
25
+ Two changes that protect the drizzle plumbing from quiet corruption.
26
+
27
+ `compile-runner.ts:addJsonHeader` now stamps drizzle's generated JSON (`_journal.json`, `<n>_snapshot.json`) with a `$__quickback_warning__$` key explaining the file is regenerated by the compiler and should not be edited by hand. The disclaimer matches the one already on `.ts` outputs — the journal had been the one drizzle file users felt entitled to "tidy up" because nothing in it said otherwise.
28
+
29
+ A new check in the same module compares the journal entry count against the snapshot file count. drizzle-kit only produces one snapshot per `generate` run, so `journal.entries.length > snapshots + 1` means the journal claims migrations the snapshot side has lost (typical cause: a manual delete of an `<n>_snapshot.json` that left the journal entry behind). The compiler logs a warning and lists the orphan entries. Detected directly out of AttendVIP's `Travel 500` triage — drizzle-kit was diffing against a stale `0002_snapshot.json` and emitting bogus full `CREATE TABLE` migrations for tables that had been added in subsequent (now-orphaned) journal entries.
30
+
31
+ ### Two new compile-time validators (LOUD failures over silent traps)
32
+
33
+ **`AUTHENTICATED` + tenant-scoped firewall now refuses to compile.** `pseudo-role-validator.ts` rejects any access tree that admits `AUTHENTICATED` on a resource whose firewall scopes by `organizationId`. The combination is the silent-empty trap: a sign-in-only caller with no active org passes the role gate, the firewall WHERE clause filters every row out, and the API returns `[]` with a 200. The error message names three valid resolutions — drop the org scope (`firewall: { exception: true }`), tighten the role to `USER` or a role with implied org membership, or split the route into a token-auth branch and an org-membership branch.
34
+
35
+ **`createRealtime` imports without `dbConfig.realtime: true` now throw.** Project lib + action + feature-lib files are scanned at compile time for `import { createRealtime }` (and the equivalent named binding). When the project hasn't enabled realtime, the compile fails with the offending file paths and remediation: either enable `dbConfig.realtime: true` so the runtime helper exists, or remove the import. Caught against AttendVIP — three handler files (`broadcastAnnouncement.ts`, `declineActivityForGuest.ts`, `applyRsvp.ts`) imported `createRealtime` after the v0.15 auto-broadcast wiring landed, but their config never set `realtime: true`. The Worker compiled, deployed, and 500'd at first call. The user's framing was "config should be the source of truth" — this validator enforces that. Five regression tests in `realtime-import-without-config-rejected.test.ts`.
36
+
37
+ ### Fixes
38
+
39
+ **1. `SYSADMIN` was missing from the per-feature standalone gate's `allowsWithoutOrg` set.** The standalone-action wrapper skips its `if (!ctx.activeOrgId)` gate for any access tree referencing a pseudo-role (`PUBLIC`, `AUTHENTICATED`, `USER`, `ADMIN`) — but `SYSADMIN`, the v0.15.0 fifth marker, was missing from the matcher. Sysadmin actions on `cms.sysadmin: true` projects were 403'ing on cross-tenant calls (sysadmins have no member rows, so `ctx.activeOrgId` is unset by design). The matcher now includes `SYSADMIN`.
40
+
41
+ **2. Apex `/` and `/account/login` get fallback redirects when neither CMS nor Account SPA is bundled.** Projects that opt out of both bundled SPAs still receive traffic at `/` (no apex handler, 404) and `/account/login` (no Account fallback, 404). Setting `auth.loginUrl` to an external sign-in host now activates two compiler-emitted redirects so those natural inbound URLs land somewhere useful: `/account/login → loginUrl?redirect=…` (preserves the bounce param) and `/ → loginUrl` (or `/account` when the Account SPA is bundled). Both opt in via `auth.loginUrl !== '/account/login'` so projects using the built-in `/account/login` keep the existing SPA-fallback behavior unchanged.
42
+
43
+ **3. Record-based action URLs are now kebab-case to match OpenAPI.** `record-based.ts` was emitting URL paths from the camelCase action name (e.g. `/api/v1/widgets/:id/sendInvite`) while OpenAPI emit produced `/widgets/:id/send-invite`. Admin tooling and SDK consumers reading the OpenAPI spec hit 404s on every multi-word action. URL paths and OpenAPI emit now share a `urlPath = toKebabCase(urlSegment)` helper. Identifiers in audit `actionName`, error messages, and console logs stay camel — those are programmatic surfaces and breaking them would churn audit logs. Same fix shape as the v0.15.0 standalone-action URL casing.
44
+
45
+ ### Notes
46
+
47
+ Test coverage: 1175 → 1183 (+8 across the canonicalization, customLogin, and createRealtime regression files). Verified end-to-end against AttendVIP — `quickback compile` produces a worker whose `/account/login`, hostname-routed account/admin SPAs, and apex / handler all return 200 with the right SPA shell on the deployed Cloudflare worker, no 307 loops.
48
+
49
+ The bundled docs (`packages/claude-skill/docs/changelog.md`, `packages/cli/src/skill/docs/changelog.md`) and the CLI's `packages/cli/src/docs/content.ts` are regenerated by `scripts/bundle-docs.ts` — run that before publishing the CLI bump.
50
+
51
+ ---
52
+
53
+ ## v0.16.0 — May 9, 2026
54
+
55
+ ### Agent Auth Protocol — first-class agent identity for AI callers
56
+
57
+ Quickback now ships a server implementation of the [Agent Auth Protocol](https://agentauthprotocol.com) by way of `@better-auth/agent-auth`. Opt in with `auth.plugins.agentAuth: true` (or the array form `plugins: ["agentAuth"]`). When enabled, the compiler emits a complete agent-auth surface: discovery at `/.well-known/agent-configuration`, capability projection from the project's OpenAPI spec, a device-authorization approval page in the Account SPA at `/agents/approve`, and the four agent-auth tables (`agent`, `agentHost`, `agentCapabilityGrant`, `approvalRequest`) added to the auth schema automatically by `auth generate`.
58
+
59
+ **OpenAPI capability projection runs by default.** The compiler emits `src/lib/openapi-spec.ts` (the project's full OpenAPI spec inlined as a const) and wires `createFromOpenAPI(openapiSpec, { ... })` into the `agentAuth(...)` call. Every operation with an `operationId` becomes an agent capability. Default `approvalStrength` map: `GET → "session"`, `POST/PUT/PATCH/DELETE → "webauthn"`. Default `defaultHostCapabilities`: `["GET", "HEAD"]`.
60
+
61
+ The proxy `onExecute` makes a self-fetch to the worker's own URL with a Better Auth JWT minted for `agentSession.user.id`, so the inner request hits the existing JWT fast-path, populates `ctx`, and the full firewall + access + masking pipeline runs on the proxied call. No new middleware code, no parallel security path — agent capability calls go through the same gates as regular REST traffic. The cost is one Cloudflare subrequest per capability call (~50ms); fine for typical agent traffic. Opt out of OpenAPI projection with `agentAuth: { fromOpenAPI: false }` and wire `capabilities` + `onExecute` by hand.
62
+
63
+ The Account SPA gains `/agents/approve` (`packages/account/app/routes/agents.approve.tsx`) — modeled on the existing `/cli/authorize` device-code page. Pastes the user code, fetches the pending request, lists the requested capabilities with a "Step-up" badge on any capability whose `approvalStrength` is `"webauthn"`, then approves or denies. WebAuthn step-up itself is a placeholder for v0.16.0 — the upstream agent-auth API for the escalation call is still settling, so capabilities tagged `"webauthn"` will fail server-side until that lands. The badge tells the user what's coming.
64
+
65
+ ### Bearer-only on `/mcp` and the agent-auth surface
66
+
67
+ `/mcp` now forwards **only** `Authorization: Bearer …` into the inner `app.request()` re-entry. Cookie + `x-api-key` forwarding has been removed. The MCP surface is server-to-server by nature — there are no browser callers, no CSRF surface to defend, and no benefit to fragmenting the auth model across three header conventions. Three Bearer flavors all land on the same header, resolved by the inner Hono middleware chain:
68
+
69
+ - Better Auth session token via the official `bearer` plugin
70
+ - OAuth access token via the OAuth Provider plugin
71
+ - Agent JWT via `@better-auth/agent-auth`
72
+
73
+ If a project still wants API-key auth here, configure the `apiKey` plugin to accept its key via `Authorization: Bearer` so everything stays one channel. The existing `mcp-server.test.ts` regression seal flips from "forwards Cookie + x-api-key" to "forwards only Authorization (bearer-only surface)".
74
+
75
+ ### Auth DSL: `bearer`, `oauthProvider`, `agentAuth` are now first-class plugin entries
76
+
77
+ Both the array-form union and the `BetterAuthPlugins` interface in `apps/compiler/src/define/auth.ts` gain `"bearer"`, `"oauthProvider"`, and `"agentAuth"`. `bearer` was previously in the runtime registry but missing from the TS type, so callsites had to use `as any` or `// @ts-expect-error` to set it. Both are gone now. New typed options interfaces — `OAuthProviderOptions` (audience, login/consent paths, dynamic registration) and `AgentAuthOptions` (providerName, providerDescription, modes, fromOpenAPI, approvalStrength, defaultHostCapabilities) — let users override defaults through the object form.
78
+
79
+ Auto-enable rule lives in the canonical `computeAutoAddedPlugins` (`generators/auth.ts`): turning on `agentAuth` force-adds `bearer` + `oauthProvider`. There is no useful agent-auth deployment without those two — surfacing it as auto-add rather than a confusing "missing dependency" runtime error matches the existing pattern (`oauthProvider` already auto-adds `jwt`).
80
+
81
+ ### `queue-consumer.ts` now emitted for `additionalQueues` too
82
+
83
+ Prior to this release, the queue consumer emit gated on `embeddingFeatures.length > 0 || queueHandlers.length > 0`. Projects that declared queue infrastructure via `dbConfig.additionalQueues` but had no embeddings + no `services/queues/*` handlers shipped a `wrangler.toml` with `[[queues.consumers]]` entries pointing at a missing worker `queue` export. The CLI's archive-restore step kept a stale `queue-consumer.ts` around, so the file appeared "stuck" across compiles — same class of bug as the v0.15.0 services/queues/* regression caught against AttendVIP, just one source removed.
84
+
85
+ The gate is now a three-way OR: `hasEmbeddings || hasQueueHandlers || hasAdditionalQueues`. When only `additionalQueues` is set, the compiler emits a stub `queue-consumer.ts` whose `queue` export acks every message with a warning — Cloudflare needs an export for every consumer binding, and a noisy-but-correct stub beats a silent deploy break. `MainAppOptions` and `CloudflareMainAppOptions` gain `hasAdditionalQueues`; `generateQueueImport` and `generateCloudflareExport` mirror the new gate. Regression test: `src/__tests__/queue-additional-queues-gate.test.ts`.
86
+
87
+ ### Fixes
88
+
89
+ **1. `bearer` was missing from the `BetterAuthPlugins` TypeScript interface.** The runtime plugin registry has had `bearer` since the pre-1.0 cuts, but `apps/compiler/src/define/auth.ts` never declared it on the typed shape — so any `quickback.config.ts` using `plugins: { bearer: true }` had to `as any`-cast or sit behind a `@ts-expect-error`. Both `bearer` and `oauthProvider` (same gap, same workaround) are now first-class typed entries; `agentAuth` joins them. The array-form union also gains all three. No behavior change at runtime; existing casts can come out.
90
+
91
+ **2. MCP `buildInternalRequest` no longer forwards Cookie or `x-api-key`.** The MCP surface is server-to-server — there are no browser callers, no CSRF surface to defend, and no benefit to fragmenting the auth model across three header conventions. The inner `app.request()` re-entry now forwards only `Authorization: Bearer …`. Three Bearer flavors all land on the same header (BA session token via the `bearer` plugin, OAuth access token via OAuth Provider, agent JWT via `@better-auth/agent-auth`). Existing `mcp-server.test.ts` regression flipped from "forwards Cookie + x-api-key" to "forwards only Authorization (bearer-only surface)".
92
+
93
+ **3. `agentAuth` now auto-enables `bearer` + `oauthProvider`.** There is no useful agent-auth deployment without those two — the agent surface is bearer-only and MCP clients need OAuth to register. Auto-enable lives in the canonical `computeAutoAddedPlugins` (`generators/auth.ts`), so it propagates to every consumer (better-auth generator, schema generation, package-deps emission). Same pattern as the existing `oauthProvider` → `jwt` rule. Surfaced in `agent-auth.test.ts` with a regression seal that asserts both plugins land in the merged plugin list whether the user wrote the array form or the object form.
94
+
95
+ **4. `OpenAPISpec` literal type rejected by tsc on inlined spec.** Quickback's OpenAPI emit produces `$ref`-style parameter entries (`{ "$ref": "#/components/parameters/X" }`) that the agent-auth plugin's stricter `OpenAPIParameter` type doesn't model — `tsc` fails the generated project with "Type … is not assignable to OpenAPIParameter". The plugin handles refs correctly at runtime; only the structural narrowing on the TS literal needed help. The generated `agentAuth({ ...createFromOpenAPI(openapiSpec as any, { ... }) })` call now carries an `as any` cast on the spec with an inline comment explaining why. Drop when upstream models `$ref` parameters.
96
+
97
+ ### Notes
98
+
99
+ `@better-auth/agent-auth` 0.4.5 ships ESM-only exports without a `require` condition, so the Better Auth CLI's `auth generate` step (jiti / CJS resolver) bails with `ERR_PACKAGE_PATH_NOT_EXPORTED`. The compiler image patches the package's `package.json` at install time to add a matching `require` condition pointing at the same dist file (Node 22+ supports `require(esm)`). Remove the patch in `apps/compiler/Dockerfile` when upstream ships proper exports.
100
+
101
+ Test coverage: 1136 → 1152 (+11 `agent-auth.test.ts`, +5 `queue-additional-queues-gate.test.ts`). Verified end-to-end against `examples/recruitment` with `agentAuth` enabled — `quickback compile` produces a project whose `npm run build` typechecks clean and whose generated schema includes all four agent-auth tables (`agent`, `agentHost`, `agentCapabilityGrant`, `approvalRequest`).
102
+
103
+ ---
104
+
7
105
  ## v0.15.0 — May 7, 2026
8
106
 
9
107
  ### Sysadmin tier — cross-tenant DB-admin role for the CMS
@@ -122,7 +122,41 @@ Each in-worker DO entry accepts:
122
122
 
123
123
  Where the class file lives: in-worker DO classes go under `quickback/lib/` or `quickback/features/<feature>/lib/` so they survive every compile (the rest of `src/` is wiped). Both copy verbatim into the generated `src/` tree.
124
124
 
125
- Removing a DO from config doesn't emit a tear-down migration — that's a wrangler concern. If you need to drop a class, hand-edit the migrations array (or use a fresh script) before redeploying.
125
+ ### `durableObjectMigrations`
126
+
127
+ Cloudflare's `[[migrations]]` list is **append-only** — once a tag is deployed, removing it from `wrangler.toml` causes the next deploy to fail with code 10061 ("Cannot apply migration"). Quickback regenerates `wrangler.toml` from your config on every compile, so any historical lifecycle entries (deleted, renamed, transferred classes) need to live in the config too — otherwise they'd be wiped.
128
+
129
+ `bindings.durableObjectMigrations[]` is the slot for those entries. Compiler emits them **first** in the [[migrations]] list, before the auto-emitted current-class creation tags, so CF sees the chronology it needs.
130
+
131
+ ```ts
132
+ bindings: {
133
+ durableObjects: [
134
+ { name: "NOTEPAD", className: "Notepad", from: "lib/Notepad" },
135
+ ],
136
+ // Historical lifecycle: a previous LegacyNotes class was deleted on
137
+ // 2026-05-09. Without this entry, a recompile would drop the
138
+ // deleted_classes block and the next deploy would 10061.
139
+ durableObjectMigrations: [
140
+ {
141
+ tag: "qb-do-deleted-legacy-notes-2026-05-09",
142
+ deletedClasses: ["LegacyNotes"],
143
+ },
144
+ ],
145
+ }
146
+ ```
147
+
148
+ Each entry accepts:
149
+
150
+ | Field | Notes |
151
+ |-------|-------|
152
+ | `tag` | Migration tag. Once deployed, never change it. Convention: `qb-do-<verb>-<class>-<YYYY-MM-DD>`. |
153
+ | `newClasses` | KV-backed creations. Rare — most DOs use `new_sqlite_classes`. |
154
+ | `newSqliteClasses` | SQLite-backed creations. Use this if you ever need to declare a creation manually instead of letting the auto-emit handle it. |
155
+ | `deletedClasses` | Array of class names to tear down. **Destroys the DO's storage** on deploy — only use when you're sure. |
156
+ | `renamedClasses` | `[{ from, to }]` — class rename without losing storage. |
157
+ | `transferredClasses` | `[{ from, from_script, to }]` — move a class across workers. |
158
+
159
+ **When you remove a DO from `bindings.durableObjects`**, declare the teardown here. Don't hand-edit `wrangler.toml` — those edits get wiped on the next compile.
126
160
 
127
161
  ### `vars`
128
162