svelte-vitals 0.50.0 → 0.51.0

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 (40) hide show
  1. package/README.md +3 -1
  2. package/dist/action-pin.generated-C2XJJ3NW.js +62 -0
  3. package/dist/analyze-BaQfhf-Q.js +946 -0
  4. package/dist/bin.js +72 -56
  5. package/dist/ci-CG1mwBD4.js +286 -0
  6. package/dist/complete-1RY2W-3I.js +204 -0
  7. package/dist/docs-53bz9lhZ.js +253 -0
  8. package/dist/explain-DdgC6CdN.js +161 -0
  9. package/dist/gunshi-registry.js +4 -23
  10. package/dist/index.d.ts +254 -235
  11. package/dist/index.js +2 -32
  12. package/dist/install/improve-skill-content.js +84 -76
  13. package/dist/install/setup-skill-content.js +354 -0
  14. package/dist/install/skill-content.js +105 -15
  15. package/dist/install-ckW1HTAL.js +885 -0
  16. package/dist/ja-CULhsFnk.js +177 -0
  17. package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  18. package/dist/src-BSphfbnn.js +3146 -0
  19. package/package.json +4 -5
  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-PNHWRKRD.js +0 -2047
  31. package/dist/chunk-QKULNWQ5.js +0 -263
  32. package/dist/chunk-RSSMIHIM.js +0 -82
  33. package/dist/chunk-SLUMRYUD.js +0 -9
  34. package/dist/chunk-WGFXFKBB.js +0 -300
  35. package/dist/ci-PIAMUGAP.js +0 -13
  36. package/dist/complete-5VANQTDN.js +0 -148
  37. package/dist/docs-AGHALPIU.js +0 -15
  38. package/dist/explain-PRCEATL4.js +0 -11
  39. package/dist/install-EVGFAILR.js +0 -16
  40. package/dist/ja-YYZQ62AJ.js +0 -16
package/README.md CHANGED
@@ -75,12 +75,14 @@ Useful as a CI gate.
75
75
 
76
76
  ### `svelte-vitals install`
77
77
 
78
- An interactive wizard that wires up the [Vite plugin](https://www.npmjs.com/package/@svelte-vitals/vite)'s live dashboard, Agent Skills (`/svelte-vitals`, `/improve-svelte`) for Claude Code, Codex, and Cursor, a `svelte-vitals.config` file, and a GitHub Actions CI workflow — grouped by category in the picker so it's clear what each target is for:
78
+ An interactive wizard that wires up the [Vite plugin](https://www.npmjs.com/package/@svelte-vitals/vite)'s live dashboard, a Cursor rules file, a `svelte-vitals.config` file, and a GitHub Actions CI workflow — grouped by category in the picker so it's clear what each target is for:
79
79
 
80
80
  ```bash
81
81
  npx svelte-vitals@latest install
82
82
  ```
83
83
 
84
+ The `/setup-svelte-vitals`, `/improve-svelte` and `/svelte-vitals` Agent Skills are not installer targets — install them with `npx skills add oekazuma/svelte-vitals`.
85
+
84
86
  ### `svelte-vitals docs` / `svelte-vitals explain`
85
87
 
86
88
  Both read out of the CLI itself, so the answer always matches the installed version and needs no network — the thing an AI agent otherwise guesses at or fetches from a page describing a different release.
@@ -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 };