agentk8 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agentk +9 -7
- package/lib/core.sh +15 -16
- package/package.json +1 -1
package/agentk
CHANGED
|
@@ -186,19 +186,21 @@ handle_command() {
|
|
|
186
186
|
cmd_status() {
|
|
187
187
|
print_section "Agent Status"
|
|
188
188
|
|
|
189
|
-
local agents
|
|
189
|
+
local agents
|
|
190
190
|
case "$AGENTK_MODE" in
|
|
191
|
-
dev) agents=
|
|
192
|
-
ml) agents=
|
|
191
|
+
dev) agents="orchestrator engineer tester security scout" ;;
|
|
192
|
+
ml) agents="orchestrator researcher ml-engineer data-engineer evaluator scout" ;;
|
|
193
193
|
esac
|
|
194
194
|
|
|
195
|
-
for agent in
|
|
195
|
+
for agent in $agents; do
|
|
196
196
|
local status
|
|
197
197
|
status=$(get_agent_status "$agent")
|
|
198
198
|
local message=""
|
|
199
|
+
local task_id
|
|
200
|
+
task_id=$(_get_agent_task "$agent" 2>/dev/null || echo "")
|
|
199
201
|
|
|
200
|
-
if [[ -n "$
|
|
201
|
-
message=$(get_task_field "$
|
|
202
|
+
if [[ -n "$task_id" ]]; then
|
|
203
|
+
message=$(get_task_field "$task_id" "prompt" 2>/dev/null | head -c 40)
|
|
202
204
|
[[ ${#message} -eq 40 ]] && message="${message}..."
|
|
203
205
|
fi
|
|
204
206
|
|
|
@@ -279,7 +281,7 @@ cmd_visual() {
|
|
|
279
281
|
cmd_exit() {
|
|
280
282
|
print_info "Ending session..."
|
|
281
283
|
end_session
|
|
282
|
-
|
|
284
|
+
kill_all_agents
|
|
283
285
|
echo
|
|
284
286
|
echo "${GREEN}Goodbye!${RESET}"
|
|
285
287
|
exit 0
|
package/lib/core.sh
CHANGED
|
@@ -8,7 +8,7 @@ set -euo pipefail
|
|
|
8
8
|
# CONSTANTS
|
|
9
9
|
# =============================================================================
|
|
10
10
|
|
|
11
|
-
AGENTK_VERSION="1.0.
|
|
11
|
+
AGENTK_VERSION="1.0.2"
|
|
12
12
|
AGENTK_ROOT="${AGENTK_ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)}"
|
|
13
13
|
AGENTK_WORKSPACE="${AGENTK_ROOT}/workspace"
|
|
14
14
|
CLAUDE_KNOWLEDGE_CUTOFF="2024-04"
|
|
@@ -231,21 +231,20 @@ generate_task_id() {
|
|
|
231
231
|
# =============================================================================
|
|
232
232
|
|
|
233
233
|
check_dependencies() {
|
|
234
|
-
local
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
log_info "Install with: brew install ${missing[*]}"
|
|
234
|
+
local has_jq has_claude
|
|
235
|
+
has_jq=$(command -v jq 2>/dev/null)
|
|
236
|
+
has_claude=$(command -v claude 2>/dev/null)
|
|
237
|
+
|
|
238
|
+
# Check required dependencies
|
|
239
|
+
if [[ -z "$has_jq" ]] || [[ -z "$has_claude" ]]; then
|
|
240
|
+
if [[ -z "$has_jq" ]]; then
|
|
241
|
+
log_error "Missing dependency: jq"
|
|
242
|
+
log_info "Install with: brew install jq"
|
|
243
|
+
fi
|
|
244
|
+
if [[ -z "$has_claude" ]]; then
|
|
245
|
+
log_error "Missing dependency: claude (Claude Code CLI)"
|
|
246
|
+
log_info "Install from: https://claude.ai/code"
|
|
247
|
+
fi
|
|
249
248
|
exit 1
|
|
250
249
|
fi
|
|
251
250
|
|