orchestrating 0.1.19 → 0.1.20
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 +10 -1
- package/package.json +1 -1
package/bin/orch
CHANGED
|
@@ -249,7 +249,7 @@ 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
253
|
const serverUrl = process.env.ORC_URL || process.env.CAST_URL || "wss://api.orchestrat.ing/ws";
|
|
254
254
|
let authToken = getAuthToken();
|
|
255
255
|
const cwdFolder = path.basename(process.cwd());
|
|
@@ -579,6 +579,15 @@ if (adapter) {
|
|
|
579
579
|
// Claude already finished — respawn with -c to retry with new permission
|
|
580
580
|
respawnWithContinue(`Permission for ${msg.tool} was granted. Please retry your last action.`);
|
|
581
581
|
}
|
|
582
|
+
} else if (msg.type === "agent_permission" && msg.tool && msg.action === "deny") {
|
|
583
|
+
process.stderr.write(`${RED}Permission denied: ${msg.tool}${RESET}\n`);
|
|
584
|
+
|
|
585
|
+
if (childRunning) {
|
|
586
|
+
// Claude is still running — remember and respawn when it exits
|
|
587
|
+
pendingPermissionGrant = null;
|
|
588
|
+
} else {
|
|
589
|
+
respawnWithContinue(`Permission for ${msg.tool} was denied by the user. Do not retry this tool — find an alternative approach or skip this step.`);
|
|
590
|
+
}
|
|
582
591
|
} else if (msg.type === "agent_permission" && msg.tool && msg.action === "revoke") {
|
|
583
592
|
removePermission(msg.tool);
|
|
584
593
|
broadcastPermissions();
|