@ddtcorex/dsh-maestro-memory 1.1.1 → 1.2.0
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/CHANGELOG.md +15 -0
- package/lib/client.js +220 -365
- package/lib/prompt/snapshot.d.ts.map +1 -1
- package/lib/prompt/snapshot.js +4 -1
- package/lib/prompt/snapshot.js.map +1 -1
- package/lib/types/client/index.d.ts +0 -4
- package/lib/types/client/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client/index.tsx +527 -1003
- package/src/host/prompt/snapshot.ts +4 -1
|
@@ -99,12 +99,15 @@ export function renderSnapshot(
|
|
|
99
99
|
|
|
100
100
|
// Recent daily slot (512B) — last 2 days' newest entries
|
|
101
101
|
// Keeps recent context without exceeding cap; full logs remain query-only.
|
|
102
|
+
// Use local calendar (matching store.todayStamp) to avoid UTC/local drift near midnight.
|
|
102
103
|
try {
|
|
103
104
|
const recentDaily: string[] = []
|
|
104
105
|
for (let i = 0; i < 2; i++) {
|
|
105
106
|
const d = new Date()
|
|
106
107
|
d.setDate(d.getDate() - i)
|
|
107
|
-
const
|
|
108
|
+
const mm = String(d.getMonth() + 1).padStart(2, '0')
|
|
109
|
+
const dd = String(d.getDate()).padStart(2, '0')
|
|
110
|
+
const ds = `${d.getFullYear()}-${mm}-${dd}`
|
|
108
111
|
try {
|
|
109
112
|
const list: string[] = store.list('daily', undefined, { date: ds } as any)
|
|
110
113
|
if (list.length) recentDaily.push(list[list.length - 1])
|