@synkro-sh/cli 1.3.34 → 1.3.35

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
@@ -1996,7 +1996,11 @@ def fetch_primer(mode):
1996
1996
  try:
1997
1997
  req = urllib.request.Request(
1998
1998
  f"{GATEWAY_URL}/api/v1/cli/judge-prompts",
1999
- headers={"Authorization": f"Bearer {jwt}"},
1999
+ headers={
2000
+ "Authorization": f"Bearer {jwt}",
2001
+ # CF rejects requests without UA \u2014 without this we get 403.
2002
+ "User-Agent": "synkro-cli-grader-daemon/1",
2003
+ },
2000
2004
  )
2001
2005
  with urllib.request.urlopen(req, timeout=5) as resp:
2002
2006
  data = json.loads(resp.read().decode("utf-8"))
@@ -3647,7 +3651,7 @@ function writeConfigEnv(opts) {
3647
3651
  `SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
3648
3652
  `SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
3649
3653
  `SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
3650
- `SYNKRO_VERSION=${shellQuoteSingle("1.3.34")}`
3654
+ `SYNKRO_VERSION=${shellQuoteSingle("1.3.35")}`
3651
3655
  ];
3652
3656
  if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
3653
3657
  if (safeOrgId) lines.push(`SYNKRO_ORG_ID=${shellQuoteSingle(safeOrgId)}`);