@synkro-sh/cli 1.3.56 → 1.3.57

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 CHANGED
@@ -3605,7 +3605,14 @@ function captureClaudeSetupToken() {
3605
3605
  return;
3606
3606
  }
3607
3607
  const stripped = raw.replace(/\x1B\[[0-9;]*[A-Za-z]|\x1B\][^\x07]*\x07/g, "");
3608
- const match = stripped.replace(/\s/g, "").match(/sk-ant-oat01-[A-Za-z0-9_-]+AAA/);
3608
+ const startIdx = stripped.indexOf("Your OAuth token");
3609
+ const endIdx = stripped.indexOf("Store this token");
3610
+ if (startIdx === -1 || endIdx === -1) {
3611
+ reject(new Error("Could not find token in claude setup-token output"));
3612
+ return;
3613
+ }
3614
+ const section = stripped.slice(startIdx, endIdx).replace(/\s/g, "");
3615
+ const match = section.match(/sk-ant-oat01-[A-Za-z0-9_-]+/);
3609
3616
  if (!match) {
3610
3617
  reject(new Error("Could not find token in claude setup-token output"));
3611
3618
  return;
@@ -3980,7 +3987,7 @@ function writeConfigEnv(opts) {
3980
3987
  `SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
3981
3988
  `SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
3982
3989
  `SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
3983
- `SYNKRO_VERSION=${shellQuoteSingle("1.3.56")}`
3990
+ `SYNKRO_VERSION=${shellQuoteSingle("1.3.57")}`
3984
3991
  ];
3985
3992
  if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
3986
3993
  if (safeOrgId) lines.push(`SYNKRO_ORG_ID=${shellQuoteSingle(safeOrgId)}`);