squadrant 0.19.2 → 0.19.3
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.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/squadrantd.js +8 -1
- package/dist/squadrantd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4137,6 +4137,11 @@ import fs9 from "fs";
|
|
|
4137
4137
|
import os4 from "os";
|
|
4138
4138
|
import path9 from "path";
|
|
4139
4139
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
4140
|
+
function ensureSocksDir(dir = CC_SOCKS_DIR) {
|
|
4141
|
+
fs9.mkdirSync(dir, { recursive: true, mode: 448 });
|
|
4142
|
+
if ((fs9.statSync(dir).mode & 511) !== 448)
|
|
4143
|
+
fs9.chmodSync(dir, 448);
|
|
4144
|
+
}
|
|
4140
4145
|
async function pollFirstTurnConfirmedAt(getTaskRecord, project, id) {
|
|
4141
4146
|
const deadline = Date.now() + FIRST_TURN_HOOK_CONFIRM_WINDOW_MS;
|
|
4142
4147
|
for (; ; ) {
|
|
@@ -4274,7 +4279,7 @@ async function runCrewSpawn(input, config, deps) {
|
|
|
4274
4279
|
deps.onModelResolved?.({ agentName, model: crewModel });
|
|
4275
4280
|
}
|
|
4276
4281
|
if (agentName === "claude") {
|
|
4277
|
-
|
|
4282
|
+
ensureSocksDir();
|
|
4278
4283
|
const messagingSocketPath = path9.join(CC_SOCKS_DIR, `squadrant-${randomUUID3()}.sock`);
|
|
4279
4284
|
const rec = await deps.dispatchCrew({
|
|
4280
4285
|
provider: "claude",
|
|
@@ -7564,6 +7569,7 @@ __export(dist_exports2, {
|
|
|
7564
7569
|
encodeFrame: () => encodeFrame,
|
|
7565
7570
|
encodeMsg: () => encodeMsg,
|
|
7566
7571
|
ensureDaemon: () => ensureDaemon,
|
|
7572
|
+
ensureSocksDir: () => ensureSocksDir,
|
|
7567
7573
|
evaluateStall: () => evaluateStall,
|
|
7568
7574
|
exitMarkerPath: () => exitMarkerPath,
|
|
7569
7575
|
fallsBackToPane: () => fallsBackToPane,
|
|
@@ -16398,7 +16404,7 @@ var launchCommand = new Command14("launch").description(
|
|
|
16398
16404
|
agentCmdFactory: (forceFresh) => {
|
|
16399
16405
|
const captainChannelEnabled = shouldWireCaptainChannel(agentName, config);
|
|
16400
16406
|
if (captainChannelEnabled) {
|
|
16401
|
-
|
|
16407
|
+
ensureSocksDir();
|
|
16402
16408
|
}
|
|
16403
16409
|
return buildAgentCmd(
|
|
16404
16410
|
agentName,
|
|
@@ -17826,6 +17832,7 @@ function registerSenderIdentity(socketPath2) {
|
|
|
17826
17832
|
}
|
|
17827
17833
|
async function sharedReceiptListener() {
|
|
17828
17834
|
if (shared) return shared;
|
|
17835
|
+
ensureSocksDir();
|
|
17829
17836
|
const socketPath2 = `${CC_SOCKS_DIR}/squadrantd-${process.pid}.sock`;
|
|
17830
17837
|
const listener = new ClaudeReceiptListener({
|
|
17831
17838
|
socketPath: socketPath2,
|