@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 +24 -11
- package/dist/api-client-D7SCA64V.js +23 -0
- package/dist/api-client-DI7R3H4C.js +21 -0
- package/dist/api-client-EMMBIJU7.js +23 -0
- package/dist/api-client-VYQMFDLN.js +23 -0
- package/dist/api-client-WN45C63M.js +23 -0
- package/dist/api-client-ZOCVG6CC.js +21 -0
- package/dist/api-client-ZUMDL3TP.js +23 -0
- package/dist/chunk-3EH6CG2H.js +561 -0
- package/dist/chunk-3RG5ZIWI.js +10 -0
- package/dist/chunk-4FTU232H.js +191 -0
- package/dist/chunk-4LM2CKUI.js +561 -0
- package/dist/chunk-A6WOU5RO.js +214 -0
- package/dist/chunk-AXLDC4PC.js +561 -0
- package/dist/chunk-NZEPQ6IZ.js +83 -0
- package/dist/chunk-PGMDLZW5.js +561 -0
- package/dist/chunk-SVGN2AFT.js +148 -0
- package/dist/chunk-UOJHYCMX.js +144 -0
- package/dist/chunk-VYCADG5E.js +189 -0
- package/dist/chunk-WZXES7XO.js +136 -0
- package/dist/chunk-XJOKVFOL.js +561 -0
- package/dist/chunk-XSO7ETSM.js +561 -0
- package/dist/chunk-YDGWON57.js +561 -0
- package/dist/index.js +1868 -647
- package/dist/login-4RNNR4YA.js +7 -0
- package/dist/login-CQ2DRBRU.js +7 -0
- package/dist/login-LOTTPY7G.js +7 -0
- package/dist/login-MBCG3N5P.js +7 -0
- package/dist/login-MP6YLOEA.js +7 -0
- package/dist/login-SGLSVIZZ.js +7 -0
- package/dist/login-TFBKIZ7I.js +7 -0
- package/package.json +4 -5
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
|
|
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
|
|
16
|
+
# Initialize a project in the current directory
|
|
17
17
|
archal init
|
|
18
18
|
|
|
19
|
-
# Run a scenario
|
|
20
|
-
archal run scenario.md
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
|
32
|
-
| `archal
|
|
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
|
-
| `
|
|
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
|
-
|
|
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
|
+
};
|