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 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.create() instead
11
+ * Private constructor - use AgentFS.open() instead
12
12
  */
13
13
  private constructor();
14
14
  /**
15
- * Create a new AgentFS instance (async factory method)
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 create(dbPath?: string): Promise<AgentFS>;
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.create() instead
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
- * Create a new AgentFS instance (async factory method)
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 create(dbPath = ':memory:') {
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentfs-sdk",
3
- "version": "0.1.0-pre.1",
3
+ "version": "0.1.0-pre.10",
4
4
  "description": "AgentFS SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",