@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
package/docs/api/git.md
CHANGED
|
@@ -290,25 +290,27 @@ Requested installation-scoped Git authority; a declaration is never a grant.
|
|
|
290
290
|
### repositoryRefSchema
|
|
291
291
|
|
|
292
292
|
```ts
|
|
293
|
-
const repositoryRefSchema:
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
293
|
+
const repositoryRefSchema: ZodLazy<
|
|
294
|
+
ZodDiscriminatedUnion<
|
|
295
|
+
[
|
|
296
|
+
ZodObject<
|
|
297
|
+
{
|
|
298
|
+
kind: ZodLiteral<"installation">;
|
|
299
|
+
installationId: ZodString;
|
|
300
|
+
repository: ZodString;
|
|
301
|
+
},
|
|
302
|
+
$strict
|
|
303
|
+
>,
|
|
304
|
+
ZodObject<
|
|
305
|
+
{
|
|
306
|
+
kind: ZodLiteral<"team-source">;
|
|
307
|
+
repository: ZodString;
|
|
308
|
+
},
|
|
309
|
+
$strict
|
|
310
|
+
>,
|
|
311
|
+
],
|
|
312
|
+
"kind"
|
|
313
|
+
>
|
|
312
314
|
>;
|
|
313
315
|
```
|
|
314
316
|
|
|
@@ -375,7 +377,7 @@ Canonical Git writer decoder; identity is attested by a host, never by an App.
|
|
|
375
377
|
### gitPushQuestionSchema
|
|
376
378
|
|
|
377
379
|
```ts
|
|
378
|
-
const gitPushQuestionSchema: ZodObject<{
|
|
380
|
+
const gitPushQuestionSchema: ZodLazy<ZodObject<{
|
|
379
381
|
repository: ZodString;
|
|
380
382
|
writer: ZodObject<{
|
|
381
383
|
kind: ZodLiteral<"actor">;
|
|
@@ -394,16 +396,7 @@ const gitPushQuestionSchema: ZodObject<{
|
|
|
394
396
|
owner: "owner";
|
|
395
397
|
}>>;
|
|
396
398
|
workflow: ZodOptional<ZodObject<{
|
|
397
|
-
armedBy: ZodDiscriminatedUnion<[ZodObject
|
|
398
|
-
kind: ...;
|
|
399
|
-
memberId: ...;
|
|
400
|
-
}, $strict>, ZodObject<{
|
|
401
|
-
kind: ...;
|
|
402
|
-
agentId: ...;
|
|
403
|
-
}, $strict>, ZodObject<{
|
|
404
|
-
kind: ...;
|
|
405
|
-
keyId: ...;
|
|
406
|
-
}, $strict>], "kind">;
|
|
399
|
+
armedBy: ZodDiscriminatedUnion<[ZodObject<..., ...>, ZodObject<..., ...>, ZodObject<..., ...>], "kind">;
|
|
407
400
|
branches: ZodArray<ZodString>;
|
|
408
401
|
workflowId: ZodMiniString<string>;
|
|
409
402
|
runId: ZodMiniString<string>;
|
|
@@ -415,7 +408,7 @@ const gitPushQuestionSchema: ZodObject<{
|
|
|
415
408
|
before: ZodString;
|
|
416
409
|
after: ZodString;
|
|
417
410
|
}, $strict>>;
|
|
418
|
-
}, $strict
|
|
411
|
+
}, $strict>>;
|
|
419
412
|
```
|
|
420
413
|
|
|
421
414
|
The App's question covers the whole push, under host-held attribution.
|
|
@@ -425,31 +418,33 @@ The App's question covers the whole push, under host-held attribution.
|
|
|
425
418
|
### gitPushVerdictSchema
|
|
426
419
|
|
|
427
420
|
```ts
|
|
428
|
-
const gitPushVerdictSchema:
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
421
|
+
const gitPushVerdictSchema: ZodLazy<
|
|
422
|
+
ZodDiscriminatedUnion<
|
|
423
|
+
[
|
|
424
|
+
ZodObject<
|
|
425
|
+
{
|
|
426
|
+
allowed: ZodLiteral<true>;
|
|
427
|
+
},
|
|
428
|
+
$strict
|
|
429
|
+
>,
|
|
430
|
+
ZodObject<
|
|
431
|
+
{
|
|
432
|
+
allowed: ZodLiteral<false>;
|
|
433
|
+
refused: ZodArray<
|
|
434
|
+
ZodObject<
|
|
435
|
+
{
|
|
436
|
+
ref: ZodString;
|
|
437
|
+
message: ZodString;
|
|
438
|
+
},
|
|
439
|
+
$strict
|
|
440
|
+
>
|
|
441
|
+
>;
|
|
442
|
+
},
|
|
443
|
+
$strict
|
|
444
|
+
>,
|
|
445
|
+
],
|
|
446
|
+
"allowed"
|
|
447
|
+
>
|
|
453
448
|
>;
|
|
454
449
|
```
|
|
455
450
|
|
|
@@ -460,44 +455,35 @@ A whole push verdict; refusal messages are shown by ordinary Git clients.
|
|
|
460
455
|
### appGitPushFactSchema
|
|
461
456
|
|
|
462
457
|
```ts
|
|
463
|
-
const appGitPushFactSchema: ZodObject<{
|
|
458
|
+
const appGitPushFactSchema: ZodLazy<ZodObject<{
|
|
464
459
|
repository: ZodString;
|
|
465
460
|
writer: ZodDiscriminatedUnion<[ZodObject<{
|
|
466
461
|
kind: ZodLiteral<"actor">;
|
|
467
462
|
actor: ZodDiscriminatedUnion<[ZodObject<{
|
|
468
|
-
kind:
|
|
469
|
-
memberId:
|
|
463
|
+
kind: ...;
|
|
464
|
+
memberId: ...;
|
|
470
465
|
}, $strict>, ZodObject<{
|
|
471
|
-
kind:
|
|
472
|
-
agentId:
|
|
466
|
+
kind: ...;
|
|
467
|
+
agentId: ...;
|
|
473
468
|
}, $strict>, ZodObject<{
|
|
474
|
-
kind:
|
|
475
|
-
keyId:
|
|
469
|
+
kind: ...;
|
|
470
|
+
keyId: ...;
|
|
476
471
|
}, $strict>], "kind">;
|
|
477
472
|
role: ZodMiniOptional<ZodMiniEnum<{
|
|
478
473
|
member: "member";
|
|
479
474
|
owner: "owner";
|
|
480
475
|
}>>;
|
|
481
476
|
workflow: ZodOptional<ZodObject<{
|
|
482
|
-
armedBy: ZodDiscriminatedUnion
|
|
483
|
-
branches: ZodArray
|
|
484
|
-
workflowId: ZodMiniString
|
|
485
|
-
runId: ZodMiniString
|
|
486
|
-
nodeId: ZodMiniString
|
|
477
|
+
armedBy: ZodDiscriminatedUnion<..., ...>;
|
|
478
|
+
branches: ZodArray<...>;
|
|
479
|
+
workflowId: ZodMiniString<...>;
|
|
480
|
+
runId: ZodMiniString<...>;
|
|
481
|
+
nodeId: ZodMiniString<...>;
|
|
487
482
|
}, $strict>>;
|
|
488
483
|
}, $strict>, ZodObject<{
|
|
489
484
|
kind: ZodLiteral<"installation">;
|
|
490
485
|
installationId: ZodString;
|
|
491
|
-
onBehalfOf: ZodNullable<ZodDiscriminatedUnion<[ZodObject
|
|
492
|
-
kind: ...;
|
|
493
|
-
memberId: ...;
|
|
494
|
-
}, $strict>, ZodObject<{
|
|
495
|
-
kind: ...;
|
|
496
|
-
agentId: ...;
|
|
497
|
-
}, $strict>, ZodObject<{
|
|
498
|
-
kind: ...;
|
|
499
|
-
keyId: ...;
|
|
500
|
-
}, $strict>], "kind">>;
|
|
486
|
+
onBehalfOf: ZodNullable<ZodDiscriminatedUnion<[ZodObject<..., ...>, ZodObject<..., ...>, ZodObject<..., ...>], "kind">>;
|
|
501
487
|
}, $strict>], "kind">;
|
|
502
488
|
updates: ZodArray<ZodObject<{
|
|
503
489
|
ref: ZodString;
|
|
@@ -508,8 +494,8 @@ const appGitPushFactSchema: ZodObject<{
|
|
|
508
494
|
ref: ZodString;
|
|
509
495
|
journaled: ZodNullable<ZodString>;
|
|
510
496
|
}, $strict>>>;
|
|
511
|
-
eventId: ZodString
|
|
512
|
-
}, $strict
|
|
497
|
+
eventId: ZodLazy<ZodString>;
|
|
498
|
+
}, $strict>>;
|
|
513
499
|
```
|
|
514
500
|
|
|
515
501
|
One accepted push, with host attribution and no remote or credential.
|