@paged-media/plugin-api 0.2.13-canary.0 → 0.2.14-canary.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/manifest.d.ts +9 -2
- package/package.json +1 -1
- package/src/manifest.schema.json +4 -2
package/dist/manifest.d.ts
CHANGED
|
@@ -135,8 +135,15 @@ export interface DataProvidersCapability {
|
|
|
135
135
|
* unknown purposes are rejected at validation. v1:
|
|
136
136
|
* - `layout` — a foreign-document layout/measure engine (paged.web).
|
|
137
137
|
* - `codec` — encode/decode (image/font transforms).
|
|
138
|
-
* - `compute` — generic pure computation with no special host role.
|
|
139
|
-
|
|
138
|
+
* - `compute` — generic pure computation with no special host role.
|
|
139
|
+
* - `engine` — a vendored data/query/DB engine whose release artifact
|
|
140
|
+
* legitimately exceeds the default per-artifact ceiling
|
|
141
|
+
* (DuckDB-WASM ≈ 36 MiB; paged.data). Governed: it earns
|
|
142
|
+
* the HIGHER artifact ceiling (D-07b) but is otherwise an
|
|
143
|
+
* ordinary declared+budgeted module — the higher cap is
|
|
144
|
+
* the only difference, and a manifest `maxBytes` may still
|
|
145
|
+
* tighten it. */
|
|
146
|
+
export type WasmPurpose = "layout" | "codec" | "compute" | "engine";
|
|
140
147
|
/** One declared wasm artifact. `path` is bundle-relative (no leading
|
|
141
148
|
* slash, no `..`); `maxBytes`, when present, tightens — never widens —
|
|
142
149
|
* the host's per-artifact ceiling (see the budget table in
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paged-media/plugin-api",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14-canary.0",
|
|
4
4
|
"description": "The Paged plugin contract: manifest, bundle lifecycle, the BundleHost surface, and the contribution + engine wire types. Type-only.",
|
|
5
5
|
"license": "MPL-2.0 OR LicenseRef-PMEL",
|
|
6
6
|
"type": "module",
|
package/src/manifest.schema.json
CHANGED
|
@@ -159,13 +159,15 @@
|
|
|
159
159
|
"enum": [
|
|
160
160
|
"layout",
|
|
161
161
|
"codec",
|
|
162
|
-
"compute"
|
|
162
|
+
"compute",
|
|
163
|
+
"engine"
|
|
163
164
|
]
|
|
164
165
|
},
|
|
165
166
|
"maxBytes": {
|
|
166
167
|
"type": "integer",
|
|
167
168
|
"minimum": 1,
|
|
168
|
-
"maximum":
|
|
169
|
+
"maximum": 67108864,
|
|
170
|
+
"description": "Per-artifact byte ceiling (tightens, never widens, the host cap). Host cap: 8 MiB for layout/codec/compute, 64 MiB for purpose:\"engine\" (D-07b — vendored DB engines like DuckDB-WASM)."
|
|
169
171
|
}
|
|
170
172
|
}
|
|
171
173
|
}
|