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.
Files changed (155) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/agent-fence.js +0 -2
  3. package/dist/agent-state.js +1 -1
  4. package/dist/agents-board.js +0 -3
  5. package/dist/assignment.js +4 -3
  6. package/dist/backup-ui.js +6 -3
  7. package/dist/bounded-spawn.js +0 -1
  8. package/dist/browser/manifest.json +57 -0
  9. package/dist/browser/terminal.4d1cf20c32ad7c2099df657358d540d5fd92bb55195a88121e74b28467238b42.css.br +0 -0
  10. package/dist/browser/terminal.4d1cf20c32ad7c2099df657358d540d5fd92bb55195a88121e74b28467238b42.css.gz +0 -0
  11. package/dist/browser/{terminal.js → terminal.8978c8cbb268e1006f4b0be371c2401b58078e6d9f1380f4a5c2a12da843909f.js} +1 -1
  12. package/dist/browser/terminal.8978c8cbb268e1006f4b0be371c2401b58078e6d9f1380f4a5c2a12da843909f.js.br +0 -0
  13. package/dist/browser/terminal.8978c8cbb268e1006f4b0be371c2401b58078e6d9f1380f4a5c2a12da843909f.js.gz +0 -0
  14. package/dist/browser/{workspace.js → workspace.4f5935dc80574baadf1adafd39a08c567fb1fac1323052ca355546622f9b06d2.js} +25 -25
  15. package/dist/browser/workspace.4f5935dc80574baadf1adafd39a08c567fb1fac1323052ca355546622f9b06d2.js.br +0 -0
  16. package/dist/browser/workspace.4f5935dc80574baadf1adafd39a08c567fb1fac1323052ca355546622f9b06d2.js.gz +0 -0
  17. package/dist/browser/{workspace.css → workspace.a0752f935cfeaf16758d1085fe8f3e1719a7cd525b91a9c9943c789d65879a54.css} +1 -1
  18. package/dist/browser/workspace.a0752f935cfeaf16758d1085fe8f3e1719a7cd525b91a9c9943c789d65879a54.css.br +0 -0
  19. package/dist/browser/workspace.a0752f935cfeaf16758d1085fe8f3e1719a7cd525b91a9c9943c789d65879a54.css.gz +0 -0
  20. package/dist/browser-shell.js +271 -25
  21. package/dist/builder-restart.js +13 -4
  22. package/dist/builder.js +4 -1
  23. package/dist/canvas-freshness.js +122 -0
  24. package/dist/canvas-fs.js +273 -0
  25. package/dist/canvas-reads.js +747 -0
  26. package/dist/canvas-state-key.js +45 -0
  27. package/dist/canvas-state-worker.js +12 -0
  28. package/dist/central-recovery-stage.js +3 -3
  29. package/dist/chat-actions.js +26 -0
  30. package/dist/chat-channel.js +4 -3
  31. package/dist/chat-follow.js +4 -0
  32. package/dist/chat-task-actions.js +1 -1
  33. package/dist/chat-warmth.js +0 -1
  34. package/dist/check-report.js +0 -6
  35. package/dist/commit-extract.js +79 -40
  36. package/dist/companion/access.js +1 -0
  37. package/dist/companion/actions.js +79 -16
  38. package/dist/companion/canvas.js +141 -0
  39. package/dist/companion/chat-origin.js +92 -0
  40. package/dist/companion/chat.js +571 -0
  41. package/dist/companion/daemon.js +46 -5
  42. package/dist/companion/finish.js +51 -0
  43. package/dist/companion/reads.js +5 -1
  44. package/dist/companion/schema.js +64 -0
  45. package/dist/companion/service.js +1 -0
  46. package/dist/companion/store.js +1 -0
  47. package/dist/companion/webauthn.js +11 -2
  48. package/dist/console-instance.js +0 -4
  49. package/dist/contracts/console-api.js +1 -1
  50. package/dist/converse.js +0 -1
  51. package/dist/coordinator.js +1 -1
  52. package/dist/db-tuning.js +16 -0
  53. package/dist/desktop-config.js +156 -0
  54. package/dist/desktop-host.js +6 -152
  55. package/dist/desktop-update.js +1 -1
  56. package/dist/discord.js +9 -3
  57. package/dist/dispatch.js +32 -4
  58. package/dist/doctor.js +30 -0
  59. package/dist/evidence.js +49 -3
  60. package/dist/exec.js +3 -0
  61. package/dist/finished-task-sql.js +14 -0
  62. package/dist/flexible-answers.js +0 -1
  63. package/dist/git-views.js +7 -1
  64. package/dist/github-read.js +41 -0
  65. package/dist/guides.js +4 -3
  66. package/dist/invoke.js +12 -2
  67. package/dist/lead-doors.js +50 -3
  68. package/dist/lead-queue-runtime.js +18 -6
  69. package/dist/lead-queue.js +25 -0
  70. package/dist/lead-status.js +3 -3
  71. package/dist/live-backup-change.js +93 -0
  72. package/dist/live-backup.js +75 -31
  73. package/dist/live-bus.js +3 -2
  74. package/dist/live-records.js +0 -1
  75. package/dist/local-owner.js +0 -1
  76. package/dist/loop-recovery.js +40 -0
  77. package/dist/maintenance.js +29 -1
  78. package/dist/model-choices.js +0 -11
  79. package/dist/needs-you.js +2 -0
  80. package/dist/nightly-check.js +0 -3
  81. package/dist/nightly-github.js +1 -2
  82. package/dist/notification-retention.js +119 -0
  83. package/dist/observations.js +0 -1
  84. package/dist/operate.js +393 -56
  85. package/dist/planner.js +4 -1
  86. package/dist/pull-request-flow.js +56 -15
  87. package/dist/qr.js +0 -25
  88. package/dist/query-index-schema.js +10 -0
  89. package/dist/read-executor-worker.js +9 -7
  90. package/dist/read-executor.js +18 -1
  91. package/dist/read-worker-connection.js +7 -0
  92. package/dist/release-adapters.js +63 -48
  93. package/dist/release-auto.js +17 -13
  94. package/dist/release-card.js +0 -4
  95. package/dist/release-cli.js +58 -10
  96. package/dist/release-next.js +1 -1
  97. package/dist/release-stops.js +71 -0
  98. package/dist/release-supersede.js +125 -0
  99. package/dist/release-supervise.js +90 -0
  100. package/dist/release.js +265 -42
  101. package/dist/restore-retirement.js +4 -1
  102. package/dist/result-review.js +0 -3
  103. package/dist/retention-ui.js +1 -1
  104. package/dist/retention.js +14 -21
  105. package/dist/review-context.js +0 -5
  106. package/dist/route-rules.js +1 -5
  107. package/dist/runner.js +36 -1
  108. package/dist/sandbox-runtime.js +0 -1
  109. package/dist/scope.js +1 -13
  110. package/dist/scout.js +4 -7
  111. package/dist/serve.js +122 -12
  112. package/dist/server/kit.js +1 -0
  113. package/dist/server/live.js +9 -2
  114. package/dist/server/pages.js +3 -2
  115. package/dist/server/phone-engine-api.js +22 -2
  116. package/dist/server/render-pages.js +1 -11
  117. package/dist/server/render-results.js +0 -1
  118. package/dist/server/render-tasks.js +0 -68
  119. package/dist/server/route-table.js +1 -1
  120. package/dist/server/settings-phone.js +32 -9
  121. package/dist/server/settings-scripts.js +1 -1
  122. package/dist/server/settings-section-table.js +0 -3
  123. package/dist/server/settings-sections.js +4 -2
  124. package/dist/server/settings.js +20 -5
  125. package/dist/server/terminals.js +2 -1
  126. package/dist/shutdown-proof.js +29 -0
  127. package/dist/slack.js +9 -3
  128. package/dist/sqlite-telemetry.js +26 -14
  129. package/dist/statement-cache.js +137 -0
  130. package/dist/store.js +86 -14
  131. package/dist/structured-output.js +0 -1
  132. package/dist/style-asset.js +20 -7
  133. package/dist/tailnet.js +0 -3
  134. package/dist/task-control.js +5 -0
  135. package/dist/task-sizing.js +0 -1
  136. package/dist/task-status.js +1 -1
  137. package/dist/teams.js +9 -3
  138. package/dist/teardown-git.js +10 -1
  139. package/dist/telegram.js +4 -1
  140. package/dist/toolroll-update-cli.js +19 -3
  141. package/dist/toolroll-update-ui.js +2 -2
  142. package/dist/toolroll-update.js +95 -15
  143. package/dist/up-processes.js +16 -1
  144. package/dist/up-role-child.js +2 -0
  145. package/dist/wake-hub.js +15 -6
  146. package/dist/work-index.js +101 -44
  147. package/dist/work-reads.js +53 -9
  148. package/dist/work-snapshots.js +185 -0
  149. package/dist/worker-statement-cache.js +83 -0
  150. package/dist/workspace-revision.js +145 -21
  151. package/package.json +1 -1
  152. package/dist/companion/webauthn-test-support.js +0 -44
  153. package/dist/contracts/contract-test.js +0 -55
  154. package/dist/unfenced-test-support.js +0 -6
  155. /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
- }
@@ -1,6 +0,0 @@
1
- import { linuxFenceAvailable, macosFenceAvailable } from "./agent-fence.js";
2
- export function allowWhereUnfenced(store) {
3
- if (!macosFenceAvailable() && !linuxFenceAvailable())
4
- store.setUnfencedAgentsAllowed(true, "test", new Date(0));
5
- return store;
6
- }