Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
In this PR, we are trying to add a new feature to simulate file touches and probes. This is to facilitate the BuildXL sandbox to correctly cache bits for us during builds that are using this GRPC server feature. In this case, we need to pass the inputs and outputs as detected. These are not "really" monitored read/writes - that could come at a later date. We are using the same mechanism as our current cache hashing for inputs, and outputs config from cache options to do the globbing for outputs.
Summary by Copilot
This pull request includes various changes across multiple files to introduce new features, improve existing functionality, and enhance code maintainability. The most important changes include updates to the ESLint configuration, new features for the
lage
CLI, and modifications to theglobby
andhasher
packages.ESLint Configuration:
.eslintrc.js
to dynamically set theproject
path usingpath.join
for better path resolution. (.eslintrc.js
)New Features for
lage
CLI:server/action.ts
. (packages/cli/src/commands/server/action.ts
) [1] [2] [3] [4]server/getOutputFiles.ts
. (packages/cli/src/commands/server/getOutputFiles.ts
)lageService.ts
to use new context initialization and handle input/output files. (packages/cli/src/commands/server/lageService.ts
) [1] [2] [3] [4] [5]globby
Package Enhancements:package.json
and added scripts for transpiling and generating types. (packages/globby/package.json
)index.mts
. (packages/globby/src/index.mts
)dts-bundle-generator
to bundle TypeScript declarations. (packages/globby/dts-bundle.config.js
)packages/globby/scripts/rename.js
)hasher
Package Updates:fast-glob
with@lage-run/globby
for file globbing inTargetHasher.ts
. (packages/hasher/src/TargetHasher.ts
)@lage-run/globby
. (packages/hasher/package.json
)Minor Changes:
change
JSON files to reflect updates and new features. (change/change-82487442-ab6c-4773-9770-15dca576410d.json
,change/change-dcbd2f5c-b20e-448d-8579-a660a87102ad.json
) [1] [2]lage.config.js
to update task configurations for@lage-run/globby
. (lage.config.js
)scope
parameter optional increateTargetGraph.ts
. (packages/cli/src/commands/run/createTargetGraph.ts
)These changes collectively enhance the functionality and maintainability of the codebase, particularly for the
lage
CLI and related packages.