musora-content-services 2.169.2 → 2.169.4
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/.claude/settings.local.json +9 -36
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +14 -0
- package/dist/services/api/types.js +2 -0
- package/package.json +1 -1
- package/src/services/dateUtils.js +3 -3
- package/src/services/user/session.ts +1 -1
- package/src/services/userActivity.js +2 -3
- package/src/version-info.js +1 -1
|
@@ -1,39 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"permissions": {
|
|
3
3
|
"allow": [
|
|
4
|
-
"Bash(
|
|
5
|
-
"Bash(
|
|
6
|
-
"
|
|
7
|
-
"Bash(counselors ls *)",
|
|
8
|
-
"Bash(counselors groups *)",
|
|
9
|
-
"Bash(counselors run *)",
|
|
4
|
+
"Bash(rg:*)",
|
|
5
|
+
"Bash(npm run lint:*)",
|
|
6
|
+
"Bash(ls:*)",
|
|
10
7
|
"Bash(npm test *)",
|
|
11
|
-
"Bash(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"Read(//tmp/pr-review-v2/**)",
|
|
15
|
-
"Bash(cat /home/alesevero/railenvironment/applications/musora-content-services/AGENTS.md)",
|
|
16
|
-
"Bash(echo \"no AGENTS.md\")",
|
|
17
|
-
"Bash(echo \"exit=$?\")",
|
|
18
|
-
"Bash(git checkout *)",
|
|
19
|
-
"Skill(pr)",
|
|
20
|
-
"Skill(create-decision)",
|
|
21
|
-
"mcp__github__pull_request_read",
|
|
22
|
-
"mcp__github__push_files",
|
|
23
|
-
"Bash(git push *)",
|
|
24
|
-
"mcp__github__create_pull_request",
|
|
25
|
-
"mcp__github__search_pull_requests",
|
|
26
|
-
"Bash(git commit *)",
|
|
27
|
-
"Bash(git add *)",
|
|
28
|
-
"mcp__github__list_pull_requests",
|
|
29
|
-
"mcp__sanity__get_schema",
|
|
30
|
-
"mcp__sanity__query_documents",
|
|
31
|
-
"Bash(git rm *)",
|
|
32
|
-
"Bash(git rebase *)"
|
|
33
|
-
]
|
|
8
|
+
"Bash(npx jest *)"
|
|
9
|
+
],
|
|
10
|
+
"deny": []
|
|
34
11
|
},
|
|
35
|
-
"model": "sonnet",
|
|
36
12
|
"enabledMcpjsonServers": [
|
|
13
|
+
"1password",
|
|
37
14
|
"atlassian",
|
|
38
15
|
"figma",
|
|
39
16
|
"google-workspace",
|
|
@@ -47,14 +24,10 @@
|
|
|
47
24
|
"chrome-devtools",
|
|
48
25
|
"railway",
|
|
49
26
|
"github",
|
|
50
|
-
"asana"
|
|
51
|
-
],
|
|
52
|
-
"disabledMcpjsonServers": [
|
|
27
|
+
"asana",
|
|
53
28
|
"nightwatch",
|
|
54
|
-
"1password",
|
|
55
29
|
"mysql-staging",
|
|
56
30
|
"mysql-local",
|
|
57
31
|
"mobile"
|
|
58
|
-
]
|
|
59
|
-
"effortLevel": "medium"
|
|
32
|
+
]
|
|
60
33
|
}
|
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [2.169.4](https://github.com/railroadmedia/musora-content-services/compare/v2.169.3...v2.169.4) (2026-08-07)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **BR-716:** apply timezone handling to practice streak calculations ([#1020](https://github.com/railroadmedia/musora-content-services/issues/1020)) ([28f89f6](https://github.com/railroadmedia/musora-content-services/commit/28f89f6d7c61f37eb3dea75455ef74ff08cd0f85))
|
|
11
|
+
|
|
12
|
+
### [2.169.3](https://github.com/railroadmedia/musora-content-services/compare/v2.169.2...v2.169.3) (2026-08-07)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* import alias ([03e8001](https://github.com/railroadmedia/musora-content-services/commit/03e8001f14598b106154786f7aefc7dca7caa03b))
|
|
18
|
+
|
|
5
19
|
### [2.169.2](https://github.com/railroadmedia/musora-content-services/compare/v2.169.1...v2.169.2) (2026-08-07)
|
|
6
20
|
|
|
7
21
|
|
package/package.json
CHANGED
|
@@ -46,9 +46,9 @@ export function isSameDate(date1, date2) {
|
|
|
46
46
|
|
|
47
47
|
// Check if two dates are consecutive days
|
|
48
48
|
export function isNextDay(date1, date2) {
|
|
49
|
-
const d1 =
|
|
50
|
-
const d2 =
|
|
51
|
-
return d2.diff(d1, 'day') === 1
|
|
49
|
+
const d1 = toLocalDay(date1)
|
|
50
|
+
const d2 = toLocalDay(date2)
|
|
51
|
+
return Math.round(d2.diff(d1, 'day', true)) === 1
|
|
52
52
|
}
|
|
53
53
|
export function getTimeRemainingUntilLocal(targetUtcIsoString, { withTotalSeconds } = {}) {
|
|
54
54
|
const targetUTC = new Date(targetUtcIsoString)
|
|
@@ -595,9 +595,7 @@ function calculateStreaks(practices, includeStreakMessage = false) {
|
|
|
595
595
|
let sortedPracticeDays = Object.keys(practices)
|
|
596
596
|
.map((dateStr) => {
|
|
597
597
|
const [year, month, day] = dateStr.split('-').map(Number)
|
|
598
|
-
|
|
599
|
-
newDate.setFullYear(year, month - 1, day)
|
|
600
|
-
return newDate
|
|
598
|
+
return new Date(year, month - 1, day, 0, 0, 0, 0)
|
|
601
599
|
})
|
|
602
600
|
.sort((a, b) => a - b)
|
|
603
601
|
if (sortedPracticeDays.length === 0) {
|
|
@@ -652,6 +650,7 @@ function calculateStreaks(practices, includeStreakMessage = false) {
|
|
|
652
650
|
// Calculate streak message only if includeStreakMessage is true
|
|
653
651
|
if (includeStreakMessage) {
|
|
654
652
|
let today = new Date()
|
|
653
|
+
today.setHours(0, 0, 0, 0)
|
|
655
654
|
let yesterday = new Date(today)
|
|
656
655
|
yesterday.setDate(today.getDate() - 1)
|
|
657
656
|
|
package/src/version-info.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MCS_VERSION = '2.169.
|
|
1
|
+
export const MCS_VERSION = '2.169.4'
|