@ricsam/r5d-api 0.0.34 → 0.0.36

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.
@@ -164,7 +164,27 @@ class R5dctlClient {
164
164
  list: (input = {}) => this.request({
165
165
  method: "GET",
166
166
  path: "/api/r5dctl/processes",
167
- query: input
167
+ query: {
168
+ project: input.project,
169
+ branch: input.branch,
170
+ session: input.session,
171
+ worker: input.worker
172
+ }
173
+ }),
174
+ history: (input = {}) => this.request({
175
+ method: "GET",
176
+ path: "/api/r5dctl/processes/history",
177
+ query: {
178
+ project: input.project,
179
+ branch: input.branch,
180
+ session: input.session,
181
+ worker: input.worker,
182
+ limit: input.limit?.toString()
183
+ }
184
+ }),
185
+ inspect: (runId) => this.request({
186
+ method: "GET",
187
+ path: `/api/r5dctl/processes/${encodeURIComponent(runId)}`
168
188
  }),
169
189
  stop: (runId) => this.request({
170
190
  method: "POST",
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@ricsam/r5d-api",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "type": "commonjs"
5
5
  }
@@ -140,7 +140,27 @@ class R5dctlClient {
140
140
  list: (input = {}) => this.request({
141
141
  method: "GET",
142
142
  path: "/api/r5dctl/processes",
143
- query: input
143
+ query: {
144
+ project: input.project,
145
+ branch: input.branch,
146
+ session: input.session,
147
+ worker: input.worker
148
+ }
149
+ }),
150
+ history: (input = {}) => this.request({
151
+ method: "GET",
152
+ path: "/api/r5dctl/processes/history",
153
+ query: {
154
+ project: input.project,
155
+ branch: input.branch,
156
+ session: input.session,
157
+ worker: input.worker,
158
+ limit: input.limit?.toString()
159
+ }
160
+ }),
161
+ inspect: (runId) => this.request({
162
+ method: "GET",
163
+ path: `/api/r5dctl/processes/${encodeURIComponent(runId)}`
144
164
  }),
145
165
  stop: (runId) => this.request({
146
166
  method: "POST",
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@ricsam/r5d-api",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "type": "module"
5
5
  }
@@ -1,4 +1,4 @@
1
- export type ChatMode = "ask" | "plan" | "build" | "agent" | "explore" | "review" | "test" | "research" | "security_review" | "large_diff_remediation" | "merge_conflict_resolution";
1
+ export type ChatMode = "ask" | "plan" | "build" | "agent" | "explore" | "test" | "research" | "security_review" | "large_diff_remediation" | "merge_conflict_resolution";
2
2
  export type ModelTier = "low" | "medium" | "high" | "max";
3
3
  export type R5dctlAgentType = "research" | "debug" | "test";
4
4
  export type R5dctlProject = {
@@ -174,12 +174,19 @@ export type R5dctlProcessRun = {
174
174
  sessionId: string;
175
175
  branchName: string;
176
176
  workerLabel: string;
177
+ platform?: string;
178
+ arch?: string;
179
+ mode: "foreground" | "detached";
180
+ pid?: number;
181
+ processGroupId?: number;
177
182
  argv: string[];
178
183
  command: string;
179
184
  cwd?: string;
180
185
  status: R5dctlProcessRunStatus;
181
186
  startedAt: string;
182
187
  updatedAt: string;
188
+ completedAt?: string;
189
+ exitCode?: number;
183
190
  logPath: string;
184
191
  stdoutBytes: number;
185
192
  stderrBytes: number;
@@ -191,6 +198,14 @@ export type R5dctlProcessListInput = {
191
198
  branch?: string;
192
199
  session?: string;
193
200
  worker?: string;
201
+ limit?: number;
202
+ };
203
+ export type R5dctlProcessInspection = R5dctlProcessRun & {
204
+ stdoutTail: string;
205
+ stderrTail: string;
206
+ outputTailMaxBytes: number;
207
+ stdoutTailTruncated: boolean;
208
+ stderrTailTruncated: boolean;
194
209
  };
195
210
  export type R5dctlProjectUpdateInput = {
196
211
  mode?: "greenfield" | "prod";
@@ -268,6 +283,8 @@ export declare class R5dctlClient {
268
283
  };
269
284
  readonly processes: {
270
285
  list: (input?: R5dctlProcessListInput) => Promise<R5dctlProcessRun[]>;
286
+ history: (input?: R5dctlProcessListInput) => Promise<R5dctlProcessRun[]>;
287
+ inspect: (runId: string) => Promise<R5dctlProcessInspection>;
271
288
  stop: (runId: string) => Promise<R5dctlProcessRun>;
272
289
  };
273
290
  readonly projects: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricsam/r5d-api",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.cjs",
6
6
  "module": "./dist/mjs/index.mjs",