- {showHelp ? (
- <>
-
diff --git a/frontend/tailwindsetup.css b/frontend/tailwindsetup.css
index cf400b209c..7661b3f91a 100644
--- a/frontend/tailwindsetup.css
+++ b/frontend/tailwindsetup.css
@@ -65,6 +65,7 @@
--ansi-brightcyan: #b7b8cb;
--ansi-brightwhite: #f0f0f0;
+ --container-w600: 600px;
--container-w450: 450px;
--container-xs: 300px;
--container-xxs: 200px;
diff --git a/frontend/types/gotypes.d.ts b/frontend/types/gotypes.d.ts
index d00e629b4a..4c30d15bba 100644
--- a/frontend/types/gotypes.d.ts
+++ b/frontend/types/gotypes.d.ts
@@ -29,7 +29,7 @@ declare global {
"ai:apitokensecretname"?: string;
"ai:capabilities"?: string[];
"waveai:cloud"?: boolean;
- "waveai:premium": boolean;
+ "waveai:premium"?: boolean;
};
// wshrpc.ActivityDisplayType
diff --git a/pkg/wconfig/settingsconfig.go b/pkg/wconfig/settingsconfig.go
index c493cf49d5..a034d42140 100644
--- a/pkg/wconfig/settingsconfig.go
+++ b/pkg/wconfig/settingsconfig.go
@@ -810,6 +810,17 @@ type WidgetConfigType struct {
BlockDef waveobj.BlockDef `json:"blockdef"`
}
+type BgPresetsType struct {
+ BgClear bool `json:"bg:*,omitempty"`
+ Bg string `json:"bg,omitempty" jsonschema_description:"CSS background property value"`
+ BgOpacity float64 `json:"bg:opacity,omitempty" jsonschema_description:"Background opacity (0.0-1.0)"`
+ BgBlendMode string `json:"bg:blendmode,omitempty" jsonschema_description:"CSS background-blend-mode property value"`
+ BgBorderColor string `json:"bg:bordercolor,omitempty" jsonschema_description:"Block frame border color"`
+ BgActiveBorderColor string `json:"bg:activebordercolor,omitempty" jsonschema_description:"Block frame focused border color"`
+ DisplayName string `json:"display:name,omitempty" jsonschema_description:"The name shown in the context menu"`
+ DisplayOrder float64 `json:"display:order,omitempty" jsonschema_description:"Determines the order of the background in the context menu"`
+}
+
type MimeTypeConfigType struct {
Icon string `json:"icon"`
Color string `json:"color"`
diff --git a/schema/bgpresets.json b/schema/bgpresets.json
new file mode 100644
index 0000000000..d9c9bf9e5c
--- /dev/null
+++ b/schema/bgpresets.json
@@ -0,0 +1,46 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "$defs": {
+ "BgPresetsType": {
+ "properties": {
+ "bg:*": {
+ "type": "boolean"
+ },
+ "bg": {
+ "type": "string",
+ "description": "CSS background property value"
+ },
+ "bg:opacity": {
+ "type": "number",
+ "description": "Background opacity (0.0-1.0)"
+ },
+ "bg:blendmode": {
+ "type": "string",
+ "description": "CSS background-blend-mode property value"
+ },
+ "bg:bordercolor": {
+ "type": "string",
+ "description": "Block frame border color"
+ },
+ "bg:activebordercolor": {
+ "type": "string",
+ "description": "Block frame focused border color"
+ },
+ "display:name": {
+ "type": "string",
+ "description": "The name shown in the context menu"
+ },
+ "display:order": {
+ "type": "number",
+ "description": "Determines the order of the background in the context menu"
+ }
+ },
+ "additionalProperties": false,
+ "type": "object"
+ }
+ },
+ "additionalProperties": {
+ "$ref": "#/$defs/BgPresetsType"
+ },
+ "type": "object"
+}
diff --git a/schema/waveai.json b/schema/waveai.json
new file mode 100644
index 0000000000..1f598c6a4d
--- /dev/null
+++ b/schema/waveai.json
@@ -0,0 +1,71 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "$defs": {
+ "AIModeConfigType": {
+ "properties": {
+ "display:name": {
+ "type": "string"
+ },
+ "display:order": {
+ "type": "number"
+ },
+ "display:icon": {
+ "type": "string"
+ },
+ "display:shortdesc": {
+ "type": "string"
+ },
+ "display:description": {
+ "type": "string"
+ },
+ "ai:apitype": {
+ "type": "string"
+ },
+ "ai:model": {
+ "type": "string"
+ },
+ "ai:thinkinglevel": {
+ "type": "string"
+ },
+ "ai:baseurl": {
+ "type": "string"
+ },
+ "ai:apiversion": {
+ "type": "string"
+ },
+ "ai:apitoken": {
+ "type": "string"
+ },
+ "ai:apitokensecretname": {
+ "type": "string"
+ },
+ "ai:capabilities": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "waveai:cloud": {
+ "type": "boolean"
+ },
+ "waveai:premium": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "type": "object",
+ "required": [
+ "display:name",
+ "display:icon",
+ "display:description",
+ "ai:apitype",
+ "ai:model",
+ "ai:thinkinglevel"
+ ]
+ }
+ },
+ "additionalProperties": {
+ "$ref": "#/$defs/AIModeConfigType"
+ },
+ "type": "object"
+}
\ No newline at end of file