pi-ghost-autocomplete 0.7.0 → 0.8.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/README.md +16 -2
- package/dist/bench-cli.js +1 -1
- package/dist/bench.js +1 -1
- package/dist/cold-start.d.ts +26 -0
- package/dist/command-registry.d.ts +3 -3
- package/dist/config.d.ts +21 -0
- package/dist/cycle-manager.d.ts +21 -0
- package/dist/ghost-editor.d.ts +76 -5
- package/dist/index.d.ts +17 -4
- package/dist/index.js +1 -1
- package/dist/metrics.d.ts +9 -0
- package/dist/replay-cli.js +1 -1
- package/dist/session-trie.d.ts +53 -0
- package/dist/snooze.d.ts +35 -0
- package/package.json +5 -5
package/dist/metrics.d.ts
CHANGED
|
@@ -11,6 +11,13 @@ export declare const COMPLETION_MODES: readonly ["deterministic", "llm", "cache"
|
|
|
11
11
|
export type CompletionMode = (typeof COMPLETION_MODES)[number];
|
|
12
12
|
export type RequestResult = "produced" | "empty" | "rejected" | "aborted" | "error";
|
|
13
13
|
export type AcceptanceOutcome = "accepted" | "accepted-partial" | "dismissed" | "stale" | "expired";
|
|
14
|
+
/**
|
|
15
|
+
* Gap-fix P1.4 — why a shown ghost was dismissed. Only set when
|
|
16
|
+
* `acceptance === "dismissed"`. Safe enum (no free text).
|
|
17
|
+
* - `escape` — user pressed Esc (first-class dismiss)
|
|
18
|
+
* - `keystroke` — any other key that is not an accept/cycle/preserve key
|
|
19
|
+
*/
|
|
20
|
+
export type DismissReason = "escape" | "keystroke";
|
|
14
21
|
export type QualityAttribution = "accepted" | "dismissed-attributed" | "unknown";
|
|
15
22
|
export type RejectionReason = "stale-text" | "newline" | "too-long" | "assistant-phrasing" | "duplicate-suffix" | "markdown" | "empty" | "echo-token";
|
|
16
23
|
/**
|
|
@@ -67,6 +74,8 @@ export interface MetricsRecord {
|
|
|
67
74
|
completionLength?: number;
|
|
68
75
|
shown?: boolean;
|
|
69
76
|
acceptance?: AcceptanceOutcome;
|
|
77
|
+
/** Gap-fix P1.4 — set only when `acceptance === "dismissed"`. */
|
|
78
|
+
dismissReason?: DismissReason;
|
|
70
79
|
/**
|
|
71
80
|
* For deterministic-mode records, the matched file path from the index.
|
|
72
81
|
* Allows benchmark/analysis to correlate accepted ghosts with files.
|