@aotter/mantle-runtime 0.0.11-alpha.39 → 0.0.11-alpha.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"canonicalMigrations.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/boot/canonicalMigrations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAErE;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,SAAS,EA+NpD,CAAC"}
1
+ {"version":3,"file":"canonicalMigrations.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/boot/canonicalMigrations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAErE;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,SAAS,EAkNpD,CAAC"}
@@ -114,35 +114,6 @@ export const CANONICAL_MIGRATIONS = [
114
114
  );
115
115
  CREATE INDEX IF NOT EXISTS verification_identifier_idx ON verification (identifier);
116
116
 
117
- `,
118
- },
119
- {
120
- id: "0002-media-assets",
121
- description: "media_assets table — committed MediaAsset rows for #272 multi-variant uploads. Entry data references rows by id (x-mantle-ref: media_assets); runtime.media.resolve materialises the variants set at render time.",
122
- sql: `
123
- CREATE TABLE IF NOT EXISTS media_assets (
124
- id TEXT PRIMARY KEY,
125
- created_at INTEGER NOT NULL,
126
- owner_id TEXT,
127
- alt TEXT,
128
- caption TEXT,
129
- variants TEXT NOT NULL,
130
- metadata TEXT
131
- );
132
- CREATE INDEX IF NOT EXISTS media_assets_by_owner_created
133
- ON media_assets (owner_id, created_at DESC);
134
- `,
135
- },
136
- {
137
- id: "0003-better-auth-oauth-provider",
138
- description: "Replace the unused pre-alpha OAuth application tables with Better Auth OAuth Provider's client, token, refresh-token, and consent tables.",
139
- sql: `
140
- DROP TABLE IF EXISTS oauthAccessToken;
141
- DROP TABLE IF EXISTS oauthConsent;
142
- DROP TABLE IF EXISTS oauthApplication;
143
- DROP TABLE IF EXISTS oauthRefreshToken;
144
- DROP TABLE IF EXISTS oauthClient;
145
-
146
117
  CREATE TABLE IF NOT EXISTS oauthClient (
147
118
  id TEXT PRIMARY KEY NOT NULL,
148
119
  clientId TEXT NOT NULL UNIQUE,
@@ -224,5 +195,22 @@ export const CANONICAL_MIGRATIONS = [
224
195
  CREATE INDEX IF NOT EXISTS oauthConsent_userId_idx ON oauthConsent (userId);
225
196
  `,
226
197
  },
198
+ {
199
+ id: "0002-media-assets",
200
+ description: "media_assets table — committed MediaAsset rows for #272 multi-variant uploads. Entry data references rows by id (x-mantle-ref: media_assets); runtime.media.resolve materialises the variants set at render time.",
201
+ sql: `
202
+ CREATE TABLE IF NOT EXISTS media_assets (
203
+ id TEXT PRIMARY KEY,
204
+ created_at INTEGER NOT NULL,
205
+ owner_id TEXT,
206
+ alt TEXT,
207
+ caption TEXT,
208
+ variants TEXT NOT NULL,
209
+ metadata TEXT
210
+ );
211
+ CREATE INDEX IF NOT EXISTS media_assets_by_owner_created
212
+ ON media_assets (owner_id, created_at DESC);
213
+ `,
214
+ },
227
215
  ];
228
216
  //# sourceMappingURL=canonicalMigrations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"canonicalMigrations.js","sourceRoot":"","sources":["../../../src/infrastructure/boot/canonicalMigrations.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAyB;IACxD;QACE,EAAE,EAAE,WAAW;QACf,WAAW,EACT,8FAA8F;QAChG,4DAA4D;QAC5D,gEAAgE;QAChE,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAwGJ;KACF;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,WAAW,EACT,mNAAmN;QACrN,GAAG,EAAE;;;;;;;;;;;;KAYJ;KACF;IACD;QACE,EAAE,EAAE,iCAAiC;QACrC,WAAW,EACT,2IAA2I;QAC7I,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsFJ;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"canonicalMigrations.js","sourceRoot":"","sources":["../../../src/infrastructure/boot/canonicalMigrations.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAyB;IACxD;QACE,EAAE,EAAE,WAAW;QACf,WAAW,EACT,8FAA8F;QAChG,4DAA4D;QAC5D,gEAAgE;QAChE,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuLJ;KACF;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,WAAW,EACT,mNAAmN;QACrN,GAAG,EAAE;;;;;;;;;;;;KAYJ;KACF;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aotter/mantle-runtime",
3
- "version": "0.0.11-alpha.39",
3
+ "version": "0.0.11-alpha.41",
4
4
  "description": "Runtime engine for mantle: dispatcher + entry-writer + view executor + content-ops + render pipeline + auth + MCP. Defines adapter-agnostic ports. MUST NOT import D1Database / KVNamespace types.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://mantle.tools/",
@@ -29,7 +29,7 @@
29
29
  "README.md"
30
30
  ],
31
31
  "dependencies": {
32
- "@aotter/mantle-spec": "0.0.11-alpha.39"
32
+ "@aotter/mantle-spec": "0.0.11-alpha.41"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "zod": "^4.0.0"