mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-19 12:40:09 +01:00
Dont overwrite content in input on paste
linting
This commit is contained in:
parent
d75fee0c07
commit
48c9c2e212
@ -121,7 +121,7 @@ export default function PromptInput({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const pasteText = e.clipboardData.getData("text/plain");
|
const pasteText = e.clipboardData.getData("text/plain");
|
||||||
if (pasteText) setPromptInput(pasteText.trim());
|
if (pasteText) setPromptInput((prev) => prev + pasteText.trim());
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -17,9 +17,7 @@
|
|||||||
},
|
},
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": ["skill-1.0.0"],
|
||||||
"skill-1.0.0"
|
|
||||||
],
|
|
||||||
"description": "Must be 'skill-1.0.0'. May be updated on manifest spec changes."
|
"description": "Must be 'skill-1.0.0'. May be updated on manifest spec changes."
|
||||||
},
|
},
|
||||||
"version": {
|
"version": {
|
||||||
@ -76,9 +74,7 @@
|
|||||||
"description": "Hint text for the input."
|
"description": "Hint text for the input."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": ["type"],
|
||||||
"type"
|
|
||||||
],
|
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"value": {
|
"value": {
|
||||||
@ -86,9 +82,7 @@
|
|||||||
"description": "Preset value of the argument."
|
"description": "Preset value of the argument."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": ["type"],
|
||||||
"type"
|
|
||||||
],
|
|
||||||
"additionalProperties": false
|
"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."
|
"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."
|
"description": "Expected invocation format matching the input format of the custom agent skill."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": ["prompt", "call"],
|
||||||
"prompt",
|
|
||||||
"call"
|
|
||||||
],
|
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"description": "Array of examples used to pre-inject examples into the custom agent skill."
|
"description": "Array of examples used to pre-inject examples into the custom agent skill."
|
||||||
@ -133,35 +124,23 @@
|
|||||||
},
|
},
|
||||||
"type": {
|
"type": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": ["string", "number", "boolean"],
|
||||||
"string",
|
|
||||||
"number",
|
|
||||||
"boolean"
|
|
||||||
],
|
|
||||||
"description": "Type of the parameter."
|
"description": "Type of the parameter."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": ["description", "type"],
|
||||||
"description",
|
|
||||||
"type"
|
|
||||||
],
|
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"description": "Parameters expected by the custom agent skill."
|
"description": "Parameters expected by the custom agent skill."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": ["file", "params"],
|
||||||
"file",
|
|
||||||
"params"
|
|
||||||
],
|
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"description": "Defines the entrypoint of the custom agent skill and the expected inputs."
|
"description": "Defines the entrypoint of the custom agent skill and the expected inputs."
|
||||||
},
|
},
|
||||||
"imported": {
|
"imported": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"enum": [
|
"enum": [true],
|
||||||
true
|
|
||||||
],
|
|
||||||
"description": "Must be set to true."
|
"description": "Must be set to true."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user