@compilr-dev/agents 0.5.1 → 0.5.2

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.
Files changed (2) hide show
  1. package/dist/agent.d.ts +12 -0
  2. package/package.json +2 -1
package/dist/agent.d.ts CHANGED
@@ -638,6 +638,18 @@ export interface AgentConfig {
638
638
  /** Max total tokens for inline file content after compaction (default: 4000) */
639
639
  maxInlineTokens?: number;
640
640
  };
641
+ /**
642
+ * Logger instance for structured diagnostic logging.
643
+ * When omitted, no logging is performed.
644
+ *
645
+ * @example
646
+ * ```typescript
647
+ * import { createLogger } from '@compilr-dev/logger';
648
+ * const log = createLogger({ package: 'my-app' });
649
+ * const agent = new Agent({ provider, logger: log });
650
+ * ```
651
+ */
652
+ logger?: import('@compilr-dev/logger').Logger;
641
653
  }
642
654
  /**
643
655
  * Options for a single run
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilr-dev/agents",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Lightweight multi-LLM agent library for building CLI AI assistants",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -78,6 +78,7 @@
78
78
  "vitest": "^4.0.18"
79
79
  },
80
80
  "dependencies": {
81
+ "@compilr-dev/logger": "^0.1.0",
81
82
  "@google/genai": "^1.42.0",
82
83
  "@opentelemetry/api": "^1.9.0",
83
84
  "js-tiktoken": "^1.0.21"