@earntori/cli 0.2.13 → 0.2.14
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/dist/index.js +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -268,11 +268,19 @@ async function init() {
|
|
|
268
268
|
wrote.push(...h.install(ctx));
|
|
269
269
|
if (pin)
|
|
270
270
|
wrote.push(join(".tori", "project.json"));
|
|
271
|
+
let next = "\n\nNext\n Give your agent a task. When it finishes, Tori's checks run.\n Guide: https://github.com/GAishZOEish/tori-examples#readme\n tori ledger the signed record of every check and fix";
|
|
272
|
+
try {
|
|
273
|
+
const r = await api(cfg, "GET", `/api/v1/standards?project=${encodeURIComponent(targetProject())}`);
|
|
274
|
+
const avail = r.standards.filter((s) => !s.enabled && s.rules > 0);
|
|
275
|
+
if (avail.length)
|
|
276
|
+
next += `\n Standards you can turn on for this project:\n ${avail.map((s) => `${s.id} (${s.rules} checks)`).join(" ")}\n tori standards enable ${avail.map((s) => s.id).join(" ")}`;
|
|
277
|
+
}
|
|
278
|
+
catch { }
|
|
271
279
|
out({ ok: true, harnesses: set.map((h) => h.id), wrote, local }, `\u2713 Tori installed in this project for ${set.map((h) => h.label).join(", ")}${local ? " (local builds)" : ""}${pin ? ` \u2014 pinned to ${pin}` : ""}\n` +
|
|
272
280
|
wrote.map((w) => ` ${w}`).join("\n") +
|
|
273
281
|
`\n\n${set.map((h) => h.after).join(" ")}\nTori's checks now run when the agent finishes a turn; findings are shown to the agent before it stops.` +
|
|
274
282
|
(local ? "" : `\nPinned to @earntori/cli@${ver} and @earntori/mcp@${TORI_MCP_VERSION}; re-run tori init after upgrading.`) +
|
|
275
|
-
(set.length === HARNESSES.length ? "" : "\n(Not detected: " + HARNESSES.filter((h) => !set.includes(h)).map((h) => `${h.label} \u2014 tori init --${h.id === "claude-code" ? "claude" : h.id}`).join("; ") + ".)"));
|
|
283
|
+
(set.length === HARNESSES.length ? "" : "\n(Not detected: " + HARNESSES.filter((h) => !set.includes(h)).map((h) => `${h.label} \u2014 tori init --${h.id === "claude-code" ? "claude" : h.id}`).join("; ") + ".)") + next);
|
|
276
284
|
}
|
|
277
285
|
function repoIndex() { try {
|
|
278
286
|
const out = execSync("git ls-files", { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }).split("\n").filter(Boolean);
|