orchestrating 0.1.19 → 0.1.21
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/bin/orch +12 -1
- package/package.json +1 -1
package/bin/orch
CHANGED
|
@@ -249,7 +249,8 @@ if (commandArgs.length === 0) {
|
|
|
249
249
|
const command = commandArgs[0];
|
|
250
250
|
const spawnArgs = commandArgs.slice(1);
|
|
251
251
|
let sessionId;
|
|
252
|
-
const hostname = os.hostname();
|
|
252
|
+
const hostname = os.hostname().replace(/\.(lan|local|home|internal)$/i, "");
|
|
253
|
+
const cliVersion = JSON.parse(readFileSync(path.join(__dirname, "..", "package.json"), "utf-8")).version;
|
|
253
254
|
const serverUrl = process.env.ORC_URL || process.env.CAST_URL || "wss://api.orchestrat.ing/ws";
|
|
254
255
|
let authToken = getAuthToken();
|
|
255
256
|
const cwdFolder = path.basename(process.cwd());
|
|
@@ -579,6 +580,15 @@ if (adapter) {
|
|
|
579
580
|
// Claude already finished — respawn with -c to retry with new permission
|
|
580
581
|
respawnWithContinue(`Permission for ${msg.tool} was granted. Please retry your last action.`);
|
|
581
582
|
}
|
|
583
|
+
} else if (msg.type === "agent_permission" && msg.tool && msg.action === "deny") {
|
|
584
|
+
process.stderr.write(`${RED}Permission denied: ${msg.tool}${RESET}\n`);
|
|
585
|
+
|
|
586
|
+
if (childRunning) {
|
|
587
|
+
// Claude is still running — remember and respawn when it exits
|
|
588
|
+
pendingPermissionGrant = null;
|
|
589
|
+
} else {
|
|
590
|
+
respawnWithContinue(`Permission for ${msg.tool} was denied by the user. Do not retry this tool — find an alternative approach or skip this step.`);
|
|
591
|
+
}
|
|
582
592
|
} else if (msg.type === "agent_permission" && msg.tool && msg.action === "revoke") {
|
|
583
593
|
removePermission(msg.tool);
|
|
584
594
|
broadcastPermissions();
|
|
@@ -909,6 +919,7 @@ async function connectWs() {
|
|
|
909
919
|
mode: adapter ? adapter.mode : "pty",
|
|
910
920
|
provider: adapter ? adapter.provider : null,
|
|
911
921
|
permissionMode: yoloMode ? "yolo" : "normal",
|
|
922
|
+
cliVersion,
|
|
912
923
|
cols: process.stdout.columns || 80,
|
|
913
924
|
rows: process.stdout.rows || 24,
|
|
914
925
|
}));
|