@alessandroraffa/tangyr 0.0.2 → 0.9.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 +21 -0
- package/README.md +109 -3
- package/dist/index.js +29747 -0
- package/mappings/README.md +46 -0
- package/mappings/agent-fields.yaml +87 -0
- package/mappings/hook-events.yaml +114 -0
- package/mappings/loss-severity.yaml +39 -0
- package/mappings/model-tiers.yaml +59 -0
- package/mappings/permission-modes.yaml +22 -0
- package/mappings/platform-paths.yaml +131 -0
- package/mappings/rule-modes.yaml +19 -0
- package/mappings/tool-names.yaml +107 -0
- package/package.json +44 -14
- package/bin/tangyr.js +0 -3
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,111 @@
|
|
|
1
|
-
# tangyr
|
|
1
|
+
# @alessandroraffa/tangyr
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
CLI for the Tangyr discipline — install and manage operating kits for AI coding tools.
|
|
4
4
|
|
|
5
|
-
|
|
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; runs assess, resolves conflicts, writes artifacts |
|
|
27
|
+
| `tangyr uninstall` | Remove Tangyr from the target scope |
|
|
28
|
+
| `tangyr sync` | Synchronize installed kit to the latest version |
|
|
29
|
+
| `tangyr verify` | Check installation integrity against the manifest |
|
|
30
|
+
| `tangyr cleanup` | Remove managed artifacts; delegates to uninstall if manifest exists |
|
|
31
|
+
| `tangyr assess` | Pre-installation conflict analysis |
|
|
32
|
+
| `tangyr list` | Display available and installed kits |
|
|
33
|
+
|
|
34
|
+
### Authentication
|
|
35
|
+
|
|
36
|
+
| Command | Description |
|
|
37
|
+
| -------------------- | ------------------------------------- |
|
|
38
|
+
| `tangyr auth login` | Store a license key for the Full tier |
|
|
39
|
+
| `tangyr auth status` | Show current authentication state |
|
|
40
|
+
| `tangyr auth logout` | Remove stored credentials |
|
|
41
|
+
|
|
42
|
+
### Environment
|
|
43
|
+
|
|
44
|
+
| Command | Description |
|
|
45
|
+
| --------------- | -------------------------------------------------- |
|
|
46
|
+
| `tangyr detect` | Detect supported AI tool runtimes |
|
|
47
|
+
| `tangyr status` | Show managed artifact status per tool |
|
|
48
|
+
| `tangyr doctor` | Run environment diagnostics with optional auto-fix |
|
|
49
|
+
| `tangyr probe` | Probe configured platform paths |
|
|
50
|
+
|
|
51
|
+
### Configuration
|
|
52
|
+
|
|
53
|
+
| Command | Description |
|
|
54
|
+
| ----------------- | ----------------------------------------------------- |
|
|
55
|
+
| `tangyr init` | Create a tangyr.config.yaml interactively |
|
|
56
|
+
| `tangyr config` | Display or edit Tangyr configuration |
|
|
57
|
+
| `tangyr validate` | Validate the kit against kitFormat 1 conformity rules |
|
|
58
|
+
|
|
59
|
+
## Global flags
|
|
60
|
+
|
|
61
|
+
| Flag | Description |
|
|
62
|
+
| ------------------- | -------------------------------------- |
|
|
63
|
+
| `--config <path>` | Use an explicit configuration file |
|
|
64
|
+
| `--kit-path <path>` | Use an explicit operating kit root |
|
|
65
|
+
| `--dry-run` | Report actions without modifying files |
|
|
66
|
+
| `--yes` | Skip confirmation prompts |
|
|
67
|
+
| `--verbose` | Detailed output |
|
|
68
|
+
| `--quiet` | Errors only |
|
|
69
|
+
| `--no-color` | Disable colors |
|
|
70
|
+
|
|
71
|
+
## Supported tools
|
|
72
|
+
|
|
73
|
+
- **Claude Code** — artifacts placed in scope-resolved Claude Code paths
|
|
74
|
+
- **GitHub Copilot** — agents and commands compiled to VS Code user directories
|
|
75
|
+
- **OpenAI Codex** — `AGENTS.md`, agent TOML files, rules, hooks, and MCP compiled to Codex paths
|
|
76
|
+
- **OpenCode** — instructions, agents, commands, skills, and MCP placed in XDG config paths
|
|
77
|
+
- **Cursor** — instructions, subagents, rules, commands, skills, hooks, and MCP
|
|
78
|
+
- **Cline** — instructions, rules, workflows, skills, and MCP
|
|
79
|
+
|
|
80
|
+
## Quick start
|
|
81
|
+
|
|
82
|
+
```sh
|
|
83
|
+
# Initialize a configuration in your project
|
|
84
|
+
npx @alessandroraffa/tangyr init
|
|
85
|
+
|
|
86
|
+
# Install a kit (dry-run first to preview)
|
|
87
|
+
npx @alessandroraffa/tangyr install --kit lite --dry-run
|
|
88
|
+
npx @alessandroraffa/tangyr install --kit lite
|
|
89
|
+
|
|
90
|
+
# Check installation status
|
|
91
|
+
npx @alessandroraffa/tangyr status
|
|
92
|
+
|
|
93
|
+
# Synchronize after a kit update
|
|
94
|
+
npx @alessandroraffa/tangyr sync
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Scope
|
|
98
|
+
|
|
99
|
+
Every write command accepts `--scope global` or `--scope project`. The CLI flag overrides `config.scope` for that invocation.
|
|
100
|
+
|
|
101
|
+
| Scope | Manifest location | Claude Code artifacts |
|
|
102
|
+
| --------- | ------------------------- | ----------------------------------- |
|
|
103
|
+
| `global` | `~/.tangyr/manifest.json` | `~/.claude/` |
|
|
104
|
+
| `project` | `.tangyr/manifest.json` | repo root (`AGENTS.md`, `.claude/`) |
|
|
105
|
+
|
|
106
|
+
## Distribution model
|
|
107
|
+
|
|
108
|
+
- **Lite** — publicly available, core agents and essential skills
|
|
109
|
+
- **Full** — requires license key, complete agent roster and all skills
|
|
110
|
+
|
|
111
|
+
Run `tangyr auth login` to authenticate with a Full-tier license key.
|