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
11 changes: 0 additions & 11 deletions apps/app/tests/design-slide-catalog.test.ts

This file was deleted.

10 changes: 5 additions & 5 deletions apps/app/tests/video-hyperframes-panel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ describe("HyperFrames Video Studio", () => {
new URL("../src/react-app/domains/session/chat/session-page.tsx", import.meta.url),
"utf8",
);
const headerSource = readFileSync(
new URL("../../../vendor/hyperframes/packages/studio/src/components/StudioHeader.tsx", import.meta.url),
const previewSource = readFileSync(
new URL("../../../vendor/hyperframes/packages/studio/src/components/nle/PreviewPane.tsx", import.meta.url),
"utf8",
);

expect(sessionPageSource).toContain("aiEditing={isStreamingSessionStatus(");
expect(panelSource).toContain('type: "ipollowork:studio-ai-editing"');
expect(panelSource).toContain("active: aiEditing");
expect(headerSource).toContain('data-testid="studio-ai-editing-status"');
expect(headerSource).toContain('t("header.aiEditingWarning")');
expect(previewSource).toContain('data-testid="studio-ai-editing-status"');
expect(previewSource).toContain('t("preview.aiEditingWarning")');
});

test("passes the Ian illustration skill through the composer and asset-library contract", () => {
Expand Down Expand Up @@ -677,7 +677,7 @@ describe("HyperFrames Video Studio", () => {
);

expect(electronDevSource).toContain('const hyperframesStudioBuild = resolve(hyperframesRoot, "packages", "cli", "dist", "studio", "index.html")');
expect(electronDevSource).toContain("newestMtimeMs(studioSourceRoot) > studioBuildTime");
expect(electronDevSource).toContain("newestBuildInputTime > studioBuildTime");
expect(electronDevSource).toContain('runSync(bunCmd, ["run", "build:local-studio"]');
});

Expand Down
4 changes: 2 additions & 2 deletions apps/orchestrator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ipollowork-orchestrator",
"version": "0.21.0",
"version": "0.21.1",
"description": "iPolloWork host orchestrator for opencode + iPolloWork server",
"private": true,
"type": "module",
Expand Down Expand Up @@ -46,7 +46,7 @@
"@opencode-ai/sdk": "^1.18.16",
"@opentui/core": "0.1.77",
"@opentui/solid": "0.1.77",
"ipollowork-server": "0.21.0",
"ipollowork-server": "0.21.1",
"solid-js": "1.9.9"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ipollowork-server",
"version": "0.21.0",
"version": "0.21.1",
"description": "Filesystem-backed API for iPolloWork remote clients",
"type": "module",
"bin": {
Expand Down
6 changes: 3 additions & 3 deletions apps/server/src/templates.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ describe("template API", () => {
const capabilities = await fetch(`${base}/capabilities`, { headers }).then((response) => response.json());
expect(capabilities.templates).toEqual({ read: true, install: true, import: true, uninstall: true });
const catalog = await fetch(`${base}/workspace/ws/templates`, { headers }).then((response) => response.json());
expect(catalog.items).toHaveLength(117);
expect(catalog.items.some((item: { manifest: { id: string } }) => item.manifest.id === "ipollowork.saas-landing")).toBe(true);
expect(catalog.items.some((item: { manifest: { id: string; pptxCompatibility?: string } }) => item.manifest.id === "ipollowork.pptx-urban-mobility" && item.manifest.pptxCompatibility === "native-editable")).toBe(true);
expect(catalog.items.length).toBeGreaterThan(0);
expect(catalog.items.some((item: { manifest: { id: string } }) => item.manifest.id === "ipollowork.saas-landing")).toBe(false);
expect(catalog.items.some((item: { manifest: { id: string; pptxCompatibility?: string } }) => item.manifest.id === "ipollowork.pptx-brand-narrative" && item.manifest.pptxCompatibility === "native-editable")).toBe(true);

const invalidPackage = await fetch(`${base}/workspace/ws/templates/import`, {
method: "POST",
Expand Down
30 changes: 21 additions & 9 deletions apps/server/src/templates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ describe("template installations", () => {

test("ships every bundled template with a real 960 by 540 PNG cover", async () => {
const directories = (await readdir(bundledTemplatesRoot)).filter((name) => !name.startsWith("."));
expect(directories).toHaveLength(116);
expect(directories.length).toBeGreaterThan(100);
const hashes = new Set<string>();
for (const directory of directories) {
const root = join(bundledTemplatesRoot, directory);
Expand Down Expand Up @@ -775,13 +775,24 @@ describe("template installations", () => {
process.env.IPOLLOWORK_RUNTIME_DB = join(root, "runtime.sqlite");
const serverConfig = config(root);
const first = await listTemplates(serverConfig, "alpha");
expect(first.filter((item) => item.installed)).toHaveLength(116);
expect(first.some((item) => item.manifest.id === "ipollowork.saas-landing")).toBe(true);
expect(first.some((item) => item.manifest.id === "ipollowork.pptx-northstar-strategy")).toBe(true);
expect(new Set(first.map((item) => item.manifest.category)).size).toBe(9);
await uninstallTemplate(serverConfig, "alpha", "ipollowork.saas-landing");
expect((await listTemplates(serverConfig, "alpha")).find((item) => item.manifest.id === "ipollowork.saas-landing")?.installed).toBe(false);
expect((await listTemplates(serverConfig, "beta")).find((item) => item.manifest.id === "ipollowork.saas-landing")?.installed).toBe(false);
const expected = (await readdir(bundledTemplatesRoot))
.filter((name) => !name.startsWith("."))
.map((directory) => JSON.parse(readFileSync(join(bundledTemplatesRoot, directory, "manifest.json"), "utf8")) as TemplateManifestV1)
.filter(isCustomerVisibleBundledTemplate)
.map((manifest) => manifest.id)
.sort();
expect(first.map((item) => item.manifest.id).sort()).toEqual(expected);
expect(first.every((item) => item.installed)).toBe(true);
expect(first.some((item) => item.manifest.id === "ipollowork.saas-landing")).toBe(false);
expect(first.some((item) => item.manifest.id === "ipollowork.pptx-northstar-strategy")).toBe(false);
expect(first.some((item) => item.manifest.id === "ipollowork.app-calm-mobile")).toBe(true);
expect(first.some((item) => item.manifest.id === "ipollowork.html-anything.social-carousel")).toBe(true);
expect(first.some((item) => item.manifest.id === "ipollowork.html-anything.data-report")).toBe(true);
expect(first.find((item) => item.manifest.id === "ipollowork.html-anything.wireframe-sketch")?.manifest.category).toBe("poster");
expect(first.find((item) => item.manifest.id === "ipollowork.site-atelier-architecture")?.manifest.category).toBe("article");
await uninstallTemplate(serverConfig, "alpha", "ipollowork.html-anything.prototype-web");
expect((await listTemplates(serverConfig, "alpha")).find((item) => item.manifest.id === "ipollowork.html-anything.prototype-web")?.installed).toBe(false);
expect((await listTemplates(serverConfig, "beta")).find((item) => item.manifest.id === "ipollowork.html-anything.prototype-web")?.installed).toBe(false);
});

test("upgrades an installed bundled template before materializing it", async () => {
Expand Down Expand Up @@ -833,7 +844,8 @@ describe("template installations", () => {
process.env.IPOLLOWORK_RUNTIME_DB = join(root, "runtime.sqlite");
const serverConfig = config(root);
const scope = parseTemplateLibraryScope("enterprise:ent_medical");
expect((await listTemplates(serverConfig, "alpha", scope)).filter((item) => item.sourceType === "bundled")).toHaveLength(108);
const bundledTemplateCount = (await readdir(bundledTemplatesRoot)).filter((name) => !name.startsWith(".")).length;
expect((await listTemplates(serverConfig, "alpha", scope)).filter((item) => item.sourceType === "bundled")).toHaveLength(bundledTemplateCount);
const installed = await importTemplate(serverConfig, "alpha", localPackage(), "site", scope);
expect((await listTemplates(serverConfig, "beta", scope)).map((item) => item.manifest.id)).toContain(installed.manifest.id);
expect((await listTemplates(serverConfig, "beta", "personal")).map((item) => item.manifest.id)).not.toContain(installed.manifest.id);
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

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

Loading