@vimhead.dev/norn 0.1.0-tip.36679386408.1 → 0.1.0-tip.37307659560.1
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/api.d.ts +26 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -204,6 +204,24 @@ export type DeletedNornRunInfo = {
|
|
|
204
204
|
readonly name: string;
|
|
205
205
|
readonly path: string;
|
|
206
206
|
};
|
|
207
|
+
export type NornRunPruneOptions = {
|
|
208
|
+
readonly deleteRuns: boolean;
|
|
209
|
+
readonly all: boolean;
|
|
210
|
+
readonly olderThan: string | null;
|
|
211
|
+
readonly dryRun: boolean;
|
|
212
|
+
};
|
|
213
|
+
export type NornRunPruneResult = {
|
|
214
|
+
readonly mode: "checkpoints" | "runs";
|
|
215
|
+
readonly dryRun: boolean;
|
|
216
|
+
readonly olderThan: string | null;
|
|
217
|
+
readonly runs: readonly {
|
|
218
|
+
readonly id: string;
|
|
219
|
+
readonly name: string;
|
|
220
|
+
readonly path: string;
|
|
221
|
+
readonly status: "planned" | "pruned" | "skipped" | "failed";
|
|
222
|
+
readonly reason?: string;
|
|
223
|
+
}[];
|
|
224
|
+
};
|
|
207
225
|
export type NornRunCheckpoint = {
|
|
208
226
|
readonly id: string;
|
|
209
227
|
readonly path: string;
|
|
@@ -241,13 +259,20 @@ export type NornCommandRunResult = {
|
|
|
241
259
|
export type NornAgentBeforeSessionStartContext = {
|
|
242
260
|
readonly events: EventBus;
|
|
243
261
|
};
|
|
262
|
+
export type NornAgentModelReference = {
|
|
263
|
+
readonly provider: string;
|
|
264
|
+
readonly id: string;
|
|
265
|
+
};
|
|
244
266
|
export type NornAgentCreateSessionInput = {
|
|
245
267
|
readonly customTools?: readonly ToolDefinition[];
|
|
246
268
|
readonly label: string;
|
|
247
269
|
readonly cwd: string;
|
|
248
270
|
readonly tools?: string[];
|
|
249
271
|
readonly beforeSessionStart?: (context: NornAgentBeforeSessionStartContext) => MaybePromise<void>;
|
|
250
|
-
readonly
|
|
272
|
+
readonly models: readonly [
|
|
273
|
+
NornAgentModelReference,
|
|
274
|
+
...NornAgentModelReference[]
|
|
275
|
+
];
|
|
251
276
|
readonly thinkingLevel?: CreateAgentSessionOptions["thinkingLevel"];
|
|
252
277
|
readonly systemPrompt?: string;
|
|
253
278
|
readonly appendSystemPrompt?: readonly string[];
|
package/package.json
CHANGED