remosidian 0.1.0 → 0.1.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.
- package/dist/remosidian.mjs +16 -4
- package/package.json +1 -1
package/dist/remosidian.mjs
CHANGED
|
@@ -14384,6 +14384,7 @@ __nccwpck_require__.d(__webpack_exports__, {
|
|
|
14384
14384
|
wX: () => (/* binding */ expandVaultSpec),
|
|
14385
14385
|
iW: () => (/* binding */ main),
|
|
14386
14386
|
Zy: () => (/* binding */ parseArgs),
|
|
14387
|
+
Mf: () => (/* binding */ resolveEntrypointHref),
|
|
14387
14388
|
t0: () => (/* binding */ resolveInvocation)
|
|
14388
14389
|
});
|
|
14389
14390
|
|
|
@@ -19580,7 +19581,7 @@ function runFileBackedPluginTurn(input, prompt, options, onDelta) {
|
|
|
19580
19581
|
}
|
|
19581
19582
|
//# sourceMappingURL=chat-plugin-runtime.js.map
|
|
19582
19583
|
;// CONCATENATED MODULE: ../remosidian-server/dist/version.js
|
|
19583
|
-
const VERSION = '0.1.
|
|
19584
|
+
const VERSION = '0.1.1';
|
|
19584
19585
|
//# sourceMappingURL=version.js.map
|
|
19585
19586
|
;// CONCATENATED MODULE: ../remosidian-server/dist/chat-runtime.js
|
|
19586
19587
|
|
|
@@ -28156,6 +28157,15 @@ function resolveInvocation(argv) {
|
|
|
28156
28157
|
return { command, rest, useCurrentDirectoryVault: false };
|
|
28157
28158
|
}
|
|
28158
28159
|
|
|
28160
|
+
function resolveEntrypointHref(path) {
|
|
28161
|
+
if (!path) return '';
|
|
28162
|
+
try {
|
|
28163
|
+
return (0,external_node_url_namespaceObject.pathToFileURL)((0,external_node_fs_namespaceObject.realpathSync)((0,external_node_path_namespaceObject.resolve)(path))).href;
|
|
28164
|
+
} catch {
|
|
28165
|
+
return (0,external_node_url_namespaceObject.pathToFileURL)((0,external_node_path_namespaceObject.resolve)(path)).href;
|
|
28166
|
+
}
|
|
28167
|
+
}
|
|
28168
|
+
|
|
28159
28169
|
function expandVaultSpec(spec) {
|
|
28160
28170
|
const trimmed = spec.trim();
|
|
28161
28171
|
if (!trimmed) return null;
|
|
@@ -28660,8 +28670,9 @@ async function main() {
|
|
|
28660
28670
|
}
|
|
28661
28671
|
}
|
|
28662
28672
|
|
|
28663
|
-
const entryHref =
|
|
28664
|
-
|
|
28673
|
+
const entryHref = resolveEntrypointHref(process.argv[1]);
|
|
28674
|
+
const moduleHref = resolveEntrypointHref((0,external_node_url_namespaceObject.fileURLToPath)(import.meta.url));
|
|
28675
|
+
if (entryHref && moduleHref === entryHref) {
|
|
28665
28676
|
main().catch((error) => {
|
|
28666
28677
|
process.stderr.write(`[${PROG}] ${error?.stack ?? error}\n`);
|
|
28667
28678
|
process.exit(1);
|
|
@@ -28674,5 +28685,6 @@ var __webpack_exports__buildPairUri = __webpack_exports__.lz;
|
|
|
28674
28685
|
var __webpack_exports__expandVaultSpec = __webpack_exports__.wX;
|
|
28675
28686
|
var __webpack_exports__main = __webpack_exports__.iW;
|
|
28676
28687
|
var __webpack_exports__parseArgs = __webpack_exports__.Zy;
|
|
28688
|
+
var __webpack_exports__resolveEntrypointHref = __webpack_exports__.Mf;
|
|
28677
28689
|
var __webpack_exports__resolveInvocation = __webpack_exports__.t0;
|
|
28678
|
-
export { __webpack_exports__buildPairUri as buildPairUri, __webpack_exports__expandVaultSpec as expandVaultSpec, __webpack_exports__main as main, __webpack_exports__parseArgs as parseArgs, __webpack_exports__resolveInvocation as resolveInvocation };
|
|
28690
|
+
export { __webpack_exports__buildPairUri as buildPairUri, __webpack_exports__expandVaultSpec as expandVaultSpec, __webpack_exports__main as main, __webpack_exports__parseArgs as parseArgs, __webpack_exports__resolveEntrypointHref as resolveEntrypointHref, __webpack_exports__resolveInvocation as resolveInvocation };
|