@codapult/cli 0.17.1 → 0.17.2
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 +1 -1
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ CLI tool for managing [Codapult](https://codapult.dev) SaaS projects.
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
This is the maintained CLI package used by Codapult projects. Buyers normally invoke the published package through `npx` or the generated MCP configuration; they do not clone or build this repository. The development and release sections below are for Codapult maintainers.
|
|
7
|
+
This is the maintained CLI package used by Codapult projects. Buyers normally invoke the published package through `npx` or the generated MCP configuration; they do not clone or build this repository. The CLI also powers Codapult MCP, exposing project-aware tools, resources, and prompt templates to compatible AI coding clients. The development and release sections below are for Codapult maintainers.
|
|
8
8
|
|
|
9
9
|
```shell
|
|
10
10
|
npm install -g @codapult/cli
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Command } from 'commander';
|
|
3
|
+
import { createRequire } from 'node:module';
|
|
3
4
|
import pc from 'picocolors';
|
|
4
5
|
import { setupCommand } from './commands/setup.js';
|
|
5
6
|
import { updateCommand } from './commands/update.js';
|
|
@@ -12,10 +13,12 @@ import { envCheckCommand, envSyncCommand } from './commands/env.js';
|
|
|
12
13
|
import { mcpContractCheckCommand, mcpDoctorCommand, mcpUpdateCommand } from './commands/mcp.js';
|
|
13
14
|
import { deployVercelCommand, deployDockerCommand, deployStatusCommand, } from './commands/deploy.js';
|
|
14
15
|
import { ENV_EXAMPLE_FILE_NAME, ENV_FILE_NAME } from './utils/project-env.js';
|
|
16
|
+
const require = createRequire(import.meta.url);
|
|
17
|
+
const packageJson = require('../package.json');
|
|
15
18
|
const program = new Command()
|
|
16
19
|
.name('codapult')
|
|
17
20
|
.description('Codapult CLI — manage your SaaS project')
|
|
18
|
-
.version(
|
|
21
|
+
.version(packageJson.version)
|
|
19
22
|
.configureHelp({
|
|
20
23
|
styleTitle: (str) => pc.bold(pc.cyan(str)),
|
|
21
24
|
styleCommandText: (str) => pc.yellow(str),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codapult/cli",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.2",
|
|
4
4
|
"description": "Codapult CLI — manage, update, and diagnose your Codapult SaaS project",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"packageManager": "pnpm@11.22.0+sha512.1ff870c4c6133dfd88fb2afc46dd13d47f09c9794b438c6fdb47ca98caf3bc16381ee0be93a091b8e3824cf01f889f46d7d9e20910fb0be1ab0fb5baa80dd621",
|