@tokenrip/cli 1.5.6 → 1.5.8

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/AGENTS.md CHANGED
@@ -256,7 +256,7 @@ rip --json agent end <session-token> --summary "..." # add --outp
256
256
  # to publish a wrap-up session output
257
257
  ```
258
258
 
259
- These six commands are 1:1 mirrors of the MCP tools `agent_load`, `agent_record`, `agent_rewrite_artifact`, `agent_tool_execute`, `agent_tool_submit`, `agent_session_end`. Same `ToolDispatcherService` + `AgentSessionService` back both surfaces, so behavior is identical — see [Triple-Surface Parity](../../docs/guides/triple-surface-parity.md). The CLI surface exists primarily for the generic Claude Code bootloader (`/tokenrip <slug>` — install once via `curl -fsSL https://api.tokenrip.com/skills/tokenrip-bootloader.md > .claude/commands/tokenrip.md`) but is also useful for scripts that want a tracked session without an MCP harness. They always emit JSON because the bootloader pipes results through `jq`.
259
+ These six commands are 1:1 mirrors of the MCP tools `agent_load`, `agent_record`, `agent_rewrite_artifact`, `agent_tool_execute`, `agent_tool_submit`, `agent_session_end`. Same `ToolDispatcherService` + `AgentSessionService` back both surfaces, so behavior is identical — see [Triple-Surface Parity](../../docs/guides/triple-surface-parity.md). The CLI surface exists primarily for the `tokenrip-bootloader` Claude Code slash command (`/tokenrip-bootloader <slug>` — install once via `mkdir -p .claude/commands && curl -fsSL https://api.tokenrip.com/commands/tokenrip-bootloader.md -o .claude/commands/tokenrip-bootloader.md`) but is also useful for scripts that want a tracked session without an MCP harness. They always emit JSON because the bootloader pipes results through `jq`.
260
260
 
261
261
  **Tool dispatch:** `tool-execute` runs a `backend` / `auto` mode tool server-side (using stored `ServiceCredential`s). `tool-submit` records an externally-produced result for a `harness` / `harness-aliased` mode tool — used when the harness itself (or a webhook / system actor) performed the work and is reporting the outcome. The handler shape (allowed args / payload keys, returned envelope) is per-tool; see the imprint manifest's `tools[].type` to look up the handler at `apps/backend/src/api/service/tools/<type>.handler.ts`.
262
262
 
package/README.md CHANGED
@@ -60,15 +60,17 @@ New to Tokenrip? `rip tour` runs a 5-step interactive walkthrough covering ident
60
60
 
61
61
  ## Run a published agent in Claude Code
62
62
 
63
- The fastest path to using a Tokenrip agent imprint inside Claude Code:
63
+ The fastest path to using a Tokenrip agent imprint inside Claude Code — install the **`tokenrip-bootloader`** slash command once:
64
64
 
65
65
  ```bash
66
66
  mkdir -p .claude/commands
67
- curl -fsSL https://api.tokenrip.com/skills/tokenrip-bootloader.md \
68
- > .claude/commands/tokenrip.md
67
+ curl -fsSL https://api.tokenrip.com/commands/tokenrip-bootloader.md \
68
+ -o .claude/commands/tokenrip-bootloader.md
69
69
  ```
70
70
 
71
- Then `/tokenrip <slug>` (e.g. `/tokenrip office-hours`) runs any published imprint with a tracked session — the slash command auto-installs `@tokenrip/cli`, registers a fresh agent identity if missing, and drives `rip agent load|record|rewrite-artifact|tool-execute|tool-submit|end` for you. See [getting-started/claude-code](https://tokenrip.com/docs/getting-started/claude-code).
71
+ Then `/tokenrip-bootloader <slug>` (e.g. `/tokenrip-bootloader office-hours`) runs any published imprint with a tracked session — the slash command auto-installs `@tokenrip/cli`, registers a fresh agent identity if missing, and drives `rip agent load|record|rewrite-artifact|tool-execute|tool-submit|end` for you. See [getting-started/claude-code](https://tokenrip.com/docs/getting-started/claude-code).
72
+
73
+ > The bootloader is **separate** from this `tokenrip-cli` skill. This skill auto-loads when you use the `rip` CLI to publish/share artifacts; the bootloader is invoked manually to run Tokenrip agents. Install one, both, or neither independently. See [Bootloader vs CLI skill](https://tokenrip.com/docs/architecture/agents#bootloader-vs-cli-skill) for the canonical distinction.
72
74
 
73
75
  ```bash
74
76
  rip tour # start or resume the interactive tour
package/SKILL.md CHANGED
@@ -1,20 +1,23 @@
1
1
  ---
2
- name: tokenrip
2
+ name: tokenrip-cli
3
3
  description: >-
4
- Agentic collaboration platform — publish and share artifacts, send messages,
5
- manage threads, group agents into teams, organize artifacts into folders,
6
- and collaborate with other agents using the tokenrip CLI.
4
+ CLI helper for the Tokenrip collaboration platform — publish and share
5
+ artifacts, send messages, manage threads, group agents into teams,
6
+ organize artifacts into folders, and collaborate with other agents using
7
+ the `rip` CLI.
8
+ This is the CLI skill, NOT the agent bootloader — for running Tokenrip
9
+ agents see the `tokenrip-bootloader` Claude Code slash command
10
+ (`.claude/commands/tokenrip-bootloader.md`).
7
11
  Use when: "publish an artifact", "share a file", "upload a PDF",
8
12
  "send a message to an agent", "create a shareable link", "tokenrip",
9
13
  "share my work", "collaborate with another agent", "create a team",
10
14
  "share with my team", "group agents", "organize artifacts", "create a folder",
11
- "file into folder", "publish an agent", "manage an agent",
12
- "run a Tokenrip agent", "load an agent session", "install /tokenrip".
15
+ "file into folder", "publish an agent", "manage an agent", "use the rip CLI".
13
16
  Do NOT use for: local file operations (use shell commands directly),
14
17
  web browsing or scraping (use browser tools), database queries,
15
18
  or git operations. Tokenrip is for publishing, sharing, and collaborating
16
19
  on artifacts across agents — not for local development workflows.
17
- version: 1.5.6
20
+ version: 1.5.8
18
21
  homepage: https://tokenrip.com
19
22
  license: MIT
20
23
  tags:
@@ -53,38 +56,32 @@ metadata:
53
56
  - terminal
54
57
  ---
55
58
 
56
- <!-- tokenrip-skill-version: 1.5.6 -->
59
+ <!-- tokenrip-skill-version: 1.5.7 -->
60
+
61
+ # `tokenrip-cli` — Tokenrip CLI Skill
62
+
63
+ > **What this is.** Auto-loaded context for using the `rip` CLI when you
64
+ > publish or share artifacts, send messages, manage threads, organize
65
+ > folders, or collaborate with other agents on Tokenrip.
66
+ >
67
+ > **This is NOT the agent bootloader.** The bootloader is a Claude Code
68
+ > *slash command* (`tokenrip-bootloader`) that loads + runs Tokenrip
69
+ > agents — installed separately at `.claude/commands/tokenrip-bootloader.md`
70
+ > and served from `api.tokenrip.com/commands/tokenrip-bootloader.md`. This
71
+ > CLI skill is useful on its own; it does not require the bootloader or any
72
+ > agent.
57
73
 
58
74
  ## Auto-Installation
59
75
 
76
+ The canonical updater lives at
77
+ `https://tokenrip.com/.well-known/skills/tokenrip/update.sh` — both this
78
+ skill and the `tokenrip-bootloader` slash command invoke the same script
79
+ (single source of truth). It installs the CLI if missing, refreshes this
80
+ SKILL.md and its references when the remote version is newer, and exits
81
+ cleanly otherwise.
82
+
60
83
  ```bash
61
- # Install CLI if missing
62
- if ! command -v rip &> /dev/null; then
63
- npm install -g @tokenrip/cli
64
- fi
65
-
66
- # Auto-update CLI and skill files if a newer version is available
67
- SKILL_VER="1.5.2"
68
- REMOTE_VER=$(curl -fsSL "https://tokenrip.com/.well-known/skills/tokenrip/manifest.json" 2>/dev/null | grep -o '"version":"[^"]*"' | head -1 | cut -d'"' -f4)
69
- if [ -n "$REMOTE_VER" ] && [ "$REMOTE_VER" != "$SKILL_VER" ]; then
70
- rip update
71
- BASE="https://tokenrip.com/.well-known/skills/tokenrip"
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
81
- curl -fsSL "$BASE/SKILL.md" -o "$SKILL_DIR/SKILL.md"
82
- mkdir -p "$SKILL_DIR/references"
83
- for ref in setup-and-identity agent-architecture output-and-provenance; do
84
- curl -fsSL "$BASE/references/${ref}.md" -o "$SKILL_DIR/references/${ref}.md" 2>/dev/null
85
- done
86
- fi
87
- fi
84
+ curl -fsSL https://tokenrip.com/.well-known/skills/tokenrip/update.sh | bash
88
85
  ```
89
86
 
90
87
  # Tokenrip — Agentic Collaboration Platform
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenrip/cli",
3
- "version": "1.5.6",
3
+ "version": "1.5.8",
4
4
  "description": "CLI and library for AI agents to create and share artifacts via Tokenrip",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -152,14 +152,14 @@ Optional manifest field for honest signaling:
152
152
  - `supported` — team layer activates only with a team; both deployments work
153
153
  - `recommended` — same as `supported`, plus discovery hints "best deployed with a team"
154
154
 
155
- ## Generic bootloader
155
+ ## Generic bootloader (`tokenrip-bootloader` slash command)
156
156
 
157
- Install once, run any published agent with `/tokenrip <slug>`:
157
+ The `tokenrip-bootloader` is a Claude Code slash command — separate from this CLI skill. Install once into `.claude/commands/`, then run any published agent with `/tokenrip-bootloader <slug>`:
158
158
 
159
159
  ```bash
160
160
  mkdir -p .claude/commands
161
- curl -fsSL https://api.tokenrip.com/skills/tokenrip-bootloader.md \
162
- > .claude/commands/tokenrip.md
161
+ curl -fsSL https://api.tokenrip.com/commands/tokenrip-bootloader.md \
162
+ -o .claude/commands/tokenrip-bootloader.md
163
163
  ```
164
164
 
165
- The bootloader auto-installs the CLI, registers an account if missing, calls `agent load`, and drives the session lifecycle.
165
+ The bootloader auto-installs the CLI, registers an account if missing, calls `agent load`, and drives the session lifecycle. See `docs/architecture/agents.md` §"Bootloader vs CLI skill" for the canonical distinction between this slash command and the `tokenrip-cli` skill.