@opencode-ai/client 0.0.0-next-16088 → 0.0.0-next-16091
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.
|
@@ -1589,18 +1589,9 @@ export declare const make: (options?: {
|
|
|
1589
1589
|
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
1590
1590
|
readonly status: Schema.tag<"running">;
|
|
1591
1591
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1592
|
-
readonly
|
|
1593
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1594
|
-
readonly type: Schema.Literal<"text">;
|
|
1595
|
-
readonly text: Schema.String;
|
|
1596
|
-
}>, Schema.Struct<{
|
|
1597
|
-
readonly type: Schema.Literal<"file">;
|
|
1598
|
-
readonly uri: Schema.String;
|
|
1599
|
-
readonly mime: Schema.String;
|
|
1600
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1601
|
-
}>]>>;
|
|
1592
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1602
1593
|
}, "Type"> | {
|
|
1603
|
-
readonly content: readonly
|
|
1594
|
+
readonly content: readonly [Schema.Struct.ReadonlySide<{
|
|
1604
1595
|
readonly type: Schema.Literal<"text">;
|
|
1605
1596
|
readonly text: Schema.String;
|
|
1606
1597
|
}, "Type"> | {
|
|
@@ -1608,17 +1599,7 @@ export declare const make: (options?: {
|
|
|
1608
1599
|
readonly uri: string;
|
|
1609
1600
|
readonly mime: string;
|
|
1610
1601
|
readonly name?: string | undefined;
|
|
1611
|
-
}
|
|
1612
|
-
readonly status: "completed";
|
|
1613
|
-
readonly input: {
|
|
1614
|
-
readonly [x: string]: unknown;
|
|
1615
|
-
};
|
|
1616
|
-
readonly structured: {
|
|
1617
|
-
readonly [x: string]: unknown;
|
|
1618
|
-
};
|
|
1619
|
-
readonly result?: unknown;
|
|
1620
|
-
} | {
|
|
1621
|
-
readonly content: readonly (Schema.Struct.ReadonlySide<{
|
|
1602
|
+
}, ...(Schema.Struct.ReadonlySide<{
|
|
1622
1603
|
readonly type: Schema.Literal<"text">;
|
|
1623
1604
|
readonly text: Schema.String;
|
|
1624
1605
|
}, "Type"> | {
|
|
@@ -1626,7 +1607,15 @@ export declare const make: (options?: {
|
|
|
1626
1607
|
readonly uri: string;
|
|
1627
1608
|
readonly mime: string;
|
|
1628
1609
|
readonly name?: string | undefined;
|
|
1629
|
-
})[];
|
|
1610
|
+
})[]];
|
|
1611
|
+
readonly status: "completed";
|
|
1612
|
+
readonly input: {
|
|
1613
|
+
readonly [x: string]: unknown;
|
|
1614
|
+
};
|
|
1615
|
+
readonly metadata?: {
|
|
1616
|
+
readonly [x: string]: Schema.Json;
|
|
1617
|
+
} | undefined;
|
|
1618
|
+
} | {
|
|
1630
1619
|
readonly error: Schema.Struct.ReadonlySide<{
|
|
1631
1620
|
readonly type: Schema.String;
|
|
1632
1621
|
readonly message: Schema.String;
|
|
@@ -1635,10 +1624,26 @@ export declare const make: (options?: {
|
|
|
1635
1624
|
readonly input: {
|
|
1636
1625
|
readonly [x: string]: unknown;
|
|
1637
1626
|
};
|
|
1638
|
-
readonly
|
|
1639
|
-
readonly [x: string]:
|
|
1640
|
-
};
|
|
1641
|
-
readonly
|
|
1627
|
+
readonly metadata?: {
|
|
1628
|
+
readonly [x: string]: Schema.Json;
|
|
1629
|
+
} | undefined;
|
|
1630
|
+
readonly content?: readonly [Schema.Struct.ReadonlySide<{
|
|
1631
|
+
readonly type: Schema.Literal<"text">;
|
|
1632
|
+
readonly text: Schema.String;
|
|
1633
|
+
}, "Type"> | {
|
|
1634
|
+
readonly type: "file";
|
|
1635
|
+
readonly uri: string;
|
|
1636
|
+
readonly mime: string;
|
|
1637
|
+
readonly name?: string | undefined;
|
|
1638
|
+
}, ...(Schema.Struct.ReadonlySide<{
|
|
1639
|
+
readonly type: Schema.Literal<"text">;
|
|
1640
|
+
readonly text: Schema.String;
|
|
1641
|
+
}, "Type"> | {
|
|
1642
|
+
readonly type: "file";
|
|
1643
|
+
readonly uri: string;
|
|
1644
|
+
readonly mime: string;
|
|
1645
|
+
readonly name?: string | undefined;
|
|
1646
|
+
})[]] | undefined;
|
|
1642
1647
|
};
|
|
1643
1648
|
readonly executed?: boolean | undefined;
|
|
1644
1649
|
readonly providerState?: {
|
|
@@ -2808,7 +2813,15 @@ export declare const make: (options?: {
|
|
|
2808
2813
|
} | {
|
|
2809
2814
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
2810
2815
|
readonly data: {
|
|
2811
|
-
readonly content: readonly
|
|
2816
|
+
readonly content: readonly [Schema.Struct.ReadonlySide<{
|
|
2817
|
+
readonly type: Schema.Literal<"text">;
|
|
2818
|
+
readonly text: Schema.String;
|
|
2819
|
+
}, "Type"> | {
|
|
2820
|
+
readonly type: "file";
|
|
2821
|
+
readonly uri: string;
|
|
2822
|
+
readonly mime: string;
|
|
2823
|
+
readonly name?: string | undefined;
|
|
2824
|
+
}, ...(Schema.Struct.ReadonlySide<{
|
|
2812
2825
|
readonly type: Schema.Literal<"text">;
|
|
2813
2826
|
readonly text: Schema.String;
|
|
2814
2827
|
}, "Type"> | {
|
|
@@ -2816,15 +2829,14 @@ export declare const make: (options?: {
|
|
|
2816
2829
|
readonly uri: string;
|
|
2817
2830
|
readonly mime: string;
|
|
2818
2831
|
readonly name?: string | undefined;
|
|
2819
|
-
})[];
|
|
2832
|
+
})[]];
|
|
2820
2833
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
2821
2834
|
readonly callID: string;
|
|
2822
|
-
readonly structured: {
|
|
2823
|
-
readonly [x: string]: unknown;
|
|
2824
|
-
};
|
|
2825
2835
|
readonly executed: boolean;
|
|
2826
2836
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2827
|
-
readonly
|
|
2837
|
+
readonly metadata?: {
|
|
2838
|
+
readonly [x: string]: Schema.Json;
|
|
2839
|
+
} | undefined;
|
|
2828
2840
|
readonly resultState?: {
|
|
2829
2841
|
readonly [x: string]: unknown;
|
|
2830
2842
|
} | undefined;
|
|
@@ -2855,7 +2867,7 @@ export declare const make: (options?: {
|
|
|
2855
2867
|
readonly executed: boolean;
|
|
2856
2868
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2857
2869
|
readonly metadata?: {
|
|
2858
|
-
readonly [x: string]:
|
|
2870
|
+
readonly [x: string]: Schema.Json;
|
|
2859
2871
|
} | undefined;
|
|
2860
2872
|
readonly content?: readonly [Schema.Struct.ReadonlySide<{
|
|
2861
2873
|
readonly type: Schema.Literal<"text">;
|
|
@@ -2874,7 +2886,6 @@ export declare const make: (options?: {
|
|
|
2874
2886
|
readonly mime: string;
|
|
2875
2887
|
readonly name?: string | undefined;
|
|
2876
2888
|
})[]] | undefined;
|
|
2877
|
-
readonly result?: unknown;
|
|
2878
2889
|
readonly resultState?: {
|
|
2879
2890
|
readonly [x: string]: unknown;
|
|
2880
2891
|
} | undefined;
|
|
@@ -3256,18 +3267,9 @@ export declare const make: (options?: {
|
|
|
3256
3267
|
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
3257
3268
|
readonly status: Schema.tag<"running">;
|
|
3258
3269
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
3259
|
-
readonly
|
|
3260
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3261
|
-
readonly type: Schema.Literal<"text">;
|
|
3262
|
-
readonly text: Schema.String;
|
|
3263
|
-
}>, Schema.Struct<{
|
|
3264
|
-
readonly type: Schema.Literal<"file">;
|
|
3265
|
-
readonly uri: Schema.String;
|
|
3266
|
-
readonly mime: Schema.String;
|
|
3267
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3268
|
-
}>]>>;
|
|
3270
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3269
3271
|
}, "Type"> | {
|
|
3270
|
-
readonly content: readonly
|
|
3272
|
+
readonly content: readonly [Schema.Struct.ReadonlySide<{
|
|
3271
3273
|
readonly type: Schema.Literal<"text">;
|
|
3272
3274
|
readonly text: Schema.String;
|
|
3273
3275
|
}, "Type"> | {
|
|
@@ -3275,17 +3277,7 @@ export declare const make: (options?: {
|
|
|
3275
3277
|
readonly uri: string;
|
|
3276
3278
|
readonly mime: string;
|
|
3277
3279
|
readonly name?: string | undefined;
|
|
3278
|
-
}
|
|
3279
|
-
readonly status: "completed";
|
|
3280
|
-
readonly input: {
|
|
3281
|
-
readonly [x: string]: unknown;
|
|
3282
|
-
};
|
|
3283
|
-
readonly structured: {
|
|
3284
|
-
readonly [x: string]: unknown;
|
|
3285
|
-
};
|
|
3286
|
-
readonly result?: unknown;
|
|
3287
|
-
} | {
|
|
3288
|
-
readonly content: readonly (Schema.Struct.ReadonlySide<{
|
|
3280
|
+
}, ...(Schema.Struct.ReadonlySide<{
|
|
3289
3281
|
readonly type: Schema.Literal<"text">;
|
|
3290
3282
|
readonly text: Schema.String;
|
|
3291
3283
|
}, "Type"> | {
|
|
@@ -3293,7 +3285,15 @@ export declare const make: (options?: {
|
|
|
3293
3285
|
readonly uri: string;
|
|
3294
3286
|
readonly mime: string;
|
|
3295
3287
|
readonly name?: string | undefined;
|
|
3296
|
-
})[];
|
|
3288
|
+
})[]];
|
|
3289
|
+
readonly status: "completed";
|
|
3290
|
+
readonly input: {
|
|
3291
|
+
readonly [x: string]: unknown;
|
|
3292
|
+
};
|
|
3293
|
+
readonly metadata?: {
|
|
3294
|
+
readonly [x: string]: Schema.Json;
|
|
3295
|
+
} | undefined;
|
|
3296
|
+
} | {
|
|
3297
3297
|
readonly error: Schema.Struct.ReadonlySide<{
|
|
3298
3298
|
readonly type: Schema.String;
|
|
3299
3299
|
readonly message: Schema.String;
|
|
@@ -3302,10 +3302,26 @@ export declare const make: (options?: {
|
|
|
3302
3302
|
readonly input: {
|
|
3303
3303
|
readonly [x: string]: unknown;
|
|
3304
3304
|
};
|
|
3305
|
-
readonly
|
|
3306
|
-
readonly [x: string]:
|
|
3307
|
-
};
|
|
3308
|
-
readonly
|
|
3305
|
+
readonly metadata?: {
|
|
3306
|
+
readonly [x: string]: Schema.Json;
|
|
3307
|
+
} | undefined;
|
|
3308
|
+
readonly content?: readonly [Schema.Struct.ReadonlySide<{
|
|
3309
|
+
readonly type: Schema.Literal<"text">;
|
|
3310
|
+
readonly text: Schema.String;
|
|
3311
|
+
}, "Type"> | {
|
|
3312
|
+
readonly type: "file";
|
|
3313
|
+
readonly uri: string;
|
|
3314
|
+
readonly mime: string;
|
|
3315
|
+
readonly name?: string | undefined;
|
|
3316
|
+
}, ...(Schema.Struct.ReadonlySide<{
|
|
3317
|
+
readonly type: Schema.Literal<"text">;
|
|
3318
|
+
readonly text: Schema.String;
|
|
3319
|
+
}, "Type"> | {
|
|
3320
|
+
readonly type: "file";
|
|
3321
|
+
readonly uri: string;
|
|
3322
|
+
readonly mime: string;
|
|
3323
|
+
readonly name?: string | undefined;
|
|
3324
|
+
})[]] | undefined;
|
|
3309
3325
|
};
|
|
3310
3326
|
readonly executed?: boolean | undefined;
|
|
3311
3327
|
readonly providerState?: {
|
|
@@ -3732,8 +3748,11 @@ export declare const make: (options?: {
|
|
|
3732
3748
|
}>, Schema.Struct<{
|
|
3733
3749
|
readonly status: Schema.tag<"running">;
|
|
3734
3750
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
3735
|
-
readonly
|
|
3736
|
-
|
|
3751
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
3752
|
+
}>, Schema.Struct<{
|
|
3753
|
+
readonly status: Schema.tag<"completed">;
|
|
3754
|
+
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
3755
|
+
readonly content: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
3737
3756
|
readonly type: Schema.Literal<"text">;
|
|
3738
3757
|
readonly text: Schema.String;
|
|
3739
3758
|
}>, Schema.Struct<{
|
|
@@ -3742,10 +3761,15 @@ export declare const make: (options?: {
|
|
|
3742
3761
|
readonly mime: Schema.String;
|
|
3743
3762
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3744
3763
|
}>]>>;
|
|
3764
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
3745
3765
|
}>, Schema.Struct<{
|
|
3746
|
-
readonly status: Schema.tag<"
|
|
3766
|
+
readonly status: Schema.tag<"error">;
|
|
3747
3767
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
3748
|
-
readonly
|
|
3768
|
+
readonly error: Schema.Struct<{
|
|
3769
|
+
readonly type: Schema.String;
|
|
3770
|
+
readonly message: Schema.String;
|
|
3771
|
+
}>;
|
|
3772
|
+
readonly content: Schema.decodeTo<Schema.optional<Schema.toType<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
3749
3773
|
readonly type: Schema.Literal<"text">;
|
|
3750
3774
|
readonly text: Schema.String;
|
|
3751
3775
|
}>, Schema.Struct<{
|
|
@@ -3753,13 +3777,7 @@ export declare const make: (options?: {
|
|
|
3753
3777
|
readonly uri: Schema.String;
|
|
3754
3778
|
readonly mime: Schema.String;
|
|
3755
3779
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3756
|
-
}>]
|
|
3757
|
-
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
3758
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
3759
|
-
}>, Schema.Struct<{
|
|
3760
|
-
readonly status: Schema.tag<"error">;
|
|
3761
|
-
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
3762
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
3780
|
+
}>]>>>>, Schema.optionalKey<Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
3763
3781
|
readonly type: Schema.Literal<"text">;
|
|
3764
3782
|
readonly text: Schema.String;
|
|
3765
3783
|
}>, Schema.Struct<{
|
|
@@ -3767,13 +3785,8 @@ export declare const make: (options?: {
|
|
|
3767
3785
|
readonly uri: Schema.String;
|
|
3768
3786
|
readonly mime: Schema.String;
|
|
3769
3787
|
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3770
|
-
}>]
|
|
3771
|
-
readonly
|
|
3772
|
-
readonly error: Schema.Struct<{
|
|
3773
|
-
readonly type: Schema.String;
|
|
3774
|
-
readonly message: Schema.String;
|
|
3775
|
-
}>;
|
|
3776
|
-
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
3788
|
+
}>]>>>, never, never>;
|
|
3789
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
3777
3790
|
}>]>;
|
|
3778
3791
|
readonly time: Schema.Struct<{
|
|
3779
3792
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
@@ -6517,16 +6530,7 @@ export declare const make: (options?: {
|
|
|
6517
6530
|
} | {
|
|
6518
6531
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
6519
6532
|
readonly data: Schema.Struct.ReadonlySide<{
|
|
6520
|
-
readonly
|
|
6521
|
-
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
6522
|
-
readonly type: Schema.Literal<"text">;
|
|
6523
|
-
readonly text: Schema.String;
|
|
6524
|
-
}>, Schema.Struct<{
|
|
6525
|
-
readonly type: Schema.Literal<"file">;
|
|
6526
|
-
readonly uri: Schema.String;
|
|
6527
|
-
readonly mime: Schema.String;
|
|
6528
|
-
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
6529
|
-
}>]>>;
|
|
6533
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
6530
6534
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
6531
6535
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6532
6536
|
fromEvent: (eventID: import("@opencode-ai/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -6549,7 +6553,15 @@ export declare const make: (options?: {
|
|
|
6549
6553
|
} | {
|
|
6550
6554
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
6551
6555
|
readonly data: {
|
|
6552
|
-
readonly content: readonly
|
|
6556
|
+
readonly content: readonly [Schema.Struct.ReadonlySide<{
|
|
6557
|
+
readonly type: Schema.Literal<"text">;
|
|
6558
|
+
readonly text: Schema.String;
|
|
6559
|
+
}, "Type"> | {
|
|
6560
|
+
readonly type: "file";
|
|
6561
|
+
readonly uri: string;
|
|
6562
|
+
readonly mime: string;
|
|
6563
|
+
readonly name?: string | undefined;
|
|
6564
|
+
}, ...(Schema.Struct.ReadonlySide<{
|
|
6553
6565
|
readonly type: Schema.Literal<"text">;
|
|
6554
6566
|
readonly text: Schema.String;
|
|
6555
6567
|
}, "Type"> | {
|
|
@@ -6557,15 +6569,14 @@ export declare const make: (options?: {
|
|
|
6557
6569
|
readonly uri: string;
|
|
6558
6570
|
readonly mime: string;
|
|
6559
6571
|
readonly name?: string | undefined;
|
|
6560
|
-
})[];
|
|
6572
|
+
})[]];
|
|
6561
6573
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
6562
6574
|
readonly callID: string;
|
|
6563
|
-
readonly structured: {
|
|
6564
|
-
readonly [x: string]: unknown;
|
|
6565
|
-
};
|
|
6566
6575
|
readonly executed: boolean;
|
|
6567
6576
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6568
|
-
readonly
|
|
6577
|
+
readonly metadata?: {
|
|
6578
|
+
readonly [x: string]: Schema.Json;
|
|
6579
|
+
} | undefined;
|
|
6569
6580
|
readonly resultState?: {
|
|
6570
6581
|
readonly [x: string]: unknown;
|
|
6571
6582
|
} | undefined;
|
|
@@ -6596,7 +6607,7 @@ export declare const make: (options?: {
|
|
|
6596
6607
|
readonly executed: boolean;
|
|
6597
6608
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
6598
6609
|
readonly metadata?: {
|
|
6599
|
-
readonly [x: string]:
|
|
6610
|
+
readonly [x: string]: Schema.Json;
|
|
6600
6611
|
} | undefined;
|
|
6601
6612
|
readonly content?: readonly [Schema.Struct.ReadonlySide<{
|
|
6602
6613
|
readonly type: Schema.Literal<"text">;
|
|
@@ -6615,7 +6626,6 @@ export declare const make: (options?: {
|
|
|
6615
6626
|
readonly mime: string;
|
|
6616
6627
|
readonly name?: string | undefined;
|
|
6617
6628
|
})[]] | undefined;
|
|
6618
|
-
readonly result?: unknown;
|
|
6619
6629
|
readonly resultState?: {
|
|
6620
6630
|
readonly [x: string]: unknown;
|
|
6621
6631
|
} | undefined;
|
|
@@ -151,6 +151,15 @@ export type SessionMessageToolStateStreaming = {
|
|
|
151
151
|
status: "streaming";
|
|
152
152
|
input: string;
|
|
153
153
|
};
|
|
154
|
+
export type SessionMessageToolStateRunning = {
|
|
155
|
+
status: "running";
|
|
156
|
+
input: {
|
|
157
|
+
[x: string]: JsonValue;
|
|
158
|
+
};
|
|
159
|
+
metadata: {
|
|
160
|
+
[x: string]: JsonValue;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
154
163
|
export type ToolTextContent = {
|
|
155
164
|
type: "text";
|
|
156
165
|
text: string;
|
|
@@ -1452,6 +1461,23 @@ export type SessionToolInputDelta = {
|
|
|
1452
1461
|
delta: string;
|
|
1453
1462
|
};
|
|
1454
1463
|
};
|
|
1464
|
+
export type SessionToolProgress = {
|
|
1465
|
+
id: string;
|
|
1466
|
+
created: number;
|
|
1467
|
+
metadata?: {
|
|
1468
|
+
[x: string]: any;
|
|
1469
|
+
};
|
|
1470
|
+
type: "session.tool.progress";
|
|
1471
|
+
location?: LocationRef;
|
|
1472
|
+
data: {
|
|
1473
|
+
sessionID: string;
|
|
1474
|
+
assistantMessageID: string;
|
|
1475
|
+
callID: string;
|
|
1476
|
+
metadata: {
|
|
1477
|
+
[x: string]: JsonValue;
|
|
1478
|
+
};
|
|
1479
|
+
};
|
|
1480
|
+
};
|
|
1455
1481
|
export type SessionCompactionDelta = {
|
|
1456
1482
|
id: string;
|
|
1457
1483
|
created: number;
|
|
@@ -2537,38 +2563,26 @@ export type SessionPendingUserData1 = {
|
|
|
2537
2563
|
[x: string]: any;
|
|
2538
2564
|
};
|
|
2539
2565
|
};
|
|
2540
|
-
export type SessionMessageToolStateRunning = {
|
|
2541
|
-
status: "running";
|
|
2542
|
-
input: {
|
|
2543
|
-
[x: string]: JsonValue;
|
|
2544
|
-
};
|
|
2545
|
-
structured: {
|
|
2546
|
-
[x: string]: JsonValue;
|
|
2547
|
-
};
|
|
2548
|
-
content: Array<LLMToolContent>;
|
|
2549
|
-
};
|
|
2550
2566
|
export type SessionMessageToolStateCompleted = {
|
|
2551
2567
|
status: "completed";
|
|
2552
2568
|
input: {
|
|
2553
2569
|
[x: string]: JsonValue;
|
|
2554
2570
|
};
|
|
2555
|
-
content: Array<LLMToolContent
|
|
2556
|
-
|
|
2571
|
+
content: [LLMToolContent, ...Array<LLMToolContent>];
|
|
2572
|
+
metadata?: {
|
|
2557
2573
|
[x: string]: JsonValue;
|
|
2558
2574
|
};
|
|
2559
|
-
result?: JsonValue;
|
|
2560
2575
|
};
|
|
2561
2576
|
export type SessionMessageToolStateError = {
|
|
2562
2577
|
status: "error";
|
|
2563
2578
|
input: {
|
|
2564
2579
|
[x: string]: JsonValue;
|
|
2565
2580
|
};
|
|
2566
|
-
|
|
2567
|
-
|
|
2581
|
+
error: SessionStructuredError;
|
|
2582
|
+
content?: [LLMToolContent, ...Array<LLMToolContent>];
|
|
2583
|
+
metadata?: {
|
|
2568
2584
|
[x: string]: JsonValue;
|
|
2569
2585
|
};
|
|
2570
|
-
error: SessionStructuredError;
|
|
2571
|
-
result?: JsonValue;
|
|
2572
2586
|
};
|
|
2573
2587
|
export type SessionToolSuccess = {
|
|
2574
2588
|
id: string;
|
|
@@ -2580,18 +2594,17 @@ export type SessionToolSuccess = {
|
|
|
2580
2594
|
durable: {
|
|
2581
2595
|
aggregateID: string;
|
|
2582
2596
|
seq: number;
|
|
2583
|
-
version:
|
|
2597
|
+
version: 2;
|
|
2584
2598
|
};
|
|
2585
2599
|
location?: LocationRef;
|
|
2586
2600
|
data: {
|
|
2587
2601
|
sessionID: string;
|
|
2588
2602
|
assistantMessageID: string;
|
|
2589
2603
|
callID: string;
|
|
2590
|
-
|
|
2591
|
-
|
|
2604
|
+
content: [LLMToolContent, ...Array<LLMToolContent>];
|
|
2605
|
+
metadata?: {
|
|
2606
|
+
[x: string]: JsonValue;
|
|
2592
2607
|
};
|
|
2593
|
-
content: Array<LLMToolContent>;
|
|
2594
|
-
result?: any;
|
|
2595
2608
|
executed: boolean;
|
|
2596
2609
|
resultState?: SessionMessageProviderState6;
|
|
2597
2610
|
};
|
|
@@ -2606,7 +2619,7 @@ export type SessionToolFailed = {
|
|
|
2606
2619
|
durable: {
|
|
2607
2620
|
aggregateID: string;
|
|
2608
2621
|
seq: number;
|
|
2609
|
-
version:
|
|
2622
|
+
version: 2;
|
|
2610
2623
|
};
|
|
2611
2624
|
location?: LocationRef;
|
|
2612
2625
|
data: {
|
|
@@ -2616,31 +2629,12 @@ export type SessionToolFailed = {
|
|
|
2616
2629
|
error: SessionStructuredError;
|
|
2617
2630
|
content?: [LLMToolContent, ...Array<LLMToolContent>];
|
|
2618
2631
|
metadata?: {
|
|
2619
|
-
[x: string]:
|
|
2632
|
+
[x: string]: JsonValue;
|
|
2620
2633
|
};
|
|
2621
|
-
result?: any;
|
|
2622
2634
|
executed: boolean;
|
|
2623
2635
|
resultState?: SessionMessageProviderState7;
|
|
2624
2636
|
};
|
|
2625
2637
|
};
|
|
2626
|
-
export type SessionToolProgress = {
|
|
2627
|
-
id: string;
|
|
2628
|
-
created: number;
|
|
2629
|
-
metadata?: {
|
|
2630
|
-
[x: string]: any;
|
|
2631
|
-
};
|
|
2632
|
-
type: "session.tool.progress";
|
|
2633
|
-
location?: LocationRef;
|
|
2634
|
-
data: {
|
|
2635
|
-
sessionID: string;
|
|
2636
|
-
assistantMessageID: string;
|
|
2637
|
-
callID: string;
|
|
2638
|
-
structured: {
|
|
2639
|
-
[x: string]: any;
|
|
2640
|
-
};
|
|
2641
|
-
content: Array<LLMToolContent>;
|
|
2642
|
-
};
|
|
2643
|
-
};
|
|
2644
2638
|
export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
|
|
2645
2639
|
export type ModelInfo = {
|
|
2646
2640
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/client",
|
|
4
|
-
"version": "0.0.0-next-
|
|
4
|
+
"version": "0.0.0-next-16091",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"typecheck": "tsgo --noEmit"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
57
|
-
"@opencode-ai/protocol": "0.0.0-next-
|
|
56
|
+
"@opencode-ai/schema": "0.0.0-next-16091",
|
|
57
|
+
"@opencode-ai/protocol": "0.0.0-next-16091"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"effect": "4.0.0-beta.98"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@effect/platform-node": "4.0.0-beta.98",
|
|
69
|
-
"@opencode-ai/httpapi-codegen": "0.0.0-next-
|
|
69
|
+
"@opencode-ai/httpapi-codegen": "0.0.0-next-16091",
|
|
70
70
|
"@tsconfig/bun": "1.0.9",
|
|
71
71
|
"@types/bun": "1.3.13",
|
|
72
72
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|