@visulima/vis 1.0.0-alpha.9 → 1.0.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.
- package/CHANGELOG.md +1844 -3
- package/LICENSE.md +13515 -10
- package/README.md +215 -39
- package/bin/resolve-binary.mjs +85 -0
- package/bin/vis.mjs +76 -0
- package/dashboard/dist/index.html +152 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +1 -2
- package/dist/binx.js +3 -0
- package/dist/config/index.d.ts +3276 -0
- package/dist/config/index.js +1 -0
- package/dist/generate/index.d.ts +1 -1
- package/dist/generate/index.js +1 -1
- package/dist/packem_chunks/CONFIG_FILES.js +8 -0
- package/dist/packem_chunks/DEFAULT_CLEAN_KEEP.js +1 -0
- package/dist/packem_chunks/agent-instructions.js +11 -0
- package/dist/packem_chunks/bloom-status.js +2 -0
- package/dist/packem_chunks/bloom-sync.js +2 -0
- package/dist/packem_chunks/cache-attestation.js +1 -0
- package/dist/packem_chunks/catalog-detector.js +1 -0
- package/dist/packem_chunks/catalog.js +114 -0
- package/dist/packem_chunks/cli-exec.js +1 -0
- package/dist/packem_chunks/cli-main.js +268 -0
- package/dist/packem_chunks/defineReleasePlugin.js +3 -0
- package/dist/packem_chunks/detect.js +3 -0
- package/dist/packem_chunks/detect2.js +8 -0
- package/dist/packem_chunks/devtools.js +4 -0
- package/dist/packem_chunks/discord.js +4 -0
- package/dist/packem_chunks/dispatch.js +4 -0
- package/dist/packem_chunks/doctor-probe.js +2 -0
- package/dist/packem_chunks/dynamic-import.js +1 -0
- package/dist/packem_chunks/extra-files.js +3 -0
- package/dist/packem_chunks/fix.js +11 -0
- package/dist/packem_chunks/git.js +3 -0
- package/dist/packem_chunks/group-tags.js +1 -0
- package/dist/packem_chunks/handler.js +1 -1
- package/dist/packem_chunks/handler10.js +5 -1
- package/dist/packem_chunks/handler11.js +1 -1
- package/dist/packem_chunks/handler12.js +26 -152
- package/dist/packem_chunks/handler13.js +5 -1
- package/dist/packem_chunks/handler14.js +1 -3
- package/dist/packem_chunks/handler15.js +1 -1
- package/dist/packem_chunks/handler16.js +1 -2
- package/dist/packem_chunks/handler17.js +1 -7
- package/dist/packem_chunks/handler18.js +1 -1
- package/dist/packem_chunks/handler19.js +5 -19
- package/dist/packem_chunks/handler2.js +1 -1
- package/dist/packem_chunks/handler20.js +2 -428
- package/dist/packem_chunks/handler21.js +2 -22
- package/dist/packem_chunks/handler22.js +14 -3
- package/dist/packem_chunks/handler23.js +1 -5
- package/dist/packem_chunks/handler24.js +1 -1
- package/dist/packem_chunks/handler25.js +1 -20
- package/dist/packem_chunks/handler26.js +5 -1
- package/dist/packem_chunks/handler27.js +1 -1
- package/dist/packem_chunks/handler28.js +3 -1
- package/dist/packem_chunks/handler29.js +1 -2
- package/dist/packem_chunks/handler3.js +4 -2
- package/dist/packem_chunks/handler30.js +1 -22
- package/dist/packem_chunks/handler31.js +2 -1
- package/dist/packem_chunks/handler32.js +2 -1
- package/dist/packem_chunks/handler33.js +2 -37
- package/dist/packem_chunks/handler34.js +3 -3
- package/dist/packem_chunks/handler35.js +6 -23
- package/dist/packem_chunks/handler36.js +1 -5
- package/dist/packem_chunks/handler37.js +36 -21
- package/dist/packem_chunks/handler38.js +8 -1
- package/dist/packem_chunks/handler39.js +9 -2
- package/dist/packem_chunks/handler4.js +4 -5
- package/dist/packem_chunks/handler40.js +75 -1
- package/dist/packem_chunks/handler41.js +5 -5
- package/dist/packem_chunks/handler42.js +4 -1
- package/dist/packem_chunks/handler43.js +3 -24
- package/dist/packem_chunks/handler44.js +2 -3
- package/dist/packem_chunks/handler45.js +1 -1
- package/dist/packem_chunks/handler46.js +1 -0
- package/dist/packem_chunks/handler47.js +1 -0
- package/dist/packem_chunks/handler48.js +3 -0
- package/dist/packem_chunks/handler49.js +1 -0
- package/dist/packem_chunks/handler5.js +6 -4
- package/dist/packem_chunks/handler50.js +7 -0
- package/dist/packem_chunks/handler51.js +33 -0
- package/dist/packem_chunks/handler52.js +3 -0
- package/dist/packem_chunks/handler53.js +8 -0
- package/dist/packem_chunks/handler54.js +4 -0
- package/dist/packem_chunks/handler55.js +1 -0
- package/dist/packem_chunks/handler56.js +12 -0
- package/dist/packem_chunks/handler57.js +11 -0
- package/dist/packem_chunks/handler58.js +5 -0
- package/dist/packem_chunks/handler59.js +11 -0
- package/dist/packem_chunks/handler6.js +8 -2
- package/dist/packem_chunks/handler60.js +3 -0
- package/dist/packem_chunks/handler61.js +22 -0
- package/dist/packem_chunks/handler62.js +61 -0
- package/dist/packem_chunks/handler63.js +3 -0
- package/dist/packem_chunks/handler64.js +6 -0
- package/dist/packem_chunks/handler65.js +9 -0
- package/dist/packem_chunks/handler66.js +2 -0
- package/dist/packem_chunks/handler67.js +24 -0
- package/dist/packem_chunks/handler68.js +25 -0
- package/dist/packem_chunks/handler69.js +153 -0
- package/dist/packem_chunks/handler7.js +1 -24
- package/dist/packem_chunks/handler70.js +10 -0
- package/dist/packem_chunks/handler71.js +23 -0
- package/dist/packem_chunks/handler72.js +322 -0
- package/dist/packem_chunks/handler73.js +708 -0
- package/dist/packem_chunks/handler74.js +48 -0
- package/dist/packem_chunks/handler75.js +27 -0
- package/dist/packem_chunks/handler76.js +3 -0
- package/dist/packem_chunks/handler77.js +190 -0
- package/dist/packem_chunks/handler78.js +38 -0
- package/dist/packem_chunks/handler8.js +1 -6
- package/dist/packem_chunks/handler9.js +1 -8
- package/dist/packem_chunks/heal-accept.js +10 -0
- package/dist/packem_chunks/heal.js +14 -0
- package/dist/packem_chunks/help-command.js +31 -0
- package/dist/packem_chunks/index.js +1 -7
- package/dist/packem_chunks/index2.js +802 -0
- package/dist/packem_chunks/index3.js +7 -0
- package/dist/packem_chunks/index4.js +135 -0
- package/dist/packem_chunks/index5.js +74 -0
- package/dist/packem_chunks/interface.js +2 -0
- package/dist/packem_chunks/keys-refresh.js +4 -0
- package/dist/packem_chunks/lean.js +4 -0
- package/dist/packem_chunks/list.js +3 -0
- package/dist/packem_chunks/loader.js +4 -1
- package/dist/packem_chunks/loader2.js +1 -0
- package/dist/packem_chunks/orchestrator.js +42 -0
- package/dist/packem_chunks/pre-mode.js +2 -0
- package/dist/packem_chunks/print-config.js +2 -0
- package/dist/packem_chunks/prompts.js +7 -0
- package/dist/packem_chunks/prune.js +3 -0
- package/dist/packem_chunks/publish-guards.js +1 -0
- package/dist/packem_chunks/registry.js +48 -0
- package/dist/packem_chunks/resolveFormatter.js +9 -0
- package/dist/packem_chunks/run.js +1 -0
- package/dist/packem_chunks/security.js +1 -0
- package/dist/packem_chunks/shell-runner.js +1 -0
- package/dist/packem_chunks/slack.js +2 -0
- package/dist/packem_chunks/snapshot.js +2 -0
- package/dist/packem_chunks/stage-publisher.js +1 -0
- package/dist/packem_chunks/staged-registry.js +2 -0
- package/dist/packem_chunks/state.js +3 -0
- package/dist/packem_chunks/status.js +2 -0
- package/dist/packem_chunks/success-walk.js +8 -0
- package/dist/packem_chunks/sync.js +2 -0
- package/dist/packem_chunks/sync2.js +2 -0
- package/dist/packem_chunks/tar.js +3 -0
- package/dist/packem_chunks/tripwire.js +2 -0
- package/dist/packem_chunks/ts-loader.js +22 -0
- package/dist/packem_chunks/verify-lockfile.js +2 -0
- package/dist/packem_chunks/version-resolver.js +2 -0
- package/dist/packem_chunks/webhook.js +1 -0
- package/dist/packem_chunks/workflow-templates.js +167 -0
- package/dist/packem_chunks/workspace.js +2 -0
- package/dist/packem_shared/AfterAllProjectsVersioned-CAKI2nWf.js +1 -0
- package/dist/packem_shared/MultiSpinner-B9U0-aE3-B-gIXhFk.js +3 -0
- package/dist/packem_shared/ReleaseClient-BY4OZNCK.js +1 -0
- package/dist/packem_shared/Table-CcVkyULl-DLWu6XHL.js +34 -0
- package/dist/packem_shared/VisReleaseError-DMGRBTNO.js +1 -0
- package/dist/packem_shared/_commonjsHelpers-B5Y90VFO.js +1 -0
- package/dist/packem_shared/advisories-B76fBVL-.js +1 -0
- package/dist/packem_shared/affected-shas-CCxG4tvm.js +1 -0
- package/dist/packem_shared/ai-analysis-BpVdn20h.js +68 -0
- package/dist/packem_shared/ai-fix-CeGzAT9m.js +43 -0
- package/dist/packem_shared/anolilab-text-CAM_E6uK.js +13 -0
- package/dist/packem_shared/api.d-BPftyU9r.d.ts +27 -0
- package/dist/packem_shared/augment-DaSS2Lgs.js +4 -0
- package/dist/packem_shared/bin-BlGVEhl8.js +1 -0
- package/dist/packem_shared/build-scripts-q__dKE2y.js +1 -0
- package/dist/packem_shared/command-runtime-3FTGuUsK.js +1 -0
- package/dist/packem_shared/compile-cache-B_Vf_WxT.js +3 -0
- package/dist/packem_shared/createAdapter-bU4DIP3F.js +1 -0
- package/dist/packem_shared/createVersionActions-BK43SNDH.js +1 -0
- package/dist/packem_shared/cyclonedx-CmrYQ0vx.js +4 -0
- package/dist/packem_shared/defineFormatter-D5dCp6Kv.js +1 -0
- package/dist/packem_shared/definePlugin-DoUcoYSy.js +1 -0
- package/dist/packem_shared/dependency-scan-DpOFiZuI.js +1 -0
- package/dist/packem_shared/docker-BYqiD711.js +59 -0
- package/dist/packem_shared/env-DdQRnEIy.js +27 -0
- package/dist/packem_shared/failure-log-CKMhqLWr.js +2 -0
- package/dist/packem_shared/giget-DVTFJlbR.js +2 -0
- package/dist/packem_shared/glob-fqg4KepW-1S3z30c8.js +1 -0
- package/dist/packem_shared/index-B0EsgdzO.js +1 -0
- package/dist/packem_shared/index-CE6MsgcV.js +22 -0
- package/dist/packem_shared/index-Cg0IHaFI.js +1 -0
- package/dist/packem_shared/index-Cg71MisW.js +1 -0
- package/dist/packem_shared/index-DjTWo3sH.js +1 -0
- package/dist/packem_shared/index-jJNulo5i.js +28 -0
- package/dist/packem_shared/index.server-J83sowC4.js +2 -0
- package/dist/packem_shared/interface.d-B7VK2rcH.d.ts +148 -0
- package/dist/packem_shared/interface.d-Cezzifoh.d.ts +106 -0
- package/dist/packem_shared/license-t5KnNX6v.js +1 -0
- package/dist/packem_shared/lifecycle-aDTZ8dW1.js +2 -0
- package/dist/packem_shared/lockfile-C1qCKGH6.js +1 -0
- package/dist/packem_shared/main-B3juSU5z.js +1 -0
- package/dist/packem_shared/manifests-DSBr3-dw.js +1 -0
- package/dist/packem_shared/min-release-age-C71MO72F.js +34 -0
- package/dist/packem_shared/missing-package-json-CTF71tE5.js +1 -0
- package/dist/packem_shared/native-config-sync-D-z2Uwqu.js +21 -0
- package/dist/packem_shared/osv-bloom-DMhXP184.js +2 -0
- package/dist/packem_shared/otelPlugin-DmKDBaPo.js +1 -0
- package/dist/packem_shared/packument-aGzYwXKn.js +1 -0
- package/dist/packem_shared/peer-warnings-BXAzXqY3.js +1 -0
- package/dist/packem_shared/plugins.d-ND23R9I3.d.ts +4 -0
- package/dist/packem_shared/pm-runner-CQcraCcu.js +1 -0
- package/dist/packem_shared/prompt-DjXHVgYU.js +1 -0
- package/dist/packem_shared/provenance-S7y0BRAt.js +1 -0
- package/dist/packem_shared/public-api-WqUCiyIe.js +131 -0
- package/dist/packem_shared/readJsonSync-DuMMeB3s-ihoybKvs.js +1 -0
- package/dist/packem_shared/registry-keys-CRnXATt2.js +1 -0
- package/dist/packem_shared/resolve-explicit-CJGazevw.js +5 -0
- package/dist/packem_shared/resolve-runtime-QRaQucfL.js +1 -0
- package/dist/packem_shared/run-file-DD7Ne23Z.js +1 -0
- package/dist/packem_shared/runtime-check-qnrPTlma.js +1 -0
- package/dist/packem_shared/runtime-process-Dmz0vCJy-DUwTvH1J.js +1 -0
- package/dist/packem_shared/s1ngularity-BLj4Jy8z.js +1 -0
- package/dist/packem_shared/scan-progress-BDcl7Kty.js +2 -0
- package/dist/packem_shared/selectors-D4iCvITE.js +3 -0
- package/dist/packem_shared/signatures-DoNG2hEr.js +2 -0
- package/dist/packem_shared/slug-DoueYuLo.js +1 -0
- package/dist/packem_shared/spinner-DuJJvFTl.js +1 -0
- package/dist/packem_shared/sticky-comment-D6_7-w8T.js +1 -0
- package/dist/packem_shared/subtree-C7bZuiSQ.js +2 -0
- package/dist/packem_shared/symbols-DPTlrJ3B.js +1 -0
- package/dist/packem_shared/tabs-CgxCvjCY.js +1 -0
- package/dist/packem_shared/target-merge-Dg25Izl5.js +11 -0
- package/dist/packem_shared/target-options-CR0OuYJr.js +1 -0
- package/dist/packem_shared/toolchain-Zb3VzZb4.js +5 -0
- package/dist/packem_shared/typosquats-C12CP_2G.js +1 -0
- package/dist/packem_shared/use-measured-height-CjS7Tks7.js +1 -0
- package/dist/packem_shared/utils-CRueU43T.js +1 -0
- package/dist/packem_shared/verify-DStfg3nb.js +1 -0
- package/dist/packem_shared/vis-update-app-BlocL713.js +1 -0
- package/dist/packem_shared/watch-BXNI7dC6.js +1 -0
- package/dist/packem_shared/watch-loop-BZudYfcl.js +11 -0
- package/dist/release/core/changelog/index.d.ts +5 -0
- package/dist/release/core/changelog/index.js +1 -0
- package/dist/release/core/package-managers/index.d.ts +6 -0
- package/dist/release/core/package-managers/index.js +1 -0
- package/dist/release/core/version-actions/index.d.ts +14 -0
- package/dist/release/core/version-actions/index.js +1 -0
- package/dist/release/index.d.ts +233 -0
- package/dist/release/index.js +1 -0
- package/dist/release/plugin-sdk.d.ts +128 -0
- package/dist/release/plugin-sdk.js +1 -0
- package/dist/release/presets.d.ts +225 -0
- package/dist/release/presets.js +1 -0
- package/dist/release/types.d.ts +1493 -0
- package/dist/release/types.js +1 -0
- package/dist/runtime/preload.d.ts +1 -0
- package/dist/runtime/preload.js +1 -0
- package/index.d.ts +450 -0
- package/index.js +80 -57
- package/package.json +87 -44
- package/schemas/project.schema.json +872 -225
- package/schemas/vis-config.schema.json +6309 -264
- package/schemas/vis-release-config.schema.json +1423 -0
- package/skills/vis/SKILL.md +96 -0
- package/templates/buildkite-ci/.buildkite/pipeline.yml.tera +85 -0
- package/templates/buildkite-ci/template.yml +20 -0
- package/dist/config.d.ts +0 -1087
- package/dist/config.js +0 -1
- package/dist/packem_shared/VisUpdateApp-BBx3idMI.js +0 -1
- package/dist/packem_shared/ai-analysis-DDqXRFxY.js +0 -67
- package/dist/packem_shared/bin-BaZZ32BK.js +0 -93
- package/dist/packem_shared/cache-directory-DL8hfXeG.js +0 -1
- package/dist/packem_shared/catalog-CuSpuB_R.js +0 -12
- package/dist/packem_shared/dependency-scan-BoLG2Fez.js +0 -1
- package/dist/packem_shared/docker-BcfqH4Av.js +0 -2
- package/dist/packem_shared/flakiness-DSIHZGBT.js +0 -1
- package/dist/packem_shared/otelPlugin-DxyvBcXO.js +0 -1
- package/dist/packem_shared/runtime-check-CGHal8SO.js +0 -1
- package/dist/packem_shared/selectors-CfH9ZY08.js +0 -3
- package/dist/packem_shared/symbols-CIMw60-G.js +0 -1
- package/dist/packem_shared/toolchain-C3ZG0o_X.js +0 -5
- package/dist/packem_shared/typosquats-Bpq4zcWL.js +0 -1
- package/dist/packem_shared/utils-DrNg0XTR.js +0 -1
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
const t=e=>{switch(e){case"bun":return"bun install --frozen-lockfile";case"npm":return"npm ci";case"pnpm":return"pnpm install --frozen-lockfile";case"yarn":return"yarn install --immutable";default:return`${e} install`}},r=e=>`${e} run build`,n=e=>e==="npm"?"npx":e==="bun"?"bunx":`${e} exec`,o=e=>{switch(e){case"bun":return"npm install -g bun";case"npm":return"";case"pnpm":return"npm install -g pnpm";case"yarn":return"corepack enable && corepack prepare yarn@stable --activate";default:return""}},l=e=>`# vis release — primary release workflow.
|
|
2
|
+
# Generated by \`vis release init --workflows\`. Edit freely.
|
|
3
|
+
|
|
4
|
+
name: vis release
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches:
|
|
9
|
+
${e.branches.map(s=>` - "${s}"`).join(`
|
|
10
|
+
`)}
|
|
11
|
+
workflow_dispatch:
|
|
12
|
+
|
|
13
|
+
concurrency:
|
|
14
|
+
group: vis-release-\${{ github.ref }}
|
|
15
|
+
cancel-in-progress: false
|
|
16
|
+
|
|
17
|
+
permissions:
|
|
18
|
+
contents: write
|
|
19
|
+
pull-requests: write
|
|
20
|
+
${e.useOidc?` id-token: write
|
|
21
|
+
`:""}
|
|
22
|
+
jobs:
|
|
23
|
+
release:
|
|
24
|
+
runs-on: ubuntu-latest
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@v4
|
|
27
|
+
with:
|
|
28
|
+
fetch-depth: 0
|
|
29
|
+
token: \${{ secrets.VIS_GH_TOKEN || github.token }}
|
|
30
|
+
persist-credentials: false
|
|
31
|
+
|
|
32
|
+
- uses: actions/setup-node@v4
|
|
33
|
+
with:
|
|
34
|
+
node-version: "22"
|
|
35
|
+
|
|
36
|
+
${e.packageManager==="pnpm"?` - uses: pnpm/action-setup@v4
|
|
37
|
+
`:""}${e.packageManager==="bun"?` - uses: oven-sh/setup-bun@v2
|
|
38
|
+
`:""} - run: ${t(e.packageManager)}
|
|
39
|
+
- run: ${r(e.packageManager)}
|
|
40
|
+
|
|
41
|
+
- run: ${n(e.packageManager)} vis release ci release
|
|
42
|
+
env:
|
|
43
|
+
GH_TOKEN: \${{ github.token }}
|
|
44
|
+
VIS_GH_TOKEN: \${{ secrets.VIS_GH_TOKEN || github.token }}
|
|
45
|
+
${e.useOidc?` # OIDC trusted publishing — no publish token needed when configured on npmjs.com
|
|
46
|
+
`:" NPM_TOKEN: ${{ secrets.NPM_TOKEN }}\n"} GIT_AUTHOR_NAME: "vis-release-bot"
|
|
47
|
+
GIT_AUTHOR_EMAIL: "vis-release-bot@users.noreply.github.com"
|
|
48
|
+
GIT_COMMITTER_NAME: "vis-release-bot"
|
|
49
|
+
GIT_COMMITTER_EMAIL: "vis-release-bot@users.noreply.github.com"
|
|
50
|
+
`,g=e=>`# vis release ci check — sticky PR comment with release plan.
|
|
51
|
+
# Generated by \`vis release init --workflows\`. Edit freely.
|
|
52
|
+
|
|
53
|
+
name: vis release check
|
|
54
|
+
|
|
55
|
+
on:
|
|
56
|
+
pull_request:
|
|
57
|
+
types: [opened, synchronize, reopened]
|
|
58
|
+
|
|
59
|
+
permissions:
|
|
60
|
+
contents: read
|
|
61
|
+
pull-requests: write
|
|
62
|
+
|
|
63
|
+
jobs:
|
|
64
|
+
check:
|
|
65
|
+
runs-on: ubuntu-latest
|
|
66
|
+
steps:
|
|
67
|
+
- uses: actions/checkout@v4
|
|
68
|
+
with:
|
|
69
|
+
fetch-depth: 0
|
|
70
|
+
persist-credentials: false
|
|
71
|
+
- uses: actions/setup-node@v4
|
|
72
|
+
with:
|
|
73
|
+
node-version: "22"
|
|
74
|
+
${e.packageManager==="pnpm"?` - uses: pnpm/action-setup@v4
|
|
75
|
+
`:""}${e.packageManager==="bun"?` - uses: oven-sh/setup-bun@v2
|
|
76
|
+
`:""} - run: ${t(e.packageManager)}
|
|
77
|
+
- run: ${n(e.packageManager)} vis release ci check
|
|
78
|
+
env:
|
|
79
|
+
GH_TOKEN: \${{ github.token }}
|
|
80
|
+
`,h=e=>`# vis release ci snapshot — preview release publish + sticky PR comment.
|
|
81
|
+
# Generated by \`vis release init --workflows\`. Edit freely.
|
|
82
|
+
|
|
83
|
+
name: vis release snapshot
|
|
84
|
+
|
|
85
|
+
on:
|
|
86
|
+
pull_request:
|
|
87
|
+
types: [opened, synchronize, reopened]
|
|
88
|
+
|
|
89
|
+
concurrency:
|
|
90
|
+
group: vis-release-snapshot-\${{ github.event.pull_request.number }}
|
|
91
|
+
cancel-in-progress: true
|
|
92
|
+
|
|
93
|
+
permissions:
|
|
94
|
+
contents: read
|
|
95
|
+
pull-requests: write
|
|
96
|
+
${e.useOidc?` id-token: write
|
|
97
|
+
`:""}
|
|
98
|
+
jobs:
|
|
99
|
+
snapshot:
|
|
100
|
+
runs-on: ubuntu-latest
|
|
101
|
+
steps:
|
|
102
|
+
- uses: actions/checkout@v4
|
|
103
|
+
with:
|
|
104
|
+
fetch-depth: 0
|
|
105
|
+
persist-credentials: false
|
|
106
|
+
- uses: actions/setup-node@v4
|
|
107
|
+
with:
|
|
108
|
+
node-version: "22"
|
|
109
|
+
${e.packageManager==="pnpm"?` - uses: pnpm/action-setup@v4
|
|
110
|
+
`:""}${e.packageManager==="bun"?` - uses: oven-sh/setup-bun@v2
|
|
111
|
+
`:""} - run: ${t(e.packageManager)}
|
|
112
|
+
- run: ${r(e.packageManager)}
|
|
113
|
+
- run: ${n(e.packageManager)} vis release ci snapshot
|
|
114
|
+
env:
|
|
115
|
+
GH_TOKEN: \${{ github.token }}
|
|
116
|
+
${e.useOidc?"":" NPM_TOKEN: ${{ secrets.NPM_TOKEN }}\n"}`,b=e=>`# .gitlab-ci.yml — vis release CI pipeline.
|
|
117
|
+
# Generated by \`vis release init --workflows\`. Edit freely.
|
|
118
|
+
#
|
|
119
|
+
# Required CI/CD variables (Project Settings → CI/CD → Variables):
|
|
120
|
+
# - VIS_GH_TOKEN (or GITLAB_TOKEN) — PAT for force-pushing the version-PR branch
|
|
121
|
+
# - NPM_TOKEN — npm publish auth (until npm OIDC supports GitLab)
|
|
122
|
+
#
|
|
123
|
+
# Self-hosted GitLab: set release.gitlabHost in vis.config.ts (translates to
|
|
124
|
+
# GITLAB_HOST for every glab invocation), or export GITLAB_HOST in the job env.
|
|
125
|
+
|
|
126
|
+
stages:
|
|
127
|
+
- check
|
|
128
|
+
- release
|
|
129
|
+
|
|
130
|
+
default:
|
|
131
|
+
image: node:22
|
|
132
|
+
|
|
133
|
+
variables:
|
|
134
|
+
PM: "${e.packageManager}"
|
|
135
|
+
|
|
136
|
+
before_script:
|
|
137
|
+
${o(e.packageManager)?` - ${o(e.packageManager)}
|
|
138
|
+
`:""} - ${t(e.packageManager)}
|
|
139
|
+
|
|
140
|
+
${e.includeCheck?`vis-release-check:
|
|
141
|
+
stage: check
|
|
142
|
+
rules:
|
|
143
|
+
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
144
|
+
script:
|
|
145
|
+
- ${n(e.packageManager)} vis release ci check
|
|
146
|
+
|
|
147
|
+
`:""}${e.includeSnapshot?`vis-release-snapshot:
|
|
148
|
+
stage: check
|
|
149
|
+
rules:
|
|
150
|
+
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
|
151
|
+
script:
|
|
152
|
+
- ${r(e.packageManager)}
|
|
153
|
+
- ${n(e.packageManager)} vis release ci snapshot
|
|
154
|
+
|
|
155
|
+
`:""}vis-release:
|
|
156
|
+
stage: release
|
|
157
|
+
# Serialize releases per branch so two close-together pushes don't
|
|
158
|
+
# race on the same registry / staged.json / tag namespace. GitLab's
|
|
159
|
+
# equivalent of GitHub Actions' concurrency.group.
|
|
160
|
+
resource_group: vis-release-$CI_COMMIT_BRANCH
|
|
161
|
+
rules:
|
|
162
|
+
${e.branches.map(s=>` - if: $CI_COMMIT_BRANCH == "${s}"`).join(`
|
|
163
|
+
`)}
|
|
164
|
+
script:
|
|
165
|
+
- ${r(e.packageManager)}
|
|
166
|
+
- ${n(e.packageManager)} vis release ci release
|
|
167
|
+
`,k=(e,s={})=>{const u=s.provider??(e.provider==="github"||e.provider==="gitlab"?e.provider:"github"),p=e.channels??{},i=s.branches??Object.keys(p);i.length===0&&i.push("main");const a={branches:i,includeCheck:s.includeCheck??!0,includeSnapshot:s.includeSnapshot??!0,packageManager:s.packageManager??"pnpm",useOidc:s.useOidc??!0};if(u==="gitlab")return[{content:b(a),path:".gitlab-ci.yml"}];const c=[{content:l(a),path:".github/workflows/vis-release.yml"}];return a.includeCheck&&c.push({content:g(a),path:".github/workflows/vis-release-check.yml"}),a.includeSnapshot&&c.push({content:h(a),path:".github/workflows/vis-release-snapshot.yml"}),c};export{k as generateWorkflowFiles};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as h}from"node:module";import w from"./index.js";import{normaliseGroup as _}from"../release/types.js";import{d as C}from"./registry.js";import{resolveFormatter as v}from"./resolveFormatter.js";const m=h(import.meta.url),g=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,u=o=>{if(typeof g<"u"&&g.versions&&g.versions.node){const[n,t]=g.versions.node.split(".").map(Number);if(n>22||n===22&&t>=3||n===20&&t>=16)return g.getBuiltinModule(o)}return m(o)},{readFile:d,writeFile:f}=u("node:fs/promises"),k="## Release wave {date} ({count} packages)",$=async(o,n,t,s={})=>{const r=s.renderer??t,e=[(s.waveHeading??k).replaceAll("{date}",n).replaceAll("{count}",String(o.length)),""];for(const a of o){e.push(`### ${a.name} → ${a.newVersion}`),e.push("");const i={changeFiles:a.changeFiles,date:n,release:a,target:"github-release"},c=await r(i);c.trim()?e.push(c.trim()):e.push("_No changelog entries._"),e.push("")}return e.join(`
|
|
2
|
+
`)},j=(o,n={})=>{const t=n.file??"CHANGELOG.md";return t.startsWith("/")?t:`${o}/${t}`},y=/[!()*+?@[\]{|}]/,G=(o,n)=>{const t=[],s=new Set;for(const r of o)if(y.test(r))for(const e of n)!s.has(e.name)&&w(r,e.name)&&(s.add(e.name),t.push(e));else{const e=n.find(a=>a.name===r);e&&!s.has(e.name)&&(s.add(e.name),t.push(e))}return t},N=(o,n,t)=>{const s=new Map,r=[...o.fixed??[],...o.linked??[]];for(const e of r){const a=_(e);if(a.changelog.mode!=="shared")continue;const i=G(a.packages,n);if(i.length===0)continue;let c;a.changelog.path?c=a.changelog.path.startsWith("/")?a.changelog.path:`${t}/${a.changelog.path}`:c=`${[...i].sort((l,p)=>l.name.localeCompare(p.name))[0].dir}/GROUP-CHANGELOG.md`;for(const l of i)s.has(l.name)||s.set(l.name,c)}return s},O=async(o,n)=>{if(n.length===0)return;const t=o.workspaceChangelog,s=typeof t=="object"?t:void 0,r=await v(o.changelogConfig,o.cwd),e=new Date().toISOString().slice(0,10),a=await $(n,e,r,s),i=j(o.cwd,s),c=await d(i,"utf8").catch(()=>{});return await f(i,C(a,c)),i};export{$ as renderWorkspaceChangelog,N as resolveGroupChangelogRouting,j as workspaceChangelogPath,O as writeWorkspaceChangelogWave};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class e{}class o{}export{o as AfterAllProjectsVersioned,e as VersionActions};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{createRequire as l}from"node:module";const o=l(import.meta.url),_=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,h=t=>{if(typeof _<"u"&&_.versions&&_.versions.node){const[e,r]=_.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return _.getBuiltinModule(t)}return o(t)},{createRequire:f}=h("node:module");var m={interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},v={interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},u={interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},c={interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},g={interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},d={interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},p={interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},b={interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},w={interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},T={interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},$={interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},x={interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},y={interval:80,frames:["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},k={interval:80,frames:["⠉⠉","⠈⠙","⠀⠹","⠀⢸","⠀⣰","⢀⣠","⣀⣀","⣄⡀","⣆⠀","⡇⠀","⠏⠀","⠋⠁"]},B={interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},D={interval:80,frames:["⢎ ","⠎⠁","⠊⠑","⠈⠱"," ⡱","⢀⡰","⢄⡠","⢆⡀"]},O={interval:80,frames:["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},I={interval:130,frames:["-","\\","|","/"]},q={interval:100,frames:["⠂","-","–","—","–","-"]},N={interval:80,frames:["/ "," - "," \\ "," |"," |"," \\ "," - ","/ "]},R={interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},j={interval:400,frames:[". ",".. ","..."," "]},A={interval:200,frames:[". ",".. ","..."," .."," ."," "]},C={interval:70,frames:["✶","✸","✹","✺","✹","✷"]},M={interval:80,frames:["+","x","*"]},P={interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},S={interval:100,frames:["☱","☲","☴"]},U={interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},F={interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},E={interval:140,frames:[" ",".","o","O","@","*"," "]},H={interval:120,frames:[".","o","O","°","O","o","."]},L={interval:100,frames:["▓","▒","░"]},V={interval:120,frames:["⠁","⠂","⠄","⠂"]},Y={interval:120,frames:["▖","▘","▝","▗"]},z={interval:100,frames:["▌","▀","▐","▄"]},Q={interval:50,frames:["◢","◣","◤","◥"]},G={interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},K={interval:100,frames:["◜","◠","◝","◞","◡","◟"]},W={interval:120,frames:["◡","⊙","◠"]},J={interval:180,frames:["◰","◳","◲","◱"]},X={interval:120,frames:["◴","◷","◶","◵"]},Z={interval:50,frames:["◐","◓","◑","◒"]},ee={interval:100,frames:["╫","╪"]},re={interval:250,frames:["⊶","⊷"]},te={interval:80,frames:["▫","▪"]},se={interval:120,frames:["□","■"]},ie={interval:100,frames:["■","□","▪","▫"]},_e={interval:100,frames:["▮","▯"]},ae={interval:300,frames:["ဝ","၀"]},ne={interval:80,frames:["⦾","⦿"]},le={interval:100,frames:["◍","◌"]},oe={interval:100,frames:["◉","◎"]},he={interval:100,frames:["㊂","㊀","㊁"]},fe={interval:50,frames:["⧇","⧆"]},me={interval:120,frames:["☗","☖"]},ve={interval:80,frames:["=","*","-"]},ue={interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},ce={interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},ge={interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},de={interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},pe={interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},be={interval:200,frames:["😄 ","😝 "]},we={interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},Te={interval:100,frames:["💛 ","💙 ","💜 ","💚 ","💗 "]},$e={interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},xe={interval:180,frames:["🌍 ","🌎 ","🌏 "]},ye={interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},ke={interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},Be={interval:140,frames:["🚶 ","🏃 "]},De={interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},Oe={interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},Ie={interval:100,frames:["d","q","p","b"]},qe={interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},Ne={interval:400,frames:["🌲","🎄"]},Re={interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},je={interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},Ae={interval:150,frames:["-","=","≡"]},Ce={interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},Me={interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},Pe={interval:80,frames:["🤜 🤛 ","🤜 🤛 ","🤜 🤛 "," 🤜 🤛 "," 🤜🤛 "," 🤜✨🤛 ","🤜 ✨ 🤛 "]},Se={interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},Ue={interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ "," "," "," "]},Fe={interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},Ee={interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},He={interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},Le={interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},Ve={interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},Ye={interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},ze={interval:80,frames:[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]},Qe={interval:80,frames:["~~~~~~~~~~~~~~~~~~~~","> ~~~~~~~~~~~~~~~~~~","º> ~~~~~~~~~~~~~~~~~","(º> ~~~~~~~~~~~~~~~~","((º> ~~~~~~~~~~~~~~~","<((º> ~~~~~~~~~~~~~~","><((º> ~~~~~~~~~~~~~"," ><((º> ~~~~~~~~~~~~","~ ><((º> ~~~~~~~~~~~","~~ <>((º> ~~~~~~~~~~","~~~ ><((º> ~~~~~~~~~","~~~~ <>((º> ~~~~~~~~","~~~~~ ><((º> ~~~~~~~","~~~~~~ <>((º> ~~~~~~","~~~~~~~ ><((º> ~~~~~","~~~~~~~~ <>((º> ~~~~","~~~~~~~~~ ><((º> ~~~","~~~~~~~~~~ <>((º> ~~","~~~~~~~~~~~ ><((º> ~","~~~~~~~~~~~~ <>((º> ","~~~~~~~~~~~~~ ><((º>","~~~~~~~~~~~~~~ <>((º","~~~~~~~~~~~~~~~ ><((","~~~~~~~~~~~~~~~~ <>(","~~~~~~~~~~~~~~~~~ ><","~~~~~~~~~~~~~~~~~~ <","~~~~~~~~~~~~~~~~~~~~"]};const Ge={dots:m,dots2:v,dots3:u,dots4:c,dots5:g,dots6:d,dots7:p,dots8:b,dots9:w,dots10:T,dots11:$,dots12:x,dots13:y,dots14:k,dots8Bit:B,dotsCircle:D,sand:O,line:I,line2:q,rollingLine:N,pipe:R,simpleDots:j,simpleDotsScrolling:A,star:C,star2:M,flip:P,hamburger:S,growVertical:U,growHorizontal:F,balloon:E,balloon2:H,noise:L,bounce:V,boxBounce:Y,boxBounce2:z,triangle:Q,binary:G,arc:K,circle:W,squareCorners:J,circleQuarters:X,circleHalves:Z,squish:ee,toggle:re,toggle2:te,toggle3:se,toggle4:ie,toggle5:_e,toggle6:ae,toggle7:ne,toggle8:le,toggle9:oe,toggle10:he,toggle11:fe,toggle12:me,toggle13:ve,arrow:ue,arrow2:ce,arrow3:ge,bouncingBar:de,bouncingBall:pe,smiley:be,monkey:we,hearts:Te,clock:$e,earth:xe,material:ye,moon:ke,runner:Be,pong:De,shark:Oe,dqpb:Ie,weather:qe,christmas:Ne,grenade:Re,point:je,layer:Ae,betaWave:Ce,fingerDance:Me,fistBump:Pe,soccerHeader:Se,mindblown:Ue,speaker:Fe,orangePulse:Ee,bluePulse:He,orangeBluePulse:Le,timeTravel:Ve,aesthetic:Ye,dwarfFortress:ze,fish:Qe},Ke={breathe:{frames:["⠀","⠂","⠌","⡑","⢕","⢝","⣫","⣟","⣿","⣟","⣫","⢝","⢕","⡑","⠌","⠂","⠀"],interval:100},cascade:{frames:["⠀⠀⠀⠀","⠁⠀⠀⠀","⠋⠀⠀⠀","⠞⠁⠀⠀","⡴⠋⠀⠀","⣠⠞⠁⠀","⢀⡴⠋⠀","⠀⣠⠞⠁","⠀⢀⡴⠋","⠀⠀⣠⠞","⠀⠀⢀⡴","⠀⠀⠀⣠","⠀⠀⠀⢀"],interval:60},checkerboard:{frames:["⢕⢕⢕","⡪⡪⡪","⢊⠔⡡","⡡⢊⠔"],interval:250},columns:{frames:["⡀⠀⠀","⡄⠀⠀","⡆⠀⠀","⡇⠀⠀","⣇⠀⠀","⣧⠀⠀","⣷⠀⠀","⣿⠀⠀","⣿⡀⠀","⣿⡄⠀","⣿⡆⠀","⣿⡇⠀","⣿⣇⠀","⣿⣧⠀","⣿⣷⠀","⣿⣿⠀","⣿⣿⡀","⣿⣿⡄","⣿⣿⡆","⣿⣿⡇","⣿⣿⣇","⣿⣿⣧","⣿⣿⣷","⣿⣿⣿","⣿⣿⣿","⠀⠀⠀"],interval:60},diagSwipe:{frames:["⠁⠀","⠋⠀","⠟⠁","⡿⠋","⣿⠟","⣿⡿","⣿⣿","⣿⣿","⣾⣿","⣴⣿","⣠⣾","⢀⣴","⠀⣠","⠀⢀","⠀⠀","⠀⠀"],interval:60},dna:{frames:["⠋⠉⠙⠚","⠉⠙⠚⠒","⠙⠚⠒⠂","⠚⠒⠂⠂","⠒⠂⠂⠒","⠂⠂⠒⠲","⠂⠒⠲⠴","⠒⠲⠴⠤","⠲⠴⠤⠄","⠴⠤⠄⠋","⠤⠄⠋⠉","⠄⠋⠉⠙"],interval:80},doubleArrow:{frames:["⇐","⇖","⇑","⇗","⇒","⇘","⇓","⇙"],interval:100},fillSweep:{frames:["⣀⣀","⣤⣤","⣶⣶","⣿⣿","⣿⣿","⣿⣿","⣶⣶","⣤⣤","⣀⣀","⠀⠀","⠀⠀"],interval:100},helix:{frames:["⢌⣉⢎⣉","⣉⡱⣉⡱","⣉⢎⣉⢎","⡱⣉⡱⣉","⢎⣉⢎⣉","⣉⡱⣉⡱","⣉⢎⣉⢎","⡱⣉⡱⣉","⢎⣉⢎⣉","⣉⡱⣉⡱","⣉⢎⣉⢎","⡱⣉⡱⣉","⢎⣉⢎⣉","⣉⡱⣉⡱","⣉⢎⣉⢎","⡱⣉⡱⣉"],interval:80},infinity:{frames:["⢎⡱⣉⠆","⢎⡱⣈⠆","⢎⡱⣀⠆","⢎⡱⣀⠄","⢎⡱⣀ ","⢎⡱⡀ ","⢎⡱ ","⢎⡱ ","⢎⡡ ","⢎⡠ ","⢆⡠ ","⢄⡠ ","⢀⡠ "," ⡠ "," ⠠ "," ⠰ "," ⠐ "," ⠐⠁ "," ⠐⠉ "," ⠐⠉⠂"," ⠐⠉⠆"," ⠐⢉⠆"," ⠐⣉⠆"," ⠰⣉⠆"," ⠰⣉⠆"," ⠱⣉⠆","⠈⠱⣉⠆","⠊⠱⣉⠆","⠎⠱⣉⠆","⢎⠱⣉⠆","⢎⡱⣉⠆","⢎⡱⣉⠆"],interval:60},orbit:{frames:["⠃","⠉","⠘","⠰","⢠","⣀","⡄","⠆"],interval:100},pulse:{frames:["⠀⠶⠀","⠰⣿⠆","⢾⣉⡷","⣏⠀⣹","⡁⠀⢈"],interval:180},rain:{frames:["⢁⠂⠔⠈","⠂⠌⡠⠐","⠄⡐⢀⠡","⡈⠠⠀⢂","⠐⢀⠁⠄","⠠⠁⠊⡀","⢁⠂⠔⠈","⠂⠌⡠⠐","⠄⡐⢀⠡","⡈⠠⠀⢂","⠐⢀⠁⠄","⠠⠁⠊⡀"],interval:100},scan:{frames:["⠀⠀⠀⠀","⡇⠀⠀⠀","⣿⠀⠀⠀","⢸⡇⠀⠀","⠀⣿⠀⠀","⠀⢸⡇⠀","⠀⠀⣿⠀","⠀⠀⢸⡇","⠀⠀⠀⣿","⠀⠀⠀⢸"],interval:70},scanline:{frames:["⠉⠉⠉","⠓⠓⠓","⠦⠦⠦","⣄⣄⣄","⠦⠦⠦","⠓⠓⠓"],interval:120},snake:{frames:["⣁⡀","⣉⠀","⡉⠁","⠉⠉","⠈⠙","⠀⠛","⠐⠚","⠒⠒","⠖⠂","⠶⠀","⠦⠄","⠤⠤","⠠⢤","⠀⣤","⢀⣠","⣀⣀"],interval:80},sparkle:{frames:["⡡⠊⢔⠡","⠊⡰⡡⡘","⢔⢅⠈⢢","⡁⢂⠆⡍","⢔⠨⢑⢐","⠨⡑⡠⠊"],interval:150},wave:{frames:["⠁⠂⠄⡀","⠂⠄⡀⢀","⠄⡀⢀⠠","⡀⢀⠠⠐","⢀⠠⠐⠈","⠠⠐⠈⠁","⠐⠈⠁⠂","⠈⠁⠂⠄"],interval:100},waveRows:{frames:["⠖⠉⠉⠑","⡠⠖⠉⠉","⣠⡠⠖⠉","⣄⣠⡠⠖","⠢⣄⣠⡠","⠙⠢⣄⣠","⠉⠙⠢⣄","⠊⠉⠙⠢","⠜⠊⠉⠙","⡤⠜⠊⠉","⣀⡤⠜⠊","⢤⣀⡤⠜","⠣⢤⣀⡤","⠑⠣⢤⣀","⠉⠑⠣⢤","⠋⠉⠑⠣"],interval:90}},n={...Ge,...Ke},We=t=>n[t],Je=()=>Object.keys(n),Xe=f(import.meta.url),a=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ze=t=>{if(typeof a<"u"&&a.versions&&a.versions.node){const[e,r]=a.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return a.getBuiltinModule(t)}return Xe(t)},{styleText:er}=Ze("node:util"),rr={error:"✖",info:"ℹ",success:"✓",warning:"⚠"},tr=()=>{const{env:t}=process;return!!t.CI||t.CONTINUOUS_INTEGRATION==="true"||"BUILD_NUMBER"in t||"RUN_ID"in t},sr=t=>{const e=[];return t.bold&&e.push("bold"),t.dim&&e.push("dim"),t.italic&&e.push("italic"),t.underline&&e.push("underline"),t.strikethrough&&e.push("strikethrough"),t.color&&e.push(t.color),t.bgColor&&e.push(t.bgColor),e.length===0?r=>r:r=>er(e,r)};class _r{#_=0;#o;#e=!1;#s="";#a="";#b=0;#h=0;#r;#t;#f="";#n;#v;#i;#w;#u=0;#l;#T;constructor(e={},r){if(e.frames)this.#n=e.frames;else{const i=e.name??"dots",s=We(i);if(!s)throw new Error(`Unknown spinner "${i}". Pass a custom \`frames\` set or use one of: ${Je().join(", ")}.`);this.#n=s}this.#v=e.verbose!==!1,this.#s=e.prefixText??"",this.#r=r,this.#i=e.stream??process.stderr,this.#w=r?!0:this.#i.isTTY&&!tr(),this.#T={...rr,...e.icons},typeof e.style=="function"?this.#l=e.style:e.style&&(this.#l=sr(e.style))}get elapsedTime(){return(this.#h||Date.now())-this.#b}get text(){return this.#a}set text(e){this.#a=e,this.#e&&this.#d()}get prefixText(){return this.#s}set prefixText(e){this.#s=e,this.#e&&this.#d()}get isRunning(){return this.#e}setInteractiveManager(e){this.#r=e}setMultiSpinner(e){this.#t=e}tick(){this.#e&&(this.#_=(this.#_+1)%this.#n.frames.length)}start(e,r){return this.#e?this:this.#v?(this.#e=!0,this.#b=Date.now(),this.#h=0,this.#_=0,this.#f="",e&&(this.#a=e),r?.prefixText&&(this.#s=r.prefixText),this.#t?(this.#t.renderAll(),this):(this.#r?(this.#r.hook(),this.#$(),this.#g()):(this.#x(),this.#g()),this)):this}stop(){if(this.#e){if(this.#m(),this.#e=!1,this.#h=Date.now(),this.#f="",this.#t){this.#t.renderAll();return}this.#r?(this.#r.erase("stdout"),this.#r.unhook(!1)):this.#p()}}stopAndPersist(e){if(!this.#e||(this.#m(),this.#e=!1,this.#h=Date.now(),!this.#v))return;const r=e?.prefixText??this.#s,i=e?.text??this.#a;let s=e?.symbol??"";r&&(s=s?`${r} ${s}`:r),i&&(s=s?`${s} ${i}`:i),this.#y(s)}succeed(e){this.#c("success",e)}failed(e){this.#c("error",e)}warn(e){this.#c("warning",e)}info(e){this.#c("info",e)}pause(){this.#m()}resume(){this.#e&&(this.#m(),this.#t||this.#g())}getFrameOutput(){if(!this.#e&&this.#f)return this.#f;const e=this.#n.frames[this.#_];let r=this.#l?this.#l(e):e;return this.#s&&(r=`${this.#s} ${r}`),this.#a&&(r=`${r} ${this.#a}`),r}#g(){this.#w&&(this.#o=setInterval(()=>{this.#e&&(this.#_=(this.#_+1)%this.#n.frames.length,this.#d())},this.#n.interval),this.#o.unref())}#m(){this.#o&&(clearInterval(this.#o),this.#o=void 0)}#d(){this.#t?this.#t.renderAll():this.#r?this.#$():this.#x()}#$(){this.#r&&this.#r.update("stdout",[this.getFrameOutput()])}#x(){const e=this.getFrameOutput();this.#p(),this.#i.isTTY?(this.#i.write(e),this.#u=1):(this.#i.write(`${e}
|
|
2
|
+
`),this.#u=0)}#p(){this.#u>0&&this.#i.isTTY&&this.#i.write("\r\x1B[K"),this.#u=0}#y(e){this.#f=e,this.#t?this.#t.renderAll():this.#r?(this.#r.update("stdout",[e]),this.#r.unhook(!1)):(this.#p(),this.#i.write(`${e}
|
|
3
|
+
`))}#c(e,r){if(!this.#e||(this.#m(),this.#e=!1,this.#h=Date.now(),!this.#v))return;let i="";const s=this.#T[e];s&&(i=this.#l?this.#l(s):s),this.#s&&(i=`${this.#s} ${i}`),r&&(i=`${i} ${r}`),this.#y(i)}}export{We as V,_r as o};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as o,a as d,p as h}from"../packem_chunks/orchestrator.js";const y=async(a={})=>{const e=await o(a),n=await d(e,{dryRun:a.dryRun});return{changedFiles:n.changedFiles,deletedFiles:n.deletedFiles,plan:n.plan}},w=async(a={})=>{const e=await o(a),{resolveFormatter:n}=await import("../packem_chunks/resolveFormatter.js"),t=await n(e.config.changelog,e.cwd),s=new Date().toISOString().slice(0,10),i=[];for(const r of e.plan.releases){const l=e.depGraph.getPackage(r.name);if(!l)continue;const c=await t({changeFiles:r.changeFiles,date:s,release:r,target:"changelog"});i.push({content:c,file:`${l.dir}/CHANGELOG.md`,package:r.name})}return{projectChangelogs:i}},F=async(a={})=>{const e=await o(a);return await h(e,{dryRun:a.dryRun,otp:a.otp,tag:a.tag})},m=async(a={})=>{const e=await o(a);let n=!1,t;const s=async()=>{if(t)return t;n=!0;const i=await d(e,{dryRun:a.dryRun});return t={changedFiles:i.changedFiles,deletedFiles:i.deletedFiles,plan:i.plan},t};return{apply:s,discard:()=>{n=!0},plan:e.plan,[Symbol.asyncDispose]:async()=>{n||await s()}}},R=async a=>{const e=await o(a),{runSnapshot:n}=await import("../packem_chunks/snapshot.js"),t=await n({context:e,dryRun:a.dryRun,registry:a.registry,tag:a.tag});return{failed:t.failed,published:t.published,skipped:t.skipped,snapshotVersion:t.snapshotVersion,tag:t.tag}},C=async(a={})=>{const e=await o(a),n=await d(e,{dryRun:a.dryRun}),t={changedFiles:n.changedFiles,deletedFiles:n.deletedFiles,plan:n.plan},{resolveFormatter:s}=await import("../packem_chunks/resolveFormatter.js"),i=await s(e.config.changelog,e.cwd),r=new Date().toISOString().slice(0,10),l=[];for(const g of n.plan.releases){const p=e.depGraph.getPackage(g.name);if(!p)continue;const f=await i({changeFiles:g.changeFiles,date:r,release:g,target:"changelog"});l.push({content:f,file:`${p.dir}/CHANGELOG.md`,package:g.name})}const c={projectChangelogs:l};if(a.skipPublish)return{changelog:c,publish:{failed:[],published:[],skipped:[]},version:t};const u=await h(e,{dryRun:a.dryRun,otp:void 0,tag:void 0});return{changelog:c,publish:u,version:t}};class k{constructor(e={}){this.config=e}config;releaseVersion(e={}){return y({...e,config:this.config})}releaseChangelog(e={}){return w({...e,config:this.config})}releasePublish(e={}){return F({...e,config:this.config})}releaseDraft(e={}){return m({...e,config:this.config})}releaseSnapshot(e){return R({...e,config:this.config})}}export{k as ReleaseClient,C as release,w as releaseChangelog,m as releaseDraft,F as releasePublish,R as releaseSnapshot,y as releaseVersion};
|