@tokenwarden/opencode 0.1.0 → 0.1.2
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 +2 -15
- package/dist/src/cli/index.js +0 -2
- package/native/bin/tokenwarden-build-config.json +1 -1
- package/native/bin/tokenwarden-engine-darwin-arm64.manifest.json +2 -2
- package/native/bin/tokenwarden-engine-darwin-x64.manifest.json +2 -2
- package/native/bin/tokenwarden-engine-linux-arm64.manifest.json +2 -2
- package/native/bin/tokenwarden-engine-linux-x64.manifest.json +2 -2
- package/native/bin/tokenwarden-engine-win32-x64.exe +0 -0
- package/native/bin/tokenwarden-engine-win32-x64.exe.manifest.json +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Add the plugin to `opencode.json` or `~/.config/opencode/opencode.jsonc`:
|
|
|
13
13
|
```json
|
|
14
14
|
{
|
|
15
15
|
"$schema": "https://opencode.ai/config.json",
|
|
16
|
-
"plugin": ["tokenwarden"]
|
|
16
|
+
"plugin": ["@tokenwarden/opencode"]
|
|
17
17
|
}
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -37,17 +37,4 @@ tokenwarden connect --email you@example.com
|
|
|
37
37
|
tokenwarden disconnect
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
See the
|
|
41
|
-
|
|
42
|
-
## Native Sidecar Support
|
|
43
|
-
|
|
44
|
-
The published package includes signed native sidecar binaries for macOS arm64, macOS x64, Linux x64 musl, Linux ARM64 musl, and Windows x64. TokenWarden selects the matching binary locally and verifies its signed manifest before using native optimization.
|
|
45
|
-
|
|
46
|
-
Usage, account, license, and raw-output records are stored under `~/.cache/tokenwarden/encrypted/`. The TypeScript plugin asks the verified native sidecar to read and write those encrypted files instead of storing plain JSON/JSONL directly. Local failure diagnostics are written to `~/.cache/tokenwarden/logs/failures.jsonl` without tool output or source content.
|
|
47
|
-
|
|
48
|
-
Development and production plugin builds always compile every packaged sidecar target. On macOS, install the native cross-compilers before running `npm run build:plugin` or `npm run build:plugin:prod` from the repository root:
|
|
49
|
-
|
|
50
|
-
```sh
|
|
51
|
-
brew install mingw-w64
|
|
52
|
-
brew install FiloSottile/musl-cross/musl-cross
|
|
53
|
-
```
|
|
40
|
+
See the website `/readme` page for product, billing, and setup notes.
|
package/dist/src/cli/index.js
CHANGED
|
@@ -18,8 +18,6 @@ async function main() {
|
|
|
18
18
|
const store = createStore(valueAfter(args, "--data-dir"));
|
|
19
19
|
const engine = await createProtectedEngine({ dataDir: store.dataDir });
|
|
20
20
|
const protection = await engine.protectionStatus();
|
|
21
|
-
process.stdout.write(`TokenWarden data dir: ${store.dataDir}\n`);
|
|
22
|
-
process.stdout.write(`Usage log: ${store.eventsPath}\n`);
|
|
23
21
|
process.stdout.write(`Engine mode: ${protection.mode}\n`);
|
|
24
22
|
process.stdout.write(`License: ${protection.license}\n`);
|
|
25
23
|
process.stdout.write(`Rule pack: ${protection.rulePack}\n`);
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"platform": "darwin",
|
|
9
9
|
"arch": "arm64",
|
|
10
10
|
"sha256": "513d90c920758b1f758d2d99c39c459f133d736eb13e188916c1234c94f14076",
|
|
11
|
-
"builtAt": "2026-06-11T13:
|
|
11
|
+
"builtAt": "2026-06-11T13:30:16.184Z",
|
|
12
12
|
"signingKey": "production-env",
|
|
13
13
|
"freeMonthlySavedTokenCap": 1000000,
|
|
14
14
|
"siteURL": "https://tokenwarden.ai/"
|
|
15
15
|
},
|
|
16
|
-
"signature": "
|
|
16
|
+
"signature": "iF6XOVsohoW2HtnU5Qs-EKi8w7zN-QOFnuWmBEZt1pgkYmyb4GmeeIsfKJohVfaz85PRVvdZ1SYDmKibxxLJBw"
|
|
17
17
|
}
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"platform": "darwin",
|
|
9
9
|
"arch": "x64",
|
|
10
10
|
"sha256": "ddba81a47b8bd308839765b04b1c48a837754b4074ff023ca96676019e8e3744",
|
|
11
|
-
"builtAt": "2026-06-11T13:
|
|
11
|
+
"builtAt": "2026-06-11T13:30:16.184Z",
|
|
12
12
|
"signingKey": "production-env",
|
|
13
13
|
"freeMonthlySavedTokenCap": 1000000,
|
|
14
14
|
"siteURL": "https://tokenwarden.ai/"
|
|
15
15
|
},
|
|
16
|
-
"signature": "
|
|
16
|
+
"signature": "ezyJhHQG7TpvCPVjPdIqzlfJznQa1PxmdrH3pkdNiUkAN2qLJrCpofpjHFOPUzSz9-2rbNTZOXYYx_jLRsRmDQ"
|
|
17
17
|
}
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"platform": "linux",
|
|
9
9
|
"arch": "arm64",
|
|
10
10
|
"sha256": "06d9ad12796c9870a1a0515af08faa3e27fd1e4485b7c74bfd211ae32d617d7c",
|
|
11
|
-
"builtAt": "2026-06-11T13:
|
|
11
|
+
"builtAt": "2026-06-11T13:30:16.184Z",
|
|
12
12
|
"signingKey": "production-env",
|
|
13
13
|
"freeMonthlySavedTokenCap": 1000000,
|
|
14
14
|
"siteURL": "https://tokenwarden.ai/"
|
|
15
15
|
},
|
|
16
|
-
"signature": "
|
|
16
|
+
"signature": "hV-F0bZFuxGCyTE-fEINH2X3dSmr5FhprTKfu5JBpBA09i2XPhRUEAE_eDUXEnGh7lzyjbEZ_r4MzKAI4GZfCQ"
|
|
17
17
|
}
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"platform": "linux",
|
|
9
9
|
"arch": "x64",
|
|
10
10
|
"sha256": "92767449e681a41c62fc2f9f732ea3b17d8f99b0d66d42abbffcdf3f0bdff226",
|
|
11
|
-
"builtAt": "2026-06-11T13:
|
|
11
|
+
"builtAt": "2026-06-11T13:30:16.184Z",
|
|
12
12
|
"signingKey": "production-env",
|
|
13
13
|
"freeMonthlySavedTokenCap": 1000000,
|
|
14
14
|
"siteURL": "https://tokenwarden.ai/"
|
|
15
15
|
},
|
|
16
|
-
"signature": "
|
|
16
|
+
"signature": "P9qttm0PvMjLZakkMljYuPKHiNuIeReMiv9U4B-dZLp6khzquS4WI_vhQsXT4tWbICeyYPkJgkylzmY1YYUUCA"
|
|
17
17
|
}
|
|
Binary file
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
"binary": "tokenwarden-engine-win32-x64.exe",
|
|
8
8
|
"platform": "win32",
|
|
9
9
|
"arch": "x64",
|
|
10
|
-
"sha256": "
|
|
11
|
-
"builtAt": "2026-06-11T13:
|
|
10
|
+
"sha256": "b3467b671d0b2fdfe97955a9fcffb1d0e933c9804dc7591ae72467b5766a03a6",
|
|
11
|
+
"builtAt": "2026-06-11T13:30:16.184Z",
|
|
12
12
|
"signingKey": "production-env",
|
|
13
13
|
"freeMonthlySavedTokenCap": 1000000,
|
|
14
14
|
"siteURL": "https://tokenwarden.ai/"
|
|
15
15
|
},
|
|
16
|
-
"signature": "
|
|
16
|
+
"signature": "9YCA1ICOOQTHb4Iq1yVgZwbOdoF01TXmdd8C9mJAbbWApeIn78ExixGkpsMGMaXGx2n2dH86eG0O3Sh133UtAw"
|
|
17
17
|
}
|