@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.
Files changed (110) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +443 -2
  3. package/dist/app-api.d.ts +7 -0
  4. package/dist/app-api.js +61 -0
  5. package/dist/app-backend-binding-vocabulary.d.ts +299 -0
  6. package/dist/app-backend-binding-vocabulary.js +257 -0
  7. package/dist/app-backend-bindings.d.ts +21 -0
  8. package/dist/app-backend-bindings.js +47 -0
  9. package/dist/app-declaration.d.ts +46 -0
  10. package/dist/app-declaration.js +115 -0
  11. package/dist/app-event-facts.d.ts +40 -0
  12. package/dist/app-event-facts.js +28 -0
  13. package/dist/app-method-context.d.ts +109 -0
  14. package/dist/app-method-context.js +9 -0
  15. package/dist/app-method-runtime.d.ts +86 -0
  16. package/dist/app-method-runtime.js +122 -0
  17. package/dist/app-origin-paths.d.ts +6 -0
  18. package/dist/app-origin-paths.js +6 -0
  19. package/dist/app-vocabulary.d.ts +189 -0
  20. package/dist/app-vocabulary.js +103 -0
  21. package/dist/app.d.ts +379 -0
  22. package/dist/app.js +71 -0
  23. package/dist/artifact-dispositions.d.ts +115 -0
  24. package/dist/artifact-dispositions.js +234 -0
  25. package/dist/assets.d.ts +54 -0
  26. package/dist/assets.js +89 -0
  27. package/dist/backend.d.ts +41 -0
  28. package/dist/backend.js +29 -0
  29. package/dist/background-replay.d.ts +115 -0
  30. package/dist/background-replay.js +175 -0
  31. package/dist/buyer-references.d.ts +69 -0
  32. package/dist/buyer-references.js +154 -0
  33. package/dist/cloudflare-assets.d.ts +48 -0
  34. package/dist/cloudflare-assets.js +105 -0
  35. package/dist/cloudflare.d.ts +254 -0
  36. package/dist/cloudflare.js +1619 -0
  37. package/dist/effect.d.ts +73 -0
  38. package/dist/effect.js +325 -0
  39. package/dist/git-representation.d.ts +13 -0
  40. package/dist/git-representation.js +16 -0
  41. package/dist/inbox.d.ts +132 -0
  42. package/dist/inbox.js +81 -0
  43. package/dist/index.d.ts +31 -0
  44. package/dist/index.js +85 -0
  45. package/dist/internal/app-description.d.ts +14 -0
  46. package/dist/internal/app-description.js +98 -0
  47. package/dist/internal/app-release-artifact-reader.d.ts +26 -0
  48. package/dist/internal/app-release-artifact-reader.js +1 -0
  49. package/dist/internal/app-release-contract.d.ts +540 -0
  50. package/dist/internal/app-release-contract.js +169 -0
  51. package/dist/internal/app-release-schema.d.ts +1676 -0
  52. package/dist/internal/app-release-schema.js +386 -0
  53. package/dist/internal/app-release-store.d.ts +47 -0
  54. package/dist/internal/app-release-store.js +1 -0
  55. package/dist/internal/background-sync.d.ts +7 -0
  56. package/dist/internal/background-sync.js +10 -0
  57. package/dist/internal/deterministic-memory-app-release-store.d.ts +14 -0
  58. package/dist/internal/deterministic-memory-app-release-store.js +319 -0
  59. package/dist/internal/failure.d.ts +2 -0
  60. package/dist/internal/failure.js +9 -0
  61. package/dist/internal/immutable-release-material.d.ts +3 -0
  62. package/dist/internal/immutable-release-material.js +13 -0
  63. package/dist/internal/promise-app-release-store-adapter.d.ts +9 -0
  64. package/dist/internal/promise-app-release-store-adapter.js +65 -0
  65. package/dist/internal/promise-artifact-reader-adapter.d.ts +9 -0
  66. package/dist/internal/promise-artifact-reader-adapter.js +18 -0
  67. package/dist/internal/public-route-sql.d.ts +10 -0
  68. package/dist/internal/public-route-sql.js +239 -0
  69. package/dist/internal/public-website-authority.d.ts +338 -0
  70. package/dist/internal/public-website-authority.js +50 -0
  71. package/dist/internal/public-website-delivery.d.ts +59 -0
  72. package/dist/internal/public-website-delivery.js +232 -0
  73. package/dist/internal/public-website-fetch.d.ts +8 -0
  74. package/dist/internal/public-website-fetch.js +54 -0
  75. package/dist/internal/release-transition-material.d.ts +3 -0
  76. package/dist/internal/release-transition-material.js +11 -0
  77. package/dist/internal/verified-artifact-snapshot.d.ts +41 -0
  78. package/dist/internal/verified-artifact-snapshot.js +91 -0
  79. package/dist/public-route-moderation.d.ts +83 -0
  80. package/dist/public-route-moderation.js +236 -0
  81. package/dist/public-route-policy.d.ts +51 -0
  82. package/dist/public-route-policy.js +88 -0
  83. package/dist/public-routes.d.ts +34 -0
  84. package/dist/public-routes.js +136 -0
  85. package/dist/publisher.d.ts +61 -0
  86. package/dist/publisher.js +16 -0
  87. package/dist/safety-takedown.d.ts +56 -0
  88. package/dist/safety-takedown.js +146 -0
  89. package/dist/seller-closure-notice.d.ts +14 -0
  90. package/dist/seller-closure-notice.js +14 -0
  91. package/dist/seller-closure.d.ts +15 -0
  92. package/dist/seller-closure.js +31 -0
  93. package/dist/testing.d.ts +8 -0
  94. package/dist/testing.js +47 -0
  95. package/docs/api/README.md +26 -0
  96. package/docs/api/app-backend-binding-vocabulary.md +276 -0
  97. package/docs/api/app-backend-bindings.md +141 -0
  98. package/docs/api/app-event-facts.md +110 -0
  99. package/docs/api/app-method-context.md +166 -0
  100. package/docs/api/app-method-runtime.md +330 -0
  101. package/docs/api/backend.md +108 -0
  102. package/docs/api/background-replay.md +516 -0
  103. package/docs/api/cloudflare.md +1044 -0
  104. package/docs/api/effect.md +2429 -0
  105. package/docs/api/git-representation.md +56 -0
  106. package/docs/api/inbox.md +289 -0
  107. package/docs/api/index.md +2868 -0
  108. package/docs/api/publisher.md +147 -0
  109. package/docs/api/testing.md +31 -0
  110. 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`