<commit_before># Telemetry Support Extension for Chrome OS

This repository contains code for the
[shared module](https://developer.chrome.com/docs/extensions/mv2/shared_modules/)
extension that acts as an API to access telemetry and diagnostics chrome
extension APIs.

The code in this repository contains most of the code from
[dpsl](https://source.chromium.org/chromium/chromium/src/+/main:chromeos/components/telemetry_extension_ui/resources/dpsl/)
 and is tweaked as a valid shared module chrome extension
 (with manifest.json ... etc).

# Usages

Chrome extensions can include this module in 'import'
[manifest](https://developer.chrome.com/docs/extensions/mv3/manifest/) entry.
If allowed*, the extension gains access to the set of telemetry and diagnostics
APIs. See
[examples](https://source.chromium.org/chromium/chromium/src/+/main:chromeos/components/telemetry_extension_ui/resources/dpsl/)
.

(*) Only allowed chrome extension IDs can import this extension. This is because
the underlying chrome extension APIs are only exposed to certain chrome
extension IDs. See [this](https://source.chromium.org/chromium/chromium/src/+/main:chrome/common/chromeos/extensions/api/_manifest_features.json;l=19)<commit_msg>edit README.md<commit_after># Telemetry Support Library for Chrome OS

This repository contains a library code that facilitate access telemetry and
diagnostics APIs on Chrome OS.

The code in this repository contains most of the code from
[dpsl](https://source.chromium.org/chromium/chromium/src/+/main:chromeos/components/telemetry_extension_ui/resources/dpsl/)
 and is tweaked to integrate with the Chrome OS system extension APIs.

# Usages

The library is published via npm and can be included by importing code.
The importing code represents a special type of chrome extensions
(chromeos_system_extension). It should package this library code with the
extenion resources before serving (inside the crx file).

npm package name: TBD.
Publishing status: In development.
{'fraction_non_alphanumeric': 0.07977922729553437, 'fraction_numerical': 0.002007024586051179, 'mean_word_length': 5.310126582278481, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3327860', 'n_tokens_mistral': 566, 'n_tokens_neox': 521, 'n_words': 204}