@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.
Files changed (2) hide show
  1. package/README.md +67 -60
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,41 +1,65 @@
1
- # Pathrule CLI
1
+ # Pathrule
2
2
 
3
- Pathrule CLI is the local runtime for headless terminals, SSH sessions, and
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
- ## Distribution Policy
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
- Pathrule CLI v1 ships through three channels:
9
+ ## Getting Started
10
10
 
11
- - Signed standalone binary artifacts for direct download.
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
- The CLI does not silently replace its own binary by default. Update behavior is
16
- controlled by `PATHRULE_UPDATE_POLICY` or `pathrule config set update.policy`:
13
+ ```bash
14
+ npm i -g @pathrule/cli
15
+ ```
16
+
17
+ Run setup from the repository you want to connect:
17
18
 
18
- - `manual`: no update checks.
19
- - `notify`: check for newer versions and print a passive notice.
20
- - `auto`: opt-in only, reserved for managed installers such as npm or Homebrew.
19
+ ```bash
20
+ cd your-project
21
+ pathrule setup
22
+ ```
21
23
 
22
- `CI=true` and `NO_UPDATE_CHECK=1` force manual mode.
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
- ## Install
28
+ ## What Pathrule Gives Your Agents
25
29
 
26
- ### Homebrew
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
- brew tap pathrule/tap
30
- brew install pathrule
42
+ pathrule setup
43
+ pathrule sync
44
+ pathrule start
45
+ pathrule status
31
46
  ```
32
47
 
33
- Upgrade:
48
+ For diagnostics:
34
49
 
35
50
  ```bash
36
- brew upgrade pathrule
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
- ### Standalone
75
+ ### Homebrew
52
76
 
53
77
  ```bash
54
- curl -fsSL https://pathrule.io/install.sh | sh
78
+ brew install sertanhelvaci/tap/pathrule
55
79
  ```
56
80
 
57
- The standalone installer must verify the published checksum and signature before
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 login
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
- Run `pathrule start` to start the local Web bridge manually. Use `pathrule daemon autostart on`
72
- or `pathrule daemon autostart off` to toggle whether it starts when you sign in.
87
+ ## Authentication
73
88
 
74
- `pathrule login` opens the hosted Pathrule Web authorization flow:
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
- ```text
77
- One-time code: ABCD-EFGH
78
- A browser window should open. If not, visit https://app.pathrule.io/device?code=ABCD-EFGH.
92
+ You can still sign in directly:
93
+
94
+ ```bash
95
+ pathrule login
79
96
  ```
80
97
 
81
- ## Compatibility Endpoint
98
+ The login flow shows a one-time code and opens Pathrule Web in your browser.
82
99
 
83
- `pathrule update` reads:
100
+ ## Security
84
101
 
85
- ```text
86
- https://app.pathrule.io/cli/versions.json
87
- ```
102
+ Pathrule is designed for team workspaces without taking custody of your
103
+ repository:
88
104
 
89
- Expected shape:
90
-
91
- ```json
92
- {
93
- "latest_version": "0.5.0",
94
- "min_supported_protocol_version": "0.5.0",
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
- The endpoint is advisory for M31a. Production release gating, checksums,
105
- signature manifests, and installer integrity checks land in M34b.
112
+ For more details, visit [pathrule.io](https://pathrule.io).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathrule/cli",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Pathrule CLI",
5
5
  "license": "Proprietary",
6
6
  "type": "module",