agent-afk 5.262.1 → 5.263.0
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/outcomes/child-attribution.d.ts +2 -0
- package/dist/agent/outcomes/index.d.ts +5 -0
- package/dist/agent/outcomes/lf-reask.d.ts +4 -0
- package/dist/agent/outcomes/schema.d.ts +2 -0
- package/dist/agent/outcomes/session-end-hook.d.ts +2 -0
- package/dist/agent/outcomes/store.d.ts +13 -0
- package/dist/agent/tools/handlers/bash-env-scrub.d.ts +1 -0
- package/dist/cli/slash/commands/feedback.d.ts +3 -0
- package/dist/cli.mjs +376 -369
- package/dist/index.mjs +129 -128
- package/dist/paths.d.ts +2 -0
- package/dist/telegram/bot.command-descriptors.d.ts +4 -0
- package/dist/telegram/bot.delegating-commands.d.ts +5 -0
- package/dist/telegram/bot.feedback-commands.d.ts +12 -0
- package/dist/telegram/handlers/feedback.d.ts +6 -0
- package/dist/telegram/session-manager.d.ts +1 -0
- package/dist/telegram/session-manager.hydrate-stats.d.ts +9 -0
- package/dist/telegram.mjs +164 -162
- package/package.json +1 -1
|
@@ -8,3 +8,8 @@ export type { PrState, FetchPrState, CheckAncestor, CheckRevert, GetDefaultBranc
|
|
|
8
8
|
export { parsePrUrl, lfPrFate, lfCommitSurvival, lfFixOfFix, realFetchPrState, realCheckAncestor, realCheckRevert, } from './lf-delayed.js';
|
|
9
9
|
export type { CombinerInput, CombinerResult } from './combine.js';
|
|
10
10
|
export { combine, computeConfidence } from './combine.js';
|
|
11
|
+
export type { UpsertVotesOptions } from './store.js';
|
|
12
|
+
export { readRecord, writeRecord, listRecords, upsertVotes, appendArtifacts } from './store.js';
|
|
13
|
+
export { createOutcomeSessionEndHook } from './session-end-hook.js';
|
|
14
|
+
export { createChildAttributionHook } from './child-attribution.js';
|
|
15
|
+
export { lfReask, normalizeTokens, jaccardSimilarity, REASK_THRESHOLD } from './lf-reask.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const REASK_THRESHOLD = 0.6;
|
|
2
|
+
export declare function normalizeTokens(text: string): Set<string>;
|
|
3
|
+
export declare function jaccardSimilarity(a: Set<string>, b: Set<string>): number;
|
|
4
|
+
export declare function lfReask(newSessionId: string, newPrompt: string, newCwd: string | undefined, now: string): void;
|
|
@@ -69,6 +69,8 @@ export declare const VerifiedOutcomeSchema: z.ZodObject<{
|
|
|
69
69
|
label: z.ZodString;
|
|
70
70
|
reason: z.ZodString;
|
|
71
71
|
}, z.core.$strip>>;
|
|
72
|
+
first_prompt: z.ZodOptional<z.ZodString>;
|
|
73
|
+
first_cwd: z.ZodOptional<z.ZodString>;
|
|
72
74
|
}, z.core.$strip>;
|
|
73
75
|
export type VerifiedOutcome = z.infer<typeof VerifiedOutcomeSchema>;
|
|
74
76
|
export type OutcomeLabel = VerifiedOutcome['label'];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type VerifiedOutcome, type Vote } from './schema.js';
|
|
2
|
+
export declare function readRecord(sessionId: string, outcomesDir?: string): VerifiedOutcome | undefined;
|
|
3
|
+
export declare function writeRecord(outcome: VerifiedOutcome, outcomesDir?: string): void;
|
|
4
|
+
export declare function listRecords(limit?: number, outcomesDir?: string): string[];
|
|
5
|
+
export interface UpsertVotesOptions {
|
|
6
|
+
outcomesDir?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function upsertVotes(sessionId: string, newVotes: Vote[], base?: Omit<VerifiedOutcome, 'votes' | 'history'>, opts?: UpsertVotesOptions): VerifiedOutcome;
|
|
9
|
+
export declare function appendArtifacts(sessionId: string, incoming: {
|
|
10
|
+
commits?: string[];
|
|
11
|
+
prs?: string[];
|
|
12
|
+
repo?: string | null;
|
|
13
|
+
}, opts?: UpsertVotesOptions): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function scrubBashEnv(env: Record<string, string | undefined> | undefined): Record<string, string | undefined>;
|