@thinkai/tai-api-contract 2.253.0 → 2.254.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4961,6 +4961,7 @@ export interface paths {
4961
4961
  * Workspace MCP endpoint (Streamable HTTP, JSON-RPC)
4962
4962
  * @description Hosted, read-only MCP server for one workspace. Authenticate with an MCP bearer token (an OAuth access token or a personal token), not a Supabase JWT. Each call carries one JSON-RPC 2.0 message and gets one JSON response. A message without `id` (a notification) gets `202` with no body. Supported methods: `initialize`, `tools/list`, `tools/call`; any other method returns JSON-RPC error `-32601`. A tool failure returns `200` with `result.isError: true`.
4963
4963
  * Tools: the Code Chat tools (including `ask`), `read_wiki_structure` and `read_wiki_contents` (one repository, pass `repoId`), and `read_workspace_wiki_structure` and `read_workspace_wiki_contents` (the workspace wiki, pass `slug`; stale pages are marked). Code Intelligence must be on for the workspace. Rate limited per client IP.
4964
+ * Progress (opt-in): an `ask` can run for minutes, longer than some clients wait. A `tools/call` for `ask` that sends `params._meta.progressToken` and an `Accept` header that lists `text/event-stream` is answered as an event stream: `notifications/progress` events (`params.progressToken`, a rising `params.progress`, a short `params.message`) while it works, then one JSON-RPC response event with the same body as the JSON reply. Any other request, and any other tool, gets the `application/json` reply.
4964
4965
  */
4965
4966
  post: operations["callWorkspaceMcp"];
4966
4967
  delete?: never;
@@ -14557,7 +14558,7 @@ export interface components {
14557
14558
  id?: string | number;
14558
14559
  /** @description `initialize`, `tools/list`, or `tools/call` */
14559
14560
  method: string;
14560
- /** @description For `tools/call`, `{ name, arguments }`. */
14561
+ /** @description For `tools/call`, `{ name, arguments }`, and optionally `_meta.progressToken` (a string or number) to ask for progress events on a slow `ask`. */
14561
14562
  params?: {
14562
14563
  [key: string]: unknown;
14563
14564
  };
@@ -30391,13 +30392,21 @@ export interface operations {
30391
30392
  };
30392
30393
  };
30393
30394
  responses: {
30394
- /** @description JSON-RPC response (result or error) */
30395
+ /** @description JSON-RPC response (result or error). `text/event-stream` only for an `ask` that asked for progress; see the operation description. */
30395
30396
  200: {
30396
30397
  headers: {
30397
30398
  [name: string]: unknown;
30398
30399
  };
30399
30400
  content: {
30400
30401
  "application/json": components["schemas"]["McpJsonRpcResponseDto"];
30402
+ /**
30403
+ * @example event: message
30404
+ * data: {"jsonrpc":"2.0","method":"notifications/progress","params":{"progressToken":"p1","progress":1,"message":"Choosing repositories"}}
30405
+ *
30406
+ * event: message
30407
+ * data: {"jsonrpc":"2.0","id":1,"result":{"content":[{"type":"text","text":"{}"}],"isError":false}}
30408
+ */
30409
+ "text/event-stream": string;
30401
30410
  };
30402
30411
  };
30403
30412
  /** @description Notification accepted (no `id`); no body */