@getpawl/setup 1.3.1 → 1.3.2

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 +11 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -17,8 +17,10 @@ async function main() {
17
17
  } else if (arg === "connect") {
18
18
  await pawlConnect();
19
19
  } else if (arg === "init") {
20
- const key = process.argv[3];
21
- pawlInit(key);
20
+ const rest = process.argv.slice(3);
21
+ const noConnect = rest.includes("--no-connect");
22
+ const key = rest.find((a) => !a.startsWith("--"));
23
+ await pawlInit(key, { noConnect });
22
24
  } else if (arg === "migrate") {
23
25
  pawlMigrate();
24
26
  } else {
@@ -34,7 +36,7 @@ Usage:
34
36
  pawl migrate Migrate .pawl/sync.sh from AGENTMAP_* to PAWL_* vars
35
37
  pawl-setup <PROJECT_KEY> Legacy setup (still supported)
36
38
 
37
- Dashboard: https://pawl.dev
39
+ Dashboard: https://agentmap-mimy.onrender.com/dashboard
38
40
  `);
39
41
  }
40
42
  function pawlSync(flag) {
@@ -208,7 +210,7 @@ function legacySetup(encoded) {
208
210
  console.log(" Created: .agentmap/.env, .agentmap/sync.sh, .agentmap/parse-cc-session.js");
209
211
  console.log(" Updated: .claude/settings.json, CLAUDE.md, .gitignore\n");
210
212
  }
211
- function pawlInit(key) {
213
+ async function pawlInit(key, opts) {
212
214
  const cwd = process.cwd();
213
215
  const detected = detectAgents(cwd);
214
216
  migrateIfNeeded(cwd, detected.hasAgentMapDir);
@@ -239,6 +241,10 @@ function pawlInit(key) {
239
241
  writeAgentsMd(cwd);
240
242
  updateGitignore(cwd);
241
243
  printSummary(detected, !!key);
244
+ if (!key && !opts?.noConnect) {
245
+ console.log("\nConnecting to Pawl dashboard...\n");
246
+ await pawlConnect();
247
+ }
242
248
  }
243
249
  function detectAgents(cwd) {
244
250
  return {
@@ -838,8 +844,7 @@ function printSummary(detected, hasKey) {
838
844
  }
839
845
  if (!hasKey) {
840
846
  console.log("\n Sync is not yet connected to the Pawl dashboard.");
841
- console.log(" To enable: pawl init <YOUR_PROJECT_KEY>");
842
- console.log(" Get your key at: https://pawl.dev/settings");
847
+ console.log(" Starting connect flow...");
843
848
  } else {
844
849
  console.log("\n .pawl/.env written \u2014 sync is connected.");
845
850
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpawl/setup",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "type": "commonjs",
5
5
  "description": "One-shot setup for Pawl + Claude Code hooks",
6
6
  "bin": {