openmoneta-dev-kit 1.10.4 → 1.10.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/VERSION +1 -1
- package/package.json +1 -1
- package/src/commands/update.js +10 -9
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.10.
|
|
1
|
+
1.10.5
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openmoneta-dev-kit",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.5",
|
|
4
4
|
"description": "OpenMoneta Dev Kit — Biến Cursor IDE / OpenCode thành team developer hoàn chỉnh với quy trình 6 bước, adaptive planning, hooks enforcement, và token-aware doc routing",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cursor",
|
package/src/commands/update.js
CHANGED
|
@@ -40,16 +40,17 @@ async function run(args) {
|
|
|
40
40
|
const pkgRoot = getPkgRoot()
|
|
41
41
|
|
|
42
42
|
try {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
execSync(`git pull origin "${branch}"`, { stdio: "inherit", cwd: pkgRoot })
|
|
48
|
-
} else {
|
|
49
|
-
execSync("powershell.exe -Command \"& { git pull }\"", { stdio: "inherit", cwd: pkgRoot, shell: true })
|
|
50
|
-
}
|
|
43
|
+
execSync("git rev-parse --is-inside-work-tree", { stdio: "pipe", cwd: pkgRoot })
|
|
44
|
+
const branch = execSync("git rev-parse --abbrev-ref HEAD", { encoding: "utf8", cwd: pkgRoot }).trim()
|
|
45
|
+
console.log(`\n ▶ Git pull (branch: ${branch})...`)
|
|
46
|
+
execSync(`git pull origin "${branch}"`, { stdio: "inherit", cwd: pkgRoot })
|
|
51
47
|
} catch {
|
|
52
|
-
|
|
48
|
+
try {
|
|
49
|
+
console.log(`\n ▶ NPM update: openmoneta-dev-kit@latest...`)
|
|
50
|
+
execSync(`npm install -g openmoneta-dev-kit@latest`, { stdio: "inherit" })
|
|
51
|
+
} catch {
|
|
52
|
+
console.warn(` ⚠ Không thể cập nhật source (git/npm). Dùng source hiện tại.`)
|
|
53
|
+
}
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
if (isInstalled("cursor")) {
|