@bli-cockpit/telemetry-core 0.1.38 → 0.1.40

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/index.d.ts CHANGED
@@ -11,6 +11,7 @@ export * from "./ingest-dto.js";
11
11
  export * from "./local-config.js";
12
12
  export * from "./memory-daemon-endpoint.js";
13
13
  export * from "./memory-hook-stats.js";
14
+ export * from "./memory-extract-context.js";
14
15
  export * from "./memory-hook-performance.js";
15
16
  export * from "./memory-install-receipt.js";
16
17
  export * from "./paths.js";
package/dist/index.js CHANGED
@@ -11,6 +11,7 @@ export * from "./ingest-dto.js";
11
11
  export * from "./local-config.js";
12
12
  export * from "./memory-daemon-endpoint.js";
13
13
  export * from "./memory-hook-stats.js";
14
+ export * from "./memory-extract-context.js";
14
15
  export * from "./memory-hook-performance.js";
15
16
  export * from "./memory-install-receipt.js";
16
17
  export * from "./paths.js";
@@ -0,0 +1,5 @@
1
+ /** The shared, deliberately conservative transcript characters-per-token estimate. */
2
+ export declare const CHARS_PER_TOKEN_ESTIMATE = 4;
3
+ /** The Stop-hook context window measured by the arm-6 replay. */
4
+ export declare const MEMORY_EXTRACT_CONTEXT_TOKENS = 20000;
5
+ export declare const MEMORY_EXTRACT_CONTEXT_MAX_CHARS: number;
@@ -0,0 +1,5 @@
1
+ /** The shared, deliberately conservative transcript characters-per-token estimate. */
2
+ export const CHARS_PER_TOKEN_ESTIMATE = 4;
3
+ /** The Stop-hook context window measured by the arm-6 replay. */
4
+ export const MEMORY_EXTRACT_CONTEXT_TOKENS = 20_000;
5
+ export const MEMORY_EXTRACT_CONTEXT_MAX_CHARS = MEMORY_EXTRACT_CONTEXT_TOKENS * CHARS_PER_TOKEN_ESTIMATE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bli-cockpit/telemetry-core",
3
- "version": "0.1.38",
3
+ "version": "0.1.40",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -12,7 +12,8 @@
12
12
  "exports": {
13
13
  ".": {
14
14
  "types": "./dist/index.d.ts",
15
- "import": "./dist/index.js"
15
+ "import": "./dist/index.js",
16
+ "default": "./dist/index.js"
16
17
  },
17
18
  "./memory-experience": {
18
19
  "types": "./dist/memory-experience.d.ts",