@aigne/did-space-memory 1.0.0

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.
@@ -0,0 +1,7 @@
1
+ export async function streamToString(stream, encoding = "utf-8") {
2
+ const chunks = [];
3
+ for await (const chunk of stream) {
4
+ chunks.push(chunk);
5
+ }
6
+ return Buffer.concat(chunks).toString(encoding);
7
+ }
@@ -0,0 +1 @@
1
+ export * from "./fs.js";
@@ -0,0 +1 @@
1
+ export * from "./fs.js";
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@aigne/did-space-memory",
3
+ "version": "1.0.0",
4
+ "description": "DID Spaces memory for AIGNE framework",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "author": "Arcblock <blocklet@arcblock.io> https://github.com/blocklet",
9
+ "homepage": "https://github.com/AIGNE-io/aigne-framework/tree/main/memory/did-space",
10
+ "license": "Elastic-2.0",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/AIGNE-io/aigne-framework"
14
+ },
15
+ "files": [
16
+ "lib/cjs",
17
+ "lib/dts",
18
+ "lib/esm",
19
+ "LICENSE",
20
+ "README.md",
21
+ "CHANGELOG.md"
22
+ ],
23
+ "type": "module",
24
+ "main": "./lib/cjs/index.js",
25
+ "module": "./lib/esm/index.js",
26
+ "types": "./lib/dts/index.d.ts",
27
+ "dependencies": {
28
+ "@blocklet/did-space-js": "^1.1.3",
29
+ "@did-space/core": "^1.1.3",
30
+ "yaml": "^2.8.0",
31
+ "zod": "^3.25.67",
32
+ "@aigne/core": "^1.34.0",
33
+ "@aigne/openai": "^0.10.0"
34
+ },
35
+ "devDependencies": {
36
+ "@types/bun": "^1.2.18",
37
+ "npm-run-all": "^4.1.5",
38
+ "rimraf": "^6.0.1",
39
+ "typescript": "^5.8.3"
40
+ },
41
+ "scripts": {
42
+ "lint": "tsc --noEmit",
43
+ "build": "tsc --build scripts/tsconfig.build.json",
44
+ "clean": "rimraf lib test/coverage",
45
+ "test": "bun test",
46
+ "test:coverage": "bun test --coverage --coverage-reporter=lcov --coverage-reporter=text",
47
+ "postbuild": "node ../../scripts/post-build-lib.mjs"
48
+ }
49
+ }