diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx index abd1fbebb61bc86687055a52a07f3e36d3b3ee20..ac42aa3519958a757ac79445d425fb740c6945c6 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx @@ -121,7 +121,7 @@ export default function PromptInput({ } const pasteText = e.clipboardData.getData("text/plain"); - if (pasteText) setPromptInput(pasteText.trim()); + if (pasteText) setPromptInput((prev) => prev + pasteText.trim()); return; }; diff --git a/server/utils/agents/imported-manifest.schema.json b/server/utils/agents/imported-manifest.schema.json index 2563b698be31cbbb34005b22a06198e681632765..de08132e703a5a53d727d0722770def863046d1f 100644 --- a/server/utils/agents/imported-manifest.schema.json +++ b/server/utils/agents/imported-manifest.schema.json @@ -17,9 +17,7 @@ }, "schema": { "type": "string", - "enum": [ - "skill-1.0.0" - ], + "enum": ["skill-1.0.0"], "description": "Must be 'skill-1.0.0'. May be updated on manifest spec changes." }, "version": { @@ -76,9 +74,7 @@ "description": "Hint text for the input." } }, - "required": [ - "type" - ], + "required": ["type"], "additionalProperties": false }, "value": { @@ -86,9 +82,7 @@ "description": "Preset value of the argument." } }, - "required": [ - "type" - ], + "required": ["type"], "additionalProperties": false }, "description": "Setup arguments used to configure the custom agent skill from the UI and make runtime arguments accessible in the handler.js file when the skill is called." @@ -107,10 +101,7 @@ "description": "Expected invocation format matching the input format of the custom agent skill." } }, - "required": [ - "prompt", - "call" - ], + "required": ["prompt", "call"], "additionalProperties": false }, "description": "Array of examples used to pre-inject examples into the custom agent skill." @@ -133,35 +124,23 @@ }, "type": { "type": "string", - "enum": [ - "string", - "number", - "boolean" - ], + "enum": ["string", "number", "boolean"], "description": "Type of the parameter." } }, - "required": [ - "description", - "type" - ], + "required": ["description", "type"], "additionalProperties": false }, "description": "Parameters expected by the custom agent skill." } }, - "required": [ - "file", - "params" - ], + "required": ["file", "params"], "additionalProperties": false, "description": "Defines the entrypoint of the custom agent skill and the expected inputs." }, "imported": { "type": "boolean", - "enum": [ - true - ], + "enum": [true], "description": "Must be set to true." } }, @@ -176,4 +155,4 @@ "imported" ], "additionalProperties": true -} \ No newline at end of file +}