@absolutejs/absolute 0.20.0-beta.2 → 0.20.0-beta.21

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 (75) hide show
  1. package/README.md +135 -0
  2. package/dist/angular/browser.js +15 -1
  3. package/dist/angular/browser.js.map +3 -3
  4. package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
  5. package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
  6. package/dist/angular/index.js +341 -22
  7. package/dist/angular/index.js.map +8 -5
  8. package/dist/angular/server.js +341 -22
  9. package/dist/angular/server.js.map +8 -5
  10. package/dist/build.js +1268 -598
  11. package/dist/build.js.map +17 -14
  12. package/dist/cli/index.js +5005 -1614
  13. package/dist/dev/client/cssUtils.ts +16 -2
  14. package/dist/dev/client/handlers/rebuild.ts +11 -1
  15. package/dist/dev/client/hmrClient.ts +9 -3
  16. package/dist/dev/client/hmrTiming.ts +14 -7
  17. package/dist/dev/client/syncDevtools.ts +237 -0
  18. package/dist/index.js +1644 -863
  19. package/dist/index.js.map +26 -23
  20. package/dist/mobile/browser.js +123 -1
  21. package/dist/mobile/browser.js.map +6 -4
  22. package/dist/mobile/index.js +3369 -298
  23. package/dist/mobile/index.js.map +27 -13
  24. package/dist/mobile/remoteMacAgentEntry.js +29 -0
  25. package/dist/mobile/shellAuth.js +35 -0
  26. package/dist/mobile/shellBootstrap.js +585 -0
  27. package/dist/mobile/shellSync.js +123 -0
  28. package/dist/src/angular/pageHandler.d.ts +3 -0
  29. package/dist/src/build/pwa.d.ts +16 -0
  30. package/dist/src/cli/config/server.d.ts +1 -1
  31. package/dist/src/core/pageHandlers.d.ts +11 -2
  32. package/dist/src/core/prepare.d.ts +6 -0
  33. package/dist/src/dev/clientManager.d.ts +2 -0
  34. package/dist/src/mobile/androidEmulatorController.d.ts +6 -1
  35. package/dist/src/mobile/browser.d.ts +1 -0
  36. package/dist/src/mobile/buildPipeline.d.ts +1 -0
  37. package/dist/src/mobile/capacitorBundle.d.ts +22 -1
  38. package/dist/src/mobile/client.d.ts +4 -0
  39. package/dist/src/mobile/deviceCapabilities.d.ts +33 -0
  40. package/dist/src/mobile/index.d.ts +9 -0
  41. package/dist/src/mobile/iosConformance.d.ts +15 -0
  42. package/dist/src/mobile/iosNativeWatcher.d.ts +19 -0
  43. package/dist/src/mobile/iosRelease.d.ts +2 -2
  44. package/dist/src/mobile/iosSimulatorController.d.ts +89 -0
  45. package/dist/src/mobile/nativeAuth.d.ts +17 -0
  46. package/dist/src/mobile/nativeBackgroundSync.d.ts +4 -0
  47. package/dist/src/mobile/nativeDeviceCapabilities.d.ts +6 -0
  48. package/dist/src/mobile/releaseArtifact.d.ts +2 -0
  49. package/dist/src/mobile/remoteMacAgent.d.ts +2 -0
  50. package/dist/src/mobile/remoteMacAgentEntry.d.ts +1 -0
  51. package/dist/src/mobile/remoteMacProtocol.d.ts +114 -0
  52. package/dist/src/mobile/remoteMacWire.d.ts +2 -0
  53. package/dist/src/mobile/shellAuth.d.ts +13 -0
  54. package/dist/src/mobile/shellBootstrap.d.ts +18 -1
  55. package/dist/src/mobile/shellSync.d.ts +19 -0
  56. package/dist/src/mobile/staticDocument.d.ts +5 -0
  57. package/dist/src/mobile/syncRemediation.d.ts +10 -0
  58. package/dist/src/mobile/syncSchema.d.ts +9 -0
  59. package/dist/src/mobile/transport.d.ts +16 -1
  60. package/dist/src/plugins/hmr.d.ts +3 -0
  61. package/dist/src/plugins/imageOptimizer.d.ts +1 -1
  62. package/dist/src/svelte/pageHandler.d.ts +3 -0
  63. package/dist/src/utils/imageProcessing.d.ts +3 -0
  64. package/dist/src/utils/loadConfig.d.ts +1 -0
  65. package/dist/src/vue/pageHandler.d.ts +3 -0
  66. package/dist/svelte/index.js +312 -23
  67. package/dist/svelte/index.js.map +7 -4
  68. package/dist/svelte/server.js +307 -18
  69. package/dist/svelte/server.js.map +7 -4
  70. package/dist/types/build.d.ts +14 -0
  71. package/dist/vue/index.js +312 -23
  72. package/dist/vue/index.js.map +7 -4
  73. package/dist/vue/server.js +307 -18
  74. package/dist/vue/server.js.map +7 -4
  75. package/package.json +30 -9
@@ -0,0 +1,123 @@
1
+ // src/mobile/shellSync.ts
2
+ import { lifecycle, network } from "@absolutejs/devices";
3
+ import {
4
+ createCapacitorSyncLocalStore,
5
+ createCapacitorSyncProtection,
6
+ AbsoluteBackgroundSync,
7
+ configureCapacitorBackgroundSync,
8
+ installCapacitorSyncLifecycle
9
+ } from "@absolutejs/sync-capacitor";
10
+ import { installSyncClientRuntimeTransport } from "@absolutejs/sync/client/runtime";
11
+
12
+ // src/mobile/syncRemediation.ts
13
+ import {
14
+ discardSyncRuntimeDeadLetter,
15
+ inspectSyncRuntime,
16
+ rebaseSyncRuntimeDeadLetter,
17
+ retrySyncRuntimeDeadLetter
18
+ } from "@absolutejs/sync/client/runtime";
19
+ var REMEDIATION_REGISTRY = Symbol.for("@absolutejs/mobile-sync-remediation");
20
+ var isRegistry = (value) => typeof value === "object" && value !== null && Array.isArray(Reflect.get(value, "installations"));
21
+ var resolveRegistry = () => {
22
+ const existing = Reflect.get(globalThis, REMEDIATION_REGISTRY);
23
+ if (isRegistry(existing))
24
+ return existing;
25
+ const created = { installations: [] };
26
+ Object.defineProperty(globalThis, REMEDIATION_REGISTRY, {
27
+ configurable: false,
28
+ enumerable: false,
29
+ value: created,
30
+ writable: false
31
+ });
32
+ return created;
33
+ };
34
+ var registry = resolveRegistry();
35
+ var installAbsoluteMobileSyncRemediation = (bridge = {
36
+ discard: discardSyncRuntimeDeadLetter,
37
+ inspect: inspectSyncRuntime,
38
+ rebase: rebaseSyncRuntimeDeadLetter,
39
+ retry: retrySyncRuntimeDeadLetter
40
+ }) => {
41
+ const installation = { bridge };
42
+ registry.installations.push(installation);
43
+ return () => {
44
+ const index = registry.installations.indexOf(installation);
45
+ if (index >= 0)
46
+ registry.installations.splice(index, 1);
47
+ };
48
+ };
49
+
50
+ // src/mobile/shellSync.ts
51
+ var reloadShell = () => globalThis.location.reload();
52
+ var ABSOLUTE_MOBILE_SYNC_STATUS_EVENT = "absolute:sync-status";
53
+ var reportShellStatus = (status) => globalThis.dispatchEvent(new CustomEvent(ABSOLUTE_MOBILE_SYNC_STATUS_EVENT, { detail: status }));
54
+ var installAbsoluteMobileShellSync = (auth, config, options = {}) => {
55
+ const namespace = auth.principal?.namespace;
56
+ const store = namespace ? options.createStore?.({
57
+ protection: createCapacitorSyncProtection(),
58
+ storageSchema: config?.storageSchema
59
+ }) ?? createCapacitorSyncLocalStore({
60
+ protection: createCapacitorSyncProtection(),
61
+ storageSchema: config?.storageSchema
62
+ }) : undefined;
63
+ const installLifecycle = options.installLifecycle ?? installCapacitorSyncLifecycle;
64
+ const reportStatus = options.reportStatus ?? reportShellStatus;
65
+ const configureBackground = options.configureBackground ?? configureCapacitorBackgroundSync;
66
+ const clearBackground = options.clearBackground ?? (() => AbsoluteBackgroundSync.clear());
67
+ if (namespace && config) {
68
+ configureBackground({
69
+ clientId: auth.clientId,
70
+ endpoint: config.background.endpoint,
71
+ intervalMinutes: config.background.intervalMinutes,
72
+ issuer: auth.issuer,
73
+ namespace
74
+ }).catch((error) => console.error("[Absolute Mobile] Background Sync configuration failed:", error));
75
+ } else {
76
+ clearBackground().catch(() => {
77
+ return;
78
+ });
79
+ }
80
+ const removeTransport = installSyncClientRuntimeTransport({
81
+ ...namespace && store ? { durable: { namespace, store } } : {},
82
+ socketTicket: auth.socketTicket,
83
+ registerClient: (client) => {
84
+ let active2 = true;
85
+ const removeStatus = client.subscribeStatus(reportStatus);
86
+ const reportLifecycleFailure = (error) => console.error("[Absolute Mobile] Sync lifecycle installation failed:", error);
87
+ const removal = installLifecycle({
88
+ client,
89
+ lifecycle,
90
+ network
91
+ }).catch((error) => {
92
+ reportLifecycleFailure(error);
93
+ return;
94
+ });
95
+ return () => {
96
+ if (!active2)
97
+ return;
98
+ active2 = false;
99
+ removeStatus();
100
+ removal.then((remove) => remove?.());
101
+ };
102
+ }
103
+ });
104
+ const removeRemediation = installAbsoluteMobileSyncRemediation();
105
+ const reload = options.reload ?? reloadShell;
106
+ const removePrincipalListener = auth.onPrincipalChange((principal) => {
107
+ if (principal?.namespace !== namespace)
108
+ reload();
109
+ });
110
+ let active = true;
111
+ return () => {
112
+ if (!active)
113
+ return;
114
+ active = false;
115
+ removePrincipalListener();
116
+ removeRemediation();
117
+ removeTransport();
118
+ };
119
+ };
120
+ export {
121
+ installAbsoluteMobileShellSync,
122
+ ABSOLUTE_MOBILE_SYNC_STATUS_EVENT
123
+ };
@@ -1,4 +1,5 @@
1
1
  import type { EnvironmentProviders, Provider } from '@angular/core';
2
+ import type { AbsoluteMobileBuildPageMetadata } from '../mobile/buildMetadata';
2
3
  import { type StreamingSlotEnhancerOptions } from '../core/responseEnhancers';
3
4
  type AngularPageRenderOptions = StreamingSlotEnhancerOptions & {
4
5
  collectStreamingSlots?: boolean;
@@ -9,6 +10,8 @@ type AngularPageRenderOptions = StreamingSlotEnhancerOptions & {
9
10
  * passes no generic at all) can omit `requestContext`. */
10
11
  type HasNoRequiredContextKeys<Ctx> = keyof Ctx extends never ? true : Partial<Ctx> extends Ctx ? true : false;
11
12
  export type AngularPageRequestInput<Ctx = unknown> = AngularPageRenderOptions & {
13
+ /** @internal Build-generated mobile identity. Application code must not set this. */
14
+ __absoluteMobile?: AbsoluteMobileBuildPageMetadata;
12
15
  headTag?: `<head>${string}</head>`;
13
16
  indexPath: string;
14
17
  pagePath: string;
@@ -0,0 +1,16 @@
1
+ import type { PwaConfig } from '../../types/build';
2
+ export declare const injectPwaBootstrapHtml: (html: string) => string;
3
+ export type AbsolutePwaBuildArtifacts = {
4
+ bootstrapBanner: string;
5
+ bootstrapPublicPath: string;
6
+ manifestPath?: string;
7
+ serviceWorkerPath: string;
8
+ };
9
+ export declare const materializeAbsolutePwa: ({ buildPath, config, generatedRoot, projectRoot, write }: {
10
+ buildPath: string;
11
+ config: PwaConfig;
12
+ generatedRoot: string;
13
+ projectRoot: string;
14
+ /** Incremental HMR builds reuse the stable artifacts from the full build. */
15
+ write?: boolean;
16
+ }) => Promise<AbsolutePwaBuildArtifacts>;
@@ -391,7 +391,7 @@ export declare const launchConfig: (args: string[], cwd?: string) => Promise<imp
391
391
  status?: number | keyof import("elysia").StatusMap;
392
392
  cookie?: Record<string, import("elysia").BaseCookie>;
393
393
  };
394
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 500 | 100 | 200 | 400 | 404 | 300 | 304 | 426 | 302 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 301 | 303 | 307 | 308 | 401 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
394
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 500 | 100 | 200 | 400 | 404 | 300 | 304 | 426 | 204 | 302 | 101 | 102 | 103 | 201 | 202 | 203 | 205 | 206 | 207 | 208 | 301 | 303 | 307 | 308 | 401 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 420 | 421 | 422 | 423 | 424 | 425 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
395
395
  readonly 100: "Continue";
396
396
  readonly 101: "Switching Protocols";
397
397
  readonly 102: "Processing";
@@ -1,5 +1,14 @@
1
1
  import { type StreamingSlotEnhancerOptions } from './responseEnhancers';
2
+ import type { AbsoluteMobileBuildPageMetadata } from '../mobile/buildMetadata';
2
3
  export type StaticPageRequestOptions = StreamingSlotEnhancerOptions;
3
- export type HTMLPageRequestOptions = StaticPageRequestOptions;
4
+ export type HTMLPageRequestOptions = StaticPageRequestOptions & {
5
+ /** @internal Build-generated mobile identity. Application code must not set this. */
6
+ __absoluteMobile?: AbsoluteMobileBuildPageMetadata;
7
+ };
8
+ type HTMXPageRequestOptions = {
9
+ /** @internal Build-generated mobile identity. Application code must not set this. */
10
+ __absoluteMobile?: AbsoluteMobileBuildPageMetadata;
11
+ };
4
12
  export declare const handleHTMLPageRequest: (pagePath: string, options?: HTMLPageRequestOptions) => Promise<Response>;
5
- export declare const handleHTMXPageRequest: (pagePath: string) => Promise<Response>;
13
+ export declare const handleHTMXPageRequest: (pagePath: string, options?: HTMXPageRequestOptions) => Promise<Response>;
14
+ export {};
@@ -135,6 +135,9 @@ export declare const prepare: (configOrPath?: string) => Promise<{
135
135
  response: {
136
136
  200: {
137
137
  connectedClients: number;
138
+ connectedTargets: {
139
+ [k: string]: number;
140
+ };
138
141
  entryWatcherReady: boolean;
139
142
  isRebuilding: boolean;
140
143
  manifestKeys: string[];
@@ -268,6 +271,9 @@ export declare const prepare: (configOrPath?: string) => Promise<{
268
271
  response: {
269
272
  200: {
270
273
  connectedClients: number;
274
+ connectedTargets: {
275
+ [k: string]: number;
276
+ };
271
277
  entryWatcherReady: boolean;
272
278
  isRebuilding: boolean;
273
279
  manifestKeys: string[];
@@ -2,6 +2,7 @@ import type { FSWatcher } from 'fs';
2
2
  import { type DependencyGraph } from './dependencyGraph';
3
3
  import { type ModuleVersions } from './moduleVersionTracker';
4
4
  import type { HMRWebSocket } from '../../types/websocket';
5
+ import type { HMRClientTarget } from '../../types/messages';
5
6
  import type { BuildConfig, BuildPassError } from '../../types/build';
6
7
  import { type ResolvedBuildPaths } from './configResolver';
7
8
  type HMRUpdateMetadata = {
@@ -10,6 +11,7 @@ type HMRUpdateMetadata = {
10
11
  };
11
12
  export type HMRState = {
12
13
  connectedClients: Set<HMRWebSocket>;
14
+ clientTargets: Map<HMRWebSocket, HMRClientTarget>;
13
15
  activeFrameworks: Set<string>;
14
16
  dependencyGraph: DependencyGraph;
15
17
  isRebuilding: boolean;
@@ -56,6 +56,9 @@ export type StartAbsoluteAndroidDevOptions = {
56
56
  onPhaseTiming?: (timing: AbsoluteAndroidDevPhaseTiming) => void;
57
57
  onStateChange?: (state: AbsoluteAndroidDevState) => void;
58
58
  https?: boolean;
59
+ /** Launch the locally embedded production web bundle while forwarding
60
+ * `port` only for its configured backend. No dev-server URL is written. */
61
+ embeddedBundle?: boolean;
59
62
  port: number;
60
63
  project: AbsoluteAndroidDevProject;
61
64
  run?: (command: string[], options?: AbsoluteAndroidCommandOptions) => Promise<number>;
@@ -67,7 +70,9 @@ export type StartAbsoluteAndroidDevOptions = {
67
70
  export declare const redactAbsoluteAndroidLog: (value: string) => string;
68
71
  export declare const isIgnorableAbsoluteAndroidLog: (entry: AbsoluteAndroidNativeLogEntry) => boolean;
69
72
  export declare const parseAbsoluteAndroidLogLine: (line: string) => AbsoluteAndroidNativeLogEntry | null;
70
- export declare const fingerprintAbsoluteAndroidNativeProject: (project: Pick<AbsoluteAndroidDevProject, "nativeDirectory">) => Promise<string>;
73
+ export declare const fingerprintAbsoluteAndroidNativeProject: (project: Pick<AbsoluteAndroidDevProject, "nativeDirectory">, options?: {
74
+ includePublicBundle?: boolean;
75
+ }) => Promise<string>;
71
76
  export declare const repairAbsoluteAndroidDevSession: (projectRoot: string) => Promise<boolean>;
72
77
  export declare const parseAdbDevices: (output: string) => string[];
73
78
  export type AbsoluteAndroidGradleTask = 'assembleDebug' | 'assembleRelease' | 'bundleRelease';
@@ -1,2 +1,3 @@
1
1
  export * from './client';
2
2
  export * from './pageProtocol';
3
+ export * from './syncRemediation';
@@ -1,6 +1,7 @@
1
1
  import type { MobileConfig } from '../../types/build';
2
2
  export type FinalizeAbsoluteMobileBuildOptions = {
3
3
  buildDirectory: string;
4
+ configPath?: string;
4
5
  mobile: MobileConfig;
5
6
  producerPath: string;
6
7
  projectRoot: string;
@@ -1,19 +1,36 @@
1
1
  import type { NormalizedAbsoluteMobileConfig } from './config';
2
2
  import type { AbsoluteMobileCompatibilityArtifact } from './releaseArtifact';
3
+ import type { AbsoluteMobileAuthManifest } from './nativeAuth';
4
+ import type { SyncLocalStoreSchemaBundle } from '@absolutejs/sync/client';
5
+ import type { AbsoluteDeviceCapabilityPlan } from './deviceCapabilities';
3
6
  export type AbsoluteCapacitorBundleOptions = {
4
7
  artifact: AbsoluteMobileCompatibilityArtifact;
8
+ auth?: AbsoluteMobileAuthManifest;
5
9
  buildDirectory: string;
6
10
  config: NormalizedAbsoluteMobileConfig;
11
+ deviceCapabilities: AbsoluteDeviceCapabilityPlan;
12
+ projectRoot: string;
13
+ sync?: boolean;
14
+ syncSchema?: SyncLocalStoreSchemaBundle;
7
15
  };
8
16
  export declare const materializeAbsoluteCapacitorWebBundle: (options: AbsoluteCapacitorBundleOptions) => Promise<{
9
- appBuild: string;
17
+ sync?: {
18
+ background: {
19
+ endpoint: string;
20
+ intervalMinutes: number;
21
+ };
22
+ socketTickets: true;
23
+ storageSchema: SyncLocalStoreSchemaBundle;
24
+ } | undefined;
10
25
  appId: string;
11
26
  appName: string;
12
27
  deepLinkHosts: string[];
13
28
  deepLinkScheme: string | undefined;
29
+ deviceCapabilities: string[];
14
30
  entry: string;
15
31
  format: 1;
16
32
  pages: {
33
+ localStylePath?: string | undefined;
17
34
  localBundlePath: string;
18
35
  bundleHash: string;
19
36
  bundlePath: string;
@@ -21,8 +38,12 @@ export declare const materializeAbsoluteCapacitorWebBundle: (options: AbsoluteCa
21
38
  framework: import("./pageProtocol").AbsoluteMobilePageFramework;
22
39
  pageId: string;
23
40
  propsSchemaHash: string;
41
+ styleBundleHash?: string;
42
+ styleBundlePath?: string;
24
43
  }[];
25
44
  productionOrigin: string;
26
45
  routes: import("./releaseArtifact").AbsoluteMobileCompatibilityRoute[];
27
46
  runtime: string;
47
+ auth?: AbsoluteMobileAuthManifest | undefined;
48
+ appBuild: string;
28
49
  }>;
@@ -1,6 +1,9 @@
1
1
  import { type AbsoluteMobilePageResult, type AbsoluteMobileUpgradeRequiredResult } from './pageProtocol';
2
2
  type AbsoluteMobileClientTarget = {
3
+ __ABSOLUTE_PAGE_DISPOSE__?: () => Promise<void> | void;
4
+ __ABSOLUTE_PAGE_READY__?: Promise<unknown>;
3
5
  __ABSOLUTE_PAGE_RENDER_MODE__?: 'client' | 'hydrate';
6
+ __ABS_ANGULAR_REQUEST_CONTEXT__?: Record<string, unknown>;
4
7
  __INITIAL_PROPS__?: Record<string, unknown>;
5
8
  };
6
9
  export type AbsoluteMobilePageLoader = (input: {
@@ -20,6 +23,7 @@ export declare class AbsoluteMobilePageProtocolError extends Error {
20
23
  readonly code: 'invalid-envelope' | 'invalid-props' | 'server-error' | 'server-rejected-request';
21
24
  constructor(code: AbsoluteMobilePageProtocolError['code'], message: string);
22
25
  }
26
+ export declare const disposeAbsoluteMobilePage: (target?: AbsoluteMobileClientTarget) => Promise<void>;
23
27
  export declare const activateAbsoluteMobilePage: (value: unknown, options: AbsoluteMobilePageActivationOptions) => Promise<AbsoluteMobileUpgradeRequiredResult | {
24
28
  contract: string;
25
29
  kind: "rendered";
@@ -0,0 +1,33 @@
1
+ export type AbsoluteDeviceCapabilityProvider = {
2
+ factory: string;
3
+ module: string;
4
+ native?: {
5
+ android?: {
6
+ permissions: string[];
7
+ };
8
+ ios?: {
9
+ usageDescriptions: AbsoluteIosUsageDescription[];
10
+ };
11
+ };
12
+ packages: string[];
13
+ };
14
+ export type AbsoluteIosUsageDescription = 'camera' | 'location-always' | 'location-when-in-use' | 'photo-library' | 'photo-library-add';
15
+ export type AbsoluteDeviceCapabilityPlan = {
16
+ capabilities: string[];
17
+ providers: Record<string, AbsoluteDeviceCapabilityProvider>;
18
+ requiredPackages: string[];
19
+ };
20
+ export declare const absoluteDeviceNativeRequirements: (plan: AbsoluteDeviceCapabilityPlan) => {
21
+ androidPermissions: string[];
22
+ iosUsageDescriptions: AbsoluteIosUsageDescription[];
23
+ };
24
+ export declare const loadAbsoluteDeviceCapabilityProviders: (projectRoot: string) => {
25
+ [k: string]: AbsoluteDeviceCapabilityProvider;
26
+ };
27
+ export declare const assertAbsoluteDeviceCapabilityPackages: (projectRoot: string, plan: AbsoluteDeviceCapabilityPlan) => void;
28
+ export declare const directAbsoluteProjectPackages: (projectRoot: string) => Set<string>;
29
+ export declare const discoverAbsoluteDeviceCapabilities: (projectRoot: string, providers?: {
30
+ [k: string]: AbsoluteDeviceCapabilityProvider;
31
+ }) => string[];
32
+ export declare const missingAbsoluteDeviceCapabilityPackages: (plan: AbsoluteDeviceCapabilityPlan, directPackages: ReadonlySet<string>) => string[];
33
+ export declare const resolveAbsoluteDeviceCapabilityPlan: (projectRoot: string) => AbsoluteDeviceCapabilityPlan;
@@ -1,17 +1,26 @@
1
1
  export * from './artifactStore';
2
2
  export * from './androidRelease';
3
3
  export * from './iosRelease';
4
+ export * from './iosConformance';
5
+ export * from './iosSimulatorController';
6
+ export * from './iosNativeWatcher';
7
+ export * from './remoteMacProtocol';
4
8
  export * from './associationFiles';
5
9
  export * from './buildMetadata';
6
10
  export * from './buildPipeline';
7
11
  export * from './buildRelease';
8
12
  export * from './capacitorBundle';
13
+ export * from './syncSchema';
14
+ export * from './syncRemediation';
15
+ export * from './deviceCapabilities';
9
16
  export * from './capacitorProject';
10
17
  export * from './config';
11
18
  export * from './client';
12
19
  export * from './compatibilityDispatcher';
13
20
  export * from './materializedBundle';
14
21
  export * from './nativeDeepLinks';
22
+ export * from './nativeDeviceCapabilities';
23
+ export * from './nativeAuth';
15
24
  export * from './pageProtocol';
16
25
  export * from './producerContext';
17
26
  export * from './releaseArtifact';
@@ -0,0 +1,15 @@
1
+ export type AbsoluteIosHmrApply = {
2
+ clientMs?: number;
3
+ duration: number;
4
+ line: string;
5
+ outcome: 'applied' | 'failed' | 'reloaded';
6
+ serverMs?: number;
7
+ };
8
+ export declare const parseAbsoluteIosHmrLog: (line: string) => AbsoluteIosHmrApply | null;
9
+ export declare const waitForAbsoluteIosHmrLog: (options: {
10
+ logPath: string;
11
+ signal?: AbortSignal;
12
+ sleep?: (milliseconds: number) => Promise<void>;
13
+ startOffset?: number;
14
+ timeoutMs?: number;
15
+ }) => Promise<AbsoluteIosHmrApply>;
@@ -0,0 +1,19 @@
1
+ import { type AbsoluteIosDevProject } from './iosSimulatorController';
2
+ export type AbsoluteIosNativeChange = {
3
+ afterFingerprint: string;
4
+ beforeFingerprint: string;
5
+ paths: string[];
6
+ rootInputChanged: boolean;
7
+ };
8
+ export type AbsoluteIosNativeWatcher = {
9
+ close: () => void;
10
+ };
11
+ export type AbsoluteIosNativeWatcherOptions = {
12
+ debounceMs?: number;
13
+ onChange: (change: AbsoluteIosNativeChange) => Promise<void>;
14
+ onError?: (error: unknown) => void;
15
+ project: AbsoluteIosDevProject;
16
+ signal?: AbortSignal;
17
+ };
18
+ export declare const createAbsoluteIosNativeWatcher: (options: AbsoluteIosNativeWatcherOptions) => Promise<AbsoluteIosNativeWatcher>;
19
+ export declare const isAbsoluteIosNativeRootInput: (path: string) => boolean;
@@ -51,10 +51,10 @@ export declare const buildAbsoluteIosRelease: (options: BuildAbsoluteIosReleaseO
51
51
  appBuild: string;
52
52
  appId: string;
53
53
  platform: "ios";
54
- engine: "capacitor";
55
- signed: boolean;
56
54
  buildNumber?: number | undefined;
55
+ engine: "capacitor";
57
56
  marketingVersion: string;
57
+ signed: boolean;
58
58
  };
59
59
  releaseRoot: string;
60
60
  }>;
@@ -0,0 +1,89 @@
1
+ import type { NormalizedAbsoluteMobileConfig } from './config';
2
+ export declare const ABSOLUTE_IOS_SIMULATOR_NAME = "AbsoluteJS iPhone";
3
+ export type AbsoluteIosCommandOptions = {
4
+ cwd?: string;
5
+ env?: Record<string, string | undefined>;
6
+ signal?: AbortSignal;
7
+ };
8
+ export type AbsoluteIosCommandResult = {
9
+ exitCode: number;
10
+ stderr: string;
11
+ stdout: string;
12
+ };
13
+ export type AbsoluteIosDevState = 'booting' | 'building' | 'checking-native' | 'closed' | 'closing' | 'configuring' | 'connecting' | 'failed' | 'installing' | 'launching' | 'ready' | 'streaming-logs' | 'syncing';
14
+ export type AbsoluteIosNativeLogEntry = {
15
+ level: 'debug' | 'error' | 'fault' | 'info' | 'notice';
16
+ message: string;
17
+ tag: string;
18
+ };
19
+ type AbsoluteIosLogStream = {
20
+ close: () => Promise<void>;
21
+ };
22
+ export type AbsoluteIosDevProject = {
23
+ cap: string;
24
+ config: NormalizedAbsoluteMobileConfig;
25
+ nativeDirectory: string;
26
+ projectRoot: string;
27
+ xcodebuild: string;
28
+ xcrun: string;
29
+ };
30
+ export type AbsoluteIosDevSession = {
31
+ close: () => Promise<void>;
32
+ nativeCacheHit: boolean;
33
+ rebuild: () => Promise<AbsoluteIosDevSession>;
34
+ relaunch: () => Promise<void>;
35
+ screenshot: (destination: string) => Promise<string>;
36
+ startedSimulator: boolean;
37
+ state: AbsoluteIosDevState;
38
+ timings: Record<string, number>;
39
+ udid: string;
40
+ };
41
+ export type AbsoluteIosDevPhaseTiming = {
42
+ durationMs: number;
43
+ phase: AbsoluteIosDevState;
44
+ totalMs: number;
45
+ };
46
+ export type PrepareAbsoluteIosDevOptions = {
47
+ createNativeProject: boolean;
48
+ projectRoot: string;
49
+ run?: (command: string[], options?: AbsoluteIosCommandOptions) => Promise<number>;
50
+ };
51
+ export type StartAbsoluteIosDevOptions = {
52
+ capture?: (command: string[], options?: AbsoluteIosCommandOptions) => AbsoluteIosCommandResult;
53
+ https?: boolean;
54
+ log?: (message: string) => void;
55
+ nativeLog?: (entry: AbsoluteIosNativeLogEntry) => void;
56
+ onPhaseTiming?: (timing: AbsoluteIosDevPhaseTiming) => void;
57
+ onStateChange?: (state: AbsoluteIosDevState) => void;
58
+ port: number;
59
+ project: AbsoluteIosDevProject;
60
+ run?: (command: string[], options?: AbsoluteIosCommandOptions) => Promise<number>;
61
+ signal?: AbortSignal;
62
+ sleep?: (milliseconds: number) => Promise<void>;
63
+ spawn?: (command: string[], options?: AbsoluteIosCommandOptions) => void;
64
+ startNativeLogs?: (command: string[], options: AbsoluteIosCommandOptions, onLine: (line: string) => void) => AbsoluteIosLogStream;
65
+ };
66
+ export declare const parseIosDeviceTypes: (source: string) => {
67
+ identifier: string;
68
+ name: string;
69
+ }[];
70
+ export declare const parseIosRuntimes: (source: string) => {
71
+ identifier: string;
72
+ isAvailable: boolean;
73
+ name: string;
74
+ version: string;
75
+ }[];
76
+ export declare const parseIosSimulators: (source: string) => {
77
+ isAvailable: boolean;
78
+ name: string;
79
+ runtime: string;
80
+ state: string;
81
+ udid: string;
82
+ }[];
83
+ export declare const repairAbsoluteIosDevSession: (projectRoot: string) => Promise<boolean>;
84
+ export declare const fingerprintAbsoluteIosDevProject: (project: Pick<AbsoluteIosDevProject, "nativeDirectory">) => Promise<string>;
85
+ export declare const parseAbsoluteIosLogLine: (line: string) => AbsoluteIosNativeLogEntry | null;
86
+ export declare const redactAbsoluteIosLog: (value: string) => string;
87
+ export declare const prepareAbsoluteIosDevProject: (config: NormalizedAbsoluteMobileConfig, options: PrepareAbsoluteIosDevOptions) => Promise<AbsoluteIosDevProject>;
88
+ export declare const startAbsoluteIosDevSession: (options: StartAbsoluteIosDevOptions) => Promise<AbsoluteIosDevSession>;
89
+ export {};
@@ -0,0 +1,17 @@
1
+ import type { NormalizedAbsoluteMobileConfig } from './config';
2
+ export declare const ABSOLUTE_AUTH_PACKAGE: "@absolutejs/auth";
3
+ export declare const ABSOLUTE_NATIVE_AUTH_CLIENTS_ENV: "ABSOLUTE_AUTH_NATIVE_CLIENTS";
4
+ export declare const ABSOLUTE_NATIVE_AUTH_SCOPES: readonly ["openid", "profile"];
5
+ export declare const ABSOLUTE_SYNC_PACKAGE: "@absolutejs/sync";
6
+ export type AbsoluteMobileAuthManifest = {
7
+ clientId: string;
8
+ issuer: string;
9
+ redirectUri: string;
10
+ scopes: string[];
11
+ };
12
+ export declare const createAbsoluteMobileAuthManifest: (config: NormalizedAbsoluteMobileConfig) => AbsoluteMobileAuthManifest;
13
+ export declare const installAbsoluteMobileAuthEnvironment: (projectRoot: string, config: NormalizedAbsoluteMobileConfig) => AbsoluteMobileAuthManifest | undefined;
14
+ export declare const projectUsesAbsoluteAuth: (projectRoot: string) => boolean;
15
+ export declare const projectUsesAbsoluteSync: (projectRoot: string) => boolean;
16
+ export declare const resolveAbsoluteMobileAuthManifest: (projectRoot: string, config: NormalizedAbsoluteMobileConfig) => AbsoluteMobileAuthManifest | undefined;
17
+ export declare const serializeAbsoluteMobileAuthEnvironment: (config: NormalizedAbsoluteMobileConfig, auth: AbsoluteMobileAuthManifest | undefined) => string | undefined;
@@ -0,0 +1,4 @@
1
+ import type { NormalizedAbsoluteMobileConfig } from './config';
2
+ export declare const applyAbsoluteNativeBackgroundSync: (projectRoot: string, config: NormalizedAbsoluteMobileConfig, platforms?: import("..").MobilePlatform[]) => Promise<{
3
+ changed: boolean;
4
+ }>;
@@ -0,0 +1,6 @@
1
+ import type { MobilePlatform } from '../../types/build';
2
+ import type { NormalizedAbsoluteMobileConfig } from './config';
3
+ import { type AbsoluteDeviceCapabilityPlan } from './deviceCapabilities';
4
+ export declare const applyAbsoluteNativeDeviceCapabilities: (projectRoot: string, config: NormalizedAbsoluteMobileConfig, platforms?: readonly MobilePlatform[], plan?: AbsoluteDeviceCapabilityPlan) => Promise<{
5
+ changed: MobilePlatform[];
6
+ }>;
@@ -8,6 +8,8 @@ export type AbsoluteMobileCompatibilityPage = {
8
8
  framework: AbsoluteMobilePageFramework;
9
9
  pageId: string;
10
10
  propsSchemaHash: string;
11
+ styleBundleHash?: string;
12
+ styleBundlePath?: string;
11
13
  };
12
14
  export type AbsoluteMobileCompatibilityRoute = {
13
15
  method: 'GET' | 'HEAD';
@@ -0,0 +1,2 @@
1
+ export declare const runAbsoluteRemoteMacAgent: (args: string[]) => Promise<void>;
2
+ export declare const runAbsoluteRemoteMacAgentSafely: (args: string[]) => Promise<void>;
@@ -0,0 +1 @@
1
+ export {};