@x-otto/plugin-anthropic 0.1.0-alpha.10 → 0.1.0-alpha.11
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/package.json +3 -3
- package/plugin-dist/meta.json +1 -1
- package/plugin-dist/plugin.cjs +3 -3
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x-otto/plugin-anthropic",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@x-otto/provider": "0.1.0-alpha.
|
|
7
|
-
"@x-otto/plugin": "0.1.0-alpha.
|
|
6
|
+
"@x-otto/provider": "0.1.0-alpha.11",
|
|
7
|
+
"@x-otto/plugin": "0.1.0-alpha.11"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"files": [
|
package/plugin-dist/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"apiVersion":1,"compilerVersion":"0.1.0-alpha.
|
|
1
|
+
{"apiVersion":1,"compilerVersion":"0.1.0-alpha.11","sourceHash":"8deac892becc63055c63021f05b24341f26fee08222e896230956243b3c3b485"}
|
package/plugin-dist/plugin.cjs
CHANGED
|
@@ -18,7 +18,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
|
-
//
|
|
21
|
+
// extensions/plugin-anthropic/plugin.ts
|
|
22
22
|
var plugin_exports = {};
|
|
23
23
|
__export(plugin_exports, {
|
|
24
24
|
default: () => plugin_default
|
|
@@ -28,7 +28,7 @@ module.exports = __toCommonJS(plugin_exports);
|
|
|
28
28
|
// otto-sdk-shim:otto-plugin-sdk
|
|
29
29
|
var definePlugin = (f) => f;
|
|
30
30
|
|
|
31
|
-
//
|
|
31
|
+
// extensions/plugin-anthropic/src/anthropic-oauth-client-identity.ts
|
|
32
32
|
var import_node_crypto = require("node:crypto");
|
|
33
33
|
var ANTHROPIC_OAUTH_SYSTEM_PREFIX = "You are Claude Code, Anthropic's official CLI for Claude.";
|
|
34
34
|
var ANTHROPIC_OAUTH_CLIENT_BETA = "claude-code-20250219";
|
|
@@ -75,7 +75,7 @@ function prependAnthropicOAuthIdentity(blocks) {
|
|
|
75
75
|
return [prefix, ...blocks];
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
//
|
|
78
|
+
// extensions/plugin-anthropic/plugin.ts
|
|
79
79
|
function customizeRequest(input) {
|
|
80
80
|
if (input.auth.mode !== "oauth") return {};
|
|
81
81
|
return {
|