@sentry/server-utils 11.13.0 → 11.14.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.
- package/build/cjs/chunks/config.js +19 -5
- package/build/cjs/chunks/config.js.map +1 -1
- package/build/cjs/chunks/exports.js +72 -26
- package/build/cjs/chunks/exports.js.map +1 -1
- package/build/cjs/chunks/moduleInjectedTransform.js +6 -5
- package/build/cjs/chunks/moduleInjectedTransform.js.map +1 -1
- package/build/cjs/index.js +161 -65
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/orchestrion/bundler/rollup.js +4 -4
- package/build/cjs/orchestrion/bundler/rollup.js.map +1 -1
- package/build/esm/ai/google-genai/constants.js +2 -1
- package/build/esm/ai/google-genai/constants.js.map +1 -1
- package/build/esm/ai/google-genai/decisions.js +25 -0
- package/build/esm/ai/google-genai/decisions.js.map +1 -0
- package/build/esm/ai/google-genai/index.js +16 -5
- package/build/esm/ai/google-genai/index.js.map +1 -1
- package/build/esm/ai/mistral/index.js +9 -8
- package/build/esm/ai/mistral/index.js.map +1 -1
- package/build/esm/ai/mistral/streaming.js +3 -7
- package/build/esm/ai/mistral/streaming.js.map +1 -1
- package/build/esm/ai/mistral/utils.js +9 -1
- package/build/esm/ai/mistral/utils.js.map +1 -1
- package/build/esm/ai/vercel-ai/index.js +3 -1
- package/build/esm/ai/vercel-ai/index.js.map +1 -1
- package/build/esm/ai/workers-ai/index.js +8 -7
- package/build/esm/ai/workers-ai/index.js.map +1 -1
- package/build/esm/ai/workers-ai/streaming.js +3 -7
- package/build/esm/ai/workers-ai/streaming.js.map +1 -1
- package/build/esm/index.js +3 -2
- package/build/esm/index.js.map +1 -1
- package/build/esm/integrations/cron.js +2 -2
- package/build/esm/integrations/cron.js.map +1 -1
- package/build/esm/integrations/google-genai.js +10 -6
- package/build/esm/integrations/google-genai.js.map +1 -1
- package/build/esm/integrations/mistral.js +4 -3
- package/build/esm/integrations/mistral.js.map +1 -1
- package/build/esm/integrations/node-cron.js +5 -4
- package/build/esm/integrations/node-cron.js.map +1 -1
- package/build/esm/integrations/node-schedule.js +2 -2
- package/build/esm/integrations/node-schedule.js.map +1 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js +9 -1
- package/build/esm/integrations/vercel-ai/vercel-ai-dc-subscriber.js.map +1 -1
- package/build/esm/orchestrion/bundler/moduleInjectedTransform.js +6 -5
- package/build/esm/orchestrion/bundler/moduleInjectedTransform.js.map +1 -1
- package/build/esm/orchestrion/bundler/rollup.js +4 -4
- package/build/esm/orchestrion/bundler/rollup.js.map +1 -1
- package/build/esm/orchestrion/config/google-genai.js +19 -5
- package/build/esm/orchestrion/config/google-genai.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/utils/cronMonitoring.js +128 -50
- package/build/esm/utils/cronMonitoring.js.map +1 -1
- package/build/types/ai/google-genai/constants.d.ts +3 -0
- package/build/types/ai/google-genai/constants.d.ts.map +1 -1
- package/build/types/ai/google-genai/decisions.d.ts +8 -0
- package/build/types/ai/google-genai/decisions.d.ts.map +1 -0
- package/build/types/ai/google-genai/index.d.ts +3 -1
- package/build/types/ai/google-genai/index.d.ts.map +1 -1
- package/build/types/ai/mistral/index.d.ts.map +1 -1
- package/build/types/ai/mistral/streaming.d.ts +1 -1
- package/build/types/ai/mistral/streaming.d.ts.map +1 -1
- package/build/types/ai/mistral/utils.d.ts +5 -0
- package/build/types/ai/mistral/utils.d.ts.map +1 -1
- package/build/types/ai/vercel-ai/index.d.ts.map +1 -1
- package/build/types/ai/vercel-ai/vercel-ai-attributes.d.ts +3 -0
- package/build/types/ai/vercel-ai/vercel-ai-attributes.d.ts.map +1 -1
- package/build/types/ai/workers-ai/index.d.ts.map +1 -1
- package/build/types/ai/workers-ai/streaming.d.ts +1 -1
- package/build/types/ai/workers-ai/streaming.d.ts.map +1 -1
- package/build/types/index.d.ts +3 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/integrations/cron.d.ts.map +1 -1
- package/build/types/integrations/google-genai.d.ts +3 -3
- package/build/types/integrations/google-genai.d.ts.map +1 -1
- package/build/types/integrations/mistral.d.ts.map +1 -1
- package/build/types/integrations/node-cron.d.ts +1 -1
- package/build/types/integrations/node-cron.d.ts.map +1 -1
- package/build/types/integrations/node-schedule.d.ts.map +1 -1
- package/build/types/integrations/vercel-ai/vercel-ai-dc-subscriber.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/moduleInjectedTransform.d.ts.map +1 -1
- package/build/types/orchestrion/bundler/rollup.d.ts +3 -3
- package/build/types/orchestrion/bundler/rollup.d.ts.map +1 -1
- package/build/types/orchestrion/channels.d.ts +1 -0
- package/build/types/orchestrion/channels.d.ts.map +1 -1
- package/build/types/orchestrion/config/google-genai.d.ts +13 -0
- package/build/types/orchestrion/config/google-genai.d.ts.map +1 -1
- package/build/types/utils/cronMonitoring.d.ts +4 -5
- package/build/types/utils/cronMonitoring.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -67,6 +67,7 @@ export declare const CHANNELS: {
|
|
|
67
67
|
readonly GOOGLE_GENAI_GENERATE_CONTENT: 'orchestrion:@google/genai:generate-content';
|
|
68
68
|
readonly GOOGLE_GENAI_EMBED_CONTENT: 'orchestrion:@google/genai:embed-content';
|
|
69
69
|
readonly GOOGLE_GENAI_CHAT: 'orchestrion:@google/genai:chat';
|
|
70
|
+
readonly GOOGLE_GENAI_DECIDE: 'orchestrion:@google/genai:decide';
|
|
70
71
|
readonly GRAPHQL_PARSE: 'orchestrion:graphql:parse';
|
|
71
72
|
readonly GRAPHQL_VALIDATE: 'orchestrion:graphql:validate';
|
|
72
73
|
readonly GRAPHQL_EXECUTE: 'orchestrion:graphql:execute';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/channels.ts"],"names":[],"mappings":"AA4CA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../src/orchestrion/channels.ts"],"names":[],"mappings":"AA4CA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CX,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -21,11 +21,24 @@ export declare const googleGenAiConfig: ({
|
|
|
21
21
|
methodName: string;
|
|
22
22
|
kind: 'Auto';
|
|
23
23
|
};
|
|
24
|
+
} | {
|
|
25
|
+
channelName: string;
|
|
26
|
+
module: {
|
|
27
|
+
name: string;
|
|
28
|
+
versionRange: string;
|
|
29
|
+
filePath: string;
|
|
30
|
+
};
|
|
31
|
+
functionQuery: {
|
|
32
|
+
className: string;
|
|
33
|
+
methodName: string;
|
|
34
|
+
kind: 'Async';
|
|
35
|
+
};
|
|
24
36
|
})[];
|
|
25
37
|
export declare const googleGenAiModuleNames: string[];
|
|
26
38
|
export declare const googleGenAiChannels: {
|
|
27
39
|
readonly GOOGLE_GENAI_GENERATE_CONTENT: 'orchestrion:@google/genai:generate-content';
|
|
28
40
|
readonly GOOGLE_GENAI_EMBED_CONTENT: 'orchestrion:@google/genai:embed-content';
|
|
29
41
|
readonly GOOGLE_GENAI_CHAT: 'orchestrion:@google/genai:chat';
|
|
42
|
+
readonly GOOGLE_GENAI_DECIDE: 'orchestrion:@google/genai:decide';
|
|
30
43
|
};
|
|
31
44
|
//# sourceMappingURL=google-genai.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-genai.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/google-genai.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,iBAAiB;;;;;;;;;cAOe,MAAM;;;;;;;;;;QAQ9B,SAAS;QAAY,UAAU;QAAkB,IAAI,EAAE,MAAM;;
|
|
1
|
+
{"version":3,"file":"google-genai.d.ts","sourceRoot":"","sources":["../../../../src/orchestrion/config/google-genai.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,iBAAiB;;;;;;;;;cAOe,MAAM;;;;;;;;;;QAQ9B,SAAS;QAAY,UAAU;QAAkB,IAAI,EAAE,MAAM;;;;;;;;;;QAe7D,SAAS;QAA4B,UAAU;QAAY,IAAI,EAAE,OAAO;;IAE1D,CAAC;AAEpC,eAAO,MAAM,sBAAsB,UAAoC,CAAC;AAExE,eAAO,MAAM,mBAAmB;aAC9B,6BAA6B,EAAE,4CAA4C;aAC3E,0BAA0B,EAAE,yCAAyC;aACrE,iBAAiB,EAAE,gCAAgC;aACnD,mBAAmB,EAAE,kCAAkC;CAC/C,CAAC"}
|
|
@@ -19,16 +19,15 @@ export declare function subscribeToScheduleChange(channelName: string, integrati
|
|
|
19
19
|
/** Whether a job is named, not excluded, and not already monitored by `Sentry.cron.instrument*` or `wrapScheduledJob`. */
|
|
20
20
|
export declare function shouldMonitorJob(name: unknown, job: unknown, excludeJobs: Array<string | RegExp> | undefined): name is string;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
* -
|
|
24
|
-
* - `or`: either matches, unless one is `*` or a full range (`cron-parser`, `cron`).
|
|
22
|
+
* The library that parses a scheduler's cron expressions: `node-cron`, `cron` (also behind `@nestjs/schedule`), or
|
|
23
|
+
* `cron-parser` 4 or 5 (behind `node-schedule` and BullMQ).
|
|
25
24
|
*/
|
|
26
|
-
export type
|
|
25
|
+
export type CronDialect = 'node-cron' | 'cron' | 'cron-parser';
|
|
27
26
|
/**
|
|
28
27
|
* The Sentry monitor config for a cron expression, or `undefined` if Sentry would read it differently.
|
|
29
28
|
* Without a `timezone`, the server's time zone is used, like the schedulers do.
|
|
30
29
|
*/
|
|
31
|
-
export declare function cronExpressionToMonitorConfig(expression: string, timezone: unknown,
|
|
30
|
+
export declare function cronExpressionToMonitorConfig(expression: string, timezone: unknown, dialect: CronDialect): MonitorConfig | undefined;
|
|
32
31
|
/**
|
|
33
32
|
* Wraps a scheduled job with check-ins. Errors are captured, because schedulers catch them, and rethrown.
|
|
34
33
|
* Jobs without a monitor config send no check-ins.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cronMonitoring.d.ts","sourceRoot":"","sources":["../../../src/utils/cronMonitoring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAalD,MAAM,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;AAMnE;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,KAAK,EAAE,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,GAC/B,IAAI,CAQN;AAED,0GAA0G;AAC1G,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,OAAO,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,EAC1C,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,GACzC,IAAI,CAaN;AAED,0HAA0H;AAC1H,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,OAAO,EACb,GAAG,EAAE,OAAO,EACZ,WAAW,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM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AAG,SAAS,CAoC3B;AA8JD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,KAAK,EACX,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,aAAa,GAAG,SAAS,EACxC,aAAa,EAAE,MAAM,GACpB,KAAK,CAqBP;AAED,iHAAiH;AACjH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,GAAG,SAAS,GAAG,IAAI,CAIhG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/server-utils",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.14.0",
|
|
4
4
|
"description": "Server Utilities for all Sentry JavaScript SDKs",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -106,12 +106,12 @@
|
|
|
106
106
|
"dependencies": {
|
|
107
107
|
"@opentelemetry/api": "^1.9.1",
|
|
108
108
|
"@sentry/conventions": "^0.33.0",
|
|
109
|
-
"@sentry/core": "11.
|
|
109
|
+
"@sentry/core": "11.14.0"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
112
|
"@apm-js-collab/code-transformer-bundler-plugins": "^0.7.6",
|
|
113
113
|
"@neondatabase/serverless": "1.2.0",
|
|
114
|
-
"@sentry-internal/rollup-utils": "11.
|
|
114
|
+
"@sentry-internal/rollup-utils": "11.14.0",
|
|
115
115
|
"@types/node": "^20.19.0",
|
|
116
116
|
"meriyah": "^6.1.4",
|
|
117
117
|
"vite": "^8.3.6",
|