limitcast 0.11.0 → 0.11.2
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/README.md +1 -1
- package/package.json +1 -1
- package/src/polar.mjs +5 -1
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ Requires Node 20+ on macOS or Linux.
|
|
|
37
37
|
## Install
|
|
38
38
|
|
|
39
39
|
```sh
|
|
40
|
-
npm install -g limitcast # or: brew install samstull9007/limitcast/limitcast
|
|
40
|
+
npm install -g limitcast # or: brew trust samstull9007/limitcast && brew install samstull9007/limitcast/limitcast
|
|
41
41
|
limitcast install # free: status-line recorder
|
|
42
42
|
limitcast trial # Pro free for 7 days, no card (or: limitcast activate <key>)
|
|
43
43
|
limitcast install --guard # also the subagent guard (free: preview only)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "limitcast",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "Stretch your Claude Code plan: measure what every session loads before you type, cut what you never use, and stop runaway subagents before they burn your window.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/polar.mjs
CHANGED
|
@@ -36,7 +36,11 @@ function savePolar(l) {
|
|
|
36
36
|
* @returns {{ok:true, claims:{e:string, p:string, i:number, x:number}} | {ok:false, reason:string}}
|
|
37
37
|
*/
|
|
38
38
|
export function polarStatus(l, now) {
|
|
39
|
-
if (l.status !== 'granted')
|
|
39
|
+
if (l.status !== 'granted')
|
|
40
|
+
return {
|
|
41
|
+
ok: false,
|
|
42
|
+
reason: `this key is no longer active at Polar (${l.status}): the subscription ended or the key was revoked. Resubscribe at https://limitcast.dev/#pricing`,
|
|
43
|
+
};
|
|
40
44
|
const exp = l.expiresAt ? Date.parse(l.expiresAt) : 0;
|
|
41
45
|
if (exp && exp < now) return { ok: false, reason: `expired ${new Date(exp).toISOString().slice(0, 10)}` };
|
|
42
46
|
if (now - l.checkedAt > GRACE_MS)
|