From 76990324f60781126a5809380959922335391a28 Mon Sep 17 00:00:00 2001 From: Volodymyr Vreshch Date: Thu, 19 Nov 2026 21:30:07 +0100 Subject: [PATCH 1/3] test(core): read the shell from @agentage/shell-dashboard (J.4.5) The app host program serves the shell package, not a copy in the kit. Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 --- src/core/kit-bundle.test.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/core/kit-bundle.test.ts b/src/core/kit-bundle.test.ts index 9fbdf9d..7724938 100644 --- a/src/core/kit-bundle.test.ts +++ b/src/core/kit-bundle.test.ts @@ -1,6 +1,6 @@ import { readFileSync, realpathSync } from 'node:fs'; import { createRequire } from 'node:module'; -import { dirname, join } from 'node:path'; +import { dirname } from 'node:path'; import { describe, expect, it } from 'vitest'; import { cliGate, fits } from './installer/compat.js'; import { kitVersion } from './kit-version.js'; @@ -9,7 +9,7 @@ const KIT = '@agentage/extension/package.json'; const kitDir = dirname(createRequire(import.meta.url).resolve(KIT)); const apphostJson = createRequire(import.meta.url).resolve('@agentage/apphost/package.json'); -// The desktop and the deployed app host show one shell: the daemon serves the bundled kit's. +// The desktop and the deployed app host show one shell: the shell package that apphost serves. describe('the bundled kit', () => { it('is 0.20.2, and a kit-shaped ^0.20.0 range fits the cli', () => { expect(kitVersion()).toBe('0.20.2'); @@ -22,8 +22,9 @@ describe('the bundled kit', () => { expect(realpathSync(fromApphost)).toBe(realpathSync(kitDir)); }); - it('ships the shell whose nav foot holds the Inbox bell', () => { - const shell = readFileSync(join(kitDir, 'dist/shell/dist/shell.js'), 'utf8'); + it('serves the shell package whose nav foot holds the Inbox bell', () => { + const shellJs = createRequire(apphostJson).resolve('@agentage/shell-dashboard/dist/shell.js'); + const shell = readFileSync(shellJs, 'utf8'); const foot = shell.indexOf('className:"foot"'); expect(foot).toBeGreaterThan(-1); expect(shell.indexOf('className:"ib inboxbtn"', foot)).toBeGreaterThan(foot); From e1ea9cf29b1b89702a2cf22aa9b0247ee355d5d9 Mon Sep 17 00:00:00 2001 From: Volodymyr Vreshch Date: Thu, 19 Nov 2026 22:01:01 +0100 Subject: [PATCH 2/3] feat(daemon): pin apphost 0.2.1 and kit 0.20.3: shell 0.3.1 (J.4.5) The daemon serves @agentage/shell-dashboard 0.3.1 through apphost 0.2.1; the e2e checks the page names that version. Lockfile after R3 is on npm. Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 --- e2e/daemon-shell.test.ts | 7 ++++--- package.json | 4 ++-- src/core/kit-bundle.test.ts | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/e2e/daemon-shell.test.ts b/e2e/daemon-shell.test.ts index c45afce..d004190 100644 --- a/e2e/daemon-shell.test.ts +++ b/e2e/daemon-shell.test.ts @@ -1,6 +1,6 @@ /** - * @offline - the shell the daemon serves is the bundled kit's (0.20.2): rendered in Chromium, - * the nav foot holds the Inbox bell, as on the deployed app host. + * @offline - the daemon serves the shell package of @agentage/apphost (shell-dashboard 0.3.1): rendered + * in Chromium, the page names that version and the nav foot holds the Inbox bell. */ import { createServer } from 'node:net'; import { expect, test } from '@playwright/test'; @@ -31,10 +31,11 @@ test.afterAll(async () => { machine.cleanup(); }); -test('the daemon serves the kit 0.20.2 shell: the Inbox bell sits in the nav foot @offline', async ({ +test('the daemon serves shell 0.3.1: the Inbox bell sits in the nav foot @offline', async ({ page, }) => { await page.goto(`${url}/`); + await expect(page.locator('meta[name="agentage-shell"]')).toHaveAttribute('content', '0.3.1'); const bell = page.locator('.foot [data-region="notices"] button.inboxbtn'); await expect(bell).toBeVisible(); await expect(bell).toHaveAttribute('aria-label', /^Inbox/); diff --git a/package.json b/package.json index aa2c7f4..e66c22b 100644 --- a/package.json +++ b/package.json @@ -54,8 +54,8 @@ "prepublishOnly": "npm run verify" }, "dependencies": { - "@agentage/apphost": "0.1.0", - "@agentage/extension": "0.20.2", + "@agentage/apphost": "0.2.1", + "@agentage/extension": "0.20.3", "@electric-sql/pglite": "^0.5.16", "@tailwindcss/postcss": "^4.3.5", "chalk": "^6.0.0", diff --git a/src/core/kit-bundle.test.ts b/src/core/kit-bundle.test.ts index 7724938..fffee90 100644 --- a/src/core/kit-bundle.test.ts +++ b/src/core/kit-bundle.test.ts @@ -11,8 +11,8 @@ const apphostJson = createRequire(import.meta.url).resolve('@agentage/apphost/pa // The desktop and the deployed app host show one shell: the shell package that apphost serves. describe('the bundled kit', () => { - it('is 0.20.2, and a kit-shaped ^0.20.0 range fits the cli', () => { - expect(kitVersion()).toBe('0.20.2'); + it('is 0.20.3, and a kit-shaped ^0.20.0 range fits the cli', () => { + expect(kitVersion()).toBe('0.20.3'); expect(fits({ engine: '^0.20.0', kit: true }, cliGate())).toBe(true); }); From ed055bcefe0da1b22713f315915c82cf363762f8 Mon Sep 17 00:00:00 2001 From: Volodymyr Vreshch Date: Thu, 19 Nov 2026 22:26:42 +0100 Subject: [PATCH 3/3] chore(deps): lockfile for apphost 0.2.1 and kit 0.20.3 Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 --- package-lock.json | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 589a099..98c4723 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,8 +9,8 @@ "version": "0.67.0", "license": "MIT", "dependencies": { - "@agentage/apphost": "0.1.0", - "@agentage/extension": "0.20.2", + "@agentage/apphost": "0.2.1", + "@agentage/extension": "0.20.3", "@electric-sql/pglite": "^0.5.16", "@tailwindcss/postcss": "^4.3.5", "chalk": "^6.0.0", @@ -44,15 +44,19 @@ } }, "node_modules/@agentage/apphost": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@agentage/apphost/-/apphost-0.1.0.tgz", - "integrity": "sha512-efJ2DBnnHILFL57jShW6vp8qtlr/4HhHnDkYfdcAjLHVbChlSNlxYJaX16QPe+U63T+w3g/65nx+GF7VOJOC3Q==", + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@agentage/apphost/-/apphost-0.2.1.tgz", + "integrity": "sha512-jm6TyOFYcAQ5mGd9c75J4VgczlxP1Zg8EmgkHybcCR6yE3KI/aDuExbYjWKxUgng15gbiV1JRsSLSrrcYnBiNw==", "license": "MIT", "dependencies": { + "@agentage/shell-dashboard": "0.3.1", "express": "^5.1.0", "semver": "^7.8.6", "zod": "^4.2.0" }, + "bin": { + "agentage-apphost-cloud": "dist/cloud-main.js" + }, "engines": { "node": ">=22" }, @@ -61,9 +65,9 @@ } }, "node_modules/@agentage/extension": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@agentage/extension/-/extension-0.20.2.tgz", - "integrity": "sha512-uql73pu5vO8pn6GyDeFCvYfonGSgY/rOUKw8WlzJPdjypEI499QncILhn+1mivqrZhfsLovLtALQXv0oWHj5vw==", + "version": "0.20.3", + "resolved": "https://registry.npmjs.org/@agentage/extension/-/extension-0.20.3.tgz", + "integrity": "sha512-nFoB3Bx4jP+PWUNWoXYVcs1VqTUt7RBlQHx4ZEAsNVsPQvQ9BmtzcyXbVUuq0Gw3+9n8R8uCFfk9EPLdv+ARMA==", "license": "MIT", "dependencies": { "@modelcontextprotocol/server": "^2.4.0", @@ -118,6 +122,15 @@ } } }, + "node_modules/@agentage/shell-dashboard": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/@agentage/shell-dashboard/-/shell-dashboard-0.3.1.tgz", + "integrity": "sha512-Logb1iQHWHhfCtn6VVP7iW8SBSmrDHGB0gZiBDVW4Pv47EY6UjdmB6WOd60HltHabD0W+Yg2clDa2Lw7rqYs+A==", + "license": "MIT", + "engines": { + "node": ">=22" + } + }, "node_modules/@alloc/quick-lru": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.3.0.tgz",