`argc build` returns an `jq` error
Pizmovc opened this issue · 1 comments
Pizmovc commented
Describe the bug
I cloned the repo at 970ed06, created tools.txt
and agents.txt
files, ran argc build
and the following error gets printed:
❯ argc build
jq: error (at <stdin>:28): null (null) cannot be matched, as it is not a string
Build functions.json
Build tool get_current_weather.sh
jq: error (at <stdin>:78): Cannot iterate over null (null)
Build agents/todo-sh/functions.json
Build agent todo-sh
To Reproduce
- repo is at 970ed06
- tools.txt contains
get_current_weather.sh
- agents.txt contains
todo-sh
- run
argc build
Expected behavior
functions.json
is something else than an empty array ([]
) I'm guessing.
Screenshots/Logs
❯ git --no-pager log -n 1
commit 970ed06d2b5759e8d17aeed55fbfde591fb0ff84 (HEAD -> main, origin/main, origin/HEAD)
Author: sigoden <sigoden@gmail.com>
Date: Sat Jun 29 07:07:33 2024 +0800
refactor: remove scripts/crawler.mjs (#53)
❯ git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
❯ cat -p tools.txt
get_current_weather.sh
❯ cat -p agents.txt
todo-sh
❯ cat -p functions.json
[]
❯ tree bin
bin
├── get_current_weather -> /home/$USER/projects/llm-functions/scripts/run-tool.sh
└── todo-sh -> /home/$USER/projects/llm-functions/scripts/run-agent.sh
Environment
❯ argc version
Linux $HOSTNAME 6.6.32 #1-NixOS SMP PREEMPT_DYNAMIC Sat May 25 14:22:56 UTC 2024 x86_64 GNU/Linux
argc 1.14.0
jq-1.7.1
Unknown option `--argc-shell-path`
Unknown option `--argc-shell-path`
/home/$USER/projects/llm-functions/Argcfile.sh: line 486: : command not found
/run/current-system/sw/bin/python Python 3.11.9
Additional context
I'm guessing argc
is out of date too much?
sigoden commented
Your argc version is too old. Please install the latest version of argc (v1.19.0).