@buildautomaton/cli 0.1.66 → 0.1.67

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/cli.js CHANGED
@@ -25791,7 +25791,7 @@ var {
25791
25791
  } = import_index.default;
25792
25792
 
25793
25793
  // src/cli-version.ts
25794
- var CLI_VERSION = "0.1.66".length > 0 ? "0.1.66" : "0.0.0-dev";
25794
+ var CLI_VERSION = "0.1.67".length > 0 ? "0.1.67" : "0.0.0-dev";
25795
25795
 
25796
25796
  // src/cli/defaults.ts
25797
25797
  var DEFAULT_API_URL = process.env.BUILDAUTOMATON_API_URL ?? "https://api.buildautomaton.com";
@@ -50868,6 +50868,27 @@ function createMainBridgeCloseHandler(params, connect) {
50868
50868
  };
50869
50869
  }
50870
50870
 
50871
+ // src/connection/report-git-repos.ts
50872
+ function reportGitRepos(getWs, log2) {
50873
+ setImmediate(() => {
50874
+ discoverGitRepos().then((repos) => {
50875
+ if (repos.length > 0) {
50876
+ const socket = getWs();
50877
+ if (socket) {
50878
+ sendWsMessage(socket, {
50879
+ type: "git_repos",
50880
+ repos: repos.map((r) => ({ absolutePath: r.absolutePath, remoteUrl: r.remoteUrl }))
50881
+ });
50882
+ }
50883
+ }
50884
+ }).catch((err) => {
50885
+ log2(
50886
+ `[Bridge service] Git repository discovery failed: ${err instanceof Error ? err.message : String(err)}`
50887
+ );
50888
+ });
50889
+ });
50890
+ }
50891
+
50871
50892
  // src/connection/main-bridge-ws-open-handler.ts
50872
50893
  function createMainBridgeOpenHandler(params) {
50873
50894
  const {