@archal/cli 0.2.0 → 0.3.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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  The Archal CLI — test AI agents against digital twins.
4
4
 
5
- Archal lets you define scenarios, run your agent against simulated environments (digital twins), and evaluate the results using LLM-based grading.
5
+ Archal provisions hosted twin sessions, runs your scenario through a configurable engine (API or local harness), and evaluates outcomes against deterministic and probabilistic criteria.
6
6
 
7
7
  ## Install
8
8
 
@@ -13,14 +13,14 @@ npm install -g @archal/cli
13
13
  ## Quick Start
14
14
 
15
15
  ```bash
16
- # Initialize a new archal project in the current directory
16
+ # Initialize a project in the current directory
17
17
  archal init
18
18
 
19
- # Run a scenario against your agent
20
- archal run scenario.md --agent "node my-agent.js"
21
-
22
- # Run a built-in demo to see archal in action
23
- archal demo
19
+ # Run a scenario (cloud-only transport)
20
+ archal run scenario.md \
21
+ --engine-endpoint "https://gateway.openclaw.ai/v1/responses" \
22
+ --engine-token "$OPENCLAW_GATEWAY_TOKEN" \
23
+ --engine-model "openclaw:main"
24
24
  ```
25
25
 
26
26
  ## Commands
@@ -28,8 +28,11 @@ archal demo
28
28
  | Command | Description |
29
29
  | --- | --- |
30
30
  | `archal init` | Scaffold a new archal project with example scenarios |
31
- | `archal run <scenario>` | Execute a scenario against an agent and evaluate results |
32
- | `archal demo` | Run a built-in demo scenario end-to-end |
31
+ | `archal run <scenario>` | Execute a scenario against hosted twins and evaluate results |
32
+ | `archal login` | Authenticate via archal.ai |
33
+ | `archal whoami` | Show current auth/account status |
34
+ | `archal twins` | Manage selected twins for your plan |
35
+ | `archal trace` | Inspect run traces |
33
36
  | `archal config` | View or update CLI configuration |
34
37
 
35
38
  ## Environment Variables
@@ -37,7 +40,17 @@ archal demo
37
40
  | Variable | Description |
38
41
  | --- | --- |
39
42
  | `ARCHAL_TOKEN` | Auth token for Archal backend API (get one at archal.ai) |
40
- | `ARCHAL_AGENT_COMMAND` | Default agent command (can be overridden with `--agent`) |
43
+ | `ARCHAL_ENGINE_ENDPOINT` | Default API engine endpoint |
44
+ | `ARCHAL_ENGINE_TOKEN` | Default API engine auth token |
45
+ | `ARCHAL_ENGINE_MODEL` | Default engine model identifier |
46
+ | `ARCHAL_ENGINE_TIMEOUT` | Default API engine timeout in seconds |
47
+ | `ARCHAL_ENGINE_TWIN_URLS` | Default path to remote twin URL overrides |
48
+ | `ARCHAL_HARNESS_DIR` | Default harness directory for local mode |
49
+ | `OPENCLAW_URL` | OpenClaw gateway URL (fallback alias for `--openclaw-url`) |
50
+ | `OPENCLAW_GATEWAY_TOKEN` | OpenClaw gateway token used by `archal run` |
51
+ | `OPENCLAW_GATEWAY_PASSWORD` | Password-mode OpenClaw gateway auth value |
52
+ | `OPENCLAW_AGENT_ID` | Default OpenClaw agent/model id |
53
+ | `ARCHAL_API_URL` | Optional override for Archal API base URL |
41
54
 
42
55
  ## Documentation
43
56
 
@@ -45,4 +58,4 @@ For full documentation, architecture details, and contributor guides, see the [A
45
58
 
46
59
  ## License
47
60
 
48
- UNLICENSED — proprietary software. See [archal.ai](https://archal.ai) for licensing.
61
+ MIT
@@ -0,0 +1,23 @@
1
+ import {
2
+ endSession,
3
+ fetchAuthMe,
4
+ fetchTwinsCatalog,
5
+ finalizeSessionEvidence,
6
+ getSessionEvidence,
7
+ getSessionHealth,
8
+ getSessionStatus,
9
+ startSession,
10
+ updateTwinSelection
11
+ } from "./chunk-SVGN2AFT.js";
12
+ import "./chunk-3RG5ZIWI.js";
13
+ export {
14
+ endSession,
15
+ fetchAuthMe,
16
+ fetchTwinsCatalog,
17
+ finalizeSessionEvidence,
18
+ getSessionEvidence,
19
+ getSessionHealth,
20
+ getSessionStatus,
21
+ startSession,
22
+ updateTwinSelection
23
+ };
@@ -0,0 +1,21 @@
1
+ import {
2
+ endSession,
3
+ fetchAuthMe,
4
+ fetchTwinsCatalog,
5
+ finalizeSessionEvidence,
6
+ getSessionHealth,
7
+ getSessionStatus,
8
+ startSession,
9
+ updateTwinSelection
10
+ } from "./chunk-WZXES7XO.js";
11
+ import "./chunk-3RG5ZIWI.js";
12
+ export {
13
+ endSession,
14
+ fetchAuthMe,
15
+ fetchTwinsCatalog,
16
+ finalizeSessionEvidence,
17
+ getSessionHealth,
18
+ getSessionStatus,
19
+ startSession,
20
+ updateTwinSelection
21
+ };
@@ -0,0 +1,23 @@
1
+ import {
2
+ endSession,
3
+ fetchAuthMe,
4
+ fetchTwinsCatalog,
5
+ finalizeSessionEvidence,
6
+ getSessionEvidence,
7
+ getSessionHealth,
8
+ getSessionStatus,
9
+ startSession,
10
+ updateTwinSelection
11
+ } from "./chunk-A6WOU5RO.js";
12
+ import "./chunk-3RG5ZIWI.js";
13
+ export {
14
+ endSession,
15
+ fetchAuthMe,
16
+ fetchTwinsCatalog,
17
+ finalizeSessionEvidence,
18
+ getSessionEvidence,
19
+ getSessionHealth,
20
+ getSessionStatus,
21
+ startSession,
22
+ updateTwinSelection
23
+ };
@@ -0,0 +1,23 @@
1
+ import {
2
+ endSession,
3
+ fetchAuthMe,
4
+ fetchTwinsCatalog,
5
+ finalizeSessionEvidence,
6
+ getSessionEvidence,
7
+ getSessionHealth,
8
+ getSessionStatus,
9
+ startSession,
10
+ updateTwinSelection
11
+ } from "./chunk-4FTU232H.js";
12
+ import "./chunk-3RG5ZIWI.js";
13
+ export {
14
+ endSession,
15
+ fetchAuthMe,
16
+ fetchTwinsCatalog,
17
+ finalizeSessionEvidence,
18
+ getSessionEvidence,
19
+ getSessionHealth,
20
+ getSessionStatus,
21
+ startSession,
22
+ updateTwinSelection
23
+ };
@@ -0,0 +1,23 @@
1
+ import {
2
+ endSession,
3
+ fetchAuthMe,
4
+ fetchTwinsCatalog,
5
+ finalizeSessionEvidence,
6
+ getSessionEvidence,
7
+ getSessionHealth,
8
+ getSessionStatus,
9
+ startSession,
10
+ updateTwinSelection
11
+ } from "./chunk-VYCADG5E.js";
12
+ import "./chunk-3RG5ZIWI.js";
13
+ export {
14
+ endSession,
15
+ fetchAuthMe,
16
+ fetchTwinsCatalog,
17
+ finalizeSessionEvidence,
18
+ getSessionEvidence,
19
+ getSessionHealth,
20
+ getSessionStatus,
21
+ startSession,
22
+ updateTwinSelection
23
+ };
@@ -0,0 +1,21 @@
1
+ import {
2
+ endSession,
3
+ fetchAuthMe,
4
+ fetchTwinsCatalog,
5
+ finalizeSessionEvidence,
6
+ getSessionHealth,
7
+ getSessionStatus,
8
+ startSession,
9
+ updateTwinSelection
10
+ } from "./chunk-NZEPQ6IZ.js";
11
+ import "./chunk-3RG5ZIWI.js";
12
+ export {
13
+ endSession,
14
+ fetchAuthMe,
15
+ fetchTwinsCatalog,
16
+ finalizeSessionEvidence,
17
+ getSessionHealth,
18
+ getSessionStatus,
19
+ startSession,
20
+ updateTwinSelection
21
+ };
@@ -0,0 +1,23 @@
1
+ import {
2
+ endSession,
3
+ fetchAuthMe,
4
+ fetchTwinsCatalog,
5
+ finalizeSessionEvidence,
6
+ getSessionEvidence,
7
+ getSessionHealth,
8
+ getSessionStatus,
9
+ startSession,
10
+ updateTwinSelection
11
+ } from "./chunk-UOJHYCMX.js";
12
+ import "./chunk-3RG5ZIWI.js";
13
+ export {
14
+ endSession,
15
+ fetchAuthMe,
16
+ fetchTwinsCatalog,
17
+ finalizeSessionEvidence,
18
+ getSessionEvidence,
19
+ getSessionHealth,
20
+ getSessionStatus,
21
+ startSession,
22
+ updateTwinSelection
23
+ };