@shipwellapp/cli 0.2.6 → 0.2.7

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -970,10 +970,11 @@ function startAuthFlow(baseUrl) {
970
970
  const email = url.searchParams.get("email") || "";
971
971
  const uid = url.searchParams.get("uid") || "";
972
972
  const photo = url.searchParams.get("photo") || void 0;
973
- res.setHeader("Access-Control-Allow-Origin", "*");
974
- res.setHeader("Access-Control-Allow-Methods", "GET, OPTIONS");
975
- res.writeHead(200, { "Content-Type": "text/plain" });
976
- res.end("ok");
973
+ const successParams = new URLSearchParams({ name, email });
974
+ res.writeHead(302, {
975
+ Location: `${baseUrl}/cli-auth/success?${successParams.toString()}`
976
+ });
977
+ res.end();
977
978
  server.close();
978
979
  resolve({ name, email, uid, photo });
979
980
  } else {
@@ -1162,7 +1163,7 @@ function modelsCommand() {
1162
1163
  }
1163
1164
 
1164
1165
  // src/index.ts
1165
- var VERSION = "0.2.6";
1166
+ var VERSION = "0.2.7";
1166
1167
  var accent7 = chalk7.hex("#6366f1");
1167
1168
  var dim5 = chalk7.dim;
1168
1169
  var bold2 = chalk7.bold;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipwellapp/cli",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Full Codebase Autopilot — deep cross-file analysis powered by Claude",
5
5
  "type": "module",
6
6
  "bin": {