This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
cargo run -- dictionary generate
|
||||
cargo run -- run logger --payload '{"message":"hello from codex"}'
|
||||
|
||||
echo "logger dispatched; see logs/controller-actions.jsonl"
|
||||
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
command -v rustc >/dev/null
|
||||
command -v cargo >/dev/null
|
||||
|
||||
if [[ -x /opt/homebrew/bin/llama-server ]]; then
|
||||
echo "llama-server: /opt/homebrew/bin/llama-server"
|
||||
else
|
||||
command -v llama-server >/dev/null
|
||||
echo "llama-server: $(command -v llama-server)"
|
||||
fi
|
||||
|
||||
mkdir -p dictionary logs runtime
|
||||
cargo build
|
||||
cargo run -- dictionary generate
|
||||
|
||||
echo "codex setup complete"
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
cargo fmt --check
|
||||
cargo test
|
||||
cargo run -- dictionary generate
|
||||
|
||||
test -s dictionary/actions.jsonl
|
||||
test -s dictionary/actions.index.json
|
||||
|
||||
echo "precommit check complete"
|
||||
Reference in New Issue
Block a user