@ouhuang/pi-coding-agent 0.65.1 → 0.65.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +1 -1
  3. package/dist/core/agent-session-runtime.d.ts +2 -2
  4. package/dist/core/agent-session-runtime.d.ts.map +1 -1
  5. package/dist/core/agent-session-runtime.js +8 -4
  6. package/dist/core/agent-session-runtime.js.map +1 -1
  7. package/dist/core/bash-executor.d.ts.map +1 -1
  8. package/dist/core/bash-executor.js +19 -7
  9. package/dist/core/bash-executor.js.map +1 -1
  10. package/dist/core/package-manager.d.ts.map +1 -1
  11. package/dist/core/package-manager.js +2 -8
  12. package/dist/core/package-manager.js.map +1 -1
  13. package/dist/core/resource-loader.d.ts.map +1 -1
  14. package/dist/core/resource-loader.js +4 -3
  15. package/dist/core/resource-loader.js.map +1 -1
  16. package/dist/core/session-cwd.d.ts +19 -0
  17. package/dist/core/session-cwd.d.ts.map +1 -0
  18. package/dist/core/session-cwd.js +38 -0
  19. package/dist/core/session-cwd.js.map +1 -0
  20. package/dist/core/session-manager.d.ts +2 -1
  21. package/dist/core/session-manager.d.ts.map +1 -1
  22. package/dist/core/session-manager.js +3 -2
  23. package/dist/core/session-manager.js.map +1 -1
  24. package/dist/core/tools/bash.d.ts.map +1 -1
  25. package/dist/core/tools/bash.js +19 -9
  26. package/dist/core/tools/bash.js.map +1 -1
  27. package/dist/main.d.ts.map +1 -1
  28. package/dist/main.js +47 -4
  29. package/dist/main.js.map +1 -1
  30. package/dist/modes/interactive/interactive-mode.d.ts +1 -0
  31. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  32. package/dist/modes/interactive/interactive-mode.js +36 -0
  33. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  34. package/dist/utils/paths.d.ts +7 -0
  35. package/dist/utils/paths.d.ts.map +1 -0
  36. package/dist/utils/paths.js +19 -0
  37. package/dist/utils/paths.js.map +1 -0
  38. package/examples/extensions/custom-provider-anthropic/package-lock.json +22 -22
  39. package/examples/extensions/custom-provider-anthropic/package.json +17 -17
  40. package/examples/extensions/custom-provider-gitlab-duo/package.json +14 -14
  41. package/examples/extensions/custom-provider-qwen-cli/package.json +14 -14
  42. package/examples/extensions/with-deps/package-lock.json +29 -29
  43. package/examples/extensions/with-deps/package.json +20 -20
  44. package/package.json +4 -4
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Returns true if the value is NOT a package source (npm:, git:, etc.)
3
+ * or a URL protocol. Bare names and relative paths without ./ prefix
4
+ * are considered local.
5
+ */
6
+ export declare function isLocalPath(value: string): boolean;
7
+ //# sourceMappingURL=paths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/utils/paths.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAclD","sourcesContent":["/**\n * Returns true if the value is NOT a package source (npm:, git:, etc.)\n * or a URL protocol. Bare names and relative paths without ./ prefix\n * are considered local.\n */\nexport function isLocalPath(value: string): boolean {\n\tconst trimmed = value.trim();\n\t// Known non-local prefixes\n\tif (\n\t\ttrimmed.startsWith(\"npm:\") ||\n\t\ttrimmed.startsWith(\"git:\") ||\n\t\ttrimmed.startsWith(\"github:\") ||\n\t\ttrimmed.startsWith(\"http:\") ||\n\t\ttrimmed.startsWith(\"https:\") ||\n\t\ttrimmed.startsWith(\"ssh:\")\n\t) {\n\t\treturn false;\n\t}\n\treturn true;\n}\n"]}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Returns true if the value is NOT a package source (npm:, git:, etc.)
3
+ * or a URL protocol. Bare names and relative paths without ./ prefix
4
+ * are considered local.
5
+ */
6
+ export function isLocalPath(value) {
7
+ const trimmed = value.trim();
8
+ // Known non-local prefixes
9
+ if (trimmed.startsWith("npm:") ||
10
+ trimmed.startsWith("git:") ||
11
+ trimmed.startsWith("github:") ||
12
+ trimmed.startsWith("http:") ||
13
+ trimmed.startsWith("https:") ||
14
+ trimmed.startsWith("ssh:")) {
15
+ return false;
16
+ }
17
+ return true;
18
+ }
19
+ //# sourceMappingURL=paths.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paths.js","sourceRoot":"","sources":["../../src/utils/paths.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,KAAa,EAAW;IACnD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,2BAA2B;IAC3B,IACC,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC;QAC1B,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC;QAC1B,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC;QAC7B,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC;QAC3B,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;QAC5B,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,EACzB,CAAC;QACF,OAAO,KAAK,CAAC;IACd,CAAC;IACD,OAAO,IAAI,CAAC;AAAA,CACZ","sourcesContent":["/**\n * Returns true if the value is NOT a package source (npm:, git:, etc.)\n * or a URL protocol. Bare names and relative paths without ./ prefix\n * are considered local.\n */\nexport function isLocalPath(value: string): boolean {\n\tconst trimmed = value.trim();\n\t// Known non-local prefixes\n\tif (\n\t\ttrimmed.startsWith(\"npm:\") ||\n\t\ttrimmed.startsWith(\"git:\") ||\n\t\ttrimmed.startsWith(\"github:\") ||\n\t\ttrimmed.startsWith(\"http:\") ||\n\t\ttrimmed.startsWith(\"https:\") ||\n\t\ttrimmed.startsWith(\"ssh:\")\n\t) {\n\t\treturn false;\n\t}\n\treturn true;\n}\n"]}
@@ -1,24 +1,24 @@
1
1
  {
2
- "name": "pi-extension-custom-provider",
3
- "version": "1.16.1",
4
- "lockfileVersion": 3,
5
- "requires": true,
6
- "packages": {
7
- "": {
8
- "name": "pi-extension-custom-provider",
9
- "version": "1.16.1",
10
- "dependencies": {
11
- "@anthropic-ai/sdk": "^0.52.0"
12
- }
13
- },
14
- "node_modules/@anthropic-ai/sdk": {
15
- "version": "0.52.0",
16
- "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.52.0.tgz",
17
- "integrity": "sha512-d4c+fg+xy9e46c8+YnrrgIQR45CZlAi7PwdzIfDXDM6ACxEZli1/fxhURsq30ZpMZy6LvSkr41jGq5aF5TD7rQ==",
18
- "license": "MIT",
19
- "bin": {
20
- "anthropic-ai-sdk": "bin/cli"
21
- }
22
- }
23
- }
2
+ "name": "pi-extension-custom-provider",
3
+ "version": "0.65.2",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "pi-extension-custom-provider",
9
+ "version": "0.65.2",
10
+ "dependencies": {
11
+ "@anthropic-ai/sdk": "^0.52.0"
12
+ }
13
+ },
14
+ "node_modules/@anthropic-ai/sdk": {
15
+ "version": "0.52.0",
16
+ "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.52.0.tgz",
17
+ "integrity": "sha512-d4c+fg+xy9e46c8+YnrrgIQR45CZlAi7PwdzIfDXDM6ACxEZli1/fxhURsq30ZpMZy6LvSkr41jGq5aF5TD7rQ==",
18
+ "license": "MIT",
19
+ "bin": {
20
+ "anthropic-ai-sdk": "bin/cli"
21
+ }
22
+ }
23
+ }
24
24
  }
@@ -1,19 +1,19 @@
1
1
  {
2
- "name": "pi-extension-custom-provider-anthropic",
3
- "private": true,
4
- "version": "1.16.1",
5
- "type": "module",
6
- "scripts": {
7
- "clean": "echo 'nothing to clean'",
8
- "build": "echo 'nothing to build'",
9
- "check": "echo 'nothing to check'"
10
- },
11
- "pi": {
12
- "extensions": [
13
- "./index.ts"
14
- ]
15
- },
16
- "dependencies": {
17
- "@anthropic-ai/sdk": "^0.52.0"
18
- }
2
+ "name": "pi-extension-custom-provider-anthropic",
3
+ "private": true,
4
+ "version": "0.65.2",
5
+ "type": "module",
6
+ "scripts": {
7
+ "clean": "echo 'nothing to clean'",
8
+ "build": "echo 'nothing to build'",
9
+ "check": "echo 'nothing to check'"
10
+ },
11
+ "pi": {
12
+ "extensions": [
13
+ "./index.ts"
14
+ ]
15
+ },
16
+ "dependencies": {
17
+ "@anthropic-ai/sdk": "^0.52.0"
18
+ }
19
19
  }
@@ -1,16 +1,16 @@
1
1
  {
2
- "name": "pi-extension-custom-provider-gitlab-duo",
3
- "private": true,
4
- "version": "1.16.1",
5
- "type": "module",
6
- "scripts": {
7
- "clean": "echo 'nothing to clean'",
8
- "build": "echo 'nothing to build'",
9
- "check": "echo 'nothing to check'"
10
- },
11
- "pi": {
12
- "extensions": [
13
- "./index.ts"
14
- ]
15
- }
2
+ "name": "pi-extension-custom-provider-gitlab-duo",
3
+ "private": true,
4
+ "version": "0.65.2",
5
+ "type": "module",
6
+ "scripts": {
7
+ "clean": "echo 'nothing to clean'",
8
+ "build": "echo 'nothing to build'",
9
+ "check": "echo 'nothing to check'"
10
+ },
11
+ "pi": {
12
+ "extensions": [
13
+ "./index.ts"
14
+ ]
15
+ }
16
16
  }
@@ -1,16 +1,16 @@
1
1
  {
2
- "name": "pi-extension-custom-provider-qwen-cli",
3
- "private": true,
4
- "version": "1.15.1",
5
- "type": "module",
6
- "scripts": {
7
- "clean": "echo 'nothing to clean'",
8
- "build": "echo 'nothing to build'",
9
- "check": "echo 'nothing to check'"
10
- },
11
- "pi": {
12
- "extensions": [
13
- "./index.ts"
14
- ]
15
- }
2
+ "name": "pi-extension-custom-provider-qwen-cli",
3
+ "private": true,
4
+ "version": "0.65.2",
5
+ "type": "module",
6
+ "scripts": {
7
+ "clean": "echo 'nothing to clean'",
8
+ "build": "echo 'nothing to build'",
9
+ "check": "echo 'nothing to check'"
10
+ },
11
+ "pi": {
12
+ "extensions": [
13
+ "./index.ts"
14
+ ]
15
+ }
16
16
  }
@@ -1,31 +1,31 @@
1
1
  {
2
- "name": "pi-extension-with-deps",
3
- "version": "1.29.1",
4
- "lockfileVersion": 3,
5
- "requires": true,
6
- "packages": {
7
- "": {
8
- "name": "pi-extension-with-deps",
9
- "version": "1.29.1",
10
- "dependencies": {
11
- "ms": "^2.1.3"
12
- },
13
- "devDependencies": {
14
- "@types/ms": "^2.1.0"
15
- }
16
- },
17
- "node_modules/@types/ms": {
18
- "version": "2.1.0",
19
- "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz",
20
- "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==",
21
- "dev": true,
22
- "license": "MIT"
23
- },
24
- "node_modules/ms": {
25
- "version": "2.1.3",
26
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
27
- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
28
- "license": "MIT"
29
- }
30
- }
2
+ "name": "pi-extension-with-deps",
3
+ "version": "0.65.2",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "pi-extension-with-deps",
9
+ "version": "0.65.2",
10
+ "dependencies": {
11
+ "ms": "^2.1.3"
12
+ },
13
+ "devDependencies": {
14
+ "@types/ms": "^2.1.0"
15
+ }
16
+ },
17
+ "node_modules/@types/ms": {
18
+ "version": "2.1.0",
19
+ "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz",
20
+ "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==",
21
+ "dev": true,
22
+ "license": "MIT"
23
+ },
24
+ "node_modules/ms": {
25
+ "version": "2.1.3",
26
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
27
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
28
+ "license": "MIT"
29
+ }
30
+ }
31
31
  }
@@ -1,22 +1,22 @@
1
1
  {
2
- "name": "pi-extension-with-deps",
3
- "private": true,
4
- "version": "1.29.1",
5
- "type": "module",
6
- "scripts": {
7
- "clean": "echo 'nothing to clean'",
8
- "build": "echo 'nothing to build'",
9
- "check": "echo 'nothing to check'"
10
- },
11
- "pi": {
12
- "extensions": [
13
- "./index.ts"
14
- ]
15
- },
16
- "dependencies": {
17
- "ms": "^2.1.3"
18
- },
19
- "devDependencies": {
20
- "@types/ms": "^2.1.0"
21
- }
2
+ "name": "pi-extension-with-deps",
3
+ "private": true,
4
+ "version": "0.65.2",
5
+ "type": "module",
6
+ "scripts": {
7
+ "clean": "echo 'nothing to clean'",
8
+ "build": "echo 'nothing to build'",
9
+ "check": "echo 'nothing to check'"
10
+ },
11
+ "pi": {
12
+ "extensions": [
13
+ "./index.ts"
14
+ ]
15
+ },
16
+ "dependencies": {
17
+ "ms": "^2.1.3"
18
+ },
19
+ "devDependencies": {
20
+ "@types/ms": "^2.1.0"
21
+ }
22
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouhuang/pi-coding-agent",
3
- "version": "0.65.1",
3
+ "version": "0.65.2",
4
4
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "piConfig": {
@@ -40,9 +40,9 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@mariozechner/jiti": "^2.6.2",
43
- "@ouhuang/pi-agent-core": "^0.65.1",
44
- "@ouhuang/pi-ai": "^0.65.1",
45
- "@ouhuang/pi-tui": "^0.65.1",
43
+ "@ouhuang/pi-agent-core": "^0.65.2",
44
+ "@ouhuang/pi-ai": "^0.65.2",
45
+ "@ouhuang/pi-tui": "^0.65.2",
46
46
  "@silvia-odwyer/photon-node": "^0.3.4",
47
47
  "ajv": "^8.17.1",
48
48
  "chalk": "^5.5.0",