@@ -235,7 +235,7 @@ require heuristic analysis and could produce false positives.
235235
236236Produces a complete ADO pipeline step (` - bash: | ` ) with a ** data-driven
237237architecture** : bash is a thin ADO-macro shim, all filter logic lives in
238- the bundled Node.js gate evaluator (` scripts/gate.js ` ) that reads a JSON
238+ the bundled Node.js gate evaluator (` scripts/ado-script/dist/ gate/index .js ` ) that reads a JSON
239239gate spec.
240240
241241#### Generated Step Structure
@@ -257,7 +257,7 @@ gate spec.
257257 export ADO_SYSTEM_ACCESS_TOKEN="$SYSTEM_ACCESSTOKEN"
258258
259259 # 4. Run the bundled Node evaluator (downloaded by the Setup job)
260- node '/tmp/ado-aw-scripts/gate.js'
260+ node '/tmp/ado-aw-scripts/ado-script/dist/ gate/index .js'
261261 name : prGate
262262 displayName : " Evaluate PR filters"
263263 env :
@@ -304,8 +304,8 @@ acquisition logic.
304304#### Bundled Gate Evaluator (` scripts/ado-script/src/gate/ ` )
305305
306306The evaluator is a TypeScript program ncc-bundled to a single
307- self-contained ` scripts/gate.js ` (~ 1.1 MB) that ships as part of the
308- ` scripts .zip` release asset. See [ ` ado-script.md ` ] ( ado-script.md ) for the
307+ self-contained ` scripts/ado-script/dist/ gate/index .js ` (~ 1.1 MB) that ships as part of the
308+ ` ado-script .zip` release asset. See [ ` ado-script.md ` ] ( ado-script.md ) for the
309309full design and codegen pipeline. It handles:
310310
3113111 . ** Bypass logic** — reads ` ADO_BUILD_REASON ` and exits early for non-matching
@@ -358,11 +358,11 @@ When Tier 2/3 filters are configured, the `TriggerFiltersExtension`
358358
3593591 . ** Node install step** — emits a ` NodeTool@0 ` step pinned to Node 20.x
360360 LTS so ` gate.js ` has a runtime
361- 2 . ** Download step** — fetches ` scripts .zip` from the ado-aw release
361+ 2 . ** Download step** — fetches ` ado-script .zip` from the ado-aw release
362362 artifacts, verifies its SHA256 checksum via ` checksums.txt ` , then
363- extracts ` gate.js ` to ` /tmp/ado-aw-scripts/gate.js `
363+ extracts ` gate.js ` to ` /tmp/ado-aw-scripts/ado-script/dist/ gate/index .js `
3643643 . ** Gate step** — calls ` compile_gate_step_external() ` to generate a step
365- that runs ` node /tmp/ado-aw-scripts/gate.js ` (no inline heredoc)
365+ that runs ` node /tmp/ado-aw-scripts/ado-script/dist/ gate/index .js ` (no inline heredoc)
3663664 . ** Validation** — runs ` validate_pr_filters() ` / ` validate_pipeline_filters() `
367367 during compilation via the ` validate() ` trait method
368368
@@ -409,18 +409,18 @@ The `expression` escape hatch is also ANDed if present.
409409# ## Scripts Distribution
410410
411411The `gate.js` bundle is built from the TypeScript workspace at
412- ` scripts/ado-script/` (see [`ado-script.md`](ado-script.md)) and copied to
413- ` scripts/gate.js` by the release workflow's build step. It ships inside
414- the `scripts .zip` release asset, alongside any future bundled helpers
412+ ` scripts/ado-script/` (see [`ado-script.md`](ado-script.md)) and emitted to
413+ ` scripts/ado-script/dist/ gate/index .js` by the release workflow's build step. It ships inside
414+ the `ado-script .zip` release asset, alongside any future bundled helpers
415415(e.g. `poll.js`, `stats.js`). The download URL is deterministic based on
416416the ado-aw version :
417- ` https://github.com/githubnext/ado-aw/releases/download/v{VERSION}/scripts .zip`
417+ ` https://github.com/githubnext/ado-aw/releases/download/v{VERSION}/ado-script .zip`
418418
419419A `checksums.txt` file is also published at the same URL base and used to
420- verify the SHA256 integrity of `scripts .zip` before extraction.
420+ verify the SHA256 integrity of `ado-script .zip` before extraction.
421421
422- The Setup-job download step pulls the zip, extracts `gate.js`, and
423- discards the rest. New per-use-site bundles follow the same pattern
422+ The Setup-job download step pulls the zip, extracts `ado-script/dist/ gate/index .js`,
423+ and discards the rest. New per-use-site bundles follow the same pattern
424424(per-bundle ncc entry + per-bundle download step).
425425
426426# # Adding New Filter Types
@@ -439,4 +439,3 @@ step-by-step guide. In summary:
439439 ` lower_pipeline_filters` )
4404406. Add validation rules if the new filter can conflict with existing ones
4414417. Write tests : lowering, validation, spec serialization, and evaluator
442-
0 commit comments