@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
|
@@ -50,6 +50,33 @@ var require_constants = __commonJS({
|
|
|
50
50
|
9007199254740991;
|
|
51
51
|
var MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
52
52
|
var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
53
|
+
var WHITESPACE_CHARACTERS = [
|
|
54
|
+
" ",
|
|
55
|
+
"\n",
|
|
56
|
+
"\v",
|
|
57
|
+
"\f",
|
|
58
|
+
"\r",
|
|
59
|
+
" ",
|
|
60
|
+
"\xA0",
|
|
61
|
+
"\u1680",
|
|
62
|
+
"\u2000",
|
|
63
|
+
"\u2001",
|
|
64
|
+
"\u2002",
|
|
65
|
+
"\u2003",
|
|
66
|
+
"\u2004",
|
|
67
|
+
"\u2005",
|
|
68
|
+
"\u2006",
|
|
69
|
+
"\u2007",
|
|
70
|
+
"\u2008",
|
|
71
|
+
"\u2009",
|
|
72
|
+
"\u200A",
|
|
73
|
+
"\u2028",
|
|
74
|
+
"\u2029",
|
|
75
|
+
"\u202F",
|
|
76
|
+
"\u205F",
|
|
77
|
+
"\u3000",
|
|
78
|
+
"\uFEFF"
|
|
79
|
+
];
|
|
53
80
|
var RELEASE_TYPES = [
|
|
54
81
|
"major",
|
|
55
82
|
"premajor",
|
|
@@ -64,6 +91,7 @@ var require_constants = __commonJS({
|
|
|
64
91
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
65
92
|
MAX_SAFE_BUILD_LENGTH,
|
|
66
93
|
MAX_SAFE_INTEGER,
|
|
94
|
+
WHITESPACE_CHARACTERS,
|
|
67
95
|
RELEASE_TYPES,
|
|
68
96
|
SEMVER_SPEC_VERSION,
|
|
69
97
|
FLAG_INCLUDE_PRERELEASE: 1,
|
|
@@ -964,6 +992,197 @@ var require_lrucache = __commonJS({
|
|
|
964
992
|
}
|
|
965
993
|
});
|
|
966
994
|
|
|
995
|
+
// node_modules/semver/internal/trim-comparator-whitespace.js
|
|
996
|
+
var require_trim_comparator_whitespace = __commonJS({
|
|
997
|
+
"node_modules/semver/internal/trim-comparator-whitespace.js"(exports, module) {
|
|
998
|
+
"use strict";
|
|
999
|
+
var {
|
|
1000
|
+
MAX_LENGTH,
|
|
1001
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
1002
|
+
WHITESPACE_CHARACTERS
|
|
1003
|
+
} = require_constants();
|
|
1004
|
+
var whitespace = new Uint8Array(65536);
|
|
1005
|
+
for (const char of WHITESPACE_CHARACTERS) {
|
|
1006
|
+
whitespace[char.charCodeAt(0)] = 1;
|
|
1007
|
+
}
|
|
1008
|
+
var isWhitespace = (char) => char !== void 0 && whitespace[char.charCodeAt(0)] === 1;
|
|
1009
|
+
var isVersionPrefix = (char) => char === "v" || char === "=" || isWhitespace(char);
|
|
1010
|
+
var isDigit = (char) => char !== void 0 && char >= "0" && char <= "9";
|
|
1011
|
+
var isLetter = (char) => char !== void 0 && (char >= "a" && char <= "z" || char >= "A" && char <= "Z");
|
|
1012
|
+
var isIdentifierCharacter = (char) => isDigit(char) || isLetter(char) || char === "-";
|
|
1013
|
+
var isVersionStart = (char) => isDigit(char) || char === "x" || char === "X" || char === "*";
|
|
1014
|
+
var findDigitsEndIndex = (range, start, limit, digitRuns) => {
|
|
1015
|
+
if (!isDigit(range[start])) {
|
|
1016
|
+
return start;
|
|
1017
|
+
}
|
|
1018
|
+
if (start >= digitRuns.start && start < digitRuns.end) {
|
|
1019
|
+
return Math.min(start + limit, digitRuns.end);
|
|
1020
|
+
}
|
|
1021
|
+
if (start >= digitRuns.previousStart && start < digitRuns.previousEnd) {
|
|
1022
|
+
return Math.min(start + limit, digitRuns.previousEnd);
|
|
1023
|
+
}
|
|
1024
|
+
let end = start + 1;
|
|
1025
|
+
while (isDigit(range[end])) {
|
|
1026
|
+
end++;
|
|
1027
|
+
}
|
|
1028
|
+
digitRuns.previousStart = digitRuns.start;
|
|
1029
|
+
digitRuns.previousEnd = digitRuns.end;
|
|
1030
|
+
digitRuns.start = start;
|
|
1031
|
+
digitRuns.end = end;
|
|
1032
|
+
return Math.min(start + limit, end);
|
|
1033
|
+
};
|
|
1034
|
+
var findVersionNumberEndIndex = (range, start, loose, digitRuns) => {
|
|
1035
|
+
if (!loose && range[start] === "0") {
|
|
1036
|
+
return start + 1;
|
|
1037
|
+
}
|
|
1038
|
+
return findDigitsEndIndex(range, start, loose ? MAX_LENGTH : MAX_LENGTH + 1, digitRuns);
|
|
1039
|
+
};
|
|
1040
|
+
var findPrereleaseIdentifierEndIndex = (range, start, loose, digitRuns) => {
|
|
1041
|
+
const digitsEnd = findDigitsEndIndex(range, start, MAX_LENGTH, digitRuns);
|
|
1042
|
+
if (isLetter(range[digitsEnd]) || range[digitsEnd] === "-") {
|
|
1043
|
+
let end = digitsEnd + 1;
|
|
1044
|
+
const limit = end + MAX_SAFE_BUILD_LENGTH;
|
|
1045
|
+
while (end < limit && isIdentifierCharacter(range[end])) {
|
|
1046
|
+
end++;
|
|
1047
|
+
}
|
|
1048
|
+
return end;
|
|
1049
|
+
}
|
|
1050
|
+
return findVersionNumberEndIndex(range, start, loose, digitRuns);
|
|
1051
|
+
};
|
|
1052
|
+
var findPrereleaseEndIndex = (range, start, loose, digitRuns) => {
|
|
1053
|
+
const hyphen = range[start] === "-";
|
|
1054
|
+
if (!loose && !hyphen) {
|
|
1055
|
+
return start;
|
|
1056
|
+
}
|
|
1057
|
+
const identifierStart = start + (hyphen ? 1 : 0);
|
|
1058
|
+
let end = findPrereleaseIdentifierEndIndex(range, identifierStart, loose, digitRuns);
|
|
1059
|
+
if (end === identifierStart) {
|
|
1060
|
+
if (!loose || !hyphen) {
|
|
1061
|
+
return start;
|
|
1062
|
+
}
|
|
1063
|
+
end = findPrereleaseIdentifierEndIndex(range, start, loose, digitRuns);
|
|
1064
|
+
}
|
|
1065
|
+
while (range[end] === ".") {
|
|
1066
|
+
const next = findPrereleaseIdentifierEndIndex(range, end + 1, loose, digitRuns);
|
|
1067
|
+
if (next === end + 1) {
|
|
1068
|
+
break;
|
|
1069
|
+
}
|
|
1070
|
+
end = next;
|
|
1071
|
+
}
|
|
1072
|
+
return end;
|
|
1073
|
+
};
|
|
1074
|
+
var findBuildIdentifierEndIndex = (range, start) => {
|
|
1075
|
+
let end = start;
|
|
1076
|
+
while (end - start < MAX_SAFE_BUILD_LENGTH && isIdentifierCharacter(range[end])) {
|
|
1077
|
+
end++;
|
|
1078
|
+
}
|
|
1079
|
+
return end;
|
|
1080
|
+
};
|
|
1081
|
+
var findBuildEndIndex = (range, start) => {
|
|
1082
|
+
if (range[start] !== "+") {
|
|
1083
|
+
return start;
|
|
1084
|
+
}
|
|
1085
|
+
let end = findBuildIdentifierEndIndex(range, start + 1);
|
|
1086
|
+
if (end === start + 1) {
|
|
1087
|
+
return start;
|
|
1088
|
+
}
|
|
1089
|
+
while (range[end] === ".") {
|
|
1090
|
+
const next = findBuildIdentifierEndIndex(range, end + 1);
|
|
1091
|
+
if (next === end + 1) {
|
|
1092
|
+
break;
|
|
1093
|
+
}
|
|
1094
|
+
end = next;
|
|
1095
|
+
}
|
|
1096
|
+
return end;
|
|
1097
|
+
};
|
|
1098
|
+
var findLooseFullVersionEndIndex = (range, start, digitRuns) => {
|
|
1099
|
+
let end = start;
|
|
1100
|
+
for (let component = 0; component < 3; component++) {
|
|
1101
|
+
const next = findVersionNumberEndIndex(range, end, true, digitRuns);
|
|
1102
|
+
if (next === end) {
|
|
1103
|
+
return start;
|
|
1104
|
+
}
|
|
1105
|
+
end = next;
|
|
1106
|
+
if (component < 2) {
|
|
1107
|
+
if (range[end] !== ".") {
|
|
1108
|
+
return start;
|
|
1109
|
+
}
|
|
1110
|
+
end++;
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
const prereleaseEnd = findPrereleaseEndIndex(range, end, true, digitRuns);
|
|
1114
|
+
return findBuildEndIndex(range, prereleaseEnd);
|
|
1115
|
+
};
|
|
1116
|
+
var findPartialVersionComponentEndIndex = (range, start, digitRuns) => {
|
|
1117
|
+
if (isDigit(range[start])) {
|
|
1118
|
+
return findVersionNumberEndIndex(range, start, false, digitRuns);
|
|
1119
|
+
}
|
|
1120
|
+
return isVersionStart(range[start]) ? start + 1 : start;
|
|
1121
|
+
};
|
|
1122
|
+
var findPartialVersionEndIndex = (range, start, digitRuns) => {
|
|
1123
|
+
let end = findPartialVersionComponentEndIndex(range, start, digitRuns);
|
|
1124
|
+
for (let component = 0; component < 2; component++) {
|
|
1125
|
+
if (range[end] !== ".") {
|
|
1126
|
+
return end;
|
|
1127
|
+
}
|
|
1128
|
+
const next = findPartialVersionComponentEndIndex(range, end + 1, digitRuns);
|
|
1129
|
+
if (next === end + 1) {
|
|
1130
|
+
return end;
|
|
1131
|
+
}
|
|
1132
|
+
end = next;
|
|
1133
|
+
}
|
|
1134
|
+
const prereleaseEnd = findPrereleaseEndIndex(range, end, false, digitRuns);
|
|
1135
|
+
return findBuildEndIndex(range, prereleaseEnd);
|
|
1136
|
+
};
|
|
1137
|
+
var findVersionEndIndex = (range, start, digitRuns) => {
|
|
1138
|
+
const fullVersionEnd = findLooseFullVersionEndIndex(range, start, digitRuns);
|
|
1139
|
+
return fullVersionEnd !== start ? fullVersionEnd : findPartialVersionEndIndex(range, start, digitRuns);
|
|
1140
|
+
};
|
|
1141
|
+
var findRemovableWhitespaceIndex = (range, matchStart) => {
|
|
1142
|
+
let position = matchStart;
|
|
1143
|
+
if (isWhitespace(range[position])) {
|
|
1144
|
+
position++;
|
|
1145
|
+
}
|
|
1146
|
+
if (range[position] === "<" || range[position] === ">") {
|
|
1147
|
+
position++;
|
|
1148
|
+
}
|
|
1149
|
+
if (range[position] === "=") {
|
|
1150
|
+
position++;
|
|
1151
|
+
}
|
|
1152
|
+
return isWhitespace(range[position]) ? position : -1;
|
|
1153
|
+
};
|
|
1154
|
+
var trimComparatorWhitespace = (range) => {
|
|
1155
|
+
let result = "";
|
|
1156
|
+
let copyFrom = 0;
|
|
1157
|
+
let cursor = 0;
|
|
1158
|
+
const digitRuns = { start: -1, end: -1, previousStart: -1, previousEnd: -1 };
|
|
1159
|
+
while (cursor < range.length) {
|
|
1160
|
+
const matchStart = cursor;
|
|
1161
|
+
if (range[cursor] === "<" || range[cursor] === ">") {
|
|
1162
|
+
cursor++;
|
|
1163
|
+
} else if (!isVersionPrefix(range[cursor]) && !isVersionStart(range[cursor])) {
|
|
1164
|
+
cursor++;
|
|
1165
|
+
continue;
|
|
1166
|
+
}
|
|
1167
|
+
while (cursor < range.length && isVersionPrefix(range[cursor])) {
|
|
1168
|
+
cursor++;
|
|
1169
|
+
}
|
|
1170
|
+
if (!isVersionStart(range[cursor])) {
|
|
1171
|
+
continue;
|
|
1172
|
+
}
|
|
1173
|
+
const whitespacePosition = findRemovableWhitespaceIndex(range, matchStart);
|
|
1174
|
+
if (whitespacePosition !== -1) {
|
|
1175
|
+
result += range.slice(copyFrom, whitespacePosition);
|
|
1176
|
+
copyFrom = whitespacePosition + 1;
|
|
1177
|
+
}
|
|
1178
|
+
cursor = findVersionEndIndex(range, cursor, digitRuns);
|
|
1179
|
+
}
|
|
1180
|
+
return result + range.slice(copyFrom);
|
|
1181
|
+
};
|
|
1182
|
+
module.exports = trimComparatorWhitespace;
|
|
1183
|
+
}
|
|
1184
|
+
});
|
|
1185
|
+
|
|
967
1186
|
// node_modules/semver/classes/range.js
|
|
968
1187
|
var require_range = __commonJS({
|
|
969
1188
|
"node_modules/semver/classes/range.js"(exports, module) {
|
|
@@ -1045,7 +1264,7 @@ var require_range = __commonJS({
|
|
|
1045
1264
|
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
|
1046
1265
|
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
1047
1266
|
debug("hyphen replace", range);
|
|
1048
|
-
range = range
|
|
1267
|
+
range = trimComparatorWhitespace(range);
|
|
1049
1268
|
debug("comparator trim", range);
|
|
1050
1269
|
range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
|
|
1051
1270
|
debug("tilde trim", range);
|
|
@@ -1115,11 +1334,11 @@ var require_range = __commonJS({
|
|
|
1115
1334
|
var Comparator = require_comparator();
|
|
1116
1335
|
var debug = require_debug();
|
|
1117
1336
|
var SemVer = require_semver();
|
|
1337
|
+
var trimComparatorWhitespace = require_trim_comparator_whitespace();
|
|
1118
1338
|
var {
|
|
1119
1339
|
safeRe: re,
|
|
1120
1340
|
src,
|
|
1121
1341
|
t,
|
|
1122
|
-
comparatorTrimReplace,
|
|
1123
1342
|
tildeTrimReplace,
|
|
1124
1343
|
caretTrimReplace
|
|
1125
1344
|
} = require_re();
|
|
@@ -11122,12 +11341,12 @@ import {
|
|
|
11122
11341
|
closeSync as closeSync2,
|
|
11123
11342
|
existsSync as existsSync5,
|
|
11124
11343
|
openSync as openSync2,
|
|
11125
|
-
readFileSync as
|
|
11344
|
+
readFileSync as readFileSync6,
|
|
11126
11345
|
realpathSync as realpathSync2,
|
|
11127
11346
|
unlinkSync as unlinkSync3
|
|
11128
11347
|
} from "node:fs";
|
|
11129
11348
|
import { createRequire as createRequire4 } from "node:module";
|
|
11130
|
-
import { dirname as
|
|
11349
|
+
import { dirname as dirname7, resolve as resolvePath4 } from "node:path";
|
|
11131
11350
|
|
|
11132
11351
|
// default-plugins/element-template/migration/element-values.ts
|
|
11133
11352
|
var AD_HOC_PROPERTIES = [
|
|
@@ -12707,6 +12926,28 @@ var VALIDATION_PATTERNS = {
|
|
|
12707
12926
|
var CAMUNDA_CLOUD_URL_PATTERN = VALIDATION_PATTERNS.CAMUNDA_CLOUD_REST_URL;
|
|
12708
12927
|
var isWindows = platform() === "win32";
|
|
12709
12928
|
|
|
12929
|
+
// src/core/node-version.ts
|
|
12930
|
+
var import_semver4 = __toESM(require_semver2(), 1);
|
|
12931
|
+
import { readFileSync as readFileSync5 } from "node:fs";
|
|
12932
|
+
import { dirname as dirname6, join as join4 } from "node:path";
|
|
12933
|
+
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
12934
|
+
function readRequiredNodeRange() {
|
|
12935
|
+
try {
|
|
12936
|
+
const packageJson = join4(
|
|
12937
|
+
dirname6(fileURLToPath3(import.meta.url)),
|
|
12938
|
+
"..",
|
|
12939
|
+
"..",
|
|
12940
|
+
"package.json"
|
|
12941
|
+
);
|
|
12942
|
+
const pkg = JSON.parse(readFileSync5(packageJson, "utf-8"));
|
|
12943
|
+
const node = isRecord3(pkg) && isRecord3(pkg.engines) && pkg.engines.node;
|
|
12944
|
+
return typeof node === "string" ? node : void 0;
|
|
12945
|
+
} catch {
|
|
12946
|
+
return void 0;
|
|
12947
|
+
}
|
|
12948
|
+
}
|
|
12949
|
+
var REQUIRED_NODE_RANGE = readRequiredNodeRange();
|
|
12950
|
+
|
|
12710
12951
|
// src/core/update-check.ts
|
|
12711
12952
|
var CHECK_INTERVAL_MS = 60 * 60 * 1e3;
|
|
12712
12953
|
|
|
@@ -13348,7 +13589,7 @@ function compatibleTemplates(templates, engineVersion) {
|
|
|
13348
13589
|
function loadRecipeFile(path) {
|
|
13349
13590
|
let raw;
|
|
13350
13591
|
try {
|
|
13351
|
-
raw = JSON.parse(
|
|
13592
|
+
raw = JSON.parse(readFileSync6(resolvePath4(path), "utf-8"));
|
|
13352
13593
|
} catch (error3) {
|
|
13353
13594
|
const message = error3 instanceof Error ? error3.message : String(error3);
|
|
13354
13595
|
throw new Error(`Cannot read recipe ${path}: ${message}`);
|
|
@@ -13538,7 +13779,7 @@ async function runMigrateInternal({ parsed, templateId, elementId, bpmnFilePath
|
|
|
13538
13779
|
const valuesOf2 = (element) => enumerateElementValues(getExtensionElements(element.businessObject));
|
|
13539
13780
|
redaction.values = selected2.flatMap(({ element }) => valuesOf2(element));
|
|
13540
13781
|
const pool = templatePool(
|
|
13541
|
-
bpmnFilePath ?
|
|
13782
|
+
bpmnFilePath ? dirname7(resolvePath4(bpmnFilePath)) : process.cwd()
|
|
13542
13783
|
);
|
|
13543
13784
|
const localVersions = pool.localOf(templateId).map((t) => t.version ?? 0);
|
|
13544
13785
|
if (selected2.some(
|
|
@@ -13761,7 +14002,7 @@ async function runMigrateInternal({ parsed, templateId, elementId, bpmnFilePath
|
|
|
13761
14002
|
const canWrite = !dryRun && failed.length === 0 && !wouldBlock;
|
|
13762
14003
|
const saved = canWrite && updated.length > 0 ? await modeler.saveXML({ format: true }) : void 0;
|
|
13763
14004
|
if (saved && parsed.inPlace && bpmnPath) {
|
|
13764
|
-
if (
|
|
14005
|
+
if (readFileSync6(bpmnPath, "utf-8") !== input.xml)
|
|
13765
14006
|
throw new Error(CONCURRENT_EDIT_MESSAGE);
|
|
13766
14007
|
atomicOverwriteFile(bpmnPath, saved.xml, input.xml);
|
|
13767
14008
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# c8ctl-plugin-mcp
|
|
2
|
+
|
|
3
|
+
Default c8ctl plugin that installs, uninstalls, or lists Camunda MCP (Model
|
|
4
|
+
Context Protocol) connections in AI coding harnesses.
|
|
5
|
+
|
|
6
|
+
## Commands
|
|
7
|
+
|
|
8
|
+
- `c8ctl mcp install [harness...] [--docs] [--orchestration] [--alias <name>]` —
|
|
9
|
+
write MCP server entries into the detected (or named) harnesses' config
|
|
10
|
+
files. The orchestration entry points at `c8ctl mcp-proxy` for the selected
|
|
11
|
+
profile; the docs entry connects to the hosted Camunda docs MCP server.
|
|
12
|
+
- `c8ctl mcp uninstall [harness...] [--docs] [--orchestration] [--preserve-conflicts]` —
|
|
13
|
+
remove the c8ctl-managed entries, leaving unrelated servers untouched. A
|
|
14
|
+
foreign entry under the same name fails the uninstall unless
|
|
15
|
+
`--preserve-conflicts` leaves it in place instead.
|
|
16
|
+
- `c8ctl mcp list [harness...]` — show the c8ctl-managed entries across all
|
|
17
|
+
supported (or only the named) harnesses, with the profile each orchestration
|
|
18
|
+
entry points at. Read-only: missing configs are skipped, a corrupt config
|
|
19
|
+
is reported in its own row, and foreign entries are never surfaced.
|
|
20
|
+
|
|
21
|
+
Supported harnesses: Claude Code, GitHub Copilot, Cursor, VS Code, and Claude
|
|
22
|
+
Desktop (macOS/Windows). Omit harness names to configure all detected
|
|
23
|
+
harnesses; aliases `claude`, `copilot`, and `code` map to `claude-code`,
|
|
24
|
+
`github-copilot`, and `vscode`.
|
|
25
|
+
|
|
26
|
+
Orchestration references `--profile`, the active saved profile, or the default
|
|
27
|
+
`local` profile; credentials are not copied. The docs server needs no cluster
|
|
28
|
+
profile and requires sign-in on first use.
|
|
29
|
+
|
|
30
|
+
Re-running install updates drifted c8ctl-managed entries in place while
|
|
31
|
+
preserving client-added keys (tool allowlists, extra env vars) and JSONC
|
|
32
|
+
comments. A foreign entry under the same name is never clobbered — choose
|
|
33
|
+
another `--alias`.
|
|
34
|
+
|
|
35
|
+
Supports the global `--dry-run`, `--json`, `--quiet`, and `--verbose` flags.
|
|
36
|
+
`--dry-run` previews the selected entries without writing or exposing
|
|
37
|
+
unrelated config values.
|