note-connector 0.2.0 → 0.2.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.
- package/dist/paths.js +6 -2
- package/package.json +1 -1
package/dist/paths.js
CHANGED
|
@@ -27,6 +27,10 @@ export function resolveNoteConnectorRepo() {
|
|
|
27
27
|
/* ignore */
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
+
const defaultRepo = path.join(configDir(), "repo");
|
|
31
|
+
if (fs.existsSync(path.join(defaultRepo, "src", "note_mcp"))) {
|
|
32
|
+
return defaultRepo;
|
|
33
|
+
}
|
|
30
34
|
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
31
35
|
const fromDevLayout = path.resolve(here, "..", "..");
|
|
32
36
|
if (fs.existsSync(path.join(fromDevLayout, "src", "note_mcp"))) {
|
|
@@ -37,9 +41,9 @@ export function resolveNoteConnectorRepo() {
|
|
|
37
41
|
return fromGlobal;
|
|
38
42
|
}
|
|
39
43
|
throw new Error("note-connector Python 本体が見つかりません。\n"
|
|
40
|
-
+ " git clone https://github.com/drillan/note-mcp.git\n"
|
|
41
44
|
+ " note-connector config set repoPath /path/to/note-connector\n"
|
|
42
|
-
+ "または NOTE_CONNECTOR_REPO=/path/to/note-connector
|
|
45
|
+
+ "または NOTE_CONNECTOR_REPO=/path/to/note-connector を設定してください。\n"
|
|
46
|
+
+ "git clone https://github.com/yuga-hashimoto/note-connector.git");
|
|
43
47
|
}
|
|
44
48
|
/** @deprecated use resolveNoteConnectorRepo */
|
|
45
49
|
export function repoRootFromPackage() {
|