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.
| Project settings say who created the project, by name | 1 | import assert from "node:assert/strict"; |
| 2 | import { test } from "node:test"; | |
| 3 | ||
| The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens. | 4 | import { linkPaths } from "./compute.ts"; |
| Project settings say who created the project, by name | 5 | |
| 6 | test("the page a refusal names becomes a link, without its full stop", () => { | |
| The contracts no longer describe g1t's own agents, and workspaces can keep their AI providers. Every consumer had already stopped using them, so the TypeScript and Rust contracts drop the workspace-agent, ability, look, skill-library, context, runner-agent and mention modules, the chat and docs RPCs agents posted and read through, the folio agent methods, the agent_waiting notification, agent.asked and memory.changed events, AI credit, token and gateway billing types, model routes and sessions, team agents, agent tokens, plan, review, message and confidence types, command rules, cost caps and confidence rules. The agents:run and models:* scopes are no longer offered by any preset, OAuth default or permission form, but a stored token or grant that names them still reads; and the removed operations are gone from the scope table, so the API's check that every operation has exactly one scope is strict again. What stored data needs in order to parse (old run and credential kinds, an agent team lead, retired rules and webhook events, old guardrail and integration settings) still parses, and a run's token is still PrincipalKind::Agent, which now means a run's token and the @g1t rows written before. The customize, marketplace, skills and claude-plugin contracts stay only until the mobile app drops its Customize screens. | 7 | assert.deepEqual(linkPaths("Deployments need a paid workspace. Start the $20 plan: /acme/-/billing"), [ |
| 8 | { text: "Deployments need a paid workspace. Start the $20 plan: " }, | |
| Project settings say who created the project, by name | 9 | { text: "/acme/-/billing", href: "/acme/-/billing" }, |
| 10 | ]); | |
| 11 | assert.deepEqual(linkPaths("An owner can raise it: /acme/-/billing. Then try again."), [ | |
| 12 | { text: "An owner can raise it: " }, | |
| 13 | { text: "/acme/-/billing", href: "/acme/-/billing" }, | |
| 14 | { text: ". Then try again." }, | |
| 15 | ]); | |
| 16 | }); | |
| 17 | ||
| 18 | test("text without a page, or with other slashes, stays text", () => { | |
| 19 | assert.deepEqual(linkPaths("Try again in a minute."), [{ text: "Try again in a minute." }]); | |
| 20 | assert.deepEqual(linkPaths("It reads src/-/x and a/b"), [{ text: "It reads src/-/x and a/b" }]); | |
| 21 | }); |
This file's history is long; its oldest lines are credited to the oldest commit read.