Skip to content

Commit 0914ff2

Browse files
authored
Merge pull request #6 from AgentWorkforce/claude/update-trail-snippet-docs-N6OTI
docs: add npx usage note for local trail installation
2 parents 2c36bb6 + e0982f1 commit 0914ff2

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

docs/trail-snippet.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
Record your work as a trajectory for future agents and humans to follow.
44

5+
## Usage
6+
7+
If `trail` is installed globally, run commands directly:
8+
```bash
9+
trail start "Task description"
10+
```
11+
12+
If not globally installed, use npx to run from local installation:
13+
```bash
14+
npx trail start "Task description"
15+
```
16+
517
## When Starting Work
618

719
Start a trajectory when beginning a task:

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@
2929
],
3030
"author": "",
3131
"license": "MIT",
32-
"files": [
33-
"dist"
34-
],
32+
"files": ["dist"],
3533
"engines": {
3634
"node": ">=20.0.0"
3735
},

src/core/trajectory.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@ export function addChapter(
113113

114114
// Add agent to trajectory.agents if not already present
115115
let updatedAgents: AgentParticipation[] = trajectory.agents;
116-
const agentExists = trajectory.agents.some(
117-
(a) => a.name === input.agentName,
118-
);
116+
const agentExists = trajectory.agents.some((a) => a.name === input.agentName);
119117
if (!agentExists) {
120118
const isFirstAgent = trajectory.agents.length === 0;
121119
updatedAgents = [

0 commit comments

Comments
 (0)