@keepgoingdev/cli 1.2.1 → 1.2.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 +14 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -60,7 +60,8 @@ function findGitRoot(startPath) {
|
|
|
60
60
|
const toplevel = execFileSync("git", ["rev-parse", "--show-toplevel"], {
|
|
61
61
|
cwd: startPath,
|
|
62
62
|
encoding: "utf-8",
|
|
63
|
-
timeout: 5e3
|
|
63
|
+
timeout: 5e3,
|
|
64
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
64
65
|
}).trim();
|
|
65
66
|
return toplevel || startPath;
|
|
66
67
|
} catch {
|
|
@@ -77,12 +78,14 @@ function resolveStorageRoot(startPath) {
|
|
|
77
78
|
const toplevel = execFileSync("git", ["rev-parse", "--show-toplevel"], {
|
|
78
79
|
cwd: startPath,
|
|
79
80
|
encoding: "utf-8",
|
|
80
|
-
timeout: 5e3
|
|
81
|
+
timeout: 5e3,
|
|
82
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
81
83
|
}).trim();
|
|
82
84
|
const commonDir = execFileSync("git", ["rev-parse", "--git-common-dir"], {
|
|
83
85
|
cwd: startPath,
|
|
84
86
|
encoding: "utf-8",
|
|
85
|
-
timeout: 5e3
|
|
87
|
+
timeout: 5e3,
|
|
88
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
86
89
|
}).trim();
|
|
87
90
|
const absoluteCommonDir = path.resolve(toplevel, commonDir);
|
|
88
91
|
const mainRoot = path.dirname(absoluteCommonDir);
|
|
@@ -1436,12 +1439,14 @@ var SESSION_END_HOOK = {
|
|
|
1436
1439
|
}
|
|
1437
1440
|
]
|
|
1438
1441
|
};
|
|
1439
|
-
var KEEPGOING_RULES_VERSION =
|
|
1442
|
+
var KEEPGOING_RULES_VERSION = 2;
|
|
1440
1443
|
var KEEPGOING_RULES_CONTENT = `<!-- @keepgoingdev/mcp-server v${KEEPGOING_RULES_VERSION} -->
|
|
1441
1444
|
## KeepGoing
|
|
1442
1445
|
|
|
1446
|
+
When you see KeepGoing momentum data in your session context (from a SessionStart hook), share a brief welcome with the user that includes: what was last worked on, the suggested next step, and any blockers.
|
|
1447
|
+
|
|
1443
1448
|
After completing a task or meaningful piece of work, call the \`save_checkpoint\` MCP tool with:
|
|
1444
|
-
- \`summary\`: 1-2 sentences. What changed and why
|
|
1449
|
+
- \`summary\`: 1-2 sentences. What changed and why, no file paths, no implementation details (those are captured from git).
|
|
1445
1450
|
- \`nextStep\`: What to do next
|
|
1446
1451
|
- \`blocker\`: Any blocker (if applicable)
|
|
1447
1452
|
`;
|
|
@@ -1567,7 +1572,7 @@ function setupProject(options) {
|
|
|
1567
1572
|
messages.push(`Warning: ${conflict}`);
|
|
1568
1573
|
}
|
|
1569
1574
|
}
|
|
1570
|
-
|
|
1575
|
+
{
|
|
1571
1576
|
const needsUpdate = settings.statusLine?.command && statusline?.isLegacy?.(settings.statusLine.command);
|
|
1572
1577
|
if (!settings.statusLine || needsUpdate) {
|
|
1573
1578
|
settings.statusLine = {
|
|
@@ -1575,7 +1580,7 @@ function setupProject(options) {
|
|
|
1575
1580
|
command: STATUSLINE_CMD
|
|
1576
1581
|
};
|
|
1577
1582
|
settingsChanged = true;
|
|
1578
|
-
messages.push(needsUpdate ? "Statusline: Migrated to auto-updating npx command" :
|
|
1583
|
+
messages.push(needsUpdate ? "Statusline: Migrated to auto-updating npx command" : `Statusline: Added to ${scopeLabel}`);
|
|
1579
1584
|
} else {
|
|
1580
1585
|
messages.push("Statusline: Already configured in settings, skipped");
|
|
1581
1586
|
}
|
|
@@ -2109,7 +2114,7 @@ import { spawn } from "child_process";
|
|
|
2109
2114
|
import { readFileSync, existsSync } from "fs";
|
|
2110
2115
|
import path9 from "path";
|
|
2111
2116
|
import os4 from "os";
|
|
2112
|
-
var CLI_VERSION = "1.2.
|
|
2117
|
+
var CLI_VERSION = "1.2.2";
|
|
2113
2118
|
var NPM_REGISTRY_URL = "https://registry.npmjs.org/@keepgoingdev/cli/latest";
|
|
2114
2119
|
var FETCH_TIMEOUT_MS = 5e3;
|
|
2115
2120
|
var CHECK_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -3563,7 +3568,7 @@ async function main() {
|
|
|
3563
3568
|
}
|
|
3564
3569
|
break;
|
|
3565
3570
|
case "version":
|
|
3566
|
-
console.log(`keepgoing v${"1.2.
|
|
3571
|
+
console.log(`keepgoing v${"1.2.2"}`);
|
|
3567
3572
|
break;
|
|
3568
3573
|
case "activate":
|
|
3569
3574
|
await activateCommand({ licenseKey: subcommand });
|