agent-afk 5.303.4 → 5.303.6

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,22 @@
1
+ import { type SubagentInvocation, type ToolEventInput } from './schema.js';
2
+ export declare const EVIDENCE_CAP = 50;
3
+ export declare function parseInput(input: string | undefined): Record<string, unknown> | undefined;
4
+ export declare function asString(v: unknown): string | undefined;
5
+ export declare function dedupeToolEvents(events: ToolEventInput[]): ToolEventInput[];
6
+ export interface AggregateToolEventsResult {
7
+ toolCounts: Record<string, number>;
8
+ toolErrorCategories: Record<string, number>;
9
+ subagents: SubagentInvocation[];
10
+ skills: string[];
11
+ evidencePaths: string[];
12
+ toolErrors: number;
13
+ filesWritten: number;
14
+ filesEdited: number;
15
+ bashCommands: number;
16
+ commits: number;
17
+ bashExternalEffects: number;
18
+ detectedPrUrl: string | null;
19
+ composePartialNodes: number;
20
+ composePartialNodeCount: number;
21
+ }
22
+ export declare function aggregateToolEvents(allEvents: ToolEventInput[]): AggregateToolEventsResult;
@@ -1,5 +1,6 @@
1
1
  import { type SessionFacet, type StoredSessionInput, type SubagentToolSummary, type ToolEventInput } from './schema.js';
2
2
  import type { TraceSignals } from './derive.trace.js';
3
+ export { dedupeToolEvents } from './derive.aggregate.js';
3
4
  export interface DeriveOptions {
4
5
  sourceSessionPath?: string;
5
6
  sourceSessionMtimeMs?: number;
@@ -8,5 +9,4 @@ export interface DeriveOptions {
8
9
  subagentBreakdown?: SubagentToolSummary[];
9
10
  traceSignals?: TraceSignals;
10
11
  }
11
- export declare function dedupeToolEvents(events: ToolEventInput[]): ToolEventInput[];
12
12
  export declare function deriveSessionFacet(session: StoredSessionInput, options?: DeriveOptions): SessionFacet;
@@ -1,11 +1,12 @@
1
1
  import type { FacetOutcomeDowngradeReason } from './schema.js';
2
2
  import type { TraceSignals } from './derive.trace.js';
3
- export declare function checkDowngradeSignals({ parsedDeferred, parsedEvidence, filesWritten, filesEdited, commits, composePartialNodes, traceSignals, }: {
3
+ export declare function checkDowngradeSignals({ parsedDeferred, parsedEvidence, filesWritten, filesEdited, commits, bashExternalEffects, composePartialNodes, traceSignals, }: {
4
4
  parsedDeferred: string | undefined;
5
5
  parsedEvidence: string | undefined;
6
6
  filesWritten: number;
7
7
  filesEdited: number;
8
8
  commits: number;
9
+ bashExternalEffects?: number;
9
10
  composePartialNodes: number;
10
11
  traceSignals: TraceSignals | undefined;
11
12
  }): FacetOutcomeDowngradeReason | undefined;
@@ -1,3 +1,3 @@
1
- export declare const RAW_INPUT_FIELDS: readonly ["file_path", "name", "id_prefix"];
1
+ export declare const RAW_INPUT_FIELDS: readonly ["file_path", "name", "id_prefix", "dry_run"];
2
2
  export declare const RAW_INPUT_FIELD_CAP = 4096;
3
3
  export declare function extractRawToolInput(input: unknown): string | undefined;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const FACET_VERSION = 11;
2
+ export declare const FACET_VERSION = 12;
3
3
  export declare const ToolEventInputSchema: z.ZodObject<{
4
4
  toolName: z.ZodString;
5
5
  toolUseId: z.ZodOptional<z.ZodString>;
@@ -0,0 +1,5 @@
1
+ import { type CatalogModel, type CatalogReaderDeps } from './models-catalog.js';
2
+ export declare function catalogEntryFor(model: string | undefined, deps?: CatalogReaderDeps): CatalogModel | undefined;
3
+ export declare function catalogSupportsImages(model: string | undefined, deps?: CatalogReaderDeps): boolean | undefined;
4
+ export declare function catalogIsReasoningModel(model: string | undefined, deps?: CatalogReaderDeps): boolean | undefined;
5
+ export declare function catalogContextWindow(model: string | undefined, deps?: CatalogReaderDeps): number | undefined;
@@ -16,6 +16,8 @@ export interface CatalogModel {
16
16
  description?: string;
17
17
  }>;
18
18
  default_service_tier?: string;
19
+ input_modalities?: string[];
20
+ supported_reasoning_levels?: string[];
19
21
  }
20
22
  export interface CatalogReaderDeps {
21
23
  homedir?: () => string;
@@ -56,7 +56,8 @@ export declare class ProcessJobRegistry extends EventEmitter<ProcessJobRegistryE
56
56
  readonly sessionLabel: string;
57
57
  readonly logDir: string;
58
58
  readonly maxConcurrent: number;
59
- private opts;
59
+ private readonly opts;
60
+ private traceWriter;
60
61
  private readonly jobs;
61
62
  private counter;
62
63
  private closed;
@@ -1 +1,3 @@
1
+ import type { ToolResult } from './types.js';
1
2
  export declare function collectPostRunWarnings(model: string, hasAttachments: boolean, agentName: string | undefined, prompt: string, childWriteCapable: boolean, supportsVisionFn: (m: string) => boolean): string;
3
+ export declare function applyPostRunNotices(result: ToolResult, model: string, hasAttachments: boolean, agentName: string | undefined, prompt: string, childWriteCapable: boolean, usageNotice: string | undefined): void;