pi-ghost-autocomplete 0.8.0 → 0.8.1
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/bench-cli.js +1 -1
- package/dist/bench.js +1 -1
- package/dist/index.js +1 -1
- package/dist/intent.d.ts +14 -0
- package/dist/replay-cli.js +1 -1
- package/package.json +5 -5
package/dist/intent.d.ts
CHANGED
|
@@ -145,6 +145,20 @@ export declare function isPathContext(lineBeforeCursor: string, _token: {
|
|
|
145
145
|
token: string;
|
|
146
146
|
insideQuote: boolean;
|
|
147
147
|
}): boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Is the draft a finished sentence with the cursor parked right after the
|
|
150
|
+
* terminator? Session 53.
|
|
151
|
+
*
|
|
152
|
+
* When true there is nothing left to *complete*: any continuation has to open
|
|
153
|
+
* a new sentence, and a chat model handed a finished question plus the
|
|
154
|
+
* conversation context does the thing it was trained to do — it answers.
|
|
155
|
+
* That is exactly the failure this predicate suppresses ("… für Android?" →
|
|
156
|
+
* ghost "Um das Vorhandene auf Android zu übertragen, benötigen wir …").
|
|
157
|
+
*
|
|
158
|
+
* A trailing space means the user has deliberately started the next sentence,
|
|
159
|
+
* so completion resumes as soon as they type one.
|
|
160
|
+
*/
|
|
161
|
+
export declare function isSentenceComplete(draft: string): boolean;
|
|
148
162
|
/**
|
|
149
163
|
* Short human-readable description for each intent, suitable for injection
|
|
150
164
|
* into LLM system prompts or FIM comment headers. Single canonical source —
|