@comfanion/usethis_todo 0.1.15-dev.7 → 0.1.15-dev.9

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 (3) hide show
  1. package/index.ts +2 -0
  2. package/package.json +1 -1
  3. package/tools.ts +2 -8
package/index.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import type { Plugin } from "@opencode-ai/plugin"
2
+ import path from "path"
3
+ import fs from "fs/promises"
2
4
 
3
5
  import { write, read, read_five, read_by_id, update } from "./tools"
4
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfanion/usethis_todo",
3
- "version": "0.1.15-dev.7",
3
+ "version": "0.1.15-dev.9",
4
4
  "description": "OpenCode plugin: enhanced TODO tools (dual storage + dependency graph)",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
package/tools.ts CHANGED
@@ -135,14 +135,8 @@ async function getNativeDataDirs(): Promise<string[]> {
135
135
  const dirs = new Set<string>()
136
136
 
137
137
  // 1) xdg-basedir (what OpenCode itself uses)
138
- try {
139
- const mod: any = await import("xdg-basedir")
140
- if (mod?.xdgData && typeof mod.xdgData === "string") {
141
- dirs.add(mod.xdgData)
142
- }
143
- } catch {
144
- // ignore
145
- }
138
+ // Removed dynamic import to avoid "chunk not found" errors in some environments
139
+ // relying on standard env vars and paths instead
146
140
 
147
141
  // 2) explicit XDG override
148
142
  if (process.env.XDG_DATA_HOME) {