experimental-a2 0.11.0 → 0.13.0

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 (46) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/{actor-D_54lz_1.d.ts → actor-DJi3RsNu.d.ts} +2 -2
  3. package/dist/{actor-D_54lz_1.d.ts.map → actor-DJi3RsNu.d.ts.map} +1 -1
  4. package/dist/actor-client.d.ts +1 -1
  5. package/dist/actor-react.d.ts +1 -1
  6. package/dist/actor.d.ts +1 -1
  7. package/dist/actor.js +1 -1
  8. package/dist/ai-server.d.ts +12 -4
  9. package/dist/ai-server.d.ts.map +1 -1
  10. package/dist/ai-server.js +477 -143
  11. package/dist/ai-server.js.map +1 -1
  12. package/dist/ai.d.ts +33 -2
  13. package/dist/ai.d.ts.map +1 -1
  14. package/dist/ai.js +39 -7
  15. package/dist/ai.js.map +1 -1
  16. package/dist/scheduler-qstash.d.ts +1 -1
  17. package/dist/scheduler-qstash.js +1 -1
  18. package/dist/scheduler-vercel.d.ts +1 -1
  19. package/dist/scheduler-vercel.js +1 -1
  20. package/dist/{server-Dkz2a84E.js → server-BeNADlCI.js} +8 -5
  21. package/dist/server-BeNADlCI.js.map +1 -0
  22. package/dist/{server-DwPrMqHB.d.ts → server-DjZZa1wr.d.ts} +8 -2
  23. package/dist/{server-DwPrMqHB.d.ts.map → server-DjZZa1wr.d.ts.map} +1 -1
  24. package/dist/server.d.ts +2 -2
  25. package/dist/server.js +2 -2
  26. package/docs/guides/06-ai-agents.mdx +100 -18
  27. package/docs/reference/01-api.mdx +105 -5
  28. package/examples/playground/app/agent/[agentId]/agent-client.tsx +31 -16
  29. package/examples/playground/app/agent/[agentId]/compaction/route.ts +14 -0
  30. package/examples/playground/app/agent/[agentId]/compaction-event.tsx +38 -0
  31. package/examples/playground/app/agent/[agentId]/compaction-panel.tsx +294 -0
  32. package/examples/playground/app/agent/compaction-settings.test.ts +128 -0
  33. package/examples/playground/app/agent/compaction-settings.ts +49 -0
  34. package/examples/playground/app/agent/compaction-timeline.test.ts +337 -0
  35. package/examples/playground/app/agent/compaction-timeline.ts +198 -0
  36. package/examples/playground/app/agent/model.ts +47 -1
  37. package/examples/playground/app/agent/server.ts +3 -2
  38. package/examples/playground/app/globals.css +154 -0
  39. package/examples/playground/package.json +1 -1
  40. package/package.json +1 -1
  41. package/src/ai-model-metadata.ts +108 -0
  42. package/src/ai-sdk-step.ts +5 -1
  43. package/src/ai-server.ts +712 -203
  44. package/src/ai.ts +99 -4
  45. package/src/server.ts +14 -3
  46. package/dist/server-Dkz2a84E.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ba83c14: Resolve compaction options per generation from the existing model/instructions context. Add session-level compaction controls to the agent example, showing resolved model limits, reported and estimated input, configurable thresholds, and persistent inline compaction markers with expandable summaries. Saving a setting records one application event and takes effect on a later model step without starting a new turn.
8
+ - 30128de: Add automatic compaction with a token threshold, the active model, and optional summary instructions. Persist summaries, usage, and exact prompt checkpoints while preserving the complete UI transcript and subsequent tool results. Expose model-ready context to custom generation and compaction callbacks, and render compaction activity in the playground and coding-agent examples.
9
+
10
+ Enable compaction by default for supported Gateway models. Discover limits in a separate handler, cache the catalog, and retain metadata per session/model without delaying the first request. Add an explicit opt-out and threshold override; use provider-reported usage to anchor input estimates.
11
+
12
+ ### Patch Changes
13
+
14
+ - 85b31d4: Preserve lease-abort reasons across AI model, resolver, compaction-policy, and tool calls so unfinished attempts recover without being mistaken for user cancellation. Cancel stalled generation readers on failure, close streaming tool iterators, and keep preliminary tool progress independent across execution attempts.
15
+
16
+ ## 0.12.0
17
+
18
+ ### Minor Changes
19
+
20
+ - 523988e: Add `handler` to `experimental-a2/server` to normalize function and object handler entries into the object shape for composition while preserving event and presence types.
21
+
3
22
  ## 0.11.0
4
23
 
5
24
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  import { h as StandardSchemaV1, i as Contract, s as EventDefs, t as Reducer } from "./reducer-DJKWm3cp.js";
2
2
  import { t as A2Store } from "./store-DtDOWLSn.js";
3
- import { f as ScheduleTiming, m as Session, n as A2Server, t as A2Scheduler } from "./server-DwPrMqHB.js";
3
+ import { f as ScheduleTiming, m as Session, n as A2Server, t as A2Scheduler } from "./server-DjZZa1wr.js";
4
4
  import { i as A2Telemetry } from "./telemetry-CpeclqB2.js";
5
5
  //#region src/actor-shared.d.ts
6
6
  /**
@@ -307,4 +307,4 @@ type ActorDefinition<D extends ActorProtocol> = {
307
307
  declare function actor<D extends ActorProtocol>(options: ActorOptions<D>): ActorDefinition<D>;
308
308
  //#endregion
309
309
  export { ActorProtocol as _, ActorHandle as a, ActorScheduleSend as b, ActorOptions as c, concurrent as d, ActorConcurrentContext as f, ActorPresenceValues as g, ActorPresenceOf as h, ActorFetchOptions as i, ActorSendOptions as l, ActorPresenceMap as m, ActorCallResult as n, ActorHandler as o, ActorContext as p, ActorDefinition as r, ActorOperation as s, ActorCallOptions as t, actor as u, ActorRefusedError as v, ActorSend as x, ActorScheduleOptions as y };
310
- //# sourceMappingURL=actor-D_54lz_1.d.ts.map
310
+ //# sourceMappingURL=actor-DJi3RsNu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"actor-D_54lz_1.d.ts","names":[],"sources":["../src/actor-shared.ts","../src/actor.ts"],"mappings":";;;;;;;;;;;cAgCa,0BAA0B;;WAE5B;;WAEA;EACT,YAAY,eAAe,mBAAmB;;;;;;;;;KAepC;EACV;EACA;;;;;;;EAOA;;;KAIU,gBAAgB,UAAU,iBAAiB;EACrD,gBAAgB;IAEd;;KAIQ,oBAAoB,QAC7B,WAAW,cAAc,EAAE;;;;;;KAQlB,iBAAiB;GAExB,yBAAA,WAAW;IAAgB,OAAO,EAAE;IAAI;IAAc,IAAI;;;;;;;;;;;;KAanD,UAAU,iBACV,WAAW,eAAe,EAAE,MACjC,QAAQ,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O,YAAY,IACnB,UAAU,qBACP,QAAQ,gBAAgB;KAE5B,WACH,UAAU,eACV,gBAAgB,0BACH,YAAY,MAErB,QAAQ,YAAY,IACpB,UAAU,qBACP;EAAU;EAAY;MAEzB,OAAO,YAAY,IACnB,UAAU,qBACP;EAAU;EAAY;;;KAGnB,YAAY,UAAU;WACvB;;;;;;WAMA,kBAAkB,WAAW,cAAc,WAAW,GAAG;;WAEzD,kBAAkB,WAAW,cAAc,WAAW,GAAG;;WAEzD,aAAa,QAAQ,gBAAgB;;;;;;;;;;WAUrC,QACP,SAAS,SACT,UAAU,kBAAkB,OACzB,QAAQ;;WAEJ,SAAS,QAAQ;;KAGhB,gBAAgB,UAAU;WAC3B;;;;;;WAMA,WAAW;;WAEX,UAAU,SAAS;;WAEnB,QAAQ,SAAS;;WAEjB,SAAS,QAAQ,qBAAqB,aAAa;EAC5D,MAAM,aAAa,YAAY;;;;;;;iBAsDjB,MAAM,UAAU,eAC9B,SAAS,aAAa,KACrB,gBAAgB"}
@@ -1,4 +1,4 @@
1
- import { n as ActorCallResult, v as ActorRefusedError } from "./actor-D_54lz_1.js";
1
+ import { n as ActorCallResult, v as ActorRefusedError } from "./actor-DJi3RsNu.js";
2
2
  //#region src/actor-client.d.ts
3
3
  declare class ActorRequestError extends Error {
4
4
  readonly status: number | undefined;
@@ -1,5 +1,5 @@
1
1
  import { a as ContractEvent, s as EventDefs } from "./reducer-DJKWm3cp.js";
2
- import { g as ActorPresenceValues, m as ActorPresenceMap } from "./actor-D_54lz_1.js";
2
+ import { g as ActorPresenceValues, m as ActorPresenceMap } from "./actor-DJi3RsNu.js";
3
3
  import { ActorClientCall, ActorStateOf, AnyActorDefinition } from "./actor-client.js";
4
4
  import { a as Connection } from "./client-P_NNNRM-.js";
5
5
  //#region src/actor-react.d.ts
package/dist/actor.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { _ as ActorProtocol, a as ActorHandle, b as ActorScheduleSend, c as ActorOptions, d as concurrent, f as ActorConcurrentContext, g as ActorPresenceValues, h as ActorPresenceOf, i as ActorFetchOptions, l as ActorSendOptions, m as ActorPresenceMap, n as ActorCallResult, o as ActorHandler, p as ActorContext, r as ActorDefinition, s as ActorOperation, t as ActorCallOptions, u as actor, v as ActorRefusedError, x as ActorSend, y as ActorScheduleOptions } from "./actor-D_54lz_1.js";
1
+ import { _ as ActorProtocol, a as ActorHandle, b as ActorScheduleSend, c as ActorOptions, d as concurrent, f as ActorConcurrentContext, g as ActorPresenceValues, h as ActorPresenceOf, i as ActorFetchOptions, l as ActorSendOptions, m as ActorPresenceMap, n as ActorCallResult, o as ActorHandler, p as ActorContext, r as ActorDefinition, s as ActorOperation, t as ActorCallOptions, u as actor, v as ActorRefusedError, x as ActorSend, y as ActorScheduleOptions } from "./actor-DJi3RsNu.js";
2
2
  export { ActorCallOptions, ActorCallResult, type ActorConcurrentContext, type ActorContext, ActorDefinition, ActorFetchOptions, ActorHandle, ActorHandler, ActorOperation, ActorOptions, type ActorPresenceMap, type ActorPresenceOf, type ActorPresenceValues, type ActorProtocol, ActorRefusedError, type ActorScheduleOptions, type ActorScheduleSend, type ActorSend, ActorSendOptions, actor, concurrent };
package/dist/actor.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as contract } from "./contract-48bUMgcL.js";
2
2
  import { n as NonRetriableError, t as A2Error } from "./errors-DCk6ch5n.js";
3
- import { a as parsePresenceSibling, i as sseResponse, r as setServerFetchHooks, t as createServer } from "./server-Dkz2a84E.js";
3
+ import { a as sseResponse, i as setServerFetchHooks, o as parsePresenceSibling, t as createServer } from "./server-BeNADlCI.js";
4
4
  import { a as actorFailedSchema, c as isJsonTree, i as ActorRefusedError, l as openPresenceDefs, n as ACTOR_LANE, o as actorReducer, r as ACTOR_STATE_EVENT, s as actorStateSchema, t as ACTOR_FAILED_EVENT } from "./actor-shared-DI7J5upy.js";
5
5
  //#region src/actor.ts
6
6
  /**
@@ -1,7 +1,7 @@
1
1
  import { a as ContractEvent, s as EventDefs } from "./reducer-DJKWm3cp.js";
2
- import { n as A2Server, p as ServerOptions } from "./server-DwPrMqHB.js";
2
+ import { n as A2Server, p as ServerOptions } from "./server-DjZZa1wr.js";
3
3
  import { AIEventDefs, AIState, AgentDefinition, AgentToolContext, AgentToolEventDefs } from "./ai.js";
4
- import { Instructions, LanguageModel, TextStreamPart, ToolSet, ToolSet as ToolSet$1, UIMessage, UIMessageChunk, streamText } from "ai";
4
+ import { Instructions, LanguageModel, ModelMessage, TextStreamPart, ToolSet, ToolSet as ToolSet$1, UIMessage, UIMessageChunk, streamText } from "ai";
5
5
  //#region src/ai-sdk-step.d.ts
6
6
  type StreamTextOptions<T extends ToolSet$1> = Parameters<typeof streamText<T>>[0];
7
7
  type ModelStepTimeout<T extends ToolSet$1> = number | Omit<Exclude<StreamTextOptions<T>["timeout"], number | undefined>, "toolMs" | "tools">;
@@ -44,6 +44,7 @@ type AgentGenerateContext<M extends UIMessage, D extends AIEventDefs<M> & EventD
44
44
  generationId: string;
45
45
  responseMessageId: string;
46
46
  messages: M[];
47
+ modelMessages: ModelMessage[];
47
48
  state: AIState<M>;
48
49
  history: ContractEvent<D>[];
49
50
  signal: AbortSignal;
@@ -67,11 +68,18 @@ type Resolvable<T, C> = T | ((context: C) => T | Promise<T>);
67
68
  type CompactionPolicy<M extends UIMessage, D extends AIEventDefs<M> & EventDefs> = {
68
69
  shouldCompact(context: AgentResolverContext<M, D> & {
69
70
  messages: M[];
71
+ modelMessages: ModelMessage[];
70
72
  }): boolean | Promise<boolean>;
71
73
  compact(context: AgentResolverContext<M, D> & {
72
74
  messages: M[];
75
+ modelMessages: ModelMessage[];
73
76
  }): M[] | Promise<M[]>;
74
77
  };
78
+ type AutomaticCompaction = {
79
+ thresholdTokens?: number;
80
+ instructions?: string;
81
+ };
82
+ type CompactionOptions<M extends UIMessage, D extends AIEventDefs<M> & EventDefs> = false | AutomaticCompaction | CompactionPolicy<M, D>;
75
83
  type AgentGenerationSettings<T extends ToolSet> = AISDKStepSettings<T>;
76
84
  type CreateHandlersOptions<M extends UIMessage, D extends AIEventDefs<M> & EventDefs, T extends ToolSet = ToolSet> = {
77
85
  agent: AgentDefinition<M, D>;
@@ -92,7 +100,7 @@ type CreateHandlersOptions<M extends UIMessage, D extends AIEventDefs<M> & Event
92
100
  * The custom stream owns its metadata chunks.
93
101
  */
94
102
  generate?: AgentGenerate<M, D, T>;
95
- compaction?: CompactionPolicy<M, D>;
103
+ compaction?: CompactionOptions<M, D> | ((context: AgentResolverContext<M, D>) => CompactionOptions<M, D>);
96
104
  /** Progress is durably flushed at either limit, whichever is reached first. */
97
105
  progress?: {
98
106
  maxChunks?: number;
@@ -112,5 +120,5 @@ declare function createHandlers<M extends UIMessage, D extends AIEventDefs<M> &
112
120
  /** Assemble an A2 server with the built-in agent handlers and app extensions. */
113
121
  declare function createAgentServer<M extends UIMessage, D extends AIEventDefs<M> & EventDefs, T extends ToolSet = ToolSet>(options: CreateAgentServerOptions<M, D, T>): A2Server<D>;
114
122
  //#endregion
115
- export { AgentGenerate, AgentGenerateContext, AgentGenerationSettings, AgentMessageMetadata, AgentResolverContext, CompactionPolicy, CreateAgentServerOptions, CreateHandlersOptions, type Instructions, type LanguageModel, Resolvable, type ToolSet, createAgentServer, createHandlers, runWithHandlerContext };
123
+ export { AgentGenerate, AgentGenerateContext, AgentGenerationSettings, AgentMessageMetadata, AgentResolverContext, AutomaticCompaction, CompactionOptions, CompactionPolicy, CreateAgentServerOptions, CreateHandlersOptions, type Instructions, type LanguageModel, Resolvable, type ToolSet, createAgentServer, createHandlers, runWithHandlerContext };
116
124
  //# sourceMappingURL=ai-server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ai-server.d.ts","names":[],"sources":["../src/ai-sdk-step.ts","../src/ai-server.ts"],"mappings":";;;;;KAiBK,kBAAkB,UAAU,aAAW,kBAAkB,WAAW;KAKpE,iBAAiB,UAAU,sBAE5B,KACE,QAAQ,kBAAkB;KAI3B;KAmBA;KASA,iBAAiB,UAAU,y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