@alessandroraffa/tangyr 0.0.2 → 0.10.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 Alessandro Raffa
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 CHANGED
@@ -1,5 +1,120 @@
1
- # tangyr
1
+ # @alessandroraffa/tangyr
2
2
 
3
- A Software Engineering Discipline for Agent Coding.
3
+ CLI for the Tangyr discipline — install and manage operating kits for AI coding tools.
4
4
 
5
- This package is not yet released. See [github.com/alessandroraffa/tangyr](https://github.com/araffa/tangyr).
5
+ An operating kit is a self-contained package of agents, skills, commands, rules, and templates that implements the Tangyr discipline for a specific AI coding context. The CLI places kit artifacts into the environments consumed by supported tools.
6
+
7
+ ## Install / run
8
+
9
+ ```sh
10
+ npx @alessandroraffa/tangyr <command>
11
+ ```
12
+
13
+ Or install globally:
14
+
15
+ ```sh
16
+ npm install -g @alessandroraffa/tangyr
17
+ tangyr <command>
18
+ ```
19
+
20
+ ## Commands
21
+
22
+ ### Kit management
23
+
24
+ | Command | Description |
25
+ | ---------------------------------- | ---------------------------------------------------------------------------------------------------- |
26
+ | `tangyr install --kit <name>` | Install a kit resolved from configured search paths (`kitSearchPaths`/`kit` in `tangyr.config.yaml`) |
27
+ | `tangyr install --kit-path <path>` | Install a kit from an explicit kit root path |
28
+ | `tangyr uninstall` | Remove Tangyr from the target scope |
29
+ | `tangyr sync` | Synchronize installed kit to the latest version |
30
+ | `tangyr verify` | Check installation integrity against the manifest |
31
+ | `tangyr cleanup` | Remove managed artifacts; delegates to uninstall if manifest exists |
32
+ | `tangyr assess` | Pre-installation conflict analysis |
33
+ | `tangyr list` | Display kits discovered in configured search paths and any installed manifests |
34
+
35
+ ### Environment
36
+
37
+ | Command | Description |
38
+ | --------------- | -------------------------------------------------- |
39
+ | `tangyr detect` | Detect supported AI tool runtimes |
40
+ | `tangyr status` | Show managed artifact status per tool |
41
+ | `tangyr doctor` | Run environment diagnostics with optional auto-fix |
42
+ | `tangyr probe` | Probe configured platform paths |
43
+
44
+ ### Configuration
45
+
46
+ | Command | Description |
47
+ | ----------------- | ----------------------------------------------------- |
48
+ | `tangyr init` | Create a tangyr.config.yaml interactively |
49
+ | `tangyr config` | Display or edit Tangyr configuration |
50
+ | `tangyr validate` | Validate the kit against kitFormat 1 conformity rules |
51
+
52
+ ## Global flags
53
+
54
+ | Flag | Description |
55
+ | ---------------------------- | ----------------------------------------------------------------------------------------------------- |
56
+ | `--config <path>` | Use an explicit configuration file |
57
+ | `--kit-path <path>` | Use an explicit operating kit root |
58
+ | `--dry-run` | Report actions without modifying files |
59
+ | `--yes` | Skip confirmation prompts |
60
+ | `--verbose` | Detailed output |
61
+ | `--quiet` | Errors only |
62
+ | `--no-color` | Disable colors |
63
+ | `--claude-config-dir <path>` | Claude Code global root directory (repeatable). Overrides `claudeCodeGlobalPaths` in the config file. |
64
+
65
+ ## Supported tools
66
+
67
+ - **Claude Code** — artifacts placed in scope-resolved Claude Code paths
68
+ - **GitHub Copilot** — agents and commands compiled to VS Code user directories
69
+ - **OpenAI Codex** — `AGENTS.md`, agent TOML files, rules, hooks, and MCP compiled to Codex paths
70
+ - **OpenCode** — instructions, agents, commands, skills, and MCP placed in XDG config paths
71
+ - **Cursor** — instructions, subagents, rules, commands, skills, hooks, and MCP
72
+ - **Cline** — instructions, rules, workflows, skills, and MCP
73
+
74
+ ## Quick start
75
+
76
+ ```sh
77
+ # Initialize a configuration in your project
78
+ npx @alessandroraffa/tangyr init
79
+
80
+ # Install a kit by path (preview with --dry-run first)
81
+ npx @alessandroraffa/tangyr install --kit-path ./path/to/operating-kit --dry-run
82
+ npx @alessandroraffa/tangyr install --kit-path ./path/to/operating-kit
83
+
84
+ # Check installation status, then sync after a kit update
85
+ npx @alessandroraffa/tangyr status
86
+ npx @alessandroraffa/tangyr sync
87
+ ```
88
+
89
+ ## Scope
90
+
91
+ Every write command accepts `--scope global` or `--scope project`. The CLI flag overrides `config.scope` for that invocation.
92
+
93
+ | Scope | Manifest location | Claude Code artifacts |
94
+ | --------- | ------------------------- | ----------------------------------- |
95
+ | `global` | `~/.tangyr/manifest.json` | `~/.claude/` |
96
+ | `project` | `.tangyr/manifest.json` | repo root (`AGENTS.md`, `.claude/`) |
97
+
98
+ ## Multiple Claude Code global roots
99
+
100
+ If you maintain more than one Claude Code account (e.g. `~/.claude` and `~/.claude-work`), you can keep them identical with a single sync operation.
101
+
102
+ **Via config** (`tangyr.config.yaml`):
103
+
104
+ ```yaml
105
+ claudeCodeGlobalPaths:
106
+ - ~/.claude
107
+ - ~/.claude-work
108
+ ```
109
+
110
+ **Via CLI flag** (repeatable, overrides the config field):
111
+
112
+ ```sh
113
+ tangyr sync --claude-config-dir ~/.claude --claude-config-dir ~/.claude-work
114
+ ```
115
+
116
+ Precedence: `--claude-config-dir` flag > `claudeCodeGlobalPaths` in config > default `~/.claude`.
117
+
118
+ Per-root artifacts (instructions, agents, skills, commands, rules, output-styles, hooks settings) are written under each root. Shared artifacts (`~/.claude.json` for MCP, `~/.agents/hooks` for hooks) are resolved from the platform default and written once regardless of how many roots are configured.
119
+
120
+ The manifest records the full set of roots written so that `verify` and `uninstall` operate on all of them.