@ricsam/r5d-worker 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 +17 -37
- package/dist/cjs/main.cjs +990 -0
- package/dist/cjs/package.json +5 -0
- package/dist/mjs/main.mjs +967 -0
- package/dist/mjs/package.json +5 -0
- package/dist/types/main.d.ts +2 -0
- package/package.json +35 -7
package/README.md
CHANGED
|
@@ -1,45 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# r5d-worker
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`r5d-worker` connects a local or remote machine to a r5d.dev project so the agent can run host commands through the virtual `worker` shell command.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
```sh
|
|
6
|
+
r5d-worker start <project-id> --label macos
|
|
7
|
+
```
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
The worker uses the existing `r5dctl` config file and accepts `R5D_WORKER_TOKEN` or `R5D_API_KEY`. Project checkouts are managed under:
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
```text
|
|
12
|
+
~/.r5d/projects/<project-id>/<branch-name>
|
|
13
|
+
```
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
1. Configure OIDC trusted publishing for the package name `@ricsam/r5d-worker`
|
|
13
|
-
2. Enable secure, token-less publishing from CI/CD workflows
|
|
14
|
-
3. Establish provenance for packages published under this name
|
|
15
|
+
`main` is cloned from the platform's HTTPS git remote. Other branches are created as git worktrees from the main clone.
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
Worker labels are mandatory and unique per project. Choose labels that describe host capabilities, such as `macos`, `linux`, `ios`, or `ec2-build`.
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
The agent runs commands through the virtual shell command:
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
|
28
|
-
|
|
29
|
-
## DO NOT USE THIS PACKAGE
|
|
30
|
-
|
|
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
|
-
|
|
37
|
-
## More Information
|
|
38
|
-
|
|
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)
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
**Maintained for OIDC setup purposes only**
|
|
21
|
+
```sh
|
|
22
|
+
worker exec macos git pull --ff-only build-it-now main
|
|
23
|
+
worker exec macos docker compose up -d
|
|
24
|
+
worker exec macos bun test
|
|
25
|
+
```
|