@inkeep/agents-api 0.0.0-dev-20260203023016 → 0.0.0-dev-20260203024837
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/dist/.well-known/workflow/v1/step.cjs +54 -43
- package/dist/createApp.d.ts +2 -2
- package/dist/domains/evals/routes/datasetTriggers.d.ts +2 -2
- package/dist/domains/evals/routes/index.d.ts +2 -2
- package/dist/domains/evals/workflow/routes.d.ts +2 -2
- package/dist/domains/manage/routes/conversations.d.ts +2 -2
- package/dist/domains/manage/routes/mcp.d.ts +2 -2
- package/dist/domains/manage/routes/signoz.d.ts +2 -2
- package/dist/domains/mcp/routes/mcp.d.ts +2 -2
- package/dist/env.d.ts +8 -8
- package/dist/env.js +32 -32
- package/dist/factory.d.ts +261 -261
- package/dist/index.d.ts +261 -261
- package/dist/middleware/evalsAuth.d.ts +2 -2
- package/dist/middleware/manageAuth.d.ts +2 -2
- package/dist/middleware/projectAccess.d.ts +2 -2
- package/dist/middleware/projectConfig.d.ts +3 -3
- package/dist/middleware/requirePermission.d.ts +2 -2
- package/dist/middleware/runAuth.d.ts +4 -4
- package/dist/middleware/sessionAuth.d.ts +3 -3
- package/dist/middleware/tenantAccess.d.ts +2 -2
- package/dist/middleware/tracing.d.ts +3 -3
- package/package.json +5 -5
|
@@ -146812,17 +146812,17 @@ var envSchema = external_exports.object({
|
|
|
146812
146812
|
"production",
|
|
146813
146813
|
"pentest",
|
|
146814
146814
|
"test"
|
|
146815
|
-
]).optional(),
|
|
146816
|
-
INKEEP_AGENTS_MANAGE_DATABASE_URL: external_exports.string().optional(),
|
|
146817
|
-
INKEEP_AGENTS_RUN_DATABASE_URL: external_exports.string().optional(),
|
|
146818
|
-
POSTGRES_POOL_SIZE: external_exports.string().optional(),
|
|
146819
|
-
INKEEP_AGENTS_JWT_SIGNING_SECRET: external_exports.string().min(32, "INKEEP_AGENTS_JWT_SIGNING_SECRET must be at least 32 characters").optional(),
|
|
146820
|
-
|
|
146821
|
-
|
|
146822
|
-
|
|
146823
|
-
|
|
146824
|
-
|
|
146825
|
-
GITHUB_MCP_API_KEY: external_exports.string().optional()
|
|
146815
|
+
]).optional().describe("Application environment mode"),
|
|
146816
|
+
INKEEP_AGENTS_MANAGE_DATABASE_URL: external_exports.string().optional().describe("PostgreSQL connection URL for the management database (Doltgres with Git version control)"),
|
|
146817
|
+
INKEEP_AGENTS_RUN_DATABASE_URL: external_exports.string().optional().describe("PostgreSQL connection URL for the runtime database (Doltgres with Git version control)"),
|
|
146818
|
+
POSTGRES_POOL_SIZE: external_exports.string().optional().describe("Maximum number of connections in the PostgreSQL connection pool"),
|
|
146819
|
+
INKEEP_AGENTS_JWT_SIGNING_SECRET: external_exports.string().min(32, "INKEEP_AGENTS_JWT_SIGNING_SECRET must be at least 32 characters").optional().describe("Secret key for signing JWT tokens (minimum 32 characters)"),
|
|
146820
|
+
BETTER_AUTH_SECRET: external_exports.string().optional().describe("Secret key for Better Auth session encryption (change in production)"),
|
|
146821
|
+
TRUSTED_ORIGIN: external_exports.string().optional().describe("Trusted origin URL for CORS in local/preview environments"),
|
|
146822
|
+
OAUTH_PROXY_PRODUCTION_URL: external_exports.string().optional().describe("OAuth proxy URL for production environment (used in local/preview environments)"),
|
|
146823
|
+
INKEEP_AGENTS_MANAGE_UI_URL: external_exports.string().optional().describe("URL where the management UI is hosted"),
|
|
146824
|
+
INKEEP_AGENTS_API_URL: external_exports.string().optional().describe("URL where the agents management API is running"),
|
|
146825
|
+
GITHUB_MCP_API_KEY: external_exports.string().optional().describe("API key for the GitHub MCP")
|
|
146826
146826
|
});
|
|
146827
146827
|
var parseEnv = /* @__PURE__ */ __name(() => {
|
|
146828
146828
|
try {
|
|
@@ -228474,62 +228474,73 @@ __name(withRef, "withRef");
|
|
|
228474
228474
|
// src/env.ts
|
|
228475
228475
|
loadEnvironmentFiles();
|
|
228476
228476
|
var envSchema2 = external_exports.object({
|
|
228477
|
+
// Core Environment
|
|
228477
228478
|
NODE_ENV: external_exports.enum([
|
|
228478
228479
|
"development",
|
|
228479
228480
|
"production",
|
|
228480
228481
|
"test"
|
|
228481
|
-
]).default("development"),
|
|
228482
|
+
]).default("development").describe("Node.js environment mode"),
|
|
228482
228483
|
ENVIRONMENT: external_exports.enum([
|
|
228483
228484
|
"development",
|
|
228484
228485
|
"production",
|
|
228485
228486
|
"pentest",
|
|
228486
228487
|
"test"
|
|
228487
|
-
]).default("development"),
|
|
228488
|
+
]).default("development").describe("Application environment mode"),
|
|
228488
228489
|
LOG_LEVEL: external_exports.enum([
|
|
228489
228490
|
"trace",
|
|
228490
228491
|
"debug",
|
|
228491
228492
|
"info",
|
|
228492
228493
|
"warn",
|
|
228493
228494
|
"error"
|
|
228494
|
-
]).default("info"),
|
|
228495
|
-
|
|
228496
|
-
|
|
228497
|
-
|
|
228498
|
-
|
|
228499
|
-
|
|
228495
|
+
]).default("info").describe("Logging verbosity level"),
|
|
228496
|
+
// Database
|
|
228497
|
+
INKEEP_AGENTS_MANAGE_DATABASE_URL: external_exports.string().describe("PostgreSQL connection URL for the management database (Doltgres with Git version control)"),
|
|
228498
|
+
INKEEP_AGENTS_RUN_DATABASE_URL: external_exports.string().describe("PostgreSQL connection URL for the runtime database (Doltgres with Git version control)"),
|
|
228499
|
+
INKEEP_AGENTS_MANAGE_UI_URL: external_exports.string().optional().describe("URL where the management UI is hosted"),
|
|
228500
|
+
INKEEP_AGENTS_API_URL: external_exports.string().optional().default("http://localhost:3002").describe("URL where the agents management API is running"),
|
|
228501
|
+
// Authentication
|
|
228502
|
+
BETTER_AUTH_SECRET: external_exports.string().optional().describe("Secret key for Better Auth session encryption (change in production)"),
|
|
228500
228503
|
INKEEP_AGENTS_MANAGE_UI_USERNAME: external_exports.string().optional().refine((val) => !val || /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(val), {
|
|
228501
228504
|
message: "Invalid email address"
|
|
228502
|
-
}),
|
|
228505
|
+
}).describe("Admin email address for management UI login"),
|
|
228503
228506
|
INKEEP_AGENTS_MANAGE_UI_PASSWORD: external_exports.string().optional().refine((val) => !val || val.length >= 8, {
|
|
228504
228507
|
message: "Password must be at least 8 characters"
|
|
228505
|
-
}),
|
|
228506
|
-
|
|
228507
|
-
|
|
228508
|
-
|
|
228509
|
-
|
|
228510
|
-
|
|
228511
|
-
|
|
228512
|
-
|
|
228513
|
-
|
|
228514
|
-
|
|
228515
|
-
|
|
228516
|
-
|
|
228517
|
-
|
|
228518
|
-
|
|
228519
|
-
|
|
228520
|
-
|
|
228521
|
-
|
|
228522
|
-
|
|
228523
|
-
|
|
228524
|
-
|
|
228525
|
-
|
|
228526
|
-
|
|
228508
|
+
}).describe("Admin password for management UI login (min 8 characters)"),
|
|
228509
|
+
// API Bypass Secrets (for local development and testing, skips auth)
|
|
228510
|
+
INKEEP_AGENTS_API_BYPASS_SECRET: external_exports.string().optional().describe("API bypass secret for local development and testing (skips auth)"),
|
|
228511
|
+
INKEEP_AGENTS_MANAGE_API_BYPASS_SECRET: external_exports.string().optional().describe("Management API bypass secret for local development and testing (skips auth)"),
|
|
228512
|
+
INKEEP_AGENTS_RUN_API_BYPASS_SECRET: external_exports.string().optional().describe("Run API bypass secret for local development and testing (skips auth)"),
|
|
228513
|
+
INKEEP_AGENTS_EVAL_API_BYPASS_SECRET: external_exports.string().optional().describe("Eval API bypass secret for local development and testing (skips auth)"),
|
|
228514
|
+
// JWT Keys (for Playground)
|
|
228515
|
+
INKEEP_AGENTS_TEMP_JWT_PUBLIC_KEY: external_exports.string().optional().describe("Temporary JWT public key for Playground (generate with scripts/generate-jwt-keys.sh)"),
|
|
228516
|
+
INKEEP_AGENTS_TEMP_JWT_PRIVATE_KEY: external_exports.string().optional().describe("Temporary JWT private key for Playground (generate with scripts/generate-jwt-keys.sh)"),
|
|
228517
|
+
// Nango (OAuth integrations)
|
|
228518
|
+
NANGO_SERVER_URL: external_exports.string().optional().default("https://api.nango.dev").describe("Nango server URL for OAuth integrations"),
|
|
228519
|
+
NANGO_SECRET_KEY: external_exports.string().optional().describe("Nango secret key for OAuth integrations"),
|
|
228520
|
+
// OpenTelemetry Configuration
|
|
228521
|
+
OTEL_BSP_SCHEDULE_DELAY: external_exports.coerce.number().optional().default(500).describe("OpenTelemetry batch span processor schedule delay in milliseconds"),
|
|
228522
|
+
OTEL_BSP_MAX_EXPORT_BATCH_SIZE: external_exports.coerce.number().optional().default(64).describe("OpenTelemetry batch span processor max export batch size"),
|
|
228523
|
+
// Tenant Configuration
|
|
228524
|
+
TENANT_ID: external_exports.string().optional().default("default").describe("Default tenant ID for development"),
|
|
228525
|
+
// SigNoz (Observability)
|
|
228526
|
+
SIGNOZ_URL: external_exports.string().optional().describe("SigNoz server URL for observability"),
|
|
228527
|
+
SIGNOZ_API_KEY: external_exports.string().optional().describe("SigNoz API key for authentication"),
|
|
228528
|
+
PUBLIC_SIGNOZ_URL: external_exports.string().optional().describe("Public SigNoz URL accessible from the browser"),
|
|
228529
|
+
// AI Providers
|
|
228530
|
+
ANTHROPIC_API_KEY: external_exports.string().describe("Anthropic API key for Claude models (required for agent execution). Get from https://console.anthropic.com/"),
|
|
228531
|
+
OPENAI_API_KEY: external_exports.string().optional().describe("OpenAI API key for GPT models. Get from https://platform.openai.com/"),
|
|
228532
|
+
GOOGLE_GENERATIVE_AI_API_KEY: external_exports.string().optional().describe("Google Generative AI API key for Gemini models"),
|
|
228527
228533
|
GITHUB_APP_ID: external_exports.string().optional(),
|
|
228528
228534
|
GITHUB_APP_PRIVATE_KEY: external_exports.string().optional(),
|
|
228529
228535
|
GITHUB_WEBHOOK_SECRET: external_exports.string().optional(),
|
|
228530
228536
|
GITHUB_STATE_SIGNING_SECRET: external_exports.string().min(32, "GITHUB_STATE_SIGNING_SECRET must be at least 32 characters").optional(),
|
|
228531
228537
|
GITHUB_APP_NAME: external_exports.string().optional(),
|
|
228532
|
-
GITHUB_MCP_API_KEY: external_exports.string().optional().describe("API key for the GitHub MCP")
|
|
228538
|
+
GITHUB_MCP_API_KEY: external_exports.string().optional().describe("API key for the GitHub MCP"),
|
|
228539
|
+
// Workflow Configuration
|
|
228540
|
+
WORKFLOW_TARGET_WORLD: external_exports.string().optional().describe("Target world for workflow execution"),
|
|
228541
|
+
WORKFLOW_POSTGRES_URL: external_exports.string().optional().describe("PostgreSQL connection URL for workflow job queue"),
|
|
228542
|
+
WORKFLOW_POSTGRES_JOB_PREFIX: external_exports.string().optional().describe("Prefix for workflow job names in the queue"),
|
|
228543
|
+
WORKFLOW_POSTGRES_WORKER_CONCURRENCY: external_exports.string().optional().describe("Number of concurrent workflow workers")
|
|
228533
228544
|
});
|
|
228534
228545
|
var parseEnv2 = /* @__PURE__ */ __name(() => {
|
|
228535
228546
|
try {
|
package/dist/createApp.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AppConfig } from "./types/app.js";
|
|
2
2
|
import "./types/index.js";
|
|
3
3
|
import { Hono } from "hono";
|
|
4
|
-
import * as
|
|
4
|
+
import * as hono_types0 from "hono/types";
|
|
5
5
|
|
|
6
6
|
//#region src/createApp.d.ts
|
|
7
7
|
declare const isWebhookRoute: (path: string) => boolean;
|
|
8
|
-
declare function createAgentsHono(config: AppConfig): Hono<
|
|
8
|
+
declare function createAgentsHono(config: AppConfig): Hono<hono_types0.BlankEnv, hono_types0.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { createAgentsHono, isWebhookRoute };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono9 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/evals/routes/datasetTriggers.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono9.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono10 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/evals/routes/index.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono10.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types10 from "hono/types";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/evals/workflow/routes.d.ts
|
|
5
|
-
declare const workflowRoutes: Hono<
|
|
5
|
+
declare const workflowRoutes: Hono<hono_types10.BlankEnv, hono_types10.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { workflowRoutes };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono17 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/conversations.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono17.Env, {}, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types5 from "hono/types";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/mcp.d.ts
|
|
5
|
-
declare const app: Hono<
|
|
5
|
+
declare const app: Hono<hono_types5.BlankEnv, hono_types5.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../../../types/app.js";
|
|
2
2
|
import { Hono } from "hono";
|
|
3
|
-
import * as
|
|
3
|
+
import * as hono_types7 from "hono/types";
|
|
4
4
|
|
|
5
5
|
//#region src/domains/manage/routes/signoz.d.ts
|
|
6
6
|
declare const app: Hono<{
|
|
7
7
|
Variables: ManageAppVariables;
|
|
8
|
-
},
|
|
8
|
+
}, hono_types7.BlankSchema, "/">;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { app as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Hono } from "hono";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono_types8 from "hono/types";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/mcp/routes/mcp.d.ts
|
|
5
|
-
declare const app: Hono<
|
|
5
|
+
declare const app: Hono<hono_types8.BlankEnv, hono_types8.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
package/dist/env.d.ts
CHANGED
|
@@ -44,16 +44,16 @@ declare const envSchema: z.ZodObject<{
|
|
|
44
44
|
ANTHROPIC_API_KEY: z.ZodString;
|
|
45
45
|
OPENAI_API_KEY: z.ZodOptional<z.ZodString>;
|
|
46
46
|
GOOGLE_GENERATIVE_AI_API_KEY: z.ZodOptional<z.ZodString>;
|
|
47
|
-
WORKFLOW_TARGET_WORLD: z.ZodOptional<z.ZodString>;
|
|
48
|
-
WORKFLOW_POSTGRES_URL: z.ZodOptional<z.ZodString>;
|
|
49
|
-
WORKFLOW_POSTGRES_JOB_PREFIX: z.ZodOptional<z.ZodString>;
|
|
50
|
-
WORKFLOW_POSTGRES_WORKER_CONCURRENCY: z.ZodOptional<z.ZodString>;
|
|
51
47
|
GITHUB_APP_ID: z.ZodOptional<z.ZodString>;
|
|
52
48
|
GITHUB_APP_PRIVATE_KEY: z.ZodOptional<z.ZodString>;
|
|
53
49
|
GITHUB_WEBHOOK_SECRET: z.ZodOptional<z.ZodString>;
|
|
54
50
|
GITHUB_STATE_SIGNING_SECRET: z.ZodOptional<z.ZodString>;
|
|
55
51
|
GITHUB_APP_NAME: z.ZodOptional<z.ZodString>;
|
|
56
52
|
GITHUB_MCP_API_KEY: z.ZodOptional<z.ZodString>;
|
|
53
|
+
WORKFLOW_TARGET_WORLD: z.ZodOptional<z.ZodString>;
|
|
54
|
+
WORKFLOW_POSTGRES_URL: z.ZodOptional<z.ZodString>;
|
|
55
|
+
WORKFLOW_POSTGRES_JOB_PREFIX: z.ZodOptional<z.ZodString>;
|
|
56
|
+
WORKFLOW_POSTGRES_WORKER_CONCURRENCY: z.ZodOptional<z.ZodString>;
|
|
57
57
|
}, z.core.$strip>;
|
|
58
58
|
declare const env: {
|
|
59
59
|
NODE_ENV: "development" | "production" | "test";
|
|
@@ -83,16 +83,16 @@ declare const env: {
|
|
|
83
83
|
PUBLIC_SIGNOZ_URL?: string | undefined;
|
|
84
84
|
OPENAI_API_KEY?: string | undefined;
|
|
85
85
|
GOOGLE_GENERATIVE_AI_API_KEY?: string | undefined;
|
|
86
|
-
WORKFLOW_TARGET_WORLD?: string | undefined;
|
|
87
|
-
WORKFLOW_POSTGRES_URL?: string | undefined;
|
|
88
|
-
WORKFLOW_POSTGRES_JOB_PREFIX?: string | undefined;
|
|
89
|
-
WORKFLOW_POSTGRES_WORKER_CONCURRENCY?: string | undefined;
|
|
90
86
|
GITHUB_APP_ID?: string | undefined;
|
|
91
87
|
GITHUB_APP_PRIVATE_KEY?: string | undefined;
|
|
92
88
|
GITHUB_WEBHOOK_SECRET?: string | undefined;
|
|
93
89
|
GITHUB_STATE_SIGNING_SECRET?: string | undefined;
|
|
94
90
|
GITHUB_APP_NAME?: string | undefined;
|
|
95
91
|
GITHUB_MCP_API_KEY?: string | undefined;
|
|
92
|
+
WORKFLOW_TARGET_WORLD?: string | undefined;
|
|
93
|
+
WORKFLOW_POSTGRES_URL?: string | undefined;
|
|
94
|
+
WORKFLOW_POSTGRES_JOB_PREFIX?: string | undefined;
|
|
95
|
+
WORKFLOW_POSTGRES_WORKER_CONCURRENCY?: string | undefined;
|
|
96
96
|
};
|
|
97
97
|
type Env = z.infer<typeof envSchema>;
|
|
98
98
|
//#endregion
|
package/dist/env.js
CHANGED
|
@@ -8,54 +8,54 @@ const envSchema = z.object({
|
|
|
8
8
|
"development",
|
|
9
9
|
"production",
|
|
10
10
|
"test"
|
|
11
|
-
]).default("development"),
|
|
11
|
+
]).default("development").describe("Node.js environment mode"),
|
|
12
12
|
ENVIRONMENT: z.enum([
|
|
13
13
|
"development",
|
|
14
14
|
"production",
|
|
15
15
|
"pentest",
|
|
16
16
|
"test"
|
|
17
|
-
]).default("development"),
|
|
17
|
+
]).default("development").describe("Application environment mode"),
|
|
18
18
|
LOG_LEVEL: z.enum([
|
|
19
19
|
"trace",
|
|
20
20
|
"debug",
|
|
21
21
|
"info",
|
|
22
22
|
"warn",
|
|
23
23
|
"error"
|
|
24
|
-
]).default("info"),
|
|
25
|
-
INKEEP_AGENTS_MANAGE_DATABASE_URL: z.string(),
|
|
26
|
-
INKEEP_AGENTS_RUN_DATABASE_URL: z.string(),
|
|
27
|
-
INKEEP_AGENTS_MANAGE_UI_URL: z.string().optional(),
|
|
28
|
-
INKEEP_AGENTS_API_URL: z.string().optional().default("http://localhost:3002"),
|
|
29
|
-
BETTER_AUTH_SECRET: z.string().optional(),
|
|
30
|
-
INKEEP_AGENTS_MANAGE_UI_USERNAME: z.string().optional().refine((val) => !val || /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(val), { message: "Invalid email address" }),
|
|
31
|
-
INKEEP_AGENTS_MANAGE_UI_PASSWORD: z.string().optional().refine((val) => !val || val.length >= 8, { message: "Password must be at least 8 characters" }),
|
|
32
|
-
INKEEP_AGENTS_API_BYPASS_SECRET: z.string().optional(),
|
|
33
|
-
INKEEP_AGENTS_MANAGE_API_BYPASS_SECRET: z.string().optional(),
|
|
34
|
-
INKEEP_AGENTS_RUN_API_BYPASS_SECRET: z.string().optional(),
|
|
35
|
-
INKEEP_AGENTS_EVAL_API_BYPASS_SECRET: z.string().optional(),
|
|
36
|
-
INKEEP_AGENTS_TEMP_JWT_PUBLIC_KEY: z.string().optional(),
|
|
37
|
-
INKEEP_AGENTS_TEMP_JWT_PRIVATE_KEY: z.string().optional(),
|
|
38
|
-
NANGO_SERVER_URL: z.string().optional().default("https://api.nango.dev"),
|
|
39
|
-
NANGO_SECRET_KEY: z.string().optional(),
|
|
40
|
-
OTEL_BSP_SCHEDULE_DELAY: z.coerce.number().optional().default(500),
|
|
41
|
-
OTEL_BSP_MAX_EXPORT_BATCH_SIZE: z.coerce.number().optional().default(64),
|
|
42
|
-
TENANT_ID: z.string().optional().default("default"),
|
|
43
|
-
SIGNOZ_URL: z.string().optional(),
|
|
44
|
-
SIGNOZ_API_KEY: z.string().optional(),
|
|
45
|
-
PUBLIC_SIGNOZ_URL: z.string().optional(),
|
|
46
|
-
ANTHROPIC_API_KEY: z.string(),
|
|
47
|
-
OPENAI_API_KEY: z.string().optional(),
|
|
48
|
-
GOOGLE_GENERATIVE_AI_API_KEY: z.string().optional(),
|
|
49
|
-
WORKFLOW_TARGET_WORLD: z.string().optional(),
|
|
50
|
-
WORKFLOW_POSTGRES_URL: z.string().optional(),
|
|
51
|
-
WORKFLOW_POSTGRES_JOB_PREFIX: z.string().optional(),
|
|
52
|
-
WORKFLOW_POSTGRES_WORKER_CONCURRENCY: z.string().optional(),
|
|
24
|
+
]).default("info").describe("Logging verbosity level"),
|
|
25
|
+
INKEEP_AGENTS_MANAGE_DATABASE_URL: z.string().describe("PostgreSQL connection URL for the management database (Doltgres with Git version control)"),
|
|
26
|
+
INKEEP_AGENTS_RUN_DATABASE_URL: z.string().describe("PostgreSQL connection URL for the runtime database (Doltgres with Git version control)"),
|
|
27
|
+
INKEEP_AGENTS_MANAGE_UI_URL: z.string().optional().describe("URL where the management UI is hosted"),
|
|
28
|
+
INKEEP_AGENTS_API_URL: z.string().optional().default("http://localhost:3002").describe("URL where the agents management API is running"),
|
|
29
|
+
BETTER_AUTH_SECRET: z.string().optional().describe("Secret key for Better Auth session encryption (change in production)"),
|
|
30
|
+
INKEEP_AGENTS_MANAGE_UI_USERNAME: z.string().optional().refine((val) => !val || /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(val), { message: "Invalid email address" }).describe("Admin email address for management UI login"),
|
|
31
|
+
INKEEP_AGENTS_MANAGE_UI_PASSWORD: z.string().optional().refine((val) => !val || val.length >= 8, { message: "Password must be at least 8 characters" }).describe("Admin password for management UI login (min 8 characters)"),
|
|
32
|
+
INKEEP_AGENTS_API_BYPASS_SECRET: z.string().optional().describe("API bypass secret for local development and testing (skips auth)"),
|
|
33
|
+
INKEEP_AGENTS_MANAGE_API_BYPASS_SECRET: z.string().optional().describe("Management API bypass secret for local development and testing (skips auth)"),
|
|
34
|
+
INKEEP_AGENTS_RUN_API_BYPASS_SECRET: z.string().optional().describe("Run API bypass secret for local development and testing (skips auth)"),
|
|
35
|
+
INKEEP_AGENTS_EVAL_API_BYPASS_SECRET: z.string().optional().describe("Eval API bypass secret for local development and testing (skips auth)"),
|
|
36
|
+
INKEEP_AGENTS_TEMP_JWT_PUBLIC_KEY: z.string().optional().describe("Temporary JWT public key for Playground (generate with scripts/generate-jwt-keys.sh)"),
|
|
37
|
+
INKEEP_AGENTS_TEMP_JWT_PRIVATE_KEY: z.string().optional().describe("Temporary JWT private key for Playground (generate with scripts/generate-jwt-keys.sh)"),
|
|
38
|
+
NANGO_SERVER_URL: z.string().optional().default("https://api.nango.dev").describe("Nango server URL for OAuth integrations"),
|
|
39
|
+
NANGO_SECRET_KEY: z.string().optional().describe("Nango secret key for OAuth integrations"),
|
|
40
|
+
OTEL_BSP_SCHEDULE_DELAY: z.coerce.number().optional().default(500).describe("OpenTelemetry batch span processor schedule delay in milliseconds"),
|
|
41
|
+
OTEL_BSP_MAX_EXPORT_BATCH_SIZE: z.coerce.number().optional().default(64).describe("OpenTelemetry batch span processor max export batch size"),
|
|
42
|
+
TENANT_ID: z.string().optional().default("default").describe("Default tenant ID for development"),
|
|
43
|
+
SIGNOZ_URL: z.string().optional().describe("SigNoz server URL for observability"),
|
|
44
|
+
SIGNOZ_API_KEY: z.string().optional().describe("SigNoz API key for authentication"),
|
|
45
|
+
PUBLIC_SIGNOZ_URL: z.string().optional().describe("Public SigNoz URL accessible from the browser"),
|
|
46
|
+
ANTHROPIC_API_KEY: z.string().describe("Anthropic API key for Claude models (required for agent execution). Get from https://console.anthropic.com/"),
|
|
47
|
+
OPENAI_API_KEY: z.string().optional().describe("OpenAI API key for GPT models. Get from https://platform.openai.com/"),
|
|
48
|
+
GOOGLE_GENERATIVE_AI_API_KEY: z.string().optional().describe("Google Generative AI API key for Gemini models"),
|
|
53
49
|
GITHUB_APP_ID: z.string().optional(),
|
|
54
50
|
GITHUB_APP_PRIVATE_KEY: z.string().optional(),
|
|
55
51
|
GITHUB_WEBHOOK_SECRET: z.string().optional(),
|
|
56
52
|
GITHUB_STATE_SIGNING_SECRET: z.string().min(32, "GITHUB_STATE_SIGNING_SECRET must be at least 32 characters").optional(),
|
|
57
53
|
GITHUB_APP_NAME: z.string().optional(),
|
|
58
|
-
GITHUB_MCP_API_KEY: z.string().optional().describe("API key for the GitHub MCP")
|
|
54
|
+
GITHUB_MCP_API_KEY: z.string().optional().describe("API key for the GitHub MCP"),
|
|
55
|
+
WORKFLOW_TARGET_WORLD: z.string().optional().describe("Target world for workflow execution"),
|
|
56
|
+
WORKFLOW_POSTGRES_URL: z.string().optional().describe("PostgreSQL connection URL for workflow job queue"),
|
|
57
|
+
WORKFLOW_POSTGRES_JOB_PREFIX: z.string().optional().describe("Prefix for workflow job names in the queue"),
|
|
58
|
+
WORKFLOW_POSTGRES_WORKER_CONCURRENCY: z.string().optional().describe("Number of concurrent workflow workers")
|
|
59
59
|
});
|
|
60
60
|
const parseEnv = () => {
|
|
61
61
|
try {
|