agent-afk 5.75.3 → 5.76.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -145,7 +145,7 @@ afk chat "refactor this" --model gpt-5.5
145
145
  | `local` | *(empty — you configure)* | Point at Ollama, LM Studio, or any OpenAI-compatible shim via `AFK_MODEL_LOCAL` + `AFK_MODEL_LOCAL_BASE_URL` |
146
146
  | `small` | `claude-haiku-4-5-20251001` | Cheapest/fastest Anthropic tier |
147
147
  | `medium` | `claude-sonnet-5` | General-use default |
148
- | `large` | `claude-opus-4-8` | Most capable |
148
+ | `large` | `claude-opus-5` | Most capable |
149
149
 
150
150
  The `haiku`/`sonnet`/`opus`/`fable` handles are **fixed identities**, not tier
151
151
  aliases: they always resolve to their Claude model even after you rebind a tier
@@ -17,6 +17,7 @@ export interface RoutingDecisionEntry {
17
17
  reason?: string | undefined;
18
18
  requested_name?: string | undefined;
19
19
  model?: string | undefined;
20
+ resolved_agent_type?: string | undefined;
20
21
  mode?: string | undefined;
21
22
  max_turns?: number | undefined;
22
23
  node_count?: number | undefined;
@@ -11,7 +11,7 @@ export interface ModelSlotBinding {
11
11
  export type ModelSlots = Record<SlotName, ModelSlotBinding>;
12
12
  export declare const CLAUDE_HAIKU_ID = "claude-haiku-4-5-20251001";
13
13
  export declare const CLAUDE_SONNET_ID = "claude-sonnet-5";
14
- export declare const CLAUDE_OPUS_ID = "claude-opus-4-8";
14
+ export declare const CLAUDE_OPUS_ID = "claude-opus-5";
15
15
  export declare const CLAUDE_FABLE_5_ID = "claude-fable-5";
16
16
  export declare const DEFAULT_SLOT_BINDINGS: ModelSlots;
17
17
  export declare const AUTO_SENTINEL = "auto";
@@ -0,0 +1,5 @@
1
+ export interface ChildModelCoercion {
2
+ model: string | undefined;
3
+ coercedFrom?: string;
4
+ }
5
+ export declare function coerceCrossProviderChildModel(childModel: string | undefined, parentModel: string | undefined): ChildModelCoercion;
@@ -28,6 +28,7 @@ export interface ForkSubagentOptions<T = unknown> {
28
28
  idPrefix?: string;
29
29
  outputSchema?: ZodType<T>;
30
30
  agentType: string;
31
+ resolvedAgentType?: string;
31
32
  parentId?: string;
32
33
  promptHead?: string;
33
34
  denyElicitations?: boolean;
@@ -55,6 +56,7 @@ export declare class SubagentManager {
55
56
  private readonly parentApiKey;
56
57
  private readonly parentBaseUrl;
57
58
  private readonly parentProvider;
59
+ private readonly parentModel;
58
60
  private parentCwd;
59
61
  private readonly parentReadRoots;
60
62
  private readonly worktreeMainRootCache;
@@ -0,0 +1 @@
1
+ export declare function describeRgUnavailable(rgPath: string): string | undefined;
@@ -108,6 +108,7 @@ export declare const SubagentStartedPayloadSchema: z.ZodObject<{
108
108
  systemPromptHash: z.ZodOptional<z.ZodString>;
109
109
  promptHead: z.ZodOptional<z.ZodString>;
110
110
  agentType: z.ZodOptional<z.ZodString>;
111
+ resolvedAgentType: z.ZodOptional<z.ZodString>;
111
112
  }, z.core.$strip>;
112
113
  export declare const SubagentSucceededPayloadSchema: z.ZodObject<{
113
114
  transition: z.ZodLiteral<"succeeded">;
@@ -152,6 +153,7 @@ export declare const SubagentLifecyclePayloadSchema: z.ZodDiscriminatedUnion<[z.
152
153
  systemPromptHash: z.ZodOptional<z.ZodString>;
153
154
  promptHead: z.ZodOptional<z.ZodString>;
154
155
  agentType: z.ZodOptional<z.ZodString>;
156
+ resolvedAgentType: z.ZodOptional<z.ZodString>;
155
157
  }, z.core.$strip>, z.ZodObject<{
156
158
  transition: z.ZodLiteral<"succeeded">;
157
159
  subagentId: z.ZodString;
@@ -609,6 +611,7 @@ export declare const TraceEventInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
609
611
  systemPromptHash: z.ZodOptional<z.ZodString>;
610
612
  promptHead: z.ZodOptional<z.ZodString>;
611
613
  agentType: z.ZodOptional<z.ZodString>;
614
+ resolvedAgentType: z.ZodOptional<z.ZodString>;
612
615
  }, z.core.$strip>, z.ZodObject<{
613
616
  transition: z.ZodLiteral<"succeeded">;
614
617
  subagentId: z.ZodString;
@@ -923,6 +926,7 @@ export declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
923
926
  systemPromptHash: z.ZodOptional<z.ZodString>;
924
927
  promptHead: z.ZodOptional<z.ZodString>;
925
928
  agentType: z.ZodOptional<z.ZodString>;
929
+ resolvedAgentType: z.ZodOptional<z.ZodString>;
926
930
  }, z.core.$strip>, z.ZodObject<{
927
931
  transition: z.ZodLiteral<"succeeded">;
928
932
  subagentId: z.ZodString;
@@ -43,6 +43,7 @@ export interface SubagentStartedPayload {
43
43
  systemPromptHash?: string;
44
44
  promptHead?: string;
45
45
  agentType?: string;
46
+ resolvedAgentType?: string;
46
47
  }
47
48
  export interface SubagentSucceededPayload {
48
49
  transition: 'succeeded';