toolroll 0.9.119 → 0.9.122
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 +77 -0
- package/README.md +18 -31
- package/dist/agent-fence.js +57 -9
- package/dist/assignment.js +9 -7
- package/dist/batch-checks.js +2 -2
- package/dist/browser/workspace.js +23 -23
- package/dist/builder.js +12 -8
- package/dist/central-recovery-stage.js +3 -3
- package/dist/cli-help.js +1 -0
- package/dist/codex-limits.js +40 -22
- package/dist/coding-provider.js +3 -3
- package/dist/contracts/console-api.js +3 -0
- package/dist/direct-chat-fence.js +9 -3
- package/dist/direct-chat.js +82 -10
- package/dist/engine-reads.js +3 -1
- package/dist/flexible-agents.js +16 -2
- package/dist/flexible-import.js +38 -0
- package/dist/flexible-save.js +128 -0
- package/dist/flexible-session.js +11 -3
- package/dist/flexible-ship.js +3 -3
- package/dist/flexible-thread.js +7 -3
- package/dist/install-method.js +1 -3
- package/dist/invoke.js +11 -9
- package/dist/lead-tools.js +3 -2
- package/dist/live-terminal.js +24 -3
- package/dist/local-checks.js +32 -0
- package/dist/local-landing.js +321 -63
- package/dist/local-owner.js +3 -0
- package/dist/operate.js +25 -7
- package/dist/plan-limits-demand.js +48 -0
- package/dist/planner.js +2 -0
- package/dist/project-delete.js +1 -1
- package/dist/project-skills.js +105 -17
- package/dist/result-follow-ups.js +24 -10
- package/dist/review-context.js +2 -1
- package/dist/scout.js +2 -1
- package/dist/serve.js +8 -1
- package/dist/server/direct-chat.js +25 -3
- package/dist/server/engine-api.js +24 -3
- package/dist/server/render-release.js +27 -15
- package/dist/server/render-results.js +6 -4
- package/dist/server/route-table.js +8 -1
- package/dist/server/send-back-build.js +4 -0
- package/dist/server/settings.js +153 -3
- package/dist/server/task-views.js +8 -3
- package/dist/server/tasks.js +51 -9
- package/dist/server/terminals.js +3 -1
- package/dist/settings-groups-ui.js +1 -1
- package/dist/skill-library-schema.js +70 -0
- package/dist/skill-library.js +693 -0
- package/dist/skill-local-sync.js +334 -0
- package/dist/skills-manifest.js +6 -3
- package/dist/skills-ui.js +122 -1
- package/dist/store.js +22 -4
- package/dist/subscription-usage.js +11 -5
- package/dist/surface.js +3 -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 +3 -1
- package/package.json +2 -1
package/dist/task-base.js
CHANGED
|
@@ -10,11 +10,29 @@ export const readGit = (cwd, args) => {
|
|
|
10
10
|
};
|
|
11
11
|
const commits = (count) => `${count} commit${count === 1 ? "" : "s"}`;
|
|
12
12
|
export function baseStandingWords(view) {
|
|
13
|
-
const short = view.base.slice(0, 8);
|
|
13
|
+
const short = view.family === true ? `Whole change since ${view.base.slice(0, 8)} (includes earlier attempts' work that's still in it)` : view.base.slice(0, 8);
|
|
14
14
|
if (view.main === null || view.behind === null)
|
|
15
15
|
return short;
|
|
16
16
|
return view.behind === 0 ? `${short} · Up to date with ${view.main}` : `${short} · Behind ${view.main} by ${commits(view.behind)}`;
|
|
17
17
|
}
|
|
18
|
+
export function familyStartOf(store, taskRef) {
|
|
19
|
+
const id = store.externalIdFor(taskRef);
|
|
20
|
+
const ref = id === null ? null : store.lookupRef(id);
|
|
21
|
+
if (id === null || ref === null || ref.revisionOf === null)
|
|
22
|
+
return null;
|
|
23
|
+
const ancestry = store.revisionAncestryStatus(id);
|
|
24
|
+
const rootId = ancestry.chain[ancestry.chain.length - 1];
|
|
25
|
+
const root = ancestry.problem !== null || rootId === undefined || rootId === id ? null : store.lookupRef(rootId);
|
|
26
|
+
if (root === null || root.repo !== ref.repo)
|
|
27
|
+
return null;
|
|
28
|
+
const first = store.runsFor(root.id).filter(one => one.role === "builder" && one.branch !== null && one.baseRevision !== null).sort((a, b) => a.id - b.id)[0];
|
|
29
|
+
if (first === undefined || first.branch === null)
|
|
30
|
+
return null;
|
|
31
|
+
return store.firstBuilderBase(root.id, first.branch) ?? first.baseRevision;
|
|
32
|
+
}
|
|
33
|
+
export function wholeChangeBaseOf(store, taskRef, branch) {
|
|
34
|
+
return familyStartOf(store, taskRef) ?? store.firstBuilderBase(taskRef, branch);
|
|
35
|
+
}
|
|
18
36
|
export function freshBaseFor(store, taskId, branch, main) {
|
|
19
37
|
const ref = store.lookupRef(taskId);
|
|
20
38
|
if (ref === null || ref.revisionOf !== null || store.getScope(taskId)?.candidate != null || store.filedViaOf(taskId)?.startsWith("coding:") === true)
|
|
@@ -30,12 +48,13 @@ export function taskBaseOf(store, taskId, git = readGit) {
|
|
|
30
48
|
return null;
|
|
31
49
|
const branch = latest.branch;
|
|
32
50
|
const move = store.latestBranchBaseMove(ref.id, branch);
|
|
33
|
-
const
|
|
51
|
+
const family = familyStartOf(store, ref.id);
|
|
52
|
+
const base = family ?? (move !== null && move.afterRun >= latest.id ? move.to : store.recordedBranchBase(ref.id, branch) ?? latest.baseRevision);
|
|
34
53
|
const main = git(ref.repo, ["symbolic-ref", "--short", "-q", "HEAD"]) || null;
|
|
35
54
|
const counted = main === null ? null : git(ref.repo, ["rev-list", "--count", `${base}..refs/heads/${main}`]);
|
|
36
55
|
const behind = counted === null || !/^\d+$/.test(counted) ? null : Number(counted);
|
|
37
|
-
const view = { base, branch, main: behind === null ? null : main, behind };
|
|
38
|
-
return { ...view, words: `Base ${baseStandingWords(view)}` };
|
|
56
|
+
const view = { base, branch, main: behind === null ? null : main, behind, ...(family === null ? {} : { family: true }) };
|
|
57
|
+
return { ...view, words: family === null ? `Base ${baseStandingWords(view)}` : baseStandingWords(view) };
|
|
39
58
|
}
|
|
40
59
|
export function recentGitReads(git = readGit, ttlMs = 15_000, entries = 64, now = Date.now) {
|
|
41
60
|
const kept = new Map();
|
package/dist/task-outcome-cli.js
CHANGED
|
@@ -15,6 +15,7 @@ import { proveRunStopped } from './stop-proof.js';
|
|
|
15
15
|
import { familyChangedFiles } from './result-completion.js';
|
|
16
16
|
import { activeRemote } from './remote-run.js';
|
|
17
17
|
import { underAgent } from './prompt.js';
|
|
18
|
+
import { landingOf, publishesThroughPullRequests } from './local-landing.js';
|
|
18
19
|
export async function runTaskOutcomeCommand(action, positional, flags, context) {
|
|
19
20
|
const command = context.command ?? `task ${action}`;
|
|
20
21
|
const emit = (result, lines) => {
|
|
@@ -96,7 +97,7 @@ export async function runTaskOutcomeCommand(action, positional, flags, context)
|
|
|
96
97
|
return emit(changed);
|
|
97
98
|
const assignment = 'body' in changed ? changed.body : changed.assignment;
|
|
98
99
|
return emit({ ok: true, result: assignment }, [`${current.rootId} · Accepted`, `Result: ${current.activeTaskId} · build #${current.receipt.runId} · ${current.receipt.head?.slice(0, 7) ?? 'no commit'}`,
|
|
99
|
-
...(current.readiness?.checksOff ? [] : [current.receipt.checks.detail])]);
|
|
100
|
+
...(current.readiness?.checksOff ? [] : [current.receipt.checks.detail]), ...landNext(store, current.rootId, current.receipt.head)]);
|
|
100
101
|
}
|
|
101
102
|
const feedback = flags.get('feedback'), runFlag = flags.get('run'), sourceFlag = flags.get('source'), keyFlag = flags.get('key');
|
|
102
103
|
if (typeof feedback !== 'string' || !feedback.trim())
|
|
@@ -232,8 +233,16 @@ export async function runLocalCompletion(positional, flags, context) {
|
|
|
232
233
|
`${assignment.rootId} · ${done.replayed ? 'Already accepted' : 'Accepted'}`,
|
|
233
234
|
`Result: ${receipt.taskId} · build #${receipt.runId} · ${receipt.head?.slice(0, 7) ?? 'no commit'}`,
|
|
234
235
|
...(assignment.readiness?.checksOff ? [] : [receipt.checks.detail]),
|
|
236
|
+
...landNext(store, assignment.rootId, receipt.head),
|
|
235
237
|
]);
|
|
236
238
|
}
|
|
239
|
+
function landNext(store, rootId, head) {
|
|
240
|
+
const repo = store.lookupRef(rootId)?.repo ?? null;
|
|
241
|
+
if (repo === null || head === null || publishesThroughPullRequests(store, repo))
|
|
242
|
+
return [];
|
|
243
|
+
const landed = landingOf(store, rootId);
|
|
244
|
+
return landed !== null && !landed.undone ? [] : [`Next: toolroll task land ${rootId}`];
|
|
245
|
+
}
|
|
237
246
|
export function reviseAsLocalOwner(store, taskId, input, now, evidenceRoot) {
|
|
238
247
|
const fail = (reason, message) => ({ ok: false, reason, message });
|
|
239
248
|
try {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -13,6 +13,7 @@ import { sealedInventorySchema } from "./contracts/release-check.js";
|
|
|
13
13
|
import { purposeCheckMode } from "./contracts/release-terms.js";
|
|
14
14
|
import { provedComposition } from "./release-recheck.js";
|
|
15
15
|
import { checkAttemptOf, verifyCommandAt } from "./store.js";
|
|
16
|
+
import { familyStartOf } from "./task-base.js";
|
|
16
17
|
export const VERIFICATION_RECEIPT_CAPTURE = "machine verification receipt v1";
|
|
17
18
|
const hash = (value) => createHash("sha256").update(JSON.stringify(value)).digest("hex");
|
|
18
19
|
const binding = (a) => ({ artifactId: a.id, sha256: a.sha256, bytesStored: a.bytesStored, bytesOriginal: a.bytesOriginal, truncated: a.truncated, redacted: a.redacted, captureStatus: a.captureStatus });
|
|
@@ -277,7 +278,8 @@ export function assessmentFromSavedEvidence(store, root, runId) {
|
|
|
277
278
|
try {
|
|
278
279
|
const view = readVerificationView(gate.bytes);
|
|
279
280
|
const base = source.branch ? store.firstBuilderBase(source.taskRef, source.branch) ?? source.baseRevision : source.baseRevision;
|
|
280
|
-
const
|
|
281
|
+
const family = familyStartOf(store, source.taskRef);
|
|
282
|
+
const paths = (family === null ? null : savedInventoryPaths(stat, source.headRevision, family)) ?? savedInventoryPaths(stat, source.headRevision, base);
|
|
281
283
|
if (!view.ok || paths === null)
|
|
282
284
|
return null;
|
|
283
285
|
const receipt = view.value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toolroll",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.122",
|
|
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"
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"test:perf:wire": "TZ=UTC vitest run --config test/perf/vitest.config.ts",
|
|
15
15
|
"test:git": "vitest run test/attacks/checkout-git- test/attacks/fence-git-views test/attacks/repository-context-git test/attacks/discover-dirty src/teardown-git.test.ts src/worktree.slow.test.ts",
|
|
16
16
|
"check:quick": "node scripts/quick-check.mjs",
|
|
17
|
+
"check:fast": "npm run typecheck && vitest run src/password-freshness.test.ts src/central-recovery-stage.test.ts src/migration-check-recovery-index.slow.test.ts src/server/adapter-inventory.test.ts src/contracts/tools.test.ts src/ci-workflow.test.ts",
|
|
17
18
|
"lint:comments": "node scripts/lint-comments.mjs mac/Sources mac/Tests",
|
|
18
19
|
"lint:comments:fix": "node scripts/lint-comments.mjs --fix mac/Sources mac/Tests",
|
|
19
20
|
"dev": "tsx src/cli.ts",
|