@nimiplatform/app-tools 0.1.3 → 0.2.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 +198 -6
- package/README.md +83 -27
- package/bin/nimi-app.mjs +328 -45
- package/lib/app-access-declaration.mjs +49 -0
- package/lib/app-doctor-update.mjs +411 -149
- package/lib/app-pack.mjs +402 -0
- package/lib/app-project-lifecycle.mjs +1141 -0
- package/lib/app-scaffold-capabilities.mjs +769 -0
- package/lib/app-scaffold-default-source.mjs +21 -0
- package/lib/app-scaffold-profiles.mjs +1093 -0
- package/lib/app-scaffold.mjs +1266 -813
- package/lib/index.mjs +195 -42
- package/lib/simulator-conformance-ast.mjs +498 -0
- package/lib/simulator-conformance-css.mjs +116 -0
- package/lib/simulator-conformance-graph.mjs +757 -0
- package/lib/simulator-conformance.d.mts +14 -0
- package/lib/simulator-conformance.mjs +203 -0
- package/lib/simulator-css-profile.d.mts +27 -0
- package/lib/simulator-css-profile.mjs +531 -0
- package/lib/simulator-kit-export-resolution.mjs +70 -0
- package/lib/simulator-manifest.mjs +334 -0
- package/lib/windows-powershell.mjs +7 -0
- package/package.json +66 -3
- package/scripts/dev-shell.mjs +465 -0
- package/scripts/sync-app-source.mjs +300 -0
- package/scripts/sync-scaffold-versions.mjs +91 -0
- package/templates/app-source/LICENSE +21 -0
- package/templates/app-source/src/ai-studio-core/ai-config.ts +100 -0
- package/templates/app-source/src/ai-studio-core/ai-studio-core.css +338 -0
- package/templates/app-source/src/ai-studio-core/contexts.tsx +61 -0
- package/templates/app-source/src/ai-studio-core/history-policy.ts +447 -0
- package/templates/app-source/src/ai-studio-core/history.ts +824 -0
- package/templates/app-source/src/ai-studio-core/host-context.tsx +79 -0
- package/templates/app-source/src/ai-studio-core/index.ts +214 -0
- package/templates/app-source/src/ai-studio-core/messages/en.json +310 -0
- package/templates/app-source/src/ai-studio-core/messages/index.ts +47 -0
- package/templates/app-source/src/ai-studio-core/messages/zh.json +310 -0
- package/templates/app-source/src/ai-studio-core/module-registration.ts +109 -0
- package/templates/app-source/src/ai-studio-core/non-success-presentation.ts +65 -0
- package/templates/app-source/src/ai-studio-core/parameter-fields.tsx +247 -0
- package/templates/app-source/src/ai-studio-core/parameters.ts +110 -0
- package/templates/app-source/src/ai-studio-core/prompt-drafts.ts +69 -0
- package/templates/app-source/src/ai-studio-core/run-target.ts +123 -0
- package/templates/app-source/src/ai-studio-core/runtime-dispatcher.ts +35 -0
- package/templates/app-source/src/ai-studio-core/runtime-types.ts +86 -0
- package/templates/app-source/src/ai-studio-core/runtime.ts +306 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-admission.ts +38 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-ai-config.tsx +30 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-artifact-preview.ts +40 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-composer.tsx +257 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-history.tsx +676 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-input.ts +19 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-output.tsx +291 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-result.tsx +413 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-run.ts +174 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-studio-result.tsx +449 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing-surface.tsx +45 -0
- package/templates/app-source/src/ai-studio-core/section-ai-testing.tsx +494 -0
- package/templates/app-source/src/ai-studio-core/studio-directives.ts +33 -0
- package/templates/app-source/src/ai-studio-core/workspace.tsx +381 -0
- package/templates/app-source/src/product-modules/agent-center/index.tsx +27 -0
- package/templates/app-source/src/product-modules/agent-conversation/index.tsx +19 -0
- package/templates/app-source/src/product-modules/agent-realtime/index.tsx +29 -0
- package/templates/app-source/src/product-modules/kit-recipes/gallery.tsx +142 -0
- package/templates/app-source/src/product-modules/kit-recipes/index.tsx +19 -0
- package/templates/app-source/src/product-modules/kit-recipes/kit-component-gallery-data-recipes.tsx +336 -0
- package/templates/app-source/src/product-modules/kit-recipes/kit-component-gallery-demos.tsx +165 -0
- package/templates/app-source/src/product-modules/kit-recipes/kit-component-gallery-recipes.tsx +682 -0
- package/templates/app-source/src/product-modules/kit-recipes/kit-component-gallery-surface.tsx +341 -0
- package/templates/app-source/src/studio-modules/studio-create/descriptors.ts +26 -0
- package/templates/app-source/src/studio-modules/studio-create/index.ts +14 -0
- package/templates/app-source/src/studio-modules/studio-create/messages/en.json +67 -0
- package/templates/app-source/src/studio-modules/studio-create/messages/index.ts +5 -0
- package/templates/app-source/src/studio-modules/studio-create/messages/zh.json +67 -0
- package/templates/app-source/src/studio-modules/studio-create/parameter-panel.tsx +153 -0
- package/templates/app-source/src/studio-modules/studio-create/parameters.ts +70 -0
- package/templates/app-source/src/studio-modules/studio-create/registration.ts +46 -0
- package/templates/app-source/src/studio-modules/studio-create/runtime.ts +339 -0
- package/templates/app-source/src/studio-modules/studio-media/descriptors.ts +22 -0
- package/templates/app-source/src/studio-modules/studio-media/index.ts +12 -0
- package/templates/app-source/src/studio-modules/studio-media/messages/en.json +82 -0
- package/templates/app-source/src/studio-modules/studio-media/messages/index.ts +5 -0
- package/templates/app-source/src/studio-modules/studio-media/messages/zh.json +82 -0
- package/templates/app-source/src/studio-modules/studio-media/parameter-panel.tsx +283 -0
- package/templates/app-source/src/studio-modules/studio-media/parameters.ts +94 -0
- package/templates/app-source/src/studio-modules/studio-media/registration.ts +44 -0
- package/templates/app-source/src/studio-modules/studio-media/runtime.ts +113 -0
- package/templates/app-source/src/studio-modules/studio-voice/descriptors.ts +28 -0
- package/templates/app-source/src/studio-modules/studio-voice/index.ts +16 -0
- package/templates/app-source/src/studio-modules/studio-voice/messages/en.json +99 -0
- package/templates/app-source/src/studio-modules/studio-voice/messages/index.ts +5 -0
- package/templates/app-source/src/studio-modules/studio-voice/messages/zh.json +99 -0
- package/templates/app-source/src/studio-modules/studio-voice/parameter-panel.tsx +284 -0
- package/templates/app-source/src/studio-modules/studio-voice/parameters.ts +116 -0
- package/templates/app-source/src/studio-modules/studio-voice/registration.ts +59 -0
- package/templates/app-source/src/studio-modules/studio-voice/runtime.ts +347 -0
- package/templates/app-source/src/workbench-core/empty-state.tsx +31 -0
- package/templates/app-source/src/workbench-core/index.ts +17 -0
- package/templates/app-source/src/workbench-core/runtime-gate.tsx +131 -0
- package/templates/app-source/src/workbench-core/workbench-core.css +255 -0
- package/templates/app-source/src/workbench-core/workbench-core.tsx +140 -0
- package/templates/app-source.manifest.json +333 -0
- package/templates/default-starter/AGENTS.md +33 -0
- package/templates/default-starter/LICENSE +21 -0
- package/templates/default-starter/README.md +41 -0
- package/templates/default-starter/SECURITY.md +5 -0
- package/templates/default-starter/index.html +12 -0
- package/templates/default-starter/scripts/validate.mjs +26 -0
- package/templates/default-starter/src/shell/App.tsx +27 -0
- package/templates/default-starter/src/shell/auth/app-identity.ts +3 -0
- package/templates/default-starter/src/shell/auth/local-app-client.ts +18 -0
- package/templates/default-starter/src/shell/auth/runtime-platform.ts +110 -0
- package/templates/default-starter/src/shell/authenticated-shell.tsx +20 -0
- package/templates/default-starter/src/shell/workbench-target-adapter.ts +40 -0
- package/templates/default-starter/src/styles.css +26 -0
- package/templates/default-starter/src-tauri/Cargo.toml +17 -0
- package/templates/default-starter/src-tauri/build.rs +5 -0
- package/templates/default-starter/src-tauri/capabilities/default.json +7 -0
- package/templates/default-starter/src-tauri/tauri.conf.json +26 -0
- package/templates/default-starter/tsconfig.json +18 -0
- package/templates/default-starter.manifest.json +99 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SimulatorCssValidation } from './simulator-css-profile.mjs';
|
|
2
|
+
|
|
3
|
+
export declare function isSimulatorStaticAssetPath(filePath: string): boolean;
|
|
4
|
+
|
|
5
|
+
export declare function validateSimulatorAppSource(rootDir: string, options?: Readonly<Record<string, unknown>>): {
|
|
6
|
+
readonly manifest: Readonly<Record<string, unknown>>;
|
|
7
|
+
readonly style: SimulatorCssValidation;
|
|
8
|
+
readonly fixture: Readonly<Record<string, unknown>>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export declare function validateSimulatorSelectedDependencyModule(
|
|
12
|
+
code: string,
|
|
13
|
+
canonicalPath: string,
|
|
14
|
+
): { readonly specifiers: readonly string[] };
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { readFileSync, realpathSync, statSync } from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
import postcss from 'postcss';
|
|
5
|
+
import {
|
|
6
|
+
parseSimulatorManifest,
|
|
7
|
+
SIMULATOR_MANIFEST_PATH,
|
|
8
|
+
SimulatorConformanceError,
|
|
9
|
+
} from './simulator-manifest.mjs';
|
|
10
|
+
import {
|
|
11
|
+
assertAdapterMetadata,
|
|
12
|
+
assertCanonicalFactoryMetadata,
|
|
13
|
+
extractConformanceFixture,
|
|
14
|
+
assertRendererMetadata,
|
|
15
|
+
} from './simulator-conformance-ast.mjs';
|
|
16
|
+
import {
|
|
17
|
+
buildSimulatorCssProfile,
|
|
18
|
+
} from './simulator-css-profile.mjs';
|
|
19
|
+
import {
|
|
20
|
+
validateSimulatorCssGlobalSymbols,
|
|
21
|
+
validateSimulatorCssSelectors,
|
|
22
|
+
} from './simulator-conformance-css.mjs';
|
|
23
|
+
import {
|
|
24
|
+
assertContainedFile,
|
|
25
|
+
assertImportAllowed,
|
|
26
|
+
assertRestrictedClosure,
|
|
27
|
+
buildModuleGraph,
|
|
28
|
+
canonicalRelative,
|
|
29
|
+
reachable,
|
|
30
|
+
resolveRelativeImport,
|
|
31
|
+
isSimulatorStaticAssetPath,
|
|
32
|
+
} from './simulator-conformance-graph.mjs';
|
|
33
|
+
import { validateSimulatorCanonicalKitExports } from './simulator-kit-export-resolution.mjs';
|
|
34
|
+
|
|
35
|
+
export { isSimulatorStaticAssetPath } from './simulator-conformance-graph.mjs';
|
|
36
|
+
|
|
37
|
+
function fail(code, message, fieldPath = '') {
|
|
38
|
+
throw new SimulatorConformanceError(code, message, fieldPath);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function assertEntryReachability(rootDir, graph, manifest) {
|
|
42
|
+
const factoryPath = assertContainedFile(rootDir, manifest.composition.factory_entry, 'composition.factory_entry');
|
|
43
|
+
const stylePath = assertContainedFile(rootDir, manifest.composition.style_entry, 'composition.style_entry');
|
|
44
|
+
const rendererPath = assertContainedFile(rootDir, manifest.renderer.entry, 'renderer.entry');
|
|
45
|
+
const factoryNode = graph.nodes.get(factoryPath);
|
|
46
|
+
if (!factoryNode?.exports.has(manifest.composition.factory_export)) {
|
|
47
|
+
fail('SIM_FACTORY_EXPORT', `canonical factory export ${JSON.stringify(manifest.composition.factory_export)} was not found`, 'composition.factory_export');
|
|
48
|
+
}
|
|
49
|
+
assertCanonicalFactoryMetadata(factoryNode.source, manifest);
|
|
50
|
+
if (!reachable(graph, rendererPath, factoryPath)) {
|
|
51
|
+
fail('SIM_RENDERER_FACTORY_REACHABILITY', 'renderer entry does not reach the canonical factory module', manifest.renderer.entry);
|
|
52
|
+
}
|
|
53
|
+
assertRendererMetadata(graph.nodes.get(rendererPath).source, manifest);
|
|
54
|
+
return { factoryPath, stylePath, rendererPath };
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function validateAdapterAndFixture(rootDir, graph, manifest) {
|
|
58
|
+
const adapterPath = assertContainedFile(rootDir, manifest.renderer.adapter_entry, 'renderer.adapter_entry');
|
|
59
|
+
const fixturePath = assertContainedFile(rootDir, manifest.fixtures.conformance, 'fixtures.conformance');
|
|
60
|
+
const adapter = graph.nodes.get(adapterPath);
|
|
61
|
+
if (!adapter?.exports.has(manifest.renderer.adapter_export)) {
|
|
62
|
+
fail('SIM_ADAPTER_EXPORT', `Adapter export ${JSON.stringify(manifest.renderer.adapter_export)} was not found`, 'renderer.adapter_export');
|
|
63
|
+
}
|
|
64
|
+
assertAdapterMetadata(adapter.source, manifest);
|
|
65
|
+
const fixture = graph.nodes.get(fixturePath);
|
|
66
|
+
if (!fixture || fixture.exports.size === 0) {
|
|
67
|
+
fail('SIM_FIXTURE_EXPORT', 'conformance fixture must expose at least one named export', manifest.fixtures.conformance);
|
|
68
|
+
}
|
|
69
|
+
const declaration = extractConformanceFixture(fixture.source, manifest);
|
|
70
|
+
return { adapterPath, fixturePath, declaration };
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function extractCssImport(params) {
|
|
74
|
+
const match = params.trim().match(/^(?:url\(\s*)?['"]([^'"]+)['"]\s*\)?/);
|
|
75
|
+
return match ? match[1] : '';
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function buildStyleClosure(rootDir, styleEntry, moduleId) {
|
|
79
|
+
const entry = assertContainedFile(rootDir, styleEntry, 'composition.style_entry');
|
|
80
|
+
const queue = [entry];
|
|
81
|
+
const seen = new Set();
|
|
82
|
+
const inputs = [];
|
|
83
|
+
const rootClass = `nimi-ui-module--${moduleId}`;
|
|
84
|
+
const globalPrefix = `nimi-ui-module-${moduleId}-`;
|
|
85
|
+
let rootClassSeen = false;
|
|
86
|
+
while (queue.length > 0) {
|
|
87
|
+
const current = queue.shift();
|
|
88
|
+
if (seen.has(current)) continue;
|
|
89
|
+
seen.add(current);
|
|
90
|
+
const relative = canonicalRelative(rootDir, current);
|
|
91
|
+
const bytes = readFileSync(current);
|
|
92
|
+
let css;
|
|
93
|
+
try {
|
|
94
|
+
css = postcss.parse(bytes.toString('utf8'), { from: relative });
|
|
95
|
+
} catch (error) {
|
|
96
|
+
fail('SIM_CSS_PARSE', error instanceof Error ? error.message : String(error), relative);
|
|
97
|
+
}
|
|
98
|
+
rootClassSeen = validateSimulatorCssSelectors(css, relative, rootClass, globalPrefix) || rootClassSeen;
|
|
99
|
+
validateSimulatorCssGlobalSymbols(css, relative, globalPrefix);
|
|
100
|
+
css.walkAtRules('import', (rule) => {
|
|
101
|
+
const specifier = extractCssImport(rule.params);
|
|
102
|
+
if (!specifier) fail('SIM_CSS_IMPORT', 'CSS @import must use a static quoted target', relative);
|
|
103
|
+
assertImportAllowed(specifier, relative);
|
|
104
|
+
if (specifier.startsWith('.')) {
|
|
105
|
+
const resolved = resolveRelativeImport(rootDir, current, specifier);
|
|
106
|
+
if (!resolved.endsWith('.css')) fail('SIM_CSS_IMPORT', 'CSS @import target must be CSS', relative);
|
|
107
|
+
queue.push(resolved);
|
|
108
|
+
} else {
|
|
109
|
+
fail('SIM_CSS_DEPENDENCY_UNDECLARED', 'package CSS requires a Manifest-declared dependency-CSS export', relative);
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
css.walkAtRules('source', () => {
|
|
113
|
+
fail('SIM_CSS_SOURCE_DIRECTIVE', 'canonical App CSS scanner inputs are generated by the protocol profile', relative);
|
|
114
|
+
});
|
|
115
|
+
css.walkAtRules('tailwind', () => {
|
|
116
|
+
fail('SIM_CSS_FOUNDATION_DUPLICATE', 'canonical App CSS cannot emit Tailwind foundation or utilities directly', relative);
|
|
117
|
+
});
|
|
118
|
+
inputs.push({ path: relative });
|
|
119
|
+
}
|
|
120
|
+
if (!rootClassSeen) {
|
|
121
|
+
fail('SIM_CSS_ROOT_CLASS', `canonical style closure must contain .${rootClass}`, styleEntry);
|
|
122
|
+
}
|
|
123
|
+
inputs.sort((left, right) => left.path.localeCompare(right.path));
|
|
124
|
+
return {
|
|
125
|
+
entry: styleEntry,
|
|
126
|
+
rootClass,
|
|
127
|
+
globalPrefix,
|
|
128
|
+
inputs,
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function validateSimulatorAppSource(rootDir, options = {}) {
|
|
133
|
+
const absoluteRoot = realpathSync(path.resolve(rootDir));
|
|
134
|
+
const manifestPath = assertContainedFile(absoluteRoot, SIMULATOR_MANIFEST_PATH, SIMULATOR_MANIFEST_PATH);
|
|
135
|
+
const manifestBytes = readFileSync(manifestPath);
|
|
136
|
+
const manifest = parseSimulatorManifest(manifestBytes.toString('utf8'), { label: SIMULATOR_MANIFEST_PATH });
|
|
137
|
+
if (options.expectedModuleId && options.expectedModuleId !== manifest.module_id) {
|
|
138
|
+
fail('SIM_MODULE_ID_MISMATCH', `expected module_id ${JSON.stringify(options.expectedModuleId)}`, 'module_id');
|
|
139
|
+
}
|
|
140
|
+
const graphEntries = [
|
|
141
|
+
{ path: manifest.composition.factory_entry, fieldPath: 'composition.factory_entry' },
|
|
142
|
+
{ path: manifest.composition.style_entry, fieldPath: 'composition.style_entry' },
|
|
143
|
+
{ path: manifest.renderer.entry, fieldPath: 'renderer.entry' },
|
|
144
|
+
{ path: manifest.renderer.adapter_entry, fieldPath: 'renderer.adapter_entry' },
|
|
145
|
+
{ path: manifest.fixtures.conformance, fieldPath: 'fixtures.conformance' },
|
|
146
|
+
];
|
|
147
|
+
const graph = buildModuleGraph(absoluteRoot, graphEntries);
|
|
148
|
+
const identity = assertEntryReachability(absoluteRoot, graph, manifest);
|
|
149
|
+
const simulatorParts = validateAdapterAndFixture(absoluteRoot, graph, manifest);
|
|
150
|
+
assertRestrictedClosure(absoluteRoot, graph, [
|
|
151
|
+
{ path: identity.factoryPath, owner: 'canonical_renderer' },
|
|
152
|
+
{ path: identity.rendererPath, owner: 'canonical_renderer' },
|
|
153
|
+
{ path: simulatorParts.adapterPath, owner: 'app_adapter' },
|
|
154
|
+
{ path: simulatorParts.fixturePath, owner: 'conformance_fixture' },
|
|
155
|
+
]);
|
|
156
|
+
const styleClosure = buildStyleClosure(absoluteRoot, manifest.composition.style_entry, manifest.module_id);
|
|
157
|
+
const style = buildSimulatorCssProfile({
|
|
158
|
+
rootDir: absoluteRoot,
|
|
159
|
+
graph,
|
|
160
|
+
factoryPath: identity.factoryPath,
|
|
161
|
+
factoryEntry: manifest.composition.factory_entry,
|
|
162
|
+
moduleId: manifest.module_id,
|
|
163
|
+
styleEntry: styleClosure.entry,
|
|
164
|
+
styleInputs: styleClosure.inputs,
|
|
165
|
+
rootClass: styleClosure.rootClass,
|
|
166
|
+
globalPrefix: styleClosure.globalPrefix,
|
|
167
|
+
});
|
|
168
|
+
return Object.freeze({
|
|
169
|
+
manifest,
|
|
170
|
+
style,
|
|
171
|
+
fixture: simulatorParts.declaration,
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export async function validateSimulatorAppSourceWithCanonicalKitExports(rootDir, options = {}) {
|
|
176
|
+
const result = validateSimulatorAppSource(rootDir, options);
|
|
177
|
+
const kitPackageRoot = options.kitPackageRoot || resolveSimulatorKitPackageRoot(rootDir);
|
|
178
|
+
await validateSimulatorCanonicalKitExports({ kitPackageRoot });
|
|
179
|
+
return result;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
function resolveSimulatorKitPackageRoot(rootDir) {
|
|
183
|
+
const candidates = [
|
|
184
|
+
path.resolve(rootDir, 'node_modules', '@nimiplatform', 'kit'),
|
|
185
|
+
path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..', 'kit'),
|
|
186
|
+
];
|
|
187
|
+
for (const candidate of candidates) {
|
|
188
|
+
try {
|
|
189
|
+
if (statSync(path.join(candidate, 'package.json')).isFile()) return realpathSync(candidate);
|
|
190
|
+
} catch {
|
|
191
|
+
// Continue to the other explicitly supported installation topology.
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
fail('SIM_KIT_PACKAGE_MISSING', 'Canonical @nimiplatform/kit package is unavailable');
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export {
|
|
198
|
+
parseSimulatorManifest,
|
|
199
|
+
validateSimulatorManifest,
|
|
200
|
+
assertSimulatorSourcePath,
|
|
201
|
+
SimulatorConformanceError,
|
|
202
|
+
} from './simulator-manifest.mjs';
|
|
203
|
+
export { validateSimulatorSelectedDependencyModule } from './simulator-conformance-graph.mjs';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Plugin } from 'vite';
|
|
2
|
+
|
|
3
|
+
export interface SimulatorCssValidation {
|
|
4
|
+
readonly entry: string;
|
|
5
|
+
readonly rootClass: string;
|
|
6
|
+
readonly globalPrefix: string;
|
|
7
|
+
readonly inputs: readonly { readonly path: string }[];
|
|
8
|
+
readonly profile: {
|
|
9
|
+
readonly scanner: {
|
|
10
|
+
readonly inputs: readonly { readonly path: string }[];
|
|
11
|
+
};
|
|
12
|
+
readonly utility: { readonly owner: string; readonly layer: string };
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export declare const SIMULATOR_CSS_PROFILE_PROTOCOL: 'nimi.simulator.css-profile/v1';
|
|
17
|
+
export declare const SIMULATOR_CSS_PROFILE_REVISION: string;
|
|
18
|
+
export declare const SIMULATOR_CSS_COMPILER_VERSION: string;
|
|
19
|
+
export declare const SIMULATOR_KIT_FOUNDATION_CSS_EXPORTS: readonly string[];
|
|
20
|
+
|
|
21
|
+
export declare function assertSimulatorFoundationEntry(code: string, filePath: string): void;
|
|
22
|
+
|
|
23
|
+
export declare function createSimulatorCssProfileVitePlugin(options: {
|
|
24
|
+
readonly compilerRoot: string;
|
|
25
|
+
readonly foundationEntry: string;
|
|
26
|
+
readonly apps: readonly { readonly rootDir: string; readonly style: SimulatorCssValidation }[];
|
|
27
|
+
}): Plugin;
|