@apilift/cli 1.10.1 → 1.10.2-dev.1794943427.da76e6e32faad3e6efd13e560291e4f8f20e838d

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.
@@ -20494,7 +20494,12 @@ var object2 = (value) => value && typeof value === "object" && !Array.isArray(va
20494
20494
  async function startCaptureServer(options) {
20495
20495
  const root = options.root;
20496
20496
  await mkdir(root, { recursive: true, mode: 448 });
20497
- const store = new CaptureStore(root, options.clock, options.alive);
20497
+ const brokerStartedAt = Math.trunc(Date.now() - process.uptime() * 1e3);
20498
+ const inspectOwner2 = options.alive ?? ownerProcessAlive;
20499
+ const store = new CaptureStore(root, options.clock, (pid, startedAt, fresh) => {
20500
+ if (pid === process.pid && startedAt === brokerStartedAt) return true;
20501
+ return inspectOwner2(pid, startedAt, fresh);
20502
+ });
20498
20503
  const token = randomBytes(32).toString("base64url");
20499
20504
  const setupLinks = /* @__PURE__ */ new Map();
20500
20505
  const clock = options.clock ?? Date.now;
@@ -20661,7 +20666,7 @@ async function startCaptureServer(options) {
20661
20666
  });
20662
20667
  const address = server.address();
20663
20668
  if (!address || typeof address === "string") throw new Error("Capture server did not bind a TCP port");
20664
- const receipt = { pid: process.pid, port: address.port, token, version: options.version, startedAt: new Date(Date.now() - process.uptime() * 1e3).toISOString() };
20669
+ const receipt = { pid: process.pid, port: address.port, token, version: options.version, startedAt: new Date(brokerStartedAt).toISOString() };
20665
20670
  const receiptPath = join3(root, "server.json");
20666
20671
  const temp = join3(root, `.server-${process.pid}-${randomBytes(4).toString("hex")}.json`);
20667
20672
  await writeFile(temp, JSON.stringify(receipt), { mode: 384 });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apilift",
3
- "version": "1.10.1",
3
+ "version": "1.10.2-dev.1794943427.da76e6e32faad3e6efd13e560291e4f8f20e838d",
4
4
  "description": "Use logged-in apps and discover missing actions with Apilift.",
5
5
  "author": {
6
6
  "name": "Apilift"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apilift",
3
- "version": "1.10.1",
3
+ "version": "1.10.2-dev.1794943427.da76e6e32faad3e6efd13e560291e4f8f20e838d",
4
4
  "description": "Use logged-in apps and discover missing actions with Apilift.",
5
5
  "author": {
6
6
  "name": "Apilift"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apilift/cli",
3
- "version": "1.10.1",
3
+ "version": "1.10.2-dev.1794943427.da76e6e32faad3e6efd13e560291e4f8f20e838d",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
@@ -37,7 +37,7 @@
37
37
  "engines": {
38
38
  "node": ">=24.16.0 <27"
39
39
  },
40
- "gitHead": "19428f071655029e044d5fbd9815d9b8c298130e",
40
+ "gitHead": "da76e6e32faad3e6efd13e560291e4f8f20e838d",
41
41
  "repository": {
42
42
  "type": "git",
43
43
  "url": "git+https://github.com/egor-sergeev/apilift.git",