agent-device 0.21.29 → 0.21.30

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 (177) hide show
  1. package/android/ime-helper/dist/{agent-device-android-ime-helper-0.21.29.apk → agent-device-android-ime-helper-0.21.30.apk} +0 -0
  2. package/android/ime-helper/dist/agent-device-android-ime-helper-0.21.30.apk.sha256 +1 -0
  3. package/android/ime-helper/dist/{agent-device-android-ime-helper-0.21.29.manifest.json → agent-device-android-ime-helper-0.21.30.manifest.json} +4 -4
  4. package/android/snapshot-helper/dist/agent-device-android-snapshot-helper-0.21.30.apk +0 -0
  5. package/android/snapshot-helper/dist/agent-device-android-snapshot-helper-0.21.30.apk.sha256 +1 -0
  6. package/android/snapshot-helper/dist/{agent-device-android-snapshot-helper-0.21.29.manifest.json → agent-device-android-snapshot-helper-0.21.30.manifest.json} +7 -7
  7. package/apple/macos-helper/Sources/AgentDeviceMacOSHelper/AudioProbe.swift +4 -2
  8. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+CommandDispatch.swift +2 -1
  9. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+CommandExecution.swift +12 -0
  10. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Interaction.swift +25 -0
  11. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Models.swift +8 -1
  12. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+Snapshot.swift +9 -6
  13. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SnapshotCapturePlan.swift +3 -0
  14. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SynthesizedInteraction.swift +35 -9
  15. package/dist/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SystemModal.swift +44 -26
  16. package/dist/apple/snapshot-presentation/Sources/AgentDeviceSnapshotPresentation/SnapshotModels.swift +20 -1
  17. package/dist/apple/snapshot-presentation/Sources/AgentDeviceSnapshotPresentation/SnapshotPresentation.swift +4 -3
  18. package/dist/apple/snapshot-presentation/Sources/AgentDeviceSnapshotPresentation/SnapshotPresentationProjection.swift +4 -2
  19. package/dist/apple/snapshot-presentation/Sources/AgentDeviceSnapshotPresentation/SnapshotVisibilityFold.swift +20 -2
  20. package/dist/src/adapter.js +1 -1
  21. package/dist/src/agent-browser-lifecycle.js +1 -1
  22. package/dist/src/agent-browser-process-record.js +1 -1
  23. package/dist/src/agent-browser-provider.js +1 -1
  24. package/dist/src/agent-device-client.js +1 -1
  25. package/dist/src/alert2.js +1 -1
  26. package/dist/src/android.js +1 -1
  27. package/dist/src/app-lifecycle.js +1 -1
  28. package/dist/src/app-log-runtime2.js +3 -3
  29. package/dist/src/auth.js +1 -1
  30. package/dist/src/automation-helper.js +1 -1
  31. package/dist/src/back-mode.js +1 -1
  32. package/dist/src/cli-config.js +1 -1
  33. package/dist/src/cli-help.js +13 -10
  34. package/dist/src/cli.js +3 -3
  35. package/dist/src/client-types.d.ts +82 -13
  36. package/dist/src/cloud-artifacts.d.ts +99 -3
  37. package/dist/src/command-metadata.js +42 -42
  38. package/dist/src/composed-inventory-gateways.js +1 -1
  39. package/dist/src/connection-runtime.js +1 -1
  40. package/dist/src/connection.js +1 -1
  41. package/dist/src/contract.d.ts +2 -2
  42. package/dist/src/contracts.d.ts +1 -1
  43. package/dist/src/daemon-client-ensure.js +1 -1
  44. package/dist/src/daemon-client-ensuring.js +1 -1
  45. package/dist/src/daemon-client-lease-beat.js +1 -1
  46. package/dist/src/daemon-client-lifecycle.js +1 -1
  47. package/dist/src/daemon-client.js +2 -2
  48. package/dist/src/daemon-lifecycle-errors.js +1 -1
  49. package/dist/src/daemon-registration-owner.js +3 -3
  50. package/dist/src/daemon-registration.js +1 -1
  51. package/dist/src/daemon-resolution.js +1 -1
  52. package/dist/src/daemon-shutdown-report.js +1 -1
  53. package/dist/src/daemon-startup-diagnostics.js +1 -1
  54. package/dist/src/daemon.js +3 -3
  55. package/dist/src/device-claim-recovery.js +1 -1
  56. package/dist/src/durable-capture-resource.js +1 -1
  57. package/dist/src/durable-resource.js +1 -1
  58. package/dist/src/ended-lease.js +1 -1
  59. package/dist/src/find.js +1 -1
  60. package/dist/src/finders.js +1 -1
  61. package/dist/src/gesture-plan-types.d.ts +14 -4
  62. package/dist/src/gesture-plan.js +1 -1
  63. package/dist/src/gesture-runtime.js +1 -1
  64. package/dist/src/host4.js +1 -1
  65. package/dist/src/index.d.ts +3 -3
  66. package/dist/src/input-actions.js +1 -1
  67. package/dist/src/input-actions2.js +1 -1
  68. package/dist/src/interaction-positionals.js +1 -1
  69. package/dist/src/interaction.js +1 -1
  70. package/dist/src/interaction2.js +1 -1
  71. package/dist/src/interactor-operation-catalog.js +1 -1
  72. package/dist/src/interactor.js +5 -5
  73. package/dist/src/interactor3.js +1 -1
  74. package/dist/src/interactor4.js +1 -1
  75. package/dist/src/internal/bin.js +1 -1
  76. package/dist/src/internal/daemon.js +1 -1
  77. package/dist/src/internal/png-worker.js +1 -1
  78. package/dist/src/inventory6.js +1 -1
  79. package/dist/src/ios-node-interpretation.js +1 -1
  80. package/dist/src/ios-snapshot-acquisition.js +1 -1
  81. package/dist/src/ios-snapshot-engine.js +1 -1
  82. package/dist/src/ios-snapshot-runtime.js +1 -1
  83. package/dist/src/keyboard-occlusion.js +1 -1
  84. package/dist/src/launch-confirmation.js +1 -1
  85. package/dist/src/lease-context.js +1 -1
  86. package/dist/src/lease-registry-scope.js +1 -1
  87. package/dist/src/lease.js +1 -1
  88. package/dist/src/local-interactor-operation-set.js +1 -1
  89. package/dist/src/mechanics.js +12 -12
  90. package/dist/src/metro-session-hints.js +1 -1
  91. package/dist/src/mobile-snapshot-semantics.js +1 -1
  92. package/dist/src/observability.js +1 -1
  93. package/dist/src/observation.js +1 -1
  94. package/dist/src/parameterized-recorded-fill.js +1 -1
  95. package/dist/src/perf-facade.js +1 -1
  96. package/dist/src/platform-runtime-operation-host.js +1 -1
  97. package/dist/src/platform-runtime-unavailable.js +1 -1
  98. package/dist/src/platform-runtime.js +1 -1
  99. package/dist/src/platform-runtime2.js +1 -1
  100. package/dist/src/plugins2.js +1 -1
  101. package/dist/src/png-resize.js +1 -1
  102. package/dist/src/png-worker-client.js +1 -1
  103. package/dist/src/png-worker-contract.js +1 -1
  104. package/dist/src/provider-device-runtime.d.ts +20 -1
  105. package/dist/src/provider-plugin.d.ts +1 -1
  106. package/dist/src/react-native-overlay2.js +1 -1
  107. package/dist/src/record-runtime.js +1 -1
  108. package/dist/src/replay-maestro-backend.js +3 -3
  109. package/dist/src/replay-script-selection.js +1 -1
  110. package/dist/src/replay.d.ts +1 -1
  111. package/dist/src/request-runtime-binding.js +1 -1
  112. package/dist/src/result-serialization.js +1 -1
  113. package/dist/src/runner-error-classification.js +1 -1
  114. package/dist/src/runtime-admission.js +1 -1
  115. package/dist/src/runtime-deployment.js +1 -1
  116. package/dist/src/runtime-factory.js +1 -1
  117. package/dist/src/runtime-session.js +1 -1
  118. package/dist/src/runtime.js +5 -5
  119. package/dist/src/runtime10.js +2 -2
  120. package/dist/src/runtime3.js +5 -5
  121. package/dist/src/runtime5.js +1 -1
  122. package/dist/src/runtime6.js +1 -1
  123. package/dist/src/runtime7.js +1 -1
  124. package/dist/src/runtime8.js +1 -1
  125. package/dist/src/runtime9.js +2 -2
  126. package/dist/src/screenshot-image-size.js +1 -0
  127. package/dist/src/screenshot-image.js +1 -1
  128. package/dist/src/screenshot-runtime.js +1 -1
  129. package/dist/src/screenshot3.js +2 -2
  130. package/dist/src/sdk-batch.js +1 -1
  131. package/dist/src/sdk-contracts.d.ts +7 -1
  132. package/dist/src/sdk-finders.js +1 -1
  133. package/dist/src/sdk-selectors.d.ts +1 -1
  134. package/dist/src/sdk-selectors.js +1 -1
  135. package/dist/src/selection.js +0 -0
  136. package/dist/src/selector-pipeline-policy.js +1 -1
  137. package/dist/src/selector-runtime.js +1 -1
  138. package/dist/src/selectors.js +1 -1
  139. package/dist/src/server-startup.js +1 -1
  140. package/dist/src/session-replay-vars.js +1 -1
  141. package/dist/src/session-store.js +2 -2
  142. package/dist/src/session.js +1 -1
  143. package/dist/src/session2.js +5 -5
  144. package/dist/src/settle-observation-capture.js +1 -1
  145. package/dist/src/snapshot-capture-annotations.js +1 -1
  146. package/dist/src/snapshot-chrome.js +1 -1
  147. package/dist/src/snapshot-desktop-projection.js +1 -1
  148. package/dist/src/snapshot-helper-install.js +7 -5
  149. package/dist/src/snapshot-node-lookup.js +1 -1
  150. package/dist/src/snapshot-occlusion.js +1 -1
  151. package/dist/src/snapshot-runtime-binding.js +1 -1
  152. package/dist/src/snapshot-runtime-capture-input.js +1 -1
  153. package/dist/src/snapshot-runtime.js +1 -1
  154. package/dist/src/snapshot-state.js +1 -1
  155. package/dist/src/snapshot.js +1 -1
  156. package/dist/src/src.js +1 -1
  157. package/dist/src/src3.js +1 -1
  158. package/dist/src/src4.js +1 -1
  159. package/dist/src/tap-keyboard-occlusion.js +1 -1
  160. package/dist/src/target-evidence-tree.js +1 -1
  161. package/dist/src/target-evidence.js +1 -1
  162. package/dist/src/telephony-runtime.js +1 -1
  163. package/dist/src/text-entry-focus.js +1 -1
  164. package/dist/src/touch-reference-frame.js +1 -1
  165. package/dist/src/touch-runtime2.js +1 -1
  166. package/dist/src/tree.js +1 -1
  167. package/dist/src/tv-remote-runtime.js +1 -1
  168. package/dist/src/tv-remote.js +2 -2
  169. package/dist/src/type-text-runtime.js +1 -1
  170. package/dist/src/video.js +1 -1
  171. package/dist/src/webdriver-source.js +1 -1
  172. package/package.json +1 -1
  173. package/server.json +2 -2
  174. package/android/ime-helper/dist/agent-device-android-ime-helper-0.21.29.apk.sha256 +0 -1
  175. package/android/snapshot-helper/dist/agent-device-android-snapshot-helper-0.21.29.apk +0 -0
  176. package/android/snapshot-helper/dist/agent-device-android-snapshot-helper-0.21.29.apk.sha256 +0 -1
  177. package/dist/src/daemon-client-lifecycle-request.js +0 -1
@@ -1 +1 @@
1
- import{R as e}from"./sdk-contracts.js";import{Ir as t}from"./sdk-batch.js";import{t as n}from"./bounds.js";import{t as r}from"./parser.js";function i(t){try{return r(t)}catch(t){throw new e(`COMMAND_FAILED`,`Failed to parse WebDriver page source XML: ${t instanceof Error?t.message:String(t)}`,void 0,t)}}function a(e){let t=n(e.bounds??null);if(t)return t;let r=u(e.x),i=u(e.y),a=u(e.width),o=u(e.height);if(r!==void 0&&i!==void 0&&a!==void 0&&o!==void 0)return{x:r,y:i,width:a,height:o}}function o(e,t){for(let n of t){let t=s(e[n]);if(t!==void 0)return t}}function s(e){return e||void 0}function c(e,t){return e===void 0?t:e===`true`||e===`1`?!0:e===`false`||e===`0`?!1:t===void 0&&void 0}function l(e){return!!(e&&e.width>0&&e.height>0)}function u(e){if(e===void 0||e===``)return;let t=Number(e);return Number.isFinite(t)?t:void 0}function d(e,t){return s(t.class)??s(e.replace(/^XCUIElementType/,``).toLowerCase())}function f(e,t=`ios`){let n=i(e),r=[],a=[];for(let e of n)p(r,e,void 0,0,a,t);return{nodes:r,roots:a}}function p(e,t,n,r,i,a){let o=m(t,a)?n:g(e,t,n,r,i,a),s=o===n?r:r+1;for(let n of t.children)p(e,n,o,s,i,a)}function m(e,t){if(Object.keys(e.attributes).length===0)return!0;let n=e.name.toLowerCase();return t===`ios`&&(n===`hierarchy`||n===`appiumaut`)}function h(e,t){return t===`android`?s(e.attributes.class)??e.name:e.name}function g(e,t,n,r,i,o){let s=e.length,c=a(t.attributes),l=h(t,o);return e.push(_(s,l,t.attributes,n,r,c,o)),n===void 0&&i.push({type:l,...c?{rect:c}:{},rectStatus:O(t.attributes,c)}),s}function _(e,t,n,r,i,a,l){return{index:e,type:t,role:d(t,n),...v(n,l),...l===`android`?y(t,n):{value:s(n.value)},identifier:o(n,[`resource-id`,`id`,`accessibility-id`,`name`]),...l===`android`&&n.package?{bundleId:n.package}:{},rect:a,...T(n,a,l),...C(t,n,l),...x(`heading`,c(n.heading)),...x(`roleDescription`,o(n,[`roleDescription`,`role-description`])??(l===`android`?w(n.extras):void 0)),depth:i,parentIndex:r}}function v(e,t){if(t===`ios`)return{label:o(e,[`label`,`text`,`name`])};let n=s(e[`content-desc`]),r=s(e.text)??n;return{label:r,...n!==void 0&&n!==r?{contentDescription:n}:{}}}function y(e,n){let r=c(n[`showing-hint`]??n[`hint-showing`]??n.hintShowing);return{value:t({type:e,text:n.text,editable:c(n.editable)===!0||b(n[`input-type`]),password:c(n.password),hintShowing:r}),...x(`placeholder`,s(n.hint)),...x(`hintShowing`,r)}}function b(e){let t=u(e);if(t===void 0||!Number.isInteger(t)||t<0||t>2147483647)return!1;let n=t&15;return n>=1&&n<=4}function x(e,t){return t===void 0?{}:{[e]:t}}const S=/(CheckBox|RadioButton|Switch|ToggleButton|CheckedTextView)$/;function C(e,t,n){let r={...x(`password`,c(t.password)),...x(`editable`,c(t.editable))},i=c(t.checked);if(n===`ios`)return{...r,...x(`checked`,i)};let a=c(t.checkable)??S.test(e);return{...r,...a&&i!==void 0?{checked:i}:{}}}function w(e){let t=e?.split(`;`).find(e=>e.startsWith(`AccessibilityNodeInfo.roleDescription=`));return s(t?.slice(38))}function T(e,t,n){let r=n===`android`||void 0,i=c(e.enabled,r),a=c(e.displayed??e.visible,r);return n===`android`?{enabled:i,selected:c(e.selected,!1),focused:c(e.focused,!1),visibleToUser:a,hittable:a===!0&&i===!0&&l(t)}:{...E(`enabled`,i),...E(`selected`,c(e.selected)),...E(`focused`,c(e.focused)),...E(`visibleToUser`,a),...D(e.hittable)}}function E(e,t){return t===void 0?{}:{[e]:t}}function D(e){let t=c(e);return t===void 0?{}:{hittable:t}}function O(e,t){let n=e.bounds!==void 0,r=[`x`,`y`,`width`,`height`].every(t=>e[t]!==void 0);return!n&&!r?`not-provided`:l(t)?`reported`:`invalid`}export{f as parseWebDriverSourceFacts};
1
+ import{R as e}from"./sdk-contracts.js";import{zr as t}from"./sdk-batch.js";import{t as n}from"./bounds.js";import{t as r}from"./parser.js";function i(t){try{return r(t)}catch(t){throw new e(`COMMAND_FAILED`,`Failed to parse WebDriver page source XML: ${t instanceof Error?t.message:String(t)}`,void 0,t)}}function a(e){let t=n(e.bounds??null);if(t)return t;let r=u(e.x),i=u(e.y),a=u(e.width),o=u(e.height);if(r!==void 0&&i!==void 0&&a!==void 0&&o!==void 0)return{x:r,y:i,width:a,height:o}}function o(e,t){for(let n of t){let t=s(e[n]);if(t!==void 0)return t}}function s(e){return e||void 0}function c(e,t){return e===void 0?t:e===`true`||e===`1`?!0:e===`false`||e===`0`?!1:t===void 0&&void 0}function l(e){return!!(e&&e.width>0&&e.height>0)}function u(e){if(e===void 0||e===``)return;let t=Number(e);return Number.isFinite(t)?t:void 0}function d(e,t){return s(t.class)??s(e.replace(/^XCUIElementType/,``).toLowerCase())}function f(e,t=`ios`){let n=i(e),r=[],a=[];for(let e of n)p(r,e,void 0,0,a,t);return{nodes:r,roots:a}}function p(e,t,n,r,i,a){let o=m(t,a)?n:g(e,t,n,r,i,a),s=o===n?r:r+1;for(let n of t.children)p(e,n,o,s,i,a)}function m(e,t){if(Object.keys(e.attributes).length===0)return!0;let n=e.name.toLowerCase();return t===`ios`&&(n===`hierarchy`||n===`appiumaut`)}function h(e,t){return t===`android`?s(e.attributes.class)??e.name:e.name}function g(e,t,n,r,i,o){let s=e.length,c=a(t.attributes),l=h(t,o);return e.push(_(s,l,t.attributes,n,r,c,o)),n===void 0&&i.push({type:l,...c?{rect:c}:{},rectStatus:O(t.attributes,c)}),s}function _(e,t,n,r,i,a,l){return{index:e,type:t,role:d(t,n),...v(n,l),...l===`android`?y(t,n):{value:s(n.value)},identifier:o(n,[`resource-id`,`id`,`accessibility-id`,`name`]),...l===`android`&&n.package?{bundleId:n.package}:{},rect:a,...T(n,a,l),...C(t,n,l),...x(`heading`,c(n.heading)),...x(`roleDescription`,o(n,[`roleDescription`,`role-description`])??(l===`android`?w(n.extras):void 0)),depth:i,parentIndex:r}}function v(e,t){if(t===`ios`)return{label:o(e,[`label`,`text`,`name`])};let n=s(e[`content-desc`]),r=s(e.text)??n;return{label:r,...n!==void 0&&n!==r?{contentDescription:n}:{}}}function y(e,n){let r=c(n[`showing-hint`]??n[`hint-showing`]??n.hintShowing);return{value:t({type:e,text:n.text,editable:c(n.editable)===!0||b(n[`input-type`]),password:c(n.password),hintShowing:r}),...x(`placeholder`,s(n.hint)),...x(`hintShowing`,r)}}function b(e){let t=u(e);if(t===void 0||!Number.isInteger(t)||t<0||t>2147483647)return!1;let n=t&15;return n>=1&&n<=4}function x(e,t){return t===void 0?{}:{[e]:t}}const S=/(CheckBox|RadioButton|Switch|ToggleButton|CheckedTextView)$/;function C(e,t,n){let r={...x(`password`,c(t.password)),...x(`editable`,c(t.editable))},i=c(t.checked);if(n===`ios`)return{...r,...x(`checked`,i)};let a=c(t.checkable)??S.test(e);return{...r,...a&&i!==void 0?{checked:i}:{}}}function w(e){let t=e?.split(`;`).find(e=>e.startsWith(`AccessibilityNodeInfo.roleDescription=`));return s(t?.slice(38))}function T(e,t,n){let r=n===`android`||void 0,i=c(e.enabled,r),a=c(e.displayed??e.visible,r);return n===`android`?{enabled:i,selected:c(e.selected,!1),focused:c(e.focused,!1),visibleToUser:a,hittable:a===!0&&i===!0&&l(t)}:{...E(`enabled`,i),...E(`selected`,c(e.selected)),...E(`focused`,c(e.focused)),...E(`visibleToUser`,a),...D(e.hittable)}}function E(e,t){return t===void 0?{}:{[e]:t}}function D(e){let t=c(e);return t===void 0?{}:{hittable:t}}function O(e,t){let n=e.bounds!==void 0,r=[`x`,`y`,`width`,`height`].every(t=>e[t]!==void 0);return!n&&!r?`not-provided`:l(t)?`reported`:`invalid`}export{f as parseWebDriverSourceFacts};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-device",
3
- "version": "0.21.29",
3
+ "version": "0.21.30",
4
4
  "description": "Mobile app automation and verification for AI coding agents. CLI, MCP server, and typed Node.js API for iOS, Android, HarmonyOS, TV, web, macOS, and Linux.",
5
5
  "mcpName": "io.github.callstack/agent-device",
6
6
  "license": "MIT",
package/server.json CHANGED
@@ -7,12 +7,12 @@
7
7
  "url": "https://github.com/callstack/agent-device",
8
8
  "source": "github"
9
9
  },
10
- "version": "0.21.29",
10
+ "version": "0.21.30",
11
11
  "packages": [
12
12
  {
13
13
  "registryType": "npm",
14
14
  "identifier": "agent-device",
15
- "version": "0.21.29",
15
+ "version": "0.21.30",
16
16
  "transport": {
17
17
  "type": "stdio"
18
18
  },
@@ -1 +0,0 @@
1
- ba607315bd20a7efadd7b90ae0820c07f76d8c6e19b77641a98eb80c9b7e91db agent-device-android-ime-helper-0.21.29.apk
@@ -1 +0,0 @@
1
- 5850064be83c8465f212a0cb1fad8bc3440b9caff437b7d7b3329499148ee330 agent-device-android-snapshot-helper-0.21.29.apk
@@ -1 +0,0 @@
1
- import{R as e,ct as t}from"./sdk-contracts.js";import{mt as n}from"./sdk-io.js";import"./diagnostics.js";import{c as r,l as i}from"./daemon-client.js";import{a,n as o,s}from"./daemon-resolution.js";import{n as c,s as l}from"./daemon-lifecycle-errors.js";const u=6e4;function d(t){return t instanceof e&&t.details?.reason===`daemon_transport_failure`}async function f(e,o,s){let c=n(),l=a({mode:s,token:e.token,fence:{pid:e.pid,processStartTime:e.processStartTime??null},requestId:c}),u;try{u=await i(e,l,`auto`,o.paths,1e4,{host:o.host,timeoutRecovery:`none`})}catch(t){if(r(t)||d(t))return{outcome:`gone`};let n=m(t),i=n&&h(n,e,o);if(i)return i;throw t}if(u.ok)return{outcome:`draining`};let f=u.error.details,p=h({reason:f?.reason,details:f},e,o);if(p)return p;t(u.error)}const p=[o.ownerEmbedded,o.notEmbedded];function m(t){if(!(t instanceof e))return;let n=t.details?.reason;return typeof n==`string`&&p.includes(n)?{reason:n,details:t.details}:void 0}function h(e,t,n){let r=n.paths.baseDir;if(e.reason===o.busy)throw c(t,r,s(e.details));if(e.reason===o.notEmbedded)throw l({info:t,stateDir:r,owner:`detached`});if(e.reason===o.ownerEmbedded)throw l({info:t,stateDir:r,owner:`embedded`});if(e.reason===o.instanceMismatch||e.reason===`daemon_shutting_down`)return{outcome:`gone`}}export{f as n,u as t};