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/shell.js CHANGED
@@ -46464,7 +46464,7 @@ var progress = {
46464
46464
  };
46465
46465
 
46466
46466
  // src/version.ts
46467
- var LIB_VERSION = "1.6.1-beta.23";
46467
+ var LIB_VERSION = "1.6.1-beta.24";
46468
46468
 
46469
46469
  // src/commands/connect.ts
46470
46470
  var import_commander2 = require("commander");
@@ -57504,6 +57504,13 @@ Example call:
57504
57504
  },
57505
57505
  projectId: () => cli.env.currentProject || "",
57506
57506
  source: {
57507
+ // Provenance resolution order per field:
57508
+ // 1. explicit cli flag (camelCase key from commander opts)
57509
+ // 2. CONTENSIS_* env var - a safe channel for CI actions to supply
57510
+ // values without embedding them in the command string (where mapped)
57511
+ // 3. generic CI variables the runner exports
57512
+ // The mapper skips empty/undefined candidates and uses the first
57513
+ // non-empty value, so unset optional vars never mask a fallback.
57507
57514
  provider: {
57508
57515
  $path: ["provider"],
57509
57516
  $return: (provider, { GITHUB_ACTIONS, GITLAB_CI }) => {
@@ -57525,7 +57532,11 @@ Example call:
57525
57532
  commit: {
57526
57533
  id: ["commitId", "CI_COMMIT_SHORT_SHA", "GITHUB_SHA"],
57527
57534
  message: {
57528
- $path: ["commitMessage", "CI_COMMIT_MESSAGE"],
57535
+ $path: [
57536
+ "commitMessage",
57537
+ "CONTENSIS_COMMIT_MESSAGE",
57538
+ "CI_COMMIT_MESSAGE"
57539
+ ],
57529
57540
  // ${{ github.event.head_commit.message }}
57530
57541
  $formatting: (msg) => msg == null ? void 0 : msg.replace(/\\n/g, " ").replace(/\\n/g, " ").trim()
57531
57542
  },