@p4code/cli 0.0.40 → 0.0.42
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 +18 -18
- package/dist/{NodeSqliteClient-DGAB9NWW.mjs → NodeSqliteClient-CRS7rg24.mjs} +2 -2
- package/dist/bin.mjs +2641 -1513
- package/dist/client/assets/{DiffPanel-CWTAOHXy.js → DiffPanel-D8nVXZ0Y.js} +2 -2
- package/dist/client/assets/{FilePreviewPanel-CMon_ZW_.js → FilePreviewPanel-CFKCFyJ3.js} +2 -2
- package/dist/client/assets/{PreviewPanel-BbkJhucn.js → PreviewPanel-VQey9906.js} +2 -2
- package/dist/client/assets/{angular-html-eRIeZaHm.js → angular-html-D2LtifxG.js} +2 -2
- package/dist/client/assets/{angular-ts-CSJI6jVI.js → angular-ts-oVDpKJb2.js} +2 -2
- package/dist/client/assets/{apl-N_WYRnOX.js → apl-2vnm7rdp.js} +2 -2
- package/dist/client/assets/arrow-right-DmJqM7J1.js +2 -0
- package/dist/client/assets/{astro-YwKix1hR.js → astro-CDbEfI_f.js} +2 -2
- package/dist/client/assets/{blade-BvX6Aco4.js → blade-B1MwvSO0.js} +2 -2
- package/dist/client/assets/{c-DzTwtKJT.js → c-Bi5eHJiI.js} +2 -2
- package/dist/client/assets/{cobol-C-OXLFvN.js → cobol-BxESWi7D.js} +2 -2
- package/dist/client/assets/{coffee-DZE-1kG8.js → coffee-s151wUsp.js} +2 -2
- package/dist/client/assets/{cpp-CeJP0fjF.js → cpp-B51xjAkw.js} +2 -2
- package/dist/client/assets/{crystal-ZNMNBNdv.js → crystal-BW0dq2Rw.js} +2 -2
- package/dist/client/assets/{css-MuTAnxi-.js → css-Czn5ycv4.js} +2 -2
- package/dist/client/assets/{edge-L_Gi4x7J.js → edge-DPtVbjt1.js} +2 -2
- package/dist/client/assets/{elixir-CY-skSPd.js → elixir-381Dy51E.js} +2 -2
- package/dist/client/assets/{elm-BOr95y4k.js → elm-Bpu_ckb9.js} +2 -2
- package/dist/client/assets/{erb-oPVsfoEW.js → erb-u1vpMXOw.js} +2 -2
- package/dist/client/assets/{fileCommentAnnotations-B5fswj6j.js → fileCommentAnnotations-BwnrRpfq.js} +2 -2
- package/dist/client/assets/{git-rebase-DCP3SOJt.js → git-rebase-ShzdQ6mA.js} +2 -2
- package/dist/client/assets/{glimmer-js-ocvtKWV0.js → glimmer-js-DI4_LeGA.js} +2 -2
- package/dist/client/assets/{glimmer-ts-D9NLnrn4.js → glimmer-ts-BrA1R4ia.js} +2 -2
- package/dist/client/assets/{glsl-B4zX2LmT.js → glsl--BAUZuR7.js} +2 -2
- package/dist/client/assets/{graphql-DiTBL-8c.js → graphql-XmtNe4tX.js} +2 -2
- package/dist/client/assets/{hack-akJz2jQV.js → hack-ZPcuqt6I.js} +2 -2
- package/dist/client/assets/{haml-BVeQWTnw.js → haml-BLmOYSAV.js} +2 -2
- package/dist/client/assets/{handlebars--grKNHAn.js → handlebars-BxR19vQc.js} +2 -2
- package/dist/client/assets/{html-B2pBdK0D.js → html-Do3TWS07.js} +2 -2
- package/dist/client/assets/{html-derivative-CFwZKVpu.js → html-derivative-CLJquIOq.js} +2 -2
- package/dist/client/assets/{http-DzxCdJrg.js → http-C6M7KGrt.js} +2 -2
- package/dist/client/assets/{hurl-kzM3zOis.js → hurl-AFYDoSjV.js} +2 -2
- package/dist/client/assets/index-XxxL_T8f.js +635 -0
- package/dist/client/assets/{java-BC2ZGkYM.js → java-DoRNyNZ_.js} +2 -2
- package/dist/client/assets/{javascript-gqBOm55O.js → javascript-Dd-zEQJs.js} +2 -2
- package/dist/client/assets/{jinja-nVgqZ5uh.js → jinja-TJRtEusk.js} +2 -2
- package/dist/client/assets/{jison-Bvv8hysr.js → jison-bG9mcEJe.js} +2 -2
- package/dist/client/assets/{json-CLQfEwQv.js → json-DY6EaQUk.js} +2 -2
- package/dist/client/assets/{jsx-Bhahz-OT.js → jsx-BuL0_m-Z.js} +2 -2
- package/dist/client/assets/{julia-DJU1mzIk.js → julia-4bcuyKPV.js} +2 -2
- package/dist/client/assets/{just-XGKk4v1o.js → just-F3UNctxi.js} +2 -2
- package/dist/client/assets/{latex-CJcPMeCn.js → latex-DCJY-Aag.js} +2 -2
- package/dist/client/assets/{liquid-EuLmnfV7.js → liquid-M906bGYJ.js} +2 -2
- package/dist/client/assets/{lua-B9R161Tp.js → lua-CeupCtSb.js} +2 -2
- package/dist/client/assets/{marko-CB03L6Sz.js → marko-D_3SsXZn.js} +2 -2
- package/dist/client/assets/{mdc-Ccr4X0uO.js → mdc-DRUaGPVE.js} +2 -2
- package/dist/client/assets/{nginx-BS3I1QaZ.js → nginx-B_DJSFb0.js} +2 -2
- package/dist/client/assets/{nim-D7Zyd_8R.js → nim-BxoRFkNd.js} +2 -2
- package/dist/client/assets/{perl-e48m28fL.js → perl-CjLiNsGL.js} +2 -2
- package/dist/client/assets/{php-ocRBBnGb.js → php-DcklQON0.js} +2 -2
- package/dist/client/assets/{pug-BBs8wX-p.js → pug-DHYHUkbl.js} +2 -2
- package/dist/client/assets/{qml-Dwjp2Qzl.js → qml-Cggn-sFR.js} +2 -2
- package/dist/client/assets/{r-DF1H1luy.js → r-BhkOaKoM.js} +2 -2
- package/dist/client/assets/{razor-U_WjoOo_.js → razor-DksRt091.js} +2 -2
- package/dist/client/assets/{regexp-DGgHOmJp.js → regexp-CVeVJKpO.js} +2 -2
- package/dist/client/assets/{rst-BUd3Iwh2.js → rst-B8gnyB7p.js} +2 -2
- package/dist/client/assets/{ruby-CXnn06qc.js → ruby-B7aYI7EY.js} +2 -2
- package/dist/client/assets/{sas-BWPra-UJ.js → sas-DmDsVHsr.js} +2 -2
- package/dist/client/assets/{scss-YWDt-8TA.js → scss-Cf0hFbmP.js} +2 -2
- package/dist/client/assets/{shellscript-DNaMiy_8.js → shellscript-CJ2l7Ljo.js} +2 -2
- package/dist/client/assets/{shellsession-4u8MjHqU.js → shellsession-CE-6mg0T.js} +2 -2
- package/dist/client/assets/{soy-DjtwNNsb.js → soy-eTwUOhLL.js} +2 -2
- package/dist/client/assets/{sql-Dn7Q7_bz.js → sql-DaTGJ1E1.js} +2 -2
- package/dist/client/assets/{stata-B9KaDIK8.js → stata-DCqqmU-V.js} +2 -2
- package/dist/client/assets/{surrealql-C8pR4xmG.js → surrealql-DJuyQLb6.js} +2 -2
- package/dist/client/assets/{svelte-BsaIxqiC.js → svelte-DZfElFr5.js} +2 -2
- package/dist/client/assets/{templ-CzR4BK3F.js → templ-BeuT7j1S.js} +2 -2
- package/dist/client/assets/{tex-G7GUVjb0.js → tex-CUjxQ3iG.js} +2 -2
- package/dist/client/assets/textarea-BM2z9WNB.js +46 -0
- package/dist/client/assets/{ts-tags-5xxlNsGf.js → ts-tags-C00W--Ve.js} +2 -2
- package/dist/client/assets/{tsx-DVYZm60Q.js → tsx-h-kXP2gA.js} +2 -2
- package/dist/client/assets/{twig-G0p9qB4O.js → twig-DhMoAQY-.js} +2 -2
- package/dist/client/assets/{typescript-D8l0OAzJ.js → typescript-DwJdYtiC.js} +2 -2
- package/dist/client/assets/{vue-Bd-pqwQF.js → vue-CvLnzHbi.js} +2 -2
- package/dist/client/assets/{vue-html-CJEcN7mo.js → vue-html-fj2AgeR4.js} +2 -2
- package/dist/client/assets/{vue-vine-D-v2YHMk.js → vue-vine-D1-Lx9ZR.js} +2 -2
- package/dist/client/assets/{xml-JS10jM3R.js → xml-CDkXSKu_.js} +2 -2
- package/dist/client/assets/{xsl-BsXeGtCx.js → xsl-BkotjMT0.js} +2 -2
- package/dist/client/assets/{yaml-DUaQ_QeW.js → yaml-BssI7mmn.js} +2 -2
- package/dist/client/index.html +2 -2
- package/package.json +2 -2
- package/dist/client/assets/arrow-right-CfIjGfWz.js +0 -2
- package/dist/client/assets/index-C-C3Iio5.js +0 -635
- package/dist/client/assets/textarea-BJwGmoQB.js +0 -46
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ The P4Code server and CLI. Runs coding agents (Claude Code, Codex, OpenCode,
|
|
|
4
4
|
Cursor, Grok) against your local repositories and serves a web UI for driving
|
|
5
5
|
them, so you can start work from whichever machine you happen to be at.
|
|
6
6
|
|
|
7
|
-
Installs the `
|
|
7
|
+
Installs the `p4c` binary.
|
|
8
8
|
|
|
9
9
|
> A fork of [t3code](https://github.com/pingdotgg/t3code) by T3 Tools Inc.,
|
|
10
10
|
> maintained for personal use. Not affiliated with or endorsed by T3 Tools Inc.
|
|
@@ -36,7 +36,7 @@ That starts the server and opens the web UI. To run headless — no browser, and
|
|
|
36
36
|
it prints the pairing details you need to connect from elsewhere:
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
|
|
39
|
+
p4c serve
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
## Reaching it from another machine
|
|
@@ -45,16 +45,16 @@ Bind to an interface your other devices can see, or let Tailscale terminate
|
|
|
45
45
|
HTTPS for you on the tailnet:
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
p4c serve --host 0.0.0.0 --port 3773
|
|
49
|
+
p4c serve --tailscale-serve # HTTPS on your MagicDNS name
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
Clients authenticate with a pairing token — the server prints one on a headless
|
|
53
53
|
start, and you can mint more:
|
|
54
54
|
|
|
55
55
|
```bash
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
p4c auth pairing --help # one-time client pairing tokens
|
|
57
|
+
p4c auth session --help # bearer sessions: list, revoke
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
## Running it in the background
|
|
@@ -62,10 +62,10 @@ p4 auth session --help # bearer sessions: list, revoke
|
|
|
62
62
|
Install as a per-user service so it comes back on its own:
|
|
63
63
|
|
|
64
64
|
```bash
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
p4c service install # macOS: launchd LaunchAgent · Linux: systemd user unit
|
|
66
|
+
p4c service status
|
|
67
|
+
p4c service update # re-point at the current build and restart
|
|
68
|
+
p4c service uninstall
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
Deliberately per-user rather than system-wide: the server reads its state from
|
|
@@ -81,15 +81,15 @@ Logs land in `~/.p4/userdata/logs/boot-service.log`.
|
|
|
81
81
|
|
|
82
82
|
## Commands
|
|
83
83
|
|
|
84
|
-
| Command
|
|
85
|
-
|
|
|
86
|
-
| `
|
|
87
|
-
| `
|
|
88
|
-
| `
|
|
89
|
-
| `
|
|
90
|
-
| `
|
|
84
|
+
| Command | What it does |
|
|
85
|
+
| ------------------- | ----------------------------------- |
|
|
86
|
+
| `p4c` / `p4c start` | Run the server and open the web UI |
|
|
87
|
+
| `p4c serve` | Run headless; print pairing details |
|
|
88
|
+
| `p4c service` | Manage the background service |
|
|
89
|
+
| `p4c auth` | Pairing tokens and bearer sessions |
|
|
90
|
+
| `p4c project` | Add, remove, rename projects |
|
|
91
91
|
|
|
92
|
-
`
|
|
92
|
+
`p4c --help` lists every flag; each subcommand takes `--help` too. Shell
|
|
93
93
|
completions are available via `p4 --completions <bash|zsh|fish|sh>`.
|
|
94
94
|
|
|
95
95
|
## Configuration
|
|
@@ -8,9 +8,9 @@ import * as Duration from "effect/Duration";
|
|
|
8
8
|
import * as Stream from "effect/Stream";
|
|
9
9
|
import * as Client from "effect/unstable/sql/SqlClient";
|
|
10
10
|
import * as Config from "effect/Config";
|
|
11
|
-
import * as Scope from "effect/Scope";
|
|
12
11
|
import * as Cache from "effect/Cache";
|
|
13
12
|
import * as Semaphore from "effect/Semaphore";
|
|
13
|
+
import * as Scope from "effect/Scope";
|
|
14
14
|
import { identity } from "effect/Function";
|
|
15
15
|
import * as Fiber from "effect/Fiber";
|
|
16
16
|
import * as NodeSqlite from "node:sqlite";
|
|
@@ -188,4 +188,4 @@ const layerMemory = (config = {}) => Layer.effect(Client.SqlClient, makeMemory(c
|
|
|
188
188
|
//#endregion
|
|
189
189
|
export { TypeId, UnsupportedNodeSqliteOperationError, UnsupportedNodeSqliteVersionError, layer, layerConfig, layerMemory };
|
|
190
190
|
|
|
191
|
-
//# sourceMappingURL=NodeSqliteClient-
|
|
191
|
+
//# sourceMappingURL=NodeSqliteClient-CRS7rg24.mjs.map
|