From 2fd663277ccd04f397954b0017452f6660c5ee83 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 8 Jan 2026 17:54:51 +0000 Subject: [PATCH 1/2] docs: add npx usage note for local trail installation Add a Usage section explaining that users can run trail commands via npx if the package isn't globally installed. --- docs/trail-snippet.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/trail-snippet.md b/docs/trail-snippet.md index 7bd0e1f..73509b3 100644 --- a/docs/trail-snippet.md +++ b/docs/trail-snippet.md @@ -2,6 +2,18 @@ Record your work as a trajectory for future agents and humans to follow. +## Usage + +If `trail` is installed globally, run commands directly: +```bash +trail start "Task description" +``` + +If not globally installed, use npx to run from local installation: +```bash +npx trail start "Task description" +``` + ## When Starting Work Start a trajectory when beginning a task: From e0982f1d98423f835def260c47685f0512ce6c63 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 8 Jan 2026 18:01:24 +0000 Subject: [PATCH 2/2] fix: resolve formatting lint errors --- package.json | 4 +--- src/core/trajectory.ts | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index de62dab..400715b 100644 --- a/package.json +++ b/package.json @@ -29,9 +29,7 @@ ], "author": "", "license": "MIT", - "files": [ - "dist" - ], + "files": ["dist"], "engines": { "node": ">=20.0.0" }, diff --git a/src/core/trajectory.ts b/src/core/trajectory.ts index f516df9..bc8494b 100644 --- a/src/core/trajectory.ts +++ b/src/core/trajectory.ts @@ -113,9 +113,7 @@ export function addChapter( // Add agent to trajectory.agents if not already present let updatedAgents: AgentParticipation[] = trajectory.agents; - const agentExists = trajectory.agents.some( - (a) => a.name === input.agentName, - ); + const agentExists = trajectory.agents.some((a) => a.name === input.agentName); if (!agentExists) { const isFirstAgent = trajectory.agents.length === 0; updatedAgents = [