toolroll 0.9.118 → 0.9.120
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 +63 -0
- package/README.md +22 -22
- package/dist/assignment.js +43 -30
- package/dist/browser/workspace.css +1 -1
- package/dist/browser/workspace.js +32 -31
- package/dist/builder.js +288 -237
- package/dist/central-recovery-stage.js +3 -3
- package/dist/check-failure.js +2 -2
- package/dist/check-levels.js +3 -0
- package/dist/check-report.js +58 -7
- package/dist/cli-help.js +1 -0
- package/dist/codex-limits.js +40 -22
- package/dist/contracts/console-api.js +6 -1
- package/dist/contracts/engine-api.js +1 -0
- package/dist/contracts/release-check.js +7 -4
- package/dist/contracts/release-terms.js +11 -2
- package/dist/contracts/verification-receipt.js +1 -1
- package/dist/deploy-gate.js +7 -1
- package/dist/direct-chat.js +3 -3
- package/dist/easy-start.js +8 -6
- package/dist/engine-reads.js +74 -0
- package/dist/flexible-conversation-schema.js +24 -0
- package/dist/flexible-conversation.js +162 -0
- package/dist/flexible-custody.js +3 -0
- package/dist/flexible-import.js +89 -0
- package/dist/flexible-save.js +128 -0
- package/dist/flexible-session.js +93 -13
- package/dist/flexible-ship.js +3 -3
- package/dist/flexible-thread.js +2 -2
- package/dist/install-mode.js +1 -1
- package/dist/local-checks.js +32 -0
- package/dist/local-landing.js +758 -0
- package/dist/local-owner.js +3 -0
- package/dist/operate.js +165 -26
- package/dist/passwordless.js +1 -1
- package/dist/plan-limits-demand.js +48 -0
- package/dist/project-delete.js +1 -0
- package/dist/rehearsal.js +27 -0
- package/dist/release-adapters.js +170 -2
- package/dist/release-approval.js +11 -8
- package/dist/release-card.js +7 -2
- package/dist/release-carry.js +1 -1
- package/dist/release-cli.js +115 -14
- package/dist/release-main-proof.js +49 -0
- package/dist/release-main.js +110 -0
- package/dist/release-recheck.js +10 -3
- package/dist/release.js +221 -33
- package/dist/reply-shape.js +6 -1
- package/dist/result-actions.js +7 -1
- package/dist/result-follow-ups.js +30 -12
- package/dist/review-context.js +2 -1
- package/dist/serve.js +31 -14
- package/dist/server/direct-chat.js +109 -3
- package/dist/server/engine-api.js +65 -6
- package/dist/server/render-results.js +8 -4
- package/dist/server/render-tasks.js +10 -1
- package/dist/server/route-table.js +15 -1
- package/dist/server/send-back-build.js +4 -0
- package/dist/server/settings.js +33 -7
- package/dist/server/task-views.js +20 -0
- package/dist/server/tasks.js +108 -6
- package/dist/settings-groups-ui.js +3 -3
- package/dist/store.js +29 -4
- package/dist/subscription-usage.js +11 -5
- package/dist/surface.js +11 -2
- package/dist/task-base.js +23 -4
- package/dist/task-outcome-cli.js +10 -1
- package/dist/tui/darwin-arm64/toolroll-tui +0 -0
- package/dist/tui/darwin-x64/toolroll-tui +0 -0
- package/dist/tui/linux-arm64/toolroll-tui +0 -0
- package/dist/tui/linux-x64/toolroll-tui +0 -0
- package/dist/verification-evidence.js +20 -7
- package/dist/workspace-ui.js +1 -1
- package/package.json +2 -1
- package/scripts/release-proof.mjs +240 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { soloNow } from "./install-mode.js";
|
|
2
|
+
import { localModeOn } from "./local-owner.js";
|
|
3
|
+
import { localWorkEligible } from "./scope.js";
|
|
4
|
+
export const LOCAL_CHECKS_CEILING = "sign-ins";
|
|
5
|
+
const WORDS = {
|
|
6
|
+
team: "Running checks without a password works only on a solo install. Sign in with your password to run them.",
|
|
7
|
+
"local-mode-off": "Local mode is off, so running checks needs your password.",
|
|
8
|
+
"not-owner": "Only this computer's owner runs checks here without a password.",
|
|
9
|
+
"no-scope": "This task has no approved plan, so running its checks needs your password.",
|
|
10
|
+
release: "Running a release's checks needs your password.",
|
|
11
|
+
protected: "This is protected work, so running its checks needs your password.",
|
|
12
|
+
escalated: "Work with wider permissions needs your password to run its checks.",
|
|
13
|
+
coordinator: "Work a coordinator filed needs your password to run its checks.",
|
|
14
|
+
unsandboxed: "This project's checks run without a sandbox, so running them needs your password.",
|
|
15
|
+
imported: "A task from outside needs your password to run its checks.",
|
|
16
|
+
};
|
|
17
|
+
export function localChecksRefusal(store, by, taskId) {
|
|
18
|
+
if (!soloNow(store))
|
|
19
|
+
return WORDS.team;
|
|
20
|
+
const eligible = localWorkEligible(store, by, taskId, { act: "retry" });
|
|
21
|
+
return eligible.ok ? null : WORDS[eligible.reason];
|
|
22
|
+
}
|
|
23
|
+
export function localChecksStanding(store, input) {
|
|
24
|
+
if (!soloNow(store) || !localModeOn(store))
|
|
25
|
+
return { ok: false, problem: "Asked for without a password, and the install is no longer solo with local mode on, so they didn't run." };
|
|
26
|
+
const refused = localChecksRefusal(store, input.by, input.taskId);
|
|
27
|
+
if (refused !== null)
|
|
28
|
+
return { ok: false, problem: `Asked for without a password, and now: ${refused}` };
|
|
29
|
+
return { ok: true, access: LOCAL_CHECKS_CEILING };
|
|
30
|
+
}
|
|
31
|
+
export class LocalChecksLapsed extends Error {
|
|
32
|
+
}
|