mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 11:50:06 +00:00
pi-coding-agent: 0.87.1 -> 0.99.1
This commit is contained in:
@@ -13,16 +13,16 @@
|
||||
}:
|
||||
buildNpmPackage (finalAttrs: {
|
||||
pname = "pi-coding-agent";
|
||||
version = "0.87.1";
|
||||
version = "0.99.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "earendil-works";
|
||||
repo = "pi";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-GUhlq6t+l6iiViOZ0bkV28v3ZDqcLvEwpZpYZ5JAyDk=";
|
||||
hash = "sha256-bLDEt1sKiS6ReQ6Uch0tOSLU8aykKl3UwN7WVkRE9Og=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-JBIYoP2vvRNz1HONNvDJ1U3c+nmCJ7/VgNthRTkrkIA=";
|
||||
npmDepsHash = "sha256-eKtv1fN7X4ukuYbsj7hduGZ3W2FdmO/fAnoaWJp7MQQ=";
|
||||
|
||||
# The provider model catalog (packages/ai/src/providers/data/) is generated by
|
||||
# a network fetch (models.dev plus provider APIs) and is gitignored upstream,
|
||||
@@ -31,7 +31,7 @@ buildNpmPackage (finalAttrs: {
|
||||
# under dist/providers/data/. Bump this hash alongside version.
|
||||
modelData = fetchurl {
|
||||
url = "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-${finalAttrs.version}.tgz";
|
||||
hash = "sha256-NbRDLyfMJmX4a+67mvajmxJRlwiDwwRL2L5PToxzHKA=";
|
||||
hash = "sha256-+fRGkhV9C/VnnEoXMEoxACgjHX2q6q6jtzJS9LeiZNM=";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
@@ -51,22 +51,12 @@ buildNpmPackage (finalAttrs: {
|
||||
makeBinaryWrapper
|
||||
];
|
||||
|
||||
# Build workspace dependencies in order, then the coding-agent.
|
||||
# We invoke tsgo directly for workspace deps to skip pi-ai's
|
||||
# generate-models script, which requires network access; the model
|
||||
# catalog it would produce is supplied via modelData above.
|
||||
# Build workspace dependencies in order, then the coding-agent, using the
|
||||
# model catalog supplied via modelData instead of fetching it during build.
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
npx tsgo -p packages/chord/tsconfig.build.json
|
||||
npx tsgo -p packages/tui/tsconfig.build.json
|
||||
npx tsgo -p packages/telemetry/tsconfig.build.json
|
||||
npx tsgo -p packages/ai/tsconfig.build.json
|
||||
npx tsgo -p packages/agent/tsconfig.build.json
|
||||
npx tsgo -p packages/protocol/tsconfig.build.json
|
||||
npx tsgo -p packages/client/tsconfig.build.json
|
||||
npx tsgo -p packages/server/tsconfig.build.json
|
||||
npm run build --workspace=packages/coding-agent
|
||||
npm run build:offline
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
@@ -88,6 +78,8 @@ buildNpmPackage (finalAttrs: {
|
||||
@earendil-works/pi-ai:packages/ai \
|
||||
@earendil-works/pi-agent-core:packages/agent \
|
||||
@earendil-works/pi-client:packages/client \
|
||||
@earendil-works/pi-codemode:packages/codemode \
|
||||
@earendil-works/pi-mcp:packages/mcp \
|
||||
@earendil-works/pi-protocol:packages/protocol \
|
||||
@earendil-works/pi-telemetry:packages/telemetry \
|
||||
@earendil-works/pi-tui:packages/tui; do
|
||||
|
||||
Reference in New Issue
Block a user