agent-afk 5.321.1 → 5.321.3
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/session/closure-emitter.d.ts +1 -0
- package/dist/agent/tools/handlers/remote-agent.d.ts +1 -0
- package/dist/agent/trace/events.d.ts +3 -0
- package/dist/agent/trace/types.d.ts +1 -0
- package/dist/bundled-plugins/awa-bundled/skills/fix-pr/SKILL.md +2 -2
- package/dist/cli.mjs +402 -400
- package/dist/index.mjs +200 -198
- package/dist/remote/remote-run.d.ts +2 -0
- package/dist/remote/remote-script.d.ts +4 -1
- package/dist/remote/ssh-runner.d.ts +1 -2
- package/dist/skills/_agents/git-investigator.d.ts +0 -1
- package/dist/telegram.mjs +212 -210
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ export interface ClosureTotals {
|
|
|
23
23
|
}
|
|
24
24
|
export interface EmitClosureInput extends ClosureSignals, ClosureTotals {
|
|
25
25
|
runningTokens: ClosureTokenCounters;
|
|
26
|
+
subagentId?: string;
|
|
26
27
|
}
|
|
27
28
|
export declare function emitClosureEvent(writer: TraceSink | undefined, input: EmitClosureInput): Promise<void>;
|
|
28
29
|
export interface SealTraceInput extends ClosureSignals, ClosureTotals {
|
|
@@ -18,6 +18,7 @@ interface RemoteAgentInput {
|
|
|
18
18
|
}
|
|
19
19
|
export declare function parseRemoteAgentInput(raw: unknown): RemoteAgentInput | ToolResult;
|
|
20
20
|
export declare function isRemoteRun(): boolean;
|
|
21
|
+
export declare function neutraliseRemoteOutput(text: string): string;
|
|
21
22
|
export declare function createRemoteAgentHandler(deps: RemoteAgentDeps): ToolHandler;
|
|
22
23
|
export declare const remoteAgentHandler: ToolHandler;
|
|
23
24
|
export {};
|
|
@@ -226,6 +226,7 @@ export declare const ClosurePayloadSchema: z.ZodObject<{
|
|
|
226
226
|
}, z.core.$strip>;
|
|
227
227
|
lastStopReason: z.ZodOptional<z.ZodString>;
|
|
228
228
|
guidance: z.ZodOptional<z.ZodString>;
|
|
229
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
229
230
|
}, z.core.$strip>;
|
|
230
231
|
export declare const ClaimPayloadSchema: z.ZodObject<{
|
|
231
232
|
source: z.ZodString;
|
|
@@ -566,6 +567,7 @@ export declare const TraceEventInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
566
567
|
}, z.core.$strip>;
|
|
567
568
|
lastStopReason: z.ZodOptional<z.ZodString>;
|
|
568
569
|
guidance: z.ZodOptional<z.ZodString>;
|
|
570
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
569
571
|
}, z.core.$strip>;
|
|
570
572
|
}, z.core.$strip>, z.ZodObject<{
|
|
571
573
|
kind: z.ZodLiteral<"claim">;
|
|
@@ -1012,6 +1014,7 @@ export declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1012
1014
|
}, z.core.$strip>;
|
|
1013
1015
|
lastStopReason: z.ZodOptional<z.ZodString>;
|
|
1014
1016
|
guidance: z.ZodOptional<z.ZodString>;
|
|
1017
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
1015
1018
|
}, z.core.$strip>;
|
|
1016
1019
|
}, z.core.$strip>, z.ZodObject<{
|
|
1017
1020
|
ts: z.ZodString;
|
|
@@ -78,7 +78,7 @@ This phase validates each spec item independently before any writes begin. The g
|
|
|
78
78
|
|
|
79
79
|
- **agent_type:** `research-agent` (mechanically read-only -- cannot write files, run bash, or commit).
|
|
80
80
|
- **cwd:** `<worktree path>` (so file reads target the PR branch, not the main working tree).
|
|
81
|
-
- **model:** `
|
|
81
|
+
- **model:** the cheapest model the operator has configured (e.g. the `small` slot) when one is available; otherwise omit `model` so the operator's subagent default applies. Never hardcode a model name.
|
|
82
82
|
- **max_tool_use_iterations:** 8 (read the cited code, check surrounding context, form a verdict -- more than enough).
|
|
83
83
|
- **inputs (in prompt):** one numbered spec item (comment text, source URL, file/line if known) and the `head_branch`.
|
|
84
84
|
- **goal:** read the cited file(s) and surrounding context in the worktree. Determine whether the reviewer's request is (a) valid and unaddressed, (b) already addressed by existing code, or (c) a false positive / misunderstanding. If valid, propose the minimal fix: exact file, location, and the change to make.
|
|
@@ -105,7 +105,7 @@ If ALL items are triaged out (every probe returned `already-addressed` or `inval
|
|
|
105
105
|
|
|
106
106
|
Size the dispatch per `/right-size-delegation` if available; defaults otherwise:
|
|
107
107
|
|
|
108
|
-
Dispatch ONE implementation subagent (`agent` tool, `cwd: <worktree path>`, `max_turns: 25`, model right-sized to the diff -- `
|
|
108
|
+
Dispatch ONE implementation subagent (`agent` tool, `cwd: <worktree path>`, `max_turns: 25`, model right-sized to the diff -- omit `model` by default so the operator's subagent default applies; never downgrade to the cheapest tier for code fixes):
|
|
109
109
|
- inputs: the **triaged fix spec** (not raw review comments): each surviving item carries its original numbered ID, the reviewer's request, the triage probe's `proposed_fix` and `risk` assessment, and `unclear` items carry the probe's reasoning. Also: `head_branch`, repo test/lint commands (inferred from package.json / Makefile / pyproject.toml and passed explicitly).
|
|
110
110
|
- goal: apply every surviving spec item with minimal diffs, using the triage probe's proposed fixes as a starting point (the probe proposals are guidance, not mandates -- the write agent may deviate if it discovers a better approach). Run the narrowest relevant tests per item. **Do NOT commit yet** -- emit the manifest first (see below).
|
|
111
111
|
- non_goals: do NOT push, do NOT touch branches other than the checked-out one, do NOT invoke /review or any skill, do NOT expand scope beyond the surviving spec items, do NOT modify files that are not named in the triaged spec unless a fix structurally requires it (e.g. a shared helper, a test file, a baseline file the gate checks).
|