aish: package v0.1.0 for arch + debian
aish is an AI-augmented conversational shell in LuaJIT 2.x with FFI
bindings to libcurl, GNU readline, and libc — no C extensions, no
build step. Source-of-truth: git.reauktion.de/marfrit/aish, tag v0.1.0
(tarball sha256 9ebc3939e028832e39391ae33efacb5ec9bcd99d123cbc8ca1cd6ca9a640b5b5).
The arch and debian recipes mirror the lmcp pattern (pure-Lua any-arch
package, no makefile, install copies modules directly):
arch/aish/PKGBUILD — depends=(luajit readline curl)
debian/aish/build-deb.sh — pure dpkg-deb, SOURCE_DATE_EPOCH pinned
debian/aish/debian/{control,changelog,copyright}
Install layout, matching what main.lua's script-dir-relative package.path
expects after the wrapper execs `luajit /usr/share/lua/5.1/aish/main.lua`:
/usr/bin/aish ← bin/aish wrapper
/usr/share/lua/5.1/aish/{main,broker,context,executor,history,
mcp,renderer,repl,router,safety,secrets}.lua
/usr/share/lua/5.1/aish/ffi/{curl,libc,pty,readline}.lua
/usr/share/lua/5.1/aish/vendor/dkjson.lua
/usr/share/doc/aish/{README.md,LICENSE,examples/config.lua}
CI: two new jobs in .gitea/workflows/build.yml at the end of file.
aish-any chains needs:lmcp-debian (parallel-DAG with claude-his-any,
serialized via the shared arch-aarch64 runner — avoids needless wait
through the unrelated fourier stack). aish-debian chains needs:aish-any.
Both invoke the standard check-already-published.sh fast-skip on no-
change pushes.
Sonnet review (per feedback_reviews_use_sonnet.md + bugfix-process
step 4): no blockers. Folded in two findings before commit: switched
needs: from mpv-fourier-aarch64 to lmcp-debian (cleaner DAG, faster
cold-build wall clock), removed the dead Build-Depends: debhelper-
compat line from debian/aish/debian/control (build-deb.sh doesn't
use debhelper).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+85
@@ -0,0 +1,85 @@
|
||||
#!/bin/bash
|
||||
# Build aish_<ver>_all.deb from this directory using dpkg-deb directly.
|
||||
# Run from inside the runner container, which has dpkg installed.
|
||||
#
|
||||
# Matches the lmcp build-deb.sh pattern: no dh/debhelper, no Build-Depends
|
||||
# beyond `dpkg`, structurally a normal apt package (Architecture: all).
|
||||
set -euo pipefail
|
||||
|
||||
PKGVER=0.1.0
|
||||
UPSTREAM_TAG=v0.1.0
|
||||
PKGREL=1
|
||||
AISH_TARBALL_SHA256=9ebc3939e028832e39391ae33efacb5ec9bcd99d123cbc8ca1cd6ca9a640b5b5
|
||||
HERE=$(dirname "$(readlink -f "$0")")
|
||||
|
||||
# Reproducible build: pin all file mtimes + ar member timestamps to a fixed
|
||||
# epoch tied to this packaging release (aish v0.1.0 — 2026-05-25 00:00 UTC).
|
||||
# Without this, repeat builds produce different byte streams and reprepro
|
||||
# refuses re-includes with "size expected: X, got: Y".
|
||||
export SOURCE_DATE_EPOCH=1779667200
|
||||
|
||||
work=$(mktemp -d)
|
||||
trap "rm -rf $work" EXIT
|
||||
|
||||
cd "$work"
|
||||
curl --connect-timeout 10 --max-time 600 --retry 3 --retry-delay 5 -sSLfo aish.tar.gz \
|
||||
"https://git.reauktion.de/marfrit/aish/archive/${UPSTREAM_TAG}.tar.gz"
|
||||
echo "$AISH_TARBALL_SHA256 aish.tar.gz" | sha256sum -c
|
||||
tar xzf aish.tar.gz
|
||||
|
||||
ROOT="$work/pkgroot"
|
||||
LIBDIR="$ROOT/usr/share/lua/5.1/aish"
|
||||
mkdir -p "$ROOT/DEBIAN" \
|
||||
"$LIBDIR/ffi" \
|
||||
"$LIBDIR/vendor" \
|
||||
"$ROOT/usr/bin" \
|
||||
"$ROOT/usr/share/doc/aish/examples"
|
||||
|
||||
# Top-level modules
|
||||
for m in main broker context executor history mcp renderer repl router safety secrets; do
|
||||
cp "aish/${m}.lua" "$LIBDIR/${m}.lua"
|
||||
done
|
||||
|
||||
# FFI bindings
|
||||
for m in curl libc pty readline; do
|
||||
cp "aish/ffi/${m}.lua" "$LIBDIR/ffi/${m}.lua"
|
||||
done
|
||||
|
||||
# Vendored dependencies
|
||||
cp aish/vendor/dkjson.lua "$LIBDIR/vendor/dkjson.lua"
|
||||
|
||||
# Launch wrapper
|
||||
install -m 755 aish/bin/aish "$ROOT/usr/bin/aish"
|
||||
|
||||
# Documentation + example config
|
||||
cp aish/README.md "$ROOT/usr/share/doc/aish/"
|
||||
cp aish/LICENSE "$ROOT/usr/share/doc/aish/"
|
||||
cp aish/examples/config.lua "$ROOT/usr/share/doc/aish/examples/"
|
||||
cp "$HERE/debian/copyright" "$ROOT/usr/share/doc/aish/copyright"
|
||||
cp "$HERE/debian/changelog" "$ROOT/usr/share/doc/aish/changelog.Debian"
|
||||
gzip -9 -n "$ROOT/usr/share/doc/aish/changelog.Debian"
|
||||
|
||||
cat > "$ROOT/DEBIAN/control" <<EOF
|
||||
Package: aish
|
||||
Version: ${PKGVER}-${PKGREL}
|
||||
Section: shells
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Depends: luajit, libreadline8t64 | libreadline8, libcurl4t64 | libcurl4
|
||||
Maintainer: Markus Fritsche <mfritsche@reauktion.de>
|
||||
Homepage: https://git.reauktion.de/marfrit/aish
|
||||
Description: AI-augmented conversational shell (LuaJIT, FFI-only)
|
||||
aish is an interactive REPL that interleaves shell execution and
|
||||
language-model conversation against llama.cpp HTTP brokers. Pure
|
||||
LuaJIT 2.x with FFI bindings to libcurl, GNU readline, and libc.
|
||||
.
|
||||
Modules install under /usr/share/lua/5.1/aish/. The launcher is
|
||||
/usr/bin/aish. Example configuration is at
|
||||
/usr/share/doc/aish/examples/config.lua (copy to
|
||||
~/.config/aish/config.lua and adapt).
|
||||
EOF
|
||||
|
||||
# Build the .deb. Output to current dir of the caller.
|
||||
DEB_OUT=aish_${PKGVER}-${PKGREL}_all.deb
|
||||
dpkg-deb --root-owner-group --build "$ROOT" "$HERE/$DEB_OUT"
|
||||
echo "built: $HERE/$DEB_OUT"
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
aish (0.1.0-1) bookworm trixie; urgency=medium
|
||||
|
||||
* Initial release packaged for marfrit overlay repo. Phases 0-10
|
||||
complete (102 closed issues): local llama.cpp + cloud broker
|
||||
routing via hossenfelder, MCP tool calls with confirm-gate and
|
||||
per-tool auto_approve, Chuck Norris autonomous mode with
|
||||
destructive-op heuristic, cross-session memory.jsonl, multi-model
|
||||
routing + GBNF grammar passthrough, project file-tree context,
|
||||
cost/usage observability, /tokenize endpoint integration, project
|
||||
overlay (.aish.lua + sha256-pinned trust ledger), cloud preplanner
|
||||
→ local executor split.
|
||||
* Source-of-truth: git.reauktion.de/marfrit/aish, tagged v0.1.0.
|
||||
|
||||
-- Markus Fritsche <mfritsche@reauktion.de> Mon, 25 May 2026 00:00:00 +0000
|
||||
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
Source: aish
|
||||
Section: shells
|
||||
Priority: optional
|
||||
Maintainer: Markus Fritsche <mfritsche@reauktion.de>
|
||||
Standards-Version: 4.6.2
|
||||
Homepage: https://git.reauktion.de/marfrit/aish
|
||||
|
||||
Package: aish
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}, luajit, libreadline8t64 | libreadline8, libcurl4t64 | libcurl4
|
||||
Description: AI-augmented conversational shell (LuaJIT, FFI-only)
|
||||
aish is an interactive REPL that interleaves shell execution and language-
|
||||
model conversation against llama.cpp HTTP brokers. Implementation is pure
|
||||
LuaJIT 2.x with FFI bindings to libcurl, GNU readline, and libc — no C
|
||||
extensions, no build step.
|
||||
.
|
||||
Modules install under /usr/share/lua/5.1/aish/. The launcher is
|
||||
/usr/bin/aish. Example configuration is at
|
||||
/usr/share/doc/aish/examples/config.lua (copy to ~/.config/aish/config.lua
|
||||
and adapt).
|
||||
Vendored
+30
@@ -0,0 +1,30 @@
|
||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: aish
|
||||
Source: https://git.reauktion.de/marfrit/aish
|
||||
|
||||
Files: *
|
||||
Copyright: 2026 Markus Fritsche <mfritsche@reauktion.de>
|
||||
License: MIT
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
.
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
|
||||
|
||||
Files: vendor/dkjson.lua
|
||||
Copyright: 2010-2014 David Heiko Kolf
|
||||
License: MIT
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including the rights to use, copy,
|
||||
modify, merge, publish, distribute, sublicense, and/or sell copies of the
|
||||
Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions: the above copyright notice and this
|
||||
permission notice shall be included in all copies or substantial portions of
|
||||
the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
|
||||
Reference in New Issue
Block a user