@xdevops/issue-auto-finish 1.0.80 → 1.0.81

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.
@@ -110,4 +110,4 @@ async function startDaemon(configPath) {
110
110
  export {
111
111
  startCommand
112
112
  };
113
- //# sourceMappingURL=chunk-FE5FQPF4.js.map
113
+ //# sourceMappingURL=chunk-7UBPPE3O.js.map
@@ -33,7 +33,7 @@ import {
33
33
  setE2eOverride,
34
34
  setNoteSyncOverride,
35
35
  validatePhaseRegistry
36
- } from "./chunk-CUZCZUMA.js";
36
+ } from "./chunk-S3ULUOTM.js";
37
37
  import {
38
38
  AsyncMutex,
39
39
  BaseTracker,
@@ -8904,4 +8904,4 @@ function migrateKnowledgeDir(srcDir, destDir) {
8904
8904
  export {
8905
8905
  main
8906
8906
  };
8907
- //# sourceMappingURL=chunk-ZZ4DRTBE.js.map
8907
+ //# sourceMappingURL=chunk-JFTXTWGO.js.map
@@ -3171,38 +3171,8 @@ var PortAllocator = class {
3171
3171
  import { spawn } from "child_process";
3172
3172
  import fs10 from "fs";
3173
3173
  import path11 from "path";
3174
- import net2 from "net";
3175
3174
  var logger12 = logger.child("DevServerManager");
3176
- var DEFAULT_OPTIONS2 = {
3177
- healthCheckTimeoutMs: 12e4,
3178
- healthCheckIntervalMs: 3e3
3179
- };
3180
- function waitForPort(port, timeoutMs, intervalMs) {
3181
- return new Promise((resolve, reject) => {
3182
- const deadline = Date.now() + timeoutMs;
3183
- const check = () => {
3184
- if (Date.now() > deadline) {
3185
- reject(new Error(`Port ${port} not ready after ${timeoutMs}ms`));
3186
- return;
3187
- }
3188
- const socket = net2.createConnection({ host: "127.0.0.1", port });
3189
- socket.setTimeout(5e3);
3190
- socket.on("connect", () => {
3191
- socket.destroy();
3192
- resolve();
3193
- });
3194
- socket.on("error", () => {
3195
- socket.destroy();
3196
- setTimeout(check, intervalMs);
3197
- });
3198
- socket.on("timeout", () => {
3199
- socket.destroy();
3200
- setTimeout(check, intervalMs);
3201
- });
3202
- };
3203
- check();
3204
- });
3205
- }
3175
+ var DEFAULT_OPTIONS2 = {};
3206
3176
  var DevServerManager = class {
3207
3177
  servers = /* @__PURE__ */ new Map();
3208
3178
  options;
@@ -3287,29 +3257,9 @@ var DevServerManager = class {
3287
3257
  frontendLog
3288
3258
  };
3289
3259
  this.servers.set(wtCtx.issueIid, serverSet);
3290
- logger12.info("Waiting for servers to become healthy", { issueIid: wtCtx.issueIid });
3291
- try {
3292
- await Promise.all([
3293
- waitForPort(
3294
- ports.backendPort,
3295
- this.options.healthCheckTimeoutMs,
3296
- this.options.healthCheckIntervalMs
3297
- ),
3298
- waitForPort(
3299
- ports.frontendPort,
3300
- this.options.healthCheckTimeoutMs,
3301
- this.options.healthCheckIntervalMs
3302
- )
3303
- ]);
3304
- logger12.info("Dev servers healthy", { issueIid: wtCtx.issueIid, ...ports });
3305
- } catch (err) {
3306
- logger12.error("Dev servers failed health check, cleaning up", {
3307
- issueIid: wtCtx.issueIid,
3308
- error: err.message
3309
- });
3310
- this.stopServers(wtCtx.issueIid);
3311
- throw err;
3312
- }
3260
+ logger12.info("Dev servers spawned, waiting for startup", { issueIid: wtCtx.issueIid, ...ports });
3261
+ await new Promise((r) => setTimeout(r, 1e4));
3262
+ logger12.info("Dev servers startup grace period done", { issueIid: wtCtx.issueIid });
3313
3263
  }
3314
3264
  stopServers(issueIid) {
3315
3265
  const set = this.servers.get(issueIid);
@@ -5145,4 +5095,4 @@ export {
5145
5095
  PipelineOrchestrator,
5146
5096
  BrainstormService
5147
5097
  };
5148
- //# sourceMappingURL=chunk-CUZCZUMA.js.map
5098
+ //# sourceMappingURL=chunk-S3ULUOTM.js.map