@pinet/model-aware-compaction 0.2.4 → 0.2.7

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/dist/config.js +2 -0
  2. package/package.json +4 -4
package/dist/config.js CHANGED
@@ -11,6 +11,8 @@ function parseSettings(path) {
11
11
  return null;
12
12
  try {
13
13
  const parsed = JSON.parse(fs.readFileSync(path, "utf8"));
14
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed))
15
+ return null;
14
16
  const value = parsed[SETTINGS_KEY];
15
17
  if (!value || typeof value !== "object" || Array.isArray(value))
16
18
  return null;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pinet/model-aware-compaction",
3
- "version": "0.2.4",
3
+ "version": "0.2.7",
4
4
  "type": "module",
5
5
  "description": "Pi extension for proactive model-aware context compaction thresholds",
6
6
  "author": "Will Porcellini <5994936+gugu91@users.noreply.github.com>",
7
7
  "license": "MIT",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "git+https://github.com/gugu91/extensions.git",
10
+ "url": "git+https://github.com/gugu91/pinet.git",
11
11
  "directory": "model-aware-compaction"
12
12
  },
13
13
  "publishConfig": {
@@ -40,9 +40,9 @@
40
40
  "scripts": {
41
41
  "build": "node ../scripts/build-package.mjs",
42
42
  "prepack": "pnpm run build",
43
- "lint": "eslint . --ext .ts",
43
+ "lint": "oxlint .",
44
44
  "typecheck": "tsc --noEmit",
45
- "test": "vitest run"
45
+ "test": "vitest run --config ../vitest.config.ts"
46
46
  },
47
47
  "dependencies": {},
48
48
  "peerDependencies": {