Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 39 additions & 1 deletion examples/sdk/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"composite": true,
"noEmit": true,
"tsBuildInfoFile": "../../.tmp/examples-sdk.tsbuildinfo",
"paths": {
"agent-device": ["../../src/sdk/index.ts"],
"agent-device/io": ["../../src/sdk/io.ts"],
Expand All @@ -21,5 +24,40 @@
// prior build, workspace link, or publish step. Running an example for real
// still resolves `agent-device` as a self-referencing package (needs
// `pnpm build`), matching how a real consumer would import it.
"include": [".", "../../packages/command-registry/src/global.d.ts"]
//
// Composite under `tsc -b`, so every file its program loads through `paths`
// must be listed here — hence the `../../src/**/*` include with the test and
// fixture exclusions. The workspace packages those sources reach are project
// references: their exports-map `.ts` targets resolve to the `dist-types`
// declarations the graph emits instead of becoming unlisted foreign inputs.
"include": [".", "../../src/**/*", "../../packages/command-registry/src/global.d.ts"],
"exclude": ["../../src/**/*.test.ts", "../../src/**/__tests__/**", "../../src/**/*.fixtures.ts"],
"references": [
{ "path": "../../packages/ad-replay" },
{ "path": "../../packages/ad-script" },
{ "path": "../../packages/capture-kit" },
{ "path": "../../packages/command-registry" },
{ "path": "../../packages/contracts" },
{ "path": "../../packages/device-selection" },
{ "path": "../../packages/host-kit" },
{ "path": "../../packages/kernel" },
{ "path": "../../packages/maestro" },
{ "path": "../../packages/managed-allocation" },
{ "path": "../../packages/platform-android" },
{ "path": "../../packages/platform-apple" },
{ "path": "../../packages/platform-harmonyos" },
{ "path": "../../packages/platform-linux" },
{ "path": "../../packages/platform-vega" },
{ "path": "../../packages/platform-web" },
{ "path": "../../packages/provider-limrun" },
{ "path": "../../packages/provider-testmu" },
{ "path": "../../packages/provider-webdriver" },
{ "path": "../../packages/provision-kit" },
{ "path": "../../packages/proxy" },
{ "path": "../../packages/replay-port" },
{ "path": "../../packages/replay-test" },
{ "path": "../../packages/selectors" },
{ "path": "../../packages/session-journal" },
{ "path": "../../packages/xml" }
]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
"check:packaged-runner-swift": "node --experimental-strip-types scripts/check-packaged-runner-swift.ts",
"check:tmpdir-leaks": "node --experimental-strip-types scripts/check-tmpdir-leaks.ts",
"check:tmpdir-leaks:test": "node --experimental-strip-types scripts/node-test-tmpdir.ts --experimental-strip-types --test --test-concurrency=1 scripts/check-tmpdir-leaks-model.test.ts scripts/vitest-tmpdir-global-setup.test.ts scripts/node-test-tmpdir.test.ts scripts/swift-toolchain-tmpdir.test.ts",
"check:freerange": "fr",
"check:freerange": "cd scripts/freerange && fr",
"check:quick": "pnpm lint && pnpm typecheck",
"sync:mcp-metadata": "node scripts/sync-mcp-metadata.mjs",
"check:mcp-metadata": "node scripts/sync-mcp-metadata.mjs --check",
Expand All @@ -179,7 +179,7 @@
"check:unit": "pnpm test:unit && pnpm check:tmpdir-leaks && pnpm test:smoke",
"check": "pnpm check:tooling && pnpm check:fallow && pnpm check:unit",
"prepack": "npm_config_dry_run=false pnpm release:prepare",
"typecheck": "tsc -b packages/xml packages/kernel packages/contracts packages/device-selection packages/host-kit packages/capture-kit packages/managed-allocation packages/provision-kit packages/platform-apple packages/platform-android packages/platform-harmonyos packages/platform-vega packages/platform-linux packages/platform-web packages/ad-script packages/selectors packages/command-registry packages/session-journal packages/ad-replay packages/maestro packages/replay-port packages/replay-test packages/provider-webdriver packages/provider-limrun packages/proxy packages/provider-testmu && tsc -p tsconfig.json && tsc -p examples/sdk/tsconfig.json",
"typecheck": "tsc -b tsconfig.json examples/sdk/tsconfig.json",
"test-app:install": "pnpm install --dir examples/test-app",
"test-app:start": "pnpm --dir examples/test-app start",
"test-app:ios": "pnpm --dir examples/test-app ios",
Expand Down
11 changes: 9 additions & 2 deletions packages/ad-replay/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ad-script" },
{ "path": "../contracts" },
{ "path": "../kernel" },
{ "path": "../selectors" }
]
}
6 changes: 4 additions & 2 deletions packages/ad-script/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
"include": ["src"],
"references": [{ "path": "../contracts" }, { "path": "../kernel" }]
}
6 changes: 4 additions & 2 deletions packages/capture-kit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
"include": ["src"],
"references": [{ "path": "../contracts" }, { "path": "../host-kit" }, { "path": "../kernel" }]
}
6 changes: 4 additions & 2 deletions packages/command-registry/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
"include": ["src"],
"references": [{ "path": "../contracts" }, { "path": "../kernel" }, { "path": "../selectors" }]
}
6 changes: 4 additions & 2 deletions packages/contracts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
"include": ["src"],
"references": [{ "path": "../kernel" }]
}
6 changes: 4 additions & 2 deletions packages/device-selection/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
"include": ["src"],
"references": [{ "path": "../contracts" }, { "path": "../host-kit" }, { "path": "../kernel" }]
}
6 changes: 4 additions & 2 deletions packages/host-kit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
"include": ["src"],
"references": [{ "path": "../contracts" }, { "path": "../kernel" }]
}
3 changes: 2 additions & 1 deletion packages/kernel/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
}
13 changes: 11 additions & 2 deletions packages/maestro/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../capture-kit" },
{ "path": "../contracts" },
{ "path": "../host-kit" },
{ "path": "../kernel" },
{ "path": "../provision-kit" },
{ "path": "../selectors" }
]
}
11 changes: 9 additions & 2 deletions packages/managed-allocation/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../capture-kit" },
{ "path": "../contracts" },
{ "path": "../host-kit" },
{ "path": "../kernel" }
]
}
13 changes: 11 additions & 2 deletions packages/platform-android/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../capture-kit" },
{ "path": "../contracts" },
{ "path": "../host-kit" },
{ "path": "../kernel" },
{ "path": "../provision-kit" },
{ "path": "../xml" }
]
}
13 changes: 11 additions & 2 deletions packages/platform-apple/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../capture-kit" },
{ "path": "../contracts" },
{ "path": "../host-kit" },
{ "path": "../kernel" },
{ "path": "../provision-kit" },
{ "path": "../xml" }
]
}
12 changes: 10 additions & 2 deletions packages/platform-harmonyos/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../capture-kit" },
{ "path": "../contracts" },
{ "path": "../host-kit" },
{ "path": "../kernel" },
{ "path": "../provision-kit" }
]
}
11 changes: 9 additions & 2 deletions packages/platform-linux/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../capture-kit" },
{ "path": "../contracts" },
{ "path": "../host-kit" },
{ "path": "../kernel" }
]
}
11 changes: 9 additions & 2 deletions packages/platform-vega/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../contracts" },
{ "path": "../host-kit" },
{ "path": "../kernel" },
{ "path": "../provision-kit" }
]
}
12 changes: 10 additions & 2 deletions packages/platform-web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../capture-kit" },
{ "path": "../contracts" },
{ "path": "../host-kit" },
{ "path": "../kernel" },
{ "path": "../selectors" }
]
}
11 changes: 9 additions & 2 deletions packages/provider-limrun/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../capture-kit" },
{ "path": "../contracts" },
{ "path": "../kernel" },
{ "path": "../platform-android" }
]
}
8 changes: 7 additions & 1 deletion packages/provider-testmu/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo",
"rootDir": "./src",
"paths": {
"agent-device/plugins": ["./node_modules/agent-device/src/sdk/plugins.ts"],
"agent-device/plugins/webdriver": ["./node_modules/agent-device/src/sdk/plugin-webdriver.ts"]
}
},
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../contracts" },
{ "path": "../kernel" },
{ "path": "../provider-webdriver" }
]
}
12 changes: 10 additions & 2 deletions packages/provider-webdriver/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../capture-kit" },
{ "path": "../contracts" },
{ "path": "../host-kit" },
{ "path": "../kernel" },
{ "path": "../xml" }
]
}
6 changes: 4 additions & 2 deletions packages/provision-kit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
"include": ["src"],
"references": [{ "path": "../contracts" }, { "path": "../host-kit" }, { "path": "../kernel" }]
}
6 changes: 4 additions & 2 deletions packages/proxy/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"emitDeclarationOnly": true,
"declaration": true,
"declarationDir": "./dist-types",
"rootDir": "./src"
"rootDir": "./src",
"tsBuildInfoFile": "./dist-types/index.tsbuildinfo"
},
"include": ["src"]
"include": ["src"],
"references": [{ "path": "../contracts" }, { "path": "../host-kit" }, { "path": "../kernel" }]
}
Loading
Loading