Skip to content

Commit 31ff1cb

Browse files
committed
refactor: restructure as pnpm workspace monorepo
Move agentcrumbs package into packages/agentcrumbs/. Root becomes workspace root with scripts that delegate to the package via pnpm filters. - packages/agentcrumbs/ contains src, skills, bin, tests - docs/ stays at top level as a separate workspace member - Root package.json has build/test/typecheck/docs scripts - Changesets config ignores private docs package - CI workflows updated for new paths
1 parent 71ebe9f commit 31ff1cb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+92
-78
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"access": "public",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
10-
"ignore": []
10+
"ignore": ["agentcrumbs-docs"]
1111
}

.github/workflows/changesets-pr.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ on:
66
- main
77
paths:
88
- ".changeset/**"
9-
- "src/**"
10-
- "package.json"
9+
- "packages/**"
1110

1211
concurrency:
1312
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ jobs:
6161

6262
- name: Create git tags
6363
run: |
64-
VERSION=$(node -p "require('./package.json').version")
64+
VERSION=$(node -p "require('./packages/agentcrumbs/package.json').version")
6565
git tag "v${VERSION}"
6666
git push origin "v${VERSION}"

package.json

Lines changed: 8 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,14 @@
11
{
2-
"name": "agentcrumbs",
3-
"version": "0.1.0",
4-
"description": "Debug tracing for agents. Drop crumbs, follow the trail.",
5-
"type": "module",
6-
"main": "./dist/index.js",
7-
"types": "./dist/index.d.ts",
8-
"exports": {
9-
".": {
10-
"import": "./dist/index.js",
11-
"types": "./dist/index.d.ts"
12-
},
13-
"./test": {
14-
"import": "./dist/sinks/memory.js",
15-
"types": "./dist/sinks/memory.d.ts"
16-
}
17-
},
18-
"bin": {
19-
"agentcrumbs": "./dist/cli/index.js",
20-
"intent": "./bin/intent.js"
21-
},
22-
"files": [
23-
"dist",
24-
"skills",
25-
"bin",
26-
"!skills/_artifacts"
27-
],
28-
"repository": {
29-
"type": "git",
30-
"url": "https://github.com/triggerdotdev/agentcrumbs.git"
31-
},
32-
"homepage": "https://agentcrumbs.dev",
33-
"bugs": {
34-
"url": "https://github.com/triggerdotdev/agentcrumbs/issues"
35-
},
36-
"intent": {
37-
"version": 1,
38-
"repo": "triggerdotdev/agentcrumbs",
39-
"docs": "https://docs.agentcrumbs.dev"
40-
},
2+
"private": true,
413
"scripts": {
42-
"build": "tsc",
43-
"dev": "tsc --watch",
44-
"test": "vitest",
45-
"typecheck": "tsc --noEmit",
4+
"build": "pnpm -F agentcrumbs build",
5+
"test": "pnpm -F agentcrumbs test",
6+
"typecheck": "pnpm -F agentcrumbs typecheck",
7+
"changeset": "changeset",
468
"docs:dev": "pnpm -F agentcrumbs-docs dev",
47-
"docs:build": "pnpm -F agentcrumbs-docs build",
48-
"changeset": "changeset"
9+
"docs:build": "pnpm -F agentcrumbs-docs build"
4910
},
5011
"devDependencies": {
51-
"@changesets/cli": "^2.27.0",
52-
"@types/node": "^25.3.3",
53-
"typescript": "^5.7.0",
54-
"vitest": "^3.0.0"
55-
},
56-
"engines": {
57-
"node": ">=18.0.0"
58-
},
59-
"license": "MIT",
60-
"keywords": [
61-
"debug",
62-
"tracing",
63-
"agents",
64-
"ai",
65-
"logging",
66-
"observability",
67-
"claude",
68-
"cursor",
69-
"copilot"
70-
]
12+
"@changesets/cli": "^2.27.0"
13+
}
7114
}
File renamed without changes.

packages/agentcrumbs/package.json

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"name": "agentcrumbs",
3+
"version": "0.1.0",
4+
"description": "Debug tracing for agents. Drop crumbs, follow the trail.",
5+
"type": "module",
6+
"main": "./dist/index.js",
7+
"types": "./dist/index.d.ts",
8+
"exports": {
9+
".": {
10+
"import": "./dist/index.js",
11+
"types": "./dist/index.d.ts"
12+
},
13+
"./test": {
14+
"import": "./dist/sinks/memory.js",
15+
"types": "./dist/sinks/memory.d.ts"
16+
}
17+
},
18+
"bin": {
19+
"agentcrumbs": "./dist/cli/index.js",
20+
"intent": "./bin/intent.js"
21+
},
22+
"files": [
23+
"dist",
24+
"skills",
25+
"bin",
26+
"!skills/_artifacts"
27+
],
28+
"repository": {
29+
"type": "git",
30+
"url": "https://github.com/triggerdotdev/agentcrumbs.git",
31+
"directory": "packages/agentcrumbs"
32+
},
33+
"homepage": "https://agentcrumbs.dev",
34+
"bugs": {
35+
"url": "https://github.com/triggerdotdev/agentcrumbs/issues"
36+
},
37+
"intent": {
38+
"version": 1,
39+
"repo": "triggerdotdev/agentcrumbs",
40+
"docs": "https://docs.agentcrumbs.dev"
41+
},
42+
"scripts": {
43+
"build": "tsc",
44+
"dev": "tsc --watch",
45+
"test": "vitest",
46+
"typecheck": "tsc --noEmit"
47+
},
48+
"devDependencies": {
49+
"@types/node": "^25.3.3",
50+
"typescript": "^5.7.0",
51+
"vitest": "^3.0.0"
52+
},
53+
"engines": {
54+
"node": ">=18.0.0"
55+
},
56+
"license": "MIT",
57+
"keywords": [
58+
"debug",
59+
"tracing",
60+
"agents",
61+
"ai",
62+
"logging",
63+
"observability",
64+
"claude",
65+
"cursor",
66+
"copilot"
67+
]
68+
}

skills/agentcrumbs/cli/SKILL.md renamed to packages/agentcrumbs/skills/agentcrumbs/cli/SKILL.md

skills/agentcrumbs/core/SKILL.md renamed to packages/agentcrumbs/skills/agentcrumbs/core/SKILL.md

0 commit comments

Comments
 (0)