zidane 5.6.2 → 5.6.3
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/{agent-Dtnvs5ee.d.ts → agent-D70rr6Uk.d.ts} +19 -1
- package/dist/{agent-Dtnvs5ee.d.ts.map → agent-D70rr6Uk.d.ts.map} +1 -1
- package/dist/chat.d.ts +4 -4
- package/dist/chat.js +2 -2
- package/dist/{index-DHeHe04L.d.ts → index-BjwwNjQd.d.ts} +9 -4
- package/dist/{index-DHeHe04L.d.ts.map → index-BjwwNjQd.d.ts.map} +1 -1
- package/dist/{index-DX8De0nl.d.ts → index-DKpXHp1c.d.ts} +2 -2
- package/dist/{index-DX8De0nl.d.ts.map → index-DKpXHp1c.d.ts.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/{interpolate-j5V-wcAQ.js → interpolate-DM1UcKeQ.js} +27 -4
- package/dist/{interpolate-j5V-wcAQ.js.map → interpolate-DM1UcKeQ.js.map} +1 -1
- package/dist/{login-BOj03nVe.js → login-YckkS-Bq.js} +2 -2
- package/dist/{login-BOj03nVe.js.map → login-YckkS-Bq.js.map} +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/{presets-CTSij3yV.js → presets-ZT3TJDEb.js} +2 -2
- package/dist/{presets-CTSij3yV.js.map → presets-ZT3TJDEb.js.map} +1 -1
- package/dist/presets.d.ts +2 -2
- package/dist/presets.js +1 -1
- package/dist/providers.d.ts +1 -1
- package/dist/restate.d.ts +24 -2
- package/dist/restate.d.ts.map +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/skills.js +1 -1
- package/dist/{tools-CslsHpKb.js → tools-Bgx8OBqK.js} +2 -2
- package/dist/{tools-CslsHpKb.js.map → tools-Bgx8OBqK.js.map} +1 -1
- package/dist/tools.d.ts +2 -2
- package/dist/tools.js +1 -1
- package/dist/{transcript-anchors-CwoKNW6Y.d.ts → transcript-anchors-CtSVZeBi.d.ts} +3 -3
- package/dist/{transcript-anchors-CwoKNW6Y.d.ts.map → transcript-anchors-CtSVZeBi.d.ts.map} +1 -1
- package/dist/tui.d.ts +2 -2
- package/dist/tui.js +3 -3
- package/dist/{turn-operations-B8ySajUl.js → turn-operations-CH7rnULP.js} +4 -4
- package/dist/{turn-operations-B8ySajUl.js.map → turn-operations-CH7rnULP.js.map} +1 -1
- package/dist/types.d.ts +2 -2
- package/docs/RESTATE.md +16 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ExecutionContext, i as ExecResult, n as ContextCapabilities, o as ExecutionHandle, r as ContextType, s as SpawnConfig } from "./types-KukEp-mi.js";
|
|
2
2
|
import { t as SandboxProvider } from "./index-CbS75MD3.js";
|
|
3
|
-
import { $t as SpawnHookContext, Bt as McpToolHookContext, D as SkillConfig, Dt as OpenAIParams, F as SessionRun, Ft as AgentRunOptions, Gt as PromptPart, Ht as OAuthRefreshHookContext, I as SessionStore, It as AgentStats, Jt as SessionContentBlock, Kt as PromptTextPart, Lt as ChildRunStats, M as CreateSessionOptions, N as Session, Nt as AgentBehavior, P as SessionData, Pt as AgentClock, Qt as SessionTurn, Rt as DEFAULT_AGENT_CLOCK, S as ReadStateMap, Ut as PromptDocumentPart, Wt as PromptImagePart, Xt as SessionHookContext, Yt as SessionEndStatus, Zt as SessionMessage, _n as ClassifiedError, an as ToolResultTextContent, b as ToolMap, bn as matchesContextExceeded, cn as toolOutputByteLength, ct as StreamCallbacks, dn as AgentBudgetExceededError, dt as ToolResult, en as StreamHookContext, fn as AgentContextExceededError, ft as ToolSpec, gn as CONTEXT_EXCEEDED_MESSAGE_PATTERNS, i as AgentOptions, in as ToolResultImageContent, j as SkillsConfig, jt as AnthropicParams, k as SkillResource, kt as CerebrasParams, ln as toolResultToText, lt as StreamOptions, mn as AgentToolNotAllowedError, nn as ToolHookContext, on as TurnFinishReason, ot as Provider, p as McpConnection, pn as AgentProviderError, pt as TurnResult, qt as RunHookMap, r as AgentHooks, rn as ToolResultContent, sn as TurnUsage, st as ProviderCapabilities, t as Agent, tn as ThinkingLevel, un as AgentAbortedError, ut as ToolCall, v as ToolContext, vn as ClassifiedErrorKind, x as ReadStateEntry, y as ToolDef, yt as OpenRouterParams, z as RemoteStoreOptions, zt as McpServerConfig } from "./agent-
|
|
4
|
-
import { H as ModelUsage, L as InteractionToolOptions, S as SpawnToolState, U as flattenTurns, W as statsByModel, b as ChildAgent, h as ValidationResult, t as Preset, x as SpawnToolOptions } from "./index-
|
|
3
|
+
import { $t as SpawnHookContext, Bt as McpToolHookContext, D as SkillConfig, Dt as OpenAIParams, F as SessionRun, Ft as AgentRunOptions, Gt as PromptPart, Ht as OAuthRefreshHookContext, I as SessionStore, It as AgentStats, Jt as SessionContentBlock, Kt as PromptTextPart, Lt as ChildRunStats, M as CreateSessionOptions, N as Session, Nt as AgentBehavior, P as SessionData, Pt as AgentClock, Qt as SessionTurn, Rt as DEFAULT_AGENT_CLOCK, S as ReadStateMap, Ut as PromptDocumentPart, Wt as PromptImagePart, Xt as SessionHookContext, Yt as SessionEndStatus, Zt as SessionMessage, _n as ClassifiedError, an as ToolResultTextContent, b as ToolMap, bn as matchesContextExceeded, cn as toolOutputByteLength, ct as StreamCallbacks, dn as AgentBudgetExceededError, dt as ToolResult, en as StreamHookContext, fn as AgentContextExceededError, ft as ToolSpec, gn as CONTEXT_EXCEEDED_MESSAGE_PATTERNS, i as AgentOptions, in as ToolResultImageContent, j as SkillsConfig, jt as AnthropicParams, k as SkillResource, kt as CerebrasParams, ln as toolResultToText, lt as StreamOptions, mn as AgentToolNotAllowedError, nn as ToolHookContext, on as TurnFinishReason, ot as Provider, p as McpConnection, pn as AgentProviderError, pt as TurnResult, qt as RunHookMap, r as AgentHooks, rn as ToolResultContent, sn as TurnUsage, st as ProviderCapabilities, t as Agent, tn as ThinkingLevel, un as AgentAbortedError, ut as ToolCall, v as ToolContext, vn as ClassifiedErrorKind, x as ReadStateEntry, y as ToolDef, yt as OpenRouterParams, z as RemoteStoreOptions, zt as McpServerConfig } from "./agent-D70rr6Uk.js";
|
|
4
|
+
import { H as ModelUsage, L as InteractionToolOptions, S as SpawnToolState, U as flattenTurns, W as statsByModel, b as ChildAgent, h as ValidationResult, t as Preset, x as SpawnToolOptions } from "./index-DKpXHp1c.js";
|
|
5
5
|
export { type Agent, AgentAbortedError, type AgentBehavior, AgentBudgetExceededError, type AgentClock, AgentContextExceededError, type AgentHooks, type AgentOptions, AgentProviderError, type AgentRunOptions, type AgentStats, AgentToolNotAllowedError, type AnthropicParams, CONTEXT_EXCEEDED_MESSAGE_PATTERNS, type CerebrasParams, type ChildAgent, type ChildRunStats, type ClassifiedError, type ClassifiedErrorKind, type ContextCapabilities, type ContextType, type CreateSessionOptions, DEFAULT_AGENT_CLOCK, type ExecResult, type ExecutionContext, type ExecutionHandle, type InteractionToolOptions, type McpConnection, type McpServerConfig, type McpToolHookContext, type ModelUsage, type OAuthRefreshHookContext, type OpenAIParams, type OpenRouterParams, type Preset, type PromptDocumentPart, type PromptImagePart, type PromptPart, type PromptTextPart, type Provider, type ProviderCapabilities, type ReadStateEntry, type ReadStateMap, type RemoteStoreOptions, type RunHookMap, type SandboxProvider, type Session, type SessionContentBlock, type SessionData, type SessionEndStatus, type SessionHookContext, type SessionMessage, type SessionRun, type SessionStore, type SessionTurn, type SkillConfig, type SkillResource, type SkillsConfig, type SpawnConfig, type SpawnHookContext, type SpawnToolOptions, type SpawnToolState, type StreamCallbacks, type StreamHookContext, type StreamOptions, type ThinkingLevel, type ToolCall, type ToolContext, type ToolDef, type ToolHookContext, type ToolMap, type ToolResult, type ToolResultContent, type ToolResultImageContent, type ToolResultTextContent, type ToolSpec, type TurnFinishReason, type TurnResult, type TurnUsage, type ValidationResult, flattenTurns, matchesContextExceeded, statsByModel, toolOutputByteLength, toolResultToText };
|
package/docs/RESTATE.md
CHANGED
|
@@ -166,6 +166,22 @@ createAgent({
|
|
|
166
166
|
|
|
167
167
|
MCP servers re-bootstrap on every handler invocation (`warmup()` is lazy + idempotent); their tool *results* are journaled by `restateTool` so the model sees the same outputs on replay.
|
|
168
168
|
|
|
169
|
+
### Skills in worker/runner deployments
|
|
170
|
+
|
|
171
|
+
If the agent loop runs on a Restate worker but the skill files live on a separate runner (the `skills_read` / `skills_run_script` tools route file access through `ctx.execution`), pre-resolve the catalog on the worker and pass it via `SkillsConfig.catalog` instead of `scan` / `write`. The default disk discovery is bypassed — `parseSkillFile` is never called — so the worker never tries to `readFileSync` SKILL.md files that don't live on its disk.
|
|
172
|
+
|
|
173
|
+
```ts
|
|
174
|
+
createAgent({
|
|
175
|
+
// … wrappers as above
|
|
176
|
+
skills: {
|
|
177
|
+
skipDefaultPaths: true, // worker has no skill dirs of its own
|
|
178
|
+
catalog: hostProvidedCatalog, // pre-resolved by the worker bootstrap
|
|
179
|
+
},
|
|
180
|
+
})
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
`baseDir` / `location` on each catalog entry must point to paths resolvable on the runner (where `skills_read` / `skills_run_script` ultimately execute). Catalog entries seed resolution first and shadow disk-discovered skills on name collision — useful if a project still wants to layer `.zidane/skills/*` on top of a host-provided catalog.
|
|
184
|
+
|
|
169
185
|
## Failure modes
|
|
170
186
|
|
|
171
187
|
| Scenario | What happens |
|