@fungi.computer/agar 0.1.0 → 0.2.0

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 (52) hide show
  1. package/dist/agent-message-meta.d.ts +15 -15
  2. package/dist/agent-message-meta.js +5 -5
  3. package/dist/agents.d.ts +86 -13
  4. package/dist/agents.js +48 -25
  5. package/dist/apps.js +4 -4
  6. package/dist/backend-definition.d.ts +41 -4
  7. package/dist/backend-definition.js +70 -10
  8. package/dist/backend.js +4 -4
  9. package/dist/channels.js +4 -4
  10. package/dist/computer-contracts.d.ts +15 -15
  11. package/dist/computer-contracts.js +14 -14
  12. package/dist/computer.js +16 -16
  13. package/dist/game-servers.js +2 -2
  14. package/dist/git-rpc.d.ts +23 -23
  15. package/dist/git-rpc.js +14 -16
  16. package/dist/git.d.ts +9 -9
  17. package/dist/git.js +8 -8
  18. package/dist/host.d.ts +3 -1
  19. package/dist/host.js +5 -1
  20. package/dist/index.d.ts +5 -4
  21. package/dist/index.js +3 -2
  22. package/dist/inference.js +2 -1
  23. package/dist/internal/app-session.js +37 -1
  24. package/dist/internal/protocol.d.ts +4 -4
  25. package/dist/internal/schemas.d.ts +33 -7
  26. package/dist/internal/schemas.js +107 -16
  27. package/dist/marketplace.js +7 -5
  28. package/dist/media-request-id.d.ts +1 -1
  29. package/dist/media-request-id.js +2 -2
  30. package/dist/media.js +2 -2
  31. package/dist/method-presentation.d.ts +7 -0
  32. package/dist/method-presentation.js +14 -0
  33. package/dist/method-refusal.d.ts +5 -5
  34. package/dist/method-refusal.js +4 -4
  35. package/dist/react.d.ts +14 -2
  36. package/dist/react.js +40 -4
  37. package/dist/read-copy.d.ts +1 -1
  38. package/dist/read-copy.js +3 -6
  39. package/dist/storage.js +1 -1
  40. package/dist/test-kit/git.js +19 -2
  41. package/dist/window.d.ts +64 -0
  42. package/dist/window.js +31 -0
  43. package/docs/api/backend-definition.md +83 -9
  44. package/docs/api/backend.md +44 -38
  45. package/docs/api/git-rpc.md +35 -35
  46. package/docs/api/git.md +66 -80
  47. package/docs/api/index.md +775 -128
  48. package/docs/api/media-request-id.md +1 -1
  49. package/docs/api/method-presentation.md +21 -0
  50. package/docs/api/modules.md +1 -0
  51. package/docs/api/react.md +10 -4
  52. package/package.json +10 -5
@@ -25,7 +25,7 @@ One canonical identity for a retryable Media operation.
25
25
  ### mediaRequestIdSchema
26
26
 
27
27
  ```ts
28
- const mediaRequestIdSchema: ZodString;
28
+ const mediaRequestIdSchema: ZodLazy<ZodString>;
29
29
  ```
30
30
 
31
31
  Public wire grammar for the canonical retry identity, visible in App JSON
@@ -0,0 +1,21 @@
1
+ <!-- Generated by Botanical API docs (TypeDoc + typedoc-plugin-markdown). Do not edit. -->
2
+
3
+ [**@fungi.computer/agar**](README.md)
4
+
5
+ ---
6
+
7
+ [@fungi.computer/agar](modules.md) / method-presentation
8
+
9
+ # method-presentation
10
+
11
+ ## Variables
12
+
13
+ ### resultRows
14
+
15
+ ```ts
16
+ const resultRows: ResultRowCodec;
17
+ ```
18
+
19
+ The shared result row's decoder and JSON boundary, for
20
+ `defineAppMethod({ present: { verb, row, rows: resultRows } })`. Only backends
21
+ that present import this module, so the rest carry no decoder.
@@ -25,6 +25,7 @@
25
25
  | [index](index.md) | - |
26
26
  | [media-json](media-json.md) | - |
27
27
  | [media-request-id](media-request-id.md) | - |
28
+ | [method-presentation](method-presentation.md) | - |
28
29
  | [query](query.md) | - |
29
30
  | [react](react.md) | - |
30
31
  | [read-copy](read-copy.md) | - |
package/docs/api/react.md CHANGED
@@ -49,7 +49,13 @@ Options passed to `mountApp`.
49
49
  type HostNavigationOptions = Readonly<{
50
50
  canGoBack: boolean;
51
51
  title?: string;
52
+ crumbs?: readonly AppCrumb[];
53
+ primary?: readonly AppHeaderCommand[];
54
+ menu?: readonly AppHeaderCommand[];
55
+ status?: readonly AppHeaderStatus[];
52
56
  onBack: AppBackHandler;
57
+ onCrumb?: (crumbId, siblingId?) => void;
58
+ onAction?: (actionId) => void;
53
59
  }>;
54
60
  ```
55
61
 
@@ -206,10 +212,10 @@ nothing. Unmounting withdraws Back from the host chrome.
206
212
 
207
213
  #### Parameters
208
214
 
209
- | Parameter | Type |
210
- | ------------------- | -------------------------------------------------------------------------------------------------------------------------- |
211
- | `navigation` | \| `Readonly`\<\{ `publish`: `Promise`\<`void`\>; `onBack`: [`Disposer`](index.md#disposer); \}\> \| `null` \| `undefined` |
212
- | `__namedParameters` | [`HostNavigationOptions`](#hostnavigationoptions) |
215
+ | Parameter | Type |
216
+ | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
217
+ | `navigation` | \| `Readonly`\<\{ `publish`: `Promise`\<`void`\>; `onBack`: [`Disposer`](index.md#disposer); `onActivate`: [`Disposer`](index.md#disposer); \}\> \| `null` \| `undefined` |
218
+ | `__namedParameters` | [`HostNavigationOptions`](#hostnavigationoptions) |
213
219
 
214
220
  #### Returns
215
221
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fungi.computer/agar",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "author": "Levi <levi@technomancy.dev>",
5
5
  "description": "App contract for fungi.computer: typed backend methods, host capabilities and the App frontend connection",
6
6
  "type": "module",
@@ -86,6 +86,10 @@
86
86
  "types": "./dist/backend-definition.d.ts",
87
87
  "import": "./dist/backend-definition.js"
88
88
  },
89
+ "./method-presentation": {
90
+ "types": "./dist/method-presentation.d.ts",
91
+ "import": "./dist/method-presentation.js"
92
+ },
89
93
  "./backend": {
90
94
  "types": "./dist/backend.d.ts",
91
95
  "import": "./dist/backend.js"
@@ -160,8 +164,8 @@
160
164
  }
161
165
  },
162
166
  "dependencies": {
163
- "@fungi.computer/puffball": "0.0.2",
164
- "@fungi.computer/whistle": "0.0.1",
167
+ "@fungi.computer/puffball": "0.1.0",
168
+ "@fungi.computer/whistle": "0.0.2",
165
169
  "@opentui/keymap": "0.5.10",
166
170
  "@fungi.computer/capnweb": "0.12.0",
167
171
  "effect": "4.0.2",
@@ -170,8 +174,9 @@
170
174
  "eventsource": "5.1.1",
171
175
  "isomorphic-git": "1.42.2",
172
176
  "buffer": "6.0.3",
173
- "@fungi.computer/gills": "0.0.1",
174
- "@fungi.computer/cairn": "0.0.1"
177
+ "@fungi.computer/gills": "0.1.0",
178
+ "@fungi.computer/cairn": "0.0.1",
179
+ "@fungi.computer/sprite": "0.1.0"
175
180
  },
176
181
  "peerDependencies": {
177
182
  "react": "^18.3.1 || ^19.2.0",