opencode-workflow-guard 1.3.4 → 1.3.6

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.
Files changed (2) hide show
  1. package/package.json +5 -1
  2. package/src/lib/utils.ts +1 -3
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "opencode-workflow-guard",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "OpenCode plugin enforcing workflow discipline through deterministic tool.execute.before hooks",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "src/workflow-guard.ts",
8
+ "exports": {
9
+ ".": "./src/workflow-guard.ts",
10
+ "./ui": "./src/workflow-guard-ui.ts"
11
+ },
8
12
  "publishConfig": {
9
13
  "access": "public"
10
14
  },
package/src/lib/utils.ts CHANGED
@@ -136,8 +136,6 @@ export function unwrapShellCommand(command: string): string {
136
136
  }
137
137
 
138
138
  export const SENSITIVE_ENV_KEYS = [
139
- "GITHUB_TOKEN",
140
- "GH_TOKEN",
141
139
  "OPENAI_API_KEY",
142
140
  "ANTHROPIC_API_KEY",
143
141
  "OPENAI_KEY",
@@ -150,7 +148,7 @@ export const SENSITIVE_ENV_KEYS = [
150
148
  "SLACK_TOKEN",
151
149
  ];
152
150
  export const SENSITIVE_ENV_RE =
153
- /^(AWS_|KUBE|OPENAI|ANTHROPIC|GH_|GITHUB_|GOOGLE_|GCP_|AZURE_|SLACK_|NPM_|DOCKER_|KUBECONFIG)/;
151
+ /^(AWS_|KUBE|OPENAI|ANTHROPIC|GH_TOKEN|GITHUB_TOKEN|GOOGLE_|GCP_|AZURE_|SLACK_|NPM_|DOCKER_|KUBECONFIG)/;
154
152
 
155
153
  export function getCleanEnv(): Record<string, string> {
156
154
  const env: Record<string, string> = { ...(process.env as Record<string, string>) };