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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ red PR job against.
IntersectionObserver). Zero dependencies.
- `node --test scripts/featured-video.test.mjs` — checks the Bluefin talk's placement,
speaker attribution, privacy-enhanced lazy-loaded sandboxed player, 6:09 start without autoplay,
direct links to the highlighted and full talk, and the adopter link. Zero dependencies.
direct links to the highlighted and full talk, the adopter link, and the "How Hive works"
video link under What Hive does. Zero dependencies.
- `node --test scripts/page-frames.test.mjs` — static gate over every `<iframe>` on every
committed HTML page: each frame carries a `sandbox` attribute (bare, quoted or
unquoted) that grants no
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ <h1>Related tooling for agent-assisted development.</h1>
<div class="band-head">
<h2>What Hive does</h2>
<p class="band-lede">Hive is a control layer for running governed fleets of AI coding agents against real projects. Agents pick up issues, open pull requests, review code, repair CI, and answer contributors, under a six-level maturity model that decides exactly what they may do and enforces it in code rather than prompts.</p>
<a class="inline-link" href="https://www.youtube.com/watch?v=uo1KGTyJJyU">Prefer to watch? See how Hive works</a>
</div>

<div class="pillars">
Expand Down
11 changes: 11 additions & 0 deletions scripts/featured-video.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,14 @@ test("the Bluefin adopter links to the talk and its original GitHub link remains
assert.match(html, /<a href="#hive-in-practice"><img src="\/assets\/adopters\/projectbluefin\.png"/);
assert.match(section, /<a href="https:\/\/github\.com\/projectbluefin">Project Bluefin<\/a>/);
});

test("What Hive does links the How Hive works video", () => {
const hive = /<section\b[^>]*\bid="hive"[^>]*>[\s\S]*?<\/section>/.exec(html)?.[0];
assert.ok(hive, "missing What Hive does section");
const link = /<a\b[^>]*>Prefer to watch\? See how Hive works<\/a>/.exec(hive)?.[0];
assert.ok(link, "missing How Hive works link");
const url = new URL(attribute(link, "href"));
assert.equal(url.origin, "https://www.youtube.com");
assert.equal(url.pathname, "/watch");
assert.equal(url.searchParams.get("v"), "uo1KGTyJJyU");
});
Loading