Skip to content

Commit c131507

Browse files
committed
updating the template path
1 parent 5ae6937 commit c131507

3 files changed

Lines changed: 23 additions & 0 deletions

File tree

src/utils/template-placeholders.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,24 @@ export default [
6969
toPath: 'skills/_k_',
7070
replacement: 'feature-react-agentforce-conversation-client-embedded-agent',
7171
},
72+
// Angular app directory resolution (src/app/ → src/_ap_/).
73+
// React templates don't have 'app' under src/, so this is silently skipped for React.
74+
{
75+
key: 'APP_DIR_PLACEHOLDER',
76+
placeholder: '_ap_',
77+
dirInNpm: 'app',
78+
parent: '_a_',
79+
subpath: 'src',
80+
replacement: 'app',
81+
},
82+
// Angular features: chained from _ap_ (app directory).
83+
// For React, _ap_ doesn't exist → skipped. Existing FEATURES_PLACEHOLDER handles React.
84+
{
85+
placeholder: '_f_',
86+
dirInNpm: 'features',
87+
parent: '_ap_',
88+
replacement: 'features',
89+
},
7290
// Path shortening under app folder (reactinternalapp/reactexternalapp) for Windows path length.
7391
{
7492
key: 'FEATURES_PLACEHOLDER',

src/utils/uiBundleTemplateUtils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ export const A4DRULES_PLACEHOLDER = '_r_';
147147
/** Replaced with literal ".a4drules". */
148148
export const A4D_SKILL_AGENTFORCE_PLACEHOLDER = '_k_';
149149
/** Replaced with literal "feature-react-agentforce-conversation-client-embedded-agent". */
150+
export const APP_DIR_PLACEHOLDER = '_ap_';
151+
/** Replaced with literal "app" (Angular's src/app/ directory). */
150152
/** Replaced with literal "features" (under app src; short for Windows path length). */
151153
export const FEATURES_PLACEHOLDER = '_f_';
152154
/** Replaced with literal "object-search". */
@@ -174,6 +176,7 @@ export const PLACEHOLDER_KEYS = [
174176
'APP_SUFFIX_PLACEHOLDER',
175177
'A4DRULES_PLACEHOLDER',
176178
'A4D_SKILL_AGENTFORCE_PLACEHOLDER',
179+
'APP_DIR_PLACEHOLDER',
177180
'FEATURES_PLACEHOLDER',
178181
'OBJECT_SEARCH_PLACEHOLDER',
179182
'EXAMPLES_PLACEHOLDER',

test/utils/windowsPathLength.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
APP_SUFFIX_PLACEHOLDER,
2222
A4DRULES_PLACEHOLDER,
2323
A4D_SKILL_AGENTFORCE_PLACEHOLDER,
24+
APP_DIR_PLACEHOLDER,
2425
FEATURES_PLACEHOLDER,
2526
OBJECT_SEARCH_PLACEHOLDER,
2627
EXAMPLES_PLACEHOLDER,
@@ -48,6 +49,7 @@ const UI_BUNDLE_PLACEHOLDERS: Record<(typeof PLACEHOLDER_KEYS)[number], string>
4849
APP_SUFFIX_PLACEHOLDER,
4950
A4DRULES_PLACEHOLDER,
5051
A4D_SKILL_AGENTFORCE_PLACEHOLDER,
52+
APP_DIR_PLACEHOLDER,
5153
FEATURES_PLACEHOLDER,
5254
OBJECT_SEARCH_PLACEHOLDER,
5355
EXAMPLES_PLACEHOLDER,

0 commit comments

Comments
 (0)