@termwire/tmux 0.4.0 → 0.5.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,49 @@
1
1
  # @termwire/tmux
2
2
 
3
+ ## 0.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 29af197: Package entries export their API instead of every internal, and `run` takes a runtime.
8
+
9
+ Each `index.ts` had grown by reflex: a new module meant a new re-export. Counted against
10
+ real imports, `@termwire/cli` exported 48 names of which exactly one was used, and
11
+ `@termwire/mcp` exported twelve that nothing imported at all. The barrel was a promise
12
+ nobody asked for, and it made every rename a breaking change.
13
+
14
+ **`@termwire/cli` has one breaking change beyond the exports.** `run(argv)` is now
15
+ `run(argv, runtime)`, and the runtime is required — the CLI no longer builds real
16
+ filesystem and process bindings behind the caller's back. A caller does what
17
+ `bin/termwire.ts` does:
18
+
19
+ ```ts
20
+ import { createNodeRuntime, run } from "@termwire/cli";
21
+
22
+ process.exitCode = await run(process.argv.slice(2), createNodeRuntime());
23
+ ```
24
+
25
+ Calling `run(argv)` with nothing else now throws `run needs a runtime: pass
26
+ createNodeRuntime()`. The `termwire` binary itself is unaffected.
27
+
28
+ The entries now carry the factories, the types naming their arguments and results, and
29
+ the error classes a caller catches:
30
+
31
+ - `@termwire/cli`: `run`, `createNodeRuntime`, `createAdapters`, and the `CliRuntime`,
32
+ `RuntimeHost`, `RuntimeFileSystem`, `ProgramDependencies`, `Exec`, `ExecOptions`,
33
+ `ExecResult`, `GitExec`, `ReapSignal` and `KillOutcome` types.
34
+ - `@termwire/tmux` and `@termwire/nvim`: `createTmux` / `createNvim`, their option and
35
+ result types, and `CommandError` / `ValidationError`.
36
+ - `@termwire/mcp`: `createTermwireMcpServer`, `createOpenFileHandler`, and the types those
37
+ two name.
38
+
39
+ What is gone is the per-command functions the factories already expose as methods
40
+ (`killSession`, `respawnPane`, `setEnvironment`, `setHook`, `showHooks`, `unsetHook`,
41
+ `selectLayout`, `openFile`), plus three things that were never methods: `parseHooks`, the
42
+ `tmuxLayouts` constant, and the MCP tool's Zod schemas. Those move to `@termwire/tmux`
43
+ and `@termwire/mcp` internals; if you depended on one, open an issue and say what for.
44
+
45
+ ## 0.4.1
46
+
3
47
  ## 0.4.0
4
48
 
5
49
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -2,13 +2,9 @@ export type { WindowPaneIds } from "./command.js";
2
2
  export type { CreateTmuxOptions } from "./create-tmux.js";
3
3
  export { createTmux } from "./create-tmux.js";
4
4
  export type { HookEntry, SetHookOptions, ShowHooksOptions, UnsetHookOptions } from "./hook.js";
5
- export { parseHooks, setHook, showHooks, unsetHook } from "./hook.js";
6
5
  export type { RespawnPaneOptions, SplitPaneOptions } from "./pane.js";
7
- export { respawnPane } from "./pane.js";
8
6
  export type { Exec, ExecOptions, ExecResult } from "./process.js";
9
7
  export { CommandError } from "./process.js";
10
8
  export type { NewSessionOptions } from "./session.js";
11
- export { killSession, setEnvironment } from "./session.js";
12
9
  export { ValidationError } from "./validation.js";
13
10
  export type { NewWindowOptions, TmuxLayout } from "./window.js";
14
- export { selectLayout, tmuxLayouts } from "./window.js";
package/dist/index.js CHANGED
@@ -1,7 +1,3 @@
1
1
  export { createTmux } from "./create-tmux.js";
2
- export { parseHooks, setHook, showHooks, unsetHook } from "./hook.js";
3
- export { respawnPane } from "./pane.js";
4
2
  export { CommandError } from "./process.js";
5
- export { killSession, setEnvironment } from "./session.js";
6
3
  export { ValidationError } from "./validation.js";
7
- export { selectLayout, tmuxLayouts } from "./window.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@termwire/tmux",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",