fix(plugin): load local toolkit and expose status tool
This commit is contained in:
1 parent
aac5627e98
commit
2fcfe2fbf7
14 files changed
+145
-34
No files matched your search
@@ -12,7 +12,7 @@ and Node.js **20 or newer**. It is not yet published to npm.
|
||||
- Skills: coding standards, security review, and test-driven development.
|
||||
- Subagents: planner, code reviewer, and security reviewer.
|
||||
- Plugin tool: `toolkit_project_status`, implemented against OpenCode's V2 VCS
|
||||
API. Live plugin activation is still under validation (see `FIXME.md`).
|
||||
API and exposed in the `toolkit` Code Mode namespace.
|
||||
- Project installer with JSONC-preserving plugin registration, file ownership
|
||||
hashes, collision checks, and protection for locally modified files.
|
||||
|
||||
@@ -31,10 +31,12 @@ npx opencode-toolkit install .
|
||||
|
||||
Replace `/path/to/opencode-toolkit` with the checkout path on your machine.
|
||||
|
||||
The installer copies the selected skills and agents into `.opencode/`, adds the
|
||||
package plugin to the applicable project config, and writes an ownership
|
||||
manifest. It does not overwrite unmanaged files. If a managed file has been
|
||||
edited since installation, updates stop rather than replacing it.
|
||||
The installer copies the selected skills and agents into `.opencode/`, registers
|
||||
the local package directory from `node_modules` in the applicable project
|
||||
config, and writes an ownership manifest. This avoids asking OpenCode to fetch
|
||||
the provisional, unpublished package name from npm. It does not overwrite
|
||||
unmanaged files. If a managed file has been edited since installation, updates
|
||||
stop rather than replacing it.
|
||||
If both `opencode.json` and `.opencode/opencode.json` exist, installation stops
|
||||
until the project consolidates them; this avoids ambiguous V2 config precedence.
|
||||
|
||||
@@ -49,8 +51,9 @@ remove the npm dependency from the consuming project's `package.json`; remove
|
||||
that dependency separately if desired.
|
||||
|
||||
After installation, restart or reload OpenCode and select the installed
|
||||
`toolkit-*` skills or subagents as needed. Configure and authenticate your
|
||||
provider normally in OpenCode.
|
||||
`toolkit-*` skills or subagents as needed. The plugin exposes its namespaced
|
||||
tool through Code Mode. Configure and authenticate your provider normally in
|
||||
OpenCode.
|
||||
|
||||
## Development
|
||||
|
||||
@@ -63,8 +66,10 @@ npm pack --dry-run
|
||||
```
|
||||
|
||||
The package is tested against OpenCode `2.0.24`. The unit and installer tests
|
||||
are deterministic and do not call an LLM. Provider-backed workflow validation
|
||||
is not yet complete; see [`FIXME.md`](FIXME.md) and [`TODO.md`](TODO.md).
|
||||
are deterministic and do not call an LLM. Plugin activation and tool execution
|
||||
were smoke-tested with a local mock OpenAI-compatible endpoint; provider-backed
|
||||
agent and skill workflows are not yet complete. See [`FIXME.md`](FIXME.md) and
|
||||
[`TODO.md`](TODO.md).
|
||||
|
||||
## Project documentation
|
||||
|
||||
|
||||
Reference in new issue
Block a user