agent-afk 5.26.1 → 5.26.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/dist/agent/ask-question-gate.d.ts +7 -0
- package/dist/agent/elicitation-router.d.ts +1 -0
- package/dist/bundled-plugins/awa-bundled/skills/diagnose/SKILL.md +11 -0
- package/dist/cli/commands/skill-router.d.ts +0 -1
- package/dist/cli.mjs +506 -782
- package/dist/index.mjs +189 -466
- package/dist/skills/all.d.ts +0 -1
- package/dist/skills/mint/_phases/heal.d.ts +1 -1
- package/dist/telegram.mjs +228 -504
- package/package.json +1 -1
- package/dist/skills/diagnose/_phases/orchestrator.d.ts +0 -8
- package/dist/skills/diagnose/_phases/triage.d.ts +0 -4
- package/dist/skills/diagnose/_phases/types.d.ts +0 -144
- package/dist/skills/diagnose/_phases/verifier.d.ts +0 -16
- package/dist/skills/diagnose/index.d.ts +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-afk",
|
|
3
|
-
"version": "5.26.
|
|
3
|
+
"version": "5.26.2",
|
|
4
4
|
"description": "Open-source coding-agent harness you can actually change — own the loop (prompts, gates, routing, skills, terminal states), use any model, run long tasks while you're away.",
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { SkillExecutionContext } from '../../index.js';
|
|
2
|
-
import type { IAgentSession } from '../../../agent/types.js';
|
|
3
|
-
import type { CanUseTool } from '../../../agent/types/sdk-types.js';
|
|
4
|
-
import type { DiagnosisResult } from './types.js';
|
|
5
|
-
export declare function createReadOnlyCanUseTool(): CanUseTool;
|
|
6
|
-
export declare function createGitLaneCanUseTool(): CanUseTool;
|
|
7
|
-
export declare function createVerifierCanUseTool(): CanUseTool;
|
|
8
|
-
export declare function handler(input: unknown, parentSession?: IAgentSession, ctx?: SkillExecutionContext): Promise<DiagnosisResult>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Hypothesis, VerificationResult, DiagnosisOutcome, Triage } from './types.js';
|
|
2
|
-
export declare function classifyAndExtract(failure: string, context: string): Triage;
|
|
3
|
-
export declare function fixSpansMultipleFiles(hypothesis: Hypothesis): boolean;
|
|
4
|
-
export declare function computeOutcome(hypotheses: Hypothesis[], verificationResults: VerificationResult[]): DiagnosisOutcome;
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export interface Verification {
|
|
3
|
-
claim: string;
|
|
4
|
-
verdict: 'VERIFIED' | 'REFUTED' | 'INCONCLUSIVE';
|
|
5
|
-
evidence: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const HypothesisSchema: z.ZodObject<{
|
|
8
|
-
id: z.ZodString;
|
|
9
|
-
claim: z.ZodString;
|
|
10
|
-
confidence: z.ZodNumber;
|
|
11
|
-
evidence_sources: z.ZodArray<z.ZodString>;
|
|
12
|
-
location: z.ZodOptional<z.ZodString>;
|
|
13
|
-
proposed_fix: z.ZodOptional<z.ZodString>;
|
|
14
|
-
coverage_gaps: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>, z.ZodTransform<string[] | undefined, string[] | null | undefined>>;
|
|
15
|
-
boundary_flag: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
16
|
-
}, z.core.$strip>;
|
|
17
|
-
export type Hypothesis = z.infer<typeof HypothesisSchema>;
|
|
18
|
-
export declare const PremiseVerificationSchema: z.ZodObject<{
|
|
19
|
-
hypothesis_id: z.ZodString;
|
|
20
|
-
claim: z.ZodString;
|
|
21
|
-
verdict: z.ZodEnum<{
|
|
22
|
-
VERIFIED: "VERIFIED";
|
|
23
|
-
REFUTED: "REFUTED";
|
|
24
|
-
INCONCLUSIVE: "INCONCLUSIVE";
|
|
25
|
-
}>;
|
|
26
|
-
evidence: z.ZodString;
|
|
27
|
-
gate_reason: z.ZodString;
|
|
28
|
-
}, z.core.$strip>;
|
|
29
|
-
export type PremiseVerification = z.infer<typeof PremiseVerificationSchema>;
|
|
30
|
-
export declare const VerificationResultSchema: z.ZodObject<{
|
|
31
|
-
hypothesis_id: z.ZodString;
|
|
32
|
-
predicted_pass: z.ZodBoolean;
|
|
33
|
-
regressions: z.ZodArray<z.ZodString>;
|
|
34
|
-
confidence: z.ZodNumber;
|
|
35
|
-
verification_log: z.ZodString;
|
|
36
|
-
timed_out: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
export type VerificationResult = z.infer<typeof VerificationResultSchema>;
|
|
39
|
-
export declare const FailureTypeSchema: z.ZodEnum<{
|
|
40
|
-
unknown: "unknown";
|
|
41
|
-
crash: "crash";
|
|
42
|
-
regression: "regression";
|
|
43
|
-
"logic-error": "logic-error";
|
|
44
|
-
flaky: "flaky";
|
|
45
|
-
environment: "environment";
|
|
46
|
-
}>;
|
|
47
|
-
export type FailureType = z.infer<typeof FailureTypeSchema>;
|
|
48
|
-
export declare const TriageSchema: z.ZodObject<{
|
|
49
|
-
failure_type: z.ZodEnum<{
|
|
50
|
-
unknown: "unknown";
|
|
51
|
-
crash: "crash";
|
|
52
|
-
regression: "regression";
|
|
53
|
-
"logic-error": "logic-error";
|
|
54
|
-
flaky: "flaky";
|
|
55
|
-
environment: "environment";
|
|
56
|
-
}>;
|
|
57
|
-
error_signature: z.ZodString;
|
|
58
|
-
affected_area: z.ZodString;
|
|
59
|
-
}, z.core.$strip>;
|
|
60
|
-
export type Triage = z.infer<typeof TriageSchema>;
|
|
61
|
-
export declare const DiagnosisOutcomeSchema: z.ZodEnum<{
|
|
62
|
-
dissent: "dissent";
|
|
63
|
-
clear_winner: "clear_winner";
|
|
64
|
-
multiple_plausible: "multiple_plausible";
|
|
65
|
-
all_inconclusive: "all_inconclusive";
|
|
66
|
-
no_hypotheses: "no_hypotheses";
|
|
67
|
-
}>;
|
|
68
|
-
export type DiagnosisOutcome = z.infer<typeof DiagnosisOutcomeSchema>;
|
|
69
|
-
export declare const DiagnosisResultSchema: z.ZodObject<{
|
|
70
|
-
reproducer: z.ZodOptional<z.ZodString>;
|
|
71
|
-
triage: z.ZodOptional<z.ZodObject<{
|
|
72
|
-
failure_type: z.ZodEnum<{
|
|
73
|
-
unknown: "unknown";
|
|
74
|
-
crash: "crash";
|
|
75
|
-
regression: "regression";
|
|
76
|
-
"logic-error": "logic-error";
|
|
77
|
-
flaky: "flaky";
|
|
78
|
-
environment: "environment";
|
|
79
|
-
}>;
|
|
80
|
-
error_signature: z.ZodString;
|
|
81
|
-
affected_area: z.ZodString;
|
|
82
|
-
}, z.core.$strip>>;
|
|
83
|
-
hypotheses: z.ZodArray<z.ZodObject<{
|
|
84
|
-
id: z.ZodString;
|
|
85
|
-
claim: z.ZodString;
|
|
86
|
-
confidence: z.ZodNumber;
|
|
87
|
-
evidence_sources: z.ZodArray<z.ZodString>;
|
|
88
|
-
location: z.ZodOptional<z.ZodString>;
|
|
89
|
-
proposed_fix: z.ZodOptional<z.ZodString>;
|
|
90
|
-
coverage_gaps: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>, z.ZodTransform<string[] | undefined, string[] | null | undefined>>;
|
|
91
|
-
boundary_flag: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string | undefined, string | null | undefined>>;
|
|
92
|
-
}, z.core.$strip>>;
|
|
93
|
-
premise_verifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
94
|
-
hypothesis_id: z.ZodString;
|
|
95
|
-
claim: z.ZodString;
|
|
96
|
-
verdict: z.ZodEnum<{
|
|
97
|
-
VERIFIED: "VERIFIED";
|
|
98
|
-
REFUTED: "REFUTED";
|
|
99
|
-
INCONCLUSIVE: "INCONCLUSIVE";
|
|
100
|
-
}>;
|
|
101
|
-
evidence: z.ZodString;
|
|
102
|
-
gate_reason: z.ZodString;
|
|
103
|
-
}, z.core.$strip>>>;
|
|
104
|
-
winner: z.ZodOptional<z.ZodObject<{
|
|
105
|
-
hypothesis_id: z.ZodString;
|
|
106
|
-
verification_log: z.ZodString;
|
|
107
|
-
proposed_fix: z.ZodString;
|
|
108
|
-
}, z.core.$strip>>;
|
|
109
|
-
verification_results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
110
|
-
hypothesis_id: z.ZodString;
|
|
111
|
-
predicted_pass: z.ZodBoolean;
|
|
112
|
-
regressions: z.ZodArray<z.ZodString>;
|
|
113
|
-
confidence: z.ZodNumber;
|
|
114
|
-
verification_log: z.ZodString;
|
|
115
|
-
timed_out: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
-
}, z.core.$strip>>>;
|
|
117
|
-
outcome: z.ZodOptional<z.ZodEnum<{
|
|
118
|
-
dissent: "dissent";
|
|
119
|
-
clear_winner: "clear_winner";
|
|
120
|
-
multiple_plausible: "multiple_plausible";
|
|
121
|
-
all_inconclusive: "all_inconclusive";
|
|
122
|
-
no_hypotheses: "no_hypotheses";
|
|
123
|
-
}>>;
|
|
124
|
-
recommended_next_skill: z.ZodOptional<z.ZodEnum<{
|
|
125
|
-
spec: "spec";
|
|
126
|
-
}>>;
|
|
127
|
-
}, z.core.$strip>;
|
|
128
|
-
export type DiagnosisResult = z.infer<typeof DiagnosisResultSchema>;
|
|
129
|
-
export type VerifyBatchFn = (claims: string[]) => Promise<Verification[]>;
|
|
130
|
-
export declare const ShadowVerifyEnvelopeSchema: z.ZodObject<{
|
|
131
|
-
verifications: z.ZodArray<z.ZodObject<{
|
|
132
|
-
claim: z.ZodOptional<z.ZodString>;
|
|
133
|
-
verdict: z.ZodString;
|
|
134
|
-
evidence: z.ZodOptional<z.ZodString>;
|
|
135
|
-
}, z.core.$strip>>;
|
|
136
|
-
}, z.core.$strip>;
|
|
137
|
-
export interface BaselineResult {
|
|
138
|
-
skipped: boolean;
|
|
139
|
-
reason?: string;
|
|
140
|
-
exitCode: number | null;
|
|
141
|
-
stdout: string;
|
|
142
|
-
stderr: string;
|
|
143
|
-
timedOut: boolean;
|
|
144
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { execFile as execFileCallback } from 'node:child_process';
|
|
2
|
-
import type { Verification, Hypothesis, PremiseVerification, VerifyBatchFn, BaselineResult } from './types.js';
|
|
3
|
-
declare const execFile: typeof execFileCallback.__promisify__;
|
|
4
|
-
export declare function parseShadowVerifyOutput(raw: string): Verification[];
|
|
5
|
-
export declare function runReproducerBaseline(command: string, cwd: string, exec?: typeof execFile): Promise<BaselineResult>;
|
|
6
|
-
export declare function buildVerifierUserPrompt(hypothesis: {
|
|
7
|
-
id: string;
|
|
8
|
-
claim: string;
|
|
9
|
-
location?: string;
|
|
10
|
-
proposed_fix?: string;
|
|
11
|
-
}, reproducer: string, worktreePath: string, baseline: BaselineResult): string;
|
|
12
|
-
export declare function autoVerifyHypotheses(hypotheses: Hypothesis[], verify: VerifyBatchFn): Promise<{
|
|
13
|
-
premise_verifications: PremiseVerification[];
|
|
14
|
-
hypotheses_to_test: Hypothesis[];
|
|
15
|
-
}>;
|
|
16
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type { Verification, Hypothesis, PremiseVerification, VerificationResult, DiagnosisResult, VerifyBatchFn, BaselineResult, FailureType, Triage, DiagnosisOutcome, } from './_phases/types.js';
|
|
2
|
-
export { HypothesisSchema, PremiseVerificationSchema, VerificationResultSchema, FailureTypeSchema, TriageSchema, DiagnosisOutcomeSchema, DiagnosisResultSchema, } from './_phases/types.js';
|
|
3
|
-
export { classifyAndExtract, fixSpansMultipleFiles, computeOutcome } from './_phases/triage.js';
|
|
4
|
-
export { parseShadowVerifyOutput, runReproducerBaseline, buildVerifierUserPrompt, autoVerifyHypotheses, } from './_phases/verifier.js';
|
|
5
|
-
export { createReadOnlyCanUseTool, createGitLaneCanUseTool, createVerifierCanUseTool, } from './_phases/orchestrator.js';
|
|
6
|
-
import { type SkillMetadata } from '../index.js';
|
|
7
|
-
export declare const diagnoseSkill: SkillMetadata;
|