@prosopo/cli 3.7.21 → 3.7.23

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @prosopo/cli@3.7.21 build:cjs
2
+ > @prosopo/cli@3.7.23 build:cjs
3
3
  > NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
4
4
 
5
5
  ViteCommonJSConfig: .
@@ -63,33 +63,33 @@ Bundle build started
63
63
  rendering chunks...
64
64
  computing gzip size...
65
65
  dist/cjs/commands/version.cjs 0.52 kB │ gzip: 0.29 kB
66
- [EMPTY_IMPORT_META] `import.meta` may not be a valid syntax with the `cjs` output format.
67
66
  dist/cjs/index.cjs 0.82 kB │ gzip: 0.29 kB
68
67
  dist/cjs/commands/ensureIndexes.cjs 0.91 kB │ gzip: 0.46 kB
69
68
  dist/cjs/process.env.cjs 0.92 kB │ gzip: 0.36 kB
70
69
  dist/cjs/commands/storeCaptchasExternally.cjs 0.93 kB │ gzip: 0.45 kB
71
70
  dist/cjs/commands/validators.cjs 0.93 kB │ gzip: 0.44 kB
72
71
  dist/cjs/_virtual/_rolldown/runtime.cjs 1.00 kB │ gzip: 0.50 kB
73
- ╭─[ src/prosopo.config.ts:56:21 ]
74
72
  dist/cjs/commands/ensureExternalIndexes.cjs 1.07 kB │ gzip: 0.50 kB
75
- │
76
73
  dist/cjs/files.cjs 1.21 kB │ gzip: 0.56 kB
77
74
  dist/cjs/commands/index.cjs 1.30 kB │ gzip: 0.29 kB
78
75
  dist/cjs/commands/providerSetDataset.cjs 1.49 kB │ gzip: 0.65 kB
79
- 56 │     const importMeta = import.meta;
80
76
  dist/cjs/commands/updateSpamEmailDomains.cjs 1.58 kB │ gzip: 0.65 kB
81
77
  dist/cjs/cli.cjs 1.76 kB │ gzip: 0.64 kB
82
-  │ ─────┬─────
83
-  │ ╰─────── This `import.meta` will be replaced with an empty object (`{}`) automatically. If this is desired, you can suppress this warning by adding `transform.define: { 'import.meta': {} }`. If `import.meta` needs to be kept as-is, you need to set the output format to `esm`.
84
78
  dist/cjs/reloader.cjs 1.87 kB │ gzip: 0.76 kB
85
79
  dist/cjs/commands/migrateAbuserScoreThreshold.cjs 2.17 kB │ gzip: 0.90 kB
86
80
  dist/cjs/argv.cjs 2.30 kB │ gzip: 0.66 kB
87
- dist/cjs/start.cjs 2.75 kB │ gzip: 0.85 kB
81
+ dist/cjs/start.cjs 2.34 kB │ gzip: 0.80 kB
88
82
  dist/cjs/commands/siteKeyRegisterApi.cjs 3.08 kB │ gzip: 1.08 kB
89
83
  dist/cjs/commands/siteKeyRegister.cjs 3.48 kB │ gzip: 1.15 kB
90
84
  dist/cjs/prosopo.config.cjs 4.58 kB │ gzip: 1.46 kB
91
85
  dist/cjs/RateLimiter.cjs 5.58 kB │ gzip: 0.89 kB
92
86
 
87
+ [EMPTY_IMPORT_META] `import.meta` may not be a valid syntax with the `cjs` output format.
88
+ ╭─[ src/prosopo.config.ts:56:21 ]
89
+ │
90
+ 56 │     const importMeta = import.meta;
91
+  │ ─────┬─────
92
+  │ ╰─────── This `import.meta` will be replaced with an empty object (`{}`) automatically. If this is desired, you can suppress this warning by adding `transform.define: { 'import.meta': {} }`. If `import.meta` needs to be kept as-is, you need to set the output format to `esm`.
93
93
  ────╯
94
- ✓ built in 69ms
95
94
  
95
+ ✓ built in 66ms
@@ -1,8 +1,8 @@
1
1
 
2
- > @prosopo/cli@3.7.21 build:tsc
2
+ > @prosopo/cli@3.7.23 build:tsc
3
3
  > tsc --build --verbose
4
4
 
5
- 7:25:07 PM - Projects in this build:
5
+ 1:28:47 PM - Projects in this build:
6
6
  * ../../dev/config/tsconfig.json
7
7
  * ../locale/tsconfig.json
8
8
  * ../util/tsconfig.json
@@ -29,55 +29,55 @@
29
29
  * ../../dev/workspace/tsconfig.json
30
30
  * tsconfig.json
31
31
 
32
- 7:25:07 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/webpack/webpack.config.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
32
+ 1:28:47 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/webpack/webpack.config.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
33
33
 
34
- 7:25:07 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
34
+ 1:28:47 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
35
35
 
36
- 7:25:07 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
36
+ 1:28:47 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
37
37
 
38
- 7:25:07 PM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/tsconfig.tsbuildinfo'
38
+ 1:28:47 PM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/tsconfig.tsbuildinfo'
39
39
 
40
- 7:25:07 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/types.test-d.ts' is older than output '../types/tsconfig.tsbuildinfo'
40
+ 1:28:47 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/types.test-d.ts' is older than output '../types/tsconfig.tsbuildinfo'
41
41
 
42
- 7:25:07 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/tests/apiHarness.ts' is older than output '../api/tsconfig.tsbuildinfo'
42
+ 1:28:47 PM - Project '../api/tsconfig.json' is up to date because newest input '../api/src/tests/apiHarness.ts' is older than output '../api/tsconfig.tsbuildinfo'
43
43
 
44
- 7:25:07 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
44
+ 1:28:47 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/tests/loggerBrowser.unit.test.ts' is older than output '../logger/tsconfig.tsbuildinfo'
45
45
 
46
- 7:25:07 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/tests/utils/batches.unit.test.ts' is older than output '../common/tsconfig.tsbuildinfo'
46
+ 1:28:47 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/error.ts' is older than output '../common/tsconfig.tsbuildinfo'
47
47
 
48
- 7:25:07 PM - Project '../dotenv/tsconfig.json' is up to date because newest input '../dotenv/src/env.ts' is older than output '../dotenv/tsconfig.tsbuildinfo'
48
+ 1:28:47 PM - Project '../dotenv/tsconfig.json' is up to date because newest input '../dotenv/src/tests/env.unit.test.ts' is older than output '../dotenv/tsconfig.tsbuildinfo'
49
49
 
50
- 7:25:07 PM - Project '../ipinfo/tsconfig.json' is up to date because newest input '../ipinfo/src/index.ts' is older than output '../ipinfo/tsconfig.tsbuildinfo'
50
+ 1:28:47 PM - Project '../ipinfo/tsconfig.json' is up to date because newest input '../ipinfo/src/IpInfoService.ts' is older than output '../ipinfo/tsconfig.tsbuildinfo'
51
51
 
52
- 7:25:07 PM - Project '../api-route/tsconfig.json' is up to date because newest input '../api-route/src/tests/apiRoute.unit.test.ts' is older than output '../api-route/tsconfig.tsbuildinfo'
52
+ 1:28:47 PM - Project '../api-route/tsconfig.json' is up to date because newest input '../api-route/src/index.ts' is older than output '../api-route/tsconfig.tsbuildinfo'
53
53
 
54
- 7:25:07 PM - Project '../redis-client/tsconfig.json' is up to date because newest input '../redis-client/src/index.ts' is older than output '../redis-client/tsconfig.tsbuildinfo'
54
+ 1:28:47 PM - Project '../redis-client/tsconfig.json' is up to date because newest input '../redis-client/src/redisClient.ts' is older than output '../redis-client/tsconfig.tsbuildinfo'
55
55
 
56
- 7:25:07 PM - Project '../user-access-policy/tsconfig.json' is up to date because newest input '../user-access-policy/src/ruleRecord.ts' is older than output '../user-access-policy/tsconfig.tsbuildinfo'
56
+ 1:28:47 PM - Project '../user-access-policy/tsconfig.json' is up to date because newest input '../user-access-policy/src/transformRule.ts' is older than output '../user-access-policy/tsconfig.tsbuildinfo'
57
57
 
58
- 7:25:07 PM - Project '../types-database/tsconfig.json' is up to date because newest input '../types-database/src/index.ts' is older than output '../types-database/tsconfig.tsbuildinfo'
58
+ 1:28:47 PM - Project '../types-database/tsconfig.json' is up to date because newest input '../types-database/src/types/captcha.ts' is older than output '../types-database/tsconfig.tsbuildinfo'
59
59
 
60
- 7:25:07 PM - Project '../database/tsconfig.json' is up to date because newest input '../database/src/tests/mongoGlobalSetup.ts' is older than output '../database/tsconfig.tsbuildinfo'
60
+ 1:28:47 PM - Project '../database/tsconfig.json' is up to date because newest input '../database/src/tests/unit/redisCacheEscalation.unit.test.ts' is older than output '../database/tsconfig.tsbuildinfo'
61
61
 
62
- 7:25:07 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/pair/decode.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
62
+ 1:28:47 PM - Project '../keyring/tsconfig.json' is up to date because newest input '../keyring/src/pair/decode.ts' is older than output '../keyring/tsconfig.tsbuildinfo'
63
63
 
64
- 7:25:07 PM - Project '../types-env/tsconfig.json' is up to date because newest input '../types-env/src/env.ts' is older than output '../types-env/tsconfig.tsbuildinfo'
64
+ 1:28:47 PM - Project '../types-env/tsconfig.json' is up to date because newest input '../types-env/src/index.ts' is older than output '../types-env/tsconfig.tsbuildinfo'
65
65
 
66
- 7:25:07 PM - Project '../env/tsconfig.json' is up to date because newest input '../env/src/env.ts' is older than output '../env/tsconfig.tsbuildinfo'
66
+ 1:28:48 PM - Project '../env/tsconfig.json' is up to date because newest input '../env/src/env.ts' is older than output '../env/tsconfig.tsbuildinfo'
67
67
 
68
- 7:25:08 PM - Project '../api-express-router/tsconfig.json' is up to date because newest input '../api-express-router/src/errorHandler.ts' is older than output '../api-express-router/tsconfig.tsbuildinfo'
68
+ 1:28:48 PM - Project '../api-express-router/tsconfig.json' is up to date because newest input '../api-express-router/src/tests/unit/testDoubles.ts' is older than output '../api-express-router/tsconfig.tsbuildinfo'
69
69
 
70
- 7:25:08 PM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/index.ts' is older than output '../datasets/tsconfig.tsbuildinfo'
70
+ 1:28:48 PM - Project '../datasets/tsconfig.json' is up to date because newest input '../datasets/src/index.ts' is older than output '../datasets/tsconfig.tsbuildinfo'
71
71
 
72
- 7:25:08 PM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/tests/providers.unit.test.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
72
+ 1:28:48 PM - Project '../load-balancer/tsconfig.json' is up to date because newest input '../load-balancer/src/tests/providers.unit.test.ts' is older than output '../load-balancer/tsconfig.tsbuildinfo'
73
73
 
74
- 7:25:08 PM - Project '../puzzle-assets/tsconfig.json' is up to date because newest input '../puzzle-assets/src/background.ts' is older than output '../puzzle-assets/tsconfig.tsbuildinfo'
74
+ 1:28:48 PM - Project '../puzzle-assets/tsconfig.json' is up to date because newest input '../puzzle-assets/src/compose.ts' is older than output '../puzzle-assets/tsconfig.tsbuildinfo'
75
75
 
76
- 7:25:08 PM - Project '../provider/tsconfig.json' is up to date because newest input '../provider/src/util.ts' is older than output '../provider/tsconfig.tsbuildinfo'
76
+ 1:28:48 PM - Project '../provider/tsconfig.json' is up to date because newest input '../provider/src/utils/dns.ts' is older than output '../provider/tsconfig.tsbuildinfo'
77
77
 
78
- 7:25:08 PM - Project '../../dev/workspace/tsconfig.json' is up to date because newest input '../../dev/workspace/src/index.ts' is older than output '../../dev/workspace/tsconfig.tsbuildinfo'
78
+ 1:28:48 PM - Project '../../dev/workspace/tsconfig.json' is up to date because newest input '../../dev/workspace/src/projectInfo.ts' is older than output '../../dev/workspace/tsconfig.tsbuildinfo'
79
79
 
80
- 7:25:08 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
80
+ 1:28:48 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
81
81
 
82
- 7:25:08 PM - Building project '/home/runner/work/captcha/captcha/packages/cli/tsconfig.json'...
82
+ 1:28:48 PM - Building project '/home/runner/work/captcha/captcha/packages/cli/tsconfig.json'...
83
83
 
@@ -1,9 +1,9 @@
1
1
 
2
- > @prosopo/cli@3.7.21 build
2
+ > @prosopo/cli@3.7.23 build
3
3
  > npm run build:cross-env -- --mode ${NODE_ENV:-development}
4
4
 
5
5
 
6
- > @prosopo/cli@3.7.21 build:cross-env
6
+ > @prosopo/cli@3.7.23 build:cross-env
7
7
  > vite build --config vite.esm.config.ts --mode production
8
8
 
9
9
  ViteEsmConfig: .
@@ -81,11 +81,11 @@ dist/cli.js 1.34 kB │ gzip: 0.55 kB
81
81
  dist/commands/updateSpamEmailDomains.js 1.53 kB │ gzip: 0.64 kB
82
82
  dist/reloader.js 1.62 kB │ gzip: 0.69 kB
83
83
  dist/argv.js 1.98 kB │ gzip: 0.59 kB
84
+ dist/start.js 2.11 kB │ gzip: 0.78 kB
84
85
  dist/commands/migrateAbuserScoreThreshold.js 2.11 kB │ gzip: 0.89 kB
85
- dist/start.js 2.49 kB │ gzip: 0.82 kB
86
86
  dist/commands/siteKeyRegisterApi.js 2.97 kB │ gzip: 1.06 kB
87
87
  dist/commands/siteKeyRegister.js 3.30 kB │ gzip: 1.14 kB
88
88
  dist/prosopo.config.js 4.43 kB │ gzip: 1.47 kB
89
89
  dist/RateLimiter.js 5.16 kB │ gzip: 0.89 kB
90
90
 
91
- ✓ built in 66ms
91
+ ✓ built in 79ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @prosopo/cli
2
2
 
3
+ ## 3.7.23
4
+ ### Patch Changes
5
+
6
+ - dfc1fa6: Two provider-DB latency fixes.
7
+
8
+ **Pin the pending-stage sweep to its compound partial index.** `getUnstoredDappUserCommitments`, `getUnstoredDappUserPoWCommitments`, and `getUnstoredSessionRecords` now call `.hint("pendingStage_partial")`. Observed post-index-fix on 2026-08-21: mongo's planner sometimes picked plain `IXSCAN {_id:1}` over the compound `{pendingStage:1, _id:1}` for `find({pendingStage:true}).sort({_id:1})`, scanning the whole collection and filtering in memory until the 30s socket timeout killed the connection. Clearing the plan cache re-planned once but didn't prevent recurrence after future catalog changes — the hint makes the choice explicit and permanent.
9
+
10
+ **Remove local context-entropy computation.** Deletes `sampleContextEntropy` (the `$sample`-then-`$lookup` aggregation), `setClientContextEntropy`, `ClientTaskManager.calculateClientEntropy`, and the `setClientEntropy` scheduler + CLI registration. Was accounting for ~36 minutes of DB time every 6h against `powcaptchas` and `sessions` — the `$lookup` fanned out to 10 000 session reads per invocation to produce 75 sampled sessionIds. Same computation now runs off-provider in the external job-runner across the full record set; the provider keeps `getClientContextEntropy` for the DM's read path (the job-runner writes to the same `clientcontextentropies` collection).
11
+ - Updated dependencies [dfc1fa6]
12
+ - @prosopo/provider@5.3.9
13
+ - @prosopo/env@3.6.40
14
+
15
+ ## 3.7.22
16
+ ### Patch Changes
17
+
18
+ - @prosopo/env@3.6.39
19
+ - @prosopo/provider@5.3.8
20
+
3
21
  ## 3.7.21
4
22
  ### Patch Changes
5
23