dsh-colophon 0.3.0 → 0.3.1
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/lib/app.js +2 -1
- package/package.json +1 -1
package/lib/app.js
CHANGED
|
@@ -719,7 +719,8 @@ export function install(ctx, rawConfig) {
|
|
|
719
719
|
const to = Number(params.get('to'))
|
|
720
720
|
const kind = params.get('kind')
|
|
721
721
|
const bucket = params.get('bucket') === 'hour' || kind === 'today' ? 'hour' : 'day'
|
|
722
|
-
const
|
|
722
|
+
const hasCustom = params.get('from') !== null && params.get('to') !== null
|
|
723
|
+
const range = hasCustom && Number.isFinite(from) && Number.isFinite(to) && from <= to
|
|
723
724
|
? { from, to }
|
|
724
725
|
: ['today', 'week', 'month'].includes(kind)
|
|
725
726
|
? { from: rangeOf(now, kind).from, to: now }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-colophon",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Colophon(卷末)— keep a local, token-free conclusion digest for every conversation, so reopening an old session starts from its final state instead of its full history.",
|
|
5
5
|
"documentation": "README.md",
|
|
6
6
|
"license": "MIT",
|