Commit Graph
15 Commits
Author SHA1 Message Date
huanghuoguoguo 7b1e231d2a build(core): install the bundled SDK for source deployments 2026-11-16 15:19:30 +08:00
0ec248a91b build(docker): slim the image to 308 MB; SeekDB/Milvus/Valkey as optional extras and image variants (LANG-422) (#2996)
* build(docker): cut the image from 2.25 GB to 1.28 GB (LANG-422)

- Build the Python venv in a separate stage with --no-dev and no uv cache,
  so gcc/libc6-dev, moto/pytest/coverage and the uv cache stay out of the
  final image.
- Move mypy, ruff and pre-commit from runtime dependencies to the dev group.
- Replace Debian's ffmpeg (~200 packages, ~400 MB incl. Mesa/LLVM) with an
  audio-only ffmpeg 7.1.5 cross-compiled from the signed release tarball
  (opus, mp3lame, opencore-amr). This also adds the libopencore_amrnb
  encoder that Debian's build lacks, so AMR output now works.
- Copy node/npm from the official node:22 image instead of NodeSource, which
  pulled in python3.13 and 65 MB of headers.
- Exclude docs, tests, dev-docs, tools, skills and examples from the context.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* build(docker): publish SeekDB as a separate -seekdb image variant (LANG-422)

- The default image no longer installs the optional seekdb extra, nor
  ChromaDB's ONNX MiniLM / Kubernetes client stack (onnxruntime, sympy,
  kubernetes, ...). LangBot always passes its own embeddings to Chroma
  and only uses the embedded PersistentClient, so they are never used.
- New `langbot-seekdb` build target: the default image plus one layer
  with the seekdb extra. Releases push rockchin/langbot:<tag>-seekdb,
  latest-seekdb and beta-seekdb next to the plain tags.
- Docs (zh/en/ja): Docker, Kubernetes, settings and embedding model pages
  point SeekDB users to the -seekdb tags.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* build(deps): make Milvus and Valkey Search optional extras like SeekDB (LANG-422)

- pyproject: pymilvus moves to a `milvus` extra and valkey-glide to a
  `valkey` extra; drop the unused direct pandas dependency (only pymilvus
  needs it). Core imports pymilvus lazily and raises an install hint,
  matching the SeekDB and Valkey Search backends.
- Dockerfile: replace the langbot-seekdb target with a generic
  `langbot-extra` target (`--build-arg LANGBOT_EXTRA=seekdb|milvus|valkey`),
  one layer on top of the default image.
- Release workflow publishes <tag>, <tag>-seekdb, <tag>-milvus and
  <tag>-valkey (plus latest-*/beta-*); the tag test now checks every build.
- fnOS packages keep installing all three extras, as before.
- Docs (zh/en/ja): Docker, Kubernetes, settings, source and package
  install pages describe the extras and image tags.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-12 13:01:45 +08:00
0d84c334ba feat(sdk): move the plugin SDK into the monorepo with independent releases (LANG-420) (#2993)
* chore(sdk): import langbot-plugin-sdk v0.7.24 snapshot into sdk/ (LANG-420)

Snapshot of langbot-app/langbot-plugin-sdk at 76443bb8 (tag v0.7.24),
without history. The repository's .github/ workflows are not imported;
they are replaced by sdk-*.yml workflows in the next commit. The root
.gitignore keeps the template .vscode/launch.json.example tracked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* feat(sdk): move the plugin SDK into the monorepo with independent releases (LANG-420)

- CI: sdk-tests.yml / sdk-box-docker.yml run the SDK suite from sdk/ in
  its own environment (Python 3.10-3.12); run-tests.yml gains a
  "Core with in-tree SDK" job that overlays sdk/ on Core's venv.
- Releases: sdk-publish.yml publishes langbot-plugin from sdk/vX.Y.Z tag
  pushes and never creates a GitHub Release. Core release workflows now
  only accept v* tags, and scripts/check_sdk_release_pin.py blocks a Core
  PyPI/Docker release whose langbot-plugin pin differs from the released,
  unchanged sdk/.
- Packaging: Core still installs the PyPI pin. Core wheel/sdist, git
  export, Docker context, release ZIP and fnOS package exclude sdk/.
- Generator/tests: generate_plugin_workspace_api.py writes sdk/ directly;
  the SDK's generator drift tests now run instead of skipping.
- Docs: AGENTS/ARCHITECTURE, sdk/ guides (+ RELEASING.md, SOURCE.json),
  agent skills and lbs probes, public docs (zh/en/ja) and dev-docs
  point at sdk/ instead of the sibling langbot-plugin-sdk checkout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-11 23:12:53 +08:00
RockChinQandmultica-agent 3a77306c3c feat(plugins): consolidate official plugins with independent releases (LANG-180) (#2797)
Co-authored-by: multica-agent <github@multica.ai>
2026-10-28 17:32:24 +08:00
3e0be870ab feat: merge langbot-docs history into docs/ (subtree, no squash)
Imported langbot-app/langbot-docs main (51dddcb3f) under docs/ with
`git subtree add`, keeping every original commit SHA and signature so the
mirror and landing-page submodule can fast-forward from a `git subtree
split` later. Retarget the docs workflows to docs/, point blog sync at the
main repository, and update the remaining internal references.

Co-Authored-By: Mika (Multica) <noreply@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
2026-10-27 08:04:39 +00:00
RockChinQandmultica-agent 816d7fee3b chore(release): prepare 4.11.1 with SDK 0.7.16
Co-authored-by: multica-agent <github@multica.ai>
2026-10-20 15:44:50 +00:00
RockChinQ 502b38130f release: prepare Core 4.11.0 with stable SDK 0.7.11 (#2660) 2026-10-14 15:54:32 +08:00
RockChinQ 5a8c1ec6ef chore: release 4.11.0-rc.3 with worker watchdog SDK (#2655) 2026-10-13 01:32:18 +08:00
RockChinQ de34d206a9 release: 4.11.0-rc.2 with SDK 0.7.11rc2 2026-10-10 17:57:12 +00:00
RockChinQ d4458d8883 chore(release): LangBot 4.11.0-rc.1 with SDK 0.7.11rc1 (#2638) 2026-10-08 16:02:31 +08:00
RockChinQ 27871e4363 merge: integrate master certification and document identity fixes into 4.11 2026-09-21 10:55:40 +00:00
“sheetung” d705861d25 fix(fnos): open LangBot embedded inside fnOS desktop instead of external browser
Change desktop entry type from 'url' (opens external browser) to 'iframe'
(embeds the web UI inside the fnOS desktop window), per the official
Application Entry documentation at developer.fnnas.com/docs/core-concepts/app-entry.
2026-09-18 17:05:47 +08:00
“sheetung” 34f1e3d56f feat(fnos): run entirely without root and harden process lifecycle
- Switch privilege model to run-as: package (zero root, per fnOS guide)
- Borrow App Store python312 instead of bundling CPython; keep bundled uv
- Move venv, HOME and caches onto the persistent data share
- Start service via setsid; stop/upgrade kill the whole process group
- Sweep stray runtime/box orphans in install/upgrade init hooks
- Track LangBot 4.10.11 (manifest baseline + upstream merge)
2026-09-18 16:20:32 +08:00
RockChinQ 273b1ea3cf Merge master into dev/4.11.x and preserve plugin runner architecture
Reconcile migration branches without rewriting published revisions; retain additive Codex, monitoring, provider and platform fixes. Keep dynamic runner schemas and Host ownership, restore compatibility regressions, and preserve safe model-test error handling.
2026-09-16 08:13:07 +00:00
sheetunganddadachann 60bb67f025 Fnos packaging (#2524)
* feat(packaging): add fnOS FPK packaging and CI workflow

Add packaging/fnos/ shell (manifest, lifecycle cmd scripts, install/
upgrade/uninstall wizards, desktop entry, EULA) plus in-repo build
script. A release now auto-builds langbot-<tag>-fnos.fpk via
.github/workflows/build-fnos-fpk.yaml, uploaded to the release assets.

* ci(fnos): skip release upload on manual dispatch

github.event.release.tag_name is empty when triggered via
workflow_dispatch, causing 'gh release upload' to fail with
'requires at least 2 arg(s)'. Restrict the step to release events.

* ci(fnos): normalize release asset name

Strip a trailing -fnos from the tag-derived version before appending
the suffix, avoiding langbot-<v>-fnos-fnos.fpk when the tag itself
already carries -fnos.

* ci(fnos): use release tag version for auto build, manifest for manual

Auto build (release/tag) reads version from tag like other release
workflows; build.sh strips the v prefix when injecting into manifest.
Manual dispatch falls back to the version maintained in manifest.

* feat(fnos): add post-install deployment notice to install wizard

Last wizard step now informs users that first startup takes about
5-10 minutes for dependency setup before the web UI is ready.

* docs(fnos): add packaging directory README

* refactor(fnos): rename app from ai.langbot to langbot

Rename appname, desktop entry, data share, build artifacts, and all
references from ai.langbot to langbot across packaging files.

---------

Co-authored-by: dadachann <185672915+dadachann@users.noreply.github.com>
2026-09-14 00:31:19 +08:00