@llmnative/runner 1.1.1 → 1.1.2

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.
@@ -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-NBwNtvQf.js"></script>
8
+ <script type="module" crossorigin src="./assets/index-BRawUfMd.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.1.1`,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.1.1`;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;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=`1.1.2`,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.1.2`;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.1.1", t = "sherpadvisorylab/llmnative-runner", n = {
2
+ var e = "1.1.2", 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.1.1";
25
+ let t = e.version ?? "1.1.2";
26
26
  return [
27
27
  `curl -fsSLO ${a(t)}`,
28
28
  `curl -fsSL ${o(t)} | sha256sum -c -`,
@@ -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.1.1
5
+ image: ghcr.io/sherpadvisorylab/llmnative-runner:1.1.2
6
6
  restart: unless-stopped
7
7
  environment:
8
- AGENT_IMAGE: ghcr.io/sherpadvisorylab/llmnative-runner-agent:1.1.1
8
+ AGENT_IMAGE: ghcr.io/sherpadvisorylab/llmnative-runner-agent:1.1.2
9
9
  PUBLIC_URL: ${SERVICE_FQDN_RUNNER_8080}
10
10
  MAX_CHATS: ${MAX_CHATS:-6}
11
11
  volumes:
@@ -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.1.1"
14
+ VERSION="1.1.2"
15
15
  DIR="/opt/llmnative-runner"
16
16
  DOMAIN=""
17
17
  MAX_CHATS=""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llmnative/runner",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
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": {