Files
sousa-gecko/toolkit/components/ml/jar.mn
T
Tim Xia e84a5bc989 Bug 2010108: Add AIFeature base class for GenAI components, r=atossou,mstriemer,ai-ondevice-reviewers
Introduces common interface (id, enable, disable, isEnabled) for AI features.

- Add toolkit/components/ml/AIFeature.sys.mjs
- Update AIFeature interface enable() and disable() to be async
- Changed `static id()` to `static get id()` - now accessed as `AIFeature.id` instead of `AIFeature.id()`
- Changed `static isEnabled()` to `static get isEnabled()` - now accessed as `AIFeature.isEnabled` instead of `AIFeature.isEnabled()`
- move it to jar.mn
- add isAllowed

Differential Revision: https://phabricator.services.mozilla.com/D278859
2026-01-14 20:02:45 +00:00

45 lines
3.6 KiB
Plaintext

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# For the vendored lib, see https://bugzilla.mozilla.org/show_bug.cgi?id=1890946
toolkit.jar:
content/global/ml/AIFeature.sys.mjs (AIFeature.sys.mjs)
content/global/ml/ClusterAlgos.sys.mjs (content/ClusterAlgos.sys.mjs)
content/global/ml/EngineProcess.sys.mjs (content/EngineProcess.sys.mjs)
content/global/ml/MLEngine.worker.mjs (content/MLEngine.worker.mjs)
content/global/ml/ModelHub.sys.mjs (content/ModelHub.sys.mjs)
content/global/ml/mozilla-logo.webp (content/mozilla-logo.webp)
content/global/ml/backends/ONNXPipeline.mjs (content/backends/ONNXPipeline.mjs)
content/global/ml/backends/Pipeline.mjs (content/backends/Pipeline.mjs)
content/global/ml/Utils.sys.mjs (content/Utils.sys.mjs)
content/global/ml/BlockWords.sys.mjs (content/BlockWords.sys.mjs)
content/global/ml/EmbeddingsGenerator.sys.mjs (content/nlp/EmbeddingsGenerator.sys.mjs)
content/global/ml/StopWords.sys.mjs (content/nlp/StopWords.sys.mjs)
content/global/ml/NLPUtils.sys.mjs (content/nlp/Utils.sys.mjs)
content/global/ml/OPFS.sys.mjs (content/OPFS.sys.mjs)
content/global/ml/ort.webgpu.mjs (vendor/ort.webgpu.mjs)
content/global/ml/ort-wasm-simd-threaded.jsep.mjs (vendor/ort-wasm-simd-threaded.jsep.mjs)
content/global/ml/transformers.js (vendor/transformers.js)
content/global/ml/wllama-module.mjs (vendor/wllama-module.mjs)
content/global/ml/backends/LlamaPipeline.mjs (content/backends/LlamaPipeline.mjs)
content/global/ml/ThomSample.mjs (content/ThomSample.mjs)
content/global/ml/backends/LlamaCppPipeline.mjs (content/backends/LlamaCppPipeline.mjs)
content/global/ml/backends/OpenAIPipeline.mjs (content/backends/OpenAIPipeline.mjs)
content/global/ml/backends/StaticEmbeddingsPipeline.mjs (content/backends/StaticEmbeddingsPipeline.mjs)
content/global/ml/openai.mjs (vendor/openai/dist/openai.mjs)
content/global/ml/MLTelemetry.sys.mjs (MLTelemetry.sys.mjs)
content/global/ml/security/ConditionEvaluator.sys.mjs (security/ConditionEvaluator.sys.mjs)
content/global/ml/security/DecisionTypes.sys.mjs (security/DecisionTypes.sys.mjs)
content/global/ml/security/PolicyEvaluator.sys.mjs (security/PolicyEvaluator.sys.mjs)
content/global/ml/security/SecurityLogger.sys.mjs (security/SecurityLogger.sys.mjs)
content/global/ml/security/SecurityOrchestrator.sys.mjs (security/SecurityOrchestrator.sys.mjs)
content/global/ml/security/SecurityUtils.sys.mjs (security/SecurityUtils.sys.mjs)
content/global/ml/security/policies/tool-execution-policies.json (security/policies/tool-execution-policies.json)
#ifdef NIGHTLY_BUILD
content/global/ml/ort.webgpu-dev.mjs (vendor/ort.webgpu-dev.mjs)
content/global/ml/transformers-dev.js (vendor/transformers-dev.js)
content/global/ml/wllama-module-dev.mjs (vendor/wllama-module-dev.mjs)
content/global/ml/openai-dev.mjs (vendor/openai/dist/openai-dev.mjs)
#endif