@wahack/pi-coding-agent 15.11.3 → 15.11.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/package.json +1 -1
- package/src/extensibility/custom-commands/loader.ts +1 -1
- package/src/extensibility/custom-tools/loader.ts +2 -2
- package/src/extensibility/extensions/loader.ts +1 -1
- package/src/extensibility/extensions/types.ts +1 -1
- package/src/extensibility/hooks/loader.ts +1 -1
- package/src/extensibility/plugins/legacy-pi-compat.ts +1 -1
package/package.json
CHANGED
|
@@ -185,7 +185,7 @@ export async function loadCustomCommands(options: LoadCustomCommandsOptions = {}
|
|
|
185
185
|
execCommand(command, args, execOptions?.cwd ?? cwd, execOptions),
|
|
186
186
|
typebox,
|
|
187
187
|
zod,
|
|
188
|
-
pi: await import("@
|
|
188
|
+
pi: await import("@wahack/pi-coding-agent"),
|
|
189
189
|
};
|
|
190
190
|
|
|
191
191
|
// 1. Load bundled commands first (lowest priority - can be overridden)
|
|
@@ -88,7 +88,7 @@ export class CustomToolLoader {
|
|
|
88
88
|
#seenNames: Set<string>;
|
|
89
89
|
|
|
90
90
|
constructor(
|
|
91
|
-
pi: typeof import("@
|
|
91
|
+
pi: typeof import("@wahack/pi-coding-agent"),
|
|
92
92
|
cwd: string,
|
|
93
93
|
builtInToolNames: string[],
|
|
94
94
|
pushPendingAction?: (action: {
|
|
@@ -175,7 +175,7 @@ export async function loadCustomTools(
|
|
|
175
175
|
}) => void,
|
|
176
176
|
) {
|
|
177
177
|
const loader = new CustomToolLoader(
|
|
178
|
-
await import("@
|
|
178
|
+
await import("@wahack/pi-coding-agent"),
|
|
179
179
|
cwd,
|
|
180
180
|
builtInToolNames,
|
|
181
181
|
pushPendingAction,
|
|
@@ -6,7 +6,7 @@ import * as fs from "node:fs/promises";
|
|
|
6
6
|
import * as path from "node:path";
|
|
7
7
|
import type { ThinkingLevel } from "@oh-my-pi/pi-agent-core";
|
|
8
8
|
import type { ImageContent, Model, TextContent, TSchema } from "@oh-my-pi/pi-ai";
|
|
9
|
-
import * as PiCodingAgent from "@
|
|
9
|
+
import * as PiCodingAgent from "@wahack/pi-coding-agent";
|
|
10
10
|
import type { KeyId } from '../../stubs/tui/index.ts'
|
|
11
11
|
import { hasFsCode, isEacces, isEnoent, logger } from "@oh-my-pi/pi-utils";
|
|
12
12
|
import * as Zod from "zod/v4";
|
|
@@ -30,7 +30,7 @@ import type {
|
|
|
30
30
|
TSchema,
|
|
31
31
|
} from "@oh-my-pi/pi-ai";
|
|
32
32
|
import type { OAuthCredentials, OAuthLoginCallbacks } from "@oh-my-pi/pi-ai/oauth/types";
|
|
33
|
-
import type * as piCodingAgent from "@
|
|
33
|
+
import type * as piCodingAgent from "@wahack/pi-coding-agent";
|
|
34
34
|
import type { AutocompleteItem, Component, EditorTheme, KeyId, TUI } from '../../stubs/tui/index.ts'
|
|
35
35
|
import type { logger as PiLogger } from "@oh-my-pi/pi-utils";
|
|
36
36
|
import type * as Zod from "zod/v4";
|
|
@@ -113,7 +113,7 @@ function bunfsPath(...segments: string[]): string {
|
|
|
113
113
|
function resolveBundledSelfPackageRoot(): string | undefined {
|
|
114
114
|
if (!process.env.PI_BUNDLED) return undefined;
|
|
115
115
|
try {
|
|
116
|
-
return path.dirname(Bun.resolveSync("@
|
|
116
|
+
return path.dirname(Bun.resolveSync("@wahack/pi-coding-agent/package.json", import.meta.dir));
|
|
117
117
|
} catch {
|
|
118
118
|
return undefined;
|
|
119
119
|
}
|