@inkeep/agents-core 0.0.0-dev-20260407230245 → 0.0.0-dev-20260408005804
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/auth/auth-schema.d.ts +86 -86
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/constants/index.d.ts +14 -0
- package/dist/constants/index.js +15 -0
- package/dist/constants/relation-types.d.ts +5 -0
- package/dist/constants/relation-types.js +6 -0
- package/dist/constants/session-events.d.ts +13 -0
- package/dist/constants/session-events.js +14 -0
- package/dist/constants/tool-names.d.ts +7 -0
- package/dist/constants/tool-names.js +8 -0
- package/dist/constants/workflow.d.ts +7 -0
- package/dist/constants/workflow.js +8 -0
- package/dist/data-access/manage/agents.d.ts +6 -6
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +4 -4
- package/dist/data-access/manage/skills.d.ts +7 -7
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +4 -4
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +6 -6
- package/dist/data-access/manage/tools.d.ts +12 -12
- package/dist/data-access/manage/triggers.d.ts +4 -4
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/apps.d.ts +6 -6
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/feedback.d.ts +2 -2
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
- package/dist/db/manage/manage-schema.d.ts +453 -453
- package/dist/db/runtime/runtime-schema.d.ts +403 -403
- package/dist/index.d.ts +5 -1
- package/dist/index.js +5 -1
- package/dist/utils/error.d.ts +51 -51
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +31 -31
- package/dist/validation/schemas.d.ts +1963 -1963
- package/package.json +1 -1
|
@@ -5,25 +5,25 @@ import { organizationClient } from "better-auth/client/plugins";
|
|
|
5
5
|
//#region src/auth/permissions.d.ts
|
|
6
6
|
declare const ac: AccessControl;
|
|
7
7
|
declare const memberRole: {
|
|
8
|
-
authorize<K_1 extends "organization" | "
|
|
9
|
-
actions: better_auth_plugins4.Subset<"organization" | "
|
|
8
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
11
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
|
|
12
|
-
statements: better_auth_plugins4.Subset<"organization" | "
|
|
12
|
+
statements: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "organization" | "
|
|
16
|
-
actions: better_auth_plugins4.Subset<"organization" | "
|
|
15
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
18
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
|
|
19
|
-
statements: better_auth_plugins4.Subset<"organization" | "
|
|
19
|
+
statements: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "organization" | "
|
|
23
|
-
actions: better_auth_plugins4.Subset<"organization" | "
|
|
22
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
25
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
|
|
26
|
-
statements: better_auth_plugins4.Subset<"organization" | "
|
|
26
|
+
statements: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AI_OPERATIONS, AI_TOOL_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, GENERATION_TYPES, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, USAGE_GENERATION_TYPES } from "./otel-attributes.js";
|
|
2
|
+
import { BreakdownComponentDef, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, ContextBreakdown, V1_BREAKDOWN_SCHEMA, calculateBreakdownTotal, createEmptyBreakdown, parseContextBreakdownFromSpan } from "./context-breakdown.js";
|
|
3
|
+
import { executionLimitsSharedDefaults } from "./execution-limits-shared/defaults.js";
|
|
4
|
+
import { CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR } from "./execution-limits-shared/index.js";
|
|
5
|
+
import { ANTHROPIC_MODELS, AnthropicModel, GATEWAY_ROUTABLE_PROVIDERS_SET, GOOGLE_MODELS, GoogleModel, ModelName, OPENAI_MODELS, OpenAIModel } from "./models.js";
|
|
6
|
+
import { RELATION_TYPE_DELEGATE, RELATION_TYPE_TRANSFER } from "./relation-types.js";
|
|
7
|
+
import { schemaValidationDefaults } from "./schema-validation/defaults.js";
|
|
8
|
+
import { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS } from "./schema-validation/index.js";
|
|
9
|
+
import { SESSION_EVENT_AGENT_GENERATE, SESSION_EVENT_AGENT_REASONING, SESSION_EVENT_ARTIFACT_SAVED, SESSION_EVENT_COMPRESSION, SESSION_EVENT_DELEGATION_RETURNED, SESSION_EVENT_DELEGATION_SENT, SESSION_EVENT_ERROR, SESSION_EVENT_TOOL_CALL, SESSION_EVENT_TOOL_RESULT, SESSION_EVENT_TRANSFER } from "./session-events.js";
|
|
10
|
+
import { FIELD_CONTEXTS, FIELD_DATA_TYPES, OPERATORS, ORDER_DIRECTIONS, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_TYPES, REQUEST_TYPES, SIGNALS, buildFilterExpression } from "./signoz-queries.js";
|
|
11
|
+
import { DELEGATE_TOOL_PREFIX, LOAD_SKILL_TOOL, SAVE_TOOL_RESULT_TOOL, TRANSFER_TOOL_PREFIX } from "./tool-names.js";
|
|
12
|
+
import { APPROVAL_NEEDED_EVENT, APPROVAL_RESOLVED_EVENT, DURABLE_APPROVAL_ARTIFACT_TYPE, TOOL_APPROVAL_HOOK_PREFIX } from "./workflow.js";
|
|
13
|
+
import { ALLOWED_IMAGE_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeMimeType } from "./allowed-file-formats.js";
|
|
14
|
+
export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, AGENT_IDS, AI_OPERATIONS, AI_TOOL_TYPES, ALLOWED_IMAGE_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, ANTHROPIC_MODELS, APPROVAL_NEEDED_EVENT, APPROVAL_RESOLVED_EVENT, AnthropicModel, BreakdownComponentDef, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, ContextBreakdown, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, DELEGATE_TOOL_PREFIX, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DURABLE_APPROVAL_ARTIFACT_TYPE, FIELD_CONTEXTS, FIELD_DATA_TYPES, GATEWAY_ROUTABLE_PROVIDERS_SET, GENERATION_TYPES, GOOGLE_MODELS, GoogleModel, LOAD_SKILL_TOOL, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, ModelName, OPENAI_MODELS, OPERATORS, ORDER_DIRECTIONS, OpenAIModel, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_TYPES, RELATION_TYPE_DELEGATE, RELATION_TYPE_TRANSFER, REQUEST_TYPES, SAVE_TOOL_RESULT_TOOL, SESSION_EVENT_AGENT_GENERATE, SESSION_EVENT_AGENT_REASONING, SESSION_EVENT_ARTIFACT_SAVED, SESSION_EVENT_COMPRESSION, SESSION_EVENT_DELEGATION_RETURNED, SESSION_EVENT_DELEGATION_SENT, SESSION_EVENT_ERROR, SESSION_EVENT_TOOL_CALL, SESSION_EVENT_TOOL_RESULT, SESSION_EVENT_TRANSFER, SIGNALS, SPAN_KEYS, SPAN_NAMES, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, TOOL_APPROVAL_HOOK_PREFIX, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TOOL_PREFIX, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, USAGE_GENERATION_TYPES, V1_BREAKDOWN_SCHEMA, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, buildFilterExpression, calculateBreakdownTotal, createEmptyBreakdown, executionLimitsSharedDefaults, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeMimeType, parseContextBreakdownFromSpan, schemaValidationDefaults };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { schemaValidationDefaults } from "./schema-validation/defaults.js";
|
|
2
|
+
import { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AI_OPERATIONS, AI_TOOL_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, GENERATION_TYPES, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, USAGE_GENERATION_TYPES } from "./otel-attributes.js";
|
|
3
|
+
import { CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, V1_BREAKDOWN_SCHEMA, calculateBreakdownTotal, createEmptyBreakdown, parseContextBreakdownFromSpan } from "./context-breakdown.js";
|
|
4
|
+
import { ANTHROPIC_MODELS, GATEWAY_ROUTABLE_PROVIDERS_SET, GOOGLE_MODELS, OPENAI_MODELS } from "./models.js";
|
|
5
|
+
import { FIELD_CONTEXTS, FIELD_DATA_TYPES, OPERATORS, ORDER_DIRECTIONS, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_TYPES, REQUEST_TYPES, SIGNALS, buildFilterExpression } from "./signoz-queries.js";
|
|
6
|
+
import { executionLimitsSharedDefaults } from "./execution-limits-shared/defaults.js";
|
|
7
|
+
import { CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR } from "./execution-limits-shared/index.js";
|
|
8
|
+
import { RELATION_TYPE_DELEGATE, RELATION_TYPE_TRANSFER } from "./relation-types.js";
|
|
9
|
+
import { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS } from "./schema-validation/index.js";
|
|
10
|
+
import { SESSION_EVENT_AGENT_GENERATE, SESSION_EVENT_AGENT_REASONING, SESSION_EVENT_ARTIFACT_SAVED, SESSION_EVENT_COMPRESSION, SESSION_EVENT_DELEGATION_RETURNED, SESSION_EVENT_DELEGATION_SENT, SESSION_EVENT_ERROR, SESSION_EVENT_TOOL_CALL, SESSION_EVENT_TOOL_RESULT, SESSION_EVENT_TRANSFER } from "./session-events.js";
|
|
11
|
+
import { DELEGATE_TOOL_PREFIX, LOAD_SKILL_TOOL, SAVE_TOOL_RESULT_TOOL, TRANSFER_TOOL_PREFIX } from "./tool-names.js";
|
|
12
|
+
import { APPROVAL_NEEDED_EVENT, APPROVAL_RESOLVED_EVENT, DURABLE_APPROVAL_ARTIFACT_TYPE, TOOL_APPROVAL_HOOK_PREFIX } from "./workflow.js";
|
|
13
|
+
import { ALLOWED_IMAGE_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeMimeType } from "./allowed-file-formats.js";
|
|
14
|
+
|
|
15
|
+
export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, AGENT_IDS, AI_OPERATIONS, AI_TOOL_TYPES, ALLOWED_IMAGE_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, ANTHROPIC_MODELS, APPROVAL_NEEDED_EVENT, APPROVAL_RESOLVED_EVENT, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, CONVERSATION_HISTORY_DEFAULT_LIMIT, CONVERSATION_HISTORY_MAX_OUTPUT_TOKENS_DEFAULT, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, DELEGATE_TOOL_PREFIX, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DURABLE_APPROVAL_ARTIFACT_TYPE, FIELD_CONTEXTS, FIELD_DATA_TYPES, GATEWAY_ROUTABLE_PROVIDERS_SET, GENERATION_TYPES, GOOGLE_MODELS, LOAD_SKILL_TOOL, MCP_TOOL_CONNECTION_TIMEOUT_MS, MCP_TOOL_INITIAL_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RECONNECTION_DELAY_MS, MCP_TOOL_MAX_RETRIES, MCP_TOOL_RECONNECTION_DELAY_GROWTH_FACTOR, OPENAI_MODELS, OPERATORS, ORDER_DIRECTIONS, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_TYPES, RELATION_TYPE_DELEGATE, RELATION_TYPE_TRANSFER, REQUEST_TYPES, SAVE_TOOL_RESULT_TOOL, SESSION_EVENT_AGENT_GENERATE, SESSION_EVENT_AGENT_REASONING, SESSION_EVENT_ARTIFACT_SAVED, SESSION_EVENT_COMPRESSION, SESSION_EVENT_DELEGATION_RETURNED, SESSION_EVENT_DELEGATION_SENT, SESSION_EVENT_ERROR, SESSION_EVENT_TOOL_CALL, SESSION_EVENT_TOOL_RESULT, SESSION_EVENT_TRANSFER, SIGNALS, SPAN_KEYS, SPAN_NAMES, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, TOOL_APPROVAL_HOOK_PREFIX, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TOOL_PREFIX, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, USAGE_GENERATION_TYPES, V1_BREAKDOWN_SCHEMA, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS, buildFilterExpression, calculateBreakdownTotal, createEmptyBreakdown, executionLimitsSharedDefaults, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeMimeType, parseContextBreakdownFromSpan, schemaValidationDefaults };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/constants/session-events.d.ts
|
|
2
|
+
declare const SESSION_EVENT_AGENT_GENERATE = "agent_generate";
|
|
3
|
+
declare const SESSION_EVENT_AGENT_REASONING = "agent_reasoning";
|
|
4
|
+
declare const SESSION_EVENT_TRANSFER = "transfer";
|
|
5
|
+
declare const SESSION_EVENT_DELEGATION_SENT = "delegation_sent";
|
|
6
|
+
declare const SESSION_EVENT_DELEGATION_RETURNED = "delegation_returned";
|
|
7
|
+
declare const SESSION_EVENT_ARTIFACT_SAVED = "artifact_saved";
|
|
8
|
+
declare const SESSION_EVENT_TOOL_CALL = "tool_call";
|
|
9
|
+
declare const SESSION_EVENT_TOOL_RESULT = "tool_result";
|
|
10
|
+
declare const SESSION_EVENT_COMPRESSION = "compression";
|
|
11
|
+
declare const SESSION_EVENT_ERROR = "error";
|
|
12
|
+
//#endregion
|
|
13
|
+
export { SESSION_EVENT_AGENT_GENERATE, SESSION_EVENT_AGENT_REASONING, SESSION_EVENT_ARTIFACT_SAVED, SESSION_EVENT_COMPRESSION, SESSION_EVENT_DELEGATION_RETURNED, SESSION_EVENT_DELEGATION_SENT, SESSION_EVENT_ERROR, SESSION_EVENT_TOOL_CALL, SESSION_EVENT_TOOL_RESULT, SESSION_EVENT_TRANSFER };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/constants/session-events.ts
|
|
2
|
+
const SESSION_EVENT_AGENT_GENERATE = "agent_generate";
|
|
3
|
+
const SESSION_EVENT_AGENT_REASONING = "agent_reasoning";
|
|
4
|
+
const SESSION_EVENT_TRANSFER = "transfer";
|
|
5
|
+
const SESSION_EVENT_DELEGATION_SENT = "delegation_sent";
|
|
6
|
+
const SESSION_EVENT_DELEGATION_RETURNED = "delegation_returned";
|
|
7
|
+
const SESSION_EVENT_ARTIFACT_SAVED = "artifact_saved";
|
|
8
|
+
const SESSION_EVENT_TOOL_CALL = "tool_call";
|
|
9
|
+
const SESSION_EVENT_TOOL_RESULT = "tool_result";
|
|
10
|
+
const SESSION_EVENT_COMPRESSION = "compression";
|
|
11
|
+
const SESSION_EVENT_ERROR = "error";
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { SESSION_EVENT_AGENT_GENERATE, SESSION_EVENT_AGENT_REASONING, SESSION_EVENT_ARTIFACT_SAVED, SESSION_EVENT_COMPRESSION, SESSION_EVENT_DELEGATION_RETURNED, SESSION_EVENT_DELEGATION_SENT, SESSION_EVENT_ERROR, SESSION_EVENT_TOOL_CALL, SESSION_EVENT_TOOL_RESULT, SESSION_EVENT_TRANSFER };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/constants/tool-names.d.ts
|
|
2
|
+
declare const DELEGATE_TOOL_PREFIX = "delegate_to_";
|
|
3
|
+
declare const TRANSFER_TOOL_PREFIX = "transfer_to_";
|
|
4
|
+
declare const LOAD_SKILL_TOOL = "load_skill";
|
|
5
|
+
declare const SAVE_TOOL_RESULT_TOOL = "save_tool_result";
|
|
6
|
+
//#endregion
|
|
7
|
+
export { DELEGATE_TOOL_PREFIX, LOAD_SKILL_TOOL, SAVE_TOOL_RESULT_TOOL, TRANSFER_TOOL_PREFIX };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/constants/tool-names.ts
|
|
2
|
+
const DELEGATE_TOOL_PREFIX = "delegate_to_";
|
|
3
|
+
const TRANSFER_TOOL_PREFIX = "transfer_to_";
|
|
4
|
+
const LOAD_SKILL_TOOL = "load_skill";
|
|
5
|
+
const SAVE_TOOL_RESULT_TOOL = "save_tool_result";
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { DELEGATE_TOOL_PREFIX, LOAD_SKILL_TOOL, SAVE_TOOL_RESULT_TOOL, TRANSFER_TOOL_PREFIX };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/constants/workflow.d.ts
|
|
2
|
+
declare const DURABLE_APPROVAL_ARTIFACT_TYPE = "durable-approval-required";
|
|
3
|
+
declare const TOOL_APPROVAL_HOOK_PREFIX = "tool-approval:";
|
|
4
|
+
declare const APPROVAL_NEEDED_EVENT = "approval-needed";
|
|
5
|
+
declare const APPROVAL_RESOLVED_EVENT = "approval-resolved";
|
|
6
|
+
//#endregion
|
|
7
|
+
export { APPROVAL_NEEDED_EVENT, APPROVAL_RESOLVED_EVENT, DURABLE_APPROVAL_ARTIFACT_TYPE, TOOL_APPROVAL_HOOK_PREFIX };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/constants/workflow.ts
|
|
2
|
+
const DURABLE_APPROVAL_ARTIFACT_TYPE = "durable-approval-required";
|
|
3
|
+
const TOOL_APPROVAL_HOOK_PREFIX = "tool-approval:";
|
|
4
|
+
const APPROVAL_NEEDED_EVENT = "approval-needed";
|
|
5
|
+
const APPROVAL_RESOLVED_EVENT = "approval-resolved";
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { APPROVAL_NEEDED_EVENT, APPROVAL_RESOLVED_EVENT, DURABLE_APPROVAL_ARTIFACT_TYPE, TOOL_APPROVAL_HOOK_PREFIX };
|
|
@@ -10,8 +10,8 @@ import { PgColumn } from "drizzle-orm/pg-core";
|
|
|
10
10
|
declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
11
11
|
scopes: AgentScopeConfig;
|
|
12
12
|
}) => Promise<{
|
|
13
|
-
name: string;
|
|
14
13
|
id: string;
|
|
14
|
+
name: string;
|
|
15
15
|
createdAt: string;
|
|
16
16
|
updatedAt: string;
|
|
17
17
|
description: string | null;
|
|
@@ -63,8 +63,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
63
63
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
64
64
|
scopes: AgentScopeConfig;
|
|
65
65
|
}) => Promise<{
|
|
66
|
-
name: string;
|
|
67
66
|
id: string;
|
|
67
|
+
name: string;
|
|
68
68
|
createdAt: string;
|
|
69
69
|
updatedAt: string;
|
|
70
70
|
description: string | null;
|
|
@@ -113,14 +113,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
113
113
|
} | null;
|
|
114
114
|
executionMode: "classic" | "durable";
|
|
115
115
|
defaultSubAgent: {
|
|
116
|
-
name: string;
|
|
117
116
|
id: string;
|
|
117
|
+
name: string;
|
|
118
118
|
createdAt: string;
|
|
119
119
|
updatedAt: string;
|
|
120
120
|
description: string | null;
|
|
121
121
|
tenantId: string;
|
|
122
122
|
projectId: string;
|
|
123
|
-
agentId: string;
|
|
124
123
|
models: {
|
|
125
124
|
base?: {
|
|
126
125
|
model?: string | undefined;
|
|
@@ -146,13 +145,14 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
146
145
|
} | null;
|
|
147
146
|
prompt: string | null;
|
|
148
147
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
148
|
+
agentId: string;
|
|
149
149
|
} | null;
|
|
150
150
|
} | null>;
|
|
151
151
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
152
152
|
scopes: ProjectScopeConfig;
|
|
153
153
|
}) => Promise<{
|
|
154
|
-
name: string;
|
|
155
154
|
id: string;
|
|
155
|
+
name: string;
|
|
156
156
|
createdAt: string;
|
|
157
157
|
updatedAt: string;
|
|
158
158
|
description: string | null;
|
|
@@ -281,8 +281,8 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
281
281
|
projectIds: string[];
|
|
282
282
|
}): Promise<AvailableAgentInfo[]>;
|
|
283
283
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
284
|
-
name: string;
|
|
285
284
|
id: string;
|
|
285
|
+
name: string;
|
|
286
286
|
createdAt: string;
|
|
287
287
|
updatedAt: string;
|
|
288
288
|
description: string | null;
|
|
@@ -9,8 +9,8 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
9
9
|
scopes: ProjectScopeConfig;
|
|
10
10
|
id: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
name: string;
|
|
13
12
|
id: string;
|
|
13
|
+
name: string;
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
16
|
description: string | null;
|
|
@@ -65,8 +65,8 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
68
|
-
name: string;
|
|
69
68
|
id: string;
|
|
69
|
+
name: string;
|
|
70
70
|
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
72
|
description: string | null;
|
|
@@ -145,8 +145,8 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
145
145
|
createdAt: string;
|
|
146
146
|
tenantId: string;
|
|
147
147
|
projectId: string;
|
|
148
|
-
agentId: string;
|
|
149
148
|
subAgentId: string;
|
|
149
|
+
agentId: string;
|
|
150
150
|
artifactComponentId: string;
|
|
151
151
|
}>;
|
|
152
152
|
declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -188,8 +188,8 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
188
188
|
createdAt: string;
|
|
189
189
|
tenantId: string;
|
|
190
190
|
projectId: string;
|
|
191
|
-
agentId: string;
|
|
192
191
|
subAgentId: string;
|
|
192
|
+
agentId: string;
|
|
193
193
|
artifactComponentId: string;
|
|
194
194
|
} | null>;
|
|
195
195
|
/**
|
|
@@ -69,8 +69,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
69
69
|
createdAt: string;
|
|
70
70
|
tenantId: string;
|
|
71
71
|
projectId: string;
|
|
72
|
-
agentId: string;
|
|
73
72
|
subAgentId: string;
|
|
73
|
+
agentId: string;
|
|
74
74
|
dataComponentId: string;
|
|
75
75
|
}>;
|
|
76
76
|
/**
|
|
@@ -111,8 +111,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
111
111
|
createdAt: string;
|
|
112
112
|
tenantId: string;
|
|
113
113
|
projectId: string;
|
|
114
|
-
agentId: string;
|
|
115
114
|
subAgentId: string;
|
|
115
|
+
agentId: string;
|
|
116
116
|
dataComponentId: string;
|
|
117
117
|
} | null>;
|
|
118
118
|
/**
|
|
@@ -53,8 +53,8 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
-
name: string;
|
|
57
56
|
id: string;
|
|
57
|
+
name: string;
|
|
58
58
|
createdAt: string;
|
|
59
59
|
updatedAt: string;
|
|
60
60
|
description: string | null;
|
|
@@ -95,8 +95,8 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
95
95
|
data: FunctionToolApiInsert;
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
|
-
name: string;
|
|
99
98
|
id: string;
|
|
99
|
+
name: string;
|
|
100
100
|
createdAt: string;
|
|
101
101
|
updatedAt: string;
|
|
102
102
|
description: string | null;
|
|
@@ -162,8 +162,8 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
162
162
|
updatedAt: string;
|
|
163
163
|
tenantId: string;
|
|
164
164
|
projectId: string;
|
|
165
|
-
agentId: string;
|
|
166
165
|
subAgentId: string;
|
|
166
|
+
agentId: string;
|
|
167
167
|
functionToolId: string;
|
|
168
168
|
toolPolicies: Record<string, {
|
|
169
169
|
needsApproval?: boolean;
|
|
@@ -227,8 +227,8 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
227
227
|
updatedAt: string;
|
|
228
228
|
tenantId: string;
|
|
229
229
|
projectId: string;
|
|
230
|
-
agentId: string;
|
|
231
230
|
subAgentId: string;
|
|
231
|
+
agentId: string;
|
|
232
232
|
functionToolId: string;
|
|
233
233
|
toolPolicies: Record<string, {
|
|
234
234
|
needsApproval?: boolean;
|
|
@@ -15,15 +15,15 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
15
15
|
scopes: ProjectScopeConfig;
|
|
16
16
|
skillId: string;
|
|
17
17
|
}) => Promise<{
|
|
18
|
-
metadata: Record<string, string> | null;
|
|
19
|
-
name: string;
|
|
20
18
|
id: string;
|
|
19
|
+
name: string;
|
|
21
20
|
createdAt: string;
|
|
22
21
|
updatedAt: string;
|
|
22
|
+
metadata: Record<string, string> | null;
|
|
23
23
|
description: string;
|
|
24
|
+
content: string;
|
|
24
25
|
tenantId: string;
|
|
25
26
|
projectId: string;
|
|
26
|
-
content: string;
|
|
27
27
|
} | null>;
|
|
28
28
|
declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
|
|
29
29
|
scopes: ProjectScopeConfig;
|
|
@@ -110,15 +110,15 @@ interface WithTenantIdProjectId {
|
|
|
110
110
|
}
|
|
111
111
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
|
|
112
112
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
|
|
113
|
-
metadata: Record<string, string> | null;
|
|
114
|
-
name: string;
|
|
115
113
|
id: string;
|
|
114
|
+
name: string;
|
|
116
115
|
createdAt: string;
|
|
117
116
|
updatedAt: string;
|
|
117
|
+
metadata: Record<string, string> | null;
|
|
118
118
|
description: string;
|
|
119
|
+
content: string;
|
|
119
120
|
tenantId: string;
|
|
120
121
|
projectId: string;
|
|
121
|
-
content: string;
|
|
122
122
|
}>;
|
|
123
123
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
124
124
|
scopes: ProjectScopeConfig;
|
|
@@ -144,8 +144,8 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
144
144
|
updatedAt: string;
|
|
145
145
|
tenantId: string;
|
|
146
146
|
projectId: string;
|
|
147
|
-
agentId: string;
|
|
148
147
|
subAgentId: string;
|
|
148
|
+
agentId: string;
|
|
149
149
|
index: number;
|
|
150
150
|
alwaysLoaded: boolean;
|
|
151
151
|
skillId: string;
|
|
@@ -9,14 +9,14 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
headers: Record<string, string> | null;
|
|
13
12
|
id: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
16
15
|
tenantId: string;
|
|
17
16
|
projectId: string;
|
|
18
|
-
agentId: string;
|
|
19
17
|
subAgentId: string;
|
|
18
|
+
agentId: string;
|
|
19
|
+
headers: Record<string, string> | null;
|
|
20
20
|
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -44,27 +44,27 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
|
|
|
44
44
|
declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
headers: Record<string, string> | null;
|
|
48
47
|
id: string;
|
|
49
48
|
createdAt: string;
|
|
50
49
|
updatedAt: string;
|
|
51
50
|
tenantId: string;
|
|
52
51
|
projectId: string;
|
|
53
|
-
agentId: string;
|
|
54
52
|
subAgentId: string;
|
|
53
|
+
agentId: string;
|
|
54
|
+
headers: Record<string, string> | null;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
headers: Record<string, string> | null;
|
|
61
60
|
id: string;
|
|
62
61
|
createdAt: string;
|
|
63
62
|
updatedAt: string;
|
|
64
63
|
tenantId: string;
|
|
65
64
|
projectId: string;
|
|
66
|
-
agentId: string;
|
|
67
65
|
subAgentId: string;
|
|
66
|
+
agentId: string;
|
|
67
|
+
headers: Record<string, string> | null;
|
|
68
68
|
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -186,14 +186,14 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
186
186
|
headers?: Record<string, string> | null;
|
|
187
187
|
};
|
|
188
188
|
}) => Promise<{
|
|
189
|
-
headers: Record<string, string> | null;
|
|
190
189
|
id: string;
|
|
191
190
|
createdAt: string;
|
|
192
191
|
updatedAt: string;
|
|
193
192
|
tenantId: string;
|
|
194
193
|
projectId: string;
|
|
195
|
-
agentId: string;
|
|
196
194
|
subAgentId: string;
|
|
195
|
+
agentId: string;
|
|
196
|
+
headers: Record<string, string> | null;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}>;
|
|
199
199
|
/**
|
|
@@ -203,14 +203,14 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
203
203
|
scopes: SubAgentScopeConfig;
|
|
204
204
|
externalAgentId: string;
|
|
205
205
|
}) => Promise<{
|
|
206
|
-
headers: Record<string, string> | null;
|
|
207
206
|
id: string;
|
|
208
207
|
createdAt: string;
|
|
209
208
|
updatedAt: string;
|
|
210
209
|
tenantId: string;
|
|
211
210
|
projectId: string;
|
|
212
|
-
agentId: string;
|
|
213
211
|
subAgentId: string;
|
|
212
|
+
agentId: string;
|
|
213
|
+
headers: Record<string, string> | null;
|
|
214
214
|
externalAgentId: string;
|
|
215
215
|
} | undefined>;
|
|
216
216
|
/**
|
|
@@ -224,14 +224,14 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
224
224
|
headers?: Record<string, string> | null;
|
|
225
225
|
};
|
|
226
226
|
}) => Promise<{
|
|
227
|
-
headers: Record<string, string> | null;
|
|
228
227
|
id: string;
|
|
229
228
|
createdAt: string;
|
|
230
229
|
updatedAt: string;
|
|
231
230
|
tenantId: string;
|
|
232
231
|
projectId: string;
|
|
233
|
-
agentId: string;
|
|
234
232
|
subAgentId: string;
|
|
233
|
+
agentId: string;
|
|
234
|
+
headers: Record<string, string> | null;
|
|
235
235
|
externalAgentId: string;
|
|
236
236
|
}>;
|
|
237
237
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -204,14 +204,14 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
204
204
|
}> | null;
|
|
205
205
|
};
|
|
206
206
|
}) => Promise<{
|
|
207
|
-
headers: Record<string, string> | null;
|
|
208
207
|
id: string;
|
|
209
208
|
createdAt: string;
|
|
210
209
|
updatedAt: string;
|
|
211
210
|
tenantId: string;
|
|
212
211
|
projectId: string;
|
|
213
|
-
agentId: string;
|
|
214
212
|
subAgentId: string;
|
|
213
|
+
agentId: string;
|
|
214
|
+
headers: Record<string, string> | null;
|
|
215
215
|
toolId: string;
|
|
216
216
|
toolPolicies: Record<string, {
|
|
217
217
|
needsApproval?: boolean;
|
|
@@ -248,14 +248,14 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
248
248
|
scopes: SubAgentScopeConfig;
|
|
249
249
|
relationId: string;
|
|
250
250
|
}) => Promise<{
|
|
251
|
-
headers: Record<string, string> | null;
|
|
252
251
|
id: string;
|
|
253
252
|
createdAt: string;
|
|
254
253
|
updatedAt: string;
|
|
255
254
|
tenantId: string;
|
|
256
255
|
projectId: string;
|
|
257
|
-
agentId: string;
|
|
258
256
|
subAgentId: string;
|
|
257
|
+
agentId: string;
|
|
258
|
+
headers: Record<string, string> | null;
|
|
259
259
|
toolId: string;
|
|
260
260
|
toolPolicies: Record<string, {
|
|
261
261
|
needsApproval?: boolean;
|
|
@@ -9,14 +9,14 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
9
9
|
scopes: SubAgentScopeConfig;
|
|
10
10
|
relationId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
|
-
headers: Record<string, string> | null;
|
|
13
12
|
id: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
16
15
|
tenantId: string;
|
|
17
16
|
projectId: string;
|
|
18
|
-
agentId: string;
|
|
19
17
|
subAgentId: string;
|
|
18
|
+
agentId: string;
|
|
19
|
+
headers: Record<string, string> | null;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -44,27 +44,27 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
|
|
|
44
44
|
declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
45
45
|
scopes: SubAgentScopeConfig;
|
|
46
46
|
}) => Promise<{
|
|
47
|
-
headers: Record<string, string> | null;
|
|
48
47
|
id: string;
|
|
49
48
|
createdAt: string;
|
|
50
49
|
updatedAt: string;
|
|
51
50
|
tenantId: string;
|
|
52
51
|
projectId: string;
|
|
53
|
-
agentId: string;
|
|
54
52
|
subAgentId: string;
|
|
53
|
+
agentId: string;
|
|
54
|
+
headers: Record<string, string> | null;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
58
58
|
scopes: AgentScopeConfig;
|
|
59
59
|
}) => Promise<{
|
|
60
|
-
headers: Record<string, string> | null;
|
|
61
60
|
id: string;
|
|
62
61
|
createdAt: string;
|
|
63
62
|
updatedAt: string;
|
|
64
63
|
tenantId: string;
|
|
65
64
|
projectId: string;
|
|
66
|
-
agentId: string;
|
|
67
65
|
subAgentId: string;
|
|
66
|
+
agentId: string;
|
|
67
|
+
headers: Record<string, string> | null;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -222,14 +222,14 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
222
222
|
headers?: Record<string, string> | null;
|
|
223
223
|
};
|
|
224
224
|
}) => Promise<{
|
|
225
|
-
headers: Record<string, string> | null;
|
|
226
225
|
id: string;
|
|
227
226
|
createdAt: string;
|
|
228
227
|
updatedAt: string;
|
|
229
228
|
tenantId: string;
|
|
230
229
|
projectId: string;
|
|
231
|
-
agentId: string;
|
|
232
230
|
subAgentId: string;
|
|
231
|
+
agentId: string;
|
|
232
|
+
headers: Record<string, string> | null;
|
|
233
233
|
targetAgentId: string;
|
|
234
234
|
}>;
|
|
235
235
|
/**
|
|
@@ -239,14 +239,14 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
239
239
|
scopes: SubAgentScopeConfig;
|
|
240
240
|
targetAgentId: string;
|
|
241
241
|
}) => Promise<{
|
|
242
|
-
headers: Record<string, string> | null;
|
|
243
242
|
id: string;
|
|
244
243
|
createdAt: string;
|
|
245
244
|
updatedAt: string;
|
|
246
245
|
tenantId: string;
|
|
247
246
|
projectId: string;
|
|
248
|
-
agentId: string;
|
|
249
247
|
subAgentId: string;
|
|
248
|
+
agentId: string;
|
|
249
|
+
headers: Record<string, string> | null;
|
|
250
250
|
targetAgentId: string;
|
|
251
251
|
} | undefined>;
|
|
252
252
|
/**
|
|
@@ -260,14 +260,14 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
260
260
|
headers?: Record<string, string> | null;
|
|
261
261
|
};
|
|
262
262
|
}) => Promise<{
|
|
263
|
-
headers: Record<string, string> | null;
|
|
264
263
|
id: string;
|
|
265
264
|
createdAt: string;
|
|
266
265
|
updatedAt: string;
|
|
267
266
|
tenantId: string;
|
|
268
267
|
projectId: string;
|
|
269
|
-
agentId: string;
|
|
270
268
|
subAgentId: string;
|
|
269
|
+
agentId: string;
|
|
270
|
+
headers: Record<string, string> | null;
|
|
271
271
|
targetAgentId: string;
|
|
272
272
|
}>;
|
|
273
273
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|