andesine 0.1.0 → 0.4.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 (81) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +27 -8
  3. package/dist/cli.js +1611 -121
  4. package/dist/cli.js.map +1 -1
  5. package/dist/config.schema.json +20 -3
  6. package/dist/templates/pages/.env.example +5 -0
  7. package/dist/templates/pages/AGENTS.md +79 -0
  8. package/dist/templates/pages/LICENSE +21 -0
  9. package/dist/templates/pages/README.md +72 -0
  10. package/dist/templates/pages/andesine.config.ts +39 -0
  11. package/dist/templates/pages/astro.config.ts +23 -0
  12. package/dist/templates/pages/gitignore +13 -0
  13. package/dist/templates/pages/package.template.json +45 -0
  14. package/dist/templates/pages/src/api/openapi.yaml +246 -0
  15. package/dist/templates/pages/src/assets/andesine.svg +1 -0
  16. package/dist/templates/pages/src/assets/andesine.ts +6 -0
  17. package/dist/templates/pages/src/assets/favicon.svg +13 -0
  18. package/dist/templates/pages/src/assets/social-dots.svg +14 -0
  19. package/dist/templates/pages/src/components/content/callout.astro +26 -0
  20. package/dist/templates/pages/src/components/content/card-grid.astro +1 -0
  21. package/dist/templates/pages/src/components/content/card.astro +31 -0
  22. package/dist/templates/pages/src/components/content/code-block.astro +34 -0
  23. package/dist/templates/pages/src/components/content/code-group.astro +13 -0
  24. package/dist/templates/pages/src/components/content/copy-button.tsx +53 -0
  25. package/dist/templates/pages/src/components/content/disclosure.astro +26 -0
  26. package/dist/templates/pages/src/components/content/figure.astro +10 -0
  27. package/dist/templates/pages/src/components/content/file-tree.astro +47 -0
  28. package/dist/templates/pages/src/components/content/index.ts +30 -0
  29. package/dist/templates/pages/src/components/content/steps.astro +16 -0
  30. package/dist/templates/pages/src/components/content/tab.astro +7 -0
  31. package/dist/templates/pages/src/components/content/tabs.astro +15 -0
  32. package/dist/templates/pages/src/components/content/tabs.tsx +99 -0
  33. package/dist/templates/pages/src/components/effects/page-scroll-shadow.tsx +27 -0
  34. package/dist/templates/pages/src/components/effects/page-scrollbar.tsx +35 -0
  35. package/dist/templates/pages/src/components/layout/call-to-action.tsx +28 -0
  36. package/dist/templates/pages/src/components/layout/footer.astro +44 -0
  37. package/dist/templates/pages/src/components/layout/group-label.tsx +34 -0
  38. package/dist/templates/pages/src/components/layout/header.astro +53 -0
  39. package/dist/templates/pages/src/components/layout/mobile-navigation.tsx +51 -0
  40. package/dist/templates/pages/src/components/layout/navigation-links.tsx +57 -0
  41. package/dist/templates/pages/src/components/layout/navigation-tree.tsx +138 -0
  42. package/dist/templates/pages/src/components/layout/outline.tsx +162 -0
  43. package/dist/templates/pages/src/components/layout/page-actions.tsx +87 -0
  44. package/dist/templates/pages/src/components/layout/powered-by.tsx +29 -0
  45. package/dist/templates/pages/src/components/layout/section-tabs.tsx +83 -0
  46. package/dist/templates/pages/src/components/layout/sidebar.tsx +65 -0
  47. package/dist/templates/pages/src/components/primitives/button.tsx +121 -0
  48. package/dist/templates/pages/src/components/primitives/card.tsx +25 -0
  49. package/dist/templates/pages/src/components/primitives/dialog.tsx +47 -0
  50. package/dist/templates/pages/src/components/primitives/input.tsx +22 -0
  51. package/dist/templates/pages/src/components/primitives/logo.tsx +41 -0
  52. package/dist/templates/pages/src/components/primitives/menu.tsx +121 -0
  53. package/dist/templates/pages/src/components/primitives/scroll-area.tsx +103 -0
  54. package/dist/templates/pages/src/components/primitives/shortcut.tsx +60 -0
  55. package/dist/templates/pages/src/components/primitives/tooltip.tsx +39 -0
  56. package/dist/templates/pages/src/components/reference/facts.astro +27 -0
  57. package/dist/templates/pages/src/components/reference/fields.astro +102 -0
  58. package/dist/templates/pages/src/components/reference/method-badge.astro +18 -0
  59. package/dist/templates/pages/src/components/reference/methods.ts +17 -0
  60. package/dist/templates/pages/src/components/reference/operation.astro +252 -0
  61. package/dist/templates/pages/src/components/reference/styles.ts +14 -0
  62. package/dist/templates/pages/src/components/search/highlighted-text.tsx +22 -0
  63. package/dist/templates/pages/src/components/search/search-answer.tsx +123 -0
  64. package/dist/templates/pages/src/components/search/search-palette.tsx +174 -0
  65. package/dist/templates/pages/src/components/search/search-results.tsx +229 -0
  66. package/dist/templates/pages/src/components/social/card.ts +77 -0
  67. package/dist/templates/pages/src/content/docs/customization/index.mdx +11 -0
  68. package/dist/templates/pages/src/content/docs/customization/styles.mdx +18 -0
  69. package/dist/templates/pages/src/content/docs/getting-started/api-reference.mdx +100 -0
  70. package/dist/templates/pages/src/content/docs/getting-started/components.mdx +156 -0
  71. package/dist/templates/pages/src/content/docs/getting-started/configuration.mdx +194 -0
  72. package/dist/templates/pages/src/content/docs/getting-started/deployment.mdx +142 -0
  73. package/dist/templates/pages/src/content/docs/getting-started/index.mdx +22 -0
  74. package/dist/templates/pages/src/content/docs/getting-started/writing-pages.mdx +35 -0
  75. package/dist/templates/pages/src/content/docs/index.mdx +21 -0
  76. package/dist/templates/pages/src/content.config.ts +1 -0
  77. package/dist/templates/pages/src/layouts/page.astro +195 -0
  78. package/dist/templates/pages/src/styles/global.css +95 -0
  79. package/dist/templates/pages/tsconfig.json +10 -0
  80. package/dist/templates/pages/uno.config.ts +168 -0
  81. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0
4
+
5
+ - Add `andesine pages init [directory]`, which creates an Andesine Pages site from
6
+ the template of the same release in a new or empty directory (default `docs`).
7
+ - Depend on `@andesine/sdk` 0.4.0. Align the version with the other Andesine
8
+ packages.
9
+
10
+ ## 0.3.0
11
+
12
+ - Add generated webhook commands for management (including bulk enable/disable and
13
+ delete), delivery history, signed tests, and single or bulk replay.
14
+
15
+ ## 0.2.0
16
+
17
+ - Add slug-path API flags, collection selection, and generated type bindings.
18
+
3
19
  ## 0.1.0
4
20
 
5
21
  - Add `types generate`, read-only `--check`, foreground `--watch`, atomic output
package/README.md CHANGED
@@ -21,6 +21,17 @@ andesine --help
21
21
  andesine --version
22
22
  ```
23
23
 
24
+ ## Documentation sites
25
+
26
+ ```sh
27
+ npx andesine pages init docs
28
+ ```
29
+
30
+ Creates an Andesine Pages site in a new or empty directory (default `docs`) from the
31
+ template of this CLI release, with `@andesine/pages` and `@andesine/ui` pinned to the
32
+ same version. Then run `npm install` and `npm run dev` in the directory. The command
33
+ needs no credentials.
34
+
24
35
  ## Project configuration
25
36
 
26
37
  Run `andesine init` for guided setup. It uses Clack prompts and progress indicators
@@ -45,9 +56,10 @@ changed by flags. `--snapshot snp_…` selects a fixed snapshot instead of a cha
45
56
  Use `--include-entry-ids`, `--include-entry-paths`, and `--include-tree` to opt into
46
57
  additional types, or their `--no-…` forms to remove existing selections.
47
58
 
48
- The collection picker offers IDs for rename stability or paths for readability.
59
+ The collection picker offers IDs for rename stability, name paths, and slug paths.
49
60
  `--collection` accepts one or more IDs or decoded paths, including collection-ID
50
- anchors. The API validates them against the selected source. `--all-collections`
61
+ anchors. Use `--collection-slug-path /docs` for derived URL paths; it can be
62
+ combined with `--collection`. The API validates them against the selected source. `--all-collections`
51
63
  clears an existing selection. Empty collection selections mean all accessible
52
64
  collections, including collections added later.
53
65
 
@@ -103,7 +115,8 @@ rejected. Trailing slashes are removed.
103
115
  The default type source is the `published` channel. Use
104
116
  `{ "kind": "published", "snapshotID": "snp_example" }` for a fixed snapshot, or
105
117
  `{ "kind": "current" }` for current schemas. Channel and snapshot are exclusive.
106
- Collection selectors are IDs or paths, resolved by the API in the generation
118
+ Collection selectors are IDs, name paths, or `{ "collectionSlugPath": "/docs" }`
119
+ objects, resolved by the API in the generation
107
120
  step. An omitted or empty collection list selects all accessible collections.
108
121
  Entry IDs, entry paths, and tree types are off by default.
109
122
 
@@ -218,12 +231,14 @@ andesine api --help
218
231
  andesine api content get-tree --help
219
232
  andesine api entries create --schema
220
233
  andesine api content get-tree --channel published
221
- andesine api content get --path /Docs/Introduction --channel published --full
234
+ andesine api content get --slug-path /docs/introduction --channel published --full
222
235
  andesine api content list-entries --channel published --paginate
223
236
  andesine api search published --input @search.json --semantic false
224
237
  andesine api search ask-published-stream --input @question.json --format text
225
238
  andesine api assets upload --asset-id ast_example --file ./image.png
226
239
  andesine api type-metadata get-published --collections '["/Tutorials"]'
240
+ andesine api webhooks list
241
+ andesine api webhooks send-test --help
227
242
  ```
228
243
 
229
244
  Pass simple values as flags, or supply an API input object through `--input @file`
@@ -278,7 +293,7 @@ type without warnings. These API commands return metadata only; use
278
293
  andesine types generate
279
294
  andesine types generate --check
280
295
  andesine types generate --watch
281
- andesine types generate --source current --collection /Tutorials
296
+ andesine types generate --source current --collection-slug-path /tutorials
282
297
  andesine types generate --snapshot snp_example --include-entry-paths
283
298
  andesine init --generate
284
299
  ```
@@ -333,6 +348,10 @@ allowed block kinds. Custom element names and properties remain general because
333
348
  schemas do not define them. Defaults are not treated as value constraints.
334
349
  Empty and schema-free collections use general content types without warnings.
335
350
 
351
+ `--include-entry-paths` emits both name-path and slug-path bindings, plus named
352
+ `EntryPath` and `EntrySlugPath` unions. Collection and tree bindings include slug
353
+ paths automatically.
354
+
336
355
  Entry ID bindings, entry path bindings, and ordered tree types are separate
337
356
  opt-ins. Tree exports include their entry identities. Published trees narrow
338
357
  `content.getTree()`; current trees describe the metadata's child-ID lists only.
@@ -354,9 +373,9 @@ values, content bodies, or timestamps.
354
373
  ## Development
355
374
 
356
375
  ```sh
357
- pnpm --filter ./packages/public/cli typecheck
358
- pnpm --filter ./packages/public/cli generate:api
359
- pnpm --filter ./packages/public/cli build
376
+ pnpm exec turbo run typecheck --filter=andesine
377
+ pnpm api:generate
378
+ pnpm build --filter=andesine
360
379
  node packages/public/cli/dist/cli.js --help
361
380
  ```
362
381