@procedures/fs 0.1.0 → 0.2.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @procedures/fs
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 76d0d64: **Breaking:** an import of a package registers nothing. The `./register` entry of a package registers its procedures, and the procedures of the modules that they need, in the global registry (ARCHITECTURE-PROPOSALS-2026-10, P9).
8
+
9
+ - `import "@procedures/git"` gives the exports and registers nothing. Use `import "@procedures/git/register"`, or give `gitModule` (`@procedures/git/module`) to `createRegistry()`.
10
+ - `import "@procedures/client/register"` registers the control flow (`client.chain` and the others) and `procedure.define`/`get`/`list`/`delete`. `createRegistry()` adds them to each new registry, as before. The new `registerClientProcedures(registry?)` does the same for any registry.
11
+ - Each `register<Name>Procedures(registry?)` function is in the module of its package, takes a registry (the global one by default) and registers the modules that the package requires. `registerBridge` (splay) and `register` (store) are now `registerSplayProcedures` and `registerStoreProcedures`. The old names stay for one version.
12
+ - `sideEffects` names only `./dist/register.js`, so a bundler can drop the rest of a package.
13
+ - The bundles require `clientModule`, so `@procedures/bundle-mcp/register` gives the whole tool surface.
14
+ - `lib new` makes `src/module.ts` and a root without side effects, and `procedure new` adds procedures to the module.
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [0cf4bea]
19
+ - Updated dependencies [44d3e30]
20
+ - Updated dependencies [76d0d64]
21
+ - @procedures/client@0.2.0
22
+
3
23
  ## 0.1.0
4
24
 
5
25
  The first release on npm. The packages of the client monorepo have one version together.
package/README.md CHANGED
@@ -17,7 +17,7 @@ File system operations as RPC procedures. Read, write, copy, move, glob files an
17
17
  - **JSON utilities**: Read and parse JSON files
18
18
  - **Zod validation**: Runtime type safety on all inputs
19
19
 
20
- The package auto-registers 11 procedures:
20
+ The package has 11 procedures. Its register entry (`import "@procedures/fs/register"`) registers them:
21
21
  `fs.read`, `fs.write`, `fs.exists`, `fs.stat`, `fs.mkdir`, `fs.rm`, `fs.readdir`, `fs.copy`, `fs.move`, `fs.glob`, `fs.read.json`
22
22
 
23
23
  ## Architecture
@@ -548,7 +548,7 @@ console.log(pkg.name, pkg.version);
548
548
 
549
549
  ```typescript
550
550
  import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
551
- import "@procedures/fs"; // registers its procedures
551
+ import "@procedures/fs/register"; // registers its procedures
552
552
 
553
553
  const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
554
554
 
@@ -814,9 +814,9 @@ await client.exec(
814
814
 
815
815
  ```typescript
816
816
  // In bundle-dev/src/register.ts
817
- import "@procedures/fs"; // registers its procedures
818
- import "@procedures/shell"; // registers its procedures
819
- import "@procedures/cli-run"; // registers its procedures
817
+ import "@procedures/fs/register"; // registers its procedures
818
+ import "@procedures/shell/register"; // registers its procedures
819
+ import "@procedures/cli-run/register"; // registers its procedures
820
820
  ```
821
821
 
822
822
  ## Dependencies