@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 CHANGED
@@ -1,45 +1,71 @@
1
1
  # @ricsam/r5dctl
2
2
 
3
- ## ⚠️ IMPORTANT NOTICE ⚠️
3
+ CLI for managing r5d.dev platform resources (projects, branches, and sessions).
4
4
 
5
- **This package is created solely for the purpose of setting up OIDC (OpenID Connect) trusted publishing with npm.**
5
+ ## Installation
6
6
 
7
- This is **NOT** a functional package and contains **NO** code or functionality beyond the OIDC setup configuration.
7
+ ```bash
8
+ npm install -g @ricsam/r5dctl
9
+ ```
8
10
 
9
- ## Purpose
11
+ ## Login
10
12
 
11
- This package exists to:
12
- 1. Configure OIDC trusted publishing for the package name `@ricsam/r5dctl`
13
- 2. Enable secure, token-less publishing from CI/CD workflows
14
- 3. Establish provenance for packages published under this name
13
+ ```bash
14
+ r5dctl auth login
15
+ ```
15
16
 
16
- ## What is OIDC Trusted Publishing?
17
+ This starts a device-style flow and opens:
17
18
 
18
- OIDC trusted publishing allows package maintainers to publish packages directly from their CI/CD workflows without needing to manage npm access tokens. Instead, it uses OpenID Connect to establish trust between the CI/CD provider (like GitHub Actions) and npm.
19
+ - `https://r5d.dev/r5dctl/login/<requestId>`
19
20
 
20
- ## Setup Instructions
21
+ Credentials are stored in:
21
22
 
22
- To properly configure OIDC trusted publishing for this package:
23
+ - `~/.config/r5d/r5dctl/config.json`
23
24
 
24
- 1. Go to [npmjs.com](https://www.npmjs.com/) and navigate to your package settings
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
- ## DO NOT USE THIS PACKAGE
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
- This package is a placeholder for OIDC configuration only. It:
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
- ## More Information
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
- For more details about npm's trusted publishing feature, see:
40
- - [npm Trusted Publishing Documentation](https://docs.npmjs.com/generating-provenance-statements)
41
- - [GitHub Actions OIDC Documentation](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect)
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
- **Maintained for OIDC setup purposes only**
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