@xdevops/issue-auto-finish 1.0.77 → 1.0.79

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.
Files changed (34) hide show
  1. package/dist/{analyze-IZFTWCNR.js → analyze-MIYHVC2A.js} +2 -2
  2. package/dist/{braindump-SXLAURR4.js → braindump-JNET2EEP.js} +2 -2
  3. package/dist/{chunk-KWOM6URK.js → chunk-IPPYFU3R.js} +26 -4
  4. package/dist/chunk-IPPYFU3R.js.map +1 -0
  5. package/dist/{chunk-OOJNTGB5.js → chunk-PNTEPUOH.js} +2 -2
  6. package/dist/chunk-PNTEPUOH.js.map +1 -0
  7. package/dist/{chunk-NBX5LNCU.js → chunk-PRGM6ELE.js} +3 -3
  8. package/dist/{chunk-JL6ALTPS.js → chunk-RJUOVI3J.js} +5 -5
  9. package/dist/{chunk-VYNKAT4P.js → chunk-UAINLCSR.js} +2 -2
  10. package/dist/{chunk-MC7YPVJG.js → chunk-UWLXEZSL.js} +39 -17
  11. package/dist/{chunk-MC7YPVJG.js.map → chunk-UWLXEZSL.js.map} +1 -1
  12. package/dist/cli.js +6 -6
  13. package/dist/{config-LLOHFS6J.js → config-E7XKQUSH.js} +2 -2
  14. package/dist/deploy/DevServerManager.d.ts +2 -0
  15. package/dist/deploy/DevServerManager.d.ts.map +1 -1
  16. package/dist/index.js +5 -5
  17. package/dist/{init-EQWSE5FX.js → init-E4KZDZE2.js} +4 -4
  18. package/dist/lib.js +2 -2
  19. package/dist/orchestrator/steps/FailureHandler.d.ts.map +1 -1
  20. package/dist/{restart-24AKNL74.js → restart-P5N2UBPL.js} +4 -4
  21. package/dist/run.js +5 -5
  22. package/dist/{start-YUT6GSVS.js → start-HWPRQPH7.js} +4 -4
  23. package/package.json +1 -1
  24. package/dist/chunk-KWOM6URK.js.map +0 -1
  25. package/dist/chunk-OOJNTGB5.js.map +0 -1
  26. /package/dist/{analyze-IZFTWCNR.js.map → analyze-MIYHVC2A.js.map} +0 -0
  27. /package/dist/{braindump-SXLAURR4.js.map → braindump-JNET2EEP.js.map} +0 -0
  28. /package/dist/{chunk-NBX5LNCU.js.map → chunk-PRGM6ELE.js.map} +0 -0
  29. /package/dist/{chunk-JL6ALTPS.js.map → chunk-RJUOVI3J.js.map} +0 -0
  30. /package/dist/{chunk-VYNKAT4P.js.map → chunk-UAINLCSR.js.map} +0 -0
  31. /package/dist/{config-LLOHFS6J.js.map → config-E7XKQUSH.js.map} +0 -0
  32. /package/dist/{init-EQWSE5FX.js.map → init-E4KZDZE2.js.map} +0 -0
  33. /package/dist/{restart-24AKNL74.js.map → restart-P5N2UBPL.js.map} +0 -0
  34. /package/dist/{start-YUT6GSVS.js.map → start-HWPRQPH7.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  loadConfig
3
- } from "./chunk-OOJNTGB5.js";
3
+ } from "./chunk-PNTEPUOH.js";
4
4
  import "./chunk-AKXDQH25.js";
5
5
  import {
6
6
  analyze
@@ -73,4 +73,4 @@ async function analyzeCommand(opts) {
73
73
  export {
74
74
  analyzeCommand
75
75
  };
76
- //# sourceMappingURL=analyze-IZFTWCNR.js.map
76
+ //# sourceMappingURL=analyze-MIYHVC2A.js.map
@@ -18,7 +18,7 @@ import "./chunk-ACVOOHAR.js";
18
18
  import "./chunk-KWODU7HB.js";
19
19
  import {
20
20
  loadConfig
21
- } from "./chunk-OOJNTGB5.js";
21
+ } from "./chunk-PNTEPUOH.js";
22
22
  import "./chunk-AKXDQH25.js";
23
23
  import "./chunk-B7TVVODN.js";
24
24
  import "./chunk-TN2SYADO.js";
@@ -205,4 +205,4 @@ ${bold("\u786E\u8BA4\u6267\u884C\uFF1F")} (${green("y")}=\u786E\u8BA4 / ${red("q
205
205
  export {
206
206
  braindumpCommand
207
207
  };
208
- //# sourceMappingURL=braindump-SXLAURR4.js.map
208
+ //# sourceMappingURL=braindump-JNET2EEP.js.map
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-URE5IBQE.js";
5
5
  import {
6
6
  createSetupRouter
7
- } from "./chunk-JL6ALTPS.js";
7
+ } from "./chunk-RJUOVI3J.js";
8
8
  import {
9
9
  buildLockNoteBody,
10
10
  buildReleaseNoteBody,
@@ -33,7 +33,7 @@ import {
33
33
  setE2eOverride,
34
34
  setNoteSyncOverride,
35
35
  validatePhaseRegistry
36
- } from "./chunk-MC7YPVJG.js";
36
+ } from "./chunk-UWLXEZSL.js";
37
37
  import {
38
38
  AsyncMutex,
39
39
  BaseTracker,
@@ -55,7 +55,7 @@ import {
55
55
  import {
56
56
  loadConfig,
57
57
  reloadConfig
58
- } from "./chunk-OOJNTGB5.js";
58
+ } from "./chunk-PNTEPUOH.js";
59
59
  import {
60
60
  resolveDisplayHost
61
61
  } from "./chunk-AKXDQH25.js";
@@ -1301,6 +1301,28 @@ function createApiRouter(trackerOrDeps, config, agentLogStore, orchestrator, mai
1301
1301
  res.status(400).json({ error: e.message });
1302
1302
  }
1303
1303
  });
1304
+ router.get("/api/issues/:iid/preview-logs/:type", (req, res) => {
1305
+ const iid = parseInt(req.params.iid, 10);
1306
+ const logType = req.params.type;
1307
+ if (logType !== "backend" && logType !== "frontend") {
1308
+ res.status(400).json({ error: 'type must be "backend" or "frontend"' });
1309
+ return;
1310
+ }
1311
+ const logPath = orch.getDevServerManager().getLogPath(iid, logType);
1312
+ if (!logPath) {
1313
+ res.status(404).json({ error: "Log file not found" });
1314
+ return;
1315
+ }
1316
+ const tail = parseInt(req.query.tail, 10);
1317
+ if (tail > 0) {
1318
+ const content = fs3.readFileSync(logPath, "utf-8");
1319
+ const lines = content.split("\n");
1320
+ const start = Math.max(0, lines.length - tail);
1321
+ res.type("text/plain").send(lines.slice(start).join("\n"));
1322
+ return;
1323
+ }
1324
+ res.type("text/plain").sendFile(logPath);
1325
+ });
1304
1326
  router.get("/api/preview-reaper/status", (_req, res) => {
1305
1327
  if (!previewReaper) {
1306
1328
  res.json({ enabled: false });
@@ -8882,4 +8904,4 @@ function migrateKnowledgeDir(srcDir, destDir) {
8882
8904
  export {
8883
8905
  main
8884
8906
  };
8885
- //# sourceMappingURL=chunk-KWOM6URK.js.map
8907
+ //# sourceMappingURL=chunk-IPPYFU3R.js.map