@memoryblock/tools 0.1.2 → 0.1.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 memoryblock
3
+ Copyright (c) 2026-present memoryblock
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
package/README.md CHANGED
@@ -15,6 +15,8 @@ This package handles:
15
15
  * [**memoryblock**](https://www.npmjs.com/package/memoryblock) - The core engine interface and types.
16
16
  * [**@memoryblock/daemon**](https://www.npmjs.com/package/@memoryblock/daemon) - Background daemon manager.
17
17
  * [**@memoryblock/api**](https://www.npmjs.com/package/@memoryblock/api) - Core REST and WebSocket API server.
18
+ * [**@memoryblock/cli**](https://www.npmjs.com/package/@memoryblock/cli) - Command-line interface.
19
+ * [**@memoryblock/types**](https://www.npmjs.com/package/@memoryblock/types) - Core TypeScript definitions and schemas.
18
20
 
19
21
  **Integrations & Tooling**
20
22
  * [**@memoryblock/adapters**](https://www.npmjs.com/package/@memoryblock/adapters) - LLM adapters (OpenAI, Anthropic, Bedrock, etc).
package/dist/base.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ToolDefinition, ToolContext, ToolExecutionResult } from 'memoryblock';
1
+ import type { ToolDefinition, ToolContext, ToolExecutionResult } from '@memoryblock/types';
2
2
  /**
3
3
  * Base Tool interface. All built-in and plugin tools must implement this.
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEpF;;GAEG;AACH,MAAM,WAAW,IAAI;IACjB,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IACpC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAChG;AAED;;GAEG;AACH,wBAAgB,YAAY,CACxB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,EAClF,QAAQ,GAAE,MAAM,EAAO,GACxB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAOzB"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE3F;;GAEG;AACH,MAAM,WAAW,IAAI;IACjB,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IACpC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAChG;AAED;;GAEG;AACH,wBAAgB,YAAY,CACxB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,EAClF,QAAQ,GAAE,MAAM,EAAO,GACxB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAOzB"}
@@ -1,4 +1,4 @@
1
- import type { ToolDefinition, ToolContext, ToolExecutionResult } from 'memoryblock';
1
+ import type { ToolDefinition, ToolContext, ToolExecutionResult } from '@memoryblock/types';
2
2
  import type { Tool } from './base.js';
3
3
  /**
4
4
  * Central tool registry. Manages built-in tools and dynamically loaded plugin tools.
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEpF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGtC;;;;GAIG;AACH,qBAAa,YAAY;IACrB,OAAO,CAAC,KAAK,CAA2B;IAExC,uBAAuB;IACvB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAI1B,8BAA8B;IAC9B,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI1B,2DAA2D;IAC3D,SAAS,IAAI,cAAc,EAAE;IAI7B;;;OAGG;IACH,gBAAgB,IAAI,cAAc;IASlC;;;;OAIG;IACG,OAAO,CACT,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,EAAE,WAAW,GACrB,OAAO,CAAC,mBAAmB,CAAC;IAsC/B;;;OAGG;IACG,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAetD"}
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE3F,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGtC;;;;GAIG;AACH,qBAAa,YAAY;IACrB,OAAO,CAAC,KAAK,CAA2B;IAExC,uBAAuB;IACvB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAI1B,8BAA8B;IAC9B,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI1B,2DAA2D;IAC3D,SAAS,IAAI,cAAc,EAAE;IAI7B;;;OAGG;IACH,gBAAgB,IAAI,cAAc;IASlC;;;;OAIG;IACG,OAAO,CACT,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,EAAE,WAAW,GACrB,OAAO,CAAC,mBAAmB,CAAC;IAsC/B;;;OAGG;IACG,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAetD"}
package/dist/sandbox.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  * enforcement backend can substitute this class as long as it exposes
10
10
  * the same static validate() and validateCommand() interface.
11
11
  */
12
- import type { ToolContext, ToolExecutionResult } from 'memoryblock';
12
+ import type { ToolContext, ToolExecutionResult } from '@memoryblock/types';
13
13
  export declare class ToolSandbox {
14
14
  /**
15
15
  * Validate a tool call BEFORE execution.
@@ -1 +1 @@
1
- {"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../src/sandbox.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAqB,MAAM,aAAa,CAAC;AAmBvF,qBAAa,WAAW;IAEpB;;;OAGG;IACH,MAAM,CAAC,QAAQ,CACX,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,EAAE,WAAW,GACrB,mBAAmB,GAAG,IAAI;IA+B7B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,SAAS;IAsCxB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,aAAa;IAa5B;;;OAGG;IACH,MAAM,CAAC,eAAe,CAClB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,WAAW,GACrB,MAAM,GAAG,IAAI;CA+BnB"}
1
+ {"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../src/sandbox.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAqB,MAAM,oBAAoB,CAAC;AAmB9F,qBAAa,WAAW;IAEpB;;;OAGG;IACH,MAAM,CAAC,QAAQ,CACX,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,EAAE,WAAW,GACrB,mBAAmB,GAAG,IAAI;IA+B7B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,SAAS;IAsCxB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,aAAa;IAa5B;;;OAGG;IACH,MAAM,CAAC,eAAe,CAClB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,WAAW,GACrB,MAAM,GAAG,IAAI;CA+BnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memoryblock/tools",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "description": "Standard tool definitions and schemas for memoryblock.",
6
6
  "files": [
@@ -16,7 +16,10 @@
16
16
  "build": "tsc -p tsconfig.json"
17
17
  },
18
18
  "dependencies": {
19
- "memoryblock": "^0.1.2"
19
+ "@memoryblock/types": "^0.1.4"
20
+ },
21
+ "peerDependencies": {
22
+ "memoryblock": "^0.1.4"
20
23
  },
21
24
  "keywords": [
22
25
  "memoryblock",