reevesagents 1.2.0 → 1.3.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/dist/index.d.ts CHANGED
@@ -1,21 +1,5 @@
1
- import { Component, ReactNode } from 'react';
2
-
3
- interface Props {
4
- children: ReactNode;
5
- }
6
- interface State {
7
- hasError: boolean;
8
- error: Error | null;
9
- }
10
- declare class ErrorBoundary extends Component<Props, State> {
11
- constructor(props: Props);
12
- static getDerivedStateFromError(error: Error): State;
13
- componentDidCatch(error: Error): void;
14
- render(): ReactNode;
15
- }
16
-
17
1
  type Provider = 'cc' | 'codex' | 'opencode' | 'hermes' | 'kimi' | 'deepseek' | 'pi' | 'qwen' | 'aider';
18
- type LanguageCode = 'en' | 'de' | 'fr' | 'es' | 'pt' | 'it' | 'tr' | 'zh-Hans' | 'ar';
2
+ type LanguageCode = 'en' | 'de' | 'fr' | 'es' | 'pt' | 'it' | 'tr' | 'ru' | 'zh-Hans' | 'ar';
19
3
  type Permissions = 'skip' | 'ask';
20
4
  type TaskStatus = 'queued' | 'working' | 'done' | 'failed' | 'blocked';
21
5
  type AuthMode = 'default' | 'api-key';
@@ -23,9 +7,8 @@ type Effort = 'default' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
23
7
  type AgentRole = 'root' | 'worker';
24
8
  type RunStatus = 'running' | 'ended';
25
9
  type RunViewStatus = RunStatus | 'stale';
26
- type RunMode = 'spawner' | 'orchestrator';
27
10
  type RunHistoryStatus = 'ended' | 'stale';
28
- type ScreenName = 'Welcome' | 'LanguageSelect' | 'Runs' | 'RunHistory' | 'Run' | 'RunAgents' | 'RunOutput' | 'RunStop' | 'AgentDetail' | 'AgentOutput' | 'AgentTask' | 'AgentKill' | 'NewRun' | 'NewRunBasics' | 'NewRunRoot' | 'NewRunWorkers' | 'NewRunWorker' | 'NewRunReview' | 'NewRunStarting' | 'AddWorker' | 'Settings' | 'Reference' | 'Credits' | 'Doctor' | 'DoctorCheck';
11
+ type ScreenName = 'Welcome' | 'LanguageSelect' | 'Runs' | 'RunHistory' | 'Run' | 'RunAgents' | 'RunOutput' | 'RunStop' | 'AgentDetail' | 'AgentOutput' | 'AgentTask' | 'AgentKill' | 'NewRun' | 'NewRunBasics' | 'NewRunRoot' | 'NewRunWorkers' | 'NewRunWorker' | 'NewRunReview' | 'NewRunStarting' | 'AddWorker' | 'Settings' | 'AgentControl' | 'Reference' | 'Credits' | 'Doctor' | 'DoctorCheck' | 'Approvals' | 'Config' | 'Presets';
29
12
  interface Message {
30
13
  id: string;
31
14
  from_id: string;
@@ -35,7 +18,6 @@ interface Message {
35
18
  }
36
19
  interface RunRecord {
37
20
  id: string;
38
- mode?: string;
39
21
  name: string;
40
22
  status: RunStatus;
41
23
  tmux_session: string;
@@ -51,7 +33,6 @@ interface RunRecord {
51
33
  interface RunHistoryRecord {
52
34
  id: string;
53
35
  name: string;
54
- mode: RunMode;
55
36
  status: RunHistoryStatus;
56
37
  working_dir: string;
57
38
  started_at: string;
@@ -82,7 +63,7 @@ interface AgentRecord {
82
63
  started_at: string;
83
64
  ended_at: string | null;
84
65
  }
85
- interface SavedTreeSlot {
66
+ interface PresetSlot {
86
67
  nickname_template: string;
87
68
  provider: Provider;
88
69
  model: string;
@@ -93,11 +74,11 @@ interface SavedTreeSlot {
93
74
  permissions: Permissions;
94
75
  rc_enabled: boolean;
95
76
  }
96
- interface SavedTree {
77
+ interface Preset {
97
78
  name: string;
98
79
  description: string;
99
- root: SavedTreeSlot;
100
- workers: SavedTreeSlot[];
80
+ root: PresetSlot;
81
+ workers: PresetSlot[];
101
82
  working_dir_pattern?: string;
102
83
  created_at: string;
103
84
  updated_at: string;
@@ -151,7 +132,6 @@ interface AgentLaunchConfig {
151
132
  rc_enabled?: boolean;
152
133
  }
153
134
  interface StartRunRequest {
154
- mode?: 'spawner';
155
135
  name: string;
156
136
  working_dir: string;
157
137
  root: AgentLaunchConfig;
@@ -214,10 +194,7 @@ declare function runsDir(): string;
214
194
  declare function nowIso(): string;
215
195
  declare function readRun(runId: string): RunRecord;
216
196
  declare function listRuns(): RunRecord[];
217
- interface RunHistoryOptions {
218
- includeAllModes?: boolean;
219
- }
220
- declare function listRunHistory(options?: RunHistoryOptions): RunHistoryRecord[];
197
+ declare function listRunHistory(): RunHistoryRecord[];
221
198
  declare function computeRunStatus(run: RunRecord, tmuxSessionExists?: boolean): RunViewStatus;
222
199
  declare function readAgent(runId: string, agentId: string): AgentRecord;
223
200
  declare function listAgents(runId?: string): AgentRecord[];
@@ -226,11 +203,10 @@ declare function defaultConfig(): Config;
226
203
  declare function loadConfig(): Config;
227
204
  declare function saveConfig(cfg: Config): string;
228
205
 
229
- declare function savedTreesDir(): string;
230
- declare const presetsDir: typeof savedTreesDir;
231
- declare function listSavedTrees(): SavedTree[];
232
- declare function loadSavedTree(name: string): SavedTree | null;
233
- declare function saveSavedTree(tree: SavedTree): void;
234
- declare function deleteSavedTree(name: string): void;
206
+ declare function presetsDir(): string;
207
+ declare function listPresets(): Preset[];
208
+ declare function loadPreset(name: string): Preset | null;
209
+ declare function savePreset(tree: Preset): void;
210
+ declare function deletePreset(name: string): void;
235
211
 
236
- export { type AgentRecord, type AuthMode, BIN, type CheckResult, type Config, type Effort, ErrorBoundary, type GlobalConfig, MODEL_CATALOG, type Message, PROVIDERS, PROVIDER_DEFAULT_MODEL, PROVIDER_DEFAULT_MODEL_LABEL, type Permissions, type Provider, type RouterContextValue, type RunHistoryRecord, type RunHistoryStatus, type RunRecord, type ScreenName, type TaskStatus, buildCommand, computeRunStatus, defaultConfig, deleteSavedTree, detectAvailable, isProvider, killAgent, listAgents, listRunHistory, listRuns, listSavedTrees, loadConfig, loadSavedTree, modelDisplayName, modelSourceForProvider, modelValuesForProvider, normalizeProvider, nowIso, openAgent, openReeves, openRunTabs, peekAgent, presetsDir, readAgent, readRun, runDoctor, runsDir, saveConfig, saveSavedTree, startRun, stateRoot, stopRun };
212
+ export { type AgentRecord, type AuthMode, BIN, type CheckResult, type Config, type Effort, type GlobalConfig, MODEL_CATALOG, type Message, PROVIDERS, PROVIDER_DEFAULT_MODEL, PROVIDER_DEFAULT_MODEL_LABEL, type Permissions, type Provider, type RouterContextValue, type RunHistoryRecord, type RunHistoryStatus, type RunRecord, type ScreenName, type TaskStatus, buildCommand, computeRunStatus, defaultConfig, deletePreset, detectAvailable, isProvider, killAgent, listAgents, listPresets, listRunHistory, listRuns, loadConfig, loadPreset, modelDisplayName, modelSourceForProvider, modelValuesForProvider, normalizeProvider, nowIso, openAgent, openReeves, openRunTabs, peekAgent, presetsDir, readAgent, readRun, runDoctor, runsDir, saveConfig, savePreset, startRun, stateRoot, stopRun };
package/dist/index.js CHANGED
@@ -1,16 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- ErrorBoundary,
4
- deleteSavedTree,
5
- listSavedTrees,
6
- loadSavedTree,
7
- presetsDir,
8
- saveSavedTree
9
- } from "./chunk-3IXII4H5.js";
10
- import {
11
- runDoctor
12
- } from "./chunk-JY4ZTTRK.js";
13
- import "./chunk-D24DQQ6V.js";
14
2
  import {
15
3
  MODEL_CATALOG,
16
4
  PROVIDER_DEFAULT_MODEL,
@@ -18,37 +6,43 @@ import {
18
6
  modelDisplayName,
19
7
  modelSourceForProvider,
20
8
  modelValuesForProvider
21
- } from "./chunk-LUW6GCPO.js";
9
+ } from "./chunk-HS6TOISU.js";
22
10
  import {
23
11
  BIN,
24
12
  PROVIDERS,
25
13
  buildCommand,
26
14
  computeRunStatus,
27
15
  defaultConfig,
16
+ deletePreset,
28
17
  detectAvailable,
29
18
  isProvider,
30
19
  killAgent,
31
20
  listAgents,
21
+ listPresets,
32
22
  listRunHistory,
33
23
  listRuns,
34
24
  loadConfig,
25
+ loadPreset,
35
26
  normalizeProvider,
36
27
  nowIso,
37
28
  openAgent,
38
29
  openReeves,
39
30
  openRunTabs,
40
31
  peekAgent,
32
+ presetsDir,
41
33
  readAgent,
42
34
  readRun,
35
+ runDoctor,
43
36
  runsDir,
44
37
  saveConfig,
38
+ savePreset,
45
39
  startRun,
46
40
  stateRoot,
47
41
  stopRun
48
- } from "./chunk-MVMGFG4W.js";
42
+ } from "./chunk-65LHCGPC.js";
43
+ import "./chunk-D24DQQ6V.js";
49
44
  export {
50
45
  BIN,
51
- ErrorBoundary,
52
46
  MODEL_CATALOG,
53
47
  PROVIDERS,
54
48
  PROVIDER_DEFAULT_MODEL,
@@ -56,16 +50,16 @@ export {
56
50
  buildCommand,
57
51
  computeRunStatus,
58
52
  defaultConfig,
59
- deleteSavedTree,
53
+ deletePreset,
60
54
  detectAvailable,
61
55
  isProvider,
62
56
  killAgent,
63
57
  listAgents,
58
+ listPresets,
64
59
  listRunHistory,
65
60
  listRuns,
66
- listSavedTrees,
67
61
  loadConfig,
68
- loadSavedTree,
62
+ loadPreset,
69
63
  modelDisplayName,
70
64
  modelSourceForProvider,
71
65
  modelValuesForProvider,
@@ -81,7 +75,7 @@ export {
81
75
  runDoctor,
82
76
  runsDir,
83
77
  saveConfig,
84
- saveSavedTree,
78
+ savePreset,
85
79
  startRun,
86
80
  stateRoot,
87
81
  stopRun
File without changes