@simonesiega/codex-limits 1.0.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.
@@ -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
+ }
@@ -163,7 +163,8 @@
163
163
  "anyOf": [
164
164
  {
165
165
  "type": "integer",
166
- "minimum": 0
166
+ "minimum": 0,
167
+ "maximum": 9007199254740991
167
168
  },
168
169
  {
169
170
  "type": "null"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simonesiega/codex-limits",
3
- "version": "1.0.0",
4
- "description": "Check Codex usage limits, reset times, and reset-credit coupons from a fast, read-only terminal dashboard.",
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"
@@ -13,11 +13,27 @@
13
13
  },
14
14
  "exports": {
15
15
  ".": {
16
- "types": "./types/index.d.ts",
16
+ "types": "./types/opencode.d.ts",
17
17
  "import": "./dist/opencode.js"
18
+ },
19
+ "./opencode": {
20
+ "types": "./types/opencode.d.ts",
21
+ "import": "./dist/opencode.js"
22
+ },
23
+ "./tui": {
24
+ "types": "./types/opencode.d.ts",
25
+ "import": "./dist/opencode.js"
26
+ },
27
+ "./pi": {
28
+ "types": "./types/pi.d.ts",
29
+ "import": "./dist/pi.js"
30
+ },
31
+ "./copilot": {
32
+ "types": "./types/copilot.d.ts",
33
+ "import": "./dist/copilot.mjs"
18
34
  }
19
35
  },
20
- "types": "./types/index.d.ts",
36
+ "types": "./types/opencode.d.ts",
21
37
  "files": [
22
38
  "dist",
23
39
  "types",
@@ -25,6 +41,7 @@
25
41
  "scripts/postinstall.cjs",
26
42
  "README.md",
27
43
  "CONTRIBUTING.md",
44
+ "CODE_OF_CONDUCT.md",
28
45
  "CHANGELOG.md",
29
46
  "SECURITY.md",
30
47
  ".env.example",
@@ -39,6 +56,8 @@
39
56
  "docs:schema": "bun run scripts/check-doc-schema.ts",
40
57
  "docs:check": "bun run docs:link && bun run docs:schema",
41
58
  "typecheck": "tsc --noEmit",
59
+ "audit": "bun audit",
60
+ "agents:compat": "bun run scripts/check-agent-compatibility.ts",
42
61
  "test": "bun test",
43
62
  "package:validate": "bun run scripts/validate-package.ts",
44
63
  "check": "bun run format:check && bun run docs:check && bun run typecheck && bun test && bun run build && bun run package:validate",
@@ -74,7 +93,9 @@
74
93
  },
75
94
  "packageManager": "bun@1.3.14",
76
95
  "overrides": {
77
- "fast-uri": "3.1.4"
96
+ "brace-expansion": "5.0.9",
97
+ "fast-uri": "3.1.5",
98
+ "undici": "8.10.0"
78
99
  },
79
100
  "peerDependencies": {
80
101
  "@earendil-works/pi-coding-agent": "*",
@@ -0,0 +1,6 @@
1
+ /** Public host-module contract exported from the Copilot-specific package subpath. */
2
+ export type CodexLimitsCopilotExtension = () => Promise<void>;
3
+ declare const plugin: CodexLimitsCopilotExtension;
4
+ export declare const COPILOT_EXTENSION_MARKER: "codex-limits-copilot-extension-v1";
5
+ export declare const startCopilotExtension: CodexLimitsCopilotExtension;
6
+ export default plugin;
@@ -0,0 +1,10 @@
1
+ /** Public host-module contract exported from the OpenCode package entry points. */
2
+ export interface CodexLimitsTuiPluginModule {
3
+ id: "codex-limits";
4
+ tui: (api: unknown) => void | Promise<void>;
5
+ }
6
+ /** Agent-specific name for the original package-root contract. */
7
+ export type CodexLimitsOpencodeExtension = CodexLimitsTuiPluginModule;
8
+ declare const plugin: CodexLimitsTuiPluginModule;
9
+ export default plugin;
10
+ export declare const tui: CodexLimitsOpencodeExtension["tui"];
package/types/pi.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ /** Public host-module contract exported from the pi-specific package subpath. */
2
+ export type CodexLimitsPiExtension = (api: unknown) => void;
3
+ declare const plugin: CodexLimitsPiExtension;
4
+ export default plugin;
package/types/index.d.ts DELETED
@@ -1,8 +0,0 @@
1
- /** Public root-module contract loaded by OpenCode. */
2
- export interface CodexLimitsTuiPluginModule {
3
- id: "codex-limits";
4
- tui: (api: unknown) => void | Promise<void>;
5
- }
6
- declare const plugin: CodexLimitsTuiPluginModule;
7
- export default plugin;
8
- export declare const tui: CodexLimitsTuiPluginModule["tui"];