Skip to content

Commit eb59cd0

Browse files
committed
Name the SDK in the docs and the README, and release 0.1.1
The Node API page becomes the SDK page (/reference/sdk), the home page gets a card for it, and the README lists it. The terminal UI's card and README bullet say it is driven by the keyboard or the mouse.
1 parent 9f095b0 commit eb59cd0

13 files changed

Lines changed: 30 additions & 16 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.1.1
4+
5+
- **The README and the docs name stackctl's SDK**: `startStack()`, `exec()`, `run()` and
6+
`resolveEnv()`, for your own scripts and test suites. See [docs/reference/sdk.md](docs/reference/sdk.md).
7+
38
## 0.1.0
49

510
First release of stackctl, a terminal UI and CLI for a monorepo's services, infrastructure,

‎CLAUDE.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The documentation is one set of Markdown pages in `docs/`, read three ways:
4343
| ----------------- | ---------------------------------------------------------------------------------- |
4444
| `docs/guide/` | Getting started, why, services, the terminal UI, environment and modes, one-off commands, logs, tests and CI. How to do things. |
4545
| `docs/config/` | One page per part of `stackctl.config.ts`: the file itself, services, environment, logs, infra, reverse proxy, URLs and origins. |
46-
| `docs/reference/` | The CLI, the control API (endpoints and payloads), the Node API. |
46+
| `docs/reference/` | The CLI, the control API (endpoints and payloads), the SDK. |
4747
| `docs/ai/` | `overview.md`: how stackctl serves coding agents. `playbook.md`: recipes written for the agent, the page the skill names. |
4848

4949
`docs/index.md` is the site's home page. `docs/architecture/` is contributor internals and
@@ -67,7 +67,7 @@ file on invocation, which defeats the progressive disclosure a skill exists to p
6767
### Keep the docs in lockstep
6868

6969
Whenever a change affects how stackctl is configured, invoked, or driven — `defineConfig`
70-
options, the service schema, tokens, CLI flags, the control API, the Node API — update the docs
70+
options, the service schema, tokens, CLI flags, the control API, the SDK — update the docs
7171
in the same change, not later. Grep `docs/guide`, `docs/config`, `docs/reference`, `docs/ai`,
7272
the README and `assets/skill.md` for the affected names and reconcile every hit.
7373

‎README.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ their environment, and shows it all in one place.
1616
- **One typed config.** `stackctl.config.ts` describes every service. Pick one and the
1717
services it needs come with it, started in order and held until they are healthy.
1818
- **A terminal UI.** One combined, filterable log, with each service's state and memory in
19-
the footer. Restart, stop or run a script with a key or a click.
19+
the footer. Drive it with the keyboard or the mouse.
2020
- **Infra included.** Point it at your `docker-compose.yaml`: databases and brokers come up,
2121
get healthy and get migrated before your services start.
2222
- **Environment handled.** Layered `.env` files per workspace, service and mode, injected into
@@ -25,6 +25,8 @@ their environment, and shows it all in one place.
2525
while a service starts.
2626
- **The same stack in tests and CI.** `startStack()` for an e2e suite, `stackctl start --detach`
2727
for a CI job, in a mode that runs beside your dev session.
28+
- **An SDK for scripts and tests.** `startStack()`, `exec()`, `run()` and `resolveEnv()` give your
29+
own code what the CLI gives a shell, typed and with the same environment.
2830
- **Built for coding agents.** A headless mode, a localhost control API, an installable skill
2931
and `llms.txt`.
3032
- **Any language.** A service is a `dev` script in `package.json` or a `Makefile` target.
@@ -77,6 +79,7 @@ pnpm stackctl infra up # bring the infra up, then exit
7779
- [The config file](https://stackctl.dev/config/config-file)
7880
- [CLI](https://stackctl.dev/reference/cli)
7981
- [Control API](https://stackctl.dev/reference/control-api)
82+
- [SDK](https://stackctl.dev/reference/sdk)
8083
- [Built for agents](https://stackctl.dev/ai/overview)
8184

8285
A complete example monorepo is in [`example/`](https://github.com/rhyek/stackctl/tree/main/example).

‎docs/.vitepress/config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default defineConfig({
6363
items: [
6464
{ text: 'CLI', link: '/reference/cli' },
6565
{ text: 'Control API', link: '/reference/control-api' },
66-
{ text: 'Node API', link: '/reference/node-api' },
66+
{ text: 'SDK', link: '/reference/sdk' },
6767
],
6868
},
6969
{

‎docs/ai/playbook.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ stackctl --mode test exec api -- node --test # in the test mode's environment
130130
```
131131

132132
See [One-off commands](../guide/commands.md). From a script, use
133-
[`exec()`, `run()`](../reference/node-api.md#exec-and-run) or
134-
[`resolveEnv()`](../reference/node-api.md#resolveenv).
133+
[`exec()`, `run()`](../reference/sdk.md#exec-and-run) or
134+
[`resolveEnv()`](../reference/sdk.md#resolveenv).
135135

136136
## Infra
137137

‎docs/config/config-file.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,6 @@ then your own names and types, and `startStack()`'s `origins` is keyed by them.
179179

180180
## `--workspace-dir`
181181

182-
The `--workspace-dir <dir>` flag (and `workspaceDir` in the [Node API](../reference/node-api.md))
182+
The `--workspace-dir <dir>` flag (and `workspaceDir` in the [SDK](../reference/sdk.md))
183183
names the directory holding the config, to run stackctl against a workspace from outside it.
184184
It is not the config's `workspaceDir` option above.

‎docs/guide/commands.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ await exec({ target: 'api', command: ['node', 'src/migrate.ts'] });
6464
const { exitCode } = await run({ target: 'api', script: 'seed', mode: 'test' });
6565
```
6666

67-
See the [Node API](../reference/node-api.md#exec-and-run).
67+
See the [SDK](../reference/sdk.md#exec-and-run).

‎docs/guide/env.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ when stackctl starts. Restart stackctl to pick those up.
105105

106106
- [`stackctl exec` and `stackctl run`](./commands.md) run one command with a service's
107107
environment.
108-
- [`resolveEnv()`](../reference/node-api.md#resolveenv) returns it to a script.
108+
- [`resolveEnv()`](../reference/sdk.md#resolveenv) returns it to a script.
109109
- [`stackctl show-config`](../reference/cli.md#stackctl-show-config) lists, under `envFiles`,
110110
the files a mode looks for. Check there when a variable is missing.
111111

‎docs/guide/testing.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ await stack.stop();
4747

4848
`stack.origins` has every service's URL, and `stack.control` is a
4949
[control API](../reference/control-api.md) client for restarting a service mid-suite. See
50-
[`startStack()`](../reference/node-api.md#startstack).
50+
[`startStack()`](../reference/sdk.md#startstack).
5151

5252
## In CI
5353

‎docs/index.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ features:
3333
link: /config/config-file
3434
- icon: 🖥️
3535
title: A terminal UI you'll keep open
36-
details: One combined, filterable log, with each service's state and memory in the footer. Restart, stop or run a script with a key or a click.
36+
details: "One combined, filterable log, with each service's state and memory in the footer. Drive it with the keyboard or the mouse: click a service, a key hint or a script, and drag to copy."
3737
link: /guide/terminal-ui
3838
- icon: 🐳
3939
title: Infra included
@@ -51,6 +51,10 @@ features:
5151
title: The same stack in tests and CI
5252
details: startStack() hands an e2e suite a healthy stack that ends with it. stackctl start --detach does the same for a CI job.
5353
link: /guide/testing
54+
- icon: 📦
55+
title: An SDK for scripts and tests
56+
details: startStack(), exec(), run() and resolveEnv() give your own scripts and test suites what the CLI gives a shell, typed and with the same environment.
57+
link: /reference/sdk
5458
- icon: 🤖
5559
title: Built for coding agents
5660
details: A headless mode, a localhost control API, an installable skill and llms.txt let an agent run your project the way you do.

0 commit comments

Comments
 (0)