mirror of
https://github.com/wesammustafa/opencode-primer.git
synced 2026-11-19 02:17:58 +00:00
docs: refresh for OpenCode v1.17.13, add Go coverage, and rebrand
- Bump every version pin, pricing table, and model ID to the verified 2026-07-05 state (v1.17.13): Claude Fable 5 / Sonnet 5 on Zen, new free tier, deprecation sunset table, v1.17.x changelog section - Cover gaps: OpenCode Go vs Zen billing, Anthropic subscription-login removal (PR #18186), MCP resources, --mini mode, --auto flag, yolo mode - Fix correctness bugs: command-template !`cmd` syntax in docs and .opencode/commands, protect-secrets regex missing 'cat .env', dual plugin exports, quickstart PATH fix, Playwright MCP flags, ctrl+d keybind conflict, agent/command required-field claims - Fix links: cursor.com, windsurf.com, platform.claude.com, code.claude.com, opencode.ai/discord, Vercel Grep announcement - Rebrand: banner (Images/banner.svg), 1280x640 social preview asset, hero redesign with star CTA, ecosystem stats, private vulnerability reporting channel, CI-matching local checks, MD060 lint opt-out
This commit is contained in:
@@ -33,7 +33,7 @@ Sample line:
|
||||
Three options:
|
||||
|
||||
1. Move the plugin file out of `.opencode/plugins/`.
|
||||
2. Comment out the `export default` line.
|
||||
2. Comment out **all** exports in the file (every export is loaded, so a leftover one keeps the plugin alive) — or rename the file to a non-`.js`/`.ts` extension.
|
||||
3. Gate the body of the plugin on an env var:
|
||||
|
||||
```js
|
||||
|
||||
@@ -31,5 +31,3 @@ export const AuditLog = async ({ directory }) => {
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
export default AuditLog;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// on top of `external_directory: deny` and gitignore — never your only line
|
||||
// of defense, but a useful one.
|
||||
|
||||
const SENSITIVE = /(^|\/)(\.env(\..*)?|secrets|credentials|id_rsa|id_ed25519|\.npmrc|\.pypirc)(\b|\/)/i;
|
||||
const SENSITIVE = /(^|[\s\/"'=])(\.env(\.[^\s]*)?|secrets|credentials|id_rsa|id_ed25519|\.npmrc|\.pypirc)(\b|\/)/i;
|
||||
|
||||
// Pull the most likely path/command field out of a tool's arguments.
|
||||
// `read`/`edit`/`write` use `filePath`; `bash` uses `command`; others vary.
|
||||
@@ -36,5 +36,3 @@ export const ProtectSecrets = async () => {
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
export default ProtectSecrets;
|
||||
|
||||
Reference in New Issue
Block a user