@stim-cli/core 1.23.0 → 1.24.0
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/{core-BTsCO1nW.mjs → core-Bzz_SIGQ.mjs} +45 -21
- package/dist/{index-DKq1j8dw.d.mts → index-B8_6CrJ-.d.mts} +15 -3
- package/dist/index.d.mts +21 -5
- package/dist/index.mjs +3 -3
- package/dist/{ownership-claim-DHUs_Dir.mjs → ownership-claim-DG2GMIoo.mjs} +1 -1
- package/dist/ownership-claim.mjs +1 -1
- package/dist/phone-protocol.d.mts +2 -2
- package/dist/{protocol-DuaMg7RJ.d.mts → protocol-CrDIdn30.d.mts} +28 -5
- package/dist/protocol.d.mts +2 -2
- package/dist/protocol.mjs +11 -0
- package/dist/state.d.mts +2 -2
- package/dist/state.mjs +88 -38
- package/dist/toolchain.d.mts +22 -7
- package/dist/toolchain.mjs +93 -32
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { C as quotedPath, S as tryAcquireClaim, _ as releaseClaim, r as ClaimRefusedError, x as sleepSync } from "./ownership-claim-
|
|
1
|
+
import { C as quotedPath, S as tryAcquireClaim, _ as releaseClaim, r as ClaimRefusedError, x as sleepSync } from "./ownership-claim-DG2GMIoo.mjs";
|
|
2
|
+
import { projectNodeBin } from "./toolchain.mjs";
|
|
2
3
|
import fs, { existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, rmdirSync, statSync, unlinkSync, utimesSync, writeFileSync } from "node:fs";
|
|
3
4
|
import os from "node:os";
|
|
4
|
-
import path, { basename, dirname, isAbsolute, join, relative, sep } from "node:path";
|
|
5
|
+
import path, { basename, dirname, isAbsolute, join, normalize, relative, sep } from "node:path";
|
|
5
6
|
import { createHash, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
6
7
|
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
7
8
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -566,37 +567,60 @@ async function compiledHelper({ dir, name, inputs, version, compile, prune = tru
|
|
|
566
567
|
}
|
|
567
568
|
//#endregion
|
|
568
569
|
//#region dependency-install.ts
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
570
|
+
const LOCKFILES = [
|
|
571
|
+
"pnpm-lock.yaml",
|
|
572
|
+
"yarn.lock",
|
|
573
|
+
"package-lock.json"
|
|
574
|
+
];
|
|
575
|
+
/**
|
|
576
|
+
* The lockfile that governs the project at `project` inside `root`: the first one found from that directory up to
|
|
577
|
+
* `root`, as package managers resolve their own. `dir` is relative to `root`, `.` for `root` itself.
|
|
578
|
+
*/
|
|
579
|
+
function dependencyLockfile(root, project = ".") {
|
|
580
|
+
let dir = normalize(project);
|
|
581
|
+
while (true) {
|
|
582
|
+
const file = LOCKFILES.find((name) => existsSync(join(root, dir, name)));
|
|
583
|
+
if (file) return {
|
|
584
|
+
dir,
|
|
585
|
+
file
|
|
586
|
+
};
|
|
587
|
+
if (dir === ".") return null;
|
|
588
|
+
dir = dirname(dir);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* The existing worker install command and marker identity for the lockfile that governs the project at `project`.
|
|
593
|
+
* `dir` is where the install runs, relative to `root`, and `marker` names the area file that records the install
|
|
594
|
+
* there, so each install directory of a repository keeps its own. The marker identity also names the major of the
|
|
595
|
+
* Node `projectNodeBin` picks for the project's pin, or `path` when it picks none, so that native addons are rebuilt
|
|
596
|
+
* when the pinned Node changes major.
|
|
597
|
+
*/
|
|
598
|
+
function dependencyInstall(root, project = ".", env = process.env) {
|
|
599
|
+
const selected = dependencyLockfile(root, project);
|
|
600
|
+
if (!selected) return null;
|
|
601
|
+
const { dir, file } = selected;
|
|
577
602
|
const command = file === "pnpm-lock.yaml" ? "pnpm" : file === "yarn.lock" ? "yarn" : "npm";
|
|
578
|
-
const args = command === "
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
...packageName ? ["--filter", `${packageName}...`] : []
|
|
582
|
-
] : command === "yarn" ? ["install", "--frozen-lockfile"] : ["ci"];
|
|
583
|
-
const bytes = readFileSync(join(root, file));
|
|
603
|
+
const args = command === "npm" ? ["ci"] : ["install", "--frozen-lockfile"];
|
|
604
|
+
const bytes = readFileSync(join(root, dir, file));
|
|
605
|
+
const node = projectNodeBin(join(root, project), env, void 0, root)?.version.split(".")[0] ?? "path";
|
|
584
606
|
return {
|
|
585
607
|
command,
|
|
586
608
|
args,
|
|
609
|
+
dir,
|
|
610
|
+
marker: dir === "." ? "dependencies" : `dependencies-${createHash("sha256").update(dir.split(sep).join("/")).digest("hex").slice(0, 16)}`,
|
|
587
611
|
lockfile: createHash("sha256").update(bytes).digest("hex"),
|
|
588
|
-
digest: createHash("sha256").update(bytes).update(JSON.stringify(args)).digest("hex")
|
|
612
|
+
digest: createHash("sha256").update(bytes).update(JSON.stringify(args)).update(`node ${node}`).digest("hex")
|
|
589
613
|
};
|
|
590
614
|
}
|
|
591
615
|
/** Whether the worker can reuse this project's dependency install without running the package manager. */
|
|
592
|
-
function reusableDependencies(area, project,
|
|
616
|
+
function reusableDependencies(area, project, lockfile, env = process.env) {
|
|
593
617
|
try {
|
|
594
618
|
const root = realpathSync(join(area, "src"));
|
|
595
619
|
const selected = realpathSync(join(root, project));
|
|
596
620
|
const path = relative(root, selected);
|
|
597
621
|
if (path === ".." || path.startsWith(`..${sep}`) || isAbsolute(path)) return false;
|
|
598
|
-
const install = dependencyInstall(root,
|
|
599
|
-
return install?.lockfile === lockfile && existsSync(join(
|
|
622
|
+
const install = dependencyInstall(root, path, env);
|
|
623
|
+
return install?.lockfile === lockfile && existsSync(join(root, install.dir, "node_modules")) && readFileSync(join(area, install.marker), "utf8") === install.digest;
|
|
600
624
|
} catch {
|
|
601
625
|
return false;
|
|
602
626
|
}
|
|
@@ -1062,4 +1086,4 @@ function matchesCache(cache, match) {
|
|
|
1062
1086
|
return match.layout === void 0 || cache.layout === match.layout;
|
|
1063
1087
|
}
|
|
1064
1088
|
//#endregion
|
|
1065
|
-
export {
|
|
1089
|
+
export { withDirLockAsync as $, createMetroGateway as A, unitLines as B, workspaceName as C, reactNativeArtifactIdentity as D, swiftpmArtifactQuery as E, storeArtifactAsync as F, ambientWrite as G, validMacosResourceDestination as H, artifactIn as I, readJsonFile as J, withAmbientContext as K, resolveArtifact as L, dependencyLockfile as M, reusableDependencies as N, reactNativeArtifactQuery as O, compiledHelper as P, withDirLock as Q, storeArtifact as R, workspaceLogDir as S, workspaceStateDir as T, ambientContext as U, unitWords as V, ambientEnv as W, readStateFile as X, readJsonObject as Y, withStateReadCache as Z, rotatedLogPath as _, buildCacheRoot as a, updateCacheManifest as b, cacheNameSegment as c, ensurePrivateDir as d, withDirLockTransaction as et, hostSimulatorArch as f, rotateLog as g, registerCache as h, buildCacheKey as i, dependencyInstall as j, createMetroBridge as k, cachePathSetting as l, readCacheManifest as m, METRO_NAMED_CACHE_LAYOUT as n, cacheDirRefusal as o, metroCacheRoot as p, isJsonObject as q, STORE_ROOT_TAG as r, cacheManifestLockPath as s, LOG_ROTATE_BYTES as t, configDir as u, sharedStoreRoot as v, workspaceSlug as w, workspaceId as x, tagSharedStore as y, quoteUnitWord as z };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { o as ClaimHandle } from "./ownership-claim-RY3fbm1D.mjs";
|
|
2
2
|
import { l as NoiseKeyPair } from "./noise-DYIbymAJ.mjs";
|
|
3
|
+
import { BigIntStats } from "node:fs";
|
|
3
4
|
//#region state/ndjson.d.ts
|
|
4
5
|
interface NdjsonRecord {
|
|
5
6
|
ts?: number;
|
|
@@ -330,6 +331,7 @@ interface StimConfig {
|
|
|
330
331
|
};
|
|
331
332
|
remote?: {
|
|
332
333
|
machines?: unknown;
|
|
334
|
+
easMaxDurationMinutes?: unknown;
|
|
333
335
|
build?: unknown;
|
|
334
336
|
buildMode?: unknown;
|
|
335
337
|
buildPoolDisabled?: unknown;
|
|
@@ -559,16 +561,19 @@ declare function advanceTail(prev: TailState | null | undefined, chunk: string |
|
|
|
559
561
|
state: TailState;
|
|
560
562
|
records: NdjsonRecord[];
|
|
561
563
|
};
|
|
562
|
-
declare function followLogs({ dir, onRecord, criteria, intervalMs, offsets, errorContext }: {
|
|
564
|
+
declare function followLogs({ dir, onRecord, criteria, intervalMs, offsets, identities: seededIdentities, errorContext }: {
|
|
563
565
|
dir: string;
|
|
564
566
|
onRecord: (record: NdjsonRecord) => void;
|
|
565
567
|
criteria?: QueryCriteria;
|
|
566
568
|
/** An explicit polling interval. Omit for filesystem hints with a ten-second repair scan. */
|
|
567
569
|
intervalMs?: number;
|
|
568
570
|
offsets?: Record<string, number> | null;
|
|
571
|
+
/** `fileIdentity` of each file `offsets` was read from, so a replacement made since is recognized. */
|
|
572
|
+
identities?: Record<string, string> | null;
|
|
569
573
|
/** Holds each Expo error until its code frame and stack stop growing, then attaches them. */
|
|
570
574
|
errorContext?: ExpoContextTarget;
|
|
571
575
|
}): () => void;
|
|
576
|
+
declare function fileIdentity(stat: BigIntStats): string | undefined;
|
|
572
577
|
declare function sortByTs(records: NdjsonRecord[]): NdjsonRecord[];
|
|
573
578
|
//#endregion
|
|
574
579
|
//#region state/log-reader.d.ts
|
|
@@ -585,6 +590,8 @@ interface LogDirQuery extends LogQueryOptions {
|
|
|
585
590
|
interface LogDir {
|
|
586
591
|
/** Bytes read from each current `.ndjson` file, through its last complete line. */
|
|
587
592
|
readonly sizes: Record<string, number>;
|
|
593
|
+
/** `fileIdentity` of each current `.ndjson` file that `sizes` was read from. */
|
|
594
|
+
readonly identities: Record<string, string>;
|
|
588
595
|
/** The oldest timestamp in the directory. */
|
|
589
596
|
readonly firstTs: number | undefined;
|
|
590
597
|
/** Launch attempt records outside native crash files, in timeline order. */
|
|
@@ -658,12 +665,17 @@ declare function maintenanceAttemptFile(): string;
|
|
|
658
665
|
declare function maintenanceNdjsonFile(): string;
|
|
659
666
|
declare function maintenanceChildLogFile(): string;
|
|
660
667
|
declare function maintenanceRunClaims(): string;
|
|
668
|
+
/** Dependency trees `worktree remove` moved out of a worktree before git removed it; gc deletes what is left. */
|
|
669
|
+
declare function trashRoot(): string;
|
|
661
670
|
declare function archiveRoot(): string;
|
|
662
671
|
declare function archiveDir(id: string): string;
|
|
663
672
|
declare function archiveLock(): string;
|
|
664
673
|
/** This machine's own long-term X25519 key as a client of other machines' stim-servers. */
|
|
665
674
|
declare function clientIdentityKeyFile(): string;
|
|
666
|
-
/**
|
|
675
|
+
/**
|
|
676
|
+
* The local Unix socket. sun_path permits 103 UTF-8 bytes on macOS and 107 on Linux. Longer paths use
|
|
677
|
+
* /tmp/stim-sockets-<uid>/<SHA-256 of the normalized absolute socket path>.sock.
|
|
678
|
+
*/
|
|
667
679
|
declare function serverLocalSocket(): string;
|
|
668
680
|
declare function serverSetupDir(): string;
|
|
669
681
|
declare function setupJournalFile(hash: string): string | null;
|
|
@@ -2723,4 +2735,4 @@ declare class KeyedEntities<T> {
|
|
|
2723
2735
|
/** Applies `delta` to `entities` keyed by `key`, keeping the order of `entities` and appending new keys. */
|
|
2724
2736
|
declare function applyKeyedDelta<T>(entities: readonly T[], delta: KeyedDelta<T>, key: (entity: T) => string): T[];
|
|
2725
2737
|
//#endregion
|
|
2726
|
-
export { ReadStatsResult as $, readHostedAppMetadata as $a, isPathPrefix as $c, HostedDevicePlatform as $i, parseNdjsonText as $l, StatusIssueCode as $n, recordingEnabled as $o, unreadableHostedIos as $r, openLogDir as $s, AndroidDeviceState as $t, readLogsSince as A, HostedAppLaunch as Aa, readEasSessionLedger as Ac, buildDiagnostics as Ai, tryAcquireBuildSlotClaim as Al, GitChipPart as An, isLayeredSetting as Ao, readArchives as Ar, serverSetupDir as As, StatusCacheEntry as At, HOSTED_METRO_REQUESTS_KEY as B, parseHostedMacosDevice as Ba, createDebugLog as Bc, readWarmRecord as Bi, agentDeviceUsageFile as Bl, NATIVE_BUILD_STEPS as Bn, RecordedDevice as Bo, MaintenanceSize as Br, workspaceBuildDetailFile as Bs, readDiskUsageFailure as Bt, HOSTED_LOGS_PAGE_BYTES as C, HOSTED_AGENT_DRIVERS as Ca, tailRead as Cc, MAINTENANCE_LOG_NAME as Ci, parseMachineCredential as Cl, DeviceLeaseState as Cn, TUNNEL_MODES as Co, ArchivedWorkspace as Cr, maintenanceChildLogFile as Cs, DeviceViewersRecord as Ct, hostedNativeLogsDir as D, HostedAgentGrant as Da, EasSessionClaim as Dc, WORKSPACE_AGENT_KEY as Di, buildSlotsDir as Dl, EnvironmentDisk as Dn, acceptsShape as Do, readArchive as Dr, maintenanceStateFile as Ds, AgentSessionsCache as Dt, hostedMacosLogsDir as E, HostedAgentDriverName as Ea, CreatedDevices as Ec, WARM_KEY as Ei, buildSlotPath as El, EndedAgentSession as En, WebViewport as Eo, linkReplacedArchives as Er, maintenanceRunClaims as Es, stimBuildDigest as Et, endpoint as F, hostedMacosAppSlot as Fa, readStateFile as Fc, readDevServerStopRequest as Fi, SwiftpmCacheUsage as Fl, MachineOwnerKind as Fn, runId as Fo, MaintenanceCheck as Fr, sharedPods as Fs, listStatusCacheEntries as Ft, DeviceHostMachineCredential as G, HostedAppOffer as Ga, buildWorkerRoot as Gc, DeviceHostLimits as Gi, AgentTarget as Gl, PlannedPhase as Gn, footageDrops as Go, readMaintenanceAttempt as Gr, workspaceLogErrorIndex as Gs, ACTIVITY_RECENCY_BASES as Gt, HostedMetroRequest as H, HOSTED_APP_CHUNK_BYTES as Ha, debugLoggingEnabled as Hc, readWorkspaceState as Hi, readAgentDeviceUsageCache as Hl, PHYSICAL_DEVICE_CONNECTIONS as Hn, RecordingPlatform as Ho, MaintenanceStatus as Hr, workspaceEndedAgentsFile as Hs, readPullRequestCache as Ht, findPeer as I, hostedMacosBundleId as Ia, withStateReadCache as Ic, readDeviceIdleShutdowns as Ii, readSwiftpmCacheUsage as Il, MachineUsageState as In, validRunId as Io, MaintenanceMode as Ir, statsFile as Is, pullRequestCacheFile as It, CAPACITY_REFUSAL_LIMIT as J, hostedAppAttempt as Ja, getConcurrencyLimits as Jc, HostedAndroidDevice as Ji, LEVELS as Jl, STATUS_ISSUE_CODES as Jn, listSegments as Jo, HostedIosStatus as Jr, workspaceRecordingsDir as Js, ActiveBuildState as Jt, readDeviceHostMachines as K, HostedAppRecord as Ka, configCorruptRepair as Kc, HOSTED_PARKED_CANDIDATES as Ki, createAgentActionReader as Kl, RemoteDeviceState as Kn, listRecordedDevices as Ko, readMaintenanceState as Kr, workspaceLogsDir as Ks, AGENT_TOOLS as Kt, machineEndpoint as L, parseHostedAgentAccess as La, readHomeIdentity as Lc, readDevicePlacement as Li, swiftpmCacheUsageFile as Ll, MacosBuildPlanPayload as Ln, RECORDING_CAP_BYTES as Lo, MaintenancePass as Lr, supervisorLogFile as Ls, readAgentSessionsCache as Lt, TAILNET_MACHINE_PATTERN as M, HostedMacosDevice as Ma, isJsonObject as Mc, parseMissReason as Mi, SimRuntimeUsage as Ml, MACHINE_OWNER_KINDS as Mn, settingDefinition as Mo, DiskPressureLevel as Mr, sharedCcache as Ms, diskUsageCacheFile as Mt, TailnetPeer as N, HostedMacosPlacement as Na, readJsonFile as Nc, readBuildHistory as Ni, machineCacheUsageFile as Nl, MEMORY_SOURCES as Nn, settingValueError as No, MaintenanceAction as Nr, sharedCompilationCache as Ns, diskUsageFailureFile as Nt, parseHostedLogsCursor as O, HostedAgentIssuedGrant as Oa, EasSessionLedgerRead as Oc, WarmRecord as Oi, machineCapacity as Ol, EnvironmentState as On, coerceSettingText as Oo, readArchiveAsync as Or, pullRequestCacheDir as Os, ENDED_AGENT_RETENTION_MS as Ot, cannotHost as P, hostedAgentDriverName as Pa, readJsonObject as Pc, readDevServerStop as Pi, readMachineCacheUsage as Pl, MachineOwner as Pn, RUN_ID_ENV as Po, MaintenanceActionKind as Pr, sharedGradle as Ps, endedAgentSessionOf as Pt, PLACEMENT_DECISIONS as Q, readHostedApp as Qa, getRepoSettings as Qc, HostedDevicePhase as Qi, parseNdjsonLine as Ql, StatusIssue as Qn, recordingDeviceName as Qo, parseHostedIosPlacement as Qr, LogDirQuery as Qs, AgentTool as Qt, parseMachine as R, parseHostedAgentGrant as Ra, DEBUG_ENV as Rc, readIdleStop as Ri, AgentDeviceUsage as Rl, MemorySource as Rn, RECORDING_FOOTAGE_MS as Ro, MaintenancePressure as Rr, supervisorPidFile as Rs, readBuildDetail as Rt, HOSTED_LOGS_FIRST_BYTES as S, readHostedSessions as Sa, sortByTs as Sc, LAST_BUILD_KEYS as Si, MachineCredential as Sl, DeviceAppProcess as Sn, SettingsPayload as So, ArchivedUsage as Sr, maintenanceAttemptFile as Ss, wholePhases as St, HostedLogsPage as T, HostedAgentAccess as Ta, CreatedDevicePlatform as Tc, READY_PHASE_MS as Ti, MachineCapacity as Tl, DiskMeasure as Tn, WEB_VIEWPORTS as To, archivedUsage as Tr, maintenanceNdjsonFile as Ts, readViewedDevices as Tt, hostedMetroGateways as U, HostedAppDelivery as Ua, ParkedMax as Uc, workspaceLastUsed as Ui, AgentActionReaderOptions as Ul, PhysicalDeviceConnection as Un, capDrops as Uo, MemoryCulprit as Ur, workspaceEndedAgentsLock as Us, withDerivedFacts as Ut, HostedMetroGateway as V, parseHostedMacosPlacement as Va, debugLogDir as Vc, readWorkspaceAgent as Vi, readAgentDeviceUsage as Vl, NativeBuildStep as Vn, RecordedSegment as Vo, MaintenanceState as Vr, workspaceDerivedData as Vs, readEndedAgentSessions as Vt, hostedMetroRequests as W, HostedAppFile as Wa, allMetroPorts as Wc, DEVICE_HOST_LIMITS as Wi, AgentRecordSelection as Wl, PhysicalDeviceState as Wn, closedSegmentName as Wo, parseMaintenanceState as Wr, workspaceGradleBuild as Ws, withGitChip as Wt, HISTORY_LIMIT as X, parseHostedAppManifest as Xa, getProject as Xc, HostedDeviceOffer as Xi, SOURCES as Xl, StatsPlatform as Xn, openSegmentName as Xo, hostedIosRecords as Xr, workspaceStateLock as Xs, ActivityRecencyBasis as Xt, CAPACITY_REFUSAL_MAX_AGE_MS as Y, hostedAppBlobs as Ya, getParkedMax as Yc, HostedDevice as Yi, NdjsonRecord as Yl, SimulatorState as Yn, listSegmentsAsync as Yo, hostedIosPlacements as Yr, workspaceStateFile as Ys, ActivityDriver as Yt, OffloadSummary as Z, parseHostedAppOffer as Za, getProjectSettings as Zc, HostedDeviceOfferRequest as Zi, levelRank as Zl, StatusCapacity as Zn, recordedBytes as Zo, hostedIosStatus as Zr, LogDir as Zs, AgentSession as Zt, isSetupJournalPrunable as _, parseHostedOfferRequest as _a, queryJsonLogs as _c, DevServerStopRecord as _i, StimConfig as _l, BuildReport as _n, SettingDefinition as _o, macosAppState as _r, easSessionLedgerFile as _s, readStatsReport as _t, MachineView as a, HostedNativeOffer as aa, advanceTail as ac, hostedAndroidStatus as ai, AutomaticPoolRole as al, BuildCacheHit as an, settingsJsonSchema as ao, WarmStep as ar, buildMachinesLock as as, StatsCapacityRefusal as at, agentDeviceStateDirs as b, readHostedDevice as ba, readLogTimeline as bc, IDLE_STOP_KEY as bi, BuildMachineCredential as bl, ChecksState as bn, SettingType as bo, readMacosRecord as br, getConfigPath as bs, trimCapacityWaits as bt, SummaryBuild as c, deviceHostRoot as ca, bundleMarkerPlatform as cc, HostedNativePlacement as ci, validateAutomaticPool as cl, BuildDiagnostic as cn, ANDROID_PCH_CHOICES as co, WorkspacePhase as cr, createdDevicesFile as cs, StatsRecord as ct, WorktreeRow as d, hostedWorkerSettleMs as da, followLogs as dc, unreadableHostedNative as di, DeviceRecord as dl, BuildMissChange as dn, OffloadMode as do, WorktreeGit as dr, deviceHostMachinesFile as ds, decodeStats as dt, HostedDeviceRequest as ea, ERROR_SOURCES as ec, HostedAndroidPlacement as ei, loadConfig as el, AndroidRuntimeFacts as en, rememberHostedAppBlobRename as eo, StatusPayload as er, agentSessionsCacheFile as es, RunEstimates as et, readNdjsonGenerations as eu, statusViews as f, parseHostedAndroidDevice as fa, isExpoErrorContext as fc, BUILD_HISTORY_KEY as fi, DoctorRunRecord as fl, BuildMissReason as fn, REMOTE_DEVICE_BACKENDS as fo, WorktreePullRequest as fr, deviceHostMachinesLock as fs, findProjectRoot as ft, isJournalExpired as g, parseHostedNativeOffer as ga, planLogQuery as gc, DEV_SERVER_STOP_REQUEST_KEY as gi, SettingsObject as gl, BuildPlatform as gn, SETTING_SCOPES as go, MacosProcess as gr, easMachineStateRoot as gs, readStats as gt, SetupJournal as h, parseHostedLocalDeviceCount as ha, parseSince as hc, DEVICE_RECLAIM_REASON as hi, RepoRecord as hl, BuildPlanPayload as hn, SETTING_GROUPS as ho, MacosBuild as hr, diskUsageWalkClaims as hs, readRunEstimates as ht, ArchivedSummary as i, HostedIosDevice as ia, QueryCriteria as ic, hostedAndroidRecords as ii, withConfigLockAsync as il, BuildActivity as in, SETTINGS_SCHEMA_URL as io, WORKSPACE_STAGE_KINDS as ir, buildMachinesFile as is, StatsBucket as it, Endpoint as j, HostedMacosChoice as ja, validEasSessionClaim as jc, lastUseFrom as ji, MachineCacheUsage as jl, LastBuildReport as jn, isSensitiveReference as jo, readArchivesAsync as jr, setupJournalFile as js, agentSessionOf as jt, readHostedNativeLogsCheckpoint as k, HostedAgentLease as ka, readCreatedDevices as kc, WorkspaceState as ki, saturation as kl, GitChip as kn, expectedShape as ko, readArchiveState as kr, serverLocalSocket as ks, PullRequestCacheEntry as kt, SummaryHistoryEntry as l, hostedConsolePort as la, compileGrep as lc, hostedNativeRecords as li, ConcurrencyLimits as ll, BuildHistoryEntry as ln, IOS_SIMULATOR_APPS as lo, WorkspaceStage as lr, createdDevicesLock as ls, StatsReport as lt, SetupCapability as m, parseHostedDevice as ma, markerWindow as mc, DEVICE_IDLE_SHUTDOWN_KEY as mi, ProjectRecord as ml, BuildPlacement as mn, SETTINGS as mo, MacosAppState as mr, diskUsageCacheDir as ms, projectRootDirectories as mt, KeyedEntities as n, HostedDeviceSession as na, LogQueryPlan as nc, hostedAndroidDeviceName as ni, windowsShortDirKey as nl, BUILD_PHASES as nn, validHostedAppBlob as no, WEB_PAGE_STATES as nr, archiveLock as ns, RunSample as nt, SUMMARY_ARCHIVES as o, assertHostedDeviceLedger as oa, attachExpoErrorContext as oc, parseHostedAndroidPlacement as oi, automaticMachineEnabled as ol, BuildCause as on, ANDROID_COMPILER_CACHE_CHOICES as oo, WebBrowserState as or, clientIdentityKeyFile as os, StatsCapacityWait as ot, workspaceSummary as p, parseHostedChoice as pa, logFiles as pc, BUILD_HISTORY_LIMIT as pi, PlatformRecords as pl, BuildPhase as pn, RemoteDeviceBackend as po, MacosAppRecord as pr, deviceViewersDir as ps, offloadSummary as pt, BuildMachineTotals as q, hostedAppArea as qa, findEnclosingWorktreeRoot as qc, HostedAndroidChoice as qi, createAsyncAgentActionReader as ql, RunOutcomeKind as qn, listRecordedDevicesAsync as qo, HostedIosPlacement as qr, workspaceMetadataFile as qs, APP_PROCESS_STATES as qt, applyKeyedDelta as r, HostedIosChoice as ra, NATIVE_CRASH_LOG_PREFIX as rc, hostedAndroidPlacements as ri, withConfigLock as rl, BUILD_RESULTS as rn, SETTINGS_SCHEMA_FILE as ro, WORKSPACE_PHASES as rr, archiveRoot as rs, STATS_VERSION as rt, StatusViews as s, deviceHostArea as sa, buildCriteria as sc, unreadableHostedAndroid as si, requireAutomaticMachine as sl, BuildDetail as sn, ANDROID_EMULATOR_APPS as so, WebPageState as sr, configLockPath as ss, StatsPlacement as st, KeyedDelta as t, HostedDeviceSelectors as ta, LogQueryOptions as tc, HostedAndroidStatus as ti, windowsShortDir as tl, AppPresence as tn, validHostedAppArguments as to, TUTORIAL_VERSION as tr, archiveDir as ts, RunHistory as tt, WorkspaceSummary as u, hostedDeviceId as ua, fileSizes as uc, parseHostedNativePlacement as ui, Config as ul, BuildMissCategory as un, OFFLOAD_MODES as uo, WorktreeFacts as ur, deviceHostMachinesClaims as us, StatsScope as ut, parseSetupJournal as v, parseHostedPlatformDevice as va, queryLogs as vc, DevServerStopRequest as vi, SupervisorRecord as vl, BuildResult as vn, SettingEntry as vo, parseMacosRecord as vr, easSessionLedgerLock as vs, statsProjectKey as vt, HostedLogsCursor as w, HOSTED_MACOS_APP_SLOTS as wa, countErrorEntries as wc, MetroLastStop as wi, readBuildMachines as wl, DevicePlacement as wn, TunnelMode as wo, archiveEnabled as wr, maintenanceDir as ws, ViewedDevice as wt, agentDeviceStateDirsAsync as x, readHostedDeviceLedger as xa, recordMatches as xc, IdleStopRecord as xi, MACHINE_CREDENTIALS_VERSION as xl, DeviceActivity as xn, SettingWriteResult as xo, ArchivedBytes as xr, gitMergeCacheDir as xs, trimSamples as xt, readSetupJournal as y, parseHostedRequest as ya, readLogRecords as yc, DeviceIdleShutdownRecord as yi, clientIdentity as yl, BuildWaitingFor as yn, SettingScope as yo, readHostedMacosApp as yr, emulatorLogFile as ys, trimCapacityRefusals as yt, HOSTED_METRO_GATEWAYS_KEY as z, parseHostedMacosChoice as za, DebugLog as zc, readLastBuilds as zi, AgentDeviceUsageRoots as zl, MetroBundleState as zn, RECORDING_PLATFORMS as zo, MaintenanceRecord as zr, workspaceAgentDeviceDir as zs, readDiskUsage as zt };
|
|
2738
|
+
export { ReadStatsResult as $, readHostedAppMetadata as $a, getProjectSettings as $c, HostedDevicePlatform as $i, levelRank as $l, StatusIssueCode as $n, recordingEnabled as $o, unreadableHostedIos as $r, LogDirQuery as $s, AndroidDeviceState as $t, readLogsSince as A, HostedAppLaunch as Aa, EasSessionLedgerRead as Ac, buildDiagnostics as Ai, machineCapacity as Al, GitChipPart as An, isLayeredSetting as Ao, readArchives as Ar, serverSetupDir as As, StatusCacheEntry as At, HOSTED_METRO_REQUESTS_KEY as B, parseHostedMacosDevice as Ba, DEBUG_ENV as Bc, readWarmRecord as Bi, AgentDeviceUsage as Bl, NATIVE_BUILD_STEPS as Bn, RecordedDevice as Bo, MaintenanceSize as Br, workspaceAgentDeviceDir as Bs, readDiskUsageFailure as Bt, HOSTED_LOGS_PAGE_BYTES as C, HOSTED_AGENT_DRIVERS as Ca, recordMatches as Cc, MAINTENANCE_LOG_NAME as Ci, MACHINE_CREDENTIALS_VERSION as Cl, DeviceLeaseState as Cn, TUNNEL_MODES as Co, ArchivedWorkspace as Cr, maintenanceChildLogFile as Cs, DeviceViewersRecord as Ct, hostedNativeLogsDir as D, HostedAgentGrant as Da, CreatedDevicePlatform as Dc, WORKSPACE_AGENT_KEY as Di, MachineCapacity as Dl, EnvironmentDisk as Dn, acceptsShape as Do, readArchive as Dr, maintenanceStateFile as Ds, AgentSessionsCache as Dt, hostedMacosLogsDir as E, HostedAgentDriverName as Ea, countErrorEntries as Ec, WARM_KEY as Ei, readBuildMachines as El, EndedAgentSession as En, WebViewport as Eo, linkReplacedArchives as Er, maintenanceRunClaims as Es, stimBuildDigest as Et, endpoint as F, hostedMacosAppSlot as Fa, readJsonFile as Fc, readDevServerStopRequest as Fi, machineCacheUsageFile as Fl, MachineOwnerKind as Fn, runId as Fo, MaintenanceCheck as Fr, sharedPods as Fs, listStatusCacheEntries as Ft, DeviceHostMachineCredential as G, HostedAppOffer as Ga, ParkedMax as Gc, DeviceHostLimits as Gi, AgentActionReaderOptions as Gl, PlannedPhase as Gn, footageDrops as Go, readMaintenanceAttempt as Gr, workspaceGradleBuild as Gs, ACTIVITY_RECENCY_BASES as Gt, HostedMetroRequest as H, HOSTED_APP_CHUNK_BYTES as Ha, createDebugLog as Hc, readWorkspaceState as Hi, agentDeviceUsageFile as Hl, PHYSICAL_DEVICE_CONNECTIONS as Hn, RecordingPlatform as Ho, MaintenanceStatus as Hr, workspaceDerivedData as Hs, readPullRequestCache as Ht, findPeer as I, hostedMacosBundleId as Ia, readJsonObject as Ic, readDeviceIdleShutdowns as Ii, readMachineCacheUsage as Il, MachineUsageState as In, validRunId as Io, MaintenanceMode as Ir, statsFile as Is, pullRequestCacheFile as It, CAPACITY_REFUSAL_LIMIT as J, hostedAppAttempt as Ja, configCorruptRepair as Jc, HostedAndroidDevice as Ji, createAgentActionReader as Jl, STATUS_ISSUE_CODES as Jn, listSegments as Jo, HostedIosStatus as Jr, workspaceMetadataFile as Js, ActiveBuildState as Jt, readDeviceHostMachines as K, HostedAppRecord as Ka, allMetroPorts as Kc, HOSTED_PARKED_CANDIDATES as Ki, AgentRecordSelection as Kl, RemoteDeviceState as Kn, listRecordedDevices as Ko, readMaintenanceState as Kr, workspaceLogErrorIndex as Ks, AGENT_TOOLS as Kt, machineEndpoint as L, parseHostedAgentAccess as La, readStateFile as Lc, readDevicePlacement as Li, SwiftpmCacheUsage as Ll, MacosBuildPlanPayload as Ln, RECORDING_CAP_BYTES as Lo, MaintenancePass as Lr, supervisorLogFile as Ls, readAgentSessionsCache as Lt, TAILNET_MACHINE_PATTERN as M, HostedMacosDevice as Ma, readEasSessionLedger as Mc, parseMissReason as Mi, tryAcquireBuildSlotClaim as Ml, MACHINE_OWNER_KINDS as Mn, settingDefinition as Mo, DiskPressureLevel as Mr, sharedCcache as Ms, diskUsageCacheFile as Mt, TailnetPeer as N, HostedMacosPlacement as Na, validEasSessionClaim as Nc, readBuildHistory as Ni, MachineCacheUsage as Nl, MEMORY_SOURCES as Nn, settingValueError as No, MaintenanceAction as Nr, sharedCompilationCache as Ns, diskUsageFailureFile as Nt, parseHostedLogsCursor as O, HostedAgentIssuedGrant as Oa, CreatedDevices as Oc, WarmRecord as Oi, buildSlotPath as Ol, EnvironmentState as On, coerceSettingText as Oo, readArchiveAsync as Or, pullRequestCacheDir as Os, ENDED_AGENT_RETENTION_MS as Ot, cannotHost as P, hostedAgentDriverName as Pa, isJsonObject as Pc, readDevServerStop as Pi, SimRuntimeUsage as Pl, MachineOwner as Pn, RUN_ID_ENV as Po, MaintenanceActionKind as Pr, sharedGradle as Ps, endedAgentSessionOf as Pt, PLACEMENT_DECISIONS as Q, readHostedApp as Qa, getProject as Qc, HostedDevicePhase as Qi, SOURCES as Ql, StatusIssue as Qn, recordingDeviceName as Qo, parseHostedIosPlacement as Qr, LogDir as Qs, AgentTool as Qt, parseMachine as R, parseHostedAgentGrant as Ra, withStateReadCache as Rc, readIdleStop as Ri, readSwiftpmCacheUsage as Rl, MemorySource as Rn, RECORDING_FOOTAGE_MS as Ro, MaintenancePressure as Rr, supervisorPidFile as Rs, readBuildDetail as Rt, HOSTED_LOGS_FIRST_BYTES as S, readHostedSessions as Sa, readLogTimeline as Sc, LAST_BUILD_KEYS as Si, BuildMachineCredential as Sl, DeviceAppProcess as Sn, SettingsPayload as So, ArchivedUsage as Sr, maintenanceAttemptFile as Ss, wholePhases as St, HostedLogsPage as T, HostedAgentAccess as Ta, tailRead as Tc, READY_PHASE_MS as Ti, parseMachineCredential as Tl, DiskMeasure as Tn, WEB_VIEWPORTS as To, archivedUsage as Tr, maintenanceNdjsonFile as Ts, readViewedDevices as Tt, hostedMetroGateways as U, HostedAppDelivery as Ua, debugLogDir as Uc, workspaceLastUsed as Ui, readAgentDeviceUsage as Ul, PhysicalDeviceConnection as Un, capDrops as Uo, MemoryCulprit as Ur, workspaceEndedAgentsFile as Us, withDerivedFacts as Ut, HostedMetroGateway as V, parseHostedMacosPlacement as Va, DebugLog as Vc, readWorkspaceAgent as Vi, AgentDeviceUsageRoots as Vl, NativeBuildStep as Vn, RecordedSegment as Vo, MaintenanceState as Vr, workspaceBuildDetailFile as Vs, readEndedAgentSessions as Vt, hostedMetroRequests as W, HostedAppFile as Wa, debugLoggingEnabled as Wc, DEVICE_HOST_LIMITS as Wi, readAgentDeviceUsageCache as Wl, PhysicalDeviceState as Wn, closedSegmentName as Wo, parseMaintenanceState as Wr, workspaceEndedAgentsLock as Ws, withGitChip as Wt, HISTORY_LIMIT as X, parseHostedAppManifest as Xa, getConcurrencyLimits as Xc, HostedDeviceOffer as Xi, LEVELS as Xl, StatsPlatform as Xn, openSegmentName as Xo, hostedIosRecords as Xr, workspaceStateFile as Xs, ActivityRecencyBasis as Xt, CAPACITY_REFUSAL_MAX_AGE_MS as Y, hostedAppBlobs as Ya, findEnclosingWorktreeRoot as Yc, HostedDevice as Yi, createAsyncAgentActionReader as Yl, SimulatorState as Yn, listSegmentsAsync as Yo, hostedIosPlacements as Yr, workspaceRecordingsDir as Ys, ActivityDriver as Yt, OffloadSummary as Z, parseHostedAppOffer as Za, getParkedMax as Zc, HostedDeviceOfferRequest as Zi, NdjsonRecord as Zl, StatusCapacity as Zn, recordedBytes as Zo, hostedIosStatus as Zr, workspaceStateLock as Zs, AgentSession as Zt, isSetupJournalPrunable as _, parseHostedOfferRequest as _a, parseSince as _c, DevServerStopRecord as _i, RepoRecord as _l, BuildReport as _n, SettingDefinition as _o, macosAppState as _r, easSessionLedgerFile as _s, readStatsReport as _t, MachineView as a, HostedNativeOffer as aa, QueryCriteria as ac, hostedAndroidStatus as ai, withConfigLock as al, BuildCacheHit as an, settingsJsonSchema as ao, WarmStep as ar, buildMachinesLock as as, StatsCapacityRefusal as at, agentDeviceStateDirs as b, readHostedDevice as ba, queryLogs as bc, IDLE_STOP_KEY as bi, SupervisorRecord as bl, ChecksState as bn, SettingType as bo, readMacosRecord as br, getConfigPath as bs, trimCapacityWaits as bt, SummaryBuild as c, deviceHostRoot as ca, buildCriteria as cc, HostedNativePlacement as ci, automaticMachineEnabled as cl, BuildDiagnostic as cn, ANDROID_PCH_CHOICES as co, WorkspacePhase as cr, createdDevicesFile as cs, StatsRecord as ct, WorktreeRow as d, hostedWorkerSettleMs as da, fileIdentity as dc, unreadableHostedNative as di, ConcurrencyLimits as dl, BuildMissChange as dn, OffloadMode as do, WorktreeGit as dr, deviceHostMachinesFile as ds, decodeStats as dt, HostedDeviceRequest as ea, openLogDir as ec, HostedAndroidPlacement as ei, getRepoSettings as el, AndroidRuntimeFacts as en, rememberHostedAppBlobRename as eo, StatusPayload as er, agentSessionsCacheFile as es, RunEstimates as et, parseNdjsonLine as eu, statusViews as f, parseHostedAndroidDevice as fa, fileSizes as fc, BUILD_HISTORY_KEY as fi, Config as fl, BuildMissReason as fn, REMOTE_DEVICE_BACKENDS as fo, WorktreePullRequest as fr, deviceHostMachinesLock as fs, findProjectRoot as ft, isJournalExpired as g, parseHostedNativeOffer as ga, markerWindow as gc, DEV_SERVER_STOP_REQUEST_KEY as gi, ProjectRecord as gl, BuildPlatform as gn, SETTING_SCOPES as go, MacosProcess as gr, easMachineStateRoot as gs, readStats as gt, SetupJournal as h, parseHostedLocalDeviceCount as ha, logFiles as hc, DEVICE_RECLAIM_REASON as hi, PlatformRecords as hl, BuildPlanPayload as hn, SETTING_GROUPS as ho, MacosBuild as hr, diskUsageWalkClaims as hs, readRunEstimates as ht, ArchivedSummary as i, HostedIosDevice as ia, NATIVE_CRASH_LOG_PREFIX as ic, hostedAndroidRecords as ii, windowsShortDirKey as il, BuildActivity as in, SETTINGS_SCHEMA_URL as io, WORKSPACE_STAGE_KINDS as ir, buildMachinesFile as is, StatsBucket as it, Endpoint as j, HostedMacosChoice as ja, readCreatedDevices as jc, lastUseFrom as ji, saturation as jl, LastBuildReport as jn, isSensitiveReference as jo, readArchivesAsync as jr, setupJournalFile as js, agentSessionOf as jt, readHostedNativeLogsCheckpoint as k, HostedAgentLease as ka, EasSessionClaim as kc, WorkspaceState as ki, buildSlotsDir as kl, GitChip as kn, expectedShape as ko, readArchiveState as kr, serverLocalSocket as ks, PullRequestCacheEntry as kt, SummaryHistoryEntry as l, hostedConsolePort as la, bundleMarkerPlatform as lc, hostedNativeRecords as li, requireAutomaticMachine as ll, BuildHistoryEntry as ln, IOS_SIMULATOR_APPS as lo, WorkspaceStage as lr, createdDevicesLock as ls, StatsReport as lt, SetupCapability as m, parseHostedDevice as ma, isExpoErrorContext as mc, DEVICE_IDLE_SHUTDOWN_KEY as mi, DoctorRunRecord as ml, BuildPlacement as mn, SETTINGS as mo, MacosAppState as mr, diskUsageCacheDir as ms, projectRootDirectories as mt, KeyedEntities as n, HostedDeviceSession as na, LogQueryOptions as nc, hostedAndroidDeviceName as ni, loadConfig as nl, BUILD_PHASES as nn, validHostedAppBlob as no, WEB_PAGE_STATES as nr, archiveLock as ns, RunSample as nt, readNdjsonGenerations as nu, SUMMARY_ARCHIVES as o, assertHostedDeviceLedger as oa, advanceTail as oc, parseHostedAndroidPlacement as oi, withConfigLockAsync as ol, BuildCause as on, ANDROID_COMPILER_CACHE_CHOICES as oo, WebBrowserState as or, clientIdentityKeyFile as os, StatsCapacityWait as ot, workspaceSummary as p, parseHostedChoice as pa, followLogs as pc, BUILD_HISTORY_LIMIT as pi, DeviceRecord as pl, BuildPhase as pn, RemoteDeviceBackend as po, MacosAppRecord as pr, deviceViewersDir as ps, offloadSummary as pt, BuildMachineTotals as q, hostedAppArea as qa, buildWorkerRoot as qc, HostedAndroidChoice as qi, AgentTarget as ql, RunOutcomeKind as qn, listRecordedDevicesAsync as qo, HostedIosPlacement as qr, workspaceLogsDir as qs, APP_PROCESS_STATES as qt, applyKeyedDelta as r, HostedIosChoice as ra, LogQueryPlan as rc, hostedAndroidPlacements as ri, windowsShortDir as rl, BUILD_RESULTS as rn, SETTINGS_SCHEMA_FILE as ro, WORKSPACE_PHASES as rr, archiveRoot as rs, STATS_VERSION as rt, StatusViews as s, deviceHostArea as sa, attachExpoErrorContext as sc, unreadableHostedAndroid as si, AutomaticPoolRole as sl, BuildDetail as sn, ANDROID_EMULATOR_APPS as so, WebPageState as sr, configLockPath as ss, StatsPlacement as st, KeyedDelta as t, HostedDeviceSelectors as ta, ERROR_SOURCES as tc, HostedAndroidStatus as ti, isPathPrefix as tl, AppPresence as tn, validHostedAppArguments as to, TUTORIAL_VERSION as tr, archiveDir as ts, RunHistory as tt, parseNdjsonText as tu, WorkspaceSummary as u, hostedDeviceId as ua, compileGrep as uc, parseHostedNativePlacement as ui, validateAutomaticPool as ul, BuildMissCategory as un, OFFLOAD_MODES as uo, WorktreeFacts as ur, deviceHostMachinesClaims as us, StatsScope as ut, parseSetupJournal as v, parseHostedPlatformDevice as va, planLogQuery as vc, DevServerStopRequest as vi, SettingsObject as vl, BuildResult as vn, SettingEntry as vo, parseMacosRecord as vr, easSessionLedgerLock as vs, statsProjectKey as vt, HostedLogsCursor as w, HOSTED_MACOS_APP_SLOTS as wa, sortByTs as wc, MetroLastStop as wi, MachineCredential as wl, DevicePlacement as wn, TunnelMode as wo, archiveEnabled as wr, maintenanceDir as ws, ViewedDevice as wt, agentDeviceStateDirsAsync as x, readHostedDeviceLedger as xa, readLogRecords as xc, IdleStopRecord as xi, clientIdentity as xl, DeviceActivity as xn, SettingWriteResult as xo, ArchivedBytes as xr, gitMergeCacheDir as xs, trimSamples as xt, readSetupJournal as y, parseHostedRequest as ya, queryJsonLogs as yc, DeviceIdleShutdownRecord as yi, StimConfig as yl, BuildWaitingFor as yn, SettingScope as yo, readHostedMacosApp as yr, emulatorLogFile as ys, trimCapacityRefusals as yt, HOSTED_METRO_GATEWAYS_KEY as z, parseHostedMacosChoice as za, readHomeIdentity as zc, readLastBuilds as zi, swiftpmCacheUsageFile as zl, MetroBundleState as zn, RECORDING_PLATFORMS as zo, MaintenanceRecord as zr, trashRoot as zs, readDiskUsage as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { M as BuildReactNativeArtifactQuery, P as BuildSwiftpmArtifactQuery, m as BuildArtifactIdentity } from "./protocol-CrDIdn30.mjs";
|
|
2
2
|
import { Server } from "node:net";
|
|
3
3
|
//#region dir-lock.d.ts
|
|
4
4
|
interface DirLockOptions {
|
|
@@ -116,15 +116,31 @@ declare function compiledHelper({ dir, name, inputs, version, compile, prune }:
|
|
|
116
116
|
}): Promise<string>;
|
|
117
117
|
//#endregion
|
|
118
118
|
//#region dependency-install.d.ts
|
|
119
|
-
/**
|
|
120
|
-
|
|
119
|
+
/**
|
|
120
|
+
* The lockfile that governs the project at `project` inside `root`: the first one found from that directory up to
|
|
121
|
+
* `root`, as package managers resolve their own. `dir` is relative to `root`, `.` for `root` itself.
|
|
122
|
+
*/
|
|
123
|
+
declare function dependencyLockfile(root: string, project?: string): {
|
|
124
|
+
dir: string;
|
|
125
|
+
file: string;
|
|
126
|
+
} | null;
|
|
127
|
+
/**
|
|
128
|
+
* The existing worker install command and marker identity for the lockfile that governs the project at `project`.
|
|
129
|
+
* `dir` is where the install runs, relative to `root`, and `marker` names the area file that records the install
|
|
130
|
+
* there, so each install directory of a repository keeps its own. The marker identity also names the major of the
|
|
131
|
+
* Node `projectNodeBin` picks for the project's pin, or `path` when it picks none, so that native addons are rebuilt
|
|
132
|
+
* when the pinned Node changes major.
|
|
133
|
+
*/
|
|
134
|
+
declare function dependencyInstall(root: string, project?: string, env?: NodeJS.ProcessEnv): {
|
|
121
135
|
command: "pnpm" | "yarn" | "npm";
|
|
122
136
|
args: string[];
|
|
137
|
+
dir: string;
|
|
138
|
+
marker: string;
|
|
123
139
|
lockfile: string;
|
|
124
140
|
digest: string;
|
|
125
141
|
} | null;
|
|
126
142
|
/** Whether the worker can reuse this project's dependency install without running the package manager. */
|
|
127
|
-
declare function reusableDependencies(area: string, project: string,
|
|
143
|
+
declare function reusableDependencies(area: string, project: string, lockfile: string, env?: NodeJS.ProcessEnv): boolean;
|
|
128
144
|
//#endregion
|
|
129
145
|
//#region metro-bridge.d.ts
|
|
130
146
|
interface MetroBridge {
|
|
@@ -221,4 +237,4 @@ declare function updateCacheManifest(file: string, mutate: (caches: Array<Record
|
|
|
221
237
|
declare function cacheDirRefusal(dir: string): string | null;
|
|
222
238
|
declare function registerCache({ dir, name, prune, note, entriesDepth, layout, replaces }: RegisterOptions): void;
|
|
223
239
|
//#endregion
|
|
224
|
-
export { type AsyncStoreArtifactOptions, BuildRunOptions, CacheManifest, CacheRegistrationMatch, type DirLockOptions, LOG_ROTATE_BYTES, METRO_NAMED_CACHE_LAYOUT, type MetroBridge, RegisterOptions, STORE_ROOT_TAG, type StimContext, type StimOutput, type StoreArtifactOptions, type UnitLine, ambientContext, ambientEnv, ambientWrite, artifactIn, buildCacheKey, buildCacheRoot, cacheDirRefusal, cacheManifestLockPath, cacheNameSegment, cachePathSetting, compiledHelper, configDir, createMetroBridge, createMetroGateway, dependencyInstall, ensurePrivateDir, hostSimulatorArch, metroCacheRoot, quoteUnitWord, quotedPath, reactNativeArtifactIdentity, reactNativeArtifactQuery, readCacheManifest, registerCache, resolveArtifact, reusableDependencies, rotateLog, rotatedLogPath, sharedStoreRoot, storeArtifact, storeArtifactAsync, swiftpmArtifactQuery, tagSharedStore, unitLines, unitWords, updateCacheManifest, validMacosResourceDestination, withAmbientContext, withDirLock, withDirLockAsync, withDirLockTransaction, workspaceId, workspaceLogDir, workspaceName, workspaceSlug, workspaceStateDir };
|
|
240
|
+
export { type AsyncStoreArtifactOptions, BuildRunOptions, CacheManifest, CacheRegistrationMatch, type DirLockOptions, LOG_ROTATE_BYTES, METRO_NAMED_CACHE_LAYOUT, type MetroBridge, RegisterOptions, STORE_ROOT_TAG, type StimContext, type StimOutput, type StoreArtifactOptions, type UnitLine, ambientContext, ambientEnv, ambientWrite, artifactIn, buildCacheKey, buildCacheRoot, cacheDirRefusal, cacheManifestLockPath, cacheNameSegment, cachePathSetting, compiledHelper, configDir, createMetroBridge, createMetroGateway, dependencyInstall, dependencyLockfile, ensurePrivateDir, hostSimulatorArch, metroCacheRoot, quoteUnitWord, quotedPath, reactNativeArtifactIdentity, reactNativeArtifactQuery, readCacheManifest, registerCache, resolveArtifact, reusableDependencies, rotateLog, rotatedLogPath, sharedStoreRoot, storeArtifact, storeArtifactAsync, swiftpmArtifactQuery, tagSharedStore, unitLines, unitWords, updateCacheManifest, validMacosResourceDestination, withAmbientContext, withDirLock, withDirLockAsync, withDirLockTransaction, workspaceId, workspaceLogDir, workspaceName, workspaceSlug, workspaceStateDir };
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as quotedPath } from "./ownership-claim-
|
|
2
|
-
import { $ as
|
|
3
|
-
export { LOG_ROTATE_BYTES, METRO_NAMED_CACHE_LAYOUT, STORE_ROOT_TAG, ambientContext, ambientEnv, ambientWrite, artifactIn, buildCacheKey, buildCacheRoot, cacheDirRefusal, cacheManifestLockPath, cacheNameSegment, cachePathSetting, compiledHelper, configDir, createMetroBridge, createMetroGateway, dependencyInstall, ensurePrivateDir, hostSimulatorArch, metroCacheRoot, quoteUnitWord, quotedPath, reactNativeArtifactIdentity, reactNativeArtifactQuery, readCacheManifest, registerCache, resolveArtifact, reusableDependencies, rotateLog, rotatedLogPath, sharedStoreRoot, storeArtifact, storeArtifactAsync, swiftpmArtifactQuery, tagSharedStore, unitLines, unitWords, updateCacheManifest, validMacosResourceDestination, withAmbientContext, withDirLock, withDirLockAsync, withDirLockTransaction, workspaceId, workspaceLogDir, workspaceName, workspaceSlug, workspaceStateDir };
|
|
1
|
+
import { C as quotedPath } from "./ownership-claim-DG2GMIoo.mjs";
|
|
2
|
+
import { $ as withDirLockAsync, A as createMetroGateway, B as unitLines, C as workspaceName, D as reactNativeArtifactIdentity, E as swiftpmArtifactQuery, F as storeArtifactAsync, G as ambientWrite, H as validMacosResourceDestination, I as artifactIn, K as withAmbientContext, L as resolveArtifact, M as dependencyLockfile, N as reusableDependencies, O as reactNativeArtifactQuery, P as compiledHelper, Q as withDirLock, R as storeArtifact, S as workspaceLogDir, T as workspaceStateDir, U as ambientContext, V as unitWords, W as ambientEnv, _ as rotatedLogPath, a as buildCacheRoot, b as updateCacheManifest, c as cacheNameSegment, d as ensurePrivateDir, et as withDirLockTransaction, f as hostSimulatorArch, g as rotateLog, h as registerCache, i as buildCacheKey, j as dependencyInstall, k as createMetroBridge, l as cachePathSetting, m as readCacheManifest, n as METRO_NAMED_CACHE_LAYOUT, o as cacheDirRefusal, p as metroCacheRoot, r as STORE_ROOT_TAG, s as cacheManifestLockPath, t as LOG_ROTATE_BYTES, u as configDir, v as sharedStoreRoot, w as workspaceSlug, x as workspaceId, y as tagSharedStore, z as quoteUnitWord } from "./core-Bzz_SIGQ.mjs";
|
|
3
|
+
export { LOG_ROTATE_BYTES, METRO_NAMED_CACHE_LAYOUT, STORE_ROOT_TAG, ambientContext, ambientEnv, ambientWrite, artifactIn, buildCacheKey, buildCacheRoot, cacheDirRefusal, cacheManifestLockPath, cacheNameSegment, cachePathSetting, compiledHelper, configDir, createMetroBridge, createMetroGateway, dependencyInstall, dependencyLockfile, ensurePrivateDir, hostSimulatorArch, metroCacheRoot, quoteUnitWord, quotedPath, reactNativeArtifactIdentity, reactNativeArtifactQuery, readCacheManifest, registerCache, resolveArtifact, reusableDependencies, rotateLog, rotatedLogPath, sharedStoreRoot, storeArtifact, storeArtifactAsync, swiftpmArtifactQuery, tagSharedStore, unitLines, unitWords, updateCacheManifest, validMacosResourceDestination, withAmbientContext, withDirLock, withDirLockAsync, withDirLockTransaction, workspaceId, workspaceLogDir, workspaceName, workspaceSlug, workspaceStateDir };
|
|
@@ -69,7 +69,7 @@ function claimFailure(err, retryCommand) {
|
|
|
69
69
|
if (isClaimUnavailable(err)) return {
|
|
70
70
|
code: CLAIM_UNAVAILABLE,
|
|
71
71
|
message: err.message,
|
|
72
|
-
remedy: `${err.remedy}, then ${retry}.`
|
|
72
|
+
remedy: err.remedy ? `${err.remedy}, then ${retry}.` : `Check that no process from the failed command is still running, then ${retry}.`
|
|
73
73
|
};
|
|
74
74
|
return null;
|
|
75
75
|
}
|
package/dist/ownership-claim.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as tryAcquireClaim, _ as releaseClaim, a as claimFailure, b as sharedClaimDir, c as clearClaimChild, d as inspectClaimSet, f as isClaimRefusal, g as readClaimSet, h as processGroupAlive, i as ClaimUnavailableError, l as clearFreeClaimSet, m as markClaimChildPending, n as CLAIM_UNAVAILABLE, o as claimLiveness, p as isClaimUnavailable, r as ClaimRefusedError, s as claimRemoveCommand, t as CLAIM_REFUSED, u as exclusiveClaimDir, v as setClaimChild, x as sleepSync, y as settleClaim } from "./ownership-claim-
|
|
1
|
+
import { S as tryAcquireClaim, _ as releaseClaim, a as claimFailure, b as sharedClaimDir, c as clearClaimChild, d as inspectClaimSet, f as isClaimRefusal, g as readClaimSet, h as processGroupAlive, i as ClaimUnavailableError, l as clearFreeClaimSet, m as markClaimChildPending, n as CLAIM_UNAVAILABLE, o as claimLiveness, p as isClaimUnavailable, r as ClaimRefusedError, s as claimRemoveCommand, t as CLAIM_REFUSED, u as exclusiveClaimDir, v as setClaimChild, x as sleepSync, y as settleClaim } from "./ownership-claim-DG2GMIoo.mjs";
|
|
2
2
|
export { CLAIM_REFUSED, CLAIM_UNAVAILABLE, ClaimRefusedError, ClaimUnavailableError, claimFailure, claimLiveness, claimRemoveCommand, clearClaimChild, clearFreeClaimSet, exclusiveClaimDir, inspectClaimSet, isClaimRefusal, isClaimUnavailable, markClaimChildPending, processGroupAlive, readClaimSet, releaseClaim, setClaimChild, settleClaim, sharedClaimDir, sleepSync, tryAcquireClaim };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as AndroidDeviceState, Cn as DeviceLeaseState, Cr as ArchivedWorkspace, Dn as EnvironmentDisk, Hr as MaintenanceStatus, In as MachineUsageState, Kn as RemoteDeviceState, Lr as MaintenancePass, Na as HostedMacosPlacement, Nr as MaintenanceAction, On as EnvironmentState, Pn as MachineOwner, Qn as StatusIssue, Rr as MaintenancePressure, Sn as DeviceAppProcess, Sr as ArchivedUsage, Tn as DiskMeasure, Ut as withDerivedFacts, Wn as PhysicalDeviceState, Yn as SimulatorState, Zt as AgentSession, _n as BuildReport, a as MachineView, cn as BuildDiagnostic, dn as BuildMissChange, dr as WorktreeGit, er as StatusPayload, f as statusViews, fn as BuildMissReason, fr as WorktreePullRequest, hn as BuildPlanPayload, hr as MacosBuild, i as ArchivedSummary, in as BuildActivity, jn as LastBuildReport, kn as GitChip, ln as BuildHistoryEntry, lr as WorkspaceStage, mn as BuildPlacement, or as WebBrowserState, pr as MacosAppRecord, r as applyKeyedDelta, sn as BuildDetail, ur as WorktreeFacts, xn as DeviceActivity, yn as BuildWaitingFor, zn as MetroBundleState } from "./index-
|
|
2
|
-
import { $ as
|
|
1
|
+
import { $t as AndroidDeviceState, Cn as DeviceLeaseState, Cr as ArchivedWorkspace, Dn as EnvironmentDisk, Hr as MaintenanceStatus, In as MachineUsageState, Kn as RemoteDeviceState, Lr as MaintenancePass, Na as HostedMacosPlacement, Nr as MaintenanceAction, On as EnvironmentState, Pn as MachineOwner, Qn as StatusIssue, Rr as MaintenancePressure, Sn as DeviceAppProcess, Sr as ArchivedUsage, Tn as DiskMeasure, Ut as withDerivedFacts, Wn as PhysicalDeviceState, Yn as SimulatorState, Zt as AgentSession, _n as BuildReport, a as MachineView, cn as BuildDiagnostic, dn as BuildMissChange, dr as WorktreeGit, er as StatusPayload, f as statusViews, fn as BuildMissReason, fr as WorktreePullRequest, hn as BuildPlanPayload, hr as MacosBuild, i as ArchivedSummary, in as BuildActivity, jn as LastBuildReport, kn as GitChip, ln as BuildHistoryEntry, lr as WorkspaceStage, mn as BuildPlacement, or as WebBrowserState, pr as MacosAppRecord, r as applyKeyedDelta, sn as BuildDetail, ur as WorktreeFacts, xn as DeviceActivity, yn as BuildWaitingFor, zn as MetroBundleState } from "./index-B8_6CrJ-.mjs";
|
|
2
|
+
import { $ as DesktopBuildProgressEvent, $n as PushRegisterParams, $r as WorkspaceRef, An as MacosWindowsEvent, At as ErrorEvent, Cn as MachineEvent, Ct as DeviceFrameArtwork, Dn as MachineUsage, Et as DeviceUsageSeries, Ft as FrameDelayedEvent, G as ControlBeginResult, Gn as PROTOCOL_VERSION, Hn as NotificationsListResult, In as NotificationEntry, Ir as UsageHistory, It as FrameEvent, Jn as Platform, Jr as WorkspaceEvent, Jt as InputButton, Ln as NotificationEvent, Lr as UsageSample, Lt as FrameTarget, Nn as Methods, O as BuildPlanParams, On as MachineVolume, Or as SimulatorCommand, Pr as TouchPhase, Q as DesktopBuildEndedEvent, Qn as PushEvent, Qr as WorkspacePatch, Rn as NotificationLevel, Sn as MachineDetails, St as DesktopWorktreeWarmProgressEvent, T as BuildMachineReport, Tt as DevicePosture, Ut as HelloParams, Vt as FramesSubscribeResult, W as ControlBeginParams, Wt as HelloResult, Xr as WorkspaceFiles, Xt as InputKey, Y as DEVICE_HOST_METHODS, Yr as WorkspaceFile, Zn as ProtocolError, _n as LogsEvent, _r as SERVER_UPDATE_METHODS, _t as DesktopStopEndedEvent, a as ActionResult, bt as DesktopWorktreeRemoveProgressEvent, c as ArchivedListParams, cr as ReplayEndedEvent, ct as DesktopReportEvent, dr as ReplayMarker, dt as DesktopRunEndedEvent, ei as WorkspacesEvent, et as DesktopGcEndedEvent, fn as LogFilter, fr as ReplayRange, ft as DesktopRunProgressEvent, gn as LogsEndedEvent, gr as RotateDirection, gt as DesktopStartProgressEvent, hn as LogSource, ht as DesktopStartEndedEvent, i as ActionParams, j as BuildProgressEvent, jr as StatusEvent, kr as SimulatorOptions, lr as ReplayKeyframe, mn as LogRecord, mr as ReplayTarget, o as ArchiveDetailParams, on as KeyModifier, ot as DesktopReloadEndedEvent, pn as LogLevel, pr as ReplaySpan, q as ControlEndedEvent, qr as WorkspaceDiff, r as ActionName, st as DesktopReloadProgressEvent, t as ACTIONS, tn as InputSimulatorParams, tt as DesktopGcProgressEvent, u as BUILD_METHODS, ur as ReplayKeyframeParams, v as BuildClientSummary, vn as LogsQueryResult, vt as DesktopStopProgressEvent, wn as MachineHistory, wt as DeviceFrameEvent, xt as DesktopWorktreeWarmEndedEvent, yr as ServerEvent, yt as DesktopWorktreeRemoveEndedEvent, zn as NotificationSuppression } from "./protocol-CrDIdn30.mjs";
|
|
3
3
|
//#region phone-protocol.d.ts
|
|
4
4
|
type PhonePlatform = BuildPlanParams["platform"];
|
|
5
5
|
type PhoneDevicePlatform = Platform;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $i as HostedDevicePlatform, Aa as HostedAppLaunch, Cr as ArchivedWorkspace, Ga as HostedAppOffer, Hr as MaintenanceStatus, Ln as MacosBuildPlanPayload, On as EnvironmentState, Qi as HostedDevicePhase, Sr as ArchivedUsage, T as HostedLogsPage, Ua as HostedAppDelivery, Xi as HostedDeviceOffer,
|
|
1
|
+
import { $i as HostedDevicePlatform, Aa as HostedAppLaunch, Cr as ArchivedWorkspace, Ga as HostedAppOffer, Hr as MaintenanceStatus, Ln as MacosBuildPlanPayload, On as EnvironmentState, Qi as HostedDevicePhase, Sr as ArchivedUsage, T as HostedLogsPage, Ua as HostedAppDelivery, Xi as HostedDeviceOffer, Zi as HostedDeviceOfferRequest, Zl as NdjsonRecord, a as MachineView, d as WorktreeRow, ea as HostedDeviceRequest, er as StatusPayload, hn as BuildPlanPayload, i as ArchivedSummary, ln as BuildHistoryEntry, na as HostedDeviceSession, t as KeyedDelta, u as WorkspaceSummary, ur as WorktreeFacts, w as HostedLogsCursor, xo as SettingWriteResult, yo as SettingScope } from "./index-B8_6CrJ-.mjs";
|
|
2
2
|
//#region protocol.d.ts
|
|
3
3
|
declare const PROTOCOL_VERSION = 2;
|
|
4
4
|
declare const PROTOCOL_SCHEMA_FILE = "protocol.schema.json";
|
|
@@ -28,12 +28,17 @@ type Capability = (typeof CAPABILITIES)[number];
|
|
|
28
28
|
* `hosted-ios-data` is iOS build handoff and native log queries, persisted before device deletion.
|
|
29
29
|
* `hosted-android-data` is Android APK build handoff and native log queries, persisted before device deletion.
|
|
30
30
|
* `hosted-ios-process` and `hosted-android-process` accept native app offers in process mode, with live process readiness and no Metro.
|
|
31
|
+
* `hosted-metro-ports` is `device-host.metro.ports`, which names the listed ports that already accept loopback
|
|
32
|
+
* connections on the host, apart from the requesting client's own dev-client bridges.
|
|
31
33
|
* `native-xcode-build` accepts native Xcode provider requests with a separate source-transfer identity.
|
|
32
34
|
* `native-xcode-toolchain` accepts native Xcode discovery without unrelated platform or Ruby probes.
|
|
33
35
|
* `build-artifact-cache` offers and fetches exact completed native Xcode archives without a build job.
|
|
34
36
|
* `native-gradle-build` accepts declared Gradle transfer inputs with no reusable artifact identity.
|
|
35
37
|
* `native-gradle-artifact-cache` applies caller cache policy to verified worker-scoped APK reuse.
|
|
36
38
|
* `react-native-peer-cache` offers development archives with build-proven fingerprints, options and toolchains.
|
|
39
|
+
* `fingerprint-sources` accepts `fingerprintSources` on `build.start`, so a fingerprint mismatch names the differing sources.
|
|
40
|
+
* `fingerprint-ignored` accepts `fingerprintIgnored` on `build.start`, the paths the caller's git ignored that the machine's git cannot.
|
|
41
|
+
* `fingerprint-tracked` accepts `fingerprintTracked` on `build.start`, the top-level entries the caller's git tracks although an ignore pattern matches them.
|
|
37
42
|
* `native-gradle-peer-cache` queries and fetches completed APKs after rechecking worker-private inputs.
|
|
38
43
|
* `swiftpm-peer-cache` queries and fetches completed SwiftPM apps after rechecking worker-private inputs.
|
|
39
44
|
* `build-dependency-cache` checks dependency warmth against the requested project and install selection.
|
|
@@ -52,9 +57,9 @@ type Capability = (typeof CAPABILITIES)[number];
|
|
|
52
57
|
* `desktop-plan` reads next-build reports for selected folders on the proved local Desktop connection.
|
|
53
58
|
* `desktop-reload` streams reload output and its terminal result on the proved local Desktop connection.
|
|
54
59
|
*/
|
|
55
|
-
declare const FEATURES: readonly ["physical-ios", "physical-android", "notifications", "macos-window", "macos-windows", "macos-window-select", "macos-window-control", "macos-keyboard-extended", "device-frames", "macos-hosted", "ios-hosted", "android-hosted", "hosted-ios-agent", "hosted-android-agent", "duo-frames", "workspace-diff", "hosted-congestion", "hosted-ios-data", "hosted-ios-process", "native-xcode-build", "native-xcode-toolchain", "build-artifact-cache", "native-gradle-build", "native-gradle-artifact-cache", "native-gradle-peer-cache", "react-native-peer-cache", "swiftpm-peer-cache", "build-dependency-cache", "hosted-android-data", "hosted-android-process", "server-update", "status-views", "desktop-reports", "desktop-report-platform", "desktop-settings", "desktop-settings-schema", "desktop-settings-write", "desktop-full-logs", "desktop-doctor-run", "desktop-machine-access", "desktop-stop", "desktop-reload", "desktop-start", "desktop-run", "desktop-build", "desktop-gc", "desktop-worktree-remove", "desktop-worktree-warm", "desktop-plan"];
|
|
60
|
+
declare const FEATURES: readonly ["physical-ios", "physical-android", "notifications", "macos-window", "macos-windows", "macos-window-select", "macos-window-control", "macos-keyboard-extended", "device-frames", "macos-hosted", "ios-hosted", "android-hosted", "hosted-ios-agent", "hosted-android-agent", "duo-frames", "workspace-diff", "hosted-congestion", "hosted-ios-data", "hosted-ios-process", "native-xcode-build", "native-xcode-toolchain", "build-artifact-cache", "native-gradle-build", "native-gradle-artifact-cache", "native-gradle-peer-cache", "react-native-peer-cache", "fingerprint-sources", "fingerprint-ignored", "fingerprint-tracked", "swiftpm-peer-cache", "build-dependency-cache", "hosted-android-data", "hosted-android-process", "hosted-metro-ports", "server-update", "status-views", "desktop-reports", "desktop-report-platform", "desktop-settings", "desktop-settings-schema", "desktop-settings-write", "desktop-full-logs", "desktop-doctor-run", "desktop-machine-access", "desktop-stop", "desktop-reload", "desktop-start", "desktop-run", "desktop-build", "desktop-gc", "desktop-worktree-remove", "desktop-worktree-warm", "desktop-plan"];
|
|
56
61
|
type Feature = (typeof FEATURES)[number];
|
|
57
|
-
declare const METHODS: readonly ["hello", "desktop.authenticate", "desktop.reports.get", "desktop.reports.subscribe", "desktop.reports.invalidate", "desktop.settings.get", "desktop.settings.schema", "desktop.settings.write", "desktop.logs.subscribe", "desktop.doctor.run", "desktop.machine-access.subscribe", "desktop.stop.subscribe", "desktop.reload.subscribe", "desktop.start.subscribe", "desktop.run.subscribe", "desktop.build.subscribe", "desktop.gc.subscribe", "desktop.worktree.remove.subscribe", "desktop.worktree.warm.subscribe", "desktop.plan.get", "desktop.plan.cancel", "route.setup", "status.subscribe", "workspaces.subscribe", "workspace.subscribe", "machine.subscribe", "builds.history", "archived.list", "worktrees.list", "maintenance.get", "logs.query", "logs.subscribe", "stats.get", "settings.get", "workspace.files", "workspace.diff", "frames.subscribe", "frames.keyframe", "frames.seek", "frames.live", "replay.range", "archive.detail", "replay.keyframe", "recording.set", "build.plan", "machine.get", "machine.history", "machine.details", "unsubscribe", "action", "control.begin", "control.end", "input.touch", "input.text", "input.button", "input.rotate", "input.posture", "input.simulator", "input.scroll", "input.key", "input.window", "push.register", "push.unregister", "notifications.list", "build.offer", "build.sync", "build.start", "build.cancel", "build.artifact", "build.cached-artifact", "build.attach", "device-host.offer", "device-host.reserve", "device-host.attach", "device-host.stop", "device-host.app.offer", "device-host.app.chunk", "device-host.app.handoff", "device-host.app.launch", "device-host.app.attach", "device-host.logs.query", "device-host.metro.open", "device-host.metro.close", "device-host.frames.subscribe", "device-host.frames.keyframe", "device-host.frames.congested", "device-host.unsubscribe", "device-host.control.begin", "device-host.control.end", "device-host.input.touch", "device-host.input.text", "device-host.input.scroll", "device-host.input.key", "device-host.input.button", "device-host.input.rotate", "device-host.input.posture", "device-host.input.window", "server.update.status", "server.update.start", "server.update.chunk", "machines.update.start", "machines.update.status", "device-host.sessions", "device-host.sessions.stop"];
|
|
62
|
+
declare const METHODS: readonly ["hello", "desktop.authenticate", "desktop.reports.get", "desktop.reports.subscribe", "desktop.reports.invalidate", "desktop.settings.get", "desktop.settings.schema", "desktop.settings.write", "desktop.logs.subscribe", "desktop.doctor.run", "desktop.machine-access.subscribe", "desktop.stop.subscribe", "desktop.reload.subscribe", "desktop.start.subscribe", "desktop.run.subscribe", "desktop.build.subscribe", "desktop.gc.subscribe", "desktop.worktree.remove.subscribe", "desktop.worktree.warm.subscribe", "desktop.plan.get", "desktop.plan.cancel", "route.setup", "status.subscribe", "workspaces.subscribe", "workspace.subscribe", "machine.subscribe", "builds.history", "archived.list", "worktrees.list", "maintenance.get", "logs.query", "logs.subscribe", "stats.get", "settings.get", "workspace.files", "workspace.diff", "frames.subscribe", "frames.keyframe", "frames.seek", "frames.live", "replay.range", "archive.detail", "replay.keyframe", "recording.set", "build.plan", "machine.get", "machine.history", "machine.details", "unsubscribe", "action", "control.begin", "control.end", "input.touch", "input.text", "input.button", "input.rotate", "input.posture", "input.simulator", "input.scroll", "input.key", "input.window", "push.register", "push.unregister", "notifications.list", "build.offer", "build.sync", "build.start", "build.cancel", "build.artifact", "build.cached-artifact", "build.attach", "device-host.offer", "device-host.reserve", "device-host.attach", "device-host.stop", "device-host.app.offer", "device-host.app.chunk", "device-host.app.handoff", "device-host.app.launch", "device-host.app.attach", "device-host.logs.query", "device-host.metro.open", "device-host.metro.ports", "device-host.metro.close", "device-host.frames.subscribe", "device-host.frames.keyframe", "device-host.frames.congested", "device-host.unsubscribe", "device-host.control.begin", "device-host.control.end", "device-host.input.touch", "device-host.input.text", "device-host.input.scroll", "device-host.input.key", "device-host.input.button", "device-host.input.rotate", "device-host.input.posture", "device-host.input.window", "server.update.status", "server.update.start", "server.update.chunk", "machines.update.start", "machines.update.status", "device-host.sessions", "device-host.sessions.stop"];
|
|
58
63
|
/**
|
|
59
64
|
* The methods that update this server's `stim-server service`. A machine this one approved for `build` or
|
|
60
65
|
* `device-host` may call them; they need neither `read` nor `control`.
|
|
@@ -63,7 +68,7 @@ declare const SERVER_UPDATE_METHODS: readonly ["server.update.status", "server.u
|
|
|
63
68
|
/** The methods a connection with the `build` capability may call; they need `build`, not `read`. */
|
|
64
69
|
declare const BUILD_METHODS: readonly ["build.offer", "build.sync", "build.start", "build.cancel", "build.artifact", "build.cached-artifact", "build.attach"];
|
|
65
70
|
/** Methods restricted to explicitly approved device-host clients. */
|
|
66
|
-
declare const DEVICE_HOST_METHODS: readonly ["device-host.offer", "device-host.reserve", "device-host.attach", "device-host.stop", "device-host.app.offer", "device-host.app.chunk", "device-host.app.handoff", "device-host.app.launch", "device-host.app.attach", "device-host.logs.query", "device-host.metro.open", "device-host.metro.close", "device-host.frames.subscribe", "device-host.frames.keyframe", "device-host.frames.congested", "device-host.unsubscribe", "device-host.control.begin", "device-host.control.end", "device-host.input.touch", "device-host.input.text", "device-host.input.scroll", "device-host.input.key", "device-host.input.button", "device-host.input.rotate", "device-host.input.posture", "device-host.input.window"];
|
|
71
|
+
declare const DEVICE_HOST_METHODS: readonly ["device-host.offer", "device-host.reserve", "device-host.attach", "device-host.stop", "device-host.app.offer", "device-host.app.chunk", "device-host.app.handoff", "device-host.app.launch", "device-host.app.attach", "device-host.logs.query", "device-host.metro.open", "device-host.metro.ports", "device-host.metro.close", "device-host.frames.subscribe", "device-host.frames.keyframe", "device-host.frames.congested", "device-host.unsubscribe", "device-host.control.begin", "device-host.control.end", "device-host.input.touch", "device-host.input.text", "device-host.input.scroll", "device-host.input.key", "device-host.input.button", "device-host.input.rotate", "device-host.input.posture", "device-host.input.window"];
|
|
67
72
|
type Method = (typeof METHODS)[number];
|
|
68
73
|
declare const PUSH_TOKEN_PATTERN = "^(Expo|Exponent)PushToken\\[[^\\]\\s]{1,256}\\]$";
|
|
69
74
|
/**
|
|
@@ -793,6 +798,10 @@ interface BuildAndroidOptions {
|
|
|
793
798
|
gradleRoot?: string | null;
|
|
794
799
|
module?: string | null;
|
|
795
800
|
}
|
|
801
|
+
interface BuildFingerprintSource {
|
|
802
|
+
id: string;
|
|
803
|
+
hash: string | null;
|
|
804
|
+
}
|
|
796
805
|
interface GradleOffloadInputs {
|
|
797
806
|
complete: true;
|
|
798
807
|
ignored: string[];
|
|
@@ -812,6 +821,12 @@ interface BuildStartParams {
|
|
|
812
821
|
iosProjectPath?: string | null;
|
|
813
822
|
runtime?: string | null;
|
|
814
823
|
fingerprint: string | null;
|
|
824
|
+
/** The id and hash of each source of `fingerprint`, so the machine can name the sources its fingerprint differs in. */
|
|
825
|
+
fingerprintSources?: BuildFingerprintSource[];
|
|
826
|
+
/** Paths relative to `project` that the client's git ignores for `fingerprint`, such as through .git/info/exclude. */
|
|
827
|
+
fingerprintIgnored?: string[];
|
|
828
|
+
/** Top-level entries of `project` that the client's git tracks although an ignore pattern matches them. */
|
|
829
|
+
fingerprintTracked?: string[];
|
|
815
830
|
native?: {
|
|
816
831
|
provider: "xcode";
|
|
817
832
|
sourceDigest: string;
|
|
@@ -1358,6 +1373,14 @@ interface Methods {
|
|
|
1358
1373
|
port: number;
|
|
1359
1374
|
};
|
|
1360
1375
|
};
|
|
1376
|
+
"device-host.metro.ports": {
|
|
1377
|
+
params: {
|
|
1378
|
+
ports: number[];
|
|
1379
|
+
};
|
|
1380
|
+
result: {
|
|
1381
|
+
busy: number[];
|
|
1382
|
+
};
|
|
1383
|
+
};
|
|
1361
1384
|
"device-host.metro.close": {
|
|
1362
1385
|
params: {
|
|
1363
1386
|
session: string;
|
|
@@ -2121,4 +2144,4 @@ type ServeRoute = {
|
|
|
2121
2144
|
port: number;
|
|
2122
2145
|
};
|
|
2123
2146
|
//#endregion
|
|
2124
|
-
export {
|
|
2147
|
+
export { DesktopBuildProgressEvent as $, PushRegisterParams as $n, WorkspaceRef as $r, InputRotateParams as $t, BuildPlatform as A, MacosWindowsEvent as An, StatsResult as Ar, ErrorEvent as At, CONTROL_END_REASONS as B, NotificationTarget as Bn, VIDEO_CODECS as Br, FramesSeekResult as Bt, BuildJobParams as C, MachineEvent as Cn, ServerUpdatePackage as Cr, DeviceFrameArtwork as Ct, BuildOfferResult as D, MachineUsage as Dn, SettingsResult as Dr, DuoFramePose as Dt, BuildOfferParams as E, MachineUpdateStatus as En, ServerUpdateStatus as Er, DeviceUsageSeries as Et, BuildSyncParams as F, NOTIFICATION_SUPPRESSIONS as Fn, UnsubscribeParams as Fr, FrameDelayedEvent as Ft, ControlBeginResult as G, PROTOCOL_VERSION as Gn, VideoCodec as Gr, HostedSessionRow as Gt, Capability as H, NotificationsListResult as Hn, VIDEO_HEADER_VERSION as Hr, GradleOffloadInputs as Ht, BuildSyncResult as I, NotificationEntry as In, UsageHistory as Ir, FrameEvent as It, ControlPlatform as J, Platform as Jn, WorkspaceEvent as Jr, InputButton as Jt, ControlEndParams as K, PUSH_EVENTS as Kn, VideoPacket as Kr, INPUT_BUTTONS as Kt, BuildToolchain as L, NotificationEvent as Ln, UsageSample as Lr, FrameTarget as Lt, BuildReactNativeArtifactQuery as M, Method as Mn, SubscribeResult as Mr, FRAME_EDGE as Mt, BuildStartParams as N, Methods as Nn, TOUCH_PHASES as Nr, FRAME_FPS as Nt, BuildPlanParams as O, MachineVolume as On, SimulatorCommand as Or, ERROR_CODES as Ot, BuildSwiftpmArtifactQuery as P, NOTIFICATION_LEVELS as Pn, TouchPhase as Pr, Feature as Pt, DesktopBuildEndedEvent as Q, PushEvent as Qn, WorkspacePatch as Qr, InputPostureParams as Qt, BuildsHistoryResult as R, NotificationLevel as Rn, UsageSeries as Rr, FramesLiveParams as Rt, BuildJobOutcome as S, MachineDetails as Sn, ServerUpdateOutcome as Sr, DesktopWorktreeWarmProgressEvent as St, BuildMachineReport as T, MachineHistoryParams as Tn, ServerUpdateStartParams as Tr, DevicePosture as Tt, ClientRequest as U, PLATFORMS as Un, VIDEO_KEYFRAME as Ur, HelloParams as Ut, CachedBuildArtifact as V, NotificationsListParams as Vn, VIDEO_FOLDED as Vr, FramesSubscribeResult as Vt, ControlBeginParams as W, PROTOCOL_SCHEMA_FILE as Wn, VIDEO_UNFOLDED as Wr, HelloResult as Wt, DEVICE_POSTURES as X, PlatformRunOptions as Xn, WorkspaceFiles as Xr, InputKey as Xt, DEVICE_HOST_METHODS as Y, PlatformBuildOptions as Yn, WorkspaceFile as Yr, InputButtonParams as Yt, DesktopBootstrapChallenge as Z, ProtocolError as Zn, WorkspaceParams as Zr, InputKeyParams as Zt, BuildCapacity as _, LogsEvent as _n, SERVER_UPDATE_METHODS as _r, DesktopStopEndedEvent as _t, ActionResult as a, KEY_MODIFIERS as an, RecordingSetParams as ar, DesktopPlanRefusal as at, BuildFingerprintSource as b, MAX_LOG_TAIL as bn, ServerMessage as br, DesktopWorktreeRemoveProgressEvent as bt, ArchivedListParams as c, LEGACY_PUSH_EVENTS as cn, ReplayEndedEvent as cr, DesktopReportEvent as ct, BUILD_REPO_PATTERN as d, LegacyPushEvent as dn, ReplayMarker as dr, DesktopRunEndedEvent as dt, WorkspacesEvent as ei, InputScrollParams as en, QuietHours as er, DesktopGcEndedEvent as et, BUILD_RUBY_VERSION_PATTERN as f, LogFilter as fn, ReplayRange as fr, DesktopRunProgressEvent as ft, BuildAttachResult as g, LogsEndedEvent as gn, RotateDirection as gr, DesktopStartProgressEvent as gt, BuildArtifactResult as h, LogSource as hn, RequestId as hr, DesktopStartEndedEvent as ht, ActionParams as i, InputWindowParams as in, ROTATE_DIRECTIONS as ir, DesktopMachineAccessProgressEvent as it, BuildProgressEvent as j, MemoryPressure as jn, StatusEvent as jr, FEATURES as jt, BuildPlanResult as k, MacosWindow as kn, SimulatorOptions as kr, ErrorCode as kt, ArchivedListResult as l, LOG_LEVELS as ln, ReplayKeyframe as lr, DesktopReportSnapshot as lt, BuildArtifactIdentity as m, LogRecord as mn, ReplayTarget as mr, DesktopSettingsWriteResult as mt, ARCHIVED_PAGE_LIMIT as n, InputTextParams as nn, REPLAY_MARKER_KINDS as nr, DesktopLogFilter as nt, ArchiveDetailParams as o, KeyModifier as on, RecordingSetResult as or, DesktopReloadEndedEvent as ot, BuildAndroidOptions as p, LogLevel as pn, ReplaySpan as pr, DesktopSettingsWriteParams as pt, ControlEndedEvent as q, PUSH_TOKEN_PATTERN as qn, WorkspaceDiff as qr, INPUT_KEYS as qt, ActionName as r, InputTouchParams as rn, REPLAY_RATES as rr, DesktopMachineAccessEndedEvent as rt, ArchiveDetailResult as s, KeyframeParams as sn, ReloadPlatform as sr, DesktopReloadProgressEvent as st, ACTIONS as t, WorkspacesSnapshot as ti, InputSimulatorParams as tn, RELOAD_PLATFORMS as tr, DesktopGcProgressEvent as tt, BUILD_METHODS as u, LOG_SOURCES as un, ReplayKeyframeParams as ur, DesktopReportTarget as ut, BuildClientSummary as v, LogsQueryResult as vn, ServeRoute as vr, DesktopStopProgressEvent as vt, BuildMachineCapacity as w, MachineHistory as wn, ServerUpdateProgress as wr, DeviceFrameEvent as wt, BuildGradleArtifactQuery as x, METHODS as xn, ServerResponse as xr, DesktopWorktreeWarmEndedEvent as xt, BuildFile as y, MAX_INPUT_TEXT as yn, ServerEvent as yr, DesktopWorktreeRemoveEndedEvent as yt, CAPABILITIES as z, NotificationSuppression as zn, VIDEO_ARTWORK as zr, FramesSeekParams as zt };
|
package/dist/protocol.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { ACTIONS, ARCHIVED_PAGE_LIMIT, ActionName, ActionParams, ActionResult, ArchiveDetailParams, ArchiveDetailResult, ArchivedListParams, ArchivedListResult, BUILD_METHODS, BUILD_REPO_PATTERN, BUILD_RUBY_VERSION_PATTERN, BuildAndroidOptions, BuildArtifactIdentity, BuildArtifactResult, BuildAttachResult, BuildCapacity, BuildClientSummary, BuildFile, BuildGradleArtifactQuery, BuildJobOutcome, BuildJobParams, BuildMachineCapacity, BuildMachineReport, BuildOfferParams, BuildOfferResult, BuildPlanParams, BuildPlanResult, BuildPlatform, BuildProgressEvent, BuildReactNativeArtifactQuery, BuildStartParams, BuildSwiftpmArtifactQuery, BuildSyncParams, BuildSyncResult, BuildToolchain, BuildsHistoryResult, CAPABILITIES, CONTROL_END_REASONS, CachedBuildArtifact, Capability, ClientRequest, ControlBeginParams, ControlBeginResult, ControlEndParams, ControlEndedEvent, ControlPlatform, DEVICE_HOST_METHODS, DEVICE_POSTURES, DesktopBootstrapChallenge, DesktopBuildEndedEvent, DesktopBuildProgressEvent, DesktopGcEndedEvent, DesktopGcProgressEvent, DesktopLogFilter, DesktopMachineAccessEndedEvent, DesktopMachineAccessProgressEvent, DesktopPlanRefusal, DesktopReloadEndedEvent, DesktopReloadProgressEvent, DesktopReportEvent, DesktopReportSnapshot, DesktopReportTarget, DesktopRunEndedEvent, DesktopRunProgressEvent, DesktopSettingsWriteParams, DesktopSettingsWriteResult, DesktopStartEndedEvent, DesktopStartProgressEvent, DesktopStopEndedEvent, DesktopStopProgressEvent, DesktopWorktreeRemoveEndedEvent, DesktopWorktreeRemoveProgressEvent, DesktopWorktreeWarmEndedEvent, DesktopWorktreeWarmProgressEvent, DeviceFrameArtwork, DeviceFrameEvent, DevicePosture, DeviceUsageSeries, DuoFramePose, ERROR_CODES, ErrorCode, ErrorEvent, FEATURES, FRAME_EDGE, FRAME_FPS, Feature, FrameDelayedEvent, FrameEvent, FrameTarget, FramesLiveParams, FramesSeekParams, FramesSeekResult, FramesSubscribeResult, GradleOffloadInputs, HelloParams, HelloResult, HostedSessionRow, INPUT_BUTTONS, INPUT_KEYS, InputButton, InputButtonParams, InputKey, InputKeyParams, InputPostureParams, InputRotateParams, InputScrollParams, InputSimulatorParams, InputTextParams, InputTouchParams, InputWindowParams, KEY_MODIFIERS, KeyModifier, KeyframeParams, LEGACY_PUSH_EVENTS, LOG_LEVELS, LOG_SOURCES, LegacyPushEvent, LogFilter, LogLevel, LogRecord, LogSource, LogsEndedEvent, LogsEvent, LogsQueryResult, MAX_INPUT_TEXT, MAX_LOG_TAIL, METHODS, MachineDetails, MachineEvent, MachineHistory, MachineHistoryParams, MachineUpdateStatus, MachineUsage, MachineVolume, MacosWindow, MacosWindowsEvent, MemoryPressure, Method, Methods, NOTIFICATION_LEVELS, NOTIFICATION_SUPPRESSIONS, NotificationEntry, NotificationEvent, NotificationLevel, NotificationSuppression, NotificationTarget, NotificationsListParams, NotificationsListResult, PLATFORMS, PROTOCOL_SCHEMA_FILE, PROTOCOL_VERSION, PUSH_EVENTS, PUSH_TOKEN_PATTERN, Platform, PlatformBuildOptions, PlatformRunOptions, ProtocolError, PushEvent, PushRegisterParams, QuietHours, RELOAD_PLATFORMS, REPLAY_MARKER_KINDS, REPLAY_RATES, ROTATE_DIRECTIONS, RecordingSetParams, RecordingSetResult, ReloadPlatform, ReplayEndedEvent, ReplayKeyframe, ReplayKeyframeParams, ReplayMarker, ReplayRange, ReplaySpan, ReplayTarget, RequestId, RotateDirection, SERVER_UPDATE_METHODS, ServeRoute, ServerEvent, ServerMessage, ServerResponse, ServerUpdateOutcome, ServerUpdatePackage, ServerUpdateProgress, ServerUpdateStartParams, ServerUpdateStatus, SettingsResult, SimulatorCommand, SimulatorOptions, StatsResult, StatusEvent, SubscribeResult, TOUCH_PHASES, TouchPhase, UnsubscribeParams, UsageHistory, UsageSample, UsageSeries, VIDEO_ARTWORK, VIDEO_CODECS, VIDEO_FOLDED, VIDEO_HEADER_VERSION, VIDEO_KEYFRAME, VIDEO_UNFOLDED, VideoCodec, VideoPacket, WorkspaceDiff, WorkspaceEvent, WorkspaceFile, WorkspaceFiles, WorkspaceParams, WorkspacePatch, WorkspaceRef, WorkspacesEvent, WorkspacesSnapshot };
|
|
1
|
+
import { $ as DesktopBuildProgressEvent, $n as PushRegisterParams, $r as WorkspaceRef, $t as InputRotateParams, A as BuildPlatform, An as MacosWindowsEvent, Ar as StatsResult, At as ErrorEvent, B as CONTROL_END_REASONS, Bn as NotificationTarget, Br as VIDEO_CODECS, Bt as FramesSeekResult, C as BuildJobParams, Cn as MachineEvent, Cr as ServerUpdatePackage, Ct as DeviceFrameArtwork, D as BuildOfferResult, Dn as MachineUsage, Dr as SettingsResult, Dt as DuoFramePose, E as BuildOfferParams, En as MachineUpdateStatus, Er as ServerUpdateStatus, Et as DeviceUsageSeries, F as BuildSyncParams, Fn as NOTIFICATION_SUPPRESSIONS, Fr as UnsubscribeParams, Ft as FrameDelayedEvent, G as ControlBeginResult, Gn as PROTOCOL_VERSION, Gr as VideoCodec, Gt as HostedSessionRow, H as Capability, Hn as NotificationsListResult, Hr as VIDEO_HEADER_VERSION, Ht as GradleOffloadInputs, I as BuildSyncResult, In as NotificationEntry, Ir as UsageHistory, It as FrameEvent, J as ControlPlatform, Jn as Platform, Jr as WorkspaceEvent, Jt as InputButton, K as ControlEndParams, Kn as PUSH_EVENTS, Kr as VideoPacket, Kt as INPUT_BUTTONS, L as BuildToolchain, Ln as NotificationEvent, Lr as UsageSample, Lt as FrameTarget, M as BuildReactNativeArtifactQuery, Mn as Method, Mr as SubscribeResult, Mt as FRAME_EDGE, N as BuildStartParams, Nn as Methods, Nr as TOUCH_PHASES, Nt as FRAME_FPS, O as BuildPlanParams, On as MachineVolume, Or as SimulatorCommand, Ot as ERROR_CODES, P as BuildSwiftpmArtifactQuery, Pn as NOTIFICATION_LEVELS, Pr as TouchPhase, Pt as Feature, Q as DesktopBuildEndedEvent, Qn as PushEvent, Qr as WorkspacePatch, Qt as InputPostureParams, R as BuildsHistoryResult, Rn as NotificationLevel, Rr as UsageSeries, Rt as FramesLiveParams, S as BuildJobOutcome, Sn as MachineDetails, Sr as ServerUpdateOutcome, St as DesktopWorktreeWarmProgressEvent, T as BuildMachineReport, Tn as MachineHistoryParams, Tr as ServerUpdateStartParams, Tt as DevicePosture, U as ClientRequest, Un as PLATFORMS, Ur as VIDEO_KEYFRAME, Ut as HelloParams, V as CachedBuildArtifact, Vn as NotificationsListParams, Vr as VIDEO_FOLDED, Vt as FramesSubscribeResult, W as ControlBeginParams, Wn as PROTOCOL_SCHEMA_FILE, Wr as VIDEO_UNFOLDED, Wt as HelloResult, X as DEVICE_POSTURES, Xn as PlatformRunOptions, Xr as WorkspaceFiles, Xt as InputKey, Y as DEVICE_HOST_METHODS, Yn as PlatformBuildOptions, Yr as WorkspaceFile, Yt as InputButtonParams, Z as DesktopBootstrapChallenge, Zn as ProtocolError, Zr as WorkspaceParams, Zt as InputKeyParams, _ as BuildCapacity, _n as LogsEvent, _r as SERVER_UPDATE_METHODS, _t as DesktopStopEndedEvent, a as ActionResult, an as KEY_MODIFIERS, ar as RecordingSetParams, at as DesktopPlanRefusal, b as BuildFingerprintSource, bn as MAX_LOG_TAIL, br as ServerMessage, bt as DesktopWorktreeRemoveProgressEvent, c as ArchivedListParams, cn as LEGACY_PUSH_EVENTS, cr as ReplayEndedEvent, ct as DesktopReportEvent, d as BUILD_REPO_PATTERN, dn as LegacyPushEvent, dr as ReplayMarker, dt as DesktopRunEndedEvent, ei as WorkspacesEvent, en as InputScrollParams, er as QuietHours, et as DesktopGcEndedEvent, f as BUILD_RUBY_VERSION_PATTERN, fn as LogFilter, fr as ReplayRange, ft as DesktopRunProgressEvent, g as BuildAttachResult, gn as LogsEndedEvent, gr as RotateDirection, gt as DesktopStartProgressEvent, h as BuildArtifactResult, hn as LogSource, hr as RequestId, ht as DesktopStartEndedEvent, i as ActionParams, in as InputWindowParams, ir as ROTATE_DIRECTIONS, it as DesktopMachineAccessProgressEvent, j as BuildProgressEvent, jn as MemoryPressure, jr as StatusEvent, jt as FEATURES, k as BuildPlanResult, kn as MacosWindow, kr as SimulatorOptions, kt as ErrorCode, l as ArchivedListResult, ln as LOG_LEVELS, lr as ReplayKeyframe, lt as DesktopReportSnapshot, m as BuildArtifactIdentity, mn as LogRecord, mr as ReplayTarget, mt as DesktopSettingsWriteResult, n as ARCHIVED_PAGE_LIMIT, nn as InputTextParams, nr as REPLAY_MARKER_KINDS, nt as DesktopLogFilter, o as ArchiveDetailParams, on as KeyModifier, or as RecordingSetResult, ot as DesktopReloadEndedEvent, p as BuildAndroidOptions, pn as LogLevel, pr as ReplaySpan, pt as DesktopSettingsWriteParams, q as ControlEndedEvent, qn as PUSH_TOKEN_PATTERN, qr as WorkspaceDiff, qt as INPUT_KEYS, r as ActionName, rn as InputTouchParams, rr as REPLAY_RATES, rt as DesktopMachineAccessEndedEvent, s as ArchiveDetailResult, sn as KeyframeParams, sr as ReloadPlatform, st as DesktopReloadProgressEvent, t as ACTIONS, ti as WorkspacesSnapshot, tn as InputSimulatorParams, tr as RELOAD_PLATFORMS, tt as DesktopGcProgressEvent, u as BUILD_METHODS, un as LOG_SOURCES, ur as ReplayKeyframeParams, ut as DesktopReportTarget, v as BuildClientSummary, vn as LogsQueryResult, vr as ServeRoute, vt as DesktopStopProgressEvent, w as BuildMachineCapacity, wn as MachineHistory, wr as ServerUpdateProgress, wt as DeviceFrameEvent, x as BuildGradleArtifactQuery, xn as METHODS, xr as ServerResponse, xt as DesktopWorktreeWarmEndedEvent, y as BuildFile, yn as MAX_INPUT_TEXT, yr as ServerEvent, yt as DesktopWorktreeRemoveEndedEvent, z as CAPABILITIES, zn as NotificationSuppression, zr as VIDEO_ARTWORK, zt as FramesSeekParams } from "./protocol-CrDIdn30.mjs";
|
|
2
|
+
export { ACTIONS, ARCHIVED_PAGE_LIMIT, ActionName, ActionParams, ActionResult, ArchiveDetailParams, ArchiveDetailResult, ArchivedListParams, ArchivedListResult, BUILD_METHODS, BUILD_REPO_PATTERN, BUILD_RUBY_VERSION_PATTERN, BuildAndroidOptions, BuildArtifactIdentity, BuildArtifactResult, BuildAttachResult, BuildCapacity, BuildClientSummary, BuildFile, BuildFingerprintSource, BuildGradleArtifactQuery, BuildJobOutcome, BuildJobParams, BuildMachineCapacity, BuildMachineReport, BuildOfferParams, BuildOfferResult, BuildPlanParams, BuildPlanResult, BuildPlatform, BuildProgressEvent, BuildReactNativeArtifactQuery, BuildStartParams, BuildSwiftpmArtifactQuery, BuildSyncParams, BuildSyncResult, BuildToolchain, BuildsHistoryResult, CAPABILITIES, CONTROL_END_REASONS, CachedBuildArtifact, Capability, ClientRequest, ControlBeginParams, ControlBeginResult, ControlEndParams, ControlEndedEvent, ControlPlatform, DEVICE_HOST_METHODS, DEVICE_POSTURES, DesktopBootstrapChallenge, DesktopBuildEndedEvent, DesktopBuildProgressEvent, DesktopGcEndedEvent, DesktopGcProgressEvent, DesktopLogFilter, DesktopMachineAccessEndedEvent, DesktopMachineAccessProgressEvent, DesktopPlanRefusal, DesktopReloadEndedEvent, DesktopReloadProgressEvent, DesktopReportEvent, DesktopReportSnapshot, DesktopReportTarget, DesktopRunEndedEvent, DesktopRunProgressEvent, DesktopSettingsWriteParams, DesktopSettingsWriteResult, DesktopStartEndedEvent, DesktopStartProgressEvent, DesktopStopEndedEvent, DesktopStopProgressEvent, DesktopWorktreeRemoveEndedEvent, DesktopWorktreeRemoveProgressEvent, DesktopWorktreeWarmEndedEvent, DesktopWorktreeWarmProgressEvent, DeviceFrameArtwork, DeviceFrameEvent, DevicePosture, DeviceUsageSeries, DuoFramePose, ERROR_CODES, ErrorCode, ErrorEvent, FEATURES, FRAME_EDGE, FRAME_FPS, Feature, FrameDelayedEvent, FrameEvent, FrameTarget, FramesLiveParams, FramesSeekParams, FramesSeekResult, FramesSubscribeResult, GradleOffloadInputs, HelloParams, HelloResult, HostedSessionRow, INPUT_BUTTONS, INPUT_KEYS, InputButton, InputButtonParams, InputKey, InputKeyParams, InputPostureParams, InputRotateParams, InputScrollParams, InputSimulatorParams, InputTextParams, InputTouchParams, InputWindowParams, KEY_MODIFIERS, KeyModifier, KeyframeParams, LEGACY_PUSH_EVENTS, LOG_LEVELS, LOG_SOURCES, LegacyPushEvent, LogFilter, LogLevel, LogRecord, LogSource, LogsEndedEvent, LogsEvent, LogsQueryResult, MAX_INPUT_TEXT, MAX_LOG_TAIL, METHODS, MachineDetails, MachineEvent, MachineHistory, MachineHistoryParams, MachineUpdateStatus, MachineUsage, MachineVolume, MacosWindow, MacosWindowsEvent, MemoryPressure, Method, Methods, NOTIFICATION_LEVELS, NOTIFICATION_SUPPRESSIONS, NotificationEntry, NotificationEvent, NotificationLevel, NotificationSuppression, NotificationTarget, NotificationsListParams, NotificationsListResult, PLATFORMS, PROTOCOL_SCHEMA_FILE, PROTOCOL_VERSION, PUSH_EVENTS, PUSH_TOKEN_PATTERN, Platform, PlatformBuildOptions, PlatformRunOptions, ProtocolError, PushEvent, PushRegisterParams, QuietHours, RELOAD_PLATFORMS, REPLAY_MARKER_KINDS, REPLAY_RATES, ROTATE_DIRECTIONS, RecordingSetParams, RecordingSetResult, ReloadPlatform, ReplayEndedEvent, ReplayKeyframe, ReplayKeyframeParams, ReplayMarker, ReplayRange, ReplaySpan, ReplayTarget, RequestId, RotateDirection, SERVER_UPDATE_METHODS, ServeRoute, ServerEvent, ServerMessage, ServerResponse, ServerUpdateOutcome, ServerUpdatePackage, ServerUpdateProgress, ServerUpdateStartParams, ServerUpdateStatus, SettingsResult, SimulatorCommand, SimulatorOptions, StatsResult, StatusEvent, SubscribeResult, TOUCH_PHASES, TouchPhase, UnsubscribeParams, UsageHistory, UsageSample, UsageSeries, VIDEO_ARTWORK, VIDEO_CODECS, VIDEO_FOLDED, VIDEO_HEADER_VERSION, VIDEO_KEYFRAME, VIDEO_UNFOLDED, VideoCodec, VideoPacket, WorkspaceDiff, WorkspaceEvent, WorkspaceFile, WorkspaceFiles, WorkspaceParams, WorkspacePatch, WorkspaceRef, WorkspacesEvent, WorkspacesSnapshot };
|
package/dist/protocol.mjs
CHANGED
|
@@ -31,12 +31,17 @@ const CAPABILITIES = [
|
|
|
31
31
|
* `hosted-ios-data` is iOS build handoff and native log queries, persisted before device deletion.
|
|
32
32
|
* `hosted-android-data` is Android APK build handoff and native log queries, persisted before device deletion.
|
|
33
33
|
* `hosted-ios-process` and `hosted-android-process` accept native app offers in process mode, with live process readiness and no Metro.
|
|
34
|
+
* `hosted-metro-ports` is `device-host.metro.ports`, which names the listed ports that already accept loopback
|
|
35
|
+
* connections on the host, apart from the requesting client's own dev-client bridges.
|
|
34
36
|
* `native-xcode-build` accepts native Xcode provider requests with a separate source-transfer identity.
|
|
35
37
|
* `native-xcode-toolchain` accepts native Xcode discovery without unrelated platform or Ruby probes.
|
|
36
38
|
* `build-artifact-cache` offers and fetches exact completed native Xcode archives without a build job.
|
|
37
39
|
* `native-gradle-build` accepts declared Gradle transfer inputs with no reusable artifact identity.
|
|
38
40
|
* `native-gradle-artifact-cache` applies caller cache policy to verified worker-scoped APK reuse.
|
|
39
41
|
* `react-native-peer-cache` offers development archives with build-proven fingerprints, options and toolchains.
|
|
42
|
+
* `fingerprint-sources` accepts `fingerprintSources` on `build.start`, so a fingerprint mismatch names the differing sources.
|
|
43
|
+
* `fingerprint-ignored` accepts `fingerprintIgnored` on `build.start`, the paths the caller's git ignored that the machine's git cannot.
|
|
44
|
+
* `fingerprint-tracked` accepts `fingerprintTracked` on `build.start`, the top-level entries the caller's git tracks although an ignore pattern matches them.
|
|
40
45
|
* `native-gradle-peer-cache` queries and fetches completed APKs after rechecking worker-private inputs.
|
|
41
46
|
* `swiftpm-peer-cache` queries and fetches completed SwiftPM apps after rechecking worker-private inputs.
|
|
42
47
|
* `build-dependency-cache` checks dependency warmth against the requested project and install selection.
|
|
@@ -82,10 +87,14 @@ const FEATURES = [
|
|
|
82
87
|
"native-gradle-artifact-cache",
|
|
83
88
|
"native-gradle-peer-cache",
|
|
84
89
|
"react-native-peer-cache",
|
|
90
|
+
"fingerprint-sources",
|
|
91
|
+
"fingerprint-ignored",
|
|
92
|
+
"fingerprint-tracked",
|
|
85
93
|
"swiftpm-peer-cache",
|
|
86
94
|
"build-dependency-cache",
|
|
87
95
|
"hosted-android-data",
|
|
88
96
|
"hosted-android-process",
|
|
97
|
+
"hosted-metro-ports",
|
|
89
98
|
"server-update",
|
|
90
99
|
"status-views",
|
|
91
100
|
"desktop-reports",
|
|
@@ -189,6 +198,7 @@ const METHODS = [
|
|
|
189
198
|
"device-host.app.attach",
|
|
190
199
|
"device-host.logs.query",
|
|
191
200
|
"device-host.metro.open",
|
|
201
|
+
"device-host.metro.ports",
|
|
192
202
|
"device-host.metro.close",
|
|
193
203
|
"device-host.frames.subscribe",
|
|
194
204
|
"device-host.frames.keyframe",
|
|
@@ -244,6 +254,7 @@ const DEVICE_HOST_METHODS = [
|
|
|
244
254
|
"device-host.app.attach",
|
|
245
255
|
"device-host.logs.query",
|
|
246
256
|
"device-host.metro.open",
|
|
257
|
+
"device-host.metro.ports",
|
|
247
258
|
"device-host.metro.close",
|
|
248
259
|
"device-host.frames.subscribe",
|
|
249
260
|
"device-host.frames.keyframe",
|