pantheon-opencode 1.6.2-beta.6 → 1.6.2-beta.8
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/CHANGELOG.md +40 -0
- package/bin/pantheon-init.mjs +114 -0
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/pyproject.toml +1 -1
- package/scripts/decision-router.mjs +240 -1
- package/scripts/install/interactive.mjs +61 -36
- package/scripts/install/opencode.mjs +9 -1
- package/scripts/install/strings.mjs +12 -0
- package/src/agents/aphrodite.md +5 -0
- package/src/agents/hermes.md +7 -9
- package/src/agents/talos.md +5 -0
- package/src/agents/zeus.md +40 -65
- package/src/pantheon/v2-hook-engine.ts +307 -0
- package/src/pantheon/v2-shell-hooks.ts +66 -2
- package/src/plugin-v2.ts +11 -3
- package/src/plugins/tui/dist/tui-v2.js +3 -3
- package/src/plugins/tui/dist/tui.js +1 -1
- package/src/plugins/tui/package-lock.json +2 -2
- package/src/plugins/tui/package.json +1 -1
package/src/plugin-v2.ts
CHANGED
|
@@ -161,6 +161,7 @@ import {
|
|
|
161
161
|
v2ResourceTarget,
|
|
162
162
|
} from './pantheon/v2-delegation-enforce.ts'
|
|
163
163
|
import { createV2ExecuteAfter, resolveV2SandboxConfig } from './pantheon/v2-execute-after.ts'
|
|
164
|
+
import { runSecretScanInProcess } from './pantheon/v2-hook-engine.ts'
|
|
164
165
|
import { applyV2ModelOverrides, readV2ModelConfiguration } from './pantheon/v2-model-overrides.ts'
|
|
165
166
|
import type { NativeDecisionRequest } from './pantheon/v2-native-decisions.ts'
|
|
166
167
|
import { createV2ShellHooks, type V2ShellRunner } from './pantheon/v2-shell-hooks.ts'
|
|
@@ -168,7 +169,7 @@ import { createV2ToolDefinitions, type V2ToolResult } from './pantheon/v2-tools.
|
|
|
168
169
|
import { V2_UNSUPPORTED_FEATURE_SEED } from './pantheon/v2-unsupported.mjs'
|
|
169
170
|
import { buildV2VisionPromptContext, type V2VisionRuntime } from './pantheon/v2-vision.ts'
|
|
170
171
|
import { sanitizeVisionHistory } from './pantheon/vision.ts'
|
|
171
|
-
import {
|
|
172
|
+
import type { HookPayload, HookResult } from './plugins/hook-runner.ts'
|
|
172
173
|
|
|
173
174
|
// ─── Unsupported Features Registry ───────────────────────────────────────
|
|
174
175
|
|
|
@@ -1659,10 +1660,17 @@ function evaluateSecretScanResult(scan: HookResult): SecretScanDecision {
|
|
|
1659
1660
|
return { action: 'fail-closed', reason: 'scanner-unexpected-exit' }
|
|
1660
1661
|
}
|
|
1661
1662
|
|
|
1662
|
-
/** Invocation of
|
|
1663
|
+
/** Invocation of the secret scan used by the tool guard. */
|
|
1663
1664
|
type SecretScanRunner = (payload: HookPayload) => Promise<HookResult>
|
|
1664
1665
|
|
|
1665
|
-
|
|
1666
|
+
/**
|
|
1667
|
+
* The scan runs IN-PROCESS (src/pantheon/v2-hook-engine.ts, same patterns and
|
|
1668
|
+
* exit-code contract as the former scripts/hooks/scan-secrets.sh) so a tool
|
|
1669
|
+
* call no longer spawns a bash child. The runner signature and the classifier
|
|
1670
|
+
* below are unchanged; {@link setV2SecretScanRunnerForTests} still injects
|
|
1671
|
+
* structured results the in-process path cannot produce on its own.
|
|
1672
|
+
*/
|
|
1673
|
+
const defaultSecretScanRunner: SecretScanRunner = async (payload) => runSecretScanInProcess(payload)
|
|
1666
1674
|
|
|
1667
1675
|
let secretScanRunner: SecretScanRunner = defaultSecretScanRunner
|
|
1668
1676
|
|
|
@@ -5022,7 +5022,7 @@ function QuotaPluginDetails(props) {
|
|
|
5022
5022
|
setProp(_el$58, "paddingTop", 1);
|
|
5023
5023
|
insertNode(_el$59, createTextNode(`Plugin`));
|
|
5024
5024
|
setProp(_el$59, "attributes", 1);
|
|
5025
|
-
insert(_el$61, `Pantheon TUI v1.6.2-beta.
|
|
5025
|
+
insert(_el$61, `Pantheon TUI v1.6.2-beta.8`);
|
|
5026
5026
|
insertNode(_el$62, createTextNode(`Status de conexão consultado pelo OpenCode; segredos não são exibidos.`));
|
|
5027
5027
|
insert(_el$64, () => `Status da quota: ${quotaSnapshotStatusLabel(props.snapshot.status, props.snapshot.error)}`);
|
|
5028
5028
|
insert(_el$58, createComponent(Show, {
|
|
@@ -8300,7 +8300,7 @@ function Sidebar(props) {
|
|
|
8300
8300
|
setProp(_el$12, "width", "100%");
|
|
8301
8301
|
setProp(_el$12, "padding", 1);
|
|
8302
8302
|
setProp(_el$13, "attributes", 1);
|
|
8303
|
-
insert(_el$13, `Pantheon v1.6.2-beta.
|
|
8303
|
+
insert(_el$13, `Pantheon v1.6.2-beta.8`);
|
|
8304
8304
|
insert(_el$14, () => presetHeaderLine(model.preset().name ?? "", model.provider()));
|
|
8305
8305
|
insert(_el$12, createComponent(Show, {
|
|
8306
8306
|
get when() {
|
|
@@ -9027,7 +9027,7 @@ function HomeStatus(props) {
|
|
|
9027
9027
|
const muted = () => props.context.theme?.text?.muted ?? props.context.theme?.text?.base;
|
|
9028
9028
|
return (() => {
|
|
9029
9029
|
var _el$72 = createElement("text");
|
|
9030
|
-
insert(_el$72, () => `Pantheon v1.6.2-beta.
|
|
9030
|
+
insert(_el$72, () => `Pantheon v1.6.2-beta.8${preset().name ? ` ▸ ${preset().name}` : ""}`);
|
|
9031
9031
|
effect((_$p) => setProp(_el$72, "fg", muted(), _$p));
|
|
9032
9032
|
return _el$72;
|
|
9033
9033
|
})();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pantheon-tui",
|
|
3
|
-
"version": "1.6.2-beta.
|
|
3
|
+
"version": "1.6.2-beta.8",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pantheon-tui",
|
|
9
|
-
"version": "1.6.2-beta.
|
|
9
|
+
"version": "1.6.2-beta.8",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@opencode-ai/plugin": "1.18.33",
|