diff --git a/src/copilot-shell/component.toml b/src/copilot-shell/component.toml new file mode 100644 index 000000000..a710c777b --- /dev/null +++ b/src/copilot-shell/component.toml @@ -0,0 +1,28 @@ +manifest_version = 2 +anolisa_min_version = "0.1.0" + +[component] +name = "cosh" +version = "2.5.0" +layer = "runtime" +domain = "tools" +description = "Copilot shell launcher and deterministic CLI gateway" +stability = "experimental" + +[install] +modes = ["system"] + +[backends.rpm] +package = "copilot-shell" + +[environment] +requires_os = "linux" +requires_arch = ["x86_64", "aarch64"] + +[dependencies] +runtime = ["node>=20"] + +[[health_checks]] +name = "launcher" +kind = "command" +command = "{bindir}/cosh --version" diff --git a/src/copilot-shell/copilot-shell.spec.in b/src/copilot-shell/copilot-shell.spec.in index c00cf2a46..a7289fede 100644 --- a/src/copilot-shell/copilot-shell.spec.in +++ b/src/copilot-shell/copilot-shell.spec.in @@ -15,6 +15,7 @@ Requires: nodejs >= 20 Requires(post): lua Requires(postun): lua Provides: %{_bindir}/co %{_bindir}/copilot %{_bindir}/cosh +Provides: anolisa-component(cosh) %description Copilot Shell - Entrance to AI-native OS. @@ -30,12 +31,15 @@ make build %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} PREFIX=%{_prefix} +install -d %{buildroot}%{_datadir}/anolisa/components/cosh +install -m 0644 component.toml %{buildroot}%{_datadir}/anolisa/components/cosh/component.toml %files %license %{_docdir}/%{name}/LICENSE %doc %{_docdir}/%{name}/README.md %{_prefix}/lib/%{name} %{_datadir}/%{name} +%{_datadir}/anolisa/components/cosh/component.toml %{_bindir}/co %{_bindir}/copilot %{_bindir}/cosh