@synkro-sh/cli 1.3.53 → 1.3.55
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/bootstrap.js +19 -8
- package/dist/bootstrap.js.map +1 -1
- package/package.json +3 -3
package/dist/bootstrap.js
CHANGED
|
@@ -3589,13 +3589,12 @@ function captureClaudeSetupToken() {
|
|
|
3589
3589
|
stdio: ["inherit", "pipe", "inherit"]
|
|
3590
3590
|
});
|
|
3591
3591
|
let stdout = "";
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
reject(new Error(`claude setup-token exited with code ${code}`));
|
|
3592
|
+
let streamEnded = false;
|
|
3593
|
+
let exitCode = null;
|
|
3594
|
+
const tryResolve = () => {
|
|
3595
|
+
if (!streamEnded || exitCode === null) return;
|
|
3596
|
+
if (exitCode !== 0) {
|
|
3597
|
+
reject(new Error(`claude setup-token exited with code ${exitCode}`));
|
|
3599
3598
|
return;
|
|
3600
3599
|
}
|
|
3601
3600
|
const stripped = stdout.replace(/\x1B\[[0-9;]*[A-Za-z]|\x1B\][^\x07]*\x07/g, "");
|
|
@@ -3605,6 +3604,18 @@ function captureClaudeSetupToken() {
|
|
|
3605
3604
|
return;
|
|
3606
3605
|
}
|
|
3607
3606
|
resolve2(match[0]);
|
|
3607
|
+
};
|
|
3608
|
+
proc.stdout.on("data", (chunk) => {
|
|
3609
|
+
stdout += chunk.toString();
|
|
3610
|
+
});
|
|
3611
|
+
proc.stdout.on("end", () => {
|
|
3612
|
+
streamEnded = true;
|
|
3613
|
+
tryResolve();
|
|
3614
|
+
});
|
|
3615
|
+
proc.on("error", (err) => reject(new Error(`Failed to spawn claude setup-token: ${err.message}`)));
|
|
3616
|
+
proc.on("close", (code) => {
|
|
3617
|
+
exitCode = code ?? 1;
|
|
3618
|
+
tryResolve();
|
|
3608
3619
|
});
|
|
3609
3620
|
});
|
|
3610
3621
|
}
|
|
@@ -3974,7 +3985,7 @@ function writeConfigEnv(opts) {
|
|
|
3974
3985
|
`SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
|
|
3975
3986
|
`SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
|
|
3976
3987
|
`SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
|
|
3977
|
-
`SYNKRO_VERSION=${shellQuoteSingle("1.3.
|
|
3988
|
+
`SYNKRO_VERSION=${shellQuoteSingle("1.3.55")}`
|
|
3978
3989
|
];
|
|
3979
3990
|
if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
|
|
3980
3991
|
if (safeOrgId) lines.push(`SYNKRO_ORG_ID=${shellQuoteSingle(safeOrgId)}`);
|