@pencil-agent/nano-pencil 1.3.3 → 1.3.5

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.
@@ -115,6 +115,8 @@ import {
115
115
  import { LoginDialogComponent } from "./components/login-dialog.js";
116
116
  import { ModelSelectorComponent } from "./components/model-selector.js";
117
117
  import { OAuthSelectorComponent } from "./components/oauth-selector.js";
118
+ import { formatSoulStats } from "./components/soul-stats.js";
119
+ import { formatMemoryStats } from "./components/memory-stats.js";
118
120
  import { ProviderSelectorComponent } from "./components/provider-selector.js";
119
121
  import { ScopedModelsSelectorComponent } from "./components/scoped-models-selector.js";
120
122
  import { SessionSelectorComponent } from "./components/session-selector.js";
@@ -5115,7 +5117,6 @@ export class InteractiveMode {
5115
5117
  return;
5116
5118
  }
5117
5119
 
5118
- const { formatSoulStats } = require("./components/soul-stats.js");
5119
5120
  const stats = formatSoulStats(soulManager, { compact: false });
5120
5121
 
5121
5122
  this.chatContainer.addChild(new Spacer(1));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pencil-agent/nano-pencil",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
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": {
@@ -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 = 60000;
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;