@nervekit/shared 0.1.0 → 0.2.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/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/tree.schema.d.ts +6 -6
- 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 +6 -6
- 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 +15 -15
- package/dist/domains/tools/records.schema.d.ts +4 -4
- package/dist/domains/tools/tool-results.schema.d.ts +36 -36
- 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
package/dist/core/index.d.ts
CHANGED
package/dist/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC"}
|
package/dist/core/index.js
CHANGED
package/dist/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type InlineCommandPrompt = {
|
|
2
|
+
command: string;
|
|
3
|
+
/** Zero-based offset of the leading ! marker in the original prompt. */
|
|
4
|
+
bangOffset: number;
|
|
5
|
+
};
|
|
6
|
+
export type ExecutableCommandBlock = {
|
|
7
|
+
/** Zero-based start offset of the full fenced block. */
|
|
8
|
+
start: number;
|
|
9
|
+
/** Zero-based end offset (exclusive) of the full fenced block. */
|
|
10
|
+
end: number;
|
|
11
|
+
/** Zero-based start offset of command content inside the fenced block. */
|
|
12
|
+
commandStart: number;
|
|
13
|
+
/** Zero-based end offset (exclusive) of command content inside the fenced block. */
|
|
14
|
+
commandEnd: number;
|
|
15
|
+
fenceChar: "`" | "~";
|
|
16
|
+
fenceLength: number;
|
|
17
|
+
command: string;
|
|
18
|
+
};
|
|
19
|
+
export type ExecutableCommandBlockReplacement = {
|
|
20
|
+
block: Pick<ExecutableCommandBlock, "start" | "end">;
|
|
21
|
+
text: string;
|
|
22
|
+
};
|
|
23
|
+
export declare function parseInlineCommandPrompt(text: string): InlineCommandPrompt | undefined;
|
|
24
|
+
export declare function isInlineCommandPrompt(text: string): boolean;
|
|
25
|
+
export declare function hasExecutableCommandBlocks(text: string): boolean;
|
|
26
|
+
export declare function findExecutableCommandBlocks(text: string): ExecutableCommandBlock[];
|
|
27
|
+
export declare function replaceExecutableCommandBlocks(text: string, replacements: ExecutableCommandBlockReplacement[]): string;
|
|
28
|
+
//# sourceMappingURL=inline-commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-commands.d.ts","sourceRoot":"","sources":["../../src/core/inline-commands.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,wEAAwE;IACxE,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,GAAG,EAAE,MAAM,CAAC;IACZ,0EAA0E;IAC1E,YAAY,EAAE,MAAM,CAAC;IACrB,oFAAoF;IACpF,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,GAAG,GAAG,GAAG,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC9C,KAAK,EAAE,IAAI,CAAC,sBAAsB,EAAE,OAAO,GAAG,KAAK,CAAC,CAAC;IACrD,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,MAAM,GACX,mBAAmB,GAAG,SAAS,CAMjC;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEhE;AAED,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,MAAM,GACX,sBAAsB,EAAE,CA+B1B;AAED,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,iCAAiC,EAAE,GAChD,MAAM,CAmBR"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export function parseInlineCommandPrompt(text) {
|
|
2
|
+
const bangOffset = text.search(/\S/);
|
|
3
|
+
if (bangOffset === -1 || text[bangOffset] !== "!")
|
|
4
|
+
return undefined;
|
|
5
|
+
const command = text.slice(bangOffset + 1).trim();
|
|
6
|
+
if (!command)
|
|
7
|
+
return undefined;
|
|
8
|
+
return { command, bangOffset };
|
|
9
|
+
}
|
|
10
|
+
export function isInlineCommandPrompt(text) {
|
|
11
|
+
return parseInlineCommandPrompt(text) !== undefined;
|
|
12
|
+
}
|
|
13
|
+
export function hasExecutableCommandBlocks(text) {
|
|
14
|
+
return findExecutableCommandBlocks(text).length > 0;
|
|
15
|
+
}
|
|
16
|
+
export function findExecutableCommandBlocks(text) {
|
|
17
|
+
const blocks = [];
|
|
18
|
+
const lines = splitLinesWithOffsets(text);
|
|
19
|
+
for (let index = 0; index < lines.length; index += 1) {
|
|
20
|
+
const line = lines[index];
|
|
21
|
+
const open = parseOpeningFence(line.text);
|
|
22
|
+
if (!open)
|
|
23
|
+
continue;
|
|
24
|
+
const contentStart = line.offset + line.text.length;
|
|
25
|
+
for (let closeIndex = index + 1; closeIndex < lines.length; closeIndex += 1) {
|
|
26
|
+
const closeLine = lines[closeIndex];
|
|
27
|
+
if (!isClosingFence(closeLine.text, open.fenceChar, open.fenceLength)) {
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
const commandEnd = closeLine.offset;
|
|
31
|
+
blocks.push({
|
|
32
|
+
start: line.offset,
|
|
33
|
+
end: closeLine.offset + closeLine.text.length,
|
|
34
|
+
commandStart: contentStart,
|
|
35
|
+
commandEnd,
|
|
36
|
+
fenceChar: open.fenceChar,
|
|
37
|
+
fenceLength: open.fenceLength,
|
|
38
|
+
command: text.slice(contentStart, commandEnd).trim(),
|
|
39
|
+
});
|
|
40
|
+
index = closeIndex;
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return blocks.filter((block) => block.command.length > 0);
|
|
45
|
+
}
|
|
46
|
+
export function replaceExecutableCommandBlocks(text, replacements) {
|
|
47
|
+
const ordered = [...replacements].sort((a, b) => a.block.start - b.block.start);
|
|
48
|
+
let cursor = 0;
|
|
49
|
+
let result = "";
|
|
50
|
+
for (const replacement of ordered) {
|
|
51
|
+
if (replacement.block.start < cursor) {
|
|
52
|
+
throw new Error("Executable command block replacements overlap.");
|
|
53
|
+
}
|
|
54
|
+
result += text.slice(cursor, replacement.block.start);
|
|
55
|
+
result += replacement.text;
|
|
56
|
+
if (text[replacement.block.end - 1] === "\n" &&
|
|
57
|
+
!replacement.text.endsWith("\n")) {
|
|
58
|
+
result += "\n";
|
|
59
|
+
}
|
|
60
|
+
cursor = replacement.block.end;
|
|
61
|
+
}
|
|
62
|
+
return result + text.slice(cursor);
|
|
63
|
+
}
|
|
64
|
+
function splitLinesWithOffsets(text) {
|
|
65
|
+
const lines = [];
|
|
66
|
+
let offset = 0;
|
|
67
|
+
while (offset < text.length) {
|
|
68
|
+
const newlineIndex = text.indexOf("\n", offset);
|
|
69
|
+
const end = newlineIndex === -1 ? text.length : newlineIndex + 1;
|
|
70
|
+
lines.push({ text: text.slice(offset, end), offset });
|
|
71
|
+
offset = end;
|
|
72
|
+
}
|
|
73
|
+
if (text.length === 0)
|
|
74
|
+
lines.push({ text: "", offset: 0 });
|
|
75
|
+
return lines;
|
|
76
|
+
}
|
|
77
|
+
function stripLineEnding(line) {
|
|
78
|
+
return line.replace(/\r?\n$/, "");
|
|
79
|
+
}
|
|
80
|
+
function parseOpeningFence(line) {
|
|
81
|
+
const raw = stripLineEnding(line);
|
|
82
|
+
const indent = raw.match(/^ {0,3}/)?.[0].length ?? 0;
|
|
83
|
+
const body = raw.slice(indent);
|
|
84
|
+
const match = body.match(/^(`{3,}|~{3,})(.*)$/);
|
|
85
|
+
if (!match)
|
|
86
|
+
return undefined;
|
|
87
|
+
const fence = match[1];
|
|
88
|
+
const info = match[2].trim();
|
|
89
|
+
if (info !== "!!!")
|
|
90
|
+
return undefined;
|
|
91
|
+
return {
|
|
92
|
+
fenceChar: fence[0],
|
|
93
|
+
fenceLength: fence.length,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function isClosingFence(line, fenceChar, fenceLength) {
|
|
97
|
+
const raw = stripLineEnding(line);
|
|
98
|
+
const pattern = new RegExp(`^ {0,3}${escapeRegex(fenceChar)}{${fenceLength},}\\s*$`);
|
|
99
|
+
return pattern.test(raw);
|
|
100
|
+
}
|
|
101
|
+
function escapeRegex(value) {
|
|
102
|
+
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=inline-commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-commands.js","sourceRoot":"","sources":["../../src/core/inline-commands.ts"],"names":[],"mappings":"AAyBA,MAAM,UAAU,wBAAwB,CACtC,IAAY;IAEZ,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACrC,IAAI,UAAU,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,KAAK,GAAG;QAAE,OAAO,SAAS,CAAC;IACpE,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAClD,IAAI,CAAC,OAAO;QAAE,OAAO,SAAS,CAAC;IAC/B,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACjC,CAAC;AAED,MAAM,UAAU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K,CAAC,qBAAqB,CAAC,CAAC;IAChD,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAC;IAC7B,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IACvB,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC7B,IAAI,IAAI,KAAK,KAAK;QAAE,OAAO,SAAS,CAAC;IACrC,OAAO;QACL,SAAS,EAAE,KAAK,CAAC,CAAC,CAAc;QAChC,WAAW,EAAE,KAAK,CAAC,MAAM;KAC1B,CAAC;AACJ,CAAC;AAED,SAAS,cAAc,CACrB,IAAY,EACZ,SAAoB,EACpB,WAAmB;IAEnB,MAAM,GAAG,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,OAAO,GAAG,IAAI,MAAM,CACxB,UAAU,WAAW,CAAC,SAAS,CAAC,IAAI,WAAW,SAAS,CACzD,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B,CAAC;AAED,SAAS,WAAW,CAAC,KAAa;IAChC,OAAO,KAAK,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;AACtD,CAAC"}
|
|
@@ -30,10 +30,10 @@ export declare const updateAgentRequestSchema: z.ZodObject<{
|
|
|
30
30
|
export type UpdateAgentRequest = z.infer<typeof updateAgentRequestSchema>;
|
|
31
31
|
export declare const agentStatusSchema: z.ZodEnum<{
|
|
32
32
|
error: "error";
|
|
33
|
-
running: "running";
|
|
34
|
-
aborted: "aborted";
|
|
35
33
|
idle: "idle";
|
|
34
|
+
running: "running";
|
|
36
35
|
awaiting_user: "awaiting_user";
|
|
36
|
+
aborted: "aborted";
|
|
37
37
|
}>;
|
|
38
38
|
export type AgentStatus = z.infer<typeof agentStatusSchema>;
|
|
39
39
|
export declare const agentBudgetSchema: z.ZodObject<{
|
|
@@ -92,10 +92,10 @@ export declare const agentRecordSchema: z.ZodObject<{
|
|
|
92
92
|
}>>;
|
|
93
93
|
status: z.ZodEnum<{
|
|
94
94
|
error: "error";
|
|
95
|
-
running: "running";
|
|
96
|
-
aborted: "aborted";
|
|
97
95
|
idle: "idle";
|
|
96
|
+
running: "running";
|
|
98
97
|
awaiting_user: "awaiting_user";
|
|
98
|
+
aborted: "aborted";
|
|
99
99
|
}>;
|
|
100
100
|
createdAt: z.ZodString;
|
|
101
101
|
updatedAt: z.ZodString;
|
|
@@ -174,11 +174,11 @@ export declare const continueFromFailureRequestSchema: z.ZodObject<{
|
|
|
174
174
|
}, z.core.$strip>;
|
|
175
175
|
export type ContinueFromFailureRequest = z.infer<typeof continueFromFailureRequestSchema>;
|
|
176
176
|
export declare const queuedPromptStatusSchema: z.ZodEnum<{
|
|
177
|
-
failed: "failed";
|
|
178
|
-
cancelled: "cancelled";
|
|
179
177
|
queued: "queued";
|
|
180
178
|
accepted: "accepted";
|
|
181
179
|
delivered: "delivered";
|
|
180
|
+
cancelled: "cancelled";
|
|
181
|
+
failed: "failed";
|
|
182
182
|
}>;
|
|
183
183
|
export type QueuedPromptStatus = z.infer<typeof queuedPromptStatusSchema>;
|
|
184
184
|
export declare const queuedPromptRecordSchema: z.ZodObject<{
|
|
@@ -198,11 +198,11 @@ export declare const queuedPromptRecordSchema: z.ZodObject<{
|
|
|
198
198
|
mimeType: z.ZodString;
|
|
199
199
|
}, z.core.$strip>>>;
|
|
200
200
|
status: z.ZodEnum<{
|
|
201
|
-
failed: "failed";
|
|
202
|
-
cancelled: "cancelled";
|
|
203
201
|
queued: "queued";
|
|
204
202
|
accepted: "accepted";
|
|
205
203
|
delivered: "delivered";
|
|
204
|
+
cancelled: "cancelled";
|
|
205
|
+
failed: "failed";
|
|
206
206
|
}>;
|
|
207
207
|
createdAt: z.ZodString;
|
|
208
208
|
updatedAt: z.ZodString;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const completionKindSchema: z.ZodEnum<{
|
|
3
|
-
slash: "slash";
|
|
4
3
|
file: "file";
|
|
4
|
+
slash: "slash";
|
|
5
5
|
directory: "directory";
|
|
6
6
|
}>;
|
|
7
7
|
export type CompletionKind = z.infer<typeof completionKindSchema>;
|
|
@@ -12,8 +12,8 @@ export declare const completionItemSchema: z.ZodObject<{
|
|
|
12
12
|
detail: z.ZodOptional<z.ZodString>;
|
|
13
13
|
info: z.ZodOptional<z.ZodString>;
|
|
14
14
|
kind: z.ZodEnum<{
|
|
15
|
-
slash: "slash";
|
|
16
15
|
file: "file";
|
|
16
|
+
slash: "slash";
|
|
17
17
|
directory: "directory";
|
|
18
18
|
}>;
|
|
19
19
|
apply: z.ZodOptional<z.ZodString>;
|
|
@@ -28,8 +28,8 @@ export declare const completionResponseSchema: z.ZodObject<{
|
|
|
28
28
|
detail: z.ZodOptional<z.ZodString>;
|
|
29
29
|
info: z.ZodOptional<z.ZodString>;
|
|
30
30
|
kind: z.ZodEnum<{
|
|
31
|
-
slash: "slash";
|
|
32
31
|
file: "file";
|
|
32
|
+
slash: "slash";
|
|
33
33
|
directory: "directory";
|
|
34
34
|
}>;
|
|
35
35
|
apply: z.ZodOptional<z.ZodString>;
|
|
@@ -98,9 +98,9 @@ export declare const conversationEntrySchema: z.ZodObject<{
|
|
|
98
98
|
liveMessageId: z.ZodOptional<z.ZodString>;
|
|
99
99
|
parentEntryId: z.ZodOptional<z.ZodString>;
|
|
100
100
|
role: z.ZodEnum<{
|
|
101
|
-
user: "user";
|
|
102
|
-
assistant: "assistant";
|
|
103
101
|
system: "system";
|
|
102
|
+
assistant: "assistant";
|
|
103
|
+
user: "user";
|
|
104
104
|
}>;
|
|
105
105
|
kind: z.ZodDefault<z.ZodEnum<{
|
|
106
106
|
message: "message";
|
|
@@ -137,9 +137,9 @@ export declare const conversationTreeNodeSchema: z.ZodObject<{
|
|
|
137
137
|
liveMessageId: z.ZodOptional<z.ZodString>;
|
|
138
138
|
parentEntryId: z.ZodOptional<z.ZodString>;
|
|
139
139
|
role: z.ZodEnum<{
|
|
140
|
-
user: "user";
|
|
141
|
-
assistant: "assistant";
|
|
142
140
|
system: "system";
|
|
141
|
+
assistant: "assistant";
|
|
142
|
+
user: "user";
|
|
143
143
|
}>;
|
|
144
144
|
kind: z.ZodDefault<z.ZodEnum<{
|
|
145
145
|
message: "message";
|
|
@@ -182,9 +182,9 @@ export declare const conversationTreeSchema: z.ZodObject<{
|
|
|
182
182
|
liveMessageId: z.ZodOptional<z.ZodString>;
|
|
183
183
|
parentEntryId: z.ZodOptional<z.ZodString>;
|
|
184
184
|
role: z.ZodEnum<{
|
|
185
|
-
user: "user";
|
|
186
|
-
assistant: "assistant";
|
|
187
185
|
system: "system";
|
|
186
|
+
assistant: "assistant";
|
|
187
|
+
user: "user";
|
|
188
188
|
}>;
|
|
189
189
|
kind: z.ZodDefault<z.ZodEnum<{
|
|
190
190
|
message: "message";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const filesystemSignalSchema: z.ZodEnum<{
|
|
3
|
+
python: "python";
|
|
3
4
|
go: "go";
|
|
4
5
|
git: "git";
|
|
5
6
|
package: "package";
|
|
6
7
|
workspace: "workspace";
|
|
7
|
-
python: "python";
|
|
8
8
|
rust: "rust";
|
|
9
9
|
}>;
|
|
10
10
|
export type FilesystemSignal = z.infer<typeof filesystemSignalSchema>;
|
|
@@ -14,11 +14,11 @@ export declare const filesystemEntrySchema: z.ZodObject<{
|
|
|
14
14
|
kind: z.ZodLiteral<"directory">;
|
|
15
15
|
hidden: z.ZodBoolean;
|
|
16
16
|
signals: z.ZodArray<z.ZodEnum<{
|
|
17
|
+
python: "python";
|
|
17
18
|
go: "go";
|
|
18
19
|
git: "git";
|
|
19
20
|
package: "package";
|
|
20
21
|
workspace: "workspace";
|
|
21
|
-
python: "python";
|
|
22
22
|
rust: "rust";
|
|
23
23
|
}>>;
|
|
24
24
|
}, z.core.$strip>;
|
|
@@ -27,11 +27,11 @@ export declare const filesystemDirectoryResponseSchema: z.ZodObject<{
|
|
|
27
27
|
path: z.ZodString;
|
|
28
28
|
parent: z.ZodOptional<z.ZodString>;
|
|
29
29
|
signals: z.ZodArray<z.ZodEnum<{
|
|
30
|
+
python: "python";
|
|
30
31
|
go: "go";
|
|
31
32
|
git: "git";
|
|
32
33
|
package: "package";
|
|
33
34
|
workspace: "workspace";
|
|
34
|
-
python: "python";
|
|
35
35
|
rust: "rust";
|
|
36
36
|
}>>;
|
|
37
37
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -40,11 +40,11 @@ export declare const filesystemDirectoryResponseSchema: z.ZodObject<{
|
|
|
40
40
|
kind: z.ZodLiteral<"directory">;
|
|
41
41
|
hidden: z.ZodBoolean;
|
|
42
42
|
signals: z.ZodArray<z.ZodEnum<{
|
|
43
|
+
python: "python";
|
|
43
44
|
go: "go";
|
|
44
45
|
git: "git";
|
|
45
46
|
package: "package";
|
|
46
47
|
workspace: "workspace";
|
|
47
|
-
python: "python";
|
|
48
48
|
rust: "rust";
|
|
49
49
|
}>>;
|
|
50
50
|
}, z.core.$strip>>;
|
|
@@ -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";
|
|
@@ -58,10 +58,10 @@ export declare const applicationLogRecordSchema: z.ZodObject<{
|
|
|
58
58
|
export type ApplicationLogRecord = z.infer<typeof applicationLogRecordSchema>;
|
|
59
59
|
export declare const applicationLogQuerySchema: z.ZodObject<{
|
|
60
60
|
level: z.ZodOptional<z.ZodEnum<{
|
|
61
|
+
error: "error";
|
|
61
62
|
debug: "debug";
|
|
62
63
|
info: "info";
|
|
63
64
|
warn: "warn";
|
|
64
|
-
error: "error";
|
|
65
65
|
}>>;
|
|
66
66
|
source: z.ZodOptional<z.ZodEnum<{
|
|
67
67
|
orchestrator: "orchestrator";
|
|
@@ -89,10 +89,10 @@ export declare const applicationLogQueryResponseSchema: z.ZodObject<{
|
|
|
89
89
|
id: z.ZodString;
|
|
90
90
|
ts: z.ZodString;
|
|
91
91
|
level: z.ZodEnum<{
|
|
92
|
+
error: "error";
|
|
92
93
|
debug: "debug";
|
|
93
94
|
info: "info";
|
|
94
95
|
warn: "warn";
|
|
95
|
-
error: "error";
|
|
96
96
|
}>;
|
|
97
97
|
source: z.ZodEnum<{
|
|
98
98
|
orchestrator: "orchestrator";
|
|
@@ -124,10 +124,10 @@ export declare const applicationLogQueryResponseSchema: z.ZodObject<{
|
|
|
124
124
|
export type ApplicationLogQueryResponse = z.infer<typeof applicationLogQueryResponseSchema>;
|
|
125
125
|
export declare const applicationLogPruneRequestSchema: z.ZodObject<{
|
|
126
126
|
level: z.ZodOptional<z.ZodEnum<{
|
|
127
|
+
error: "error";
|
|
127
128
|
debug: "debug";
|
|
128
129
|
info: "info";
|
|
129
130
|
warn: "warn";
|
|
130
|
-
error: "error";
|
|
131
131
|
}>>;
|
|
132
132
|
source: z.ZodOptional<z.ZodEnum<{
|
|
133
133
|
orchestrator: "orchestrator";
|
|
@@ -162,10 +162,10 @@ export declare const clientApplicationLogRequestSchema: z.ZodObject<{
|
|
|
162
162
|
}, z.core.$strip>>;
|
|
163
163
|
message: z.ZodString;
|
|
164
164
|
level: z.ZodEnum<{
|
|
165
|
+
error: "error";
|
|
165
166
|
debug: "debug";
|
|
166
167
|
info: "info";
|
|
167
168
|
warn: "warn";
|
|
168
|
-
error: "error";
|
|
169
169
|
}>;
|
|
170
170
|
component: z.ZodString;
|
|
171
171
|
requestId: z.ZodOptional<z.ZodString>;
|
|
@@ -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";
|