@contrail/cli 3.5.4-alpha.a8a0075 → 3.5.4-alpha.ba45a5e

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 CHANGED
@@ -17,7 +17,7 @@ $ npm install -g @contrail/cli
17
17
  $ contrail COMMAND
18
18
  running command...
19
19
  $ contrail (--version)
20
- @contrail/cli/3.5.4-alpha.a8a0075 linux-x64 node-v24.18.0
20
+ @contrail/cli/3.5.4-alpha.ba45a5e linux-x64 node-v24.18.0
21
21
  $ contrail --help [COMMAND]
22
22
  USAGE
23
23
  $ contrail COMMAND
@@ -45,9 +45,13 @@ class LoadWorkflowTemplates extends basecommand_1.BaseCommand {
45
45
  exports.default = LoadWorkflowTemplates;
46
46
  async function importWorkflowsBySelection(dir) {
47
47
  const resolvedDir = path.resolve(process.cwd(), dir);
48
+ if (!fs_1.default.existsSync(resolvedDir) || !fs_1.default.statSync(resolvedDir).isDirectory()) {
49
+ console.log(chalk_1.default.red(`Directory not found: ${resolvedDir}`));
50
+ return;
51
+ }
48
52
  const files = fs_1.default
49
53
  .readdirSync(resolvedDir)
50
- .filter((f) => f.startsWith('workflows-') && f.endsWith('.yml') && f !== 'workflows-unassigned.yml')
54
+ .filter((f) => f.startsWith('workflows-') && f.endsWith('.yml'))
51
55
  .sort();
52
56
  if (files.length === 0) {
53
57
  console.log(chalk_1.default.yellow(`No workflow files found in ${resolvedDir}`));
@@ -162,12 +162,13 @@ class LocalWorkflowTemplateDeployer {
162
162
  }
163
163
  }
164
164
  async updateWorkflowTemplate(workflowKey, existingWorkflowTemplate, workflowTemplate, appIdentifier) {
165
- await this.populateActionIds(workflowTemplate, workflowKey, appIdentifier);
165
+ const appId = await this.populateActionIds(workflowTemplate, workflowKey, appIdentifier);
166
166
  const updates = Object.assign(new Object(), {
167
167
  name: workflowTemplate.name,
168
168
  triggerKey: workflowTemplate.triggerKey,
169
169
  builtIn: workflowTemplate.builtIn,
170
170
  workflowDefinition: workflowTemplate.workflowDefinition,
171
+ supportingAppId: appId ?? existingWorkflowTemplate.supportingAppId,
171
172
  messageGroupId: workflowTemplate.messageGroupId ?? existingWorkflowTemplate.messageGroupId,
172
173
  messageGroup: workflowTemplate.messageGroup ?? existingWorkflowTemplate.messageGroup,
173
174
  dynamicMessageGroupId: workflowTemplate.dynamicMessageGroupId ?? existingWorkflowTemplate.dynamicMessageGroupId,
@@ -306,7 +307,7 @@ function extractShortActionKeys(workflowTemplate) {
306
307
  for (const actionConfig of wfPath.actionDefinitionConfigs) {
307
308
  if (actionConfig.action?.includes(':')) {
308
309
  // Full identifier format: "app-id@version:action-name" -> "action-name"
309
- actionConfig.action = actionConfig.action.split(':').pop();
310
+ actionConfig.action = actionConfig.action.split(':').pop() ?? actionConfig.action;
310
311
  }
311
312
  delete actionConfig.identifier;
312
313
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.5.4-alpha.a8a0075",
2
+ "version": "3.5.4-alpha.ba45a5e",
3
3
  "commands": {
4
4
  "app:create": {
5
5
  "id": "app:create",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/cli",
3
- "version": "3.5.4-alpha.a8a0075",
3
+ "version": "3.5.4-alpha.ba45a5e",
4
4
  "description": "VibeIQ's Contrail Platform CLI.",
5
5
  "bin": {
6
6
  "contrail-cli": "./bin/run",