@fungi.computer/puffball 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.
- package/LICENSE +21 -0
- package/README.md +443 -2
- package/dist/app-api.d.ts +7 -0
- package/dist/app-api.js +61 -0
- package/dist/app-backend-binding-vocabulary.d.ts +299 -0
- package/dist/app-backend-binding-vocabulary.js +257 -0
- package/dist/app-backend-bindings.d.ts +21 -0
- package/dist/app-backend-bindings.js +47 -0
- package/dist/app-declaration.d.ts +46 -0
- package/dist/app-declaration.js +115 -0
- package/dist/app-event-facts.d.ts +40 -0
- package/dist/app-event-facts.js +28 -0
- package/dist/app-method-context.d.ts +109 -0
- package/dist/app-method-context.js +9 -0
- package/dist/app-method-runtime.d.ts +86 -0
- package/dist/app-method-runtime.js +122 -0
- package/dist/app-origin-paths.d.ts +6 -0
- package/dist/app-origin-paths.js +6 -0
- package/dist/app-vocabulary.d.ts +189 -0
- package/dist/app-vocabulary.js +103 -0
- package/dist/app.d.ts +379 -0
- package/dist/app.js +71 -0
- package/dist/artifact-dispositions.d.ts +115 -0
- package/dist/artifact-dispositions.js +234 -0
- package/dist/assets.d.ts +54 -0
- package/dist/assets.js +89 -0
- package/dist/backend.d.ts +41 -0
- package/dist/backend.js +29 -0
- package/dist/background-replay.d.ts +115 -0
- package/dist/background-replay.js +175 -0
- package/dist/buyer-references.d.ts +69 -0
- package/dist/buyer-references.js +154 -0
- package/dist/cloudflare-assets.d.ts +48 -0
- package/dist/cloudflare-assets.js +105 -0
- package/dist/cloudflare.d.ts +254 -0
- package/dist/cloudflare.js +1619 -0
- package/dist/effect.d.ts +73 -0
- package/dist/effect.js +325 -0
- package/dist/git-representation.d.ts +13 -0
- package/dist/git-representation.js +16 -0
- package/dist/inbox.d.ts +132 -0
- package/dist/inbox.js +81 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +85 -0
- package/dist/internal/app-description.d.ts +14 -0
- package/dist/internal/app-description.js +98 -0
- package/dist/internal/app-release-artifact-reader.d.ts +26 -0
- package/dist/internal/app-release-artifact-reader.js +1 -0
- package/dist/internal/app-release-contract.d.ts +540 -0
- package/dist/internal/app-release-contract.js +169 -0
- package/dist/internal/app-release-schema.d.ts +1676 -0
- package/dist/internal/app-release-schema.js +386 -0
- package/dist/internal/app-release-store.d.ts +47 -0
- package/dist/internal/app-release-store.js +1 -0
- package/dist/internal/background-sync.d.ts +7 -0
- package/dist/internal/background-sync.js +10 -0
- package/dist/internal/deterministic-memory-app-release-store.d.ts +14 -0
- package/dist/internal/deterministic-memory-app-release-store.js +319 -0
- package/dist/internal/failure.d.ts +2 -0
- package/dist/internal/failure.js +9 -0
- package/dist/internal/immutable-release-material.d.ts +3 -0
- package/dist/internal/immutable-release-material.js +13 -0
- package/dist/internal/promise-app-release-store-adapter.d.ts +9 -0
- package/dist/internal/promise-app-release-store-adapter.js +65 -0
- package/dist/internal/promise-artifact-reader-adapter.d.ts +9 -0
- package/dist/internal/promise-artifact-reader-adapter.js +18 -0
- package/dist/internal/public-route-sql.d.ts +10 -0
- package/dist/internal/public-route-sql.js +239 -0
- package/dist/internal/public-website-authority.d.ts +338 -0
- package/dist/internal/public-website-authority.js +50 -0
- package/dist/internal/public-website-delivery.d.ts +59 -0
- package/dist/internal/public-website-delivery.js +232 -0
- package/dist/internal/public-website-fetch.d.ts +8 -0
- package/dist/internal/public-website-fetch.js +54 -0
- package/dist/internal/release-transition-material.d.ts +3 -0
- package/dist/internal/release-transition-material.js +11 -0
- package/dist/internal/verified-artifact-snapshot.d.ts +41 -0
- package/dist/internal/verified-artifact-snapshot.js +91 -0
- package/dist/public-route-moderation.d.ts +83 -0
- package/dist/public-route-moderation.js +236 -0
- package/dist/public-route-policy.d.ts +51 -0
- package/dist/public-route-policy.js +88 -0
- package/dist/public-routes.d.ts +34 -0
- package/dist/public-routes.js +136 -0
- package/dist/publisher.d.ts +61 -0
- package/dist/publisher.js +16 -0
- package/dist/safety-takedown.d.ts +56 -0
- package/dist/safety-takedown.js +146 -0
- package/dist/seller-closure-notice.d.ts +14 -0
- package/dist/seller-closure-notice.js +14 -0
- package/dist/seller-closure.d.ts +15 -0
- package/dist/seller-closure.js +31 -0
- package/dist/testing.d.ts +8 -0
- package/dist/testing.js +47 -0
- package/docs/api/README.md +26 -0
- package/docs/api/app-backend-binding-vocabulary.md +276 -0
- package/docs/api/app-backend-bindings.md +141 -0
- package/docs/api/app-event-facts.md +110 -0
- package/docs/api/app-method-context.md +166 -0
- package/docs/api/app-method-runtime.md +330 -0
- package/docs/api/backend.md +108 -0
- package/docs/api/background-replay.md +516 -0
- package/docs/api/cloudflare.md +1044 -0
- package/docs/api/effect.md +2429 -0
- package/docs/api/git-representation.md +56 -0
- package/docs/api/inbox.md +289 -0
- package/docs/api/index.md +2868 -0
- package/docs/api/publisher.md +147 -0
- package/docs/api/testing.md +31 -0
- package/package.json +158 -3
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<!-- Generated by Botanical API docs (TypeDoc + typedoc-plugin-markdown). Do not edit. -->
|
|
2
|
+
|
|
3
|
+
[**@fungi.computer/puffball**](README.md)
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
[@fungi.computer/puffball](README.md) / git-representation
|
|
8
|
+
|
|
9
|
+
# git-representation
|
|
10
|
+
|
|
11
|
+
## Variables
|
|
12
|
+
|
|
13
|
+
### gitRepositoryNameSchema
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
const gitRepositoryNameSchema: ZodString;
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Local repository name; the host maps it into the installation's namespace.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
### gitSha1Schema
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
const gitSha1Schema: ZodString;
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
A lowercase Git SHA-1 object ID, including the zero ID for creation/deletion.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
### gitRefUpdateSchema
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
const gitRefUpdateSchema: ZodObject<
|
|
37
|
+
{
|
|
38
|
+
ref: ZodString;
|
|
39
|
+
before: ZodString;
|
|
40
|
+
after: ZodString;
|
|
41
|
+
},
|
|
42
|
+
$strict
|
|
43
|
+
>;
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
One ref update, bounded before a host asks the App or forwards the push.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
### gitPushEventIdSchema
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
const gitPushEventIdSchema: ZodString;
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Host push event IDs include the Computer and local event identity.
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
<!-- Generated by Botanical API docs (TypeDoc + typedoc-plugin-markdown). Do not edit. -->
|
|
2
|
+
|
|
3
|
+
[**@fungi.computer/puffball**](README.md)
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
[@fungi.computer/puffball](README.md) / inbox
|
|
8
|
+
|
|
9
|
+
# inbox
|
|
10
|
+
|
|
11
|
+
## Type Aliases
|
|
12
|
+
|
|
13
|
+
### MemberInboxSession
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
type MemberInboxSession = typeof memberInboxSessionSchema.Type;
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Parsed Session facts in the shared Inbox vocabulary.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
### WorkflowReviewKey
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
type WorkflowReviewKey = typeof workflowReviewKeySchema.Type;
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The run, node and iteration that identify one human review.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
### WorkflowReviewInboxItem
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
type WorkflowReviewInboxItem = typeof workflowReviewInboxItemSchema.Type;
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
A reviewer-visible projection of a saved Workflow review.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
### MemberInboxItem
|
|
44
|
+
|
|
45
|
+
```ts
|
|
46
|
+
type MemberInboxItem = typeof memberInboxItemSchema.Type;
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
An Inbox row is a Session or a human Workflow review.
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
### MemberInboxDeltaItem
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
type MemberInboxDeltaItem = typeof memberInboxDeltaItemSchema.Type;
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
One record carried by an Inbox row delta.
|
|
60
|
+
|
|
61
|
+
## Variables
|
|
62
|
+
|
|
63
|
+
### memberInboxSessionSchema
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
const memberInboxSessionSchema: Union<
|
|
67
|
+
readonly [
|
|
68
|
+
Struct<{
|
|
69
|
+
agentId: String;
|
|
70
|
+
sessionId: String;
|
|
71
|
+
title: String;
|
|
72
|
+
triggerId: optionalKey<String>;
|
|
73
|
+
createdAt: Number;
|
|
74
|
+
lastActivityAt: Number;
|
|
75
|
+
settledAt: optionalKey<Number>;
|
|
76
|
+
visitedAt: optionalKey<Number>;
|
|
77
|
+
state: Literals<readonly ["needs_you", "running", "errored", "done"]>;
|
|
78
|
+
}>,
|
|
79
|
+
Struct<{
|
|
80
|
+
agentId: String;
|
|
81
|
+
sessionId: String;
|
|
82
|
+
state: Literal<"unavailable">;
|
|
83
|
+
}>,
|
|
84
|
+
]
|
|
85
|
+
>;
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
One Session, projected by its Agent owner, with this member's visit.
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
### workflowReviewKeySchema
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
const workflowReviewKeySchema: Struct<{
|
|
96
|
+
runId: String;
|
|
97
|
+
nodeId: String;
|
|
98
|
+
iteration: String;
|
|
99
|
+
}>;
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
A review's engine identity, independent of its native delivery coordinates.
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
### workflowReviewInboxItemSchema
|
|
107
|
+
|
|
108
|
+
```ts
|
|
109
|
+
const workflowReviewInboxItemSchema: Struct<{
|
|
110
|
+
kind: Literal<"workflow-review">;
|
|
111
|
+
key: Struct<{
|
|
112
|
+
runId: String;
|
|
113
|
+
nodeId: String;
|
|
114
|
+
iteration: String;
|
|
115
|
+
}>;
|
|
116
|
+
installationId: String;
|
|
117
|
+
workflowId: NullOr<String>;
|
|
118
|
+
workflowTitle: String;
|
|
119
|
+
reviewTitle: String;
|
|
120
|
+
reviewers: Literals<readonly ["runner", "owners"]>;
|
|
121
|
+
show: $Array<Codec<Json, Json, never, never>>;
|
|
122
|
+
choices: optionalKey<$Array<String>>;
|
|
123
|
+
openedAt: Number;
|
|
124
|
+
expiresAt: Number;
|
|
125
|
+
state: Literals<
|
|
126
|
+
readonly ["pending", "answered", "delivered", "timed_out", "closed"]
|
|
127
|
+
>;
|
|
128
|
+
}>;
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Facts delivered to an admitted reviewer by the run owner, never a fake Session.
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
### memberInboxItemSchema
|
|
136
|
+
|
|
137
|
+
```ts
|
|
138
|
+
const memberInboxItemSchema: Union<
|
|
139
|
+
readonly [
|
|
140
|
+
Union<
|
|
141
|
+
readonly [
|
|
142
|
+
Struct<{
|
|
143
|
+
agentId: String;
|
|
144
|
+
sessionId: String;
|
|
145
|
+
title: String;
|
|
146
|
+
triggerId: optionalKey<String>;
|
|
147
|
+
createdAt: Number;
|
|
148
|
+
lastActivityAt: Number;
|
|
149
|
+
settledAt: optionalKey<Number>;
|
|
150
|
+
visitedAt: optionalKey<Number>;
|
|
151
|
+
state: Literals<readonly ["needs_you", "running", "errored", "done"]>;
|
|
152
|
+
}>,
|
|
153
|
+
Struct<{
|
|
154
|
+
agentId: String;
|
|
155
|
+
sessionId: String;
|
|
156
|
+
state: Literal<"unavailable">;
|
|
157
|
+
}>,
|
|
158
|
+
]
|
|
159
|
+
>,
|
|
160
|
+
Struct<{
|
|
161
|
+
kind: Literal<"workflow-review">;
|
|
162
|
+
key: Struct<{
|
|
163
|
+
runId: String;
|
|
164
|
+
nodeId: String;
|
|
165
|
+
iteration: String;
|
|
166
|
+
}>;
|
|
167
|
+
installationId: String;
|
|
168
|
+
workflowId: NullOr<String>;
|
|
169
|
+
workflowTitle: String;
|
|
170
|
+
reviewTitle: String;
|
|
171
|
+
reviewers: Literals<readonly ["runner", "owners"]>;
|
|
172
|
+
show: $Array<Codec<Json, Json, never, never>>;
|
|
173
|
+
choices: optionalKey<$Array<String>>;
|
|
174
|
+
openedAt: Number;
|
|
175
|
+
expiresAt: Number;
|
|
176
|
+
state: Literals<
|
|
177
|
+
readonly ["pending", "answered", "delivered", "timed_out", "closed"]
|
|
178
|
+
>;
|
|
179
|
+
}>,
|
|
180
|
+
]
|
|
181
|
+
>;
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
The INBOX wire has one vocabulary on every host and App client.
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
### memberInboxDeltaItemSchema
|
|
189
|
+
|
|
190
|
+
```ts
|
|
191
|
+
const memberInboxDeltaItemSchema: Union<
|
|
192
|
+
readonly [
|
|
193
|
+
Union<
|
|
194
|
+
readonly [
|
|
195
|
+
Union<
|
|
196
|
+
readonly [
|
|
197
|
+
Struct<{
|
|
198
|
+
agentId: String;
|
|
199
|
+
sessionId: String;
|
|
200
|
+
title: String;
|
|
201
|
+
triggerId: optionalKey<String>;
|
|
202
|
+
createdAt: Number;
|
|
203
|
+
lastActivityAt: Number;
|
|
204
|
+
settledAt: optionalKey<Number>;
|
|
205
|
+
visitedAt: optionalKey<Number>;
|
|
206
|
+
state: Literals<
|
|
207
|
+
readonly ["needs_you", "running", "errored", "done"]
|
|
208
|
+
>;
|
|
209
|
+
}>,
|
|
210
|
+
Struct<{
|
|
211
|
+
agentId: String;
|
|
212
|
+
sessionId: String;
|
|
213
|
+
state: Literal<"unavailable">;
|
|
214
|
+
}>,
|
|
215
|
+
]
|
|
216
|
+
>,
|
|
217
|
+
Struct<{
|
|
218
|
+
kind: Literal<"workflow-review">;
|
|
219
|
+
key: Struct<{
|
|
220
|
+
runId: String;
|
|
221
|
+
nodeId: String;
|
|
222
|
+
iteration: String;
|
|
223
|
+
}>;
|
|
224
|
+
installationId: String;
|
|
225
|
+
workflowId: NullOr<String>;
|
|
226
|
+
workflowTitle: String;
|
|
227
|
+
reviewTitle: String;
|
|
228
|
+
reviewers: Literals<readonly ["runner", "owners"]>;
|
|
229
|
+
show: $Array<Codec<Json, Json, never, never>>;
|
|
230
|
+
choices: optionalKey<$Array<String>>;
|
|
231
|
+
openedAt: Number;
|
|
232
|
+
expiresAt: Number;
|
|
233
|
+
state: Literals<
|
|
234
|
+
readonly ["pending", "answered", "delivered", "timed_out", "closed"]
|
|
235
|
+
>;
|
|
236
|
+
}>,
|
|
237
|
+
]
|
|
238
|
+
>,
|
|
239
|
+
Struct<{
|
|
240
|
+
agentId: String;
|
|
241
|
+
sessionId: String;
|
|
242
|
+
deleted: Literal<true>;
|
|
243
|
+
}>,
|
|
244
|
+
]
|
|
245
|
+
>;
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
A row replacement or an Agent-owned Session deletion.
|
|
249
|
+
|
|
250
|
+
## Functions
|
|
251
|
+
|
|
252
|
+
### memberInboxKey()
|
|
253
|
+
|
|
254
|
+
```ts
|
|
255
|
+
function memberInboxKey(agentId, sessionId): string;
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
Stable identity of one Session across Agents.
|
|
259
|
+
|
|
260
|
+
#### Parameters
|
|
261
|
+
|
|
262
|
+
| Parameter | Type |
|
|
263
|
+
| ----------- | -------- |
|
|
264
|
+
| `agentId` | `string` |
|
|
265
|
+
| `sessionId` | `string` |
|
|
266
|
+
|
|
267
|
+
#### Returns
|
|
268
|
+
|
|
269
|
+
`string`
|
|
270
|
+
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
### memberInboxItemKey()
|
|
274
|
+
|
|
275
|
+
```ts
|
|
276
|
+
function memberInboxItemKey(item): string;
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
Stable placement across review transitions; Map iterations remain distinct.
|
|
280
|
+
|
|
281
|
+
#### Parameters
|
|
282
|
+
|
|
283
|
+
| Parameter | Type |
|
|
284
|
+
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
285
|
+
| `item` | \| \{ `agentId`: `string`; `sessionId`: `string`; `title`: `string`; `triggerId?`: `string`; `createdAt`: `number`; `lastActivityAt`: `number`; `settledAt?`: `number`; `visitedAt?`: `number`; `state`: `"running"` \| `"done"` \| `"errored"` \| `"needs_you"`; \} \| \{ `agentId`: `string`; `sessionId`: `string`; `state`: `"unavailable"`; \} \| \{ `kind`: `"workflow-review"`; `key`: \{ `runId`: `string`; `nodeId`: `string`; `iteration`: `string`; \}; `installationId`: `string`; `workflowId`: `string` \| `null`; `workflowTitle`: `string`; `reviewTitle`: `string`; `reviewers`: `"owners"` \| `"runner"`; `show`: readonly `Json`[]; `choices?`: readonly `string`[]; `openedAt`: `number`; `expiresAt`: `number`; `state`: `"closed"` \| `"pending"` \| `"answered"` \| `"delivered"` \| `"timed_out"`; \} \| \{ `agentId`: `string`; `sessionId`: `string`; `deleted`: `true`; \} |
|
|
286
|
+
|
|
287
|
+
#### Returns
|
|
288
|
+
|
|
289
|
+
`string`
|