@devflow-tools/telemetry 0.17.7 → 0.18.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 shilongfeicool
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @devflow-tools/telemetry
2
2
 
3
- > 记录 Agent、tool、LLM 和语义控制事件,并生成健康度、失败分类和 ROI 汇总。(v0.17.7)
3
+ > 记录 Agent、tool、LLM 和语义控制事件,并生成健康度、失败分类和 ROI 汇总。(v0.17.8)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/%40devflow-tools%2Ftelemetry.svg)](https://www.npmjs.com/package/@devflow-tools/telemetry)
6
6
 
@@ -30,7 +30,7 @@ await telemetry.recordToolCall({ eventId: 'evt-1', executionId: 'run-1', timesta
30
30
 
31
31
  ## 版本与兼容性
32
32
 
33
- - 当前包版本:`0.17.7`
33
+ - 当前包版本:`0.17.8`
34
34
  - Node.js:未在 package manifest 声明更高版本时,使用 Node.js 18+;原生 SQLite/Playwright 能力请按对应依赖安装
35
35
  - workspace 内部包应使用同一 DevFlow minor/patch 版本,避免类型和数据库 schema 不一致
36
36
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { TelemetryEngine } from "./telemetry-engine.js";
2
2
  export { LogWriter, getLogWriter } from "./log-writer.js";
3
- export { emitSemanticControlLog } from './semantic-log.js';
3
+ export { assertSemanticControlLogSafe, emitSemanticControlLog } from './semantic-log.js';
4
+ export { SemanticRuntimeEventProjector } from './runtime-event-projector.js';
4
5
  export { aggregateHealthStatus, createHealthSnapshot } from "./health-snapshot.js";
5
6
  export type { HealthCheckResult, HealthSnapshot, HealthStatus } from "./health-snapshot.js";
6
7
  export type { RunMeta, StepMeta, StepEnd, RunEnd, ToolCallEvent, LlmCallEvent, FreeEvent } from "./log-writer.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACnF,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC5F,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACzF,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACnF,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC5F,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export { TelemetryEngine } from "./telemetry-engine.js";
2
2
  export { LogWriter, getLogWriter } from "./log-writer.js";
3
- export { emitSemanticControlLog } from './semantic-log.js';
3
+ export { assertSemanticControlLogSafe, emitSemanticControlLog } from './semantic-log.js';
4
+ export { SemanticRuntimeEventProjector } from './runtime-event-projector.js';
4
5
  export { aggregateHealthStatus, createHealthSnapshot } from "./health-snapshot.js";
5
6
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACzF,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { TaskAggregateEventV1, TaskRuntimeSnapshotV2 } from '@devflow-tools/sdk';
2
+ export declare class SemanticRuntimeEventProjector {
3
+ project(input: {
4
+ event: TaskAggregateEventV1;
5
+ snapshot: TaskRuntimeSnapshotV2;
6
+ replayed: boolean;
7
+ }): void;
8
+ }
9
+ //# sourceMappingURL=runtime-event-projector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-event-projector.d.ts","sourceRoot":"","sources":["../src/runtime-event-projector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAGtF,qBAAa,6BAA6B;IACxC,OAAO,CAAC,KAAK,EAAE;QACb,KAAK,EAAE,oBAAoB,CAAC;QAC5B,QAAQ,EAAE,qBAAqB,CAAC;QAChC,QAAQ,EAAE,OAAO,CAAC;KACnB,GAAG,IAAI;CAqCT"}
@@ -0,0 +1,43 @@
1
+ import { emitSemanticControlLog } from './semantic-log.js';
2
+ export class SemanticRuntimeEventProjector {
3
+ project(input) {
4
+ if (input.replayed)
5
+ return;
6
+ const identity = input.event.identity;
7
+ emitSemanticControlLog({
8
+ event: 'task.aggregate.event_committed', identity,
9
+ level: input.event.kind.endsWith('_failed') ? 'warn' : 'info', timestamp: input.event.createdAt,
10
+ data: {
11
+ eventId: input.event.eventId, kind: input.event.kind, revision: input.event.revision,
12
+ sequence: input.event.sequence, producer: input.event.producer,
13
+ snapshotHash: input.snapshot.snapshotHash,
14
+ },
15
+ });
16
+ emitSemanticControlLog({
17
+ event: 'task.snapshot.projected', identity,
18
+ level: input.snapshot.terminal === 'failed' ? 'warn' : 'info', timestamp: input.snapshot.updatedAt,
19
+ data: {
20
+ revision: input.snapshot.revision, lastEventSequence: input.snapshot.lastEventSequence,
21
+ snapshotHash: input.snapshot.snapshotHash, taskDefinitionHash: input.snapshot.taskDefinitionHash,
22
+ activationSnapshotHash: input.snapshot.activationSnapshotHash, terminal: input.snapshot.terminal,
23
+ runtimeHealth: input.snapshot.runtimeHealth,
24
+ obligations: Object.fromEntries(Object.entries(input.snapshot.obligations).map(([name, value]) => [name, {
25
+ requirement: value.requirement, state: value.state,
26
+ ...(value.reasonCode ? { reasonCode: value.reasonCode } : {}),
27
+ ...(value.receiptId ? { receiptId: value.receiptId } : {}),
28
+ }])),
29
+ durableWorkCount: Object.keys(input.snapshot.durableWork).length,
30
+ },
31
+ });
32
+ if (input.event.kind === 'action_lease_issued')
33
+ emitSemanticControlLog({
34
+ event: 'action.lease.transitioned', identity, level: 'info', timestamp: input.event.createdAt,
35
+ data: {
36
+ eventId: input.event.eventId, leaseId: input.event.payload.leaseId,
37
+ leaseHash: input.event.payload.leaseHash, fencingToken: input.event.payload.fencingToken,
38
+ state: 'issued',
39
+ },
40
+ });
41
+ }
42
+ }
43
+ //# sourceMappingURL=runtime-event-projector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-event-projector.js","sourceRoot":"","sources":["../src/runtime-event-projector.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,MAAM,OAAO,6BAA6B;IACxC,OAAO,CAAC,KAIP;QACC,IAAI,KAAK,CAAC,QAAQ;YAAE,OAAO;QAC3B,MAAM,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC;QACtC,sBAAsB,CAAC;YACrB,KAAK,EAAE,gCAAgC,EAAE,QAAQ;YACjD,KAAK,EA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,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE;wBACvG,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK;wBAClD,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;wBAC7D,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;qBAC3D,CAAC,CAAC,CAAC;gBACJ,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,MAAM;aACjE;SACF,CAAC,CAAC;QACH,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,qBAAqB;YAAE,sBAAsB,CAAC;gBACrE,KAAK,EAAE,2BAA2B,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC,SAAS;gBAC7F,IAAI,EAAE;oBACJ,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO;oBAClE,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY;oBACxF,KAAK,EAAE,QAAQ;iBAChB;aACF,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,3 +1,4 @@
1
1
  import type { SemanticControlLogEvent } from '@devflow-tools/sdk';
2
2
  export declare function emitSemanticControlLog(event: SemanticControlLogEvent): void;
3
+ export declare function assertSemanticControlLogSafe(event: SemanticControlLogEvent): void;
3
4
  //# sourceMappingURL=semantic-log.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"semantic-log.d.ts","sourceRoot":"","sources":["../src/semantic-log.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAMlE,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,uBAAuB,GAAG,IAAI,CAe3E"}
1
+ {"version":3,"file":"semantic-log.d.ts","sourceRoot":"","sources":["../src/semantic-log.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAMlE,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,uBAAuB,GAAG,IAAI,CAgB3E;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,uBAAuB,GAAG,IAAI,CAGjF"}
@@ -3,6 +3,7 @@ const MAX_STRING_LENGTH = 2_000;
3
3
  const MAX_ARRAY_LENGTH = 64;
4
4
  export function emitSemanticControlLog(event) {
5
5
  try {
6
+ assertSemanticControlLogSafe(event);
6
7
  getLogWriter(event.identity.projectRoot).event({
7
8
  runId: `semantic:${event.identity.sessionId ?? event.identity.projectRoot}`,
8
9
  level: event.level,
@@ -18,6 +19,36 @@ export function emitSemanticControlLog(event) {
18
19
  // Observability must never alter business behavior.
19
20
  }
20
21
  }
22
+ export function assertSemanticControlLogSafe(event) {
23
+ inspectSensitive(event.data, 'data');
24
+ inspectSensitive(event.identity, 'identity');
25
+ }
26
+ function inspectSensitive(value, path, depth = 0) {
27
+ if (depth > 8 || value == null)
28
+ return;
29
+ if (typeof value === 'string') {
30
+ if (/\bBearer\s+[A-Za-z0-9._~+/-]+=*|\b(?:sk|ghp|github_pat)_[A-Za-z0-9_-]{12,}/u.test(value)) {
31
+ throw new Error(`SEMANTIC_LOG_SECRET_REJECTED:${path}`);
32
+ }
33
+ return;
34
+ }
35
+ if (Array.isArray(value)) {
36
+ value.forEach((item, index) => inspectSensitive(item, `${path}[${index}]`, depth + 1));
37
+ return;
38
+ }
39
+ if (typeof value !== 'object')
40
+ return;
41
+ for (const [key, item] of Object.entries(value)) {
42
+ if (SENSITIVE_KEYS.has(key))
43
+ throw new Error(`SEMANTIC_LOG_SENSITIVE_FIELD:${path}.${key}`);
44
+ inspectSensitive(item, `${path}.${key}`, depth + 1);
45
+ }
46
+ }
47
+ const SENSITIVE_KEYS = new Set([
48
+ 'prompt', 'rawPrompt', 'normalizedPrompt', 'memoryValue', 'sourceBody', 'sourceText',
49
+ 'markdown', 'content', 'excerpt', 'quote', 'secret', 'apiKey', 'authorization',
50
+ 'vector', 'embedding', 'evidence',
51
+ ]);
21
52
  function boundValue(value, depth = 0) {
22
53
  if (depth > 5)
23
54
  return '[depth-limited]';
@@ -1 +1 @@
1
- {"version":3,"file":"semantic-log.js","sourceRoot":"","sources":["../src/semantic-log.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,iBAAiB,GAAG,KAAK,CAAC;AAChC,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAE5B,MAAM,UAAU,sBAAsB,CAAC,KAA8B;IACnE,IAAI,CAAC;QACH,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC;YAC7C,KAAK,EAAE,YAAY,KAAK,CAAC,QAAQ,CAAC,SAAS,IAAI,KAAK,CAAC,QAAQ,CAAC,WAAW,EAAE;YAC3E,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,OAAO,EAAE,KAAK,CAAC,KAAK;YACpB,IAAI,EAAE,UAAU,CAAC;gBACf,QAAQ,EAAE,KAAK,CAAC,QAAQ;gBACxB,SAAS,EAAE,KAAK,CAAC,SAAS;gBAC1B,GAAG,KAAK,CAAC,IAAI;aACd,CAA4B;SAC9B,CAAC,CAAC;IACL,CAAC;IAAC,MAAM,CAAC;QACP,oDAAoD;IACtD,CAAC;AACH,CAAC;AAED,SAAS,UAAU,CAAC,KAAc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C,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;IAC3G,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC;IAChF,OAAO,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,KAAgC,CAAC;SACvE,KAAK,CAAC,CAAC,EAAE,gBAAgB,CAAC;SAC1B,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,UAAU,CAAC,IAAI,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devflow-tools/telemetry",
3
- "version": "0.17.7",
3
+ "version": "0.18.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -17,8 +17,8 @@
17
17
  "clean": "rm -rf dist"
18
18
  },
19
19
  "dependencies": {
20
- "@devflow-tools/database": "0.17.7",
21
- "@devflow-tools/sdk": "0.17.7"
20
+ "@devflow-tools/database": "0.18.0",
21
+ "@devflow-tools/sdk": "0.18.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "typescript": "^5.5.0",
@@ -27,5 +27,12 @@
27
27
  "files": [
28
28
  "dist"
29
29
  ],
30
- "gitHead": "560fe8a097aa9d398fdcfec409134cc94d26f92f"
30
+ "gitHead": "940c6c004c0ebb59abad3da9bc67137fa2d2a666",
31
+ "description": "Privacy-safe event and metric persistence for DevFlow runtimes.",
32
+ "license": "MIT",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/shilongfeicool/dev-flow.git"
36
+ },
37
+ "homepage": "https://github.com/shilongfeicool/dev-flow#readme"
31
38
  }