weavatrix-seo 0.6.1
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/LICENSE +21 -0
- package/README.md +24 -0
- package/bin/native/darwin-arm64/weavatrix-seo +0 -0
- package/bin/native/darwin-x64/weavatrix-seo +0 -0
- package/bin/native/linux-arm64/weavatrix-seo +0 -0
- package/bin/native/linux-x64/weavatrix-seo +0 -0
- package/bin/native/win32-arm64/weavatrix-seo.exe +0 -0
- package/bin/native/win32-x64/weavatrix-seo.exe +0 -0
- package/bin/resolve-binary.mjs +41 -0
- package/bin/run-native.mjs +22 -0
- package/bin/weavatrix-seo-mcp.mjs +4 -0
- package/bin/weavatrix-seo.mjs +4 -0
- package/package.json +36 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Sergii Ziborov
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# weavatrix-seo
|
|
2
|
+
|
|
3
|
+
Native [Weavatrix SEO](https://github.com/Weavatrix/weavatrix-seo) CLI and MCP host.
|
|
4
|
+
|
|
5
|
+
This package is a zero-dependency Node launcher. It contains prebuilt `weavatrix-seo` binaries for win32, darwin, and linux on x64 and arm64. Installation does not compile, download, or run lifecycle scripts.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g weavatrix-seo
|
|
9
|
+
weavatrix-seo --version
|
|
10
|
+
weavatrix-seo audit --site https://example.com --json
|
|
11
|
+
weavatrix-seo-mcp --allow-root PATH
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
`weavatrix-seo-mcp` is the same native binary with `mcp` as the first argument.
|
|
15
|
+
|
|
16
|
+
Rust install:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
cargo install weavatrix-seo-cli --locked
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The engine stays read-only. Missing evidence is `unmeasured`, never green.
|
|
23
|
+
|
|
24
|
+
MIT. See [LICENSE](LICENSE).
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// Resolves the platform-specific Weavatrix SEO binary bundled in the universal
|
|
2
|
+
// npm package. Pure Node: built-ins only, no install scripts and no network.
|
|
3
|
+
import { existsSync } from 'node:fs'
|
|
4
|
+
import { dirname, join } from 'node:path'
|
|
5
|
+
import { fileURLToPath } from 'node:url'
|
|
6
|
+
|
|
7
|
+
const BUNDLED_BINARIES = {
|
|
8
|
+
'win32 x64': ['win32-x64', 'weavatrix-seo.exe'],
|
|
9
|
+
'win32 arm64': ['win32-arm64', 'weavatrix-seo.exe'],
|
|
10
|
+
'darwin x64': ['darwin-x64', 'weavatrix-seo'],
|
|
11
|
+
'darwin arm64': ['darwin-arm64', 'weavatrix-seo'],
|
|
12
|
+
'linux x64': ['linux-x64', 'weavatrix-seo'],
|
|
13
|
+
'linux arm64': ['linux-arm64', 'weavatrix-seo'],
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function resolveBinary() {
|
|
17
|
+
const key = `${process.platform} ${process.arch}`
|
|
18
|
+
const entry = BUNDLED_BINARIES[key]
|
|
19
|
+
if (!entry) {
|
|
20
|
+
fail(
|
|
21
|
+
`Unsupported platform: ${key}.`,
|
|
22
|
+
'Prebuilt binaries cover win32/darwin/linux on x64 and arm64.',
|
|
23
|
+
'On other platforms build https://github.com/Weavatrix/weavatrix-seo from source.',
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
const [directory, binaryName] = entry
|
|
27
|
+
const binary = join(dirname(fileURLToPath(import.meta.url)), 'native', directory, binaryName)
|
|
28
|
+
if (!existsSync(binary)) {
|
|
29
|
+
fail(
|
|
30
|
+
`The bundled native executable for ${key} is missing.`,
|
|
31
|
+
'The installed package is incomplete; reinstall weavatrix-seo,',
|
|
32
|
+
'or build https://github.com/Weavatrix/weavatrix-seo from source.',
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
return binary
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function fail(...lines) {
|
|
39
|
+
for (const line of lines) console.error(`weavatrix-seo: ${line}`)
|
|
40
|
+
process.exit(1)
|
|
41
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { spawn } from 'node:child_process'
|
|
2
|
+
import { resolveBinary } from './resolve-binary.mjs'
|
|
3
|
+
|
|
4
|
+
export function runNative(command, label) {
|
|
5
|
+
const binary = resolveBinary()
|
|
6
|
+
const args = command ? [command, ...process.argv.slice(2)] : process.argv.slice(2)
|
|
7
|
+
if (['darwin', 'linux'].includes(process.platform) && typeof process.execve === 'function') {
|
|
8
|
+
process.execve(binary, [binary, ...args], process.env)
|
|
9
|
+
}
|
|
10
|
+
const child = spawn(binary, args, { stdio: 'inherit', windowsHide: true })
|
|
11
|
+
child.on('error', (error) => {
|
|
12
|
+
console.error(`${label}: failed to start native binary: ${error.message}`)
|
|
13
|
+
process.exit(1)
|
|
14
|
+
})
|
|
15
|
+
child.on('exit', (code, signal) => {
|
|
16
|
+
if (signal) process.kill(process.pid, signal)
|
|
17
|
+
process.exit(code ?? 1)
|
|
18
|
+
})
|
|
19
|
+
for (const signal of ['SIGINT', 'SIGTERM']) {
|
|
20
|
+
process.on(signal, () => child.kill(signal))
|
|
21
|
+
}
|
|
22
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "weavatrix-seo",
|
|
3
|
+
"version": "0.6.1",
|
|
4
|
+
"description": "Native Weavatrix SEO CLI and MCP host: Search Evidence Graph audits, plans, and retrieval for code-driven websites.",
|
|
5
|
+
"author": "Sergii Ziborov <sergii.ziborov@gmail.com>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://weavatrix.com",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/Weavatrix/weavatrix-seo.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/Weavatrix/weavatrix-seo/issues"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=18"
|
|
18
|
+
},
|
|
19
|
+
"bin": {
|
|
20
|
+
"weavatrix-seo": "bin/weavatrix-seo.mjs",
|
|
21
|
+
"weavatrix-seo-mcp": "bin/weavatrix-seo-mcp.mjs"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"bin",
|
|
25
|
+
"README.md",
|
|
26
|
+
"LICENSE"
|
|
27
|
+
],
|
|
28
|
+
"keywords": [
|
|
29
|
+
"seo",
|
|
30
|
+
"mcp",
|
|
31
|
+
"model-context-protocol",
|
|
32
|
+
"search-evidence",
|
|
33
|
+
"weavatrix",
|
|
34
|
+
"rust"
|
|
35
|
+
]
|
|
36
|
+
}
|