@thallylabs/cli 0.5.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 (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +44 -0
  3. package/dist/index.js +6374 -0
  4. package/package.json +57 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ekene Eze
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,44 @@
1
+ # `thally` — the unified Thally CLI
2
+
3
+ One tool, one mental model. You author **content + config**; the framework
4
+ (Next.js) is a hidden runtime you never touch.
5
+
6
+ ## The model
7
+
8
+ A Thally project is just three things you own:
9
+
10
+ - `src/content/` — your MDX pages
11
+ - `docs.json` — navigation, theme, and config
12
+ - `snippets/` — reusable MDX
13
+
14
+ Everything under `src/app/` is framework plumbing managed by Thally. You should
15
+ never need to edit it. The `thally` commands wrap the framework so the runtime
16
+ stays invisible.
17
+
18
+ ## Commands
19
+
20
+ | Command | What it does |
21
+ | --- | --- |
22
+ | `thally init [dir]` | Scaffold a new Thally project |
23
+ | `thally dev` | Run the docs site locally (agent endpoints live) |
24
+ | `thally build` | Build the production site |
25
+ | `thally start` | Serve the built production site |
26
+ | `thally deploy [--prod]` | Build and deploy to a live URL, print agent endpoints |
27
+ | `thally check [--agents] [--fix]` | Lint content + Agent Readiness Score |
28
+ | `thally new <page-id> [--title]` | Create a page and register it in `docs.json` |
29
+ | `thally migrate <github-url> [dir]` | Migrate docs from a GitHub repo |
30
+ | `thally translate --locale <code>` | Translate content into a locale |
31
+ | `thally mcp` | Start the Model Context Protocol server (stdio) |
32
+
33
+ Run `thally` with no arguments for the full help.
34
+
35
+ ## How it works
36
+
37
+ - **Framework commands** (`dev`, `build`, `start`, `deploy`) prefer the
38
+ project's npm scripts and fall back to invoking the framework directly — so
39
+ the framework is an implementation detail, not part of your surface.
40
+ - **Authoring commands** (`init`, `migrate`, `translate`) delegate to
41
+ `create-thally-docs`; `mcp` starts `@thallylabs/mcp`. All capabilities are reachable through
42
+ the single `thally` binary.
43
+ - **`check --agents`** runs content lint plus the Agent Readiness Score, with a
44
+ CI-friendly non-zero exit code when the score is below the threshold.