Skip to content
31 linesCodeBlameRaw

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.

Chat controls, public profiles, shadcn selects, and no Docs tab in a project1import assert from "node:assert/strict";
2import { readFileSync } from "node:fs";
3import { test } from "node:test";
4
A desktop release goes out with what can be built. Linux is built on g1t's machines in every release; Windows and macOS each wait on a repository variable: a machine registered for them, or for Windows a cross build on Linux once aka.ms and download.visualstudio.microsoft.com are workflow-only domains, which is where the first release stopped. A platform with no machine is skipped and the download page says it is coming, with a word for the visitor whose platform this release lacks. The guide and CONTRIBUTING say so.5import type { RepoMirror } from "@g1t/contracts";
6
7import { tabsFor } from "./project-nav.ts";
Chat controls, public profiles, shadcn selects, and no Docs tab in a project8import { ROADMAP } from "./roadmap.ts";
9
A desktop release goes out with what can be built. Linux is built on g1t's machines in every release; Windows and macOS each wait on a repository variable: a machine registered for them, or for Windows a cross build on Linux once aka.ms and download.visualstudio.microsoft.com are workflow-only domains, which is where the first release stopped. A platform with no machine is skipped and the download page says it is coming, with a word for the visitor whose platform this release lacks. The guide and CONTRIBUTING say so.10const mirror = (state: RepoMirror["state"]): RepoMirror => ({ state, remote: "github.com/acme/web", url: "https://github.com/acme/web", since: "2026-10-08T10:00:00Z" });
11const can = { security_alerts: true };
12
13test("a mirror has tabs only for the pages it offers", () => {
14 const labels = (tabs: ReturnType<typeof tabsFor>) => tabs?.map((tab) => tab.label) ?? null;
15 // Code and Security read the same whoever leads.
16 assert.deepEqual(labels(tabsFor("commits", true, can, mirror("standby"))), labels(tabsFor("commits", true, can, null)));
17 assert.deepEqual(labels(tabsFor("security/vulnerabilities", true, can, mirror("standby"))), labels(tabsFor("security/vulnerabilities", true, can, null)));
18 // Issues, Agents and the pull requests' tabs come with a takeover.
19 assert.equal(tabsFor("issues", true, can, mirror("standby")), null);
20 assert.equal(tabsFor("sessions", true, can, mirror("ci")), null);
21 assert.equal(tabsFor("queue", true, can, mirror("handing_back")), null);
22 assert.ok(tabsFor("issues", true, can, mirror("takeover")));
23 assert.ok(tabsFor("queue", true, can, mirror("takeover")));
24});
25
Chat controls, public profiles, shadcn selects, and no Docs tab in a project26test("code is not docs: a project never gets a Docs tab", () => {
27 // Docs is its own workspace mode, filtered by project there.
28 assert.equal(ROADMAP.some((item) => item.section !== "Workspace" && /docs/i.test(item.key)), false);
29 const nav = readFileSync(new URL("./project-nav.ts", import.meta.url), "utf8");
30 assert.doesNotMatch(nav, /label: "Docs"|soon\("Code"\)/);
31});