@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
package/package.json CHANGED
@@ -1,6 +1,252 @@
1
1
  {
2
2
  "name": "@fungi.computer/oyster",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.0.1",
4
+ "author": "Levi <levi@technomancy.dev>",
5
+ "description": "Run your own Apps on Cloudflare Workers or celld: installable App Releases, each with its own Durable Object, SQLite database and declared bindings",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "docs/api",
12
+ "docs/media",
13
+ "examples/standalone",
14
+ "examples/git",
15
+ "docs/site/agent-quickstart.mdx",
16
+ "README.md",
17
+ "LICENSE"
18
+ ],
19
+ "imports": {
20
+ "#frame-binding-wire-script": {
21
+ "types": "./src/frame-binding-wire-script.d.ts",
22
+ "default": "./dist/frame-binding-wire-script.js"
23
+ },
24
+ "#page-script": {
25
+ "types": "./src/page-script.d.ts",
26
+ "default": "./dist/page-script.js"
27
+ },
28
+ "#snapshot-program-scripts": {
29
+ "types": "./src/build/snapshot-program-scripts.d.ts",
30
+ "default": "./dist/build/snapshot-program-scripts.js"
31
+ }
32
+ },
33
+ "exports": {
34
+ ".": {
35
+ "types": "./dist/index.d.ts",
36
+ "import": "./dist/index.js"
37
+ },
38
+ "./cloudflare": {
39
+ "types": "./dist/cloudflare.d.ts",
40
+ "import": "./dist/cloudflare.js"
41
+ },
42
+ "./invocation": {
43
+ "types": "./dist/invocation.d.ts",
44
+ "import": "./dist/invocation.js"
45
+ },
46
+ "./host": {
47
+ "types": "./dist/host.d.ts",
48
+ "import": "./dist/host.js"
49
+ },
50
+ "./workers": {
51
+ "types": "./dist/workers.d.ts",
52
+ "import": "./dist/workers.js"
53
+ },
54
+ "./pack": {
55
+ "types": "./dist/pack.d.ts",
56
+ "import": "./dist/pack.js"
57
+ },
58
+ "./git": {
59
+ "types": "./dist/git.d.ts",
60
+ "import": "./dist/git.js"
61
+ },
62
+ "./workers-git": {
63
+ "types": "./dist/workers-git.d.ts",
64
+ "import": "./dist/workers-git.js"
65
+ },
66
+ "./event-recipients": {
67
+ "types": "./dist/event-recipients.d.ts",
68
+ "import": "./dist/event-recipients.js"
69
+ },
70
+ "./shell": {
71
+ "types": "./dist/shell/index.d.ts",
72
+ "import": "./dist/shell/index.js"
73
+ },
74
+ "./shell/workbench": {
75
+ "types": "./dist/shell/workbench.d.ts",
76
+ "import": "./dist/shell/workbench.js"
77
+ },
78
+ "./shell/shell-module": {
79
+ "types": "./dist/shell/shell-module.d.ts",
80
+ "import": "./dist/shell/shell-module.js"
81
+ },
82
+ "./shell/command-host": {
83
+ "types": "./dist/shell/command-host.d.ts",
84
+ "import": "./dist/shell/command-host.js"
85
+ },
86
+ "./shell/keys": {
87
+ "types": "./dist/shell/keys.d.ts",
88
+ "import": "./dist/shell/keys.js"
89
+ },
90
+ "./shell/commands": {
91
+ "types": "./dist/shell/commands.d.ts",
92
+ "import": "./dist/shell/commands.js"
93
+ },
94
+ "./shell/window-manager": {
95
+ "types": "./dist/shell/window-manager.d.ts",
96
+ "import": "./dist/shell/window-manager.js"
97
+ },
98
+ "./shell/app-directory": {
99
+ "types": "./dist/shell/app-directory.d.ts",
100
+ "import": "./dist/shell/app-directory.js"
101
+ },
102
+ "./app-storage": {
103
+ "types": "./dist/app-storage.d.ts",
104
+ "import": "./dist/app-storage.js"
105
+ },
106
+ "./mcp": {
107
+ "types": "./dist/mcp.d.ts",
108
+ "import": "./dist/mcp.js"
109
+ },
110
+ "./files": {
111
+ "types": "./dist/files.d.ts",
112
+ "import": "./dist/files.js"
113
+ },
114
+ "./computer": {
115
+ "types": "./dist/computer.d.ts",
116
+ "import": "./dist/computer.js"
117
+ },
118
+ "./agents": {
119
+ "types": "./dist/agents.d.ts",
120
+ "import": "./dist/agents.js"
121
+ },
122
+ "./build": {
123
+ "types": "./dist/build.d.ts",
124
+ "import": "./dist/build.js"
125
+ },
126
+ "./app-builds": {
127
+ "types": "./dist/app-builds.d.ts",
128
+ "import": "./dist/app-builds.js"
129
+ },
130
+ "./r2-artifact-writer": {
131
+ "types": "./dist/build/r2-artifact-writer.d.ts",
132
+ "import": "./dist/build/r2-artifact-writer.js"
133
+ },
134
+ "./build-contract": {
135
+ "types": "./dist/build-contract.d.ts",
136
+ "import": "./dist/build-contract.js"
137
+ },
138
+ "./build-jobs": {
139
+ "types": "./dist/build-jobs.d.ts",
140
+ "import": "./dist/build-jobs.js"
141
+ },
142
+ "./source": {
143
+ "types": "./dist/source/index.d.ts",
144
+ "import": "./dist/source/index.js"
145
+ },
146
+ "./source/template-write": {
147
+ "types": "./dist/source/template-write.d.ts",
148
+ "import": "./dist/source/template-write.js"
149
+ },
150
+ "./app-sources": {
151
+ "types": "./dist/app-sources.d.ts",
152
+ "import": "./dist/app-sources.js"
153
+ },
154
+ "./catalog-frame": {
155
+ "types": "./dist/catalog-frame.d.ts",
156
+ "import": "./dist/catalog-frame.js"
157
+ },
158
+ "./media": {
159
+ "types": "./dist/media.d.ts",
160
+ "import": "./dist/media.js"
161
+ },
162
+ "./root-data": {
163
+ "types": "./dist/root-data.d.ts",
164
+ "import": "./dist/root-data.js"
165
+ },
166
+ "./page": {
167
+ "types": "./dist/page/mount.d.ts",
168
+ "import": "./dist/page/mount.js"
169
+ },
170
+ "./tenant": {
171
+ "types": "./dist/tenant.d.ts",
172
+ "import": "./dist/tenant.js"
173
+ },
174
+ "./auth": {
175
+ "types": "./dist/auth.d.ts",
176
+ "import": "./dist/auth.js"
177
+ },
178
+ "./apps": {
179
+ "types": "./dist/apps/index.d.ts",
180
+ "import": "./dist/apps/index.js"
181
+ },
182
+ "./keys": {
183
+ "types": "./dist/keys.d.ts",
184
+ "import": "./dist/keys.js"
185
+ },
186
+ "./testing": {
187
+ "types": "./dist/testing/index.d.ts",
188
+ "import": "./dist/testing/index.js"
189
+ },
190
+ "./testing/workers-runtime": {
191
+ "types": "./dist/testing/workers-runtime.d.ts",
192
+ "import": "./dist/testing/workers-runtime.js"
193
+ },
194
+ "./testing/worker": {
195
+ "types": "./dist/testing/worker.d.ts",
196
+ "import": "./dist/testing/worker.js"
197
+ }
198
+ },
199
+ "dependencies": {
200
+ "@fungi.computer/cloudflare-worker-bundler": "0.2.3-fungi.0",
201
+ "@fungi.computer/agar": "0.0.1",
202
+ "@fungi.computer/burrow": "0.0.1",
203
+ "@fungi.computer/cairn": "0.0.1",
204
+ "@fungi.computer/ear-tag": "0.0.1",
205
+ "@fungi.computer/caps": "0.0.1",
206
+ "@fungi.computer/carrier": "0.0.1",
207
+ "@fungi.computer/forage": "0.0.1",
208
+ "@fungi.computer/gills": "0.0.1",
209
+ "@fungi.computer/knapsack": "0.0.1",
210
+ "@fungi.computer/mycelium": "0.0.1",
211
+ "@fungi.computer/puffball": "0.0.1",
212
+ "@fungi.computer/sigils": "0.0.1",
213
+ "@fungi.computer/watchdog": "0.0.1",
214
+ "@fungi.computer/whistle": "0.0.1",
215
+ "@modelcontextprotocol/server": "2.0.0",
216
+ "@pnpm/lockfile.fs": "1100.2.13",
217
+ "@pnpm/lockfile.pruner": "1100.0.27",
218
+ "@fungi.computer/capnweb": "0.12.0",
219
+ "effect": "4.0.2",
220
+ "esbuild": "0.28.2",
221
+ "fast-json-stable-stringify": "2.1.0",
222
+ "hono": "4.13.5",
223
+ "isomorphic-git": "1.42.2",
224
+ "jose": "6.2.11",
225
+ "memfs": "4.80.0",
226
+ "mime": "4.1.0",
227
+ "path-to-regexp": "8.4.2",
228
+ "zod": "4.4.3"
229
+ },
230
+ "license": "MIT",
231
+ "peerDependencies": {
232
+ "react": "^18.3.1 || ^19.2.0",
233
+ "react-dom": "^18.3.1 || ^19.2.0",
234
+ "wrangler": "^4.127.1"
235
+ },
236
+ "peerDependenciesMeta": {
237
+ "wrangler": {
238
+ "optional": true
239
+ }
240
+ },
241
+ "repository": {
242
+ "type": "git",
243
+ "url": "git+https://github.com/fungi-computer/oyster.git"
244
+ },
245
+ "fungi": {
246
+ "build": {
247
+ "typescript": [
248
+ "src/shell/tsconfig.build.json"
249
+ ]
250
+ }
251
+ }
6
252
  }