weread-export 0.1.11 → 0.1.12

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.
Files changed (2) hide show
  1. package/lib/index.js +4 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -2354,7 +2354,8 @@ const name = "weread";
2354
2354
  const inject = [
2355
2355
  "tools",
2356
2356
  "systemPrompt",
2357
- "webServer"
2357
+ "webServer",
2358
+ "directoryPicker"
2358
2359
  ];
2359
2360
  /** Order of the announcement section within the tool-guidance band. */
2360
2361
  const SECTION_ORDER = 160;
@@ -2397,7 +2398,8 @@ function apply(ctx, config) {
2397
2398
  const getPicker = () => {
2398
2399
  try {
2399
2400
  return ctx.directoryPicker;
2400
- } catch {
2401
+ } catch (error) {
2402
+ console.error("[weread-export] directoryPicker access failed:", error);
2401
2403
  return;
2402
2404
  }
2403
2405
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weread-export",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "微信读书 (WeChat Reading) integration for DeepSeek Harness: connect the official WeRead Skills Agent Gateway with a wrk- API key, then browse your bookshelf, export highlights & thoughts, query reading stats, and send highlights to flomo — agent tools plus a web settings panel",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",