clikit-plugin 0.2.19 → 0.2.20
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/dist/index.js
CHANGED
|
@@ -5050,6 +5050,9 @@ function getDb() {
|
|
|
5050
5050
|
return db;
|
|
5051
5051
|
}
|
|
5052
5052
|
function memoryRead(relativePath) {
|
|
5053
|
+
if (typeof relativePath !== "string" || !relativePath.trim()) {
|
|
5054
|
+
return null;
|
|
5055
|
+
}
|
|
5053
5056
|
const fullPath = path10.join(MEMORY_DIR, relativePath);
|
|
5054
5057
|
if (!fs9.existsSync(fullPath)) {
|
|
5055
5058
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/tools/memory.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AA8ED,wBAAgB,UAAU,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/tools/memory.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,cAAc,EAAE,MAAM,E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BAAiB;IAChC,SAAS,EAAE,QAAQ,GAAG,SAAS,GAAG,YAAY,GAAG,QAAQ,GAAG,SAAS,CAAC;IACtE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,iBAAiB,CA8E9D"}
|
|
@@ -61,6 +61,7 @@ dist/index.js ← import.meta.dir points here
|
|
|
61
61
|
| 0.2.1-0.2.9 | Type guards for hooks/tools |
|
|
62
62
|
| 0.2.10 | `__dirname` → `import.meta.dir` (paths still wrong) |
|
|
63
63
|
| 0.2.11 | Correct relative paths from `dist/` directory |
|
|
64
|
+
| 0.2.19 | Retry `getObservationsByType` when SQLite reports datatype mismatch |
|
|
64
65
|
|
|
65
66
|
---
|
|
66
67
|
|
|
@@ -116,4 +117,4 @@ Bun's bundler inlines `__dirname` to the build-time absolute path. However, `imp
|
|
|
116
117
|
|
|
117
118
|
1. All source files (`src/agents/index.ts`, `src/commands/index.ts`, `src/skills/index.ts`) are combined into a single `dist/index.js`
|
|
118
119
|
2. `import.meta.dir` in the bundled code refers to the location of `dist/index.js`, not the original source files
|
|
119
|
-
3. Resource files (`.md` files) are NOT bundled - they must be found via relative paths from `dist/`
|
|
120
|
+
3. Resource files (`.md` files) are NOT bundled - they must be found via relative paths from `dist/`
|