@leed-ai/cli 0.0.0-stage → 6.19.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/LICENSE.md +57 -0
- package/README.md +125 -2
- package/dist/LICENSE.md +57 -0
- package/dist/acorn-DAgDT1om.js +5087 -0
- package/dist/angular-l0_4PK8N.js +3598 -0
- package/dist/authShared-Dray38Ls.js +1161 -0
- package/dist/babel-CJeRQd5u.js +10038 -0
- package/dist/buildResults-tiq1nugP.js +21180 -0
- package/dist/chunk-1VJ9lAw7.js +42 -0
- package/dist/cliAuth-38JjD6hw.js +15 -0
- package/dist/env-B0bHiXJJ.js +29 -0
- package/dist/errors-CqKamGCu.js +481 -0
- package/dist/estree-E8WG8UHj.js +6930 -0
- package/dist/flow-6xaRIbPQ.js +52255 -0
- package/dist/glimmer-aJPjsfbT.js +7272 -0
- package/dist/graphql-mcgtPEiZ.js +1901 -0
- package/dist/html--eeea3Kl.js +6553 -0
- package/dist/leed.eleventy.mjs +6525 -0
- package/dist/leed.mjs +88952 -0
- package/dist/leed.sources.json +798 -0
- package/dist/leedLogger-Zkada5aO.js +78 -0
- package/dist/markdown-D73jNKwx.js +6836 -0
- package/dist/meriyah-CMp1nDDW.js +8932 -0
- package/dist/package.json +101 -0
- package/dist/postcss-h4fBr2Fn.js +6760 -0
- package/dist/prettier-CwFSKxfN.js +16821 -0
- package/dist/static/customer-site-worker/package.json +9 -0
- package/dist/static/customer-site-worker/src/assetsHydration.ts +55 -0
- package/dist/static/customer-site-worker/src/constants.ts +20 -0
- package/dist/static/customer-site-worker/src/cors.ts +120 -0
- package/dist/static/customer-site-worker/src/index.ts +242 -0
- package/dist/static/customer-site-worker/src/mcp-proxy.ts +98 -0
- package/dist/static/customer-site-worker/src/proxy.ts +92 -0
- package/dist/static/customer-site-worker/src/proxyHeaders.ts +47 -0
- package/dist/static/customer-site-worker/src/tier.ts +40 -0
- package/dist/static/customer-site-worker/src/types.ts +82 -0
- package/dist/static/customer-site-worker/test/functions-mock.worker.js +50 -0
- package/dist/static/customer-site-worker/tsconfig.json +19 -0
- package/dist/static/customer-site-worker/vitest.workers.config.ts +61 -0
- package/dist/static/install/husky/colors.mjs +5 -0
- package/dist/static/install/husky/hooks/commit-msg +1 -0
- package/dist/static/install/husky/hooks/pre-commit +1 -0
- package/dist/static/install/husky/hooks/pre-push +1 -0
- package/dist/static/install/husky/valid-command.mjs +29 -0
- package/dist/static/install/husky/valid-commit-msg.mjs +20 -0
- package/dist/static/install/package.json +10 -0
- package/dist/static/install/packages.txt +4 -0
- package/dist/static/install/tasks.json +111 -0
- package/dist/static/javascript/detectIncognito.js +195 -0
- package/dist/static/javascript/documentation.js +2781 -0
- package/dist/static/javascript/fp/fp.esm.js +2896 -0
- package/dist/static/javascript/fp/fp.js +3067 -0
- package/dist/static/javascript/live-search.js +986 -0
- package/dist/static/javascript/lunr-search.js +843 -0
- package/dist/static/javascript/timeme.js +451 -0
- package/dist/static/javascript/tracker/webmcp.js +67 -0
- package/dist/static/javascript/tracker/whisper.js +1 -0
- package/dist/static/javascript/utilities.js +819 -0
- package/dist/static/javascript/versions.json +74 -0
- package/dist/static/javascript/zoomable.js +488 -0
- package/dist/static/site/_data/eleventyComputed.js +228 -0
- package/dist/static/site/_data/leed-form-data.json +253 -0
- package/dist/static/site/_includes/leed/api/bits/array-type.hbs +24 -0
- package/dist/static/site/_includes/leed/api/bits/badges.hbs +9 -0
- package/dist/static/site/_includes/leed/api/bits/description.hbs +9 -0
- package/dist/static/site/_includes/leed/api/bits/examples.hbs +42 -0
- package/dist/static/site/_includes/leed/api/bits/scopes.hbs +28 -0
- package/dist/static/site/_includes/leed/api/object.hbs +110 -0
- package/dist/static/site/_includes/leed/api/parameters.hbs +11 -0
- package/dist/static/site/_includes/leed/api/property.hbs +153 -0
- package/dist/static/site/_includes/leed/api/request-body.hbs +51 -0
- package/dist/static/site/_includes/leed/api/responses.hbs +89 -0
- package/dist/static/site/_includes/leed/api/security-constraints.hbs +59 -0
- package/dist/static/site/_includes/leed/api/security.hbs +75 -0
- package/dist/static/site/_includes/leed/components/pagination.hbs +45 -0
- package/dist/static/site/_includes/leed/components/scroll-status-indicator-horizontal.hbs +22 -0
- package/dist/static/site/_includes/leed/docs/alpha/api.hbs +6 -0
- package/dist/static/site/_includes/leed/docs/alpha/base.hbs +26 -0
- package/dist/static/site/_includes/leed/docs/alpha/documentation.hbs +7 -0
- package/dist/static/site/_includes/leed/docs/api-article.hbs +75 -0
- package/dist/static/site/_includes/leed/docs/bravo/api.hbs +5 -0
- package/dist/static/site/_includes/leed/docs/bravo/base.hbs +31 -0
- package/dist/static/site/_includes/leed/docs/bravo/documentation.hbs +7 -0
- package/dist/static/site/_includes/leed/docs/charlie/api.hbs +6 -0
- package/dist/static/site/_includes/leed/docs/charlie/base.hbs +27 -0
- package/dist/static/site/_includes/leed/docs/charlie/documentation.hbs +10 -0
- package/dist/static/site/_includes/leed/docs/doc-article.hbs +40 -0
- package/dist/static/site/_includes/leed/docs/docs-footer.hbs +35 -0
- package/dist/static/site/_includes/leed/docs/docs-header.hbs +59 -0
- package/dist/static/site/_includes/leed/docs/document-search-modal.hbs +36 -0
- package/dist/static/site/_includes/leed/docs/document-search.hbs +23 -0
- package/dist/static/site/_includes/leed/docs/footer.hbs +12 -0
- package/dist/static/site/_includes/leed/docs/header/brand.hbs +19 -0
- package/dist/static/site/_includes/leed/docs/header/chrome.hbs +33 -0
- package/dist/static/site/_includes/leed/docs/header/compact.hbs +19 -0
- package/dist/static/site/_includes/leed/docs/header/cta.hbs +15 -0
- package/dist/static/site/_includes/leed/docs/header/nav.hbs +18 -0
- package/dist/static/site/_includes/leed/docs/header/top-search.hbs +15 -0
- package/dist/static/site/_includes/leed/docs/mini-bar.hbs +53 -0
- package/dist/static/site/_includes/leed/docs/pagination.hbs +19 -0
- package/dist/static/site/_includes/leed/docs/shell.hbs +56 -0
- package/dist/static/site/_includes/leed/docs/sidebar.hbs +52 -0
- package/dist/static/site/_includes/leed/docs/social-icons.hbs +81 -0
- package/dist/static/site/_includes/leed/docs/style.hbs +17 -0
- package/dist/static/site/_includes/leed/docs/toc.hbs +7 -0
- package/dist/static/site/_includes/leed/form.hbs +266 -0
- package/dist/static/site/_includes/leed/head.hbs +67 -0
- package/dist/static/site/_includes/leed/menu/builder.hbs +35 -0
- package/dist/static/site/_includes/leed/menu/item.hbs +67 -0
- package/dist/static/site/_includes/leed/menu/link.hbs +59 -0
- package/dist/static/site/_includes/leed/metadata/ogCard.hbs +40 -0
- package/dist/static/site/_includes/leed/metadata/siteMetadata.hbs +24 -0
- package/dist/static/site/_includes/leed/metadata/twitterCard.hbs +34 -0
- package/dist/static/site/_includes/leed/popup-video.hbs +21 -0
- package/dist/static/site/_includes/leed/stub-template.hbs +17 -0
- package/dist/static/site/_includes/leed/unsubscribe-form.hbs +30 -0
- package/dist/static/site/_layouts/leed-documentation.hbs +12 -0
- package/dist/static/site/leed-feed-atom.hbs +42 -0
- package/dist/static/site/leed-feed-json.hbs +56 -0
- package/dist/static/site/leed-feed-rss.hbs +39 -0
- package/dist/static/site/leed-headers.hbs +38 -0
- package/dist/static/site/leed-redirects.hbs +10 -0
- package/dist/static/site/leed-sitemap-pageType.hbs +28 -0
- package/dist/static/site/leed-sitemap.hbs +19 -0
- package/dist/static/site/leed-unsubscribe.hbs +44 -0
- package/dist/static/site/leed-unsubscribed.hbs +40 -0
- package/dist/static/tailwind/components/alerts.css +132 -0
- package/dist/static/tailwind/components/api-methods.css +39 -0
- package/dist/static/tailwind/components/breadcrumbs.css +31 -0
- package/dist/static/tailwind/components/code.css +88 -0
- package/dist/static/tailwind/components/collapsible.css +38 -0
- package/dist/static/tailwind/components/document-search.css +222 -0
- package/dist/static/tailwind/components/form.css +185 -0
- package/dist/static/tailwind/components/kbd.css +7 -0
- package/dist/static/tailwind/components/pagination.css +81 -0
- package/dist/static/tailwind/components/scroll-status-indicator.css +5 -0
- package/dist/static/tailwind/components/tab-groups.css +117 -0
- package/dist/static/tailwind/components/tables.css +0 -0
- package/dist/static/tailwind/components/toc.css +60 -0
- package/dist/static/tailwind/components.css +248 -0
- package/dist/static/tailwind/defaults.css +260 -0
- package/dist/static/tailwind/docs/api.css +701 -0
- package/dist/static/tailwind/docs/components/blockquote.css +5 -0
- package/dist/static/tailwind/docs/components/button.css +11 -0
- package/dist/static/tailwind/docs/components/docs-pagination.css +71 -0
- package/dist/static/tailwind/docs/components/mobile-bar.css +83 -0
- package/dist/static/tailwind/docs/components/navigation.css +279 -0
- package/dist/static/tailwind/docs/components/table.css +54 -0
- package/dist/static/tailwind/docs/components.css +6 -0
- package/dist/static/tailwind/docs/docs.css +427 -0
- package/dist/static/tailwind/docs/layouts/alpha.css +108 -0
- package/dist/static/tailwind/docs/layouts/bravo.css +218 -0
- package/dist/static/tailwind/docs/layouts/charlie.css +105 -0
- package/dist/static/tailwind/docs/layouts.css +3 -0
- package/dist/static/tailwind/docs/themes/amber.css +113 -0
- package/dist/static/tailwind/docs/themes/blue.css +94 -0
- package/dist/static/tailwind/docs/themes/cyan.css +111 -0
- package/dist/static/tailwind/docs/themes/emerald.css +111 -0
- package/dist/static/tailwind/docs/themes/fuchsia.css +111 -0
- package/dist/static/tailwind/docs/themes/green.css +95 -0
- package/dist/static/tailwind/docs/themes/indigo.css +111 -0
- package/dist/static/tailwind/docs/themes/lime.css +111 -0
- package/dist/static/tailwind/docs/themes/orange.css +111 -0
- package/dist/static/tailwind/docs/themes/pink.css +111 -0
- package/dist/static/tailwind/docs/themes/purple.css +111 -0
- package/dist/static/tailwind/docs/themes/red.css +111 -0
- package/dist/static/tailwind/docs/themes/rose.css +111 -0
- package/dist/static/tailwind/docs/themes/sky.css +111 -0
- package/dist/static/tailwind/docs/themes/teal.css +111 -0
- package/dist/static/tailwind/docs/themes/violet.css +111 -0
- package/dist/static/tailwind/docs/themes/yellow.css +111 -0
- package/dist/static/tailwind/docs/themes.css +84 -0
- package/dist/static/tailwind/font-awesome/free-7.3.1/brands.css +2455 -0
- package/dist/static/tailwind/font-awesome/free-7.3.1/fontawesome.css +8997 -0
- package/dist/static/tailwind/font-awesome/free-7.3.1/fonts.css +45 -0
- package/dist/static/tailwind/font-awesome/free-7.3.1/icons.json +2608 -0
- package/dist/static/tailwind/font-awesome/free-7.3.1.css +3 -0
- package/dist/static/tailwind/font-awesome/pro-7.0.0/brands.css +2215 -0
- package/dist/static/tailwind/font-awesome/pro-7.0.0/fontawesome.css +19281 -0
- package/dist/static/tailwind/font-awesome/pro-7.0.0/fonts.css +445 -0
- package/dist/static/tailwind/font-awesome/pro-7.0.0.css +3 -0
- package/dist/static/tailwind/font-awesome/pro-7.3.1/brands.css +2455 -0
- package/dist/static/tailwind/font-awesome/pro-7.3.1/fontawesome.css +20365 -0
- package/dist/static/tailwind/font-awesome/pro-7.3.1/fonts.css +589 -0
- package/dist/static/tailwind/font-awesome/pro-7.3.1.css +3 -0
- package/dist/static/tailwind/fonts/all.css +6 -0
- package/dist/static/tailwind/fonts/config.jsonc +31 -0
- package/dist/static/tailwind/fonts/geist-mono.css +142 -0
- package/dist/static/tailwind/fonts/geist.css +142 -0
- package/dist/static/tailwind/fonts/inter.css +215 -0
- package/dist/static/tailwind/fonts/jetbrains-mono.css +126 -0
- package/dist/static/tailwind/fonts/noto-sans.css +134 -0
- package/dist/static/tailwind/fonts/open-sans.css +89 -0
- package/dist/static/tailwind/highlighters.css +14 -0
- package/dist/static/tailwind/hljs/README.md +53 -0
- package/dist/static/tailwind/hljs/a11y.css +96 -0
- package/dist/static/tailwind/hljs/atom-fruit.css +90 -0
- package/dist/static/tailwind/hljs/atom-one.css +164 -0
- package/dist/static/tailwind/hljs/default.css +164 -0
- package/dist/static/tailwind/hljs/github.css +101 -0
- package/dist/static/tailwind/hljs/google-code.css +112 -0
- package/dist/static/tailwind/hljs/grayscale.css +115 -0
- package/dist/static/tailwind/hljs/gruvbox-hard.css +115 -0
- package/dist/static/tailwind/hljs/gruvbox-medium.css +115 -0
- package/dist/static/tailwind/hljs/gruvbox-soft.css +115 -0
- package/dist/static/tailwind/hljs/papercolor.css +120 -0
- package/dist/static/tailwind/hljs/qt-creator.css +91 -0
- package/dist/static/tailwind/hljs/summerfruit.css +115 -0
- package/dist/static/tailwind/hljs/tomorrow.css +115 -0
- package/dist/static/tailwind/leed.css +170 -0
- package/dist/static/tailwind/site-tokens.reference.css +105 -0
- package/dist/static/tailwind/utils/icons.css +102 -0
- package/dist/static/tailwind/utils/utilities.css +105 -0
- package/dist/static/templates/pages/PAGE.hbs +27 -0
- package/dist/static/templates/pages/PAGE_LAYOUT.hbs +19 -0
- package/dist/static/templates/pages/PAGE_TYPE_INDEX.hbs +89 -0
- package/dist/static/templates/pages/PAGINATED_PAGE_TYPE_ITEM.hbs +52 -0
- package/dist/static/templates/pages/PAGINATED_PAGE_TYPE_LIST.hbs +39 -0
- package/dist/static/templates/pages/PAGINATED_PAGE_TYPE_PAGINATION.hbs +11 -0
- package/dist/static/templates/raw-content/.ci/build.sh +58 -0
- package/dist/static/templates/raw-content/README.md +179 -0
- package/dist/static/templates/raw-content/_gitignore +50 -0
- package/dist/static/templates/raw-content/src/404.hbs +21 -0
- package/dist/static/templates/raw-content/src/_data/autolink.json +1 -0
- package/dist/static/templates/raw-content/src/_data/ctaList.json +1 -0
- package/dist/static/templates/raw-content/src/_data/leedForms.json +1 -0
- package/dist/static/templates/raw-content/src/_data/menu.json +1 -0
- package/dist/static/templates/raw-content/src/_includes/footer.hbs +18 -0
- package/dist/static/templates/raw-content/src/_includes/header-includes.hbs +25 -0
- package/dist/static/templates/raw-content/src/_includes/header.hbs +5 -0
- package/dist/static/templates/raw-content/src/_includes/site-template.hbs +23 -0
- package/dist/static/templates/raw-content/src/_includes/unsubscribe-DISABLED.hbs +17 -0
- package/dist/static/templates/raw-content/src/_includes/unsubscribed-DISABLED.hbs +13 -0
- package/dist/static/templates/raw-content/src/_layouts/empty.hbs +2 -0
- package/dist/static/templates/raw-content/src/index.hbs +21 -0
- package/dist/static/templates/raw-content/src/robots.hbs +9 -0
- package/dist/static/templates/raw-content/tailwind/site/base.css +44 -0
- package/dist/static/templates/raw-content/tailwind/site.config.css +3 -0
- package/dist/static/templates/sandbox/_gitignore +50 -0
- package/dist/static/templates/sandbox/identity.json +1 -0
- package/dist/static/templates/sandbox/src/404.hbs +21 -0
- package/dist/static/templates/sandbox/src/_data/autolink.json +1 -0
- package/dist/static/templates/sandbox/src/_data/ctaList.json +1 -0
- package/dist/static/templates/sandbox/src/_data/labelList.json +9 -0
- package/dist/static/templates/sandbox/src/_data/leedForms.json +20 -0
- package/dist/static/templates/sandbox/src/_data/menu.json +19 -0
- package/dist/static/templates/sandbox/src/_data/pageTypeList.json +14 -0
- package/dist/static/templates/sandbox/src/_data/searchIndexList.json +1 -0
- package/dist/static/templates/sandbox/src/_data/userList.json +11 -0
- package/dist/static/templates/sandbox/src/_includes/footer.hbs +18 -0
- package/dist/static/templates/sandbox/src/_includes/header-includes.hbs +25 -0
- package/dist/static/templates/sandbox/src/_includes/header.hbs +5 -0
- package/dist/static/templates/sandbox/src/_includes/site-template.hbs +23 -0
- package/dist/static/templates/sandbox/src/_layouts/empty.hbs +2 -0
- package/dist/static/templates/sandbox/src/index.hbs +20 -0
- package/dist/static/templates/sandbox/src/robots.hbs +9 -0
- package/dist/static/templates/sandbox/src/src.11tydata.json +39 -0
- package/dist/static/templates/sandbox/tailwind/site/base.css +44 -0
- package/dist/static/templates/sandbox/tailwind/site.config.css +3 -0
- package/dist/thrown-sukVkp_1.js +113 -0
- package/dist/typescript-D4T0V_Hn.js +23004 -0
- package/dist/yaml-9wR8GxF_.js +5236 -0
- package/package.json +157 -4
package/LICENSE.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# License Information
|
|
2
|
+
|
|
3
|
+
This software is licensed under the terms of the End User License Agreement (EULA) provided by Leed, Inc.
|
|
4
|
+
|
|
5
|
+
## SPDX Identifier
|
|
6
|
+
|
|
7
|
+
The source files in this project include the following SPDX license identifier:
|
|
8
|
+
|
|
9
|
+
* **SPDX-License-Identifier:** LicenseRef-Leed-EULA
|
|
10
|
+
|
|
11
|
+
### Explanation
|
|
12
|
+
|
|
13
|
+
> **LicenseRef-Leed-EULA**: This identifier refers to the proprietary license agreement specific to this software. It is not part of the standard SPDX License List but is defined here to indicate compliance with our custom licensing terms.
|
|
14
|
+
|
|
15
|
+
## End User License Agreement (EULA)
|
|
16
|
+
|
|
17
|
+
This End User License Agreement ("Agreement") is a legal agreement between you ("User") and Leed, Inc. ("Company") for the use of Site Management Application ("Software"). By installing or using the Software, you agree to be bound by the terms of this Agreement.
|
|
18
|
+
|
|
19
|
+
1. **License Grant**
|
|
20
|
+
|
|
21
|
+
Leed, Inc. grants you a non-exclusive, non-transferable license to install and use the Software on any number devices for business purposes, subject to the terms of this Agreement.
|
|
22
|
+
|
|
23
|
+
1. **Restrictions**
|
|
24
|
+
|
|
25
|
+
* You may not copy, modify, distribute, sell, or lease any part of the Software.
|
|
26
|
+
* You may not reverse engineer or attempt to extract the source code of the Software.
|
|
27
|
+
* You may not use the Software for any unlawful purposes.
|
|
28
|
+
|
|
29
|
+
1. **Ownership**
|
|
30
|
+
|
|
31
|
+
The Software is licensed, not sold. Leed, Inc. retains all rights, title, and interest in and to the Software, including all intellectual property rights.
|
|
32
|
+
|
|
33
|
+
1. **Termination**
|
|
34
|
+
|
|
35
|
+
This Agreement is effective until terminated. Your rights under this Agreement will terminate automatically without notice if you fail to comply with any term(s) of this Agreement. Upon termination, you must cease all use of the Software and destroy all copies.
|
|
36
|
+
|
|
37
|
+
1. **License Duration and Termination**
|
|
38
|
+
|
|
39
|
+
* The Software is licensed for use only while under a valid, active license agreement. The license is effective upon payment and activation and will remain in effect until the specified expiration date.
|
|
40
|
+
* Upon expiration of the license, your rights to use the Software will immediately cease. You must uninstall and delete all copies of the Software from your devices.
|
|
41
|
+
* Failure to comply with this requirement may result in legal action for unauthorized use of the Software.
|
|
42
|
+
|
|
43
|
+
1. **Disclaimer of Warranties**
|
|
44
|
+
|
|
45
|
+
The Software is provided "as is" without warranty of any kind. Leed, Inc. disclaims all warranties, express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose.
|
|
46
|
+
|
|
47
|
+
1. **Limitation of Liability**
|
|
48
|
+
|
|
49
|
+
In no event shall Leed, Inc. be liable for any special, incidental, indirect, or consequential damages whatsoever arising out of the use of or inability to use the Software.
|
|
50
|
+
|
|
51
|
+
1. **Governing Law**
|
|
52
|
+
|
|
53
|
+
This Agreement shall be governed by and construed in accordance with the laws of [Your State/Country], without regard to its conflict of law principles.
|
|
54
|
+
|
|
55
|
+
1. **Entire Agreement**
|
|
56
|
+
|
|
57
|
+
This Agreement constitutes the entire agreement between you and Leed, Inc. with respect to the Software and supersedes all prior or contemporaneous understandings regarding such subject matter.
|
package/README.md
CHANGED
|
@@ -1,3 +1,126 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Leed CLI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`@leed-ai/cli` installs the `leed` command: local development, preview and publishing for websites built on [Leed](https://leed.ai).
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm i -g @leed-ai/cli
|
|
9
|
+
# or
|
|
10
|
+
bun i -g @leed-ai/cli
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
No access token or registry configuration is needed: the package is on the public npm registry.
|
|
14
|
+
|
|
15
|
+
Then turn on shell tab completion (bash, zsh or fish). The package runs no install scripts, so a manual install does not do this for you; the one-line installer below and `/leed:setup` run it after installing:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
leed completion install
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Requirements:
|
|
22
|
+
|
|
23
|
+
- **Bun.** `leed` runs on Bun (`#!/usr/bin/env bun`), whichever package manager installed it. Get it from [bun.sh](https://bun.sh).
|
|
24
|
+
- **Node 22 or newer.**
|
|
25
|
+
- **git 2.31 or newer.** The content repository access token is supplied to git through its config environment variables (`GIT_CONFIG_COUNT`), which git gained in 2.31; an older git ignores them silently and every authenticated operation fails as if no credential had been given.
|
|
26
|
+
|
|
27
|
+
Most people never run the install by hand: the one-line installer at `https://app.leed.ai/install` installs Bun if needed (only after a yes at a terminal), the CLI and completion, and then runs `leed setup` for the environment it was served from, which signs you in and sets up your site. Without a terminal (CI, a pipe with no TTY) it stops after installing the CLI and prints the `leed setup` command to run.
|
|
28
|
+
|
|
29
|
+
## First-time setup
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
leed setup --env production # sign in, choose the folder (default ~/leed), set the site up
|
|
33
|
+
leed setup --env production --company acme.com # reuse the saved login for that company
|
|
34
|
+
leed setup --env production --new-login # sign in again and choose another company
|
|
35
|
+
leed setup --env production --json # unattended: no prompts, defaults, one JSON document
|
|
36
|
+
leed setup --env production --check --json # only report what is left to do; changes nothing
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
`leed setup` works on exactly one environment, named by `--env` or `ENV_NAME`; it never falls back to a default or to a login saved for another environment, and it prints the environment and CMS URL before signing in. There is no default login, so it never picks a saved one on its own: `--company <companyId|domain>` names the saved login to reuse, and without it an environment holding company logins asks at a terminal which to use (or to sign in again), while `--json`, `--check` and a run with no terminal refuse with `invalid_arguments` and the exact `leed setup --env <env> --company <companyId>`. The chosen login is reused once the CMS accepts it; with none saved it signs in with the browser device flow where you choose the company. `--email` sends a magic link instead and stops: the link signs in your browser, so run `leed setup` again afterwards to finish signing the CLI in there. It then keeps a site already set up for that company, or runs `leed site init --dir <folder>` in the folder you choose (`--dir`, or a prompt defaulting to `~/leed`), installs Font Awesome Free, and sets up shell completion (as `leed completion install` does), reporting it in one line. At a terminal it then offers, once each, to write a VS Code workspace (the files `leed site vscode` writes, only those missing: an existing workspace or `.vscode/tasks.json` is kept) and to install the Leed plugin for Claude Code (`claude plugin install leed@leed`, checked with `claude plugin list --json`), or to enable it with `claude plugin enable leed@leed` when it is installed but disabled; a no is remembered in `~/.config/leed/preferences.json`, and neither is offered under `--json` or inside Claude Code. A saved login the CMS places in no company is offered a browser sign-in at a terminal, where the company is chosen; under `--json` it refuses with the hint `leed setup --env <env> --new-login`. For `dev`, every command it prints for you to run that reaches the CMS starts with `LEED_CMS_URL=<url>` (local ones such as `leed site list` are printed bare). Every step checks before it acts, so it is safe to run again; `--check` only reports what is left, and writes nothing (it does not even renew the saved login): a token past its expiry but still inside the CMS's renewal window is reported with a warning as renewable, and a login placed in no company as needing a sign-in, with the `--new-login` command.
|
|
40
|
+
|
|
41
|
+
## Migrating from `@leed/site-management`
|
|
42
|
+
|
|
43
|
+
The CLI used to be published privately as `@leed/site-management`. That package no longer receives updates. Replace it with:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
bun remove -g @leed/site-management && npm i -g @leed-ai/cli
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
The `leed` command and every subcommand are unchanged. If your `~/.bunfig.toml` still has an `"@leed"` line under `[install.scopes]`, it was only there for the old package and can be deleted.
|
|
50
|
+
|
|
51
|
+
## Sites on this machine
|
|
52
|
+
|
|
53
|
+
`leed site init` records each site it sets up in one per-user registry, `$XDG_CONFIG_HOME/leed/sites.json` (default `~/.config/leed/sites.json`, beside `auth.json`, mode 600). A site checkout is the nearest folder holding `identity.json`, so every `leed site` command works from the checkout root or any folder inside it, wherever the folder lives; moving or renaming it needs no action, because the next command run inside it records the new path.
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
leed site list # every registered site and sandbox, with its checkouts (offline; --json too)
|
|
57
|
+
leed site build --site acme.com # any leed site command, from anywhere: by name, domain or companyId
|
|
58
|
+
leed site init --company acme.com -e production --dir ~/sites # set a site up in ~/sites/<site>/raw-content
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
The CLI never picks a site, company or environment you did not name. Outside every checkout a `leed site` command needs `--site`: without it, it refuses with `invalid_arguments`, listing the registered sites and the exact `--site` to pass, with one registered site as with several. Commands that act on a company (`leed settings`, `leed asset list|get|set|export`, `leed page`, `leed mcp add --cms`) take it from the checkout they run in, else from `--company` and `-e` (`-e` may be left out when that company is logged in to exactly one environment); `leed auth login` and `leed auth logout` need `-e` outside a checkout (or `--company`, when that company is logged in to exactly one environment), and logout also `--company` whenever company sessions are stored. None falls back to a default login or to production. `leed site list` and `leed auth status` list everything, each row with its environment. CI and unregistered checkouts run in direct mode as before: `identity.json` plus environment variables, and no registry at all. A `leed.config.json` left by an older CLI is imported into the registry the first time the CLI meets it, with a one-time notice, and is never read again.
|
|
62
|
+
|
|
63
|
+
## Build a site
|
|
64
|
+
|
|
65
|
+
If installed globally: `leed site build -c CUSTOMER_NAME -l LOCATION_OF_CUSTOMER_REPOS`
|
|
66
|
+
|
|
67
|
+
If running from the development environment: `./BuildSite -c CUSTOMER_NAME -l LOCATION_OF_CUSTOMER_REPOS`
|
|
68
|
+
|
|
69
|
+
To build a customer site and a live server add `--serve`. To exit serve mode press: `<ctrl-c>` in your terminal.
|
|
70
|
+
|
|
71
|
+
Some parameters that might be helpful that can be passed to the site builder:
|
|
72
|
+
|
|
73
|
+
- `-v` produces verbose output for for `leed:*`
|
|
74
|
+
- `-n` "leed:*" ... supports patterns to reduce output
|
|
75
|
+
- `-p` builds a preview-site (when running watch build this is the default)
|
|
76
|
+
- `-d` debug mode, does not minify the files on output for easier debugging. Also prevents stomping on the destination functions so that wrangler can run without crashing.
|
|
77
|
+
|
|
78
|
+
All the files which are temporarily created in the raw content repository by the build process are listed in its .gitignore.
|
|
79
|
+
|
|
80
|
+
### Output
|
|
81
|
+
|
|
82
|
+
Site is rendered into `${LOCATION_OF_CUSTOMER_REPOS}/${CUSTOMER_NAME}/[public|preview]-site/site`
|
|
83
|
+
|
|
84
|
+
### Font Awesome
|
|
85
|
+
|
|
86
|
+
The build downloads no Font Awesome. A site has Font Awesome Free by default and installs it once, from its checkout:
|
|
87
|
+
|
|
88
|
+
- `leed site init --font-awesome` installs Free 7.3.1 when no Font Awesome fonts are installed (never over Pro).
|
|
89
|
+
- `leed site init --font-awesome-pro <zip>` installs or upgrades the site owner's own Pro fonts from their Pro web package zip (Pro 7.0.0 and 7.3.1 are supported).
|
|
90
|
+
|
|
91
|
+
The Leed CI build (`.ci/build.sh`) runs `leed site init --font-awesome` before `leed site build`, so a site that has never committed fonts is built with Free; the fonts are installed for that build only and never committed. A site with its own fonts committed (its Pro, or Free) is left untouched, and a failed Free download fails the build, so the live site is never replaced by one with empty icons.
|
|
92
|
+
|
|
93
|
+
The build reads `src/static/webfonts/fa-version.txt` (`free 7.3.1`, `pro 7.3.1`, or a bare version meaning Pro) and compiles against the matching `static/tailwind/font-awesome/<edition>-<version>.css`; with no file it uses Free. Set `LEED_FONT_AWESOME_BASE_URL` to a `file://` directory or `http://localhost` server to test the Free download locally. Converting a new Font Awesome release is described in `scripts/font-awesome/README.md`.
|
|
94
|
+
|
|
95
|
+
## Sandbox sites
|
|
96
|
+
|
|
97
|
+
`leed site init --sandbox [dir]` writes a local site into `dir` (default `./leed-sandbox`) from the fixture set in `static/templates/sandbox/`, with no Leed account and no git repository, then installs Font Awesome Free into it with the `--font-awesome` installer (`installFontAwesome` in `src/cli/fontAwesomeInstall.ts`, honoring `LEED_FONT_AWESOME_BASE_URL`). The fixture set carries no fonts. The download is best effort: offline, the sandbox is still written and the result carries a warning naming `leed site init --font-awesome` as the retry. It builds and previews with `leed site build [--serve]` like any site. Its `identity.json` names the company `non-cms-company`, which no real company can be, and every record id in it is a `ph-<kind>-<n>` placeholder.
|
|
98
|
+
|
|
99
|
+
The template trees under `static/templates/` (`raw-content/`, `sandbox/`) store the site's `.gitignore` as `_gitignore`, because `npm pack` and `bun pm pack` drop every file named `.gitignore` from the published package. Every consumer that writes a tree into a site renames it back: `copyTemplateTree` (`src/utils/templateTree.ts`) for the sandbox init, and `templateTargetPath` (`libs/data-types/src/templateFiles.ts`) for the CMS template plant, the managed-files update and the dev seeder. Add a new dotfile to a template the same way, by listing its stored name in `PACKED_TEMPLATE_NAMES`.
|
|
100
|
+
|
|
101
|
+
Every command that needs the CMS refuses in a sandbox with the error code `sandbox_site` (exit `3`) before it authenticates; the classification is `SANDBOX_COMMANDS` in `src/cli/sandbox/sandboxGuard.ts`, and a test requires every registered command to appear in it. The plugin's `/leed:site-sandbox-move` skill moves a sandbox into a real site. The code is in `src/cli/sandbox/`.
|
|
102
|
+
|
|
103
|
+
## Git Permissions for the Personal Access Token
|
|
104
|
+
|
|
105
|
+
| Operation | Level |
|
|
106
|
+
| ----------------------------------- | ---------- |
|
|
107
|
+
| reading (git fetch, git clone etc.) | Reporter |
|
|
108
|
+
| writing (git push) | Developer |
|
|
109
|
+
| writing to protected branch | Maintainer |
|
|
110
|
+
|
|
111
|
+
## Development Notes
|
|
112
|
+
|
|
113
|
+
User README.md is managed in the Templates / raw-content / README.md file. This gets put into their raw-content repos automatically.
|
|
114
|
+
|
|
115
|
+
Tailwind v4 support is in place. This is a breaking change and will cause an upgrade from v3 of this tool to v4.
|
|
116
|
+
|
|
117
|
+
We have pegged the fingerprintjs library because the next version changes the license from MIT to a business pay to use license.
|
|
118
|
+
|
|
119
|
+
CI publishes every build to public npm through trusted publishing: staging builds under the `staging` dist-tag, and a release by moving `release` and `latest` onto a staging build. See `.claude/packages.md` in the monorepo.
|
|
120
|
+
|
|
121
|
+
[Pagination Documentation](https://www.11ty.dev/docs/pagination/)
|
|
122
|
+
[Pagination Navigation Documentation](https://www.11ty.dev/docs/pagination/nav/)
|
|
123
|
+
|
|
124
|
+
## License
|
|
125
|
+
|
|
126
|
+
See LICENSE.md
|
package/dist/LICENSE.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# License Information
|
|
2
|
+
|
|
3
|
+
This software is licensed under the terms of the End User License Agreement (EULA) provided by Leed, Inc.
|
|
4
|
+
|
|
5
|
+
## SPDX Identifier
|
|
6
|
+
|
|
7
|
+
The source files in this project include the following SPDX license identifier:
|
|
8
|
+
|
|
9
|
+
* **SPDX-License-Identifier:** LicenseRef-Leed-EULA
|
|
10
|
+
|
|
11
|
+
### Explanation
|
|
12
|
+
|
|
13
|
+
> **LicenseRef-Leed-EULA**: This identifier refers to the proprietary license agreement specific to this software. It is not part of the standard SPDX License List but is defined here to indicate compliance with our custom licensing terms.
|
|
14
|
+
|
|
15
|
+
## End User License Agreement (EULA)
|
|
16
|
+
|
|
17
|
+
This End User License Agreement ("Agreement") is a legal agreement between you ("User") and Leed, Inc. ("Company") for the use of Site Management Application ("Software"). By installing or using the Software, you agree to be bound by the terms of this Agreement.
|
|
18
|
+
|
|
19
|
+
1. **License Grant**
|
|
20
|
+
|
|
21
|
+
Leed, Inc. grants you a non-exclusive, non-transferable license to install and use the Software on any number devices for business purposes, subject to the terms of this Agreement.
|
|
22
|
+
|
|
23
|
+
1. **Restrictions**
|
|
24
|
+
|
|
25
|
+
* You may not copy, modify, distribute, sell, or lease any part of the Software.
|
|
26
|
+
* You may not reverse engineer or attempt to extract the source code of the Software.
|
|
27
|
+
* You may not use the Software for any unlawful purposes.
|
|
28
|
+
|
|
29
|
+
1. **Ownership**
|
|
30
|
+
|
|
31
|
+
The Software is licensed, not sold. Leed, Inc. retains all rights, title, and interest in and to the Software, including all intellectual property rights.
|
|
32
|
+
|
|
33
|
+
1. **Termination**
|
|
34
|
+
|
|
35
|
+
This Agreement is effective until terminated. Your rights under this Agreement will terminate automatically without notice if you fail to comply with any term(s) of this Agreement. Upon termination, you must cease all use of the Software and destroy all copies.
|
|
36
|
+
|
|
37
|
+
1. **License Duration and Termination**
|
|
38
|
+
|
|
39
|
+
* The Software is licensed for use only while under a valid, active license agreement. The license is effective upon payment and activation and will remain in effect until the specified expiration date.
|
|
40
|
+
* Upon expiration of the license, your rights to use the Software will immediately cease. You must uninstall and delete all copies of the Software from your devices.
|
|
41
|
+
* Failure to comply with this requirement may result in legal action for unauthorized use of the Software.
|
|
42
|
+
|
|
43
|
+
1. **Disclaimer of Warranties**
|
|
44
|
+
|
|
45
|
+
The Software is provided "as is" without warranty of any kind. Leed, Inc. disclaims all warranties, express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose.
|
|
46
|
+
|
|
47
|
+
1. **Limitation of Liability**
|
|
48
|
+
|
|
49
|
+
In no event shall Leed, Inc. be liable for any special, incidental, indirect, or consequential damages whatsoever arising out of the use of or inability to use the Software.
|
|
50
|
+
|
|
51
|
+
1. **Governing Law**
|
|
52
|
+
|
|
53
|
+
This Agreement shall be governed by and construed in accordance with the laws of [Your State/Country], without regard to its conflict of law principles.
|
|
54
|
+
|
|
55
|
+
1. **Entire Agreement**
|
|
56
|
+
|
|
57
|
+
This Agreement constitutes the entire agreement between you and Leed, Inc. with respect to the Software and supersedes all prior or contemporaneous understandings regarding such subject matter.
|