@simonesiega/codex-limits 1.1.0 → 1.2.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/CHANGELOG.md +23 -14
- package/CODE_OF_CONDUCT.md +120 -0
- package/CONTRIBUTING.md +44 -41
- package/README.md +119 -143
- package/SECURITY.md +27 -10
- package/dist/cli.js +148 -137
- package/dist/copilot.mjs +3 -3
- package/dist/opencode.js +3 -3
- package/dist/pi.js +3 -3
- package/docs/README.md +36 -29
- package/docs/examples/codex-limits-coupons-output.example.json +25 -0
- package/docs/examples/codex-limits-doctor-output.example.json +14 -0
- package/docs/readme/agent-integrations.md +36 -15
- package/docs/readme/agents/copilot.md +20 -38
- package/docs/readme/agents/opencode.md +23 -29
- package/docs/readme/agents/pi.md +20 -29
- package/docs/readme/compatibility.md +34 -42
- package/docs/readme/json-output.md +70 -35
- package/docs/readme/troubleshooting.md +160 -0
- package/docs/schema/codex-limits-coupons.schema.json +107 -0
- package/docs/schema/codex-limits-doctor.schema.json +50 -0
- package/docs/schema/codex-limits.schema.json +2 -1
- package/package.json +11 -3
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/simonesiega/codex-limits/main/docs/schema/codex-limits-doctor.schema.json",
|
|
4
|
+
"title": "Codex Limits Doctor JSON Output",
|
|
5
|
+
"description": "Schema for the output of `codex-limits doctor --json`.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": [
|
|
9
|
+
"packageVersion",
|
|
10
|
+
"nodeVersion",
|
|
11
|
+
"operatingSystem",
|
|
12
|
+
"codexHomeDetected",
|
|
13
|
+
"authenticationFound",
|
|
14
|
+
"localUsageFound",
|
|
15
|
+
"liveEndpoint",
|
|
16
|
+
"agentIntegrations"
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"packageVersion": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"nodeVersion": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"operatingSystem": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"codexHomeDetected": {
|
|
29
|
+
"type": "boolean"
|
|
30
|
+
},
|
|
31
|
+
"authenticationFound": {
|
|
32
|
+
"type": "boolean"
|
|
33
|
+
},
|
|
34
|
+
"localUsageFound": {
|
|
35
|
+
"type": "boolean"
|
|
36
|
+
},
|
|
37
|
+
"liveEndpoint": {
|
|
38
|
+
"enum": ["not-checked", "reachable", "unreachable"]
|
|
39
|
+
},
|
|
40
|
+
"agentIntegrations": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"propertyNames": {
|
|
43
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9_-]{0,63}$"
|
|
44
|
+
},
|
|
45
|
+
"additionalProperties": {
|
|
46
|
+
"enum": ["installed", "not-installed", "unknown"]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simonesiega/codex-limits",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"description": "Cross-platform npm CLI with agent integrations for monitoring OpenAI Codex usage limits, reset times, and reset-credit coupons.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"codex-limits": "dist/cli.js"
|
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
"types": "./types/opencode.d.ts",
|
|
21
21
|
"import": "./dist/opencode.js"
|
|
22
22
|
},
|
|
23
|
+
"./tui": {
|
|
24
|
+
"types": "./types/opencode.d.ts",
|
|
25
|
+
"import": "./dist/opencode.js"
|
|
26
|
+
},
|
|
23
27
|
"./pi": {
|
|
24
28
|
"types": "./types/pi.d.ts",
|
|
25
29
|
"import": "./dist/pi.js"
|
|
@@ -37,6 +41,7 @@
|
|
|
37
41
|
"scripts/postinstall.cjs",
|
|
38
42
|
"README.md",
|
|
39
43
|
"CONTRIBUTING.md",
|
|
44
|
+
"CODE_OF_CONDUCT.md",
|
|
40
45
|
"CHANGELOG.md",
|
|
41
46
|
"SECURITY.md",
|
|
42
47
|
".env.example",
|
|
@@ -51,6 +56,8 @@
|
|
|
51
56
|
"docs:schema": "bun run scripts/check-doc-schema.ts",
|
|
52
57
|
"docs:check": "bun run docs:link && bun run docs:schema",
|
|
53
58
|
"typecheck": "tsc --noEmit",
|
|
59
|
+
"audit": "bun audit",
|
|
60
|
+
"agents:compat": "bun run scripts/check-agent-compatibility.ts",
|
|
54
61
|
"test": "bun test",
|
|
55
62
|
"package:validate": "bun run scripts/validate-package.ts",
|
|
56
63
|
"check": "bun run format:check && bun run docs:check && bun run typecheck && bun test && bun run build && bun run package:validate",
|
|
@@ -87,7 +94,8 @@
|
|
|
87
94
|
"packageManager": "bun@1.3.14",
|
|
88
95
|
"overrides": {
|
|
89
96
|
"brace-expansion": "5.0.9",
|
|
90
|
-
"fast-uri": "3.1.
|
|
97
|
+
"fast-uri": "3.1.5",
|
|
98
|
+
"undici": "8.10.0"
|
|
91
99
|
},
|
|
92
100
|
"peerDependencies": {
|
|
93
101
|
"@earendil-works/pi-coding-agent": "*",
|