@ushiradineth/veil 0.6.0 → 0.7.0

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.
Files changed (4) hide show
  1. package/README.md +44 -36
  2. package/dist/bin.js +24 -43405
  3. package/package.json +32 -28
  4. package/skills/SKILL.md +77 -0
package/package.json CHANGED
@@ -1,19 +1,15 @@
1
1
  {
2
2
  "name": "@ushiradineth/veil",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "private": false,
5
- "license": "MIT",
6
- "type": "module",
7
- "repository": {
8
- "type": "git",
9
- "url": "https://github.com/ushiradineth/veil"
10
- },
11
5
  "homepage": "https://github.com/ushiradineth/veil",
12
6
  "bugs": {
13
7
  "url": "https://github.com/ushiradineth/veil/issues"
14
8
  },
15
- "engines": {
16
- "node": ">=20"
9
+ "license": "MIT",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/ushiradineth/veil"
17
13
  },
18
14
  "bin": {
19
15
  "veil": "bin/veil.mjs"
@@ -21,18 +17,22 @@
21
17
  "files": [
22
18
  "bin",
23
19
  "dist",
20
+ "skills/SKILL.md",
24
21
  "README.md",
25
22
  "LICENSE"
26
23
  ],
24
+ "type": "module",
27
25
  "scripts": {
28
26
  "mcp": "bun run src/bin.ts",
29
27
  "build:package": "node scripts/build-package.mjs",
30
28
  "prepack": "npm run build:package",
31
- "lint": "eslint . --max-warnings 0",
32
- "lint:fix": "eslint . --max-warnings 0 --fix",
33
- "format": "prettier . --write",
34
- "format:check": "prettier . --check",
35
- "test": "bun test ./src/test.ts",
29
+ "lint": "oxlint . --deny-warnings --import-plugin --type-aware",
30
+ "lint:fix": "oxlint . --deny-warnings --import-plugin --type-aware --fix",
31
+ "format": "oxfmt --write .",
32
+ "format:check": "oxfmt --check .",
33
+ "knip": "knip --config knip.json --include dependencies,unlisted,files --no-config-hints",
34
+ "prepare": "husky",
35
+ "test": "bun test ./src",
36
36
  "bench:suite": "bun run src/bench-suite.ts"
37
37
  },
38
38
  "dependencies": {
@@ -40,28 +40,32 @@
40
40
  "@toon-format/toon": "^2.1.0",
41
41
  "ignore": "^7.0.5",
42
42
  "node-html-markdown": "^2.0.0",
43
+ "sql.js": "^1.13.0",
43
44
  "tree-sitter": "^0.25.0",
44
- "tree-sitter-bash": "^0.25.1",
45
- "tree-sitter-go": "^0.25.0",
46
45
  "tree-sitter-javascript": "^0.25.0",
47
- "tree-sitter-python": "^0.25.0",
48
- "tree-sitter-rust": "^0.24.0",
49
46
  "tree-sitter-typescript": "^0.23.2",
50
- "sql.js": "^1.13.0",
51
47
  "zod": "^3.24.1"
52
48
  },
53
- "overrides": {
54
- "hono": "^4.12.7"
55
- },
56
49
  "devDependencies": {
57
- "@eslint/js": "^9.22.0",
58
50
  "@types/bun": "latest",
59
- "eslint": "^9.22.0",
60
- "eslint-config-prettier": "^10.1.1",
61
- "eslint-plugin-import": "^2.31.0",
62
51
  "esbuild": "^0.25.1",
63
- "prettier": "^3.5.3",
64
- "typescript-eslint": "^8.26.1",
52
+ "husky": "^9.1.7",
53
+ "knip": "^6.0.2",
54
+ "oxfmt": "^0.41.0",
55
+ "oxlint": "^1.56.0",
56
+ "oxlint-tsgolint": "^0.17.1",
65
57
  "typescript": "^5.9.0"
58
+ },
59
+ "optionalDependencies": {
60
+ "tree-sitter-bash": "^0.25.1",
61
+ "tree-sitter-go": "^0.25.0",
62
+ "tree-sitter-python": "^0.25.0",
63
+ "tree-sitter-rust": "^0.24.0"
64
+ },
65
+ "overrides": {
66
+ "hono": "^4.12.7"
67
+ },
68
+ "engines": {
69
+ "node": ">=20"
66
70
  }
67
71
  }
@@ -0,0 +1,77 @@
1
+ ---
2
+ name: veil
3
+ version: 2.2.2
4
+ description: Use this skill whenever Veil MCP tools are available and the task involves repository retrieval, git context, web references, or GitHub context. Trigger on direct or indirect phrasing like "find where", "investigate", "what changed", "summarize from web", or "check PR context", even when the user suggests shell-style discovery.
5
+ ---
6
+
7
+ # Veil Skill
8
+
9
+ ## Trigger Conditions
10
+
11
+ Use this skill when the task asks for any of these outcomes:
12
+
13
+ - locate files, symbols, or relevant code paths quickly
14
+ - inspect branch status, commit history, or diffs before changes
15
+ - gather external references and summarize source pages
16
+ - inspect GitHub repository, issue, PR, or checks context
17
+ - detect unsupported or disabled parser coverage and guide grammar installation via approval loop
18
+
19
+ Treat intent phrases like `find where`, `investigate`, `compare`, `summarize from web`, and `check PR` as strong triggers.
20
+
21
+ Prefer Veil MCP tools when supported so outputs stay structured and follow-on steps are cheaper.
22
+
23
+ Veil MCP responses are compact TOON payloads. Guidance fields appear only on low-confidence or missing-context responses.
24
+
25
+ ## Your Task
26
+
27
+ 1. Route discovery and context gathering through Veil MCP tools first.
28
+ 2. Keep calls minimal: one broad retrieval tool, then one narrowing tool.
29
+ 3. Add git, web, or GitHub branches only when they change the answer.
30
+ 4. Return concise findings with file paths or URLs, then continue implementation.
31
+
32
+ ## Retrieval Workflow
33
+
34
+ Retrieval query tools refresh index state on stale or dirty worktrees by default.
35
+
36
+ 1. Start broad once with `veil_discover`.
37
+ 2. Narrow once with `veil_lookup` or one targeted call: `veil_files|veil_symbols|veil_search`.
38
+ 3. Fetch full code only when needed with `veil_chunk` using chunk ids from prior results.
39
+ 4. Add context branches only as needed: git, web, or GitHub.
40
+ 5. Return concise findings with paths or URLs, then continue implementation.
41
+
42
+ Prefer required args only by default. Add optional args only when you need behavior different from defaults.
43
+ Prefer compact defaults (`veil_lookup` compact reasons, git path lists off unless asked, bounded `veil_fetch_url` output).
44
+
45
+ ## Intent Branches
46
+
47
+ - Local retrieval: `veil_discover`, `veil_lookup`, `veil_files`, `veil_symbols`, `veil_search`, `veil_chunk`.
48
+ - Git context: `veil_git_status`, `veil_git_log`, `veil_git_diff`, `veil_git_show`.
49
+ - Web context: `veil_web_search`, then `veil_fetch_url`.
50
+ - GitHub context: `veil_gh_lookup`.
51
+ - Setup and operations (non-retrieval): `veil_status`, `veil_update_check`, `veil_build`, `veil_grammar_list|install|remove|update`, `veil_diagnostics` with `reset`.
52
+ - Grammar improvement loop: `veil_grammar_recommend` then (after explicit user approval) `veil_grammar_runtime_install`.
53
+ - Grammar runtime installs are workspace and state-root scoped (`<state_root>/grammars-runtime`) and reused by
54
+ later MCP server instances targeting the same workspace.
55
+ - For known installable parsers, treat runtime fallback as strict by default. Only rely on fallback paths when
56
+ install is recorded as failed or no known runtime package mapping exists.
57
+
58
+ ## Anti-pattern Corrections
59
+
60
+ - Shell-first discovery with ad hoc tools -> start with `veil_discover`, then narrow once.
61
+ - Repeating broad retrieval calls -> rewrite query with entity + intent, then run one focused follow-up.
62
+ - Asking for full code in broad calls -> keep compact defaults and fetch only selected chunk ids with `veil_chunk`.
63
+ - Jumping to `veil_fetch_url` without candidates -> use `veil_web_search` first.
64
+ - Raw `git` reads for normal context -> use `veil_git_status|veil_git_log|veil_git_diff|veil_git_show`.
65
+ - Treating setup helpers as retrieval gaps -> keep setup/runtime operations separate from retrieval behavior.
66
+ - Auto-installing parser runtimes during retrieval -> never auto-install, recommend first and require explicit approval before `veil_grammar_runtime_install`.
67
+
68
+ ## When Not to Use
69
+
70
+ - One-file local reads where path is already known and no retrieval is needed.
71
+ - Pure write/edit steps that do not require lookup, git context, web context, or GitHub context.
72
+
73
+ ## Quick Examples
74
+
75
+ - `Find implementation points for a feature request` -> `veil_discover` then `veil_lookup`.
76
+ - `Check what changed on this branch before editing` -> `veil_git_status`, `veil_git_log`, then `veil_git_diff`.
77
+ - `Summarize dependency docs with source links` -> `veil_web_search`, then `veil_fetch_url`.