Download packages/execution-fabric/src/index.ts from AnthropicallyHuggingFaces/ProjectOS: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/spaces/AnthropicallyHuggingFaces/ProjectOS/resolve/main/packages/execution-fabric/src/index.ts
- Command line
-
hf download hf://spaces/AnthropicallyHuggingFaces/ProjectOS/packages/execution-fabric/src/index.ts
-
curl -L -o index.ts https://huggingface.co/spaces/AnthropicallyHuggingFaces/ProjectOS/resolve/main/packages/execution-fabric/src/index.ts
428 Bytes
| export interface ExecutionGate { allowed: boolean; missing: string[] } | |
| export function checkExecutionConfiguration(configured: string[] = []): ExecutionGate { | |
| const required = ['identity', 'model-provider', 'dataset-provider', 'tool-adapter', 'approval']; | |
| const configuredSet = new Set(configured); | |
| const missing = required.filter(item => !configuredSet.has(item)); | |
| return { allowed: missing.length === 0, missing }; | |
| } | |