trace-to-skill 0.1.68 → 0.1.69

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/README.md CHANGED
@@ -28,6 +28,7 @@ npx trace-to-skill guard-github-event "$GITHUB_EVENT_PATH"
28
28
  npx trace-to-skill guard-patch ./change.patch --root .
29
29
  npx trace-to-skill session-audit ~/.codex --format json
30
30
  npx trace-to-skill sensitive-audit . --format json
31
+ npx trace-to-skill lsp-audit . --format json
31
32
  npx trace-to-skill config-audit ~/.codex --format json
32
33
  npx trace-to-skill plugin-audit ~/.codex --app /Applications/Codex.app --format json
33
34
  npx trace-to-skill diagnostics-bundle ~/.codex --output codex-diagnostics
@@ -57,6 +58,7 @@ Use it when you need to:
57
58
  - **Prevent unsafe patch overwrites:** run `trace-to-skill guard-patch ./change.patch --root .` before applying generated patches so `*** Add File` cannot silently replace an existing file or symlink target.
58
59
  - **Audit local Codex session history:** run `trace-to-skill session-audit ~/.codex --format json` to summarize rollout JSONL sizes, huge lines, parse errors, state files, and short `session_index.jsonl` evidence without publishing private transcripts.
59
60
  - **Preflight sensitive paths before agent runs:** run `trace-to-skill sensitive-audit . --format json` to find `.env`, private keys, package auth files, cloud credentials, local databases, signing files, and secret manifests by filename/path without reading file contents.
61
+ - **Preflight language-server readiness:** run `trace-to-skill lsp-audit . --format json` to detect repo languages, missing LSP commands, install hints, and evidence files before asking Codex for symbol-aware edits.
60
62
  - **Audit Codex config drift:** run `trace-to-skill config-audit ~/.codex --format json` to summarize legacy profile config, model pins, Speed/Fast service-tier persistence drift, sandbox/approval posture, Windows elevated sandbox mode, missing permission profiles, plugin cache drift, and MCP approval sprawl.
61
63
  - **Audit bundled plugin drift:** run `trace-to-skill plugin-audit ~/.codex --app /Applications/Codex.app --format json` to check Browser, Chrome, Computer Use, bundled marketplace, plugin cache, manifest, helper app, `CODEX_HOME`, and unsupported feature-flag drift without posting raw logs.
62
64
  - **Bundle Codex diagnostics safely:** run `trace-to-skill diagnostics-bundle ~/.codex --output codex-diagnostics` to create a metadata-only support folder with manifest, README, config, plugin, and session audit reports while excluding raw logs, SQLite state, raw config, and transcripts.
@@ -116,6 +118,7 @@ Open-source maintainers do not need more AI-generated noise. They need agents th
116
118
  - Which bundled plugin/cache/marketplace/helper-app mismatch explains a Browser, Chrome, Computer Use, or MCP runtime failure?
117
119
  - Can I attach one safe diagnostics folder to OpenAI without posting raw `config.toml`, SQLite state, local logs, or transcripts?
118
120
  - Which files in this repo should be excluded from agent context before Codex, Claude, Cursor, or Gemini reads the workspace?
121
+ - Which language servers should be installed before Codex attempts symbol-aware navigation, diagnostics, rename, or go-to-definition work?
119
122
  - Did Codex sandbox setup or workspace permissions block every tool call?
120
123
  - Did quota accounting, account switching, or reset timing contradict the runtime usage-limit error?
121
124
  - Did an MCP tool appear in `tools/list` but fail at Codex runtime because approval, namespace routing, or stdio lifecycle broke?
@@ -263,6 +266,7 @@ trace-to-skill demo patch-overwrite
263
266
  trace-to-skill guard-patch ./change.patch --root .
264
267
  trace-to-skill session-audit ~/.codex --format json
265
268
  trace-to-skill sensitive-audit . --format json
269
+ trace-to-skill lsp-audit . --format json
266
270
  trace-to-skill config-audit ~/.codex --format json
267
271
  trace-to-skill plugin-audit ~/.codex --app /Applications/Codex.app --format json
268
272
  trace-to-skill diagnostics-bundle ~/.codex --output codex-diagnostics
@@ -296,9 +300,10 @@ trace-to-skill redact ./runs --output redacted-runs
296
300
  trace-to-skill redact ./runs/failed-run.md > failed-run.redacted.md
297
301
  trace-to-skill redact ./runs --output redacted-runs --format json
298
302
  trace-to-skill sensitive-audit . --output sensitive-paths.md
303
+ trace-to-skill lsp-audit . --output lsp-readiness.md
299
304
  ```
300
305
 
301
- This removes common API keys, GitHub/npm/Slack tokens, bearer tokens, email addresses, local home paths, and hidden Unicode controls while preserving enough context for maintainer review.
306
+ This removes common API keys, GitHub/npm/Slack tokens, bearer tokens, email addresses, local home paths, and hidden Unicode controls while preserving enough context for maintainer review. `sensitive-audit` is filename/path-only, while `lsp-audit` detects repo language signals and missing language-server commands without installing anything.
302
307
 
303
308
  Scaffold a repo:
304
309
 
@@ -437,6 +442,7 @@ Stable machine-readable contracts are published with the npm package and release
437
442
  - [`schemas/doctor-result.schema.json`](schemas/doctor-result.schema.json) describes `trace-to-skill doctor --format json`.
438
443
  - [`schemas/redact-result.schema.json`](schemas/redact-result.schema.json) describes `trace-to-skill redact --format json`.
439
444
  - [`schemas/sensitive-audit-result.schema.json`](schemas/sensitive-audit-result.schema.json) describes `trace-to-skill sensitive-audit --format json`.
445
+ - [`schemas/lsp-audit-result.schema.json`](schemas/lsp-audit-result.schema.json) describes `trace-to-skill lsp-audit --format json`.
440
446
  - [`schemas/scorecard-result.schema.json`](schemas/scorecard-result.schema.json) describes `trace-to-skill scorecard --format json`.
441
447
  - [`schemas/oss-brief-result.schema.json`](schemas/oss-brief-result.schema.json) describes `trace-to-skill oss-brief --format json`.
442
448
  - [`schemas/patch-guard-result.schema.json`](schemas/patch-guard-result.schema.json) describes `trace-to-skill guard-patch --format json`.
@@ -476,7 +482,7 @@ jobs:
476
482
  issues: write
477
483
  steps:
478
484
  - uses: actions/checkout@v5
479
- - uses: grnbtqdbyx-create/trace-to-skill@v0.1.68
485
+ - uses: grnbtqdbyx-create/trace-to-skill@v0.1.69
480
486
  with:
481
487
  mode: all
482
488
  doctor-threshold: "85"
@@ -525,7 +531,7 @@ Composite action usage:
525
531
 
526
532
  ```yaml
527
533
  - id: trace-to-skill
528
- uses: grnbtqdbyx-create/trace-to-skill@v0.1.68
534
+ uses: grnbtqdbyx-create/trace-to-skill@v0.1.69
529
535
  with:
530
536
  mode: all
531
537
  doctor-threshold: "85"
@@ -567,7 +573,7 @@ Action outputs:
567
573
 
568
574
  By default, generated reports are also appended to the GitHub Actions Job Summary. Set `job-summary: "false"` to disable that UI output.
569
575
 
570
- Tagged Action releases build and run the CLI from `$GITHUB_ACTION_PATH`, so a workflow pinned to a release tag such as `@v0.1.68` executes that release's checked-out source instead of pulling the default branch at runtime.
576
+ Tagged Action releases build and run the CLI from `$GITHUB_ACTION_PATH`, so a workflow pinned to a release tag such as `@v0.1.69` executes that release's checked-out source instead of pulling the default branch at runtime.
571
577
 
572
578
  ## Codex Skill
573
579
 
package/dist/src/cli.js CHANGED
@@ -11,6 +11,7 @@ import { compareAnalyses, evaluate } from "./eval.js";
11
11
  import { analyzeGithubEventContext } from "./githubContext.js";
12
12
  import { postPullRequestComment } from "./github.js";
13
13
  import { initProject } from "./init.js";
14
+ import { auditLspReadiness, renderLspAuditMarkdown } from "./lspAudit.js";
14
15
  import { renderOssBriefMarkdown, runOssBrief } from "./ossBrief.js";
15
16
  import { guardPatchFile, renderPatchGuardMarkdown } from "./patchGuard.js";
16
17
  import { auditCodexPlugins, renderPluginAuditMarkdown } from "./pluginAudit.js";
@@ -106,6 +107,14 @@ async function main() {
106
107
  process.exitCode = result.status === "fail" ? 1 : 0;
107
108
  return;
108
109
  }
110
+ if (parsed.command === "lsp-audit") {
111
+ const result = await auditLspReadiness(parsed.targets[0] ?? process.cwd());
112
+ const format = String(parsed.flags.format ?? "markdown");
113
+ const output = format === "json" ? `${JSON.stringify(result, null, 2)}\n` : renderLspAuditMarkdown(result);
114
+ await writeOutput(output, parsed.flags.output);
115
+ process.exitCode = result.status === "fail" ? 1 : 0;
116
+ return;
117
+ }
109
118
  if (parsed.command === "benchmark") {
110
119
  const result = await runBenchmark();
111
120
  const format = String(parsed.flags.format ?? "markdown");
@@ -385,6 +394,7 @@ Usage:
385
394
  trace-to-skill lint-agents [repo-dir] [--format markdown|json] [--output report.md]
386
395
  trace-to-skill redact <trace-file-or-dir> [--output redacted-runs] [--format text|json]
387
396
  trace-to-skill sensitive-audit [repo-dir] [--format markdown|json] [--output sensitive-paths.md]
397
+ trace-to-skill lsp-audit [repo-dir] [--format markdown|json] [--output lsp-readiness.md]
388
398
  trace-to-skill eval <trace-file-or-dir> [--threshold 75] [--format text|json]
389
399
  trace-to-skill benchmark [--format markdown|json] [--output docs/BENCHMARK.md]
390
400
  trace-to-skill scorecard [repo-dir] [--threshold 85] [--format markdown|json] [--output docs/SCORECARD.md]
@@ -412,6 +422,7 @@ Examples:
412
422
  trace-to-skill lint-agents .
413
423
  trace-to-skill redact ./runs --output redacted-runs
414
424
  trace-to-skill sensitive-audit .
425
+ trace-to-skill lsp-audit .
415
426
  trace-to-skill eval ./runs --threshold 80
416
427
  trace-to-skill benchmark
417
428
  trace-to-skill scorecard .
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACnG,OAAO,EAAE,uBAAuB,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAClG,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EA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CAAC;AACrC,CAAC;AAED,KAAK,UAAU,WAAW,CAAC,MAAc,EAAE,UAAwC;IACjF,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;QACnC,MAAM,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAC5C,OAAO;IACT,CAAC;IAED,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAC/B,CAAC;AAED,SAAS,SAAS;IAChB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0DtB,CAAC,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC9B,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACvE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,mBAAmB,OAAO,IAAI,CAAC,CAAC;IACrD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC"}
@@ -11,6 +11,8 @@ export { compareAnalyses, evaluate } from "./eval.js";
11
11
  export { analyzeGithubEventContext, extractGithubContextInputs } from "./githubContext.js";
12
12
  export { postPullRequestComment } from "./github.js";
13
13
  export { initProject } from "./init.js";
14
+ export { auditLspReadiness, renderLspAuditMarkdown } from "./lspAudit.js";
15
+ export type { LspAuditLanguage, LspAuditResult, LspAuditStatus } from "./lspAudit.js";
14
16
  export { renderOssBriefMarkdown, runOssBrief } from "./ossBrief.js";
15
17
  export { guardPatchContent, guardPatchFile, renderPatchGuardMarkdown } from "./patchGuard.js";
16
18
  export type { PatchGuardFinding, PatchGuardOperation, PatchGuardResult, PatchGuardSeverity } from "./patchGuard.js";
package/dist/src/index.js CHANGED
@@ -9,6 +9,7 @@ export { compareAnalyses, evaluate } from "./eval.js";
9
9
  export { analyzeGithubEventContext, extractGithubContextInputs } from "./githubContext.js";
10
10
  export { postPullRequestComment } from "./github.js";
11
11
  export { initProject } from "./init.js";
12
+ export { auditLspReadiness, renderLspAuditMarkdown } from "./lspAudit.js";
12
13
  export { renderOssBriefMarkdown, runOssBrief } from "./ossBrief.js";
13
14
  export { guardPatchContent, guardPatchFile, renderPatchGuardMarkdown } from "./patchGuard.js";
14
15
  export { auditCodexPlugins, renderPluginAuditMarkdown } from "./pluginAudit.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAE/E,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACnG,OAAO,EAAE,uBAAuB,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAElG,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,wBAAwB,EAA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0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC3F,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAE1E,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAE9F,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAEhF,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAClM,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACjG,OAAO,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAEnF,OAAO,EAAE,mBAAmB,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAExF,OAAO,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,28 @@
1
+ export type LspAuditStatus = "pass" | "warn" | "fail";
2
+ export interface LspAuditLanguage {
3
+ id: string;
4
+ name: string;
5
+ detected: boolean;
6
+ evidence: string[];
7
+ server: {
8
+ command: string;
9
+ installed: boolean;
10
+ install: string;
11
+ purpose: string;
12
+ };
13
+ }
14
+ export interface LspAuditResult {
15
+ generatedAt: string;
16
+ root: string;
17
+ status: LspAuditStatus;
18
+ summary: {
19
+ detectedLanguages: number;
20
+ installedServers: number;
21
+ missingServers: number;
22
+ scannedFiles: number;
23
+ };
24
+ languages: LspAuditLanguage[];
25
+ recommendedInstalls: string[];
26
+ }
27
+ export declare function auditLspReadiness(root?: string): Promise<LspAuditResult>;
28
+ export declare function renderLspAuditMarkdown(result: LspAuditResult): string;
@@ -0,0 +1,270 @@
1
+ import { constants } from "node:fs";
2
+ import { access, readdir, stat } from "node:fs/promises";
3
+ import path from "node:path";
4
+ const SKIPPED_DIRS = new Set([
5
+ ".git",
6
+ "node_modules",
7
+ "dist",
8
+ "build",
9
+ ".next",
10
+ ".turbo",
11
+ ".cache",
12
+ "coverage",
13
+ "DerivedData"
14
+ ]);
15
+ const LANGUAGE_RULES = [
16
+ {
17
+ id: "typescript",
18
+ name: "TypeScript / JavaScript",
19
+ manifestFiles: ["package.json", "tsconfig.json", "jsconfig.json"],
20
+ extensions: [".ts", ".tsx", ".mts", ".cts", ".js", ".jsx", ".mjs", ".cjs"],
21
+ command: "typescript-language-server",
22
+ install: "npm install --save-dev typescript typescript-language-server",
23
+ purpose: "go-to-definition, diagnostics, references, and safe symbol-aware edits in TS/JS repos"
24
+ },
25
+ {
26
+ id: "python",
27
+ name: "Python",
28
+ manifestFiles: ["pyproject.toml", "requirements.txt", "setup.py", "setup.cfg"],
29
+ extensions: [".py", ".pyi"],
30
+ command: "pyright-langserver",
31
+ install: "npm install --global pyright",
32
+ purpose: "static diagnostics, import resolution, and symbol navigation for Python projects"
33
+ },
34
+ {
35
+ id: "go",
36
+ name: "Go",
37
+ manifestFiles: ["go.mod", "go.work"],
38
+ extensions: [".go"],
39
+ command: "gopls",
40
+ install: "go install golang.org/x/tools/gopls@latest",
41
+ purpose: "module-aware diagnostics, references, rename, and definition support for Go"
42
+ },
43
+ {
44
+ id: "rust",
45
+ name: "Rust",
46
+ manifestFiles: ["Cargo.toml"],
47
+ extensions: [".rs"],
48
+ command: "rust-analyzer",
49
+ install: "rustup component add rust-analyzer",
50
+ purpose: "cargo-aware diagnostics, symbol navigation, and refactor support for Rust"
51
+ },
52
+ {
53
+ id: "swift",
54
+ name: "Swift",
55
+ manifestFiles: ["Package.swift", "*.xcodeproj", "*.xcworkspace"],
56
+ extensions: [".swift"],
57
+ command: "sourcekit-lsp",
58
+ install: "Install Xcode or the Swift toolchain, then ensure sourcekit-lsp is on PATH.",
59
+ purpose: "SourceKit-backed diagnostics, references, and definitions for Swift and Xcode projects"
60
+ },
61
+ {
62
+ id: "java",
63
+ name: "Java",
64
+ manifestFiles: ["pom.xml", "build.gradle", "build.gradle.kts", "settings.gradle", "settings.gradle.kts"],
65
+ extensions: [".java"],
66
+ command: "jdtls",
67
+ install: "Install Eclipse JDT LS and expose the jdtls launcher on PATH.",
68
+ purpose: "project-aware diagnostics, imports, references, and refactors for Java"
69
+ },
70
+ {
71
+ id: "c-cpp",
72
+ name: "C / C++",
73
+ manifestFiles: ["compile_commands.json", "CMakeLists.txt", "Makefile"],
74
+ extensions: [".c", ".cc", ".cpp", ".cxx", ".h", ".hh", ".hpp", ".hxx"],
75
+ command: "clangd",
76
+ install: "Install LLVM clangd and ensure clangd is on PATH.",
77
+ purpose: "compile-database-aware diagnostics, completion, references, and symbol search for C/C++"
78
+ },
79
+ {
80
+ id: "ruby",
81
+ name: "Ruby",
82
+ manifestFiles: ["Gemfile", ".ruby-version"],
83
+ extensions: [".rb"],
84
+ command: "ruby-lsp",
85
+ install: "gem install ruby-lsp",
86
+ purpose: "diagnostics, document symbols, and project navigation for Ruby"
87
+ },
88
+ {
89
+ id: "php",
90
+ name: "PHP",
91
+ manifestFiles: ["composer.json"],
92
+ extensions: [".php"],
93
+ command: "intelephense",
94
+ install: "npm install --global intelephense",
95
+ purpose: "diagnostics, references, and symbol navigation for PHP"
96
+ },
97
+ {
98
+ id: "csharp",
99
+ name: "C#",
100
+ manifestFiles: ["*.csproj", "*.sln"],
101
+ extensions: [".cs"],
102
+ command: "csharp-ls",
103
+ install: "dotnet tool install --global csharp-ls",
104
+ purpose: "Roslyn-backed diagnostics and symbol navigation for C#"
105
+ }
106
+ ];
107
+ export async function auditLspReadiness(root = process.cwd()) {
108
+ const resolvedRoot = path.resolve(root);
109
+ const stats = await stat(resolvedRoot);
110
+ if (!stats.isDirectory()) {
111
+ throw new Error("lsp-audit requires a repository directory");
112
+ }
113
+ const files = await listFiles(resolvedRoot);
114
+ const fileSet = new Set(files);
115
+ const languages = await Promise.all(LANGUAGE_RULES.map((rule) => detectLanguage(rule, files, fileSet)));
116
+ const detected = languages.filter((language) => language.detected);
117
+ const missing = detected.filter((language) => !language.server.installed);
118
+ const recommendedInstalls = [...new Set(missing.map((language) => language.server.install))];
119
+ return {
120
+ generatedAt: new Date().toISOString(),
121
+ root: resolvedRoot,
122
+ status: detected.length === 0 || missing.length > 0 ? "warn" : "pass",
123
+ summary: {
124
+ detectedLanguages: detected.length,
125
+ installedServers: detected.filter((language) => language.server.installed).length,
126
+ missingServers: missing.length,
127
+ scannedFiles: files.length
128
+ },
129
+ languages: detected.sort((a, b) => a.name.localeCompare(b.name)),
130
+ recommendedInstalls
131
+ };
132
+ }
133
+ export function renderLspAuditMarkdown(result) {
134
+ const lines = [
135
+ "# trace-to-skill LSP Readiness Audit",
136
+ "",
137
+ `Status: **${result.status}**`,
138
+ "",
139
+ `Root: \`${result.root}\``,
140
+ `Detected languages: ${result.summary.detectedLanguages}`,
141
+ `Installed language servers: ${result.summary.installedServers}`,
142
+ `Missing language servers: ${result.summary.missingServers}`,
143
+ `Scanned files: ${result.summary.scannedFiles}`,
144
+ "",
145
+ "This audit is local and read-only. It detects repository language signals and whether matching language-server commands are available on PATH.",
146
+ "",
147
+ "## Languages",
148
+ ""
149
+ ];
150
+ if (result.languages.length === 0) {
151
+ lines.push("No supported language signals detected.", "");
152
+ }
153
+ else {
154
+ for (const language of result.languages) {
155
+ const state = language.server.installed ? "installed" : "missing";
156
+ lines.push(`- **${language.name}**: ${language.server.command} is **${state}**`, ` - Evidence: ${language.evidence.map((item) => `\`${item}\``).join(", ")}`, ` - Why it matters: ${language.server.purpose}`, ` - Install: \`${language.server.install}\``);
157
+ }
158
+ lines.push("");
159
+ }
160
+ lines.push("## Recommended Installs", "");
161
+ if (result.recommendedInstalls.length === 0) {
162
+ lines.push("No missing language servers detected.", "");
163
+ }
164
+ else {
165
+ lines.push("```bash", ...result.recommendedInstalls, "```", "");
166
+ }
167
+ lines.push("Suggested next step:", "", "- Install only the servers your team wants agents to use, then document the expected LSP setup in AGENTS.md or CI.", "- Treat this report as readiness evidence; it does not auto-install packages or grant an agent additional permissions.", "");
168
+ return lines.join("\n");
169
+ }
170
+ async function detectLanguage(rule, files, fileSet) {
171
+ const evidence = languageEvidence(rule, files, fileSet);
172
+ const installed = await commandExists(rule.command);
173
+ return {
174
+ id: rule.id,
175
+ name: rule.name,
176
+ detected: evidence.length > 0,
177
+ evidence,
178
+ server: {
179
+ command: rule.command,
180
+ installed,
181
+ install: rule.install,
182
+ purpose: rule.purpose
183
+ }
184
+ };
185
+ }
186
+ function languageEvidence(rule, files, fileSet) {
187
+ const evidence = [];
188
+ for (const manifest of rule.manifestFiles) {
189
+ if (manifest.includes("*")) {
190
+ const regex = globBasenameRegex(manifest);
191
+ const match = files.find((file) => regex.test(path.basename(file)));
192
+ if (match) {
193
+ evidence.push(match);
194
+ }
195
+ continue;
196
+ }
197
+ if (fileSet.has(manifest)) {
198
+ evidence.push(manifest);
199
+ }
200
+ }
201
+ for (const extension of rule.extensions) {
202
+ const match = files.find((file) => path.extname(file).toLowerCase() === extension);
203
+ if (match) {
204
+ evidence.push(match);
205
+ }
206
+ }
207
+ return [...new Set(evidence)].slice(0, 8);
208
+ }
209
+ async function listFiles(root) {
210
+ const results = [];
211
+ await walk(root, root, results);
212
+ return results.sort((a, b) => a.localeCompare(b));
213
+ }
214
+ async function walk(root, dir, results) {
215
+ let entries;
216
+ try {
217
+ entries = await readdir(dir, { withFileTypes: true });
218
+ }
219
+ catch {
220
+ return;
221
+ }
222
+ for (const entry of entries) {
223
+ if (entry.isDirectory() && SKIPPED_DIRS.has(entry.name)) {
224
+ continue;
225
+ }
226
+ const absolutePath = path.join(dir, entry.name);
227
+ const relativePath = path.relative(root, absolutePath).split(path.sep).join("/");
228
+ if (entry.isDirectory()) {
229
+ await walk(root, absolutePath, results);
230
+ continue;
231
+ }
232
+ if (entry.isFile()) {
233
+ results.push(relativePath);
234
+ }
235
+ }
236
+ }
237
+ async function commandExists(command) {
238
+ for (const directory of pathDirectories()) {
239
+ for (const candidate of executableCandidates(command)) {
240
+ try {
241
+ await access(path.join(directory, candidate), constants.X_OK);
242
+ return true;
243
+ }
244
+ catch {
245
+ // Keep scanning PATH.
246
+ }
247
+ }
248
+ }
249
+ return false;
250
+ }
251
+ function pathDirectories() {
252
+ return (process.env.PATH ?? "")
253
+ .split(path.delimiter)
254
+ .map((item) => item.trim())
255
+ .filter(Boolean);
256
+ }
257
+ function executableCandidates(command) {
258
+ if (process.platform !== "win32") {
259
+ return [command];
260
+ }
261
+ const extensions = (process.env.PATHEXT ?? ".EXE;.CMD;.BAT")
262
+ .split(";")
263
+ .map((item) => item.toLowerCase());
264
+ return [command, ...extensions.map((extension) => `${command}${extension}`)];
265
+ }
266
+ function globBasenameRegex(pattern) {
267
+ const escaped = pattern.replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*");
268
+ return new RegExp(`^${escaped}$`, "i");
269
+ }
270
+ //# sourceMappingURL=lspAudit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lspAudit.js","sourceRoot":"","sources":["../../src/lspAudit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,IAAI,MAAM,WAAW,CAAC;AAyC7B,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC;IAC3B,MAAM;IACN,cAAc;IACd,MAAM;IACN,OAAO;IACP,OAAO;IACP,QAAQ;IACR,Q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AAO,CAAC,OAAO,EAAE,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,GAAG,OAAO,GAAG,SAAS,EAAE,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,SAAS,iBAAiB,CAAC,OAAe;IACxC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAClF,OAAO,IAAI,MAAM,CAAC,IAAI,OAAO,GAAG,EAAE,GAAG,CAAC,CAAC;AACzC,CAAC"}
@@ -14,6 +14,7 @@ npx trace-to-skill usage-evidence ./usage-notes.md --output usage-evidence.md
14
14
  npx trace-to-skill plugin-audit ~/.codex --app /Applications/Codex.app --format json
15
15
  npx trace-to-skill diagnostics-bundle ~/.codex --output codex-diagnostics
16
16
  npx trace-to-skill sensitive-audit . --format json
17
+ npx trace-to-skill lsp-audit . --format json
17
18
  ```
18
19
 
19
20
  ## Issue Clusters
@@ -40,6 +41,7 @@ npx trace-to-skill sensitive-audit . --format json
40
41
  | Support diagnostics packaging | maintainers ask for more detail, but raw `config.toml`, `logs_2.sqlite`, `state_5.sqlite`, `session_index.jsonl`, rollout JSONL, or local logs are too private to post | multiple | `trace-to-skill diagnostics-bundle ~/.codex --output codex-diagnostics` |
41
42
  | Quota mismatch | `/status` or usage page shows quota left, but runtime says `You've hit your usage limit`; account/workspace reset or cache confusion | `quota_mismatch` | `trace-to-skill usage-evidence ./usage-notes.md` or `trace-to-skill codex-report ./runs` |
42
43
  | Sensitive file exclusion | teams need deterministic `.agentignore` / `.aiexclude` / `.codexignore` candidates before agent runs, or traces show `.env`, private keys, `.npmrc`, cloud credentials, local databases, signing files, or secret manifests entering context | `sensitive_file_access` plus sensitive path metadata | `trace-to-skill sensitive-audit . --format json` before runs, `trace-to-skill codex-report ./runs` after incidents |
44
+ | LSP auto-detect readiness | Codex users want language-aware navigation, diagnostics, references, rename, or install guidance before edits | language-server metadata | `trace-to-skill lsp-audit . --format json` |
43
45
  | Context compaction failures | `Error running remote compact task`, `context_length_exceeded`, compaction loops, `responses/compact` stream disconnects | `context_compaction` | `trace-to-skill analyze ./runs` |
44
46
  | Latest-turn drift | Codex answers an older prompt, repeats a previous response, redoes an already fixed task, forgets recent edits after compaction, or leaks raw tool payload text | `codex_latest_turn_drift` | `trace-to-skill codex-report ./runs` |
45
47
  | Session resume and state failures | `codex resume` picker freezes, large rollout JSONL, short `session_index.jsonl`, `Could not load archived chats`, `state_5.sqlite`, `thread_goals` | `codex_session_state` | `trace-to-skill codex-report ./runs` or `trace-to-skill session-audit ~/.codex --format json` |
@@ -82,6 +84,7 @@ npx trace-to-skill sensitive-audit . --format json
82
84
  - Redact tokens, API keys, emails, local home paths, customer data, and hidden Unicode before posting publicly.
83
85
  - For sensitive-file reports, attach only redacted excerpts and the file path/class, not the original credential material.
84
86
  - For preflight exclusion reports, attach `sensitive-audit` output and recommended exclude globs; it does not read file contents or follow symlink targets.
87
+ - For LSP readiness reports, attach `lsp-audit` output so maintainers can see detected languages, evidence files, missing server commands, and install hints without auto-installing tools.
85
88
 
86
89
  ## Related OpenAI/Codex Threads Used For Fixtures
87
90
 
package/docs/DISCOVERY.md CHANGED
@@ -47,6 +47,7 @@ This page is written for maintainers, search engines, package indexes, and AI re
47
47
  - Codex reports `You've hit your usage limit` even though `/status` or the usage dashboard shows quota left, or quota appears shared across accounts.
48
48
  - A Codex or agent trace reads, attaches, diffs, uploads, or indexes sensitive files such as `.env`, private keys, package auth files, cloud credentials, local databases, or production secret manifests.
49
49
  - A maintainer wants a filename/path-only preflight report for `.env`, private keys, package auth files, cloud credentials, local databases, signing files, and secret manifests before starting an AI agent.
50
+ - A maintainer wants Codex to use language-aware navigation, diagnostics, rename, or references, but does not know which LSP servers are installed on the current machine.
50
51
  - A repository has conflicting `AGENTS.md`, `CLAUDE.md`, Cursor, Copilot, or Gemini instructions.
51
52
  - A monorepo has nested `AGENTS.md` files, `@file.md` instruction includes, or invalid instruction-file encoding that makes Codex load the wrong policy.
52
53
  - A workflow wants to feed GitHub issue, PR, comment, discussion, check-run, or commit text into an agent but needs prompt-injection checks first.
@@ -79,6 +80,7 @@ npx trace-to-skill lint-agents .
79
80
  npx trace-to-skill guard-github-event "$GITHUB_EVENT_PATH"
80
81
  npx trace-to-skill session-audit ~/.codex --format json
81
82
  npx trace-to-skill sensitive-audit . --format json
83
+ npx trace-to-skill lsp-audit . --format json
82
84
  npx trace-to-skill config-audit ~/.codex --format json
83
85
  npx trace-to-skill plugin-audit ~/.codex --app /Applications/Codex.app --format json
84
86
  npx trace-to-skill diagnostics-bundle ~/.codex --output codex-diagnostics
@@ -97,6 +99,7 @@ npx trace-to-skill suggest ./runs --target agents-md
97
99
  - `trace-to-skill demo --format json`
98
100
  - `trace-to-skill redact --format json`
99
101
  - `trace-to-skill sensitive-audit --format json`
102
+ - `trace-to-skill lsp-audit --format json`
100
103
  - `trace-to-skill scorecard --format json`
101
104
  - `trace-to-skill session-audit --format json`
102
105
  - `trace-to-skill config-audit --format json`
@@ -117,6 +120,7 @@ npx trace-to-skill suggest ./runs --target agents-md
117
120
  - `schemas/doctor-result.schema.json`
118
121
  - `schemas/redact-result.schema.json`
119
122
  - `schemas/sensitive-audit-result.schema.json`
123
+ - `schemas/lsp-audit-result.schema.json`
120
124
  - `schemas/scorecard-result.schema.json`
121
125
  - `schemas/oss-brief-result.schema.json`
122
126
  - `schemas/patch-guard-result.schema.json`
@@ -128,7 +132,7 @@ npx trace-to-skill suggest ./runs --target agents-md
128
132
 
129
133
  ## Related Keywords
130
134
 
131
- Codex, OpenAI Codex, Codex issue report, OpenAI triage, Codex diagnostics bundle, privacy-preserving support bundle, sensitive path audit, sensitive-audit, agentignore, .agentignore, codexignore, .codexignore, aiexclude, .aiexclude, exclude sensitive files, Codex plugin audit, Computer Use unavailable, Codex Browser plugin unavailable, bundled marketplace mismatch, generated runtime marketplace, plugin manifest missing, CODEX_HOME mismatch, Codex CLI, Codex sandbox, Windows sandbox, Codex config audit, Codex config.toml, Codex global state, .codex-global-state.json, Codex Speed reset, Codex Fast resets to Standard, service_tier fast, default-service-tier priority, has-user-changed-service-tier, Codex Preferences unable to save, configVersionConflict, default_permissions missing profile, Codex Windows helper path, Codex WindowsApps, Codex rg Access Denied, Codex ripgrep, CodexSandboxUsers, LocalCache Local OpenAI Codex bin, node_repl spawn setup refresh, Codex approval friction, Approve for this session, Allow for this session, approval_policy never, MCP approval prompts, default_tools_approval_mode, Playwright MCP approvals, Chrome DevTools MCP approvals, Codex auth, token_exchange_failed, Codex connectivity, stream disconnected, Codex connector auth cache, Codex Apps stale link, codex_apps_tools, codex_app_directory, Reauthentication required, refresh token revoked, isAccessible false, link_ connector, Codex deeplink, Codex OAuth callback, codex://oauth_callback, Unable to find Electron app, Error launching app, type=click&tag, AppUserModelID, DelegateExecute, codex app path, Codex remote compact, responses/compact, /compact timeout, tcp_user_timeout, stream_idle_timeout_ms, Codex remote control, Codex mobile, Waiting for desktop, Directory Unavailable, stale listener, Codex terminal output, Codex scrollback, Codex terminal history, terminal output integrity, missing_count, missing_examples, tmux_scrollback_repro.sh, line_truncation_repro.md, Windows Terminal scrollback, transcript mode, Codex subagent lifecycle, stale subagents, close_agent, thread_spawn_edges, agent thread limit reached, agents.max_threads, list_agents, /agents, subagent child threads, fork_context, unbiased review, subagent recent conversations, Codex MCP runtime, MCP unsupported call, mcp__node_repl__js, MCP namespace serverName, MCP Transport closed, StdioServerTransport, Codex plugin runtime, Computer Use native pipe path unavailable, SKY_CUA_NATIVE_PIPE_DIRECTORY, Plugin loading failed, plugin/list unknown variant vertical, Codex Browser plugin, Codex Computer Use, Codex Chrome plugin, stale plugin cache, codex plugin add, Codex file tree, Toggle File Tree, missing folder icon, floating file panel stale, file preview fails, workspace navigation, Codex latest-turn drift, Codex replies to earlier messages, stale prompt response, ignoring latest message, previous prompt, auto compaction forgets edits, raw tool payload leak, write_stdin session_id, Codex latency regression, GPT-5.5 Fast slow, Codex too slow, thinking stalls, Codex thinking hang, Codex stuck thinking, Codex Working stuck, no streamed follow-up, first response_item delayed, responses_http time.idle, model_client.stream_responses_api, turn/start, task_started, Codex Copy as Markdown missing, Codex Pasted text.txt, Codex long pasted prompt attachment, Codex clipboard export, Codex paste as text, Codex generated attachment preview edit, Codex goal ignores attachment, pasted-text-attachments.json, fileAttachments promptRaw composer.getText, pre-first-token latency, search/read latency, runtime scheduling latency, Codex resume, Codex session audit, Codex history audit, Codex session index, session_index.jsonl, Codex session state, rollout JSONL, logs_2.sqlite, codex-tui.log, sandbox.log, thread_goals, state_5.sqlite, goals_1.sqlite, archived chats, Codex token burn, Codex usage evidence, Codex rate-limit evidence, Codex usage drain, Codex usage reset, Codex weekly reset drift, reset_at changed, deterministic reset, rate limit reset, write_stdin polling, cached input tokens, compaction tax, background process polling, Codex resource leak, Codex performance, high CPU, high GPU, shell-snapshot, Code Helper Renderer, Codex tool-call integrity, apply_patch, apply_patch Add File overwrite, patch guard, guard-patch, Add File symlink, tool_call_id, failed revert changes, patch safety, Codex quota, usage limit, rate limits, sensitive files, Codex privacy, .env, private keys, credential files, AGENTS.md, SKILL.md, Claude Code, Cursor, Copilot coding agent, Gemini CLI, MCP, Model Context Protocol, prompt injection, agent evals, AI code review, open-source maintainers, trace redaction, SARIF, GitHub Actions.
135
+ Codex, OpenAI Codex, Codex issue report, OpenAI triage, Codex LSP, Codex language server, lsp-audit, language-server readiness, typescript-language-server, pyright-langserver, gopls, rust-analyzer, sourcekit-lsp, clangd, Codex diagnostics bundle, privacy-preserving support bundle, sensitive path audit, sensitive-audit, agentignore, .agentignore, codexignore, .codexignore, aiexclude, .aiexclude, exclude sensitive files, Codex plugin audit, Computer Use unavailable, Codex Browser plugin unavailable, bundled marketplace mismatch, generated runtime marketplace, plugin manifest missing, CODEX_HOME mismatch, Codex CLI, Codex sandbox, Windows sandbox, Codex config audit, Codex config.toml, Codex global state, .codex-global-state.json, Codex Speed reset, Codex Fast resets to Standard, service_tier fast, default-service-tier priority, has-user-changed-service-tier, Codex Preferences unable to save, configVersionConflict, default_permissions missing profile, Codex Windows helper path, Codex WindowsApps, Codex rg Access Denied, Codex ripgrep, CodexSandboxUsers, LocalCache Local OpenAI Codex bin, node_repl spawn setup refresh, Codex approval friction, Approve for this session, Allow for this session, approval_policy never, MCP approval prompts, default_tools_approval_mode, Playwright MCP approvals, Chrome DevTools MCP approvals, Codex auth, token_exchange_failed, Codex connectivity, stream disconnected, Codex connector auth cache, Codex Apps stale link, codex_apps_tools, codex_app_directory, Reauthentication required, refresh token revoked, isAccessible false, link_ connector, Codex deeplink, Codex OAuth callback, codex://oauth_callback, Unable to find Electron app, Error launching app, type=click&tag, AppUserModelID, DelegateExecute, codex app path, Codex remote compact, responses/compact, /compact timeout, tcp_user_timeout, stream_idle_timeout_ms, Codex remote control, Codex mobile, Waiting for desktop, Directory Unavailable, stale listener, Codex terminal output, Codex scrollback, Codex terminal history, terminal output integrity, missing_count, missing_examples, tmux_scrollback_repro.sh, line_truncation_repro.md, Windows Terminal scrollback, transcript mode, Codex subagent lifecycle, stale subagents, close_agent, thread_spawn_edges, agent thread limit reached, agents.max_threads, list_agents, /agents, subagent child threads, fork_context, unbiased review, subagent recent conversations, Codex MCP runtime, MCP unsupported call, mcp__node_repl__js, MCP namespace serverName, MCP Transport closed, StdioServerTransport, Codex plugin runtime, Computer Use native pipe path unavailable, SKY_CUA_NATIVE_PIPE_DIRECTORY, Plugin loading failed, plugin/list unknown variant vertical, Codex Browser plugin, Codex Computer Use, Codex Chrome plugin, stale plugin cache, codex plugin add, Codex file tree, Toggle File Tree, missing folder icon, floating file panel stale, file preview fails, workspace navigation, Codex latest-turn drift, Codex replies to earlier messages, stale prompt response, ignoring latest message, previous prompt, auto compaction forgets edits, raw tool payload leak, write_stdin session_id, Codex latency regression, GPT-5.5 Fast slow, Codex too slow, thinking stalls, Codex thinking hang, Codex stuck thinking, Codex Working stuck, no streamed follow-up, first response_item delayed, responses_http time.idle, model_client.stream_responses_api, turn/start, task_started, Codex Copy as Markdown missing, Codex Pasted text.txt, Codex long pasted prompt attachment, Codex clipboard export, Codex paste as text, Codex generated attachment preview edit, Codex goal ignores attachment, pasted-text-attachments.json, fileAttachments promptRaw composer.getText, pre-first-token latency, search/read latency, runtime scheduling latency, Codex resume, Codex session audit, Codex history audit, Codex session index, session_index.jsonl, Codex session state, rollout JSONL, logs_2.sqlite, codex-tui.log, sandbox.log, thread_goals, state_5.sqlite, goals_1.sqlite, archived chats, Codex token burn, Codex usage evidence, Codex rate-limit evidence, Codex usage drain, Codex usage reset, Codex weekly reset drift, reset_at changed, deterministic reset, rate limit reset, write_stdin polling, cached input tokens, compaction tax, background process polling, Codex resource leak, Codex performance, high CPU, high GPU, shell-snapshot, Code Helper Renderer, Codex tool-call integrity, apply_patch, apply_patch Add File overwrite, patch guard, guard-patch, Add File symlink, tool_call_id, failed revert changes, patch safety, Codex quota, usage limit, rate limits, sensitive files, Codex privacy, .env, private keys, credential files, AGENTS.md, SKILL.md, Claude Code, Cursor, Copilot coding agent, Gemini CLI, MCP, Model Context Protocol, prompt injection, agent evals, AI code review, open-source maintainers, trace redaction, SARIF, GitHub Actions.
132
136
 
133
137
  ## Non-Goals
134
138
 
@@ -3,7 +3,7 @@
3
3
  | Field | Value |
4
4
  | --- | --- |
5
5
  | Repository | https://github.com/grnbtqdbyx-create/trace-to-skill |
6
- | Package | trace-to-skill@0.1.68 |
6
+ | Package | trace-to-skill@0.1.69 |
7
7
  | License | Apache-2.0 |
8
8
  | Codex readiness | ready (100/100) |
9
9
  | Benchmark | pass, 33 cases |
@@ -27,7 +27,7 @@ API credits would power optional maintainer workflows on top of the local determ
27
27
  ## Evidence
28
28
 
29
29
  - Public repository: https://github.com/grnbtqdbyx-create/trace-to-skill
30
- - One-command package: npx trace-to-skill@0.1.68
30
+ - One-command package: npx trace-to-skill@0.1.69
31
31
  - Open-source license: Apache-2.0
32
32
  - Codex readiness doctor: ready, 100/100, 0 failed checks.
33
33
  - Public fixture benchmark: pass, 33 cases.
package/docs/USE_CASES.md CHANGED
@@ -21,6 +21,7 @@ npx trace-to-skill demo mcp-discovery-mismatch
21
21
  npx trace-to-skill demo terminal-output-integrity
22
22
  npx trace-to-skill demo subagent-lifecycle
23
23
  npx trace-to-skill sensitive-audit .
24
+ npx trace-to-skill lsp-audit .
24
25
  ```
25
26
 
26
27
  What it proves:
@@ -29,6 +30,7 @@ What it proves:
29
30
  - maintainers can inspect the output shape before sharing any private log
30
31
  - demos cover remote compact failures, Windows helper path failures, patch overwrite safety, approval friction, latency, Thinking hangs, clipboard/attachment regressions, deeplink/OAuth launch regressions, connector auth-cache regressions, MCP discovery/config-scope mismatches, terminal output/scrollback integrity, subagent lifecycle drift, token burn, sensitive files, and prompt injection
31
32
  - `sensitive-audit` scans filenames and paths before an agent run, without reading file contents, so teams can build `.agentignore`, `.aiexclude`, `.codexignore`, or sandbox permission profiles from a concrete repo report
33
+ - `lsp-audit` scans repo language signals and PATH availability so teams know which language servers are ready before asking Codex for symbol-aware edits
32
34
 
33
35
  See the generated demo output in [docs/DEMO.md](DEMO.md).
34
36
 
@@ -51,7 +53,7 @@ What it proves:
51
53
  Recommended CI surface:
52
54
 
53
55
  ```yaml
54
- - uses: grnbtqdbyx-create/trace-to-skill@v0.1.68
56
+ - uses: grnbtqdbyx-create/trace-to-skill@v0.1.69
55
57
  with:
56
58
  mode: all
57
59
  doctor-threshold: "85"
@@ -81,7 +83,25 @@ This checks:
81
83
 
82
84
  The goal is not to ban powerful tools. The goal is to make trust boundaries visible before an agent acts.
83
85
 
84
- ## 4. Sandbox And Permission Failure Triage
86
+ ## 4. Language-Server Readiness Before Agent Edits
87
+
88
+ Use this when a repo wants Codex to navigate definitions, references, diagnostics, or rename/refactor flows, but language-server setup differs across machines.
89
+
90
+ ```bash
91
+ npx trace-to-skill lsp-audit . --format json
92
+ npx trace-to-skill lsp-audit . --output lsp-readiness.md
93
+ ```
94
+
95
+ What it proves:
96
+
97
+ - which languages were detected from manifests and source files
98
+ - whether matching LSP commands such as `typescript-language-server`, `pyright-langserver`, `gopls`, `rust-analyzer`, `sourcekit-lsp`, `jdtls`, `clangd`, `ruby-lsp`, `intelephense`, or `csharp-ls` are on `PATH`
99
+ - exact install hints and evidence files to document in `AGENTS.md`, CI, devcontainers, or setup scripts
100
+ - a stable JSON shape that bots can use before proposing symbol-aware edits
101
+
102
+ It does not auto-install anything or grant new permissions; it is a readiness report.
103
+
104
+ ## 5. Sandbox And Permission Failure Triage
85
105
 
86
106
  Use this when Codex cannot start tools, apply patches, or write to the workspace because sandbox setup or permissions fail.
87
107
 
@@ -102,7 +122,7 @@ For Codex App reports where Speed resets from Fast to Standard after restart, in
102
122
 
103
123
  `diagnostics-bundle` combines the config, plugin, and session summaries into a metadata-only support folder with a manifest and README. Use it when OpenAI asks for more evidence but raw `config.toml`, SQLite state, rollout JSONL, and local logs should not be posted publicly.
104
124
 
105
- ## 5. Codex Auth And Connectivity Triage
125
+ ## 6. Codex Auth And Connectivity Triage
106
126
 
107
127
  Use this when Codex cannot log in, exchange an auth token, stream a response, or connect through a container, proxy, VPN, corporate CA, IPv6 network, or Cloudflare challenge.
108
128
 
@@ -112,7 +132,7 @@ npx trace-to-skill analyze ./runs --format json
112
132
 
113
133
  This catches signals such as `token_exchange_failed`, `auth.openai.com/oauth/token`, `codex_login::server`, `cf-mitigated: challenge`, missing `ca-certificates`, `update-ca-certificates`, `CODEX_CA_CERTIFICATE`, IPv6 fallback evidence, proxy/MITM TLS failures, and `stream disconnected before completion` on `chatgpt.com/backend-api/codex/responses`.
114
134
 
115
- ## 6. Codex Remote Compact Failure Triage
135
+ ## 7. Codex Remote Compact Failure Triage
116
136
 
117
137
  Use this when `/compact` or auto-compaction fails during a long Codex session and the user cannot continue without recreating context.
118
138
 
@@ -122,7 +142,7 @@ npx trace-to-skill codex-report ./runs --output openai-codex-compact-issue.md
122
142
 
123
143
  This catches signals such as `Error running remote compact task`, `timeout waiting for child process to exit`, `stream disconnected before completion`, `responses/compact`, `tcp_user_timeout`, `stream_idle_timeout_ms`, provider-id timeout workarounds, Azure provider config drift, and long-running tasks broken by failed compaction.
124
144
 
125
- ## 7. Codex Usage Evidence Packaging
145
+ ## 8. Codex Usage Evidence Packaging
126
146
 
127
147
  Use this when a Codex usage issue has scattered evidence across `/status`, dashboard notes, reset tables, and token totals.
128
148
 
@@ -133,7 +153,7 @@ npx trace-to-skill usage-evidence ./usage-notes.md --format json
133
153
 
134
154
  This turns Markdown polling tables, CSV-like rows, JSON/JSONL snapshots, `reset_at` values, usage-limit errors, and `Token usage: total=... cached` lines into a single report with reset drift, quota jumps, cached-input-heavy turns, and remaining-quota contradictions.
135
155
 
136
- ## 8. Codex Windows Helper Path Triage
156
+ ## 9. Codex Windows Helper Path Triage
137
157
 
138
158
  Use this when Codex Desktop on Windows discovers bundled tools or plugin helpers but cannot execute them from the integrated terminal, tool runner, Browser, Chrome, Computer Use, or node_repl path.
139
159
 
@@ -143,7 +163,7 @@ npx trace-to-skill codex-report ./runs --output openai-codex-windows-helper-issu
143
163
 
144
164
  This catches signals such as `Program 'rg.exe' failed to run`, `Access is denied`, `WindowsApps\OpenAI.Codex...\app\resources`, missing `%LOCALAPPDATA%\OpenAI\Codex\bin`, missing MSIX LocalCache helper bins, `CodexSandboxUsers` ACL/RX problems, `copyfile` failures from WindowsApps bundled plugin manifests, EFS/Application Protected attributes, `windows sandbox failed: spawn setup refresh`, `missing-helper-path`, and unavailable Browser/Chrome/Computer Use plugin helpers.
145
165
 
146
- ## 9. Codex Mobile And Remote-Control Route Health
166
+ ## 10. Codex Mobile And Remote-Control Route Health
147
167
 
148
168
  Use this when Codex mobile, SSH remote, or desktop remote-control says it is connected but commands do not reach the expected host, workspace, or app-server.
149
169
 
@@ -153,7 +173,7 @@ npx trace-to-skill analyze ./runs --format json
153
173
 
154
174
  This catches signals such as `Waiting for desktop`, `Directory: Unavailable`, stale `server_name` enrollment, stale remote-control listener, `127.0.0.1:14567`, missing cached helper files such as `codex-windows-sandbox-setup.exe` or `codex-command-runner.exe`, empty backend environments, stale Android session lists, and temporary recovery after re-pairing or listener restart.
155
175
 
156
- ## 10. Codex Terminal Output And Scrollback Integrity
176
+ ## 11. Codex Terminal Output And Scrollback Integrity
157
177
 
158
178
  Use this when Codex terminal output, streamed assistant text, or scrollback becomes untrustworthy even though raw logs, transcripts, or transaction views still contain the missing lines.
159
179
 
@@ -167,7 +187,7 @@ This catches signals such as Windows Terminal scrollback lines disappearing, str
167
187
 
168
188
  Include the Codex CLI/app/extension version, OS, shell, terminal emulator and version, WSL/SSH/tmux/Zellij state, model, whether streaming was active, exact scroll action, terminal dimensions and scrollback settings, first missing or duplicated line id, raw log/transcript proof, terminal capture, numbered-line harness output, control run, `/resume` or transcript recovery behavior, and whether another terminal or downgrade changes the result.
169
189
 
170
- ## 11. Codex Subagent Lifecycle And State Reconciliation
190
+ ## 12. Codex Subagent Lifecycle And State Reconciliation
171
191
 
172
192
  Use this when subagents appear completed, closed, stale, or interrupted but Codex cannot reconcile UI state, live handles, persisted spawn edges, parent discoverability, and active spawn quota.
173
193
 
@@ -181,7 +201,7 @@ This catches signals such as completed subagents remaining visible in the Subage
181
201
 
182
202
  Include Codex app/CLI/extension version, OS, surface, model, subscription/workspace, root thread id, subagent ids/nicknames/roles, spawn/close/list commands, `close_agent` results, `list_agents` or `/agents` output, `thread_spawn_edges` status counts, `agents.max_threads` or registry quota evidence, recent-list/sidebar behavior, child-thread archive/top-level status, last-progress or halt reason, MCP server state, compaction/resume timing, redacted UI evidence, restart/reload behavior, and whether stale agents are UI-only or still block spawns.
183
203
 
184
- ## 12. Codex MCP Runtime Triage
204
+ ## 13. Codex MCP Runtime Triage
185
205
 
186
206
  Use this when MCP tools are configured and visible, but Codex cannot actually call them at runtime.
187
207
 
@@ -192,7 +212,7 @@ npx trace-to-skill config-audit ~/.codex --format json
192
212
 
193
213
  This catches signals such as `user cancelled MCP tool call`, `request_user_input is not supported in exec mode`, `Approve app tool call?`, `tool_call_mcp_elicitation`, routed callable names like `mcp__node_repl__js` becoming `unsupported call`, deferred discovery dropping namespace or `serverName`, `tools/list` succeeding while Codex routing fails, and stdio transport lifecycle failures such as `Transport closed`, `stdin_end`, `stdin_close`, `transport_close`, or stderr backpressure.
194
214
 
195
- ## 13. Codex Resume And Session State Triage
215
+ ## 14. Codex Resume And Session State Triage
196
216
 
197
217
  Use this when long Codex sessions become difficult to resume, Desktop history rendering gets sluggish, or local state migrations break goals/projects/history.
198
218
 
@@ -209,7 +229,7 @@ This catches signals such as `codex resume` picker hangs, `codex resume <id>` wo
209
229
 
210
230
  For mixed resume, crash, config, plugin, or history issues, `diagnostics-bundle` writes the session, config, and plugin reports together with a checklist of files not to attach publicly.
211
231
 
212
- ## 14. Codex File Tree UI Evidence
232
+ ## 15. Codex File Tree UI Evidence
213
233
 
214
234
  Use this when Codex Desktop cannot reveal project files through the native file tree, folder icon, floating file panel, or built-in preview.
215
235
 
@@ -220,7 +240,7 @@ npx trace-to-skill codex-report ./runs --output openai-codex-issue.md
220
240
 
221
241
  This catches signals such as `View > Toggle File Tree` doing nothing, `Cmd+Shift+E` or `Ctrl+Shift+E` having no visible effect, the folder icon disappearing, the floating file panel showing stale or unclickable entries after add/rename/delete operations, and `.doc`, `.pdf`, or `.ppt` previews failing until restart.
222
242
 
223
- ## 15. Codex Token Burn Attribution
243
+ ## 16. Codex Token Burn Attribution
224
244
 
225
245
  Use this when Codex usage drains faster than expected and the trace needs to separate useful model work from orchestration overhead.
226
246
 
@@ -231,7 +251,7 @@ npx trace-to-skill codex-report ./runs --output openai-codex-issue.md
231
251
 
232
252
  This catches signals such as tokens `burning very fast`, usage dropping by visible percentages after one or two prompts, weekly allowance depletion, 5-hour usage reaching 0%, large `input` plus `cached input` totals, `write_stdin` empty polling, background commands repeatedly reporting no new output, idle app usage, compaction tax, retry/tool loops, and missing attribution between normal turns, compaction, background polling, subagents, and retries.
233
253
 
234
- ## 16. Usage Reset Drift Evidence
254
+ ## 17. Usage Reset Drift Evidence
235
255
 
236
256
  Use this when Codex reset timing changes unexpectedly or users lose the ability to plan paid usage.
237
257
 
@@ -242,7 +262,7 @@ npx trace-to-skill codex-report ./runs --output openai-codex-issue.md
242
262
 
243
263
  This catches signals such as weekly reset dates moving from one date to another, `reset_at` jumping after the first prompt, saved weekly usage being wiped or pushed into the next window, outage compensation resets changing the anchor, `/status` and dashboard disagreement, and requests for deterministic reset schedules or rollover of unused prior-window usage.
244
264
 
245
- ## 17. Quota And Usage-Limit Evidence
265
+ ## 18. Quota And Usage-Limit Evidence
246
266
 
247
267
  Use this when Codex blocks a prompt with a usage-limit message but another surface still shows remaining quota.
248
268
 
@@ -252,7 +272,7 @@ npx trace-to-skill analyze ./runs --format json
252
272
 
253
273
  This catches traces where `/status` or the usage page shows remaining 5h or weekly quota, accounts appear to share limits unexpectedly, a Team account inherits a Plus account's limit state, or quota reset times jump after logout/login.
254
274
 
255
- ## 18. Codex Resource Leak Evidence
275
+ ## 19. Codex Resource Leak Evidence
256
276
 
257
277
  Use this when Codex Desktop, the VS Code extension, renderer, app-server, GPU process, shell snapshot, or helper process keeps burning local resources after the useful work should be idle.
258
278
 
@@ -265,7 +285,7 @@ This catches signals such as high `Code Helper (Renderer)` or `Code Helper (Plug
265
285
 
266
286
  Include process names/PIDs, CPU/GPU/RSS samples over time, log-loop snippets, workspace Git-root state, animation/reduce-motion state, and whether closing the panel/app, killing exact PIDs, `git init`, rollback, or restart clears the leak.
267
287
 
268
- ## 19. Codex Thinking Hang Evidence
288
+ ## 20. Codex Thinking Hang Evidence
269
289
 
270
290
  Use this when Codex accepts a prompt, finishes a local tool call, or keeps a Responses stream open but the UI/CLI remains on Thinking or Working with no visible assistant follow-up.
271
291
 
@@ -279,7 +299,7 @@ This catches signals such as `turn/start`, `task_started`, a completed local too
279
299
 
280
300
  Include the Codex version, OS, model and reasoning/speed settings, turn or thread id, prompt timestamp, last successful tool output, first `response_item` timestamp, `responses_http` or websocket transport evidence, `time.busy` / `time.idle`, MCP/subagent state, stop/interrupt behavior, and whether a new thread or minimal config recovers.
281
301
 
282
- ## 20. Codex Clipboard And Pasted-Text Attachment Evidence
302
+ ## 21. Codex Clipboard And Pasted-Text Attachment Evidence
283
303
 
284
304
  Use this when copy/export, long pasted prompts, or generated `Pasted text.txt` attachments break Codex prompt, `/goal`, or support-report workflows.
285
305
 
@@ -293,7 +313,7 @@ This catches signals such as `Copy as Markdown` disappearing from the Copy menu,
293
313
 
294
314
  Include app version, OS, surface, exact copy menu items, source text size, paste action, visible editor text, generated attachment name/path/size, `pasted-text-attachments.json` or fileAttachments metadata, command path such as `/goal`, preview/edit/revert actions tried, clipboard payload format, and whether paste-as-text, opt-out, explicit file reference, or downgrade changes behavior.
295
315
 
296
- ## 21. Codex Deeplink And External Launch Evidence
316
+ ## 22. Codex Deeplink And External Launch Evidence
297
317
 
298
318
  Use this when OAuth callbacks, notification clicks, browser extension activation, mobile pairing, or CLI app-open commands fail to route back into Codex.
299
319
 
@@ -307,7 +327,7 @@ This catches signals such as `codex://oauth_callback?code=...` opening an Electr
307
327
 
308
328
  Include app/CLI/extension version, OS/build, install source, package id/path, affected surface, exact redacted URI shape, browser and connector/plugin name, error dialog text, whether the app was already running, AppX/MSIX evidence such as AppUserModelID and DelegateExecute, HKCU/HKCR `codex` keys, command-line arguments, repair/reinstall/re-register attempts, and whether manual `codex://test` or `Start-Process` reproduces.
309
329
 
310
- ## 22. Codex App Connector Auth Cache Evidence
330
+ ## 23. Codex App Connector Auth Cache Evidence
311
331
 
312
332
  Use this when Codex app connectors appear installed but keep stale auth or discovery metadata after a reauth-required response.
313
333
 
@@ -321,7 +341,7 @@ This catches signals such as `401: "Server returned 401: 'Reauthentication requi
321
341
 
322
342
  Include app/CLI version, OS, connector/plugin name and id, installed plugin root, exact tool name, redacted `codex_apps_tools` and `codex_app_directory` metadata, `link_*` id before/after reconnect, `isAccessible` state, restart/remove/re-add/cache-clear/sign-in attempts, ChatGPT app page state, and whether an external MCP workaround succeeds.
323
343
 
324
- ## 23. Codex MCP Discovery And Config Scope Evidence
344
+ ## 24. Codex MCP Discovery And Config Scope Evidence
325
345
 
326
346
  Use this when MCP servers work in Codex CLI or one config scope but are missing in VS Code, Desktop, WSL, remote sessions, project-local config, or an older conversation.
327
347
 
@@ -335,7 +355,7 @@ This catches signals such as `MCP servers not detected in Codex VS Code extensio
335
355
 
336
356
  Include app/CLI/extension version, OS, IDE, remote/WSL/SSH state, workspace root, effective `CODEX_HOME`, all config files considered (`~/.codex/config.toml`, project `.codex/config.toml`, `.vscode/mcp.json`, `.mcp.json`), redacted MCP sections, trust/profile/default-permissions state, `codex mcp list`, `codex mcp get <server>`, CLI-versus-Desktop/VS Code comparison, loaded config path/log lines, whether moving the same server to user-global config fixes it, and whether the current session exposes `mcp__*` tools.
337
357
 
338
- ## 24. Patch Overwrite Guard
358
+ ## 25. Patch Overwrite Guard
339
359
 
340
360
  Use this before applying a generated patch when you want create/update/delete semantics checked against the actual workspace.
341
361
 
@@ -352,7 +372,7 @@ For a public demo report:
352
372
  npx trace-to-skill demo patch-overwrite
353
373
  ```
354
374
 
355
- ## 25. Sensitive Path Preflight Before Agent Runs
375
+ ## 26. Sensitive Path Preflight Before Agent Runs
356
376
 
357
377
  Use this before giving an AI coding agent a repository.
358
378
 
@@ -365,7 +385,7 @@ This finds sensitive-looking paths such as `.env`, `.env.*`, `.npmrc`, `.pypirc`
365
385
 
366
386
  The output includes a stable JSON schema plus recommended exclude globs that can seed `.agentignore`, `.aiexclude`, `.codexignore`, local sandbox permission profiles, or team security review checklists. It is a preflight report, not a sandbox boundary.
367
387
 
368
- ## 26. OpenAI Codex Issue Report
388
+ ## 27. OpenAI Codex Issue Report
369
389
 
370
390
  Use this when you want to file or update an OpenAI/Codex issue with a concise, evidence-backed report instead of pasting a full transcript.
371
391
 
@@ -378,7 +398,7 @@ The report includes the likely Codex failure class, line-linked evidence, diagno
378
398
 
379
399
  For a cluster-to-command map of current Codex issue patterns, see [CODEX_ISSUE_MAP.md](CODEX_ISSUE_MAP.md).
380
400
 
381
- ## 27. Sensitive File Access Evidence
401
+ ## 28. Sensitive File Access Evidence
382
402
 
383
403
  Use this when a trace suggests an agent read, attached, uploaded, diffed, or indexed credential-bearing files.
384
404
 
@@ -391,7 +411,7 @@ This catches signals such as `.env`, `.env.production`, `.npmrc`, `.pypirc`, `.n
391
411
 
392
412
  Before publishing evidence, run `trace-to-skill redact` and attach only redacted excerpts plus the file path/class.
393
413
 
394
- ## 28. GitHub Context Guard
414
+ ## 29. GitHub Context Guard
395
415
 
396
416
  Use this before an agent reads untrusted GitHub text.
397
417
 
@@ -408,7 +428,7 @@ Use it when:
408
428
  - a bot asks Codex to triage untrusted user reports
409
429
  - logs or comments might contain instructions like "ignore previous instructions" or "print secrets"
410
430
 
411
- ## 29. Failed Agent Run To Reviewable Rule
431
+ ## 30. Failed Agent Run To Reviewable Rule
412
432
 
413
433
  Use this when a coding agent made a repeated workflow mistake.
414
434
 
@@ -426,7 +446,7 @@ Recommended maintainer loop:
426
446
  4. Copy only evidence-backed rules into the real policy file.
427
447
  5. Run `eval` or `scorecard` in CI so the same failure does not silently return.
428
448
 
429
- ## 30. Privacy-Preserving Adoption
449
+ ## 31. Privacy-Preserving Adoption
430
450
 
431
451
  Use this when you want public evidence without leaking private traces.
432
452
 
package/llms.txt CHANGED
@@ -39,6 +39,7 @@ Runtime: Node.js 20+
39
39
  - Codex quota and usage-limit mismatches where `/status` or the usage page shows remaining quota, accounts share limits unexpectedly, or 5h and weekly quotas move together
40
40
  - sensitive-file access in traces, including `.env`, private keys, package auth files, cloud credentials, local databases, and production secret manifests entering agent context
41
41
  - sensitive path preflight before agent runs via `sensitive-audit`, with filename/path-only detection and recommended excludes for `.agentignore`, `.aiexclude`, `.codexignore`, or sandbox profiles
42
+ - language-server readiness before agent edits via `lsp-audit`, with repo language detection, PATH checks, install hints, and evidence files for Codex LSP setup
42
43
  - hallucinated files and broad over-editing
43
44
  - conflicting `AGENTS.md`, `CLAUDE.md`, Cursor, Copilot, or Gemini instructions
44
45
  - stale path references, missing `@file.md` includes, nested `AGENTS.md` visibility gaps, invalid UTF-8, and oversized instruction files that can make Codex follow wrong or truncated guidance
@@ -89,6 +90,7 @@ npx trace-to-skill diagnostics-bundle ~/.codex --output codex-diagnostics
89
90
  npx trace-to-skill usage-evidence ./usage-notes.md --output usage-evidence.md
90
91
  npx trace-to-skill redact ./runs --output redacted-runs
91
92
  npx trace-to-skill sensitive-audit . --format json
93
+ npx trace-to-skill lsp-audit . --format json
92
94
  npx trace-to-skill analyze ./runs
93
95
  npx trace-to-skill codex-report ./runs --output openai-codex-issue.md
94
96
  npx trace-to-skill suggest ./runs --target agents-md
@@ -101,7 +103,7 @@ npx trace-to-skill init --comment --sarif
101
103
  ## GitHub Action
102
104
 
103
105
  ```yaml
104
- - uses: grnbtqdbyx-create/trace-to-skill@v0.1.68
106
+ - uses: grnbtqdbyx-create/trace-to-skill@v0.1.69
105
107
  with:
106
108
  mode: all
107
109
  doctor-threshold: "85"
@@ -118,6 +120,7 @@ npx trace-to-skill init --comment --sarif
118
120
  - Doctor JSON schema: https://github.com/grnbtqdbyx-create/trace-to-skill/blob/main/schemas/doctor-result.schema.json
119
121
  - Redaction JSON schema: https://github.com/grnbtqdbyx-create/trace-to-skill/blob/main/schemas/redact-result.schema.json
120
122
  - Sensitive path audit JSON schema: https://github.com/grnbtqdbyx-create/trace-to-skill/blob/main/schemas/sensitive-audit-result.schema.json
123
+ - LSP readiness audit JSON schema: https://github.com/grnbtqdbyx-create/trace-to-skill/blob/main/schemas/lsp-audit-result.schema.json
121
124
  - Scorecard JSON schema: https://github.com/grnbtqdbyx-create/trace-to-skill/blob/main/schemas/scorecard-result.schema.json
122
125
  - Patch guard JSON schema: https://github.com/grnbtqdbyx-create/trace-to-skill/blob/main/schemas/patch-guard-result.schema.json
123
126
  - Config audit JSON schema: https://github.com/grnbtqdbyx-create/trace-to-skill/blob/main/schemas/config-audit-result.schema.json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trace-to-skill",
3
- "version": "0.1.68",
3
+ "version": "0.1.69",
4
4
  "description": "Turn failed AI coding-agent runs into reusable AGENTS.md rules, SKILL.md files, and eval evidence.",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",
@@ -41,7 +41,7 @@
41
41
  "build": "tsc -p tsconfig.json",
42
42
  "clean": "rm -rf dist coverage",
43
43
  "test": "npm run build && node --test dist/tests/*.test.js",
44
- "check": "npm run test && node dist/src/cli.js doctor . --format json > /tmp/trace-to-skill-doctor.json && node dist/src/cli.js lint-agents . --format json > /tmp/trace-to-skill-agents-lint.json && node dist/src/cli.js analyze fixtures --format json > /tmp/trace-to-skill-smoke.json && node dist/src/cli.js usage-evidence fixtures --format json > /tmp/trace-to-skill-usage-evidence.json && node dist/src/cli.js sensitive-audit . --format json > /tmp/trace-to-skill-sensitive-audit.json && node dist/src/cli.js suggest fixtures --target agents-md > /tmp/trace-to-skill-suggest.md && node dist/src/cli.js demo --format json > /tmp/trace-to-skill-demo.json && node dist/src/cli.js benchmark --format json > /tmp/trace-to-skill-benchmark.json && node dist/src/cli.js scorecard . --format json > /tmp/trace-to-skill-scorecard.json && node dist/src/cli.js oss-brief . --format json > /tmp/trace-to-skill-oss-brief.json",
44
+ "check": "npm run test && node dist/src/cli.js doctor . --format json > /tmp/trace-to-skill-doctor.json && node dist/src/cli.js lint-agents . --format json > /tmp/trace-to-skill-agents-lint.json && node dist/src/cli.js analyze fixtures --format json > /tmp/trace-to-skill-smoke.json && node dist/src/cli.js usage-evidence fixtures --format json > /tmp/trace-to-skill-usage-evidence.json && node dist/src/cli.js sensitive-audit . --format json > /tmp/trace-to-skill-sensitive-audit.json && node dist/src/cli.js lsp-audit . --format json > /tmp/trace-to-skill-lsp-audit.json && node dist/src/cli.js suggest fixtures --target agents-md > /tmp/trace-to-skill-suggest.md && node dist/src/cli.js demo --format json > /tmp/trace-to-skill-demo.json && node dist/src/cli.js benchmark --format json > /tmp/trace-to-skill-benchmark.json && node dist/src/cli.js scorecard . --format json > /tmp/trace-to-skill-scorecard.json && node dist/src/cli.js oss-brief . --format json > /tmp/trace-to-skill-oss-brief.json",
45
45
  "prepack": "npm run build",
46
46
  "prepare": "npm run build"
47
47
  },
@@ -157,7 +157,12 @@
157
157
  "aiexclude",
158
158
  "sensitive-audit",
159
159
  "agent-privacy",
160
- "context-privacy"
160
+ "context-privacy",
161
+ "lsp",
162
+ "language-server",
163
+ "lsp-audit",
164
+ "codex-lsp",
165
+ "agent-lsp"
161
166
  ],
162
167
  "author": "Ogün <https://github.com/grnbtqdbyx-create>",
163
168
  "license": "Apache-2.0",
@@ -0,0 +1,105 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/grnbtqdbyx-create/trace-to-skill/schemas/lsp-audit-result.schema.json",
4
+ "title": "trace-to-skill LSP readiness audit result",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["generatedAt", "root", "status", "summary", "languages", "recommendedInstalls"],
8
+ "properties": {
9
+ "generatedAt": {
10
+ "type": "string",
11
+ "format": "date-time"
12
+ },
13
+ "root": {
14
+ "type": "string"
15
+ },
16
+ "status": {
17
+ "type": "string",
18
+ "enum": ["pass", "warn", "fail"]
19
+ },
20
+ "summary": {
21
+ "$ref": "#/$defs/summary"
22
+ },
23
+ "languages": {
24
+ "type": "array",
25
+ "items": {
26
+ "$ref": "#/$defs/language"
27
+ }
28
+ },
29
+ "recommendedInstalls": {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "string"
33
+ }
34
+ }
35
+ },
36
+ "$defs": {
37
+ "summary": {
38
+ "type": "object",
39
+ "additionalProperties": false,
40
+ "required": ["detectedLanguages", "installedServers", "missingServers", "scannedFiles"],
41
+ "properties": {
42
+ "detectedLanguages": {
43
+ "type": "integer",
44
+ "minimum": 0
45
+ },
46
+ "installedServers": {
47
+ "type": "integer",
48
+ "minimum": 0
49
+ },
50
+ "missingServers": {
51
+ "type": "integer",
52
+ "minimum": 0
53
+ },
54
+ "scannedFiles": {
55
+ "type": "integer",
56
+ "minimum": 0
57
+ }
58
+ }
59
+ },
60
+ "language": {
61
+ "type": "object",
62
+ "additionalProperties": false,
63
+ "required": ["id", "name", "detected", "evidence", "server"],
64
+ "properties": {
65
+ "id": {
66
+ "type": "string"
67
+ },
68
+ "name": {
69
+ "type": "string"
70
+ },
71
+ "detected": {
72
+ "type": "boolean"
73
+ },
74
+ "evidence": {
75
+ "type": "array",
76
+ "items": {
77
+ "type": "string"
78
+ }
79
+ },
80
+ "server": {
81
+ "$ref": "#/$defs/server"
82
+ }
83
+ }
84
+ },
85
+ "server": {
86
+ "type": "object",
87
+ "additionalProperties": false,
88
+ "required": ["command", "installed", "install", "purpose"],
89
+ "properties": {
90
+ "command": {
91
+ "type": "string"
92
+ },
93
+ "installed": {
94
+ "type": "boolean"
95
+ },
96
+ "install": {
97
+ "type": "string"
98
+ },
99
+ "purpose": {
100
+ "type": "string"
101
+ }
102
+ }
103
+ }
104
+ }
105
+ }