UNPKG

scai

Version:

> **AI-powered CLI for local code analysis, commit message suggestions, and natural-language queries.** 100% local, private, GDPR-friendly, made in Denmark/EU with ❤️.

32 lines (31 loc) 1.47 kB
export const BUILTINS = { ts: new Set([ // String methods "trim", "toLowerCase", "toUpperCase", "includes", "startsWith", "endsWith", "replace", "match", "split", // Array methods "map", "forEach", "filter", "reduce", "some", "every", "find", "findIndex", "push", "pop", "shift", "unshift", "slice", "splice", // Object methods "keys", "values", "entries", "assign", // Number/Math "parseInt", "parseFloat", "isNaN", "isFinite", "floor", "ceil", "round", "abs", "max", "min", "random", // JSON / Promise / RegExp "stringify", "parse", "then", "catch", "finally", "test", // Console "log", "error", "warn", "info", ]), java: new Set([ // Object methods "equals", "hashCode", "toString", "clone", "finalize", "notify", "notifyAll", "wait", // String methods "charAt", "compareTo", "contains", "endsWith", "equalsIgnoreCase", "indexOf", "isEmpty", "length", "replace", "split", "startsWith", "substring", "toLowerCase", "toUpperCase", "trim", // Math methods "abs", "max", "min", "floor", "ceil", "round", "sqrt", "pow", "random", // Collections (common) "add", "addAll", "remove", "removeAll", "contains", "containsAll", "size", "clear", "get", "put", // System "exit", "currentTimeMillis", "arraycopy", // Misc "format", "parseInt", "parseDouble", ]), };