@ex-machina/opencode-anthropic-auth 1.6.1 → 1.7.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 +6 -1
- package/dist/transform.js +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
An [OpenCode](https://github.com/anomalyco/opencode) plugin that provides Anthropic OAuth authentication, enabling Claude Pro/Max users to use their subscription directly with OpenCode.
|
|
4
4
|
|
|
5
|
+
> [!IMPORTANT]
|
|
6
|
+
> If you are seeing issues, please try to `rm -rf ~/.config/opencode` and check your `opencode.json` config to make sure you're on the latest version.
|
|
7
|
+
>
|
|
8
|
+
> Try this FIRST before making an Issue. Thanks!
|
|
9
|
+
|
|
5
10
|
## Usage
|
|
6
11
|
|
|
7
12
|
Add the plugin to your OpenCode configuration:
|
|
@@ -21,7 +26,7 @@ Add the plugin to your OpenCode configuration:
|
|
|
21
26
|
|
|
22
27
|
```json
|
|
23
28
|
{
|
|
24
|
-
"plugin": ["@ex-machina/opencode-anthropic-auth@1.6.
|
|
29
|
+
"plugin": ["@ex-machina/opencode-anthropic-auth@1.6.1"]
|
|
25
30
|
}
|
|
26
31
|
```
|
|
27
32
|
|
package/dist/transform.js
CHANGED
|
@@ -12,6 +12,10 @@ function prefixName(name) {
|
|
|
12
12
|
* Reverse prefixName: strip TOOL_PREFIX and restore the original leading case.
|
|
13
13
|
*/
|
|
14
14
|
function unprefixName(name) {
|
|
15
|
+
// StructuredOutput is still used as StructuredOutput
|
|
16
|
+
if (name === 'StructuredOutput') {
|
|
17
|
+
return name;
|
|
18
|
+
}
|
|
15
19
|
return `${name.charAt(0).toLowerCase()}${name.slice(1)}`;
|
|
16
20
|
}
|
|
17
21
|
/**
|