@llmnative/runner 1.0.2 → 1.0.3
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/setup-app/assets/{NetworkCanvasImpl-DIYuzg6x-CVEzQpWc.js → NetworkCanvasImpl-DIYuzg6x-B7pXHLvO.js} +1 -1
- package/dist/setup-app/assets/{index-BAksVWhQ.js → index-DMRj6ej7.js} +3 -3
- package/dist/setup-app/assets/{index.es-DFOx5a43.js → index.es-uN19ZvBn.js} +1 -1
- package/dist/setup-app/assets/{lucide-react-DpJIOtaQ.js → lucide-react-29AuFPtd.js} +1 -1
- package/dist/setup-app/index.html +1 -1
- package/dist/steps.js +1 -1
- package/dist/steps.mjs +2 -2
- package/install/coolify.yaml +2 -2
- package/install/install.sh +12 -5
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<meta name="robots" content="noindex" />
|
|
7
7
|
<title>Runner setup</title>
|
|
8
|
-
<script type="module" crossorigin src="./assets/index-
|
|
8
|
+
<script type="module" crossorigin src="./assets/index-DMRj6ej7.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="./assets/rolldown-runtime-XKyaHtl9.js">
|
|
10
10
|
<link rel="stylesheet" crossorigin href="./assets/index-CmPc3Q2I.css">
|
|
11
11
|
</head>
|
package/dist/steps.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=`1.0.
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=`1.0.3`,t=`sherpadvisorylab/llmnative-runner`,n={systems:[`Ubuntu 22.04 or newer`,`Debian 12 or newer`],architectures:[`x86_64`,`arm64`],cpus:2,memoryGb:4,diskGb:20,ports:[22,80,443]},r=/^(?=.{4,253}$)([a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/,i=e=>r.test(e.trim().toLowerCase()),a=(n=e)=>`https://github.com/${t}/releases/download/v${n}/install.sh`,o=(t=e)=>`${a(t)}.sha256`;function s({domain:e,maxChats:t}){return[`--domain`,(e=>`'${e.replace(/'/g,`'\\''`)}'`)(e.trim().toLowerCase()),...t?[`--max-chats`,String(t)]:[]]}function c(e){return`curl -fsSL ${a(e.version)} | sudo sh -s -- ${s(e).join(` `)}`}function l(e){let t=e.version??`1.0.3`;return[`curl -fsSLO ${a(t)}`,`curl -fsSL ${o(t)} | sha256sum -c -`,`sudo sh install.sh ${s(e).join(` `)}`]}var u=[{id:`server`},{id:`dns`,check:`dns`},{id:`access`},{id:`install`},{id:`pair`,check:`health`}];function d(e){let t=t=>RegExp(`^${t}=(.+)$`,`m`).exec(e)?.[1]?.trim(),n=t(`RUNNER_URL`),r=t(`PAIRING_CODE`),i=t(`RUNNER_ERROR`);return{...n?{url:n}:{},...r?{pairingCode:r}:{},...i?{error:i}:{}}}var f=[`check`,`docker`,`files`,`start`,`agent`,`health`,`pair`,`tls`,`done`],p=e=>{let t=/^STEP=([a-z]+)$/.exec(e.trim());return t&&f.includes(t[1])?t[1]:void 0};async function m(e,t={}){let n=t.resolver??`https://cloudflare-dns.com/dns-query`,r=async r=>{let i=await(t.fetch??fetch)(`${n}?name=${encodeURIComponent(e)}&type=${r}`,{headers:{accept:`application/dns-json`}});return i.ok?((await i.json()).Answer??[]).filter(e=>e.type===(r===`A`?1:28)).map(e=>e.data):[]},[i,a]=await Promise.all([r(`A`),r(`AAAA`)]);return[...i,...a]}async function h(e,t=fetch){try{let n=await t(`${e.replace(/\/+$/,``)}/health`);if(!n.ok)return{ok:!1,reason:`not-a-runner`};let r=await n.json();return r.ok&&typeof r.version==`string`?{ok:!0,version:r.version}:{ok:!1,reason:`not-a-runner`}}catch{return{ok:!1,reason:`unreachable`}}}exports.DOMAIN_PATTERN=r,exports.GUIDE_STEPS=u,exports.INSTALL_PHASES=f,exports.RUNNER_REPOSITORY=t,exports.RUNNER_REQUIREMENTS=n,exports.RUNNER_VERSION=e,exports.checkRunner=h,exports.checksumUrl=o,exports.installArguments=s,exports.installCommand=c,exports.installScriptUrl=a,exports.isDomain=i,exports.lookupDomain=m,exports.parseInstallOutput=d,exports.phaseOf=p,exports.verifiedInstallCommands=l;
|
|
2
2
|
//# sourceMappingURL=steps.js.map
|
package/dist/steps.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/setup/steps.ts
|
|
2
|
-
var e = "1.0.
|
|
2
|
+
var e = "1.0.3", t = "sherpadvisorylab/llmnative-runner", n = {
|
|
3
3
|
systems: ["Ubuntu 22.04 or newer", "Debian 12 or newer"],
|
|
4
4
|
architectures: ["x86_64", "arm64"],
|
|
5
5
|
cpus: 2,
|
|
@@ -22,7 +22,7 @@ function c(e) {
|
|
|
22
22
|
return `curl -fsSL ${a(e.version)} | sudo sh -s -- ${s(e).join(" ")}`;
|
|
23
23
|
}
|
|
24
24
|
function l(e) {
|
|
25
|
-
let t = e.version ?? "1.0.
|
|
25
|
+
let t = e.version ?? "1.0.3";
|
|
26
26
|
return [
|
|
27
27
|
`curl -fsSLO ${a(t)}`,
|
|
28
28
|
`curl -fsSL ${o(t)} | sha256sum -c -`,
|
package/install/coolify.yaml
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
# Then, in the terminal of the service: node src/cli.ts pair
|
|
3
3
|
services:
|
|
4
4
|
runner:
|
|
5
|
-
image: ghcr.io/sherpadvisorylab/llmnative-runner:1.0.
|
|
5
|
+
image: ghcr.io/sherpadvisorylab/llmnative-runner:1.0.3
|
|
6
6
|
restart: unless-stopped
|
|
7
7
|
environment:
|
|
8
|
-
AGENT_IMAGE: ghcr.io/sherpadvisorylab/llmnative-runner-agent:1.0.
|
|
8
|
+
AGENT_IMAGE: ghcr.io/sherpadvisorylab/llmnative-runner-agent:1.0.3
|
|
9
9
|
PUBLIC_URL: ${SERVICE_FQDN_RUNNER_8080}
|
|
10
10
|
MAX_CHATS: ${MAX_CHATS:-6}
|
|
11
11
|
volumes:
|
package/install/install.sh
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
# For a machine reading it, some lines are `NAME=value`: STEP=<phase>, RUNNER_URL=, PAIRING_CODE=, RUNNER_ERROR=.
|
|
12
12
|
set -eu
|
|
13
13
|
|
|
14
|
-
VERSION="1.0.
|
|
14
|
+
VERSION="1.0.3"
|
|
15
15
|
DIR="/opt/llmnative-runner"
|
|
16
16
|
DOMAIN=""
|
|
17
17
|
MAX_CHATS=""
|
|
@@ -23,6 +23,10 @@ say() { printf '%s\n' "$*"; }
|
|
|
23
23
|
step() { say "STEP=$1"; say "==> $2"; }
|
|
24
24
|
fail() { say "RUNNER_ERROR=$1"; say "error: $2" >&2; exit 1; }
|
|
25
25
|
|
|
26
|
+
# Run as `curl … | sh`, the script itself is the standard input: everything is in main, called on the last line, so
|
|
27
|
+
# that the whole script is read before anything runs, and no command can read what is left of it.
|
|
28
|
+
main() {
|
|
29
|
+
|
|
26
30
|
while [ $# -gt 0 ]; do
|
|
27
31
|
case "$1" in
|
|
28
32
|
--domain) DOMAIN="${2:-}"; shift 2 ;;
|
|
@@ -164,22 +168,22 @@ if [ -n "$AGENT_CPUS" ]; then set_env AGENT_CPUS "$AGENT_CPUS"; fi
|
|
|
164
168
|
|
|
165
169
|
step start "Starting the runner $VERSION"
|
|
166
170
|
cd "$DIR"
|
|
167
|
-
docker compose pull -q || fail pull "the images of $VERSION could not be downloaded"
|
|
168
|
-
docker compose up -d --remove-orphans >/dev/null || fail start "the runner did not start (docker compose logs runner)"
|
|
171
|
+
docker compose pull -q </dev/null || fail pull "the images of $VERSION could not be downloaded"
|
|
172
|
+
docker compose up -d --remove-orphans </dev/null >/dev/null || fail start "the runner did not start (docker compose logs runner)"
|
|
169
173
|
|
|
170
174
|
step agent "Downloading the image of the harnesses"
|
|
171
175
|
docker pull -q "ghcr.io/sherpadvisorylab/llmnative-runner-agent:$VERSION" >/dev/null || say "warning: the image of the harnesses will be downloaded at the first chat"
|
|
172
176
|
|
|
173
177
|
step health "Waiting for the runner"
|
|
174
178
|
tries=0
|
|
175
|
-
until docker compose exec -T runner curl -fsS http://127.0.0.1:8080/health >/dev/null 2>&1; do
|
|
179
|
+
until docker compose exec -T runner curl -fsS http://127.0.0.1:8080/health </dev/null >/dev/null 2>&1; do
|
|
176
180
|
tries=$((tries + 1))
|
|
177
181
|
[ "$tries" -lt 60 ] || fail health "the runner does not answer (docker compose logs runner)"
|
|
178
182
|
sleep 2
|
|
179
183
|
done
|
|
180
184
|
|
|
181
185
|
step pair "Pairing code"
|
|
182
|
-
PAIRING="$(docker compose exec -T runner node src/cli.ts pair | sed -n 's/^PAIRING_CODE=//p')"
|
|
186
|
+
PAIRING="$(docker compose exec -T runner node src/cli.ts pair </dev/null | sed -n 's/^PAIRING_CODE=//p')"
|
|
183
187
|
[ -n "$PAIRING" ] || fail pair "no pairing code (docker compose logs runner)"
|
|
184
188
|
|
|
185
189
|
step tls "Certificate for https://$DOMAIN"
|
|
@@ -204,3 +208,6 @@ say " Another code: docker compose -f $DIR/compose.yaml exec runner node src/c
|
|
|
204
208
|
say ""
|
|
205
209
|
say "RUNNER_URL=https://$DOMAIN"
|
|
206
210
|
say "PAIRING_CODE=$PAIRING"
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
main "$@" </dev/null
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llmnative/runner",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "LLMNative Runner: Claude Code and opencode on your own VPS, for many tenants, with subscriptions per person. Client, management UI and installer of the runner.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|