agent-relay-server 0.11.8 → 0.11.9

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/docs/openapi.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "Agent Relay API",
5
- "version": "0.11.4",
5
+ "version": "0.11.8",
6
6
  "description": "Real-time message bus for inter-agent communication. Agent-first: this spec is designed for machine consumption — agents can self-discover the full API surface via GET /api/spec.",
7
7
  "license": {
8
8
  "name": "MIT",
@@ -1859,6 +1859,9 @@
1859
1859
  },
1860
1860
  "reason": {
1861
1861
  "type": "string"
1862
+ },
1863
+ "answers": {
1864
+ "type": "string"
1862
1865
  }
1863
1866
  }
1864
1867
  }
@@ -2718,6 +2721,90 @@
2718
2721
  ]
2719
2722
  }
2720
2723
  },
2724
+ "/api/orchestrators/{id}/runner-token": {
2725
+ "post": {
2726
+ "operationId": "postOrchestratorRunnerToken",
2727
+ "summary": "Re-mint a runner's runtime token",
2728
+ "tags": [
2729
+ "Orchestrators"
2730
+ ],
2731
+ "description": "Orchestrator-mediated runner-token self-heal. A live runner whose runtime token has expired (e.g. the relay was unreachable across the renewal window) cannot self-renew — its dead token can't authenticate. Its orchestrator proxies the runner's expired token here using its own long-lived credential. The relay verifies the presented token is a genuine, non-revoked runner token owned by this orchestrator (signature valid even past expiry; expiry must be within a 30-day window) and mints a fresh `provider-agent` token cloning its scope, revoking the old one. The orchestrator's standing authority is the authorization; the signed token is the identity — no auth is weakened. Requires `command:write` scoped to this orchestrator.",
2732
+ "parameters": [
2733
+ {
2734
+ "name": "id",
2735
+ "in": "path",
2736
+ "required": true,
2737
+ "schema": {
2738
+ "type": "string"
2739
+ }
2740
+ }
2741
+ ],
2742
+ "requestBody": {
2743
+ "required": true,
2744
+ "content": {
2745
+ "application/json": {
2746
+ "schema": {
2747
+ "type": "object",
2748
+ "required": [
2749
+ "token"
2750
+ ],
2751
+ "properties": {
2752
+ "token": {
2753
+ "type": "string",
2754
+ "description": "The runner's current (possibly expired) runtime token."
2755
+ }
2756
+ }
2757
+ }
2758
+ }
2759
+ }
2760
+ },
2761
+ "responses": {
2762
+ "200": {
2763
+ "description": "Success",
2764
+ "content": {
2765
+ "application/json": {}
2766
+ }
2767
+ },
2768
+ "201": {
2769
+ "description": "Created",
2770
+ "content": {
2771
+ "application/json": {}
2772
+ }
2773
+ },
2774
+ "403": {
2775
+ "description": "Forbidden",
2776
+ "content": {
2777
+ "application/json": {
2778
+ "schema": {
2779
+ "$ref": "#/components/schemas/Error"
2780
+ }
2781
+ }
2782
+ }
2783
+ },
2784
+ "404": {
2785
+ "description": "Not found",
2786
+ "content": {
2787
+ "application/json": {
2788
+ "schema": {
2789
+ "$ref": "#/components/schemas/Error"
2790
+ }
2791
+ }
2792
+ }
2793
+ }
2794
+ },
2795
+ "security": [
2796
+ {
2797
+ "bearerAuth": []
2798
+ },
2799
+ {
2800
+ "tokenHeader": []
2801
+ },
2802
+ {
2803
+ "tokenQuery": []
2804
+ }
2805
+ ]
2806
+ }
2807
+ },
2721
2808
  "/api/orchestrators/{id}/actions": {
2722
2809
  "post": {
2723
2810
  "operationId": "postOrchestratorAction",
@@ -5756,6 +5843,100 @@
5756
5843
  ]
5757
5844
  }
5758
5845
  },
5846
+ "/api/steward-config": {
5847
+ "get": {
5848
+ "operationId": "getStewardConfigRoute",
5849
+ "summary": "Get global steward config",
5850
+ "tags": [
5851
+ "Other"
5852
+ ],
5853
+ "description": "Returns the global, provider-independent steward configuration `{ enabled, provider, model?, effort?, permissionMode, keepaliveSeconds }`. Stewards are auto-provisioned per repo from these settings when one is needed (issue #167). Disabled by default — falls back to merged defaults until set.",
5854
+ "responses": {
5855
+ "200": {
5856
+ "description": "Success",
5857
+ "content": {
5858
+ "application/json": {}
5859
+ }
5860
+ },
5861
+ "400": {
5862
+ "description": "Bad request",
5863
+ "content": {
5864
+ "application/json": {
5865
+ "schema": {
5866
+ "$ref": "#/components/schemas/Error"
5867
+ }
5868
+ }
5869
+ }
5870
+ }
5871
+ },
5872
+ "security": [
5873
+ {
5874
+ "bearerAuth": []
5875
+ },
5876
+ {
5877
+ "tokenHeader": []
5878
+ },
5879
+ {
5880
+ "tokenQuery": []
5881
+ }
5882
+ ]
5883
+ },
5884
+ "put": {
5885
+ "operationId": "putStewardConfigRoute",
5886
+ "summary": "Set global steward config",
5887
+ "tags": [
5888
+ "Other"
5889
+ ],
5890
+ "description": "Updates the global steward configuration. Body fields: `enabled`, `provider` (required), optional `model`, `effort`, `permissionMode` (default `open`), `keepaliveSeconds` (default 300). Rejects a provider/model/effort combo the provider catalog can't resolve (400). Enabling here is the opt-in that gates per-repo steward auto-provisioning.",
5891
+ "requestBody": {
5892
+ "required": true,
5893
+ "content": {
5894
+ "application/json": {
5895
+ "schema": {
5896
+ "type": "object",
5897
+ "properties": {
5898
+ "value": {
5899
+ "type": "string"
5900
+ },
5901
+ "updatedBy": {
5902
+ "type": "string"
5903
+ }
5904
+ }
5905
+ }
5906
+ }
5907
+ }
5908
+ },
5909
+ "responses": {
5910
+ "200": {
5911
+ "description": "Success",
5912
+ "content": {
5913
+ "application/json": {}
5914
+ }
5915
+ },
5916
+ "400": {
5917
+ "description": "Bad request",
5918
+ "content": {
5919
+ "application/json": {
5920
+ "schema": {
5921
+ "$ref": "#/components/schemas/Error"
5922
+ }
5923
+ }
5924
+ }
5925
+ }
5926
+ },
5927
+ "security": [
5928
+ {
5929
+ "bearerAuth": []
5930
+ },
5931
+ {
5932
+ "tokenHeader": []
5933
+ },
5934
+ {
5935
+ "tokenQuery": []
5936
+ }
5937
+ ]
5938
+ }
5939
+ },
5759
5940
  "/api/config/{namespace}": {
5760
5941
  "get": {
5761
5942
  "operationId": "getConfigNamespace",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-relay-server",
3
- "version": "0.11.8",
3
+ "version": "0.11.9",
4
4
  "description": "Lightweight HTTP message relay for inter-agent communication across machines",
5
5
  "module": "src/index.ts",
6
6
  "type": "module",
@@ -32,7 +32,7 @@
32
32
  "CONTRIBUTING.md"
33
33
  ],
34
34
  "dependencies": {
35
- "agent-relay-sdk": "0.2.4"
35
+ "agent-relay-sdk": "0.2.5"
36
36
  },
37
37
  "scripts": {
38
38
  "prepack": "bun run build:dashboard >&2",