{
  "slug": "k6-deps-analyzes-script-and-archive-dependencies-175f158dbc81",
  "title": "k6 deps analyzes script and archive dependencies",
  "tools": [
    "k6"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-02-10T09:12:21.000Z",
  "announced_at": "2026-02-10T09:12:21.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When you need to identify script or archive dependencies for an auto-resolved build, run `k6 deps <script-or-archive>`; add `--json` for programmatic output. The command reports dependencies found through imports and “use” directives, but does not follow dynamic `require()` calls.",
    "examples": [
      "k6 deps <script.js>",
      "k6 deps --json <script.js>",
      "k6 deps <archive.tar>"
    ],
    "gotchas": [
      "Version: v1.6.0",
      "<script> (required): Script or archive to analyze.",
      "--json: Output dependency information in JSON; default output is human-readable.",
      "Dependency analysis accounts for imports, not dynamic `require()` calls."
    ]
  },
  "why_it_matters": "Inspect a script or archive to identify extension dependencies needed to build a binary with auto extension resolution.",
  "sources": [
    "https://github.com/grafana/k6/releases/tag/v1.6.0",
    "https://grafana.com/docs/k6/latest/release-notes/v1.6.0/",
    "https://grafana.com/docs/k6/latest/using-k6/k6-deps-command/"
  ],
  "rank": 0.97029,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-4d59ff63232066fe-1:gate",
    "evidence_hash": "214d637601ab12859a942e0dfb0964627863702fc979acbb4c496833c029e4b8"
  },
  "review": {
    "draft_hash": "75b7ca1970d239e85c30afb536596dd2e39cebe35f5eda53c033f3c57bd79ad6",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.77 (>= 0.6 needed)."
  }
}
