@rasputin-ai/elysia 0.5.2 → 0.6.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/README.md +4 -2
- package/dist/index.js +3 -3
- package/dist/rasputin-init.d.ts +1 -0
- package/dist/rasputin-init.d.ts.map +1 -1
- package/dist/sdk-meta.d.ts +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -11,6 +11,7 @@ import { Elysia } from 'elysia';
|
|
|
11
11
|
import { RasputinInit } from '@rasputin-ai/elysia';
|
|
12
12
|
|
|
13
13
|
const { client, plugin } = RasputinInit({
|
|
14
|
+
dsn: process.env.RASPUTIN_DSN!,
|
|
14
15
|
projectApiKey: process.env.RASPUTIN_PROJECT_API_KEY!,
|
|
15
16
|
release: process.env.RASPUTIN_RELEASE!,
|
|
16
17
|
environment: process.env.NODE_ENV ?? 'development',
|
|
@@ -39,7 +40,8 @@ try {
|
|
|
39
40
|
|
|
40
41
|
| Field | Required | Description |
|
|
41
42
|
| --- | --- | --- |
|
|
42
|
-
| `
|
|
43
|
+
| `dsn` | yes | Public project DSN from Rasputin project settings. Safe for application runtime. |
|
|
44
|
+
| `projectApiKey` | yes | Secret project API key for deploy announcement and instrumentation manifest upload |
|
|
43
45
|
| `environment` | yes | Environment such as `production`, `staging`, or `preview` |
|
|
44
46
|
| `release` | yes | Git commit SHA for the deployed version |
|
|
45
47
|
| `enabled` | no | Enables or disables the SDK; defaults to `true` |
|
|
@@ -187,7 +189,7 @@ Defaults work for most apps. Customize to exclude noisy sources, redact fields,
|
|
|
187
189
|
| `maxObjectKeys` | `30` | Maximum properties retained from one object |
|
|
188
190
|
| `maxArrayElements` | `20` | Maximum items retained from one array, map, or set |
|
|
189
191
|
| `maxStringLength` | `500` | Maximum characters retained from one string |
|
|
190
|
-
| `maxSerializedValueBytes` | `
|
|
192
|
+
| `maxSerializedValueBytes` | `16 KiB` | Maximum retained size of one captured value |
|
|
191
193
|
| `runtimeStateTargetBytes` | `256 KiB` | Soft size goal for the snapshot sent with an error; extra reconstruction data is dropped first |
|
|
192
194
|
| `maxRuntimeStateBytes` | `512 KiB` | Hard size limit for that snapshot; values are dropped before call history |
|
|
193
195
|
| `redactKeys` | `[]` | Additional property names to redact (case- and separator-insensitive) |
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import { Elysia } from "elysia";
|
|
|
13
13
|
|
|
14
14
|
// src/sdk-meta.ts
|
|
15
15
|
var SDK_NAME = "@rasputin-ai/elysia";
|
|
16
|
-
var SDK_VERSION = "0.
|
|
16
|
+
var SDK_VERSION = "0.6.0";
|
|
17
17
|
|
|
18
18
|
// src/rasputin-init.ts
|
|
19
19
|
var publicExecution = (runtime) => ({
|
|
@@ -168,7 +168,7 @@ function RasputinInit(options, hooks = {}) {
|
|
|
168
168
|
runtime,
|
|
169
169
|
recorderEnabled,
|
|
170
170
|
{
|
|
171
|
-
projectApiKey: options.projectApiKey
|
|
171
|
+
projectApiKey: options.projectApiKey,
|
|
172
172
|
release: options.release,
|
|
173
173
|
apiUrl: options.apiUrl,
|
|
174
174
|
fetch,
|
|
@@ -190,7 +190,7 @@ function RasputinInit(options, hooks = {}) {
|
|
|
190
190
|
const client = createClient({ ...options, enabled: false });
|
|
191
191
|
const runtime = createExecutionRecorder({ enabled: false });
|
|
192
192
|
const wrappedClient = withExecution(client, runtime, false, {
|
|
193
|
-
projectApiKey: options.projectApiKey
|
|
193
|
+
projectApiKey: options.projectApiKey,
|
|
194
194
|
release: options.release,
|
|
195
195
|
apiUrl: options.apiUrl,
|
|
196
196
|
enabled: false,
|
package/dist/rasputin-init.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ declare const buildPlugin: (client: RasputinNodeClient, execution: Pick<Rasputin
|
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* const { client, plugin } = RasputinInit({
|
|
72
|
+
* dsn: process.env.RASPUTIN_DSN!,
|
|
72
73
|
* projectApiKey: process.env.RASPUTIN_PROJECT_API_KEY!,
|
|
73
74
|
* release: process.env.RASPUTIN_RELEASE!,
|
|
74
75
|
* environment: process.env.NODE_ENV ?? 'development',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rasputin-init.d.ts","sourceRoot":"","sources":["../src/rasputin-init.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAKN,KAAK,eAAe,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACX,wBAAwB,EAExB,iBAAiB,EACjB,kBAAkB,EAClB,MAAM,mBAAmB,CAAC;AAQ3B,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,iFAAiF;AACjF,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAElE,MAAM,MAAM,cAAc,GAAG;IAC5B,8EAA8E;IAC9E,MAAM,EAAE,kBAAkB,CAAC;IAC3B,2EAA2E;IAC3E,MAAM,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,eAAe,GAAG;IACrD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,wBAAwB,CAAC;IAC7C;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;OAGG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;CACzC,CAAC;AA+GF,QAAA,MAAM,WAAW,GAChB,QAAQ,kBAAkB,EAC1B,WAAW,IAAI,CAAC,iBAAiB,EAAE,aAAa,CAAC,EACjD,iBAAiB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDxB,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"rasputin-init.d.ts","sourceRoot":"","sources":["../src/rasputin-init.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAKN,KAAK,eAAe,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACX,wBAAwB,EAExB,iBAAiB,EACjB,kBAAkB,EAClB,MAAM,mBAAmB,CAAC;AAQ3B,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,iFAAiF;AACjF,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAElE,MAAM,MAAM,cAAc,GAAG;IAC5B,8EAA8E;IAC9E,MAAM,EAAE,kBAAkB,CAAC;IAC3B,2EAA2E;IAC3E,MAAM,EAAE,oBAAoB,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,eAAe,GAAG;IACrD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,wBAAwB,CAAC;IAC7C;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;OAGG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;CACzC,CAAC;AA+GF,QAAA,MAAM,WAAW,GAChB,QAAQ,kBAAkB,EAC1B,WAAW,IAAI,CAAC,iBAAiB,EAAE,aAAa,CAAC,EACjD,iBAAiB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDxB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,qBAAqB,GAAG,cAAc,CAAC"}
|
package/dist/sdk-meta.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rasputin-ai/elysia",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Official Rasputin AI SDK for Elysia.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@rasputin-ai/core": "0.
|
|
39
|
-
"@rasputin-ai/node": "0.
|
|
38
|
+
"@rasputin-ai/core": "0.6.0",
|
|
39
|
+
"@rasputin-ai/node": "0.6.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"elysia": ">=1.4.0 <2"
|