tuhdoo 0.1.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,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Brandon Bews
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # tuhdoo
2
+
3
+ A coordination fabric for agent fleets, steered by humans: a shared backlog,
4
+ work queue, and activity ledger living in a git orphan branch inside the repo
5
+ it plans. Synced through an ordinary git remote — no server, no vendor, no
6
+ accounts.
7
+
8
+ This package is a thin launcher: the real tuhdoo is a single static Go
9
+ binary, installed for your platform via one of the `@tuhdoo/*`
10
+ optionalDependencies. Installing as a devDependency pins the binary per
11
+ project through your lockfile.
12
+
13
+ ```sh
14
+ npm i -D tuhdoo
15
+ npx tuhdoo init # inside the repository you want to plan
16
+ npx tuhdoo status
17
+ ```
18
+
19
+ Agents connect through the stdio MCP shim:
20
+
21
+ ```json
22
+ { "mcpServers": { "tuhdoo": { "command": "npx", "args": ["tuhdoo", "mcp"] } } }
23
+ ```
24
+
25
+ Docs, design record, and source: <https://github.com/brandonbews/tuhdoo>
package/bin/tuhdoo.js ADDED
@@ -0,0 +1,62 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+ // Dumb launcher for the real tuhdoo binary, which ships in a per-platform
4
+ // npm package (@tuhdoo/<os>-<cpu>) selected by npm via os/cpu fields on
5
+ // optionalDependencies. This file must stay dependency-free and add
6
+ // nothing to stdout/stderr on the happy path: the MCP stdio shim
7
+ // (`tuhdoo mcp`) runs through it, and any stray byte corrupts JSON-RPC.
8
+
9
+ const { spawn } = require('child_process');
10
+
11
+ const PACKAGES = {
12
+ 'darwin-arm64': '@tuhdoo/darwin-arm64',
13
+ 'darwin-x64': '@tuhdoo/darwin-x64',
14
+ 'linux-arm64': '@tuhdoo/linux-arm64',
15
+ 'linux-x64': '@tuhdoo/linux-x64',
16
+ };
17
+
18
+ const key = process.platform + '-' + process.arch;
19
+ const pkg = PACKAGES[key];
20
+ if (!pkg) {
21
+ console.error(
22
+ 'tuhdoo: unsupported platform ' + key +
23
+ ' (supported: ' + Object.keys(PACKAGES).join(', ') + ')'
24
+ );
25
+ process.exit(1);
26
+ }
27
+
28
+ let bin;
29
+ try {
30
+ bin = require.resolve(pkg + '/bin/tuhdoo');
31
+ } catch (_) {
32
+ console.error(
33
+ 'tuhdoo: platform package ' + pkg + ' is not installed.\n' +
34
+ 'It is an optionalDependency of tuhdoo; reinstall without ' +
35
+ '--no-optional / --omit=optional.'
36
+ );
37
+ process.exit(1);
38
+ }
39
+
40
+ const child = spawn(bin, process.argv.slice(2), { stdio: 'inherit' });
41
+
42
+ // Forward termination signals; harnesses SIGTERM this pid, not the child.
43
+ const SIGNALS = ['SIGINT', 'SIGTERM', 'SIGHUP'];
44
+ for (const sig of SIGNALS) {
45
+ process.on(sig, () => child.kill(sig));
46
+ }
47
+
48
+ child.on('error', (err) => {
49
+ console.error('tuhdoo: failed to launch ' + bin + ': ' + err.message);
50
+ process.exit(1);
51
+ });
52
+
53
+ child.on('exit', (code, signal) => {
54
+ if (signal) {
55
+ // Die by the same signal so our caller sees the child's true fate.
56
+ // Drop our forwarding handler first or the re-raise loops forever.
57
+ process.removeAllListeners(signal);
58
+ process.kill(process.pid, signal);
59
+ } else {
60
+ process.exit(code === null ? 1 : code);
61
+ }
62
+ });
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "tuhdoo",
3
+ "version": "0.1.0",
4
+ "description": "A coordination fabric for agent fleets, steered by humans: a shared backlog, work queue, and activity ledger living in a git orphan branch inside the repo it plans.",
5
+ "keywords": [
6
+ "agents",
7
+ "backlog",
8
+ "mcp",
9
+ "git",
10
+ "coordination"
11
+ ],
12
+ "license": "MIT",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/brandonbews/tuhdoo.git"
16
+ },
17
+ "bin": {
18
+ "tuhdoo": "bin/tuhdoo.js"
19
+ },
20
+ "engines": {
21
+ "node": ">=18"
22
+ },
23
+ "os": [
24
+ "darwin",
25
+ "linux"
26
+ ],
27
+ "optionalDependencies": {
28
+ "@tuhdoo/darwin-arm64": "0.1.0",
29
+ "@tuhdoo/darwin-x64": "0.1.0",
30
+ "@tuhdoo/linux-arm64": "0.1.0",
31
+ "@tuhdoo/linux-x64": "0.1.0"
32
+ }
33
+ }