pi-lean-portal 0.2.2 → 0.2.3

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/README.md CHANGED
@@ -284,7 +284,7 @@ navigation guidance for specific sites using `web-learn`.
284
284
  web-learn domain="reddit.com" content="…guidance text…"
285
285
  ```
286
286
 
287
- This creates a `.md` file with YAML frontmatter in the `guides/` directory.
287
+ This creates a `.md` file with YAML frontmatter in `~/.pi/agent/pi-lean-portal/web-guides/`.
288
288
  The guide becomes available immediately via `web-guide` and appears in the guide footer on
289
289
  future navigations to that domain.
290
290
 
@@ -595,7 +595,7 @@ Size threshold for profile state warnings (default: 10 MB):
595
595
  ```jsonc
596
596
  {
597
597
  "browser": {
598
- "maxStorageStateSize": 10485760
598
+ "maxStorageStateSize": 10485760
599
599
  }
600
600
  }
601
601
  ```
@@ -250,14 +250,8 @@ function writeFetchTempFile(content: string, taskId: string): string {
250
250
 
251
251
  function trackFetchFile(taskId: string, filePath: string): void {
252
252
  const existing = activeFetchFiles.get(taskId) ?? [];
253
- for (const oldPath of existing) {
254
- try {
255
- rmSync(oldPath, { force: true });
256
- } catch {
257
- /* best-effort */
258
- }
259
- }
260
- activeFetchFiles.set(taskId, [filePath]);
253
+ if (!existing.includes(filePath)) existing.push(filePath);
254
+ activeFetchFiles.set(taskId, existing);
261
255
  }
262
256
 
263
257
  interface CappedFetchContent {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-lean-portal",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Pi extension. Interactive web browsing for Pi — a /web toggle removes the tools from context when switched off, Playwright Chromium/Firefox deliver accessibility-tree snapshots, persistent profiles, cookies, and domain-matched guides; custom/stealth backends (Camoufox) plug in when a site blocks the shipped browsers.",
5
5
  "keywords": [
6
6
  "pi-package",