brainjar 0.3.736 → 0.3.740
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/brainjar.js +4 -3
- package/package.json +1 -1
package/brainjar.js
CHANGED
|
@@ -107,7 +107,7 @@ var CLI_VERSION, CACHE, DAY;
|
|
|
107
107
|
var init_version_check = __esm({
|
|
108
108
|
"packages/cli/src/version-check.ts"() {
|
|
109
109
|
"use strict";
|
|
110
|
-
CLI_VERSION = "0.3.
|
|
110
|
+
CLI_VERSION = "0.3.740";
|
|
111
111
|
CACHE = path.join(os.homedir(), ".brainjar", "version-check.json");
|
|
112
112
|
DAY = 864e5;
|
|
113
113
|
}
|
|
@@ -6488,7 +6488,7 @@ var init_repository = __esm({
|
|
|
6488
6488
|
* (lowercased email, else the lowercased name); raw author strings look like
|
|
6489
6489
|
* "Name <email>", so the email matches inside the angle brackets and a bare name exactly.
|
|
6490
6490
|
*/
|
|
6491
|
-
async contributionsByAuthor(authorKey, limit = 50) {
|
|
6491
|
+
async contributionsByAuthor(authorKey, limit = 50, day) {
|
|
6492
6492
|
const key = authorKey.trim().toLowerCase();
|
|
6493
6493
|
if (!key) return [];
|
|
6494
6494
|
return (await this.pool.query(
|
|
@@ -6498,9 +6498,10 @@ var init_repository = __esm({
|
|
|
6498
6498
|
AND (kind IN ('commit', 'pull_request', 'issue', 'review_comment')
|
|
6499
6499
|
OR (kind = 'agent_session' AND payload->>'kind' = 'session'))
|
|
6500
6500
|
AND (lower(author) = $2 OR lower(author) LIKE '%<' || $2 || '>%')
|
|
6501
|
+
${day ? "AND src_created_at::date::text = $4" : ""}
|
|
6501
6502
|
ORDER BY src_created_at DESC
|
|
6502
6503
|
LIMIT $3`,
|
|
6503
|
-
[this.brainId, key, limit]
|
|
6504
|
+
day ? [this.brainId, key, limit, day] : [this.brainId, key, limit]
|
|
6504
6505
|
)).rows;
|
|
6505
6506
|
}
|
|
6506
6507
|
/** Days (YYYY-MM-DD, newest first) on which anything happened — the chronology spine. */
|