@tinywork/glass 1.1.0 → 1.1.1

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.
Files changed (2) hide show
  1. package/index.d.ts +15 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -122,6 +122,17 @@ declare global {
122
122
  createdAt: number;
123
123
  };
124
124
 
125
+ type SettingFieldSchema = {
126
+ key: string;
127
+ type?: "string" | "number" | "boolean" | "array" | "group";
128
+ props?: Record<string, any>;
129
+ formItemProps?: Record<string, any>;
130
+ name?: string;
131
+ description?: string;
132
+ defaultValue?: any;
133
+ items?: SettingFieldSchema[];
134
+ };
135
+
125
136
  type AgentExtensionRuntimeStatus = "stopped" | "validating" | "starting" | "running" | "reloading" | "stopping" | "error";
126
137
 
127
138
  type AgentExtensionDraft = {
@@ -132,6 +143,7 @@ declare global {
132
143
  required?: string;
133
144
  icon?: string;
134
145
  private?: boolean;
146
+ fields?: SettingFieldSchema[];
135
147
  manifest?: ExtensionManifest;
136
148
  source: string;
137
149
  readme?: string;
@@ -668,6 +680,9 @@ declare global {
668
680
  conversationId: string;
669
681
  },
670
682
  ): IGlassExtensionInvokeResponse<T["data"]>;
683
+ agentConfirm(
684
+ params: AgentExtensionActionParams,
685
+ ): IGlassExtensionInvokeResponse<void>;
671
686
 
672
687
  queryRequests: (params: {
673
688
  apiId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "",
5
5
  "types": "index.d.ts",
6
6
  "files": [