acpus 0.0.1
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/LICENSE +21 -0
- package/README.md +97 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +3860 -0
- package/dist/index.d.mts +2742 -0
- package/dist/index.mjs +2 -0
- package/dist/monitor-app-CSjUPe9j.mjs +434 -0
- package/dist/run-workflow-CbxKhAqF.mjs +13586 -0
- package/package.json +76 -0
- package/schemas/workflow-spec.schema.json +2042 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 kkkyran
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="page/logo/logo-opus-mark.svg" alt="Acpus mark" width="120">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">Acpus</h1>
|
|
6
|
+
<p align="center" font-style="italic">Every run is an opus.</p>
|
|
7
|
+
|
|
8
|
+
Acpus is a runtime-driven workflow orchestrator for ACP agents, built on the acpx agent runtime. You hand it a *workflow spec*; Acpus validates it, compiles a deterministic execution plan, conducts heterogeneous fanout across lanes, and tracks every run as a numbered, replayable execution, or say, an *opus*.
|
|
9
|
+
|
|
10
|
+
## Quick Start
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
# Install
|
|
14
|
+
npm install -g acpus
|
|
15
|
+
|
|
16
|
+
# Validate a workflow spec
|
|
17
|
+
acpus validate --spec workflows/examples/simple-feature.workflow.spec.json
|
|
18
|
+
|
|
19
|
+
# Preview the execution plan
|
|
20
|
+
acpus preview --spec workflows/examples/simple-feature.workflow.spec.json
|
|
21
|
+
|
|
22
|
+
# Run the workflow
|
|
23
|
+
acpus run --spec workflows/examples/simple-feature.workflow.spec.json
|
|
24
|
+
|
|
25
|
+
# Follow a running workflow in real time
|
|
26
|
+
acpus follow <logical-run-id>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Skill
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npx skills add kelvinschen/acpus --skill acpus
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Commands
|
|
36
|
+
|
|
37
|
+
Acpus commands are grouped by four verbs.
|
|
38
|
+
|
|
39
|
+
### Compose — validate, preview, save, generate
|
|
40
|
+
|
|
41
|
+
| Command | Purpose |
|
|
42
|
+
|---|---|
|
|
43
|
+
| `acpus validate --spec <path>` | Validate a workflow spec against the schema |
|
|
44
|
+
| `acpus preview --spec <path>` | Render the compiled execution plan without running |
|
|
45
|
+
| `acpus save <name> --spec <path>` | Save a spec to the local store |
|
|
46
|
+
| `acpus generate` | Scaffold a new workflow spec from a template |
|
|
47
|
+
|
|
48
|
+
### Conduct — run, follow, monitor, resume
|
|
49
|
+
|
|
50
|
+
| Command | Purpose |
|
|
51
|
+
|---|---|
|
|
52
|
+
| `acpus run --spec <path>` | Execute a workflow spec end-to-end |
|
|
53
|
+
| `acpus follow <run-id>` | Attach to a running workflow and stream output |
|
|
54
|
+
| `acpus monitor <run-id>` | Open the terminal UI for run inspection |
|
|
55
|
+
| `acpus resume <run-id>` | Resume an interrupted or failed run from last checkpoint |
|
|
56
|
+
|
|
57
|
+
### Recover — recover, diagnose
|
|
58
|
+
|
|
59
|
+
| Command | Purpose |
|
|
60
|
+
|---|---|
|
|
61
|
+
| `acpus recover <run-id>` | Attempt automatic repair of a failed run |
|
|
62
|
+
| `acpus diagnose <run-id> [--wait]` | Produce a structured diagnosis of a completed or running run |
|
|
63
|
+
|
|
64
|
+
### Catalogue — list, show
|
|
65
|
+
|
|
66
|
+
| Command | Purpose |
|
|
67
|
+
|---|---|
|
|
68
|
+
| `acpus list` | List saved specs and historical runs |
|
|
69
|
+
| `acpus show <id>` | Display details of a saved spec or past run |
|
|
70
|
+
|
|
71
|
+
## Architecture
|
|
72
|
+
|
|
73
|
+
Acpus sits between the author and the acpx runtime. The main agent produces a *workflow spec*. Acpus reads it, validates it against the JSON schema, and compiles it into an *execution plan* — a deterministic sequence of stages, each containing parallel lanes that map to independent acpx sessions.
|
|
74
|
+
|
|
75
|
+
Run directories live under `.acpus/runs/<id>/`. Each contains:
|
|
76
|
+
|
|
77
|
+
- `workflow.spec.json` — the original workflow spec
|
|
78
|
+
- `execution-plan.json` — the compiled plan
|
|
79
|
+
- `input.json` — resolved inputs at launch time
|
|
80
|
+
- `outputs/` — stage outputs and final artefacts
|
|
81
|
+
- `attempts/` — raw attempt records with agent transcripts
|
|
82
|
+
- `acpx-state/` — run-local acpx session state
|
|
83
|
+
- `sessions/` — per-lane session logs
|
|
84
|
+
- `events.ndjson` — timestamped event log for the entire run
|
|
85
|
+
|
|
86
|
+
The orchestrator does not generate or execute ACPX flow files directly. It drives acpx through its runtime API.
|
|
87
|
+
|
|
88
|
+
## Documentation
|
|
89
|
+
|
|
90
|
+
- [Developer documentation](docs/README.md)
|
|
91
|
+
- [Design and implementation specifications](specs/INDEX.md)
|
|
92
|
+
- [CLI guide](docs/cli.md)
|
|
93
|
+
- [Error code guide](docs/error-codes.md)
|
|
94
|
+
|
|
95
|
+
## License
|
|
96
|
+
|
|
97
|
+
MIT
|
package/dist/cli.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|