@qalqi/headless-hermes 0.2.1 → 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.
package/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
  // Paths into the prebuilt Hermes for this platform (installed as an optional dependency).
3
+ const fs = require('fs');
3
4
  const path = require('path');
4
5
 
5
6
  const supported = ['linux-x64', 'linux-arm64', 'darwin-arm64'];
@@ -16,6 +17,26 @@ function platformPackageDir() {
16
17
  }
17
18
  }
18
19
 
20
+ /**
21
+ * Where this build came from: { version, platform, hermes: { commit, branch, url, bytecodeVersion },
22
+ * nodeApi: { version, host }, buildType, text }. `text` is BUILD-INFO.txt as shipped.
23
+ */
24
+ function buildInfo() {
25
+ const dir = platformPackageDir();
26
+ const text = fs.readFileSync(path.join(dir, 'BUILD-INFO.txt'), 'utf8');
27
+ let info = {};
28
+ try {
29
+ info = JSON.parse(fs.readFileSync(path.join(dir, 'BUILD-INFO.json'), 'utf8'));
30
+ } catch {
31
+ // Before 0.2.2 only BUILD-INFO.txt was shipped.
32
+ const commit = /Hermes commit:\s*([0-9a-f]{40})/.exec(text);
33
+ if (commit) info.hermes = { commit: commit[1] };
34
+ }
35
+ Object.defineProperty(info, 'text', { value: text, enumerable: false });
36
+ info.toString = () => text;
37
+ return info;
38
+ }
39
+
19
40
  const dir = () => platformPackageDir();
20
41
  module.exports = {
21
42
  platformPackageDir,
@@ -23,8 +44,11 @@ module.exports = {
23
44
  includeDir: () => path.join(dir(), 'include'),
24
45
  /** The JSI runtime library (libhermesvm). */
25
46
  libDir: () => path.join(dir(), 'lib'),
47
+ /** For CMake: find_package(headless_hermes CONFIG REQUIRED PATHS <this>). */
48
+ cmakeDir: () => path.join(dir(), 'lib', 'cmake', 'headless_hermes'),
49
+ /** For pkg-config: PKG_CONFIG_PATH=<this> pkg-config --cflags --libs headless-hermes. */
50
+ pkgConfigDir: () => path.join(dir(), 'lib', 'pkgconfig'),
26
51
  /** A bundled tool: 'hermes', 'hermesc', 'hermes-jsi-run' or 'napi-host'. */
27
52
  bin: (name) => path.join(dir(), 'bin', name),
28
- /** The Hermes commit and build details. */
29
- buildInfo: () => require('fs').readFileSync(path.join(dir(), 'BUILD-INFO.txt'), 'utf8'),
53
+ buildInfo,
30
54
  };
package/lib/verify.js ADDED
@@ -0,0 +1,102 @@
1
+ 'use strict';
2
+ // .headless/verify.json — the deterministic CI replay manifest (the "checkout.yaml" of this stack).
3
+ //
4
+ // An agent produces it once (expensive, one-time); `npx napi-host --verify` replays it on every
5
+ // PR with no AI in the loop. Each test is one napi-host invocation; `expected` is an exact
6
+ // stdout comparison.
7
+ //
8
+ // {
9
+ // "engine": { "hermesCommit": "64d47e223980", "bytecode": 100 }, // the build the golden files were cut on
10
+ // "tests": [
11
+ // { "script": "test/parity.js", "addon": "build/Release/mylib.node", "args": [], "expected": "test/golden/parity.txt" }
12
+ // ]
13
+ // }
14
+ //
15
+ // replay() runs every test through the installed napi-host, compares stdout to `expected`,
16
+ // and (optionally) checks the engine pin. Exit status: 0 all pass, 1 any fail / host error.
17
+ // A manifest with no tests yet (as `headless-hermes init` writes it) passes, with a note.
18
+
19
+ const fs = require('fs');
20
+ const path = require('path');
21
+ const { spawnSync } = require('child_process');
22
+
23
+ function hh() {
24
+ try { return require('..'); }
25
+ catch { return require(path.join(__dirname, '..', 'index.js')); }
26
+ }
27
+
28
+ // The napi-host binary: env override first (CI points it at a freshly built host, and then gives
29
+ // its Hermes commit in HH_HERMES_COMMIT), then the installed platform package.
30
+ function napiHostBin() {
31
+ if (process.env.HH_NAPI_HOST) return process.env.HH_NAPI_HOST;
32
+ return hh().bin('napi-host');
33
+ }
34
+
35
+ function loadManifest(p) {
36
+ if (!p) throw new Error('no manifest path given (default .headless/verify.json)');
37
+ const abs = path.resolve(p);
38
+ if (!fs.existsSync(abs)) throw new Error(`manifest not found: ${abs}`);
39
+ const m = JSON.parse(fs.readFileSync(abs, 'utf8'));
40
+ if (!Array.isArray(m.tests)) {
41
+ throw new Error(`manifest ${abs} has no "tests" array`);
42
+ }
43
+ return m;
44
+ }
45
+
46
+ // Run one test on the installed napi-host; return { ok, stdout, stderr, exitCode, reason }.
47
+ function runTest(t, baseDir) {
48
+ const bin = napiHostBin();
49
+ const args = [t.script, ...(t.addon ? [t.addon] : [])];
50
+ if (t.args && t.args.length) args.push('--', ...t.args);
51
+ const timeoutMs = t.timeoutMs || 120000;
52
+ const r = spawnSync(bin, args, { encoding: 'utf8', timeout: timeoutMs, cwd: baseDir });
53
+ if (r.error && r.error.code === 'ETIMEDOUT') {
54
+ return { ok: false, reason: `timed out after ${timeoutMs / 1000} s (set "timeoutMs" on the test to change it)`,
55
+ exitCode: null, stdout: r.stdout || '', stderr: r.stderr || '' };
56
+ }
57
+ if (r.error) return { ok: false, reason: `napi-host failed to start (${bin}): ${r.error.message}`, exitCode: 2 };
58
+
59
+ let ok = r.status === 0;
60
+ let reason = '';
61
+ if (t.expected && ok) {
62
+ const exp = path.isAbsolute(t.expected) ? t.expected : path.join(baseDir, t.expected);
63
+ const got = (r.stdout || '').replace(/\r\n/g, '\n');
64
+ let want = '';
65
+ try { want = fs.readFileSync(exp, 'utf8').replace(/\r\n/g, '\n'); }
66
+ catch { return { ok: false, reason: `golden file not found: ${exp}`, exitCode: 2, stdout: got }; }
67
+ if (got !== want) {
68
+ ok = false;
69
+ reason = `output differs from ${t.expected}\n--- got ---\n${got}\n--- expected ---\n${want}`;
70
+ }
71
+ } else if (!ok) {
72
+ reason = `napi-host exited ${r.status}: ${r.stderr || r.stdout}`;
73
+ }
74
+ return { ok, reason, exitCode: r.status, stdout: r.stdout || '', stderr: r.stderr || '' };
75
+ }
76
+
77
+ // The engine pin the manifest was cut against, vs. the installed build.
78
+ function enginePin(manifest, baseDir) {
79
+ const want = manifest.engine && manifest.engine.hermesCommit;
80
+ if (!want) return { ok: true, note: 'no engine pin in manifest' };
81
+ let have = process.env.HH_NAPI_HOST ? (process.env.HH_HERMES_COMMIT || '') : '';
82
+ if (!have) {
83
+ try { const info = hh().buildInfo(); have = (info.hermes && info.hermes.commit) || ''; }
84
+ catch (e) { return { ok: false, note: `manifest wants hermes ${want}; the build's commit is unknown: ${e.message}` }; }
85
+ }
86
+ const n = Math.min(want.length, have.length);
87
+ const ok = n >= 7 && want.slice(0, n) === have.slice(0, n);
88
+ return { ok, note: `manifest wants hermes ${want}; the build is ${have ? have.slice(0, 12) : 'unknown'}` };
89
+ }
90
+
91
+ function replay(manifestPath, baseDir) {
92
+ const m = loadManifest(manifestPath);
93
+ const cwd = baseDir || process.cwd();
94
+ const results = m.tests.map((t) => ({ name: t.script, ...runTest(t, cwd) }));
95
+ const pin = enginePin(m, cwd);
96
+ const allOk = pin.ok && results.every((r) => r.ok);
97
+ const note = m.tests.length ? undefined
98
+ : 'no tests yet: ask your agent to verify the addon, or add {script, addon, expected} entries';
99
+ return { ok: allOk, engine: pin, tests: results, note };
100
+ }
101
+
102
+ module.exports = { loadManifest, replay, runTest, enginePin };
package/mcp-server.js ADDED
@@ -0,0 +1,321 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+ // headless-hermes MCP server (stdio JSON-RPC).
4
+ //
5
+ // Exposes five tools to any MCP client (Claude Code, Cursor, etc.):
6
+ // hermes_run Run a JS file (or a snippet, through a temporary file) on the bundled hermes.
7
+ // napi_run Load a .node addon + run a test script on napi-host, return stdout/stderr/exit.
8
+ // napi_conformance Return the shipped conformance catalog (155 functions: since-version, exported, exercised, known differences).
9
+ // build_info Return the engine's provenance: hermes commit, the bytecode version its hermesc writes, napi-host version.
10
+ // manifest_write Create or update .headless/verify.json (the deterministic CI replay manifest).
11
+ //
12
+ // Zero external dependencies. Requires @qalqi/headless-hermes (the npm package) to be installed.
13
+ //
14
+ // Protocol: newline-delimited JSON-RPC 2.0 on stdin/stdout. The server speaks the MCP 2024-11-05 shape.
15
+ //
16
+ // Usage from an MCP client config:
17
+ // "mcpServers": {
18
+ // "headless-hermes": { "command": "npx", "args": ["@qalqi/headless-hermes", "mcp"] }
19
+ // }
20
+ // Or directly:
21
+ // node node_modules/@qalqi/headless-hermes/mcp-server.js
22
+
23
+ const fs = require('fs');
24
+ const os = require('os');
25
+ const path = require('path');
26
+ const { spawnSync } = require('child_process');
27
+
28
+ // ---------------------------------------------------------------------------
29
+ // Provenance + shipped data. Every helper degrades gracefully whether the server
30
+ // runs from the installed package, a repo checkout, or a CI build dir.
31
+ // ---------------------------------------------------------------------------
32
+ function hh() {
33
+ // mcp-server.js lives at the package root (next to index.js), in both the installed
34
+ // package and a repo checkout, so the main entry is the sibling index.js.
35
+ try { return require(path.join(__dirname, 'index.js')); }
36
+ catch { return require('../index.js'); }
37
+ }
38
+
39
+ // The shipped conformance catalog lives next to mcp-server.js in the MAIN package
40
+ // (npm/headless-hermes/conformance.json), not in the platform package. Check there first,
41
+ // then the platform pkg, then a repo-dev source. Normalize both the shipped shape (rows[]
42
+ // with {function,since,header,note}) and the node-api-symbols.json shape (functions[] with
43
+ // {name,since,header}) to a common row shape.
44
+ function conformance() {
45
+ const candidates = [
46
+ path.join(__dirname, 'conformance.json'),
47
+ (() => { try { return path.join(hh().platformPackageDir(), 'conformance.json'); } catch { return null; } })(),
48
+ path.join(__dirname, '..', '..', 'scripts', 'node-api-symbols.json'),
49
+ ].filter(Boolean);
50
+ for (const p of candidates) {
51
+ if (!fs.existsSync(p)) continue;
52
+ let d = JSON.parse(fs.readFileSync(p, 'utf8'));
53
+ if (Array.isArray(d.functions) && d.functions.length && typeof d.functions[0] === 'object') {
54
+ d.rows = d.functions.map(f => ({ function: f.name, since: f.since, header: f.header, note: '' }));
55
+ }
56
+ d.functions = (d.rows ? d.rows.length : 0) || d.functions || 0;
57
+ return d;
58
+ }
59
+ return { functions: 0, known_differences: [], rows: [], error: 'conformance data not found' };
60
+ }
61
+
62
+ function packageVersion() {
63
+ for (const p of [path.join(__dirname, 'package.json'), path.join(__dirname, '..', '..', 'npm', 'headless-hermes', 'package.json')]) {
64
+ try { return JSON.parse(fs.readFileSync(p, 'utf8')).version; } catch {}
65
+ }
66
+ return 'unknown';
67
+ }
68
+
69
+ function buildInfo() {
70
+ let info = {};
71
+ try { info = hh().buildInfo ? hh().buildInfo() : {}; } catch (e) { info = {}; }
72
+ const version = info.version || packageVersion();
73
+ const hermes = info.hermes || {};
74
+ let commit = (hermes.commit || '');
75
+ // Repo-checkout fallback: read HERMES_COMMIT directly when the platform package isn't installed.
76
+ if (!commit) {
77
+ for (const p of [path.join(__dirname, '..', '..', 'HERMES_COMMIT')]) {
78
+ try { commit = fs.readFileSync(p, 'utf8').trim().replace(/\s+/g, ''); break; } catch {}
79
+ }
80
+ }
81
+ let bytecode = hermes.bytecodeVersion || null;
82
+ if (!bytecode) {
83
+ // No BUILD-INFO.json (a repo checkout, a CI build dir): ask the hermes binary itself.
84
+ try {
85
+ const bin = process.env.HH_HERMES || hh().bin('hermes');
86
+ const m = /bytecode version:\s*(\d+)/i.exec(spawnSync(bin, ['--version'], { encoding: 'utf8', timeout: 10000 }).stdout || '');
87
+ if (m) bytecode = Number(m[1]);
88
+ } catch {}
89
+ }
90
+ return {
91
+ version,
92
+ hermes_commit: (commit || 'unknown').slice(0, 12),
93
+ bytecode_version: bytecode,
94
+ napi_version: 10,
95
+ // React Native compatibility is not a property of the commit alone: precompiled .hbc loads only when the app's
96
+ // hermesc writes the same bytecode version. doctor reads the app's and compares.
97
+ react_native: 'run `npx headless-hermes doctor` in the app: it compares the bytecode version its hermesc writes with bytecode_version',
98
+ };
99
+ }
100
+
101
+ // ---------------------------------------------------------------------------
102
+ // Tool implementations
103
+ // ---------------------------------------------------------------------------
104
+ const TOOLS = [
105
+ {
106
+ name: 'hermes_run',
107
+ description: 'Run a JS file or a JS snippet on the headless Hermes engine (no addons: use napi_run for a .node). Returns stdout, stderr, and exit code.',
108
+ inputSchema: {
109
+ type: 'object',
110
+ properties: {
111
+ file: { type: 'string', description: 'Path to the .js file to run (relative to cwd).' },
112
+ eval: { type: 'string', description: 'JS source to run (written to a temporary file; hermes has no -e).' },
113
+ },
114
+ },
115
+ },
116
+ {
117
+ name: 'napi_run',
118
+ description: 'Load a .node addon and run a test script on napi-host (Node-API on Hermes). Returns stdout, stderr, exit code.',
119
+ inputSchema: {
120
+ type: 'object',
121
+ properties: {
122
+ script: { type: 'string', description: 'The .js test script to run.' },
123
+ addon: { type: 'string', description: 'The .node addon file to load (exposed as a global).' },
124
+ args: { type: 'array', items: { type: 'string' }, description: 'Script arguments (after -- in CLI).' },
125
+ },
126
+ required: ['script'],
127
+ },
128
+ },
129
+ {
130
+ name: 'napi_conformance',
131
+ description: 'Return the Node-API 10 conformance catalog for this Hermes build: all 155 functions, the N-API since-version of each, whether napi-host exports it and which CI demos exercise it (when the catalog was cut from a build), and the known behaviour differences.',
132
+ inputSchema: {
133
+ type: 'object',
134
+ properties: {
135
+ filter: { type: 'array', items: { type: 'string' }, description: 'Optional: return only these function names.' },
136
+ },
137
+ },
138
+ },
139
+ {
140
+ name: 'build_info',
141
+ description: 'Return the engine provenance: Hermes commit, the bytecode version its hermesc writes, N-API version and napi-host version. For React Native compatibility, run `npx headless-hermes doctor` in the app.',
142
+ inputSchema: { type: 'object', properties: {} },
143
+ },
144
+ {
145
+ name: 'manifest_write',
146
+ description: 'Create or replace .headless/verify.json (the deterministic CI replay manifest). Fields: engine (hermesCommit, bytecode), tests (array of {script, addon, args, expected, timeoutMs}).',
147
+ inputSchema: {
148
+ type: 'object',
149
+ properties: {
150
+ path: { type: 'string', description: 'Where to write the manifest (default: .headless/verify.json relative to cwd).' },
151
+ manifest: {
152
+ type: 'object',
153
+ description: 'The manifest object to write. Must have a "tests" array.',
154
+ required: ['tests'],
155
+ },
156
+ },
157
+ },
158
+ },
159
+ ];
160
+
161
+ function handleTool(name, args) {
162
+ // Resolve a host binary lazily and safely: env override first, then the installed
163
+ // platform package (which may not be present in a repo checkout / CI build dir).
164
+ const hostBin = (kind) => {
165
+ const env = kind === 'hermes' ? process.env.HH_HERMES : process.env.HH_NAPI_HOST;
166
+ if (env && fs.existsSync(env)) return env;
167
+ try { return hh().bin(kind === 'hermes' ? 'hermes' : 'napi-host'); }
168
+ catch (e) { throw new Error(`the ${kind} binary isn't available: ${e.message}`); }
169
+ };
170
+ switch (name) {
171
+ case 'hermes_run': {
172
+ let file = args.file;
173
+ let tmp = null;
174
+ if (!file && typeof args.eval === 'string') {
175
+ tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'hermes-run-'));
176
+ file = path.join(tmp, 'eval.js');
177
+ fs.writeFileSync(file, args.eval);
178
+ }
179
+ if (!file) return { error: 'hermes_run: provide either file or eval' };
180
+ let r;
181
+ try { r = spawnSync(hostBin('hermes'), [file], { encoding: 'utf8', timeout: 30000 }); }
182
+ finally { if (tmp) fs.rmSync(tmp, { recursive: true, force: true }); }
183
+ return {
184
+ stdout: r.stdout || '',
185
+ stderr: r.stderr || '',
186
+ exitCode: r.status === null ? -1 : r.status,
187
+ };
188
+ }
189
+
190
+ case 'napi_run': {
191
+ const cmdArgs = [args.script];
192
+ if (args.addon) cmdArgs.push(args.addon);
193
+ if (args.args && args.args.length) {
194
+ cmdArgs.push('--', ...args.args);
195
+ }
196
+ const r = spawnSync(hostBin('napi'), cmdArgs, { encoding: 'utf8', timeout: 60000, cwd: process.cwd() });
197
+ return {
198
+ stdout: r.stdout || '',
199
+ stderr: r.stderr || '',
200
+ exitCode: r.status === null ? -1 : r.status,
201
+ };
202
+ }
203
+
204
+ case 'napi_conformance': {
205
+ const data = conformance();
206
+ let rows = data.rows || data.functions || [];
207
+ if (Array.isArray(rows) && rows.length && typeof rows[0] === 'object') {
208
+ // node-api-symbols.json shape: [{name, since, header}]
209
+ } else {
210
+ rows = [];
211
+ }
212
+ if (args.filter && Array.isArray(args.filter)) {
213
+ rows = rows.filter(r => args.filter.includes(r.name || r.function));
214
+ }
215
+ return {
216
+ napi_version: data.napi_version,
217
+ hermes_commit: data.hermes_commit,
218
+ napi_host_version: data.napi_host_version,
219
+ functions: data.functions,
220
+ exported: data.exported,
221
+ exercised: data.exercised,
222
+ known_differences: data.known_differences,
223
+ rows,
224
+ };
225
+ }
226
+
227
+ case 'build_info':
228
+ return buildInfo();
229
+
230
+ case 'manifest_write': {
231
+ const m = args.manifest;
232
+ if (!m || typeof m !== 'object' || !Array.isArray(m.tests)) {
233
+ return { error: 'manifest_write: manifest must be an object with a "tests" array' };
234
+ }
235
+ const bad = m.tests.findIndex((t) => !t || typeof t.script !== 'string');
236
+ if (bad !== -1) return { error: `manifest_write: tests[${bad}] has no "script"` };
237
+ const out = args.path || path.join(process.cwd(), '.headless', 'verify.json');
238
+ const dir = path.dirname(out);
239
+ if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true });
240
+ fs.writeFileSync(out, JSON.stringify(m, null, 2) + '\n');
241
+ return { path: out, bytes: fs.statSync(out).size };
242
+ }
243
+
244
+ default:
245
+ return { error: `unknown tool: ${name}` };
246
+ }
247
+ }
248
+
249
+ // ---------------------------------------------------------------------------
250
+ // JSON-RPC 2.0 over stdio (newline-delimited)
251
+ // ---------------------------------------------------------------------------
252
+ const PROTOCOL_VERSION = '2024-11-05';
253
+
254
+ function respond(id, result, error) {
255
+ const msg = { jsonrpc: '2.0', id };
256
+ if (error) msg.error = error;
257
+ else msg.result = result;
258
+ process.stdout.write(JSON.stringify(msg) + '\n');
259
+ }
260
+
261
+ function handleRequest(req) {
262
+ const { id, method, params } = req;
263
+ if (!method) return;
264
+ // A notification (no id) gets no reply, whatever its method (JSON-RPC 2.0).
265
+ if (id === undefined) return;
266
+
267
+ switch (method) {
268
+ case 'initialize':
269
+ respond(id, {
270
+ protocolVersion: PROTOCOL_VERSION,
271
+ capabilities: { tools: {} },
272
+ serverInfo: { name: 'headless-hermes', version: packageVersion() },
273
+ });
274
+ break;
275
+
276
+ case 'tools/list':
277
+ respond(id, { tools: TOOLS });
278
+ break;
279
+
280
+ case 'tools/call': {
281
+ const name = params && params.name;
282
+ const args = (params && params.arguments) || {};
283
+ let result;
284
+ try {
285
+ result = handleTool(name, args);
286
+ } catch (e) {
287
+ result = { error: e.message || String(e) };
288
+ }
289
+ const isError = result && result.error;
290
+ respond(id, {
291
+ content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
292
+ isError: !!isError,
293
+ });
294
+ break;
295
+ }
296
+
297
+ case 'ping':
298
+ respond(id, {});
299
+ break;
300
+
301
+ default:
302
+ respond(id, null, { code: -32601, message: `method not found: ${method}` });
303
+ }
304
+ }
305
+
306
+ // Read stdin as newline-delimited JSON.
307
+ let buffer = '';
308
+ process.stdin.setEncoding('utf8');
309
+ process.stdin.on('data', (chunk) => {
310
+ buffer += chunk;
311
+ let idx;
312
+ while ((idx = buffer.indexOf('\n')) !== -1) {
313
+ const line = buffer.slice(0, idx).trim();
314
+ buffer = buffer.slice(idx + 1);
315
+ if (!line) continue;
316
+ let req;
317
+ try { req = JSON.parse(line); } catch { continue; }
318
+ handleRequest(req);
319
+ }
320
+ });
321
+ process.stdin.on('end', () => process.exit(0));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qalqi/headless-hermes",
3
- "version": "0.2.1",
4
- "description": "Hermes JavaScript engine for headless use (no React Native): hermes and hermesc, hermes-jsi-run (a JSI host for native libraries) and napi-host (Node-API addons on Hermes), the runtime library and headers, prebuilt per platform",
3
+ "version": "0.3.0",
4
+ "description": "Hermes JavaScript engine for headless use (no React Native): hermes and hermesc, hermes-jsi-run (a JSI host for native libraries) and napi-host (Node-API addons on Hermes), the runtime library and headers, prebuilt per platform. Agent channel: an MCP server + verify/port skills + a deterministic .headless/verify.json CI replay.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -22,11 +22,16 @@
22
22
  "hermes": "bin/hermes.js",
23
23
  "hermesc": "bin/hermesc.js",
24
24
  "hermes-jsi-run": "bin/hermes-jsi-run.js",
25
- "napi-host": "bin/napi-host.js"
25
+ "napi-host": "bin/napi-host.js",
26
+ "headless-hermes": "bin/headless-hermes.js"
26
27
  },
27
28
  "files": [
28
29
  "index.js",
29
30
  "bin/",
31
+ "lib/",
32
+ "mcp-server.js",
33
+ "agent/",
34
+ "conformance.json",
30
35
  "README.md",
31
36
  "LICENSE"
32
37
  ],
@@ -34,9 +39,9 @@
34
39
  "node": ">=18"
35
40
  },
36
41
  "optionalDependencies": {
37
- "@qalqi/headless-hermes-linux-x64": "0.2.1",
38
- "@qalqi/headless-hermes-linux-arm64": "0.2.1",
39
- "@qalqi/headless-hermes-darwin-arm64": "0.2.1"
42
+ "@qalqi/headless-hermes-linux-x64": "0.3.0",
43
+ "@qalqi/headless-hermes-linux-arm64": "0.3.0",
44
+ "@qalqi/headless-hermes-darwin-arm64": "0.3.0"
40
45
  },
41
46
  "hermes": {
42
47
  "commit": "64d47e22398073ca6a5ae65249ddcc65e85df3fd"