skillpull 0.4.0 → 0.4.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/skillpull +15 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillpull",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Sync AI agent skills from Git repositories to Claude, Codex, Kiro, and Cursor",
5
5
  "bin": {
6
6
  "skillpull": "./skillpull"
package/skillpull CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
  set -euo pipefail
3
3
 
4
- VERSION="0.4.0"
4
+ VERSION="0.4.2"
5
5
  MANIFEST_FILE=".skillpull.json"
6
6
  TMPDIR_PREFIX="skillpull"
7
7
  CONFIG_DIR="$HOME/.config/skillpull"
@@ -951,7 +951,11 @@ cmd_alias() {
951
951
  }
952
952
 
953
953
  cmd_search() {
954
- local keyword="$1"
954
+ local keyword="${1:-}"
955
+ if [[ -z "$keyword" && -t 0 ]]; then
956
+ printf " Search keyword: "
957
+ read -r keyword
958
+ fi
955
959
  [[ -z "$keyword" ]] && { err "Usage: skillpull search <keyword>"; return 1; }
956
960
 
957
961
  dim "Searching GitHub for '$keyword' ..."
@@ -1160,7 +1164,15 @@ main() {
1160
1164
  done
1161
1165
  ;;
1162
1166
  list)
1163
- [[ -z "$repo_url" ]] && { err "Missing source"; usage; exit 1; }
1167
+ if [[ -z "$repo_url" ]]; then
1168
+ local reg; reg="$(read_config_key "registry")"
1169
+ if [[ -z "$reg" ]]; then
1170
+ err "No source specified and no registry set."
1171
+ err "Run 'skillpull init' to set a default skill repo."
1172
+ exit 1
1173
+ fi
1174
+ repo_url="$reg"
1175
+ fi
1164
1176
  local resolved; resolved="$(resolve_repo_url "$repo_url")" || exit 1
1165
1177
  cmd_list "$resolved"
1166
1178
  ;;