@vzn/vx 0.0.133 → 0.0.134

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vzn/vx",
3
- "version": "0.0.133",
3
+ "version": "0.0.134",
4
4
  "description": "A fast, correct task runner and build cache for JavaScript monorepos.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -17,10 +17,10 @@
17
17
  "node": ">=18"
18
18
  },
19
19
  "optionalDependencies": {
20
- "@vzn/vx-linux-x64": "0.0.133",
21
- "@vzn/vx-linux-arm64": "0.0.133",
22
- "@vzn/vx-darwin-x64": "0.0.133",
23
- "@vzn/vx-darwin-arm64": "0.0.133"
20
+ "@vzn/vx-linux-x64": "0.0.134",
21
+ "@vzn/vx-linux-arm64": "0.0.134",
22
+ "@vzn/vx-darwin-x64": "0.0.134",
23
+ "@vzn/vx-darwin-arm64": "0.0.134"
24
24
  },
25
25
  "dependencies": {
26
26
  "@anthropic-ai/sandbox-runtime": "^0.0.76"
@@ -96,11 +96,25 @@ export function formatPlanText(plan: RunPlan): string {
96
96
  return lines.join('\n') + '\n'
97
97
  }
98
98
 
99
+ /** One task of `vx run --dry=json`: the wire, stated by `schemas/plan.json`. */
100
+ export interface PlanTaskJson {
101
+ id: string
102
+ project: string
103
+ task: string
104
+ hash: string
105
+ cacheStatus: CacheStatus
106
+ deps: readonly string[]
107
+ p50Ms?: number
108
+ executor?: string
109
+ download?: 'deferred'
110
+ description?: string
111
+ }
112
+
99
113
  export function formatPlanJson(plan: RunPlan): string {
100
114
  return (
101
115
  JSON.stringify(
102
116
  {
103
- tasks: plan.tasks.map((t) => ({
117
+ tasks: plan.tasks.map((t): PlanTaskJson => ({
104
118
  id: t.node.id,
105
119
  project: t.node.projectName,
106
120
  task: t.node.taskName,