@limitry/cli 1.0.0-rc.3 → 1.0.0-rc.5

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 ADDED
@@ -0,0 +1,21 @@
1
+ # Changelog
2
+
3
+ What changed in the Limitry CLI (`@limitry/cli`). Generated from the source on each release; newest first.
4
+
5
+ ## 1.0.0-rc.5 (2026-10-16)
6
+
7
+ No user-facing changes.
8
+
9
+ ## 1.0.0-rc.4 (2026-10-16)
10
+
11
+ ### Added
12
+
13
+ - Each release comes with a `CHANGELOG.md` listing what changed, newest first.
14
+
15
+ ### Changed
16
+
17
+ - The package page (README, on GitHub, npm and PyPI) shows what the product does with a first real example, and links the guide, the API reference, the changelog and support.
18
+
19
+ ## 1.0.0-rc.3 (2026-10-16)
20
+
21
+ No user-facing changes.
package/README.md CHANGED
@@ -1,20 +1,65 @@
1
1
  # @limitry/cli
2
2
 
3
- The Limitry command line.
3
+ The Limitry CLI sets up your limits and checks them from a terminal, a script or an agent: create a limit, try a check, and see who is using what, in test before live.
4
+
5
+ Limitry is the limits, credits and budgets layer for your software: give each of your users, teams, tenants, API keys or agents an allowance, and before any costly action one call tells your code whether it may happen.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install -g @limitry/cli
11
+ ```
12
+
13
+ Or run it without installing: `npx @limitry/cli --help`.
14
+
15
+ ## Sign in
4
16
 
5
17
  ```bash
6
- npx @limitry/cli login
7
- # or
8
- npm install -g @limitry/cli && limitry login
18
+ limitry login
9
19
  ```
10
20
 
11
- - Guide: https://limitry.com/docs/cli/
21
+ Your browser opens: sign in, choose the workspaces the CLI may use, and
22
+ click **Allow**. On a server or in CI, set `LIMITRY_TOKEN` to a personal
23
+ access token or a workspace API key instead.
24
+
25
+ ## Set up a limit and try it
12
26
 
13
- ## Building from this repository
27
+ Commands act in **test** unless you say otherwise, so trying things
28
+ never touches the limits your customers depend on.
14
29
 
15
30
  ```bash
16
- npm ci && npm test && npm run build
31
+ # 100 AI replies a day for each user
32
+ limitry limits create --name "AI replies per day" --subject-kind user \
33
+ --action ai-call --amount 100 --window day
34
+
35
+ # Check a user, as your code would
36
+ limitry check user:usr_123 ai-call
37
+
38
+ # Where a user stands, without counting anything
39
+ limitry usage standing --kind user --id usr_123
17
40
  ```
18
41
 
19
- This repository is generated from Limitry's own repository on
20
- each release; see CONTRIBUTING.md. Licensed under the Apache License 2.0.
42
+ When a limit is right, copy it to live from the **Limits** page in the
43
+ app, or create it with `--environment live`.
44
+
45
+ ## Everything else
46
+
47
+ Every API operation is a command: `limitry --help` lists them, and any
48
+ command takes `--json` for the API's exact answer, for scripts and
49
+ agents.
50
+
51
+ ## Links
52
+
53
+ - [Website](https://limitry.com)
54
+ - [CLI guide](https://limitry.com/docs/cli/)
55
+ - [API reference](https://limitry.com/docs/reference/)
56
+ - [Changelog](https://github.com/limitry/limitry-cli/blob/main/CHANGELOG.md)
57
+ - [Discord](https://limitry.com/discord)
58
+ - [Report a security issue](https://limitry.com/security/)
59
+
60
+ ## About this package
61
+
62
+ This repository is generated from Limitry's source on each
63
+ release, so pull requests are ported there and credited (see
64
+ [CONTRIBUTING.md](https://github.com/limitry/limitry-cli/blob/main/CONTRIBUTING.md)).
65
+ Licensed under the Apache License 2.0.
package/dist/limitry.mjs CHANGED
@@ -12,7 +12,19 @@ var brand_default = {
12
12
  productName: "Limitry",
13
13
  legalName: "Omsome L.L.C-FZ",
14
14
  releaseMirrors: true,
15
+ mirrorProfile: {
16
+ tagline: "limits, credits and budgets, checked in one call before each costly request",
17
+ topics: [
18
+ "rate-limiting",
19
+ "usage-limits",
20
+ "credits",
21
+ "budgets",
22
+ "api-client",
23
+ "sdk"
24
+ ]
25
+ },
15
26
  domain: "limitry.com",
27
+ discordInvite: "https://discord.gg/Nb6QFd6ER4",
16
28
  summary: "Limitry is the limits, credits and budgets layer for your software: give each of your users, teams, tenants, API keys or agents an allowance, and before any costly action one call tells your code whether it may happen.",
17
29
  expectedAssets: [
18
30
  "logo.svg",
@@ -82,6 +94,12 @@ var brand = {
82
94
  */
83
95
  legalName: optional.legalName ?? brand_default.productName,
84
96
  domain: brand_default.domain,
97
+ /**
98
+ * Where the product's community talks: https://<domain>/discord, the
99
+ * site's redirect to brand.json `discordInvite` (pnpm brand:sync); null
100
+ * when the product has no Discord.
101
+ */
102
+ discord: optional.discordInvite ? `https://${brand_default.domain}/discord` : null,
85
103
  /** One sentence: what the product is — llms.txt and the agent skill lead with it. */
86
104
  summary: optional.summary ?? `${brand_default.productName} documentation and API.`,
87
105
  /** Where vulnerability reports go — /.well-known/security.txt and /security publish it. Defaults to security@<domain>. */
@@ -8034,7 +8052,7 @@ function tokenEnvVar() {
8034
8052
  function build(io) {
8035
8053
  let actedIn = null;
8036
8054
  let sending;
8037
- const program2 = new Command().name(brand.name).description(`${brand.productName} command line`).version("1.0.0-rc.3").addHelpText(
8055
+ const program2 = new Command().name(brand.name).description(`${brand.productName} command line`).version("1.0.0-rc.5").addHelpText(
8038
8056
  "after",
8039
8057
  `
8040
8058
  Token: \`${brand.name} login\` stores it in ~/.config/${brand.name}/; ${tokenEnvVar()} overrides.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limitry/cli",
3
- "version": "1.0.0-rc.3",
3
+ "version": "1.0.0-rc.5",
4
4
  "description": "Limitry command line",
5
5
  "type": "module",
6
6
  "bin": {
@@ -8,7 +8,8 @@
8
8
  },
9
9
  "files": [
10
10
  "dist",
11
- "NOTICE"
11
+ "NOTICE",
12
+ "CHANGELOG.md"
12
13
  ],
13
14
  "scripts": {
14
15
  "build": "node build.mjs",
@@ -16,7 +17,7 @@
16
17
  "typecheck": "tsc --noEmit"
17
18
  },
18
19
  "devDependencies": {
19
- "@limitry/sdk": "1.0.0-rc.3",
20
+ "@limitry/sdk": "1.0.0-rc.5",
20
21
  "@types/node": "26.6.5",
21
22
  "commander": "15.0.0",
22
23
  "esbuild": "0.28.2",