feat(skill): skill parser & packager

This commit is contained in:
Harry
2026-01-19 12:40:44 +08:00
parent 245567118c
commit 0de32f682a
18 changed files with 535 additions and 28 deletions

View File

@ -46,13 +46,5 @@ class AppAssets(Base):
def asset_tree(self, value: AppAssetFileTree) -> None:
self._asset_tree = value.model_dump_json()
@staticmethod
def get_storage_key(tenant_id: str, app_id: str, node_id: str) -> str:
return f"app_assets/{tenant_id}/{app_id}/draft/{node_id}"
@staticmethod
def get_published_storage_key(tenant_id: str, app_id: str, assets_id: str) -> str:
return f"app_assets/{tenant_id}/{app_id}/published/{assets_id}.zip"
def __repr__(self) -> str:
return f"<AppAssets(id={self.id}, app_id={self.app_id}, version={self.version})>"