zidane 5.11.0 → 5.11.2
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/README.md +5 -5
- package/dist/{agent-B7ilLoh8.d.ts → agent-D0W9yClt.d.ts} +52 -24
- package/dist/agent-D0W9yClt.d.ts.map +1 -0
- package/dist/chat/pure.d.ts +3 -3
- package/dist/chat.d.ts +7 -7
- package/dist/chat.js +2 -2
- package/dist/contexts/e2b.d.ts +1 -1
- package/dist/eval.d.ts +1 -1
- package/dist/eval.js +3 -3
- package/dist/eval.js.map +1 -1
- package/dist/{headless-CYHU4ZB-.js → headless-Bb5gU8AR.js} +5 -5
- package/dist/{headless-CYHU4ZB-.js.map → headless-Bb5gU8AR.js.map} +1 -1
- package/dist/headless.d.ts +1 -1
- package/dist/headless.js +1 -1
- package/dist/{index-CsRdmSh6.d.ts → index-D60tX5XC.d.ts} +2 -2
- package/dist/{index-CsRdmSh6.d.ts.map → index-D60tX5XC.d.ts.map} +1 -1
- package/dist/{index-C-zEbeFI.d.ts → index-DZR99FD4.d.ts} +19 -12
- package/dist/{index-C-zEbeFI.d.ts.map → index-DZR99FD4.d.ts.map} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +8 -8
- package/dist/{logger-Bd4Wn9Hc.d.ts → logger-n4LsLISE.d.ts} +2 -2
- package/dist/{logger-Bd4Wn9Hc.d.ts.map → logger-n4LsLISE.d.ts.map} +1 -1
- package/dist/{login-DVLJzf-S.js → login-BHhOdTp9.js} +3 -3
- package/dist/{login-DVLJzf-S.js.map → login-BHhOdTp9.js.map} +1 -1
- package/dist/{mcp-DPneQbw2.js → mcp-Cy9mgCcr.js} +2 -2
- package/dist/mcp-Cy9mgCcr.js.map +1 -0
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.js +1 -1
- package/dist/{messages-DJ7xdoUg.js → messages-RPKrEPvH.js} +2 -2
- package/dist/messages-RPKrEPvH.js.map +1 -0
- package/dist/output/stream-json.d.ts +2 -2
- package/dist/output/stream-json.js +1 -1
- package/dist/output/terminal.d.ts +2 -2
- package/dist/{presets-Q0yUDRA6.js → presets-D5ibZTml.js} +2 -2
- package/dist/{presets-Q0yUDRA6.js.map → presets-D5ibZTml.js.map} +1 -1
- package/dist/presets.d.ts +2 -2
- package/dist/presets.js +1 -1
- package/dist/{providers-BPdi7cUU.js → providers-C2cxujp_.js} +14 -11
- package/dist/providers-C2cxujp_.js.map +1 -0
- package/dist/providers.d.ts +1 -1
- package/dist/providers.js +2 -2
- package/dist/restate.d.ts +1 -1
- package/dist/session/sqlite.d.ts +1 -1
- package/dist/{session-D4GckETs.js → session-Do_TQV7c.js} +3 -3
- package/dist/session-Do_TQV7c.js.map +1 -0
- package/dist/session.d.ts +1 -1
- package/dist/session.js +2 -2
- package/dist/skills.d.ts +2 -2
- package/dist/{tool-formatters-DXO8rGut.d.ts → tool-formatters-RT5-gyE2.d.ts} +2 -2
- package/dist/{tool-formatters-DXO8rGut.d.ts.map → tool-formatters-RT5-gyE2.d.ts.map} +1 -1
- package/dist/tools/fetch-url.d.ts +1 -1
- package/dist/tools/web-search.d.ts +1 -1
- package/dist/{tools-DqNkGwfd.js → tools-ZHKOh44k.js} +266 -54
- package/dist/tools-ZHKOh44k.js.map +1 -0
- package/dist/tools.d.ts +2 -2
- package/dist/tools.js +1 -1
- package/dist/{transcript-anchors-C3tVPR5n.js → transcript-anchors-0zzqcSm5.js} +111 -9
- package/dist/transcript-anchors-0zzqcSm5.js.map +1 -0
- package/dist/{transcript-anchors-p-ZsBSEF.d.ts → transcript-anchors-B4FxkG-8.d.ts} +4 -4
- package/dist/{transcript-anchors-p-ZsBSEF.d.ts.map → transcript-anchors-B4FxkG-8.d.ts.map} +1 -1
- package/dist/tui.d.ts +3 -3
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +24 -8
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-DD1D5VFx.d.ts → turn-operations-CoRj3mYZ.d.ts} +3 -3
- package/dist/{turn-operations-DD1D5VFx.d.ts.map → turn-operations-CoRj3mYZ.d.ts.map} +1 -1
- package/dist/types-BiobHM1D.js.map +1 -1
- package/dist/types.d.ts +2 -2
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/CHAT.md +3 -3
- package/docs/SKILL.md +3 -3
- package/package.json +1 -1
- package/dist/agent-B7ilLoh8.d.ts.map +0 -1
- package/dist/mcp-DPneQbw2.js.map +0 -1
- package/dist/messages-DJ7xdoUg.js.map +0 -1
- package/dist/providers-BPdi7cUU.js.map +0 -1
- package/dist/session-D4GckETs.js.map +0 -1
- package/dist/tools-DqNkGwfd.js.map +0 -1
- package/dist/transcript-anchors-C3tVPR5n.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { A as PERSISTENCE_PREVIEW_BYTES, C as stableStringify, D as TOOL_USE_SKIPPED_MESSAGE, E as TOOL_USE_CANCELLED_MESSAGE, F as resolvePersistDir, I as resolveTasksDir, M as cleanupPersistedSession, N as maybePersistToolResult, O as validateToolArgs, S as normalizeShellCommand, T as SHELL_CASCADE_CANCEL_MESSAGE, _ as createSkillsReadTool, a as multiEdit, b as defaultRepeatGuardNormalize, c as grep, d as createAgent, g as createSkillsRunScriptTool, h as createSkillsUseTool, j as buildPersistedStub, k as PERSISTED_STUB_PREFIX, l as glob, n as createSpawnTool, p as waitTask, s as createInteractionTool, u as edit, v as createShellTool, w as INTERRUPT_MESSAGE_FOR_TOOL_USE, x as defaultRepeatGuardTracked } from "./tools-
|
|
1
|
+
import { A as PERSISTENCE_PREVIEW_BYTES, C as stableStringify, D as TOOL_USE_SKIPPED_MESSAGE, E as TOOL_USE_CANCELLED_MESSAGE, F as resolvePersistDir, I as resolveTasksDir, M as cleanupPersistedSession, N as maybePersistToolResult, O as validateToolArgs, S as normalizeShellCommand, T as SHELL_CASCADE_CANCEL_MESSAGE, _ as createSkillsReadTool, a as multiEdit, b as defaultRepeatGuardNormalize, c as grep, d as createAgent, g as createSkillsRunScriptTool, h as createSkillsUseTool, j as buildPersistedStub, k as PERSISTED_STUB_PREFIX, l as glob, n as createSpawnTool, p as waitTask, s as createInteractionTool, u as edit, v as createShellTool, w as INTERRUPT_MESSAGE_FOR_TOOL_USE, x as defaultRepeatGuardTracked } from "./tools-ZHKOh44k.js";
|
|
2
2
|
import { n as estimateTokens, r as utf8ByteLength, t as BYTES_PER_TOKEN } from "./utils-ngQzYzZD.js";
|
|
3
|
-
import { c as baseten, d as anthropic, f as applyAnthropicCacheBreakpoints, n as openai, r as local, s as cerebras, t as openrouter, u as arcee } from "./providers-
|
|
3
|
+
import { c as baseten, d as anthropic, f as applyAnthropicCacheBreakpoints, n as openai, r as local, s as cerebras, t as openrouter, u as arcee } from "./providers-C2cxujp_.js";
|
|
4
4
|
import { a as AgentToolNotAllowedError, d as matchesContextExceeded, i as AgentProviderError, l as errorMessage, n as AgentBudgetExceededError, o as AgentToolPairingError, p as toTypedError, r as AgentContextExceededError, s as CONTEXT_EXCEEDED_MESSAGE_PATTERNS, t as AgentAbortedError } from "./errors-DkR6GPJw.js";
|
|
5
|
-
import { A as renderSystemForWire, C as sanitizeToolSpecs, D as appendStaticSection, E as appendDynamicSection, M as splitSystemPrompt, O as hasSystemPromptBoundary, S as sanitizeToolSchema, T as SYSTEM_PROMPT_BOUNDARY, _ as classifyOpenAICompatError, a as detectTurnInterruption, c as filterUnresolvedToolUses, d as remintDuplicateToolCallIds, f as toAnthropic, h as OpenAICompatHttpError, i as autoDetectAndConvert, j as replaceDynamicSection, k as joinSystemPrompt, l as fromAnthropic, m as toWireMessages, n as SYNTHETIC_TOOL_RESULT_PLACEHOLDER, o as ensureEndsWithUserMessage, p as toOpenAI, r as TOOL_USE_INTERRUPTED_MARKER, s as ensureToolResultPairing, t as ORPHANED_TOOL_RESULT_MARKER, u as fromOpenAI, v as mapOAIFinishReason, y as openaiCompat } from "./messages-
|
|
5
|
+
import { A as renderSystemForWire, C as sanitizeToolSpecs, D as appendStaticSection, E as appendDynamicSection, M as splitSystemPrompt, O as hasSystemPromptBoundary, S as sanitizeToolSchema, T as SYSTEM_PROMPT_BOUNDARY, _ as classifyOpenAICompatError, a as detectTurnInterruption, c as filterUnresolvedToolUses, d as remintDuplicateToolCallIds, f as toAnthropic, h as OpenAICompatHttpError, i as autoDetectAndConvert, j as replaceDynamicSection, k as joinSystemPrompt, l as fromAnthropic, m as toWireMessages, n as SYNTHETIC_TOOL_RESULT_PLACEHOLDER, o as ensureEndsWithUserMessage, p as toOpenAI, r as TOOL_USE_INTERRUPTED_MARKER, s as ensureToolResultPairing, t as ORPHANED_TOOL_RESULT_MARKER, u as fromOpenAI, v as mapOAIFinishReason, y as openaiCompat } from "./messages-RPKrEPvH.js";
|
|
6
6
|
import { a as toolResultToText, i as toolOutputByteLength, r as toolOutputBudgetByteLength } from "./types-BiobHM1D.js";
|
|
7
7
|
import { n as createSandboxContext, r as createProcessContext, t as resolveDetachedTasksCapability } from "./contexts-DglWSzmR.js";
|
|
8
8
|
import { o as readStateKey, s as resolveReadStateMap, t as getReadState } from "./read-state-BFqpQRc5.js";
|
|
9
9
|
import { _ as validateResourcePath, a as writeSkillsToDisk, b as validateSkillName, d as buildCatalog, f as IMPLICITLY_ALLOWED_SKILL_TOOLS, g as parseAllowedToolPattern, h as matchesAllowedTool, i as writeSkillToDisk, m as isToolAllowedByUnion, n as stripShellInterpolations, o as discoverSkills, p as installAllowedToolsGate, r as resolveSkills, t as interpolateShellCommands, u as parseSkillFile, v as validateResourcePathReal, x as createSkillActivationState, y as validateSkillForWrite } from "./interpolate-CTfr0GdR.js";
|
|
10
|
-
import { a as resultToString, c as McpOAuthProvider, i as normalizeMcpServers, l as createMemoryMcpCredentialStore, n as connectMcpServers, r as normalizeMcpBlocks, u as hasAuthorizationHeader } from "./mcp-
|
|
10
|
+
import { a as resultToString, c as McpOAuthProvider, i as normalizeMcpServers, l as createMemoryMcpCredentialStore, n as connectMcpServers, r as normalizeMcpBlocks, u as hasAuthorizationHeader } from "./mcp-Cy9mgCcr.js";
|
|
11
11
|
import { i as statsByModel, n as flattenTurns } from "./stats-DAKBEKjc.js";
|
|
12
|
-
import { C as CompactPromptTooLongError, S as CompactInvalidInputError, _ as anchorPreviewFor, a as selectFilesFromSession, b as summaryToTurn, c as BASE_INSTRUCTIONS, d as buildCompactPrompt, f as buildFromCompactPrompt, g as ANCHOR_PREVIEW_MAX_CHARS, h as buildUpToCompactPrompt, i as selectFilesFromReadState, l as NO_TOOLS_PREAMBLE, m as buildTailCompactPrompt, n as startOAuthCallback, o as selectRecentFiles, p as buildFullCompactPrompt, r as buildPostCompactAttachments, s as compactConversation, t as loginMcpServer, u as TRAILER, v as sliceForCompaction, x as truncateHeadForPtlRetry, y as stripImagesFromTurns } from "./login-
|
|
13
|
-
import { i as basic_default, n as definePreset, r as basicTools } from "./presets-
|
|
14
|
-
import { a as headlessEventToJsonl, c as runHeadless, d as createRunSummaryCollector, l as transcriptToOpenAIMessages } from "./headless-
|
|
15
|
-
import { a as createMemoryStore, i as createRemoteStore, o as createFileMapStore, r as loadSession, t as createSession } from "./session-
|
|
12
|
+
import { C as CompactPromptTooLongError, S as CompactInvalidInputError, _ as anchorPreviewFor, a as selectFilesFromSession, b as summaryToTurn, c as BASE_INSTRUCTIONS, d as buildCompactPrompt, f as buildFromCompactPrompt, g as ANCHOR_PREVIEW_MAX_CHARS, h as buildUpToCompactPrompt, i as selectFilesFromReadState, l as NO_TOOLS_PREAMBLE, m as buildTailCompactPrompt, n as startOAuthCallback, o as selectRecentFiles, p as buildFullCompactPrompt, r as buildPostCompactAttachments, s as compactConversation, t as loginMcpServer, u as TRAILER, v as sliceForCompaction, x as truncateHeadForPtlRetry, y as stripImagesFromTurns } from "./login-BHhOdTp9.js";
|
|
13
|
+
import { i as basic_default, n as definePreset, r as basicTools } from "./presets-D5ibZTml.js";
|
|
14
|
+
import { a as headlessEventToJsonl, c as runHeadless, d as createRunSummaryCollector, l as transcriptToOpenAIMessages } from "./headless-Bb5gU8AR.js";
|
|
15
|
+
import { a as createMemoryStore, i as createRemoteStore, o as createFileMapStore, r as loadSession, t as createSession } from "./session-Do_TQV7c.js";
|
|
16
16
|
import { EFFICIENCY_METRICS, EvalMetricError, artifactPath, buildEvalRunSummary, buildRegisteredEvals, buildTrajectory, clearRegisteredEvals, computeEvalTagScores, createEvalAgent, createEvalRunReporter, createReusableExecutionContext, defineEval, defineMetrics, efficiencyMetricValues, emitEfficiencyMetrics, fileContains, fileContentQuality, fileExists, fileExistsOneOf, finalizeEvalMetrics, formatEvalCaseSummary, formatEvalRunSummary, formatTrajectoryLine, functionalityMetric, llmJudge, normalizeMetric, registerEvalTests, relativeArtifactPath, runEvalCase, statusCompleted } from "./eval.js";
|
|
17
17
|
import { i as jsonSink, n as createLogger, r as createLoggingHooks, t as consoleSink } from "./logger-Ktm-lj1s.js";
|
|
18
18
|
import { defineSkill } from "./skills.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as AgentHooks } from "./agent-
|
|
1
|
+
import { r as AgentHooks } from "./agent-D0W9yClt.js";
|
|
2
2
|
import { Hookable } from "hookable";
|
|
3
3
|
|
|
4
4
|
//#region src/logger.d.ts
|
|
@@ -99,4 +99,4 @@ interface LoggingHookSet {
|
|
|
99
99
|
declare function createLoggingHooks(options: LoggingHooksOptions): LoggingHookSet;
|
|
100
100
|
//#endregion
|
|
101
101
|
export { Logger as a, consoleSink as c, jsonSink as d, LogSink as i, createLogger as l, LogLevel as n, LoggingHookSet as o, LogRecord as r, LoggingHooksOptions as s, ConsoleSinkOptions as t, createLoggingHooks as u };
|
|
102
|
-
//# sourceMappingURL=logger-
|
|
102
|
+
//# sourceMappingURL=logger-n4LsLISE.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger-
|
|
1
|
+
{"version":3,"file":"logger-n4LsLISE.d.ts","names":[],"sources":["../src/logger.ts"],"mappings":";;;;KAgCY,QAAA;AAAA,UAEK,SAAA;EACf,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o as ensureEndsWithUserMessage, s as ensureToolResultPairing } from "./messages-
|
|
2
|
+
import { o as ensureEndsWithUserMessage, s as ensureToolResultPairing } from "./messages-RPKrEPvH.js";
|
|
3
3
|
import { i as toolOutputByteLength } from "./types-BiobHM1D.js";
|
|
4
4
|
import { t as getReadState } from "./read-state-BFqpQRc5.js";
|
|
5
|
-
import { c as McpOAuthProvider, o as createTolerantClient, s as sseToJsonFetchIfNeeded } from "./mcp-
|
|
5
|
+
import { c as McpOAuthProvider, o as createTolerantClient, s as sseToJsonFetchIfNeeded } from "./mcp-Cy9mgCcr.js";
|
|
6
6
|
import { createServer } from "node:http";
|
|
7
7
|
//#region src/compact/errors.ts
|
|
8
8
|
/**
|
|
@@ -1218,4 +1218,4 @@ async function raceLoginCallback(handle, timeoutMs, signal) {
|
|
|
1218
1218
|
//#endregion
|
|
1219
1219
|
export { CompactPromptTooLongError as C, CompactInvalidInputError as S, anchorPreviewFor as _, selectFilesFromSession as a, summaryToTurn as b, BASE_INSTRUCTIONS as c, buildCompactPrompt as d, buildFromCompactPrompt as f, ANCHOR_PREVIEW_MAX_CHARS as g, buildUpToCompactPrompt as h, selectFilesFromReadState as i, NO_TOOLS_PREAMBLE as l, buildTailCompactPrompt as m, startOAuthCallback as n, selectRecentFiles as o, buildFullCompactPrompt as p, buildPostCompactAttachments as r, compactConversation as s, loginMcpServer as t, TRAILER as u, sliceForCompaction as v, truncateHeadForPtlRetry as x, stripImagesFromTurns as y };
|
|
1220
1220
|
|
|
1221
|
-
//# sourceMappingURL=login-
|
|
1221
|
+
//# sourceMappingURL=login-BHhOdTp9.js.map
|