agentfs-sdk 0.1.0-pre.1 → 0.1.0-pre.10
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/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,15 +8,15 @@ export declare class AgentFS {
|
|
|
8
8
|
readonly fs: Filesystem;
|
|
9
9
|
readonly tools: ToolCalls;
|
|
10
10
|
/**
|
|
11
|
-
* Private constructor - use AgentFS.
|
|
11
|
+
* Private constructor - use AgentFS.open() instead
|
|
12
12
|
*/
|
|
13
13
|
private constructor();
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Open an agent filesystem
|
|
16
16
|
* @param dbPath Path to the database file (defaults to ':memory:')
|
|
17
17
|
* @returns Fully initialized AgentFS instance
|
|
18
18
|
*/
|
|
19
|
-
static
|
|
19
|
+
static open(dbPath?: string): Promise<AgentFS>;
|
|
20
20
|
/**
|
|
21
21
|
* Get the underlying Database instance
|
|
22
22
|
*/
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ const filesystem_1 = require("./filesystem");
|
|
|
7
7
|
const toolcalls_1 = require("./toolcalls");
|
|
8
8
|
class AgentFS {
|
|
9
9
|
/**
|
|
10
|
-
* Private constructor - use AgentFS.
|
|
10
|
+
* Private constructor - use AgentFS.open() instead
|
|
11
11
|
*/
|
|
12
12
|
constructor(db, kv, fs, tools) {
|
|
13
13
|
this.db = db;
|
|
@@ -16,11 +16,11 @@ class AgentFS {
|
|
|
16
16
|
this.tools = tools;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Open an agent filesystem
|
|
20
20
|
* @param dbPath Path to the database file (defaults to ':memory:')
|
|
21
21
|
* @returns Fully initialized AgentFS instance
|
|
22
22
|
*/
|
|
23
|
-
static async
|
|
23
|
+
static async open(dbPath = ':memory:') {
|
|
24
24
|
const db = new database_1.Database(dbPath);
|
|
25
25
|
// Connect to the database to ensure it's created
|
|
26
26
|
await db.connect();
|