svelte-vitals 0.49.0 → 0.50.1

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 (38) hide show
  1. package/dist/action-pin.generated-C2XJJ3NW.js +62 -0
  2. package/dist/analyze-BadfyhkR.js +939 -0
  3. package/dist/bin.js +72 -56
  4. package/dist/ci-B1DwPsMA.js +286 -0
  5. package/dist/complete-7BSn3kKo.js +204 -0
  6. package/dist/docs-Bv3UVgRs.js +253 -0
  7. package/dist/explain-BDouu_6J.js +161 -0
  8. package/dist/gunshi-registry.js +4 -23
  9. package/dist/index.d.ts +241 -230
  10. package/dist/index.js +2 -32
  11. package/dist/install/improve-skill-content.js +57 -60
  12. package/dist/install/skill-content.js +98 -15
  13. package/dist/install-CicTVGvj.js +885 -0
  14. package/dist/ja-QgvXNXMW.js +176 -0
  15. package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  16. package/dist/src-Dm-kEe8-.js +3126 -0
  17. package/package.json +3 -4
  18. package/dist/chunk-4FOGEXGH.js +0 -263
  19. package/dist/chunk-5YVVJMZM.js +0 -1981
  20. package/dist/chunk-72ZLERW3.js +0 -240
  21. package/dist/chunk-AI24FJ5Q.js +0 -19
  22. package/dist/chunk-CTMKTFST.js +0 -50
  23. package/dist/chunk-DZVXCUHG.js +0 -270
  24. package/dist/chunk-H2AJITPP.js +0 -756
  25. package/dist/chunk-K363W33X.js +0 -158
  26. package/dist/chunk-MLIODPHZ.js +0 -91
  27. package/dist/chunk-NAY25BVJ.js +0 -150
  28. package/dist/chunk-NMVBVKLX.js +0 -122
  29. package/dist/chunk-P6RC7VOY.js +0 -244
  30. package/dist/chunk-RSSMIHIM.js +0 -82
  31. package/dist/chunk-SLUMRYUD.js +0 -9
  32. package/dist/chunk-WGFXFKBB.js +0 -300
  33. package/dist/ci-PIAMUGAP.js +0 -13
  34. package/dist/complete-ZQZGCJ5W.js +0 -148
  35. package/dist/docs-AGHALPIU.js +0 -15
  36. package/dist/explain-PRCEATL4.js +0 -11
  37. package/dist/install-EVGFAILR.js +0 -16
  38. package/dist/ja-YYZQ62AJ.js +0 -16
@@ -0,0 +1,62 @@
1
+ //#region src/ci/workflow.ts
2
+ const WORKFLOW_PATH = ".github/workflows/svelte-vitals.yml";
3
+ const CHECKOUT_SHA = "3d3c42e5aac5ba805825da76410c181273ba90b1";
4
+ const CHECKOUT_VERSION = "v7.0.1";
5
+ /**
6
+ * Decide what to do with the generated workflow file, mirroring the `install` wizard's
7
+ * WriteStatus convention: no existing file → 'created'; an existing file with no
8
+ * --force → 'exists' (left untouched, idempotent re-runs); --force → 'updated'.
9
+ * Content generation is the caller's job (`gunshi/ci.ts`) — this function only decides.
10
+ */
11
+ function planWorkflowWrite(existing, force) {
12
+ if (existing === void 0) return { status: "created" };
13
+ if (!force) return { status: "exists" };
14
+ return { status: "updated" };
15
+ }
16
+ /**
17
+ * Build the short GitHub Actions workflow that calls the `svelte-vitals-action` GitHub
18
+ * Action (issue #154 — replaces the old ~60-line inline template; see
19
+ * plans/020-reusable-github-action.md). The action itself owns annotations, the job
20
+ * summary, the sticky PR comment, and the gate — `ci install` only scaffolds the call,
21
+ * pinned to a commit SHA with a same-line version comment. `actions/checkout` is pinned
22
+ * the same way, matching this repo's own `actions/checkout@<sha> # vX.Y.Z` convention
23
+ * (.github/workflows/ci.yml etc.) rather than a floating tag. `svelte-vitals-action` lives
24
+ * in its own dedicated repository (not a subdirectory of this monorepo), so its tags are
25
+ * plain `vX.Y.Z` — Renovate's github-actions manager parses that natively, no special
26
+ * comment format needed.
27
+ */
28
+ function buildWorkflowYaml(opts) {
29
+ const { actionSha, actionVersion } = opts;
30
+ return [
31
+ "# Generated by svelte-vitals (`ci install` or `install --client ci-workflow`).",
32
+ "# Re-run with --force to regenerate.",
33
+ "name: svelte-vitals",
34
+ "",
35
+ "on:",
36
+ " pull_request:",
37
+ "",
38
+ "permissions:",
39
+ " contents: read",
40
+ " pull-requests: write",
41
+ "",
42
+ "jobs:",
43
+ " svelte-vitals:",
44
+ " runs-on: ubuntu-latest",
45
+ " steps:",
46
+ ` - uses: actions/checkout@${CHECKOUT_SHA} # ${CHECKOUT_VERSION}`,
47
+ " with:",
48
+ " fetch-depth: 0",
49
+ " persist-credentials: false",
50
+ ` - uses: oekazuma/svelte-vitals-action@${actionSha} # v${actionVersion}`,
51
+ " with:",
52
+ " diff: origin/${{ github.base_ref }}",
53
+ " baseline: origin/${{ github.base_ref }}",
54
+ ""
55
+ ].join("\n");
56
+ }
57
+ //#endregion
58
+ //#region src/ci/action-pin.generated.ts
59
+ const ACTION_SHA = "67ec0af79398845d01e4371d4953d08f6f6a244f";
60
+ const ACTION_VERSION = "0.4.0";
61
+ //#endregion
62
+ export { planWorkflowWrite as a, buildWorkflowYaml as i, ACTION_VERSION as n, WORKFLOW_PATH as r, ACTION_SHA as t };