@trama-dev/cli 0.1.2 → 0.1.4

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
@@ -1,6 +1,8 @@
1
1
  # @trama-dev/cli
2
2
 
3
- The CLI for [trama](https://github.com/NaNhkNaN/trama) — where the program is the orchestration.
3
+ > Agents don't need frameworks. They need a runtime.
4
+
5
+ The CLI for [trama](https://github.com/NaNhkNaN/trama) — the agentic runtime that turns intent into self-contained, shareable agent programs.
4
6
 
5
7
  ```bash
6
8
  npm install -g @trama-dev/cli
@@ -16,6 +18,32 @@ trama list
16
18
  trama logs optimizer
17
19
  ```
18
20
 
19
- `create` turns your intent into a TypeScript program. `run` executes it deterministically. `update` rewrites it with new requirements. The program is the only artifact — no configs, no graphs, no prompts to manage.
21
+ `create` generates a complete agent program from one sentence. `run` executes it — with auto-repair if it crashes. `update` rewrites it with new requirements. The output is real TypeScript you can read, diff, and share. Anyone can `git clone && trama run`.
22
+
23
+ ### What trama generates
24
+
25
+ From a single sentence, trama produces programs that range from one-shot pipelines to autonomous optimization loops to self-orchestrating multi-agent workflows — where trama programs create and run other trama programs.
26
+
27
+ ```bash
28
+ # One-shot pipeline
29
+ trama create hn-digest "fetch the HN API, get top 10 stories, write digest.md"
30
+
31
+ # Autonomous optimization (autoresearch pattern)
32
+ trama create sort-opt "benchmark sort.ts, propose improvements, keep only faster versions"
33
+
34
+ # Self-orchestration — trama composes trama
35
+ trama create research "break topic into sub-questions, create a trama sub-program for each, \
36
+ run them, synthesize a final report"
37
+ ```
38
+
39
+ ### CLI options
40
+
41
+ ```bash
42
+ trama create <name> <prompt> [--model <model>] [--arg key=value ...]
43
+ trama run <name> [--timeout <ms>] [--arg key=value ...]
44
+ trama update <name> <prompt>
45
+ trama list
46
+ trama logs <name>
47
+ ```
20
48
 
21
- See the [main README](https://github.com/NaNhkNaN/trama) for the full picture.
49
+ See the [main README](https://github.com/NaNhkNaN/trama) for the full picture — why a runtime matters, what generated programs look like, and the runtime API.
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ function parseArgs(args) {
20
20
  const cli = new Command()
21
21
  .name("trama")
22
22
  .description("A minimal runtime for agent-authored programs")
23
- .version("0.1.2");
23
+ .version("0.1.4");
24
24
  cli
25
25
  .command("create <name> <prompt>")
26
26
  .description("Generate a new program from a natural language prompt")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trama-dev/cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "trama": "./dist/index.js"
@@ -25,8 +25,9 @@
25
25
  "README.md",
26
26
  "LICENSE"
27
27
  ],
28
+ "os": ["darwin", "linux"],
28
29
  "dependencies": {
29
- "@trama-dev/runtime": "0.1.2",
30
+ "@trama-dev/runtime": "0.1.4",
30
31
  "commander": "^14.0.0"
31
32
  }
32
33
  }