fix: support jsonc comments and switch to monaco for acls

This commit is contained in:
Aarnav Tale
2024-06-02 22:40:23 -04:00
parent dd9d6cd550
commit 3ea5fed8f6
6 changed files with 293 additions and 557 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ export async function loadContext(): Promise<HeadplaneContext> {
return context
}
export async function loadAcl() {
export async function loadAcl(): Promise<{ data: string, type: 'json' | 'yaml' }> {
let path = process.env.ACL_FILE
if (!path) {
try {