viewable-one 0.12.3 → 0.12.5
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/CHANGELOG.md +86 -0
- package/glytch.mjs +22 -9
- package/lib/codexApps.mjs +16 -4
- package/lib/goodbye.mjs +120 -0
- package/lib/multiwatch.mjs +79 -8
- package/lib/registry.mjs +28 -0
- package/lib/restartPass.mjs +18 -5
- package/lib/runner.mjs +1 -1
- package/lib/runnerAdmission.mjs +27 -0
- package/lib/runnerApi.mjs +8 -1
- package/lib/runnerBeat.mjs +23 -4
- package/lib/runnerGates.mjs +7 -6
- package/lib/runnerOps.mjs +10 -1
- package/lib/runnerPace.mjs +134 -5
- package/lib/runnerRegister.mjs +18 -4
- package/lib/selfUninstall.mjs +239 -0
- package/lib/signIn.mjs +43 -18
- package/lib/update.mjs +261 -11
- package/lib/viewableFolder.mjs +6 -3
- package/package.json +1 -1
package/lib/viewableFolder.mjs
CHANGED
|
@@ -7,12 +7,13 @@
|
|
|
7
7
|
// No existing folder is moved or rewritten by the rename (#2329).
|
|
8
8
|
//
|
|
9
9
|
// Made when the daemon starts watching, and kept: nothing here removes it.
|
|
10
|
+
// Unless the person removed it from the board: then it is left alone (#5290).
|
|
10
11
|
|
|
11
12
|
import { existsSync } from "node:fs";
|
|
12
13
|
import { lstat, mkdir, realpath, writeFile } from "node:fs/promises";
|
|
13
14
|
import { homedir } from "node:os";
|
|
14
15
|
import { basename, dirname, join, resolve } from "node:path";
|
|
15
|
-
import {
|
|
16
|
+
import { addFolderUnlessRemoved, folderWasRemoved } from "./registry.mjs";
|
|
16
17
|
import { git, isChatWorktreePath, resolveChatCwd } from "./worktree.mjs";
|
|
17
18
|
|
|
18
19
|
/** Where the default working folder lives, or null when there is none to make.
|
|
@@ -52,6 +53,9 @@ const COMMITTER = ["-c", "user.name=Viewable", "-c", "user.email=viewable@localh
|
|
|
52
53
|
export async function ensureViewableFolder(env = process.env, log = () => {}) {
|
|
53
54
|
const path = viewableFolderPath(env);
|
|
54
55
|
if (path === null) return null;
|
|
56
|
+
// A folder the person removed from the board is not made or watched again
|
|
57
|
+
// on the next start (#5290). Adding it by hand (init) clears the record.
|
|
58
|
+
if (await folderWasRemoved(path, env)) return null;
|
|
55
59
|
try {
|
|
56
60
|
await mkdir(path, { recursive: true });
|
|
57
61
|
// Its own repository, not one it happens to sit inside: a home folder
|
|
@@ -77,8 +81,7 @@ export async function ensureViewableFolder(env = process.env, log = () => {}) {
|
|
|
77
81
|
if (!commit.ok) throw new Error(`first commit failed: ${commit.stderr?.trim() || "no detail"}`);
|
|
78
82
|
log(`made the Viewable folder at ${path}`);
|
|
79
83
|
}
|
|
80
|
-
await
|
|
81
|
-
return path;
|
|
84
|
+
return await addFolderUnlessRemoved(path, env) === null ? null : path;
|
|
82
85
|
} catch (error) {
|
|
83
86
|
log(`could not make the Viewable folder at ${path}: ${error instanceof Error ? error.message : String(error)}`);
|
|
84
87
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "viewable-one",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.5",
|
|
4
4
|
"description": "Run coding agents from the Viewable board. Connects your machine to app.viewable.one, launches a session in its own worktree when you press Run, and streams what it does back to the canvas.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|