mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
style: format repository
This commit is contained in:
@@ -197,7 +197,8 @@ jobs:
|
||||
|
||||
- name: Restore Node 24 path
|
||||
if: steps.gate.outputs.run_agent == 'true'
|
||||
run: | # zizmor: ignore[github-env] NODE_BIN is set by the trusted local setup-node-env action in this same job
|
||||
run:
|
||||
| # zizmor: ignore[github-env] NODE_BIN is set by the trusted local setup-node-env action in this same job
|
||||
set -euo pipefail
|
||||
export PATH="${NODE_BIN}:${PATH}"
|
||||
echo "${NODE_BIN}" >> "$GITHUB_PATH"
|
||||
|
||||
@@ -181,7 +181,8 @@ jobs:
|
||||
|
||||
- name: Restore Node 24 path
|
||||
if: steps.gate.outputs.run_agent == 'true' && steps.patch.outputs.has_changes == 'true'
|
||||
run: | # zizmor: ignore[github-env] NODE_BIN is set by the trusted local setup-node-env action in this same job
|
||||
run:
|
||||
| # zizmor: ignore[github-env] NODE_BIN is set by the trusted local setup-node-env action in this same job
|
||||
set -euo pipefail
|
||||
export PATH="${NODE_BIN}:${PATH}"
|
||||
echo "${NODE_BIN}" >> "$GITHUB_PATH"
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { createInterface, type Interface as ReadlineInterface } from "node:readline";
|
||||
import { embeddedAgentLog, OPENCLAW_VERSION } from "openclaw/plugin-sdk/agent-harness-runtime";
|
||||
import { resolveCodexAppServerRuntimeOptions, type CodexAppServerStartOptions } from "./config.js";
|
||||
import { MIN_CODEX_APP_SERVER_VERSION } from "./version.js";
|
||||
import {
|
||||
type CodexAppServerRequestMethod,
|
||||
type CodexAppServerRequestParams,
|
||||
@@ -22,6 +21,7 @@ import {
|
||||
closeCodexAppServerTransportAndWait,
|
||||
type CodexAppServerTransport,
|
||||
} from "./transport.js";
|
||||
import { MIN_CODEX_APP_SERVER_VERSION } from "./version.js";
|
||||
|
||||
export { MIN_CODEX_APP_SERVER_VERSION } from "./version.js";
|
||||
const CODEX_APP_SERVER_PARSE_LOG_MAX = 500;
|
||||
|
||||
@@ -6,10 +6,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"namespace": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
"type": ["string", "null"]
|
||||
},
|
||||
"threadId": {
|
||||
"type": "string"
|
||||
@@ -21,13 +18,7 @@
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"arguments",
|
||||
"callId",
|
||||
"threadId",
|
||||
"tool",
|
||||
"turnId"
|
||||
],
|
||||
"required": ["arguments", "callId", "threadId", "tool", "turnId"],
|
||||
"title": "DynamicToolCallParams",
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,18 +27,13 @@
|
||||
"httpStatusCode": {
|
||||
"format": "uint16",
|
||||
"minimum": 0.0,
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
]
|
||||
"type": ["integer", "null"]
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"httpConnectionFailed"
|
||||
],
|
||||
"required": ["httpConnectionFailed"],
|
||||
"title": "HttpConnectionFailedCodexErrorInfo",
|
||||
"type": "object"
|
||||
},
|
||||
@@ -51,18 +46,13 @@
|
||||
"httpStatusCode": {
|
||||
"format": "uint16",
|
||||
"minimum": 0.0,
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
]
|
||||
"type": ["integer", "null"]
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"responseStreamConnectionFailed"
|
||||
],
|
||||
"required": ["responseStreamConnectionFailed"],
|
||||
"title": "ResponseStreamConnectionFailedCodexErrorInfo",
|
||||
"type": "object"
|
||||
},
|
||||
@@ -75,18 +65,13 @@
|
||||
"httpStatusCode": {
|
||||
"format": "uint16",
|
||||
"minimum": 0.0,
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
]
|
||||
"type": ["integer", "null"]
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"responseStreamDisconnected"
|
||||
],
|
||||
"required": ["responseStreamDisconnected"],
|
||||
"title": "ResponseStreamDisconnectedCodexErrorInfo",
|
||||
"type": "object"
|
||||
},
|
||||
@@ -99,18 +84,13 @@
|
||||
"httpStatusCode": {
|
||||
"format": "uint16",
|
||||
"minimum": 0.0,
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
]
|
||||
"type": ["integer", "null"]
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"responseTooManyFailedAttempts"
|
||||
],
|
||||
"required": ["responseTooManyFailedAttempts"],
|
||||
"title": "ResponseTooManyFailedAttemptsCodexErrorInfo",
|
||||
"type": "object"
|
||||
},
|
||||
@@ -124,35 +104,25 @@
|
||||
"$ref": "#/definitions/NonSteerableTurnKind"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"turnKind"
|
||||
],
|
||||
"required": ["turnKind"],
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"activeTurnNotSteerable"
|
||||
],
|
||||
"required": ["activeTurnNotSteerable"],
|
||||
"title": "ActiveTurnNotSteerableCodexErrorInfo",
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
},
|
||||
"NonSteerableTurnKind": {
|
||||
"enum": [
|
||||
"review",
|
||||
"compact"
|
||||
],
|
||||
"enum": ["review", "compact"],
|
||||
"type": "string"
|
||||
},
|
||||
"TurnError": {
|
||||
"properties": {
|
||||
"additionalDetails": {
|
||||
"default": null,
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
"type": ["string", "null"]
|
||||
},
|
||||
"codexErrorInfo": {
|
||||
"anyOf": [
|
||||
@@ -168,9 +138,7 @@
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"message"
|
||||
],
|
||||
"required": ["message"],
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
@@ -188,12 +156,7 @@
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"error",
|
||||
"threadId",
|
||||
"turnId",
|
||||
"willRetry"
|
||||
],
|
||||
"required": ["error", "threadId", "turnId", "willRetry"],
|
||||
"title": "ErrorNotification",
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,16 +6,12 @@
|
||||
"oneOf": [
|
||||
{
|
||||
"description": "Plain text turns and tool payloads.",
|
||||
"enum": [
|
||||
"text"
|
||||
],
|
||||
"enum": ["text"],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"description": "Image attachments included in user turns.",
|
||||
"enum": [
|
||||
"image"
|
||||
],
|
||||
"enum": ["image"],
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
@@ -55,10 +51,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"inputModalities": {
|
||||
"default": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"default": ["text", "image"],
|
||||
"items": {
|
||||
"$ref": "#/definitions/InputModality"
|
||||
},
|
||||
@@ -81,10 +74,7 @@
|
||||
"type": "boolean"
|
||||
},
|
||||
"upgrade": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
"type": ["string", "null"]
|
||||
},
|
||||
"upgradeInfo": {
|
||||
"anyOf": [
|
||||
@@ -115,50 +105,30 @@
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"message"
|
||||
],
|
||||
"required": ["message"],
|
||||
"type": "object"
|
||||
},
|
||||
"ModelUpgradeInfo": {
|
||||
"properties": {
|
||||
"migrationMarkdown": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
"type": ["string", "null"]
|
||||
},
|
||||
"model": {
|
||||
"type": "string"
|
||||
},
|
||||
"modelLink": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
"type": ["string", "null"]
|
||||
},
|
||||
"upgradeCopy": {
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
"type": ["string", "null"]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"model"
|
||||
],
|
||||
"required": ["model"],
|
||||
"type": "object"
|
||||
},
|
||||
"ReasoningEffort": {
|
||||
"description": "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
|
||||
"enum": [
|
||||
"none",
|
||||
"minimal",
|
||||
"low",
|
||||
"medium",
|
||||
"high",
|
||||
"xhigh"
|
||||
],
|
||||
"enum": ["none", "minimal", "low", "medium", "high", "xhigh"],
|
||||
"type": "string"
|
||||
},
|
||||
"ReasoningEffortOption": {
|
||||
@@ -170,10 +140,7 @@
|
||||
"$ref": "#/definitions/ReasoningEffort"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"description",
|
||||
"reasoningEffort"
|
||||
],
|
||||
"required": ["description", "reasoningEffort"],
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
@@ -186,15 +153,10 @@
|
||||
},
|
||||
"nextCursor": {
|
||||
"description": "Opaque cursor to pass to the next call to continue after the last item. If None, there are no more items to return.",
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
"type": ["string", "null"]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"data"
|
||||
],
|
||||
"required": ["data"],
|
||||
"title": "ModelListResponse",
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
|
||||
+200
-760
File diff suppressed because it is too large
Load Diff
+200
-760
File diff suppressed because it is too large
Load Diff
+130
-512
File diff suppressed because it is too large
Load Diff
+130
-511
File diff suppressed because it is too large
Load Diff
+18
-15
@@ -4,18 +4,21 @@
|
||||
import type { FileChange } from "./FileChange.js";
|
||||
import type { ThreadId } from "./ThreadId.js";
|
||||
|
||||
export type ApplyPatchApprovalParams = { conversationId: ThreadId,
|
||||
/**
|
||||
* Use to correlate this with [codex_protocol::protocol::PatchApplyBeginEvent]
|
||||
* and [codex_protocol::protocol::PatchApplyEndEvent].
|
||||
*/
|
||||
callId: string, fileChanges: { [key in string]?: FileChange },
|
||||
/**
|
||||
* Optional explanatory reason (e.g. request for extra write access).
|
||||
*/
|
||||
reason: string | null,
|
||||
/**
|
||||
* When set, the agent is asking the user to allow writes under this root
|
||||
* for the remainder of the session (unclear if this is honored today).
|
||||
*/
|
||||
grantRoot: string | null, };
|
||||
export type ApplyPatchApprovalParams = {
|
||||
conversationId: ThreadId;
|
||||
/**
|
||||
* Use to correlate this with [codex_protocol::protocol::PatchApplyBeginEvent]
|
||||
* and [codex_protocol::protocol::PatchApplyEndEvent].
|
||||
*/
|
||||
callId: string;
|
||||
fileChanges: { [key in string]?: FileChange };
|
||||
/**
|
||||
* Optional explanatory reason (e.g. request for extra write access).
|
||||
*/
|
||||
reason: string | null;
|
||||
/**
|
||||
* When set, the agent is asking the user to allow writes under this root
|
||||
* for the remainder of the session (unclear if this is honored today).
|
||||
*/
|
||||
grantRoot: string | null;
|
||||
};
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { ReviewDecision } from "./ReviewDecision.js";
|
||||
|
||||
export type ApplyPatchApprovalResponse = { decision: ReviewDecision, };
|
||||
export type ApplyPatchApprovalResponse = { decision: ReviewDecision };
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ClientInfo = { name: string, title: string | null, version: string, };
|
||||
export type ClientInfo = { name: string; title: string | null; version: string };
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ClientNotification = { "method": "initialized" };
|
||||
export type ClientNotification = { method: "initialized" };
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -7,4 +7,4 @@ import type { Settings } from "./Settings.js";
|
||||
/**
|
||||
* Collaboration mode for a Codex session.
|
||||
*/
|
||||
export type CollaborationMode = { mode: ModeKind, settings: Settings, };
|
||||
export type CollaborationMode = { mode: ModeKind; settings: Settings };
|
||||
|
||||
@@ -3,4 +3,7 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { ImageDetail } from "./ImageDetail.js";
|
||||
|
||||
export type ContentItem = { "type": "input_text", text: string, } | { "type": "input_image", image_url: string, detail?: ImageDetail, } | { "type": "output_text", text: string, };
|
||||
export type ContentItem =
|
||||
| { type: "input_text"; text: string }
|
||||
| { type: "input_image"; image_url: string; detail?: ImageDetail }
|
||||
| { type: "output_text"; text: string };
|
||||
|
||||
+5
-1
@@ -2,4 +2,8 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ConversationGitInfo = { sha: string | null, branch: string | null, origin_url: string | null, };
|
||||
export type ConversationGitInfo = {
|
||||
sha: string | null;
|
||||
branch: string | null;
|
||||
origin_url: string | null;
|
||||
};
|
||||
|
||||
+12
-1
@@ -5,4 +5,15 @@ import type { ConversationGitInfo } from "./ConversationGitInfo.js";
|
||||
import type { SessionSource } from "./SessionSource.js";
|
||||
import type { ThreadId } from "./ThreadId.js";
|
||||
|
||||
export type ConversationSummary = { conversationId: ThreadId, path: string, preview: string, timestamp: string | null, updatedAt: string | null, modelProvider: string, cwd: string, cliVersion: string, source: SessionSource, gitInfo: ConversationGitInfo | null, };
|
||||
export type ConversationSummary = {
|
||||
conversationId: ThreadId;
|
||||
path: string;
|
||||
preview: string;
|
||||
timestamp: string | null;
|
||||
updatedAt: string | null;
|
||||
modelProvider: string;
|
||||
cwd: string;
|
||||
cliVersion: string;
|
||||
source: SessionSource;
|
||||
gitInfo: ConversationGitInfo | null;
|
||||
};
|
||||
|
||||
+16
-10
@@ -4,13 +4,19 @@
|
||||
import type { ParsedCommand } from "./ParsedCommand.js";
|
||||
import type { ThreadId } from "./ThreadId.js";
|
||||
|
||||
export type ExecCommandApprovalParams = { conversationId: ThreadId,
|
||||
/**
|
||||
* Use to correlate this with [codex_protocol::protocol::ExecCommandBeginEvent]
|
||||
* and [codex_protocol::protocol::ExecCommandEndEvent].
|
||||
*/
|
||||
callId: string,
|
||||
/**
|
||||
* Identifier for this specific approval callback.
|
||||
*/
|
||||
approvalId: string | null, command: Array<string>, cwd: string, reason: string | null, parsedCmd: Array<ParsedCommand>, };
|
||||
export type ExecCommandApprovalParams = {
|
||||
conversationId: ThreadId;
|
||||
/**
|
||||
* Use to correlate this with [codex_protocol::protocol::ExecCommandBeginEvent]
|
||||
* and [codex_protocol::protocol::ExecCommandEndEvent].
|
||||
*/
|
||||
callId: string;
|
||||
/**
|
||||
* Identifier for this specific approval callback.
|
||||
*/
|
||||
approvalId: string | null;
|
||||
command: Array<string>;
|
||||
cwd: string;
|
||||
reason: string | null;
|
||||
parsedCmd: Array<ParsedCommand>;
|
||||
};
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { ReviewDecision } from "./ReviewDecision.js";
|
||||
|
||||
export type ExecCommandApprovalResponse = { decision: ReviewDecision, };
|
||||
export type ExecCommandApprovalResponse = { decision: ReviewDecision };
|
||||
|
||||
@@ -2,4 +2,7 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type FileChange = { "type": "add", content: string, } | { "type": "delete", content: string, } | { "type": "update", unified_diff: string, move_path: string | null, };
|
||||
export type FileChange =
|
||||
| { type: "add"; content: string }
|
||||
| { type: "delete"; content: string }
|
||||
| { type: "update"; unified_diff: string; move_path: string | null };
|
||||
|
||||
+3
-1
@@ -7,4 +7,6 @@ import type { ImageDetail } from "./ImageDetail.js";
|
||||
* Responses API compatible content items that can be returned by a tool call.
|
||||
* This is a subset of ContentItem with the types we support as function call outputs.
|
||||
*/
|
||||
export type FunctionCallOutputContentItem = { "type": "input_text", text: string, } | { "type": "input_image", image_url: string, detail?: ImageDetail, };
|
||||
export type FunctionCallOutputContentItem =
|
||||
| { type: "input_text"; text: string }
|
||||
| { type: "input_image"; image_url: string; detail?: ImageDetail };
|
||||
|
||||
+5
-1
@@ -2,4 +2,8 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type FuzzyFileSearchParams = { query: string, roots: Array<string>, cancellationToken: string | null, };
|
||||
export type FuzzyFileSearchParams = {
|
||||
query: string;
|
||||
roots: Array<string>;
|
||||
cancellationToken: string | null;
|
||||
};
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { FuzzyFileSearchResult } from "./FuzzyFileSearchResult.js";
|
||||
|
||||
export type FuzzyFileSearchResponse = { files: Array<FuzzyFileSearchResult>, };
|
||||
export type FuzzyFileSearchResponse = { files: Array<FuzzyFileSearchResult> };
|
||||
|
||||
+8
-1
@@ -6,4 +6,11 @@ import type { FuzzyFileSearchMatchType } from "./FuzzyFileSearchMatchType.js";
|
||||
/**
|
||||
* Superset of [`codex_file_search::FileMatch`]
|
||||
*/
|
||||
export type FuzzyFileSearchResult = { root: string, path: string, match_type: FuzzyFileSearchMatchType, file_name: string, score: number, indices: Array<number> | null, };
|
||||
export type FuzzyFileSearchResult = {
|
||||
root: string;
|
||||
path: string;
|
||||
match_type: FuzzyFileSearchMatchType;
|
||||
file_name: string;
|
||||
score: number;
|
||||
indices: Array<number> | null;
|
||||
};
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type FuzzyFileSearchSessionCompletedNotification = { sessionId: string, };
|
||||
export type FuzzyFileSearchSessionCompletedNotification = { sessionId: string };
|
||||
|
||||
+5
-1
@@ -3,4 +3,8 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { FuzzyFileSearchResult } from "./FuzzyFileSearchResult.js";
|
||||
|
||||
export type FuzzyFileSearchSessionUpdatedNotification = { sessionId: string, query: string, files: Array<FuzzyFileSearchResult>, };
|
||||
export type FuzzyFileSearchSessionUpdatedNotification = {
|
||||
sessionId: string;
|
||||
query: string;
|
||||
files: Array<FuzzyFileSearchResult>;
|
||||
};
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type GetAuthStatusParams = { includeToken: boolean | null, refreshToken: boolean | null, };
|
||||
export type GetAuthStatusParams = { includeToken: boolean | null; refreshToken: boolean | null };
|
||||
|
||||
+5
-1
@@ -3,4 +3,8 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { AuthMode } from "./AuthMode.js";
|
||||
|
||||
export type GetAuthStatusResponse = { authMethod: AuthMode | null, authToken: string | null, requiresOpenaiAuth: boolean | null, };
|
||||
export type GetAuthStatusResponse = {
|
||||
authMethod: AuthMode | null;
|
||||
authToken: string | null;
|
||||
requiresOpenaiAuth: boolean | null;
|
||||
};
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { ThreadId } from "./ThreadId.js";
|
||||
|
||||
export type GetConversationSummaryParams = { rolloutPath: string, } | { conversationId: ThreadId, };
|
||||
export type GetConversationSummaryParams = { rolloutPath: string } | { conversationId: ThreadId };
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { ConversationSummary } from "./ConversationSummary.js";
|
||||
|
||||
export type GetConversationSummaryResponse = { summary: ConversationSummary, };
|
||||
export type GetConversationSummaryResponse = { summary: ConversationSummary };
|
||||
|
||||
@@ -5,4 +5,9 @@
|
||||
/**
|
||||
* Details of a ghost commit created from a repository state.
|
||||
*/
|
||||
export type GhostCommit = { id: string, parent: string | null, preexisting_untracked_files: Array<string>, preexisting_untracked_dirs: Array<string>, };
|
||||
export type GhostCommit = {
|
||||
id: string;
|
||||
parent: string | null;
|
||||
preexisting_untracked_files: Array<string>;
|
||||
preexisting_untracked_dirs: Array<string>;
|
||||
};
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type GitDiffToRemoteParams = { cwd: string, };
|
||||
export type GitDiffToRemoteParams = { cwd: string };
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { GitSha } from "./GitSha.js";
|
||||
|
||||
export type GitDiffToRemoteResponse = { sha: GitSha, diff: string, };
|
||||
export type GitDiffToRemoteResponse = { sha: GitSha; diff: string };
|
||||
|
||||
+10
-9
@@ -6,12 +6,13 @@
|
||||
* Client-declared capabilities negotiated during initialize.
|
||||
*/
|
||||
export type InitializeCapabilities = {
|
||||
/**
|
||||
* Opt into receiving experimental API methods and fields.
|
||||
*/
|
||||
experimentalApi: boolean,
|
||||
/**
|
||||
* Exact notification method names that should be suppressed for this
|
||||
* connection (for example `thread/started`).
|
||||
*/
|
||||
optOutNotificationMethods?: Array<string> | null, };
|
||||
/**
|
||||
* Opt into receiving experimental API methods and fields.
|
||||
*/
|
||||
experimentalApi: boolean;
|
||||
/**
|
||||
* Exact notification method names that should be suppressed for this
|
||||
* connection (for example `thread/started`).
|
||||
*/
|
||||
optOutNotificationMethods?: Array<string> | null;
|
||||
};
|
||||
|
||||
@@ -4,4 +4,7 @@
|
||||
import type { ClientInfo } from "./ClientInfo.js";
|
||||
import type { InitializeCapabilities } from "./InitializeCapabilities.js";
|
||||
|
||||
export type InitializeParams = { clientInfo: ClientInfo, capabilities: InitializeCapabilities | null, };
|
||||
export type InitializeParams = {
|
||||
clientInfo: ClientInfo;
|
||||
capabilities: InitializeCapabilities | null;
|
||||
};
|
||||
|
||||
+17
-15
@@ -3,18 +3,20 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { AbsolutePathBuf } from "./AbsolutePathBuf.js";
|
||||
|
||||
export type InitializeResponse = { userAgent: string,
|
||||
/**
|
||||
* Absolute path to the server's $CODEX_HOME directory.
|
||||
*/
|
||||
codexHome: AbsolutePathBuf,
|
||||
/**
|
||||
* Platform family for the running app-server target, for example
|
||||
* `"unix"` or `"windows"`.
|
||||
*/
|
||||
platformFamily: string,
|
||||
/**
|
||||
* Operating system for the running app-server target, for example
|
||||
* `"macos"`, `"linux"`, or `"windows"`.
|
||||
*/
|
||||
platformOs: string, };
|
||||
export type InitializeResponse = {
|
||||
userAgent: string;
|
||||
/**
|
||||
* Absolute path to the server's $CODEX_HOME directory.
|
||||
*/
|
||||
codexHome: AbsolutePathBuf;
|
||||
/**
|
||||
* Platform family for the running app-server target, for example
|
||||
* `"unix"` or `"windows"`.
|
||||
*/
|
||||
platformFamily: string;
|
||||
/**
|
||||
* Operating system for the running app-server target, for example
|
||||
* `"macos"`, `"linux"`, or `"windows"`.
|
||||
*/
|
||||
platformOs: string;
|
||||
};
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { LocalShellExecAction } from "./LocalShellExecAction.js";
|
||||
|
||||
export type LocalShellAction = { "type": "exec" } & LocalShellExecAction;
|
||||
export type LocalShellAction = { type: "exec" } & LocalShellExecAction;
|
||||
|
||||
+7
-1
@@ -2,4 +2,10 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type LocalShellExecAction = { command: Array<string>, timeout_ms: bigint | null, working_directory: string | null, env: { [key in string]?: string } | null, user: string | null, };
|
||||
export type LocalShellExecAction = {
|
||||
command: Array<string>;
|
||||
timeout_ms: bigint | null;
|
||||
working_directory: string | null;
|
||||
env: { [key in string]?: string } | null;
|
||||
user: string | null;
|
||||
};
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { NetworkPolicyRuleAction } from "./NetworkPolicyRuleAction.js";
|
||||
|
||||
export type NetworkPolicyAmendment = { host: string, action: NetworkPolicyRuleAction, };
|
||||
export type NetworkPolicyAmendment = { host: string; action: NetworkPolicyRuleAction };
|
||||
|
||||
@@ -2,11 +2,19 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ParsedCommand = { "type": "read", cmd: string, name: string,
|
||||
/**
|
||||
* (Best effort) Path to the file being read by the command. When
|
||||
* possible, this is an absolute path, though when relative, it should
|
||||
* be resolved against the `cwd`` that will be used to run the command
|
||||
* to derive the absolute path.
|
||||
*/
|
||||
path: string, } | { "type": "list_files", cmd: string, path: string | null, } | { "type": "search", cmd: string, query: string | null, path: string | null, } | { "type": "unknown", cmd: string, };
|
||||
export type ParsedCommand =
|
||||
| {
|
||||
type: "read";
|
||||
cmd: string;
|
||||
name: string;
|
||||
/**
|
||||
* (Best effort) Path to the file being read by the command. When
|
||||
* possible, this is an absolute path, though when relative, it should
|
||||
* be resolved against the `cwd`` that will be used to run the command
|
||||
* to derive the absolute path.
|
||||
*/
|
||||
path: string;
|
||||
}
|
||||
| { type: "list_files"; cmd: string; path: string | null }
|
||||
| { type: "search"; cmd: string; query: string | null; path: string | null }
|
||||
| { type: "unknown"; cmd: string };
|
||||
|
||||
@@ -2,4 +2,16 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type PlanType = "free" | "go" | "plus" | "pro" | "prolite" | "team" | "self_serve_business_usage_based" | "business" | "enterprise_cbp_usage_based" | "enterprise" | "edu" | "unknown";
|
||||
export type PlanType =
|
||||
| "free"
|
||||
| "go"
|
||||
| "plus"
|
||||
| "pro"
|
||||
| "prolite"
|
||||
| "team"
|
||||
| "self_serve_business_usage_based"
|
||||
| "business"
|
||||
| "enterprise_cbp_usage_based"
|
||||
| "enterprise"
|
||||
| "edu"
|
||||
| "unknown";
|
||||
|
||||
@@ -2,4 +2,23 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type RealtimeVoice = "alloy" | "arbor" | "ash" | "ballad" | "breeze" | "cedar" | "coral" | "cove" | "echo" | "ember" | "juniper" | "maple" | "marin" | "sage" | "shimmer" | "sol" | "spruce" | "vale" | "verse";
|
||||
export type RealtimeVoice =
|
||||
| "alloy"
|
||||
| "arbor"
|
||||
| "ash"
|
||||
| "ballad"
|
||||
| "breeze"
|
||||
| "cedar"
|
||||
| "coral"
|
||||
| "cove"
|
||||
| "echo"
|
||||
| "ember"
|
||||
| "juniper"
|
||||
| "maple"
|
||||
| "marin"
|
||||
| "sage"
|
||||
| "shimmer"
|
||||
| "sol"
|
||||
| "spruce"
|
||||
| "vale"
|
||||
| "verse";
|
||||
|
||||
@@ -3,4 +3,9 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { RealtimeVoice } from "./RealtimeVoice.js";
|
||||
|
||||
export type RealtimeVoicesList = { v1: Array<RealtimeVoice>, v2: Array<RealtimeVoice>, defaultV1: RealtimeVoice, defaultV2: RealtimeVoice, };
|
||||
export type RealtimeVoicesList = {
|
||||
v1: Array<RealtimeVoice>;
|
||||
v2: Array<RealtimeVoice>;
|
||||
defaultV1: RealtimeVoice;
|
||||
defaultV2: RealtimeVoice;
|
||||
};
|
||||
|
||||
+3
-1
@@ -2,4 +2,6 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ReasoningItemContent = { "type": "reasoning_text", text: string, } | { "type": "text", text: string, };
|
||||
export type ReasoningItemContent =
|
||||
| { type: "reasoning_text"; text: string }
|
||||
| { type: "text"; text: string };
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ReasoningItemReasoningSummary = { "type": "summary_text", text: string, };
|
||||
export type ReasoningItemReasoningSummary = { type: "summary_text"; text: string };
|
||||
|
||||
@@ -6,4 +6,14 @@ import type { JsonValue } from "./serde_json/JsonValue.js";
|
||||
/**
|
||||
* A known resource that the server is capable of reading.
|
||||
*/
|
||||
export type Resource = { annotations?: JsonValue, description?: string, mimeType?: string, name: string, size?: number, title?: string, uri: string, icons?: Array<JsonValue>, _meta?: JsonValue, };
|
||||
export type Resource = {
|
||||
annotations?: JsonValue;
|
||||
description?: string;
|
||||
mimeType?: string;
|
||||
name: string;
|
||||
size?: number;
|
||||
title?: string;
|
||||
uri: string;
|
||||
icons?: Array<JsonValue>;
|
||||
_meta?: JsonValue;
|
||||
};
|
||||
|
||||
@@ -6,12 +6,22 @@ import type { JsonValue } from "./serde_json/JsonValue.js";
|
||||
/**
|
||||
* Contents returned when reading a resource from an MCP server.
|
||||
*/
|
||||
export type ResourceContent = {
|
||||
/**
|
||||
* The URI of this resource.
|
||||
*/
|
||||
uri: string, mimeType?: string, text: string, _meta?: JsonValue, } | {
|
||||
/**
|
||||
* The URI of this resource.
|
||||
*/
|
||||
uri: string, mimeType?: string, blob: string, _meta?: JsonValue, };
|
||||
export type ResourceContent =
|
||||
| {
|
||||
/**
|
||||
* The URI of this resource.
|
||||
*/
|
||||
uri: string;
|
||||
mimeType?: string;
|
||||
text: string;
|
||||
_meta?: JsonValue;
|
||||
}
|
||||
| {
|
||||
/**
|
||||
* The URI of this resource.
|
||||
*/
|
||||
uri: string;
|
||||
mimeType?: string;
|
||||
blob: string;
|
||||
_meta?: JsonValue;
|
||||
};
|
||||
|
||||
@@ -6,4 +6,11 @@ import type { JsonValue } from "./serde_json/JsonValue.js";
|
||||
/**
|
||||
* A template description for resources available on the server.
|
||||
*/
|
||||
export type ResourceTemplate = { annotations?: JsonValue, uriTemplate: string, name: string, title?: string, description?: string, mimeType?: string, };
|
||||
export type ResourceTemplate = {
|
||||
annotations?: JsonValue;
|
||||
uriTemplate: string;
|
||||
name: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
mimeType?: string;
|
||||
};
|
||||
|
||||
@@ -11,8 +11,60 @@ import type { ReasoningItemContent } from "./ReasoningItemContent.js";
|
||||
import type { ReasoningItemReasoningSummary } from "./ReasoningItemReasoningSummary.js";
|
||||
import type { WebSearchAction } from "./WebSearchAction.js";
|
||||
|
||||
export type ResponseItem = { "type": "message", role: string, content: Array<ContentItem>, end_turn?: boolean, phase?: MessagePhase, } | { "type": "reasoning", summary: Array<ReasoningItemReasoningSummary>, content?: Array<ReasoningItemContent>, encrypted_content: string | null, } | { "type": "local_shell_call",
|
||||
/**
|
||||
* Set when using the Responses API.
|
||||
*/
|
||||
call_id: string | null, status: LocalShellStatus, action: LocalShellAction, } | { "type": "function_call", name: string, namespace?: string, arguments: string, call_id: string, } | { "type": "tool_search_call", call_id: string | null, status?: string, execution: string, arguments: unknown, } | { "type": "function_call_output", call_id: string, output: FunctionCallOutputBody, } | { "type": "custom_tool_call", status?: string, call_id: string, name: string, input: string, } | { "type": "custom_tool_call_output", call_id: string, name?: string, output: FunctionCallOutputBody, } | { "type": "tool_search_output", call_id: string | null, status: string, execution: string, tools: unknown[], } | { "type": "web_search_call", status?: string, action?: WebSearchAction, } | { "type": "image_generation_call", id: string, status: string, revised_prompt?: string, result: string, } | { "type": "ghost_snapshot", ghost_commit: GhostCommit, } | { "type": "compaction", encrypted_content: string, } | { "type": "other" };
|
||||
export type ResponseItem =
|
||||
| {
|
||||
type: "message";
|
||||
role: string;
|
||||
content: Array<ContentItem>;
|
||||
end_turn?: boolean;
|
||||
phase?: MessagePhase;
|
||||
}
|
||||
| {
|
||||
type: "reasoning";
|
||||
summary: Array<ReasoningItemReasoningSummary>;
|
||||
content?: Array<ReasoningItemContent>;
|
||||
encrypted_content: string | null;
|
||||
}
|
||||
| {
|
||||
type: "local_shell_call";
|
||||
/**
|
||||
* Set when using the Responses API.
|
||||
*/
|
||||
call_id: string | null;
|
||||
status: LocalShellStatus;
|
||||
action: LocalShellAction;
|
||||
}
|
||||
| { type: "function_call"; name: string; namespace?: string; arguments: string; call_id: string }
|
||||
| {
|
||||
type: "tool_search_call";
|
||||
call_id: string | null;
|
||||
status?: string;
|
||||
execution: string;
|
||||
arguments: unknown;
|
||||
}
|
||||
| { type: "function_call_output"; call_id: string; output: FunctionCallOutputBody }
|
||||
| { type: "custom_tool_call"; status?: string; call_id: string; name: string; input: string }
|
||||
| {
|
||||
type: "custom_tool_call_output";
|
||||
call_id: string;
|
||||
name?: string;
|
||||
output: FunctionCallOutputBody;
|
||||
}
|
||||
| {
|
||||
type: "tool_search_output";
|
||||
call_id: string | null;
|
||||
status: string;
|
||||
execution: string;
|
||||
tools: unknown[];
|
||||
}
|
||||
| { type: "web_search_call"; status?: string; action?: WebSearchAction }
|
||||
| {
|
||||
type: "image_generation_call";
|
||||
id: string;
|
||||
status: string;
|
||||
revised_prompt?: string;
|
||||
result: string;
|
||||
}
|
||||
| { type: "ghost_snapshot"; ghost_commit: GhostCommit }
|
||||
| { type: "compaction"; encrypted_content: string }
|
||||
| { type: "other" };
|
||||
|
||||
@@ -7,4 +7,11 @@ import type { NetworkPolicyAmendment } from "./NetworkPolicyAmendment.js";
|
||||
/**
|
||||
* User's decision in response to an ExecApprovalRequest.
|
||||
*/
|
||||
export type ReviewDecision = "approved" | { "approved_execpolicy_amendment": { proposed_execpolicy_amendment: ExecPolicyAmendment, } } | "approved_for_session" | { "network_policy_amendment": { network_policy_amendment: NetworkPolicyAmendment, } } | "denied" | "timed_out" | "abort";
|
||||
export type ReviewDecision =
|
||||
| "approved"
|
||||
| { approved_execpolicy_amendment: { proposed_execpolicy_amendment: ExecPolicyAmendment } }
|
||||
| "approved_for_session"
|
||||
| { network_policy_amendment: { network_policy_amendment: NetworkPolicyAmendment } }
|
||||
| "denied"
|
||||
| "timed_out"
|
||||
| "abort";
|
||||
|
||||
+78
-1
@@ -64,4 +64,81 @@ import type { WindowsWorldWritableWarningNotification } from "./v2/WindowsWorldW
|
||||
/**
|
||||
* Notification sent from the server to the client.
|
||||
*/
|
||||
export type ServerNotification = { "method": "error", "params": ErrorNotification } | { "method": "thread/started", "params": ThreadStartedNotification } | { "method": "thread/status/changed", "params": ThreadStatusChangedNotification } | { "method": "thread/archived", "params": ThreadArchivedNotification } | { "method": "thread/unarchived", "params": ThreadUnarchivedNotification } | { "method": "thread/closed", "params": ThreadClosedNotification } | { "method": "skills/changed", "params": SkillsChangedNotification } | { "method": "thread/name/updated", "params": ThreadNameUpdatedNotification } | { "method": "thread/tokenUsage/updated", "params": ThreadTokenUsageUpdatedNotification } | { "method": "turn/started", "params": TurnStartedNotification } | { "method": "hook/started", "params": HookStartedNotification } | { "method": "turn/completed", "params": TurnCompletedNotification } | { "method": "hook/completed", "params": HookCompletedNotification } | { "method": "turn/diff/updated", "params": TurnDiffUpdatedNotification } | { "method": "turn/plan/updated", "params": TurnPlanUpdatedNotification } | { "method": "item/started", "params": ItemStartedNotification } | { "method": "item/autoApprovalReview/started", "params": ItemGuardianApprovalReviewStartedNotification } | { "method": "item/autoApprovalReview/completed", "params": ItemGuardianApprovalReviewCompletedNotification } | { "method": "item/completed", "params": ItemCompletedNotification } | { "method": "rawResponseItem/completed", "params": RawResponseItemCompletedNotification } | { "method": "item/agentMessage/delta", "params": AgentMessageDeltaNotification } | { "method": "item/plan/delta", "params": PlanDeltaNotification } | { "method": "command/exec/outputDelta", "params": CommandExecOutputDeltaNotification } | { "method": "item/commandExecution/outputDelta", "params": CommandExecutionOutputDeltaNotification } | { "method": "item/commandExecution/terminalInteraction", "params": TerminalInteractionNotification } | { "method": "item/fileChange/outputDelta", "params": FileChangeOutputDeltaNotification } | { "method": "item/fileChange/patchUpdated", "params": FileChangePatchUpdatedNotification } | { "method": "serverRequest/resolved", "params": ServerRequestResolvedNotification } | { "method": "item/mcpToolCall/progress", "params": McpToolCallProgressNotification } | { "method": "mcpServer/oauthLogin/completed", "params": McpServerOauthLoginCompletedNotification } | { "method": "mcpServer/startupStatus/updated", "params": McpServerStatusUpdatedNotification } | { "method": "account/updated", "params": AccountUpdatedNotification } | { "method": "account/rateLimits/updated", "params": AccountRateLimitsUpdatedNotification } | { "method": "app/list/updated", "params": AppListUpdatedNotification } | { "method": "externalAgentConfig/import/completed", "params": ExternalAgentConfigImportCompletedNotification } | { "method": "fs/changed", "params": FsChangedNotification } | { "method": "item/reasoning/summaryTextDelta", "params": ReasoningSummaryTextDeltaNotification } | { "method": "item/reasoning/summaryPartAdded", "params": ReasoningSummaryPartAddedNotification } | { "method": "item/reasoning/textDelta", "params": ReasoningTextDeltaNotification } | { "method": "thread/compacted", "params": ContextCompactedNotification } | { "method": "model/rerouted", "params": ModelReroutedNotification } | { "method": "model/verification", "params": ModelVerificationNotification } | { "method": "warning", "params": WarningNotification } | { "method": "guardianWarning", "params": GuardianWarningNotification } | { "method": "deprecationNotice", "params": DeprecationNoticeNotification } | { "method": "configWarning", "params": ConfigWarningNotification } | { "method": "fuzzyFileSearch/sessionUpdated", "params": FuzzyFileSearchSessionUpdatedNotification } | { "method": "fuzzyFileSearch/sessionCompleted", "params": FuzzyFileSearchSessionCompletedNotification } | { "method": "thread/realtime/started", "params": ThreadRealtimeStartedNotification } | { "method": "thread/realtime/itemAdded", "params": ThreadRealtimeItemAddedNotification } | { "method": "thread/realtime/transcript/delta", "params": ThreadRealtimeTranscriptDeltaNotification } | { "method": "thread/realtime/transcript/done", "params": ThreadRealtimeTranscriptDoneNotification } | { "method": "thread/realtime/outputAudio/delta", "params": ThreadRealtimeOutputAudioDeltaNotification } | { "method": "thread/realtime/sdp", "params": ThreadRealtimeSdpNotification } | { "method": "thread/realtime/error", "params": ThreadRealtimeErrorNotification } | { "method": "thread/realtime/closed", "params": ThreadRealtimeClosedNotification } | { "method": "windows/worldWritableWarning", "params": WindowsWorldWritableWarningNotification } | { "method": "windowsSandbox/setupCompleted", "params": WindowsSandboxSetupCompletedNotification } | { "method": "account/login/completed", "params": AccountLoginCompletedNotification };
|
||||
export type ServerNotification =
|
||||
| { method: "error"; params: ErrorNotification }
|
||||
| { method: "thread/started"; params: ThreadStartedNotification }
|
||||
| { method: "thread/status/changed"; params: ThreadStatusChangedNotification }
|
||||
| { method: "thread/archived"; params: ThreadArchivedNotification }
|
||||
| { method: "thread/unarchived"; params: ThreadUnarchivedNotification }
|
||||
| { method: "thread/closed"; params: ThreadClosedNotification }
|
||||
| { method: "skills/changed"; params: SkillsChangedNotification }
|
||||
| { method: "thread/name/updated"; params: ThreadNameUpdatedNotification }
|
||||
| { method: "thread/tokenUsage/updated"; params: ThreadTokenUsageUpdatedNotification }
|
||||
| { method: "turn/started"; params: TurnStartedNotification }
|
||||
| { method: "hook/started"; params: HookStartedNotification }
|
||||
| { method: "turn/completed"; params: TurnCompletedNotification }
|
||||
| { method: "hook/completed"; params: HookCompletedNotification }
|
||||
| { method: "turn/diff/updated"; params: TurnDiffUpdatedNotification }
|
||||
| { method: "turn/plan/updated"; params: TurnPlanUpdatedNotification }
|
||||
| { method: "item/started"; params: ItemStartedNotification }
|
||||
| {
|
||||
method: "item/autoApprovalReview/started";
|
||||
params: ItemGuardianApprovalReviewStartedNotification;
|
||||
}
|
||||
| {
|
||||
method: "item/autoApprovalReview/completed";
|
||||
params: ItemGuardianApprovalReviewCompletedNotification;
|
||||
}
|
||||
| { method: "item/completed"; params: ItemCompletedNotification }
|
||||
| { method: "rawResponseItem/completed"; params: RawResponseItemCompletedNotification }
|
||||
| { method: "item/agentMessage/delta"; params: AgentMessageDeltaNotification }
|
||||
| { method: "item/plan/delta"; params: PlanDeltaNotification }
|
||||
| { method: "command/exec/outputDelta"; params: CommandExecOutputDeltaNotification }
|
||||
| { method: "item/commandExecution/outputDelta"; params: CommandExecutionOutputDeltaNotification }
|
||||
| { method: "item/commandExecution/terminalInteraction"; params: TerminalInteractionNotification }
|
||||
| { method: "item/fileChange/outputDelta"; params: FileChangeOutputDeltaNotification }
|
||||
| { method: "item/fileChange/patchUpdated"; params: FileChangePatchUpdatedNotification }
|
||||
| { method: "serverRequest/resolved"; params: ServerRequestResolvedNotification }
|
||||
| { method: "item/mcpToolCall/progress"; params: McpToolCallProgressNotification }
|
||||
| { method: "mcpServer/oauthLogin/completed"; params: McpServerOauthLoginCompletedNotification }
|
||||
| { method: "mcpServer/startupStatus/updated"; params: McpServerStatusUpdatedNotification }
|
||||
| { method: "account/updated"; params: AccountUpdatedNotification }
|
||||
| { method: "account/rateLimits/updated"; params: AccountRateLimitsUpdatedNotification }
|
||||
| { method: "app/list/updated"; params: AppListUpdatedNotification }
|
||||
| {
|
||||
method: "externalAgentConfig/import/completed";
|
||||
params: ExternalAgentConfigImportCompletedNotification;
|
||||
}
|
||||
| { method: "fs/changed"; params: FsChangedNotification }
|
||||
| { method: "item/reasoning/summaryTextDelta"; params: ReasoningSummaryTextDeltaNotification }
|
||||
| { method: "item/reasoning/summaryPartAdded"; params: ReasoningSummaryPartAddedNotification }
|
||||
| { method: "item/reasoning/textDelta"; params: ReasoningTextDeltaNotification }
|
||||
| { method: "thread/compacted"; params: ContextCompactedNotification }
|
||||
| { method: "model/rerouted"; params: ModelReroutedNotification }
|
||||
| { method: "model/verification"; params: ModelVerificationNotification }
|
||||
| { method: "warning"; params: WarningNotification }
|
||||
| { method: "guardianWarning"; params: GuardianWarningNotification }
|
||||
| { method: "deprecationNotice"; params: DeprecationNoticeNotification }
|
||||
| { method: "configWarning"; params: ConfigWarningNotification }
|
||||
| { method: "fuzzyFileSearch/sessionUpdated"; params: FuzzyFileSearchSessionUpdatedNotification }
|
||||
| {
|
||||
method: "fuzzyFileSearch/sessionCompleted";
|
||||
params: FuzzyFileSearchSessionCompletedNotification;
|
||||
}
|
||||
| { method: "thread/realtime/started"; params: ThreadRealtimeStartedNotification }
|
||||
| { method: "thread/realtime/itemAdded"; params: ThreadRealtimeItemAddedNotification }
|
||||
| {
|
||||
method: "thread/realtime/transcript/delta";
|
||||
params: ThreadRealtimeTranscriptDeltaNotification;
|
||||
}
|
||||
| { method: "thread/realtime/transcript/done"; params: ThreadRealtimeTranscriptDoneNotification }
|
||||
| {
|
||||
method: "thread/realtime/outputAudio/delta";
|
||||
params: ThreadRealtimeOutputAudioDeltaNotification;
|
||||
}
|
||||
| { method: "thread/realtime/sdp"; params: ThreadRealtimeSdpNotification }
|
||||
| { method: "thread/realtime/error"; params: ThreadRealtimeErrorNotification }
|
||||
| { method: "thread/realtime/closed"; params: ThreadRealtimeClosedNotification }
|
||||
| { method: "windows/worldWritableWarning"; params: WindowsWorldWritableWarningNotification }
|
||||
| { method: "windowsSandbox/setupCompleted"; params: WindowsSandboxSetupCompletedNotification }
|
||||
| { method: "account/login/completed"; params: AccountLoginCompletedNotification };
|
||||
|
||||
@@ -15,4 +15,33 @@ import type { ToolRequestUserInputParams } from "./v2/ToolRequestUserInputParams
|
||||
/**
|
||||
* Request initiated from the server and sent to the client.
|
||||
*/
|
||||
export type ServerRequest = { "method": "item/commandExecution/requestApproval", id: RequestId, params: CommandExecutionRequestApprovalParams, } | { "method": "item/fileChange/requestApproval", id: RequestId, params: FileChangeRequestApprovalParams, } | { "method": "item/tool/requestUserInput", id: RequestId, params: ToolRequestUserInputParams, } | { "method": "mcpServer/elicitation/request", id: RequestId, params: McpServerElicitationRequestParams, } | { "method": "item/permissions/requestApproval", id: RequestId, params: PermissionsRequestApprovalParams, } | { "method": "item/tool/call", id: RequestId, params: DynamicToolCallParams, } | { "method": "account/chatgptAuthTokens/refresh", id: RequestId, params: ChatgptAuthTokensRefreshParams, } | { "method": "applyPatchApproval", id: RequestId, params: ApplyPatchApprovalParams, } | { "method": "execCommandApproval", id: RequestId, params: ExecCommandApprovalParams, };
|
||||
export type ServerRequest =
|
||||
| {
|
||||
method: "item/commandExecution/requestApproval";
|
||||
id: RequestId;
|
||||
params: CommandExecutionRequestApprovalParams;
|
||||
}
|
||||
| {
|
||||
method: "item/fileChange/requestApproval";
|
||||
id: RequestId;
|
||||
params: FileChangeRequestApprovalParams;
|
||||
}
|
||||
| { method: "item/tool/requestUserInput"; id: RequestId; params: ToolRequestUserInputParams }
|
||||
| {
|
||||
method: "mcpServer/elicitation/request";
|
||||
id: RequestId;
|
||||
params: McpServerElicitationRequestParams;
|
||||
}
|
||||
| {
|
||||
method: "item/permissions/requestApproval";
|
||||
id: RequestId;
|
||||
params: PermissionsRequestApprovalParams;
|
||||
}
|
||||
| { method: "item/tool/call"; id: RequestId; params: DynamicToolCallParams }
|
||||
| {
|
||||
method: "account/chatgptAuthTokens/refresh";
|
||||
id: RequestId;
|
||||
params: ChatgptAuthTokensRefreshParams;
|
||||
}
|
||||
| { method: "applyPatchApproval"; id: RequestId; params: ApplyPatchApprovalParams }
|
||||
| { method: "execCommandApproval"; id: RequestId; params: ExecCommandApprovalParams };
|
||||
|
||||
@@ -3,4 +3,11 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { SubAgentSource } from "./SubAgentSource.js";
|
||||
|
||||
export type SessionSource = "cli" | "vscode" | "exec" | "mcp" | { "custom": string } | { "subagent": SubAgentSource } | "unknown";
|
||||
export type SessionSource =
|
||||
| "cli"
|
||||
| "vscode"
|
||||
| "exec"
|
||||
| "mcp"
|
||||
| { custom: string }
|
||||
| { subagent: SubAgentSource }
|
||||
| "unknown";
|
||||
|
||||
@@ -6,4 +6,8 @@ import type { ReasoningEffort } from "./ReasoningEffort.js";
|
||||
/**
|
||||
* Settings for a collaboration mode.
|
||||
*/
|
||||
export type Settings = { model: string, reasoning_effort: ReasoningEffort | null, developer_instructions: string | null, };
|
||||
export type Settings = {
|
||||
model: string;
|
||||
reasoning_effort: ReasoningEffort | null;
|
||||
developer_instructions: string | null;
|
||||
};
|
||||
|
||||
@@ -4,4 +4,17 @@
|
||||
import type { AgentPath } from "./AgentPath.js";
|
||||
import type { ThreadId } from "./ThreadId.js";
|
||||
|
||||
export type SubAgentSource = "review" | "compact" | { "thread_spawn": { parent_thread_id: ThreadId, depth: number, agent_path: AgentPath | null, agent_nickname: string | null, agent_role: string | null, } } | "memory_consolidation" | { "other": string };
|
||||
export type SubAgentSource =
|
||||
| "review"
|
||||
| "compact"
|
||||
| {
|
||||
thread_spawn: {
|
||||
parent_thread_id: ThreadId;
|
||||
depth: number;
|
||||
agent_path: AgentPath | null;
|
||||
agent_nickname: string | null;
|
||||
agent_role: string | null;
|
||||
};
|
||||
}
|
||||
| "memory_consolidation"
|
||||
| { other: string };
|
||||
|
||||
@@ -6,4 +6,13 @@ import type { JsonValue } from "./serde_json/JsonValue.js";
|
||||
/**
|
||||
* Definition for a tool the client can call.
|
||||
*/
|
||||
export type Tool = { name: string, title?: string, description?: string, inputSchema: JsonValue, outputSchema?: JsonValue, annotations?: JsonValue, icons?: Array<JsonValue>, _meta?: JsonValue, };
|
||||
export type Tool = {
|
||||
name: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
inputSchema: JsonValue;
|
||||
outputSchema?: JsonValue;
|
||||
annotations?: JsonValue;
|
||||
icons?: Array<JsonValue>;
|
||||
_meta?: JsonValue;
|
||||
};
|
||||
|
||||
@@ -2,4 +2,8 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type WebSearchAction = { "type": "search", query?: string, queries?: Array<string>, } | { "type": "open_page", url?: string, } | { "type": "find_in_page", url?: string, pattern?: string, } | { "type": "other" };
|
||||
export type WebSearchAction =
|
||||
| { type: "search"; query?: string; queries?: Array<string> }
|
||||
| { type: "open_page"; url?: string }
|
||||
| { type: "find_in_page"; url?: string; pattern?: string }
|
||||
| { type: "other" };
|
||||
|
||||
@@ -2,4 +2,9 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type WebSearchLocation = { country: string | null, region: string | null, city: string | null, timezone: string | null, };
|
||||
export type WebSearchLocation = {
|
||||
country: string | null;
|
||||
region: string | null;
|
||||
city: string | null;
|
||||
timezone: string | null;
|
||||
};
|
||||
|
||||
+5
-1
@@ -4,4 +4,8 @@
|
||||
import type { WebSearchContextSize } from "./WebSearchContextSize.js";
|
||||
import type { WebSearchLocation } from "./WebSearchLocation.js";
|
||||
|
||||
export type WebSearchToolConfig = { context_size: WebSearchContextSize | null, allowed_domains: Array<string> | null, location: WebSearchLocation | null, };
|
||||
export type WebSearchToolConfig = {
|
||||
context_size: WebSearchContextSize | null;
|
||||
allowed_domains: Array<string> | null;
|
||||
location: WebSearchLocation | null;
|
||||
};
|
||||
|
||||
+7
-1
@@ -2,4 +2,10 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type JsonValue = number | string | boolean | Array<JsonValue> | { [key in string]?: JsonValue } | null;
|
||||
export type JsonValue =
|
||||
| number
|
||||
| string
|
||||
| boolean
|
||||
| Array<JsonValue>
|
||||
| { [key in string]?: JsonValue }
|
||||
| null;
|
||||
|
||||
+5
-1
@@ -2,4 +2,8 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type AccountLoginCompletedNotification = { loginId: string | null, success: boolean, error: string | null, };
|
||||
export type AccountLoginCompletedNotification = {
|
||||
loginId: string | null;
|
||||
success: boolean;
|
||||
error: string | null;
|
||||
};
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { RateLimitSnapshot } from "./RateLimitSnapshot.js";
|
||||
|
||||
export type AccountRateLimitsUpdatedNotification = { rateLimits: RateLimitSnapshot, };
|
||||
export type AccountRateLimitsUpdatedNotification = { rateLimits: RateLimitSnapshot };
|
||||
|
||||
+1
-1
@@ -4,4 +4,4 @@
|
||||
import type { AuthMode } from "../AuthMode.js";
|
||||
import type { PlanType } from "../PlanType.js";
|
||||
|
||||
export type AccountUpdatedNotification = { authMode: AuthMode | null, planType: PlanType | null, };
|
||||
export type AccountUpdatedNotification = { authMode: AuthMode | null; planType: PlanType | null };
|
||||
|
||||
+11
-8
@@ -5,11 +5,14 @@ import type { AbsolutePathBuf } from "../AbsolutePathBuf.js";
|
||||
import type { FileSystemSandboxEntry } from "./FileSystemSandboxEntry.js";
|
||||
|
||||
export type AdditionalFileSystemPermissions = {
|
||||
/**
|
||||
* This will be removed in favor of `entries`.
|
||||
*/
|
||||
read: Array<AbsolutePathBuf> | null,
|
||||
/**
|
||||
* This will be removed in favor of `entries`.
|
||||
*/
|
||||
write: Array<AbsolutePathBuf> | null, globScanMaxDepth?: number, entries?: Array<FileSystemSandboxEntry>, };
|
||||
/**
|
||||
* This will be removed in favor of `entries`.
|
||||
*/
|
||||
read: Array<AbsolutePathBuf> | null;
|
||||
/**
|
||||
* This will be removed in favor of `entries`.
|
||||
*/
|
||||
write: Array<AbsolutePathBuf> | null;
|
||||
globScanMaxDepth?: number;
|
||||
entries?: Array<FileSystemSandboxEntry>;
|
||||
};
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type AdditionalNetworkPermissions = { enabled: boolean | null, };
|
||||
export type AdditionalNetworkPermissions = { enabled: boolean | null };
|
||||
|
||||
+4
-1
@@ -4,4 +4,7 @@
|
||||
import type { AdditionalFileSystemPermissions } from "./AdditionalFileSystemPermissions.js";
|
||||
import type { AdditionalNetworkPermissions } from "./AdditionalNetworkPermissions.js";
|
||||
|
||||
export type AdditionalPermissionProfile = { network: AdditionalNetworkPermissions | null, fileSystem: AdditionalFileSystemPermissions | null, };
|
||||
export type AdditionalPermissionProfile = {
|
||||
network: AdditionalNetworkPermissions | null;
|
||||
fileSystem: AdditionalFileSystemPermissions | null;
|
||||
};
|
||||
|
||||
+6
-1
@@ -2,4 +2,9 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type AgentMessageDeltaNotification = { threadId: string, turnId: string, itemId: string, delta: string, };
|
||||
export type AgentMessageDeltaNotification = {
|
||||
threadId: string;
|
||||
turnId: string;
|
||||
itemId: string;
|
||||
delta: string;
|
||||
};
|
||||
|
||||
@@ -3,4 +3,12 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { JsonValue } from "../serde_json/JsonValue.js";
|
||||
|
||||
export type AnalyticsConfig = { enabled: boolean | null, } & ({ [key in string]?: number | string | boolean | Array<JsonValue> | { [key in string]?: JsonValue } | null });
|
||||
export type AnalyticsConfig = { enabled: boolean | null } & {
|
||||
[key in string]?:
|
||||
| number
|
||||
| string
|
||||
| boolean
|
||||
| Array<JsonValue>
|
||||
| { [key in string]?: JsonValue }
|
||||
| null;
|
||||
};
|
||||
|
||||
@@ -5,4 +5,11 @@
|
||||
/**
|
||||
* EXPERIMENTAL - app metadata returned by app-list APIs.
|
||||
*/
|
||||
export type AppBranding = { category: string | null, developer: string | null, website: string | null, privacyPolicy: string | null, termsOfService: string | null, isDiscoverableApp: boolean, };
|
||||
export type AppBranding = {
|
||||
category: string | null;
|
||||
developer: string | null;
|
||||
website: string | null;
|
||||
privacyPolicy: string | null;
|
||||
termsOfService: string | null;
|
||||
isDiscoverableApp: boolean;
|
||||
};
|
||||
|
||||
@@ -7,13 +7,26 @@ import type { AppMetadata } from "./AppMetadata.js";
|
||||
/**
|
||||
* EXPERIMENTAL - app metadata returned by app-list APIs.
|
||||
*/
|
||||
export type AppInfo = { id: string, name: string, description: string | null, logoUrl: string | null, logoUrlDark: string | null, distributionChannel: string | null, branding: AppBranding | null, appMetadata: AppMetadata | null, labels: { [key in string]?: string } | null, installUrl: string | null, isAccessible: boolean,
|
||||
/**
|
||||
* Whether this app is enabled in config.toml.
|
||||
* Example:
|
||||
* ```toml
|
||||
* [apps.bad_app]
|
||||
* enabled = false
|
||||
* ```
|
||||
*/
|
||||
isEnabled: boolean, pluginDisplayNames: Array<string>, };
|
||||
export type AppInfo = {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string | null;
|
||||
logoUrl: string | null;
|
||||
logoUrlDark: string | null;
|
||||
distributionChannel: string | null;
|
||||
branding: AppBranding | null;
|
||||
appMetadata: AppMetadata | null;
|
||||
labels: { [key in string]?: string } | null;
|
||||
installUrl: string | null;
|
||||
isAccessible: boolean;
|
||||
/**
|
||||
* Whether this app is enabled in config.toml.
|
||||
* Example:
|
||||
* ```toml
|
||||
* [apps.bad_app]
|
||||
* enabled = false
|
||||
* ```
|
||||
*/
|
||||
isEnabled: boolean;
|
||||
pluginDisplayNames: Array<string>;
|
||||
};
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@ import type { AppInfo } from "./AppInfo.js";
|
||||
/**
|
||||
* EXPERIMENTAL - notification emitted when the app list changes.
|
||||
*/
|
||||
export type AppListUpdatedNotification = { data: Array<AppInfo>, };
|
||||
export type AppListUpdatedNotification = { data: Array<AppInfo> };
|
||||
|
||||
@@ -4,4 +4,17 @@
|
||||
import type { AppReview } from "./AppReview.js";
|
||||
import type { AppScreenshot } from "./AppScreenshot.js";
|
||||
|
||||
export type AppMetadata = { review: AppReview | null, categories: Array<string> | null, subCategories: Array<string> | null, seoDescription: string | null, screenshots: Array<AppScreenshot> | null, developer: string | null, version: string | null, versionId: string | null, versionNotes: string | null, firstPartyType: string | null, firstPartyRequiresInstall: boolean | null, showInComposerWhenUnlinked: boolean | null, };
|
||||
export type AppMetadata = {
|
||||
review: AppReview | null;
|
||||
categories: Array<string> | null;
|
||||
subCategories: Array<string> | null;
|
||||
seoDescription: string | null;
|
||||
screenshots: Array<AppScreenshot> | null;
|
||||
developer: string | null;
|
||||
version: string | null;
|
||||
versionId: string | null;
|
||||
versionNotes: string | null;
|
||||
firstPartyType: string | null;
|
||||
firstPartyRequiresInstall: boolean | null;
|
||||
showInComposerWhenUnlinked: boolean | null;
|
||||
};
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type AppReview = { status: string, };
|
||||
export type AppReview = { status: string };
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type AppScreenshot = { url: string | null, fileId: string | null, userPrompt: string, };
|
||||
export type AppScreenshot = { url: string | null; fileId: string | null; userPrompt: string };
|
||||
|
||||
@@ -5,4 +5,10 @@
|
||||
/**
|
||||
* EXPERIMENTAL - app metadata summary for plugin responses.
|
||||
*/
|
||||
export type AppSummary = { id: string, name: string, description: string | null, installUrl: string | null, needsAuth: boolean, };
|
||||
export type AppSummary = {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string | null;
|
||||
installUrl: string | null;
|
||||
needsAuth: boolean;
|
||||
};
|
||||
|
||||
@@ -3,4 +3,6 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { AppToolApproval } from "./AppToolApproval.js";
|
||||
|
||||
export type AppToolsConfig = { [key in string]?: { enabled: boolean | null, approval_mode: AppToolApproval | null, } };
|
||||
export type AppToolsConfig = {
|
||||
[key in string]?: { enabled: boolean | null; approval_mode: AppToolApproval | null };
|
||||
};
|
||||
|
||||
@@ -1,8 +1,17 @@
|
||||
// GENERATED CODE! DO NOT MODIFY BY HAND!
|
||||
|
||||
import type { AppsDefaultConfig } from "./AppsDefaultConfig.js";
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { AppToolApproval } from "./AppToolApproval.js";
|
||||
import type { AppToolsConfig } from "./AppToolsConfig.js";
|
||||
import type { AppsDefaultConfig } from "./AppsDefaultConfig.js";
|
||||
|
||||
export type AppsConfig = { _default: AppsDefaultConfig | null, } & ({ [key in string]?: { enabled: boolean, destructive_enabled: boolean | null, open_world_enabled: boolean | null, default_tools_approval_mode: AppToolApproval | null, default_tools_enabled: boolean | null, tools: AppToolsConfig | null, } });
|
||||
export type AppsConfig = { _default: AppsDefaultConfig | null } & {
|
||||
[key in string]?: {
|
||||
enabled: boolean;
|
||||
destructive_enabled: boolean | null;
|
||||
open_world_enabled: boolean | null;
|
||||
default_tools_approval_mode: AppToolApproval | null;
|
||||
default_tools_enabled: boolean | null;
|
||||
tools: AppToolsConfig | null;
|
||||
};
|
||||
};
|
||||
|
||||
+5
-1
@@ -2,4 +2,8 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type AppsDefaultConfig = { enabled: boolean, destructive_enabled: boolean, open_world_enabled: boolean, };
|
||||
export type AppsDefaultConfig = {
|
||||
enabled: boolean;
|
||||
destructive_enabled: boolean;
|
||||
open_world_enabled: boolean;
|
||||
};
|
||||
|
||||
+17
-16
@@ -6,19 +6,20 @@
|
||||
* EXPERIMENTAL - list available apps/connectors.
|
||||
*/
|
||||
export type AppsListParams = {
|
||||
/**
|
||||
* Opaque pagination cursor returned by a previous call.
|
||||
*/
|
||||
cursor?: string | null,
|
||||
/**
|
||||
* Optional page size; defaults to a reasonable server-side value.
|
||||
*/
|
||||
limit?: number | null,
|
||||
/**
|
||||
* Optional thread id used to evaluate app feature gating from that thread's config.
|
||||
*/
|
||||
threadId?: string | null,
|
||||
/**
|
||||
* When true, bypass app caches and fetch the latest data from sources.
|
||||
*/
|
||||
forceRefetch?: boolean, };
|
||||
/**
|
||||
* Opaque pagination cursor returned by a previous call.
|
||||
*/
|
||||
cursor?: string | null;
|
||||
/**
|
||||
* Optional page size; defaults to a reasonable server-side value.
|
||||
*/
|
||||
limit?: number | null;
|
||||
/**
|
||||
* Optional thread id used to evaluate app feature gating from that thread's config.
|
||||
*/
|
||||
threadId?: string | null;
|
||||
/**
|
||||
* When true, bypass app caches and fetch the latest data from sources.
|
||||
*/
|
||||
forceRefetch?: boolean;
|
||||
};
|
||||
|
||||
+8
-6
@@ -6,9 +6,11 @@ import type { AppInfo } from "./AppInfo.js";
|
||||
/**
|
||||
* EXPERIMENTAL - app list response.
|
||||
*/
|
||||
export type AppsListResponse = { data: Array<AppInfo>,
|
||||
/**
|
||||
* Opaque cursor to pass to the next call to continue after the last item.
|
||||
* If None, there are no more items to return.
|
||||
*/
|
||||
nextCursor: string | null, };
|
||||
export type AppsListResponse = {
|
||||
data: Array<AppInfo>;
|
||||
/**
|
||||
* Opaque cursor to pass to the next call to continue after the last item.
|
||||
* If None, there are no more items to return.
|
||||
*/
|
||||
nextCursor: string | null;
|
||||
};
|
||||
|
||||
@@ -2,4 +2,17 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type AskForApproval = "untrusted" | "on-failure" | "on-request" | { "granular": { sandbox_approval: boolean, rules: boolean, skill_approval: boolean, request_permissions: boolean, mcp_elicitations: boolean, } } | "never";
|
||||
export type AskForApproval =
|
||||
| "untrusted"
|
||||
| "on-failure"
|
||||
| "on-request"
|
||||
| {
|
||||
granular: {
|
||||
sandbox_approval: boolean;
|
||||
rules: boolean;
|
||||
skill_approval: boolean;
|
||||
request_permissions: boolean;
|
||||
mcp_elicitations: boolean;
|
||||
};
|
||||
}
|
||||
| "never";
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ByteRange = { start: number, end: number, };
|
||||
export type ByteRange = { start: number; end: number };
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type CancelLoginAccountParams = { loginId: string, };
|
||||
export type CancelLoginAccountParams = { loginId: string };
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { CancelLoginAccountStatus } from "./CancelLoginAccountStatus.js";
|
||||
|
||||
export type CancelLoginAccountResponse = { status: CancelLoginAccountStatus, };
|
||||
export type CancelLoginAccountResponse = { status: CancelLoginAccountStatus };
|
||||
|
||||
+13
-11
@@ -3,14 +3,16 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { ChatgptAuthTokensRefreshReason } from "./ChatgptAuthTokensRefreshReason.js";
|
||||
|
||||
export type ChatgptAuthTokensRefreshParams = { reason: ChatgptAuthTokensRefreshReason,
|
||||
/**
|
||||
* Workspace/account identifier that Codex was previously using.
|
||||
*
|
||||
* Clients that manage multiple accounts/workspaces can use this as a hint
|
||||
* to refresh the token for the correct workspace.
|
||||
*
|
||||
* This may be `null` when the prior auth state did not include a workspace
|
||||
* identifier (`chatgpt_account_id`).
|
||||
*/
|
||||
previousAccountId?: string | null, };
|
||||
export type ChatgptAuthTokensRefreshParams = {
|
||||
reason: ChatgptAuthTokensRefreshReason;
|
||||
/**
|
||||
* Workspace/account identifier that Codex was previously using.
|
||||
*
|
||||
* Clients that manage multiple accounts/workspaces can use this as a hint
|
||||
* to refresh the token for the correct workspace.
|
||||
*
|
||||
* This may be `null` when the prior auth state did not include a workspace
|
||||
* identifier (`chatgpt_account_id`).
|
||||
*/
|
||||
previousAccountId?: string | null;
|
||||
};
|
||||
|
||||
+5
-1
@@ -2,4 +2,8 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ChatgptAuthTokensRefreshResponse = { accessToken: string, chatgptAccountId: string, chatgptPlanType: string | null, };
|
||||
export type ChatgptAuthTokensRefreshResponse = {
|
||||
accessToken: string;
|
||||
chatgptAccountId: string;
|
||||
chatgptPlanType: string | null;
|
||||
};
|
||||
|
||||
@@ -9,4 +9,19 @@ import type { NonSteerableTurnKind } from "./NonSteerableTurnKind.js";
|
||||
* When an upstream HTTP status is available (for example, from the Responses API or a provider),
|
||||
* it is forwarded in `httpStatusCode` on the relevant `codexErrorInfo` variant.
|
||||
*/
|
||||
export type CodexErrorInfo = "contextWindowExceeded" | "usageLimitExceeded" | "serverOverloaded" | "cyberPolicy" | { "httpConnectionFailed": { httpStatusCode: number | null, } } | { "responseStreamConnectionFailed": { httpStatusCode: number | null, } } | "internalServerError" | "unauthorized" | "badRequest" | "threadRollbackFailed" | "sandboxError" | { "responseStreamDisconnected": { httpStatusCode: number | null, } } | { "responseTooManyFailedAttempts": { httpStatusCode: number | null, } } | { "activeTurnNotSteerable": { turnKind: NonSteerableTurnKind, } } | "other";
|
||||
export type CodexErrorInfo =
|
||||
| "contextWindowExceeded"
|
||||
| "usageLimitExceeded"
|
||||
| "serverOverloaded"
|
||||
| "cyberPolicy"
|
||||
| { httpConnectionFailed: { httpStatusCode: number | null } }
|
||||
| { responseStreamConnectionFailed: { httpStatusCode: number | null } }
|
||||
| "internalServerError"
|
||||
| "unauthorized"
|
||||
| "badRequest"
|
||||
| "threadRollbackFailed"
|
||||
| "sandboxError"
|
||||
| { responseStreamDisconnected: { httpStatusCode: number | null } }
|
||||
| { responseTooManyFailedAttempts: { httpStatusCode: number | null } }
|
||||
| { activeTurnNotSteerable: { turnKind: NonSteerableTurnKind } }
|
||||
| "other";
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { CollabAgentStatus } from "./CollabAgentStatus.js";
|
||||
|
||||
export type CollabAgentState = { status: CollabAgentStatus, message: string | null, };
|
||||
export type CollabAgentState = { status: CollabAgentStatus; message: string | null };
|
||||
|
||||
+8
-1
@@ -2,4 +2,11 @@
|
||||
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type CollabAgentStatus = "pendingInit" | "running" | "interrupted" | "completed" | "errored" | "shutdown" | "notFound";
|
||||
export type CollabAgentStatus =
|
||||
| "pendingInit"
|
||||
| "running"
|
||||
| "interrupted"
|
||||
| "completed"
|
||||
| "errored"
|
||||
| "shutdown"
|
||||
| "notFound";
|
||||
|
||||
+6
-1
@@ -7,4 +7,9 @@ import type { ReasoningEffort } from "../ReasoningEffort.js";
|
||||
/**
|
||||
* EXPERIMENTAL - collaboration mode preset metadata for clients.
|
||||
*/
|
||||
export type CollaborationModeMask = { name: string, mode: ModeKind | null, model: string | null, reasoning_effort: ReasoningEffort | null, };
|
||||
export type CollaborationModeMask = {
|
||||
name: string;
|
||||
mode: ModeKind | null;
|
||||
model: string | null;
|
||||
reasoning_effort: ReasoningEffort | null;
|
||||
};
|
||||
|
||||
@@ -3,4 +3,8 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { AbsolutePathBuf } from "../AbsolutePathBuf.js";
|
||||
|
||||
export type CommandAction = { "type": "read", command: string, name: string, path: AbsolutePathBuf, } | { "type": "listFiles", command: string, path: string | null, } | { "type": "search", command: string, query: string | null, path: string | null, } | { "type": "unknown", command: string, };
|
||||
export type CommandAction =
|
||||
| { type: "read"; command: string; name: string; path: AbsolutePathBuf }
|
||||
| { type: "listFiles"; command: string; path: string | null }
|
||||
| { type: "search"; command: string; query: string | null; path: string | null }
|
||||
| { type: "unknown"; command: string };
|
||||
|
||||
+19
-18
@@ -10,21 +10,22 @@ import type { CommandExecOutputStream } from "./CommandExecOutputStream.js";
|
||||
* closes, the server terminates the process.
|
||||
*/
|
||||
export type CommandExecOutputDeltaNotification = {
|
||||
/**
|
||||
* Client-supplied, connection-scoped `processId` from the original
|
||||
* `command/exec` request.
|
||||
*/
|
||||
processId: string,
|
||||
/**
|
||||
* Output stream for this chunk.
|
||||
*/
|
||||
stream: CommandExecOutputStream,
|
||||
/**
|
||||
* Base64-encoded output bytes.
|
||||
*/
|
||||
deltaBase64: string,
|
||||
/**
|
||||
* `true` on the final streamed chunk for a stream when `outputBytesCap`
|
||||
* truncated later output on that stream.
|
||||
*/
|
||||
capReached: boolean, };
|
||||
/**
|
||||
* Client-supplied, connection-scoped `processId` from the original
|
||||
* `command/exec` request.
|
||||
*/
|
||||
processId: string;
|
||||
/**
|
||||
* Output stream for this chunk.
|
||||
*/
|
||||
stream: CommandExecOutputStream;
|
||||
/**
|
||||
* Base64-encoded output bytes.
|
||||
*/
|
||||
deltaBase64: string;
|
||||
/**
|
||||
* `true` on the final streamed chunk for a stream when `outputBytesCap`
|
||||
* truncated later output on that stream.
|
||||
*/
|
||||
capReached: boolean;
|
||||
};
|
||||
|
||||
+91
-90
@@ -14,93 +14,94 @@ import type { SandboxPolicy } from "./SandboxPolicy.js";
|
||||
* connection have been emitted.
|
||||
*/
|
||||
export type CommandExecParams = {
|
||||
/**
|
||||
* Command argv vector. Empty arrays are rejected.
|
||||
*/
|
||||
command: Array<string>,
|
||||
/**
|
||||
* Optional client-supplied, connection-scoped process id.
|
||||
*
|
||||
* Required for `tty`, `streamStdin`, `streamStdoutStderr`, and follow-up
|
||||
* `command/exec/write`, `command/exec/resize`, and
|
||||
* `command/exec/terminate` calls. When omitted, buffered execution gets an
|
||||
* internal id that is not exposed to the client.
|
||||
*/
|
||||
processId?: string | null,
|
||||
/**
|
||||
* Enable PTY mode.
|
||||
*
|
||||
* This implies `streamStdin` and `streamStdoutStderr`.
|
||||
*/
|
||||
tty?: boolean,
|
||||
/**
|
||||
* Allow follow-up `command/exec/write` requests to write stdin bytes.
|
||||
*
|
||||
* Requires a client-supplied `processId`.
|
||||
*/
|
||||
streamStdin?: boolean,
|
||||
/**
|
||||
* Stream stdout/stderr via `command/exec/outputDelta` notifications.
|
||||
*
|
||||
* Streamed bytes are not duplicated into the final response and require a
|
||||
* client-supplied `processId`.
|
||||
*/
|
||||
streamStdoutStderr?: boolean,
|
||||
/**
|
||||
* Optional per-stream stdout/stderr capture cap in bytes.
|
||||
*
|
||||
* When omitted, the server default applies. Cannot be combined with
|
||||
* `disableOutputCap`.
|
||||
*/
|
||||
outputBytesCap?: number | null,
|
||||
/**
|
||||
* Disable stdout/stderr capture truncation for this request.
|
||||
*
|
||||
* Cannot be combined with `outputBytesCap`.
|
||||
*/
|
||||
disableOutputCap?: boolean,
|
||||
/**
|
||||
* Disable the timeout entirely for this request.
|
||||
*
|
||||
* Cannot be combined with `timeoutMs`.
|
||||
*/
|
||||
disableTimeout?: boolean,
|
||||
/**
|
||||
* Optional timeout in milliseconds.
|
||||
*
|
||||
* When omitted, the server default applies. Cannot be combined with
|
||||
* `disableTimeout`.
|
||||
*/
|
||||
timeoutMs?: number | null,
|
||||
/**
|
||||
* Optional working directory. Defaults to the server cwd.
|
||||
*/
|
||||
cwd?: string | null,
|
||||
/**
|
||||
* Optional environment overrides merged into the server-computed
|
||||
* environment.
|
||||
*
|
||||
* Matching names override inherited values. Set a key to `null` to unset
|
||||
* an inherited variable.
|
||||
*/
|
||||
env?: { [key in string]?: string | null } | null,
|
||||
/**
|
||||
* Optional initial PTY size in character cells. Only valid when `tty` is
|
||||
* true.
|
||||
*/
|
||||
size?: CommandExecTerminalSize | null,
|
||||
/**
|
||||
* Optional sandbox policy for this command.
|
||||
*
|
||||
* Uses the same shape as thread/turn execution sandbox configuration and
|
||||
* defaults to the user's configured policy when omitted. Cannot be
|
||||
* combined with `permissionProfile`.
|
||||
*/
|
||||
sandboxPolicy?: SandboxPolicy | null,
|
||||
/**
|
||||
* Optional full permissions profile for this command.
|
||||
*
|
||||
* Defaults to the user's configured permissions when omitted. Cannot be
|
||||
* combined with `sandboxPolicy`.
|
||||
*/
|
||||
permissionProfile?: PermissionProfile | null, };
|
||||
/**
|
||||
* Command argv vector. Empty arrays are rejected.
|
||||
*/
|
||||
command: Array<string>;
|
||||
/**
|
||||
* Optional client-supplied, connection-scoped process id.
|
||||
*
|
||||
* Required for `tty`, `streamStdin`, `streamStdoutStderr`, and follow-up
|
||||
* `command/exec/write`, `command/exec/resize`, and
|
||||
* `command/exec/terminate` calls. When omitted, buffered execution gets an
|
||||
* internal id that is not exposed to the client.
|
||||
*/
|
||||
processId?: string | null;
|
||||
/**
|
||||
* Enable PTY mode.
|
||||
*
|
||||
* This implies `streamStdin` and `streamStdoutStderr`.
|
||||
*/
|
||||
tty?: boolean;
|
||||
/**
|
||||
* Allow follow-up `command/exec/write` requests to write stdin bytes.
|
||||
*
|
||||
* Requires a client-supplied `processId`.
|
||||
*/
|
||||
streamStdin?: boolean;
|
||||
/**
|
||||
* Stream stdout/stderr via `command/exec/outputDelta` notifications.
|
||||
*
|
||||
* Streamed bytes are not duplicated into the final response and require a
|
||||
* client-supplied `processId`.
|
||||
*/
|
||||
streamStdoutStderr?: boolean;
|
||||
/**
|
||||
* Optional per-stream stdout/stderr capture cap in bytes.
|
||||
*
|
||||
* When omitted, the server default applies. Cannot be combined with
|
||||
* `disableOutputCap`.
|
||||
*/
|
||||
outputBytesCap?: number | null;
|
||||
/**
|
||||
* Disable stdout/stderr capture truncation for this request.
|
||||
*
|
||||
* Cannot be combined with `outputBytesCap`.
|
||||
*/
|
||||
disableOutputCap?: boolean;
|
||||
/**
|
||||
* Disable the timeout entirely for this request.
|
||||
*
|
||||
* Cannot be combined with `timeoutMs`.
|
||||
*/
|
||||
disableTimeout?: boolean;
|
||||
/**
|
||||
* Optional timeout in milliseconds.
|
||||
*
|
||||
* When omitted, the server default applies. Cannot be combined with
|
||||
* `disableTimeout`.
|
||||
*/
|
||||
timeoutMs?: number | null;
|
||||
/**
|
||||
* Optional working directory. Defaults to the server cwd.
|
||||
*/
|
||||
cwd?: string | null;
|
||||
/**
|
||||
* Optional environment overrides merged into the server-computed
|
||||
* environment.
|
||||
*
|
||||
* Matching names override inherited values. Set a key to `null` to unset
|
||||
* an inherited variable.
|
||||
*/
|
||||
env?: { [key in string]?: string | null } | null;
|
||||
/**
|
||||
* Optional initial PTY size in character cells. Only valid when `tty` is
|
||||
* true.
|
||||
*/
|
||||
size?: CommandExecTerminalSize | null;
|
||||
/**
|
||||
* Optional sandbox policy for this command.
|
||||
*
|
||||
* Uses the same shape as thread/turn execution sandbox configuration and
|
||||
* defaults to the user's configured policy when omitted. Cannot be
|
||||
* combined with `permissionProfile`.
|
||||
*/
|
||||
sandboxPolicy?: SandboxPolicy | null;
|
||||
/**
|
||||
* Optional full permissions profile for this command.
|
||||
*
|
||||
* Defaults to the user's configured permissions when omitted. Cannot be
|
||||
* combined with `sandboxPolicy`.
|
||||
*/
|
||||
permissionProfile?: PermissionProfile | null;
|
||||
};
|
||||
|
||||
+10
-9
@@ -7,12 +7,13 @@ import type { CommandExecTerminalSize } from "./CommandExecTerminalSize.js";
|
||||
* Resize a running PTY-backed `command/exec` session.
|
||||
*/
|
||||
export type CommandExecResizeParams = {
|
||||
/**
|
||||
* Client-supplied, connection-scoped `processId` from the original
|
||||
* `command/exec` request.
|
||||
*/
|
||||
processId: string,
|
||||
/**
|
||||
* New PTY size in character cells.
|
||||
*/
|
||||
size: CommandExecTerminalSize, };
|
||||
/**
|
||||
* Client-supplied, connection-scoped `processId` from the original
|
||||
* `command/exec` request.
|
||||
*/
|
||||
processId: string;
|
||||
/**
|
||||
* New PTY size in character cells.
|
||||
*/
|
||||
size: CommandExecTerminalSize;
|
||||
};
|
||||
|
||||
+17
-16
@@ -6,19 +6,20 @@
|
||||
* Final buffered result for `command/exec`.
|
||||
*/
|
||||
export type CommandExecResponse = {
|
||||
/**
|
||||
* Process exit code.
|
||||
*/
|
||||
exitCode: number,
|
||||
/**
|
||||
* Buffered stdout capture.
|
||||
*
|
||||
* Empty when stdout was streamed via `command/exec/outputDelta`.
|
||||
*/
|
||||
stdout: string,
|
||||
/**
|
||||
* Buffered stderr capture.
|
||||
*
|
||||
* Empty when stderr was streamed via `command/exec/outputDelta`.
|
||||
*/
|
||||
stderr: string, };
|
||||
/**
|
||||
* Process exit code.
|
||||
*/
|
||||
exitCode: number;
|
||||
/**
|
||||
* Buffered stdout capture.
|
||||
*
|
||||
* Empty when stdout was streamed via `command/exec/outputDelta`.
|
||||
*/
|
||||
stdout: string;
|
||||
/**
|
||||
* Buffered stderr capture.
|
||||
*
|
||||
* Empty when stderr was streamed via `command/exec/outputDelta`.
|
||||
*/
|
||||
stderr: string;
|
||||
};
|
||||
|
||||
+9
-8
@@ -6,11 +6,12 @@
|
||||
* PTY size in character cells for `command/exec` PTY sessions.
|
||||
*/
|
||||
export type CommandExecTerminalSize = {
|
||||
/**
|
||||
* Terminal height in character cells.
|
||||
*/
|
||||
rows: number,
|
||||
/**
|
||||
* Terminal width in character cells.
|
||||
*/
|
||||
cols: number, };
|
||||
/**
|
||||
* Terminal height in character cells.
|
||||
*/
|
||||
rows: number;
|
||||
/**
|
||||
* Terminal width in character cells.
|
||||
*/
|
||||
cols: number;
|
||||
};
|
||||
|
||||
+6
-5
@@ -6,8 +6,9 @@
|
||||
* Terminate a running `command/exec` session.
|
||||
*/
|
||||
export type CommandExecTerminateParams = {
|
||||
/**
|
||||
* Client-supplied, connection-scoped `processId` from the original
|
||||
* `command/exec` request.
|
||||
*/
|
||||
processId: string, };
|
||||
/**
|
||||
* Client-supplied, connection-scoped `processId` from the original
|
||||
* `command/exec` request.
|
||||
*/
|
||||
processId: string;
|
||||
};
|
||||
|
||||
+14
-13
@@ -7,16 +7,17 @@
|
||||
* both.
|
||||
*/
|
||||
export type CommandExecWriteParams = {
|
||||
/**
|
||||
* Client-supplied, connection-scoped `processId` from the original
|
||||
* `command/exec` request.
|
||||
*/
|
||||
processId: string,
|
||||
/**
|
||||
* Optional base64-encoded stdin bytes to write.
|
||||
*/
|
||||
deltaBase64?: string | null,
|
||||
/**
|
||||
* Close stdin after writing `deltaBase64`, if present.
|
||||
*/
|
||||
closeStdin?: boolean, };
|
||||
/**
|
||||
* Client-supplied, connection-scoped `processId` from the original
|
||||
* `command/exec` request.
|
||||
*/
|
||||
processId: string;
|
||||
/**
|
||||
* Optional base64-encoded stdin bytes to write.
|
||||
*/
|
||||
deltaBase64?: string | null;
|
||||
/**
|
||||
* Close stdin after writing `deltaBase64`, if present.
|
||||
*/
|
||||
closeStdin?: boolean;
|
||||
};
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user