stitchkit 0.110.2 → 0.110.3
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 +10 -0
- package/dist/agent-runtime/archive-projection.d.ts +10 -0
- package/dist/agent-runtime/archive-projection.d.ts.map +1 -0
- package/dist/agent-runtime/branch-replay.d.ts.map +1 -1
- package/dist/agent-runtime/branch-source.d.ts.map +1 -1
- package/dist/agent-runtime/sqlite-events.d.ts.map +1 -1
- package/dist/agent-runtime/store-archive.d.ts.map +1 -1
- package/dist/agent-runtime/store-branch.d.ts.map +1 -1
- package/dist/agent-runtime/store-events.d.ts +1041 -0
- package/dist/agent-runtime/store-events.d.ts.map +1 -1
- package/dist/agent-runtime/store-replay.d.ts +4 -0
- package/dist/agent-runtime/store-replay.d.ts.map +1 -0
- package/dist/entrypoints/agent-runtime/harness.js +2 -2
- package/dist/entrypoints/agent-runtime/sqlite/bun.js +3 -3
- package/dist/entrypoints/agent-runtime/sqlite/node.js +3 -3
- package/dist/entrypoints/agent-runtime/testing.js +3 -3
- package/dist/entrypoints/agent-runtime.d.ts +1 -1
- package/dist/entrypoints/agent-runtime.d.ts.map +1 -1
- package/dist/entrypoints/agent-runtime.js +6 -4
- package/dist/{index-6qeqdz0z.js → index-4fgg1507.js} +24 -1
- package/dist/{index-79zxnh52.js → index-ddkwkcvn.js} +1 -1
- package/dist/{index-zbssway3.js → index-dgfah0g8.js} +4 -9
- package/dist/{index-s2bgwsyr.js → index-j1cwtyk1.js} +1123 -1134
- package/dist/{index-e9rbhw1s.js → index-w619fqvv.js} +2 -2
- package/llms/agent-runtime.3.txt +1 -0
- package/llms/agent-runtime.txt +17 -2
- package/llms-full.txt +18 -2
- package/llms.txt +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
AgentStoreEventEnvelopeSchema2,
|
|
3
3
|
AgentStoreEventPageSchema2,
|
|
4
4
|
AgentRecoverablePageSchema2
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-4fgg1507.js";
|
|
6
6
|
import {
|
|
7
7
|
AgentRecordIdSchema2,
|
|
8
8
|
AgentMessageSchema2
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
replaceMessage,
|
|
18
18
|
ArchiveSpillSchema,
|
|
19
19
|
createAgentRuntimeStore2
|
|
20
|
-
} from "./index-
|
|
20
|
+
} from "./index-j1cwtyk1.js";
|
|
21
21
|
|
|
22
22
|
// src/agent-runtime/store-memory.ts
|
|
23
23
|
import { z as z2 } from "zod";
|
package/llms/agent-runtime.3.txt
CHANGED
|
@@ -104,6 +104,7 @@ Server-only optional application runtime. See the
|
|
|
104
104
|
| `AgentStoreEventEnvelopeSchema` / `AgentStoreEventEnvelope` / `AgentStoreEventKindSchema` / `AgentStoreEventKind` / `AgentStoreEventPageSchema` / `AgentStoreEventPage` | schema / _type_ | append-only event envelope, closed current vocabulary (including `provider/request` and `provider/response`) and bounded page |
|
|
105
105
|
| `AppendAgentStoreEventSchema` / `AppendAgentStoreEvent` / `ReadAgentStoreEventsSchema` / `ReadAgentStoreEvents` | schema / _type_ | required append and bounded-read store contracts |
|
|
106
106
|
| `AgentStoreTransitionSchema` / `AgentStoreTransition` / `AgentStoreEventDraft` / `AgentStoreEventDecodeAccepted` / `AgentStoreEventDecodeIgnored` / `AgentStoreEventDecodeResult` / `decodeAgentStoreEvent` | schema / _types_ / function | normalized runtime mutations, append drafts and strict current/ignorable future-event decoding outcomes |
|
|
107
|
+
| `AgentStoreTransitionRecordSchema` / `AgentStoreTransitionRecord` | schema / _type_ | persisted journal payloads: full runtime mutations or hash-only streaming checkpoint observations with numeric part/byte counts; inspection does not authorize replay |
|
|
107
108
|
| `defineAgentProjection` / `AgentProjectionDefinition` / `AgentProjectionValue` / `createAgentProjectionRegistry` / `createSqliteAgentProjectionStore` | functions / _type_ | deterministic folds with persisted version and honest `uptoSeq` checkpoints |
|
|
108
109
|
| `agentSummaryProjection` / `agentUsageProjection` / `agentOutlineProjection` | constants | built-in list summary, provenance-carrying usage and request outline projections |
|
|
109
110
|
| `agentConversationCardProjection` / `agentStateSlotsProjection` / `agentScheduleSummaryProjection` | constants | focused card, durable-state and schedule lifecycle projections |
|
package/llms/agent-runtime.txt
CHANGED
|
@@ -617,11 +617,17 @@ removed. State, schedules, children, retries, sandbox, approval rejection and du
|
|
|
617
617
|
retained as inert `runtime/branch-observation` records; they cannot repopulate operational state
|
|
618
618
|
or pending effects. Spills discard source authorization and require the explicit fresh
|
|
619
619
|
`artifactAuthorization`; normal destination read authorization still applies. No cached projection,
|
|
620
|
-
schedule row or child relation is cloned.
|
|
620
|
+
schedule row or child relation is cloned. Ordinary companion projections in the export have
|
|
621
|
+
`{ name, version, uptoSeq, value, updatedAt }` envelopes. Branch validates their envelopes,
|
|
622
|
+
unique names and checkpoints within the supplied journal, then discards their values. They are
|
|
623
|
+
derived application caches, including ones containing source references; their values are never
|
|
624
|
+
replayed as state or copied as authority. Rebuild destination projections with
|
|
625
|
+
`createSqliteAgentProjectionStore().advance(...)` over the destination ledger. An exact earlier
|
|
626
|
+
boundary never inherits a later cache value.
|
|
621
627
|
|
|
622
628
|
The store validates the complete archive before writing: contiguous events, a matching runtime
|
|
623
629
|
snapshot, known typed forms, reference closure, and spill bytes/digests. Unsupported provider
|
|
624
|
-
envelopes, encrypted invocation payloads, unknown event versions,
|
|
630
|
+
envelopes, encrypted invocation payloads, unknown event versions, malformed projection envelopes,
|
|
625
631
|
missing artifacts and undocumented reference fields in opaque JSON refuse atomically. They need
|
|
626
632
|
an owner-defined transfer codec; never recursively rewrite internal JSON in the application.
|
|
627
633
|
Third-party drivers must provide atomic write transactions and archive support for spills;
|
|
@@ -638,6 +644,15 @@ upstream name comes from the model provider's own `resolveResponseProvider` —
|
|
|
638
644
|
supplies it — so the runtime carries the fact without learning any gateway's metadata key. The normalized
|
|
639
645
|
head/run/message tables remain the fast operational projection.
|
|
640
646
|
|
|
647
|
+
For `runtime/transition` payload inspection, use `AgentStoreTransitionRecordSchema` and its
|
|
648
|
+
inferred `AgentStoreTransitionRecord` type. A checkpoint record may hold either the full assistant
|
|
649
|
+
message or `{ id, status: 'streaming', sha256?, sourceSha256?, parts: number, bytes: number }`;
|
|
650
|
+
exactly one digest is present. Numeric `parts` counts parts; it is not an array of message parts.
|
|
651
|
+
`sourceSha256` preserves a branch's historical source digest. These hash-only records are
|
|
652
|
+
observations, not executable checkpoint inputs. `AgentStoreTransitionSchema` describes full
|
|
653
|
+
store mutations. Shape inspection does not replace branch's complete replay/reference validation.
|
|
654
|
+
Schema v4 archives written by 0.109.4 use the same journal representation.
|
|
655
|
+
|
|
641
656
|
Use `defineAgentProjection` with `createSqliteAgentProjectionStore` for a
|
|
642
657
|
deterministic versioned fold. Every value reports `uptoSeq`, so a caller can
|
|
643
658
|
distinguish current data from a projection that still has events to consume.
|
package/llms-full.txt
CHANGED
|
@@ -5815,11 +5815,17 @@ removed. State, schedules, children, retries, sandbox, approval rejection and du
|
|
|
5815
5815
|
retained as inert `runtime/branch-observation` records; they cannot repopulate operational state
|
|
5816
5816
|
or pending effects. Spills discard source authorization and require the explicit fresh
|
|
5817
5817
|
`artifactAuthorization`; normal destination read authorization still applies. No cached projection,
|
|
5818
|
-
schedule row or child relation is cloned.
|
|
5818
|
+
schedule row or child relation is cloned. Ordinary companion projections in the export have
|
|
5819
|
+
`{ name, version, uptoSeq, value, updatedAt }` envelopes. Branch validates their envelopes,
|
|
5820
|
+
unique names and checkpoints within the supplied journal, then discards their values. They are
|
|
5821
|
+
derived application caches, including ones containing source references; their values are never
|
|
5822
|
+
replayed as state or copied as authority. Rebuild destination projections with
|
|
5823
|
+
`createSqliteAgentProjectionStore().advance(...)` over the destination ledger. An exact earlier
|
|
5824
|
+
boundary never inherits a later cache value.
|
|
5819
5825
|
|
|
5820
5826
|
The store validates the complete archive before writing: contiguous events, a matching runtime
|
|
5821
5827
|
snapshot, known typed forms, reference closure, and spill bytes/digests. Unsupported provider
|
|
5822
|
-
envelopes, encrypted invocation payloads, unknown event versions,
|
|
5828
|
+
envelopes, encrypted invocation payloads, unknown event versions, malformed projection envelopes,
|
|
5823
5829
|
missing artifacts and undocumented reference fields in opaque JSON refuse atomically. They need
|
|
5824
5830
|
an owner-defined transfer codec; never recursively rewrite internal JSON in the application.
|
|
5825
5831
|
Third-party drivers must provide atomic write transactions and archive support for spills;
|
|
@@ -5836,6 +5842,15 @@ upstream name comes from the model provider's own `resolveResponseProvider` —
|
|
|
5836
5842
|
supplies it — so the runtime carries the fact without learning any gateway's metadata key. The normalized
|
|
5837
5843
|
head/run/message tables remain the fast operational projection.
|
|
5838
5844
|
|
|
5845
|
+
For `runtime/transition` payload inspection, use `AgentStoreTransitionRecordSchema` and its
|
|
5846
|
+
inferred `AgentStoreTransitionRecord` type. A checkpoint record may hold either the full assistant
|
|
5847
|
+
message or `{ id, status: 'streaming', sha256?, sourceSha256?, parts: number, bytes: number }`;
|
|
5848
|
+
exactly one digest is present. Numeric `parts` counts parts; it is not an array of message parts.
|
|
5849
|
+
`sourceSha256` preserves a branch's historical source digest. These hash-only records are
|
|
5850
|
+
observations, not executable checkpoint inputs. `AgentStoreTransitionSchema` describes full
|
|
5851
|
+
store mutations. Shape inspection does not replace branch's complete replay/reference validation.
|
|
5852
|
+
Schema v4 archives written by 0.109.4 use the same journal representation.
|
|
5853
|
+
|
|
5839
5854
|
Use `defineAgentProjection` with `createSqliteAgentProjectionStore` for a
|
|
5840
5855
|
deterministic versioned fold. Every value reports `uptoSeq`, so a caller can
|
|
5841
5856
|
distinguish current data from a projection that still has events to consume.
|
|
@@ -21835,6 +21850,7 @@ Server-only optional application runtime. See the
|
|
|
21835
21850
|
| `AgentStoreEventEnvelopeSchema` / `AgentStoreEventEnvelope` / `AgentStoreEventKindSchema` / `AgentStoreEventKind` / `AgentStoreEventPageSchema` / `AgentStoreEventPage` | schema / _type_ | append-only event envelope, closed current vocabulary (including `provider/request` and `provider/response`) and bounded page |
|
|
21836
21851
|
| `AppendAgentStoreEventSchema` / `AppendAgentStoreEvent` / `ReadAgentStoreEventsSchema` / `ReadAgentStoreEvents` | schema / _type_ | required append and bounded-read store contracts |
|
|
21837
21852
|
| `AgentStoreTransitionSchema` / `AgentStoreTransition` / `AgentStoreEventDraft` / `AgentStoreEventDecodeAccepted` / `AgentStoreEventDecodeIgnored` / `AgentStoreEventDecodeResult` / `decodeAgentStoreEvent` | schema / _types_ / function | normalized runtime mutations, append drafts and strict current/ignorable future-event decoding outcomes |
|
|
21853
|
+
| `AgentStoreTransitionRecordSchema` / `AgentStoreTransitionRecord` | schema / _type_ | persisted journal payloads: full runtime mutations or hash-only streaming checkpoint observations with numeric part/byte counts; inspection does not authorize replay |
|
|
21838
21854
|
| `defineAgentProjection` / `AgentProjectionDefinition` / `AgentProjectionValue` / `createAgentProjectionRegistry` / `createSqliteAgentProjectionStore` | functions / _type_ | deterministic folds with persisted version and honest `uptoSeq` checkpoints |
|
|
21839
21855
|
| `agentSummaryProjection` / `agentUsageProjection` / `agentOutlineProjection` | constants | built-in list summary, provenance-carrying usage and request outline projections |
|
|
21840
21856
|
| `agentConversationCardProjection` / `agentStateSlotsProjection` / `agentScheduleSummaryProjection` | constants | focused card, durable-state and schedule lifecycle projections |
|
package/llms.txt
CHANGED
|
@@ -25,7 +25,7 @@ Load the slice for each entrypoint your code imports — `import … from 'stitc
|
|
|
25
25
|
- **stitchkit/primitives**: [llms/primitives.txt](llms/primitives.txt) 11.7 KB
|
|
26
26
|
- **stitchkit/server**: [llms/server.txt](llms/server.txt) 45.3 KB → [llms/server.2.txt](llms/server.2.txt) 14.6 KB → [llms/server.3.txt](llms/server.3.txt) 45.6 KB → [llms/server.4.txt](llms/server.4.txt) 38.3 KB → [llms/server.5.txt](llms/server.5.txt) 22.1 KB
|
|
27
27
|
- **stitchkit/observability**: [llms/observability.txt](llms/observability.txt) 45.9 KB
|
|
28
|
-
- **stitchkit/agent-runtime**: [llms/agent-runtime.txt](llms/agent-runtime.txt)
|
|
28
|
+
- **stitchkit/agent-runtime**: [llms/agent-runtime.txt](llms/agent-runtime.txt) 42.2 KB → [llms/agent-runtime.2.txt](llms/agent-runtime.2.txt) 46.7 KB → [llms/agent-runtime.3.txt](llms/agent-runtime.3.txt) 35.6 KB
|
|
29
29
|
- **stitchkit/agent-runtime/testing**: [llms/agent-runtime-testing.txt](llms/agent-runtime-testing.txt) 2.6 KB
|
|
30
30
|
- **stitchkit/agent-runtime/harness**: [llms/agent-runtime-harness.txt](llms/agent-runtime-harness.txt) 11.0 KB
|
|
31
31
|
- **stitchkit/agent-runtime/coding-tools**: [llms/agent-runtime-coding-tools.txt](llms/agent-runtime-coding-tools.txt) 5.0 KB
|
package/package.json
CHANGED