wayfind 2.0.55 → 2.0.56

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/bin/distill.js CHANGED
@@ -212,10 +212,10 @@ async function distillEntries(options = {}) {
212
212
 
213
213
  // Calculate date range for this tier
214
214
  const now = new Date();
215
- const sinceDate = new Date(now);
216
- sinceDate.setDate(sinceDate.getDate() - tierDef.maxAgeDays);
217
- const untilDate = new Date(now);
218
- untilDate.setDate(untilDate.getDate() - tierDef.minAgeDays);
215
+ const sinceDate = tierDef.maxAgeDays === Infinity
216
+ ? new Date(0)
217
+ : new Date(now.getTime() - tierDef.maxAgeDays * 86400000);
218
+ const untilDate = new Date(now.getTime() - tierDef.minAgeDays * 86400000);
219
219
 
220
220
  const since = sinceDate.toISOString().split('T')[0];
221
221
  const until = untilDate.toISOString().split('T')[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wayfind",
3
- "version": "2.0.55",
3
+ "version": "2.0.56",
4
4
  "description": "Team decision trail for AI-assisted development. The connective tissue between product, engineering, and strategy.",
5
5
  "bin": {
6
6
  "wayfind": "./bin/team-context.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wayfind",
3
- "version": "2.0.55",
3
+ "version": "2.0.56",
4
4
  "description": "Team decision trail for AI-assisted development. Session memory, decision journals, and team digests.",
5
5
  "author": {
6
6
  "name": "Wayfind",