@luckylillia-dev/luckylillia 9.0.1 → 9.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/webui/index.html CHANGED
@@ -4,21 +4,22 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>WebUI</title>
7
- <!-- Plugin WebUI modules import these; see pluginSharedShims() in vite.config.ts -->
7
+ <!-- Plugin WebUI modules import these; see pluginSharedShims() in vite.config.ts. Relative: under the instance
8
+ manager's gateway the page is served at /i/<instance>/ -->
8
9
 
9
10
  <script type="importmap">
10
11
  {
11
12
  "imports": {
12
- "react": "/plugin-shared/react.js",
13
- "react/jsx-runtime": "/plugin-shared/react-jsx-runtime.js",
14
- "react-dom": "/plugin-shared/react-dom.js",
15
- "@luckylillia-dev/plugin-sdk/webui": "/plugin-shared/plugin-sdk-webui.js",
16
- "@luckylillia/plugin-sdk/webui": "/plugin-shared/plugin-sdk-webui.js"
13
+ "react": "./plugin-shared/react.js",
14
+ "react/jsx-runtime": "./plugin-shared/react-jsx-runtime.js",
15
+ "react-dom": "./plugin-shared/react-dom.js",
16
+ "@luckylillia-dev/plugin-sdk/webui": "./plugin-shared/plugin-sdk-webui.js",
17
+ "@luckylillia/plugin-sdk/webui": "./plugin-shared/plugin-sdk-webui.js"
17
18
  }
18
19
  }
19
20
  </script>
20
- <script type="module" crossorigin src="/assets/index-CuH0UYYo.js"></script>
21
- <link rel="stylesheet" crossorigin href="/assets/index-DjbPiYmB.css">
21
+ <script type="module" crossorigin src="./assets/index-zYO4ACTl.js"></script>
22
+ <link rel="stylesheet" crossorigin href="./assets/index-_ibiFVAk.css">
22
23
  </head>
23
24
  <body>
24
25
  <div id="root"></div>
@@ -1,3 +1,25 @@
1
+ V9.0.3
2
+ 更新时间 2026-11-29
3
+
4
+ * 插件可以在 package.json 的 llbot.launch 里声明启动参数和环境变量,启动时写入插件配置并启用插件,如 --ntqq-mode / NTQQ_MODE、--onebot-ws-port / ONEBOT_WS_PORT、--milky-port、--satori-port / SATORI_PORT;同时用 --plugin 安装的插件,第一次启动就生效
5
+ * NTQQ 登录相关的参数改由 NTQQ 协议插件提供:--direct、--nativeqq、-q、--protocol、--cdn 换成 --ntqq-mode=native/direct、--ntqq-account、--ntqq-protocol、--ntqq-sign-cdn、--ntqq-qq-path,需要 NTQQ 协议插件 1.0.5
6
+ * 本体不再用 -q 挑选同名实例,请改用 --instance
7
+ * --plugin-config 的字段路径支持按类型选列表项,如 onebot11:connect[type=ws].port=3001
8
+ * WebUI 登录密码改为各实例共用(data/webui_token.txt),升级时自动沿用原来的密码;插件的共享数据目录也改为各实例共用
9
+ * Docker:启动参数原样交给本体,登录方式改用 NTQQ_MODE、NTQQ_ACCOUNT 等环境变量,旧的 PROTOCOL_MODE、AUTO_LOGIN_QQ、PROTOCOL、CDN 仍然有效
10
+ * Docker 安装脚本按所选协议安装 NTQQ 协议、OneBot 11、Milky 插件,配置写进 compose 的环境变量
11
+ * 发布包里的 start.sh 改用 CLI 发布页的版本,去掉使用说明文件
12
+
13
+ =================
14
+ V9.0.2
15
+ 更新时间 2026-11-24
16
+
17
+ * 新增多实例统一管理器(llbot-manager):单端口网关按 `/i/<实例名>/` 路由多个实例,统一登录鉴权与插件包热更新协调
18
+ * WebUI 新增内置「实例管理」页面,支持创建、启停、重启、重命名、删除(含默认实例)以及查看实例实时控制台输出
19
+ * 修复在线更新跨版本升级时遗留旧发布文件导致重启失败的问题
20
+ * 在线更新下载、安装与重启进度改为全站顶部常驻提示栏
21
+
22
+ =================
1
23
  V9.0.1
2
24
  更新时间 2026-11-24
3
25
 
@@ -1 +0,0 @@
1
- {"version":3,"file":"preload-helper-D5R8FHQt.js","names":[],"sources":["../../node_modules/compare-versions/lib/esm/utils.js","../../node_modules/compare-versions/lib/esm/compareVersions.js","../../node_modules/compare-versions/lib/esm/compare.js","../../node_modules/compare-versions/lib/esm/satisfies.js","../../src/main/runtime.ts","../../src/main/restart.ts"],"sourcesContent":["export const semver = /^[v^~<>=]*?(\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+))?(?:-([\\da-z\\-]+(?:\\.[\\da-z\\-]+)*))?(?:\\+[\\da-z\\-]+(?:\\.[\\da-z\\-]+)*)?)?)?$/i;\nexport const validateAndParse = (version) => {\n if (typeof version !== 'string') {\n throw new TypeError('Invalid argument expected string');\n }\n const match = version.match(semver);\n if (!match) {\n throw new Error(`Invalid argument not valid semver ('${version}' received)`);\n }\n match.shift();\n return match;\n};\nconst isWildcard = (s) => s === '*' || s === 'x' || s === 'X';\nconst tryParse = (v) => {\n const n = parseInt(v, 10);\n return isNaN(n) ? v : n;\n};\nconst forceType = (a, b) => typeof a !== typeof b ? [String(a), String(b)] : [a, b];\nconst compareStrings = (a, b) => {\n if (isWildcard(a) || isWildcard(b))\n return 0;\n const [ap, bp] = forceType(tryParse(a), tryParse(b));\n if (ap > bp)\n return 1;\n if (ap < bp)\n return -1;\n return 0;\n};\nexport const compareSegments = (a, b) => {\n for (let i = 0; i < Math.max(a.length, b.length); i++) {\n const r = compareStrings(a[i] || '0', b[i] || '0');\n if (r !== 0)\n return r;\n }\n return 0;\n};\n//# sourceMappingURL=utils.js.map","import { compareSegments, validateAndParse } from './utils.js';\n/**\n * Compare [semver](https://semver.org/) version strings to find greater, equal or lesser.\n * This library supports the full semver specification, including comparing versions with different number of digits like `1.0.0`, `1.0`, `1`, and pre-release versions like `1.0.0-alpha`.\n * @param v1 - First version to compare\n * @param v2 - Second version to compare\n * @returns Numeric value compatible with the [Array.sort(fn) interface](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#Parameters).\n */\nexport const compareVersions = (v1, v2) => {\n // validate input and split into segments\n const n1 = validateAndParse(v1);\n const n2 = validateAndParse(v2);\n // pop off the patch\n const p1 = n1.pop();\n const p2 = n2.pop();\n // validate numbers\n const r = compareSegments(n1, n2);\n if (r !== 0)\n return r;\n // validate pre-release\n if (p1 && p2) {\n return compareSegments(p1.split('.'), p2.split('.'));\n }\n else if (p1 || p2) {\n return p1 ? -1 : 1;\n }\n return 0;\n};\n//# sourceMappingURL=compareVersions.js.map","import { compareVersions } from './compareVersions.js';\n/**\n * Compare [semver](https://semver.org/) version strings using the specified operator.\n *\n * @param v1 First version to compare\n * @param v2 Second version to compare\n * @param operator Allowed arithmetic operator to use\n * @returns `true` if the comparison between the firstVersion and the secondVersion satisfies the operator, `false` otherwise.\n *\n * @example\n * ```\n * compare('10.1.8', '10.0.4', '>'); // return true\n * compare('10.0.1', '10.0.1', '='); // return true\n * compare('10.1.1', '10.2.2', '<'); // return true\n * compare('10.1.1', '10.2.2', '<='); // return true\n * compare('10.1.1', '10.2.2', '>='); // return false\n * ```\n */\nexport const compare = (v1, v2, operator) => {\n // validate input operator\n assertValidOperator(operator);\n // since result of compareVersions can only be -1 or 0 or 1\n // a simple map can be used to replace switch\n const res = compareVersions(v1, v2);\n return operatorResMap[operator].includes(res);\n};\nconst operatorResMap = {\n '>': [1],\n '>=': [0, 1],\n '=': [0],\n '<=': [-1, 0],\n '<': [-1],\n '!=': [-1, 1],\n};\nconst allowedOperators = Object.keys(operatorResMap);\nconst assertValidOperator = (op) => {\n if (typeof op !== 'string') {\n throw new TypeError(`Invalid operator type, expected string but got ${typeof op}`);\n }\n if (allowedOperators.indexOf(op) === -1) {\n throw new Error(`Invalid operator, expected one of ${allowedOperators.join('|')}`);\n }\n};\n//# sourceMappingURL=compare.js.map","import { compare } from './compare.js';\nimport { compareSegments, validateAndParse } from './utils.js';\n/**\n * Match [npm semver](https://docs.npmjs.com/cli/v6/using-npm/semver) version range.\n *\n * @param version Version number to match\n * @param range Range pattern for version\n * @returns `true` if the version number is within the range, `false` otherwise.\n *\n * @example\n * ```\n * satisfies('1.1.0', '^1.0.0'); // return true\n * satisfies('1.1.0', '~1.0.0'); // return false\n * ```\n */\nexport const satisfies = (version, range) => {\n // clean input\n range = range.replace(/([><=]+)\\s+/g, '$1');\n // handle multiple comparators\n if (range.includes('||')) {\n return range.split('||').some((r) => satisfies(version, r));\n }\n else if (range.includes(' - ')) {\n const [a, b] = range.split(' - ', 2);\n return satisfies(version, `>=${a} <=${b}`);\n }\n else if (range.includes(' ')) {\n return range\n .trim()\n .replace(/\\s{2,}/g, ' ')\n .split(' ')\n .every((r) => satisfies(version, r));\n }\n // if no range operator then \"=\"\n const m = range.match(/^([<>=~^]+)/);\n const op = m ? m[1] : '=';\n // if gt/lt/eq then operator compare\n if (op !== '^' && op !== '~')\n return compare(version, range, op);\n // else range of either \"~\" or \"^\" is assumed\n const [v1, v2, v3, , vp] = validateAndParse(version);\n const [r1, r2, r3, , rp] = validateAndParse(range);\n const v = [v1, v2, v3];\n const r = [r1, r2 !== null && r2 !== void 0 ? r2 : 'x', r3 !== null && r3 !== void 0 ? r3 : 'x'];\n // validate pre-release\n if (rp) {\n if (!vp)\n return false;\n if (compareSegments(v, r) !== 0)\n return false;\n if (compareSegments(vp.split('.'), rp.split('.')) === -1)\n return false;\n }\n // first non-zero number\n const nonZero = r.findIndex((v) => v !== '0') + 1;\n // pointer to where segments can be >=\n const i = op === '~' ? 2 : nonZero > 1 ? nonZero : 1;\n // before pointer must be equal\n if (compareSegments(v.slice(0, i), r.slice(0, i)) !== 0)\n return false;\n // after pointer must be >=\n if (compareSegments(v.slice(i), r.slice(i)) === -1)\n return false;\n return true;\n};\n//# sourceMappingURL=satisfies.js.map","/**\n * Where a container keeps a self-installed release, and which release starts. Shared by the supervisor\n * (llbot.js) and the updater, so it imports nothing of the bot.\n *\n * A container's program files belong to its image and are gone when the container is recreated. A release the\n * bot installs itself therefore goes to the data volume, data/llbot-runtime/, and the supervisor of the image\n * starts it instead of the image's own when it is newer. A newer image wins again, and the leftover is removed.\n */\nimport { existsSync, readFileSync, renameSync, rmSync } from 'node:fs'\nimport path from 'node:path'\nimport { compareVersions, satisfies } from 'compare-versions'\n\nexport const RUNTIME_DIR_NAME = 'llbot-runtime'\n/** Where a release that kept crashing at startup is set aside, for a look or a manual rename back */\nexport const FAILED_RUNTIME_DIR_NAME = 'llbot-runtime.failed'\n\n/** What the package.json of an installation may be called: the package releases are published as, or the name before */\nexport const RELEASE_NAMES = ['@luckylillia-dev/luckylillia', 'llonebot-dist']\n\n/** data/ is relative to the working directory, as everywhere in the bot (common/globalVars.ts) */\nexport const runtimeDir = (cwd = process.cwd()) => path.join(cwd, 'data', RUNTIME_DIR_NAME)\nexport const failedRuntimeDir = (cwd = process.cwd()) => path.join(cwd, 'data', FAILED_RUNTIME_DIR_NAME)\n\n/**\n * In a container: Docker's /.dockerenv, Podman's /run/.containerenv, or LLBOT_CONTAINER=1 (Kubernetes and other\n * runtimes leave no marker; the official images set it). LLBOT_CONTAINER=0 says it is not one.\n */\nexport function inContainer(env: NodeJS.ProcessEnv = process.env, exists: (file: string) => boolean = existsSync): boolean {\n if (env.LLBOT_CONTAINER === '1') return true\n if (env.LLBOT_CONTAINER === '0') return false\n return exists('/.dockerenv') || exists('/run/.containerenv')\n}\n\nexport interface Release {\n dir: string\n version: string\n /** Node.js the release needs, from its package.json engines */\n node?: string\n}\n\n/** The release in `dir`, if it is a whole one: a known package with a version, and both entries */\nexport function readRelease(dir: string): Release | undefined {\n try {\n const manifest = JSON.parse(readFileSync(path.join(dir, 'package.json'), 'utf8'))\n if (!RELEASE_NAMES.includes(manifest.name) || typeof manifest.version !== 'string') return\n if (!existsSync(path.join(dir, 'llbot.js')) || !existsSync(path.join(dir, 'llbot-core.js'))) return\n return { dir, version: manifest.version, node: typeof manifest.engines?.node === 'string' ? manifest.engines.node : undefined }\n } catch {\n return undefined\n }\n}\n\nexport function newer(version: string, than: string): boolean {\n try {\n return compareVersions(version, than) > 0\n } catch {\n return false\n }\n}\n\n/** Whether `node` satisfies an engines range such as \">=22.15\"; a range compare-versions cannot read does not block */\nexport function nodeSatisfies(range: string | undefined, node = process.versions.node): boolean {\n if (!range) return true\n try {\n return satisfies(node, range)\n } catch {\n return true\n }\n}\n\nexport interface CoreChoice {\n /** llbot-core.js to start */\n core: string\n /** Set when it is the release in the data volume rather than the program's own */\n runtime?: Release\n /** Why the release in the data volume is not started, for the log */\n note?: string\n}\n\nexport interface ChooseOptions {\n /** Where llbot.js runs from: the image's program directory in a container */\n installDir: string\n cwd?: string\n env?: NodeJS.ProcessEnv\n node?: string\n container?: boolean\n}\n\n/**\n * The core to start now: the data volume's release when this is a container, it is a whole release newer than\n * the program's own and it runs on this Node.js; the program's own otherwise. A release in the volume that is not\n * newer is removed: a newer image superseded it.\n */\nexport function chooseCore(options: ChooseOptions): CoreChoice {\n const own: CoreChoice = { core: path.join(options.installDir, 'llbot-core.js') }\n const env = options.env ?? process.env\n if (!(options.container ?? inContainer(env))) return own\n const dir = runtimeDir(options.cwd)\n if (!existsSync(dir)) return own\n const runtime = readRelease(dir)\n if (!runtime) return { ...own, note: `${dir} 不是完整的发布包,使用镜像自带的版本` }\n const image = readRelease(options.installDir)\n if (image && !newer(runtime.version, image.version)) {\n try {\n rmSync(dir, { recursive: true, force: true })\n return { ...own, note: `镜像自带的 ${image.version} 不比自动更新的 ${runtime.version} 旧,已删除 ${dir}` }\n } catch (error) {\n return { ...own, note: `镜像自带的版本更新,但删除 ${dir} 失败:${(error as Error).message}` }\n }\n }\n if (!nodeSatisfies(runtime.node, options.node)) {\n return { ...own, note: `自动更新的 ${runtime.version} 需要 Node.js ${runtime.node},当前是 ${options.node ?? process.versions.node},使用镜像自带的版本` }\n }\n return { core: path.join(dir, 'llbot-core.js'), runtime }\n}\n\n/** Sets a release that keeps crashing at startup aside, replacing one set aside before */\nexport function setRuntimeAside(cwd = process.cwd()): string {\n const failed = failedRuntimeDir(cwd)\n rmSync(failed, { recursive: true, force: true })\n renameSync(runtimeDir(cwd), failed)\n return failed\n}\n","/**\n * What the supervisor (llbot.js) and the bot it runs (llbot-core.js) agree on. No imports: the supervisor bundle\n * must stay small, and this module is all it shares with the bot.\n */\n\n/** The bot exits with this to be started again, e.g. after its files were updated. EX_TEMPFAIL. */\nexport const RESTART_EXIT_CODE = 75\n\n/** Set in the bot's environment when a supervisor runs it, so it may ask for a restart. */\nexport const SUPERVISED_ENV = 'LLBOT_SUPERVISED'\n\nexport const isSupervised = (env: NodeJS.ProcessEnv = process.env): boolean => env[SUPERVISED_ENV] === '1'\n\n/** The first --parent-pid wins, as --parent-pid=<pid> or --parent-pid <pid>; NaN without a valid one. */\nexport function parentPidOf(argv: readonly string[]): number {\n const index = argv.findIndex(arg => arg === '--parent-pid' || arg.startsWith('--parent-pid='))\n const arg = argv[index]\n const value = arg === '--parent-pid' ? argv[index + 1] : arg?.slice('--parent-pid='.length)\n const pid = value && /^\\d+$/.test(value) ? Number(value) : NaN\n return Number.isSafeInteger(pid) && pid > 0 ? pid : NaN\n}\n\n/** The arguments without any --parent-pid, in either form */\nexport function withoutParentPid(argv: readonly string[]): string[] {\n const result: string[] = []\n for (let i = 0; i < argv.length; i++) {\n if (argv[i] === '--parent-pid') {\n i++\n continue\n }\n if (argv[i].startsWith('--parent-pid=')) continue\n result.push(argv[i])\n }\n return result\n}\n"],"x_google_ignoreList":[0,1,2,3],"mappings":";;;AAAA,IAAa,SAAS;AACtB,IAAa,oBAAoB,YAAY;CACzC,IAAI,OAAO,YAAY,UACnB,MAAM,IAAI,UAAU,kCAAkC;CAE1D,MAAM,QAAQ,QAAQ,MAAM,MAAM;CAClC,IAAI,CAAC,OACD,MAAM,IAAI,MAAM,uCAAuC,QAAQ,YAAY;CAE/E,MAAM,MAAM;CACZ,OAAO;AACX;AACA,IAAM,cAAc,MAAM,MAAM,OAAO,MAAM,OAAO,MAAM;AAC1D,IAAM,YAAY,MAAM;CACpB,MAAM,IAAI,SAAS,GAAG,EAAE;CACxB,OAAO,MAAM,CAAC,IAAI,IAAI;AAC1B;AACA,IAAM,aAAa,GAAG,MAAM,OAAO,MAAM,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,IAAI,CAAC,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