runward 0.13.1 → 0.13.2
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 +3 -1
- package/dist/commands/init.js +5 -1
- package/dist/lib/tools.js +72 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -137,7 +137,9 @@ Read the doctrine: [Concevoir et exécuter des systèmes agentiques (FR)](https:
|
|
|
137
137
|
|
|
138
138
|
## Supported tools
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
Two vendor-neutral files are **always written**, so the method works on any agent with no profile at all: `AGENTS.md` (the standard charter read by Codex, Cursor, Copilot, Windsurf, Cline, Zed, Amp, opencode, Junie, Warp and more), and the **phase skills** at `.agents/skills/runward-<phase>/SKILL.md` — the converged `SKILL.md` seam read by 14+ harnesses, which surface each build phase's craft rules *by relevance* at the point of action (subordinate to the gate: a skill loaded but not applied still fails `check --strict`).
|
|
141
|
+
|
|
142
|
+
Tool profiles (`--tools`) add harness-specific wiring on top: **Claude Code** (`/rw-*` commands + `.claude/skills/`), **Cursor**, **GitHub Copilot**, **Gemini CLI**, **Windsurf** (charter files), **Continue.dev** (`.continue/rules/`), **JetBrains Junie** and **Trae** (`.<harness>/skills/`). The mission structure itself is plain markdown in your repo. More profiles welcome (see [ROADMAP.md](ROADMAP.md)).
|
|
141
143
|
|
|
142
144
|
## License
|
|
143
145
|
|
package/dist/commands/init.js
CHANGED
|
@@ -2,7 +2,7 @@ import { join, resolve } from "node:path";
|
|
|
2
2
|
import { readdirSync } from "node:fs";
|
|
3
3
|
import { checkbox, input, select } from "@inquirer/prompts";
|
|
4
4
|
import { TEMPLATES, EXAMPLE_MISSION, MISSION_LAYOUT, VERSION } from "../lib/paths.js";
|
|
5
|
-
import { TOOL_PROFILES, TOOL_IDS } from "../lib/tools.js";
|
|
5
|
+
import { TOOL_PROFILES, TOOL_IDS, baselineSkills } from "../lib/tools.js";
|
|
6
6
|
import { makeWriter } from "../lib/write.js";
|
|
7
7
|
import { c, createHeader, isNonInteractive, section, status } from "../lib/styles.js";
|
|
8
8
|
/** Recursively copy a shipped directory tree (used to lay down the filled reference mission). */
|
|
@@ -100,6 +100,10 @@ export async function initCommand(opts) {
|
|
|
100
100
|
}
|
|
101
101
|
console.log(section("Agent charter"));
|
|
102
102
|
w.copy(join(TEMPLATES, "targets", "AGENTS.md"), join(root, "AGENTS.md"));
|
|
103
|
+
// Vendor-neutral phase skills (ADR-0018): the converged SKILL.md alias read by 14+ harnesses.
|
|
104
|
+
console.log(section("Phase skills (.agents/skills — vendor-neutral, relevance-loaded)"));
|
|
105
|
+
for (const f of baselineSkills(root))
|
|
106
|
+
w.write(f.path, f.content);
|
|
103
107
|
for (const profile of TOOL_PROFILES.filter((p) => tools.includes(p.id))) {
|
|
104
108
|
console.log(section(`Profile · ${profile.label}`));
|
|
105
109
|
for (const f of profile.files(root))
|
package/dist/lib/tools.js
CHANGED
|
@@ -17,11 +17,61 @@ const rulesBody = [
|
|
|
17
17
|
"with a dated re-evaluation trigger. Complexity is added only on an objective trigger — no trigger, no change.",
|
|
18
18
|
"",
|
|
19
19
|
].join("\n");
|
|
20
|
+
const PHASE_SKILLS = [
|
|
21
|
+
{
|
|
22
|
+
phase: "architect", label: "architecture",
|
|
23
|
+
when: "posing the architecture of an agentic system: domain ports, the model boundary, the integration protocol, or any structural design decision taken before the stack",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
phase: "topology", label: "execution topology",
|
|
27
|
+
when: "deciding where each port's adapter runs and under which data sovereignty: placement family, the secrets/network boundary, or third-party trace export",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
phase: "floor", label: "the executable floor",
|
|
31
|
+
when: "building the smallest executable floor: the single orchestrator, the model port, deterministic guards, persistence, or baseline observability",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
phase: "govern", label: "governance",
|
|
35
|
+
when: "governing an agentic system: the threat model, prompt-injection defense, evaluation, observability, resilience, or any sensitive-action approval",
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
/** The shared body — identical guidance across harnesses; only the packaging frontmatter differs. */
|
|
39
|
+
const skillBody = (s) => [
|
|
40
|
+
`# Runward — ${s.label} craft`,
|
|
41
|
+
"",
|
|
42
|
+
`Use this when ${s.when}.`,
|
|
43
|
+
"",
|
|
44
|
+
`Confront the CRITICAL/HIGH craft rules mapped to the \`${s.phase}\` phase in \`runward/rules/\` — each rule's \`phases:\` frontmatter declares where it applies — at the point of action, not from memory. Account for each in the deliverable's \`## Rule conformance\` manifest: \`applied\` with a \`file:line\` or test, \`deviated\` with an ADR, or \`n/a\` with a reason.`,
|
|
45
|
+
"",
|
|
46
|
+
"This skill helps you *apply* the rules; it does not enforce them. `runward check --strict` is the sole authority and verifies the manifest deterministically. A rule surfaced here but not accounted for still fails the gate.",
|
|
47
|
+
"",
|
|
48
|
+
].join("\n");
|
|
49
|
+
/** SKILL.md open-format: name + description (the relevance trigger) + body. */
|
|
50
|
+
const skillMd = (s) => [
|
|
51
|
+
"---",
|
|
52
|
+
`name: runward-${s.phase}`,
|
|
53
|
+
`description: Runward ${s.label} craft rules. Use when ${s.when}.`,
|
|
54
|
+
"---",
|
|
55
|
+
"",
|
|
56
|
+
skillBody(s),
|
|
57
|
+
].join("\n");
|
|
58
|
+
/** Emit the four phase skills as SKILL.md folders under `<root>/<...dir>/runward-<phase>/SKILL.md`. */
|
|
59
|
+
const skillsAt = (root, ...dir) => PHASE_SKILLS.map((s) => ({ path: join(root, ...dir, `runward-${s.phase}`, "SKILL.md"), content: skillMd(s) }));
|
|
60
|
+
/**
|
|
61
|
+
* The vendor-neutral phase skills at `.agents/skills/` — the converged SKILL.md alias read by
|
|
62
|
+
* 14+ harnesses, no agent privileged. Always written alongside AGENTS.md, like the rules.
|
|
63
|
+
*/
|
|
64
|
+
export function baselineSkills(root) {
|
|
65
|
+
return skillsAt(root, ".agents", "skills");
|
|
66
|
+
}
|
|
20
67
|
export const TOOL_PROFILES = [
|
|
21
68
|
{
|
|
22
69
|
id: "claude",
|
|
23
|
-
label: "Claude Code (.claude/commands/rw-*)",
|
|
24
|
-
files: (root) =>
|
|
70
|
+
label: "Claude Code (.claude/commands/rw-* + .claude/skills/)",
|
|
71
|
+
files: (root) => [
|
|
72
|
+
...WORKFLOWS.map((wf) => ({ path: join(root, ".claude", "commands", `rw-${wf}.md`), content: pointer(wf) })),
|
|
73
|
+
...skillsAt(root, ".claude", "skills"),
|
|
74
|
+
],
|
|
25
75
|
},
|
|
26
76
|
{
|
|
27
77
|
id: "cursor",
|
|
@@ -55,5 +105,25 @@ export const TOOL_PROFILES = [
|
|
|
55
105
|
content: "# Runward\n\n" + rulesBody,
|
|
56
106
|
}],
|
|
57
107
|
},
|
|
108
|
+
{
|
|
109
|
+
id: "continue",
|
|
110
|
+
label: "Continue.dev (.continue/rules/runward-*)",
|
|
111
|
+
files: (root) => PHASE_SKILLS.map((s) => ({
|
|
112
|
+
path: join(root, ".continue", "rules", `runward-${s.phase}.md`),
|
|
113
|
+
content: ["---", `name: Runward ${s.label} craft`, `description: Use when ${s.when}.`, "alwaysApply: false", "---", "", skillBody(s)].join("\n"),
|
|
114
|
+
})),
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
id: "junie",
|
|
118
|
+
label: "JetBrains Junie (.junie/skills/)",
|
|
119
|
+
files: (root) => skillsAt(root, ".junie", "skills"),
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
id: "trae",
|
|
123
|
+
label: "Trae (.trae/skills/)",
|
|
124
|
+
files: (root) => skillsAt(root, ".trae", "skills"),
|
|
125
|
+
},
|
|
58
126
|
];
|
|
59
127
|
export const TOOL_IDS = TOOL_PROFILES.map((t) => t.id);
|
|
128
|
+
/** The gated build phases that get a relevance-loaded phase skill (ADR-0018). */
|
|
129
|
+
export const SKILL_PHASES = PHASE_SKILLS.map((s) => s.phase);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "runward",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"description": "After the spec: ship and run. A delivery framework for agentic systems — floor first, evolution on evidence, governance from day zero, handover with proof.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentic",
|