@getpawl/setup 1.3.3 → 1.3.5
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 +18 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29,14 +29,12 @@ async function main() {
|
|
|
29
29
|
}
|
|
30
30
|
function printUsage() {
|
|
31
31
|
console.log(`
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
Dashboard: https://agentmap-mimy.onrender.com/dashboard
|
|
32
|
+
Pawl \u2014 project visibility layer for AI-native development
|
|
33
|
+
|
|
34
|
+
Usage:
|
|
35
|
+
pawl init Set up Pawl in this repo
|
|
36
|
+
pawl connect Link this repo to your Pawl dashboard
|
|
37
|
+
pawl sync [--pull] Push session data to dashboard (or pull context)
|
|
40
38
|
`);
|
|
41
39
|
}
|
|
42
40
|
function pawlSync(flag) {
|
|
@@ -181,7 +179,10 @@ async function pawlConnect() {
|
|
|
181
179
|
writePawlEnvFile(cwd, result);
|
|
182
180
|
console.log(" Connected! .pawl/.env written.\n");
|
|
183
181
|
console.log(` Dashboard: https://agentmap-mimy.onrender.com/projects/${result.projectId}`);
|
|
184
|
-
console.log("
|
|
182
|
+
console.log(" You're all set. Pawl will sync automatically after each session.\n");
|
|
183
|
+
console.log(" Useful commands:");
|
|
184
|
+
console.log(" pawl sync --pull Pull latest context before starting work");
|
|
185
|
+
console.log(" pawl sync Push session data manually\n");
|
|
185
186
|
}
|
|
186
187
|
function legacySetup(encoded) {
|
|
187
188
|
let config;
|
|
@@ -240,7 +241,7 @@ async function pawlInit(key, opts) {
|
|
|
240
241
|
writePawlClaudeMd(cwd);
|
|
241
242
|
writeAgentsMd(cwd);
|
|
242
243
|
updateGitignore(cwd);
|
|
243
|
-
printSummary(detected, !!key);
|
|
244
|
+
printSummary(detected, !!key, !!opts?.noConnect);
|
|
244
245
|
if (!key && !opts?.noConnect) {
|
|
245
246
|
console.log("\nConnecting to Pawl dashboard...\n");
|
|
246
247
|
await pawlConnect();
|
|
@@ -815,7 +816,7 @@ function writeAgentsMd(cwd) {
|
|
|
815
816
|
}
|
|
816
817
|
(0, import_node_fs.writeFileSync)(agentsMdPath, content, "utf-8");
|
|
817
818
|
}
|
|
818
|
-
function printSummary(detected, hasKey) {
|
|
819
|
+
function printSummary(detected, hasKey, noConnect) {
|
|
819
820
|
console.log("\n Pawl initialized.\n");
|
|
820
821
|
console.log(" Detected agents:");
|
|
821
822
|
if (detected.hasCC) {
|
|
@@ -844,8 +845,12 @@ function printSummary(detected, hasKey) {
|
|
|
844
845
|
console.log("\n Note: git repo not detected \u2014 post-commit hook skipped.");
|
|
845
846
|
}
|
|
846
847
|
if (!hasKey) {
|
|
847
|
-
|
|
848
|
-
|
|
848
|
+
if (noConnect) {
|
|
849
|
+
console.log("\n Run `pawl connect` to link this repo to your dashboard.");
|
|
850
|
+
} else {
|
|
851
|
+
console.log("\n Sync is not yet connected to the Pawl dashboard.");
|
|
852
|
+
console.log(" Starting connect flow...");
|
|
853
|
+
}
|
|
849
854
|
} else {
|
|
850
855
|
console.log("\n .pawl/.env written \u2014 sync is connected.");
|
|
851
856
|
}
|