@scalar/cli 2.17.0 → 2.18.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 (94) hide show
  1. package/README.md +77 -3
  2. package/chunks/{action-Y4L4OPPH.js → action-2WVJ2WEW.js} +15 -16
  3. package/chunks/{action-UOUS2G2B.js → action-4BDZ2CXP.js} +6 -7
  4. package/chunks/{action-52ZSECW2.js → action-5AXDB5VN.js} +14 -15
  5. package/chunks/{action-7PVWQJ7V.js → action-6I3TJLRO.js} +28 -26
  6. package/chunks/{action-MPBZUWQ2.js → action-6WZN63LT.js} +20 -19
  7. package/chunks/{action-5NYKJDBG.js → action-7GZGVTYI.js} +1067 -766
  8. package/chunks/{action-2Y6UTXAG.js → action-7ZCJAWI2.js} +5 -5
  9. package/chunks/{action-UWVZ6V7B.js → action-A6YOY24G.js} +5 -5
  10. package/chunks/{action-KJJ35X2T.js → action-AGGHY4N2.js} +21 -20
  11. package/chunks/{action-MKZYWAXH.js → action-BVZOA2G5.js} +9 -10
  12. package/chunks/{action-5TQHROY5.js → action-BYDJ4R4F.js} +14 -15
  13. package/chunks/{action-VJDK7ROI.js → action-CBAL5CYB.js} +16 -17
  14. package/chunks/action-COFGCCYS.js +89 -0
  15. package/chunks/action-CYU5Q5LT.js +254 -0
  16. package/chunks/{action-XMANK72Z.js → action-DTQH6CKR.js} +24 -23
  17. package/chunks/{action-AFZE62DU.js → action-ED5WLLIE.js} +6 -7
  18. package/chunks/action-F4CQ4DW3.js +654 -0
  19. package/chunks/{action-TA6VOPQ5.js → action-GVW5PSPT.js} +17 -18
  20. package/chunks/{action-TTDV5NIP.js → action-H5VRLFCY.js} +5 -5
  21. package/chunks/{action-2SZMLOYJ.js → action-IWEAWDT3.js} +9 -10
  22. package/chunks/{action-3EATJRIK.js → action-JN6JVQUV.js} +14 -15
  23. package/chunks/{action-WPUITVPF.js → action-KVM76ZKQ.js} +11 -11
  24. package/chunks/{action-PS4F4QWI.js → action-LLMFEBHH.js} +3 -4
  25. package/chunks/{action-WUMW2GH6.js → action-PEG7AUA6.js} +14 -13
  26. package/chunks/{action-UVWH2KZY.js → action-QC72LLYE.js} +7 -5
  27. package/chunks/{action-P5MGMJG3.js → action-QP6MRSQW.js} +15 -14
  28. package/chunks/{action-W47MFJSP.js → action-R53K22GE.js} +219 -45
  29. package/chunks/{action-RWITXLMW.js → action-SJPWL723.js} +5 -4
  30. package/chunks/{action-SBD4TFRS.js → action-T3R4SDAI.js} +5 -5
  31. package/chunks/{action-GOKWY3AQ.js → action-TT7ZJNST.js} +20 -19
  32. package/chunks/{action-LALZGEVR.js → action-UPVVJE26.js} +14 -15
  33. package/chunks/{action-RM4RZFZV.js → action-V35W4MRK.js} +10 -11
  34. package/chunks/{action-J3C4LAT5.js → action-W4KGRBRV.js} +5 -5
  35. package/chunks/{action-VWQNDXZT.js → action-ZIVYJCC2.js} +14 -15
  36. package/chunks/{action-LI6DZLDZ.js → action-ZU5X2KQX.js} +22 -21
  37. package/chunks/{actions-GWMW7V2B.js → actions-CERT7BL4.js} +16 -16
  38. package/chunks/{actions-4X5RTQCM.js → actions-RCIS37Y6.js} +14 -15
  39. package/chunks/{agent-LB5ZCVUN.js → agent-CT3RRYPJ.js} +7 -7
  40. package/chunks/{asyncapi-J6VAMIMO.js → asyncapi-DVBS23QW.js} +9 -10
  41. package/chunks/{build.action-YP46CGLS.js → build.action-7MKMMV6V.js} +16 -17
  42. package/chunks/{chunk-B3CMXTHQ.js → chunk-36UI2W7I.js} +1 -1
  43. package/chunks/{chunk-4TSZVWGM.js → chunk-4BMOCIYO.js} +19 -4
  44. package/chunks/{chunk-SKXMYIA2.js → chunk-5EO2CVAR.js} +4 -4
  45. package/chunks/{chunk-4YQNT5UH.js → chunk-5GZAGHKL.js} +1 -1
  46. package/chunks/{chunk-3BZ3VY6H.js → chunk-7LUXRNKV.js} +27 -2
  47. package/chunks/{chunk-KDEKIOIP.js → chunk-CWCRBWA6.js} +1 -1
  48. package/chunks/{chunk-YFUHTGGP.js → chunk-CYIGEQOJ.js} +2 -2
  49. package/chunks/{chunk-I4FQOD5L.js → chunk-DVA4NCCY.js} +3 -3
  50. package/chunks/{chunk-63AB5A5B.js → chunk-F6E7FJEC.js} +6 -6
  51. package/chunks/{chunk-2KMYC3ZI.js → chunk-FMPJSW6A.js} +2 -2
  52. package/chunks/{chunk-IZ3UMB7D.js → chunk-GCVB22TG.js} +2 -2
  53. package/chunks/{chunk-36AMOACU.js → chunk-GXKNYM54.js} +3 -3
  54. package/chunks/chunk-I25ZCHBJ.js +22 -0
  55. package/chunks/{chunk-KYCM5SL3.js → chunk-JBMHCTZD.js} +1 -0
  56. package/chunks/{chunk-57EMU765.js → chunk-JEOQ7LSA.js} +1 -1
  57. package/chunks/{chunk-DXEHHE6H.js → chunk-KI2AVDKM.js} +6 -4
  58. package/chunks/{chunk-QDT27U6O.js → chunk-KSY2GH53.js} +2 -2
  59. package/chunks/{chunk-LS6XOFVD.js → chunk-KWQVA66H.js} +11 -23
  60. package/chunks/{chunk-KJT4VYUO.js → chunk-LPWRG2MS.js} +1 -1
  61. package/chunks/{chunk-NKCM2UH5.js → chunk-LVUMNGVA.js} +1 -1
  62. package/chunks/{chunk-H6LOSAC7.js → chunk-M34HMQMV.js} +39 -83
  63. package/chunks/{chunk-XGKFAPON.js → chunk-MRZ5A7LB.js} +4 -4
  64. package/chunks/chunk-O3I3LTTJ.js +24 -0
  65. package/chunks/{chunk-XQPB4OGW.js → chunk-O4DJIA6Y.js} +2 -19
  66. package/chunks/{action-B3IDMFFO.js → chunk-OKLL5422.js} +5 -243
  67. package/chunks/{chunk-RVZZQKVE.js → chunk-PMDHYIB4.js} +4 -22
  68. package/chunks/{chunk-BIYCLKLZ.js → chunk-RELSIFIL.js} +1 -1
  69. package/chunks/{chunk-QLKBXVUV.js → chunk-RGJPENX7.js} +1 -1
  70. package/chunks/{chunk-3KK72EMO.js → chunk-RHAQ4XBA.js} +3 -3
  71. package/chunks/{action-S7DB6MBK.js → chunk-RQ7QBRJT.js} +1 -82
  72. package/chunks/chunk-S3LY7RKP.js +54 -0
  73. package/chunks/{chunk-X2NZINNR.js → chunk-S5OGPH2P.js} +3 -3
  74. package/chunks/{chunk-VNMVAJ6X.js → chunk-U36HEOGO.js} +17 -21
  75. package/chunks/{chunk-CAD672DX.js → chunk-Y3CXAIAG.js} +1 -1
  76. package/chunks/{chunk-HNWIIDGX.js → chunk-Z7EH7CJC.js} +3 -3
  77. package/chunks/{chunk-SVDXXGEO.js → chunk-ZMJW5UWU.js} +3 -3
  78. package/chunks/{chunk-UI5PWDNE.js → chunk-ZQDAPKWX.js} +9 -16
  79. package/chunks/{create.action-PRZKNQHM.js → create.action-VA2ISPIM.js} +16 -17
  80. package/chunks/{delete.action-G7OAQBR5.js → delete.action-AIWMDGXV.js} +16 -17
  81. package/chunks/{delete.action-2BLCOX6Y.js → delete.action-GEN6OD7A.js} +16 -17
  82. package/chunks/{diff.action-KDOJQVJ5.js → diff.action-LBK656RN.js} +15 -14
  83. package/chunks/{get.action-IKO22SCB.js → get.action-5SWRNQ3D.js} +15 -14
  84. package/chunks/{get.action-HSYV5TFY.js → get.action-UPPPGGI4.js} +17 -18
  85. package/chunks/{list.action-KYIFUM3C.js → list.action-YJZBC25S.js} +17 -18
  86. package/chunks/{list.action-IVJS7UFI.js → list.action-YOWWC4I4.js} +19 -20
  87. package/chunks/{publish.action-2QIOUMVY.js → publish.action-QMVDHDJZ.js} +22 -21
  88. package/chunks/{update.action-XZD6T5UR.js → update.action-GFDZIGEP.js} +17 -18
  89. package/chunks/{update.action-7QATFOGP.js → update.action-SNGKPS7A.js} +16 -17
  90. package/index.js +194 -154
  91. package/package.json +11 -11
  92. package/skills/scalar-cli/SKILL.md +3 -2
  93. package/template.md +76 -2
  94. package/chunks/chunk-YTJ67DWS.js +0 -32
package/README.md CHANGED
@@ -28,6 +28,46 @@ scalar document lint openapi.yaml --rule .spectral.yaml
28
28
 
29
29
  `validate` checks the document against the OpenAPI or AsyncAPI specification. `lint` applies Spectral rules and fails only on errors. [Lint reports and baselines →](https://scalar.com/tools/cli/ci-and-scripting#lint-reports)
30
30
 
31
+ ### Lint multiple APIs
32
+
33
+ With no inputs, `lint` reads API entries from the existing Scalar configuration file:
34
+
35
+ ```yaml
36
+ # scalar.config.yaml
37
+ scalar: '2.0.0'
38
+ siteConfig: {}
39
+ navigation:
40
+ routes:
41
+ /pets:
42
+ type: openapi
43
+ filepath: ./apis/pets.yaml
44
+ /events:
45
+ type: asyncapi
46
+ filepath: ./apis/events.yaml
47
+ ```
48
+
49
+ ```sh
50
+ scalar document lint
51
+ scalar document lint --format json --output lint-report.json
52
+ scalar document lint --config docs/scalar.config.yaml
53
+ ```
54
+
55
+ No aliases or `--all` flag are needed. The CLI discovers `scalar.config` or `scalar.config.*` in the current directory. If several files match, select one with `--config`. It reads APIs from every version and nested navigation group, including hidden entries, and processes each distinct file path or URL once. Local paths use the config directory and its optional `root`. Legacy config references and public Scalar Registry references are also supported; inaccessible sources are reported as failures.
56
+
57
+ To select inputs directly, pass files or URLs. These bypass config discovery and cannot be combined with `--config`:
58
+
59
+ ```sh
60
+ scalar document lint apis/pets.yaml apis/billing.yaml
61
+ ```
62
+
63
+ Each API uses the default rules for its OpenAPI or AsyncAPI format. `--rule` applies one explicit ruleset to every input; documentation publishing policies in the config do not change this command. Explicit ruleset, report, and ignore-file paths remain relative to the current directory.
64
+
65
+ All report formats support batches. JSON keeps the existing `totals` and `problems` fields, adds an `api` to each problem, and includes an `apis` list with each input's status (`valid`, `invalid`, or `failed`), counts, and execution error if any. Finding locations still point to the physical file, including shared `$ref` targets. A single explicit input retains its existing report shape.
66
+
67
+ The batch continues after an input fails and exits `1` if any API has error-level findings or cannot be linted; warnings alone exit `0`. Execution failures appear as `scalar-lint-execution` errors in combined reports and are always shown. `--max-problems` limits lint findings across the whole batch without changing totals or exit status.
68
+
69
+ One ignore baseline applies to the batch, using the existing Scalar-first, Redocly-fallback discovery in the current directory. `--generate-ignore-file` updates successfully linted APIs and preserves entries for failed or unselected APIs. Findings are matched by physical source, rule, and pointer, so an ignore for a shared reference applies wherever it is used. Reports and baselines cannot overwrite selected inputs, their references, or the selected config.
70
+
31
71
  ### Bundle split files into one
32
72
 
33
73
  ```bash
@@ -49,6 +89,40 @@ When the destination resolves to the input, interactive local use confirms overw
49
89
 
50
90
  Unresolved references fail without changing the output file. Use `--force` (or `-f`) to write an incomplete bundle with warnings and unresolved references retained. For this command, `--force` only permits unresolved references; it does not skip the overwrite confirmation when `--output` is omitted. Tree shaking is skipped when forced reference errors make reachability uncertain. Unreadable or unparseable input, serialization errors, and write errors still fail with `--force`.
51
91
 
92
+ ### Generate public and environment-specific variants
93
+
94
+ ```sh
95
+ scalar document transform api.yaml --config public-production.yaml --output public.yaml
96
+ scalar document transform api.yaml --config private-staging.yaml --output private.json
97
+ scalar document transform api.yaml --config public-production.yaml --output -
98
+ ```
99
+
100
+ Transform accepts JSON/YAML Swagger 2.0, OpenAPI 3.0–3.2, and AsyncAPI 2.x/3.x descriptions supported by Scalar's validators. It preserves the document version. Configuration is a JSON or YAML file; it is never executed as code. Input, configuration, and referenced source files cannot be overwritten, including through symlinks or hardlinks. Output is required. Distinct existing output files must be writable. Regular files are replaced atomically after validation, preserving ownership and permissions; if ownership transfer is denied for a shared writable file, it is updated in place instead. Use `.json`, `.yaml`, or `.yml`; stdout retains the input format, with diagnostics on stderr.
101
+
102
+ Example `public-production.yaml`:
103
+
104
+ ```yaml
105
+ version: 1
106
+ steps:
107
+ - type: remove-internal-operations
108
+ - type: set
109
+ pointer: /servers
110
+ value:
111
+ - url: https://api.example.com
112
+ - type: set
113
+ pointer: /info/title
114
+ value: Public API
115
+ removeUnusedComponents: true
116
+ ```
117
+
118
+ For a private staging variant, omit `remove-internal-operations` and change the server to `https://staging.example.com`. Swagger 2.0 uses set steps for `/host` (`staging.example.com`), `/basePath` (`/v1`), and `/schemes` (`[https]`). AsyncAPI 2.x uses a `/servers` map, such as `{staging: {url: staging.example.com, protocol: amqp}}`; AsyncAPI 3.x uses `{staging: {host: staging.example.com, protocol: amqp}}`. Existing path-, operation-, or channel-level overrides remain unchanged: edit those explicitly, for example `/paths/~1pets/servers` in OpenAPI or `/paths/~1pets/get/schemes` in Swagger 2.0. AsyncAPI 2.x channel server-name lists must still name entries in the replacement map; AsyncAPI 3.x channel server references must still resolve.
119
+
120
+ Steps run in listed order against the bundled document. `set` adds or replaces the value at an exact JSON Pointer; it does not merge objects or append arrays. `remove` deletes an exact target. Escape `/` as `~1` and `~` as `~0` in pointer segments. Parents and array indices must already exist, and removals must match. Root replacement and prototype paths are rejected. Example metadata removal: `{type: remove, pointer: /info/x-internal-notes}`. Examples and other literal data are only edited when explicitly targeted.
121
+
122
+ `remove-internal-operations` removes operations marked `x-internal: true`, including operations under internal paths/channels. It covers OpenAPI paths, webhooks, callbacks and reusable `components/pathItems` (even without component pruning); Swagger paths; AsyncAPI 2.x publish/subscribe; and AsyncAPI 3.x operations. Matching nothing is a successful no-op. Unused reusable content remains unless `removeUnusedComponents: true` is set. That option follows references, security schemes and discriminator mappings, preserves reachable cycles, and removes unused reusable content; AsyncAPI 3.x channels are retained through their operations. This is not a guarantee that all confidential text has been removed: explicitly remove any other private metadata or examples.
123
+
124
+ The sequence is source loading/reference inspection, bundling without pruning, ordered edits on a copy, optional pruning, reference/format validation, then serialization and output. Unresolved source references fail even when a later filter would remove them. Invalid configuration, missing targets, dangling retained references and invalid final descriptions fail without changing the destination. There is no incomplete-output mode. Source formatting and YAML comments are not preserved. Identical source graphs, configuration and CLI versions produce deterministic output; remote URLs must be pinned by the caller for reproducible builds. Dynamic references retain matching dynamic anchors conservatively. Their targets must resolve within the bundled graph; unresolved targets and unsupported `$recursiveRef` semantics fail before writing. This configuration is not OpenAPI Overlay or a plugin API.
125
+
52
126
  ### Format files or piped input
53
127
 
54
128
  ```bash
@@ -204,10 +278,10 @@ jobs:
204
278
  - uses: actions/setup-node@v6
205
279
  with:
206
280
  node-version: 24
207
- - run: npx --yes @scalar/cli document lint openapi.yaml --format github-actions
281
+ - run: npx --yes @scalar/cli document lint --format github-actions
208
282
  ```
209
283
 
210
- `--format github-actions` turns findings into annotations on the pull request. [JSON output, JUnit reports, and lint baselines →](https://scalar.com/tools/cli/ci-and-scripting)
284
+ The CI command lints every API in `scalar.config`. `--format github-actions` turns findings into annotations on the pull request. [JSON output, JUnit reports, and lint baselines →](https://scalar.com/tools/cli/ci-and-scripting)
211
285
 
212
286
  To fail a job when a schema in the repository drifts from the published version, run `schema diff` with `--check`. `--verbose` prints every changed value to the job log, and a distinct exit code such as `--check 2` lets the job tell schema drift apart from an authentication or network error, which exit 1:
213
287
 
@@ -234,7 +308,7 @@ Put `--check` after the two schemas, or write `--check=<n>`: an optional value t
234
308
  | --- | --- | --- |
235
309
  | [`scalar auth`](https://scalar.com/tools/cli/commands/auth) | Log in to Scalar and manage your session | `login`, `whoami`, `logout` |
236
310
  | [`scalar access-group`](https://scalar.com/tools/cli/commands/access-group) | Manage access groups, allowed emails and domains for the current team | `list`, `create`, `get`, `update`, `delete`, `domain add`, `domain remove`, `email add`, `email remove` |
237
- | [`scalar document`](https://scalar.com/tools/cli/commands/document) | Work with OpenAPI and AsyncAPI descriptions | `bundle`, `split`, `join`, `format`, `convert`, `markdown`, `mock`, `serve`, `share`, `validate`, `void`, `lint`, `upgrade` |
311
+ | [`scalar document`](https://scalar.com/tools/cli/commands/document) | Work with OpenAPI and AsyncAPI descriptions | `bundle`, `transform`, `split`, `join`, `format`, `convert`, `markdown`, `mock`, `serve`, `share`, `validate`, `void`, `lint`, `upgrade` |
238
312
  | [`scalar project`](https://scalar.com/tools/cli/commands/project) | Manage Scalar Docs projects | `list`, `get`, `init`, `check-config`, `create`, `preview`, `publish`, `rollback`, `deployments list`, `deployments get`, `upgrade` |
239
313
  | [`scalar mcp`](https://scalar.com/tools/cli/commands/mcp) | Manage Scalar-hosted MCP servers | `list`, `get`, `create`, `update`, `delete` |
240
314
  | [`scalar registry`](https://scalar.com/tools/cli/commands/registry) | Manage API descriptions in the Scalar Registry | `publish`, `update`, `delete`, `list`, `get` |
@@ -1,7 +1,7 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
2
  import {
3
3
  normalizeVisibility
4
- } from "./chunk-BIYCLKLZ.js";
4
+ } from "./chunk-RELSIFIL.js";
5
5
  import "./chunk-NAC63XJF.js";
6
6
  import {
7
7
  requireInteractive,
@@ -13,26 +13,25 @@ import {
13
13
  } from "./chunk-SNQFFEYH.js";
14
14
  import {
15
15
  apiService
16
- } from "./chunk-VNMVAJ6X.js";
17
- import "./chunk-XGKFAPON.js";
18
- import "./chunk-YFUHTGGP.js";
19
- import "./chunk-4TSZVWGM.js";
20
- import "./chunk-63AB5A5B.js";
21
- import "./chunk-I4FQOD5L.js";
16
+ } from "./chunk-U36HEOGO.js";
17
+ import "./chunk-MRZ5A7LB.js";
18
+ import "./chunk-CYIGEQOJ.js";
19
+ import "./chunk-4BMOCIYO.js";
20
+ import "./chunk-F6E7FJEC.js";
21
+ import "./chunk-DVA4NCCY.js";
22
22
  import "./chunk-BIQFYZP6.js";
23
- import "./chunk-QDT27U6O.js";
24
- import "./chunk-SVDXXGEO.js";
25
- import "./chunk-YTJ67DWS.js";
26
- import "./chunk-3BZ3VY6H.js";
23
+ import "./chunk-KSY2GH53.js";
24
+ import "./chunk-ZMJW5UWU.js";
25
+ import "./chunk-7LUXRNKV.js";
27
26
  import {
28
27
  output
29
28
  } from "./chunk-T5HJUAWB.js";
30
29
  import "./chunk-DUIMDHQQ.js";
31
- import "./chunk-CAD672DX.js";
32
- import "./chunk-36AMOACU.js";
33
- import "./chunk-QLKBXVUV.js";
34
- import "./chunk-4YQNT5UH.js";
35
- import "./chunk-KYCM5SL3.js";
30
+ import "./chunk-Y3CXAIAG.js";
31
+ import "./chunk-GXKNYM54.js";
32
+ import "./chunk-RGJPENX7.js";
33
+ import "./chunk-5GZAGHKL.js";
34
+ import "./chunk-JBMHCTZD.js";
36
35
  import "./chunk-3MZYUBJ6.js";
37
36
 
38
37
  // src/domains/registry/update/action.ts
@@ -4,22 +4,21 @@ import {
4
4
  } from "./chunk-WGTZEX4Y.js";
5
5
  import {
6
6
  isAsyncApiContent
7
- } from "./chunk-KDEKIOIP.js";
7
+ } from "./chunk-CWCRBWA6.js";
8
8
  import "./chunk-A2MPF6GE.js";
9
9
  import "./chunk-FDW4LC45.js";
10
10
  import "./chunk-4ORL4MST.js";
11
- import "./chunk-QDT27U6O.js";
11
+ import "./chunk-KSY2GH53.js";
12
12
  import {
13
13
  config
14
- } from "./chunk-YTJ67DWS.js";
15
- import "./chunk-3BZ3VY6H.js";
14
+ } from "./chunk-7LUXRNKV.js";
16
15
  import {
17
16
  output
18
17
  } from "./chunk-T5HJUAWB.js";
19
18
  import "./chunk-DUIMDHQQ.js";
20
- import "./chunk-CAD672DX.js";
21
- import "./chunk-4YQNT5UH.js";
22
- import "./chunk-KYCM5SL3.js";
19
+ import "./chunk-Y3CXAIAG.js";
20
+ import "./chunk-5GZAGHKL.js";
21
+ import "./chunk-JBMHCTZD.js";
23
22
  import "./chunk-3MZYUBJ6.js";
24
23
 
25
24
  // src/domains/document/share/action.ts
@@ -10,26 +10,25 @@ import {
10
10
  } from "./chunk-SNQFFEYH.js";
11
11
  import {
12
12
  apiService
13
- } from "./chunk-VNMVAJ6X.js";
14
- import "./chunk-XGKFAPON.js";
15
- import "./chunk-YFUHTGGP.js";
16
- import "./chunk-4TSZVWGM.js";
17
- import "./chunk-63AB5A5B.js";
18
- import "./chunk-I4FQOD5L.js";
13
+ } from "./chunk-U36HEOGO.js";
14
+ import "./chunk-MRZ5A7LB.js";
15
+ import "./chunk-CYIGEQOJ.js";
16
+ import "./chunk-4BMOCIYO.js";
17
+ import "./chunk-F6E7FJEC.js";
18
+ import "./chunk-DVA4NCCY.js";
19
19
  import "./chunk-BIQFYZP6.js";
20
- import "./chunk-QDT27U6O.js";
21
- import "./chunk-SVDXXGEO.js";
22
- import "./chunk-YTJ67DWS.js";
23
- import "./chunk-3BZ3VY6H.js";
20
+ import "./chunk-KSY2GH53.js";
21
+ import "./chunk-ZMJW5UWU.js";
22
+ import "./chunk-7LUXRNKV.js";
24
23
  import {
25
24
  output
26
25
  } from "./chunk-T5HJUAWB.js";
27
26
  import "./chunk-DUIMDHQQ.js";
28
- import "./chunk-CAD672DX.js";
29
- import "./chunk-36AMOACU.js";
30
- import "./chunk-QLKBXVUV.js";
31
- import "./chunk-4YQNT5UH.js";
32
- import "./chunk-KYCM5SL3.js";
27
+ import "./chunk-Y3CXAIAG.js";
28
+ import "./chunk-GXKNYM54.js";
29
+ import "./chunk-RGJPENX7.js";
30
+ import "./chunk-5GZAGHKL.js";
31
+ import "./chunk-JBMHCTZD.js";
33
32
  import "./chunk-3MZYUBJ6.js";
34
33
 
35
34
  // src/domains/project/create/action.ts
@@ -1,57 +1,59 @@
1
1
  import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
2
+ import {
3
+ defaultWaitSeconds,
4
+ finishPublish,
5
+ timeoutSchema
6
+ } from "./chunk-5EO2CVAR.js";
7
+ import "./chunk-36UI2W7I.js";
2
8
  import {
3
9
  resolveProject
4
10
  } from "./chunk-TSURUX4A.js";
5
11
  import {
6
12
  readAndParseConfig,
7
13
  renderConfigError
8
- } from "./chunk-DXEHHE6H.js";
14
+ } from "./chunk-KI2AVDKM.js";
15
+ import "./chunk-S3LY7RKP.js";
9
16
  import {
10
17
  DEFAULT_ASSETS_DIR
11
- } from "./chunk-H6LOSAC7.js";
12
- import {
13
- defaultWaitSeconds,
14
- finishPublish,
15
- timeoutSchema
16
- } from "./chunk-SKXMYIA2.js";
17
- import "./chunk-B3CMXTHQ.js";
18
- import "./chunk-RVZZQKVE.js";
19
- import "./chunk-XQPB4OGW.js";
18
+ } from "./chunk-M34HMQMV.js";
19
+ import "./chunk-I25ZCHBJ.js";
20
+ import "./chunk-O3I3LTTJ.js";
21
+ import "./chunk-PMDHYIB4.js";
22
+ import "./chunk-O4DJIA6Y.js";
20
23
  import "./chunk-SNQFFEYH.js";
21
- import "./chunk-HNWIIDGX.js";
24
+ import "./chunk-Z7EH7CJC.js";
22
25
  import {
23
26
  apiService
24
- } from "./chunk-VNMVAJ6X.js";
25
- import "./chunk-XGKFAPON.js";
26
- import "./chunk-YFUHTGGP.js";
27
- import "./chunk-4TSZVWGM.js";
28
- import "./chunk-63AB5A5B.js";
29
- import "./chunk-I4FQOD5L.js";
27
+ } from "./chunk-U36HEOGO.js";
28
+ import "./chunk-MRZ5A7LB.js";
29
+ import "./chunk-CYIGEQOJ.js";
30
+ import "./chunk-4BMOCIYO.js";
31
+ import "./chunk-F6E7FJEC.js";
32
+ import "./chunk-DVA4NCCY.js";
30
33
  import "./chunk-BIQFYZP6.js";
31
34
  import "./chunk-RE5Z56QD.js";
32
35
  import "./chunk-4ORL4MST.js";
33
- import "./chunk-QDT27U6O.js";
36
+ import "./chunk-KSY2GH53.js";
34
37
  import "./chunk-VUXPDHTQ.js";
35
38
  import {
36
39
  getAuthData
37
- } from "./chunk-SVDXXGEO.js";
38
- import "./chunk-YTJ67DWS.js";
39
- import "./chunk-3BZ3VY6H.js";
40
+ } from "./chunk-ZMJW5UWU.js";
41
+ import "./chunk-7LUXRNKV.js";
40
42
  import {
41
43
  output
42
44
  } from "./chunk-T5HJUAWB.js";
43
45
  import "./chunk-DUIMDHQQ.js";
44
- import "./chunk-CAD672DX.js";
45
- import "./chunk-36AMOACU.js";
46
+ import "./chunk-Y3CXAIAG.js";
47
+ import "./chunk-GXKNYM54.js";
46
48
  import {
47
49
  ConfigVersion,
48
50
  isGithubBackedDocsProject
49
- } from "./chunk-QLKBXVUV.js";
50
- import "./chunk-4YQNT5UH.js";
51
+ } from "./chunk-RGJPENX7.js";
52
+ import "./chunk-5GZAGHKL.js";
51
53
  import {
52
54
  slugSchema,
53
55
  zod_default
54
- } from "./chunk-KYCM5SL3.js";
56
+ } from "./chunk-JBMHCTZD.js";
55
57
  import "./chunk-3MZYUBJ6.js";
56
58
 
57
59
  // src/domains/project/publish/action.ts
@@ -4,9 +4,11 @@ import {
4
4
  DEFAULT_MARKDOWN_FILE_NAME,
5
5
  DEFAULT_OPENAPI_FILE_NAME,
6
6
  findConfig,
7
- getCurrentFolderName,
7
+ getCurrentFolderName
8
+ } from "./chunk-S3LY7RKP.js";
9
+ import {
8
10
  scalarConfigSchema
9
- } from "./chunk-H6LOSAC7.js";
11
+ } from "./chunk-M34HMQMV.js";
10
12
  import {
11
13
  canPrompt,
12
14
  confirm,
@@ -19,21 +21,20 @@ import {
19
21
  } from "./chunk-SNQFFEYH.js";
20
22
  import {
21
23
  apiService
22
- } from "./chunk-VNMVAJ6X.js";
23
- import "./chunk-XGKFAPON.js";
24
- import "./chunk-YFUHTGGP.js";
25
- import "./chunk-4TSZVWGM.js";
26
- import "./chunk-63AB5A5B.js";
27
- import "./chunk-I4FQOD5L.js";
24
+ } from "./chunk-U36HEOGO.js";
25
+ import "./chunk-MRZ5A7LB.js";
26
+ import "./chunk-CYIGEQOJ.js";
27
+ import "./chunk-4BMOCIYO.js";
28
+ import "./chunk-F6E7FJEC.js";
29
+ import "./chunk-DVA4NCCY.js";
28
30
  import "./chunk-BIQFYZP6.js";
29
- import "./chunk-QDT27U6O.js";
31
+ import "./chunk-KSY2GH53.js";
30
32
  import {
31
33
  getMetadata
32
- } from "./chunk-SVDXXGEO.js";
34
+ } from "./chunk-ZMJW5UWU.js";
33
35
  import {
34
36
  config
35
- } from "./chunk-YTJ67DWS.js";
36
- import "./chunk-3BZ3VY6H.js";
37
+ } from "./chunk-7LUXRNKV.js";
37
38
  import {
38
39
  output
39
40
  } from "./chunk-T5HJUAWB.js";
@@ -41,26 +42,26 @@ import {
41
42
  err,
42
43
  ok
43
44
  } from "./chunk-DUIMDHQQ.js";
44
- import "./chunk-CAD672DX.js";
45
- import "./chunk-36AMOACU.js";
46
- import "./chunk-QLKBXVUV.js";
47
- import "./chunk-4YQNT5UH.js";
45
+ import "./chunk-Y3CXAIAG.js";
46
+ import "./chunk-GXKNYM54.js";
47
+ import "./chunk-RGJPENX7.js";
48
+ import "./chunk-5GZAGHKL.js";
48
49
  import {
49
50
  slugify
50
- } from "./chunk-KYCM5SL3.js";
51
+ } from "./chunk-JBMHCTZD.js";
51
52
  import "./chunk-3MZYUBJ6.js";
52
53
 
53
54
  // src/domains/project/init/action.ts
54
55
  import path2 from "node:path";
55
56
  import as from "ansis";
56
57
 
57
- // ../../node_modules/.pnpm/@scalar+galaxy@0.7.2/node_modules/@scalar/galaxy/dist/3.1.json
58
+ // ../../node_modules/.pnpm/@scalar+galaxy@0.7.3/node_modules/@scalar/galaxy/dist/3.1.json
58
59
  var __default = {
59
60
  openapi: "3.1.1",
60
61
  info: {
61
62
  title: "Scalar Galaxy",
62
63
  description: "The Scalar Galaxy is an example OpenAPI document to test OpenAPI tools and libraries. It's a fictional universe with fictional planets and fictional data.\n\n## Resources\n\n* https://github.com/scalar/scalar\n* https://github.com/OAI/OpenAPI-Specification\n* https://scalar.com\n\n## Markdown Support\n\nAll descriptions *can* contain ~~tons of text~~ **Markdown**. [If GitHub supports the syntax](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax), chances are we're supporting it, too.\n\n<details>\n <summary>Examples</summary>\n\n **Blockquotes**\n\n > I love OpenAPI. <3\n\n **Tables**\n\n | Feature | Availability |\n | ---------------- | ------------ |\n | Markdown Support | \u2713 |\n\n **Accordion**\n\n ```html\n <details>\n <summary>Using Details Tags</summary>\n <p>HTML Example</p>\n </details>\n ```\n\n **Images**\n\n Yes, there's support for images, too!\n\n ![Empty placeholder image showing the width/height](https://images.placeholders.dev/?width=1280&height=720)\n\n **Alerts**\n\n > [!tip]\n > You can use Markdown alerts in your descriptions.\n\n</details>\n",
63
- version: "0.7.2",
64
+ version: "0.7.3",
64
65
  contact: {
65
66
  name: "Scalar Support",
66
67
  url: "https://scalar.com",