zidane 4.1.8 → 4.1.9
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/{index-bgh-k8Mv.d.ts → agent-CMIhYhDz.d.ts} +2032 -1993
- package/dist/agent-CMIhYhDz.d.ts.map +1 -0
- package/dist/chat.d.ts +7 -6
- package/dist/chat.d.ts.map +1 -1
- package/dist/chat.js +2 -2
- package/dist/contexts.d.ts +1 -1
- package/dist/{index-BB4kuRh3.d.ts → index-CXVvqTQj.d.ts} +1 -1
- package/dist/{index-BB4kuRh3.d.ts.map → index-CXVvqTQj.d.ts.map} +1 -1
- package/dist/{index-Ds5YpvfZ.d.ts → index-D6Dd6Kc0.d.ts} +3 -3
- package/dist/{index-Ds5YpvfZ.d.ts.map → index-D6Dd6Kc0.d.ts.map} +1 -1
- package/dist/{index-DRoG_udt.d.ts → index-DAaKyadO.d.ts} +2 -2
- package/dist/{index-DRoG_udt.d.ts.map → index-DAaKyadO.d.ts.map} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +6 -6
- package/dist/{interpolate-CukJwP2G.js → interpolate-BydkV1eT.js} +3 -1
- package/dist/interpolate-BydkV1eT.js.map +1 -0
- package/dist/{mcp-8wClKY-3.js → mcp-Dw-fRPVk.js} +61 -65
- package/dist/mcp-Dw-fRPVk.js.map +1 -0
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.js +1 -1
- package/dist/{presets-BzkJDW1K.js → presets-4zCJzCYw.js} +2 -2
- package/dist/{presets-BzkJDW1K.js.map → presets-4zCJzCYw.js.map} +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/presets.js +1 -1
- package/dist/providers.d.ts +1 -1
- package/dist/session/sqlite.d.ts +13 -2
- package/dist/session/sqlite.d.ts.map +1 -1
- package/dist/session/sqlite.js +70 -27
- package/dist/session/sqlite.js.map +1 -1
- package/dist/{session-Cn68UASv.js → session-B1RN0uoi.js} +42 -30
- package/dist/{session-Cn68UASv.js.map → session-B1RN0uoi.js.map} +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/session.js +1 -1
- package/dist/skills.d.ts +2 -2
- package/dist/skills.js +1 -1
- package/dist/{stats-BT9l57RS.js → stats-DZIsGqzu.js} +15 -5
- package/dist/stats-DZIsGqzu.js.map +1 -0
- package/dist/{theme-BlXO6yHe.d.ts → theme-Caf4AvTO.d.ts} +147 -13
- package/dist/theme-Caf4AvTO.d.ts.map +1 -0
- package/dist/{theme-context-MungM3SY.js → theme-context-DQM2lx4U.js} +212 -72
- package/dist/theme-context-DQM2lx4U.js.map +1 -0
- package/dist/{tools-C8kDot0H.js → tools-BdQENveS.js} +409 -312
- package/dist/tools-BdQENveS.js.map +1 -0
- package/dist/tools.d.ts +2 -2
- package/dist/tools.js +1 -1
- package/dist/tui.d.ts +64 -7
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +481 -143
- package/dist/tui.js.map +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/types.js +1 -1
- package/package.json +6 -1
- package/dist/index-bgh-k8Mv.d.ts.map +0 -1
- package/dist/interpolate-CukJwP2G.js.map +0 -1
- package/dist/mcp-8wClKY-3.js.map +0 -1
- package/dist/stats-BT9l57RS.js.map +0 -1
- package/dist/theme-BlXO6yHe.d.ts.map +0 -1
- package/dist/theme-context-MungM3SY.js.map +0 -1
- package/dist/tools-C8kDot0H.js.map +0 -1
package/dist/tools.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as InteractionToolOptions, C as createSkillsRunScriptTool, D as readFile, E as shell, M as grep, N as glob, O as multiEdit, P as edit, S as SkillsRunScriptToolOptions, T as createSkillsReadTool, _ as SpawnToolOptions, b as SkillsUseToolOptions, d as ValidationResult, f as validateToolArgs, g as ChildAgent, h as createToolSearchTool, j as createInteractionTool, k as listFiles, m as ToolSearchToolOptions, p as LazyToolEntry, u as writeFile, v as SpawnToolState, w as SkillsReadToolOptions, x as createSkillsUseTool, y as createSpawnTool } from "./index-
|
|
1
|
+
import { _ as ToolDef, g as ToolContext, v as ToolMap } from "./agent-CMIhYhDz.js";
|
|
2
|
+
import { A as InteractionToolOptions, C as createSkillsRunScriptTool, D as readFile, E as shell, M as grep, N as glob, O as multiEdit, P as edit, S as SkillsRunScriptToolOptions, T as createSkillsReadTool, _ as SpawnToolOptions, b as SkillsUseToolOptions, d as ValidationResult, f as validateToolArgs, g as ChildAgent, h as createToolSearchTool, j as createInteractionTool, k as listFiles, m as ToolSearchToolOptions, p as LazyToolEntry, u as writeFile, v as SpawnToolState, w as SkillsReadToolOptions, x as createSkillsUseTool, y as createSpawnTool } from "./index-DAaKyadO.js";
|
|
3
3
|
export { ChildAgent, InteractionToolOptions, LazyToolEntry, SkillsReadToolOptions, SkillsRunScriptToolOptions, SkillsUseToolOptions, SpawnToolOptions, SpawnToolState, ToolContext, ToolDef, ToolMap, ToolSearchToolOptions, ValidationResult, createInteractionTool, createSkillsReadTool, createSkillsRunScriptTool, createSkillsUseTool, createSpawnTool, createToolSearchTool, edit, glob, grep, listFiles, multiEdit, readFile, shell, validateToolArgs, writeFile };
|
package/dist/tools.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as multiEdit, c as grep, f as createToolSearchTool, g as validateToolArgs, h as createSkillsReadTool, i as readFile, l as glob, m as createSkillsRunScriptTool, n as createSpawnTool, o as listFiles, p as createSkillsUseTool, r as shell, s as createInteractionTool, t as writeFile, u as edit } from "./tools-
|
|
1
|
+
import { a as multiEdit, c as grep, f as createToolSearchTool, g as validateToolArgs, h as createSkillsReadTool, i as readFile, l as glob, m as createSkillsRunScriptTool, n as createSpawnTool, o as listFiles, p as createSkillsUseTool, r as shell, s as createInteractionTool, t as writeFile, u as edit } from "./tools-BdQENveS.js";
|
|
2
2
|
export { createInteractionTool, createSkillsReadTool, createSkillsRunScriptTool, createSkillsUseTool, createSpawnTool, createToolSearchTool, edit, glob, grep, listFiles, multiEdit, readFile, shell, validateToolArgs, writeFile };
|
package/dist/tui.d.ts
CHANGED
|
@@ -1,8 +1,41 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as ProviderAuth, I as SessionMeta, L as Settings, P as Picked, R as StreamEvent, W as ModelInfo, _ as ChatOptions, a as Theme, d as ApprovalRequest, et as AgentAccent, nt as AgentRegistry, tt as AgentProfile, u as ApprovalDecision, y as ResolvedConfig } from "./theme-Caf4AvTO.js";
|
|
2
2
|
import * as _$react from "react";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { SyntaxStyle } from "@opentui/core";
|
|
5
5
|
|
|
6
|
+
//#region src/tui/agent-picker.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Modal that lists the registered {@link AgentProfile}s and lets the user
|
|
9
|
+
* pick one. Rows show: `● selected · label description`.
|
|
10
|
+
*
|
|
11
|
+
* The accent column is intentionally compact (single-char marker) — the
|
|
12
|
+
* profile's `accent` color is read from the active theme so Build and Plan
|
|
13
|
+
* stand apart at a glance without taking horizontal space.
|
|
14
|
+
*
|
|
15
|
+
* Used by `App` (Ctrl+A binding) and exported for hosts that want to drive
|
|
16
|
+
* agent switching from elsewhere in their own composition.
|
|
17
|
+
*/
|
|
18
|
+
declare function AgentPickerModal({
|
|
19
|
+
agents,
|
|
20
|
+
currentAgentId,
|
|
21
|
+
onPick
|
|
22
|
+
}: {
|
|
23
|
+
agents: AgentRegistry;
|
|
24
|
+
currentAgentId: string;
|
|
25
|
+
onPick: (id: string) => void;
|
|
26
|
+
}): _$react.ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Resolve a profile's `accent` token to a concrete theme color via the
|
|
29
|
+
* caller's color palette. Exposed for the Footer badge so all surfaces
|
|
30
|
+
* stay in sync with the picker's row tinting.
|
|
31
|
+
*/
|
|
32
|
+
declare function accentColor(accent: AgentAccent | undefined, COLOR: {
|
|
33
|
+
brand: string;
|
|
34
|
+
accent: string;
|
|
35
|
+
warn: string;
|
|
36
|
+
model: string;
|
|
37
|
+
}): string;
|
|
38
|
+
//#endregion
|
|
6
39
|
//#region src/tui/app.d.ts
|
|
7
40
|
/**
|
|
8
41
|
* Top-level TUI component. Accepts a fully-resolved `ResolvedConfig` and wires
|
|
@@ -34,13 +67,32 @@ interface ContextUsage {
|
|
|
34
67
|
used: number;
|
|
35
68
|
max: number;
|
|
36
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Footer status bar. Renders as a single row when the terminal is wide enough,
|
|
72
|
+
* otherwise stacks into two rows (agent + hints + provider on top, context
|
|
73
|
+
* bottom-right) and falls back to one segment per row at terminal widths
|
|
74
|
+
* where even that overflows. The width tiering is driven by plain-text
|
|
75
|
+
* length estimates of each segment — close enough since the segments are
|
|
76
|
+
* ASCII-heavy and worst case we under-estimate the breakpoint by a few cells.
|
|
77
|
+
*
|
|
78
|
+
* Agent badge is **always rendered first** so the active profile (Build /
|
|
79
|
+
* Plan / host-custom) is the anchor on the left edge of every layout tier.
|
|
80
|
+
*/
|
|
37
81
|
declare function Footer({
|
|
38
82
|
hints,
|
|
39
83
|
picked,
|
|
84
|
+
agent,
|
|
40
85
|
context
|
|
41
86
|
}: {
|
|
42
87
|
hints: Hint[];
|
|
43
88
|
picked: Picked | null;
|
|
89
|
+
/**
|
|
90
|
+
* Active agent profile. When set, renders as the colored leading badge
|
|
91
|
+
* on the bottom bar so the current mode is the first thing the eye lands
|
|
92
|
+
* on. Pass `null` to hide entirely (single-profile registries, or
|
|
93
|
+
* non-chat screens where switching is meaningless).
|
|
94
|
+
*/
|
|
95
|
+
agent: AgentProfile | null;
|
|
44
96
|
context: ContextUsage | null;
|
|
45
97
|
}): _$react.ReactNode;
|
|
46
98
|
declare function Spinner({
|
|
@@ -222,9 +274,13 @@ declare function SettingsModal({
|
|
|
222
274
|
*/
|
|
223
275
|
declare function buildMdStyle(theme: Theme): SyntaxStyle;
|
|
224
276
|
/**
|
|
225
|
-
* Active markdown / syntax-highlighting style
|
|
226
|
-
*
|
|
227
|
-
*
|
|
277
|
+
* Active markdown / syntax-highlighting style. Returns a single shared
|
|
278
|
+
* `SyntaxStyle` instance for the active theme — built once at provider
|
|
279
|
+
* mount, re-built on theme switch. A `Settings.theme` flip re-paints every
|
|
280
|
+
* `<markdown>` that reads this hook.
|
|
281
|
+
*
|
|
282
|
+
* Throws if used outside `<MdStyleProvider>` so a missing wiring shows up
|
|
283
|
+
* loudly in development rather than silently rendering plain text.
|
|
228
284
|
*/
|
|
229
285
|
declare function useMdStyle(): SyntaxStyle;
|
|
230
286
|
//#endregion
|
|
@@ -257,7 +313,7 @@ declare function useMdStyle(): SyntaxStyle;
|
|
|
257
313
|
* to `runTui({ storageDir, prefix })`.
|
|
258
314
|
*
|
|
259
315
|
* ```ts
|
|
260
|
-
* import { BUILTIN_PROVIDERS } from 'zidane/chat'
|
|
316
|
+
* import { BUILTIN_AGENTS, BUILTIN_PROVIDERS } from 'zidane/chat'
|
|
261
317
|
* import { runTui } from 'zidane/tui'
|
|
262
318
|
* import { createRemoteStore } from 'zidane/session' // for the `store` option
|
|
263
319
|
*
|
|
@@ -266,9 +322,10 @@ declare function useMdStyle(): SyntaxStyle;
|
|
|
266
322
|
* await runTui({ storageDir: '/data', prefix: 'myapp' })
|
|
267
323
|
* await runTui({ providers: { ...BUILTIN_PROVIDERS, mine: myDescriptor } })
|
|
268
324
|
* await runTui({ store: createRemoteStore({ url: '…' }) })
|
|
325
|
+
* await runTui({ agents: { ...BUILTIN_AGENTS, debug: myDebugProfile } })
|
|
269
326
|
* ```
|
|
270
327
|
*/
|
|
271
|
-
declare function runTui(options?: ChatOptions): Promise<never>;
|
|
328
|
+
declare function runTui(options?: Partial<ChatOptions>): Promise<never>;
|
|
272
329
|
//#endregion
|
|
273
|
-
export { App, AuthScreen, ChatScreen, type ContextUsage, Footer, type Hint, Modal, type ModalProps, ModalRoot, ModelPickerModal, SessionsScreen, type SettingsActions, SettingsModal, Spinner, Transcript, buildMdStyle, isVisible, marginTopFor, onInputSubmit, runTui, useMdStyle, useModal, useModalAwareFocus };
|
|
330
|
+
export { AgentPickerModal, App, AuthScreen, ChatScreen, type ContextUsage, Footer, type Hint, Modal, type ModalProps, ModalRoot, ModelPickerModal, SessionsScreen, type SettingsActions, SettingsModal, Spinner, Transcript, accentColor, buildMdStyle, isVisible, marginTopFor, onInputSubmit, runTui, useMdStyle, useModal, useModalAwareFocus };
|
|
274
331
|
//# sourceMappingURL=tui.d.ts.map
|
package/dist/tui.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tui.d.ts","names":[],"sources":["../src/tui/app.tsx","../src/tui/components.tsx","../src/tui/modal.tsx","../src/tui/model-picker.tsx","../src/tui/screens.tsx","../src/tui/settings-modal.tsx","../src/tui/theme.ts","../src/tui/index.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tui.d.ts","names":[],"sources":["../src/tui/agent-picker.tsx","../src/tui/app.tsx","../src/tui/components.tsx","../src/tui/modal.tsx","../src/tui/model-picker.tsx","../src/tui/screens.tsx","../src/tui/settings-modal.tsx","../src/tui/theme.ts","../src/tui/index.tsx"],"mappings":";;;;;;;;;;AAoBA;;;;;;;iBAAgB,gBAAA,CAAA;EACd,MAAA;EACA,cAAA;EACA;AAAA;EAEA,MAAA,EAAQ,aAAA;EACR,cAAA;EACA,MAAA,GAAS,EAAA;AAAA,IAFY,OAAA,CAGtB,SAAA;;;;;;iBAkFe,WAAA,CACd,MAAA,EAAQ,WAAA,cACR,KAAA;EAAS,KAAA;EAAe,MAAA;EAAgB,IAAA;EAAc,KAAA;AAAA;;;;;;;;AA5FxD;;;iBCyCgB,GAAA,CAAA;EAAM;AAAA;EAAY,MAAA,EAAQ,cAAA;AAAA,IAAc,OAAA,CAAE,SAAA;;;;;;ADzC1D;;;iBEiCgB,aAAA,CAAc,OAAA,GAAU,KAAA;AAAA,UASvB,IAAA;EACf,GAAA;EACA,KAAA;AAAA;AAAA,UAGe,YAAA;EACf,IAAA;EACA,GAAA;AAAA;;;;;;;;;;;;i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