Convert gitgram/ and aitimemachine/ from embedded git repos (which showed as opaque submodule gitlinks on GitHub) into fully-tracked first-party content. AITM now merges its 7 vendored repos as first-party engines: - memory: beads (Go task DAG) + context7 (docs SDK), unified into saved_contexts - git: vendored C git (bundled binary) + gitnexus (in-process code intelligence) - agentic: a2a (@a2a-js/sdk) + pal (AITM-managed Python subprocess) Includes the full session's product build: Gitgram web/mobile/backend features, AITM website/CLI/MCP, the unified memory layer, engine build tooling (scripts/build-engines.sh, Dockerfile, CI), docs (README, ENGINES.md, ARCHITECTURE.md), and extensive test suites. Build artifacts, node_modules, external/, and gemini-cli are gitignored. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
55 lines
1.6 KiB
Nix
55 lines
1.6 KiB
Nix
{ pkgs, self, ... }:
|
|
let
|
|
bdBase = pkgs.callPackage ./default.nix {
|
|
inherit self;
|
|
buildGoModule = pkgs.buildGo126Module;
|
|
};
|
|
|
|
# Wrap the base package with shell completions baked in
|
|
bd = pkgs.stdenv.mkDerivation {
|
|
pname = "beads";
|
|
version = bdBase.version;
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp ${bdBase}/bin/bd $out/bin/bd
|
|
|
|
# Create 'beads' alias symlink
|
|
ln -s bd $out/bin/beads
|
|
|
|
# Generate shell completions
|
|
mkdir -p $out/share/fish/vendor_completions.d
|
|
mkdir -p $out/share/bash-completion/completions
|
|
mkdir -p $out/share/zsh/site-functions
|
|
|
|
$out/bin/bd completion fish > $out/share/fish/vendor_completions.d/bd.fish
|
|
$out/bin/bd completion bash > $out/share/bash-completion/completions/bd
|
|
$out/bin/bd completion zsh > $out/share/zsh/site-functions/_bd
|
|
'';
|
|
|
|
meta = bdBase.meta;
|
|
};
|
|
default = bd;
|
|
in
|
|
{
|
|
inherit default bd;
|
|
|
|
# Separate completion packages for users who only want specific shells
|
|
fish-completions = pkgs.runCommand "bd-fish-completions" { } ''
|
|
mkdir -p $out/share/fish/vendor_completions.d
|
|
ln -s ${bd}/share/fish/vendor_completions.d/bd.fish $out/share/fish/vendor_completions.d/bd.fish
|
|
'';
|
|
|
|
bash-completions = pkgs.runCommand "bd-bash-completions" { } ''
|
|
mkdir -p $out/share/bash-completion/completions
|
|
ln -s ${bd}/share/bash-completion/completions/bd $out/share/bash-completion/completions/bd
|
|
'';
|
|
|
|
zsh-completions = pkgs.runCommand "bd-zsh-completions" { } ''
|
|
mkdir -p $out/share/zsh/site-functions
|
|
ln -s ${bd}/share/zsh/site-functions/_bd $out/share/zsh/site-functions/_bd
|
|
'';
|
|
}
|