@visulima/task-runner 1.0.0-alpha.13 → 1.0.0-alpha.14

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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## @visulima/task-runner [1.0.0-alpha.14](https://github.com/visulima/visulima/compare/@visulima/task-runner@1.0.0-alpha.13...@visulima/task-runner@1.0.0-alpha.14) (2026-05-14)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **release:** patch NAPI version-check string and ship fresh loader on release ([0676e33](https://github.com/visulima/visulima/commit/0676e336f453c9ae38c9f3a5fbbb675f9bff7ea0))
6
+
7
+ ### Miscellaneous Chores
8
+
9
+ * **tooling:** apply prettier and eslint formatting sweep ([c2c641d](https://github.com/visulima/visulima/commit/c2c641d40242e99030cb990fa01039db5e267667))
10
+
11
+ ### Tests
12
+
13
+ * fixed count ([6fdd45e](https://github.com/visulima/visulima/commit/6fdd45e3855b619d09d3f33ec7c4277e59ef84da))
14
+
1
15
  ## @visulima/task-runner [1.0.0-alpha.13](https://github.com/visulima/visulima/compare/@visulima/task-runner@1.0.0-alpha.12...@visulima/task-runner@1.0.0-alpha.13) (2026-05-11)
2
16
 
3
17
  ### Features
package/dist/index.d.ts CHANGED
@@ -473,7 +473,7 @@ type TaskPriority = "high" | "low" | "normal";
473
473
  * number of in-flight tasks across every target that opts into the
474
474
  * group via {@link TargetConfiguration.concurrencyGroup}. Independent
475
475
  * of `--parallel`: the global cap still bounds total in-flight tasks,
476
- * and group caps further bound the named subset. Values `<= 0` are
476
+ * and group caps further bound the named subset. Values `&lt;= 0` are
477
477
  * ignored.
478
478
  */
479
479
  type ConcurrencyGroups = Record<string, number>;
@@ -518,6 +518,13 @@ interface Task {
518
518
  * runner uses faithful defaults (mtime + mode preserved).
519
519
  */
520
520
  cacheRestore?: CacheRestoreOptions;
521
+ /**
522
+ * Workspace-level concurrency group. Carried over from
523
+ * {@link TargetConfiguration.concurrencyGroup}; the scheduler maps
524
+ * the name to a numeric cap via
525
+ * {@link TaskRunnerOptions.concurrencyGroups}.
526
+ */
527
+ concurrencyGroup?: string;
521
528
  /** Hash of the task inputs for caching */
522
529
  hash?: string;
523
530
  /** Detailed hash information */
@@ -530,13 +537,6 @@ interface Task {
530
537
  */
531
538
  maxConcurrent?: number;
532
539
  /**
533
- * Workspace-level concurrency group. Carried over from
534
- * {@link TargetConfiguration.concurrencyGroup}; the scheduler maps
535
- * the name to a numeric cap via
536
- * {@link TaskRunnerOptions.concurrencyGroups}.
537
- */
538
- concurrencyGroup?: string;
539
- /**
540
540
  * Output patterns this task produces. Each entry is either a
541
541
  * literal path, a glob (`"dist/**"`), a negative glob
542
542
  * (`"!dist/cache/**"`), or `{ auto: true }` to pick up whatever
@@ -735,8 +735,6 @@ interface TargetConfiguration {
735
735
  cacheRestore?: CacheRestoreOptions;
736
736
  /** The command to run (alternative to executor) */
737
737
  command?: string;
738
- /** Named configurations (e.g., "production", "development") */
739
- configurations?: Record<string, Record<string, unknown>>;
740
738
  /**
741
739
  * Workspace-level concurrency group this target opts into. The
742
740
  * scheduler caps the *combined* in-flight count of every task whose
@@ -752,14 +750,14 @@ interface TargetConfiguration {
752
750
  * finalisation phase outside the scheduler.
753
751
  */
754
752
  concurrencyGroup?: string;
753
+ /** Named configurations (e.g., "production", "development") */
754
+ configurations?: Record<string, Record<string, unknown>>;
755
755
  /** Other targets this target depends on */
756
756
  dependsOn?: (string | TargetDependencyConfig)[];
757
757
  /** The executor/command to run */
758
758
  executor?: string;
759
759
  /** Input patterns for cache invalidation */
760
760
  inputs?: (string | InputDefinition)[];
761
- /** Options passed to the executor */
762
- options?: Record<string, unknown>;
763
761
  /**
764
762
  * Maximum number of in-flight instances of this target across the
765
763
  * whole graph. When set, the scheduler refuses to start an
@@ -769,7 +767,7 @@ interface TargetConfiguration {
769
767
  * and `maxConcurrent` further bounds the per-target subset.
770
768
  *
771
769
  * Use for tests/deploys that share an external resource (DB, port,
772
- * mock server). Set to `1` to serialize. Values `<= 0` are ignored.
770
+ * mock server). Set to `1` to serialize. Values `&lt;= 0` are ignored.
773
771
  *
774
772
  * If multiple projects declare different values for the same
775
773
  * target name, the runner uses the smallest declared cap. Caps
@@ -777,6 +775,8 @@ interface TargetConfiguration {
777
775
  * separate finalisation phase outside the scheduler.
778
776
  */
779
777
  maxConcurrent?: number;
778
+ /** Options passed to the executor */
779
+ options?: Record<string, unknown>;
780
780
  /** Output patterns produced by this target */
781
781
  outputs?: string[];
782
782
  /** Whether this target supports parallel execution */
@@ -1037,6 +1037,26 @@ interface TaskRunnerOptions {
1037
1037
  /** Directory for storing cache */
1038
1038
  cacheDirectory?: string;
1039
1039
  /**
1040
+ * Workspace-level concurrency group caps. Maps a group name to the
1041
+ * maximum number of in-flight tasks across every target whose
1042
+ * `concurrencyGroup` field equals the same name. Independent of
1043
+ * `parallel`: the global cap still bounds total tasks, and group
1044
+ * caps further bound the named subset.
1045
+ *
1046
+ * Common shape — one cap per shared resource:
1047
+ *
1048
+ * ```ts
1049
+ * concurrencyGroups: {
1050
+ * "db-bound": 2, // any target hitting the local Postgres
1051
+ * "deploy-lock": 1, // any deploy target
1052
+ * }
1053
+ * ```
1054
+ *
1055
+ * Targets opt in via {@link TargetConfiguration.concurrencyGroup}.
1056
+ * Values `&lt;= 0` are ignored.
1057
+ */
1058
+ concurrencyGroups?: ConcurrencyGroups;
1059
+ /**
1040
1060
  * Directory used to persist run summaries (`runs/`),
1041
1061
  * `last-summary.json`, and other run-scoped state. Defaults to
1042
1062
  * `{workspaceRoot}/.task-runner` when omitted so standalone
@@ -1102,26 +1122,6 @@ interface TaskRunnerOptions {
1102
1122
  * @default false
1103
1123
  */
1104
1124
  incrementalFileHashing?: boolean;
1105
- /**
1106
- * Workspace-level concurrency group caps. Maps a group name to the
1107
- * maximum number of in-flight tasks across every target whose
1108
- * `concurrencyGroup` field equals the same name. Independent of
1109
- * `parallel`: the global cap still bounds total tasks, and group
1110
- * caps further bound the named subset.
1111
- *
1112
- * Common shape — one cap per shared resource:
1113
- *
1114
- * ```ts
1115
- * concurrencyGroups: {
1116
- * "db-bound": 2, // any target hitting the local Postgres
1117
- * "deploy-lock": 1, // any deploy target
1118
- * }
1119
- * ```
1120
- *
1121
- * Targets opt in via {@link TargetConfiguration.concurrencyGroup}.
1122
- * Values `<= 0` are ignored.
1123
- */
1124
- concurrencyGroups?: ConcurrencyGroups;
1125
1125
  /** Maximum age of cache entries in milliseconds */
1126
1126
  maxCacheAge?: number;
1127
1127
  /** Maximum cache size (e.g., "1GB") */