diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 00000000..b6724718 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,105 @@ +# Salesforce Open Source Community Code of Conduct + +## About the Code of Conduct + +Equality is a core value at Salesforce. We believe a diverse and inclusive +community fosters innovation and creativity, and are committed to building a +culture where everyone feels included. + +Salesforce open-source projects are committed to providing a friendly, safe, and +welcoming environment for all, regardless of gender identity and expression, +sexual orientation, disability, physical appearance, body size, ethnicity, nationality, +race, age, religion, level of experience, education, socioeconomic status, or +other similar personal characteristics. + +The goal of this code of conduct is to specify a baseline standard of behavior so +that people with different social values and communication styles can work +together effectively, productively, and respectfully in our open source community. +It also establishes a mechanism for reporting issues and resolving conflicts. + +All questions and reports of abusive, harassing, or otherwise unacceptable behavior +in a Salesforce open-source project may be reported by contacting the Salesforce +Open Source Conduct Committee at ossconduct@salesforce.com. + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of gender +identity and expression, sexual orientation, disability, physical appearance, +body size, ethnicity, nationality, race, age, religion, level of experience, education, +socioeconomic status, or other similar personal characteristics. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy toward other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or +advances +* Personal attacks, insulting/derogatory comments, or trolling +* Public or private harassment +* Publishing, or threatening to publish, others' private information—such as +a physical or electronic address—without explicit permission +* Other conduct which could reasonably be considered inappropriate in a +professional setting +* Advocating for or encouraging any of the above behaviors + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned with this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project email +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the Salesforce Open Source Conduct Committee +at ossconduct@salesforce.com. All complaints will be reviewed and investigated +and will result in a response that is deemed necessary and appropriate to the +circumstances. The committee is obligated to maintain confidentiality with +regard to the reporter of an incident. Further details of specific enforcement +policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership and the Salesforce Open Source Conduct +Committee. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][contributor-covenant-home], +version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html. +It includes adaptions and additions from [Go Community Code of Conduct][golang-coc], +[CNCF Code of Conduct][cncf-coc], and [Microsoft Open Source Code of Conduct][microsoft-coc]. + +This Code of Conduct is licensed under the [Creative Commons Attribution 3.0 License][cc-by-3-us]. + +[contributor-covenant-home]: https://www.contributor-covenant.org (https://www.contributor-covenant.org/) +[golang-coc]: https://golang.org/conduct +[cncf-coc]: https://github.com/cncf/foundation/blob/master/code-of-conduct.md +[microsoft-coc]: https://opensource.microsoft.com/codeofconduct/ +[cc-by-3-us]: https://creativecommons.org/licenses/by/3.0/us/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..8d0d5d78 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,88 @@ + +# Contributing Guide For B2C Developer Tooling, B2C-CLI, B2C DX MCP, B2C Tooling SDK + +This page lists the operational governance model of this project, as well as the recommendations and requirements for how to best contribute to B2C Developer Tooling. We strive to obey these as best as possible. As always, thanks for contributing – we hope these guidelines make it easier and shed some light on our approach and processes. + +# Governance Model + +## Salesforce Sponsored + +The intent and goal of open sourcing this project is to increase the contributor and user base. However, only Salesforce employees will be given `admin` rights and will be the final arbitrars of what contributions are accepted or not. + +# Getting started + +Please join the community on [Salesforce Commerce Cloud Unofficial slack](https://unofficialsfcc.com/). + +# Issues, requests & ideas + +Use GitHub Issues page to submit issues, enhancement requests and discuss ideas. + +### Bug Reports and Fixes +- If you find a bug, please search for it in the [Issues](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/issues), and if it isn't already tracked, + [create a new issue](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/issues/new). Fill out the "Bug Report" section of the issue template. Even if an Issue is closed, feel free to comment and add details, it will still + be reviewed. +- Issues that have already been identified as a bug (note: able to reproduce) will be labelled `bug`. +- If you'd like to submit a fix for a bug, [send a Pull Request](#creating_a_pull_request) and mention the Issue number. + - Include tests that isolate the bug and verifies that it was fixed. + +### New Features +- If you'd like to add new functionality to this project, describe the problem you want to solve in a [new Issue](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/issues/new). +- Issues that have been identified as a feature request will be labelled `enhancement`. +- If you'd like to implement the new feature, please wait for feedback from the project + maintainers before spending too much time writing the code. In some cases, `enhancement`s may + not align well with the project objectives at the time. + +### Tests, Documentation, Miscellaneous +- If you'd like to improve the tests, you want to make the documentation clearer, you have an + alternative implementation of something that may have advantages over the way its currently + done, or you have any other change, we would be happy to hear about it! + - If its a trivial change, go ahead and [send a Pull Request](#creating_a_pull_request) with the changes you have in mind. + - If not, [open an Issue](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/issues/new) to discuss the idea first. + +If you're new to our project and looking for some way to make your first contribution, look for +Issues labelled `good first contribution`. + +# Contribution Checklist + +- [x] Clean, simple, well styled code +- [x] Commits should be atomic and messages must be descriptive. Related issues should be mentioned by Issue number. +- [x] Comments + - Module-level & function-level comments. + - Comments on complex blocks of code or algorithms (include references to sources). +- [x] Tests + - The test suite, if provided, must be complete and pass + - Increase code coverage, not versa. + - Use any of our testkits that contains a bunch of testing facilities you would need. For example: `import com.salesforce.op.test._` and borrow inspiration from existing tests. +- [x] Dependencies + - Minimize number of dependencies. + - Prefer Apache 2.0, BSD3, MIT, ISC and MPL licenses. +- [x] Reviews + - Changes must be approved via peer code review + +# Creating a Pull Request + +1. **Ensure the bug/feature was not already reported** by searching on GitHub under Issues. If none exists, create a new issue so that other contributors can keep track of what you are trying to add/fix and offer suggestions (or let you know if there is already an effort in progress). +3. **Clone** the forked repo to your machine. +4. **Create** a new branch to contain your work (e.g. `git br fix-issue-11`) +4. **Commit** changes to your own branch. +5. **Push** your work back up to your fork. (e.g. `git push fix-issue-11`) +6. **Submit** a Pull Request against the `main` branch and refer to the issue(s) you are fixing. Try not to pollute your pull request with unintended changes. Keep it simple and small. +7. **Sign** the Salesforce CLA (you will be prompted to do so when submitting the Pull Request) + +> **NOTE**: Be sure to [sync your fork](https://help.github.com/articles/syncing-a-fork/) before making a pull request. + +# Contributor License Agreement ("CLA") +In order to accept your pull request, we need you to submit a CLA. You only need +to do this once to work on any of Salesforce's open source projects. + +Complete your CLA here: + +# Issues +We use GitHub issues to track public bugs. Please ensure your description is +clear and has sufficient instructions to be able to reproduce the issue. + +# Code of Conduct +Please follow our [Code of Conduct](CODE_OF_CONDUCT.md). + +# License +By contributing your code, you agree to license your contribution under the terms of our project [LICENSE](LICENSE.txt) and to sign the [Salesforce CLA](https://cla.salesforce.com/sign-cla) diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 00000000..82490257 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,7 @@ +## Security + +Please report any security issue to [security@salesforce.com](mailto:security@salesforce.com) +as soon as it is discovered. This library limits its runtime dependencies in +order to reduce the total cost of ownership as much as can be, but all consumers +should remain vigilant and have their security stakeholders review all third-party +products (3PP) like this one and their dependencies. diff --git a/easy-setup-step-by-step.sh b/easy-setup-step-by-step.sh new file mode 100644 index 00000000..17db539e --- /dev/null +++ b/easy-setup-step-by-step.sh @@ -0,0 +1,39 @@ +#!/usr/bin/env bash + +export SFCC_MRT_PROJECT=cli +export REALM="zzpq" +export SFCC_CLIENT_ID="a0a4deb0-5e03-477b-bfdc-e42ccfae6161" + +b2c ods create -r $REALM --wait --ttl 0 + +# create mrt env called chuck in the cli project +b2c mrt env create chuck --name chuck \ + --allow-cookies \ + --proxy api=kv7kzm78.api.commercecloud.salesforce.com \ + --proxy einstein=api.cquotient.com + +# construct redirect-uri from ssr_external_hostname above and don't use localhost:3000 +b2c slas client create \ + --channels MarketStreet \ + --tenant-id zzpq_014 \ + --short-code kv7kzm78 \ + --redirect-uri https://myproject-chuck.sfdc-8tgtt5-ecom1.exp-delivery.com/callback,http://localhost:3000/callback \ + --default-scopes + +# get clientId and COMMERCE_API_SLAS_SECRET from the output of the previous command and callback from the redirect-uri above +b2c mrt env var set -e chuck \ + PUBLIC__app__commerce__api__clientId=5810be72-3b2f-49bc-8ca1-eb88119de2fa \ + PUBLIC__app__commerce__api__organizationId=f_ecom_zzpq_014 \ + PUBLIC__app__commerce__api__siteId=RefArch \ + PUBLIC__app__commerce__api__shortCode= \ + PUBLIC__app__commerce__api__callback=https://myproject-chuck.sfdc-8tgtt5-ecom1.exp-delivery.com/callback \ + PUBLIC__app__commerce__api__privateKeyEnabled=true \ + COMMERCE_API_SLAS_SECRET=sk_kasdjlkjsalkjasd + +# import market street data from storefront-datasets repo +b2c job import --server zzpq-014.dx.commercecloud.salesforce.com ~/code/storefront-datasets/demo_data_marketstreet + +b2c code deploy +b2c mrt push -e headertest -p cli -b ~/code/SFCC-Odyssey/packages/template-retail-rsc-app/build --ssr-only='ssr.js,ssr.mjs,chunk.mjs,server/**/*' + + diff --git a/easy-setup.sh b/easy-setup.sh new file mode 100755 index 00000000..0a2b88c1 --- /dev/null +++ b/easy-setup.sh @@ -0,0 +1,85 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Configuration - modify these values for your setup +ENV_SLUG="demo15" +ENV_NAME="demo15" +SITE_ID="RefArch" +TENANT_ID="zzpq_013" +ORGANIZATION_ID="f_ecom_zzsa_009" +SHORT_CODE="kv7kzm78" +BUILD_PATH="${BUILD_PATH:-$HOME/code/SFCC-Odyssey/packages/template-retail-rsc-app/build}" + +export SFCC_MRT_PROJECT="${SFCC_MRT_PROJECT:-cli}" + +echo "=== Step 1: Creating MRT environment ===" +ENV_JSON=$(b2c mrt env create "$ENV_SLUG" --name "$ENV_NAME" --json) +echo "Environment created." + +# Extract the external hostname for the callback URL +SSR_EXTERNAL_HOSTNAME=$(echo "$ENV_JSON" | jq -r '.ssr_external_hostname // empty') +if [[ -z "$SSR_EXTERNAL_HOSTNAME" ]]; then + # Fall back to hostname if external hostname not set + SSR_EXTERNAL_HOSTNAME=$(echo "$ENV_JSON" | jq -r '.hostname // empty') +fi + +if [[ -z "$SSR_EXTERNAL_HOSTNAME" ]]; then + echo "Warning: Could not determine external hostname from environment. Using localhost." + CALLBACK_URL="http://localhost:3000/callback" +else + CALLBACK_URL="https://${SSR_EXTERNAL_HOSTNAME}/callback" +fi +echo "Callback URL: $CALLBACK_URL" + +echo "" +echo "=== Step 2: Creating SLAS client ===" +SLAS_JSON=$(b2c slas client create --channels "$SITE_ID" \ + --redirect-uri "$CALLBACK_URL" \ + --default-scopes \ + --tenant-id "$TENANT_ID" \ + --json) +echo "SLAS client created." + +# Extract client ID and secret from SLAS response +CLIENT_ID=$(echo "$SLAS_JSON" | jq -r '.clientId') +CLIENT_SECRET=$(echo "$SLAS_JSON" | jq -r '.secret // empty') + +if [[ -z "$CLIENT_ID" ]]; then + echo "Error: Failed to get client ID from SLAS response" + exit 1 +fi + +echo "Client ID: $CLIENT_ID" +if [[ -n "$CLIENT_SECRET" ]]; then + echo "Client Secret: $CLIENT_SECRET (save this - it won't be shown again)" +fi + +echo "" +echo "=== Step 3: Setting environment variables ===" +b2c mrt env var set -e "$ENV_SLUG" \ + "PUBLIC__app__commerce__api__clientId=$CLIENT_ID" \ + "PUBLIC__app__commerce__api__organizationId=$ORGANIZATION_ID" \ + "PUBLIC__app__commerce__api__siteId=$SITE_ID" \ + "PUBLIC__app__commerce__api__shortCode=$SHORT_CODE" \ + "PUBLIC__app__commerce__api__proxy=/mobify/proxy/api" \ + "PUBLIC__app__commerce__api__callback=$CALLBACK_URL" \ + "PUBLIC__app__commerce__api__privateKeyEnabled=true" \ + ${CLIENT_SECRET:+"COMMERCE_API_SLAS_SECRET=$CLIENT_SECRET"} + +echo "" +echo "=== Step 4: Deploying code ===" +b2c code deploy + +echo "" +echo "=== Step 5: Importing job data ===" +b2c job import data/urls + +echo "" +echo "=== Step 6: Pushing to MRT ===" +b2c mrt push -e "$ENV_SLUG" -b "$BUILD_PATH" + +echo "" +echo "=== Setup Complete ===" +echo "Environment: $ENV_SLUG" +echo "Client ID: $CLIENT_ID" +echo "URL: https://${SSR_EXTERNAL_HOSTNAME:-localhost:3000}" diff --git a/license.txt b/license.txt new file mode 100644 index 00000000..3ec50bb7 --- /dev/null +++ b/license.txt @@ -0,0 +1,207 @@ +Apache License Version 2.0 + +Copyright (c) 2024 Salesforce, Inc. +All rights reserved. + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + diff --git a/packages/b2c-cli/bin/dev.js b/packages/b2c-cli/bin/dev.js index b6a1f1e8..d0bd8588 100755 --- a/packages/b2c-cli/bin/dev.js +++ b/packages/b2c-cli/bin/dev.js @@ -1,5 +1,9 @@ #!/usr/bin/env -S node --conditions development --import tsx - +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {execute} from '@oclif/core'; await execute({development: true, dir: import.meta.url}); diff --git a/packages/b2c-cli/bin/run.js b/packages/b2c-cli/bin/run.js index 32fa00d5..38c3007a 100755 --- a/packages/b2c-cli/bin/run.js +++ b/packages/b2c-cli/bin/run.js @@ -1,5 +1,9 @@ #!/usr/bin/env node - +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {execute} from '@oclif/core'; await execute({dir: import.meta.url}); diff --git a/packages/b2c-cli/eslint.config.mjs b/packages/b2c-cli/eslint.config.mjs index 11703c9c..6381da13 100644 --- a/packages/b2c-cli/eslint.config.mjs +++ b/packages/b2c-cli/eslint.config.mjs @@ -1,6 +1,12 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {includeIgnoreFile} from '@eslint/compat'; import oclif from 'eslint-config-oclif'; import prettierPlugin from 'eslint-plugin-prettier/recommended'; +import headerPlugin from '@tony.ganchev/eslint-plugin-header'; import path from 'node:path'; import {fileURLToPath} from 'node:url'; @@ -8,10 +14,27 @@ const gitignorePath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), export default [ includeIgnoreFile(gitignorePath), + { + ignores: ['test/functional/fixtures/**/*.js'], + }, ...oclif, prettierPlugin, { + plugins: { + header: headerPlugin, + }, rules: { + 'header/header': [ + 'error', + 'block', + [ + '', + ' * Copyright (c) 2025, Salesforce, Inc.', + ' * SPDX-License-Identifier: Apache-2', + ' * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0', + ' ', + ], + ], // Disable perfectionist rules - we use prettier for formatting 'perfectionist/sort-imports': 'off', 'perfectionist/sort-objects': 'off', diff --git a/packages/b2c-cli/package.json b/packages/b2c-cli/package.json index 30bec83b..41e572ee 100644 --- a/packages/b2c-cli/package.json +++ b/packages/b2c-cli/package.json @@ -9,10 +9,10 @@ "bugs": "https://github.com/SalesforceCommerceCloud/b2c-cli/issues", "dependencies": { "@oclif/core": "^4", + "@oclif/plugin-autocomplete": "^3", "@oclif/plugin-help": "^6", - "@oclif/plugin-plugins": "^5", "@oclif/plugin-not-found": "^3", - "@oclif/plugin-autocomplete": "^3", + "@oclif/plugin-plugins": "^5", "@oclif/plugin-version": "^2", "@salesforce/b2c-tooling-sdk": "workspace:*", "cliui": "^9.0.1" @@ -22,6 +22,7 @@ "@oclif/prettier-config": "^0.2.1", "@oclif/test": "^4", "@salesforce/dev-config": "^4.3.2", + "@tony.ganchev/eslint-plugin-header": "^3.1.11", "@types/chai": "^4", "@types/mocha": "^10", "@types/node": "^18", diff --git a/packages/b2c-cli/src/commands/_test/index.ts b/packages/b2c-cli/src/commands/_test/index.ts index 10e3112f..b4088c79 100644 --- a/packages/b2c-cli/src/commands/_test/index.ts +++ b/packages/b2c-cli/src/commands/_test/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {BaseCommand} from '@salesforce/b2c-tooling-sdk/cli'; export default class Test extends BaseCommand { diff --git a/packages/b2c-cli/src/commands/auth/token.ts b/packages/b2c-cli/src/commands/auth/token.ts index 959e23f2..31533728 100644 --- a/packages/b2c-cli/src/commands/auth/token.ts +++ b/packages/b2c-cli/src/commands/auth/token.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {ux} from '@oclif/core'; import {OAuthCommand} from '@salesforce/b2c-tooling-sdk/cli'; import type {AccessTokenResponse} from '@salesforce/b2c-tooling-sdk/auth'; diff --git a/packages/b2c-cli/src/commands/code/activate.ts b/packages/b2c-cli/src/commands/code/activate.ts index de3f2d24..af4197cb 100644 --- a/packages/b2c-cli/src/commands/code/activate.ts +++ b/packages/b2c-cli/src/commands/code/activate.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Args, Flags} from '@oclif/core'; import {InstanceCommand} from '@salesforce/b2c-tooling-sdk/cli'; import {activateCodeVersion, reloadCodeVersion} from '@salesforce/b2c-tooling-sdk/operations/code'; diff --git a/packages/b2c-cli/src/commands/code/delete.ts b/packages/b2c-cli/src/commands/code/delete.ts index fd80ebdb..4bb0888a 100644 --- a/packages/b2c-cli/src/commands/code/delete.ts +++ b/packages/b2c-cli/src/commands/code/delete.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import * as readline from 'node:readline'; import {Args, Flags} from '@oclif/core'; import {InstanceCommand} from '@salesforce/b2c-tooling-sdk/cli'; diff --git a/packages/b2c-cli/src/commands/code/deploy.ts b/packages/b2c-cli/src/commands/code/deploy.ts index 4d464261..af8b880f 100644 --- a/packages/b2c-cli/src/commands/code/deploy.ts +++ b/packages/b2c-cli/src/commands/code/deploy.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Flags} from '@oclif/core'; import { findAndDeployCartridges, diff --git a/packages/b2c-cli/src/commands/code/list.ts b/packages/b2c-cli/src/commands/code/list.ts index 6e59e616..b0d9a48f 100644 --- a/packages/b2c-cli/src/commands/code/list.ts +++ b/packages/b2c-cli/src/commands/code/list.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {ux} from '@oclif/core'; import {InstanceCommand, createTable, type ColumnDef} from '@salesforce/b2c-tooling-sdk/cli'; import {listCodeVersions, type CodeVersion, type CodeVersionResult} from '@salesforce/b2c-tooling-sdk/operations/code'; diff --git a/packages/b2c-cli/src/commands/code/watch.ts b/packages/b2c-cli/src/commands/code/watch.ts index b414332c..03f763d4 100644 --- a/packages/b2c-cli/src/commands/code/watch.ts +++ b/packages/b2c-cli/src/commands/code/watch.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {watchCartridges} from '@salesforce/b2c-tooling-sdk/operations/code'; import {CartridgeCommand} from '@salesforce/b2c-tooling-sdk/cli'; import {t} from '../../i18n/index.js'; diff --git a/packages/b2c-cli/src/commands/job/export.ts b/packages/b2c-cli/src/commands/job/export.ts index 53d0571b..db3d9546 100644 --- a/packages/b2c-cli/src/commands/job/export.ts +++ b/packages/b2c-cli/src/commands/job/export.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Flags} from '@oclif/core'; import {JobCommand} from '@salesforce/b2c-tooling-sdk/cli'; import { diff --git a/packages/b2c-cli/src/commands/job/import.ts b/packages/b2c-cli/src/commands/job/import.ts index cc79d381..00880157 100644 --- a/packages/b2c-cli/src/commands/job/import.ts +++ b/packages/b2c-cli/src/commands/job/import.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Args, Flags} from '@oclif/core'; import {JobCommand} from '@salesforce/b2c-tooling-sdk/cli'; import { diff --git a/packages/b2c-cli/src/commands/job/run.ts b/packages/b2c-cli/src/commands/job/run.ts index f96af01d..a1b337c4 100644 --- a/packages/b2c-cli/src/commands/job/run.ts +++ b/packages/b2c-cli/src/commands/job/run.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Args, Flags} from '@oclif/core'; import {JobCommand} from '@salesforce/b2c-tooling-sdk/cli'; import { diff --git a/packages/b2c-cli/src/commands/job/search.ts b/packages/b2c-cli/src/commands/job/search.ts index f67ca7dc..e371774c 100644 --- a/packages/b2c-cli/src/commands/job/search.ts +++ b/packages/b2c-cli/src/commands/job/search.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Flags, ux} from '@oclif/core'; import {InstanceCommand, createTable, type ColumnDef} from '@salesforce/b2c-tooling-sdk/cli'; import { diff --git a/packages/b2c-cli/src/commands/job/wait.ts b/packages/b2c-cli/src/commands/job/wait.ts index 848504b0..01b224b7 100644 --- a/packages/b2c-cli/src/commands/job/wait.ts +++ b/packages/b2c-cli/src/commands/job/wait.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Args, Flags} from '@oclif/core'; import {JobCommand} from '@salesforce/b2c-tooling-sdk/cli'; import {waitForJob, JobExecutionError, type JobExecution} from '@salesforce/b2c-tooling-sdk/operations/jobs'; diff --git a/packages/b2c-cli/src/commands/mrt/env/create.ts b/packages/b2c-cli/src/commands/mrt/env/create.ts index 95fb35a9..46f47386 100644 --- a/packages/b2c-cli/src/commands/mrt/env/create.ts +++ b/packages/b2c-cli/src/commands/mrt/env/create.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Args, Flags, ux} from '@oclif/core'; import cliui from 'cliui'; import {MrtCommand} from '@salesforce/b2c-tooling-sdk/cli'; diff --git a/packages/b2c-cli/src/commands/mrt/env/delete.ts b/packages/b2c-cli/src/commands/mrt/env/delete.ts index 65bb4fa5..ece18f8d 100644 --- a/packages/b2c-cli/src/commands/mrt/env/delete.ts +++ b/packages/b2c-cli/src/commands/mrt/env/delete.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import * as readline from 'node:readline'; import {Args, Flags} from '@oclif/core'; import {MrtCommand} from '@salesforce/b2c-tooling-sdk/cli'; diff --git a/packages/b2c-cli/src/commands/mrt/env/var/delete.ts b/packages/b2c-cli/src/commands/mrt/env/var/delete.ts index 229f37b6..62d61417 100644 --- a/packages/b2c-cli/src/commands/mrt/env/var/delete.ts +++ b/packages/b2c-cli/src/commands/mrt/env/var/delete.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Args} from '@oclif/core'; import {MrtCommand} from '@salesforce/b2c-tooling-sdk/cli'; import {deleteEnvVar} from '@salesforce/b2c-tooling-sdk/operations/mrt'; diff --git a/packages/b2c-cli/src/commands/mrt/env/var/list.ts b/packages/b2c-cli/src/commands/mrt/env/var/list.ts index fdc51b68..1b3d2bfc 100644 --- a/packages/b2c-cli/src/commands/mrt/env/var/list.ts +++ b/packages/b2c-cli/src/commands/mrt/env/var/list.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {MrtCommand, createTable, type ColumnDef} from '@salesforce/b2c-tooling-sdk/cli'; import { listEnvVars, diff --git a/packages/b2c-cli/src/commands/mrt/env/var/set.ts b/packages/b2c-cli/src/commands/mrt/env/var/set.ts index 4755e738..537d4e1e 100644 --- a/packages/b2c-cli/src/commands/mrt/env/var/set.ts +++ b/packages/b2c-cli/src/commands/mrt/env/var/set.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Args} from '@oclif/core'; import {MrtCommand} from '@salesforce/b2c-tooling-sdk/cli'; import {setEnvVars} from '@salesforce/b2c-tooling-sdk/operations/mrt'; diff --git a/packages/b2c-cli/src/commands/mrt/push.ts b/packages/b2c-cli/src/commands/mrt/push.ts index 3618cdce..5153cd5b 100644 --- a/packages/b2c-cli/src/commands/mrt/push.ts +++ b/packages/b2c-cli/src/commands/mrt/push.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Flags} from '@oclif/core'; import {MrtCommand} from '@salesforce/b2c-tooling-sdk/cli'; import {pushBundle, DEFAULT_SSR_PARAMETERS, type PushResult} from '@salesforce/b2c-tooling-sdk/operations/mrt'; diff --git a/packages/b2c-cli/src/commands/ods/create.ts b/packages/b2c-cli/src/commands/ods/create.ts index df368856..31fb3222 100644 --- a/packages/b2c-cli/src/commands/ods/create.ts +++ b/packages/b2c-cli/src/commands/ods/create.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Flags, ux} from '@oclif/core'; import cliui from 'cliui'; import {OdsCommand} from '@salesforce/b2c-tooling-sdk/cli'; diff --git a/packages/b2c-cli/src/commands/ods/delete.ts b/packages/b2c-cli/src/commands/ods/delete.ts index 6dc18714..091e1e9a 100644 --- a/packages/b2c-cli/src/commands/ods/delete.ts +++ b/packages/b2c-cli/src/commands/ods/delete.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import * as readline from 'node:readline'; import {Args, Flags} from '@oclif/core'; import {OdsCommand} from '@salesforce/b2c-tooling-sdk/cli'; diff --git a/packages/b2c-cli/src/commands/ods/get.ts b/packages/b2c-cli/src/commands/ods/get.ts index 3422a63a..dbdabe15 100644 --- a/packages/b2c-cli/src/commands/ods/get.ts +++ b/packages/b2c-cli/src/commands/ods/get.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Args, ux} from '@oclif/core'; import cliui from 'cliui'; import {OdsCommand} from '@salesforce/b2c-tooling-sdk/cli'; diff --git a/packages/b2c-cli/src/commands/ods/info.ts b/packages/b2c-cli/src/commands/ods/info.ts index cda8fc3c..49ee7ce4 100644 --- a/packages/b2c-cli/src/commands/ods/info.ts +++ b/packages/b2c-cli/src/commands/ods/info.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {ux} from '@oclif/core'; import cliui from 'cliui'; import {OdsCommand} from '@salesforce/b2c-tooling-sdk/cli'; diff --git a/packages/b2c-cli/src/commands/ods/list.ts b/packages/b2c-cli/src/commands/ods/list.ts index 7db5fdb9..d0deaa41 100644 --- a/packages/b2c-cli/src/commands/ods/list.ts +++ b/packages/b2c-cli/src/commands/ods/list.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Flags} from '@oclif/core'; import {OdsCommand, TableRenderer, type ColumnDef} from '@salesforce/b2c-tooling-sdk/cli'; import type {OdsComponents} from '@salesforce/b2c-tooling-sdk'; diff --git a/packages/b2c-cli/src/commands/ods/restart.ts b/packages/b2c-cli/src/commands/ods/restart.ts index 9e4e690c..b6667369 100644 --- a/packages/b2c-cli/src/commands/ods/restart.ts +++ b/packages/b2c-cli/src/commands/ods/restart.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Args} from '@oclif/core'; import {OdsCommand} from '@salesforce/b2c-tooling-sdk/cli'; import type {OdsComponents} from '@salesforce/b2c-tooling-sdk'; diff --git a/packages/b2c-cli/src/commands/ods/start.ts b/packages/b2c-cli/src/commands/ods/start.ts index 95aa9654..2a1aa8ae 100644 --- a/packages/b2c-cli/src/commands/ods/start.ts +++ b/packages/b2c-cli/src/commands/ods/start.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Args} from '@oclif/core'; import {OdsCommand} from '@salesforce/b2c-tooling-sdk/cli'; import type {OdsComponents} from '@salesforce/b2c-tooling-sdk'; diff --git a/packages/b2c-cli/src/commands/ods/stop.ts b/packages/b2c-cli/src/commands/ods/stop.ts index 06c24aef..3160bb05 100644 --- a/packages/b2c-cli/src/commands/ods/stop.ts +++ b/packages/b2c-cli/src/commands/ods/stop.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Args} from '@oclif/core'; import {OdsCommand} from '@salesforce/b2c-tooling-sdk/cli'; import type {OdsComponents} from '@salesforce/b2c-tooling-sdk'; diff --git a/packages/b2c-cli/src/commands/sites/list.ts b/packages/b2c-cli/src/commands/sites/list.ts index 8d0f4fc5..91d3e8eb 100644 --- a/packages/b2c-cli/src/commands/sites/list.ts +++ b/packages/b2c-cli/src/commands/sites/list.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {ux} from '@oclif/core'; import {InstanceCommand, createTable, type ColumnDef} from '@salesforce/b2c-tooling-sdk/cli'; import type {OcapiComponents} from '@salesforce/b2c-tooling-sdk'; diff --git a/packages/b2c-cli/src/commands/slas/client/create.ts b/packages/b2c-cli/src/commands/slas/client/create.ts index 30b48245..a8009078 100644 --- a/packages/b2c-cli/src/commands/slas/client/create.ts +++ b/packages/b2c-cli/src/commands/slas/client/create.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Args, Flags} from '@oclif/core'; import {randomUUID} from 'node:crypto'; import { diff --git a/packages/b2c-cli/src/commands/slas/client/delete.ts b/packages/b2c-cli/src/commands/slas/client/delete.ts index 53a4425e..f76fdf15 100644 --- a/packages/b2c-cli/src/commands/slas/client/delete.ts +++ b/packages/b2c-cli/src/commands/slas/client/delete.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Args} from '@oclif/core'; import {SlasClientCommand, formatApiError} from '../../../utils/slas/client.js'; import {t} from '../../../i18n/index.js'; diff --git a/packages/b2c-cli/src/commands/slas/client/get.ts b/packages/b2c-cli/src/commands/slas/client/get.ts index 58f363d9..1c1dec92 100644 --- a/packages/b2c-cli/src/commands/slas/client/get.ts +++ b/packages/b2c-cli/src/commands/slas/client/get.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Args} from '@oclif/core'; import { SlasClientCommand, diff --git a/packages/b2c-cli/src/commands/slas/client/list.ts b/packages/b2c-cli/src/commands/slas/client/list.ts index de5d56ff..a16b3939 100644 --- a/packages/b2c-cli/src/commands/slas/client/list.ts +++ b/packages/b2c-cli/src/commands/slas/client/list.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {createTable, type ColumnDef} from '@salesforce/b2c-tooling-sdk/cli'; import { SlasClientCommand, diff --git a/packages/b2c-cli/src/commands/slas/client/update.ts b/packages/b2c-cli/src/commands/slas/client/update.ts index 3a6f59d8..243f7d5d 100644 --- a/packages/b2c-cli/src/commands/slas/client/update.ts +++ b/packages/b2c-cli/src/commands/slas/client/update.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Args, Flags} from '@oclif/core'; import { SlasClientCommand, diff --git a/packages/b2c-cli/src/i18n/index.ts b/packages/b2c-cli/src/i18n/index.ts index ed44d8bf..dc90db51 100644 --- a/packages/b2c-cli/src/i18n/index.ts +++ b/packages/b2c-cli/src/i18n/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * i18n setup for b2c-cli. * diff --git a/packages/b2c-cli/src/i18n/locales/de.ts b/packages/b2c-cli/src/i18n/locales/de.ts index 749cf344..ff406f7c 100644 --- a/packages/b2c-cli/src/i18n/locales/de.ts +++ b/packages/b2c-cli/src/i18n/locales/de.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * DE - German translations for b2c-cli commands. */ diff --git a/packages/b2c-cli/src/i18n/locales/en.ts b/packages/b2c-cli/src/i18n/locales/en.ts index 73ca060a..10678c91 100644 --- a/packages/b2c-cli/src/i18n/locales/en.ts +++ b/packages/b2c-cli/src/i18n/locales/en.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * EN - English translations for b2c-cli commands. * diff --git a/packages/b2c-cli/src/i18n/locales/index.ts b/packages/b2c-cli/src/i18n/locales/index.ts index a12e557b..2741b846 100644 --- a/packages/b2c-cli/src/i18n/locales/index.ts +++ b/packages/b2c-cli/src/i18n/locales/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Locale resources for b2c-cli commands. * diff --git a/packages/b2c-cli/src/index.ts b/packages/b2c-cli/src/index.ts index 3eb15eb8..3d71f7d4 100644 --- a/packages/b2c-cli/src/index.ts +++ b/packages/b2c-cli/src/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ export {run} from '@oclif/core'; // Re-export CLI utilities from b2c-tooling for convenience diff --git a/packages/b2c-cli/src/types/cliui.d.ts b/packages/b2c-cli/src/types/cliui.d.ts index 7ff73fcd..4699e4de 100644 --- a/packages/b2c-cli/src/types/cliui.d.ts +++ b/packages/b2c-cli/src/types/cliui.d.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ declare module 'cliui' { interface Column { text: string; diff --git a/packages/b2c-cli/src/utils/slas/client.ts b/packages/b2c-cli/src/utils/slas/client.ts index efb8ce99..15c0f0e8 100644 --- a/packages/b2c-cli/src/utils/slas/client.ts +++ b/packages/b2c-cli/src/utils/slas/client.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Command, Flags, ux} from '@oclif/core'; import cliui from 'cliui'; import {OAuthCommand} from '@salesforce/b2c-tooling-sdk/cli'; diff --git a/packages/b2c-cli/test/commands/_test/index.test.ts b/packages/b2c-cli/test/commands/_test/index.test.ts index 1faec0ad..d0c686f1 100644 --- a/packages/b2c-cli/test/commands/_test/index.test.ts +++ b/packages/b2c-cli/test/commands/_test/index.test.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {runCommand} from '@oclif/test'; import {expect} from 'chai'; diff --git a/packages/b2c-cli/test/functional/fixtures/cartridges/plugin_example/cartridge/scripts/test.js b/packages/b2c-cli/test/functional/fixtures/cartridges/plugin_example/cartridge/scripts/test.js index a2ff2c74..97c701d0 100644 --- a/packages/b2c-cli/test/functional/fixtures/cartridges/plugin_example/cartridge/scripts/test.js +++ b/packages/b2c-cli/test/functional/fixtures/cartridges/plugin_example/cartridge/scripts/test.js @@ -1,2 +1,6 @@ -/* eslint-disable no-undef */ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ debug('Testing2'); diff --git a/packages/b2c-tooling-sdk/eslint.config.mjs b/packages/b2c-tooling-sdk/eslint.config.mjs index 921eb3de..41eb685d 100644 --- a/packages/b2c-tooling-sdk/eslint.config.mjs +++ b/packages/b2c-tooling-sdk/eslint.config.mjs @@ -1,5 +1,6 @@ import {includeIgnoreFile} from '@eslint/compat'; import prettierPlugin from 'eslint-plugin-prettier/recommended'; +import headerPlugin from '@tony.ganchev/eslint-plugin-header'; import tseslint from 'typescript-eslint'; import path from 'node:path'; import {fileURLToPath} from 'node:url'; @@ -15,6 +16,9 @@ export default [ prettierPlugin, { files: ['**/*.ts'], + plugins: { + header: headerPlugin, + }, languageOptions: { parserOptions: { project: true, @@ -22,6 +26,17 @@ export default [ }, }, rules: { + 'header/header': [ + 'error', + 'block', + [ + '', + ' * Copyright (c) 2025, Salesforce, Inc.', + ' * SPDX-License-Identifier: Apache-2', + ' * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0', + ' ', + ], + ], // Allow underscore-prefixed unused variables (common convention for intentionally unused params) '@typescript-eslint/no-unused-vars': [ 'error', diff --git a/packages/b2c-tooling-sdk/package.json b/packages/b2c-tooling-sdk/package.json index 3900ac44..06fc9259 100644 --- a/packages/b2c-tooling-sdk/package.json +++ b/packages/b2c-tooling-sdk/package.json @@ -148,6 +148,7 @@ "@oclif/core": "^4", "@oclif/prettier-config": "^0.2.1", "@salesforce/dev-config": "^4.3.2", + "@tony.ganchev/eslint-plugin-header": "^3.1.11", "@types/archiver": "^7.0.0", "@types/node": "^18.19.130", "eslint": "^9", diff --git a/packages/b2c-tooling-sdk/src/auth/api-key.ts b/packages/b2c-tooling-sdk/src/auth/api-key.ts index 5fb7b6b5..97f4f40f 100644 --- a/packages/b2c-tooling-sdk/src/auth/api-key.ts +++ b/packages/b2c-tooling-sdk/src/auth/api-key.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import type {AuthStrategy} from './types.js'; import {getLogger} from '../logging/logger.js'; diff --git a/packages/b2c-tooling-sdk/src/auth/basic.ts b/packages/b2c-tooling-sdk/src/auth/basic.ts index e6c974e4..4e0681bd 100644 --- a/packages/b2c-tooling-sdk/src/auth/basic.ts +++ b/packages/b2c-tooling-sdk/src/auth/basic.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import type {AuthStrategy} from './types.js'; import {getLogger} from '../logging/logger.js'; diff --git a/packages/b2c-tooling-sdk/src/auth/index.ts b/packages/b2c-tooling-sdk/src/auth/index.ts index e4bbefed..74ef6e4a 100644 --- a/packages/b2c-tooling-sdk/src/auth/index.ts +++ b/packages/b2c-tooling-sdk/src/auth/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Authentication strategies for B2C Commerce APIs. * diff --git a/packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts b/packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts index d7139072..4044446d 100644 --- a/packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts +++ b/packages/b2c-tooling-sdk/src/auth/oauth-implicit.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {createServer, type Server, type IncomingMessage, type ServerResponse} from 'node:http'; import type {Socket} from 'node:net'; import {URL} from 'node:url'; diff --git a/packages/b2c-tooling-sdk/src/auth/oauth.ts b/packages/b2c-tooling-sdk/src/auth/oauth.ts index 00c976fb..ec823daf 100644 --- a/packages/b2c-tooling-sdk/src/auth/oauth.ts +++ b/packages/b2c-tooling-sdk/src/auth/oauth.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import type {AuthStrategy, AccessTokenResponse, DecodedJWT} from './types.js'; import {getLogger} from '../logging/logger.js'; import {DEFAULT_ACCOUNT_MANAGER_HOST} from '../defaults.js'; diff --git a/packages/b2c-tooling-sdk/src/auth/resolve.ts b/packages/b2c-tooling-sdk/src/auth/resolve.ts index 943a299e..243b0011 100644 --- a/packages/b2c-tooling-sdk/src/auth/resolve.ts +++ b/packages/b2c-tooling-sdk/src/auth/resolve.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Auth strategy resolution utilities. * diff --git a/packages/b2c-tooling-sdk/src/auth/types.ts b/packages/b2c-tooling-sdk/src/auth/types.ts index 94d47e92..4284a1fc 100644 --- a/packages/b2c-tooling-sdk/src/auth/types.ts +++ b/packages/b2c-tooling-sdk/src/auth/types.ts @@ -1,6 +1,7 @@ -/** - * The contract for any authentication mechanism. - * Allows the consumer to be agnostic about HOW requests are authenticated. +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 */ export interface AuthStrategy { /** diff --git a/packages/b2c-tooling-sdk/src/cli/base-command.ts b/packages/b2c-tooling-sdk/src/cli/base-command.ts index bd90686f..3d2aea97 100644 --- a/packages/b2c-tooling-sdk/src/cli/base-command.ts +++ b/packages/b2c-tooling-sdk/src/cli/base-command.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Command, Flags, type Interfaces} from '@oclif/core'; import {loadConfig} from './config.js'; import type {ResolvedConfig, LoadConfigOptions} from './config.js'; diff --git a/packages/b2c-tooling-sdk/src/cli/cartridge-command.ts b/packages/b2c-tooling-sdk/src/cli/cartridge-command.ts index 3dec3f69..0c802a7b 100644 --- a/packages/b2c-tooling-sdk/src/cli/cartridge-command.ts +++ b/packages/b2c-tooling-sdk/src/cli/cartridge-command.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Args, Command, Flags} from '@oclif/core'; import {InstanceCommand} from './instance-command.js'; import type {FindCartridgesOptions} from '../operations/code/cartridges.js'; diff --git a/packages/b2c-tooling-sdk/src/cli/config.ts b/packages/b2c-tooling-sdk/src/cli/config.ts index 90e83d12..dc2d9fb5 100644 --- a/packages/b2c-tooling-sdk/src/cli/config.ts +++ b/packages/b2c-tooling-sdk/src/cli/config.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import * as fs from 'node:fs'; import * as os from 'node:os'; import * as path from 'node:path'; diff --git a/packages/b2c-tooling-sdk/src/cli/index.ts b/packages/b2c-tooling-sdk/src/cli/index.ts index 1feab46d..d6265306 100644 --- a/packages/b2c-tooling-sdk/src/cli/index.ts +++ b/packages/b2c-tooling-sdk/src/cli/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * CLI utilities and base command classes for building B2C Commerce CLI commands. * diff --git a/packages/b2c-tooling-sdk/src/cli/instance-command.ts b/packages/b2c-tooling-sdk/src/cli/instance-command.ts index 82579a77..64b04c5b 100644 --- a/packages/b2c-tooling-sdk/src/cli/instance-command.ts +++ b/packages/b2c-tooling-sdk/src/cli/instance-command.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Command, Flags} from '@oclif/core'; import {OAuthCommand} from './oauth-command.js'; import {loadConfig} from './config.js'; diff --git a/packages/b2c-tooling-sdk/src/cli/job-command.ts b/packages/b2c-tooling-sdk/src/cli/job-command.ts index d4a35e0b..29db7725 100644 --- a/packages/b2c-tooling-sdk/src/cli/job-command.ts +++ b/packages/b2c-tooling-sdk/src/cli/job-command.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Command} from '@oclif/core'; import {InstanceCommand} from './instance-command.js'; import {getJobLog, getJobErrorMessage, type JobExecution} from '../operations/jobs/index.js'; diff --git a/packages/b2c-tooling-sdk/src/cli/mrt-command.ts b/packages/b2c-tooling-sdk/src/cli/mrt-command.ts index 2e0a9a77..07b47937 100644 --- a/packages/b2c-tooling-sdk/src/cli/mrt-command.ts +++ b/packages/b2c-tooling-sdk/src/cli/mrt-command.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Command, Flags} from '@oclif/core'; import {BaseCommand} from './base-command.js'; import {loadConfig, loadMobifyConfig} from './config.js'; diff --git a/packages/b2c-tooling-sdk/src/cli/oauth-command.ts b/packages/b2c-tooling-sdk/src/cli/oauth-command.ts index 5a446659..ee93777e 100644 --- a/packages/b2c-tooling-sdk/src/cli/oauth-command.ts +++ b/packages/b2c-tooling-sdk/src/cli/oauth-command.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Command, Flags} from '@oclif/core'; import {BaseCommand} from './base-command.js'; import {loadConfig, ALL_AUTH_METHODS} from './config.js'; diff --git a/packages/b2c-tooling-sdk/src/cli/ods-command.ts b/packages/b2c-tooling-sdk/src/cli/ods-command.ts index 3467854d..898a740b 100644 --- a/packages/b2c-tooling-sdk/src/cli/ods-command.ts +++ b/packages/b2c-tooling-sdk/src/cli/ods-command.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {Command, Flags} from '@oclif/core'; import {OAuthCommand} from './oauth-command.js'; import {createOdsClient, type OdsClient} from '../clients/ods.js'; diff --git a/packages/b2c-tooling-sdk/src/cli/table.ts b/packages/b2c-tooling-sdk/src/cli/table.ts index 213a4a4b..16a28721 100644 --- a/packages/b2c-tooling-sdk/src/cli/table.ts +++ b/packages/b2c-tooling-sdk/src/cli/table.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Table rendering utilities for CLI output. * diff --git a/packages/b2c-tooling-sdk/src/clients/index.ts b/packages/b2c-tooling-sdk/src/clients/index.ts index be025258..4f041b6e 100644 --- a/packages/b2c-tooling-sdk/src/clients/index.ts +++ b/packages/b2c-tooling-sdk/src/clients/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * API clients for B2C Commerce operations. * diff --git a/packages/b2c-tooling-sdk/src/clients/middleware.ts b/packages/b2c-tooling-sdk/src/clients/middleware.ts index 8758c6f7..101fa10f 100644 --- a/packages/b2c-tooling-sdk/src/clients/middleware.ts +++ b/packages/b2c-tooling-sdk/src/clients/middleware.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Shared middleware for openapi-fetch clients. * diff --git a/packages/b2c-tooling-sdk/src/clients/mrt.ts b/packages/b2c-tooling-sdk/src/clients/mrt.ts index f557ba82..dd2ea477 100644 --- a/packages/b2c-tooling-sdk/src/clients/mrt.ts +++ b/packages/b2c-tooling-sdk/src/clients/mrt.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Managed Runtime (MRT) API client for B2C Commerce. * diff --git a/packages/b2c-tooling-sdk/src/clients/ocapi.ts b/packages/b2c-tooling-sdk/src/clients/ocapi.ts index 09f52a81..bb0ef4cf 100644 --- a/packages/b2c-tooling-sdk/src/clients/ocapi.ts +++ b/packages/b2c-tooling-sdk/src/clients/ocapi.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * OCAPI client for B2C Commerce Data API operations. * diff --git a/packages/b2c-tooling-sdk/src/clients/ods.ts b/packages/b2c-tooling-sdk/src/clients/ods.ts index b18fe76e..04ee7e63 100644 --- a/packages/b2c-tooling-sdk/src/clients/ods.ts +++ b/packages/b2c-tooling-sdk/src/clients/ods.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * ODS (On-Demand Sandbox) API client for B2C Commerce. * diff --git a/packages/b2c-tooling-sdk/src/clients/slas-admin.ts b/packages/b2c-tooling-sdk/src/clients/slas-admin.ts index bad7c0d1..ade8c67e 100644 --- a/packages/b2c-tooling-sdk/src/clients/slas-admin.ts +++ b/packages/b2c-tooling-sdk/src/clients/slas-admin.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * SLAS Admin API client for B2C Commerce. * diff --git a/packages/b2c-tooling-sdk/src/clients/webdav.ts b/packages/b2c-tooling-sdk/src/clients/webdav.ts index 963771e5..ced4388c 100644 --- a/packages/b2c-tooling-sdk/src/clients/webdav.ts +++ b/packages/b2c-tooling-sdk/src/clients/webdav.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * WebDAV client for B2C Commerce file operations. * diff --git a/packages/b2c-tooling-sdk/src/config/dw-json.ts b/packages/b2c-tooling-sdk/src/config/dw-json.ts index f18d77d9..4cd739b2 100644 --- a/packages/b2c-tooling-sdk/src/config/dw-json.ts +++ b/packages/b2c-tooling-sdk/src/config/dw-json.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * dw.json configuration file loading. * diff --git a/packages/b2c-tooling-sdk/src/config/index.ts b/packages/b2c-tooling-sdk/src/config/index.ts index e219bb0e..075ded19 100644 --- a/packages/b2c-tooling-sdk/src/config/index.ts +++ b/packages/b2c-tooling-sdk/src/config/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Configuration loading utilities. * diff --git a/packages/b2c-tooling-sdk/src/defaults.ts b/packages/b2c-tooling-sdk/src/defaults.ts index ff3feee4..216b0634 100644 --- a/packages/b2c-tooling-sdk/src/defaults.ts +++ b/packages/b2c-tooling-sdk/src/defaults.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Centralized default values for B2C Commerce APIs. * diff --git a/packages/b2c-tooling-sdk/src/i18n/index.ts b/packages/b2c-tooling-sdk/src/i18n/index.ts index e884bba2..74021c81 100644 --- a/packages/b2c-tooling-sdk/src/i18n/index.ts +++ b/packages/b2c-tooling-sdk/src/i18n/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Internationalization (i18n) support for B2C CLI tools. * diff --git a/packages/b2c-tooling-sdk/src/i18n/locales/de.ts b/packages/b2c-tooling-sdk/src/i18n/locales/de.ts index 476638ac..9c7658a4 100644 --- a/packages/b2c-tooling-sdk/src/i18n/locales/de.ts +++ b/packages/b2c-tooling-sdk/src/i18n/locales/de.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * DE */ diff --git a/packages/b2c-tooling-sdk/src/i18n/locales/index.ts b/packages/b2c-tooling-sdk/src/i18n/locales/index.ts index 3ae313ba..9ba6c6ee 100644 --- a/packages/b2c-tooling-sdk/src/i18n/locales/index.ts +++ b/packages/b2c-tooling-sdk/src/i18n/locales/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Locale resources for b2c-tooling. * diff --git a/packages/b2c-tooling-sdk/src/index.ts b/packages/b2c-tooling-sdk/src/index.ts index bcb38fe0..d8b9739f 100644 --- a/packages/b2c-tooling-sdk/src/index.ts +++ b/packages/b2c-tooling-sdk/src/index.ts @@ -1,4 +1,8 @@ -// Logging +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ export {createLogger, configureLogger, getLogger, resetLogger, createSilentLogger} from './logging/index.js'; export type {Logger, LoggerOptions, LogLevel, LogContext} from './logging/index.js'; diff --git a/packages/b2c-tooling-sdk/src/instance/index.ts b/packages/b2c-tooling-sdk/src/instance/index.ts index 66e4bf50..519ac529 100644 --- a/packages/b2c-tooling-sdk/src/instance/index.ts +++ b/packages/b2c-tooling-sdk/src/instance/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * B2C Instance management. * diff --git a/packages/b2c-tooling-sdk/src/logger.ts b/packages/b2c-tooling-sdk/src/logger.ts index 644b1ce5..82170c02 100644 --- a/packages/b2c-tooling-sdk/src/logger.ts +++ b/packages/b2c-tooling-sdk/src/logger.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Logging utilities for B2C CLI tools. * diff --git a/packages/b2c-tooling-sdk/src/logging/index.ts b/packages/b2c-tooling-sdk/src/logging/index.ts index f1491433..f8ea9c73 100644 --- a/packages/b2c-tooling-sdk/src/logging/index.ts +++ b/packages/b2c-tooling-sdk/src/logging/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Structured logging module using [pino](https://github.com/pinojs/pino). * diff --git a/packages/b2c-tooling-sdk/src/logging/logger.ts b/packages/b2c-tooling-sdk/src/logging/logger.ts index 1a4a2e05..0e212460 100644 --- a/packages/b2c-tooling-sdk/src/logging/logger.ts +++ b/packages/b2c-tooling-sdk/src/logging/logger.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Logger using pino with pretty printing by default. */ diff --git a/packages/b2c-tooling-sdk/src/logging/types.ts b/packages/b2c-tooling-sdk/src/logging/types.ts index 21f66fc5..064e3e70 100644 --- a/packages/b2c-tooling-sdk/src/logging/types.ts +++ b/packages/b2c-tooling-sdk/src/logging/types.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Logging types. */ diff --git a/packages/b2c-tooling-sdk/src/operations/code/cartridges.ts b/packages/b2c-tooling-sdk/src/operations/code/cartridges.ts index bf195ddf..d3dd7161 100644 --- a/packages/b2c-tooling-sdk/src/operations/code/cartridges.ts +++ b/packages/b2c-tooling-sdk/src/operations/code/cartridges.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import {globSync} from 'glob'; import path from 'node:path'; diff --git a/packages/b2c-tooling-sdk/src/operations/code/deploy.ts b/packages/b2c-tooling-sdk/src/operations/code/deploy.ts index 41d5043f..45af88ce 100644 --- a/packages/b2c-tooling-sdk/src/operations/code/deploy.ts +++ b/packages/b2c-tooling-sdk/src/operations/code/deploy.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import path from 'node:path'; import fs from 'node:fs'; import JSZip from 'jszip'; diff --git a/packages/b2c-tooling-sdk/src/operations/code/index.ts b/packages/b2c-tooling-sdk/src/operations/code/index.ts index decc17e5..3b7582ed 100644 --- a/packages/b2c-tooling-sdk/src/operations/code/index.ts +++ b/packages/b2c-tooling-sdk/src/operations/code/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Code deployment operations for B2C Commerce. * diff --git a/packages/b2c-tooling-sdk/src/operations/code/versions.ts b/packages/b2c-tooling-sdk/src/operations/code/versions.ts index efae64f6..d3f5f676 100644 --- a/packages/b2c-tooling-sdk/src/operations/code/versions.ts +++ b/packages/b2c-tooling-sdk/src/operations/code/versions.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import type {B2CInstance} from '../../instance/index.js'; import {type OcapiComponents} from '../../clients/index.js'; import {getLogger} from '../../logging/logger.js'; diff --git a/packages/b2c-tooling-sdk/src/operations/code/watch.ts b/packages/b2c-tooling-sdk/src/operations/code/watch.ts index 43f24d1b..b0939b40 100644 --- a/packages/b2c-tooling-sdk/src/operations/code/watch.ts +++ b/packages/b2c-tooling-sdk/src/operations/code/watch.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import path from 'node:path'; import fs from 'node:fs'; import {watch, type FSWatcher} from 'chokidar'; diff --git a/packages/b2c-tooling-sdk/src/operations/jobs/index.ts b/packages/b2c-tooling-sdk/src/operations/jobs/index.ts index e27da0c1..103882ce 100644 --- a/packages/b2c-tooling-sdk/src/operations/jobs/index.ts +++ b/packages/b2c-tooling-sdk/src/operations/jobs/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Job execution operations for B2C Commerce. * diff --git a/packages/b2c-tooling-sdk/src/operations/jobs/run.ts b/packages/b2c-tooling-sdk/src/operations/jobs/run.ts index 56e28903..b23be79f 100644 --- a/packages/b2c-tooling-sdk/src/operations/jobs/run.ts +++ b/packages/b2c-tooling-sdk/src/operations/jobs/run.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Job execution operations for B2C Commerce. * diff --git a/packages/b2c-tooling-sdk/src/operations/jobs/site-archive.ts b/packages/b2c-tooling-sdk/src/operations/jobs/site-archive.ts index 5b02e6b1..7cb6f949 100644 --- a/packages/b2c-tooling-sdk/src/operations/jobs/site-archive.ts +++ b/packages/b2c-tooling-sdk/src/operations/jobs/site-archive.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Site archive import/export operations for B2C Commerce. * diff --git a/packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts b/packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts index 445538fc..e2ee1030 100644 --- a/packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts +++ b/packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Bundle creation utilities for Managed Runtime. * diff --git a/packages/b2c-tooling-sdk/src/operations/mrt/env-var.ts b/packages/b2c-tooling-sdk/src/operations/mrt/env-var.ts index 97cfa4d1..db122905 100644 --- a/packages/b2c-tooling-sdk/src/operations/mrt/env-var.ts +++ b/packages/b2c-tooling-sdk/src/operations/mrt/env-var.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Environment variable operations for Managed Runtime. * diff --git a/packages/b2c-tooling-sdk/src/operations/mrt/env.ts b/packages/b2c-tooling-sdk/src/operations/mrt/env.ts index de5f31a8..18603dae 100644 --- a/packages/b2c-tooling-sdk/src/operations/mrt/env.ts +++ b/packages/b2c-tooling-sdk/src/operations/mrt/env.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Environment operations for Managed Runtime. * diff --git a/packages/b2c-tooling-sdk/src/operations/mrt/index.ts b/packages/b2c-tooling-sdk/src/operations/mrt/index.ts index 9bafd318..1c3b4d61 100644 --- a/packages/b2c-tooling-sdk/src/operations/mrt/index.ts +++ b/packages/b2c-tooling-sdk/src/operations/mrt/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Managed Runtime (MRT) operations. * diff --git a/packages/b2c-tooling-sdk/src/operations/mrt/push.ts b/packages/b2c-tooling-sdk/src/operations/mrt/push.ts index 7d36dd0c..723af077 100644 --- a/packages/b2c-tooling-sdk/src/operations/mrt/push.ts +++ b/packages/b2c-tooling-sdk/src/operations/mrt/push.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Push operations for Managed Runtime. * diff --git a/packages/b2c-tooling-sdk/src/operations/sites/index.ts b/packages/b2c-tooling-sdk/src/operations/sites/index.ts index 051d22d9..9f31ed49 100644 --- a/packages/b2c-tooling-sdk/src/operations/sites/index.ts +++ b/packages/b2c-tooling-sdk/src/operations/sites/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Site management operations for B2C Commerce. * diff --git a/packages/b2c-tooling-sdk/src/platform/index.ts b/packages/b2c-tooling-sdk/src/platform/index.ts index e6ebce83..61246d0a 100644 --- a/packages/b2c-tooling-sdk/src/platform/index.ts +++ b/packages/b2c-tooling-sdk/src/platform/index.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ /** * Platform API clients for Salesforce Commerce Cloud services. * diff --git a/packages/b2c-tooling-sdk/src/platform/mrt.ts b/packages/b2c-tooling-sdk/src/platform/mrt.ts index f8eb65ba..d0992629 100644 --- a/packages/b2c-tooling-sdk/src/platform/mrt.ts +++ b/packages/b2c-tooling-sdk/src/platform/mrt.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import type {AuthStrategy} from '../auth/types.js'; export interface MrtProject { diff --git a/packages/b2c-tooling-sdk/src/platform/ods.ts b/packages/b2c-tooling-sdk/src/platform/ods.ts index faca3c14..d3bfdea4 100644 --- a/packages/b2c-tooling-sdk/src/platform/ods.ts +++ b/packages/b2c-tooling-sdk/src/platform/ods.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ import type {AuthStrategy} from '../auth/types.js'; export interface OdsConfig { diff --git a/packages/b2c-tooling-sdk/src/types/cliui.d.ts b/packages/b2c-tooling-sdk/src/types/cliui.d.ts index 7ff73fcd..4699e4de 100644 --- a/packages/b2c-tooling-sdk/src/types/cliui.d.ts +++ b/packages/b2c-tooling-sdk/src/types/cliui.d.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2025, Salesforce, Inc. + * SPDX-License-Identifier: Apache-2 + * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0 + */ declare module 'cliui' { interface Column { text: string; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3a0f01ef..fcd2bb35 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,6 +60,9 @@ importers: '@salesforce/dev-config': specifier: ^4.3.2 version: 4.3.2 + '@tony.ganchev/eslint-plugin-header': + specifier: ^3.1.11 + version: 3.1.11(eslint@9.39.1) '@types/chai': specifier: ^4 version: 4.3.20 @@ -151,6 +154,9 @@ importers: '@salesforce/dev-config': specifier: ^4.3.2 version: 4.3.2 + '@tony.ganchev/eslint-plugin-header': + specifier: ^3.1.11 + version: 3.1.11(eslint@9.39.1) '@types/archiver': specifier: ^7.0.0 version: 7.0.0 @@ -1535,6 +1541,11 @@ packages: resolution: {integrity: sha512-+PmQX0PiAYPMeVYe237LJAYvOMYW1j2rH5YROyS3b4CTVJum34HfRvKvAzozHAQG0TnHNdUfY9nCeUyRAs//cw==} engines: {node: '>=14.16'} + '@tony.ganchev/eslint-plugin-header@3.1.11': + resolution: {integrity: sha512-4YWoINrywSfsZtVUSNQRXPwlyFK5GKJxSzKXhxMnPuGdbmjzSBUqE2oANdIXqyQv/DVC1FWOtaBanta9c0ATFA==} + peerDependencies: + eslint: '>=7.7.0' + '@tybys/wasm-util@0.10.1': resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==} @@ -6289,6 +6300,10 @@ snapshots: dependencies: defer-to-connect: 2.0.1 + '@tony.ganchev/eslint-plugin-header@3.1.11(eslint@9.39.1)': + dependencies: + eslint: 9.39.1 + '@tybys/wasm-util@0.10.1': dependencies: tslib: 2.8.1 @@ -7313,8 +7328,8 @@ snapshots: eslint-config-oclif: 5.2.2(eslint@9.39.1) eslint-config-xo: 0.49.0(eslint@9.39.1) eslint-config-xo-space: 0.35.0(eslint@9.39.1) - eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.1) - eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.46.4(eslint@9.39.1)(typescript@5.9.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.1) + eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.46.4(eslint@9.39.1)(typescript@5.9.3))(eslint@9.39.1))(eslint@9.39.1) + eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.46.4(eslint@9.39.1)(typescript@5.9.3))(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.46.4(eslint@9.39.1)(typescript@5.9.3))(eslint@9.39.1))(eslint@9.39.1))(eslint@9.39.1) eslint-plugin-jsdoc: 50.8.0(eslint@9.39.1) eslint-plugin-mocha: 10.5.0(eslint@9.39.1) eslint-plugin-n: 17.23.1(eslint@9.39.1)(typescript@5.9.3) @@ -7359,7 +7374,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.1): + eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.46.4(eslint@9.39.1)(typescript@5.9.3))(eslint@9.39.1))(eslint@9.39.1): dependencies: '@nolyfill/is-core-module': 1.0.39 debug: 4.4.3(supports-color@10.2.2) @@ -7370,18 +7385,18 @@ snapshots: tinyglobby: 0.2.15 unrs-resolver: 1.11.1 optionalDependencies: - eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.46.4(eslint@9.39.1)(typescript@5.9.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.1) + eslint-plugin-import: 2.32.0(@typescript-eslint/parser@8.46.4(eslint@9.39.1)(typescript@5.9.3))(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.46.4(eslint@9.39.1)(typescript@5.9.3))(eslint@9.39.1))(eslint@9.39.1))(eslint@9.39.1) transitivePeerDependencies: - supports-color - eslint-module-utils@2.12.1(@typescript-eslint/parser@8.46.4(eslint@9.39.1)(typescript@5.9.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.1): + eslint-module-utils@2.12.1(@typescript-eslint/parser@8.46.4(eslint@9.39.1)(typescript@5.9.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.46.4(eslint@9.39.1)(typescript@5.9.3))(eslint@9.39.1))(eslint@9.39.1))(eslint@9.39.1): dependencies: debug: 3.2.7 optionalDependencies: '@typescript-eslint/parser': 8.46.4(eslint@9.39.1)(typescript@5.9.3) eslint: 9.39.1 eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.1) + eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.46.4(eslint@9.39.1)(typescript@5.9.3))(eslint@9.39.1))(eslint@9.39.1) transitivePeerDependencies: - supports-color @@ -7398,7 +7413,7 @@ snapshots: eslint-utils: 2.1.0 regexpp: 3.2.0 - eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.46.4(eslint@9.39.1)(typescript@5.9.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.1): + eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.46.4(eslint@9.39.1)(typescript@5.9.3))(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.46.4(eslint@9.39.1)(typescript@5.9.3))(eslint@9.39.1))(eslint@9.39.1))(eslint@9.39.1): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.9 @@ -7409,7 +7424,7 @@ snapshots: doctrine: 2.1.0 eslint: 9.39.1 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.1(@typescript-eslint/parser@8.46.4(eslint@9.39.1)(typescript@5.9.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.1) + eslint-module-utils: 2.12.1(@typescript-eslint/parser@8.46.4(eslint@9.39.1)(typescript@5.9.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@8.46.4(eslint@9.39.1)(typescript@5.9.3))(eslint@9.39.1))(eslint@9.39.1))(eslint@9.39.1) hasown: 2.0.2 is-core-module: 2.16.1 is-glob: 4.0.3