agent-afk 5.209.5 → 5.211.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/spine/index.d.ts +6 -0
- package/dist/agent/spine/spine-classifier.d.ts +24 -0
- package/dist/agent/spine/spine-hook.d.ts +5 -0
- package/dist/agent/spine/spine-store.d.ts +25 -0
- package/dist/cli/slash/commands/spine.d.ts +2 -0
- package/dist/cli/terminal-compositor.d.ts +1 -0
- package/dist/cli/terminal-compositor.ghost.d.ts +1 -0
- package/dist/cli/terminal-compositor.input-dispatch.d.ts +1 -0
- package/dist/cli.mjs +684 -653
- package/dist/config/env.d.ts +8 -0
- package/dist/index.mjs +2 -2
- package/dist/telegram.mjs +353 -330
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { readSpine, writeSpine, parseSpine, serializeSpine, nextId, addEntry, findEntry, sectionForPrefix, } from './spine-store.js';
|
|
2
|
+
export type { SpineDocument, SpineEntry, SpineSection, SpineSectionName, SpineIdPrefix, } from './spine-store.js';
|
|
3
|
+
export { classifyDiff, } from './spine-classifier.js';
|
|
4
|
+
export type { ClassifierLabel, ClassifierResult, SpineAdditionItem, SpineRelationItem, SpineClassifierItem, } from './spine-classifier.js';
|
|
5
|
+
export { createSpineSessionEndHook, } from './spine-hook.js';
|
|
6
|
+
export type { SpineHookOptions, } from './spine-hook.js';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { SpineIdPrefix } from './spine-store.js';
|
|
2
|
+
export type ClassifierLabel = 'new-addition' | 'strengthens' | 'weakens' | 'contradicts';
|
|
3
|
+
export interface SpineAdditionItem {
|
|
4
|
+
label: 'new-addition';
|
|
5
|
+
prefix: SpineIdPrefix;
|
|
6
|
+
description: string;
|
|
7
|
+
rationale: string;
|
|
8
|
+
}
|
|
9
|
+
export interface SpineRelationItem {
|
|
10
|
+
label: 'strengthens' | 'weakens' | 'contradicts';
|
|
11
|
+
existingId: string;
|
|
12
|
+
existingDescription: string;
|
|
13
|
+
description: string;
|
|
14
|
+
rationale: string;
|
|
15
|
+
}
|
|
16
|
+
export type SpineClassifierItem = SpineAdditionItem | SpineRelationItem;
|
|
17
|
+
export interface ClassifierResult {
|
|
18
|
+
items: SpineClassifierItem[];
|
|
19
|
+
rawOutput: string;
|
|
20
|
+
parsed: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare function classifyDiff(diff: string, spineContent: string, signal?: AbortSignal): Promise<ClassifierResult>;
|
|
23
|
+
export declare function parseClassifierOutput(raw: string): ClassifierResult;
|
|
24
|
+
export declare const MAX_DESCRIPTION_LEN = 120;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type SpineSectionName = 'Invariants' | 'Explicitly Rejected Patterns' | 'Taste Calls Made';
|
|
2
|
+
export type SpineIdPrefix = 'INV' | 'REJ' | 'TST';
|
|
3
|
+
export interface SpineEntry {
|
|
4
|
+
id: string;
|
|
5
|
+
date: string;
|
|
6
|
+
sessionId: string;
|
|
7
|
+
description: string;
|
|
8
|
+
}
|
|
9
|
+
export interface SpineSection {
|
|
10
|
+
name: SpineSectionName;
|
|
11
|
+
prefix: SpineIdPrefix;
|
|
12
|
+
entries: SpineEntry[];
|
|
13
|
+
}
|
|
14
|
+
export interface SpineDocument {
|
|
15
|
+
sections: SpineSection[];
|
|
16
|
+
trailer: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function parseSpine(content: string): SpineDocument;
|
|
19
|
+
export declare function serializeSpine(doc: SpineDocument): string;
|
|
20
|
+
export declare function nextId(doc: SpineDocument, prefix: SpineIdPrefix): string;
|
|
21
|
+
export declare function readSpine(repoRoot: string): SpineDocument | null;
|
|
22
|
+
export declare function writeSpine(repoRoot: string, doc: SpineDocument): void;
|
|
23
|
+
export declare function sectionForPrefix(doc: SpineDocument, prefix: SpineIdPrefix): SpineSection;
|
|
24
|
+
export declare function addEntry(doc: SpineDocument, prefix: SpineIdPrefix, sessionId: string, description: string, date?: string): string;
|
|
25
|
+
export declare function findEntry(doc: SpineDocument, id: string): SpineEntry | undefined;
|
|
@@ -3,3 +3,4 @@ export declare function primePromptGhost(self: AutocompleteHost): void;
|
|
|
3
3
|
export declare function dismissPromptGhost(self: AutocompleteHost): boolean;
|
|
4
4
|
export declare function updateGhost(self: AutocompleteHost): void;
|
|
5
5
|
export declare function applyGhostAccept(self: AutocompleteHost): boolean;
|
|
6
|
+
export declare function applyGhostWordAccept(self: AutocompleteHost): boolean;
|