agentfs-sdk
Advanced tools
@@ -182,3 +182,7 @@ import { createFsError } from '../errors.js'; | ||
| mtime INTEGER NOT NULL, | ||
| ctime INTEGER NOT NULL | ||
| ctime INTEGER NOT NULL, | ||
| rdev INTEGER NOT NULL DEFAULT 0, | ||
| atime_nsec INTEGER NOT NULL DEFAULT 0, | ||
| mtime_nsec INTEGER NOT NULL DEFAULT 0, | ||
| ctime_nsec INTEGER NOT NULL DEFAULT 0 | ||
| ) | ||
@@ -229,2 +233,7 @@ `); | ||
| } | ||
| // Set schema version (keep in sync with AGENTFS_SCHEMA_VERSION in sdk/rust/src/schema.rs) | ||
| const schemaVersionStmt = this.db.prepare(` | ||
| INSERT OR REPLACE INTO fs_config (key, value) VALUES ('schema_version', '0.4') | ||
| `); | ||
| await schemaVersionStmt.run(); | ||
| const stmt = this.db.prepare('SELECT ino FROM fs_inode WHERE ino = ?'); | ||
@@ -231,0 +240,0 @@ const root = await stmt.get(this.rootIno); |
@@ -200,3 +200,7 @@ /** | ||
| mtime INTEGER NOT NULL, | ||
| ctime INTEGER NOT NULL | ||
| ctime INTEGER NOT NULL, | ||
| rdev INTEGER NOT NULL DEFAULT 0, | ||
| atime_nsec INTEGER NOT NULL DEFAULT 0, | ||
| mtime_nsec INTEGER NOT NULL DEFAULT 0, | ||
| ctime_nsec INTEGER NOT NULL DEFAULT 0 | ||
| ) | ||
@@ -243,2 +247,4 @@ `); | ||
| } | ||
| // Set schema version (keep in sync with AGENTFS_SCHEMA_VERSION in sdk/rust/src/schema.rs) | ||
| this.storage.sql.exec("INSERT OR REPLACE INTO fs_config (key, value) VALUES ('schema_version', '0.4')"); | ||
| const rootRows = this.storage.sql.exec('SELECT ino FROM fs_inode WHERE ino = ?', this.rootIno).toArray(); | ||
@@ -245,0 +251,0 @@ if (rootRows.length === 0) { |
+1
-1
| { | ||
| "name": "agentfs-sdk", | ||
| "version": "0.6.0-pre.4", | ||
| "version": "0.6.0-pre.5", | ||
| "description": "AgentFS SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/index_node.js", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
165700
0.52%4209
0.36%