jishushell 0.6.18 → 0.7.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.
Files changed (343) hide show
  1. package/apps/anythingllm-container.yaml +1 -0
  2. package/apps/browserless-chromium-container.yaml +1 -0
  3. package/apps/filebrowser-container.yaml +1 -0
  4. package/apps/hermes-container.yaml +1 -7
  5. package/apps/immich-container-lite.yaml +337 -0
  6. package/apps/immich-container.yaml +371 -0
  7. package/apps/jishu-kb-container.yaml +26 -21
  8. package/apps/ollama-binary.yaml +1 -0
  9. package/apps/ollama-cpu-container.yaml +1 -0
  10. package/apps/ollama-with-hollama-binary.yaml +2 -0
  11. package/apps/openclaw-binary.yaml +4 -8
  12. package/apps/openclaw-container.yaml +1 -7
  13. package/apps/openclaw-with-ollama-container.yaml +1 -0
  14. package/apps/openclaw-with-searxng-container.yaml +20 -0
  15. package/apps/searxng-container.yaml +20 -0
  16. package/apps/weknora-container.yaml +5 -0
  17. package/dependencies/jishushell-panel-0.7.3.tgz +0 -0
  18. package/dist/cli/core.js +1 -1
  19. package/dist/cli/core.js.map +1 -1
  20. package/dist/cli/doctor.js +96 -0
  21. package/dist/cli/doctor.js.map +1 -1
  22. package/dist/config.d.ts +9 -1
  23. package/dist/config.js +72 -2
  24. package/dist/config.js.map +1 -1
  25. package/dist/install.js +60 -19
  26. package/dist/install.js.map +1 -1
  27. package/dist/routes/admin.d.ts +2 -0
  28. package/dist/routes/admin.js +72 -0
  29. package/dist/routes/admin.js.map +1 -0
  30. package/dist/routes/docker.d.ts +2 -0
  31. package/dist/routes/docker.js +58 -0
  32. package/dist/routes/docker.js.map +1 -0
  33. package/dist/routes/file-mounts.js +5 -8
  34. package/dist/routes/file-mounts.js.map +1 -1
  35. package/dist/routes/instances.d.ts +0 -14
  36. package/dist/routes/instances.js +44 -1184
  37. package/dist/routes/instances.js.map +1 -1
  38. package/dist/server.d.ts +6 -0
  39. package/dist/server.js +53 -20
  40. package/dist/server.js.map +1 -1
  41. package/dist/services/app-common/catalog-service.js +15 -5
  42. package/dist/services/app-common/catalog-service.js.map +1 -1
  43. package/dist/services/app-common/delete-service.js +5 -0
  44. package/dist/services/app-common/delete-service.js.map +1 -1
  45. package/dist/services/app-common/instance-store.js +3 -0
  46. package/dist/services/app-common/instance-store.js.map +1 -1
  47. package/dist/services/app-common/lifecycle-service.js +12 -4
  48. package/dist/services/app-common/lifecycle-service.js.map +1 -1
  49. package/dist/services/app-common/ownership.d.ts +3 -0
  50. package/dist/services/app-common/ownership.js +11 -0
  51. package/dist/services/app-common/ownership.js.map +1 -0
  52. package/dist/services/app-common/runtime-facts.js +2 -0
  53. package/dist/services/app-common/runtime-facts.js.map +1 -1
  54. package/dist/services/app-common/spec-materializer.d.ts +0 -1
  55. package/dist/services/app-common/spec-materializer.js +21 -87
  56. package/dist/services/app-common/spec-materializer.js.map +1 -1
  57. package/dist/services/app-common/status-refresh.js +25 -13
  58. package/dist/services/app-common/status-refresh.js.map +1 -1
  59. package/dist/services/app-modules/browserless/routes.js +5 -3
  60. package/dist/services/app-modules/browserless/routes.js.map +1 -1
  61. package/dist/services/capabilities/contract.d.ts +1 -2
  62. package/dist/services/capabilities/contract.js +0 -10
  63. package/dist/services/capabilities/contract.js.map +1 -1
  64. package/dist/services/capabilities/endpoint-validator.js +0 -1
  65. package/dist/services/capabilities/endpoint-validator.js.map +1 -1
  66. package/dist/services/capabilities/health.js +1 -1
  67. package/dist/services/capabilities/health.js.map +1 -1
  68. package/dist/services/capability-proxy/http.d.ts +7 -0
  69. package/dist/services/capability-proxy/http.js +555 -0
  70. package/dist/services/capability-proxy/http.js.map +1 -0
  71. package/dist/services/capability-proxy/terminal.d.ts +4 -0
  72. package/dist/services/capability-proxy/terminal.js +179 -0
  73. package/dist/services/capability-proxy/terminal.js.map +1 -0
  74. package/dist/services/connections/admin.js +19 -9
  75. package/dist/services/connections/admin.js.map +1 -1
  76. package/dist/services/connections/apply.d.ts +3 -9
  77. package/dist/services/connections/apply.js +0 -29
  78. package/dist/services/connections/apply.js.map +1 -1
  79. package/dist/services/connections/transactor.js +2 -2
  80. package/dist/services/connections/transactor.js.map +1 -1
  81. package/dist/services/files/bootstrap.d.ts +7 -0
  82. package/dist/services/files/bootstrap.js +16 -0
  83. package/dist/services/files/bootstrap.js.map +1 -0
  84. package/dist/services/files/photos/upload-page.d.ts +2 -0
  85. package/dist/services/files/photos/upload-page.js +248 -0
  86. package/dist/services/files/photos/upload-page.js.map +1 -0
  87. package/dist/services/files/photos/upload-store.d.ts +74 -0
  88. package/dist/services/files/photos/upload-store.js +432 -0
  89. package/dist/services/files/photos/upload-store.js.map +1 -0
  90. package/dist/services/http/proxy-utils.d.ts +7 -0
  91. package/dist/services/http/proxy-utils.js +29 -0
  92. package/dist/services/http/proxy-utils.js.map +1 -0
  93. package/dist/services/http/request-utils.d.ts +3 -0
  94. package/dist/services/http/request-utils.js +23 -0
  95. package/dist/services/http/request-utils.js.map +1 -0
  96. package/dist/services/instances/manager.d.ts +6 -5
  97. package/dist/services/instances/manager.js +45 -51
  98. package/dist/services/instances/manager.js.map +1 -1
  99. package/dist/services/instances/pairing.d.ts +17 -0
  100. package/dist/services/instances/pairing.js +53 -0
  101. package/dist/services/instances/pairing.js.map +1 -0
  102. package/dist/services/instances/status.d.ts +2 -0
  103. package/dist/services/instances/status.js +11 -0
  104. package/dist/services/instances/status.js.map +1 -0
  105. package/dist/services/integrations/hermes/integration.d.ts +1 -1
  106. package/dist/services/integrations/hermes/integration.js +7 -8
  107. package/dist/services/integrations/hermes/integration.js.map +1 -1
  108. package/dist/services/integrations/immich/client.d.ts +93 -0
  109. package/dist/services/integrations/immich/client.js +458 -0
  110. package/dist/services/integrations/immich/client.js.map +1 -0
  111. package/dist/services/integrations/immich/config.d.ts +15 -0
  112. package/dist/services/integrations/immich/config.js +178 -0
  113. package/dist/services/integrations/immich/config.js.map +1 -0
  114. package/dist/services/integrations/immich/discovery.d.ts +9 -0
  115. package/dist/services/integrations/immich/discovery.js +101 -0
  116. package/dist/services/integrations/immich/discovery.js.map +1 -0
  117. package/dist/services/integrations/immich/gallery-renderer.d.ts +5 -0
  118. package/dist/services/integrations/immich/gallery-renderer.js +150 -0
  119. package/dist/services/integrations/immich/gallery-renderer.js.map +1 -0
  120. package/dist/services/integrations/immich/immich-shim.d.ts +11 -0
  121. package/dist/services/integrations/immich/immich-shim.js +439 -0
  122. package/dist/services/integrations/immich/immich-shim.js.map +1 -0
  123. package/dist/services/integrations/immich/integration.d.ts +18 -0
  124. package/dist/services/integrations/immich/integration.js +64 -0
  125. package/dist/services/integrations/immich/integration.js.map +1 -0
  126. package/dist/services/integrations/immich/photo-library.d.ts +4 -0
  127. package/dist/services/integrations/immich/photo-library.js +63 -0
  128. package/dist/services/integrations/immich/photo-library.js.map +1 -0
  129. package/dist/services/integrations/immich/review-executor.d.ts +3 -0
  130. package/dist/services/integrations/immich/review-executor.js +41 -0
  131. package/dist/services/integrations/immich/review-executor.js.map +1 -0
  132. package/dist/services/integrations/immich/review-session-service.d.ts +27 -0
  133. package/dist/services/integrations/immich/review-session-service.js +206 -0
  134. package/dist/services/integrations/immich/review-session-service.js.map +1 -0
  135. package/dist/services/integrations/immich/review-store.d.ts +47 -0
  136. package/dist/services/integrations/immich/review-store.js +347 -0
  137. package/dist/services/integrations/immich/review-store.js.map +1 -0
  138. package/dist/services/integrations/immich/routes.d.ts +7 -0
  139. package/dist/services/integrations/immich/routes.js +363 -0
  140. package/dist/services/integrations/immich/routes.js.map +1 -0
  141. package/dist/services/integrations/immich/types.d.ts +186 -0
  142. package/dist/services/integrations/immich/types.js +2 -0
  143. package/dist/services/integrations/immich/types.js.map +1 -0
  144. package/dist/services/integrations/index.d.ts +1 -0
  145. package/dist/services/integrations/index.js +1 -0
  146. package/dist/services/integrations/index.js.map +1 -1
  147. package/dist/services/integrations/installable/installers/integration.js +113 -7
  148. package/dist/services/integrations/installable/installers/integration.js.map +1 -1
  149. package/dist/services/integrations/jishukb/integration.d.ts +3 -1
  150. package/dist/services/integrations/jishukb/integration.js +121 -10
  151. package/dist/services/integrations/jishukb/integration.js.map +1 -1
  152. package/dist/services/integrations/openclaw/integration.d.ts +21 -7
  153. package/dist/services/integrations/openclaw/integration.js +385 -158
  154. package/dist/services/integrations/openclaw/integration.js.map +1 -1
  155. package/dist/services/integrations/openclaw/jishukb-native-mcp.d.ts +58 -0
  156. package/dist/services/integrations/openclaw/jishukb-native-mcp.js +373 -0
  157. package/dist/services/integrations/openclaw/jishukb-native-mcp.js.map +1 -0
  158. package/dist/services/integrations/openclaw/jishukb-shim.d.ts +8 -4
  159. package/dist/services/integrations/openclaw/jishukb-shim.js +624 -17
  160. package/dist/services/integrations/openclaw/jishukb-shim.js.map +1 -1
  161. package/dist/services/integrations/openclaw/mcporter.d.ts +13 -0
  162. package/dist/services/integrations/openclaw/mcporter.js +31 -0
  163. package/dist/services/integrations/openclaw/mcporter.js.map +1 -1
  164. package/dist/services/integrations/openclaw/native-mcp.d.ts +48 -0
  165. package/dist/services/integrations/openclaw/native-mcp.js +125 -0
  166. package/dist/services/integrations/openclaw/native-mcp.js.map +1 -0
  167. package/dist/services/integrations/openclaw/routes.js +4 -1
  168. package/dist/services/integrations/openclaw/routes.js.map +1 -1
  169. package/dist/services/integrations/types.d.ts +5 -17
  170. package/dist/services/repair/runtime-repair.js +68 -1
  171. package/dist/services/repair/runtime-repair.js.map +1 -1
  172. package/dist/services/runtime/docker-network.d.ts +8 -0
  173. package/dist/services/runtime/docker-network.js +123 -0
  174. package/dist/services/runtime/docker-network.js.map +1 -0
  175. package/dist/services/runtime/driver-registry.d.ts +4 -0
  176. package/dist/services/runtime/driver-registry.js.map +1 -1
  177. package/dist/services/runtime/drivers/nomad.d.ts +1 -0
  178. package/dist/services/runtime/drivers/nomad.js +35 -5
  179. package/dist/services/runtime/drivers/nomad.js.map +1 -1
  180. package/dist/services/runtime/service-manager.d.ts +2 -0
  181. package/dist/services/runtime/service-manager.js +18 -0
  182. package/dist/services/runtime/service-manager.js.map +1 -0
  183. package/dist/services/runtime/types.d.ts +1 -0
  184. package/dist/services/runtime/workload-compiler.js +29 -4
  185. package/dist/services/runtime/workload-compiler.js.map +1 -1
  186. package/dist/services/setup/setup-manager.js +29 -73
  187. package/dist/services/setup/setup-manager.js.map +1 -1
  188. package/dist/services/system/runtime-ownership.d.ts +36 -0
  189. package/dist/services/system/runtime-ownership.js +250 -0
  190. package/dist/services/system/runtime-ownership.js.map +1 -0
  191. package/dist/services/system/system-reconciler.js +53 -0
  192. package/dist/services/system/system-reconciler.js.map +1 -1
  193. package/dist/types.d.ts +19 -3
  194. package/dist/utils/path-safety.js +1 -1
  195. package/dist/utils/service-user.d.ts +13 -0
  196. package/dist/utils/service-user.js +129 -0
  197. package/dist/utils/service-user.js.map +1 -0
  198. package/install/jishu-install.sh +0 -1
  199. package/node_modules/brace-expansion/dist/commonjs/index.js +24 -14
  200. package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -1
  201. package/node_modules/brace-expansion/dist/esm/index.js +24 -14
  202. package/node_modules/brace-expansion/dist/esm/index.js.map +1 -1
  203. package/node_modules/brace-expansion/package.json +2 -2
  204. package/node_modules/fast-uri/index.js +1 -1
  205. package/node_modules/fast-uri/package.json +1 -1
  206. package/node_modules/fast-uri/test/security.test.js +28 -0
  207. package/node_modules/fastify/SECURITY.md +1 -1
  208. package/node_modules/fastify/SPONSORS.md +6 -4
  209. package/node_modules/fastify/docs/Guides/Database.md +0 -28
  210. package/node_modules/fastify/docs/Guides/Ecosystem.md +13 -2
  211. package/node_modules/fastify/docs/Guides/Serverless.md +2 -2
  212. package/node_modules/fastify/docs/Guides/Write-Plugin.md +1 -1
  213. package/node_modules/fastify/docs/Reference/Encapsulation.md +27 -26
  214. package/node_modules/fastify/docs/Reference/Errors.md +10 -4
  215. package/node_modules/fastify/docs/Reference/HTTP2.md +10 -10
  216. package/node_modules/fastify/docs/Reference/Hooks.md +4 -4
  217. package/node_modules/fastify/docs/Reference/Index.md +14 -16
  218. package/node_modules/fastify/docs/Reference/LTS.md +12 -13
  219. package/node_modules/fastify/docs/Reference/Lifecycle.md +9 -8
  220. package/node_modules/fastify/docs/Reference/Logging.md +44 -39
  221. package/node_modules/fastify/docs/Reference/Middleware.md +21 -25
  222. package/node_modules/fastify/docs/Reference/Principles.md +2 -2
  223. package/node_modules/fastify/docs/Reference/Reply.md +6 -1
  224. package/node_modules/fastify/docs/Reference/Request.md +27 -16
  225. package/node_modules/fastify/docs/Reference/Routes.md +5 -2
  226. package/node_modules/fastify/docs/Reference/Server.md +31 -3
  227. package/node_modules/fastify/docs/Reference/Type-Providers.md +29 -5
  228. package/node_modules/fastify/docs/Reference/Validation-and-Serialization.md +15 -2
  229. package/node_modules/fastify/docs/Reference/Warnings.md +7 -6
  230. package/node_modules/fastify/eslint.config.js +7 -2
  231. package/node_modules/fastify/fastify.d.ts +8 -3
  232. package/node_modules/fastify/fastify.js +43 -14
  233. package/node_modules/fastify/lib/content-type-parser.js +13 -1
  234. package/node_modules/fastify/lib/decorate.js +11 -3
  235. package/node_modules/fastify/lib/error-handler.js +4 -3
  236. package/node_modules/fastify/lib/error-serializer.js +59 -59
  237. package/node_modules/fastify/lib/errors.js +16 -1
  238. package/node_modules/fastify/lib/four-oh-four.js +14 -9
  239. package/node_modules/fastify/lib/handle-request.js +11 -5
  240. package/node_modules/fastify/lib/plugin-override.js +2 -1
  241. package/node_modules/fastify/lib/plugin-utils.js +5 -5
  242. package/node_modules/fastify/lib/reply.js +63 -8
  243. package/node_modules/fastify/lib/request.js +14 -4
  244. package/node_modules/fastify/lib/route.js +20 -6
  245. package/node_modules/fastify/lib/schema-controller.js +1 -1
  246. package/node_modules/fastify/lib/schemas.js +37 -30
  247. package/node_modules/fastify/lib/symbols.js +3 -1
  248. package/node_modules/fastify/lib/validation.js +1 -13
  249. package/node_modules/fastify/lib/warnings.js +3 -3
  250. package/node_modules/fastify/package.json +13 -15
  251. package/node_modules/fastify/scripts/validate-ecosystem-links.js +1 -0
  252. package/node_modules/fastify/test/bundler/esbuild/package.json +1 -1
  253. package/node_modules/fastify/test/close-pipelining.test.js +1 -2
  254. package/node_modules/fastify/test/custom-http-server.test.js +38 -0
  255. package/node_modules/fastify/test/decorator-instance-properties.test.js +63 -0
  256. package/node_modules/fastify/test/diagnostics-channel/async-error-handler.test.js +74 -0
  257. package/node_modules/fastify/test/hooks.test.js +23 -0
  258. package/node_modules/fastify/test/http-methods/get.test.js +1 -1
  259. package/node_modules/fastify/test/http2/plain.test.js +135 -0
  260. package/node_modules/fastify/test/http2/secure-with-fallback.test.js +1 -1
  261. package/node_modules/fastify/test/https/https.test.js +1 -2
  262. package/node_modules/fastify/test/internals/errors.test.js +31 -1
  263. package/node_modules/fastify/test/internals/plugin.test.js +3 -1
  264. package/node_modules/fastify/test/internals/request.test.js +27 -3
  265. package/node_modules/fastify/test/internals/schema-controller-perf.test.js +33 -0
  266. package/node_modules/fastify/test/logger/logging.test.js +18 -1
  267. package/node_modules/fastify/test/logger/options.test.js +38 -1
  268. package/node_modules/fastify/test/reply-error.test.js +1 -1
  269. package/node_modules/fastify/test/reply-trailers.test.js +70 -0
  270. package/node_modules/fastify/test/request-media-type.test.js +105 -0
  271. package/node_modules/fastify/test/route-prefix.test.js +34 -0
  272. package/node_modules/fastify/test/router-options.test.js +222 -11
  273. package/node_modules/fastify/test/schema-serialization.test.js +108 -0
  274. package/node_modules/fastify/test/schema-validation.test.js +24 -0
  275. package/node_modules/fastify/test/scripts/validate-ecosystem-links.test.js +40 -57
  276. package/node_modules/fastify/test/throw.test.js +14 -0
  277. package/node_modules/fastify/test/trust-proxy.test.js +21 -0
  278. package/node_modules/fastify/test/types/content-type-parser.tst.ts +70 -0
  279. package/node_modules/fastify/test/types/{decorate-request-reply.test-d.ts → decorate-request-reply.tst.ts} +4 -4
  280. package/node_modules/fastify/test/types/{dummy-plugin.ts → dummy-plugin.mts} +1 -1
  281. package/node_modules/fastify/test/types/errors.tst.ts +91 -0
  282. package/node_modules/fastify/test/types/fastify.tst.ts +351 -0
  283. package/node_modules/fastify/test/types/hooks.tst.ts +578 -0
  284. package/node_modules/fastify/test/types/instance.tst.ts +597 -0
  285. package/node_modules/fastify/test/types/{logger.test-d.ts → logger.tst.ts} +61 -62
  286. package/node_modules/fastify/test/types/plugin.tst.ts +96 -0
  287. package/node_modules/fastify/test/types/register.tst.ts +245 -0
  288. package/node_modules/fastify/test/types/reply.tst.ts +297 -0
  289. package/node_modules/fastify/test/types/request.tst.ts +199 -0
  290. package/node_modules/fastify/test/types/route.tst.ts +576 -0
  291. package/node_modules/fastify/test/types/{schema.test-d.ts → schema.tst.ts} +22 -22
  292. package/node_modules/fastify/test/types/{serverFactory.test-d.ts → serverFactory.tst.ts} +4 -4
  293. package/node_modules/fastify/test/types/tsconfig.json +9 -0
  294. package/node_modules/fastify/test/types/{type-provider.test-d.ts → type-provider.tst.ts} +256 -250
  295. package/node_modules/fastify/test/types/using.tst.ts +14 -0
  296. package/node_modules/fastify/types/errors.d.ts +3 -0
  297. package/node_modules/fastify/types/request.d.ts +23 -2
  298. package/node_modules/jishushell-panel/output/public/assets/{ApiKeyField-NKcbHjNz.js → ApiKeyField-Ce5d1xna.js} +1 -1
  299. package/node_modules/jishushell-panel/output/public/assets/{Dashboard-Da1fL38t.js → Dashboard-BXame3yg.js} +1 -1
  300. package/node_modules/jishushell-panel/output/public/assets/{HermesChatPanel-DZvmYsoh.js → HermesChatPanel-BHZtPCJd.js} +1 -1
  301. package/node_modules/jishushell-panel/output/public/assets/{HermesConfigForm-BLUWlKwm.js → HermesConfigForm-CB3GbNX9.js} +1 -1
  302. package/node_modules/jishushell-panel/output/public/assets/{InitPassword-BAKsshzk.js → InitPassword-Boab9F6g.js} +1 -1
  303. package/node_modules/jishushell-panel/output/public/assets/InstanceDetail-DrIWCqo-.js +14 -0
  304. package/node_modules/jishushell-panel/output/public/assets/{Login-DHeOmwI8.js → Login-CzpOkNau.js} +1 -1
  305. package/node_modules/jishushell-panel/output/public/assets/NewInstance-CANXyCcL.js +1 -0
  306. package/node_modules/jishushell-panel/output/public/assets/{ProviderRecommendations-H0ByEYF0.js → ProviderRecommendations-BABo9VOC.js} +1 -1
  307. package/node_modules/jishushell-panel/output/public/assets/Settings-CKp5XxFh.js +1 -0
  308. package/node_modules/jishushell-panel/output/public/assets/Setup-C7xVDPow.js +1 -0
  309. package/node_modules/jishushell-panel/output/public/assets/{WeixinLoginPanel-D-T6BxkQ.js → WeixinLoginPanel-B765Xz4C.js} +1 -1
  310. package/node_modules/jishushell-panel/output/public/assets/{index-ERt6_ngA.js → index-Bs6DSbiR.js} +6 -6
  311. package/node_modules/jishushell-panel/output/public/assets/{registry-DF93EzIb.js → registry-sWIZsIEF.js} +2 -2
  312. package/node_modules/jishushell-panel/output/public/assets/{usePolling-DeoThIQn.js → usePolling-D4IDOQd_.js} +1 -1
  313. package/node_modules/jishushell-panel/output/public/assets/vendor-i18n-Df8aUdv8.js +1 -0
  314. package/node_modules/jishushell-panel/output/public/assets/{vendor-react-Cc84NArf.js → vendor-react-0L0rjmYG.js} +3 -3
  315. package/node_modules/jishushell-panel/output/public/index.html +3 -3
  316. package/node_modules/jishushell-panel/package.json +1 -1
  317. package/node_modules/semver/classes/range.js +6 -2
  318. package/node_modules/semver/package.json +1 -1
  319. package/package.json +4 -4
  320. package/scripts/check-app-spec.mjs +4 -12
  321. package/scripts/check-architecture-boundaries.mjs +178 -0
  322. package/scripts/pack-gui-and-send-pi.sh +5 -3
  323. package/dependencies/jishushell-panel-0.6.18.tgz +0 -0
  324. package/dist/services/connections/suggestions.d.ts +0 -27
  325. package/dist/services/connections/suggestions.js +0 -124
  326. package/dist/services/connections/suggestions.js.map +0 -1
  327. package/node_modules/fastify/test/types/content-type-parser.test-d.ts +0 -72
  328. package/node_modules/fastify/test/types/errors.test-d.ts +0 -90
  329. package/node_modules/fastify/test/types/fastify.test-d.ts +0 -352
  330. package/node_modules/fastify/test/types/hooks.test-d.ts +0 -550
  331. package/node_modules/fastify/test/types/import.ts +0 -2
  332. package/node_modules/fastify/test/types/instance.test-d.ts +0 -588
  333. package/node_modules/fastify/test/types/plugin.test-d.ts +0 -97
  334. package/node_modules/fastify/test/types/register.test-d.ts +0 -237
  335. package/node_modules/fastify/test/types/reply.test-d.ts +0 -254
  336. package/node_modules/fastify/test/types/request.test-d.ts +0 -188
  337. package/node_modules/fastify/test/types/route.test-d.ts +0 -553
  338. package/node_modules/fastify/test/types/using.test-d.ts +0 -17
  339. package/node_modules/jishushell-panel/output/public/assets/InstanceDetail-Dgyc_TX5.js +0 -14
  340. package/node_modules/jishushell-panel/output/public/assets/NewInstance-CIy0cYtp.js +0 -1
  341. package/node_modules/jishushell-panel/output/public/assets/Settings-DAT-UMfP.js +0 -1
  342. package/node_modules/jishushell-panel/output/public/assets/Setup-g3uckFYR.js +0 -1
  343. package/node_modules/jishushell-panel/output/public/assets/vendor-i18n-CS8DFbkQ.js +0 -1
@@ -63,6 +63,7 @@ tasks:
63
63
  cpu: "1500m"
64
64
  memory: "1024Mi"
65
65
  ports:
66
+ # Core 会先把这个值当作宿主端口 seed 尝试;最终 hostPort 以 instance.json 为准。
66
67
  - name: http
67
68
  port: 18097
68
69
  container_port: 3001
@@ -42,6 +42,7 @@ tasks:
42
42
  cpu: "1000m"
43
43
  memory: "1152Mi"
44
44
  ports:
45
+ # Core 会先把这个值当作宿主端口 seed 尝试;最终 hostPort 以 instance.json 为准。
45
46
  - name: http
46
47
  port: 3000
47
48
  visibility: external
@@ -41,6 +41,7 @@ tasks:
41
41
  cpu: "200m"
42
42
  memory: "128Mi"
43
43
  ports:
44
+ # Core 会先把这个值当作宿主端口 seed 尝试;最终 hostPort 以 instance.json 为准。
44
45
  - name: http
45
46
  # Host port 18088 is in the panel-managed 18xxx range (OpenClaw
46
47
  # gateway uses 18790). Picked outside common defaults so it
@@ -23,6 +23,7 @@ tasks:
23
23
  cpu: "1000m"
24
24
  memory: "1024Mi"
25
25
  ports:
26
+ # Core 会先把这个值当作宿主端口 seed 尝试;最终 hostPort 以 instance.json 为准。
26
27
  - name: gateway
27
28
  port: 8642
28
29
  visibility: external
@@ -81,10 +82,3 @@ requires:
81
82
  inject_as: "BROWSER_CDP_URL"
82
83
  required: false
83
84
  cardinality: "one"
84
- - capability: "mcp"
85
- slot: "mcp"
86
- kind: "mcp"
87
- interface: "mcp-http"
88
- inject_as: "MCP_SERVERS"
89
- required: false
90
- cardinality: "many"
@@ -0,0 +1,337 @@
1
+ id: immich-container-lite
2
+ name: Immich Lite
3
+ version: "1.0.2"
4
+ jishushell:
5
+ min_version: "0.5.15"
6
+ description: "Self-hosted photo and video backup/gallery without the machine-learning sidecar for low-memory devices."
7
+ singleInstance: true
8
+
9
+ # Low-memory variant of immich-container.yaml.
10
+ # Differences from the full Immich AppSpec:
11
+ # - omits immich-machine-learning and model-cache
12
+ # - keeps database, redis, immich-server, and the same Immich Web UI provide
13
+ # - intended for 4GB Raspberry Pi style testing where the full stack may stay pending
14
+
15
+ network:
16
+ mode: docker-bridge
17
+ name: "jishushell-${instance.id}"
18
+
19
+ tasks:
20
+ - name: database
21
+ role: sidecar
22
+ runtime: container
23
+ image: "ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23"
24
+ user: "0:0"
25
+ cap_add: ["CHOWN", "FOWNER", "DAC_OVERRIDE", "SETUID", "SETGID", "SETPCAP"]
26
+ env:
27
+ POSTGRES_PASSWORD: "postgres"
28
+ POSTGRES_USER: "postgres"
29
+ POSTGRES_DB: "immich"
30
+ POSTGRES_INITDB_ARGS: "--data-checksums"
31
+ resources:
32
+ cpu: "700m"
33
+ memory: "1024Mi"
34
+ ports:
35
+ - name: pg
36
+ port: 5432
37
+ visibility: internal
38
+ volumes:
39
+ - source: "~/.jishushell/apps/${instance.id}/postgres"
40
+ target: "/var/lib/postgresql/data"
41
+
42
+ - name: redis
43
+ role: sidecar
44
+ runtime: container
45
+ image: "docker.io/valkey/valkey:9@sha256:3b55fbaa0cd93cf0d9d961f405e4dfcc70efe325e2d84da207a0a8e6d8fde4f9"
46
+ user: "0:0"
47
+ cap_add: ["CHOWN", "SETUID", "SETGID"]
48
+ resources:
49
+ cpu: "100m"
50
+ memory: "128Mi"
51
+ ports:
52
+ - name: redis
53
+ port: 6379
54
+ visibility: internal
55
+
56
+ - name: immich-server
57
+ role: service
58
+ runtime: container
59
+ image: "ghcr.io/immich-app/immich-server:v2"
60
+ user: "0:0"
61
+ cap_add: ["CHOWN", "FOWNER", "DAC_OVERRIDE", "SETUID", "SETGID", "SETPCAP", "NET_BIND_SERVICE"]
62
+ env:
63
+ UPLOAD_LOCATION: "./library"
64
+ DB_DATA_LOCATION: "./postgres"
65
+ TZ: "Asia/Shanghai"
66
+ IMMICH_VERSION: "v2"
67
+ DB_PASSWORD: "postgres"
68
+ DB_USERNAME: "postgres"
69
+ DB_DATABASE_NAME: "immich"
70
+ resources:
71
+ cpu: "1200m"
72
+ memory: "1536Mi"
73
+ ports:
74
+ - name: http
75
+ port: 2283
76
+ container_port: 2283
77
+ visibility: external
78
+ volumes:
79
+ - source: "~/.jishushell/apps/${instance.id}/library"
80
+ target: "/data"
81
+ - source: "~/.jishushell/files/photos/library"
82
+ target: "/external/photos"
83
+ readonly: true
84
+ - source: "/etc/localtime"
85
+ target: "/etc/localtime"
86
+ readonly: true
87
+ health:
88
+ http:
89
+ path: /api/server/ping
90
+ port: 2283
91
+ interval: "15s"
92
+ timeout: "5s"
93
+ retries: 8
94
+ start_period: "120s"
95
+
96
+ provides:
97
+ - capability: "ui-immich"
98
+ kind: ui
99
+ interface: web-ui
100
+ task: "immich-server"
101
+ port: 2283
102
+ endpoint:
103
+ portName: http
104
+ path: "/"
105
+ protocol: "http"
106
+ visibility: "external"
107
+ embedded: "direct"
108
+ description: "Immich Web UI"
109
+
110
+ lifecycle:
111
+ install:
112
+ - downloadImage: "docker.io/valkey/valkey:9@sha256:3b55fbaa0cd93cf0d9d961f405e4dfcc70efe325e2d84da207a0a8e6d8fde4f9"
113
+ - downloadImage: "ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23"
114
+ - downloadImage: "ghcr.io/immich-app/immich-server:v2"
115
+ timeout_ms: 1800000
116
+ idle_timeout_ms: 1800000
117
+ - mkdir: "~/.jishushell/apps/${instance.id}/library"
118
+ - mkdir: "~/.jishushell/apps/${instance.id}/postgres"
119
+
120
+ post_start:
121
+ - run: |
122
+ set -eu
123
+
124
+ STATE_DIR="$HOME/.jishushell/apps/${instance.id}"
125
+ ENV_FILE="$STATE_DIR/.env"
126
+ mkdir -p "$STATE_DIR"
127
+ touch "$ENV_FILE"
128
+ chmod 600 "$ENV_FILE"
129
+
130
+ read_env() {
131
+ awk -F= -v key="$1" '$1 == key { value = substr($0, length(key) + 2) } END { if (value != "") print value }' "$ENV_FILE" 2>/dev/null || true
132
+ }
133
+
134
+ upsert_env() {
135
+ key="$1"
136
+ value="$2"
137
+ tmp="${ENV_FILE}.tmp"
138
+ awk -v key="$key" -v value="$value" '
139
+ BEGIN { updated = 0 }
140
+ index($0, key "=") == 1 { print key "=" value; updated = 1; next }
141
+ { print }
142
+ END { if (!updated) print key "=" value }
143
+ ' "$ENV_FILE" > "$tmp"
144
+ chmod 600 "$tmp"
145
+ mv "$tmp" "$ENV_FILE"
146
+ }
147
+
148
+ sync_openclaw() {
149
+ if [ -n "${JISHUSHELL_CORE_URL:-}" ] && [ -n "${JISHUSHELL_INTERNAL_TOKEN:-}" ]; then
150
+ curl -fsS -X POST \
151
+ -H "X-Jishushell-Internal-Token: $JISHUSHELL_INTERNAL_TOKEN" \
152
+ -H "X-Jishushell-Instance: ${instance.id}" \
153
+ "$JISHUSHELL_CORE_URL/api/integrations/immich/internal/sync-openclaw" >/dev/null || true
154
+ fi
155
+ }
156
+
157
+ IMMICH_API_KEY="$(read_env IMMICH_API_KEY)"
158
+ if [ -n "$IMMICH_API_KEY" ]; then
159
+ sync_openclaw
160
+ exit 0
161
+ fi
162
+
163
+ IMMICH_ADMIN_EMAIL="$(read_env IMMICH_ADMIN_EMAIL)"
164
+ if [ -z "$IMMICH_ADMIN_EMAIL" ]; then
165
+ IMMICH_ADMIN_EMAIL="admin@jishushell.local"
166
+ upsert_env IMMICH_ADMIN_EMAIL "$IMMICH_ADMIN_EMAIL"
167
+ fi
168
+
169
+ IMMICH_ADMIN_PASSWORD="$(read_env IMMICH_ADMIN_PASSWORD)"
170
+ if [ -z "$IMMICH_ADMIN_PASSWORD" ]; then
171
+ IMMICH_ADMIN_PASSWORD="JishuShell@2026"
172
+ upsert_env IMMICH_ADMIN_PASSWORD "$IMMICH_ADMIN_PASSWORD"
173
+ fi
174
+
175
+ find_immich_container() {
176
+ docker ps \
177
+ --format '{{.ID}}\t{{.Names}}\t{{.Label "com.hashicorp.nomad.job_name"}}\t{{.Label "com.hashicorp.nomad.task_name"}}' \
178
+ | awk -F '\t' -v instance="${instance.id}" '
179
+ $4 == "immich-server" && ($3 == instance || $3 == "jishushell-" instance) {
180
+ print $1;
181
+ found = 1;
182
+ exit;
183
+ }
184
+ $4 == "immich-server" && index($2, instance) > 0 { label_fallback = $1 }
185
+ $2 == "immich-server" || index($2, "immich-server-") == 1 { name_fallback = $1 }
186
+ END {
187
+ if (!found) {
188
+ if (label_fallback) print label_fallback;
189
+ else if (name_fallback) print name_fallback;
190
+ }
191
+ }
192
+ '
193
+ }
194
+
195
+ CONTAINER_ID=""
196
+ for attempt in $(seq 1 120); do
197
+ CONTAINER_ID="$(find_immich_container | head -n 1)"
198
+ if [ -n "$CONTAINER_ID" ]; then
199
+ break
200
+ fi
201
+ sleep 2
202
+ done
203
+ if [ -z "$CONTAINER_ID" ]; then
204
+ echo "immich-server container is not running" >&2
205
+ exit 1
206
+ fi
207
+
208
+ IMMICH_API_KEY="$(docker exec -i \
209
+ -e IMMICH_BOOTSTRAP_EMAIL="$IMMICH_ADMIN_EMAIL" \
210
+ -e IMMICH_BOOTSTRAP_PASSWORD="$IMMICH_ADMIN_PASSWORD" \
211
+ "$CONTAINER_ID" node - <<'NODE'
212
+ const baseUrl = "http://127.0.0.1:2283/api";
213
+ const email = process.env.IMMICH_BOOTSTRAP_EMAIL;
214
+ const password = process.env.IMMICH_BOOTSTRAP_PASSWORD;
215
+
216
+ const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
217
+
218
+ function fatal(message) {
219
+ const error = new Error(message);
220
+ error.fatal = true;
221
+ throw error;
222
+ }
223
+
224
+ async function request(path, options = {}) {
225
+ const response = await fetch(`${baseUrl}${path}`, {
226
+ ...options,
227
+ headers: {
228
+ accept: "application/json",
229
+ "content-type": "application/json",
230
+ ...(options.headers ?? {}),
231
+ },
232
+ });
233
+ const text = await response.text();
234
+ let body = null;
235
+ if (text) {
236
+ try {
237
+ body = JSON.parse(text);
238
+ } catch {
239
+ body = null;
240
+ }
241
+ }
242
+ return { response, body, text };
243
+ }
244
+
245
+ async function login() {
246
+ const result = await request("/auth/login", {
247
+ method: "POST",
248
+ body: JSON.stringify({ email, password }),
249
+ });
250
+ if (result.response.ok && result.body?.accessToken) {
251
+ return result.body.accessToken;
252
+ }
253
+ return null;
254
+ }
255
+
256
+ async function bootstrap() {
257
+ let lastError = "Immich API is not ready";
258
+ for (let attempt = 0; attempt < 150; attempt += 1) {
259
+ try {
260
+ const ping = await request("/server/ping", { method: "GET" });
261
+ if (!ping.response.ok) {
262
+ lastError = `ping failed: HTTP ${ping.response.status} ${ping.text}`;
263
+ await sleep(2000);
264
+ continue;
265
+ }
266
+
267
+ let accessToken = await login();
268
+ if (!accessToken) {
269
+ const signUp = await request("/auth/admin-sign-up", {
270
+ method: "POST",
271
+ body: JSON.stringify({ email, password, name: "JishuShell" }),
272
+ });
273
+ if (signUp.response.status === 400 || signUp.response.status === 409) {
274
+ fatal("Immich is already initialized and the stored JishuShell admin credentials did not work; set IMMICH_ADMIN_EMAIL/IMMICH_ADMIN_PASSWORD or IMMICH_API_KEY in the instance .env file");
275
+ }
276
+ if (!signUp.response.ok) {
277
+ lastError = `admin sign-up failed: HTTP ${signUp.response.status} ${signUp.text}`;
278
+ await sleep(2000);
279
+ continue;
280
+ }
281
+ accessToken = await login();
282
+ }
283
+
284
+ if (!accessToken) {
285
+ throw new Error("unable to log in with the stored Immich admin credentials");
286
+ }
287
+
288
+ const apiKey = await request("/api-keys", {
289
+ method: "POST",
290
+ headers: { Authorization: `Bearer ${accessToken}` },
291
+ body: JSON.stringify({ name: "JishuShell", permissions: ["all"] }),
292
+ });
293
+ if (!apiKey.response.ok) {
294
+ throw new Error(`API key creation failed: HTTP ${apiKey.response.status} ${apiKey.text}`);
295
+ }
296
+ if (!apiKey.body?.secret) {
297
+ throw new Error("API key creation response did not include a secret");
298
+ }
299
+ console.log(apiKey.body.secret);
300
+ return;
301
+ } catch (error) {
302
+ if (error?.fatal) {
303
+ throw error;
304
+ }
305
+ lastError = error instanceof Error ? error.message : String(error);
306
+ await sleep(2000);
307
+ }
308
+ }
309
+ throw new Error(lastError);
310
+ }
311
+
312
+ bootstrap().catch((error) => {
313
+ console.error(error instanceof Error ? error.message : String(error));
314
+ process.exit(1);
315
+ });
316
+ NODE
317
+ )"
318
+
319
+ if [ -z "$IMMICH_API_KEY" ]; then
320
+ echo "Immich API key generation returned an empty secret" >&2
321
+ exit 1
322
+ fi
323
+ upsert_env IMMICH_API_KEY "$IMMICH_API_KEY"
324
+ sync_openclaw
325
+ timeout_ms: 420000
326
+
327
+ uninstall:
328
+ - run: >-
329
+ rm -rf
330
+ "$HOME/.jishushell/apps/${instance.id}/.env"
331
+ "$HOME/.jishushell/apps/${instance.id}/library"
332
+ "$HOME/.jishushell/apps/${instance.id}/postgres"
333
+ sudo: true
334
+ timeout_ms: 1800000
335
+ - deleteImage: "ghcr.io/immich-app/immich-server:v2"
336
+ - deleteImage: "ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23"
337
+ - deleteImage: "docker.io/valkey/valkey:9@sha256:3b55fbaa0cd93cf0d9d961f405e4dfcc70efe325e2d84da207a0a8e6d8fde4f9"