gm-kilo 2.0.824 → 2.0.826

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/bin/bootstrap.js CHANGED
@@ -229,6 +229,16 @@ async function downloadWithRetry(url, destPath) {
229
229
  throw lastErr;
230
230
  }
231
231
 
232
+ function isLockStale(lockPath) {
233
+ try {
234
+ const st = fs.statSync(lockPath);
235
+ if (Date.now() - st.mtimeMs > LOCK_STALE_MS) return true;
236
+ const owner = parseInt(fs.readFileSync(lockPath, 'utf8').trim(), 10);
237
+ if (Number.isFinite(owner) && !pidAlive(owner)) return true;
238
+ } catch (_) { return true; }
239
+ return false;
240
+ }
241
+
232
242
  function pruneOldVersions(root, keepVersion) {
233
243
  try {
234
244
  const entries = fs.readdirSync(root);
@@ -237,7 +247,8 @@ function pruneOldVersions(root, keepVersion) {
237
247
  if (e === `v${keepVersion}`) continue;
238
248
  const dir = path.join(root, e);
239
249
  const lock = path.join(dir, '.lock');
240
- if (fs.existsSync(lock)) continue;
250
+ if (fs.existsSync(lock) && !isLockStale(lock)) continue;
251
+ if (fs.existsSync(lock)) { try { fs.unlinkSync(lock); } catch (_) {} }
241
252
  try {
242
253
  fs.rmSync(dir, { recursive: true, force: true });
243
254
  log(`pruned ${dir}`);
@@ -279,6 +290,15 @@ async function bootstrap(opts) {
279
290
  }
280
291
 
281
292
  const tmpPath = `${finalPath}.partial`;
293
+ if (fs.existsSync(tmpPath)) {
294
+ try {
295
+ const st = fs.statSync(tmpPath);
296
+ if (Date.now() - st.mtimeMs > LOCK_STALE_MS) {
297
+ fs.unlinkSync(tmpPath);
298
+ log(`cleared stale partial: ${tmpPath}`);
299
+ }
300
+ } catch (_) {}
301
+ }
282
302
  const url = `https://github.com/${RELEASE_REPO}/releases/download/v${version}/${binName}`;
283
303
  await downloadWithRetry(url, tmpPath);
284
304
 
@@ -1,6 +1,6 @@
1
- 0b14cd4ddae6a4d47dfb9aac9aaa190482f5c84c7e4724e4feb11976c30fc702 plugkit-win32-x64.exe
2
- 760b5f3619bbdff4bb8641fd5557e4f47bbf1832c6452fa9d066fc6024c2e4b0 plugkit-win32-arm64.exe
3
- 1d873ea32c6ee708828c362a736f219ff2d55242c79df60827ad6d9d5fc4b8ed plugkit-darwin-x64
4
- 0285f7687ff43fca51fd124a1d981090ef5db7b5c43dd1c22eed62ceb89d9ab5 plugkit-darwin-arm64
5
- 07b925c6ee0efced7543eed6c9704ffce6888daa2e2f7ef364e281cfd96ef378 plugkit-linux-x64
6
- 414c7ffdabe0fc4a705682e6be589ca98e48d0d6f1a38caa189c7da7b09a75d8 plugkit-linux-arm64
1
+ 97735890c932b3ac19b74050616a9a84dfb70f0cb34da2c186d7850710ab3f4d plugkit-win32-x64.exe
2
+ af7fa01aa9e03064f402dbd0b4b9999ff83dce5127a755b1266ea971573d3501 plugkit-win32-arm64.exe
3
+ 2d1949f37b148f96b2a5f61898cf816088ad081672393cca0ed9f5571c5012b8 plugkit-darwin-x64
4
+ f5423973f87c9f16091ed974f471423147bab119aa8a5ddc977a6e74479f52f6 plugkit-darwin-arm64
5
+ 9a7b276538a793674b9109477357db3d289007c21d1bc858778754262bb6bd68 plugkit-linux-x64
6
+ d91cf3ac9452294d60ef537f139f9c5aa945f9f2a8a81ad7f401e50641381737 plugkit-linux-arm64
@@ -1 +1 @@
1
- 0.1.271
1
+ 0.1.272
package/bin/rtk.sha256 CHANGED
@@ -1,5 +1,5 @@
1
- af042dcc613bca764124ce39c07f7b2fe7192c946106deb95d0db7a9b87336b0 rtk-win32-x64.exe
2
- d7a6d8496e4a97859242d82c33a3cfd90408167263c84f128945ade5d7c5d7a4 rtk-win32-arm64.exe
1
+ 9389905b1d0a519036bcb69d4768137b70264a928fb61f65752875afc73b2e0a rtk-win32-x64.exe
2
+ 80a3db2e27588ab6f0843f18ac54f08fc0e196a4cc54c13ef5345dbe08575388 rtk-win32-arm64.exe
3
3
  e89fdf402c28796b510587a8b0fe046438b5b24d49533d1a2339a48aecae35e9 rtk-darwin-x64
4
4
  2b203fd380f5782b5489eb016e34e3dbf848272a7fadf36b39bce6cfd9a3005c rtk-darwin-arm64
5
5
  0da9950b859c7a2693aaf6c169f05f9b8965508ba1f23f1547e63d5fa988749e rtk-linux-x64
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-kilo",
3
- "version": "2.0.824",
3
+ "version": "2.0.826",
4
4
  "description": "State machine agent with hooks, skills, and automated git enforcement",
5
5
  "author": "AnEntrypoint",
6
6
  "license": "MIT",