git-rpc
Import
Section titled “Import”import * as api from "@fungi.computer/agar/git-rpc";Exports
Section titled “Exports”| Kind | Export | Description |
|---|---|---|
| type alias | NativeGitOperation | Host operation required before a native Git effect. |
| constant | nativeGitCodecs | The native tuple and result grammar shared by the handle and frame entrypoint. |
| constant | nativeGitFrameMethods | Native Git preserves tuples and binary values through the shared frame factory. |
| constant | nativeGitMethodNameSchema | Native method identity is a source-owned refinement, not a transport parser. |
| function | invokeNativeGit() | Dispatch owned tuples through the retained native handle without a JSON conversion. |
NativeGitOperationtype alias
Section titled “NativeGitOperation”type NativeGitOperation = "create" | "fork" | "read" | "write" | "exchange";Host operation required before a native Git effect.
nativeGitCodecsconstant
Section titled “nativeGitCodecs”const nativeGitCodecs: object;The native tuple and result grammar shared by the handle and frame entrypoint.
Type Declaration
Section titled “Type Declaration”nativeGitFrameMethodsconstant
Section titled “nativeGitFrameMethods”const nativeGitFrameMethods: object;Native Git preserves tuples and binary values through the shared frame factory.
Type Declaration
Section titled “Type Declaration”nativeGitMethodNameSchemaconstant
Section titled “nativeGitMethodNameSchema”const nativeGitMethodNameSchema: ZodEnum<{ info: "info"; create: "create"; log: "log"; delete: "delete"; exchange: "exchange"; fork: "fork"; cloneUrl: "cloneUrl"; readCommit: "readCommit"; readTree: "readTree"; readBlob: "readBlob"; refs: "refs";}>;Native method identity is a source-owned refinement, not a transport parser.
invokeNativeGit()function
Section titled “invokeNativeGit()”function invokeNativeGit( git, method, raw,): Promise< | string | boolean | Uint8Array<ArrayBufferLike> | object[] | Readonly<{ status: number; headers: Readonly<Record<string, string>>; body: Uint8Array; }> | Readonly<{ name: string; defaultBranch: string; lastPushAt: string | null; source: string | null; }> | Readonly<{ hash: string; treeHash: string; message: string; author: { name: string; email: string; }; committer: { name: string; email: string; }; parents: string[]; authoredAt: number; committedAt: number; }> | Readonly<{ hash: string; treeHash: string; message: string; author: { name: string; email: string; }; committer: { name: string; email: string; }; parents: string[]; authoredAt: number; committedAt: number; }>[] | Readonly<{ name: string; mode: string; hash: string; type: "blob" | "tree" | "commit"; }>[] | null>;Dispatch owned tuples through the retained native handle without a JSON conversion.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
git |
GitBinding |
method |
string |
raw |
readonly unknown[] |
Returns
Section titled “Returns”Promise< | string | boolean | Uint8Array<ArrayBufferLike> |
object[] | Readonly<{ status: number; headers:
Readonly<Record<string, string>>; body: Uint8Array; }> |
Readonly<{ name: string; defaultBranch: string; lastPushAt:
string | null; source: string | null; }> | Readonly<{ hash:
string; treeHash: string; message: string; author: { name:
string; email: string; }; committer: { name: string; email:
string; }; parents: string[]; authoredAt: number; committedAt:
number; }> | Readonly<{ hash: string; treeHash: string;
message: string; author: { name: string; email: string; };
committer: { name: string; email: string; }; parents: string[];
authoredAt: number; committedAt: number; }>[] | Readonly<{
name: string; mode: string; hash: string; type: "blob" |
"tree" | "commit"; }>[] | null>