@hasna/todos 0.9.4 → 0.9.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/dist/cli/index.js CHANGED
@@ -2531,8 +2531,14 @@ function nextTaskShortId(projectId, db) {
2531
2531
  function ensureProject(name, path, db) {
2532
2532
  const d = db || getDatabase();
2533
2533
  const existing = getProjectByPath(path, d);
2534
- if (existing)
2534
+ if (existing) {
2535
+ if (!existing.task_prefix) {
2536
+ const prefix = generatePrefix(existing.name, d);
2537
+ d.run("UPDATE projects SET task_prefix = ?, updated_at = ? WHERE id = ?", [prefix, now(), existing.id]);
2538
+ return getProject(existing.id, d);
2539
+ }
2535
2540
  return existing;
2541
+ }
2536
2542
  return createProject({ name, path }, d);
2537
2543
  }
2538
2544
  var init_projects = __esm(() => {
package/dist/index.js CHANGED
@@ -506,8 +506,14 @@ function nextTaskShortId(projectId, db) {
506
506
  function ensureProject(name, path, db) {
507
507
  const d = db || getDatabase();
508
508
  const existing = getProjectByPath(path, d);
509
- if (existing)
509
+ if (existing) {
510
+ if (!existing.task_prefix) {
511
+ const prefix = generatePrefix(existing.name, d);
512
+ d.run("UPDATE projects SET task_prefix = ?, updated_at = ? WHERE id = ?", [prefix, now(), existing.id]);
513
+ return getProject(existing.id, d);
514
+ }
510
515
  return existing;
516
+ }
511
517
  return createProject({ name, path }, d);
512
518
  }
513
519
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/todos",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "description": "Universal task management for AI coding agents - CLI + MCP server + interactive TUI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",