clasp-ai 0.52.0 → 0.53.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clasp-ai",
3
- "version": "0.52.0",
3
+ "version": "0.53.0",
4
4
  "description": "Claude Language Agent Super Proxy - Translate Claude/Anthropic API calls to OpenAI-compatible endpoints",
5
5
  "author": "jedarden",
6
6
  "license": "MIT",
@@ -12,7 +12,7 @@ const path = require('path');
12
12
  const { execSync } = require('child_process');
13
13
  const os = require('os');
14
14
 
15
- const VERSION = '0.52.0';
15
+ const VERSION = '0.53.0';
16
16
  const REPO = 'jedarden/CLASP';
17
17
  const BINARY_NAME = 'clasp';
18
18
 
@@ -123,10 +123,29 @@ while IFS= read -r line; do
123
123
  echo -e "${GRAY} └─ in: $PATH_ARG${NC}"
124
124
  fi
125
125
  ;;
126
- "TodoWrite")
127
- TODO_COUNT=$(echo "$TOOL_INPUT" | jq -r '.todos | length // 0' 2>/dev/null)
128
- echo -e "${CYAN}${BOLD}▶ TodoWrite:${NC} ${WHITE}$TODO_COUNT items${NC}"
129
- echo "$TOOL_INPUT" | jq -r '.todos[]? | " " + (if .status == "completed" then "✅" elif .status == "in_progress" then "🔄" else "⏳" end) + " " + .content' 2>/dev/null | head -8
126
+ "TaskCreate")
127
+ SUBJECT=$(echo "$TOOL_INPUT" | jq -r '.subject // empty' 2>/dev/null)
128
+ echo -e "${CYAN}${BOLD}▶ TaskCreate:${NC} ${WHITE}$SUBJECT${NC}"
129
+ ;;
130
+ "TaskGet")
131
+ TASK_ID=$(echo "$TOOL_INPUT" | jq -r '.taskId // empty' 2>/dev/null)
132
+ echo -e "${CYAN}${BOLD}▶ TaskGet:${NC} ${WHITE}ID: $TASK_ID${NC}"
133
+ ;;
134
+ "TaskUpdate")
135
+ TASK_ID=$(echo "$TOOL_INPUT" | jq -r '.taskId // empty' 2>/dev/null)
136
+ STATUS=$(echo "$TOOL_INPUT" | jq -r '.status // empty' 2>/dev/null)
137
+ if [ -n "$STATUS" ] && [ "$STATUS" != "null" ]; then
138
+ echo -e "${CYAN}${BOLD}▶ TaskUpdate:${NC} ${WHITE}ID: $TASK_ID → $STATUS${NC}"
139
+ else
140
+ echo -e "${CYAN}${BOLD}▶ TaskUpdate:${NC} ${WHITE}ID: $TASK_ID${NC}"
141
+ fi
142
+ ;;
143
+ "TaskList")
144
+ echo -e "${CYAN}${BOLD}▶ TaskList${NC}"
145
+ ;;
146
+ "TaskStop")
147
+ TASK_ID=$(echo "$TOOL_INPUT" | jq -r '.task_id // .shell_id // empty' 2>/dev/null)
148
+ echo -e "${CYAN}${BOLD}▶ TaskStop:${NC} ${WHITE}ID: $TASK_ID${NC}"
130
149
  ;;
131
150
  "Task")
132
151
  DESC=$(echo "$TOOL_INPUT" | jq -r '.description // empty' 2>/dev/null)