bsky-cli 1.0.0 → 1.0.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.
- package/CHANGELOG.md +10 -1
- package/README.md +12 -4
- package/dist/index.js +5 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -122,6 +122,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
122
122
|
- Minimal dependency footprint
|
|
123
123
|
- Optimized image upload process
|
|
124
124
|
|
|
125
|
+
## [1.0.1] - 2026-02-07
|
|
126
|
+
|
|
127
|
+
### Changed
|
|
128
|
+
- Renamed npm package from `bluesky-cli` to `bsky-cli` (name availability)
|
|
129
|
+
- Published to npm registry: `npm install -g bsky-cli`
|
|
130
|
+
- Added npx support: `npx bsky-cli <command>`
|
|
131
|
+
- Updated badges to show npm version and downloads
|
|
132
|
+
|
|
125
133
|
## [Unreleased]
|
|
126
134
|
|
|
127
135
|
### Planned Features
|
|
@@ -138,4 +146,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
138
146
|
|
|
139
147
|
---
|
|
140
148
|
|
|
141
|
-
[1.0.
|
|
149
|
+
[1.0.1]: https://github.com/agileguy/bluesky-cli/releases/tag/v1.0.1
|
|
150
|
+
[1.0.0]: https://github.com/agileguy/bluesky-cli/releases/tag/v1.0.0
|
package/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# Bluesky CLI
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/bsky-cli)
|
|
4
|
+
[](https://www.npmjs.com/package/bsky-cli)
|
|
3
5
|
[](https://opensource.org/licenses/MIT)
|
|
4
|
-
[](https://github.com/agileguy/bluesky-cli)
|
|
5
6
|
|
|
6
7
|
A powerful command-line interface for the Bluesky social network, built on the AT Protocol. Post, interact, and manage your Bluesky presence directly from your terminal.
|
|
7
8
|
|
|
@@ -17,16 +18,23 @@ A powerful command-line interface for the Bluesky social network, built on the A
|
|
|
17
18
|
|
|
18
19
|
## Installation
|
|
19
20
|
|
|
20
|
-
### Using
|
|
21
|
+
### Using npm
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install -g bsky-cli
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Using Bun
|
|
21
28
|
|
|
22
29
|
```bash
|
|
23
30
|
bun install -g bsky-cli
|
|
24
31
|
```
|
|
25
32
|
|
|
26
|
-
### Using
|
|
33
|
+
### Using npx (no install)
|
|
27
34
|
|
|
28
35
|
```bash
|
|
29
|
-
|
|
36
|
+
npx bsky-cli login
|
|
37
|
+
npx bsky-cli post "Hello world!"
|
|
30
38
|
```
|
|
31
39
|
|
|
32
40
|
## Quick Start
|
package/dist/index.js
CHANGED
|
@@ -56580,16 +56580,19 @@ var SUPPORTED_IMAGE_TYPES = {
|
|
|
56580
56580
|
".webp": "image/webp",
|
|
56581
56581
|
".gif": "image/gif"
|
|
56582
56582
|
};
|
|
56583
|
+
function unescapeShellText(text) {
|
|
56584
|
+
return text.replace(/\\!/g, "!").replace(/\\\$/g, "$").replace(/\\`/g, "`").replace(/\\"/g, '"').replace(/\\\\/g, "\\");
|
|
56585
|
+
}
|
|
56583
56586
|
async function readPostText(text) {
|
|
56584
56587
|
if (text) {
|
|
56585
|
-
return text;
|
|
56588
|
+
return unescapeShellText(text);
|
|
56586
56589
|
}
|
|
56587
56590
|
if (!process.stdin.isTTY) {
|
|
56588
56591
|
const chunks = [];
|
|
56589
56592
|
for await (const chunk of process.stdin) {
|
|
56590
56593
|
chunks.push(chunk);
|
|
56591
56594
|
}
|
|
56592
|
-
return Buffer.concat(chunks).toString("utf8").trim();
|
|
56595
|
+
return unescapeShellText(Buffer.concat(chunks).toString("utf8").trim());
|
|
56593
56596
|
}
|
|
56594
56597
|
throw new Error('No post text provided. Use: bsky post "text" or echo "text" | bsky post');
|
|
56595
56598
|
}
|