-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinitialize.py
More file actions
22 lines (19 loc) · 769 Bytes
/
Copy pathinitialize.py
File metadata and controls
22 lines (19 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""Minimal plugin initialization for LinkedIn scaffold."""
from pathlib import Path
def initialize(plugin_dir: str | None = None, **_: object) -> dict:
"""Perform lightweight initialization.
TODO: If the final implementation needs dependency installation or migrations,
add them here conservatively.
"""
root = Path(plugin_dir or Path(__file__).resolve().parent)
required = [
root / "plugin.yaml",
root / "default_config.yaml",
]
missing = [str(p) for p in required if not p.exists()]
return {
"ok": not missing,
"plugin": "linkedin",
"missing": missing,
"message": "LinkedIn plugin scaffold initialized" if not missing else "LinkedIn plugin scaffold missing required files",
}