@alessandroraffa/tangyr 4.1.0 → 5.0.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/README.md +23 -3
- package/dist/index.js +975 -673
- package/mappings/README.md +3 -3
- package/mappings/loss-severity.yaml +10 -0
- package/mappings/platform-paths.yaml +9 -1
- package/package.json +1 -1
package/mappings/README.md
CHANGED
|
@@ -5,9 +5,9 @@ Declarative translation inputs for `tangyr`.
|
|
|
5
5
|
These files are part of the canonical runtime bundle, but they are design-time metadata rather than user-facing runtime artifacts. They define the current active v1 translation baseline for:
|
|
6
6
|
|
|
7
7
|
- `Claude Code`
|
|
8
|
-
- `GitHub Copilot`
|
|
9
|
-
- `Codex`
|
|
10
|
-
- `OpenCode` — full six-slot profile: `instructions` (`AGENTS.md` at the XDG-based `~/.config/opencode/` path), `agents`, `commands`, `skills` (OpenCode-local), `skills_shared` (cross-tool `~/.agents/skills`), and `config_doc` (`opencode.json`)
|
|
8
|
+
- `GitHub Copilot` — `rules` is a project-only slot (`.github/instructions/`), `null` at global scope: that path is a repository surface with no documented user-level equivalent
|
|
9
|
+
- `Codex` — skills and commands both land at Codex's documented skills path (`~/.agents/skills` globally, `.agents/skills` in a repository), since Codex deprecated custom prompts in favour of skills; `exec-policy` rules emit as `.rules` files and guidance rules are folded into the instructions document
|
|
10
|
+
- `OpenCode` — full six-slot profile: `instructions` (`AGENTS.md` at the XDG-based `~/.config/opencode/` path globally; `.opencode/AGENTS.md` in a project, declared in the `instructions` field of `opencode.json`, because the project-root `AGENTS.md` is claimed by four other targets), `agents`, `commands`, `skills` (OpenCode-local), `skills_shared` (cross-tool `~/.agents/skills`), and `config_doc` (`opencode.json`)
|
|
11
11
|
- `Cursor` — full eight-slot profile: `instructions` (`AGENTS.md` at `~/.cursor/rules/`), `agents` (`~/.cursor/agents/`), `rules` (`~/.cursor/rules/`), `skills` (Cursor-local `~/.cursor/skills/`), `skills_shared` (cross-tool `~/.agents/skills`), `hooks_file` (`~/.cursor/hooks.json`), `mcp_file` (`~/.cursor/mcp.json`), and `permissions_file` (`~/.cursor/permissions.json`)
|
|
12
12
|
- `Cline` — five-slot profile: `instructions` (`AGENTS.md` at project root — project scope only; global `instructions` is `null` because Cline has no documented global `AGENTS.md` read location and the global custom-instructions field is interface-only), `rules` (project: `.clinerules/`; global: `~/Documents/Cline/Rules` — macOS primary), `workflows` (project: `.clinerules/workflows/`; global: `~/Documents/Cline/Workflows/`), `skills` (project: `.cline/skills/`; global: `~/.cline/skills/`), and `mcp_file` (project: `cline-mcp.json`; global: `~/.cline/mcp.json`)
|
|
13
13
|
|
|
@@ -18,13 +18,23 @@ notes:
|
|
|
18
18
|
- Severity is resolved per entry type, not per target - `resolveLossSeverity`
|
|
19
19
|
(compiler/loss-report.ts) keys only on the entry type, with an explicit severity from
|
|
20
20
|
hook-events.yaml overriding it.
|
|
21
|
+
- "`rule-not-delivered` was added on 2026-09-16 and is the one entry measured on the
|
|
22
|
+
files rather than recorded by the compiler that wrote them. It is emitted after every
|
|
23
|
+
target has run, once per rule that did not reach a target, which is the machine-readable
|
|
24
|
+
half of the per-target coverage block the run prints."
|
|
25
|
+
- "`hook-declaration-invalid` and `hook-source-ambiguous` were in the code's table and
|
|
26
|
+
missing from this one until 2026-09-16. Nothing compared the two, so the drift was
|
|
27
|
+
silent; tests/unit/mappings/loss-severity-matches-code.test.ts now does."
|
|
21
28
|
|
|
22
29
|
entry_types:
|
|
23
30
|
command-as-skill: info
|
|
24
31
|
rule-as-instruction: info
|
|
25
32
|
rule-mode-downgrade: warning
|
|
26
33
|
rule-path-scoping: warning
|
|
34
|
+
rule-not-delivered: error
|
|
27
35
|
hook-event-drop: warning
|
|
36
|
+
hook-declaration-invalid: error
|
|
37
|
+
hook-source-ambiguous: error
|
|
28
38
|
hook-as-plugin: error
|
|
29
39
|
instructions-shim: info
|
|
30
40
|
permission-coarsening: error
|
|
@@ -123,7 +123,15 @@ targets:
|
|
|
123
123
|
skills_shared: ~/.agents/skills
|
|
124
124
|
config_doc: ~/.config/opencode/opencode.json
|
|
125
125
|
project:
|
|
126
|
-
|
|
126
|
+
# Not the project-root AGENTS.md. Four targets claimed that one file in
|
|
127
|
+
# project scope and only the last writer kept its content, so three of the
|
|
128
|
+
# four silently lost the kit's rules. OpenCode is the one target that can
|
|
129
|
+
# be told where to read from: `opencode.json` takes an `instructions`
|
|
130
|
+
# field of "custom instruction files/glob paths", and "All instruction
|
|
131
|
+
# files are combined with your AGENTS.md files" (opencode.ai, Rules). So
|
|
132
|
+
# it moves aside and is declared, leaving the contested file to the
|
|
133
|
+
# targets that have no such field.
|
|
134
|
+
instructions: .opencode/AGENTS.md
|
|
127
135
|
agents: .opencode/agents
|
|
128
136
|
commands: .opencode/commands
|
|
129
137
|
skills: .opencode/skills
|