@petukhovart/pacer 0.18.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/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Cody Seibert
4
+ Copyright (c) 2026 Artem Petukhov
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # pacer
2
+
3
+ **Where your coding agents live.**
4
+
5
+ Run **Claude Code**, **Codex** and **Cursor** across every project and git worktree you own — from one
6
+ terminal, one keyboard, one tree. A background daemon owns the PTYs, so they keep working when you close
7
+ the UI.
8
+
9
+ ```sh
10
+ npm install -g @petukhovart/pacer
11
+ pacer add ~/code/my-app
12
+ pacer
13
+ ```
14
+
15
+ This package is a thin launcher: the actual binary is a small Rust executable that npm installs for your
16
+ platform only (macOS arm64/x64, Linux x64/arm64, Windows x64).
17
+
18
+ **Prerequisite:** at least one agent CLI on your `PATH` — `claude`, `codex` or `cursor-agent`. pacer
19
+ spawns them; it doesn't ship them.
20
+
21
+ Documentation, screenshots and the full keymap: <https://github.com/PetukhovArt/pacer>
22
+
23
+ MIT licensed.
package/bin/pacer.js ADDED
@@ -0,0 +1,59 @@
1
+ #!/usr/bin/env node
2
+ // Launcher for the `pacer` npm package.
3
+ //
4
+ // The binary itself ships in one of the per-platform packages listed as
5
+ // optionalDependencies (`@scope/pacer-darwin-arm64`, …); npm installs only
6
+ // the one matching this machine's `os`/`cpu`. This file finds it and hands
7
+ // over.
8
+ //
9
+ // `spawnSync` with inherited stdio, not `spawn`: pacer is a full-screen TUI
10
+ // that wants the real terminal (raw mode, mouse reporting, resize), and the
11
+ // synchronous call also means node is parked inside a syscall for the whole
12
+ // session — it cannot run its own SIGINT handler and exit out from under the
13
+ // child. Ctrl+C reaches the foreground process group as usual.
14
+ 'use strict';
15
+
16
+ const { spawnSync } = require('node:child_process');
17
+
18
+ // This file is published as `<package>/bin/pacer.js`, so the manifest is one
19
+ // level up. The platform package is picked out of our own optionalDependencies
20
+ // by suffix, which keeps the launcher working whatever the packages end up
21
+ // being called — scoped or not.
22
+ const manifest = require('../package.json');
23
+ const suffix = `-${process.platform}-${process.arch}`;
24
+ const exe = process.platform === 'win32' ? 'pacer.exe' : 'pacer';
25
+ const pkg = Object.keys(manifest.optionalDependencies || {}).find((name) =>
26
+ name.endsWith(suffix),
27
+ );
28
+
29
+ let binary;
30
+ try {
31
+ if (!pkg) throw new Error(`no package for ${suffix.slice(1)}`);
32
+ binary = require.resolve(`${pkg}/bin/${exe}`);
33
+ } catch {
34
+ console.error(
35
+ `pacer: no binary for ${process.platform}-${process.arch}.\n` +
36
+ `\n` +
37
+ `Expected the optional dependency ${pkg || `*${suffix}`}. If you installed\n` +
38
+ `with --no-optional or --omit=optional, reinstall without it. If this\n` +
39
+ `platform has no published build, install from source instead:\n` +
40
+ `\n` +
41
+ ` cargo install --git https://github.com/PetukhovArt/pacer pacer --locked\n`,
42
+ );
43
+ process.exit(1);
44
+ }
45
+
46
+ const result = spawnSync(binary, process.argv.slice(2), { stdio: 'inherit' });
47
+
48
+ if (result.error) {
49
+ console.error(`pacer: failed to run ${binary}: ${result.error.message}`);
50
+ process.exit(1);
51
+ }
52
+
53
+ // A child killed by a signal has no exit status. Re-raise it on ourselves so
54
+ // the shell sees the same cause of death it would from the bare binary.
55
+ if (result.signal) {
56
+ process.kill(process.pid, result.signal);
57
+ }
58
+
59
+ process.exit(result.status === null ? 1 : result.status);
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@petukhovart/pacer",
3
+ "description": "Where your coding agents live — run Claude Code, Codex and Cursor across every project and git worktree from one terminal",
4
+ "version": "0.18.0",
5
+ "license": "MIT",
6
+ "homepage": "https://github.com/PetukhovArt/pacer#readme",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/PetukhovArt/pacer.git"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/PetukhovArt/pacer/issues"
13
+ },
14
+ "keywords": [
15
+ "claude",
16
+ "claude-code",
17
+ "codex",
18
+ "cursor",
19
+ "ai",
20
+ "agent",
21
+ "tui",
22
+ "terminal",
23
+ "multiplexer",
24
+ "worktree"
25
+ ],
26
+ "bin": {
27
+ "pacer": "bin/pacer.js"
28
+ },
29
+ "files": [
30
+ "bin",
31
+ "README.md",
32
+ "LICENSE"
33
+ ],
34
+ "engines": {
35
+ "node": ">=16"
36
+ },
37
+ "optionalDependencies": {
38
+ "@petukhovart/pacer-darwin-arm64": "0.18.0",
39
+ "@petukhovart/pacer-darwin-x64": "0.18.0",
40
+ "@petukhovart/pacer-linux-x64": "0.18.0",
41
+ "@petukhovart/pacer-linux-arm64": "0.18.0",
42
+ "@petukhovart/pacer-win32-x64": "0.18.0"
43
+ }
44
+ }