@probelabs/visor 0.1.23 → 0.1.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/action.yml CHANGED
@@ -149,6 +149,4 @@ outputs:
149
149
 
150
150
  runs:
151
151
  using: 'node20'
152
- main: 'dist/index.js'
153
- args:
154
- - '--github-action'
152
+ main: 'dist/index.js'
package/dist/index.js CHANGED
@@ -80814,8 +80814,8 @@ class ActionCliBridge {
80814
80814
  const bundledPath = actionPath
80815
80815
  ? path.join(actionPath, 'dist', 'index.js')
80816
80816
  : path.join(__dirname, 'index.js'); // When running locally
80817
- // Don't pass --github-action flag, so it runs in CLI mode
80818
- const result = await this.executeCommand('node', [bundledPath, ...cliArgs], {
80817
+ // Pass --cli flag to force CLI mode even when GITHUB_ACTIONS env var is set
80818
+ const result = await this.executeCommand('node', [bundledPath, '--cli', ...cliArgs], {
80819
80819
  cwd: workingDir,
80820
80820
  env,
80821
80821
  timeout,
@@ -87193,11 +87193,10 @@ async function markCheckAsFailed(checkService, owner, repo, checkRunId, checkNam
87193
87193
  }
87194
87194
  }
87195
87195
  if (require.main === require.cache[eval('__filename')]) {
87196
- // Simple mode detection: if --github-action flag is present, run as action, otherwise CLI
87197
- const isGitHubAction = process.argv.includes('--github-action');
87196
+ // Simple mode detection: use GITHUB_ACTIONS env var which is always 'true' in GitHub Actions
87197
+ // Also check for --cli flag to force CLI mode even in GitHub Actions environment
87198
+ const isGitHubAction = process.env.GITHUB_ACTIONS === 'true' && !process.argv.includes('--cli');
87198
87199
  if (isGitHubAction) {
87199
- // Remove the --github-action flag from argv so it doesn't interfere
87200
- process.argv = process.argv.filter(arg => arg !== '--github-action');
87201
87200
  // Run as GitHub Action
87202
87201
  run();
87203
87202
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@probelabs/visor",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "main": "dist/index.js",
5
5
  "bin": {
6
6
  "visor": "./dist/cli-main.js"