aegra-hono 0.11.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,65 @@
1
+ export type JsonPrimitive = string | number | boolean | null;
2
+ export type JsonValue = JsonPrimitive | JsonValue[] | {
3
+ [key: string]: JsonValue;
4
+ };
5
+ export type JsonObject = {
6
+ [key: string]: JsonValue;
7
+ };
8
+ export interface AuthUser {
9
+ identity: string;
10
+ isAuthenticated: boolean;
11
+ permissions: string[];
12
+ [key: string]: JsonValue | undefined;
13
+ }
14
+ export interface AppVariables {
15
+ requestId: string;
16
+ user: AuthUser;
17
+ authorizationValue: JsonObject;
18
+ }
19
+ export interface AssistantRecord {
20
+ assistant_id: string;
21
+ name: string;
22
+ description: string | null;
23
+ graph_id: string;
24
+ config: JsonObject;
25
+ context: JsonObject;
26
+ user_id: string;
27
+ version: number;
28
+ metadata: JsonObject;
29
+ created_at: string;
30
+ updated_at: string;
31
+ }
32
+ export interface ThreadRecord {
33
+ thread_id: string;
34
+ status: "idle" | "busy" | "interrupted" | "error";
35
+ metadata: JsonObject;
36
+ user_id: string;
37
+ created_at: string;
38
+ updated_at: string;
39
+ }
40
+ export interface RunRecord {
41
+ run_id: string;
42
+ thread_id: string;
43
+ assistant_id: string;
44
+ status: "pending" | "running" | "error" | "success" | "timeout" | "interrupted";
45
+ input: JsonObject | null;
46
+ output: JsonObject | null;
47
+ error_message: string | null;
48
+ config: JsonObject | null;
49
+ context: JsonObject | null;
50
+ user_id: string;
51
+ created_at: string;
52
+ updated_at: string;
53
+ }
54
+ export interface StoreItem {
55
+ namespace: string[];
56
+ key: string;
57
+ value: JsonObject;
58
+ created_at: string;
59
+ updated_at: string;
60
+ }
61
+ export interface EventEnvelope {
62
+ event: string;
63
+ data: JsonValue;
64
+ id?: string;
65
+ }
package/dist/types.js ADDED
@@ -0,0 +1,3 @@
1
+ // @bun
2
+
3
+ //# debugId=5B372796A419555264756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "5B372796A419555264756E2164756E21",
8
+ "names": []
9
+ }
package/package.json ADDED
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "aegra-hono",
3
+ "version": "0.11.0",
4
+ "type": "module",
5
+ "description": "Self-hosted Agent Protocol server powered by Bun, Hono, LangGraph, PostgreSQL, and Redis",
6
+ "license": "Apache-2.0",
7
+ "scripts": {
8
+ "build": "bun scripts/build.ts",
9
+ "dev": "bun --hot src/index.ts",
10
+ "start": "bun src/index.ts",
11
+ "aegra": "bun src/cli.ts",
12
+ "test": "bun test",
13
+ "test:unit": "bun test tests/unit",
14
+ "test:integration": "bun test tests/integration",
15
+ "test:package": "bun scripts/test-package.ts",
16
+ "typecheck": "tsc --noEmit",
17
+ "lint": "tsc --noEmit",
18
+ "check": "bun run typecheck && bun test",
19
+ "prepack": "bun run build"
20
+ },
21
+ "dependencies": {
22
+ "@arizeai/openinference-instrumentation-langchain": "4.0.24",
23
+ "@hono/prometheus": "1.0.3",
24
+ "@langchain/aws": "1.4.5",
25
+ "@langchain/cohere": "1.1.0",
26
+ "@langchain/core": "1.2.10",
27
+ "@langchain/langgraph": "1.4.14",
28
+ "@langchain/langgraph-checkpoint-postgres": "1.0.5",
29
+ "@langchain/openai": "1.5.12",
30
+ "@opentelemetry/api": "1.9.1",
31
+ "@opentelemetry/exporter-trace-otlp-proto": "0.222.0",
32
+ "@opentelemetry/resources": "2.11.0",
33
+ "@opentelemetry/sdk-node": "0.222.0",
34
+ "@opentelemetry/sdk-trace-base": "2.11.0",
35
+ "croner": "10.0.1",
36
+ "drizzle-orm": "0.45.2",
37
+ "hono": "4.13.7",
38
+ "ioredis": "6.0.0",
39
+ "postgres": "3.4.8",
40
+ "zod": "4.6.1"
41
+ },
42
+ "devDependencies": {
43
+ "@types/bun": "1.3.10",
44
+ "typescript": "5.9.3"
45
+ },
46
+ "bin": {
47
+ "aegra": "./dist/cli.js"
48
+ },
49
+ "exports": {
50
+ "./auth": {
51
+ "types": "./dist/auth.d.ts",
52
+ "default": "./dist/auth.js"
53
+ },
54
+ "./graph": {
55
+ "types": "./dist/graph.d.ts",
56
+ "default": "./dist/graph.js"
57
+ },
58
+ "./hono": {
59
+ "types": "./dist/hono.d.ts",
60
+ "default": "./dist/hono.js"
61
+ },
62
+ "./runtime": {
63
+ "types": "./dist/runtime.d.ts",
64
+ "default": "./dist/runtime.js"
65
+ },
66
+ "./types": {
67
+ "types": "./dist/types.d.ts",
68
+ "default": "./dist/types.js"
69
+ }
70
+ },
71
+ "files": [
72
+ "dist"
73
+ ],
74
+ "engines": {
75
+ "bun": ">=1.3.10"
76
+ }
77
+ }