@nervekit/shared 0.1.0 → 0.3.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/core/ids.d.ts +1 -1
- package/dist/core/ids.d.ts.map +1 -1
- package/dist/core/ids.js.map +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +1 -0
- package/dist/core/index.js.map +1 -1
- package/dist/core/inline-commands.d.ts +28 -0
- package/dist/core/inline-commands.d.ts.map +1 -0
- package/dist/core/inline-commands.js +104 -0
- package/dist/core/inline-commands.js.map +1 -0
- package/dist/domains/agents/agent.schema.d.ts +8 -8
- package/dist/domains/completions/completion.schema.d.ts +3 -3
- package/dist/domains/conversations/conversation.schema.d.ts +20 -3
- package/dist/domains/conversations/conversation.schema.d.ts.map +1 -1
- package/dist/domains/conversations/conversation.schema.js.map +1 -1
- package/dist/domains/conversations/tree.schema.d.ts +7 -6
- package/dist/domains/conversations/tree.schema.d.ts.map +1 -1
- package/dist/domains/conversations/tree.schema.js +1 -0
- package/dist/domains/conversations/tree.schema.js.map +1 -1
- package/dist/domains/filesystem/filesystem.schema.d.ts +4 -4
- package/dist/domains/git/git.schema.d.ts +14 -14
- package/dist/domains/logs/logs.schema.d.ts +55 -6
- package/dist/domains/logs/logs.schema.d.ts.map +1 -1
- package/dist/domains/logs/logs.schema.js +31 -0
- package/dist/domains/logs/logs.schema.js.map +1 -1
- package/dist/domains/pinned-commands/pinned-command.schema.d.ts +6 -0
- package/dist/domains/pinned-commands/pinned-command.schema.d.ts.map +1 -1
- package/dist/domains/pinned-commands/pinned-command.schema.js +5 -0
- package/dist/domains/pinned-commands/pinned-command.schema.js.map +1 -1
- package/dist/domains/plans/plan-review.schema.d.ts +2 -2
- package/dist/domains/providers/providers.schema.d.ts +4 -4
- package/dist/domains/settings/settings.schema.d.ts +2 -2
- package/dist/domains/status/status.schema.d.ts +2 -2
- package/dist/domains/storage/storage.schema.d.ts +24 -24
- package/dist/domains/tasks/task.schema.d.ts +88 -15
- package/dist/domains/tasks/task.schema.d.ts.map +1 -1
- package/dist/domains/tasks/task.schema.js +11 -0
- package/dist/domains/tasks/task.schema.js.map +1 -1
- package/dist/domains/tools/records.schema.d.ts +101 -4
- package/dist/domains/tools/records.schema.d.ts.map +1 -1
- package/dist/domains/tools/records.schema.js +17 -0
- package/dist/domains/tools/records.schema.js.map +1 -1
- package/dist/domains/tools/tool-results.schema.d.ts +343 -26
- package/dist/domains/tools/tool-results.schema.d.ts.map +1 -1
- package/dist/domains/tools/tool-results.schema.js +86 -1
- package/dist/domains/tools/tool-results.schema.js.map +1 -1
- package/package.json +1 -1
- package/dist/agent-worker.d.ts +0 -66
- package/dist/agent-worker.d.ts.map +0 -1
- package/dist/agent-worker.js +0 -45
- package/dist/agent-worker.js.map +0 -1
- package/dist/agents.d.ts +0 -211
- package/dist/agents.d.ts.map +0 -1
- package/dist/agents.js +0 -105
- package/dist/agents.js.map +0 -1
- package/dist/api-errors.d.ts +0 -10
- package/dist/api-errors.d.ts.map +0 -1
- package/dist/api-errors.js +0 -9
- package/dist/api-errors.js.map +0 -1
- package/dist/auth.d.ts +0 -110
- package/dist/auth.d.ts.map +0 -1
- package/dist/auth.js +0 -82
- package/dist/auth.js.map +0 -1
- package/dist/conversation-title.d.ts +0 -2
- package/dist/conversation-title.d.ts.map +0 -1
- package/dist/conversation-title.js +0 -244
- package/dist/conversation-title.js.map +0 -1
- package/dist/conversation.d.ts +0 -269
- package/dist/conversation.d.ts.map +0 -1
- package/dist/conversation.js +0 -26
- package/dist/conversation.js.map +0 -1
- package/dist/conversations.d.ts +0 -219
- package/dist/conversations.d.ts.map +0 -1
- package/dist/conversations.js +0 -88
- package/dist/conversations.js.map +0 -1
- package/dist/core.d.ts +0 -4
- package/dist/core.d.ts.map +0 -1
- package/dist/core.js +0 -34
- package/dist/core.js.map +0 -1
- package/dist/domains/completions/completions.schema.d.ts +0 -21
- package/dist/domains/completions/completions.schema.d.ts.map +0 -1
- package/dist/domains/completions/completions.schema.js +0 -22
- package/dist/domains/completions/completions.schema.js.map +0 -1
- package/dist/domains/processes/index.d.ts +0 -2
- package/dist/domains/processes/index.d.ts.map +0 -1
- package/dist/domains/processes/index.js +0 -2
- package/dist/domains/processes/index.js.map +0 -1
- package/dist/domains/processes/process.schema.d.ts +0 -241
- package/dist/domains/processes/process.schema.d.ts.map +0 -1
- package/dist/domains/processes/process.schema.js +0 -106
- package/dist/domains/processes/process.schema.js.map +0 -1
- package/dist/events.d.ts +0 -17
- package/dist/events.d.ts.map +0 -1
- package/dist/events.js +0 -10
- package/dist/events.js.map +0 -1
- package/dist/filesystem.d.ts +0 -95
- package/dist/filesystem.d.ts.map +0 -1
- package/dist/filesystem.js +0 -56
- package/dist/filesystem.js.map +0 -1
- package/dist/git.d.ts +0 -386
- package/dist/git.d.ts.map +0 -1
- package/dist/git.js +0 -167
- package/dist/git.js.map +0 -1
- package/dist/logs.d.ts +0 -186
- package/dist/logs.d.ts.map +0 -1
- package/dist/logs.js +0 -84
- package/dist/logs.js.map +0 -1
- package/dist/models.d.ts +0 -49
- package/dist/models.d.ts.map +0 -1
- package/dist/models.js +0 -38
- package/dist/models.js.map +0 -1
- package/dist/pinned-commands.d.ts +0 -30
- package/dist/pinned-commands.d.ts.map +0 -1
- package/dist/pinned-commands.js +0 -19
- package/dist/pinned-commands.js.map +0 -1
- package/dist/plans.d.ts +0 -40
- package/dist/plans.d.ts.map +0 -1
- package/dist/plans.js +0 -34
- package/dist/plans.js.map +0 -1
- package/dist/processes.d.ts +0 -195
- package/dist/processes.d.ts.map +0 -1
- package/dist/processes.js +0 -86
- package/dist/processes.js.map +0 -1
- package/dist/projects.d.ts +0 -50
- package/dist/projects.d.ts.map +0 -1
- package/dist/projects.js +0 -38
- package/dist/projects.js.map +0 -1
- package/dist/settings.d.ts +0 -136
- package/dist/settings.d.ts.map +0 -1
- package/dist/settings.js +0 -124
- package/dist/settings.js.map +0 -1
- package/dist/status.d.ts +0 -39
- package/dist/status.d.ts.map +0 -1
- package/dist/status.js +0 -38
- package/dist/status.js.map +0 -1
- package/dist/suspensions.d.ts +0 -55
- package/dist/suspensions.d.ts.map +0 -1
- package/dist/suspensions.js +0 -38
- package/dist/suspensions.js.map +0 -1
- package/dist/tool-results.d.ts +0 -369
- package/dist/tool-results.d.ts.map +0 -1
- package/dist/tool-results.js +0 -117
- package/dist/tool-results.js.map +0 -1
- package/dist/tools.d.ts +0 -277
- package/dist/tools.d.ts.map +0 -1
- package/dist/tools.js +0 -127
- package/dist/tools.js.map +0 -1
- package/dist/transcription.d.ts +0 -8
- package/dist/transcription.d.ts.map +0 -1
- package/dist/transcription.js +0 -7
- package/dist/transcription.js.map +0 -1
- package/dist/usage.d.ts +0 -70
- package/dist/usage.d.ts.map +0 -1
- package/dist/usage.js +0 -35
- package/dist/usage.js.map +0 -1
- package/dist/workers.d.ts +0 -36
- package/dist/workers.d.ts.map +0 -1
- package/dist/workers.js +0 -22
- package/dist/workers.js.map +0 -1
|
@@ -5,6 +5,8 @@ import { z } from "zod";
|
|
|
5
5
|
* orchestrator; these types describe the request/response payloads only.
|
|
6
6
|
*/
|
|
7
7
|
export declare const gitStatusCodeSchema: z.ZodEnum<{
|
|
8
|
+
"!": "!";
|
|
9
|
+
" ": " ";
|
|
8
10
|
M: "M";
|
|
9
11
|
A: "A";
|
|
10
12
|
D: "D";
|
|
@@ -12,8 +14,6 @@ export declare const gitStatusCodeSchema: z.ZodEnum<{
|
|
|
12
14
|
C: "C";
|
|
13
15
|
U: "U";
|
|
14
16
|
"?": "?";
|
|
15
|
-
"!": "!";
|
|
16
|
-
" ": " ";
|
|
17
17
|
}>;
|
|
18
18
|
export type GitStatusCode = z.infer<typeof gitStatusCodeSchema>;
|
|
19
19
|
export declare const gitRepoSummarySchema: z.ZodObject<{
|
|
@@ -61,6 +61,8 @@ export declare const gitFileChangeSchema: z.ZodObject<{
|
|
|
61
61
|
path: z.ZodString;
|
|
62
62
|
renamedFrom: z.ZodOptional<z.ZodString>;
|
|
63
63
|
index: z.ZodEnum<{
|
|
64
|
+
"!": "!";
|
|
65
|
+
" ": " ";
|
|
64
66
|
M: "M";
|
|
65
67
|
A: "A";
|
|
66
68
|
D: "D";
|
|
@@ -68,10 +70,10 @@ export declare const gitFileChangeSchema: z.ZodObject<{
|
|
|
68
70
|
C: "C";
|
|
69
71
|
U: "U";
|
|
70
72
|
"?": "?";
|
|
71
|
-
"!": "!";
|
|
72
|
-
" ": " ";
|
|
73
73
|
}>;
|
|
74
74
|
worktree: z.ZodEnum<{
|
|
75
|
+
"!": "!";
|
|
76
|
+
" ": " ";
|
|
75
77
|
M: "M";
|
|
76
78
|
A: "A";
|
|
77
79
|
D: "D";
|
|
@@ -79,8 +81,6 @@ export declare const gitFileChangeSchema: z.ZodObject<{
|
|
|
79
81
|
C: "C";
|
|
80
82
|
U: "U";
|
|
81
83
|
"?": "?";
|
|
82
|
-
"!": "!";
|
|
83
|
-
" ": " ";
|
|
84
84
|
}>;
|
|
85
85
|
staged: z.ZodBoolean;
|
|
86
86
|
untracked: z.ZodBoolean;
|
|
@@ -117,6 +117,8 @@ export declare const gitOverviewResponseSchema: z.ZodObject<{
|
|
|
117
117
|
path: z.ZodString;
|
|
118
118
|
renamedFrom: z.ZodOptional<z.ZodString>;
|
|
119
119
|
index: z.ZodEnum<{
|
|
120
|
+
"!": "!";
|
|
121
|
+
" ": " ";
|
|
120
122
|
M: "M";
|
|
121
123
|
A: "A";
|
|
122
124
|
D: "D";
|
|
@@ -124,10 +126,10 @@ export declare const gitOverviewResponseSchema: z.ZodObject<{
|
|
|
124
126
|
C: "C";
|
|
125
127
|
U: "U";
|
|
126
128
|
"?": "?";
|
|
127
|
-
"!": "!";
|
|
128
|
-
" ": " ";
|
|
129
129
|
}>;
|
|
130
130
|
worktree: z.ZodEnum<{
|
|
131
|
+
"!": "!";
|
|
132
|
+
" ": " ";
|
|
131
133
|
M: "M";
|
|
132
134
|
A: "A";
|
|
133
135
|
D: "D";
|
|
@@ -135,8 +137,6 @@ export declare const gitOverviewResponseSchema: z.ZodObject<{
|
|
|
135
137
|
C: "C";
|
|
136
138
|
U: "U";
|
|
137
139
|
"?": "?";
|
|
138
|
-
"!": "!";
|
|
139
|
-
" ": " ";
|
|
140
140
|
}>;
|
|
141
141
|
staged: z.ZodBoolean;
|
|
142
142
|
untracked: z.ZodBoolean;
|
|
@@ -227,9 +227,9 @@ export type GithubCheckRun = z.infer<typeof githubCheckRunSchema>;
|
|
|
227
227
|
export declare const githubChecksSummarySchema: z.ZodObject<{
|
|
228
228
|
status: z.ZodEnum<{
|
|
229
229
|
pending: "pending";
|
|
230
|
+
none: "none";
|
|
230
231
|
passing: "passing";
|
|
231
232
|
failing: "failing";
|
|
232
|
-
none: "none";
|
|
233
233
|
}>;
|
|
234
234
|
total: z.ZodNumber;
|
|
235
235
|
passed: z.ZodNumber;
|
|
@@ -255,9 +255,9 @@ export declare const githubPrSchema: z.ZodObject<{
|
|
|
255
255
|
checks: z.ZodObject<{
|
|
256
256
|
status: z.ZodEnum<{
|
|
257
257
|
pending: "pending";
|
|
258
|
+
none: "none";
|
|
258
259
|
passing: "passing";
|
|
259
260
|
failing: "failing";
|
|
260
|
-
none: "none";
|
|
261
261
|
}>;
|
|
262
262
|
total: z.ZodNumber;
|
|
263
263
|
passed: z.ZodNumber;
|
|
@@ -285,9 +285,9 @@ export declare const githubPrListResponseSchema: z.ZodObject<{
|
|
|
285
285
|
checks: z.ZodObject<{
|
|
286
286
|
status: z.ZodEnum<{
|
|
287
287
|
pending: "pending";
|
|
288
|
+
none: "none";
|
|
288
289
|
passing: "passing";
|
|
289
290
|
failing: "failing";
|
|
290
|
-
none: "none";
|
|
291
291
|
}>;
|
|
292
292
|
total: z.ZodNumber;
|
|
293
293
|
passed: z.ZodNumber;
|
|
@@ -329,9 +329,9 @@ export declare const githubPrDetailSchema: z.ZodObject<{
|
|
|
329
329
|
checks: z.ZodObject<{
|
|
330
330
|
status: z.ZodEnum<{
|
|
331
331
|
pending: "pending";
|
|
332
|
+
none: "none";
|
|
332
333
|
passing: "passing";
|
|
333
334
|
failing: "failing";
|
|
334
|
-
none: "none";
|
|
335
335
|
}>;
|
|
336
336
|
total: z.ZodNumber;
|
|
337
337
|
passed: z.ZodNumber;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const applicationLogLevelSchema: z.ZodEnum<{
|
|
3
|
+
error: "error";
|
|
3
4
|
debug: "debug";
|
|
4
5
|
info: "info";
|
|
5
6
|
warn: "warn";
|
|
6
|
-
error: "error";
|
|
7
7
|
}>;
|
|
8
8
|
export type ApplicationLogLevel = z.infer<typeof applicationLogLevelSchema>;
|
|
9
9
|
export declare const applicationLogSourceSchema: z.ZodEnum<{
|
|
@@ -25,10 +25,10 @@ export declare const applicationLogRecordSchema: z.ZodObject<{
|
|
|
25
25
|
id: z.ZodString;
|
|
26
26
|
ts: z.ZodString;
|
|
27
27
|
level: z.ZodEnum<{
|
|
28
|
+
error: "error";
|
|
28
29
|
debug: "debug";
|
|
29
30
|
info: "info";
|
|
30
31
|
warn: "warn";
|
|
31
|
-
error: "error";
|
|
32
32
|
}>;
|
|
33
33
|
source: z.ZodEnum<{
|
|
34
34
|
orchestrator: "orchestrator";
|
|
@@ -56,12 +56,61 @@ export declare const applicationLogRecordSchema: z.ZodObject<{
|
|
|
56
56
|
}, z.core.$strip>>;
|
|
57
57
|
}, z.core.$strip>;
|
|
58
58
|
export type ApplicationLogRecord = z.infer<typeof applicationLogRecordSchema>;
|
|
59
|
+
export declare const daemonCrashReportKindSchema: z.ZodEnum<{
|
|
60
|
+
uncaughtException: "uncaughtException";
|
|
61
|
+
unhandledRejection: "unhandledRejection";
|
|
62
|
+
childExit: "childExit";
|
|
63
|
+
startupExit: "startupExit";
|
|
64
|
+
startupTimeout: "startupTimeout";
|
|
65
|
+
startupError: "startupError";
|
|
66
|
+
previousUncleanExit: "previousUncleanExit";
|
|
67
|
+
}>;
|
|
68
|
+
export type DaemonCrashReportKind = z.infer<typeof daemonCrashReportKindSchema>;
|
|
69
|
+
export declare const daemonCrashReportSchema: z.ZodObject<{
|
|
70
|
+
id: z.ZodString;
|
|
71
|
+
ts: z.ZodString;
|
|
72
|
+
source: z.ZodEnum<{
|
|
73
|
+
orchestrator: "orchestrator";
|
|
74
|
+
desktop: "desktop";
|
|
75
|
+
web: "web";
|
|
76
|
+
cli: "cli";
|
|
77
|
+
}>;
|
|
78
|
+
kind: z.ZodEnum<{
|
|
79
|
+
uncaughtException: "uncaughtException";
|
|
80
|
+
unhandledRejection: "unhandledRejection";
|
|
81
|
+
childExit: "childExit";
|
|
82
|
+
startupExit: "startupExit";
|
|
83
|
+
startupTimeout: "startupTimeout";
|
|
84
|
+
startupError: "startupError";
|
|
85
|
+
previousUncleanExit: "previousUncleanExit";
|
|
86
|
+
}>;
|
|
87
|
+
message: z.ZodString;
|
|
88
|
+
pid: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
exitCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
90
|
+
signal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
uptimeMs: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
dataDir: z.ZodOptional<z.ZodString>;
|
|
93
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
94
|
+
name: z.ZodOptional<z.ZodString>;
|
|
95
|
+
message: z.ZodString;
|
|
96
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
97
|
+
cause: z.ZodOptional<z.ZodString>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
outputTail: z.ZodOptional<z.ZodString>;
|
|
100
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
101
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
node: z.ZodString;
|
|
103
|
+
platform: z.ZodString;
|
|
104
|
+
arch: z.ZodString;
|
|
105
|
+
}, z.core.$strip>>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
export type DaemonCrashReport = z.infer<typeof daemonCrashReportSchema>;
|
|
59
108
|
export declare const applicationLogQuerySchema: z.ZodObject<{
|
|
60
109
|
level: z.ZodOptional<z.ZodEnum<{
|
|
110
|
+
error: "error";
|
|
61
111
|
debug: "debug";
|
|
62
112
|
info: "info";
|
|
63
113
|
warn: "warn";
|
|
64
|
-
error: "error";
|
|
65
114
|
}>>;
|
|
66
115
|
source: z.ZodOptional<z.ZodEnum<{
|
|
67
116
|
orchestrator: "orchestrator";
|
|
@@ -89,10 +138,10 @@ export declare const applicationLogQueryResponseSchema: z.ZodObject<{
|
|
|
89
138
|
id: z.ZodString;
|
|
90
139
|
ts: z.ZodString;
|
|
91
140
|
level: z.ZodEnum<{
|
|
141
|
+
error: "error";
|
|
92
142
|
debug: "debug";
|
|
93
143
|
info: "info";
|
|
94
144
|
warn: "warn";
|
|
95
|
-
error: "error";
|
|
96
145
|
}>;
|
|
97
146
|
source: z.ZodEnum<{
|
|
98
147
|
orchestrator: "orchestrator";
|
|
@@ -124,10 +173,10 @@ export declare const applicationLogQueryResponseSchema: z.ZodObject<{
|
|
|
124
173
|
export type ApplicationLogQueryResponse = z.infer<typeof applicationLogQueryResponseSchema>;
|
|
125
174
|
export declare const applicationLogPruneRequestSchema: z.ZodObject<{
|
|
126
175
|
level: z.ZodOptional<z.ZodEnum<{
|
|
176
|
+
error: "error";
|
|
127
177
|
debug: "debug";
|
|
128
178
|
info: "info";
|
|
129
179
|
warn: "warn";
|
|
130
|
-
error: "error";
|
|
131
180
|
}>>;
|
|
132
181
|
source: z.ZodOptional<z.ZodEnum<{
|
|
133
182
|
orchestrator: "orchestrator";
|
|
@@ -162,10 +211,10 @@ export declare const clientApplicationLogRequestSchema: z.ZodObject<{
|
|
|
162
211
|
}, z.core.$strip>>;
|
|
163
212
|
message: z.ZodString;
|
|
164
213
|
level: z.ZodEnum<{
|
|
214
|
+
error: "error";
|
|
165
215
|
debug: "debug";
|
|
166
216
|
info: "info";
|
|
167
217
|
warn: "warn";
|
|
168
|
-
error: "error";
|
|
169
218
|
}>;
|
|
170
219
|
component: z.ZodString;
|
|
171
220
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.schema.d.ts","sourceRoot":"","sources":["../../../src/domains/logs/logs.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB;;;;;EAKpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,0BAA0B;;;;;EAKrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,yBAAyB;;;;;iBAKpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmBrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;iBAepC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG5C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;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uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;iBAepC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG5C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;iBAG3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;iBAG5C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiB5C,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC"}
|
|
@@ -37,6 +37,37 @@ export const applicationLogRecordSchema = z.object({
|
|
|
37
37
|
context: z.record(z.string(), z.unknown()).optional(),
|
|
38
38
|
error: applicationLogErrorSchema.optional(),
|
|
39
39
|
});
|
|
40
|
+
export const daemonCrashReportKindSchema = z.enum([
|
|
41
|
+
"uncaughtException",
|
|
42
|
+
"unhandledRejection",
|
|
43
|
+
"childExit",
|
|
44
|
+
"startupExit",
|
|
45
|
+
"startupTimeout",
|
|
46
|
+
"startupError",
|
|
47
|
+
"previousUncleanExit",
|
|
48
|
+
]);
|
|
49
|
+
export const daemonCrashReportSchema = z.object({
|
|
50
|
+
id: z.string().startsWith("crash_"),
|
|
51
|
+
ts: z.string().datetime(),
|
|
52
|
+
source: applicationLogSourceSchema,
|
|
53
|
+
kind: daemonCrashReportKindSchema,
|
|
54
|
+
message: z.string().min(1),
|
|
55
|
+
pid: z.number().int().positive().optional(),
|
|
56
|
+
exitCode: z.number().int().nullable().optional(),
|
|
57
|
+
signal: z.string().nullable().optional(),
|
|
58
|
+
uptimeMs: z.number().int().nonnegative().optional(),
|
|
59
|
+
dataDir: z.string().optional(),
|
|
60
|
+
error: applicationLogErrorSchema.optional(),
|
|
61
|
+
outputTail: z.string().optional(),
|
|
62
|
+
context: z.record(z.string(), z.unknown()).optional(),
|
|
63
|
+
runtime: z
|
|
64
|
+
.object({
|
|
65
|
+
node: z.string(),
|
|
66
|
+
platform: z.string(),
|
|
67
|
+
arch: z.string(),
|
|
68
|
+
})
|
|
69
|
+
.optional(),
|
|
70
|
+
});
|
|
40
71
|
export const applicationLogQuerySchema = z.object({
|
|
41
72
|
level: applicationLogLevelSchema.optional(),
|
|
42
73
|
source: applicationLogSourceSchema.optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs.schema.js","sourceRoot":"","sources":["../../../src/domains/logs/logs.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC9C,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;CACR,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,IAAI,CAAC;IAC/C,cAAc;IACd,SAAS;IACT,KAAK;IACL,KAAK;CACN,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE,CAAC,CAA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AE,CAAC;CACX,CAAC,CAAC"}
|
|
@@ -15,6 +15,12 @@ export declare const createPinnedCommandRequestSchema: z.ZodObject<{
|
|
|
15
15
|
cwd: z.ZodOptional<z.ZodString>;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
export type CreatePinnedCommandRequest = z.infer<typeof createPinnedCommandRequestSchema>;
|
|
18
|
+
export declare const updatePinnedCommandRequestSchema: z.ZodObject<{
|
|
19
|
+
command: z.ZodString;
|
|
20
|
+
label: z.ZodOptional<z.ZodString>;
|
|
21
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type UpdatePinnedCommandRequest = z.infer<typeof updatePinnedCommandRequestSchema>;
|
|
18
24
|
export declare const pinnedCommandsResponseSchema: z.ZodObject<{
|
|
19
25
|
commands: z.ZodArray<z.ZodObject<{
|
|
20
26
|
id: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pinned-command.schema.d.ts","sourceRoot":"","sources":["../../../src/domains/pinned-commands/pinned-command.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;iBAQ9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,gCAAgC;;;;iBAI3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;iBAEvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC"}
|
|
1
|
+
{"version":3,"file":"pinned-command.schema.d.ts","sourceRoot":"","sources":["../../../src/domains/pinned-commands/pinned-command.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;iBAQ9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,gCAAgC;;;;iBAI3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;iBAI3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;iBAEvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAC1C,OAAO,4BAA4B,CACpC,CAAC"}
|
|
@@ -13,6 +13,11 @@ export const createPinnedCommandRequestSchema = z.object({
|
|
|
13
13
|
label: z.string().min(1).optional(),
|
|
14
14
|
cwd: z.string().min(1).optional(),
|
|
15
15
|
});
|
|
16
|
+
export const updatePinnedCommandRequestSchema = z.object({
|
|
17
|
+
command: z.string().min(1),
|
|
18
|
+
label: z.string().min(1).optional(),
|
|
19
|
+
cwd: z.string().min(1).optional(),
|
|
20
|
+
});
|
|
16
21
|
export const pinnedCommandsResponseSchema = z.object({
|
|
17
22
|
commands: z.array(pinnedCommandSchema),
|
|
18
23
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pinned-command.schema.js","sourceRoot":"","sources":["../../../src/domains/pinned-commands/pinned-command.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,MAAM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AAC,CAAC,KAAK,CAAC,mBAAmB,CAAC;CACvC,CAAC,CAAC"}
|
|
@@ -3,8 +3,8 @@ import { type ModelSelection, type ThinkingLevel } from "../models/index.js";
|
|
|
3
3
|
export declare const planSlugSchema: z.ZodString;
|
|
4
4
|
export type PlanSlug = z.infer<typeof planSlugSchema>;
|
|
5
5
|
export declare const planReviewStatusSchema: z.ZodEnum<{
|
|
6
|
-
pending: "pending";
|
|
7
6
|
accepted: "accepted";
|
|
7
|
+
pending: "pending";
|
|
8
8
|
accepted_in_new_chat: "accepted_in_new_chat";
|
|
9
9
|
changes_requested: "changes_requested";
|
|
10
10
|
discarded: "discarded";
|
|
@@ -23,8 +23,8 @@ export declare const planReviewRecordSchema: z.ZodObject<{
|
|
|
23
23
|
planPath: z.ZodString;
|
|
24
24
|
content: z.ZodOptional<z.ZodString>;
|
|
25
25
|
status: z.ZodEnum<{
|
|
26
|
-
pending: "pending";
|
|
27
26
|
accepted: "accepted";
|
|
27
|
+
pending: "pending";
|
|
28
28
|
accepted_in_new_chat: "accepted_in_new_chat";
|
|
29
29
|
changes_requested: "changes_requested";
|
|
30
30
|
discarded: "discarded";
|
|
@@ -17,8 +17,8 @@ export declare const piApiSchema: z.ZodEnum<{
|
|
|
17
17
|
}>;
|
|
18
18
|
export type PiApi = z.infer<typeof piApiSchema>;
|
|
19
19
|
export declare const modelInputSchema: z.ZodEnum<{
|
|
20
|
-
text: "text";
|
|
21
20
|
image: "image";
|
|
21
|
+
text: "text";
|
|
22
22
|
}>;
|
|
23
23
|
export type ModelInputModality = z.infer<typeof modelInputSchema>;
|
|
24
24
|
export declare const modelCostSchema: z.ZodObject<{
|
|
@@ -86,8 +86,8 @@ export declare const modelDefinitionSchema: z.ZodObject<{
|
|
|
86
86
|
}>>>;
|
|
87
87
|
thinkingLevelMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
|
|
88
88
|
input: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
89
|
-
text: "text";
|
|
90
89
|
image: "image";
|
|
90
|
+
text: "text";
|
|
91
91
|
}>>>;
|
|
92
92
|
cost: z.ZodDefault<z.ZodObject<{
|
|
93
93
|
input: z.ZodDefault<z.ZodNumber>;
|
|
@@ -148,8 +148,8 @@ export declare const providerCatalogSchema: z.ZodObject<{
|
|
|
148
148
|
}>>>;
|
|
149
149
|
thinkingLevelMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
|
|
150
150
|
input: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
151
|
-
text: "text";
|
|
152
151
|
image: "image";
|
|
152
|
+
text: "text";
|
|
153
153
|
}>>>;
|
|
154
154
|
cost: z.ZodDefault<z.ZodObject<{
|
|
155
155
|
input: z.ZodDefault<z.ZodNumber>;
|
|
@@ -211,8 +211,8 @@ export declare const upsertModelDefinitionRequestSchema: z.ZodObject<{
|
|
|
211
211
|
}>>>;
|
|
212
212
|
thinkingLevelMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>;
|
|
213
213
|
input: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
214
|
-
text: "text";
|
|
215
214
|
image: "image";
|
|
215
|
+
text: "text";
|
|
216
216
|
}>>>;
|
|
217
217
|
cost: z.ZodDefault<z.ZodObject<{
|
|
218
218
|
input: z.ZodDefault<z.ZodNumber>;
|
|
@@ -115,10 +115,10 @@ export declare const settingsSchema: z.ZodObject<{
|
|
|
115
115
|
}, z.core.$strip>;
|
|
116
116
|
logging: z.ZodObject<{
|
|
117
117
|
level: z.ZodDefault<z.ZodEnum<{
|
|
118
|
+
error: "error";
|
|
118
119
|
debug: "debug";
|
|
119
120
|
info: "info";
|
|
120
121
|
warn: "warn";
|
|
121
|
-
error: "error";
|
|
122
122
|
}>>;
|
|
123
123
|
retentionDays: z.ZodDefault<z.ZodNumber>;
|
|
124
124
|
maxBufferedLogs: z.ZodDefault<z.ZodNumber>;
|
|
@@ -219,10 +219,10 @@ export declare const updateSettingsRequestSchema: z.ZodObject<{
|
|
|
219
219
|
}, z.core.$strip>>;
|
|
220
220
|
logging: z.ZodOptional<z.ZodObject<{
|
|
221
221
|
level: z.ZodOptional<z.ZodEnum<{
|
|
222
|
+
error: "error";
|
|
222
223
|
debug: "debug";
|
|
223
224
|
info: "info";
|
|
224
225
|
warn: "warn";
|
|
225
|
-
error: "error";
|
|
226
226
|
}>>;
|
|
227
227
|
retentionDays: z.ZodOptional<z.ZodNumber>;
|
|
228
228
|
maxBufferedLogs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2,9 +2,9 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const pythonRuntimeStatusSchema: z.ZodObject<{
|
|
3
3
|
available: z.ZodBoolean;
|
|
4
4
|
source: z.ZodEnum<{
|
|
5
|
+
path: "path";
|
|
5
6
|
manual: "manual";
|
|
6
7
|
project_venv: "project_venv";
|
|
7
|
-
path: "path";
|
|
8
8
|
windows_launcher: "windows_launcher";
|
|
9
9
|
uv: "uv";
|
|
10
10
|
unavailable: "unavailable";
|
|
@@ -73,9 +73,9 @@ export declare const statusResponseSchema: z.ZodObject<{
|
|
|
73
73
|
python: z.ZodObject<{
|
|
74
74
|
available: z.ZodBoolean;
|
|
75
75
|
source: z.ZodEnum<{
|
|
76
|
+
path: "path";
|
|
76
77
|
manual: "manual";
|
|
77
78
|
project_venv: "project_venv";
|
|
78
|
-
path: "path";
|
|
79
79
|
windows_launcher: "windows_launcher";
|
|
80
80
|
uv: "uv";
|
|
81
81
|
unavailable: "unavailable";
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const storageCategoryKeySchema: z.ZodEnum<{
|
|
3
|
-
conversations: "conversations";
|
|
4
3
|
logs: "logs";
|
|
4
|
+
other: "other";
|
|
5
|
+
tasks: "tasks";
|
|
6
|
+
agents: "agents";
|
|
7
|
+
projects: "projects";
|
|
8
|
+
conversations: "conversations";
|
|
9
|
+
workers: "workers";
|
|
5
10
|
sqliteIndex: "sqliteIndex";
|
|
6
11
|
exploreReports: "exploreReports";
|
|
7
12
|
plans: "plans";
|
|
8
|
-
agents: "agents";
|
|
9
|
-
tasks: "tasks";
|
|
10
13
|
workflowState: "workflowState";
|
|
11
|
-
projects: "projects";
|
|
12
|
-
workers: "workers";
|
|
13
14
|
cache: "cache";
|
|
14
15
|
tmp: "tmp";
|
|
15
16
|
protected: "protected";
|
|
16
|
-
other: "other";
|
|
17
17
|
}>;
|
|
18
18
|
export type StorageCategoryKey = z.infer<typeof storageCategoryKeySchema>;
|
|
19
19
|
export declare const storageCategoryUsageSchema: z.ZodObject<{
|
|
20
20
|
key: z.ZodEnum<{
|
|
21
|
-
conversations: "conversations";
|
|
22
21
|
logs: "logs";
|
|
22
|
+
other: "other";
|
|
23
|
+
tasks: "tasks";
|
|
24
|
+
agents: "agents";
|
|
25
|
+
projects: "projects";
|
|
26
|
+
conversations: "conversations";
|
|
27
|
+
workers: "workers";
|
|
23
28
|
sqliteIndex: "sqliteIndex";
|
|
24
29
|
exploreReports: "exploreReports";
|
|
25
30
|
plans: "plans";
|
|
26
|
-
agents: "agents";
|
|
27
|
-
tasks: "tasks";
|
|
28
31
|
workflowState: "workflowState";
|
|
29
|
-
projects: "projects";
|
|
30
|
-
workers: "workers";
|
|
31
32
|
cache: "cache";
|
|
32
33
|
tmp: "tmp";
|
|
33
34
|
protected: "protected";
|
|
34
|
-
other: "other";
|
|
35
35
|
}>;
|
|
36
36
|
label: z.ZodString;
|
|
37
37
|
description: z.ZodString;
|
|
@@ -53,20 +53,20 @@ export declare const storageUsageResponseSchema: z.ZodObject<{
|
|
|
53
53
|
totalBytes: z.ZodNumber;
|
|
54
54
|
categories: z.ZodArray<z.ZodObject<{
|
|
55
55
|
key: z.ZodEnum<{
|
|
56
|
-
conversations: "conversations";
|
|
57
56
|
logs: "logs";
|
|
57
|
+
other: "other";
|
|
58
|
+
tasks: "tasks";
|
|
59
|
+
agents: "agents";
|
|
60
|
+
projects: "projects";
|
|
61
|
+
conversations: "conversations";
|
|
62
|
+
workers: "workers";
|
|
58
63
|
sqliteIndex: "sqliteIndex";
|
|
59
64
|
exploreReports: "exploreReports";
|
|
60
65
|
plans: "plans";
|
|
61
|
-
agents: "agents";
|
|
62
|
-
tasks: "tasks";
|
|
63
66
|
workflowState: "workflowState";
|
|
64
|
-
projects: "projects";
|
|
65
|
-
workers: "workers";
|
|
66
67
|
cache: "cache";
|
|
67
68
|
tmp: "tmp";
|
|
68
69
|
protected: "protected";
|
|
69
|
-
other: "other";
|
|
70
70
|
}>;
|
|
71
71
|
label: z.ZodString;
|
|
72
72
|
description: z.ZodString;
|
|
@@ -124,20 +124,20 @@ export declare const storageCleanupResponseSchema: z.ZodObject<{
|
|
|
124
124
|
totalBytes: z.ZodNumber;
|
|
125
125
|
categories: z.ZodArray<z.ZodObject<{
|
|
126
126
|
key: z.ZodEnum<{
|
|
127
|
-
conversations: "conversations";
|
|
128
127
|
logs: "logs";
|
|
128
|
+
other: "other";
|
|
129
|
+
tasks: "tasks";
|
|
130
|
+
agents: "agents";
|
|
131
|
+
projects: "projects";
|
|
132
|
+
conversations: "conversations";
|
|
133
|
+
workers: "workers";
|
|
129
134
|
sqliteIndex: "sqliteIndex";
|
|
130
135
|
exploreReports: "exploreReports";
|
|
131
136
|
plans: "plans";
|
|
132
|
-
agents: "agents";
|
|
133
|
-
tasks: "tasks";
|
|
134
137
|
workflowState: "workflowState";
|
|
135
|
-
projects: "projects";
|
|
136
|
-
workers: "workers";
|
|
137
138
|
cache: "cache";
|
|
138
139
|
tmp: "tmp";
|
|
139
140
|
protected: "protected";
|
|
140
|
-
other: "other";
|
|
141
141
|
}>;
|
|
142
142
|
label: z.ZodString;
|
|
143
143
|
description: z.ZodString;
|