@adecore/agent-contracts 0.54.16 → 0.55.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.
package/dist/chat.d.ts CHANGED
@@ -248,6 +248,7 @@ export declare const ChatInfoSchema: z.ZodObject<{
248
248
  provider: z.ZodString;
249
249
  account: z.ZodOptional<z.ZodString>;
250
250
  cwd: z.ZodString;
251
+ workdir: z.ZodOptional<z.ZodString>;
251
252
  agentSessionId: z.ZodNullable<z.ZodString>;
252
253
  model: z.ZodNullable<z.ZodString>;
253
254
  selection: z.ZodObject<{
@@ -1928,6 +1929,7 @@ export declare const ChatEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1928
1929
  provider: z.ZodString;
1929
1930
  account: z.ZodOptional<z.ZodString>;
1930
1931
  cwd: z.ZodString;
1932
+ workdir: z.ZodOptional<z.ZodString>;
1931
1933
  agentSessionId: z.ZodNullable<z.ZodString>;
1932
1934
  model: z.ZodNullable<z.ZodString>;
1933
1935
  selection: z.ZodObject<{
@@ -2095,6 +2097,7 @@ export declare const ChatEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2095
2097
  provider: z.ZodString;
2096
2098
  account: z.ZodOptional<z.ZodString>;
2097
2099
  cwd: z.ZodString;
2100
+ workdir: z.ZodOptional<z.ZodString>;
2098
2101
  agentSessionId: z.ZodNullable<z.ZodString>;
2099
2102
  model: z.ZodNullable<z.ZodString>;
2100
2103
  selection: z.ZodObject<{
@@ -3067,6 +3070,7 @@ export declare const ChatEventEnvelopeSchema: z.ZodObject<{
3067
3070
  provider: z.ZodString;
3068
3071
  account: z.ZodOptional<z.ZodString>;
3069
3072
  cwd: z.ZodString;
3073
+ workdir: z.ZodOptional<z.ZodString>;
3070
3074
  agentSessionId: z.ZodNullable<z.ZodString>;
3071
3075
  model: z.ZodNullable<z.ZodString>;
3072
3076
  selection: z.ZodObject<{
@@ -3234,6 +3238,7 @@ export declare const ChatEventEnvelopeSchema: z.ZodObject<{
3234
3238
  provider: z.ZodString;
3235
3239
  account: z.ZodOptional<z.ZodString>;
3236
3240
  cwd: z.ZodString;
3241
+ workdir: z.ZodOptional<z.ZodString>;
3237
3242
  agentSessionId: z.ZodNullable<z.ZodString>;
3238
3243
  model: z.ZodNullable<z.ZodString>;
3239
3244
  selection: z.ZodObject<{
@@ -4699,6 +4704,7 @@ export declare const ChatStatusEventSchema: z.ZodObject<{
4699
4704
  provider: z.ZodString;
4700
4705
  account: z.ZodOptional<z.ZodString>;
4701
4706
  cwd: z.ZodString;
4707
+ workdir: z.ZodOptional<z.ZodString>;
4702
4708
  agentSessionId: z.ZodNullable<z.ZodString>;
4703
4709
  model: z.ZodNullable<z.ZodString>;
4704
4710
  selection: z.ZodObject<{
@@ -4964,6 +4970,7 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
4964
4970
  provider: z.ZodString;
4965
4971
  account: z.ZodOptional<z.ZodString>;
4966
4972
  cwd: z.ZodString;
4973
+ workdir: z.ZodOptional<z.ZodString>;
4967
4974
  agentSessionId: z.ZodNullable<z.ZodString>;
4968
4975
  model: z.ZodNullable<z.ZodString>;
4969
4976
  selection: z.ZodObject<{
@@ -6303,6 +6310,7 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
6303
6310
  provider: z.ZodString;
6304
6311
  account: z.ZodOptional<z.ZodString>;
6305
6312
  cwd: z.ZodString;
6313
+ workdir: z.ZodOptional<z.ZodString>;
6306
6314
  agentSessionId: z.ZodNullable<z.ZodString>;
6307
6315
  model: z.ZodNullable<z.ZodString>;
6308
6316
  selection: z.ZodObject<{
@@ -6470,6 +6478,7 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
6470
6478
  provider: z.ZodString;
6471
6479
  account: z.ZodOptional<z.ZodString>;
6472
6480
  cwd: z.ZodString;
6481
+ workdir: z.ZodOptional<z.ZodString>;
6473
6482
  agentSessionId: z.ZodNullable<z.ZodString>;
6474
6483
  model: z.ZodNullable<z.ZodString>;
6475
6484
  selection: z.ZodObject<{
@@ -7669,6 +7678,7 @@ export declare const ChatForkResultSchema: z.ZodObject<{
7669
7678
  provider: z.ZodString;
7670
7679
  account: z.ZodOptional<z.ZodString>;
7671
7680
  cwd: z.ZodString;
7681
+ workdir: z.ZodOptional<z.ZodString>;
7672
7682
  agentSessionId: z.ZodNullable<z.ZodString>;
7673
7683
  model: z.ZodNullable<z.ZodString>;
7674
7684
  selection: z.ZodObject<{
@@ -7867,6 +7877,7 @@ export declare const ChatContinueOnResultSchema: z.ZodObject<{
7867
7877
  provider: z.ZodString;
7868
7878
  account: z.ZodOptional<z.ZodString>;
7869
7879
  cwd: z.ZodString;
7880
+ workdir: z.ZodOptional<z.ZodString>;
7870
7881
  agentSessionId: z.ZodNullable<z.ZodString>;
7871
7882
  model: z.ZodNullable<z.ZodString>;
7872
7883
  selection: z.ZodObject<{
@@ -8079,6 +8090,7 @@ export declare const ChatListResultSchema: z.ZodObject<{
8079
8090
  provider: z.ZodString;
8080
8091
  account: z.ZodOptional<z.ZodString>;
8081
8092
  cwd: z.ZodString;
8093
+ workdir: z.ZodOptional<z.ZodString>;
8082
8094
  agentSessionId: z.ZodNullable<z.ZodString>;
8083
8095
  model: z.ZodNullable<z.ZodString>;
8084
8096
  selection: z.ZodObject<{
package/dist/chat.js CHANGED
@@ -220,6 +220,8 @@ export const ChatInfoSchema = z.object({
220
220
  // The account of the provider the CLI runs under; absent is the provider's default account.
221
221
  account: ProviderAccountIdSchema.optional(),
222
222
  cwd: z.string(),
223
+ // The folder the CLI works in now, once it moved out of `cwd` (into a worktree of its own); absent while it works in `cwd`.
224
+ workdir: z.string().optional(),
223
225
  // Set once the CLI announced itself; what a terminal node needs for `--resume`.
224
226
  agentSessionId: z.string().nullable(),
225
227
  // The model the CLI reported, which can differ from the selection (aliases, reroutes).
@@ -24,6 +24,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
24
24
  provider: z.ZodString;
25
25
  account: z.ZodOptional<z.ZodString>;
26
26
  cwd: z.ZodString;
27
+ workdir: z.ZodOptional<z.ZodString>;
27
28
  agentSessionId: z.ZodNullable<z.ZodString>;
28
29
  model: z.ZodNullable<z.ZodString>;
29
30
  selection: z.ZodObject<{
@@ -576,6 +577,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
576
577
  provider: z.ZodString;
577
578
  account: z.ZodOptional<z.ZodString>;
578
579
  cwd: z.ZodString;
580
+ workdir: z.ZodOptional<z.ZodString>;
579
581
  agentSessionId: z.ZodNullable<z.ZodString>;
580
582
  model: z.ZodNullable<z.ZodString>;
581
583
  selection: z.ZodObject<{
@@ -1915,6 +1917,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
1915
1917
  provider: z.ZodString;
1916
1918
  account: z.ZodOptional<z.ZodString>;
1917
1919
  cwd: z.ZodString;
1920
+ workdir: z.ZodOptional<z.ZodString>;
1918
1921
  agentSessionId: z.ZodNullable<z.ZodString>;
1919
1922
  model: z.ZodNullable<z.ZodString>;
1920
1923
  selection: z.ZodObject<{
@@ -2082,6 +2085,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
2082
2085
  provider: z.ZodString;
2083
2086
  account: z.ZodOptional<z.ZodString>;
2084
2087
  cwd: z.ZodString;
2088
+ workdir: z.ZodOptional<z.ZodString>;
2085
2089
  agentSessionId: z.ZodNullable<z.ZodString>;
2086
2090
  model: z.ZodNullable<z.ZodString>;
2087
2091
  selection: z.ZodObject<{
@@ -3311,6 +3315,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
3311
3315
  provider: z.ZodString;
3312
3316
  account: z.ZodOptional<z.ZodString>;
3313
3317
  cwd: z.ZodString;
3318
+ workdir: z.ZodOptional<z.ZodString>;
3314
3319
  agentSessionId: z.ZodNullable<z.ZodString>;
3315
3320
  model: z.ZodNullable<z.ZodString>;
3316
3321
  selection: z.ZodObject<{
@@ -3567,6 +3572,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
3567
3572
  provider: z.ZodString;
3568
3573
  account: z.ZodOptional<z.ZodString>;
3569
3574
  cwd: z.ZodString;
3575
+ workdir: z.ZodOptional<z.ZodString>;
3570
3576
  agentSessionId: z.ZodNullable<z.ZodString>;
3571
3577
  model: z.ZodNullable<z.ZodString>;
3572
3578
  selection: z.ZodObject<{
@@ -3765,6 +3771,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
3765
3771
  provider: z.ZodString;
3766
3772
  account: z.ZodOptional<z.ZodString>;
3767
3773
  cwd: z.ZodString;
3774
+ workdir: z.ZodOptional<z.ZodString>;
3768
3775
  agentSessionId: z.ZodNullable<z.ZodString>;
3769
3776
  model: z.ZodNullable<z.ZodString>;
3770
3777
  selection: z.ZodObject<{
@@ -5141,6 +5148,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
5141
5148
  provider: z.ZodString;
5142
5149
  account: z.ZodOptional<z.ZodString>;
5143
5150
  cwd: z.ZodString;
5151
+ workdir: z.ZodOptional<z.ZodString>;
5144
5152
  agentSessionId: z.ZodNullable<z.ZodString>;
5145
5153
  model: z.ZodNullable<z.ZodString>;
5146
5154
  selection: z.ZodObject<{
@@ -5749,6 +5757,7 @@ export declare const AGENT_EVENT_SCHEMAS: {
5749
5757
  provider: z.ZodString;
5750
5758
  account: z.ZodOptional<z.ZodString>;
5751
5759
  cwd: z.ZodString;
5760
+ workdir: z.ZodOptional<z.ZodString>;
5752
5761
  agentSessionId: z.ZodNullable<z.ZodString>;
5753
5762
  model: z.ZodNullable<z.ZodString>;
5754
5763
  selection: z.ZodObject<{
@@ -5916,6 +5925,7 @@ export declare const AGENT_EVENT_SCHEMAS: {
5916
5925
  provider: z.ZodString;
5917
5926
  account: z.ZodOptional<z.ZodString>;
5918
5927
  cwd: z.ZodString;
5928
+ workdir: z.ZodOptional<z.ZodString>;
5919
5929
  agentSessionId: z.ZodNullable<z.ZodString>;
5920
5930
  model: z.ZodNullable<z.ZodString>;
5921
5931
  selection: z.ZodObject<{
@@ -6452,6 +6462,7 @@ export declare const AGENT_EVENT_SCHEMAS: {
6452
6462
  provider: z.ZodString;
6453
6463
  account: z.ZodOptional<z.ZodString>;
6454
6464
  cwd: z.ZodString;
6465
+ workdir: z.ZodOptional<z.ZodString>;
6455
6466
  agentSessionId: z.ZodNullable<z.ZodString>;
6456
6467
  model: z.ZodNullable<z.ZodString>;
6457
6468
  selection: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/agent-contracts",
3
- "version": "0.54.16",
3
+ "version": "0.55.0",
4
4
  "description": "Schemas and port contracts for agent chats, provider accounts, models and usage.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -81,8 +81,8 @@
81
81
  "test": "bun --conditions=source test"
82
82
  },
83
83
  "dependencies": {
84
- "@adecore/intelligent-ui": "0.54.16",
85
- "@adecore/utils": "0.54.16",
84
+ "@adecore/intelligent-ui": "0.55.0",
85
+ "@adecore/utils": "0.55.0",
86
86
  "zod": "^4.6.7"
87
87
  },
88
88
  "devDependencies": {
package/src/chat.ts CHANGED
@@ -268,6 +268,8 @@ export const ChatInfoSchema = z.object({
268
268
  // The account of the provider the CLI runs under; absent is the provider's default account.
269
269
  account: ProviderAccountIdSchema.optional(),
270
270
  cwd: z.string(),
271
+ // The folder the CLI works in now, once it moved out of `cwd` (into a worktree of its own); absent while it works in `cwd`.
272
+ workdir: z.string().optional(),
271
273
  // Set once the CLI announced itself; what a terminal node needs for `--resume`.
272
274
  agentSessionId: z.string().nullable(),
273
275
  // The model the CLI reported, which can differ from the selection (aliases, reroutes).