@camunda8/cli 4.7.0-alpha.4 → 4.7.0-alpha.41
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/CONTEXT.md +12 -0
- package/PLUGIN-HELP.md +1 -1
- package/README.md +8 -1
- package/dist/commands/deploy.d.ts.map +1 -1
- package/dist/commands/deploy.js +2 -2
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/helpers/deploy-helpers.d.ts +14 -1
- package/dist/commands/helpers/deploy-helpers.d.ts.map +1 -1
- package/dist/commands/helpers/deploy-helpers.js +69 -13
- package/dist/commands/helpers/deploy-helpers.js.map +1 -1
- package/dist/commands/mcp-proxy.d.ts.map +1 -1
- package/dist/commands/mcp-proxy.js +13 -8
- package/dist/commands/mcp-proxy.js.map +1 -1
- package/dist/commands/profiles.d.ts.map +1 -1
- package/dist/commands/profiles.js +13 -7
- package/dist/commands/profiles.js.map +1 -1
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +1 -8
- package/dist/commands/run.js.map +1 -1
- package/dist/commands/watch.d.ts.map +1 -1
- package/dist/commands/watch.js +10 -2
- package/dist/commands/watch.js.map +1 -1
- package/dist/core/client.d.ts +13 -0
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/client.js +48 -21
- package/dist/core/client.js.map +1 -1
- package/dist/core/config.d.ts +34 -3
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +91 -9
- package/dist/core/config.js.map +1 -1
- package/dist/core/env-address.d.ts +22 -0
- package/dist/core/env-address.d.ts.map +1 -0
- package/dist/core/env-address.js +30 -0
- package/dist/core/env-address.js.map +1 -0
- package/dist/core/errors.d.ts +17 -0
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +32 -0
- package/dist/core/errors.js.map +1 -1
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +2 -0
- package/dist/core/index.js.map +1 -1
- package/dist/core/logger.d.ts.map +1 -1
- package/dist/core/logger.js +2 -1
- package/dist/core/logger.js.map +1 -1
- package/dist/core/node-version.d.ts +18 -0
- package/dist/core/node-version.d.ts.map +1 -0
- package/dist/core/node-version.js +38 -0
- package/dist/core/node-version.js.map +1 -0
- package/dist/default-plugins/cluster/README.md +16 -1
- package/dist/default-plugins/cluster/c8ctl-plugin.js +745 -115
- package/dist/default-plugins/element-template/c8ctl-plugin.js +248 -7
- package/dist/default-plugins/mcp/README.md +37 -0
- package/dist/default-plugins/mcp/c8ctl-plugin.js +4973 -0
- package/dist/default-plugins/mcp/package.json +8 -0
- package/dist/default-plugins/modeler/README.md +23 -0
- package/dist/default-plugins/modeler/c8ctl-plugin.js +4314 -0
- package/dist/default-plugins/modeler/package.json +8 -0
- package/dist/default-plugins/setup/README.md +42 -0
- package/dist/default-plugins/setup/c8ctl-plugin.js +6845 -0
- package/dist/default-plugins/setup/package.json +8 -0
- package/dist/default-plugins/skills/README.md +35 -0
- package/dist/default-plugins/skills/c8ctl-plugin.js +3369 -0
- package/dist/default-plugins/skills/package.json +8 -0
- package/dist/framework/argv-parser.d.ts +14 -0
- package/dist/framework/argv-parser.d.ts.map +1 -1
- package/dist/framework/argv-parser.js +25 -0
- package/dist/framework/argv-parser.js.map +1 -1
- package/dist/framework/command-registry.d.ts +28 -2
- package/dist/framework/command-registry.d.ts.map +1 -1
- package/dist/framework/command-registry.js +47 -2
- package/dist/framework/command-registry.js.map +1 -1
- package/dist/framework/plugins/plugin-loader.d.ts +20 -2
- package/dist/framework/plugins/plugin-loader.d.ts.map +1 -1
- package/dist/framework/plugins/plugin-loader.js.map +1 -1
- package/dist/framework/ui/help.d.ts.map +1 -1
- package/dist/framework/ui/help.js +57 -14
- package/dist/framework/ui/help.js.map +1 -1
- package/dist/framework/ui/prompt.d.ts +88 -0
- package/dist/framework/ui/prompt.d.ts.map +1 -1
- package/dist/framework/ui/prompt.js +558 -20
- package/dist/framework/ui/prompt.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +68 -12
- package/dist/index.js.map +1 -1
- package/dist/utils/command-local/mcp-install-helpers.d.ts +68 -0
- package/dist/utils/command-local/mcp-install-helpers.d.ts.map +1 -0
- package/dist/utils/command-local/mcp-install-helpers.js +485 -0
- package/dist/utils/command-local/mcp-install-helpers.js.map +1 -0
- package/dist/utils/command-local/process-instance-helpers.d.ts +6 -0
- package/dist/utils/command-local/process-instance-helpers.d.ts.map +1 -1
- package/dist/utils/command-local/process-instance-helpers.js +9 -0
- package/dist/utils/command-local/process-instance-helpers.js.map +1 -1
- package/dist/utils/command-local/skills-install-helpers.d.ts +49 -0
- package/dist/utils/command-local/skills-install-helpers.d.ts.map +1 -0
- package/dist/utils/command-local/skills-install-helpers.js +436 -0
- package/dist/utils/command-local/skills-install-helpers.js.map +1 -0
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/shared/camunda-json.d.ts +16 -3
- package/dist/utils/shared/camunda-json.d.ts.map +1 -1
- package/dist/utils/shared/camunda-json.js +20 -5
- package/dist/utils/shared/camunda-json.js.map +1 -1
- package/dist/utils/shared/deploy-resource-selection.d.ts +7 -15
- package/dist/utils/shared/deploy-resource-selection.d.ts.map +1 -1
- package/dist/utils/shared/deploy-resource-selection.js +9 -19
- package/dist/utils/shared/deploy-resource-selection.js.map +1 -1
- package/dist/utils/shared/ignore.d.ts +6 -0
- package/dist/utils/shared/ignore.d.ts.map +1 -1
- package/dist/utils/shared/ignore.js +9 -1
- package/dist/utils/shared/ignore.js.map +1 -1
- package/package.json +3 -2
- package/dist/utils/command-local/setup-detectors.d.ts +0 -51
- package/dist/utils/command-local/setup-detectors.d.ts.map +0 -1
- package/dist/utils/command-local/setup-detectors.js +0 -115
- package/dist/utils/command-local/setup-detectors.js.map +0 -1
- package/dist/utils/command-local/setup-prerequisites.d.ts +0 -67
- package/dist/utils/command-local/setup-prerequisites.d.ts.map +0 -1
- package/dist/utils/command-local/setup-prerequisites.js +0 -238
- package/dist/utils/command-local/setup-prerequisites.js.map +0 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime check of the Node.js version against c8ctl's `engines.node`.
|
|
3
|
+
*
|
|
4
|
+
* npm only warns about `engines` at install time (and not at all for a
|
|
5
|
+
* global install unless `engine-strict` is set), so an outdated Node.js can
|
|
6
|
+
* run c8ctl and fail later with an unrelated-looking error.
|
|
7
|
+
*/
|
|
8
|
+
import { readFileSync } from "node:fs";
|
|
9
|
+
import { dirname, join } from "node:path";
|
|
10
|
+
import { fileURLToPath } from "node:url";
|
|
11
|
+
import semver from "semver";
|
|
12
|
+
import { isRecord } from "./logger.js";
|
|
13
|
+
function readRequiredNodeRange() {
|
|
14
|
+
try {
|
|
15
|
+
// Two levels below the package root in both src/core/ and dist/core/.
|
|
16
|
+
const packageJson = join(dirname(fileURLToPath(import.meta.url)), "..", "..", "package.json");
|
|
17
|
+
const pkg = JSON.parse(readFileSync(packageJson, "utf-8"));
|
|
18
|
+
const node = isRecord(pkg) && isRecord(pkg.engines) && pkg.engines.node;
|
|
19
|
+
return typeof node === "string" ? node : undefined;
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
/** The Node.js range from c8ctl's `engines.node`. */
|
|
26
|
+
export const REQUIRED_NODE_RANGE = readRequiredNodeRange();
|
|
27
|
+
/**
|
|
28
|
+
* Describe why `version` does not satisfy `range`, or `null` when it does or
|
|
29
|
+
* when the range is unknown or unparseable (nothing can be concluded then).
|
|
30
|
+
*/
|
|
31
|
+
export function describeUnsupportedNode({ version = process.versions.node, range = REQUIRED_NODE_RANGE, } = {}) {
|
|
32
|
+
if (!range || !semver.validRange(range))
|
|
33
|
+
return null;
|
|
34
|
+
if (semver.satisfies(version, range))
|
|
35
|
+
return null;
|
|
36
|
+
return `Node.js ${version} is not supported; c8ctl needs ${range}. Some commands may fail. Upgrade Node.js from https://nodejs.org/.`;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=node-version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-version.js","sourceRoot":"","sources":["../../src/core/node-version.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,SAAS,qBAAqB;IAC7B,IAAI,CAAC;QACJ,sEAAsE;QACtE,MAAM,WAAW,GAAG,IAAI,CACvB,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EACvC,IAAI,EACJ,IAAI,EACJ,cAAc,CACd,CAAC;QACF,MAAM,GAAG,GAAY,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;QACpE,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC;QACxE,OAAO,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;IACpD,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,SAAS,CAAC;IAClB,CAAC;AACF,CAAC;AAED,qDAAqD;AACrD,MAAM,CAAC,MAAM,mBAAmB,GAAG,qBAAqB,EAAE,CAAC;AAE3D;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CAAC,EACvC,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,EAC/B,KAAK,GAAG,mBAAmB,MAIxB,EAAE;IACL,IAAI,CAAC,KAAK,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACrD,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAClD,OAAO,WAAW,OAAO,kCAAkC,KAAK,qEAAqE,CAAC;AACvI,CAAC"}
|
|
@@ -21,6 +21,9 @@ c8ctl cluster start
|
|
|
21
21
|
# Start with debug output (streams raw c8run logs)
|
|
22
22
|
c8ctl cluster start --debug
|
|
23
23
|
|
|
24
|
+
# Serve Camunda HTTP on another port (when 8080 is taken)
|
|
25
|
+
c8ctl cluster start --port 9091
|
|
26
|
+
|
|
24
27
|
# Stop the running cluster
|
|
25
28
|
c8ctl cluster stop
|
|
26
29
|
|
|
@@ -77,12 +80,24 @@ patch releases.
|
|
|
77
80
|
|
|
78
81
|
### `start` vs `install` update behavior
|
|
79
82
|
|
|
80
|
-
- **`start`** uses the local version if available. A non-blocking remote check runs in the background — if a newer rolling release exists, a hint is printed (e.g. *"A newer server version is available. Install it with: c8ctl cluster install 8.9"*). If the network is unreachable, the hint is silently skipped.
|
|
83
|
+
- **`start`** uses the local version if available. A non-blocking remote check runs in the background — if a newer rolling release exists, a hint is printed (e.g. *"A newer server version is available. Install it with: c8ctl cluster install 8.9"*). If the network is unreachable, the hint is silently skipped. When starting a named alias (`stable`, `alpha`) whose newer target is already installed (e.g. via `c8ctl cluster install 8.10`), the check instead updates the cached alias so the next `start` uses that version, without downloading anything. If `start` fails, c8ctl waits up to one second for these checks before exiting, so the hint is not lost.
|
|
81
84
|
- **`install`** always checks the remote for a newer rolling release (via ETag comparison) and re-downloads if one is available.
|
|
82
85
|
|
|
83
86
|
If the download server is unreachable, the aliases fall back to the values
|
|
84
87
|
shipped in the plugin's `package.json`.
|
|
85
88
|
|
|
89
|
+
`stable` never launches a prerelease build. If the install for its version
|
|
90
|
+
still holds an alpha build (for example, a `8.11` install made through `alpha`
|
|
91
|
+
before 8.11 went GA), `start` and `install` download the GA build and replace
|
|
92
|
+
it. The GA build is extracted and checked in a staging directory first, so if
|
|
93
|
+
the download or extraction fails, the archive still holds a prerelease, or
|
|
94
|
+
another c8ctl has started that build in the meantime, the alpha build is kept.
|
|
95
|
+
When the download fails, the error says that only a prerelease build is
|
|
96
|
+
installed. A prerelease build that has cluster data, or an install that has
|
|
97
|
+
lost its launcher but still holds data, is never replaced automatically,
|
|
98
|
+
because that would delete the data: keep using a prerelease build with
|
|
99
|
+
`c8ctl cluster start <version>`, or run `c8ctl cluster purge <version>` first.
|
|
100
|
+
|
|
86
101
|
### Resilient running-state tracking
|
|
87
102
|
|
|
88
103
|
A running cluster is tracked both by c8run's own `.process` pidfiles (which live
|