diff --git a/.cursorrules b/.cursorrules index 3869b50..aab83a6 100644 --- a/.cursorrules +++ b/.cursorrules @@ -20,7 +20,6 @@ site. |---|---| | Plain Decorator template | `main#main-content` | | TritonAI site | `main#main-content` | -| Antigravity Code Kit | `div#ag-app-canvas` | All new content, components, markup, and application logic go inside the canvas. diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 19fe6b0..335a542 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -20,7 +20,6 @@ site. |---|---| | Plain Decorator template | `main#main-content` | | TritonAI site | `main#main-content` | -| Antigravity Code Kit | `div#ag-app-canvas` | All new content, components, markup, and application logic go inside the canvas. diff --git a/AGENTS.md b/AGENTS.md index 4e2b28f..d4434ff 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -20,7 +20,6 @@ site. |---|---| | Plain Decorator template | `main#main-content` | | TritonAI site | `main#main-content` | -| Antigravity Code Kit | `div#ag-app-canvas` | All new content, components, markup, and application logic go inside the canvas. diff --git a/CHANGELOG.md b/CHANGELOG.md index 76087b2..5f74dc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## Unreleased + +### Removed + +- **References to the Antigravity Code Kit.** That project is retired. Its + `div#ag-app-canvas` row is gone from the canvas table in the rules and the + skill, and the schemas, `checks/README.md`, and the README no longer name it. + A project with its own shell still sets `canvas` in `decorator-kit.json`, as + before. + ## 2.4.0 ### Changed diff --git a/CLAUDE.md b/CLAUDE.md index 1f02bc6..4dd8f7f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -20,7 +20,6 @@ site. |---|---| | Plain Decorator template | `main#main-content` | | TritonAI site | `main#main-content` | -| Antigravity Code Kit | `div#ag-app-canvas` | All new content, components, markup, and application logic go inside the canvas. diff --git a/DECORATOR.md b/DECORATOR.md index d648079..e81a0c7 100644 --- a/DECORATOR.md +++ b/DECORATOR.md @@ -236,7 +236,7 @@ names it: the CDN `base.min.css` sets `body, html { background: #fff }`, and ways, and neither touches a chrome token: - **A background on the ground itself** — `html`, `body`, `:root`, or the - canvas root (`main#main-content`, `div#ag-app-canvas`). + canvas root (`main#main-content`, or whatever `decorator-kit.json` names). - **A full-bleed trick** that paints past a canvas element's own box to the edges of the viewport: `box-shadow: 0 0 0 100vmax` paired with `clip-path: inset(0 -100vmax)`, `width: 100vw`, or diff --git a/README.md b/README.md index 1d6bf98..8d1ca42 100644 --- a/README.md +++ b/README.md @@ -392,7 +392,5 @@ reads from or writes to that repository. - [`skills/ucsd-decorator/references/distribution.md`](skills/ucsd-decorator/references/distribution.md) — how Decorator is published today, the version-identity gap, and what the maintainers should add -- [`chorta/antigravity-code-kit`](https://github.com/chorta/antigravity-code-kit) - — the Antigravity starter this kit generalizes - [`UCSD/Decorator`](https://github.com/UCSD/Decorator) — Decorator source - — official documentation diff --git a/bin/cli.mjs b/bin/cli.mjs index bf51b83..2b61942 100755 --- a/bin/cli.mjs +++ b/bin/cli.mjs @@ -165,8 +165,7 @@ async function writeManifest(managed) { $schema: `https://cdn.jsdelivr.net/npm/${kitPackage.name}@${VERSION}/contracts/decorator-kit.schema.json`, kitVersion: VERSION, // The one writable region. Everything else on the page is chrome. A project - // with a different shell — the Antigravity Code Kit uses div#ag-app-canvas — - // edits this, and the chrome gate reads it from here. + // with a different shell edits this, and the chrome gate reads it from here. canvas: previous?.canvas ?? "main#main-content", decorator: { package: DECORATOR_PACKAGE, diff --git a/checks/README.md b/checks/README.md index eed6cbf..b67c071 100644 --- a/checks/README.md +++ b/checks/README.md @@ -94,7 +94,7 @@ this kit: | File | Role | |---|---| -| `decorator-kit.json`'s `canvas` field | The one writable region — `main#main-content` for a plain template, `div#ag-app-canvas` for the Antigravity Code Kit. Falls back to `main#main-content` if the file is absent. | +| `decorator-kit.json`'s `canvas` field | The one writable region — `main#main-content` for a plain template, or the selector a project with its own shell names. Falls back to `main#main-content` if the file is absent. | | `chrome-contract.local.json` | Tier 2's recorded golden — written by `--accept`, committed to the project, diffed against on every `--check`. | A project whose chrome genuinely differs from the six default regions or the diff --git a/contracts/chrome-regions.json b/contracts/chrome-regions.json index 3720e49..46ed432 100644 --- a/contracts/chrome-regions.json +++ b/contracts/chrome-regions.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "note": "Portable default protected chrome regions for UC San Diego Decorator 5. Selectors only — no ids or content specific to any one site — so this holds for any Decorator project. The canvas selector is not here: it is read from decorator-kit.json, since it varies by project shape (main#main-content vs div#ag-app-canvas per the Antigravity Code Kit) while these regions do not. Add project-specific regions in chrome-regions.local.json (same shape, entries merge by id). Validate against contracts/chrome-regions.schema.json. Derived from skills/ucsd-decorator/references/canvas-contract.md and protected-regions.md.", + "note": "Portable default protected chrome regions for UC San Diego Decorator 5. Selectors only — no ids or content specific to any one site — so this holds for any Decorator project. The canvas selector is not here: it is read from decorator-kit.json, since it varies by project shape (main#main-content by default, another selector for a project with its own shell) while these regions do not. Add project-specific regions in chrome-regions.local.json (same shape, entries merge by id). Validate against contracts/chrome-regions.schema.json. Derived from skills/ucsd-decorator/references/canvas-contract.md and protected-regions.md.", "regions": [ { "id": "skip-link", "selector": "header.layout-header > a.sr-only" }, { "id": "emergency", "selector": "header.layout-header > #uc-emergency" }, diff --git a/contracts/chrome-regions.schema.json b/contracts/chrome-regions.schema.json index e79986f..44c04aa 100644 --- a/contracts/chrome-regions.schema.json +++ b/contracts/chrome-regions.schema.json @@ -2,7 +2,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://github.com/UCSD/decorator-kit/contracts/chrome-regions.schema.json", "title": "UCSD Decorator chrome region list", - "description": "The protected chrome regions tiers 1, 2, 3 and (for token derivation) 4 all operate on. `canvas` is deliberately not declared here — it is read from decorator-kit.json's `canvas` field, since it varies by project shape (main#main-content vs div#ag-app-canvas) while the regions below do not.", + "description": "The protected chrome regions tiers 1, 2, 3 and (for token derivation) 4 all operate on. `canvas` is deliberately not declared here — it is read from decorator-kit.json's `canvas` field, since it varies by project shape (main#main-content by default, another selector for a project with its own shell) while the regions below do not.", "type": "object", "required": ["schemaVersion", "regions"], "properties": { diff --git a/contracts/decorator-kit.schema.json b/contracts/decorator-kit.schema.json index bce659c..e9060f4 100644 --- a/contracts/decorator-kit.schema.json +++ b/contracts/decorator-kit.schema.json @@ -14,8 +14,8 @@ }, "canvas": { "type": "string", - "description": "CSS selector for the one writable region. Everything else on the page is chrome. `main#main-content` for a plain Decorator template and for tritonai-website; `div#ag-app-canvas` for the Antigravity Code Kit.", - "examples": ["main#main-content", "div#ag-app-canvas"] + "description": "CSS selector for the one writable region. Everything else on the page is chrome. `main#main-content` for a plain Decorator template and for tritonai-website.", + "examples": ["main#main-content"] }, "decorator": { "type": "object", diff --git a/library/tritonai/ucsd-decorator/SKILL.md b/library/tritonai/ucsd-decorator/SKILL.md index 83522cb..4dbe4c9 100644 --- a/library/tritonai/ucsd-decorator/SKILL.md +++ b/library/tritonai/ucsd-decorator/SKILL.md @@ -39,7 +39,7 @@ So: resolve markup from a file, in this order. |---|---|---| | 1 | `node_modules/ucsd-decorator-v5/dist/…` | the package is installed | | 2 | `vendor/decorator-5/…` (or the project's pinned copy) | a sync script pins it | -| 3 | `core-template/…` | Antigravity Code Kit layout | +| 3 | `core-template/…` | the project keeps a pristine template copy | | 4 | install or pin the package | nothing local exists | If you reach step 4, do not fetch a page — run `npm i -D ucsd-decorator-v5` or @@ -78,7 +78,6 @@ A Decorator project has exactly one writable region. Everything else is chrome. | Project shape | Canvas | |---|---| | TritonAI site (`tritonai-website`) | `main#main-content` | -| Antigravity Code Kit | `div#ag-app-canvas` | | Plain Decorator template | `main#main-content` | Content, components, application logic, and generated markup go **inside the diff --git a/library/tritonai/ucsd-decorator/references/canvas-contract.md b/library/tritonai/ucsd-decorator/references/canvas-contract.md index 30cebd7..b83ceb5 100644 --- a/library/tritonai/ucsd-decorator/references/canvas-contract.md +++ b/library/tritonai/ucsd-decorator/references/canvas-contract.md @@ -30,7 +30,6 @@ file is absent: |---|---| | Plain Decorator template | `main#main-content` | | TritonAI site | `main#main-content` | -| Antigravity Code Kit | `div#ag-app-canvas` | The chrome regions ship as a portable default, `contracts/chrome-regions.json`, since — unlike the canvas — they hold for any Decorator site without change: diff --git a/rules/00-canvas.md b/rules/00-canvas.md index be71ad3..55e2333 100644 --- a/rules/00-canvas.md +++ b/rules/00-canvas.md @@ -14,7 +14,6 @@ site. |---|---| | Plain Decorator template | `main#main-content` | | TritonAI site | `main#main-content` | -| Antigravity Code Kit | `div#ag-app-canvas` | All new content, components, markup, and application logic go inside the canvas. diff --git a/rules/10-brand-integrity.md b/rules/10-brand-integrity.md index eff067d..92cd11b 100644 --- a/rules/10-brand-integrity.md +++ b/rules/10-brand-integrity.md @@ -56,7 +56,7 @@ names it: the CDN `base.min.css` sets `body, html { background: #fff }`, and ways, and neither touches a chrome token: - **A background on the ground itself** — `html`, `body`, `:root`, or the - canvas root (`main#main-content`, `div#ag-app-canvas`). + canvas root (`main#main-content`, or whatever `decorator-kit.json` names). - **A full-bleed trick** that paints past a canvas element's own box to the edges of the viewport: `box-shadow: 0 0 0 100vmax` paired with `clip-path: inset(0 -100vmax)`, `width: 100vw`, or diff --git a/scripts/compile-rules.mjs b/scripts/compile-rules.mjs index 6dce034..1217c4c 100644 --- a/scripts/compile-rules.mjs +++ b/scripts/compile-rules.mjs @@ -7,9 +7,8 @@ import { renderRuleFiles } from "./lib/rules.mjs"; // environment reads, DECORATOR.md with the detail they point to, and the two // reference pages the skill links to. // -// The Antigravity Code Kit maintained CLAUDE.md, .cursorrules, and -// .github/copilot-instructions.md as three hand-synced copies of the same text -// (17100 / 17090 / 17090 bytes). They drift. Generate them instead. +// CLAUDE.md, .cursorrules, and .github/copilot-instructions.md carry the same +// text. Kept as three hand-synced copies, they drift. Generate them instead. // // The rendering itself lives in scripts/lib/rules.mjs, because bin/cli.mjs runs // the same code against a consumer project's root. diff --git a/skills/ucsd-decorator/SKILL.md b/skills/ucsd-decorator/SKILL.md index 83522cb..4dbe4c9 100644 --- a/skills/ucsd-decorator/SKILL.md +++ b/skills/ucsd-decorator/SKILL.md @@ -39,7 +39,7 @@ So: resolve markup from a file, in this order. |---|---|---| | 1 | `node_modules/ucsd-decorator-v5/dist/…` | the package is installed | | 2 | `vendor/decorator-5/…` (or the project's pinned copy) | a sync script pins it | -| 3 | `core-template/…` | Antigravity Code Kit layout | +| 3 | `core-template/…` | the project keeps a pristine template copy | | 4 | install or pin the package | nothing local exists | If you reach step 4, do not fetch a page — run `npm i -D ucsd-decorator-v5` or @@ -78,7 +78,6 @@ A Decorator project has exactly one writable region. Everything else is chrome. | Project shape | Canvas | |---|---| | TritonAI site (`tritonai-website`) | `main#main-content` | -| Antigravity Code Kit | `div#ag-app-canvas` | | Plain Decorator template | `main#main-content` | Content, components, application logic, and generated markup go **inside the diff --git a/skills/ucsd-decorator/references/canvas-contract.md b/skills/ucsd-decorator/references/canvas-contract.md index 30cebd7..b83ceb5 100644 --- a/skills/ucsd-decorator/references/canvas-contract.md +++ b/skills/ucsd-decorator/references/canvas-contract.md @@ -30,7 +30,6 @@ file is absent: |---|---| | Plain Decorator template | `main#main-content` | | TritonAI site | `main#main-content` | -| Antigravity Code Kit | `div#ag-app-canvas` | The chrome regions ship as a portable default, `contracts/chrome-regions.json`, since — unlike the canvas — they hold for any Decorator site without change: diff --git a/test/chrome-contract.test.mjs b/test/chrome-contract.test.mjs index be3c37c..9a6d24c 100644 --- a/test/chrome-contract.test.mjs +++ b/test/chrome-contract.test.mjs @@ -214,9 +214,9 @@ describe("loadConfig", () => { it("reads canvas from decorator-kit.json", async () => { const dir = await project(); - await writeFile(path.join(dir, "decorator-kit.json"), JSON.stringify({ canvas: "div#ag-app-canvas" })); + await writeFile(path.join(dir, "decorator-kit.json"), JSON.stringify({ canvas: "div#app-canvas" })); const config = await loadConfig(dir); - assert.equal(config.canvas, "div#ag-app-canvas"); + assert.equal(config.canvas, "div#app-canvas"); assert.equal(config.manifestFound, true); }); diff --git a/test/chrome-styling.test.mjs b/test/chrome-styling.test.mjs index 21418fe..3ee460f 100644 --- a/test/chrome-styling.test.mjs +++ b/test/chrome-styling.test.mjs @@ -216,9 +216,9 @@ describe("scanCssFile — shipped regression 4: canvas-scoped CSS repainting the }); it("resolves the canvas root from the project's canvas selector", () => { - const css = `#ag-app-canvas { background: #eee; }\nmain { background: #eee; }\n`; - const agKit = pageGround(scanCssFile("css/site.css", css, new Set(), { exceptions: [], canvasSelector: "div#ag-app-canvas" })); - assert.deepEqual(agKit.map((f) => f.selector), ["#ag-app-canvas"], "a bare main is not the canvas root in that kit"); + const css = `#app-canvas { background: #eee; }\nmain { background: #eee; }\n`; + const custom = pageGround(scanCssFile("css/site.css", css, new Set(), { exceptions: [], canvasSelector: "div#app-canvas" })); + assert.deepEqual(custom.map((f) => f.selector), ["#app-canvas"], "a bare main is not the canvas root in that project"); const decorator = pageGround(scanCssFile("css/site.css", css, new Set(), { exceptions: [] })); assert.deepEqual(decorator.map((f) => f.selector), ["main"]); });