Skip to content
33 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.

Integrations are a directory of connectors, for a workspace and for each person1import type { ProviderKind } from "@g1t/contracts";
2
3/**
4 * The workspace's integration setup pages, under `-/integrations/<section>`:
5 * one for each kind of provider connection. The directory at
The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404.6 * `-/integrations` links into them. Model providers have no page: they
7 * were for g1t's own agents, which are gone.
Integrations are a directory of connectors, for a workspace and for each person8 */
The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404.9export type IntegrationsSection = "alerts" | "trackers";
10
11/** The kinds of provider that have a setup page. */
12export type SectionKind = Exclude<ProviderKind, "models">;
Integrations are a directory of connectors, for a workspace and for each person13
The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404.14const SECTIONS: Record<SectionKind, IntegrationsSection> = {
Integrations are a directory of connectors, for a workspace and for each person15 alerts: "alerts",
16 tracker: "trackers",
17};
18
The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404.19/** Whether a kind of provider has a setup page. */
20export function hasSection(kind: ProviderKind): kind is SectionKind {
21 return kind in SECTIONS;
22}
23
24/** The page a kind of provider is set up on, or null when it has none. */
25export function integrationsSection(kind: ProviderKind): IntegrationsSection | null {
26 return hasSection(kind) ? SECTIONS[kind] : null;
Integrations are a directory of connectors, for a workspace and for each person27}
28
29/** The kind of provider a section's page is for, or null when it is no section. */
The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404.30export function sectionKind(section: string | undefined): SectionKind | null {
31 const found = (Object.keys(SECTIONS) as SectionKind[]).find((kind) => SECTIONS[kind] === section);
Integrations are a directory of connectors, for a workspace and for each person32 return found ?? null;
33}