mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-28 19:11:03 +08:00
refactor: renegare sdk
This commit is contained in:
@@ -598,7 +598,7 @@ Options:
|
||||
--path directory path to generate the agent file [string]
|
||||
--description what the agent should do [string]
|
||||
--mode agent mode [string] [choices: "all", "primary", "subagent"]
|
||||
--permissions, --tools comma-separated list of permissions to allow (default: all). Available: "bash, read, edit, glob, grep, webfetch, task, todowrite, websearch, codesearch, lsp, skill" [string]
|
||||
--permissions, --tools comma-separated list of permissions to allow (default: all). Available: "bash, read, edit, glob, grep, webfetch, task, todowrite, websearch, lsp, skill" [string]
|
||||
-m, --model model to use in the format of provider/model [string]
|
||||
```
|
||||
|
||||
|
||||
@@ -51,5 +51,4 @@
|
||||
background: var(--background-stronger);
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -294,9 +294,7 @@ if (flaky.length > 0) {
|
||||
if (process.env.GITHUB_ACTIONS === "true") {
|
||||
for (const r of sorted) {
|
||||
const repo = `packages/opencode/test/${r.file}`
|
||||
console.log(
|
||||
`::warning file=${repo},title=Flaky test file::passed on attempt ${r.attempts} of ${retries + 1}`,
|
||||
)
|
||||
console.log(`::warning file=${repo},title=Flaky test file::passed on attempt ${r.attempts} of ${retries + 1}`)
|
||||
}
|
||||
|
||||
const summary = process.env.GITHUB_STEP_SUMMARY
|
||||
|
||||
@@ -375,7 +375,9 @@ export const ProvidersLoginCommand = cmd({
|
||||
existingProviders: providers,
|
||||
disabled,
|
||||
enabled,
|
||||
providerNames: Object.fromEntries(Object.entries(config.provider ?? {}).flatMap(([id, p]) => (p ? [[id, p.name]] : []))), // kilocode_change
|
||||
providerNames: Object.fromEntries(
|
||||
Object.entries(config.provider ?? {}).flatMap(([id, p]) => (p ? [[id, p.name]] : [])),
|
||||
), // kilocode_change
|
||||
})
|
||||
const options = [
|
||||
...pipe(
|
||||
|
||||
@@ -188,9 +188,7 @@ export const { use: useLocal, provider: LocalProvider } = createSimpleContext({
|
||||
favorite: modelStore.favorite,
|
||||
variant: modelStore.variant,
|
||||
}
|
||||
state.writer = state.writer
|
||||
.then(() => Filesystem.writeJson(filePath, data))
|
||||
.catch(() => {})
|
||||
state.writer = state.writer.then(() => Filesystem.writeJson(filePath, data)).catch(() => {})
|
||||
// kilocode_change end
|
||||
}
|
||||
|
||||
|
||||
@@ -169,9 +169,7 @@ export function DialogProvider(props: ParentProps) {
|
||||
evt.preventDefault()
|
||||
evt.stopPropagation()
|
||||
}}
|
||||
onMouseUp={
|
||||
!Flag.KILO_EXPERIMENTAL_DISABLE_COPY_ON_SELECT ? () => Selection.copy(renderer, toast) : undefined
|
||||
}
|
||||
onMouseUp={!Flag.KILO_EXPERIMENTAL_DISABLE_COPY_ON_SELECT ? () => Selection.copy(renderer, toast) : undefined}
|
||||
>
|
||||
<Show when={value.stack.length}>
|
||||
<Dialog onClose={() => value.clear()} size={value.size}>
|
||||
|
||||
@@ -225,7 +225,8 @@ export const Info = Schema.Struct({
|
||||
[Schema.Record(Schema.String, ConfigAgent.Info)],
|
||||
),
|
||||
).annotate({ description: "Agent configuration, see https://opencode.ai/docs/agents" }),
|
||||
provider: Schema.optional(Schema.Record(Schema.String, Schema.NullOr(ConfigProvider.Info))).annotate({ // kilocode_change - nullable for delete sentinel
|
||||
provider: Schema.optional(Schema.Record(Schema.String, Schema.NullOr(ConfigProvider.Info))).annotate({
|
||||
// kilocode_change - nullable for delete sentinel
|
||||
description: "Custom provider configurations and model overrides",
|
||||
}),
|
||||
mcp: Schema.optional(
|
||||
|
||||
@@ -16,7 +16,8 @@ import { useDialog } from "@tui/ui/dialog"
|
||||
import { useKeybind } from "@tui/context/keybind"
|
||||
import { useTheme } from "@tui/context/theme"
|
||||
import { useToast } from "@tui/ui/toast"
|
||||
import { Locale, Keybind } from "@/util"
|
||||
import { Locale } from "@/util/locale"
|
||||
import { Keybind } from "@/util/keybind"
|
||||
import { createMemo, createSignal, onMount } from "solid-js"
|
||||
import type { ClawChat } from "./hooks"
|
||||
|
||||
|
||||
@@ -9,10 +9,6 @@ function rules(permission: string, ruleset?: Ruleset) {
|
||||
|
||||
export namespace ExternalDirectoryPermission {
|
||||
export function evaluate(permission: string, pattern: string, ...sets: Array<Ruleset | undefined>) {
|
||||
return evalRule(
|
||||
permission,
|
||||
pattern,
|
||||
...sets.map((set) => rules(permission, set)),
|
||||
)
|
||||
return evalRule(permission, pattern, ...sets.map((set) => rules(permission, set)))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,21 +93,21 @@ async function mount() {
|
||||
<KVProvider>
|
||||
{/* kilocode_change start */}
|
||||
<ToastProvider>
|
||||
{/* kilocode_change end */}
|
||||
<SDKProvider url="http://test" directory={directory} fetch={calls.fetch} events={eventSource()}>
|
||||
<ProjectProvider>
|
||||
<SyncProvider>
|
||||
<Probe
|
||||
onReady={(ctx) => {
|
||||
sync = ctx.sync
|
||||
kv = ctx.kv
|
||||
done()
|
||||
}}
|
||||
/>
|
||||
</SyncProvider>
|
||||
</ProjectProvider>
|
||||
</SDKProvider>
|
||||
{/* kilocode_change start */}
|
||||
{/* kilocode_change end */}
|
||||
<SDKProvider url="http://test" directory={directory} fetch={calls.fetch} events={eventSource()}>
|
||||
<ProjectProvider>
|
||||
<SyncProvider>
|
||||
<Probe
|
||||
onReady={(ctx) => {
|
||||
sync = ctx.sync
|
||||
kv = ctx.kv
|
||||
done()
|
||||
}}
|
||||
/>
|
||||
</SyncProvider>
|
||||
</ProjectProvider>
|
||||
</SDKProvider>
|
||||
{/* kilocode_change start */}
|
||||
</ToastProvider>
|
||||
{/* kilocode_change end */}
|
||||
</KVProvider>
|
||||
|
||||
@@ -187,12 +187,12 @@ describe("HttpApi server", () => {
|
||||
// and is not enabled in any production client (VS Code extension, JetBrains, TUI, desktop all use Hono).
|
||||
// Follow-up: migrate Kilo overlay routes onto the Effect HttpApi bridge.
|
||||
test.skip("covers every generated OpenAPI route with Effect HttpApi contracts", async () => {
|
||||
const honoRoutes = openApiRouteKeys(await Server.openapi())
|
||||
const effectRoutes = openApiRouteKeys(effectOpenApi())
|
||||
const honoRoutes = openApiRouteKeys(await Server.openapi())
|
||||
const effectRoutes = openApiRouteKeys(effectOpenApi())
|
||||
|
||||
expect(honoRoutes.filter((route) => !effectRoutes.includes(route))).toEqual([])
|
||||
expect(effectRoutes.filter((route) => !honoRoutes.includes(route))).toEqual([])
|
||||
})
|
||||
expect(honoRoutes.filter((route) => !effectRoutes.includes(route))).toEqual([])
|
||||
expect(effectRoutes.filter((route) => !honoRoutes.includes(route))).toEqual([])
|
||||
})
|
||||
|
||||
test.skip("matches generated OpenAPI route parameters", async () => {
|
||||
const hono = openApiParameters(await Server.openapi())
|
||||
|
||||
@@ -758,7 +758,8 @@ it.live(
|
||||
3_000,
|
||||
)
|
||||
|
||||
unix( // kilocode_change - skip flaky cancel test on Windows CI
|
||||
unix(
|
||||
// kilocode_change - skip flaky cancel test on Windows CI
|
||||
"cancel records MessageAbortedError on interrupted process",
|
||||
() =>
|
||||
provideTmpdirServer(
|
||||
|
||||
+297
-103
@@ -1339,10 +1339,14 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"rows": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"exclusiveMinimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"cols": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"exclusiveMinimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["rows", "cols"]
|
||||
@@ -2582,7 +2586,7 @@
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Filter sessions by project directory"
|
||||
"description": "Filter sessions by directory"
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
@@ -2591,6 +2595,23 @@
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "scope",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": ["project"]
|
||||
},
|
||||
"description": "List all sessions for the current project"
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "path",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Filter sessions by project-relative path"
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "roots",
|
||||
@@ -6055,10 +6076,14 @@
|
||||
"required": ["text"]
|
||||
},
|
||||
"line_number": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"absolute_offset": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"submatches": {
|
||||
"type": "array",
|
||||
@@ -6075,10 +6100,14 @@
|
||||
"required": ["text"]
|
||||
},
|
||||
"start": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"end": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["match", "start", "end"]
|
||||
@@ -7361,7 +7390,9 @@
|
||||
},
|
||||
"duration": {
|
||||
"description": "Duration in milliseconds",
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"exclusiveMinimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["message", "variant"]
|
||||
@@ -10911,13 +10942,19 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"created": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"updated": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"initialized": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["created", "updated"]
|
||||
@@ -11347,7 +11384,9 @@
|
||||
},
|
||||
"duration": {
|
||||
"description": "Duration in milliseconds",
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"exclusiveMinimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["message", "variant"]
|
||||
@@ -11709,10 +11748,14 @@
|
||||
"type": "string"
|
||||
},
|
||||
"additions": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"deletions": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
@@ -11835,7 +11878,9 @@
|
||||
"type": "string"
|
||||
},
|
||||
"retries": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["message", "retries"]
|
||||
@@ -11879,7 +11924,9 @@
|
||||
"type": "string"
|
||||
},
|
||||
"statusCode": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"isRetryable": {
|
||||
"type": "boolean"
|
||||
@@ -12057,13 +12104,17 @@
|
||||
"const": "retry"
|
||||
},
|
||||
"attempt": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"next": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["type", "attempt", "message", "next"]
|
||||
@@ -12486,7 +12537,9 @@
|
||||
"enum": ["running", "exited"]
|
||||
},
|
||||
"pid": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"exclusiveMinimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["id", "title", "command", "args", "cwd", "status", "pid"]
|
||||
@@ -12544,7 +12597,9 @@
|
||||
"pattern": "^pty.*"
|
||||
},
|
||||
"exitCode": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["id", "exitCode"]
|
||||
@@ -12733,7 +12788,9 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"created": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["created"]
|
||||
@@ -12834,10 +12891,14 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"created": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"completed": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["created"]
|
||||
@@ -12905,25 +12966,37 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"total": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"input": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"output": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"reasoning": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"cache": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"read": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"write": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["read", "write"]
|
||||
@@ -13043,10 +13116,14 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"start": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"end": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["start"]
|
||||
@@ -13140,10 +13217,14 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"start": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"end": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["start"]
|
||||
@@ -13159,12 +13240,12 @@
|
||||
},
|
||||
"start": {
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"end": {
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
@@ -13193,10 +13274,14 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"line": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"character": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["line", "character"]
|
||||
@@ -13205,10 +13290,14 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"line": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"character": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["line", "character"]
|
||||
@@ -13237,7 +13326,7 @@
|
||||
},
|
||||
"kind": {
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
@@ -13357,7 +13446,9 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"start": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["start"]
|
||||
@@ -13396,13 +13487,19 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"start": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"end": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"compacted": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["start", "end"]
|
||||
@@ -13444,10 +13541,14 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"start": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"end": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["start", "end"]
|
||||
@@ -13566,25 +13667,37 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"total": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"input": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"output": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"reasoning": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"cache": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"read": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"write": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["read", "write"]
|
||||
@@ -13681,12 +13794,12 @@
|
||||
},
|
||||
"start": {
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"end": {
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
@@ -13715,7 +13828,9 @@
|
||||
"const": "retry"
|
||||
},
|
||||
"attempt": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"error": {
|
||||
"$ref": "#/components/schemas/APIError"
|
||||
@@ -13724,7 +13839,9 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"created": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["created"]
|
||||
@@ -13822,7 +13939,9 @@
|
||||
"$ref": "#/components/schemas/Part"
|
||||
},
|
||||
"time": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["sessionID", "part", "time"]
|
||||
@@ -13865,10 +13984,14 @@
|
||||
"type": "string"
|
||||
},
|
||||
"additions": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"deletions": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
@@ -13933,13 +14056,19 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"additions": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"deletions": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"files": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"diffs": {
|
||||
"type": "array",
|
||||
@@ -13969,16 +14098,24 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"created": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"updated": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"compacting": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"archived": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["created", "updated"]
|
||||
@@ -14229,7 +14366,9 @@
|
||||
"$ref": "#/components/schemas/Part"
|
||||
},
|
||||
"time": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["sessionID", "part", "time"]
|
||||
@@ -14426,13 +14565,19 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"additions": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"deletions": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"files": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"diffs": {
|
||||
"type": "array",
|
||||
@@ -14489,7 +14634,9 @@
|
||||
"created": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
@@ -14499,7 +14646,9 @@
|
||||
"updated": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
@@ -14509,7 +14658,9 @@
|
||||
"compacting": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
@@ -14519,7 +14670,9 @@
|
||||
"archived": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
@@ -15127,9 +15280,6 @@
|
||||
"websearch": {
|
||||
"$ref": "#/components/schemas/PermissionActionConfig"
|
||||
},
|
||||
"codesearch": {
|
||||
"$ref": "#/components/schemas/PermissionActionConfig"
|
||||
},
|
||||
"lsp": {
|
||||
"$ref": "#/components/schemas/PermissionRuleConfig"
|
||||
},
|
||||
@@ -15581,7 +15731,9 @@
|
||||
},
|
||||
"timeout": {
|
||||
"description": "Timeout in ms for MCP server requests. Defaults to 5000 (5 seconds) if not specified.",
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"exclusiveMinimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["type", "command"]
|
||||
@@ -15647,7 +15799,9 @@
|
||||
},
|
||||
"timeout": {
|
||||
"description": "Timeout in ms for MCP server requests. Defaults to 5000 (5 seconds) if not specified.",
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"exclusiveMinimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["type", "url"]
|
||||
@@ -16231,7 +16385,9 @@
|
||||
"type": "string"
|
||||
},
|
||||
"expires": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"accountId": {
|
||||
"type": "string"
|
||||
@@ -16648,7 +16804,9 @@
|
||||
"type": "string"
|
||||
},
|
||||
"switchableOrgCount": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["consoleManagedProviders", "switchableOrgCount"]
|
||||
@@ -16733,10 +16891,14 @@
|
||||
"type": "string"
|
||||
},
|
||||
"additions": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"deletions": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
@@ -16820,13 +16982,19 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"additions": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"deletions": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"files": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"diffs": {
|
||||
"type": "array",
|
||||
@@ -16856,16 +17024,24 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"created": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"updated": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"compacting": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"archived": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["created", "updated"]
|
||||
@@ -16954,10 +17130,14 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"start": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"end": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
"required": ["start"]
|
||||
@@ -17020,12 +17200,12 @@
|
||||
},
|
||||
"start": {
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"end": {
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
}
|
||||
},
|
||||
@@ -17200,7 +17380,9 @@
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"location": {
|
||||
"type": "object",
|
||||
@@ -17273,16 +17455,24 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"oldStart": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"oldLines": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"newStart": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"newLines": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"lines": {
|
||||
"type": "array",
|
||||
@@ -17318,12 +17508,12 @@
|
||||
},
|
||||
"added": {
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"removed": {
|
||||
"type": "integer",
|
||||
"minimum": -9007199254740991,
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"status": {
|
||||
@@ -17643,10 +17833,14 @@
|
||||
"type": "string"
|
||||
},
|
||||
"additions": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"deletions": {
|
||||
"type": "number"
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"maximum": 9007199254740991
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
|
||||
@@ -26,11 +26,7 @@ function parse(color: string) {
|
||||
const value = color.trim()
|
||||
const hex = value.match(/^#([0-9a-f]{6})/i)
|
||||
if (hex?.[1]) {
|
||||
return [
|
||||
parseInt(hex[1].slice(0, 2), 16),
|
||||
parseInt(hex[1].slice(2, 4), 16),
|
||||
parseInt(hex[1].slice(4, 6), 16),
|
||||
]
|
||||
return [parseInt(hex[1].slice(0, 2), 16), parseInt(hex[1].slice(2, 4), 16), parseInt(hex[1].slice(4, 6), 16)]
|
||||
}
|
||||
|
||||
const short = value.match(/^#([0-9a-f]{3})/i)
|
||||
@@ -70,7 +66,8 @@ function css(root: Element, names: string[], fallback: string) {
|
||||
|
||||
function dark(root: Element, background: string) {
|
||||
if (document.body.classList.contains("vscode-light")) return false
|
||||
if (document.body.classList.contains("vscode-dark") || document.body.classList.contains("vscode-high-contrast")) return true
|
||||
if (document.body.classList.contains("vscode-dark") || document.body.classList.contains("vscode-high-contrast"))
|
||||
return true
|
||||
|
||||
const scheme = getComputedStyle(root).colorScheme
|
||||
if (scheme.includes("dark")) return true
|
||||
@@ -90,10 +87,18 @@ function config(root: Element) {
|
||||
)
|
||||
const panel = css(root, ["--vscode-editorWidget-background", "--surface-raised-base", "--surface-base"], background)
|
||||
const alt = css(root, ["--vscode-input-background", "--surface-weak", "--surface-base"], panel)
|
||||
const text = css(root, ["--vscode-editor-foreground", "--text-strong", "--vscode-foreground"], style.color || "#ffffff")
|
||||
const text = css(
|
||||
root,
|
||||
["--vscode-editor-foreground", "--text-strong", "--vscode-foreground"],
|
||||
style.color || "#ffffff",
|
||||
)
|
||||
const weak = css(root, ["--vscode-descriptionForeground", "--text-weak", "--vscode-foreground"], text)
|
||||
const border = css(root, ["--vscode-editorWidget-border", "--vscode-editorGroup-border", "--border-weak-base"], weak)
|
||||
const accent = css(root, ["--vscode-textLink-foreground", "--vscode-charts-blue", "--text-interactive-base"], "#6cb6ff")
|
||||
const accent = css(
|
||||
root,
|
||||
["--vscode-textLink-foreground", "--vscode-charts-blue", "--text-interactive-base"],
|
||||
"#6cb6ff",
|
||||
)
|
||||
const critical = css(root, ["--vscode-errorForeground", "--vscode-charts-red", "--syntax-critical"], "#ff9580")
|
||||
const criticalBg = css(root, ["--vscode-inputValidation-errorBackground", "--surface-critical-base"], alt)
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -7,4 +7,4 @@
|
||||
/// <reference path="../../sst-env.d.ts" />
|
||||
|
||||
import "sst"
|
||||
export {}
|
||||
export {}
|
||||
|
||||
@@ -251,8 +251,7 @@ function detail(entry: Entry): string {
|
||||
|
||||
function describe(bucket: Bucket, count: number, dryRun: boolean): { label: string; action: string } {
|
||||
if (bucket === "markers-only") return { label: `markers-only (${count})`, action: dryRun ? "would reset" : "reset" }
|
||||
if (bucket === "cosmetic-only")
|
||||
return { label: `cosmetic-only (${count})`, action: dryRun ? "would reset" : "reset" }
|
||||
if (bucket === "cosmetic-only") return { label: `cosmetic-only (${count})`, action: dryRun ? "would reset" : "reset" }
|
||||
if (bucket === "small-diff") return { label: `small-diff (${count})`, action: dryRun ? "would reset" : "reset" }
|
||||
if (bucket === "large-diff") return { label: `large-diff (${count})`, action: "skipped" }
|
||||
if (bucket === "identical") return { label: `identical (${count})`, action: "nothing to do" }
|
||||
|
||||
@@ -10,15 +10,7 @@
|
||||
|
||||
import path from "node:path"
|
||||
import { error, header, info, success, warn } from "./utils/logger"
|
||||
import {
|
||||
annotate,
|
||||
annotates,
|
||||
changed,
|
||||
clean,
|
||||
fresh,
|
||||
ranges,
|
||||
supported,
|
||||
} from "./utils/markers"
|
||||
import { annotate, annotates, changed, clean, fresh, ranges, supported } from "./utils/markers"
|
||||
import { last, normalize, root, translate, upstream } from "./utils/upstream"
|
||||
|
||||
interface Args {
|
||||
|
||||
Reference in New Issue
Block a user