@atolis-hq/wake 0.2.0 → 0.2.1
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/README.md +12 -28
- package/dist/src/cli/sandbox-command.js +28 -2
- package/dist/src/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,33 +11,15 @@
|
|
|
11
11
|
|
|
12
12
|
<!-- Badges -->
|
|
13
13
|
<p>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<a href="https://github.com/atolis-hq/wake/stargazers">
|
|
24
|
-
<img src="https://img.shields.io/github/stars/atolis-hq/wake" alt="stars" />
|
|
25
|
-
</a> -->
|
|
26
|
-
<a href="https://github.com/atolis-hq/wake/issues/">
|
|
27
|
-
<img src="https://img.shields.io/github/issues/atolis-hq/wake" alt="open issues" />
|
|
28
|
-
</a>
|
|
29
|
-
<a href="https://github.com/atolis-hq/wake/blob/main/LICENSE">
|
|
30
|
-
<img src="https://img.shields.io/github/license/atolis-hq/wake.svg" alt="license" />
|
|
31
|
-
</a>
|
|
32
|
-
<a href="https://github.com/atolis-hq/wake/tags">
|
|
33
|
-
<img src="https://img.shields.io/github/v/tag/atolis-hq/wake" alt="latest tag" />
|
|
34
|
-
</a>
|
|
35
|
-
<a href="https://www.npmjs.com/package/@atolis-hq/wake">
|
|
36
|
-
<img src="https://img.shields.io/npm/v/%40atolis-hq%2Fwake" alt="npm version" />
|
|
37
|
-
</a>
|
|
38
|
-
<a href="docker/Dockerfile">
|
|
39
|
-
<img src="https://img.shields.io/badge/sandbox-docker-2496ED?logo=docker&logoColor=white" alt="runs in docker" />
|
|
40
|
-
</a>
|
|
14
|
+
<a href="https://github.com/atolis-hq/wake/commits/main"><img src="https://img.shields.io/github/last-commit/atolis-hq/wake" alt="last update" /></a>
|
|
15
|
+
<a href="https://github.com/atolis-hq/wake/actions/workflows/ci-cd.yml"><img src="https://github.com/atolis-hq/wake/actions/workflows/ci-cd.yml/badge.svg" alt="CI/CD status" /></a>
|
|
16
|
+
<!-- <a href="https://github.com/atolis-hq/wake/network/members"><img src="https://img.shields.io/github/forks/atolis-hq/wake" alt="forks" /></a>
|
|
17
|
+
<a href="https://github.com/atolis-hq/wake/stargazers"><img src="https://img.shields.io/github/stars/atolis-hq/wake" alt="stars" /></a> -->
|
|
18
|
+
<a href="https://github.com/atolis-hq/wake/issues/"><img src="https://img.shields.io/github/issues/atolis-hq/wake" alt="open issues" /></a>
|
|
19
|
+
<a href="https://github.com/atolis-hq/wake/blob/main/LICENSE"><img src="https://img.shields.io/github/license/atolis-hq/wake.svg" alt="license" /></a>
|
|
20
|
+
<a href="https://github.com/atolis-hq/wake/tags"><img src="https://img.shields.io/github/v/tag/atolis-hq/wake" alt="latest tag" /></a>
|
|
21
|
+
<a href="https://www.npmjs.com/package/@atolis-hq/wake"><img src="https://img.shields.io/npm/v/%40atolis-hq%2Fwake" alt="npm version" /></a>
|
|
22
|
+
<a href="docker/Dockerfile"><img src="https://img.shields.io/badge/sandbox-docker-2496ED?logo=docker&logoColor=white" alt="runs in docker" /></a>
|
|
41
23
|
</p>
|
|
42
24
|
</div>
|
|
43
25
|
|
|
@@ -176,11 +158,13 @@ wake start
|
|
|
176
158
|
|
|
177
159
|
Full setup instructions are in
|
|
178
160
|
[docs/getting-started.md](docs/getting-started.md). Run `wake --help` at
|
|
179
|
-
any time for the full command list
|
|
161
|
+
any time for the full command list, or see
|
|
162
|
+
[docs/cli.md](docs/cli.md) for the full command reference.
|
|
180
163
|
|
|
181
164
|
## Documentation
|
|
182
165
|
|
|
183
166
|
- [docs/getting-started.md](docs/getting-started.md) — packaged-install setup, sandbox lifecycle, `wake doctor`.
|
|
167
|
+
- [docs/cli.md](docs/cli.md) — full CLI command reference.
|
|
184
168
|
- [docs/vision.md](docs/vision.md) — the rationale and long-term direction for Wake.
|
|
185
169
|
- [docs/architecture.md](docs/architecture.md) — module boundaries and the event-sourced core.
|
|
186
170
|
- [docs/workflows.md](docs/workflows.md) — how stages, prompts, and runner routes are configured.
|
|
@@ -32,6 +32,28 @@ async function ensureContainerHomeMountParents(input) {
|
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
+
const sandboxSubcommands = [
|
|
36
|
+
['build', 'Generate docker/Dockerfile (if missing) and build the sandbox image'],
|
|
37
|
+
['up', 'Start the sandbox container'],
|
|
38
|
+
['update', 'Recreate the sandbox container from the current image'],
|
|
39
|
+
['down', 'Stop and remove the sandbox container'],
|
|
40
|
+
['stop', 'Stop the resident loop gracefully, then the container'],
|
|
41
|
+
['self-update', 'Pull the latest tag and rebuild (source dev.mode only)'],
|
|
42
|
+
['setup', 'Run interactive first-time setup inside the container'],
|
|
43
|
+
['exec', 'Run a command inside the sandbox container'],
|
|
44
|
+
['logs', 'Print sandbox container logs'],
|
|
45
|
+
['resume', 'Resume a previous agent session inside the sandbox'],
|
|
46
|
+
];
|
|
47
|
+
export function printSandboxUsage(stream) {
|
|
48
|
+
const width = Math.max(...sandboxSubcommands.map(([name]) => name.length));
|
|
49
|
+
stream.write([
|
|
50
|
+
'Usage: wake sandbox <subcommand>',
|
|
51
|
+
'',
|
|
52
|
+
'Subcommands:',
|
|
53
|
+
...sandboxSubcommands.map(([name, description]) => ` ${name.padEnd(width)} ${description}`),
|
|
54
|
+
'',
|
|
55
|
+
].join('\n'));
|
|
56
|
+
}
|
|
35
57
|
function readFlag(name, args) {
|
|
36
58
|
const index = args.indexOf(name);
|
|
37
59
|
if (index === -1) {
|
|
@@ -54,8 +76,12 @@ function startDockerInput(config) {
|
|
|
54
76
|
}
|
|
55
77
|
export async function runSandboxCommand(input) {
|
|
56
78
|
const subcommand = input.args[0];
|
|
57
|
-
if (subcommand === undefined
|
|
58
|
-
|
|
79
|
+
if (subcommand === undefined ||
|
|
80
|
+
subcommand === '--help' ||
|
|
81
|
+
subcommand === '-h' ||
|
|
82
|
+
subcommand === 'help') {
|
|
83
|
+
printSandboxUsage(process.stdout);
|
|
84
|
+
return;
|
|
59
85
|
}
|
|
60
86
|
if (subcommand === 'build') {
|
|
61
87
|
const repoRoot = input.config.dev?.repoRoot;
|
package/dist/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const wakeVersion = "0.2.
|
|
1
|
+
export const wakeVersion = "0.2.1+g4279d3f";
|