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/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 { type HookPayload, type HookResult, runHook } from './plugins/hook-runner.ts'
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 scripts/hooks/scan-secrets.sh used by the tool guard. */
1663
+ /** Invocation of the secret scan used by the tool guard. */
1663
1664
  type SecretScanRunner = (payload: HookPayload) => Promise<HookResult>
1664
1665
 
1665
- const defaultSecretScanRunner: SecretScanRunner = (payload) => runHook('scan-secrets.sh', payload)
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.6`);
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.6`);
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.6${preset().name ? ` ▸ ${preset().name}` : ""}`);
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
  })();
@@ -167,7 +167,7 @@ async function detectVersion(api) {
167
167
  if (ver) return ver;
168
168
  }
169
169
  } catch {}
170
- return "1.6.2-beta.6";
170
+ return "1.6.2-beta.8";
171
171
  }
172
172
  /**
173
173
  * usage-bar — AI subscription usage gauge for the opencode TUI.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pantheon-tui",
3
- "version": "1.6.2-beta.6",
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.6",
9
+ "version": "1.6.2-beta.8",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@opencode-ai/plugin": "1.18.33",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pantheon-tui",
3
3
  "type": "module",
4
- "version": "1.6.2-beta.6",
4
+ "version": "1.6.2-beta.8",
5
5
  "description": "Pantheon TUI plugin — V1 rich sidebar and usage gauges; native V2 status, session and delegation sidebar",
6
6
  "license": "MIT",
7
7
  "engines": {