@fungi.computer/oyster 0.0.0-stage → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1082 -2
  3. package/dist/agents.d.ts +114 -0
  4. package/dist/agents.js +322 -0
  5. package/dist/app-builds.d.ts +151 -0
  6. package/dist/app-builds.js +355 -0
  7. package/dist/app-sandbox.d.ts +2 -0
  8. package/dist/app-sandbox.js +2 -0
  9. package/dist/app-sources.d.ts +46 -0
  10. package/dist/app-sources.js +335 -0
  11. package/dist/app-storage.d.ts +141 -0
  12. package/dist/app-storage.js +281 -0
  13. package/dist/apps/gate.d.ts +105 -0
  14. package/dist/apps/gate.js +273 -0
  15. package/dist/apps/index.d.ts +5 -0
  16. package/dist/apps/index.js +5 -0
  17. package/dist/apps/installation.d.ts +248 -0
  18. package/dist/apps/installation.js +307 -0
  19. package/dist/apps/operations.d.ts +8 -0
  20. package/dist/apps/operations.js +98 -0
  21. package/dist/apps/tools.d.ts +33 -0
  22. package/dist/apps/tools.js +17 -0
  23. package/dist/auth.d.ts +11 -0
  24. package/dist/auth.js +93 -0
  25. package/dist/backend-request.d.ts +3 -0
  26. package/dist/backend-request.js +53 -0
  27. package/dist/build/build-jobs.d.ts +128 -0
  28. package/dist/build/build-jobs.js +197 -0
  29. package/dist/build/build-step.d.ts +26 -0
  30. package/dist/build/build-step.js +20 -0
  31. package/dist/build/bundled-html.d.ts +7 -0
  32. package/dist/build/bundled-html.js +64 -0
  33. package/dist/build/definition-emission.d.ts +34 -0
  34. package/dist/build/definition-emission.js +201 -0
  35. package/dist/build/effect.d.ts +231 -0
  36. package/dist/build/effect.js +396 -0
  37. package/dist/build/git-environment.d.ts +6 -0
  38. package/dist/build/git-environment.js +48 -0
  39. package/dist/build/html-recipe.d.ts +20 -0
  40. package/dist/build/html-recipe.js +51 -0
  41. package/dist/build/local-build.d.ts +57 -0
  42. package/dist/build/local-build.js +1078 -0
  43. package/dist/build/r2-artifact-writer.d.ts +31 -0
  44. package/dist/build/r2-artifact-writer.js +179 -0
  45. package/dist/build/snapshot-package-store.d.ts +2 -0
  46. package/dist/build/snapshot-package-store.js +21 -0
  47. package/dist/build/snapshot-program-scripts.d.ts +6 -0
  48. package/dist/build/snapshot-program-scripts.js +2 -0
  49. package/dist/build/submission-contract.d.ts +384 -0
  50. package/dist/build/submission-contract.js +70 -0
  51. package/dist/build/workspace-build.d.ts +50 -0
  52. package/dist/build/workspace-build.js +156 -0
  53. package/dist/build-contract.d.ts +4 -0
  54. package/dist/build-contract.js +4 -0
  55. package/dist/build-jobs.d.ts +2 -0
  56. package/dist/build-jobs.js +2 -0
  57. package/dist/build.d.ts +11 -0
  58. package/dist/build.js +13 -0
  59. package/dist/capability-descriptor.d.ts +46 -0
  60. package/dist/capability-descriptor.js +51 -0
  61. package/dist/catalog-frame.d.ts +39 -0
  62. package/dist/catalog-frame.js +72 -0
  63. package/dist/cause-class.d.ts +19 -0
  64. package/dist/cause-class.js +54 -0
  65. package/dist/cloudflare.d.ts +123 -0
  66. package/dist/cloudflare.js +391 -0
  67. package/dist/computer-terminal.d.ts +38 -0
  68. package/dist/computer-terminal.js +410 -0
  69. package/dist/computer.d.ts +60 -0
  70. package/dist/computer.js +33 -0
  71. package/dist/event-recipients.d.ts +57 -0
  72. package/dist/event-recipients.js +144 -0
  73. package/dist/facet-invocation.d.ts +4 -0
  74. package/dist/facet-invocation.js +45 -0
  75. package/dist/files.d.ts +42 -0
  76. package/dist/files.js +123 -0
  77. package/dist/frame-binding-wire-script.d.ts +2 -0
  78. package/dist/frame-binding-wire-script.js +1 -0
  79. package/dist/frame-binding-wire.d.ts +28 -0
  80. package/dist/frame-binding-wire.js +54 -0
  81. package/dist/git-admission.d.ts +52 -0
  82. package/dist/git-admission.js +188 -0
  83. package/dist/git-auth.d.ts +11 -0
  84. package/dist/git-auth.js +27 -0
  85. package/dist/git-door.d.ts +35 -0
  86. package/dist/git-door.js +108 -0
  87. package/dist/git-journal.d.ts +31 -0
  88. package/dist/git-journal.js +188 -0
  89. package/dist/git.d.ts +31 -0
  90. package/dist/git.js +64 -0
  91. package/dist/guest-policy.d.ts +9 -0
  92. package/dist/guest-policy.js +13 -0
  93. package/dist/host.d.ts +244 -0
  94. package/dist/host.js +1043 -0
  95. package/dist/index.d.ts +166 -0
  96. package/dist/index.js +320 -0
  97. package/dist/installation-consent.d.ts +79 -0
  98. package/dist/installation-consent.js +82 -0
  99. package/dist/internal/background-origins.d.ts +3 -0
  100. package/dist/internal/background-origins.js +8 -0
  101. package/dist/internal/delivery.d.ts +12 -0
  102. package/dist/internal/delivery.js +167 -0
  103. package/dist/internal/host-gate.d.ts +14 -0
  104. package/dist/internal/host-gate.js +62 -0
  105. package/dist/internal/registry-installations.d.ts +6 -0
  106. package/dist/internal/registry-installations.js +12 -0
  107. package/dist/invocation.d.ts +251 -0
  108. package/dist/invocation.js +377 -0
  109. package/dist/keys.d.ts +48 -0
  110. package/dist/keys.js +52 -0
  111. package/dist/mcp-owner.d.ts +27 -0
  112. package/dist/mcp-owner.js +143 -0
  113. package/dist/mcp.d.ts +89 -0
  114. package/dist/mcp.js +429 -0
  115. package/dist/media.d.ts +23 -0
  116. package/dist/media.js +12 -0
  117. package/dist/pack.d.ts +76 -0
  118. package/dist/pack.js +134 -0
  119. package/dist/page/capabilities.d.ts +23 -0
  120. package/dist/page/capabilities.js +256 -0
  121. package/dist/page/computer-handles.d.ts +79 -0
  122. package/dist/page/computer-handles.js +44 -0
  123. package/dist/page/lifetime.d.ts +6 -0
  124. package/dist/page/lifetime.js +19 -0
  125. package/dist/page/mount.d.ts +163 -0
  126. package/dist/page/mount.js +390 -0
  127. package/dist/page/storage.d.ts +3 -0
  128. package/dist/page/storage.js +82 -0
  129. package/dist/page/terminal.d.ts +5 -0
  130. package/dist/page/terminal.js +7 -0
  131. package/dist/page-script.d.ts +14 -0
  132. package/dist/page-script.js +5 -0
  133. package/dist/r2-files.d.ts +3 -0
  134. package/dist/r2-files.js +79 -0
  135. package/dist/release.d.ts +72 -0
  136. package/dist/release.js +164 -0
  137. package/dist/root-data.d.ts +86 -0
  138. package/dist/root-data.js +69 -0
  139. package/dist/shell/app-directory.d.ts +537 -0
  140. package/dist/shell/app-directory.js +195 -0
  141. package/dist/shell/browser-actions.d.ts +7 -0
  142. package/dist/shell/browser-actions.js +56 -0
  143. package/dist/shell/command-host.d.ts +112 -0
  144. package/dist/shell/command-host.js +502 -0
  145. package/dist/shell/commands.d.ts +25 -0
  146. package/dist/shell/commands.js +78 -0
  147. package/dist/shell/index.d.ts +8 -0
  148. package/dist/shell/index.js +8 -0
  149. package/dist/shell/keys.d.ts +41 -0
  150. package/dist/shell/keys.js +134 -0
  151. package/dist/shell/shell-module.d.ts +31 -0
  152. package/dist/shell/shell-module.js +37 -0
  153. package/dist/shell/window-manager.d.ts +124 -0
  154. package/dist/shell/window-manager.js +711 -0
  155. package/dist/shell/workbench-contract.d.ts +68 -0
  156. package/dist/shell/workbench-contract.js +1 -0
  157. package/dist/shell/workbench-host-types.d.ts +96 -0
  158. package/dist/shell/workbench-host-types.js +1 -0
  159. package/dist/shell/workbench-host.d.ts +34 -0
  160. package/dist/shell/workbench-host.js +347 -0
  161. package/dist/shell/workbench-model.d.ts +192 -0
  162. package/dist/shell/workbench-model.js +53 -0
  163. package/dist/shell/workbench.d.ts +4 -0
  164. package/dist/shell/workbench.js +2 -0
  165. package/dist/source/fork.d.ts +27 -0
  166. package/dist/source/fork.js +46 -0
  167. package/dist/source/index.d.ts +11 -0
  168. package/dist/source/index.js +11 -0
  169. package/dist/source/seed-receipt.d.ts +53 -0
  170. package/dist/source/seed-receipt.js +18 -0
  171. package/dist/source/team-source.d.ts +32 -0
  172. package/dist/source/team-source.js +42 -0
  173. package/dist/source/template-repository.d.ts +2 -0
  174. package/dist/source/template-repository.js +8 -0
  175. package/dist/source/template-write.d.ts +69 -0
  176. package/dist/source/template-write.js +344 -0
  177. package/dist/storage-frame.d.ts +64 -0
  178. package/dist/storage-frame.js +28 -0
  179. package/dist/tenant.d.ts +81 -0
  180. package/dist/tenant.js +71 -0
  181. package/dist/testing/capabilities.d.ts +29 -0
  182. package/dist/testing/capabilities.js +130 -0
  183. package/dist/testing/catalog.d.ts +3 -0
  184. package/dist/testing/catalog.js +53 -0
  185. package/dist/testing/index.d.ts +10 -0
  186. package/dist/testing/index.js +10 -0
  187. package/dist/testing/installation.d.ts +11 -0
  188. package/dist/testing/installation.js +25 -0
  189. package/dist/testing/native-worker.d.ts +21 -0
  190. package/dist/testing/native-worker.js +106 -0
  191. package/dist/testing/worker.d.ts +18 -0
  192. package/dist/testing/worker.js +67 -0
  193. package/dist/testing/workers-runtime.d.ts +24 -0
  194. package/dist/testing/workers-runtime.js +33 -0
  195. package/dist/webhook-delivery.d.ts +14 -0
  196. package/dist/webhook-delivery.js +17 -0
  197. package/dist/workers-git.d.ts +285 -0
  198. package/dist/workers-git.js +1174 -0
  199. package/dist/workers.d.ts +352 -0
  200. package/dist/workers.js +866 -0
  201. package/docs/api/README.md +82 -0
  202. package/docs/api/agents.md +332 -0
  203. package/docs/api/app-storage.md +209 -0
  204. package/docs/api/apps.md +1375 -0
  205. package/docs/api/auth.md +63 -0
  206. package/docs/api/build-contract.md +507 -0
  207. package/docs/api/build.md +1476 -0
  208. package/docs/api/cloudflare.md +421 -0
  209. package/docs/api/computer.md +203 -0
  210. package/docs/api/files.md +117 -0
  211. package/docs/api/git.md +470 -0
  212. package/docs/api/host.md +1328 -0
  213. package/docs/api/index.md +430 -0
  214. package/docs/api/invocation.md +738 -0
  215. package/docs/api/keys.md +175 -0
  216. package/docs/api/mcp.md +301 -0
  217. package/docs/api/media.md +40 -0
  218. package/docs/api/modules.md +42 -0
  219. package/docs/api/pack.md +138 -0
  220. package/docs/api/page/mount.md +298 -0
  221. package/docs/api/root-data.md +111 -0
  222. package/docs/api/shell/app-directory.md +332 -0
  223. package/docs/api/shell/command-host.md +224 -0
  224. package/docs/api/shell/commands.md +197 -0
  225. package/docs/api/shell/keys.md +183 -0
  226. package/docs/api/shell/shell-module.md +143 -0
  227. package/docs/api/shell/window-manager.md +267 -0
  228. package/docs/api/shell/workbench.md +186 -0
  229. package/docs/api/shell.md +1788 -0
  230. package/docs/api/tenant.md +194 -0
  231. package/docs/api/workers-git.md +1527 -0
  232. package/docs/api/workers.md +1678 -0
  233. package/docs/media/architecture.mmd +32 -0
  234. package/docs/media/architecture.png +0 -0
  235. package/docs/media/bonsai-network.png +0 -0
  236. package/docs/media/bonsai-repository.png +0 -0
  237. package/docs/site/agent-quickstart.mdx +349 -0
  238. package/examples/git/worker.ts +39 -0
  239. package/examples/git/wrangler.jsonc +32 -0
  240. package/examples/standalone/worker.ts +14 -0
  241. package/examples/standalone/wrangler.jsonc +21 -0
  242. package/package.json +249 -3
@@ -0,0 +1,537 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { appDeclaredGillSchema } from "@fungi.computer/gills";
3
+ import * as z from "zod";
4
+ /** An App address selects a host default or a specific installation. */
5
+ export declare const appAddressSchema: z.ZodUnion<readonly [z.ZodObject<{
6
+ kind: z.ZodLiteral<"default">;
7
+ appId: z.ZodString;
8
+ }, z.core.$strict>, z.ZodObject<{
9
+ kind: z.ZodLiteral<"installation">;
10
+ installationId: z.ZodString;
11
+ }, z.core.$strict>]>;
12
+ /** Host-reported progress of applying a revised App authority version. */
13
+ export declare const appAuthorityEnforcementSchema: z.ZodObject<{
14
+ requestId: z.ZodString;
15
+ address: z.ZodUnion<readonly [z.ZodObject<{
16
+ kind: z.ZodLiteral<"default">;
17
+ appId: z.ZodString;
18
+ }, z.core.$strict>, z.ZodObject<{
19
+ kind: z.ZodLiteral<"installation">;
20
+ installationId: z.ZodString;
21
+ }, z.core.$strict>]>;
22
+ authorityVersion: z.ZodNumber;
23
+ state: z.ZodEnum<{
24
+ unaffected: "unaffected";
25
+ pending: "pending";
26
+ applied: "applied";
27
+ expired: "expired";
28
+ }>;
29
+ outstanding: z.ZodNumber;
30
+ }, z.core.$strict>;
31
+ /** Decoded address of a default App or an installation. */
32
+ export type AppAddress = z.output<typeof appAddressSchema>;
33
+ /** Stable identity of one App address across directory and settings views. */
34
+ export declare const addressKey: (address: AppAddress) => string;
35
+ /** A host-reported authority change and its remaining work. */
36
+ export type AppAuthorityEnforcement = z.output<typeof appAuthorityEnforcementSchema>;
37
+ /**
38
+ * A Release-declared Gill carried by the host's App directory. The named
39
+ * mapped type keeps consumer declarations attached to this public contract.
40
+ */
41
+ export type AppDirectoryGill = {
42
+ [Field in keyof Schema.Schema.Type<typeof appDeclaredGillSchema>]: Schema.Schema.Type<typeof appDeclaredGillSchema>[Field];
43
+ };
44
+ /** Reusable App metadata supplied by an embedding host; it conveys no permissions. */
45
+ export declare const appDirectoryEntrySchema: z.ZodObject<{
46
+ address: z.ZodUnion<readonly [z.ZodObject<{
47
+ kind: z.ZodLiteral<"default">;
48
+ appId: z.ZodString;
49
+ }, z.core.$strict>, z.ZodObject<{
50
+ kind: z.ZodLiteral<"installation">;
51
+ installationId: z.ZodString;
52
+ }, z.core.$strict>]>;
53
+ installationId: z.ZodNullable<z.ZodString>;
54
+ surfaceId: z.ZodString;
55
+ appId: z.ZodString;
56
+ displayName: z.ZodOptional<z.ZodString>;
57
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ releaseId: z.ZodNullable<z.ZodString>;
59
+ authorityVersion: z.ZodNumber;
60
+ enforcement: z.ZodNullable<z.ZodObject<{
61
+ requestId: z.ZodString;
62
+ address: z.ZodUnion<readonly [z.ZodObject<{
63
+ kind: z.ZodLiteral<"default">;
64
+ appId: z.ZodString;
65
+ }, z.core.$strict>, z.ZodObject<{
66
+ kind: z.ZodLiteral<"installation">;
67
+ installationId: z.ZodString;
68
+ }, z.core.$strict>]>;
69
+ authorityVersion: z.ZodNumber;
70
+ state: z.ZodEnum<{
71
+ unaffected: "unaffected";
72
+ pending: "pending";
73
+ applied: "applied";
74
+ expired: "expired";
75
+ }>;
76
+ outstanding: z.ZodNumber;
77
+ }, z.core.$strict>>;
78
+ handlers: z.ZodArray<z.ZodLiteral<"file.open">>;
79
+ roles: z.ZodArray<z.ZodString>;
80
+ declaredCapabilities: z.ZodArray<z.ZodString>;
81
+ calls: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<readonly {
82
+ readonly appId: string;
83
+ readonly methods: readonly string[];
84
+ }[], unknown>>>;
85
+ commands: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<Readonly<{
86
+ id: string;
87
+ title: string;
88
+ category: string;
89
+ description?: string | undefined;
90
+ sigil?: string | undefined;
91
+ projections?: Readonly<{
92
+ bindings?: (Readonly<{
93
+ order?: number | undefined;
94
+ }> & Readonly<{
95
+ values: readonly string[];
96
+ }>) | undefined;
97
+ agent?: (Readonly<{
98
+ order?: number | undefined;
99
+ }> & Readonly<{
100
+ keybind?: string | undefined;
101
+ }>) | undefined;
102
+ help?: Readonly<{
103
+ order?: number | undefined;
104
+ }> | undefined;
105
+ menu?: Readonly<{
106
+ order?: number | undefined;
107
+ }> | undefined;
108
+ palette?: Readonly<{
109
+ order?: number | undefined;
110
+ }> | undefined;
111
+ slash?: (Readonly<{
112
+ order?: number | undefined;
113
+ }> & Readonly<{
114
+ aliases: readonly string[];
115
+ }>) | undefined;
116
+ }> | undefined;
117
+ }>[], unknown[]>>;
118
+ gills: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<AppDirectoryGill[], unknown[]>>;
119
+ availability: z.ZodEnum<{
120
+ available: "available";
121
+ unavailable: "unavailable";
122
+ }>;
123
+ surface: z.ZodNullable<z.ZodObject<{
124
+ stableRoute: z.ZodString;
125
+ }, z.core.$strict>>;
126
+ surfacePath: z.ZodString;
127
+ }, z.core.$strict>;
128
+ /** An App directory row before host-specific permissions are attached. */
129
+ export type AppDirectoryEntry = z.output<typeof appDirectoryEntrySchema>;
130
+ /** A host-resolved role selection; a surface address is not launch authority. */
131
+ export declare const appRoleSelectionSchema: z.ZodObject<{
132
+ surfaceId: z.ZodNullable<z.ZodString>;
133
+ chosen: z.ZodBoolean;
134
+ }, z.core.$strict>;
135
+ declare const appComputerOperationSchema: z.ZodEnum<{
136
+ "computer.list": "computer.list";
137
+ "computer.readFile": "computer.readFile";
138
+ "computer.writeFile": "computer.writeFile";
139
+ "computer.execute": "computer.execute";
140
+ }>;
141
+ export type AppComputerOperation = z.output<typeof appComputerOperationSchema>;
142
+ export declare const appComputerPermissionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
143
+ kind: z.ZodLiteral<"selected-computers">;
144
+ computers: z.ZodArray<z.ZodObject<{
145
+ computerId: z.ZodString;
146
+ operations: z.ZodArray<z.ZodEnum<{
147
+ "computer.list": "computer.list";
148
+ "computer.readFile": "computer.readFile";
149
+ "computer.writeFile": "computer.writeFile";
150
+ "computer.execute": "computer.execute";
151
+ }>>;
152
+ }, z.core.$strict>>;
153
+ }, z.core.$strict>, z.ZodObject<{
154
+ kind: z.ZodLiteral<"all-team-computers">;
155
+ operations: z.ZodArray<z.ZodEnum<{
156
+ "computer.list": "computer.list";
157
+ "computer.readFile": "computer.readFile";
158
+ "computer.writeFile": "computer.writeFile";
159
+ "computer.execute": "computer.execute";
160
+ }>>;
161
+ }, z.core.$strict>], "kind">;
162
+ export type AppComputerPermission = z.output<typeof appComputerPermissionSchema>;
163
+ export declare const appAgentPermissionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
164
+ kind: z.ZodLiteral<"all-team-agents">;
165
+ directoryOperations: z.ZodArray<z.ZodEnum<{
166
+ "agent.list": "agent.list";
167
+ }>>;
168
+ sessionOperations: z.ZodArray<z.ZodEnum<{
169
+ "agent.read": "agent.read";
170
+ "agent.send": "agent.send";
171
+ "agent.manage": "agent.manage";
172
+ }>>;
173
+ }, z.core.$strict>, z.ZodObject<{
174
+ kind: z.ZodLiteral<"selected-agents">;
175
+ directoryOperations: z.ZodArray<z.ZodEnum<{
176
+ "agent.list": "agent.list";
177
+ }>>;
178
+ agents: z.ZodArray<z.ZodObject<{
179
+ agentId: z.ZodString;
180
+ sessionOperations: z.ZodArray<z.ZodEnum<{
181
+ "agent.read": "agent.read";
182
+ "agent.send": "agent.send";
183
+ "agent.manage": "agent.manage";
184
+ }>>;
185
+ }, z.core.$strict>>;
186
+ }, z.core.$strict>], "kind">;
187
+ export type AppAgentPermission = z.output<typeof appAgentPermissionSchema>;
188
+ export declare const appGenerationPermissionsSchema: z.ZodObject<{
189
+ llm: z.ZodBoolean;
190
+ media: z.ZodBoolean;
191
+ }, z.core.$strict>;
192
+ export type AppGenerationPermissions = z.output<typeof appGenerationPermissionsSchema>;
193
+ export declare const appMarketplacePermissionsSchema: z.ZodObject<{
194
+ browse: z.ZodBoolean;
195
+ purchase: z.ZodBoolean;
196
+ installFree: z.ZodBoolean;
197
+ }, z.core.$strict>;
198
+ export type AppMarketplacePermissions = z.output<typeof appMarketplacePermissionsSchema>;
199
+ /**
200
+ * A host's Team App directory with its permission projection, parsed strictly
201
+ * by every consumer: an unknown field is a contract change both sides make.
202
+ */
203
+ export declare const appDirectoryResponseSchema: z.ZodObject<{
204
+ actorIsTeamOwner: z.ZodBoolean;
205
+ needsUpdate: z.ZodOptional<z.ZodArray<z.ZodObject<{
206
+ installationId: z.ZodNullable<z.ZodString>;
207
+ appId: z.ZodNullable<z.ZodString>;
208
+ displayName: z.ZodString;
209
+ }, z.core.$strict>>>;
210
+ apps: z.ZodArray<z.ZodObject<{
211
+ address: z.ZodUnion<readonly [z.ZodObject<{
212
+ kind: z.ZodLiteral<"default">;
213
+ appId: z.ZodString;
214
+ }, z.core.$strict>, z.ZodObject<{
215
+ kind: z.ZodLiteral<"installation">;
216
+ installationId: z.ZodString;
217
+ }, z.core.$strict>]>;
218
+ installationId: z.ZodNullable<z.ZodString>;
219
+ surfaceId: z.ZodString;
220
+ appId: z.ZodString;
221
+ displayName: z.ZodOptional<z.ZodString>;
222
+ icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
223
+ releaseId: z.ZodNullable<z.ZodString>;
224
+ authorityVersion: z.ZodNumber;
225
+ enforcement: z.ZodNullable<z.ZodObject<{
226
+ requestId: z.ZodString;
227
+ address: z.ZodUnion<readonly [z.ZodObject<{
228
+ kind: z.ZodLiteral<"default">;
229
+ appId: z.ZodString;
230
+ }, z.core.$strict>, z.ZodObject<{
231
+ kind: z.ZodLiteral<"installation">;
232
+ installationId: z.ZodString;
233
+ }, z.core.$strict>]>;
234
+ authorityVersion: z.ZodNumber;
235
+ state: z.ZodEnum<{
236
+ unaffected: "unaffected";
237
+ pending: "pending";
238
+ applied: "applied";
239
+ expired: "expired";
240
+ }>;
241
+ outstanding: z.ZodNumber;
242
+ }, z.core.$strict>>;
243
+ handlers: z.ZodArray<z.ZodLiteral<"file.open">>;
244
+ roles: z.ZodArray<z.ZodString>;
245
+ declaredCapabilities: z.ZodArray<z.ZodString>;
246
+ calls: z.ZodOptional<z.ZodPipe<z.ZodUnknown, z.ZodTransform<readonly {
247
+ readonly appId: string;
248
+ readonly methods: readonly string[];
249
+ }[], unknown>>>;
250
+ commands: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<Readonly<{
251
+ id: string;
252
+ title: string;
253
+ category: string;
254
+ description?: string | undefined;
255
+ sigil?: string | undefined;
256
+ projections?: Readonly<{
257
+ bindings?: (Readonly<{
258
+ order?: number | undefined;
259
+ }> & Readonly<{
260
+ values: readonly string[];
261
+ }>) | undefined;
262
+ agent?: (Readonly<{
263
+ order?: number | undefined;
264
+ }> & Readonly<{
265
+ keybind?: string | undefined;
266
+ }>) | undefined;
267
+ help?: Readonly<{
268
+ order?: number | undefined;
269
+ }> | undefined;
270
+ menu?: Readonly<{
271
+ order?: number | undefined;
272
+ }> | undefined;
273
+ palette?: Readonly<{
274
+ order?: number | undefined;
275
+ }> | undefined;
276
+ slash?: (Readonly<{
277
+ order?: number | undefined;
278
+ }> & Readonly<{
279
+ aliases: readonly string[];
280
+ }>) | undefined;
281
+ }> | undefined;
282
+ }>[], unknown[]>>;
283
+ gills: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<AppDirectoryGill[], unknown[]>>;
284
+ availability: z.ZodEnum<{
285
+ available: "available";
286
+ unavailable: "unavailable";
287
+ }>;
288
+ surface: z.ZodNullable<z.ZodObject<{
289
+ stableRoute: z.ZodString;
290
+ }, z.core.$strict>>;
291
+ surfacePath: z.ZodString;
292
+ override: z.ZodNullable<z.ZodObject<{
293
+ appId: z.ZodOptional<z.ZodString>;
294
+ releaseId: z.ZodString;
295
+ surfaceRoute: z.ZodNullable<z.ZodString>;
296
+ }, z.core.$strict>>;
297
+ grants: z.ZodArray<z.ZodObject<{
298
+ operation: z.ZodString;
299
+ resourceId: z.ZodString;
300
+ }, z.core.$strict>>;
301
+ computerPermission: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
302
+ kind: z.ZodLiteral<"selected-computers">;
303
+ computers: z.ZodArray<z.ZodObject<{
304
+ computerId: z.ZodString;
305
+ operations: z.ZodArray<z.ZodEnum<{
306
+ "computer.list": "computer.list";
307
+ "computer.readFile": "computer.readFile";
308
+ "computer.writeFile": "computer.writeFile";
309
+ "computer.execute": "computer.execute";
310
+ }>>;
311
+ }, z.core.$strict>>;
312
+ }, z.core.$strict>, z.ZodObject<{
313
+ kind: z.ZodLiteral<"all-team-computers">;
314
+ operations: z.ZodArray<z.ZodEnum<{
315
+ "computer.list": "computer.list";
316
+ "computer.readFile": "computer.readFile";
317
+ "computer.writeFile": "computer.writeFile";
318
+ "computer.execute": "computer.execute";
319
+ }>>;
320
+ }, z.core.$strict>], "kind">>>;
321
+ generationPermissions: z.ZodObject<{
322
+ llm: z.ZodBoolean;
323
+ media: z.ZodBoolean;
324
+ }, z.core.$strict>;
325
+ marketplacePermissions: z.ZodObject<{
326
+ browse: z.ZodBoolean;
327
+ purchase: z.ZodBoolean;
328
+ installFree: z.ZodBoolean;
329
+ }, z.core.$strict>;
330
+ agentPermission: z.ZodDiscriminatedUnion<[z.ZodObject<{
331
+ kind: z.ZodLiteral<"all-team-agents">;
332
+ directoryOperations: z.ZodArray<z.ZodEnum<{
333
+ "agent.list": "agent.list";
334
+ }>>;
335
+ sessionOperations: z.ZodArray<z.ZodEnum<{
336
+ "agent.read": "agent.read";
337
+ "agent.send": "agent.send";
338
+ "agent.manage": "agent.manage";
339
+ }>>;
340
+ }, z.core.$strict>, z.ZodObject<{
341
+ kind: z.ZodLiteral<"selected-agents">;
342
+ directoryOperations: z.ZodArray<z.ZodEnum<{
343
+ "agent.list": "agent.list";
344
+ }>>;
345
+ agents: z.ZodArray<z.ZodObject<{
346
+ agentId: z.ZodString;
347
+ sessionOperations: z.ZodArray<z.ZodEnum<{
348
+ "agent.read": "agent.read";
349
+ "agent.send": "agent.send";
350
+ "agent.manage": "agent.manage";
351
+ }>>;
352
+ }, z.core.$strict>>;
353
+ }, z.core.$strict>], "kind">;
354
+ }, z.core.$strict>>;
355
+ roles: z.ZodRecord<z.ZodString, z.ZodObject<{
356
+ surfaceId: z.ZodNullable<z.ZodString>;
357
+ chosen: z.ZodBoolean;
358
+ }, z.core.$strict>>;
359
+ }, z.core.$strict>;
360
+ export type AppDirectory = z.output<typeof appDirectoryResponseSchema>;
361
+ /** Read-only catalog metadata for one App, without host-specific role policy. */
362
+ export declare const appCatalogEntrySchema: z.ZodObject<{
363
+ appId: z.ZodString;
364
+ surfaceId: z.ZodString;
365
+ displayName: z.ZodOptional<z.ZodString>;
366
+ gills: z.ZodArray<z.ZodObject<{
367
+ id: z.ZodString;
368
+ title: z.ZodString;
369
+ params: z.ZodOptional<z.ZodArray<z.ZodObject<{
370
+ key: z.ZodString;
371
+ label: z.ZodString;
372
+ kind: z.ZodEnum<{
373
+ computer: "computer";
374
+ repository: "repository";
375
+ branch: "branch";
376
+ }>;
377
+ required: z.ZodBoolean;
378
+ options: z.ZodOptional<z.ZodString>;
379
+ }, z.core.$strict>> & z.ZodType<readonly {
380
+ readonly kind: "computer" | "repository" | "branch";
381
+ readonly required: boolean;
382
+ readonly key: string;
383
+ readonly label: string;
384
+ readonly options?: string | undefined;
385
+ }[], {
386
+ key: string;
387
+ label: string;
388
+ kind: "computer" | "repository" | "branch";
389
+ required: boolean;
390
+ options?: string | undefined;
391
+ }[], z.core.$ZodTypeInternals<readonly {
392
+ readonly kind: "computer" | "repository" | "branch";
393
+ readonly required: boolean;
394
+ readonly key: string;
395
+ readonly label: string;
396
+ readonly options?: string | undefined;
397
+ }[], {
398
+ key: string;
399
+ label: string;
400
+ kind: "computer" | "repository" | "branch";
401
+ required: boolean;
402
+ options?: string | undefined;
403
+ }[]>>>;
404
+ desktop: z.ZodOptional<z.ZodObject<{
405
+ sizes: z.ZodArray<z.ZodEnum<{
406
+ S: "S";
407
+ M: "M";
408
+ L: "L";
409
+ }>>;
410
+ }, z.core.$strict>>;
411
+ }, z.core.$strict>>;
412
+ }, z.core.$strict>;
413
+ /** Read-only desktop metadata; identities are surface addresses, never launch authority. */
414
+ export declare const appCatalogResponseSchema: z.ZodObject<{
415
+ apps: z.ZodArray<z.ZodObject<{
416
+ appId: z.ZodString;
417
+ surfaceId: z.ZodString;
418
+ displayName: z.ZodOptional<z.ZodString>;
419
+ gills: z.ZodArray<z.ZodObject<{
420
+ id: z.ZodString;
421
+ title: z.ZodString;
422
+ params: z.ZodOptional<z.ZodArray<z.ZodObject<{
423
+ key: z.ZodString;
424
+ label: z.ZodString;
425
+ kind: z.ZodEnum<{
426
+ computer: "computer";
427
+ repository: "repository";
428
+ branch: "branch";
429
+ }>;
430
+ required: z.ZodBoolean;
431
+ options: z.ZodOptional<z.ZodString>;
432
+ }, z.core.$strict>> & z.ZodType<readonly {
433
+ readonly kind: "computer" | "repository" | "branch";
434
+ readonly required: boolean;
435
+ readonly key: string;
436
+ readonly label: string;
437
+ readonly options?: string | undefined;
438
+ }[], {
439
+ key: string;
440
+ label: string;
441
+ kind: "computer" | "repository" | "branch";
442
+ required: boolean;
443
+ options?: string | undefined;
444
+ }[], z.core.$ZodTypeInternals<readonly {
445
+ readonly kind: "computer" | "repository" | "branch";
446
+ readonly required: boolean;
447
+ readonly key: string;
448
+ readonly label: string;
449
+ readonly options?: string | undefined;
450
+ }[], {
451
+ key: string;
452
+ label: string;
453
+ kind: "computer" | "repository" | "branch";
454
+ required: boolean;
455
+ options?: string | undefined;
456
+ }[]>>>;
457
+ desktop: z.ZodOptional<z.ZodObject<{
458
+ sizes: z.ZodArray<z.ZodEnum<{
459
+ S: "S";
460
+ M: "M";
461
+ L: "L";
462
+ }>>;
463
+ }, z.core.$strict>>;
464
+ }, z.core.$strict>>;
465
+ }, z.core.$strict>>;
466
+ roles: z.ZodObject<{
467
+ inbox: z.ZodOptional<z.ZodObject<{
468
+ surfaceId: z.ZodNullable<z.ZodString>;
469
+ chosen: z.ZodBoolean;
470
+ }, z.core.$strict>>;
471
+ }, z.core.$strict>;
472
+ }, z.core.$strict>;
473
+ /** Parsed metadata returned by the read-only APPS.catalog binding. */
474
+ export type AppCatalog = z.output<typeof appCatalogResponseSchema>;
475
+ /** Complete APPS.catalog reply, including broker admission failures. */
476
+ export declare const appCatalogBrokerResultSchema: z.ZodUnion<readonly [z.ZodObject<{
477
+ apps: z.ZodArray<z.ZodObject<{
478
+ appId: z.ZodString;
479
+ surfaceId: z.ZodString;
480
+ displayName: z.ZodOptional<z.ZodString>;
481
+ gills: z.ZodArray<z.ZodObject<{
482
+ id: z.ZodString;
483
+ title: z.ZodString;
484
+ params: z.ZodOptional<z.ZodArray<z.ZodObject<{
485
+ key: z.ZodString;
486
+ label: z.ZodString;
487
+ kind: z.ZodEnum<{
488
+ computer: "computer";
489
+ repository: "repository";
490
+ branch: "branch";
491
+ }>;
492
+ required: z.ZodBoolean;
493
+ options: z.ZodOptional<z.ZodString>;
494
+ }, z.core.$strict>> & z.ZodType<readonly {
495
+ readonly kind: "computer" | "repository" | "branch";
496
+ readonly required: boolean;
497
+ readonly key: string;
498
+ readonly label: string;
499
+ readonly options?: string | undefined;
500
+ }[], {
501
+ key: string;
502
+ label: string;
503
+ kind: "computer" | "repository" | "branch";
504
+ required: boolean;
505
+ options?: string | undefined;
506
+ }[], z.core.$ZodTypeInternals<readonly {
507
+ readonly kind: "computer" | "repository" | "branch";
508
+ readonly required: boolean;
509
+ readonly key: string;
510
+ readonly label: string;
511
+ readonly options?: string | undefined;
512
+ }[], {
513
+ key: string;
514
+ label: string;
515
+ kind: "computer" | "repository" | "branch";
516
+ required: boolean;
517
+ options?: string | undefined;
518
+ }[]>>>;
519
+ desktop: z.ZodOptional<z.ZodObject<{
520
+ sizes: z.ZodArray<z.ZodEnum<{
521
+ S: "S";
522
+ M: "M";
523
+ L: "L";
524
+ }>>;
525
+ }, z.core.$strict>>;
526
+ }, z.core.$strict>>;
527
+ }, z.core.$strict>>;
528
+ roles: z.ZodObject<{
529
+ inbox: z.ZodOptional<z.ZodObject<{
530
+ surfaceId: z.ZodNullable<z.ZodString>;
531
+ chosen: z.ZodBoolean;
532
+ }, z.core.$strict>>;
533
+ }, z.core.$strict>;
534
+ }, z.core.$strict>, z.ZodObject<{
535
+ error: z.ZodString;
536
+ }, z.core.$strict>]>;
537
+ export {};