chore: upgrade pi dependencies

This commit is contained in:
Erik Kotsiuba
2026-05-03 21:54:08 +02:00
parent cbabd44acc
commit f86f3a578e
4 changed files with 70 additions and 49 deletions
+7 -7
View File
@@ -91,8 +91,8 @@
"@biomejs/biome": "2.4.12",
"@commitlint/cli": "^19.8.1",
"@commitlint/config-conventional": "^19.8.1",
"@mariozechner/pi-coding-agent": "0.69.0",
"@mariozechner/pi-tui": "0.69.0",
"@mariozechner/pi-coding-agent": "0.72.1",
"@mariozechner/pi-tui": "0.72.1",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^13.0.1",
"@semantic-release/git": "^10.0.1",
@@ -107,7 +107,7 @@
"semantic-release": "^25.0.3",
"typescript": "6.0.2",
"ultracite": "7.6.0",
"@mariozechner/pi-ai": "0.69.0"
"@mariozechner/pi-ai": "0.72.1"
},
"config": {
"commitizen": {
@@ -116,10 +116,10 @@
},
"pnpm": {
"overrides": {
"@mariozechner/pi-agent-core": "0.69.0",
"@mariozechner/pi-ai": "0.69.0",
"@mariozechner/pi-tui": "0.69.0",
"@mariozechner/pi-coding-agent": "0.69.0"
"@mariozechner/pi-agent-core": "0.72.1",
"@mariozechner/pi-ai": "0.72.1",
"@mariozechner/pi-tui": "0.72.1",
"@mariozechner/pi-coding-agent": "0.72.1"
},
"ignoredBuiltDependencies": [
"lefthook"
+38 -38
View File
@@ -5,10 +5,10 @@ settings:
excludeLinksFromLockfile: false
overrides:
'@mariozechner/pi-agent-core': 0.69.0
'@mariozechner/pi-ai': 0.69.0
'@mariozechner/pi-tui': 0.69.0
'@mariozechner/pi-coding-agent': 0.69.0
'@mariozechner/pi-agent-core': 0.72.1
'@mariozechner/pi-ai': 0.72.1
'@mariozechner/pi-tui': 0.72.1
'@mariozechner/pi-coding-agent': 0.72.1
importers:
@@ -24,14 +24,14 @@ importers:
specifier: ^19.8.1
version: 19.8.1
'@mariozechner/pi-ai':
specifier: 0.69.0
version: 0.69.0(ws@8.20.0)(zod@4.3.6)
specifier: 0.72.1
version: 0.72.1(ws@8.20.0)(zod@4.3.6)
'@mariozechner/pi-coding-agent':
specifier: 0.69.0
version: 0.69.0(ws@8.20.0)(zod@4.3.6)
specifier: 0.72.1
version: 0.72.1(ws@8.20.0)(zod@4.3.6)
'@mariozechner/pi-tui':
specifier: 0.69.0
version: 0.69.0
specifier: 0.72.1
version: 0.72.1
'@semantic-release/changelog':
specifier: ^6.0.3
version: 6.0.3(semantic-release@25.0.3(typescript@6.0.2))
@@ -89,8 +89,8 @@ packages:
'@actions/io@3.0.2':
resolution: {integrity: sha512-nRBchcMM+QK1pdjO7/idu86rbJI5YHUKCvKs0KxnSYbVe3F51UfGxuZX4Qy/fWlp6l7gWFwIkrOzN+oUK03kfw==}
'@anthropic-ai/sdk@0.90.0':
resolution: {integrity: sha512-MzZtPabJF1b0FTDl6Z6H5ljphPwACLGP13lu8MTiB8jXaW/YXlpOp+Po2cVou3MPM5+f5toyLnul9whKCy7fBg==}
'@anthropic-ai/sdk@0.91.1':
resolution: {integrity: sha512-LAmu761tSN9r66ixvmciswUj/ZC+1Q4iAfpedTfSVLeswRwnY3n2Nb6Tsk+cLPP28aLOPWeMgIuTuCcMC6W/iw==}
hasBin: true
peerDependencies:
zod: ^3.25.0 || ^4.0.0
@@ -479,30 +479,30 @@ packages:
cpu: [x64]
os: [win32]
'@mariozechner/clipboard@0.3.2':
resolution: {integrity: sha512-IHQpksNjo7EAtGuHFU+tbWDp5LarH3HU/8WiB9O70ZEoBPHOg0/6afwSLK0QyNMMmx4Bpi/zl6+DcBXe95nWYA==}
'@mariozechner/clipboard@0.3.5':
resolution: {integrity: sha512-D3F+UrU9CR7roJt0zDLp6Oc+4/KlLDIrN4frH+6V90SJNW2KKUec1oCQIPaaDjCqeOsQyX9dyqYbImIQIM45PA==}
engines: {node: '>= 10'}
'@mariozechner/jiti@2.6.5':
resolution: {integrity: sha512-faGUlTcXka5l7rv0lP3K3vGW/ejRuOS24RR2aSFWREUQqzjgdsuWNo/IiPqL3kWRGt6Ahl2+qcDAwtdeWeuGUw==}
hasBin: true
'@mariozechner/pi-agent-core@0.69.0':
resolution: {integrity: sha512-dYZjee7QEIwVVbDGCGriiLjDT34IdMlXMjMp4drVKcLEuVc+BztyODwu3w4ZORVvwaySGGlF9UALjJKUVoXiug==}
'@mariozechner/pi-agent-core@0.72.1':
resolution: {integrity: sha512-Z5XH9mUDsBymh7Prtk5Eun4Cs+s9C3uzynug+oWAjzQESjjnCuy7KU6Ek8E9Eg+b9yroCwVw2ItLDxp2E3vYjA==}
engines: {node: '>=20.0.0'}
'@mariozechner/pi-ai@0.69.0':
resolution: {integrity: sha512-bl838sr57zx/apkiTeNPFQgbBkGXN4HHhm2oghzSRohJIBrR+H001bTeco7Osuke+EZTxO3V5Aev2qlZdUa2xw==}
'@mariozechner/pi-ai@0.72.1':
resolution: {integrity: sha512-mOq71Pjnu72xxzwrh52VIiNwt+/a+Wpa11k5segi01/zTZJt8eMDc5Q2z6GhczYMr5+6EpZ8T+BaeHqq0jk5ag==}
engines: {node: '>=20.0.0'}
hasBin: true
'@mariozechner/pi-coding-agent@0.69.0':
resolution: {integrity: sha512-/EFn43RO2TtMgZI4fMXNepIvbWm2GqhhaLIHBkrO7tRbRCzgvDYkw9sMLKhdf1Ihom2CjC3T/fzQRIPasRSIrQ==}
'@mariozechner/pi-coding-agent@0.72.1':
resolution: {integrity: sha512-gKApiLfAYpvPnWThvwXrLjZIhsziSSUKBph7DHCy/1IomuIGN1MTxS/9ZtcuFqPy3/+VfEUOKegGlY6m+CRNlA==}
engines: {node: '>=20.6.0'}
hasBin: true
'@mariozechner/pi-tui@0.69.0':
resolution: {integrity: sha512-/82SOMzCA1srivwfcSO8r9XLdAgJNcgpWzNZY33IqqvGev8Q4iWY/hA1wAkLB0l7PKJJ4Dh57xS4IGHbyVM7lA==}
'@mariozechner/pi-tui@0.72.1':
resolution: {integrity: sha512-KjeqzMQp4vafomfkvI8HKv5/52PqRP5BmlowGC8WKyOaB+u0UkkTdfM5U1Ui3ty2gA7FOfglVRiyvcitiWwvMQ==}
engines: {node: '>=20.0.0'}
'@mistralai/mistralai@2.2.1':
@@ -2704,8 +2704,8 @@ packages:
util-deprecate@1.0.2:
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
uuid@11.1.0:
resolution: {integrity: sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==}
uuid@14.0.0:
resolution: {integrity: sha512-Qo+uWgilfSmAhXCMav1uYFynlQO7fMFiMVZsQqZRMIXp0O7rR7qjkj+cPvBHLgBqi960QCoo/PH2/6ZtVqKvrg==}
hasBin: true
validate-npm-package-license@3.0.4:
@@ -2834,7 +2834,7 @@ snapshots:
'@actions/io@3.0.2': {}
'@anthropic-ai/sdk@0.90.0(zod@4.3.6)':
'@anthropic-ai/sdk@0.91.1(zod@4.3.6)':
dependencies:
json-schema-to-ts: 3.1.1
optionalDependencies:
@@ -3482,7 +3482,7 @@ snapshots:
'@mariozechner/clipboard-win32-x64-msvc@0.3.2':
optional: true
'@mariozechner/clipboard@0.3.2':
'@mariozechner/clipboard@0.3.5':
optionalDependencies:
'@mariozechner/clipboard-darwin-arm64': 0.3.2
'@mariozechner/clipboard-darwin-universal': 0.3.2
@@ -3501,9 +3501,9 @@ snapshots:
std-env: 3.10.0
yoctocolors: 2.1.2
'@mariozechner/pi-agent-core@0.69.0(ws@8.20.0)(zod@4.3.6)':
'@mariozechner/pi-agent-core@0.72.1(ws@8.20.0)(zod@4.3.6)':
dependencies:
'@mariozechner/pi-ai': 0.69.0(ws@8.20.0)(zod@4.3.6)
'@mariozechner/pi-ai': 0.72.1(ws@8.20.0)(zod@4.3.6)
typebox: 1.1.32
transitivePeerDependencies:
- '@modelcontextprotocol/sdk'
@@ -3514,9 +3514,9 @@ snapshots:
- ws
- zod
'@mariozechner/pi-ai@0.69.0(ws@8.20.0)(zod@4.3.6)':
'@mariozechner/pi-ai@0.72.1(ws@8.20.0)(zod@4.3.6)':
dependencies:
'@anthropic-ai/sdk': 0.90.0(zod@4.3.6)
'@anthropic-ai/sdk': 0.91.1(zod@4.3.6)
'@aws-sdk/client-bedrock-runtime': 3.1030.0
'@google/genai': 1.50.1
'@mistralai/mistralai': 2.2.1
@@ -3536,12 +3536,12 @@ snapshots:
- ws
- zod
'@mariozechner/pi-coding-agent@0.69.0(ws@8.20.0)(zod@4.3.6)':
'@mariozechner/pi-coding-agent@0.72.1(ws@8.20.0)(zod@4.3.6)':
dependencies:
'@mariozechner/jiti': 2.6.5
'@mariozechner/pi-agent-core': 0.69.0(ws@8.20.0)(zod@4.3.6)
'@mariozechner/pi-ai': 0.69.0(ws@8.20.0)(zod@4.3.6)
'@mariozechner/pi-tui': 0.69.0
'@mariozechner/pi-agent-core': 0.72.1(ws@8.20.0)(zod@4.3.6)
'@mariozechner/pi-ai': 0.72.1(ws@8.20.0)(zod@4.3.6)
'@mariozechner/pi-tui': 0.72.1
'@silvia-odwyer/photon-node': 0.3.4
chalk: 5.6.2
cli-highlight: 2.1.11
@@ -3557,10 +3557,10 @@ snapshots:
strip-ansi: 7.2.0
typebox: 1.1.32
undici: 7.25.0
uuid: 11.1.0
uuid: 14.0.0
yaml: 2.8.3
optionalDependencies:
'@mariozechner/clipboard': 0.3.2
'@mariozechner/clipboard': 0.3.5
transitivePeerDependencies:
- '@modelcontextprotocol/sdk'
- aws-crt
@@ -3570,7 +3570,7 @@ snapshots:
- ws
- zod
'@mariozechner/pi-tui@0.69.0':
'@mariozechner/pi-tui@0.72.1':
dependencies:
'@types/mime-types': 2.1.4
chalk: 5.6.2
@@ -5846,7 +5846,7 @@ snapshots:
util-deprecate@1.0.2: {}
uuid@11.1.0: {}
uuid@14.0.0: {}
validate-npm-package-license@3.0.4:
dependencies:
+18 -2
View File
@@ -124,7 +124,9 @@ async function extractAndValidateAnswerParams(
selected: ExtractionSelection,
config: Awaited<ReturnType<ReturnType<typeof getAskConfigStore>["getConfig"]>>
): Promise<AskParams | undefined> {
const extraction = await runExtractionUi(ctx, assistant, selected, config);
const extraction = await withHiddenWorkingRow(ctx, () =>
runExtractionUi(ctx, assistant, selected, config)
);
if ("cancelled" in extraction) {
ctx.ui.notify("Question extraction cancelled.", "info");
return;
@@ -267,7 +269,9 @@ async function runAskAndSendSubmittedResult(
params: AskParams,
options: { allowFreeform: boolean }
): Promise<void> {
const result = await runAskFlow(ctx, params, options);
const result = await withHiddenWorkingRow(ctx, () =>
runAskFlow(ctx, params, options)
);
if (result.cancelled) {
ctx.ui.notify("Ask form cancelled.", "info");
return;
@@ -275,6 +279,18 @@ async function runAskAndSendSubmittedResult(
sendAskResult(pi, result, ctx);
}
async function withHiddenWorkingRow<T>(
ctx: ExtensionContext,
run: () => Promise<T>
): Promise<T> {
ctx.ui.setWorkingVisible(false);
try {
return await run();
} finally {
ctx.ui.setWorkingVisible(true);
}
}
function sendAskResult(
pi: Pick<ExtensionAPI, "sendUserMessage">,
result: AskResult,
+5
View File
@@ -60,6 +60,11 @@ async function executeAskTool(
if (!ctx.hasUI) {
return nonInteractiveResponse(validation.state);
}
ctx.ui.setWorkingVisible(false);
try {
const result = await runAskFlow(ctx, params);
return successfulResponse(result);
} finally {
ctx.ui.setWorkingVisible(true);
}
}