contensis-cli 1.6.1-beta.23 → 1.6.1-beta.24

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/dist/index.js CHANGED
@@ -46453,7 +46453,7 @@ var progress = {
46453
46453
  };
46454
46454
 
46455
46455
  // src/version.ts
46456
- var LIB_VERSION = "1.6.1-beta.23";
46456
+ var LIB_VERSION = "1.6.1-beta.24";
46457
46457
 
46458
46458
  // src/commands/connect.ts
46459
46459
  var import_commander2 = require("commander");
@@ -57793,6 +57793,13 @@ Example call:
57793
57793
  },
57794
57794
  projectId: () => cli.env.currentProject || "",
57795
57795
  source: {
57796
+ // Provenance resolution order per field:
57797
+ // 1. explicit cli flag (camelCase key from commander opts)
57798
+ // 2. CONTENSIS_* env var - a safe channel for CI actions to supply
57799
+ // values without embedding them in the command string (where mapped)
57800
+ // 3. generic CI variables the runner exports
57801
+ // The mapper skips empty/undefined candidates and uses the first
57802
+ // non-empty value, so unset optional vars never mask a fallback.
57796
57803
  provider: {
57797
57804
  $path: ["provider"],
57798
57805
  $return: (provider, { GITHUB_ACTIONS, GITLAB_CI }) => {
@@ -57814,7 +57821,11 @@ Example call:
57814
57821
  commit: {
57815
57822
  id: ["commitId", "CI_COMMIT_SHORT_SHA", "GITHUB_SHA"],
57816
57823
  message: {
57817
- $path: ["commitMessage", "CI_COMMIT_MESSAGE"],
57824
+ $path: [
57825
+ "commitMessage",
57826
+ "CONTENSIS_COMMIT_MESSAGE",
57827
+ "CI_COMMIT_MESSAGE"
57828
+ ],
57818
57829
  // ${{ github.event.head_commit.message }}
57819
57830
  $formatting: (msg) => msg == null ? void 0 : msg.replace(/\\n/g, " ").replace(/\\n/g, " ").trim()
57820
57831
  },