@codapult/cli 0.12.1 → 0.13.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.
@@ -1,5 +1,5 @@
1
1
  import { findProjectRoot, readProjectFile } from '../utils/project.js';
2
- import { ENV_EXAMPLE_FILE_NAME, ENV_FILE_NAME } from '../utils/project-env.js';
2
+ import { ENV_EXAMPLE_FILE_NAME } from '../utils/project-env.js';
3
3
  function getRoot() {
4
4
  const root = findProjectRoot();
5
5
  if (!root)
@@ -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 the project env source (${ENV_FILE_NAME} or process.env) and can be inspected via codapult://env-example or codapult_project_status.`,
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.`,
21
21
  mimeType: 'text/plain',
22
22
  }, () => {
23
23
  const content = readProjectFile(getRoot(), 'src/config/app.ts') ?? 'Config file not found';
@@ -25,6 +25,16 @@ export function registerResources(server) {
25
25
  contents: [{ uri: 'codapult://config/app', text: content, mimeType: 'text/plain' }],
26
26
  };
27
27
  });
28
+ server.registerResource('codapult_env_config', 'codapult://config/env', {
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.`,
31
+ mimeType: 'text/plain',
32
+ }, () => {
33
+ const content = readProjectFile(getRoot(), 'src/lib/config.ts') ?? 'Config file not found';
34
+ return {
35
+ contents: [{ uri: 'codapult://config/env', text: content, mimeType: 'text/plain' }],
36
+ };
37
+ });
28
38
  server.registerResource('codapult_agents_md', 'codapult://agents', {
29
39
  title: 'AGENTS.md',
30
40
  description: 'AI agent guide — project structure, patterns, conventions, and rules',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codapult/cli",
3
- "version": "0.12.1",
3
+ "version": "0.13.0",
4
4
  "description": "Codapult CLI — manage, update, and diagnose your Codapult SaaS project",
5
5
  "license": "MIT",
6
6
  "packageManager": "pnpm@11.6.0",