@getpawl/setup 1.3.2 → 1.3.4
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 +16 -14
- 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) {
|
|
@@ -101,7 +99,7 @@ function generateCode() {
|
|
|
101
99
|
}
|
|
102
100
|
function getRepoName() {
|
|
103
101
|
try {
|
|
104
|
-
const remote = (0, import_node_child_process.execSync)("git remote get-url origin", { encoding: "utf-8" }).trim();
|
|
102
|
+
const remote = (0, import_node_child_process.execSync)("git remote get-url origin", { encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"] }).trim();
|
|
105
103
|
const match = remote.match(/\/([^/]+?)(?:\.git)?$/);
|
|
106
104
|
if (match) return match[1];
|
|
107
105
|
} catch {
|
|
@@ -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;
|
|
@@ -824,21 +825,22 @@ function printSummary(detected, hasKey) {
|
|
|
824
825
|
if (detected.hasGemini) {
|
|
825
826
|
console.log(" Gemini CLI \u2713 hooks installed (.gemini/settings.json)");
|
|
826
827
|
}
|
|
827
|
-
|
|
828
|
+
if (detected.hasGitDir) {
|
|
829
|
+
console.log(" Git hook active \u2014 syncs on every commit (all agents)");
|
|
830
|
+
}
|
|
828
831
|
console.log("\n Files written:");
|
|
829
832
|
console.log(" .pawl/sync.mjs (Node.js sync \u2014 no curl/jq needed)");
|
|
830
833
|
console.log(" .pawl/track-file.mjs (Node.js file tracker)");
|
|
831
834
|
console.log(" .pawl/sync.sh (bash fallback)");
|
|
832
835
|
console.log(" .pawl/parse-cc-session.js");
|
|
833
836
|
console.log(" CLAUDE.md (pawl context block updated)");
|
|
834
|
-
console.log(" AGENTS.md (
|
|
837
|
+
console.log(" AGENTS.md (universal context block \u2014 readable by all agents)");
|
|
835
838
|
if (detected.hasGitDir) {
|
|
836
839
|
console.log(" .git/hooks/post-commit (universal sync fallback)");
|
|
837
840
|
}
|
|
838
841
|
console.log(" .gitignore (updated)");
|
|
839
842
|
if (detected.hasGitDir) {
|
|
840
|
-
console.log("\n
|
|
841
|
-
console.log(" Each team member should run: pawl init");
|
|
843
|
+
console.log("\n Each team member should run pawl init to activate git sync.");
|
|
842
844
|
} else {
|
|
843
845
|
console.log("\n Note: git repo not detected \u2014 post-commit hook skipped.");
|
|
844
846
|
}
|