@lorekit/cli 1.0.0 → 1.0.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/README.md +19 -2
- package/package.json +1 -1
- package/src/install.mjs +1 -1
package/README.md
CHANGED
|
@@ -9,12 +9,29 @@ CI included. This CLI wires an agent up to it in two commands.
|
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
|
12
|
+
Install it globally — recommended. You get one pinned version, the `lorekit`
|
|
13
|
+
command stays on your `PATH`, and the plugin hooks (which call `lorekit hook`
|
|
14
|
+
on every lifecycle event) fire instantly instead of paying an `npx` resolution
|
|
15
|
+
cost each time:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install -g @lorekit/cli
|
|
19
|
+
lorekit install
|
|
20
|
+
lorekit doctor
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Upgrade later with `npm install -g @lorekit/cli@latest`.
|
|
24
|
+
|
|
25
|
+
Prefer not to install anything? Run it on demand with `npx` — same commands,
|
|
26
|
+
always the latest version, fetched and cached per use:
|
|
27
|
+
|
|
12
28
|
```bash
|
|
13
29
|
npx @lorekit/cli install
|
|
14
30
|
npx @lorekit/cli doctor
|
|
15
31
|
```
|
|
16
32
|
|
|
17
|
-
Requires Node 18+ (for the built-in `fetch`). No dependencies.
|
|
33
|
+
Requires Node 18+ (for the built-in `fetch`). No dependencies. Works on macOS,
|
|
34
|
+
Linux, and Windows (npm creates the `lorekit` shim on every platform).
|
|
18
35
|
|
|
19
36
|
## Commands
|
|
20
37
|
|
|
@@ -26,7 +43,7 @@ any other MCP servers already configured.
|
|
|
26
43
|
|
|
27
44
|
```bash
|
|
28
45
|
lorekit install \
|
|
29
|
-
--endpoint https
|
|
46
|
+
--endpoint https://pqokxlhvnosogizsjztg.supabase.co/functions/v1/mcp \
|
|
30
47
|
--token lk_rw_your_token
|
|
31
48
|
```
|
|
32
49
|
|
package/package.json
CHANGED
package/src/install.mjs
CHANGED
|
@@ -22,7 +22,7 @@ function ask(question) {
|
|
|
22
22
|
return new Promise((resolve) => rl.question(question, (a) => { rl.close(); resolve(a.trim()); }));
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
const DEFAULT_ENDPOINT_HINT = 'https
|
|
25
|
+
const DEFAULT_ENDPOINT_HINT = 'https://pqokxlhvnosogizsjztg.supabase.co/functions/v1/mcp';
|
|
26
26
|
|
|
27
27
|
export async function install(args) {
|
|
28
28
|
const root = resolveProjectRoot(args.dir);
|