@adecore/agent-contracts 0.48.1 → 0.48.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/dist/chat.d.ts CHANGED
@@ -1081,6 +1081,7 @@ export declare const ChatNoteItemSchema: z.ZodObject<{
1081
1081
  title: z.ZodString;
1082
1082
  text: z.ZodString;
1083
1083
  }, z.core.$strip>>;
1084
+ said: z.ZodOptional<z.ZodLiteral<true>>;
1084
1085
  }, z.core.$strip>;
1085
1086
  export declare const ChatCompactionItemSchema: z.ZodObject<{
1086
1087
  id: z.ZodString;
@@ -1438,6 +1439,7 @@ export declare const ChatItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1438
1439
  title: z.ZodString;
1439
1440
  text: z.ZodString;
1440
1441
  }, z.core.$strip>>;
1442
+ said: z.ZodOptional<z.ZodLiteral<true>>;
1441
1443
  }, z.core.$strip>, z.ZodObject<{
1442
1444
  id: z.ZodString;
1443
1445
  createdAt: z.ZodNumber;
@@ -1813,6 +1815,7 @@ export declare const ChatEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1813
1815
  title: z.ZodString;
1814
1816
  text: z.ZodString;
1815
1817
  }, z.core.$strip>>;
1818
+ said: z.ZodOptional<z.ZodLiteral<true>>;
1816
1819
  }, z.core.$strip>, z.ZodObject<{
1817
1820
  id: z.ZodString;
1818
1821
  createdAt: z.ZodNumber;
@@ -2570,6 +2573,7 @@ export declare const ChatEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2570
2573
  title: z.ZodString;
2571
2574
  text: z.ZodString;
2572
2575
  }, z.core.$strip>>;
2576
+ said: z.ZodOptional<z.ZodLiteral<true>>;
2573
2577
  }, z.core.$strip>, z.ZodObject<{
2574
2578
  id: z.ZodString;
2575
2579
  createdAt: z.ZodNumber;
@@ -2932,6 +2936,7 @@ export declare const ChatEventEnvelopeSchema: z.ZodObject<{
2932
2936
  title: z.ZodString;
2933
2937
  text: z.ZodString;
2934
2938
  }, z.core.$strip>>;
2939
+ said: z.ZodOptional<z.ZodLiteral<true>>;
2935
2940
  }, z.core.$strip>, z.ZodObject<{
2936
2941
  id: z.ZodString;
2937
2942
  createdAt: z.ZodNumber;
@@ -3689,6 +3694,7 @@ export declare const ChatEventEnvelopeSchema: z.ZodObject<{
3689
3694
  title: z.ZodString;
3690
3695
  text: z.ZodString;
3691
3696
  }, z.core.$strip>>;
3697
+ said: z.ZodOptional<z.ZodLiteral<true>>;
3692
3698
  }, z.core.$strip>, z.ZodObject<{
3693
3699
  id: z.ZodString;
3694
3700
  createdAt: z.ZodNumber;
@@ -4133,6 +4139,7 @@ export declare const ChatHistoryResultSchema: z.ZodObject<{
4133
4139
  title: z.ZodString;
4134
4140
  text: z.ZodString;
4135
4141
  }, z.core.$strip>>;
4142
+ said: z.ZodOptional<z.ZodLiteral<true>>;
4136
4143
  }, z.core.$strip>, z.ZodObject<{
4137
4144
  id: z.ZodString;
4138
4145
  createdAt: z.ZodNumber;
@@ -4538,6 +4545,7 @@ export declare const ChatSubagentResultSchema: z.ZodObject<{
4538
4545
  title: z.ZodString;
4539
4546
  text: z.ZodString;
4540
4547
  }, z.core.$strip>>;
4548
+ said: z.ZodOptional<z.ZodLiteral<true>>;
4541
4549
  }, z.core.$strip>, z.ZodObject<{
4542
4550
  id: z.ZodString;
4543
4551
  createdAt: z.ZodNumber;
@@ -5389,6 +5397,7 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
5389
5397
  title: z.ZodString;
5390
5398
  text: z.ZodString;
5391
5399
  }, z.core.$strip>>;
5400
+ said: z.ZodOptional<z.ZodLiteral<true>>;
5392
5401
  }, z.core.$strip>, z.ZodObject<{
5393
5402
  id: z.ZodString;
5394
5403
  createdAt: z.ZodNumber;
@@ -5749,6 +5758,7 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
5749
5758
  title: z.ZodString;
5750
5759
  text: z.ZodString;
5751
5760
  }, z.core.$strip>>;
5761
+ said: z.ZodOptional<z.ZodLiteral<true>>;
5752
5762
  }, z.core.$strip>, z.ZodObject<{
5753
5763
  id: z.ZodString;
5754
5764
  createdAt: z.ZodNumber;
@@ -6108,6 +6118,7 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
6108
6118
  title: z.ZodString;
6109
6119
  text: z.ZodString;
6110
6120
  }, z.core.$strip>>;
6121
+ said: z.ZodOptional<z.ZodLiteral<true>>;
6111
6122
  }, z.core.$strip>, z.ZodObject<{
6112
6123
  id: z.ZodString;
6113
6124
  createdAt: z.ZodNumber;
@@ -6865,6 +6876,7 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
6865
6876
  title: z.ZodString;
6866
6877
  text: z.ZodString;
6867
6878
  }, z.core.$strip>>;
6879
+ said: z.ZodOptional<z.ZodLiteral<true>>;
6868
6880
  }, z.core.$strip>, z.ZodObject<{
6869
6881
  id: z.ZodString;
6870
6882
  createdAt: z.ZodNumber;
@@ -7343,6 +7355,7 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
7343
7355
  title: z.ZodString;
7344
7356
  text: z.ZodString;
7345
7357
  }, z.core.$strip>>;
7358
+ said: z.ZodOptional<z.ZodLiteral<true>>;
7346
7359
  }, z.core.$strip>, z.ZodObject<{
7347
7360
  id: z.ZodString;
7348
7361
  createdAt: z.ZodNumber;
package/dist/chat.js CHANGED
@@ -601,7 +601,9 @@ export const ChatNoteItemSchema = z.object({
601
601
  // The chat a delivered summary came from, so a client can offer to open it.
602
602
  from: ChatIdSchema.optional(),
603
603
  // A message another node sent, which a client draws as said to this chat; `text` holds it as a line for one that does not know this.
604
- message: ChatNoteMessageSchema.optional()
604
+ message: ChatNoteMessageSchema.optional(),
605
+ // What the host told the agent in front of a prompt, which a client draws as said by the host.
606
+ said: z.literal(true).optional()
605
607
  });
606
608
  export const ChatCompactionItemSchema = z.object({
607
609
  ...base,
@@ -541,6 +541,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
541
541
  title: z.ZodString;
542
542
  text: z.ZodString;
543
543
  }, z.core.$strip>>;
544
+ said: z.ZodOptional<z.ZodLiteral<true>>;
544
545
  }, z.core.$strip>, z.ZodObject<{
545
546
  id: z.ZodString;
546
547
  createdAt: z.ZodNumber;
@@ -1075,6 +1076,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
1075
1076
  title: z.ZodString;
1076
1077
  text: z.ZodString;
1077
1078
  }, z.core.$strip>>;
1079
+ said: z.ZodOptional<z.ZodLiteral<true>>;
1078
1080
  }, z.core.$strip>, z.ZodObject<{
1079
1081
  id: z.ZodString;
1080
1082
  createdAt: z.ZodNumber;
@@ -1435,6 +1437,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
1435
1437
  title: z.ZodString;
1436
1438
  text: z.ZodString;
1437
1439
  }, z.core.$strip>>;
1440
+ said: z.ZodOptional<z.ZodLiteral<true>>;
1438
1441
  }, z.core.$strip>, z.ZodObject<{
1439
1442
  id: z.ZodString;
1440
1443
  createdAt: z.ZodNumber;
@@ -1794,6 +1797,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
1794
1797
  title: z.ZodString;
1795
1798
  text: z.ZodString;
1796
1799
  }, z.core.$strip>>;
1800
+ said: z.ZodOptional<z.ZodLiteral<true>>;
1797
1801
  }, z.core.$strip>, z.ZodObject<{
1798
1802
  id: z.ZodString;
1799
1803
  createdAt: z.ZodNumber;
@@ -2551,6 +2555,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
2551
2555
  title: z.ZodString;
2552
2556
  text: z.ZodString;
2553
2557
  }, z.core.$strip>>;
2558
+ said: z.ZodOptional<z.ZodLiteral<true>>;
2554
2559
  }, z.core.$strip>, z.ZodObject<{
2555
2560
  id: z.ZodString;
2556
2561
  createdAt: z.ZodNumber;
@@ -3029,6 +3034,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
3029
3034
  title: z.ZodString;
3030
3035
  text: z.ZodString;
3031
3036
  }, z.core.$strip>>;
3037
+ said: z.ZodOptional<z.ZodLiteral<true>>;
3032
3038
  }, z.core.$strip>, z.ZodObject<{
3033
3039
  id: z.ZodString;
3034
3040
  createdAt: z.ZodNumber;
@@ -4269,6 +4275,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
4269
4275
  title: z.ZodString;
4270
4276
  text: z.ZodString;
4271
4277
  }, z.core.$strip>>;
4278
+ said: z.ZodOptional<z.ZodLiteral<true>>;
4272
4279
  }, z.core.$strip>, z.ZodObject<{
4273
4280
  id: z.ZodString;
4274
4281
  createdAt: z.ZodNumber;
@@ -5588,6 +5595,7 @@ export declare const AGENT_EVENT_SCHEMAS: {
5588
5595
  title: z.ZodString;
5589
5596
  text: z.ZodString;
5590
5597
  }, z.core.$strip>>;
5598
+ said: z.ZodOptional<z.ZodLiteral<true>>;
5591
5599
  }, z.core.$strip>, z.ZodObject<{
5592
5600
  id: z.ZodString;
5593
5601
  createdAt: z.ZodNumber;
@@ -6345,6 +6353,7 @@ export declare const AGENT_EVENT_SCHEMAS: {
6345
6353
  title: z.ZodString;
6346
6354
  text: z.ZodString;
6347
6355
  }, z.core.$strip>>;
6356
+ said: z.ZodOptional<z.ZodLiteral<true>>;
6348
6357
  }, z.core.$strip>, z.ZodObject<{
6349
6358
  id: z.ZodString;
6350
6359
  createdAt: z.ZodNumber;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/agent-contracts",
3
- "version": "0.48.1",
3
+ "version": "0.48.3",
4
4
  "description": "Schemas and port contracts for agent chats, provider accounts, models and usage.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -86,7 +86,7 @@
86
86
  "test": "bun --conditions=source test"
87
87
  },
88
88
  "dependencies": {
89
- "@adecore/intelligent-ui": "0.48.1",
89
+ "@adecore/intelligent-ui": "0.48.3",
90
90
  "zod": "^4.6.7"
91
91
  },
92
92
  "devDependencies": {
package/src/chat.ts CHANGED
@@ -721,7 +721,9 @@ export const ChatNoteItemSchema = z.object({
721
721
  // The chat a delivered summary came from, so a client can offer to open it.
722
722
  from: ChatIdSchema.optional(),
723
723
  // A message another node sent, which a client draws as said to this chat; `text` holds it as a line for one that does not know this.
724
- message: ChatNoteMessageSchema.optional()
724
+ message: ChatNoteMessageSchema.optional(),
725
+ // What the host told the agent in front of a prompt, which a client draws as said by the host.
726
+ said: z.literal(true).optional()
725
727
  });
726
728
 
727
729
  export const ChatCompactionItemSchema = z.object({