@workit-dev/mcp 1.13.0 → 1.14.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/dist/index.js +7 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -19284,11 +19284,13 @@ function fastGit(root) {
19284
19284
  }
19285
19285
  function resolveStore(root) {
19286
19286
  root = path9.resolve(root);
19287
- let directory = false;
19287
+ let stat = null;
19288
19288
  try {
19289
- directory = fs5.statSync(root).isDirectory();
19289
+ stat = fs5.statSync(root);
19290
19290
  } catch {}
19291
- if (!directory)
19291
+ if (!stat)
19292
+ return new Error(`cannot locate the workit store: ${root} does not exist (removed while workit ran?); nothing is recorded under a missing directory`);
19293
+ if (!stat.isDirectory())
19292
19294
  return { dir: path9.join(root, ".workit"), shared: false, top: null };
19293
19295
  const fast = fastGit(root);
19294
19296
  if (fast?.kind === "none")
@@ -24018,7 +24020,7 @@ function cleanRebase(cwd, range) {
24018
24020
  function storeRoot(cwd) {
24019
24021
  const location = resolveStore(path19.resolve(cwd));
24020
24022
  if (location instanceof Error)
24021
- return err("unavailable", location.message.replace(/; fix the repository.*$/u, ""), "fix the repository (git status should work here) or run from a non-git directory");
24023
+ return err("unavailable", location.message.replace(/; fix the repository.*$/u, ""), / does not exist /u.test(location.message) ? "run workit from a directory that exists" : "fix the repository (git status should work here) or run from a non-git directory");
24022
24024
  return { ok: true, value: { root: location.dir, shared: location.shared } };
24023
24025
  }
24024
24026
  function ledgerPath(cwd) {
@@ -24219,7 +24221,7 @@ var sealed = (row, id, at, previous) => {
24219
24221
  ` };
24220
24222
  };
24221
24223
  function appendRaw(cwd, row, options) {
24222
- const file = ledgerPath(cwd);
24224
+ const file = options.store ? { ok: true, value: path19.join(options.store.root, "ledger", "ledger.jsonl") } : ledgerPath(cwd);
24223
24225
  if (!file.ok)
24224
24226
  return file;
24225
24227
  const id = newId2();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workit-dev/mcp",
3
- "version": "1.13.0",
3
+ "version": "1.14.2",
4
4
  "private": false,
5
5
  "description": "Workit shared MCP transport for the eight task and policy operation families",
6
6
  "keywords": [
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@modelcontextprotocol/sdk": "1.32.0",
47
- "@workit-dev/core": "^1.13.0",
47
+ "@workit-dev/core": "^1.14.2",
48
48
  "zod": "4.6.5"
49
49
  },
50
50
  "engines": {