943acbc573
Durcit la convention de nommage des projets (dérive constatée : 'Sliding Automation', 'code_versioning'... au lieu des formes canoniques). - trilium_api.py : projets_canoniques() lit le référentiel = valeurs du label projet sur les notes de type=projet (source unique, pas de constante en dur). Note-projet CodeVersioning créée (manquait). - mcp_server.py : _valider_projet() branché dans les 6 tools de création (add_decision/history/backlog, new_conversation, create_entite, add_skill). Refuse un projet non canonique (suggestion si faute) ou inconnu (renvoi au processus de création de projet). Ne verrouille pas si référentiel illisible. - lint_audit.py : VAL-nommage aligné sur le référentiel (attrape casse, espace ET snake_case ; l'ancien 'contient un espace' ratait code_versioning). - Données : 79 notes ré-étiquetées vers les 3 formes canoniques. Quality by design : l'erreur de nommage devient impossible à l'écriture, le Lint n'est plus que le filet de sécurité.
32 lines
846 B
Cython
32 lines
846 B
Cython
cdef extern from "Python.h":
|
|
int PY_VERSION_HEX
|
|
|
|
unicode PyUnicode_FromString(const char *)
|
|
|
|
void* PyMem_RawMalloc(size_t n) nogil
|
|
void* PyMem_RawRealloc(void *p, size_t n) nogil
|
|
void* PyMem_RawCalloc(size_t nelem, size_t elsize) nogil
|
|
void PyMem_RawFree(void *p) nogil
|
|
|
|
object PyUnicode_EncodeFSDefault(object)
|
|
void PyErr_SetInterrupt() nogil
|
|
|
|
object PyMemoryView_FromMemory(char *mem, ssize_t size, int flags)
|
|
object PyMemoryView_FromObject(object obj)
|
|
int PyMemoryView_Check(object obj)
|
|
|
|
cdef enum:
|
|
PyBUF_WRITE
|
|
|
|
|
|
cdef extern from "includes/compat.h":
|
|
object Context_CopyCurrent()
|
|
int Context_Enter(object) except -1
|
|
int Context_Exit(object) except -1
|
|
|
|
void PyOS_BeforeFork()
|
|
void PyOS_AfterFork_Parent()
|
|
void PyOS_AfterFork_Child()
|
|
|
|
void _Py_RestoreSignals()
|