@memoryblock/plugin-aws 0.1.0-beta → 0.1.2

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/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # @memoryblock/plugin-aws
2
+
3
+ Official plugin for AWS integrations in **memoryblock**.
4
+
5
+ This package handles:
6
+ - S3 bucket interactions
7
+ - AWS Bedrock configuration and retrieval
8
+ - Cloud metrics integrations
9
+
10
+ ## The `memoryblock` Ecosystem
11
+
12
+ **memoryblock** is a highly modular system. Here are the official packages:
13
+
14
+ **The Core**
15
+ * [**memoryblock**](https://www.npmjs.com/package/memoryblock) - The core engine interface and types.
16
+ * [**@memoryblock/daemon**](https://www.npmjs.com/package/@memoryblock/daemon) - Background daemon manager.
17
+ * [**@memoryblock/api**](https://www.npmjs.com/package/@memoryblock/api) - Core REST and WebSocket API server.
18
+
19
+ **Integrations & Tooling**
20
+ * [**@memoryblock/adapters**](https://www.npmjs.com/package/@memoryblock/adapters) - LLM adapters (OpenAI, Anthropic, Bedrock, etc).
21
+ * [**@memoryblock/channels**](https://www.npmjs.com/package/@memoryblock/channels) - Communication channels (CLI, Telegram, Web).
22
+ * [**@memoryblock/tools**](https://www.npmjs.com/package/@memoryblock/tools) - Standard tool definitions and schemas.
23
+ * [**@memoryblock/locale**](https://www.npmjs.com/package/@memoryblock/locale) - Localization strings and formatting.
24
+ * [**@memoryblock/web**](https://www.npmjs.com/package/@memoryblock/web) - Front-end dashboard and Web UI.
25
+
26
+ **Plugins**
27
+ * [**@memoryblock/plugin-installer**](https://www.npmjs.com/package/@memoryblock/plugin-installer) - Plugin installer and registry manager.
28
+ * [**@memoryblock/plugin-agents**](https://www.npmjs.com/package/@memoryblock/plugin-agents) - Secondary AI agents orchestrator.
29
+ * [**@memoryblock/plugin-aws**](https://www.npmjs.com/package/@memoryblock/plugin-aws) - AWS integrations.
30
+ * [**@memoryblock/plugin-fetch-webpage**](https://www.npmjs.com/package/@memoryblock/plugin-fetch-webpage) - Web content fetching and parsing.
31
+ * [**@memoryblock/plugin-web-search**](https://www.npmjs.com/package/@memoryblock/plugin-web-search) - Web search capabilities.
32
+
33
+ ## License
34
+
35
+ Distributed under the MIT License. See `LICENSE` for more information.
package/package.json CHANGED
@@ -1,19 +1,57 @@
1
1
  {
2
2
  "name": "@memoryblock/plugin-aws",
3
- "version": "0.1.0-beta",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
+ "description": "Official plugin for AWS integrations in memoryblock.",
6
+ "files": [
7
+ "dist/"
8
+ ],
5
9
  "exports": {
6
10
  ".": {
7
11
  "types": "./dist/index.d.ts",
8
12
  "import": "./dist/index.js"
9
13
  }
10
14
  },
15
+ "scripts": {
16
+ "build": "tsc -p tsconfig.json"
17
+ },
11
18
  "dependencies": {
12
- "@aws-sdk/client-bedrock-runtime": "^3.700.0",
19
+ "@aws-sdk/client-bedrock-runtime": "^3.1015.0",
13
20
  "@smithy/node-http-handler": "^4.0.0",
14
- "memoryblock": "0.1.0-beta"
21
+ "memoryblock": "^0.1.2"
15
22
  },
16
- "scripts": {
17
- "build": "tsc -p tsconfig.json"
18
- }
23
+ "keywords": [
24
+ "memoryblock",
25
+ "mblk",
26
+ "ai-agent",
27
+ "assistants",
28
+ "agents",
29
+ "automation",
30
+ "multi-agent",
31
+ "agentic-framework",
32
+ "plugin",
33
+ "aws",
34
+ "bedrock",
35
+ "cloud",
36
+ "s3",
37
+ "lambda",
38
+ "dynamodb",
39
+ "s3",
40
+ "iam",
41
+ "access"
42
+ ],
43
+ "author": {
44
+ "name": "Ghazi",
45
+ "url": "https://mgks.dev"
46
+ },
47
+ "repository": {
48
+ "type": "git",
49
+ "url": "git+https://github.com/memoryblock-io/memoryblock.git"
50
+ },
51
+ "bugs": {
52
+ "url": "https://github.com/memoryblock-io/memoryblock/issues"
53
+ },
54
+ "homepage": "https://memoryblock.io",
55
+ "funding": "https://github.com/sponsors/mgks",
56
+ "license": "MIT"
19
57
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 memoryblock
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/src/client.ts DELETED
@@ -1,57 +0,0 @@
1
- import {
2
- BedrockRuntimeClient,
3
- type BedrockRuntimeClientConfig,
4
- } from '@aws-sdk/client-bedrock-runtime';
5
- import { NodeHttpHandler } from '@smithy/node-http-handler';
6
- import { loadAuth } from 'memoryblock';
7
-
8
- export interface AwsClientOptions {
9
- region?: string;
10
- accessKeyId?: string;
11
- secretAccessKey?: string;
12
- }
13
-
14
- // Singleton client per region:accessKey — avoids Bun HTTP/2 keep-alive reconnect failures
15
- const clientCache = new Map<string, BedrockRuntimeClient>();
16
-
17
- /**
18
- * Create (or return cached) BedrockRuntimeClient.
19
- * Forces HTTP/1.1 via NodeHttpHandler to sidestep Bun's HTTP/2 connection drop bug.
20
- * Reads credentials from ~/.memoryblock/auth.json — fully self-contained.
21
- */
22
- export async function createBedrockClient(overrides?: AwsClientOptions): Promise<BedrockRuntimeClient> {
23
- const auth = await loadAuth();
24
- const aws = auth.aws;
25
-
26
- const accessKeyId = overrides?.accessKeyId || aws?.accessKeyId;
27
- const secretAccessKey = overrides?.secretAccessKey || aws?.secretAccessKey;
28
- const region = overrides?.region || aws?.region || 'us-east-1';
29
-
30
- if (!accessKeyId || !secretAccessKey) {
31
- throw new Error(
32
- 'AWS credentials not configured. Add your credentials to ~/.memoryblock/auth.json:\n' +
33
- ' { "aws": { "accessKeyId": "...", "secretAccessKey": "...", "region": "us-east-1" } }',
34
- );
35
- }
36
-
37
- const cacheKey = `${region}:${accessKeyId}`;
38
- if (clientCache.has(cacheKey)) {
39
- return clientCache.get(cacheKey)!;
40
- }
41
-
42
- const config: BedrockRuntimeClientConfig = {
43
- region,
44
- credentials: { accessKeyId, secretAccessKey },
45
- // Force HTTP/1.1 — Bun drops HTTP/2 connections between requests
46
- requestHandler: new NodeHttpHandler({
47
- connectionTimeout: 5000,
48
- requestTimeout: 60000,
49
- }),
50
- };
51
-
52
- const client = new BedrockRuntimeClient(config);
53
- clientCache.set(cacheKey, client);
54
- return client;
55
- }
56
-
57
- export { BedrockRuntimeClient };
package/src/index.ts DELETED
@@ -1,2 +0,0 @@
1
- export { createBedrockClient, BedrockRuntimeClient } from './client.js';
2
- export type { AwsClientOptions } from './client.js';
package/tsconfig.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "extends": "../../../tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "dist",
5
- "rootDir": "src"
6
- },
7
- "include": [
8
- "src"
9
- ]
10
- }