summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authoropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-03-21 04:52:23 +0000
committeropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-03-21 04:52:23 +0000
commit2e0d5d230893dbddcefb35a02f53ff2e7a58e5d0 (patch)
treeae5fec45714043e7305f668ba7a3d02616166329 /packages
parent38e0dc9ccd18f791ca9d433e5f2d1c1c7178341a (diff)
downloadopencode-2e0d5d230893dbddcefb35a02f53ff2e7a58e5d0.tar.gz
opencode-2e0d5d230893dbddcefb35a02f53ff2e7a58e5d0.zip
chore: generate
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/src/provider/auth.ts23
-rw-r--r--packages/opencode/src/skill/index.ts4
-rw-r--r--packages/opencode/test/format/format.test.ts4
-rw-r--r--packages/sdk/js/src/v2/gen/sdk.gen.ts8
-rw-r--r--packages/sdk/js/src/v2/gen/types.gen.ts264
-rw-r--r--packages/sdk/openapi.json689
6 files changed, 496 insertions, 496 deletions
diff --git a/packages/opencode/src/provider/auth.ts b/packages/opencode/src/provider/auth.ts
index 2180d3063..99184c48a 100644
--- a/packages/opencode/src/provider/auth.ts
+++ b/packages/opencode/src/provider/auth.ts
@@ -118,18 +118,19 @@ export namespace ProviderAuth {
const state = yield* InstanceState.make<State>(
Effect.fn("ProviderAuth.state")(() =>
Effect.promise(async () => {
- const plugins = await Plugin.list()
- return {
- hooks: Record.fromEntries(
- Arr.filterMap(plugins, (x) =>
- x.auth?.provider !== undefined
- ? Result.succeed([ProviderID.make(x.auth.provider), x.auth] as const)
- : Result.failVoid,
+ const plugins = await Plugin.list()
+ return {
+ hooks: Record.fromEntries(
+ Arr.filterMap(plugins, (x) =>
+ x.auth?.provider !== undefined
+ ? Result.succeed([ProviderID.make(x.auth.provider), x.auth] as const)
+ : Result.failVoid,
+ ),
),
- ),
- pending: new Map<ProviderID, AuthOuathResult>(),
- }
- })),
+ pending: new Map<ProviderID, AuthOuathResult>(),
+ }
+ }),
+ ),
)
const methods = Effect.fn("ProviderAuth.methods")(function* () {
diff --git a/packages/opencode/src/skill/index.ts b/packages/opencode/src/skill/index.ts
index b770ab83c..43a22219e 100644
--- a/packages/opencode/src/skill/index.ts
+++ b/packages/opencode/src/skill/index.ts
@@ -184,7 +184,9 @@ export namespace Skill {
Service,
Effect.gen(function* () {
const discovery = yield* Discovery.Service
- const state = yield* InstanceState.make(Effect.fn("Skill.state")((ctx) => Effect.sync(() => create(discovery, ctx.directory, ctx.worktree))))
+ const state = yield* InstanceState.make(
+ Effect.fn("Skill.state")((ctx) => Effect.sync(() => create(discovery, ctx.directory, ctx.worktree))),
+ )
const ensure = Effect.fn("Skill.ensure")(function* () {
const cache = yield* InstanceState.get(state)
diff --git a/packages/opencode/test/format/format.test.ts b/packages/opencode/test/format/format.test.ts
index 1992dede6..68fe71e03 100644
--- a/packages/opencode/test/format/format.test.ts
+++ b/packages/opencode/test/format/format.test.ts
@@ -148,11 +148,11 @@ describe("Format", () => {
config: {
formatter: {
first: {
- command: ["sh", "-c", "sleep 0.05; v=$(cat \"$1\"); printf '%sA' \"$v\" > \"$1\"", "sh", "$FILE"],
+ command: ["sh", "-c", 'sleep 0.05; v=$(cat "$1"); printf \'%sA\' "$v" > "$1"', "sh", "$FILE"],
extensions: [".seq"],
},
second: {
- command: ["sh", "-c", "v=$(cat \"$1\"); printf '%sB' \"$v\" > \"$1\"", "sh", "$FILE"],
+ command: ["sh", "-c", 'v=$(cat "$1"); printf \'%sB\' "$v" > "$1"', "sh", "$FILE"],
extensions: [".seq"],
},
},
diff --git a/packages/sdk/js/src/v2/gen/sdk.gen.ts b/packages/sdk/js/src/v2/gen/sdk.gen.ts
index b6821322e..df46c66f2 100644
--- a/packages/sdk/js/src/v2/gen/sdk.gen.ts
+++ b/packages/sdk/js/src/v2/gen/sdk.gen.ts
@@ -4,11 +4,11 @@ import { client } from "./client.gen.js"
import { buildClientParams, type Client, type Options as Options2, type TDataShape } from "./client/index.js"
import type {
AgentPartInput,
+ ApiAuth,
AppAgentsResponses,
AppLogErrors,
AppLogResponses,
AppSkillsResponses,
- Auth as Auth3,
AuthRemoveErrors,
AuthRemoveResponses,
AuthSetErrors,
@@ -63,6 +63,7 @@ import type {
McpLocalConfig,
McpRemoteConfig,
McpStatusResponses,
+ OAuth,
OutputFormat,
Part as Part2,
PartDeleteErrors,
@@ -173,6 +174,7 @@ import type {
TuiShowToastResponses,
TuiSubmitPromptResponses,
VcsGetResponses,
+ WellKnownAuth,
WorktreeCreateErrors,
WorktreeCreateInput,
WorktreeCreateResponses,
@@ -337,7 +339,7 @@ export class Auth extends HeyApiClient {
public set<ThrowOnError extends boolean = false>(
parameters: {
providerID: string
- auth?: Auth3
+ body?: OAuth | ApiAuth | WellKnownAuth
},
options?: Options<never, ThrowOnError>,
) {
@@ -347,7 +349,7 @@ export class Auth extends HeyApiClient {
{
args: [
{ in: "path", key: "providerID" },
- { key: "auth", map: "body" },
+ { key: "body", map: "body" },
],
},
],
diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts
index ec797f2ba..593869326 100644
--- a/packages/sdk/js/src/v2/gen/types.gen.ts
+++ b/packages/sdk/js/src/v2/gen/types.gen.ts
@@ -47,13 +47,6 @@ export type EventProjectUpdated = {
properties: Project
}
-export type EventFileEdited = {
- type: "file.edited"
- properties: {
- file: string
- }
-}
-
export type EventServerInstanceDisposed = {
type: "server.instance.disposed"
properties: {
@@ -61,121 +54,6 @@ export type EventServerInstanceDisposed = {
}
}
-export type EventFileWatcherUpdated = {
- type: "file.watcher.updated"
- properties: {
- file: string
- event: "add" | "change" | "unlink"
- }
-}
-
-export type PermissionRequest = {
- id: string
- sessionID: string
- permission: string
- patterns: Array<string>
- metadata: {
- [key: string]: unknown
- }
- always: Array<string>
- tool?: {
- messageID: string
- callID: string
- }
-}
-
-export type EventPermissionAsked = {
- type: "permission.asked"
- properties: PermissionRequest
-}
-
-export type EventPermissionReplied = {
- type: "permission.replied"
- properties: {
- sessionID: string
- requestID: string
- reply: "once" | "always" | "reject"
- }
-}
-
-export type EventVcsBranchUpdated = {
- type: "vcs.branch.updated"
- properties: {
- branch?: string
- }
-}
-
-export type QuestionOption = {
- /**
- * Display text (1-5 words, concise)
- */
- label: string
- /**
- * Explanation of choice
- */
- description: string
-}
-
-export type QuestionInfo = {
- /**
- * Complete question
- */
- question: string
- /**
- * Very short label (max 30 chars)
- */
- header: string
- /**
- * Available choices
- */
- options: Array<QuestionOption>
- /**
- * Allow selecting multiple choices
- */
- multiple?: boolean
- /**
- * Allow typing a custom answer (default: true)
- */
- custom?: boolean
-}
-
-export type QuestionRequest = {
- id: string
- sessionID: string
- /**
- * Questions to ask
- */
- questions: Array<QuestionInfo>
- tool?: {
- messageID: string
- callID: string
- }
-}
-
-export type EventQuestionAsked = {
- type: "question.asked"
- properties: QuestionRequest
-}
-
-export type QuestionAnswer = Array<string>
-
-export type EventQuestionReplied = {
- type: "question.replied"
- properties: {
- sessionID: string
- requestID: string
- answers: Array<QuestionAnswer>
- }
-}
-
-export type EventQuestionRejected = {
- type: "question.rejected"
- properties: {
- sessionID: string
- requestID: string
- }
-}
-
export type EventServerConnected = {
type: "server.connected"
properties: {
@@ -205,6 +83,13 @@ export type EventLspUpdated = {
}
}
+export type EventFileEdited = {
+ type: "file.edited"
+ properties: {
+ file: string
+ }
+}
+
export type OutputFormatText = {
type: "text"
}
@@ -664,6 +549,35 @@ export type EventMessagePartRemoved = {
}
}
+export type PermissionRequest = {
+ id: string
+ sessionID: string
+ permission: string
+ patterns: Array<string>
+ metadata: {
+ [key: string]: unknown
+ }
+ always: Array<string>
+ tool?: {
+ messageID: string
+ callID: string
+ }
+}
+
+export type EventPermissionAsked = {
+ type: "permission.asked"
+ properties: PermissionRequest
+}
+
+export type EventPermissionReplied = {
+ type: "permission.replied"
+ properties: {
+ sessionID: string
+ requestID: string
+ reply: "once" | "always" | "reject"
+ }
+}
+
export type SessionStatus =
| {
type: "idle"
@@ -693,6 +607,77 @@ export type EventSessionIdle = {
}
}
+export type QuestionOption = {
+ /**
+ * Display text (1-5 words, concise)
+ */
+ label: string
+ /**
+ * Explanation of choice
+ */
+ description: string
+}
+
+export type QuestionInfo = {
+ /**
+ * Complete question
+ */
+ question: string
+ /**
+ * Very short label (max 30 chars)
+ */
+ header: string
+ /**
+ * Available choices
+ */
+ options: Array<QuestionOption>
+ /**
+ * Allow selecting multiple choices
+ */
+ multiple?: boolean
+ /**
+ * Allow typing a custom answer (default: true)
+ */
+ custom?: boolean
+}
+
+export type QuestionRequest = {
+ id: string
+ sessionID: string
+ /**
+ * Questions to ask
+ */
+ questions: Array<QuestionInfo>
+ tool?: {
+ messageID: string
+ callID: string
+ }
+}
+
+export type EventQuestionAsked = {
+ type: "question.asked"
+ properties: QuestionRequest
+}
+
+export type QuestionAnswer = Array<string>
+
+export type EventQuestionReplied = {
+ type: "question.replied"
+ properties: {
+ sessionID: string
+ requestID: string
+ answers: Array<QuestionAnswer>
+ }
+}
+
+export type EventQuestionRejected = {
+ type: "question.rejected"
+ properties: {
+ sessionID: string
+ requestID: string
+ }
+}
+
export type EventSessionCompacted = {
type: "session.compacted"
properties: {
@@ -700,6 +685,14 @@ export type EventSessionCompacted = {
}
}
+export type EventFileWatcherUpdated = {
+ type: "file.watcher.updated"
+ properties: {
+ file: string
+ event: "add" | "change" | "unlink"
+ }
+}
+
export type Todo = {
/**
* Brief description of the task
@@ -889,6 +882,13 @@ export type EventSessionError = {
}
}
+export type EventVcsBranchUpdated = {
+ type: "vcs.branch.updated"
+ properties: {
+ branch?: string
+ }
+}
+
export type EventWorkspaceReady = {
type: "workspace.ready"
properties: {
@@ -961,27 +961,26 @@ export type Event =
| EventInstallationUpdated
| EventInstallationUpdateAvailable
| EventProjectUpdated
- | EventFileEdited
| EventServerInstanceDisposed
- | EventFileWatcherUpdated
- | EventPermissionAsked
- | EventPermissionReplied
- | EventVcsBranchUpdated
- | EventQuestionAsked
- | EventQuestionReplied
- | EventQuestionRejected
| EventServerConnected
| EventGlobalDisposed
| EventLspClientDiagnostics
| EventLspUpdated
+ | EventFileEdited
| EventMessageUpdated
| EventMessageRemoved
| EventMessagePartUpdated
| EventMessagePartDelta
| EventMessagePartRemoved
+ | EventPermissionAsked
+ | EventPermissionReplied
| EventSessionStatus
| EventSessionIdle
+ | EventQuestionAsked
+ | EventQuestionReplied
+ | EventQuestionRejected
| EventSessionCompacted
+ | EventFileWatcherUpdated
| EventTodoUpdated
| EventTuiPromptAppend
| EventTuiCommandExecute
@@ -995,6 +994,7 @@ export type Event =
| EventSessionDeleted
| EventSessionDiff
| EventSessionError
+ | EventVcsBranchUpdated
| EventWorkspaceReady
| EventWorkspaceFailed
| EventPtyCreated
@@ -1534,8 +1534,6 @@ export type WellKnownAuth = {
token: string
}
-export type Auth = OAuth | ApiAuth | WellKnownAuth
-
export type NotFoundError = {
name: "NotFoundError"
data: {
@@ -2058,7 +2056,7 @@ export type AuthRemoveResponses = {
export type AuthRemoveResponse = AuthRemoveResponses[keyof AuthRemoveResponses]
export type AuthSetData = {
- body?: Auth
+ body?: OAuth | ApiAuth | WellKnownAuth
path: {
providerID: string
}
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json
index fa894045e..76eed0025 100644
--- a/packages/sdk/openapi.json
+++ b/packages/sdk/openapi.json
@@ -199,7 +199,17 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/Auth"
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/OAuth"
+ },
+ {
+ "$ref": "#/components/schemas/ApiAuth"
+ },
+ {
+ "$ref": "#/components/schemas/WellKnownAuth"
+ }
+ ]
}
}
}
@@ -7053,25 +7063,6 @@
},
"required": ["type", "properties"]
},
- "Event.file.edited": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "const": "file.edited"
- },
- "properties": {
- "type": "object",
- "properties": {
- "file": {
- "type": "string"
- }
- },
- "required": ["file"]
- }
- },
- "required": ["type", "properties"]
- },
"Event.server.instance.disposed": {
"type": "object",
"properties": {
@@ -7091,319 +7082,62 @@
},
"required": ["type", "properties"]
},
- "Event.file.watcher.updated": {
+ "Event.server.connected": {
"type": "object",
"properties": {
"type": {
"type": "string",
- "const": "file.watcher.updated"
+ "const": "server.connected"
},
"properties": {
"type": "object",
- "properties": {
- "file": {
- "type": "string"
- },
- "event": {
- "anyOf": [
- {
- "type": "string",
- "const": "add"
- },
- {
- "type": "string",
- "const": "change"
- },
- {
- "type": "string",
- "const": "unlink"
- }
- ]
- }
- },
- "required": ["file", "event"]
- }
- },
- "required": ["type", "properties"]
- },
- "PermissionRequest": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "pattern": "^per.*"
- },
- "sessionID": {
- "type": "string",
- "pattern": "^ses.*"
- },
- "permission": {
- "type": "string"
- },
- "patterns": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "metadata": {
- "type": "object",
- "propertyNames": {
- "type": "string"
- },
- "additionalProperties": {}
- },
- "always": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "tool": {
- "type": "object",
- "properties": {
- "messageID": {
- "type": "string",
- "pattern": "^msg.*"
- },
- "callID": {
- "type": "string"
- }
- },
- "required": ["messageID", "callID"]
- }
- },
- "required": ["id", "sessionID", "permission", "patterns", "metadata", "always"]
- },
- "Event.permission.asked": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "const": "permission.asked"
- },
- "properties": {
- "$ref": "#/components/schemas/PermissionRequest"
+ "properties": {}
}
},
"required": ["type", "properties"]
},
- "Event.permission.replied": {
+ "Event.global.disposed": {
"type": "object",
"properties": {
"type": {
"type": "string",
- "const": "permission.replied"
+ "const": "global.disposed"
},
"properties": {
"type": "object",
- "properties": {
- "sessionID": {
- "type": "string",
- "pattern": "^ses.*"
- },
- "requestID": {
- "type": "string",
- "pattern": "^per.*"
- },
- "reply": {
- "type": "string",
- "enum": ["once", "always", "reject"]
- }
- },
- "required": ["sessionID", "requestID", "reply"]
+ "properties": {}
}
},
"required": ["type", "properties"]
},
- "Event.vcs.branch.updated": {
+ "Event.lsp.client.diagnostics": {
"type": "object",
"properties": {
"type": {
"type": "string",
- "const": "vcs.branch.updated"
+ "const": "lsp.client.diagnostics"
},
"properties": {
"type": "object",
"properties": {
- "branch": {
+ "serverID": {
"type": "string"
- }
- }
- }
- },
- "required": ["type", "properties"]
- },
- "QuestionOption": {
- "type": "object",
- "properties": {
- "label": {
- "description": "Display text (1-5 words, concise)",
- "type": "string"
- },
- "description": {
- "description": "Explanation of choice",
- "type": "string"
- }
- },
- "required": ["label", "description"]
- },
- "QuestionInfo": {
- "type": "object",
- "properties": {
- "question": {
- "description": "Complete question",
- "type": "string"
- },
- "header": {
- "description": "Very short label (max 30 chars)",
- "type": "string"
- },
- "options": {
- "description": "Available choices",
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/QuestionOption"
- }
- },
- "multiple": {
- "description": "Allow selecting multiple choices",
- "type": "boolean"
- },
- "custom": {
- "description": "Allow typing a custom answer (default: true)",
- "type": "boolean"
- }
- },
- "required": ["question", "header", "options"]
- },
- "QuestionRequest": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "pattern": "^que.*"
- },
- "sessionID": {
- "type": "string",
- "pattern": "^ses.*"
- },
- "questions": {
- "description": "Questions to ask",
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/QuestionInfo"
- }
- },
- "tool": {
- "type": "object",
- "properties": {
- "messageID": {
- "type": "string",
- "pattern": "^msg.*"
},
- "callID": {
+ "path": {
"type": "string"
}
},
- "required": ["messageID", "callID"]
- }
- },
- "required": ["id", "sessionID", "questions"]
- },
- "Event.question.asked": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "const": "question.asked"
- },
- "properties": {
- "$ref": "#/components/schemas/QuestionRequest"
- }
- },
- "required": ["type", "properties"]
- },
- "QuestionAnswer": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "Event.question.replied": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "const": "question.replied"
- },
- "properties": {
- "type": "object",
- "properties": {
- "sessionID": {
- "type": "string",
- "pattern": "^ses.*"
- },
- "requestID": {
- "type": "string",
- "pattern": "^que.*"
- },
- "answers": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/QuestionAnswer"
- }
- }
- },
- "required": ["sessionID", "requestID", "answers"]
- }
- },
- "required": ["type", "properties"]
- },
- "Event.question.rejected": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "const": "question.rejected"
- },
- "properties": {
- "type": "object",
- "properties": {
- "sessionID": {
- "type": "string",
- "pattern": "^ses.*"
- },
- "requestID": {
- "type": "string",
- "pattern": "^que.*"
- }
- },
- "required": ["sessionID", "requestID"]
- }
- },
- "required": ["type", "properties"]
- },
- "Event.server.connected": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "const": "server.connected"
- },
- "properties": {
- "type": "object",
- "properties": {}
+ "required": ["serverID", "path"]
}
},
"required": ["type", "properties"]
},
- "Event.global.disposed": {
+ "Event.lsp.updated": {
"type": "object",
"properties": {
"type": {
"type": "string",
- "const": "global.disposed"
+ "const": "lsp.updated"
},
"properties": {
"type": "object",
@@ -7412,38 +7146,21 @@
},
"required": ["type", "properties"]
},
- "Event.lsp.client.diagnostics": {
+ "Event.file.edited": {
"type": "object",
"properties": {
"type": {
"type": "string",
- "const": "lsp.client.diagnostics"
+ "const": "file.edited"
},
"properties": {
"type": "object",
"properties": {
- "serverID": {
- "type": "string"
- },
- "path": {
+ "file": {
"type": "string"
}
},
- "required": ["serverID", "path"]
- }
- },
- "required": ["type", "properties"]
- },
- "Event.lsp.updated": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "const": "lsp.updated"
- },
- "properties": {
- "type": "object",
- "properties": {}
+ "required": ["file"]
}
},
"required": ["type", "properties"]
@@ -8823,6 +8540,96 @@
},
"required": ["type", "properties"]
},
+ "PermissionRequest": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "pattern": "^per.*"
+ },
+ "sessionID": {
+ "type": "string",
+ "pattern": "^ses.*"
+ },
+ "permission": {
+ "type": "string"
+ },
+ "patterns": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "metadata": {
+ "type": "object",
+ "propertyNames": {
+ "type": "string"
+ },
+ "additionalProperties": {}
+ },
+ "always": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "tool": {
+ "type": "object",
+ "properties": {
+ "messageID": {
+ "type": "string",
+ "pattern": "^msg.*"
+ },
+ "callID": {
+ "type": "string"
+ }
+ },
+ "required": ["messageID", "callID"]
+ }
+ },
+ "required": ["id", "sessionID", "permission", "patterns", "metadata", "always"]
+ },
+ "Event.permission.asked": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "const": "permission.asked"
+ },
+ "properties": {
+ "$ref": "#/components/schemas/PermissionRequest"
+ }
+ },
+ "required": ["type", "properties"]
+ },
+ "Event.permission.replied": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "const": "permission.replied"
+ },
+ "properties": {
+ "type": "object",
+ "properties": {
+ "sessionID": {
+ "type": "string",
+ "pattern": "^ses.*"
+ },
+ "requestID": {
+ "type": "string",
+ "pattern": "^per.*"
+ },
+ "reply": {
+ "type": "string",
+ "enum": ["once", "always", "reject"]
+ }
+ },
+ "required": ["sessionID", "requestID", "reply"]
+ }
+ },
+ "required": ["type", "properties"]
+ },
"SessionStatus": {
"anyOf": [
{
@@ -8909,6 +8716,156 @@
},
"required": ["type", "properties"]
},
+ "QuestionOption": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "description": "Display text (1-5 words, concise)",
+ "type": "string"
+ },
+ "description": {
+ "description": "Explanation of choice",
+ "type": "string"
+ }
+ },
+ "required": ["label", "description"]
+ },
+ "QuestionInfo": {
+ "type": "object",
+ "properties": {
+ "question": {
+ "description": "Complete question",
+ "type": "string"
+ },
+ "header": {
+ "description": "Very short label (max 30 chars)",
+ "type": "string"
+ },
+ "options": {
+ "description": "Available choices",
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/QuestionOption"
+ }
+ },
+ "multiple": {
+ "description": "Allow selecting multiple choices",
+ "type": "boolean"
+ },
+ "custom": {
+ "description": "Allow typing a custom answer (default: true)",
+ "type": "boolean"
+ }
+ },
+ "required": ["question", "header", "options"]
+ },
+ "QuestionRequest": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string",
+ "pattern": "^que.*"
+ },
+ "sessionID": {
+ "type": "string",
+ "pattern": "^ses.*"
+ },
+ "questions": {
+ "description": "Questions to ask",
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/QuestionInfo"
+ }
+ },
+ "tool": {
+ "type": "object",
+ "properties": {
+ "messageID": {
+ "type": "string",
+ "pattern": "^msg.*"
+ },
+ "callID": {
+ "type": "string"
+ }
+ },
+ "required": ["messageID", "callID"]
+ }
+ },
+ "required": ["id", "sessionID", "questions"]
+ },
+ "Event.question.asked": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "const": "question.asked"
+ },
+ "properties": {
+ "$ref": "#/components/schemas/QuestionRequest"
+ }
+ },
+ "required": ["type", "properties"]
+ },
+ "QuestionAnswer": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "Event.question.replied": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "const": "question.replied"
+ },
+ "properties": {
+ "type": "object",
+ "properties": {
+ "sessionID": {
+ "type": "string",
+ "pattern": "^ses.*"
+ },
+ "requestID": {
+ "type": "string",
+ "pattern": "^que.*"
+ },
+ "answers": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/QuestionAnswer"
+ }
+ }
+ },
+ "required": ["sessionID", "requestID", "answers"]
+ }
+ },
+ "required": ["type", "properties"]
+ },
+ "Event.question.rejected": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "const": "question.rejected"
+ },
+ "properties": {
+ "type": "object",
+ "properties": {
+ "sessionID": {
+ "type": "string",
+ "pattern": "^ses.*"
+ },
+ "requestID": {
+ "type": "string",
+ "pattern": "^que.*"
+ }
+ },
+ "required": ["sessionID", "requestID"]
+ }
+ },
+ "required": ["type", "properties"]
+ },
"Event.session.compacted": {
"type": "object",
"properties": {
@@ -8929,6 +8886,41 @@
},
"required": ["type", "properties"]
},
+ "Event.file.watcher.updated": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "const": "file.watcher.updated"
+ },
+ "properties": {
+ "type": "object",
+ "properties": {
+ "file": {
+ "type": "string"
+ },
+ "event": {
+ "anyOf": [
+ {
+ "type": "string",
+ "const": "add"
+ },
+ {
+ "type": "string",
+ "const": "change"
+ },
+ {
+ "type": "string",
+ "const": "unlink"
+ }
+ ]
+ }
+ },
+ "required": ["file", "event"]
+ }
+ },
+ "required": ["type", "properties"]
+ },
"Todo": {
"type": "object",
"properties": {
@@ -9415,6 +9407,24 @@
},
"required": ["type", "properties"]
},
+ "Event.vcs.branch.updated": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "const": "vcs.branch.updated"
+ },
+ "properties": {
+ "type": "object",
+ "properties": {
+ "branch": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "required": ["type", "properties"]
+ },
"Event.workspace.ready": {
"type": "object",
"properties": {
@@ -9619,67 +9629,64 @@
"$ref": "#/components/schemas/Event.project.updated"
},
{
- "$ref": "#/components/schemas/Event.file.edited"
- },
- {
"$ref": "#/components/schemas/Event.server.instance.disposed"
},
{
- "$ref": "#/components/schemas/Event.file.watcher.updated"
+ "$ref": "#/components/schemas/Event.server.connected"
},
{
- "$ref": "#/components/schemas/Event.permission.asked"
+ "$ref": "#/components/schemas/Event.global.disposed"
},
{
- "$ref": "#/components/schemas/Event.permission.replied"
+ "$ref": "#/components/schemas/Event.lsp.client.diagnostics"
},
{
- "$ref": "#/components/schemas/Event.vcs.branch.updated"
+ "$ref": "#/components/schemas/Event.lsp.updated"
},
{
- "$ref": "#/components/schemas/Event.question.asked"
+ "$ref": "#/components/schemas/Event.file.edited"
},
{
- "$ref": "#/components/schemas/Event.question.replied"
+ "$ref": "#/components/schemas/Event.message.updated"
},
{
- "$ref": "#/components/schemas/Event.question.rejected"
+ "$ref": "#/components/schemas/Event.message.removed"
},
{
- "$ref": "#/components/schemas/Event.server.connected"
+ "$ref": "#/components/schemas/Event.message.part.updated"
},
{
- "$ref": "#/components/schemas/Event.global.disposed"
+ "$ref": "#/components/schemas/Event.message.part.delta"
},
{
- "$ref": "#/components/schemas/Event.lsp.client.diagnostics"
+ "$ref": "#/components/schemas/Event.message.part.removed"
},
{
- "$ref": "#/components/schemas/Event.lsp.updated"
+ "$ref": "#/components/schemas/Event.permission.asked"
},
{
- "$ref": "#/components/schemas/Event.message.updated"
+ "$ref": "#/components/schemas/Event.permission.replied"
},
{
- "$ref": "#/components/schemas/Event.message.removed"
+ "$ref": "#/components/schemas/Event.session.status"
},
{
- "$ref": "#/components/schemas/Event.message.part.updated"
+ "$ref": "#/components/schemas/Event.session.idle"
},
{
- "$ref": "#/components/schemas/Event.message.part.delta"
+ "$ref": "#/components/schemas/Event.question.asked"
},
{
- "$ref": "#/components/schemas/Event.message.part.removed"
+ "$ref": "#/components/schemas/Event.question.replied"
},
{
- "$ref": "#/components/schemas/Event.session.status"
+ "$ref": "#/components/schemas/Event.question.rejected"
},
{
- "$ref": "#/components/schemas/Event.session.idle"
+ "$ref": "#/components/schemas/Event.session.compacted"
},
{
- "$ref": "#/components/schemas/Event.session.compacted"
+ "$ref": "#/components/schemas/Event.file.watcher.updated"
},
{
"$ref": "#/components/schemas/Event.todo.updated"
@@ -9721,6 +9728,9 @@
"$ref": "#/components/schemas/Event.session.error"
},
{
+ "$ref": "#/components/schemas/Event.vcs.branch.updated"
+ },
+ {
"$ref": "#/components/schemas/Event.workspace.ready"
},
{
@@ -10824,19 +10834,6 @@
},
"required": ["type", "key", "token"]
},
- "Auth": {
- "anyOf": [
- {
- "$ref": "#/components/schemas/OAuth"
- },
- {
- "$ref": "#/components/schemas/ApiAuth"
- },
- {
- "$ref": "#/components/schemas/WellKnownAuth"
- }
- ]
- },
"NotFoundError": {
"type": "object",
"properties": {