agent-afk 5.322.16 → 5.322.17

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.
@@ -0,0 +1,3 @@
1
+ export declare const WIND_DOWN_NO_ANSWER_PLACEHOLDER: string;
2
+ export declare function stripToolCallMarkup(text: string): string;
3
+ export declare function windDownFinalText(roundText: string): string;
@@ -5,4 +5,6 @@ export declare function isReadOnlyGitToolEnabled(): boolean;
5
5
  export declare function swapBashForGitRead(tools: readonly string[]): string[];
6
6
  export declare function applyReadOnlyGitPermissions(permissions: ToolPermissionConfig | undefined, readOnlyBash: boolean | undefined): ToolPermissionConfig | undefined;
7
7
  export declare const READONLY_BASH_DISABLED_REASON: string;
8
+ export declare function readOnlyBashDenialOverride(toolName: string, readOnlyBash: boolean): string | undefined;
9
+ export declare function withGitReadSubstitution(body: string): string;
8
10
  export declare function readOnlyGitSchemas(): AnthropicToolDef[];
@@ -0,0 +1,56 @@
1
+ import type { TraceEvent } from './types.js';
2
+ type AnyValue = {
3
+ stringValue: string;
4
+ } | {
5
+ intValue: string;
6
+ } | {
7
+ boolValue: boolean;
8
+ } | {
9
+ doubleValue: number;
10
+ };
11
+ interface KeyValue {
12
+ key: string;
13
+ value: AnyValue;
14
+ }
15
+ interface SpanEvent {
16
+ timeUnixNano: string;
17
+ name: string;
18
+ attributes?: KeyValue[];
19
+ }
20
+ interface SpanStatus {
21
+ code: 0 | 1 | 2;
22
+ message?: string;
23
+ }
24
+ export interface OtlpSpan {
25
+ traceId: string;
26
+ spanId: string;
27
+ parentSpanId?: string;
28
+ name: string;
29
+ kind: number;
30
+ startTimeUnixNano: string;
31
+ endTimeUnixNano: string;
32
+ attributes: KeyValue[];
33
+ events?: SpanEvent[];
34
+ status: SpanStatus;
35
+ }
36
+ export interface OtlpResourceSpans {
37
+ resource: {
38
+ attributes: KeyValue[];
39
+ };
40
+ scopeSpans: Array<{
41
+ scope: {
42
+ name: string;
43
+ version: string;
44
+ };
45
+ spans: OtlpSpan[];
46
+ }>;
47
+ }
48
+ export interface OtlpExportRequest {
49
+ resourceSpans: OtlpResourceSpans[];
50
+ }
51
+ export interface TraceToOtlpOptions {
52
+ sessionId: string;
53
+ malformed?: number;
54
+ }
55
+ export declare function traceToOtlp(events: readonly TraceEvent[], opts: TraceToOtlpOptions): OtlpExportRequest;
56
+ export {};