@agent-watch-ai/edge 0.4.0 → 0.5.0
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/CHANGELOG.md +29 -0
- package/README.md +3 -3
- package/SECURITY.md +1 -1
- package/dist/config/config-store.js +1 -1
- package/dist/config/repo-config.js +1 -1
- package/dist/config/schemas/config.schema.d.ts +93 -857
- package/dist/config/schemas/config.schema.js +5 -5
- package/dist/credentials/credentials.js +2 -2
- package/dist/credentials/schemas/device-api.schema.d.ts +4 -51
- package/dist/credentials/schemas/device-state.schema.d.ts +3 -38
- package/dist/git/code-state.d.ts +33 -0
- package/dist/git/code-state.js +44 -0
- package/dist/git/constants/git.constants.d.ts +6 -0
- package/dist/git/constants/git.constants.js +6 -0
- package/dist/git/index.d.ts +2 -1
- package/dist/git/index.js +1 -0
- package/dist/git/types/git.types.d.ts +6 -0
- package/dist/privacy/command-fingerprint.d.ts +42 -0
- package/dist/privacy/command-fingerprint.js +249 -0
- package/dist/privacy/constants/command-fingerprint.constants.d.ts +34 -0
- package/dist/privacy/constants/command-fingerprint.constants.js +38 -0
- package/dist/privacy/index.d.ts +3 -1
- package/dist/privacy/index.js +2 -0
- package/dist/privacy/product-capture.js +19 -1
- package/dist/privacy/types/privacy.types.d.ts +7 -0
- package/dist/providers/antigravity/antigravity.adapter.js +3 -0
- package/dist/providers/antigravity/schemas/antigravity.schema.d.ts +18 -492
- package/dist/providers/claude/claude.adapter.js +12 -1
- package/dist/providers/claude/constants/claude.constants.d.ts +6 -0
- package/dist/providers/claude/constants/claude.constants.js +6 -0
- package/dist/providers/claude/schemas/claude.schema.d.ts +1 -43
- package/dist/providers/codex/codex.adapter.js +14 -0
- package/dist/providers/codex/schemas/codex.schema.d.ts +1 -41
- package/dist/providers/cursor/cursor.adapter.js +5 -2
- package/dist/providers/cursor/schemas/cursor.schema.d.ts +5 -85
- package/dist/providers/gemini/constants/gemini.constants.d.ts +2 -0
- package/dist/providers/gemini/constants/gemini.constants.js +2 -0
- package/dist/providers/gemini/constants/gemini.otel.constants.d.ts +10 -1
- package/dist/providers/gemini/constants/gemini.otel.constants.js +11 -2
- package/dist/providers/gemini/gemini.detect.d.ts +11 -0
- package/dist/providers/gemini/gemini.detect.js +14 -1
- package/dist/providers/gemini/gemini.hooks.d.ts +3 -3
- package/dist/providers/gemini/gemini.hooks.js +5 -5
- package/dist/providers/gemini/gemini.otel.d.ts +6 -6
- package/dist/providers/gemini/gemini.otel.js +392 -121
- package/dist/providers/gemini/schemas/gemini.schema.d.ts +1 -49
- package/dist/providers/shared/event-builder.d.ts +17 -2
- package/dist/providers/shared/event-builder.js +43 -3
- package/dist/providers/shared/install-record.d.ts +2 -0
- package/dist/providers/shared/install-record.js +3 -2
- package/dist/providers/shared/tooling.d.ts +7 -0
- package/dist/providers/shared/tooling.js +10 -1
- package/dist/providers/shared/types/adapter.types.d.ts +18 -0
- package/dist/storage/schemas/storage.schema.d.ts +11 -175
- package/dist/storage/schemas/storage.schema.js +7 -1
- package/dist/transport/schemas/queue.schema.d.ts +1 -16
- package/dist/transport/schemas/queue.schema.js +1 -1
- package/dist/turns/constants/turns.constants.d.ts +17 -0
- package/dist/turns/constants/turns.constants.js +17 -0
- package/dist/turns/index.d.ts +3 -2
- package/dist/turns/index.js +1 -0
- package/dist/turns/tool-events.d.ts +15 -0
- package/dist/turns/tool-events.js +59 -0
- package/dist/turns/turn-state.js +2 -2
- package/dist/turns/turn-summary.d.ts +1 -1
- package/dist/turns/turn-summary.js +1 -0
- package/dist/turns/turn-tracker.js +138 -7
- package/dist/turns/types/turn-state.types.d.ts +28 -1
- package/dist/turns/types/turn-summary.types.d.ts +30 -0
- package/dist/turns/types/turn-tracker.types.d.ts +10 -0
- package/docs/AUDIT_PROMPT.md +11 -0
- package/docs/DATA_HANDLING.md +58 -10
- package/docs/ENTERPRISE_DEPLOYMENT.md +2 -1
- package/package.json +9 -8
|
@@ -30,52 +30,4 @@ export declare const geminiPayloadSchema: z.ZodObject<{
|
|
|
30
30
|
last_assistant_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
stop_hook_active: z.ZodOptional<z.ZodBoolean>;
|
|
32
32
|
denialReason: z.ZodOptional<z.ZodString>;
|
|
33
|
-
},
|
|
34
|
-
hook_event_name: z.ZodOptional<z.ZodString>;
|
|
35
|
-
session_id: z.ZodOptional<z.ZodString>;
|
|
36
|
-
thread_id: z.ZodOptional<z.ZodString>;
|
|
37
|
-
turn_id: z.ZodOptional<z.ZodString>;
|
|
38
|
-
prompt_id: z.ZodOptional<z.ZodString>;
|
|
39
|
-
transcript_path: z.ZodOptional<z.ZodString>;
|
|
40
|
-
cwd: z.ZodOptional<z.ZodString>;
|
|
41
|
-
permission_mode: z.ZodOptional<z.ZodString>;
|
|
42
|
-
agent_id: z.ZodOptional<z.ZodString>;
|
|
43
|
-
agent_type: z.ZodOptional<z.ZodString>;
|
|
44
|
-
tool_name: z.ZodOptional<z.ZodString>;
|
|
45
|
-
tool_use_id: z.ZodOptional<z.ZodString>;
|
|
46
|
-
tool_input: z.ZodOptional<z.ZodUnknown>;
|
|
47
|
-
tool_response: z.ZodOptional<z.ZodUnknown>;
|
|
48
|
-
tool_error: z.ZodOptional<z.ZodUnknown>;
|
|
49
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
50
|
-
prompt_response: z.ZodOptional<z.ZodString>;
|
|
51
|
-
source: z.ZodOptional<z.ZodString>;
|
|
52
|
-
model: z.ZodOptional<z.ZodString>;
|
|
53
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
54
|
-
last_assistant_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
-
stop_hook_active: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
-
denialReason: z.ZodOptional<z.ZodString>;
|
|
57
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
58
|
-
hook_event_name: z.ZodOptional<z.ZodString>;
|
|
59
|
-
session_id: z.ZodOptional<z.ZodString>;
|
|
60
|
-
thread_id: z.ZodOptional<z.ZodString>;
|
|
61
|
-
turn_id: z.ZodOptional<z.ZodString>;
|
|
62
|
-
prompt_id: z.ZodOptional<z.ZodString>;
|
|
63
|
-
transcript_path: z.ZodOptional<z.ZodString>;
|
|
64
|
-
cwd: z.ZodOptional<z.ZodString>;
|
|
65
|
-
permission_mode: z.ZodOptional<z.ZodString>;
|
|
66
|
-
agent_id: z.ZodOptional<z.ZodString>;
|
|
67
|
-
agent_type: z.ZodOptional<z.ZodString>;
|
|
68
|
-
tool_name: z.ZodOptional<z.ZodString>;
|
|
69
|
-
tool_use_id: z.ZodOptional<z.ZodString>;
|
|
70
|
-
tool_input: z.ZodOptional<z.ZodUnknown>;
|
|
71
|
-
tool_response: z.ZodOptional<z.ZodUnknown>;
|
|
72
|
-
tool_error: z.ZodOptional<z.ZodUnknown>;
|
|
73
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
74
|
-
prompt_response: z.ZodOptional<z.ZodString>;
|
|
75
|
-
source: z.ZodOptional<z.ZodString>;
|
|
76
|
-
model: z.ZodOptional<z.ZodString>;
|
|
77
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
78
|
-
last_assistant_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
-
stop_hook_active: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
-
denialReason: z.ZodOptional<z.ZodString>;
|
|
81
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
33
|
+
}, z.core.$loose>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { UnknownRecord } from '../../core/types/core.types.js';
|
|
2
2
|
import type { AgentWatchEvent, EventPatch } from '../../events/types/events.types.js';
|
|
3
|
-
import type { BaseEventInput, CapturePolicy, ToolCallInput } from './types/adapter.types.js';
|
|
4
|
-
export type { BaseEventInput, CapturePolicy, ToolCallInput } from './types/adapter.types.js';
|
|
3
|
+
import type { BaseEventInput, CapturePolicy, ToolCallEvidenceInput, ToolCallInput } from './types/adapter.types.js';
|
|
4
|
+
export type { BaseEventInput, CapturePolicy, ToolCallEvidenceInput, ToolCallInput } from './types/adapter.types.js';
|
|
5
5
|
/**
|
|
6
6
|
* The part of a canonical event every provider fills in the same way.
|
|
7
7
|
*
|
|
@@ -70,6 +70,21 @@ export declare function responsePatch(response: string): EventPatch;
|
|
|
70
70
|
* @returns The patch.
|
|
71
71
|
*/
|
|
72
72
|
export declare function toolPatch(call: ToolCallInput, capture: CapturePolicy): EventPatch;
|
|
73
|
+
/**
|
|
74
|
+
* The content-free facts the turn keeps about one tool call (AWT-675): its
|
|
75
|
+
* ids, exit code, and a digest of its input. Not gated on `capture.toolInput`:
|
|
76
|
+
* the command or connector call is read here, in memory, hashed and dropped,
|
|
77
|
+
* so nothing in this block can quote it. Whether the facts leave the machine
|
|
78
|
+
* is `capture.git`'s, decided at the summary.
|
|
79
|
+
*
|
|
80
|
+
* A shell call is digested with core's command scheme, so the edge's record
|
|
81
|
+
* and the agent's own OTLP record of one call agree; a connector call is the
|
|
82
|
+
* sha256 of its arguments as JSON. Any other tool carries no digest.
|
|
83
|
+
*
|
|
84
|
+
* @param call - The call, as the adapter read it.
|
|
85
|
+
* @returns The block, or undefined when there is nothing to keep.
|
|
86
|
+
*/
|
|
87
|
+
export declare function toolCallEvidence(call: ToolCallEvidenceInput): UnknownRecord | undefined;
|
|
73
88
|
/**
|
|
74
89
|
* Patch carrying a file path, when one is known and permitted.
|
|
75
90
|
*
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { compact } from '../../core/object.js';
|
|
1
|
+
import { asRecord, compact } from '../../core/object.js';
|
|
2
2
|
import { EVENT_SCHEMA_VERSION } from '../../events/constants/events.constants.js';
|
|
3
|
-
import { deriveEventId } from '../../events/event-id.js';
|
|
3
|
+
import { deriveEventId, sha256Hex } from '../../events/event-id.js';
|
|
4
4
|
import { ticketKeysInText } from '../../feature/ticket-candidates.js';
|
|
5
|
-
import {
|
|
5
|
+
import { commandFingerprint, commandText } from '../../privacy/command-fingerprint.js';
|
|
6
|
+
import { RE_HARNESS_BLOCK, SHELL_COMMAND_KEY } from './constants/tooling.constants.js';
|
|
6
7
|
import { contentEvidence, extractCommand, extractFilePath } from './tooling.js';
|
|
7
8
|
/** Metadata key holding the provider's own, non-canonical fields. */
|
|
8
9
|
const PROVIDER_METADATA_KEY = 'provider';
|
|
@@ -151,10 +152,49 @@ export function toolPatch(call, capture) {
|
|
|
151
152
|
toolInput: capture.toolInput && call.input !== undefined ? call.input : undefined,
|
|
152
153
|
toolOutput: capture.toolOutput && call.output !== undefined ? call.output : undefined,
|
|
153
154
|
error: call.error !== undefined ? contentEvidence(JSON.stringify(call.error)) : undefined,
|
|
155
|
+
toolCall: toolCallEvidence(call),
|
|
154
156
|
[PROVIDER_METADATA_KEY]: compact({ toolUseId: call.toolUseId, ...call.providerFields })
|
|
155
157
|
})
|
|
156
158
|
};
|
|
157
159
|
}
|
|
160
|
+
/**
|
|
161
|
+
* The content-free facts the turn keeps about one tool call (AWT-675): its
|
|
162
|
+
* ids, exit code, and a digest of its input. Not gated on `capture.toolInput`:
|
|
163
|
+
* the command or connector call is read here, in memory, hashed and dropped,
|
|
164
|
+
* so nothing in this block can quote it. Whether the facts leave the machine
|
|
165
|
+
* is `capture.git`'s, decided at the summary.
|
|
166
|
+
*
|
|
167
|
+
* A shell call is digested with core's command scheme, so the edge's record
|
|
168
|
+
* and the agent's own OTLP record of one call agree; a connector call is the
|
|
169
|
+
* sha256 of its arguments as JSON. Any other tool carries no digest.
|
|
170
|
+
*
|
|
171
|
+
* @param call - The call, as the adapter read it.
|
|
172
|
+
* @returns The block, or undefined when there is nothing to keep.
|
|
173
|
+
*/
|
|
174
|
+
export function toolCallEvidence(call) {
|
|
175
|
+
const digest = inputDigest(call);
|
|
176
|
+
const block = compact({
|
|
177
|
+
callId: call.toolUseId,
|
|
178
|
+
pairingKey: call.pairingKey,
|
|
179
|
+
inputFp: digest?.digest ?? undefined,
|
|
180
|
+
matchesCheck: digest?.matchesCheck === true ? true : undefined,
|
|
181
|
+
exitCode: call.exitCode
|
|
182
|
+
});
|
|
183
|
+
return Object.keys(block).length > 0 ? block : undefined;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* The input digest for a shell or connector call.
|
|
187
|
+
*
|
|
188
|
+
* @param call - The call.
|
|
189
|
+
* @returns The digest and check match, or undefined for any other tool.
|
|
190
|
+
*/
|
|
191
|
+
function inputDigest(call) {
|
|
192
|
+
if (call.kind === 'shell')
|
|
193
|
+
return commandFingerprint(call.command ?? extractCommand(call.input) ?? commandText(asRecord(call.input)?.[SHELL_COMMAND_KEY]));
|
|
194
|
+
if (call.kind !== 'mcp' || call.input === undefined)
|
|
195
|
+
return undefined;
|
|
196
|
+
return { digest: sha256Hex(JSON.stringify(call.input)), matchesCheck: false };
|
|
197
|
+
}
|
|
158
198
|
/**
|
|
159
199
|
* Patch carrying a file path, when one is known and permitted.
|
|
160
200
|
*
|
|
@@ -60,6 +60,8 @@ interface OtelInstallRecord {
|
|
|
60
60
|
* the old bits is what makes the change reversible.
|
|
61
61
|
*/
|
|
62
62
|
readonly priorMode?: number;
|
|
63
|
+
/** What owned keys held before this tool set them; replaces the previous map. */
|
|
64
|
+
readonly priorValues?: Readonly<Record<string, string>>;
|
|
63
65
|
}
|
|
64
66
|
/**
|
|
65
67
|
* Install state with one agent's native-telemetry configuration recorded.
|
|
@@ -90,7 +90,8 @@ export function withOtelInstall(state, agentId, record) {
|
|
|
90
90
|
otelOwnedKeys: [...new Set(record.ownedKeys)],
|
|
91
91
|
// First tightening wins: a second configure must not record the 0600 we
|
|
92
92
|
// ourselves left behind as the file's original mode.
|
|
93
|
-
...(record.priorMode !== undefined && previous?.otelPriorMode === undefined ? { otelPriorMode: record.priorMode } : {})
|
|
93
|
+
...(record.priorMode !== undefined && previous?.otelPriorMode === undefined ? { otelPriorMode: record.priorMode } : {}),
|
|
94
|
+
...(record.priorValues ? { otelPriorValues: { ...record.priorValues } } : {})
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
97
|
};
|
|
@@ -110,7 +111,7 @@ export function withoutOtelInstall(state, agentId) {
|
|
|
110
111
|
...state,
|
|
111
112
|
agents: {
|
|
112
113
|
...state.agents,
|
|
113
|
-
[agentId]: { ...omitKeys(previous, new Set(['otelConfiguredAt', 'otelPriorMode'])), otelOwnedKeys: [] }
|
|
114
|
+
[agentId]: { ...omitKeys(previous, new Set(['otelConfiguredAt', 'otelPriorMode', 'otelPriorValues'])), otelOwnedKeys: [] }
|
|
114
115
|
}
|
|
115
116
|
};
|
|
116
117
|
}
|
|
@@ -44,6 +44,13 @@ export declare function parseMcpToolName(toolName: string): McpToolName;
|
|
|
44
44
|
* @returns The key.
|
|
45
45
|
*/
|
|
46
46
|
export declare function mcpToolKey(server: string, tool: string): string;
|
|
47
|
+
/**
|
|
48
|
+
* One tool name with its MCP server and tool withheld: `mcp__*` becomes `mcp`.
|
|
49
|
+
*
|
|
50
|
+
* @param name - A tool name as `tools_used` and `tool_events` carry it.
|
|
51
|
+
* @returns The name, folded when it is an MCP one.
|
|
52
|
+
*/
|
|
53
|
+
export declare function foldMcpName(name: string): string;
|
|
47
54
|
/**
|
|
48
55
|
* Fold every `mcp__*` key of a `tools_used` map into `mcp`, keeping the count.
|
|
49
56
|
*
|
|
@@ -81,6 +81,15 @@ export function parseMcpToolName(toolName) {
|
|
|
81
81
|
export function mcpToolKey(server, tool) {
|
|
82
82
|
return sanitizeText(`${MCP_TOOL_PREFIX}${server}${MCP_TOOL_SEPARATOR}${tool}`).slice(0, MAX_TOOL_KEY_LENGTH);
|
|
83
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* One tool name with its MCP server and tool withheld: `mcp__*` becomes `mcp`.
|
|
86
|
+
*
|
|
87
|
+
* @param name - A tool name as `tools_used` and `tool_events` carry it.
|
|
88
|
+
* @returns The name, folded when it is an MCP one.
|
|
89
|
+
*/
|
|
90
|
+
export function foldMcpName(name) {
|
|
91
|
+
return name.startsWith(MCP_TOOL_PREFIX) ? MCP_FOLDED_KEY : name;
|
|
92
|
+
}
|
|
84
93
|
/**
|
|
85
94
|
* Fold every `mcp__*` key of a `tools_used` map into `mcp`, keeping the count.
|
|
86
95
|
*
|
|
@@ -90,7 +99,7 @@ export function mcpToolKey(server, tool) {
|
|
|
90
99
|
export function foldMcpNames(toolsUsed) {
|
|
91
100
|
const folded = {};
|
|
92
101
|
for (const [name, count] of Object.entries(toolsUsed)) {
|
|
93
|
-
const key = name
|
|
102
|
+
const key = foldMcpName(name);
|
|
94
103
|
folded[key] = (folded[key] ?? 0) + count;
|
|
95
104
|
}
|
|
96
105
|
return folded;
|
|
@@ -41,6 +41,24 @@ export interface ToolCallInput {
|
|
|
41
41
|
readonly error?: unknown;
|
|
42
42
|
/** Extra provider-specific fields for `metadata.provider`, e.g. MCP routing. */
|
|
43
43
|
readonly providerFields?: UnknownRecord;
|
|
44
|
+
/** The shell's exit code, where the provider states one. */
|
|
45
|
+
readonly exitCode?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Pairs a start with its completion when the agent names no call id
|
|
48
|
+
* (Antigravity's step index). Local turn state only; never sent as an id.
|
|
49
|
+
*/
|
|
50
|
+
readonly pairingKey?: string;
|
|
51
|
+
}
|
|
52
|
+
/** What {@link toolCallEvidence} reads from one tool call. */
|
|
53
|
+
export interface ToolCallEvidenceInput {
|
|
54
|
+
readonly kind: ToolKind;
|
|
55
|
+
/** Raw arguments, whatever shape the provider used. */
|
|
56
|
+
readonly input?: unknown;
|
|
57
|
+
/** The command, for a provider that reports it beside the input (Cursor's shell hooks). */
|
|
58
|
+
readonly command?: string;
|
|
59
|
+
readonly toolUseId?: string;
|
|
60
|
+
readonly pairingKey?: string;
|
|
61
|
+
readonly exitCode?: number;
|
|
44
62
|
}
|
|
45
63
|
/** What the effective config allows to be captured. */
|
|
46
64
|
export interface CapturePolicy {
|
|
@@ -9,192 +9,28 @@ import { z } from 'zod';
|
|
|
9
9
|
export declare const agentInstallSchema: z.ZodObject<{
|
|
10
10
|
hooksInstalledAt: z.ZodOptional<z.ZodString>;
|
|
11
11
|
hookConfigPath: z.ZodOptional<z.ZodString>;
|
|
12
|
-
hookEvents: z.ZodDefault<z.ZodArray<z.ZodString
|
|
12
|
+
hookEvents: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
13
13
|
hookCommand: z.ZodOptional<z.ZodString>;
|
|
14
14
|
otelConfiguredAt: z.ZodOptional<z.ZodString>;
|
|
15
15
|
otelConfigPath: z.ZodOptional<z.ZodString>;
|
|
16
|
-
otelOwnedKeys: z.ZodDefault<z.ZodArray<z.ZodString
|
|
17
|
-
/**
|
|
18
|
-
* Permission bits the agent's own config file carried before AgentWatch
|
|
19
|
-
* tightened it, so uninstall can put them back. Absent when the file was
|
|
20
|
-
* never tightened, or when AgentWatch created it.
|
|
21
|
-
*/
|
|
16
|
+
otelOwnedKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
22
17
|
otelPriorMode: z.ZodOptional<z.ZodNumber>;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
hookConfigPath: z.ZodOptional<z.ZodString>;
|
|
27
|
-
hookEvents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
28
|
-
hookCommand: z.ZodOptional<z.ZodString>;
|
|
29
|
-
otelConfiguredAt: z.ZodOptional<z.ZodString>;
|
|
30
|
-
otelConfigPath: z.ZodOptional<z.ZodString>;
|
|
31
|
-
otelOwnedKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
32
|
-
/**
|
|
33
|
-
* Permission bits the agent's own config file carried before AgentWatch
|
|
34
|
-
* tightened it, so uninstall can put them back. Absent when the file was
|
|
35
|
-
* never tightened, or when AgentWatch created it.
|
|
36
|
-
*/
|
|
37
|
-
otelPriorMode: z.ZodOptional<z.ZodNumber>;
|
|
38
|
-
notes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
39
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
40
|
-
hooksInstalledAt: z.ZodOptional<z.ZodString>;
|
|
41
|
-
hookConfigPath: z.ZodOptional<z.ZodString>;
|
|
42
|
-
hookEvents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
43
|
-
hookCommand: z.ZodOptional<z.ZodString>;
|
|
44
|
-
otelConfiguredAt: z.ZodOptional<z.ZodString>;
|
|
45
|
-
otelConfigPath: z.ZodOptional<z.ZodString>;
|
|
46
|
-
otelOwnedKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
47
|
-
/**
|
|
48
|
-
* Permission bits the agent's own config file carried before AgentWatch
|
|
49
|
-
* tightened it, so uninstall can put them back. Absent when the file was
|
|
50
|
-
* never tightened, or when AgentWatch created it.
|
|
51
|
-
*/
|
|
52
|
-
otelPriorMode: z.ZodOptional<z.ZodNumber>;
|
|
53
|
-
notes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
54
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
18
|
+
otelPriorValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
19
|
+
notes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
20
|
+
}, z.core.$loose>;
|
|
55
21
|
/** The whole install-state file: one entry per agent. */
|
|
56
22
|
export declare const installStateSchema: z.ZodObject<{
|
|
57
23
|
schemaVersion: z.ZodDefault<z.ZodLiteral<1>>;
|
|
58
24
|
agents: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
59
25
|
hooksInstalledAt: z.ZodOptional<z.ZodString>;
|
|
60
26
|
hookConfigPath: z.ZodOptional<z.ZodString>;
|
|
61
|
-
hookEvents: z.ZodDefault<z.ZodArray<z.ZodString
|
|
62
|
-
hookCommand: z.ZodOptional<z.ZodString>;
|
|
63
|
-
otelConfiguredAt: z.ZodOptional<z.ZodString>;
|
|
64
|
-
otelConfigPath: z.ZodOptional<z.ZodString>;
|
|
65
|
-
otelOwnedKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
66
|
-
/**
|
|
67
|
-
* Permission bits the agent's own config file carried before AgentWatch
|
|
68
|
-
* tightened it, so uninstall can put them back. Absent when the file was
|
|
69
|
-
* never tightened, or when AgentWatch created it.
|
|
70
|
-
*/
|
|
71
|
-
otelPriorMode: z.ZodOptional<z.ZodNumber>;
|
|
72
|
-
notes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
73
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
74
|
-
hooksInstalledAt: z.ZodOptional<z.ZodString>;
|
|
75
|
-
hookConfigPath: z.ZodOptional<z.ZodString>;
|
|
76
|
-
hookEvents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
77
|
-
hookCommand: z.ZodOptional<z.ZodString>;
|
|
78
|
-
otelConfiguredAt: z.ZodOptional<z.ZodString>;
|
|
79
|
-
otelConfigPath: z.ZodOptional<z.ZodString>;
|
|
80
|
-
otelOwnedKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
81
|
-
/**
|
|
82
|
-
* Permission bits the agent's own config file carried before AgentWatch
|
|
83
|
-
* tightened it, so uninstall can put them back. Absent when the file was
|
|
84
|
-
* never tightened, or when AgentWatch created it.
|
|
85
|
-
*/
|
|
86
|
-
otelPriorMode: z.ZodOptional<z.ZodNumber>;
|
|
87
|
-
notes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
88
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
89
|
-
hooksInstalledAt: z.ZodOptional<z.ZodString>;
|
|
90
|
-
hookConfigPath: z.ZodOptional<z.ZodString>;
|
|
91
|
-
hookEvents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
92
|
-
hookCommand: z.ZodOptional<z.ZodString>;
|
|
93
|
-
otelConfiguredAt: z.ZodOptional<z.ZodString>;
|
|
94
|
-
otelConfigPath: z.ZodOptional<z.ZodString>;
|
|
95
|
-
otelOwnedKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
96
|
-
/**
|
|
97
|
-
* Permission bits the agent's own config file carried before AgentWatch
|
|
98
|
-
* tightened it, so uninstall can put them back. Absent when the file was
|
|
99
|
-
* never tightened, or when AgentWatch created it.
|
|
100
|
-
*/
|
|
101
|
-
otelPriorMode: z.ZodOptional<z.ZodNumber>;
|
|
102
|
-
notes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
103
|
-
}, z.ZodTypeAny, "passthrough">>>>;
|
|
104
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
105
|
-
schemaVersion: z.ZodDefault<z.ZodLiteral<1>>;
|
|
106
|
-
agents: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
107
|
-
hooksInstalledAt: z.ZodOptional<z.ZodString>;
|
|
108
|
-
hookConfigPath: z.ZodOptional<z.ZodString>;
|
|
109
|
-
hookEvents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
110
|
-
hookCommand: z.ZodOptional<z.ZodString>;
|
|
111
|
-
otelConfiguredAt: z.ZodOptional<z.ZodString>;
|
|
112
|
-
otelConfigPath: z.ZodOptional<z.ZodString>;
|
|
113
|
-
otelOwnedKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
114
|
-
/**
|
|
115
|
-
* Permission bits the agent's own config file carried before AgentWatch
|
|
116
|
-
* tightened it, so uninstall can put them back. Absent when the file was
|
|
117
|
-
* never tightened, or when AgentWatch created it.
|
|
118
|
-
*/
|
|
119
|
-
otelPriorMode: z.ZodOptional<z.ZodNumber>;
|
|
120
|
-
notes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
121
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
122
|
-
hooksInstalledAt: z.ZodOptional<z.ZodString>;
|
|
123
|
-
hookConfigPath: z.ZodOptional<z.ZodString>;
|
|
124
|
-
hookEvents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
125
|
-
hookCommand: z.ZodOptional<z.ZodString>;
|
|
126
|
-
otelConfiguredAt: z.ZodOptional<z.ZodString>;
|
|
127
|
-
otelConfigPath: z.ZodOptional<z.ZodString>;
|
|
128
|
-
otelOwnedKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
129
|
-
/**
|
|
130
|
-
* Permission bits the agent's own config file carried before AgentWatch
|
|
131
|
-
* tightened it, so uninstall can put them back. Absent when the file was
|
|
132
|
-
* never tightened, or when AgentWatch created it.
|
|
133
|
-
*/
|
|
134
|
-
otelPriorMode: z.ZodOptional<z.ZodNumber>;
|
|
135
|
-
notes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
136
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
137
|
-
hooksInstalledAt: z.ZodOptional<z.ZodString>;
|
|
138
|
-
hookConfigPath: z.ZodOptional<z.ZodString>;
|
|
139
|
-
hookEvents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
140
|
-
hookCommand: z.ZodOptional<z.ZodString>;
|
|
141
|
-
otelConfiguredAt: z.ZodOptional<z.ZodString>;
|
|
142
|
-
otelConfigPath: z.ZodOptional<z.ZodString>;
|
|
143
|
-
otelOwnedKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
144
|
-
/**
|
|
145
|
-
* Permission bits the agent's own config file carried before AgentWatch
|
|
146
|
-
* tightened it, so uninstall can put them back. Absent when the file was
|
|
147
|
-
* never tightened, or when AgentWatch created it.
|
|
148
|
-
*/
|
|
149
|
-
otelPriorMode: z.ZodOptional<z.ZodNumber>;
|
|
150
|
-
notes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
151
|
-
}, z.ZodTypeAny, "passthrough">>>>;
|
|
152
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
153
|
-
schemaVersion: z.ZodDefault<z.ZodLiteral<1>>;
|
|
154
|
-
agents: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
155
|
-
hooksInstalledAt: z.ZodOptional<z.ZodString>;
|
|
156
|
-
hookConfigPath: z.ZodOptional<z.ZodString>;
|
|
157
|
-
hookEvents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
158
|
-
hookCommand: z.ZodOptional<z.ZodString>;
|
|
159
|
-
otelConfiguredAt: z.ZodOptional<z.ZodString>;
|
|
160
|
-
otelConfigPath: z.ZodOptional<z.ZodString>;
|
|
161
|
-
otelOwnedKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
162
|
-
/**
|
|
163
|
-
* Permission bits the agent's own config file carried before AgentWatch
|
|
164
|
-
* tightened it, so uninstall can put them back. Absent when the file was
|
|
165
|
-
* never tightened, or when AgentWatch created it.
|
|
166
|
-
*/
|
|
167
|
-
otelPriorMode: z.ZodOptional<z.ZodNumber>;
|
|
168
|
-
notes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
169
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
170
|
-
hooksInstalledAt: z.ZodOptional<z.ZodString>;
|
|
171
|
-
hookConfigPath: z.ZodOptional<z.ZodString>;
|
|
172
|
-
hookEvents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
173
|
-
hookCommand: z.ZodOptional<z.ZodString>;
|
|
174
|
-
otelConfiguredAt: z.ZodOptional<z.ZodString>;
|
|
175
|
-
otelConfigPath: z.ZodOptional<z.ZodString>;
|
|
176
|
-
otelOwnedKeys: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
177
|
-
/**
|
|
178
|
-
* Permission bits the agent's own config file carried before AgentWatch
|
|
179
|
-
* tightened it, so uninstall can put them back. Absent when the file was
|
|
180
|
-
* never tightened, or when AgentWatch created it.
|
|
181
|
-
*/
|
|
182
|
-
otelPriorMode: z.ZodOptional<z.ZodNumber>;
|
|
183
|
-
notes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
184
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
185
|
-
hooksInstalledAt: z.ZodOptional<z.ZodString>;
|
|
186
|
-
hookConfigPath: z.ZodOptional<z.ZodString>;
|
|
187
|
-
hookEvents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
27
|
+
hookEvents: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
188
28
|
hookCommand: z.ZodOptional<z.ZodString>;
|
|
189
29
|
otelConfiguredAt: z.ZodOptional<z.ZodString>;
|
|
190
30
|
otelConfigPath: z.ZodOptional<z.ZodString>;
|
|
191
|
-
otelOwnedKeys: z.ZodDefault<z.ZodArray<z.ZodString
|
|
192
|
-
/**
|
|
193
|
-
* Permission bits the agent's own config file carried before AgentWatch
|
|
194
|
-
* tightened it, so uninstall can put them back. Absent when the file was
|
|
195
|
-
* never tightened, or when AgentWatch created it.
|
|
196
|
-
*/
|
|
31
|
+
otelOwnedKeys: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
197
32
|
otelPriorMode: z.ZodOptional<z.ZodNumber>;
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}, z.
|
|
33
|
+
otelPriorValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
34
|
+
notes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
35
|
+
}, z.core.$loose>>>;
|
|
36
|
+
}, z.core.$loose>;
|
|
@@ -21,6 +21,12 @@ export const agentInstallSchema = z
|
|
|
21
21
|
* never tightened, or when AgentWatch created it.
|
|
22
22
|
*/
|
|
23
23
|
otelPriorMode: z.number().int().optional(),
|
|
24
|
+
/**
|
|
25
|
+
* What each owned key held before AgentWatch set it (the agent's own text
|
|
26
|
+
* for that entry), so uninstall puts the developer's value back instead of
|
|
27
|
+
* deleting it. Keys absent here were not there before.
|
|
28
|
+
*/
|
|
29
|
+
otelPriorValues: z.record(z.string(), z.string()).optional(),
|
|
24
30
|
notes: z.array(z.string()).default([])
|
|
25
31
|
})
|
|
26
32
|
.passthrough();
|
|
@@ -28,6 +34,6 @@ export const agentInstallSchema = z
|
|
|
28
34
|
export const installStateSchema = z
|
|
29
35
|
.object({
|
|
30
36
|
schemaVersion: z.literal(1).default(1),
|
|
31
|
-
agents: z.record(agentInstallSchema).default({})
|
|
37
|
+
agents: z.record(z.string(), agentInstallSchema).default({})
|
|
32
38
|
})
|
|
33
39
|
.passthrough();
|
|
@@ -11,20 +11,5 @@ export declare const queueEntrySchema: z.ZodObject<{
|
|
|
11
11
|
attempts: z.ZodDefault<z.ZodNumber>;
|
|
12
12
|
firstQueuedAt: z.ZodString;
|
|
13
13
|
nextAttemptAt: z.ZodString;
|
|
14
|
-
/** Events URL this entry was queued for; absent on pre-destination entries. */
|
|
15
14
|
destination: z.ZodOptional<z.ZodString>;
|
|
16
|
-
},
|
|
17
|
-
event: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18
|
-
attempts: z.ZodDefault<z.ZodNumber>;
|
|
19
|
-
firstQueuedAt: z.ZodString;
|
|
20
|
-
nextAttemptAt: z.ZodString;
|
|
21
|
-
/** Events URL this entry was queued for; absent on pre-destination entries. */
|
|
22
|
-
destination: z.ZodOptional<z.ZodString>;
|
|
23
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
24
|
-
event: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
25
|
-
attempts: z.ZodDefault<z.ZodNumber>;
|
|
26
|
-
firstQueuedAt: z.ZodString;
|
|
27
|
-
nextAttemptAt: z.ZodString;
|
|
28
|
-
/** Events URL this entry was queued for; absent on pre-destination entries. */
|
|
29
|
-
destination: z.ZodOptional<z.ZodString>;
|
|
30
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
15
|
+
}, z.core.$loose>;
|
|
@@ -8,7 +8,7 @@ import { z } from 'zod';
|
|
|
8
8
|
*/
|
|
9
9
|
export const queueEntrySchema = z
|
|
10
10
|
.object({
|
|
11
|
-
event: z.record(z.unknown()),
|
|
11
|
+
event: z.record(z.string(), z.unknown()),
|
|
12
12
|
attempts: z.number().int().nonnegative().default(0),
|
|
13
13
|
firstQueuedAt: z.string(),
|
|
14
14
|
nextAttemptAt: z.string(),
|
|
@@ -142,6 +142,23 @@ export declare const MAX_TURN_FILES = 500;
|
|
|
142
142
|
export declare const MAX_PROMPT_TEXT_LENGTH = 4000;
|
|
143
143
|
export declare const MAX_TOOL_INPUT_LENGTH = 2000;
|
|
144
144
|
export declare const MAX_TURN_TOOL_INPUTS = 50;
|
|
145
|
+
/**
|
|
146
|
+
* Tool calls one summary sends as `tool_events`; core clamps at the same
|
|
147
|
+
* count. A longer turn sends its first calls, and `tool_calls` and
|
|
148
|
+
* `tools_used` still count every one.
|
|
149
|
+
*/
|
|
150
|
+
export declare const MAX_TURN_TOOL_EVENTS = 200;
|
|
151
|
+
/** Core's bound on a tool name and a call id. */
|
|
152
|
+
export declare const MAX_TOOL_EVENT_ID_LENGTH = 200;
|
|
153
|
+
/** The exit codes core accepts. */
|
|
154
|
+
export declare const INT32_MIN = -2147483648;
|
|
155
|
+
export declare const INT32_MAX = 2147483647;
|
|
156
|
+
/** An unkeyed digest as core takes one. */
|
|
157
|
+
export declare const RE_SHA256_HEX: RegExp;
|
|
158
|
+
/** Metadata key of the content-free tool-call block an adapter puts on a tool event. */
|
|
159
|
+
export declare const TOOL_CALL_KEY = "toolCall";
|
|
160
|
+
/** Every turn record kind this release reads back; a file of any other kind is skipped. */
|
|
161
|
+
export declare const TURN_RECORD_KINDS: ReadonlySet<string>;
|
|
145
162
|
/**
|
|
146
163
|
* The longest session title sent, in UTF-16 units — what core cuts at — and
|
|
147
164
|
* never through a code point. Scrubbed whole first, like prompt text.
|
|
@@ -163,6 +163,23 @@ export const MAX_TURN_FILES = 500;
|
|
|
163
163
|
export const MAX_PROMPT_TEXT_LENGTH = 4000;
|
|
164
164
|
export const MAX_TOOL_INPUT_LENGTH = 2000;
|
|
165
165
|
export const MAX_TURN_TOOL_INPUTS = 50;
|
|
166
|
+
/**
|
|
167
|
+
* Tool calls one summary sends as `tool_events`; core clamps at the same
|
|
168
|
+
* count. A longer turn sends its first calls, and `tool_calls` and
|
|
169
|
+
* `tools_used` still count every one.
|
|
170
|
+
*/
|
|
171
|
+
export const MAX_TURN_TOOL_EVENTS = 200;
|
|
172
|
+
/** Core's bound on a tool name and a call id. */
|
|
173
|
+
export const MAX_TOOL_EVENT_ID_LENGTH = 200;
|
|
174
|
+
/** The exit codes core accepts. */
|
|
175
|
+
export const INT32_MIN = -2_147_483_648;
|
|
176
|
+
export const INT32_MAX = 2_147_483_647;
|
|
177
|
+
/** An unkeyed digest as core takes one. */
|
|
178
|
+
export const RE_SHA256_HEX = /^[0-9a-f]{64}$/;
|
|
179
|
+
/** Metadata key of the content-free tool-call block an adapter puts on a tool event. */
|
|
180
|
+
export const TOOL_CALL_KEY = 'toolCall';
|
|
181
|
+
/** Every turn record kind this release reads back; a file of any other kind is skipped. */
|
|
182
|
+
export const TURN_RECORD_KINDS = new Set(['prompt', 'tool', 'tool-start', 'response', 'checkout']);
|
|
166
183
|
/**
|
|
167
184
|
* The longest session title sent, in UTF-16 units — what core cuts at — and
|
|
168
185
|
* never through a code point. Scrubbed whole first, like prompt text.
|
package/dist/turns/index.d.ts
CHANGED
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
* closes the turn into one flat summary, and the backend finalizes its usage
|
|
4
4
|
* from the atomic llm.call ledger.
|
|
5
5
|
*/
|
|
6
|
-
export type { AgentUsageSummary, BuildTurnSummaryInput, TouchedFiles, TurnSummaryEvent, TurnUsageStatus } from './types/turn-summary.types.js';
|
|
7
|
-
export type { PromptRecord, ResponseRecord, SessionModelRecord, ToolRecord, TurnRecord, TurnStateEntry } from './types/turn-state.types.js';
|
|
6
|
+
export type { AgentUsageSummary, BuildTurnSummaryInput, ToolEvent, TouchedFiles, TurnSummaryEvent, TurnUsageStatus } from './types/turn-summary.types.js';
|
|
7
|
+
export type { PromptRecord, ResponseRecord, SessionModelRecord, ToolRecord, ToolStartRecord, TurnRecord, TurnStateEntry } from './types/turn-state.types.js';
|
|
8
8
|
export type { ReadTurnUsageRetry, TranscriptReader, TranscriptUsageEntry, TurnUsage } from './types/transcript.types.js';
|
|
9
9
|
export type { TrackTurnOptions, TurnWindow } from './types/turn-tracker.types.js';
|
|
10
10
|
export type { AggregateTurnUsageOptions, UsageTotals } from './types/aggregate-usage.types.js';
|
|
11
11
|
export { PROVIDER_LABELS, TURN_STATE_TTL_MS, USAGE_RETRY } from './constants/turns.constants.js';
|
|
12
|
+
export { buildToolEvents } from './tool-events.js';
|
|
12
13
|
export { buildTurnSummary } from './turn-summary.js';
|
|
13
14
|
export { TurnStateStore } from './turn-state.js';
|
|
14
15
|
export { readTurnUsage } from './claude-transcript.js';
|
package/dist/turns/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { PROVIDER_LABELS, TURN_STATE_TTL_MS, USAGE_RETRY } from './constants/turns.constants.js';
|
|
2
|
+
export { buildToolEvents } from './tool-events.js';
|
|
2
3
|
export { buildTurnSummary } from './turn-summary.js';
|
|
3
4
|
export { TurnStateStore } from './turn-state.js';
|
|
4
5
|
export { readTurnUsage } from './claude-transcript.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TurnRecord } from './types/turn-state.types.js';
|
|
2
|
+
import type { ToolEvent } from './types/turn-summary.types.js';
|
|
3
|
+
/**
|
|
4
|
+
* The turn's tool calls as `tool_events`: each completion dated by its start,
|
|
5
|
+
* in call order, the first {@link MAX_TURN_TOOL_EVENTS} only.
|
|
6
|
+
*
|
|
7
|
+
* Pure over the turn's records, so a duplicate Stop sends the same list. A
|
|
8
|
+
* completion with no status was written by an older release and sends no
|
|
9
|
+
* event; a start that came after its completion (a clock step) dates nothing.
|
|
10
|
+
* The caller decides whether the list may leave: it rides `capture.git`.
|
|
11
|
+
*
|
|
12
|
+
* @param records - The closing turn's records, oldest first.
|
|
13
|
+
* @returns The events, possibly empty.
|
|
14
|
+
*/
|
|
15
|
+
export declare function buildToolEvents(records: readonly TurnRecord[]): ToolEvent[];
|