{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"name": "onetaskgraph-linear",
"projectType": "library",
"tags": ["lang:rust", "layer:plugin", "live:linear", "coverage:uninstrumented"],
"//": "implicitDependencies mirror this crate's Cargo dependencies; scripts/check-nx-graph.sh fails when the two disagree. llmlint: ignore-file[external_service_suite_stays_out_of_the_affected_tier] JSON has no comment to scope this to `test`, whose live tests reach a real API; affected selection is the edge they sit behind, so they run only when this crate changed. llmlint: ignore-file[expensive_tests_stay_behind_their_own_edge] JSON has no comment to scope this to `coverage`: the line floor is one report over every crate's instrumented run, so workspace:coverage runs this crate's whether or not the change reached it. `test` still selects by the graph.",
"implicitDependencies": ["onetaskgraph-live", "onetaskgraph-plugin-api"],
"targets": {
"bootstrap": {
"executor": "nx:run-commands",
"options": {
"command": "cargo fetch --locked"
},
"//": "Uncached: it reaches the network and writes to the shared cargo registry outside the workspace, so no input in the tree describes its result."
},
"check": {
"executor": "nx:noop",
"dependsOn": ["format-check", "lint", "typecheck", "test", "coverage"]
},
"format": {
"executor": "nx:run-commands",
"options": {
"command": "cargo fmt -p onetaskgraph-linear"
},
"cache": false,
"//": "Uncached: it rewrites the tree in place, so replaying a cached result would be a no-op that silently leaves the tree unformatted."
},
"format-check": {
"executor": "nx:run-commands",
"options": {
"command": "cargo fmt -p onetaskgraph-linear -- --check"
}
},
"lint": {
"executor": "nx:run-commands",
"options": {
"command": "cargo clippy --quiet -p onetaskgraph-linear --all-targets --all-features --locked -- -D warnings"
}
},
"typecheck": {
"executor": "nx:run-commands",
"options": {
"command": "cargo check --quiet -p onetaskgraph-linear --all-targets --all-features --locked"
}
},
"test": {
"executor": "nx:run-commands",
"options": {
"commands": [
"bash scripts/live-crate-test.sh onetaskgraph-linear live real_linear_applies_every_declared_capability_and_leaves_no_residue",
"bash scripts/check-live-decline.sh onetaskgraph-linear"
],
"parallel": false
},
"parallelism": false,
"outputs": [
"{workspaceRoot}/target/debug/telemetry/onetaskgraph-linear/linear-live-documents-*.json",
"{workspaceRoot}/target/debug/telemetry/onetaskgraph-linear/live/*/linear-live-documents-*.json"
],
"//": "The live journey is one of the tests the first command runs; the second drives it through skipped, declined and expected-but-absent without a credential. Serial: it re-runs the binary the first builds. `parallelism: false` runs this target alone: onetaskgraph-linear-e2e's asset journey takes the same one-at-a-time Linear seat, and with both selected in one `just check` the second to start was declined, failing the required check; scripts/check-live-seat-serialised.sh proves against real Nx that no two seat-holding targets overlap. The env inputs are the cache key's, because this target's result is not a function of the files \u2014 a replay of an uncredentialed run would otherwise stand in for a credentialed one and the live tests would not run while the target reported green. `coverage` takes none of them: scripts/rust-coverage.sh clears the credentials first, which is what keeps one run to one live session.",
"inputs": [
"versionFreeNpm",
"{workspaceRoot}/.tool-versions",
"default",
"^default",
{
"env": "ONETASKGRAPH_LINEAR_DOCUMENT_MODE"
},
{
"env": "GITHUB_ACTIONS"
},
"{workspaceRoot}/scripts/check-live-decline.sh",
{
"env": "LINEAR_API_KEY"
},
{
"env": "LINEAR_WRITE_TEAM"
},
{
"env": "ONETASKGRAPH_LIVE_REQUIRED"
},
"{workspaceRoot}/scripts/live-crate-test.sh",
{
"env": "ONETASKGRAPH_TESTS_UNDER_COVERAGE"
},
{
"runtime": "node -p process.platform"
}
]
},
"live-documents": {
"executor": "nx:run-commands",
"cache": false,
"parallelism": false,
"options": {
"command": "cargo test --locked -p onetaskgraph-linear --test live -- real_linear_applies_every_declared_capability_and_leaves_no_residue --exact --nocapture"
},
"//": "Explicit daily creation and initialization only: this target is outside the affected check fan-out and must reach the service on every invocation."
},
"coverage": {
"executor": "nx:noop",
"//": "Its suite runs every case uninstrumented, in `test`, and contributes no line coverage: the user's decision of 2026-10-30. scripts/check-coverage-enforced.sh holds the tag, this target and workspace:coverage's dependency list to one another.",
"cache": false,
"inputs": [
"default",
"^default",
{
"runtime": "node -p process.platform"
},
{
"runtime": "node scripts/nx-version-free-inputs.mjs --ecosystem cargo --keep-version"
}
]
}
}
}