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.
@@ -1,39 +1,16 @@
1
1
  {
2
2
  "permissions": {
3
3
  "allow": [
4
- "Bash(npx jest *)",
5
- "Bash(npx tsc *)",
6
- "Skill(counselors)",
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(gh pr *)",
12
- "Bash(gh api *)",
13
- "Bash(mkdir -p /tmp/pr-review-v2)",
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
 
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.169.2",
3
+ "version": "2.169.4",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -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 = dayjs(date1).startOf('day')
50
- const d2 = dayjs(date2).startOf('day')
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)
@@ -1,5 +1,5 @@
1
+ import { HttpClient } from '../../infrastructure/http/HttpClient'
1
2
  import { globalConfig } from '../config.js'
2
- import { HttpClient } from '@/infrastructure/http'
3
3
  import { AuthResponse } from './types'
4
4
 
5
5
  export interface VerifyOAuthTokenParams {
@@ -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
- const newDate = new Date()
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
 
@@ -1 +1 @@
1
- export const MCS_VERSION = '2.169.2'
1
+ export const MCS_VERSION = '2.169.4'