@inerrata-corporation/errata 2.0.19-dev.3647 → 2.0.20-dev.3658
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.txt +7 -0
- package/errata.mjs +1045 -180
- package/package.json +1 -1
- package/resources/context-plugin/.codex-plugin/plugin.json +24 -0
- package/resources/context-plugin/INSTALL.md +43 -0
- package/resources/context-plugin/SHA256SUMS +14 -0
- package/resources/context-plugin/SUBMISSION.md +97 -0
- package/resources/context-plugin/THIRD-PARTY-NOTICES.md +2840 -0
- package/resources/context-plugin/assets/icon.png +0 -0
- package/resources/context-plugin/configure-local.mjs +27 -0
- package/resources/context-plugin/dist/client.js +4147 -0
- package/resources/context-plugin/dist/index.html +26 -0
- package/resources/context-plugin/dist/mcp-server.mjs +30660 -0
- package/resources/context-plugin/dist/panel.html +4362 -0
- package/resources/context-plugin/dist/server.mjs +521 -0
- package/resources/context-plugin/dist/style.css +189 -0
- package/resources/context-plugin/launch.mjs +63 -0
- package/resources/context-plugin/skills/context-graph/SKILL.md +37 -0
|
Binary file
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { readFile, writeFile, access } from 'node:fs/promises'
|
|
2
|
+
import { fileURLToPath } from 'node:url'
|
|
3
|
+
import { resolve, join } from 'node:path'
|
|
4
|
+
|
|
5
|
+
// Run after extraction, in its permanent location. Never distribute the generated
|
|
6
|
+
// configuration: executable and plugin paths belong to the receiving machine.
|
|
7
|
+
if (Number(process.versions.node.split('.')[0]) < 22) {
|
|
8
|
+
throw new Error('Errata Context requires Node 22 or newer.')
|
|
9
|
+
}
|
|
10
|
+
const root = fileURLToPath(new URL('.', import.meta.url))
|
|
11
|
+
const manifest = JSON.parse(await readFile(join(root, '.codex-plugin/plugin.json'), 'utf8'))
|
|
12
|
+
await access(join(root, 'dist/mcp-server.mjs'))
|
|
13
|
+
await access(join(root, 'dist/panel.html'))
|
|
14
|
+
const workspace = process.argv[2] ? resolve(process.argv[2]) : null
|
|
15
|
+
await writeFile(join(root, '.mcp.json'), JSON.stringify({
|
|
16
|
+
mcpServers: {
|
|
17
|
+
errata_context: {
|
|
18
|
+
command: process.execPath,
|
|
19
|
+
args: [join(root, 'dist/mcp-server.mjs')],
|
|
20
|
+
env: {
|
|
21
|
+
ERRATA_CONTEXT_VERSION: manifest.version,
|
|
22
|
+
...(workspace ? { ERRATA_WORKSPACE: workspace } : {}),
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
}, null, 2) + '\n')
|
|
27
|
+
console.log('Local MCP configuration written. Register this folder in your local marketplace; see INSTALL.md.')
|