obsidian-launcher 2.0.2 → 2.1.0
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/LICENSE +21 -0
- package/README.md +26 -14
- package/dist/7z.cjs +1 -1
- package/dist/{chunk-QQJCBP4N.cjs → chunk-MNS2C2HB.cjs} +2 -2
- package/dist/chunk-MNS2C2HB.cjs.map +1 -0
- package/dist/{chunk-EVX5ML6K.js → chunk-OUPK2DAJ.js} +206 -181
- package/dist/chunk-OUPK2DAJ.js.map +1 -0
- package/dist/{chunk-2B6JXRBE.cjs → chunk-SG2CJVPK.cjs} +225 -200
- package/dist/chunk-SG2CJVPK.cjs.map +1 -0
- package/dist/cli.cjs +57 -26
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +54 -23
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +37 -29
- package/dist/index.d.ts +37 -29
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +78 -78
- package/dist/chunk-2B6JXRBE.cjs.map +0 -1
- package/dist/chunk-EVX5ML6K.js.map +0 -1
- package/dist/chunk-QQJCBP4N.cjs.map +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Jesse Hines
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -61,14 +61,14 @@ Several commands can take a list of plugins and themes to install. You can speci
|
|
|
61
61
|
- `id:<community-id>`: For plugins, id of a community plugin, e.g. `id:templater-obsidian`
|
|
62
62
|
- `name:<community-name>`: For themes, name of a community theme, e.g. `name:Minimal`
|
|
63
63
|
|
|
64
|
-
You can install a specific version of a plugin with `-p id:myplugin=1.2.3`.
|
|
64
|
+
You can install a specific version of a plugin or theme with `-p id:myplugin=1.2.3`.
|
|
65
65
|
|
|
66
66
|
### launch
|
|
67
67
|
Download and launch Obsidian, opening the specified vault.
|
|
68
68
|
|
|
69
|
-
The Obsidian instance will have a sandboxed configuration directory. You can use this
|
|
69
|
+
The Obsidian instance will have a sandboxed configuration directory. You can use this command to compare plugin behavior on different versions of Obsidian without messing with your system installation of Obsidian.
|
|
70
70
|
|
|
71
|
-
You can pass arguments through to the Obsidian executable using
|
|
71
|
+
You can pass arguments through to the Obsidian executable using `--`:
|
|
72
72
|
```bash
|
|
73
73
|
npx obsidian-launcher launch ./vault -- --remote-debugging-port=9222
|
|
74
74
|
```
|
|
@@ -77,12 +77,12 @@ Arguments:
|
|
|
77
77
|
- `vault`: Vault to open
|
|
78
78
|
|
|
79
79
|
Options:
|
|
80
|
-
- `-c, --cache <cache>`: Directory to use as the download cache (default: OBSIDIAN_CACHE env var or ".obsidian-cache")
|
|
81
80
|
- `-v, --version <version>`: Obsidian app version to run (default: "latest")
|
|
82
|
-
- `-i, --installer <version>`: Obsidian installer version to run (default: "
|
|
81
|
+
- `-i, --installer <version>`: Obsidian installer version to run (default: "earliest")
|
|
83
82
|
- `-p, --plugin <plugin>`: Plugin(s) to install
|
|
84
83
|
- `-t, --theme <plugin>`: Theme(s) to install
|
|
85
84
|
- `--copy`: Copy the vault first
|
|
85
|
+
- `-c, --cache <cache>`: Directory to use as the download cache (default: OBSIDIAN_CACHE env var or ".obsidian-cache")
|
|
86
86
|
|
|
87
87
|
### watch
|
|
88
88
|
Downloads Obsidian and opens a vault, then watches for changes to plugins and themes.
|
|
@@ -93,20 +93,12 @@ Arguments:
|
|
|
93
93
|
- `vault`: Vault to open
|
|
94
94
|
|
|
95
95
|
Options:
|
|
96
|
-
- `-c, --cache <cache>`: Directory to use as the download cache (default: OBSIDIAN_CACHE env var or ".obsidian-cache")
|
|
97
96
|
- `-v, --version <version>`: Obsidian app version to run (default: "latest")
|
|
98
97
|
- `-i, --installer <version>`: Obsidian installer version to run (default: "latest")
|
|
99
98
|
- `-p, --plugin <plugin>`: Plugin(s) to install
|
|
100
99
|
- `-t, --theme <plugin>`: Theme to install
|
|
101
100
|
- `--copy`: Copy the vault first
|
|
102
|
-
|
|
103
|
-
### download
|
|
104
|
-
Download Obsidian to the cache without launching.
|
|
105
|
-
|
|
106
|
-
Options:
|
|
107
101
|
- `-c, --cache <cache>`: Directory to use as the download cache (default: OBSIDIAN_CACHE env var or ".obsidian-cache")
|
|
108
|
-
- `-v, --version <version>`: Obsidian app version to download (default: "latest")
|
|
109
|
-
- `-i, --installer <version>`: Obsidian installer version to download (default: "latest")
|
|
110
102
|
|
|
111
103
|
### install
|
|
112
104
|
Install plugins and themes into an Obsidian vault.
|
|
@@ -115,6 +107,26 @@ Arguments:
|
|
|
115
107
|
- `vault`: Vault to install into
|
|
116
108
|
|
|
117
109
|
Options:
|
|
118
|
-
- `-c, --cache <cache>`: Directory to use as the download cache (default: OBSIDIAN_CACHE env var or ".obsidian-cache")
|
|
119
110
|
- `-p, --plugin <plugin>`: Plugin(s) to install
|
|
120
111
|
- `-t, --theme <plugin>`: Theme(s) to install.
|
|
112
|
+
- `-c, --cache <cache>`: Directory to use as the download cache (default: OBSIDIAN_CACHE env var or ".obsidian-cache")
|
|
113
|
+
|
|
114
|
+
### download
|
|
115
|
+
Download Obsidian to the cache.
|
|
116
|
+
|
|
117
|
+
Pre-download Obsidian to the cache. Pass asset to select what variant to download, which can be one of:
|
|
118
|
+
- app: Download the desktop app JS bundle
|
|
119
|
+
- installer: Download the desktop installer
|
|
120
|
+
- desktop: Download both the desktop app bundle and installer (the default)
|
|
121
|
+
- apk: Download the mobile app APK file
|
|
122
|
+
|
|
123
|
+
Arguments:
|
|
124
|
+
- `asset`: Obsidian asset to download (default: "desktop")
|
|
125
|
+
|
|
126
|
+
Options:
|
|
127
|
+
- `-v, --version <version>`: Obsidian version (default: "latest")
|
|
128
|
+
- `-i, --installer <version>`: Obsidian installer version (default: "earliest")
|
|
129
|
+
- `--platform <platform>`: Platform of the installer, one of linux, win32, darwin. (default: system platform)
|
|
130
|
+
- `--arch <arch>`: Architecture of the installer, one of arm64, ia32, x64. (default: system arch)
|
|
131
|
+
- `-c, --cache <cache>`: Directory to use as the download cache (default: OBSIDIAN_CACHE env var or ".obsidian-cache")
|
|
132
|
+
|
package/dist/7z.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('./chunk-
|
|
1
|
+
"use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('./chunk-MNS2C2HB.cjs');
|
|
2
2
|
|
|
3
3
|
// src/7z.js
|
|
4
4
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// ../../node_modules/tsup/assets/cjs_shims.js
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// ../../node_modules/.pnpm/tsup@8.5.0_tsx@4.20.3_typescript@5.9.2_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js
|
|
2
2
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
3
3
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
exports.importMetaUrl = importMetaUrl;
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-MNS2C2HB.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/wdio-obsidian-service/wdio-obsidian-service/packages/obsidian-launcher/dist/chunk-MNS2C2HB.cjs","../../../node_modules/.pnpm/tsup@8.5.0_tsx@4.20.3_typescript@5.9.2_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js"],"names":[],"mappings":"AAAA;ACKA,IAAM,iBAAA,EAAmB,CAAA,EAAA,GACvB,OAAO,SAAA,IAAa,YAAA,EAChB,IAAI,GAAA,CAAI,CAAA,KAAA,EAAQ,UAAU,CAAA,CAAA;AAI8B;ADR4B;AACA;AACA;AACA","file":"/home/runner/work/wdio-obsidian-service/wdio-obsidian-service/packages/obsidian-launcher/dist/chunk-MNS2C2HB.cjs","sourcesContent":[null,"// Shim globals in cjs bundle\n// There's a weird bug that esbuild will always inject importMetaUrl\n// if we export it as `const importMetaUrl = ... __filename ...`\n// But using a function will not cause this issue\n\nconst getImportMetaUrl = () =>\n typeof document === 'undefined'\n ? new URL(`file:${__filename}`).href\n : (document.currentScript && document.currentScript.src) ||\n new URL('main.js', document.baseURI).href\n\nexport const importMetaUrl = /* @__PURE__ */ getImportMetaUrl()\n"]}
|