obsidian-mcp-server 3.6.1 → 3.7.1

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 (104) hide show
  1. package/AGENTS.md +40 -22
  2. package/CLAUDE.md +40 -22
  3. package/Dockerfile +3 -3
  4. package/README.md +29 -17
  5. package/changelog/3.7.x/3.7.0.md +34 -0
  6. package/changelog/3.7.x/3.7.1.md +40 -0
  7. package/dist/config/server-config.d.ts +1 -0
  8. package/dist/config/server-config.d.ts.map +1 -1
  9. package/dist/config/server-config.js +5 -1
  10. package/dist/config/server-config.js.map +1 -1
  11. package/dist/index.js +35 -35
  12. package/dist/index.js.map +1 -1
  13. package/dist/instructions.d.ts +20 -0
  14. package/dist/instructions.d.ts.map +1 -0
  15. package/dist/instructions.js +40 -0
  16. package/dist/instructions.js.map +1 -0
  17. package/dist/mcp-server/resources/definitions/obsidian-tags.resource.d.ts +7 -5
  18. package/dist/mcp-server/resources/definitions/obsidian-tags.resource.d.ts.map +1 -1
  19. package/dist/mcp-server/resources/definitions/obsidian-tags.resource.js +12 -8
  20. package/dist/mcp-server/resources/definitions/obsidian-tags.resource.js.map +1 -1
  21. package/dist/mcp-server/tools/definitions/_shared/suggest-paths.d.ts +69 -9
  22. package/dist/mcp-server/tools/definitions/_shared/suggest-paths.d.ts.map +1 -1
  23. package/dist/mcp-server/tools/definitions/_shared/suggest-paths.js +88 -7
  24. package/dist/mcp-server/tools/definitions/_shared/suggest-paths.js.map +1 -1
  25. package/dist/mcp-server/tools/definitions/index.d.ts +256 -309
  26. package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
  27. package/dist/mcp-server/tools/definitions/index.js +9 -3
  28. package/dist/mcp-server/tools/definitions/index.js.map +1 -1
  29. package/dist/mcp-server/tools/definitions/obsidian-append-to-note.tool.d.ts +6 -0
  30. package/dist/mcp-server/tools/definitions/obsidian-append-to-note.tool.d.ts.map +1 -1
  31. package/dist/mcp-server/tools/definitions/obsidian-append-to-note.tool.js +12 -4
  32. package/dist/mcp-server/tools/definitions/obsidian-append-to-note.tool.js.map +1 -1
  33. package/dist/mcp-server/tools/definitions/obsidian-delete-note.tool.d.ts +107 -10
  34. package/dist/mcp-server/tools/definitions/obsidian-delete-note.tool.d.ts.map +1 -1
  35. package/dist/mcp-server/tools/definitions/obsidian-delete-note.tool.js +237 -162
  36. package/dist/mcp-server/tools/definitions/obsidian-delete-note.tool.js.map +1 -1
  37. package/dist/mcp-server/tools/definitions/obsidian-get-note.tool.d.ts +1 -0
  38. package/dist/mcp-server/tools/definitions/obsidian-get-note.tool.d.ts.map +1 -1
  39. package/dist/mcp-server/tools/definitions/obsidian-get-note.tool.js +70 -24
  40. package/dist/mcp-server/tools/definitions/obsidian-get-note.tool.js.map +1 -1
  41. package/dist/mcp-server/tools/definitions/obsidian-list-notes.tool.d.ts +6 -1
  42. package/dist/mcp-server/tools/definitions/obsidian-list-notes.tool.d.ts.map +1 -1
  43. package/dist/mcp-server/tools/definitions/obsidian-list-notes.tool.js +8 -10
  44. package/dist/mcp-server/tools/definitions/obsidian-list-notes.tool.js.map +1 -1
  45. package/dist/mcp-server/tools/definitions/obsidian-list-tags.tool.d.ts +7 -5
  46. package/dist/mcp-server/tools/definitions/obsidian-list-tags.tool.d.ts.map +1 -1
  47. package/dist/mcp-server/tools/definitions/obsidian-list-tags.tool.js +13 -7
  48. package/dist/mcp-server/tools/definitions/obsidian-list-tags.tool.js.map +1 -1
  49. package/dist/mcp-server/tools/definitions/obsidian-manage-frontmatter.tool.d.ts.map +1 -1
  50. package/dist/mcp-server/tools/definitions/obsidian-manage-frontmatter.tool.js +6 -4
  51. package/dist/mcp-server/tools/definitions/obsidian-manage-frontmatter.tool.js.map +1 -1
  52. package/dist/mcp-server/tools/definitions/obsidian-manage-tags.tool.d.ts.map +1 -1
  53. package/dist/mcp-server/tools/definitions/obsidian-manage-tags.tool.js +4 -2
  54. package/dist/mcp-server/tools/definitions/obsidian-manage-tags.tool.js.map +1 -1
  55. package/dist/mcp-server/tools/definitions/obsidian-open-in-ui.tool.d.ts +4 -1
  56. package/dist/mcp-server/tools/definitions/obsidian-open-in-ui.tool.d.ts.map +1 -1
  57. package/dist/mcp-server/tools/definitions/obsidian-open-in-ui.tool.js +15 -4
  58. package/dist/mcp-server/tools/definitions/obsidian-open-in-ui.tool.js.map +1 -1
  59. package/dist/mcp-server/tools/definitions/obsidian-patch-note.tool.js +2 -2
  60. package/dist/mcp-server/tools/definitions/obsidian-patch-note.tool.js.map +1 -1
  61. package/dist/mcp-server/tools/definitions/obsidian-replace-in-note.tool.d.ts.map +1 -1
  62. package/dist/mcp-server/tools/definitions/obsidian-replace-in-note.tool.js +4 -2
  63. package/dist/mcp-server/tools/definitions/obsidian-replace-in-note.tool.js.map +1 -1
  64. package/dist/mcp-server/tools/definitions/obsidian-search-notes.tool.d.ts +26 -2
  65. package/dist/mcp-server/tools/definitions/obsidian-search-notes.tool.d.ts.map +1 -1
  66. package/dist/mcp-server/tools/definitions/obsidian-search-notes.tool.js +47 -15
  67. package/dist/mcp-server/tools/definitions/obsidian-search-notes.tool.js.map +1 -1
  68. package/dist/mcp-server/tools/definitions/obsidian-write-note.tool.d.ts +5 -0
  69. package/dist/mcp-server/tools/definitions/obsidian-write-note.tool.d.ts.map +1 -1
  70. package/dist/mcp-server/tools/definitions/obsidian-write-note.tool.js +21 -4
  71. package/dist/mcp-server/tools/definitions/obsidian-write-note.tool.js.map +1 -1
  72. package/dist/services/obsidian/frontmatter-ops.d.ts +15 -1
  73. package/dist/services/obsidian/frontmatter-ops.d.ts.map +1 -1
  74. package/dist/services/obsidian/frontmatter-ops.js +55 -10
  75. package/dist/services/obsidian/frontmatter-ops.js.map +1 -1
  76. package/dist/services/obsidian/jsonlogic-evaluator.d.ts +83 -0
  77. package/dist/services/obsidian/jsonlogic-evaluator.d.ts.map +1 -0
  78. package/dist/services/obsidian/jsonlogic-evaluator.js +192 -0
  79. package/dist/services/obsidian/jsonlogic-evaluator.js.map +1 -0
  80. package/dist/services/obsidian/jsonlogic-worker.d.ts +53 -0
  81. package/dist/services/obsidian/jsonlogic-worker.d.ts.map +1 -0
  82. package/dist/services/obsidian/jsonlogic-worker.js +237 -0
  83. package/dist/services/obsidian/jsonlogic-worker.js.map +1 -0
  84. package/dist/services/obsidian/obsidian-service.d.ts +61 -6
  85. package/dist/services/obsidian/obsidian-service.d.ts.map +1 -1
  86. package/dist/services/obsidian/obsidian-service.js +301 -53
  87. package/dist/services/obsidian/obsidian-service.js.map +1 -1
  88. package/dist/services/obsidian/patch-instruction.d.ts +20 -1
  89. package/dist/services/obsidian/patch-instruction.d.ts.map +1 -1
  90. package/dist/services/obsidian/patch-instruction.js +30 -0
  91. package/dist/services/obsidian/patch-instruction.js.map +1 -1
  92. package/dist/services/obsidian/path-policy.d.ts +55 -5
  93. package/dist/services/obsidian/path-policy.d.ts.map +1 -1
  94. package/dist/services/obsidian/path-policy.js +143 -19
  95. package/dist/services/obsidian/path-policy.js.map +1 -1
  96. package/dist/services/obsidian/section-extractor.d.ts +24 -0
  97. package/dist/services/obsidian/section-extractor.d.ts.map +1 -1
  98. package/dist/services/obsidian/section-extractor.js +37 -0
  99. package/dist/services/obsidian/section-extractor.js.map +1 -1
  100. package/dist/services/obsidian/types.d.ts +12 -3
  101. package/dist/services/obsidian/types.d.ts.map +1 -1
  102. package/manifest.json +10 -2
  103. package/package.json +18 -14
  104. package/server.json +19 -5
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonlogic-worker.d.ts","sourceRoot":"","sources":["../../../src/services/obsidian/jsonlogic-worker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAMH,wFAAwF;AACxF,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,kGAAkG;IAClG,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,kGAAkG;IAClG,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAC1B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,GACpF;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,SAAS,GAAG,gBAAgB,GAAG,aAAa,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzF,KAAK,aAAa,GAAG,kBAAkB,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,237 @@
1
+ /**
2
+ * @fileoverview Worker-thread entry that evaluates a caller's JSONLogic tree
3
+ * against note contexts, for searches scoped by OBSIDIAN_READ_PATHS. Runs the
4
+ * operator set the Local REST API plugin runs (json-logic-js 2.0.5 plus its
5
+ * `glob` and `regexp`), with the plugin's hit test and JSON-shaped results, so
6
+ * a scoped search answers as the plugin would over the same notes.
7
+ *
8
+ * Off the main thread so a slow tree cannot hold the event loop: the evaluator
9
+ * terminates this worker at its deadline, which also stops a native regex
10
+ * mid-backtrack. Memory is bounded here by work budgets, since Bun ignores
11
+ * `resourceLimits`: one per note for what its evaluation builds and drops,
12
+ * and one across the search for what kept results hold past a
13
+ * 1,024-character allowance each.
14
+ *
15
+ * Imports only packages and builtins, never sibling modules: under Node the
16
+ * test suite loads this file from source, where `./x.js` specifiers do not
17
+ * resolve to `.ts`.
18
+ *
19
+ * @module services/obsidian/jsonlogic-worker
20
+ */
21
+ import { parentPort } from 'node:worker_threads';
22
+ import globToRegExp from 'glob-to-regexp';
23
+ import jsonLogic from 'json-logic-js';
24
+ /** Thrown when a work budget runs out; never caught by json-logic-js, which has no try. */
25
+ class BudgetExhausted extends Error {
26
+ failure;
27
+ constructor(failure) {
28
+ super(failure);
29
+ this.failure = failure;
30
+ }
31
+ }
32
+ /** Units the current note's evaluation may still build; reset for every note. */
33
+ let noteUnitsLeft = 0;
34
+ /** Units kept results may still hold, across the whole search. */
35
+ let keptUnitsLeft = 0;
36
+ /**
37
+ * Spend `units` of the current note's budget, which bounds the memory one
38
+ * note's evaluation allocates; the deadline bounds time. The budget is the
39
+ * note's own {@link weight} plus `noteUnits`, so a tree can always build a
40
+ * copy of what the note holds, and it resets for the next note: what one
41
+ * note's evaluation builds is dropped when it ends, unless it is kept, which
42
+ * {@link chargeKept} bounds across the search. Only what a tree builds is
43
+ * charged, at its {@link weight}: `merge` and `cat` before they build, a `map`
44
+ * result, and the elements operators placed in an array literal
45
+ * ({@link literalWeight}). Every other step allocates no more than its
46
+ * operands already hold — comparisons, `var`, `in`, `missing`, `some` / `all`
47
+ * / `none`, arithmetic, `substr`, `glob`, and `regexp` return a primitive, a
48
+ * reference, or a string conversion of a value that was charged, is the
49
+ * note's, or is written in the tree; `filter` returns part of its input, and
50
+ * `if`, `and`, `or`, and `reduce` return a value another step produced — so
51
+ * evaluation steps cost nothing. Charging what is built bounds what a tree
52
+ * can allocate, including by multiplying references to one large string, and
53
+ * so bounds every later string conversion of what it built.
54
+ */
55
+ function charge(units) {
56
+ noteUnitsLeft -= units;
57
+ if (noteUnitsLeft < 0)
58
+ throw new BudgetExhausted('over_note_budget');
59
+ }
60
+ /** Spend `units` of the search's budget for kept results, which outlive their note's evaluation. */
61
+ function chargeKept(units) {
62
+ keptUnitsLeft -= units;
63
+ if (keptUnitsLeft < 0)
64
+ throw new BudgetExhausted('over_kept_budget');
65
+ }
66
+ /** Length of a plain object's string conversion, `[object Object]`. */
67
+ const OBJECT_STRING_CHARS = 15;
68
+ /**
69
+ * Size of a value in work units, counted until it passes `limit`: one per
70
+ * node plus the length of the node's own string conversion — a string's
71
+ * length, `String(value).length` for a number, boolean, `null`, or
72
+ * `undefined`, and {@link OBJECT_STRING_CHARS} plus its keys' lengths for an
73
+ * object. An array converts to its elements joined by commas, which the
74
+ * per-node unit covers, so no value converts to a string longer than its
75
+ * weight. Iterative, because a `reduce` can nest values deeper than the call
76
+ * stack.
77
+ */
78
+ function weight(value, limit) {
79
+ let total = 0;
80
+ const pending = [value];
81
+ while (pending.length > 0 && total <= limit) {
82
+ const next = pending.pop();
83
+ total += 1;
84
+ if (typeof next === 'string')
85
+ total += next.length;
86
+ // Pushed one by one: spreading a long array overruns the argument limit.
87
+ else if (Array.isArray(next))
88
+ for (const item of next)
89
+ pending.push(item);
90
+ else if (next !== null && typeof next === 'object') {
91
+ total += OBJECT_STRING_CHARS;
92
+ for (const [key, field] of Object.entries(next)) {
93
+ total += key.length;
94
+ pending.push(field);
95
+ }
96
+ }
97
+ else
98
+ total += String(next).length;
99
+ }
100
+ return total;
101
+ }
102
+ /**
103
+ * Size of the array an array literal just built, in work units. An element
104
+ * written in the tree — a primitive, or an array literal charged at its own
105
+ * application — adds nothing: its slot and a literal string's length are
106
+ * bounded by the request, and the string is shared rather than copied. An
107
+ * element an operator produced pays its full {@link weight}.
108
+ */
109
+ function literalWeight(logic, built) {
110
+ let total = 0;
111
+ for (let i = 0; i < logic.length && total <= noteUnitsLeft; i++) {
112
+ const element = logic[i];
113
+ if (element !== null && typeof element === 'object' && !Array.isArray(element)) {
114
+ total += weight(built[i], noteUnitsLeft - total);
115
+ }
116
+ }
117
+ return total;
118
+ }
119
+ const baseApply = jsonLogic.apply;
120
+ /**
121
+ * json-logic-js recurses through `jsonLogic.apply`, so this wrapper sees every
122
+ * application. A `map` result is charged its size: mapping over a long array
123
+ * to a constant multiplies references to it without building anything the
124
+ * other charges see.
125
+ */
126
+ jsonLogic.apply = (logic, data) => {
127
+ const result = baseApply(logic, data);
128
+ if (Array.isArray(logic))
129
+ charge(literalWeight(logic, result));
130
+ else if (isMap(logic))
131
+ charge(weight(result, noteUnitsLeft));
132
+ return result;
133
+ };
134
+ /** A `map` application, by json-logic-js's own test: an object with one key. */
135
+ function isMap(logic) {
136
+ return (logic !== null &&
137
+ typeof logic === 'object' &&
138
+ Object.hasOwn(logic, 'map') &&
139
+ Object.keys(logic).length === 1);
140
+ }
141
+ /** The plugin's two operators, as Local REST API 5.x registers them: pattern first, `false` for a non-string operand. */
142
+ jsonLogic.add_operation('glob', (pattern, field) => typeof field === 'string' && typeof pattern === 'string'
143
+ ? globToRegExp(pattern).test(field)
144
+ : false);
145
+ jsonLogic.add_operation('regexp', (pattern, field) => typeof field === 'string' && typeof pattern === 'string'
146
+ ? new RegExp(pattern).test(field)
147
+ : false);
148
+ /** json-logic-js's `log` writes to stdout, which is the JSON-RPC stream under stdio. Same value, no write. */
149
+ jsonLogic.add_operation('log', (value) => value);
150
+ /**
151
+ * json-logic-js's `var`, reading own properties only: inherited properties are
152
+ * out of reach, and own properties still cover every note field, array index,
153
+ * and `length`.
154
+ */
155
+ jsonLogic.add_operation('var', function (key, fallback) {
156
+ const notFound = fallback === undefined ? null : fallback;
157
+ if (key === undefined || key === '' || key === null)
158
+ return this;
159
+ let data = this;
160
+ for (const segment of String(key).split('.')) {
161
+ if (data === null || data === undefined || !Object.hasOwn(Object(data), segment)) {
162
+ return notFound;
163
+ }
164
+ data = data[segment];
165
+ if (data === undefined)
166
+ return notFound;
167
+ }
168
+ return data;
169
+ });
170
+ /** Stock `merge` and `cat`, charged before they build, so an oversized value is never allocated. */
171
+ jsonLogic.add_operation('merge', (...args) => {
172
+ for (const arg of args)
173
+ charge(weight(arg, noteUnitsLeft));
174
+ return args.reduce((all, next) => all.concat(next), []);
175
+ });
176
+ jsonLogic.add_operation('cat', (...args) => {
177
+ for (const arg of args)
178
+ charge(weight(arg, noteUnitsLeft));
179
+ return args.join('');
180
+ });
181
+ /** The plugin's hit test: `null`/`undefined`, `[]`, and `{}` drop a note. */
182
+ function isTruthy(value) {
183
+ if (value === undefined || value === null)
184
+ return false;
185
+ if (Array.isArray(value))
186
+ return value.length > 0;
187
+ if (typeof value === 'object')
188
+ return Object.keys(value).length > 0;
189
+ return Boolean(value);
190
+ }
191
+ /**
192
+ * Serialized characters a kept result may hold with no charge, whatever its
193
+ * note's size, so ordinary results skip the comparison below.
194
+ */
195
+ const FREE_RESULT_CHARS = 1_024;
196
+ /**
197
+ * Evaluate `request.logic` against each note in order, as the plugin's search
198
+ * loop does, each note with a fresh budget for what it builds. A kept result
199
+ * is held until the search answers. One whose JSON is at most
200
+ * {@link FREE_RESULT_CHARS} is free; a larger one pays the search's budget for
201
+ * whatever it holds beyond its own note's serialized size: a result drawn
202
+ * from the note stays free, while one repeating the tree's large constants on
203
+ * every note is bounded across the search.
204
+ */
205
+ function evaluate(request) {
206
+ keptUnitsLeft = request.keptUnits;
207
+ const hits = [];
208
+ for (const note of request.notes) {
209
+ noteUnitsLeft = request.noteUnits + weight(note, Number.POSITIVE_INFINITY);
210
+ try {
211
+ const result = jsonLogic.apply(request.logic, note);
212
+ if (!isTruthy(result))
213
+ continue;
214
+ const json = JSON.stringify(result);
215
+ if (json.length > FREE_RESULT_CHARS) {
216
+ chargeKept(Math.max(0, json.length - JSON.stringify(note).length));
217
+ }
218
+ hits.push({ filename: note.path, json });
219
+ }
220
+ catch (err) {
221
+ if (err instanceof BudgetExhausted) {
222
+ return { ok: false, failure: err.failure, detail: 'work budget exhausted' };
223
+ }
224
+ const detail = err instanceof Error ? err.message : String(err);
225
+ return {
226
+ ok: false,
227
+ failure: /invalid regular expression/i.test(detail) ? 'invalid_regexp' : 'invalid',
228
+ detail,
229
+ };
230
+ }
231
+ }
232
+ return { ok: true, hits, keptUnitsLeft };
233
+ }
234
+ parentPort?.once('message', (request) => {
235
+ parentPort?.postMessage(evaluate(request));
236
+ });
237
+ //# sourceMappingURL=jsonlogic-worker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonlogic-worker.js","sourceRoot":"","sources":["../../../src/services/obsidian/jsonlogic-worker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;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,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACrE,CAAC;YACD,IAAI,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QAC3C,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,GAAG,YAAY,eAAe,EAAE,CAAC;gBACnC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,uBAAuB,EAAE,CAAC;YAC9E,CAAC;YACD,MAAM,MAAM,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YAChE,OAAO;gBACL,EAAE,EAAE,KAAK;gBACT,OAAO,EAAE,6BAA6B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS;gBAClF,MAAM;aACP,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;AAC3C,CAAC;AAED,UAAU,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,OAA0B,EAAE,EAAE;IACzD,UAAU,EAAE,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC"}
@@ -8,7 +8,7 @@ import type { Context } from '@cyanheads/mcp-ts-core';
8
8
  import { type Dispatcher, type RequestInit, fetch as undiciFetch } from 'undici';
9
9
  import { type ServerConfig } from '../../config/server-config.js';
10
10
  import { PathPolicy } from './path-policy.js';
11
- import type { DocumentMap, FileListing, NoteJson, NoteTarget, ObsidianCommand, ObsidianTag, OmnisearchHit, PatchInstruction, StructuredSearchHit, TextSearchHit, VaultStatus } from './types.js';
11
+ import type { DocumentMap, FileListing, NoteJson, NoteTarget, ObsidianCommand, ObsidianTag, OmnisearchHit, PatchInstruction, PathTarget, StructuredSearchHit, TextSearchHit, VaultStatus } from './types.js';
12
12
  type UndiciResponse = Awaited<ReturnType<typeof undiciFetch>>;
13
13
  /**
14
14
  * The HTTP fetch contract this service depends on. Defaults to undici's
@@ -35,7 +35,7 @@ export declare class ObsidianService {
35
35
  * `fetch`, which honors the constructed TLS dispatcher in production.
36
36
  */
37
37
  constructor(config: ServerConfig, fetchImpl?: ObsidianFetch);
38
- /** Path-policy accessor — used by `obsidian_search_notes` to filter hits. */
38
+ /** Path-policy accessor for tools that filter results or check scope themselves. */
39
39
  get policy(): PathPolicy;
40
40
  /** Resolved Omnisearch URL (derived from baseUrl or OBSIDIAN_OMNISEARCH_URL override). */
41
41
  get omnisearchUrl(): string;
@@ -64,11 +64,27 @@ export declare class ObsidianService {
64
64
  getNoteContent(ctx: Context, target: NoteTarget): Promise<string>;
65
65
  getNoteJson(ctx: Context, target: NoteTarget): Promise<NoteJson>;
66
66
  /**
67
- * Resolve `target` to a vault-relative path. For path targets this is a
68
- * no-op; for `active` and `periodic` targets we have to ask upstream which
69
- * concrete file is currently in play.
67
+ * Pin `target` to the note it names right now. A path target comes back as
68
+ * sent; an `active` or `periodic` target is resolved upstream (read-gated)
69
+ * and comes back as a path target for that note, so every later call acts on
70
+ * the same file however the target moves in between.
71
+ */
72
+ resolveTarget(ctx: Context, target: NoteTarget): Promise<PathTarget>;
73
+ /**
74
+ * `target` as a path target for `path`, the note a read of `target` returned.
75
+ * A path target already names its note and comes back as sent. A pinned
76
+ * `active` / `periodic` target carries the target's label as `resolvedFrom`,
77
+ * the identifier `no_active_file` and `periodic_not_found` use, so a
78
+ * `path_forbidden` denial on it names the target rather than the note.
79
+ */
80
+ pinTarget(target: NoteTarget, path: string): PathTarget;
81
+ /**
82
+ * The note's headings, block ids, and frontmatter field names. An `active` /
83
+ * `periodic` target is resolved once (read-gated, a denial named by the
84
+ * target's label) and the map read from the resolved `/vault/` path, which
85
+ * the plugin's `/active/` and `/periodic/…` routes delegate to anyway, so the
86
+ * map describes the note the resolution returned even if the target moves.
70
87
  */
71
- resolvePath(ctx: Context, target: NoteTarget): Promise<string>;
72
88
  getDocumentMap(ctx: Context, target: NoteTarget): Promise<DocumentMap>;
73
89
  writeNote(ctx: Context, target: NoteTarget, content: string, contentType?: 'markdown' | 'json'): Promise<void>;
74
90
  appendToNote(ctx: Context, target: NoteTarget, content: string, contentType?: 'markdown' | 'json'): Promise<void>;
@@ -106,6 +122,13 @@ export declare class ObsidianService {
106
122
  */
107
123
  getSize(ctx: Context, target: NoteTarget): Promise<number>;
108
124
  listFiles(ctx: Context, dirPath?: string): Promise<FileListing>;
125
+ /**
126
+ * Vault tags with usage counts, hierarchical parents included. Unscoped, the
127
+ * plugin's `/tags/` with its occurrence counts. That payload carries no
128
+ * per-note attribution, so under OBSIDIAN_READ_PATHS the tags are read from
129
+ * the readable notes' contexts instead (one upstream search, no bodies), and
130
+ * each one counts the readable notes carrying it or a tag nested under it.
131
+ */
109
132
  listTags(ctx: Context): Promise<ObsidianTag[]>;
110
133
  listCommands(ctx: Context): Promise<ObsidianCommand[]>;
111
134
  /**
@@ -120,7 +143,39 @@ export declare class ObsidianService {
120
143
  * failure.
121
144
  */
122
145
  searchText(ctx: Context, query: string, contextLength?: number): Promise<TextSearchHit[]>;
146
+ /**
147
+ * JSONLogic search. Unscoped, the tree goes to the plugin unchanged. Under
148
+ * OBSIDIAN_READ_PATHS the plugin would evaluate it against every note in
149
+ * the vault, so the tree stays here instead: the readable notes' contexts
150
+ * are fetched and the tree is evaluated over those alone
151
+ * (`createJsonLogicEvaluation`), the way the plugin evaluates it. No hit,
152
+ * result, or error then reads a note outside the read scope; which note a
153
+ * link resolves to is still Obsidian's vault-wide resolution, so `links`,
154
+ * `backlinks`, and `unresolvedLinks` can change when a note outside the
155
+ * scope is created or removed.
156
+ *
157
+ * The plugin hands a tree note bodies only when its JSON holds the string
158
+ * `"content"` (`readsContent`); such a tree gets them here too, fetched
159
+ * and evaluated in batches of at most `CONTENT_BATCH_BYTES` so a broad
160
+ * scope never holds every readable body at once.
161
+ */
123
162
  searchJsonLogic(ctx: Context, logic: Record<string, unknown>): Promise<StructuredSearchHit[]>;
163
+ /**
164
+ * A JSONLogic search for a caller paging through its hits `pageSize` at a
165
+ * time. Unscoped, it is `searchJsonLogic`. Under OBSIDIAN_READ_PATHS a call
166
+ * without `walk` evaluates fresh and, when the hits run past one page,
167
+ * stores the full ordered hit list under a new walk id, returned as `walk`;
168
+ * a call naming that id with the same tree is served from the stored list
169
+ * without evaluating. The store belongs to this service, whose read scope
170
+ * is fixed at construction, so a list is only read under the scope that
171
+ * produced it. Anything else — an expired, evicted, or unknown id, or a
172
+ * different tree — evaluates fresh, and a call cancelled before it answers
173
+ * stores nothing.
174
+ */
175
+ pageJsonLogic(ctx: Context, logic: Record<string, unknown>, walk: string | undefined, pageSize: number): Promise<{
176
+ hits: StructuredSearchHit[];
177
+ walk?: string;
178
+ }>;
124
179
  /**
125
180
  * One-shot startup probe for the Omnisearch plugin's HTTP endpoint. Returns
126
181
  * `true` only when the response is `HTTP 200`, declares `application/json`,
@@ -1 +1 @@
1
- {"version":3,"file":"obsidian-service.d.ts","sourceRoot":"","sources":["../../../src/services/obsidian/obsidian-service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAatD,OAAO,EAAS,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AACxF,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAgB/E,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAS9C,OAAO,KAAK,EAEV,WAAW,EACX,WAAW,EACX,QAAQ,EACR,UAAU,EACV,eAAe,EACf,WAAW,EACX,aAAa,EACb,gBAAgB,EACh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