Skip to content

Variable: FsSubjects

Makaio Framework


Makaio Framework / services-core/filesystem/namespace / FsSubjects

const FsSubjects: BusSubjects<FlatSubjectDefinitions<"fs", { batch: ZodObject<{ changes: ZodArray<ZodObject<{ kind: ZodEnum<{ change: "change"; create: "create"; delete: "delete"; }>; path: ZodString; }, $strip>>; }, $strip>; changed: ZodObject<{ kind: ZodEnum<{ change: "change"; create: "create"; delete: "delete"; }>; path: ZodString; }, $strip>; getHomeDir: { request: ZodObject<{ machineId: ZodString; }, $strip>; response: ZodObject<{ path: ZodString; }, $strip>; }; glob: { request: ZodObject<{ cwd: ZodString; ignore: ZodOptional<ZodArray<ZodString>>; limit: ZodOptional<ZodNumber>; machineId: ZodOptional<ZodString>; offset: ZodOptional<ZodNumber>; pattern: ZodString; }, $strip>; response: ZodObject<{ files: ZodArray<ZodObject<{ path: ZodString; relativePath: ZodString; size: ZodOptional<ZodNumber>; type: ZodEnum<{ directory: …; file: …; }>; }, $strip>>; total: ZodNumber; truncated: ZodBoolean; }, $strip>; }; listDirectory: { request: ZodObject<{ machineId: ZodString; options: ZodOptional<ZodObject<{ excludeNames: ZodOptional<ZodArray<…>>; includeHidden: ZodDefault<ZodOptional<…>>; }, $strip>>; path: ZodOptional<ZodString>; }, $strip>; response: ZodObject<{ breadcrumbs: ZodArray<ZodObject<{ name: ZodString; path: ZodString; }, $strip>>; entries: ZodArray<ZodObject<{ isGitRepo: ZodOptional<ZodBoolean>; modified: ZodOptional<ZodNumber>; name: ZodString; path: ZodString; relativePath: ZodOptional<ZodString>; size: ZodOptional<ZodNumber>; type: ZodEnum<{ directory: …; file: …; }>; }, $strip>>; errors: ZodOptional<ZodArray<ZodObject<{ code: ZodString; message: ZodString; name: ZodString; }, $strip>>>; isGitRepo: ZodBoolean; parentPath: ZodNullable<ZodString>; path: ZodString; segments: ZodArray<ZodString>; }, $strip>; }; listSources: { request: ZodObject<{ }, $strip>; response: ZodObject<{ sources: ZodArray<ZodObject<{ label: ZodString; machineId: ZodString; }, $strip>>; }, $strip>; }; readFile: { request: ZodObject<{ encoding: ZodDefault<ZodOptional<ZodString>>; machineId: ZodOptional<ZodString>; path: ZodString; }, $strip>; response: ZodObject<{ content: ZodString; }, $strip>; }; unwatch: { request: ZodObject<{ id: ZodString; }, $strip>; response: ZodObject<{ success: ZodBoolean; }, $strip>; }; watch: { request: ZodObject<{ excludeFromDefaults: ZodOptional<ZodArray<ZodString>>; extensions: ZodOptional<ZodArray<ZodString>>; id: ZodString; paths: ZodArray<ZodString>; }, $strip>; response: ZodObject<{ success: ZodBoolean; watchId: ZodString; }, $strip>; }; writeFile: { request: ZodObject<{ content: ZodString; encoding: ZodDefault<ZodOptional<ZodString>>; machineId: ZodOptional<ZodString>; path: ZodString; }, $strip>; response: ZodObject<{ success: ZodBoolean; }, $strip>; }; }>, "fs"> = FsNamespace.subjects

Defined in: ../../../packages/services/core/src/filesystem/namespace.ts:96

Typed subjects for filesystem operations. Use FsSubjects for file watcher operations (changed, batch, watch, unwatch). Use FileSystemSubjects for directory browser operations (listSources, listDirectory, getHomeDir).