@codapult/cli 0.14.3 → 0.14.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/README.md CHANGED
@@ -4,13 +4,13 @@ CLI tool for managing [Codapult](https://codapult.dev) SaaS projects.
4
4
 
5
5
  ## Installation
6
6
 
7
- ```bash
7
+ ```shell
8
8
  npm install -g @codapult/cli
9
9
  ```
10
10
 
11
11
  Or run directly with npx:
12
12
 
13
- ```bash
13
+ ```shell
14
14
  npx @codapult/cli <command>
15
15
  ```
16
16
 
@@ -66,7 +66,7 @@ The CLI includes an MCP (Model Context Protocol) server with 19 tools, 6 resourc
66
66
 
67
67
  ## Development
68
68
 
69
- ```bash
69
+ ```shell
70
70
  pnpm install
71
71
  pnpm dev # watch mode — rebuild on changes
72
72
  pnpm test # run unit tests
@@ -80,7 +80,7 @@ Releases are managed with [release-it](https://github.com/release-it/release-it)
80
80
 
81
81
  1. Run the release command on the `main` branch:
82
82
 
83
- ```bash
83
+ ```shell
84
84
  pnpm run release # interactive — prompts for version bump type
85
85
  pnpm run release -- patch # non-interactive patch bump (0.1.0 → 0.1.1)
86
86
  pnpm run release -- minor # minor bump (0.1.0 → 0.2.0)
@@ -101,7 +101,7 @@ pnpm run release -- major # major bump (0.1.0 → 1.0.0)
101
101
 
102
102
  Preview what a release would do without making any changes:
103
103
 
104
- ```bash
104
+ ```shell
105
105
  pnpm run release -- --dry-run
106
106
  ```
107
107
 
@@ -17,7 +17,7 @@ export function registerResources(server) {
17
17
  });
18
18
  server.registerResource('codapult_app_config', 'codapult://config/app', {
19
19
  title: 'App Configuration',
20
- description: `Application config (src/config/app.ts) — brand, AI, company. Feature toggles and auth methods live in src/lib/config.ts — see codapult://config/env.`,
20
+ description: `Application config (src/config/app.ts) — brand, AI, company. Feature toggles and auth methods live in src/config/env.ts — see codapult://config/env.`,
21
21
  mimeType: 'text/plain',
22
22
  }, () => {
23
23
  const content = readProjectFile(getRoot(), 'src/config/app.ts') ?? 'Config file not found';
@@ -27,10 +27,10 @@ export function registerResources(server) {
27
27
  });
28
28
  server.registerResource('codapult_env_config', 'codapult://config/env', {
29
29
  title: 'Environment Configuration',
30
- description: `Typed env access (src/lib/config.ts) — feature toggles (env.features), auth methods (env.auth), provider selection (dbProvider, paymentProvider, storageProvider, jobProvider), and checkout resolution. This is the source of truth for which modules are enabled — see also codapult://env-example or codapult_project_status.`,
30
+ description: `Typed env access (src/config/env.ts) — feature toggles (env.features), auth methods (env.auth), provider selection (dbProvider, paymentProvider, storageProvider, jobProvider), and checkout resolution. This is the source of truth for which modules are enabled — see also codapult://env-example or codapult_project_status.`,
31
31
  mimeType: 'text/plain',
32
32
  }, () => {
33
- const content = readProjectFile(getRoot(), 'src/lib/config.ts') ?? 'Config file not found';
33
+ const content = readProjectFile(getRoot(), 'src/config/env.ts') ?? 'Config file not found';
34
34
  return {
35
35
  contents: [{ uri: 'codapult://config/env', text: content, mimeType: 'text/plain' }],
36
36
  };
@@ -1,12 +1,12 @@
1
1
  /**
2
- * Shared, read-only mirror of `src/lib/config.ts` from the host project.
2
+ * Shared, read-only mirror of `src/config/env.ts` from the host project.
3
3
  *
4
4
  * Keep this file in sync with the host's `env.features`, `env.auth`,
5
5
  * provider enums, and the `superRefine` validation in
6
- * `codapult/src/lib/config.ts`. The CLI cannot import from the host project,
7
- * so this module centralises the provider/feature shape that several
8
- * commands share regardless of whether env values come from `.env.local` or
9
- * `process.env`.
6
+ * `codapult/src/config/env.ts` and `codapult/src/config/env-schema.ts`.
7
+ * The CLI cannot import from the host project, so this module centralises
8
+ * the provider/feature shape that several commands share regardless of whether
9
+ * env values come from `.env.local` or `process.env`.
10
10
  */
11
11
  export type DbProvider = 'turso' | 'postgres';
12
12
  export type AuthProvider = 'better-auth' | 'kinde' | 'none';
@@ -40,7 +40,7 @@ export interface Adapters {
40
40
  export declare function getAdapters(envContent: string): Adapters;
41
41
  /**
42
42
  * Compute the effective set of feature toggles from .env content.
43
- * Mirrors `env.features` in `codapult/src/lib/config.ts`:
43
+ * Mirrors `env.features` in `codapult/src/config/env.ts`:
44
44
  * - default `true` for every ENABLE_* (unset → enabled);
45
45
  * - explicit "false" disables;
46
46
  * - `auth` derived from AUTH_PROVIDER !== 'none';
@@ -1,12 +1,12 @@
1
1
  /**
2
- * Shared, read-only mirror of `src/lib/config.ts` from the host project.
2
+ * Shared, read-only mirror of `src/config/env.ts` from the host project.
3
3
  *
4
4
  * Keep this file in sync with the host's `env.features`, `env.auth`,
5
5
  * provider enums, and the `superRefine` validation in
6
- * `codapult/src/lib/config.ts`. The CLI cannot import from the host project,
7
- * so this module centralises the provider/feature shape that several
8
- * commands share regardless of whether env values come from `.env.local` or
9
- * `process.env`.
6
+ * `codapult/src/config/env.ts` and `codapult/src/config/env-schema.ts`.
7
+ * The CLI cannot import from the host project, so this module centralises
8
+ * the provider/feature shape that several commands share regardless of whether
9
+ * env values come from `.env.local` or `process.env`.
10
10
  */
11
11
  /** Feature toggle key → ENABLE_* env var. Order = display order. */
12
12
  export const FEATURE_ENV = {
@@ -74,7 +74,7 @@ export function getAdapters(envContent) {
74
74
  }
75
75
  /**
76
76
  * Compute the effective set of feature toggles from .env content.
77
- * Mirrors `env.features` in `codapult/src/lib/config.ts`:
77
+ * Mirrors `env.features` in `codapult/src/config/env.ts`:
78
78
  * - default `true` for every ENABLE_* (unset → enabled);
79
79
  * - explicit "false" disables;
80
80
  * - `auth` derived from AUTH_PROVIDER !== 'none';
@@ -200,9 +200,9 @@ export function findProviderIssues(envContent) {
200
200
  severity: 'error',
201
201
  });
202
202
  }
203
- if (adapters.notifications === 'ws' && !has('NEXT_PUBLIC_WS_URL')) {
203
+ if (adapters.notifications === 'ws' && !has('NOTIFICATION_WS_URL')) {
204
204
  issues.push({
205
- key: 'NEXT_PUBLIC_WS_URL',
205
+ key: 'NOTIFICATION_WS_URL',
206
206
  message: 'Required when NOTIFICATION_TRANSPORT="ws"',
207
207
  severity: 'error',
208
208
  });
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@codapult/cli",
3
- "version": "0.14.3",
3
+ "version": "0.14.5",
4
4
  "description": "Codapult CLI — manage, update, and diagnose your Codapult SaaS project",
5
5
  "license": "MIT",
6
- "packageManager": "pnpm@11.15.0+sha512.266f8957a30d2be6e9468e5e66bcdedd35a794175f71b067ba8504d686cce1d0c0f429b33c323c3c569ad4891e667574a49ff71d1b89a22cc66f13c65818c578",
6
+ "packageManager": "pnpm@11.20.0+sha512.9a6f330a95b66446ea088faf1521405a8a01f07fde7124cc9958dfed52d4bb436737e65b08f85f37b46fcba375092558ac51262b816844b22f63406ed166bfee",
7
7
  "engines": {
8
8
  "node": ">=20.19.0"
9
9
  },
@@ -43,7 +43,7 @@
43
43
  "access": "public"
44
44
  },
45
45
  "dependencies": {
46
- "@modelcontextprotocol/sdk": "^1.29.0",
46
+ "@modelcontextprotocol/sdk": "^1.30.0",
47
47
  "commander": "^15.0.0",
48
48
  "picocolors": "^1.1.1",
49
49
  "zod": "^4.4.3"
@@ -54,14 +54,14 @@
54
54
  "@js-toolkit/prettier-config": "^1.0.1",
55
55
  "@js-toolkit/tsconfig": "^1.0.1",
56
56
  "@release-it/conventional-changelog": "^11.0.1",
57
- "@types/node": "^26.1.1",
57
+ "@types/node": "^26.2.0",
58
58
  "eslint": "^9.39.4",
59
59
  "eslint-config-prettier": "^10.1.8",
60
60
  "eslint-plugin-prettier": "^5.5.6",
61
- "prettier": "^3.9.5",
62
- "release-it": "^20.2.1",
61
+ "prettier": "^3.9.6",
62
+ "release-it": "^21.0.1",
63
63
  "typescript": "^6.0.3",
64
- "typescript-eslint": "^8.64.0",
64
+ "typescript-eslint": "^8.66.0",
65
65
  "vitest": "^4.1.10"
66
66
  }
67
67
  }