xtruct 0.1.0__tar.gz

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.
Files changed (45) hide show
  1. xtruct-0.1.0/.gitignore +3 -0
  2. xtruct-0.1.0/LICENSE +21 -0
  3. xtruct-0.1.0/PKG-INFO +41 -0
  4. xtruct-0.1.0/README.md +22 -0
  5. xtruct-0.1.0/pyproject.toml +38 -0
  6. xtruct-0.1.0/scripts/sync.sh +21 -0
  7. xtruct-0.1.0/src/xtruct/__init__.py +3 -0
  8. xtruct-0.1.0/src/xtruct/__main__.py +5 -0
  9. xtruct-0.1.0/src/xtruct/_cli/bin/xtruct-foundry.js +3 -0
  10. xtruct-0.1.0/src/xtruct/_cli/bin/xtruct.js +541 -0
  11. xtruct-0.1.0/src/xtruct/_cli/global/claude-md-block.md +5 -0
  12. xtruct-0.1.0/src/xtruct/_cli/global/skills/foundry/SKILL.md +46 -0
  13. xtruct-0.1.0/src/xtruct/_cli/lib/dashboard.html +326 -0
  14. xtruct-0.1.0/src/xtruct/_cli/lib/dashboard.js +212 -0
  15. xtruct-0.1.0/src/xtruct/_cli/lib/paths.js +17 -0
  16. xtruct-0.1.0/src/xtruct/_cli/lib/setup.js +136 -0
  17. xtruct-0.1.0/src/xtruct/_cli/lib/tracker.js +155 -0
  18. xtruct-0.1.0/src/xtruct/_cli/lib/ui.js +95 -0
  19. xtruct-0.1.0/src/xtruct/_cli/package.json +44 -0
  20. xtruct-0.1.0/src/xtruct/_cli/template/.claude/agents/architect.md +35 -0
  21. xtruct-0.1.0/src/xtruct/_cli/template/.claude/agents/integrator.md +16 -0
  22. xtruct-0.1.0/src/xtruct/_cli/template/.claude/agents/junior-dev.md +31 -0
  23. xtruct-0.1.0/src/xtruct/_cli/template/.claude/agents/qa-lead.md +17 -0
  24. xtruct-0.1.0/src/xtruct/_cli/template/.claude/agents/reviewer.md +23 -0
  25. xtruct-0.1.0/src/xtruct/_cli/template/.claude/agents/senior-lead.md +29 -0
  26. xtruct-0.1.0/src/xtruct/_cli/template/.claude/hooks/guard-bash.sh +38 -0
  27. xtruct-0.1.0/src/xtruct/_cli/template/.claude/hooks/guard-files.sh +24 -0
  28. xtruct-0.1.0/src/xtruct/_cli/template/.claude/settings.json +39 -0
  29. xtruct-0.1.0/src/xtruct/_cli/template/.claude/skills/run-epics/SKILL.md +45 -0
  30. xtruct-0.1.0/src/xtruct/_cli/template/.claude/workflows/plan-product.js +136 -0
  31. xtruct-0.1.0/src/xtruct/_cli/template/.claude/workflows/run-epic.js +248 -0
  32. xtruct-0.1.0/src/xtruct/_cli/template/.github/pull_request_template.md +24 -0
  33. xtruct-0.1.0/src/xtruct/_cli/template/CLAUDE.md +65 -0
  34. xtruct-0.1.0/src/xtruct/_cli/template/Makefile +8 -0
  35. xtruct-0.1.0/src/xtruct/_cli/template/_gitignore +13 -0
  36. xtruct-0.1.0/src/xtruct/_cli/template/contracts/README.md +4 -0
  37. xtruct-0.1.0/src/xtruct/_cli/template/docs/CONVENTIONS.md +3 -0
  38. xtruct-0.1.0/src/xtruct/_cli/template/docs/templates/ARCHITECTURE.md +30 -0
  39. xtruct-0.1.0/src/xtruct/_cli/template/docs/templates/PRD.md +25 -0
  40. xtruct-0.1.0/src/xtruct/_cli/template/docs/templates/ci.yml +22 -0
  41. xtruct-0.1.0/src/xtruct/_cli/template/foundry.config.json +25 -0
  42. xtruct-0.1.0/src/xtruct/_cli/template/scripts/bootstrap-github.sh +48 -0
  43. xtruct-0.1.0/src/xtruct/_cli/template/scripts/capacity.mjs +53 -0
  44. xtruct-0.1.0/src/xtruct/_cli/template/scripts/merge-pr.sh +97 -0
  45. xtruct-0.1.0/src/xtruct/launcher.py +56 -0
@@ -0,0 +1,3 @@
1
+ src/xtruct/_cli/
2
+ dist/
3
+ LICENSE
xtruct-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Aditya Narayan
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.
xtruct-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,41 @@
1
+ Metadata-Version: 2.5
2
+ Name: xtruct
3
+ Version: 0.1.0
4
+ Summary: A software company made of Claude Code agents: architect, leads, developers, reviewers and QA, with ClickUp as the board and gated PR merges.
5
+ Project-URL: Homepage, https://xtruct.masst.dev
6
+ Author: Aditya Narayan
7
+ License-Expression: MIT
8
+ License-File: LICENSE
9
+ Keywords: ai-agents,claude-code,clickup,code-review,multi-agent,scaffold
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Environment :: Console
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Operating System :: MacOS
14
+ Classifier: Operating System :: POSIX :: Linux
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Topic :: Software Development :: Code Generators
17
+ Requires-Python: >=3.9
18
+ Description-Content-Type: text/markdown
19
+
20
+ # Xtruct
21
+
22
+ A software company made of [Claude Code](https://claude.com/claude-code) agents. You are the founder: you approve the spec and sign off on working software. An architect plans and draws the product, leads split it into ClickUp tasks, developer agents build each one in its own git worktree, and reviewers, CI and a merge gate land every change on main.
23
+
24
+ This is the Python distribution of the same CLI published to npm as `@masst/xtruct`. Use whichever fits your stack; both behave identically.
25
+
26
+ ## Install
27
+
28
+ ```bash
29
+ uv tool install xtruct # or: pipx install xtruct, or: pip install xtruct
30
+ xtruct new my-app
31
+ ```
32
+
33
+ One-off, without installing: `uvx xtruct new my-app`. Use an installed copy (not `uvx`) for `xtruct setup`, because setup wires your Claude Code hooks to the installed files.
34
+
35
+ ## Requirements
36
+
37
+ - Node.js 18.3+ on your PATH (the CLI runs on Node; set `XTRUCT_NODE` to point at a specific binary)
38
+ - Claude Code with workflows, and the ClickUp connector enabled
39
+ - `git`, `gh` (logged in), `jq`, `make`
40
+
41
+ Run `xtruct doctor` to check everything. Full docs: https://xtruct.masst.dev
xtruct-0.1.0/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # Xtruct
2
+
3
+ A software company made of [Claude Code](https://claude.com/claude-code) agents. You are the founder: you approve the spec and sign off on working software. An architect plans and draws the product, leads split it into ClickUp tasks, developer agents build each one in its own git worktree, and reviewers, CI and a merge gate land every change on main.
4
+
5
+ This is the Python distribution of the same CLI published to npm as `@masst/xtruct`. Use whichever fits your stack; both behave identically.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ uv tool install xtruct # or: pipx install xtruct, or: pip install xtruct
11
+ xtruct new my-app
12
+ ```
13
+
14
+ One-off, without installing: `uvx xtruct new my-app`. Use an installed copy (not `uvx`) for `xtruct setup`, because setup wires your Claude Code hooks to the installed files.
15
+
16
+ ## Requirements
17
+
18
+ - Node.js 18.3+ on your PATH (the CLI runs on Node; set `XTRUCT_NODE` to point at a specific binary)
19
+ - Claude Code with workflows, and the ClickUp connector enabled
20
+ - `git`, `gh` (logged in), `jq`, `make`
21
+
22
+ Run `xtruct doctor` to check everything. Full docs: https://xtruct.masst.dev
@@ -0,0 +1,38 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.24"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "xtruct"
7
+ version = "0.1.0"
8
+ description = "A software company made of Claude Code agents: architect, leads, developers, reviewers and QA, with ClickUp as the board and gated PR merges."
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ license-files = ["LICENSE"]
12
+ authors = [{ name = "Aditya Narayan" }]
13
+ requires-python = ">=3.9"
14
+ keywords = ["claude-code", "ai-agents", "multi-agent", "clickup", "scaffold", "code-review"]
15
+ classifiers = [
16
+ "Development Status :: 3 - Alpha",
17
+ "Environment :: Console",
18
+ "Intended Audience :: Developers",
19
+ "Operating System :: MacOS",
20
+ "Operating System :: POSIX :: Linux",
21
+ "Programming Language :: Python :: 3",
22
+ "Topic :: Software Development :: Code Generators",
23
+ ]
24
+
25
+ [project.urls]
26
+ Homepage = "https://xtruct.masst.dev"
27
+
28
+ [project.scripts]
29
+ xtruct = "xtruct.launcher:main"
30
+
31
+ [tool.hatch.build.targets.wheel]
32
+ packages = ["src/xtruct"]
33
+ # The Node CLI is copied in by scripts/sync.sh and is git-ignored, so list it explicitly.
34
+ artifacts = ["src/xtruct/_cli/**"]
35
+
36
+ [tool.hatch.build.targets.sdist]
37
+ include = ["src/xtruct", "README.md", "LICENSE", "scripts"]
38
+ artifacts = ["src/xtruct/_cli/**"]
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env bash
2
+ # Copy the Node CLI from ../foundry into the Python package before building.
3
+ # Run from anywhere: python/scripts/sync.sh, then `uv build` in python/.
4
+ set -euo pipefail
5
+
6
+ HERE="$(cd "$(dirname "$0")/.." && pwd)"
7
+ SRC="$HERE/../foundry"
8
+ DEST="$HERE/src/xtruct/_cli"
9
+
10
+ node_version="$(node -p "require('$SRC/package.json').version")"
11
+ py_version="$(sed -n 's/^version = "\(.*\)"/\1/p' "$HERE/pyproject.toml")"
12
+ if [ "$node_version" != "$py_version" ]; then
13
+ echo "version mismatch: foundry/package.json is $node_version, python/pyproject.toml is $py_version" >&2
14
+ exit 1
15
+ fi
16
+
17
+ rm -rf "$DEST"
18
+ mkdir -p "$DEST"
19
+ cp -R "$SRC/bin" "$SRC/lib" "$SRC/global" "$SRC/template" "$SRC/package.json" "$DEST/"
20
+ cp "$SRC/LICENSE" "$HERE/LICENSE"
21
+ echo "synced foundry $node_version into $DEST"
@@ -0,0 +1,3 @@
1
+ """Xtruct: a software company made of Claude Code agents."""
2
+
3
+ __version__ = "0.1.0"
@@ -0,0 +1,5 @@
1
+ import sys
2
+
3
+ from .launcher import main
4
+
5
+ sys.exit(main())
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ // Old name, kept so installs from before the rename (hooks, ~/.local/bin/xtruct-foundry) keep working.
3
+ require('./xtruct.js')