pi-plus 0.1.16 → 0.1.18
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/README.md +43 -119
- package/package.json +3 -10
- package/pipi.js +128 -127
- package/api.d.ts +0 -44
- package/api.js +0 -2367
package/api.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Public type contract for the "pi-plus" npm package's programmatic entry
|
|
3
|
-
* (api.js). Hand-authored mirror of src/api.ts: the runtime is fully
|
|
4
|
-
* self-contained in api.js (built from this repo with the pi-plus override
|
|
5
|
-
* layer baked in), so this file only needs to re-export the upstream SDK
|
|
6
|
-
* types and declare the pi-plus additions. A vitest drift guard
|
|
7
|
-
* (test/api.test.ts) asserts every runtime export of src/api.ts appears here.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
export * from "@earendil-works/pi-coding-agent";
|
|
11
|
-
|
|
12
|
-
import type {
|
|
13
|
-
CreateAgentSessionOptions,
|
|
14
|
-
CreateAgentSessionResult,
|
|
15
|
-
ExtensionCommandContextActions,
|
|
16
|
-
ExtensionError,
|
|
17
|
-
ExtensionUIContext,
|
|
18
|
-
InlineExtension,
|
|
19
|
-
} from "@earendil-works/pi-coding-agent";
|
|
20
|
-
|
|
21
|
-
export declare const plusSdkExtensionFactories: InlineExtension[];
|
|
22
|
-
|
|
23
|
-
export interface PlusUIDialogHandlers {
|
|
24
|
-
select(title: string, options: string[]): Promise<string | undefined>;
|
|
25
|
-
confirm(title: string, message: string): Promise<boolean>;
|
|
26
|
-
input(title: string, placeholder?: string): Promise<string | undefined>;
|
|
27
|
-
editor?(title: string, prefill?: string): Promise<string | undefined>;
|
|
28
|
-
notify?(message: string, type?: "info" | "warning" | "error"): void;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export declare function createPlusUIContext(handlers: PlusUIDialogHandlers): ExtensionUIContext;
|
|
32
|
-
|
|
33
|
-
export interface CreatePlusAgentSessionOptions extends CreateAgentSessionOptions {
|
|
34
|
-
extensionFactories?: InlineExtension[];
|
|
35
|
-
ui?: PlusUIDialogHandlers;
|
|
36
|
-
commandContextActions?: ExtensionCommandContextActions;
|
|
37
|
-
abortHandler?: () => void;
|
|
38
|
-
shutdownHandler?: () => void;
|
|
39
|
-
onError?: (error: ExtensionError) => void;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export declare function createPlusAgentSession(
|
|
43
|
-
options?: CreatePlusAgentSessionOptions,
|
|
44
|
-
): Promise<CreateAgentSessionResult>;
|