@xberg-io/opencode-liter-llm 2.7.3 → 2.7.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/.opencode/ai-rulez-content.js +1 -1
- package/.opencode/commands/liter-llm-chat.md +1 -1
- package/.opencode/commands/liter-llm-stream.md +1 -1
- package/.opencode/plugins/liter-llm.js +1 -1
- package/.opencode/skills/liter-llm/SKILL.md +2 -5
- package/.opencode/skills/liter-llm/index.md +1 -1
- package/.opencode/skills/liter-llm-calling-llms/SKILL.md +1 -1
- package/.opencode/skills/liter-llm-calling-llms/index.md +1 -1
- package/.opencode/skills/liter-llm-embeddings-and-search/SKILL.md +1 -1
- package/.opencode/skills/liter-llm-embeddings-and-search/index.md +1 -1
- package/.opencode/skills/liter-llm-running-the-proxy/SKILL.md +1 -1
- package/.opencode/skills/liter-llm-running-the-proxy/index.md +1 -1
- package/.opencode/skills/liter-llm-streaming-responses/SKILL.md +1 -1
- package/.opencode/skills/liter-llm-streaming-responses/index.md +1 -1
- package/.opencode/skills/liter-llm-tool-calling/SKILL.md +1 -1
- package/.opencode/skills/liter-llm-tool-calling/index.md +1 -1
- package/.opencode/skills/liter-llm-using-the-mcp-server/SKILL.md +6 -6
- package/.opencode/skills/liter-llm-using-the-mcp-server/index.md +1 -1
- package/.pi/prompts/liter-llm-chat.md +1 -1
- package/.pi/prompts/liter-llm-stream.md +1 -1
- package/.pi/skills/liter-llm/SKILL.md +2 -5
- package/.pi/skills/liter-llm/index.md +1 -1
- package/.pi/skills/liter-llm-calling-llms/SKILL.md +1 -1
- package/.pi/skills/liter-llm-calling-llms/index.md +1 -1
- package/.pi/skills/liter-llm-embeddings-and-search/SKILL.md +1 -1
- package/.pi/skills/liter-llm-embeddings-and-search/index.md +1 -1
- package/.pi/skills/liter-llm-running-the-proxy/SKILL.md +1 -1
- package/.pi/skills/liter-llm-running-the-proxy/index.md +1 -1
- package/.pi/skills/liter-llm-streaming-responses/SKILL.md +1 -1
- package/.pi/skills/liter-llm-streaming-responses/index.md +1 -1
- package/.pi/skills/liter-llm-tool-calling/SKILL.md +1 -1
- package/.pi/skills/liter-llm-tool-calling/index.md +1 -1
- package/.pi/skills/liter-llm-using-the-mcp-server/SKILL.md +6 -6
- package/.pi/skills/liter-llm-using-the-mcp-server/index.md +1 -1
- package/package.json +1 -1
- package/scripts/mcp-launch.sh +30 -42
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
2
2
|
// Content-Hash: blake3:011ec20caa671eb4bd4e886b09e15f720a786de4bf747419efd0690889fc5549
|
|
3
|
-
// Source-Hash: blake3:
|
|
3
|
+
// Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
4
4
|
// Schema-Version: v1
|
|
5
5
|
|
|
6
6
|
// Generated by ai-rulez. Registers the skills, commands, agents, and MCP servers bundled with
|
|
@@ -5,7 +5,7 @@ description: Call an LLM provider using liter-llm
|
|
|
5
5
|
<!--
|
|
6
6
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
7
7
|
Content-Hash: blake3:dc58c1c881db41b233402714bcc5ae0ca87dde33b30ae97d010db865ea6aa26b
|
|
8
|
-
Source-Hash: blake3:
|
|
8
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
9
9
|
Schema-Version: v1
|
|
10
10
|
-->
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ description: Stream responses with liter-llm
|
|
|
5
5
|
<!--
|
|
6
6
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
7
7
|
Content-Hash: blake3:aade12ea079f7659ca4d5976f09836820f645def49f3ded510aed0f4159e38b6
|
|
8
|
-
Source-Hash: blake3:
|
|
8
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
9
9
|
Schema-Version: v1
|
|
10
10
|
-->
|
|
11
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
2
2
|
// Content-Hash: blake3:eac402ec4f52f0113d2ea1d6d4d29f413c019f2486fd223e3825ccbdf5c1efb4
|
|
3
|
-
// Source-Hash: blake3:
|
|
3
|
+
// Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
4
4
|
// Schema-Version: v1
|
|
5
5
|
|
|
6
6
|
import { registerBundledContent } from "../ai-rulez-content.js";
|
|
@@ -10,8 +10,8 @@ name: liter-llm
|
|
|
10
10
|
|
|
11
11
|
<!--
|
|
12
12
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
13
|
-
Content-Hash: blake3:
|
|
14
|
-
Source-Hash: blake3:
|
|
13
|
+
Content-Hash: blake3:406470d4e1c308bf0eddd5972ab0ea635100ac2b74ee7372d7bdb35c559b1302
|
|
14
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
15
15
|
Schema-Version: v1
|
|
16
16
|
-->
|
|
17
17
|
|
|
@@ -62,9 +62,6 @@ building software; the proxy when centralizing access for multiple consumers.
|
|
|
62
62
|
# Homebrew (macOS / Linux)
|
|
63
63
|
brew install xberg-io/tap/liter-llm
|
|
64
64
|
|
|
65
|
-
# or run it without a persistent install (the CLI proxy package self-installs the binary)
|
|
66
|
-
pnpm dlx @xberg-io/liter-llm-cli@2.2.3 --help
|
|
67
|
-
|
|
68
65
|
# or download a prebuilt binary from the latest GitHub release:
|
|
69
66
|
# https://github.com/xberg-io/liter-llm/releases/latest
|
|
70
67
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
3
3
|
Content-Hash: blake3:cfa265de4a3b5acc5ea4c16d5fc951d6b96a424ecaca03ee9182e996254959d1
|
|
4
|
-
Source-Hash: blake3:
|
|
4
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
5
5
|
Schema-Version: v1
|
|
6
6
|
-->
|
|
7
7
|
|
|
@@ -6,7 +6,7 @@ name: liter-llm-calling-llms
|
|
|
6
6
|
<!--
|
|
7
7
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
8
8
|
Content-Hash: blake3:d45c8ad7f731f0e0bc91646e677fd7c89b6af31e38944bff4302e7e242a12906
|
|
9
|
-
Source-Hash: blake3:
|
|
9
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
10
10
|
Schema-Version: v1
|
|
11
11
|
-->
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
3
3
|
Content-Hash: blake3:bb85459cb9b51868d662b8dcb22a113a88db5a09ef6576ee638ba699b4e9913b
|
|
4
|
-
Source-Hash: blake3:
|
|
4
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
5
5
|
Schema-Version: v1
|
|
6
6
|
-->
|
|
7
7
|
|
|
@@ -6,7 +6,7 @@ name: liter-llm-embeddings-and-search
|
|
|
6
6
|
<!--
|
|
7
7
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
8
8
|
Content-Hash: blake3:b5eb4ea6ac25a0cf5bda7f68424924e9760e43055ad34b314f5030588a6c3fc8
|
|
9
|
-
Source-Hash: blake3:
|
|
9
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
10
10
|
Schema-Version: v1
|
|
11
11
|
-->
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
3
3
|
Content-Hash: blake3:7b456ba427b4bdbee863d5767cfce7359641da58165b6c439de2efc305f2c3fb
|
|
4
|
-
Source-Hash: blake3:
|
|
4
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
5
5
|
Schema-Version: v1
|
|
6
6
|
-->
|
|
7
7
|
|
|
@@ -6,7 +6,7 @@ name: liter-llm-running-the-proxy
|
|
|
6
6
|
<!--
|
|
7
7
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
8
8
|
Content-Hash: blake3:b0a0178eae0e6882ae032983d8927142b6db16add6ab9cab391538db2f202eb4
|
|
9
|
-
Source-Hash: blake3:
|
|
9
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
10
10
|
Schema-Version: v1
|
|
11
11
|
-->
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
3
3
|
Content-Hash: blake3:191de299f3399454ca1a250072aba518e2ade38c3f6861d40b00dd379fa7af4c
|
|
4
|
-
Source-Hash: blake3:
|
|
4
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
5
5
|
Schema-Version: v1
|
|
6
6
|
-->
|
|
7
7
|
|
|
@@ -6,7 +6,7 @@ name: liter-llm-streaming-responses
|
|
|
6
6
|
<!--
|
|
7
7
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
8
8
|
Content-Hash: blake3:6de558b3f33f35e9e7ef76dc64d4ebd199a8a831dc28e306698f18fc16933b4e
|
|
9
|
-
Source-Hash: blake3:
|
|
9
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
10
10
|
Schema-Version: v1
|
|
11
11
|
-->
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
3
3
|
Content-Hash: blake3:908d13dc5bbfbb268b082ccc1ed6310d8962479d565386cfbb74d21df21aedfd
|
|
4
|
-
Source-Hash: blake3:
|
|
4
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
5
5
|
Schema-Version: v1
|
|
6
6
|
-->
|
|
7
7
|
|
|
@@ -6,7 +6,7 @@ name: liter-llm-tool-calling
|
|
|
6
6
|
<!--
|
|
7
7
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
8
8
|
Content-Hash: blake3:f26049693a8fa3229f675eefc4097cfa0aeb669a5744967a7ab3614009a80310
|
|
9
|
-
Source-Hash: blake3:
|
|
9
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
10
10
|
Schema-Version: v1
|
|
11
11
|
-->
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
3
3
|
Content-Hash: blake3:f3f65adb24af345cb4958faed80bd7960f1d8ecdd71ec071ae8be4755780eb5f
|
|
4
|
-
Source-Hash: blake3:
|
|
4
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
5
5
|
Schema-Version: v1
|
|
6
6
|
-->
|
|
7
7
|
|
|
@@ -5,8 +5,8 @@ name: liter-llm-using-the-mcp-server
|
|
|
5
5
|
|
|
6
6
|
<!--
|
|
7
7
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
8
|
-
Content-Hash: blake3:
|
|
9
|
-
Source-Hash: blake3:
|
|
8
|
+
Content-Hash: blake3:f69c955a319e6f0b2bf405064e40213166066bb2eb2696e49e0bbef3ce8821e9
|
|
9
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
10
10
|
Schema-Version: v1
|
|
11
11
|
-->
|
|
12
12
|
|
|
@@ -27,10 +27,10 @@ the runtime supports MCP.
|
|
|
27
27
|
|
|
28
28
|
The plugin auto-registers the server. Its command is the bundled launcher
|
|
29
29
|
`scripts/mcp-launch.sh`, which execs `liter-llm mcp --transport stdio`. On first
|
|
30
|
-
run the launcher resolves a `liter-llm` binary: it reuses one
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
`LITER_LLM_LAUNCHER=auto|
|
|
30
|
+
run the launcher resolves a `liter-llm` binary: it reuses one cached in the plugin's
|
|
31
|
+
`bin/` or on `PATH`, provided it is at least the release this plugin ships with, then
|
|
32
|
+
tries Homebrew, then downloads that exact release from GitHub and checks it against
|
|
33
|
+
the release checksums. Override with `LITER_LLM_LAUNCHER=auto|brew|download`.
|
|
34
34
|
|
|
35
35
|
To run it manually:
|
|
36
36
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
3
3
|
Content-Hash: blake3:c20c27b8f65b91b181a6945e7f208f054f069a2fc3066f40c4724893be56a17d
|
|
4
|
-
Source-Hash: blake3:
|
|
4
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
5
5
|
Schema-Version: v1
|
|
6
6
|
-->
|
|
7
7
|
|
|
@@ -5,7 +5,7 @@ description: Call an LLM provider using liter-llm
|
|
|
5
5
|
<!--
|
|
6
6
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
7
7
|
Content-Hash: blake3:dc58c1c881db41b233402714bcc5ae0ca87dde33b30ae97d010db865ea6aa26b
|
|
8
|
-
Source-Hash: blake3:
|
|
8
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
9
9
|
Schema-Version: v1
|
|
10
10
|
-->
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ description: Stream responses with liter-llm
|
|
|
5
5
|
<!--
|
|
6
6
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
7
7
|
Content-Hash: blake3:aade12ea079f7659ca4d5976f09836820f645def49f3ded510aed0f4159e38b6
|
|
8
|
-
Source-Hash: blake3:
|
|
8
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
9
9
|
Schema-Version: v1
|
|
10
10
|
-->
|
|
11
11
|
|
|
@@ -10,8 +10,8 @@ name: liter-llm
|
|
|
10
10
|
|
|
11
11
|
<!--
|
|
12
12
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
13
|
-
Content-Hash: blake3:
|
|
14
|
-
Source-Hash: blake3:
|
|
13
|
+
Content-Hash: blake3:406470d4e1c308bf0eddd5972ab0ea635100ac2b74ee7372d7bdb35c559b1302
|
|
14
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
15
15
|
Schema-Version: v1
|
|
16
16
|
-->
|
|
17
17
|
|
|
@@ -62,9 +62,6 @@ building software; the proxy when centralizing access for multiple consumers.
|
|
|
62
62
|
# Homebrew (macOS / Linux)
|
|
63
63
|
brew install xberg-io/tap/liter-llm
|
|
64
64
|
|
|
65
|
-
# or run it without a persistent install (the CLI proxy package self-installs the binary)
|
|
66
|
-
pnpm dlx @xberg-io/liter-llm-cli@2.2.3 --help
|
|
67
|
-
|
|
68
65
|
# or download a prebuilt binary from the latest GitHub release:
|
|
69
66
|
# https://github.com/xberg-io/liter-llm/releases/latest
|
|
70
67
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
3
3
|
Content-Hash: blake3:cfa265de4a3b5acc5ea4c16d5fc951d6b96a424ecaca03ee9182e996254959d1
|
|
4
|
-
Source-Hash: blake3:
|
|
4
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
5
5
|
Schema-Version: v1
|
|
6
6
|
-->
|
|
7
7
|
|
|
@@ -6,7 +6,7 @@ name: liter-llm-calling-llms
|
|
|
6
6
|
<!--
|
|
7
7
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
8
8
|
Content-Hash: blake3:d45c8ad7f731f0e0bc91646e677fd7c89b6af31e38944bff4302e7e242a12906
|
|
9
|
-
Source-Hash: blake3:
|
|
9
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
10
10
|
Schema-Version: v1
|
|
11
11
|
-->
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
3
3
|
Content-Hash: blake3:bb85459cb9b51868d662b8dcb22a113a88db5a09ef6576ee638ba699b4e9913b
|
|
4
|
-
Source-Hash: blake3:
|
|
4
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
5
5
|
Schema-Version: v1
|
|
6
6
|
-->
|
|
7
7
|
|
|
@@ -6,7 +6,7 @@ name: liter-llm-embeddings-and-search
|
|
|
6
6
|
<!--
|
|
7
7
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
8
8
|
Content-Hash: blake3:b5eb4ea6ac25a0cf5bda7f68424924e9760e43055ad34b314f5030588a6c3fc8
|
|
9
|
-
Source-Hash: blake3:
|
|
9
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
10
10
|
Schema-Version: v1
|
|
11
11
|
-->
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
3
3
|
Content-Hash: blake3:7b456ba427b4bdbee863d5767cfce7359641da58165b6c439de2efc305f2c3fb
|
|
4
|
-
Source-Hash: blake3:
|
|
4
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
5
5
|
Schema-Version: v1
|
|
6
6
|
-->
|
|
7
7
|
|
|
@@ -6,7 +6,7 @@ name: liter-llm-running-the-proxy
|
|
|
6
6
|
<!--
|
|
7
7
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
8
8
|
Content-Hash: blake3:b0a0178eae0e6882ae032983d8927142b6db16add6ab9cab391538db2f202eb4
|
|
9
|
-
Source-Hash: blake3:
|
|
9
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
10
10
|
Schema-Version: v1
|
|
11
11
|
-->
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
3
3
|
Content-Hash: blake3:191de299f3399454ca1a250072aba518e2ade38c3f6861d40b00dd379fa7af4c
|
|
4
|
-
Source-Hash: blake3:
|
|
4
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
5
5
|
Schema-Version: v1
|
|
6
6
|
-->
|
|
7
7
|
|
|
@@ -6,7 +6,7 @@ name: liter-llm-streaming-responses
|
|
|
6
6
|
<!--
|
|
7
7
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
8
8
|
Content-Hash: blake3:6de558b3f33f35e9e7ef76dc64d4ebd199a8a831dc28e306698f18fc16933b4e
|
|
9
|
-
Source-Hash: blake3:
|
|
9
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
10
10
|
Schema-Version: v1
|
|
11
11
|
-->
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
3
3
|
Content-Hash: blake3:908d13dc5bbfbb268b082ccc1ed6310d8962479d565386cfbb74d21df21aedfd
|
|
4
|
-
Source-Hash: blake3:
|
|
4
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
5
5
|
Schema-Version: v1
|
|
6
6
|
-->
|
|
7
7
|
|
|
@@ -6,7 +6,7 @@ name: liter-llm-tool-calling
|
|
|
6
6
|
<!--
|
|
7
7
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
8
8
|
Content-Hash: blake3:f26049693a8fa3229f675eefc4097cfa0aeb669a5744967a7ab3614009a80310
|
|
9
|
-
Source-Hash: blake3:
|
|
9
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
10
10
|
Schema-Version: v1
|
|
11
11
|
-->
|
|
12
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
3
3
|
Content-Hash: blake3:f3f65adb24af345cb4958faed80bd7960f1d8ecdd71ec071ae8be4755780eb5f
|
|
4
|
-
Source-Hash: blake3:
|
|
4
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
5
5
|
Schema-Version: v1
|
|
6
6
|
-->
|
|
7
7
|
|
|
@@ -5,8 +5,8 @@ name: liter-llm-using-the-mcp-server
|
|
|
5
5
|
|
|
6
6
|
<!--
|
|
7
7
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
8
|
-
Content-Hash: blake3:
|
|
9
|
-
Source-Hash: blake3:
|
|
8
|
+
Content-Hash: blake3:f69c955a319e6f0b2bf405064e40213166066bb2eb2696e49e0bbef3ce8821e9
|
|
9
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
10
10
|
Schema-Version: v1
|
|
11
11
|
-->
|
|
12
12
|
|
|
@@ -27,10 +27,10 @@ the runtime supports MCP.
|
|
|
27
27
|
|
|
28
28
|
The plugin auto-registers the server. Its command is the bundled launcher
|
|
29
29
|
`scripts/mcp-launch.sh`, which execs `liter-llm mcp --transport stdio`. On first
|
|
30
|
-
run the launcher resolves a `liter-llm` binary: it reuses one
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
`LITER_LLM_LAUNCHER=auto|
|
|
30
|
+
run the launcher resolves a `liter-llm` binary: it reuses one cached in the plugin's
|
|
31
|
+
`bin/` or on `PATH`, provided it is at least the release this plugin ships with, then
|
|
32
|
+
tries Homebrew, then downloads that exact release from GitHub and checks it against
|
|
33
|
+
the release checksums. Override with `LITER_LLM_LAUNCHER=auto|brew|download`.
|
|
34
34
|
|
|
35
35
|
To run it manually:
|
|
36
36
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
|
|
3
3
|
Content-Hash: blake3:c20c27b8f65b91b181a6945e7f208f054f069a2fc3066f40c4724893be56a17d
|
|
4
|
-
Source-Hash: blake3:
|
|
4
|
+
Source-Hash: blake3:48b8926217e9b90fa0ad9f2d7d0f0c7f30c93f7fba7cb8dcf495969236f7e66f
|
|
5
5
|
Schema-Version: v1
|
|
6
6
|
-->
|
|
7
7
|
|
package/package.json
CHANGED
package/scripts/mcp-launch.sh
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
set -euo pipefail
|
|
3
|
+
# ~keep fetch, fetch_stdout and sha256 are defined per available tool and called below.
|
|
4
|
+
# shellcheck disable=SC2329
|
|
3
5
|
|
|
4
6
|
REPO="xberg-io/liter-llm"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
# ~keep Rewritten by scripts/sync_plugin_version.py on every release. The plugin only accepts a
|
|
8
|
+
# ~keep binary at or above this version, and downloads exactly this release, so a plugin update
|
|
9
|
+
# ~keep cannot keep running an older liter-llm that happens to be installed.
|
|
10
|
+
PINNED_VERSION="2.7.4"
|
|
7
11
|
|
|
8
12
|
log() { printf 'liter-llm-launch: %s\n' "$*" >&2; }
|
|
9
13
|
die() {
|
|
@@ -13,8 +17,8 @@ die() {
|
|
|
13
17
|
|
|
14
18
|
LAUNCHER="${LITER_LLM_LAUNCHER:-auto}"
|
|
15
19
|
case "$LAUNCHER" in
|
|
16
|
-
auto |
|
|
17
|
-
*) die "invalid LITER_LLM_LAUNCHER='$LAUNCHER' (expected auto|
|
|
20
|
+
auto | brew | download) ;;
|
|
21
|
+
*) die "invalid LITER_LLM_LAUNCHER='$LAUNCHER' (expected auto|brew|download)" ;;
|
|
18
22
|
esac
|
|
19
23
|
|
|
20
24
|
want() { [ "$LAUNCHER" = "auto" ] || [ "$LAUNCHER" = "$1" ]; }
|
|
@@ -33,7 +37,21 @@ BIN="$BIN_DIR/$BINARY_NAME"
|
|
|
33
37
|
|
|
34
38
|
have() { command -v "$1" >/dev/null 2>&1; }
|
|
35
39
|
|
|
36
|
-
|
|
40
|
+
# True when $1 runs and reports a version at or above PINNED_VERSION. A prerelease of a version
|
|
41
|
+
# sorts below that version (SemVer), so 2.7.3-rc.1 does not satisfy a 2.7.3 pin. ~keep
|
|
42
|
+
runs_ok() {
|
|
43
|
+
local out found base
|
|
44
|
+
[ -x "$1" ] || return 1
|
|
45
|
+
out="$("$1" --version 2>/dev/null)" || return 1
|
|
46
|
+
found="$(printf '%s\n' "$out" | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?' | head -n 1)"
|
|
47
|
+
[ -n "$found" ] || return 1
|
|
48
|
+
base="${found%%-*}"
|
|
49
|
+
if [ "$(printf '%s\n%s\n' "$PINNED_VERSION" "$base" | sort -V | head -n 1)" != "$PINNED_VERSION" ] ||
|
|
50
|
+
{ [ "$base" = "$PINNED_VERSION" ] && [ "$found" != "$base" ]; }; then
|
|
51
|
+
log "ignoring $1: version $found is older than the pinned $PINNED_VERSION"
|
|
52
|
+
return 1
|
|
53
|
+
fi
|
|
54
|
+
}
|
|
37
55
|
|
|
38
56
|
if runs_ok "$BIN"; then
|
|
39
57
|
log "using cached liter-llm at $BIN"
|
|
@@ -47,28 +65,6 @@ if have "$BINARY_NAME"; then
|
|
|
47
65
|
fi
|
|
48
66
|
fi
|
|
49
67
|
|
|
50
|
-
if want npx && have npx; then
|
|
51
|
-
log "resolving npx $NPM_PKG@latest ..."
|
|
52
|
-
scratch="$(mktemp -d)"
|
|
53
|
-
# Resolve in an empty project, then execute the selected binary in the caller's cwd. ~keep
|
|
54
|
-
if npm_bin="$(cd "$scratch" && npx -y --package "$NPM_PKG@latest" --call "command -v ${BINARY_NAME%.exe}" 2>/dev/null)" && runs_ok "$npm_bin"; then
|
|
55
|
-
rm -rf "$scratch"
|
|
56
|
-
log "launching npm package binary $npm_bin"
|
|
57
|
-
exec "$npm_bin" "$@"
|
|
58
|
-
fi
|
|
59
|
-
rm -rf "$scratch"
|
|
60
|
-
log "npx $NPM_PKG not available (no CLI bin yet); falling through"
|
|
61
|
-
fi
|
|
62
|
-
|
|
63
|
-
if want uvx && have uvx; then
|
|
64
|
-
log "probing uvx --from $PYPI_PKG $BINARY_NAME ..."
|
|
65
|
-
if uvx --from "$PYPI_PKG" "$BINARY_NAME" --version >/dev/null 2>&1; then
|
|
66
|
-
log "launching via uvx --from $PYPI_PKG $BINARY_NAME"
|
|
67
|
-
exec uvx --from "$PYPI_PKG" "$BINARY_NAME" "$@"
|
|
68
|
-
fi
|
|
69
|
-
log "uvx $PYPI_PKG not available (no CLI entry point yet); falling through"
|
|
70
|
-
fi
|
|
71
|
-
|
|
72
68
|
if want brew && have brew; then
|
|
73
69
|
log "installing via 'brew install xberg-io/tap/liter-llm' ..."
|
|
74
70
|
if brew install xberg-io/tap/liter-llm >&2; then
|
|
@@ -82,6 +78,7 @@ if want brew && have brew; then
|
|
|
82
78
|
fi
|
|
83
79
|
fi
|
|
84
80
|
|
|
81
|
+
# shellcheck disable=SC2329 # selected at runtime by the branch below ~keep
|
|
85
82
|
if have curl; then
|
|
86
83
|
fetch() { curl -fsSL --retry 3 -o "$2" "$1"; }
|
|
87
84
|
fetch_stdout() { curl -fsSL --retry 3 "$1"; }
|
|
@@ -137,18 +134,9 @@ try_download() {
|
|
|
137
134
|
;;
|
|
138
135
|
esac
|
|
139
136
|
|
|
140
|
-
local
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
log "download: could not query latest release; falling through"
|
|
144
|
-
return 1
|
|
145
|
-
}
|
|
146
|
-
tag="$(printf '%s' "$api_json" | sed -n 's/.*"tag_name"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -n1)"
|
|
147
|
-
[ -n "$tag" ] || {
|
|
148
|
-
log "download: could not parse tag_name from API; falling through"
|
|
149
|
-
return 1
|
|
150
|
-
}
|
|
151
|
-
version="${tag#v}"
|
|
137
|
+
local tag version
|
|
138
|
+
version="$PINNED_VERSION"
|
|
139
|
+
tag="v${version}"
|
|
152
140
|
|
|
153
141
|
local stem base_url asset asset_url sums_url
|
|
154
142
|
stem="liter-llm-${version}-${target}"
|
|
@@ -162,7 +150,7 @@ try_download() {
|
|
|
162
150
|
# shellcheck disable=SC2064
|
|
163
151
|
trap "rm -rf '$tmp'" RETURN
|
|
164
152
|
|
|
165
|
-
log "downloading $asset from $tag ..."
|
|
153
|
+
log "downloading $asset from release $tag ..."
|
|
166
154
|
if ! fetch "$asset_url" "$tmp/$asset"; then
|
|
167
155
|
log "download: asset not found ($asset_url); falling through"
|
|
168
156
|
return 1
|
|
@@ -222,5 +210,5 @@ fi
|
|
|
222
210
|
die "could not locate or install liter-llm. Install it with one of:
|
|
223
211
|
brew install xberg-io/tap/liter-llm
|
|
224
212
|
cargo install liter-llm-cli
|
|
225
|
-
or download a prebuilt archive from https://github.com/${REPO}/releases/
|
|
226
|
-
then re-run, or set LITER_LLM_LAUNCHER to force a method (auto|
|
|
213
|
+
or download a prebuilt archive from https://github.com/${REPO}/releases/tag/v${PINNED_VERSION}
|
|
214
|
+
then re-run, or set LITER_LLM_LAUNCHER to force a method (auto|brew|download)."
|