@chronicle.app/bluesky 0.3.0 → 0.4.0
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
|
@@ -4,7 +4,7 @@ Read your Bluesky follows, followers, and likes through the atproto API.
|
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
6
|
chronicle extract bluesky --type follows --handle you.bsky.social --password <app-password>
|
|
7
|
-
chronicle extract bluesky
|
|
7
|
+
chronicle extract bluesky followers likes --handle you.bsky.social --access-token <token>
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
The extractor resolves the handle to a DID, looks up the account's PDS in the PLC directory, and logs in with the password unless `--access-token` is given. `--handle` and `--password` fall back to the `handle`/`clientId` and `password`/`clientSecret` fields of the stored `bluesky` credentials. Use an app password rather than your account password.
|
|
@@ -9,7 +9,6 @@ export default class BlueskyTransformer extends ChronicleTransformer {
|
|
|
9
9
|
// Safe as a per-record field: transform builds synchronously below, with no
|
|
10
10
|
// await between this assignment and the buildUser calls.
|
|
11
11
|
this.meDid = record.context.agent?.did;
|
|
12
|
-
this.logger.debug('Transforming Bluesky record', { recordType: type });
|
|
13
12
|
const actions = [];
|
|
14
13
|
switch (type) {
|
|
15
14
|
case 'likes': {
|
|
@@ -44,7 +43,6 @@ export default class BlueskyTransformer extends ChronicleTransformer {
|
|
|
44
43
|
return [];
|
|
45
44
|
}
|
|
46
45
|
}
|
|
47
|
-
this.logger.verboseInfo(`Generated ${actions.length} actions from Bluesky ${type} record`);
|
|
48
46
|
return actions;
|
|
49
47
|
}
|
|
50
48
|
buildFollow({ account, agent, timestamp, recordUri, }) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chronicle.app/bluesky",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"description": "Chronicle plugin for Bluesky follows, followers, and likes",
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@chronicle.app/etl": "0.
|
|
25
|
-
"@chronicle.app/schema": "0.
|
|
26
|
-
"@chronicle.app/tsconfig": "0.
|
|
24
|
+
"@chronicle.app/etl": "0.4.0",
|
|
25
|
+
"@chronicle.app/schema": "0.4.0",
|
|
26
|
+
"@chronicle.app/tsconfig": "0.4.0",
|
|
27
27
|
"@types/node": "^22.10.1",
|
|
28
28
|
"typescript": "^5.7.2"
|
|
29
29
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"registry": "https://registry.npmjs.org/"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@chronicle.app/auth": "0.
|
|
41
|
+
"@chronicle.app/auth": "0.4.0",
|
|
42
42
|
"axios": "^1.7.9",
|
|
43
43
|
"zod": "^3.24.1"
|
|
44
44
|
},
|