@ricsam/r5dctl 0.0.87 → 0.0.89
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/cjs/cli.cjs +5 -4
- package/dist/cjs/package.json +1 -1
- package/dist/mjs/cli.mjs +5 -4
- package/dist/mjs/package.json +1 -1
- package/dist/types/shell.d.ts +1 -1
- package/package.json +2 -2
package/dist/cjs/cli.cjs
CHANGED
|
@@ -94,8 +94,8 @@ var import_promises = require("node:timers/promises");
|
|
|
94
94
|
var import_dotenv = require("dotenv");
|
|
95
95
|
var import_r5d_api = require("@ricsam/r5d-api");
|
|
96
96
|
var import_shell = require("./shell.cjs");
|
|
97
|
-
const CHAT_MODES = /* @__PURE__ */ new Set(["
|
|
98
|
-
const R5DCTL_SESSION_MODES = /* @__PURE__ */ new Set(["
|
|
97
|
+
const CHAT_MODES = /* @__PURE__ */ new Set(["plan", "agent", "large_diff_remediation"]);
|
|
98
|
+
const R5DCTL_SESSION_MODES = /* @__PURE__ */ new Set(["plan", "agent"]);
|
|
99
99
|
const MODEL_TIERS = /* @__PURE__ */ new Set(["low", "medium", "high", "max"]);
|
|
100
100
|
const R5DCTL_PACKAGE_NAME = "@ricsam/r5dctl";
|
|
101
101
|
const CLI_GLOBAL_OPTION_HELP = [
|
|
@@ -551,7 +551,7 @@ function requireModel(value) {
|
|
|
551
551
|
function requireSessionMode(value) {
|
|
552
552
|
const mode = requireValue(value?.trim(), "--mode <mode> is required");
|
|
553
553
|
if (!R5DCTL_SESSION_MODES.has(mode)) {
|
|
554
|
-
throw new Error("Invalid --mode. Expected one of:
|
|
554
|
+
throw new Error("Invalid --mode. Expected one of: plan, agent");
|
|
555
555
|
}
|
|
556
556
|
return mode;
|
|
557
557
|
}
|
|
@@ -3169,7 +3169,8 @@ async function followWithInterrupt(client, sessionId, options) {
|
|
|
3169
3169
|
try {
|
|
3170
3170
|
return await followR5dctlSession(client, sessionId, { ...options, signal: controller.signal });
|
|
3171
3171
|
} finally {
|
|
3172
|
-
process
|
|
3172
|
+
const processEvents = process;
|
|
3173
|
+
processEvents.removeListener("SIGINT", detach);
|
|
3173
3174
|
}
|
|
3174
3175
|
}
|
|
3175
3176
|
async function runCommand(argv) {
|
package/dist/cjs/package.json
CHANGED
package/dist/mjs/cli.mjs
CHANGED
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
R5dctlClient
|
|
12
12
|
} from "@ricsam/r5d-api";
|
|
13
13
|
import { runR5dctlShell } from "./shell.mjs";
|
|
14
|
-
const CHAT_MODES = /* @__PURE__ */ new Set(["
|
|
15
|
-
const R5DCTL_SESSION_MODES = /* @__PURE__ */ new Set(["
|
|
14
|
+
const CHAT_MODES = /* @__PURE__ */ new Set(["plan", "agent", "large_diff_remediation"]);
|
|
15
|
+
const R5DCTL_SESSION_MODES = /* @__PURE__ */ new Set(["plan", "agent"]);
|
|
16
16
|
const MODEL_TIERS = /* @__PURE__ */ new Set(["low", "medium", "high", "max"]);
|
|
17
17
|
const R5DCTL_PACKAGE_NAME = "@ricsam/r5dctl";
|
|
18
18
|
const CLI_GLOBAL_OPTION_HELP = [
|
|
@@ -468,7 +468,7 @@ function requireModel(value) {
|
|
|
468
468
|
function requireSessionMode(value) {
|
|
469
469
|
const mode = requireValue(value?.trim(), "--mode <mode> is required");
|
|
470
470
|
if (!R5DCTL_SESSION_MODES.has(mode)) {
|
|
471
|
-
throw new Error("Invalid --mode. Expected one of:
|
|
471
|
+
throw new Error("Invalid --mode. Expected one of: plan, agent");
|
|
472
472
|
}
|
|
473
473
|
return mode;
|
|
474
474
|
}
|
|
@@ -3086,7 +3086,8 @@ async function followWithInterrupt(client, sessionId, options) {
|
|
|
3086
3086
|
try {
|
|
3087
3087
|
return await followR5dctlSession(client, sessionId, { ...options, signal: controller.signal });
|
|
3088
3088
|
} finally {
|
|
3089
|
-
process
|
|
3089
|
+
const processEvents = process;
|
|
3090
|
+
processEvents.removeListener("SIGINT", detach);
|
|
3090
3091
|
}
|
|
3091
3092
|
}
|
|
3092
3093
|
async function runCommand(argv) {
|
package/dist/mjs/package.json
CHANGED
package/dist/types/shell.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export type RunR5dctlShellOptions = {
|
|
|
18
18
|
command?: string;
|
|
19
19
|
stdin?: ShellInput;
|
|
20
20
|
stdout?: ShellOutput;
|
|
21
|
-
signalTarget?: Pick<NodeJS.
|
|
21
|
+
signalTarget?: Pick<NodeJS.EventEmitter, "on" | "off">;
|
|
22
22
|
createWebSocket?: (url: string, options: ClientOptions) => ShellWebSocket;
|
|
23
23
|
};
|
|
24
24
|
export declare function createShellWebSocketUrl(baseUrl: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ricsam/r5dctl",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.89",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/cjs/cli.cjs",
|
|
6
6
|
"module": "./dist/mjs/cli.mjs",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"r5dctl": "dist/cjs/main.cjs"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@ricsam/r5d-api": "^0.0.
|
|
29
|
+
"@ricsam/r5d-api": "^0.0.89",
|
|
30
30
|
"dotenv": "^17",
|
|
31
31
|
"qrcode": "^1.5.4",
|
|
32
32
|
"ws": "^8.18.3"
|