actradeck 0.5.2 → 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 +50 -12
- package/dist/THIRD-PARTY-NOTICES.txt +41 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +17 -1
- package/dist/commands/conformance.d.ts +8 -0
- package/dist/commands/conformance.js +57 -0
- package/dist/commands/demo.d.ts +2 -0
- package/dist/commands/demo.js +28 -0
- package/dist/lib/conformance-core.js +65 -0
- package/dist/lib/conformance-types.d.ts +19 -0
- package/dist/lib/conformance-types.js +1 -0
- package/dist/lib/deps.js +8 -1
- package/dist/lib/types.d.ts +3 -0
- package/package.json +10 -4
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type ConformanceSeverity = "error" | "warning";
|
|
2
|
+
export type ConformanceRule = "schema" | "empty-stream" | "payload-kind-mismatch" | "payload-kind-absent" | "event-id-duplicate" | "event-id-collision" | "timestamp-regression" | "seq-not-contiguous" | "seq-collision" | "seq-absent" | "event-after-terminal" | "restart-after-terminal" | "approval-resolved-unrequested" | "approval-unresolved-at-terminal";
|
|
3
|
+
export interface ConformanceFinding {
|
|
4
|
+
readonly index: number;
|
|
5
|
+
readonly severity: ConformanceSeverity;
|
|
6
|
+
readonly rule: ConformanceRule;
|
|
7
|
+
readonly message: string;
|
|
8
|
+
readonly sessionId?: string;
|
|
9
|
+
readonly eventId?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ConformanceReport {
|
|
12
|
+
readonly total: number;
|
|
13
|
+
readonly schemaValid: number;
|
|
14
|
+
readonly sessions: number;
|
|
15
|
+
readonly findings: readonly ConformanceFinding[];
|
|
16
|
+
readonly errors: number;
|
|
17
|
+
readonly warnings: number;
|
|
18
|
+
readonly ok: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/lib/deps.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { spawn } from "node:child_process";
|
|
2
2
|
import { access, mkdtemp, mkdir, readdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
3
|
-
import { constants as FS } from "node:fs";
|
|
3
|
+
import { constants as FS, readFileSync } from "node:fs";
|
|
4
4
|
import { homedir, tmpdir } from "node:os";
|
|
5
5
|
import { delimiter, join } from "node:path";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
@@ -75,6 +75,13 @@ export async function makeRealDeps() {
|
|
|
75
75
|
async fetchBytes(url) {
|
|
76
76
|
return new Uint8Array(await (await fetchOk(url)).arrayBuffer());
|
|
77
77
|
},
|
|
78
|
+
async readInput(file) {
|
|
79
|
+
return file !== undefined ? readFileSync(file, "utf8") : readFileSync(0, "utf8");
|
|
80
|
+
},
|
|
81
|
+
async checkConformance(events) {
|
|
82
|
+
const { checkConformance } = await import("./conformance-core.js");
|
|
83
|
+
return checkConformance(events);
|
|
84
|
+
},
|
|
78
85
|
async mkdtemp() {
|
|
79
86
|
return mkdtemp(join(tmpdir(), "actradeck-"));
|
|
80
87
|
},
|
package/dist/lib/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ConformanceReport } from "./conformance-types.js";
|
|
1
2
|
export interface IO {
|
|
2
3
|
out(msg: string): void;
|
|
3
4
|
err(msg: string): void;
|
|
@@ -21,6 +22,8 @@ export interface Deps {
|
|
|
21
22
|
}): Promise<ExecResult>;
|
|
22
23
|
fetchJson(url: string): Promise<unknown>;
|
|
23
24
|
fetchBytes(url: string): Promise<Uint8Array>;
|
|
25
|
+
readInput(file?: string): Promise<string>;
|
|
26
|
+
checkConformance(events: readonly unknown[]): Promise<ConformanceReport>;
|
|
24
27
|
mkdtemp(): Promise<string>;
|
|
25
28
|
writeFile(path: string, bytes: Uint8Array): Promise<void>;
|
|
26
29
|
dirHasContent(path: string): Promise<boolean>;
|
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,13 +27,19 @@
|
|
|
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"
|
|
33
38
|
],
|
|
34
39
|
"scripts": {
|
|
35
|
-
"build": "tsc -b",
|
|
36
|
-
"type-check": "tsc --noEmit",
|
|
40
|
+
"build": "tsc -b && node scripts/bundle-conformance.mjs",
|
|
41
|
+
"type-check": "tsc --noEmit && tsc -p tsconfig.test.json --noEmit",
|
|
42
|
+
"type-check:test": "tsc -p tsconfig.test.json --noEmit",
|
|
37
43
|
"test": "vitest run",
|
|
38
44
|
"test:coverage": "vitest run --coverage"
|
|
39
45
|
},
|