Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| The phone app: Chat in full with phone notifications, plus Code and Customize (#4) | 1 | import assert from "node:assert/strict"; |
| 2 | import { test } from "node:test"; | |
| 3 | ||
| 4 | import { CUSTOMIZE, CUSTOMIZE_SECTIONS, customizePath, sectionOfListing } from "./customize.ts"; | |
| 5 | ||
| Merge branch 'customize' into main: Customize replaces the Marketplace, the Artifacts trash and spaces changes, the Security-free cleanup, with the desktop app's own title bar kept in the shell. | 6 | test("every listing has a place in Customize", () => { |
| The phone app: Chat in full with phone notifications, plus Code and Customize (#4) | 7 | assert.equal(sectionOfListing("integration"), "connectors"); |
| Merge branch 'customize' into main: Customize replaces the Marketplace, the Artifacts trash and spaces changes, the Security-free cleanup, with the desktop app's own title bar kept in the shell. | 8 | assert.equal(sectionOfListing("connector"), "connectors"); |
| 9 | assert.equal(sectionOfListing("skill"), "skills"); | |
| 10 | assert.equal(sectionOfListing("plugin"), "plugins"); | |
| The phone app: Chat in full with phone notifications, plus Code and Customize (#4) | 11 | assert.equal(sectionOfListing("extension"), "plugins"); |
| 12 | for (const section of CUSTOMIZE_SECTIONS) assert.equal(CUSTOMIZE[section].id, section); | |
| 13 | }); | |
| 14 | ||
| 15 | test("a section's site path names its workspace", () => { | |
| Merge branch 'customize' into main: Customize replaces the Marketplace, the Artifacts trash and spaces changes, the Security-free cleanup, with the desktop app's own title bar kept in the shell. | 16 | assert.equal(customizePath("connectors", "acme"), "/acme/-/customize/connectors"); |
| 17 | assert.equal(customizePath("skills", "a b"), "/a%20b/-/customize/skills"); | |
| 18 | assert.equal(customizePath("", "acme"), "/acme/-/customize"); | |
| 19 | assert.equal(customizePath("plugins", "acme", "pdf@anthropic-agent-skills"), "/acme/-/customize/plugins/pdf@anthropic-agent-skills"); | |
| The phone app: Chat in full with phone notifications, plus Code and Customize (#4) | 20 | }); |
This file's history is long; its oldest lines are credited to the oldest commit read.