@vmz/plugin 0.0.4 → 0.1.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/index.d.ts +32 -4
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -100,13 +100,13 @@ export interface VmzUserConfig {
|
|
|
100
100
|
/** Application identity (optional authoring). */
|
|
101
101
|
application?: { id?: string; [key: string]: unknown };
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
104
|
-
*
|
|
103
|
+
* Delivery: named profiles (`default` + `profiles`) or legacy site sugar.
|
|
104
|
+
* Pure data only; never a parallel `vmz.site.ts` entry.
|
|
105
105
|
*/
|
|
106
|
-
delivery?:
|
|
106
|
+
delivery?: DeliveryAuthoring;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
/**
|
|
109
|
+
/** Site resource sources (embedded | filesystem | remote) — orthogonal to assembly. */
|
|
110
110
|
export interface SiteDeliveryAuthoring {
|
|
111
111
|
artifact: string;
|
|
112
112
|
siteId?: string;
|
|
@@ -138,6 +138,34 @@ export interface SiteDeliveryAuthoring {
|
|
|
138
138
|
securityPolicy?: unknown;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
+
export type DeliveryAssembly = 'local-static' | 'static-cdn' | 'server-host' | 'cdn+server' | 'rust-embedded';
|
|
142
|
+
|
|
143
|
+
export type DeliveryServerRuntime = 'node' | 'worker' | 'deno' | 'bun' | 'rust-host';
|
|
144
|
+
|
|
145
|
+
export interface DeliveryProfileAuthoring {
|
|
146
|
+
host?: 'browser';
|
|
147
|
+
assembly: DeliveryAssembly;
|
|
148
|
+
serverRuntime?: DeliveryServerRuntime;
|
|
149
|
+
/** Inline site sources or `defineSite({...})`. */
|
|
150
|
+
sources?: SiteDeliveryAuthoring | SiteDeliveryAuthoring['sources'];
|
|
151
|
+
artifact?: string;
|
|
152
|
+
resolution?: SiteDeliveryAuthoring['resolution'];
|
|
153
|
+
activation?: SiteDeliveryAuthoring['activation'];
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/** Named profiles (preferred) or legacy site-only sugar. */
|
|
157
|
+
export type DeliveryAuthoring =
|
|
158
|
+
| {
|
|
159
|
+
default?: string;
|
|
160
|
+
profiles: Record<string, DeliveryProfileAuthoring>;
|
|
161
|
+
}
|
|
162
|
+
| (SiteDeliveryAuthoring & {
|
|
163
|
+
default?: string;
|
|
164
|
+
assembly?: DeliveryAssembly;
|
|
165
|
+
host?: 'browser';
|
|
166
|
+
serverRuntime?: DeliveryServerRuntime;
|
|
167
|
+
});
|
|
168
|
+
|
|
141
169
|
export type DefinePluginInput = PluginManifest & {
|
|
142
170
|
contribute?: VmzPlugin['contribute'];
|
|
143
171
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vmz/plugin",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "VMZ plugin protocol types and definePlugin / defineConfig helpers (no N-API)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"README.md"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@vmz/protocol": "0.0
|
|
21
|
+
"@vmz/protocol": "0.1.0"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [
|
|
24
24
|
"vmz",
|