quotum 0.1.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/LICENSE +21 -0
- package/README.md +20 -0
- package/bin/quotum.js +29 -0
- package/package.json +39 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Sergey Padurets
|
|
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
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Quotum
|
|
2
|
+
|
|
3
|
+
Quotum shows how much of your coding-agent subscriptions is left — Claude Code, Codex
|
|
4
|
+
and Antigravity — on every machine you work on, in one place.
|
|
5
|
+
|
|
6
|
+
This package is the Quotum agent: a small native program that asks the agents' own
|
|
7
|
+
command-line clients for their limits. It never reads your tokens and makes no model
|
|
8
|
+
requests.
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
npx quotum # measure once and print this machine's limits
|
|
12
|
+
npx quotum connect https://hub… # connect this machine to a Quotum hub with a one-time code
|
|
13
|
+
npx quotum run # keep measuring and deliver to the hub
|
|
14
|
+
npx quotum --help
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Prebuilt for Linux (x64, arm64, any distribution), macOS (Intel, Apple silicon) and
|
|
18
|
+
Windows (x64); npm installs only the binary for your platform.
|
|
19
|
+
|
|
20
|
+
The dashboard (the hub), how it works and why: https://github.com/padurets/quotum
|
package/bin/quotum.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Runs the quotum agent built for this platform. npm installs that binary from the
|
|
3
|
+
// matching optional dependency (@quotum/<platform>-<arch>); nothing is downloaded here.
|
|
4
|
+
'use strict';
|
|
5
|
+
const {spawnSync} = require('node:child_process');
|
|
6
|
+
|
|
7
|
+
const SUPPORTED = ['linux-x64', 'linux-arm64', 'darwin-x64', 'darwin-arm64', 'win32-x64'];
|
|
8
|
+
const target = `${process.platform}-${process.arch}`;
|
|
9
|
+
|
|
10
|
+
function fail(message) {
|
|
11
|
+
console.error(`quotum: ${message}`);
|
|
12
|
+
process.exit(1);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
let binary;
|
|
16
|
+
try {
|
|
17
|
+
binary = require.resolve(`@quotum/${target}/bin/quotum${process.platform === 'win32' ? '.exe' : ''}`);
|
|
18
|
+
} catch {
|
|
19
|
+
fail(
|
|
20
|
+
SUPPORTED.includes(target)
|
|
21
|
+
? `the binary for ${target} is not installed; reinstall without --omit=optional (or --no-optional).`
|
|
22
|
+
: `there is no prebuilt binary for ${target} yet (${SUPPORTED.join(', ')}); build it from source: https://github.com/padurets/quotum`,
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const result = spawnSync(binary, process.argv.slice(2), {stdio: 'inherit'});
|
|
27
|
+
if (result.error) fail(result.error.message);
|
|
28
|
+
if (result.signal) process.kill(process.pid, result.signal);
|
|
29
|
+
process.exitCode = result.status ?? 1;
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "quotum",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "See how much of your coding-agent subscriptions is left (Claude Code, Codex, Antigravity) on every machine, in one place.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"claude-code",
|
|
7
|
+
"codex",
|
|
8
|
+
"antigravity",
|
|
9
|
+
"usage",
|
|
10
|
+
"limits",
|
|
11
|
+
"quota",
|
|
12
|
+
"cli"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://github.com/padurets/quotum",
|
|
15
|
+
"bugs": "https://github.com/padurets/quotum/issues",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/padurets/quotum.git",
|
|
19
|
+
"directory": "npm/quotum"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"author": "Sergey Padurets",
|
|
23
|
+
"bin": {
|
|
24
|
+
"quotum": "bin/quotum.js"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"bin"
|
|
28
|
+
],
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=18"
|
|
31
|
+
},
|
|
32
|
+
"optionalDependencies": {
|
|
33
|
+
"@quotum/linux-x64": "0.1.0",
|
|
34
|
+
"@quotum/linux-arm64": "0.1.0",
|
|
35
|
+
"@quotum/darwin-x64": "0.1.0",
|
|
36
|
+
"@quotum/darwin-arm64": "0.1.0",
|
|
37
|
+
"@quotum/win32-x64": "0.1.0"
|
|
38
|
+
}
|
|
39
|
+
}
|