[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77VX0C075RY226NZHPD2MDV":3,"skill-same:01M77VX0C075RY226NZHPD2MDV":207},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M77VX0C075RY226NZHPD2MDV","glance-cli",null,"Use the `glance` CLI to build a self-contained HTML explainer\u002Fdashboard for a codebase or system and publish it — \"explain with html\", \"make an html dashboard\", \"create a dashboard\", \"visualize this architecture\", \"a simple HTML summary for my boss\" — or to deploy any file\u002Ffolder to a Glance instance and get a URL, manage sites (list, delete, move, fork), and close the review loop from the terminal (pull a site's review comments, reply to a thread, then redeploy). Also covers `glance.db`, the built-in per-site document store with REALTIME subscriptions — reach for this on \"realtime page\", \"live dashboard\", \"page that updates itself\", \"push updates from my backend\u002Fscript\u002Fcron to a page\", a form\u002Fpoll\u002Fboard that collects submissions, or any page whose data changes after deploy. Also hosts no-build React SPAs (import-map recipe included) and mermaid diagrams.","plivo-labs\u002Fglance","plivo-labs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F30384290?v=4","01M77VWV44VD2881P7X0Y6E0R2","Plivo Labs","01M77VWV4VCQ84BKW1H0SC2TVA",57,"MIT","https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: glance-cli\ndescription: Use the `glance` CLI to build a self-contained HTML explainer\u002Fdashboard for a codebase or system and publish it — \"explain with html\", \"make an html dashboard\", \"create a dashboard\", \"visualize this architecture\", \"a simple HTML summary for my boss\" — or to deploy any file\u002Ffolder to a Glance instance and get a URL, manage sites (list, delete, move, fork), and close the review loop from the terminal (pull a site's review comments, reply to a thread, then redeploy). Also covers `glance.db`, the built-in per-site document store with REALTIME subscriptions — reach for this on \"realtime page\", \"live dashboard\", \"page that updates itself\", \"push updates from my backend\u002Fscript\u002Fcron to a page\", a form\u002Fpoll\u002Fboard that collects submissions, or any page whose data changes after deploy. Also hosts no-build React SPAs (import-map recipe included) and mermaid diagrams.\n---\n\n# Glance CLI\n\n`glance` uploads a local folder to a Glance instance (static hosting on Cloudflare Workers) and returns a URL. It's a single self-contained binary — nothing else to install.\n\n## Install\n\n```bash\ncurl -fsSL \u003Cyour-glance-instance>\u002Fapi\u002Finstall | sh\n```\n\nThis drops the `glance` binary on your PATH (pre-pointed at that instance) and it keeps itself up to date. Run `glance` with no arguments to list every command.\n\n## Target instance\n\nThe CLI talks to `GLANCE_API_URL` (default `http:\u002F\u002Flocalhost:8787`). It's read on **every** command. For a self-hosted deploy:\n\n```bash\nexport GLANCE_API_URL=https:\u002F\u002Fglance.your-subdomain.workers.dev\n```\n\nPut it in your shell profile to make it permanent. Token + URL are saved to `~\u002F.glance\u002Fconfig.json`.\n\n## Commands\n\n| command | what it does |\n|---|---|\n| `glance login` | device-code flow: prints a URL + code, opens a browser, polls until you approve, saves the token |\n| `glance deploy \u003Cpath> [--space \u003Cslug>] [--name \u003Cslug>] [--visibility team\\|private\\|members]` | uploads a file or a folder |\n| `glance list` | lists your sites — `space\u002Fslug  visibility  url` |\n| `glance delete \u003Cspace\u002Fslug>` | confirms (y\u002FN), then deletes |\n| `glance move \u003Cspace\u002Fslug> \u003Cnew-space>` | moves a site to another space you belong to (keeps its files, comments, shares) |\n| `glance fork \u003Cspace\u002Fslug> [--space \u003Cslug>] [--name \u003Cslug>]` | copies a site you can open into your own space — your copy, to edit freely |\n| `glance comments \u003Cspace\u002Fslug> [--file \u003Cpath>] [--open] [--json]` | prints a site's review comments as a markdown digest (or raw JSON) |\n| `glance reply \u003Cspace\u002Fslug> \u003CthreadId> [message] [--tag \u003Clabel>\\|--no-tag]` | posts a reply to a comment thread (get the `threadId` from `glance comments`) |\n| `glance read \u003Cspace\u002Fslug> [--file \u003Cpath>] [--pull \u003Cdir>]` | prints a file to stdout, or `--pull` downloads the whole site's source into a folder to edit + redeploy |\n| `glance notifications [--read] [--json]` | shows your notifications — mentions and comments on your sites (or raw JSON); `--read` marks them all read |\n| `glance logout` | revokes the server session and removes the local token |\n\n### login\nDevice-code flow. If no browser opener is available (SSH\u002Fheadless), open the printed URL and enter the code manually. Must run before any authed command — others fail with \"Not logged in.\"\n\n**In CI, don't run `login` at all — it's interactive.** Mint an API key from `\u002Fsettings\u002Fkeys` in the browser and export it; `GLANCE_TOKEN` takes precedence over the saved config:\n\n```bash\nexport GLANCE_TOKEN=glk_...        # shown exactly once at mint\nexport GLANCE_API_URL=https:\u002F\u002F…    # only if the runner has no ~\u002F.glance\u002Fconfig.json\nglance deploy .\u002Fdist\n```\n\nA key can deploy, create, fork and move, but **never deletes a site** and never mints or revokes another key — so `glance delete` will fail with a key exported, by design. `glance logout` deliberately ignores `GLANCE_TOKEN` and acts on your real session; revoke a key from `\u002Fsettings\u002Fkeys` instead. Full contract: `packages\u002Fapi\u002FAPI.md`.\n\n### deploy\n- `\u003Cpath>` is the only required arg — it can be a **single file** or a **folder**.\n  - **File**: uploads just that file; it renders at the site root (e.g. `glance deploy report.html`).\n  - **Folder**: walks recursively, skipping `.git`, `node_modules`, `.DS_Store`; relative paths become the site's layout.\n- `--name` defaults to the **file name (sans extension)** or **folder name**, slugified. Pass `--name` to override (required if the derived name isn't a valid slug — lowercase, 3–40 chars).\n- `--space` defaults to your **personal space**. Pass `--space` to target a team\u002Fgroup space.\n- `--visibility` defaults to `team`.\n- If the site already exists and you own it, prompts `Replace? (y\u002FN)`. If owned by someone else, it aborts.\n- Prints `✓ Deployed → \u003Curl>`.\n\n```bash\nglance deploy report.html                                  # → \u002F\u003Cyou>\u002Freport in your personal space\nglance deploy .\u002Fdist --space docs --name api-reference --visibility members\nglance deploy .\u002Fcall-feedback                              # folder w\u002F index.html + audio\u002F*.wav → a page with players\nglance deploy clip.mp3                                     # a single audio file → a playable audio page\n```\n\n### Hosting media (audio, images, PDFs, fonts)\nA site is just its files, so any static asset in the folder is hosted and served with the correct type — images (png\u002Fjpg\u002Fgif\u002Fwebp\u002Fsvg), PDFs, fonts, and **audio** (mp3, wav, m4a, ogg, flac, aac, webm). Reference them from your HTML with **relative paths** and they resolve against the page:\n\n```html\n\u003Caudio src=\"audio\u002Fclip.mp3\" controls>\u003C\u002Faudio>\n\u003Cimg src=\"pic.png\">\n```\n\n- **Audio streams with seeking** — audio is served with HTTP byte-range support, so `\u003Caudio>` players can scrub and play without downloading the whole file first.\n- **A lone audio file is playable on its own** — `glance deploy clip.mp3` (no HTML) opens as a real audio player.\n- **Limits**: 20 MB per file, 200 files per deploy.\n\nThe web app deploys the same way — drop a folder (or loose files, including a single mp3) onto the dashboard, or record audio right there — with the same result as `glance deploy`.\n\n### delete\nArgument must be `space\u002Fslug` (with the slash), e.g. `glance delete docs\u002Fapi-reference`.\n\n### move\nMove an existing site into another space you belong to: `glance move \u003Cspace\u002Fslug> \u003Cnew-space>`, e.g. `glance move my-handle\u002Fapi-reference docs`. The site keeps its files, comments and shares — only its URL changes to `\u002F\u003Cnew-space>\u002F\u003Cslug>`. Owner-only. Fails if a site with the same slug already exists in the target space.\n\n### fork\nMake your own copy of a site you can open: `glance fork \u003Cspace\u002Fslug>`, e.g. `glance fork alice\u002Froadmap`. Anyone who can *view* a site can fork it.\n\n- The copy lands in your **personal space** as `\u003Cslug>-copy` (then `-copy-2`, `-copy-3`… if that's taken). Prints `✓ Forked → \u003Curl>`.\n- `--space \u003Cslug>` forks into a team\u002Fgroup space you belong to instead.\n- `--name \u003Cslug>` names the new site (same meaning as `deploy --name` — it's the new site's slug).\n- The fork is **yours and independent**: you own it, it starts with the source's files, and it carries none of the original's comments or shares. Editing it never touches the original.\n\n```bash\nglance fork alice\u002Froadmap                                  # → \u002F\u003Cyou>\u002Froadmap-copy\nglance fork docs\u002Fapi-reference --space team --name api-v2  # → \u002Fteam\u002Fapi-v2\n```\n\nUse it when you want to riff on someone's page instead of commenting on it — fork, `glance read --pull` your copy, edit, redeploy.\n\n### comments\nPulls the review comments (threads) on a deployed site so an agent can read them from the terminal.\n\n- `\u003Cspace\u002Fslug>` is required and must contain the slash (e.g. `docs\u002Fapi-reference`).\n- `--file \u003Cpath>` narrows to a single file's threads (e.g. `--file index.md`); omit it to get **all** of the site's threads across every file.\n- `--open` hides resolved threads — only `open` ones are shown.\n- `--json` prints the raw thread array (the server `ThreadView[]`) instead of the digest — pipe it into `jq`. Combines with `--open` (the array is filtered to open threads first).\n\nDefault output is a **markdown digest**:\n\n```\n# 1 open · 1 resolved\n\n### index.md · OPEN · k3f9q2\n> \"the quoted span this thread anchors to\"\n- @Ada: please reword this paragraph\n- @Bob (deleted): [deleted]\n\n### guide.md · RESOLVED · p1x7d4\n- @Ada: fixed in the latest deploy\n```\n\n- A header line counts `open` vs `resolved` over the shown threads.\n- Threads are **grouped by file** (first-appearance order); each thread is a `###` heading `\u003CfilePath> · \u003CSTATUS> · \u003CthreadId>`. The trailing **threadId** is what you pass to `glance reply` to respond on that thread.\n- A present quote renders as a `> \"…\"` blockquote; each comment is a `- @\u003Cauthor>: \u003Cbody>` line. Deleted comments show `- @\u003Cauthor> (deleted): [deleted]` (original text is gone); a missing author falls back to `@unknown`.\n- Empty result prints `No comments.`.\n\n**Agent loop** — this command closes the review loop without a browser: `glance comments \u003Cspace\u002Fslug> --open` to pull outstanding feedback → edit the local doc to address it → `glance reply \u003Cspace\u002Fslug> \u003CthreadId>` to note what you changed on the thread → `glance deploy` to redeploy, then re-run `glance comments` to see the updated threads. A comment's highlight is re-located in the page when you reopen it in the browser; the comment itself always stays in the digest regardless.\n\n### reply\nPosts a reply to an existing comment thread — so you can respond after addressing feedback, right from the terminal.\n\n- `\u003Cspace\u002Fslug>` is required and must contain the slash (e.g. `docs\u002Fapi-reference`).\n- `\u003CthreadId>` is required — copy it from the `###` heading in `glance comments` output (the value after the status).\n- The reply body comes from **either** a positional `[message]` **or** stdin:\n  - **stdin is the recommended channel** for anything an agent writes, or any multiline\u002Farbitrary text — pipe it in: `echo \"done — reworded the intro\" | glance reply docs\u002Fapi-reference k3f9q2`. A here-doc works for multiple lines.\n  - A positional `[message]` is fine for a short, one-line note: `glance reply docs\u002Fapi-reference k3f9q2 \"fixed in the latest deploy\"`. Quote it so the shell keeps it as one argument.\n  - A positional message that **starts with a dash** is taken as a flag unless you put `--` first: `glance reply docs\u002Fapi-reference k3f9q2 -- \"-- see the note above\"`. (Everything after `--` is literal.) For anything tricky, prefer stdin.\n- **Tagging \u002F attribution.** A reply is attributed **server-side to the logged-in account** — there is no separate \"agent\" identity. So the body is prefixed to mark authorship:\n  - default: `[agent] ` — signals the reply was written by an agent (the **only** signal of that; the author on record is still the human who's logged in).\n  - `--tag \u003Clabel>`: use a custom prefix, e.g. `--tag claude` → `[claude] …`.\n  - `--no-tag`: no prefix — a plain reply as the logged-in human.\n- Empty bodies are rejected; a body over the server's size limit fails with the server's error. Prints `✓ Replied to \u003CthreadId>` on success.\n\n```bash\nglance comments docs\u002Fapi-reference --open                 # find the threadId on the heading\necho \"reworded the intro as requested\" | glance reply docs\u002Fapi-reference k3f9q2\nglance reply docs\u002Fapi-reference k3f9q2 \"typo fixed\" --no-tag\n```\n\n### notifications\nShows your notifications, newest first — who mentioned you and who commented on your sites — without opening the browser.\n\n```\n$ glance notifications\n2 unread · 3 shown\n● Priya N commented on eng\u002Fperf-dashboard (index.html, 2h ago)\n  “The p95 chart hides the cold-start spike, can we…”\n● Dev R mentioned you on design\u002Fonboarding-v2 (flows\u002Fstep-3.html, 1d ago)\n✓ Someone commented on eng\u002Fperf-dashboard (index.html, 3d ago)\n```\n\n- The header always shows your **true unread total**, even when there are more notifications than the list window shows.\n- `●` = unread, `✓` = read. A deleted account shows as “Someone”.\n- `--read` marks everything read and prints a confirmation.\n- `--json` prints the raw server response instead — for piping into `jq` or an agent loop.\n- Follow up from the same terminal: `glance comments \u003Cspace\u002Fslug>` to read the full thread, `glance reply \u003Cspace\u002Fslug> \u003CthreadId>` to answer.\n\n### read\nPrints a deployed file's contents to stdout.\n\n- `\u003Cspace\u002Fslug>` is required and must contain the slash (e.g. `docs\u002Fapi-reference`).\n- `--file \u003Cpath>` selects a file within the site (e.g. `--file guide.html`); omit it for the site root (a single-file site serves its lone file there).\n- Output is the file body only — no headers, no trailing newline — so it pipes cleanly: `glance read docs\u002Fapi-reference --file index.html > index.html`.\n- **A single `read` of a `.md` file returns the server-RENDERED HTML, not the markdown source.** To get the exact source back (for editing and redeploying), use `--pull` below.\n- Every tier is access-gated (there is no anonymous tier), so `read` works only on sites you can view; a tier you can't access fails with the server's status. Errors print the HTTP status + a truncated server message.\n\n**`--pull \u003Cdir>`** — download the whole site's **source** into a local folder so you can edit it and redeploy:\n\n```\nglance read docs\u002Fapi-reference --pull .\u002Fapi-reference   # writes every file (source, not rendered) into .\u002Fapi-reference\n# …edit the files…\nglance deploy .\u002Fapi-reference                            # redeploys to the SAME site (remembers where it came from)\n```\n\n- Writes every file of the site — markdown as its true source, dotfiles included — into `\u003Cdir>`, plus a small `.glance\u002Fpull.json` marker that records the site and the version you pulled.\n- A later `glance deploy \u003Cdir>` reads that marker to target the same site automatically (no need to re-type `--space`\u002F`--name`) and passes the pulled version so a stale redeploy is safely refused instead of clobbering someone else's newer change.\n- Needs edit rights: `--pull` works for a site you **own** or have been given **edit** access to. A view-only share can't pull the source.\n\n**Editor round-trip** — if someone shared a site with you as an *editor*, this is the whole loop with no browser and no git:\n\n```\nglance read alice\u002Froadmap --pull .\u002Froadmap   # pull the source (records version, e.g. 7)\n# …add or remove content sections in .\u002Froadmap…\nglance deploy .\u002Froadmap                       # redeploys to the same site, sends the pulled version\n```\n\nYou can update that site's content even though you don't own it and aren't in its space. If someone else redeployed since your pull, the deploy is refused as stale (409) — re-run the `--pull` to get the current version, reapply your change, and deploy again.\n\n**Editing etiquette — content, not chrome.** As an editor you own the *content*, not the site's look. Add or remove sections, update copy, correct data — but keep the owner's styling and layout intact: don't restyle, re-theme, change the CSS\u002Fstructure, or re-lay-out the page. The owner set the design; an editor fills it in. (Renaming, moving, deleting, changing visibility, or editing the title aren't yours to do at all — those stay with the owner.)\n\n## Visibility values\n`team` (default) · `private` · `members`.\n\n`members` = people in the site's own space only (it was renamed from `group`; the old value is still accepted and mapped to `members`). There is no public\u002Fanonymous tier — `public` is still accepted on the wire but mapped to `team` (everyone in your org).\n\n## Saving data from your pages — `glance.db` (experimental)\n\nEach site gets a small JSON document store, and any HTML page you deploy can use it directly —\nno keys, no setup, no script tag. When someone opens the site through the Glance app, `glance.db`\nis available to the page's JavaScript automatically:\n\n```js\nconst notes = glance.db.collection('notes')\nawait notes.create({ text: 'hello' })       \u002F\u002F returns {id, data, createdAt, updatedAt}\nawait notes.list()                           \u002F\u002F your documents, newest first\nawait notes.get(id); await notes.put(id, {...}); await notes.delete(id)\n```\n\nSo a deployed page can have a working form, notes list, or per-viewer state with just that.\n(Only when viewed through the app — opening the raw content URL directly gives a clear\n\"open this site through the Glance app\" error.)\n\nScripts and cron jobs can write to the same store — exchange a credential for a short-lived data\ntoken. Prefer an **API key** (`\u002Fsettings\u002Fkeys`) over lifting the CLI token out of\n`~\u002F.glance\u002Fconfig.json`: a key is scoped to chosen sites, carries a capability ceiling, expires on\na fixed schedule, and is revocable on its own without killing your session.\n\n```bash\nTOKEN=$(curl -s -X POST -H \"Authorization: Bearer $GLANCE_TOKEN\" \\\n  \"$GLANCE_API_URL\u002Fapi\u002Fdata-token\u002F\u003Cspace>\u002F\u003Cslug>\" | jq -r .token)     # valid 5 min\ncurl -H \"Authorization: Bearer $TOKEN\" -X POST -d '{\"text\":\"hi\"}' \\\n  \"$GLANCE_API_URL\u002Fapi\u002F_data\u002Fnotes\"\n# also: GET \u002Fapi\u002F_data\u002Fnotes (list) · GET\u002FPUT\u002FDELETE \u002Fapi\u002F_data\u002Fnotes\u002F\u003Cid>\n```\n\nTwo things bite when the writer is a server rather than a person:\n\n- **Write to a `shared-…` collection, or you are the only one who will ever see it.** A document\n  belongs to whoever wrote it, and the token above is *yours* — so a cron job writing to `metrics`\n  fills a collection only you can read, and every teammate's dashboard sits empty. `shared-metrics`\n  is readable by every viewer of the site. This is the single most common way a server-fed page\n  looks broken.\n- **Mint per run, not once.** The token lives 5 minutes; a long job or a daemon must re-mint (a\n  401 means it aged out). Don't bake one into an env var or a config file.\n\nRules of thumb: documents are JSON objects up to 100KB, grouped into named collections ·\n**anyone viewing the site can add** documents (attributed to them) — so forms and surveys just\nwork · by default you only see documents **you** created; name a collection `shared-…` and every\nviewer sees all of it (polls, boards) · the site **owner** sees everything and can edit\u002Fdelete\nany document (moderation); other viewers can never change existing documents · access follows\nthe site's sharing — lose access to the site, lose access to its data. If it errors with \"not\nenabled\", ask your Glance admin to turn the feature on.\n\n## Live pages — subscribe instead of polling\n\nA page can be **pushed** changes as they happen. Do not write a `setInterval` that re-`list()`s;\nsubscribe:\n\n```js\nconst c = glance.db.collection('shared-metrics')\n\nconst off = c.onCreate(e => addRow(e))   \u002F\u002F e = {type, collection, id, createdBy, at}\nc.onUpdate(e => refresh(e.id))\nc.onDelete(e => removeRow(e.id))\n\noff()   \u002F\u002F every subscribe returns its own unsubscribe; the connection itself\n        \u002F\u002F closes only once the LAST subscription on the page is gone\n```\n\n**The event tells you WHAT changed, not the new contents** — there is no document body on it. Call\n`c.get(e.id)` when you need the data. That is deliberate: a push carrying bodies would be a third\nread path, and a replayed backlog would fetch every row.\n\nThis is a live dashboard end to end: a backend writes with the `curl` recipe above and every open\npage reacts — no polling, no refresh button. Delivery is fast (sub-second on a warm site) but it is\nnot a latency guarantee: a first connection, a viewer far from the site's region, or a reconnect\nafter a deploy all cost more. Build pages that react to an event whenever it lands, not ones that\nassume it already has.\n\n```bash\n# from a cron job \u002F CI \u002F any server — the page updates itself\ncurl -H \"Authorization: Bearer $TOKEN\" -X POST -d '{\"deploys\":42,\"ok\":true}' \\\n  \"$GLANCE_API_URL\u002Fapi\u002F_data\u002Fshared-metrics\"\n```\n\nWorth knowing:\n\n- **Subscriptions are lazy** — a page that never subscribes never opens a connection.\n- **Reconnects replay.** Connections drop (a Glance deploy restarts them); the SDK reconnects and\n  replays everything missed from its last position before delivering anything live, so a page left\n  open overnight is not silently stale. You get each change once, in order.\n- **A push obeys the read rules above, unchanged** — so on a default collection you are only pushed\n  your OWN writes. A dashboard everyone watches together needs a `shared-…` collection.\n\n## Diagrams & flowcharts — default to mermaid\n\nFor any flowchart, sequence, architecture, or state diagram, reach for **mermaid FIRST**: it auto-layouts from text — no positions, no React, two lines total. Only step up to React Flow (below) when nodes must be interactive (drag, click handlers, custom node components).\n\n```html\n\u003Cscript type=\"module\">\n  import mermaid from 'https:\u002F\u002Fesm.sh\u002Fmermaid@11'\n  mermaid.initialize({ startOnLoad: true })\n\u003C\u002Fscript>\n\u003Cpre class=\"mermaid\">\ngraph LR\n  CLI[glance CLI] --> API[main worker] --> R2[(R2)]\n  API --> D1[(D1)]\n\u003C\u002Fpre>\n```\n\nEvery mermaid diagram type works (flowchart, sequenceDiagram, stateDiagram-v2, erDiagram, gantt…); each `\u003Cpre class=\"mermaid\">` on the page renders independently. Syntax reference: https:\u002F\u002Fmermaid.js.org → \"Diagram Syntax\".\n\nThe dividing line vs hand-written SVG is **auto-layout vs designed geometry**, not size:\n\n- **Mermaid** whenever the visual is a graph of labeled nodes\u002Fedges or ordered steps (architecture, flows, sequences, state, ER, dependency maps) — even a 4-box flow. Routing connectors by hand in SVG is where effort goes to die and arrows start overlapping.\n- **Inline SVG** when you want control of the geometry and nothing needs routed connectors: small illustrations, icons, gauges, timelines, badges, decoration. SVG inherits the page's CSS variables\u002Fpalette, so bespoke visuals stay on-design.\n- **Charts stay recharts\u002Fd3** (below) — mermaid's pie\u002Fgantt are weak, and hand-SVG charts are wasted effort.\n\nOn a designed page, theme mermaid to the palette so diagrams don't look pasted-in: `mermaid.initialize({ startOnLoad: true, theme: 'base', themeVariables: { primaryColor: '…', primaryTextColor: '…', lineColor: '…', fontFamily: '…' } })` — pull the values from the page's CSS custom properties.\n\n## Building React apps (no build step)\n\nServed HTML has no CSP, so a React SPA is just an `index.html` with an import map — no bundler, no npm install. Paste this `\u003Chead>` recipe (pinned versions; add\u002Fremove libs as needed):\n\n```html\n\u003Cscript type=\"importmap\">\n{\n  \"imports\": {\n    \"react\": \"https:\u002F\u002Fesm.sh\u002Freact@19.1.0\",\n    \"react\u002Fjsx-runtime\": \"https:\u002F\u002Fesm.sh\u002Freact@19.1.0\u002Fjsx-runtime\",\n    \"react-dom\u002Fclient\": \"https:\u002F\u002Fesm.sh\u002Freact-dom@19.1.0\u002Fclient\",\n    \"lodash\": \"https:\u002F\u002Fesm.sh\u002Flodash-es@4.17.21\",\n    \"d3\": \"https:\u002F\u002Fesm.sh\u002Fd3@7.9.0\",\n    \"recharts\": \"https:\u002F\u002Fesm.sh\u002Frecharts@2.15.0?deps=react@19.1.0\",\n    \"lucide-react\": \"https:\u002F\u002Fesm.sh\u002Flucide-react@0.525.0?deps=react@19.1.0\",\n    \"@xyflow\u002Freact\": \"https:\u002F\u002Fesm.sh\u002F@xyflow\u002Freact@12.8.2?deps=react@19.1.0,react-dom@19.1.0\"\n  }\n}\n\u003C\u002Fscript>\n\u003Cscript src=\"https:\u002F\u002Fesm.sh\u002F@babel\u002Fstandalone@7.26.0\u002Fbabel.min.js\">\u003C\u002Fscript>\n\u003C!-- only if using @xyflow\u002Freact (React Flow — INTERACTIVE node\u002Fedge graphs; static diagrams → mermaid above): -->\n\u003Clink rel=\"stylesheet\" href=\"https:\u002F\u002Fesm.sh\u002F@xyflow\u002Freact@12.8.2\u002Fdist\u002Fstyle.css\">\n```\n\nThen write normal React in `\u003Cscript type=\"text\u002Fbabel\" data-type=\"module\" data-presets=\"react\">` — standard imports (`import { useState } from 'react'`), JSX transpiled in-browser, `createRoot(document.getElementById('root')).render(\u003CApp\u002F>)`.\n\n- **Pin `?deps=react@19.1.0` on any lib that itself depends on react** (recharts, lucide-react…) — without it esm.sh loads a second react copy → \"invalid hook call\".\n- **React Flow (`@xyflow\u002Freact`) is for INTERACTIVE graphs only — static diagrams belong to mermaid (above).** It does NOT auto-layout: don't hand-place `position: {x,y}`, compute positions with dagre (add `\"@dagrejs\u002Fdagre\": \"https:\u002F\u002Fesm.sh\u002F@dagrejs\u002Fdagre@1.1.5\"` to the import map) per React Flow's layouting docs. Give the `\u003CReactFlow>` wrapper an explicit height (`height: 100vh`) — with no height the canvas renders blank.\n- **Multi-file works**: relative ESM imports (`import { Chart } from '.\u002Fchart.js'`) resolve against the site's files. Hash routing (`#\u002Fpage`) for client-side navigation.\n- **Big\u002FTS apps**: skip the recipe — build locally (`vite build` \u002F `bun build`) and `glance deploy .\u002Fdist`.\n\n## Explaining code or a system as HTML\n\nWhen the user wants to understand — or share understanding of — a codebase, module, system, or technical query, don't answer in prose: build ONE self-contained, visually distinctive `.html` page and deploy it. This turns \"explain X\" into an artifact someone can open, click through, and share via URL.\n\n### Loop: Scope → Investigate → Verify → Render → Publish\n\n**Scope.** Pin down: the query (what must the reader understand?), the target files\u002Fdirs, the output filename (slug the topic, e.g. `\u003Ctopic>-explainer.html`, or `-architecture.html` \u002F `-flow.html`), and the mode:\n- **Deep dashboard** (default) — dense, diagram-heavy, for someone studying the system. Everything visible, sections scroll.\n- **Lightweight summary** — for a manager\u002Fexec\u002Fboss, or when asked for \"simple\"\u002F\"light\"\u002F\"not too much upfront\": only a one-screen pitch is visible up front; every detail lives behind a click.\n\n**Investigate.** Never explain from assumption — read the real code first. Map structure and volume (`find` the tree, LOC per file\u002Fdir — the single best signal for \"where the complexity lives\"). Read entry points, contracts, and the biggest files yourself. Trace how modules and systems actually connect: imports\u002Fexports across boundaries, shared state read\u002Fwritten by multiple features, API\u002Fevent\u002Fwebsocket\u002Fwebhook edges — capture these as directional edges (`A —imports→ B`, `FE —SSE \u002Fevents→ runner`) to render as a connection diagram. Name the real stack by grepping the manifest (`package.json`\u002Fequivalent) for the libraries actually in use.\n\n**Verify.** Symptom ≠ truth. Before calling anything dead\u002Funused, grep its imports and confirm zero reachable callers. Before claiming \"duplicated,\" open both sites and confirm. Before stating a count or LOC number, re-run the command — don't estimate. If a claim is uncertain, label it \"investigate\" rather than assert it; one wrong confident claim discredits the whole page.\n\n**Render.** A single self-contained `.html` file: inline `\u003Cstyle>`, no build step (Google Fonts, and a diagram CDN like mermaid for dense graphs, are fine as external deps). Commit to ONE deliberate visual point of view — a distinctive type pairing (display + body + a tabular mono for all numbers\u002Fcode\u002Fpaths), a cohesive palette via CSS variables with a dominant color and a sharp accent, real texture (grain, grid, shadow) over flat cards, one orchestrated page-load reveal rather than scattered micro-interactions. Avoid the generic AI-dashboard look — no purple-on-white, no default Inter\u002FRoboto, no zebra tables with no point of view. Pick diagrams that fit the query: an architecture schematic (layered boxes + connectors), a connection\u002Fdependency map (labeled, directional edges — imports, API calls, events; group by repo\u002Fservice for cross-system seams), a flow\u002Fsequence chart, a LOC heatmap, a hotspot\u002Fbiggest-files table, findings cards, a ranked action table. Annotate with real names (`file:line`, actual component\u002Fstore names) — never abstract placeholders like \"Service A\".\n\n*Lightweight summary mode*: above the fold, only a kicker line, a headline that's a plain-English claim, one short sub-paragraph, and 3–5 stat chips. Everything else lives in native `\u003Cdetails>\u002F\u003Csummary>` accordions (zero JS) — plain language, an inline flow strip instead of a diagram, small tables with status tags, a \"known issues\"\u002F\"not tested yet\" section. An honest report that admits gaps is trusted more than a flawless one. For work that continues, treat the file as a living doc — update it in place (flip status tags, adjust chips) and add a \"Journal\" accordion of what happened, in order, rather than emitting new files.\n\n**Publish.** Verify tag balance and `open \u003Cfile>` locally first, then:\n```bash\nglance deploy \u003Cfile>.html      # --name defaults to the filename slug; renders at the site root\n```\nReport the returned `✓ Deployed → \u003Curl>` as the deliverable — not the prose. Visibility defaults to `team`; there is no public tier — every viewer needs a Glance login. Re-deploying the same name prompts `Replace? (y\u002FN)` and updates the live URL in place — matches the \"living doc\" behavior above.\n\n### Anti-patterns\n- Explaining from memory\u002Fassumption instead of reading the code.\n- Asserting \"dead code\" \u002F \"duplicate\" \u002F an exact count without verifying it.\n- Generic AI aesthetic (purple gradients, Inter, flat cards, zebra tables, no point of view).\n- Multi-file output, a build step, or broken external deps — one openable file only.\n\n## Gotchas\n- Commands other than `login`\u002F`logout` require a credential: run `glance login`, or export `GLANCE_TOKEN` (an API key) — which wins over the saved config.\n- A key can't delete a site. `glance delete` with `GLANCE_TOKEN` exported is a 403 by design, not a misconfiguration — unset it and use your own session.\n- Wrong `GLANCE_API_URL` → you'll log in \u002F deploy against the wrong instance silently. Verify with `glance list`.\n- `deploy` errors print the HTTP status and a truncated server message — check `--space`\u002F`--name` are valid slugs and you're pointed at the right instance.\n","# Glance CLI\n\n`glance` uploads a local folder to a Glance instance (static hosting on Cloudflare Workers) and returns a URL. It's a single self-contained binary — nothing else to install.\n\n## Install\n\n```bash\ncurl -fsSL \u003Cyour-glance-instance>\u002Fapi\u002Finstall | sh\n```\n\nThis drops the `glance` binary on your PATH (pre-pointed at that instance) and it keeps itself up to date. Run `glance` with no arguments to list every command.\n\n## Target instance\n\nThe CLI talks to `GLANCE_API_URL` (default `http:\u002F\u002Flocalhost:8787`). It's read on **every** command. For a self-hosted deploy:\n\n```bash\nexport GLANCE_API_URL=https:\u002F\u002Fglance.your-subdomain.workers.dev\n```\n\nPut it in your shell profile to make it permanent. Token + URL are saved to `~\u002F.glance\u002Fconfig.json`.\n\n## Commands\n\n| command | what it does |\n|---|---|\n| `glance login` | device-code flow: prints a URL + code, opens a browser, polls until you approve, saves the token |\n| `glance deploy \u003Cpath> [--space \u003Cslug>] [--name \u003Cslug>] [--visibility team\\|private\\|members]` | uploads a file or a folder |\n| `glance list` | lists your sites — `space\u002Fslug  visibility  url` |\n| `glance delete \u003Cspace\u002Fslug>` | confirms (y\u002FN), then deletes |\n| `glance move \u003Cspace\u002Fslug> \u003Cnew-space>` | moves a site to another space you belong to (keeps its files, comments, shares) |\n| `glance fork \u003Cspace\u002Fslug> [--space \u003Cslug>] [--name \u003Cslug>]` | copies a site you can open into your own space — your copy, to edit freely |\n| `glance comments \u003Cspace\u002Fslug> [--file \u003Cpath>] [--open] [--json]` | prints a site's review comments as a markdown digest (or raw JSON) |\n| `glance reply \u003Cspace\u002Fslug> \u003CthreadId> [message] [--tag \u003Clabel>\\|--no-tag]` | posts a reply to a comment thread (get the `threadId` from `glance comments`) |\n| `glance read \u003Cspace\u002Fslug> [--file \u003Cpath>] [--pull \u003Cdir>]` | prints a file to stdout, or `--pull` downloads the whole site's source into a folder to edit + redeploy |\n| `glance notifications [--read] [--json]` | shows your notifications — mentions and comments on your sites (or raw JSON); `--read` marks them all read |\n| `glance logout` | revokes the server session and removes the local token |\n\n### login\nDevice-code flow. If no browser opener is available (SSH\u002Fheadless), open the printed URL and enter the code manually. Must run before any authed command — others fail with \"Not logged in.\"\n\n**In CI, don't run `login` at all — it's interactive.** Mint an API key from `\u002Fsettings\u002Fkeys` in the browser and export it; `GLANCE_TOKEN` takes precedence over the saved config:\n\n```bash\nexport GLANCE_TOKEN=glk_...        # shown exactly once at mint\nexport GLANCE_API_URL=https:\u002F\u002F…    # only if the runner has no ~\u002F.glance\u002Fconfig.json\nglance deploy .\u002Fdist\n```\n\nA key can deploy, create, fork and move, but **never deletes a site** and never mints or revokes another key — so `glance delete` will fail with a key exported, by design. `glance logout` deliberately ignores `GLANCE_TOKEN` and acts on your real session; revoke a key from `\u002Fsettings\u002Fkeys` instead. Full contract: `packages\u002Fapi\u002FAPI.md`.\n\n### deploy\n- `\u003Cpath>` is the only required arg — it can be a **single file** or a **folder**.\n  - **File**: uploads just that file; it renders at the site root (e.g. `glance deploy report.html`).\n  - **Folder**: walks recursively, skipping `.git`, `node_modules`, `.DS_Store`; relative paths become the site's layout.\n- `--name` defaults to the **file name (sans extension)** or **folder name**, slugified. Pass `--name` to override (required if the derived name isn't a valid slug — lowercase, 3–40 chars).\n- `--space` defaults to your **personal space**. Pass `--space` to target a team\u002Fgroup space.\n- `--visibility` defaults to `team`.\n- If the site already exists and you own it, prompts `Replace? (y\u002FN)`. If owned by someone else, it aborts.\n- Prints `✓ Deployed → \u003Curl>`.\n\n```bash\nglance deploy report.html                                  # → \u002F\u003Cyou>\u002Freport in your personal space\nglance deploy .\u002Fdist --space docs --name api-reference --visibility members\nglance deploy .\u002Fcall-feedback                              # folder w\u002F index.html + audio\u002F*.wav → a page with players\nglance deploy clip.mp3                                     # a single audio file → a playable audio page\n```\n\n### Hosting media (audio, images, PDFs, fonts)\nA site is just its files, so any static asset in the folder is hosted and served with the correct type — images (png\u002Fjpg\u002Fgif\u002Fwebp\u002Fsvg), PDFs, fonts, and **audio** (mp3, wav, m4a, ogg, flac, aac, webm). Reference them from your HTML with **relative paths** and they resolve against the page:\n\n```html\n\u003Caudio src=\"audio\u002Fclip.mp3\" controls>\u003C\u002Faudio>\n\u003Cimg src=\"pic.png\">\n```\n\n- **Audio streams with seeking** — audio is served with HTTP byte-range support, so `\u003Caudio>` players can scrub and play without downloading the whole file first.\n- **A lone audio file is playable on its own** — `glance deploy clip.mp3` (no HTML) opens as a real audio player.\n- **Limits**: 20 MB per file, 200 files per deploy.\n\nThe web app deploys the same way — drop a folder (or loose files, including a single mp3) onto the dashboard, or record audio right there — with the same result as `glance deploy`.\n\n### delete\nArgument must be `space\u002Fslug` (with the slash), e.g. `glance delete docs\u002Fapi-reference`.\n\n### move\nMove an existing site into another space you belong to: `glance move \u003Cspace\u002Fslug> \u003Cnew-space>`, e.g. `glance move my-handle\u002Fapi-reference docs`. The site keeps its files, comments and shares — only its URL changes to `\u002F\u003Cnew-space>\u002F\u003Cslug>`. Owner-only. Fails if a site with the same slug already exists in the target space.\n\n### fork\nMake your own copy of a site you can open: `glance fork \u003Cspace\u002Fslug>`, e.g. `glance fork alice\u002Froadmap`. Anyone who can *view* a site can fork it.\n\n- The copy lands in your **personal space** as `\u003Cslug>-copy` (then `-copy-2`, `-copy-3`… if that's taken). Prints `✓ Forked → \u003Curl>`.\n- `--space \u003Cslug>` forks into a team\u002Fgroup space you belong to instead.\n- `--name \u003Cslug>` names the new site (same meaning as `deploy --name` — it's the new site's slug).\n- The fork is **yours and independent**: you own it, it starts with the source's files, and it carries none of the original's comments or shares. Editing it never touches the original.\n\n```bash\nglance fork alice\u002Froadmap                                  # → \u002F\u003Cyou>\u002Froadmap-copy\nglance fork docs\u002Fapi-reference --space team --name api-v2  # → \u002Fteam\u002Fapi-v2\n```\n\nUse it when you want to riff on someone's page instead of commenting on it — fork, `glance read --pull` your copy, edit, redeploy.\n\n### comments\nPulls the review comments (threads) on a deployed site so an agent can read them from the terminal.\n\n- `\u003Cspace\u002Fslug>` is required and must contain the slash (e.g. `docs\u002Fapi-reference`).\n- `--file \u003Cpath>` narrows to a single file's threads (e.g. `--file index.md`); omit it to get **all** of the site's threads across every file.\n- `--open` hides resolved threads — only `open` ones are shown.\n- `--json` prints the raw thread array (the server `ThreadView[]`) instead of the digest — pipe it into `jq`. Combines with `--open` (the array is filtered to open threads first).\n\nDefault output is a **markdown digest**:\n\n```\n# 1 open · 1 resolved\n\n### index.md · OPEN · k3f9q2\n> \"the quoted span this thread anchors to\"\n- @Ada: please reword this paragraph\n- @Bob (deleted): [deleted]\n\n### guide.md · RESOLVED · p1x7d4\n- @Ada: fixed in the latest deploy\n```\n\n- A header line counts `open` vs `resolved` over the shown threads.\n- Threads are **grouped by file** (first-appearance order); each thread is a `###` heading `\u003CfilePath> · \u003CSTATUS> · \u003CthreadId>`. The trailing **threadId** is what you pass to `glance reply` to respond on that thread.\n- A present quote renders as a `> \"…\"` blockquote; each comment is a `- @\u003Cauthor>: \u003Cbody>` line. Deleted comments show `- @\u003Cauthor> (deleted): [deleted]` (original text is gone); a missing author falls back to `@unknown`.\n- Empty result prints `No comments.`.\n\n**Agent loop** — this command closes the review loop without a browser: `glance comments \u003Cspace\u002Fslug> --open` to pull outstanding feedback → edit the local doc to address it → `glance reply \u003Cspace\u002Fslug> \u003CthreadId>` to note what you changed on the thread → `glance deploy` to redeploy, then re-run `glance comments` to see the updated threads. A comment's highlight is re-located in the page when you reopen it in the browser; the comment itself always stays in the digest regardless.\n\n### reply\nPosts a reply to an existing comment thread — so you can respond after addressing feedback, right from the terminal.\n\n- `\u003Cspace\u002Fslug>` is required and must contain the slash (e.g. `docs\u002Fapi-reference`).\n- `\u003CthreadId>` is required — copy it from the `###` heading in `glance comments` output (the value after the status).\n- The reply body comes from **either** a positional `[message]` **or** stdin:\n  - **stdin is the recommended channel** for anything an agent writes, or any multiline\u002Farbitrary text — pipe it in: `echo \"done — reworded the intro\" | glance reply docs\u002Fapi-reference k3f9q2`. A here-doc works for multiple lines.\n  - A positional `[message]` is fine for a short, one-line note: `glance reply docs\u002Fapi-reference k3f9q2 \"fixed in the latest deploy\"`. Quote it so the shell keeps it as one argument.\n  - A positional message that **starts with a dash** is taken as a flag unless you put `--` first: `glance reply docs\u002Fapi-reference k3f9q2 -- \"-- see the note above\"`. (Everything after `--` is literal.) For anything tricky, prefer stdin.\n- **Tagging \u002F attribution.** A reply is attributed **server-side to the logged-in account** — there is no separate \"agent\" identity. So the body is prefixed to mark authorship:\n  - default: `[agent] ` — signals the reply was written by an agent (the **only** signal of that; the author on record is still the human who's logged in).\n  - `--tag \u003Clabel>`: use a custom prefix, e.g. `--tag claude` → `[claude] …`.\n  - `--no-tag`: no prefix — a plain reply as the logged-in human.\n- Empty bodies are rejected; a body over the server's size limit fails with the server's error. Prints `✓ Replied to \u003CthreadId>` on success.\n\n```bash\nglance comments docs\u002Fapi-reference --open                 # find the threadId on the heading\necho \"reworded the intro as requested\" | glance reply docs\u002Fapi-reference k3f9q2\nglance reply docs\u002Fapi-reference k3f9q2 \"typo fixed\" --no-tag\n```\n\n### notifications\nShows your notifications, newest first — who mentioned you and who commented on your sites — without opening the browser.\n\n```\n$ glance notifications\n2 unread · 3 shown\n● Priya N commented on eng\u002Fperf-dashboard (index.html, 2h ago)\n  “The p95 chart hides the cold-start spike, can we…”\n● Dev R mentioned you on design\u002Fonboarding-v2 (flows\u002Fstep-3.html, 1d ago)\n✓ Someone commented on eng\u002Fperf-dashboard (index.html, 3d ago)\n```\n\n- The header always shows your **true unread total**, even when there are more notifications than the list window shows.\n- `●` = unread, `✓` = read. A deleted account shows as “Someone”.\n- `--read` marks everything read and prints a confirmation.\n- `--json` prints the raw server response instead — for piping into `jq` or an agent loop.\n- Follow up from the same terminal: `glance comments \u003Cspace\u002Fslug>` to read the full thread, `glance reply \u003Cspace\u002Fslug> \u003CthreadId>` to answer.\n\n### read\nPrints a deployed file's contents to stdout.\n\n- `\u003Cspace\u002Fslug>` is required and must contain the slash (e.g. `docs\u002Fapi-reference`).\n- `--file \u003Cpath>` selects a file within the site (e.g. `--file guide.html`); omit it for the site root (a single-file site serves its lone file there).\n- Output is the file body only — no headers, no trailing newline — so it pipes cleanly: `glance read docs\u002Fapi-reference --file index.html > index.html`.\n- **A single `read` of a `.md` file returns the server-RENDERED HTML, not the markdown source.** To get the exact source back (for editing and redeploying), use `--pull` below.\n- Every tier is access-gated (there is no anonymous tier), so `read` works only on sites you can view; a tier you can't access fails with the server's status. Errors print the HTTP status + a truncated server message.\n\n**`--pull \u003Cdir>`** — download the whole site's **source** into a local folder so you can edit it and redeploy:\n\n```\nglance read docs\u002Fapi-reference --pull .\u002Fapi-reference   # writes every file (source, not rendered) into .\u002Fapi-reference\n# …edit the files…\nglance deploy .\u002Fapi-reference                            # redeploys to the SAME site (remembers where it came from)\n```\n\n- Writes every file of the site — markdown as its true source, dotfiles included — into `\u003Cdir>`, plus a small `.glance\u002Fpull.json` marker that records the site and the version you pulled.\n- A later `glance deploy \u003Cdir>` reads that marker to target the same site automatically (no need to re-type `--space`\u002F`--name`) and passes the pulled version so a stale redeploy is safely refused instead of clobbering someone else's newer change.\n- Needs edit rights: `--pull` works for a site you **own** or have been given **edit** access to. A view-only share can't pull the source.\n\n**Editor round-trip** — if someone shared a site with you as an *editor*, this is the whole loop with no browser and no git:\n\n```\nglance read alice\u002Froadmap --pull .\u002Froadmap   # pull the source (records version, e.g. 7)\n# …add or remove content sections in .\u002Froadmap…\nglance deploy .\u002Froadmap                       # redeploys to the same site, sends the pulled version\n```\n\nYou can update that site's content even though you don't own it and aren't in its space. If someone else redeployed since your pull, the deploy is refused as stale (409) — re-run the `--pull` to get the current version, reapply your change, and deploy again.\n\n**Editing etiquette — content, not chrome.** As an editor you own the *content*, not the site's look. Add or remove sections, update copy, correct data — but keep the owner's styling and layout intact: don't restyle, re-theme, change the CSS\u002Fstructure, or re-lay-out the page. The owner set the design; an editor fills it in. (Renaming, moving, deleting, changing visibility, or editing the title aren't yours to do at all — those stay with the owner.)\n\n## Visibility values\n`team` (default) · `private` · `members`.\n\n`members` = people in the site's own space only (it was renamed from `group`; the old value is still accepted and mapped to `members`). There is no public\u002Fanonymous tier — `public` is still accepted on the wire but mapped to `team` (everyone in your org).\n\n## Saving data from your pages — `glance.db` (experimental)\n\nEach site gets a small JSON document store, and any HTML page you deploy can use it directly —\nno keys, no setup, no script tag. When someone opens the site through the Glance app, `glance.db`\nis available to the page's JavaScript automatically:\n\n```js\nconst notes = glance.db.collection('notes')\nawait notes.create({ text: 'hello' })       \u002F\u002F returns {id, data, createdAt, updatedAt}\nawait notes.list()                           \u002F\u002F your documents, newest first\nawait notes.get(id); await notes.put(id, {...}); await notes.delete(id)\n```\n\nSo a deployed page can have a working form, notes list, or per-viewer state with just that.\n(Only when viewed through the app — opening the raw content URL directly gives a clear\n\"open this site through the Glance app\" error.)\n\nScripts and cron jobs can write to the same store — exchange a credential for a short-lived data\ntoken. Prefer an **API key** (`\u002Fsettings\u002Fkeys`) over lifting the CLI token out of\n`~\u002F.glance\u002Fconfig.json`: a key is scoped to chosen sites, carries a capability ceiling, expires on\na fixed schedule, and is revocable on its own without killing your session.\n\n```bash\nTOKEN=$(curl -s -X POST -H \"Authorization: Bearer $GLANCE_TOKEN\" \\\n  \"$GLANCE_API_URL\u002Fapi\u002Fdata-token\u002F\u003Cspace>\u002F\u003Cslug>\" | jq -r .token)     # valid 5 min\ncurl -H \"Authorization: Bearer $TOKEN\" -X POST -d '{\"text\":\"hi\"}' \\\n  \"$GLANCE_API_URL\u002Fapi\u002F_data\u002Fnotes\"\n# also: GET \u002Fapi\u002F_data\u002Fnotes (list) · GET\u002FPUT\u002FDELETE \u002Fapi\u002F_data\u002Fnotes\u002F\u003Cid>\n```\n\nTwo things bite when the writer is a server rather than a person:\n\n- **Write to a `shared-…` collection, or you are the only one who will ever see it.** A document\n  belongs to whoever wrote it, and the token above is *yours* — so a cron job writing to `metrics`\n  fills a collection only you can read, and every teammate's dashboard sits empty. `shared-metrics`\n  is readable by every viewer of the site. This is the single most common way a server-fed page\n  looks broken.\n- **Mint per run, not once.** The token lives 5 minutes; a long job or a daemon must re-mint (a\n  401 means it aged out). Don't bake one into an env var or a config file.\n\nRules of thumb: documents are JSON objects up to 100KB, grouped into named collections ·\n**anyone viewing the site can add** documents (attributed to them) — so forms and surveys just\nwork · by default you only see documents **you** created; name a collection `shared-…` and every\nviewer sees all of it (polls, boards) · the site **owner** sees everything and can edit\u002Fdelete\nany document (moderation); other viewers can never change existing documents · access follows\nthe site's sharing — lose access to the site, lose access to its data. If it errors with \"not\nenabled\", ask your Glance admin to turn the feature on.\n\n## Live pages — subscribe instead of polling\n\nA page can be **pushed** changes as they happen. Do not write a `setInterval` that re-`list()`s;\nsubscribe:\n\n```js\nconst c = glance.db.collection('shared-metrics')\n\nconst off = c.onCreate(e => addRow(e))   \u002F\u002F e = {type, collection, id, createdBy, at}\nc.onUpdate(e => refresh(e.id))\nc.onDelete(e => removeRow(e.id))\n\noff()   \u002F\u002F every subscribe returns its own unsubscribe; the connection itself\n        \u002F\u002F closes only once the LAST subscription on the page is gone\n```\n\n**The event tells you WHAT changed, not the new contents** — there is no document body on it. Call\n`c.get(e.id)` when you need the data. That is deliberate: a push carrying bodies would be a third\nread path, and a replayed backlog would fetch every row.\n\nThis is a live dashboard end to end: a backend writes with the `curl` recipe above and every open\npage reacts — no polling, no refresh button. Delivery is fast (sub-second on a warm site) but it is\nnot a latency guarantee: a first connection, a viewer far from the site's region, or a reconnect\nafter a deploy all cost more. Build pages that react to an event whenever it lands, not ones that\nassume it already has.\n\n```bash\n# from a cron job \u002F CI \u002F any server — the page updates itself\ncurl -H \"Authorization: Bearer $TOKEN\" -X POST -d '{\"deploys\":42,\"ok\":true}' \\\n  \"$GLANCE_API_URL\u002Fapi\u002F_data\u002Fshared-metrics\"\n```\n\nWorth knowing:\n\n- **Subscriptions are lazy** — a page that never subscribes never opens a connection.\n- **Reconnects replay.** Connections drop (a Glance deploy restarts them); the SDK reconnects and\n  replays everything missed from its last position before delivering anything live, so a page left\n  open overnight is not silently stale. You get each change once, in order.\n- **A push obeys the read rules above, unchanged** — so on a default collection you are only pushed\n  your OWN writes. A dashboard everyone watches together needs a `shared-…` collection.\n\n## Diagrams & flowcharts — default to mermaid\n\nFor any flowchart, sequence, architecture, or state diagram, reach for **mermaid FIRST**: it auto-layouts from text — no positions, no React, two lines total. Only step up to React Flow (below) when nodes must be interactive (drag, click handlers, custom node components).\n\n```html\n\u003Cscript type=\"module\">\n  import mermaid from 'https:\u002F\u002Fesm.sh\u002Fmermaid@11'\n  mermaid.initialize({ startOnLoad: true })\n\u003C\u002Fscript>\n\u003Cpre class=\"mermaid\">\ngraph LR\n  CLI[glance CLI] --> API[main worker] --> R2[(R2)]\n  API --> D1[(D1)]\n\u003C\u002Fpre>\n```\n\nEvery mermaid diagram type works (flowchart, sequenceDiagram, stateDiagram-v2, erDiagram, gantt…); each `\u003Cpre class=\"mermaid\">` on the page renders independently. Syntax reference: https:\u002F\u002Fmermaid.js.org → \"Diagram Syntax\".\n\nThe dividing line vs hand-written SVG is **auto-layout vs designed geometry**, not size:\n\n- **Mermaid** whenever the visual is a graph of labeled nodes\u002Fedges or ordered steps (architecture, flows, sequences, state, ER, dependency maps) — even a 4-box flow. Routing connectors by hand in SVG is where effort goes to die and arrows start overlapping.\n- **Inline SVG** when you want control of the geometry and nothing needs routed connectors: small illustrations, icons, gauges, timelines, badges, decoration. SVG inherits the page's CSS variables\u002Fpalette, so bespoke visuals stay on-design.\n- **Charts stay recharts\u002Fd3** (below) — mermaid's pie\u002Fgantt are weak, and hand-SVG charts are wasted effort.\n\nOn a designed page, theme mermaid to the palette so diagrams don't look pasted-in: `mermaid.initialize({ startOnLoad: true, theme: 'base', themeVariables: { primaryColor: '…', primaryTextColor: '…', lineColor: '…', fontFamily: '…' } })` — pull the values from the page's CSS custom properties.\n\n## Building React apps (no build step)\n\nServed HTML has no CSP, so a React SPA is just an `index.html` with an import map — no bundler, no npm install. Paste this `\u003Chead>` recipe (pinned versions; add\u002Fremove libs as needed):\n\n```html\n\u003Cscript type=\"importmap\">\n{\n  \"imports\": {\n    \"react\": \"https:\u002F\u002Fesm.sh\u002Freact@19.1.0\",\n    \"react\u002Fjsx-runtime\": \"https:\u002F\u002Fesm.sh\u002Freact@19.1.0\u002Fjsx-runtime\",\n    \"react-dom\u002Fclient\": \"https:\u002F\u002Fesm.sh\u002Freact-dom@19.1.0\u002Fclient\",\n    \"lodash\": \"https:\u002F\u002Fesm.sh\u002Flodash-es@4.17.21\",\n    \"d3\": \"https:\u002F\u002Fesm.sh\u002Fd3@7.9.0\",\n    \"recharts\": \"https:\u002F\u002Fesm.sh\u002Frecharts@2.15.0?deps=react@19.1.0\",\n    \"lucide-react\": \"https:\u002F\u002Fesm.sh\u002Flucide-react@0.525.0?deps=react@19.1.0\",\n    \"@xyflow\u002Freact\": \"https:\u002F\u002Fesm.sh\u002F@xyflow\u002Freact@12.8.2?deps=react@19.1.0,react-dom@19.1.0\"\n  }\n}\n\u003C\u002Fscript>\n\u003Cscript src=\"https:\u002F\u002Fesm.sh\u002F@babel\u002Fstandalone@7.26.0\u002Fbabel.min.js\">\u003C\u002Fscript>\n\u003C!-- only if using @xyflow\u002Freact (React Flow — INTERACTIVE node\u002Fedge graphs; static diagrams → mermaid above): -->\n\u003Clink rel=\"stylesheet\" href=\"https:\u002F\u002Fesm.sh\u002F@xyflow\u002Freact@12.8.2\u002Fdist\u002Fstyle.css\">\n```\n\nThen write normal React in `\u003Cscript type=\"text\u002Fbabel\" data-type=\"module\" data-presets=\"react\">` — standard imports (`import { useState } from 'react'`), JSX transpiled in-browser, `createRoot(document.getElementById('root')).render(\u003CApp\u002F>)`.\n\n- **Pin `?deps=react@19.1.0` on any lib that itself depends on react** (recharts, lucide-react…) — without it esm.sh loads a second react copy → \"invalid hook call\".\n- **React Flow (`@xyflow\u002Freact`) is for INTERACTIVE graphs only — static diagrams belong to mermaid (above).** It does NOT auto-layout: don't hand-place `position: {x,y}`, compute positions with dagre (add `\"@dagrejs\u002Fdagre\": \"https:\u002F\u002Fesm.sh\u002F@dagrejs\u002Fdagre@1.1.5\"` to the import map) per React Flow's layouting docs. Give the `\u003CReactFlow>` wrapper an explicit height (`height: 100vh`) — with no height the canvas renders blank.\n- **Multi-file works**: relative ESM imports (`import { Chart } from '.\u002Fchart.js'`) resolve against the site's files. Hash routing (`#\u002Fpage`) for client-side navigation.\n- **Big\u002FTS apps**: skip the recipe — build locally (`vite build` \u002F `bun build`) and `glance deploy .\u002Fdist`.\n\n## Explaining code or a system as HTML\n\nWhen the user wants to understand — or share understanding of — a codebase, module, system, or technical query, don't answer in prose: build ONE self-contained, visually distinctive `.html` page and deploy it. This turns \"explain X\" into an artifact someone can open, click through, and share via URL.\n\n### Loop: Scope → Investigate → Verify → Render → Publish\n\n**Scope.** Pin down: the query (what must the reader understand?), the target files\u002Fdirs, the output filename (slug the topic, e.g. `\u003Ctopic>-explainer.html`, or `-architecture.html` \u002F `-flow.html`), and the mode:\n- **Deep dashboard** (default) — dense, diagram-heavy, for someone studying the system. Everything visible, sections scroll.\n- **Lightweight summary** — for a manager\u002Fexec\u002Fboss, or when asked for \"simple\"\u002F\"light\"\u002F\"not too much upfront\": only a one-screen pitch is visible up front; every detail lives behind a click.\n\n**Investigate.** Never explain from assumption — read the real code first. Map structure and volume (`find` the tree, LOC per file\u002Fdir — the single best signal for \"where the complexity lives\"). Read entry points, contracts, and the biggest files yourself. Trace how modules and systems actually connect: imports\u002Fexports across boundaries, shared state read\u002Fwritten by multiple features, API\u002Fevent\u002Fwebsocket\u002Fwebhook edges — capture these as directional edges (`A —imports→ B`, `FE —SSE \u002Fevents→ runner`) to render as a connection diagram. Name the real stack by grepping the manifest (`package.json`\u002Fequivalent) for the libraries actually in use.\n\n**Verify.** Symptom ≠ truth. Before calling anything dead\u002Funused, grep its imports and confirm zero reachable callers. Before claiming \"duplicated,\" open both sites and confirm. Before stating a count or LOC number, re-run the command — don't estimate. If a claim is uncertain, label it \"investigate\" rather than assert it; one wrong confident claim discredits the whole page.\n\n**Render.** A single self-contained `.html` file: inline `\u003Cstyle>`, no build step (Google Fonts, and a diagram CDN like mermaid for dense graphs, are fine as external deps). Commit to ONE deliberate visual point of view — a distinctive type pairing (display + body + a tabular mono for all numbers\u002Fcode\u002Fpaths), a cohesive palette via CSS variables with a dominant color and a sharp accent, real texture (grain, grid, shadow) over flat cards, one orchestrated page-load reveal rather than scattered micro-interactions. Avoid the generic AI-dashboard look — no purple-on-white, no default Inter\u002FRoboto, no zebra tables with no point of view. Pick diagrams that fit the query: an architecture schematic (layered boxes + connectors), a connection\u002Fdependency map (labeled, directional edges — imports, API calls, events; group by repo\u002Fservice for cross-system seams), a flow\u002Fsequence chart, a LOC heatmap, a hotspot\u002Fbiggest-files table, findings cards, a ranked action table. Annotate with real names (`file:line`, actual component\u002Fstore names) — never abstract placeholders like \"Service A\".\n\n*Lightweight summary mode*: above the fold, only a kicker line, a headline that's a plain-English claim, one short sub-paragraph, and 3–5 stat chips. Everything else lives in native `\u003Cdetails>\u002F\u003Csummary>` accordions (zero JS) — plain language, an inline flow strip instead of a diagram, small tables with status tags, a \"known issues\"\u002F\"not tested yet\" section. An honest report that admits gaps is trusted more than a flawless one. For work that continues, treat the file as a living doc — update it in place (flip status tags, adjust chips) and add a \"Journal\" accordion of what happened, in order, rather than emitting new files.\n\n**Publish.** Verify tag balance and `open \u003Cfile>` locally first, then:\n```bash\nglance deploy \u003Cfile>.html      # --name defaults to the filename slug; renders at the site root\n```\nReport the returned `✓ Deployed → \u003Curl>` as the deliverable — not the prose. Visibility defaults to `team`; there is no public tier — every viewer needs a Glance login. Re-deploying the same name prompts `Replace? (y\u002FN)` and updates the live URL in place — matches the \"living doc\" behavior above.\n\n### Anti-patterns\n- Explaining from memory\u002Fassumption instead of reading the code.\n- Asserting \"dead code\" \u002F \"duplicate\" \u002F an exact count without verifying it.\n- Generic AI aesthetic (purple gradients, Inter, flat cards, zebra tables, no point of view).\n- Multi-file output, a build step, or broken external deps — one openable file only.\n\n## Gotchas\n- Commands other than `login`\u002F`logout` require a credential: run `glance login`, or export `GLANCE_TOKEN` (an API key) — which wins over the saved config.\n- A key can't delete a site. `glance delete` with `GLANCE_TOKEN` exported is a 403 by design, not a misconfiguration — unset it and use your own session.\n- Wrong `GLANCE_API_URL` → you'll log in \u002F deploy against the wrong instance silently. Verify with `glance list`.\n- `deploy` errors print the HTTP status and a truncated server message — check `--space`\u002F`--name` are valid slugs and you're pointed at the right instance.\n",{"name":5,"description":7},"main","20ef4cd9c45577bafb6522cf064f5814108c04dd","packages\u002Fcli",10,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance","https:\u002F\u002Fgithub.com\u002Fplivo-labs","plivo.com","Experiments with Voice AI & Agents","2026-11-14 02:17:55",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add plivo-labs\u002Fglance --skill glance-cli",{"tool":39,"command":40},"bunx","bunx skills add plivo-labs\u002Fglance --skill glance-cli",{"tool":42,"command":43},"pnpm","pnpm dlx skills add plivo-labs\u002Fglance --skill glance-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002FSKILL.md",true,[47,53,57,61,65,69,73,77,81,85,89,93,97,101,105,109,115,119,123,127,131,135,139,143,147,151,155,159,163,167,171,175,179,183,187,191,195,199,203],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"args_test.go","SCRIPT","脚本",1965,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fargs_test.go",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"args.go",1037,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fargs.go",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"client.go",3544,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fclient.go",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"comments.go",1146,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fcomments.go",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"commentsreadreply_test.go",4419,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fcommentsreadreply_test.go",{"path":70,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":71,"sourceHtmlUrl":72},"config_test.go",7021,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fconfig_test.go",{"path":74,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":75,"sourceHtmlUrl":76},"config.go",2378,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fconfig.go",{"path":78,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":79,"sourceHtmlUrl":80},"delete_move_test.go",3324,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fdelete_move_test.go",{"path":82,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":83,"sourceHtmlUrl":84},"deploy_test.go",12515,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fdeploy_test.go",{"path":86,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":87,"sourceHtmlUrl":88},"deploy_version_test.go",2974,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fdeploy_version_test.go",{"path":90,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":91,"sourceHtmlUrl":92},"deploy.go",9363,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fdeploy.go",{"path":94,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":95,"sourceHtmlUrl":96},"digest_test.go",5553,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fdigest_test.go",{"path":98,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":99,"sourceHtmlUrl":100},"digest.go",4621,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fdigest.go",{"path":102,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":103,"sourceHtmlUrl":104},"fork_test.go",4020,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Ffork_test.go",{"path":106,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":107,"sourceHtmlUrl":108},"fork.go",1937,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Ffork.go",{"path":110,"resourceType":111,"resourceTypeDesc":112,"sizeBytes":113,"sourceHtmlUrl":114},"go.mod","OTHER","其他",23,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fgo.mod",{"path":116,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":117,"sourceHtmlUrl":118},"helpers_test.go",2025,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fhelpers_test.go",{"path":120,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":121,"sourceHtmlUrl":122},"list_test.go",1545,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Flist_test.go",{"path":124,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":125,"sourceHtmlUrl":126},"list.go",805,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Flist.go",{"path":128,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":129,"sourceHtmlUrl":130},"loginout_test.go",3796,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Floginout_test.go",{"path":132,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":133,"sourceHtmlUrl":134},"loginout.go",2903,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Floginout.go",{"path":136,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":137,"sourceHtmlUrl":138},"main.go",3849,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fmain.go",{"path":140,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":141,"sourceHtmlUrl":142},"notifications_test.go",6405,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fnotifications_test.go",{"path":144,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":145,"sourceHtmlUrl":146},"notifications.go",3441,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fnotifications.go",{"path":148,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":149,"sourceHtmlUrl":150},"pull_test.go",4686,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fpull_test.go",{"path":152,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":153,"sourceHtmlUrl":154},"pull.go",1488,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fpull.go",{"path":156,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":157,"sourceHtmlUrl":158},"read.go",4078,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fread.go",{"path":160,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":161,"sourceHtmlUrl":162},"reply_test.go",2595,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Freply_test.go",{"path":164,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":165,"sourceHtmlUrl":166},"reply.go",3742,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Freply.go",{"path":168,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":169,"sourceHtmlUrl":170},"resolvebody_test.go",1842,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fresolvebody_test.go",{"path":172,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":173,"sourceHtmlUrl":174},"sites.go",2504,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fsites.go",{"path":176,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":177,"sourceHtmlUrl":178},"skill_test.go",937,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fskill_test.go",{"path":180,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":181,"sourceHtmlUrl":182},"skill.go",1117,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fskill.go",{"path":184,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":185,"sourceHtmlUrl":186},"slug_test.go",1367,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fslug_test.go",{"path":188,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":189,"sourceHtmlUrl":190},"slug.go",699,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fslug.go",{"path":192,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":193,"sourceHtmlUrl":194},"upgrade_io_test.go",5712,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fupgrade_io_test.go",{"path":196,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":197,"sourceHtmlUrl":198},"upgrade_io.go",7464,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fupgrade_io.go",{"path":200,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":201,"sourceHtmlUrl":202},"upgrade_pure_test.go",3655,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fupgrade_pure_test.go",{"path":204,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":205,"sourceHtmlUrl":206},"upgrade.go",2730,"https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fpackages\u002Fcli\u002Fupgrade.go",[208],{"skillNo":209,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":210,"categories":211,"keywords":212,"publishedAt":19},"01M77VWXHK5AEKRBP4JRWMBNKW","https:\u002F\u002Fgithub.com\u002Fplivo-labs\u002Fglance\u002Fblob\u002Fmain\u002Fglance-cli\u002FSKILL.md",[],[]]