Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
Merge upstream/main: endpoint auth hardening, pack-name validation, canvas fixes
joshistoastf45b6e5abbae
diff --cc invokeai/app/api/routers/custom_nodes.pyindex 473d4c55f3,35f6107d56..1cb27e6012--- a/invokeai/app/api/routers/custom_nodes.py+++ b/invokeai/app/api/routers/custom_nodes.py@@@ -1,8 -1,9 +1,9 @@@"""FastAPI routes for custom node management."""+import asyncioimport json+ import reimport shutil-import subprocessimport sysimport tracebackfrom importlib.util import module_from_spec, spec_from_file_location@@@ -28,7 -29,7 +29,8 @@@ logger = InvokeAILogger.get_logger(# were imported by that pack. Used on uninstall to delete only pack-imported workflows# — deleting by tag alone is unsafe because users can edit tags on their own workflows.PACK_MANIFEST_FILENAME = ".invokeai_pack_manifest.json"+ PACK_NAME_RE = re.compile(r"^[A-Za-z0-9][A-Za-z0-9._-]*$")+GIT_CLONE_TIMEOUT_SECONDS = 120class NodePackInfo(BaseModel):diff --cc invokeai/frontend/web/openapi.jsonindex 8a6cccbc4d,22c6d43e0e..a63303526d--- a/invokeai/frontend/web/openapi.json+++ b/invokeai/frontend/web/openapi.json@@@ -725,30 -730,14 +730,35 @@@}}}- }+ },+ "security": [+ {+ "HTTPBearer": []+ }+ ]}},+ "/api/v2/models/models_dir": {+ "get": {+ "tags": ["model_manager"],+ "summary": "Get Models Dir",+ "description": "Get the absolute path of the directory managed models are stored in.\n\nModel config `path` values are relative to this directory unless they are\nabsolute (in-place installs from outside it).",+ "operationId": "get_models_dir",+ "responses": {+ "200": {+ "description": "The absolute path of the models directory",+ "content": {+ "application/json": {+ "schema": {+ "type": "string",+ "title": "Response Get Models Dir"+ }+ }+ }+ }+ }+ }+ },"/api/v2/models/get_by_attrs": {"get": {"tags": ["model_manager"],