@trim21/personal-pi-extensions 0.0.261 → 0.0.263
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 +4 -1
- package/src/bwrap/core.ts +2 -4
- package/src/bwrap/runtime.ts +4 -6
- package/src/claude-code/files.ts +1 -1
- package/src/claude-code/shell.ts +5 -2
- package/src/gh-readonly.ts +1 -2
- package/src/opencode/edit.ts +1 -1
- package/src/opencode/write.ts +1 -2
- package/src/talk/index.ts +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trim21/personal-pi-extensions",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.263",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Custom pi coding-agent extensions: bwrap sandbox, workspace guard, opencode edit, and more",
|
|
6
6
|
"keywords": [
|
|
@@ -79,6 +79,9 @@
|
|
|
79
79
|
]
|
|
80
80
|
},
|
|
81
81
|
"packageManager": "pnpm@11.22.0",
|
|
82
|
+
"engines": {
|
|
83
|
+
"node": ">=24"
|
|
84
|
+
},
|
|
82
85
|
"dependencies": {
|
|
83
86
|
"web-tree-sitter": "^0.26.12"
|
|
84
87
|
}
|
package/src/bwrap/core.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import {
|
|
3
|
-
import { constants } from "node:fs";
|
|
4
|
-
import { closeSync, existsSync, openSync, readFileSync } from "node:fs";
|
|
1
|
+
import { type ChildProcess, spawn } from "node:child_process";
|
|
2
|
+
import { closeSync, constants, existsSync, openSync, readFileSync } from "node:fs";
|
|
5
3
|
import { access as fsAccess } from "node:fs/promises";
|
|
6
4
|
import { delimiter, join } from "node:path";
|
|
7
5
|
import { fileURLToPath } from "node:url";
|
package/src/bwrap/runtime.ts
CHANGED
|
@@ -3,14 +3,12 @@ import { createWriteStream, existsSync, mkdirSync, readFileSync, type WriteStrea
|
|
|
3
3
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
4
4
|
import { dirname, join } from "node:path";
|
|
5
5
|
|
|
6
|
-
import type {
|
|
7
|
-
AgentToolUpdateCallback,
|
|
8
|
-
ExtensionAPI,
|
|
9
|
-
ExtensionCommandContext,
|
|
10
|
-
ExtensionContext,
|
|
11
|
-
} from "@earendil-works/pi-coding-agent";
|
|
12
6
|
import {
|
|
7
|
+
type AgentToolUpdateCallback,
|
|
13
8
|
createLocalBashOperations,
|
|
9
|
+
type ExtensionAPI,
|
|
10
|
+
type ExtensionCommandContext,
|
|
11
|
+
type ExtensionContext,
|
|
14
12
|
getAgentDir,
|
|
15
13
|
truncateTail,
|
|
16
14
|
type TruncationResult,
|
package/src/claude-code/files.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { dirname, extname } from "node:path";
|
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
|
|
7
7
|
import type { ImageContent, TextContent } from "@earendil-works/pi-ai";
|
|
8
|
-
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
9
8
|
import {
|
|
9
|
+
type ExtensionAPI,
|
|
10
10
|
generateDiffString,
|
|
11
11
|
generateUnifiedPatch,
|
|
12
12
|
withFileMutationQueue,
|
package/src/claude-code/shell.ts
CHANGED
|
@@ -2,8 +2,11 @@ import { readFileSync } from "node:fs";
|
|
|
2
2
|
import { readFile } from "node:fs/promises";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
|
|
5
|
+
import {
|
|
6
|
+
type BashToolDetails,
|
|
7
|
+
type ExtensionAPI,
|
|
8
|
+
formatSize,
|
|
9
|
+
} from "@earendil-works/pi-coding-agent";
|
|
7
10
|
import { Type } from "typebox";
|
|
8
11
|
|
|
9
12
|
import { type BwrapRuntime, createBwrapRuntime } from "../bwrap/runtime.js";
|
package/src/gh-readonly.ts
CHANGED
|
@@ -34,8 +34,7 @@ import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
|
34
34
|
import { homedir } from "node:os";
|
|
35
35
|
import { delimiter, dirname, join, resolve } from "node:path";
|
|
36
36
|
|
|
37
|
-
import type
|
|
38
|
-
import { withFileMutationQueue } from "@earendil-works/pi-coding-agent";
|
|
37
|
+
import { type ExtensionAPI, withFileMutationQueue } from "@earendil-works/pi-coding-agent";
|
|
39
38
|
import { Type } from "typebox";
|
|
40
39
|
import { Value } from "typebox/value";
|
|
41
40
|
|
package/src/opencode/edit.ts
CHANGED
|
@@ -21,8 +21,8 @@ import { constants } from "node:fs";
|
|
|
21
21
|
import { access, mkdir, readFile, writeFile } from "node:fs/promises";
|
|
22
22
|
import { dirname, isAbsolute, resolve } from "node:path";
|
|
23
23
|
|
|
24
|
-
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
25
24
|
import {
|
|
25
|
+
type ExtensionAPI,
|
|
26
26
|
generateDiffString,
|
|
27
27
|
generateUnifiedPatch,
|
|
28
28
|
withFileMutationQueue,
|
package/src/opencode/write.ts
CHANGED
|
@@ -24,8 +24,7 @@
|
|
|
24
24
|
import { mkdir, open, writeFile } from "node:fs/promises";
|
|
25
25
|
import { dirname, resolve as resolvePath } from "node:path";
|
|
26
26
|
|
|
27
|
-
import type
|
|
28
|
-
import { withFileMutationQueue } from "@earendil-works/pi-coding-agent";
|
|
27
|
+
import { type ExtensionAPI, withFileMutationQueue } from "@earendil-works/pi-coding-agent";
|
|
29
28
|
import { Type } from "typebox";
|
|
30
29
|
|
|
31
30
|
import { guardWriteAccess } from "../lib/write-guard.js";
|
package/src/talk/index.ts
CHANGED
|
@@ -13,8 +13,12 @@ import * as os from "node:os";
|
|
|
13
13
|
import * as path from "node:path";
|
|
14
14
|
import { fileURLToPath } from "node:url";
|
|
15
15
|
|
|
16
|
-
import
|
|
17
|
-
|
|
16
|
+
import {
|
|
17
|
+
type ExtensionAPI,
|
|
18
|
+
type ExtensionContext,
|
|
19
|
+
getAgentDir,
|
|
20
|
+
truncateToVisualLines,
|
|
21
|
+
} from "@earendil-works/pi-coding-agent";
|
|
18
22
|
import { type TObject, Type } from "typebox";
|
|
19
23
|
|
|
20
24
|
import { type CommandResult, type CommandSpec, parseCommand } from "../lib/cli.js";
|