@pstdio/pocketcoder-remote 0.2.0 → 0.2.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/bin.js +17 -4
- package/dist/extension.js +17366 -0
- package/package.json +3 -5
- package/src/agentapi-events.ts +0 -104
- package/src/attachments.ts +0 -158
- package/src/bin.ts +0 -26
- package/src/client.ts +0 -344
- package/src/commands.ts +0 -149
- package/src/control-plane.ts +0 -30
- package/src/environment.ts +0 -19
- package/src/extension.ts +0 -200
- package/src/history.ts +0 -112
- package/src/launch.ts +0 -85
- package/src/renderers.ts +0 -76
- package/src/response-stream.ts +0 -43
- package/src/session-target.ts +0 -66
- package/src/status.ts +0 -121
package/dist/bin.js
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __returnValue = (v) => v;
|
|
4
|
+
function __exportSetter(name, newValue) {
|
|
5
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
6
|
+
}
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
set: __exportSetter.bind(all, name)
|
|
14
|
+
});
|
|
15
|
+
};
|
|
2
16
|
|
|
3
17
|
// src/bin.ts
|
|
4
18
|
import { spawn } from "node:child_process";
|
|
@@ -36,9 +50,8 @@ function piBinPath(resolvePath) {
|
|
|
36
50
|
throw new Error("@earendil-works/pi-coding-agent does not declare a pi bin");
|
|
37
51
|
return resolve(packageRoot, bin);
|
|
38
52
|
}
|
|
39
|
-
function extensionPath() {
|
|
40
|
-
|
|
41
|
-
return resolve(packageRoot, "src/extension.ts");
|
|
53
|
+
function extensionPath(moduleDir) {
|
|
54
|
+
return resolve(moduleDir, moduleDir.endsWith(`${sep}src`) ? "extension.ts" : "extension.js");
|
|
42
55
|
}
|
|
43
56
|
function resolvePiInvocation(options = {}) {
|
|
44
57
|
const env = options.env ?? process.env;
|
|
@@ -54,7 +67,7 @@ function resolvePiInvocation(options = {}) {
|
|
|
54
67
|
piBinPath(resolvePath),
|
|
55
68
|
...PI_FLAGS,
|
|
56
69
|
"--extension",
|
|
57
|
-
extensionPath(),
|
|
70
|
+
extensionPath(dirname(fileURLToPath(import.meta.url))),
|
|
58
71
|
...options.argv ?? []
|
|
59
72
|
],
|
|
60
73
|
env: childEnv
|