mirror of
https://github.com/mudler/LocalAI.git
synced 2026-11-06 04:23:15 -05:00
feat(addons): wire the Discord add-on into packaging, catalog and docs
List the add-on in the package workflow matrix, the package checks, the host operation policy, the catalog template and index, the case inventories of the contract and packaging suites, and the architecture guard (two links to the project community server are not the add-on). Document the connector in the chats guide. Assisted-by: Claude:claude-sonnet-5-5 go
This commit is contained in:
15 files changed
+236
-22
No files matched your search
@@ -89,7 +89,7 @@ test -f "$work/voice/receipt.json"
|
||||
case_ok 'package.sh builds and verifies the voice add-on for the host'
|
||||
# A platform other than the host is refused for every add-on, whatever the config.
|
||||
if [ "$host" = linux/amd64 ]; then foreign=linux/arm64; else foreign=linux/amd64; fi
|
||||
for id in tables voice face fine-tuning quantization studio talk telegram slack office sandbox web memory; do
|
||||
for id in tables voice face fine-tuning quantization studio talk telegram slack discord office sandbox web memory; do
|
||||
expect_fail "package.sh refuses a foreign platform without an executable: $id" 'is not this host' sh scripts/addons/package.sh --config "addons/$id/package/platforms.yaml" --layout "$work/foreign-$id" --version 1.2.3 --platform "$foreign" --local-check
|
||||
done
|
||||
case_ok 'package.sh refuses a foreign platform without an executable for every add-on'
|
||||
@@ -123,11 +123,11 @@ mkdir -p "$work/runtime/gvisor-bin"
|
||||
for f in runsc gvisor-profile cloud-hypervisor virtiofsd gvisor-bin/checkpointgofer gvisor-bin/gvisor-sentry-prewarmer gvisor-bin/gvisor_sentry gvisor-bin/runsc-fd-parking gvisor-bin/runsc-metric-server; do
|
||||
printf 'stand-in\n' >"$work/runtime/$f"
|
||||
done
|
||||
for id in tables voice face fine-tuning quantization studio talk telegram slack office sandbox web memory; do
|
||||
for id in tables voice face fine-tuning quantization studio talk telegram slack discord office sandbox web memory; do
|
||||
PATH="$work/stubbin:$PATH" sh scripts/addons/package.sh --config "addons/$id/package/platforms.yaml" --layout "$work/stub-$id" --version 1.2.3 --platform "$host" --runtime-dir "$work/runtime" --local-check >"$work/out" 2>&1 || { cat "$work/out" >&2; exit 1; }
|
||||
done
|
||||
grep -x './addons/tables/cmd/tables CGO_ENABLED=1' "$work/gobuild.log" >/dev/null
|
||||
for id in voice face fine-tuning quantization studio talk telegram slack office sandbox web memory; do
|
||||
for id in voice face fine-tuning quantization studio talk telegram slack discord office sandbox web memory; do
|
||||
grep -x "./addons/$id/cmd/$id CGO_ENABLED=0" "$work/gobuild.log" >/dev/null || { echo "FAIL: $id is not built with CGO_ENABLED=0" >&2; cat "$work/gobuild.log" >&2; exit 1; }
|
||||
done
|
||||
case_ok 'package.sh builds Tables with cgo and the pure Go add-ons without'
|
||||
|
||||
@@ -482,6 +482,7 @@
|
||||
"audits actual host calls and strict package contract for quantization",
|
||||
"audits actual host calls and strict package contract for sandbox",
|
||||
"audits actual host calls and strict package contract for slack",
|
||||
"audits actual host calls and strict package contract for discord",
|
||||
"audits actual host calls and strict package contract for studio",
|
||||
"audits actual host calls and strict package contract for tables",
|
||||
"audits actual host calls and strict package contract for talk",
|
||||
@@ -553,6 +554,7 @@
|
||||
"has consistent package files for quantization",
|
||||
"has consistent package files for sandbox",
|
||||
"has consistent package files for slack",
|
||||
"has consistent package files for discord",
|
||||
"has consistent package files for studio",
|
||||
"has consistent package files for tables",
|
||||
"has consistent package files for talk",
|
||||
@@ -4465,6 +4467,7 @@
|
||||
"package.sh refuses a foreign platform without an executable: talk",
|
||||
"package.sh refuses a foreign platform without an executable: telegram",
|
||||
"package.sh refuses a foreign platform without an executable: slack",
|
||||
"package.sh refuses a foreign platform without an executable: discord",
|
||||
"package.sh refuses a foreign platform without an executable for every add-on",
|
||||
"package.sh builds Tables with cgo and the pure Go add-ons without",
|
||||
"matrix fails closed while no platform is enabled",
|
||||
@@ -4516,6 +4519,7 @@
|
||||
"go: has consistent package files for quantization",
|
||||
"go: has consistent package files for sandbox",
|
||||
"go: has consistent package files for slack",
|
||||
"go: has consistent package files for discord",
|
||||
"go: has consistent package files for studio",
|
||||
"go: has consistent package files for tables",
|
||||
"go: has consistent package files for talk",
|
||||
@@ -4570,6 +4574,7 @@
|
||||
"go: audits actual host calls and strict package contract for quantization",
|
||||
"go: audits actual host calls and strict package contract for sandbox",
|
||||
"go: audits actual host calls and strict package contract for slack",
|
||||
"go: audits actual host calls and strict package contract for discord",
|
||||
"go: audits actual host calls and strict package contract for studio",
|
||||
"go: audits actual host calls and strict package contract for tables",
|
||||
"go: audits actual host calls and strict package contract for talk",
|
||||
|
||||
Reference in new issue
Block a user