pantheon-opencode 1.2.2 → 1.3.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/AGENTS.md +1 -0
- package/README.md +54 -4
- package/opencode.json +16 -0
- package/package.json +1 -1
- package/scripts/doctor.mjs +80 -31
- package/scripts/hooks/log-session-start.sh +19 -1
- package/scripts/hooks/on-subagent-delegation-start.sh +116 -6
- package/scripts/hooks/on-subagent-delegation-stop.sh +391 -9
- package/scripts/hooks/scan-secrets.sh +61 -19
- package/scripts/hooks/validate-talos-scope.sh +7 -0
- package/scripts/validation-policy.mjs +18 -0
- package/src/agents/zeus.md +33 -5
- package/src/plugins/hook-runner.ts +44 -4
- package/src/plugins/pantheon-hooks.ts +1391 -41
- package/src/plugins/tui/dist/tui.js +1 -1
- package/src/plugins/tui/dist/tui.tsx +1 -1
- package/src/plugins/tui/package-lock.json +34 -5
- package/src/plugins/tui/package.json +1 -1
- package/src/plugins/tui/src/index.tsx +1 -1
|
@@ -250,7 +250,7 @@ async function detectVersion(api) {
|
|
|
250
250
|
timeoutMs: 3e3
|
|
251
251
|
});
|
|
252
252
|
const tag = (r.stdout ?? r.output ?? "").trim().replace(/^v/, "").replace(/-\d+-g[0-9a-f]+$/, "");
|
|
253
|
-
if (tag
|
|
253
|
+
if (tag) return tag;
|
|
254
254
|
}
|
|
255
255
|
} catch {}
|
|
256
256
|
try {
|
|
@@ -207,7 +207,7 @@ async function detectVersion(api: TuiPluginApi): Promise<string | null> {
|
|
|
207
207
|
.trim()
|
|
208
208
|
.replace(/^v/, '')
|
|
209
209
|
.replace(/-\d+-g[0-9a-f]+$/, '')
|
|
210
|
-
if (tag
|
|
210
|
+
if (tag) return tag
|
|
211
211
|
}
|
|
212
212
|
} catch {
|
|
213
213
|
/* fall through */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pantheon-tui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pantheon-tui",
|
|
9
|
-
"version": "1.
|
|
9
|
+
"version": "1.3.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@opencode-ai/plugin": ">=1.14.0",
|
|
@@ -1526,9 +1526,9 @@
|
|
|
1526
1526
|
}
|
|
1527
1527
|
},
|
|
1528
1528
|
"node_modules/brace-expansion": {
|
|
1529
|
-
"version": "2.1.
|
|
1530
|
-
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.
|
|
1531
|
-
"integrity": "sha512-
|
|
1529
|
+
"version": "2.1.4",
|
|
1530
|
+
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.4.tgz",
|
|
1531
|
+
"integrity": "sha512-hGfVzPxthbf3+2yjg/RBs60cB0FhqBS/zvdV/4wn4/BmN0bNMMHPc4V/BbFieqf1TKAGGAHnY4eSjajCl0f2Xg==",
|
|
1532
1532
|
"license": "MIT",
|
|
1533
1533
|
"dependencies": {
|
|
1534
1534
|
"balanced-match": "^1.0.0"
|
|
@@ -2703,6 +2703,20 @@
|
|
|
2703
2703
|
"license": "0BSD",
|
|
2704
2704
|
"optional": true
|
|
2705
2705
|
},
|
|
2706
|
+
"node_modules/typescript": {
|
|
2707
|
+
"version": "5.9.3",
|
|
2708
|
+
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
|
|
2709
|
+
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
|
2710
|
+
"license": "Apache-2.0",
|
|
2711
|
+
"peer": true,
|
|
2712
|
+
"bin": {
|
|
2713
|
+
"tsc": "bin/tsc",
|
|
2714
|
+
"tsserver": "bin/tsserver"
|
|
2715
|
+
},
|
|
2716
|
+
"engines": {
|
|
2717
|
+
"node": ">=14.17"
|
|
2718
|
+
}
|
|
2719
|
+
},
|
|
2706
2720
|
"node_modules/unconfig-core": {
|
|
2707
2721
|
"version": "7.5.0",
|
|
2708
2722
|
"resolved": "https://registry.npmjs.org/unconfig-core/-/unconfig-core-7.5.0.tgz",
|
|
@@ -2773,6 +2787,21 @@
|
|
|
2773
2787
|
"url": "https://github.com/sponsors/sxzz"
|
|
2774
2788
|
}
|
|
2775
2789
|
},
|
|
2790
|
+
"node_modules/web-tree-sitter": {
|
|
2791
|
+
"version": "0.25.10",
|
|
2792
|
+
"resolved": "https://registry.npmjs.org/web-tree-sitter/-/web-tree-sitter-0.25.10.tgz",
|
|
2793
|
+
"integrity": "sha512-Y09sF44/13XvgVKgO2cNDw5rGk6s26MgoZPXLESvMXeefBf7i6/73eFurre0IsTW6E14Y0ArIzhUMmjoc7xyzA==",
|
|
2794
|
+
"license": "MIT",
|
|
2795
|
+
"peer": true,
|
|
2796
|
+
"peerDependencies": {
|
|
2797
|
+
"@types/emscripten": "^1.40.0"
|
|
2798
|
+
},
|
|
2799
|
+
"peerDependenciesMeta": {
|
|
2800
|
+
"@types/emscripten": {
|
|
2801
|
+
"optional": true
|
|
2802
|
+
}
|
|
2803
|
+
}
|
|
2804
|
+
},
|
|
2776
2805
|
"node_modules/which": {
|
|
2777
2806
|
"version": "2.0.2",
|
|
2778
2807
|
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pantheon-tui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.1",
|
|
5
5
|
"description": "Pantheon TUI plugin — sidebar (agents, sessions, commands, config, memory, active preset) + AI subscription usage gauges incl. OpenCode Go/Zen dollar limits (vendored, MIT)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"exports": {
|
|
@@ -207,7 +207,7 @@ async function detectVersion(api: TuiPluginApi): Promise<string | null> {
|
|
|
207
207
|
.trim()
|
|
208
208
|
.replace(/^v/, '')
|
|
209
209
|
.replace(/-\d+-g[0-9a-f]+$/, '')
|
|
210
|
-
if (tag
|
|
210
|
+
if (tag) return tag
|
|
211
211
|
}
|
|
212
212
|
} catch {
|
|
213
213
|
/* fall through */
|