@polka-codes/cli 0.9.97 → 0.9.98
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.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -112338,7 +112338,7 @@ var {
|
|
|
112338
112338
|
Help
|
|
112339
112339
|
} = import__.default;
|
|
112340
112340
|
// package.json
|
|
112341
|
-
var version = "0.9.
|
|
112341
|
+
var version = "0.9.98";
|
|
112342
112342
|
|
|
112343
112343
|
// src/commands/agent.ts
|
|
112344
112344
|
init_src();
|
|
@@ -116316,8 +116316,8 @@ class AutonomousAgent {
|
|
|
116316
116316
|
// src/logger.ts
|
|
116317
116317
|
import { formatWithOptions } from "node:util";
|
|
116318
116318
|
function createStreamConsole(stdout, stderr) {
|
|
116319
|
-
const isStdoutTTY = stdout.isTTY;
|
|
116320
|
-
const isStderrTTY = stderr.isTTY;
|
|
116319
|
+
const isStdoutTTY = "isTTY" in stdout && stdout.isTTY;
|
|
116320
|
+
const isStderrTTY = "isTTY" in stderr && stderr.isTTY;
|
|
116321
116321
|
return {
|
|
116322
116322
|
log: (...args) => stdout.write(`${formatWithOptions({ colors: isStdoutTTY }, ...args)}
|
|
116323
116323
|
`),
|
|
@@ -120140,7 +120140,7 @@ async function getMemoryStore(logger) {
|
|
|
120140
120140
|
const cwd = process.cwd();
|
|
120141
120141
|
const scope = detectProjectScope(cwd);
|
|
120142
120142
|
const dbPath = memoryConfig.path || DEFAULT_MEMORY_CONFIG.path;
|
|
120143
|
-
const resolvedDbPath = path11.resolve(
|
|
120143
|
+
const resolvedDbPath = path11.resolve(resolveHomePath(dbPath));
|
|
120144
120144
|
const sqliteStore = new SQLiteMemoryStore({ enabled: true, type: "sqlite", path: resolvedDbPath }, scope);
|
|
120145
120145
|
const memoryManager = new MemoryManager(sqliteStore);
|
|
120146
120146
|
memoryStoreCache = {
|