@caplets/opencode 0.4.9 → 0.5.0
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/README.md +9 -8
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -18,21 +18,22 @@ rebuilt from current Caplets state for the tools registered when the plugin load
|
|
|
18
18
|
current plugin API snapshots `Hooks.tool` at plugin load, so adding, removing, or renaming native
|
|
19
19
|
tools still requires restarting OpenCode; newly added tools are not advertised until restart.
|
|
20
20
|
|
|
21
|
-
## Remote
|
|
21
|
+
## Remote Selection
|
|
22
22
|
|
|
23
|
-
By default the plugin reads local Caplets config.
|
|
23
|
+
By default the plugin reads local Caplets config. Use `CAPLETS_MODE` and `CAPLETS_REMOTE_*` to select local, self-hosted remote, or Caplets Cloud behavior:
|
|
24
24
|
|
|
25
25
|
```sh
|
|
26
|
-
CAPLETS_MODE=
|
|
26
|
+
CAPLETS_MODE=local opencode
|
|
27
|
+
CAPLETS_MODE=remote CAPLETS_REMOTE_URL=https://caplets.example.com/caplets opencode
|
|
28
|
+
CAPLETS_MODE=cloud CAPLETS_REMOTE_URL=https://cloud.caplets.dev opencode
|
|
27
29
|
```
|
|
28
30
|
|
|
29
|
-
For authenticated
|
|
31
|
+
Run `caplets cloud auth login` before Cloud mode. For authenticated self-hosted remotes, keep credentials in the environment:
|
|
30
32
|
|
|
31
33
|
```sh
|
|
32
34
|
CAPLETS_MODE=remote \
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
CAPLETS_SERVER_PASSWORD=... \
|
|
35
|
+
CAPLETS_REMOTE_URL=https://caplets.example.com/caplets \
|
|
36
|
+
CAPLETS_REMOTE_TOKEN=... \
|
|
36
37
|
opencode
|
|
37
38
|
```
|
|
38
39
|
|
|
@@ -58,4 +59,4 @@ export default {
|
|
|
58
59
|
};
|
|
59
60
|
```
|
|
60
61
|
|
|
61
|
-
Plugin config overrides environment variables. The explicit config shape is `{ mode, server: { url, user }, remote: { pollIntervalMs } }`. Prefer `
|
|
62
|
+
Plugin config overrides environment variables. The explicit config shape is `{ mode, server: { url, user }, remote: { pollIntervalMs } }`. Prefer `CAPLETS_REMOTE_TOKEN` or `CAPLETS_REMOTE_PASSWORD` for self-hosted credentials unless your OpenCode setup provides secure secret storage.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caplets/opencode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Native OpenCode plugin for Caplets.",
|
|
5
5
|
"homepage": "https://github.com/spiritledsoftware/caplets#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@caplets/core": "0.
|
|
29
|
+
"@caplets/core": "0.19.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^25.9.1",
|
|
33
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
33
|
+
"@typescript/native-preview": "7.0.0-dev.20260603.1",
|
|
34
34
|
"rolldown": "^1.0.3",
|
|
35
35
|
"typescript": "^6.0.3",
|
|
36
|
-
"vitest": "^4.1.
|
|
36
|
+
"vitest": "^4.1.8"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@opencode-ai/plugin": ">=1"
|