obelisk-mcp 0.1.2 → 0.1.4

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.mjs CHANGED
@@ -7796,7 +7796,7 @@ function readNote(text, source = "<note>") {
7796
7796
  const frame = frameFrom(text);
7797
7797
  const doc = frontmatterOf(text, frame, source);
7798
7798
  const fm = doc?.toJS();
7799
- const data = fm && typeof fm === "object" && !Array.isArray(fm) ? fm : {};
7799
+ const data = isRecord2(fm) ? fm : {};
7800
7800
  return {
7801
7801
  text,
7802
7802
  frame,
@@ -7844,6 +7844,9 @@ function frontmatterOf(text, frame, source) {
7844
7844
  }
7845
7845
  return doc;
7846
7846
  }
7847
+ function isRecord2(value) {
7848
+ return typeof value === "object" && value !== null && !Array.isArray(value);
7849
+ }
7847
7850
  function isEmptyDoc(doc) {
7848
7851
  const value = doc.toJS();
7849
7852
  return value == null || typeof value === "object" && Object.keys(value).length === 0;
package/dist/mcp.mjs CHANGED
@@ -42976,7 +42976,7 @@ var StdioServerTransport = class {
42976
42976
  };
42977
42977
 
42978
42978
  // package.json
42979
- var version2 = "0.1.2";
42979
+ var version2 = "0.1.4";
42980
42980
 
42981
42981
  // src/bin/vault.ts
42982
42982
  import { existsSync, statSync } from "node:fs";
@@ -43430,7 +43430,7 @@ function readNote(text2, source = "<note>") {
43430
43430
  const frame = frameFrom(text2);
43431
43431
  const doc = frontmatterOf(text2, frame, source);
43432
43432
  const fm = doc?.toJS();
43433
- const data = fm && typeof fm === "object" && !Array.isArray(fm) ? fm : {};
43433
+ const data = isRecord2(fm) ? fm : {};
43434
43434
  return {
43435
43435
  text: text2,
43436
43436
  frame,
@@ -43478,6 +43478,9 @@ function frontmatterOf(text2, frame, source) {
43478
43478
  }
43479
43479
  return doc;
43480
43480
  }
43481
+ function isRecord2(value) {
43482
+ return typeof value === "object" && value !== null && !Array.isArray(value);
43483
+ }
43481
43484
  function isEmptyDoc(doc) {
43482
43485
  const value = doc.toJS();
43483
43486
  return value == null || typeof value === "object" && Object.keys(value).length === 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obelisk-mcp",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "The Obelisk CLI and MCP server: comment on a passage of an Obsidian note, and propose suggested edits, from outside the app.",
5
5
  "mcpName": "io.github.zachhannum/obelisk",
6
6
  "bin": {
@@ -27,7 +27,6 @@
27
27
  "@modelcontextprotocol/sdk": "^1.30.0",
28
28
  "@playwright/test": "^1.62.1",
29
29
  "@types/node": "^20.14.0",
30
- "builtin-modules": "^3.3.0",
31
30
  "esbuild": "^0.21.5",
32
31
  "obsidian": "^1.7.2",
33
32
  "obsidian-launcher": "^3.2.0",