@metyatech/task-tracker 0.2.1 → 0.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.
Files changed (2) hide show
  1. package/package.json +18 -3
  2. package/public/index.html +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metyatech/task-tracker",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Persistent task lifecycle tracker for AI agent sessions",
5
5
  "type": "module",
6
6
  "bin": {
@@ -32,7 +32,8 @@
32
32
  "lint": "eslint src",
33
33
  "format": "prettier --write \"src/**/*.ts\" \"*.json\" \"*.md\"",
34
34
  "format:check": "prettier --check \"src/**/*.ts\" \"*.json\" \"*.md\"",
35
- "verify": "npm run format:check && npm run lint && npm run build && npm run test"
35
+ "verify": "npm run format:check && npm run lint && npm run build && npm run test",
36
+ "prepare": "husky"
36
37
  },
37
38
  "dependencies": {
38
39
  "chalk": "^5.3.0",
@@ -43,10 +44,24 @@
43
44
  "@eslint/js": "^9.0.0",
44
45
  "@types/node": "^20.0.0",
45
46
  "eslint": "^9.0.0",
47
+ "husky": "^9.1.7",
48
+ "lint-staged": "^16.2.7",
46
49
  "prettier": "^3.2.0",
47
50
  "tsup": "^8.0.0",
48
51
  "typescript": "^5.4.0",
49
52
  "typescript-eslint": "^8.0.0",
50
- "vitest": "^1.4.0"
53
+ "vitest": "^4.0.0"
54
+ },
55
+ "overrides": {
56
+ "minimatch": "^10.2.2"
57
+ },
58
+ "lint-staged": {
59
+ "src/**/*.ts": [
60
+ "prettier --check",
61
+ "eslint"
62
+ ],
63
+ "*.{json,md}": [
64
+ "prettier --check"
65
+ ]
51
66
  }
52
67
  }
package/public/index.html CHANGED
@@ -509,7 +509,12 @@
509
509
  }
510
510
 
511
511
  loadTasks();
512
- setInterval(loadTasks, 5000);
512
+ setInterval(() => {
513
+ // Skip auto-refresh when user is typing to prevent losing input and focus
514
+ const active = document.activeElement;
515
+ if (active && (active.tagName === 'INPUT' || active.tagName === 'TEXTAREA' || active.tagName === 'SELECT')) return;
516
+ loadTasks();
517
+ }, 5000);
513
518
  </script>
514
519
  </body>
515
520
  </html>