@agentvault/agentvault 0.21.2 → 0.21.4
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/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/llm-cost.d.ts +1 -1
- package/dist/llm-cost.d.ts.map +1 -1
- package/dist/openclaw-entry.d.ts +1 -1
- package/dist/openclaw-entry.d.ts.map +1 -1
- package/dist/openclaw-entry.js +20 -2
- package/dist/openclaw-entry.js.map +2 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/llm-cost.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Plaintext stays in the customer's process. Only the calculated cost (a number)
|
|
10
10
|
* crosses the wire to AgentVault as span metadata.
|
|
11
11
|
*/
|
|
12
|
-
export declare const PRICING_AS_OF = "2026-
|
|
12
|
+
export declare const PRICING_AS_OF = "2026-05-02";
|
|
13
13
|
/**
|
|
14
14
|
* Strip provider-dated suffixes from a model name to match the canonical form.
|
|
15
15
|
* Anthropic uses `-YYYYMMDD`, OpenAI uses `-YYYY-MM-DD`. Both collapse to the
|
package/dist/llm-cost.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-cost.d.ts","sourceRoot":"","sources":["../src/llm-cost.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,aAAa,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"llm-cost.d.ts","sourceRoot":"","sources":["../src/llm-cost.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,aAAa,eAAe,CAAC;AA6D1C;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIxD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,GACnB,MAAM,GAAG,SAAS,CAyBpB"}
|
package/dist/openclaw-entry.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ declare function _parseMentions(text: string): string[];
|
|
|
18
18
|
* with 2min cooldown), so we no longer gate on senderIsAgent. All messages
|
|
19
19
|
* are processed unless they @mention a *different* agent specifically.
|
|
20
20
|
*/
|
|
21
|
-
declare function _shouldProcessRoomMessage(plaintext: string, agentName: string, accountId: string,
|
|
21
|
+
declare function _shouldProcessRoomMessage(plaintext: string, agentName: string, accountId: string, senderIsAgent?: boolean): boolean;
|
|
22
22
|
/** Strip the matching @mention prefix from plaintext so the agent sees clean text. */
|
|
23
23
|
declare function _stripMentions(text: string, agentName: string, accountId: string): string;
|
|
24
24
|
/** Emit the full hierarchical span tree for a message lifecycle. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openclaw-entry.d.ts","sourceRoot":"","sources":["../src/openclaw-entry.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAYH,OAAO,KAAK,EACV,iBAAiB,EASlB,MAAM,qBAAqB,CAAC;AA4D7B,gFAAgF;AAChF,eAAO,IAAI,oBAAoB,SAAQ,CAAC;AA+CxC,uEAAuE;AACvE,iBAAS,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAS9C;AAED;;;;;GAKG;AACH,iBAAS,yBAAyB,CAChC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,
|
|
1
|
+
{"version":3,"file":"openclaw-entry.d.ts","sourceRoot":"","sources":["../src/openclaw-entry.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAYH,OAAO,KAAK,EACV,iBAAiB,EASlB,MAAM,qBAAqB,CAAC;AA4D7B,gFAAgF;AAChF,eAAO,IAAI,oBAAoB,SAAQ,CAAC;AA+CxC,uEAAuE;AACvE,iBAAS,cAAc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erMtoken: 12 },
|
|
49194
49194
|
"o3-mini": { inputPerMtoken: 1.1, outputPerMtoken: 4.4 },
|
|
49195
49195
|
// Free-tier marker (preserves cost=0 path through buildLlmSpan)
|
|
49196
|
-
"free-tier-model": { inputPerMtoken: 0, outputPerMtoken: 0 }
|
|
49196
|
+
"free-tier-model": { inputPerMtoken: 0, outputPerMtoken: 0 },
|
|
49197
|
+
// Qwen — keys are post-OpenRouter-prefix-strip canonical names
|
|
49198
|
+
"qwen3.5-397b-a17b": { inputPerMtoken: 0.39, outputPerMtoken: 2.34 },
|
|
49199
|
+
"qwen3.6-plus": { inputPerMtoken: 0.26, outputPerMtoken: 1.56 },
|
|
49200
|
+
"qwen3-max-thinking": { inputPerMtoken: 1e-3, outputPerMtoken: 4e-3 },
|
|
49201
|
+
"qwen3-coder:free": { inputPerMtoken: 0, outputPerMtoken: 0 },
|
|
49202
|
+
// Grok — post-OpenRouter-prefix-strip canonical name
|
|
49203
|
+
"grok-4.20-multi-agent": { inputPerMtoken: 2, outputPerMtoken: 2 },
|
|
49204
|
+
// DeepSeek
|
|
49205
|
+
// NOTE: post-strip we can't distinguish DeepSeek-direct from DeepSeek-via-OR
|
|
49206
|
+
// calls (provider field on the span tells us, but calculateCost doesn't see it).
|
|
49207
|
+
// Using OpenRouter-routed pricing here since that's the more common path; the
|
|
49208
|
+
// direct-DeepSeek discrepancy will under-report cost by ~35%. Acceptable until
|
|
49209
|
+
// calculateCost() takes provider as a parameter.
|
|
49210
|
+
"deepseek-v3.2": { inputPerMtoken: 0.28, outputPerMtoken: 0.42 },
|
|
49211
|
+
"deepseek-v3.2-speciale": { inputPerMtoken: 0.4, outputPerMtoken: 1.2 },
|
|
49212
|
+
"deepseek-v4-pro": { inputPerMtoken: 0.28, outputPerMtoken: 0.42 },
|
|
49213
|
+
"deepseek-v4-flash": { inputPerMtoken: 0.14, outputPerMtoken: 0.28 }
|
|
49197
49214
|
};
|
|
49198
49215
|
function normalizeModelName(model) {
|
|
49199
49216
|
return model.replace(/-\d{4}-\d{2}-\d{2}$/, "").replace(/-\d{8}$/, "");
|
|
@@ -49518,8 +49535,9 @@ function _parseMentions(text) {
|
|
|
49518
49535
|
}
|
|
49519
49536
|
return mentions;
|
|
49520
49537
|
}
|
|
49521
|
-
function _shouldProcessRoomMessage(plaintext, agentName, accountId,
|
|
49538
|
+
function _shouldProcessRoomMessage(plaintext, agentName, accountId, senderIsAgent) {
|
|
49522
49539
|
const mentions = _parseMentions(plaintext);
|
|
49540
|
+
if (senderIsAgent && mentions.length === 0) return false;
|
|
49523
49541
|
if (mentions.length === 0) return true;
|
|
49524
49542
|
if (mentions.includes("all") || mentions.includes("everyone")) return true;
|
|
49525
49543
|
const nameLower = agentName.toLowerCase();
|