@clutor/cli 0.0.0-stage → 0.1.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 +14 -2
- package/c/Makefile +53 -0
- package/c/src/cache.c +232 -0
- package/c/src/cache.h +48 -0
- package/c/src/gguf.c +242 -0
- package/c/src/gguf.h +48 -0
- package/c/src/kernel.c +125 -0
- package/c/src/kernel.h +45 -0
- package/c/src/main.c +145 -0
- package/c/src/route.c +52 -0
- package/c/src/route.h +27 -0
- package/c/src/stream.c +396 -0
- package/c/src/stream.h +66 -0
- package/dist/bin.js +53 -0
- package/dist/bin.js.map +1 -0
- package/dist/chunk-RBSFKJ6L.js +178 -0
- package/dist/chunk-RBSFKJ6L.js.map +1 -0
- package/dist/chunk-U5GHVJJO.js +135 -0
- package/dist/chunk-U5GHVJJO.js.map +1 -0
- package/dist/chunk-YL63VENN.js +2167 -0
- package/dist/chunk-YL63VENN.js.map +1 -0
- package/dist/index.d.ts +615 -0
- package/dist/index.js +123 -0
- package/dist/index.js.map +1 -0
- package/dist/repl-OVODHQI5.js +10 -0
- package/dist/repl-OVODHQI5.js.map +1 -0
- package/package.json +16 -4
package/dist/index.js
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AgentSession,
|
|
3
|
+
BackendManager,
|
|
4
|
+
ConflictError,
|
|
5
|
+
DOWNLOADS,
|
|
6
|
+
DecideError,
|
|
7
|
+
DownloadError,
|
|
8
|
+
EngineError,
|
|
9
|
+
ModelError,
|
|
10
|
+
SlotSnapshots,
|
|
11
|
+
UsageError,
|
|
12
|
+
agentLlm,
|
|
13
|
+
buildEngine,
|
|
14
|
+
buildLlamaArgs,
|
|
15
|
+
createClutorServer,
|
|
16
|
+
downloadFile,
|
|
17
|
+
downloadUrl,
|
|
18
|
+
engineInfo,
|
|
19
|
+
engineSourceDir,
|
|
20
|
+
engineStream,
|
|
21
|
+
ensureSlotDir,
|
|
22
|
+
findEngine,
|
|
23
|
+
findLlamaServer,
|
|
24
|
+
flagBool,
|
|
25
|
+
flagInt,
|
|
26
|
+
flagString,
|
|
27
|
+
fromOpenAiReply,
|
|
28
|
+
handleMcp,
|
|
29
|
+
isInside,
|
|
30
|
+
listLocalModels,
|
|
31
|
+
main,
|
|
32
|
+
normaliseRoot,
|
|
33
|
+
parseArgs,
|
|
34
|
+
parseSse,
|
|
35
|
+
probeLlamaServer,
|
|
36
|
+
resolveModel,
|
|
37
|
+
run,
|
|
38
|
+
runDecide,
|
|
39
|
+
sealDecision,
|
|
40
|
+
slotDir,
|
|
41
|
+
startBackendIfConfigured,
|
|
42
|
+
streamToOllama,
|
|
43
|
+
toOpenAiBody,
|
|
44
|
+
version,
|
|
45
|
+
withPrefixSnapshots
|
|
46
|
+
} from "./chunk-YL63VENN.js";
|
|
47
|
+
import {
|
|
48
|
+
runRepl,
|
|
49
|
+
splitWords
|
|
50
|
+
} from "./chunk-RBSFKJ6L.js";
|
|
51
|
+
import {
|
|
52
|
+
CONFIG_FILE,
|
|
53
|
+
ConfigError,
|
|
54
|
+
ConfigSchema,
|
|
55
|
+
DEFAULT_PORT,
|
|
56
|
+
formatGates,
|
|
57
|
+
formatPlan,
|
|
58
|
+
formatSimulation,
|
|
59
|
+
loadConfig,
|
|
60
|
+
pct,
|
|
61
|
+
table,
|
|
62
|
+
tps
|
|
63
|
+
} from "./chunk-U5GHVJJO.js";
|
|
64
|
+
export {
|
|
65
|
+
AgentSession,
|
|
66
|
+
BackendManager,
|
|
67
|
+
CONFIG_FILE,
|
|
68
|
+
ConfigError,
|
|
69
|
+
ConfigSchema,
|
|
70
|
+
ConflictError,
|
|
71
|
+
DEFAULT_PORT,
|
|
72
|
+
DOWNLOADS,
|
|
73
|
+
DecideError,
|
|
74
|
+
DownloadError,
|
|
75
|
+
EngineError,
|
|
76
|
+
ModelError,
|
|
77
|
+
SlotSnapshots,
|
|
78
|
+
UsageError,
|
|
79
|
+
agentLlm,
|
|
80
|
+
buildEngine,
|
|
81
|
+
buildLlamaArgs,
|
|
82
|
+
createClutorServer,
|
|
83
|
+
downloadFile,
|
|
84
|
+
downloadUrl,
|
|
85
|
+
engineInfo,
|
|
86
|
+
engineSourceDir,
|
|
87
|
+
engineStream,
|
|
88
|
+
ensureSlotDir,
|
|
89
|
+
findEngine,
|
|
90
|
+
findLlamaServer,
|
|
91
|
+
flagBool,
|
|
92
|
+
flagInt,
|
|
93
|
+
flagString,
|
|
94
|
+
formatGates,
|
|
95
|
+
formatPlan,
|
|
96
|
+
formatSimulation,
|
|
97
|
+
fromOpenAiReply,
|
|
98
|
+
handleMcp,
|
|
99
|
+
isInside,
|
|
100
|
+
listLocalModels,
|
|
101
|
+
loadConfig,
|
|
102
|
+
main,
|
|
103
|
+
normaliseRoot,
|
|
104
|
+
parseArgs,
|
|
105
|
+
parseSse,
|
|
106
|
+
pct,
|
|
107
|
+
probeLlamaServer,
|
|
108
|
+
resolveModel,
|
|
109
|
+
run,
|
|
110
|
+
runDecide,
|
|
111
|
+
runRepl,
|
|
112
|
+
sealDecision,
|
|
113
|
+
slotDir,
|
|
114
|
+
splitWords,
|
|
115
|
+
startBackendIfConfigured,
|
|
116
|
+
streamToOllama,
|
|
117
|
+
table,
|
|
118
|
+
toOpenAiBody,
|
|
119
|
+
tps,
|
|
120
|
+
version,
|
|
121
|
+
withPrefixSnapshots
|
|
122
|
+
};
|
|
123
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clutor/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "The clutor command and local server: plan whether a model fits your machine, inspect GGUF files, simulate expert streaming, run a sandboxed coding agent, and serve an OpenAI- and Ollama-compatible API on localhost in front of llama.cpp.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"author": { "name": "Sagar Pinninti", "url": "https://github.com/isagarpinninti" },
|
|
8
|
+
"repository": { "type": "git", "url": "git+https://github.com/isagarpinninti/clutor.git", "directory": "packages/cli" },
|
|
9
|
+
"keywords": ["llm", "gguf", "llama.cpp", "moe", "coding-agent", "openai-compatible", "ollama-compatible", "local-llm", "mcp"],
|
|
10
|
+
"bin": { "clutor": "dist/bin.js", "clt": "dist/bin.js" },
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js" } },
|
|
14
|
+
"files": ["dist", "c/src", "c/Makefile", "README.md", "LICENSE"],
|
|
15
|
+
"engines": { "node": ">=20" },
|
|
16
|
+
"dependencies": { "@clutor/core": "^0.1.1", "zod": "^4.0.0" },
|
|
17
|
+
"scripts": { "prepack": "node ../../scripts/pack-engine.mjs", "postpack": "node ../../scripts/pack-engine.mjs clean", "build": "tsup", "typecheck": "tsc --noEmit", "test": "vitest run" }
|
|
18
|
+
}
|