@yyc3/ai-family-kernel 2.52.0 → 2.54.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 CHANGED
@@ -9,4 +9,4 @@ import { NineLayerRegistry } from '@yyc3/ai-family-kernel/layer-registry';
9
9
 
10
10
  插拔点全景见根仓《可复用性分析》(15 端口)。子路径导出见 `exports`。
11
11
 
12
- > 由 `scripts/pack-npm.mjs` 确定性装配(M31 · 复用路线 R1/R2);版本与根仓同步(2.52.0)。零运行时依赖。
12
+ > 由 `scripts/pack-npm.mjs` 确定性装配(M31 · 复用路线 R1/R2);版本与根仓同步(2.54.0)。零运行时依赖。
@@ -242,10 +242,11 @@ export class FamilyMetrics {
242
242
  * 家族用量报表口径地基(入住率报表按维度聚合导出;缺省维度归 unknown)。
243
243
  */
244
244
  recordLlmUsage(tags, totalTokens, calls = 1) {
245
+ // 空串与缺失同归 unknown(M41:快照恢复链 bucket split 会产出空串)
245
246
  const labels = {
246
- agent_id: tags.agentId ?? 'unknown',
247
- skill_id: tags.skillId ?? 'unknown',
248
- scenario: tags.scenario ?? 'unknown',
247
+ agent_id: tags.agentId || 'unknown',
248
+ skill_id: tags.skillId || 'unknown',
249
+ scenario: tags.scenario || 'unknown',
249
250
  };
250
251
  if (totalTokens > 0)
251
252
  this.llmUsageTokens.inc(labels, totalTokens);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yyc3/ai-family-kernel",
3
- "version": "2.52.0",
3
+ "version": "2.54.0",
4
4
  "description": "YYC³ AI Family Agent 五支柱融合内核(自·知·学·治·愈)——零运行时依赖,全端口注入",
5
5
  "license": "MIT",
6
6
  "type": "module",