@ricsam/r5dctl 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 +54 -28
- package/dist/cjs/cli.cjs +1246 -0
- package/dist/cjs/main.cjs +4 -0
- package/dist/cjs/package.json +5 -0
- package/dist/mjs/cli.mjs +1208 -0
- package/dist/mjs/main.mjs +3 -0
- package/dist/mjs/package.json +5 -0
- package/dist/types/cli.d.ts +47 -0
- package/dist/types/main.d.ts +2 -0
- package/package.json +39 -7
package/README.md
CHANGED
|
@@ -1,45 +1,71 @@
|
|
|
1
1
|
# @ricsam/r5dctl
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
CLI for managing r5d.dev platform resources (projects, branches, and sessions).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Installation
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @ricsam/r5dctl
|
|
9
|
+
```
|
|
8
10
|
|
|
9
|
-
##
|
|
11
|
+
## Login
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
3. Establish provenance for packages published under this name
|
|
13
|
+
```bash
|
|
14
|
+
r5dctl auth login
|
|
15
|
+
```
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
This starts a device-style flow and opens:
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
- `https://r5d.dev/r5dctl/login/<requestId>`
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
Credentials are stored in:
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
- `~/.config/r5d/r5dctl/config.json`
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
2. Configure the trusted publisher (e.g., GitHub Actions)
|
|
26
|
-
3. Specify the repository and workflow that should be allowed to publish
|
|
27
|
-
4. Use the configured workflow to publish your actual package
|
|
25
|
+
## Global Flags
|
|
28
26
|
|
|
29
|
-
|
|
27
|
+
- `--base-url <url>`
|
|
28
|
+
- `--json`
|
|
29
|
+
- `--config <path>`
|
|
30
|
+
- `--token <token>`
|
|
31
|
+
- `--api-key <key>`
|
|
32
|
+
- `-p, --project <slug|id>`
|
|
33
|
+
- `-b, --branch <branch>`
|
|
34
|
+
- `-s, --session <sessionId>`
|
|
30
35
|
|
|
31
|
-
|
|
32
|
-
- Contains no executable code
|
|
33
|
-
- Provides no functionality
|
|
34
|
-
- Should not be installed as a dependency
|
|
35
|
-
- Exists only for administrative purposes
|
|
36
|
+
## Common Commands
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
```bash
|
|
39
|
+
r5dctl auth status
|
|
40
|
+
r5dctl auth logout
|
|
41
|
+
r5dctl auth api-key create --name "ci" --save
|
|
42
|
+
r5dctl auth api-key list
|
|
43
|
+
r5dctl auth api-key revoke <key-id>
|
|
38
44
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
45
|
+
r5dctl get projects
|
|
46
|
+
r5dctl create project --name "Demo Project"
|
|
47
|
+
r5dctl describe project <project-ref>
|
|
48
|
+
r5dctl update project <project-ref> --name "Renamed Project" --mode prod
|
|
49
|
+
r5dctl delete project <project-ref>
|
|
42
50
|
|
|
43
|
-
|
|
51
|
+
r5dctl -p <project> get branches
|
|
52
|
+
r5dctl -p <project> describe branch <branch>
|
|
53
|
+
r5dctl -p <project> get sessions --branch <branch>
|
|
54
|
+
r5dctl -p <project> create session -b <branch> --name "Spec session"
|
|
55
|
+
r5dctl describe session <session-id>
|
|
56
|
+
r5dctl -s <session-id> update session --name "Renamed session"
|
|
57
|
+
r5dctl -s <session-id> delete session
|
|
44
58
|
|
|
45
|
-
|
|
59
|
+
r5dctl -s <session-id> conversation # tool-aware transcript + pending questions/envs
|
|
60
|
+
r5dctl -s <session-id> conversation --full # same transcript without truncation
|
|
61
|
+
r5dctl -s <session-id> conversation --compact # compact grouped timeline
|
|
62
|
+
r5dctl -s <session-id> prompt --mode plan --model max "..."
|
|
63
|
+
r5dctl -s <session-id> answer-questions -a1 "Recipe Collection" -a2 "Both Manual & AI"
|
|
64
|
+
r5dctl -s <session-id> apply-required-envs -e backend/KEY=value -e frontend/KEY=value
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Project mode is derived from the persisted `backwardsCompatible` project setting:
|
|
69
|
+
|
|
70
|
+
- `greenfield`: agent can make breaking/reset-style changes
|
|
71
|
+
- `prod`: agent should keep changes backwards compatible
|