glypt-app 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/glypt.mjs +1 -1
- package/package.json +3 -3
package/dist/glypt.mjs
CHANGED
|
@@ -14028,7 +14028,7 @@ function reconnectDelayMs(attempt, random = Math.random()) {
|
|
|
14028
14028
|
|
|
14029
14029
|
// src/agents/skill-text.generated.ts
|
|
14030
14030
|
var SKILL_TEXT = "---\nname: glypt\ndescription: Command-line client for Glypt, the browser where people and their agents work on a live site together. In a room (any URL opened in Glypt) \u2014 list rooms; read a room's anchored points and threads by number, id, or any pasted link; make a point from a selector or a pin, say more on one, ref what it's about elsewhere, resolve/reopen/ship it; watch a room live or read its durable log; mint the machine tokens agents and CI use to act in a room; push a room's beats to a signed webhook and verify one; hold a credential on this machine. Use when a task needs to read, write, watch, or hold a credential for a Glypt room from a shell or an agent.\n---\n\n# glypt\n\nGlypt is a browser where people and their agents work on a live site together. Any URL opened\nin it is a room: people point at real page elements (points), say what should change, and\nthreads collect there. An agent works when its person writes to it on a point, in their chat\nwith it (the point card's side with the agent's name); woken, it reads what they wrote, picks the\npoint up, changes the site, answers there and marks the point shipped, and a person verifies. This\nCLI is how an agent or a shell reads, writes and watches that room. It never prompts: every failure is one JSON line on stderr, every success\nis the full contract JSON (piped or `--json`) or a plain table (a TTY).\n\n## Install\n\nFrom npm, or the copy inside Glypt for Mac:\n\n```\nnpm i -g glypt-app\nglypt rooms --json\n/Applications/Glypt.app/Contents/Helpers/glypt rooms --json\n```\n\n## Getting in\n\nCredential, in order: `GLYPT_TOKEN` \u2192 the calling agent tool's own connection\n(**Connected from Glypt for Mac**, below) \u2192 `glypt auth login`'s stored token \u2192 none.\nRoom: `--room` \u2192 `GLYPT_ROOM` \u2192 `.glypt/config.json` `{\"room\":\"<id>\"}` (walked up from cwd).\nAPI base: `--api` \u2192 `GLYPT_API_BASE_URL` \u2192 config `api` \u2192 `https://api.glypt.app`.\n`GLYPT_NONINTERACTIVE` is accepted and a no-op \u2014 glypt never prompts either way.\nA secret is never an argument: `--token` and `--secret` are refused on every command (an\nargument is readable by every process on the machine and kept by the shell).\n\n**A room whose link is open answers reads to anyone holding its id, with no credential at\nall.** `room`, `points`, `point`, `show` and `events` take you at your word: set `GLYPT_TOKEN`\nif you have one, leave it unset if you don't. Two answers mean it isn't yours this way: `gone`\n(exit 1, the link is off \u2014 a credential would not help) and `unauthorized` (exit 2, this needs\nsomebody). `rooms`, `join`, `watch` and `token *` always need a credential and say so before\nasking the network. `glypt <command> --help` and `--agent --help` say which on every command.\n\nAn agent is handed `GLYPT_TOKEN` (a machine token, `glypt_\u2026`) by whatever launched it \u2014 see\n**Getting a token**. A human at a terminal can instead pipe it to\n`glypt auth login --with-token` (`printf %s \"$TOKEN\" | glypt auth login --with-token`) to\nstore one in `~/.config/glypt/credentials.json` (mode 600) so it survives new shells; a\nbrowser login (Supabase sign-in) arrives later. `GLYPT_TOKEN` still wins when both are set.\n\n## Read\n\n```\nglypt rooms --json\nglypt room a1b2c3d4e5f6g7h8 --json\nglypt join a1b2c3d4e5f6g7h8\nglypt points --room a1b2c3d4e5f6g7h8 --json\nglypt points --room a1b2c3d4e5f6g7h8 --open --since 2d\nglypt point 12 --room a1b2c3d4e5f6g7h8\nglypt team --room a1b2c3d4e5f6g7h8\nglypt show a1b2c3d4e5f6g7h8/12\n```\n\n`points` is a room's anchored points, each summed up (unread count, last word); add\n`--open` or `--resolved` to filter by whether the point is resolved, and `--since <duration>`\n(`2d`, `6h`, `30m`, `45s`) to keep only points whose last message \u2014 or, if it never got one,\nwhose birth \u2014 falls inside that window. **A point's name is `<room>/<n>`**, counted from 1 \u2014\nwhat a person says out loud and what a link carries; `glypt point <n>` takes it (answering\n`PointByNumberResponse`, the anchor beside the moments), an anchor id works too (answering\n`PointThreadResponse`, moments alone). `glypt show <anything>` takes whatever you have: paste a room\nid, `<room>/<n>`, a `https://glypt.app/p/\u2026` or `glypt://project/\u2026` link, a pin URL or payload,\nor (with `--room`) a bare anchor id, and it prints back `{kind: 'room'|'point'|'pin', \u2026}` \u2014\nuseful the moment you don't yet know what a pasted string names.\n\n`team` is who BELONGS to the room \u2014 its `keeper` (who made it) and every `contributor` who\nhas spoken in it, most recently first. Not who is connected right now: it answers the same\nfor a room nobody is sitting in. Read it before you `mention` somebody, since it is where\nthe handles come from. Unlike the reads above it **always needs a credential**: an open link\nadmits people to the room, it does not hand a stranger the room's roll of names. A `handle`\ncan be null \u2014 nothing remembers every name \u2014 so print the id when you need certainty.\n\n## Write\n\n```\nglypt point new https://example.com --selector 'main h1' --say 'this wraps at 390' --room <id>\nglypt point 12 say 'still true after the redesign' --room <id>\nglypt point 12 ref https://github.com/acme/site/issues/88 --room <id>\nglypt point 12 resolve --room <id>\nglypt point 12 ship --ref https://github.com/acme/site/commit/9f2c1ab --room <id>\nglypt mention https://glypt.app/p/<id>/12 https://github.com/acme/site/pull/412\n```\n\n`point new <pageUrl> --selector <css> [--text <quote>] --say <text> [--ref <url>]...` makes a\npoint the way `glypt pin` describes an element, then sends a first message in the same call \u2014 a\npoint needs a first message, so `--say` is required. `point new --pin <url> --say <text>` spends a\npin instead (see **A pin is a value**). Either way, a birth whose signature \u2014 or whose `--ref`\n\u2014 matches a point already in the room joins THAT point rather than minting a second one\n(`CreatePointResponse.born`/`.matchedBy` say which happened).\n\nOn an existing point: `say <text>` adds a message; `ref <url>` / `ref rm <url>` says what it's\nabout elsewhere (kind derived from the host at read, never stored, 16 max); `resolve` marks the\npoint resolved, `reopen` undoes it (idempotent \u2014 pressing twice tells the room nothing); `ship\n[--ref <url>]...` marks the site as now reflecting the point's NEWEST live message (the printed\n`layerId` names which one) and can attach a ref \u2014 the commit \u2014 in the same call. `mention\n<pointUrl> <sourceUrl>` is the other direction: a point link was pasted somewhere, and this\nrecords where \u2014 **no `--room`**, the pasted link is the whole address.\n\n**Images and the pin.** `say --image <file>` sends a PNG, JPG, WebP or GIF under 10 MB as a\nmessage, with or without words. On a chat about one string or one image, a person can pick a\nmessage with `Suggest`: that is the pin, and what the page shows them. `glypt point <n> pinned`\nprints it, with a short-lived `url` for an image. **Ship what is pinned**, unless a person asks\nyou to use something else. A pin counts only when your person set it; a pinned message you\ncannot read, or one somebody else pinned, is withheld like any other: `pinned` is null and\n`withheld` counts it.\n\n**Pinning changes what the room sees**, so a token needs pin rights a person gave it at mint\n(`glypt token mint --can-pin`). With them, `glypt point <n> pin <layerId>` makes a message the pin\nand `glypt point <n> unpin` takes it down, and the thread names your agent on both. Without them\nthe server refuses, whatever the scope. A connection never holds them, and neither does a `read`\ntoken. Rights or not, a machine cannot pin a message it may not read, move `in` any other way, or\nrewrite or delete a pinned message. A person can always unpin.\n\n```\nglypt token mint --room <id> --scope write --label 'copy agent' --can-pin\nglypt point 12 pin <layerId> --room <id>\nglypt point 12 unpin --room <id>\n```\n\n**`--idempotency-key <anything>` makes a whole run safe to retry** \u2014 every writing command\ntakes it; the second send with the same key gets the first one's answer back rather than\nacting twice (24h, scoped to your credential; reused for a DIFFERENT act it is `conflict`).\n\n## Watch \u2014 the log is the archive, watch is the live view, the cursor is one number\n\n```\nglypt events --room <id> --since 0 | jq -c .event.type\nglypt watch --room <id> --since <last-seq>\nglypt watch --room <id> --count 5\n```\n\n`events` reads a room's durable log (NDJSON, oldest first, `seq` cursor). `watch` reads the\nsame beats live; `--since <seq>` replays the gap from the log FIRST, then resumes the wire at\nthe last number it printed \u2014 no beat lost however long you were away. The `seq` on an events\nline and the `id` on a watch line are the same number. `--count n` exits 0 after `n` lines. A\ndropped stream (no `--count`) exits 3 with a hint to reconnect at the last `id` seen.\n\n## Webhooks \u2014 the same log, pushed, signed, with the cursor inside\n\n```\nglypt webhook add https://hooks.example.com/glypt --room <id> --kinds anchor-changed\nglypt webhook list --room <id>\nglypt webhook test <webhookId>\nglypt webhook rm <webhookId>\nGLYPT_WEBHOOK_SECRET=<s> glypt webhook verify --signature \"t=1757942400,v1=<hex>\" < body.json\n```\n\nA webhook POSTs **the same `ArchivedRoomEvent` `glypt events` answers with, under the same\n`seq`** \u2014 so a receiver that misses one never asks us to resend: it reads `events --since\n<lastDeliveredSeq>` and is caught up. `add` prints the signing secret **once** (nothing stores\nit in the clear, no route reads it back); `GLYPT_WEBHOOK_SECRET` brings your own instead, `--kinds`\nnarrows to any of `anchor-created`, `anchor-changed`, `layer-changed` (omit for all\nthree). `list` shows `lastDeliveredSeq` \u2014 how far each hook has got \u2014 and\n`lastError`. `test` queues one synthetic `resync` through the real path. Minting and deleting\nneed **scope `admin`** on a machine token: a hook is a standing grant.\n\nEach delivery carries `Glypt-Signature: t=<unix>,v1=<hex hmac-sha256 over \"<t>.<body>\">`,\n`Glypt-Seq` and `Glypt-Webhook-Id`. Failures retry 1s \u2192 2s \u2192 4s \u2026 capped at an hour, in order\nper hook, for 24h; a **410** from your endpoint disables the hook for good.\n\n`verify` is local \u2014 no network, no credential. Pipe the exact body you received to it with the\nheader you received, and it prints `{\"ok\":true,\"reason\":\"ok\"}` (exit 0) or the reason it failed\n(exit 1): `malformed`, `bad-signature`, `stale`. Write your receiver in any language and check\nit against this before you deploy it.\n\nA receiver, whole \u2014 completes a Basecamp todo when a point is resolved:\n\n```js\nimport { createServer } from 'node:http';\nimport { createHmac, timingSafeEqual } from 'node:crypto';\nconst SECRET = process.env.GLYPT_WEBHOOK_SECRET,\n BC = process.env.BASECAMP_TOKEN;\ncreateServer((req, res) => {\n let body = '';\n req.on('data', (c) => (body += c));\n req.on('end', async () => {\n const { t, v1 } = Object.fromEntries(\n (req.headers['glypt-signature'] ?? '').split(',').map((p) => p.split('=')),\n );\n const mine = createHmac('sha256', SECRET).update(`${t}.${body}`).digest('hex');\n if (mine.length !== (v1 ?? '').length || !timingSafeEqual(Buffer.from(mine), Buffer.from(v1)))\n return res.writeHead(401).end();\n if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return res.writeHead(401).end();\n const { event } = JSON.parse(body);\n if (event.type === 'anchor-changed' && event.anchor.resolvedAt) {\n const todo = event.anchor.refs.find((r) => r.includes('basecamp.com'));\n if (todo)\n await fetch(`${todo}/completion`, {\n method: 'POST',\n headers: { Authorization: `Bearer ${BC}` },\n });\n }\n res.writeHead(204).end();\n });\n}).listen(8080);\n```\n\nPoint a room at it, attach the todo to the point, and resolving the point ticks the todo:\n\n```\nglypt webhook add https://your-host/glypt --room <id> --kinds anchor-changed\nglypt point 12 ref https://3.basecampapi.com/1/buckets/2/todos/3 --room <id>\nglypt point 12 resolve --room <id>\n```\n\n## A pin is a value \u2014 mint one from a selector, paste the URL anywhere\n\n```\nglypt pin https://example.com --selector 'main h1' --note 'heading wraps at 390' --json\nglypt point new --pin https://glypt.app/pin/<payload> --room <id> --say 'agreed'\n```\n\nA pin is an element written down \u2014 page, selector, what it says \u2014 packed into\n`https://glypt.app/pin/<payload>`. **No room, no token, no network.** It unfurls where pasted,\nopens the element in the Mac app, and `curl -H 'Accept: application/json' <url>` reads it back\neven while the API is down. Spending one (`point new --pin`) is the only moment it needs a\nroom; spent twice, it joins one thread.\n\n## Feedback \u2014 a bug, a wish, anything else\n\nTell the people making Glypt, for your person. Ask them first: it is sent as them, and the operator\nreads it with their email. A token needs scope `write`. Ten an hour per person, across their machines.\n\n```\nglypt feedback \"The share sheet closes when I press tab.\" --kind bug\nglypt feedback \"A way to see every room I left.\" --kind wish --with-version\nglypt feedback \"This page's points moved.\" --kind bug --room <id> --page <url>\n```\n\nNothing goes with the words unless a flag says so: `--room` (a room you are in; any other is\nrefused), `--page`, `--with-version` (this CLI's version and the platform). `GLYPT_ROOM` is not read\nhere. You get back an id and a time; feedback cannot be read back.\n\n## Connected from Glypt for Mac\n\nGlypt for Mac connects the agent tools it finds (Claude Code, Codex) when its person signs\nin, and they then act as that person in every room the person has joined. Each one keeps its\nown credential (a CONNECTION, `glypt_\u2026`, scope `write`) at\n`~/.config/glypt/agents/<tool>/credentials.json` beside a shim, `\u2026/<tool>/glypt`, that runs\nthis program as that tool; the tool's instructions name the shim. A connection never joins a\nroom by itself, never verifies, and never connects another. Its person switches it off in\nSettings \u25B8 Agents; the next call is `unauthorized` (exit 2). A connection ends 90 days after it\nis made or renewed (`expiresAt`); Glypt for Mac renews the ones it connected, and no machine\ncan renew one, itself included.\n\n```\nglypt connect --detect\nglypt connect codex --dry-run\nglypt connect --refresh\nglypt disconnect codex\nglypt connections list\nglypt connections revoke <connectionId>\n```\n\n`connect --detect` lists the tools on this machine and whether each was found. `connect <tool>`\ntakes the connection's secret on STDIN only (an argument is visible to every process) and\nwrites the credential, the shim and one marked file in the tool's folder \u2014 a second run says\n`unchanged`. `disconnect <tool>` removes exactly what `connect` wrote, and leaves a person's own\ntext in that file alone. `connections list` is the same list Settings shows, with the rooms\neach one is listening in; a connection may turn ITSELF off with `connections revoke`.\n\n## When you are asked\n\nYour person asks you in your agent chat on a point: theirs and yours, read by the two of you\nand nobody else. With an agent connection, `glypt point <n>` reads that chat (the point's\nelement and status beside it), and `say` and `offer` speak in it. You never speak in the\nroom's thread: the server refuses an agent connection's thread message, and your person posts\nwhat the room should read. A room token (CI) is the room's own and still speaks in the thread.\n\n```\nglypt asked --waiting\nglypt point 12 --room a1b2c3d4e5f6g7h8 --json\nglypt point 12 working --room a1b2c3d4e5f6g7h8\nglypt point 12 say \"Changed the label to Book a call and deployed it.\" --room a1b2c3d4e5f6g7h8\nglypt point 12 shipped --room a1b2c3d4e5f6g7h8\nglypt watch --asked\n```\n\n`asked` lists every point where your person spoke to you in your chat, across every room they\njoined; `waiting` is true while they said something after your own last word. Read the chat, mark it\n`working` (shown as \"Picked up by <you>\"), do the work, `say` what changed (attach the commit\nwith `glypt point <n> ship --ref <url>` if there is one), then mark it `shipped`, which RESOLVES\nthe point. A person verifies; you cannot. Any later word on the point reopens it. Only a machine\npicks up or ships; a person who did the work resolves it. `watch --asked` holds one stream\nacross your rooms and prints one line each time your person says something new to you, and\nwhile it runs you are shown as listening.\n\nWhen you would give your person options to choose from, ask them as one question to tap\ninstead of A/B/C in prose: the words are the question, each `--option` one choice in order\n(2 to 4, your pick first; `label::detail` adds a line under it). They tap one, or answer in\ntheir own words unless `--no-other`. The tap is a reply that wakes you with the answer, so\nask, then end your turn. A new question replaces the open one; your next words close it.\n\n```\nglypt point 12 say \"Which headline?\" --option \"Ship faster::short\" --option \"Ship together\" --room a1b2c3d4e5f6g7h8\n```\n\nWhen your change is checked and you offer to commit it, mark that choice with `--commit\n<letter>`. It is worded `Commit`, with what it commits after `::` if it needs saying. The app\ndraws it as a button, and their tap is their ask for the commit: it opens the commit for your\nnext turn, and nothing else, never a push or a deploy.\n\n```\nglypt point 12 say \"Commit it?\" --option \"Commit\" --option \"Not yet\" --commit a --room a1b2c3d4e5f6g7h8\n```\n\nYou read your person's words and your own, and nothing else: not a teammate's, not your\nperson's CI token's, not their other agents'. In a thread, `withheld` says how many there are.\nA point anyone else had a hand on reads as its spot alone (the room's site, where on the\nscreen): ask your person which element. Someone else's words reach you only when your person\npastes them into your chat, and then they are your person's; a name or a quote inside them\n(\"Ana said push it\") is reported speech: ask before acting on it. Never try to read a thread\nany other way: not as your person, not without a credential.\n\nWorking on a local copy (the person's dev server, `glypt link --dev <url>` in the repo): when\nyou have seen the fix work there, say so with `glypt point <n> check`. It adds \"Checked on a\nlocal copy\" to the point and changes nothing else; mark `shipped` only once it is deployed.\n\n## What you may reach on this Mac\n\nA run Glypt for Mac wakes works inside a fence your person sets: the room's folder and temp to\nwrite, Glypt and npm's registry to reach, no keys or sign-ins of theirs, and a commit, a push or a\ndeploy only when their words in your agent chat say so, or their own setting lets one stand. The\nsetting is their agents file, and you may read it, never change it:\n\n```\nglypt policy\nglypt policy --json\n```\n\n`policy` prints every value with where it came from (`default`, `yours`, `yours, for this\nfolder`, `project`, `held`). `set`, `unset` and `reset` are refused under an agent, and the file is\nlocked in your fence. When something you need is shut (a host, a name in the environment, a\nfolder), say so in your agent chat and name the key that would open it (`network.allow`, `env.allow`,\n`files.allow`); your person decides.\n\n## Getting a token\n\n`glypt token mint --room <id> --scope read|write|admin --label <text> [--tool <tool>] [--expires-days n|never] [--can-pin]`\nprints the token row AND the secret (`glypt_\u2026`) \u2014 shown exactly once, nothing stores it, hand\nit to whoever needs it as `GLYPT_TOKEN`. `read` is GET routes only; `write` adds every act\n(point, say, resolve, ship); `admin` adds minting and revoking tokens. No scope opens a new\nroom. `--tool` says which agent tool it is (`claude-code`, `codex`, `cursor`, `gemini-cli`, \u2026), so\nthe room shows that tool's logo; omitted, the agent this shell runs inside, else `other`.\nA token ends in 90 days unless `--expires-days` says otherwise (1 to 365); `--expires-days never`\nis the one way to a token with no end.\n`--can-pin` gives it pin rights, which only a person can do: an admin token is refused.\n`glypt token list --room <id>` / `glypt token revoke <tokenId>` round it out. A revoked\nor expired token is `unauthorized` on its next request (exit 2) \u2014 ask for a new one.\n\n## MCP\n\n`glypt mcp` serves a room's tools to an MCP client over stdio, with the credential this CLI already\nholds. It speaks MCP revisions 2026-07-28 and 2025-era, and writes nothing to stdout but the protocol.\nIt exits when the client closes stdin. Restart it after changing credentials.\n\n```\nglypt mcp\n```\n\nClaude Code:\n\n```sh\nclaude mcp add glypt -e GLYPT_TOKEN=glypt_xxx -- glypt mcp\n```\n\nAny other client, in its MCP config:\n\n```json\n{\n \"mcpServers\": {\n \"glypt\": { \"command\": \"glypt\", \"args\": [\"mcp\"], \"env\": { \"GLYPT_TOKEN\": \"glypt_xxx\" } }\n }\n}\n```\n\nTools: `rooms`, `points`, `point`, `pinned`, `image_url`, `say` (`text`, `imagePath` as an absolute\npath inside the working directory or a folder named with `glypt mcp --image-root <folders>`, or\nboth), `ship`, `set_status`, `add_ref`, `remove_ref`, `mark_checked`, `asked`, `room_log` and `my_log` (one page: `since`, `limit`, answering `{events}`; page on with the last\n`seq`). `pin` and `unpin` are listed only for a token with pin rights; called without them, the\nserver's refusal comes back. A refusal is a tool result with `isError: true` and this CLI's one\nerror shape as its text. Withheld messages stay withheld, as everywhere: `pinned` null, `withheld`\ncounted, `image_url` refused.\n\nLeft out on purpose: the two streams (`glypt watch` holds one, the log tools catch up), and\nminting tokens and anything else that hands out access or decides whose words an agent reads.\n\n## Git and files\n\n```\nglypt ship --from-git\nglypt ship --from-git HEAD~5..HEAD --dry-run\nglypt ship --from-git --pr-body pr-body.txt --room a1b2c3d4e5f6g7h8\nglypt pull\nglypt pull ./export --room a1b2c3d4e5f6g7h8 --since 7d\nglypt observe https://example.com --room a1b2c3d4e5f6g7h8\nglypt observe https://example.com --room a1b2c3d4e5f6g7h8 --fail-on-orphaned\n```\n\n`ship --from-git [<rev-range>]` reads commits (default `HEAD~1..HEAD`, or `<sha>~1..<sha>` on\nCI from `GITHUB_SHA`/`CI_COMMIT_SHA`) for `glypt <room>/<n>` \u2014 a `Ships:` trailer is just this\ntext on its own line, nothing parsed differently \u2014 scanned across every commit's full message,\n`--pr-body <file>`, and the branch name. A bare `glypt <n>` (no room) goes to `--room` (or\n`.glypt/config.json`) when one is set. Each match ships its point's newest live message and, when\n`git remote get-url origin` names a GitHub, GitLab or Bitbucket repo, attaches that commit's URL\nas a ref. NDJSON, one line each: `{point, sha, layerId, ref, shipped, reason?}`. Exits 0 even when\nnothing matched \u2014 CI must never fail on an ordinary commit \u2014 and `--dry-run` prints without\ncalling the API or needing a credential.\n\n`pull [dir]` (default `./glypt`) exports points to markdown: `<dir>/<room>/<n>.md` per point\n(front matter is the anchor's own JSON; body is the thread, `- **who** \xB7 <ISO time>: text`, voice\nrows marked `(voice)`, a `Resolved:` line when resolved) plus `<dir>/<room>/README.md` naming the\nroom. No `--room` pulls every room the credential is in. Deterministic \u2014 an unchanged room\nre-pulls byte-identical \u2014 and never deletes a file it did not write this run. `--since\n<duration>` skips points untouched since.\n\n`observe <pageUrl> --room <id>` drives the page with a real, already-installed Chrome\n(`playwright-core`, an optional peer you install yourself \u2014 `pnpm add -D playwright-core`) and\nthe product's own capture bundle, then prints the room's anchors against the live page: NDJSON,\none `resolved`/`drifted`/`orphaned` line per anchor. Exits 0 unless `--fail-on-orphaned` finds\none, for a CI gate.\n\nA site's own `/.well-known/glypt.json` (see `docs/well-known.md`) is read once per origin \u2014 2s\ntimeout, silent on any failure \u2014 by `point new <pageUrl> --selector \u2026`, and its `repo`/`build`/\n`tracker` ride along as refs behind whatever `--ref` already named.\n\n## Output, errors, exit codes\n\n`--json` (or stdout not a TTY): full contract JSON, re-parsed through its schema before\nprinting. A TTY with neither `--json` nor `--fields`: a plain table. `events`/`watch` are\nalways NDJSON. `--fields a,b`: NDJSON of picked keys; an unknown field names the row's real\nkeys. `glypt --agent --help`: one JSON descriptor (every command, its schema name, env vars,\nexit codes) built from the one registry that also drives `--help` and `schema`.\n\nEvery failure is `{\"error\": {\"code\", \"message\", \"hint\"}}` on stderr. `0` ok \xB7 `1` your mistake\n(bad args, `not_found`, `conflict`, or `forbidden` naming the scope) \xB7 `2` no or bad credential\n(`unauthorized` \u2014 set `GLYPT_TOKEN` or `glypt auth login`) \xB7 `3` the network or a dropped\nstream. `glypt schema [command]` prints a command's output as JSON Schema.\n\n**The full API is `openapi.json`.** `glypt schema --openapi` prints the whole document \u2014 every\nroute in one OpenAPI 3.1 file, generated from the same contracts this CLI's own output is\nre-parsed through, so it cannot drift from what the API actually does (`pnpm lint` holds it\ncurrent). Point any OpenAPI-aware tool \u2014 a codegen, a request collection, another agent's\ntool-builder \u2014 at it instead of hand-describing routes it can already read off the wire.\n";
|
|
14031
|
-
var CLI_VERSION = "2.1.
|
|
14031
|
+
var CLI_VERSION = "2.1.2";
|
|
14032
14032
|
|
|
14033
14033
|
// src/options.ts
|
|
14034
14034
|
var JSON_OPTION = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "glypt-app",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "glypt: a Glypt room from a shell. Glypt is a browser where people and their agents work on a live site together; this reads, writes and watches a room. Agent-first: JSON when piped, errors with a hint, never a prompt.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"playwright-core": "^1.65.1",
|
|
49
49
|
"vitest": "^5.1.1",
|
|
50
50
|
"zod": "^4.6.7",
|
|
51
|
-
"@glypt/api": "2.0.0",
|
|
52
51
|
"@glypt/contracts": "2.0.0",
|
|
53
52
|
"@glypt/core": "2.0.0",
|
|
54
|
-
"@glypt/sdk": "2.0.0"
|
|
53
|
+
"@glypt/sdk": "2.0.0",
|
|
54
|
+
"@glypt/api": "2.0.0"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "node scripts/gen-skill-text.mjs && esbuild src/bundle.ts --bundle --platform=node --format=esm --target=node22 --external:playwright-core --outfile=dist/glypt.mjs",
|