pi-compact-tools 0.5.0 → 0.5.7
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/LICENSE +21 -21
- package/README.md +11 -10
- package/examples/compact-tools-2.json +0 -1
- package/examples/compact-tools.json +0 -1
- package/extensions/compact-tools-config.ts +163 -0
- package/extensions/compact-tools-core.ts +0 -9
- package/extensions/compact-tools-input.ts +8 -0
- package/extensions/compact-tools-invocation.ts +59 -0
- package/extensions/compact-tools-layout.ts +123 -0
- package/extensions/compact-tools-runtime.ts +187 -0
- package/extensions/compact-tools-types.ts +39 -0
- package/extensions/compact-tools.ts +149 -639
- package/package.json +64 -64
- package/schemas/compact-tools.schema.json +0 -7
- package/scripts/check-resources.mjs +6 -0
package/package.json
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "pi-compact-tools",
|
|
3
|
-
"version": "0.5.
|
|
4
|
-
"description": "Compact, expandable UI for pi's built-in tools, bundled with a polished GitHub Dark theme.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"author": "Dong Hyeong Lee",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/nedleeds/pi-compact-tools.git"
|
|
11
|
-
},
|
|
12
|
-
"homepage": "https://github.com/nedleeds/pi-compact-tools#readme",
|
|
13
|
-
"bugs": {
|
|
14
|
-
"url": "https://github.com/nedleeds/pi-compact-tools/issues"
|
|
15
|
-
},
|
|
16
|
-
"keywords": [
|
|
17
|
-
"pi-package",
|
|
18
|
-
"pi-coding-agent",
|
|
19
|
-
"pi-extension",
|
|
20
|
-
"terminal-ui",
|
|
21
|
-
"theme"
|
|
22
|
-
],
|
|
23
|
-
"files": [
|
|
24
|
-
"extensions",
|
|
25
|
-
"themes",
|
|
26
|
-
"examples",
|
|
27
|
-
"scripts",
|
|
28
|
-
"schemas",
|
|
29
|
-
"README.md",
|
|
30
|
-
"LICENSE"
|
|
31
|
-
],
|
|
32
|
-
"scripts": {
|
|
33
|
-
"test": "tsx --test tests/*.test.ts",
|
|
34
|
-
"check": "tsc --noEmit && npm test && npm run check:resources",
|
|
35
|
-
"check:resources": "node scripts/check-resources.mjs",
|
|
36
|
-
"prepublishOnly": "npm run check"
|
|
37
|
-
},
|
|
38
|
-
"pi": {
|
|
39
|
-
"extensions": [
|
|
40
|
-
"./extensions/compact-tools.ts"
|
|
41
|
-
],
|
|
42
|
-
"themes": [
|
|
43
|
-
"./themes/github-dark-pro.json"
|
|
44
|
-
],
|
|
45
|
-
"image": "https://raw.githubusercontent.com/nedleeds/pi-compact-tools/main/assets/nerd-font-workflow-optimized.gif"
|
|
46
|
-
},
|
|
47
|
-
"peerDependencies": {
|
|
48
|
-
"@earendil-works/pi-coding-agent": "*",
|
|
49
|
-
"@earendil-works/pi-tui": "*"
|
|
50
|
-
},
|
|
51
|
-
"devDependencies": {
|
|
52
|
-
"@earendil-works/pi-coding-agent": "0.85.1",
|
|
53
|
-
"@earendil-works/pi-tui": "0.85.1",
|
|
54
|
-
"@types/node": "^24.0.0",
|
|
55
|
-
"tsx": "^4.23.13",
|
|
56
|
-
"typescript": "^5.9.0"
|
|
57
|
-
},
|
|
58
|
-
"engines": {
|
|
59
|
-
"node": ">=
|
|
60
|
-
},
|
|
61
|
-
"publishConfig": {
|
|
62
|
-
"access": "public"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "pi-compact-tools",
|
|
3
|
+
"version": "0.5.7",
|
|
4
|
+
"description": "Compact, expandable UI for pi's built-in tools, bundled with a polished GitHub Dark theme.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Dong Hyeong Lee",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/nedleeds/pi-compact-tools.git"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/nedleeds/pi-compact-tools#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/nedleeds/pi-compact-tools/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"pi-package",
|
|
18
|
+
"pi-coding-agent",
|
|
19
|
+
"pi-extension",
|
|
20
|
+
"terminal-ui",
|
|
21
|
+
"theme"
|
|
22
|
+
],
|
|
23
|
+
"files": [
|
|
24
|
+
"extensions",
|
|
25
|
+
"themes",
|
|
26
|
+
"examples",
|
|
27
|
+
"scripts",
|
|
28
|
+
"schemas",
|
|
29
|
+
"README.md",
|
|
30
|
+
"LICENSE"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"test": "tsx --test tests/*.test.ts",
|
|
34
|
+
"check": "tsc --noEmit && npm test && npm run check:resources",
|
|
35
|
+
"check:resources": "node scripts/check-resources.mjs",
|
|
36
|
+
"prepublishOnly": "npm run check"
|
|
37
|
+
},
|
|
38
|
+
"pi": {
|
|
39
|
+
"extensions": [
|
|
40
|
+
"./extensions/compact-tools.ts"
|
|
41
|
+
],
|
|
42
|
+
"themes": [
|
|
43
|
+
"./themes/github-dark-pro.json"
|
|
44
|
+
],
|
|
45
|
+
"image": "https://raw.githubusercontent.com/nedleeds/pi-compact-tools/main/assets/nerd-font-workflow-optimized.gif"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
49
|
+
"@earendil-works/pi-tui": "*"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@earendil-works/pi-coding-agent": "0.85.1",
|
|
53
|
+
"@earendil-works/pi-tui": "0.85.1",
|
|
54
|
+
"@types/node": "^24.0.0",
|
|
55
|
+
"tsx": "^4.23.13",
|
|
56
|
+
"typescript": "^5.9.0"
|
|
57
|
+
},
|
|
58
|
+
"engines": {
|
|
59
|
+
"node": ">=22.19.0"
|
|
60
|
+
},
|
|
61
|
+
"publishConfig": {
|
|
62
|
+
"access": "public"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -39,13 +39,6 @@
|
|
|
39
39
|
"bash": true
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
|
-
"previewLines": {
|
|
43
|
-
"description": "Number of output lines shown before the full-output expansion level.",
|
|
44
|
-
"type": "integer",
|
|
45
|
-
"minimum": 1,
|
|
46
|
-
"maximum": 1000,
|
|
47
|
-
"default": 10
|
|
48
|
-
},
|
|
49
42
|
"spinner": {
|
|
50
43
|
"type": "object",
|
|
51
44
|
"additionalProperties": false,
|
|
@@ -42,6 +42,9 @@ if (!example.auto_compact || example.auto_compact.edit !== false) {
|
|
|
42
42
|
if (Object.values(example.auto_compact).some((enabled) => typeof enabled !== "boolean")) {
|
|
43
43
|
throw new Error("example auto_compact values must be booleans");
|
|
44
44
|
}
|
|
45
|
+
if ("previewLines" in example) {
|
|
46
|
+
throw new Error("example must not contain the removed previewLines setting");
|
|
47
|
+
}
|
|
45
48
|
const blinkExample = JSON.parse(
|
|
46
49
|
await readFile(new URL("../examples/compact-tools-2.json", import.meta.url), "utf8"),
|
|
47
50
|
);
|
|
@@ -77,5 +80,8 @@ if (!schema.properties?.durationIndicators?.items?.properties?.color) {
|
|
|
77
80
|
if (!schema.properties?.auto_compact?.properties?.edit) {
|
|
78
81
|
throw new Error("schema must describe per-tool auto_compact policies");
|
|
79
82
|
}
|
|
83
|
+
if (schema.properties?.previewLines) {
|
|
84
|
+
throw new Error("schema must not expose the removed previewLines setting");
|
|
85
|
+
}
|
|
80
86
|
|
|
81
87
|
console.log("Resource checks passed");
|