@ours.network/fleet 1.2.0-nightly.74 → 1.2.0-nightly.76
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/dist/build-info.json +4 -4
- package/dist/web/server.js +7 -2
- package/package.json +5 -5
package/dist/build-info.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.2.0-nightly.
|
|
3
|
-
"buildId": "
|
|
4
|
-
"commit": "
|
|
2
|
+
"version": "1.2.0-nightly.76",
|
|
3
|
+
"buildId": "adbb39fb78cd",
|
|
4
|
+
"commit": "54d1ea9c17b78705a6af6a9d83872078dbeaa41d",
|
|
5
5
|
"dirty": true,
|
|
6
|
-
"builtAt": "2026-10-
|
|
6
|
+
"builtAt": "2026-10-19T11:49:00.042Z",
|
|
7
7
|
"capabilities": [
|
|
8
8
|
"service.refresh-v1",
|
|
9
9
|
"managed-cli.codex-reasoning-effort-v1",
|
package/dist/web/server.js
CHANGED
|
@@ -56,8 +56,9 @@ export async function buildWebServer(services, boundary, options = {}) {
|
|
|
56
56
|
if (auth.appOrigin && request.headers.origin === auth.appOrigin && request.url.startsWith('/api/')) {
|
|
57
57
|
reply.header('Access-Control-Allow-Origin', auth.appOrigin).header('Vary', 'Origin');
|
|
58
58
|
reply.header('Access-Control-Allow-Methods', 'GET,POST,PUT,PATCH,DELETE,OPTIONS');
|
|
59
|
-
|
|
60
|
-
reply.header('Access-Control-
|
|
59
|
+
// The App binds resource reads by these headers; it must be able to send and read them cross-origin.
|
|
60
|
+
reply.header('Access-Control-Expose-Headers', 'X-Ours-Workspace-Auth, X-Ours-Request-Id, X-Resource-Producer, X-Resource-Revision, X-Resource-Source-Generation, X-Resource-Source-Position, X-Resource-Connection, X-Resource-View, X-Resource-Epoch, X-Resource-Baseline');
|
|
61
|
+
reply.header('Access-Control-Allow-Headers', 'Authorization,Content-Type,X-CSRF-Token,Idempotency-Key,X-Ours-Messenger-CSRF,X-Resource-Connection,X-Resource-View,X-Resource-Epoch,X-Resource-Baseline');
|
|
61
62
|
if (request.method === 'OPTIONS') {
|
|
62
63
|
auth.validateBoundary(request, false);
|
|
63
64
|
return reply.code(204).send();
|
|
@@ -428,6 +429,10 @@ export async function buildWebServer(services, boundary, options = {}) {
|
|
|
428
429
|
app.get('/api/v1/resource-events', async (request, reply) => {
|
|
429
430
|
const browser = auth.authenticate(request);
|
|
430
431
|
reply.hijack();
|
|
432
|
+
// A hijacked reply bypasses Fastify headers: keep the exact-origin CORS and security headers.
|
|
433
|
+
for (const [name, value] of Object.entries(reply.getHeaders()))
|
|
434
|
+
if (value !== undefined)
|
|
435
|
+
reply.raw.setHeader(name, Array.isArray(value) ? value : String(value));
|
|
431
436
|
reply.raw.writeHead(200, { 'Content-Type': 'text/event-stream', 'Cache-Control': 'no-cache, no-transform', Connection: 'keep-alive', 'X-Accel-Buffering': 'no' });
|
|
432
437
|
reply.raw.flushHeaders();
|
|
433
438
|
const opened = resources.open(reply.raw, browser.id, () => auth.sessionValid(browser));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ours.network/fleet",
|
|
3
|
-
"version": "1.2.0-nightly.
|
|
3
|
+
"version": "1.2.0-nightly.76",
|
|
4
4
|
"description": "Harness-agnostic fleet of persistent, identity-bound AI agents. Declarative fleet.yaml, managed native/ACP sessions, supervision, and ours.network messaging.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "FSL-1.1-Apache-2.0",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@agentclientprotocol/sdk": "^1.3.0",
|
|
50
50
|
"@fastify/websocket": "^11.2.0",
|
|
51
|
-
"@ours.network/cli": "3.1.1-nightly.
|
|
52
|
-
"@ours.network/mcp": "1.2.0-nightly.
|
|
53
|
-
"@ours.network/sdk": "4.1.1-nightly.
|
|
51
|
+
"@ours.network/cli": "3.1.1-nightly.2",
|
|
52
|
+
"@ours.network/mcp": "1.2.0-nightly.16",
|
|
53
|
+
"@ours.network/sdk": "4.1.1-nightly.2",
|
|
54
54
|
"commander": "^12.1.0",
|
|
55
55
|
"fastify": "^5.4.0",
|
|
56
56
|
"qrcode": "1.5.4",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@agentclientprotocol/codex-acp": "1.10.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@ours.network/daemon": "4.1.1-nightly.
|
|
67
|
+
"@ours.network/daemon": "4.1.1-nightly.2",
|
|
68
68
|
"@types/node": "^22.20.4",
|
|
69
69
|
"@types/qrcode": "^1.5.6",
|
|
70
70
|
"@types/ws": "^8.18.1",
|