@camunda8/cli 4.2.0-alpha.1 → 4.2.0-alpha.3
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/core/config.d.ts +26 -2
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +500 -12
- package/dist/core/config.js.map +1 -1
- package/dist/default-plugins/bpmn/c8ctl-plugin.js +476 -288
- package/dist/default-plugins/bpmn/package.json +4 -4
- package/dist/default-plugins/cluster/README.md +17 -1
- package/dist/default-plugins/cluster/c8ctl-plugin.js +674 -58
- package/dist/default-plugins/element-template/c8ctl-plugin.js +394 -268
- package/dist/default-plugins/element-template/package.json +3 -3
- package/dist/default-plugins/feel/c8ctl-plugin.js +5815 -7974
- package/dist/default-plugins/feel/package.json +1 -1
- package/dist/vendor/bpmn-element-templates.cjs +4780 -3050
- package/dist/vendor/bpmnlint.cjs +6447 -15536
- package/package.json +1 -1
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
"main": "c8ctl-plugin.ts",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@bpmn-io/moddle-utils": "^0.3.0",
|
|
10
|
-
"bpmn-moddle": "^
|
|
11
|
-
"bpmnlint": "^11.
|
|
12
|
-
"bpmnlint-plugin-camunda-compat": "^2.
|
|
13
|
-
"zeebe-bpmn-moddle": "^
|
|
10
|
+
"bpmn-moddle": "^10.2.0",
|
|
11
|
+
"bpmnlint": "^11.14.0",
|
|
12
|
+
"bpmnlint-plugin-camunda-compat": "^2.60.2",
|
|
13
|
+
"zeebe-bpmn-moddle": "^2.0.0"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -67,13 +67,29 @@ patch releases.
|
|
|
67
67
|
If the download server is unreachable, the aliases fall back to the values
|
|
68
68
|
shipped in the plugin's `package.json`.
|
|
69
69
|
|
|
70
|
+
### Resilient running-state tracking
|
|
71
|
+
|
|
72
|
+
A running cluster is tracked both by c8run's own `.process` pidfiles (which live
|
|
73
|
+
inside the version's install directory) **and** by a durable PID record kept at
|
|
74
|
+
the cache root (`cluster.pids`). Because that record survives the version's
|
|
75
|
+
install directory being replaced, upgraded, or removed while the cluster is
|
|
76
|
+
still running, `cluster status` and `cluster stop` continue to see the live
|
|
77
|
+
process — where they previously reported the cluster as *stopped* and left the
|
|
78
|
+
process orphaned on its ports. To prevent orphaning in the first place, `delete`
|
|
79
|
+
and a rolling `install` refuse to **remove the install directory** of a version
|
|
80
|
+
whose instance is still running, and `purge` refuses to **delete the runtime
|
|
81
|
+
data** of a running version — note that `purge` only clears runtime/history data
|
|
82
|
+
and always leaves the install directory itself in place. Stop the cluster first.
|
|
83
|
+
If a process does end up orphaned (e.g. the directory was removed outside
|
|
84
|
+
c8ctl), `cluster stop` terminates it directly using the recorded PID.
|
|
85
|
+
|
|
70
86
|
## How it works
|
|
71
87
|
|
|
72
88
|
1. **Download**: Automatically downloads the correct c8run binary for your platform from the Camunda Download Center
|
|
73
89
|
2. **Cache**: Stores downloaded binaries in a platform-specific cache directory
|
|
74
90
|
3. **Start**: Launches c8run in the background and waits for the cluster to become healthy
|
|
75
91
|
4. **Stop**: Gracefully shuts down the running cluster
|
|
76
|
-
5. **Status**: Reports whether a cluster is running by checking the active marker file and the live health endpoint
|
|
92
|
+
5. **Status**: Reports whether a cluster is running by checking the active marker file, the durable PID record (`cluster.pids`), and the live health endpoint — so it still detects a cluster whose install directory was replaced or removed while running
|
|
77
93
|
6. **Logs**: Streams log output (camunda.log, connectors.log) from the running cluster using `tail -f`
|
|
78
94
|
7. **List**: Shows all locally cached versions and the current resolved values of available version aliases
|
|
79
95
|
8. **List-remote**: Queries the Camunda Download Center and displays all available versions
|