@octocodeai/freellama-mcp-server 0.7.0 → 0.10.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.
- package/CONFIGURATION.md +11 -3
- package/DEVELOPING.md +6 -6
- package/README.md +267 -403
- package/dist/index.js +7186 -1601
- package/dist/research/bash-agent.js +1504 -71
- package/dist/research/coder-agent.js +4677 -0
- package/dist/research/github-agent.js +2932 -0
- package/dist/research/octocode-agent.js +1416 -116
- package/docs/ARCHITECTURE.md +101 -45
- package/docs/BUILD_AND_NOTES.md +31 -0
- package/docs/CLI.md +76 -27
- package/docs/COMPARISON.md +40 -0
- package/docs/CPU_GPU_ROUTING.md +127 -25
- package/docs/DEFERRED_JOBS.md +79 -0
- package/docs/FEATURES.md +303 -0
- package/docs/LOCAL_MODELS.md +190 -0
- package/docs/MODEL_FORMS_AND_RESULTS.md +55 -0
- package/docs/MODEL_INTROSPECTION.md +128 -0
- package/docs/MODEL_SELECTION.md +75 -23
- package/docs/MONITORING.md +115 -33
- package/docs/PRODUCTION.md +74 -11
- package/docs/README.md +11 -6
- package/docs/SCOPES_AND_WARMING.md +55 -7
- package/docs/TESTING.md +24 -2
- package/docs/TUNING.md +86 -0
- package/docs/cookbooks/README.md +22 -0
- package/docs/cookbooks/batch-text.md +19 -0
- package/docs/cookbooks/classify.md +25 -0
- package/docs/cookbooks/coding.md +17 -0
- package/docs/cookbooks/duplicates.md +17 -0
- package/docs/cookbooks/find-code.md +21 -0
- package/docs/cookbooks/image-recognition.md +15 -0
- package/docs/cookbooks/image-search.md +13 -0
- package/docs/cookbooks/jobs.md +60 -0
- package/docs/cookbooks/memory-and-caching.md +31 -0
- package/docs/cookbooks/ocr.md +17 -0
- package/docs/cookbooks/research-agent.md +27 -0
- package/docs/cookbooks/speech-to-text.md +19 -0
- package/docs/cookbooks/sweep.md +66 -0
- package/docs/cookbooks/text-to-speech.md +15 -0
- package/docs/octocode/GITHUB.md +30 -0
- package/docs/octocode/LOCAL.md +29 -0
- package/native/index.d.ts +0 -11
- package/native/index.js +18 -34
- package/package.json +6 -9
package/native/index.js
CHANGED
|
@@ -6,40 +6,24 @@ const path = require("node:path");
|
|
|
6
6
|
const { createRequire } = require("node:module");
|
|
7
7
|
const requireFromHere = createRequire(__filename);
|
|
8
8
|
|
|
9
|
-
// napi-rs filenames: `freellama.<platform>-<arch>[-<abi>].node`.
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
9
|
+
// napi-rs filenames: `freellama.<platform>-<arch>[-<abi>].node`. Linux ships glibc builds, Windows
|
|
10
|
+
// MSVC builds; macOS has no ABI suffix.
|
|
11
|
+
const ABI_SUFFIX = { linux: "-gnu", win32: "-msvc" }[process.platform] ?? "";
|
|
12
|
+
const id = `${process.platform}-${process.arch}${ABI_SUFFIX}`;
|
|
13
|
+
const localAddon = path.join(__dirname, `freellama.${id}.node`);
|
|
14
|
+
const packageName = `@octocodeai/freellama-native-${id}`;
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const packageName = `@octocodeai/freellama-native-${id}`;
|
|
30
|
-
try {
|
|
31
|
-
module.exports = requireFromHere(packageName);
|
|
32
|
-
return;
|
|
33
|
-
} catch (error) {
|
|
34
|
-
failures.push(`${packageName}: ${error?.message ?? error}`);
|
|
35
|
-
}
|
|
16
|
+
if (existsSync(localAddon)) {
|
|
17
|
+
module.exports = require(localAddon);
|
|
18
|
+
} else {
|
|
19
|
+
try {
|
|
20
|
+
module.exports = requireFromHere(packageName);
|
|
21
|
+
} catch (error) {
|
|
22
|
+
throw new Error(
|
|
23
|
+
`freellama: no usable native addon for ${process.platform}-${process.arch}.\n` +
|
|
24
|
+
`Tried ${localAddon} and the optional package ${packageName}.\n` +
|
|
25
|
+
"Reinstall without --omit=optional. From a source checkout, run `yarn build:native`.\n" +
|
|
26
|
+
`Load failure: ${error?.message ?? error}`,
|
|
27
|
+
);
|
|
36
28
|
}
|
|
37
|
-
throw new Error(
|
|
38
|
-
`freellama: no usable native addon for ${process.platform}-${process.arch}.\n` +
|
|
39
|
-
`Tried local development artifacts and optional packages: ${candidates.map((id) => `@octocodeai/freellama-native-${id}`).join(", ")}.\n` +
|
|
40
|
-
"Reinstall without --omit=optional. From a source checkout, run `yarn build:native`.\n" +
|
|
41
|
-
`Load failures:\n ${failures.join("\n ")}`,
|
|
42
|
-
);
|
|
43
29
|
}
|
|
44
|
-
|
|
45
|
-
module.exports = require(`./freellama.${found}.node`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octocodeai/freellama-mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "MCP server exposing FreeLlama core as tools, via native NAPI bindings into packages/rust-core.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -50,14 +50,11 @@
|
|
|
50
50
|
"zod": "^4.6.7"
|
|
51
51
|
},
|
|
52
52
|
"optionalDependencies": {
|
|
53
|
-
"@octocodeai/freellama-native-darwin-arm64": "0.
|
|
54
|
-
"@octocodeai/freellama-native-
|
|
55
|
-
"@octocodeai/freellama-native-linux-
|
|
56
|
-
"@octocodeai/freellama-native-
|
|
57
|
-
"@octocodeai/freellama-native-
|
|
58
|
-
"@octocodeai/freellama-native-linux-x64-musl": "0.7.0",
|
|
59
|
-
"@octocodeai/freellama-native-win32-arm64-msvc": "0.7.0",
|
|
60
|
-
"@octocodeai/freellama-native-win32-x64-msvc": "0.7.0"
|
|
53
|
+
"@octocodeai/freellama-native-darwin-arm64": "0.10.0",
|
|
54
|
+
"@octocodeai/freellama-native-linux-arm64-gnu": "0.10.0",
|
|
55
|
+
"@octocodeai/freellama-native-linux-x64-gnu": "0.10.0",
|
|
56
|
+
"@octocodeai/freellama-native-win32-arm64-msvc": "0.10.0",
|
|
57
|
+
"@octocodeai/freellama-native-win32-x64-msvc": "0.10.0"
|
|
61
58
|
},
|
|
62
59
|
"author": "Guy Bary",
|
|
63
60
|
"license": "Apache-2.0 OR MIT",
|