@thinkai/tai-api-contract 2.253.0 → 2.254.1

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.
@@ -3263,7 +3263,7 @@ export interface paths {
3263
3263
  };
3264
3264
  /**
3265
3265
  * List repo readiness scores (paginated)
3266
- * @description Returns a page of repository readiness scorecards. Use `GET .../readiness/repos/{repoId}` for a single repo. Summary aggregates on the Agentic Foundation dashboard use separate aggregate queries over the full workspace (#403).
3266
+ * @description Returns a page of repository readiness scorecards. Use `GET .../readiness/repos/{repoId}` for a single repo. Summary aggregates on the Agentic Foundation dashboard use separate aggregate queries over the full workspace (#403). When light projection is enabled (`backend-api.readinessLightProjection`, on in prod/do-dev), issue rows are omitted (`issues: []`) and `criteriaDetails` is not populated; use `openIssueCount` / `criticalOpenIssueCount` per dimension. Repo detail and Agentic Foundation dimension slices still return full issue arrays and `criteriaDetails`.
3267
3267
  */
3268
3268
  get: operations["listReadinessRepos"];
3269
3269
  put?: never;
@@ -4042,8 +4042,8 @@ export interface paths {
4042
4042
  cookie?: never;
4043
4043
  };
4044
4044
  /**
4045
- * AI resolution hub (full readiness scorecards)
4046
- * @description Returns the same payload as `GET .../readiness/repos` (all dimensions per repo) for cross-pillar hub views (issue #288).
4045
+ * AI resolution hub (readiness scorecards)
4046
+ * @description Returns the same payload as `GET .../readiness/repos` (all dimensions per repo) for cross-pillar hub views (issue #288). When light projection is enabled, issue rows and `criteriaDetails` are omitted the same way as the main repo list; counts remain.
4047
4047
  */
4048
4048
  get: operations["getAgenticFoundationAiResolutionHub"];
4049
4049
  put?: never;
@@ -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
  };
@@ -28085,7 +28086,7 @@ export interface operations {
28085
28086
  };
28086
28087
  requestBody?: never;
28087
28088
  responses: {
28088
- /** @description Full repository readiness scorecards */
28089
+ /** @description Repository readiness scorecards (light projection may omit issue rows) */
28089
28090
  200: {
28090
28091
  headers: {
28091
28092
  [name: string]: unknown;
@@ -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 */