@inkeep/agents-api 0.0.0-dev-20260203023016 → 0.0.0-dev-20260203033642
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/manifest.debug.json +11 -11
- package/dist/.well-known/workflow/v1/step.cjs +60 -48
- 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/evals/evaluationResults.d.ts +2 -2
- package/dist/domains/manage/routes/index.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/domains/run/agents/relationTools.d.ts +2 -2
- package/dist/domains/run/utils/token-estimator.d.ts +2 -2
- package/dist/env.d.ts +8 -8
- package/dist/env.js +37 -37
- package/dist/factory.d.ts +25 -25
- package/dist/index.d.ts +22 -22
- 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
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"steps": {
|
|
3
|
-
"node_modules/.pnpm/workflow@4.0.1-beta.33_@aws-sdk+client-sts@3.970.0_@opentelemetry+api@1.9.0_@types+reac_c3fd21eb4e661cd5cc8d67d9c0f6cfda/node_modules/workflow/dist/internal/builtins.js": {
|
|
4
|
-
"__builtin_response_array_buffer": {
|
|
5
|
-
"stepId": "__builtin_response_array_buffer"
|
|
6
|
-
},
|
|
7
|
-
"__builtin_response_json": {
|
|
8
|
-
"stepId": "__builtin_response_json"
|
|
9
|
-
},
|
|
10
|
-
"__builtin_response_text": {
|
|
11
|
-
"stepId": "__builtin_response_text"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
3
|
"src/domains/evals/workflow/functions/evaluateConversation.ts": {
|
|
15
4
|
"executeEvaluatorStep": {
|
|
16
5
|
"stepId": "step//src/domains/evals/workflow/functions/evaluateConversation.ts//executeEvaluatorStep"
|
|
@@ -25,6 +14,17 @@
|
|
|
25
14
|
"stepId": "step//src/domains/evals/workflow/functions/evaluateConversation.ts//logStep"
|
|
26
15
|
}
|
|
27
16
|
},
|
|
17
|
+
"node_modules/.pnpm/workflow@4.0.1-beta.33_@aws-sdk+client-sts@3.970.0_@opentelemetry+api@1.9.0_@types+reac_c3fd21eb4e661cd5cc8d67d9c0f6cfda/node_modules/workflow/dist/internal/builtins.js": {
|
|
18
|
+
"__builtin_response_array_buffer": {
|
|
19
|
+
"stepId": "__builtin_response_array_buffer"
|
|
20
|
+
},
|
|
21
|
+
"__builtin_response_json": {
|
|
22
|
+
"stepId": "__builtin_response_json"
|
|
23
|
+
},
|
|
24
|
+
"__builtin_response_text": {
|
|
25
|
+
"stepId": "__builtin_response_text"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
28
|
"src/domains/evals/workflow/functions/runDatasetItem.ts": {
|
|
29
29
|
"callChatApiStep": {
|
|
30
30
|
"stepId": "step//src/domains/evals/workflow/functions/runDatasetItem.ts//callChatApiStep"
|
|
@@ -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,74 @@ __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
|
-
|
|
228527
|
-
|
|
228528
|
-
|
|
228529
|
-
|
|
228530
|
-
|
|
228531
|
-
|
|
228532
|
-
|
|
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"),
|
|
228533
|
+
// GitHub App Configuration
|
|
228534
|
+
GITHUB_APP_ID: external_exports.string().optional().describe("GitHub App ID for GitHub integration"),
|
|
228535
|
+
GITHUB_APP_PRIVATE_KEY: external_exports.string().optional().describe("GitHub App private key for authentication"),
|
|
228536
|
+
GITHUB_WEBHOOK_SECRET: external_exports.string().optional().describe("Secret for validating GitHub webhook payloads"),
|
|
228537
|
+
GITHUB_STATE_SIGNING_SECRET: external_exports.string().min(32, "GITHUB_STATE_SIGNING_SECRET must be at least 32 characters").optional().describe("Secret for signing GitHub OAuth state (minimum 32 characters)"),
|
|
228538
|
+
GITHUB_APP_NAME: external_exports.string().optional().describe("Name of the GitHub App"),
|
|
228539
|
+
GITHUB_MCP_API_KEY: external_exports.string().optional().describe("API key for the GitHub MCP"),
|
|
228540
|
+
// Workflow Configuration
|
|
228541
|
+
WORKFLOW_TARGET_WORLD: external_exports.string().optional().describe("Target world for workflow execution"),
|
|
228542
|
+
WORKFLOW_POSTGRES_URL: external_exports.string().optional().describe("PostgreSQL connection URL for workflow job queue"),
|
|
228543
|
+
WORKFLOW_POSTGRES_JOB_PREFIX: external_exports.string().optional().describe("Prefix for workflow job names in the queue"),
|
|
228544
|
+
WORKFLOW_POSTGRES_WORKER_CONCURRENCY: external_exports.string().optional().describe("Number of concurrent workflow workers")
|
|
228533
228545
|
});
|
|
228534
228546
|
var parseEnv2 = /* @__PURE__ */ __name(() => {
|
|
228535
228547
|
try {
|
|
@@ -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/evals/workflow/routes.d.ts
|
|
5
|
-
declare const workflowRoutes: Hono<
|
|
5
|
+
declare const workflowRoutes: Hono<hono_types8.BlankEnv, hono_types8.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 hono9 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/conversations.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 hono6 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/evals/evaluationResults.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono6.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 hono15 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/manage/routes/index.d.ts
|
|
5
|
-
declare const app: OpenAPIHono<
|
|
5
|
+
declare const app: OpenAPIHono<hono15.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_types6 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_types6.BlankEnv, hono_types6.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_types3 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_types3.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_types4 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_types4.BlankEnv, hono_types4.BlankSchema, "/">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { app as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AgentConfig, DelegateRelation } from "./Agent.js";
|
|
2
2
|
import { InternalRelation } from "../utils/project.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _inkeep_agents_core2 from "@inkeep/agents-core";
|
|
4
4
|
import { CredentialStoreRegistry, FullExecutionContext } from "@inkeep/agents-core";
|
|
5
5
|
import * as ai0 from "ai";
|
|
6
6
|
|
|
@@ -44,7 +44,7 @@ declare function createDelegateToAgentTool({
|
|
|
44
44
|
message: string;
|
|
45
45
|
}, {
|
|
46
46
|
toolCallId: any;
|
|
47
|
-
result:
|
|
47
|
+
result: _inkeep_agents_core2.Message | _inkeep_agents_core2.Task;
|
|
48
48
|
}>;
|
|
49
49
|
/**
|
|
50
50
|
* Parameters for building a transfer relation config
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _inkeep_agents_core1 from "@inkeep/agents-core";
|
|
2
2
|
import { BreakdownComponentDef, ContextBreakdown, calculateBreakdownTotal, createEmptyBreakdown } from "@inkeep/agents-core";
|
|
3
3
|
|
|
4
4
|
//#region src/domains/run/utils/token-estimator.d.ts
|
|
@@ -17,7 +17,7 @@ interface AssembleResult {
|
|
|
17
17
|
/** The assembled prompt string */
|
|
18
18
|
prompt: string;
|
|
19
19
|
/** Token breakdown for each component */
|
|
20
|
-
breakdown:
|
|
20
|
+
breakdown: _inkeep_agents_core1.ContextBreakdown;
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
23
|
export { AssembleResult, type BreakdownComponentDef, type ContextBreakdown, calculateBreakdownTotal, createEmptyBreakdown, estimateTokens };
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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"),
|
|
49
|
+
GITHUB_APP_ID: z.string().optional().describe("GitHub App ID for GitHub integration"),
|
|
50
|
+
GITHUB_APP_PRIVATE_KEY: z.string().optional().describe("GitHub App private key for authentication"),
|
|
51
|
+
GITHUB_WEBHOOK_SECRET: z.string().optional().describe("Secret for validating GitHub webhook payloads"),
|
|
52
|
+
GITHUB_STATE_SIGNING_SECRET: z.string().min(32, "GITHUB_STATE_SIGNING_SECRET must be at least 32 characters").optional().describe("Secret for signing GitHub OAuth state (minimum 32 characters)"),
|
|
53
|
+
GITHUB_APP_NAME: z.string().optional().describe("Name of the GitHub App"),
|
|
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 {
|
package/dist/factory.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import "./types/index.js";
|
|
|
3
3
|
import { createAgentsHono } from "./createApp.js";
|
|
4
4
|
import { createAuth0Provider, createOIDCProvider } from "./ssoHelpers.js";
|
|
5
5
|
import { CredentialStore, ServerConfig } from "@inkeep/agents-core";
|
|
6
|
-
import * as
|
|
6
|
+
import * as hono10 from "hono";
|
|
7
7
|
import * as zod205 from "zod";
|
|
8
8
|
import { SSOProviderConfig, UserAuthConfig } from "@inkeep/agents-core/auth";
|
|
9
|
-
import * as
|
|
9
|
+
import * as hono_types10 from "hono/types";
|
|
10
10
|
import * as better_auth78 from "better-auth";
|
|
11
11
|
import * as better_auth_plugins69 from "better-auth/plugins";
|
|
12
12
|
import * as _better_auth_sso10 from "@better-auth/sso";
|
|
@@ -794,25 +794,25 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
794
794
|
ac: better_auth_plugins69.AccessControl;
|
|
795
795
|
roles: {
|
|
796
796
|
member: {
|
|
797
|
-
authorize<K_1 extends "organization" | "
|
|
798
|
-
actions: better_auth_plugins69.Subset<"organization" | "
|
|
797
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
|
|
798
|
+
actions: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key];
|
|
799
799
|
connector: "OR" | "AND";
|
|
800
800
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
801
|
-
statements: better_auth_plugins69.Subset<"organization" | "
|
|
801
|
+
statements: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>;
|
|
802
802
|
};
|
|
803
803
|
admin: {
|
|
804
|
-
authorize<K_1 extends "organization" | "
|
|
805
|
-
actions: better_auth_plugins69.Subset<"organization" | "
|
|
804
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
|
|
805
|
+
actions: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key];
|
|
806
806
|
connector: "OR" | "AND";
|
|
807
807
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
808
|
-
statements: better_auth_plugins69.Subset<"organization" | "
|
|
808
|
+
statements: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>;
|
|
809
809
|
};
|
|
810
810
|
owner: {
|
|
811
|
-
authorize<K_1 extends "organization" | "
|
|
812
|
-
actions: better_auth_plugins69.Subset<"organization" | "
|
|
811
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
|
|
812
|
+
actions: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key];
|
|
813
813
|
connector: "OR" | "AND";
|
|
814
814
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
815
|
-
statements: better_auth_plugins69.Subset<"organization" | "
|
|
815
|
+
statements: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>;
|
|
816
816
|
};
|
|
817
817
|
};
|
|
818
818
|
creatorRole: "admin";
|
|
@@ -987,7 +987,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
987
987
|
id: string;
|
|
988
988
|
organizationId: string;
|
|
989
989
|
email: string;
|
|
990
|
-
role: "
|
|
990
|
+
role: "owner" | "admin" | "member";
|
|
991
991
|
status: better_auth_plugins69.InvitationStatus;
|
|
992
992
|
inviterId: string;
|
|
993
993
|
expiresAt: Date;
|
|
@@ -996,7 +996,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
996
996
|
Member: {
|
|
997
997
|
id: string;
|
|
998
998
|
organizationId: string;
|
|
999
|
-
role: "
|
|
999
|
+
role: "owner" | "admin" | "member";
|
|
1000
1000
|
createdAt: Date;
|
|
1001
1001
|
userId: string;
|
|
1002
1002
|
user: {
|
|
@@ -1012,7 +1012,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1012
1012
|
members: {
|
|
1013
1013
|
id: string;
|
|
1014
1014
|
organizationId: string;
|
|
1015
|
-
role: "
|
|
1015
|
+
role: "owner" | "admin" | "member";
|
|
1016
1016
|
createdAt: Date;
|
|
1017
1017
|
userId: string;
|
|
1018
1018
|
user: {
|
|
@@ -1026,7 +1026,7 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1026
1026
|
id: string;
|
|
1027
1027
|
organizationId: string;
|
|
1028
1028
|
email: string;
|
|
1029
|
-
role: "
|
|
1029
|
+
role: "owner" | "admin" | "member";
|
|
1030
1030
|
status: better_auth_plugins69.InvitationStatus;
|
|
1031
1031
|
inviterId: string;
|
|
1032
1032
|
expiresAt: Date;
|
|
@@ -1104,25 +1104,25 @@ declare function createAgentsAuth(userAuthConfig?: UserAuthConfig): better_auth7
|
|
|
1104
1104
|
ac: better_auth_plugins69.AccessControl;
|
|
1105
1105
|
roles: {
|
|
1106
1106
|
member: {
|
|
1107
|
-
authorize<K_1 extends "organization" | "
|
|
1108
|
-
actions: better_auth_plugins69.Subset<"organization" | "
|
|
1107
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
|
|
1108
|
+
actions: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key];
|
|
1109
1109
|
connector: "OR" | "AND";
|
|
1110
1110
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
1111
|
-
statements: better_auth_plugins69.Subset<"organization" | "
|
|
1111
|
+
statements: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>;
|
|
1112
1112
|
};
|
|
1113
1113
|
admin: {
|
|
1114
|
-
authorize<K_1 extends "organization" | "
|
|
1115
|
-
actions: better_auth_plugins69.Subset<"organization" | "
|
|
1114
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
|
|
1115
|
+
actions: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key];
|
|
1116
1116
|
connector: "OR" | "AND";
|
|
1117
1117
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
1118
|
-
statements: better_auth_plugins69.Subset<"organization" | "
|
|
1118
|
+
statements: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>;
|
|
1119
1119
|
};
|
|
1120
1120
|
owner: {
|
|
1121
|
-
authorize<K_1 extends "organization" | "
|
|
1122
|
-
actions: better_auth_plugins69.Subset<"organization" | "
|
|
1121
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
|
|
1122
|
+
actions: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key];
|
|
1123
1123
|
connector: "OR" | "AND";
|
|
1124
1124
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
1125
|
-
statements: better_auth_plugins69.Subset<"organization" | "
|
|
1125
|
+
statements: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>;
|
|
1126
1126
|
};
|
|
1127
1127
|
};
|
|
1128
1128
|
creatorRole: "admin";
|
|
@@ -1536,6 +1536,6 @@ declare function createAgentsApp(config?: {
|
|
|
1536
1536
|
credentialStores?: CredentialStore[];
|
|
1537
1537
|
auth?: UserAuthConfig;
|
|
1538
1538
|
sandboxConfig?: SandboxConfig;
|
|
1539
|
-
}):
|
|
1539
|
+
}): hono10.Hono<hono_types10.BlankEnv, hono_types10.BlankSchema, "/">;
|
|
1540
1540
|
//#endregion
|
|
1541
1541
|
export { type SSOProviderConfig, type UserAuthConfig, createAgentsApp, createAgentsAuth, createAgentsHono, createAuth0Provider, createOIDCProvider };
|
package/dist/index.d.ts
CHANGED
|
@@ -795,25 +795,25 @@ declare const auth: better_auth0.Auth<{
|
|
|
795
795
|
ac: better_auth_plugins0.AccessControl;
|
|
796
796
|
roles: {
|
|
797
797
|
member: {
|
|
798
|
-
authorize<K_1 extends "organization" | "
|
|
799
|
-
actions: better_auth_plugins0.Subset<"organization" | "
|
|
798
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
799
|
+
actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
800
800
|
connector: "OR" | "AND";
|
|
801
801
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
802
|
-
statements: better_auth_plugins0.Subset<"organization" | "
|
|
802
|
+
statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
803
803
|
};
|
|
804
804
|
admin: {
|
|
805
|
-
authorize<K_1 extends "organization" | "
|
|
806
|
-
actions: better_auth_plugins0.Subset<"organization" | "
|
|
805
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
806
|
+
actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
807
807
|
connector: "OR" | "AND";
|
|
808
808
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
809
|
-
statements: better_auth_plugins0.Subset<"organization" | "
|
|
809
|
+
statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
810
810
|
};
|
|
811
811
|
owner: {
|
|
812
|
-
authorize<K_1 extends "organization" | "
|
|
813
|
-
actions: better_auth_plugins0.Subset<"organization" | "
|
|
812
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
813
|
+
actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
814
814
|
connector: "OR" | "AND";
|
|
815
815
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
816
|
-
statements: better_auth_plugins0.Subset<"organization" | "
|
|
816
|
+
statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
817
817
|
};
|
|
818
818
|
};
|
|
819
819
|
creatorRole: "admin";
|
|
@@ -988,7 +988,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
988
988
|
id: string;
|
|
989
989
|
organizationId: string;
|
|
990
990
|
email: string;
|
|
991
|
-
role: "
|
|
991
|
+
role: "owner" | "admin" | "member";
|
|
992
992
|
status: better_auth_plugins0.InvitationStatus;
|
|
993
993
|
inviterId: string;
|
|
994
994
|
expiresAt: Date;
|
|
@@ -997,7 +997,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
997
997
|
Member: {
|
|
998
998
|
id: string;
|
|
999
999
|
organizationId: string;
|
|
1000
|
-
role: "
|
|
1000
|
+
role: "owner" | "admin" | "member";
|
|
1001
1001
|
createdAt: Date;
|
|
1002
1002
|
userId: string;
|
|
1003
1003
|
user: {
|
|
@@ -1013,7 +1013,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
1013
1013
|
members: {
|
|
1014
1014
|
id: string;
|
|
1015
1015
|
organizationId: string;
|
|
1016
|
-
role: "
|
|
1016
|
+
role: "owner" | "admin" | "member";
|
|
1017
1017
|
createdAt: Date;
|
|
1018
1018
|
userId: string;
|
|
1019
1019
|
user: {
|
|
@@ -1027,7 +1027,7 @@ declare const auth: better_auth0.Auth<{
|
|
|
1027
1027
|
id: string;
|
|
1028
1028
|
organizationId: string;
|
|
1029
1029
|
email: string;
|
|
1030
|
-
role: "
|
|
1030
|
+
role: "owner" | "admin" | "member";
|
|
1031
1031
|
status: better_auth_plugins0.InvitationStatus;
|
|
1032
1032
|
inviterId: string;
|
|
1033
1033
|
expiresAt: Date;
|
|
@@ -1105,25 +1105,25 @@ declare const auth: better_auth0.Auth<{
|
|
|
1105
1105
|
ac: better_auth_plugins0.AccessControl;
|
|
1106
1106
|
roles: {
|
|
1107
1107
|
member: {
|
|
1108
|
-
authorize<K_1 extends "organization" | "
|
|
1109
|
-
actions: better_auth_plugins0.Subset<"organization" | "
|
|
1108
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1109
|
+
actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
1110
1110
|
connector: "OR" | "AND";
|
|
1111
1111
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1112
|
-
statements: better_auth_plugins0.Subset<"organization" | "
|
|
1112
|
+
statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
1113
1113
|
};
|
|
1114
1114
|
admin: {
|
|
1115
|
-
authorize<K_1 extends "organization" | "
|
|
1116
|
-
actions: better_auth_plugins0.Subset<"organization" | "
|
|
1115
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1116
|
+
actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
1117
1117
|
connector: "OR" | "AND";
|
|
1118
1118
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1119
|
-
statements: better_auth_plugins0.Subset<"organization" | "
|
|
1119
|
+
statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
1120
1120
|
};
|
|
1121
1121
|
owner: {
|
|
1122
|
-
authorize<K_1 extends "organization" | "
|
|
1123
|
-
actions: better_auth_plugins0.Subset<"organization" | "
|
|
1122
|
+
authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1123
|
+
actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
1124
1124
|
connector: "OR" | "AND";
|
|
1125
1125
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1126
|
-
statements: better_auth_plugins0.Subset<"organization" | "
|
|
1126
|
+
statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
1127
1127
|
};
|
|
1128
1128
|
};
|
|
1129
1129
|
creatorRole: "admin";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseExecutionContext } from "@inkeep/agents-core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono0 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/evalsAuth.d.ts
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ import * as hono4 from "hono";
|
|
|
7
7
|
* Middleware to authenticate API requests using Bearer token authentication
|
|
8
8
|
* First checks if token matches INKEEP_AGENTS_EVAL_API_BYPASS_SECRET,
|
|
9
9
|
*/
|
|
10
|
-
declare const evalApiKeyAuth: () =>
|
|
10
|
+
declare const evalApiKeyAuth: () => hono0.MiddlewareHandler<{
|
|
11
11
|
Variables: {
|
|
12
12
|
executionContext: BaseExecutionContext;
|
|
13
13
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseExecutionContext } from "@inkeep/agents-core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono2 from "hono";
|
|
3
3
|
import { createAuth } from "@inkeep/agents-core/auth";
|
|
4
4
|
|
|
5
5
|
//#region src/middleware/manageAuth.d.ts
|
|
@@ -12,7 +12,7 @@ import { createAuth } from "@inkeep/agents-core/auth";
|
|
|
12
12
|
* 3. Database API key
|
|
13
13
|
* 4. Internal service token
|
|
14
14
|
*/
|
|
15
|
-
declare const manageApiKeyAuth: () =>
|
|
15
|
+
declare const manageApiKeyAuth: () => hono2.MiddlewareHandler<{
|
|
16
16
|
Variables: {
|
|
17
17
|
executionContext: BaseExecutionContext;
|
|
18
18
|
userId?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../types/app.js";
|
|
2
2
|
import { ProjectPermissionLevel } from "@inkeep/agents-core";
|
|
3
|
-
import * as
|
|
3
|
+
import * as hono3 from "hono";
|
|
4
4
|
|
|
5
5
|
//#region src/middleware/projectAccess.d.ts
|
|
6
6
|
/**
|
|
@@ -10,6 +10,6 @@ declare const requireProjectPermission: <Env$1 extends {
|
|
|
10
10
|
Variables: ManageAppVariables;
|
|
11
11
|
} = {
|
|
12
12
|
Variables: ManageAppVariables;
|
|
13
|
-
}>(permission?: ProjectPermissionLevel) =>
|
|
13
|
+
}>(permission?: ProjectPermissionLevel) => hono3.MiddlewareHandler<Env$1, string, {}, Response>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { requireProjectPermission };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BaseExecutionContext, ResolvedRef } from "@inkeep/agents-core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono4 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/projectConfig.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Middleware that fetches the full project definition from the Management API
|
|
7
7
|
*/
|
|
8
|
-
declare const projectConfigMiddleware:
|
|
8
|
+
declare const projectConfigMiddleware: hono4.MiddlewareHandler<{
|
|
9
9
|
Variables: {
|
|
10
10
|
executionContext: BaseExecutionContext;
|
|
11
11
|
resolvedRef: ResolvedRef;
|
|
@@ -15,7 +15,7 @@ declare const projectConfigMiddleware: hono9.MiddlewareHandler<{
|
|
|
15
15
|
* Creates a middleware that applies project config fetching except for specified route patterns
|
|
16
16
|
* @param skipRouteCheck - Function that returns true if the route should skip the middleware
|
|
17
17
|
*/
|
|
18
|
-
declare const projectConfigMiddlewareExcept: (skipRouteCheck: (path: string) => boolean) =>
|
|
18
|
+
declare const projectConfigMiddlewareExcept: (skipRouteCheck: (path: string) => boolean) => hono4.MiddlewareHandler<{
|
|
19
19
|
Variables: {
|
|
20
20
|
executionContext: BaseExecutionContext;
|
|
21
21
|
resolvedRef: ResolvedRef;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ManageAppVariables } from "../types/app.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono11 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/requirePermission.d.ts
|
|
5
5
|
type Permission = {
|
|
@@ -9,6 +9,6 @@ declare const requirePermission: <Env$1 extends {
|
|
|
9
9
|
Variables: ManageAppVariables;
|
|
10
10
|
} = {
|
|
11
11
|
Variables: ManageAppVariables;
|
|
12
|
-
}>(permissions: Permission) =>
|
|
12
|
+
}>(permissions: Permission) => hono11.MiddlewareHandler<Env$1, string, {}, Response>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { requirePermission };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseExecutionContext } from "@inkeep/agents-core";
|
|
2
|
-
import * as
|
|
2
|
+
import * as hono12 from "hono";
|
|
3
3
|
|
|
4
4
|
//#region src/middleware/runAuth.d.ts
|
|
5
|
-
declare const runApiKeyAuth: () =>
|
|
5
|
+
declare const runApiKeyAuth: () => hono12.MiddlewareHandler<{
|
|
6
6
|
Variables: {
|
|
7
7
|
executionContext: BaseExecutionContext;
|
|
8
8
|
};
|
|
@@ -11,7 +11,7 @@ declare const runApiKeyAuth: () => hono11.MiddlewareHandler<{
|
|
|
11
11
|
* Creates a middleware that applies API key authentication except for specified route patterns
|
|
12
12
|
* @param skipRouteCheck - Function that returns true if the route should skip authentication
|
|
13
13
|
*/
|
|
14
|
-
declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) =>
|
|
14
|
+
declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) => hono12.MiddlewareHandler<{
|
|
15
15
|
Variables: {
|
|
16
16
|
executionContext: BaseExecutionContext;
|
|
17
17
|
};
|
|
@@ -20,7 +20,7 @@ declare const runApiKeyAuthExcept: (skipRouteCheck: (path: string) => boolean) =
|
|
|
20
20
|
* Helper middleware for endpoints that optionally support API key authentication
|
|
21
21
|
* If no auth header is present, it continues without setting the executionContext
|
|
22
22
|
*/
|
|
23
|
-
declare const runOptionalAuth: () =>
|
|
23
|
+
declare const runOptionalAuth: () => hono12.MiddlewareHandler<{
|
|
24
24
|
Variables: {
|
|
25
25
|
executionContext?: BaseExecutionContext;
|
|
26
26
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono16 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/sessionAuth.d.ts
|
|
4
4
|
|
|
@@ -7,11 +7,11 @@ import * as hono5 from "hono";
|
|
|
7
7
|
* Requires that a user has already been authenticated via Better Auth session.
|
|
8
8
|
* Used primarily for manage routes that require an active user session.
|
|
9
9
|
*/
|
|
10
|
-
declare const sessionAuth: () =>
|
|
10
|
+
declare const sessionAuth: () => hono16.MiddlewareHandler<any, string, {}, Response>;
|
|
11
11
|
/**
|
|
12
12
|
* Global session middleware - sets user and session in context for all routes
|
|
13
13
|
* Used for all routes that require an active user session.
|
|
14
14
|
*/
|
|
15
|
-
declare const sessionContext: () =>
|
|
15
|
+
declare const sessionContext: () => hono16.MiddlewareHandler<any, string, {}, Response>;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { sessionAuth, sessionContext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono18 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/tenantAccess.d.ts
|
|
4
4
|
|
|
@@ -11,7 +11,7 @@ import * as hono2 from "hono";
|
|
|
11
11
|
* - API key user: Access only to the tenant associated with the API key
|
|
12
12
|
* - Session user: Access based on organization membership
|
|
13
13
|
*/
|
|
14
|
-
declare const requireTenantAccess: () =>
|
|
14
|
+
declare const requireTenantAccess: () => hono18.MiddlewareHandler<{
|
|
15
15
|
Variables: {
|
|
16
16
|
userId: string;
|
|
17
17
|
tenantId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as hono7 from "hono";
|
|
2
2
|
|
|
3
3
|
//#region src/middleware/tracing.d.ts
|
|
4
|
-
declare const otelBaggageMiddleware: () =>
|
|
5
|
-
declare const executionBaggageMiddleware: () =>
|
|
4
|
+
declare const otelBaggageMiddleware: () => hono7.MiddlewareHandler<any, string, {}, Response>;
|
|
5
|
+
declare const executionBaggageMiddleware: () => hono7.MiddlewareHandler<any, string, {}, Response>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { executionBaggageMiddleware, otelBaggageMiddleware };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-api",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20260203033642",
|
|
4
4
|
"description": "Unified Inkeep Agents API - combines management, runtime, and evaluation capabilities",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"openid-client": "^6.8.1",
|
|
67
67
|
"pg": "^8.16.3",
|
|
68
68
|
"workflow": "4.0.1-beta.33",
|
|
69
|
-
"@inkeep/agents-core": "^0.0.0-dev-
|
|
70
|
-
"@inkeep/agents-manage-mcp": "^0.0.0-dev-
|
|
71
|
-
"@inkeep/agents-mcp": "^0.0.0-dev-
|
|
72
|
-
"@inkeep/agents-work-apps": "^0.0.0-dev-
|
|
69
|
+
"@inkeep/agents-core": "^0.0.0-dev-20260203033642",
|
|
70
|
+
"@inkeep/agents-manage-mcp": "^0.0.0-dev-20260203033642",
|
|
71
|
+
"@inkeep/agents-mcp": "^0.0.0-dev-20260203033642",
|
|
72
|
+
"@inkeep/agents-work-apps": "^0.0.0-dev-20260203033642"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"@hono/zod-openapi": "^1.1.5",
|