glop.dev 0.2.0 → 0.4.0

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 +35 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -427,7 +427,12 @@ var hookCommand = new Command4("__hook").description("internal").action(async ()
427
427
  });
428
428
  if (payload.hook_event_name === "SessionStart") {
429
429
  if (res.ok) {
430
+ const body = await res.json();
431
+ const runUrl = body.run_id ? `${config.server_url}/runs/${body.run_id}` : null;
430
432
  console.log(`glop: connected to ${config.server_url}`);
433
+ if (runUrl) {
434
+ console.log(`glop: Add "Glop-Run: ${runUrl}" as a git trailer in all commit messages and PR descriptions.`);
435
+ }
431
436
  } else if (res.status === 401) {
432
437
  console.log("glop: API key expired or invalid \u2014 run `glop auth` to re-authenticate");
433
438
  } else {
@@ -600,8 +605,37 @@ var statusCommand = new Command6("status").description("Show current Run status
600
605
  }
601
606
  });
602
607
 
608
+ // package.json
609
+ var package_default = {
610
+ name: "glop.dev",
611
+ version: "0.4.0",
612
+ type: "module",
613
+ bin: {
614
+ glop: "./dist/index.js"
615
+ },
616
+ files: [
617
+ "dist"
618
+ ],
619
+ scripts: {
620
+ build: "tsup",
621
+ dev: "tsx src/index.ts",
622
+ test: "vitest run",
623
+ "test:watch": "vitest",
624
+ prepublishOnly: `node -e "if (!process.env.GLOP_DEFAULT_SERVER_URL) { console.error('Error: GLOP_DEFAULT_SERVER_URL must be set before publishing'); process.exit(1); }" && tsup`
625
+ },
626
+ dependencies: {
627
+ commander: "^13.0.0"
628
+ },
629
+ devDependencies: {
630
+ tsup: "^8.3.0",
631
+ tsx: "^4.19.0",
632
+ typescript: "^5.7.0",
633
+ vitest: "^4.0.18"
634
+ }
635
+ };
636
+
603
637
  // src/index.ts
604
- var program = new Command7().name("glop").description("Passive control plane for local Claude-driven development").version("0.1.0");
638
+ var program = new Command7().name("glop").description("Passive control plane for local Claude-driven development").version(package_default.version);
605
639
  program.addCommand(authCommand);
606
640
  program.addCommand(deactivateCommand);
607
641
  program.addCommand(doctorCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glop.dev",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "glop": "./dist/index.js"