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.
@@ -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,5 @@
1
+ import type { HookHandler } from '../hooks.js';
2
+ export interface SpineHookOptions {
3
+ repoRoot?: string;
4
+ }
5
+ export declare function createSpineSessionEndHook(options?: SpineHookOptions): HookHandler;
@@ -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;
@@ -0,0 +1,2 @@
1
+ import type { SlashCommand } from '../types.js';
2
+ export declare const spineCmd: SlashCommand;
@@ -147,4 +147,5 @@ export declare class TerminalCompositor {
147
147
  prefillInput(text: string): void;
148
148
  applyDropdownSelection(): boolean;
149
149
  applyGhostAccept(): boolean;
150
+ applyGhostWordAccept(): boolean;
150
151
  }
@@ -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;
@@ -13,6 +13,7 @@ export interface KeyDispatchHost {
13
13
  dismissPromptGhost(): boolean;
14
14
  applyDropdownSelection(): boolean;
15
15
  applyGhostAccept(): boolean;
16
+ applyGhostWordAccept(): boolean;
16
17
  readonly armed: boolean;
17
18
  input: InputCoreState;
18
19
  queued: boolean;