agent-afk 5.275.4 → 5.275.5
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/cli.mjs +311 -305
- package/dist/index.mjs +127 -127
- package/dist/telegram.mjs +145 -145
- package/dist/whatif/predict.d.ts +1 -0
- package/dist/whatif/redundancy.d.ts +15 -0
- package/package.json +2 -2
package/dist/whatif/predict.d.ts
CHANGED
|
@@ -14,5 +14,6 @@ export interface PredictInput {
|
|
|
14
14
|
repoManifest?: RepoManifest;
|
|
15
15
|
probesPerPrediction?: number;
|
|
16
16
|
maxPredictions?: number;
|
|
17
|
+
redundancySection?: string;
|
|
17
18
|
}
|
|
18
19
|
export declare function predictChanges(input: PredictInput, complete: CompleteFn, model: string): Promise<Prediction[]>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const REDUNDANCY_THRESHOLD = 0.35;
|
|
2
|
+
export declare function tokenize(text: string): Set<string>;
|
|
3
|
+
export declare function jaccardSimilarity(a: string, b: string): number;
|
|
4
|
+
export declare function splitParagraphs(text: string): string[];
|
|
5
|
+
export declare function extractAddedParagraphs(systemDiff: string): string[];
|
|
6
|
+
export declare function findNearestHeading(baselineSystem: string, paragraph: string): string | undefined;
|
|
7
|
+
export interface RedundancyWarning {
|
|
8
|
+
addedParagraph: string;
|
|
9
|
+
matchingParagraph: string;
|
|
10
|
+
similarity: number;
|
|
11
|
+
sourceSection?: string;
|
|
12
|
+
message: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function checkRedundancy(baselineSystem: string, systemDiff: string): RedundancyWarning[];
|
|
15
|
+
export declare function formatRedundancySection(warnings: RedundancyWarning[]): string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-afk",
|
|
3
|
-
"version": "5.275.
|
|
3
|
+
"version": "5.275.5",
|
|
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",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"assets/demo-placeholder.png"
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
|
-
"postinstall": "node
|
|
26
|
+
"postinstall": "node scripts/postinstall.mjs || true",
|
|
27
27
|
"build": "tsc && node scripts/build-web-ui.mjs && node scripts/copy-prompts.js",
|
|
28
28
|
"dev": "tsx src/cli/index.ts",
|
|
29
29
|
"start": "node dist/cli/index.js",
|