free-pi-cli 0.6.19 → 0.6.21

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/README.md CHANGED
@@ -19,7 +19,7 @@ npm install -g free-pi-cli
19
19
  free-pi-cli
20
20
  ```
21
21
 
22
- Requires Node 22.19 or newer. The command is `free-pi-cli`, not `pi`.
22
+ Requires Node 22.19 or newer. The command is `free-pi-cli`, not `pi`. If the built-in agent suggests `pi --session ...` on exit, run `npx free-pi-cli@latest --session <id>` instead (or `free-pi-cli --session <id>` if you installed it globally).
23
23
 
24
24
  ## Usage
25
25
 
@@ -63,6 +63,31 @@ free-pi may use your sessions to improve and train models. See the privacy polic
63
63
 
64
64
  The agent can read files anywhere your user account can, but it only reads what your request needs. Project settings and extensions in a folder load only after you trust that folder.
65
65
 
66
+ ## Development
67
+
68
+ ```
69
+ bun install
70
+ bun test # runs against an in-process stub server; no real network or pi TUI
71
+ bun run typecheck
72
+ bun run build
73
+ ```
74
+
75
+ `FREEPI_BASE_URL` overrides the backend base URL (default `https://api.freepi.ai`), for pointing at a local dev server.
76
+
77
+ ## Repo map
78
+
79
+ | Path | Purpose |
80
+ |---|---|
81
+ | `src/index.ts`, `src/main.ts` | bin entry and top-level wiring |
82
+ | `src/run.ts` | orchestration: consent, login, token check, launch |
83
+ | `src/auth-flow.ts`, `src/credentials.ts` | sign-in clients; token storage (mode 0600) |
84
+ | `src/consent.ts` | consent screen text and parsing |
85
+ | `src/pi-launch.ts`, `src/provider.ts` | pi SDK integration: registers the free-pi provider and launches the TUI |
86
+ | `src/*-tool.ts`, `src/web-tools.ts`, `src/fusion.ts` | agent tools (images, docs, usage, todo, web) and Fusion model selection |
87
+ | `src/vendor/` | copies of the internal `shared` and `pi-ads` packages |
88
+ | `test/` | tests, one file per source module |
89
+ | `skills/` | bundled agent skills |
90
+
66
91
  ## Links
67
92
 
68
93
  - Website: https://freepi.ai
@@ -70,3 +95,4 @@ The agent can read files anywhere your user account can, but it only reads what
70
95
  - Terms: https://freepi.ai/terms
71
96
  - Privacy: https://freepi.ai/privacy
72
97
  - Changelog: [CHANGELOG.md](CHANGELOG.md)
98
+ - Contributing: [CONTRIBUTING.md](CONTRIBUTING.md). This repo is a one-way mirror of a private monorepo, and the file explains how pull requests flow back.
package/dist/index.js CHANGED
@@ -27,4 +27,4 @@ if (err) {
27
27
  console.error(err);
28
28
  process.exit(1);
29
29
  }
30
- await import("./main-qn3gsj3n.js");
30
+ await import("./main-7sxf1v5b.js");