Add bundled pi default and session token reporting

This commit is contained in:
Peter Steinberger
2025-12-05 22:33:09 +01:00
parent fe87160b19
commit 690113dd73
15 changed files with 427 additions and 6 deletions

View File

@@ -82,6 +82,8 @@ export type WarelayConfig = {
kind: AgentKind;
format?: "text" | "json";
identityPrefix?: string;
model?: string;
contextTokens?: number;
};
};
};
@@ -141,6 +143,8 @@ const ReplySchema = z
kind: z.literal("pi"),
format: z.union([z.literal("text"), z.literal("json")]).optional(),
identityPrefix: z.string().optional(),
model: z.string().optional(),
contextTokens: z.number().int().positive().optional(),
})
.optional(),
})

View File

@@ -15,6 +15,11 @@ export type SessionEntry = {
abortedLastRun?: boolean;
thinkingLevel?: string;
verboseLevel?: string;
inputTokens?: number;
outputTokens?: number;
totalTokens?: number;
model?: string;
contextTokens?: number;
};
export const SESSION_STORE_DEFAULT = path.join(