feat(skills): add cleanup-artifacts skill and session hygiene protocol

This commit is contained in:
Ajasra committed 2026-10-31 15:10:49 +08:00
1 parent 418792d1ec
commit 14cc1ab6f0
4 files changed
+59 -3

No files matched your search

+8 -2
View File
@@ -8,11 +8,17 @@ import sys
def lexical(path):
return Path(os.path.abspath(path))
s = str(os.path.abspath(path))
if s.startswith('\\\\?\\'):
s = s[4:]
return Path(s)
def link_target(path):
return lexical(path.parent / os.readlink(path))
target = os.readlink(path)
if os.path.isabs(target):
return lexical(target)
return lexical(path.parent / target)
def inside(path, root):