zidane 5.4.0 → 5.4.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/dist/{agent-DHQAsdj6.d.ts → agent-DxBoKDba.d.ts} +140 -1
- package/dist/agent-DxBoKDba.d.ts.map +1 -0
- package/dist/chat.d.ts +62 -5
- package/dist/chat.d.ts.map +1 -1
- package/dist/chat.js +2 -2
- package/dist/{index-CrqFoaQA.d.ts → index-B2VOOijU.d.ts} +461 -8
- package/dist/index-B2VOOijU.d.ts.map +1 -0
- package/dist/{index-CHSaLab5.d.ts → index-BOtXdQkW.d.ts} +2 -2
- package/dist/{index-CHSaLab5.d.ts.map → index-BOtXdQkW.d.ts.map} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1522 -47
- package/dist/index.js.map +1 -1
- package/dist/{login-bK0EP8La.js → login-CJbeAadS.js} +2 -2
- package/dist/{login-bK0EP8La.js.map → login-CJbeAadS.js.map} +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/{presets-M8f6lDnW.js → presets-MCcvxiNT.js} +2 -2
- package/dist/{presets-M8f6lDnW.js.map → presets-MCcvxiNT.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/session/sqlite.d.ts +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/skills.d.ts +2 -2
- package/dist/{tools-DKdyPoUf.js → tools-BNfyY14s.js} +192 -34
- package/dist/tools-BNfyY14s.js.map +1 -0
- package/dist/tools.d.ts +2 -2
- package/dist/tools.js +1 -1
- package/dist/{transcript-anchors-Fgh_rZ04.d.ts → transcript-anchors-DonKvoh4.d.ts} +19 -4
- package/dist/transcript-anchors-DonKvoh4.d.ts.map +1 -0
- package/dist/tui.d.ts +3 -3
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +52 -23
- package/dist/tui.js.map +1 -1
- package/dist/{turn-operations-DDokWR8p.js → turn-operations-TKvy0q29.js} +128 -4
- package/dist/turn-operations-TKvy0q29.js.map +1 -0
- package/dist/types-IcokUOyC.js.map +1 -1
- package/dist/types.d.ts +2 -2
- package/docs/ARCHITECTURE.md +6 -5
- package/docs/CHAT.md +21 -3
- package/docs/SKILL.md +1 -1
- package/docs/TUI.md +2 -2
- package/package.json +1 -1
- package/dist/agent-DHQAsdj6.d.ts.map +0 -1
- package/dist/index-CrqFoaQA.d.ts.map +0 -1
- package/dist/tools-DKdyPoUf.js.map +0 -1
- package/dist/transcript-anchors-Fgh_rZ04.d.ts.map +0 -1
- package/dist/turn-operations-DDokWR8p.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ExecutionHandle, i as ExecutionContext } from "./types-Ce78ds4h.js";
|
|
2
|
-
import { $t as ThinkingLevel, D as SkillConfig, Ft as AgentStats, It as ChildRunStats, Lt as McpServerConfig, N as Session, Xt as SessionTurn, an as TurnUsage, i as AgentOptions, l as SkillActivationState, ot as Provider, r as AgentHooks, s as ActiveSkill, tn as ToolResultContent, v as ToolContext, y as ToolDef } from "./agent-
|
|
2
|
+
import { $t as ThinkingLevel, D as SkillConfig, Ft as AgentStats, It as ChildRunStats, Lt as McpServerConfig, N as Session, Xt as SessionTurn, an as TurnUsage, i as AgentOptions, l as SkillActivationState, ot as Provider, r as AgentHooks, s as ActiveSkill, tn as ToolResultContent, v as ToolContext, y as ToolDef } from "./agent-DxBoKDba.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";
|
|
@@ -508,6 +508,103 @@ declare const BYTES_PER_TOKEN = 4;
|
|
|
508
508
|
*/
|
|
509
509
|
declare function estimateTokens(text: string): number;
|
|
510
510
|
//#endregion
|
|
511
|
+
//#region src/logger.d.ts
|
|
512
|
+
type LogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
513
|
+
interface LogRecord {
|
|
514
|
+
level: LogLevel;
|
|
515
|
+
/** Unix ms — set by `Logger` at emit time. */
|
|
516
|
+
timestamp: number;
|
|
517
|
+
/** Free-form message. Sinks render this as the human-facing line. */
|
|
518
|
+
message: string;
|
|
519
|
+
/** Structured fields. Correlation ids land here automatically. */
|
|
520
|
+
attrs: Record<string, unknown>;
|
|
521
|
+
}
|
|
522
|
+
interface LogSink {
|
|
523
|
+
emit: (record: LogRecord) => void;
|
|
524
|
+
}
|
|
525
|
+
interface Logger {
|
|
526
|
+
debug: (message: string, attrs?: Record<string, unknown>) => void;
|
|
527
|
+
info: (message: string, attrs?: Record<string, unknown>) => void;
|
|
528
|
+
warn: (message: string, attrs?: Record<string, unknown>) => void;
|
|
529
|
+
error: (message: string, attrs?: Record<string, unknown>) => void;
|
|
530
|
+
/**
|
|
531
|
+
* Returns a child logger that prepends the given attributes onto every
|
|
532
|
+
* subsequent emit. Equivalent to `pino.child` / `winston.child`. The
|
|
533
|
+
* parent and child share the same sink — children are zero-cost.
|
|
534
|
+
*/
|
|
535
|
+
with: (extra: Record<string, unknown>) => Logger;
|
|
536
|
+
/**
|
|
537
|
+
* Inspectable baseline attributes — handy for tests and for hook
|
|
538
|
+
* handlers that want to clone-with-extra without recursing.
|
|
539
|
+
*/
|
|
540
|
+
readonly baseAttributes: Readonly<Record<string, unknown>>;
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* Build a Logger from a sink. Stateless and cheap; create one per agent
|
|
544
|
+
* (or per app) and use `.with()` to attach correlation ids per-call.
|
|
545
|
+
*/
|
|
546
|
+
declare function createLogger(sink: LogSink, baseAttributes?: Readonly<Record<string, unknown>>): Logger;
|
|
547
|
+
interface ConsoleSinkOptions {
|
|
548
|
+
/**
|
|
549
|
+
* Minimum level to emit. Defaults to `'info'` — `debug` is dropped so
|
|
550
|
+
* the harness's lifecycle logging is not noisy by default. Set to
|
|
551
|
+
* `'debug'` to see every event.
|
|
552
|
+
*/
|
|
553
|
+
minLevel?: LogLevel;
|
|
554
|
+
/** Custom output stream. Defaults to `process.stderr` so logs don't pollute stdout. */
|
|
555
|
+
stream?: {
|
|
556
|
+
write: (chunk: string) => void;
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* Human-readable terminal sink. Renders each record as
|
|
561
|
+
* `<ISO timestamp> <LEVEL> <message> <attrs as kv pairs>`.
|
|
562
|
+
*
|
|
563
|
+
* Honors `process.stderr` by default so log lines don't interleave with
|
|
564
|
+
* the agent's stdout-bound output (chat responses, JSON results).
|
|
565
|
+
*/
|
|
566
|
+
declare function consoleSink(options?: ConsoleSinkOptions): LogSink;
|
|
567
|
+
/**
|
|
568
|
+
* One-JSON-object-per-line sink. Suitable for piping into log aggregators
|
|
569
|
+
* (Datadog Agent, Fluent Bit, Loki, Vector) that expect JSONL.
|
|
570
|
+
*/
|
|
571
|
+
declare function jsonSink(options?: ConsoleSinkOptions): LogSink;
|
|
572
|
+
interface LoggingHooksOptions {
|
|
573
|
+
logger: Logger;
|
|
574
|
+
/**
|
|
575
|
+
* Minimum interesting level for harness-emitted lines. Default `'info'`.
|
|
576
|
+
* Set to `'debug'` to see every tool dispatch / stream event. Set to
|
|
577
|
+
* `'warn'` to mute the chatty ones and only see failures + budgets.
|
|
578
|
+
*/
|
|
579
|
+
level?: LogLevel;
|
|
580
|
+
/**
|
|
581
|
+
* When true (default), lifecycle events (`agent:start`, `turn:before`,
|
|
582
|
+
* `tool:before`, `mcp:bootstrap:start`) emit at `debug` level so they
|
|
583
|
+
* stay quiet by default. Set false to mute them entirely regardless of
|
|
584
|
+
* the configured minimum level — useful when piping into a tracer
|
|
585
|
+
* that already captures lifecycle.
|
|
586
|
+
*/
|
|
587
|
+
includeLifecycle?: boolean;
|
|
588
|
+
}
|
|
589
|
+
interface LoggingHookSet {
|
|
590
|
+
install: (hooks: Hookable<AgentHooks>) => () => void;
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* Install a bundle of hook handlers that emit a structured line per
|
|
594
|
+
* relevant lifecycle event, automatically attaching correlation ids
|
|
595
|
+
* (`runId`, `turnId`, `callId`, `childId`, `depth`, `agentName`).
|
|
596
|
+
*
|
|
597
|
+
* @example
|
|
598
|
+
* ```ts
|
|
599
|
+
* const logger = createLogger(consoleSink({ minLevel: 'debug' }), { service: 'tui' })
|
|
600
|
+
* const lh = createLoggingHooks({ logger })
|
|
601
|
+
* const uninstall = lh.install(agent.hooks)
|
|
602
|
+
* try { await agent.run({ prompt }) }
|
|
603
|
+
* finally { uninstall() }
|
|
604
|
+
* ```
|
|
605
|
+
*/
|
|
606
|
+
declare function createLoggingHooks(options: LoggingHooksOptions): LoggingHookSet;
|
|
607
|
+
//#endregion
|
|
511
608
|
//#region src/loop.d.ts
|
|
512
609
|
/**
|
|
513
610
|
* Canonical tool_result text emitted when a tool call is interrupted by the
|
|
@@ -901,6 +998,184 @@ interface OAuthCallbackOptions {
|
|
|
901
998
|
*/
|
|
902
999
|
declare function startOAuthCallback(opts?: OAuthCallbackOptions): Promise<OAuthCallbackHandle>;
|
|
903
1000
|
//#endregion
|
|
1001
|
+
//#region src/metrics.d.ts
|
|
1002
|
+
type MetricAttributes = Record<string, string | number | boolean | undefined>;
|
|
1003
|
+
interface Counter {
|
|
1004
|
+
add: (value: number, attributes?: MetricAttributes) => void;
|
|
1005
|
+
}
|
|
1006
|
+
interface Histogram {
|
|
1007
|
+
record: (value: number, attributes?: MetricAttributes) => void;
|
|
1008
|
+
}
|
|
1009
|
+
interface UpDownCounter {
|
|
1010
|
+
add: (value: number, attributes?: MetricAttributes) => void;
|
|
1011
|
+
}
|
|
1012
|
+
interface InstrumentOptions {
|
|
1013
|
+
description?: string;
|
|
1014
|
+
unit?: string;
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* Minimal Meter interface — structurally identical to OTel's `Meter`.
|
|
1018
|
+
* Hosts passing `metrics.getMeter(name)` (from `@opentelemetry/api`)
|
|
1019
|
+
* satisfy this without adaptation.
|
|
1020
|
+
*/
|
|
1021
|
+
interface Meter {
|
|
1022
|
+
createCounter: (name: string, options?: InstrumentOptions) => Counter;
|
|
1023
|
+
createHistogram: (name: string, options?: InstrumentOptions) => Histogram;
|
|
1024
|
+
createUpDownCounter: (name: string, options?: InstrumentOptions) => UpDownCounter;
|
|
1025
|
+
}
|
|
1026
|
+
interface MetricsHooksOptions {
|
|
1027
|
+
meter: Meter;
|
|
1028
|
+
/**
|
|
1029
|
+
* Optional prefix prepended to every instrument name. Default: no prefix
|
|
1030
|
+
* (instrument names follow OTel Gen AI semantic conventions verbatim,
|
|
1031
|
+
* which is the most-portable shape). Set to e.g. `'zidane.'` to
|
|
1032
|
+
* namespace inside a shared meter registry.
|
|
1033
|
+
*/
|
|
1034
|
+
namespace?: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* Optional baseline attributes applied to every measurement. Typical
|
|
1037
|
+
* use: `{ service: 'tui', env: 'prod' }`. Per-event attributes win on
|
|
1038
|
+
* key collision.
|
|
1039
|
+
*/
|
|
1040
|
+
baseAttributes?: MetricAttributes;
|
|
1041
|
+
/**
|
|
1042
|
+
* Error sink for meter failures. The helper still swallows the throw
|
|
1043
|
+
* so a broken backend can't crash a run; this callback surfaces the
|
|
1044
|
+
* failure for ops dashboards.
|
|
1045
|
+
*/
|
|
1046
|
+
onError?: (kind: string, err: unknown) => void;
|
|
1047
|
+
}
|
|
1048
|
+
interface MetricsHookSet {
|
|
1049
|
+
install: (hooks: Hookable<AgentHooks>) => () => void;
|
|
1050
|
+
}
|
|
1051
|
+
/**
|
|
1052
|
+
* Build a set of metrics hook handlers that can be installed on an agent.
|
|
1053
|
+
*
|
|
1054
|
+
* @example OpenTelemetry
|
|
1055
|
+
* ```ts
|
|
1056
|
+
* import { metrics } from '@opentelemetry/api'
|
|
1057
|
+
* const meter = metrics.getMeter('zidane')
|
|
1058
|
+
* const m = createMetricsHooks({ meter, baseAttributes: { service: 'tui' } })
|
|
1059
|
+
* const uninstall = m.install(agent.hooks)
|
|
1060
|
+
* try { await agent.run({ prompt }) }
|
|
1061
|
+
* finally { uninstall() }
|
|
1062
|
+
* ```
|
|
1063
|
+
*/
|
|
1064
|
+
declare function createMetricsHooks(options: MetricsHooksOptions): MetricsHookSet;
|
|
1065
|
+
//#endregion
|
|
1066
|
+
//#region src/run-summary.d.ts
|
|
1067
|
+
interface RunSummaryTokens {
|
|
1068
|
+
input: number;
|
|
1069
|
+
output: number;
|
|
1070
|
+
cacheRead: number;
|
|
1071
|
+
cacheCreation: number;
|
|
1072
|
+
cost?: number;
|
|
1073
|
+
/** First observable byte from the provider, ms from run start. */
|
|
1074
|
+
ttftMs?: number;
|
|
1075
|
+
}
|
|
1076
|
+
interface RunSummaryByModel {
|
|
1077
|
+
modelId: string;
|
|
1078
|
+
input: number;
|
|
1079
|
+
output: number;
|
|
1080
|
+
cacheRead: number;
|
|
1081
|
+
cacheCreation: number;
|
|
1082
|
+
cost: number;
|
|
1083
|
+
turns: number;
|
|
1084
|
+
}
|
|
1085
|
+
interface RunSummaryError {
|
|
1086
|
+
kind: 'stream' | 'tool' | 'mcp-tool' | 'mcp' | 'spawn';
|
|
1087
|
+
message: string;
|
|
1088
|
+
errorType?: string;
|
|
1089
|
+
turnId?: string;
|
|
1090
|
+
callId?: string;
|
|
1091
|
+
server?: string;
|
|
1092
|
+
toolName?: string;
|
|
1093
|
+
childId?: string;
|
|
1094
|
+
statusCode?: number;
|
|
1095
|
+
requestId?: string;
|
|
1096
|
+
}
|
|
1097
|
+
interface RunSummaryBlock {
|
|
1098
|
+
callId: string;
|
|
1099
|
+
toolName: string;
|
|
1100
|
+
outcome: 'gate-block' | 'unknown' | 'invalid-input';
|
|
1101
|
+
reason?: string;
|
|
1102
|
+
}
|
|
1103
|
+
interface RunSummaryValidation {
|
|
1104
|
+
callId: string;
|
|
1105
|
+
toolName: string;
|
|
1106
|
+
reason: string;
|
|
1107
|
+
}
|
|
1108
|
+
interface RunSummaryBudget {
|
|
1109
|
+
kind: 'bytes' | 'tool-count';
|
|
1110
|
+
/** Tool name (for `'tool-count'`); absent for byte budgets. */
|
|
1111
|
+
toolName?: string;
|
|
1112
|
+
/** `mode` for `'tool-count'`; absent for byte budgets. */
|
|
1113
|
+
mode?: 'steer' | 'block';
|
|
1114
|
+
observed: number;
|
|
1115
|
+
limit: number;
|
|
1116
|
+
turnId?: string;
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* Postmortem snapshot of one `agent.run()`. Strictly serializable — every
|
|
1120
|
+
* field round-trips through `JSON.stringify` / `JSON.parse` without loss
|
|
1121
|
+
* so a log aggregator can ingest it as-is.
|
|
1122
|
+
*/
|
|
1123
|
+
interface RunSummary {
|
|
1124
|
+
runId?: string;
|
|
1125
|
+
parentRunId?: string;
|
|
1126
|
+
depth: number;
|
|
1127
|
+
agentName?: string;
|
|
1128
|
+
startedAt: number;
|
|
1129
|
+
endedAt: number;
|
|
1130
|
+
durationMs: number;
|
|
1131
|
+
status: 'completed' | 'aborted';
|
|
1132
|
+
turns: number;
|
|
1133
|
+
totals: RunSummaryTokens;
|
|
1134
|
+
byModel: RunSummaryByModel[];
|
|
1135
|
+
errors: RunSummaryError[];
|
|
1136
|
+
blocks: RunSummaryBlock[];
|
|
1137
|
+
validationRejects: RunSummaryValidation[];
|
|
1138
|
+
budgetEvents: RunSummaryBudget[];
|
|
1139
|
+
/** Counts of pairing repairs, keyed by repair mode. */
|
|
1140
|
+
pairingRepairs: Record<string, number>;
|
|
1141
|
+
/**
|
|
1142
|
+
* Postmortem snapshots of child runs that bubbled their stats up via
|
|
1143
|
+
* `spawn:complete`. Only present when the run actually spawned.
|
|
1144
|
+
*/
|
|
1145
|
+
children?: RunSummary[];
|
|
1146
|
+
}
|
|
1147
|
+
interface RunSummaryCollectorOptions {
|
|
1148
|
+
/**
|
|
1149
|
+
* Called with the assembled {@link RunSummary} on every `agent:done`.
|
|
1150
|
+
* Synchronous — heavy I/O should be deferred (e.g. via `setImmediate`).
|
|
1151
|
+
*/
|
|
1152
|
+
onSummary?: (summary: RunSummary) => void;
|
|
1153
|
+
}
|
|
1154
|
+
interface RunSummaryCollector {
|
|
1155
|
+
/** Install the collector's hook handlers. Returns an uninstall fn. */
|
|
1156
|
+
install: (hooks: Hookable<AgentHooks>) => () => void;
|
|
1157
|
+
/** Most-recent summary; `undefined` until the first `agent:done` fires. */
|
|
1158
|
+
latest: () => RunSummary | undefined;
|
|
1159
|
+
}
|
|
1160
|
+
/**
|
|
1161
|
+
* Build a run-summary collector. State is created fresh inside each
|
|
1162
|
+
* `install()` call, so a single collector instance can be installed
|
|
1163
|
+
* across multiple agents without attribution cross-talk. `latest()`
|
|
1164
|
+
* returns the most-recent summary across **any** install — install
|
|
1165
|
+
* per-agent collectors if you need separate post-run snapshots.
|
|
1166
|
+
*
|
|
1167
|
+
* @example
|
|
1168
|
+
* ```ts
|
|
1169
|
+
* const collector = createRunSummaryCollector({
|
|
1170
|
+
* onSummary: s => console.log(JSON.stringify(s)),
|
|
1171
|
+
* })
|
|
1172
|
+
* const uninstall = collector.install(agent.hooks)
|
|
1173
|
+
* try { await agent.run({ prompt }) }
|
|
1174
|
+
* finally { uninstall() }
|
|
1175
|
+
* ```
|
|
1176
|
+
*/
|
|
1177
|
+
declare function createRunSummaryCollector(options?: RunSummaryCollectorOptions): RunSummaryCollector;
|
|
1178
|
+
//#endregion
|
|
904
1179
|
//#region src/stats.d.ts
|
|
905
1180
|
/**
|
|
906
1181
|
* Per-model usage rollup produced by {@link statsByModel}.
|
|
@@ -1231,23 +1506,124 @@ declare function validateToolArgs(input: Record<string, unknown>, schema: Record
|
|
|
1231
1506
|
declare const writeFile: ToolDef;
|
|
1232
1507
|
//#endregion
|
|
1233
1508
|
//#region src/tracing.d.ts
|
|
1234
|
-
/** Minimal span shape — any tracer that provides these
|
|
1509
|
+
/** Minimal span shape — any tracer that provides these methods is compatible. */
|
|
1235
1510
|
interface Span {
|
|
1236
1511
|
/** Close the span. Called exactly once per span. */
|
|
1237
1512
|
end: () => void;
|
|
1238
1513
|
/** Optional: attach additional attributes after the span is started (ignored if unsupported). */
|
|
1239
1514
|
setAttributes?: (attrs: Record<string, unknown>) => void;
|
|
1515
|
+
/**
|
|
1516
|
+
* Optional: record a structured event on the span. Used for non-span
|
|
1517
|
+
* occurrences (gate blocks, validation rejects, budget hits, pairing
|
|
1518
|
+
* repairs). Maps to OTel's `Span.addEvent` and Sentry's `addBreadcrumb`.
|
|
1519
|
+
* Tracers without an event surface should treat this as a no-op (the
|
|
1520
|
+
* helper falls back to `setAttributes` with an `event.*` key prefix).
|
|
1521
|
+
*/
|
|
1522
|
+
addEvent?: (name: string, attrs?: Record<string, unknown>) => void;
|
|
1240
1523
|
}
|
|
1241
|
-
/**
|
|
1242
|
-
|
|
1524
|
+
/**
|
|
1525
|
+
* Function that opens a span. Caller-provided so we stay tracer-agnostic.
|
|
1526
|
+
*
|
|
1527
|
+
* `parentContext` carries opaque trace metadata propagated from another
|
|
1528
|
+
* agent (typically a W3C `{ traceparent, tracestate }` carrier received on
|
|
1529
|
+
* `agent:start.tracingContext` after a parent agent's tracer injected it on
|
|
1530
|
+
* `spawn:before`). Implementations that integrate with OTel should extract
|
|
1531
|
+
* the carrier into a `Context` and use it as the parent when opening the
|
|
1532
|
+
* span; implementations that don't care about cross-agent linkage can
|
|
1533
|
+
* ignore the third argument entirely.
|
|
1534
|
+
*/
|
|
1535
|
+
type StartSpan = (name: string, attrs?: Record<string, unknown>, parentContext?: Readonly<Record<string, string>>) => Span;
|
|
1536
|
+
type TracingConventions = 'sentry' | 'otel' | 'both';
|
|
1243
1537
|
interface TracingHooksOptions {
|
|
1244
1538
|
/** Tracer seam. Receives a span name + attributes; must return a `Span`. */
|
|
1245
1539
|
startSpan: StartSpan;
|
|
1246
1540
|
/**
|
|
1247
|
-
* Optional attribute namespace. Prepended to every span name
|
|
1248
|
-
*
|
|
1541
|
+
* Optional attribute namespace. Prepended to every span name with a `/`
|
|
1542
|
+
* separator (e.g. `"agent"` → `agent/chat <model>`, `agent/execute_tool Bash`).
|
|
1543
|
+
*
|
|
1544
|
+
* Empty / undefined = no prefix.
|
|
1249
1545
|
*/
|
|
1250
1546
|
namespace?: string;
|
|
1547
|
+
/**
|
|
1548
|
+
* Which Gen-AI attribute conventions to emit.
|
|
1549
|
+
*
|
|
1550
|
+
* - `'sentry'` (default) — Sentry AI Agents conventions. Most common
|
|
1551
|
+
* choice — Sentry, Datadog AI, Honeycomb derived dashboards and
|
|
1552
|
+
* Langfuse all consume these.
|
|
1553
|
+
* - `'otel'` — vendor-neutral OpenTelemetry Gen AI semconv v1.36.
|
|
1554
|
+
* Diverges from Sentry on cache-token keys, cost keys, and TTFT unit.
|
|
1555
|
+
* - `'both'` — emit every variant. Doubles the per-span attribute
|
|
1556
|
+
* payload; pick when shipping to multiple backends with different
|
|
1557
|
+
* ingestion conventions.
|
|
1558
|
+
*/
|
|
1559
|
+
conventions?: TracingConventions;
|
|
1560
|
+
/**
|
|
1561
|
+
* Capture the actual prompt / completion text on spans
|
|
1562
|
+
* (`gen_ai.input.messages`, `gen_ai.output.messages`,
|
|
1563
|
+
* `gen_ai.system_instructions`, `gen_ai.tool.definitions`,
|
|
1564
|
+
* `gen_ai.tool.call.arguments`, `gen_ai.tool.call.result`).
|
|
1565
|
+
*
|
|
1566
|
+
* Defaults to `true` — the Sentry AI Agents dashboard requires these
|
|
1567
|
+
* fields to render the conversation viewer. Set `false` to drop them
|
|
1568
|
+
* for privacy / cost reasons; everything still goes through `redact`
|
|
1569
|
+
* when enabled, so most consumers want it on with a redactor wired up
|
|
1570
|
+
* rather than off entirely.
|
|
1571
|
+
*/
|
|
1572
|
+
captureMessageContent?: boolean;
|
|
1573
|
+
/**
|
|
1574
|
+
* Emit legacy attribute keys (`inputTokens`, `outputTokens`, `toolName`,
|
|
1575
|
+
* `displayName`, `finishReason`, `modelId`) alongside the new
|
|
1576
|
+
* `gen_ai.*` semconv keys. Defaults to `true` so existing dashboards
|
|
1577
|
+
* keep working. Set `false` once you've migrated all consumers off the
|
|
1578
|
+
* legacy names.
|
|
1579
|
+
*/
|
|
1580
|
+
legacyAttributes?: boolean;
|
|
1581
|
+
/**
|
|
1582
|
+
* Error sink for tracer failures. Replaces the historic silent-swallow.
|
|
1583
|
+
* Called when `Span.end()`, `setAttributes()`, `addEvent()`, or
|
|
1584
|
+
* `startSpan()` throws — so degraded tracers stay visible. The helper
|
|
1585
|
+
* still does not let tracer errors propagate into the agent loop.
|
|
1586
|
+
*
|
|
1587
|
+
* `kind` identifies which step failed (`'startSpan'`, `'end'`,
|
|
1588
|
+
* `'setAttributes'`, `'addEvent'`, `'redact'`, `'getActiveTraceContext'`).
|
|
1589
|
+
* Default: no-op (silent).
|
|
1590
|
+
*/
|
|
1591
|
+
onError?: (kind: string, err: unknown) => void;
|
|
1592
|
+
/**
|
|
1593
|
+
* Optional callback the helper invokes on `spawn:before` (after opening
|
|
1594
|
+
* the spawn span) to read the active trace context. Whatever it returns
|
|
1595
|
+
* is written into `ctx.tracingContext` and forwarded to the child's
|
|
1596
|
+
* `agent.run({ tracingContext })`. Typical use:
|
|
1597
|
+
*
|
|
1598
|
+
* ```ts
|
|
1599
|
+
* getActiveTraceContext: () => {
|
|
1600
|
+
* const carrier: Record<string, string> = {}
|
|
1601
|
+
* propagation.inject(context.active(), carrier)
|
|
1602
|
+
* return carrier
|
|
1603
|
+
* }
|
|
1604
|
+
* ```
|
|
1605
|
+
*
|
|
1606
|
+
* Returning `undefined` or an empty object leaves the carrier empty
|
|
1607
|
+
* and the child runs with no parent context. The helper's own
|
|
1608
|
+
* `propagator` is preferred over this when both are set (the
|
|
1609
|
+
* propagator runs inside the helper; this callback is the escape
|
|
1610
|
+
* hatch for hosts wanting full control).
|
|
1611
|
+
*/
|
|
1612
|
+
getActiveTraceContext?: () => Readonly<Record<string, string>> | undefined;
|
|
1613
|
+
/**
|
|
1614
|
+
* Optional in-process span redactor. When set, every potentially
|
|
1615
|
+
* sensitive string (tool input, tool result, system prompt) flows
|
|
1616
|
+
* through this fn before landing on a span attribute / event. Returning
|
|
1617
|
+
* the input unchanged is a no-op.
|
|
1618
|
+
*
|
|
1619
|
+
* Composes with the harness-wide `tracing:redact` hook: if a host has
|
|
1620
|
+
* already registered a hook handler that mutates `ctx.redacted`, the
|
|
1621
|
+
* tracer reuses that pipeline; setting `redact` here registers an extra
|
|
1622
|
+
* step that runs only for the tracer's attributes. The hook is the
|
|
1623
|
+
* canonical path; `redact` is the convenience surface for tracer-only
|
|
1624
|
+
* setups.
|
|
1625
|
+
*/
|
|
1626
|
+
redact?: (kind: string, value: string, meta?: Readonly<Record<string, unknown>>) => string;
|
|
1251
1627
|
}
|
|
1252
1628
|
/** Value returned by {@link createTracingHooks} — install entrypoint. */
|
|
1253
1629
|
interface TracingHookSet {
|
|
@@ -1271,8 +1647,85 @@ interface TracingHookSet {
|
|
|
1271
1647
|
* try { await agent.run({ prompt }) }
|
|
1272
1648
|
* finally { uninstall() }
|
|
1273
1649
|
* ```
|
|
1650
|
+
*
|
|
1651
|
+
* @example OpenTelemetry with parent-context propagation
|
|
1652
|
+
* ```ts
|
|
1653
|
+
* import { trace, context, propagation } from '@opentelemetry/api'
|
|
1654
|
+
*
|
|
1655
|
+
* const tracer = trace.getTracer('zidane')
|
|
1656
|
+
* const tracing = createTracingHooks({
|
|
1657
|
+
* startSpan: (name, attrs, parentCtx) => {
|
|
1658
|
+
* const ctx = parentCtx ? propagation.extract(context.active(), parentCtx) : context.active()
|
|
1659
|
+
* return tracer.startSpan(name, { attributes: attrs }, ctx)
|
|
1660
|
+
* },
|
|
1661
|
+
* getActiveTraceContext: () => {
|
|
1662
|
+
* const carrier: Record<string, string> = {}
|
|
1663
|
+
* propagation.inject(context.active(), carrier)
|
|
1664
|
+
* return carrier
|
|
1665
|
+
* },
|
|
1666
|
+
* })
|
|
1667
|
+
* ```
|
|
1274
1668
|
*/
|
|
1275
1669
|
declare function createTracingHooks(options: TracingHooksOptions): TracingHookSet;
|
|
1670
|
+
/**
|
|
1671
|
+
* OpenTelemetry Gen AI semantic-convention attribute keys used by the
|
|
1672
|
+
* built-in tracer. Exported so consumers integrating with raw OTel SDKs
|
|
1673
|
+
* (instead of going through `createTracingHooks`) can stay aligned with
|
|
1674
|
+
* the names the harness itself emits.
|
|
1675
|
+
*/
|
|
1676
|
+
declare const GEN_AI_ATTRIBUTES: {
|
|
1677
|
+
readonly system: "gen_ai.system";
|
|
1678
|
+
readonly operationName: "gen_ai.operation.name";
|
|
1679
|
+
readonly requestModel: "gen_ai.request.model";
|
|
1680
|
+
readonly responseModel: "gen_ai.response.model";
|
|
1681
|
+
readonly responseFinishReasons: "gen_ai.response.finish_reasons";
|
|
1682
|
+
readonly responseId: "gen_ai.response.id";
|
|
1683
|
+
readonly responseStreaming: "gen_ai.response.streaming";
|
|
1684
|
+
readonly responseTokensPerSecond: "gen_ai.response.tokens_per_second";
|
|
1685
|
+
readonly responseTimeToFirstTokenSeconds: "gen_ai.response.time_to_first_token";
|
|
1686
|
+
readonly responseTimeToFirstTokenMs: "gen_ai.client.time_to_first_token";
|
|
1687
|
+
readonly usageInputTokens: "gen_ai.usage.input_tokens";
|
|
1688
|
+
readonly usageOutputTokens: "gen_ai.usage.output_tokens";
|
|
1689
|
+
readonly usageTotalTokens: "gen_ai.usage.total_tokens";
|
|
1690
|
+
readonly usageInputTokensCached: "gen_ai.usage.input_tokens.cached";
|
|
1691
|
+
readonly usageInputTokensCacheWrite: "gen_ai.usage.input_tokens.cache_write";
|
|
1692
|
+
readonly usageOutputTokensReasoning: "gen_ai.usage.output_tokens.reasoning";
|
|
1693
|
+
readonly usageCacheReadInputTokens: "gen_ai.usage.cache_read_input_tokens";
|
|
1694
|
+
readonly usageCacheCreationInputTokens: "gen_ai.usage.cache_creation_input_tokens";
|
|
1695
|
+
readonly usageReasoningTokens: "gen_ai.usage.reasoning_tokens";
|
|
1696
|
+
readonly costTotalTokens: "gen_ai.cost.total_tokens";
|
|
1697
|
+
readonly costInputTokens: "gen_ai.cost.input_tokens";
|
|
1698
|
+
readonly costOutputTokens: "gen_ai.cost.output_tokens";
|
|
1699
|
+
readonly usageCostUsd: "gen_ai.usage.cost_usd";
|
|
1700
|
+
readonly toolName: "gen_ai.tool.name";
|
|
1701
|
+
readonly toolDescription: "gen_ai.tool.description";
|
|
1702
|
+
readonly toolType: "gen_ai.tool.type";
|
|
1703
|
+
readonly toolCallId: "gen_ai.tool.call.id";
|
|
1704
|
+
readonly toolCallArguments: "gen_ai.tool.call.arguments";
|
|
1705
|
+
readonly toolCallResult: "gen_ai.tool.call.result";
|
|
1706
|
+
readonly toolMessage: "gen_ai.tool.message";
|
|
1707
|
+
readonly toolInputDeprecated: "gen_ai.tool.input";
|
|
1708
|
+
readonly toolOutputDeprecated: "gen_ai.tool.output";
|
|
1709
|
+
readonly requestMaxTokens: "gen_ai.request.max_tokens";
|
|
1710
|
+
readonly requestTemperature: "gen_ai.request.temperature";
|
|
1711
|
+
readonly requestTopP: "gen_ai.request.top_p";
|
|
1712
|
+
readonly requestTopK: "gen_ai.request.top_k";
|
|
1713
|
+
readonly requestSeed: "gen_ai.request.seed";
|
|
1714
|
+
readonly requestFrequencyPenalty: "gen_ai.request.frequency_penalty";
|
|
1715
|
+
readonly requestPresencePenalty: "gen_ai.request.presence_penalty";
|
|
1716
|
+
readonly inputMessages: "gen_ai.input.messages";
|
|
1717
|
+
readonly outputMessages: "gen_ai.output.messages";
|
|
1718
|
+
readonly systemInstructions: "gen_ai.system_instructions";
|
|
1719
|
+
readonly toolDefinitions: "gen_ai.tool.definitions";
|
|
1720
|
+
readonly agentName: "gen_ai.agent.name";
|
|
1721
|
+
readonly agentRunId: "gen_ai.agent.run.id";
|
|
1722
|
+
readonly agentParentRunId: "gen_ai.agent.parent_run.id";
|
|
1723
|
+
readonly agentDepth: "gen_ai.agent.depth";
|
|
1724
|
+
readonly pipelineName: "gen_ai.pipeline.name";
|
|
1725
|
+
readonly turn: "gen_ai.agent.turn";
|
|
1726
|
+
readonly mcpServer: "gen_ai.mcp.server";
|
|
1727
|
+
readonly mcpToolCount: "gen_ai.mcp.tool_count";
|
|
1728
|
+
};
|
|
1276
1729
|
//#endregion
|
|
1277
1730
|
//#region src/zod.d.ts
|
|
1278
1731
|
/**
|
|
@@ -1371,5 +1824,5 @@ declare function definePreset(config: Preset): Preset;
|
|
|
1371
1824
|
*/
|
|
1372
1825
|
declare function composePresets(...presets: Preset[]): Preset;
|
|
1373
1826
|
//#endregion
|
|
1374
|
-
export {
|
|
1375
|
-
//# sourceMappingURL=index-
|
|
1827
|
+
export { Histogram as $, CompactResult as $t, shell as A, TOOL_USE_SKIPPED_MESSAGE as At, flattenTurns as B, createLoggingHooks as Bt, createSpawnTool as C, PersistOutcome as Ct, createSkillsRunScriptTool as D, resolvePersistDir as Dt, SkillsRunScriptToolOptions as E, maybePersistToolResult as Et, createInteractionTool as F, Logger as Ft, RunSummaryByModel as G, PostCompactAttachments as Gt, RunSummary as H, BYTES_PER_TOKEN as Ht, grep as I, LoggingHookSet as It, RunSummaryError as J, buildPostCompactAttachments as Jt, RunSummaryCollector as K, PostCompactRestoreOptions as Kt, glob as L, LoggingHooksOptions as Lt, multiEdit as M, LogLevel as Mt, listFiles as N, LogRecord as Nt, SkillsReadToolOptions as O, INTERRUPT_MESSAGE_FOR_TOOL_USE as Ot, InteractionToolOptions as P, LogSink as Pt, Counter as Q, CompactOptions as Qt, edit as R, consoleSink as Rt, SpawnToolState as S, truncateHeadForPtlRetry as Sn, PersistInput as St, createSkillsUseTool as T, cleanupPersistedSession as Tt, RunSummaryBlock as U, estimateTokens as Ut, statsByModel as V, jsonSink as Vt, RunSummaryBudget as W, utf8ByteLength as Wt, RunSummaryValidation as X, selectFilesFromSession as Xt, RunSummaryTokens as Y, selectFilesFromReadState as Yt, createRunSummaryCollector as Z, selectRecentFiles as Zt, LazyToolEntry as _, SummaryToTurnInput as _n, McpOAuthProviderOptions as _t, basicTools as a, CompactPromptBuilder as an, UpDownCounter as at, ChildAgent as b, stripImagesFromTurns as bn, PERSISTED_STUB_PREFIX as bt, Span as c, TRAILER as cn, OAuthCallbackOptions as ct, TracingHookSet as d, buildFullCompactPrompt as dn, LoginMcpServerOptions as dt, compactConversation as en, InstrumentOptions as et, TracingHooksOptions as f, buildTailCompactPrompt as fn, LoginMcpServerResult as ft, validateToolArgs as g, CompactionSlice as gn, McpOAuthProvider as gt, ValidationResult as h, CompactScope as hn, McpCredentialStore as ht, _default as i, CompactDirection as in, MetricsHooksOptions as it, readFile as j, ConsoleSinkOptions as jt, createSkillsReadTool as k, SHELL_CASCADE_CANCEL_MESSAGE as kt, StartSpan as l, buildCompactPrompt as ln, OAuthCallbackResult as lt, writeFile as m, ANCHOR_PREVIEW_MAX_CHARS as mn, McpCredentialEntry as mt, composePresets as n, CompactPromptTooLongError as nn, MetricAttributes as nt, zodToJsonSchema as o, CompactPromptOptions as on, createMetricsHooks as ot, createTracingHooks as p, buildUpToCompactPrompt as pn, loginMcpServer as pt, RunSummaryCollectorOptions as q, RecentFile as qt, definePreset as r, BASE_INSTRUCTIONS as rn, MetricsHookSet as rt, GEN_AI_ATTRIBUTES as s, NO_TOOLS_PREAMBLE as sn, OAuthCallbackHandle as st, Preset as t, CompactInvalidInputError as tn, Meter as tt, TracingConventions as u, buildFromCompactPrompt as un, startOAuthCallback as ut, ToolSearchToolOptions as v, anchorPreviewFor as vn, createMemoryMcpCredentialStore as vt, SkillsUseToolOptions as w, buildPersistedStub as wt, SpawnToolOptions as x, summaryToTurn as xn, PERSISTENCE_PREVIEW_BYTES as xt, createToolSearchTool as y, sliceForCompaction as yn, hasAuthorizationHeader as yt, ModelUsage as z, createLogger as zt };
|
|
1828
|
+
//# sourceMappingURL=index-B2VOOijU.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-B2VOOijU.d.ts","names":[],"sources":["../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/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/run-summary.ts","../src/stats.ts","../src/tools/edit.ts","../src/tools/glob.ts","../src/tools/grep.ts","../src/tools/interaction.ts","../src/tools/list-files.ts","../src/tools/multi-edit.ts","../src/tools/read-file.ts","../src/tools/shell.ts","../src/tools/skills-read.ts","../src/tools/skills-run-script.ts","../src/tools/skills-use.ts","../src/tools/spawn.ts","../src/tools/tool-search.ts","../src/tools/validation.ts","../src/tools/write-file.ts","../src/tracing.ts","../src/zod.ts","../src/presets/basic.ts","../src/presets/index.ts"],"mappings":";;;;;;;AAwBA;;;;;;;;AAAA,KAAY,YAAA;EAGJ,IAAA;EAAc,MAAA;AAAA;EACd,IAAA;EAAe,MAAA;AAAA;AAAA,UAEN,eAAA;EAIf;EAFA,WAAA,WAAsB,WAAA;EAES;EAA/B,SAAA,WAAoB,WAAA;AAAA;;;;;;;;;;;;;;;iBAiBN,kBAAA,CACd,KAAA,WAAgB,WAAA,IAChB,KAAA,EAAO,YAAA,EACP,SAAA,WACC,eAAA;AAuEH;;;;;;;;;AAmEA;;;;;;AAnEA,iBAAgB,oBAAA,CAAqB,KAAA,WAAgB,WAAA,KAAgB,WAAA;;;AAoLrE;;;;;AAOA;;;;;AAsBA;;;;;;;iBA9IgB,uBAAA,CAAwB,KAAA,WAAgB,WAAA,KAAgB,WAAA;;;;;AAiLxE;;cAhEa,wBAAA;;;;;;iBAOG,gBAAA,CAAiB,IAAA,EAAM,WAAA;;;;ACxSvC;;;;;AAEA;;UD4TiB,kBAAA;EC3TY;ED6T3B,OAAA;EC7TW;ED+TX,eAAA;ECxTa;ED0Tb,KAAA;EClTU;EDoTV,KAAA,EAAO,SAAA;;EAEP,WAAA;AAAA;ACzSF;;;;;AAYA;;;;;AA4BA;;;;;A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W;AAItC;;;;;AAIA;;;;;AAWA;;;;;;;;AChIA;E4BuJE,qBAAA,SAA8B,QAAA,CAAS,MAAA;;;;;;;;A5B1IzC;;;;;;E4BwJE,MAAA,IAAU,IAAA,UAAc,KAAA,UAAe,IAAA,GAAO,QAAA,CAAS,MAAA;AAAA;;UAIxC,cAAA;E5B3JgD;;;;ACejE;;E2BmJE,OAAA,GAAU,KAAA,EAAO,QAAA,CAAS,UAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;A3BlG5B;;iB2B8agB,kBAAA,CAAmB,OAAA,EAAS,mBAAA,GAAsB,cAAA;;;;;;;cA8vBrD,iBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;A9BpvCb;;;;;;;;;iB+BNgB,eAAA,CAAgB,UAAA,EAAY,MAAA,oBAA0B,MAAA;;;;;;;;;;;A/BMtE;cgCXa,UAAA;SAAuE,OAAA;;;;;;;cAAA,QAAA;;;;;;;;;AhCWpF;;;;;;;;;;AAMA;;;;;;;KiCHY,MAAA,GAAS,IAAA,CAAK,OAAA,CAAQ,YAAA;;;AjCwBlC;iBiCnBgB,YAAA,CAAa,MAAA,EAAQ,MAAA,GAAS,MAAA;;;;;;;;;;;;;;;AjC8F9C;;;;;;;;;AAmEA;;;iBiCnIgB,cAAA,CAAA,GAAkB,OAAA,EAAS,MAAA,KAAW,MAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ExecutionHandle, i as ExecutionContext } from "./types-Ce78ds4h.js";
|
|
2
|
-
import { A as SkillSource, D as SkillConfig, O as SkillDiagnostic, j as SkillsConfig, l as SkillActivationState, r as AgentHooks } from "./agent-
|
|
2
|
+
import { A as SkillSource, D as SkillConfig, O as SkillDiagnostic, j as SkillsConfig, l as SkillActivationState, r as AgentHooks } from "./agent-DxBoKDba.js";
|
|
3
3
|
import { Hookable } from "hookable";
|
|
4
4
|
|
|
5
5
|
//#region src/skills/allowed-tools.d.ts
|
|
@@ -256,4 +256,4 @@ declare function defineSkill(config: Omit<SkillConfig, 'source'> & {
|
|
|
256
256
|
}): SkillConfig;
|
|
257
257
|
//#endregion
|
|
258
258
|
export { installAllowedToolsGate as S, inferSource as _, SkillValidationResult as a, buildCatalog as b, parseAllowedToolPattern as c, validateSkillName as d, resolveSkills as f, getDefaultScanPaths as g, discoverSkills as h, SkillValidationIssue as i, validateResourcePath as l, SourcedScanPath as m, writeSkillToDisk as n, isToolAllowedByUnion as o, interpolateShellCommands as p, writeSkillsToDisk as r, matchesAllowedTool as s, defineSkill as t, validateSkillForWrite as u, parseFrontmatter as v, IMPLICITLY_ALLOWED_SKILL_TOOLS as x, parseSkillFile as y };
|
|
259
|
-
//# sourceMappingURL=index-
|
|
259
|
+
//# sourceMappingURL=index-BOtXdQkW.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BOtXdQkW.d.ts","names":[],"sources":["../src/skills/allowed-tools.ts","../src/skills/catalog.ts","../src/skills/discovery.ts","../src/skills/interpolate.ts","../src/skills/resolve.ts","../src/skills/validate.ts","../src/skills/writer.ts","../src/skills/index.ts"],"mappings":";;;;;;cAuBa,8BAAA;;;;;;;;;;ACHb;iBDmBgB,uBAAA,CACd,KAAA,EAAO,QAAA,CAAS,UAAA,GAChB,KAAA,EAAO,oBAAA;;;UCrBQ,mBAAA;EDoBR;;;;;ECdP,oBAAA;EDe2B;;;;ECV3B,YAAA;AAAA;;;;iBAMc,YAAA,CACd,MAAA,EAAQ,WAAA,IACR,OAAA,GAAS,mBAAA;;;UCCD,eAAA;EACR,WAAA,EAAa,MAAA;EACb,IAAA;EACA,WAAA,EAAa,eAAA;AAAA;;;;;;;;;;;iBAaC,gBAAA,CAAiB,OAAA,WAAkB,eAAA;AAAA,UA0MzC,iBAAA;ED9O0B;ECgPlC,MAAA,GAAS,WAAA;AAAA;;AD/NX;;;;;;;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;;;;;;ALpQF;;;;;iBM8BgB,gBAAA,CAAiB,KAAA,EAAO,WAAA,EAAa,SAAA;;;;;;iBAoCrC,iBAAA,CAAkB,MAAA,EAAQ,WAAA,IAAe,SAAA;;;;;;;;;iBCnDzC,WAAA,CAAY,MAAA,EAAQ,IAAA,CAAK,WAAA;EAA2B,MAAA,GAAS,WAAA;AAAA,IAA0B,WAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as ExecutionHandle, i as ExecutionContext, n as ContextType, o as SpawnConfig, r as ExecResult, t as ContextCapabilities } from "./types-Ce78ds4h.js";
|
|
2
2
|
import { n as createSandboxContext, r as createProcessContext, t as SandboxProvider } from "./index-BiO_5Hm4.js";
|
|
3
|
-
import { $ as fromOpenAI, $t as ThinkingLevel, A as SkillSource, At as cerebras, B as createRemoteStore, Bt as OAuthRefreshHookContext, C as getReadState, Ct as OpenAICompatParams, D as SkillConfig, Dt as OpenAIParams, E as resolveReadStateMap, Et as openaiCompat, F as SessionRun, Ft as AgentStats, G as SYNTHETIC_TOOL_RESULT_PLACEHOLDER, Gt as RunHookMap, H as ORPHANED_TOOL_RESULT_MARKER, Ht as PromptImagePart, I as SessionStore, J as autoDetectAndConvert, Jt as SessionHookContext, K as TOOL_USE_INTERRUPTED_MARKER, Kt as SessionContentBlock, L as createSession, Lt as McpServerConfig, M as CreateSessionOptions, Mt as anthropic, N as Session, Nt as AgentBehavior, O as SkillDiagnostic, Ot as openai, P as SessionData, Pt as AgentRunOptions, Q as fromAnthropic, Qt as StreamHookContext, R as loadSession, Rt as McpToolHookContext, S as ReadStateMap, St as OpenAICompatHttpError, T as readStateKey, Tt as mapOAIFinishReason, U as PairingRepair, Ut as PromptPart, V as EnsureToolResultPairingOptions, Vt as PromptDocumentPart, W as PairingRepairMode, Wt as PromptTextPart, X as ensureToolResultPairing, Xt as SessionTurn, Y as detectTurnInterruption, Yt as SessionMessage, Z as filterUnresolvedToolUses, Zt as SpawnHookContext, _ as resultToString, _n as matchesContextExceeded, _t as sanitizeToolSchema, a as createAgent, an as TurnUsage, at as createFileMapStore, b as ToolMap, bt as openrouter, c as DeactivationReason, cn as AgentAbortedError, ct as StreamCallbacks, d as createSkillActivationState, dn as AgentToolNotAllowedError, dt as ToolResult, en as ToolHookContext, et as toAnthropic, f as ConnectMcpServersOptions, fn as AgentToolPairingError, ft as ToolSpec, g as normalizeMcpServers, gn as errorMessage, gt as SchemaSanitizeResult, h as normalizeMcpBlocks, hn as ClassifiedErrorKind, ht as SchemaSanitizeProfile, i as AgentOptions, in as TurnFinishReason, it as FileMapStoreOptions, j as SkillsConfig, jt as AnthropicParams, k as SkillResource, kt as CerebrasParams, l as SkillActivationState, ln as AgentContextExceededError, lt as StreamOptions, m as connectMcpServers, mn as ClassifiedError, mt as SchemaSanitizeOptions, nn as ToolResultImageContent, nt as createMemoryStore, o as ActivationVia, on as toolOutputByteLength, ot as Provider, p as McpConnection, pn as CONTEXT_EXCEEDED_MESSAGE_PATTERNS, pt as TurnResult, q as TurnInterruptionState, qt as SessionEndStatus, r as AgentHooks, rn as ToolResultTextContent, rt as FileMapAdapter, s as ActiveSkill, sn as toolResultToText, st as ProviderCapabilities, t as Agent, tn as ToolResultContent, tt as toOpenAI, u as SkillActivationStateOptions, un as AgentProviderError, ut as ToolCall, v as ToolContext, vn as toTypedError, vt as sanitizeToolSpecs, wt as classifyOpenAICompatError, x as ReadStateEntry, xt as OpenAICompatAuthHeader, y as ToolDef, yt as OpenRouterParams, z as RemoteStoreOptions } from "./agent-
|
|
4
|
-
import { $ 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, ActivationVia, ActiveSkill, Agent, AgentAbortedError, AgentBehavior, AgentContextExceededError, AgentHooks, AgentOptions, AgentProviderError, AgentRunOptions, AgentStats, AgentToolNotAllowedError, AgentToolPairingError, AnthropicParams, BASE_INSTRUCTIONS, BYTES_PER_TOKEN, CONTEXT_EXCEEDED_MESSAGE_PATTERNS, CerebrasParams, ChildAgent, ClassifiedError, ClassifiedErrorKind, CompactDirection, CompactInvalidInputError, CompactOptions, CompactPromptBuilder, CompactPromptOptions, CompactPromptTooLongError, CompactResult, CompactScope, CompactionSlice, ConnectMcpServersOptions, ContextCapabilities, ContextType, CreateSessionOptions, DeactivationReason, EnsureToolResultPairingOptions, ExecResult, ExecutionContext, ExecutionHandle, FileMapAdapter, FileMapStoreOptions, IMPLICITLY_ALLOWED_SKILL_TOOLS, INTERRUPT_MESSAGE_FOR_TOOL_USE, InteractionToolOptions, LoginMcpServerOptions, LoginMcpServerResult, McpConnection, McpCredentialEntry, McpCredentialStore, McpOAuthProvider, McpOAuthProviderOptions, McpServerConfig, McpToolHookContext, ModelUsage, NO_TOOLS_PREAMBLE, OAuthCallbackHandle, OAuthCallbackOptions, OAuthCallbackResult, OAuthRefreshHookContext, ORPHANED_TOOL_RESULT_MARKER, OpenAICompatAuthHeader, OpenAICompatHttpError, OpenAICompatParams, OpenAIParams, OpenRouterParams, PERSISTED_STUB_PREFIX, PERSISTENCE_PREVIEW_BYTES, PairingRepair, PairingRepairMode, PersistInput, PersistOutcome, PostCompactAttachments, PostCompactRestoreOptions, Preset, PromptDocumentPart, PromptImagePart, PromptPart, PromptTextPart, Provider, ProviderCapabilities, ReadStateEntry, ReadStateMap, RecentFile, RemoteStoreOptions, RunHookMap, SHELL_CASCADE_CANCEL_MESSAGE, SYNTHETIC_TOOL_RESULT_PLACEHOLDER, SandboxProvider, SchemaSanitizeOptions, SchemaSanitizeProfile, SchemaSanitizeResult, Session, SessionContentBlock, SessionData, SessionEndStatus, SessionHookContext, SessionMessage, SessionRun, SessionStore, SessionTurn, SkillActivationState, SkillActivationStateOptions, SkillConfig, SkillDiagnostic, SkillResource, SkillSource, SkillValidationIssue, SkillValidationResult, SkillsConfig, SkillsReadToolOptions, SkillsRunScriptToolOptions, SkillsUseToolOptions, SourcedScanPath, Span, SpawnConfig, SpawnHookContext, SpawnToolOptions, SpawnToolState, StreamCallbacks, StreamHookContext, StreamOptions, SummaryToTurnInput, TOOL_USE_INTERRUPTED_MARKER, TOOL_USE_SKIPPED_MESSAGE, TRAILER, ThinkingLevel, ToolCall, ToolContext, ToolDef, ToolHookContext, ToolMap, ToolResult, ToolResultContent, ToolResultImageContent, ToolResultTextContent, ToolSpec, TracingHookSet, TracingHooksOptions, TurnFinishReason, TurnInterruptionState, TurnResult, TurnUsage, ValidationResult, anchorPreviewFor, anthropic, autoDetectAndConvert, _default as basic, basicTools, buildCatalog, buildCompactPrompt, buildFromCompactPrompt, buildFullCompactPrompt, buildPersistedStub, buildPostCompactAttachments, buildTailCompactPrompt, buildUpToCompactPrompt, cerebras, classifyOpenAICompatError, cleanupPersistedSession, compactConversation, connectMcpServers, createAgent, createFileMapStore, createInteractionTool, createMemoryMcpCredentialStore, createMemoryStore, createProcessContext, createRemoteStore, createSandboxContext, createSession, createSkillActivationState, createSkillsReadTool, createSkillsRunScriptTool, createSkillsUseTool, createSpawnTool, createTracingHooks, definePreset, defineSkill, detectTurnInterruption, discoverSkills, edit, ensureToolResultPairing, errorMessage, estimateTokens, filterUnresolvedToolUses, flattenTurns, fromAnthropic, fromOpenAI, getReadState, glob, grep, hasAuthorizationHeader, installAllowedToolsGate, interpolateShellCommands, isToolAllowedByUnion, loadSession, loginMcpServer, mapOAIFinishReason, matchesAllowedTool, matchesContextExceeded, maybePersistToolResult, multiEdit, normalizeMcpBlocks, normalizeMcpServers, openai, openaiCompat, openrouter, parseAllowedToolPattern, parseSkillFile, readStateKey, resolvePersistDir, resolveReadStateMap, resolveSkills, resultToString, sanitizeToolSchema, sanitizeToolSpecs, selectFilesFromReadState, selectFilesFromSession, selectRecentFiles, sliceForCompaction, startOAuthCallback, statsByModel, stripImagesFromTurns, summaryToTurn, toAnthropic, toOpenAI, toTypedError, toolOutputByteLength, toolResultToText, truncateHeadForPtlRetry, utf8ByteLength, validateResourcePath, validateSkillForWrite, validateSkillName, validateToolArgs, writeSkillToDisk, writeSkillsToDisk, zodToJsonSchema };
|
|
3
|
+
import { $ as fromOpenAI, $t as ThinkingLevel, A as SkillSource, At as cerebras, B as createRemoteStore, Bt as OAuthRefreshHookContext, C as getReadState, Ct as OpenAICompatParams, D as SkillConfig, Dt as OpenAIParams, E as resolveReadStateMap, Et as openaiCompat, F as SessionRun, Ft as AgentStats, G as SYNTHETIC_TOOL_RESULT_PLACEHOLDER, Gt as RunHookMap, H as ORPHANED_TOOL_RESULT_MARKER, Ht as PromptImagePart, I as SessionStore, J as autoDetectAndConvert, Jt as SessionHookContext, K as TOOL_USE_INTERRUPTED_MARKER, Kt as SessionContentBlock, L as createSession, Lt as McpServerConfig, M as CreateSessionOptions, Mt as anthropic, N as Session, Nt as AgentBehavior, O as SkillDiagnostic, Ot as openai, P as SessionData, Pt as AgentRunOptions, Q as fromAnthropic, Qt as StreamHookContext, R as loadSession, Rt as McpToolHookContext, S as ReadStateMap, St as OpenAICompatHttpError, T as readStateKey, Tt as mapOAIFinishReason, U as PairingRepair, Ut as PromptPart, V as EnsureToolResultPairingOptions, Vt as PromptDocumentPart, W as PairingRepairMode, Wt as PromptTextPart, X as ensureToolResultPairing, Xt as SessionTurn, Y as detectTurnInterruption, Yt as SessionMessage, Z as filterUnresolvedToolUses, Zt as SpawnHookContext, _ as resultToString, _n as matchesContextExceeded, _t as sanitizeToolSchema, a as createAgent, an as TurnUsage, at as createFileMapStore, b as ToolMap, bt as openrouter, c as DeactivationReason, cn as AgentAbortedError, ct as StreamCallbacks, d as createSkillActivationState, dn as AgentToolNotAllowedError, dt as ToolResult, en as ToolHookContext, et as toAnthropic, f as ConnectMcpServersOptions, fn as AgentToolPairingError, ft as ToolSpec, g as normalizeMcpServers, gn as errorMessage, gt as SchemaSanitizeResult, h as normalizeMcpBlocks, hn as ClassifiedErrorKind, ht as SchemaSanitizeProfile, i as AgentOptions, in as TurnFinishReason, it as FileMapStoreOptions, j as SkillsConfig, jt as AnthropicParams, k as SkillResource, kt as CerebrasParams, l as SkillActivationState, ln as AgentContextExceededError, lt as StreamOptions, m as connectMcpServers, mn as ClassifiedError, mt as SchemaSanitizeOptions, nn as ToolResultImageContent, nt as createMemoryStore, o as ActivationVia, on as toolOutputByteLength, ot as Provider, p as McpConnection, pn as CONTEXT_EXCEEDED_MESSAGE_PATTERNS, pt as TurnResult, q as TurnInterruptionState, qt as SessionEndStatus, r as AgentHooks, rn as ToolResultTextContent, rt as FileMapAdapter, s as ActiveSkill, sn as toolResultToText, st as ProviderCapabilities, t as Agent, tn as ToolResultContent, tt as toOpenAI, u as SkillActivationStateOptions, un as AgentProviderError, ut as ToolCall, v as ToolContext, vn as toTypedError, vt as sanitizeToolSpecs, wt as classifyOpenAICompatError, x as ReadStateEntry, xt as OpenAICompatAuthHeader, y as ToolDef, yt as OpenRouterParams, z as RemoteStoreOptions } from "./agent-DxBoKDba.js";
|
|
4
|
+
import { $ as Histogram, $t as CompactResult, At as TOOL_USE_SKIPPED_MESSAGE, B as flattenTurns, Bt as createLoggingHooks, C as createSpawnTool, Ct as PersistOutcome, D as createSkillsRunScriptTool, Dt as resolvePersistDir, E as SkillsRunScriptToolOptions, Et as maybePersistToolResult, F as createInteractionTool, Ft as Logger, G as RunSummaryByModel, Gt as PostCompactAttachments, H as RunSummary, Ht as BYTES_PER_TOKEN, I as grep, It as LoggingHookSet, J as RunSummaryError, Jt as buildPostCompactAttachments, K as RunSummaryCollector, Kt as PostCompactRestoreOptions, L as glob, Lt as LoggingHooksOptions, M as multiEdit, Mt as LogLevel, Nt as LogRecord, O as SkillsReadToolOptions, Ot as INTERRUPT_MESSAGE_FOR_TOOL_USE, P as InteractionToolOptions, Pt as LogSink, Q as Counter, Qt as CompactOptions, R as edit, Rt as consoleSink, S as SpawnToolState, Sn as truncateHeadForPtlRetry, St as PersistInput, T as createSkillsUseTool, Tt as cleanupPersistedSession, U as RunSummaryBlock, Ut as estimateTokens, V as statsByModel, Vt as jsonSink, W as RunSummaryBudget, Wt as utf8ByteLength, X as RunSummaryValidation, Xt as selectFilesFromSession, Y as RunSummaryTokens, Yt as selectFilesFromReadState, Z as createRunSummaryCollector, Zt as selectRecentFiles, _n as SummaryToTurnInput, _t as McpOAuthProviderOptions, a as basicTools, an as CompactPromptBuilder, at as UpDownCounter, b as ChildAgent, bn as stripImagesFromTurns, bt as PERSISTED_STUB_PREFIX, c as Span, cn as TRAILER, ct as OAuthCallbackOptions, d as TracingHookSet, dn as buildFullCompactPrompt, dt as LoginMcpServerOptions, en as compactConversation, et as InstrumentOptions, f as TracingHooksOptions, fn as buildTailCompactPrompt, ft as LoginMcpServerResult, g as validateToolArgs, gn as CompactionSlice, gt as McpOAuthProvider, h as ValidationResult, hn as CompactScope, ht as McpCredentialStore, i as _default, in as CompactDirection, it as MetricsHooksOptions, jt as ConsoleSinkOptions, k as createSkillsReadTool, kt as SHELL_CASCADE_CANCEL_MESSAGE, l as StartSpan, ln as buildCompactPrompt, lt as OAuthCallbackResult, mn as ANCHOR_PREVIEW_MAX_CHARS, mt as McpCredentialEntry, nn as CompactPromptTooLongError, nt as MetricAttributes, o as zodToJsonSchema, on as CompactPromptOptions, ot as createMetricsHooks, p as createTracingHooks, pn as buildUpToCompactPrompt, pt as loginMcpServer, q as RunSummaryCollectorOptions, qt as RecentFile, r as definePreset, rn as BASE_INSTRUCTIONS, rt as MetricsHookSet, s as GEN_AI_ATTRIBUTES, sn as NO_TOOLS_PREAMBLE, st as OAuthCallbackHandle, t as Preset, tn as CompactInvalidInputError, tt as Meter, u as TracingConventions, un as buildFromCompactPrompt, ut as startOAuthCallback, vn as anchorPreviewFor, vt as createMemoryMcpCredentialStore, w as SkillsUseToolOptions, wt as buildPersistedStub, x as SpawnToolOptions, xn as summaryToTurn, xt as PERSISTENCE_PREVIEW_BYTES, yn as sliceForCompaction, yt as hasAuthorizationHeader, z as ModelUsage, zt as createLogger } from "./index-B2VOOijU.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-BOtXdQkW.js";
|
|
6
|
+
export { ANCHOR_PREVIEW_MAX_CHARS, ActivationVia, ActiveSkill, Agent, AgentAbortedError, AgentBehavior, AgentContextExceededError, AgentHooks, AgentOptions, AgentProviderError, AgentRunOptions, AgentStats, AgentToolNotAllowedError, AgentToolPairingError, AnthropicParams, BASE_INSTRUCTIONS, BYTES_PER_TOKEN, CONTEXT_EXCEEDED_MESSAGE_PATTERNS, CerebrasParams, ChildAgent, ClassifiedError, ClassifiedErrorKind, CompactDirection, CompactInvalidInputError, CompactOptions, CompactPromptBuilder, CompactPromptOptions, CompactPromptTooLongError, CompactResult, CompactScope, CompactionSlice, ConnectMcpServersOptions, ConsoleSinkOptions, ContextCapabilities, ContextType, Counter, CreateSessionOptions, DeactivationReason, EnsureToolResultPairingOptions, ExecResult, ExecutionContext, ExecutionHandle, FileMapAdapter, FileMapStoreOptions, GEN_AI_ATTRIBUTES, Histogram, IMPLICITLY_ALLOWED_SKILL_TOOLS, INTERRUPT_MESSAGE_FOR_TOOL_USE, InstrumentOptions, InteractionToolOptions, LogLevel, LogRecord, LogSink, Logger, LoggingHookSet, LoggingHooksOptions, LoginMcpServerOptions, LoginMcpServerResult, McpConnection, McpCredentialEntry, McpCredentialStore, McpOAuthProvider, McpOAuthProviderOptions, McpServerConfig, McpToolHookContext, Meter, MetricAttributes, MetricsHookSet, MetricsHooksOptions, ModelUsage, NO_TOOLS_PREAMBLE, OAuthCallbackHandle, OAuthCallbackOptions, OAuthCallbackResult, OAuthRefreshHookContext, ORPHANED_TOOL_RESULT_MARKER, OpenAICompatAuthHeader, OpenAICompatHttpError, OpenAICompatParams, OpenAIParams, OpenRouterParams, PERSISTED_STUB_PREFIX, PERSISTENCE_PREVIEW_BYTES, PairingRepair, PairingRepairMode, PersistInput, PersistOutcome, PostCompactAttachments, PostCompactRestoreOptions, Preset, PromptDocumentPart, PromptImagePart, PromptPart, PromptTextPart, Provider, ProviderCapabilities, ReadStateEntry, ReadStateMap, RecentFile, RemoteStoreOptions, RunHookMap, RunSummary, RunSummaryBlock, RunSummaryBudget, RunSummaryByModel, RunSummaryCollector, RunSummaryCollectorOptions, RunSummaryError, RunSummaryTokens, RunSummaryValidation, SHELL_CASCADE_CANCEL_MESSAGE, SYNTHETIC_TOOL_RESULT_PLACEHOLDER, SandboxProvider, SchemaSanitizeOptions, SchemaSanitizeProfile, SchemaSanitizeResult, Session, SessionContentBlock, SessionData, SessionEndStatus, SessionHookContext, SessionMessage, SessionRun, SessionStore, SessionTurn, SkillActivationState, SkillActivationStateOptions, SkillConfig, SkillDiagnostic, SkillResource, SkillSource, SkillValidationIssue, SkillValidationResult, SkillsConfig, SkillsReadToolOptions, SkillsRunScriptToolOptions, SkillsUseToolOptions, SourcedScanPath, Span, SpawnConfig, SpawnHookContext, SpawnToolOptions, SpawnToolState, StartSpan, StreamCallbacks, StreamHookContext, StreamOptions, SummaryToTurnInput, TOOL_USE_INTERRUPTED_MARKER, TOOL_USE_SKIPPED_MESSAGE, TRAILER, ThinkingLevel, ToolCall, ToolContext, ToolDef, ToolHookContext, ToolMap, ToolResult, ToolResultContent, ToolResultImageContent, ToolResultTextContent, ToolSpec, TracingConventions, TracingHookSet, TracingHooksOptions, TurnFinishReason, TurnInterruptionState, TurnResult, TurnUsage, UpDownCounter, ValidationResult, anchorPreviewFor, anthropic, 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, createSkillActivationState, createSkillsReadTool, createSkillsRunScriptTool, createSkillsUseTool, createSpawnTool, createTracingHooks, definePreset, defineSkill, detectTurnInterruption, discoverSkills, edit, ensureToolResultPairing, errorMessage, estimateTokens, filterUnresolvedToolUses, flattenTurns, fromAnthropic, fromOpenAI, getReadState, glob, grep, hasAuthorizationHeader, installAllowedToolsGate, interpolateShellCommands, isToolAllowedByUnion, jsonSink, loadSession, loginMcpServer, mapOAIFinishReason, matchesAllowedTool, matchesContextExceeded, maybePersistToolResult, multiEdit, normalizeMcpBlocks, normalizeMcpServers, openai, openaiCompat, openrouter, parseAllowedToolPattern, parseSkillFile, readStateKey, resolvePersistDir, resolveReadStateMap, resolveSkills, resultToString, sanitizeToolSchema, sanitizeToolSpecs, selectFilesFromReadState, selectFilesFromSession, selectRecentFiles, sliceForCompaction, startOAuthCallback, statsByModel, stripImagesFromTurns, summaryToTurn, toAnthropic, toOpenAI, toTypedError, toolOutputByteLength, toolResultToText, truncateHeadForPtlRetry, utf8ByteLength, validateResourcePath, validateSkillForWrite, validateSkillName, validateToolArgs, writeSkillToDisk, writeSkillsToDisk, zodToJsonSchema };
|