Skip to content

Commit bf2d780

Browse files
author
Zoo (VP)
committed
chore: remove docs and scripts contamination
1 parent 502e7df commit bf2d780

101 files changed

Lines changed: 1246 additions & 12220 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/vscode-e2e/src/suite/tools/terminal-profile.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ suite("Terminal Profile", function () {
6666
"linux",
6767
{
6868
...originalProfiles,
69-
[PROFILE_NAME]: { path: "/bin/bash", args: ["--login"] },
69+
[PROFILE_NAME]: { path: "/bin/bash", args: ["--noprofile", "--norc"] },
7070
},
7171
vscode.ConfigurationTarget.Global,
7272
)
@@ -172,7 +172,8 @@ suite("Terminal Profile", function () {
172172
options.name === "Zoo Code" &&
173173
options.shellPath === "/bin/bash" &&
174174
Array.isArray(options.shellArgs) &&
175-
options.shellArgs.includes("--login")
175+
options.shellArgs.includes("--noprofile") &&
176+
options.shellArgs.includes("--norc")
176177
)
177178
})
178179
assert.ok(profileTerminal, "Expected a Zoo Code terminal created with the configured Bash profile")

‎knip.json‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
{
22
"$schema": "https://unpkg.com/knip@5/schema.json",
3-
"ignore": [
4-
"**/__tests__/**",
5-
"apps/vscode-e2e/**",
6-
"scripts/**",
7-
"apps/cli/scripts/**",
8-
"src/integrations/terminal/CommandScheduler.ts",
9-
"src/integrations/terminal/CommandTrace.ts",
10-
"src/integrations/terminal/shell/types.ts"
11-
],
3+
"ignore": ["**/__tests__/**", "apps/vscode-e2e/**", "scripts/**", "apps/cli/scripts/**"],
124
"ignoreDependencies": ["lint-staged"],
13-
"ignoreBinaries": ["playwright"],
145
"ignoreExportsUsedInFile": true,
156
"playwright": false,
167
"playwright-ct": false,
@@ -22,7 +13,6 @@
2213
"@roo-code/config-typescript",
2314
"@types/node-cache",
2415
"@types/vscode",
25-
"@types/shell-quote",
2616
"@vscode/ripgrep",
2717
"esbuild-wasm",
2818
"tree-sitter-wasms",

‎packages/types/src/__tests__/provider-settings.test.ts‎

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,75 @@ describe("getApiProtocol", () => {
166166
})
167167
})
168168
})
169+
170+
describe("openAiToolStrictMode", () => {
171+
it("should be optional and absent by default", () => {
172+
const result = providerSettingsSchemaDiscriminated.parse({
173+
apiProvider: "openai",
174+
openAiModelId: "test-model",
175+
})
176+
expect(result.apiProvider).toBe("openai")
177+
if (result.apiProvider === "openai") {
178+
expect(result.openAiToolStrictMode).toBeUndefined()
179+
}
180+
})
181+
182+
it("should accept true when provided", () => {
183+
const result = providerSettingsSchemaDiscriminated.parse({
184+
apiProvider: "openai",
185+
openAiModelId: "test-model",
186+
openAiToolStrictMode: true,
187+
})
188+
expect(result.apiProvider).toBe("openai")
189+
if (result.apiProvider === "openai") {
190+
expect(result.openAiToolStrictMode).toBe(true)
191+
}
192+
})
193+
194+
it("should accept false when provided", () => {
195+
const result = providerSettingsSchemaDiscriminated.parse({
196+
apiProvider: "openai",
197+
openAiModelId: "test-model",
198+
openAiToolStrictMode: false,
199+
})
200+
expect(result.apiProvider).toBe("openai")
201+
if (result.apiProvider === "openai") {
202+
expect(result.openAiToolStrictMode).toBe(false)
203+
}
204+
})
205+
206+
it("should not break existing profile deserialization when absent", () => {
207+
const existingProfile = {
208+
apiProvider: "openai" as const,
209+
openAiBaseUrl: "https://api.example.com/v1",
210+
openAiApiKey: "sk-test",
211+
openAiModelId: "gpt-4",
212+
openAiStreamingEnabled: true,
213+
}
214+
const result = providerSettingsSchemaDiscriminated.parse(existingProfile)
215+
expect(result.apiProvider).toBe("openai")
216+
if (result.apiProvider === "openai") {
217+
expect(result.openAiModelId).toBe("gpt-4")
218+
expect(result.openAiToolStrictMode).toBeUndefined()
219+
}
220+
})
221+
222+
it("should only exist on the openai (OpenAI Compatible) provider profile", () => {
223+
const openAiResult = providerSettingsSchemaDiscriminated.parse({
224+
apiProvider: "openai",
225+
openAiToolStrictMode: true,
226+
})
227+
expect(openAiResult.apiProvider).toBe("openai")
228+
if (openAiResult.apiProvider === "openai") {
229+
expect(openAiResult.openAiToolStrictMode).toBe(true)
230+
}
231+
232+
// Anthropic provider should not have this field
233+
const anthropicResult = providerSettingsSchemaDiscriminated.parse({
234+
apiProvider: "anthropic",
235+
apiKey: "sk-test",
236+
})
237+
expect(anthropicResult.apiProvider).toBe("anthropic")
238+
expect((anthropicResult as Record<string, unknown>).openAiToolStrictMode).toBeUndefined()
239+
})
240+
})

0 commit comments

Comments
 (0)