@cline/shared 0.0.54 → 0.0.56-nightly.1783135013
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/index.browser.d.ts +1 -1
- package/dist/index.browser.js +15 -15
- package/dist/index.d.ts +1 -1
- package/dist/index.js +60 -60
- package/dist/prompt/format.d.ts +16 -0
- package/package.json +1 -1
package/dist/prompt/format.d.ts
CHANGED
|
@@ -1,11 +1,27 @@
|
|
|
1
1
|
export declare function formatFileContentBlock(path: string, content: string): string;
|
|
2
2
|
export declare function formatUserInputBlock(input: string, mode?: "act" | "plan" | "yolo"): string;
|
|
3
3
|
export declare function formatUserCommandBlock(input: string, slash: string): string;
|
|
4
|
+
/**
|
|
5
|
+
* Marks the exact point in the conversation where the user switched between
|
|
6
|
+
* plan and act modes. Prepended to the first user message sent after the
|
|
7
|
+
* switch. It survives normalizeUserInput (so the outbound sanitize in
|
|
8
|
+
* prepareTurnInput delivers it to the model) and is hidden from transcript
|
|
9
|
+
* display by stripModeNotices at display boundaries.
|
|
10
|
+
*/
|
|
11
|
+
export declare function formatModeSwitchNotice(from: "act" | "plan", to: "act" | "plan"): string;
|
|
4
12
|
export type UserCommandEnvelope = {
|
|
5
13
|
slash: string;
|
|
6
14
|
content: string;
|
|
7
15
|
};
|
|
8
16
|
export declare function parseUserCommandEnvelope(input?: string): UserCommandEnvelope | undefined;
|
|
9
17
|
export declare function normalizeUserInput(input?: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Removes runtime-generated <mode_notice> elements (content included): they
|
|
20
|
+
* are not user-typed text and must not render as such. Deliberately NOT part
|
|
21
|
+
* of normalizeUserInput -- that function also sanitizes outbound prompts
|
|
22
|
+
* before the host wraps them (prepareTurnInput), and stripping there deletes
|
|
23
|
+
* the notice before the model ever sees it.
|
|
24
|
+
*/
|
|
25
|
+
export declare function stripModeNotices(input?: string): string;
|
|
10
26
|
export declare function formatDisplayUserInput(input?: string): string;
|
|
11
27
|
export declare function xmlTagsRemoval(input?: string, tag?: string): string;
|