@sidecar-ai/cli 0.1.0-alpha.10 → 0.1.0-alpha.12
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/index.d.ts +38 -1
- package/dist/index.js +2570 -1608
- package/dist/index.js.map +1 -1
- package/package.json +10 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,56 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { b as SidecarHost, h as SidecarTarget, c as SidecarManifest, i as SidecarToolManifestEntry } from '../types-CWHwikML.js';
|
|
3
|
+
import '@sidecar-ai/core';
|
|
4
|
+
|
|
5
|
+
/** Tunnel backend requested by `sidecar dev --tunnel`. */
|
|
6
|
+
type TunnelProvider = "auto" | "cloudflared" | "wrangler";
|
|
7
|
+
|
|
2
8
|
/** Dispatches the requested CLI command. */
|
|
3
9
|
declare function main(argv: string[]): Promise<void>;
|
|
4
10
|
/** Component inventory rendered in the preview matrix. */
|
|
5
11
|
type ComponentPreviewSet = "representative" | "all";
|
|
6
12
|
/** Theme variants rendered by the preview matrix. */
|
|
7
13
|
type ComponentPreviewTheme = "light" | "dark";
|
|
14
|
+
/** URL information printed after a build completes. */
|
|
15
|
+
type BuildUrlSummaryOptions = {
|
|
16
|
+
host: SidecarHost;
|
|
17
|
+
mcpPath?: string;
|
|
18
|
+
port?: string;
|
|
19
|
+
publicMcpUrl?: string;
|
|
20
|
+
publicUrl?: string;
|
|
21
|
+
};
|
|
22
|
+
/** URL information printed after `sidecar dev` starts. */
|
|
23
|
+
type DevUrlSummaryOptions = {
|
|
24
|
+
harnessUrl: string;
|
|
25
|
+
localMcpUrl: string;
|
|
26
|
+
runtimeMcpUrl: string;
|
|
27
|
+
tunnelProvider?: TunnelProvider;
|
|
28
|
+
};
|
|
29
|
+
/** Built target output used by the project preview server. */
|
|
30
|
+
type ProjectPreviewBuild = {
|
|
31
|
+
target: SidecarTarget;
|
|
32
|
+
outDir: string;
|
|
33
|
+
manifest: SidecarManifest;
|
|
34
|
+
};
|
|
35
|
+
/** Renders build-time URL guidance without implying the artifact is already deployed. */
|
|
36
|
+
declare function renderBuildUrlSummary(options: BuildUrlSummaryOptions): string;
|
|
37
|
+
/** Renders the URLs exposed by `sidecar dev`. */
|
|
38
|
+
declare function renderDevUrlSummary(options: DevUrlSummaryOptions): string;
|
|
39
|
+
/** Renders the project widget catalog with one section per theme and one column per target. */
|
|
40
|
+
declare function renderProjectPreviewHtml(builds: readonly ProjectPreviewBuild[]): string;
|
|
41
|
+
/** Injects deterministic host context and tool result data into a compiled widget document. */
|
|
42
|
+
declare function injectProjectPreviewBridge(html: string, tool: SidecarToolManifestEntry, target: SidecarTarget, theme: ComponentPreviewTheme): string;
|
|
8
43
|
/** Renders the static preview matrix used for human parity checks. */
|
|
9
44
|
declare function renderComponentPreviewHtml(host: string, compare: string, css: string, themes: readonly ComponentPreviewTheme[], componentSet: ComponentPreviewSet): string;
|
|
10
45
|
/** Renders one isolated theme frame so root host/theme selectors work normally. */
|
|
11
46
|
declare function renderComponentPreviewFrame(host: string, compare: string, css: string, theme: ComponentPreviewTheme, componentSet: ComponentPreviewSet): string;
|
|
12
47
|
/** Returns the components represented in a preview set. */
|
|
13
48
|
declare function previewComponentNames(componentSet: ComponentPreviewSet): string[];
|
|
49
|
+
/** Parses the build targets selected for the project preview command. */
|
|
50
|
+
declare function readPreviewTargets(argv: string[]): SidecarTarget[];
|
|
14
51
|
/** Parses the component inventory selected for the preview command. */
|
|
15
52
|
declare function readPreviewComponentSet(value: string | undefined): ComponentPreviewSet;
|
|
16
53
|
/** Parses the theme set selected for the preview command. */
|
|
17
54
|
declare function readPreviewThemes(value: string | undefined): ComponentPreviewTheme[];
|
|
18
55
|
|
|
19
|
-
export { main, previewComponentNames, readPreviewComponentSet, readPreviewThemes, renderComponentPreviewFrame, renderComponentPreviewHtml };
|
|
56
|
+
export { type BuildUrlSummaryOptions, type DevUrlSummaryOptions, type ProjectPreviewBuild, injectProjectPreviewBridge, main, previewComponentNames, readPreviewComponentSet, readPreviewTargets, readPreviewThemes, renderBuildUrlSummary, renderComponentPreviewFrame, renderComponentPreviewHtml, renderDevUrlSummary, renderProjectPreviewHtml };
|