@drakulavich/cogload 0.17.0 → 0.18.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 +12 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/lib/status/status.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ All notable changes to this project are documented here. The format follows
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [0.18.0] - 2026-11-22
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- The plugin now holds the first prompt of a session that becomes the fourth
|
|
12
|
+
live one for ten minutes. It applies when the last reading shows three
|
|
13
|
+
sessions and no fourth one was seen in the past hour. The hold ends on its
|
|
14
|
+
own; a skip lifts it and comes from the same five a week as a rest's. The
|
|
15
|
+
band shows `4th session until 14:52 (7 min)`, and the week line counts the
|
|
16
|
+
holds. Plugin 0.14.0, needs cogload 0.18.0. (#259)
|
|
17
|
+
- `cogload status` JSON carries `sessions`, the number of sessions in the
|
|
18
|
+
live bucket. (#259)
|
|
19
|
+
|
|
8
20
|
## [0.17.0] - 2026-11-22
|
|
9
21
|
|
|
10
22
|
### Added
|
package/README.md
CHANGED
|
@@ -99,7 +99,7 @@ Heating 80 this hour, at the cap: 16 decisions and 13 context switches, 32 promp
|
|
|
99
99
|
This week: 1 rest taken, 1 skipped (last: "prod is down, fixing it"), 4 skips left.
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
-
It also makes you rest. After 40 minutes of work without a ten-minute gap, or in a Fried hour, it holds your prompts for ten minutes ([why these numbers](docs/how-the-numbers-are-made.md#9-why-40-minutes-and-ten)). A prompt you send then stays in the box and goes when the rest ends, with the next short idea for the break and the minutes left: `Queued for 14:32. Stand up and stretch. 7 min left. It stays in the box, and goes as it reads then.` Until then you can edit it or delete it. Text typed without Enter stays a draft, and a prompt with an attachment, a `skip:` line or a prompt sent after the rest leaves nothing queued. A `skip: <reason>` line at the start or the end of the prompt, the reason three words or more, lifts the rest. You get five skips a calendar week, from Monday 00:00 local time. With none left, a skip gets `The powerbank is empty until Monday: 5 skips this week.` and the rest runs out on its own.
|
|
102
|
+
It also makes you rest. After 40 minutes of work without a ten-minute gap, or in a Fried hour, it holds your prompts for ten minutes ([why these numbers](docs/how-the-numbers-are-made.md#9-why-40-minutes-and-ten)). A prompt you send then stays in the box and goes when the rest ends, with the next short idea for the break and the minutes left: `Queued for 14:32. Stand up and stretch. 7 min left. It stays in the box, and goes as it reads then.` Until then you can edit it or delete it. Text typed without Enter stays a draft, and a prompt with an attachment, a `skip:` line or a prompt sent after the rest leaves nothing queued. A `skip: <reason>` line at the start or the end of the prompt, the reason three words or more, lifts the rest. You get five skips a calendar week, from Monday 00:00 local time. With none left, a skip gets `The powerbank is empty until Monday: 5 skips this week.` and the rest runs out on its own. The first prompt of a new session waits ten minutes too when three other sessions already ran in the last sixty minutes: `Queued for 14:52. Three other sessions ran this hour: a fourth waits 10 min. It stays in the box, and goes as it reads then.` The other three keep working, and a `skip:` line lifts the wait. After a hold, the plugin holds a new session again only after an hour with fewer than four.
|
|
103
103
|
|
|
104
104
|
## Privacy
|
|
105
105
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drakulavich/cogload",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Keep your head cold. A thermometer for your Claude Code days: every hour scored 0 to 100 from the transcripts already on your disk. Nothing leaves your machine.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Anton Yakutovich",
|
package/src/lib/status/status.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GAP_MS, MAX_STREAK_MIN, NORMS } from "../metrics/index.ts";
|
|
2
2
|
import type { Day, Level } from "../types.ts";
|
|
3
3
|
|
|
4
|
-
// The status file's
|
|
4
|
+
// The status file's twelve values. The field order is the file format.
|
|
5
5
|
export type Status = {
|
|
6
6
|
schema: 1;
|
|
7
7
|
asOf: string;
|
|
@@ -14,6 +14,7 @@ export type Status = {
|
|
|
14
14
|
streakMin: number;
|
|
15
15
|
restAt: string | null;
|
|
16
16
|
restMin: number;
|
|
17
|
+
sessions: number;
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
// How far back `status` reads to find where the live streak began: as far as
|
|
@@ -44,6 +45,7 @@ export function statusOf(day: Day, now: Date): Status {
|
|
|
44
45
|
streakMin,
|
|
45
46
|
restAt: streakMin > 0 ? new Date(Date.parse(day.presence!.streakStartAt) + NORMS.streakMin * 60000).toISOString() : null,
|
|
46
47
|
restMin: GAP_MS / 60000,
|
|
48
|
+
sessions: day.live?.sessions ?? 0,
|
|
47
49
|
};
|
|
48
50
|
}
|
|
49
51
|
|