@cgaravitoq/aiusage 0.4.0 → 0.5.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/README.md +1 -1
- package/package.json +1 -1
- package/src/schedule.ts +3 -3
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ bun add -g @cgaravitoq/aiusage
|
|
|
12
12
|
aiusage install --url <url> --key <key>
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
`install` writes `~/.config/aiusage/config.json` with mode 600 and a launchd agent on macOS or a systemd user timer on Linux that runs `aiusage collect` every
|
|
15
|
+
`install` writes `~/.config/aiusage/config.json` with mode 600 and a launchd agent on macOS or a systemd user timer on Linux that runs `aiusage collect` every fifteen minutes.
|
|
16
16
|
Pass `--timezone <zone>` to override the machine's IANA timezone, or `--dry-run` to print the files without writing them.
|
|
17
17
|
Non-dry `install` refuses Bun paths containing `/install/cache/` or a `bunx-<digits>-<package>` directory segment, because those paths can disappear while a schedule still points to them.
|
|
18
18
|
|
package/package.json
CHANGED
package/src/schedule.ts
CHANGED
|
@@ -39,7 +39,7 @@ export function launchAgentPlist(options: ScheduleOptions): string {
|
|
|
39
39
|
<string>collect</string>
|
|
40
40
|
</array>
|
|
41
41
|
<key>StartInterval</key>
|
|
42
|
-
<integer>
|
|
42
|
+
<integer>900</integer>
|
|
43
43
|
<key>RunAtLoad</key>
|
|
44
44
|
<true/>
|
|
45
45
|
<key>StandardOutPath</key>
|
|
@@ -63,12 +63,12 @@ ExecStart="${escapeSystemd(options.execPath)}" "${escapeSystemd(options.cliPath)
|
|
|
63
63
|
|
|
64
64
|
export function systemdTimer(): string {
|
|
65
65
|
return `[Unit]
|
|
66
|
-
Description=Report local token usage to aiusage every
|
|
66
|
+
Description=Report local token usage to aiusage every fifteen minutes
|
|
67
67
|
|
|
68
68
|
[Timer]
|
|
69
69
|
Unit=aiusage.service
|
|
70
70
|
OnBootSec=1min
|
|
71
|
-
OnUnitActiveSec=
|
|
71
|
+
OnUnitActiveSec=15min
|
|
72
72
|
|
|
73
73
|
[Install]
|
|
74
74
|
WantedBy=timers.target
|