stitchkit 0.68.4 → 0.68.6
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/README.md +4 -1
- package/dist/agent-runtime/coordinator.d.ts +5 -2
- package/dist/agent-runtime/coordinator.d.ts.map +1 -1
- package/dist/agent-runtime/event-schema.d.ts +1349 -0
- package/dist/agent-runtime/event-schema.d.ts.map +1 -0
- package/dist/agent-runtime/events.d.ts +2 -1347
- package/dist/agent-runtime/events.d.ts.map +1 -1
- package/dist/agent-runtime/run-execution.d.ts +2 -0
- package/dist/agent-runtime/run-execution.d.ts.map +1 -1
- package/dist/agent-runtime/runtime.d.ts +2 -0
- package/dist/agent-runtime/runtime.d.ts.map +1 -1
- package/dist/agent-runtime/schemas.d.ts +12 -0
- package/dist/agent-runtime/schemas.d.ts.map +1 -1
- package/dist/agent-runtime/store-driver.d.ts +12 -0
- package/dist/agent-runtime/store-driver.d.ts.map +1 -1
- package/dist/agent-runtime/store.d.ts +37 -6
- package/dist/agent-runtime/store.d.ts.map +1 -1
- package/dist/agent-runtime/terminal-commit.d.ts +2 -0
- package/dist/agent-runtime/terminal-commit.d.ts.map +1 -1
- package/dist/agent-runtime-browser.d.ts +4 -0
- package/dist/agent-runtime-browser.d.ts.map +1 -0
- package/dist/agent-runtime-browser.js +424 -0
- package/dist/agent-runtime.js +169 -93
- package/dist/browser/cancellation.d.ts.map +1 -1
- package/dist/{index-thcy3w8c.js → index-n34x0q5e.js} +6 -6
- package/dist/{index-fhsmrzj7.js → index-ysphyxax.js} +4 -1
- package/dist/index.js +6 -6
- package/dist/remote.js +1 -1
- package/dist/testing/agent-store-conformance.d.ts.map +1 -1
- package/dist/testing.js +117 -6
- package/llms-full.txt +71 -10
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -76,6 +76,7 @@ Browser code imports browser-safe entrypoints:
|
|
|
76
76
|
import { defineContract, createClient, createHttpClient } from 'stitchkit'
|
|
77
77
|
import { createSocketIOClient } from 'stitchkit'
|
|
78
78
|
import { createCursorQuery, createCacheBridge } from 'stitchkit/react'
|
|
79
|
+
import { AgentRunSchema, AgentRuntimeEventSchema } from 'stitchkit/agent-runtime/browser'
|
|
79
80
|
import { parseSSE } from 'stitchkit'
|
|
80
81
|
```
|
|
81
82
|
|
|
@@ -95,7 +96,9 @@ application, AI-SDK-backed agent-runtime and peer-free remote-proxy code live
|
|
|
95
96
|
behind `stitchkit/server`, `stitchkit/tools`, `stitchkit/application`,
|
|
96
97
|
`stitchkit/agent-runtime` and `stitchkit/remote` respectively. Optional provider
|
|
97
98
|
adapters are isolated further; importing `stitchkit/application` never resolves
|
|
98
|
-
grammY or OpenTelemetry.
|
|
99
|
+
grammY or OpenTelemetry. Browser code that shares agent records imports
|
|
100
|
+
`stitchkit/agent-runtime/browser`; it contains the canonical schemas and event
|
|
101
|
+
cursor but no execution, persistence or sink graph.
|
|
99
102
|
|
|
100
103
|
## Managed application kernel
|
|
101
104
|
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* What happens to a run in flight when new input arrives on the same key.
|
|
3
3
|
*
|
|
4
|
-
* `queue` finishes the run first. `interrupt` and `supersede`
|
|
4
|
+
* `queue` finishes the run first. `interrupt`, `interrupt-next` and `supersede`
|
|
5
|
+
* end it. `interrupt-next` is the priority form: it runs before ordinary work
|
|
6
|
+
* already waiting on the lane, while preserving FIFO inside both classes.
|
|
7
|
+
* `interrupt` keeps ordinary FIFO. `interrupt` and `supersede` otherwise
|
|
5
8
|
* differ in one thing only: what becomes of what it produced. An interrupted
|
|
6
9
|
* run's partial answer stays part of the conversation; a superseded run's does
|
|
7
10
|
* not reach the model again.
|
|
@@ -21,7 +24,7 @@
|
|
|
21
24
|
* `inputPolicy` accepting a function of the input: one application can hold
|
|
22
25
|
* both surfaces.
|
|
23
26
|
*/
|
|
24
|
-
export type AgentInputPolicy = 'queue' | 'inject' | 'interrupt' | 'supersede';
|
|
27
|
+
export type AgentInputPolicy = 'queue' | 'inject' | 'interrupt' | 'interrupt-next' | 'supersede';
|
|
25
28
|
export type AgentStopReason = 'user-interrupt' | 'supersede' | 'timeout' | 'shutdown';
|
|
26
29
|
export interface AgentCoordinatedRun<RESULT> {
|
|
27
30
|
runId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/coordinator.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"coordinator.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/coordinator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,MAAM,gBAAgB,GACxB,OAAO,GACP,QAAQ,GACR,WAAW,GACX,gBAAgB,GAChB,WAAW,CAAC;AAChB,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,WAAW,GAAG,SAAS,GAAG,UAAU,CAAC;AAEtF,MAAM,WAAW,mBAAmB,CAAC,MAAM;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc,CAAC,MAAM;IACpC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACxB,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE;QACpB,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,gBAAgB,CAAC;QACzB,MAAM,CACJ,MAAM,EAAE,WAAW,GAClB,mBAAmB,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC;KACvE,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;IAC3B,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC;IACr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