Download ide/native/fcl/parser.h from Snapkitty/sovereign-engine-v2: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/Snapkitty/sovereign-engine-v2/resolve/main/ide/native/fcl/parser.h
- Command line
-
hf download hf://Snapkitty/sovereign-engine-v2/ide/native/fcl/parser.h
-
curl -L -o parser.h https://huggingface.co/Snapkitty/sovereign-engine-v2/resolve/main/ide/native/fcl/parser.h
1.01 kB
| typedef enum FclNodeKind { | |
| FCL_PERMIT, | |
| FCL_DENY, | |
| FCL_REQUIRE, | |
| FCL_CONSTRAIN, | |
| FCL_BOUNDARY, | |
| } FclNodeKind; | |
| typedef enum FclAction { | |
| FCL_ACT_READ, | |
| FCL_ACT_WRITE, | |
| FCL_ACT_EXECUTE, | |
| FCL_ACT_GIT_READ, | |
| FCL_ACT_GIT_MUTATE, | |
| FCL_ACT_BUILD, | |
| FCL_ACT_DEPLOY, | |
| FCL_ACT_MODEL, | |
| } FclAction; | |
| typedef struct FclRule { | |
| FclNodeKind kind; | |
| FclAction action; | |
| Str subject; /* file path or tool name */ | |
| Str agent; /* which agent requested */ | |
| bool requires_approval; | |
| } FclRule; | |
| typedef struct FclRuleSet { | |
| FclRule *rules; | |
| size_t count; | |
| size_t capacity; | |
| } FclRuleSet; | |
| SovResult fcl_parse(const char *source, size_t len, FclRuleSet *out); | |
| void fcl_ruleset_free(FclRuleSet *rs); | |