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/index.d.ts
CHANGED
|
@@ -12,6 +12,16 @@ declare const ghost: ExtensionFactory;
|
|
|
12
12
|
* string; sections are bullet-indented two spaces deep so they nest under
|
|
13
13
|
* the leading "Pi Ghost diagnostics" header.
|
|
14
14
|
*/
|
|
15
|
+
/**
|
|
16
|
+
* Gap-fix P0.2 — keybinding cheat-sheet for `/ghost keys` (and `help`).
|
|
17
|
+
* Pure string so diagnostics tests can snapshot without a live editor.
|
|
18
|
+
*/
|
|
19
|
+
export declare function describeKeys(config?: GhostConfig): string;
|
|
20
|
+
/** Runtime enabled/snoozed line for `/ghost` status. */
|
|
21
|
+
export declare function describeRuntimeState(config: GhostConfig, snooze: {
|
|
22
|
+
isActive(): boolean;
|
|
23
|
+
remainingMs(): number;
|
|
24
|
+
}): string;
|
|
15
25
|
export declare function describeDiagnostics(config: GhostConfig, diag: GhostDiagnostics | null): string;
|
|
16
26
|
export default ghost;
|
|
17
27
|
export { CloudProvider } from "./providers/cloud-provider.js";
|
|
@@ -22,9 +32,12 @@ export { RouterProvider, routeToChat, routeToChatByRegister } from "./providers/
|
|
|
22
32
|
export type { PreflightResult } from "./providers/openai-compat-provider.js";
|
|
23
33
|
export { RaceProvider, firstNonNull } from "./providers/race.js";
|
|
24
34
|
export type { RaceConfig, RaceTrace } from "./providers/race.js";
|
|
25
|
-
export { GhostEditor, computeReplacement } from "./ghost-editor.js";
|
|
26
|
-
export type { GhostDiagnostics } from "./ghost-editor.js";
|
|
27
|
-
export type { GhostConfig, ProviderConfig, CloudProviderConfig, LocalProviderConfig, OpenAICompatProviderConfig, OpenAICompatChatProviderConfig, RaceProviderConfig, RouterProviderConfig } from "./config.js";
|
|
35
|
+
export { GhostEditor, computeReplacement, isFullAcceptKey } from "./ghost-editor.js";
|
|
36
|
+
export type { GhostDiagnostics, GhostLifecycleEvent, GhostLifecycleListener } from "./ghost-editor.js";
|
|
37
|
+
export type { GhostConfig, AcceptKeyId, ProviderConfig, CloudProviderConfig, LocalProviderConfig, OpenAICompatProviderConfig, OpenAICompatChatProviderConfig, RaceProviderConfig, RouterProviderConfig, } from "./config.js";
|
|
38
|
+
export { parseAcceptKeys, DEFAULT_ACCEPT_KEYS } from "./config.js";
|
|
39
|
+
export { BUILTIN_SLASH_COMMANDS, mergeKnownCommands, seedCommandTrie, COLD_START_TRIE_WEIGHT, } from "./cold-start.js";
|
|
40
|
+
export { SnoozeController, parseSnoozeDuration, formatSnoozeRemaining, DEFAULT_SNOOZE_MS, } from "./snooze.js";
|
|
28
41
|
export type { GhostProvider, GhostRequest } from "./providers/types.js";
|
|
29
42
|
export type { PromptIntent, CompletionRegister } from "./intent.js";
|
|
30
43
|
export { registerFromIntent, REGISTER_DESCRIPTION, classifyPromptIntent, classifyPromptIntentDetailed } from "./intent.js";
|
|
@@ -38,7 +51,7 @@ export { evaluateExample, leadingMatch, levenshtein, savedAtK, summarizeReplay,
|
|
|
38
51
|
export type { ExampleMetrics, ReplayResult, ReplaySummary } from "./replay.js";
|
|
39
52
|
export { DEFAULT_MAX_TOKENS as ENTROPY_DEFAULT_MAX_TOKENS, DEFAULT_SIGMA_MULT as ENTROPY_DEFAULT_SIGMA_MULT, DEFAULT_WARMUP_TOKENS as ENTROPY_DEFAULT_WARMUP_TOKENS, EntropyStopper, isNaturalCutToken, runWithStop, } from "./entropy-stop.js";
|
|
40
53
|
export type { EntropyStopperOpts, StopDecision } from "./entropy-stop.js";
|
|
41
|
-
export type { MetricsRecord, MetricsConfig, RequestResult, AcceptanceOutcome, ProviderLatency, RejectionReason, CompletionMode } from "./metrics.js";
|
|
54
|
+
export type { MetricsRecord, MetricsConfig, RequestResult, AcceptanceOutcome, DismissReason, ProviderLatency, RejectionReason, CompletionMode } from "./metrics.js";
|
|
42
55
|
export { buildPathIndex } from "./path-index.js";
|
|
43
56
|
export type { PathIndex } from "./path-index.js";
|
|
44
57
|
export { extractPathPrefixToken, findPathPrefix } from "./path-matcher.js";
|