Commit Graph

16 Commits

Author SHA1 Message Date
David Ibia 5325e83ac1 docs: document OpenCode 2 support, output scrubbing, and releasing
CI / Test (Node 22) (push) Has been skipped
CI / Test (Node 26) (push) Has been skipped
CI / E2E (OpenCode 1.18.31 + 2.0.32) (push) Has been skipped
CI / Test (Node 24) (push) Has been skipped
CI / E2E (OpenCode 1.19.3 + 2.1.0) (push) Has been skipped
2026-10-20 15:10:36 +01:00
David Ibia 0595794385 feat: support OpenCode 2 and scrub secret values from tool output
- Default export is { id, setup, server }: OpenCode 2 calls setup(ctx), OpenCode 1 (1.18.29+) calls server()
- Tools defined once in lib/tools.ts and registered for both versions (V2 with codemode: false)
- Blocking covers path args of any tool, patch/apply_patch envelopes, shell commands naming env files, grep output, and V2 permission checks
- Secret-looking values from the project's env files are replaced in every non-envsitter tool's output
- Protected files come from envsitter's path policy; example/template files stay readable
- npm run test:e2e drives the real OpenCode 1 and 2 CLIs with a scripted model
- @opencode-ai/plugin ^1.19.3, @opencode/plugin ^2.1.0 (peer >=2.0.32), envsitter ^0.1.0, TypeScript 6

BREAKING CHANGE: the named export EnvSitterGuard is now the plugin definition object; call EnvSitterGuard.server(input) instead of EnvSitterGuard(input).
2026-10-20 15:10:32 +01:00
David Ibia 2a53fe2d9c ci: add CI with OpenCode e2e, weekly latest-OpenCode e2e, release workflow, and Dependabot
- ci.yml: unit tests on Node 22, 24, 26 plus the end-to-end check against OpenCode 1.18.31 + 2.0.32 and 1.19.3 + 2.1.0
- e2e-latest.yml: weekly end-to-end run against the newest opencode-ai and @opencode/cli releases
- release.yml: tag vX.Y.Z reruns CI and publishes with npm trusted publishing
- Jobs run on GitHub only; the Gitea origin's runner skips them
- Dependabot proposes grouped npm and Actions updates weekly
2026-10-20 15:10:27 +01:00
David Ibia 17e37f2f76 feat: add mutation tools and help command for v0.0.4
- Add envsitter_add, envsitter_set, envsitter_unset, envsitter_delete tools
- Add envsitter_help tool with comprehensive usage guide for agents
- Change blocking to silent mode (error messages only, no toasts)
- Bump envsitter dependency to ^0.0.4
- Update README with new tools and envsitter library reference
- Update CHANGELOG for v0.0.4
2026-01-15 23:01:58 +01:00
David Ibia 093258641f chore: add repository metadata
Link package metadata to GitHub mirror.
2026-01-13 19:44:07 +01:00
David Ibia 4c2a52d35e chore: bump version to 0.0.3
Includes changelog entries for secure dotenv operations and envsitter ^0.0.3.
2026-01-13 19:39:22 +01:00
David Ibia fa23dd07f8 feat: add secure envsitter dotenv operations
Expose validate/copy/format/annotate tools with dry-run by default, and switch is_equal matching to candidate hashing. Remove prompt-append warning to avoid writing into OpenCode input.
2026-01-13 19:28:39 +01:00
David Ibia abe3467f37 docs: expand README with quickstart and tool docs 2026-01-12 20:29:57 +01:00
David Ibia 9c89528829 chore: set package version to 0.0.2 2026-01-12 19:30:19 +01:00
David Ibia b21d63cb7c feat: expose envsitter match and scan tools
Adds safe matching/scanning endpoints so workflows can validate secrets without reading .env files.
2026-01-12 19:28:58 +01:00
David Ibia 6020518fc7 chore: prepare npm package for publish 2026-01-12 14:04:23 +01:00
David Ibia 97598af472 chore: set package version to 0.0.1 2026-01-12 13:52:39 +01:00
David Ibia b2b0b9b0fa test: add Node test suite and pre-commit hook 2026-01-12 13:50:43 +01:00
David Ibia 090822ef6c docs: remove internal README notes 2026-01-12 13:33:43 +01:00
David Ibia 3407f13568 docs: add README and MIT license 2026-01-12 13:30:57 +01:00
David Ibia 3a56870ff5 Initial commit 2026-01-12 13:20:27 +01:00