@pencil-agent/nano-pencil 1.3.4 → 1.4.0
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/package.json +1 -1
- package/utils/tools-manager.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pencil-agent/nano-pencil",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "CLI writing agent with read, bash, edit, write tools and session management. Based on pi; supports DashScope Coding Plan. Soul enabled by default for AI personality evolution.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/utils/tools-manager.ts
CHANGED
|
@@ -21,7 +21,7 @@ const TOOLS_DIR = getBinDir();
|
|
|
21
21
|
// Cache for tool availability checks to avoid repeated filesystem checks
|
|
22
22
|
const toolCheckCache = new Map<string, string | null>();
|
|
23
23
|
|
|
24
|
-
const DEFAULT_NETWORK_TIMEOUT_MS =
|
|
24
|
+
const DEFAULT_NETWORK_TIMEOUT_MS = 120000; /** Timeout for tools download (API + file). Default 120s (2 minutes). Override with PI_TOOLS_DOWNLOAD_TIMEOUT_MS (e.g. 300000 for very slow networks). */
|
|
25
25
|
/** Timeout for tools download (API + file). Override with PI_TOOLS_DOWNLOAD_TIMEOUT_MS (e.g. 120000 for very slow networks). */
|
|
26
26
|
function getNetworkTimeoutMs(): number {
|
|
27
27
|
const env = process.env.PI_TOOLS_DOWNLOAD_TIMEOUT_MS;
|