fix(ci): repair protocol drift and audit failures (#63917)

* CI: fix protocol drift and audit failures

* CI: narrow axios release-age exception

* CI: drop ineffective feishu override

* test: fix workspace-root guard mock typing
This commit is contained in:
Altay
2026-04-09 22:07:51 +01:00
committed by GitHub
parent 1e15bb2638
commit 004bab53fa
6 changed files with 35 additions and 13 deletions
@@ -2837,6 +2837,7 @@ public struct ModelChoice: Codable, Sendable {
public let id: String
public let name: String
public let provider: String
public let alias: String?
public let contextwindow: Int?
public let reasoning: Bool?
@@ -2844,12 +2845,14 @@ public struct ModelChoice: Codable, Sendable {
id: String,
name: String,
provider: String,
alias: String?,
contextwindow: Int?,
reasoning: Bool?)
{
self.id = id
self.name = name
self.provider = provider
self.alias = alias
self.contextwindow = contextwindow
self.reasoning = reasoning
}
@@ -2858,6 +2861,7 @@ public struct ModelChoice: Codable, Sendable {
case id
case name
case provider
case alias
case contextwindow = "contextWindow"
case reasoning
}
@@ -2837,6 +2837,7 @@ public struct ModelChoice: Codable, Sendable {
public let id: String
public let name: String
public let provider: String
public let alias: String?
public let contextwindow: Int?
public let reasoning: Bool?
@@ -2844,12 +2845,14 @@ public struct ModelChoice: Codable, Sendable {
id: String,
name: String,
provider: String,
alias: String?,
contextwindow: Int?,
reasoning: Bool?)
{
self.id = id
self.name = name
self.provider = provider
self.alias = alias
self.contextwindow = contextwindow
self.reasoning = reasoning
}
@@ -2858,6 +2861,7 @@ public struct ModelChoice: Codable, Sendable {
case id
case name
case provider
case alias
case contextwindow = "contextWindow"
case reasoning
}
+1 -1
View File
@@ -1431,7 +1431,7 @@
"@anthropic-ai/sdk": "0.81.0",
"hono": "4.12.12",
"@hono/node-server": "1.19.13",
"axios": "1.13.6",
"axios": "1.15.0",
"defu": "6.1.5",
"fast-xml-parser": "5.5.7",
"request": "npm:@cypress/request@3.0.10",
+10 -10
View File
@@ -8,7 +8,7 @@ overrides:
'@anthropic-ai/sdk': 0.81.0
hono: 4.12.12
'@hono/node-server': 1.19.13
axios: 1.13.6
axios: 1.15.0
defu: 6.1.5
fast-xml-parser: 5.5.7
request: npm:@cypress/request@3.0.10
@@ -4277,8 +4277,8 @@ packages:
resolution: {integrity: sha512-zJAaP9zxTcvTHRlejau3ZOY4V7SRpiByf3/dxx2uyKxxor19tpmpV2QRsTKikckwhaPmr2dVpxxMr7jOCYVp5g==}
engines: {node: '>=6.0.0'}
axios@1.13.6:
resolution: {integrity: sha512-ChTCHMouEe2kn713WHbQGcuYrr6fXTBiu460OTwWrWob16g1bXn4vtz07Ope7ewMozJAnEquLk5lWQWtBig9DQ==}
axios@1.15.0:
resolution: {integrity: sha512-wWyJDlAatxk30ZJer+GeCWS209sA42X+N5jU2jy6oHTp7ufw8uzUTVFBX9+wTfAlhiJXGS0Bq7X6efruWjuK9Q==}
b4a@1.8.0:
resolution: {integrity: sha512-qRuSmNSkGQaHwNbM7J78Wwy+ghLEYF1zNrSeMxj4Kgw6y33O3mXcQ6Ie9fRvfU/YnxWkOchPXbaLb73TkIsfdg==}
@@ -8822,7 +8822,7 @@ snapshots:
'@larksuiteoapi/node-sdk@1.60.0':
dependencies:
axios: 1.13.6
axios: 1.15.0
lodash.identity: 3.0.0
lodash.merge: 4.6.2
lodash.pickby: 4.6.0
@@ -9032,7 +9032,7 @@ snapshots:
'@microsoft/teams.api': 2.0.6
'@microsoft/teams.common': 2.0.6
'@microsoft/teams.graph': 2.0.6
axios: 1.13.6
axios: 1.15.0
cors: 2.8.6
express: 5.2.1
jsonwebtoken: 9.0.3
@@ -9046,7 +9046,7 @@ snapshots:
'@microsoft/teams.common@2.0.6':
dependencies:
axios: 1.13.6
axios: 1.15.0
transitivePeerDependencies:
- debug
@@ -9824,7 +9824,7 @@ snapshots:
'@slack/types': 2.20.1
'@slack/web-api': 7.15.0
'@types/express': 5.0.6
axios: 1.13.6
axios: 1.15.0
express: 5.2.1
path-to-regexp: 8.4.0
raw-body: 3.0.2
@@ -9870,7 +9870,7 @@ snapshots:
'@slack/types': 2.20.1
'@types/node': 25.5.2
'@types/retry': 0.12.0
axios: 1.13.6
axios: 1.15.0
eventemitter3: 5.0.4
form-data: 2.5.4
is-electron: 2.2.2
@@ -10836,11 +10836,11 @@ snapshots:
await-to-js@3.0.0: {}
axios@1.13.6:
axios@1.15.0:
dependencies:
follow-redirects: 1.15.11
form-data: 2.5.4
proxy-from-env: 1.1.0
proxy-from-env: 2.1.0
transitivePeerDependencies:
- debug
+1
View File
@@ -19,6 +19,7 @@ minimumReleaseAgeExclude:
- "@typescript/native-preview*"
- "@oxlint/*"
- "@oxfmt/*"
- "axios@1.15.0"
- "sqlite-vec"
- "sqlite-vec-*"
@@ -2,8 +2,13 @@ import path from "node:path";
import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
import type { AnyAgentTool } from "./pi-tools.types.js";
type AssertSandboxPath = typeof import("./sandbox-paths.js").assertSandboxPath;
const mocks = vi.hoisted(() => ({
assertSandboxPath: vi.fn(async () => ({ resolved: "/tmp/root", relative: "" })),
assertSandboxPath: vi.fn<AssertSandboxPath>(async () => ({
resolved: "/tmp/root",
relative: "",
})),
}));
vi.mock("./sandbox-paths.js", () => ({
@@ -31,11 +36,19 @@ let wrapToolWorkspaceRootGuardWithOptions: typeof import("./pi-tools.read.js").w
describe("wrapToolWorkspaceRootGuardWithOptions", () => {
const root = "/tmp/root";
const assertSandboxPathImpl: AssertSandboxPath = async ({ filePath }) => ({
resolved:
filePath.startsWith("file://") || path.isAbsolute(filePath)
? filePath
: path.resolve(root, filePath),
relative: "",
});
beforeAll(loadModule);
beforeEach(() => {
mocks.assertSandboxPath.mockClear();
mocks.assertSandboxPath.mockReset();
mocks.assertSandboxPath.mockImplementation(assertSandboxPathImpl);
});
it("maps container workspace paths to host workspace root", async () => {