@vibesdotdev/vessel 0.0.0-stage → 1.0.0-rc.2
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 +18 -0
- package/README.md +90 -2
- package/dist/apps/filesystem.vessel.plugin.d.ts +307 -0
- package/dist/apps/filesystem.vessel.plugin.d.ts.map +1 -0
- package/dist/apps/filesystem.vessel.plugin.js +134 -0
- package/dist/apps/filesystem.vessel.plugin.js.map +1 -0
- package/dist/apps/storage.vessel.plugin.d.ts +318 -0
- package/dist/apps/storage.vessel.plugin.d.ts.map +1 -0
- package/dist/apps/storage.vessel.plugin.js +132 -0
- package/dist/apps/storage.vessel.plugin.js.map +1 -0
- package/dist/apps/terminal.vessel.plugin.d.ts +306 -0
- package/dist/apps/terminal.vessel.plugin.d.ts.map +1 -0
- package/dist/apps/terminal.vessel.plugin.js +112 -0
- package/dist/apps/terminal.vessel.plugin.js.map +1 -0
- package/dist/boundary.d.ts +10 -0
- package/dist/boundary.d.ts.map +1 -0
- package/dist/boundary.js +43 -0
- package/dist/boundary.js.map +1 -0
- package/dist/client/helper.d.ts +4 -0
- package/dist/client/helper.d.ts.map +1 -0
- package/dist/client/helper.js +5 -0
- package/dist/client/helper.js.map +1 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +3 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/vessel-client.d.ts +39 -0
- package/dist/client/vessel-client.d.ts.map +1 -0
- package/dist/client/vessel-client.js +101 -0
- package/dist/client/vessel-client.js.map +1 -0
- package/dist/docs/vessel.docs.descriptor.d.ts +4 -0
- package/dist/docs/vessel.docs.descriptor.d.ts.map +1 -0
- package/dist/docs/vessel.docs.descriptor.js +96 -0
- package/dist/docs/vessel.docs.descriptor.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/kinds.d.ts +24 -0
- package/dist/kinds.d.ts.map +1 -0
- package/dist/kinds.js +78 -0
- package/dist/kinds.js.map +1 -0
- package/dist/launch/cli/descriptor.d.ts +3 -0
- package/dist/launch/cli/descriptor.d.ts.map +1 -0
- package/dist/launch/cli/descriptor.js +24 -0
- package/dist/launch/cli/descriptor.js.map +1 -0
- package/dist/launch/cli/implementation.d.ts +7 -0
- package/dist/launch/cli/implementation.d.ts.map +1 -0
- package/dist/launch/cli/implementation.js +14 -0
- package/dist/launch/cli/implementation.js.map +1 -0
- package/dist/launch/cli/options.d.ts +10 -0
- package/dist/launch/cli/options.d.ts.map +1 -0
- package/dist/launch/cli/options.js +12 -0
- package/dist/launch/cli/options.js.map +1 -0
- package/dist/launch/cli/plugin.d.ts +4 -0
- package/dist/launch/cli/plugin.d.ts.map +1 -0
- package/dist/launch/cli/plugin.js +12 -0
- package/dist/launch/cli/plugin.js.map +1 -0
- package/dist/launch/cli/request.d.ts +23 -0
- package/dist/launch/cli/request.d.ts.map +1 -0
- package/dist/launch/cli/request.js +27 -0
- package/dist/launch/cli/request.js.map +1 -0
- package/dist/launch/ensure-host.d.ts +48 -0
- package/dist/launch/ensure-host.d.ts.map +1 -0
- package/dist/launch/ensure-host.js +54 -0
- package/dist/launch/ensure-host.js.map +1 -0
- package/dist/launch/index.d.ts +9 -0
- package/dist/launch/index.d.ts.map +1 -0
- package/dist/launch/index.js +52 -0
- package/dist/launch/index.js.map +1 -0
- package/dist/launch/plugin.d.ts +6 -0
- package/dist/launch/plugin.d.ts.map +1 -0
- package/dist/launch/plugin.js +20 -0
- package/dist/launch/plugin.js.map +1 -0
- package/dist/launch/schema.d.ts +66 -0
- package/dist/launch/schema.d.ts.map +1 -0
- package/dist/launch/schema.js +71 -0
- package/dist/launch/schema.js.map +1 -0
- package/dist/launch/workspaces.d.ts +134 -0
- package/dist/launch/workspaces.d.ts.map +1 -0
- package/dist/launch/workspaces.js +60 -0
- package/dist/launch/workspaces.js.map +1 -0
- package/dist/module-not-found.d.ts +3 -0
- package/dist/module-not-found.d.ts.map +1 -0
- package/dist/module-not-found.js +18 -0
- package/dist/module-not-found.js.map +1 -0
- package/dist/schemas/platform.config.descriptor.d.ts +34 -0
- package/dist/schemas/platform.config.descriptor.d.ts.map +1 -0
- package/dist/schemas/platform.config.descriptor.js +13 -0
- package/dist/schemas/platform.config.descriptor.js.map +1 -0
- package/dist/schemas.d.ts +2213 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +661 -0
- package/dist/schemas.js.map +1 -0
- package/dist/shell/app-surface.d.ts +55 -0
- package/dist/shell/app-surface.d.ts.map +1 -0
- package/dist/shell/app-surface.js +159 -0
- package/dist/shell/app-surface.js.map +1 -0
- package/dist/shell/dock.d.ts +30 -0
- package/dist/shell/dock.d.ts.map +1 -0
- package/dist/shell/dock.js +75 -0
- package/dist/shell/dock.js.map +1 -0
- package/dist/shell/index.d.ts +11 -0
- package/dist/shell/index.d.ts.map +1 -0
- package/dist/shell/index.js +10 -0
- package/dist/shell/index.js.map +1 -0
- package/dist/shell/launch-resolution.d.ts +49 -0
- package/dist/shell/launch-resolution.d.ts.map +1 -0
- package/dist/shell/launch-resolution.js +163 -0
- package/dist/shell/launch-resolution.js.map +1 -0
- package/dist/shell/layout-grid.d.ts +30 -0
- package/dist/shell/layout-grid.d.ts.map +1 -0
- package/dist/shell/layout-grid.js +56 -0
- package/dist/shell/layout-grid.js.map +1 -0
- package/dist/shell/owner-surface-lifecycle.d.ts +30 -0
- package/dist/shell/owner-surface-lifecycle.d.ts.map +1 -0
- package/dist/shell/owner-surface-lifecycle.js +54 -0
- package/dist/shell/owner-surface-lifecycle.js.map +1 -0
- package/dist/shell/ports.d.ts +107 -0
- package/dist/shell/ports.d.ts.map +1 -0
- package/dist/shell/ports.js +154 -0
- package/dist/shell/ports.js.map +1 -0
- package/dist/shell/types.d.ts +7 -0
- package/dist/shell/types.d.ts.map +1 -0
- package/dist/shell/types.js +2 -0
- package/dist/shell/types.js.map +1 -0
- package/dist/shell/window-manager.d.ts +82 -0
- package/dist/shell/window-manager.d.ts.map +1 -0
- package/dist/shell/window-manager.js +285 -0
- package/dist/shell/window-manager.js.map +1 -0
- package/dist/shell/workspace-memory.d.ts +42 -0
- package/dist/shell/workspace-memory.d.ts.map +1 -0
- package/dist/shell/workspace-memory.js +65 -0
- package/dist/shell/workspace-memory.js.map +1 -0
- package/dist/shell/workspace-state.d.ts +47 -0
- package/dist/shell/workspace-state.d.ts.map +1 -0
- package/dist/shell/workspace-state.js +137 -0
- package/dist/shell/workspace-state.js.map +1 -0
- package/dist/vessel.docs.plugin.d.ts +4 -0
- package/dist/vessel.docs.plugin.d.ts.map +1 -0
- package/dist/vessel.docs.plugin.js +11 -0
- package/dist/vessel.docs.plugin.js.map +1 -0
- package/dist/vessel.plugin.d.ts +3 -0
- package/dist/vessel.plugin.d.ts.map +1 -0
- package/dist/vessel.plugin.js +23 -0
- package/dist/vessel.plugin.js.map +1 -0
- package/dist/vessel.runtime-client.descriptor.d.ts +4 -0
- package/dist/vessel.runtime-client.descriptor.d.ts.map +1 -0
- package/dist/vessel.runtime-client.descriptor.js +13 -0
- package/dist/vessel.runtime-client.descriptor.js.map +1 -0
- package/dist/vessel.workspace-state.plugin.d.ts +4 -0
- package/dist/vessel.workspace-state.plugin.d.ts.map +1 -0
- package/dist/vessel.workspace-state.plugin.js +12 -0
- package/dist/vessel.workspace-state.plugin.js.map +1 -0
- package/dist/vessel.workspace.plugin.d.ts +3 -0
- package/dist/vessel.workspace.plugin.d.ts.map +1 -0
- package/dist/vessel.workspace.plugin.js +17 -0
- package/dist/vessel.workspace.plugin.js.map +1 -0
- package/dist/whiteboard/client.d.ts +35 -0
- package/dist/whiteboard/client.d.ts.map +1 -0
- package/dist/whiteboard/client.js +185 -0
- package/dist/whiteboard/client.js.map +1 -0
- package/dist/whiteboard/descriptor.d.ts +5 -0
- package/dist/whiteboard/descriptor.d.ts.map +1 -0
- package/dist/whiteboard/descriptor.js +14 -0
- package/dist/whiteboard/descriptor.js.map +1 -0
- package/dist/whiteboard/index.d.ts +7 -0
- package/dist/whiteboard/index.d.ts.map +1 -0
- package/dist/whiteboard/index.js +7 -0
- package/dist/whiteboard/index.js.map +1 -0
- package/dist/whiteboard/plugin.d.ts +3 -0
- package/dist/whiteboard/plugin.d.ts.map +1 -0
- package/dist/whiteboard/plugin.js +42 -0
- package/dist/whiteboard/plugin.js.map +1 -0
- package/dist/whiteboard/schemas.d.ts +479 -0
- package/dist/whiteboard/schemas.d.ts.map +1 -0
- package/dist/whiteboard/schemas.js +55 -0
- package/dist/whiteboard/schemas.js.map +1 -0
- package/dist/whiteboard/tools/apply.impl.d.ts +7 -0
- package/dist/whiteboard/tools/apply.impl.d.ts.map +1 -0
- package/dist/whiteboard/tools/apply.impl.js +12 -0
- package/dist/whiteboard/tools/apply.impl.js.map +1 -0
- package/dist/whiteboard/tools/descriptors.d.ts +489 -0
- package/dist/whiteboard/tools/descriptors.d.ts.map +1 -0
- package/dist/whiteboard/tools/descriptors.js +72 -0
- package/dist/whiteboard/tools/descriptors.js.map +1 -0
- package/dist/whiteboard/tools/get.impl.d.ts +7 -0
- package/dist/whiteboard/tools/get.impl.d.ts.map +1 -0
- package/dist/whiteboard/tools/get.impl.js +12 -0
- package/dist/whiteboard/tools/get.impl.js.map +1 -0
- package/dist/whiteboard/tools/open.impl.d.ts +7 -0
- package/dist/whiteboard/tools/open.impl.d.ts.map +1 -0
- package/dist/whiteboard/tools/open.impl.js +12 -0
- package/dist/whiteboard/tools/open.impl.js.map +1 -0
- package/dist/whiteboard/tools/signal.impl.d.ts +7 -0
- package/dist/whiteboard/tools/signal.impl.d.ts.map +1 -0
- package/dist/whiteboard/tools/signal.impl.js +11 -0
- package/dist/whiteboard/tools/signal.impl.js.map +1 -0
- package/dist/whiteboard/vessel-whiteboard.descriptors.d.ts +4 -0
- package/dist/whiteboard/vessel-whiteboard.descriptors.d.ts.map +1 -0
- package/dist/whiteboard/vessel-whiteboard.descriptors.js +61 -0
- package/dist/whiteboard/vessel-whiteboard.descriptors.js.map +1 -0
- package/dist/workspace/vessel-hub.descriptors.d.ts +543 -0
- package/dist/workspace/vessel-hub.descriptors.d.ts.map +1 -0
- package/dist/workspace/vessel-hub.descriptors.js +544 -0
- package/dist/workspace/vessel-hub.descriptors.js.map +1 -0
- package/dist/workspace/vessel-platform.descriptors.d.ts +809 -0
- package/dist/workspace/vessel-platform.descriptors.d.ts.map +1 -0
- package/dist/workspace/vessel-platform.descriptors.js +207 -0
- package/dist/workspace/vessel-platform.descriptors.js.map +1 -0
- package/dist/workspace/vessel-workspace.descriptors.d.ts +537 -0
- package/dist/workspace/vessel-workspace.descriptors.d.ts.map +1 -0
- package/dist/workspace/vessel-workspace.descriptors.js +115 -0
- package/dist/workspace/vessel-workspace.descriptors.js.map +1 -0
- package/dist/workspace-state/index.d.ts +3 -0
- package/dist/workspace-state/index.d.ts.map +1 -0
- package/dist/workspace-state/index.js +3 -0
- package/dist/workspace-state/index.js.map +1 -0
- package/dist/workspace-state/vessel.workspace-state.storage.descriptor.d.ts +51 -0
- package/dist/workspace-state/vessel.workspace-state.storage.descriptor.d.ts.map +1 -0
- package/dist/workspace-state/vessel.workspace-state.storage.descriptor.js +24 -0
- package/dist/workspace-state/vessel.workspace-state.storage.descriptor.js.map +1 -0
- package/package.json +207 -4
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
export declare const terminalWorkspaceVesselAppDescriptor: {
|
|
2
|
+
identity: {
|
|
3
|
+
glyph: string;
|
|
4
|
+
accent: "teal" | "amber" | "azure" | "blue" | "cyan" | "lime" | "rose" | "violet" | "neutral";
|
|
5
|
+
artworkId?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
id: string;
|
|
8
|
+
kind: "vessel/app";
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
owner: {
|
|
12
|
+
packageName: string;
|
|
13
|
+
entrypoint?: string | undefined;
|
|
14
|
+
specPath?: string | undefined;
|
|
15
|
+
runtimeKind?: string | undefined;
|
|
16
|
+
runtimeId?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
category: "agent" | "service" | "tool" | "runtime" | "app" | "feature" | "settings" | "docs" | "audit";
|
|
19
|
+
launch: {
|
|
20
|
+
type: "svelte-component";
|
|
21
|
+
import: string;
|
|
22
|
+
exportName?: string | undefined;
|
|
23
|
+
} | {
|
|
24
|
+
type: "vessel-surface";
|
|
25
|
+
surfaceId: string;
|
|
26
|
+
initialState?: Record<string, string | number | boolean | null> | undefined;
|
|
27
|
+
} | {
|
|
28
|
+
type: "sveltekit-route";
|
|
29
|
+
href: string;
|
|
30
|
+
} | {
|
|
31
|
+
type: "runtime-client";
|
|
32
|
+
clientId: string;
|
|
33
|
+
view: "default" | "inspector";
|
|
34
|
+
} | {
|
|
35
|
+
type: "tui-app";
|
|
36
|
+
route: string;
|
|
37
|
+
} | {
|
|
38
|
+
type: "tool";
|
|
39
|
+
toolId: string;
|
|
40
|
+
} | {
|
|
41
|
+
type: "config-manifest";
|
|
42
|
+
manifestId: string;
|
|
43
|
+
} | {
|
|
44
|
+
type: "docs-topic";
|
|
45
|
+
topicId: string;
|
|
46
|
+
} | {
|
|
47
|
+
type: "runtime-descriptor";
|
|
48
|
+
kind: string;
|
|
49
|
+
id: string;
|
|
50
|
+
} | {
|
|
51
|
+
type: "platform-component";
|
|
52
|
+
componentId: string;
|
|
53
|
+
version: string;
|
|
54
|
+
props: Record<string, unknown>;
|
|
55
|
+
origin?: string | undefined;
|
|
56
|
+
} | {
|
|
57
|
+
type: "applet-artifact";
|
|
58
|
+
artifactId: string;
|
|
59
|
+
browserRuntime: boolean;
|
|
60
|
+
componentRef?: {
|
|
61
|
+
id: string;
|
|
62
|
+
version: string;
|
|
63
|
+
props: Record<string, unknown>;
|
|
64
|
+
origin?: string | undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
} | {
|
|
67
|
+
type: "external-url";
|
|
68
|
+
href: string;
|
|
69
|
+
};
|
|
70
|
+
availability: {
|
|
71
|
+
status: "unknown" | "unavailable" | "available" | "degraded";
|
|
72
|
+
summary: string;
|
|
73
|
+
lastCheckedAt?: string | undefined;
|
|
74
|
+
};
|
|
75
|
+
defaultWindow: {
|
|
76
|
+
width: number;
|
|
77
|
+
height: number;
|
|
78
|
+
x: number;
|
|
79
|
+
y: number;
|
|
80
|
+
minWidth: number;
|
|
81
|
+
minHeight: number;
|
|
82
|
+
};
|
|
83
|
+
tags: string[];
|
|
84
|
+
workLocations: ("browser" | "cloud" | "computer" | "vessel")[];
|
|
85
|
+
readinessAreaIds: string[];
|
|
86
|
+
setupStepIds: string[];
|
|
87
|
+
hardware?: string[] | undefined;
|
|
88
|
+
enabled?: boolean | undefined;
|
|
89
|
+
priority?: number | undefined;
|
|
90
|
+
capabilityId?: string | undefined;
|
|
91
|
+
requiredContext?: string[] | undefined;
|
|
92
|
+
optionalContext?: string[] | undefined;
|
|
93
|
+
config?: unknown;
|
|
94
|
+
retention?: string | {
|
|
95
|
+
reason: string;
|
|
96
|
+
maxAgeDays?: number | undefined;
|
|
97
|
+
maxEntries?: number | undefined;
|
|
98
|
+
maxBytes?: number | undefined;
|
|
99
|
+
cascadeFrom?: string | undefined;
|
|
100
|
+
ageField?: string | undefined;
|
|
101
|
+
enforcedBy?: string | undefined;
|
|
102
|
+
} | undefined;
|
|
103
|
+
ports?: {
|
|
104
|
+
id: string;
|
|
105
|
+
label: string;
|
|
106
|
+
direction: "output" | "input";
|
|
107
|
+
schema: {
|
|
108
|
+
mediaType: string;
|
|
109
|
+
shape: "any" | "event" | "stream" | "json" | "text" | "binary";
|
|
110
|
+
schemaId?: string | undefined;
|
|
111
|
+
};
|
|
112
|
+
multiple: boolean;
|
|
113
|
+
required: boolean;
|
|
114
|
+
}[] | undefined;
|
|
115
|
+
};
|
|
116
|
+
export declare const terminalWorkspaceVesselReadinessDescriptor: {
|
|
117
|
+
id: string;
|
|
118
|
+
kind: "vessel/readiness-area";
|
|
119
|
+
label: string;
|
|
120
|
+
userPromise: string;
|
|
121
|
+
status: "unknown" | "ready" | "needs-setup" | "planned" | "blocked";
|
|
122
|
+
summary: string;
|
|
123
|
+
owner: {
|
|
124
|
+
packageName: string;
|
|
125
|
+
entrypoint?: string | undefined;
|
|
126
|
+
specPath?: string | undefined;
|
|
127
|
+
runtimeKind?: string | undefined;
|
|
128
|
+
runtimeId?: string | undefined;
|
|
129
|
+
};
|
|
130
|
+
targetKinds: string[];
|
|
131
|
+
evidence: ({
|
|
132
|
+
type: "runtime-query";
|
|
133
|
+
kind: string;
|
|
134
|
+
resultSummary: string;
|
|
135
|
+
id?: string | undefined;
|
|
136
|
+
} | {
|
|
137
|
+
type: "command";
|
|
138
|
+
cwd: string;
|
|
139
|
+
command: string;
|
|
140
|
+
exitCode: number;
|
|
141
|
+
summary: string;
|
|
142
|
+
} | {
|
|
143
|
+
type: "http";
|
|
144
|
+
method: string;
|
|
145
|
+
url: string;
|
|
146
|
+
status: number;
|
|
147
|
+
summary: string;
|
|
148
|
+
} | {
|
|
149
|
+
type: "screenshot";
|
|
150
|
+
path: string;
|
|
151
|
+
summary: string;
|
|
152
|
+
viewport?: string | undefined;
|
|
153
|
+
} | {
|
|
154
|
+
type: "source";
|
|
155
|
+
path: string;
|
|
156
|
+
summary: string;
|
|
157
|
+
line?: number | undefined;
|
|
158
|
+
} | {
|
|
159
|
+
type: "spec";
|
|
160
|
+
path: string;
|
|
161
|
+
summary: string;
|
|
162
|
+
heading?: string | undefined;
|
|
163
|
+
})[];
|
|
164
|
+
linkedFindingIds: string[];
|
|
165
|
+
upstreamWorkItemIds: string[];
|
|
166
|
+
proofGate: string;
|
|
167
|
+
name?: string | undefined;
|
|
168
|
+
description?: string | undefined;
|
|
169
|
+
tags?: string[] | undefined;
|
|
170
|
+
hardware?: string[] | undefined;
|
|
171
|
+
enabled?: boolean | undefined;
|
|
172
|
+
priority?: number | undefined;
|
|
173
|
+
capabilityId?: string | undefined;
|
|
174
|
+
requiredContext?: string[] | undefined;
|
|
175
|
+
optionalContext?: string[] | undefined;
|
|
176
|
+
config?: unknown;
|
|
177
|
+
retention?: string | {
|
|
178
|
+
reason: string;
|
|
179
|
+
maxAgeDays?: number | undefined;
|
|
180
|
+
maxEntries?: number | undefined;
|
|
181
|
+
maxBytes?: number | undefined;
|
|
182
|
+
cascadeFrom?: string | undefined;
|
|
183
|
+
ageField?: string | undefined;
|
|
184
|
+
enforcedBy?: string | undefined;
|
|
185
|
+
} | undefined;
|
|
186
|
+
nextAction?: {
|
|
187
|
+
label: string;
|
|
188
|
+
href?: string | undefined;
|
|
189
|
+
command?: string | undefined;
|
|
190
|
+
} | undefined;
|
|
191
|
+
};
|
|
192
|
+
export declare const terminalWorkspaceVesselSetupDescriptor: {
|
|
193
|
+
id: string;
|
|
194
|
+
kind: "vessel/setup-step";
|
|
195
|
+
areaId: string;
|
|
196
|
+
order: number;
|
|
197
|
+
label: string;
|
|
198
|
+
userAction: string;
|
|
199
|
+
userResult: string;
|
|
200
|
+
place: "browser" | "vibes" | "cloud" | "computer" | "vessel";
|
|
201
|
+
status: "unknown" | "ready" | "needs-setup" | "planned" | "blocked";
|
|
202
|
+
owner: {
|
|
203
|
+
packageName: string;
|
|
204
|
+
entrypoint?: string | undefined;
|
|
205
|
+
specPath?: string | undefined;
|
|
206
|
+
runtimeKind?: string | undefined;
|
|
207
|
+
runtimeId?: string | undefined;
|
|
208
|
+
};
|
|
209
|
+
evidence: ({
|
|
210
|
+
type: "runtime-query";
|
|
211
|
+
kind: string;
|
|
212
|
+
resultSummary: string;
|
|
213
|
+
id?: string | undefined;
|
|
214
|
+
} | {
|
|
215
|
+
type: "command";
|
|
216
|
+
cwd: string;
|
|
217
|
+
command: string;
|
|
218
|
+
exitCode: number;
|
|
219
|
+
summary: string;
|
|
220
|
+
} | {
|
|
221
|
+
type: "http";
|
|
222
|
+
method: string;
|
|
223
|
+
url: string;
|
|
224
|
+
status: number;
|
|
225
|
+
summary: string;
|
|
226
|
+
} | {
|
|
227
|
+
type: "screenshot";
|
|
228
|
+
path: string;
|
|
229
|
+
summary: string;
|
|
230
|
+
viewport?: string | undefined;
|
|
231
|
+
} | {
|
|
232
|
+
type: "source";
|
|
233
|
+
path: string;
|
|
234
|
+
summary: string;
|
|
235
|
+
line?: number | undefined;
|
|
236
|
+
} | {
|
|
237
|
+
type: "spec";
|
|
238
|
+
path: string;
|
|
239
|
+
summary: string;
|
|
240
|
+
heading?: string | undefined;
|
|
241
|
+
})[];
|
|
242
|
+
upstreamWorkItemIds: string[];
|
|
243
|
+
proofGate: string;
|
|
244
|
+
name?: string | undefined;
|
|
245
|
+
description?: string | undefined;
|
|
246
|
+
tags?: string[] | undefined;
|
|
247
|
+
hardware?: string[] | undefined;
|
|
248
|
+
enabled?: boolean | undefined;
|
|
249
|
+
priority?: number | undefined;
|
|
250
|
+
capabilityId?: string | undefined;
|
|
251
|
+
requiredContext?: string[] | undefined;
|
|
252
|
+
optionalContext?: string[] | undefined;
|
|
253
|
+
config?: unknown;
|
|
254
|
+
retention?: string | {
|
|
255
|
+
reason: string;
|
|
256
|
+
maxAgeDays?: number | undefined;
|
|
257
|
+
maxEntries?: number | undefined;
|
|
258
|
+
maxBytes?: number | undefined;
|
|
259
|
+
cascadeFrom?: string | undefined;
|
|
260
|
+
ageField?: string | undefined;
|
|
261
|
+
enforcedBy?: string | undefined;
|
|
262
|
+
} | undefined;
|
|
263
|
+
nextAction?: {
|
|
264
|
+
label: string;
|
|
265
|
+
href?: string | undefined;
|
|
266
|
+
command?: string | undefined;
|
|
267
|
+
} | undefined;
|
|
268
|
+
falsifier?: string | undefined;
|
|
269
|
+
};
|
|
270
|
+
export declare const terminalWorkspaceVesselSurfaceDescriptor: {
|
|
271
|
+
kind: "vessel/surface";
|
|
272
|
+
id: string;
|
|
273
|
+
name: string;
|
|
274
|
+
description: string;
|
|
275
|
+
label: string;
|
|
276
|
+
surfaceKind: string;
|
|
277
|
+
owner: {
|
|
278
|
+
packageName: string;
|
|
279
|
+
};
|
|
280
|
+
contract: {
|
|
281
|
+
apiVersion: string;
|
|
282
|
+
stateSchemaId: string;
|
|
283
|
+
stateSchemaVersion: number;
|
|
284
|
+
stateSchema: import("zod/v4").ZodObject<{
|
|
285
|
+
executionId: import("zod/v4").ZodDefault<import("zod/v4").ZodString>;
|
|
286
|
+
cwd: import("zod/v4").ZodDefault<import("zod/v4").ZodString>;
|
|
287
|
+
correlationId: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
288
|
+
sourceSurfaceId: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
289
|
+
}, import("zod/v4/core").$strict>;
|
|
290
|
+
};
|
|
291
|
+
activation: string;
|
|
292
|
+
execution: string;
|
|
293
|
+
requiredCapabilities: {
|
|
294
|
+
id: string;
|
|
295
|
+
reason: string;
|
|
296
|
+
selectorParam: string;
|
|
297
|
+
}[];
|
|
298
|
+
optionalCapabilities: never[];
|
|
299
|
+
primaryAudience: string;
|
|
300
|
+
secondaryAudiences: string[];
|
|
301
|
+
technicalLanguagePolicy: string;
|
|
302
|
+
promotionGate: string;
|
|
303
|
+
};
|
|
304
|
+
export declare const terminalSvelteVesselPlugin: import("@vibesdotdev/kernel").RuntimePlugin;
|
|
305
|
+
export default terminalSvelteVesselPlugin;
|
|
306
|
+
//# sourceMappingURL=terminal.vessel.plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal.vessel.plugin.d.ts","sourceRoot":"","sources":["../../src/apps/terminal.vessel.plugin.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsB/C,CAAC;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcrD,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAejD,CAAC;AAEH,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BnD,CAAC;AAEH,eAAO,MAAM,0BAA0B,6CAqBrC,CAAC;AAEH,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/** Vessel registration for the lower Terminal workspace component. Stable IDs preserve host composition. */
|
|
2
|
+
import { createRuntimeAsset, createRuntimePlugin, loader } from '@vibesdotdev/kernel';
|
|
3
|
+
import { terminalWorkspaceVesselStateSchema } from '@vibesdotdev/terminal-client/workspace';
|
|
4
|
+
import { vesselAppDescriptorSchema, vesselReadinessAreaSchema, vesselSetupStepSchema } from "../schemas.js";
|
|
5
|
+
const terminalVesselOwner = {
|
|
6
|
+
packageName: '@vibesdotdev/terminal-client/svelte',
|
|
7
|
+
entrypoint: './TerminalWorkspace.svelte',
|
|
8
|
+
runtimeKind: 'runtime/execution',
|
|
9
|
+
runtimeId: 'browser-shell'
|
|
10
|
+
};
|
|
11
|
+
export const terminalWorkspaceVesselAppDescriptor = vesselAppDescriptorSchema.parse({
|
|
12
|
+
kind: 'vessel/app',
|
|
13
|
+
id: 'workspace.terminal',
|
|
14
|
+
name: 'Terminal',
|
|
15
|
+
description: 'Open an interactive command session at an explicitly selected runtime place.',
|
|
16
|
+
owner: terminalVesselOwner,
|
|
17
|
+
identity: { glyph: 'lucide:terminal', accent: 'neutral' },
|
|
18
|
+
category: 'app',
|
|
19
|
+
launch: {
|
|
20
|
+
type: 'vessel-surface',
|
|
21
|
+
surfaceId: 'terminal.workspace',
|
|
22
|
+
initialState: { executionId: 'browser-shell' }
|
|
23
|
+
},
|
|
24
|
+
availability: {
|
|
25
|
+
status: 'unknown',
|
|
26
|
+
summary: 'Terminal checks the selected execution place when opened.'
|
|
27
|
+
},
|
|
28
|
+
defaultWindow: { x: 190, y: 128, width: 780, height: 520, minWidth: 460, minHeight: 340 },
|
|
29
|
+
tags: ['terminal', 'commands', 'runtime', 'fleet'],
|
|
30
|
+
workLocations: ['browser', 'computer', 'cloud'],
|
|
31
|
+
readinessAreaIds: ['readiness.terminal'],
|
|
32
|
+
setupStepIds: ['setup.terminal.provider']
|
|
33
|
+
});
|
|
34
|
+
export const terminalWorkspaceVesselReadinessDescriptor = vesselReadinessAreaSchema.parse({
|
|
35
|
+
kind: 'vessel/readiness-area',
|
|
36
|
+
id: 'readiness.terminal',
|
|
37
|
+
label: 'Terminal',
|
|
38
|
+
userPromise: 'Run commands at the selected place',
|
|
39
|
+
status: 'unknown',
|
|
40
|
+
summary: 'Terminal readiness follows the execution provider pinned to each window.',
|
|
41
|
+
owner: terminalVesselOwner,
|
|
42
|
+
targetKinds: ['runtime/execution'],
|
|
43
|
+
evidence: [],
|
|
44
|
+
linkedFindingIds: [],
|
|
45
|
+
upstreamWorkItemIds: ['VESSEL-VIBES-006'],
|
|
46
|
+
proofGate: 'A real terminal window accepts input, shows output, resizes, exits, and reports its exact place.'
|
|
47
|
+
});
|
|
48
|
+
export const terminalWorkspaceVesselSetupDescriptor = vesselSetupStepSchema.parse({
|
|
49
|
+
kind: 'vessel/setup-step',
|
|
50
|
+
id: 'setup.terminal.provider',
|
|
51
|
+
areaId: 'readiness.terminal',
|
|
52
|
+
order: 30,
|
|
53
|
+
label: 'Open Terminal',
|
|
54
|
+
userAction: 'Choose a reachable place and open a terminal there.',
|
|
55
|
+
userResult: 'A terminal window stays pinned to that place for its lifetime.',
|
|
56
|
+
place: 'vessel',
|
|
57
|
+
status: 'unknown',
|
|
58
|
+
owner: terminalVesselOwner,
|
|
59
|
+
evidence: [],
|
|
60
|
+
upstreamWorkItemIds: ['VESSEL-VIBES-006'],
|
|
61
|
+
proofGate: 'Real pixels and a lifecycle receipt agree on the selected execution place.',
|
|
62
|
+
falsifier: 'A window silently follows a changed global target or labels a browser shell as the machine.'
|
|
63
|
+
});
|
|
64
|
+
export const terminalWorkspaceVesselSurfaceDescriptor = createRuntimeAsset({
|
|
65
|
+
kind: 'vessel/surface',
|
|
66
|
+
id: 'terminal.workspace',
|
|
67
|
+
name: 'Terminal workspace',
|
|
68
|
+
description: 'Open an interactive session through the runtime-resolved execution workspace.',
|
|
69
|
+
label: 'Terminal workspace',
|
|
70
|
+
surfaceKind: 'component',
|
|
71
|
+
owner: { packageName: '@vibesdotdev/terminal-client/svelte' },
|
|
72
|
+
contract: {
|
|
73
|
+
apiVersion: '1.0.0',
|
|
74
|
+
stateSchemaId: 'terminal.workspace.state',
|
|
75
|
+
stateSchemaVersion: 1,
|
|
76
|
+
stateSchema: terminalWorkspaceVesselStateSchema
|
|
77
|
+
},
|
|
78
|
+
activation: 'on-open',
|
|
79
|
+
execution: 'host-trusted',
|
|
80
|
+
requiredCapabilities: [
|
|
81
|
+
{
|
|
82
|
+
id: 'runtime/execution',
|
|
83
|
+
reason: 'Open a real interactive session and return a trusted lifecycle receipt to the composition.',
|
|
84
|
+
selectorParam: 'executionId'
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
optionalCapabilities: [],
|
|
88
|
+
primaryAudience: 'workspace-user',
|
|
89
|
+
secondaryAudiences: ['host-integrator'],
|
|
90
|
+
technicalLanguagePolicy: 'hide',
|
|
91
|
+
promotionGate: 'Real browser proof emits an opened receipt after runtime execution resolves.'
|
|
92
|
+
});
|
|
93
|
+
export const terminalSvelteVesselPlugin = createRuntimePlugin({
|
|
94
|
+
id: '@vibesdotdev/terminal-client/svelte/vessel',
|
|
95
|
+
name: 'Terminal Svelte Vessel Surface',
|
|
96
|
+
description: 'Owner-declared Terminal workspace contribution for Vessel hosts.',
|
|
97
|
+
dependencies: ['vessel'],
|
|
98
|
+
descriptors: [
|
|
99
|
+
terminalWorkspaceVesselAppDescriptor,
|
|
100
|
+
terminalWorkspaceVesselSurfaceDescriptor,
|
|
101
|
+
terminalWorkspaceVesselReadinessDescriptor,
|
|
102
|
+
terminalWorkspaceVesselSetupDescriptor
|
|
103
|
+
],
|
|
104
|
+
loaders: [
|
|
105
|
+
loader(terminalWorkspaceVesselSurfaceDescriptor.id, { kind: 'vessel/surface', scope: 'browser' }, async () => {
|
|
106
|
+
const module = await import('@vibesdotdev/terminal-client/svelte/TerminalWorkspace.svelte');
|
|
107
|
+
return { impl: module.default };
|
|
108
|
+
})
|
|
109
|
+
]
|
|
110
|
+
});
|
|
111
|
+
export default terminalSvelteVesselPlugin;
|
|
112
|
+
//# sourceMappingURL=terminal.vessel.plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal.vessel.plugin.js","sourceRoot":"","sources":["../../src/apps/terminal.vessel.plugin.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACtF,OAAO,EAAE,kCAAkC,EAAE,MAAM,wCAAwC,CAAC;AAC5F,OAAO,EACN,yBAAyB,EACzB,yBAAyB,EACzB,qBAAqB,EACrB,MAAM,eAAe,CAAC;AAEvB,MAAM,mBAAmB,GAAG;IAC3B,WAAW,EAAE,qCAAqC;IAClD,UAAU,EAAE,4BAA4B;IACxC,WAAW,EAAE,mBAAmB;IAChC,SAAS,EAAE,eAAe;CACjB,CAAC;AAEX,MAAM,CAAC,MAAM,oCAAoC,GAAG,yBAAyB,CAAC,KAAK,CAAC;IACnF,IAAI,EAAE,YAAY;IAClB,EAAE,EAAE,oBAAoB;IACxB,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,8EAA8E;IAC3F,KAAK,EAAE,mBAAmB;IAC1B,QAAQ,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,EAAE,SAAS,EAAE;IACzD,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE;QACP,IAAI,EA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wC,CAAC,EAAE,EAC3C,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,SAAS,EAAE,EAC5C,KAAK,IAAI,EAAE;YACV,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,8DAA8D,CAAC,CAAC;YAC5F,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;QACjC,CAAC,CACD;KACD;CACD,CAAC,CAAC;AAEH,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import { CapabilityError, type CaughtFailure, type ValueFreeFailure, type CapabilityErrorCode, type CapabilityErrorOptions } from '@vibesdotdev/kernel';
|
|
3
|
+
/** Fixed text and value-free diagnostics at every external boundary; a `cause` stays off the envelope for `-v` and logs. */
|
|
4
|
+
export declare function vesselFailure(reason: string, code?: CapabilityErrorCode, failure?: ValueFreeFailure, details?: CapabilityErrorOptions['details'], cause?: CaughtFailure): CapabilityError;
|
|
5
|
+
/** Read getters and schema inputs within one guard before any mutation. */
|
|
6
|
+
export declare function parseVesselValue<Schema extends z.ZodType, Input>(schema: Schema, value: Input): z.output<Schema>;
|
|
7
|
+
/** Owner callbacks are trusted contracts; their failures still need safe transport. */
|
|
8
|
+
export declare function vesselOperation<T>(action: () => T | Promise<T>, reason: string): Promise<T>;
|
|
9
|
+
export declare function vesselSyncOperation<T>(action: () => T, reason: string): T;
|
|
10
|
+
//# sourceMappingURL=boundary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boundary.d.ts","sourceRoot":"","sources":["../src/boundary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAyC,KAAK,aAAa,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE/L,4HAA4H;AAC5H,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,GAAE,mBAAgC,EAAE,OAAO,CAAC,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,sBAAsB,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC,EAAE,aAAa,GAAG,eAAe,CAMrM;AAED,2EAA2E;AAC3E,wBAAgB,gBAAgB,CAAC,MAAM,SAAS,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAMhH;AAED,uFAAuF;AACvF,wBAAsB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAOjG;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC,CAGzE"}
|
package/dist/boundary.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import { CapabilityError, CaughtFailureSchema, valueFreeFailure } from '@vibesdotdev/kernel';
|
|
3
|
+
/** Fixed text and value-free diagnostics at every external boundary; a `cause` stays off the envelope for `-v` and logs. */
|
|
4
|
+
export function vesselFailure(reason, code = 'INTERNAL', failure, details, cause) {
|
|
5
|
+
const facts = { ...details };
|
|
6
|
+
if (failure)
|
|
7
|
+
facts.failure = { ...failure };
|
|
8
|
+
const options = { reason, details: facts };
|
|
9
|
+
if (cause !== undefined)
|
|
10
|
+
options.cause = cause;
|
|
11
|
+
return new CapabilityError('The Vessel operation could not be completed.', code, options);
|
|
12
|
+
}
|
|
13
|
+
/** Read getters and schema inputs within one guard before any mutation. */
|
|
14
|
+
export function parseVesselValue(schema, value) {
|
|
15
|
+
try {
|
|
16
|
+
if (Object.hasOwn(Object(value), '__proto__'))
|
|
17
|
+
throw vesselFailure('vessel-input-invalid', 'INVALID_INPUT');
|
|
18
|
+
return schema.parse(value);
|
|
19
|
+
}
|
|
20
|
+
catch (error) {
|
|
21
|
+
throw new CapabilityError('The Vessel input is invalid.', 'INVALID_INPUT', { reason: 'vessel-input-invalid', details: { failure: { ...valueFreeFailure(CaughtFailureSchema.parse(error)) } } });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
/** Owner callbacks are trusted contracts; their failures still need safe transport. */
|
|
25
|
+
export async function vesselOperation(action, reason) {
|
|
26
|
+
try {
|
|
27
|
+
return await action();
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
const caught = CaughtFailureSchema.parse(error);
|
|
31
|
+
const code = CapabilityError.from(caught).code;
|
|
32
|
+
throw new CapabilityError('The Vessel operation could not be completed.', code === 'INTERNAL' ? 'UNAVAILABLE' : code, { reason, details: { failure: { ...valueFreeFailure(caught) } }, cause: caught });
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export function vesselSyncOperation(action, reason) {
|
|
36
|
+
try {
|
|
37
|
+
return action();
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
throw new CapabilityError('The Vessel operation could not be completed.', 'UNAVAILABLE', { reason, details: { failure: { ...valueFreeFailure(CaughtFailureSchema.parse(error)) } } });
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=boundary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boundary.js","sourceRoot":"","sources":["../src/boundary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,gBAAgB,EAAoG,MAAM,qBAAqB,CAAC;AAE/L,4HAA4H;AAC5H,MAAM,UAAU,aAAa,CAAC,MAAc,EAAE,OAA4B,UAAU,EAAE,OAA0B,EAAE,O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CAAC,MAAM,CAAC,CAAC,IAAI,CAAC;QAC/C,MAAM,IAAI,eAAe,CAAC,8CAA8C,EAAE,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,gBAAgB,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IACzM,CAAC;AACF,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAI,MAAe,EAAE,MAAc;IACrE,IAAI,CAAC;QAAC,OAAO,MAAM,EAAE,CAAC;IAAC,CAAC;IACxB,OAAO,KAAK,EAAE,CAAC;QAAC,MAAM,IAAI,eAAe,CAAC,8CAA8C,EAAE,aAAa,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,gBAAgB,CAAC,mBAAmB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAAC,CAAC;AACzM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/client/helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC,CAErF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helper.js","sourceRoot":"","sources":["../../src/client/helper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAG5D,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,OAAmB;IAC7D,OAAO,cAAc,CAAe,QAAQ,EAAE,OAAO,CAAC,CAAC;AACxD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA4B,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { BaseRuntimeClient } from '@vibesdotdev/kernel/client';
|
|
2
|
+
import type { RuntimeClientDescriptor } from '@vibesdotdev/kernel/client';
|
|
3
|
+
import type { KindContext } from '@vibesdotdev/kernel';
|
|
4
|
+
import { type VesselAppDescriptor, type VesselReadinessArea, type VesselSetupStep, type VesselAuditFinding, type VesselAuditLensDescriptor, type VesselSurfaceDescriptor, type VesselVisualAssetDescriptor, type VesselDesignReviewRecord, type VesselOsStandardDescriptor, type VesselWorkspaceState } from '../schemas.ts';
|
|
5
|
+
export interface VesselRuntimeClient {
|
|
6
|
+
apps(): VesselAppDescriptor[];
|
|
7
|
+
readinessAreas(): VesselReadinessArea[];
|
|
8
|
+
setupSteps(): VesselSetupStep[];
|
|
9
|
+
auditFindings(): VesselAuditFinding[];
|
|
10
|
+
auditLenses(): VesselAuditLensDescriptor[];
|
|
11
|
+
surfaces(): VesselSurfaceDescriptor[];
|
|
12
|
+
visualAssets(): VesselVisualAssetDescriptor[];
|
|
13
|
+
designReviews(): VesselDesignReviewRecord[];
|
|
14
|
+
osStandards(): VesselOsStandardDescriptor[];
|
|
15
|
+
listWorkspaceStateIds(): Promise<string[]>;
|
|
16
|
+
loadWorkspaceState(workspaceId: string): Promise<VesselWorkspaceState | null>;
|
|
17
|
+
saveWorkspaceState(state: VesselWorkspaceState): Promise<VesselWorkspaceState>;
|
|
18
|
+
clearWorkspaceState(workspaceId: string): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
export declare class VesselClient extends BaseRuntimeClient implements VesselRuntimeClient {
|
|
21
|
+
constructor(descriptor: RuntimeClientDescriptor, context?: KindContext);
|
|
22
|
+
apps(): VesselAppDescriptor[];
|
|
23
|
+
readinessAreas(): VesselReadinessArea[];
|
|
24
|
+
setupSteps(): VesselSetupStep[];
|
|
25
|
+
auditFindings(): VesselAuditFinding[];
|
|
26
|
+
auditLenses(): VesselAuditLensDescriptor[];
|
|
27
|
+
surfaces(): VesselSurfaceDescriptor[];
|
|
28
|
+
visualAssets(): VesselVisualAssetDescriptor[];
|
|
29
|
+
designReviews(): VesselDesignReviewRecord[];
|
|
30
|
+
osStandards(): VesselOsStandardDescriptor[];
|
|
31
|
+
listWorkspaceStateIds(): Promise<string[]>;
|
|
32
|
+
loadWorkspaceState(workspaceId: string): Promise<VesselWorkspaceState | null>;
|
|
33
|
+
saveWorkspaceState(state: VesselWorkspaceState): Promise<VesselWorkspaceState>;
|
|
34
|
+
clearWorkspaceState(workspaceId: string): Promise<void>;
|
|
35
|
+
private descriptors;
|
|
36
|
+
private workspaceStateManifest;
|
|
37
|
+
private workspaceStateRootManifest;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=vessel-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vessel-client.d.ts","sourceRoot":"","sources":["../../src/client/vessel-client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAaN,KAAK,m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