zidane 5.8.5 → 5.9.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 +3 -1
- package/dist/{agent-CL4nT5Ti.d.ts → agent-CDFbxbHd.d.ts} +46 -15
- package/dist/agent-CDFbxbHd.d.ts.map +1 -0
- package/dist/chat/pure.d.ts +3 -3
- package/dist/chat.d.ts +6 -6
- package/dist/chat.js +2 -2
- package/dist/contexts/docker.d.ts +1 -1
- package/dist/contexts/docker.js +11 -0
- package/dist/contexts/docker.js.map +1 -1
- package/dist/contexts.d.ts +3 -3
- package/dist/eval.d.ts +2 -0
- package/dist/eval.js +1323 -0
- package/dist/eval.js.map +1 -0
- package/dist/{headless-c7MDO-iF.js → headless-C596K-Lk.js} +3 -3
- package/dist/{headless-c7MDO-iF.js.map → headless-C596K-Lk.js.map} +1 -1
- package/dist/headless.d.ts +1 -1
- package/dist/headless.js +1 -1
- package/dist/{index-CZOwAJIX.d.ts → index-ClYUGpmF.d.ts} +2 -2
- package/dist/{index-CZOwAJIX.d.ts.map → index-ClYUGpmF.d.ts.map} +1 -1
- package/dist/{index-DtLfTUXt.d.ts → index-DWw_PtJH.d.ts} +3 -3
- package/dist/{index-DtLfTUXt.d.ts.map → index-DWw_PtJH.d.ts.map} +1 -1
- package/dist/{index-BDMVtgHD.d.ts → index-D_i2Nhts.d.ts} +446 -4
- package/dist/index-D_i2Nhts.d.ts.map +1 -0
- package/dist/index.d.ts +6 -6
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/{login-DYQ6LgLP.js → login-Ujwd1HEb.js} +2 -2
- package/dist/{login-DYQ6LgLP.js.map → login-Ujwd1HEb.js.map} +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/{presets-6SoIBrzL.js → presets-ga6dMRVd.js} +2 -2
- package/dist/{presets-6SoIBrzL.js.map → presets-ga6dMRVd.js.map} +1 -1
- package/dist/presets.d.ts +2 -2
- package/dist/presets.js +1 -1
- package/dist/{providers-ByITfqRA.js → providers-CezC9my7.js} +29 -3
- package/dist/providers-CezC9my7.js.map +1 -0
- package/dist/providers.d.ts +1 -1
- package/dist/providers.js +1 -1
- package/dist/restate.d.ts +67 -4
- package/dist/restate.d.ts.map +1 -1
- package/dist/restate.js +226 -25
- package/dist/restate.js.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/{tool-formatters-D-aWpu2N.d.ts → tool-formatters-B3fSafpr.d.ts} +2 -2
- package/dist/{tool-formatters-D-aWpu2N.d.ts.map → tool-formatters-B3fSafpr.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-DOUtulS5.js → tools-CAdllmWO.js} +402 -9
- package/dist/tools-CAdllmWO.js.map +1 -0
- package/dist/tools.d.ts +2 -2
- package/dist/tools.js +1 -1
- package/dist/{transcript-anchors-DYsnGyel.d.ts → transcript-anchors-BHVVVhR0.d.ts} +4 -4
- package/dist/{transcript-anchors-DYsnGyel.d.ts.map → transcript-anchors-BHVVVhR0.d.ts.map} +1 -1
- package/dist/{transcript-anchors-B2h3qt3S.js → transcript-anchors-DFknQ4ew.js} +4 -4
- package/dist/{transcript-anchors-B2h3qt3S.js.map → transcript-anchors-DFknQ4ew.js.map} +1 -1
- package/dist/tui.d.ts +3 -3
- package/dist/tui.js +3 -3
- package/dist/{turn-operations-D-fypW6K.d.ts → turn-operations-BMxugnqg.d.ts} +3 -3
- package/dist/{turn-operations-D-fypW6K.d.ts.map → turn-operations-BMxugnqg.d.ts.map} +1 -1
- package/dist/types-BPw_i5vb.js.map +1 -1
- package/dist/{types-CEAMIUXw.d.ts → types-CB1J-DQw.d.ts} +14 -2
- package/dist/types-CB1J-DQw.d.ts.map +1 -0
- package/dist/types.d.ts +4 -4
- package/docs/RESTATE.md +75 -19
- package/docs/SKILL.md +2 -2
- package/package.json +15 -3
- package/scripts/eval.ts +140 -0
- package/dist/agent-CL4nT5Ti.d.ts.map +0 -1
- package/dist/index-BDMVtgHD.d.ts.map +0 -1
- package/dist/providers-ByITfqRA.js.map +0 -1
- package/dist/tools-DOUtulS5.js.map +0 -1
- package/dist/types-CEAMIUXw.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Kt as AgentStats, L as SessionStore, O as SkillConfig, P as Session, Qt as McpServerConfig, Tn as TurnUsage, _n as ThinkingLevel, b as ToolDef, i as AgentOptions, in as PromptPart, l as SkillActivationState, mn as SessionTurn, pt as StreamOptions, qt as ChildRunStats, r as AgentHooks, s as ActiveSkill, ut as Provider, wn as TurnFinishReason, xn as ToolResultContent, y as ToolContext } from "./agent-CDFbxbHd.js";
|
|
2
|
+
import { o as ExecutionContext, s as ExecutionHandle } from "./types-CB1J-DQw.js";
|
|
3
3
|
import { Hookable } from "hookable";
|
|
4
4
|
import { OAuthClientProvider, OAuthDiscoveryState } from "@modelcontextprotocol/sdk/client/auth.js";
|
|
5
5
|
import { OAuthClientInformationMixed, OAuthClientMetadata, OAuthTokens } from "@modelcontextprotocol/sdk/shared/auth.js";
|
|
@@ -1349,6 +1349,448 @@ interface OpenAIChatMessage {
|
|
|
1349
1349
|
*/
|
|
1350
1350
|
declare function transcriptToOpenAIMessages(turns: SessionTurn[]): OpenAIChatMessage[];
|
|
1351
1351
|
//#endregion
|
|
1352
|
+
//#region src/eval.d.ts
|
|
1353
|
+
interface EvalWorkspaceOptions {
|
|
1354
|
+
/**
|
|
1355
|
+
* Working directory inside the execution context. When omitted, process-based
|
|
1356
|
+
* evals get a fresh host temp dir; Docker evals use the context default.
|
|
1357
|
+
*
|
|
1358
|
+
* Note: under the shared-Docker harness (`withDocker`), per-case working dirs
|
|
1359
|
+
* are assigned by the container (`/workspace/case-N`) and a custom `cwd` is
|
|
1360
|
+
* ignored — `withDocker` strips it so cases stay isolated.
|
|
1361
|
+
*/
|
|
1362
|
+
cwd?: string;
|
|
1363
|
+
/**
|
|
1364
|
+
* Directory visible inside the execution context, copied into the workspace
|
|
1365
|
+
* before the agent runs. For Docker, mount local fixtures read-only and point
|
|
1366
|
+
* this at the container path, e.g. `/fixtures/react-empty`.
|
|
1367
|
+
*/
|
|
1368
|
+
seedDir?: string;
|
|
1369
|
+
/** Relative destination inside the workspace. Defaults to `.`. */
|
|
1370
|
+
seedTarget?: string;
|
|
1371
|
+
/** Relative files/directories to capture after the run. Defaults to `.`. */
|
|
1372
|
+
capture?: string[];
|
|
1373
|
+
/** Max text chars retained per captured file. Defaults to 256 KiB. */
|
|
1374
|
+
maxFileChars?: number;
|
|
1375
|
+
/** Keep a temp process workspace on disk after the eval completes. */
|
|
1376
|
+
retain?: boolean;
|
|
1377
|
+
}
|
|
1378
|
+
interface EvalWorkspaceFile {
|
|
1379
|
+
path: string;
|
|
1380
|
+
size: number;
|
|
1381
|
+
content?: string;
|
|
1382
|
+
truncated?: boolean;
|
|
1383
|
+
binary?: boolean;
|
|
1384
|
+
}
|
|
1385
|
+
interface EvalWorkspaceSnapshot {
|
|
1386
|
+
cwd: string;
|
|
1387
|
+
files: EvalWorkspaceFile[];
|
|
1388
|
+
}
|
|
1389
|
+
interface EvalScore {
|
|
1390
|
+
name: string;
|
|
1391
|
+
passed: boolean;
|
|
1392
|
+
score?: number;
|
|
1393
|
+
details?: string | Record<string, unknown>;
|
|
1394
|
+
}
|
|
1395
|
+
type MetricDirection = 'higher-is-better' | 'lower-is-better';
|
|
1396
|
+
/** Declared metric: a raw signal plus how to normalize it to a `0..1` score. */
|
|
1397
|
+
interface MetricSpec {
|
|
1398
|
+
min: number;
|
|
1399
|
+
max: number;
|
|
1400
|
+
direction: MetricDirection;
|
|
1401
|
+
/** Grouping tags, e.g. `@efficiency`, `@functionality`, `@quality`. */
|
|
1402
|
+
tags?: string[];
|
|
1403
|
+
description?: string;
|
|
1404
|
+
}
|
|
1405
|
+
type MetricSpecMap = Record<string, MetricSpec>;
|
|
1406
|
+
/** A normalized metric value attached to one eval case. */
|
|
1407
|
+
interface EvalMetric {
|
|
1408
|
+
id: string;
|
|
1409
|
+
raw: number;
|
|
1410
|
+
normalized: number;
|
|
1411
|
+
direction: MetricDirection;
|
|
1412
|
+
min: number;
|
|
1413
|
+
max: number;
|
|
1414
|
+
tags: string[];
|
|
1415
|
+
description?: string;
|
|
1416
|
+
/**
|
|
1417
|
+
* True when the metric was declared but never emitted (e.g. its scorer threw
|
|
1418
|
+
* before calling `ctx.metric`). Recorded as `normalized: 0` so the run still
|
|
1419
|
+
* produces results instead of crashing.
|
|
1420
|
+
*/
|
|
1421
|
+
missing?: boolean;
|
|
1422
|
+
}
|
|
1423
|
+
/** Emit a raw metric value during a run. */
|
|
1424
|
+
type MetricEmitter = (id: string, raw: number) => void;
|
|
1425
|
+
interface EvalScorerContext {
|
|
1426
|
+
id: string;
|
|
1427
|
+
suite?: string;
|
|
1428
|
+
tags: string[];
|
|
1429
|
+
result: HeadlessResult;
|
|
1430
|
+
events: readonly HeadlessEvent[];
|
|
1431
|
+
workspace?: EvalWorkspaceSnapshot;
|
|
1432
|
+
artifactDir?: string;
|
|
1433
|
+
/** Emit a declared metric's raw value. Unknown ids throw at run end. */
|
|
1434
|
+
metric: MetricEmitter;
|
|
1435
|
+
}
|
|
1436
|
+
type EvalScorer = (ctx: EvalScorerContext) => EvalScore | Promise<EvalScore>;
|
|
1437
|
+
/**
|
|
1438
|
+
* Declare an eval's metric set. Returns the same map, typed; pass it to
|
|
1439
|
+
* `EvalCaseOptions.metrics`. Declared metrics that are not emitted are recorded
|
|
1440
|
+
* as missing with a normalized score of 0; emitting an undeclared metric is an
|
|
1441
|
+
* authoring error and throws.
|
|
1442
|
+
*/
|
|
1443
|
+
declare function defineMetrics<T extends MetricSpecMap>(spec: T): T;
|
|
1444
|
+
/** Always-available efficiency metrics derived from `HeadlessResult`. */
|
|
1445
|
+
declare const EFFICIENCY_METRICS: {
|
|
1446
|
+
'execution-time': {
|
|
1447
|
+
min: number;
|
|
1448
|
+
max: number;
|
|
1449
|
+
direction: "lower-is-better";
|
|
1450
|
+
tags: string[];
|
|
1451
|
+
description: string;
|
|
1452
|
+
};
|
|
1453
|
+
'provider-tokens': {
|
|
1454
|
+
min: number;
|
|
1455
|
+
max: number;
|
|
1456
|
+
direction: "lower-is-better";
|
|
1457
|
+
tags: string[];
|
|
1458
|
+
description: string;
|
|
1459
|
+
};
|
|
1460
|
+
'cache-read-rate': {
|
|
1461
|
+
min: number;
|
|
1462
|
+
max: number;
|
|
1463
|
+
direction: "higher-is-better";
|
|
1464
|
+
tags: string[];
|
|
1465
|
+
description: string;
|
|
1466
|
+
};
|
|
1467
|
+
};
|
|
1468
|
+
declare function normalizeMetric(raw: number, spec: MetricSpec): number;
|
|
1469
|
+
interface LlmJudgeOptions {
|
|
1470
|
+
name?: string;
|
|
1471
|
+
provider: Provider;
|
|
1472
|
+
model?: string;
|
|
1473
|
+
system?: string;
|
|
1474
|
+
rubric: string;
|
|
1475
|
+
maxTokens?: number;
|
|
1476
|
+
/** Wall-clock cap for the judge provider call. Defaults to 60s. */
|
|
1477
|
+
timeoutMs?: number;
|
|
1478
|
+
/** Select what the judge sees. Defaults to final text plus captured workspace files. */
|
|
1479
|
+
input?: (ctx: EvalScorerContext) => string;
|
|
1480
|
+
/** Declared metric id to emit the judge's `0..1` score into. */
|
|
1481
|
+
metric?: string;
|
|
1482
|
+
}
|
|
1483
|
+
/**
|
|
1484
|
+
* Thrown by `runEvalCase` when a scorer emits a metric id that was not declared
|
|
1485
|
+
* in `defineMetrics`. This is an authoring error (a typo'd or stale metric id),
|
|
1486
|
+
* not a low score — it fails the eval test rather than being recorded as a
|
|
1487
|
+
* failed scorer. Exported so downstream harnesses can type-narrow on it.
|
|
1488
|
+
*/
|
|
1489
|
+
declare class EvalMetricError extends Error {
|
|
1490
|
+
constructor(message: string);
|
|
1491
|
+
}
|
|
1492
|
+
interface ReusableExecutionContext {
|
|
1493
|
+
/**
|
|
1494
|
+
* Execution context facade that reuses one underlying handle. Its
|
|
1495
|
+
* `destroy()` is intentionally a no-op; call `dispose()` when the surrounding
|
|
1496
|
+
* fixture/run owns teardown.
|
|
1497
|
+
*/
|
|
1498
|
+
execution: ExecutionContext;
|
|
1499
|
+
/** Destroy the underlying handle if it was spawned. Idempotent. */
|
|
1500
|
+
dispose: () => Promise<void>;
|
|
1501
|
+
/** Current underlying handle, if the agent has spawned one. */
|
|
1502
|
+
handle: () => ExecutionHandle | undefined;
|
|
1503
|
+
}
|
|
1504
|
+
/**
|
|
1505
|
+
* Wrap an execution context so repeated agent runs share one handle until the
|
|
1506
|
+
* caller disposes it. This is useful for eval fixtures that want per-test
|
|
1507
|
+
* Docker/process lifetime while still using `runHeadless()` per turn.
|
|
1508
|
+
*/
|
|
1509
|
+
declare function createReusableExecutionContext(base: ExecutionContext): ReusableExecutionContext;
|
|
1510
|
+
interface EvalAgentRunStats extends EvalRunUsage {
|
|
1511
|
+
durationMs: number;
|
|
1512
|
+
turns: number;
|
|
1513
|
+
toolCalls: number;
|
|
1514
|
+
}
|
|
1515
|
+
interface EvalAgentStats extends EvalRunUsage {
|
|
1516
|
+
/** Number of completed `run()` calls. */
|
|
1517
|
+
runs: number;
|
|
1518
|
+
/** Sum of per-run agent turns. */
|
|
1519
|
+
turns: number;
|
|
1520
|
+
/** Sum of per-run tool calls. */
|
|
1521
|
+
toolCalls: number;
|
|
1522
|
+
/** Sum of per-run wall-clock durations. */
|
|
1523
|
+
durationMs: number;
|
|
1524
|
+
}
|
|
1525
|
+
interface EvalAgentRunResult {
|
|
1526
|
+
/** Full headless result. Its transcript is the full session view. */
|
|
1527
|
+
result: HeadlessResult;
|
|
1528
|
+
/** Per-run usage and trajectory counters. */
|
|
1529
|
+
stats: EvalAgentRunStats;
|
|
1530
|
+
/** Transcript turns added by this run. */
|
|
1531
|
+
newTranscript: SessionTurn[];
|
|
1532
|
+
}
|
|
1533
|
+
type EvalAgentMcpServers = readonly McpServerConfig[] | (() => readonly McpServerConfig[] | Promise<readonly McpServerConfig[]>);
|
|
1534
|
+
interface CreateEvalAgentOptions extends Omit<HeadlessOptions, 'prompt' | 'provider' | 'execution' | 'cwd' | 'session' | 'store' | 'mcpServers' | 'onEvent' | 'signal'> {
|
|
1535
|
+
provider: Provider;
|
|
1536
|
+
/**
|
|
1537
|
+
* Working directory for the default process context. Ignored when
|
|
1538
|
+
* `execution` is supplied.
|
|
1539
|
+
*/
|
|
1540
|
+
cwd?: string;
|
|
1541
|
+
/**
|
|
1542
|
+
* Execution context for agent tools. Wrapped with
|
|
1543
|
+
* `createReusableExecutionContext` so runs share one handle until `dispose`.
|
|
1544
|
+
*/
|
|
1545
|
+
execution?: ExecutionContext;
|
|
1546
|
+
/** Session to reuse across runs. When omitted, one in-memory session is created. */
|
|
1547
|
+
session?: Session;
|
|
1548
|
+
/** Store used for the auto-created session. Defaults to an in-memory store. */
|
|
1549
|
+
store?: SessionStore;
|
|
1550
|
+
/** Static or lazily resolved MCP servers. Resolved fresh before each run. */
|
|
1551
|
+
mcpServers?: EvalAgentMcpServers;
|
|
1552
|
+
/** Live event callback for every run. */
|
|
1553
|
+
onEvent?: (event: HeadlessEvent) => void;
|
|
1554
|
+
}
|
|
1555
|
+
interface EvalAgentRunOptions extends Omit<HeadlessOptions, 'provider' | 'execution' | 'cwd' | 'session' | 'store'> {
|
|
1556
|
+
prompt: HeadlessOptions['prompt'];
|
|
1557
|
+
}
|
|
1558
|
+
interface EvalAgent {
|
|
1559
|
+
run: (options: EvalAgentRunOptions) => Promise<EvalAgentRunResult>;
|
|
1560
|
+
readonly stats: EvalAgentStats;
|
|
1561
|
+
session: () => Promise<Session>;
|
|
1562
|
+
dispose: () => Promise<void>;
|
|
1563
|
+
[Symbol.asyncDispose]: () => Promise<void>;
|
|
1564
|
+
}
|
|
1565
|
+
/**
|
|
1566
|
+
* Multi-turn eval agent over the low-level headless runner. It keeps session
|
|
1567
|
+
* and execution lifetime outside any Playwright/Bolt-specific fixture layer,
|
|
1568
|
+
* so downstream platforms can wrap it with their own `agent.run(...)` shape.
|
|
1569
|
+
*/
|
|
1570
|
+
declare function createEvalAgent(options: CreateEvalAgentOptions): EvalAgent;
|
|
1571
|
+
type TrajectoryStepKind = 'think' | 'text' | 'tool';
|
|
1572
|
+
/**
|
|
1573
|
+
* One grouped step in an eval trajectory. Consecutive blocks of the same kind
|
|
1574
|
+
* (and, for tools, the same tool name) collapse into a single step with a
|
|
1575
|
+
* `count`. A different kind interrupting the run breaks the group.
|
|
1576
|
+
*
|
|
1577
|
+
* Serializable by design so trajectories round-trip to disk and can be diffed
|
|
1578
|
+
* or replayed by other tooling.
|
|
1579
|
+
*/
|
|
1580
|
+
interface TrajectoryStep {
|
|
1581
|
+
kind: TrajectoryStepKind;
|
|
1582
|
+
/** Tool name for `kind: 'tool'` steps (canonical, e.g. `read_file`). */
|
|
1583
|
+
name?: string;
|
|
1584
|
+
/** Number of consecutive occurrences grouped into this step. */
|
|
1585
|
+
count: number;
|
|
1586
|
+
/** Approx wall-clock ms attributed to this step's turns, when derivable. */
|
|
1587
|
+
durationMs?: number;
|
|
1588
|
+
}
|
|
1589
|
+
interface Trajectory {
|
|
1590
|
+
steps: TrajectoryStep[];
|
|
1591
|
+
/** Total blocks across all steps (sum of `count`). */
|
|
1592
|
+
totalBlocks: number;
|
|
1593
|
+
}
|
|
1594
|
+
/**
|
|
1595
|
+
* Build an ordered, grouped trajectory from a transcript. Walks assistant
|
|
1596
|
+
* turns in order, emitting `think` / `text` / `tool:<name>` steps, grouping
|
|
1597
|
+
* only consecutive identical kinds. Per-step duration is approximated from the
|
|
1598
|
+
* owning turn's `createdAt` delta to the next turn.
|
|
1599
|
+
*/
|
|
1600
|
+
declare function buildTrajectory(transcript: SessionTurn[]): Trajectory;
|
|
1601
|
+
/** Render a trajectory as a one-line timeline string (no color). */
|
|
1602
|
+
declare function formatTrajectoryLine(trajectory: Trajectory): string;
|
|
1603
|
+
interface EvalArtifacts {
|
|
1604
|
+
dir: string;
|
|
1605
|
+
result?: string;
|
|
1606
|
+
events?: string;
|
|
1607
|
+
transcript?: string;
|
|
1608
|
+
workspace?: string;
|
|
1609
|
+
}
|
|
1610
|
+
interface EvalCaseResult {
|
|
1611
|
+
id: string;
|
|
1612
|
+
suite?: string;
|
|
1613
|
+
tags: string[];
|
|
1614
|
+
result: HeadlessResult;
|
|
1615
|
+
/** Mean normalized metric score in [0, 1] when metrics are declared; otherwise mean scorer score. */
|
|
1616
|
+
score: number;
|
|
1617
|
+
/** True when every scorer passed. */
|
|
1618
|
+
passed: boolean;
|
|
1619
|
+
scores: EvalScore[];
|
|
1620
|
+
/** Normalized metrics for this case (empty when no metrics declared). */
|
|
1621
|
+
metrics: EvalMetric[];
|
|
1622
|
+
/** Mean normalized score per tag, e.g. `{ '@efficiency': 0.8 }`. */
|
|
1623
|
+
tagScores: Record<string, number>;
|
|
1624
|
+
/** Ordered, grouped step timeline derived from the transcript. */
|
|
1625
|
+
trajectory: Trajectory;
|
|
1626
|
+
events: HeadlessEvent[];
|
|
1627
|
+
artifacts?: EvalArtifacts;
|
|
1628
|
+
workspace?: EvalWorkspaceSnapshot;
|
|
1629
|
+
workspaceError?: string;
|
|
1630
|
+
/** Absolute path to the eval definition file, for editor links. */
|
|
1631
|
+
sourceFile?: string;
|
|
1632
|
+
}
|
|
1633
|
+
interface EvalCaseOptions extends Omit<HeadlessOptions, 'onEvent'> {
|
|
1634
|
+
id: string;
|
|
1635
|
+
suite?: string;
|
|
1636
|
+
tags?: string[];
|
|
1637
|
+
artifactDir?: string;
|
|
1638
|
+
workspace?: EvalWorkspaceOptions;
|
|
1639
|
+
scorers?: EvalScorer[];
|
|
1640
|
+
/**
|
|
1641
|
+
* Declared metric set. Auto-merged with {@link EFFICIENCY_METRICS} so every
|
|
1642
|
+
* eval gets comparable efficiency metrics for free. All declared metrics must
|
|
1643
|
+
* be emitted (via auto-emit or `ctx.metric`) or the run throws.
|
|
1644
|
+
*/
|
|
1645
|
+
metrics?: MetricSpecMap;
|
|
1646
|
+
onEvent?: (event: HeadlessEvent) => void;
|
|
1647
|
+
/** Absolute path to the eval definition file. Set via `import.meta.url`. */
|
|
1648
|
+
sourceFile?: string;
|
|
1649
|
+
}
|
|
1650
|
+
interface EvalRunUsage {
|
|
1651
|
+
input: number;
|
|
1652
|
+
output: number;
|
|
1653
|
+
cacheRead: number;
|
|
1654
|
+
cacheCreation: number;
|
|
1655
|
+
cost: number;
|
|
1656
|
+
}
|
|
1657
|
+
interface EvalRunSummaryCase {
|
|
1658
|
+
id: string;
|
|
1659
|
+
suite?: string;
|
|
1660
|
+
passed: boolean;
|
|
1661
|
+
score: number;
|
|
1662
|
+
status: HeadlessResult['status'];
|
|
1663
|
+
durationMs: number;
|
|
1664
|
+
scores: EvalScore[];
|
|
1665
|
+
metrics: EvalMetric[];
|
|
1666
|
+
tagScores: Record<string, number>;
|
|
1667
|
+
trajectory: Trajectory;
|
|
1668
|
+
}
|
|
1669
|
+
interface MetricStats {
|
|
1670
|
+
mean: number;
|
|
1671
|
+
min: number;
|
|
1672
|
+
max: number;
|
|
1673
|
+
p50: number;
|
|
1674
|
+
p90: number;
|
|
1675
|
+
zeroCount: number;
|
|
1676
|
+
values: number[];
|
|
1677
|
+
}
|
|
1678
|
+
interface EvalRunMetricAggregate {
|
|
1679
|
+
id: string;
|
|
1680
|
+
direction: MetricDirection;
|
|
1681
|
+
tags: string[];
|
|
1682
|
+
raw: MetricStats;
|
|
1683
|
+
normalized: MetricStats;
|
|
1684
|
+
}
|
|
1685
|
+
interface EvalRunSummary {
|
|
1686
|
+
count: number;
|
|
1687
|
+
passed: number;
|
|
1688
|
+
score: number;
|
|
1689
|
+
durationMs: number;
|
|
1690
|
+
usage: EvalRunUsage;
|
|
1691
|
+
cases: EvalRunSummaryCase[];
|
|
1692
|
+
/** Per-metric stats across every case that emitted the metric. */
|
|
1693
|
+
metrics: EvalRunMetricAggregate[];
|
|
1694
|
+
/** Mean normalized score per tag across all cases. */
|
|
1695
|
+
tagScores: Record<string, number>;
|
|
1696
|
+
}
|
|
1697
|
+
interface EvalRunReporterOptions {
|
|
1698
|
+
/** Directory where per-case results and `run-summary.json` are written. */
|
|
1699
|
+
outputDir?: string;
|
|
1700
|
+
/** Enable ANSI colors. Defaults to TTY-aware auto color. */
|
|
1701
|
+
color?: boolean;
|
|
1702
|
+
}
|
|
1703
|
+
interface EvalRunReporter {
|
|
1704
|
+
readonly results: readonly EvalCaseResult[];
|
|
1705
|
+
record: (result: EvalCaseResult) => Promise<void>;
|
|
1706
|
+
flush: () => Promise<EvalRunSummary>;
|
|
1707
|
+
format: () => string;
|
|
1708
|
+
}
|
|
1709
|
+
/** Context handed to an eval definition factory at registration time. */
|
|
1710
|
+
interface EvalDefinitionContext {
|
|
1711
|
+
/** Agent-under-test provider. */
|
|
1712
|
+
provider: Provider;
|
|
1713
|
+
/** Provider used by `llmJudge` scorers. Defaults to `provider`. */
|
|
1714
|
+
judge: Provider;
|
|
1715
|
+
/** Optional agent model override; evals should pass it to `EvalCaseOptions.model`. */
|
|
1716
|
+
model?: string;
|
|
1717
|
+
/** Optional judge model override; evals should pass it to `llmJudge({ model })`. */
|
|
1718
|
+
judgeModel?: string;
|
|
1719
|
+
}
|
|
1720
|
+
type EvalDefinition = (ctx: EvalDefinitionContext) => EvalCaseOptions;
|
|
1721
|
+
/**
|
|
1722
|
+
* Register an eval definition. Eval files call this at module load; the harness
|
|
1723
|
+
* (`buildRegisteredEvals`) materializes them with a provider at run time. The
|
|
1724
|
+
* factory keeps definitions lazy so a single registry serves any provider/judge
|
|
1725
|
+
* pairing without re-importing eval files.
|
|
1726
|
+
*
|
|
1727
|
+
* Returns the same factory so a file can also `export default` it for direct,
|
|
1728
|
+
* registry-free use (e.g. hermetic unit tests).
|
|
1729
|
+
*/
|
|
1730
|
+
declare function defineEval(define: EvalDefinition): EvalDefinition;
|
|
1731
|
+
/** Snapshot of every registered eval, materialized for one provider/judge pair. */
|
|
1732
|
+
declare function buildRegisteredEvals(ctx: EvalDefinitionContext): EvalCaseOptions[];
|
|
1733
|
+
/** Drop every registered eval — test isolation helper. */
|
|
1734
|
+
declare function clearRegisteredEvals(): void;
|
|
1735
|
+
declare function runEvalCase(options: EvalCaseOptions): Promise<EvalCaseResult>;
|
|
1736
|
+
declare function statusCompleted(name?: string): EvalScorer;
|
|
1737
|
+
declare function fileExists(path: string, name?: string): EvalScorer;
|
|
1738
|
+
declare function fileExistsOneOf(paths: string[], name?: string): EvalScorer;
|
|
1739
|
+
declare function fileContains(path: string, expected: string | RegExp, name?: string): EvalScorer;
|
|
1740
|
+
declare function fileContentQuality(path: string, expected: string, name?: string): EvalScorer;
|
|
1741
|
+
declare function llmJudge(options: LlmJudgeOptions): EvalScorer;
|
|
1742
|
+
/**
|
|
1743
|
+
* Aggregate a group of boolean scorers into a single `0..1` functionality
|
|
1744
|
+
* metric (fraction passed) and emit it. Useful for "N of M files present".
|
|
1745
|
+
*/
|
|
1746
|
+
declare function functionalityMetric(metricId: string, scorers: EvalScorer[], name?: string): EvalScorer;
|
|
1747
|
+
declare function formatEvalCaseSummary(result: EvalCaseResult): string;
|
|
1748
|
+
declare function formatEvalRunSummary(results: readonly EvalCaseResult[]): string;
|
|
1749
|
+
/** Minimal subset of a test runner's API the eval harness needs. */
|
|
1750
|
+
interface EvalTestRunner {
|
|
1751
|
+
it: (name: string, fn: () => Promise<void> | void) => void;
|
|
1752
|
+
afterAll: (fn: () => Promise<void> | void) => void;
|
|
1753
|
+
}
|
|
1754
|
+
interface RegisterEvalTestsOptions {
|
|
1755
|
+
cases: EvalCaseOptions[];
|
|
1756
|
+
runner: EvalTestRunner;
|
|
1757
|
+
reporter?: EvalRunReporter;
|
|
1758
|
+
artifactDir?: string;
|
|
1759
|
+
/**
|
|
1760
|
+
* When true (default), each case asserts only that the agent run reached a
|
|
1761
|
+
* terminal `completed` status — scores are recorded but never fail the test.
|
|
1762
|
+
* Evals are scoring tools, not deterministic assertions.
|
|
1763
|
+
*/
|
|
1764
|
+
failOnIncomplete?: boolean;
|
|
1765
|
+
/** Print the aggregated run summary after all cases. Default true. */
|
|
1766
|
+
printSummary?: boolean;
|
|
1767
|
+
/** Repeat each case N times (each repetition is its own test). Default 1. */
|
|
1768
|
+
repeat?: number;
|
|
1769
|
+
/** Teardown run once after all cases (e.g. dispose a shared container). */
|
|
1770
|
+
dispose?: () => Promise<void> | void;
|
|
1771
|
+
/**
|
|
1772
|
+
* Max eval cases to run concurrently. Each case keeps its own workspace dir,
|
|
1773
|
+
* so a shared container runs them in parallel safely. Default 1 (sequential).
|
|
1774
|
+
*/
|
|
1775
|
+
concurrency?: number;
|
|
1776
|
+
}
|
|
1777
|
+
/**
|
|
1778
|
+
* Register one test per eval case against a test runner, funnel every result
|
|
1779
|
+
* into a shared reporter, and print the aggregated summary once after all cases.
|
|
1780
|
+
*
|
|
1781
|
+
* A failing test means the agent run itself broke (provider/tool/timeout). Low
|
|
1782
|
+
* scores are reported, not asserted — see {@link RegisterEvalTestsOptions.failOnIncomplete}.
|
|
1783
|
+
*/
|
|
1784
|
+
declare function registerEvalTests(options: RegisterEvalTestsOptions): EvalRunReporter;
|
|
1785
|
+
declare function createEvalRunReporter(options?: EvalRunReporterOptions): EvalRunReporter;
|
|
1786
|
+
declare function buildEvalRunSummary(input: readonly EvalCaseResult[]): EvalRunSummary;
|
|
1787
|
+
declare function efficiencyMetricValues(result: HeadlessResult): Record<keyof typeof EFFICIENCY_METRICS, number>;
|
|
1788
|
+
declare function emitEfficiencyMetrics(emit: MetricEmitter, result: HeadlessResult): void;
|
|
1789
|
+
declare function finalizeEvalMetrics(specs: MetricSpecMap, raw: Map<string, number>): EvalMetric[];
|
|
1790
|
+
declare function computeEvalTagScores(metrics: EvalMetric[]): Record<string, number>;
|
|
1791
|
+
declare function artifactPath(root: string, result: EvalCaseResult): string;
|
|
1792
|
+
declare function relativeArtifactPath(root: string, path: string): string;
|
|
1793
|
+
//#endregion
|
|
1352
1794
|
//#region src/logger.d.ts
|
|
1353
1795
|
type LogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
1354
1796
|
interface LogRecord {
|
|
@@ -2446,5 +2888,5 @@ declare function definePreset(config: Preset): Preset;
|
|
|
2446
2888
|
*/
|
|
2447
2889
|
declare function composePresets(...presets: Preset[]): Preset;
|
|
2448
2890
|
//#endregion
|
|
2449
|
-
export { cleanupPersistedSession as $,
|
|
2450
|
-
//# sourceMappingURL=index-
|
|
2891
|
+
export { cleanupPersistedSession as $, SkillsUseToolOptions as $n, buildUpToCompactPrompt as $r, ReusableExecutionContext as $t, MetricAttributes as A, statusCompleted as An, utf8ByteLength as Ar, EvalDefinitionContext as At, LoginMcpServerResult as B, transcriptToOpenAIMessages as Bn, compactConversation as Br, EvalScorer as Bt, ModelUsage as C, formatTrajectoryLine as Cn, RunSummaryError as Cr, EvalAgentRunResult as Ct, Histogram as D, registerEvalTests as Dn, createRunSummaryCollector as Dr, EvalCaseOptions as Dt, Counter as E, normalizeMetric as En, RunSummaryValidation as Er, EvalArtifacts as Et, OAuthCallbackHandle as F, HeadlessStatus as Fn, selectFilesFromReadState as Fr, EvalRunReporterOptions as Ft, McpOAuthProviderOptions as G, ToolSearchToolOptions as Gn, CompactPromptBuilder as Gr, EvalWorkspaceSnapshot as Gt, McpCredentialEntry as H, ValidationResult as Hn, CompactPromptTooLongError as Hr, EvalTestRunner as Ht, OAuthCallbackOptions as I, HeadlessUsage as In, selectFilesFromSession as Ir, EvalRunSummary as It, PERSISTED_STUB_PREFIX as J, SpawnToolOptions as Jn, TRAILER as Jr, MetricEmitter as Jt, createMemoryMcpCredentialStore as K, createToolSearchTool as Kn, CompactPromptOptions as Kr, LlmJudgeOptions as Kt, OAuthCallbackResult as L, OpenAIChatMessage as Ln, selectRecentFiles as Lr, EvalRunSummaryCase as Lt, MetricsHooksOptions as M, HeadlessEvent as Mn, PostCompactRestoreOptions as Mr, EvalMetricError as Mt, UpDownCounter as N, HeadlessOptions as Nn, RecentFile as Nr, EvalRunMetricAggregate as Nt, InstrumentOptions as O, relativeArtifactPath as On, BYTES_PER_TOKEN as Or, EvalCaseResult as Ot, createMetricsHooks as P, HeadlessResult as Pn, buildPostCompactAttachments as Pr, EvalRunReporter as Pt, buildPersistedStub as Q, createSpawnTool as Qn, buildTailCompactPrompt as Qr, RegisterEvalTestsOptions as Qt, startOAuthCallback as R, headlessEventToJsonl as Rn, CompactOptions as Rr, EvalRunUsage as Rt, splitSystemPrompt as S, formatEvalRunSummary as Sn, RunSummaryCollectorOptions as Sr, EvalAgentRunOptions as St, statsByModel as T, llmJudge as Tn, RunSummaryTokens as Tr, EvalAgentStats as Tt, McpCredentialStore as U, validateToolArgs as Un, BASE_INSTRUCTIONS as Ur, EvalWorkspaceFile as Ut, loginMcpServer as V, writeFile as Vn, CompactInvalidInputError as Vr, EvalScorerContext as Vt, McpOAuthProvider as W, LazyToolEntry as Wn, CompactDirection as Wr, EvalWorkspaceOptions as Wt, PersistInput as X, SubagentDef as Xn, buildFromCompactPrompt as Xr, MetricSpecMap as Xt, PERSISTENCE_PREVIEW_BYTES as Y, SpawnToolState as Yn, buildCompactPrompt as Yr, MetricSpec as Yt, PersistOutcome as Z, SubagentRegistry as Zn, buildFullCompactPrompt as Zr, MetricStats as Zt, appendStaticSection as _, fileContentQuality as _n, RunSummary as _r, jsonSink as _t, basicTools as a, sliceForCompaction as ai, buildRegisteredEvals as an, shellKill as ar, TOOL_USE_CANCELLED_MESSAGE as at, renderSystemForWire as b, finalizeEvalMetrics as bn, RunSummaryByModel as br, EvalAgent as bt, Span as c, truncateHeadForPtlRetry as ci, computeEvalTagScores as cn, shell as cr, LogLevel as ct, TracingHookSet as d, CacheDimensionName as di, createReusableExecutionContext as dn, listFiles as dr, Logger as dt, ANCHOR_PREVIEW_MAX_CHARS as ei, Trajectory as en, createSkillsUseTool as er, maybePersistToolResult as et, TracingHooksOptions as f, CacheDimensionSnapshot as fi, defineEval as fn, InteractionToolOptions as fr, LoggingHookSet as ft, appendDynamicSection as g, snapshotCacheDimensions as gi, fileContains as gn, edit as gr, createLoggingHooks as gt, SystemPromptParts as h, installCacheBreakLogger as hi, emitEfficiencyMetrics as hn, glob as hr, createLogger as ht, _default as i, anchorPreviewFor as ii, buildEvalRunSummary as in, createSkillsReadTool as ir, SHELL_CASCADE_CANCEL_MESSAGE as it, MetricsHookSet as j, HeadlessErrorInfo as jn, PostCompactAttachments as jr, EvalMetric as jt, Meter as k, runEvalCase as kn, estimateTokens as kr, EvalDefinition as kt, StartSpan as l, CacheBreakLoggerOptions as li, createEvalAgent as ln, readFile as lr, LogRecord as lt, SYSTEM_PROMPT_BOUNDARY as m, fnv1a32 as mi, efficiencyMetricValues as mn, grep as mr, consoleSink as mt, composePresets as n, CompactionSlice as ni, TrajectoryStepKind as nn, createSkillsRunScriptTool as nr, resolveTasksDir as nt, zodToJsonSchema as o, stripImagesFromTurns as oi, buildTrajectory as on, CreateShellToolOptions as or, TOOL_USE_SKIPPED_MESSAGE as ot, createTracingHooks as p, diffCacheDimensions as pi, defineMetrics as pn, createInteractionTool as pr, LoggingHooksOptions as pt, hasAuthorizationHeader as q, ChildAgent as qn, NO_TOOLS_PREAMBLE as qr, MetricDirection as qt, definePreset as r, SummaryToTurnInput as ri, artifactPath as rn, SkillsReadToolOptions as rr, INTERRUPT_MESSAGE_FOR_TOOL_USE as rt, GEN_AI_ATTRIBUTES as s, summaryToTurn as si, clearRegisteredEvals as sn, createShellTool as sr, ConsoleSinkOptions as st, Preset as t, CompactScope as ti, TrajectoryStep as tn, SkillsRunScriptToolOptions as tr, resolvePersistDir as tt, TracingConventions as u, CacheDimensionDiff as ui, createEvalRunReporter as un, multiEdit as ur, LogSink as ut, hasSystemPromptBoundary as v, fileExists as vn, RunSummaryBlock as vr, CreateEvalAgentOptions as vt, flattenTurns as w, functionalityMetric as wn, RunSummaryRepeatGuard as wr, EvalAgentRunStats as wt, replaceDynamicSection as x, formatEvalCaseSummary as xn, RunSummaryCollector as xr, EvalAgentMcpServers as xt, joinSystemPrompt as y, fileExistsOneOf as yn, RunSummaryBudget as yr, EFFICIENCY_METRICS as yt, LoginMcpServerOptions as z, runHeadless as zn, CompactResult as zr, EvalScore as zt };
|
|
2892
|
+
//# sourceMappingURL=index-D_i2Nhts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-D_i2Nhts.d.ts","names":[],"sources":["../src/cache-telemetry.ts","../src/compact/messages.ts","../src/compact/prompt.ts","../src/compact/errors.ts","../src/compact/compact.ts","../src/compact/restore.ts","../src/compact/utils.ts","../src/run-summary.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/shell-kill.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/headless.ts","../src/eval.ts","../src/logger.ts","../src/loop.ts","../src/loop-persistence.ts","../src/mcp/oauth-provider.ts","../src/mcp/login.ts","../src/mcp/oauth-callback.ts","../src/metrics.ts","../src/stats.ts","../src/system-prompt.ts","../src/tracing.ts","../src/zod.ts","../src/presets/basic.ts","../src/presets/index.ts"],"mappings":";;;;;;;;;;AA0EqD;AAIrD;;;;AAA8B;AAW9B;UArCiB,sBAAA;;EAEf,UAAA;EAyCA;EAvCA,WAAA;EA6CA;EA3CA,SAAA;EAqDmB;EAnDnB,UAAA;EAqEc;EAnEd,KAAA;;EAEA,QAAA;EAiE+B;EA/D/B,cAAA;AAAA;;UAIe,kBAAA;EA8EgC;EA5E/C,OAAA,WAAkB,kBAAA;EA4E6C;EA1E/D,OAAA,EAAS,QAAA,CAAS,OAAA,CAAQ,MAAA,CAAO,kBAAA;AAAA;AAmGnC;AAAA,KA/FY,kBAAA;AAAA,UAWK,uBAAA;EAqFT;;;;;EA/EN,GA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;AAOrC;;;;AAAkD;AAsBlD;;;;;;;EkCxJE,MAAA,IAAU,IAAA,UAAc,KAAA,UAAe,IAAA,GAAO,QAAA,CAAS,MAAA;AAAA;;UAIxC,cAAA;ElC8JJ;AAyBb;;;;;EkChLE,OAAA,GAAU,KAAA,EAAO,QAAQ,CAAC,UAAA;AAAA;;AlCgLyC;;;;ACjWrE;;;;AAA4B;AAE5B;;;;;;;;AAQe;AAQf;;;;AAA8D;AAa9D;;;;AAA8B;AAY9B;;iBiCkdgB,kBAAA,CAAmB,OAAA,EAAS,mBAAA,GAAsB,cAAc;;AjCldlD;AA4B9B;;;;ciCorCa,iBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AnCxtCb;;;;;;;;;iBoClCgB,eAAA,CAAgB,UAAA,EAAY,MAAA,oBAA0B,MAAM;;;;;;;;;;;ApCkC5E;cqCvCa,UAAA;SAAkF,OAAA;;;;;;;;cAAA,QAAA;;;;;;;;;ArCuC/F;;;;;;;;;;;;AAcgB;AAIhB;;;;KsC3CY,MAAA,GAAS,IAAA,CAAK,OAAA,CAAQ,YAAA;;;;iBAKlB,YAAA,CAAa,MAAA,EAAQ,MAAA,GAAS,MAAM;;;;;;;;;;AtC0CC;AAIrD;;;;AAA8B;AAW9B;;;;;;;;;AAsBqB;AAkBrB;iBsCnEgB,cAAA,CAAA,GAAkB,OAAA,EAAS,MAAA,KAAW,MAAM"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as TurnInterruptionState, $t as McpToolHookContext, A as SkillResource, An as
|
|
2
|
-
import { a as
|
|
3
|
-
import { n as createSandboxContext, r as createProcessContext, t as SandboxProvider } from "./index-
|
|
4
|
-
import { $ as cleanupPersistedSession, $n as
|
|
5
|
-
import { S as installAllowedToolsGate, a as SkillValidationResult, b as buildCatalog, c as parseAllowedToolPattern, d as validateSkillName, f as resolveSkills, h as discoverSkills, i as SkillValidationIssue, l as validateResourcePath, m as SourcedScanPath, n as writeSkillToDisk, o as isToolAllowedByUnion, p as interpolateShellCommands, r as writeSkillsToDisk, s as matchesAllowedTool, t as defineSkill, u as validateSkillForWrite, x as IMPLICITLY_ALLOWED_SKILL_TOOLS, y as parseSkillFile } from "./index-
|
|
6
|
-
export { ANCHOR_PREVIEW_MAX_CHARS, type ActivationVia, type ActiveSkill, type Agent, AgentAbortedError, type AgentBehavior, AgentBudgetExceededError, AgentContextExceededError, type AgentHooks, type AgentOptions, AgentProviderError, type AgentRunOptions, type AgentStats, AgentToolNotAllowedError, AgentToolPairingError, type AnthropicParams, BASE_INSTRUCTIONS, BYTES_PER_TOKEN, CONTEXT_EXCEEDED_MESSAGE_PATTERNS, type CacheBreakLoggerOptions, type CacheDimensionDiff, type CacheDimensionName, type CacheDimensionSnapshot, type CerebrasParams, type ChildAgent, type ClassifiedError, type ClassifiedErrorKind, type CompactDirection, type CompactFunction, CompactInvalidInputError, type CompactOptions, type CompactPromptBuilder, type CompactPromptOptions, CompactPromptTooLongError, type CompactResult, type CompactScope, type CompactionSlice, type ConnectMcpServersOptions, type ConsoleSinkOptions, type ContextBreakdown, type ContextBreakdownOptions, type ContextCapabilities, type ContextCategory, type ContextCategoryId, type ContextExactCounts, type ContextItem, type ContextMcpGroup, type ContextSnapshot, type ContextType, type ContextUsageSplit, type Counter, type CreateSessionOptions, type CreateShellToolOptions, type DeactivationReason, type DedupHasher, type DedupToolConfig, type EnsureToolResultPairingOptions, type ExecResult, type ExecutionContext, type ExecutionHandle, type FileMapAdapter, type FileMapStoreOptions, GEN_AI_ATTRIBUTES, type HeadlessErrorInfo, type HeadlessEvent, type HeadlessOptions, type HeadlessResult, type HeadlessStatus, type HeadlessUsage, type Histogram, IMPLICITLY_ALLOWED_SKILL_TOOLS, INTERRUPT_MESSAGE_FOR_TOOL_USE, type InstrumentOptions, type InteractionToolOptions, type LocalParams, type LogLevel, type LogRecord, type LogSink, type Logger, type LoggingHookSet, type LoggingHooksOptions, type LoginMcpServerOptions, type LoginMcpServerResult, type McpConnection, type McpCredentialEntry, type McpCredentialStore, McpOAuthProvider, type McpOAuthProviderOptions, type McpServerConfig, type McpToolHookContext, type Meter, type MetricAttributes, type MetricsHookSet, type MetricsHooksOptions, type ModelUsage, NO_TOOLS_PREAMBLE, type OAuthCallbackHandle, type OAuthCallbackOptions, type OAuthCallbackResult, type OAuthRefreshHookContext, ORPHANED_TOOL_RESULT_MARKER, type OpenAIChatMessage, type OpenAICompatAuthHeader, OpenAICompatHttpError, type OpenAICompatParams, type OpenAIParams, type OpenRouterParams, PERSISTED_STUB_PREFIX, PERSISTENCE_PREVIEW_BYTES, type PairingRepair, type PairingRepairMode, type PersistInput, type PersistOutcome, type PostCompactAttachments, type PostCompactRestoreOptions, type Preset, type PromptDocumentPart, type PromptImagePart, type PromptPart, type PromptTextPart, type Provider, type ProviderCapabilities, type ReadStateEntry, type ReadStateMap, type RecentFile, type RemoteStoreOptions, type RepeatGuardConfig, type RepeatGuardToolMatcher, type RetryConfig, type RunHookMap, type RunSummary, type RunSummaryBlock, type RunSummaryBudget, type RunSummaryByModel, type RunSummaryCollector, type RunSummaryCollectorOptions, type RunSummaryError, type RunSummaryRepeatGuard, type RunSummaryTokens, type RunSummaryValidation, SHELL_CASCADE_CANCEL_MESSAGE, SYNTHETIC_TOOL_RESULT_PLACEHOLDER, SYSTEM_PROMPT_BOUNDARY, type SandboxProvider, type SchemaSanitizeOptions, type SchemaSanitizeProfile, type SchemaSanitizeResult, type Session, type SessionContentBlock, type SessionData, type SessionEndStatus, type SessionHookContext, type SessionMessage, type SessionRun, type SessionStore, type SessionTurn, type SkillActivationState, type SkillActivationStateOptions, type SkillConfig, type SkillDiagnostic, type SkillResource, type SkillSource, type SkillValidationIssue, type SkillValidationResult, type SkillsConfig, type SkillsReadToolOptions, type SkillsRunScriptToolOptions, type SkillsUseToolOptions, type SourcedScanPath, type Span, type SpawnConfig, type SpawnHookContext, type SpawnToolOptions, type SpawnToolState, type StartSpan, type StreamCallbacks, type StreamHookContext, type StreamOptions, type SubagentDef, type SubagentRegistry, type SummaryToTurnInput, type SystemPromptParts, TOOL_USE_CANCELLED_MESSAGE, TOOL_USE_INTERRUPTED_MARKER, TOOL_USE_SKIPPED_MESSAGE, TRAILER, type ThinkingLevel, type ToWireMessagesOptions, type ToolCall, type ToolContext, type ToolDef, type ToolHookContext, type ToolMap, type ToolOutcome, type ToolResult, type ToolResultContent, type ToolResultImageContent, type ToolResultTextContent, type ToolSpec, type TracingConventions, type TracingHookSet, type TracingHooksOptions, type TurnFinishReason, type TurnInterruptionState, type TurnResult, type TurnUsage, type UpDownCounter, type ValidationResult, anchorPreviewFor, anthropic, appendDynamicSection, appendStaticSection, applyAnthropicCacheBreakpoints, autoDetectAndConvert, _default as basic, basicTools, buildCatalog, buildCompactPrompt, buildFromCompactPrompt, buildFullCompactPrompt, buildPersistedStub, buildPostCompactAttachments, buildTailCompactPrompt, buildUpToCompactPrompt, cerebras, classifyOpenAICompatError, cleanupPersistedSession, compactConversation, connectMcpServers, consoleSink, createAgent, createFileMapStore, createInteractionTool, createLogger, createLoggingHooks, createMemoryMcpCredentialStore, createMemoryStore, createMetricsHooks, createProcessContext, createRemoteStore, createRunSummaryCollector, createSandboxContext, createSession, createShellTool, createSkillActivationState, createSkillsReadTool, createSkillsRunScriptTool, createSkillsUseTool, createSpawnTool, createTracingHooks, definePreset, defineSkill, detectTurnInterruption, diffCacheDimensions, discoverSkills, edit, ensureEndsWithUserMessage, ensureToolResultPairing, errorMessage, estimateTokens, filterUnresolvedToolUses, flattenTurns, fnv1a32, fromAnthropic, fromOpenAI, getReadState, glob, grep, hasAuthorizationHeader, hasSystemPromptBoundary, headlessEventToJsonl, installAllowedToolsGate, installCacheBreakLogger, interpolateShellCommands, isToolAllowedByUnion, joinSystemPrompt, jsonSink, loadSession, local, loginMcpServer, mapOAIFinishReason, matchesAllowedTool, matchesContextExceeded, maybePersistToolResult, multiEdit, normalizeMcpBlocks, normalizeMcpServers, openai, openaiCompat, openrouter, parseAllowedToolPattern, parseSkillFile, readStateKey, renderSystemForWire, replaceDynamicSection, resolvePersistDir, resolveReadStateMap, resolveSkills, resolveTasksDir, resultToString, runHeadless, sanitizeToolSchema, sanitizeToolSpecs, selectFilesFromReadState, selectFilesFromSession, selectRecentFiles, sliceForCompaction, snapshotCacheDimensions, splitSystemPrompt, startOAuthCallback, statsByModel, stripImagesFromTurns, summaryToTurn, toAnthropic, toOpenAI, toTypedError, toWireMessages, toolOutputByteLength, toolResultToText, transcriptToOpenAIMessages, truncateHeadForPtlRetry, utf8ByteLength, validateResourcePath, validateSkillForWrite, validateSkillName, validateToolArgs, writeSkillToDisk, writeSkillsToDisk, zodToJsonSchema };
|
|
1
|
+
import { $ as TurnInterruptionState, $t as McpToolHookContext, A as SkillResource, An as AgentContextExceededError, At as mapOAIFinishReason, B as RemoteStoreOptions, Bn as ContextBreakdown, Bt as AnthropicParams, C as ReadStateMap, Cn as ToolResultTextContent, Ct as sanitizeToolSpecs, D as resolveReadStateMap, Dn as toolResultToText, Dt as OpenAICompatHttpError, E as readStateKey, En as toolOutputByteLength, Et as OpenAICompatAuthHeader, F as SessionData, Fn as ClassifiedError, Ft as local, G as createFileMapStore, Gn as ContextItem, Gt as AgentRunOptions, H as createMemoryStore, Hn as ContextCategory, Ht as applyAnthropicCacheBreakpoints, I as SessionRun, In as ClassifiedErrorKind, J as PairingRepair, Jn as ContextUsageSplit, Jt as CompactFunction, K as EnsureToolResultPairingOptions, Kn as ContextMcpGroup, Kt as AgentStats, L as SessionStore, Ln as errorMessage, M as SkillsConfig, Mn as AgentToolNotAllowedError, Mt as OpenAIParams, N as CreateSessionOptions, Nn as AgentToolPairingError, Nt as openai, O as SkillConfig, On as AgentAbortedError, Ot as OpenAICompatParams, P as Session, Pn as CONTEXT_EXCEEDED_MESSAGE_PATTERNS, Pt as LocalParams, Q as ToWireMessagesOptions, Qt as McpServerConfig, R as createSession, Rn as matchesContextExceeded, Rt as CerebrasParams, S as ReadStateEntry, Sn as ToolResultImageContent, St as sanitizeToolSchema, Tn as TurnUsage, Tt as openrouter, U as FileMapAdapter, Un as ContextCategoryId, Ut as AgentBehavior, V as createRemoteStore, Vn as ContextBreakdownOptions, Vt as anthropic, W as FileMapStoreOptions, Wn as ContextExactCounts, X as SYNTHETIC_TOOL_RESULT_PLACEHOLDER, Xt as DedupHasher, Y as PairingRepairMode, Z as TOOL_USE_INTERRUPTED_MARKER, Zt as DedupToolConfig, _ as normalizeMcpServers, _n as ThinkingLevel, _t as ToolSpec, a as createAgent, an as PromptTextPart, at as fromAnthropic, b as ToolDef, bn as ToolOutcome, bt as SchemaSanitizeProfile, c as DeactivationReason, cn as RetryConfig, ct as toOpenAI, d as createSkillActivationState, dn as SessionEndStatus, dt as ProviderCapabilities, et as autoDetectAndConvert, f as ConnectMcpServersOptions, fn as SessionHookContext, ft as StreamCallbacks, g as normalizeMcpBlocks, gn as StreamHookContext, gt as ToolResult, h as connectMcpServers, hn as SpawnHookContext, ht as ToolCall, i as AgentOptions, in as PromptPart, it as filterUnresolvedToolUses, j as SkillSource, jn as AgentProviderError, jt as openaiCompat, k as SkillDiagnostic, kn as AgentBudgetExceededError, kt as classifyOpenAICompatError, l as SkillActivationState, ln as RunHookMap, lt as toWireMessages, mn as SessionTurn, nn as PromptDocumentPart, nt as ensureEndsWithUserMessage, o as ActivationVia, on as RepeatGuardConfig, ot as fromOpenAI, p as McpConnection, pn as SessionMessage, pt as StreamOptions, q as ORPHANED_TOOL_RESULT_MARKER, qn as ContextSnapshot, r as AgentHooks, rn as PromptImagePart, rt as ensureToolResultPairing, s as ActiveSkill, sn as RepeatGuardToolMatcher, st as toAnthropic, t as Agent, tn as OAuthRefreshHookContext, tt as detectTurnInterruption, u as SkillActivationStateOptions, un as SessionContentBlock, ut as Provider, v as resultToString, vt as TurnResult, w as getReadState, wn as TurnFinishReason, wt as OpenRouterParams, x as ToolMap, xn as ToolResultContent, xt as SchemaSanitizeResult, y as ToolContext, yn as ToolHookContext, yt as SchemaSanitizeOptions, z as loadSession, zn as toTypedError, zt as cerebras } from "./agent-CDFbxbHd.js";
|
|
2
|
+
import { a as ExecResult, c as SpawnConfig, i as ContextType, n as ContextCapabilities, o as ExecutionContext, r as ContextMount, s as ExecutionHandle } from "./types-CB1J-DQw.js";
|
|
3
|
+
import { n as createSandboxContext, r as createProcessContext, t as SandboxProvider } from "./index-ClYUGpmF.js";
|
|
4
|
+
import { $ as cleanupPersistedSession, $n as SkillsUseToolOptions, $r as buildUpToCompactPrompt, $t as ReusableExecutionContext, A as MetricAttributes, An as statusCompleted, Ar as utf8ByteLength, At as EvalDefinitionContext, B as LoginMcpServerResult, Bn as transcriptToOpenAIMessages, Br as compactConversation, Bt as EvalScorer, C as ModelUsage, Cn as formatTrajectoryLine, Cr as RunSummaryError, Ct as EvalAgentRunResult, D as Histogram, Dn as registerEvalTests, Dr as createRunSummaryCollector, Dt as EvalCaseOptions, E as Counter, En as normalizeMetric, Er as RunSummaryValidation, Et as EvalArtifacts, F as OAuthCallbackHandle, Fn as HeadlessStatus, Fr as selectFilesFromReadState, Ft as EvalRunReporterOptions, G as McpOAuthProviderOptions, Gr as CompactPromptBuilder, Gt as EvalWorkspaceSnapshot, H as McpCredentialEntry, Hn as ValidationResult, Hr as CompactPromptTooLongError, Ht as EvalTestRunner, I as OAuthCallbackOptions, In as HeadlessUsage, Ir as selectFilesFromSession, It as EvalRunSummary, J as PERSISTED_STUB_PREFIX, Jn as SpawnToolOptions, Jr as TRAILER, Jt as MetricEmitter, K as createMemoryMcpCredentialStore, Kr as CompactPromptOptions, Kt as LlmJudgeOptions, L as OAuthCallbackResult, Ln as OpenAIChatMessage, Lr as selectRecentFiles, Lt as EvalRunSummaryCase, M as MetricsHooksOptions, Mn as HeadlessEvent, Mr as PostCompactRestoreOptions, Mt as EvalMetricError, N as UpDownCounter, Nn as HeadlessOptions, Nr as RecentFile, Nt as EvalRunMetricAggregate, O as InstrumentOptions, On as relativeArtifactPath, Or as BYTES_PER_TOKEN, Ot as EvalCaseResult, P as createMetricsHooks, Pn as HeadlessResult, Pr as buildPostCompactAttachments, Pt as EvalRunReporter, Q as buildPersistedStub, Qn as createSpawnTool, Qr as buildTailCompactPrompt, Qt as RegisterEvalTestsOptions, R as startOAuthCallback, Rn as headlessEventToJsonl, Rr as CompactOptions, Rt as EvalRunUsage, S as splitSystemPrompt, Sn as formatEvalRunSummary, Sr as RunSummaryCollectorOptions, St as EvalAgentRunOptions, T as statsByModel, Tn as llmJudge, Tr as RunSummaryTokens, Tt as EvalAgentStats, U as McpCredentialStore, Un as validateToolArgs, Ur as BASE_INSTRUCTIONS, Ut as EvalWorkspaceFile, V as loginMcpServer, Vr as CompactInvalidInputError, Vt as EvalScorerContext, W as McpOAuthProvider, Wr as CompactDirection, Wt as EvalWorkspaceOptions, X as PersistInput, Xn as SubagentDef, Xr as buildFromCompactPrompt, Xt as MetricSpecMap, Y as PERSISTENCE_PREVIEW_BYTES, Yn as SpawnToolState, Yr as buildCompactPrompt, Yt as MetricSpec, Z as PersistOutcome, Zn as SubagentRegistry, Zr as buildFullCompactPrompt, Zt as MetricStats, _ as appendStaticSection, _n as fileContentQuality, _r as RunSummary, _t as jsonSink, a as basicTools, ai as sliceForCompaction, an as buildRegisteredEvals, at as TOOL_USE_CANCELLED_MESSAGE, b as renderSystemForWire, bn as finalizeEvalMetrics, br as RunSummaryByModel, bt as EvalAgent, c as Span, ci as truncateHeadForPtlRetry, cn as computeEvalTagScores, ct as LogLevel, d as TracingHookSet, di as CacheDimensionName, dn as createReusableExecutionContext, dt as Logger, ei as ANCHOR_PREVIEW_MAX_CHARS, en as Trajectory, er as createSkillsUseTool, et as maybePersistToolResult, f as TracingHooksOptions, fi as CacheDimensionSnapshot, fn as defineEval, fr as InteractionToolOptions, ft as LoggingHookSet, g as appendDynamicSection, gi as snapshotCacheDimensions, gn as fileContains, gr as edit, gt as createLoggingHooks, h as SystemPromptParts, hi as installCacheBreakLogger, hn as emitEfficiencyMetrics, hr as glob, ht as createLogger, i as _default, ii as anchorPreviewFor, in as buildEvalRunSummary, ir as createSkillsReadTool, it as SHELL_CASCADE_CANCEL_MESSAGE, j as MetricsHookSet, jn as HeadlessErrorInfo, jr as PostCompactAttachments, jt as EvalMetric, k as Meter, kn as runEvalCase, kr as estimateTokens, kt as EvalDefinition, l as StartSpan, li as CacheBreakLoggerOptions, ln as createEvalAgent, lt as LogRecord, m as SYSTEM_PROMPT_BOUNDARY, mi as fnv1a32, mn as efficiencyMetricValues, mr as grep, mt as consoleSink, ni as CompactionSlice, nn as TrajectoryStepKind, nr as createSkillsRunScriptTool, nt as resolveTasksDir, o as zodToJsonSchema, oi as stripImagesFromTurns, on as buildTrajectory, or as CreateShellToolOptions, ot as TOOL_USE_SKIPPED_MESSAGE, p as createTracingHooks, pi as diffCacheDimensions, pn as defineMetrics, pr as createInteractionTool, pt as LoggingHooksOptions, q as hasAuthorizationHeader, qn as ChildAgent, qr as NO_TOOLS_PREAMBLE, qt as MetricDirection, r as definePreset, ri as SummaryToTurnInput, rn as artifactPath, rr as SkillsReadToolOptions, rt as INTERRUPT_MESSAGE_FOR_TOOL_USE, s as GEN_AI_ATTRIBUTES, si as summaryToTurn, sn as clearRegisteredEvals, sr as createShellTool, st as ConsoleSinkOptions, t as Preset, ti as CompactScope, tn as TrajectoryStep, tr as SkillsRunScriptToolOptions, tt as resolvePersistDir, u as TracingConventions, ui as CacheDimensionDiff, un as createEvalRunReporter, ur as multiEdit, ut as LogSink, v as hasSystemPromptBoundary, vn as fileExists, vr as RunSummaryBlock, vt as CreateEvalAgentOptions, w as flattenTurns, wn as functionalityMetric, wr as RunSummaryRepeatGuard, wt as EvalAgentRunStats, x as replaceDynamicSection, xn as formatEvalCaseSummary, xr as RunSummaryCollector, xt as EvalAgentMcpServers, y as joinSystemPrompt, yn as fileExistsOneOf, yr as RunSummaryBudget, yt as EFFICIENCY_METRICS, z as LoginMcpServerOptions, zn as runHeadless, zr as CompactResult, zt as EvalScore } from "./index-D_i2Nhts.js";
|
|
5
|
+
import { S as installAllowedToolsGate, a as SkillValidationResult, b as buildCatalog, c as parseAllowedToolPattern, d as validateSkillName, f as resolveSkills, h as discoverSkills, i as SkillValidationIssue, l as validateResourcePath, m as SourcedScanPath, n as writeSkillToDisk, o as isToolAllowedByUnion, p as interpolateShellCommands, r as writeSkillsToDisk, s as matchesAllowedTool, t as defineSkill, u as validateSkillForWrite, x as IMPLICITLY_ALLOWED_SKILL_TOOLS, y as parseSkillFile } from "./index-DWw_PtJH.js";
|
|
6
|
+
export { ANCHOR_PREVIEW_MAX_CHARS, type ActivationVia, type ActiveSkill, type Agent, AgentAbortedError, type AgentBehavior, AgentBudgetExceededError, AgentContextExceededError, type AgentHooks, type AgentOptions, AgentProviderError, type AgentRunOptions, type AgentStats, AgentToolNotAllowedError, AgentToolPairingError, type AnthropicParams, BASE_INSTRUCTIONS, BYTES_PER_TOKEN, CONTEXT_EXCEEDED_MESSAGE_PATTERNS, type CacheBreakLoggerOptions, type CacheDimensionDiff, type CacheDimensionName, type CacheDimensionSnapshot, type CerebrasParams, type ChildAgent, type ClassifiedError, type ClassifiedErrorKind, type CompactDirection, type CompactFunction, CompactInvalidInputError, type CompactOptions, type CompactPromptBuilder, type CompactPromptOptions, CompactPromptTooLongError, type CompactResult, type CompactScope, type CompactionSlice, type ConnectMcpServersOptions, type ConsoleSinkOptions, type ContextBreakdown, type ContextBreakdownOptions, type ContextCapabilities, type ContextCategory, type ContextCategoryId, type ContextExactCounts, type ContextItem, type ContextMcpGroup, type ContextMount, type ContextSnapshot, type ContextType, type ContextUsageSplit, type Counter, type CreateEvalAgentOptions, type CreateSessionOptions, type CreateShellToolOptions, type DeactivationReason, type DedupHasher, type DedupToolConfig, EFFICIENCY_METRICS, type EnsureToolResultPairingOptions, type EvalAgent, type EvalAgentMcpServers, type EvalAgentRunOptions, type EvalAgentRunResult, type EvalAgentRunStats, type EvalAgentStats, type EvalArtifacts, type EvalCaseOptions, type EvalCaseResult, type EvalDefinition, type EvalDefinitionContext, type EvalMetric, EvalMetricError, type EvalRunMetricAggregate, type EvalRunReporter, type EvalRunReporterOptions, type EvalRunSummary, type EvalRunSummaryCase, type EvalRunUsage, type EvalScore, type EvalScorer, type EvalScorerContext, type EvalTestRunner, type EvalWorkspaceFile, type EvalWorkspaceOptions, type EvalWorkspaceSnapshot, type ExecResult, type ExecutionContext, type ExecutionHandle, type FileMapAdapter, type FileMapStoreOptions, GEN_AI_ATTRIBUTES, type HeadlessErrorInfo, type HeadlessEvent, type HeadlessOptions, type HeadlessResult, type HeadlessStatus, type HeadlessUsage, type Histogram, IMPLICITLY_ALLOWED_SKILL_TOOLS, INTERRUPT_MESSAGE_FOR_TOOL_USE, type InstrumentOptions, type InteractionToolOptions, type LlmJudgeOptions, type LocalParams, type LogLevel, type LogRecord, type LogSink, type Logger, type LoggingHookSet, type LoggingHooksOptions, type LoginMcpServerOptions, type LoginMcpServerResult, type McpConnection, type McpCredentialEntry, type McpCredentialStore, McpOAuthProvider, type McpOAuthProviderOptions, type McpServerConfig, type McpToolHookContext, type Meter, type MetricAttributes, type MetricDirection, type MetricEmitter, type MetricSpec, type MetricSpecMap, type MetricStats, type MetricsHookSet, type MetricsHooksOptions, type ModelUsage, NO_TOOLS_PREAMBLE, type OAuthCallbackHandle, type OAuthCallbackOptions, type OAuthCallbackResult, type OAuthRefreshHookContext, ORPHANED_TOOL_RESULT_MARKER, type OpenAIChatMessage, type OpenAICompatAuthHeader, OpenAICompatHttpError, type OpenAICompatParams, type OpenAIParams, type OpenRouterParams, PERSISTED_STUB_PREFIX, PERSISTENCE_PREVIEW_BYTES, type PairingRepair, type PairingRepairMode, type PersistInput, type PersistOutcome, type PostCompactAttachments, type PostCompactRestoreOptions, type Preset, type PromptDocumentPart, type PromptImagePart, type PromptPart, type PromptTextPart, type Provider, type ProviderCapabilities, type ReadStateEntry, type ReadStateMap, type RecentFile, type RegisterEvalTestsOptions, type RemoteStoreOptions, type RepeatGuardConfig, type RepeatGuardToolMatcher, type RetryConfig, type ReusableExecutionContext, type RunHookMap, type RunSummary, type RunSummaryBlock, type RunSummaryBudget, type RunSummaryByModel, type RunSummaryCollector, type RunSummaryCollectorOptions, type RunSummaryError, type RunSummaryRepeatGuard, type RunSummaryTokens, type RunSummaryValidation, SHELL_CASCADE_CANCEL_MESSAGE, SYNTHETIC_TOOL_RESULT_PLACEHOLDER, SYSTEM_PROMPT_BOUNDARY, type SandboxProvider, type SchemaSanitizeOptions, type SchemaSanitizeProfile, type SchemaSanitizeResult, type Session, type SessionContentBlock, type SessionData, type SessionEndStatus, type SessionHookContext, type SessionMessage, type SessionRun, type SessionStore, type SessionTurn, type SkillActivationState, type SkillActivationStateOptions, type SkillConfig, type SkillDiagnostic, type SkillResource, type SkillSource, type SkillValidationIssue, type SkillValidationResult, type SkillsConfig, type SkillsReadToolOptions, type SkillsRunScriptToolOptions, type SkillsUseToolOptions, type SourcedScanPath, type Span, type SpawnConfig, type SpawnHookContext, type SpawnToolOptions, type SpawnToolState, type StartSpan, type StreamCallbacks, type StreamHookContext, type StreamOptions, type SubagentDef, type SubagentRegistry, type SummaryToTurnInput, type SystemPromptParts, TOOL_USE_CANCELLED_MESSAGE, TOOL_USE_INTERRUPTED_MARKER, TOOL_USE_SKIPPED_MESSAGE, TRAILER, type ThinkingLevel, type ToWireMessagesOptions, type ToolCall, type ToolContext, type ToolDef, type ToolHookContext, type ToolMap, type ToolOutcome, type ToolResult, type ToolResultContent, type ToolResultImageContent, type ToolResultTextContent, type ToolSpec, type TracingConventions, type TracingHookSet, type TracingHooksOptions, type Trajectory, type TrajectoryStep, type TrajectoryStepKind, type TurnFinishReason, type TurnInterruptionState, type TurnResult, type TurnUsage, type UpDownCounter, type ValidationResult, anchorPreviewFor, anthropic, appendDynamicSection, appendStaticSection, applyAnthropicCacheBreakpoints, artifactPath, autoDetectAndConvert, _default as basic, basicTools, buildCatalog, buildCompactPrompt, buildEvalRunSummary, buildFromCompactPrompt, buildFullCompactPrompt, buildPersistedStub, buildPostCompactAttachments, buildRegisteredEvals, buildTailCompactPrompt, buildTrajectory, buildUpToCompactPrompt, cerebras, classifyOpenAICompatError, cleanupPersistedSession, clearRegisteredEvals, compactConversation, computeEvalTagScores, connectMcpServers, consoleSink, createAgent, createEvalAgent, createEvalRunReporter, createFileMapStore, createInteractionTool, createLogger, createLoggingHooks, createMemoryMcpCredentialStore, createMemoryStore, createMetricsHooks, createProcessContext, createRemoteStore, createReusableExecutionContext, createRunSummaryCollector, createSandboxContext, createSession, createShellTool, createSkillActivationState, createSkillsReadTool, createSkillsRunScriptTool, createSkillsUseTool, createSpawnTool, createTracingHooks, defineEval, defineMetrics, definePreset, defineSkill, detectTurnInterruption, diffCacheDimensions, discoverSkills, edit, efficiencyMetricValues, emitEfficiencyMetrics, ensureEndsWithUserMessage, ensureToolResultPairing, errorMessage, estimateTokens, fileContains, fileContentQuality, fileExists, fileExistsOneOf, filterUnresolvedToolUses, finalizeEvalMetrics, flattenTurns, fnv1a32, formatEvalCaseSummary, formatEvalRunSummary, formatTrajectoryLine, fromAnthropic, fromOpenAI, functionalityMetric, getReadState, glob, grep, hasAuthorizationHeader, hasSystemPromptBoundary, headlessEventToJsonl, installAllowedToolsGate, installCacheBreakLogger, interpolateShellCommands, isToolAllowedByUnion, joinSystemPrompt, jsonSink, llmJudge, loadSession, local, loginMcpServer, mapOAIFinishReason, matchesAllowedTool, matchesContextExceeded, maybePersistToolResult, multiEdit, normalizeMcpBlocks, normalizeMcpServers, normalizeMetric, openai, openaiCompat, openrouter, parseAllowedToolPattern, parseSkillFile, readStateKey, registerEvalTests, relativeArtifactPath, renderSystemForWire, replaceDynamicSection, resolvePersistDir, resolveReadStateMap, resolveSkills, resolveTasksDir, resultToString, runEvalCase, runHeadless, sanitizeToolSchema, sanitizeToolSpecs, selectFilesFromReadState, selectFilesFromSession, selectRecentFiles, sliceForCompaction, snapshotCacheDimensions, splitSystemPrompt, startOAuthCallback, statsByModel, statusCompleted, stripImagesFromTurns, summaryToTurn, toAnthropic, toOpenAI, toTypedError, toWireMessages, toolOutputByteLength, toolResultToText, transcriptToOpenAIMessages, truncateHeadForPtlRetry, utf8ByteLength, validateResourcePath, validateSkillForWrite, validateSkillName, validateToolArgs, writeSkillToDisk, writeSkillsToDisk, zodToJsonSchema };
|