@tloncorp/tlon-skill 0.1.2 → 0.1.4

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/README.md CHANGED
@@ -24,12 +24,43 @@ curl -L https://registry.npmjs.org/@tloncorp/tlon-skill-linux-x64/-/tlon-skill-l
24
24
 
25
25
  ## Configuration
26
26
 
27
+ **Option 1: CLI flags (highest priority)**
28
+ ```bash
29
+ # Pass credentials directly
30
+ tlon --url https://your-ship.tlon.network --ship ~your-ship --code sampel-ticlyt-migfun-falmel contacts self
31
+
32
+ # Or use a config file
33
+ tlon --config ~/ships/my-ship.json contacts self
34
+ ```
35
+
36
+ Config file format:
37
+ ```json
38
+ {"url": "https://your-ship.tlon.network", "ship": "~your-ship", "code": "sampel-ticlyt-migfun-falmel"}
39
+ ```
40
+
41
+ **Option 2: Environment variables**
27
42
  ```bash
28
43
  export URBIT_URL="https://your-ship.tlon.network"
29
44
  export URBIT_SHIP="~your-ship"
30
45
  export URBIT_CODE="sampel-ticlyt-migfun-falmel"
31
46
  ```
32
47
 
48
+ **Option 3: OpenClaw config**
49
+
50
+ If you have OpenClaw configured with a Tlon channel, credentials are loaded automatically.
51
+
52
+ ## Multi-Ship Usage
53
+
54
+ If you have credentials for multiple ships, you can operate on behalf of any of them by passing their credentials via CLI flags. This is useful for managing multiple identities, bot operations, or moon management:
55
+
56
+ ```bash
57
+ # Act as a different ship
58
+ tlon --config ~/ships/bot.json channels groups
59
+
60
+ # Or pass credentials directly
61
+ tlon --url https://bot.tlon.network --ship ~bot-ship --code bot-code contacts self
62
+ ```
63
+
33
64
  ## Usage
34
65
 
35
66
  ```bash
package/SKILL.md CHANGED
@@ -25,13 +25,48 @@ Replace `darwin-arm64` with `darwin-x64` or `linux-x64` as needed.
25
25
 
26
26
  ## Configuration
27
27
 
28
- Set environment variables:
28
+ **CLI Flags (highest priority):**
29
+ ```bash
30
+ # Pass all three credentials directly
31
+ tlon --url https://your-ship.tlon.network --ship ~your-ship --code sampel-ticlyt-migfun-falmel <command>
32
+
33
+ # Or load from a JSON config file
34
+ tlon --config ~/ships/my-ship.json <command>
35
+ ```
36
+
37
+ Config file format: `{"url": "...", "ship": "~...", "code": "..."}`
38
+
39
+ **Environment Variables:**
29
40
  ```bash
30
41
  export URBIT_URL="https://your-ship.tlon.network"
31
42
  export URBIT_SHIP="~your-ship"
32
43
  export URBIT_CODE="sampel-ticlyt-migfun-falmel"
33
44
  ```
34
45
 
46
+ **OpenClaw:** If configured with a Tlon channel, credentials load automatically.
47
+
48
+ **Resolution order:** CLI flags → `TLON_CONFIG_FILE` → `TLON_SHIP`+`TLON_SKILL_DIR` → `URBIT_*` env vars → OpenClaw config
49
+
50
+ ## Multi-Ship Usage
51
+
52
+ If you have credentials for multiple ships, you can use this skill to operate on behalf of any of them. This is useful for:
53
+
54
+ - **Managing multiple identities** — switch between ships without changing environment variables
55
+ - **Bot operations** — act as a bot ship while authenticated as yourself
56
+ - **Moon management** — operate moons from their parent planet
57
+
58
+ Simply pass the target ship's credentials via CLI flags:
59
+
60
+ ```bash
61
+ # Post to a channel as ~other-ship
62
+ tlon --url https://other-ship.tlon.network --ship ~other-ship --code their-access-code \
63
+ posts send chat/~host/channel "Hello from other-ship"
64
+
65
+ # Or keep credentials in config files
66
+ tlon --config ~/ships/bot.json channels groups
67
+ tlon --config ~/ships/moon.json contacts self
68
+ ```
69
+
35
70
  ## Commands
36
71
 
37
72
  ### Activity
@@ -160,6 +195,16 @@ tlon notebook diary/~host/slug "Title" --content file.md # Post from file
160
195
  tlon notebook diary/~host/slug "Title" --image <url> # Post with image
161
196
  ```
162
197
 
198
+ ### Upload
199
+
200
+ Upload images to Tlon storage.
201
+
202
+ ```bash
203
+ tlon upload https://example.com/image.png # Upload image from URL
204
+ ```
205
+
206
+ Returns the uploaded image URL for use in posts, profiles, etc.
207
+
163
208
  ### Settings (OpenClaw)
164
209
 
165
210
  Manage OpenClaw's Tlon plugin config via Urbit settings-store. Changes apply immediately without gateway restart.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@tloncorp/tlon-skill",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Tlon/Urbit skill for OpenClaw agents",
5
5
  "type": "module",
6
6
  "bin": {
7
- "tlon-run": "./bin/tlon-run.js"
7
+ "tlon": "./bin/tlon.js"
8
8
  },
9
9
  "files": [
10
10
  "bin/",
@@ -17,9 +17,10 @@
17
17
  "test": "bun test"
18
18
  },
19
19
  "optionalDependencies": {
20
- "@tloncorp/tlon-skill-darwin-arm64": "0.1.2",
21
- "@tloncorp/tlon-skill-darwin-x64": "0.1.2",
22
- "@tloncorp/tlon-skill-linux-x64": "0.1.2"
20
+ "@tloncorp/tlon-skill-darwin-arm64": "0.1.3",
21
+ "@tloncorp/tlon-skill-darwin-x64": "0.1.3",
22
+ "@tloncorp/tlon-skill-linux-x64": "0.1.3",
23
+ "@tloncorp/tlon-skill-linux-arm64": "0.1.3"
23
24
  },
24
25
  "devDependencies": {
25
26
  "@tloncorp/api": "git+https://github.com/tloncorp/api-beta.git#main",
File without changes