@caupulican/pi-adaptative 0.80.3 → 0.80.4
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/CHANGELOG.md +6 -0
- package/dist/modes/interactive/interactive-mode.d.ts +11 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +63 -28
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/npm-shrinkwrap.json +12 -12
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,10 @@ import { type ImageContent } from "@earendil-works/pi-ai";
|
|
|
6
6
|
import { type AgentSessionRuntime } from "../../core/agent-session-runtime.ts";
|
|
7
7
|
import { SessionManager } from "../../core/session-manager.ts";
|
|
8
8
|
import { type LatestPiRelease } from "../../utils/version-check.ts";
|
|
9
|
+
type UserInputSubmission = {
|
|
10
|
+
text: string;
|
|
11
|
+
images?: ImageContent[];
|
|
12
|
+
};
|
|
9
13
|
export declare function formatResumeCommand(sessionManager: SessionManager): string | undefined;
|
|
10
14
|
export declare function isApiKeyLoginProvider(providerId: string, oauthProviderIds: ReadonlySet<string>, builtInProviderIds?: ReadonlySet<string>): boolean;
|
|
11
15
|
/**
|
|
@@ -45,6 +49,8 @@ export declare class InteractiveMode {
|
|
|
45
49
|
private isInitialized;
|
|
46
50
|
private onInputCallback?;
|
|
47
51
|
private pendingUserInputs;
|
|
52
|
+
private pendingClipboardImages;
|
|
53
|
+
private clipboardImageCounter;
|
|
48
54
|
private loadingAnimation;
|
|
49
55
|
private workingMessage;
|
|
50
56
|
private workingVisible;
|
|
@@ -241,6 +247,9 @@ export declare class InteractiveMode {
|
|
|
241
247
|
private showExtensionError;
|
|
242
248
|
private setupKeyHandlers;
|
|
243
249
|
private handleClipboardImagePaste;
|
|
250
|
+
private nextClipboardImageLabel;
|
|
251
|
+
private takeClipboardImagesForText;
|
|
252
|
+
private buildUserInputSubmission;
|
|
244
253
|
private setupEditorSubmitHandler;
|
|
245
254
|
private subscribeToAgent;
|
|
246
255
|
private handleEvent;
|
|
@@ -262,7 +271,7 @@ export declare class InteractiveMode {
|
|
|
262
271
|
*/
|
|
263
272
|
private renderSessionContext;
|
|
264
273
|
renderInitialMessages(): void;
|
|
265
|
-
getUserInput(): Promise<
|
|
274
|
+
getUserInput(): Promise<UserInputSubmission>;
|
|
266
275
|
private rebuildChatFromMessages;
|
|
267
276
|
private handleCtrlC;
|
|
268
277
|
private handleCtrlD;
|
|
@@ -412,4 +421,5 @@ export declare class InteractiveMode {
|
|
|
412
421
|
private handleCompactCommand;
|
|
413
422
|
stop(): void;
|
|
414
423
|
}
|
|
424
|
+
export {};
|
|
415
425
|
//# sourceMappingURL=interactive-mode.d.ts.map
|