{ "private": true, "version": "0.39.5", "name": "oso", "displayName": "Oso", "author": "Oso Security Inc.", "publisher": "osohq", "icon": "oso_logo.png", "description": "Support for Oso policies written in Polar.", "keywords": [ "authorization", "access control", "multi-root ready", "polar" ], "categories": [ "Programming Languages" ], "homepage": "https://www.osohq.com", "license": "Apache-2.0", "engines": { "vscode": "^1.78.0" }, "main": "./out/index.js", "activationEvents": [ "onStartupFinished" ], "contributes": { "languages": [ { "id": "polar", "aliases": [ "Polar", "polar" ], "extensions": [ ".polar" ], "configuration": "./language-configuration.json" } ], "grammars": [ { "language": "polar", "scopeName": "source.polar", "path": "./polar-grammar/syntaxes/polar.tmLanguage.json" } ], "configuration": { "type": "object", "title": "Oso", "properties": { "oso.polarLanguageServer.metrics.enabled": { "type": "string", "enum": [ "default", "on", "off" ], "markdownEnumDescriptions": [ "Default to VS Code's `#telemetry.telemetryLevel#` setting", "Enable metrics", "Disable metrics" ], "default": "default", "markdownDescription": "Share usage data to help us make Oso better. Defaults to the `#telemetry.telemetryLevel#` setting." }, "oso.polarLanguageServer.projectRoots": { "type": "array", "items": { "type": "string", "pattern": "^([^/]+/)*[^/]+/?$", "patternErrorMessage": "Project root must be a POSIX-style relative path that doesn't begin with a forward slash and has its path segments separated by single forward slashes. E.g.: `mypath` or `my/path/` or `./my/path`" }, "default": [], "markdownDescription": "When a workspace contains multiple distinct Oso policies, list of **POSIX-style, relative paths** from workspace folder root to directory containing each Oso policy." }, "oso.polarLanguageServer.trace.server": { "type": "string", "enum": [ "off", "messages", "verbose" ], "default": "off", "description": "Traces the communication between VS Code and the language server." }, "oso.polarLanguageServer.server.path": { "type": [ "null", "string" ], "scope": "machine-overridable", "default": null, "description": "Path to oso-cloud binary (points to oso-cloud on the user's path by default)." } } }, "commands": [ { "command": "oso.polarLanguageServer.restartServer", "title": "Oso: Restart Polar Language Server" } ] }, "scripts": { "package": "vsce package --yarn --githubBranch main --out oso.vsix", "publish": "vsce publish --yarn --githubBranch main --packagePath oso.vsix", "typecheck": "tsc --noEmit", "fix": "gts fix", "lint": "gts lint -- . --max-warnings 0", "fmtwrite": "prettier --write 'src/**/*.ts'", "fmtcheck": "prettier --check 'src/**/*.ts'", "build": "yarn esbuild --bundle --outdir=out --external:vscode --format=cjs --platform=node --sourcemap index=./src", "vscode:prepublish": "yarn build --minify" }, "dependencies": { "lodash": "^4.17.21", "mixpanel": "^0.14.0", "semver": "^7.6.2", "vscode-languageclient": "^8.1.0" }, "devDependencies": { "@types/glob": "^7.1.4", "@types/lodash": "^4.14.177", "@types/node": "^16.10.3", "@types/semver": "^7.3.8", "@types/vscode": "~1.78.1", "esbuild": "^0.13.14", "glob": "^7.2.0", "gts": "^3.1.0", "ovsx": "^0.7.1", "typescript": "^4.4.3", "vsce": "^2.15.0" } }