@opencode-ai/sdk 0.4.29 → 0.4.35

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.
@@ -812,9 +812,22 @@ export type AgentConfig = {
812
812
  */
813
813
  description?: string;
814
814
  mode?: string;
815
+ permission?: {
816
+ edit?: string;
817
+ bash?: string | {
818
+ [key: string]: string;
819
+ };
820
+ webfetch?: string;
821
+ };
815
822
  [key: string]: unknown | string | number | {
816
823
  [key: string]: boolean;
817
- } | boolean | string | undefined;
824
+ } | boolean | string | {
825
+ edit?: string;
826
+ bash?: string | {
827
+ [key: string]: string;
828
+ };
829
+ webfetch?: string;
830
+ } | undefined;
818
831
  };
819
832
  export type Provider = {
820
833
  api?: string;
@@ -942,6 +955,13 @@ export type Agent = {
942
955
  mode: string;
943
956
  topP?: number;
944
957
  temperature?: number;
958
+ permission: {
959
+ edit: string;
960
+ bash: {
961
+ [key: string]: string;
962
+ };
963
+ webfetch?: string;
964
+ };
945
965
  model?: {
946
966
  modelID: string;
947
967
  providerID: 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/sdk",
4
- "version": "0.4.29",
4
+ "version": "0.4.35",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "typecheck": "tsc --noEmit"