@absolutejs/absolute 0.20.0-beta.105 → 0.20.0-beta.106

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.
@@ -3,6 +3,7 @@ import { type AbsoluteIosReleaseMetadata } from './iosRelease';
3
3
  type CommandOptions = {
4
4
  cwd?: string;
5
5
  env?: Record<string, string | undefined>;
6
+ signal?: AbortSignal;
6
7
  };
7
8
  export type AbsoluteIosReleaseCommandResult = {
8
9
  exitCode: number;
@@ -43,6 +44,7 @@ export declare const runAbsoluteIosSimulatorReleaseAcceptance: (options: {
43
44
  config: NormalizedAbsoluteMobileConfig;
44
45
  release: AbsoluteIosRelease;
45
46
  run?: AbsoluteIosReleaseCommand;
47
+ signal?: AbortSignal;
46
48
  udid: string;
47
49
  xcodebuild?: string;
48
50
  xcrun?: string;
@@ -58,6 +60,7 @@ export declare const runAbsoluteIosDeviceReleaseAcceptance: (options: {
58
60
  }) => Promise<number>;
59
61
  release: AbsoluteIosRelease;
60
62
  run?: AbsoluteIosReleaseCommand;
63
+ signal?: AbortSignal;
61
64
  xcrun?: string;
62
65
  }) => Promise<AbsoluteIosReleaseAcceptanceResult>;
63
66
  export {};
@@ -53,6 +53,7 @@ export type AbsoluteNativeIosReleaseResult = {
53
53
  installMs: number;
54
54
  launchMs: number;
55
55
  networkUnavailable: 'not-proven' | 'user-confirmed';
56
+ remote?: boolean;
56
57
  releaseId: string;
57
58
  relaunchMs: number;
58
59
  signed: boolean;
@@ -1,6 +1,7 @@
1
1
  import type { FileSink } from 'bun';
2
2
  import type { NormalizedAbsoluteMobileConfig } from './config';
3
3
  import { installAbsoluteIosRelease, type AbsoluteIosReleaseMetadata } from './iosRelease';
4
+ import type { AbsoluteIosRelease, AbsoluteIosReleaseAcceptanceResult } from './iosReleaseAcceptance';
4
5
  import type { AbsoluteIosDevPhaseTiming, AbsoluteIosDevSession, AbsoluteIosDevState, AbsoluteIosNativeLogEntry } from './iosSimulatorController';
5
6
  import type { AbsoluteExpoDevPhaseTiming, AbsoluteExpoDevSession, AbsoluteExpoDevState } from './expoDevController';
6
7
  export { ABSOLUTE_REMOTE_MAC_EVENT_PREFIX, ABSOLUTE_REMOTE_MAC_PROTOCOL_VERSION } from './remoteMacWire';
@@ -109,12 +110,41 @@ export type BuildAbsoluteRemoteIosReleaseOptions = {
109
110
  outputDirectory?: string;
110
111
  prepareBuildNumber?: (buildIdentity: string) => Promise<number>;
111
112
  project: AbsoluteRemoteIosDevProject;
113
+ registeredDeviceArtifact?: boolean;
112
114
  retrieveRelease?: (project: AbsoluteRemoteIosDevProject, metadata: AbsoluteIosReleaseMetadata, outputDirectory?: string) => Promise<Awaited<ReturnType<typeof installAbsoluteIosRelease>>>;
113
115
  syncReleaseInputs?: (project: AbsoluteRemoteIosDevProject) => Promise<void>;
114
116
  syncProject?: (project: AbsoluteRemoteIosDevProject) => Promise<void>;
115
117
  signal?: AbortSignal;
116
118
  transport?: Pick<AbsoluteRemoteMacTransport, 'capture' | 'spawn'>;
117
119
  };
120
+ export type RunAbsoluteRemoteIosReleaseAcceptanceOptions = {
121
+ acquireLease?: (project: AbsoluteRemoteIosDevProject, signal?: AbortSignal) => Promise<AbsoluteRemoteMacLease>;
122
+ deviceIdentifier?: string;
123
+ distribution: 'registered-device' | 'simulator-release' | 'testflight';
124
+ installAgent?: (project: AbsoluteRemoteIosDevProject) => Promise<{
125
+ remotePath: string;
126
+ uploaded?: boolean;
127
+ }>;
128
+ log?: (message: string) => void;
129
+ networkUnavailableConfirmed?: boolean;
130
+ onPhaseTiming?: (timing: {
131
+ durationMs: number;
132
+ phase: string;
133
+ }) => void;
134
+ project: AbsoluteRemoteIosDevProject;
135
+ release: AbsoluteIosRelease;
136
+ signal?: AbortSignal;
137
+ simulatorUdid?: string;
138
+ syncProject?: (project: AbsoluteRemoteIosDevProject) => Promise<void>;
139
+ syncReleaseInputs?: (project: AbsoluteRemoteIosDevProject) => Promise<void>;
140
+ syncRelease?: (project: AbsoluteRemoteIosDevProject, release: AbsoluteIosRelease) => Promise<void>;
141
+ transport?: Pick<AbsoluteRemoteMacTransport, 'capture' | 'spawn'>;
142
+ };
143
+ export type AbsoluteRemoteIosReleaseAcceptance = {
144
+ result: AbsoluteIosReleaseAcceptanceResult;
145
+ targetId: string;
146
+ timings: Record<string, number>;
147
+ };
118
148
  export type AbsoluteRemoteMacLease = {
119
149
  heartbeat: () => Promise<void>;
120
150
  path: string;
@@ -180,13 +210,12 @@ export declare const acquireAbsoluteRemoteMacReleaseLease: (project: AbsoluteRem
180
210
  staleSeconds?: number;
181
211
  transport?: Pick<AbsoluteRemoteMacTransport, "capture">;
182
212
  }) => Promise<AbsoluteRemoteMacLease>;
183
- declare const cleanAbsoluteRemoteMacWorkspace: (profile: AbsoluteRemoteMacProfile, transport?: Pick<AbsoluteRemoteMacTransport, "capture">) => Promise<{
213
+ export declare const cleanAbsoluteRemoteMacWorkspace: (profile: AbsoluteRemoteMacProfile, transport?: Pick<AbsoluteRemoteMacTransport, "capture">) => Promise<{
184
214
  profile: string;
185
215
  removed: number;
186
216
  workspaceRoot: string;
187
217
  }>;
188
- declare const inspectAbsoluteRemoteMacWorkspace: (profile: AbsoluteRemoteMacProfile, transport?: Pick<AbsoluteRemoteMacTransport, "capture">) => Promise<AbsoluteRemoteMacWorkspaceInspection>;
189
- export { cleanAbsoluteRemoteMacWorkspace, inspectAbsoluteRemoteMacWorkspace };
218
+ export declare const inspectAbsoluteRemoteMacWorkspace: (profile: AbsoluteRemoteMacProfile, transport?: Pick<AbsoluteRemoteMacTransport, "capture">) => Promise<AbsoluteRemoteMacWorkspaceInspection>;
190
219
  export declare const installAbsoluteRemoteMacAgent: (project: AbsoluteRemoteIosDevProject) => Promise<{
191
220
  remotePath: string;
192
221
  uploaded: boolean;
@@ -210,6 +239,9 @@ export declare const absoluteRemoteReleaseInputSyncCommands: (project: AbsoluteR
210
239
  remote: string[];
211
240
  tar: string[];
212
241
  };
242
+ export declare const syncAbsoluteRemoteMacAcceptanceRelease: (project: AbsoluteRemoteIosDevProject, release: AbsoluteIosRelease, options?: {
243
+ signal?: AbortSignal;
244
+ }) => Promise<void>;
213
245
  export declare const syncAbsoluteRemoteMacReleaseInputs: (project: AbsoluteRemoteIosDevProject, options?: {
214
246
  signal?: AbortSignal;
215
247
  }) => Promise<void>;
@@ -246,5 +278,14 @@ export declare const buildAbsoluteRemoteIosRelease: (options: BuildAbsoluteRemot
246
278
  signed: boolean;
247
279
  };
248
280
  }>;
281
+ export declare const runAbsoluteRemoteIosReleaseAcceptance: (options: RunAbsoluteRemoteIosReleaseAcceptanceOptions) => Promise<{
282
+ timings: {
283
+ 'remote-release-acceptance-lease': number;
284
+ 'remote-release-acceptance-sync': number;
285
+ total: number;
286
+ };
287
+ result: AbsoluteIosReleaseAcceptanceResult;
288
+ targetId: string;
289
+ }>;
249
290
  export declare const startAbsoluteRemoteExpoIosDevSession: (options: AbsoluteRemoteExpoIosOptions) => Promise<AbsoluteExpoDevSession>;
250
291
  export declare const startAbsoluteRemoteIosDevSession: (options: AbsoluteRemoteIosOptions) => Promise<AbsoluteIosDevSession>;
@@ -1,2 +1,2 @@
1
1
  export declare const ABSOLUTE_REMOTE_MAC_EVENT_PREFIX = "ABSOLUTE_REMOTE_MAC\t";
2
- export declare const ABSOLUTE_REMOTE_MAC_PROTOCOL_VERSION = 3;
2
+ export declare const ABSOLUTE_REMOTE_MAC_PROTOCOL_VERSION = 4;
package/package.json CHANGED
@@ -537,7 +537,7 @@
537
537
  ]
538
538
  }
539
539
  },
540
- "version": "0.20.0-beta.105",
540
+ "version": "0.20.0-beta.106",
541
541
  "workspaces": [
542
542
  "tests/fixtures/*",
543
543
  "tests/fixtures/_packages/*"