The open-source agent harness - the runtime layer that turns an LLM into a working agent.
ci: persist prettier cache and use content strategy for format/lint (#236)
Bhavesh Patel89195b2adef6
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 510438e15..1b18c831d 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -125,6 +125,13 @@ jobs:node-version: '24'cache: 'pnpm'+ - name: Cache prettier+ uses: actions/[email protected]+ with:+ path: .prettiercache+ # Project tsconfigs only (plugin reads them); !node_modules so post-install **/ globs stay bounded.+ key: prettier-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml', '.prettierrc', '.prettierignore', 'package.json', '**/tsconfig*.json', '!**/node_modules/**') }}+- name: Install dependenciesrun: pnpm install --frozen-lockfilediff --git a/.gitignore b/.gitignoreindex 58eaa1060..1dccaed09 100644--- a/.gitignore+++ b/.gitignore@@ -8,6 +8,7 @@ coverage/*.tsbuildinfo.pnpm-store/.eslintcache+.prettiercachepackages/harness/src/core/sandbox/sandboxScripts.gen.tspackages/server/src/catalog/modelCatalog.gen.tspackages/server/src/catalog/mcpCatalog.gen.tsdiff --git a/package.json b/package.jsonindex 14e5a04dc..d6631962f 100644--- a/package.json+++ b/package.json@@ -19,11 +19,11 @@"dev:no-watch": "STANDALONE=false NODE_ENV=development pnpm --parallel --filter @truefoundry/trueforge --filter frontend dev:no-watch","dev:server:ui": "pnpm --filter frontend build && pnpm --filter @truefoundry/trueforge build:frontend-assets && STANDALONE=false NODE_ENV=development pnpm --parallel --filter @truefoundry/trueforge-core --filter @truefoundry/trueforge dev","dev": "STANDALONE=false NODE_ENV=development pnpm --parallel --filter @truefoundry/trueforge-core --filter @truefoundry/trueforge --filter frontend dev",- "format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,json,md}\" --cache --error-on-unmatched-pattern --config .prettierrc",- "format:fix": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\" --cache --config .prettierrc",- "format": "prettier --write . --cache --config .prettierrc",+ "format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,json,md}\" --cache --cache-location .prettiercache --cache-strategy content --error-on-unmatched-pattern --config .prettierrc",+ "format:fix": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\" --cache --cache-location .prettiercache --cache-strategy content --config .prettierrc",+ "format": "prettier --write . --cache --cache-location .prettiercache --cache-strategy content --config .prettierrc","lint:ci": "eslint . --cache --cache-location .eslintcache",- "lint": "eslint . --fix --cache --cache-location .eslintcache",+ "lint": "eslint . --fix --cache --cache-location .eslintcache --cache-strategy content","openapi:write": "pnpm --filter @truefoundry/trueforge openapi:write","pack:dry": "pnpm --filter @truefoundry/trueforge-core pack:dry && pnpm --filter @truefoundry/trueforge pack:dry","postinstall": "pnpm --filter @truefoundry/trueforge-core build:gen",@@ -64,6 +64,6 @@"typescript-eslint": "^8.65.0"},"lint-staged": {- "*.{js,jsx,ts,tsx,json,md}": "prettier --write --cache --config .prettierrc"+ "*.{js,jsx,ts,tsx,json,md}": "prettier --write --cache --cache-location .prettiercache --cache-strategy content --config .prettierrc"}}