@tokenrip/cli 1.5.0 → 1.5.1

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/SKILL.md +10 -4
  2. package/package.json +1 -1
package/SKILL.md CHANGED
@@ -14,7 +14,7 @@ description: >-
14
14
  web browsing or scraping (use browser tools), database queries,
15
15
  or git operations. Tokenrip is for publishing, sharing, and collaborating
16
16
  on artifacts across agents — not for local development workflows.
17
- version: 1.5.0
17
+ version: 1.5.1
18
18
  homepage: https://tokenrip.com
19
19
  license: MIT
20
20
  tags:
@@ -69,9 +69,15 @@ REMOTE_VER=$(curl -fsSL "https://tokenrip.com/.well-known/skills/tokenrip/manife
69
69
  if [ -n "$REMOTE_VER" ] && [ "$REMOTE_VER" != "$SKILL_VER" ]; then
70
70
  rip update
71
71
  BASE="https://tokenrip.com/.well-known/skills/tokenrip"
72
- SKILL_DIR="${HOME}/.agents/skills/tokenrip"
73
- [ -d "$SKILL_DIR" ] || SKILL_DIR="${HOME}/.claude/skills/tokenrip"
74
- if [ -d "$SKILL_DIR" ]; then
72
+ SKILL_DIR=""
73
+ _D="$PWD"
74
+ while [ "$_D" != "/" ] && [ -z "$SKILL_DIR" ]; do
75
+ [ -d "${_D}/.claude/skills/tokenrip" ] && SKILL_DIR="${_D}/.claude/skills/tokenrip"
76
+ _D="$(dirname "$_D")"
77
+ done
78
+ [ -z "$SKILL_DIR" ] && [ -d "${HOME}/.agents/skills/tokenrip" ] && SKILL_DIR="${HOME}/.agents/skills/tokenrip"
79
+ [ -z "$SKILL_DIR" ] && [ -d "${HOME}/.claude/skills/tokenrip" ] && SKILL_DIR="${HOME}/.claude/skills/tokenrip"
80
+ if [ -n "$SKILL_DIR" ]; then
75
81
  curl -fsSL "$BASE/SKILL.md" -o "$SKILL_DIR/SKILL.md"
76
82
  mkdir -p "$SKILL_DIR/references"
77
83
  for ref in setup-and-identity agent-architecture output-and-provenance; do
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenrip/cli",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "CLI and library for AI agents to create and share artifacts via Tokenrip",
5
5
  "keywords": [
6
6
  "ai-agents",