askpplx 1.4.1 → 1.4.2

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.
@@ -11,11 +11,17 @@ export async function loadSystemPrompt(customPath) {
11
11
  catch (error) {
12
12
  const code = error.code;
13
13
  if (code === "ENOENT") {
14
- throw new Error(`System prompt file not found: ${promptPath}`);
14
+ throw new Error(`System prompt file not found: ${promptPath}`, {
15
+ cause: error,
16
+ });
15
17
  }
16
18
  if (code === "EACCES") {
17
- throw new Error(`Permission denied reading system prompt: ${promptPath}`);
19
+ throw new Error(`Permission denied reading system prompt: ${promptPath}`, {
20
+ cause: error,
21
+ });
18
22
  }
19
- throw new Error(`Failed to read system prompt file: ${promptPath}`);
23
+ throw new Error(`Failed to read system prompt file: ${promptPath}`, {
24
+ cause: error,
25
+ });
20
26
  }
21
27
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "askpplx",
3
3
  "author": "Łukasz Jerciński",
4
4
  "license": "MIT",
5
- "version": "1.4.1",
5
+ "version": "1.4.2",
6
6
  "description": "Minimal Unix-style CLI for querying Perplexity Sonar API.",
7
7
  "repository": {
8
8
  "type": "git",
@@ -36,30 +36,30 @@
36
36
  "typecheck": "tsc -b --noEmit"
37
37
  },
38
38
  "keywords": [],
39
- "packageManager": "pnpm@10.24.0",
39
+ "packageManager": "pnpm@10.30.1",
40
40
  "engines": {
41
41
  "node": ">=22.14.0"
42
42
  },
43
43
  "dependencies": {
44
- "@ai-sdk/perplexity": "^3.0.5",
44
+ "@ai-sdk/perplexity": "^3.0.19",
45
45
  "@commander-js/extra-typings": "^14.0.0",
46
- "ai": "^6.0.31",
47
- "commander": "^14.0.2",
48
- "conf": "^15.0.2",
49
- "zod": "^4.3.5"
46
+ "ai": "^6.0.97",
47
+ "commander": "^14.0.3",
48
+ "conf": "^15.1.0",
49
+ "zod": "^4.3.6"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@total-typescript/ts-reset": "^0.6.1",
53
- "@types/node": "^25.0.7",
54
- "@vitest/coverage-v8": "^4.0.17",
55
- "eslint": "^9.39.2",
56
- "eslint-config-axkit": "^1.1.0",
53
+ "@types/node": "^25.3.0",
54
+ "@vitest/coverage-v8": "^4.0.18",
55
+ "eslint": "^10.0.1",
56
+ "eslint-config-axkit": "^1.2.1",
57
57
  "fta-check": "^1.5.1",
58
58
  "fta-cli": "^3.0.0",
59
- "knip": "^5.80.2",
60
- "prettier": "3.7.4",
61
- "semantic-release": "^25.0.2",
59
+ "knip": "^5.85.0",
60
+ "prettier": "3.8.1",
61
+ "semantic-release": "^25.0.3",
62
62
  "typescript": "^5.9.3",
63
- "vitest": "^4.0.17"
63
+ "vitest": "^4.0.18"
64
64
  }
65
65
  }