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

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.25";
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 }) => {
@@ -57802,7 +57809,12 @@ Example call:
57802
57809
  }
57803
57810
  },
57804
57811
  repositoryUrl: {
57805
- $path: ["repositoryUrl", "CI_PROJECT_URL", "GITHUB_REPOSITORY"],
57812
+ $path: [
57813
+ "repositoryUrl",
57814
+ "CONTENSIS_REPOSITORY_URL",
57815
+ "CI_PROJECT_URL",
57816
+ "GITHUB_REPOSITORY"
57817
+ ],
57806
57818
  $formatting: (url2, { GITHUB_ACTIONS }) => {
57807
57819
  if (GITHUB_ACTIONS && !url2.startsWith(`https://`))
57808
57820
  url2 = `https://github.com/${url2}`;
@@ -57812,18 +57824,37 @@ Example call:
57812
57824
  },
57813
57825
  branch: ["branch", "CI_COMMIT_REF_NAME", "GITHUB_REF_NAME"],
57814
57826
  commit: {
57815
- id: ["commitId", "CI_COMMIT_SHORT_SHA", "GITHUB_SHA"],
57827
+ id: [
57828
+ "commitId",
57829
+ "CONTENSIS_COMMIT_ID",
57830
+ "CI_COMMIT_SHORT_SHA",
57831
+ "GITHUB_SHA"
57832
+ ],
57816
57833
  message: {
57817
- $path: ["commitMessage", "CI_COMMIT_MESSAGE"],
57834
+ $path: [
57835
+ "commitMessage",
57836
+ "CONTENSIS_COMMIT_MESSAGE",
57837
+ "CI_COMMIT_MESSAGE"
57838
+ ],
57818
57839
  // ${{ github.event.head_commit.message }}
57819
57840
  $formatting: (msg) => msg == null ? void 0 : msg.replace(/\\n/g, " ").replace(/\\n/g, " ").trim()
57820
57841
  },
57821
- dateTime: ["commitDatetime", "CI_COMMIT_TIMESTAMP"],
57842
+ dateTime: [
57843
+ "commitDatetime",
57844
+ "CONTENSIS_COMMIT_DATETIME",
57845
+ "CI_COMMIT_TIMESTAMP"
57846
+ ],
57822
57847
  // ${{ github.event.head_commit.timestamp }}
57823
- authorEmail: ["authorEmail", "GITLAB_USER_EMAIL", "GITHUB_ACTOR"],
57848
+ authorEmail: [
57849
+ "authorEmail",
57850
+ "CONTENSIS_AUTHOR_EMAIL",
57851
+ "GITLAB_USER_EMAIL",
57852
+ "GITHUB_ACTOR"
57853
+ ],
57824
57854
  // ${{ github.event.head_commit.author.email }}
57825
57855
  committerEmail: [
57826
57856
  "committerEmail",
57857
+ "CONTENSIS_COMMITTER_EMAIL",
57827
57858
  "GITLAB_USER_EMAIL",
57828
57859
  "GITHUB_TRIGGERING_ACTOR"
57829
57860
  ]