actradeck 0.6.0 → 0.7.0
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 +25 -22
- package/dist/cli.js +5 -1
- package/dist/commands/demo.d.ts +2 -0
- package/dist/commands/demo.js +28 -0
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# actradeck
|
|
2
2
|
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
> Put risky Claude Code and Codex actions back in front of a human.
|
|
4
|
+
|
|
5
|
+
ActraDeck is a local approval and audit cockpit for coding agents. This package gives you
|
|
6
|
+
a zero-side-effect product preview, diagnoses the machine, and verifies the full product
|
|
7
|
+
before handing off to its quickstart.
|
|
7
8
|
|
|
8
9
|
This package is a **thin, dependency-free bootstrapper**. It does not contain the product —
|
|
9
10
|
the full four-tier stack ships as a **signed GitHub Release** and a **signed GHCR image**.
|
|
@@ -15,23 +16,28 @@ The CLI helps you _get to_ a running cockpit and verify what you download.
|
|
|
15
16
|
- **Fail-closed verification.** `install` checks the release's sha256 checksum _and_ its
|
|
16
17
|
SLSA build provenance before extracting a single file.
|
|
17
18
|
|
|
19
|
+
## See the safety story first
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
npx actradeck@latest demo
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
`demo` prints a five-second **synthetic preview** of detect → hold → deny → redact →
|
|
26
|
+
record. It executes no command, writes no file, starts no subprocess, and makes no network
|
|
27
|
+
request. The output then points to the cockpit's 30-second demo, which exercises the real
|
|
28
|
+
ingestion, redaction, projection, and audit pipeline.
|
|
29
|
+
|
|
18
30
|
## Usage
|
|
19
31
|
|
|
20
32
|
```sh
|
|
33
|
+
npx actradeck@latest demo # safe synthetic preview; no side effects or network
|
|
21
34
|
npx actradeck@latest doctor # diagnose: platform / Node / pnpm / git / Docker (offline-safe)
|
|
22
35
|
npx actradeck@latest install # verify + fetch the latest signed release, then quickstart
|
|
23
36
|
npx actradeck@latest up # print the Docker cockpit command (prints only; runs nothing)
|
|
24
37
|
npx actradeck@latest version # your CLI version + whether a newer stable release exists
|
|
25
|
-
npx actradeck@latest conformance < events.jsonl #
|
|
38
|
+
npx actradeck@latest conformance < events.jsonl # check an adapter's stream vs the contract
|
|
26
39
|
```
|
|
27
40
|
|
|
28
|
-
> **`conformance` is not in the published CLI yet.** The four commands above ship in the current
|
|
29
|
-
> published `actradeck`; `conformance` was added after the latest release and lands in the next
|
|
30
|
-
> tagged one (npm publish is USER-GATED — see ADR 0013). To run the checker today, use the from-clone
|
|
31
|
-
> path in the [ingestion contract §8](../../docs/ingestion-contract.md#8-verify-your-adapter-conformance-checker).
|
|
32
|
-
> The canonical, already-signed way to get the full product is the GitHub Release / GHCR image or
|
|
33
|
-
> `scripts/install.sh`.
|
|
34
|
-
|
|
35
41
|
### `install`
|
|
36
42
|
|
|
37
43
|
Resolves the latest stable GitHub Release (or `--version vX.Y.Z`), downloads the source
|
|
@@ -40,7 +46,7 @@ provenance (`gh attestation verify`), then extracts and hands off to the repo's
|
|
|
40
46
|
`scripts/quickstart`.
|
|
41
47
|
|
|
42
48
|
```sh
|
|
43
|
-
npx actradeck@latest install --version v0.
|
|
49
|
+
npx actradeck@latest install --version v0.7.0 # a specific tag
|
|
44
50
|
npx actradeck@latest install --dry-run # resolve + verify only; change nothing
|
|
45
51
|
npx actradeck@latest install --skip-provenance # explicit opt-out (checksum still enforced)
|
|
46
52
|
```
|
|
@@ -53,11 +59,8 @@ GitHub CLI.
|
|
|
53
59
|
### `conformance`
|
|
54
60
|
|
|
55
61
|
Validate that a third-party ingestion adapter's event stream satisfies the ActraDeck ingestion
|
|
56
|
-
contract — **without cloning the monorepo**.
|
|
57
|
-
|
|
58
|
-
[ingestion contract §8](../../docs/ingestion-contract.md#8-verify-your-adapter-conformance-checker).)
|
|
59
|
-
Capture your adapter's emitted NormalizedEvents as **JSONL** (one JSON object per line, in emission
|
|
60
|
-
order) and pipe them in:
|
|
62
|
+
contract — **without cloning the monorepo**. Capture your adapter's emitted NormalizedEvents as
|
|
63
|
+
**JSONL** (one JSON object per line, in emission order) and pipe them in:
|
|
61
64
|
|
|
62
65
|
```sh
|
|
63
66
|
npx actradeck@latest conformance < events.jsonl # read JSONL from stdin
|
|
@@ -82,10 +85,10 @@ memory, which suits adapter sample streams rather than an unbounded live feed.
|
|
|
82
85
|
|
|
83
86
|
## Environment
|
|
84
87
|
|
|
85
|
-
| Variable | Default
|
|
86
|
-
| ----------------------- |
|
|
87
|
-
| `ACTRADECK_REPO` | `actradeck/actradeck
|
|
88
|
-
| `ACTRADECK_INSTALL_DIR` | `~/actradeck`
|
|
88
|
+
| Variable | Default | Meaning |
|
|
89
|
+
| ----------------------- | --------------------- | -------------------------------------------------- |
|
|
90
|
+
| `ACTRADECK_REPO` | `actradeck/actradeck` | `owner/name` (or git URL) to resolve releases from |
|
|
91
|
+
| `ACTRADECK_INSTALL_DIR` | `~/actradeck` | where `install` extracts the verified source |
|
|
89
92
|
|
|
90
93
|
## License
|
|
91
94
|
|
package/dist/cli.js
CHANGED
|
@@ -3,12 +3,14 @@ import { cmdUp } from "./commands/up.js";
|
|
|
3
3
|
import { cmdVersion } from "./commands/version.js";
|
|
4
4
|
import { cmdInstall } from "./commands/install.js";
|
|
5
5
|
import { cmdConformance } from "./commands/conformance.js";
|
|
6
|
-
|
|
6
|
+
import { cmdDemo } from "./commands/demo.js";
|
|
7
|
+
const USAGE = `actradeck — put risky coding-agent actions back in front of a human
|
|
7
8
|
|
|
8
9
|
Usage:
|
|
9
10
|
actradeck <command> [options]
|
|
10
11
|
|
|
11
12
|
Commands:
|
|
13
|
+
demo Show a 5-second safety preview. No install, files, subprocesses, or network.
|
|
12
14
|
doctor Diagnose this machine (platform / Node / pnpm / git / Docker). Offline-safe.
|
|
13
15
|
install Fetch + VERIFY a signed release (checksum + provenance), then hand off to quickstart.
|
|
14
16
|
--version vX.Y.Z install a specific release tag (default: latest stable)
|
|
@@ -80,6 +82,8 @@ export async function run(deps, argv) {
|
|
|
80
82
|
return 0;
|
|
81
83
|
case "doctor":
|
|
82
84
|
return await cmdDoctor(deps);
|
|
85
|
+
case "demo":
|
|
86
|
+
return await cmdDemo(deps);
|
|
83
87
|
case "up":
|
|
84
88
|
return await cmdUp(deps);
|
|
85
89
|
case "version":
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export async function cmdDemo(deps) {
|
|
2
|
+
deps.io.out(`ActraDeck safety preview
|
|
3
|
+
|
|
4
|
+
SAFE SIMULATION — no command is executed, no file is changed, and no network call is made.
|
|
5
|
+
|
|
6
|
+
Claude Code requests:
|
|
7
|
+
rm -rf ./important-directory
|
|
8
|
+
|
|
9
|
+
[HIGH RISK] recursive filesystem delete detected
|
|
10
|
+
[HELD] waiting for a human decision
|
|
11
|
+
[DENIED] no approval received; safe-side timeout
|
|
12
|
+
|
|
13
|
+
Agent output contains:
|
|
14
|
+
GITHUB_TOKEN=[REDACTED:github-token]
|
|
15
|
+
|
|
16
|
+
[RECORDED] decision + redacted event added to the replayable audit trail
|
|
17
|
+
|
|
18
|
+
That is ActraDeck's first job: put risky coding-agent actions back in front of you.
|
|
19
|
+
|
|
20
|
+
Try the real ingestion -> approval -> redaction -> audit pipeline:
|
|
21
|
+
docker run --rm -p 127.0.0.1:55400:55400 -v actradeck_pgdata:/data \\
|
|
22
|
+
ghcr.io/actradeck/actradeck:latest
|
|
23
|
+
then open http://localhost:55400 and click "Run the 30-second safety demo".
|
|
24
|
+
|
|
25
|
+
Detection is best-effort, not a sandbox. Read the documented limits:
|
|
26
|
+
https://github.com/actradeck/actradeck/blob/main/SECURITY.md`);
|
|
27
|
+
return 0;
|
|
28
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "actradeck",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
|
-
"description": "ActraDeck
|
|
5
|
+
"description": "ActraDeck CLI — preview, install, and verify a local approval and audit cockpit for Claude Code and Codex.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -27,6 +27,11 @@
|
|
|
27
27
|
"keywords": [
|
|
28
28
|
"actradeck",
|
|
29
29
|
"coding-agent",
|
|
30
|
+
"claude-code",
|
|
31
|
+
"codex",
|
|
32
|
+
"agent-security",
|
|
33
|
+
"approval-gate",
|
|
34
|
+
"audit-trail",
|
|
30
35
|
"observability",
|
|
31
36
|
"cli",
|
|
32
37
|
"bootstrap"
|