You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,9 @@ Keep anything language or tool-specific in nested `AGENTS.md` files (for example
11
11
12
12
At a glance, the main areas are:
13
13
14
+
-`pnpm-workspace.yaml` - Defines packages, dependency versions, and package installation options.
14
15
-`infrastructure/terraform/` – Terraform components, and shared modules for AWS accounts and environments.
15
-
-`lambdas/` – TypeScript lambda projects (each with their own `package.json`, Jest config, etc.). Root level packages.json defines workspaces and scripts. Tests for the lambda are stored in `lambdas/{name}/src/__test`.
16
+
-`lambdas/` – TypeScript lambda projects (each with their own `package.json`, Jest config, etc.). Root level packages.json defines scripts. Tests for the lambda are stored in `lambdas/{name}/src/__test`.
16
17
-`src/` and `utils/` – Shared code and utilities (for example `utils/logger`).
17
18
-`docs/` – Documentation site, ADRs, RFCS, and other long‑form docs.
18
19
-`.github/workflows/` and `.github/actions/` – GitHub Actions workflows and composite actions.
@@ -21,18 +22,23 @@ At a glance, the main areas are:
21
22
22
23
Agents should look for a nested `AGENTS.md` in or near these areas before making non‑trivial changes.
23
24
25
+
## Root pnpm-workspace.yaml - role and usage
26
+
27
+
The root `pnpm-workspace.yaml` is the manifest for configuring the pnpm tool, and any workspace packages (if added).
28
+
29
+
- Packages: Declares the set of workspace packages (e.g. under `lambdas/`, `utils/`, `tests/`, `scripts/`). Agents should add a new package path here when introducing a new workspace package if the packages entry is present.
30
+
24
31
## Root package.json – role and usage
25
32
26
-
The root `package.json` is the orchestration manifestgit co for this repo. It does not ship application code; it wires up shared dev tooling and delegates to workspace-level projects.
33
+
The root `package.json` is the orchestration manifest for this repo. It does not ship application code; it wires up shared dev tooling and delegates to workspace-level projects.
27
34
28
-
- Workspaces: Declares the set of npm workspaces (e.g. under `lambdas/`, `utils/`, `tests/`, `scripts/`). Agents should add a new workspace path here when introducing a new npm project.
29
-
- Scripts: Provides top-level commands that fan out across workspaces using `--workspaces` (lint, typecheck, unit tests) and project-specific runners (e.g. `build-archive`).
35
+
- Scripts: Provides top-level commands that fan out across workspaces using `--recursive` / `-r` (lint, typecheck, unit tests) and project-specific runners (e.g. `build-archive`).
30
36
- Dev tool dependencies: Centralises Jest, TypeScript, ESLint configurations and plugins to keep versions consistent across workspaces. Workspace projects should rely on these unless a local override is strictly needed.
31
37
- Overrides/resolutions: Pins transitive dependencies (e.g. Jest/react-is) to avoid ecosystem conflicts. Agents must not remove overrides without verifying tests across all workspaces.
32
38
33
39
Agent guidance:
34
40
35
-
- Before adding or removing a workspace, update the root `workspaces` array in `pnpm-workspace.yaml` and ensure CI scripts still succeed with `pnpm run lint`, `pnpm run typecheck`, and `pnpm run test:unit` at the repo root.
41
+
- Before adding or removing a workspace, update the root `packages` array in `pnpm-workspace.yaml` and ensure CI scripts still succeed with `pnpm run lint`, `pnpm run typecheck`, and `pnpm run test:unit` at the repo root.
36
42
- When adding repo-wide scripts, keep names consistent with existing patterns (e.g. `lint`, `lint:fix`, `typecheck`, `test:unit`, `build-archive`) and prefer `pnpm -r run` fan-out.
37
43
- Do not publish from the root. If adding a new workspace intended for publication, mark that workspace package as `private: false` and keep the root as private.
38
44
- Validate changes by running the repo pre-commit hooks: `make githooks-run`.
@@ -81,7 +87,7 @@ When proposing a change, agents should:
81
87
82
88
to catch formatting and basic lint issues. Domain specific checks will be defined in appropriate nested AGENTS.md files.
83
89
84
-
- Suggest at least one extra validation step (for example `npm test` in a lambda, or triggering a specific workflow).
90
+
- Suggest at least one extra validation step (for example `pnpm test` in a lambda, or triggering a specific workflow).
85
91
- Any required follow up activites which fall outside of the current task's scope should be clearly marked with a 'TODO: CCM-12345' comment. The human user should be prompted to create and provide a JIRA ticket ID to be added to the comment.
0 commit comments