staklink 0.3.23 → 0.3.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.
@@ -34824,7 +34824,7 @@ var SSEManager = class {
34824
34824
  var sseManager = new SSEManager();
34825
34825
 
34826
34826
  // src/proxy/version.ts
34827
- var VERSION = "0.3.23";
34827
+ var VERSION = "0.3.24";
34828
34828
 
34829
34829
  // node_modules/uuid/dist/esm/stringify.js
34830
34830
  var byteToHex = [];
@@ -80858,6 +80858,31 @@ async function setupPlaywrightConfig(repoLocation) {
80858
80858
  wasModified
80859
80859
  };
80860
80860
  }
80861
+ async function ensureTestResultsInGitignore(repoLocation) {
80862
+ const gitignorePath = path9.join(repoLocation, ".gitignore");
80863
+ const testResultsEntry = "test-results";
80864
+ try {
80865
+ const gitignoreContent = await fs10.readFile(gitignorePath, "utf-8");
80866
+ const lines = gitignoreContent.split("\n");
80867
+ const hasTestResults = lines.some(
80868
+ (line) => line.trim() === testResultsEntry
80869
+ );
80870
+ if (hasTestResults) {
80871
+ console.log("test-results already in .gitignore");
80872
+ return;
80873
+ }
80874
+ const updatedContent = gitignoreContent.endsWith("\n") ? `${gitignoreContent}${testResultsEntry}
80875
+ ` : `${gitignoreContent}
80876
+ ${testResultsEntry}
80877
+ `;
80878
+ await fs10.writeFile(gitignorePath, updatedContent);
80879
+ console.log("Added test-results to .gitignore");
80880
+ } catch (error82) {
80881
+ await fs10.writeFile(gitignorePath, `${testResultsEntry}
80882
+ `);
80883
+ console.log("Created .gitignore with test-results");
80884
+ }
80885
+ }
80861
80886
  async function runPlaywrightTest(repoLocation, testFilePath) {
80862
80887
  const runner = new Runner(repoLocation, console.log);
80863
80888
  const testCommand = `npx playwright test ${testFilePath}`;
@@ -80955,6 +80980,7 @@ async function runPlaywrightTestWithVideo(options) {
80955
80980
  const repoLocation = await findRepositoryLocation(repoName);
80956
80981
  await verifyTestFileExists(repoLocation, testFilePath);
80957
80982
  configState = await setupPlaywrightConfig(repoLocation);
80983
+ await ensureTestResultsInGitignore(repoLocation);
80958
80984
  const testResult = await runPlaywrightTest(repoLocation, testFilePath);
80959
80985
  const videoPath = await findVideoFile(repoLocation);
80960
80986
  let uploadStatus;
@@ -10905,7 +10905,7 @@ var glob = Object.assign(glob_, {
10905
10905
  glob.glob = glob;
10906
10906
 
10907
10907
  // src/proxy/version.ts
10908
- var VERSION = "0.3.23";
10908
+ var VERSION = "0.3.24";
10909
10909
 
10910
10910
  // src/cli.ts
10911
10911
  var STAKLINK_PROXY = "staklink-proxy";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "staklink",
3
3
  "displayName": "staklink",
4
4
  "description": "staklink process manager",
5
- "version": "0.3.23",
5
+ "version": "0.3.24",
6
6
  "type": "module",
7
7
  "publisher": "stakwork",
8
8
  "engines": {
@@ -0,0 +1,4 @@
1
+ {
2
+ "status": "passed",
3
+ "failedTests": []
4
+ }