Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(external-rest-api): resolve r2-b1 producer fixture gap

Josué28c15a96fba9
diff --git a/external-rest-api/package-lock.json b/external-rest-api/package-lock.json
index c47638178..8871fc8a4 100644
--- a/external-rest-api/package-lock.json
+++ b/external-rest-api/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-external-rest-api",
- "version": "0.1.86",
+ "version": "0.1.87",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-external-rest-api",
- "version": "0.1.86",
+ "version": "0.1.87",
"dependencies": {
"cors": "^2.8.5",
"express": "^4.21.2",
diff --git a/external-rest-api/package.json b/external-rest-api/package.json
index 01619c163..af99d812a 100644
--- a/external-rest-api/package.json
+++ b/external-rest-api/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-external-rest-api",
- "version": "0.1.86",
+ "version": "0.1.87",
"description": "External REST API for profile, team management, and RPC token brokerage",
"main": "dist/main.js",
"engines": {
diff --git a/external-rest-api/src/releaseManifest.ts b/external-rest-api/src/releaseManifest.ts
index 014df50c4..d43a02b47 100644
--- a/external-rest-api/src/releaseManifest.ts
+++ b/external-rest-api/src/releaseManifest.ts
@@ -8,7 +8,7 @@ export type ReleaseManifest = {
export const releaseManifest: ReleaseManifest = {
releaseId: 'v0.9.0',
- externalRestApiVersion: '0.1.86',
+ externalRestApiVersion: '0.1.87',
rpcProxyVersion: '0.1.89',
desktopVersion: '0.9.0',
minimumDesktopVersion: '0.1.252',
diff --git a/external-rest-api/test/routes.entityChanges.test.ts b/external-rest-api/test/routes.entityChanges.test.ts
index d6aafd62f..da85d8797 100644
--- a/external-rest-api/test/routes.entityChanges.test.ts
+++ b/external-rest-api/test/routes.entityChanges.test.ts
@@ -58,14 +58,9 @@ describe('routes/entityChanges', () => {
expect(controlApiClientMock.controlApiStreamRequest).not.toHaveBeenCalled()
})
- it('passes the authenticated stream through as NDJSON without buffering into JSON', async () => {
+ it('passes opaque upstream NDJSON bytes through without parsing or buffering', async () => {
authTokenMock.verifyToken.mockReturnValueOnce(claims)
- const frame = JSON.stringify({
- schemaVersion: 1,
- type: 'scope.invalidated',
- cursor: 'd119f895-1ef8-4e73-8f08-f9754919682a',
- scopes: ['gfs'],
- })
+ const frame = '{"opaque":"upstream-json-line"}'
controlApiClientMock.controlApiStreamRequest.mockResolvedValueOnce({
status: 200,
headers: new Headers({