@fungi.computer/agar 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 +766 -2
- package/dist/agent-message-meta.d.ts +74 -0
- package/dist/agent-message-meta.js +63 -0
- package/dist/agents.d.ts +170 -0
- package/dist/agents.js +218 -0
- package/dist/app-build-contract.d.ts +43 -0
- package/dist/app-build-contract.js +24 -0
- package/dist/apps.d.ts +66 -0
- package/dist/apps.js +47 -0
- package/dist/backend-declaration.d.ts +6 -0
- package/dist/backend-declaration.js +65 -0
- package/dist/backend-definition.d.ts +88 -0
- package/dist/backend-definition.js +158 -0
- package/dist/backend-refusal.d.ts +10 -0
- package/dist/backend-refusal.js +10 -0
- package/dist/backend.d.ts +30 -0
- package/dist/backend.js +28 -0
- package/dist/capabilities.d.ts +30 -0
- package/dist/capabilities.js +50 -0
- package/dist/channels.d.ts +142 -0
- package/dist/channels.js +97 -0
- package/dist/commands.d.ts +33 -0
- package/dist/commands.js +46 -0
- package/dist/computer-contracts.d.ts +73 -0
- package/dist/computer-contracts.js +57 -0
- package/dist/computer.d.ts +294 -0
- package/dist/computer.js +319 -0
- package/dist/connect.d.ts +11 -0
- package/dist/connect.js +211 -0
- package/dist/errors.d.ts +34 -0
- package/dist/errors.js +106 -0
- package/dist/failure.d.ts +2 -0
- package/dist/failure.js +9 -0
- package/dist/files.d.ts +25 -0
- package/dist/files.js +84 -0
- package/dist/game-servers.d.ts +530 -0
- package/dist/game-servers.js +244 -0
- package/dist/gills.d.ts +43 -0
- package/dist/gills.js +174 -0
- package/dist/git-commit.d.ts +143 -0
- package/dist/git-commit.js +251 -0
- package/dist/git-rpc.d.ts +310 -0
- package/dist/git-rpc.js +166 -0
- package/dist/git-steps.d.ts +579 -0
- package/dist/git-steps.js +804 -0
- package/dist/git-wire.d.ts +33 -0
- package/dist/git-wire.js +240 -0
- package/dist/git.d.ts +322 -0
- package/dist/git.js +98 -0
- package/dist/host.d.ts +97 -0
- package/dist/host.js +732 -0
- package/dist/inbox.d.ts +99 -0
- package/dist/inbox.js +184 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +15 -0
- package/dist/inference.d.ts +17 -0
- package/dist/inference.js +115 -0
- package/dist/internal/app-error.d.ts +8 -0
- package/dist/internal/app-error.js +36 -0
- package/dist/internal/app-session.d.ts +8 -0
- package/dist/internal/app-session.js +551 -0
- package/dist/internal/back-inputs.d.ts +22 -0
- package/dist/internal/back-inputs.js +93 -0
- package/dist/internal/browser-bridge.d.ts +30 -0
- package/dist/internal/browser-bridge.js +203 -0
- package/dist/internal/capabilities.d.ts +13 -0
- package/dist/internal/capabilities.js +138 -0
- package/dist/internal/commands.d.ts +9 -0
- package/dist/internal/commands.js +257 -0
- package/dist/internal/disconnect-host.d.ts +7 -0
- package/dist/internal/disconnect-host.js +19 -0
- package/dist/internal/git-edit-tree.d.ts +6 -0
- package/dist/internal/git-edit-tree.js +46 -0
- package/dist/internal/memory-fs.d.ts +39 -0
- package/dist/internal/memory-fs.js +154 -0
- package/dist/internal/protocol.d.ts +116 -0
- package/dist/internal/protocol.js +6 -0
- package/dist/internal/query-feed.d.ts +23 -0
- package/dist/internal/query-feed.js +111 -0
- package/dist/internal/result.d.ts +22 -0
- package/dist/internal/result.js +61 -0
- package/dist/internal/rpc-contract.d.ts +24 -0
- package/dist/internal/rpc-contract.js +78 -0
- package/dist/internal/schemas.d.ts +307 -0
- package/dist/internal/schemas.js +524 -0
- package/dist/internal/store.d.ts +8 -0
- package/dist/internal/store.js +30 -0
- package/dist/internal/terminal-gate.d.ts +17 -0
- package/dist/internal/terminal-gate.js +94 -0
- package/dist/lifecycle.d.ts +44 -0
- package/dist/lifecycle.js +1 -0
- package/dist/marketplace.d.ts +159 -0
- package/dist/marketplace.js +102 -0
- package/dist/media-json.d.ts +181 -0
- package/dist/media-json.js +204 -0
- package/dist/media-library.d.ts +11 -0
- package/dist/media-library.js +15 -0
- package/dist/media-request-id.d.ts +7 -0
- package/dist/media-request-id.js +16 -0
- package/dist/media.d.ts +354 -0
- package/dist/media.js +654 -0
- package/dist/method-refusal.d.ts +64 -0
- package/dist/method-refusal.js +48 -0
- package/dist/pending.d.ts +10 -0
- package/dist/pending.js +10 -0
- package/dist/query.d.ts +76 -0
- package/dist/query.js +195 -0
- package/dist/react-mount.d.ts +23 -0
- package/dist/react-mount.js +108 -0
- package/dist/react.d.ts +41 -0
- package/dist/react.js +111 -0
- package/dist/read-copy.d.ts +103 -0
- package/dist/read-copy.js +195 -0
- package/dist/roles/files.d.ts +295 -0
- package/dist/roles/files.js +184 -0
- package/dist/root.d.ts +21 -0
- package/dist/root.js +1 -0
- package/dist/rpc.d.ts +1 -0
- package/dist/rpc.js +1 -0
- package/dist/status.d.ts +17 -0
- package/dist/status.js +50 -0
- package/dist/storage-wire.d.ts +167 -0
- package/dist/storage-wire.js +115 -0
- package/dist/storage.d.ts +72 -0
- package/dist/storage.js +143 -0
- package/dist/store.d.ts +11 -0
- package/dist/store.js +1 -0
- package/dist/test-kit/git.d.ts +31 -0
- package/dist/test-kit/git.js +174 -0
- package/dist/ui.d.ts +169 -0
- package/dist/ui.js +10 -0
- package/dist/window.d.ts +41 -0
- package/dist/window.js +15 -0
- package/dist/world.d.ts +16 -0
- package/dist/world.js +17 -0
- package/docs/api/README.md +28 -0
- package/docs/api/app-build-contract.md +113 -0
- package/docs/api/backend-declaration.md +62 -0
- package/docs/api/backend-definition.md +215 -0
- package/docs/api/backend.md +269 -0
- package/docs/api/errors.md +169 -0
- package/docs/api/files.md +91 -0
- package/docs/api/gills.md +164 -0
- package/docs/api/git-commit.md +279 -0
- package/docs/api/git-rpc.md +243 -0
- package/docs/api/git-steps.md +1010 -0
- package/docs/api/git-wire.md +197 -0
- package/docs/api/git.md +579 -0
- package/docs/api/index.md +2880 -0
- package/docs/api/media-json.md +507 -0
- package/docs/api/media-request-id.md +32 -0
- package/docs/api/modules.md +32 -0
- package/docs/api/query.md +253 -0
- package/docs/api/react.md +216 -0
- package/docs/api/read-copy.md +204 -0
- package/docs/api/rpc.md +128 -0
- package/docs/api/storage.md +620 -0
- package/package.json +197 -3
|
@@ -0,0 +1,243 @@
|
|
|
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) / git-rpc
|
|
8
|
+
|
|
9
|
+
# git-rpc
|
|
10
|
+
|
|
11
|
+
## Type Aliases
|
|
12
|
+
|
|
13
|
+
### NativeGitOperation
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
type NativeGitOperation = "create" | "fork" | "read" | "write" | "exchange";
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Host operation required before a native Git effect.
|
|
20
|
+
|
|
21
|
+
## Variables
|
|
22
|
+
|
|
23
|
+
### nativeGitCodecs
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
const nativeGitCodecs: object;
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The native tuple and result grammar shared by the handle and frame entrypoint.
|
|
30
|
+
|
|
31
|
+
#### Type Declaration
|
|
32
|
+
|
|
33
|
+
| Name | Type | Default value |
|
|
34
|
+
| --------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |
|
|
35
|
+
| <a id="property-create"></a> `create` | `object` | - |
|
|
36
|
+
| `create.args` | `ZodTuple`\<\[`ZodString`, `ZodOptional`\<`ZodObject`\<\{ `description`: `ZodOptional`\<`ZodString`\>; `defaultBranch`: `ZodOptional`\<`ZodString`\>; \}, `$strict`\>\>\], `null`\> | - |
|
|
37
|
+
| `create.result` | `ZodObject`\<\{ `name`: `ZodString`; `defaultBranch`: `ZodString`; `lastPushAt`: `ZodNullable`\<`ZodString`\>; `source`: `ZodNullable`\<`ZodString`\>; \}, `$strict`\> | `info` |
|
|
38
|
+
| <a id="property-fork"></a> `fork` | `object` | - |
|
|
39
|
+
| `fork.args` | `ZodTuple`\<\[`ZodString`, `ZodString`, `ZodOptional`\<`ZodObject`\<\{ `description`: `ZodOptional`\<`ZodString`\>; \}, `$strict`\>\>\], `null`\> | - |
|
|
40
|
+
| `fork.result` | `ZodObject`\<\{ `name`: `ZodString`; `defaultBranch`: `ZodString`; `lastPushAt`: `ZodNullable`\<`ZodString`\>; `source`: `ZodNullable`\<`ZodString`\>; \}, `$strict`\> | `info` |
|
|
41
|
+
| <a id="property-cloneurl"></a> `cloneUrl` | `object` | - |
|
|
42
|
+
| `cloneUrl.args` | `ZodTuple`\<\[`ZodString`\], `null`\> | - |
|
|
43
|
+
| `cloneUrl.result` | `ZodURL` | - |
|
|
44
|
+
| <a id="property-info"></a> `info` | `object` | - |
|
|
45
|
+
| `info.args` | `ZodTuple`\<\[`ZodString`\], `null`\> | - |
|
|
46
|
+
| `info.result` | `ZodNullable`\<`ZodObject`\<\{ `name`: `ZodString`; `defaultBranch`: `ZodString`; `lastPushAt`: `ZodNullable`\<`ZodString`\>; `source`: `ZodNullable`\<`ZodString`\>; \}, `$strict`\>\> | - |
|
|
47
|
+
| <a id="property-delete"></a> `delete` | `object` | - |
|
|
48
|
+
| `delete.args` | `ZodTuple`\<\[`ZodString`\], `null`\> | - |
|
|
49
|
+
| `delete.result` | `ZodBoolean` | - |
|
|
50
|
+
| <a id="property-log"></a> `log` | `object` | - |
|
|
51
|
+
| `log.args` | `ZodTuple`\<\[`ZodString`, `ZodObject`\<\{ `ref`: `ZodString`; `limit`: `ZodOptional`\<`ZodNumber`\>; `offset`: `ZodOptional`\<`ZodNumber`\>; \}, `$strict`\>\], `null`\> | - |
|
|
52
|
+
| `log.result` | `ZodArray`\<`ZodObject`\<\{ `hash`: `ZodString`; `treeHash`: `ZodString`; `message`: `ZodString`; `author`: `ZodObject`\<\{ `name`: `ZodString`; `email`: `ZodString`; \}, `$strict`\>; `committer`: `ZodObject`\<\{ `name`: `ZodString`; `email`: `ZodString`; \}, `$strict`\>; `parents`: `ZodArray`\<`ZodString`\>; `authoredAt`: `ZodNumber`; `committedAt`: `ZodNumber`; \}, `$strict`\>\> | - |
|
|
53
|
+
| <a id="property-readcommit"></a> `readCommit` | `object` | - |
|
|
54
|
+
| `readCommit.args` | `ZodTuple`\<\[`ZodString`, `ZodString`\], `null`\> | - |
|
|
55
|
+
| `readCommit.result` | `ZodNullable`\<`ZodObject`\<\{ `hash`: `ZodString`; `treeHash`: `ZodString`; `message`: `ZodString`; `author`: `ZodObject`\<\{ `name`: `ZodString`; `email`: `ZodString`; \}, `$strict`\>; `committer`: `ZodObject`\<\{ `name`: `ZodString`; `email`: `ZodString`; \}, `$strict`\>; `parents`: `ZodArray`\<`ZodString`\>; `authoredAt`: `ZodNumber`; `committedAt`: `ZodNumber`; \}, `$strict`\>\> | - |
|
|
56
|
+
| <a id="property-readtree"></a> `readTree` | `object` | - |
|
|
57
|
+
| `readTree.args` | `ZodTuple`\<\[`ZodString`, `ZodString`\], `null`\> | - |
|
|
58
|
+
| `readTree.result` | `ZodNullable`\<`ZodArray`\<`ZodObject`\<\{ `name`: `ZodString`; `mode`: `ZodString`; `hash`: `ZodString`; `type`: `ZodEnum`\<\{ `blob`: `"blob"`; `tree`: `"tree"`; `commit`: `"commit"`; \}\>; \}, `$strict`\>\>\> | - |
|
|
59
|
+
| <a id="property-readblob"></a> `readBlob` | `object` | - |
|
|
60
|
+
| `readBlob.args` | `ZodTuple`\<\[`ZodString`, `ZodString`\], `null`\> | - |
|
|
61
|
+
| `readBlob.result` | `ZodNullable`\<`ZodCustom`\<`Uint8Array`\<`ArrayBuffer`\>, `Uint8Array`\<`ArrayBuffer`\>\>\> | - |
|
|
62
|
+
| <a id="property-refs"></a> `refs` | `object` | - |
|
|
63
|
+
| `refs.args` | `ZodTuple`\<\[`ZodString`\], `null`\> | - |
|
|
64
|
+
| `refs.result` | `ZodArray`\<`ZodObject`\<\{ `name`: `ZodString`; `hash`: `ZodString`; \}, `$strict`\>\> | - |
|
|
65
|
+
| <a id="property-exchange"></a> `exchange` | `object` | - |
|
|
66
|
+
| `exchange.args` | `ZodTuple`\<\[`ZodString`, `ZodObject`\<\{ `service`: `ZodEnum`\<\{ `upload-pack`: `"upload-pack"`; `receive-pack`: `"receive-pack"`; \}\>; `phase`: `ZodEnum`\<\{ `advertise`: `"advertise"`; `exchange`: `"exchange"`; \}\>; `body`: `ZodNullable`\<`ZodCustom`\<`Uint8Array`\<`ArrayBuffer`\>, `Uint8Array`\<`ArrayBuffer`\>\>\>; `headers`: `ZodRecord`\<`ZodString`, `ZodString`\>; \}, `$strict`\>\], `null`\> | - |
|
|
67
|
+
| `exchange.result` | `ZodObject`\<\{ `status`: `ZodNumber`; `headers`: `ZodRecord`\<`ZodString`, `ZodString`\>; `body`: `ZodCustom`\<`Uint8Array`\<`ArrayBuffer`\>, `Uint8Array`\<`ArrayBuffer`\>\>; \}, `$strict`\> | `response` |
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
### nativeGitFrameMethods
|
|
72
|
+
|
|
73
|
+
```ts
|
|
74
|
+
const nativeGitFrameMethods: object;
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Native Git preserves tuples and binary values through the shared frame factory.
|
|
78
|
+
|
|
79
|
+
#### Type Declaration
|
|
80
|
+
|
|
81
|
+
| Name | Type | Description |
|
|
82
|
+
| ----------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
|
83
|
+
| <a id="property-create-1"></a> `create` | `object` | - |
|
|
84
|
+
| `create.decodeArgs()` | (`raw`) => \[`string`, \{ `description?`: `string`; `defaultBranch?`: `string`; \}?\] | Decode the native positional arguments with the method's tuple codec. |
|
|
85
|
+
| `create.decodeResult()` | (`raw`) => `object` | Validate the native result, preserving binary values. |
|
|
86
|
+
| `create.requiredOperations()` | (`args`) => readonly `string`[] | Operations the host must grant for these decoded arguments. |
|
|
87
|
+
| <a id="property-fork-1"></a> `fork` | `object` | - |
|
|
88
|
+
| `fork.decodeArgs()` | (`raw`) => \[`string`, `string`, \{ `description?`: `string`; \}?\] | Decode the native positional arguments with the method's tuple codec. |
|
|
89
|
+
| `fork.decodeResult()` | (`raw`) => `object` | Validate the native result, preserving binary values. |
|
|
90
|
+
| `fork.requiredOperations()` | (`args`) => readonly `string`[] | Operations the host must grant for these decoded arguments. |
|
|
91
|
+
| <a id="property-cloneurl-1"></a> `cloneUrl` | `object` | - |
|
|
92
|
+
| `cloneUrl.decodeArgs()` | (`raw`) => \[`string`\] | Decode the native positional arguments with the method's tuple codec. |
|
|
93
|
+
| `cloneUrl.decodeResult()` | (`raw`) => `string` | Validate the native result, preserving binary values. |
|
|
94
|
+
| `cloneUrl.requiredOperations()` | (`args`) => readonly `string`[] | Operations the host must grant for these decoded arguments. |
|
|
95
|
+
| <a id="property-info-1"></a> `info` | `object` | - |
|
|
96
|
+
| `info.decodeArgs()` | (`raw`) => \[`string`\] | Decode the native positional arguments with the method's tuple codec. |
|
|
97
|
+
| `info.decodeResult()` | (`raw`) => \| \{ `name`: `string`; `defaultBranch`: `string`; `lastPushAt`: `string` \| `null`; `source`: `string` \| `null`; \} \| `null` | Validate the native result, preserving binary values. |
|
|
98
|
+
| `info.requiredOperations()` | (`args`) => readonly `string`[] | Operations the host must grant for these decoded arguments. |
|
|
99
|
+
| <a id="property-delete-1"></a> `delete` | `object` | - |
|
|
100
|
+
| `delete.decodeArgs()` | (`raw`) => \[`string`\] | Decode the native positional arguments with the method's tuple codec. |
|
|
101
|
+
| `delete.decodeResult()` | (`raw`) => `boolean` | Validate the native result, preserving binary values. |
|
|
102
|
+
| `delete.requiredOperations()` | (`args`) => readonly `string`[] | Operations the host must grant for these decoded arguments. |
|
|
103
|
+
| <a id="property-log-1"></a> `log` | `object` | - |
|
|
104
|
+
| `log.decodeArgs()` | (`raw`) => \[`string`, \{ `ref`: `string`; `limit?`: `number`; `offset?`: `number`; \}\] | Decode the native positional arguments with the method's tuple codec. |
|
|
105
|
+
| `log.decodeResult()` | (`raw`) => `object`[] | Validate the native result, preserving binary values. |
|
|
106
|
+
| `log.requiredOperations()` | (`args`) => readonly `string`[] | Operations the host must grant for these decoded arguments. |
|
|
107
|
+
| <a id="property-readcommit-1"></a> `readCommit` | `object` | - |
|
|
108
|
+
| `readCommit.decodeArgs()` | (`raw`) => \[`string`, `string`\] | Decode the native positional arguments with the method's tuple codec. |
|
|
109
|
+
| `readCommit.decodeResult()` | (`raw`) => \| \{ `hash`: `string`; `treeHash`: `string`; `message`: `string`; `author`: \{ `name`: `string`; `email`: `string`; \}; `committer`: \{ `name`: `string`; `email`: `string`; \}; `parents`: `string`[]; `authoredAt`: `number`; `committedAt`: `number`; \} \| `null` | Validate the native result, preserving binary values. |
|
|
110
|
+
| `readCommit.requiredOperations()` | (`args`) => readonly `string`[] | Operations the host must grant for these decoded arguments. |
|
|
111
|
+
| <a id="property-readtree-1"></a> `readTree` | `object` | - |
|
|
112
|
+
| `readTree.decodeArgs()` | (`raw`) => \[`string`, `string`\] | Decode the native positional arguments with the method's tuple codec. |
|
|
113
|
+
| `readTree.decodeResult()` | (`raw`) => `object`[] \| `null` | Validate the native result, preserving binary values. |
|
|
114
|
+
| `readTree.requiredOperations()` | (`args`) => readonly `string`[] | Operations the host must grant for these decoded arguments. |
|
|
115
|
+
| <a id="property-readblob-1"></a> `readBlob` | `object` | - |
|
|
116
|
+
| `readBlob.decodeArgs()` | (`raw`) => \[`string`, `string`\] | Decode the native positional arguments with the method's tuple codec. |
|
|
117
|
+
| `readBlob.decodeResult()` | (`raw`) => `Uint8Array`\<`ArrayBuffer`\> \| `null` | Validate the native result, preserving binary values. |
|
|
118
|
+
| `readBlob.requiredOperations()` | (`args`) => readonly `string`[] | Operations the host must grant for these decoded arguments. |
|
|
119
|
+
| <a id="property-refs-1"></a> `refs` | `object` | - |
|
|
120
|
+
| `refs.decodeArgs()` | (`raw`) => \[`string`\] | Decode the native positional arguments with the method's tuple codec. |
|
|
121
|
+
| `refs.decodeResult()` | (`raw`) => `object`[] | Validate the native result, preserving binary values. |
|
|
122
|
+
| `refs.requiredOperations()` | (`args`) => readonly `string`[] | Operations the host must grant for these decoded arguments. |
|
|
123
|
+
| <a id="property-exchange-1"></a> `exchange` | `object` | - |
|
|
124
|
+
| `exchange.decodeArgs()` | (`raw`) => \[`string`, \{ `service`: `"upload-pack"` \| `"receive-pack"`; `phase`: `"advertise"` \| `"exchange"`; `body`: `Uint8Array`\<`ArrayBuffer`\> \| `null`; `headers`: `Record`\<`string`, `string`\>; \}\] | Decode the native positional arguments with the method's tuple codec. |
|
|
125
|
+
| `exchange.decodeResult()` | (`raw`) => `object` | Validate the native result, preserving binary values. |
|
|
126
|
+
| `exchange.requiredOperations()` | (`args`) => readonly `string`[] | Operations the host must grant for these decoded arguments. |
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
### nativeGitMethodNameSchema
|
|
131
|
+
|
|
132
|
+
```ts
|
|
133
|
+
const nativeGitMethodNameSchema: ZodEnum<{
|
|
134
|
+
info: "info";
|
|
135
|
+
create: "create";
|
|
136
|
+
log: "log";
|
|
137
|
+
delete: "delete";
|
|
138
|
+
exchange: "exchange";
|
|
139
|
+
fork: "fork";
|
|
140
|
+
cloneUrl: "cloneUrl";
|
|
141
|
+
readCommit: "readCommit";
|
|
142
|
+
readTree: "readTree";
|
|
143
|
+
readBlob: "readBlob";
|
|
144
|
+
refs: "refs";
|
|
145
|
+
}>;
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
Native method identity is a source-owned refinement, not a transport parser.
|
|
149
|
+
|
|
150
|
+
## Functions
|
|
151
|
+
|
|
152
|
+
### invokeNativeGit()
|
|
153
|
+
|
|
154
|
+
```ts
|
|
155
|
+
function invokeNativeGit(
|
|
156
|
+
git,
|
|
157
|
+
method,
|
|
158
|
+
raw,
|
|
159
|
+
): Promise<
|
|
160
|
+
| string
|
|
161
|
+
| boolean
|
|
162
|
+
| Uint8Array<ArrayBufferLike>
|
|
163
|
+
| object[]
|
|
164
|
+
| Readonly<{
|
|
165
|
+
status: number;
|
|
166
|
+
headers: Readonly<Record<string, string>>;
|
|
167
|
+
body: Uint8Array;
|
|
168
|
+
}>
|
|
169
|
+
| Readonly<{
|
|
170
|
+
name: string;
|
|
171
|
+
defaultBranch: string;
|
|
172
|
+
lastPushAt: string | null;
|
|
173
|
+
source: string | null;
|
|
174
|
+
}>
|
|
175
|
+
| Readonly<{
|
|
176
|
+
hash: string;
|
|
177
|
+
treeHash: string;
|
|
178
|
+
message: string;
|
|
179
|
+
author: {
|
|
180
|
+
name: string;
|
|
181
|
+
email: string;
|
|
182
|
+
};
|
|
183
|
+
committer: {
|
|
184
|
+
name: string;
|
|
185
|
+
email: string;
|
|
186
|
+
};
|
|
187
|
+
parents: string[];
|
|
188
|
+
authoredAt: number;
|
|
189
|
+
committedAt: number;
|
|
190
|
+
}>
|
|
191
|
+
| Readonly<{
|
|
192
|
+
hash: string;
|
|
193
|
+
treeHash: string;
|
|
194
|
+
message: string;
|
|
195
|
+
author: {
|
|
196
|
+
name: string;
|
|
197
|
+
email: string;
|
|
198
|
+
};
|
|
199
|
+
committer: {
|
|
200
|
+
name: string;
|
|
201
|
+
email: string;
|
|
202
|
+
};
|
|
203
|
+
parents: string[];
|
|
204
|
+
authoredAt: number;
|
|
205
|
+
committedAt: number;
|
|
206
|
+
}>[]
|
|
207
|
+
| Readonly<{
|
|
208
|
+
name: string;
|
|
209
|
+
mode: string;
|
|
210
|
+
hash: string;
|
|
211
|
+
type: "blob" | "tree" | "commit";
|
|
212
|
+
}>[]
|
|
213
|
+
| null
|
|
214
|
+
>;
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
Dispatch owned tuples through the retained native handle without a JSON
|
|
218
|
+
conversion.
|
|
219
|
+
|
|
220
|
+
#### Parameters
|
|
221
|
+
|
|
222
|
+
| Parameter | Type |
|
|
223
|
+
| --------- | --------------------------------- |
|
|
224
|
+
| `git` | [`GitBinding`](git.md#gitbinding) |
|
|
225
|
+
| `method` | `string` |
|
|
226
|
+
| `raw` | readonly `unknown`[] |
|
|
227
|
+
|
|
228
|
+
#### Returns
|
|
229
|
+
|
|
230
|
+
`Promise`\< \| `string` \| `boolean` \| `Uint8Array`\<`ArrayBufferLike`\> \|
|
|
231
|
+
`object`[] \| `Readonly`\<\{ `status`: `number`; `headers`:
|
|
232
|
+
`Readonly`\<`Record`\<`string`, `string`\>\>; `body`: `Uint8Array`; \}\> \|
|
|
233
|
+
`Readonly`\<\{ `name`: `string`; `defaultBranch`: `string`; `lastPushAt`:
|
|
234
|
+
`string` \| `null`; `source`: `string` \| `null`; \}\> \| `Readonly`\<\{ `hash`:
|
|
235
|
+
`string`; `treeHash`: `string`; `message`: `string`; `author`: \{ `name`:
|
|
236
|
+
`string`; `email`: `string`; \}; `committer`: \{ `name`: `string`; `email`:
|
|
237
|
+
`string`; \}; `parents`: `string`[]; `authoredAt`: `number`; `committedAt`:
|
|
238
|
+
`number`; \}\> \| `Readonly`\<\{ `hash`: `string`; `treeHash`: `string`;
|
|
239
|
+
`message`: `string`; `author`: \{ `name`: `string`; `email`: `string`; \};
|
|
240
|
+
`committer`: \{ `name`: `string`; `email`: `string`; \}; `parents`: `string`[];
|
|
241
|
+
`authoredAt`: `number`; `committedAt`: `number`; \}\>[] \| `Readonly`\<\{
|
|
242
|
+
`name`: `string`; `mode`: `string`; `hash`: `string`; `type`: `"blob"` \|
|
|
243
|
+
`"tree"` \| `"commit"`; \}\>[] \| `null`\>
|