chore(coding-agent): switch back from fork to upstream jiti 2.7 (#4244)

This commit is contained in:
Pooya Parsa
2026-05-07 01:04:51 +02:00
committed by GitHub
parent 88619669e2
commit 50993d743d
4 changed files with 9 additions and 34 deletions

36
package-lock.json generated
View File

@@ -16,7 +16,6 @@
"packages/coding-agent/examples/extensions/sandbox" "packages/coding-agent/examples/extensions/sandbox"
], ],
"dependencies": { "dependencies": {
"@mariozechner/jiti": "^2.6.5",
"@mariozechner/pi-coding-agent": "^0.30.2", "@mariozechner/pi-coding-agent": "^0.30.2",
"get-east-asian-width": "^1.4.0" "get-east-asian-width": "^1.4.0"
}, },
@@ -27,6 +26,7 @@
"@typescript/native-preview": "7.0.0-dev.20260120.1", "@typescript/native-preview": "7.0.0-dev.20260120.1",
"concurrently": "^9.2.1", "concurrently": "^9.2.1",
"husky": "^9.1.7", "husky": "^9.1.7",
"jiti": "^2.7.0",
"shx": "^0.4.0", "shx": "^0.4.0",
"tsx": "^4.20.3", "tsx": "^4.20.3",
"typescript": "^5.9.2" "typescript": "^5.9.2"
@@ -1783,19 +1783,6 @@
"node": ">= 10" "node": ">= 10"
} }
}, },
"node_modules/@mariozechner/jiti": {
"version": "2.6.5",
"resolved": "https://registry.npmjs.org/@mariozechner/jiti/-/jiti-2.6.5.tgz",
"integrity": "sha512-faGUlTcXka5l7rv0lP3K3vGW/ejRuOS24RR2aSFWREUQqzjgdsuWNo/IiPqL3kWRGt6Ahl2+qcDAwtdeWeuGUw==",
"license": "MIT",
"dependencies": {
"std-env": "^3.10.0",
"yoctocolors": "^2.1.2"
},
"bin": {
"jiti": "lib/jiti-cli.mjs"
}
},
"node_modules/@mariozechner/mini-lit": { "node_modules/@mariozechner/mini-lit": {
"version": "0.2.1", "version": "0.2.1",
"resolved": "https://registry.npmjs.org/@mariozechner/mini-lit/-/mini-lit-0.2.1.tgz", "resolved": "https://registry.npmjs.org/@mariozechner/mini-lit/-/mini-lit-0.2.1.tgz",
@@ -5772,9 +5759,9 @@
"license": "ISC" "license": "ISC"
}, },
"node_modules/jiti": { "node_modules/jiti": {
"version": "2.6.1", "version": "2.7.0",
"resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz", "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz",
"integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==", "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==",
"license": "MIT", "license": "MIT",
"bin": { "bin": {
"jiti": "lib/jiti-cli.mjs" "jiti": "lib/jiti-cli.mjs"
@@ -7370,6 +7357,7 @@
"version": "3.10.0", "version": "3.10.0",
"resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz", "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz",
"integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==", "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==",
"dev": true,
"license": "MIT" "license": "MIT"
}, },
"node_modules/string_decoder": { "node_modules/string_decoder": {
@@ -8266,18 +8254,6 @@
"fd-slicer": "~1.1.0" "fd-slicer": "~1.1.0"
} }
}, },
"node_modules/yoctocolors": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/yoctocolors/-/yoctocolors-2.1.2.tgz",
"integrity": "sha512-CzhO+pFNo8ajLM2d2IW/R93ipy99LWjtwblvC1RsoSUMZgyLbYFr221TnSNT7GjGdYui6P459mw9JH/g/zW2ug==",
"license": "MIT",
"engines": {
"node": ">=18"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/zod": { "node_modules/zod": {
"version": "4.4.3", "version": "4.4.3",
"resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz", "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",
@@ -8381,7 +8357,6 @@
"version": "0.73.0", "version": "0.73.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@mariozechner/jiti": "^2.6.2",
"@mariozechner/pi-agent-core": "^0.73.0", "@mariozechner/pi-agent-core": "^0.73.0",
"@mariozechner/pi-ai": "^0.73.0", "@mariozechner/pi-ai": "^0.73.0",
"@mariozechner/pi-tui": "^0.73.0", "@mariozechner/pi-tui": "^0.73.0",
@@ -8394,6 +8369,7 @@
"glob": "^13.0.1", "glob": "^13.0.1",
"hosted-git-info": "^9.0.2", "hosted-git-info": "^9.0.2",
"ignore": "^7.0.5", "ignore": "^7.0.5",
"jiti": "^2.7.0",
"marked": "^15.0.12", "marked": "^15.0.12",
"minimatch": "^10.2.3", "minimatch": "^10.2.3",
"proper-lockfile": "^4.1.2", "proper-lockfile": "^4.1.2",

View File

@@ -39,6 +39,7 @@
"@typescript/native-preview": "7.0.0-dev.20260120.1", "@typescript/native-preview": "7.0.0-dev.20260120.1",
"concurrently": "^9.2.1", "concurrently": "^9.2.1",
"husky": "^9.1.7", "husky": "^9.1.7",
"jiti": "^2.7.0",
"tsx": "^4.20.3", "tsx": "^4.20.3",
"typescript": "^5.9.2", "typescript": "^5.9.2",
"shx": "^0.4.0" "shx": "^0.4.0"
@@ -48,7 +49,6 @@
}, },
"version": "0.0.3", "version": "0.0.3",
"dependencies": { "dependencies": {
"@mariozechner/jiti": "^2.6.5",
"@mariozechner/pi-coding-agent": "^0.30.2", "@mariozechner/pi-coding-agent": "^0.30.2",
"get-east-asian-width": "^1.4.0" "get-east-asian-width": "^1.4.0"
}, },

View File

@@ -38,7 +38,6 @@
"prepublishOnly": "npm run clean && npm run build" "prepublishOnly": "npm run clean && npm run build"
}, },
"dependencies": { "dependencies": {
"@mariozechner/jiti": "^2.6.2",
"@mariozechner/pi-agent-core": "^0.73.0", "@mariozechner/pi-agent-core": "^0.73.0",
"@mariozechner/pi-ai": "^0.73.0", "@mariozechner/pi-ai": "^0.73.0",
"@mariozechner/pi-tui": "^0.73.0", "@mariozechner/pi-tui": "^0.73.0",
@@ -51,6 +50,7 @@
"glob": "^13.0.1", "glob": "^13.0.1",
"hosted-git-info": "^9.0.2", "hosted-git-info": "^9.0.2",
"ignore": "^7.0.5", "ignore": "^7.0.5",
"jiti": "^2.7.0",
"marked": "^15.0.12", "marked": "^15.0.12",
"minimatch": "^10.2.3", "minimatch": "^10.2.3",
"proper-lockfile": "^4.1.2", "proper-lockfile": "^4.1.2",

View File

@@ -1,7 +1,6 @@
/** /**
* Extension loader - loads TypeScript extension modules using jiti. * Extension loader - loads TypeScript extension modules using jiti.
* *
* Uses @mariozechner/jiti fork with virtualModules support for compiled Bun binaries.
*/ */
import * as fs from "node:fs"; import * as fs from "node:fs";
@@ -9,12 +8,12 @@ import { createRequire } from "node:module";
import * as os from "node:os"; import * as os from "node:os";
import * as path from "node:path"; import * as path from "node:path";
import { fileURLToPath } from "node:url"; import { fileURLToPath } from "node:url";
import { createJiti } from "@mariozechner/jiti";
import * as _bundledPiAgentCore from "@mariozechner/pi-agent-core"; import * as _bundledPiAgentCore from "@mariozechner/pi-agent-core";
import * as _bundledPiAi from "@mariozechner/pi-ai"; import * as _bundledPiAi from "@mariozechner/pi-ai";
import * as _bundledPiAiOauth from "@mariozechner/pi-ai/oauth"; import * as _bundledPiAiOauth from "@mariozechner/pi-ai/oauth";
import type { KeyId } from "@mariozechner/pi-tui"; import type { KeyId } from "@mariozechner/pi-tui";
import * as _bundledPiTui from "@mariozechner/pi-tui"; import * as _bundledPiTui from "@mariozechner/pi-tui";
import { createJiti } from "jiti/static";
// Static imports of packages that extensions may use. // Static imports of packages that extensions may use.
// These MUST be static so Bun bundles them into the compiled binary. // These MUST be static so Bun bundles them into the compiled binary.
// The virtualModules option then makes them available to extensions. // The virtualModules option then makes them available to extensions.