@apilift/cli 1.8.7 → 1.8.8-dev.1793993455.ba16d412dadb8603392b699857501c2d7d77bc47

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/apilift.js CHANGED
@@ -49008,6 +49008,16 @@ async function awaitCaptureJob(client, id2) {
49008
49008
  } while (Date.now() < deadline);
49009
49009
  return { status: "pending" };
49010
49010
  }
49011
+ function stopFailureDetail(result4) {
49012
+ const receipt = result4;
49013
+ if (receipt?.code === "browser-job-timeout") {
49014
+ const phase = typeof receipt.transportError === "string" ? /^Browser job deadline expired; do not repeat the app action\. Phase: (stop-(?:state|admission|pending-flush|flush|metadata-check|boundary|receipt|release))\.$/u.exec(receipt.transportError)?.[1] : void 0;
49015
+ return phase ? `Recorder deadline during ${phase}. ` : "Recorder deadline expired. ";
49016
+ }
49017
+ if (receipt?.code === "capture-gap" || receipt?.code === "capture-boundary-pending") return "The recorder did not acknowledge the closing boundary. ";
49018
+ if (receipt?.transportError === "Recording metadata is not durably acknowledged; retry the same stop without repeating the app action.") return "Recording metadata acknowledgement is pending. ";
49019
+ return "";
49020
+ }
49011
49021
  function safeLocation(raw) {
49012
49022
  try {
49013
49023
  const url3 = new URL(String(raw));
@@ -49373,7 +49383,7 @@ Review: ${command4(invocation, "discover status")}
49373
49383
  }
49374
49384
  const job = await awaitCaptureJob(client, stopId);
49375
49385
  if (job.result?.boundaryConfirmed !== true && key === "discoverCaptureCancel" && await releaseUnconfirmedCapture(client, state, draft.id, row.scope_id, root2)) return ok4(lostCaptureMessage);
49376
- if (job.status !== "delivered" || job.result?.boundaryConfirmed !== true) return fail5(`Recording closure is unconfirmed. Do not repeat the app operation. Retry the same ${command4(invocation, key === "discoverCaptureCancel" ? "discover capture cancel" : "discover capture stop")}.
49386
+ if (job.status !== "delivered" || job.result?.boundaryConfirmed !== true) return fail5(`Recording closure is unconfirmed. ${stopFailureDetail(job.result)}Do not repeat the app operation. Retry the same ${command4(invocation, key === "discoverCaptureCancel" ? "discover capture cancel" : "discover capture stop")}.
49377
49387
  `, 12);
49378
49388
  const entries2 = await retainedCaptureEntries(client, row.scope_id);
49379
49389
  state.db.prepare("UPDATE discovery_capture SET job_id=NULL,phase='closed',entries_json=? WHERE draft_id=?").run(JSON.stringify(entries2), draft.id);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apilift",
3
- "version": "1.8.7",
3
+ "version": "1.8.8-dev.1793993455.ba16d412dadb8603392b699857501c2d7d77bc47",
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.8.7",
3
+ "version": "1.8.8-dev.1793993455.ba16d412dadb8603392b699857501c2d7d77bc47",
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.8.7",
3
+ "version": "1.8.8-dev.1793993455.ba16d412dadb8603392b699857501c2d7d77bc47",
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": "e92ed3cc7d2e86cb5cf28c6c742cd7462bfa9855",
40
+ "gitHead": "ba16d412dadb8603392b699857501c2d7d77bc47",
41
41
  "repository": {
42
42
  "type": "git",
43
43
  "url": "git+https://github.com/egor-sergeev/apilift.git",