@smthrs/gateway 0.33.0 → 0.34.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.
package/openapi.yaml CHANGED
@@ -9018,7 +9018,7 @@ paths:
9018
9018
  post:
9019
9019
  operationId: getNodeDiff
9020
9020
  summary: "Get Node Diff"
9021
- description: "Fetch a node-level diff bundle for one iteration."
9021
+ description: "Fetch a node-level diff bundle for one iteration. In-progress attempts return a live working-copy diff (`live: true`)."
9022
9022
  tags:
9023
9023
  - "Gateway RPC"
9024
9024
  security:
@@ -9508,7 +9508,7 @@ paths:
9508
9508
  post:
9509
9509
  operationId: getRunDiff
9510
9510
  summary: "Get Run Diff"
9511
- description: "Fetch the final base-to-terminal DiffBundle for a run. An oversized result is returned as an explicit marker."
9511
+ description: "Fetch the base-to-terminal DiffBundle for a run. Non-terminal runs return a live working-copy diff (`live: true`). An oversized result is returned as an explicit marker."
9512
9512
  tags:
9513
9513
  - "Gateway RPC"
9514
9514
  security:
@@ -9583,7 +9583,7 @@ paths:
9583
9583
  oneOf:
9584
9584
  -
9585
9585
  type: object
9586
- description: "Final run DiffBundle."
9586
+ description: "Run DiffBundle (final, or live for a non-terminal run)."
9587
9587
  properties:
9588
9588
  seq:
9589
9589
  type: integer
@@ -9620,6 +9620,9 @@ paths:
9620
9620
  - operation
9621
9621
  - diff
9622
9622
  additionalProperties: false
9623
+ live:
9624
+ type: boolean
9625
+ description: "True when computed from the live working copy of a non-terminal run."
9623
9626
  required:
9624
9627
  - seq
9625
9628
  - baseRef
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smthrs/gateway",
3
- "version": "0.33.0",
3
+ "version": "0.34.0",
4
4
  "description": "Stable Smithers Gateway RPC contracts, auth scopes, and deployment metadata",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -31,7 +31,7 @@
31
31
  "openapi.yaml"
32
32
  ],
33
33
  "dependencies": {
34
- "@smthrs/protocol": "0.33.0"
34
+ "@smthrs/protocol": "0.34.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/bun": "latest",
package/src/rpc/index.js CHANGED
@@ -1435,7 +1435,8 @@ export const GATEWAY_RPC_DEFINITIONS = [
1435
1435
  version: SMITHERS_API_VERSION,
1436
1436
  method: "getNodeDiff",
1437
1437
  title: "Get Node Diff",
1438
- description: "Fetch a node-level diff bundle for one iteration.",
1438
+ description:
1439
+ "Fetch a node-level diff bundle for one iteration. In-progress attempts return a live working-copy diff (`live: true`).",
1439
1440
  maturity: "stable",
1440
1441
  transport: "http+websocket",
1441
1442
  requiredScope: "run:read",
@@ -1460,7 +1461,7 @@ export const GATEWAY_RPC_DEFINITIONS = [
1460
1461
  method: "getRunDiff",
1461
1462
  title: "Get Run Diff",
1462
1463
  description:
1463
- "Fetch the final base-to-terminal DiffBundle for a run. An oversized result is returned as an explicit marker.",
1464
+ "Fetch the base-to-terminal DiffBundle for a run. Non-terminal runs return a live working-copy diff (`live: true`). An oversized result is returned as an explicit marker.",
1464
1465
  maturity: "stable",
1465
1466
  transport: "http+websocket",
1466
1467
  requiredScope: "run:read",
@@ -1485,9 +1486,13 @@ export const GATEWAY_RPC_DEFINITIONS = [
1485
1486
  },
1486
1487
  "Changed files.",
1487
1488
  ),
1489
+ live: {
1490
+ type: "boolean",
1491
+ description: "True when computed from the live working copy of a non-terminal run.",
1492
+ },
1488
1493
  },
1489
1494
  ["seq", "baseRef", "patches"],
1490
- "Final run DiffBundle.",
1495
+ "Run DiffBundle (final, or live for a non-terminal run).",
1491
1496
  ),
1492
1497
  objectSchema(
1493
1498
  {