Include agent definitions and skills in the development bundle
This commit is contained in:
@@ -113,8 +113,6 @@
|
||||
substituteInPlace userland/brush/build.nu --replace-fail \
|
||||
${pkgs.lib.escapeShellArg "if (^git -C $source rev-parse HEAD | str trim) != $revision { error make {msg: 'unexpected brush revision'} }"} \
|
||||
'# Revision verified by the fixed-output Nix fetch.'
|
||||
substituteInPlace userland/bundle.nu --replace-fail \
|
||||
'userland extensions Cargo.toml' 'userland extensions agents skills Cargo.toml'
|
||||
patchShebangs userland/cwd-init/link.nu
|
||||
'';
|
||||
preBuild = ''
|
||||
|
||||
+2
-2
@@ -41,14 +41,14 @@ def main [destination?: path] {
|
||||
if ($snapshot | path exists) { rm --recursive --force $snapshot }
|
||||
mkdir $snapshot
|
||||
let archive = ($destination | path join source.tar)
|
||||
^git -C $repo archive --output $archive HEAD host vfs userland extensions Cargo.toml Cargo.lock flake.nix flake.lock README.md AGENTS.md .gitignore
|
||||
^git -C $repo archive --output $archive HEAD host vfs userland extensions agents skills Cargo.toml Cargo.lock flake.nix flake.lock README.md AGENTS.md .gitignore
|
||||
if $env.LAST_EXIT_CODE != 0 { error make {msg: 'source archive failed'} }
|
||||
^tar -xf $archive -C $snapshot
|
||||
if $env.LAST_EXIT_CODE != 0 { error make {msg: 'source extraction failed'} }
|
||||
rm $archive
|
||||
^git -C $snapshot init --quiet --initial-branch=main
|
||||
if $env.LAST_EXIT_CODE != 0 { error make {msg: 'source git init failed'} }
|
||||
^git -C $snapshot add host vfs userland extensions Cargo.toml Cargo.lock flake.nix flake.lock README.md AGENTS.md .gitignore
|
||||
^git -C $snapshot add host vfs userland extensions agents skills Cargo.toml Cargo.lock flake.nix flake.lock README.md AGENTS.md .gitignore
|
||||
if $env.LAST_EXIT_CODE != 0 { error make {msg: 'source git add failed'} }
|
||||
with-env {
|
||||
GIT_AUTHOR_NAME: 'Sausage', GIT_AUTHOR_EMAIL: 'sausage@localhost',
|
||||
|
||||
Reference in New Issue
Block a user