git0 0.2.74 → 0.2.76

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.
Files changed (2) hide show
  1. package/CLAUDE.md +32 -0
  2. package/package.json +1 -1
package/CLAUDE.md ADDED
@@ -0,0 +1,32 @@
1
+ # CLAUDE.md — `git0` (`packages/git0-repo-downloader`)
2
+
3
+ **npm name:** `git0` · **skill:** [`skills/git0`](../../skills/git0/SKILL.md)
4
+ · **runner:** **`bun test`** (not Vitest) · **build:** `bun build`
5
+
6
+ CLI to search GitHub, download source and releases, auto-install dependencies
7
+ and launch an IDE. Four bins: `git0`, `g`, `gg`, `fm`.
8
+
9
+ ## Things that bite
10
+
11
+ - **This is the one package on `bun test`.** `bun run test` here runs Bun's
12
+ runner — Vitest APIs and config do not apply. Don't port it as a drive-by.
13
+ - **Four bins, one of which is unbuilt.** `git0`/`g`/`gg` point at `dist/cli.js`;
14
+ `fm` points at `src/fm.js` directly. Editing `fm.js` needs no rebuild;
15
+ editing anything else does.
16
+ - **GitHub API rate limits** are the dominant failure mode — unauthenticated
17
+ requests run out fast. Handle 403-with-rate-limit-headers distinctly from a
18
+ real 403, and never retry into the limit.
19
+ - It **writes to the user's filesystem and runs installers**. Keep the
20
+ confirmation prompts; never auto-execute a downloaded repo's scripts without
21
+ one.
22
+
23
+ ## Layout
24
+
25
+ `src/cli.ts` · `src/github-api.ts` · `src/download.ts` · `src/install.ts` ·
26
+ `src/ide.ts` · `src/package-menu.ts` · `src/platform.ts` · `src/fm.js`
27
+
28
+ ```bash
29
+ cd packages/git0-repo-downloader
30
+ bun run test
31
+ bun run build
32
+ ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "git0",
3
3
  "description": "CLI tool to search GitHub repositories, download source & releases for your system, and instantly set up, then install dependencies and open code editor.",
4
- "version": "0.2.74",
4
+ "version": "0.2.76",
5
5
  "author": "vtempest",
6
6
  "scripts": {
7
7
  "build": "bun build src/cli.ts --outdir dist --target node --format esm --sourcemap",