@pathrule/cli 0.0.1 → 0.0.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/README.md +67 -60
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,41 +1,65 @@
|
|
|
1
|
-
# Pathrule
|
|
1
|
+
# Pathrule
|
|
2
2
|
|
|
3
|
-
Pathrule
|
|
4
|
-
Browser+CLI workflows. It owns local auth, workspace attach, MCP install,
|
|
5
|
-
preflight checks, companion-file sync, and doctor diagnostics.
|
|
3
|
+
Pathrule is the shared memory, rules, and skills layer for AI coding agents.
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
Use the CLI to connect a local repository to Pathrule, sync the workspace
|
|
6
|
+
context agents need, and install Pathrule into tools such as Claude Code,
|
|
7
|
+
Cursor, Codex, and Windsurf.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## Getting Started
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
- Homebrew tap formula that installs the signed binary artifact.
|
|
13
|
-
- `@pathrule/cli` npm package as a thin launcher/installer for Node-first users.
|
|
11
|
+
Install the CLI:
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
```bash
|
|
14
|
+
npm i -g @pathrule/cli
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Run setup from the repository you want to connect:
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
-
|
|
20
|
-
|
|
19
|
+
```bash
|
|
20
|
+
cd your-project
|
|
21
|
+
pathrule setup
|
|
22
|
+
```
|
|
21
23
|
|
|
22
|
-
`
|
|
24
|
+
`pathrule setup` guides you through sign-in when needed, finds or creates the
|
|
25
|
+
right workspace, attaches the current folder, syncs local companion files, and
|
|
26
|
+
offers to install Pathrule for your AI tools.
|
|
23
27
|
|
|
24
|
-
##
|
|
28
|
+
## What Pathrule Gives Your Agents
|
|
25
29
|
|
|
26
|
-
|
|
30
|
+
- Path-scoped context, delivered just in time instead of pasted into every chat.
|
|
31
|
+
- Shared memory, rules, and skills that survive between AI sessions.
|
|
32
|
+
- One workspace layer for Claude Code, Cursor, Codex, Windsurf, and other
|
|
33
|
+
MCP-compatible tools.
|
|
34
|
+
- Local setup for companion files, MCP config, SSH sessions, and headless
|
|
35
|
+
terminals.
|
|
36
|
+
- A privacy-first model: Pathrule does not read, scan, or upload your source
|
|
37
|
+
code.
|
|
38
|
+
|
|
39
|
+
## Common Commands
|
|
27
40
|
|
|
28
41
|
```bash
|
|
29
|
-
|
|
30
|
-
|
|
42
|
+
pathrule setup
|
|
43
|
+
pathrule sync
|
|
44
|
+
pathrule start
|
|
45
|
+
pathrule status
|
|
31
46
|
```
|
|
32
47
|
|
|
33
|
-
|
|
48
|
+
For diagnostics:
|
|
34
49
|
|
|
35
50
|
```bash
|
|
36
|
-
|
|
51
|
+
pathrule doctor
|
|
37
52
|
```
|
|
38
53
|
|
|
54
|
+
For scripted setup:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pathrule setup --json
|
|
58
|
+
pathrule setup --workspace <workspace-id-or-name> --target all --yes
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Install Options
|
|
62
|
+
|
|
39
63
|
### npm
|
|
40
64
|
|
|
41
65
|
```bash
|
|
@@ -48,58 +72,41 @@ Upgrade:
|
|
|
48
72
|
npm i -g @pathrule/cli@latest
|
|
49
73
|
```
|
|
50
74
|
|
|
51
|
-
###
|
|
75
|
+
### Homebrew
|
|
52
76
|
|
|
53
77
|
```bash
|
|
54
|
-
|
|
78
|
+
brew install sertanhelvaci/tap/pathrule
|
|
55
79
|
```
|
|
56
80
|
|
|
57
|
-
|
|
58
|
-
placing the binary on `PATH`. The concrete signature manifest is owned by M34b
|
|
59
|
-
release integrity.
|
|
60
|
-
|
|
61
|
-
## First Run
|
|
81
|
+
Upgrade:
|
|
62
82
|
|
|
63
83
|
```bash
|
|
64
|
-
pathrule
|
|
65
|
-
pathrule setup --json
|
|
66
|
-
pathrule setup --workspace <workspace-id-or-name> --target all --yes
|
|
67
|
-
pathrule start
|
|
68
|
-
pathrule doctor
|
|
84
|
+
brew upgrade sertanhelvaci/tap/pathrule
|
|
69
85
|
```
|
|
70
86
|
|
|
71
|
-
|
|
72
|
-
or `pathrule daemon autostart off` to toggle whether it starts when you sign in.
|
|
87
|
+
## Authentication
|
|
73
88
|
|
|
74
|
-
`pathrule login`
|
|
89
|
+
Most users do not need to run `pathrule login` manually. `pathrule setup`
|
|
90
|
+
starts the hosted Pathrule authorization flow when the CLI is not signed in.
|
|
75
91
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
92
|
+
You can still sign in directly:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
pathrule login
|
|
79
96
|
```
|
|
80
97
|
|
|
81
|
-
|
|
98
|
+
The login flow shows a one-time code and opens Pathrule Web in your browser.
|
|
82
99
|
|
|
83
|
-
|
|
100
|
+
## Security
|
|
84
101
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
```
|
|
102
|
+
Pathrule is designed for team workspaces without taking custody of your
|
|
103
|
+
repository:
|
|
88
104
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
"upgrade_command": "brew upgrade pathrule",
|
|
96
|
-
"channels": {
|
|
97
|
-
"brew": "brew upgrade pathrule",
|
|
98
|
-
"npm": "npm i -g @pathrule/cli@latest",
|
|
99
|
-
"standalone": "curl -fsSL https://pathrule.io/install.sh | sh"
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
```
|
|
105
|
+
- Your source code stays on your machine.
|
|
106
|
+
- Cloud access uses user sessions, not embedded service keys.
|
|
107
|
+
- Workspace permissions are enforced server-side and by database row-level
|
|
108
|
+
security.
|
|
109
|
+
- The local bridge binds to loopback and is intended for local browser and CLI
|
|
110
|
+
workflows only.
|
|
103
111
|
|
|
104
|
-
|
|
105
|
-
signature manifests, and installer integrity checks land in M34b.
|
|
112
|
+
For more details, visit [pathrule.io](https://pathrule.io).
|