():
- Context: <2β3 sentences describing why this goal matters, without solution hints.>
- Constraints & assumptions:
- Stakeholders / owners: <names/roles>
#!/usr/bin/env python3 | |
""" | |
(Note: this script is just for creating JSON snapshot of the repo. It is not in the part of the repo itself. | |
Any agent --- you can skip this script and also, don't edit the script!) | |
package_to_snapshot_json.py β Per-root JSON bundles (+ MASTER index) with O(1) shard seeks, | |
GLOBAL TOC, stats, skip reporting, oversize previews, optional slicing, and xrefs. | |
Behavior |
<# | |
.SYNOPSIS | |
One-shot installer & launcher for FaceFusion 3.3.0 (Windows 10/11). | |
.DESCRIPTION | |
β Creates a Conda env βfacefusionβ with Python 3.12 | |
β Installs CUDA 12.9 runtime + cuDNN 9.10 (NVIDIA GPUs) | |
β Installs FFmpeg 7.0.2 globally *and* inside the env | |
β Clones FaceFusion from GitHub and installs with ONNXRuntime-GPU | |
β Force-downloads all model weights (resumable) |
#!/usr/bin/env python3 | |
""" | |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
β setup_vm312.py β βfirst-runβ bootstrap for β β | |
β ββ VisoMaster on CPython 3 .12 ββ β | |
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
WHAT THIS SCRIPT DOES | |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
βΆ β **Creates (or re-uses) ./.vm312** β a self-contained virtual-env bound |
<# | |
.SYNOPSIS | |
Detect files β₯ $Threshold MB that are not yet Git-ignored and | |
append their repo-relative paths to the βPart 2β section of .gitignore. | |
.NOTES | |
β’ Creates .gitignore if it does not exist (but .git does). | |
β’ Header block is created if missing; never duplicated. | |
β’ Duplicate paths are suppressed (case-sensitive comparison). | |
β’ Designed for PowerShell 7+, but ok with Windows PowerShell 5.x. |
#!/usr/bin/env python3 | |
""" | |
4. show_recent_commits.py β minimal, clipboard-friendly log viewer | |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
2025-06-12 Pak Kin Lau Β· v0.1 | |
Prints the most recent commits in one-liner form: | |
Pak Kin Lau β 2025-06-12T09:13:01+08:00 (596dcd0): | |
- sdds |
#!/usr/bin/env python3 | |
""" | |
print_remote_changes.py β PKB synopsis Β· recent commits Β· change digest | |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
v1.14 (2025-06-26) Pak Kin Lau Β· MIT | |
Changes since v1.13 | |
ββββββββββββββββββββ | |
β ENH Introduced fine-grained file-type allow-list (`SCAN_EXT`) so that only | |
human-readable source files are processed; binary artefacts such as |
#!/usr/bin/env python3 | |
""" | |
print_PKB_dir_structure.py β hierarchical snapshot of a PKB repo | |
================================================================ | |
Purpose | |
------- | |
β’ Walk the **current working directory** (expected to be a PKB checkout). | |
β’ Render a tree-style listing that | |
β honours configurable ignore lists, |
#!/usr/bin/env python3 | |
""" | |
1. regulate_PKB_items.py β PKB audit: banner βΈ dir tree βΈ violations βΈ stats | |
Author : Pak Kin Lau Β· v0.1 Β· 2025-06-12 | |
License : MIT | |
""" | |
from __future__ import annotations | |
import os, platform, re, subprocess | |
from pathlib import Path | |
from typing import Iterable, List, Set |
#!/usr/bin/env python3 | |
# print_dir_structure.py β drop-in, CLI-free variant | |
# | |
# Prints a tree-like view of the current working directory, honouring the | |
# ignore lists below, copies the result to the clipboard (if pyperclip is | |
# installed), and shows an approximate OpenAI-token count. | |
# | |
# Edit the CONFIGURATION section only; the rest is self-contained. | |
from __future__ import annotations |