@fenglimg/fabric-server 2.0.0-rc.13 → 2.0.0-rc.15

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/index.js CHANGED
@@ -318,9 +318,9 @@ ${renderEvidenceBlock(newSummary, newRecentPaths)}
318
318
  const pathSection = /Recent paths:\s*\n([\s\S]*?)(?:\n\s*Notes:|$)/u.exec(block);
319
319
  if (pathSection !== null) {
320
320
  for (const rawLine of (pathSection[1] ?? "").split(/\r?\n/u)) {
321
- const t = rawLine.trim();
322
- if (t.startsWith("- ")) {
323
- existingPaths.push(t.slice(2).trim());
321
+ const t2 = rawLine.trim();
322
+ if (t2.startsWith("- ")) {
323
+ existingPaths.push(t2.slice(2).trim());
324
324
  }
325
325
  }
326
326
  }
@@ -329,16 +329,16 @@ ${renderEvidenceBlock(newSummary, newRecentPaths)}
329
329
  const bulletLines = [];
330
330
  let prose = [];
331
331
  for (const rawLine of noteBody.split(/\r?\n/u)) {
332
- const t = rawLine.trim();
333
- if (t.length === 0) continue;
334
- if (t.startsWith("- ")) {
332
+ const t2 = rawLine.trim();
333
+ if (t2.length === 0) continue;
334
+ if (t2.startsWith("- ")) {
335
335
  if (prose.length > 0) {
336
336
  existingNotes.push(prose.join(" ").trim());
337
337
  prose = [];
338
338
  }
339
- bulletLines.push(t.slice(2).trim());
339
+ bulletLines.push(t2.slice(2).trim());
340
340
  } else {
341
- prose.push(t);
341
+ prose.push(t2);
342
342
  }
343
343
  }
344
344
  if (prose.length > 0) existingNotes.push(prose.join(" ").trim());
@@ -934,7 +934,7 @@ async function listPending(projectRoot, filters) {
934
934
  }
935
935
  if (filters?.tags !== void 0 && filters.tags.length > 0) {
936
936
  const itemTags = fm.tags ?? [];
937
- const hasAll = filters.tags.every((t) => itemTags.includes(t));
937
+ const hasAll = filters.tags.every((t2) => itemTags.includes(t2));
938
938
  if (!hasAll) continue;
939
939
  }
940
940
  if (filters?.created_after !== void 0) {
@@ -1234,7 +1234,7 @@ async function searchEntries(projectRoot, query, filters) {
1234
1234
  }
1235
1235
  if (filters?.tags !== void 0 && filters.tags.length > 0) {
1236
1236
  const itemTags = fm.tags ?? [];
1237
- const hasAll = filters.tags.every((t) => itemTags.includes(t));
1237
+ const hasAll = filters.tags.every((t2) => itemTags.includes(t2));
1238
1238
  if (!hasAll) continue;
1239
1239
  }
1240
1240
  if (filters?.created_after !== void 0) {
@@ -1781,8 +1781,10 @@ function registerKnowledgeSections(server, tracker) {
1781
1781
  // src/services/serve-lock.ts
1782
1782
  import fs from "fs";
1783
1783
  import path from "path";
1784
+ import { createTranslator, detectNodeLocale } from "@fenglimg/fabric-shared";
1784
1785
  import { IOFabricError } from "@fenglimg/fabric-shared/errors";
1785
1786
  var LOCK_FILENAME = ".serve.lock";
1787
+ var t = createTranslator(detectNodeLocale());
1786
1788
  var ServeLockHeldError = class extends IOFabricError {
1787
1789
  code = "SERVE_LOCK_HELD";
1788
1790
  httpStatus = 423;
@@ -1813,7 +1815,7 @@ function acquireLock(projectRoot, opts) {
1813
1815
  throw new ServeLockHeldError(
1814
1816
  `serve lock held by live PID ${state.pid}`,
1815
1817
  {
1816
- actionHint: `Stop the other process (PID ${state.pid}) or run with --force to override`,
1818
+ actionHint: t("cli.serve.lock-held.action-hint", { pid: String(state.pid) }),
1817
1819
  details: state
1818
1820
  }
1819
1821
  );
@@ -1863,7 +1865,7 @@ function checkLockOrThrow(projectRoot, opts) {
1863
1865
  throw new ServeLockHeldError(
1864
1866
  `serve lock held by live PID ${state.pid}`,
1865
1867
  {
1866
- actionHint: `Stop the other serve process (PID ${state.pid}) before running this command, or pass --force to override`,
1868
+ actionHint: t("cli.serve.lock-held.action-hint", { pid: String(state.pid) }),
1867
1869
  details: state
1868
1870
  }
1869
1871
  );
@@ -1890,7 +1892,7 @@ function formatPreexistingRootMessage(projectRoot) {
1890
1892
  function createFabricServer(tracker) {
1891
1893
  const server = new McpServer({
1892
1894
  name: "fabric-knowledge-server",
1893
- version: "2.0.0-rc.13"
1895
+ version: "2.0.0-rc.15"
1894
1896
  });
1895
1897
  registerPlanContext(server, tracker);
1896
1898
  registerKnowledgeSections(server, tracker);
@@ -1990,7 +1992,7 @@ function createShutdownHandler(deps) {
1990
1992
  };
1991
1993
  }
1992
1994
  async function startHttpServer(options) {
1993
- const { createFabricHttpApp } = await import("./http-B3UKRP5Y.js");
1995
+ const { createFabricHttpApp } = await import("./http-FCXAUGSO.js");
1994
1996
  const { port, projectRoot, host = "127.0.0.1", authToken } = options;
1995
1997
  const app = createFabricHttpApp({ projectRoot, host, authToken });
1996
1998
  return await new Promise((resolveServer, rejectServer) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fenglimg/fabric-server",
3
- "version": "2.0.0-rc.13",
3
+ "version": "2.0.0-rc.15",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "express": "^5.2.1",
14
14
  "minimatch": "^10.0.1",
15
15
  "zod": "^3.25.0",
16
- "@fenglimg/fabric-shared": "2.0.0-rc.13"
16
+ "@fenglimg/fabric-shared": "2.0.0-rc.15"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/express": "^5.0.6",
File without changes