zidane 4.1.6 → 4.1.8
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/chat.d.ts +305 -0
- package/dist/chat.d.ts.map +1 -0
- package/dist/chat.js +2 -0
- package/dist/contexts.d.ts +1 -1
- package/dist/{index-BfSdALzk.d.ts → index-BB4kuRh3.d.ts} +1 -1
- package/dist/{index-BfSdALzk.d.ts.map → index-BB4kuRh3.d.ts.map} +1 -1
- package/dist/{index-B8-yNSsk.d.ts → index-DRoG_udt.d.ts} +42 -42
- package/dist/index-DRoG_udt.d.ts.map +1 -0
- package/dist/{index-CqpNqjDy.d.ts → index-Ds5YpvfZ.d.ts} +3 -3
- package/dist/{index-CqpNqjDy.d.ts.map → index-Ds5YpvfZ.d.ts.map} +1 -1
- package/dist/{agent-BAoqUvwA.d.ts → index-bgh-k8Mv.d.ts} +1992 -1992
- package/dist/index-bgh-k8Mv.d.ts.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/mcp.d.ts +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/providers.d.ts +1 -1
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/skills.d.ts +2 -2
- package/dist/theme-BlXO6yHe.d.ts +503 -0
- package/dist/theme-BlXO6yHe.d.ts.map +1 -0
- package/dist/theme-context-MungM3SY.js +1713 -0
- package/dist/theme-context-MungM3SY.js.map +1 -0
- package/dist/tools.d.ts +2 -2
- package/dist/tui.d.ts +34 -636
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +302 -1261
- package/dist/tui.js.map +1 -1
- package/dist/types.d.ts +3 -3
- package/package.json +6 -3
- package/dist/agent-BAoqUvwA.d.ts.map +0 -1
- package/dist/index-B8-yNSsk.d.ts.map +0 -1
package/dist/chat.d.ts
ADDED
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import { Y as TurnUsage } from "./index-bgh-k8Mv.js";
|
|
2
|
+
import { $ as openrouterDescriptor, A as stripSpawnTokensLine, B as AuthMethod, C as createStateStore, D as listSessionMeta, E as lastContextSizeFromTurns, F as Picked, G as ModelInfo, H as ProviderKey, I as Screen, J as cerebrasDescriptor, K as ProviderDescriptor, L as SessionMeta, M as toolCallPreview, N as toolResultText, O as loadState, P as Owner, Q as openaiDescriptor, R as Settings, S as TuiState, T as eventsFromTurns, U as detectAuth, V as ProviderAuth, W as BUILTIN_PROVIDERS, X as getContextWindow, Y as credKeyOf, Z as modelsForDescriptor, _ as ChatOptions, a as Theme, b as resolveConfig, c as ThemeSurfaces, d as ApprovalRequest, et as piIdOf, f as RequestApproval, g as useSafeModeQueue, h as useSafeModeActions, i as SyntaxTokenStyle, j as titleFromTurns, k as saveState, l as resolveTheme, m as SafeModeProvider, n as DEFAULT_THEME, o as ThemeColors, p as SafeModeActions, q as anthropicDescriptor, r as SyntaxStyles, s as ThemeSelect, t as BUILTIN_THEMES, u as ApprovalDecision, v as ProviderRegistry, w as createTuiStore, x as StateStoreApi, y as ResolvedConfig, z as StreamEvent } from "./theme-BlXO6yHe.js";
|
|
3
|
+
import { OAuthCredentials } from "@mariozechner/pi-ai/oauth";
|
|
4
|
+
import { Dispatch, ReactNode, SetStateAction } from "react";
|
|
5
|
+
|
|
6
|
+
//#region src/chat/config-context.d.ts
|
|
7
|
+
declare function ConfigProvider({
|
|
8
|
+
config,
|
|
9
|
+
children
|
|
10
|
+
}: {
|
|
11
|
+
config: ResolvedConfig;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}): ReactNode;
|
|
14
|
+
declare function useConfig(): ResolvedConfig;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/chat/credentials.d.ts
|
|
17
|
+
interface ApiKeyCredential {
|
|
18
|
+
kind: 'apikey';
|
|
19
|
+
value: string;
|
|
20
|
+
}
|
|
21
|
+
interface OAuthCredential {
|
|
22
|
+
kind: 'oauth';
|
|
23
|
+
access: string;
|
|
24
|
+
refresh?: string;
|
|
25
|
+
expires?: number;
|
|
26
|
+
/** Provider-specific extras (e.g. OpenAI Codex `accountId`). */
|
|
27
|
+
[extra: string]: unknown;
|
|
28
|
+
}
|
|
29
|
+
type ProviderCredential = ApiKeyCredential | OAuthCredential;
|
|
30
|
+
/** Top-level shape of `credentials.json` — keys are credential-file keys. */
|
|
31
|
+
type CredentialsFile = Record<string, ProviderCredential>;
|
|
32
|
+
/**
|
|
33
|
+
* Resolve the credentials file path given the resolved TUI data directory
|
|
34
|
+
* (typically `~/.zidane`, i.e. `config.paths.dir`).
|
|
35
|
+
*
|
|
36
|
+
* Matches the convention used elsewhere in the TUI (sessions.db, state.json)
|
|
37
|
+
* so a single `ZIDANE_STORAGE_DIR` override moves the entire data root.
|
|
38
|
+
*/
|
|
39
|
+
declare function credentialsPath(dataDir: string): string;
|
|
40
|
+
/**
|
|
41
|
+
* Read credentials from disk.
|
|
42
|
+
*
|
|
43
|
+
* Returns `{}` when the file is missing or corrupt (last-ditch tolerance —
|
|
44
|
+
* a hand-edit gone wrong shouldn't lock the user out of re-authing). On first
|
|
45
|
+
* call with no file present, attempts a migration from `cwd/.credentials.json`
|
|
46
|
+
* (the legacy location used by `bun run auth`).
|
|
47
|
+
*/
|
|
48
|
+
declare function readCredentials(dataDir: string): CredentialsFile;
|
|
49
|
+
/** Read a single provider's credential (translating via the descriptor). */
|
|
50
|
+
declare function readProviderCredential(dataDir: string, descriptor: ProviderDescriptor): ProviderCredential | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Write credentials atomically (write-then-rename) with mode 0o600.
|
|
53
|
+
*
|
|
54
|
+
* Atomic on the same filesystem — readers either see the previous file or the
|
|
55
|
+
* new one, never a half-written intermediate. Creates the parent dir if needed
|
|
56
|
+
* (first launch on a fresh machine: `~/.zidane/` may not exist yet).
|
|
57
|
+
*/
|
|
58
|
+
declare function writeCredentials(dataDir: string, creds: CredentialsFile): void;
|
|
59
|
+
declare function setProviderCredential(dataDir: string, descriptor: ProviderDescriptor, cred: ProviderCredential): void;
|
|
60
|
+
declare function removeProviderCredential(dataDir: string, descriptor: ProviderDescriptor): void;
|
|
61
|
+
/**
|
|
62
|
+
* Inject API-key credentials into `process.env` so the harness providers pick
|
|
63
|
+
* them up via their existing env-var resolution. Called once at TUI launch
|
|
64
|
+
* after the credentials file has been resolved. OAuth credentials are NOT
|
|
65
|
+
* injected — those reach providers via `ZIDANE_CREDENTIALS_PATH` + the file
|
|
66
|
+
* reader in `src/providers/oauth.ts`.
|
|
67
|
+
*
|
|
68
|
+
* Does not overwrite env vars that are already set — explicit user-provided
|
|
69
|
+
* env values win over stored API keys.
|
|
70
|
+
*
|
|
71
|
+
* Descriptors without an `envKey` (OAuth-only providers, custom providers
|
|
72
|
+
* that bypass env-var resolution) are skipped silently.
|
|
73
|
+
*/
|
|
74
|
+
declare function applyApiKeyEnv(dataDir: string, registry: Readonly<Record<string, ProviderDescriptor>>): void;
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/chat/format.d.ts
|
|
77
|
+
/** Compact token formatter — 12_415 → "12.4k", 1_234_567 → "1.23M". */
|
|
78
|
+
declare function fmtTokens(n: number): string;
|
|
79
|
+
/** Compact relative-time formatter — "just now / 5m / 3h / 2d". */
|
|
80
|
+
declare function ageString(ts: number, now?: number): string;
|
|
81
|
+
/** Six-char short form of a session id for headers and lists. */
|
|
82
|
+
declare function shortId(id: string): string;
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/chat/oauth.d.ts
|
|
85
|
+
declare function supportsOAuth(descriptor: ProviderDescriptor): boolean;
|
|
86
|
+
interface OAuthFlowOptions {
|
|
87
|
+
/** Called when the provider emits its login URL — typically right after the callback server starts. */
|
|
88
|
+
onUrl: (url: string, instructions?: string) => void;
|
|
89
|
+
/** Called when the provider needs a code entered manually (rare; only when callback server fails). */
|
|
90
|
+
onCodeRequest?: () => Promise<string>;
|
|
91
|
+
/** Called with each progress message from the OAuth flow (token exchange, etc.). */
|
|
92
|
+
onProgress?: (message: string) => void;
|
|
93
|
+
/** Abort the in-flight login (e.g. user pressed esc). */
|
|
94
|
+
signal?: AbortSignal;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Run the OAuth login flow for a provider.
|
|
98
|
+
*
|
|
99
|
+
* Returns the OAuth credentials on success; caller persists them via
|
|
100
|
+
* `setProviderCredential(dataDir, descriptor, { kind: 'oauth', ...credentials })`.
|
|
101
|
+
* Throws when the descriptor has no `oauthProvider` configured.
|
|
102
|
+
*/
|
|
103
|
+
declare function runOAuthLogin(descriptor: ProviderDescriptor, options: OAuthFlowOptions): Promise<OAuthCredentials>;
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/chat/safe-mode.d.ts
|
|
106
|
+
/**
|
|
107
|
+
* Safe-mode storage + matching for the TUI.
|
|
108
|
+
*
|
|
109
|
+
* Lives at `<dataDir>/projects.json` (default `~/.zidane/projects.json`). Each
|
|
110
|
+
* top-level key is an absolute project directory; the value carries that
|
|
111
|
+
* project's persisted tool-call `safelist`.
|
|
112
|
+
*
|
|
113
|
+
* ```json
|
|
114
|
+
* {
|
|
115
|
+
* "/Users/me/proj-a": { "safelist": ["read_file", "shell:git:*"] }
|
|
116
|
+
* }
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
119
|
+
* Two granularities for safelist entries:
|
|
120
|
+
* - **bare tool name** — `"read_file"` matches every `read_file` call.
|
|
121
|
+
* - **tool + first-arg token + wildcard** — `"shell:git:*"` matches `shell`
|
|
122
|
+
* calls whose primary string argument starts with the token `git`
|
|
123
|
+
* (followed by whitespace or end-of-string). Modelled on Claude Code's
|
|
124
|
+
* `Bash(git:*)` syntax.
|
|
125
|
+
*
|
|
126
|
+
* A short list of read-only tools is **implicitly safe** without being
|
|
127
|
+
* persisted — see {@link IMPLICITLY_SAFE_TOOLS}.
|
|
128
|
+
*/
|
|
129
|
+
interface ProjectEntry {
|
|
130
|
+
safelist?: string[];
|
|
131
|
+
}
|
|
132
|
+
type ProjectsFile = Record<string, ProjectEntry>;
|
|
133
|
+
/** Resolve `projects.json`'s on-disk path given the TUI data directory. */
|
|
134
|
+
declare function projectsFilePath(dataDir: string): string;
|
|
135
|
+
declare function readProjects(dataDir: string): ProjectsFile;
|
|
136
|
+
/** Atomic write — tmp + rename so a crash never leaves a half-file. */
|
|
137
|
+
declare function writeProjects(dataDir: string, file: ProjectsFile): void;
|
|
138
|
+
/**
|
|
139
|
+
* Append `entry` to the safelist for `projectDir`, dedup-aware. Returns the
|
|
140
|
+
* updated entry list (post-write) so callers can render it without re-reading.
|
|
141
|
+
*/
|
|
142
|
+
declare function addToSafelist(dataDir: string, projectDir: string, entry: string): readonly string[];
|
|
143
|
+
/** Read the safelist for one project. Returns `[]` for unknown projects. */
|
|
144
|
+
declare function getSafelist(dataDir: string, projectDir: string): readonly string[];
|
|
145
|
+
/**
|
|
146
|
+
* Tools that always pass without prompting — pure file/dir reads with no
|
|
147
|
+
* side effects. Users who want to gate them must disable safe-mode entirely
|
|
148
|
+
* (or fork this list in their own embedding).
|
|
149
|
+
*/
|
|
150
|
+
declare const IMPLICITLY_SAFE_TOOLS: readonly string[];
|
|
151
|
+
/**
|
|
152
|
+
* Test whether a `{ tool, input }` pair is covered by one safelist entry.
|
|
153
|
+
*
|
|
154
|
+
* Supported entry shapes:
|
|
155
|
+
* - `"<tool>"` — broad match on tool name. For `shell` this still requires
|
|
156
|
+
* a single-program command (compound forms always prompt).
|
|
157
|
+
* - `"<tool>:<token>:*"` — match when the primary arg's first token equals
|
|
158
|
+
* `<token>`. For `shell`, also requires the command to be free of
|
|
159
|
+
* metacharacters (`;`, `&&`, `||`, `|`, `$(`, backticks, `>`, `<`,
|
|
160
|
+
* newlines, subshells) — otherwise a `shell:git:*` entry would silently
|
|
161
|
+
* greenlight `git status && rm -rf /`.
|
|
162
|
+
*
|
|
163
|
+
* Entries that don't fit either shape are ignored (forward-compat for future
|
|
164
|
+
* pattern syntax — readers shouldn't choke on entries written by a newer
|
|
165
|
+
* version of the TUI).
|
|
166
|
+
*/
|
|
167
|
+
declare function matchesSafelistEntry(entry: string, tool: string, input: Record<string, unknown>): boolean;
|
|
168
|
+
/** True when a call matches ANY entry in the project's safelist (or is implicitly safe). */
|
|
169
|
+
declare function isOnSafelist(entries: readonly string[], tool: string, input: Record<string, unknown>): boolean;
|
|
170
|
+
/**
|
|
171
|
+
* Suggest the safelist entry to write when the user picks "accept and
|
|
172
|
+
* remember" for a `{ tool, input }`. Heuristic:
|
|
173
|
+
*
|
|
174
|
+
* - `shell` → scope by first command token (`shell:git:*`).
|
|
175
|
+
* - anything else → bare tool name (broad).
|
|
176
|
+
*
|
|
177
|
+
* Returning a string ensures the UI always has a concrete entry to display
|
|
178
|
+
* as the button label.
|
|
179
|
+
*/
|
|
180
|
+
declare function suggestSafelistEntry(tool: string, input: Record<string, unknown>): string;
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region src/chat/settings-context.d.ts
|
|
183
|
+
declare const DEFAULT_SETTINGS: Settings;
|
|
184
|
+
interface SettingsContextValue {
|
|
185
|
+
settings: Settings;
|
|
186
|
+
/** Flip a boolean setting in place. Restricted at the type level to boolean-valued keys. */
|
|
187
|
+
toggle: (key: BooleanSettingKey) => void;
|
|
188
|
+
/** Write any setting key to a new value. Used by string-valued choice rows. */
|
|
189
|
+
setSetting: <K extends keyof Settings>(key: K, value: Settings[K]) => void;
|
|
190
|
+
}
|
|
191
|
+
declare function SettingsProvider({
|
|
192
|
+
initial,
|
|
193
|
+
onChange,
|
|
194
|
+
children
|
|
195
|
+
}: {
|
|
196
|
+
initial: Settings;
|
|
197
|
+
onChange?: (settings: Settings) => void;
|
|
198
|
+
children: ReactNode;
|
|
199
|
+
}): ReactNode;
|
|
200
|
+
declare function useSettings(): SettingsContextValue;
|
|
201
|
+
/**
|
|
202
|
+
* Keys of `Settings` whose value type is exactly `boolean`. Used to type
|
|
203
|
+
* the toggle table so `SETTINGS_TOGGLES.key` only ever points to a
|
|
204
|
+
* boolean-valued setting — string-valued settings like `theme` live in
|
|
205
|
+
* `SETTINGS_CHOICES`.
|
|
206
|
+
*/
|
|
207
|
+
type BooleanSettingKey = { [K in keyof Settings]: Settings[K] extends boolean ? K : never }[keyof Settings];
|
|
208
|
+
/**
|
|
209
|
+
* Static description of every togglable setting, in display order. The TUI's
|
|
210
|
+
* `SettingsModal` and any future GUI settings panel build their row list
|
|
211
|
+
* from this so labels/descriptions stay in one place.
|
|
212
|
+
*/
|
|
213
|
+
interface SettingsToggle {
|
|
214
|
+
key: BooleanSettingKey;
|
|
215
|
+
label: string;
|
|
216
|
+
description: string;
|
|
217
|
+
}
|
|
218
|
+
declare const SETTINGS_TOGGLES: readonly SettingsToggle[];
|
|
219
|
+
/**
|
|
220
|
+
* String-valued settings that pick between a known set of options. The
|
|
221
|
+
* `SettingsModal` renders these as one row showing the active label, where
|
|
222
|
+
* `enter` cycles to the next option (wrapping back to the first). Same
|
|
223
|
+
* shape any GUI settings panel can consume — render the options array as a
|
|
224
|
+
* dropdown or segmented control.
|
|
225
|
+
*
|
|
226
|
+
* Keep `options` in stable display order; cycling depends on it.
|
|
227
|
+
*/
|
|
228
|
+
interface SettingsChoice<K extends keyof Settings = keyof Settings> {
|
|
229
|
+
key: K;
|
|
230
|
+
label: string;
|
|
231
|
+
description: string;
|
|
232
|
+
options: readonly {
|
|
233
|
+
value: Settings[K];
|
|
234
|
+
label: string;
|
|
235
|
+
}[];
|
|
236
|
+
}
|
|
237
|
+
declare const SETTINGS_CHOICES: readonly SettingsChoice[];
|
|
238
|
+
//#endregion
|
|
239
|
+
//#region src/chat/streaming.d.ts
|
|
240
|
+
/** Flip any trailing streaming markdown blocks (any owner) to finalized. */
|
|
241
|
+
declare function finalizeStreamingMarkdown(events: StreamEvent[]): StreamEvent[];
|
|
242
|
+
/** Flip the trailing streaming markdown block for one specific owner. */
|
|
243
|
+
declare function finalizeStreamingMarkdownForOwner(events: StreamEvent[], owner: Owner): StreamEvent[];
|
|
244
|
+
/**
|
|
245
|
+
* Effective context size for a single turn.
|
|
246
|
+
*
|
|
247
|
+
* `usage.input` is misleading on its own when prompt caching is active: providers
|
|
248
|
+
* (Anthropic, OpenRouter→Anthropic, Gemini) report `input` as the *new uncached*
|
|
249
|
+
* tokens only — the cached prefix shows up in `cacheRead`, and newly-cached
|
|
250
|
+
* tokens in `cacheCreation`. The model still saw all three buckets, so the real
|
|
251
|
+
* context-window utilization is their sum.
|
|
252
|
+
*
|
|
253
|
+
* Non-caching providers leave `cacheRead`/`cacheCreation` undefined, so this
|
|
254
|
+
* collapses to plain `input` for them.
|
|
255
|
+
*/
|
|
256
|
+
declare function turnContextSize(usage: TurnUsage | undefined): number;
|
|
257
|
+
interface StreamSource {
|
|
258
|
+
/** Pass `undefined` / omit for parent-agent events. */
|
|
259
|
+
childId?: string;
|
|
260
|
+
/** Nesting depth — 0 for parent, ≥ 1 for subagents. */
|
|
261
|
+
depth?: number;
|
|
262
|
+
}
|
|
263
|
+
interface StreamBuffer {
|
|
264
|
+
/** Queue a streaming delta for the next flush tick. */
|
|
265
|
+
queueStreamDelta: (kind: 'markdown' | 'thinking', delta: string, source?: StreamSource) => void;
|
|
266
|
+
/** Drain pending deltas immediately, then append a non-streaming event. */
|
|
267
|
+
appendImmediate: (evt: StreamEvent) => void;
|
|
268
|
+
/** Drain pending deltas immediately, then transform the event list. */
|
|
269
|
+
flushAndUpdate: (update: (events: StreamEvent[]) => StreamEvent[]) => void;
|
|
270
|
+
/** Drain pending deltas without further transformation. */
|
|
271
|
+
flush: () => void;
|
|
272
|
+
/** Cancel any pending flush and drop buffered deltas (on session teardown). */
|
|
273
|
+
reset: () => void;
|
|
274
|
+
}
|
|
275
|
+
declare function useStreamBuffer(setEvents: Dispatch<SetStateAction<StreamEvent[]>>): StreamBuffer;
|
|
276
|
+
//#endregion
|
|
277
|
+
//#region src/chat/theme-context.d.ts
|
|
278
|
+
declare function ThemeProvider({
|
|
279
|
+
theme,
|
|
280
|
+
children
|
|
281
|
+
}: {
|
|
282
|
+
theme: Theme;
|
|
283
|
+
children: ReactNode;
|
|
284
|
+
}): ReactNode;
|
|
285
|
+
declare function useTheme(): Theme;
|
|
286
|
+
/** Color palette only — equivalent to `useTheme().colors`. */
|
|
287
|
+
declare function useColors(): ThemeColors;
|
|
288
|
+
/** Select-row styling — equivalent to `useTheme().select`. */
|
|
289
|
+
declare function useSelectStyle(): ThemeSelect;
|
|
290
|
+
/** Panel / surface backgrounds — equivalent to `useTheme().surfaces`. */
|
|
291
|
+
declare function useSurfaces(): ThemeSurfaces;
|
|
292
|
+
/** Raw syntax style table — `useTheme().syntax`. Renderer converts to its native style type. */
|
|
293
|
+
declare function useSyntaxStyles(): SyntaxStyles;
|
|
294
|
+
//#endregion
|
|
295
|
+
//#region src/chat/themes/catppuccin.d.ts
|
|
296
|
+
declare const CATPPUCCIN_MOCHA: Theme;
|
|
297
|
+
declare const CATPPUCCIN_MACCHIATO: Theme;
|
|
298
|
+
declare const CATPPUCCIN_FRAPPE: Theme;
|
|
299
|
+
declare const CATPPUCCIN_LATTE: Theme;
|
|
300
|
+
//#endregion
|
|
301
|
+
//#region src/chat/themes/vaporwave.d.ts
|
|
302
|
+
declare const VAPORWAVE_THEME: Theme;
|
|
303
|
+
//#endregion
|
|
304
|
+
export { type ApiKeyCredential, type ApprovalDecision, type ApprovalRequest, type AuthMethod, BUILTIN_PROVIDERS, BUILTIN_THEMES, type BooleanSettingKey, CATPPUCCIN_FRAPPE, CATPPUCCIN_LATTE, CATPPUCCIN_MACCHIATO, CATPPUCCIN_MOCHA, type ChatOptions, ConfigProvider, type CredentialsFile, DEFAULT_SETTINGS, DEFAULT_THEME, IMPLICITLY_SAFE_TOOLS, type ModelInfo, type OAuthCredential, type OAuthFlowOptions, type Owner, type Picked, type ProjectEntry, type ProjectsFile, type ProviderAuth, type ProviderCredential, type ProviderDescriptor, type ProviderKey, type ProviderRegistry, type RequestApproval, type ResolvedConfig, SETTINGS_CHOICES, SETTINGS_TOGGLES, type SafeModeActions, SafeModeProvider, type Screen, type SessionMeta, type Settings, type SettingsChoice, SettingsProvider, type SettingsToggle, type StateStoreApi, type StreamBuffer, type StreamEvent, type StreamSource, type SyntaxStyles, type SyntaxTokenStyle, type Theme, type ThemeColors, ThemeProvider, type ThemeSelect, type ThemeSurfaces, type TuiState, VAPORWAVE_THEME, addToSafelist, ageString, anthropicDescriptor, applyApiKeyEnv, cerebrasDescriptor, createStateStore, createTuiStore, credKeyOf, credentialsPath, detectAuth, eventsFromTurns, finalizeStreamingMarkdown, finalizeStreamingMarkdownForOwner, fmtTokens, getContextWindow, getSafelist, isOnSafelist, lastContextSizeFromTurns, listSessionMeta, loadState, matchesSafelistEntry, modelsForDescriptor, openaiDescriptor, openrouterDescriptor, piIdOf, projectsFilePath, readCredentials, readProjects, readProviderCredential, removeProviderCredential, resolveConfig, resolveTheme, runOAuthLogin, saveState, setProviderCredential, shortId, stripSpawnTokensLine, suggestSafelistEntry, supportsOAuth, titleFromTurns, toolCallPreview, toolResultText, turnContextSize, useColors, useConfig, useSafeModeActions, useSafeModeQueue, useSelectStyle, useSettings, useStreamBuffer, useSurfaces, useSyntaxStyles, useTheme, writeCredentials, writeProjects };
|
|
305
|
+
//# sourceMappingURL=chat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.d.ts","names":[],"sources":["../src/chat/config-context.tsx","../src/chat/credentials.ts","../src/chat/format.ts","../src/chat/oauth.ts","../src/chat/safe-mode.ts","../src/chat/settings-context.tsx","../src/chat/streaming.ts","../src/chat/theme-context.tsx","../src/chat/themes/catppuccin.ts","../src/chat/themes/vaporwave.ts"],"mappings":";;;;;;iBAagB,cAAA,CAAA;EAAiB,MAAA;EAAQ;AAAA;EAAc,MAAA,EAAQ,cAAA;EAAgB,QAAA,EAAU,SAAA;AAAA,IAAW,SAAA;AAAA,iBAIpF,SAAA,CAAA,GAAa,cAAA;;;UCaZ,gBAAA;EACf,IAAA;EACA,KAAA;AAAA;AAAA,UAEe,eAAA;EACf,IAAA;EACA,MAAA;EACA,OAAA;EACA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ore, H as useConfig, I as runOAuthLogin, J as listSessionMeta, K as eventsFromTurns, L as supportsOAuth, M as projectsFilePath, N as readProjects, O as addToSafelist, P as suggestSafelistEntry, Q as titleFromTurns, R as ageString, S as CATPPUCCIN_MACCHIATO, T as useSafeModeActions, U as resolveConfig, V as ConfigProvider, W as createStateStore, X as saveState, Y as loadState, Z as stripSpawnTokensLine, _ as DEFAULT_THEME, _t as piIdOf, a as useSyntaxStyles, at as readProviderCredential, b as CATPPUCCIN_FRAPPE, c as finalizeStreamingMarkdownForOwner, ct as writeCredentials, d as DEFAULT_SETTINGS, dt as cerebrasDescriptor, et as toolResultText, f as SETTINGS_CHOICES, ft as credKeyOf, g as BUILTIN_THEMES, gt as openrouterDescriptor, h as useSettings, ht as openaiDescriptor, i as useSurfaces, it as readCredentials, j as matchesSafelistEntry, k as getSafelist, l as turnContextSize, lt as BUILTIN_PROVIDERS, m as SettingsProvider, mt as modelsForDescriptor, n as useColors, nt as applyApiKeyEnv, o as useTheme, ot as removeProviderCredential, p as SETTINGS_TOGGLES, pt as getContextWindow, q as lastContextSizeFromTurns, r as useSelectStyle, rt as credentialsPath, s as finalizeStreamingMarkdown, st as setProviderCredential, t as ThemeProvider, tt as detectAuth, u as useStreamBuffer, ut as anthropicDescriptor, v as resolveTheme, w as SafeModeProvider, x as CATPPUCCIN_LATTE, y as VAPORWAVE_THEME, z as fmtTokens } from "./theme-context-MungM3SY.js";
|
|
2
|
+
export { BUILTIN_PROVIDERS, BUILTIN_THEMES, CATPPUCCIN_FRAPPE, CATPPUCCIN_LATTE, CATPPUCCIN_MACCHIATO, CATPPUCCIN_MOCHA, ConfigProvider, DEFAULT_SETTINGS, DEFAULT_THEME, IMPLICITLY_SAFE_TOOLS, SETTINGS_CHOICES, SETTINGS_TOGGLES, SafeModeProvider, SettingsProvider, ThemeProvider, VAPORWAVE_THEME, addToSafelist, ageString, anthropicDescriptor, applyApiKeyEnv, cerebrasDescriptor, createStateStore, createTuiStore, credKeyOf, credentialsPath, detectAuth, eventsFromTurns, finalizeStreamingMarkdown, finalizeStreamingMarkdownForOwner, fmtTokens, getContextWindow, getSafelist, isOnSafelist, lastContextSizeFromTurns, listSessionMeta, loadState, matchesSafelistEntry, modelsForDescriptor, openaiDescriptor, openrouterDescriptor, piIdOf, projectsFilePath, readCredentials, readProjects, readProviderCredential, removeProviderCredential, resolveConfig, resolveTheme, runOAuthLogin, saveState, setProviderCredential, shortId, stripSpawnTokensLine, suggestSafelistEntry, supportsOAuth, titleFromTurns, toolCallPreview, toolResultText, turnContextSize, useColors, useConfig, useSafeModeActions, useSafeModeQueue, useSelectStyle, useSettings, useStreamBuffer, useSurfaces, useSyntaxStyles, useTheme, writeCredentials, writeProjects };
|
package/dist/contexts.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ContextCapabilities, c as ExecutionContext, i as createDockerContext, l as ExecutionHandle, n as createSandboxContext, o as ContextType, r as createProcessContext, s as ExecResult, t as SandboxProvider, u as SpawnConfig } from "./index-
|
|
1
|
+
import { a as ContextCapabilities, c as ExecutionContext, i as createDockerContext, l as ExecutionHandle, n as createSandboxContext, o as ContextType, r as createProcessContext, s as ExecResult, t as SandboxProvider, u as SpawnConfig } from "./index-BB4kuRh3.js";
|
|
2
2
|
export { ContextCapabilities, ContextType, ExecResult, ExecutionContext, ExecutionHandle, SandboxProvider, SpawnConfig, createDockerContext, createProcessContext, createSandboxContext };
|
|
@@ -110,4 +110,4 @@ interface SandboxProvider {
|
|
|
110
110
|
declare function createSandboxContext(provider: SandboxProvider): ExecutionContext;
|
|
111
111
|
//#endregion
|
|
112
112
|
export { ContextCapabilities as a, ExecutionContext as c, createDockerContext as i, ExecutionHandle as l, createSandboxContext as n, ContextType as o, createProcessContext as r, ExecResult as s, SandboxProvider as t, SpawnConfig as u };
|
|
113
|
-
//# sourceMappingURL=index-
|
|
113
|
+
//# sourceMappingURL=index-BB4kuRh3.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BB4kuRh3.d.ts","names":[],"sources":["../src/contexts/types.ts","../src/contexts/docker.ts","../src/contexts/process.ts","../src/contexts/sandbox.ts"],"mappings":";;AAaA;;;;;;;UAAiB,mBAAA;EAQZ;EANH,KAAA;EAce;EAZf,UAAA;;EAEA,OAAA;EAWA;EATA,GAAA;AAAA;;UAQe,eAAA;EACf,EAAA;EACA,IAAA,EAAM,WAAA;EASmB;EAPzB,GAAA;AAAA;AAAA,UAOe,UAAA;EACf,MAAA;EACA,MAAA;EACA,QAAA;AAAA;AAAA,UAOe,WAAA;EAAW;EAE1B,GAAA;EAEY;EAAZ,GAAA,GAAM,MAAA;EAAN;EAEA,KAAA;EAAA;EAEA,MAAA;IAEE,yBAAA,MAAA,WAIA;IAFA,GAAA,WAMA;IAJA,OAAA;EAAA;EAMY;EAHd,OAAA;IACE,QAAA;IACA,MAAA;IAAA,CACC,GAAA;EAAA;AAAA;AAAA,KAQO,WAAA;AAAA,UAEK,gBAAA;;WAEN,IAAA,EAAM,WAAA;EAGQ;EAAA,SAAd,YAAA,EAAc,mBAAA;EAGkB;EAAzC,KAAA,GAAQ,MAAA,GAAS,WAAA,KAAgB,OAAA,CAAQ,eAAA;EAG1B;EAAf,IAAA,GAAO,MAAA,EAAQ,eAAA,EAAiB,OAAA,UAAiB,OAAA;IAAY,GAAA;IAAc,GAAA,GAAM,MAAA;IAAwB,OAAA;EAAA,MAAuB,OAAA,CAAQ,UAAA;EAe9G;EAZ1B,QAAA,GAAW,MAAA,EAAQ,eAAA,EAAiB,IAAA,aAAiB,OAAA;EAYO;;;;;;;;;;EAA5D,cAAA,IAAkB,MAAA,EAAQ,eAAA,EAAiB,IAAA,aAAiB,OAAA,CAAQ,UAAA;EArB3D;EAwBT,SAAA,GAAY,MAAA,EAAQ,eAAA,EAAiB,IAAA,UAAc,OAAA,aAAoB,OAAA;EArBvE;EAwBA,SAAA,GAAY,MAAA,EAAQ,eAAA,EAAiB,IAAA,aAAiB,OAAA;EAxB9C;EA2BR,OAAA,GAAU,MAAA,EAAQ,eAAA,KAAoB,OAAA;AAAA;;;iBC/FxB,mBAAA,CAAoB,MAAA,GAAS,WAAA,GAAc,gBAAA;;;iBCL3C,oBAAA,CAAqB,MAAA,GAAS,WAAA,GAAc,gBAAA;;;UCF3C,eAAA;EACf,IAAA;EACA,KAAA,GAAQ,MAAA,EAAQ,WAAA,KAAgB,OAAA;IAAU,EAAA;IAAY,GAAA;EAAA;EACtD,IAAA,GAAO,SAAA,UAAmB,OAAA,UAAiB,OAAA;IAAY,GAAA;IAAc,GAAA,GAAM,MAAA;IAAwB,OAAA;EAAA,MAAuB,OAAA,CAAQ,UAAA;EAClI,QAAA,GAAW,SAAA,UAAmB,IAAA,aAAiB,OAAA;EAC/C,SAAA,GAAY,SAAA,UAAmB,IAAA,UAAc,OAAA,aAAoB,OAAA;EACjE,SAAA,GAAY,SAAA,UAAmB,IAAA,aAAiB,OAAA;EAChD,OAAA,GAAU,SAAA,aAAsB,OAAA;AAAA;AAAA,iBAOlB,oBAAA,CAAqB,QAAA,EAAU,eAAA,GAAkB,gBAAA"}
|
|
@@ -1,45 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as ToolDef, E as ChildRunStats, Q as ToolContext, T as AgentStats, Y as TurnUsage, ct as SkillActivationState, dt as SkillConfig, nt as AgentHooks, rt as AgentOptions } from "./index-bgh-k8Mv.js";
|
|
2
2
|
import { Hookable } from "hookable";
|
|
3
3
|
|
|
4
|
-
//#region src/presets/basic.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Core tools available in every basic preset (without spawn).
|
|
7
|
-
*
|
|
8
|
-
* `edit` and `multi_edit` ship in the basic set because surgical edits are the
|
|
9
|
-
* default modality for production agents — `write_file` is for full overwrites.
|
|
10
|
-
* `glob` and `grep` are exported but opt-in: not every agent needs codebase
|
|
11
|
-
* search, and shipping them by default would force `tool:gate` work onto
|
|
12
|
-
* consumers that prefer the model to use `shell` + classic Unix tools.
|
|
13
|
-
*/
|
|
14
|
-
declare const basicTools: {
|
|
15
|
-
shell: ToolDef;
|
|
16
|
-
readFile: ToolDef;
|
|
17
|
-
writeFile: ToolDef;
|
|
18
|
-
listFiles: ToolDef;
|
|
19
|
-
edit: ToolDef;
|
|
20
|
-
multiEdit: ToolDef;
|
|
21
|
-
};
|
|
22
|
-
declare const _default: Preset;
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region src/presets/index.d.ts
|
|
25
|
-
/**
|
|
26
|
-
* A preset is a reusable slice of `AgentOptions` — spread it into `createAgent()`
|
|
27
|
-
* to configure tools, a default system prompt, aliases, and behavior defaults.
|
|
28
|
-
*
|
|
29
|
-
* `provider`, `execution`, `session`, and internal fields are excluded so presets
|
|
30
|
-
* remain shareable and composable.
|
|
31
|
-
*
|
|
32
|
-
* ```ts
|
|
33
|
-
* import { basic } from 'zidane/presets'
|
|
34
|
-
* createAgent({ ...basic, provider })
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
type Preset = Omit<Partial<AgentOptions>, 'provider' | 'execution' | 'session' | 'mcpConnector'>;
|
|
38
|
-
/**
|
|
39
|
-
* Identity helper for type inference when defining a preset.
|
|
40
|
-
*/
|
|
41
|
-
declare function definePreset(config: Preset): Preset;
|
|
42
|
-
//#endregion
|
|
43
4
|
//#region src/stats.d.ts
|
|
44
5
|
/**
|
|
45
6
|
* Per-model usage rollup produced by {@link statsByModel}.
|
|
@@ -396,5 +357,44 @@ declare function createTracingHooks(options: TracingHooksOptions): TracingHookSe
|
|
|
396
357
|
*/
|
|
397
358
|
declare function zodToJsonSchema(jsonSchema: Record<string, unknown>): Record<string, unknown>;
|
|
398
359
|
//#endregion
|
|
399
|
-
|
|
400
|
-
|
|
360
|
+
//#region src/presets/basic.d.ts
|
|
361
|
+
/**
|
|
362
|
+
* Core tools available in every basic preset (without spawn).
|
|
363
|
+
*
|
|
364
|
+
* `edit` and `multi_edit` ship in the basic set because surgical edits are the
|
|
365
|
+
* default modality for production agents — `write_file` is for full overwrites.
|
|
366
|
+
* `glob` and `grep` are exported but opt-in: not every agent needs codebase
|
|
367
|
+
* search, and shipping them by default would force `tool:gate` work onto
|
|
368
|
+
* consumers that prefer the model to use `shell` + classic Unix tools.
|
|
369
|
+
*/
|
|
370
|
+
declare const basicTools: {
|
|
371
|
+
shell: ToolDef;
|
|
372
|
+
readFile: ToolDef;
|
|
373
|
+
writeFile: ToolDef;
|
|
374
|
+
listFiles: ToolDef;
|
|
375
|
+
edit: ToolDef;
|
|
376
|
+
multiEdit: ToolDef;
|
|
377
|
+
};
|
|
378
|
+
declare const _default: Preset;
|
|
379
|
+
//#endregion
|
|
380
|
+
//#region src/presets/index.d.ts
|
|
381
|
+
/**
|
|
382
|
+
* A preset is a reusable slice of `AgentOptions` — spread it into `createAgent()`
|
|
383
|
+
* to configure tools, a default system prompt, aliases, and behavior defaults.
|
|
384
|
+
*
|
|
385
|
+
* `provider`, `execution`, `session`, and internal fields are excluded so presets
|
|
386
|
+
* remain shareable and composable.
|
|
387
|
+
*
|
|
388
|
+
* ```ts
|
|
389
|
+
* import { basic } from 'zidane/presets'
|
|
390
|
+
* createAgent({ ...basic, provider })
|
|
391
|
+
* ```
|
|
392
|
+
*/
|
|
393
|
+
type Preset = Omit<Partial<AgentOptions>, 'provider' | 'execution' | 'session' | 'mcpConnector'>;
|
|
394
|
+
/**
|
|
395
|
+
* Identity helper for type inference when defining a preset.
|
|
396
|
+
*/
|
|
397
|
+
declare function definePreset(config: Preset): Preset;
|
|
398
|
+
//#endregion
|
|
399
|
+
export { InteractionToolOptions as A, createSkillsRunScriptTool as C, readFile as D, shell as E, ModelUsage as F, flattenTurns as I, statsByModel as L, grep as M, glob as N, multiEdit as O, edit as P, SkillsRunScriptToolOptions as S, createSkillsReadTool as T, SpawnToolOptions as _, zodToJsonSchema as a, SkillsUseToolOptions as b, TracingHooksOptions as c, ValidationResult as d, validateToolArgs as f, ChildAgent as g, createToolSearchTool as h, basicTools as i, createInteractionTool as j, listFiles as k, createTracingHooks as l, ToolSearchToolOptions as m, definePreset as n, Span as o, LazyToolEntry as p, _default as r, TracingHookSet as s, Preset as t, writeFile as u, SpawnToolState as v, SkillsReadToolOptions as w, createSkillsUseTool as x, createSpawnTool as y };
|
|
400
|
+
//# sourceMappingURL=index-DRoG_udt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DRoG_udt.d.ts","names":[],"sources":["../src/stats.ts","../src/tools/edit.ts","../src/tools/glob.ts","../src/tools/grep.ts","../src/tools/interaction.ts","../src/tools/list-files.ts","../src/tools/multi-edit.ts","../src/tools/read-file.ts","../src/tools/shell.ts","../src/tools/skills-read.ts","../src/tools/skills-run-script.ts","../src/tools/skills-use.ts","../src/tools/spawn.ts","../src/tools/tool-search.ts","../src/tools/validation.ts","../src/tools/write-file.ts","../src/tracing.ts","../src/zod.ts","../src/presets/basic.ts","../src/presets/index.ts"],"mappings":";;;;;;;;;;;UAiBiB,UAAA;EACf,KAAA;EACA,MAAA;EACA,IAAA;EACA,SAAA;EACA,aAAA;EACA,KAAA;AAAA;;;;;;;;;;;iBAyFc,YAAA,CAAa,KAAA,EAAO,UAAA,GAAa,SAAA;;;;;;;;;AI1EjD;iBJkGgB,YAAA,CAAa,KAAA,EAAO,UAAA,GAAa,GAAA,SAAY,UAAA;;;;;;;AAvH7D;;;;cCHa,IAAA,EAAM,OAAA;;;cC8CN,IAAA,EAAM,OAAA;;;cClBN,IAAA,EAAM,OAAA;;;UCtBF,sBAAA;;EAEf,MAAA,EAAQ,MAAA;EJ0F0B;EIxFlC,IAAA;EJwF+C;EItF/C,WAAA;EJsFwD;EIpFxD,SAAA,GAAY,OAAA,EAAS,MAAA,mBAAyB,GAAA,EAAK,WAAA,KAAgB,OAAA,CAAQ,MAAA;AAAA;;;;;;;;iBAU7D,qBAAA,CAAsB,OAAA,EAAS,sBAAA,GAAyB,OAAA;;;cCpC3D,SAAA,EAAW,OAA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AS,IAAA,CAAK,OAAA,CAAQ,YAAA;;;;iBAKlB,YAAA,CAAa,MAAA,EAAQ,MAAA,GAAS,MAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ct as SkillActivationState, dt as SkillConfig, ft as SkillDiagnostic, ht as SkillsConfig, mt as SkillSource, nt as AgentHooks } from "./index-bgh-k8Mv.js";
|
|
2
|
+
import { c as ExecutionContext, l as ExecutionHandle } from "./index-BB4kuRh3.js";
|
|
3
3
|
import { Hookable } from "hookable";
|
|
4
4
|
|
|
5
5
|
//#region src/skills/allowed-tools.d.ts
|
|
@@ -251,4 +251,4 @@ declare function defineSkill(config: Omit<SkillConfig, 'source'> & {
|
|
|
251
251
|
}): SkillConfig;
|
|
252
252
|
//#endregion
|
|
253
253
|
export { installAllowedToolsGate as S, inferSource as _, SkillValidationResult as a, buildCatalog as b, parseAllowedToolPattern as c, validateSkillName as d, resolveSkills as f, getDefaultScanPaths as g, discoverSkills as h, SkillValidationIssue as i, validateResourcePath as l, SourcedScanPath as m, writeSkillToDisk as n, isToolAllowedByUnion as o, interpolateShellCommands as p, writeSkillsToDisk as r, matchesAllowedTool as s, defineSkill as t, validateSkillForWrite as u, parseFrontmatter as v, IMPLICITLY_ALLOWED_SKILL_TOOLS as x, parseSkillFile as y };
|
|
254
|
-
//# sourceMappingURL=index-
|
|
254
|
+
//# sourceMappingURL=index-Ds5YpvfZ.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-Ds5YpvfZ.d.ts","names":[],"sources":["../src/skills/allowed-tools.ts","../src/skills/catalog.ts","../src/skills/discovery.ts","../src/skills/interpolate.ts","../src/skills/resolve.ts","../src/skills/validate.ts","../src/skills/writer.ts","../src/skills/index.ts"],"mappings":";;;;;;cAuBa,8BAAA;;;;;;;;;;ACHb;iBDmBgB,uBAAA,CACd,KAAA,EAAO,QAAA,CA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