@atproto/dev-env 0.3.48 → 0.3.50
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +24 -0
- package/dist/bsky.d.ts.map +1 -1
- package/dist/bsky.js +1 -3
- package/dist/bsky.js.map +1 -1
- package/dist/moderator-client.d.ts +1 -0
- package/dist/moderator-client.d.ts.map +1 -1
- package/dist/moderator-client.js +2 -1
- package/dist/moderator-client.js.map +1 -1
- package/dist/network.d.ts.map +1 -1
- package/dist/network.js +6 -5
- package/dist/network.js.map +1 -1
- package/package.json +8 -7
- package/src/bsky.ts +2 -3
- package/src/moderator-client.ts +3 -1
- package/src/network.ts +6 -5
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,29 @@
|
|
1
1
|
# @atproto/dev-env
|
2
2
|
|
3
|
+
## 0.3.50
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies [[`e6bd5aecc`](https://github.com/bluesky-social/atproto/commit/e6bd5aecce7954d60e5fb263297e697ab7aab98e), [`98711a147`](https://github.com/bluesky-social/atproto/commit/98711a147a8674337f605c6368f39fc10c2fae93), [`33aa0c722`](https://github.com/bluesky-social/atproto/commit/33aa0c722226a18215af0ae1833c7c552fc7aaa7)]:
|
8
|
+
- @atproto/api@0.13.7
|
9
|
+
- @atproto/ozone@0.1.45
|
10
|
+
- @atproto/xrpc-server@0.6.4
|
11
|
+
- @atproto/bsky@0.0.83
|
12
|
+
- @atproto/pds@0.4.59
|
13
|
+
- @atproto/bsync@0.0.6
|
14
|
+
- @atproto/crypto@0.4.1
|
15
|
+
- @atproto/sync@0.1.1
|
16
|
+
|
17
|
+
## 0.3.49
|
18
|
+
|
19
|
+
### Patch Changes
|
20
|
+
|
21
|
+
- Updated dependencies [[`b15dec2f4`](https://github.com/bluesky-social/atproto/commit/b15dec2f4feb25ac91b169c83ccff1adbb5a9442), [`642c7ae96`](https://github.com/bluesky-social/atproto/commit/642c7ae968b0dd2bfb448aa6eba0c1fd9312d909)]:
|
22
|
+
- @atproto/sync@0.1.0
|
23
|
+
- @atproto/ozone@0.1.44
|
24
|
+
- @atproto/bsky@0.0.82
|
25
|
+
- @atproto/pds@0.4.58
|
26
|
+
|
3
27
|
## 0.3.48
|
4
28
|
|
5
29
|
### Patch Changes
|
package/dist/bsky.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bsky.d.ts","sourceRoot":"","sources":["../src/bsky.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;
|
1
|
+
{"version":3,"file":"bsky.d.ts","sourceRoot":"","sources":["../src/bsky.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAGvC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGpC,cAAc,eAAe,CAAA;AAE7B,qBAAa,QAAQ;IAEV,GAAG,EAAE,MAAM;IACX,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,IAAI,CAAC,QAAQ;IACjB,MAAM,EAAE,IAAI,CAAC,WAAW;IACxB,SAAS,EAAE,IAAI,CAAC,eAAe;IAC/B,KAAK,EAAE,IAAI,CAAC,SAAS;IACrB,GAAG,EAAE,IAAI,CAAC,gBAAgB;gBAN1B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,IAAI,CAAC,QAAQ,EACjB,MAAM,EAAE,IAAI,CAAC,WAAW,EACxB,SAAS,EAAE,IAAI,CAAC,eAAe,EAC/B,KAAK,EAAE,IAAI,CAAC,SAAS,EACrB,GAAG,EAAE,IAAI,CAAC,gBAAgB;WAGtB,MAAM,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,QAAQ,CAAC;IAgFvD,IAAI,GAAG,IAAI,IAAI,CAAC,UAAU,CAEzB;IAED,SAAS,IAAI,QAAQ;IAMrB,SAAS,IAAI,MAAM;IAQnB,gBAAgB;;;IAMV,KAAK;CAOZ"}
|
package/dist/bsky.js
CHANGED
@@ -35,7 +35,6 @@ const ui8 = __importStar(require("uint8arrays"));
|
|
35
35
|
const bsky = __importStar(require("@atproto/bsky"));
|
36
36
|
const api_1 = require("@atproto/api");
|
37
37
|
const crypto_1 = require("@atproto/crypto");
|
38
|
-
const bsky_1 = require("@atproto/bsky");
|
39
38
|
const lib_1 = require("@did-plc/lib");
|
40
39
|
const const_1 = require("./const");
|
41
40
|
__exportStar(require("@atproto/bsky"), exports);
|
@@ -144,10 +143,9 @@ class TestBsky {
|
|
144
143
|
service: cfg.repoProvider,
|
145
144
|
db,
|
146
145
|
idResolver: dataplane.idResolver,
|
147
|
-
background: new bsky_1.BackgroundQueue(db),
|
148
146
|
});
|
149
147
|
await server.start();
|
150
|
-
sub.
|
148
|
+
sub.start();
|
151
149
|
return new TestBsky(url, port, db, server, dataplane, bsync, sub);
|
152
150
|
}
|
153
151
|
get ctx() {
|
package/dist/bsky.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bsky.js","sourceRoot":"","sources":["../src/bsky.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAA8B;AAC9B,iDAAkC;AAClC,oDAAqC;AACrC,sCAAuC;AACvC,4CAAkD;AAClD,
|
1
|
+
{"version":3,"file":"bsky.js","sourceRoot":"","sources":["../src/bsky.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAA8B;AAC9B,iDAAkC;AAClC,oDAAqC;AACrC,sCAAuC;AACvC,4CAAkD;AAClD,sCAAkD;AAElD,mCAAyD;AAEzD,gDAA6B;AAE7B,MAAa,QAAQ;IACnB,YACS,GAAW,EACX,IAAY,EACZ,EAAiB,EACjB,MAAwB,EACxB,SAA+B,EAC/B,KAAqB,EACrB,GAA0B;QANjC;;;;mBAAO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 export declare class ModeratorClient {
|
|
29
29
|
subject: TakeActionInput['subject'];
|
30
30
|
subjectBlobCids?: TakeActionInput['subjectBlobCids'];
|
31
31
|
durationInHours?: number;
|
32
|
+
acknowledgeAccountSubjects?: boolean;
|
32
33
|
reason?: string;
|
33
34
|
}, role?: ModLevel): Promise<import("@atproto/api/dist/client/types/tools/ozone/moderation/defs").ModEventView>;
|
34
35
|
performReverseTakedown(opts: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"moderator-client.d.ts","sourceRoot":"","sources":["../src/moderator-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,6BAA6B,IAAI,mBAAmB,EACpD,iCAAiC,IAAI,uBAAuB,EAC5D,+BAA+B,IAAI,qBAAqB,EACzD,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnC,KAAK,eAAe,GAAG,mBAAmB,CAAC,WAAW,CAAA;AACtD,KAAK,mBAAmB,GAAG,uBAAuB,CAAC,WAAW,CAAA;AAC9D,KAAK,iBAAiB,GAAG,qBAAqB,CAAC,WAAW,CAAA;AAC1D,KAAK,QAAQ,GAAG,OAAO,GAAG,WAAW,GAAG,QAAQ,CAAA;AAEhD,qBAAa,eAAe;IAEP,KAAK,EAAE,SAAS;IADnC,KAAK,EAAE,QAAQ,CAAA;gBACI,KAAK,EAAE,SAAS;IAI7B,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,QAAQ;IAapC,aAAa,CAAC,KAAK,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,QAAQ;IAazD,WAAW,CAAC,KAAK,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,QAAQ;IAUrD,SAAS,CACb,IAAI,EAAE;QACJ,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,CAAA;QAC/B,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAA;QACnC,eAAe,CAAC,EAAE,e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AAA;KAChB,EACD,IAAI,CAAC,EAAE,QAAQ;CAYlB"}
|
package/dist/moderator-client.js
CHANGED
@@ -59,10 +59,11 @@ class ModeratorClient {
|
|
59
59
|
return result.data;
|
60
60
|
}
|
61
61
|
async performTakedown(opts, role) {
|
62
|
-
const { durationInHours, ...rest } = opts;
|
62
|
+
const { durationInHours, acknowledgeAccountSubjects, ...rest } = opts;
|
63
63
|
return this.emitEvent({
|
64
64
|
event: {
|
65
65
|
$type: 'tools.ozone.moderation.defs#modEventTakedown',
|
66
|
+
acknowledgeAccountSubjects,
|
66
67
|
durationInHours,
|
67
68
|
},
|
68
69
|
...rest,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"moderator-client.js","sourceRoot":"","sources":["../src/moderator-client.ts"],"names":[],"mappings":";;;AAaA,MAAa,eAAe;IAE1B,YAAmB,KAAgB;QAAvB;;;;mBAAO,KAAK;WAAW;QADnC;;;;;WAAe;QAEb,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;IAChC,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,EAAU,EAAE,IAAe;QACxC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,CAC7D,EAAE,EAAE,EAAE,EACN;YACE,OAAO,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAClC,iCAAiC,EACjC,IAAI,CACL;SACF,CACF,CAAA;QACD,OAAO,MAAM,CAAC,IAAI,CAAA;IACpB,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,KAA0B,EAAE,IAAe;QAC7D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,aAAa,CAClE,KAAK,EACL;YACE,OAAO,EAAE,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAClC,sCAAsC,EACtC,IAAI,CACL;SACF,CACF,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"}
|
package/dist/network.js
CHANGED
@@ -149,7 +149,7 @@ class TestNetwork extends network_no_appview_1.TestNetworkNoAppView {
|
|
149
149
|
await ozone.addAdminDid(ozoneDid);
|
150
150
|
(0, util_1.mockNetworkUtilities)(pds, bsky);
|
151
151
|
await pds.processAll();
|
152
|
-
await bsky.sub.
|
152
|
+
await bsky.sub.processAll();
|
153
153
|
await thirdPartyPds.close();
|
154
154
|
let introspect = undefined;
|
155
155
|
if (params.introspect?.port) {
|
@@ -164,9 +164,11 @@ class TestNetwork extends network_no_appview_1.TestNetworkNoAppView {
|
|
164
164
|
if (!lastSeq)
|
165
165
|
return;
|
166
166
|
while (Date.now() - start < timeout) {
|
167
|
-
|
168
|
-
|
169
|
-
|
167
|
+
await sub.processAll();
|
168
|
+
const runnerCursor = await sub.runner.getCursor();
|
169
|
+
// if subscription claims to be done, ensure we are at the most recent cursor from PDS, else wait to process again
|
170
|
+
// (the subscription may claim to be finished before the PDS has even emitted it's event)
|
171
|
+
if (runnerCursor && runnerCursor >= lastSeq) {
|
170
172
|
return;
|
171
173
|
}
|
172
174
|
await (0, common_web_1.wait)(5);
|
@@ -177,7 +179,6 @@ class TestNetwork extends network_no_appview_1.TestNetworkNoAppView {
|
|
177
179
|
await this.pds.processAll();
|
178
180
|
await this.ozone.processAll();
|
179
181
|
await this.processFullSubscription(timeout);
|
180
|
-
await this.bsky.sub.background.processAll();
|
181
182
|
}
|
182
183
|
async serviceHeaders(did, lxm, aud) {
|
183
184
|
const keypair = await this.pds.ctx.actorStore.keypair(did);
|
package/dist/network.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"network.js","sourceRoot":"","sources":["../src/network.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA2B;AAC3B,yDAA0C;AAC1C,wDAA8B;AAC9B,oDAA0C;AAC1C,sDAAuD;AAEvD,+BAA+B;AAC/B,+BAA+B;AAC/B,iCAAiC;AACjC,mCAAmC;A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G,CAAC,KAAK,EAAE,CAAA;QACtB,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAA;QACtB,MAAM,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,CAAA;IAChC,CAAC;CACF;AAjLD,kCAiLC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/dev-env",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.50",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Local development environment helper for atproto development",
|
6
6
|
"keywords": [
|
@@ -24,17 +24,18 @@
|
|
24
24
|
"get-port": "^5.1.1",
|
25
25
|
"multiformats": "^9.9.0",
|
26
26
|
"uint8arrays": "3.0.0",
|
27
|
-
"@atproto/api": "^0.13.
|
28
|
-
"@atproto/bsky": "^0.0.
|
29
|
-
"@atproto/bsync": "^0.0.
|
27
|
+
"@atproto/api": "^0.13.7",
|
28
|
+
"@atproto/bsky": "^0.0.83",
|
29
|
+
"@atproto/bsync": "^0.0.6",
|
30
30
|
"@atproto/common-web": "^0.3.0",
|
31
31
|
"@atproto/crypto": "^0.4.1",
|
32
32
|
"@atproto/identity": "^0.4.1",
|
33
33
|
"@atproto/lexicon": "^0.4.1",
|
34
|
-
"@atproto/ozone": "^0.1.
|
35
|
-
"@atproto/pds": "^0.4.
|
34
|
+
"@atproto/ozone": "^0.1.45",
|
35
|
+
"@atproto/pds": "^0.4.59",
|
36
|
+
"@atproto/sync": "^0.1.1",
|
36
37
|
"@atproto/syntax": "^0.3.0",
|
37
|
-
"@atproto/xrpc-server": "^0.6.
|
38
|
+
"@atproto/xrpc-server": "^0.6.4"
|
38
39
|
},
|
39
40
|
"devDependencies": {
|
40
41
|
"@types/express": "^4.17.13"
|
package/src/bsky.ts
CHANGED
@@ -3,7 +3,6 @@ import * as ui8 from 'uint8arrays'
|
|
3
3
|
import * as bsky from '@atproto/bsky'
|
4
4
|
import { AtpAgent } from '@atproto/api'
|
5
5
|
import { Secp256k1Keypair } from '@atproto/crypto'
|
6
|
-
import { BackgroundQueue } from '@atproto/bsky'
|
7
6
|
import { Client as PlcClient } from '@did-plc/lib'
|
8
7
|
import { BskyConfig } from './types'
|
9
8
|
import { ADMIN_PASSWORD, EXAMPLE_LABELER } from './const'
|
@@ -92,11 +91,11 @@ export class TestBsky {
|
|
92
91
|
service: cfg.repoProvider,
|
93
92
|
db,
|
94
93
|
idResolver: dataplane.idResolver,
|
95
|
-
background: new BackgroundQueue(db),
|
96
94
|
})
|
97
95
|
|
98
96
|
await server.start()
|
99
|
-
|
97
|
+
|
98
|
+
sub.start()
|
100
99
|
|
101
100
|
return new TestBsky(url, port, db, server, dataplane, bsync, sub)
|
102
101
|
}
|
package/src/moderator-client.ts
CHANGED
@@ -119,15 +119,17 @@ export class ModeratorClient {
|
|
119
119
|
subject: TakeActionInput['subject']
|
120
120
|
subjectBlobCids?: TakeActionInput['subjectBlobCids']
|
121
121
|
durationInHours?: number
|
122
|
+
acknowledgeAccountSubjects?: boolean
|
122
123
|
reason?: string
|
123
124
|
},
|
124
125
|
role?: ModLevel,
|
125
126
|
) {
|
126
|
-
const { durationInHours, ...rest } = opts
|
127
|
+
const { durationInHours, acknowledgeAccountSubjects, ...rest } = opts
|
127
128
|
return this.emitEvent(
|
128
129
|
{
|
129
130
|
event: {
|
130
131
|
$type: 'tools.ozone.moderation.defs#modEventTakedown',
|
132
|
+
acknowledgeAccountSubjects,
|
131
133
|
durationInHours,
|
132
134
|
},
|
133
135
|
...rest,
|
package/src/network.ts
CHANGED
@@ -117,7 +117,7 @@ export class TestNetwork extends TestNetworkNoAppView {
|
|
117
117
|
|
118
118
|
mockNetworkUtilities(pds, bsky)
|
119
119
|
await pds.processAll()
|
120
|
-
await bsky.sub.
|
120
|
+
await bsky.sub.processAll()
|
121
121
|
await thirdPartyPds.close()
|
122
122
|
|
123
123
|
let introspect: IntrospectServer | undefined = undefined
|
@@ -140,9 +140,11 @@ export class TestNetwork extends TestNetworkNoAppView {
|
|
140
140
|
const lastSeq = await this.pds.ctx.sequencer.curr()
|
141
141
|
if (!lastSeq) return
|
142
142
|
while (Date.now() - start < timeout) {
|
143
|
-
|
144
|
-
|
145
|
-
|
143
|
+
await sub.processAll()
|
144
|
+
const runnerCursor = await sub.runner.getCursor()
|
145
|
+
// if subscription claims to be done, ensure we are at the most recent cursor from PDS, else wait to process again
|
146
|
+
// (the subscription may claim to be finished before the PDS has even emitted it's event)
|
147
|
+
if (runnerCursor && runnerCursor >= lastSeq) {
|
146
148
|
return
|
147
149
|
}
|
148
150
|
await wait(5)
|
@@ -154,7 +156,6 @@ export class TestNetwork extends TestNetworkNoAppView {
|
|
154
156
|
await this.pds.processAll()
|
155
157
|
await this.ozone.processAll()
|
156
158
|
await this.processFullSubscription(timeout)
|
157
|
-
await this.bsky.sub.background.processAll()
|
158
159
|
}
|
159
160
|
|
160
161
|
async serviceHeaders(did: string, lxm: string, aud?: string) {
|