@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.
- package/dist/agent-message-meta.d.ts +15 -15
- package/dist/agent-message-meta.js +5 -5
- package/dist/agents.d.ts +86 -13
- package/dist/agents.js +48 -25
- package/dist/apps.js +4 -4
- package/dist/backend-definition.d.ts +41 -4
- package/dist/backend-definition.js +70 -10
- package/dist/backend.js +4 -4
- package/dist/channels.js +4 -4
- package/dist/computer-contracts.d.ts +15 -15
- package/dist/computer-contracts.js +14 -14
- package/dist/computer.js +16 -16
- package/dist/game-servers.js +2 -2
- package/dist/git-rpc.d.ts +23 -23
- package/dist/git-rpc.js +14 -16
- package/dist/git.d.ts +9 -9
- package/dist/git.js +8 -8
- package/dist/host.d.ts +3 -1
- package/dist/host.js +5 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +3 -2
- package/dist/inference.js +2 -1
- package/dist/internal/app-session.js +37 -1
- package/dist/internal/protocol.d.ts +4 -4
- package/dist/internal/schemas.d.ts +33 -7
- package/dist/internal/schemas.js +107 -16
- package/dist/marketplace.js +7 -5
- package/dist/media-request-id.d.ts +1 -1
- package/dist/media-request-id.js +2 -2
- package/dist/media.js +2 -2
- package/dist/method-presentation.d.ts +7 -0
- package/dist/method-presentation.js +14 -0
- package/dist/method-refusal.d.ts +5 -5
- package/dist/method-refusal.js +4 -4
- package/dist/react.d.ts +14 -2
- package/dist/react.js +40 -4
- package/dist/read-copy.d.ts +1 -1
- package/dist/read-copy.js +3 -6
- package/dist/storage.js +1 -1
- package/dist/test-kit/git.js +19 -2
- package/dist/window.d.ts +64 -0
- package/dist/window.js +31 -0
- package/docs/api/backend-definition.md +83 -9
- package/docs/api/backend.md +44 -38
- package/docs/api/git-rpc.md +35 -35
- package/docs/api/git.md +66 -80
- package/docs/api/index.md +775 -128
- package/docs/api/media-request-id.md +1 -1
- package/docs/api/method-presentation.md +21 -0
- package/docs/api/modules.md +1 -0
- package/docs/api/react.md +10 -4
- 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.
|
package/docs/api/modules.md
CHANGED
|
@@ -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.
|
|
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
|
|
164
|
-
"@fungi.computer/whistle": "0.0.
|
|
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
|
|
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",
|