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