toolroll 0.9.106 → 0.9.108
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 +38 -0
- package/README.md +5 -4
- package/dist/browser/workspace.css +1 -1
- package/dist/browser/workspace.js +27 -25
- package/dist/browser-shell.js +1 -1
- package/dist/cli-help.js +5 -0
- package/dist/cli.js +18 -11
- package/dist/contracts/cli.js +3 -1
- package/dist/contracts/console-api.js +1 -1
- package/dist/demo-sign-in.js +1 -55
- package/dist/easy-start-args.js +4 -2
- package/dist/easy-start.js +78 -24
- package/dist/first-run.js +4 -1
- package/dist/folder-look.js +65 -4
- package/dist/git-floor.js +9 -2
- package/dist/guides.js +3 -1
- package/dist/lead-cli.js +2 -1
- package/dist/live-bus.js +14 -1
- package/dist/login-secrets.js +43 -0
- package/dist/operate.js +195 -27
- package/dist/project-admission.js +60 -29
- package/dist/project.js +73 -0
- package/dist/repos.js +37 -0
- package/dist/route-hooks.js +1 -0
- package/dist/sample-project.js +167 -9
- package/dist/sandbox-runtime.js +1 -1
- package/dist/scope.js +17 -2
- package/dist/serve.js +15 -3
- package/dist/server/live.js +5 -2
- package/dist/server/login-help.js +67 -0
- package/dist/server/pages.js +180 -26
- package/dist/server/people-tokens.js +36 -24
- package/dist/server/render-people.js +14 -2
- package/dist/server/render-projects.js +58 -10
- package/dist/server/route-table.js +2 -1
- package/dist/server/settings.js +3 -0
- package/dist/server/welcome.js +29 -18
- package/dist/settings-groups-ui.js +10 -1
- package/dist/sign-in-page.js +197 -0
- package/dist/store.js +33 -0
- package/dist/surface.js +4 -1
- package/dist/task-outcome-cli.js +99 -4
- package/dist/tui-source.js +11 -3
- package/dist/tui.js +46 -46
- package/dist/welcome-facts.js +17 -7
- package/package.json +1 -1
package/dist/welcome-facts.js
CHANGED
|
@@ -29,15 +29,18 @@ export async function welcomeHere(store, databaseFile, now, options = {}) {
|
|
|
29
29
|
return { model, projects: repos };
|
|
30
30
|
}
|
|
31
31
|
export const WELCOME_STEPS = ["agent", "project", "task"];
|
|
32
|
-
export function welcomeStepLines(model, key) {
|
|
32
|
+
export function welcomeStepLines(model, key, sample = null) {
|
|
33
33
|
const mark = (done) => (done ? "Done" : "To do");
|
|
34
34
|
const lines = [];
|
|
35
35
|
if (key === "agent") {
|
|
36
36
|
lines.push(`1. Agent · ${mark(model.agent.done)}`);
|
|
37
|
+
const optionalOnes = model.agent.agents.some(agent => agent.optional);
|
|
38
|
+
if (!model.agent.done && !model.agent.checking && !optionalOnes && model.agent.agents.length > 1)
|
|
39
|
+
lines.push(" You need one of these:");
|
|
37
40
|
for (const agent of model.agent.agents) {
|
|
38
41
|
const state = agent.state === "signed-in" ? "signed in" : agent.state === "checking" ? "checking" : agent.state === "not-installed" ? "not installed" : "not signed in";
|
|
39
|
-
lines.push(` ${agent.name}: ${state}${agent.inUse ? " (in use)" : ""}`);
|
|
40
|
-
if (agent.command !== null)
|
|
42
|
+
lines.push(` ${agent.name}${agent.optional ? " (optional)" : ""}: ${state}${agent.inUse ? " (in use)" : ""}`);
|
|
43
|
+
if (agent.command !== null && !(agent.optional && model.agent.done))
|
|
41
44
|
lines.push(` To sign in, run: ${agent.command}`);
|
|
42
45
|
}
|
|
43
46
|
}
|
|
@@ -45,8 +48,12 @@ export function welcomeStepLines(model, key) {
|
|
|
45
48
|
lines.push(`2. Project · ${mark(model.project.done)}`);
|
|
46
49
|
for (const one of model.project.projects.slice(0, 3))
|
|
47
50
|
lines.push(` ${one.name} ${one.path}`);
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
const offer = model.project.projects.length === 0 && model.project.sample !== null ? sample : null;
|
|
52
|
+
const addOwn = "a git repository: run `toolroll repos add <folder>`, or `toolroll --web` and choose one.";
|
|
53
|
+
if (offer === "key")
|
|
54
|
+
lines.push(" s Try the sample project", ` Or add ${addOwn}`);
|
|
55
|
+
else if (model.project.projects.length === 0)
|
|
56
|
+
lines.push(` Add ${addOwn}`, ...offer === "command" ? [" Or try the sample project: run `toolroll welcome sample`."] : []);
|
|
50
57
|
else if (model.project.notTakingWork)
|
|
51
58
|
lines.push(" Tasks can't start yet: nothing on this computer is taking work. Run `toolroll`.");
|
|
52
59
|
}
|
|
@@ -62,6 +69,9 @@ export function welcomeStepLines(model, key) {
|
|
|
62
69
|
}
|
|
63
70
|
return lines;
|
|
64
71
|
}
|
|
65
|
-
export function welcomeLines(model) {
|
|
66
|
-
return [model.left === 0 ? "Setup is done." : `${model.left} ${model.left === 1 ? "step" : "steps"} left.`, "", ...WELCOME_STEPS.flatMap(key => welcomeStepLines(model, key))];
|
|
72
|
+
export function welcomeLines(model, sample = null) {
|
|
73
|
+
return [model.left === 0 ? "Setup is done." : `${model.left} ${model.left === 1 ? "step" : "steps"} left.`, "", ...WELCOME_STEPS.flatMap(key => welcomeStepLines(model, key, sample))];
|
|
74
|
+
}
|
|
75
|
+
export function sampleOffered(model, localOn, demo) {
|
|
76
|
+
return localOn && !demo && model.project.projects.length === 0 && model.project.sample !== null;
|
|
67
77
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toolroll",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.108",
|
|
4
4
|
"description": "Your agents build. You decide. A control plane for coding agents — Claude Code, Codex, Gemini: approve the exact scope once, get results back Ready with the diff, the passing check and screenshots. Runs on your machine.",
|
|
5
5
|
"directories": {
|
|
6
6
|
"doc": "docs"
|