@nyte-ai/schema 0.0.0-stage → 0.0.19
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/THIRD-PARTY-NOTICES.md +866 -0
- package/dist/chunks/browser-0byq2fja.js +50 -0
- package/dist/chunks/browser-0chm3654.js +125 -0
- package/dist/chunks/browser-0g0z3617.js +47 -0
- package/dist/chunks/browser-0khex2b1.js +33 -0
- package/dist/chunks/browser-0sbkxgkx.js +115 -0
- package/dist/chunks/browser-0xr6c36r.js +106 -0
- package/dist/chunks/browser-1nqahr9q.js +239 -0
- package/dist/chunks/browser-1sfp0bcx.js +73 -0
- package/dist/chunks/browser-3exd93gm.js +50 -0
- package/dist/chunks/browser-40enyw9r.js +75 -0
- package/dist/chunks/browser-4et7qtz3.js +7 -0
- package/dist/chunks/browser-6e1madxa.js +83 -0
- package/dist/chunks/browser-6yby604e.js +96 -0
- package/dist/chunks/browser-7195qf3t.js +14 -0
- package/dist/chunks/browser-8ancsy4m.js +118 -0
- package/dist/chunks/browser-9ystjh78.js +0 -0
- package/dist/chunks/browser-b519jtez.js +102 -0
- package/dist/chunks/browser-bg1esaw0.js +82 -0
- package/dist/chunks/browser-ebr6k189.js +120 -0
- package/dist/chunks/browser-ekbecx9r.js +73 -0
- package/dist/chunks/browser-fd3accdr.js +159 -0
- package/dist/chunks/browser-g5khdcap.js +170 -0
- package/dist/chunks/browser-h5k4hqfq.js +244 -0
- package/dist/chunks/browser-h86zs54a.js +65 -0
- package/dist/chunks/browser-hp9ze9ga.js +185 -0
- package/dist/chunks/browser-hq5q56sf.js +79 -0
- package/dist/chunks/browser-j150etqf.js +101 -0
- package/dist/chunks/browser-j629a6wa.js +17 -0
- package/dist/chunks/browser-jgxe05s4.js +301 -0
- package/dist/chunks/browser-k20f6cvv.js +0 -0
- package/dist/chunks/browser-m0wzr0g8.js +5 -0
- package/dist/chunks/browser-mzfc0v5j.js +58 -0
- package/dist/chunks/browser-p691tcac.js +139 -0
- package/dist/chunks/browser-pdv675va.js +135 -0
- package/dist/chunks/browser-pvfshqyk.js +36 -0
- package/dist/chunks/browser-qkxe0fwp.js +6 -0
- package/dist/chunks/browser-qncc807c.js +66 -0
- package/dist/chunks/browser-r87w64mz.js +32 -0
- package/dist/chunks/browser-s2xe7c21.js +82 -0
- package/dist/chunks/browser-sgst60b0.js +293 -0
- package/dist/chunks/browser-sgwxbek9.js +37 -0
- package/dist/chunks/browser-v70eq512.js +215 -0
- package/dist/chunks/browser-vzc3r2r3.js +64 -0
- package/dist/chunks/browser-xensz05x.js +172 -0
- package/dist/chunks/browser-ynj8v9ad.js +35 -0
- package/dist/chunks/browser-ypez6s7v.js +52 -0
- package/dist/src/browser.d.ts +64 -0
- package/dist/src/browser.js +26 -0
- package/dist/src/configuration.d.ts +26 -0
- package/dist/src/configuration.js +17 -0
- package/dist/src/connection.d.ts +189 -0
- package/dist/src/connection.js +35 -0
- package/dist/src/declaration.d.ts +12 -0
- package/dist/src/declaration.js +1 -0
- package/dist/src/errors.d.ts +56 -0
- package/dist/src/errors.js +23 -0
- package/dist/src/events.d.ts +1752 -0
- package/dist/src/events.js +36 -0
- package/dist/src/files.d.ts +130 -0
- package/dist/src/files.js +49 -0
- package/dist/src/git.d.ts +280 -0
- package/dist/src/git.js +66 -0
- package/dist/src/github.d.ts +174 -0
- package/dist/src/github.js +31 -0
- package/dist/src/heads.d.ts +255 -0
- package/dist/src/heads.js +48 -0
- package/dist/src/hooks.d.ts +201 -0
- package/dist/src/hooks.js +28 -0
- package/dist/src/host.d.ts +137 -0
- package/dist/src/host.js +49 -0
- package/dist/src/ids.d.ts +66 -0
- package/dist/src/ids.js +67 -0
- package/dist/src/index.d.ts +30 -0
- package/dist/src/index.js +783 -0
- package/dist/src/jobs.d.ts +152 -0
- package/dist/src/jobs.js +34 -0
- package/dist/src/json.d.ts +24 -0
- package/dist/src/json.js +21 -0
- package/dist/src/mcp.d.ts +212 -0
- package/dist/src/mcp.js +34 -0
- package/dist/src/messages.d.ts +114 -0
- package/dist/src/messages.js +28 -0
- package/dist/src/model/index.d.ts +6 -0
- package/dist/src/model/index.js +61 -0
- package/dist/src/model/message.d.ts +178 -0
- package/dist/src/model/message.js +7 -0
- package/dist/src/model/model.d.ts +154 -0
- package/dist/src/model/model.js +11 -0
- package/dist/src/model/text.d.ts +6 -0
- package/dist/src/model/text.js +10 -0
- package/dist/src/model/tool.d.ts +36 -0
- package/dist/src/model/tool.js +1 -0
- package/dist/src/model/transcript.d.ts +34 -0
- package/dist/src/model/transcript.js +37 -0
- package/dist/src/model/typed.d.ts +6 -0
- package/dist/src/model/typed.js +8 -0
- package/dist/src/models.d.ts +198 -0
- package/dist/src/models.js +47 -0
- package/dist/src/parts.d.ts +364 -0
- package/dist/src/parts.js +35 -0
- package/dist/src/patch.d.ts +21 -0
- package/dist/src/patch.js +11 -0
- package/dist/src/plugins.d.ts +36 -0
- package/dist/src/plugins.js +9 -0
- package/dist/src/primitives.d.ts +83 -0
- package/dist/src/primitives.js +26 -0
- package/dist/src/runs.d.ts +433 -0
- package/dist/src/runs.js +39 -0
- package/dist/src/schema.d.ts +14 -0
- package/dist/src/schema.js +8 -0
- package/dist/src/serial.d.ts +18 -0
- package/dist/src/serial.js +39 -0
- package/dist/src/sessions.d.ts +578 -0
- package/dist/src/sessions.js +74 -0
- package/dist/src/store.d.ts +830 -0
- package/dist/src/store.js +33 -0
- package/dist/src/tools.d.ts +76 -0
- package/dist/src/tools.js +24 -0
- package/dist/src/views.d.ts +3105 -0
- package/dist/src/views.js +50 -0
- package/dist/src/wire/base64.d.ts +2 -0
- package/dist/src/wire/base64.js +6 -0
- package/dist/src/wire/nullable.d.ts +2 -0
- package/dist/src/wire/nullable.js +6 -0
- package/dist/src/wire/operations/browser.d.ts +535 -0
- package/dist/src/wire/operations/browser.js +12 -0
- package/dist/src/wire/operations/fields.d.ts +54 -0
- package/dist/src/wire/operations/fields.js +30 -0
- package/dist/src/wire/operations/files.d.ts +244 -0
- package/dist/src/wire/operations/files.js +13 -0
- package/dist/src/wire/operations/git.d.ts +513 -0
- package/dist/src/wire/operations/git.js +15 -0
- package/dist/src/wire/operations/github.d.ts +172 -0
- package/dist/src/wire/operations/github.js +12 -0
- package/dist/src/wire/operations/host.d.ts +1031 -0
- package/dist/src/wire/operations/host.js +27 -0
- package/dist/src/wire/operations/index.d.ts +7103 -0
- package/dist/src/wire/operations/index.js +40 -0
- package/dist/src/wire/operations/session.d.ts +3779 -0
- package/dist/src/wire/operations/session.js +25 -0
- package/dist/src/wire/operations/workspace.d.ts +842 -0
- package/dist/src/wire/operations/workspace.js +24 -0
- package/dist/src/workspaces.d.ts +119 -0
- package/dist/src/workspaces.js +38 -0
- package/package.json +51 -3
- package/README.md +0 -3
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { Type } from "typebox";
|
|
2
|
+
import type { Decoded, Schema } from "./schema.ts";
|
|
3
|
+
/** The GitHub repository a workspace's remote names: its owner, name, the remote it was read from, and its canonical `https://github.com/<owner>/<name>` URL. Remote credentials and raw remote URLs never cross. */
|
|
4
|
+
export declare const GitHubRepositoryType: Type.TObject<{
|
|
5
|
+
owner: Type.TString;
|
|
6
|
+
name: Type.TString;
|
|
7
|
+
remoteName: Type.TString;
|
|
8
|
+
url: Type.TString;
|
|
9
|
+
}>;
|
|
10
|
+
export type GitHubRepository = Decoded<typeof GitHubRepositoryType>;
|
|
11
|
+
/** The account the serving machine's `gh` is signed in as on github.com. */
|
|
12
|
+
export declare const GitHubAccountType: Type.TObject<{
|
|
13
|
+
login: Type.TString;
|
|
14
|
+
name: Type.TOptional<Type.TString>;
|
|
15
|
+
avatarUrl: Type.TOptional<Type.TString>;
|
|
16
|
+
}>;
|
|
17
|
+
export type GitHubAccount = Decoded<typeof GitHubAccountType>;
|
|
18
|
+
/** One CI check on a pull request's head commit: a check run or a commit status, folded to the four states a reader acts on. */
|
|
19
|
+
export declare const GitHubCheckType: Type.TObject<{
|
|
20
|
+
name: Type.TString;
|
|
21
|
+
state: Type.TEnum<["pending", "passed", "failed", "skipped"]>;
|
|
22
|
+
url: Type.TOptional<Type.TString>;
|
|
23
|
+
}>;
|
|
24
|
+
export type GitHubCheck = Decoded<typeof GitHubCheckType>;
|
|
25
|
+
/** The pull request for a workspace's checked-out branch, with the checks on its head commit. */
|
|
26
|
+
export declare const GitHubPullRequestType: Type.TObject<{
|
|
27
|
+
number: Type.TInteger;
|
|
28
|
+
title: Type.TString;
|
|
29
|
+
url: Type.TString;
|
|
30
|
+
state: Type.TEnum<["OPEN", "CLOSED", "MERGED"]>;
|
|
31
|
+
draft: Type.TBoolean;
|
|
32
|
+
headRefName: Type.TString;
|
|
33
|
+
baseRefName: Type.TString;
|
|
34
|
+
checks: Type.TArray<Type.TObject<{
|
|
35
|
+
name: Type.TString;
|
|
36
|
+
state: Type.TEnum<["pending", "passed", "failed", "skipped"]>;
|
|
37
|
+
url: Type.TOptional<Type.TString>;
|
|
38
|
+
}>>;
|
|
39
|
+
}>;
|
|
40
|
+
export type GitHubPullRequest = Decoded<typeof GitHubPullRequestType>;
|
|
41
|
+
/** Whether the checked-out branch has a pull request: `none` also for a detached HEAD or a folder without a GitHub remote, `unavailable` while the machine's `gh` has no account that can read it (see `github.account`). */
|
|
42
|
+
export declare const GitHubPullRequestContextType: Type.TUnion<[Type.TObject<{
|
|
43
|
+
kind: Type.TLiteral<"none">;
|
|
44
|
+
}>, Type.TObject<{
|
|
45
|
+
kind: Type.TLiteral<"unavailable">;
|
|
46
|
+
}>, Type.TObject<{
|
|
47
|
+
kind: Type.TLiteral<"ready">;
|
|
48
|
+
pullRequest: Type.TObject<{
|
|
49
|
+
number: Type.TInteger;
|
|
50
|
+
title: Type.TString;
|
|
51
|
+
url: Type.TString;
|
|
52
|
+
state: Type.TEnum<["OPEN", "CLOSED", "MERGED"]>;
|
|
53
|
+
draft: Type.TBoolean;
|
|
54
|
+
headRefName: Type.TString;
|
|
55
|
+
baseRefName: Type.TString;
|
|
56
|
+
checks: Type.TArray<Type.TObject<{
|
|
57
|
+
name: Type.TString;
|
|
58
|
+
state: Type.TEnum<["pending", "passed", "failed", "skipped"]>;
|
|
59
|
+
url: Type.TOptional<Type.TString>;
|
|
60
|
+
}>>;
|
|
61
|
+
}>;
|
|
62
|
+
}>, Type.TObject<{
|
|
63
|
+
kind: Type.TLiteral<"error">;
|
|
64
|
+
message: Type.TString;
|
|
65
|
+
}>]>;
|
|
66
|
+
export type GitHubPullRequestContext = Decoded<typeof GitHubPullRequestContextType>;
|
|
67
|
+
/** The one-time code `gh auth login` printed and the github.com page it is entered at; it lasts until the sign-in ends. */
|
|
68
|
+
export declare const GitHubDeviceCodeType: Type.TObject<{
|
|
69
|
+
userCode: Type.TString;
|
|
70
|
+
verificationUri: Type.TString;
|
|
71
|
+
expiresInSeconds: Type.TOptional<Type.TNumber>;
|
|
72
|
+
}>;
|
|
73
|
+
export type GitHubDeviceCode = Decoded<typeof GitHubDeviceCodeType>;
|
|
74
|
+
/** The serving machine's `gh` login, one for the whole machine: `cli_missing` when no `gh` is on the PATH, `signed_out` with no github.com account, `signing_in` while a sign-in waits for its code, `ready` with the account, `error` with what to do next. */
|
|
75
|
+
export declare const GitHubAccountStateType: Type.TUnion<[Type.TObject<{
|
|
76
|
+
kind: Type.TLiteral<"cli_missing">;
|
|
77
|
+
}>, Type.TObject<{
|
|
78
|
+
kind: Type.TLiteral<"signed_out">;
|
|
79
|
+
}>, Type.TObject<{
|
|
80
|
+
kind: Type.TLiteral<"signing_in">;
|
|
81
|
+
deviceCode: Type.TObject<{
|
|
82
|
+
userCode: Type.TString;
|
|
83
|
+
verificationUri: Type.TString;
|
|
84
|
+
expiresInSeconds: Type.TOptional<Type.TNumber>;
|
|
85
|
+
}>;
|
|
86
|
+
}>, Type.TObject<{
|
|
87
|
+
kind: Type.TLiteral<"ready">;
|
|
88
|
+
account: Type.TObject<{
|
|
89
|
+
login: Type.TString;
|
|
90
|
+
name: Type.TOptional<Type.TString>;
|
|
91
|
+
avatarUrl: Type.TOptional<Type.TString>;
|
|
92
|
+
}>;
|
|
93
|
+
}>, Type.TObject<{
|
|
94
|
+
kind: Type.TLiteral<"error">;
|
|
95
|
+
message: Type.TString;
|
|
96
|
+
}>]>;
|
|
97
|
+
export type GitHubAccountState = Decoded<typeof GitHubAccountStateType>;
|
|
98
|
+
/** A workspace on GitHub: the repository its remotes name, absent where none names github.com, and the checked-out branch's pull request. */
|
|
99
|
+
export declare const GitHubStateType: Type.TObject<{
|
|
100
|
+
repository: Type.TOptional<Type.TObject<{
|
|
101
|
+
owner: Type.TString;
|
|
102
|
+
name: Type.TString;
|
|
103
|
+
remoteName: Type.TString;
|
|
104
|
+
url: Type.TString;
|
|
105
|
+
}>>;
|
|
106
|
+
pullRequest: Type.TUnion<[Type.TObject<{
|
|
107
|
+
kind: Type.TLiteral<"none">;
|
|
108
|
+
}>, Type.TObject<{
|
|
109
|
+
kind: Type.TLiteral<"unavailable">;
|
|
110
|
+
}>, Type.TObject<{
|
|
111
|
+
kind: Type.TLiteral<"ready">;
|
|
112
|
+
pullRequest: Type.TObject<{
|
|
113
|
+
number: Type.TInteger;
|
|
114
|
+
title: Type.TString;
|
|
115
|
+
url: Type.TString;
|
|
116
|
+
state: Type.TEnum<["OPEN", "CLOSED", "MERGED"]>;
|
|
117
|
+
draft: Type.TBoolean;
|
|
118
|
+
headRefName: Type.TString;
|
|
119
|
+
baseRefName: Type.TString;
|
|
120
|
+
checks: Type.TArray<Type.TObject<{
|
|
121
|
+
name: Type.TString;
|
|
122
|
+
state: Type.TEnum<["pending", "passed", "failed", "skipped"]>;
|
|
123
|
+
url: Type.TOptional<Type.TString>;
|
|
124
|
+
}>>;
|
|
125
|
+
}>;
|
|
126
|
+
}>, Type.TObject<{
|
|
127
|
+
kind: Type.TLiteral<"error">;
|
|
128
|
+
message: Type.TString;
|
|
129
|
+
}>]>;
|
|
130
|
+
}>;
|
|
131
|
+
export type GitHubState = Decoded<typeof GitHubStateType>;
|
|
132
|
+
/** What opening a pull request takes. Without a title `gh` fills the title and body from the branch's commits. */
|
|
133
|
+
export declare const GitHubPullRequestInputType: Type.TObject<{
|
|
134
|
+
title: Type.TOptional<Type.TString>;
|
|
135
|
+
body: Type.TOptional<Type.TString>;
|
|
136
|
+
draft: Type.TOptional<Type.TBoolean>;
|
|
137
|
+
}>;
|
|
138
|
+
export type GitHubPullRequestInput = Decoded<typeof GitHubPullRequestInputType>;
|
|
139
|
+
/** How opening a pull request ended: `created` with the new one, `exists` with the open one for the branch, or the precondition that stopped it. */
|
|
140
|
+
export declare const GitHubPullRequestOutcomeType: Type.TUnion<[Type.TObject<{
|
|
141
|
+
kind: Type.TLiteral<"created">;
|
|
142
|
+
url: Type.TString;
|
|
143
|
+
}>, Type.TObject<{
|
|
144
|
+
kind: Type.TLiteral<"exists">;
|
|
145
|
+
pullRequest: Type.TObject<{
|
|
146
|
+
number: Type.TInteger;
|
|
147
|
+
title: Type.TString;
|
|
148
|
+
url: Type.TString;
|
|
149
|
+
state: Type.TEnum<["OPEN", "CLOSED", "MERGED"]>;
|
|
150
|
+
draft: Type.TBoolean;
|
|
151
|
+
headRefName: Type.TString;
|
|
152
|
+
baseRefName: Type.TString;
|
|
153
|
+
checks: Type.TArray<Type.TObject<{
|
|
154
|
+
name: Type.TString;
|
|
155
|
+
state: Type.TEnum<["pending", "passed", "failed", "skipped"]>;
|
|
156
|
+
url: Type.TOptional<Type.TString>;
|
|
157
|
+
}>>;
|
|
158
|
+
}>;
|
|
159
|
+
}>, Type.TObject<{
|
|
160
|
+
kind: Type.TLiteral<"cli_missing">;
|
|
161
|
+
}>, Type.TObject<{
|
|
162
|
+
kind: Type.TLiteral<"signed_out">;
|
|
163
|
+
}>, Type.TObject<{
|
|
164
|
+
kind: Type.TLiteral<"no_remote">;
|
|
165
|
+
}>, Type.TObject<{
|
|
166
|
+
kind: Type.TLiteral<"detached">;
|
|
167
|
+
}>, Type.TObject<{
|
|
168
|
+
kind: Type.TLiteral<"failed">;
|
|
169
|
+
message: Type.TString;
|
|
170
|
+
}>]>;
|
|
171
|
+
export type GitHubPullRequestOutcome = Decoded<typeof GitHubPullRequestOutcomeType>;
|
|
172
|
+
export declare const GitHubStateSchema: Schema<GitHubState>;
|
|
173
|
+
export declare const GitHubAccountStateSchema: Schema<GitHubAccountState>;
|
|
174
|
+
export declare const GitHubPullRequestOutcomeSchema: Schema<GitHubPullRequestOutcome>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GitHubRepositoryType2,
|
|
3
|
+
GitHubAccountType2,
|
|
4
|
+
GitHubCheckType2,
|
|
5
|
+
GitHubPullRequestType2,
|
|
6
|
+
GitHubPullRequestContextType2,
|
|
7
|
+
GitHubDeviceCodeType2,
|
|
8
|
+
GitHubAccountStateType2,
|
|
9
|
+
GitHubStateType2,
|
|
10
|
+
GitHubPullRequestInputType2,
|
|
11
|
+
GitHubPullRequestOutcomeType2,
|
|
12
|
+
GitHubStateSchema2,
|
|
13
|
+
GitHubAccountStateSchema2,
|
|
14
|
+
GitHubPullRequestOutcomeSchema2
|
|
15
|
+
} from "../chunks/browser-ekbecx9r.js";
|
|
16
|
+
import"../chunks/browser-vzc3r2r3.js";
|
|
17
|
+
export {
|
|
18
|
+
GitHubAccountStateSchema2 as GitHubAccountStateSchema,
|
|
19
|
+
GitHubAccountStateType2 as GitHubAccountStateType,
|
|
20
|
+
GitHubAccountType2 as GitHubAccountType,
|
|
21
|
+
GitHubCheckType2 as GitHubCheckType,
|
|
22
|
+
GitHubDeviceCodeType2 as GitHubDeviceCodeType,
|
|
23
|
+
GitHubPullRequestContextType2 as GitHubPullRequestContextType,
|
|
24
|
+
GitHubPullRequestInputType2 as GitHubPullRequestInputType,
|
|
25
|
+
GitHubPullRequestOutcomeSchema2 as GitHubPullRequestOutcomeSchema,
|
|
26
|
+
GitHubPullRequestOutcomeType2 as GitHubPullRequestOutcomeType,
|
|
27
|
+
GitHubPullRequestType2 as GitHubPullRequestType,
|
|
28
|
+
GitHubRepositoryType2 as GitHubRepositoryType,
|
|
29
|
+
GitHubStateSchema2 as GitHubStateSchema,
|
|
30
|
+
GitHubStateType2 as GitHubStateType
|
|
31
|
+
};
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import { Type } from "typebox";
|
|
2
|
+
import type { Decoded, Schema } from "./schema.ts";
|
|
3
|
+
export declare const TreeNodeType: Type.TObject<{
|
|
4
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"commit">>;
|
|
5
|
+
parent: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"commit">>, Type.TNull]>;
|
|
6
|
+
depth: Type.TNumber;
|
|
7
|
+
branch: Type.TBoolean;
|
|
8
|
+
active: Type.TBoolean;
|
|
9
|
+
heads: Type.TArray<Type.TUnsafe<import("./ids.ts").Id<"head">>>;
|
|
10
|
+
kind: Type.TEnum<["user", "part", "compaction", "branchSummary"]>;
|
|
11
|
+
partKind: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
12
|
+
preview: Type.TString;
|
|
13
|
+
at: Type.TNumber;
|
|
14
|
+
run: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
|
|
15
|
+
}>;
|
|
16
|
+
export type TreeNode = Decoded<typeof TreeNodeType>;
|
|
17
|
+
export declare const TreeViewType: Type.TObject<{
|
|
18
|
+
revision: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"revision">>, Type.TNull]>;
|
|
19
|
+
tip: Type.TUnion<[Type.TObject<{
|
|
20
|
+
kind: Type.TLiteral<"start">;
|
|
21
|
+
}>, Type.TObject<{
|
|
22
|
+
kind: Type.TLiteral<"commit">;
|
|
23
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"commit">>;
|
|
24
|
+
}>]>;
|
|
25
|
+
nodes: Type.TArray<Type.TObject<{
|
|
26
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"commit">>;
|
|
27
|
+
parent: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"commit">>, Type.TNull]>;
|
|
28
|
+
depth: Type.TNumber;
|
|
29
|
+
branch: Type.TBoolean;
|
|
30
|
+
active: Type.TBoolean;
|
|
31
|
+
heads: Type.TArray<Type.TUnsafe<import("./ids.ts").Id<"head">>>;
|
|
32
|
+
kind: Type.TEnum<["user", "part", "compaction", "branchSummary"]>;
|
|
33
|
+
partKind: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
34
|
+
preview: Type.TString;
|
|
35
|
+
at: Type.TNumber;
|
|
36
|
+
run: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"run">>, Type.TNull]>;
|
|
37
|
+
}>>;
|
|
38
|
+
}>;
|
|
39
|
+
export type TreeView = Decoded<typeof TreeViewType>;
|
|
40
|
+
export declare const CreateHeadOutcomeType: Type.TUnion<[Type.TObject<{
|
|
41
|
+
kind: Type.TLiteral<"created">;
|
|
42
|
+
basedOn: Type.TUnion<[Type.TObject<{
|
|
43
|
+
kind: Type.TLiteral<"start">;
|
|
44
|
+
}>, Type.TObject<{
|
|
45
|
+
kind: Type.TLiteral<"commit">;
|
|
46
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"commit">>;
|
|
47
|
+
}>]>;
|
|
48
|
+
}>, Type.TObject<{
|
|
49
|
+
kind: Type.TLiteral<"exists">;
|
|
50
|
+
}>, Type.TObject<{
|
|
51
|
+
kind: Type.TLiteral<"missing-source">;
|
|
52
|
+
}>]>;
|
|
53
|
+
export type CreateHeadOutcome = Decoded<typeof CreateHeadOutcomeType>;
|
|
54
|
+
export declare const MergeOutcomeType: Type.TUnion<[Type.TObject<{
|
|
55
|
+
kind: Type.TLiteral<"merged">;
|
|
56
|
+
revision: Type.TUnsafe<import("./ids.ts").Id<"revision">>;
|
|
57
|
+
}>, Type.TObject<{
|
|
58
|
+
kind: Type.TLiteral<"stale">;
|
|
59
|
+
revision: Type.TUnsafe<import("./ids.ts").Id<"revision">>;
|
|
60
|
+
}>, Type.TObject<{
|
|
61
|
+
kind: Type.TLiteral<"diverged">;
|
|
62
|
+
base: Type.TUnion<[Type.TObject<{
|
|
63
|
+
kind: Type.TLiteral<"start">;
|
|
64
|
+
}>, Type.TObject<{
|
|
65
|
+
kind: Type.TLiteral<"commit">;
|
|
66
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"commit">>;
|
|
67
|
+
}>]>;
|
|
68
|
+
}>, Type.TObject<{
|
|
69
|
+
kind: Type.TLiteral<"is-main">;
|
|
70
|
+
}>, Type.TObject<{
|
|
71
|
+
kind: Type.TLiteral<"busy">;
|
|
72
|
+
run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
|
|
73
|
+
}>]>;
|
|
74
|
+
export type MergeOutcome = Decoded<typeof MergeOutcomeType>;
|
|
75
|
+
export declare const RemoveHeadOutcomeType: Type.TUnion<[Type.TObject<{
|
|
76
|
+
kind: Type.TLiteral<"removed">;
|
|
77
|
+
}>, Type.TObject<{
|
|
78
|
+
kind: Type.TLiteral<"missing">;
|
|
79
|
+
}>, Type.TObject<{
|
|
80
|
+
kind: Type.TLiteral<"is-main">;
|
|
81
|
+
}>, Type.TObject<{
|
|
82
|
+
kind: Type.TLiteral<"busy">;
|
|
83
|
+
run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
|
|
84
|
+
}>]>;
|
|
85
|
+
export type RemoveHeadOutcome = Decoded<typeof RemoveHeadOutcomeType>;
|
|
86
|
+
export declare const MoveOutcomeType: Type.TUnion<[Type.TObject<{
|
|
87
|
+
kind: Type.TLiteral<"moved">;
|
|
88
|
+
revision: Type.TUnsafe<import("./ids.ts").Id<"revision">>;
|
|
89
|
+
position: Type.TUnion<[Type.TObject<{
|
|
90
|
+
kind: Type.TLiteral<"start">;
|
|
91
|
+
}>, Type.TObject<{
|
|
92
|
+
kind: Type.TLiteral<"commit">;
|
|
93
|
+
id: Type.TUnsafe<import("./ids.ts").Id<"commit">>;
|
|
94
|
+
}>]>;
|
|
95
|
+
summary: Type.TUnion<[Type.TUnsafe<import("./ids.ts").Id<"message">>, Type.TNull]>;
|
|
96
|
+
handback: Type.TUnion<[Type.TUnion<[Type.TString, Type.TArray<Type.TUnion<[Type.TObject<{
|
|
97
|
+
kind: Type.TLiteral<"text">;
|
|
98
|
+
text: Type.TString;
|
|
99
|
+
}>, Type.TObject<{
|
|
100
|
+
kind: Type.TLiteral<"file">;
|
|
101
|
+
blob: Type.TUnsafe<import("./ids.ts").Id<"blob">>;
|
|
102
|
+
mime: Type.TString;
|
|
103
|
+
name: Type.TString;
|
|
104
|
+
}>, Type.TObject<{
|
|
105
|
+
kind: Type.TLiteral<"reference">;
|
|
106
|
+
path: Type.TString;
|
|
107
|
+
blob: Type.TOptional<Type.TUnsafe<import("./ids.ts").Id<"blob">>>;
|
|
108
|
+
}>, Type.TObject<{
|
|
109
|
+
kind: Type.TLiteral<"skill">;
|
|
110
|
+
name: Type.TString;
|
|
111
|
+
location: Type.TString;
|
|
112
|
+
}>, Type.TObject<{
|
|
113
|
+
kind: Type.TLiteral<"excerpt">;
|
|
114
|
+
source: Type.TUnion<[Type.TObject<{
|
|
115
|
+
kind: Type.TLiteral<"diff">;
|
|
116
|
+
path: Type.TString;
|
|
117
|
+
side: Type.TEnum<["old", "new"]>;
|
|
118
|
+
start: Type.TNumber;
|
|
119
|
+
end: Type.TNumber;
|
|
120
|
+
}>, Type.TObject<{
|
|
121
|
+
kind: Type.TLiteral<"terminal">;
|
|
122
|
+
command: Type.TOptional<Type.TString>;
|
|
123
|
+
}>, Type.TObject<{
|
|
124
|
+
kind: Type.TLiteral<"browser">;
|
|
125
|
+
url: Type.TString;
|
|
126
|
+
selector: Type.TString;
|
|
127
|
+
}>]>;
|
|
128
|
+
text: Type.TString;
|
|
129
|
+
}>]>>]>, Type.TNull]>;
|
|
130
|
+
}>, Type.TObject<{
|
|
131
|
+
kind: Type.TLiteral<"stale">;
|
|
132
|
+
revision: Type.TUnsafe<import("./ids.ts").Id<"revision">>;
|
|
133
|
+
}>, Type.TObject<{
|
|
134
|
+
kind: Type.TLiteral<"busy">;
|
|
135
|
+
run: Type.TUnsafe<import("./ids.ts").Id<"run">>;
|
|
136
|
+
}>, Type.TObject<{
|
|
137
|
+
kind: Type.TLiteral<"pending-input">;
|
|
138
|
+
messages: Type.TArray<Type.TUnsafe<import("./ids.ts").Id<"message">>>;
|
|
139
|
+
}>, Type.TObject<{
|
|
140
|
+
kind: Type.TLiteral<"missing-target">;
|
|
141
|
+
}>, Type.TObject<{
|
|
142
|
+
kind: Type.TLiteral<"summary-failed">;
|
|
143
|
+
reason: Type.TString;
|
|
144
|
+
}>]>;
|
|
145
|
+
export type MoveOutcome = Decoded<typeof MoveOutcomeType>;
|
|
146
|
+
export declare const MoveOptionsType: Type.TObject<{
|
|
147
|
+
running: Type.TOptional<Type.TEnum<["refuse", "stop"]>>;
|
|
148
|
+
abandoned: Type.TOptional<Type.TUnion<[Type.TLiteral<"keep">, Type.TObject<{
|
|
149
|
+
summarize: Type.TObject<{
|
|
150
|
+
instructions: Type.TOptional<Type.TString>;
|
|
151
|
+
}>;
|
|
152
|
+
}>]>>;
|
|
153
|
+
expect: Type.TOptional<Type.TUnsafe<import("./ids.ts").Id<"revision">>>;
|
|
154
|
+
}>;
|
|
155
|
+
export type MoveOptions = Decoded<typeof MoveOptionsType>;
|
|
156
|
+
export declare const SendOptionsType: Type.TObject<{
|
|
157
|
+
delivery: Type.TOptional<Type.TEnum<["steer", "queue", "attach"]>>;
|
|
158
|
+
replace: Type.TOptional<Type.TUnsafe<import("./ids.ts").Id<"message">>>;
|
|
159
|
+
running: Type.TOptional<Type.TEnum<["refuse", "stop"]>>;
|
|
160
|
+
abandoned: Type.TOptional<Type.TUnion<[Type.TLiteral<"keep">, Type.TObject<{
|
|
161
|
+
summarize: Type.TObject<{
|
|
162
|
+
instructions: Type.TOptional<Type.TString>;
|
|
163
|
+
}>;
|
|
164
|
+
}>]>>;
|
|
165
|
+
expect: Type.TOptional<Type.TUnsafe<import("./ids.ts").Id<"revision">>>;
|
|
166
|
+
position: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
167
|
+
kind: Type.TLiteral<"last">;
|
|
168
|
+
}>, Type.TObject<{
|
|
169
|
+
kind: Type.TLiteral<"before">;
|
|
170
|
+
message: Type.TUnsafe<import("./ids.ts").Id<"message">>;
|
|
171
|
+
}>]>>;
|
|
172
|
+
source: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
173
|
+
kind: Type.TLiteral<"user">;
|
|
174
|
+
}>, Type.TObject<{
|
|
175
|
+
kind: Type.TLiteral<"child">;
|
|
176
|
+
session: Type.TUnsafe<import("./ids.ts").Id<"session">>;
|
|
177
|
+
end: Type.TEnum<["completed", "stopped", "failed"]>;
|
|
178
|
+
}>, Type.TObject<{
|
|
179
|
+
kind: Type.TLiteral<"job">;
|
|
180
|
+
job: Type.TUnsafe<import("./ids.ts").Id<"job">>;
|
|
181
|
+
}>, Type.TObject<{
|
|
182
|
+
kind: Type.TLiteral<"shell">;
|
|
183
|
+
}>, Type.TObject<{
|
|
184
|
+
kind: Type.TLiteral<"action">;
|
|
185
|
+
label: Type.TString;
|
|
186
|
+
command: Type.TOptional<Type.TString>;
|
|
187
|
+
}>]>>;
|
|
188
|
+
configuration: Type.TOptional<Type.TUnion<[Type.TObject<{
|
|
189
|
+
kind: Type.TLiteral<"exact">;
|
|
190
|
+
model: Type.TObject<{
|
|
191
|
+
provider: Type.TString;
|
|
192
|
+
id: Type.TString;
|
|
193
|
+
}>;
|
|
194
|
+
thinking: Type.TEnum<["off", "minimal", "low", "medium", "high", "xhigh", "max"]>;
|
|
195
|
+
agent: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
196
|
+
settings: Type.TRecord<"^.*$", Type.TUnsafe<import("./json.ts").Json>>;
|
|
197
|
+
settingsVersion: Type.TString;
|
|
198
|
+
}>, Type.TObject<{
|
|
199
|
+
model: Type.TOptional<Type.TObject<{
|
|
200
|
+
provider: Type.TString;
|
|
201
|
+
id: Type.TString;
|
|
202
|
+
}>>;
|
|
203
|
+
thinking: Type.TOptional<Type.TUnion<[Type.TEnum<["off", "minimal", "low", "medium", "high", "xhigh", "max"]>, Type.TNull]>>;
|
|
204
|
+
agent: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
205
|
+
settings: Type.TOptional<Type.TRecord<"^.*$", Type.TUnsafe<import("./json.ts").Json>>>;
|
|
206
|
+
}>]>>;
|
|
207
|
+
id: Type.TOptional<Type.TUnsafe<import("./ids.ts").Id<"receipt">>>;
|
|
208
|
+
}>;
|
|
209
|
+
export type SendOptions = Decoded<typeof SendOptionsType>;
|
|
210
|
+
export declare const ConfigureOutcomeType: Type.TUnion<[Type.TObject<{
|
|
211
|
+
kind: Type.TLiteral<"configured">;
|
|
212
|
+
selected: Type.TObject<{
|
|
213
|
+
kind: Type.TLiteral<"exact">;
|
|
214
|
+
model: Type.TObject<{
|
|
215
|
+
provider: Type.TString;
|
|
216
|
+
id: Type.TString;
|
|
217
|
+
}>;
|
|
218
|
+
thinking: Type.TEnum<["off", "minimal", "low", "medium", "high", "xhigh", "max"]>;
|
|
219
|
+
agent: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
220
|
+
settings: Type.TRecord<"^.*$", Type.TUnsafe<import("./json.ts").Json>>;
|
|
221
|
+
settingsVersion: Type.TString;
|
|
222
|
+
}>;
|
|
223
|
+
revision: Type.TUnsafe<import("./ids.ts").Id<"revision">>;
|
|
224
|
+
}>, Type.TObject<{
|
|
225
|
+
kind: Type.TLiteral<"unknown-model">;
|
|
226
|
+
model: Type.TObject<{
|
|
227
|
+
provider: Type.TString;
|
|
228
|
+
id: Type.TString;
|
|
229
|
+
}>;
|
|
230
|
+
}>, Type.TObject<{
|
|
231
|
+
kind: Type.TLiteral<"unknown-agent">;
|
|
232
|
+
agent: Type.TString;
|
|
233
|
+
}>, Type.TObject<{
|
|
234
|
+
kind: Type.TLiteral<"invalid">;
|
|
235
|
+
issues: Type.TArray<Type.TObject<{
|
|
236
|
+
severity: Type.TEnum<["error", "warning"]>;
|
|
237
|
+
path: Type.TArray<Type.TUnion<[Type.TString, Type.TNumber]>>;
|
|
238
|
+
message: Type.TString;
|
|
239
|
+
source: Type.TOptional<Type.TObject<{
|
|
240
|
+
plugin: Type.TString;
|
|
241
|
+
file: Type.TOptional<Type.TString>;
|
|
242
|
+
line: Type.TOptional<Type.TNumber>;
|
|
243
|
+
}>>;
|
|
244
|
+
}>>;
|
|
245
|
+
}>]>;
|
|
246
|
+
export type ConfigureOutcome = Decoded<typeof ConfigureOutcomeType>;
|
|
247
|
+
export declare const TreeNodeSchema: Schema<TreeNode>;
|
|
248
|
+
export declare const TreeViewSchema: Schema<TreeView>;
|
|
249
|
+
export declare const CreateHeadOutcomeSchema: Schema<CreateHeadOutcome>;
|
|
250
|
+
export declare const MergeOutcomeSchema: Schema<MergeOutcome>;
|
|
251
|
+
export declare const RemoveHeadOutcomeSchema: Schema<RemoveHeadOutcome>;
|
|
252
|
+
export declare const MoveOutcomeSchema: Schema<MoveOutcome>;
|
|
253
|
+
export declare const MoveOptionsSchema: Schema<MoveOptions>;
|
|
254
|
+
export declare const SendOptionsSchema: Schema<SendOptions>;
|
|
255
|
+
export declare const ConfigureOutcomeSchema: Schema<ConfigureOutcome>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TreeNodeType2,
|
|
3
|
+
TreeViewType2,
|
|
4
|
+
CreateHeadOutcomeType2,
|
|
5
|
+
MergeOutcomeType2,
|
|
6
|
+
RemoveHeadOutcomeType2,
|
|
7
|
+
MoveOutcomeType2,
|
|
8
|
+
MoveOptionsType2,
|
|
9
|
+
SendOptionsType2,
|
|
10
|
+
ConfigureOutcomeType2,
|
|
11
|
+
TreeNodeSchema2,
|
|
12
|
+
TreeViewSchema2,
|
|
13
|
+
CreateHeadOutcomeSchema2,
|
|
14
|
+
MergeOutcomeSchema2,
|
|
15
|
+
RemoveHeadOutcomeSchema2,
|
|
16
|
+
MoveOutcomeSchema2,
|
|
17
|
+
MoveOptionsSchema2,
|
|
18
|
+
SendOptionsSchema2,
|
|
19
|
+
ConfigureOutcomeSchema2
|
|
20
|
+
} from "../chunks/browser-0chm3654.js";
|
|
21
|
+
import"../chunks/browser-hq5q56sf.js";
|
|
22
|
+
import"../chunks/browser-ynj8v9ad.js";
|
|
23
|
+
import"../chunks/browser-0sbkxgkx.js";
|
|
24
|
+
import"../chunks/browser-sgwxbek9.js";
|
|
25
|
+
import"../chunks/browser-1sfp0bcx.js";
|
|
26
|
+
import"../chunks/browser-4et7qtz3.js";
|
|
27
|
+
import"../chunks/browser-ypez6s7v.js";
|
|
28
|
+
import"../chunks/browser-vzc3r2r3.js";
|
|
29
|
+
export {
|
|
30
|
+
ConfigureOutcomeSchema2 as ConfigureOutcomeSchema,
|
|
31
|
+
ConfigureOutcomeType2 as ConfigureOutcomeType,
|
|
32
|
+
CreateHeadOutcomeSchema2 as CreateHeadOutcomeSchema,
|
|
33
|
+
CreateHeadOutcomeType2 as CreateHeadOutcomeType,
|
|
34
|
+
MergeOutcomeSchema2 as MergeOutcomeSchema,
|
|
35
|
+
MergeOutcomeType2 as MergeOutcomeType,
|
|
36
|
+
MoveOptionsSchema2 as MoveOptionsSchema,
|
|
37
|
+
MoveOptionsType2 as MoveOptionsType,
|
|
38
|
+
MoveOutcomeSchema2 as MoveOutcomeSchema,
|
|
39
|
+
MoveOutcomeType2 as MoveOutcomeType,
|
|
40
|
+
RemoveHeadOutcomeSchema2 as RemoveHeadOutcomeSchema,
|
|
41
|
+
RemoveHeadOutcomeType2 as RemoveHeadOutcomeType,
|
|
42
|
+
SendOptionsSchema2 as SendOptionsSchema,
|
|
43
|
+
SendOptionsType2 as SendOptionsType,
|
|
44
|
+
TreeNodeSchema2 as TreeNodeSchema,
|
|
45
|
+
TreeNodeType2 as TreeNodeType,
|
|
46
|
+
TreeViewSchema2 as TreeViewSchema,
|
|
47
|
+
TreeViewType2 as TreeViewType
|
|
48
|
+
};
|