@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.
@@ -1,7 +1,7 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
3
  title: ThinkAI API
4
- version: 2.253.0
4
+ version: 2.254.1
5
5
  description: >
6
6
  Contract surface for the AI Driven SDLC backend used by ThinkAI.
7
7
  Workspace-scoped routes use `/workspaces/{workspaceId}/...`.
@@ -9014,7 +9014,11 @@ paths:
9014
9014
  description: >
9015
9015
  Returns a page of repository readiness scorecards. Use `GET .../readiness/repos/{repoId}`
9016
9016
  for a single repo. Summary aggregates on the Agentic Foundation dashboard use separate
9017
- aggregate queries over the full workspace (#403).
9017
+ aggregate queries over the full workspace (#403). When light projection is enabled
9018
+ (`backend-api.readinessLightProjection`, on in prod/do-dev), issue rows are omitted
9019
+ (`issues: []`) and `criteriaDetails` is not populated; use `openIssueCount` /
9020
+ `criticalOpenIssueCount` per dimension. Repo detail and Agentic Foundation dimension
9021
+ slices still return full issue arrays and `criteriaDetails`.
9018
9022
  parameters:
9019
9023
  - $ref: "#/components/parameters/WorkspaceId"
9020
9024
  - $ref: "#/components/parameters/PaginationLimit"
@@ -11191,10 +11195,11 @@ paths:
11191
11195
  /workspaces/{workspaceId}/agentic-foundation/ai-resolution-hub:
11192
11196
  get:
11193
11197
  tags: [AgenticFoundation]
11194
- summary: AI resolution hub (full readiness scorecards)
11198
+ summary: AI resolution hub (readiness scorecards)
11195
11199
  description: >
11196
11200
  Returns the same payload as `GET .../readiness/repos` (all dimensions per repo) for
11197
- cross-pillar hub views (issue #288).
11201
+ cross-pillar hub views (issue #288). When light projection is enabled, issue rows and
11202
+ `criteriaDetails` are omitted the same way as the main repo list; counts remain.
11198
11203
  operationId: getAgenticFoundationAiResolutionHub
11199
11204
  parameters:
11200
11205
  - $ref: "#/components/parameters/WorkspaceId"
@@ -11206,7 +11211,7 @@ paths:
11206
11211
  - $ref: "#/components/parameters/ReadinessRepoLanguage"
11207
11212
  responses:
11208
11213
  "200":
11209
- description: Full repository readiness scorecards
11214
+ description: Repository readiness scorecards (light projection may omit issue rows)
11210
11215
  content:
11211
11216
  application/json:
11212
11217
  schema:
@@ -13339,6 +13344,13 @@ paths:
13339
13344
  `read_wiki_contents` (one repository, pass `repoId`), and `read_workspace_wiki_structure`
13340
13345
  and `read_workspace_wiki_contents` (the workspace wiki, pass `slug`; stale pages are
13341
13346
  marked). Code Intelligence must be on for the workspace. Rate limited per client IP.
13347
+
13348
+ Progress (opt-in): an `ask` can run for minutes, longer than some clients wait. A
13349
+ `tools/call` for `ask` that sends `params._meta.progressToken` and an `Accept` header
13350
+ that lists `text/event-stream` is answered as an event stream: `notifications/progress`
13351
+ events (`params.progressToken`, a rising `params.progress`, a short `params.message`)
13352
+ while it works, then one JSON-RPC response event with the same body as the JSON reply.
13353
+ Any other request, and any other tool, gets the `application/json` reply.
13342
13354
  operationId: callWorkspaceMcp
13343
13355
  security:
13344
13356
  - mcpBearerAuth: []
@@ -13356,11 +13368,25 @@ paths:
13356
13368
  method: tools/list
13357
13369
  responses:
13358
13370
  "200":
13359
- description: JSON-RPC response (result or error)
13371
+ description: >-
13372
+ JSON-RPC response (result or error). `text/event-stream` only for an `ask` that
13373
+ asked for progress; see the operation description.
13360
13374
  content:
13361
13375
  application/json:
13362
13376
  schema:
13363
13377
  $ref: "#/components/schemas/McpJsonRpcResponseDto"
13378
+ text/event-stream:
13379
+ schema:
13380
+ type: string
13381
+ description: >-
13382
+ Server-sent events. Each `data:` line is JSON: a `notifications/progress`
13383
+ notification, and last the JSON-RPC response (`McpJsonRpcResponseDto`).
13384
+ example: |
13385
+ event: message
13386
+ data: {"jsonrpc":"2.0","method":"notifications/progress","params":{"progressToken":"p1","progress":1,"message":"Choosing repositories"}}
13387
+
13388
+ event: message
13389
+ data: {"jsonrpc":"2.0","id":1,"result":{"content":[{"type":"text","text":"{}"}],"isError":false}}
13364
13390
  "202":
13365
13391
  description: Notification accepted (no `id`); no body
13366
13392
  "401":
@@ -34808,7 +34834,9 @@ components:
34808
34834
  params:
34809
34835
  type: object
34810
34836
  additionalProperties: true
34811
- description: For `tools/call`, `{ name, arguments }`.
34837
+ description: >-
34838
+ For `tools/call`, `{ name, arguments }`, and optionally `_meta.progressToken`
34839
+ (a string or number) to ask for progress events on a slow `ask`.
34812
34840
 
34813
34841
  McpJsonRpcResponseDto:
34814
34842
  type: object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.253.0",
3
+ "version": "2.254.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -3264,7 +3264,7 @@ export interface paths {
3264
3264
  };
3265
3265
  /**
3266
3266
  * List repo readiness scores (paginated)
3267
- * @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).
3267
+ * @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`.
3268
3268
  */
3269
3269
  get: operations["listReadinessRepos"];
3270
3270
  put?: never;
@@ -4043,8 +4043,8 @@ export interface paths {
4043
4043
  cookie?: never;
4044
4044
  };
4045
4045
  /**
4046
- * AI resolution hub (full readiness scorecards)
4047
- * @description Returns the same payload as `GET .../readiness/repos` (all dimensions per repo) for cross-pillar hub views (issue #288).
4046
+ * AI resolution hub (readiness scorecards)
4047
+ * @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.
4048
4048
  */
4049
4049
  get: operations["getAgenticFoundationAiResolutionHub"];
4050
4050
  put?: never;
@@ -4962,6 +4962,7 @@ export interface paths {
4962
4962
  * Workspace MCP endpoint (Streamable HTTP, JSON-RPC)
4963
4963
  * @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`.
4964
4964
  * 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.
4965
+ * 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.
4965
4966
  */
4966
4967
  post: operations["callWorkspaceMcp"];
4967
4968
  delete?: never;
@@ -14558,7 +14559,7 @@ export interface components {
14558
14559
  id?: string | number;
14559
14560
  /** @description `initialize`, `tools/list`, or `tools/call` */
14560
14561
  method: string;
14561
- /** @description For `tools/call`, `{ name, arguments }`. */
14562
+ /** @description For `tools/call`, `{ name, arguments }`, and optionally `_meta.progressToken` (a string or number) to ask for progress events on a slow `ask`. */
14562
14563
  params?: {
14563
14564
  [key: string]: unknown;
14564
14565
  };
@@ -28086,7 +28087,7 @@ export interface operations {
28086
28087
  };
28087
28088
  requestBody?: never;
28088
28089
  responses: {
28089
- /** @description Full repository readiness scorecards */
28090
+ /** @description Repository readiness scorecards (light projection may omit issue rows) */
28090
28091
  200: {
28091
28092
  headers: {
28092
28093
  [name: string]: unknown;
@@ -30392,13 +30393,21 @@ export interface operations {
30392
30393
  };
30393
30394
  };
30394
30395
  responses: {
30395
- /** @description JSON-RPC response (result or error) */
30396
+ /** @description JSON-RPC response (result or error). `text/event-stream` only for an `ask` that asked for progress; see the operation description. */
30396
30397
  200: {
30397
30398
  headers: {
30398
30399
  [name: string]: unknown;
30399
30400
  };
30400
30401
  content: {
30401
30402
  "application/json": components["schemas"]["McpJsonRpcResponseDto"];
30403
+ /**
30404
+ * @example event: message
30405
+ * data: {"jsonrpc":"2.0","method":"notifications/progress","params":{"progressToken":"p1","progress":1,"message":"Choosing repositories"}}
30406
+ *
30407
+ * event: message
30408
+ * data: {"jsonrpc":"2.0","id":1,"result":{"content":[{"type":"text","text":"{}"}],"isError":false}}
30409
+ */
30410
+ "text/event-stream": string;
30402
30411
  };
30403
30412
  };
30404
30413
  /** @description Notification accepted (no `id`); no body */