@fungi.computer/bonsai 0.11.44 → 0.12.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/CHANGELOG.md +22 -0
- package/backend/methods.ts +19 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @fungi.computer/bonsai
|
|
2
2
|
|
|
3
|
+
## 0.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Changes since 0.11.44:
|
|
8
|
+
|
|
9
|
+
- feat(agar): approval cards read a method's own short label
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @fungi.computer/agar@0.27.0
|
|
18
|
+
- @fungi.computer/oyster@0.56.0
|
|
19
|
+
- @fungi.computer/puffball@0.15.0
|
|
20
|
+
- @fungi.computer/trellis@0.28.0
|
|
21
|
+
- @fungi.computer/braid@0.6.8
|
|
22
|
+
- @fungi.computer/nacre@0.9.1
|
|
23
|
+
- @fungi.computer/workflows-wire@0.7.8
|
|
24
|
+
|
|
3
25
|
## 0.11.44
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/backend/methods.ts
CHANGED
|
@@ -251,6 +251,7 @@ const definition = defineAppBackend<BonsaiMethodContext>({
|
|
|
251
251
|
description:
|
|
252
252
|
"Make this repository an App using its main commit's package.json build recipe. Owner only; does not build or install it.",
|
|
253
253
|
effect: "write",
|
|
254
|
+
label: "Make this repository an App",
|
|
254
255
|
requires: ["git.repository"],
|
|
255
256
|
input: appRegistrationInput,
|
|
256
257
|
output: appRegistration,
|
|
@@ -271,6 +272,7 @@ const definition = defineAppBackend<BonsaiMethodContext>({
|
|
|
271
272
|
description:
|
|
272
273
|
"Build, verify and install this repository through the published Workflow. Owner only.",
|
|
273
274
|
effect: "write",
|
|
275
|
+
label: "Build and install this App",
|
|
274
276
|
requires: ["git.repository", "workflow.run", "workflow.publish"],
|
|
275
277
|
input: appBuildWorkflowInput,
|
|
276
278
|
output: runReply,
|
|
@@ -317,6 +319,7 @@ const definition = defineAppBackend<BonsaiMethodContext>({
|
|
|
317
319
|
description:
|
|
318
320
|
"Build an App's registered source at one exact commit on this Oyster's Computer; the job keeps running after this call returns. Owner only.",
|
|
319
321
|
effect: "write",
|
|
322
|
+
label: "Build this App",
|
|
320
323
|
// The host scopes APPS.build to a method that declares the operation's
|
|
321
324
|
// own requirements; the owner check below still gates every call.
|
|
322
325
|
requires: ["git.repository", "computer.execute"],
|
|
@@ -441,6 +444,7 @@ const definition = defineAppBackend<BonsaiMethodContext>({
|
|
|
441
444
|
description:
|
|
442
445
|
"Install a built Release at an installation id, or switch an already-live one onto it. Owner only.",
|
|
443
446
|
effect: "write",
|
|
447
|
+
label: "Install this App",
|
|
444
448
|
pending: true,
|
|
445
449
|
// The host grants its APPS operation only under these approvals.
|
|
446
450
|
requires: ["git.repository", "computer.execute"],
|
|
@@ -496,6 +500,7 @@ const definition = defineAppBackend<BonsaiMethodContext>({
|
|
|
496
500
|
"insights.layout.save": defineAppMethod({
|
|
497
501
|
description: "Save the caller's repository insight layout.",
|
|
498
502
|
effect: "write",
|
|
503
|
+
label: "Save your insight layout",
|
|
499
504
|
requires: [],
|
|
500
505
|
input: z.strictObject({ repo, tiles: insightLayout }),
|
|
501
506
|
output: savedLayout,
|
|
@@ -572,6 +577,7 @@ const definition = defineAppBackend<BonsaiMethodContext>({
|
|
|
572
577
|
"repos.create": defineAppMethod({
|
|
573
578
|
description: "Create a canonical repository. People only.",
|
|
574
579
|
effect: "write",
|
|
580
|
+
label: "Create a repository",
|
|
575
581
|
requires: ["git.repository"],
|
|
576
582
|
input: z.strictObject({
|
|
577
583
|
name: z.string().regex(repoNamePattern),
|
|
@@ -587,6 +593,7 @@ const definition = defineAppBackend<BonsaiMethodContext>({
|
|
|
587
593
|
description:
|
|
588
594
|
"Delete a repository and its provider content. Owner only; retry-safe.",
|
|
589
595
|
effect: "write",
|
|
596
|
+
label: "Delete this repository",
|
|
590
597
|
requires: ["git.repository"],
|
|
591
598
|
input: z.strictObject({ repo: gitRepositoryNameSchema }),
|
|
592
599
|
output: repositoryDeletion,
|
|
@@ -597,6 +604,7 @@ const definition = defineAppBackend<BonsaiMethodContext>({
|
|
|
597
604
|
description:
|
|
598
605
|
"Give the caller its own fork of a canonical repository (returns the existing one if present). Push work there, then ask a person to merge.",
|
|
599
606
|
effect: "write",
|
|
607
|
+
label: "Fork this repository",
|
|
600
608
|
requires: ["git.repository"],
|
|
601
609
|
input: z.strictObject({ repo }),
|
|
602
610
|
output: repoSummary,
|
|
@@ -607,6 +615,7 @@ const definition = defineAppBackend<BonsaiMethodContext>({
|
|
|
607
615
|
description:
|
|
608
616
|
"Fork an App's published source into its own Team-owned App: a new Bonsai repository the owner edits and merges, registered as that App's build source. Owner only.",
|
|
609
617
|
effect: "write",
|
|
618
|
+
label: "Fork this App",
|
|
610
619
|
// It records the fork as a Bonsai repository in this installation's Git.
|
|
611
620
|
requires: ["git.repository"],
|
|
612
621
|
input: z.strictObject({
|
|
@@ -717,6 +726,7 @@ const definition = defineAppBackend<BonsaiMethodContext>({
|
|
|
717
726
|
description:
|
|
718
727
|
"Save bounded text as a private member row with revision CAS; eligible edits sync in the background.",
|
|
719
728
|
effect: "write",
|
|
729
|
+
label: "Save this file",
|
|
720
730
|
requires: ["git.repository"],
|
|
721
731
|
input: fileSaveInput,
|
|
722
732
|
output: fileSaveResult,
|
|
@@ -734,6 +744,7 @@ const definition = defineAppBackend<BonsaiMethodContext>({
|
|
|
734
744
|
description:
|
|
735
745
|
"Retry eligible failed edits and report this member's saved-file status; background sync owns Git work.",
|
|
736
746
|
effect: "write",
|
|
747
|
+
label: "Sync your saved files",
|
|
737
748
|
requires: ["git.repository"],
|
|
738
749
|
input: z.strictObject({}),
|
|
739
750
|
output: fileSyncResult,
|
|
@@ -748,6 +759,7 @@ const definition = defineAppBackend<BonsaiMethodContext>({
|
|
|
748
759
|
description:
|
|
749
760
|
"Discard only this caller's saved file revision and reload Git's text.",
|
|
750
761
|
effect: "write",
|
|
762
|
+
label: "Discard your saved file changes",
|
|
751
763
|
requires: ["git.repository"],
|
|
752
764
|
input: fileDiscardInput,
|
|
753
765
|
output: fileDiscardResult,
|
|
@@ -843,6 +855,7 @@ const definition = defineAppBackend<BonsaiMethodContext>({
|
|
|
843
855
|
description:
|
|
844
856
|
"Open a proposal from your source branch; pushes of new fork work also open Changes.",
|
|
845
857
|
effect: "write",
|
|
858
|
+
label: "Open a change proposal",
|
|
846
859
|
requires: ["git.repository"],
|
|
847
860
|
input: z.strictObject({
|
|
848
861
|
repo,
|
|
@@ -864,6 +877,7 @@ const definition = defineAppBackend<BonsaiMethodContext>({
|
|
|
864
877
|
description:
|
|
865
878
|
"Approve the exact proposed head if you did not open or author it, or as your Team's only member. Agents report reviews as checks.",
|
|
866
879
|
effect: "write",
|
|
880
|
+
label: "Approve this change",
|
|
867
881
|
requires: ["git.repository"],
|
|
868
882
|
input: z.strictObject({
|
|
869
883
|
repo,
|
|
@@ -883,6 +897,7 @@ const definition = defineAppBackend<BonsaiMethodContext>({
|
|
|
883
897
|
description:
|
|
884
898
|
"Continue this member's pending writes after fresh host admission.",
|
|
885
899
|
effect: "write",
|
|
900
|
+
label: "Sync your pending changes",
|
|
886
901
|
// The continuation covers every write's requirements (apps.build's
|
|
887
902
|
// computer.execute included); it only replays queued Git writes.
|
|
888
903
|
requires: [
|
|
@@ -900,6 +915,7 @@ const definition = defineAppBackend<BonsaiMethodContext>({
|
|
|
900
915
|
description:
|
|
901
916
|
"A person maintainer merges the exact reviewed head; eligible Merge counts as approval. Failing or pending checks block it.",
|
|
902
917
|
effect: "write",
|
|
918
|
+
label: "Merge this change",
|
|
903
919
|
requires: ["git.repository"],
|
|
904
920
|
input: z.strictObject({
|
|
905
921
|
repo,
|
|
@@ -926,6 +942,7 @@ const definition = defineAppBackend<BonsaiMethodContext>({
|
|
|
926
942
|
description:
|
|
927
943
|
"Request checks at this head; the emitted event ID is the real attempt identity for every report from that trigger.",
|
|
928
944
|
effect: "write",
|
|
945
|
+
label: "Request checks on this change",
|
|
929
946
|
requires: ["git.repository"],
|
|
930
947
|
input: z.strictObject({
|
|
931
948
|
repo,
|
|
@@ -946,6 +963,7 @@ const definition = defineAppBackend<BonsaiMethodContext>({
|
|
|
946
963
|
description:
|
|
947
964
|
"Report a check for the triggering Change event ID. Use its actual eventId as attemptId; runUrl is optional and supplied only for a real run link. Old attempts and conflicting terminal reports settle without overwriting.",
|
|
948
965
|
effect: "write",
|
|
966
|
+
label: "Report a check result",
|
|
949
967
|
requires: ["git.repository"],
|
|
950
968
|
input: z.strictObject({
|
|
951
969
|
repo,
|
|
@@ -969,6 +987,7 @@ const definition = defineAppBackend<BonsaiMethodContext>({
|
|
|
969
987
|
"changes.close": defineAppMethod({
|
|
970
988
|
description: "Close your proposal or a proposal you maintain.",
|
|
971
989
|
effect: "write",
|
|
990
|
+
label: "Close this change",
|
|
972
991
|
requires: ["git.repository"],
|
|
973
992
|
input: z.strictObject({ repo, number: z.number().int().positive() }),
|
|
974
993
|
output: policyDecision,
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fungi.computer/bonsai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"author": "Levi <levi@technomancy.dev>",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Bonsai: a git platform for many agents working at once, on Workers and Artifacts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@fungi.computer/agar": "0.
|
|
8
|
+
"@fungi.computer/agar": "0.27.0",
|
|
9
9
|
"@fungi.computer/caps": "0.12.8",
|
|
10
10
|
"@fungi.computer/issues": "0.2.0",
|
|
11
|
-
"@fungi.computer/oyster": "0.
|
|
12
|
-
"@fungi.computer/puffball": "0.
|
|
11
|
+
"@fungi.computer/oyster": "0.56.0",
|
|
12
|
+
"@fungi.computer/puffball": "0.15.0",
|
|
13
13
|
"@fungi.computer/sigils": "0.3.2",
|
|
14
14
|
"@fungi.computer/stipe": "0.1.1",
|
|
15
15
|
"@pierre/diffs": "1.3.6",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"@fungi.computer/maosaico": "0.1.2",
|
|
30
30
|
"@visx/hierarchy": "3.12.0",
|
|
31
31
|
"@fungi.computer/gills": "0.4.0",
|
|
32
|
-
"@fungi.computer/nacre": "0.9.
|
|
33
|
-
"@fungi.computer/trellis": "0.
|
|
34
|
-
"@fungi.computer/braid": "0.6.
|
|
35
|
-
"@fungi.computer/workflows-wire": "0.7.
|
|
32
|
+
"@fungi.computer/nacre": "0.9.1",
|
|
33
|
+
"@fungi.computer/trellis": "0.28.0",
|
|
34
|
+
"@fungi.computer/braid": "0.6.8",
|
|
35
|
+
"@fungi.computer/workflows-wire": "0.7.8"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"playwright": "1.62.1",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"eslint": "10.9.1",
|
|
53
53
|
"oxlint": "1.78.0",
|
|
54
54
|
"jsdom": "29.0.1",
|
|
55
|
-
"@fungi.computer/computer-contract": "0.6.
|
|
55
|
+
"@fungi.computer/computer-contract": "0.6.2"
|
|
56
56
|
},
|
|
57
57
|
"botanical": {
|
|
58
58
|
"role": "app",
|