toolroll 0.9.129 → 0.9.131
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 +44 -0
- package/dist/agent-fence.js +0 -2
- package/dist/agent-state.js +1 -1
- package/dist/agents-board.js +0 -3
- package/dist/assignment.js +4 -3
- package/dist/backup-ui.js +6 -3
- package/dist/bounded-spawn.js +0 -1
- package/dist/browser/manifest.json +57 -0
- package/dist/browser/terminal.4d1cf20c32ad7c2099df657358d540d5fd92bb55195a88121e74b28467238b42.css.br +0 -0
- package/dist/browser/terminal.4d1cf20c32ad7c2099df657358d540d5fd92bb55195a88121e74b28467238b42.css.gz +0 -0
- package/dist/browser/{terminal.js → terminal.8978c8cbb268e1006f4b0be371c2401b58078e6d9f1380f4a5c2a12da843909f.js} +1 -1
- package/dist/browser/terminal.8978c8cbb268e1006f4b0be371c2401b58078e6d9f1380f4a5c2a12da843909f.js.br +0 -0
- package/dist/browser/terminal.8978c8cbb268e1006f4b0be371c2401b58078e6d9f1380f4a5c2a12da843909f.js.gz +0 -0
- package/dist/browser/{workspace.js → workspace.4f5935dc80574baadf1adafd39a08c567fb1fac1323052ca355546622f9b06d2.js} +25 -25
- package/dist/browser/workspace.4f5935dc80574baadf1adafd39a08c567fb1fac1323052ca355546622f9b06d2.js.br +0 -0
- package/dist/browser/workspace.4f5935dc80574baadf1adafd39a08c567fb1fac1323052ca355546622f9b06d2.js.gz +0 -0
- package/dist/browser/{workspace.css → workspace.a0752f935cfeaf16758d1085fe8f3e1719a7cd525b91a9c9943c789d65879a54.css} +1 -1
- package/dist/browser/workspace.a0752f935cfeaf16758d1085fe8f3e1719a7cd525b91a9c9943c789d65879a54.css.br +0 -0
- package/dist/browser/workspace.a0752f935cfeaf16758d1085fe8f3e1719a7cd525b91a9c9943c789d65879a54.css.gz +0 -0
- package/dist/browser-shell.js +271 -25
- package/dist/builder-restart.js +13 -4
- package/dist/builder.js +4 -1
- package/dist/canvas-freshness.js +122 -0
- package/dist/canvas-fs.js +273 -0
- package/dist/canvas-reads.js +747 -0
- package/dist/canvas-state-key.js +45 -0
- package/dist/canvas-state-worker.js +12 -0
- package/dist/central-recovery-stage.js +3 -3
- package/dist/chat-actions.js +26 -0
- package/dist/chat-channel.js +4 -3
- package/dist/chat-follow.js +4 -0
- package/dist/chat-task-actions.js +1 -1
- package/dist/chat-warmth.js +0 -1
- package/dist/check-report.js +0 -6
- package/dist/commit-extract.js +79 -40
- package/dist/companion/access.js +1 -0
- package/dist/companion/actions.js +79 -16
- package/dist/companion/canvas.js +141 -0
- package/dist/companion/chat-origin.js +92 -0
- package/dist/companion/chat.js +571 -0
- package/dist/companion/daemon.js +46 -5
- package/dist/companion/finish.js +51 -0
- package/dist/companion/reads.js +5 -1
- package/dist/companion/schema.js +64 -0
- package/dist/companion/service.js +1 -0
- package/dist/companion/store.js +1 -0
- package/dist/companion/webauthn.js +11 -2
- package/dist/console-instance.js +0 -4
- package/dist/contracts/console-api.js +1 -1
- package/dist/converse.js +0 -1
- package/dist/coordinator.js +1 -1
- package/dist/db-tuning.js +16 -0
- package/dist/desktop-config.js +156 -0
- package/dist/desktop-host.js +6 -152
- package/dist/desktop-update.js +1 -1
- package/dist/discord.js +9 -3
- package/dist/dispatch.js +32 -4
- package/dist/doctor.js +30 -0
- package/dist/evidence.js +49 -3
- package/dist/exec.js +3 -0
- package/dist/finished-task-sql.js +14 -0
- package/dist/flexible-answers.js +0 -1
- package/dist/git-views.js +7 -1
- package/dist/github-read.js +41 -0
- package/dist/guides.js +4 -3
- package/dist/invoke.js +12 -2
- package/dist/lead-doors.js +50 -3
- package/dist/lead-queue-runtime.js +18 -6
- package/dist/lead-queue.js +25 -0
- package/dist/lead-status.js +3 -3
- package/dist/live-backup-change.js +93 -0
- package/dist/live-backup.js +75 -31
- package/dist/live-bus.js +3 -2
- package/dist/live-records.js +0 -1
- package/dist/local-owner.js +0 -1
- package/dist/loop-recovery.js +40 -0
- package/dist/maintenance.js +29 -1
- package/dist/model-choices.js +0 -11
- package/dist/needs-you.js +2 -0
- package/dist/nightly-check.js +0 -3
- package/dist/nightly-github.js +1 -2
- package/dist/notification-retention.js +119 -0
- package/dist/observations.js +0 -1
- package/dist/operate.js +393 -56
- package/dist/planner.js +4 -1
- package/dist/pull-request-flow.js +56 -15
- package/dist/qr.js +0 -25
- package/dist/query-index-schema.js +10 -0
- package/dist/read-executor-worker.js +9 -7
- package/dist/read-executor.js +18 -1
- package/dist/read-worker-connection.js +7 -0
- package/dist/release-adapters.js +63 -48
- package/dist/release-auto.js +17 -13
- package/dist/release-card.js +0 -4
- package/dist/release-cli.js +58 -10
- package/dist/release-next.js +1 -1
- package/dist/release-stops.js +71 -0
- package/dist/release-supersede.js +125 -0
- package/dist/release-supervise.js +90 -0
- package/dist/release.js +265 -42
- package/dist/restore-retirement.js +4 -1
- package/dist/result-review.js +0 -3
- package/dist/retention-ui.js +1 -1
- package/dist/retention.js +14 -21
- package/dist/review-context.js +0 -5
- package/dist/route-rules.js +1 -5
- package/dist/runner.js +36 -1
- package/dist/sandbox-runtime.js +0 -1
- package/dist/scope.js +1 -13
- package/dist/scout.js +4 -7
- package/dist/serve.js +122 -12
- package/dist/server/kit.js +1 -0
- package/dist/server/live.js +9 -2
- package/dist/server/pages.js +3 -2
- package/dist/server/phone-engine-api.js +22 -2
- package/dist/server/render-pages.js +1 -11
- package/dist/server/render-results.js +0 -1
- package/dist/server/render-tasks.js +0 -68
- package/dist/server/route-table.js +1 -1
- package/dist/server/settings-phone.js +32 -9
- package/dist/server/settings-scripts.js +1 -1
- package/dist/server/settings-section-table.js +0 -3
- package/dist/server/settings-sections.js +4 -2
- package/dist/server/settings.js +20 -5
- package/dist/server/terminals.js +2 -1
- package/dist/shutdown-proof.js +29 -0
- package/dist/slack.js +9 -3
- package/dist/sqlite-telemetry.js +26 -14
- package/dist/statement-cache.js +137 -0
- package/dist/store.js +86 -14
- package/dist/structured-output.js +0 -1
- package/dist/style-asset.js +20 -7
- package/dist/tailnet.js +0 -3
- package/dist/task-control.js +5 -0
- package/dist/task-sizing.js +0 -1
- package/dist/task-status.js +1 -1
- package/dist/teams.js +9 -3
- package/dist/teardown-git.js +10 -1
- package/dist/telegram.js +4 -1
- package/dist/toolroll-update-cli.js +19 -3
- package/dist/toolroll-update-ui.js +2 -2
- package/dist/toolroll-update.js +95 -15
- package/dist/up-processes.js +16 -1
- package/dist/up-role-child.js +2 -0
- package/dist/wake-hub.js +15 -6
- package/dist/work-index.js +101 -44
- package/dist/work-reads.js +53 -9
- package/dist/work-snapshots.js +185 -0
- package/dist/worker-statement-cache.js +83 -0
- package/dist/workspace-revision.js +145 -21
- package/package.json +1 -1
- package/dist/companion/webauthn-test-support.js +0 -44
- package/dist/contracts/contract-test.js +0 -55
- package/dist/unfenced-test-support.js +0 -6
- /package/dist/browser/{terminal.css → terminal.4d1cf20c32ad7c2099df657358d540d5fd92bb55195a88121e74b28467238b42.css} +0 -0
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export function encodeCbor(value) {
|
|
2
|
-
const header = (major, n) => {
|
|
3
|
-
if (n < 24)
|
|
4
|
-
return Buffer.from([(major << 5) | n]);
|
|
5
|
-
if (n < 0x100)
|
|
6
|
-
return Buffer.from([(major << 5) | 24, n]);
|
|
7
|
-
if (n < 0x10000) {
|
|
8
|
-
const b = Buffer.alloc(3);
|
|
9
|
-
b[0] = (major << 5) | 25;
|
|
10
|
-
b.writeUInt16BE(n, 1);
|
|
11
|
-
return b;
|
|
12
|
-
}
|
|
13
|
-
const b = Buffer.alloc(5);
|
|
14
|
-
b[0] = (major << 5) | 26;
|
|
15
|
-
b.writeUInt32BE(n, 1);
|
|
16
|
-
return b;
|
|
17
|
-
};
|
|
18
|
-
if (typeof value === "number") {
|
|
19
|
-
if (!Number.isInteger(value))
|
|
20
|
-
throw new Error("non_integer");
|
|
21
|
-
return value >= 0 ? header(0, value) : header(1, -1 - value);
|
|
22
|
-
}
|
|
23
|
-
if (Buffer.isBuffer(value))
|
|
24
|
-
return Buffer.concat([header(2, value.length), value]);
|
|
25
|
-
if (typeof value === "string") {
|
|
26
|
-
const b = Buffer.from(value, "utf8");
|
|
27
|
-
return Buffer.concat([header(3, b.length), b]);
|
|
28
|
-
}
|
|
29
|
-
if (Array.isArray(value))
|
|
30
|
-
return Buffer.concat([header(4, value.length), ...value.map(encodeCbor)]);
|
|
31
|
-
if (value instanceof Map) {
|
|
32
|
-
const parts = [header(5, value.size)];
|
|
33
|
-
for (const [k, v] of value.entries())
|
|
34
|
-
parts.push(encodeCbor(k), encodeCbor(v));
|
|
35
|
-
return Buffer.concat(parts);
|
|
36
|
-
}
|
|
37
|
-
if (value === false)
|
|
38
|
-
return Buffer.from([0xf4]);
|
|
39
|
-
if (value === true)
|
|
40
|
-
return Buffer.from([0xf5]);
|
|
41
|
-
if (value === null)
|
|
42
|
-
return Buffer.from([0xf6]);
|
|
43
|
-
throw new Error("unsupported_cbor");
|
|
44
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { toModelSchema } from "./contract.js";
|
|
3
|
-
export function jsonSchemaKeywords(schema, pointer = "") {
|
|
4
|
-
if (Array.isArray(schema))
|
|
5
|
-
return schema.flatMap((item, index) => jsonSchemaKeywords(item, `${pointer}/${index}`)).sort();
|
|
6
|
-
if (schema === null || typeof schema !== "object")
|
|
7
|
-
return [];
|
|
8
|
-
const out = [];
|
|
9
|
-
for (const [key, value] of Object.entries(schema)) {
|
|
10
|
-
if (value !== null && typeof value === "object") {
|
|
11
|
-
if (Array.isArray(value) && value.every(item => item === null || typeof item !== "object"))
|
|
12
|
-
out.push(`${pointer} ${key}=${JSON.stringify(value)}`);
|
|
13
|
-
else
|
|
14
|
-
out.push(...jsonSchemaKeywords(value, `${pointer}/${key}`));
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
out.push(`${pointer} ${key}=${JSON.stringify(value)}`);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return out.sort();
|
|
21
|
-
}
|
|
22
|
-
export function roundTripLoss(schema) {
|
|
23
|
-
const before = toModelSchema(schema);
|
|
24
|
-
const after = toModelSchema(z.fromJSONSchema(before));
|
|
25
|
-
const kept = new Set(jsonSchemaKeywords(after));
|
|
26
|
-
return jsonSchemaKeywords(before).filter(keyword => !kept.has(keyword)).map(keyword => `lost in the round trip: ${keyword}`);
|
|
27
|
-
}
|
|
28
|
-
export function replaySamples(spec) {
|
|
29
|
-
const failures = [];
|
|
30
|
-
for (const sample of spec.valid) {
|
|
31
|
-
const verdict = spec.read(sample.input);
|
|
32
|
-
if (!verdict.ok)
|
|
33
|
-
failures.push(`${sample.name}: refused — ${verdict.lines.join("; ")}`);
|
|
34
|
-
}
|
|
35
|
-
for (const sample of spec.invalid) {
|
|
36
|
-
const verdict = spec.read(sample.input);
|
|
37
|
-
if (verdict.ok) {
|
|
38
|
-
failures.push(`${sample.name}: accepted, expected a refusal naming ${sample.paths.join(", ")}`);
|
|
39
|
-
continue;
|
|
40
|
-
}
|
|
41
|
-
for (const path of sample.paths) {
|
|
42
|
-
if (!verdict.lines.some(line => line.startsWith(`${path}:`)))
|
|
43
|
-
failures.push(`${sample.name}: no line names ${path} — ${verdict.lines.join("; ")}`);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return failures;
|
|
47
|
-
}
|
|
48
|
-
export function contractFailures(spec) {
|
|
49
|
-
return [...(spec.schema === undefined ? [] : roundTripLoss(spec.schema)), ...replaySamples(spec)];
|
|
50
|
-
}
|
|
51
|
-
export function assertContract(spec) {
|
|
52
|
-
const failures = contractFailures(spec);
|
|
53
|
-
if (failures.length > 0)
|
|
54
|
-
throw new Error(`the contract does not hold:\n${failures.map(one => `- ${one}`).join("\n")}`);
|
|
55
|
-
}
|
|
File without changes
|