@runtypelabs/cli 1.4.0 → 1.5.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
@@ -88,6 +88,55 @@ runtype marathon "Code Builder" --goal "Build the payments integration" \
88
88
  --max-sessions 20 --track --name "payments"
89
89
  ```
90
90
 
91
+ #### Customizing the Runner Animation
92
+
93
+ The marathon header displays an animated runner that laps around the border. You can customize the emojis:
94
+
95
+ ```bash
96
+ # Custom runner and finish line emojis
97
+ runtype marathon "Code Builder" --goal "Build it" --runner-char 🚀 --finish-char 🌕
98
+
99
+ runtype marathon "Code Builder" --goal "Build it" --runner-char 🏎️ --finish-char 🏆
100
+
101
+ # Hide the runner, the finish line, or both for a clean border
102
+ runtype marathon "Code Builder" --goal "Build it" --no-runner
103
+ runtype marathon "Code Builder" --goal "Build it" --no-runner --no-finish
104
+ ```
105
+
106
+ | Flag | Default | Description |
107
+ | ---------------------- | ------- | ------------------------------------------------- |
108
+ | `--runner-char <char>` | 🏃 | Emoji for the runner |
109
+ | `--finish-char <char>` | 🏁 | Emoji for the finish line |
110
+ | `--no-runner` | | Hide the runner emoji from the header border |
111
+ | `--no-finish` | | Hide the finish line emoji from the header border |
112
+
113
+ #### Tool Context Modes
114
+
115
+ When a marathon runs multiple sessions, tool call/result pairs from previous sessions are preserved in the conversation history. The `--tool-context` flag controls how older tool results are stored to balance cost and re-readability:
116
+
117
+ | Mode | Behavior | Best for |
118
+ | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
119
+ | `hot-tail` (default) | Older results offloaded to `.runtype/marathons/{task}/tool-outputs/` with a file path reference. Model can re-read via `read_file`. | Multi-session tasks that may need to revisit earlier results |
120
+ | `observation-mask` | Older results replaced with `[Output from X masked — re-run the tool if needed]`. No disk I/O. | Cost-sensitive or focused tasks |
121
+ | `full-inline` | All results stay inline forever. No compaction. | Short tasks, debugging, baseline comparisons |
122
+
123
+ The `--tool-window` flag controls which results are "hot" (inline) vs "cold" (compacted):
124
+
125
+ - `session` (default): Current session's results stay inline; all previous sessions' results are compacted.
126
+ - A number (e.g. `10`): Keep the last N tool result messages inline regardless of session boundaries.
127
+
128
+ ```bash
129
+ # Default: hot-tail mode with session-based compaction window
130
+ runtype marathon "Code Builder" --goal "Fix the bug"
131
+
132
+ # SWE-agent style: mask old results, keep last 10 inline
133
+ runtype marathon "Code Builder" --goal "Fix the bug" \
134
+ --tool-context observation-mask --tool-window 10
135
+
136
+ # Everything inline, no compaction (short tasks or debugging)
137
+ runtype marathon "Code Builder" --goal "Fix the bug" --tool-context full-inline
138
+ ```
139
+
91
140
  ## Chat Commands
92
141
 
93
142
  During a chat session, you can use these special commands:
@@ -247,6 +296,15 @@ pnpm test:watch
247
296
  - `RUNTYPE_DEFAULT_MODEL` - Default AI model (default: gpt-4o)
248
297
  - `RUNTYPE_DEFAULT_TEMPERATURE` - Default temperature (default: 0.7)
249
298
  - `DEBUG` - Enable debug mode
299
+ - `RUNTYPE_DEV_PLAN_OVERRIDE` - JSON string to override billing/plan limits in development. Injects the `X-Dev-Plan-Override` header into all API requests. Only effective when the API runs with `ENVIRONMENT=development`. Example:
300
+
301
+ ```bash
302
+ # Simulate enterprise (unlimited)
303
+ export RUNTYPE_DEV_PLAN_OVERRIDE='{"scenarioId":"unlimited","plan":"enterprise","overrides":{}}'
304
+
305
+ # Simulate slow mode
306
+ export RUNTYPE_DEV_PLAN_OVERRIDE='{"scenarioId":"slow","plan":"trial","overrides":{"inSlowMode":true,"hourlyUsed":9,"hourlyLimit":10,"hourlyResetSeconds":600}}'
307
+ ```
250
308
 
251
309
  ## License
252
310