feat: intégration TikTak #197-200 + scoped tokens, webhooks filtrés, listes mtime/size ; fix e2e-server BUG-112
CI / lint (push) Successful in 3m17s
CI / security (push) Failing after 1m51s
CI / test (push) Successful in 5m14s
CI / build (push) Successful in 1m50s
CI / e2e (push) Successful in 18m18s

This commit is contained in:
2026-10-14 11:42:53 -04:00
parent 2be0b15bcf
commit f783394f09
59 changed files with 3233 additions and 77 deletions
+11 -4
View File
@@ -123,10 +123,17 @@ def list_vaults(ctx: ToolContext, _params: ListVaultsInput) -> list[dict[str, An
def list_directory(ctx: ToolContext, params: ListDirectoryInput) -> list[dict[str, Any]]:
"""Return the entries of a vault directory (direct children only)."""
data = browse_directory(params.vault, params.path)
return [
{"name": item["name"], "path": item["path"], "type": item["type"]}
for item in data["items"]
]
# #197 : même contrat que la REST — la taille et le mtime permettent la
# réconciliation externe sans relire chaque fichier.
out = []
for item in data["items"]:
entry = {"name": item["name"], "path": item["path"], "type": item["type"]}
if item["type"] == "file":
entry["size"] = item.get("size")
entry["mtime"] = item.get("modified")
entry["mtime_iso"] = item.get("modified_iso")
out.append(entry)
return out
@tool(