driverkit 0.0.0-stage → 0.0.1

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 (160) hide show
  1. package/CONTROLS.md +578 -0
  2. package/REACT.md +477 -0
  3. package/README.md +104 -2
  4. package/dist/agent/backend.d.ts +69 -0
  5. package/dist/agent/backend.d.ts.map +1 -0
  6. package/dist/agent/backend.js +130 -0
  7. package/dist/agent/backend.js.map +1 -0
  8. package/dist/agent/control.d.ts +148 -0
  9. package/dist/agent/control.d.ts.map +1 -0
  10. package/dist/agent/control.js +342 -0
  11. package/dist/agent/control.js.map +1 -0
  12. package/dist/agent/index.d.ts +9 -0
  13. package/dist/agent/index.d.ts.map +1 -0
  14. package/dist/agent/index.js +6 -0
  15. package/dist/agent/index.js.map +1 -0
  16. package/dist/agent/loop.d.ts +136 -0
  17. package/dist/agent/loop.d.ts.map +1 -0
  18. package/dist/agent/loop.js +824 -0
  19. package/dist/agent/loop.js.map +1 -0
  20. package/dist/agent/render.d.ts +173 -0
  21. package/dist/agent/render.d.ts.map +1 -0
  22. package/dist/agent/render.js +425 -0
  23. package/dist/agent/render.js.map +1 -0
  24. package/dist/agent/tools.d.ts +138 -0
  25. package/dist/agent/tools.d.ts.map +1 -0
  26. package/dist/agent/tools.js +622 -0
  27. package/dist/agent/tools.js.map +1 -0
  28. package/dist/agent/types.d.ts +566 -0
  29. package/dist/agent/types.d.ts.map +1 -0
  30. package/dist/agent/types.js +32 -0
  31. package/dist/agent/types.js.map +1 -0
  32. package/dist/browser/budget.d.ts +92 -0
  33. package/dist/browser/budget.d.ts.map +1 -0
  34. package/dist/browser/budget.js +151 -0
  35. package/dist/browser/budget.js.map +1 -0
  36. package/dist/browser/connect.d.ts +368 -0
  37. package/dist/browser/connect.d.ts.map +1 -0
  38. package/dist/browser/connect.js +1038 -0
  39. package/dist/browser/connect.js.map +1 -0
  40. package/dist/browser/elsewhere.d.ts +89 -0
  41. package/dist/browser/elsewhere.d.ts.map +1 -0
  42. package/dist/browser/elsewhere.js +91 -0
  43. package/dist/browser/elsewhere.js.map +1 -0
  44. package/dist/browser/frames.d.ts +85 -0
  45. package/dist/browser/frames.d.ts.map +1 -0
  46. package/dist/browser/frames.js +11 -0
  47. package/dist/browser/frames.js.map +1 -0
  48. package/dist/browser/index.d.ts +8 -0
  49. package/dist/browser/index.d.ts.map +1 -0
  50. package/dist/browser/index.js +9 -0
  51. package/dist/browser/index.js.map +1 -0
  52. package/dist/check/check.d.ts +171 -0
  53. package/dist/check/check.d.ts.map +1 -0
  54. package/dist/check/check.js +666 -0
  55. package/dist/check/check.js.map +1 -0
  56. package/dist/check/index.d.ts +3 -0
  57. package/dist/check/index.d.ts.map +1 -0
  58. package/dist/check/index.js +2 -0
  59. package/dist/check/index.js.map +1 -0
  60. package/dist/check/types.d.ts +149 -0
  61. package/dist/check/types.d.ts.map +1 -0
  62. package/dist/check/types.js +29 -0
  63. package/dist/check/types.js.map +1 -0
  64. package/dist/controls/controls.d.ts +198 -0
  65. package/dist/controls/controls.d.ts.map +1 -0
  66. package/dist/controls/controls.js +742 -0
  67. package/dist/controls/controls.js.map +1 -0
  68. package/dist/controls/dom.d.ts +108 -0
  69. package/dist/controls/dom.d.ts.map +1 -0
  70. package/dist/controls/dom.js +56 -0
  71. package/dist/controls/dom.js.map +1 -0
  72. package/dist/controls/index.d.ts +26 -0
  73. package/dist/controls/index.d.ts.map +1 -0
  74. package/dist/controls/index.js +23 -0
  75. package/dist/controls/index.js.map +1 -0
  76. package/dist/controls/rows.d.ts +66 -0
  77. package/dist/controls/rows.d.ts.map +1 -0
  78. package/dist/controls/rows.js +127 -0
  79. package/dist/controls/rows.js.map +1 -0
  80. package/dist/core/index.d.ts +3 -0
  81. package/dist/core/index.d.ts.map +1 -0
  82. package/dist/core/index.js +15 -0
  83. package/dist/core/index.js.map +1 -0
  84. package/dist/core/registry.d.ts +192 -0
  85. package/dist/core/registry.d.ts.map +1 -0
  86. package/dist/core/registry.js +2799 -0
  87. package/dist/core/registry.js.map +1 -0
  88. package/dist/core/types.d.ts +2468 -0
  89. package/dist/core/types.d.ts.map +1 -0
  90. package/dist/core/types.js +19 -0
  91. package/dist/core/types.js.map +1 -0
  92. package/dist/otel/index.d.ts +122 -0
  93. package/dist/otel/index.d.ts.map +1 -0
  94. package/dist/otel/index.js +157 -0
  95. package/dist/otel/index.js.map +1 -0
  96. package/dist/react/index.d.ts +191 -0
  97. package/dist/react/index.d.ts.map +1 -0
  98. package/dist/react/index.js +547 -0
  99. package/dist/react/index.js.map +1 -0
  100. package/dist/react/runtime.d.ts +95 -0
  101. package/dist/react/runtime.d.ts.map +1 -0
  102. package/dist/react/runtime.js +54 -0
  103. package/dist/react/runtime.js.map +1 -0
  104. package/dist/react/store.d.ts +333 -0
  105. package/dist/react/store.d.ts.map +1 -0
  106. package/dist/react/store.js +695 -0
  107. package/dist/react/store.js.map +1 -0
  108. package/dist/relay/auth.d.ts +244 -0
  109. package/dist/relay/auth.d.ts.map +1 -0
  110. package/dist/relay/auth.js +391 -0
  111. package/dist/relay/auth.js.map +1 -0
  112. package/dist/relay/frames.d.ts +141 -0
  113. package/dist/relay/frames.d.ts.map +1 -0
  114. package/dist/relay/frames.js +20 -0
  115. package/dist/relay/frames.js.map +1 -0
  116. package/dist/relay/index.d.ts +8 -0
  117. package/dist/relay/index.d.ts.map +1 -0
  118. package/dist/relay/index.js +4 -0
  119. package/dist/relay/index.js.map +1 -0
  120. package/dist/relay/relay.d.ts +277 -0
  121. package/dist/relay/relay.d.ts.map +1 -0
  122. package/dist/relay/relay.js +1026 -0
  123. package/dist/relay/relay.js.map +1 -0
  124. package/dist/relay/serve.d.ts +33 -0
  125. package/dist/relay/serve.d.ts.map +1 -0
  126. package/dist/relay/serve.js +86 -0
  127. package/dist/relay/serve.js.map +1 -0
  128. package/dist/widget/chat.d.ts +290 -0
  129. package/dist/widget/chat.d.ts.map +1 -0
  130. package/dist/widget/chat.js +486 -0
  131. package/dist/widget/chat.js.map +1 -0
  132. package/dist/widget/css.d.ts +49 -0
  133. package/dist/widget/css.d.ts.map +1 -0
  134. package/dist/widget/css.js +532 -0
  135. package/dist/widget/css.js.map +1 -0
  136. package/dist/widget/dom.d.ts +143 -0
  137. package/dist/widget/dom.d.ts.map +1 -0
  138. package/dist/widget/dom.js +27 -0
  139. package/dist/widget/dom.js.map +1 -0
  140. package/dist/widget/highlight.d.ts +64 -0
  141. package/dist/widget/highlight.d.ts.map +1 -0
  142. package/dist/widget/highlight.js +136 -0
  143. package/dist/widget/highlight.js.map +1 -0
  144. package/dist/widget/index.d.ts +9 -0
  145. package/dist/widget/index.d.ts.map +1 -0
  146. package/dist/widget/index.js +20 -0
  147. package/dist/widget/index.js.map +1 -0
  148. package/dist/widget/position.d.ts +166 -0
  149. package/dist/widget/position.d.ts.map +1 -0
  150. package/dist/widget/position.js +497 -0
  151. package/dist/widget/position.js.map +1 -0
  152. package/dist/widget/settings.d.ts +116 -0
  153. package/dist/widget/settings.d.ts.map +1 -0
  154. package/dist/widget/settings.js +117 -0
  155. package/dist/widget/settings.js.map +1 -0
  156. package/dist/widget/widget.d.ts +442 -0
  157. package/dist/widget/widget.d.ts.map +1 -0
  158. package/dist/widget/widget.js +2005 -0
  159. package/dist/widget/widget.js.map +1 -0
  160. package/package.json +144 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control.js","sourceRoot":"","sources":["../../src/agent/control.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAIH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAC;AAElC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE,EAAE,CAAC;IACnC,KAAK,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,YA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CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/**\n * driverkit/agent — pacing and run controls.\n *\n * `drive()` on its own goes as fast as the model answers, which is right for a\n * headless caller and wrong for the case this package was built for: the agent\n * is moving the screen a person is looking at. A run nobody can follow is a run\n * nobody can stop, and \"it already accepted them\" is not a thing a person\n * should learn after the fact. So there are two mechanisms in here, and they\n * are deliberately separate.\n *\n * **Pacing** is a wait before each verb call. Its only job is to make the run\n * legible — a row appears, glows, then the verb fires — and the one property it\n * must have is that it is *cancellable*. A stop button that takes 600ms to\n * notice is a stop button a person presses twice; worse, a stop pressed during\n * a wait that is not cancellable gets the abort processed only after the wait,\n * which on a page with a 2s pace reads as a frozen panel.\n *\n * **Run controls** are pause, resume and step. These are not an abort: an abort\n * ends the run and abandons the model's calls, whereas a pause holds the run\n * open with its conversation intact so it can go on. Both exist because they\n * answer different questions — \"stop, I have seen enough\" and \"wait, let me\n * read that before you do the next one\".\n *\n * Three decisions worth stating, because they are what the tests pin:\n *\n * **1. A pause holds BETWEEN calls, never inside one.** The call in flight runs\n * to completion and its result is fed back. Anything else would need the app's\n * verb to be interruptible halfway, which no app promises and which would leave\n * the screen in a state neither the person nor the model can describe.\n *\n * **2. An abort outranks a pause.** A paused run that could not be stopped\n * would be the worst outcome of the whole feature: the person presses stop, the\n * loop is parked on a promise nobody will resolve, and the panel is wedged.\n * Every wait in here — the pace wait and the control gate both — takes the\n * run's signal and returns immediately when it fires.\n *\n * **3. None of this reaches the model.** Pacing and control state are runtime\n * state. `system` and `tools` are computed once from the manifest and must stay\n * byte-identical across turns, and a model told \"the run is paused\" would\n * start reasoning about the pause.\n */\n\nimport type { Clock, ControlState, RunControls } from \"./types.ts\";\n\n/**\n * A pace a person can actually watch, in milliseconds.\n *\n * Exported rather than left as a literal in two places, because the choice of\n * default belongs to the *caller* and the two callers want different ones.\n * `drive()` defaults to 0: it is a library primitive driven by backend jobs,\n * tests and CLIs, where nobody is watching and an invented 600ms per call is\n * pure latency added to work that has no eyes on it. A widget mounted in a page\n * defaults to this, because there is a person in front of it by definition.\n * Same shape as `onBeforeCommit`, which is off in `drive` and on in\n * `mountWidget`, and for the same reason.\n *\n * 600ms is a judgement, not a measurement: long enough that a row appearing and\n * then firing reads as two events rather than one flicker, short enough that a\n * five-step run still finishes in about the time a person will sit through.\n */\nexport const WATCHABLE_PACE = 600;\n\n/**\n * The real timer, and the only place in this package that touches one.\n *\n * Injectable for one reason: a suite that actually slept its paces would take\n * seconds to assert something that is pure logic, and a slow suite is a suite\n * that gets run less. The tests hand `drive` a fake clock and count the waits.\n */\nexport const realClock: Clock = {\n set: (fn, ms) => setTimeout(fn, ms),\n clear: (handle) => clearTimeout(handle as ReturnType<typeof setTimeout>),\n now: () => Date.now(),\n};\n\n/** What `paceWait` needs. An object rather than four positional arguments,\n * because three of them are optional and two of those are functions. */\nexport interface PaceWaitOptions {\n /** The pace in milliseconds. A function is re-read on every re-arm, which is\n * what lets a live `controls.pace()` reach a wait already running. */\n ms: number | (() => number);\n clock: Clock;\n signal?: AbortSignal;\n /** Subscribe to \"the pace may have changed\"; returns an unsubscribe. Usually\n * `RunControls.subscribe`. Without it the wait is armed once. */\n watch?: (listener: () => void) => () => void;\n}\n\n/**\n * Wait out the pace, or return at once if the run is aborted — whichever first.\n *\n * A pace of 0 (or a negative, or a NaN from a parsed input) schedules no timer\n * at all rather than a zero-delay one. Not a micro-optimisation: a headless run\n * is the default, and \"pacing off\" should mean the pacing code is not in the\n * path, so that a `drive()` with no human watching cannot be made slower by a\n * bug in here.\n *\n * **The wait is re-armed against the pace rather than fixed at the value it\n * started with.** Cutting 5s to 200ms with 4s still to run is exactly the\n * moment somebody is jabbing at the slider, and a wait that rode out its old\n * value would be the thing they are already annoyed about, happening again. So\n * every wake — the timer firing, or the pace changing — recomputes\n * `pace - elapsed`, and a wait already longer than the new pace ends at once.\n * Lengthening works the same way round. Elapsed is measured from when the wait\n * started, so moving the slider never restarts the wait and cannot be used to\n * hold a run open.\n *\n * The abort path resolves rather than rejects, and is checked on every wake.\n * Every caller in the loop checks `signal.aborted` on the next line anyway, and\n * a rejection would turn an ordinary stop into an exception that the loop's one\n * `try` was not written to catch.\n */\nexport function paceWait({ ms, clock, signal, watch }: PaceWaitOptions): Promise<void> {\n const pace = typeof ms === \"function\" ? ms : () => ms;\n const now = clock.now ? () => clock.now!() : Date.now;\n\n if (!(pace() > 0) || signal?.aborted) return Promise.resolve();\n\n return new Promise<void>((resolve) => {\n const started = now();\n let handle: unknown;\n let settled = false;\n let unwatch: (() => void) | undefined;\n\n const finish = (): void => {\n if (settled) return;\n settled = true;\n if (handle !== undefined) clock.clear(handle);\n unwatch?.();\n signal?.removeEventListener?.(\"abort\", finish);\n resolve();\n };\n\n /** Re-read the pace and schedule what is left of it, or end the wait.\n *\n * Also the timer's own callback: a timer that fires lands here, finds\n * nothing left and finishes, so \"the timer fired\" and \"the pace moved\" are\n * one piece of arithmetic rather than two that can come to disagree. */\n const arm = (): void => {\n if (settled) return;\n if (signal?.aborted) return finish();\n if (handle !== undefined) {\n clock.clear(handle);\n handle = undefined;\n }\n const remaining = pace() - (now() - started);\n // `!(remaining > 0)` rather than `<= 0`, so a NaN that got past the check\n // above ends the wait instead of scheduling a timer for NaN.\n if (!(remaining > 0)) return finish();\n // Assigned after the call, and checked, because a fake clock in a test may\n // fire synchronously — in which case `arm` has already run again and this\n // handle is the stale one.\n const scheduled = clock.set(arm, remaining);\n if (!settled && handle === undefined) handle = scheduled;\n };\n\n unwatch = watch?.(arm);\n signal?.addEventListener?.(\"abort\", finish, { once: true });\n arm();\n });\n}\n\n/**\n * A pace value, or `fallback` if it is not one.\n *\n * Three rules, and the asymmetry between them is the point. A negative becomes\n * 0, because \"less than no wait\" has exactly one sensible reading. Anything\n * non-finite — `NaN` from a parsed input, `Infinity` from a divide, `undefined`\n * from an unset option — is **refused**, keeping what was there before: reading\n * it as 0 would make the agent run faster than the person asked, and reading\n * `Infinity` as a delay would park the run on a timer nobody meant to set.\n * Neither is a thing to guess at, and the current pace is the one value that is\n * certainly not a surprise.\n */\nfunction clean(ms: number | undefined, fallback: number): number {\n if (typeof ms !== \"number\" || !Number.isFinite(ms)) return fallback;\n return ms < 0 ? 0 : ms;\n}\n\n/** Options for `runControls`. */\nexport interface RunControlsOptions {\n /** The pace to start with, in milliseconds. `drive`'s own `pace` option\n * overrides it at the start of a run — the run is the thing being paced —\n * and `pace()` then wins over both. */\n pace?: number;\n /**\n * Start paused, so every call needs its own `step()`. This is \"step mode\",\n * and it is not a second mode: there is no flag for it beyond this, because a\n * `stepMode` that lived alongside `state` would be a second source of truth\n * able to disagree with the first. Step mode IS \"paused, and stepped one call\n * at a time\".\n */\n stepMode?: boolean;\n}\n\n/**\n * Pause, resume and step for a run.\n *\n * ```ts\n * const controls = runControls();\n * drive(driver, { think, task, controls, pace: WATCHABLE_PACE, signal });\n * controls.pause(); // finishes the call in flight, then holds\n * controls.step(); // exactly one more call, then holds again\n * controls.resume(); // carry on\n * ```\n *\n * **Why an object passed in and not a handle returned from `drive`.** `drive`\n * returns a promise that settles when the run is *over*, so anything returned\n * from it is unreachable during the only window in which pausing means\n * anything. The alternatives were to change `drive` to return\n * `{ controls, done }` — which breaks every existing caller and every test that\n * awaits the outcome directly — or to hand the controls out through a callback,\n * which is a handle with extra steps. Passing one in keeps `drive`'s signature,\n * matches `AbortController`/`AbortSignal` (which this sits beside and must not\n * contradict), and lets a caller build the control surface before the run\n * starts and reuse it across runs.\n *\n * It is a plain object with methods: no DOM, no events, no framework. A CLI can\n * call `pause()` from a keypress handler, a test can call it from inside a\n * scripted `think`, and the widget can wire it to buttons without this package\n * knowing a button exists.\n */\nexport function runControls(options: RunControlsOptions = {}): RunControls {\n let state: ControlState = options.stepMode ? \"paused\" : \"running\";\n\n /**\n * Outstanding `step()` permits — in practice 0 or 1.\n *\n * A permit rather than a \"run one more call\" boolean because it has to be\n * spendable: `step()` has to mean exactly one call, and the only way to be\n * sure of that is for the thing granting it to be consumed by the call that\n * uses it.\n */\n let permits = 0;\n\n /** The live pace. Owned here rather than in `drive`, because it has to\n * outlive any single wait and be settable from outside the loop. */\n let paceMs = clean(options.pace, 0);\n\n /** Parked gates, each of which re-checks the state when woken. A Set and not\n * an array that gets emptied: one `step()` wakes everybody and only one of\n * them may consume the permit, so the losers have to stay parked. */\n const waiters = new Set<() => void>();\n const wake = (): void => {\n for (const waiter of [...waiters]) waiter();\n };\n\n /** Subscribers to \"something here changed\". Kept apart from `waiters`: one\n * set is the loop being let through, the other is a UI being told, and\n * conflating them would mean a UI listener could hold up the run. */\n const listeners = new Set<() => void>();\n const notify = (): void => {\n // One broken listener must not stop the others being told, and above all\n // must not stop `drive`'s own re-arm being told, since the live pace rides\n // on it — a panel whose redraw throws would otherwise silently take pacing\n // down with it. So everybody is told first and the failure is raised after.\n let failure: unknown;\n let failed = false;\n for (const listener of [...listeners]) {\n try {\n listener();\n } catch (err) {\n if (!failed) {\n failed = true;\n failure = err;\n }\n }\n }\n // Raised rather than swallowed, and raised synchronously at whoever called\n // `pause`/`step`/`resume`/`pace`: it is their listener and their stack, and\n // a silently eaten exception in a UI callback is a bug that gets found\n // weeks later. The control change itself has already happened and stands —\n // a listener cannot veto it.\n if (failed) throw failure;\n };\n\n return {\n get state() {\n return state;\n },\n get permits() {\n return permits;\n },\n get paceMs() {\n return paceMs;\n },\n\n pause() {\n const was = `${state}:${permits}`;\n state = \"paused\";\n // A pending step is dropped. \"Pause\" from a person who just pressed step\n // means \"no, not even that one\" — honouring the permit would run a call\n // after they asked for the run to hold.\n permits = 0;\n if (was !== `${state}:${permits}`) notify();\n },\n\n resume() {\n const was = `${state}:${permits}`;\n state = \"running\";\n permits = 0;\n wake();\n if (was !== `${state}:${permits}`) notify();\n },\n\n step() {\n // Paused with one permit, whichever state we were in. Stepping from a\n // running run is a legitimate thing to ask for — \"do the next one and\n // then wait\" — and it must not need two calls to express.\n const was = `${state}:${permits}`;\n state = \"paused\";\n permits = 1;\n wake();\n if (was !== `${state}:${permits}`) notify();\n },\n\n pace(ms) {\n const next = clean(ms, paceMs);\n if (next === paceMs) return;\n paceMs = next;\n // Last, so a listener that reads `paceMs` — `drive`'s re-arm included —\n // sees the new value rather than the one it is replacing.\n notify();\n },\n\n subscribe(listener) {\n listeners.add(listener);\n return () => {\n listeners.delete(listener);\n };\n },\n\n gate(what, signal) {\n // Aborted runs are never held. The loop checks `signal.aborted` straight\n // after this returns and will end the run there; parking here would wedge\n // it instead.\n if (signal?.aborted) return Promise.resolve();\n if (state === \"running\") return Promise.resolve();\n\n if (permits > 0) {\n // Only a verb call spends the permit. A model round trip rides along on\n // it unspent, because `step()` promises one more CALL and a call cannot\n // happen without the turn that asks for it — charging the permit to the\n // `think` would make every step need two presses, with the second one\n // doing the thing the first one asked for.\n if (what === \"call\") permits--;\n return Promise.resolve();\n }\n\n return new Promise<void>((resolve) => {\n let settled = false;\n\n const finish = (): void => {\n if (settled) return;\n settled = true;\n waiters.delete(attempt);\n signal?.removeEventListener?.(\"abort\", finish);\n resolve();\n };\n\n const attempt = (): void => {\n if (settled) return;\n if (state === \"running\") return finish();\n if (permits > 0) {\n if (what === \"call\") permits--;\n finish();\n }\n // Still paused with nothing granted: stay parked.\n };\n\n waiters.add(attempt);\n signal?.addEventListener?.(\"abort\", finish, { once: true });\n });\n },\n };\n}\n"]}
@@ -0,0 +1,9 @@
1
+ export { drive, pruneScreens, DECLINED } from "./loop.ts";
2
+ export { paceWait, realClock, runControls, WATCHABLE_PACE } from "./control.ts";
3
+ export type { PaceWaitOptions, RunControlsOptions } from "./control.ts";
4
+ export { READ_SCREEN, argSchema, systemPrompt, toolsFor, verbTool } from "./tools.ts";
5
+ export { SLOW_MS, commas, renderDuration, renderResult, renderSnapshot } from "./render.ts";
6
+ export { backendThink } from "./backend.ts";
7
+ export type { BackendThinkOptions, FetchLike, ResponseLike } from "./backend.ts";
8
+ export type { CallEvent, Clock, CommitDecision, CommitRequest, ControlState, DriveEvents, DriveOptions, DriveOutcome, JsonSchema, RunControls, RunState, StopReason, Think, ThinkInput, ThinkResult, ToolCall, ToolSpec, Turn, } from "./types.ts";
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAChF,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5F,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,YAAY,EAAE,mBAAmB,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjF,YAAY,EACV,SAAS,EAAE,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EACxF,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAC3F,QAAQ,EAAE,QAAQ,EAAE,IAAI,GACzB,MAAM,YAAY,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { drive, pruneScreens, DECLINED } from "./loop.js";
2
+ export { paceWait, realClock, runControls, WATCHABLE_PACE } from "./control.js";
3
+ export { READ_SCREEN, argSchema, systemPrompt, toolsFor, verbTool } from "./tools.js";
4
+ export { SLOW_MS, commas, renderDuration, renderResult, renderSnapshot } from "./render.js";
5
+ export { backendThink } from "./backend.js";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEhF,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5F,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC","sourcesContent":["export { drive, pruneScreens, DECLINED } from \"./loop.ts\";\nexport { paceWait, realClock, runControls, WATCHABLE_PACE } from \"./control.ts\";\nexport type { PaceWaitOptions, RunControlsOptions } from \"./control.ts\";\nexport { READ_SCREEN, argSchema, systemPrompt, toolsFor, verbTool } from \"./tools.ts\";\nexport { SLOW_MS, commas, renderDuration, renderResult, renderSnapshot } from \"./render.ts\";\nexport { backendThink } from \"./backend.ts\";\nexport type { BackendThinkOptions, FetchLike, ResponseLike } from \"./backend.ts\";\nexport type {\n CallEvent, Clock, CommitDecision, CommitRequest, ControlState, DriveEvents, DriveOptions,\n DriveOutcome, JsonSchema, RunControls, RunState, StopReason, Think, ThinkInput, ThinkResult,\n ToolCall, ToolSpec, Turn,\n} from \"./types.ts\";\n"]}
@@ -0,0 +1,136 @@
1
+ /**
2
+ * driverkit/agent — the loop.
3
+ *
4
+ * This is the other case the library is for. The relay and the MCP server
5
+ * carry verbs to an agent in another process; this one has no transport at
6
+ * all, because the page already holds the driver. The person types "find the
7
+ * Acme contacts and accept the top thousand" into a panel in the corner, and
8
+ * `drive` turns that into model turns and `driver.call()`s until the model
9
+ * answers in prose.
10
+ *
11
+ * Which makes this a loop and not a protocol. There are no frames, no ids, no
12
+ * deadline and no `WireResult`: every call lands, every call returns a
13
+ * `Result`, and every `Result` carries a snapshot. What is left to get right
14
+ * is the shape of the conversation, and there are four decisions in it that
15
+ * matter more than the code:
16
+ *
17
+ * **1. The static half is computed once, above the loop.** `system` and
18
+ * `tools` are derived from `driver.manifest()` before the first turn and never
19
+ * touched again, so they are byte-identical on every call to `think` and a
20
+ * caller can have their provider cache them. One per-turn string in there — a
21
+ * clock, a step counter, the current screen — re-prices the entire prefix on
22
+ * every turn, and the prefix is the big half. Making them `const`s outside the
23
+ * loop is the only version of this rule that cannot be broken by accident.
24
+ *
25
+ * **2. The screen goes in the newest message, never in the system prompt.** It
26
+ * is the dynamic half by definition. It enters the conversation exactly twice:
27
+ * on the person's own turn, and riding on each tool result. And it LEAVES
28
+ * again: one copy survives, the newest, and every older turn keeps its words
29
+ * or its outcome and gives up its screen. Each copy is small and ten of them
30
+ * are not, and they land in the half nothing caches — see `pruneScreens`,
31
+ * which is where the rest of that argument is.
32
+ *
33
+ * **3. One round trip per step, not two.** `Result` already carries the
34
+ * snapshot after the call, so the tool result the model reads is the outcome
35
+ * *and* the new screen. The loop never follows a verb with a read. With ten
36
+ * steps that is ten saved model turns, each of which would otherwise have
37
+ * re-read the whole prefix — and the round trips, not the manifest, are what
38
+ * actually cost money.
39
+ *
40
+ * **4. A refusal is information, not a failure.** It is fed back and the model
41
+ * is expected to adapt. The one thing that must not happen is adapting
42
+ * forever: the same verb refused the same way three times is a model that has
43
+ * stopped learning, and continuing costs the person money to watch nothing
44
+ * happen.
45
+ *
46
+ * **5. The run is watchable and interruptible, and that is a property of the
47
+ * loop rather than of a UI.** The agent is moving the screen a person is
48
+ * looking at, so going as fast as the model answers is the wrong speed: what
49
+ * the person needs is to see each step coming and have somewhere to put their
50
+ * hand. Pacing (`pace`) puts a cancellable wait before each call, run controls
51
+ * (`controls`) hold the run between calls, and the events are detailed enough
52
+ * that a step list can show a row before the call it describes has happened.
53
+ * None of it reaches the model — it is runtime state, and decision 1 is still
54
+ * the rule: nothing per-turn goes anywhere near `system` or `tools`.
55
+ */
56
+ import type { Driver } from "../core/index.ts";
57
+ import type { DriveOptions, DriveOutcome, Turn } from "./types.ts";
58
+ /**
59
+ * The refusal slug a vetoed commit comes back as.
60
+ *
61
+ * A new name rather than one of the core's. PROTOCOL.md reserves `stale`,
62
+ * `unknown-verb`, `bad-argument`, `unmounted`, `threw`, `no-such-tab`,
63
+ * `tab-went-away` and `timeout`; this is reserved on the same grounds and for
64
+ * the same reason. A model that cannot tell "the person said no" from "your
65
+ * arguments were wrong" will retry with different arguments, which is the one
66
+ * response that is certainly wrong — the arguments were fine and the answer
67
+ * was no.
68
+ *
69
+ * An app must not name one of its own verb refusals this.
70
+ */
71
+ export declare const DECLINED = "declined-by-user";
72
+ /**
73
+ * Keep exactly one screen in the conversation: the newest one, wherever it is.
74
+ *
75
+ * The rule the core states on `Snapshot` and this function exists to hold:
76
+ *
77
+ * "an agent is never shown more than the person at the keyboard. Same
78
+ * filters, same sort, same page. That is what keeps the cost flat as the
79
+ * data grows — a hundred rows on screen is a hundred rows in the prompt
80
+ * whether the table holds a hundred or a million"
81
+ *
82
+ * Flat as the data grows, and the cost of a step is what the person could see
83
+ * when it ran. A conversation holding one copy of the screen per step honours
84
+ * neither: the person at the keyboard is looking at one screen, and the prompt
85
+ * carried ten. Each copy is small, which is exactly why this went unnoticed for
86
+ * as long as it did — the leak is in the COUNT, not in the size, and it lands
87
+ * in the uncached half where every byte is paid for on every remaining turn.
88
+ *
89
+ * Both kinds of turn carry one. A user turn carries the screen as it was when
90
+ * the person spoke; a tool turn carries the screen the call left behind, which
91
+ * is the authoritative one at the moment it arrives. Each is right at the time
92
+ * and wrong a few turns later, for the same two reasons, and the second is the
93
+ * one that matters: old blocks are bytes in the uncached half paid for forever,
94
+ * and a model that reads a screen from four messages ago as current will act on
95
+ * rows that have moved. The second is a correctness problem wearing a cost
96
+ * problem's clothes — and the cure is written into `DriveOutcome.messages`
97
+ * already: a model is never shown two screens and left to work out which one is
98
+ * now true.
99
+ *
100
+ * **What survives on an older tool turn, and what a model loses.** The outcome
101
+ * line stays: `ok`, the count and its warning, `refused: <slug>` and its hint.
102
+ * That is what an old tool turn is actually consulted for — "what did my third
103
+ * call do" — and it is the half that never goes stale. What is gone is the
104
+ * table as it stood between two of the model's own calls. A model that wants it
105
+ * can call `read_screen`, which costs one round trip against ten turns of
106
+ * carrying it, and the newest screen is always in front of it untouched.
107
+ *
108
+ * **Why the newest and not the newest few.** A window of N would still grow
109
+ * with N, would need a number nobody can justify, and would put two or three
110
+ * screens of the same table in the tail with nothing but position to say which
111
+ * is live — reintroducing the misreading above at a constant factor. Keeping
112
+ * the last screen per `Snapshot.screen` id was the other candidate, and it
113
+ * fails on the same count: an app with six screens keeps six, the total grows
114
+ * with navigation rather than with steps, and `screen` is optional — so the
115
+ * bill would depend on whether an app happens to name its screens.
116
+ */
117
+ export declare function pruneScreens(messages: Turn[]): Turn[];
118
+ /**
119
+ * Run the loop until the model answers, or a bound stops it.
120
+ *
121
+ * ```ts
122
+ * const out = await drive(driver, {
123
+ * // No model client in this package. The browser cannot hold a key, so the
124
+ * // realistic shape is a call to your own backend, which already knows who
125
+ * // the person is.
126
+ * think: backendThink("/api/chat"),
127
+ * task: "find the Acme contacts and accept the top thousand",
128
+ * // Opt-in here; mountWidget turns it on by default. See onBeforeCommit.
129
+ * onBeforeCommit: ({ verb, snapshot }) =>
130
+ * confirm(`${verb.describe}\n\n${snapshot.selected?.length ?? 0} selected. Go ahead?`),
131
+ * });
132
+ * out.stop; // "answered" | "max-steps" | "aborted" | "stuck" | "over-budget" | "silent"
133
+ * ```
134
+ */
135
+ export declare function drive(driver: Driver, options: DriveOptions): Promise<DriveOutcome>;
136
+ //# sourceMappingURL=loop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loop.d.ts","sourceRoot":"","sources":["../../src/agent/loop.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH,OAAO,KAAK,EAAE,MAAM,EAA4B,MAAM,kBAAkB,CAAC;AAIzE,OAAO,KAAK,EAIV,YAAY,EACZ,YAAY,EAIZ,IAAI,EACL,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,QAAQ,qBAAqB,CAAC;AAiF3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,CA0BrD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CA+VxF"}