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
1 change: 0 additions & 1 deletion .cursorrules
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
1 change: 0 additions & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
1 change: 0 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion DECORATOR.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
- <https://developer.ucsd.edu/design/decorator/> — official documentation
3 changes: 1 addition & 2 deletions bin/cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion checks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion contracts/chrome-regions.json
Original file line number Diff line number Diff line change
@@ -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" },
Expand Down
2 changes: 1 addition & 1 deletion contracts/chrome-regions.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions contracts/decorator-kit.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions library/tritonai/ucsd-decorator/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion rules/00-canvas.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion rules/10-brand-integrity.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions scripts/compile-rules.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 1 addition & 2 deletions skills/ucsd-decorator/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion skills/ucsd-decorator/references/canvas-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions test/chrome-contract.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down
6 changes: 3 additions & 3 deletions test/chrome-styling.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);
});
Expand Down
Loading