mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-30 10:09:13 -04:00
Add the add-on runtime to LocalAI: manifests, the host operation broker, admin gating by account role, the add-on UI bundle builder and the SDK for add-on pages. Move the navigation to Chat, Models, Add-ons and Settings, with pinned add-ons in the sidebar and an Add-ons drawer. Ship the first-party add-ons (voice, face, fine-tuning, quantization) as packages for linux/amd64, linux/arm64 and darwin/arm64. Intel macOS (darwin/amd64) is enabled in the platform files. Squashed from the review branch. The tree is unchanged; the pre-squash history is kept on a local backup branch. Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
20 lines
729 B
Bash
Executable File
20 lines
729 B
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: MIT
|
|
# Prints what one workflow event may publish, as key=value lines:
|
|
# publish, reason, immutable, aliases, channel, signer_ref, version
|
|
#
|
|
# sh scripts/addons/channel.sh --event <name> --ref <full ref> --sha <40 hex>
|
|
# [--draft] [--prerelease]
|
|
#
|
|
# Pull requests and branch pushes never publish, and master alone publishes
|
|
# development. A tag push prepares the immutable version and moves no alias.
|
|
# A published stable release moves latest.
|
|
# Anything the rules do not name fails.
|
|
set -eu
|
|
root=$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)
|
|
cd "$root"
|
|
if [ -n "${ADDONPKG:-}" ]; then
|
|
exec "$ADDONPKG" channel "$@"
|
|
fi
|
|
exec go run ./scripts/addons/cmd/addonpkg channel "$@"
|