Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions e2e/daemon-shell.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @offline - the daemon serves the shell package of @agentage/apphost (shell-dashboard 0.3.1): rendered
* @offline - the daemon serves the shell package of @agentage/apphost (shell-dashboard 0.4.0): rendered
* in Chromium, the page names that version and the nav foot holds the Inbox bell.
*/
import { createServer } from 'node:net';
Expand Down Expand Up @@ -31,11 +31,11 @@ test.afterAll(async () => {
machine.cleanup();
});

test('the daemon serves shell 0.3.1: the Inbox bell sits in the nav foot @offline', async ({
test('the daemon serves shell 0.4.0: 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');
await expect(page.locator('meta[name="agentage-shell"]')).toHaveAttribute('content', '0.4.0');
const bell = page.locator('.foot [data-region="notices"] button.inboxbtn');
await expect(bell).toBeVisible();
await expect(bell).toHaveAttribute('aria-label', /^Inbox/);
Expand Down
2 changes: 1 addition & 1 deletion fixtures/extension-pong/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"license": "MIT",
"engines": {
"agentage": ">=0.2.0 <0.22.0"
"agentage": ">=0.2.0 <0.23.0"
},
"agentage": {
"id": "pong",
Expand Down
2 changes: 1 addition & 1 deletion fixtures/extension-probe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"license": "MIT",
"engines": {
"agentage": ">=0.2.0 <0.22.0"
"agentage": ">=0.2.0 <0.23.0"
},
"agentage": {
"id": "probe",
Expand Down
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
"prepublishOnly": "npm run verify"
},
"dependencies": {
"@agentage/apphost": "0.3.0",
"@agentage/extension": "0.21.0",
"@agentage/apphost": "0.4.0",
"@agentage/extension": "0.22.0",
"@electric-sql/pglite": "^0.5.16",
"@tailwindcss/postcss": "^4.3.5",
"chalk": "^6.0.0",
Expand Down
16 changes: 8 additions & 8 deletions src/core/kit-bundle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ 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.21.0, and a kit-shaped ^0.21.0 range fits the cli', () => {
expect(kitVersion()).toBe('0.21.0');
expect(fits({ engine: '^0.21.0', kit: true }, cliGate())).toBe(true);
it('is 0.22.0, and a kit-shaped ^0.22.0 range fits the cli', () => {
expect(kitVersion()).toBe('0.22.0');
expect(fits({ engine: '^0.22.0', kit: true }, cliGate())).toBe(true);
});

// One kit in the tree: the daemon (apphost) runs the children on the kit the cli bundles.
Expand All @@ -33,7 +33,7 @@ describe('the bundled kit', () => {
});
});

// `extension check` runs this kit: an extension on engines.agentage ^0.21 passes its stack rule.
// `extension check` runs this kit: an extension on engines.agentage ^0.22 passes its stack rule.
describe('the stack rule of the bundled kit', () => {
const stackOf = async (dir: ConfigDir, engine: string): Promise<string[]> => {
cpSync(fixture('probe'), dir.at('probe'), { recursive: true });
Expand All @@ -45,11 +45,11 @@ describe('the stack rule of the bundled kit', () => {
return report.problems.filter((p) => p.rule === 'stack').map((p) => p.problem);
};

test('passes engines.agentage ^0.21 with kit ^0.21.0', async ({ dir }) => {
expect(await stackOf(dir, '^0.21')).toEqual([]);
test('passes engines.agentage ^0.22 with kit ^0.22.0', async ({ dir }) => {
expect(await stackOf(dir, '^0.22')).toEqual([]);
});

test('refuses engines.agentage ^0.22, the next kit minor', async ({ dir }) => {
expect(await stackOf(dir, '^0.22')).toContain('kit 0.21.0 is outside engines.agentage ^0.22');
test('refuses engines.agentage ^0.23, the next kit minor', async ({ dir }) => {
expect(await stackOf(dir, '^0.23')).toContain('kit 0.22.0 is outside engines.agentage ^0.23');
});
});