summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSystem user; portage <portage@alpha.trunkmasters.com>2026-09-11 02:59:54 -0500
committerSystem user; portage <portage@alpha.trunkmasters.com>2026-09-11 02:59:54 -0500
commite33f0847ce6b81509a17a3599d1d182598da7a65 (patch)
tree9b41eb03688d5c4d2ca4e196e878a7c2656b13b7
parenta2f40af73811341882cc8b93cfe218c7c931a9ea (diff)
downloadsrcux-e33f0847ce6b81509a17a3599d1d182598da7a65.tar.gz
srcux-e33f0847ce6b81509a17a3599d1d182598da7a65.tar.xz
srcux-e33f0847ce6b81509a17a3599d1d182598da7a65.zip
feat(smith): add conversational terminal UI
-rw-r--r--app-misc/smith/Manifest2
-rw-r--r--app-misc/smith/smith-0.2.0.ebuild75
2 files changed, 77 insertions, 0 deletions
diff --git a/app-misc/smith/Manifest b/app-misc/smith/Manifest
index e8e1c5cf7f59..ba787a0ab7fa 100644
--- a/app-misc/smith/Manifest
+++ b/app-misc/smith/Manifest
@@ -177,6 +177,8 @@ DIST slab-0.4.12.crate 19080 BLAKE2B 785a1b899fe01c8825f24d90b0b0bb31bded234810f
DIST smallvec-1.16.0.crate 32647 BLAKE2B 6900b277f34cd8faab7125b463fd0fd111ba403193fc9d6b54e21b66297bb20b3c00adc68084a468f44c4e28c0480c02483e3537123df5463210ecb0557df5bc SHA512 75126a2cb8ff0501c0a56db6410c53f03c513633febe70ce69f1c9055a2df1f88984a0f4753b92afba918408eae8283a4f16bcb903f51666250da7499c614d20
DIST smith-0.1.0.tar.xz 68200 BLAKE2B 757fdccd0999b3701db928b28abd48afb6577cb961a55f4633fab245a83a8d0e41114502b6aaa2608a7861bcda983c70a04eee7f2685b883b6e3e3671c9fb47c SHA512 5533b59403e0be4af7b95c9423b3d96393de78193e25ed5ee4c0c2c68f9e02451ebfea59b0393e7ac8e64e340c4ca5db4f2f784f5f3b230880657cdd0d6e71af
DIST smith-0.1.1.tar.xz 68828 BLAKE2B 7f39c5570a0c6dcd3152ee6767b72d745fda08aa659356e7005046c6ec5fea433ed9f802b5a9aa40de5d9f30122257129cfca7501e6fc21e297cdce6d7f17d83 SHA512 46010d79e7a603003ae251e77927181cc0d624729fda1ef4a279dd7de52a364440a77a8dea297e165de56ca5ee491ebdb1093b747080b5c3417a5e809bfaf7bd
+DIST smith-0.2.0-crates.tar.xz 31958652 BLAKE2B 83869f93532699a93e066786be02eff70ab2eb85b7a337e47f4ec00ae52e5d36c3ef6bf47b48396a36c692b353afedd66f5229faa4dd7a00080f3462e958c013 SHA512 9b1471ce09786b31b14af986a9e215622ef30d7c3d660a973f66a564abc5c8d58a1cc8465aecb928b4a379ed99c4055bd71b467e9db626327a5125a6c5c1c5fb
+DIST smith-0.2.0.tar.xz 90648 BLAKE2B cbc5d87e83bb30ac72e3f060907f99afe93cd84761eb4a1e3e32018e2d3b9dcec8d711ceca4307de121285d833ad7de852a8fe79117e565d228ce114513e033d SHA512 dc0b96f02d739b222e6f1df385ccc4d2d6fbcec28e67b01ca0797462cef5130c88386f8e841dbbb896380be7781c4643c64d5b21422524e5de34a7f3d6dc3d7f
DIST socket2-0.6.5.crate 60031 BLAKE2B 5e5e380338615d05d0a42901a05a5323e127919560cb6b5c0ca72645219d40f915724912f103ad4fcdd4a7b5653cf8151c9fee1904427775f19d4e617fbe947d SHA512 eb72b2cb7683cfde4ddc4f6efd64f859738ede22120d40b4498e7ec05bf53429f2c13612a33d8e69089122ede3382eb731d816d40beb0619fcf416dce7cb6575
DIST stable_deref_trait-1.2.1.crate 8186 BLAKE2B 6408959d169d1228c1b0802ef31c850206405f8259168f169aabc91f63683dcdf347ff0e74fb3535ab05d7642889dd2637afbdea389b43b0925e0d6cf441ed67 SHA512 630721d3f8e9f3290efc250c42aba13e2325839e62167a2a611618c18c6aa58c08a53622db61a9aa920284570626b98df26b3c28009cf45b6ce1ec134b9c9f5c
DIST strsim-0.11.1.crate 14266 BLAKE2B 252a9ede4241b165525486aa8855dece37af77f5b28e0e1858c4a5d2047db9fa958328db10989234aad69463ab51b2303785ec056c63ea8c95bf95e111ddabf2 SHA512 0cebe0155a92640e56db9a599ae62078cbb32e1d2da8bfa67ed0e8f410a7558dfcf7b3c2720ff5913282e291ecf076aed9fe9bf84c8d44e814a642b1bed3335c
diff --git a/app-misc/smith/smith-0.2.0.ebuild b/app-misc/smith/smith-0.2.0.ebuild
new file mode 100644
index 000000000000..1b03a9a0d260
--- /dev/null
+++ b/app-misc/smith/smith-0.2.0.ebuild
@@ -0,0 +1,75 @@
+# Copyright 2026 BaldEagleOS Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+RUST_MIN_VER="1.88.0"
+
+inherit cargo
+
+# Cargo.lock has over 300 crates; the bundled registry preserves lock checksums.
+ECARGO_VENDOR="${WORKDIR}/${P}-crates"
+
+DESCRIPTION="Agent Smith terminal assistant with local tools and central AIRouter sessions"
+HOMEPAGE="https://trunkmasters.com"
+SRC_URI="
+ https://distfiles.baldeagleos.com/${P}.tar.xz
+ https://distfiles.baldeagleos.com/${P}-crates.tar.xz
+"
+
+# Includes the statically linked Rust dependencies.
+LICENSE="Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD CDLA-Permissive-2.0 ISC MIT MIT-0 Unicode-3.0 ZLIB"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="sandbox test"
+RESTRICT="!test? ( test )"
+# Integration fixtures bind loopback sockets; they do not contact live services.
+PROPERTIES="test? ( test_network )"
+
+DEPEND="
+ dev-db/sqlite:3
+ dev-libs/openssl:0=
+"
+RDEPEND="
+ ${DEPEND}
+ net-misc/openssh
+ sandbox? ( sys-apps/bubblewrap )
+"
+BDEPEND="
+ virtual/pkgconfig
+ test? ( app-shells/bash sys-apps/coreutils )
+"
+
+src_configure() {
+ cargo_src_configure --frozen
+}
+
+src_compile() {
+ cargo_src_compile --bin smith
+}
+
+src_test() {
+ # The isolated sshd fixture needs root; bubblewrap namespace fixtures
+ # cannot run reliably inside Portage's own sandbox. Run these separately
+ # when qualifying upstream, along with the opt-in live rotation test.
+ local CARGO_SKIP_TESTS=(
+ openssh_bootstrap_and_installed_shape_cli
+ mtls_local_tools_and_central_resume_use_real_agent_state_machine
+ workspace_escape_conflicts_and_uncertain_operations_are_rejected
+ )
+ cargo_src_test --bin smith --test end_to_end
+}
+
+src_install() {
+ dobin "$(cargo_target_dir)/smith"
+ dodoc README.md DESIGN.md PRODUCT.md
+ dodoc config/smith.example.toml
+}
+
+pkg_postinst() {
+ elog "Run smith to start a conversation in the current directory."
+ elog "Up/Down recall prompts; Alt+Enter inserts a newline; /help lists controls."
+ elog "It uses your existing SSH access to alpha.trunkmasters.com."
+ elog "It follows your existing SSH identity, port and host-key settings."
+ elog "Optional settings: ~/.config/smith/smith.toml (example in /usr/share/doc/${PF})."
+}