@clawos-dev/clawd 0.1.0 → 0.1.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.
package/dist/cli.cjs CHANGED
@@ -8068,21 +8068,23 @@ function wrap(inner) {
8068
8068
  }
8069
8069
  function createLogger(opts = {}) {
8070
8070
  const level = opts.level ?? "info";
8071
- const targets = [
8072
- { target: "pino/file", options: { destination: 1 }, level }
8071
+ const streams = [
8072
+ { stream: import_pino.default.destination({ dest: 1, sync: true }), level }
8073
8073
  ];
8074
8074
  if (opts.file) {
8075
8075
  try {
8076
8076
  import_node_fs2.default.mkdirSync(import_node_path2.default.dirname(opts.file), { recursive: true });
8077
- targets.push({ target: "pino/file", options: { destination: opts.file, mkdir: true }, level });
8077
+ streams.push({
8078
+ stream: import_pino.default.destination({ dest: opts.file, mkdir: true, sync: true }),
8079
+ level
8080
+ });
8078
8081
  } catch {
8079
8082
  }
8080
8083
  }
8081
- const base = (0, import_pino.default)({
8082
- level,
8083
- base: { pid: process.pid },
8084
- transport: { targets }
8085
- });
8084
+ const base = (0, import_pino.default)(
8085
+ { level, base: { pid: process.pid } },
8086
+ import_pino.default.multistream(streams)
8087
+ );
8086
8088
  return wrap(base);
8087
8089
  }
8088
8090
 
@@ -16648,7 +16650,7 @@ function listRecentDirs(store, limit = 50) {
16648
16650
  }
16649
16651
 
16650
16652
  // src/version.ts
16651
- var version = "0.1.0";
16653
+ var version = "0.1.2";
16652
16654
 
16653
16655
  // src/index.ts
16654
16656
  async function startDaemon(config) {