Skip to content

Commit e00a91f

Browse files
committed
chore(gates): re-flow the lines the move and its retargets widened
Generated with assistance.
1 parent 6d90168 commit e00a91f

40 files changed

Lines changed: 167 additions & 73 deletions

‎packages/command-registry/src/registry.ts‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,9 @@ export const RAW_COMMAND_DESCRIPTORS = [
508508
{
509509
name: 'human_control',
510510
deviceClaimPolicy: 'none',
511-
...(ownerFilesEnabled ? { ownerFiles: ['packages/daemon/src/handlers/human-control.ts'] as const } : {}),
511+
...(ownerFilesEnabled
512+
? { ownerFiles: ['packages/daemon/src/handlers/human-control.ts'] as const }
513+
: {}),
512514
catalog: { group: 'internal', key: 'humanControl' },
513515
recordsSessionAction: false,
514516
daemon: {
@@ -526,7 +528,9 @@ export const RAW_COMMAND_DESCRIPTORS = [
526528
{
527529
name: 'lease_allocate',
528530
deviceClaimPolicy: 'none',
529-
...(ownerFilesEnabled ? { ownerFiles: ['packages/daemon/src/handlers/lease.ts'] as const } : {}),
531+
...(ownerFilesEnabled
532+
? { ownerFiles: ['packages/daemon/src/handlers/lease.ts'] as const }
533+
: {}),
530534
catalog: { group: 'internal', key: 'leaseAllocate' },
531535
recordsSessionAction: false,
532536
daemon: {
@@ -541,7 +545,9 @@ export const RAW_COMMAND_DESCRIPTORS = [
541545
{
542546
name: 'lease_heartbeat',
543547
deviceClaimPolicy: 'none',
544-
...(ownerFilesEnabled ? { ownerFiles: ['packages/daemon/src/handlers/lease.ts'] as const } : {}),
548+
...(ownerFilesEnabled
549+
? { ownerFiles: ['packages/daemon/src/handlers/lease.ts'] as const }
550+
: {}),
545551
catalog: { group: 'internal', key: 'leaseHeartbeat' },
546552
recordsSessionAction: false,
547553
daemon: {
@@ -557,7 +563,9 @@ export const RAW_COMMAND_DESCRIPTORS = [
557563
{
558564
name: 'lease_release',
559565
deviceClaimPolicy: 'none',
560-
...(ownerFilesEnabled ? { ownerFiles: ['packages/daemon/src/handlers/lease.ts'] as const } : {}),
566+
...(ownerFilesEnabled
567+
? { ownerFiles: ['packages/daemon/src/handlers/lease.ts'] as const }
568+
: {}),
561569
catalog: { group: 'internal', key: 'leaseRelease' },
562570
recordsSessionAction: false,
563571
daemon: {
@@ -1502,7 +1510,9 @@ export const RAW_COMMAND_DESCRIPTORS = [
15021510
},
15031511
{
15041512
name: 'scroll',
1505-
...(ownerFilesEnabled ? { ownerFiles: ['packages/daemon/src/scroll-runtime.ts'] as const } : {}),
1513+
...(ownerFilesEnabled
1514+
? { ownerFiles: ['packages/daemon/src/scroll-runtime.ts'] as const }
1515+
: {}),
15061516
catalog: { group: 'public' },
15071517
frameworkTier: 'core',
15081518
// R53 retires this command's capability bucket and its `dispatch` leaf together: admission is

‎packages/daemon/src/__tests__/atomic-publish-ownership.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import { test } from 'vitest';
55
const SIMPLE_PUBLISHERS = [
66
// device-claims.ts delegates every write to device-claim-store.ts's writeDeviceClaim.
77
new URL('../device/device-claim-store.ts', import.meta.url),
8-
new URL('../../../../packages/daemon-contracts/src/daemon-registration-owner.ts', import.meta.url),
8+
new URL(
9+
'../../../../packages/daemon-contracts/src/daemon-registration-owner.ts',
10+
import.meta.url,
11+
),
912
new URL('../provider-lease-expiry.ts', import.meta.url),
1013
new URL('../session-script-writer.ts', import.meta.url),
1114
new URL('../../../../packages/platform-apple/src/runner/runner-lease.ts', import.meta.url),

‎packages/daemon/src/interaction/internal/__tests__/gesture-runtime-bindings.fixtures.ts‎

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,19 @@ export function gestureRuntimeBindingsFixture(
2626
? ({ available: false, reason: 'unsupported-platform-leaf' } as const)
2727
: available;
2828
const operationSpies = {
29-
captureSnapshot: vi.fn(async () => ({ backend: 'xctest' as const, nodes: [] })) as Mock<() => Promise<{ backend: 'xctest'; nodes: [] }>>,
29+
captureSnapshot: vi.fn(async () => ({ backend: 'xctest' as const, nodes: [] })) as Mock<
30+
() => Promise<{ backend: 'xctest'; nodes: [] }>
31+
>,
3032
performGesturePlan: vi.fn(async () => ({})) as Mock<() => Promise<Record<string, never>>>,
31-
performDirectionalFlingPlan: vi.fn(async () => ({})) as Mock<() => Promise<Record<string, never>>>,
32-
performMultiTouchGesturePlan: vi.fn(async () => ({})) as Mock<() => Promise<Record<string, never>>>,
33-
performTargetAuthoredDrag: vi.fn(async () => ({})) as Mock<() => Promise<Record<string, never>>>,
33+
performDirectionalFlingPlan: vi.fn(async () => ({})) as Mock<
34+
() => Promise<Record<string, never>>
35+
>,
36+
performMultiTouchGesturePlan: vi.fn(async () => ({})) as Mock<
37+
() => Promise<Record<string, never>>
38+
>,
39+
performTargetAuthoredDrag: vi.fn(async () => ({})) as Mock<
40+
() => Promise<Record<string, never>>
41+
>,
3442
gestureViewport: vi.fn(
3543
async () => options.viewport ?? { x: 0, y: 0, width: 400, height: 800 },
3644
) as Mock<() => Promise<Rect>>,
@@ -47,7 +55,8 @@ export function gestureRuntimeBindingsFixture(
4755
gestureViewport: cell('gestureViewport'),
4856
},
4957
} as unknown as RuntimeFacts<PlatformRuntimeOperations>;
50-
const inspectFacts = vi.fn(async () => facts) as unknown as InspectDeviceRuntimeFacts & Mock<() => Promise<RuntimeFacts<PlatformRuntimeOperations>>>;
58+
const inspectFacts = vi.fn(async () => facts) as unknown as InspectDeviceRuntimeFacts &
59+
Mock<() => Promise<RuntimeFacts<PlatformRuntimeOperations>>>;
5160
const bindDevice = vi.fn(
5261
async () =>
5362
({

‎packages/daemon/tsconfig.json‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
"rootDir": "./src",
1010
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
1111
},
12-
"include": [
13-
"src"
14-
],
12+
"include": ["src"],
1513
"references": [
1614
{
1715
"path": "../ad-replay"

‎scripts/__tests__/eager-closure-budgets.test.ts‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -525,9 +525,13 @@ test('rename detection survives a git mv with an edit and a hostile renameLimit'
525525
cwd: repo,
526526
});
527527
fs.appendFileSync(path.join(repo, 'packages/demo/src/moved.ts'), '\nexport const touched = 1;\n');
528-
execFileSync('git', ['mv', 'packages/demo/src/facades/top.ts', 'packages/demo/src/facades/top2.ts'], {
529-
cwd: repo,
530-
});
528+
execFileSync(
529+
'git',
530+
['mv', 'packages/demo/src/facades/top.ts', 'packages/demo/src/facades/top2.ts'],
531+
{
532+
cwd: repo,
533+
},
534+
);
531535
fs.appendFileSync(
532536
path.join(repo, 'packages/demo/src/facades/top2.ts'),
533537
'\nexport const t2 = 1;\n',
@@ -536,13 +540,17 @@ test('rename detection survives a git mv with an edit and a hostile renameLimit'
536540
execFileSync('git', ['commit', '-qm', 'two moved edits'], { cwd: repo });
537541
const withEdits = renamedSince(repo, 'HEAD~1', 'HEAD');
538542
expect(withEdits.get('packages/demo/src/moved.ts')).toBe('packages/demo/src/entry.ts');
539-
expect(withEdits.get('packages/demo/src/facades/top2.ts')).toBe('packages/demo/src/facades/top.ts');
543+
expect(withEdits.get('packages/demo/src/facades/top2.ts')).toBe(
544+
'packages/demo/src/facades/top.ts',
545+
);
540546
// A clone-side limit BELOW the two inexact renames must not disable detection: the helper
541547
// passes its own `-c diff.renameLimit=0` (unlimited).
542548
execFileSync('git', ['config', 'diff.renameLimit', '1'], { cwd: repo });
543549
const underLimit = renamedSince(repo, 'HEAD~1', 'HEAD');
544550
expect(underLimit.get('packages/demo/src/moved.ts')).toBe('packages/demo/src/entry.ts');
545-
expect(underLimit.get('packages/demo/src/facades/top2.ts')).toBe('packages/demo/src/facades/top.ts');
551+
expect(underLimit.get('packages/demo/src/facades/top2.ts')).toBe(
552+
'packages/demo/src/facades/top.ts',
553+
);
546554
// The base -> head direction the wire-compat ledger canonicalizes with (#3546 review).
547555
const baseToHead = new Map([...underLimit].map(([headPath, basePath]) => [basePath, headPath]));
548556
expect(baseToHead.get('packages/demo/src/entry.ts')).toBe('packages/demo/src/moved.ts');

‎scripts/__tests__/help-conformance-sample-producers.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ import { buildAmbiguousMatchError } from '@agent-device/daemon/testing/selector-
2424
import { refMutationAdmissionResponse } from '@agent-device/daemon/testing/interaction/index';
2525
import { buildDeviceInUseBySessionError } from '@agent-device/daemon/testing/session-recovery-hints';
2626
import { buildDeviceClaimConflictError } from '@agent-device/daemon/testing/device/device-claim-conflict';
27-
import { activateCompleteRefFrame, readRefMutationFrame } from '@agent-device/daemon/testing/ref-frame';
27+
import {
28+
activateCompleteRefFrame,
29+
readRefMutationFrame,
30+
} from '@agent-device/daemon/testing/ref-frame';
2831
import { resolveRefStalenessWarning } from '@agent-device/daemon/testing/session-snapshot';
2932
import type { SessionState } from '@agent-device/daemon/testing/session-state';
3033
import { buildAppNotInstalledError } from '@agent-device/platform-apple/app-resolution';

‎scripts/layering/daemon-platform-boundary.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,7 @@ export function findDaemonPlatformDependencies(
345345
sources: readonly ProductionSource[],
346346
): DaemonPlatformDependency[] {
347347
return sources
348-
.filter(
349-
({ path: file }) => file.startsWith(DAEMON_SOURCE_ROOT) && isProductionSourceFile(file),
350-
)
348+
.filter(({ path: file }) => file.startsWith(DAEMON_SOURCE_ROOT) && isProductionSourceFile(file))
351349
.flatMap(({ path: file, source }) => [
352350
...staticDependencies(file, source),
353351
...dynamicDependencies(file, source),

‎scripts/layering/package-boundaries.test.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,14 +247,14 @@ test('a package vi.mock route into root src is an R11 escape, and a sibling rout
247247
ALL,
248248
compiled,
249249
);
250-
const rootMock = kernelViolations(
251-
true,
252-
"vi.mock('../../../../src/utils/exec.ts', () => ({}));",
253-
);
250+
const rootMock = kernelViolations(true, "vi.mock('../../../../src/utils/exec.ts', () => ({}));");
254251
assert.equal(rootMock.length, 1);
255252
assert.match(rootMock[0]!.message, /escapes packages\/kernel/);
256253
assert.equal(kernelViolations(true, "vi.doMock('../../../../src/utils/exec.ts');").length, 1);
257-
assert.equal(kernelViolations(true, 'vi.importActual("../../../../src/utils/exec.ts")').length, 1);
254+
assert.equal(
255+
kernelViolations(true, 'vi.importActual("../../../../src/utils/exec.ts")').length,
256+
1,
257+
);
258258

259259
// Legitimate mock routes keep working: a declared sibling's exported subpath is not an
260260
// escape, an undeclared sibling is still the undeclared-sibling branch, and a mock of the

‎scripts/layering/session-state.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,7 @@ export function sessionStateDeclarationFile(
157157
sources: ReadonlyMap<string, string>,
158158
): string | undefined {
159159
for (const [file, source] of sources) {
160-
if (file.startsWith(DAEMON_SOURCE_ROOT) && SESSION_STATE_DECLARATION.test(source))
161-
return file;
160+
if (file.startsWith(DAEMON_SOURCE_ROOT) && SESSION_STATE_DECLARATION.test(source)) return file;
162161
}
163162
return undefined;
164163
}

‎scripts/layering/zone-value-dag.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ test('type-only, dynamic and same-zone imports never close a zone cycle', () =>
4646
'src/remote/diagnostics.ts',
4747
"import { logPath } from '../../packages/daemon/src/paths.ts';",
4848
],
49-
['packages/daemon/src/paths.ts', "import type { TempPath } from '../../../src/remote/temp-path.ts';"],
49+
[
50+
'packages/daemon/src/paths.ts',
51+
"import type { TempPath } from '../../../src/remote/temp-path.ts';",
52+
],
5053
['packages/daemon/src/lease.ts', "void import('../../../src/remote/temp-path.ts');"],
5154
['packages/daemon/src/capture.ts', "import { logPath } from './paths.ts';"],
5255
['src/remote/temp-path.ts', 'export type TempPath = string;'],

0 commit comments

Comments
 (0)