trueline-mcp 1.2.0 → 2.0.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/server.js CHANGED
@@ -4,25 +4,43 @@ var __getProtoOf = Object.getPrototypeOf;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ function __accessProp(key) {
8
+ return this[key];
9
+ }
10
+ var __toESMCache_node;
11
+ var __toESMCache_esm;
7
12
  var __toESM = (mod, isNodeMode, target) => {
13
+ var canCache = mod != null && typeof mod === "object";
14
+ if (canCache) {
15
+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
16
+ var cached = cache.get(mod);
17
+ if (cached)
18
+ return cached;
19
+ }
8
20
  target = mod != null ? __create(__getProtoOf(mod)) : {};
9
21
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
10
22
  for (let key of __getOwnPropNames(mod))
11
23
  if (!__hasOwnProp.call(to, key))
12
24
  __defProp(to, key, {
13
- get: () => mod[key],
25
+ get: __accessProp.bind(mod, key),
14
26
  enumerable: true
15
27
  });
28
+ if (canCache)
29
+ cache.set(mod, to);
16
30
  return to;
17
31
  };
18
32
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
33
+ var __returnValue = (v) => v;
34
+ function __exportSetter(name2, newValue) {
35
+ this[name2] = __returnValue.bind(null, newValue);
36
+ }
19
37
  var __export = (target, all) => {
20
38
  for (var name2 in all)
21
39
  __defProp(target, name2, {
22
40
  get: all[name2],
23
41
  enumerable: true,
24
42
  configurable: true,
25
- set: (newValue) => all[name2] = () => newValue
43
+ set: __exportSetter.bind(all, name2)
26
44
  });
27
45
  };
28
46
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
@@ -6501,7 +6519,7 @@ var require_dist = __commonJS((exports, module2) => {
6501
6519
 
6502
6520
  // node_modules/web-tree-sitter/tree-sitter.js
6503
6521
  var require_tree_sitter = __commonJS((exports, module2) => {
6504
- var __dirname = "/Users/rjk/src/opensource/trueline-mcp/node_modules/web-tree-sitter";
6522
+ var __dirname = "/home/runner/work/trueline-mcp/trueline-mcp/node_modules/web-tree-sitter";
6505
6523
  var Module = typeof Module != "undefined" ? Module : {};
6506
6524
  var ENVIRONMENT_IS_WEB = typeof window == "object";
6507
6525
  var ENVIRONMENT_IS_WORKER = typeof importScripts == "function";
@@ -22335,7 +22353,7 @@ class StdioServerTransport {
22335
22353
  // package.json
22336
22354
  var package_default = {
22337
22355
  name: "trueline-mcp",
22338
- version: "1.2.0",
22356
+ version: "2.0.5",
22339
22357
  type: "module",
22340
22358
  description: "Truth-verified file editing for AI coding agents via MCP",
22341
22359
  license: "Apache-2.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trueline-mcp",
3
- "version": "1.2.0",
3
+ "version": "2.0.5",
4
4
  "type": "module",
5
5
  "description": "Truth-verified file editing for AI coding agents via MCP",
6
6
  "license": "Apache-2.0",
@@ -1,24 +0,0 @@
1
- # trueline-mcp
2
-
3
- trueline-mcp replaces the built-in Read and Edit tools with hash-verified,
4
- token-efficient alternatives. Always use the trueline tools instead of
5
- built-in file operations.
6
-
7
- ## Tools
8
-
9
- - **trueline_read** — Read a file with per-line hashes and range checksums. Call before editing.
10
- - **trueline_edit** — Apply hash-verified edits. Each edit needs a checksum from trueline_read.
11
- - **trueline_diff** — Preview edits as a unified diff without writing to disk.
12
- - **trueline_outline** — Get a compact structural outline of a source file.
13
-
14
- ## Workflow
15
-
16
- trueline_outline (navigate) → trueline_read (targeted ranges) → trueline_diff (optional) → trueline_edit
17
-
18
- ## Rules
19
-
20
- - Never use the built-in Edit or MultiEdit tools — they are blocked and will be rejected. Use trueline_edit instead.
21
- - Never use the built-in Read tool — use trueline_read instead.
22
- - When spawning subagents, include these trueline instructions in their task prompt.
23
- - trueline_outline is often enough for navigation. Only call trueline_read when you need source code.
24
- - After trueline_outline, read only the specific ranges you need — do NOT read the entire file.