sfcc-dev-mcp 1.0.21 → 1.1.0
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/CHANGELOG.md +73 -4
- package/README.md +101 -31
- package/dist/ai-instructions/skills/sfcc-script-evaluation/SKILL.md +1 -0
- package/dist/clients/agent-instructions-client.d.ts +3 -0
- package/dist/clients/agent-instructions-client.d.ts.map +1 -1
- package/dist/clients/agent-instructions-client.js +42 -10
- package/dist/clients/agent-instructions-client.js.map +1 -1
- package/dist/clients/base/abstract-documentation-client.d.ts +4 -0
- package/dist/clients/base/abstract-documentation-client.d.ts.map +1 -1
- package/dist/clients/base/abstract-documentation-client.js +9 -1
- package/dist/clients/base/abstract-documentation-client.js.map +1 -1
- package/dist/clients/base/http-client.d.ts +10 -3
- package/dist/clients/base/http-client.d.ts.map +1 -1
- package/dist/clients/base/http-client.js +94 -16
- package/dist/clients/base/http-client.js.map +1 -1
- package/dist/clients/base/oauth-token.d.ts +3 -0
- package/dist/clients/base/oauth-token.d.ts.map +1 -1
- package/dist/clients/base/oauth-token.js +23 -3
- package/dist/clients/base/oauth-token.js.map +1 -1
- package/dist/clients/base/ocapi-auth-client.d.ts.map +1 -1
- package/dist/clients/base/ocapi-auth-client.js +22 -2
- package/dist/clients/base/ocapi-auth-client.js.map +1 -1
- package/dist/clients/docs/class-name-resolver.d.ts +7 -4
- package/dist/clients/docs/class-name-resolver.d.ts.map +1 -1
- package/dist/clients/docs/class-name-resolver.js.map +1 -1
- package/dist/clients/docs/documentation-scanner.d.ts +2 -0
- package/dist/clients/docs/documentation-scanner.d.ts.map +1 -1
- package/dist/clients/docs/documentation-scanner.js +39 -17
- package/dist/clients/docs/documentation-scanner.js.map +1 -1
- package/dist/clients/docs-client.d.ts +4 -3
- package/dist/clients/docs-client.d.ts.map +1 -1
- package/dist/clients/docs-client.js.map +1 -1
- package/dist/clients/logs/log-client.d.ts +1 -0
- package/dist/clients/logs/log-client.d.ts.map +1 -1
- package/dist/clients/logs/log-client.js +13 -21
- package/dist/clients/logs/log-client.js.map +1 -1
- package/dist/clients/logs/log-file-discovery.d.ts +1 -0
- package/dist/clients/logs/log-file-discovery.d.ts.map +1 -1
- package/dist/clients/logs/log-file-discovery.js +19 -6
- package/dist/clients/logs/log-file-discovery.js.map +1 -1
- package/dist/clients/logs/log-file-reader.d.ts +2 -0
- package/dist/clients/logs/log-file-reader.d.ts.map +1 -1
- package/dist/clients/logs/log-file-reader.js +31 -8
- package/dist/clients/logs/log-file-reader.js.map +1 -1
- package/dist/clients/logs/log-formatter.d.ts +2 -2
- package/dist/clients/logs/log-formatter.d.ts.map +1 -1
- package/dist/clients/logs/log-formatter.js.map +1 -1
- package/dist/clients/logs/log-types.d.ts +4 -0
- package/dist/clients/logs/log-types.d.ts.map +1 -1
- package/dist/clients/logs/webdav-client-manager.d.ts.map +1 -1
- package/dist/clients/logs/webdav-client-manager.js.map +1 -1
- package/dist/clients/ocapi/code-versions-client.d.ts +23 -4
- package/dist/clients/ocapi/code-versions-client.d.ts.map +1 -1
- package/dist/clients/ocapi/code-versions-client.js +2 -2
- package/dist/clients/ocapi/code-versions-client.js.map +1 -1
- package/dist/clients/ocapi/site-preferences-client.d.ts +2 -42
- package/dist/clients/ocapi/site-preferences-client.d.ts.map +1 -1
- package/dist/clients/ocapi/site-preferences-client.js.map +1 -1
- package/dist/clients/ocapi/system-objects-client.d.ts +7 -39
- package/dist/clients/ocapi/system-objects-client.d.ts.map +1 -1
- package/dist/clients/ocapi/system-objects-client.js.map +1 -1
- package/dist/clients/script-debugger/script-debugger-client.d.ts +30 -1
- package/dist/clients/script-debugger/script-debugger-client.d.ts.map +1 -1
- package/dist/clients/script-debugger/script-debugger-client.js +266 -132
- package/dist/clients/script-debugger/script-debugger-client.js.map +1 -1
- package/dist/clients/sfra-client.d.ts.map +1 -1
- package/dist/clients/sfra-client.js.map +1 -1
- package/dist/config/cli-options.d.ts +16 -0
- package/dist/config/cli-options.d.ts.map +1 -0
- package/dist/config/cli-options.js +56 -0
- package/dist/config/cli-options.js.map +1 -0
- package/dist/config/configuration-factory.d.ts +2 -0
- package/dist/config/configuration-factory.d.ts.map +1 -1
- package/dist/config/configuration-factory.js +30 -6
- package/dist/config/configuration-factory.js.map +1 -1
- package/dist/config/credential-validation.d.ts +25 -0
- package/dist/config/credential-validation.d.ts.map +1 -0
- package/dist/config/credential-validation.js +42 -0
- package/dist/config/credential-validation.js.map +1 -0
- package/dist/config/dw-json-loader.d.ts.map +1 -1
- package/dist/config/dw-json-loader.js +25 -68
- package/dist/config/dw-json-loader.js.map +1 -1
- package/dist/config/path-security-policy.d.ts +6 -0
- package/dist/config/path-security-policy.d.ts.map +1 -0
- package/dist/config/path-security-policy.js +63 -0
- package/dist/config/path-security-policy.js.map +1 -0
- package/dist/config/workspace-roots.d.ts +1 -0
- package/dist/config/workspace-roots.d.ts.map +1 -1
- package/dist/config/workspace-roots.js +26 -77
- package/dist/config/workspace-roots.js.map +1 -1
- package/dist/core/handlers/abstract-client-handler.d.ts +23 -2
- package/dist/core/handlers/abstract-client-handler.d.ts.map +1 -1
- package/dist/core/handlers/abstract-client-handler.js +33 -3
- package/dist/core/handlers/abstract-client-handler.js.map +1 -1
- package/dist/core/handlers/agent-instructions-handler.d.ts +1 -1
- package/dist/core/handlers/agent-instructions-handler.d.ts.map +1 -1
- package/dist/core/handlers/agent-instructions-handler.js +2 -2
- package/dist/core/handlers/agent-instructions-handler.js.map +1 -1
- package/dist/core/handlers/base-handler.d.ts +14 -11
- package/dist/core/handlers/base-handler.d.ts.map +1 -1
- package/dist/core/handlers/base-handler.js +38 -22
- package/dist/core/handlers/base-handler.js.map +1 -1
- package/dist/core/handlers/cartridge-handler.d.ts +3 -8
- package/dist/core/handlers/cartridge-handler.d.ts.map +1 -1
- package/dist/core/handlers/cartridge-handler.js +10 -18
- package/dist/core/handlers/cartridge-handler.js.map +1 -1
- package/dist/core/handlers/code-version-handler.d.ts +3 -9
- package/dist/core/handlers/code-version-handler.d.ts.map +1 -1
- package/dist/core/handlers/code-version-handler.js +10 -21
- package/dist/core/handlers/code-version-handler.js.map +1 -1
- package/dist/core/handlers/job-log-handler.d.ts +3 -9
- package/dist/core/handlers/job-log-handler.d.ts.map +1 -1
- package/dist/core/handlers/job-log-handler.js +10 -21
- package/dist/core/handlers/job-log-handler.js.map +1 -1
- package/dist/core/handlers/lifecycle-utils.d.ts +5 -0
- package/dist/core/handlers/lifecycle-utils.d.ts.map +1 -0
- package/dist/core/handlers/lifecycle-utils.js +18 -0
- package/dist/core/handlers/lifecycle-utils.js.map +1 -0
- package/dist/core/handlers/log-handler.d.ts +3 -9
- package/dist/core/handlers/log-handler.d.ts.map +1 -1
- package/dist/core/handlers/log-handler.js +10 -21
- package/dist/core/handlers/log-handler.js.map +1 -1
- package/dist/core/handlers/script-debugger-handler.d.ts +3 -9
- package/dist/core/handlers/script-debugger-handler.d.ts.map +1 -1
- package/dist/core/handlers/script-debugger-handler.js +10 -21
- package/dist/core/handlers/script-debugger-handler.js.map +1 -1
- package/dist/core/handlers/simple-client-handler.d.ts +3 -3
- package/dist/core/handlers/simple-client-handler.d.ts.map +1 -1
- package/dist/core/handlers/simple-client-handler.js +5 -3
- package/dist/core/handlers/simple-client-handler.js.map +1 -1
- package/dist/core/handlers/system-object-handler.d.ts +3 -9
- package/dist/core/handlers/system-object-handler.d.ts.map +1 -1
- package/dist/core/handlers/system-object-handler.js +10 -21
- package/dist/core/handlers/system-object-handler.js.map +1 -1
- package/dist/core/handlers/validation-helpers.d.ts +5 -26
- package/dist/core/handlers/validation-helpers.d.ts.map +1 -1
- package/dist/core/handlers/validation-helpers.js +79 -81
- package/dist/core/handlers/validation-helpers.js.map +1 -1
- package/dist/core/instruction-advisor.d.ts +3 -0
- package/dist/core/instruction-advisor.d.ts.map +1 -1
- package/dist/core/instruction-advisor.js +25 -2
- package/dist/core/instruction-advisor.js.map +1 -1
- package/dist/core/server-tool-call-lifecycle.d.ts +38 -0
- package/dist/core/server-tool-call-lifecycle.d.ts.map +1 -0
- package/dist/core/server-tool-call-lifecycle.js +128 -0
- package/dist/core/server-tool-call-lifecycle.js.map +1 -0
- package/dist/core/server-tool-catalog.d.ts +19 -0
- package/dist/core/server-tool-catalog.d.ts.map +1 -0
- package/dist/core/server-tool-catalog.js +52 -0
- package/dist/core/server-tool-catalog.js.map +1 -0
- package/dist/core/server-workspace-discovery.d.ts +38 -0
- package/dist/core/server-workspace-discovery.d.ts.map +1 -0
- package/dist/core/server-workspace-discovery.js +68 -0
- package/dist/core/server-workspace-discovery.js.map +1 -0
- package/dist/core/server.d.ts +27 -3
- package/dist/core/server.d.ts.map +1 -1
- package/dist/core/server.js +247 -165
- package/dist/core/server.js.map +1 -1
- package/dist/core/tool-argument-validator.d.ts +24 -0
- package/dist/core/tool-argument-validator.d.ts.map +1 -0
- package/dist/core/tool-argument-validator.js +186 -0
- package/dist/core/tool-argument-validator.js.map +1 -0
- package/dist/core/tool-error-response.d.ts +21 -0
- package/dist/core/tool-error-response.d.ts.map +1 -0
- package/dist/core/tool-error-response.js +64 -0
- package/dist/core/tool-error-response.js.map +1 -0
- package/dist/core/tool-schemas/agent-instruction-tools.d.ts +4 -0
- package/dist/core/tool-schemas/agent-instruction-tools.d.ts.map +1 -1
- package/dist/core/tool-schemas/agent-instruction-tools.js +6 -2
- package/dist/core/tool-schemas/agent-instruction-tools.js.map +1 -1
- package/dist/core/tool-schemas/cartridge-tools.d.ts +3 -0
- package/dist/core/tool-schemas/cartridge-tools.d.ts.map +1 -1
- package/dist/core/tool-schemas/cartridge-tools.js +3 -0
- package/dist/core/tool-schemas/cartridge-tools.js.map +1 -1
- package/dist/core/tool-schemas/code-version-tools.d.ts +1 -0
- package/dist/core/tool-schemas/code-version-tools.d.ts.map +1 -1
- package/dist/core/tool-schemas/code-version-tools.js +1 -0
- package/dist/core/tool-schemas/code-version-tools.js.map +1 -1
- package/dist/core/tool-schemas/documentation-tools.d.ts +6 -0
- package/dist/core/tool-schemas/documentation-tools.d.ts.map +1 -1
- package/dist/core/tool-schemas/documentation-tools.js +6 -0
- package/dist/core/tool-schemas/documentation-tools.js.map +1 -1
- package/dist/core/tool-schemas/isml-tools.d.ts +3 -0
- package/dist/core/tool-schemas/isml-tools.d.ts.map +1 -1
- package/dist/core/tool-schemas/isml-tools.js +4 -1
- package/dist/core/tool-schemas/isml-tools.js.map +1 -1
- package/dist/core/tool-schemas/log-tools.d.ts +28 -0
- package/dist/core/tool-schemas/log-tools.d.ts.map +1 -1
- package/dist/core/tool-schemas/log-tools.js +21 -7
- package/dist/core/tool-schemas/log-tools.js.map +1 -1
- package/dist/core/tool-schemas/script-debugger-tools.d.ts +12 -0
- package/dist/core/tool-schemas/script-debugger-tools.d.ts.map +1 -1
- package/dist/core/tool-schemas/script-debugger-tools.js +19 -2
- package/dist/core/tool-schemas/script-debugger-tools.js.map +1 -1
- package/dist/core/tool-schemas/sfra-tools.d.ts +3 -0
- package/dist/core/tool-schemas/sfra-tools.d.ts.map +1 -1
- package/dist/core/tool-schemas/sfra-tools.js +3 -0
- package/dist/core/tool-schemas/sfra-tools.js.map +1 -1
- package/dist/core/tool-schemas/shared-schemas.d.ts +72 -4
- package/dist/core/tool-schemas/shared-schemas.d.ts.map +1 -1
- package/dist/core/tool-schemas/shared-schemas.js +29 -3
- package/dist/core/tool-schemas/shared-schemas.js.map +1 -1
- package/dist/core/tool-schemas/system-object-tools.d.ts +93 -4
- package/dist/core/tool-schemas/system-object-tools.d.ts.map +1 -1
- package/dist/core/tool-schemas/system-object-tools.js +13 -6
- package/dist/core/tool-schemas/system-object-tools.js.map +1 -1
- package/dist/docs/dw_extensions.payments/SalesforcePaymentsMgr.md +52 -0
- package/dist/docs/dw_system/Request.md +4 -0
- package/dist/docs/dw_web/Cookie.md +54 -15
- package/dist/docs/isml/isprint.md +1 -1
- package/dist/docs/isml/isredirect.md +1 -1
- package/dist/docs/isml/isremove.md +1 -1
- package/dist/docs/isml/isreplace.md +1 -1
- package/dist/docs/isml/isscript.md +1 -1
- package/dist/main.js +18 -33
- package/dist/main.js.map +1 -1
- package/dist/tool-configs/agent-instructions-tool-config.d.ts +1 -1
- package/dist/tool-configs/agent-instructions-tool-config.d.ts.map +1 -1
- package/dist/tool-configs/agent-instructions-tool-config.js +0 -33
- package/dist/tool-configs/agent-instructions-tool-config.js.map +1 -1
- package/dist/tool-configs/cartridge-tool-config.d.ts +1 -1
- package/dist/tool-configs/cartridge-tool-config.d.ts.map +1 -1
- package/dist/tool-configs/cartridge-tool-config.js +3 -5
- package/dist/tool-configs/cartridge-tool-config.js.map +1 -1
- package/dist/tool-configs/code-version-tool-config.d.ts +1 -1
- package/dist/tool-configs/code-version-tool-config.d.ts.map +1 -1
- package/dist/tool-configs/code-version-tool-config.js +0 -4
- package/dist/tool-configs/code-version-tool-config.js.map +1 -1
- package/dist/tool-configs/docs-tool-config.d.ts +1 -1
- package/dist/tool-configs/docs-tool-config.d.ts.map +1 -1
- package/dist/tool-configs/docs-tool-config.js +0 -13
- package/dist/tool-configs/docs-tool-config.js.map +1 -1
- package/dist/tool-configs/isml-tool-config.d.ts +1 -1
- package/dist/tool-configs/isml-tool-config.d.ts.map +1 -1
- package/dist/tool-configs/isml-tool-config.js +0 -10
- package/dist/tool-configs/isml-tool-config.js.map +1 -1
- package/dist/tool-configs/job-log-tool-config.d.ts +1 -1
- package/dist/tool-configs/job-log-tool-config.d.ts.map +1 -1
- package/dist/tool-configs/job-log-tool-config.js +1 -21
- package/dist/tool-configs/job-log-tool-config.js.map +1 -1
- package/dist/tool-configs/log-tool-config.d.ts +1 -1
- package/dist/tool-configs/log-tool-config.d.ts.map +1 -1
- package/dist/tool-configs/log-tool-config.js +6 -16
- package/dist/tool-configs/log-tool-config.js.map +1 -1
- package/dist/tool-configs/script-debugger-tool-config.d.ts +1 -1
- package/dist/tool-configs/script-debugger-tool-config.d.ts.map +1 -1
- package/dist/tool-configs/script-debugger-tool-config.js +1 -8
- package/dist/tool-configs/script-debugger-tool-config.js.map +1 -1
- package/dist/tool-configs/sfra-tool-config.d.ts +1 -1
- package/dist/tool-configs/sfra-tool-config.d.ts.map +1 -1
- package/dist/tool-configs/sfra-tool-config.js +0 -10
- package/dist/tool-configs/sfra-tool-config.js.map +1 -1
- package/dist/tool-configs/system-object-tool-config.d.ts +1 -1
- package/dist/tool-configs/system-object-tool-config.d.ts.map +1 -1
- package/dist/tool-configs/system-object-tool-config.js +14 -24
- package/dist/tool-configs/system-object-tool-config.js.map +1 -1
- package/dist/types/ocapi-search.d.ts +50 -0
- package/dist/types/ocapi-search.d.ts.map +1 -0
- package/dist/types/ocapi-search.js +7 -0
- package/dist/types/ocapi-search.js.map +1 -0
- package/dist/types/types.d.ts +13 -5
- package/dist/types/types.d.ts.map +1 -1
- package/dist/utils/abort-utils.d.ts +18 -0
- package/dist/utils/abort-utils.d.ts.map +1 -0
- package/dist/utils/abort-utils.js +66 -0
- package/dist/utils/abort-utils.js.map +1 -0
- package/dist/utils/cache.d.ts +7 -7
- package/dist/utils/cache.d.ts.map +1 -1
- package/dist/utils/cache.js +1 -0
- package/dist/utils/cache.js.map +1 -1
- package/dist/utils/category-utils.d.ts +0 -10
- package/dist/utils/category-utils.d.ts.map +1 -1
- package/dist/utils/category-utils.js +0 -12
- package/dist/utils/category-utils.js.map +1 -1
- package/dist/utils/log-tool-constants.d.ts +3 -4
- package/dist/utils/log-tool-constants.d.ts.map +1 -1
- package/dist/utils/log-tool-constants.js +2 -13
- package/dist/utils/log-tool-constants.js.map +1 -1
- package/dist/utils/logger.d.ts +20 -7
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +72 -11
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/query-builder.d.ts +2 -5
- package/dist/utils/query-builder.d.ts.map +1 -1
- package/dist/utils/query-builder.js +1 -4
- package/dist/utils/query-builder.js.map +1 -1
- package/dist/utils/validator.d.ts +5 -3
- package/dist/utils/validator.d.ts.map +1 -1
- package/dist/utils/validator.js +20 -14
- package/dist/utils/validator.js.map +1 -1
- package/package.json +23 -11
- package/dist/clients/docs/index.d.ts +0 -10
- package/dist/clients/docs/index.d.ts.map +0 -1
- package/dist/clients/docs/index.js +0 -10
- package/dist/clients/docs/index.js.map +0 -1
- package/dist/constants/index.d.ts +0 -1
- package/dist/constants/index.d.ts.map +0 -1
- package/dist/constants/index.js +0 -3
- package/dist/constants/index.js.map +0 -1
- package/dist/utils/path-validation.d.ts +0 -40
- package/dist/utils/path-validation.d.ts.map +0 -1
- package/dist/utils/path-validation.js +0 -84
- package/dist/utils/path-validation.js.map +0 -1
|
@@ -25,7 +25,9 @@ Default name for cookies with empty strings.
|
|
|
25
25
|
|
|
26
26
|
**Type:** String
|
|
27
27
|
|
|
28
|
-
The comment
|
|
28
|
+
The comment that was previously set for this cookie, or null if no comment was set. Note that comments
|
|
29
|
+
are no longer supported in RFC 6265 and will not be sent to clients. This method is maintained for backward
|
|
30
|
+
compatibility only.
|
|
29
31
|
|
|
30
32
|
### domain
|
|
31
33
|
|
|
@@ -74,8 +76,9 @@ The cookie's value.
|
|
|
74
76
|
|
|
75
77
|
**Type:** Number
|
|
76
78
|
|
|
77
|
-
The version for
|
|
78
|
-
|
|
79
|
+
The version that was previously set for this cookie. Note that the version is no longer used for
|
|
80
|
+
determining cookie compliance as the system now uses RFC 6265 by default. The returned value only reflects what
|
|
81
|
+
was previously set using setVersion(Number).
|
|
79
82
|
|
|
80
83
|
## Constructor Summary
|
|
81
84
|
|
|
@@ -87,7 +90,7 @@ Cookie(name : String, value : String) Constructs a new cookie using the specifie
|
|
|
87
90
|
|
|
88
91
|
**Signature:** `getComment() : String`
|
|
89
92
|
|
|
90
|
-
Returns the comment
|
|
93
|
+
Returns the comment that was previously set for this cookie, or null if no comment was set.
|
|
91
94
|
|
|
92
95
|
### getDomain
|
|
93
96
|
|
|
@@ -129,7 +132,7 @@ Returns the cookie's value.
|
|
|
129
132
|
|
|
130
133
|
**Signature:** `getVersion() : Number`
|
|
131
134
|
|
|
132
|
-
Returns the version for
|
|
135
|
+
Returns the version that was previously set for this cookie.
|
|
133
136
|
|
|
134
137
|
### isHttpOnly
|
|
135
138
|
|
|
@@ -141,7 +144,7 @@ Identifies if the cookie is http-only.
|
|
|
141
144
|
|
|
142
145
|
**Signature:** `setComment(comment : String) : void`
|
|
143
146
|
|
|
144
|
-
Sets
|
|
147
|
+
Sets a comment associated with this cookie.
|
|
145
148
|
|
|
146
149
|
### setDomain
|
|
147
150
|
|
|
@@ -183,7 +186,7 @@ Sets the cookie's value.
|
|
|
183
186
|
|
|
184
187
|
**Signature:** `setVersion(version : Number) : void`
|
|
185
188
|
|
|
186
|
-
|
|
189
|
+
Returns the version that was previously set for this cookie.
|
|
187
190
|
|
|
188
191
|
## Constructor Detail
|
|
189
192
|
|
|
@@ -195,11 +198,19 @@ Sets the version for the cookie.
|
|
|
195
198
|
|
|
196
199
|
**Signature:** `getComment() : String`
|
|
197
200
|
|
|
198
|
-
**Description:** Returns the comment
|
|
201
|
+
**Description:** Returns the comment that was previously set for this cookie, or null if no comment was set. Note that comments are no longer supported in RFC 6265 and will not be sent to clients. This method is maintained for backward compatibility only.
|
|
202
|
+
|
|
203
|
+
**API Versioned:**
|
|
204
|
+
|
|
205
|
+
No longer available as of version 99.2. This method is deprecated and will be removed in the next API version.
|
|
206
|
+
|
|
207
|
+
**Deprecated:**
|
|
208
|
+
|
|
209
|
+
This method is maintained for backward compatibility only. Cookie comments were removed in RFC 6265 and are no longer sent to clients. The returned value only reflects what was previously set using setComment(String).
|
|
199
210
|
|
|
200
211
|
**Returns:**
|
|
201
212
|
|
|
202
|
-
the comment
|
|
213
|
+
the comment that was previously set, or null if no comment was set
|
|
203
214
|
|
|
204
215
|
---
|
|
205
216
|
|
|
@@ -279,11 +290,19 @@ the cookie's value.
|
|
|
279
290
|
|
|
280
291
|
**Signature:** `getVersion() : Number`
|
|
281
292
|
|
|
282
|
-
**Description:** Returns the version for
|
|
293
|
+
**Description:** Returns the version that was previously set for this cookie. Note that the version is no longer used for determining cookie compliance as the system now uses RFC 6265 by default. The returned value only reflects what was previously set using setVersion(Number).
|
|
294
|
+
|
|
295
|
+
**API Versioned:**
|
|
296
|
+
|
|
297
|
+
No longer available as of version 99.2. This method is deprecated and will be removed in the next API version.
|
|
298
|
+
|
|
299
|
+
**Deprecated:**
|
|
300
|
+
|
|
301
|
+
This method is maintained for backward compatibility only. The version property is no longer used as the system now uses RFC 6265 compliance by default. The returned value has no effect on cookie behavior.
|
|
283
302
|
|
|
284
303
|
**Returns:**
|
|
285
304
|
|
|
286
|
-
the version
|
|
305
|
+
the version number that was set, or 0 if no version was explicitly set
|
|
287
306
|
|
|
288
307
|
---
|
|
289
308
|
|
|
@@ -303,11 +322,19 @@ true if the cookie is http-only, false otherwise.
|
|
|
303
322
|
|
|
304
323
|
**Signature:** `setComment(comment : String) : void`
|
|
305
324
|
|
|
306
|
-
**Description:** Sets
|
|
325
|
+
**Description:** Sets a comment associated with this cookie. Note that comments are no longer sent to clients as they were removed in RFC 6265. This method is maintained for backward compatibility but has no effect on the cookie's behavior.
|
|
326
|
+
|
|
327
|
+
**API Versioned:**
|
|
328
|
+
|
|
329
|
+
No longer available as of version 99.2. This method is deprecated and will be removed in the next API version.
|
|
330
|
+
|
|
331
|
+
**Deprecated:**
|
|
332
|
+
|
|
333
|
+
This method is maintained for backward compatibility only. Cookie comments were removed in RFC 6265 and will not be sent to clients. The value will be stored but has no effect on cookie behavior.
|
|
307
334
|
|
|
308
335
|
**Parameters:**
|
|
309
336
|
|
|
310
|
-
- `comment`: the comment
|
|
337
|
+
- `comment`: the comment to associate with the cookie (ignored)
|
|
311
338
|
|
|
312
339
|
---
|
|
313
340
|
|
|
@@ -387,10 +414,22 @@ true if the cookie is http-only, false otherwise.
|
|
|
387
414
|
|
|
388
415
|
**Signature:** `setVersion(version : Number) : void`
|
|
389
416
|
|
|
390
|
-
**Description:**
|
|
417
|
+
**Description:** Returns the version that was previously set for this cookie. Note that the version is no longer used for determining cookie compliance as the system now uses RFC 6265 by default. The returned value only reflects what was previously set using setVersion(Number).
|
|
418
|
+
|
|
419
|
+
**API Versioned:**
|
|
420
|
+
|
|
421
|
+
No longer available as of version 99.2. This method is deprecated and will be removed in the next API version.
|
|
422
|
+
|
|
423
|
+
**Deprecated:**
|
|
424
|
+
|
|
425
|
+
This method is maintained for backward compatibility only. The version property is no longer used as the system now uses RFC 6265 compliance by default. The returned value has no effect on cookie behavior.
|
|
391
426
|
|
|
392
427
|
**Parameters:**
|
|
393
428
|
|
|
394
|
-
- `version`:
|
|
429
|
+
- `version`: No Comment In JavaDoc
|
|
430
|
+
|
|
431
|
+
**Returns:**
|
|
432
|
+
|
|
433
|
+
the version number that was set, or 0 if no version was explicitly set
|
|
395
434
|
|
|
396
435
|
---
|
|
@@ -868,7 +868,7 @@ Distinguish between trusted content and user input:
|
|
|
868
868
|
|
|
869
869
|
## See Also
|
|
870
870
|
|
|
871
|
-
- [ISML Expression
|
|
871
|
+
- [ISML Script and Expression Usage](./isscript.md)
|
|
872
872
|
- [StringUtils Class](../dw_util/StringUtils.md)
|
|
873
873
|
- [SecureEncoder Class](../dw_util/SecureEncoder.md)
|
|
874
874
|
- [Money Class](../dw_value/Money.md)
|
|
@@ -709,7 +709,7 @@ res.render('template', {
|
|
|
709
709
|
## See Also
|
|
710
710
|
|
|
711
711
|
- [URLUtils Class](../dw_web/URLUtils.md)
|
|
712
|
-
- [Response
|
|
712
|
+
- [Response Documentation (SFRA)](../sfra/response.md)
|
|
713
713
|
- [ISML Conditional Statements](./isif.md)
|
|
714
714
|
- [ISML Cache Element](./iscache.md)
|
|
715
715
|
- [SFRA Controllers Skill](../../ai-instructions/skills/sfcc-sfra-controllers/SKILL.md)
|
|
@@ -719,7 +719,7 @@ Don't over-optimize by removing every variable immediately:
|
|
|
719
719
|
## See Also
|
|
720
720
|
|
|
721
721
|
- [isset Element](./isset.md)
|
|
722
|
-
- [ISML Variables and Scope](./
|
|
722
|
+
- [ISML Variables and Scope](./isset.md)
|
|
723
723
|
- [Session Management](../dw_system/Session.md)
|
|
724
724
|
- [Security Skill](../../ai-instructions/skills/sfcc-security/SKILL.md)
|
|
725
725
|
- [Performance Skill](../../ai-instructions/skills/sfcc-performance/SKILL.md)
|
|
@@ -779,5 +779,5 @@ Ensure proper encoding in decorator templates:
|
|
|
779
779
|
- [isdecorate Element](./isdecorate.md)
|
|
780
780
|
- [isinclude Element](./isinclude.md)
|
|
781
781
|
- [SFRA Controllers Skill](../../ai-instructions/skills/sfcc-sfra-controllers/SKILL.md)
|
|
782
|
-
- [Template Composition Patterns](./
|
|
782
|
+
- [Template Composition Patterns](./isdecorate.md)
|
|
783
783
|
- [ISML Development Skill](../../ai-instructions/skills/sfcc-isml-development/SKILL.md)
|
|
@@ -852,7 +852,7 @@ Encode output to prevent XSS:
|
|
|
852
852
|
## See Also
|
|
853
853
|
|
|
854
854
|
- [B2C Commerce Script API Documentation](../dw_system/)
|
|
855
|
-
- [ISML Expressions](
|
|
855
|
+
- [ISML Expressions](#integration-with-inline-expressions)
|
|
856
856
|
- [isset Element](./isset.md)
|
|
857
857
|
- [SFRA Client-side JS Skill](../../ai-instructions/skills/sfcc-sfra-client-side-js/SKILL.md)
|
|
858
858
|
- [Security Skill](../../ai-instructions/skills/sfcc-security/SKILL.md)
|
package/dist/main.js
CHANGED
|
@@ -20,38 +20,21 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { SFCCDevServer } from './core/server.js';
|
|
22
22
|
import { ConfigurationFactory } from './config/configuration-factory.js';
|
|
23
|
+
import { parseCommandLineArgs, hasEnvironmentCredentials } from './config/cli-options.js';
|
|
23
24
|
import { Logger } from './utils/logger.js';
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
i++; // Skip the next argument since we consumed it
|
|
35
|
-
}
|
|
36
|
-
else if (arg === '--debug' && i + 1 < args.length) {
|
|
37
|
-
const debugValue = args[i + 1].toLowerCase();
|
|
38
|
-
options.debug = debugValue === 'true' || debugValue === '1' || debugValue === 'yes';
|
|
39
|
-
i++; // Skip the next argument since we consumed it
|
|
40
|
-
}
|
|
41
|
-
else if (arg === '--debug') {
|
|
42
|
-
// Allow --debug without a value to default to true
|
|
43
|
-
options.debug = true;
|
|
25
|
+
function redactCliArgs(args) {
|
|
26
|
+
const sensitiveTokens = ['password', 'secret', 'token', 'client-secret', 'client_secret'];
|
|
27
|
+
return args.map(arg => {
|
|
28
|
+
const lowerArg = arg.toLowerCase();
|
|
29
|
+
if (sensitiveTokens.some(token => lowerArg.includes(token))) {
|
|
30
|
+
if (arg.includes('=')) {
|
|
31
|
+
const [key] = arg.split('=', 1);
|
|
32
|
+
return `${key}=[REDACTED]`;
|
|
33
|
+
}
|
|
34
|
+
return '[REDACTED]';
|
|
44
35
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Check if environment variables provide SFCC credentials
|
|
50
|
-
*/
|
|
51
|
-
function hasEnvironmentCredentials() {
|
|
52
|
-
const hasBasicAuth = !!(process.env.SFCC_USERNAME && process.env.SFCC_PASSWORD);
|
|
53
|
-
const hasOAuth = !!(process.env.SFCC_CLIENT_ID && process.env.SFCC_CLIENT_SECRET);
|
|
54
|
-
return !!(process.env.SFCC_HOSTNAME && (hasBasicAuth || hasOAuth));
|
|
36
|
+
return arg;
|
|
37
|
+
});
|
|
55
38
|
}
|
|
56
39
|
/**
|
|
57
40
|
* Main application entry point
|
|
@@ -73,7 +56,8 @@ async function main() {
|
|
|
73
56
|
const logger = Logger.getInstance();
|
|
74
57
|
logger.log('Starting SFCC Development MCP Server...');
|
|
75
58
|
logger.log(`[main] Current working directory: ${process.cwd()}`);
|
|
76
|
-
logger.log(`[main] Command line args: ${
|
|
59
|
+
logger.log(`[main] Command line args count: ${process.argv.slice(2).length}`);
|
|
60
|
+
logger.debug(`[main] Command line args (redacted): ${JSON.stringify(redactCliArgs(process.argv.slice(2)))}`);
|
|
77
61
|
if (debug) {
|
|
78
62
|
logger.log('[main] Debug mode enabled');
|
|
79
63
|
}
|
|
@@ -133,13 +117,14 @@ async function main() {
|
|
|
133
117
|
logger.log('3. Set environment variables: SFCC_HOSTNAME, SFCC_USERNAME, SFCC_PASSWORD');
|
|
134
118
|
}
|
|
135
119
|
}
|
|
136
|
-
process.
|
|
120
|
+
process.exitCode = 1;
|
|
121
|
+
return;
|
|
137
122
|
}
|
|
138
123
|
}
|
|
139
124
|
// Run the main function
|
|
140
125
|
main().catch((error) => {
|
|
141
126
|
const logger = Logger.getInstance();
|
|
142
127
|
logger.error('Unhandled error:', error);
|
|
143
|
-
process.
|
|
128
|
+
process.exitCode = 1;
|
|
144
129
|
});
|
|
145
130
|
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAC1F,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,SAAS,aAAa,CAAC,IAAc;IACnC,MAAM,eAAe,GAAG,CAAC,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,eAAe,EAAE,eAAe,CAA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O,CAAC,QAAQ,GAAG,CAAC,CAAC;QACrB,OAAO;IACT,CAAC;AACH,CAAC;AAED,wBAAwB;AACxB,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;IACpC,MAAM,CAAC,KAAK,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;IACxC,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC"}
|
|
@@ -2,5 +2,5 @@ import { GenericToolSpec, ToolArguments } from '../core/handlers/base-handler.js
|
|
|
2
2
|
export declare const AGENT_INSTRUCTION_TOOL_NAMES: readonly ["sync_agent_instructions", "disable_agent_sync"];
|
|
3
3
|
export type AgentInstructionToolName = typeof AGENT_INSTRUCTION_TOOL_NAMES[number];
|
|
4
4
|
export declare const AGENT_INSTRUCTION_TOOL_NAMES_SET: Set<"sync_agent_instructions" | "disable_agent_sync">;
|
|
5
|
-
export declare const AGENT_INSTRUCTION_TOOL_CONFIG: Record<AgentInstructionToolName, GenericToolSpec<ToolArguments,
|
|
5
|
+
export declare const AGENT_INSTRUCTION_TOOL_CONFIG: Record<AgentInstructionToolName, GenericToolSpec<ToolArguments, unknown>>;
|
|
6
6
|
//# sourceMappingURL=agent-instructions-tool-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-instructions-tool-config.d.ts","sourceRoot":"","sources":["../../src/tool-configs/agent-instructions-tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"agent-instructions-tool-config.d.ts","sourceRoot":"","sources":["../../src/tool-configs/agent-instructions-tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIlF,eAAO,MAAM,4BAA4B,4DAG/B,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAAG,OAAO,4BAA4B,CAAC,MAAM,CAAC,CAAC;AACnF,eAAO,MAAM,gCAAgC,uDAAkE,CAAC;AAEhH,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAChD,wBAAwB,EACxB,eAAe,CAAC,aAAa,EAAE,OAAO,CAAC,CAqCxC,CAAC"}
|
|
@@ -1,38 +1,10 @@
|
|
|
1
|
-
import { ValidationHelpers } from '../core/handlers/validation-helpers.js';
|
|
2
1
|
export const AGENT_INSTRUCTION_TOOL_NAMES = [
|
|
3
2
|
'sync_agent_instructions',
|
|
4
3
|
'disable_agent_sync',
|
|
5
4
|
];
|
|
6
5
|
export const AGENT_INSTRUCTION_TOOL_NAMES_SET = new Set(AGENT_INSTRUCTION_TOOL_NAMES);
|
|
7
|
-
const DESTINATION_VALUES = ['project', 'user', 'temp'];
|
|
8
|
-
const MERGE_VALUES = ['append', 'replace', 'skip'];
|
|
9
6
|
export const AGENT_INSTRUCTION_TOOL_CONFIG = {
|
|
10
7
|
sync_agent_instructions: {
|
|
11
|
-
validate: (args, toolName) => {
|
|
12
|
-
ValidationHelpers.validateArguments(args, [
|
|
13
|
-
{
|
|
14
|
-
field: 'destinationType',
|
|
15
|
-
required: false,
|
|
16
|
-
type: 'string',
|
|
17
|
-
validator: (value) => DESTINATION_VALUES.includes(value),
|
|
18
|
-
errorMessage: 'destinationType must be one of project | user | temp',
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
field: 'mergeStrategy',
|
|
22
|
-
required: false,
|
|
23
|
-
type: 'string',
|
|
24
|
-
validator: (value) => MERGE_VALUES.includes(value),
|
|
25
|
-
errorMessage: 'mergeStrategy must be one of append | replace | skip',
|
|
26
|
-
},
|
|
27
|
-
{ field: 'preferredRoot', required: false, type: 'string' },
|
|
28
|
-
{ field: 'skillsDir', required: false, type: 'string' },
|
|
29
|
-
{ field: 'tempDir', required: false, type: 'string' },
|
|
30
|
-
{ field: 'includeAgents', required: false, type: 'boolean' },
|
|
31
|
-
{ field: 'includeSkills', required: false, type: 'boolean' },
|
|
32
|
-
{ field: 'installMissingOnly', required: false, type: 'boolean' },
|
|
33
|
-
{ field: 'dryRun', required: false, type: 'boolean' },
|
|
34
|
-
], toolName);
|
|
35
|
-
},
|
|
36
8
|
exec: async (args, context) => {
|
|
37
9
|
const client = context.agentInstructionsClient;
|
|
38
10
|
return client.syncInstructions({
|
|
@@ -50,11 +22,6 @@ export const AGENT_INSTRUCTION_TOOL_CONFIG = {
|
|
|
50
22
|
logMessage: (args) => `Sync agent instructions (${args.destinationType ?? 'project'})`,
|
|
51
23
|
},
|
|
52
24
|
disable_agent_sync: {
|
|
53
|
-
validate: (args, toolName) => {
|
|
54
|
-
ValidationHelpers.validateArguments(args, [
|
|
55
|
-
{ field: 'preferredRoot', required: false, type: 'string' },
|
|
56
|
-
], toolName);
|
|
57
|
-
},
|
|
58
25
|
exec: async (args, context) => {
|
|
59
26
|
const client = context.agentInstructionsClient;
|
|
60
27
|
const advisor = context.instructionAdvisor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-instructions-tool-config.js","sourceRoot":"","sources":["../../src/tool-configs/agent-instructions-tool-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent-instructions-tool-config.js","sourceRoot":"","sources":["../../src/tool-configs/agent-instructions-tool-config.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,yBAAyB;IACzB,oBAAoB;CACZ,CAAC;AAGX,MAAM,CAAC,MAAM,gCAAgC,GAAG,IAAI,GAAG,CAA2B,4BAA4B,CAAC,CAAC;AAEhH,MAAM,CAAC,MAAM,6BAA6B,GAGtC;IACF,uBAAuB,EAAE;QACvB,IAAI,EAAE,KAAK,EAAE,IAAmB,EAAE,OAAO,EAAE,EAAE;YAC3C,MAAM,MAAM,GAAG,OAAO,CAAC,uBAAkD,CAAC;YAC1E,OAAO,MAAM,CAAC,gBAAgB,CAAC;gBAC7B,eAAe,EAAE,IAAI,CAAC,eAA0D;gBAChF,aAAa,EAAE,IAAI,CAAC,aAAmC;gBACvD,SAAS,EAAE,IAAI,CAAC,SAA+B;gBAC/C,aAAa,EAAE,IAAI,CAAC,aAA0D;gBAC9E,aAAa,EAAE,IAAI,CAAC,aAAoC;gBACxD,aAAa,EAAE,IAAI,CAAC,aAAoC;gBACxD,kBAAkB,EAAE,IAAI,CAAC,kBAAyC;gBAClE,MAAM,EAAE,IAAI,CAAC,MAA6B;gBAC1C,OAAO,EAAE,IAAI,CAAC,OAA6B;aAC5C,CAAC,CAAC;QACL,CAAC;QACD,UAAU,EAAE,CAAC,IAAmB,EAAE,EAAE,CAAC,4BAA4B,IAAI,CAAC,eAAe,IAAI,SAAS,GAAG;KACtG;IACD,kBAAkB,EAAE;QAClB,IAAI,EAAE,KAAK,EAAE,IAAmB,EAAE,OAAO,EAAE,EAAE;YAC3C,MAAM,MAAM,GAAG,OAAO,CAAC,uBAAkD,CAAC;YAC1E,MAAM,OAAO,GAAG,OAAO,CAAC,kBAAwC,CAAC;YAEjE,wCAAwC;YACxC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,aAAmC,CAAC,CAAC;YAChF,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC;gBAC1B,OAAO;oBACL,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE,sFAAsF;iBAChG,CAAC;YACJ,CAAC;YAED,OAAO,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QACxD,CAAC;QACD,UAAU,EAAE,GAAG,EAAE,CAAC,gCAAgC;KACnD;CACF,CAAC"}
|
|
@@ -7,5 +7,5 @@ export declare const CARTRIDGE_TOOL_NAMES_SET: Set<"generate_cartridge_structure
|
|
|
7
7
|
* Configuration for cartridge generation tools
|
|
8
8
|
* Maps each tool to its validation, execution, and messaging logic
|
|
9
9
|
*/
|
|
10
|
-
export declare const CARTRIDGE_TOOL_CONFIG: Record<CartridgeToolName, GenericToolSpec<ToolArguments,
|
|
10
|
+
export declare const CARTRIDGE_TOOL_CONFIG: Record<CartridgeToolName, GenericToolSpec<ToolArguments, unknown>>;
|
|
11
11
|
//# sourceMappingURL=cartridge-tool-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartridge-tool-config.d.ts","sourceRoot":"","sources":["../../src/tool-configs/cartridge-tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAwB,MAAM,kCAAkC,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIjE,eAAO,MAAM,oBAAoB,2CAEvB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,OAAO,oBAAoB,CAAC,MAAM,CAAC,CAAC;AACpE,eAAO,MAAM,wBAAwB,qCAAmD,CAAC;AAEzF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,iBAAiB,EAAE,eAAe,CAAC,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"cartridge-tool-config.d.ts","sourceRoot":"","sources":["../../src/tool-configs/cartridge-tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAwB,MAAM,kCAAkC,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIjE,eAAO,MAAM,oBAAoB,2CAEvB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,OAAO,oBAAoB,CAAC,MAAM,CAAC,CAAC;AACpE,eAAO,MAAM,wBAAwB,qCAAmD,CAAC;AAEzF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,iBAAiB,EAAE,eAAe,CAAC,aAAa,EAAE,OAAO,CAAC,CAsBpG,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { validateTargetPathWithinWorkspace } from '../core/handlers/validation-helpers.js';
|
|
2
2
|
export const CARTRIDGE_TOOL_NAMES = [
|
|
3
3
|
'generate_cartridge_structure',
|
|
4
4
|
];
|
|
@@ -13,14 +13,12 @@ export const CARTRIDGE_TOOL_CONFIG = {
|
|
|
13
13
|
...args,
|
|
14
14
|
fullProjectSetup: args.fullProjectSetup ?? true,
|
|
15
15
|
}),
|
|
16
|
-
validate: (args, toolName) => {
|
|
17
|
-
ValidationHelpers.validateArguments(args, CommonValidations.requiredField('cartridgeName', 'string', (value) => /^[a-zA-Z][a-zA-Z0-9_-]*$/.test(value), 'cartridgeName must be a valid identifier (letters, numbers, underscore, hyphen)'), toolName);
|
|
18
|
-
},
|
|
19
16
|
exec: async (args, context) => {
|
|
20
17
|
const client = context.cartridgeClient;
|
|
18
|
+
const validatedTargetPath = validateTargetPathWithinWorkspace(args.targetPath, context, 'generate_cartridge_structure');
|
|
21
19
|
return client.generateCartridgeStructure({
|
|
22
20
|
cartridgeName: args.cartridgeName,
|
|
23
|
-
targetPath:
|
|
21
|
+
targetPath: validatedTargetPath,
|
|
24
22
|
fullProjectSetup: args.fullProjectSetup,
|
|
25
23
|
});
|
|
26
24
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartridge-tool-config.js","sourceRoot":"","sources":["../../src/tool-configs/cartridge-tool-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cartridge-tool-config.js","sourceRoot":"","sources":["../../src/tool-configs/cartridge-tool-config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAE3F,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,8BAA8B;CACtB,CAAC;AAGX,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,GAAG,CAAoB,oBAAoB,CAAC,CAAC;AAEzF;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAuE;IACvG,4BAA4B,EAAE;QAC5B,QAAQ,EAAE,CAAC,IAAmB,EAAE,EAAE,CAAC,CAAC;YAClC,GAAG,IAAI;YACP,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,IAAI,IAAI;SAChD,CAAC;QACF,IAAI,EAAE,KAAK,EAAE,IAAmB,EAAE,OAA6B,EAAE,EAAE;YACjE,MAAM,MAAM,GAAG,OAAO,CAAC,eAA4C,CAAC;YACpE,MAAM,mBAAmB,GAAG,iCAAiC,CAC3D,IAAI,CAAC,UAAU,EACf,OAAO,EACP,8BAA8B,CAC/B,CAAC;YAEF,OAAO,MAAM,CAAC,0BAA0B,CAAC;gBACvC,aAAa,EAAE,IAAI,CAAC,aAAuB;gBAC3C,UAAU,EAAE,mBAAmB;gBAC/B,gBAAgB,EAAE,IAAI,CAAC,gBAA2B;aACnD,CAAC,CAAC;QACL,CAAC;QACD,UAAU,EAAE,CAAC,IAAmB,EAAE,EAAE,CAAC,oCAAoC,IAAI,CAAC,aAAa,EAAE;KAC9F;CACF,CAAC"}
|
|
@@ -7,5 +7,5 @@ export declare const CODE_VERSION_TOOL_NAMES_SET: Set<"get_code_versions" | "act
|
|
|
7
7
|
* Configuration for code version tools
|
|
8
8
|
* Maps each tool to its validation, execution, and messaging logic
|
|
9
9
|
*/
|
|
10
|
-
export declare const CODE_VERSION_TOOL_CONFIG: Record<CodeVersionToolName, GenericToolSpec<ToolArguments,
|
|
10
|
+
export declare const CODE_VERSION_TOOL_CONFIG: Record<CodeVersionToolName, GenericToolSpec<ToolArguments, unknown>>;
|
|
11
11
|
//# sourceMappingURL=code-version-tool-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-version-tool-config.d.ts","sourceRoot":"","sources":["../../src/tool-configs/code-version-tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAwB,MAAM,kCAAkC,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"code-version-tool-config.d.ts","sourceRoot":"","sources":["../../src/tool-configs/code-version-tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAwB,MAAM,kCAAkC,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAGjE,eAAO,MAAM,uBAAuB,yDAG1B,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAC;AACzE,eAAO,MAAM,2BAA2B,oDAAwD,CAAC;AAEjG;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,mBAAmB,EAAE,eAAe,CAAC,aAAa,EAAE,OAAO,CAAC,CAgBzG,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ValidationHelpers, CommonValidations } from '../core/handlers/validation-helpers.js';
|
|
2
1
|
export const CODE_VERSION_TOOL_NAMES = [
|
|
3
2
|
'get_code_versions',
|
|
4
3
|
'activate_code_version',
|
|
@@ -17,9 +16,6 @@ export const CODE_VERSION_TOOL_CONFIG = {
|
|
|
17
16
|
logMessage: (_args) => 'Get code versions',
|
|
18
17
|
},
|
|
19
18
|
activate_code_version: {
|
|
20
|
-
validate: (args, toolName) => {
|
|
21
|
-
ValidationHelpers.validateArguments(args, CommonValidations.requiredString('codeVersionId'), toolName);
|
|
22
|
-
},
|
|
23
19
|
exec: async (args, context) => {
|
|
24
20
|
const client = context.codeVersionsClient;
|
|
25
21
|
return client.activateCodeVersion(args.codeVersionId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-version-tool-config.js","sourceRoot":"","sources":["../../src/tool-configs/code-version-tool-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"code-version-tool-config.js","sourceRoot":"","sources":["../../src/tool-configs/code-version-tool-config.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,mBAAmB;IACnB,uBAAuB;CACf,CAAC;AAGX,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,GAAG,CAAsB,uBAAuB,CAAC,CAAC;AAEjG;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAyE;IAC5G,iBAAiB,EAAE;QACjB,IAAI,EAAE,KAAK,EAAE,KAAoB,EAAE,OAA6B,EAAE,EAAE;YAClE,MAAM,MAAM,GAAG,OAAO,CAAC,kBAA6C,CAAC;YACrE,OAAO,MAAM,CAAC,eAAe,EAAE,CAAC;QAClC,CAAC;QACD,UAAU,EAAE,CAAC,KAAoB,EAAE,EAAE,CAAC,mBAAmB;KAC1D;IAED,qBAAqB,EAAE;QACrB,IAAI,EAAE,KAAK,EAAE,IAAmB,EAAE,OAA6B,EAAE,EAAE;YACjE,MAAM,MAAM,GAAG,OAAO,CAAC,kBAA6C,CAAC;YACrE,OAAO,MAAM,CAAC,mBAAmB,CAAC,IAAI,CAAC,aAAuB,CAAC,CAAC;QAClE,CAAC;QACD,UAAU,EAAE,CAAC,IAAmB,EAAE,EAAE,CAAC,yBAAyB,IAAI,EAAE,aAAa,EAAE;KACpF;CACF,CAAC"}
|
|
@@ -7,5 +7,5 @@ export declare const DOC_TOOL_NAMES_SET: Set<"get_sfcc_class_info" | "search_sfc
|
|
|
7
7
|
* Configuration for SFCC documentation tools
|
|
8
8
|
* Maps each tool to its validation, execution, and messaging logic
|
|
9
9
|
*/
|
|
10
|
-
export declare const DOCS_TOOL_CONFIG: Record<DocToolName, GenericToolSpec<ToolArguments,
|
|
10
|
+
export declare const DOCS_TOOL_CONFIG: Record<DocToolName, GenericToolSpec<ToolArguments, unknown>>;
|
|
11
11
|
//# sourceMappingURL=docs-tool-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-tool-config.d.ts","sourceRoot":"","sources":["../../src/tool-configs/docs-tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAwB,MAAM,kCAAkC,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"docs-tool-config.d.ts","sourceRoot":"","sources":["../../src/tool-configs/docs-tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAwB,MAAM,kCAAkC,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAGjE,eAAO,MAAM,cAAc,qIAMjB,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,cAAc,CAAC,MAAM,CAAC,CAAC;AACxD,eAAO,MAAM,kBAAkB,mIAAuC,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,WAAW,EAAE,eAAe,CAAC,aAAa,EAAE,OAAO,CAAC,CAsEzF,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ValidationHelpers, CommonValidations } from '../core/handlers/validation-helpers.js';
|
|
2
1
|
export const DOC_TOOL_NAMES = [
|
|
3
2
|
'get_sfcc_class_info',
|
|
4
3
|
'search_sfcc_classes',
|
|
@@ -23,9 +22,6 @@ export const DOCS_TOOL_CONFIG = {
|
|
|
23
22
|
includeInheritance: args.includeInheritance ?? true,
|
|
24
23
|
search: args.search ?? undefined,
|
|
25
24
|
}),
|
|
26
|
-
validate: (args, toolName) => {
|
|
27
|
-
ValidationHelpers.validateArguments(args, CommonValidations.requiredString('className'), toolName);
|
|
28
|
-
},
|
|
29
25
|
exec: async (args, context) => {
|
|
30
26
|
const client = context.docsClient;
|
|
31
27
|
const result = await client.getClassDetailsExpanded(args.className, args.expand, {
|
|
@@ -44,9 +40,6 @@ export const DOCS_TOOL_CONFIG = {
|
|
|
44
40
|
logMessage: (args) => `Class info ${args.className} expand=${args.expand ?? false} ${args.search ? `search="${args.search}"` : ''}`,
|
|
45
41
|
},
|
|
46
42
|
search_sfcc_classes: {
|
|
47
|
-
validate: (args, toolName) => {
|
|
48
|
-
ValidationHelpers.validateArguments(args, CommonValidations.requiredString('query'), toolName);
|
|
49
|
-
},
|
|
50
43
|
exec: async (args, context) => {
|
|
51
44
|
const client = context.docsClient;
|
|
52
45
|
return client.searchClasses(args.query);
|
|
@@ -54,9 +47,6 @@ export const DOCS_TOOL_CONFIG = {
|
|
|
54
47
|
logMessage: (args) => `Search classes ${args.query}`,
|
|
55
48
|
},
|
|
56
49
|
search_sfcc_methods: {
|
|
57
|
-
validate: (args, toolName) => {
|
|
58
|
-
ValidationHelpers.validateArguments(args, CommonValidations.requiredString('methodName'), toolName);
|
|
59
|
-
},
|
|
60
50
|
exec: async (args, context) => {
|
|
61
51
|
const client = context.docsClient;
|
|
62
52
|
return client.searchMethods(args.methodName);
|
|
@@ -71,9 +61,6 @@ export const DOCS_TOOL_CONFIG = {
|
|
|
71
61
|
logMessage: (_args) => 'List classes',
|
|
72
62
|
},
|
|
73
63
|
get_sfcc_class_documentation: {
|
|
74
|
-
validate: (args, toolName) => {
|
|
75
|
-
ValidationHelpers.validateArguments(args, CommonValidations.requiredString('className'), toolName);
|
|
76
|
-
},
|
|
77
64
|
exec: async (args, context) => {
|
|
78
65
|
const client = context.docsClient;
|
|
79
66
|
const result = await client.getClassDocumentation(args.className);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs-tool-config.js","sourceRoot":"","sources":["../../src/tool-configs/docs-tool-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"docs-tool-config.js","sourceRoot":"","sources":["../../src/tool-configs/docs-tool-config.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,qBAAqB;IACrB,qBAAqB;IACrB,qBAAqB;IACrB,mBAAmB;IACnB,8BAA8B;CACtB,CAAC;AAGX,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAc,cAAc,CAAC,CAAC;AAEvE;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAiE;IAC5F,mBAAmB,EAAE;QAC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CAAC,CAAC;YAC3E,CAAC;YACD,OAAO,MAAM,CAAC;QAChB,CAAC;QACD,UAAU,EAAE,CAAC,IAAmB,EAAE,EAAE,CAAC,WAAW,IAAI,CAAC,SAAS,EAAE;KACjE;CACF,CAAC"}
|
|
@@ -7,5 +7,5 @@ export declare const ISML_TOOL_NAMES_SET: Set<"list_isml_elements" | "get_isml_e
|
|
|
7
7
|
* Configuration for ISML documentation tools
|
|
8
8
|
* Maps each tool to its validation, execution, and messaging logic
|
|
9
9
|
*/
|
|
10
|
-
export declare const ISML_TOOL_CONFIG: Record<ISMLToolName, GenericToolSpec<ToolArguments,
|
|
10
|
+
export declare const ISML_TOOL_CONFIG: Record<ISMLToolName, GenericToolSpec<ToolArguments, unknown>>;
|
|
11
11
|
//# sourceMappingURL=isml-tool-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isml-tool-config.d.ts","sourceRoot":"","sources":["../../src/tool-configs/isml-tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAwB,MAAM,kCAAkC,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"isml-tool-config.d.ts","sourceRoot":"","sources":["../../src/tool-configs/isml-tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAwB,MAAM,kCAAkC,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAGjE,eAAO,MAAM,eAAe,qIAMlB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AAC1D,eAAO,MAAM,mBAAmB,mIAAyC,CAAC;AAE1E;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,aAAa,EAAE,OAAO,CAAC,CAyD1F,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ValidationHelpers, CommonValidations } from '../core/handlers/validation-helpers.js';
|
|
2
1
|
export const ISML_TOOL_NAMES = [
|
|
3
2
|
'list_isml_elements',
|
|
4
3
|
'get_isml_element',
|
|
@@ -26,9 +25,6 @@ export const ISML_TOOL_CONFIG = {
|
|
|
26
25
|
includeSections: args.includeSections ?? true,
|
|
27
26
|
includeAttributes: args.includeAttributes ?? true,
|
|
28
27
|
}),
|
|
29
|
-
validate: (args, toolName) => {
|
|
30
|
-
ValidationHelpers.validateArguments(args, CommonValidations.requiredString('elementName'), toolName);
|
|
31
|
-
},
|
|
32
28
|
exec: async (args, context) => {
|
|
33
29
|
const client = context.ismlClient;
|
|
34
30
|
const result = await client.getISMLElement(args.elementName, {
|
|
@@ -44,9 +40,6 @@ export const ISML_TOOL_CONFIG = {
|
|
|
44
40
|
logMessage: (args) => `ISML element ${args.elementName}`,
|
|
45
41
|
},
|
|
46
42
|
search_isml_elements: {
|
|
47
|
-
validate: (args, toolName) => {
|
|
48
|
-
ValidationHelpers.validateArguments(args, CommonValidations.requiredString('query'), toolName);
|
|
49
|
-
},
|
|
50
43
|
exec: async (args, context) => {
|
|
51
44
|
const client = context.ismlClient;
|
|
52
45
|
return client.searchISMLElements(args.query, {
|
|
@@ -57,9 +50,6 @@ export const ISML_TOOL_CONFIG = {
|
|
|
57
50
|
logMessage: (args) => `Search ISML ${args.query}`,
|
|
58
51
|
},
|
|
59
52
|
get_isml_elements_by_category: {
|
|
60
|
-
validate: (args, toolName) => {
|
|
61
|
-
ValidationHelpers.validateArguments(args, CommonValidations.requiredString('category'), toolName);
|
|
62
|
-
},
|
|
63
53
|
exec: async (args, context) => {
|
|
64
54
|
const client = context.ismlClient;
|
|
65
55
|
return client.getElementsByCategory(args.category);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isml-tool-config.js","sourceRoot":"","sources":["../../src/tool-configs/isml-tool-config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isml-tool-config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C,WAAW,aAAa,CAAC,CAAC;YAClE,CAAC;YACD,OAAO,MAAM,CAAC;QAChB,CAAC;QACD,UAAU,EAAE,CAAC,IAAmB,EAAE,EAAE,CAAC,gBAAgB,IAAI,CAAC,WAAW,EAAE;KACxE;IAED,oBAAoB,EAAE;QACpB,IAAI,EAAE,KAAK,EAAE,IAAmB,EAAE,OAA6B,EAAE,EAAE;YACjE,MAAM,MAAM,GAAG,OAAO,CAAC,UAAwB,CAAC;YAChD,OAAO,MAAM,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAe,EAAE;gBACrD,QAAQ,EAAE,IAAI,CAAC,QAA8B;gBAC7C,KAAK,EAAE,IAAI,CAAC,KAA2B;aACxC,CAAC,CAAC;QACL,CAAC;QACD,UAAU,EAAE,CAAC,IAAmB,EAAE,EAAE,CAAC,eAAe,IAAI,CAAC,KAAK,EAAE;KACjE;IAED,6BAA6B,EAAE;QAC7B,IAAI,EAAE,KAAK,EAAE,IAAmB,EAAE,OAA6B,EAAE,EAAE;YACjE,MAAM,MAAM,GAAG,OAAO,CAAC,UAAwB,CAAC;YAChD,OAAO,MAAM,CAAC,qBAAqB,CAAC,IAAI,CAAC,QAAkB,CAAC,CAAC;QAC/D,CAAC;QACD,UAAU,EAAE,CAAC,IAAmB,EAAE,EAAE,CAAC,6BAA6B,IAAI,CAAC,QAAQ,EAAE;KAClF;IAED,mBAAmB,EAAE;QACnB,IAAI,EAAE,KAAK,EAAE,KAAoB,EAAE,OAA6B,EAAE,EAAE;YAClE,MAAM,MAAM,GAAG,OAAO,CAAC,UAAwB,CAAC;YAChD,OAAO,MAAM,CAAC,sBAAsB,EAAE,CAAC;QACzC,CAAC;QACD,UAAU,EAAE,CAAC,KAAoB,EAAE,EAAE,CAAC,iBAAiB;KACxD;CACF,CAAC"}
|
|
@@ -4,5 +4,5 @@ import { JobLogToolName } from '../utils/log-tool-constants.js';
|
|
|
4
4
|
* Configuration for job log tools
|
|
5
5
|
* Maps each tool to its validation, execution, and messaging logic
|
|
6
6
|
*/
|
|
7
|
-
export declare const JOB_LOG_TOOL_CONFIG: Record<JobLogToolName, GenericToolSpec<ToolArguments,
|
|
7
|
+
export declare const JOB_LOG_TOOL_CONFIG: Record<JobLogToolName, GenericToolSpec<ToolArguments, unknown>>;
|
|
8
8
|
//# sourceMappingURL=job-log-tool-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-log-tool-config.d.ts","sourceRoot":"","sources":["../../src/tool-configs/job-log-tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAwB,aAAa,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"job-log-tool-config.d.ts","sourceRoot":"","sources":["../../src/tool-configs/job-log-tool-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAwB,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIxG,OAAO,EAAE,cAAc,EAAY,MAAM,gCAAgC,CAAC;AAI1E;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,cAAc,EAAE,eAAe,CAAC,aAAa,EAAE,OAAO,CAAC,CA6E/F,CAAC"}
|