chore: format code
This commit is contained in:
parent
521fba8ce3
commit
b7e5cbbdc7
4 changed files with 119 additions and 112 deletions
|
|
@ -24,4 +24,4 @@
|
||||||
"typescript": "catalog:",
|
"typescript": "catalog:",
|
||||||
"@typescript/native-preview": "catalog:"
|
"@typescript/native-preview": "catalog:"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,4 +29,4 @@
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"directory": "dist"
|
"directory": "dist"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -476,35 +476,6 @@ export type EventPermissionReplied = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SessionStatus =
|
|
||||||
| {
|
|
||||||
type: "idle"
|
|
||||||
}
|
|
||||||
| {
|
|
||||||
type: "retry"
|
|
||||||
attempt: number
|
|
||||||
message: string
|
|
||||||
next: number
|
|
||||||
}
|
|
||||||
| {
|
|
||||||
type: "busy"
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventSessionStatus = {
|
|
||||||
type: "session.status"
|
|
||||||
properties: {
|
|
||||||
sessionID: string
|
|
||||||
status: SessionStatus
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventSessionIdle = {
|
|
||||||
type: "session.idle"
|
|
||||||
properties: {
|
|
||||||
sessionID: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type EventFileEdited = {
|
export type EventFileEdited = {
|
||||||
type: "file.edited"
|
type: "file.edited"
|
||||||
properties: {
|
properties: {
|
||||||
|
|
@ -539,6 +510,35 @@ export type EventTodoUpdated = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type SessionStatus =
|
||||||
|
| {
|
||||||
|
type: "idle"
|
||||||
|
}
|
||||||
|
| {
|
||||||
|
type: "retry"
|
||||||
|
attempt: number
|
||||||
|
message: string
|
||||||
|
next: number
|
||||||
|
}
|
||||||
|
| {
|
||||||
|
type: "busy"
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventSessionStatus = {
|
||||||
|
type: "session.status"
|
||||||
|
properties: {
|
||||||
|
sessionID: string
|
||||||
|
status: SessionStatus
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type EventSessionIdle = {
|
||||||
|
type: "session.idle"
|
||||||
|
properties: {
|
||||||
|
sessionID: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export type EventSessionCompacted = {
|
export type EventSessionCompacted = {
|
||||||
type: "session.compacted"
|
type: "session.compacted"
|
||||||
properties: {
|
properties: {
|
||||||
|
|
@ -746,10 +746,10 @@ export type Event =
|
||||||
| EventMessagePartRemoved
|
| EventMessagePartRemoved
|
||||||
| EventPermissionUpdated
|
| EventPermissionUpdated
|
||||||
| EventPermissionReplied
|
| EventPermissionReplied
|
||||||
| EventSessionStatus
|
|
||||||
| EventSessionIdle
|
|
||||||
| EventFileEdited
|
| EventFileEdited
|
||||||
| EventTodoUpdated
|
| EventTodoUpdated
|
||||||
|
| EventSessionStatus
|
||||||
|
| EventSessionIdle
|
||||||
| EventSessionCompacted
|
| EventSessionCompacted
|
||||||
| EventCommandExecuted
|
| EventCommandExecuted
|
||||||
| EventSessionCreated
|
| EventSessionCreated
|
||||||
|
|
|
||||||
|
|
@ -1997,9 +1997,6 @@
|
||||||
"noReply": {
|
"noReply": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"system": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"tools": {
|
"tools": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"propertyNames": {
|
"propertyNames": {
|
||||||
|
|
@ -2009,6 +2006,9 @@
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"system": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"parts": {
|
"parts": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
|
|
@ -2202,9 +2202,6 @@
|
||||||
"noReply": {
|
"noReply": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"system": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"tools": {
|
"tools": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"propertyNames": {
|
"propertyNames": {
|
||||||
|
|
@ -2214,6 +2211,9 @@
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"system": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"parts": {
|
"parts": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
|
|
@ -5193,6 +5193,9 @@
|
||||||
"mode": {
|
"mode": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"agent": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"path": {
|
"path": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
@ -5251,6 +5254,7 @@
|
||||||
"modelID",
|
"modelID",
|
||||||
"providerID",
|
"providerID",
|
||||||
"mode",
|
"mode",
|
||||||
|
"agent",
|
||||||
"path",
|
"path",
|
||||||
"cost",
|
"cost",
|
||||||
"tokens"
|
"tokens"
|
||||||
|
|
@ -6152,6 +6156,72 @@
|
||||||
},
|
},
|
||||||
"required": ["type", "properties"]
|
"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"]
|
||||||
|
},
|
||||||
|
"Todo": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"content": {
|
||||||
|
"description": "Brief description of the task",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"description": "Current status of the task: pending, in_progress, completed, cancelled",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"priority": {
|
||||||
|
"description": "Priority level of the task: high, medium, low",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"id": {
|
||||||
|
"description": "Unique identifier for the todo item",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["content", "status", "priority", "id"]
|
||||||
|
},
|
||||||
|
"Event.todo.updated": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "todo.updated"
|
||||||
|
},
|
||||||
|
"properties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"sessionID": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"todos": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/Todo"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["sessionID", "todos"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["type", "properties"]
|
||||||
|
},
|
||||||
"SessionStatus": {
|
"SessionStatus": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
|
|
@ -6255,72 +6325,6 @@
|
||||||
},
|
},
|
||||||
"required": ["type", "properties"]
|
"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"]
|
|
||||||
},
|
|
||||||
"Todo": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"content": {
|
|
||||||
"description": "Brief description of the task",
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"status": {
|
|
||||||
"description": "Current status of the task: pending, in_progress, completed, cancelled",
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"priority": {
|
|
||||||
"description": "Priority level of the task: high, medium, low",
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"id": {
|
|
||||||
"description": "Unique identifier for the todo item",
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["content", "status", "priority", "id"]
|
|
||||||
},
|
|
||||||
"Event.todo.updated": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"const": "todo.updated"
|
|
||||||
},
|
|
||||||
"properties": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"sessionID": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"todos": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"$ref": "#/components/schemas/Todo"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["sessionID", "todos"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["type", "properties"]
|
|
||||||
},
|
|
||||||
"Event.command.executed": {
|
"Event.command.executed": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
@ -6886,6 +6890,12 @@
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/Event.permission.replied"
|
"$ref": "#/components/schemas/Event.permission.replied"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/Event.file.edited"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/Event.todo.updated"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/Event.session.status"
|
"$ref": "#/components/schemas/Event.session.status"
|
||||||
},
|
},
|
||||||
|
|
@ -6895,12 +6905,6 @@
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/Event.session.compacted"
|
"$ref": "#/components/schemas/Event.session.compacted"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/Event.file.edited"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"$ref": "#/components/schemas/Event.todo.updated"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/Event.command.executed"
|
"$ref": "#/components/schemas/Event.command.executed"
|
||||||
},
|
},
|
||||||
|
|
@ -8916,7 +8920,10 @@
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["subagent", "primary", "all"]
|
"enum": ["subagent", "primary", "all"]
|
||||||
},
|
},
|
||||||
"builtIn": {
|
"native": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"hidden": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"topP": {
|
"topP": {
|
||||||
|
|
@ -8997,7 +9004,7 @@
|
||||||
"maximum": 9007199254740991
|
"maximum": 9007199254740991
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["name", "mode", "builtIn", "permission", "tools", "options"]
|
"required": ["name", "mode", "permission", "tools", "options"]
|
||||||
},
|
},
|
||||||
"MCPStatusConnected": {
|
"MCPStatusConnected": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue