"use strict";
/* Socket Lib - Built with rolldown */
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const require_smol_vfs = require('../../smol/vfs.js');

//#region src/external-tools/skillspector/from-vfs.ts
/**
* @file `skillspectorFromVfs()` — extracts SkillSpector from the smol Node VFS
*   if it's bundled. Returns `undefined` when the binary doesn't carry
*   skillspector.
*/
const SKILLSPECTOR_VFS_KEY = "skillspector";
async function skillspectorFromVfs() {
	const vfs = /* @__PURE__ */ require_smol_vfs.getSmolVfs();
	if (!vfs) return;
	/* c8 ignore start - smol Node binary only. */
	if (!vfs.has("skillspector")) return;
	return {
		path: await vfs.extract(SKILLSPECTOR_VFS_KEY),
		source: "vfs"
	};
	/* c8 ignore stop */
}

//#endregion
exports.SKILLSPECTOR_VFS_KEY = SKILLSPECTOR_VFS_KEY;
exports.skillspectorFromVfs = skillspectorFromVfs;