@w3kits-com/plugin-opendesign 0.1.11 → 0.1.13
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/404/index.html +1 -1
- package/dist/404.html +1 -1
- package/dist/__next.$oc$slug.__PAGE__.txt +1 -1
- package/dist/__next.$oc$slug.txt +1 -1
- package/dist/__next._full.txt +1 -1
- package/dist/__next._head.txt +1 -1
- package/dist/__next._index.txt +1 -1
- package/dist/__next._tree.txt +1 -1
- package/dist/__w3kits/webcontainer-runtime/apps/daemon/dist/db.d.ts +1 -1
- package/dist/__w3kits/webcontainer-runtime/apps/daemon/dist/db.js +8 -4
- package/dist/__w3kits/webcontainer-runtime/apps/daemon/dist/db.js.map +1 -1
- package/dist/__w3kits/webcontainer-runtime/apps/daemon/dist/w3kits-memory-sqlite.d.ts +32 -0
- package/dist/__w3kits/webcontainer-runtime/apps/daemon/dist/w3kits-memory-sqlite.js +260 -0
- package/dist/__w3kits/webcontainer-runtime/apps/daemon/dist/w3kits-memory-sqlite.js.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/package.json +6 -2
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/browser-vfs/dist/index.d.ts +108 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/browser-vfs/dist/index.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/browser-vfs/dist/index.mjs +413 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/browser-vfs/package.json +12 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/analytics/artifact-id.d.ts +5 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/analytics/artifact-id.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/analytics/events.d.ts +250 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/analytics/events.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/analytics/index.d.ts +4 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/analytics/index.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/analytics/index.mjs +186 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/analytics/public-params.d.ts +26 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/analytics/public-params.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/app-config.d.ts +44 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/app-config.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/artifacts.d.ts +34 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/artifacts.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/chat.d.ts +158 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/chat.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/comments.d.ts +65 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/comments.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/connectionTest.d.ts +49 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/connectionTest.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/connectionTest.mjs +83 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/connectors.d.ts +133 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/connectors.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/files.d.ts +43 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/files.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/finalize.d.ts +50 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/finalize.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/finalize.mjs +5 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/live-artifacts.d.ts +151 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/live-artifacts.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/mcp.d.ts +117 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/mcp.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/memory.d.ts +233 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/memory.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/orbit.d.ts +22 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/orbit.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/orbit.mjs +0 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/projects.d.ts +286 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/projects.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/providerModels.d.ts +19 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/providerModels.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/providerModels.mjs +0 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/proxy.d.ts +24 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/proxy.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/registry.d.ts +156 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/registry.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/research.d.ts +35 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/research.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/research.mjs +9 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/routines.d.ts +104 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/routines.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/version.d.ts +11 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/api/version.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/common.d.ts +33 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/common.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/critique.d.ts +344 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/critique.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/critique.mjs +182 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/errors.d.ts +40 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/errors.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/examples.d.ts +20 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/examples.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/index.d.ts +31 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/index.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/index.mjs +2072 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/prompts/deck-framework.d.ts +39 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/prompts/deck-framework.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/prompts/directions.d.ts +69 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/prompts/directions.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/prompts/discovery.d.ts +2 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/prompts/discovery.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/prompts/media-contract.d.ts +2 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/prompts/media-contract.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/prompts/official-system.d.ts +12 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/prompts/official-system.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/prompts/system.d.ts +58 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/prompts/system.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/sse/chat.d.ts +96 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/sse/chat.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/sse/common.d.ts +8 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/sse/common.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/sse/proxy.d.ts +6 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/sse/proxy.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/tasks.d.ts +12 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/dist/tasks.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/contracts/package.json +40 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/platform/dist/index.d.ts +68 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/platform/dist/index.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/platform/dist/index.mjs +397 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/platform/package.json +12 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/sidecar/dist/index.d.ts +144 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/sidecar/dist/index.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/sidecar/dist/index.mjs +412 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/sidecar/package.json +12 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/sidecar-proto/dist/index.d.ts +291 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/sidecar-proto/dist/index.d.ts.map +1 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/sidecar-proto/dist/index.mjs +315 -0
- package/dist/__w3kits/webcontainer-runtime/workspace-packages/@open-design/sidecar-proto/package.json +12 -0
- package/dist/_not-found/__next._full.txt +1 -1
- package/dist/_not-found/__next._head.txt +1 -1
- package/dist/_not-found/__next._index.txt +1 -1
- package/dist/_not-found/__next._not-found.__PAGE__.txt +1 -1
- package/dist/_not-found/__next._not-found.txt +1 -1
- package/dist/_not-found/__next._tree.txt +1 -1
- package/dist/_not-found/index.html +1 -1
- package/dist/_not-found/index.txt +1 -1
- package/dist/index.html +1 -1
- package/dist/index.txt +1 -1
- package/package.json +1 -1
- /package/dist/_next/static/{DJnxTGY7DiPmoowmfZmqQ → klz1-InlKPyMqk6_5sLYV}/_buildManifest.js +0 -0
- /package/dist/_next/static/{DJnxTGY7DiPmoowmfZmqQ → klz1-InlKPyMqk6_5sLYV}/_clientMiddlewareManifest.js +0 -0
- /package/dist/_next/static/{DJnxTGY7DiPmoowmfZmqQ → klz1-InlKPyMqk6_5sLYV}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
export declare const APP_KEYS: Readonly<{
|
|
2
|
+
readonly DAEMON: "daemon";
|
|
3
|
+
readonly DESKTOP: "desktop";
|
|
4
|
+
readonly WEB: "web";
|
|
5
|
+
}>;
|
|
6
|
+
export type AppKey = (typeof APP_KEYS)[keyof typeof APP_KEYS];
|
|
7
|
+
export declare const SIDECAR_MODES: Readonly<{
|
|
8
|
+
readonly DEV: "dev";
|
|
9
|
+
readonly RUNTIME: "runtime";
|
|
10
|
+
}>;
|
|
11
|
+
export type SidecarMode = (typeof SIDECAR_MODES)[keyof typeof SIDECAR_MODES];
|
|
12
|
+
export declare const SIDECAR_SOURCES: Readonly<{
|
|
13
|
+
readonly PACKAGED: "packaged";
|
|
14
|
+
readonly TOOLS_DEV: "tools-dev";
|
|
15
|
+
readonly TOOLS_PACK: "tools-pack";
|
|
16
|
+
}>;
|
|
17
|
+
export type SidecarSource = (typeof SIDECAR_SOURCES)[keyof typeof SIDECAR_SOURCES];
|
|
18
|
+
export declare const SIDECAR_ENV: Readonly<{
|
|
19
|
+
readonly BASE: "OD_SIDECAR_BASE";
|
|
20
|
+
readonly DAEMON_CLI_PATH: "OD_DAEMON_CLI_PATH";
|
|
21
|
+
readonly DAEMON_PORT: "OD_PORT";
|
|
22
|
+
readonly IPC_BASE: "OD_SIDECAR_IPC_BASE";
|
|
23
|
+
readonly IPC_PATH: "OD_SIDECAR_IPC_PATH";
|
|
24
|
+
readonly NAMESPACE: "OD_SIDECAR_NAMESPACE";
|
|
25
|
+
readonly SOURCE: "OD_SIDECAR_SOURCE";
|
|
26
|
+
readonly TOOLS_DEV_PARENT_PID: "OD_TOOLS_DEV_PARENT_PID";
|
|
27
|
+
readonly WEB_DIST_DIR: "OD_WEB_DIST_DIR";
|
|
28
|
+
readonly WEB_PORT: "OD_WEB_PORT";
|
|
29
|
+
readonly WEB_TSCONFIG_PATH: "OD_WEB_TSCONFIG_PATH";
|
|
30
|
+
}>;
|
|
31
|
+
export declare const SIDECAR_RUNTIME_ENV: Readonly<{
|
|
32
|
+
readonly base: "OD_SIDECAR_BASE";
|
|
33
|
+
readonly ipcBase: "OD_SIDECAR_IPC_BASE";
|
|
34
|
+
readonly ipcPath: "OD_SIDECAR_IPC_PATH";
|
|
35
|
+
readonly namespace: "OD_SIDECAR_NAMESPACE";
|
|
36
|
+
readonly source: "OD_SIDECAR_SOURCE";
|
|
37
|
+
}>;
|
|
38
|
+
export declare const SIDECAR_STAMP_FLAGS: Readonly<{
|
|
39
|
+
readonly app: "--od-stamp-app";
|
|
40
|
+
readonly ipc: "--od-stamp-ipc";
|
|
41
|
+
readonly mode: "--od-stamp-mode";
|
|
42
|
+
readonly namespace: "--od-stamp-namespace";
|
|
43
|
+
readonly source: "--od-stamp-source";
|
|
44
|
+
}>;
|
|
45
|
+
export declare const STAMP_APP_FLAG: "--od-stamp-app";
|
|
46
|
+
export declare const STAMP_IPC_FLAG: "--od-stamp-ipc";
|
|
47
|
+
export declare const STAMP_MODE_FLAG: "--od-stamp-mode";
|
|
48
|
+
export declare const STAMP_NAMESPACE_FLAG: "--od-stamp-namespace";
|
|
49
|
+
export declare const STAMP_SOURCE_FLAG: "--od-stamp-source";
|
|
50
|
+
export declare const SIDECAR_STAMP_FIELDS: readonly ["app", "mode", "namespace", "ipc", "source"];
|
|
51
|
+
export declare const SIDECAR_DEFAULTS: Readonly<{
|
|
52
|
+
readonly host: "127.0.0.1";
|
|
53
|
+
readonly ipcBase: "/tmp/open-design/ipc";
|
|
54
|
+
readonly namespace: "default";
|
|
55
|
+
readonly projectTmpDirName: ".tmp";
|
|
56
|
+
readonly windowsPipePrefix: "open-design";
|
|
57
|
+
}>;
|
|
58
|
+
export declare const SIDECAR_MESSAGES: Readonly<{
|
|
59
|
+
readonly CLICK: "click";
|
|
60
|
+
readonly CONSOLE: "console";
|
|
61
|
+
readonly EVAL: "eval";
|
|
62
|
+
readonly EXPORT_PDF: "export-pdf";
|
|
63
|
+
readonly REGISTER_DESKTOP_AUTH: "register-desktop-auth";
|
|
64
|
+
readonly SCREENSHOT: "screenshot";
|
|
65
|
+
readonly SHUTDOWN: "shutdown";
|
|
66
|
+
readonly STATUS: "status";
|
|
67
|
+
}>;
|
|
68
|
+
export declare const SIDECAR_ERROR_CODES: Readonly<{
|
|
69
|
+
readonly INVALID_MESSAGE: "SIDECAR_INVALID_MESSAGE";
|
|
70
|
+
readonly UNKNOWN_MESSAGE: "SIDECAR_UNKNOWN_MESSAGE";
|
|
71
|
+
}>;
|
|
72
|
+
export type SidecarErrorCode = (typeof SIDECAR_ERROR_CODES)[keyof typeof SIDECAR_ERROR_CODES];
|
|
73
|
+
export declare class SidecarContractError extends Error {
|
|
74
|
+
readonly code: SidecarErrorCode;
|
|
75
|
+
constructor(code: SidecarErrorCode, message: string);
|
|
76
|
+
}
|
|
77
|
+
export type ServiceRuntimeState = "idle" | "running" | "starting" | "stopped" | "unknown";
|
|
78
|
+
export type DaemonStatusSnapshot = {
|
|
79
|
+
pid?: number | null;
|
|
80
|
+
state: ServiceRuntimeState;
|
|
81
|
+
updatedAt?: string;
|
|
82
|
+
url: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* PR #974 round 6 (mrcfps): true when the daemon's
|
|
85
|
+
* `/api/import/folder` route refuses tokenless requests. Surfaced
|
|
86
|
+
* over IPC so `tools-dev start desktop` can detect a daemon that
|
|
87
|
+
* was spawned without `OD_REQUIRE_DESKTOP_AUTH=1` (the split-start
|
|
88
|
+
* dev flow `start daemon` -> `start desktop`) and restart it
|
|
89
|
+
* before launching desktop main, instead of letting a renderer
|
|
90
|
+
* race the registration handshake. Mirrors
|
|
91
|
+
* `apps/daemon/src/server.ts#isDesktopAuthGateActive()` at the
|
|
92
|
+
* moment the STATUS request was answered.
|
|
93
|
+
*/
|
|
94
|
+
desktopAuthGateActive: boolean;
|
|
95
|
+
};
|
|
96
|
+
export type WebStatusSnapshot = {
|
|
97
|
+
pid?: number | null;
|
|
98
|
+
state: ServiceRuntimeState;
|
|
99
|
+
updatedAt?: string;
|
|
100
|
+
url: string | null;
|
|
101
|
+
};
|
|
102
|
+
export type DesktopRuntimeState = "idle" | "running" | "unknown";
|
|
103
|
+
export type DesktopStatusSnapshot = {
|
|
104
|
+
pid?: number | null;
|
|
105
|
+
state: DesktopRuntimeState;
|
|
106
|
+
title?: string | null;
|
|
107
|
+
updatedAt?: string;
|
|
108
|
+
url?: string | null;
|
|
109
|
+
windowVisible?: boolean;
|
|
110
|
+
};
|
|
111
|
+
export type DesktopEvalInput = {
|
|
112
|
+
expression: string;
|
|
113
|
+
};
|
|
114
|
+
export type DesktopEvalResult = {
|
|
115
|
+
error?: string;
|
|
116
|
+
ok: boolean;
|
|
117
|
+
value?: unknown;
|
|
118
|
+
};
|
|
119
|
+
export type DesktopScreenshotInput = {
|
|
120
|
+
path: string;
|
|
121
|
+
};
|
|
122
|
+
export type DesktopScreenshotResult = {
|
|
123
|
+
path: string;
|
|
124
|
+
};
|
|
125
|
+
export type DesktopConsoleEntry = {
|
|
126
|
+
level: string;
|
|
127
|
+
text: string;
|
|
128
|
+
timestamp: string;
|
|
129
|
+
};
|
|
130
|
+
export type DesktopConsoleResult = {
|
|
131
|
+
entries: DesktopConsoleEntry[];
|
|
132
|
+
};
|
|
133
|
+
export type DesktopClickInput = {
|
|
134
|
+
selector: string;
|
|
135
|
+
};
|
|
136
|
+
export type DesktopClickResult = {
|
|
137
|
+
clicked: boolean;
|
|
138
|
+
found: boolean;
|
|
139
|
+
};
|
|
140
|
+
export type DesktopExportPdfInput = {
|
|
141
|
+
baseHref?: string;
|
|
142
|
+
deck: boolean;
|
|
143
|
+
defaultFilename: string;
|
|
144
|
+
html: string;
|
|
145
|
+
title: string;
|
|
146
|
+
};
|
|
147
|
+
export type DesktopExportPdfResult = {
|
|
148
|
+
canceled?: boolean;
|
|
149
|
+
error?: string;
|
|
150
|
+
ok: boolean;
|
|
151
|
+
path?: string;
|
|
152
|
+
};
|
|
153
|
+
export type SidecarStatusMessage = {
|
|
154
|
+
type: typeof SIDECAR_MESSAGES.STATUS;
|
|
155
|
+
};
|
|
156
|
+
export type SidecarShutdownMessage = {
|
|
157
|
+
type: typeof SIDECAR_MESSAGES.SHUTDOWN;
|
|
158
|
+
};
|
|
159
|
+
export type DesktopEvalMessage = {
|
|
160
|
+
input: DesktopEvalInput;
|
|
161
|
+
type: typeof SIDECAR_MESSAGES.EVAL;
|
|
162
|
+
};
|
|
163
|
+
export type DesktopScreenshotMessage = {
|
|
164
|
+
input: DesktopScreenshotInput;
|
|
165
|
+
type: typeof SIDECAR_MESSAGES.SCREENSHOT;
|
|
166
|
+
};
|
|
167
|
+
export type DesktopConsoleMessage = {
|
|
168
|
+
type: typeof SIDECAR_MESSAGES.CONSOLE;
|
|
169
|
+
};
|
|
170
|
+
export type DesktopClickMessage = {
|
|
171
|
+
input: DesktopClickInput;
|
|
172
|
+
type: typeof SIDECAR_MESSAGES.CLICK;
|
|
173
|
+
};
|
|
174
|
+
export type DesktopExportPdfMessage = {
|
|
175
|
+
input: DesktopExportPdfInput;
|
|
176
|
+
type: typeof SIDECAR_MESSAGES.EXPORT_PDF;
|
|
177
|
+
};
|
|
178
|
+
export type RegisterDesktopAuthInput = {
|
|
179
|
+
secret: string;
|
|
180
|
+
};
|
|
181
|
+
export type RegisterDesktopAuthMessage = {
|
|
182
|
+
input: RegisterDesktopAuthInput;
|
|
183
|
+
type: typeof SIDECAR_MESSAGES.REGISTER_DESKTOP_AUTH;
|
|
184
|
+
};
|
|
185
|
+
export type RegisterDesktopAuthResult = {
|
|
186
|
+
accepted: true;
|
|
187
|
+
};
|
|
188
|
+
export type DaemonSidecarMessage = SidecarStatusMessage | SidecarShutdownMessage | RegisterDesktopAuthMessage;
|
|
189
|
+
export type WebSidecarMessage = SidecarStatusMessage | SidecarShutdownMessage;
|
|
190
|
+
export type DesktopSidecarMessage = SidecarStatusMessage | SidecarShutdownMessage | DesktopEvalMessage | DesktopScreenshotMessage | DesktopConsoleMessage | DesktopClickMessage | DesktopExportPdfMessage;
|
|
191
|
+
export type ShutdownResult = {
|
|
192
|
+
accepted: true;
|
|
193
|
+
};
|
|
194
|
+
export type SidecarStamp = {
|
|
195
|
+
app: AppKey;
|
|
196
|
+
ipc: string;
|
|
197
|
+
mode: SidecarMode;
|
|
198
|
+
namespace: string;
|
|
199
|
+
source: SidecarSource;
|
|
200
|
+
};
|
|
201
|
+
export type SidecarStampInput = Partial<Record<(typeof SIDECAR_STAMP_FIELDS)[number], unknown>>;
|
|
202
|
+
export type SidecarStampCriteria = Partial<SidecarStamp>;
|
|
203
|
+
export type OpenDesignSidecarContract = {
|
|
204
|
+
appKeys: typeof APP_KEYS;
|
|
205
|
+
defaults: typeof SIDECAR_DEFAULTS;
|
|
206
|
+
env: typeof SIDECAR_RUNTIME_ENV;
|
|
207
|
+
errorCodes: typeof SIDECAR_ERROR_CODES;
|
|
208
|
+
messages: typeof SIDECAR_MESSAGES;
|
|
209
|
+
modes: typeof SIDECAR_MODES;
|
|
210
|
+
normalizeApp: typeof normalizeAppKey;
|
|
211
|
+
normalizeNamespace: typeof normalizeNamespace;
|
|
212
|
+
normalizeSource: typeof normalizeSidecarSource;
|
|
213
|
+
normalizeStamp: typeof normalizeSidecarStamp;
|
|
214
|
+
normalizeStampCriteria: typeof normalizeSidecarStampCriteria;
|
|
215
|
+
sources: typeof SIDECAR_SOURCES;
|
|
216
|
+
stampFields: typeof SIDECAR_STAMP_FIELDS;
|
|
217
|
+
stampFlags: typeof SIDECAR_STAMP_FLAGS;
|
|
218
|
+
};
|
|
219
|
+
export declare function normalizeNamespace(namespace: unknown): string;
|
|
220
|
+
export declare function isSidecarMode(value: unknown): value is SidecarMode;
|
|
221
|
+
export declare function normalizeSidecarMode(mode: unknown): SidecarMode;
|
|
222
|
+
export declare function isAppKey(value: unknown): value is AppKey;
|
|
223
|
+
export declare function normalizeAppKey(app: unknown): AppKey;
|
|
224
|
+
export declare function isSidecarSource(value: unknown): value is SidecarSource;
|
|
225
|
+
export declare function normalizeSidecarSource(source: unknown): SidecarSource;
|
|
226
|
+
export declare function isWindowsNamedPipePath(value: unknown): boolean;
|
|
227
|
+
export declare function normalizeIpcPath(ipc: unknown): string;
|
|
228
|
+
export declare function normalizeSidecarStamp(input: unknown): SidecarStamp;
|
|
229
|
+
export declare function normalizeSidecarStampCriteria(input?: unknown): SidecarStampCriteria;
|
|
230
|
+
export declare function assertSidecarStamp(input: unknown): asserts input is SidecarStamp;
|
|
231
|
+
export declare function normalizeDaemonSidecarMessage(input: unknown): DaemonSidecarMessage;
|
|
232
|
+
export declare function normalizeWebSidecarMessage(input: unknown): WebSidecarMessage;
|
|
233
|
+
export declare function normalizeDesktopSidecarMessage(input: unknown): DesktopSidecarMessage;
|
|
234
|
+
export declare const OPEN_DESIGN_SIDECAR_CONTRACT: Readonly<{
|
|
235
|
+
readonly appKeys: Readonly<{
|
|
236
|
+
readonly DAEMON: "daemon";
|
|
237
|
+
readonly DESKTOP: "desktop";
|
|
238
|
+
readonly WEB: "web";
|
|
239
|
+
}>;
|
|
240
|
+
readonly defaults: Readonly<{
|
|
241
|
+
readonly host: "127.0.0.1";
|
|
242
|
+
readonly ipcBase: "/tmp/open-design/ipc";
|
|
243
|
+
readonly namespace: "default";
|
|
244
|
+
readonly projectTmpDirName: ".tmp";
|
|
245
|
+
readonly windowsPipePrefix: "open-design";
|
|
246
|
+
}>;
|
|
247
|
+
readonly env: Readonly<{
|
|
248
|
+
readonly base: "OD_SIDECAR_BASE";
|
|
249
|
+
readonly ipcBase: "OD_SIDECAR_IPC_BASE";
|
|
250
|
+
readonly ipcPath: "OD_SIDECAR_IPC_PATH";
|
|
251
|
+
readonly namespace: "OD_SIDECAR_NAMESPACE";
|
|
252
|
+
readonly source: "OD_SIDECAR_SOURCE";
|
|
253
|
+
}>;
|
|
254
|
+
readonly errorCodes: Readonly<{
|
|
255
|
+
readonly INVALID_MESSAGE: "SIDECAR_INVALID_MESSAGE";
|
|
256
|
+
readonly UNKNOWN_MESSAGE: "SIDECAR_UNKNOWN_MESSAGE";
|
|
257
|
+
}>;
|
|
258
|
+
readonly messages: Readonly<{
|
|
259
|
+
readonly CLICK: "click";
|
|
260
|
+
readonly CONSOLE: "console";
|
|
261
|
+
readonly EVAL: "eval";
|
|
262
|
+
readonly EXPORT_PDF: "export-pdf";
|
|
263
|
+
readonly REGISTER_DESKTOP_AUTH: "register-desktop-auth";
|
|
264
|
+
readonly SCREENSHOT: "screenshot";
|
|
265
|
+
readonly SHUTDOWN: "shutdown";
|
|
266
|
+
readonly STATUS: "status";
|
|
267
|
+
}>;
|
|
268
|
+
readonly modes: Readonly<{
|
|
269
|
+
readonly DEV: "dev";
|
|
270
|
+
readonly RUNTIME: "runtime";
|
|
271
|
+
}>;
|
|
272
|
+
readonly normalizeApp: typeof normalizeAppKey;
|
|
273
|
+
readonly normalizeNamespace: typeof normalizeNamespace;
|
|
274
|
+
readonly normalizeSource: typeof normalizeSidecarSource;
|
|
275
|
+
readonly normalizeStamp: typeof normalizeSidecarStamp;
|
|
276
|
+
readonly normalizeStampCriteria: typeof normalizeSidecarStampCriteria;
|
|
277
|
+
readonly sources: Readonly<{
|
|
278
|
+
readonly PACKAGED: "packaged";
|
|
279
|
+
readonly TOOLS_DEV: "tools-dev";
|
|
280
|
+
readonly TOOLS_PACK: "tools-pack";
|
|
281
|
+
}>;
|
|
282
|
+
readonly stampFields: readonly ["app", "mode", "namespace", "ipc", "source"];
|
|
283
|
+
readonly stampFlags: Readonly<{
|
|
284
|
+
readonly app: "--od-stamp-app";
|
|
285
|
+
readonly ipc: "--od-stamp-ipc";
|
|
286
|
+
readonly mode: "--od-stamp-mode";
|
|
287
|
+
readonly namespace: "--od-stamp-namespace";
|
|
288
|
+
readonly source: "--od-stamp-source";
|
|
289
|
+
}>;
|
|
290
|
+
}>;
|
|
291
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;EAIV,CAAC;AAEZ,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC;AAE9D,eAAO,MAAM,aAAa;;;EAGf,CAAC;AAEZ,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE7E,eAAO,MAAM,eAAe;;;;EAIjB,CAAC;AAEZ,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEnF,eAAO,MAAM,WAAW;;;;;;;;;;;;EAYb,CAA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CAQ5E;AAED,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,OAAO,GAAG,qBAAqB,CAwBpF;AAED,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAeM,CAAC"}
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
var APP_KEYS = Object.freeze({
|
|
3
|
+
DAEMON: "daemon",
|
|
4
|
+
DESKTOP: "desktop",
|
|
5
|
+
WEB: "web"
|
|
6
|
+
});
|
|
7
|
+
var SIDECAR_MODES = Object.freeze({
|
|
8
|
+
DEV: "dev",
|
|
9
|
+
RUNTIME: "runtime"
|
|
10
|
+
});
|
|
11
|
+
var SIDECAR_SOURCES = Object.freeze({
|
|
12
|
+
PACKAGED: "packaged",
|
|
13
|
+
TOOLS_DEV: "tools-dev",
|
|
14
|
+
TOOLS_PACK: "tools-pack"
|
|
15
|
+
});
|
|
16
|
+
var SIDECAR_ENV = Object.freeze({
|
|
17
|
+
BASE: "OD_SIDECAR_BASE",
|
|
18
|
+
DAEMON_CLI_PATH: "OD_DAEMON_CLI_PATH",
|
|
19
|
+
DAEMON_PORT: "OD_PORT",
|
|
20
|
+
IPC_BASE: "OD_SIDECAR_IPC_BASE",
|
|
21
|
+
IPC_PATH: "OD_SIDECAR_IPC_PATH",
|
|
22
|
+
NAMESPACE: "OD_SIDECAR_NAMESPACE",
|
|
23
|
+
SOURCE: "OD_SIDECAR_SOURCE",
|
|
24
|
+
TOOLS_DEV_PARENT_PID: "OD_TOOLS_DEV_PARENT_PID",
|
|
25
|
+
WEB_DIST_DIR: "OD_WEB_DIST_DIR",
|
|
26
|
+
WEB_PORT: "OD_WEB_PORT",
|
|
27
|
+
WEB_TSCONFIG_PATH: "OD_WEB_TSCONFIG_PATH"
|
|
28
|
+
});
|
|
29
|
+
var SIDECAR_RUNTIME_ENV = Object.freeze({
|
|
30
|
+
base: SIDECAR_ENV.BASE,
|
|
31
|
+
ipcBase: SIDECAR_ENV.IPC_BASE,
|
|
32
|
+
ipcPath: SIDECAR_ENV.IPC_PATH,
|
|
33
|
+
namespace: SIDECAR_ENV.NAMESPACE,
|
|
34
|
+
source: SIDECAR_ENV.SOURCE
|
|
35
|
+
});
|
|
36
|
+
var SIDECAR_STAMP_FLAGS = Object.freeze({
|
|
37
|
+
app: "--od-stamp-app",
|
|
38
|
+
ipc: "--od-stamp-ipc",
|
|
39
|
+
mode: "--od-stamp-mode",
|
|
40
|
+
namespace: "--od-stamp-namespace",
|
|
41
|
+
source: "--od-stamp-source"
|
|
42
|
+
});
|
|
43
|
+
var STAMP_APP_FLAG = SIDECAR_STAMP_FLAGS.app;
|
|
44
|
+
var STAMP_IPC_FLAG = SIDECAR_STAMP_FLAGS.ipc;
|
|
45
|
+
var STAMP_MODE_FLAG = SIDECAR_STAMP_FLAGS.mode;
|
|
46
|
+
var STAMP_NAMESPACE_FLAG = SIDECAR_STAMP_FLAGS.namespace;
|
|
47
|
+
var STAMP_SOURCE_FLAG = SIDECAR_STAMP_FLAGS.source;
|
|
48
|
+
var SIDECAR_STAMP_FIELDS = ["app", "mode", "namespace", "ipc", "source"];
|
|
49
|
+
var SIDECAR_DEFAULTS = Object.freeze({
|
|
50
|
+
host: "127.0.0.1",
|
|
51
|
+
ipcBase: "/tmp/open-design/ipc",
|
|
52
|
+
namespace: "default",
|
|
53
|
+
projectTmpDirName: ".tmp",
|
|
54
|
+
windowsPipePrefix: "open-design"
|
|
55
|
+
});
|
|
56
|
+
var SIDECAR_MESSAGES = Object.freeze({
|
|
57
|
+
CLICK: "click",
|
|
58
|
+
CONSOLE: "console",
|
|
59
|
+
EVAL: "eval",
|
|
60
|
+
EXPORT_PDF: "export-pdf",
|
|
61
|
+
REGISTER_DESKTOP_AUTH: "register-desktop-auth",
|
|
62
|
+
SCREENSHOT: "screenshot",
|
|
63
|
+
SHUTDOWN: "shutdown",
|
|
64
|
+
STATUS: "status"
|
|
65
|
+
});
|
|
66
|
+
var SIDECAR_ERROR_CODES = Object.freeze({
|
|
67
|
+
INVALID_MESSAGE: "SIDECAR_INVALID_MESSAGE",
|
|
68
|
+
UNKNOWN_MESSAGE: "SIDECAR_UNKNOWN_MESSAGE"
|
|
69
|
+
});
|
|
70
|
+
var SidecarContractError = class extends Error {
|
|
71
|
+
code;
|
|
72
|
+
constructor(code, message) {
|
|
73
|
+
super(message);
|
|
74
|
+
this.name = "SidecarContractError";
|
|
75
|
+
this.code = code;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
function assertObject(value, label) {
|
|
79
|
+
if (typeof value !== "object" || value == null || Array.isArray(value)) {
|
|
80
|
+
throw new Error(`${label} must be an object`);
|
|
81
|
+
}
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
function assertKnownKeys(value, allowed, label) {
|
|
85
|
+
const allowedSet = new Set(allowed);
|
|
86
|
+
const unexpected = Object.keys(value).filter((key) => !allowedSet.has(key));
|
|
87
|
+
if (unexpected.length > 0) {
|
|
88
|
+
throw new Error(`${label} contains unsupported fields: ${unexpected.join(", ")}`);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function normalizeNonEmptyString(value, label) {
|
|
92
|
+
if (typeof value !== "string") throw new Error(`${label} must be a string`);
|
|
93
|
+
if (value.length === 0) throw new Error(`${label} must not be empty`);
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
function normalizeNamespace(namespace) {
|
|
97
|
+
if (typeof namespace !== "string") throw new Error("namespace must be a string");
|
|
98
|
+
const value = namespace.trim();
|
|
99
|
+
if (value.length === 0) throw new Error("namespace must not be empty");
|
|
100
|
+
if (value !== namespace) throw new Error("namespace must not contain leading or trailing whitespace");
|
|
101
|
+
if (!/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/.test(value)) {
|
|
102
|
+
throw new Error(`namespace contains unsupported characters: ${value}`);
|
|
103
|
+
}
|
|
104
|
+
if (/[\\/]/.test(value)) throw new Error(`namespace must not contain path separators: ${value}`);
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
function isSidecarMode(value) {
|
|
108
|
+
return Object.values(SIDECAR_MODES).includes(value);
|
|
109
|
+
}
|
|
110
|
+
function normalizeSidecarMode(mode) {
|
|
111
|
+
if (!isSidecarMode(mode)) {
|
|
112
|
+
throw new Error("sidecar mode must be dev or runtime");
|
|
113
|
+
}
|
|
114
|
+
return mode;
|
|
115
|
+
}
|
|
116
|
+
function isAppKey(value) {
|
|
117
|
+
return Object.values(APP_KEYS).includes(value);
|
|
118
|
+
}
|
|
119
|
+
function normalizeAppKey(app) {
|
|
120
|
+
if (!isAppKey(app)) throw new Error(`unsupported sidecar app: ${String(app)}`);
|
|
121
|
+
return app;
|
|
122
|
+
}
|
|
123
|
+
function isSidecarSource(value) {
|
|
124
|
+
return Object.values(SIDECAR_SOURCES).includes(value);
|
|
125
|
+
}
|
|
126
|
+
function normalizeSidecarSource(source) {
|
|
127
|
+
if (!isSidecarSource(source)) {
|
|
128
|
+
throw new Error(`unsupported sidecar source: ${String(source)}`);
|
|
129
|
+
}
|
|
130
|
+
return source;
|
|
131
|
+
}
|
|
132
|
+
function isWindowsNamedPipePath(value) {
|
|
133
|
+
return typeof value === "string" && value.startsWith("\\\\.\\pipe\\");
|
|
134
|
+
}
|
|
135
|
+
function normalizeIpcPath(ipc) {
|
|
136
|
+
if (typeof ipc !== "string") throw new Error("sidecar ipc path must be a string");
|
|
137
|
+
if (ipc.length === 0) throw new Error("sidecar ipc path must not be empty");
|
|
138
|
+
if (ipc.trim() !== ipc) throw new Error("sidecar ipc path must not contain leading or trailing whitespace");
|
|
139
|
+
if (ipc.includes("\0")) throw new Error("sidecar ipc path must not contain null bytes");
|
|
140
|
+
if (isWindowsNamedPipePath(ipc)) return ipc;
|
|
141
|
+
if (!ipc.startsWith("/") && !/^[A-Za-z]:[\\/]/.test(ipc)) {
|
|
142
|
+
throw new Error(`sidecar ipc path must be absolute: ${ipc}`);
|
|
143
|
+
}
|
|
144
|
+
return ipc;
|
|
145
|
+
}
|
|
146
|
+
function assertKnownStampKeys(value, label) {
|
|
147
|
+
assertKnownKeys(value, SIDECAR_STAMP_FIELDS, label);
|
|
148
|
+
}
|
|
149
|
+
function normalizeSidecarStamp(input) {
|
|
150
|
+
const value = assertObject(input, "sidecar stamp");
|
|
151
|
+
assertKnownStampKeys(value, "sidecar stamp");
|
|
152
|
+
return {
|
|
153
|
+
app: normalizeAppKey(value.app),
|
|
154
|
+
ipc: normalizeIpcPath(value.ipc),
|
|
155
|
+
mode: normalizeSidecarMode(value.mode),
|
|
156
|
+
namespace: normalizeNamespace(value.namespace),
|
|
157
|
+
source: normalizeSidecarSource(value.source)
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
function normalizeSidecarStampCriteria(input = {}) {
|
|
161
|
+
const value = assertObject(input, "sidecar stamp criteria");
|
|
162
|
+
assertKnownStampKeys(value, "sidecar stamp criteria");
|
|
163
|
+
return {
|
|
164
|
+
...value.app == null ? {} : { app: normalizeAppKey(value.app) },
|
|
165
|
+
...value.ipc == null ? {} : { ipc: normalizeIpcPath(value.ipc) },
|
|
166
|
+
...value.mode == null ? {} : { mode: normalizeSidecarMode(value.mode) },
|
|
167
|
+
...value.namespace == null ? {} : { namespace: normalizeNamespace(value.namespace) },
|
|
168
|
+
...value.source == null ? {} : { source: normalizeSidecarSource(value.source) }
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
function assertSidecarStamp(input) {
|
|
172
|
+
normalizeSidecarStamp(input);
|
|
173
|
+
}
|
|
174
|
+
function normalizeDesktopEvalInput(input) {
|
|
175
|
+
const value = assertObject(input, "desktop eval input");
|
|
176
|
+
assertKnownKeys(value, ["expression"], "desktop eval input");
|
|
177
|
+
return { expression: normalizeNonEmptyString(value.expression, "desktop eval expression") };
|
|
178
|
+
}
|
|
179
|
+
function normalizeDesktopScreenshotInput(input) {
|
|
180
|
+
const value = assertObject(input, "desktop screenshot input");
|
|
181
|
+
assertKnownKeys(value, ["path"], "desktop screenshot input");
|
|
182
|
+
return { path: normalizeNonEmptyString(value.path, "desktop screenshot path") };
|
|
183
|
+
}
|
|
184
|
+
function normalizeDesktopClickInput(input) {
|
|
185
|
+
const value = assertObject(input, "desktop click input");
|
|
186
|
+
assertKnownKeys(value, ["selector"], "desktop click input");
|
|
187
|
+
return { selector: normalizeNonEmptyString(value.selector, "desktop click selector") };
|
|
188
|
+
}
|
|
189
|
+
function normalizeRegisterDesktopAuthInput(input) {
|
|
190
|
+
const value = assertObject(input, "register-desktop-auth input");
|
|
191
|
+
assertKnownKeys(value, ["secret"], "register-desktop-auth input");
|
|
192
|
+
const secret = normalizeNonEmptyString(value.secret, "register-desktop-auth secret");
|
|
193
|
+
if (!/^[A-Za-z0-9+/_=-]+$/.test(secret)) {
|
|
194
|
+
throw new Error("register-desktop-auth secret must be base64-encoded");
|
|
195
|
+
}
|
|
196
|
+
return { secret };
|
|
197
|
+
}
|
|
198
|
+
function normalizeBoolean(value, label) {
|
|
199
|
+
if (typeof value !== "boolean") throw new Error(`${label} must be a boolean`);
|
|
200
|
+
return value;
|
|
201
|
+
}
|
|
202
|
+
function normalizeDesktopExportPdfInput(input) {
|
|
203
|
+
const value = assertObject(input, "desktop PDF export input");
|
|
204
|
+
assertKnownKeys(value, ["baseHref", "deck", "defaultFilename", "html", "title"], "desktop PDF export input");
|
|
205
|
+
return {
|
|
206
|
+
...value.baseHref == null ? {} : { baseHref: normalizeNonEmptyString(value.baseHref, "desktop PDF export baseHref") },
|
|
207
|
+
deck: normalizeBoolean(value.deck, "desktop PDF export deck"),
|
|
208
|
+
defaultFilename: normalizeNonEmptyString(value.defaultFilename, "desktop PDF export defaultFilename"),
|
|
209
|
+
html: normalizeNonEmptyString(value.html, "desktop PDF export html"),
|
|
210
|
+
title: normalizeNonEmptyString(value.title, "desktop PDF export title")
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
function normalizeMessageType(value, label) {
|
|
214
|
+
if (typeof value !== "string" || value.length === 0) {
|
|
215
|
+
throw new SidecarContractError(SIDECAR_ERROR_CODES.INVALID_MESSAGE, `${label} type must be a non-empty string`);
|
|
216
|
+
}
|
|
217
|
+
return value;
|
|
218
|
+
}
|
|
219
|
+
function normalizeDaemonSidecarMessage(input) {
|
|
220
|
+
const value = assertObject(input, "daemon sidecar message");
|
|
221
|
+
const type = normalizeMessageType(value.type, "daemon sidecar message");
|
|
222
|
+
if (type === SIDECAR_MESSAGES.STATUS || type === SIDECAR_MESSAGES.SHUTDOWN) {
|
|
223
|
+
assertKnownKeys(value, ["type"], "daemon sidecar message");
|
|
224
|
+
return { type };
|
|
225
|
+
}
|
|
226
|
+
if (type === SIDECAR_MESSAGES.REGISTER_DESKTOP_AUTH) {
|
|
227
|
+
assertKnownKeys(value, ["input", "type"], "daemon sidecar message");
|
|
228
|
+
return { input: normalizeRegisterDesktopAuthInput(value.input), type };
|
|
229
|
+
}
|
|
230
|
+
throw new SidecarContractError(SIDECAR_ERROR_CODES.UNKNOWN_MESSAGE, `unknown daemon sidecar message: ${type}`);
|
|
231
|
+
}
|
|
232
|
+
function normalizeWebSidecarMessage(input) {
|
|
233
|
+
const value = assertObject(input, "web sidecar message");
|
|
234
|
+
const type = normalizeMessageType(value.type, "web sidecar message");
|
|
235
|
+
if (type === SIDECAR_MESSAGES.STATUS || type === SIDECAR_MESSAGES.SHUTDOWN) {
|
|
236
|
+
assertKnownKeys(value, ["type"], "web sidecar message");
|
|
237
|
+
return { type };
|
|
238
|
+
}
|
|
239
|
+
throw new SidecarContractError(SIDECAR_ERROR_CODES.UNKNOWN_MESSAGE, `unknown web sidecar message: ${type}`);
|
|
240
|
+
}
|
|
241
|
+
function normalizeDesktopSidecarMessage(input) {
|
|
242
|
+
const value = assertObject(input, "desktop sidecar message");
|
|
243
|
+
const type = normalizeMessageType(value.type, "desktop sidecar message");
|
|
244
|
+
switch (type) {
|
|
245
|
+
case SIDECAR_MESSAGES.STATUS:
|
|
246
|
+
case SIDECAR_MESSAGES.SHUTDOWN:
|
|
247
|
+
case SIDECAR_MESSAGES.CONSOLE:
|
|
248
|
+
assertKnownKeys(value, ["type"], "desktop sidecar message");
|
|
249
|
+
return { type };
|
|
250
|
+
case SIDECAR_MESSAGES.EVAL:
|
|
251
|
+
assertKnownKeys(value, ["input", "type"], "desktop sidecar message");
|
|
252
|
+
return { input: normalizeDesktopEvalInput(value.input), type };
|
|
253
|
+
case SIDECAR_MESSAGES.SCREENSHOT:
|
|
254
|
+
assertKnownKeys(value, ["input", "type"], "desktop sidecar message");
|
|
255
|
+
return { input: normalizeDesktopScreenshotInput(value.input), type };
|
|
256
|
+
case SIDECAR_MESSAGES.CLICK:
|
|
257
|
+
assertKnownKeys(value, ["input", "type"], "desktop sidecar message");
|
|
258
|
+
return { input: normalizeDesktopClickInput(value.input), type };
|
|
259
|
+
case SIDECAR_MESSAGES.EXPORT_PDF:
|
|
260
|
+
assertKnownKeys(value, ["input", "type"], "desktop sidecar message");
|
|
261
|
+
return { input: normalizeDesktopExportPdfInput(value.input), type };
|
|
262
|
+
default:
|
|
263
|
+
throw new SidecarContractError(SIDECAR_ERROR_CODES.UNKNOWN_MESSAGE, `unknown desktop sidecar message: ${type}`);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
var OPEN_DESIGN_SIDECAR_CONTRACT = Object.freeze({
|
|
267
|
+
appKeys: APP_KEYS,
|
|
268
|
+
defaults: SIDECAR_DEFAULTS,
|
|
269
|
+
env: SIDECAR_RUNTIME_ENV,
|
|
270
|
+
errorCodes: SIDECAR_ERROR_CODES,
|
|
271
|
+
messages: SIDECAR_MESSAGES,
|
|
272
|
+
modes: SIDECAR_MODES,
|
|
273
|
+
normalizeApp: normalizeAppKey,
|
|
274
|
+
normalizeNamespace,
|
|
275
|
+
normalizeSource: normalizeSidecarSource,
|
|
276
|
+
normalizeStamp: normalizeSidecarStamp,
|
|
277
|
+
normalizeStampCriteria: normalizeSidecarStampCriteria,
|
|
278
|
+
sources: SIDECAR_SOURCES,
|
|
279
|
+
stampFields: SIDECAR_STAMP_FIELDS,
|
|
280
|
+
stampFlags: SIDECAR_STAMP_FLAGS
|
|
281
|
+
});
|
|
282
|
+
export {
|
|
283
|
+
APP_KEYS,
|
|
284
|
+
OPEN_DESIGN_SIDECAR_CONTRACT,
|
|
285
|
+
SIDECAR_DEFAULTS,
|
|
286
|
+
SIDECAR_ENV,
|
|
287
|
+
SIDECAR_ERROR_CODES,
|
|
288
|
+
SIDECAR_MESSAGES,
|
|
289
|
+
SIDECAR_MODES,
|
|
290
|
+
SIDECAR_RUNTIME_ENV,
|
|
291
|
+
SIDECAR_SOURCES,
|
|
292
|
+
SIDECAR_STAMP_FIELDS,
|
|
293
|
+
SIDECAR_STAMP_FLAGS,
|
|
294
|
+
STAMP_APP_FLAG,
|
|
295
|
+
STAMP_IPC_FLAG,
|
|
296
|
+
STAMP_MODE_FLAG,
|
|
297
|
+
STAMP_NAMESPACE_FLAG,
|
|
298
|
+
STAMP_SOURCE_FLAG,
|
|
299
|
+
SidecarContractError,
|
|
300
|
+
assertSidecarStamp,
|
|
301
|
+
isAppKey,
|
|
302
|
+
isSidecarMode,
|
|
303
|
+
isSidecarSource,
|
|
304
|
+
isWindowsNamedPipePath,
|
|
305
|
+
normalizeAppKey,
|
|
306
|
+
normalizeDaemonSidecarMessage,
|
|
307
|
+
normalizeDesktopSidecarMessage,
|
|
308
|
+
normalizeIpcPath,
|
|
309
|
+
normalizeNamespace,
|
|
310
|
+
normalizeSidecarMode,
|
|
311
|
+
normalizeSidecarSource,
|
|
312
|
+
normalizeSidecarStamp,
|
|
313
|
+
normalizeSidecarStampCriteria,
|
|
314
|
+
normalizeWebSidecarMessage
|
|
315
|
+
};
|
|
@@ -9,7 +9,7 @@ a:I[69918,["./_next/static/chunks/0axqck9-llseo.js","./_next/static/chunks/0xykz
|
|
|
9
9
|
c:I[69918,["./_next/static/chunks/0axqck9-llseo.js","./_next/static/chunks/0xykzmwq7w9.b.js","./_next/static/chunks/13.bzhieaq182.js"],"MetadataBoundary"]
|
|
10
10
|
e:I[23091,["./_next/static/chunks/0axqck9-llseo.js","./_next/static/chunks/0xykzmwq7w9.b.js","./_next/static/chunks/13.bzhieaq182.js"],"default",1]
|
|
11
11
|
:HL["./_next/static/chunks/0~_k3q5_py.u5.css","style"]
|
|
12
|
-
0:{"P":null,"c":["","_not-found",""],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/0~_k3q5_py.u5.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"./_next/static/chunks/0axqck9-llseo.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"./_next/static/chunks/0xykzmwq7w9.b.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"./_next/static/chunks/13.bzhieaq182.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var c=JSON.parse(localStorage.getItem('open-design:config')||'{}');var t=c.theme;if(t==='light'||t==='dark')document.documentElement.setAttribute('data-theme',t);var a=typeof c.accentColor==='string'&&/^#[0-9a-fA-F]{6}$/.test(c.accentColor.trim())?c.accentColor.trim().toLowerCase():'#c96442';var s=document.documentElement.style;s.setProperty('--accent',a);s.setProperty('--accent-strong','color-mix(in srgb, '+a+' 86%, var(--text-strong))');s.setProperty('--accent-soft','color-mix(in srgb, '+a+' 22%, var(--bg-panel))');s.setProperty('--accent-tint','color-mix(in srgb, '+a+' 12%, var(--bg-panel))');s.setProperty('--accent-hover','color-mix(in srgb, '+a+' 90%, var(--text-strong))');}catch(e){}})();"}}]}],["$","body",null,{"suppressHydrationWarning":true,"children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],{},null,false,null]},null,false,"$@9"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$La",null,{"children":"$Lb"}],["$","div",null,{"hidden":true,"children":["$","$Lc",null,{"children":["$","$7",null,{"name":"Next.Metadata","children":"$Ld"}]}]}],null]}],false]],"m":"$undefined","G":["$e",[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/0~_k3q5_py.u5.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"
|
|
12
|
+
0:{"P":null,"c":["","_not-found",""],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/0~_k3q5_py.u5.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"./_next/static/chunks/0axqck9-llseo.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"./_next/static/chunks/0xykzmwq7w9.b.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"./_next/static/chunks/13.bzhieaq182.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){try{var c=JSON.parse(localStorage.getItem('open-design:config')||'{}');var t=c.theme;if(t==='light'||t==='dark')document.documentElement.setAttribute('data-theme',t);var a=typeof c.accentColor==='string'&&/^#[0-9a-fA-F]{6}$/.test(c.accentColor.trim())?c.accentColor.trim().toLowerCase():'#c96442';var s=document.documentElement.style;s.setProperty('--accent',a);s.setProperty('--accent-strong','color-mix(in srgb, '+a+' 86%, var(--text-strong))');s.setProperty('--accent-soft','color-mix(in srgb, '+a+' 22%, var(--bg-panel))');s.setProperty('--accent-tint','color-mix(in srgb, '+a+' 12%, var(--bg-panel))');s.setProperty('--accent-hover','color-mix(in srgb, '+a+' 90%, var(--text-strong))');}catch(e){}})();"}}]}],["$","body",null,{"suppressHydrationWarning":true,"children":["$","$L2",null,{"children":["$","$L3",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],{},null,false,null]},null,false,"$@9"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$La",null,{"children":"$Lb"}],["$","div",null,{"hidden":true,"children":["$","$Lc",null,{"children":["$","$7",null,{"name":"Next.Metadata","children":"$Ld"}]}]}],null]}],false]],"m":"$undefined","G":["$e",[["$","link","0",{"rel":"stylesheet","href":"./_next/static/chunks/0~_k3q5_py.u5.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"klz1-InlKPyMqk6_5sLYV"}
|
|
13
13
|
f:[]
|
|
14
14
|
9:"$Wf"
|
|
15
15
|
b:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#F4EFE6"}]]
|