totopo 2.1.0-rc-6 → 2.1.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/README.md CHANGED
@@ -22,7 +22,7 @@ totopo organises work around **projects** — any local directory you register w
22
22
 
23
23
  - **Open session** — jump into an AI coding session
24
24
  - **Stop container** — stop the running container
25
- - **Settings** — runtime mode, shadow paths
25
+ - **Project Settings** — runtime mode, shadow paths
26
26
  - **Rebuild container** — rebuild the docker image (upon changing runtime mode)
27
27
 
28
28
  All config lives in `~/.totopo/` — nothing is written to your project directory.
@@ -128,13 +128,14 @@ async function removeShadowPaths(ctx) {
128
128
  // --- Prompt to recreate container now -----------------------------------------------------------------------------------------------------
129
129
  async function promptRecreateContainer(ctx) {
130
130
  const containerName = ctx.meta.containerName;
131
- // Check if container exists
131
+ // Check if container is running
132
132
  const inspect = spawnSync("docker", ["inspect", "--format", "{{.State.Status}}", containerName], {
133
133
  encoding: "utf8",
134
134
  stdio: "pipe",
135
135
  });
136
- if (inspect.status !== 0) {
137
- log.info("No running container — changes will apply on next session.");
136
+ const containerStatus = inspect.status === 0 ? inspect.stdout.trim() : null;
137
+ if (containerStatus !== "running") {
138
+ log.info("Changes will apply on next session.");
138
139
  return;
139
140
  }
140
141
  const stop = await confirm({ message: "Stop the running container so changes apply on next session?" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "totopo",
3
- "version": "2.1.0-rc-6",
3
+ "version": "2.1.0",
4
4
  "description": "Run AI coding agents safely in your local codebase",
5
5
  "type": "module",
6
6
  "bin": {