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/squadrantd.js
CHANGED
|
@@ -3437,6 +3437,11 @@ import fs9 from "fs";
|
|
|
3437
3437
|
import os4 from "os";
|
|
3438
3438
|
import path9 from "path";
|
|
3439
3439
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
3440
|
+
function ensureSocksDir(dir = CC_SOCKS_DIR) {
|
|
3441
|
+
fs9.mkdirSync(dir, { recursive: true, mode: 448 });
|
|
3442
|
+
if ((fs9.statSync(dir).mode & 511) !== 448)
|
|
3443
|
+
fs9.chmodSync(dir, 448);
|
|
3444
|
+
}
|
|
3440
3445
|
async function pollFirstTurnConfirmedAt(getTaskRecord, project, id) {
|
|
3441
3446
|
const deadline = Date.now() + FIRST_TURN_HOOK_CONFIRM_WINDOW_MS;
|
|
3442
3447
|
for (; ; ) {
|
|
@@ -3574,7 +3579,7 @@ async function runCrewSpawn(input, config, deps) {
|
|
|
3574
3579
|
deps.onModelResolved?.({ agentName, model: crewModel });
|
|
3575
3580
|
}
|
|
3576
3581
|
if (agentName === "claude") {
|
|
3577
|
-
|
|
3582
|
+
ensureSocksDir();
|
|
3578
3583
|
const messagingSocketPath = path9.join(CC_SOCKS_DIR, `squadrant-${randomUUID3()}.sock`);
|
|
3579
3584
|
const rec = await deps.dispatchCrew({
|
|
3580
3585
|
provider: "claude",
|
|
@@ -6864,6 +6869,7 @@ __export(dist_exports, {
|
|
|
6864
6869
|
encodeFrame: () => encodeFrame,
|
|
6865
6870
|
encodeMsg: () => encodeMsg,
|
|
6866
6871
|
ensureDaemon: () => ensureDaemon,
|
|
6872
|
+
ensureSocksDir: () => ensureSocksDir,
|
|
6867
6873
|
evaluateStall: () => evaluateStall,
|
|
6868
6874
|
exitMarkerPath: () => exitMarkerPath,
|
|
6869
6875
|
fallsBackToPane: () => fallsBackToPane,
|
|
@@ -9930,6 +9936,7 @@ function registerSenderIdentity(socketPath) {
|
|
|
9930
9936
|
}
|
|
9931
9937
|
async function sharedReceiptListener() {
|
|
9932
9938
|
if (shared) return shared;
|
|
9939
|
+
ensureSocksDir();
|
|
9933
9940
|
const socketPath = `${CC_SOCKS_DIR}/squadrantd-${process.pid}.sock`;
|
|
9934
9941
|
const listener = new ClaudeReceiptListener({
|
|
9935
9942
|
socketPath,
|