@lintsure/core 0.3.17 → 0.3.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/plan.js +1 -1
- package/dist/src/rules/owasp.js +4 -4
- package/docs/README.md +1 -1
- package/docs/agents.md +1 -1
- package/docs/frameworks.md +1 -1
- package/docs/rules.md +1 -1
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export { toAssessmentHtml } from "./assessment.js";
|
|
|
14
14
|
export * from "./knowledge/index.js";
|
|
15
15
|
export { loadPacks, registerPack, type Pack } from "./packs.js";
|
|
16
16
|
export { checksFor } from "./plan.js";
|
|
17
|
-
export declare const RULES_VERSION = "0.3.
|
|
17
|
+
export declare const RULES_VERSION = "0.3.19";
|
|
18
18
|
/** Shown with every result, in every interface. Lintsure prepares; people decide. */
|
|
19
19
|
export declare const DISCLAIMER: string;
|
|
20
20
|
/** What a report must never be read as. Used in the report and by the MCP server. */
|
package/dist/src/index.js
CHANGED
|
@@ -23,7 +23,7 @@ export { loadPacks, registerPack } from "./packs.js";
|
|
|
23
23
|
export { checksFor } from "./plan.js";
|
|
24
24
|
import { configPacks, loadPacks, packFrameworks, packsLoaded } from "./packs.js";
|
|
25
25
|
import { buildGraph, declaredEntries, reachOf } from "./reach.js";
|
|
26
|
-
export const RULES_VERSION = "0.3.
|
|
26
|
+
export const RULES_VERSION = "0.3.19";
|
|
27
27
|
/** Shown with every result, in every interface. Lintsure prepares; people decide. */
|
|
28
28
|
export const DISCLAIMER = "Lintsure is a readiness tool, not an audit, a certification or legal advice. " +
|
|
29
29
|
"Its rules reflect our reading of the publicly available text of each framework, and they check code only. " +
|
package/dist/src/plan.js
CHANGED
|
@@ -12,7 +12,7 @@ const TOPICS = [
|
|
|
12
12
|
[/\b(webhooks?|fetch\w*|urls?|proxy|crawl\w*|scrap\w*|preview)\b/i, ["ssrf", "transport", "redirect"]],
|
|
13
13
|
[/\b(api|endpoints?|routes?|server|backend|handlers?)\b/i, ["cors", "error", "sql", "mass", "config"]],
|
|
14
14
|
[/\b(shell|commands?|exec\w*|scripts?|cli|deploy\w*|ci|github actions?|workflows?)\b/i, ["cmd", "ci", "deps", "code"]],
|
|
15
|
-
[/\b(hooks?|mcp|cursor|claude code|agent config)\b/i, ["agent"]],
|
|
15
|
+
[/\b(hooks?|mcp|cursor|grok build|claude code|agent config)\b/i, ["agent"]],
|
|
16
16
|
[/\b(env\w*|keys?|secrets?|tokens?|config\w*)\b/i, ["secret", "release", "config"]],
|
|
17
17
|
[/\b(html|render\w*|templates?|markdown|comments?|rich text)\b/i, ["xss", "template"]],
|
|
18
18
|
[/\b(mobile|android|ios|react native|expo)\b/i, ["mobile"]],
|
package/dist/src/rules/owasp.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const CODE = [".ts", ".tsx", ".js", ".jsx", ".mjs", ".cjs", ".py"];
|
|
2
2
|
const MARKUP = [...CODE, ".html", ".vue", ".svelte", ".astro", ".jinja", ".j2"];
|
|
3
3
|
const YAML = [".yml", ".yaml"];
|
|
4
|
-
// Files whose commands an agent or editor runs by itself: settings, MCP server lists and hook files for Claude Code, Cursor,
|
|
4
|
+
// Files whose commands an agent or editor runs by itself: settings, MCP server lists and hook files for Claude Code, Grok Build, Cursor,
|
|
5
5
|
// VS Code, Gemini CLI, Codex, Copilot, Zed, OpenCode and others. Any mcp.json counts, wherever the agent keeps it.
|
|
6
|
-
export const AGENT_CONFIG = /(^|\/)(\.claude\/settings(\.local)?\.json|\.mcp\.json|mcp\.json|claude_desktop_config\.json|\.windsurf\/mcp_config\.json|\.roo\/mcp\.json|\.cursor\/(mcp|hooks(\.windows)?)\.json|\.codex\/hooks\.json|\.mastracode\/hooks\.json|\.github\/hooks\/[^/]+\.json|\.zed\/settings\.json|opencode\.json|\.vscode\/(tasks|mcp)\.json|\.gemini\/settings\.json)$/;
|
|
6
|
+
export const AGENT_CONFIG = /(^|\/)(\.claude\/settings(\.local)?\.json|\.mcp\.json|mcp\.json|claude_desktop_config\.json|\.windsurf\/mcp_config\.json|\.roo\/mcp\.json|\.cursor\/(mcp|hooks(\.windows)?)\.json|\.codex\/hooks\.json|\.grok\/hooks\/[^/]+\.json|\.mastracode\/hooks\.json|\.github\/hooks\/[^/]+\.json|\.zed\/settings\.json|opencode\.json|\.vscode\/(tasks|mcp)\.json|\.gemini\/settings\.json)$/;
|
|
7
7
|
// Download-and-run shapes: piped into a shell, run from $( ), process substitution, base64 into a shell, encoded PowerShell,
|
|
8
8
|
// and download-then-execute chains.
|
|
9
9
|
const RUNS_REMOTE = new RegExp([
|
|
@@ -15,8 +15,8 @@ const RUNS_REMOTE = new RegExp([
|
|
|
15
15
|
String.raw `\b(curl|wget)\b[^;&|]*(&&|;)\s*(chmod\s+\+x|\.\/|sh\s|bash\s)`,
|
|
16
16
|
].join("|"), "i");
|
|
17
17
|
// Files an agent reads as its own instructions.
|
|
18
|
-
// The folder each agent keeps its own files in: .claude, .agents, .cursor, .kiro, .continue, .github (Copilot) and the rest.
|
|
19
|
-
export const AGENT_DIRS = String.raw `\.(claude|agents?|codex|gemini|cursor|continue|kiro|kilocode|factory|codebuddy|opencode|pi|hermes|mastracode|openclaw|adal|autohand|roo|windsurf|cline|junie|rovodev|github)`;
|
|
18
|
+
// The folder each agent keeps its own files in: .claude, .agents, .grok, .cursor, .kiro, .continue, .github (Copilot) and the rest.
|
|
19
|
+
export const AGENT_DIRS = String.raw `\.(claude|agents?|codex|gemini|grok|cursor|continue|kiro|kilocode|factory|codebuddy|opencode|pi|hermes|mastracode|openclaw|adal|autohand|roo|windsurf|cline|junie|rovodev|github)`;
|
|
20
20
|
export const AGENT_INSTRUCTIONS = new RegExp([
|
|
21
21
|
String.raw `(^|\/)(SKILL\.md|AGENTS\.md|CLAUDE\.md|REVIEW\.md|GEMINI\.md|\.cursorrules|\.windsurfrules|\.clinerules|copilot-instructions\.md)$`,
|
|
22
22
|
String.raw `(^|\/)\.cursor\/rules\/[^/]+\.mdc?$`,
|
package/docs/README.md
CHANGED
package/docs/agents.md
CHANGED
package/docs/frameworks.md
CHANGED
package/docs/rules.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lintsure/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.19",
|
|
4
4
|
"description": "Lintsure engine: rules, framework knowledge and reports for readiness checks of AI-written code. Not an audit or legal advice.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|