@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/conversations.d.ts
DELETED
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const conversationRecordSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
projectId: z.ZodString;
|
|
5
|
-
title: z.ZodString;
|
|
6
|
-
mode: z.ZodEnum<{
|
|
7
|
-
planning: "planning";
|
|
8
|
-
coding: "coding";
|
|
9
|
-
}>;
|
|
10
|
-
permissionLevel: z.ZodEnum<{
|
|
11
|
-
autonomous: "autonomous";
|
|
12
|
-
supervised: "supervised";
|
|
13
|
-
read_only: "read_only";
|
|
14
|
-
}>;
|
|
15
|
-
activeAgentId: z.ZodOptional<z.ZodString>;
|
|
16
|
-
activeEntryId: z.ZodOptional<z.ZodString>;
|
|
17
|
-
createdAt: z.ZodString;
|
|
18
|
-
updatedAt: z.ZodString;
|
|
19
|
-
}, z.core.$strip>;
|
|
20
|
-
export type ConversationRecord = z.infer<typeof conversationRecordSchema>;
|
|
21
|
-
export declare const createConversationRequestSchema: z.ZodObject<{
|
|
22
|
-
projectId: z.ZodString;
|
|
23
|
-
title: z.ZodOptional<z.ZodString>;
|
|
24
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
25
|
-
planning: "planning";
|
|
26
|
-
coding: "coding";
|
|
27
|
-
}>>;
|
|
28
|
-
permissionLevel: z.ZodOptional<z.ZodEnum<{
|
|
29
|
-
autonomous: "autonomous";
|
|
30
|
-
supervised: "supervised";
|
|
31
|
-
read_only: "read_only";
|
|
32
|
-
}>>;
|
|
33
|
-
}, z.core.$strip>;
|
|
34
|
-
export type CreateConversationRequest = z.infer<typeof createConversationRequestSchema>;
|
|
35
|
-
export declare const importConversationRequestSchema: z.ZodObject<{
|
|
36
|
-
project: z.ZodOptional<z.ZodObject<{
|
|
37
|
-
name: z.ZodOptional<z.ZodString>;
|
|
38
|
-
dir: z.ZodString;
|
|
39
|
-
}, z.core.$strip>>;
|
|
40
|
-
conversation: z.ZodObject<{
|
|
41
|
-
title: z.ZodOptional<z.ZodString>;
|
|
42
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
43
|
-
planning: "planning";
|
|
44
|
-
coding: "coding";
|
|
45
|
-
}>>;
|
|
46
|
-
permissionLevel: z.ZodOptional<z.ZodEnum<{
|
|
47
|
-
autonomous: "autonomous";
|
|
48
|
-
supervised: "supervised";
|
|
49
|
-
read_only: "read_only";
|
|
50
|
-
}>>;
|
|
51
|
-
}, z.core.$strip>;
|
|
52
|
-
agents: z.ZodDefault<z.ZodArray<z.ZodUnknown>>;
|
|
53
|
-
entries: z.ZodDefault<z.ZodArray<z.ZodUnknown>>;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
|
-
export type ImportConversationRequest = z.infer<typeof importConversationRequestSchema>;
|
|
56
|
-
export declare const conversationEntryUsageSchema: z.ZodObject<{
|
|
57
|
-
input: z.ZodNumber;
|
|
58
|
-
output: z.ZodNumber;
|
|
59
|
-
cacheRead: z.ZodNumber;
|
|
60
|
-
cacheWrite: z.ZodNumber;
|
|
61
|
-
totalTokens: z.ZodNumber;
|
|
62
|
-
cost: z.ZodNumber;
|
|
63
|
-
}, z.core.$strip>;
|
|
64
|
-
export type ConversationEntryUsage = z.infer<typeof conversationEntryUsageSchema>;
|
|
65
|
-
export declare const conversationEntryKindSchema: z.ZodEnum<{
|
|
66
|
-
message: "message";
|
|
67
|
-
compaction: "compaction";
|
|
68
|
-
branch_summary: "branch_summary";
|
|
69
|
-
subagent_summary: "subagent_summary";
|
|
70
|
-
run_status: "run_status";
|
|
71
|
-
}>;
|
|
72
|
-
export type ConversationEntryKind = z.infer<typeof conversationEntryKindSchema>;
|
|
73
|
-
export type ConversationRunStatusState = "retrying" | "retry_exhausted";
|
|
74
|
-
export interface ConversationRunStatusDetails {
|
|
75
|
-
type: "agent_run_retry_status";
|
|
76
|
-
state: ConversationRunStatusState;
|
|
77
|
-
runId: string;
|
|
78
|
-
failedEntryId?: string;
|
|
79
|
-
attempt?: number;
|
|
80
|
-
maxRetries?: number;
|
|
81
|
-
delayMs?: number;
|
|
82
|
-
retryAt?: string;
|
|
83
|
-
errorMessage?: string;
|
|
84
|
-
retryable?: boolean;
|
|
85
|
-
}
|
|
86
|
-
export declare const conversationEntrySchema: z.ZodObject<{
|
|
87
|
-
id: z.ZodString;
|
|
88
|
-
conversationId: z.ZodString;
|
|
89
|
-
agentId: z.ZodOptional<z.ZodString>;
|
|
90
|
-
runId: z.ZodOptional<z.ZodString>;
|
|
91
|
-
turnId: z.ZodOptional<z.ZodString>;
|
|
92
|
-
liveMessageId: z.ZodOptional<z.ZodString>;
|
|
93
|
-
parentEntryId: z.ZodOptional<z.ZodString>;
|
|
94
|
-
role: z.ZodEnum<{
|
|
95
|
-
system: "system";
|
|
96
|
-
user: "user";
|
|
97
|
-
assistant: "assistant";
|
|
98
|
-
}>;
|
|
99
|
-
kind: z.ZodDefault<z.ZodEnum<{
|
|
100
|
-
message: "message";
|
|
101
|
-
compaction: "compaction";
|
|
102
|
-
branch_summary: "branch_summary";
|
|
103
|
-
subagent_summary: "subagent_summary";
|
|
104
|
-
run_status: "run_status";
|
|
105
|
-
}>>;
|
|
106
|
-
text: z.ZodString;
|
|
107
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
108
|
-
tokensBefore: z.ZodOptional<z.ZodNumber>;
|
|
109
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
110
|
-
input: z.ZodNumber;
|
|
111
|
-
output: z.ZodNumber;
|
|
112
|
-
cacheRead: z.ZodNumber;
|
|
113
|
-
cacheWrite: z.ZodNumber;
|
|
114
|
-
totalTokens: z.ZodNumber;
|
|
115
|
-
cost: z.ZodNumber;
|
|
116
|
-
}, z.core.$strip>>;
|
|
117
|
-
firstKeptEntryId: z.ZodOptional<z.ZodString>;
|
|
118
|
-
fromEntryId: z.ZodOptional<z.ZodString>;
|
|
119
|
-
details: z.ZodOptional<z.ZodUnknown>;
|
|
120
|
-
createdAt: z.ZodString;
|
|
121
|
-
}, z.core.$strip>;
|
|
122
|
-
export type ConversationEntry = z.infer<typeof conversationEntrySchema>;
|
|
123
|
-
export declare const conversationTreeNodeSchema: z.ZodObject<{
|
|
124
|
-
entry: z.ZodObject<{
|
|
125
|
-
id: z.ZodString;
|
|
126
|
-
conversationId: z.ZodString;
|
|
127
|
-
agentId: z.ZodOptional<z.ZodString>;
|
|
128
|
-
runId: z.ZodOptional<z.ZodString>;
|
|
129
|
-
turnId: z.ZodOptional<z.ZodString>;
|
|
130
|
-
liveMessageId: z.ZodOptional<z.ZodString>;
|
|
131
|
-
parentEntryId: z.ZodOptional<z.ZodString>;
|
|
132
|
-
role: z.ZodEnum<{
|
|
133
|
-
system: "system";
|
|
134
|
-
user: "user";
|
|
135
|
-
assistant: "assistant";
|
|
136
|
-
}>;
|
|
137
|
-
kind: z.ZodDefault<z.ZodEnum<{
|
|
138
|
-
message: "message";
|
|
139
|
-
compaction: "compaction";
|
|
140
|
-
branch_summary: "branch_summary";
|
|
141
|
-
subagent_summary: "subagent_summary";
|
|
142
|
-
run_status: "run_status";
|
|
143
|
-
}>>;
|
|
144
|
-
text: z.ZodString;
|
|
145
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
146
|
-
tokensBefore: z.ZodOptional<z.ZodNumber>;
|
|
147
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
148
|
-
input: z.ZodNumber;
|
|
149
|
-
output: z.ZodNumber;
|
|
150
|
-
cacheRead: z.ZodNumber;
|
|
151
|
-
cacheWrite: z.ZodNumber;
|
|
152
|
-
totalTokens: z.ZodNumber;
|
|
153
|
-
cost: z.ZodNumber;
|
|
154
|
-
}, z.core.$strip>>;
|
|
155
|
-
firstKeptEntryId: z.ZodOptional<z.ZodString>;
|
|
156
|
-
fromEntryId: z.ZodOptional<z.ZodString>;
|
|
157
|
-
details: z.ZodOptional<z.ZodUnknown>;
|
|
158
|
-
createdAt: z.ZodString;
|
|
159
|
-
}, z.core.$strip>;
|
|
160
|
-
childEntryIds: z.ZodArray<z.ZodString>;
|
|
161
|
-
}, z.core.$strip>;
|
|
162
|
-
export type ConversationTreeNode = z.infer<typeof conversationTreeNodeSchema>;
|
|
163
|
-
export declare const conversationTreeSchema: z.ZodObject<{
|
|
164
|
-
conversationId: z.ZodString;
|
|
165
|
-
activeEntryId: z.ZodOptional<z.ZodString>;
|
|
166
|
-
rootEntryIds: z.ZodArray<z.ZodString>;
|
|
167
|
-
nodes: z.ZodArray<z.ZodObject<{
|
|
168
|
-
entry: z.ZodObject<{
|
|
169
|
-
id: z.ZodString;
|
|
170
|
-
conversationId: z.ZodString;
|
|
171
|
-
agentId: z.ZodOptional<z.ZodString>;
|
|
172
|
-
runId: z.ZodOptional<z.ZodString>;
|
|
173
|
-
turnId: z.ZodOptional<z.ZodString>;
|
|
174
|
-
liveMessageId: z.ZodOptional<z.ZodString>;
|
|
175
|
-
parentEntryId: z.ZodOptional<z.ZodString>;
|
|
176
|
-
role: z.ZodEnum<{
|
|
177
|
-
system: "system";
|
|
178
|
-
user: "user";
|
|
179
|
-
assistant: "assistant";
|
|
180
|
-
}>;
|
|
181
|
-
kind: z.ZodDefault<z.ZodEnum<{
|
|
182
|
-
message: "message";
|
|
183
|
-
compaction: "compaction";
|
|
184
|
-
branch_summary: "branch_summary";
|
|
185
|
-
subagent_summary: "subagent_summary";
|
|
186
|
-
run_status: "run_status";
|
|
187
|
-
}>>;
|
|
188
|
-
text: z.ZodString;
|
|
189
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
190
|
-
tokensBefore: z.ZodOptional<z.ZodNumber>;
|
|
191
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
192
|
-
input: z.ZodNumber;
|
|
193
|
-
output: z.ZodNumber;
|
|
194
|
-
cacheRead: z.ZodNumber;
|
|
195
|
-
cacheWrite: z.ZodNumber;
|
|
196
|
-
totalTokens: z.ZodNumber;
|
|
197
|
-
cost: z.ZodNumber;
|
|
198
|
-
}, z.core.$strip>>;
|
|
199
|
-
firstKeptEntryId: z.ZodOptional<z.ZodString>;
|
|
200
|
-
fromEntryId: z.ZodOptional<z.ZodString>;
|
|
201
|
-
details: z.ZodOptional<z.ZodUnknown>;
|
|
202
|
-
createdAt: z.ZodString;
|
|
203
|
-
}, z.core.$strip>;
|
|
204
|
-
childEntryIds: z.ZodArray<z.ZodString>;
|
|
205
|
-
}, z.core.$strip>>;
|
|
206
|
-
}, z.core.$strip>;
|
|
207
|
-
export type ConversationTree = z.infer<typeof conversationTreeSchema>;
|
|
208
|
-
export declare const navigateConversationRequestSchema: z.ZodObject<{
|
|
209
|
-
activeEntryId: z.ZodNullable<z.ZodString>;
|
|
210
|
-
summarize: z.ZodOptional<z.ZodBoolean>;
|
|
211
|
-
summaryInstructions: z.ZodOptional<z.ZodString>;
|
|
212
|
-
}, z.core.$strip>;
|
|
213
|
-
export type NavigateConversationRequest = z.infer<typeof navigateConversationRequestSchema>;
|
|
214
|
-
export declare const compactConversationRequestSchema: z.ZodObject<{
|
|
215
|
-
instructions: z.ZodOptional<z.ZodString>;
|
|
216
|
-
keepRecentTokens: z.ZodOptional<z.ZodNumber>;
|
|
217
|
-
}, z.core.$strip>;
|
|
218
|
-
export type CompactConversationRequest = z.infer<typeof compactConversationRequestSchema>;
|
|
219
|
-
//# sourceMappingURL=conversations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../src/conversations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;iBAUnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,+BAA+B;;;;;;;;;;;;iBAK1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;iBAc1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;;iBAOvC,CAAC;AACH,MAAM,MAAM,sBAAs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C/C,OAAO,iCAAiC,CACzC,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;iBAG3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC"}
|
package/dist/conversations.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { modeSchema, permissionLevelSchema } from "./settings.js";
|
|
3
|
-
export const conversationRecordSchema = z.object({
|
|
4
|
-
id: z.string().startsWith("conv_"),
|
|
5
|
-
projectId: z.string().startsWith("proj_"),
|
|
6
|
-
title: z.string().min(1),
|
|
7
|
-
mode: modeSchema,
|
|
8
|
-
permissionLevel: permissionLevelSchema,
|
|
9
|
-
activeAgentId: z.string().startsWith("agent_").optional(),
|
|
10
|
-
activeEntryId: z.string().startsWith("entry_").optional(),
|
|
11
|
-
createdAt: z.string().datetime(),
|
|
12
|
-
updatedAt: z.string().datetime(),
|
|
13
|
-
});
|
|
14
|
-
export const createConversationRequestSchema = z.object({
|
|
15
|
-
projectId: z.string().startsWith("proj_"),
|
|
16
|
-
title: z.string().min(1).optional(),
|
|
17
|
-
mode: modeSchema.optional(),
|
|
18
|
-
permissionLevel: permissionLevelSchema.optional(),
|
|
19
|
-
});
|
|
20
|
-
export const importConversationRequestSchema = z.object({
|
|
21
|
-
project: z
|
|
22
|
-
.object({
|
|
23
|
-
name: z.string().min(1).optional(),
|
|
24
|
-
dir: z.string().min(1),
|
|
25
|
-
})
|
|
26
|
-
.optional(),
|
|
27
|
-
conversation: z.object({
|
|
28
|
-
title: z.string().min(1).optional(),
|
|
29
|
-
mode: modeSchema.optional(),
|
|
30
|
-
permissionLevel: permissionLevelSchema.optional(),
|
|
31
|
-
}),
|
|
32
|
-
agents: z.array(z.unknown()).default([]),
|
|
33
|
-
entries: z.array(z.unknown()).default([]),
|
|
34
|
-
});
|
|
35
|
-
export const conversationEntryUsageSchema = z.object({
|
|
36
|
-
input: z.number().int().nonnegative(),
|
|
37
|
-
output: z.number().int().nonnegative(),
|
|
38
|
-
cacheRead: z.number().int().nonnegative(),
|
|
39
|
-
cacheWrite: z.number().int().nonnegative(),
|
|
40
|
-
totalTokens: z.number().int().nonnegative(),
|
|
41
|
-
cost: z.number().nonnegative(),
|
|
42
|
-
});
|
|
43
|
-
export const conversationEntryKindSchema = z.enum([
|
|
44
|
-
"message",
|
|
45
|
-
"compaction",
|
|
46
|
-
"branch_summary",
|
|
47
|
-
"subagent_summary",
|
|
48
|
-
"run_status",
|
|
49
|
-
]);
|
|
50
|
-
export const conversationEntrySchema = z.object({
|
|
51
|
-
id: z.string().startsWith("entry_"),
|
|
52
|
-
conversationId: z.string().startsWith("conv_"),
|
|
53
|
-
agentId: z.string().startsWith("agent_").optional(),
|
|
54
|
-
runId: z.string().startsWith("run_").optional(),
|
|
55
|
-
turnId: z.string().startsWith("turn_").optional(),
|
|
56
|
-
liveMessageId: z.string().startsWith("msg_").optional(),
|
|
57
|
-
parentEntryId: z.string().startsWith("entry_").optional(),
|
|
58
|
-
role: z.enum(["user", "assistant", "system"]),
|
|
59
|
-
kind: conversationEntryKindSchema.default("message"),
|
|
60
|
-
text: z.string(),
|
|
61
|
-
summary: z.string().optional(),
|
|
62
|
-
tokensBefore: z.number().int().nonnegative().optional(),
|
|
63
|
-
usage: conversationEntryUsageSchema.optional(),
|
|
64
|
-
firstKeptEntryId: z.string().startsWith("entry_").optional(),
|
|
65
|
-
fromEntryId: z.string().startsWith("entry_").optional(),
|
|
66
|
-
details: z.unknown().optional(),
|
|
67
|
-
createdAt: z.string().datetime(),
|
|
68
|
-
});
|
|
69
|
-
export const conversationTreeNodeSchema = z.object({
|
|
70
|
-
entry: conversationEntrySchema,
|
|
71
|
-
childEntryIds: z.array(z.string().startsWith("entry_")),
|
|
72
|
-
});
|
|
73
|
-
export const conversationTreeSchema = z.object({
|
|
74
|
-
conversationId: z.string().startsWith("conv_"),
|
|
75
|
-
activeEntryId: z.string().startsWith("entry_").optional(),
|
|
76
|
-
rootEntryIds: z.array(z.string().startsWith("entry_")),
|
|
77
|
-
nodes: z.array(conversationTreeNodeSchema),
|
|
78
|
-
});
|
|
79
|
-
export const navigateConversationRequestSchema = z.object({
|
|
80
|
-
activeEntryId: z.string().startsWith("entry_").nullable(),
|
|
81
|
-
summarize: z.boolean().optional(),
|
|
82
|
-
summaryInstructions: z.string().optional(),
|
|
83
|
-
});
|
|
84
|
-
export const compactConversationRequestSchema = z.object({
|
|
85
|
-
instructions: z.string().optional(),
|
|
86
|
-
keepRecentTokens: z.number().int().positive().optional(),
|
|
87
|
-
});
|
|
88
|
-
//# sourceMappingURL=conversations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../src/conversations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAElE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC;IAClC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC;IACzC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,IAAI,EAAE,UAAU;IAChB,eAAe,EAAE,qBAAqB;IACtC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE;IACzD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE;IACzD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,CAAC,CAAC,MA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C,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IACtD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC;CAC3C,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE;IACzD,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjC,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAKH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACzD,CAAC,CAAC"}
|
package/dist/core.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export type IdPrefix = "daemon" | "evt" | "proj" | "conv" | "agent" | "run" | "turn" | "msg" | "block" | "proc" | "entry" | "tool" | "approval" | "question" | "plan_review" | "susp" | "worker" | "authflow" | "credkey" | "log" | "promptq" | "pin";
|
|
2
|
-
export declare function createId(prefix: IdPrefix): `${IdPrefix}_${string}`;
|
|
3
|
-
export declare function parseCookieHeader(header: string | null | undefined): Record<string, string>;
|
|
4
|
-
//# sourceMappingURL=core.d.ts.map
|
package/dist/core.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAChB,QAAQ,GACR,KAAK,GACL,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,GACL,MAAM,GACN,KAAK,GACL,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,UAAU,GACV,UAAU,GACV,aAAa,GACb,MAAM,GACN,QAAQ,GACR,UAAU,GACV,SAAS,GACT,KAAK,GACL,SAAS,GACT,KAAK,CAAC;AAuBV,wBAAgB,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,GAAG,QAAQ,IAAI,MAAM,EAAE,CAElE;AAED,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAChC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CASxB"}
|
package/dist/core.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
const crockford = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
2
|
-
function encodeTime(time, length) {
|
|
3
|
-
let value = time;
|
|
4
|
-
let output = "";
|
|
5
|
-
for (let i = length - 1; i >= 0; i -= 1) {
|
|
6
|
-
output = crockford[value % 32] + output;
|
|
7
|
-
value = Math.floor(value / 32);
|
|
8
|
-
}
|
|
9
|
-
return output;
|
|
10
|
-
}
|
|
11
|
-
function encodeRandom(length) {
|
|
12
|
-
const bytes = crypto.getRandomValues(new Uint8Array(length));
|
|
13
|
-
let output = "";
|
|
14
|
-
for (const byte of bytes) {
|
|
15
|
-
output += crockford[byte % 32];
|
|
16
|
-
}
|
|
17
|
-
return output;
|
|
18
|
-
}
|
|
19
|
-
export function createId(prefix) {
|
|
20
|
-
return `${prefix}_${encodeTime(Date.now(), 10)}${encodeRandom(16)}`;
|
|
21
|
-
}
|
|
22
|
-
export function parseCookieHeader(header) {
|
|
23
|
-
if (!header)
|
|
24
|
-
return {};
|
|
25
|
-
const cookies = {};
|
|
26
|
-
for (const part of header.split(";")) {
|
|
27
|
-
const [rawName, ...rawValue] = part.trim().split("=");
|
|
28
|
-
if (!rawName)
|
|
29
|
-
continue;
|
|
30
|
-
cookies[rawName] = decodeURIComponent(rawValue.join("="));
|
|
31
|
-
}
|
|
32
|
-
return cookies;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=core.js.map
|
package/dist/core.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAwBA,MAAM,SAAS,GAAG,kCAAkC,CAAC;AAErD,SAAS,UAAU,CAAC,IAAY,EAAE,MAAc;IAC9C,IAAI,KAAK,GAAG,IAAI,CAAC;IACjB,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,KAAK,IAAI,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QACxC,MAAM,GAAG,SAAS,CAAC,KAAK,GAAG,EAAE,CAAC,GAAG,MAAM,CAAC;QACxC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC;IACjC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,YAAY,CAAC,MAAc;IAClC,MAAM,KAAK,GAAG,MAAM,CAAC,eAAe,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7D,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,IAAI,SAAS,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;IACjC,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,MAAgB;IACvC,OAAO,GAAG,MAAM,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,EAAE,CAAC,GAAG,YAAY,CAAC,EAAE,CAAC,EAAE,CAAC;AACtE,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,MAAiC;IAEjC,IAAI,CAAC,MAAM;QAAE,OAAO,EAAE,CAAC;IACvB,MAAM,OAAO,GAA2B,EAAE,CAAC;IAC3C,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;QACrC,MAAM,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACtD,IAAI,CAAC,OAAO;YAAE,SAAS;QACvB,OAAO,CAAC,OAAO,CAAC,GAAG,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5D,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* A single autocomplete option surfaced to the prompt composer. Shared between
|
|
4
|
-
* the orchestrator completion routes and the web client so the wire shape stays
|
|
5
|
-
* in one place.
|
|
6
|
-
*/
|
|
7
|
-
export declare const completionItemSchema: z.ZodObject<{
|
|
8
|
-
label: z.ZodString;
|
|
9
|
-
detail: z.ZodOptional<z.ZodString>;
|
|
10
|
-
info: z.ZodOptional<z.ZodString>;
|
|
11
|
-
kind: z.ZodEnum<{
|
|
12
|
-
slash: "slash";
|
|
13
|
-
file: "file";
|
|
14
|
-
directory: "directory";
|
|
15
|
-
}>;
|
|
16
|
-
apply: z.ZodOptional<z.ZodString>;
|
|
17
|
-
mtimeMs: z.ZodOptional<z.ZodNumber>;
|
|
18
|
-
depth: z.ZodOptional<z.ZodNumber>;
|
|
19
|
-
}, z.core.$strip>;
|
|
20
|
-
export type CompletionItem = z.infer<typeof completionItemSchema>;
|
|
21
|
-
//# sourceMappingURL=completions.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"completions.schema.d.ts","sourceRoot":"","sources":["../../../src/domains/completions/completions.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;iBAc/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* A single autocomplete option surfaced to the prompt composer. Shared between
|
|
4
|
-
* the orchestrator completion routes and the web client so the wire shape stays
|
|
5
|
-
* in one place.
|
|
6
|
-
*/
|
|
7
|
-
export const completionItemSchema = z.object({
|
|
8
|
-
/** Display + (by default) applied text. */
|
|
9
|
-
label: z.string().min(1),
|
|
10
|
-
/** Short qualifier shown beside the label (e.g. parent directory). */
|
|
11
|
-
detail: z.string().optional(),
|
|
12
|
-
/** Longer description shown on selection. */
|
|
13
|
-
info: z.string().optional(),
|
|
14
|
-
kind: z.enum(["slash", "file", "directory"]),
|
|
15
|
-
/** Text to insert instead of `label` when the option is picked. */
|
|
16
|
-
apply: z.string().optional(),
|
|
17
|
-
/** Last-modified time in ms since epoch (files only; used for ranking). */
|
|
18
|
-
mtimeMs: z.number().int().nonnegative().optional(),
|
|
19
|
-
/** Path segment depth from the project root (used for ranking). */
|
|
20
|
-
depth: z.number().int().nonnegative().optional(),
|
|
21
|
-
});
|
|
22
|
-
//# sourceMappingURL=completions.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"completions.schema.js","sourceRoot":"","sources":["../../../src/domains/completions/completions.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,2CAA2C;IAC3C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,sEAAsE;IACtE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,6CAA6C;IAC7C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;IAC5C,mEAAmE;IACnE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,2EAA2E;IAC3E,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IAClD,mEAAmE;IACnE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/processes/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domains/processes/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|