@rasputin-ai/elysia 0.1.2 → 0.1.4

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 ADDED
@@ -0,0 +1,30 @@
1
+ # Official Rasputin AI SDK for Elysia
2
+
3
+ ## Usage
4
+
5
+ ```ts
6
+ import { Elysia } from 'elysia';
7
+ import { RasputinInit } from '@rasputin-ai/elysia';
8
+
9
+ const { client, plugin } = RasputinInit({
10
+ projectApiKey: process.env.RASPUTIN_PROJECT_API_KEY!,
11
+ environment: process.env.NODE_ENV ?? 'development',
12
+ release: process.env.GIT_COMMIT,
13
+ });
14
+
15
+ const app = new Elysia().use(plugin);
16
+ ```
17
+
18
+ Route errors are captured via the plugin. Use `client.captureException(error)` for manual reporting.
19
+
20
+ For short-lived processes, call `await client.flush()` before exit.
21
+
22
+ ## Options
23
+
24
+ | Field | Required | Description |
25
+ | --- | --- | --- |
26
+ | `projectApiKey` | yes | Project API key from the Rasputin dashboard |
27
+ | `environment` | yes | Where errors occur, e.g. `production`, `staging` |
28
+ | `release` | no | Deploy id (usually a git SHA). Auto-detected from common CI env vars when omitted |
29
+ | `enabled` | no | Master switch. Default `true` |
30
+ | `repoRoot` | no | Repo root for stack paths. |
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import { Elysia } from "elysia";
8
8
 
9
9
  // src/sdk-meta.ts
10
10
  var SDK_NAME = "@rasputin-ai/elysia";
11
- var SDK_VERSION = "0.1.2";
11
+ var SDK_VERSION = "0.1.4";
12
12
 
13
13
  // src/rasputin-init.ts
14
14
  var toStatus = (status) => {
@@ -1,4 +1,4 @@
1
1
  /** Generated by packages/sdk/scripts/generate-sdk-meta.ts — do not edit. */
2
2
  export declare const SDK_NAME = "@rasputin-ai/elysia";
3
- export declare const SDK_VERSION = "0.1.2";
3
+ export declare const SDK_VERSION = "0.1.4";
4
4
  //# sourceMappingURL=sdk-meta.d.ts.map
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@rasputin-ai/elysia",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
+ "description": "Official Rasputin AI SDK for Elysia.",
4
5
  "type": "module",
5
6
  "exports": {
6
7
  ".": {
7
- "bun": "./src/index.ts",
8
8
  "types": "./dist/index.d.ts",
9
9
  "import": "./dist/index.js",
10
10
  "default": "./dist/index.js"
@@ -25,8 +25,8 @@
25
25
  "access": "public"
26
26
  },
27
27
  "dependencies": {
28
- "@rasputin-ai/core": "0.1.2",
29
- "@rasputin-ai/node": "0.1.2"
28
+ "@rasputin-ai/core": "0.1.4",
29
+ "@rasputin-ai/node": "0.1.4"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "elysia": ">=1.0.0"