@takeshape/errors 11.55.0 → 11.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ import { BaseError } from './base-error.ts';
2
+ export declare class AgentExecutionError extends BaseError {
3
+ static code: string;
4
+ static statusCode: number;
5
+ reportToSentry: boolean;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { BaseError } from "./base-error.js";
2
+ export class AgentExecutionError extends BaseError {
3
+ static code = 'AGENT_EXECUTION_ERROR';
4
+ static statusCode = 500;
5
+ reportToSentry = false;
6
+ }
package/dist/index.d.ts CHANGED
@@ -27,3 +27,4 @@ export * from './schema-build.ts';
27
27
  export * from './suspend.ts';
28
28
  export * from './remote-graphql-schema.ts';
29
29
  export * from './guardrails.ts';
30
+ export * from './agent-execution-error.ts';
package/dist/index.js CHANGED
@@ -27,3 +27,4 @@ export * from "./schema-build.js";
27
27
  export * from "./suspend.js";
28
28
  export * from "./remote-graphql-schema.js";
29
29
  export * from "./guardrails.js";
30
+ export * from "./agent-execution-error.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/errors",
3
- "version": "11.55.0",
3
+ "version": "11.58.0",
4
4
  "description": "Custom error objects.",
5
5
  "homepage": "https://www.takeshape.io",
6
6
  "repository": {
@@ -34,12 +34,11 @@
34
34
  "prebuild:ci": "pnpm clean",
35
35
  "build:ci": "pnpm build --noCheck",
36
36
  "clean": "del-cli dist coverage *.tsbuildinfo",
37
- "lint": "pnpm lint:biome && pnpm lint:eslint",
37
+ "lint": "trap 'RC=1' ERR; pnpm lint:biome; pnpm lint:eslint; exit $RC",
38
38
  "lint:biome": "biome check",
39
39
  "lint:eslint": "eslint src -c ../../eslint.config.mjs",
40
- "lint:ci": "pnpm lint:ci:biome; pnpm lint:ci:eslint",
41
40
  "lint:ci:biome": "mkdir -p \"${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}\" && biome check --diagnostic-level error --reporter=junit > \"${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}/biome-results.xml\"",
42
- "lint:ci:eslint": "pnpm lint:eslint --quiet --format json -o \"${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}/eslint-results.json\"",
41
+ "lint:ci:eslint": "ESLINT_SUITE_NAME=${npm_package_name} ESLINT_JUNIT_OUTPUT=\"${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}/eslint-results.xml\" pnpm lint:eslint --quiet --format ../../node_modules/eslint-junit/index.js",
43
42
  "test": "TZ=UTC vitest run",
44
43
  "test-changed": "pnpm run test --changedSince=master",
45
44
  "test:ci": "TZ=UTC vitest run --reporter=default --reporter=junit --outputFile=\"${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}/vitest-results.xml\" --coverage.enabled --coverage.reportsDirectory=\"${GITHUB_WORKSPACE}/coverage/${npm_package_name#*\\/}\"",