@salesforce/plugin-orchestrator 1.0.25 → 1.0.26

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.
Files changed (34) hide show
  1. package/LICENSE.txt +1 -1
  2. package/lib/commands/orchestrator/app/create.js +1 -1
  3. package/lib/commands/orchestrator/app/decouple.d.ts +13 -0
  4. package/lib/commands/orchestrator/app/decouple.js +76 -0
  5. package/lib/commands/orchestrator/app/decouple.js.map +1 -0
  6. package/lib/commands/orchestrator/app/delete.js +1 -1
  7. package/lib/commands/orchestrator/app/display.js +1 -1
  8. package/lib/commands/orchestrator/app/list.js +1 -1
  9. package/lib/commands/orchestrator/app/update.js +1 -1
  10. package/lib/commands/orchestrator/app/upgrade.js +1 -1
  11. package/lib/commands/orchestrator/rules/eval.js +1 -1
  12. package/lib/commands/orchestrator/template/create.js +1 -1
  13. package/lib/commands/orchestrator/template/delete.js +1 -1
  14. package/lib/commands/orchestrator/template/display.js +1 -1
  15. package/lib/commands/orchestrator/template/list.js +1 -1
  16. package/lib/commands/orchestrator/template/update.js +1 -1
  17. package/lib/index.js +1 -1
  18. package/lib/utils/app/appDisplayUtil.js +1 -1
  19. package/lib/utils/app/appTypes.js +1 -1
  20. package/lib/utils/app/appframeworkapp.d.ts +4 -4
  21. package/lib/utils/app/appframeworkapp.js +10 -17
  22. package/lib/utils/app/appframeworkapp.js.map +1 -1
  23. package/lib/utils/display/displayUtil.js +1 -1
  24. package/lib/utils/request.js +16 -6
  25. package/lib/utils/request.js.map +1 -1
  26. package/lib/utils/template/templateDisplayUtil.js +1 -1
  27. package/lib/utils/template/templateHighlighter.js +1 -1
  28. package/lib/utils/template/templateTypes.js +1 -1
  29. package/lib/utils/utils.js +1 -1
  30. package/messages/appframework.decouple.app.md +105 -0
  31. package/npm-shrinkwrap.json +782 -605
  32. package/oclif.lock +696 -672
  33. package/oclif.manifest.json +85 -1
  34. package/package.json +4 -4
package/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  Apache License Version 2.0
2
2
 
3
- Copyright (c) 2025 Salesforce, Inc.
3
+ Copyright (c) 2026 Salesforce, Inc.
4
4
  All rights reserved.
5
5
 
6
6
  Apache License
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -0,0 +1,13 @@
1
+ import { SfCommand } from '@salesforce/sf-plugins-core';
2
+ export default class DecoupleApp extends SfCommand<string> {
3
+ static readonly summary: string;
4
+ static readonly description: string;
5
+ static readonly examples: string[];
6
+ static readonly state = "preview";
7
+ static readonly flags: {
8
+ 'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
9
+ 'api-version': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
10
+ 'app-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
11
+ };
12
+ run(): Promise<string>;
13
+ }
@@ -0,0 +1,76 @@
1
+ /*
2
+ * Copyright 2026, Salesforce, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
17
+ import { Messages, SfError } from '@salesforce/core';
18
+ import AppFrameworkApp from '../../../utils/app/appframeworkapp.js';
19
+ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
20
+ const messages = Messages.loadMessages('@salesforce/plugin-orchestrator', 'appframework.decouple.app');
21
+ export default class DecoupleApp extends SfCommand {
22
+ static summary = messages.getMessage('summary');
23
+ static description = messages.getMessage('description');
24
+ static examples = messages.getMessages('examples');
25
+ static state = 'preview';
26
+ static flags = {
27
+ 'target-org': Flags.requiredOrg({
28
+ summary: messages.getMessage('flags.target-org.summary'),
29
+ description: messages.getMessage('flags.target-org.description'),
30
+ required: true,
31
+ }),
32
+ 'api-version': Flags.orgApiVersion({
33
+ summary: messages.getMessage('flags.api-version.summary'),
34
+ description: messages.getMessage('flags.api-version.description'),
35
+ default: '66.0',
36
+ }),
37
+ 'app-id': Flags.string({
38
+ char: 'i',
39
+ summary: messages.getMessage('flags.app-id.summary'),
40
+ description: messages.getMessage('flags.app-id.description'),
41
+ required: true,
42
+ }),
43
+ };
44
+ async run() {
45
+ const { flags } = await this.parse(DecoupleApp);
46
+ try {
47
+ this.spinner.start(messages.getMessage('decouplingApp'));
48
+ const connection = flags['target-org'].getConnection(flags['api-version']);
49
+ const appFrameworkApp = new AppFrameworkApp(connection);
50
+ // Use the app ID provided by the user
51
+ const appId = flags['app-id'];
52
+ // Call the decouple method
53
+ const result = await appFrameworkApp.decoupleApp(appId);
54
+ this.spinner.stop();
55
+ this.log(messages.getMessage('decoupleSuccess', [appId]));
56
+ return result;
57
+ }
58
+ catch (error) {
59
+ this.spinner.stop();
60
+ const errorMsg = error.message;
61
+ if (errorMsg.includes('NOT_FOUND') || errorMsg.includes('404')) {
62
+ throw new SfError(messages.getMessage('error.AppNotFound', [flags['app-id']]), 'AppNotFound', messages.getMessages('error.AppNotFound.Actions'));
63
+ }
64
+ else if (errorMsg.includes('cannot be decoupled') || errorMsg.includes('INVALIDREQUEST')) {
65
+ throw new SfError(messages.getMessage('error.CannotDecouple', [flags['app-id']]), 'CannotDecouple', messages.getMessages('error.CannotDecouple.Actions'));
66
+ }
67
+ else if (errorMsg.includes('INVALID_OPERATION') || errorMsg.includes('400')) {
68
+ throw new SfError(messages.getMessage('error.InvalidOperation'), 'InvalidOperation', messages.getMessages('error.InvalidOperation.Actions'));
69
+ }
70
+ else {
71
+ throw new SfError(messages.getMessage('error.GenericError', [errorMsg]), 'DecoupleError', messages.getMessages('error.GenericError.Actions'));
72
+ }
73
+ }
74
+ }
75
+ }
76
+ //# sourceMappingURL=decouple.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decouple.js","sourceRoot":"","sources":["../../../../src/commands/orchestrator/app/decouple.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAc,MAAM,kBAAkB,CAAC;AACjE,OAAO,eAAe,MAAM,uCAAuC,CAAC;AAEpE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,iCAAiC,EAAE,2BAA2B,CAAC,CAAC;AAEvG,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,SAAiB;IACjD,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,CAAU,KAAK,GAAG,SAAS,CAAC;IAElC,MAAM,CAAU,KAAK,GAAG;QAC7B,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC;YAC9B,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,0BAA0B,CAAC;YACxD,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,8BAA8B,CAAC;YAChE,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,aAAa,EAAE,K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the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -34,12 +34,12 @@ export default class AppFrameworkApp {
34
34
  }): Promise<string>;
35
35
  /**
36
36
  * Decouple an app from its template
37
+ * Removes references to the template from the source app
37
38
  *
38
- * @param appId - ID of the app to decouple
39
- * @param templateId - ID of the template to decouple from
40
- * @returns The ID of the decoupled app
39
+ * @param appIdOrName - ID or name of the app to decouple
40
+ * @returns App ID of the decoupled app
41
41
  */
42
- decoupleApp(appId: string, templateId: string): Promise<string>;
42
+ decoupleApp(appIdOrName: string): Promise<string>;
43
43
  /**
44
44
  * Delete an app
45
45
  *
@@ -86,27 +86,20 @@ export default class AppFrameworkApp {
86
86
  }
87
87
  /**
88
88
  * Decouple an app from its template
89
+ * Removes references to the template from the source app
89
90
  *
90
- * @param appId - ID of the app to decouple
91
- * @param templateId - ID of the template to decouple from
92
- * @returns The ID of the decoupled app
91
+ * @param appIdOrName - ID or name of the app to decouple
92
+ * @returns App ID of the decoupled app
93
93
  */
94
- async decoupleApp(appId, templateId) {
95
- if (!appId) {
96
- throw new Error('App ID must be provided');
97
- }
98
- if (!templateId) {
99
- throw new Error('Template ID must be provided for decoupling');
94
+ async decoupleApp(appIdOrName) {
95
+ if (!appIdOrName) {
96
+ throw new Error('App ID or name must be provided');
100
97
  }
101
- const url = `/apps/${appId}`;
102
- const body = {
103
- templateSourceId: templateId,
104
- templateOptions: { appAction: 'DecoupleApp' },
105
- };
98
+ const url = `/apps/${appIdOrName}/decouple`;
106
99
  const response = await request(this.connection, {
107
- method: 'PUT',
100
+ method: 'POST',
108
101
  url,
109
- body,
102
+ body: {}, // Send empty body for POST request
110
103
  });
111
104
  if (response && typeof response === 'object') {
112
105
  if ('id' in response && typeof response.id === 'string') {
@@ -116,7 +109,7 @@ export default class AppFrameworkApp {
116
109
  return response.app.id;
117
110
  }
118
111
  }
119
- return appId; // Return the original app ID if no specific ID was found in the response
112
+ return appIdOrName; // Return the original app ID if no specific ID was found in the response
120
113
  }
121
114
  /**
122
115
  * Delete an app
@@ -1 +1 @@
1
- {"version":3,"file":"appframeworkapp.js","sourceRoot":"","sources":["../../../src/utils/app/appframeworkapp.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAGxC,MAAM,CAAC,OAAO,OAAO,eAAe;IACjB,UAAU,CAAa;IAExC,YAAmB,UAAsB;QACvC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,IAAI;QACf,MAAM,GAAG,GAAG,OAAO,CAAC;QACpB,MAAM,QAAQ,GAAG,MAAM,OA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AQ,CAAC,EAAE,KAAK,QAAQ,EAAE,CAAC;gBACxD,OAAO,QAAQ,CAAC,EAAE,CAAC;YACrB,CAAC;iBAAM,IAAI,KAAK,IAAI,QAAQ,IAAI,QAAQ,CAAC,GAAG,IAAI,OAAO,QAAQ,CAAC,GAAG,KAAK,QAAQ,IAAI,IAAI,IAAI,QAAQ,CAAC,GAAG,EAAE,CAAC;gBACzG,OAAO,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACzB,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC,CAAC,yEAAyE;IACzF,CAAC;CACF"}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -8,11 +8,21 @@
8
8
  export async function request(connection, options) {
9
9
  const { method, url, body } = options;
10
10
  const apiPath = `/services/data/v${connection.getApiVersion()}/app-framework${url}`;
11
- const response = await connection.request({
12
- method,
13
- url: apiPath,
14
- body: body ? JSON.stringify(body) : undefined,
15
- });
16
- return response;
11
+ try {
12
+ const response = await connection.request({
13
+ method,
14
+ url: apiPath,
15
+ body: body ? JSON.stringify(body) : undefined,
16
+ });
17
+ return response;
18
+ }
19
+ catch (error) {
20
+ // Re-throw with more context about the API call
21
+ const errorMessage = `API request failed: ${method} ${apiPath}`;
22
+ if (error instanceof Error) {
23
+ error.message = `${errorMessage} - ${error.message}`;
24
+ }
25
+ throw error;
26
+ }
17
27
  }
18
28
  //# sourceMappingURL=request.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"request.js","sourceRoot":"","sources":["../../src/utils/request.ts"],"names":[],"mappings":"AAuBA;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,OAAO,CAAI,UAAsB,EAAE,OAAuB;IAC9E,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,OAAO,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2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2025, Salesforce, Inc.
2
+ * Copyright 2026, Salesforce, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -0,0 +1,105 @@
1
+ # summary
2
+
3
+ Decouple an app from its template.
4
+
5
+ # description
6
+
7
+ Decouple an existing app from its template, removing all references to the template from the app. This operation makes the app independent and no longer tied to template updates or changes. Once decoupled, the app maintains its current configuration but can be modified independently without affecting the original template.
8
+
9
+ You must specify the app to decouple using its unique ID. App IDs are guaranteed to be unique and work reliably with the decouple operation.
10
+
11
+ Use this command when you want to break the relationship between an app and its template, allowing for independent customization without template constraints. After decoupling, the app will no longer receive updates when the template is modified.
12
+
13
+ You must have the AppFrameworkManageApp user permission to decouple apps. The app must exist in the target org and be currently associated with a template.
14
+
15
+ # examples
16
+
17
+ - Decouple an app from its template:
18
+
19
+ <%= config.bin %> <%= command.id %> --target-org myOrg --app-id 1zAxx000000004rEAA
20
+
21
+ - Decouple an app using a specific API version:
22
+
23
+ <%= config.bin %> <%= command.id %> --target-org mySandbox --app-id 1zAxx000000004rEAA --api-version 60.0
24
+
25
+ - Find app IDs using the list command first:
26
+
27
+ <%= config.bin %> orchestrator app list --target-org myOrg
28
+
29
+ # flags.target-org.summary
30
+
31
+ Login username or alias for the target org.
32
+
33
+ # flags.target-org.description
34
+
35
+ The target org containing the app to decouple. You must have the AppFrameworkManageApp user permission in this org to decouple apps.
36
+
37
+ # flags.api-version.summary
38
+
39
+ Override the API version used for API requests.
40
+
41
+ # flags.api-version.description
42
+
43
+ Override the API version used for orchestrator API requests. Use this flag to specify a particular API version when the default version doesn't work with your org's configuration.
44
+
45
+ # flags.app-id.summary
46
+
47
+ ID of the app to decouple from its template.
48
+
49
+ # flags.app-id.description
50
+
51
+ The unique identifier of the app to decouple from its template. App IDs are guaranteed to be unique within the org and work reliably with the decouple operation. Use "sf orchestrator app list" to find app IDs.
52
+
53
+ # decouplingApp
54
+
55
+ Decoupling app from template...
56
+
57
+ # decoupleSuccess
58
+
59
+ Successfully decoupled app '%s' from its template.
60
+
61
+ # error.AppNotFound
62
+
63
+ App with ID '%s' not found.
64
+
65
+ # error.AppNotFound.Actions
66
+
67
+ - Verify the app ID is correct
68
+ - Use "sf orchestrator app list" to see available apps and their IDs
69
+ - Check your permissions to view apps
70
+ - Make sure you're connected to the correct org with --target-org
71
+
72
+ # error.CannotDecouple
73
+
74
+ The app '%s' cannot be decoupled from its template. This app may be a source template or doesn't meet the requirements for decoupling.
75
+
76
+ # error.CannotDecouple.Actions
77
+
78
+ - Check that this app is not the source template for other apps
79
+ - Verify that the app is currently associated with a template (has templateSourceId)
80
+ - Ensure you have the AppFrameworkManageApp permission
81
+ - Use "sf orchestrator app display --app-id <app-id>" to see app details
82
+ - Try decoupling from the app hub interface first
83
+
84
+ # error.InvalidOperation
85
+
86
+ The app cannot be decoupled from its template.
87
+
88
+ # error.InvalidOperation.Actions
89
+
90
+ - Verify that the app is currently associated with a template
91
+ - Check that you have permission to modify apps in the target org
92
+ - Ensure the app is not in a state that prevents decoupling
93
+ - Try using a different API version with --api-version
94
+
95
+ # error.GenericError
96
+
97
+ Failed to decouple app: %s
98
+
99
+ # error.GenericError.Actions
100
+
101
+ - Verify that you have permission to modify apps in the target org
102
+ - Check your authentication and org connection are valid
103
+ - Ensure the app exists and is accessible
104
+ - Try using a different API version with --api-version
105
+ - Contact your Salesforce admin if the issue persists