@codapult/cli 0.14.4 → 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/dist/mcp/resources.js
CHANGED
|
@@ -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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
7
|
-
*
|
|
8
|
-
* commands share regardless of whether
|
|
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/
|
|
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';
|
package/dist/utils/env-config.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Shared, read-only mirror of `src/
|
|
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/
|
|
7
|
-
*
|
|
8
|
-
* commands share regardless of whether
|
|
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/
|
|
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';
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codapult/cli",
|
|
3
|
-
"version": "0.14.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
62
|
-
"release-it": "^
|
|
61
|
+
"prettier": "^3.9.6",
|
|
62
|
+
"release-it": "^21.0.1",
|
|
63
63
|
"typescript": "^6.0.3",
|
|
64
|
-
"typescript-eslint": "^8.
|
|
64
|
+
"typescript-eslint": "^8.66.0",
|
|
65
65
|
"vitest": "^4.1.10"
|
|
66
66
|
}
|
|
67
67
|
}
|