# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

WANT_GYP=1
inherit systemd yarn

DESCRIPTION="Server endpoints to process or create content for chatting"
HOMEPAGE="https://www.npmjs.com/package/anything-llm-server"
YARN_PKGS=(
	@75lb/deep-merge-1.1.2
	@anthropic-ai/sdk-0.20.9
	@anthropic-ai/sdk-0.39.0
	@anthropic-ai/sdk-0.9.1
	@aws-crypto/crc32-5.2.0
	@aws-crypto/sha256-browser-5.2.0
	@aws-crypto/sha256-js-5.2.0
	@aws-crypto/supports-web-crypto-5.2.0
	@aws-crypto/util-5.2.0
	@aws-sdk/client-bedrock-agent-runtime-3.616.0
	@aws-sdk/client-bedrock-runtime-3.616.0
	@aws-sdk/client-bedrock-runtime-3.775.0
	@aws-sdk/client-cognito-identity-3.901.0
	@aws-sdk/client-kendra-3.616.0
	@aws-sdk/client-sagemaker-3.901.0
	@aws-sdk/client-sso-3.616.0
	@aws-sdk/client-sso-3.775.0
	@aws-sdk/client-sso-3.901.0
	@aws-sdk/client-sso-oidc-3.616.0
	@aws-sdk/client-sts-3.616.0
	@aws-sdk/core-3.616.0
	@aws-sdk/core-3.775.0
	@aws-sdk/core-3.901.0
	@aws-sdk/credential-provider-cognito-identity-3.901.0
	@aws-sdk/credential-provider-env-3.609.0
	@aws-sdk/credential-provider-env-3.775.0
	@aws-sdk/credential-provider-env-3.901.0
	@aws-sdk/credential-provider-http-3.616.0
	@aws-sdk/credential-provider-http-3.775.0
	@aws-sdk/credential-provider-http-3.901.0
	@aws-sdk/credential-provider-ini-3.616.0
	@aws-sdk/credential-provider-ini-3.775.0
	@aws-sdk/credential-provider-ini-3.901.0
	@aws-sdk/credential-provider-node-3.616.0
	@aws-sdk/credential-provider-node-3.775.0
	@aws-sdk/credential-provider-node-3.901.0
	@aws-sdk/credential-provider-process-3.614.0
	@aws-sdk/credential-provider-process-3.775.0
	@aws-sdk/credential-provider-process-3.901.0
	@aws-sdk/credential-provider-sso-3.616.0
	@aws-sdk/credential-provider-sso-3.775.0
	@aws-sdk/credential-provider-sso-3.901.0
	@aws-sdk/credential-provider-web-identity-3.609.0
	@aws-sdk/credential-provider-web-identity-3.775.0
	@aws-sdk/credential-provider-web-identity-3.901.0
	@aws-sdk/credential-providers-3.901.0
	@aws-sdk/middleware-host-header-3.616.0
	@aws-sdk/middleware-host-header-3.775.0
	@aws-sdk/middleware-host-header-3.901.0
	@aws-sdk/middleware-logger-3.609.0
	@aws-sdk/middleware-logger-3.775.0
	@aws-sdk/middleware-logger-3.901.0
	@aws-sdk/middleware-recursion-detection-3.616.0
	@aws-sdk/middleware-recursion-detection-3.775.0
	@aws-sdk/middleware-recursion-detection-3.901.0
	@aws-sdk/middleware-user-agent-3.616.0
	@aws-sdk/middleware-user-agent-3.775.0
	@aws-sdk/middleware-user-agent-3.901.0
	@aws-sdk/nested-clients-3.775.0
	@aws-sdk/nested-clients-3.901.0
	@aws-sdk/region-config-resolver-3.614.0
	@aws-sdk/region-config-resolver-3.775.0
	@aws-sdk/region-config-resolver-3.901.0
	@aws-sdk/token-providers-3.614.0
	@aws-sdk/token-providers-3.775.0
	@aws-sdk/token-providers-3.901.0
	@aws-sdk/types-3.609.0
	@aws-sdk/types-3.775.0
	@aws-sdk/types-3.901.0
	@aws-sdk/util-endpoints-3.614.0
	@aws-sdk/util-endpoints-3.775.0
	@aws-sdk/util-endpoints-3.901.0
	@aws-sdk/util-locate-window-3.568.0
	@aws-sdk/util-user-agent-browser-3.609.0
	@aws-sdk/util-user-agent-browser-3.775.0
	@aws-sdk/util-user-agent-browser-3.901.0
	@aws-sdk/util-user-agent-node-3.614.0
	@aws-sdk/util-user-agent-node-3.775.0
	@aws-sdk/util-user-agent-node-3.901.0
	@aws-sdk/xml-builder-3.901.0
	@aws/lambda-invoke-store-0.0.1
	@azure/abort-controller-1.1.0
	@azure/abort-controller-2.1.2
	@azure/core-auth-1.7.2
	@azure/core-client-1.9.2
	@azure/core-http-compat-2.1.2
	@azure/core-lro-2.7.2
	@azure/core-paging-1.6.2
	@azure/core-rest-pipeline-1.16.0
	@azure/core-tracing-1.1.2
	@azure/core-util-1.9.0
	@azure/identity-3.4.2
	@azure/keyvault-keys-4.8.0
	@azure/logger-1.1.2
	@azure/msal-browser-3.14.0
	@azure/msal-common-14.10.0
	@azure/msal-node-2.8.1
	@babel/runtime-7.24.7
	@breejs/later-4.2.0
	@colors/colors-1.6.0
	@dabh/diagnostics-2.0.3
	@datastax/astra-db-ts-0.1.4
	@eslint-community/eslint-utils-4.4.0
	@eslint-community/regexpp-4.10.0
	@eslint/eslintrc-2.1.4
	@eslint/js-8.57.0
	@fastify/busboy-2.1.1
	@google/generative-ai-0.1.3
	@graphql-typed-document-node/core-3.2.0
	@grpc/grpc-js-1.10.6
	@grpc/proto-loader-0.7.12
	@hapi/hoek-9.3.0
	@hapi/topo-5.1.0
	@huggingface/jinja-0.1.3
	@huggingface/jinja-0.2.2
	@humanwhocodes/config-array-0.11.14
	@humanwhocodes/module-importer-1.0.1
	@humanwhocodes/object-schema-2.0.3
	@inquirer/checkbox-2.3.2
	@inquirer/confirm-3.1.6
	@inquirer/core-7.1.3
	@inquirer/core-8.1.0
	@inquirer/editor-2.1.6
	@inquirer/expand-2.1.6
	@inquirer/figures-1.0.1
	@inquirer/input-2.1.6
	@inquirer/password-2.1.6
	@inquirer/prompts-4.3.3
	@inquirer/rawlist-2.1.6
	@inquirer/select-2.3.2
	@inquirer/type-1.3.1
	@js-joda/core-5.6.2
	@js-sdsl/ordered-map-4.4.2
	@ladjs/graceful-3.2.2
	@lancedb/lancedb-0.15.0
	@lancedb/lancedb-darwin-arm64-0.15.0
	@lancedb/lancedb-darwin-x64-0.15.0
	@lancedb/lancedb-linux-arm64-gnu-0.15.0
	@lancedb/lancedb-linux-arm64-musl-0.15.0
	@lancedb/lancedb-linux-x64-gnu-0.15.0
	@lancedb/lancedb-linux-x64-musl-0.15.0
	@lancedb/lancedb-win32-arm64-msvc-0.15.0
	@lancedb/lancedb-win32-x64-msvc-0.15.0
	@langchain/anthropic-0.1.16
	@langchain/aws-0.0.5
	@langchain/community-0.0.53
	@langchain/core-0.1.61
	@langchain/core-0.2.18
	@langchain/openai-0.0.28
	@langchain/textsplitters-0.0.0
	@mapbox/node-pre-gyp-1.0.11
	@mintplex-labs/bree-9.2.5
	@mintplex-labs/express-ws-5.0.7
	@modelcontextprotocol/sdk-1.11.0
	@nodelib/fs.scandir-2.1.5
	@nodelib/fs.stat-2.0.5
	@nodelib/fs.walk-1.2.8
	@petamoriken/float16-3.8.6
	@pinecone-database/pinecone-2.2.0
	@pkgr/core-0.1.1
	@prisma/client-5.3.1
	@prisma/engines-5.3.1
	@prisma/engines-version-5.3.1-2.61e140623197a131c2a6189271ffee05a7aa9a59
	@protobufjs/aspromise-1.1.2
	@protobufjs/base64-1.1.2
	@protobufjs/codegen-2.0.4
	@protobufjs/eventemitter-1.1.0
	@protobufjs/fetch-1.1.0
	@protobufjs/float-1.0.2
	@protobufjs/inquire-1.1.0
	@protobufjs/path-1.1.2
	@protobufjs/pool-1.1.0
	@protobufjs/utf8-1.1.0
	@qdrant/js-client-rest-1.9.0
	@qdrant/openapi-typescript-fetch-1.2.6
	@sevinf/maybe-0.5.0
	@sideway/address-4.1.5
	@sideway/formula-3.0.1
	@sideway/pinpoint-2.0.0
	@sinclair/typebox-0.29.6
	@smithy/abort-controller-3.1.1
	@smithy/abort-controller-4.0.2
	@smithy/abort-controller-4.2.0
	@smithy/config-resolver-3.0.5
	@smithy/config-resolver-4.1.0
	@smithy/config-resolver-4.3.0
	@smithy/core-2.2.8
	@smithy/core-3.14.0
	@smithy/core-3.2.0
	@smithy/credential-provider-imds-3.1.4
	@smithy/credential-provider-imds-4.0.2
	@smithy/credential-provider-imds-4.2.0
	@smithy/eventstream-codec-3.1.2
	@smithy/eventstream-codec-4.0.2
	@smithy/eventstream-serde-browser-3.0.5
	@smithy/eventstream-serde-browser-4.0.2
	@smithy/eventstream-serde-config-resolver-3.0.3
	@smithy/eventstream-serde-config-resolver-4.1.0
	@smithy/eventstream-serde-node-3.0.4
	@smithy/eventstream-serde-node-4.0.2
	@smithy/eventstream-serde-universal-3.0.4
	@smithy/eventstream-serde-universal-4.0.2
	@smithy/fetch-http-handler-3.2.2
	@smithy/fetch-http-handler-5.0.2
	@smithy/fetch-http-handler-5.3.0
	@smithy/hash-node-3.0.3
	@smithy/hash-node-4.0.2
	@smithy/hash-node-4.2.0
	@smithy/invalid-dependency-3.0.3
	@smithy/invalid-dependency-4.0.2
	@smithy/invalid-dependency-4.2.0
	@smithy/is-array-buffer-2.2.0
	@smithy/is-array-buffer-3.0.0
	@smithy/is-array-buffer-4.0.0
	@smithy/is-array-buffer-4.2.0
	@smithy/middleware-content-length-3.0.4
	@smithy/middleware-content-length-4.0.2
	@smithy/middleware-content-length-4.2.0
	@smithy/middleware-endpoint-3.0.5
	@smithy/middleware-endpoint-4.1.0
	@smithy/middleware-endpoint-4.3.0
	@smithy/middleware-retry-3.0.11
	@smithy/middleware-retry-4.1.0
	@smithy/middleware-retry-4.4.0
	@smithy/middleware-serde-3.0.3
	@smithy/middleware-serde-4.0.3
	@smithy/middleware-serde-4.2.0
	@smithy/middleware-stack-3.0.3
	@smithy/middleware-stack-4.0.2
	@smithy/middleware-stack-4.2.0
	@smithy/node-config-provider-3.1.4
	@smithy/node-config-provider-4.0.2
	@smithy/node-config-provider-4.3.0
	@smithy/node-http-handler-3.1.3
	@smithy/node-http-handler-4.0.4
	@smithy/node-http-handler-4.3.0
	@smithy/property-provider-3.1.3
	@smithy/property-provider-4.0.2
	@smithy/property-provider-4.2.0
	@smithy/protocol-http-4.0.4
	@smithy/protocol-http-5.1.0
	@smithy/protocol-http-5.3.0
	@smithy/querystring-builder-3.0.3
	@smithy/querystring-builder-4.0.2
	@smithy/querystring-builder-4.2.0
	@smithy/querystring-parser-3.0.3
	@smithy/querystring-parser-4.0.2
	@smithy/querystring-parser-4.2.0
	@smithy/service-error-classification-3.0.3
	@smithy/service-error-classification-4.0.2
	@smithy/service-error-classification-4.2.0
	@smithy/shared-ini-file-loader-3.1.4
	@smithy/shared-ini-file-loader-4.0.2
	@smithy/shared-ini-file-loader-4.3.0
	@smithy/signature-v4-4.0.0
	@smithy/signature-v4-5.0.2
	@smithy/signature-v4-5.3.0
	@smithy/smithy-client-3.1.9
	@smithy/smithy-client-4.2.0
	@smithy/smithy-client-4.7.0
	@smithy/types-3.3.0
	@smithy/types-4.2.0
	@smithy/types-4.6.0
	@smithy/url-parser-3.0.3
	@smithy/url-parser-4.0.2
	@smithy/url-parser-4.2.0
	@smithy/util-base64-3.0.0
	@smithy/util-base64-4.0.0
	@smithy/util-base64-4.2.0
	@smithy/util-body-length-browser-3.0.0
	@smithy/util-body-length-browser-4.0.0
	@smithy/util-body-length-browser-4.2.0
	@smithy/util-body-length-node-3.0.0
	@smithy/util-body-length-node-4.0.0
	@smithy/util-body-length-node-4.2.0
	@smithy/util-buffer-from-2.2.0
	@smithy/util-buffer-from-3.0.0
	@smithy/util-buffer-from-4.0.0
	@smithy/util-buffer-from-4.2.0
	@smithy/util-config-provider-3.0.0
	@smithy/util-config-provider-4.0.0
	@smithy/util-config-provider-4.2.0
	@smithy/util-defaults-mode-browser-3.0.11
	@smithy/util-defaults-mode-browser-4.0.8
	@smithy/util-defaults-mode-browser-4.2.0
	@smithy/util-defaults-mode-node-3.0.11
	@smithy/util-defaults-mode-node-4.0.8
	@smithy/util-defaults-mode-node-4.2.0
	@smithy/util-endpoints-2.0.5
	@smithy/util-endpoints-3.0.2
	@smithy/util-endpoints-3.2.0
	@smithy/util-hex-encoding-3.0.0
	@smithy/util-hex-encoding-4.0.0
	@smithy/util-hex-encoding-4.2.0
	@smithy/util-middleware-3.0.3
	@smithy/util-middleware-4.0.2
	@smithy/util-middleware-4.2.0
	@smithy/util-retry-3.0.3
	@smithy/util-retry-4.0.2
	@smithy/util-retry-4.2.0
	@smithy/util-stream-3.1.1
	@smithy/util-stream-4.2.0
	@smithy/util-stream-4.4.0
	@smithy/util-uri-escape-3.0.0
	@smithy/util-uri-escape-4.0.0
	@smithy/util-uri-escape-4.2.0
	@smithy/util-utf8-2.3.0
	@smithy/util-utf8-3.0.0
	@smithy/util-utf8-4.0.0
	@smithy/util-utf8-4.2.0
	@smithy/util-waiter-4.2.0
	@smithy/uuid-1.1.0
	@swc/helpers-0.5.15
	@tediousjs/connection-string-0.5.0
	@types/command-line-args-5.2.3
	@types/command-line-usage-5.0.4
	@types/lodash-4.17.6
	@types/long-4.0.2
	@types/mute-stream-0.0.4
	@types/node-18.19.31
	@types/node-20.12.7
	@types/node-20.17.16
	@types/node-fetch-2.6.11
	@types/readable-stream-4.0.14
	@types/retry-0.12.0
	@types/triple-beam-1.3.5
	@types/uuid-9.0.8
	@types/wrap-ansi-3.0.0
	@ungap/structured-clone-1.2.0
	@xenova/transformers-2.17.2
	@zilliz/milvus2-sdk-node-2.4.2
	abbrev-1.1.1
	abort-controller-3.0.0
	accepts-1.3.8
	accepts-2.0.0
	acorn-7.4.1
	acorn-8.11.3
	acorn-jsx-5.3.2
	adm-zip-0.5.16
	agent-base-6.0.2
	agent-base-7.1.1
	agentkeepalive-4.5.0
	ajv-6.12.6
	ajv-8.13.0
	ansi-escapes-4.3.2
	ansi-regex-5.0.1
	ansi-styles-4.3.0
	ansi-styles-5.2.0
	anymatch-3.1.3
	apache-arrow-19.0.0
	append-field-1.0.0
	aproba-2.0.0
	are-we-there-yet-2.0.0
	argparse-2.0.1
	array-back-3.1.0
	array-back-6.2.2
	array-buffer-byte-length-1.0.1
	array-flatten-1.1.1
	array-includes-3.1.8
	array.prototype.findlast-1.2.5
	array.prototype.flat-1.3.2
	array.prototype.flatmap-1.3.2
	array.prototype.toreversed-1.1.2
	array.prototype.tosorted-1.1.3
	arraybuffer.prototype.slice-1.0.3
	async-3.2.5
	asynckit-0.4.0
	available-typed-arrays-1.0.7
	aws-ssl-profiles-1.1.1
	axios-1.6.8
	b4a-1.6.6
	balanced-match-1.0.2
	bare-events-2.2.2
	bare-fs-2.3.0
	bare-os-2.3.0
	bare-path-2.1.2
	bare-stream-1.0.0
	base-64-0.1.0
	base64-js-1.5.1
	bcrypt-5.1.1
	binary-extensions-2.3.0
	binary-search-1.3.6
	bl-4.1.0
	bl-6.0.12
	body-parser-1.20.2
	body-parser-2.1.0
	boolbase-1.0.0
	boolean-3.2.0
	bowser-2.11.0
	brace-expansion-1.1.11
	braces-3.0.2
	bson-6.6.0
	buffer-5.7.1
	buffer-6.0.3
	buffer-equal-constant-time-1.0.1
	buffer-from-1.1.2
	busboy-1.6.0
	bytes-3.1.2
	call-bind-1.0.7
	call-bind-apply-helpers-1.0.2
	call-bound-1.0.4
	callsites-3.1.0
	camelcase-6.3.0
	chalk-4.1.2
	chalk-template-0.4.0
	chardet-0.7.0
	charenc-0.0.2
	check-disk-space-3.4.0
	cheerio-1.0.0
	cheerio-select-2.1.0
	chokidar-3.6.0
	chownr-1.1.4
	chownr-2.0.0
	chromadb-2.0.1
	chromadb-default-embed-2.14.0
	cli-spinners-2.9.2
	cli-width-4.1.0
	cliui-8.0.1
	cohere-ai-7.19.0
	cohere-ai-7.9.5
	color-3.2.1
	color-4.2.3
	color-convert-1.9.3
	color-convert-2.0.1
	color-name-1.1.3
	color-name-1.1.4
	color-string-1.9.1
	color-support-1.1.3
	colors-1.4.0
	colorspace-1.1.4
	combine-errors-3.0.3
	combined-stream-1.0.8
	command-exists-1.2.9
	command-line-args-5.2.1
	command-line-args-6.0.1
	command-line-usage-7.0.1
	command-line-usage-7.0.3
	commander-10.0.1
	commander-11.1.0
	commander-8.3.0
	concat-map-0.0.1
	concat-stream-1.6.2
	console-control-strings-1.1.0
	content-disposition-0.5.4
	content-disposition-1.0.0
	content-type-1.0.5
	convict-6.2.4
	cookie-0.6.0
	cookie-0.7.1
	cookie-signature-1.0.6
	cookie-signature-1.2.2
	core-util-is-1.0.3
	cors-2.8.5
	cron-validate-1.4.5
	cross-env-7.0.3
	cross-fetch-3.1.8
	cross-spawn-7.0.3
	cross-spawn-7.0.6
	crypt-0.0.2
	css-select-5.1.0
	css-what-6.1.0
	custom-error-instance-2.1.1
	data-view-buffer-1.0.1
	data-view-byte-length-1.0.1
	data-view-byte-offset-1.0.0
	dayjs-1.11.11
	debug-2.6.9
	debug-3.2.7
	debug-4.3.4
	debug-4.3.6
	debug-4.4.0
	decamelize-1.2.0
	decompress-response-6.0.0
	deep-extend-0.6.0
	deep-is-0.1.4
	deepmerge-4.3.1
	define-data-property-1.1.4
	define-lazy-prop-2.0.0
	define-properties-1.2.1
	delayed-stream-1.0.0
	delegates-1.0.0
	denque-2.1.0
	depd-2.0.0
	destroy-1.2.0
	detect-libc-2.0.3
	digest-fetch-1.3.0
	doctrine-2.1.0
	doctrine-3.0.0
	dom-serializer-2.0.0
	domelementtype-2.3.0
	domhandler-5.0.3
	domutils-3.1.0
	domutils-3.2.2
	dotenv-16.4.5
	dunder-proto-1.0.1
	ecdsa-sig-formatter-1.0.11
	ee-first-1.1.1
	elevenlabs-0.5.0
	emoji-regex-8.0.0
	enabled-2.0.0
	encode32-1.1.0
	encodeurl-1.0.2
	encodeurl-2.0.0
	encoding-0.1.13
	encoding-sniffer-0.2.0
	end-of-stream-1.4.4
	entities-4.5.0
	es-abstract-1.23.3
	es-aggregate-error-1.0.13
	es-define-property-1.0.0
	es-define-property-1.0.1
	es-errors-1.3.0
	es-iterator-helpers-1.0.19
	es-object-atoms-1.0.0
	es-object-atoms-1.1.1
	es-set-tostringtag-2.0.3
	es-shim-unscopables-1.0.2
	es-to-primitive-1.2.1
	escalade-3.1.2
	escape-html-1.0.3
	escape-string-regexp-4.0.0
	eslint-8.57.0
	eslint-config-prettier-9.1.0
	eslint-plugin-ft-flow-3.0.7
	eslint-plugin-prettier-5.1.3
	eslint-plugin-react-7.34.1
	eslint-plugin-react-hooks-4.6.2
	eslint-plugin-react-refresh-0.4.6
	eslint-scope-7.2.2
	eslint-visitor-keys-3.4.3
	espree-9.6.1
	esquery-1.5.0
	esrecurse-4.3.0
	estraverse-5.3.0
	esutils-2.0.3
	etag-1.8.1
	event-target-shim-5.0.1
	eventemitter3-4.0.7
	events-3.3.0
	eventsource-3.0.5
	eventsource-parser-3.0.0
	execa-5.1.1
	expand-template-2.0.3
	expr-eval-2.0.2
	express-4.19.2
	express-5.0.1
	express-rate-limit-7.5.0
	external-editor-3.1.0
	extract-files-9.0.0
	extract-json-from-string-1.0.1
	fast-deep-equal-3.1.3
	fast-diff-1.3.0
	fast-fifo-1.3.2
	fast-json-stable-stringify-2.1.0
	fast-levenshtein-2.0.6
	fast-levenshtein-3.0.0
	fast-xml-parser-4.2.5
	fast-xml-parser-4.4.1
	fast-xml-parser-4.5.0
	fast-xml-parser-5.2.5
	fastest-levenshtein-1.0.16
	fastq-1.17.1
	fecha-4.2.3
	file-entry-cache-6.0.1
	fill-range-7.0.1
	finalhandler-1.2.0
	finalhandler-2.1.0
	find-replace-3.0.0
	find-replace-5.0.2
	find-up-5.0.0
	flat-5.0.2
	flat-cache-3.2.0
	flatbuffers-1.12.0
	flatbuffers-24.12.23
	flatted-3.3.1
	flow-bin-0.217.2
	flow-remove-types-2.235.1
	fn.name-1.1.0
	follow-redirects-1.15.6
	for-each-0.3.3
	form-data-3.0.1
	form-data-4.0.0
	form-data-encoder-1.7.2
	form-data-encoder-4.1.0
	formdata-node-4.4.1
	formdata-node-6.0.3
	forwarded-0.2.0
	fresh-0.5.2
	fresh-2.0.0
	fs-constants-1.0.0
	fs-minipass-2.1.0
	fs.realpath-1.0.0
	fsevents-2.3.3
	function-bind-1.1.2
	function.prototype.name-1.1.6
	functions-have-names-1.2.3
	gauge-3.0.2
	generate-function-2.3.1
	generic-pool-3.9.0
	get-caller-file-2.0.5
	get-intrinsic-1.2.4
	get-intrinsic-1.3.0
	get-proto-1.0.1
	get-stream-6.0.1
	get-symbol-description-1.0.2
	github-from-package-0.0.0
	glob-7.2.3
	glob-parent-5.1.2
	glob-parent-6.0.2
	globals-13.24.0
	globalthis-1.0.4
	gopd-1.0.1
	gopd-1.2.0
	graphemer-1.4.0
	graphql-16.9.0
	graphql-request-5.2.0
	guid-typescript-1.0.9
	has-bigints-1.0.2
	has-flag-3.0.0
	has-flag-4.0.0
	has-property-descriptors-1.0.2
	has-proto-1.0.3
	has-symbols-1.0.3
	has-symbols-1.1.0
	has-tostringtag-1.0.2
	has-unicode-2.0.1
	hasown-2.0.2
	he-1.2.0
	hermes-eslint-0.15.1
	hermes-estree-0.15.1
	hermes-estree-0.20.1
	hermes-parser-0.15.1
	hermes-parser-0.20.1
	htmlparser2-9.1.0
	http-errors-2.0.0
	http-proxy-agent-7.0.2
	https-proxy-agent-5.0.1
	https-proxy-agent-7.0.4
	human-interval-2.0.1
	human-signals-2.1.0
	humanize-ms-1.2.1
	iconv-lite-0.4.24
	iconv-lite-0.5.2
	iconv-lite-0.6.3
	ieee754-1.2.1
	ignore-5.3.1
	ignore-by-default-1.0.1
	import-fresh-3.3.0
	imurmurhash-0.1.4
	inflight-1.0.6
	inherits-2.0.4
	ini-1.3.8
	internal-slot-1.0.7
	ip-2.0.1
	ipaddr.js-1.9.1
	is-any-array-2.0.1
	is-array-buffer-3.0.4
	is-arrayish-0.3.2
	is-async-function-2.0.0
	is-bigint-1.0.4
	is-binary-path-2.1.0
	is-boolean-object-1.1.2
	is-buffer-1.1.6
	is-callable-1.2.7
	is-core-module-2.13.1
	is-data-view-1.0.1
	is-date-object-1.0.5
	is-docker-2.2.1
	is-extglob-1.0.0
	is-extglob-2.1.1
	is-finalizationregistry-1.0.2
	is-fullwidth-code-point-3.0.0
	is-generator-function-1.0.10
	is-glob-2.0.1
	is-glob-4.0.3
	is-invalid-path-0.1.0
	is-map-2.0.3
	is-negative-zero-2.0.3
	is-number-7.0.0
	is-number-object-1.0.7
	is-path-inside-3.0.3
	is-promise-4.0.0
	is-property-1.0.2
	is-regex-1.1.4
	is-set-2.0.3
	is-shared-array-buffer-1.0.3
	is-stream-2.0.1
	is-string-1.0.7
	is-string-and-not-blank-0.0.2
	is-string-blank-1.0.1
	is-symbol-1.0.4
	is-typed-array-1.1.13
	is-valid-path-0.1.1
	is-weakmap-2.0.2
	is-weakref-1.0.2
	is-weakset-2.0.3
	is-wsl-2.2.0
	isarray-1.0.0
	isarray-2.0.5
	isexe-2.0.0
	isomorphic-fetch-3.0.0
	iterator.prototype-1.1.2
	joi-17.13.0
	joi-password-complexity-5.2.0
	js-base64-3.7.2
	js-base64-3.7.7
	js-md4-0.3.2
	js-tiktoken-1.0.11
	js-tiktoken-1.0.12
	js-tokens-4.0.0
	js-yaml-4.1.0
	jsbi-4.3.0
	json-bignum-0.0.3
	json-buffer-3.0.1
	json-schema-traverse-0.4.1
	json-schema-traverse-1.0.0
	json-stable-stringify-without-jsonify-1.0.1
	json5-2.2.3
	jsonpointer-5.0.1
	jsonrepair-3.7.0
	jsonwebtoken-9.0.2
	jsx-ast-utils-3.3.5
	jwa-1.4.1
	jwa-2.0.0
	jws-3.2.2
	jws-4.0.0
	keyv-4.5.4
	kuler-2.0.0
	ky-0.33.3
	langchain-0.1.36
	langchainhub-0.0.8
	langsmith-0.1.21
	langsmith-0.1.39
	levn-0.4.1
	lil-http-terminator-1.2.3
	locate-path-6.0.0
	lodash-4.17.21
	lodash-es-4.17.21
	lodash._baseiteratee-4.7.0
	lodash._basetostring-4.12.0
	lodash._baseuniq-4.6.0
	lodash._createset-4.0.3
	lodash._root-3.0.1
	lodash._stringtopath-4.8.0
	lodash.camelcase-4.3.0
	lodash.clonedeep-4.5.0
	lodash.includes-4.3.0
	lodash.isboolean-3.0.3
	lodash.isinteger-4.0.4
	lodash.isnumber-3.0.3
	lodash.isplainobject-4.0.6
	lodash.isstring-4.0.1
	lodash.merge-4.6.2
	lodash.once-4.1.1
	lodash.uniqby-4.5.0
	logform-2.6.0
	long-4.0.0
	long-5.2.3
	loose-envify-1.4.0
	lru-cache-6.0.0
	lru-cache-7.18.3
	lru-cache-8.0.5
	lru-cache-9.1.2
	make-dir-3.1.0
	math-intrinsics-1.1.0
	md5-2.3.0
	media-typer-0.3.0
	media-typer-1.1.0
	merge-descriptors-1.0.1
	merge-descriptors-2.0.0
	merge-stream-2.0.0
	methods-1.1.2
	mime-1.6.0
	mime-3.0.0
	mime-db-1.52.0
	mime-db-1.54.0
	mime-types-2.1.35
	mime-types-3.0.1
	mimic-fn-2.1.0
	mimic-response-3.1.0
	minimatch-3.1.2
	minimist-1.2.8
	minipass-3.3.6
	minipass-5.0.0
	minizlib-2.1.2
	mkdirp-0.5.6
	mkdirp-1.0.4
	mkdirp-classic-0.5.3
	ml-array-mean-1.1.6
	ml-array-sum-1.1.6
	ml-distance-4.0.1
	ml-distance-euclidean-2.0.0
	ml-tree-similarity-1.0.0
	moment-2.30.1
	ms-2.0.0
	ms-2.1.2
	ms-2.1.3
	mssql-10.0.2
	multer-1.4.5-lts.1
	mustache-4.2.0
	mute-stream-1.0.0
	mysql2-3.10.3
	named-placeholders-1.1.3
	nanoclone-0.2.1
	napi-build-utils-1.0.2
	native-duplexpair-1.0.0
	natural-compare-1.4.0
	negotiator-0.6.3
	negotiator-1.0.0
	node-abi-3.62.0
	node-abort-controller-3.1.1
	node-addon-api-5.1.0
	node-addon-api-6.1.0
	node-domexception-1.0.0
	node-fetch-2.7.0
	node-html-markdown-1.3.0
	node-html-parser-6.1.13
	node-modules-regexp-1.0.0
	nodemon-2.0.22
	nopt-1.0.10
	nopt-5.0.0
	normalize-path-3.0.0
	npm-run-path-4.0.1
	npmlog-5.0.1
	nth-check-2.1.1
	num-sort-2.1.0
	numbered-1.1.0
	object-assign-4.1.1
	object-inspect-1.13.1
	object-inspect-1.13.4
	object-keys-1.1.1
	object.assign-4.1.5
	object.entries-1.1.8
	object.fromentries-2.0.8
	object.hasown-1.1.4
	object.values-1.2.0
	ollama-0.5.12
	on-finished-2.4.1
	once-1.4.0
	one-time-1.0.0
	onetime-5.1.2
	onnx-proto-4.0.4
	onnxruntime-common-1.14.0
	onnxruntime-node-1.14.0
	onnxruntime-web-1.14.0
	open-8.4.2
	openai-4.38.5
	openai-4.39.1
	openai-4.95.1
	openapi-types-12.1.3
	optionator-0.9.4
	os-tmpdir-1.0.2
	p-finally-1.0.0
	p-is-promise-3.0.0
	p-limit-3.1.0
	p-locate-5.0.0
	p-queue-6.6.2
	p-retry-4.6.2
	p-timeout-3.2.0
	p-wait-for-3.2.0
	parent-module-1.0.1
	parse5-7.2.1
	parse5-htmlparser2-tree-adapter-7.1.0
	parse5-parser-stream-7.1.2
	parseurl-1.3.3
	path-exists-4.0.0
	path-is-absolute-1.0.1
	path-key-3.1.1
	path-parse-1.0.7
	path-to-regexp-0.1.7
	path-to-regexp-8.2.0
	pg-8.11.5
	pg-cloudflare-1.1.1
	pg-connection-string-2.6.4
	pg-int8-1.0.1
	pg-pool-3.6.2
	pg-protocol-1.6.1
	pg-types-2.2.0
	pgpass-1.0.5
	picomatch-2.3.1
	pinecone-client-1.1.2
	pirates-3.0.2
	pkce-challenge-5.0.0
	platform-1.3.6
	pluralize-8.0.0
	possible-typed-array-names-1.0.0
	postgres-array-2.0.0
	postgres-bytea-1.0.0
	postgres-date-1.0.7
	postgres-interval-1.2.0
	posthog-node-3.6.3
	prebuild-install-7.1.2
	prelude-ls-1.2.1
	prettier-3.2.5
	prettier-linter-helpers-1.0.0
	prisma-5.3.1
	process-0.11.10
	process-nextick-args-2.0.1
	prop-types-15.8.1
	property-expr-2.0.6
	protobufjs-6.11.4
	protobufjs-7.2.6
	proxy-addr-2.0.7
	proxy-from-env-1.1.0
	pstree.remy-1.1.8
	pump-3.0.0
	punycode-2.3.1
	qs-6.11.0
	qs-6.11.2
	qs-6.13.0
	qs-6.14.0
	queue-microtask-1.2.3
	queue-tick-1.0.1
	range-parser-1.2.1
	raw-body-2.5.2
	raw-body-3.0.0
	rc-1.2.8
	react-is-16.13.1
	readable-stream-2.3.8
	readable-stream-3.6.2
	readable-stream-4.5.2
	readable-stream-4.7.0
	readdirp-3.6.0
	reflect-metadata-0.2.2
	reflect.getprototypeof-1.0.6
	regenerator-runtime-0.14.1
	regexp.prototype.flags-1.5.2
	require-directory-2.1.1
	require-from-string-2.0.2
	resolve-2.0.0-next.5
	resolve-from-4.0.0
	retry-0.13.1
	reusify-1.0.4
	rfdc-1.3.1
	rimraf-3.0.2
	router-2.1.0
	run-parallel-1.2.0
	rusha-0.8.14
	safe-array-concat-1.1.2
	safe-buffer-5.1.2
	safe-buffer-5.2.1
	safe-regex-test-1.0.3
	safe-stable-stringify-2.4.3
	safe-timers-1.1.0
	safer-buffer-2.1.2
	semver-5.7.2
	semver-6.3.1
	semver-7.0.0
	semver-7.6.0
	send-0.18.0
	send-1.1.0
	seq-queue-0.0.5
	serve-static-1.15.0
	serve-static-2.1.0
	set-blocking-2.0.0
	set-function-length-1.2.2
	set-function-name-2.0.2
	setprototypeof-1.2.0
	sharp-0.32.6
	shebang-command-2.0.0
	shebang-regex-3.0.0
	side-channel-1.0.6
	side-channel-1.1.0
	side-channel-list-1.0.0
	side-channel-map-1.0.1
	side-channel-weakmap-1.0.2
	signal-exit-3.0.7
	signal-exit-4.1.0
	simple-concat-1.0.1
	simple-get-4.0.1
	simple-swizzle-0.2.2
	simple-update-notifier-1.1.0
	slugify-1.6.6
	split2-4.2.0
	sprintf-js-1.1.3
	sqlstring-2.3.3
	stack-trace-0.0.10
	statuses-2.0.1
	stoppable-1.1.0
	stream-read-all-3.0.1
	streamsearch-1.1.0
	streamx-2.16.1
	string-natural-compare-3.0.1
	string-width-4.2.3
	string.prototype.matchall-4.0.11
	string.prototype.trim-1.2.9
	string.prototype.trimend-1.0.8
	string.prototype.trimstart-1.0.8
	string_decoder-1.1.1
	string_decoder-1.3.0
	strip-ansi-6.0.1
	strip-final-newline-2.0.0
	strip-json-comments-2.0.1
	strip-json-comments-3.1.1
	strnum-1.0.5
	strnum-2.1.1
	supports-color-5.5.0
	supports-color-7.2.0
	supports-preserve-symlinks-flag-1.0.0
	swagger-autogen-2.23.7
	swagger-ui-dist-5.17.2
	swagger-ui-express-5.0.0
	synckit-0.8.8
	table-layout-3.0.2
	table-layout-4.1.1
	tar-6.2.1
	tar-fs-2.1.1
	tar-fs-3.0.6
	tar-stream-2.2.0
	tar-stream-3.1.7
	tarn-3.0.2
	tedious-16.7.1
	text-hex-1.0.0
	text-table-0.2.0
	tmp-0.0.33
	to-regex-range-5.0.1
	toidentifier-1.0.1
	toposort-2.0.2
	touch-3.1.0
	tr46-0.0.3
	triple-beam-1.4.1
	truncate-3.0.0
	tslib-2.6.2
	tslib-2.8.1
	tunnel-agent-0.6.0
	type-check-0.4.0
	type-fest-0.20.2
	type-fest-0.21.3
	type-is-1.6.18
	type-is-2.0.0
	typed-array-buffer-1.0.2
	typed-array-byte-length-1.0.1
	typed-array-byte-offset-1.0.2
	typed-array-length-1.0.6
	typedarray-0.0.6
	typical-4.0.0
	typical-7.1.1
	typical-7.3.0
	unbox-primitive-1.0.2
	undefsafe-2.0.5
	undici-5.28.4
	undici-6.21.1
	undici-types-5.26.5
	undici-types-6.19.8
	unpipe-1.0.0
	uri-js-4.4.1
	url-join-4.0.1
	url-pattern-1.0.3
	util-deprecate-1.0.2
	utils-merge-1.0.1
	uuid-10.0.0
	uuid-8.3.2
	uuid-9.0.1
	uuid-apikey-1.5.3
	vary-1.1.2
	vlq-0.2.3
	voyageai-0.0.3
	weaviate-ts-client-1.6.0
	web-streams-polyfill-3.3.3
	web-streams-polyfill-4.0.0-beta.3
	webidl-conversions-3.0.1
	whatwg-encoding-3.1.1
	whatwg-fetch-3.6.20
	whatwg-mimetype-4.0.0
	whatwg-url-5.0.0
	which-2.0.2
	which-boxed-primitive-1.0.2
	which-builtin-type-1.1.3
	which-collection-1.0.2
	which-typed-array-1.1.15
	wide-align-1.1.5
	winston-3.13.0
	winston-transport-4.7.0
	word-wrap-1.2.5
	wordwrapjs-5.1.0
	wrap-ansi-6.2.0
	wrap-ansi-7.0.0
	wrappy-1.0.2
	ws-7.5.10
	xtend-4.0.2
	y18n-5.0.8
	yallist-4.0.0
	yaml-2.4.2
	yargs-17.7.2
	yargs-parser-20.2.9
	yargs-parser-21.1.1
	yocto-queue-0.1.0
	yup-0.32.9
	zod-3.23.5
	zod-3.24.2
	zod-to-json-schema-3.23.0
	zod-to-json-schema-3.24.5
)
yarn_set_globals
SRC_URI="${YARN_SRC_URI}
	https://github.com/Mintplex-Labs/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
RESTRICT="mirror"
LICENSE="0BSD Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT Python-2.0 Unlicense WTFPL"
# KEYWORDS="~amd64"

DEPEND="dev-db/prisma-engines media-libs/vips"

#PREBUILT_IGNORE=(
#	./node_modules/@prisma/engines/libquery_engine-debian-openssl-1.0.x.so.node
#	./node_modules/@prisma/engines/schema-engine-debian-openssl-1.0.x
#	./node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare
#	./node_modules/bare-os/prebuilds/linux-arm64/bare-os.bare
#)

# Binaries
# - bcrypt/lib/binding/napi-v3/bcrypt_lib.node: this will not build when using the ebuild command
#   but it will when under emerge due to the network sandbox
# - sharp/build/Release/sharp-linux-x64.node: this will build because of vips being installed

S="${WORKDIR}"

src_install() {
	yarn_src_install
	fperms 0755 "/usr/$(get_libdir)/${PN}/node_modules/anything-llm-server/bin/${PN}.js"
	dosym "../$(get_libdir)/${PN}/node_modules/anything-llm-server/bin/${PN}.js" "/usr/bin/${PN}"
	systemd_newunit "${FILESDIR}/${PN}.service" "${PN}@.service"
}