@decantr/core 1.0.0-beta.9 → 1.0.1
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/LICENSE +21 -0
- package/README.md +66 -0
- package/dist/index.d.ts +296 -7
- package/dist/index.js +923 -17
- package/dist/index.js.map +1 -1
- package/package.json +28 -12
- package/schema/execution-pack-bundle.v1.json +58 -0
- package/schema/execution-pack.common.v1.json +192 -0
- package/schema/mutation-pack.v1.json +94 -0
- package/schema/pack-manifest.v1.json +110 -0
- package/schema/page-pack.v1.json +101 -0
- package/schema/review-pack.v1.json +97 -0
- package/schema/scaffold-pack.v1.json +87 -0
- package/schema/section-pack.v1.json +92 -0
- package/schema/selected-execution-pack.v1.json +75 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Decantr AI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# @decantr/core
|
|
2
|
+
|
|
3
|
+
Support status: `core-supported`
|
|
4
|
+
Release channel: `stable`
|
|
5
|
+
|
|
6
|
+
Low-level Decantr compiler and execution-pack foundation.
|
|
7
|
+
|
|
8
|
+
Most teams should use `@decantr/cli`, `@decantr/registry`, or `@decantr/mcp-server` directly. `@decantr/core` is part of the supported Decantr public foundation surface, but it is intentionally lower-level than the usual integration entrypoints.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install @decantr/core
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Stability
|
|
17
|
+
|
|
18
|
+
`@decantr/core` is published for advanced package consumers that need low-level execution-pack primitives. It is stable in the `1.x` line for the documented exports in this package, but it is still not the recommended first integration surface for most Decantr adopters.
|
|
19
|
+
|
|
20
|
+
## What It Exports
|
|
21
|
+
|
|
22
|
+
- execution-pack builders for scaffold, section, page, mutation, and review scopes
|
|
23
|
+
- execution-pack bundle compilation and pack selection helpers
|
|
24
|
+
- canonical pack adapter resolution used by higher-level Decantr surfaces
|
|
25
|
+
- execution-pack schema URLs
|
|
26
|
+
- markdown rendering for compiled packs
|
|
27
|
+
- IR and pipeline helpers used by higher-level Decantr surfaces
|
|
28
|
+
|
|
29
|
+
In the current workflow architecture, `@decantr/core` owns the canonical adapter labels used by compiled packs, while runnable greenfield bootstrap adapters are resolved in the CLI on top of those labels.
|
|
30
|
+
|
|
31
|
+
## Example
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
import {
|
|
35
|
+
buildReviewPack,
|
|
36
|
+
renderExecutionPackMarkdown,
|
|
37
|
+
resolvePackAdapter,
|
|
38
|
+
} from '@decantr/core';
|
|
39
|
+
|
|
40
|
+
const pack = buildReviewPack({
|
|
41
|
+
projectName: 'Acme Console',
|
|
42
|
+
target: 'react',
|
|
43
|
+
routeCount: 4,
|
|
44
|
+
sections: ['overview', 'settings'],
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
const adapter = resolvePackAdapter('react', 'spa');
|
|
48
|
+
const markdown = renderExecutionPackMarkdown(pack);
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Schema Exports
|
|
52
|
+
|
|
53
|
+
This package publishes execution-pack schemas under:
|
|
54
|
+
|
|
55
|
+
- `@decantr/core/schema/scaffold-pack.v1.json`
|
|
56
|
+
- `@decantr/core/schema/section-pack.v1.json`
|
|
57
|
+
- `@decantr/core/schema/page-pack.v1.json`
|
|
58
|
+
- `@decantr/core/schema/mutation-pack.v1.json`
|
|
59
|
+
- `@decantr/core/schema/review-pack.v1.json`
|
|
60
|
+
- `@decantr/core/schema/pack-manifest.v1.json`
|
|
61
|
+
- `@decantr/core/schema/execution-pack-bundle.v1.json`
|
|
62
|
+
- `@decantr/core/schema/selected-execution-pack.v1.json`
|
|
63
|
+
|
|
64
|
+
## License
|
|
65
|
+
|
|
66
|
+
MIT
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EssenceFile, StructurePage } from '@decantr/essence-spec';
|
|
2
|
-
import { Pattern, ResolvedPreset, Theme
|
|
1
|
+
import { EssenceFile, EssenceV3, StructurePage } from '@decantr/essence-spec';
|
|
2
|
+
import { ContentResolver, Pattern, ResolvedPreset, Theme } from '@decantr/registry';
|
|
3
3
|
|
|
4
4
|
type IRNodeType = 'app' | 'shell' | 'page' | 'pattern' | 'grid' | 'nav' | 'store';
|
|
5
5
|
interface IRSpatial {
|
|
@@ -31,8 +31,8 @@ interface IRPatternMeta {
|
|
|
31
31
|
contained: boolean;
|
|
32
32
|
standalone: boolean;
|
|
33
33
|
code: {
|
|
34
|
-
imports
|
|
35
|
-
example
|
|
34
|
+
imports?: string;
|
|
35
|
+
example?: string;
|
|
36
36
|
} | null;
|
|
37
37
|
components: string[];
|
|
38
38
|
}
|
|
@@ -78,6 +78,7 @@ interface IRTheme {
|
|
|
78
78
|
interface IRRoute {
|
|
79
79
|
path: string;
|
|
80
80
|
pageId: string;
|
|
81
|
+
shell: string;
|
|
81
82
|
}
|
|
82
83
|
/** Which v3 essence layer sourced this node */
|
|
83
84
|
type IRLayer = 'dna' | 'blueprint' | 'meta';
|
|
@@ -94,7 +95,7 @@ interface IRAppNode extends IRNode {
|
|
|
94
95
|
type: 'app';
|
|
95
96
|
theme: IRTheme;
|
|
96
97
|
routes: IRRoute[];
|
|
97
|
-
routing: 'hash' | 'history';
|
|
98
|
+
routing: 'hash' | 'history' | 'pathname';
|
|
98
99
|
shell: IRShellNode;
|
|
99
100
|
store: IRStoreNode;
|
|
100
101
|
features: string[];
|
|
@@ -136,13 +137,301 @@ interface IRStoreNode extends IRNode {
|
|
|
136
137
|
}[];
|
|
137
138
|
}
|
|
138
139
|
|
|
140
|
+
type ExecutionPackType = 'scaffold' | 'section' | 'page' | 'mutation' | 'review';
|
|
141
|
+
declare const EXECUTION_PACK_SCHEMA_URLS: {
|
|
142
|
+
readonly scaffold: "https://decantr.ai/schemas/scaffold-pack.v1.json";
|
|
143
|
+
readonly section: "https://decantr.ai/schemas/section-pack.v1.json";
|
|
144
|
+
readonly page: "https://decantr.ai/schemas/page-pack.v1.json";
|
|
145
|
+
readonly mutation: "https://decantr.ai/schemas/mutation-pack.v1.json";
|
|
146
|
+
readonly review: "https://decantr.ai/schemas/review-pack.v1.json";
|
|
147
|
+
};
|
|
148
|
+
declare const PACK_MANIFEST_SCHEMA_URL = "https://decantr.ai/schemas/pack-manifest.v1.json";
|
|
149
|
+
declare const EXECUTION_PACK_BUNDLE_SCHEMA_URL = "https://decantr.ai/schemas/execution-pack-bundle.v1.json";
|
|
150
|
+
declare const SELECTED_EXECUTION_PACK_SCHEMA_URL = "https://decantr.ai/schemas/selected-execution-pack.v1.json";
|
|
151
|
+
interface ExecutionPackTarget {
|
|
152
|
+
platform: 'web';
|
|
153
|
+
framework: string | null;
|
|
154
|
+
runtime: string | null;
|
|
155
|
+
adapter: string;
|
|
156
|
+
}
|
|
157
|
+
interface ExecutionPackScope {
|
|
158
|
+
appId: string;
|
|
159
|
+
pageIds: string[];
|
|
160
|
+
patternIds: string[];
|
|
161
|
+
}
|
|
162
|
+
interface ExecutionPackExample {
|
|
163
|
+
id: string;
|
|
164
|
+
label: string;
|
|
165
|
+
language: string;
|
|
166
|
+
snippet: string;
|
|
167
|
+
}
|
|
168
|
+
interface ExecutionPackAntiPattern {
|
|
169
|
+
id: string;
|
|
170
|
+
summary: string;
|
|
171
|
+
guidance: string;
|
|
172
|
+
}
|
|
173
|
+
interface ExecutionPackSuccessCheck {
|
|
174
|
+
id: string;
|
|
175
|
+
label: string;
|
|
176
|
+
severity: 'error' | 'warn' | 'info';
|
|
177
|
+
}
|
|
178
|
+
interface ExecutionPackTokenBudget {
|
|
179
|
+
target: number;
|
|
180
|
+
max: number;
|
|
181
|
+
strategy: string[];
|
|
182
|
+
}
|
|
183
|
+
interface ExecutionPackBase<TData> {
|
|
184
|
+
$schema: string;
|
|
185
|
+
packVersion: '1.0.0';
|
|
186
|
+
packType: ExecutionPackType;
|
|
187
|
+
objective: string;
|
|
188
|
+
target: ExecutionPackTarget;
|
|
189
|
+
preset: string | null;
|
|
190
|
+
scope: ExecutionPackScope;
|
|
191
|
+
requiredSetup: string[];
|
|
192
|
+
allowedVocabulary: string[];
|
|
193
|
+
examples: ExecutionPackExample[];
|
|
194
|
+
antiPatterns: ExecutionPackAntiPattern[];
|
|
195
|
+
successChecks: ExecutionPackSuccessCheck[];
|
|
196
|
+
tokenBudget: ExecutionPackTokenBudget;
|
|
197
|
+
data: TData;
|
|
198
|
+
renderedMarkdown: string;
|
|
199
|
+
}
|
|
200
|
+
interface PackManifestEntry {
|
|
201
|
+
id: string;
|
|
202
|
+
markdown: string;
|
|
203
|
+
json: string;
|
|
204
|
+
}
|
|
205
|
+
interface PackManifestSectionEntry extends PackManifestEntry {
|
|
206
|
+
pageIds: string[];
|
|
207
|
+
}
|
|
208
|
+
interface PackManifestPageEntry extends PackManifestEntry {
|
|
209
|
+
sectionId: string | null;
|
|
210
|
+
sectionRole: string | null;
|
|
211
|
+
}
|
|
212
|
+
interface PackManifestMutationEntry extends PackManifestEntry {
|
|
213
|
+
mutationType: MutationPackKind;
|
|
214
|
+
}
|
|
215
|
+
interface ExecutionPackManifest {
|
|
216
|
+
$schema: string;
|
|
217
|
+
version: '1.0.0';
|
|
218
|
+
generatedAt: string;
|
|
219
|
+
scaffold: PackManifestEntry | null;
|
|
220
|
+
review: PackManifestEntry | null;
|
|
221
|
+
sections: PackManifestSectionEntry[];
|
|
222
|
+
pages: PackManifestPageEntry[];
|
|
223
|
+
mutations: PackManifestMutationEntry[];
|
|
224
|
+
}
|
|
225
|
+
interface ScaffoldPackRoute {
|
|
226
|
+
pageId: string;
|
|
227
|
+
path: string;
|
|
228
|
+
patternIds: string[];
|
|
229
|
+
shell?: string;
|
|
230
|
+
}
|
|
231
|
+
interface ScaffoldPackData {
|
|
232
|
+
shell: string;
|
|
233
|
+
theme: {
|
|
234
|
+
id: string;
|
|
235
|
+
mode: string;
|
|
236
|
+
shape: string | null;
|
|
237
|
+
};
|
|
238
|
+
routing: 'hash' | 'history' | 'pathname';
|
|
239
|
+
features: string[];
|
|
240
|
+
navigation?: {
|
|
241
|
+
commandPalette: boolean;
|
|
242
|
+
hotkeys: Array<{
|
|
243
|
+
key: string;
|
|
244
|
+
route?: string;
|
|
245
|
+
label?: string;
|
|
246
|
+
}>;
|
|
247
|
+
};
|
|
248
|
+
routes: ScaffoldPackRoute[];
|
|
249
|
+
}
|
|
250
|
+
interface ScaffoldExecutionPack extends ExecutionPackBase<ScaffoldPackData> {
|
|
251
|
+
packType: 'scaffold';
|
|
252
|
+
}
|
|
253
|
+
interface SectionPackInput {
|
|
254
|
+
id: string;
|
|
255
|
+
role: string;
|
|
256
|
+
shell: string;
|
|
257
|
+
description: string;
|
|
258
|
+
features: string[];
|
|
259
|
+
pageIds: string[];
|
|
260
|
+
}
|
|
261
|
+
interface SectionPackRoute {
|
|
262
|
+
pageId: string;
|
|
263
|
+
path: string;
|
|
264
|
+
patternIds: string[];
|
|
265
|
+
shell?: string;
|
|
266
|
+
}
|
|
267
|
+
interface SectionPackData {
|
|
268
|
+
sectionId: string;
|
|
269
|
+
role: string;
|
|
270
|
+
shell: string;
|
|
271
|
+
description: string;
|
|
272
|
+
features: string[];
|
|
273
|
+
theme: {
|
|
274
|
+
id: string;
|
|
275
|
+
mode: string;
|
|
276
|
+
shape: string | null;
|
|
277
|
+
};
|
|
278
|
+
routes: SectionPackRoute[];
|
|
279
|
+
}
|
|
280
|
+
interface SectionExecutionPack extends ExecutionPackBase<SectionPackData> {
|
|
281
|
+
packType: 'section';
|
|
282
|
+
}
|
|
283
|
+
interface PagePackInput {
|
|
284
|
+
pageId: string;
|
|
285
|
+
shell: string;
|
|
286
|
+
sectionId: string | null;
|
|
287
|
+
sectionRole: string | null;
|
|
288
|
+
features: string[];
|
|
289
|
+
}
|
|
290
|
+
interface PagePackPattern {
|
|
291
|
+
id: string;
|
|
292
|
+
alias: string;
|
|
293
|
+
preset: string;
|
|
294
|
+
layout: string;
|
|
295
|
+
}
|
|
296
|
+
interface PagePackData {
|
|
297
|
+
pageId: string;
|
|
298
|
+
path: string;
|
|
299
|
+
shell: string;
|
|
300
|
+
sectionId: string | null;
|
|
301
|
+
sectionRole: string | null;
|
|
302
|
+
features: string[];
|
|
303
|
+
surface: string;
|
|
304
|
+
theme: {
|
|
305
|
+
id: string;
|
|
306
|
+
mode: string;
|
|
307
|
+
shape: string | null;
|
|
308
|
+
};
|
|
309
|
+
wiringSignals: string[];
|
|
310
|
+
patterns: PagePackPattern[];
|
|
311
|
+
}
|
|
312
|
+
interface PageExecutionPack extends ExecutionPackBase<PagePackData> {
|
|
313
|
+
packType: 'page';
|
|
314
|
+
}
|
|
315
|
+
type MutationPackKind = 'add-page' | 'modify';
|
|
316
|
+
interface MutationPackData {
|
|
317
|
+
mutationType: MutationPackKind;
|
|
318
|
+
shell: string;
|
|
319
|
+
theme: {
|
|
320
|
+
id: string;
|
|
321
|
+
mode: string;
|
|
322
|
+
shape: string | null;
|
|
323
|
+
};
|
|
324
|
+
routing: 'hash' | 'history' | 'pathname';
|
|
325
|
+
features: string[];
|
|
326
|
+
routes: ScaffoldPackRoute[];
|
|
327
|
+
workflow: string[];
|
|
328
|
+
}
|
|
329
|
+
interface MutationExecutionPack extends ExecutionPackBase<MutationPackData> {
|
|
330
|
+
packType: 'mutation';
|
|
331
|
+
}
|
|
332
|
+
type ReviewPackKind = 'app';
|
|
333
|
+
interface ReviewPackData {
|
|
334
|
+
reviewType: ReviewPackKind;
|
|
335
|
+
shell: string;
|
|
336
|
+
theme: {
|
|
337
|
+
id: string;
|
|
338
|
+
mode: string;
|
|
339
|
+
shape: string | null;
|
|
340
|
+
};
|
|
341
|
+
routing: 'hash' | 'history' | 'pathname';
|
|
342
|
+
features: string[];
|
|
343
|
+
routes: ScaffoldPackRoute[];
|
|
344
|
+
focusAreas: string[];
|
|
345
|
+
workflow: string[];
|
|
346
|
+
}
|
|
347
|
+
interface ReviewExecutionPack extends ExecutionPackBase<ReviewPackData> {
|
|
348
|
+
packType: 'review';
|
|
349
|
+
}
|
|
350
|
+
interface ExecutionPackBundle {
|
|
351
|
+
$schema: string;
|
|
352
|
+
generatedAt: string;
|
|
353
|
+
sourceEssenceVersion: string;
|
|
354
|
+
manifest: ExecutionPackManifest;
|
|
355
|
+
scaffold: ScaffoldExecutionPack;
|
|
356
|
+
review: ReviewExecutionPack;
|
|
357
|
+
sections: SectionExecutionPack[];
|
|
358
|
+
pages: PageExecutionPack[];
|
|
359
|
+
mutations: MutationExecutionPack[];
|
|
360
|
+
}
|
|
361
|
+
type SelectedExecutionPack = ScaffoldExecutionPack | ReviewExecutionPack | SectionExecutionPack | PageExecutionPack | MutationExecutionPack;
|
|
362
|
+
interface ExecutionPackSelector {
|
|
363
|
+
packType: ExecutionPackType;
|
|
364
|
+
id?: string | null;
|
|
365
|
+
}
|
|
366
|
+
interface SelectedExecutionPackResponse {
|
|
367
|
+
$schema: string;
|
|
368
|
+
generatedAt: string;
|
|
369
|
+
sourceEssenceVersion: string;
|
|
370
|
+
manifest: ExecutionPackManifest;
|
|
371
|
+
selector: {
|
|
372
|
+
packType: ExecutionPackType;
|
|
373
|
+
id: string | null;
|
|
374
|
+
};
|
|
375
|
+
pack: SelectedExecutionPack;
|
|
376
|
+
}
|
|
377
|
+
interface ScaffoldPackBuilderOptions {
|
|
378
|
+
objective?: string;
|
|
379
|
+
target?: Partial<ExecutionPackTarget>;
|
|
380
|
+
preset?: string | null;
|
|
381
|
+
requiredSetup?: string[];
|
|
382
|
+
examples?: ExecutionPackExample[];
|
|
383
|
+
antiPatterns?: ExecutionPackAntiPattern[];
|
|
384
|
+
successChecks?: ExecutionPackSuccessCheck[];
|
|
385
|
+
tokenBudget?: Partial<ExecutionPackTokenBudget>;
|
|
386
|
+
navigation?: {
|
|
387
|
+
commandPalette: boolean;
|
|
388
|
+
hotkeys: Array<{
|
|
389
|
+
key: string;
|
|
390
|
+
route?: string;
|
|
391
|
+
label?: string;
|
|
392
|
+
}>;
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
interface SectionPackBuilderOptions extends ScaffoldPackBuilderOptions {
|
|
396
|
+
}
|
|
397
|
+
interface PagePackBuilderOptions extends ScaffoldPackBuilderOptions {
|
|
398
|
+
}
|
|
399
|
+
interface MutationPackBuilderOptions extends ScaffoldPackBuilderOptions {
|
|
400
|
+
mutationType: MutationPackKind;
|
|
401
|
+
workflow?: string[];
|
|
402
|
+
}
|
|
403
|
+
interface ReviewPackBuilderOptions extends ScaffoldPackBuilderOptions {
|
|
404
|
+
reviewType?: ReviewPackKind;
|
|
405
|
+
focusAreas?: string[];
|
|
406
|
+
workflow?: string[];
|
|
407
|
+
}
|
|
408
|
+
interface CompileExecutionPackBundleOptions {
|
|
409
|
+
contentRoot?: string;
|
|
410
|
+
overridePaths?: string[];
|
|
411
|
+
resolver?: ContentResolver;
|
|
412
|
+
}
|
|
413
|
+
declare function renderExecutionPackMarkdown(pack: ExecutionPackBase<unknown>): string;
|
|
414
|
+
declare function resolvePackAdapter(target: string | undefined, platformType: string | undefined): string;
|
|
415
|
+
declare function listPackSections(essence: EssenceV3): SectionPackInput[];
|
|
416
|
+
declare function listPackPages(essence: EssenceV3): PagePackInput[];
|
|
417
|
+
declare function buildScaffoldPack(appNode: IRAppNode, options?: ScaffoldPackBuilderOptions): ScaffoldExecutionPack;
|
|
418
|
+
declare function buildSectionPack(appNode: IRAppNode, input: SectionPackInput, options?: SectionPackBuilderOptions): SectionExecutionPack;
|
|
419
|
+
declare function buildPagePack(appNode: IRAppNode, input: PagePackInput, options?: PagePackBuilderOptions): PageExecutionPack;
|
|
420
|
+
declare function buildMutationPack(appNode: IRAppNode, options: MutationPackBuilderOptions): MutationExecutionPack;
|
|
421
|
+
declare function buildReviewPack(appNode: IRAppNode, options?: ReviewPackBuilderOptions): ReviewExecutionPack;
|
|
422
|
+
declare function compileExecutionPackBundle(essence: EssenceFile, options?: CompileExecutionPackBundleOptions): Promise<ExecutionPackBundle>;
|
|
423
|
+
declare function selectExecutionPackFromBundle(bundle: ExecutionPackBundle, selector: ExecutionPackSelector): SelectedExecutionPackResponse | null;
|
|
424
|
+
declare function compileSelectedExecutionPack(essence: EssenceFile, selector: ExecutionPackSelector, options?: CompileExecutionPackBundleOptions): Promise<SelectedExecutionPackResponse | null>;
|
|
425
|
+
|
|
139
426
|
interface PipelineOptions {
|
|
140
427
|
/** Path to content directory (patterns, archetypes, themes) */
|
|
141
|
-
contentRoot
|
|
428
|
+
contentRoot?: string;
|
|
142
429
|
/** Override paths for local content resolution */
|
|
143
430
|
overridePaths?: string[];
|
|
144
431
|
/** Only resolve specific page(s) */
|
|
145
432
|
pageFilter?: string;
|
|
433
|
+
/** Optional custom resolver for hosted or in-memory execution */
|
|
434
|
+
resolver?: ContentResolver;
|
|
146
435
|
}
|
|
147
436
|
interface PipelineResult {
|
|
148
437
|
/** The framework-agnostic intermediate representation */
|
|
@@ -205,4 +494,4 @@ declare function validateIR(root: IRNode): string[];
|
|
|
205
494
|
/** Convert a kebab-case or snake_case string to PascalCase */
|
|
206
495
|
declare function pascalCase(str: string): string;
|
|
207
496
|
|
|
208
|
-
export { type IRAppNode, type IRBreakpointEntry, type IRCardWrapping, type IRGridNode, type IRHookType, type IRLayer, type IRNavItem, type IRNode, type IRNodeType, type IRPageNode, type IRPatternMeta, type IRPatternNode, type IRRoute, type IRShellConfig, type IRShellNode, type IRSpatial, type IRStoreNode, type IRTheme, type IRThemeDecoration, type IRVisualEffect, type IRWiring, type IRWiringSignal, type PipelineOptions, type PipelineResult, type ResolvedEssence, type ResolvedPage, buildPageIR, countPatterns, findNodes, pascalCase, resolveEssence, resolveVisualEffects, runPipeline, validateIR, walkIR };
|
|
497
|
+
export { type CompileExecutionPackBundleOptions, EXECUTION_PACK_BUNDLE_SCHEMA_URL, EXECUTION_PACK_SCHEMA_URLS, type ExecutionPackAntiPattern, type ExecutionPackBase, type ExecutionPackBundle, type ExecutionPackExample, type ExecutionPackManifest, type ExecutionPackScope, type ExecutionPackSelector, type ExecutionPackSuccessCheck, type ExecutionPackTarget, type ExecutionPackTokenBudget, type ExecutionPackType, type IRAppNode, type IRBreakpointEntry, type IRCardWrapping, type IRGridNode, type IRHookType, type IRLayer, type IRNavItem, type IRNode, type IRNodeType, type IRPageNode, type IRPatternMeta, type IRPatternNode, type IRRoute, type IRShellConfig, type IRShellNode, type IRSpatial, type IRStoreNode, type IRTheme, type IRThemeDecoration, type IRVisualEffect, type IRWiring, type IRWiringSignal, type MutationExecutionPack, type MutationPackBuilderOptions, type MutationPackData, type MutationPackKind, PACK_MANIFEST_SCHEMA_URL, type PackManifestEntry, type PackManifestMutationEntry, type PackManifestPageEntry, type PackManifestSectionEntry, type PageExecutionPack, type PagePackBuilderOptions, type PagePackData, type PagePackInput, type PagePackPattern, type PipelineOptions, type PipelineResult, type ResolvedEssence, type ResolvedPage, type ReviewExecutionPack, type ReviewPackBuilderOptions, type ReviewPackData, type ReviewPackKind, SELECTED_EXECUTION_PACK_SCHEMA_URL, type ScaffoldExecutionPack, type ScaffoldPackBuilderOptions, type ScaffoldPackData, type ScaffoldPackRoute, type SectionExecutionPack, type SectionPackBuilderOptions, type SectionPackData, type SectionPackInput, type SectionPackRoute, type SelectedExecutionPack, type SelectedExecutionPackResponse, buildMutationPack, buildPageIR, buildPagePack, buildReviewPack, buildScaffoldPack, buildSectionPack, compileExecutionPackBundle, compileSelectedExecutionPack, countPatterns, findNodes, listPackPages, listPackSections, pascalCase, renderExecutionPackMarkdown, resolveEssence, resolvePackAdapter, resolveVisualEffects, runPipeline, selectExecutionPackFromBundle, validateIR, walkIR };
|