@standardagents/spec 0.20.1 → 0.21.1

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +27 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1283,6 +1283,33 @@ interface ThreadState {
1283
1283
  * @param path - Directory path (must be empty)
1284
1284
  */
1285
1285
  rmdirFile(path: string): Promise<void>;
1286
+ /**
1287
+ * Move or rename a file or directory.
1288
+ *
1289
+ * Relocates the entry at `sourcePath` to `destinationPath`. Works for
1290
+ * files and directories; moving a directory relocates its entire subtree,
1291
+ * preserving the relative layout of its contents. The destination must not
1292
+ * already exist, and a directory cannot be moved into itself or one of its
1293
+ * own descendants.
1294
+ *
1295
+ * @param sourcePath - Existing file or directory path
1296
+ * @param destinationPath - New path (must not already exist)
1297
+ * @returns The moved entry's record at its new path
1298
+ */
1299
+ moveFile(sourcePath: string, destinationPath: string): Promise<FileRecord>;
1300
+ /**
1301
+ * Rename a file or directory in place.
1302
+ *
1303
+ * Keeps the entry in its current parent directory and changes only its
1304
+ * final path segment. `newName` must be a bare file name with no path
1305
+ * separators. To relocate an entry to a different directory, use
1306
+ * {@link ThreadState.moveFile} instead.
1307
+ *
1308
+ * @param path - Existing file or directory path
1309
+ * @param newName - New name (no path separators)
1310
+ * @returns The renamed entry's record at its new path
1311
+ */
1312
+ renameFile(path: string, newName: string): Promise<FileRecord>;
1286
1313
  /**
1287
1314
  * Get overall file system statistics.
1288
1315
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@standardagents/spec",
3
- "version": "0.20.1",
3
+ "version": "0.21.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",