@vzn/vx 0.0.641 → 0.0.642

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.
Files changed (67) hide show
  1. package/package.json +5 -12
  2. package/skills/vx/SKILL.md +4 -4
  3. package/src/cache/archive.ts +525 -104
  4. package/src/cache/cache.ts +92 -12
  5. package/src/cache/fold-memo.ts +58 -0
  6. package/src/cache/git-inputs.ts +213 -31
  7. package/src/cache/index.ts +6 -2
  8. package/src/cache/inputs.ts +169 -79
  9. package/src/cache/key-fold.ts +90 -69
  10. package/src/cache/layer.ts +2 -6
  11. package/src/cache/layered-cache.ts +68 -4
  12. package/src/cache/output-index.ts +25 -4
  13. package/src/cache/remote-lane.ts +27 -10
  14. package/src/cache/schema.ts +13 -3
  15. package/src/cache/scoped-cache.ts +3 -1
  16. package/src/cache/umask.ts +29 -0
  17. package/src/cli/docs.ts +71 -7
  18. package/src/cli/help.ts +4 -4
  19. package/src/cli/plan-format.ts +4 -1
  20. package/src/cli/run.ts +10 -3
  21. package/src/cli/select.ts +2 -0
  22. package/src/exec/runner.ts +5 -0
  23. package/src/exec/sandbox-runtime.ts +81 -1
  24. package/src/graph/priorities.ts +14 -1
  25. package/src/history/history.ts +43 -33
  26. package/src/index.ts +10 -0
  27. package/src/orchestrator/deferred-outputs.ts +3 -2
  28. package/src/orchestrator/execute-task.ts +20 -14
  29. package/src/orchestrator/hit-restore.ts +10 -2
  30. package/src/orchestrator/index.ts +1 -0
  31. package/src/orchestrator/lockfile-claim.ts +54 -8
  32. package/src/orchestrator/miss-save.ts +27 -17
  33. package/src/orchestrator/output-host.ts +9 -1
  34. package/src/orchestrator/plan.ts +4 -0
  35. package/src/orchestrator/plugin-host.ts +31 -0
  36. package/src/orchestrator/plugin.ts +29 -3
  37. package/src/orchestrator/prepare.ts +74 -5
  38. package/src/orchestrator/projects.ts +6 -1
  39. package/src/orchestrator/run.ts +37 -15
  40. package/src/orchestrator/sandbox-request.ts +1 -48
  41. package/src/orchestrator/save-lane.ts +17 -10
  42. package/src/orchestrator/signals.ts +7 -10
  43. package/src/orchestrator/stable-keys.ts +83 -25
  44. package/src/orchestrator/task-hash.ts +46 -12
  45. package/src/report/events.ts +12 -0
  46. package/src/report/framed-output.ts +2 -1
  47. package/src/report/logger.ts +53 -13
  48. package/src/report/status-line.ts +45 -4
  49. package/src/report/summary.ts +5 -2
  50. package/src/util/errors.ts +1 -1
  51. package/src/util/hidden-prompt.ts +74 -0
  52. package/src/util/index.ts +12 -2
  53. package/src/util/paths.ts +33 -14
  54. package/src/util/secrets.ts +150 -0
  55. package/src/workspace/affected.ts +63 -13
  56. package/src/workspace/config-schema.ts +37 -3
  57. package/src/workspace/project-loader.ts +1 -0
  58. package/src/workspace/workspace.ts +17 -11
  59. package/docs/caching.md +0 -2376
  60. package/docs/cli.md +0 -3285
  61. package/docs/execution.md +0 -676
  62. package/docs/features.md +0 -178
  63. package/docs/patterns.md +0 -219
  64. package/docs/schema.md +0 -2468
  65. package/docs/security.md +0 -253
  66. package/src/cli/docs-corpus.ts +0 -21
  67. package/src/cli/docs-text.d.ts +0 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vzn/vx",
3
- "version": "0.0.641",
3
+ "version": "0.0.642",
4
4
  "description": "Task orchestration you own: correct, sandboxed, extensible, with a content-addressed build cache.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -21,10 +21,10 @@
21
21
  "node": ">=18"
22
22
  },
23
23
  "optionalDependencies": {
24
- "@vzn/vx-linux-x64": "0.0.641",
25
- "@vzn/vx-linux-arm64": "0.0.641",
26
- "@vzn/vx-darwin-x64": "0.0.641",
27
- "@vzn/vx-darwin-arm64": "0.0.641"
24
+ "@vzn/vx-linux-x64": "0.0.642",
25
+ "@vzn/vx-linux-arm64": "0.0.642",
26
+ "@vzn/vx-darwin-x64": "0.0.642",
27
+ "@vzn/vx-darwin-arm64": "0.0.642"
28
28
  },
29
29
  "dependencies": {
30
30
  "@anthropic-ai/sandbox-runtime": "^0.0.76"
@@ -35,13 +35,6 @@
35
35
  "config",
36
36
  "schemas",
37
37
  "skills",
38
- "docs/cli.md",
39
- "docs/schema.md",
40
- "docs/caching.md",
41
- "docs/execution.md",
42
- "docs/patterns.md",
43
- "docs/security.md",
44
- "docs/features.md",
45
38
  "launcher.sh",
46
39
  "launcher.cjs",
47
40
  "README.md",
@@ -23,7 +23,7 @@ task failed or was skipped, or the command was refused. `vx last --format
23
23
  json` prints the run as JSON afterwards, a row per task. A refusal under
24
24
  `--format json` (or `--dry=json`) is one line on stdout,
25
25
  `{"ok":false,"error":{"code","message","docs"}}`: branch on `code`;
26
- `docs` (or `vx docs <code>` offline) says what to do.
26
+ `docs` (or `vx docs <code>`) says what to do.
27
27
  Without a TTY a missing task name never prompts: vx exits 1 and lists the
28
28
  tasks it found.
29
29
 
@@ -95,9 +95,9 @@ vx info --format json # vx and Bun versions, projects, config errors, plugins,
95
95
  the config, do not force. A task with no `inputs` has no key, so every
96
96
  cached task behind it misses: give it `inputs`.
97
97
  - Every JSON shape is a JSON Schema in `node_modules/@vzn/vx/schemas/`.
98
- - Offline reference: `vx docs <words> --format json` searches the CLI, config
99
- and cache pages that ship with vx; the sections holding every word print
100
- whole.
98
+ - Reference: `vx docs <words> --format json` searches the reference pages at
99
+ this vx's release tag on GitHub (online); the sections holding every word
100
+ print whole.
101
101
  - Docs as markdown: https://vznjs.github.io/vx/llms.txt (its index).
102
102
  When that host is unreachable, the same pages are
103
103
  `https://raw.githubusercontent.com/vznjs/vx/main/packages/vx-docs/src/content/docs/<page>.md`: