@vigylx/slm 0.0.0-stage → 0.3.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.
@@ -0,0 +1,298 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.DEFAULT_MODEL = exports.SUPPORTED_MODELS = void 0;
37
+ exports.modelsDir = modelsDir;
38
+ exports.checkSpace = checkSpace;
39
+ exports.resolveModel = resolveModel;
40
+ exports.modelPath = modelPath;
41
+ exports.getModelPath = getModelPath;
42
+ exports.downloadModel = downloadModel;
43
+ exports.formatBytes = formatBytes;
44
+ const node_fs_1 = require("node:fs");
45
+ const node_https_1 = require("node:https");
46
+ const node_os_1 = require("node:os");
47
+ const path = __importStar(require("node:path"));
48
+ const promises_1 = require("node:stream/promises");
49
+ /**
50
+ * Sizes are the real content-length from the CDN, checked on 2026-10-14.
51
+ *
52
+ * The guide also listed `phi3-mini-128k-q4`; that repo is gated and answers 401
53
+ * to an anonymous request, so offering it would be offering a download that
54
+ * cannot work without a Hugging Face token. Left out until there is a reason to
55
+ * add token support.
56
+ */
57
+ exports.SUPPORTED_MODELS = {
58
+ 'phi3-mini-4k-q4': {
59
+ key: 'phi3-mini-4k-q4',
60
+ url: 'https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-gguf/resolve/main/Phi-3-mini-4k-instruct-q4.gguf',
61
+ filename: 'phi3-mini-4k-q4.gguf',
62
+ bytes: 2_393_231_072,
63
+ label: 'Phi-3 mini 4k instruct (Q4)',
64
+ },
65
+ 'qwen2.5-1.5b-q4': {
66
+ key: 'qwen2.5-1.5b-q4',
67
+ url: 'https://huggingface.co/bartowski/Qwen2.5-1.5B-Instruct-GGUF/resolve/main/Qwen2.5-1.5B-Instruct-Q4_K_M.gguf',
68
+ filename: 'qwen2.5-1.5b-q4.gguf',
69
+ bytes: 986_048_768,
70
+ label: 'Qwen2.5 1.5B instruct (Q4_K_M)',
71
+ },
72
+ 'llama3.2-1b-q4': {
73
+ key: 'llama3.2-1b-q4',
74
+ url: 'https://huggingface.co/bartowski/Llama-3.2-1B-Instruct-GGUF/resolve/main/Llama-3.2-1B-Instruct-Q4_K_M.gguf',
75
+ filename: 'llama3.2-1b-q4.gguf',
76
+ bytes: 807_694_464,
77
+ label: 'Llama 3.2 1B instruct (Q4_K_M)',
78
+ },
79
+ 'llama3.2-3b-q4': {
80
+ key: 'llama3.2-3b-q4',
81
+ url: 'https://huggingface.co/bartowski/Llama-3.2-3B-Instruct-GGUF/resolve/main/Llama-3.2-3B-Instruct-Q4_K_M.gguf',
82
+ filename: 'llama3.2-3b-q4.gguf',
83
+ bytes: 2_019_377_696,
84
+ label: 'Llama 3.2 3B instruct (Q4_K_M)',
85
+ },
86
+ };
87
+ exports.DEFAULT_MODEL = 'phi3-mini-4k-q4';
88
+ /** Redirects to follow before giving up. Hugging Face uses two: LFS, then CDN. */
89
+ const MAX_REDIRECTS = 5;
90
+ /** A partial download keeps this suffix until it is verified and renamed. */
91
+ const PART_SUFFIX = '.part';
92
+ /**
93
+ * Where models live: `$VIGYL_MODELS_DIR`, else `~/.vigyl/models`.
94
+ *
95
+ * The env var exists so a multi-gigabyte file can be put on another drive, or
96
+ * anywhere with room, without moving the rest of Vigyl's state.
97
+ *
98
+ * The guide used `process.env.HOME`, which is unset on Windows, so the model
99
+ * would have been written into a directory literally named `~` next to
100
+ * wherever the process happened to start.
101
+ */
102
+ function modelsDir() {
103
+ const configured = process.env.VIGYL_MODELS_DIR?.trim();
104
+ if (configured)
105
+ return path.resolve(configured);
106
+ return path.join((0, node_os_1.homedir)(), '.vigyl', 'models');
107
+ }
108
+ /** Headroom to leave free after a download, so the disk does not end up full. */
109
+ const FREE_SPACE_MARGIN = 500 * 1024 * 1024;
110
+ /**
111
+ * Is there room for this model, plus a margin?
112
+ *
113
+ * Checked before the request rather than after two gigabytes of download, and
114
+ * reported rather than thrown so a caller can show the numbers.
115
+ */
116
+ async function checkSpace(key = exports.DEFAULT_MODEL, dir = modelsDir()) {
117
+ const spec = resolveModel(key);
118
+ const already = await partialBytes(path.join(dir, spec.filename + PART_SUFFIX));
119
+ const neededBytes = Math.max(0, spec.bytes - already);
120
+ // statfs needs a path that exists; walk up to the nearest one.
121
+ let probe = dir;
122
+ for (;;) {
123
+ try {
124
+ await node_fs_1.promises.stat(probe);
125
+ break;
126
+ }
127
+ catch {
128
+ const parent = path.dirname(probe);
129
+ if (parent === probe)
130
+ break;
131
+ probe = parent;
132
+ }
133
+ }
134
+ try {
135
+ const stats = await node_fs_1.promises.statfs(probe);
136
+ const freeBytes = stats.bavail * stats.bsize;
137
+ return { ok: freeBytes >= neededBytes + FREE_SPACE_MARGIN, freeBytes, neededBytes };
138
+ }
139
+ catch {
140
+ // If the platform will not say, do not block the download over it.
141
+ return { ok: true, freeBytes: Number.POSITIVE_INFINITY, neededBytes };
142
+ }
143
+ }
144
+ function resolveModel(key = exports.DEFAULT_MODEL) {
145
+ const spec = exports.SUPPORTED_MODELS[key];
146
+ if (!spec) {
147
+ const known = Object.keys(exports.SUPPORTED_MODELS).join(', ');
148
+ throw new Error(`Unknown model: ${key}. Available: ${known}`);
149
+ }
150
+ return spec;
151
+ }
152
+ function modelPath(key = exports.DEFAULT_MODEL, dir = modelsDir()) {
153
+ return path.join(dir, resolveModel(key).filename);
154
+ }
155
+ /**
156
+ * The path to an already-downloaded model, or null.
157
+ *
158
+ * A file whose size does not match the spec is treated as absent: it is either a
159
+ * truncated download or an upstream change, and loading either one wastes
160
+ * minutes before failing somewhere far less obvious.
161
+ */
162
+ async function getModelPath(key = exports.DEFAULT_MODEL, dir = modelsDir()) {
163
+ const spec = resolveModel(key);
164
+ const target = path.join(dir, spec.filename);
165
+ try {
166
+ const stat = await node_fs_1.promises.stat(target);
167
+ return stat.size === spec.bytes ? target : null;
168
+ }
169
+ catch {
170
+ return null;
171
+ }
172
+ }
173
+ /** Bytes already fetched into the `.part` file, or 0. */
174
+ async function partialBytes(partPath) {
175
+ try {
176
+ return (await node_fs_1.promises.stat(partPath)).size;
177
+ }
178
+ catch {
179
+ return 0;
180
+ }
181
+ }
182
+ /**
183
+ * One GET, following redirects.
184
+ *
185
+ * `https.get` does not follow them, and Hugging Face answers 302 to a CDN host.
186
+ * As the guide was written it would have saved a few hundred bytes of redirect
187
+ * body, reported a complete download, and left llama.cpp to produce the
188
+ * confusing error hours later.
189
+ */
190
+ function getFollowing(url, headers, fetchImpl, redirectsLeft = MAX_REDIRECTS) {
191
+ return new Promise((resolve, reject) => {
192
+ const req = fetchImpl(url, { headers }, (res) => {
193
+ const status = res.statusCode ?? 0;
194
+ const location = res.headers.location;
195
+ if (status >= 300 && status < 400 && location) {
196
+ res.resume(); // drain, or the socket is never released
197
+ if (redirectsLeft === 0) {
198
+ reject(new Error(`Too many redirects fetching ${url}`));
199
+ return;
200
+ }
201
+ const next = new URL(location, url).toString();
202
+ getFollowing(next, headers, fetchImpl, redirectsLeft - 1).then(resolve, reject);
203
+ return;
204
+ }
205
+ if (status !== 200 && status !== 206) {
206
+ res.resume();
207
+ reject(new Error(`Download failed: HTTP ${status} from ${url}`));
208
+ return;
209
+ }
210
+ resolve(res);
211
+ });
212
+ req.on('error', reject);
213
+ });
214
+ }
215
+ /**
216
+ * Download a model into `~/.vigyl/models`, resuming a partial file if one is
217
+ * there.
218
+ *
219
+ * Returns the final path. Safe to call when the model is already present: it
220
+ * returns immediately unless `force` is set.
221
+ */
222
+ async function downloadModel(key = exports.DEFAULT_MODEL, options = {}) {
223
+ const spec = resolveModel(key);
224
+ const dir = options.modelsDir ?? modelsDir();
225
+ const fetchImpl = options.fetchImpl ?? node_https_1.get;
226
+ const interval = options.progressIntervalMs ?? 500;
227
+ const target = path.join(dir, spec.filename);
228
+ const partPath = target + PART_SUFFIX;
229
+ await node_fs_1.promises.mkdir(dir, { recursive: true });
230
+ if (!options.force) {
231
+ const existing = await getModelPath(key, dir);
232
+ if (existing)
233
+ return existing;
234
+ }
235
+ else {
236
+ await node_fs_1.promises.rm(target, { force: true });
237
+ await node_fs_1.promises.rm(partPath, { force: true });
238
+ }
239
+ const space = await checkSpace(key, dir);
240
+ if (!space.ok) {
241
+ throw new Error(`Not enough free space for ${spec.key}: needs ${formatBytes(space.neededBytes)} ` +
242
+ `plus headroom, ${formatBytes(space.freeBytes)} free on ${dir}. ` +
243
+ 'Set VIGYL_MODELS_DIR to a drive with room, or choose a smaller model.');
244
+ }
245
+ const already = await partialBytes(partPath);
246
+ const headers = { 'user-agent': 'vigyl-slm' };
247
+ if (already > 0)
248
+ headers['range'] = `bytes=${already}-`;
249
+ const res = await getFollowing(spec.url, headers, fetchImpl);
250
+ // A server that ignores Range answers 200 and starts from zero; appending to
251
+ // the partial file in that case would corrupt it.
252
+ const resumed = already > 0 && res.statusCode === 206;
253
+ if (already > 0 && !resumed)
254
+ await node_fs_1.promises.rm(partPath, { force: true });
255
+ const startAt = resumed ? already : 0;
256
+ const declared = Number(res.headers['content-length'] ?? 0);
257
+ const totalBytes = declared > 0 ? startAt + declared : spec.bytes;
258
+ let received = startAt;
259
+ let lastEmit = 0;
260
+ const emit = () => {
261
+ options.onProgress?.({ receivedBytes: received, totalBytes, resumed });
262
+ };
263
+ res.on('data', (chunk) => {
264
+ received += chunk.length;
265
+ const now = Date.now();
266
+ if (now - lastEmit >= interval) {
267
+ lastEmit = now;
268
+ emit();
269
+ }
270
+ });
271
+ // pipeline resolves when the file stream has flushed, not when the response
272
+ // ends. The guide resolved on the response's 'end', which returns before the
273
+ // last chunks reach disk.
274
+ await (0, promises_1.pipeline)(res, (0, node_fs_1.createWriteStream)(partPath, { flags: resumed ? 'a' : 'w' }));
275
+ emit();
276
+ const written = await partialBytes(partPath);
277
+ if (written !== spec.bytes) {
278
+ await node_fs_1.promises.rm(partPath, { force: true });
279
+ throw new Error(`Download incomplete for ${spec.key}: got ${written} bytes, expected ${spec.bytes}. ` +
280
+ 'The partial file was removed; run the download again.');
281
+ }
282
+ await node_fs_1.promises.rename(partPath, target);
283
+ return target;
284
+ }
285
+ /** `2.2 GB`, for progress output. */
286
+ function formatBytes(bytes) {
287
+ if (bytes < 1024)
288
+ return `${bytes} B`;
289
+ const units = ['KB', 'MB', 'GB', 'TB'];
290
+ let value = bytes / 1024;
291
+ let unit = 0;
292
+ while (value >= 1024 && unit < units.length - 1) {
293
+ value /= 1024;
294
+ unit += 1;
295
+ }
296
+ return `${value.toFixed(value >= 100 ? 0 : 1)} ${units[unit]}`;
297
+ }
298
+ //# sourceMappingURL=downloader.js.map
@@ -0,0 +1,13 @@
1
+ /**
2
+ * `@vigylx/slm` — Vigyl's local inference service.
3
+ *
4
+ * Month 2, week 1. Day 1 ships the model fetcher only; the classifier and the
5
+ * HTTP service land on days 3–5, and nothing in the daemon depends on this
6
+ * package yet.
7
+ */
8
+ export { DEFAULT_MODEL, SUPPORTED_MODELS, checkSpace, downloadModel, formatBytes, getModelPath, modelPath, modelsDir, resolveModel, } from './downloader';
9
+ export type { DownloadOptions, DownloadProgress, ModelSpec, SpaceCheck } from './downloader';
10
+ export { createTerminalProgress, renderDownloadBar } from './progress';
11
+ export { CLASSIFICATION_SCHEMA, DEFAULT_CONFIDENCE_THRESHOLD, DEFAULT_MAX_LINES, ERROR_TYPES, SLMClassifier, buildPrompt, fastClassify, trimForModel, } from './classifier';
12
+ export type { ClassificationResult, ClassificationSource, ClassifierOptions, ErrorType, PromptSession, } from './classifier';
13
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.js ADDED
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.trimForModel = exports.fastClassify = exports.buildPrompt = exports.SLMClassifier = exports.ERROR_TYPES = exports.DEFAULT_MAX_LINES = exports.DEFAULT_CONFIDENCE_THRESHOLD = exports.CLASSIFICATION_SCHEMA = exports.renderDownloadBar = exports.createTerminalProgress = exports.resolveModel = exports.modelsDir = exports.modelPath = exports.getModelPath = exports.formatBytes = exports.downloadModel = exports.checkSpace = exports.SUPPORTED_MODELS = exports.DEFAULT_MODEL = void 0;
4
+ /**
5
+ * `@vigylx/slm` — Vigyl's local inference service.
6
+ *
7
+ * Month 2, week 1. Day 1 ships the model fetcher only; the classifier and the
8
+ * HTTP service land on days 3–5, and nothing in the daemon depends on this
9
+ * package yet.
10
+ */
11
+ var downloader_1 = require("./downloader");
12
+ Object.defineProperty(exports, "DEFAULT_MODEL", { enumerable: true, get: function () { return downloader_1.DEFAULT_MODEL; } });
13
+ Object.defineProperty(exports, "SUPPORTED_MODELS", { enumerable: true, get: function () { return downloader_1.SUPPORTED_MODELS; } });
14
+ Object.defineProperty(exports, "checkSpace", { enumerable: true, get: function () { return downloader_1.checkSpace; } });
15
+ Object.defineProperty(exports, "downloadModel", { enumerable: true, get: function () { return downloader_1.downloadModel; } });
16
+ Object.defineProperty(exports, "formatBytes", { enumerable: true, get: function () { return downloader_1.formatBytes; } });
17
+ Object.defineProperty(exports, "getModelPath", { enumerable: true, get: function () { return downloader_1.getModelPath; } });
18
+ Object.defineProperty(exports, "modelPath", { enumerable: true, get: function () { return downloader_1.modelPath; } });
19
+ Object.defineProperty(exports, "modelsDir", { enumerable: true, get: function () { return downloader_1.modelsDir; } });
20
+ Object.defineProperty(exports, "resolveModel", { enumerable: true, get: function () { return downloader_1.resolveModel; } });
21
+ var progress_1 = require("./progress");
22
+ Object.defineProperty(exports, "createTerminalProgress", { enumerable: true, get: function () { return progress_1.createTerminalProgress; } });
23
+ Object.defineProperty(exports, "renderDownloadBar", { enumerable: true, get: function () { return progress_1.renderDownloadBar; } });
24
+ var classifier_1 = require("./classifier");
25
+ Object.defineProperty(exports, "CLASSIFICATION_SCHEMA", { enumerable: true, get: function () { return classifier_1.CLASSIFICATION_SCHEMA; } });
26
+ Object.defineProperty(exports, "DEFAULT_CONFIDENCE_THRESHOLD", { enumerable: true, get: function () { return classifier_1.DEFAULT_CONFIDENCE_THRESHOLD; } });
27
+ Object.defineProperty(exports, "DEFAULT_MAX_LINES", { enumerable: true, get: function () { return classifier_1.DEFAULT_MAX_LINES; } });
28
+ Object.defineProperty(exports, "ERROR_TYPES", { enumerable: true, get: function () { return classifier_1.ERROR_TYPES; } });
29
+ Object.defineProperty(exports, "SLMClassifier", { enumerable: true, get: function () { return classifier_1.SLMClassifier; } });
30
+ Object.defineProperty(exports, "buildPrompt", { enumerable: true, get: function () { return classifier_1.buildPrompt; } });
31
+ Object.defineProperty(exports, "fastClassify", { enumerable: true, get: function () { return classifier_1.fastClassify; } });
32
+ Object.defineProperty(exports, "trimForModel", { enumerable: true, get: function () { return classifier_1.trimForModel; } });
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,16 @@
1
+ import { type DownloadProgress } from './downloader';
2
+ /**
3
+ * One line of download progress: a bar, a percentage, bytes, and a rate.
4
+ *
5
+ * Returned rather than printed so it can be asserted on in tests.
6
+ */
7
+ export declare function renderDownloadBar(progress: DownloadProgress, elapsedMs: number): string;
8
+ /**
9
+ * A progress callback that redraws one line in place.
10
+ *
11
+ * Falls back to a plain line per update when stdout is not a TTY, so piping to
12
+ * a file or a CI log does not produce a single unreadable line of carriage
13
+ * returns.
14
+ */
15
+ export declare function createTerminalProgress(write?: (text: string) => void, isTty?: boolean): (progress: DownloadProgress) => void;
16
+ //# sourceMappingURL=progress.d.ts.map
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.renderDownloadBar = renderDownloadBar;
4
+ exports.createTerminalProgress = createTerminalProgress;
5
+ const downloader_1 = require("./downloader");
6
+ // Escape sequences do not survive editing in this repo (see CLAUDE.md), so the
7
+ // control characters are built from their codes.
8
+ const CR = String.fromCharCode(13);
9
+ const FILLED = String.fromCharCode(0x25b0); // ▰, same glyphs as the Telegram bar
10
+ const EMPTY = String.fromCharCode(0x25b1); // ▱
11
+ const CELLS = 24;
12
+ /**
13
+ * One line of download progress: a bar, a percentage, bytes, and a rate.
14
+ *
15
+ * Returned rather than printed so it can be asserted on in tests.
16
+ */
17
+ function renderDownloadBar(progress, elapsedMs) {
18
+ const { receivedBytes, totalBytes, resumed } = progress;
19
+ const ratio = totalBytes > 0 ? Math.min(1, receivedBytes / totalBytes) : 0;
20
+ const filled = Math.round(ratio * CELLS);
21
+ const bar = FILLED.repeat(filled) + EMPTY.repeat(CELLS - filled);
22
+ const percent = String(Math.floor(ratio * 100)).padStart(3, ' ');
23
+ const seconds = elapsedMs / 1000;
24
+ const rate = seconds > 0 ? receivedBytes / seconds : 0;
25
+ const rateText = rate > 0 ? `${(0, downloader_1.formatBytes)(rate)}/s` : '--';
26
+ const size = `${(0, downloader_1.formatBytes)(receivedBytes)} / ${(0, downloader_1.formatBytes)(totalBytes)}`;
27
+ const tail = resumed ? ' (resumed)' : '';
28
+ return ` ${bar} ${percent}% ${size} ${rateText}${tail}`;
29
+ }
30
+ /**
31
+ * A progress callback that redraws one line in place.
32
+ *
33
+ * Falls back to a plain line per update when stdout is not a TTY, so piping to
34
+ * a file or a CI log does not produce a single unreadable line of carriage
35
+ * returns.
36
+ */
37
+ function createTerminalProgress(write = (text) => process.stdout.write(text), isTty = process.stdout.isTTY === true) {
38
+ const startedAt = Date.now();
39
+ let lastLength = 0;
40
+ return (progress) => {
41
+ const line = renderDownloadBar(progress, Date.now() - startedAt);
42
+ if (!isTty) {
43
+ write(line.trim() + '\n');
44
+ return;
45
+ }
46
+ const padding = ' '.repeat(Math.max(0, lastLength - line.length));
47
+ lastLength = line.length;
48
+ write(CR + line + padding);
49
+ };
50
+ }
51
+ //# sourceMappingURL=progress.js.map
package/package.json CHANGED
@@ -1,6 +1,55 @@
1
1
  {
2
2
  "name": "@vigylx/slm",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.3.0",
4
+ "description": "Vigyl local inference service: classifies build failures on-device so the cloud model is only asked when it is actually needed.",
5
+ "license": "AGPL-3.0-only",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist",
10
+ "!dist/**/*.map",
11
+ "README.md",
12
+ "LICENSE"
13
+ ],
14
+ "scripts": {
15
+ "build": "tsc -b",
16
+ "dev": "tsc -b --watch",
17
+ "typecheck": "tsc -b --noEmit false --emitDeclarationOnly",
18
+ "clean": "node -e \"for (const p of ['dist','test-dist']) require('fs').rmSync(p,{recursive:true,force:true}); require('fs').rmSync('tsconfig.tsbuildinfo',{force:true})\"",
19
+ "test": "tsc -p tsconfig.test.json && node --test --test-force-exit --test-timeout=120000 \"test-dist/**/*.test.js\"",
20
+ "prepack": "node -e \"for (const f of ['README.md','LICENSE']) require('fs').copyFileSync('../../'+f, f)\""
21
+ },
22
+ "dependencies": {
23
+ "@vigylx/daemon": "^0.3.0"
24
+ },
25
+ "devDependencies": {
26
+ "@types/node": "^20.14.0",
27
+ "typescript": "^5.5.0"
28
+ },
29
+ "engines": {
30
+ "node": ">=20"
31
+ },
32
+ "keywords": [
33
+ "vigyl",
34
+ "slm",
35
+ "llama",
36
+ "phi-3",
37
+ "local-inference"
38
+ ],
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "git+https://github.com/ankithm-113/vigyl.git",
42
+ "directory": "packages/slm"
43
+ },
44
+ "homepage": "https://github.com/ankithm-113/vigyl#readme",
45
+ "bugs": {
46
+ "url": "https://github.com/ankithm-113/vigyl/issues"
47
+ },
48
+ "publishConfig": {
49
+ "access": "public"
50
+ },
51
+ "author": "Ankith M",
52
+ "optionalDependencies": {
53
+ "node-llama-cpp": "^3.22.0"
54
+ }
55
+ }