@opencode-ai/client 0.0.0-next-17030 → 0.0.0-next-17041

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.
@@ -211,6 +211,7 @@ export type Endpoint5_12Input = {
211
211
  readonly text: string;
212
212
  readonly files?: ReadonlyArray<PromptInput.FileAttachment> | undefined;
213
213
  readonly agents?: ReadonlyArray<AgentAttachment> | undefined;
214
+ readonly skills?: ReadonlyArray<PromptInput.SkillAttachment> | undefined;
214
215
  readonly metadata?: {
215
216
  readonly [x: string]: unknown;
216
217
  } | undefined;
@@ -228,6 +229,7 @@ export type Endpoint5_13Input = {
228
229
  readonly model?: Model.Ref | undefined;
229
230
  readonly files?: ReadonlyArray<PromptInput.FileAttachment> | undefined;
230
231
  readonly agents?: ReadonlyArray<AgentAttachment> | undefined;
232
+ readonly skills?: ReadonlyArray<PromptInput.SkillAttachment> | undefined;
231
233
  readonly delivery?: "steer" | "queue" | undefined;
232
234
  readonly resume?: boolean | undefined;
233
235
  };
@@ -573,6 +573,16 @@ export declare const make: (options?: {
573
573
  readonly text: string;
574
574
  } | undefined;
575
575
  }[] | undefined;
576
+ readonly skills?: readonly {
577
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
578
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
579
+ readonly text: string;
580
+ readonly mention?: {
581
+ readonly start: number;
582
+ readonly end: number;
583
+ readonly text: string;
584
+ } | undefined;
585
+ }[] | undefined;
576
586
  };
577
587
  readonly delivery: "steer" | "queue";
578
588
  } | {
@@ -66,6 +66,7 @@ const Endpoint5_12 = (raw) => (input) => preserveEffect()(raw["session.prompt"](
66
66
  text: input["text"],
67
67
  files: input["files"],
68
68
  agents: input["agents"],
69
+ skills: input["skills"],
69
70
  metadata: input["metadata"],
70
71
  delivery: input["delivery"],
71
72
  resume: input["resume"],
@@ -81,6 +82,7 @@ const Endpoint5_13 = (raw) => (input) => preserveEffect()(raw["session.command"]
81
82
  model: input["model"],
82
83
  files: input["files"],
83
84
  agents: input["agents"],
85
+ skills: input["skills"],
84
86
  delivery: input["delivery"],
85
87
  resume: input["resume"],
86
88
  },
@@ -297,6 +297,7 @@ export function make(options) {
297
297
  text: input["text"],
298
298
  files: input["files"],
299
299
  agents: input["agents"],
300
+ skills: input["skills"],
300
301
  metadata: input["metadata"],
301
302
  delivery: input["delivery"],
302
303
  resume: input["resume"],
@@ -316,6 +317,7 @@ export function make(options) {
316
317
  model: input["model"],
317
318
  files: input["files"],
318
319
  agents: input["agents"],
320
+ skills: input["skills"],
319
321
  delivery: input["delivery"],
320
322
  resume: input["resume"],
321
323
  },
@@ -1633,6 +1633,12 @@ export type PromptAgentAttachment = {
1633
1633
  name: string;
1634
1634
  mention?: PromptMention;
1635
1635
  };
1636
+ export type PromptSkillAttachment = {
1637
+ id: string;
1638
+ name: string;
1639
+ text: string;
1640
+ mention?: PromptMention;
1641
+ };
1636
1642
  export type SessionMessageAssistantText = {
1637
1643
  type: "text";
1638
1644
  text: string;
@@ -2244,12 +2250,14 @@ export type SessionMessageUser = {
2244
2250
  text: string;
2245
2251
  files?: Array<PromptFileAttachment>;
2246
2252
  agents?: Array<PromptAgentAttachment>;
2253
+ skills?: Array<PromptSkillAttachment>;
2247
2254
  type: "user";
2248
2255
  };
2249
2256
  export type SessionPendingUserData = {
2250
2257
  text: string;
2251
2258
  files?: Array<PromptFileAttachment>;
2252
2259
  agents?: Array<PromptAgentAttachment>;
2260
+ skills?: Array<PromptSkillAttachment>;
2253
2261
  metadata?: {
2254
2262
  [x: string]: JsonValue;
2255
2263
  };
@@ -2258,6 +2266,7 @@ export type SessionPendingUserData1 = {
2258
2266
  text: string;
2259
2267
  files?: Array<PromptFileAttachment>;
2260
2268
  agents?: Array<PromptAgentAttachment>;
2269
+ skills?: Array<PromptSkillAttachment>;
2261
2270
  metadata?: {
2262
2271
  [x: string]: any;
2263
2272
  };
@@ -3374,6 +3383,16 @@ export type SessionImportInput = {
3374
3383
  readonly text: string;
3375
3384
  };
3376
3385
  }>;
3386
+ readonly skills?: ReadonlyArray<{
3387
+ readonly id: string;
3388
+ readonly name: string;
3389
+ readonly text: string;
3390
+ readonly mention?: {
3391
+ readonly start: number;
3392
+ readonly end: number;
3393
+ readonly text: string;
3394
+ };
3395
+ }>;
3377
3396
  readonly type: "user";
3378
3397
  } | {
3379
3398
  readonly id: string;
@@ -3746,6 +3765,16 @@ export type SessionImportInput = {
3746
3765
  readonly text: string;
3747
3766
  };
3748
3767
  }>;
3768
+ readonly skills?: ReadonlyArray<{
3769
+ readonly id: string;
3770
+ readonly name: string;
3771
+ readonly text: string;
3772
+ readonly mention?: {
3773
+ readonly start: number;
3774
+ readonly end: number;
3775
+ readonly text: string;
3776
+ };
3777
+ }>;
3749
3778
  readonly type: "user";
3750
3779
  } | {
3751
3780
  readonly id: string;
@@ -4118,6 +4147,16 @@ export type SessionImportInput = {
4118
4147
  readonly text: string;
4119
4148
  };
4120
4149
  }>;
4150
+ readonly skills?: ReadonlyArray<{
4151
+ readonly id: string;
4152
+ readonly name: string;
4153
+ readonly text: string;
4154
+ readonly mention?: {
4155
+ readonly start: number;
4156
+ readonly end: number;
4157
+ readonly text: string;
4158
+ };
4159
+ }>;
4121
4160
  readonly type: "user";
4122
4161
  } | {
4123
4162
  readonly id: string;
@@ -4492,6 +4531,14 @@ export type SessionPromptInput = {
4492
4531
  readonly text: string;
4493
4532
  };
4494
4533
  }>;
4534
+ readonly skills?: ReadonlyArray<{
4535
+ readonly id: string;
4536
+ readonly mention?: {
4537
+ readonly start: number;
4538
+ readonly end: number;
4539
+ readonly text: string;
4540
+ };
4541
+ }>;
4495
4542
  readonly metadata?: {
4496
4543
  readonly [x: string]: JsonValue;
4497
4544
  };
@@ -4519,6 +4566,14 @@ export type SessionPromptInput = {
4519
4566
  readonly text: string;
4520
4567
  };
4521
4568
  }>;
4569
+ readonly skills?: ReadonlyArray<{
4570
+ readonly id: string;
4571
+ readonly mention?: {
4572
+ readonly start: number;
4573
+ readonly end: number;
4574
+ readonly text: string;
4575
+ };
4576
+ }>;
4522
4577
  readonly metadata?: {
4523
4578
  readonly [x: string]: JsonValue;
4524
4579
  };
@@ -4546,6 +4601,14 @@ export type SessionPromptInput = {
4546
4601
  readonly text: string;
4547
4602
  };
4548
4603
  }>;
4604
+ readonly skills?: ReadonlyArray<{
4605
+ readonly id: string;
4606
+ readonly mention?: {
4607
+ readonly start: number;
4608
+ readonly end: number;
4609
+ readonly text: string;
4610
+ };
4611
+ }>;
4549
4612
  readonly metadata?: {
4550
4613
  readonly [x: string]: JsonValue;
4551
4614
  };
@@ -4573,12 +4636,55 @@ export type SessionPromptInput = {
4573
4636
  readonly text: string;
4574
4637
  };
4575
4638
  }>;
4639
+ readonly skills?: ReadonlyArray<{
4640
+ readonly id: string;
4641
+ readonly mention?: {
4642
+ readonly start: number;
4643
+ readonly end: number;
4644
+ readonly text: string;
4645
+ };
4646
+ }>;
4576
4647
  readonly metadata?: {
4577
4648
  readonly [x: string]: JsonValue;
4578
4649
  };
4579
4650
  readonly delivery?: "steer" | "queue" | null;
4580
4651
  readonly resume?: boolean | null;
4581
4652
  }["agents"];
4653
+ readonly skills?: {
4654
+ readonly id?: string | null;
4655
+ readonly text: string;
4656
+ readonly files?: ReadonlyArray<{
4657
+ readonly uri: string;
4658
+ readonly name?: string;
4659
+ readonly description?: string;
4660
+ readonly mention?: {
4661
+ readonly start: number;
4662
+ readonly end: number;
4663
+ readonly text: string;
4664
+ };
4665
+ }>;
4666
+ readonly agents?: ReadonlyArray<{
4667
+ readonly name: string;
4668
+ readonly mention?: {
4669
+ readonly start: number;
4670
+ readonly end: number;
4671
+ readonly text: string;
4672
+ };
4673
+ }>;
4674
+ readonly skills?: ReadonlyArray<{
4675
+ readonly id: string;
4676
+ readonly mention?: {
4677
+ readonly start: number;
4678
+ readonly end: number;
4679
+ readonly text: string;
4680
+ };
4681
+ }>;
4682
+ readonly metadata?: {
4683
+ readonly [x: string]: JsonValue;
4684
+ };
4685
+ readonly delivery?: "steer" | "queue" | null;
4686
+ readonly resume?: boolean | null;
4687
+ }["skills"];
4582
4688
  readonly metadata?: {
4583
4689
  readonly id?: string | null;
4584
4690
  readonly text: string;
@@ -4600,6 +4706,14 @@ export type SessionPromptInput = {
4600
4706
  readonly text: string;
4601
4707
  };
4602
4708
  }>;
4709
+ readonly skills?: ReadonlyArray<{
4710
+ readonly id: string;
4711
+ readonly mention?: {
4712
+ readonly start: number;
4713
+ readonly end: number;
4714
+ readonly text: string;
4715
+ };
4716
+ }>;
4603
4717
  readonly metadata?: {
4604
4718
  readonly [x: string]: JsonValue;
4605
4719
  };
@@ -4627,6 +4741,14 @@ export type SessionPromptInput = {
4627
4741
  readonly text: string;
4628
4742
  };
4629
4743
  }>;
4744
+ readonly skills?: ReadonlyArray<{
4745
+ readonly id: string;
4746
+ readonly mention?: {
4747
+ readonly start: number;
4748
+ readonly end: number;
4749
+ readonly text: string;
4750
+ };
4751
+ }>;
4630
4752
  readonly metadata?: {
4631
4753
  readonly [x: string]: JsonValue;
4632
4754
  };
@@ -4654,6 +4776,14 @@ export type SessionPromptInput = {
4654
4776
  readonly text: string;
4655
4777
  };
4656
4778
  }>;
4779
+ readonly skills?: ReadonlyArray<{
4780
+ readonly id: string;
4781
+ readonly mention?: {
4782
+ readonly start: number;
4783
+ readonly end: number;
4784
+ readonly text: string;
4785
+ };
4786
+ }>;
4657
4787
  readonly metadata?: {
4658
4788
  readonly [x: string]: JsonValue;
4659
4789
  };
@@ -4696,6 +4826,14 @@ export type SessionCommandInput = {
4696
4826
  readonly text: string;
4697
4827
  };
4698
4828
  }>;
4829
+ readonly skills?: ReadonlyArray<{
4830
+ readonly id: string;
4831
+ readonly mention?: {
4832
+ readonly start: number;
4833
+ readonly end: number;
4834
+ readonly text: string;
4835
+ };
4836
+ }>;
4699
4837
  readonly delivery?: "steer" | "queue" | null;
4700
4838
  readonly resume?: boolean | null;
4701
4839
  }["id"];
@@ -4727,6 +4865,14 @@ export type SessionCommandInput = {
4727
4865
  readonly text: string;
4728
4866
  };
4729
4867
  }>;
4868
+ readonly skills?: ReadonlyArray<{
4869
+ readonly id: string;
4870
+ readonly mention?: {
4871
+ readonly start: number;
4872
+ readonly end: number;
4873
+ readonly text: string;
4874
+ };
4875
+ }>;
4730
4876
  readonly delivery?: "steer" | "queue" | null;
4731
4877
  readonly resume?: boolean | null;
4732
4878
  }["command"];
@@ -4758,6 +4904,14 @@ export type SessionCommandInput = {
4758
4904
  readonly text: string;
4759
4905
  };
4760
4906
  }>;
4907
+ readonly skills?: ReadonlyArray<{
4908
+ readonly id: string;
4909
+ readonly mention?: {
4910
+ readonly start: number;
4911
+ readonly end: number;
4912
+ readonly text: string;
4913
+ };
4914
+ }>;
4761
4915
  readonly delivery?: "steer" | "queue" | null;
4762
4916
  readonly resume?: boolean | null;
4763
4917
  }["arguments"];
@@ -4789,6 +4943,14 @@ export type SessionCommandInput = {
4789
4943
  readonly text: string;
4790
4944
  };
4791
4945
  }>;
4946
+ readonly skills?: ReadonlyArray<{
4947
+ readonly id: string;
4948
+ readonly mention?: {
4949
+ readonly start: number;
4950
+ readonly end: number;
4951
+ readonly text: string;
4952
+ };
4953
+ }>;
4792
4954
  readonly delivery?: "steer" | "queue" | null;
4793
4955
  readonly resume?: boolean | null;
4794
4956
  }["agent"];
@@ -4820,6 +4982,14 @@ export type SessionCommandInput = {
4820
4982
  readonly text: string;
4821
4983
  };
4822
4984
  }>;
4985
+ readonly skills?: ReadonlyArray<{
4986
+ readonly id: string;
4987
+ readonly mention?: {
4988
+ readonly start: number;
4989
+ readonly end: number;
4990
+ readonly text: string;
4991
+ };
4992
+ }>;
4823
4993
  readonly delivery?: "steer" | "queue" | null;
4824
4994
  readonly resume?: boolean | null;
4825
4995
  }["model"];
@@ -4851,6 +5021,14 @@ export type SessionCommandInput = {
4851
5021
  readonly text: string;
4852
5022
  };
4853
5023
  }>;
5024
+ readonly skills?: ReadonlyArray<{
5025
+ readonly id: string;
5026
+ readonly mention?: {
5027
+ readonly start: number;
5028
+ readonly end: number;
5029
+ readonly text: string;
5030
+ };
5031
+ }>;
4854
5032
  readonly delivery?: "steer" | "queue" | null;
4855
5033
  readonly resume?: boolean | null;
4856
5034
  }["files"];
@@ -4882,9 +5060,56 @@ export type SessionCommandInput = {
4882
5060
  readonly text: string;
4883
5061
  };
4884
5062
  }>;
5063
+ readonly skills?: ReadonlyArray<{
5064
+ readonly id: string;
5065
+ readonly mention?: {
5066
+ readonly start: number;
5067
+ readonly end: number;
5068
+ readonly text: string;
5069
+ };
5070
+ }>;
4885
5071
  readonly delivery?: "steer" | "queue" | null;
4886
5072
  readonly resume?: boolean | null;
4887
5073
  }["agents"];
5074
+ readonly skills?: {
5075
+ readonly id?: string | null;
5076
+ readonly command: string;
5077
+ readonly arguments?: string | null;
5078
+ readonly agent?: string | null;
5079
+ readonly model?: {
5080
+ readonly id: string;
5081
+ readonly providerID: string;
5082
+ readonly variant?: string;
5083
+ } | null;
5084
+ readonly files?: ReadonlyArray<{
5085
+ readonly uri: string;
5086
+ readonly name?: string;
5087
+ readonly description?: string;
5088
+ readonly mention?: {
5089
+ readonly start: number;
5090
+ readonly end: number;
5091
+ readonly text: string;
5092
+ };
5093
+ }>;
5094
+ readonly agents?: ReadonlyArray<{
5095
+ readonly name: string;
5096
+ readonly mention?: {
5097
+ readonly start: number;
5098
+ readonly end: number;
5099
+ readonly text: string;
5100
+ };
5101
+ }>;
5102
+ readonly skills?: ReadonlyArray<{
5103
+ readonly id: string;
5104
+ readonly mention?: {
5105
+ readonly start: number;
5106
+ readonly end: number;
5107
+ readonly text: string;
5108
+ };
5109
+ }>;
5110
+ readonly delivery?: "steer" | "queue" | null;
5111
+ readonly resume?: boolean | null;
5112
+ }["skills"];
4888
5113
  readonly delivery?: {
4889
5114
  readonly id?: string | null;
4890
5115
  readonly command: string;
@@ -4913,6 +5138,14 @@ export type SessionCommandInput = {
4913
5138
  readonly text: string;
4914
5139
  };
4915
5140
  }>;
5141
+ readonly skills?: ReadonlyArray<{
5142
+ readonly id: string;
5143
+ readonly mention?: {
5144
+ readonly start: number;
5145
+ readonly end: number;
5146
+ readonly text: string;
5147
+ };
5148
+ }>;
4916
5149
  readonly delivery?: "steer" | "queue" | null;
4917
5150
  readonly resume?: boolean | null;
4918
5151
  }["delivery"];
@@ -4944,6 +5177,14 @@ export type SessionCommandInput = {
4944
5177
  readonly text: string;
4945
5178
  };
4946
5179
  }>;
5180
+ readonly skills?: ReadonlyArray<{
5181
+ readonly id: string;
5182
+ readonly mention?: {
5183
+ readonly start: number;
5184
+ readonly end: number;
5185
+ readonly text: string;
5186
+ };
5187
+ }>;
4947
5188
  readonly delivery?: "steer" | "queue" | null;
4948
5189
  readonly resume?: boolean | null;
4949
5190
  }["resume"];
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-17030",
4
+ "version": "0.0.0-next-17041",
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-17030",
57
- "@opencode-ai/protocol": "0.0.0-next-17030"
56
+ "@opencode-ai/schema": "0.0.0-next-17041",
57
+ "@opencode-ai/protocol": "0.0.0-next-17041"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "effect": "4.0.0-beta.101"
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "devDependencies": {
68
68
  "@effect/platform-node": "4.0.0-beta.101",
69
- "@opencode-ai/httpapi-codegen": "0.0.0-next-17030",
69
+ "@opencode-ai/httpapi-codegen": "0.0.0-next-17041",
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",