@ycodium-ai/agent-claude 0.2.2706 → 0.2.2743

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -43
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1,47 +1,6 @@
1
1
  // src/index.ts
2
2
  import { definePlugin } from "@ycodium-ai/plugin-api";
3
3
 
4
- // src/accountUsage.ts
5
- var METRICS = [
6
- {
7
- id: "five_hour",
8
- optional: true,
9
- kind: "quota-window",
10
- scope: "account",
11
- unit: { kind: "percent", direction: "used" },
12
- usedAt: "/five_hour/utilization",
13
- resetsAt: { path: "/five_hour/resets_at", format: "iso" },
14
- label: "session",
15
- windowSeconds: 5 * 60 * 60
16
- },
17
- {
18
- id: "seven_day",
19
- optional: true,
20
- kind: "quota-window",
21
- scope: "account",
22
- unit: { kind: "percent", direction: "used" },
23
- usedAt: "/seven_day/utilization",
24
- resetsAt: { path: "/seven_day/resets_at", format: "iso" },
25
- label: "weekly",
26
- windowSeconds: 7 * 24 * 60 * 60
27
- }
28
- ];
29
- var CLAUDE_ACCOUNT_USAGE = {
30
- id: "agent-claude:account-usage",
31
- credentialKind: "claude-oauth",
32
- request: {
33
- url: "https://api.anthropic.com/api/oauth/usage",
34
- headers: {
35
- Accept: "application/json",
36
- "anthropic-beta": "oauth-2025-04-20",
37
- Authorization: { credential: "accessToken", prefix: "Bearer " }
38
- }
39
- },
40
- ttlMs: 6e4,
41
- cooldownMs: 5e3,
42
- metrics: METRICS
43
- };
44
-
45
4
  // src/card.ts
46
5
  var CLAUDE_DRIVER_KIND = "claudeAgent";
47
6
  var CLAUDE_CARD = {
@@ -118,7 +77,6 @@ var CLAUDE_CARD = {
118
77
  }
119
78
  ],
120
79
  diagnostics: [],
121
- accountUsage: CLAUDE_ACCOUNT_USAGE,
122
80
  // 设置表单照这份画:带 x-ycodium-form 的属性才进表单(enabled、customModels 等另有入口,不在此列),
123
81
  // 顺序看 x-ycodium-form-order;文案键在本插件 locales/<locale>.json 里解析,宿主不兜底。
124
82
  configSchema: {
@@ -27280,7 +27238,7 @@ var executors = [
27280
27238
  ];
27281
27239
  var index_default = definePlugin({
27282
27240
  id: "agent-claude",
27283
- apiVersion: 2,
27241
+ apiVersion: 3,
27284
27242
  executors,
27285
27243
  activate(ctx) {
27286
27244
  capturedAttachments = ctx.attachments;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/agent-claude",
3
- "version": "0.2.2706",
3
+ "version": "0.2.2743",
4
4
  "description": "Claude executor: Claude Code CLI via @anthropic-ai/claude-agent-sdk.",
5
5
  "keywords": [
6
6
  "ycodium",
@@ -24,9 +24,9 @@
24
24
  "@types/node": "24.12.4",
25
25
  "esbuild": "0.28.1",
26
26
  "vite-plus": "0.2.2",
27
- "ycodium-executor-testing": "0.0.0",
28
- "@ycodium-ai/plugin-api": "0.2.2706",
29
- "ycodium-jsonl-stream": "0.0.0"
27
+ "@ycodium-ai/plugin-api": "0.2.2743",
28
+ "ycodium-jsonl-stream": "0.0.0",
29
+ "ycodium-executor-testing": "0.0.0"
30
30
  },
31
31
  "ycodium": {
32
32
  "plugin": "./dist/index.js",