@visulima/task-runner 1.0.0-alpha.15 → 1.0.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/index.d.ts +31 -1
- package/dist/index.js +1 -1
- package/dist/packem_shared/{FileAccessTracker-DSNf03JW.js → FileAccessTracker-IG-Z0Ijw.js} +4 -4
- package/dist/packem_shared/{TaskOrchestrator-epY79EWq.js → TaskOrchestrator-F_NrcUYn.js} +1 -1
- package/dist/packem_shared/TrackedTaskExecutor-BiK0Coso.js +2 -0
- package/dist/packem_shared/collectNodeModulesBinDirs-JaeFLP9l.js +1 -0
- package/dist/packem_shared/{defaultTaskRunner-DtBuDlMy.js → defaultTaskRunner-CjaCnt_W.js} +1 -1
- package/dist/packem_shared/{expandArguments-4mab7-Ds.js → expandArguments-D7qvc6Rp.js} +1 -1
- package/dist/packem_shared/{expandTokensInString-Cyx0qSFA.js → expandTokensInString-DVSFEdWu.js} +1 -1
- package/dist/packem_shared/{parseCommands-b1K2vIxj.js → parseCommands-BHsXoUCd.js} +1 -1
- package/dist/packem_shared/runConcurrentFallback-SvS4ElEX.js +3 -0
- package/dist/packem_shared/runConcurrently-ebFf3uYs.js +1 -0
- package/dist/packem_shared/runTeardown-CiJJeWVf.js +1 -0
- package/dist/packem_shared/shell-quote-BhmqDUL1.js +1 -0
- package/index.js +52 -52
- package/package.json +12 -14
- package/dist/packem_shared/TrackedTaskExecutor-D3-LNT_d.js +0 -2
- package/dist/packem_shared/runConcurrentFallback-Dpqxuyv-.js +0 -3
- package/dist/packem_shared/runConcurrently-DYbMGyGv.js +0 -1
- package/dist/packem_shared/runTeardown-DBBpBAyb.js +0 -1
- package/dist/packem_shared/shell-quote-CksLqyXK.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## @visulima/task-runner [1.0.0-alpha.16](https://github.com/visulima/visulima/compare/@visulima/task-runner@1.0.0-alpha.15...@visulima/task-runner@1.0.0-alpha.16) (2026-05-27)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **storage-client:** percent-encode user fields in defaultFingerprint ([7c78a0f](https://github.com/visulima/visulima/commit/7c78a0f9512e2a673b941d80839e9f1e86b7b5d0))
|
|
6
|
+
* **task-runner:** resolve workspace .bin binaries in spawned tasks ([69bd30c](https://github.com/visulima/visulima/commit/69bd30c95fb1e70aba1f7c5b4d3d17b8f0465c11))
|
|
7
|
+
* **vis:** enhance PATH inside ephemeral service bootstrap config ([30c6364](https://github.com/visulima/visulima/commit/30c6364cceff0d3c48fe5e7e4a996b77a1ed224c))
|
|
8
|
+
|
|
9
|
+
### Miscellaneous Chores
|
|
10
|
+
|
|
11
|
+
* **ci-stability:** green CI across vis, native, lint, tests, attw ([#651](https://github.com/visulima/visulima/issues/651)) ([d4eb684](https://github.com/visulima/visulima/commit/d4eb684b5f75c818c9251048c605a0ed54a268e3))
|
|
12
|
+
* **repo:** apply eslint --fix and prettier --fix across packages ([#650](https://github.com/visulima/visulima/issues/650)) ([2e26a84](https://github.com/visulima/visulima/commit/2e26a84774f218f21345e9a8ecd68236b6542743)), closes [#620](https://github.com/visulima/visulima/issues/620)
|
|
13
|
+
* **repo:** sort package.json keys across all packages ([e1fd9ab](https://github.com/visulima/visulima/commit/e1fd9ab467ef96a98c777da1572ff6a50fcf7e71))
|
|
14
|
+
* sorted package.json ([b47c545](https://github.com/visulima/visulima/commit/b47c545591600fdab17d5cd3a3fbc68b61e199da))
|
|
15
|
+
|
|
16
|
+
### Continuous Integration
|
|
17
|
+
|
|
18
|
+
* pin macos to 15, fix task-runner indent + backbuffer flake ([61cbf4f](https://github.com/visulima/visulima/commit/61cbf4fb09be40c567a4e0d2d4349ad24ea91afb))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Dependencies
|
|
22
|
+
|
|
23
|
+
* **@visulima/path:** upgraded to 3.0.0-alpha.11
|
|
24
|
+
|
|
1
25
|
## @visulima/task-runner [1.0.0-alpha.15](https://github.com/visulima/visulima/compare/@visulima/task-runner@1.0.0-alpha.14...@visulima/task-runner@1.0.0-alpha.15) (2026-05-19)
|
|
2
26
|
|
|
3
27
|
### Features
|
package/dist/index.d.ts
CHANGED
|
@@ -3043,6 +3043,36 @@ declare const parseInputUri: (input: string) => InputDefinition | undefined;
|
|
|
3043
3043
|
*/
|
|
3044
3044
|
declare const looksLikeInputUri: (input: string) => boolean;
|
|
3045
3045
|
/**
|
|
3046
|
+
* Walks from `cwd` (resolved against `process.cwd()` when relative)
|
|
3047
|
+
* up to the filesystem root, returning every `<dir>/node_modules/.bin`
|
|
3048
|
+
* path encountered. Ordered nearest-first so the cwd-local `.bin`
|
|
3049
|
+
* shadows ancestor `.bin` directories, matching npm/pnpm semantics.
|
|
3050
|
+
*
|
|
3051
|
+
* The returned paths are not stat-checked — missing directories cost
|
|
3052
|
+
* nothing on the PATH and avoiding the syscalls keeps task startup
|
|
3053
|
+
* cheap (this runs once per spawned task).
|
|
3054
|
+
*/
|
|
3055
|
+
declare const collectNodeModulesBinDirs: (cwd: string) => string[];
|
|
3056
|
+
/**
|
|
3057
|
+
* Returns the enhanced PATH string for a child process spawned in
|
|
3058
|
+
* `cwd`. The caller's PATH (from `callerEnv` or, when unset, the
|
|
3059
|
+
* current `process.env`) is preserved as the suffix so system binaries
|
|
3060
|
+
* still resolve; the workspace's `node_modules/.bin` chain is prepended.
|
|
3061
|
+
*
|
|
3062
|
+
* Use this when building the `env` you hand to `child_process.spawn`
|
|
3063
|
+
* / `exec` / `tinyexec` for commands that come from `package.json`
|
|
3064
|
+
* scripts or any other user-authored shell string.
|
|
3065
|
+
*/
|
|
3066
|
+
declare const buildEnhancedPath: (cwd: string, callerEnv?: NodeJS.ProcessEnv | Record<string, string | undefined>) => string;
|
|
3067
|
+
/**
|
|
3068
|
+
* Convenience helper that returns a shallow-cloned `env` with the
|
|
3069
|
+
* enhanced PATH applied. Leaves the original object untouched so it
|
|
3070
|
+
* remains safe to share across concurrent spawns. The Windows `Path`
|
|
3071
|
+
* alias is also rewritten when present to avoid mixed-case clashes
|
|
3072
|
+
* where two PATH-shaped keys would otherwise disagree.
|
|
3073
|
+
*/
|
|
3074
|
+
declare const withEnhancedPath: <T extends NodeJS.ProcessEnv | Record<string, string | undefined>>(env: T, cwd: string) => T;
|
|
3075
|
+
/**
|
|
3046
3076
|
* Enforces project dependency constraints on a project graph.
|
|
3047
3077
|
* @param projectGraph The workspace project graph to validate.
|
|
3048
3078
|
* @param constraints The constraint rules to enforce.
|
|
@@ -3459,4 +3489,4 @@ declare const isLinkedWorktree: (workspaceRoot: string) => boolean;
|
|
|
3459
3489
|
* recreating a fixture at the same path would otherwise leak stale results.
|
|
3460
3490
|
*/
|
|
3461
3491
|
declare const resetWorktreeCache: () => void;
|
|
3462
|
-
export { type ActionResult, type AffectedOptions, type AffectedResult, type AffectedScope, type BlobSource, Cache, type CacheMissReason, type CacheMode, type CacheOptions, type CacheRestoreOptions, type CachedResult, type CasDigest, type ChromeTraceEvent, CompositeLifeCycle, type ConcurrencyGroups, type ConcurrentCloseEvent, type ConcurrentCommandConfig, type ConcurrentCommandInput, type ConcurrentRunResult, type ConcurrentRunnerOptions, ConsoleLifeCycle, type ConstraintViolation, type ConstraintsConfig, DEFAULT_CACHE_DIRECTORY_NAME, type DependencyKindRules, type DependencyType, type DetectedFramework, EmptyLifeCycle, type EnvMatcher, type EnvironmentInput, type ExternalDependencyInput, type FileAccess, FileAccessTracker, type FileSetBase, type FileSetInput, type FileSetPattern, type FileSnapshot, type FingerprintContributor, type FingerprintHook, FingerprintManager, type GraphFormat, type GraphJson, type GraphVisualizerOptions, HttpRemoteCache, INPUT_URI_SCHEMES, InProcessTaskHasher, IncrementalFileHasher, type IncrementalHasherOptions, type InputDefinition, type InputHandlerOptions, type InputUriScheme, InvalidInputUriError, type LifeCycleInterface, LockfileHasher, type LogMode, LogReporter, type NamedInputs, type NodePlatform, type OutputSpec, type PackageLockfileHash, type ParseCommandsOptions, type PartitionOptions, type ProcessEvent, type ProjectConfiguration, type ProjectGraph, type ProjectGraphDependency, type ProjectGraphProjectNode, ReapiRemoteCache, type ReapiRemoteCacheOptions, type RemoteCacheAttestation, type RemoteCacheBackend, type RemoteCacheCompression, type RemoteCacheOptions, type RemoteCacheSigning, type ResolvedDependency, type RestartOptions, type RunSummary, type RunSummaryPathOptions, type RuntimeInput, type TagRelationships, type TargetConfiguration, type TargetDependencyConfig, type Task, type TaskExecutionOptions, type TaskExecutor, type TaskFingerprint, type TaskGraph, type TaskHashDetails, type TaskHasher, type TaskHasherOptions, TaskOrchestrator, type TaskOrchestratorOptions, type TaskPriority, type TaskResult, type TaskResults, type TaskRunnerContext, type TaskRunnerOptions, TaskScheduler, type TaskStatus, type TaskSummary, type TaskTarget, type TasksRunner, type TeardownOptions, TerminalBuffer, type TokenContext, type TrackedExecutionResult, TrackedTaskExecutor, type TrackingResult, type TypeBoundaries, V2_AC, V2_CAS, V2_INDEX, V2_ROOT, V2_TMP, type WhenCondition, type WhenContext, type WorkspaceConfiguration, acEntryPath, actionDigestForTaskHash, buildForwardDependencyMap, buildReverseDependencyMap, casBlobPath, collectFiles, computeTaskHash, containsBlob, containsByTaskHash, createFailureResult, createInputHandler, createLogReporter, createRemoteCacheBackend, createTaskGraph, defaultTaskRunner, detectFrameworks, detectScriptShell, digestBuffer, digestFile, enforceProjectConstraints, evaluateWhen, expandAffected, expandArguments, expandShortcut, expandTokens, expandTokensInString, expandWildcard, explainWhen, extractPackageName, fetchBlobToFile, filterAffectedTasks, findCycle, findCycles, formatCacheSize, formatTimingTable, generatePreloadScript, generateRunSummary, getAffectedProjects, getChangedFiles, getCurrentBranch, getDependentTasks, getFrameworkEnvVariables, getLastRunSummaryPath, getLeafTasks, getMainWorktreeRoot, getTaskId, getTransitiveDependencies, hashFile, hashStrings, inferFrameworkEnvPatterns, isLinkedWorktree, isNativeAvailable, loadNativeBindings, logTimings, looksLikeInputUri, makeAcyclic, parseCacheSize, parseCommands, parseInputUri, parseNpmLockfile, parsePartition, parsePnpmLockfile, parseTaskId, parseYarnLockfile, projectGraphToDot, putBlobFromBytes, putBlobFromFile, readLastRunSummary, readPackageDeps, resetBranchCache, resetWorktreeCache, resolveCacheMode, resolveOutputs, resolveTaskCwd, resolveTurboEnvCompat, retrieveByTaskHash, reverseTaskGraph, runConcurrentFallback, runConcurrently, runTeardown, sortObjectKeys, storeByTaskHash, stripQuotes, taskHashIndexPath, toChromeTrace, toGraphAscii, toGraphHtml, toGraphJson, toGraphvizDot, touchBlob, uniqueId, verifyBlob, walkTaskGraph, withRestart, writeChromeTrace, writeLastRunSummary, writeRunSummary };
|
|
3492
|
+
export { type ActionResult, type AffectedOptions, type AffectedResult, type AffectedScope, type BlobSource, Cache, type CacheMissReason, type CacheMode, type CacheOptions, type CacheRestoreOptions, type CachedResult, type CasDigest, type ChromeTraceEvent, CompositeLifeCycle, type ConcurrencyGroups, type ConcurrentCloseEvent, type ConcurrentCommandConfig, type ConcurrentCommandInput, type ConcurrentRunResult, type ConcurrentRunnerOptions, ConsoleLifeCycle, type ConstraintViolation, type ConstraintsConfig, DEFAULT_CACHE_DIRECTORY_NAME, type DependencyKindRules, type DependencyType, type DetectedFramework, EmptyLifeCycle, type EnvMatcher, type EnvironmentInput, type ExternalDependencyInput, type FileAccess, FileAccessTracker, type FileSetBase, type FileSetInput, type FileSetPattern, type FileSnapshot, type FingerprintContributor, type FingerprintHook, FingerprintManager, type GraphFormat, type GraphJson, type GraphVisualizerOptions, HttpRemoteCache, INPUT_URI_SCHEMES, InProcessTaskHasher, IncrementalFileHasher, type IncrementalHasherOptions, type InputDefinition, type InputHandlerOptions, type InputUriScheme, InvalidInputUriError, type LifeCycleInterface, LockfileHasher, type LogMode, LogReporter, type NamedInputs, type NodePlatform, type OutputSpec, type PackageLockfileHash, type ParseCommandsOptions, type PartitionOptions, type ProcessEvent, type ProjectConfiguration, type ProjectGraph, type ProjectGraphDependency, type ProjectGraphProjectNode, ReapiRemoteCache, type ReapiRemoteCacheOptions, type RemoteCacheAttestation, type RemoteCacheBackend, type RemoteCacheCompression, type RemoteCacheOptions, type RemoteCacheSigning, type ResolvedDependency, type RestartOptions, type RunSummary, type RunSummaryPathOptions, type RuntimeInput, type TagRelationships, type TargetConfiguration, type TargetDependencyConfig, type Task, type TaskExecutionOptions, type TaskExecutor, type TaskFingerprint, type TaskGraph, type TaskHashDetails, type TaskHasher, type TaskHasherOptions, TaskOrchestrator, type TaskOrchestratorOptions, type TaskPriority, type TaskResult, type TaskResults, type TaskRunnerContext, type TaskRunnerOptions, TaskScheduler, type TaskStatus, type TaskSummary, type TaskTarget, type TasksRunner, type TeardownOptions, TerminalBuffer, type TokenContext, type TrackedExecutionResult, TrackedTaskExecutor, type TrackingResult, type TypeBoundaries, V2_AC, V2_CAS, V2_INDEX, V2_ROOT, V2_TMP, type WhenCondition, type WhenContext, type WorkspaceConfiguration, acEntryPath, actionDigestForTaskHash, buildEnhancedPath, buildForwardDependencyMap, buildReverseDependencyMap, casBlobPath, collectFiles, collectNodeModulesBinDirs, computeTaskHash, containsBlob, containsByTaskHash, createFailureResult, createInputHandler, createLogReporter, createRemoteCacheBackend, createTaskGraph, defaultTaskRunner, detectFrameworks, detectScriptShell, digestBuffer, digestFile, enforceProjectConstraints, evaluateWhen, expandAffected, expandArguments, expandShortcut, expandTokens, expandTokensInString, expandWildcard, explainWhen, extractPackageName, fetchBlobToFile, filterAffectedTasks, findCycle, findCycles, formatCacheSize, formatTimingTable, generatePreloadScript, generateRunSummary, getAffectedProjects, getChangedFiles, getCurrentBranch, getDependentTasks, getFrameworkEnvVariables, getLastRunSummaryPath, getLeafTasks, getMainWorktreeRoot, getTaskId, getTransitiveDependencies, hashFile, hashStrings, inferFrameworkEnvPatterns, isLinkedWorktree, isNativeAvailable, loadNativeBindings, logTimings, looksLikeInputUri, makeAcyclic, parseCacheSize, parseCommands, parseInputUri, parseNpmLockfile, parsePartition, parsePnpmLockfile, parseTaskId, parseYarnLockfile, projectGraphToDot, putBlobFromBytes, putBlobFromFile, readLastRunSummary, readPackageDeps, resetBranchCache, resetWorktreeCache, resolveCacheMode, resolveOutputs, resolveTaskCwd, resolveTurboEnvCompat, retrieveByTaskHash, reverseTaskGraph, runConcurrentFallback, runConcurrently, runTeardown, sortObjectKeys, storeByTaskHash, stripQuotes, taskHashIndexPath, toChromeTrace, toGraphAscii, toGraphHtml, toGraphJson, toGraphvizDot, touchBlob, uniqueId, verifyBlob, walkTaskGraph, withEnhancedPath, withRestart, writeChromeTrace, writeLastRunSummary, writeRunSummary };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{buildForwardDependencyMap as o,buildReverseDependencyMap as t,expandAffected as a,filterAffectedTasks as s,getAffectedProjects as p,getChangedFiles as n}from"./packem_shared/buildForwardDependencyMap-w1FVPFdv.js";import{createRemoteCacheBackend as i,resolveCacheMode as
|
|
1
|
+
import{buildForwardDependencyMap as o,buildReverseDependencyMap as t,expandAffected as a,filterAffectedTasks as s,getAffectedProjects as p,getChangedFiles as n}from"./packem_shared/buildForwardDependencyMap-w1FVPFdv.js";import{createRemoteCacheBackend as i,resolveCacheMode as c,resolveTurboEnvCompat as f}from"./packem_shared/resolveCacheMode-DEDFC-kM.js";import{actionDigestForTaskHash as x,containsByTaskHash as h,retrieveByTaskHash as d,storeByTaskHash as u}from"./packem_shared/actionDigestForTaskHash-BOL4fZ9v.js";import{HttpRemoteCache as T}from"./packem_shared/HttpRemoteCache-D3Z6b_FO.js";import{ReapiRemoteCache as g}from"./packem_shared/ReapiRemoteCache-B3uQuVqP.js";import{Cache as R,DEFAULT_CACHE_DIRECTORY_NAME as v,formatCacheSize as F,parseCacheSize as B}from"./packem_shared/Cache-C540ZPYk.js";import{digestBuffer as E,digestFile as P}from"./packem_shared/digestBuffer-g11aCaDx.js";import{V2_AC as I,V2_CAS as L,V2_INDEX as H,V2_ROOT as A,V2_TMP as w,acEntryPath as D,casBlobPath as _,taskHashIndexPath as M}from"./packem_shared/V2_ROOT-injxWBrl.js";import{containsBlob as N,fetchBlobToFile as O,putBlobFromBytes as U,putBlobFromFile as V,touchBlob as W,verifyBlob as j}from"./packem_shared/containsBlob-DBWgvkM_.js";import{toChromeTrace as Y,writeChromeTrace as q}from"./packem_shared/toChromeTrace-DxN5NQIU.js";import{parseCommands as K}from"./packem_shared/parseCommands-BHsXoUCd.js";import{runConcurrently as X}from"./packem_shared/runConcurrently-ebFf3uYs.js";import{runConcurrentFallback as $}from"./packem_shared/runConcurrentFallback-SvS4ElEX.js";import{defaultTaskRunner as re}from"./packem_shared/defaultTaskRunner-CjaCnt_W.js";import{detectScriptShell as te}from"./packem_shared/detectScriptShell-CaTDk5cW.js";import{FileAccessTracker as se,generatePreloadScript as pe}from"./packem_shared/FileAccessTracker-IG-Z0Ijw.js";import{FingerprintManager as me}from"./packem_shared/FingerprintManager-CYW2EwLc.js";import{detectFrameworks as ce,getFrameworkEnvVariables as fe,inferFrameworkEnvPatterns as le}from"./packem_shared/detectFrameworks-WVZJOPgN.js";import{projectGraphToDot as he,toGraphAscii as de,toGraphHtml as ue,toGraphJson as ke,toGraphvizDot as Te}from"./packem_shared/projectGraphToDot-FN6oHDGH.js";import{IncrementalFileHasher as ge}from"./packem_shared/IncrementalFileHasher-CdLXVB5F.js";import{CompositeLifeCycle as Re,ConsoleLifeCycle as ve,EmptyLifeCycle as Fe}from"./packem_shared/CompositeLifeCycle-D0zWvAXJ.js";import{LockfileHasher as be,extractPackageName as Ee,parseNpmLockfile as Pe,parsePnpmLockfile as Se,parseYarnLockfile as Ie}from"./packem_shared/extractPackageName-BeL6Gc3a.js";import{LogReporter as He,createLogReporter as Ae}from"./packem_shared/LogReporter-BUPWiXAq.js";import{isNativeAvailable as De,loadNativeBindings as _e}from"./packem_shared/isNativeAvailable-BOavFPX1.js";import{resolveOutputs as Ge}from"./packem_shared/resolveOutputs-BBjdaraf.js";import{INPUT_URI_SCHEMES as Oe,InvalidInputUriError as Ue,looksLikeInputUri as Ve,parseInputUri as We}from"./packem_shared/INPUT_URI_SCHEMES-Csrd0tlg.js";import{buildEnhancedPath as ze,collectNodeModulesBinDirs as Ye,withEnhancedPath as qe}from"./packem_shared/collectNodeModulesBinDirs-JaeFLP9l.js";import{enforceProjectConstraints as Ke}from"./packem_shared/enforceProjectConstraints-dNc1SwRi.js";import{generateRunSummary as Xe,getLastRunSummaryPath as Ze,readLastRunSummary as $e,writeLastRunSummary as er,writeRunSummary as rr}from"./packem_shared/generateRunSummary-beN13GH4.js";import{createTaskGraph as tr,getTaskId as ar,parseTaskId as sr}from"./packem_shared/createTaskGraph-D6nPDd4s.js";import{findCycle as nr,findCycles as mr,getDependentTasks as ir,getLeafTasks as cr,getTransitiveDependencies as fr,makeAcyclic as lr,reverseTaskGraph as xr,walkTaskGraph as hr}from"./packem_shared/findCycle-BY8-jmzB.js";import{InProcessTaskHasher as ur,computeTaskHash as kr}from"./packem_shared/computeTaskHash-Xxd8v-X3.js";import{TaskOrchestrator as Cr}from"./packem_shared/TaskOrchestrator-F_NrcUYn.js";import{TaskScheduler as yr,parsePartition as Rr}from"./packem_shared/parsePartition-uzPNgtPp.js";import{TerminalBuffer as Fr}from"./packem_shared/TerminalBuffer-BtZy7TpT.js";import{TrackedTaskExecutor as br}from"./packem_shared/TrackedTaskExecutor-BiK0Coso.js";import{d as Pr,j as Sr,T as Ir,b as Lr,E as Hr,v as Ar,h as wr,O as Dr}from"./packem_shared/utils-BH2W5Wml.js";import{evaluateWhen as Mr,explainWhen as Gr,getCurrentBranch as Nr,resetBranchCache as Or}from"./packem_shared/getCurrentBranch-D-qoZByx.js";import{getMainWorktreeRoot as Vr,isLinkedWorktree as Wr,resetWorktreeCache as jr}from"./packem_shared/getMainWorktreeRoot-DRN_i8jA.js";import{createInputHandler as Yr}from"./packem_shared/createInputHandler-CkDCpPYy.js";import{expandArguments as Jr}from"./packem_shared/expandArguments-D7qvc6Rp.js";import{expandShortcut as Qr}from"./packem_shared/expandShortcut-BErNHNXZ.js";import{expandTokens as Zr,expandTokensInString as $r}from"./packem_shared/expandTokensInString-DVSFEdWu.js";import{expandWildcard as ro}from"./packem_shared/expandWildcard-DE0dOOZF.js";import{formatTimingTable as to,logTimings as ao}from"./packem_shared/formatTimingTable-CP3rsDwf.js";import{runTeardown as po}from"./packem_shared/runTeardown-CiJJeWVf.js";import{stripQuotes as mo}from"./packem_shared/stripQuotes-jkZb0CL9.js";import{withRestart as co}from"./packem_shared/withRestart-DKtEGsQA.js";export{R as Cache,Re as CompositeLifeCycle,ve as ConsoleLifeCycle,v as DEFAULT_CACHE_DIRECTORY_NAME,Fe as EmptyLifeCycle,se as FileAccessTracker,me as FingerprintManager,T as HttpRemoteCache,Oe as INPUT_URI_SCHEMES,ur as InProcessTaskHasher,ge as IncrementalFileHasher,Ue as InvalidInputUriError,be as LockfileHasher,He as LogReporter,g as ReapiRemoteCache,Cr as TaskOrchestrator,yr as TaskScheduler,Fr as TerminalBuffer,br as TrackedTaskExecutor,I as V2_AC,L as V2_CAS,H as V2_INDEX,A as V2_ROOT,w as V2_TMP,D as acEntryPath,x as actionDigestForTaskHash,ze as buildEnhancedPath,o as buildForwardDependencyMap,t as buildReverseDependencyMap,_ as casBlobPath,Pr as collectFiles,Ye as collectNodeModulesBinDirs,kr as computeTaskHash,N as containsBlob,h as containsByTaskHash,Sr as createFailureResult,Yr as createInputHandler,Ae as createLogReporter,i as createRemoteCacheBackend,tr as createTaskGraph,re as defaultTaskRunner,ce as detectFrameworks,te as detectScriptShell,E as digestBuffer,P as digestFile,Ke as enforceProjectConstraints,Mr as evaluateWhen,a as expandAffected,Jr as expandArguments,Qr as expandShortcut,Zr as expandTokens,$r as expandTokensInString,ro as expandWildcard,Gr as explainWhen,Ee as extractPackageName,O as fetchBlobToFile,s as filterAffectedTasks,nr as findCycle,mr as findCycles,F as formatCacheSize,to as formatTimingTable,pe as generatePreloadScript,Xe as generateRunSummary,p as getAffectedProjects,n as getChangedFiles,Nr as getCurrentBranch,ir as getDependentTasks,fe as getFrameworkEnvVariables,Ze as getLastRunSummaryPath,cr as getLeafTasks,Vr as getMainWorktreeRoot,ar as getTaskId,fr as getTransitiveDependencies,Ir as hashFile,Lr as hashStrings,le as inferFrameworkEnvPatterns,Wr as isLinkedWorktree,De as isNativeAvailable,_e as loadNativeBindings,ao as logTimings,Ve as looksLikeInputUri,lr as makeAcyclic,B as parseCacheSize,K as parseCommands,We as parseInputUri,Pe as parseNpmLockfile,Rr as parsePartition,Se as parsePnpmLockfile,sr as parseTaskId,Ie as parseYarnLockfile,he as projectGraphToDot,U as putBlobFromBytes,V as putBlobFromFile,$e as readLastRunSummary,Hr as readPackageDeps,Or as resetBranchCache,jr as resetWorktreeCache,c as resolveCacheMode,Ge as resolveOutputs,Ar as resolveTaskCwd,f as resolveTurboEnvCompat,d as retrieveByTaskHash,xr as reverseTaskGraph,$ as runConcurrentFallback,X as runConcurrently,po as runTeardown,wr as sortObjectKeys,u as storeByTaskHash,mo as stripQuotes,M as taskHashIndexPath,Y as toChromeTrace,de as toGraphAscii,ue as toGraphHtml,ke as toGraphJson,Te as toGraphvizDot,W as touchBlob,Dr as uniqueId,j as verifyBlob,hr as walkTaskGraph,qe as withEnhancedPath,co as withRestart,q as writeChromeTrace,er as writeLastRunSummary,rr as writeRunSummary};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
1
|
+
var v=Object.defineProperty;var d=(a,t)=>v(a,"name",{value:t,configurable:!0});import{createRequire as F}from"node:module";import{resolve as m,join as k}from"@visulima/path";import{withEnhancedPath as S}from"./collectNodeModulesBinDirs-JaeFLP9l.js";import{O as P}from"./utils-BH2W5Wml.js";import __cjs_mod__ from "node:module"; // -- packem CommonJS require shim --
|
|
2
2
|
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
3
|
-
const F
|
|
4
|
-
`)){const i=this.#i(s,e);if(!i)continue;const n=`${i.type}:${i.path}`;r.has(n)||(r.add(n),c.push(i))}return c}#i(t,e){const c=t.includes("ENOENT");for(const{kind:s,pattern:i}of
|
|
3
|
+
const T=F(import.meta.url),p=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,g=d(a=>{if(typeof p<"u"&&p.versions&&p.versions.node){const[t,e]=p.versions.node.split(".").map(Number);if(t>22||t===22&&e>=3||t===20&&e>=16)return p.getBuiltinModule(a)}return T(a)},"__cjs_getBuiltinModule"),{exec:y,execFileSync:b}=g("node:child_process"),{mkdir:O,readFile:W,rm:j}=g("node:fs/promises"),{platform:x}=g("node:os");var A=Object.defineProperty,l=d((a,t)=>A(a,"name",{value:t,configurable:!0}),"d");let h;const R=l(()=>{if(h===void 0)try{b("strace",["-V"],{stdio:"ignore"}),h=!0}catch{h=!1}return h},"isStraceAvailable"),D=[{kind:"open",pattern:/openat\(AT_FDCWD,\s*"([^"]+)"/},{kind:"open",pattern:/^(?:\d+\s+)?open\("([^"]+)"/},{kind:"creat",pattern:/(?:^|\s)creat\("([^"]+)"/},{kind:"stat",pattern:/(?:stat|lstat|newfstatat)\((?:AT_FDCWD,\s*)?"([^"]+)"/},{kind:"stat",pattern:/access\("([^"]+)"/},{kind:"getdents",pattern:/getdents(?:64)?\(\d+/}],N=l(a=>/O_WRONLY|O_RDWR|O_CREAT|O_TRUNC|O_APPEND/.test(a)?"write":"read","parseOpenAccessType");class M{static{d(this,"FileAccessTracker")}static{l(this,"FileAccessTracker")}#t;#s;#e=new Set;constructor(t,e){this.#t=m(t),this.#s=e??[/\/proc\//,/\/sys\//,/\/dev\//,/\/tmp\//,/\/etc\//,/\.so(\.\d+)*$/,/node_modules\/.package-lock\.json$/]}isSupported(){return x()==="linux"&&R()}async track(t,e={}){return this.isSupported()?this.#a(t,e):this.#c(t,e)}async#a(t,e){const c=k(this.#t,"node_modules",".cache","task-runner");await O(c,{recursive:!0});const r=k(c,`strace-${P()}.log`),s=`strace -f -qq -e trace=open,openat,creat,stat,lstat,newfstatat,access,getdents,getdents64,unlink,unlinkat,rename,renameat,renameat2 -o ${r} -- ${t}`;return new Promise(i=>{const n=y(s,{cwd:e.cwd??this.#t,env:S({...process.env,...e.env},e.cwd??this.#t),maxBuffer:52428800},async(f,o,u)=>{this.#e.delete(n);let w=[];try{const _=await W(r,"utf8");w=this.#n(_,e.cwd??this.#t)}catch{}await j(r,{force:!0}).catch(()=>{}),i({accesses:w,code:n.exitCode??1,output:o+u})});this.#e.add(n)})}#n(t,e){const c=[],r=new Set;for(const s of t.split(`
|
|
4
|
+
`)){const i=this.#i(s,e);if(!i)continue;const n=`${i.type}:${i.path}`;r.has(n)||(r.add(n),c.push(i))}return c}#i(t,e){const c=t.includes("ENOENT");for(const{kind:s,pattern:i}of D){const n=i.exec(t);if(!n)continue;if(s==="getdents")return;const f=n[1];if(!f)continue;let o=f;if(o.startsWith("/")||(o=m(e,o)),this.#r(o)||!o.startsWith(this.#t))return;if(c)return{path:o,type:"missing"};const u=s==="open"?N(t):s==="creat"?"write":"stat";return{path:o,type:u}}const r=/(?:^|\s)(?:unlink|unlinkat|rename|renameat|renameat2)\((?:AT_FDCWD,\s*)?"([^"]+)"/.exec(t);if(r?.[1]){let s=r[1];return s.startsWith("/")||(s=m(e,s)),this.#r(s)||!s.startsWith(this.#t)?void 0:{path:s,type:"write"}}}#r(t){return this.#s.some(e=>e.test(t))}killAll(){for(const t of this.#e)try{t.kill("SIGTERM")}catch{}this.#e.clear()}async#c(t,e){return new Promise(c=>{const r=y(t,{cwd:e.cwd??this.#t,env:S({...process.env,...e.env},e.cwd??this.#t),maxBuffer:52428800},(s,i,n)=>{this.#e.delete(r),c({accesses:[],code:r.exitCode??1,output:i+n})});this.#e.add(r)})}}const J=l(a=>String.raw`
|
|
5
5
|
import { createWriteStream } from "node:fs";
|
|
6
6
|
|
|
7
7
|
const fs = require("node:fs");
|
|
@@ -44,4 +44,4 @@ patch(fsp, "unlink", "write");
|
|
|
44
44
|
patch(fsp, "rename", "write");
|
|
45
45
|
|
|
46
46
|
process.on("beforeExit", () => { logStream.end(); });
|
|
47
|
-
`,"generatePreloadScript");export{
|
|
47
|
+
`,"generatePreloadScript");export{M as FileAccessTracker,J as generatePreloadScript};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var M=Object.defineProperty;var k=(r,t)=>M(r,"name",{value:t,configurable:!0});import{j as w,v as O,f as j}from"./utils-BH2W5Wml.js";import{resolve as F,join as E}from"@visulima/path";import{retrieveByTaskHash as H,storeByTaskHash as W}from"./actionDigestForTaskHash-BOL4fZ9v.js";import{FingerprintManager as x}from"./FingerprintManager-CYW2EwLc.js";import{generateRunSummary as I,writeLastRunSummary as P,writeRunSummary as $}from"./generateRunSummary-beN13GH4.js";import{computeTaskHash as A}from"./computeTaskHash-Xxd8v-X3.js";import{TrackedTaskExecutor as L}from"./TrackedTaskExecutor-
|
|
1
|
+
var M=Object.defineProperty;var k=(r,t)=>M(r,"name",{value:t,configurable:!0});import{j as w,v as O,f as j}from"./utils-BH2W5Wml.js";import{resolve as F,join as E}from"@visulima/path";import{retrieveByTaskHash as H,storeByTaskHash as W}from"./actionDigestForTaskHash-BOL4fZ9v.js";import{FingerprintManager as x}from"./FingerprintManager-CYW2EwLc.js";import{generateRunSummary as I,writeLastRunSummary as P,writeRunSummary as $}from"./generateRunSummary-beN13GH4.js";import{computeTaskHash as A}from"./computeTaskHash-Xxd8v-X3.js";import{TrackedTaskExecutor as L}from"./TrackedTaskExecutor-BiK0Coso.js";import{getCurrentBranch as N,evaluateWhen as B,explainWhen as G}from"./getCurrentBranch-D-qoZByx.js";var z=Object.defineProperty,p=k((r,t)=>z(r,"name",{value:t,configurable:!0}),"l");const U=p(r=>{const t=j();t.update(r.commandHash);for(const s of Object.keys(r.fileHashes).toSorted())t.update(s),t.update(r.fileHashes[s]);for(const s of r.missingFiles)t.update(`missing:${s}`);for(const s of Object.keys(r.directoryListings).toSorted())t.update(`dir:${s}`),t.update(JSON.stringify(r.directoryListings[s]));for(const s of Object.keys(r.envHashes).toSorted())t.update(s),t.update(r.envHashes[s]);return t.digest()},"hashFingerprint"),b=p((r,t)=>{if(!r||r.length===0||!t)return!1;for(const s of r)try{if(new RegExp(s).test(t))return!0}catch{}return!1},"detectWarnings"),D=p(r=>r!==void 0&&r.length>0&&r.every(t=>typeof t!="string"&&t.auto),"isAutoOnlyOutputs"),S="Outputs are `{ auto: true }` only, but no file writes were captured (write tracking unavailable for this task) — not caching, so a later hit can't restore a missing build artifact.",y=p(()=>{let r;return{promise:new Promise(t=>{r=t}),resolve:r}},"createDeferred");class tt{static{k(this,"N")}static{p(this,"TaskOrchestrator")}#r;#e;#n;#t;#m;#a;#g;#d;#w;#s;#h;#k;#y;#l;#C;#c;#R;#v;#M;#T;#u;#i=new Map;#j;#O;#b;#o=new Map;#p=y();#f=!1;constructor(t){this.#r=t.taskHasher,this.#e=t.cache,this.#n=t.scheduler,this.#t=t.lifeCycle,this.#m=t.taskExecutor,this.#a=t.workspaceRoot,this.#g=t.skipCache??!1,this.#d=t.captureOutput??!0,this.#w=t.autoFingerprint??!1,this.#k=t.fingerprintEnvPatterns??[],this.#y=t.untrackedEnvVars??[],this.#l=t.cacheDiagnostics??!1,this.#C=t.resolveCommand??void 0,this.#c=t.remoteCache??void 0,this.#R=t.onRemoteUploadError??void 0,this.#v=t.dryRun??!1,this.#M=t.summarize??!1,this.#T=t.dataDirectory,this.#u=t.taskGraph??void 0,this.#j=Date.now(),this.#O=t.alwaysTasks??[],this.#b=t.whenContext??{branch:N(t.workspaceRoot)};const s=this.#u?Object.values(this.#u.tasks).some(e=>e.hashMode==="trace"):!1;this.#w||s?(this.#s=new x(t.workspaceRoot),this.#h=new L(t.workspaceRoot)):(this.#s=void 0,this.#h=void 0)}async run(){this.#t.startCommand?.();const t=p(()=>{this.#f=!0,this.#h?.killAll()},"signalHandler");process.on("SIGINT",t),process.on("SIGTERM",t);try{await this.#x(),this.#O.length>0&&!this.#f&&await this.#W()}finally{process.removeListener("SIGINT",t),process.removeListener("SIGTERM",t),this.#t.endCommand?.()}if(this.#u&&!this.#f){const s=I(this.#i,this.#u,this.#j);await P(s,this.#a,{dataDirectory:this.#T}),this.#M&&await $(s,this.#a,{dataDirectory:this.#T})}return this.#i}async#W(){for(const t of this.#O){this.#t.scheduleTask?.(t),this.#t.startTasks?.([t]);let s;if(this.#E(t))s=this.#H(t);else{const e=Date.now();try{s=await this.#S(t,e)}catch(i){s=w(t,i,e),this.#i.set(t.id,s)}}this.#t.endTasks?.([s]),s.terminalOutput&&this.#t.printTaskTerminalOutput?.(s.task,s.status,s.terminalOutput)}}async#x(){for(;!this.#n.isComplete()&&!this.#f;){const t=this.#n.getNextBatch();if(t.length===0){if(this.#o.size>0){await this.#p.promise,this.#p=y();continue}if(this.#n.remainingCount>0)throw new Error("Deadlock detected: tasks remain but none can be scheduled. This may indicate a circular dependency.");break}for(const s of t)this.#t.scheduleTask?.(s),this.#n.startTask(s.id);this.#t.startTasks?.(t);for(const s of t){const e=(this.#E(s)?Promise.resolve(this.#H(s)):this.#I(s)?this.#$(s):this.#P(s)).catch(i=>{const a=w(s,i,Date.now());return this.#i.set(s.id,a),a}).then(i=>(this.#o.delete(s.id),this.#n.completeTask(s.id),this.#t.endTasks?.([i]),i.terminalOutput&&this.#t.printTaskTerminalOutput?.(i.task,i.status,i.terminalOutput),this.#p.resolve(),i));this.#o.set(s.id,e)}this.#o.size>0&&(await this.#p.promise,this.#p=y())}this.#o.size>0&&await Promise.all(this.#o.values())}#I(t){return this.#w?!0:t.hashMode==="trace"&&this.#s!==void 0}async#P(t){const s=Date.now(),e=await this.#r.hashTask(t),i=A(e);if(Object.assign(t,{hash:i,hashDetails:e}),this.#v)return this.#F(t,s);if(!this.#g&&t.cache!==!1){const n=await this.#e.get(i);if(n)return this.#D(t,n,s);if(this.#c&&await H(this.#c,i,this.#e.cacheDirectory)){const h=await this.#e.get(i);if(h){const c=await this.#D(t,h,s);return c.status="remote-cache",c}}}const a=await this.#S(t,s);return a.code===0&&t.cache!==!1&&t.hash&&this.#c&&W(this.#c,t.hash,this.#e.cacheDirectory,this.#R).catch(()=>{}),a}async#$(t){const s=Date.now();if(this.#v)return this.#F(t,s);if(!this.#g&&t.cache!==!1){const e=await this.#e.getByTaskId(t.id);if(e?.fingerprint&&this.#s){const i=this.#s.validateCommand(e.fingerprint,`${t.target.project}:${t.target.target}`,t.overrides);if(i)this.#l&&this.#t.printCacheMiss?.(t,this.#s.formatMissReasons([i]));else{const a=await this.#s.validate(e.fingerprint);if(!a)return this.#D(t,e,s);this.#l&&this.#t.printCacheMiss?.(t,this.#s.formatMissReasons(a))}}else this.#l&&!e&&this.#t.printCacheMiss?.(t,`Cache miss reasons:
|
|
2
2
|
- No previous fingerprint found (first run)`)}return this.#L(t,s)}async#D(t,s,e){const i=await this.#e.restoreOutputs(s.hash,t.outputs,t.cacheRestore)?"local-cache":"local-cache-kept-existing",a={code:s.code,endTime:Date.now(),startTime:e,status:i,task:t,terminalOutput:s.terminalOutput};return this.#i.set(t.id,a),a}async#S(t,s){try{const{code:e,retryAttempts:i,terminalOutput:a}=await this.#m(t,{captureOutput:this.#d,cwd:O(this.#a,t)}),n=e===0&&b(t.warningPattern,a),h={code:e,endTime:Date.now(),hadWarnings:n||void 0,retryAttempts:i&&i>0?i:void 0,startTime:s,status:e===0?"success":"failure",task:t,terminalOutput:a};this.#i.set(t.id,h);const c=n&&t.cacheOnWarning===!1;if(e===0&&t.cache!==!1&&t.hash&&!c){const d=await this.#A(t);d.length>0?(h.selfModified=!0,this.#t.printSelfModifyingSkip?.(t,d)):D(t.outputs)?this.#t.printEmptyFingerprintWarning?.(t,S):await this.#e.put(t.hash,a,t.outputs,e)}return h}catch(e){const i=w(t,e,s);return this.#i.set(t.id,i),i}}async#A(t){const s=t.hashDetails?.nodes;if(!s||typeof this.#r.rehashFile!="function")return[];const e=this.#r.rehashFile.bind(this.#r),i=Object.entries(s);return(await Promise.all(i.map(async([a,n])=>{const h=F(this.#a,a),c=await e(h);return c!==void 0&&c!==n?a:void 0}))).filter(a=>a!==void 0)}async#L(t,s){if(!this.#s)return this.#S(t,s);const e=`${t.target.project}:${t.target.target}`,i=O(this.#a,t);try{let a,n,h,c=0,d=!1,f,m;const v=this.#C?.(t);if(v&&this.#h?.isTrackingSupported&&this.#h){const o=await this.#h.execute(t,{captureOutput:this.#d,cwd:i},v);a=o.code,n=o.terminalOutput,c=o.accesses.length,d=!0,m=o.accesses.filter(u=>u.type==="write").map(u=>u.path),h=await this.#s.createFingerprint(o.accesses,e,t.overrides,process.env,this.#k,this.#y)}else{const o=await this.#m(t,{captureOutput:this.#d,cwd:i});a=o.code,n=o.terminalOutput,f=o.retryAttempts;const u=await this.#r.hashTask(t),l=Object.keys(u.nodes).map(R=>({path:E(this.#a,R),type:"read"}));h=await this.#s.createFingerprint(l,e,t.overrides,process.env,this.#k,this.#y)}const T=a===0&&b(t.warningPattern,n),g={code:a,endTime:Date.now(),hadWarnings:T||void 0,retryAttempts:f&&f>0?f:void 0,startTime:s,status:a===0?"success":"failure",task:t,terminalOutput:n};this.#i.set(t.id,g);const C=T&&t.cacheOnWarning===!1;if(a===0&&t.cache!==!1&&h&&!C){const o=this.#N(h),u=this.#B(h,d,c);if(o.length>0)g.selfModified=!0,this.#t.printSelfModifyingSkip?.(t,o);else if(u)g.emptyFingerprint=!0,this.#t.printEmptyFingerprintWarning?.(t,u);else if(D(t.outputs)&&(!m||m.length===0))this.#t.printEmptyFingerprintWarning?.(t,S);else{const l=U(h);Object.assign(t,{hash:l}),await this.#e.put(l,n,t.outputs,a,h,m),await this.#e.setTaskIndex(t.id,l)}}return g}catch(a){const n=w(t,a,s);return this.#i.set(t.id,n),n}}#N(t){return t.modifiedInputs??[]}#B(t,s,e){return!s||Object.keys(t.fileHashes).length>0||Object.keys(t.directoryListings).length>0||t.missingFiles.length>0?void 0:e===0?"Tracker observed no workspace file accesses — likely a static binary on a platform without strace. Caching skipped.":"Tracker returned accesses but none fell inside the workspace. Caching skipped to avoid false cache hits."}#F(t,s){const e=t.hash?`[hash: ${t.hash.slice(0,12)}...]`:"[no hash]",i={code:0,endTime:Date.now(),startTime:s,status:"skipped",task:t,terminalOutput:`DRY RUN ${e}`};return this.#i.set(t.id,i),i}#E(t){return t.when?!B(t.when,this.#b):!1}#H(t){const s=G(t.when,this.#b),e=Date.now();this.#t.printWhenSkip?.(t,s);const i={code:0,endTime:e,startTime:e,status:"skipped",task:t,terminalOutput:s?`Skipped: ${s}`:"Skipped by when clause"};return this.#i.set(t.id,i),i}}export{tt as TaskOrchestrator};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var y=Object.defineProperty;var a=(o,t)=>y(o,"name",{value:t,configurable:!0});import{createRequire as g}from"node:module";import{join as n}from"@visulima/path";import{FileAccessTracker as E,generatePreloadScript as P}from"./FileAccessTracker-IG-Z0Ijw.js";import{withEnhancedPath as b}from"./collectNodeModulesBinDirs-JaeFLP9l.js";import{O as N}from"./utils-BH2W5Wml.js";const S=g(import.meta.url),i=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,m=a(o=>{if(typeof i<"u"&&i.versions&&i.versions.node){const[t,r]=i.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return i.getBuiltinModule(o)}return S(o)},"__cjs_getBuiltinModule"),{exec:T}=m("node:child_process"),{mkdir:O,writeFile:j,readFile:x,rm:l}=m("node:fs/promises");var R=Object.defineProperty,$=a((o,t)=>R(o,"name",{value:t,configurable:!0}),"u");class C{static{a(this,"TrackedTaskExecutor")}static{$(this,"TrackedTaskExecutor")}#t;#e;#r=new Set;constructor(t){this.#e=t,this.#t=new E(t)}get isTrackingSupported(){return!0}get isStraceSupported(){return this.#t.isSupported()}async execute(t,r,c){const s=r.cwd??(t.projectRoot?n(this.#e,t.projectRoot):this.#e);if(this.#t.isSupported()){const e=await this.#t.track(c,{cwd:s,env:r.env});return{accesses:e.accesses,code:e.code,terminalOutput:e.output}}return this.#s(c,s,r.env)}async#s(t,r,c){const s=n(this.#e,"node_modules",".cache","task-runner");await O(s,{recursive:!0});const e=N(),p=n(s,`preload-${e}.log`),u=n(s,`preload-${e}.mjs`),f=P(p);return await j(u,f),new Promise(_=>{const h=T(t,{cwd:r,env:b({...process.env,...c,NODE_OPTIONS:`${process.env.NODE_OPTIONS??""} --import ${u}`.trim()},r),maxBuffer:52428800},async(q,w,k)=>{this.#r.delete(h);let d=[];try{const v=await x(p,"utf8");d=this.#o(v)}catch{}await l(p,{force:!0}).catch(()=>{}),await l(u,{force:!0}).catch(()=>{}),_({accesses:d,code:h.exitCode??1,terminalOutput:w+k})});this.#r.add(h)})}killAll(){this.#t.killAll();for(const t of this.#r)try{t.kill("SIGTERM")}catch{}this.#r.clear()}#o(t){const r=[],c=new Set;for(const s of t.split(`
|
|
2
|
+
`))if(s.trim())try{const e=JSON.parse(s);e.path&&!c.has(e.path)&&(c.add(e.path),e.path.startsWith(this.#e)&&r.push({path:e.path,type:e.type}))}catch{}return r}}export{C as TrackedTaskExecutor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var d=Object.defineProperty;var c=(n,e)=>d(n,"name",{value:e,configurable:!0});import{delimiter as a,isAbsolute as h,resolve as l,join as u,dirname as P}from"@visulima/path";var f=Object.defineProperty,i=c((n,e)=>f(n,"name",{value:e,configurable:!0}),"i");const v=64,b=i(n=>{const e=h(n)?n:l(process.cwd(),n),t=[];let o=e,r=0;for(;r<v;){t.push(u(o,"node_modules",".bin"));const s=P(o);if(s===o)break;o=s,r+=1}return t},"collectNodeModulesBinDirs"),p=i(n=>{if(n){const e=n.PATH;if(e!==void 0)return e;const t=n.Path;if(t!==void 0)return t}return process.env.PATH??process.env.Path??""},"readPath"),m=i((n,e)=>{const t=b(n),o=p(e);if(t.length===0)return o;const r=t.join(a);return o.length>0?`${r}${a}${o}`:r},"buildEnhancedPath"),H=i((n,e)=>{const t={...n};return t.PATH=m(e,n),"Path"in t&&t.Path!==void 0&&(t.Path=t.PATH),t},"withEnhancedPath");export{m as buildEnhancedPath,b as collectNodeModulesBinDirs,H as withEnhancedPath};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var x=Object.defineProperty;var g=(e,a)=>x(e,"name",{value:a,configurable:!0});import{X as D}from"./utils-BH2W5Wml.js";import{createRemoteCacheBackend as I}from"./resolveCacheMode-DEDFC-kM.js";import{Cache as F}from"./Cache-C540ZPYk.js";import{inferFrameworkEnvPatterns as O}from"./detectFrameworks-WVZJOPgN.js";import{IncrementalFileHasher as H}from"./IncrementalFileHasher-CdLXVB5F.js";import{InProcessTaskHasher as G}from"./computeTaskHash-Xxd8v-X3.js";import{TaskOrchestrator as P}from"./TaskOrchestrator-
|
|
1
|
+
var x=Object.defineProperty;var g=(e,a)=>x(e,"name",{value:a,configurable:!0});import{X as D}from"./utils-BH2W5Wml.js";import{createRemoteCacheBackend as I}from"./resolveCacheMode-DEDFC-kM.js";import{Cache as F}from"./Cache-C540ZPYk.js";import{inferFrameworkEnvPatterns as O}from"./detectFrameworks-WVZJOPgN.js";import{IncrementalFileHasher as H}from"./IncrementalFileHasher-CdLXVB5F.js";import{InProcessTaskHasher as G}from"./computeTaskHash-Xxd8v-X3.js";import{TaskOrchestrator as P}from"./TaskOrchestrator-F_NrcUYn.js";import{TaskScheduler as S}from"./parsePartition-uzPNgtPp.js";var V=Object.defineProperty,m=g((e,a)=>V(e,"name",{value:a,configurable:!0}),"i");const z=m(e=>{const a=[],o={};for(const[t,s]of Object.entries(e.tasks))s.always?a.push(s):o[t]=s;if(a.length===0)return{alwaysTasks:[],graph:e};const i=new Set(a.map(t=>t.id)),c={};for(const[t,s]of Object.entries(e.dependencies))i.has(t)||(c[t]=s.filter(n=>!i.has(n)));return{alwaysTasks:a,graph:{dependencies:c,roots:e.roots.filter(t=>!i.has(t)),tasks:o}}},"partitionAlwaysTasks"),A=m(e=>{if(!e||e.length===0)return;const a=[...e].sort().map(o=>`${o}=${process.env[o]??""}`).join(`
|
|
2
2
|
`);return D(Buffer.from(a)).slice(0,16)},"computeGlobalEnvNamespace"),B=m(e=>typeof e=="number"?Math.max(1,e):e===!1?1:3,"resolveParallel"),Q=m(async(e,a,o)=>{const{lifeCycle:i,projectGraph:c,taskExecutor:t,taskGraph:s,workspaceRoot:n}=o,v=a.namespaceByGlobalEnv?A(a.globalEnv):void 0,k=new F({cacheDirectory:a.cacheDirectory,cacheNamespace:v,maxCacheAge:a.maxCacheAge,maxCacheSize:a.maxCacheSize,workspaceRoot:n});k.removeOldEntries().catch(()=>{});const p={};for(const[r,d]of Object.entries(c.nodes))p[r]=d.data;const l=a.incrementalFileHashing?new H({workspaceRoot:n}):void 0;l&&await l.load();const w=new G({autoEnvVars:a.autoEnvVars,envVars:a.envVars,frameworkInference:a.frameworkInference,globalEnv:a.globalEnv,globalInputs:a.globalInputs,incrementalHasher:l,namedInputs:a.namedInputs,onFingerprint:a.onFingerprint,projects:p,smartLockfileHashing:a.smartLockfileHashing,targetDefaults:a.targetDefaults,workspaceRoot:n}),{alwaysTasks:y,graph:u}=z(s),E=B(a.parallel),C=new S(u,c,E,a.concurrencyGroups),b=Object.values(u.tasks).some(r=>r.hashMode==="trace"),R=m(r=>{const d=c.nodes[r.target.project]?.data.targets?.[r.target.target],j=a.targetDefaults?.[r.target.target];return d?.command??j?.command},"resolveCommand"),h=a.remoteCache?I(a.remoteCache):void 0;let f=a.fingerprintEnvPatterns??[];if(a.frameworkInference&&(a.autoFingerprint||b)){const r=await O(n,p);f=[...new Set([...f,...r])]}const T=new P({alwaysTasks:y,autoFingerprint:a.autoFingerprint,cache:k,cacheDiagnostics:a.cacheDiagnostics,captureOutput:!0,dataDirectory:a.dataDirectory,dryRun:a.dryRun,fingerprintEnvPatterns:f,lifeCycle:i,onRemoteUploadError:a.remoteCache?.onUploadError,remoteCache:h,resolveCommand:R,scheduler:C,skipCache:a.skipNxCache,summarize:a.summarize,taskExecutor:t,taskGraph:u,taskHasher:w,untrackedEnvVars:a.untrackedEnvVars,workspaceRoot:n});try{const r=await T.run();return l&&await l.save().catch(()=>{}),r}finally{h&&await h.close().catch(()=>{})}},"defaultTaskRunner");export{Q as defaultTaskRunner};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var c=Object.defineProperty;var s=(t,e)=>c(t,"name",{value:e,configurable:!0});import{s as o}from"./shell-quote-
|
|
1
|
+
var c=Object.defineProperty;var s=(t,e)=>c(t,"name",{value:e,configurable:!0});import{s as o}from"./shell-quote-BhmqDUL1.js";var m=Object.defineProperty,i=s((t,e)=>m(t,"name",{value:e,configurable:!0}),"u");const l=/\\?\{([@*]|[1-9]\d*)\}/g,g=i((t,e)=>{if(e.length===0)return t;const u=t.command.replaceAll(l,(a,n)=>{if(a.startsWith("\\"))return a.slice(1);const r=Number(n);return!Number.isNaN(r)&&r<=e.length?o(e[r-1]):n==="@"?e.map(o).join(" "):n==="*"?o(e.join(" ")):""});return{...t,command:u}},"expandArguments");export{g as expandArguments};
|
package/dist/packem_shared/{expandTokensInString-Cyx0qSFA.js → expandTokensInString-DVSFEdWu.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
var m=Object.defineProperty;var l=(e,t)=>m(e,"name",{value:t,configurable:!0});import{s as f}from"./shell-quote-
|
|
1
|
+
var m=Object.defineProperty;var l=(e,t)=>m(e,"name",{value:t,configurable:!0});import{s as f}from"./shell-quote-BhmqDUL1.js";var p=Object.defineProperty,a=l((e,t)=>p(e,"name",{value:t,configurable:!0}),"s");const u={"affected.files":"affectedFiles",changed_files:"affectedFiles"},g=/\\?\$\{\s*([\w.]+)\s*(?:\|\s*flag\s+(["'])(.*?)\2\s*)?\}/g,h=a((e,t)=>{if(e===t)return".";const n=`${t}/`;if(e.startsWith(n))return e.slice(n.length)},"rewriteForProjectRoot"),j=a((e,t)=>e.replaceAll(g,(n,d,v,o)=>{if(n.startsWith("\\"))return n.slice(1);const i=u[d];if(!i)return n;const c=t[i]??[],s=t.projectRoot?c.map(r=>h(r,t.projectRoot)).filter(r=>r!==void 0):c;return s.length===0?"":o!==void 0&&o.length>0?s.map(r=>`${o} ${f(r)}`).join(" "):s.map(f).join(" ")}),"expandTokensInString"),k=a((e,t)=>{if(!e.command.includes("${"))return e;const n=j(e.command,t);return n===e.command?e:{...e,command:n}},"expandTokens");export{k as expandTokens,j as expandTokensInString};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var s=Object.defineProperty;var p=(o,t)=>s(o,"name",{value:t,configurable:!0});import{expandArguments as i}from"./expandArguments-
|
|
1
|
+
var s=Object.defineProperty;var p=(o,t)=>s(o,"name",{value:t,configurable:!0});import{expandArguments as i}from"./expandArguments-D7qvc6Rp.js";import{expandShortcut as d}from"./expandShortcut-BErNHNXZ.js";import{expandTokens as f}from"./expandTokensInString-DVSFEdWu.js";import{expandTokensInString as T}from"./expandTokensInString-DVSFEdWu.js";import{expandWildcard as u}from"./expandWildcard-DE0dOOZF.js";import{stripQuotes as c}from"./stripQuotes-jkZb0CL9.js";var l=Object.defineProperty,x=p((o,t)=>l(o,"name",{value:t,configurable:!0}),"a");const h=x((o,t={})=>{const{additionalArguments:m=[],tokens:n}=t;let r=o.map(e=>typeof e=="string"?{command:e}:{...e});return r=r.map(c),r=r.map(d),r=r.flatMap(e=>{const a=u(e);return Array.isArray(a)?a:[a]}),n&&(r=r.map(e=>f(e,n))),m.length>0&&(r=r.map(e=>i(e,m))),r},"parseCommands");export{i as expandArguments,d as expandShortcut,f as expandTokens,T as expandTokensInString,u as expandWildcard,h as parseCommands,c as stripQuotes};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var b=Object.defineProperty;var _=(s,e)=>b(s,"name",{value:e,configurable:!0});import{createRequire as I}from"node:module";import{spawn as L}from"@lydell/node-pty";const M=I(import.meta.url),T=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,P=_(s=>{if(typeof T<"u"&&T.versions&&T.versions.node){const[e,l]=T.versions.node.split(".").map(Number);if(e>22||e===22&&l>=3||e===20&&l>=16)return T.getBuiltinModule(s)}return M(s)},"__cjs_getBuiltinModule"),{spawn:S}=P("node:child_process");var F=Object.defineProperty,a=_((s,e)=>F(s,"name",{value:e,configurable:!0}),"d");const j=a((s,e)=>{if(s.length===0)return!0;const l=e.trim().toLowerCase();if(l==="first")return s[0].exitCode===0;if(l==="last")return s.at(-1).exitCode===0;const m=/^(!?)command-(.+)$/.exec(l);if(m){const[,v,C]=m,g=v==="!",f=s.filter(t=>t.name===C||String(t.index)===C);return g?s.filter(t=>!f.includes(t)).every(t=>t.exitCode===0):f.length>0&&f.every(t=>t.exitCode===0)}return s.every(v=>v.exitCode===0)},"evaluateSuccess"),E=a((s,e)=>{try{process.platform==="win32"?S("taskkill",["/F","/T","/PID",String(s)],{stdio:"ignore"}):process.kill(-s,e)}catch{}},"killTree"),$=a((s,e,l,m,v)=>{const C=process.hrtime(),g=e.shell!==!1,f=e.stdin??"null",t=f==="inherit"?"inherit":f==="pipe"?"pipe":"ignore";let o;if(g){let i,d,p=!1;l?(i=l,d=["-c",e.command]):process.platform==="win32"?(i="cmd.exe",d=["/s","/c",`"${e.command}"`],p=!0):(i="/bin/sh",d=["-c",e.command]),o=S(i,d,{cwd:e.cwd,detached:process.platform!=="win32",env:{...process.env,...e.env,FORCE_COLOR:process.env.FORCE_COLOR??"1"},stdio:[t,"pipe","pipe"],windowsVerbatimArguments:p})}else{const i=e.command.split(/\s+/),d=i[0],p=i.slice(1);o=S(d,p,{cwd:e.cwd,detached:process.platform!=="win32",env:{...process.env,...e.env,FORCE_COLOR:process.env.FORCE_COLOR??"1"},stdio:[t,"pipe","pipe"]})}m({index:s,kill:o.pid?i=>{E(o.pid,i??"SIGTERM")}:void 0,kind:"started",pid:o.pid,write:o.stdin?i=>o.stdin.write(i):void 0});let c="",n;const k=a(()=>{c&&(m({index:s,kind:"stdout",text:c.replace(/\r$/,"")}),c="")},"flushStdoutBuffer");o.stdout?.on("data",i=>{n&&(clearTimeout(n),n=void 0),c+=i.toString();const d=c.split(`
|
|
2
|
+
`);c=d.pop()??"";for(const p of d)m({index:s,kind:"stdout",text:p.replace(/\r$/,"")});c&&(n=setTimeout(k,100))}),o.stdout?.on("end",()=>{n&&(clearTimeout(n),n=void 0),k()});let x="",h;const O=a(()=>{x&&(m({index:s,kind:"stderr",text:x.replace(/\r$/,"")}),x="")},"flushStderrBuffer");return o.stderr?.on("data",i=>{h&&(clearTimeout(h),h=void 0),x+=i.toString();const d=x.split(`
|
|
3
|
+
`);x=d.pop()??"";for(const p of d)m({index:s,kind:"stderr",text:p.replace(/\r$/,"")});x&&(h=setTimeout(O,100))}),o.stderr?.on("end",()=>{h&&(clearTimeout(h),h=void 0),O()}),o.on("error",i=>{m({index:s,kind:"error",message:i.message})}),o.on("close",(i,d)=>{n&&(clearTimeout(n),n=void 0),h&&(clearTimeout(h),h=void 0),k(),O();const p=process.hrtime(C),y=p[0]*1e3+p[1]/1e6,r=i??(d?1:-1),u={command:e.command,durationMs:y,exitCode:r,index:s,killed:d!==null,name:e.name};m({commandName:e.name,durationMs:y,exitCode:r,index:s,killed:d!==null,kind:"close"}),v(u)}),{child:o,index:s,startTime:C}},"spawnCommand"),G=a((s,e,l,m,v)=>{const C=process.hrtime();let g,f;l?(g=l,f=["-c",e.command]):process.platform==="win32"?(g="cmd.exe",f=["/s","/c",e.command]):(g="/bin/sh",f=["-c",e.command]);const t=L(g,f,{cols:e.ptySize?.cols??80,cwd:e.cwd??process.cwd(),env:Object.fromEntries(Object.entries({...process.env,...e.env,FORCE_COLOR:process.env.FORCE_COLOR??"1",TERM:"xterm-256color"}).filter(o=>typeof o[1]=="string")),name:"xterm-256color",rows:e.ptySize?.rows??24});return m({index:s,kill:a(o=>{t.kill(o)},"kill"),kind:"started",pid:t.pid,resize:a((o,c)=>{t.resize(o,c)},"resize"),write:a(o=>{t.write(o)},"write")}),t.onData(o=>{m({index:s,kind:"stdout",text:o})}),t.onExit(({exitCode:o,signal:c})=>{const n=process.hrtime(C),k=n[0]*1e3+n[1]/1e6,x=o??(c?1:-1),h={command:e.command,durationMs:k,exitCode:x,index:s,killed:c!==void 0&&c!==0,name:e.name};m({commandName:e.name,durationMs:k,exitCode:x,index:s,killed:c!==void 0&&c!==0,kind:"close"}),v(h)}),{index:s,pty:t,startTime:C}},"spawnCommandPty"),q=a((s,e)=>new Promise(l=>{if(s.length===0){l({closeEvents:[],success:!0});return}const m=e.maxProcesses&&e.maxProcesses>0?e.maxProcesses:s.length,v=e.killSignal??"SIGTERM",C=e.killOthers??[],g=e.successCondition??"all",f=e.onEvent??(()=>{}),t=[],o=[],c=s.map((r,u)=>u);let n=!1,k=!1;const x=a(()=>{for(const r of t)r.pty?r.pty.kill(v):r.child?.pid&&E(r.child.pid,v)},"killAll"),h=a(r=>{for(const u of C)if(u==="failure"&&r.exitCode!==0||u==="success"&&r.exitCode===0)return!0;return!1},"shouldKillOthers"),O=a((r,u)=>{const R=t.findIndex(w=>w.index===r);if(R!==-1&&t.splice(R,1),n&&(u.killed=!0,k&&(u.exitCode=0)),o.push(u),!n&&h(u)&&(n=!0,x()),n||i(),t.length===0&&c.length===0){const w=j(o,g);l({closeEvents:o,success:w})}},"handleClose"),i=a(()=>{for(;t.length<m&&c.length>0;){const r=c.shift(),u=s[r],R=u.stdin==="pty"?G(r,u,e.shellPath,f,w=>{O(r,w)}):$(r,u,e.shellPath,f,w=>{O(r,w)});t.push(R)}},"maybeSpawnMore"),d=a(()=>{n||(n=!0,k=!0,x())},"handleSigint"),p=a(()=>{n||(n=!0,x())},"handleNonInteractiveAbort");process.on("SIGINT",d),process.on("SIGTERM",p),process.on("exit",p);const y=l;l=a((r=>{process.removeListener("SIGINT",d),process.removeListener("SIGTERM",p),process.removeListener("exit",p),y(r)}),"resolve"),i()}),"runConcurrentFallback");export{q as runConcurrentFallback};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var k=Object.defineProperty;var p=(t,e)=>k(t,"name",{value:e,configurable:!0});import{createRequire as v}from"node:module";import{runConcurrentFallback as S}from"./runConcurrentFallback-SvS4ElEX.js";import{detectScriptShell as b}from"./detectScriptShell-CaTDk5cW.js";import{logTimings as x}from"./formatTimingTable-CP3rsDwf.js";import{withRestart as C}from"./withRestart-DKtEGsQA.js";import{runTeardown as E}from"./runTeardown-CiJJeWVf.js";import{loadNativeBindings as I}from"./isNativeAvailable-BOavFPX1.js";import{buildEnhancedPath as R}from"./collectNodeModulesBinDirs-JaeFLP9l.js";const T=v(import.meta.url),a=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,P=p(t=>{if(typeof a<"u"&&a.versions&&a.versions.node){const[e,s]=a.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return a.getBuiltinModule(t)}return T(t)},"__cjs_getBuiltinModule"),{spawn:_}=P("node:child_process");var M=Object.defineProperty,i=p((t,e)=>M(t,"name",{value:e,configurable:!0}),"o");const d=new Set;let h=!1;const j=i((t,e)=>{try{process.platform==="win32"?_("taskkill",["/F","/T","/PID",String(t)],{stdio:"ignore"}):process.kill(-t,e)}catch{}},"killTrackedTree"),u=i(t=>{for(const e of d)j(e,t)},"killAllTracked"),G=i(()=>{h||(h=!0,process.setMaxListeners(process.getMaxListeners()+3),process.on("SIGINT",()=>{u("SIGINT")}),process.on("SIGTERM",()=>{u("SIGTERM")}),process.on("exit",()=>{u("SIGTERM")}))},"installSignalHandlersOnce"),B=i(t=>t.map(e=>typeof e=="string"?{command:e}:e),"normalizeCommands"),N=i(t=>t.map(e=>{const s=e.cwd??process.cwd(),o=R(s,e.env),n={...e.env??{}};return n.PATH=o,"Path"in n&&(n.Path=o),{...e,env:n}}),"withEnhancedPathConfigs"),g=i(async(t,e)=>{const s=e.shellPath??b(),o=N(t),n=I(),m=o.some(l=>l.stdin==="pipe"||l.stdin==="pty")||!!e.onEvent;if(n&&!m){const l={killOthers:e.killOthers,killSignal:e.killSignal,killTimeout:e.killTimeout,maxProcesses:e.maxProcesses,shellPath:s,successCondition:e.successCondition},w=o.map(r=>({command:r.command,cwd:r.cwd,env:r.env,name:r.name,shell:r.shell,stdin:r.stdin}));G();const c=new Map,y=i(r=>{if(r!=null){if(r.kind==="started"&&typeof r.pid=="number"){d.add(r.pid),c.set(r.index,r.pid);return}if(r.kind==="close"||r.kind==="error"){const f=c.get(r.index);f!==void 0&&(d.delete(f),c.delete(r.index))}}},"onLifecycle");try{return await n.runConcurrentBatch(w,l,y)}finally{for(const r of c.values())d.delete(r)}}return S(o,{...e,shellPath:s})},"coreRun"),K=i(async(t,e={})=>{const s=B(t);if(s.length===0)return{closeEvents:[],success:!0};let o;return e.restart&&e.restart.tries!==0?o=await C((n,m)=>g(n,m),s,e,{delay:e.restart.delay??0,onRetry:e.restart.onRetry,tries:e.restart.tries}):o=await g(s,e),e.timings&&x(o.closeEvents),e.teardown&&e.teardown.length>0&&await E({commands:e.teardown,cwd:e.teardownCwd}),o},"runConcurrently");export{K as runConcurrently};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var p=Object.defineProperty;var i=(o,e)=>p(o,"name",{value:e,configurable:!0});import{createRequire as m}from"node:module";import{withEnhancedPath as w}from"./collectNodeModulesBinDirs-JaeFLP9l.js";const u=m(import.meta.url),r=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,l=i(o=>{if(typeof r<"u"&&r.versions&&r.versions.node){const[e,s]=r.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return r.getBuiltinModule(o)}return u(o)},"__cjs_getBuiltinModule"),{spawn:f}=l("node:child_process");var _=Object.defineProperty,a=i((o,e)=>_(o,"name",{value:e,configurable:!0}),"c");const j=a(async o=>{const{commands:e,cwd:s}=o,n=[];for(const c of e){const t=await h(c,s);n.push(t)}return n},"runTeardown"),h=a((o,e)=>new Promise(s=>{const n=process.platform==="win32"?"cmd.exe":"/bin/sh",c=process.platform==="win32"?["/s","/c",`"${o}"`]:["-c",o],t=f(n,c,{cwd:e,env:w(process.env,e??process.cwd()),stdio:"inherit",windowsVerbatimArguments:process.platform==="win32"});t.on("close",d=>{s(d??1)}),t.on("error",()=>{s(1)})}),"runTeardownCommand");export{j as runTeardown};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=Object.defineProperty;var t=(e,l)=>a(e,"name",{value:l,configurable:!0});var r=Object.defineProperty,c=t((e,l)=>r(e,"name",{value:l,configurable:!0}),"t");const n=/^[\w./:@+,=-]+$/,s=c(e=>e!==""&&n.test(e)?e:process.platform==="win32"?`"${e.replaceAll("\\","\\\\").replaceAll('"',String.raw`\"`).replaceAll(/[\^&|<>]/g,"^$&")}"`:`'${e.replaceAll("'",String.raw`'\''`)}'`,"shellQuote");export{s};
|
package/index.js
CHANGED
|
@@ -81,8 +81,8 @@ function requireNative() {
|
|
|
81
81
|
try {
|
|
82
82
|
const binding = require('@visulima/task-runner-binding-android-arm64')
|
|
83
83
|
const bindingPackageVersion = require('@visulima/task-runner-binding-android-arm64/package.json').version
|
|
84
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
85
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
84
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
85
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
86
86
|
}
|
|
87
87
|
return binding
|
|
88
88
|
} catch (e) {
|
|
@@ -97,8 +97,8 @@ function requireNative() {
|
|
|
97
97
|
try {
|
|
98
98
|
const binding = require('@visulima/task-runner-binding-android-arm-eabi')
|
|
99
99
|
const bindingPackageVersion = require('@visulima/task-runner-binding-android-arm-eabi/package.json').version
|
|
100
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
101
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
100
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
101
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
102
102
|
}
|
|
103
103
|
return binding
|
|
104
104
|
} catch (e) {
|
|
@@ -118,8 +118,8 @@ function requireNative() {
|
|
|
118
118
|
try {
|
|
119
119
|
const binding = require('@visulima/task-runner-binding-win32-x64-gnu')
|
|
120
120
|
const bindingPackageVersion = require('@visulima/task-runner-binding-win32-x64-gnu/package.json').version
|
|
121
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
122
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
121
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
122
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
123
123
|
}
|
|
124
124
|
return binding
|
|
125
125
|
} catch (e) {
|
|
@@ -134,8 +134,8 @@ function requireNative() {
|
|
|
134
134
|
try {
|
|
135
135
|
const binding = require('@visulima/task-runner-binding-win32-x64-msvc')
|
|
136
136
|
const bindingPackageVersion = require('@visulima/task-runner-binding-win32-x64-msvc/package.json').version
|
|
137
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
138
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
137
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
138
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
139
139
|
}
|
|
140
140
|
return binding
|
|
141
141
|
} catch (e) {
|
|
@@ -151,8 +151,8 @@ function requireNative() {
|
|
|
151
151
|
try {
|
|
152
152
|
const binding = require('@visulima/task-runner-binding-win32-ia32-msvc')
|
|
153
153
|
const bindingPackageVersion = require('@visulima/task-runner-binding-win32-ia32-msvc/package.json').version
|
|
154
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
155
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
154
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
155
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
156
156
|
}
|
|
157
157
|
return binding
|
|
158
158
|
} catch (e) {
|
|
@@ -167,8 +167,8 @@ function requireNative() {
|
|
|
167
167
|
try {
|
|
168
168
|
const binding = require('@visulima/task-runner-binding-win32-arm64-msvc')
|
|
169
169
|
const bindingPackageVersion = require('@visulima/task-runner-binding-win32-arm64-msvc/package.json').version
|
|
170
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
171
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
170
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
171
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
172
172
|
}
|
|
173
173
|
return binding
|
|
174
174
|
} catch (e) {
|
|
@@ -186,8 +186,8 @@ function requireNative() {
|
|
|
186
186
|
try {
|
|
187
187
|
const binding = require('@visulima/task-runner-binding-darwin-universal')
|
|
188
188
|
const bindingPackageVersion = require('@visulima/task-runner-binding-darwin-universal/package.json').version
|
|
189
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
190
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
189
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
190
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
191
191
|
}
|
|
192
192
|
return binding
|
|
193
193
|
} catch (e) {
|
|
@@ -202,8 +202,8 @@ function requireNative() {
|
|
|
202
202
|
try {
|
|
203
203
|
const binding = require('@visulima/task-runner-binding-darwin-x64')
|
|
204
204
|
const bindingPackageVersion = require('@visulima/task-runner-binding-darwin-x64/package.json').version
|
|
205
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
206
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
205
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
206
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
207
207
|
}
|
|
208
208
|
return binding
|
|
209
209
|
} catch (e) {
|
|
@@ -218,8 +218,8 @@ function requireNative() {
|
|
|
218
218
|
try {
|
|
219
219
|
const binding = require('@visulima/task-runner-binding-darwin-arm64')
|
|
220
220
|
const bindingPackageVersion = require('@visulima/task-runner-binding-darwin-arm64/package.json').version
|
|
221
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
222
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
221
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
222
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
223
223
|
}
|
|
224
224
|
return binding
|
|
225
225
|
} catch (e) {
|
|
@@ -238,8 +238,8 @@ function requireNative() {
|
|
|
238
238
|
try {
|
|
239
239
|
const binding = require('@visulima/task-runner-binding-freebsd-x64')
|
|
240
240
|
const bindingPackageVersion = require('@visulima/task-runner-binding-freebsd-x64/package.json').version
|
|
241
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
242
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
241
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
242
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
243
243
|
}
|
|
244
244
|
return binding
|
|
245
245
|
} catch (e) {
|
|
@@ -254,8 +254,8 @@ function requireNative() {
|
|
|
254
254
|
try {
|
|
255
255
|
const binding = require('@visulima/task-runner-binding-freebsd-arm64')
|
|
256
256
|
const bindingPackageVersion = require('@visulima/task-runner-binding-freebsd-arm64/package.json').version
|
|
257
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
258
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
257
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
258
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
259
259
|
}
|
|
260
260
|
return binding
|
|
261
261
|
} catch (e) {
|
|
@@ -275,8 +275,8 @@ function requireNative() {
|
|
|
275
275
|
try {
|
|
276
276
|
const binding = require('@visulima/task-runner-binding-linux-x64-musl')
|
|
277
277
|
const bindingPackageVersion = require('@visulima/task-runner-binding-linux-x64-musl/package.json').version
|
|
278
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
279
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
278
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
279
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
280
280
|
}
|
|
281
281
|
return binding
|
|
282
282
|
} catch (e) {
|
|
@@ -291,8 +291,8 @@ function requireNative() {
|
|
|
291
291
|
try {
|
|
292
292
|
const binding = require('@visulima/task-runner-binding-linux-x64-gnu')
|
|
293
293
|
const bindingPackageVersion = require('@visulima/task-runner-binding-linux-x64-gnu/package.json').version
|
|
294
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
295
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
294
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
295
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
296
296
|
}
|
|
297
297
|
return binding
|
|
298
298
|
} catch (e) {
|
|
@@ -309,8 +309,8 @@ function requireNative() {
|
|
|
309
309
|
try {
|
|
310
310
|
const binding = require('@visulima/task-runner-binding-linux-arm64-musl')
|
|
311
311
|
const bindingPackageVersion = require('@visulima/task-runner-binding-linux-arm64-musl/package.json').version
|
|
312
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
313
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
312
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
313
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
314
314
|
}
|
|
315
315
|
return binding
|
|
316
316
|
} catch (e) {
|
|
@@ -325,8 +325,8 @@ function requireNative() {
|
|
|
325
325
|
try {
|
|
326
326
|
const binding = require('@visulima/task-runner-binding-linux-arm64-gnu')
|
|
327
327
|
const bindingPackageVersion = require('@visulima/task-runner-binding-linux-arm64-gnu/package.json').version
|
|
328
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
329
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
328
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
329
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
330
330
|
}
|
|
331
331
|
return binding
|
|
332
332
|
} catch (e) {
|
|
@@ -343,8 +343,8 @@ function requireNative() {
|
|
|
343
343
|
try {
|
|
344
344
|
const binding = require('@visulima/task-runner-binding-linux-arm-musleabihf')
|
|
345
345
|
const bindingPackageVersion = require('@visulima/task-runner-binding-linux-arm-musleabihf/package.json').version
|
|
346
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
347
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
346
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
347
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
348
348
|
}
|
|
349
349
|
return binding
|
|
350
350
|
} catch (e) {
|
|
@@ -359,8 +359,8 @@ function requireNative() {
|
|
|
359
359
|
try {
|
|
360
360
|
const binding = require('@visulima/task-runner-binding-linux-arm-gnueabihf')
|
|
361
361
|
const bindingPackageVersion = require('@visulima/task-runner-binding-linux-arm-gnueabihf/package.json').version
|
|
362
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
363
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
362
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
363
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
364
364
|
}
|
|
365
365
|
return binding
|
|
366
366
|
} catch (e) {
|
|
@@ -377,8 +377,8 @@ function requireNative() {
|
|
|
377
377
|
try {
|
|
378
378
|
const binding = require('@visulima/task-runner-binding-linux-loong64-musl')
|
|
379
379
|
const bindingPackageVersion = require('@visulima/task-runner-binding-linux-loong64-musl/package.json').version
|
|
380
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
381
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
380
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
381
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
382
382
|
}
|
|
383
383
|
return binding
|
|
384
384
|
} catch (e) {
|
|
@@ -393,8 +393,8 @@ function requireNative() {
|
|
|
393
393
|
try {
|
|
394
394
|
const binding = require('@visulima/task-runner-binding-linux-loong64-gnu')
|
|
395
395
|
const bindingPackageVersion = require('@visulima/task-runner-binding-linux-loong64-gnu/package.json').version
|
|
396
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
397
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
396
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
397
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
398
398
|
}
|
|
399
399
|
return binding
|
|
400
400
|
} catch (e) {
|
|
@@ -411,8 +411,8 @@ function requireNative() {
|
|
|
411
411
|
try {
|
|
412
412
|
const binding = require('@visulima/task-runner-binding-linux-riscv64-musl')
|
|
413
413
|
const bindingPackageVersion = require('@visulima/task-runner-binding-linux-riscv64-musl/package.json').version
|
|
414
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
415
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
414
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
415
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
416
416
|
}
|
|
417
417
|
return binding
|
|
418
418
|
} catch (e) {
|
|
@@ -427,8 +427,8 @@ function requireNative() {
|
|
|
427
427
|
try {
|
|
428
428
|
const binding = require('@visulima/task-runner-binding-linux-riscv64-gnu')
|
|
429
429
|
const bindingPackageVersion = require('@visulima/task-runner-binding-linux-riscv64-gnu/package.json').version
|
|
430
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
431
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
430
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
431
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
432
432
|
}
|
|
433
433
|
return binding
|
|
434
434
|
} catch (e) {
|
|
@@ -444,8 +444,8 @@ function requireNative() {
|
|
|
444
444
|
try {
|
|
445
445
|
const binding = require('@visulima/task-runner-binding-linux-ppc64-gnu')
|
|
446
446
|
const bindingPackageVersion = require('@visulima/task-runner-binding-linux-ppc64-gnu/package.json').version
|
|
447
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
448
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
447
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
448
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
449
449
|
}
|
|
450
450
|
return binding
|
|
451
451
|
} catch (e) {
|
|
@@ -460,8 +460,8 @@ function requireNative() {
|
|
|
460
460
|
try {
|
|
461
461
|
const binding = require('@visulima/task-runner-binding-linux-s390x-gnu')
|
|
462
462
|
const bindingPackageVersion = require('@visulima/task-runner-binding-linux-s390x-gnu/package.json').version
|
|
463
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
464
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
463
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
464
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
465
465
|
}
|
|
466
466
|
return binding
|
|
467
467
|
} catch (e) {
|
|
@@ -480,8 +480,8 @@ function requireNative() {
|
|
|
480
480
|
try {
|
|
481
481
|
const binding = require('@visulima/task-runner-binding-openharmony-arm64')
|
|
482
482
|
const bindingPackageVersion = require('@visulima/task-runner-binding-openharmony-arm64/package.json').version
|
|
483
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
484
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
483
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
484
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
485
485
|
}
|
|
486
486
|
return binding
|
|
487
487
|
} catch (e) {
|
|
@@ -496,8 +496,8 @@ function requireNative() {
|
|
|
496
496
|
try {
|
|
497
497
|
const binding = require('@visulima/task-runner-binding-openharmony-x64')
|
|
498
498
|
const bindingPackageVersion = require('@visulima/task-runner-binding-openharmony-x64/package.json').version
|
|
499
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
500
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
499
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
500
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
501
501
|
}
|
|
502
502
|
return binding
|
|
503
503
|
} catch (e) {
|
|
@@ -512,8 +512,8 @@ function requireNative() {
|
|
|
512
512
|
try {
|
|
513
513
|
const binding = require('@visulima/task-runner-binding-openharmony-arm')
|
|
514
514
|
const bindingPackageVersion = require('@visulima/task-runner-binding-openharmony-arm/package.json').version
|
|
515
|
-
if (bindingPackageVersion !== '1.0.0-alpha.
|
|
516
|
-
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.
|
|
515
|
+
if (bindingPackageVersion !== '1.0.0-alpha.15' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
516
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0-alpha.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
517
517
|
}
|
|
518
518
|
return binding
|
|
519
519
|
} catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/task-runner",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.16",
|
|
4
4
|
"description": "A task runner with caching support for monorepo workspaces",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cache",
|
|
@@ -12,9 +12,7 @@
|
|
|
12
12
|
"workspace"
|
|
13
13
|
],
|
|
14
14
|
"homepage": "https://visulima.com/packages/task-runner",
|
|
15
|
-
"bugs":
|
|
16
|
-
"url": "https://github.com/visulima/visulima/issues"
|
|
17
|
-
},
|
|
15
|
+
"bugs": "https://github.com/visulima/visulima/issues",
|
|
18
16
|
"repository": {
|
|
19
17
|
"type": "git",
|
|
20
18
|
"url": "git+https://github.com/visulima/visulima.git",
|
|
@@ -53,8 +51,8 @@
|
|
|
53
51
|
],
|
|
54
52
|
"dependencies": {
|
|
55
53
|
"@lydell/node-pty": "1.2.0-beta.12",
|
|
56
|
-
"@visulima/humanizer": "3.0.0-alpha.
|
|
57
|
-
"@visulima/path": "3.0.0-alpha.
|
|
54
|
+
"@visulima/humanizer": "3.0.0-alpha.12",
|
|
55
|
+
"@visulima/path": "3.0.0-alpha.11",
|
|
58
56
|
"nanotar": "^0.3.0"
|
|
59
57
|
},
|
|
60
58
|
"peerDependencies": {
|
|
@@ -70,14 +68,14 @@
|
|
|
70
68
|
}
|
|
71
69
|
},
|
|
72
70
|
"optionalDependencies": {
|
|
73
|
-
"@visulima/task-runner-binding-darwin-arm64": "1.0.0-alpha.
|
|
74
|
-
"@visulima/task-runner-binding-darwin-x64": "1.0.0-alpha.
|
|
75
|
-
"@visulima/task-runner-binding-linux-arm64-gnu": "1.0.0-alpha.
|
|
76
|
-
"@visulima/task-runner-binding-linux-arm64-musl": "1.0.0-alpha.
|
|
77
|
-
"@visulima/task-runner-binding-linux-x64-gnu": "1.0.0-alpha.
|
|
78
|
-
"@visulima/task-runner-binding-linux-x64-musl": "1.0.0-alpha.
|
|
79
|
-
"@visulima/task-runner-binding-win32-arm64-msvc": "1.0.0-alpha.
|
|
80
|
-
"@visulima/task-runner-binding-win32-x64-msvc": "1.0.0-alpha.
|
|
71
|
+
"@visulima/task-runner-binding-darwin-arm64": "1.0.0-alpha.16",
|
|
72
|
+
"@visulima/task-runner-binding-darwin-x64": "1.0.0-alpha.16",
|
|
73
|
+
"@visulima/task-runner-binding-linux-arm64-gnu": "1.0.0-alpha.16",
|
|
74
|
+
"@visulima/task-runner-binding-linux-arm64-musl": "1.0.0-alpha.16",
|
|
75
|
+
"@visulima/task-runner-binding-linux-x64-gnu": "1.0.0-alpha.16",
|
|
76
|
+
"@visulima/task-runner-binding-linux-x64-musl": "1.0.0-alpha.16",
|
|
77
|
+
"@visulima/task-runner-binding-win32-arm64-msvc": "1.0.0-alpha.16",
|
|
78
|
+
"@visulima/task-runner-binding-win32-x64-msvc": "1.0.0-alpha.16"
|
|
81
79
|
},
|
|
82
80
|
"engines": {
|
|
83
81
|
"node": "^22.14.0 || >=24.10.0"
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var y=Object.defineProperty;var a=(o,t)=>y(o,"name",{value:t,configurable:!0});import{createRequire as g}from"node:module";import{join as n}from"@visulima/path";import{FileAccessTracker as b,generatePreloadScript as N}from"./FileAccessTracker-DSNf03JW.js";import{O as P}from"./utils-BH2W5Wml.js";const S=g(import.meta.url),i=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,f=a(o=>{if(typeof i<"u"&&i.versions&&i.versions.node){const[t,r]=i.versions.node.split(".").map(Number);if(t>22||t===22&&r>=3||t===20&&r>=16)return i.getBuiltinModule(o)}return S(o)},"__cjs_getBuiltinModule"),{exec:T}=f("node:child_process"),{mkdir:O,writeFile:j,readFile:x,rm:h}=f("node:fs/promises");var E=Object.defineProperty,R=a((o,t)=>E(o,"name",{value:t,configurable:!0}),"u");class M{static{a(this,"TrackedTaskExecutor")}static{R(this,"TrackedTaskExecutor")}#t;#e;#r=new Set;constructor(t){this.#e=t,this.#t=new b(t)}get isTrackingSupported(){return!0}get isStraceSupported(){return this.#t.isSupported()}async execute(t,r,c){const s=r.cwd??(t.projectRoot?n(this.#e,t.projectRoot):this.#e);if(this.#t.isSupported()){const e=await this.#t.track(c,{cwd:s,env:r.env});return{accesses:e.accesses,code:e.code,terminalOutput:e.output}}return this.#s(c,s,r.env)}async#s(t,r,c){const s=n(this.#e,"node_modules",".cache","task-runner");await O(s,{recursive:!0});const e=P(),p=n(s,`preload-${e}.log`),u=n(s,`preload-${e}.mjs`),m=N(p);return await j(u,m),new Promise(_=>{const l=T(t,{cwd:r,env:{...process.env,...c,NODE_OPTIONS:`${process.env.NODE_OPTIONS??""} --import ${u}`.trim()},maxBuffer:52428800},async(A,w,k)=>{this.#r.delete(l);let d=[];try{const v=await x(p,"utf8");d=this.#o(v)}catch{}await h(p,{force:!0}).catch(()=>{}),await h(u,{force:!0}).catch(()=>{}),_({accesses:d,code:l.exitCode??1,terminalOutput:w+k})});this.#r.add(l)})}killAll(){this.#t.killAll();for(const t of this.#r)try{t.kill("SIGTERM")}catch{}this.#r.clear()}#o(t){const r=[],c=new Set;for(const s of t.split(`
|
|
2
|
-
`))if(s.trim())try{const e=JSON.parse(s);e.path&&!c.has(e.path)&&(c.add(e.path),e.path.startsWith(this.#e)&&r.push({path:e.path,type:e.type}))}catch{}return r}}export{M as TrackedTaskExecutor};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var b=Object.defineProperty;var _=(s,e)=>b(s,"name",{value:e,configurable:!0});import{createRequire as I}from"node:module";import{spawn as L}from"@lydell/node-pty";const M=I(import.meta.url),T=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,P=_(s=>{if(typeof T<"u"&&T.versions&&T.versions.node){const[e,l]=T.versions.node.split(".").map(Number);if(e>22||e===22&&l>=3||e===20&&l>=16)return T.getBuiltinModule(s)}return M(s)},"__cjs_getBuiltinModule"),{spawn:S}=P("node:child_process");var F=Object.defineProperty,a=_((s,e)=>F(s,"name",{value:e,configurable:!0}),"d");const j=a((s,e)=>{if(s.length===0)return!0;const l=e.trim().toLowerCase();if(l==="first")return s[0].exitCode===0;if(l==="last")return s.at(-1).exitCode===0;const m=/^(!?)command-(.+)$/.exec(l);if(m){const[,v,C]=m,g=v==="!",f=s.filter(t=>t.name===C||String(t.index)===C);return g?s.filter(t=>!f.includes(t)).every(t=>t.exitCode===0):f.length>0&&f.every(t=>t.exitCode===0)}return s.every(v=>v.exitCode===0)},"evaluateSuccess"),E=a((s,e)=>{try{process.platform==="win32"?S("taskkill",["/F","/T","/PID",String(s)],{stdio:"ignore"}):process.kill(-s,e)}catch{}},"killTree"),G=a((s,e,l,m,v)=>{const C=process.hrtime(),g=e.shell!==!1,f=e.stdin??"null",t=f==="inherit"?"inherit":f==="pipe"?"pipe":"ignore";let o;if(g){let i,c,p=!1;l?(i=l,c=["-c",e.command]):process.platform==="win32"?(i="cmd.exe",c=["/s","/c",`"${e.command}"`],p=!0):(i="/bin/sh",c=["-c",e.command]),o=S(i,c,{cwd:e.cwd,detached:process.platform!=="win32",env:{...process.env,...e.env,FORCE_COLOR:process.env.FORCE_COLOR??"1"},stdio:[t,"pipe","pipe"],windowsVerbatimArguments:p})}else{const i=e.command.split(/\s+/),c=i[0],p=i.slice(1);o=S(c,p,{cwd:e.cwd,detached:process.platform!=="win32",env:{...process.env,...e.env,FORCE_COLOR:process.env.FORCE_COLOR??"1"},stdio:[t,"pipe","pipe"]})}m({index:s,kill:o.pid?i=>{E(o.pid,i??"SIGTERM")}:void 0,kind:"started",pid:o.pid,write:o.stdin?i=>o.stdin.write(i):void 0});let d="",n;const k=a(()=>{d&&(m({index:s,kind:"stdout",text:d}),d="")},"flushStdoutBuffer");o.stdout?.on("data",i=>{n&&(clearTimeout(n),n=void 0),d+=i.toString();const c=d.split(`
|
|
2
|
-
`);d=c.pop()??"";for(const p of c)m({index:s,kind:"stdout",text:p});d&&(n=setTimeout(k,100))}),o.stdout?.on("end",()=>{n&&(clearTimeout(n),n=void 0),k()});let x="",h;const O=a(()=>{x&&(m({index:s,kind:"stderr",text:x}),x="")},"flushStderrBuffer");return o.stderr?.on("data",i=>{h&&(clearTimeout(h),h=void 0),x+=i.toString();const c=x.split(`
|
|
3
|
-
`);x=c.pop()??"";for(const p of c)m({index:s,kind:"stderr",text:p});x&&(h=setTimeout(O,100))}),o.stderr?.on("end",()=>{h&&(clearTimeout(h),h=void 0),O()}),o.on("error",i=>{m({index:s,kind:"error",message:i.message})}),o.on("close",(i,c)=>{n&&(clearTimeout(n),n=void 0),h&&(clearTimeout(h),h=void 0),k(),O();const p=process.hrtime(C),y=p[0]*1e3+p[1]/1e6,r=i??(c?1:-1),u={command:e.command,durationMs:y,exitCode:r,index:s,killed:c!==null,name:e.name};m({commandName:e.name,durationMs:y,exitCode:r,index:s,killed:c!==null,kind:"close"}),v(u)}),{child:o,index:s,startTime:C}},"spawnCommand"),N=a((s,e,l,m,v)=>{const C=process.hrtime();let g,f;l?(g=l,f=["-c",e.command]):process.platform==="win32"?(g="cmd.exe",f=["/s","/c",e.command]):(g="/bin/sh",f=["-c",e.command]);const t=L(g,f,{cols:e.ptySize?.cols??80,cwd:e.cwd??process.cwd(),env:Object.fromEntries(Object.entries({...process.env,...e.env,FORCE_COLOR:process.env.FORCE_COLOR??"1",TERM:"xterm-256color"}).filter(o=>typeof o[1]=="string")),name:"xterm-256color",rows:e.ptySize?.rows??24});return m({index:s,kill:a(o=>{t.kill(o)},"kill"),kind:"started",pid:t.pid,resize:a((o,d)=>{t.resize(o,d)},"resize"),write:a(o=>{t.write(o)},"write")}),t.onData(o=>{m({index:s,kind:"stdout",text:o})}),t.onExit(({exitCode:o,signal:d})=>{const n=process.hrtime(C),k=n[0]*1e3+n[1]/1e6,x=o??(d?1:-1),h={command:e.command,durationMs:k,exitCode:x,index:s,killed:d!==void 0&&d!==0,name:e.name};m({commandName:e.name,durationMs:k,exitCode:x,index:s,killed:d!==void 0&&d!==0,kind:"close"}),v(h)}),{index:s,pty:t,startTime:C}},"spawnCommandPty"),A=a((s,e)=>new Promise(l=>{if(s.length===0){l({closeEvents:[],success:!0});return}const m=e.maxProcesses&&e.maxProcesses>0?e.maxProcesses:s.length,v=e.killSignal??"SIGTERM",C=e.killOthers??[],g=e.successCondition??"all",f=e.onEvent??(()=>{}),t=[],o=[],d=s.map((r,u)=>u);let n=!1,k=!1;const x=a(()=>{for(const r of t)r.pty?r.pty.kill(v):r.child?.pid&&E(r.child.pid,v)},"killAll"),h=a(r=>{for(const u of C)if(u==="failure"&&r.exitCode!==0||u==="success"&&r.exitCode===0)return!0;return!1},"shouldKillOthers"),O=a((r,u)=>{const R=t.findIndex(w=>w.index===r);if(R!==-1&&t.splice(R,1),n&&(u.killed=!0,k&&(u.exitCode=0)),o.push(u),!n&&h(u)&&(n=!0,x()),n||i(),t.length===0&&d.length===0){const w=j(o,g);l({closeEvents:o,success:w})}},"handleClose"),i=a(()=>{for(;t.length<m&&d.length>0;){const r=d.shift(),u=s[r],R=u.stdin==="pty"?N(r,u,e.shellPath,f,w=>{O(r,w)}):G(r,u,e.shellPath,f,w=>{O(r,w)});t.push(R)}},"maybeSpawnMore"),c=a(()=>{n||(n=!0,k=!0,x())},"handleSigint"),p=a(()=>{n||(n=!0,x())},"handleNonInteractiveAbort");process.on("SIGINT",c),process.on("SIGTERM",p),process.on("exit",p);const y=l;l=a((r=>{process.removeListener("SIGINT",c),process.removeListener("SIGTERM",p),process.removeListener("exit",p),y(r)}),"resolve"),i()}),"runConcurrentFallback");export{A as runConcurrentFallback};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var w=Object.defineProperty;var m=(t,e)=>w(t,"name",{value:e,configurable:!0});import{createRequire as k}from"node:module";import{runConcurrentFallback as S}from"./runConcurrentFallback-Dpqxuyv-.js";import{detectScriptShell as x}from"./detectScriptShell-CaTDk5cW.js";import{logTimings as C}from"./formatTimingTable-CP3rsDwf.js";import{withRestart as I}from"./withRestart-DKtEGsQA.js";import{runTeardown as P}from"./runTeardown-DBBpBAyb.js";import{loadNativeBindings as R}from"./isNativeAvailable-BOavFPX1.js";const T=k(import.meta.url),l=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,v=m(t=>{if(typeof l<"u"&&l.versions&&l.versions.node){const[e,s]=l.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return l.getBuiltinModule(t)}return T(t)},"__cjs_getBuiltinModule"),{spawn:_}=v("node:child_process");var b=Object.defineProperty,n=m((t,e)=>b(t,"name",{value:e,configurable:!0}),"t");const c=new Set;let f=!1;const M=n((t,e)=>{try{process.platform==="win32"?_("taskkill",["/F","/T","/PID",String(t)],{stdio:"ignore"}):process.kill(-t,e)}catch{}},"killTrackedTree"),u=n(t=>{for(const e of c)M(e,t)},"killAllTracked"),j=n(()=>{f||(f=!0,process.setMaxListeners(process.getMaxListeners()+3),process.on("SIGINT",()=>{u("SIGINT")}),process.on("SIGTERM",()=>{u("SIGTERM")}),process.on("exit",()=>{u("SIGTERM")}))},"installSignalHandlersOnce"),E=n(t=>t.map(e=>typeof e=="string"?{command:e}:e),"normalizeCommands"),g=n(async(t,e)=>{const s=e.shellPath??x(),o=R(),d=t.some(i=>i.stdin==="pipe"||i.stdin==="pty")||!!e.onEvent;if(o&&!d){const i={killOthers:e.killOthers,killSignal:e.killSignal,killTimeout:e.killTimeout,maxProcesses:e.maxProcesses,shellPath:s,successCondition:e.successCondition},h=t.map(r=>({command:r.command,cwd:r.cwd,env:r.env,name:r.name,shell:r.shell,stdin:r.stdin}));j();const a=new Map,y=n(r=>{if(r!=null){if(r.kind==="started"&&typeof r.pid=="number"){c.add(r.pid),a.set(r.index,r.pid);return}if(r.kind==="close"||r.kind==="error"){const p=a.get(r.index);p!==void 0&&(c.delete(p),a.delete(r.index))}}},"onLifecycle");try{return await o.runConcurrentBatch(h,i,y)}finally{for(const r of a.values())c.delete(r)}}return S(t,{...e,shellPath:s})},"coreRun"),A=n(async(t,e={})=>{const s=E(t);if(s.length===0)return{closeEvents:[],success:!0};let o;return e.restart&&e.restart.tries!==0?o=await I((d,i)=>g(d,i),s,e,{delay:e.restart.delay??0,onRetry:e.restart.onRetry,tries:e.restart.tries}):o=await g(s,e),e.timings&&C(o.closeEvents),e.teardown&&e.teardown.length>0&&await P({commands:e.teardown,cwd:e.teardownCwd}),o},"runConcurrently");export{A as runConcurrently};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var u=Object.defineProperty;var i=(e,o)=>u(e,"name",{value:o,configurable:!0});import{createRequire as p}from"node:module";const m=p(import.meta.url),r=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,l=i(e=>{if(typeof r<"u"&&r.versions&&r.versions.node){const[o,s]=r.versions.node.split(".").map(Number);if(o>22||o===22&&s>=3||o===20&&s>=16)return r.getBuiltinModule(e)}return m(e)},"__cjs_getBuiltinModule"),{spawn:f}=l("node:child_process");var w=Object.defineProperty,a=i((e,o)=>w(e,"name",{value:o,configurable:!0}),"c");const h=a(async e=>{const{commands:o,cwd:s}=e,n=[];for(const c of o){const t=await _(c,s);n.push(t)}return n},"runTeardown"),_=a((e,o)=>new Promise(s=>{const n=process.platform==="win32"?"cmd.exe":"/bin/sh",c=process.platform==="win32"?["/s","/c",`"${e}"`]:["-c",e],t=f(n,c,{cwd:o,stdio:"inherit",windowsVerbatimArguments:process.platform==="win32"});t.on("close",d=>{s(d??1)}),t.on("error",()=>{s(1)})}),"runTeardownCommand");export{h as runTeardown};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=Object.defineProperty;var r=(e,l)=>t(e,"name",{value:l,configurable:!0});var a=Object.defineProperty,o=r((e,l)=>a(e,"name",{value:l,configurable:!0}),"t");const s=o(e=>`'${e.replaceAll("'",String.raw`'\''`)}'`,"shellQuote");export{s};
|