billion-context-pi 0.1.28 → 0.1.29

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/log.d.ts CHANGED
@@ -1,8 +1,18 @@
1
- /** Toggle debug at runtime from config (config.debug takes precedence over the
2
- * env var when set). Called once during session_start. */
3
1
  export declare function setDebugEnabled(enabled: boolean): void;
2
+ export type LogLevel = "error" | "warn" | "info" | "debug";
3
+ export declare function closeLogStream(): void;
4
+ export declare function logError(scope: string, fields: Record<string, unknown>): void;
5
+ export declare function logWarn(scope: string, fields: Record<string, unknown>): void;
6
+ export declare function logInfo(scope: string, fields: Record<string, unknown>): void;
7
+ export declare function logThrow(scope: string, err: unknown, extra?: Record<string, unknown>): void;
4
8
  export declare const debug: {
5
9
  readonly enabled: boolean;
6
10
  readonly logFile: string;
7
11
  event(scope: string, fields: Record<string, unknown>): void;
8
12
  };
13
+ export declare const logger: {
14
+ error: typeof logError;
15
+ warn: typeof logWarn;
16
+ info: typeof logInfo;
17
+ debug(scope: string, fields: Record<string, unknown>): void;
18
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "billion-context-pi",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "One billion, not one million. Model-driven context management for the Pi coding agent.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",