@vibesdotdev/vessel 0.0.0-stage → 1.0.0-rc.3

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.
Files changed (223) hide show
  1. package/LICENSE +18 -0
  2. package/README.md +90 -2
  3. package/dist/apps/filesystem.vessel.plugin.d.ts +307 -0
  4. package/dist/apps/filesystem.vessel.plugin.d.ts.map +1 -0
  5. package/dist/apps/filesystem.vessel.plugin.js +134 -0
  6. package/dist/apps/filesystem.vessel.plugin.js.map +1 -0
  7. package/dist/apps/storage.vessel.plugin.d.ts +318 -0
  8. package/dist/apps/storage.vessel.plugin.d.ts.map +1 -0
  9. package/dist/apps/storage.vessel.plugin.js +132 -0
  10. package/dist/apps/storage.vessel.plugin.js.map +1 -0
  11. package/dist/apps/terminal.vessel.plugin.d.ts +306 -0
  12. package/dist/apps/terminal.vessel.plugin.d.ts.map +1 -0
  13. package/dist/apps/terminal.vessel.plugin.js +112 -0
  14. package/dist/apps/terminal.vessel.plugin.js.map +1 -0
  15. package/dist/boundary.d.ts +10 -0
  16. package/dist/boundary.d.ts.map +1 -0
  17. package/dist/boundary.js +43 -0
  18. package/dist/boundary.js.map +1 -0
  19. package/dist/client/helper.d.ts +4 -0
  20. package/dist/client/helper.d.ts.map +1 -0
  21. package/dist/client/helper.js +5 -0
  22. package/dist/client/helper.js.map +1 -0
  23. package/dist/client/index.d.ts +3 -0
  24. package/dist/client/index.d.ts.map +1 -0
  25. package/dist/client/index.js +3 -0
  26. package/dist/client/index.js.map +1 -0
  27. package/dist/client/vessel-client.d.ts +39 -0
  28. package/dist/client/vessel-client.d.ts.map +1 -0
  29. package/dist/client/vessel-client.js +101 -0
  30. package/dist/client/vessel-client.js.map +1 -0
  31. package/dist/docs/vessel.docs.descriptor.d.ts +4 -0
  32. package/dist/docs/vessel.docs.descriptor.d.ts.map +1 -0
  33. package/dist/docs/vessel.docs.descriptor.js +96 -0
  34. package/dist/docs/vessel.docs.descriptor.js.map +1 -0
  35. package/dist/index.d.ts +13 -0
  36. package/dist/index.d.ts.map +1 -0
  37. package/dist/index.js +13 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/kinds.d.ts +24 -0
  40. package/dist/kinds.d.ts.map +1 -0
  41. package/dist/kinds.js +78 -0
  42. package/dist/kinds.js.map +1 -0
  43. package/dist/launch/cli/descriptor.d.ts +3 -0
  44. package/dist/launch/cli/descriptor.d.ts.map +1 -0
  45. package/dist/launch/cli/descriptor.js +24 -0
  46. package/dist/launch/cli/descriptor.js.map +1 -0
  47. package/dist/launch/cli/implementation.d.ts +7 -0
  48. package/dist/launch/cli/implementation.d.ts.map +1 -0
  49. package/dist/launch/cli/implementation.js +14 -0
  50. package/dist/launch/cli/implementation.js.map +1 -0
  51. package/dist/launch/cli/options.d.ts +10 -0
  52. package/dist/launch/cli/options.d.ts.map +1 -0
  53. package/dist/launch/cli/options.js +12 -0
  54. package/dist/launch/cli/options.js.map +1 -0
  55. package/dist/launch/cli/plugin.d.ts +4 -0
  56. package/dist/launch/cli/plugin.d.ts.map +1 -0
  57. package/dist/launch/cli/plugin.js +12 -0
  58. package/dist/launch/cli/plugin.js.map +1 -0
  59. package/dist/launch/cli/request.d.ts +23 -0
  60. package/dist/launch/cli/request.d.ts.map +1 -0
  61. package/dist/launch/cli/request.js +27 -0
  62. package/dist/launch/cli/request.js.map +1 -0
  63. package/dist/launch/ensure-host.d.ts +48 -0
  64. package/dist/launch/ensure-host.d.ts.map +1 -0
  65. package/dist/launch/ensure-host.js +54 -0
  66. package/dist/launch/ensure-host.js.map +1 -0
  67. package/dist/launch/index.d.ts +9 -0
  68. package/dist/launch/index.d.ts.map +1 -0
  69. package/dist/launch/index.js +52 -0
  70. package/dist/launch/index.js.map +1 -0
  71. package/dist/launch/plugin.d.ts +6 -0
  72. package/dist/launch/plugin.d.ts.map +1 -0
  73. package/dist/launch/plugin.js +20 -0
  74. package/dist/launch/plugin.js.map +1 -0
  75. package/dist/launch/schema.d.ts +66 -0
  76. package/dist/launch/schema.d.ts.map +1 -0
  77. package/dist/launch/schema.js +71 -0
  78. package/dist/launch/schema.js.map +1 -0
  79. package/dist/launch/workspaces.d.ts +134 -0
  80. package/dist/launch/workspaces.d.ts.map +1 -0
  81. package/dist/launch/workspaces.js +60 -0
  82. package/dist/launch/workspaces.js.map +1 -0
  83. package/dist/module-not-found.d.ts +3 -0
  84. package/dist/module-not-found.d.ts.map +1 -0
  85. package/dist/module-not-found.js +18 -0
  86. package/dist/module-not-found.js.map +1 -0
  87. package/dist/schemas/platform.config.descriptor.d.ts +34 -0
  88. package/dist/schemas/platform.config.descriptor.d.ts.map +1 -0
  89. package/dist/schemas/platform.config.descriptor.js +13 -0
  90. package/dist/schemas/platform.config.descriptor.js.map +1 -0
  91. package/dist/schemas.d.ts +2213 -0
  92. package/dist/schemas.d.ts.map +1 -0
  93. package/dist/schemas.js +661 -0
  94. package/dist/schemas.js.map +1 -0
  95. package/dist/shell/app-surface.d.ts +55 -0
  96. package/dist/shell/app-surface.d.ts.map +1 -0
  97. package/dist/shell/app-surface.js +159 -0
  98. package/dist/shell/app-surface.js.map +1 -0
  99. package/dist/shell/dock.d.ts +30 -0
  100. package/dist/shell/dock.d.ts.map +1 -0
  101. package/dist/shell/dock.js +75 -0
  102. package/dist/shell/dock.js.map +1 -0
  103. package/dist/shell/index.d.ts +11 -0
  104. package/dist/shell/index.d.ts.map +1 -0
  105. package/dist/shell/index.js +10 -0
  106. package/dist/shell/index.js.map +1 -0
  107. package/dist/shell/launch-resolution.d.ts +49 -0
  108. package/dist/shell/launch-resolution.d.ts.map +1 -0
  109. package/dist/shell/launch-resolution.js +163 -0
  110. package/dist/shell/launch-resolution.js.map +1 -0
  111. package/dist/shell/layout-grid.d.ts +30 -0
  112. package/dist/shell/layout-grid.d.ts.map +1 -0
  113. package/dist/shell/layout-grid.js +56 -0
  114. package/dist/shell/layout-grid.js.map +1 -0
  115. package/dist/shell/owner-surface-lifecycle.d.ts +30 -0
  116. package/dist/shell/owner-surface-lifecycle.d.ts.map +1 -0
  117. package/dist/shell/owner-surface-lifecycle.js +54 -0
  118. package/dist/shell/owner-surface-lifecycle.js.map +1 -0
  119. package/dist/shell/ports.d.ts +107 -0
  120. package/dist/shell/ports.d.ts.map +1 -0
  121. package/dist/shell/ports.js +154 -0
  122. package/dist/shell/ports.js.map +1 -0
  123. package/dist/shell/types.d.ts +7 -0
  124. package/dist/shell/types.d.ts.map +1 -0
  125. package/dist/shell/types.js +2 -0
  126. package/dist/shell/types.js.map +1 -0
  127. package/dist/shell/window-manager.d.ts +82 -0
  128. package/dist/shell/window-manager.d.ts.map +1 -0
  129. package/dist/shell/window-manager.js +285 -0
  130. package/dist/shell/window-manager.js.map +1 -0
  131. package/dist/shell/workspace-memory.d.ts +42 -0
  132. package/dist/shell/workspace-memory.d.ts.map +1 -0
  133. package/dist/shell/workspace-memory.js +65 -0
  134. package/dist/shell/workspace-memory.js.map +1 -0
  135. package/dist/shell/workspace-state.d.ts +47 -0
  136. package/dist/shell/workspace-state.d.ts.map +1 -0
  137. package/dist/shell/workspace-state.js +137 -0
  138. package/dist/shell/workspace-state.js.map +1 -0
  139. package/dist/vessel.docs.plugin.d.ts +4 -0
  140. package/dist/vessel.docs.plugin.d.ts.map +1 -0
  141. package/dist/vessel.docs.plugin.js +11 -0
  142. package/dist/vessel.docs.plugin.js.map +1 -0
  143. package/dist/vessel.plugin.d.ts +3 -0
  144. package/dist/vessel.plugin.d.ts.map +1 -0
  145. package/dist/vessel.plugin.js +23 -0
  146. package/dist/vessel.plugin.js.map +1 -0
  147. package/dist/vessel.runtime-client.descriptor.d.ts +4 -0
  148. package/dist/vessel.runtime-client.descriptor.d.ts.map +1 -0
  149. package/dist/vessel.runtime-client.descriptor.js +13 -0
  150. package/dist/vessel.runtime-client.descriptor.js.map +1 -0
  151. package/dist/vessel.workspace-state.plugin.d.ts +4 -0
  152. package/dist/vessel.workspace-state.plugin.d.ts.map +1 -0
  153. package/dist/vessel.workspace-state.plugin.js +12 -0
  154. package/dist/vessel.workspace-state.plugin.js.map +1 -0
  155. package/dist/vessel.workspace.plugin.d.ts +3 -0
  156. package/dist/vessel.workspace.plugin.d.ts.map +1 -0
  157. package/dist/vessel.workspace.plugin.js +17 -0
  158. package/dist/vessel.workspace.plugin.js.map +1 -0
  159. package/dist/whiteboard/client.d.ts +35 -0
  160. package/dist/whiteboard/client.d.ts.map +1 -0
  161. package/dist/whiteboard/client.js +185 -0
  162. package/dist/whiteboard/client.js.map +1 -0
  163. package/dist/whiteboard/descriptor.d.ts +5 -0
  164. package/dist/whiteboard/descriptor.d.ts.map +1 -0
  165. package/dist/whiteboard/descriptor.js +14 -0
  166. package/dist/whiteboard/descriptor.js.map +1 -0
  167. package/dist/whiteboard/index.d.ts +7 -0
  168. package/dist/whiteboard/index.d.ts.map +1 -0
  169. package/dist/whiteboard/index.js +7 -0
  170. package/dist/whiteboard/index.js.map +1 -0
  171. package/dist/whiteboard/plugin.d.ts +3 -0
  172. package/dist/whiteboard/plugin.d.ts.map +1 -0
  173. package/dist/whiteboard/plugin.js +42 -0
  174. package/dist/whiteboard/plugin.js.map +1 -0
  175. package/dist/whiteboard/schemas.d.ts +479 -0
  176. package/dist/whiteboard/schemas.d.ts.map +1 -0
  177. package/dist/whiteboard/schemas.js +55 -0
  178. package/dist/whiteboard/schemas.js.map +1 -0
  179. package/dist/whiteboard/tools/apply.impl.d.ts +7 -0
  180. package/dist/whiteboard/tools/apply.impl.d.ts.map +1 -0
  181. package/dist/whiteboard/tools/apply.impl.js +12 -0
  182. package/dist/whiteboard/tools/apply.impl.js.map +1 -0
  183. package/dist/whiteboard/tools/descriptors.d.ts +489 -0
  184. package/dist/whiteboard/tools/descriptors.d.ts.map +1 -0
  185. package/dist/whiteboard/tools/descriptors.js +72 -0
  186. package/dist/whiteboard/tools/descriptors.js.map +1 -0
  187. package/dist/whiteboard/tools/get.impl.d.ts +7 -0
  188. package/dist/whiteboard/tools/get.impl.d.ts.map +1 -0
  189. package/dist/whiteboard/tools/get.impl.js +12 -0
  190. package/dist/whiteboard/tools/get.impl.js.map +1 -0
  191. package/dist/whiteboard/tools/open.impl.d.ts +7 -0
  192. package/dist/whiteboard/tools/open.impl.d.ts.map +1 -0
  193. package/dist/whiteboard/tools/open.impl.js +12 -0
  194. package/dist/whiteboard/tools/open.impl.js.map +1 -0
  195. package/dist/whiteboard/tools/signal.impl.d.ts +7 -0
  196. package/dist/whiteboard/tools/signal.impl.d.ts.map +1 -0
  197. package/dist/whiteboard/tools/signal.impl.js +11 -0
  198. package/dist/whiteboard/tools/signal.impl.js.map +1 -0
  199. package/dist/whiteboard/vessel-whiteboard.descriptors.d.ts +4 -0
  200. package/dist/whiteboard/vessel-whiteboard.descriptors.d.ts.map +1 -0
  201. package/dist/whiteboard/vessel-whiteboard.descriptors.js +61 -0
  202. package/dist/whiteboard/vessel-whiteboard.descriptors.js.map +1 -0
  203. package/dist/workspace/vessel-hub.descriptors.d.ts +543 -0
  204. package/dist/workspace/vessel-hub.descriptors.d.ts.map +1 -0
  205. package/dist/workspace/vessel-hub.descriptors.js +544 -0
  206. package/dist/workspace/vessel-hub.descriptors.js.map +1 -0
  207. package/dist/workspace/vessel-platform.descriptors.d.ts +809 -0
  208. package/dist/workspace/vessel-platform.descriptors.d.ts.map +1 -0
  209. package/dist/workspace/vessel-platform.descriptors.js +207 -0
  210. package/dist/workspace/vessel-platform.descriptors.js.map +1 -0
  211. package/dist/workspace/vessel-workspace.descriptors.d.ts +537 -0
  212. package/dist/workspace/vessel-workspace.descriptors.d.ts.map +1 -0
  213. package/dist/workspace/vessel-workspace.descriptors.js +115 -0
  214. package/dist/workspace/vessel-workspace.descriptors.js.map +1 -0
  215. package/dist/workspace-state/index.d.ts +3 -0
  216. package/dist/workspace-state/index.d.ts.map +1 -0
  217. package/dist/workspace-state/index.js +3 -0
  218. package/dist/workspace-state/index.js.map +1 -0
  219. package/dist/workspace-state/vessel.workspace-state.storage.descriptor.d.ts +51 -0
  220. package/dist/workspace-state/vessel.workspace-state.storage.descriptor.d.ts.map +1 -0
  221. package/dist/workspace-state/vessel.workspace-state.storage.descriptor.js +24 -0
  222. package/dist/workspace-state/vessel.workspace-state.storage.descriptor.js.map +1 -0
  223. package/package.json +207 -4
package/LICENSE ADDED
@@ -0,0 +1,18 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 VIBES DEV LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
6
+ associated documentation files (the "Software"), to deal in the Software without restriction, including
7
+ without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
9
+ following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all copies or substantial
12
+ portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
15
+ LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
16
+ EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
18
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,91 @@
1
- # Temporary Holding Version
1
+ # @vibesdotdev/vessel
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Framework-neutral Vessel contracts for desktop hosts over the Vibes runtime.
4
+
5
+ The package owns `vessel/*` descriptor schemas, runtime kind registration, the
6
+ bare `vessel` plugin, runtime client descriptor id `vessel`, and
7
+ `getVibesVesselClient(runtime)`. It also exposes an optional product-safe starter
8
+ workspace plugin for hosts that want Home and the remaining legacy centrally
9
+ projected apps without importing feature implementations, plus an
10
+ optional IDB-only workspace-state plugin. Owner packages contribute operational
11
+ `vessel/surface` descriptors and loaders under stable surface ids; Vessel stores
12
+ only the compact structural return projection. Every `vessel/app` has a
13
+ semantic glyph and may reference a feature-owned `vessel/visual-asset`; rich
14
+ packaged artwork resolves through an admitted scoped loader and falls back to
15
+ the glyph without a host-local feature map. `VesselClient` requires an
16
+ explicit workspace identity for load/clear and partitions the Storage manifest by
17
+ that identity; the desktop host currently supplies either a cloud principal id or
18
+ an unlocked device-local profile id. Anchors are checked against the current owner
19
+ state contract on restore; v1 retains incompatible intent as unavailable and does
20
+ not claim cross-version migration. It deliberately does not own
21
+ Svelte UI, SvelteKit loaders, feature records, file editing, terminal execution,
22
+ chat state, browser sandbox providers, storage adapters, or runtime bootstrap.
23
+
24
+ The Vessel and whiteboard plugins require the Canvas plugin in the same
25
+ composition. Whiteboard operations validate before mutation; changed hooks see
26
+ committed state. A notification failure is typed and records `committed: true`.
27
+ Registered Canvas descriptors are snapshots; whiteboard reads return live,
28
+ detached board state. Dispose the owning runtime to release board registrations.
29
+
30
+ ## Entrypoints
31
+
32
+ - `@vibesdotdev/vessel` — schemas, kinds, plugins, client helper, shell pure logic,
33
+ workspace/hub/platform default descriptor snapshots, whiteboard client and tools
34
+ - `@vibesdotdev/vessel/plugin` — `vesselPlugin`
35
+ - `@vibesdotdev/vessel/docs.plugin` — docs-only `vesselDocsPlugin`
36
+ - `@vibesdotdev/vessel/workspace.plugin` — optional workspace + hub descriptors; platform links resolve through infra/service
37
+ - `@vibesdotdev/vessel/workspace-state.plugin` — optional `vessel.workspace-state` manifest
38
+ - `@vibesdotdev/vessel/workspace-state` — strict return projection schemas + descriptor
39
+ - `@vibesdotdev/vessel/schemas` — Zod contracts
40
+ - `@vibesdotdev/vessel/kinds` — `vesselRuntimeKinds`
41
+ - `@vibesdotdev/vessel/client` — `VesselClient`
42
+ - `@vibesdotdev/vessel/runtime/client` — runtime client helper alias
43
+ - `@vibesdotdev/vessel/shell` — window manager, route updates, launch resolution,
44
+ host-pinned/running Dock projection, workspace-memory health, capture/restore,
45
+ and unavailable-anchor retention
46
+ - `@vibesdotdev/vessel/launch` — `launchVessel`, launch schemas, `vesselLauncherKind`,
47
+ `vesselLaunchPlugin`, workspace-launcher contract
48
+ - `@vibesdotdev/vessel/launch/plugin` — `vesselLaunchPlugin` (plugin id `vessel-launch`)
49
+ - `@vibesdotdev/vessel/cli` and `@vibesdotdev/vessel/cli/plugin` (alias) —
50
+ `vesselCLIPlugin` (plugin id `vessel.cli`) and `createVesselCLIRequest`
51
+ - `@vibesdotdev/vessel/cli/options` — `vesselLaunchOptions`
52
+ - `@vibesdotdev/vessel/workspace.descriptors` — workspace, hub, and platform
53
+ default descriptor snapshots
54
+ - `@vibesdotdev/vessel/whiteboard` — `VesselWhiteboardClient`, `vesselWhiteboardPlugin`,
55
+ whiteboard descriptors, schemas, and agent tools
56
+
57
+ Workspace hosts compose Config, Storage, and the narrow
58
+ `@vibesdotdev/infra-core/service` plugin. The workspace plugin resolves
59
+ `infra/service` targets using `infra.services` settings; configured primary
60
+ origins retain Inbox/Calendar suffixes and stay isolated per runtime. Missing
61
+ service composition refuses with `vessel-services-unavailable`; invalid settings
62
+ propagate Config's typed refusal. Exported arrays remain default snapshots.
63
+
64
+ Trusted typed launcher refusals propagate intact. Untyped failures have safe
65
+ envelopes and retain the kernel-parsed caught failure as a diagnostic cause;
66
+ installation and repair wrappers preserve the cause chain.
67
+
68
+ ## Docs
69
+
70
+ - [SPEC.md](./SPEC.md) — ownership, package boundary, and verification rules
71
+ - The earlier desktop product notes are historical; [SPEC.md](./SPEC.md) is
72
+ the current package contract.
73
+
74
+ ## Verify
75
+
76
+ ```sh
77
+ # from vessel/ (source and Node contract typechecking, tests, production emit)
78
+ bun run test
79
+ bun run check
80
+ bun run build
81
+ bun run test:node
82
+
83
+ # from the framework root
84
+ bun run verify:boundary vessel
85
+ ```
86
+
87
+ These are verification commands, not a seal or publication claim. `test:node`
88
+ currently fails before Vessel code loads: the kernel deep-imports
89
+ `jsonc-parser/lib/esm/main.js`, which Node ESM cannot resolve (external
90
+ blocker; see SPEC Verification). See SPEC for remaining PM, test-kind, and
91
+ public-framework review blockers.
@@ -0,0 +1,307 @@
1
+ export declare const filesystemWorkspaceVesselAppDescriptor: {
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" | "runtime" | "service" | "tool" | "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 filesystemWorkspaceVesselReadinessDescriptor: {
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 filesystemWorkspaceVesselSetupDescriptor: {
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" | "cloud" | "vibes" | "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 filesystemWorkspaceVesselSurfaceDescriptor: {
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
+ adapterId: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
286
+ initialPath: import("zod/v4").ZodDefault<import("zod/v4").ZodString>;
287
+ mode: import("zod/v4").ZodOptional<import("zod/v4").ZodEnum<{
288
+ code: "code";
289
+ files: "files";
290
+ }>>;
291
+ }, import("zod/v4/core").$strict>;
292
+ };
293
+ activation: string;
294
+ execution: string;
295
+ requiredCapabilities: {
296
+ id: string;
297
+ reason: string;
298
+ }[];
299
+ optionalCapabilities: never[];
300
+ primaryAudience: string;
301
+ secondaryAudiences: string[];
302
+ technicalLanguagePolicy: string;
303
+ promotionGate: string;
304
+ };
305
+ export declare const filesystemSvelteVesselPlugin: import("@vibesdotdev/kernel").RuntimePlugin;
306
+ export default filesystemSvelteVesselPlugin;
307
+ //# sourceMappingURL=filesystem.vessel.plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filesystem.vessel.plugin.d.ts","sourceRoot":"","sources":["../../src/apps/filesystem.vessel.plugin.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CjD,CAAC;AAEH,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAavD,CAAC;AAEH,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAenD,CAAC;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BrD,CAAC;AAEH,eAAO,MAAM,4BAA4B,6CAqBvC,CAAC;AAEH,eAAe,4BAA4B,CAAC"}
@@ -0,0 +1,134 @@
1
+ /** Vessel registration for the lower Filesystem workspace component. Stable IDs preserve host composition. */
2
+ import { createRuntimeAsset, createRuntimePlugin, loader } from '@vibesdotdev/kernel';
3
+ import { vesselAppDescriptorSchema, vesselReadinessAreaSchema, vesselSetupStepSchema } from "../schemas.js";
4
+ import { filesystemWorkspaceVesselStateSchema } from '@vibesdotdev/filesystem/schemas/workspace-state';
5
+ const filesystemVesselOwner = {
6
+ packageName: '@vibesdotdev/filesystem/svelte',
7
+ entrypoint: './FilesystemWorkspace.svelte',
8
+ runtimeKind: 'workspace/environment',
9
+ runtimeId: 'workspace.environment'
10
+ };
11
+ export const filesystemWorkspaceVesselAppDescriptor = vesselAppDescriptorSchema.parse({
12
+ kind: 'vessel/app',
13
+ id: 'workspace.files',
14
+ name: 'Files',
15
+ description: 'Browse and organize files available in the current workspace.',
16
+ owner: filesystemVesselOwner,
17
+ identity: { glyph: 'lucide:folder-open', accent: 'azure' },
18
+ category: 'app',
19
+ launch: {
20
+ type: 'vessel-surface',
21
+ surfaceId: 'filesystem.workspace',
22
+ initialState: { initialPath: '/' }
23
+ },
24
+ availability: {
25
+ status: 'unknown',
26
+ summary: 'Files checks the current workspace when opened.'
27
+ },
28
+ defaultWindow: { x: 112, y: 72, width: 1120, height: 720, minWidth: 760, minHeight: 520 },
29
+ tags: ['files', 'workspace', 'resources'],
30
+ workLocations: ['vessel'],
31
+ readinessAreaIds: ['readiness.files'],
32
+ setupStepIds: ['setup.workspace.files'],
33
+ ports: [
34
+ {
35
+ id: 'in.default',
36
+ label: 'In',
37
+ direction: 'input',
38
+ schema: { mediaType: 'application/json', shape: 'any' },
39
+ multiple: true
40
+ },
41
+ {
42
+ id: 'out.default',
43
+ label: 'Out',
44
+ direction: 'output',
45
+ schema: { mediaType: 'application/json', shape: 'event' },
46
+ multiple: true
47
+ },
48
+ {
49
+ id: 'out.document',
50
+ label: 'Document',
51
+ direction: 'output',
52
+ schema: { mediaType: 'text/plain', shape: 'text' },
53
+ multiple: true
54
+ }
55
+ ]
56
+ });
57
+ export const filesystemWorkspaceVesselReadinessDescriptor = vesselReadinessAreaSchema.parse({
58
+ kind: 'vessel/readiness-area',
59
+ id: 'readiness.files',
60
+ label: 'Files',
61
+ userPromise: 'Work with files available here',
62
+ status: 'unknown',
63
+ summary: 'Files readiness follows the workspace environment currently bound by this host.',
64
+ owner: filesystemVesselOwner,
65
+ targetKinds: ['workspace/environment'],
66
+ evidence: [],
67
+ linkedFindingIds: [],
68
+ upstreamWorkItemIds: [],
69
+ proofGate: 'A bound workspace environment opens the real Files workbench through its rooted adapter.'
70
+ });
71
+ export const filesystemWorkspaceVesselSetupDescriptor = vesselSetupStepSchema.parse({
72
+ kind: 'vessel/setup-step',
73
+ id: 'setup.workspace.files',
74
+ areaId: 'readiness.files',
75
+ order: 10,
76
+ label: 'Open Files',
77
+ userAction: 'Open files available in this workspace.',
78
+ userResult: 'Files shows the workspace that this host has made available.',
79
+ place: 'vessel',
80
+ status: 'unknown',
81
+ owner: filesystemVesselOwner,
82
+ evidence: [],
83
+ upstreamWorkItemIds: [],
84
+ proofGate: 'The owner-contributed Files app resolves a bound workspace environment.',
85
+ falsifier: 'Files opens without a bound workspace environment or reaches around its rooted adapter.'
86
+ });
87
+ export const filesystemWorkspaceVesselSurfaceDescriptor = createRuntimeAsset({
88
+ kind: 'vessel/surface',
89
+ id: 'filesystem.workspace',
90
+ name: 'Files workspace',
91
+ description: 'Browse and preview files through the runtime-resolved filesystem workspace.',
92
+ label: 'Files workspace',
93
+ surfaceKind: 'component',
94
+ owner: { packageName: '@vibesdotdev/filesystem/svelte' },
95
+ contract: {
96
+ apiVersion: '1.0.0',
97
+ stateSchemaId: 'filesystem.workspace.state',
98
+ stateSchemaVersion: 1,
99
+ stateSchema: filesystemWorkspaceVesselStateSchema
100
+ },
101
+ activation: 'on-open',
102
+ execution: 'host-trusted',
103
+ requiredCapabilities: [
104
+ {
105
+ id: 'workspace/environment',
106
+ reason: 'Give the workspace workbench one host-bound, rooted authority.'
107
+ }
108
+ ],
109
+ optionalCapabilities: [],
110
+ primaryAudience: 'workspace-user',
111
+ secondaryAudiences: ['host-integrator'],
112
+ technicalLanguagePolicy: 'hide',
113
+ promotionGate: 'Real browser proof mounts Files and emits an explicit Terminal-open request.'
114
+ });
115
+ export const filesystemSvelteVesselPlugin = createRuntimePlugin({
116
+ id: '@vibesdotdev/filesystem/svelte/vessel',
117
+ name: 'Filesystem Svelte Vessel Surface',
118
+ description: 'Owner-declared Files workspace contribution for Vessel hosts.',
119
+ dependencies: ['vessel'],
120
+ descriptors: [
121
+ filesystemWorkspaceVesselAppDescriptor,
122
+ filesystemWorkspaceVesselSurfaceDescriptor,
123
+ filesystemWorkspaceVesselReadinessDescriptor,
124
+ filesystemWorkspaceVesselSetupDescriptor
125
+ ],
126
+ loaders: [
127
+ loader(filesystemWorkspaceVesselSurfaceDescriptor.id, { kind: 'vessel/surface', scope: 'browser' }, async () => {
128
+ const module = await import('@vibesdotdev/filesystem/svelte/FilesystemWorkspace.svelte');
129
+ return { impl: module.default };
130
+ })
131
+ ]
132
+ });
133
+ export default filesystemSvelteVesselPlugin;
134
+ //# sourceMappingURL=filesystem.vessel.plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filesystem.vessel.plugin.js","sourceRoot":"","sources":["../../src/apps/filesystem.vessel.plugin.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACtF,OAAO,EACN,yBAAyB,EACzB,yBAAyB,EACzB,qBAAqB,EACrB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oCAAoC,EAAE,MAAM,iDAAiD,CAAC;AAEvG,MAAM,qBAAqB,GAAG;IAC7B,WAAW,EAAE,gCAAgC;IAC7C,UAAU,EAAE,8BAA8B;IAC1C,WAAW,EAAE,uBAAuB;IACpC,SAAS,EAAE,uBAAuB;CACzB,CAAC;AAEX,MAAM,CAAC,MAAM,sCAAsC,GAAG,yBAAyB,CAAC,KAAK,CAAC;IACrF,IAAI,EAAE,YAAY;IAClB,EAAE,EAAE,iBAAiB;IACrB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,+DAA+D;IAC5E,KA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