@framers/agentos-extensions 1.0.2 → 1.0.3
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/LICENSE +96 -21
- package/README.md +171 -23
- package/index.mjs +12 -0
- package/package.json +42 -27
- package/registry.json +1035 -214
- package/types.d.ts +1 -0
package/LICENSE
CHANGED
|
@@ -1,23 +1,98 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
10
|
+
|
|
11
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
12
|
+
|
|
13
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
14
|
+
|
|
15
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
16
|
+
|
|
17
|
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
18
|
+
|
|
19
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
20
|
+
|
|
21
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
|
22
|
+
|
|
23
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
|
24
|
+
|
|
25
|
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
|
26
|
+
|
|
27
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
|
28
|
+
|
|
29
|
+
2. Grant of Copyright License.
|
|
30
|
+
|
|
31
|
+
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
32
|
+
|
|
33
|
+
3. Grant of Patent License.
|
|
34
|
+
|
|
35
|
+
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
36
|
+
|
|
37
|
+
4. Redistribution.
|
|
38
|
+
|
|
39
|
+
You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
40
|
+
|
|
41
|
+
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
|
42
|
+
|
|
43
|
+
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
|
|
44
|
+
|
|
45
|
+
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
|
46
|
+
|
|
47
|
+
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
|
48
|
+
|
|
49
|
+
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
|
50
|
+
|
|
51
|
+
5. Submission of Contributions.
|
|
52
|
+
|
|
53
|
+
Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
|
54
|
+
|
|
55
|
+
6. Trademarks.
|
|
56
|
+
|
|
57
|
+
This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
58
|
+
|
|
59
|
+
7. Disclaimer of Warranty.
|
|
60
|
+
|
|
61
|
+
Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
62
|
+
|
|
63
|
+
8. Limitation of Liability.
|
|
64
|
+
|
|
65
|
+
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
66
|
+
|
|
67
|
+
9. Accepting Warranty or Additional Liability.
|
|
68
|
+
|
|
69
|
+
While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
70
|
+
|
|
71
|
+
END OF TERMS AND CONDITIONS
|
|
72
|
+
|
|
73
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
74
|
+
|
|
75
|
+
To apply the Apache License to your work, attach the following
|
|
76
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
77
|
+
replaced with your own identifying information. (Don't include
|
|
78
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
79
|
+
comment syntax for the file format. We also recommend that a
|
|
80
|
+
file or class name and description of purpose be included on the
|
|
81
|
+
same "printed page" as the copyright notice for easier
|
|
82
|
+
identification within third-party archives.
|
|
83
|
+
|
|
84
|
+
Copyright (c) 2025 Framers
|
|
85
|
+
|
|
86
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
87
|
+
you may not use this file except in compliance with the License.
|
|
88
|
+
You may obtain a copy of the License at
|
|
89
|
+
|
|
90
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
91
|
+
|
|
92
|
+
Unless required by applicable law or agreed to in writing, software
|
|
93
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
94
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
95
|
+
See the License for the specific language governing permissions and
|
|
96
|
+
limitations under the License.
|
|
22
97
|
|
|
23
98
|
|
package/README.md
CHANGED
|
@@ -1,31 +1,41 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<a href="https://agentos.sh"><img src="logos/agentos-primary-transparent-2x.png" alt="AgentOS" height="
|
|
2
|
+
<a href="https://agentos.sh"><img src="logos/agentos-primary-no-tagline-transparent-2x.png" alt="AgentOS" height="56" /></a>
|
|
3
3
|
|
|
4
|
-
<a href="https://frame.dev"
|
|
5
|
-
<br>
|
|
6
|
-
<small>by <a href="https://frame.dev" target="_blank" rel="noopener">Frame.dev</a></small>
|
|
4
|
+
<a href="https://frame.dev"><img src="logos/frame-logo-green-transparent-4x.png" alt="Frame.dev" height="40" /></a>
|
|
7
5
|
</p>
|
|
8
6
|
|
|
9
7
|
# AgentOS Extensions
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
Extension source code for AgentOS — tools, channel adapters, integrations, and starter templates.
|
|
12
10
|
|
|
13
11
|
[](https://github.com/framersai/agentos-extensions/actions)
|
|
14
|
-
[](https://opensource.org/licenses/Apache-2.0)
|
|
15
13
|
[](https://framersai.github.io/agentos-extensions/)
|
|
16
14
|
[](https://www.npmjs.com/package/@framers/agentos-extensions-registry)
|
|
17
15
|
[](https://www.npmjs.com/package/@framers/agentos-extensions)
|
|
18
16
|
|
|
19
|
-
##
|
|
17
|
+
## What This Package Is
|
|
20
18
|
|
|
21
|
-
|
|
19
|
+
This package contains the **actual implementation source code** for AgentOS extensions:
|
|
20
|
+
the Telegram adapter, web-search tool, voice providers, browser automation, channel adapters
|
|
21
|
+
for 37 platforms, and more. It also ships **starter templates** (`templates/`) for creating
|
|
22
|
+
new extensions from scratch.
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
**This is NOT a registry.** It is the source code that registries catalog. The relationship
|
|
25
|
+
between the two sibling packages is:
|
|
24
26
|
|
|
25
|
-
| Package |
|
|
26
|
-
|
|
27
|
-
|
|
|
28
|
-
|
|
|
27
|
+
| Package | Role |
|
|
28
|
+
|---------|------|
|
|
29
|
+
| **`@framers/agentos-extensions`** (this package) | Implementation source code, manifests, and templates |
|
|
30
|
+
| **`@framers/agentos-extensions-registry`** | Catalog/SDK that references this package's metadata and exposes `createCuratedManifest()` |
|
|
31
|
+
|
|
32
|
+
**Dependency direction:** `agentos-extensions-registry` depends on metadata from this package,
|
|
33
|
+
not the other way around. Extensions here are self-contained and can be installed individually
|
|
34
|
+
without the registry.
|
|
35
|
+
|
|
36
|
+
## Published Extensions
|
|
37
|
+
|
|
38
|
+
All extensions are published to npm under the `@framers` scope.
|
|
29
39
|
|
|
30
40
|
### Extensions
|
|
31
41
|
|
|
@@ -33,21 +43,27 @@ All extensions are published to npm under the `@framers` scope.
|
|
|
33
43
|
|---------|-------------|-----|
|
|
34
44
|
| [`@framers/agentos-ext-web-search`](./registry/curated/research/web-search) | Multi-provider web search & fact-checking | [](https://www.npmjs.com/package/@framers/agentos-ext-web-search) |
|
|
35
45
|
| [`@framers/agentos-ext-web-browser`](./registry/curated/research/web-browser) | Browser automation & content extraction | [](https://www.npmjs.com/package/@framers/agentos-ext-web-browser) |
|
|
46
|
+
| [`@framers/agentos-ext-web-scraper`](./registry/curated/research/web-scraper) | Progressive scraping with fetch, Playwright, stealth, recipes, and LLM fallback extraction | [](https://www.npmjs.com/package/@framers/agentos-ext-web-scraper) |
|
|
36
47
|
| [`@framers/agentos-ext-news-search`](./registry/curated/research/news-search) | News article search via NewsAPI | [](https://www.npmjs.com/package/@framers/agentos-ext-news-search) |
|
|
37
48
|
| [`@framers/agentos-ext-giphy`](./registry/curated/media/giphy) | GIF & sticker search via Giphy API | [](https://www.npmjs.com/package/@framers/agentos-ext-giphy) |
|
|
38
49
|
| [`@framers/agentos-ext-image-search`](./registry/curated/media/image-search) | Stock photo search (Pexels, Unsplash, Pixabay) | [](https://www.npmjs.com/package/@framers/agentos-ext-image-search) |
|
|
50
|
+
| [`@framers/agentos-ext-letterboxd`](./registry/curated/media/letterboxd) | Letterboxd movie lookup with review extraction and direct page fallback | [](https://www.npmjs.com/package/@framers/agentos-ext-letterboxd) |
|
|
51
|
+
| [`@framers/agentos-ext-omdb`](./registry/curated/media/omdb) | Movie and TV metadata with IMDB, Rotten Tomatoes, and Metacritic ratings | [](https://www.npmjs.com/package/@framers/agentos-ext-omdb) |
|
|
39
52
|
| [`@framers/agentos-ext-voice-synthesis`](./registry/curated/media/voice-synthesis) | Text-to-speech via ElevenLabs | [](https://www.npmjs.com/package/@framers/agentos-ext-voice-synthesis) |
|
|
40
53
|
| [`@framers/agentos-ext-cli-executor`](./registry/curated/system/cli-executor) | Shell command execution & file management | [](https://www.npmjs.com/package/@framers/agentos-ext-cli-executor) |
|
|
41
54
|
| [`@framers/agentos-ext-auth`](./registry/curated/auth) | JWT authentication & subscription management | [](https://www.npmjs.com/package/@framers/agentos-ext-auth) |
|
|
55
|
+
| [`@framers/agentos-ext-clearbit`](./registry/curated/integrations/clearbit) | Company and person enrichment via Clearbit | [](https://www.npmjs.com/package/@framers/agentos-ext-clearbit) |
|
|
42
56
|
| [`@framers/agentos-ext-telegram`](./registry/curated/integrations/telegram) | Telegram Bot API integration | [](https://www.npmjs.com/package/@framers/agentos-ext-telegram) |
|
|
43
|
-
| [`@framers/agentos-ext-wunderbot-feeds`](
|
|
57
|
+
| [`@framers/agentos-ext-wunderbot-feeds`](https://www.npmjs.com/package/@framers/agentos-ext-wunderbot-feeds) | Wunderbot feed ingestion + social content pipeline integration | [](https://www.npmjs.com/package/@framers/agentos-ext-wunderbot-feeds) |
|
|
44
58
|
| [`@framers/agentos-ext-telegram-bot`](./registry/curated/communications/telegram-bot) | Telegram bot communications handler | [](https://www.npmjs.com/package/@framers/agentos-ext-telegram-bot) |
|
|
45
59
|
| [`@framers/agentos-ext-anchor-providers`](./registry/curated/provenance/anchor-providers) | Solana on-chain provenance anchoring | [](https://www.npmjs.com/package/@framers/agentos-ext-anchor-providers) |
|
|
46
|
-
| [`@framers/agentos-ext-tip-ingestion`](
|
|
60
|
+
| [`@framers/agentos-ext-tip-ingestion`](https://www.npmjs.com/package/@framers/agentos-ext-tip-ingestion) | Tip content processing pipeline (published package; not vendored in this workspace) | [](https://www.npmjs.com/package/@framers/agentos-ext-tip-ingestion) |
|
|
47
61
|
| [`@framers/agentos-ext-browser-automation`](./registry/curated/system/browser-automation) | Full browser automation (Playwright) — 10 tools | [](https://www.npmjs.com/package/@framers/agentos-ext-browser-automation) |
|
|
48
62
|
| [`@framers/agentos-ext-deep-research`](./registry/curated/research/deep-research) | Multi-source research & investigation — 5 tools | [](https://www.npmjs.com/package/@framers/agentos-ext-deep-research) |
|
|
49
63
|
| [`@framers/agentos-ext-content-extraction`](./registry/curated/research/content-extraction) | Content extraction (URLs, YouTube, PDF) — 5 tools | [](https://www.npmjs.com/package/@framers/agentos-ext-content-extraction) |
|
|
50
64
|
| [`@framers/agentos-ext-credential-vault`](./registry/curated/system/credential-vault) | Encrypted credential management — 5 tools | [](https://www.npmjs.com/package/@framers/agentos-ext-credential-vault) |
|
|
65
|
+
| [`@framers/agentos-ext-document-export`](./registry/curated/productivity/document-export) | Export reports and decks to PDF, DOCX, PPTX, XLSX, and CSV | [](https://www.npmjs.com/package/@framers/agentos-ext-document-export) |
|
|
66
|
+
| [`@framers/agentos-ext-widget-generator`](./registry/curated/productivity/widget-generator) | Generate self-contained interactive HTML widgets with file management | [](https://www.npmjs.com/package/@framers/agentos-ext-widget-generator) |
|
|
51
67
|
| [`@framers/agentos-ext-notifications`](./registry/curated/communications/notifications) | Multi-channel notification router — 3 tools | [](https://www.npmjs.com/package/@framers/agentos-ext-notifications) |
|
|
52
68
|
|
|
53
69
|
### Channel Adapters
|
|
@@ -76,6 +92,56 @@ All extensions are published to npm under the `@framers` scope.
|
|
|
76
92
|
| [`@framers/agentos-ext-channel-tiktok`](./registry/curated/channels/tiktok) | TikTok social channel (API for Business) | [](https://www.npmjs.com/package/@framers/agentos-ext-channel-tiktok) |
|
|
77
93
|
| [`@framers/agentos-ext-channel-email`](./registry/curated/channels/email) | Email messaging channel (nodemailer/imapflow) | [](https://www.npmjs.com/package/@framers/agentos-ext-channel-email) |
|
|
78
94
|
|
|
95
|
+
## Two-Tier Extension Pattern
|
|
96
|
+
|
|
97
|
+
AgentOS extensions are organized into two tiers with different versioning and
|
|
98
|
+
release strategies:
|
|
99
|
+
|
|
100
|
+
### Core Extensions (monorepo root)
|
|
101
|
+
|
|
102
|
+
Seven foundational packages live at the monorepo root under `packages/agentos-ext-*`.
|
|
103
|
+
These are **independently versioned** with semantic-release CI/CD and have their own
|
|
104
|
+
GitHub Actions workflows:
|
|
105
|
+
|
|
106
|
+
| Package | Description |
|
|
107
|
+
|---------|-------------|
|
|
108
|
+
| `agentos-ext-code-safety` | Static code analysis guardrail (injection, XSS, secrets) |
|
|
109
|
+
| `agentos-ext-pii-redaction` | PII detection & redaction pipeline |
|
|
110
|
+
| `agentos-ext-grounding-guard` | Claim extraction & source verification |
|
|
111
|
+
| `agentos-ext-ml-classifiers` | ML-based content classification (toxicity, jailbreak, injection) |
|
|
112
|
+
| `agentos-ext-topicality` | Topic drift detection & off-topic filtering |
|
|
113
|
+
| `agentos-ext-http-api` | HTTP API server for AgentOS |
|
|
114
|
+
| `agentos-ext-skills` | Skill loading & execution tooling |
|
|
115
|
+
|
|
116
|
+
Each has its own `.github/` CI workflow, `.releaserc.json`, and publishes to npm
|
|
117
|
+
independently. Version bumps here do **not** affect curated extension versions.
|
|
118
|
+
|
|
119
|
+
### Curated Extensions (this submodule)
|
|
120
|
+
|
|
121
|
+
~107 packages inside `registry/curated/` use coordinated versioning via
|
|
122
|
+
[Changesets](https://github.com/changesets/changesets). These are the full
|
|
123
|
+
extension catalog: channel adapters, integrations, research tools, media tools,
|
|
124
|
+
and more.
|
|
125
|
+
|
|
126
|
+
Version bumps here are batched into "Version Packages" PRs and published together.
|
|
127
|
+
|
|
128
|
+
### Why two tiers?
|
|
129
|
+
|
|
130
|
+
- **Core extensions** are safety-critical guardrails and foundational infrastructure.
|
|
131
|
+
They need independent semver to signal breaking changes without forcing a catalog-wide
|
|
132
|
+
release. Their CI runs on every PR to the monorepo root.
|
|
133
|
+
- **Curated extensions** are the broader catalog. Coordinated changesets keep their
|
|
134
|
+
interdependencies aligned and simplify bulk releases.
|
|
135
|
+
|
|
136
|
+
### Where do safety guardrails live?
|
|
137
|
+
|
|
138
|
+
The `registry/curated/safety/` directory contains **stub READMEs** pointing to the
|
|
139
|
+
canonical core packages at the monorepo root. The actual source code for code-safety,
|
|
140
|
+
pii-redaction, and grounding-guard lives exclusively in `packages/agentos-ext-*` at
|
|
141
|
+
the monorepo root. The ml-classifiers and topicality packages still have curated
|
|
142
|
+
copies with additional modules (ClassifierOrchestrator, TopicDriftTracker, etc.) that
|
|
143
|
+
have not yet been merged upstream to the root packages.
|
|
144
|
+
|
|
79
145
|
## Repository Structure
|
|
80
146
|
|
|
81
147
|
```
|
|
@@ -95,8 +161,9 @@ agentos-extensions/
|
|
|
95
161
|
│ │ ├── communications/# Telegram bot, notifications
|
|
96
162
|
│ │ ├── integrations/ # External services (Telegram API)
|
|
97
163
|
│ │ ├── media/ # Giphy, image search, voice synthesis
|
|
98
|
-
│ │ ├── provenance/ # On-chain anchoring
|
|
164
|
+
│ │ ├── provenance/ # On-chain anchoring (tip-ingestion package is published separately)
|
|
99
165
|
│ │ ├── research/ # Web search, deep research, content extraction
|
|
166
|
+
│ │ ├── safety/ # Stub READMEs -> core packages (see above)
|
|
100
167
|
│ │ ├── system/ # CLI executor, browser automation, credential vault
|
|
101
168
|
│ │ ├── voice/ # Twilio, Telnyx, Plivo voice providers
|
|
102
169
|
│ │ └── productivity/ # Google Calendar, Gmail
|
|
@@ -156,6 +223,75 @@ await agentos.initialize({
|
|
|
156
223
|
});
|
|
157
224
|
```
|
|
158
225
|
|
|
226
|
+
## How extensions stay optional and lazy
|
|
227
|
+
|
|
228
|
+
The extension surface is dependency-injected at four layers. Each layer is opt-in by default, so a host that installs five extensions does not pay the cost of the other 95, and an extension that needs a 110MB NER model does not load it until the first call.
|
|
229
|
+
|
|
230
|
+
### Layer 1: package install gates everything
|
|
231
|
+
|
|
232
|
+
Every extension is its own npm package. Nothing is imported until you `npm install` it. The `@framers/agentos-extensions-registry` SDK depends on the extension packages as `peerDependenciesMeta.optional`, so installing the registry alone gives you the catalog metadata without pulling any extension source. Add `@framers/agentos-ext-pii-redaction` to your `package.json` and the registry sees it; remove it and the registry drops it on the next manifest build.
|
|
233
|
+
|
|
234
|
+
### Layer 2: registry resolve skips uninstalled packages
|
|
235
|
+
|
|
236
|
+
`createCuratedManifest()` calls `import.meta.resolve()` on every catalog entry before adding it to the manifest. If the resolution throws, the entry is omitted. The runtime never sees it. There is no error, no warning, no missing-module crash. This is the difference between a catalog (metadata) and a registry that only emits packs you can actually run.
|
|
237
|
+
|
|
238
|
+
```typescript
|
|
239
|
+
// Even if you ask for `tools: 'all'`, only installed packages reach the runtime.
|
|
240
|
+
const manifest = await createCuratedManifest({ tools: 'all' });
|
|
241
|
+
// → manifest.packs contains only @framers/agentos-ext-* packages found on disk.
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### Layer 3: `requiredSecrets` gates descriptor activation
|
|
245
|
+
|
|
246
|
+
Inside a pack, each descriptor (a single tool, guardrail, channel, or workflow) can declare `requiredSecrets`. Before activation, `ExtensionManager` checks whether each non-optional secret is resolvable from the secret store, the pack options, or the environment. Missing a secret? The descriptor is skipped and the rest of the pack still activates. Optional secrets unlock optional features (like the PII redaction extension's LLM-judge tier) without making them required.
|
|
247
|
+
|
|
248
|
+
```typescript
|
|
249
|
+
// pii-redaction declares its LLM judge as an optional dependency.
|
|
250
|
+
{
|
|
251
|
+
id: 'pii_judge_resolver',
|
|
252
|
+
kind: 'tool',
|
|
253
|
+
requiredSecrets: [{ id: 'anthropic.apiKey', optional: true }],
|
|
254
|
+
// ...
|
|
255
|
+
}
|
|
256
|
+
// No ANTHROPIC_API_KEY in env? The judge is skipped, the rest of the pack works.
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
### Layer 4: `SharedServiceRegistry.getOrCreate()` defers heavy resources
|
|
260
|
+
|
|
261
|
+
ML models, embedding indexes, ONNX runtimes, NER pipelines, and database pools are not loaded at activation. They are registered as factories and only constructed on the first call that needs them. The same instance is shared across descriptors in the same pack and (with a namespaced key) across packs.
|
|
262
|
+
|
|
263
|
+
```typescript
|
|
264
|
+
async onActivate(ctx) {
|
|
265
|
+
// The 110MB BERT NER model. Not loaded yet.
|
|
266
|
+
const nerModel = await ctx.services.getOrCreate('pii:ner-model', async () => {
|
|
267
|
+
const { NerModel } = await import('./NerModel.js');
|
|
268
|
+
return NerModel.load();
|
|
269
|
+
});
|
|
270
|
+
this.scanTool.setNerModel(nerModel);
|
|
271
|
+
this.streamingGuardrail.setNerModel(nerModel);
|
|
272
|
+
}
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
The `import('./NerModel.js')` is a dynamic import: the model file itself does not enter the module graph until something asks for the service. First call pays the load cost; subsequent calls hit the cache. Tear-down releases everything via the registry's lifecycle.
|
|
276
|
+
|
|
277
|
+
### What this looks like end-to-end for a guardrail
|
|
278
|
+
|
|
279
|
+
A host installing `@framers/agentos-ext-pii-redaction`:
|
|
280
|
+
|
|
281
|
+
1. **Install.** `npm install @framers/agentos-ext-pii-redaction @framers/agentos-extensions-registry @framers/agentos`. Nothing else.
|
|
282
|
+
2. **Manifest build.** `createCuratedManifest({ tools: 'all' })` resolves only the installed PII pack and emits a single-pack manifest.
|
|
283
|
+
3. **Activation.** `ExtensionManager.loadManifest()` runs `pack.onActivate(ctx)`, which registers a `pii:ner-model` factory in `SharedServiceRegistry`. The model file is not loaded.
|
|
284
|
+
4. **Descriptor registration.** Two tool descriptors (`pii_scan`, `pii_redact`) and one guardrail descriptor land in the kind-specific registries. The guardrail descriptor's `config.canSanitize = true` and `config.evaluateStreamingChunks = true` flag it for the two-phase dispatcher.
|
|
285
|
+
5. **First request.** A user message hits the input pipeline. The two-phase dispatcher runs Phase 1 sequentially: the PII guardrail's `evaluateInput()` fires, calls into the NER pipeline, and the model loads on this first call. Subsequent requests hit the cached model.
|
|
286
|
+
6. **Streaming output.** As the model generates a response, each `TEXT_DELTA` chunk passes through the guardrail's `evaluateOutput()`. The dispatcher returns `SANITIZE` results with redacted text deterministically (Phase 1 chains sequentially), then runs all Phase 2 classifiers in parallel for any remaining checks.
|
|
287
|
+
7. **Tear-down.** `pack.onDeactivate(ctx)` runs in reverse order on shutdown. The shared service registry releases the model.
|
|
288
|
+
|
|
289
|
+
Same pattern for the four other guardrail packs: `@framers/agentos-ext-ml-classifiers` lazy-loads ONNX BERT models, `@framers/agentos-ext-grounding-guard` lazy-loads the NLI pipeline, `@framers/agentos-ext-topicality` lazy-loads embeddings, `@framers/agentos-ext-code-safety` is regex-only and pays no load cost.
|
|
290
|
+
|
|
291
|
+
This is the same auto-discovery surface that runtime-forged tools join: an agent that invents a function in session N can promote it via `SkillExporter` into a `SKILL.md` that the registry picks up on the next process start. Forging grows the surface mid-run; auto-discovery ships it as a first-class capability.
|
|
292
|
+
|
|
293
|
+
For the dispatcher mechanics (Phase 1 sanitizers, Phase 2 parallel classifiers, worst-action aggregation, mid-stream override), see [Guardrails](https://docs.agentos.sh/features/guardrails). For lifecycle internals, see [Extension Loading](https://docs.agentos.sh/architecture/extension-loading).
|
|
294
|
+
|
|
159
295
|
### Registry options
|
|
160
296
|
|
|
161
297
|
`createCuratedManifest()` accepts:
|
|
@@ -177,6 +313,8 @@ await agentos.initialize({
|
|
|
177
313
|
| `serpapi.apiKey` | `SERPAPI_API_KEY` | web-search |
|
|
178
314
|
| `brave.apiKey` | `BRAVE_API_KEY` | web-search |
|
|
179
315
|
| `giphy.apiKey` | `GIPHY_API_KEY` | giphy |
|
|
316
|
+
| `omdb.apiKey` | `OMDB_API_KEY` | omdb |
|
|
317
|
+
| `clearbit.apiKey` | `CLEARBIT_API_KEY` | clearbit |
|
|
180
318
|
| `elevenlabs.apiKey` | `ELEVENLABS_API_KEY` | voice-synthesis |
|
|
181
319
|
| `pexels.apiKey` | `PEXELS_API_KEY` | image-search |
|
|
182
320
|
| `unsplash.apiKey` | `UNSPLASH_ACCESS_KEY` | image-search |
|
|
@@ -302,7 +440,7 @@ All extensions get free CI/CD via GitHub Actions:
|
|
|
302
440
|
|
|
303
441
|
- TypeScript with strict mode
|
|
304
442
|
- >80% test coverage
|
|
305
|
-
-
|
|
443
|
+
- Apache 2.0 license
|
|
306
444
|
- No hardcoded secrets
|
|
307
445
|
|
|
308
446
|
### Additional for Curated
|
|
@@ -334,19 +472,29 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md) for detailed guidelines.
|
|
|
334
472
|
|
|
335
473
|
## Links
|
|
336
474
|
|
|
337
|
-
- **Website**: [frame.dev](https://frame.dev)
|
|
338
475
|
- **AgentOS**: [agentos.sh](https://agentos.sh)
|
|
339
|
-
- **
|
|
476
|
+
- **AgentOS GitHub**: [github.com/framersai/agentos](https://github.com/framersai/agentos)
|
|
477
|
+
- **Extensions GitHub**: [github.com/framersai/agentos-extensions](https://github.com/framersai/agentos-extensions)
|
|
478
|
+
- **Mars Genesis Demo**: [github.com/framersai/mars-genesis-simulation](https://github.com/framersai/mars-genesis-simulation)
|
|
340
479
|
- **npm**: [@framers](https://www.npmjs.com/org/framers)
|
|
341
480
|
- **API Docs**: [framersai.github.io/agentos-extensions](https://framersai.github.io/agentos-extensions/)
|
|
342
|
-
- **
|
|
481
|
+
- **Discord**: [wilds.ai/discord](https://wilds.ai/discord)
|
|
482
|
+
- **Website**: [frame.dev](https://frame.dev)
|
|
483
|
+
- **Contact**: [team@frame.dev](mailto:team@frame.dev)
|
|
343
484
|
|
|
344
485
|
## License
|
|
345
486
|
|
|
346
|
-
All extensions in this repository are
|
|
487
|
+
All extensions in this repository are Apache 2.0 licensed.
|
|
488
|
+
|
|
489
|
+
---
|
|
347
490
|
|
|
348
491
|
<p align="center">
|
|
349
|
-
<a href="https://agentos.sh"><img src="logos/agentos-primary-transparent-2x.png" alt="AgentOS" height="
|
|
492
|
+
<a href="https://agentos.sh"><img src="logos/agentos-primary-no-tagline-transparent-2x.png" alt="AgentOS" height="36" /></a>
|
|
350
493
|
|
|
351
|
-
<a href="https://frame.dev"
|
|
494
|
+
<a href="https://frame.dev"><img src="logos/frame-logo-green-transparent-4x.png" alt="Frame.dev" height="36" /></a>
|
|
495
|
+
</p>
|
|
496
|
+
|
|
497
|
+
<p align="center">
|
|
498
|
+
Built by <a href="https://manic.agency">Manic Agency LLC</a> / <a href="https://frame.dev">Frame.dev</a><br>
|
|
499
|
+
Contact: <a href="mailto:team@frame.dev">team@frame.dev</a>
|
|
352
500
|
</p>
|
package/index.mjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Tiny wrapper so consumers can `import registry from '@framers/agentos-extensions'`
|
|
2
|
+
// without needing the `with { type: 'json' }` import attribute (Node 22+) or the
|
|
3
|
+
// older `assert { type: 'json' }` (deprecated). Reads registry.json at runtime
|
|
4
|
+
// via fs so it works on every supported Node version.
|
|
5
|
+
import { readFileSync } from 'node:fs';
|
|
6
|
+
import { dirname, join } from 'node:path';
|
|
7
|
+
import { fileURLToPath } from 'node:url';
|
|
8
|
+
|
|
9
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
10
|
+
const registry = JSON.parse(readFileSync(join(__dirname, 'registry.json'), 'utf-8'));
|
|
11
|
+
|
|
12
|
+
export default registry;
|
package/package.json
CHANGED
|
@@ -1,44 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@framers/agentos-extensions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"files": [
|
|
5
|
+
"index.mjs",
|
|
5
6
|
"registry.json",
|
|
6
7
|
"types.d.ts",
|
|
7
8
|
"README.md"
|
|
8
9
|
],
|
|
9
|
-
"description": "
|
|
10
|
+
"description": "Extension source for AgentOS — implementations, templates, and manifests for tools, channel adapters, and integrations. Companion to the @framers/agentos TypeScript AI agent runtime.",
|
|
11
|
+
"homepage": "https://agentos.sh",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/framersai/agentos-extensions/issues"
|
|
14
|
+
},
|
|
10
15
|
"type": "module",
|
|
11
16
|
"sideEffects": false,
|
|
12
17
|
"exports": {
|
|
13
18
|
".": {
|
|
14
|
-
"import": "./
|
|
19
|
+
"import": "./index.mjs",
|
|
15
20
|
"types": "./types.d.ts"
|
|
16
21
|
},
|
|
17
22
|
"./registry.json": "./registry.json",
|
|
18
23
|
"./package.json": "./package.json"
|
|
19
24
|
},
|
|
20
|
-
"scripts": {
|
|
21
|
-
"test": "node -e \"console.log('agentos-extensions: test skipped in this monorepo build')\"",
|
|
22
|
-
"test:coverage": "npm run test",
|
|
23
|
-
"build": "node scripts/build-extensions.js && node scripts/update-registry.js",
|
|
24
|
-
"lint": "node -e \"console.log('agentos-extensions: lint skipped in this monorepo build')\"",
|
|
25
|
-
"clean": "node -e \"console.log('agentos-extensions: clean noop in this monorepo build')\"",
|
|
26
|
-
"create-extension": "node scripts/create-extension.js",
|
|
27
|
-
"update-registry": "node scripts/update-registry.js",
|
|
28
|
-
"docs": "npx typedoc",
|
|
29
|
-
"changeset": "changeset",
|
|
30
|
-
"version-packages": "changeset version",
|
|
31
|
-
"release": "changeset publish"
|
|
32
|
-
},
|
|
33
25
|
"repository": {
|
|
34
26
|
"type": "git",
|
|
35
27
|
"url": "https://github.com/framersai/agentos-extensions.git"
|
|
36
28
|
},
|
|
37
29
|
"keywords": [
|
|
38
30
|
"agentos",
|
|
31
|
+
"framers-agentos",
|
|
32
|
+
"agentos-extensions",
|
|
33
|
+
"agentos-tools",
|
|
39
34
|
"extensions",
|
|
35
|
+
"plugins",
|
|
40
36
|
"tools",
|
|
41
|
-
"
|
|
37
|
+
"tool-use",
|
|
38
|
+
"tool-calling",
|
|
39
|
+
"ai-agent",
|
|
40
|
+
"ai-agents",
|
|
41
|
+
"ai-agent-tools",
|
|
42
|
+
"agent-framework",
|
|
43
|
+
"agent-tools",
|
|
44
|
+
"channel-adapters",
|
|
45
|
+
"discord-bot",
|
|
46
|
+
"telegram-bot",
|
|
47
|
+
"slack-bot",
|
|
48
|
+
"whatsapp-bot",
|
|
49
|
+
"webchat",
|
|
50
|
+
"browser-automation",
|
|
51
|
+
"web-search",
|
|
52
|
+
"voice-synthesis",
|
|
53
|
+
"framers",
|
|
54
|
+
"frame-dev"
|
|
42
55
|
],
|
|
43
56
|
"author": {
|
|
44
57
|
"name": "Framers AI",
|
|
@@ -52,23 +65,25 @@
|
|
|
52
65
|
"url": "https://github.com/jddunn"
|
|
53
66
|
}
|
|
54
67
|
],
|
|
55
|
-
"license": "
|
|
68
|
+
"license": "Apache-2.0",
|
|
56
69
|
"publishConfig": {
|
|
57
70
|
"access": "public"
|
|
58
71
|
},
|
|
59
|
-
"packageManager": "pnpm@10.15.1",
|
|
60
|
-
"pnpm": {
|
|
61
|
-
"overrides": {
|
|
62
|
-
"@framers/agentos": "^0.1.47"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
72
|
"devDependencies": {
|
|
66
73
|
"@atproto/api": "^0.13.0",
|
|
67
74
|
"@changesets/changelog-github": "^0.5.2",
|
|
68
75
|
"@changesets/cli": "^2.29.8",
|
|
69
76
|
"masto": "^6.8.0",
|
|
70
|
-
"typedoc": "^0.
|
|
71
|
-
"typescript": "^5.4.5"
|
|
72
|
-
|
|
77
|
+
"typedoc": "^0.28.19",
|
|
78
|
+
"typescript": "^5.4.5"
|
|
79
|
+
},
|
|
80
|
+
"scripts": {
|
|
81
|
+
"build": "node scripts/build-extensions.js && node scripts/update-registry.js",
|
|
82
|
+
"create-extension": "node scripts/create-extension.js",
|
|
83
|
+
"update-registry": "node scripts/update-registry.js",
|
|
84
|
+
"docs": "npx typedoc",
|
|
85
|
+
"changeset": "changeset",
|
|
86
|
+
"version-packages": "changeset version",
|
|
87
|
+
"release": "changeset publish"
|
|
73
88
|
}
|
|
74
89
|
}
|