pi-subagentura 1.0.7 → 1.0.8

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/helpers.ts +2 -1
  2. package/package.json +1 -1
package/helpers.ts CHANGED
@@ -27,9 +27,10 @@ import {
27
27
 
28
28
  const DEBUG_LOG_DIR = process.env.SUBAGENT_DEBUG_LOG_DIR
29
29
  ? resolve(process.env.SUBAGENT_DEBUG_LOG_DIR)
30
- : resolve(process.cwd(), ".pi/subagent-logs");
30
+ : undefined;
31
31
 
32
32
  export function debugLog(level: string, event: string, data: Record<string, unknown> = {}) {
33
+ if (!DEBUG_LOG_DIR) return;
33
34
  try {
34
35
  if (!existsSync(DEBUG_LOG_DIR)) {
35
36
  mkdirSync(DEBUG_LOG_DIR, { recursive: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-subagentura",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Public Pi package that adds in-process sub-agents via the SDK",
5
5
  "main": "subagent.ts",
6
6
  "type": "module",