@getpawl/setup 1.3.0 → 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.
- package/dist/index.js +13 -6
- 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
|
|
21
|
-
|
|
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://
|
|
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 {
|
|
@@ -750,6 +756,7 @@ function writePawlClaudeMd(cwd) {
|
|
|
750
756
|
"- `.pawl/context.md` \u2014 project index, spec map, health",
|
|
751
757
|
"- `.pawl/specs/` \u2014 individual spec files (one per feature area)",
|
|
752
758
|
"- `.pawl/progress.md` \u2014 last session summary",
|
|
759
|
+
"- `.pawl/decisions.json` \u2014 architectural decisions log (read before starting work)",
|
|
753
760
|
"",
|
|
754
761
|
"Read `.pawl/context.md` at session start, then load relevant specs from `.pawl/specs/` based on the task.",
|
|
755
762
|
PAWL_END
|
|
@@ -788,6 +795,7 @@ function writeAgentsMd(cwd) {
|
|
|
788
795
|
"- `.pawl/context.md` \u2014 project index, spec map, health overview",
|
|
789
796
|
"- `.pawl/specs/` \u2014 individual spec files (one per feature area)",
|
|
790
797
|
"- `.pawl/progress.md` \u2014 last session summary, recent decisions",
|
|
798
|
+
"- `.pawl/decisions.json` \u2014 architectural decisions log, read before starting work",
|
|
791
799
|
"",
|
|
792
800
|
"**Start here**: Read `.pawl/context.md` first, then load relevant",
|
|
793
801
|
"spec files from `.pawl/specs/` based on the task at hand.",
|
|
@@ -836,8 +844,7 @@ function printSummary(detected, hasKey) {
|
|
|
836
844
|
}
|
|
837
845
|
if (!hasKey) {
|
|
838
846
|
console.log("\n Sync is not yet connected to the Pawl dashboard.");
|
|
839
|
-
console.log("
|
|
840
|
-
console.log(" Get your key at: https://pawl.dev/settings");
|
|
847
|
+
console.log(" Starting connect flow...");
|
|
841
848
|
} else {
|
|
842
849
|
console.log("\n .pawl/.env written \u2014 sync is connected.");
|
|
843
850
|
}
|