@timetrakkr/cli 0.0.0-stage → 1.0.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/LICENSE +21 -0
- package/README.md +89 -2
- package/dist/timetrakkr.cjs +2869 -0
- package/package.json +30 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 MCF Consulting, LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,90 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @timetrakkr/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The command-line half of the [Time Trakkr](https://timetrakkr.com) plugins for
|
|
4
|
+
Claude Code, Codex and Cursor. The plugins call it from the agent's hooks to
|
|
5
|
+
measure how long the agent worked in a repository your workspace has
|
|
6
|
+
connected, and it reports that time to Time Trakkr, where it waits on your
|
|
7
|
+
timesheet for you to review. Nothing becomes a time entry on its own.
|
|
8
|
+
|
|
9
|
+
On its own, this package records nothing: time is measured by the hooks a
|
|
10
|
+
plugin installs. Install a plugin to track time; use this package to sign in
|
|
11
|
+
or check on things from a terminal.
|
|
12
|
+
|
|
13
|
+
The same file, at the same version, is bundled in every plugin, so this
|
|
14
|
+
package and the plugins never disagree. Both keep their state in
|
|
15
|
+
`~/.timetrakkr`, so signing in with one signs in the other.
|
|
16
|
+
|
|
17
|
+
It needs Node 20 or later and has no dependencies.
|
|
18
|
+
|
|
19
|
+
## Install the plugin
|
|
20
|
+
|
|
21
|
+
The plugins are published at
|
|
22
|
+
[github.com/Time-Trakkr/agent-plugins](https://github.com/Time-Trakkr/agent-plugins), with the install command for
|
|
23
|
+
each host. For Claude Code:
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
claude plugin marketplace add Time-Trakkr/agent-plugins && claude plugin install timetrakkr@timetrakkr
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Sign in
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
npx @timetrakkr/cli login
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Your browser opens on Time Trakkr. Sign in, pick your workspace and press
|
|
36
|
+
Allow. The workspace must have the Agent time add-on switched on. For a
|
|
37
|
+
workspace on a custom domain or on staging, add `--url <address>` once; the
|
|
38
|
+
address is remembered.
|
|
39
|
+
|
|
40
|
+
The sign-in can report agent time and read the workspace's repository rules,
|
|
41
|
+
and nothing else: it cannot read or change your time entries, reports,
|
|
42
|
+
invoices or anything else in your workspace. It is kept in an owner-only file
|
|
43
|
+
under `~/.timetrakkr`, renews itself, and lapses after 30 days without use. It
|
|
44
|
+
is listed under Connected apps in Time Trakkr as "Time Trakkr CLI on" and this
|
|
45
|
+
computer's hostname, which is the one thing about the machine that signing in
|
|
46
|
+
sends. `npx @timetrakkr/cli logout` revokes it.
|
|
47
|
+
|
|
48
|
+
On a machine with no browser, set `TIMETRAKKR_TOKEN` to a personal access
|
|
49
|
+
token created with **Agent time only** instead of signing in.
|
|
50
|
+
|
|
51
|
+
## Commands
|
|
52
|
+
|
|
53
|
+
| Command | What it does |
|
|
54
|
+
| --- | --- |
|
|
55
|
+
| `timetrakkr login` | Sign in through your browser, picking the workspace there |
|
|
56
|
+
| `timetrakkr logout` | Revoke the sign-in and delete it from this machine |
|
|
57
|
+
| `timetrakkr status` | What this directory is tracked to and why, and whether sign-in works |
|
|
58
|
+
| `timetrakkr off` / `on` | Stop or resume tracking the current agent session |
|
|
59
|
+
| `timetrakkr estimate --hours <n> --label "<text>"` | Record how long the agent said the work would take a person; shown beside the agent's time, never billed |
|
|
60
|
+
| `timetrakkr --version` | Print the version |
|
|
61
|
+
|
|
62
|
+
With `npx`, write `npx @timetrakkr/cli` in place of `timetrakkr`.
|
|
63
|
+
|
|
64
|
+
## What is sent, and what never is
|
|
65
|
+
|
|
66
|
+
Only for a repository your workspace has mapped to a project, by an admin's
|
|
67
|
+
rule or a `.timetrakkr.json` file in the repository. For any other repository
|
|
68
|
+
nothing about it is sent, not even its address.
|
|
69
|
+
|
|
70
|
+
Sent, once per turn: the session id, the day, the active seconds and number of
|
|
71
|
+
turns that day, when the first turn began and the last ended, the project and
|
|
72
|
+
task and the rule that chose them, the repository's address as
|
|
73
|
+
`host/owner/repo`, the branch, the model, token counts per model, and an
|
|
74
|
+
estimate if one was recorded.
|
|
75
|
+
|
|
76
|
+
Never sent: your prompts, the agent's replies, tool input or output, file
|
|
77
|
+
contents or file names, and diffs. The agent's transcript is read on your
|
|
78
|
+
machine for token counts, the model name and reply ids only.
|
|
79
|
+
|
|
80
|
+
The time between turns, while you read or are away, is not counted.
|
|
81
|
+
|
|
82
|
+
## Source
|
|
83
|
+
|
|
84
|
+
This package is built from the Time Trakkr repository and published with the
|
|
85
|
+
plugins, from [github.com/Time-Trakkr/agent-plugins](https://github.com/Time-Trakkr/agent-plugins), where each
|
|
86
|
+
release holds the exact file published here.
|
|
87
|
+
|
|
88
|
+
## License
|
|
89
|
+
|
|
90
|
+
MIT. See `LICENSE`.
|