@inkeep/agents-core 0.65.1 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.js +25 -1
- 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/index.d.ts +3 -3
- package/dist/data-access/manage/agentFull.d.ts +7 -10
- package/dist/data-access/manage/agentFull.js +26 -28
- package/dist/data-access/manage/agents.d.ts +47 -47
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.js +1 -1
- package/dist/data-access/manage/functionTools.d.ts +16 -16
- package/dist/data-access/manage/projectFull.d.ts +6 -8
- package/dist/data-access/manage/projectFull.js +18 -18
- package/dist/data-access/manage/skills.d.ts +12 -12
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +21 -21
- package/dist/data-access/manage/tools.d.ts +24 -24
- package/dist/data-access/manage/triggers.d.ts +4 -4
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +10 -10
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/feedback.d.ts +4 -4
- package/dist/data-access/runtime/messages.d.ts +12 -12
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/dolt-safe-jsonb.d.ts +2 -2
- package/dist/db/manage/manage-client.js +15 -3
- package/dist/db/manage/manage-schema.d.ts +358 -358
- package/dist/db/runtime/runtime-client.js +7 -1
- package/dist/db/runtime/runtime-schema.d.ts +373 -373
- package/dist/dolt/merge.js +7 -9
- package/dist/dolt/ref-middleware.js +2 -2
- package/dist/dolt/ref-scope.js +9 -3
- package/dist/index.d.ts +9 -5
- package/dist/index.js +7 -3
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +77 -0
- package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +1356 -0
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +1119 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +982 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/utils.js +3 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +1821 -0
- package/dist/node_modules/.pnpm/@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js +171 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +124 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js +1334 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +105 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js +118 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js +455 -0
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js +168 -0
- package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js +3087 -0
- package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js +384 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +11 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +16 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +11 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +15 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +13 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +34 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +122 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +39 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +99 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +25 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +14 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +21 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +6 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +12 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +18 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +25 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +8 -0
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +30 -0
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js +939 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +81 -0
- package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.js +51 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +81 -0
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js +9 -0
- package/dist/node_modules/.pnpm/tinyspy@4.0.4/node_modules/tinyspy/dist/index.js +125 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +8 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +50 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +48 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@edge-runtime_vm@3.2.0_@types_debug@4.1.12_@types_node@20.19.27_jiti@2.6.1_93023d256ff9ed909ae8f0d436c922a0/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +2613 -0
- package/dist/test-utils/index.d.ts +2 -0
- package/dist/test-utils/index.js +3 -0
- package/dist/test-utils/mocks/index.d.ts +2 -0
- package/dist/test-utils/mocks/index.js +3 -0
- package/dist/test-utils/mocks/logger.d.ts +27 -0
- package/dist/test-utils/mocks/logger.js +48 -0
- package/dist/utils/error.d.ts +58 -52
- package/dist/utils/error.js +63 -21
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +3 -3
- package/dist/utils/jwt-helpers.js +1 -1
- package/dist/utils/logger.d.ts +21 -2
- package/dist/utils/logger.js +67 -11
- package/dist/utils/third-party-mcp-servers/composio-client.js +10 -10
- package/dist/utils/tracer-factory.js +1 -1
- package/dist/validation/schemas/skills.d.ts +45 -45
- package/dist/validation/schemas.d.ts +2289 -2289
- package/drizzle/runtime/meta/_journal.json +2 -2
- package/package.json +5 -1
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
3
9
|
var __exportAll = (all, symbols) => {
|
|
4
10
|
let target = {};
|
|
5
11
|
for (var name in all) {
|
|
@@ -13,6 +19,24 @@ var __exportAll = (all, symbols) => {
|
|
|
13
19
|
}
|
|
14
20
|
return target;
|
|
15
21
|
};
|
|
22
|
+
var __copyProps = (to, from, except, desc) => {
|
|
23
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
24
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
25
|
+
key = keys[i];
|
|
26
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
27
|
+
__defProp(to, key, {
|
|
28
|
+
get: ((k) => from[k]).bind(null, key),
|
|
29
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return to;
|
|
35
|
+
};
|
|
36
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
37
|
+
value: mod,
|
|
38
|
+
enumerable: true
|
|
39
|
+
}) : target, mod));
|
|
16
40
|
|
|
17
41
|
//#endregion
|
|
18
|
-
export { __exportAll };
|
|
42
|
+
export { __commonJSMin, __exportAll, __toESM };
|
|
@@ -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 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AgentsRunDatabaseClient, AgentsRunDatabaseConfig, createAgentsRunDatabaseClient } from "../db/runtime/runtime-client.js";
|
|
2
2
|
import { AgentsManageDatabaseClient, AgentsManageDatabaseConfig, createAgentManageDatabaseConnection, createAgentsManageDatabaseClient, createAgentsManageDatabasePool } from "../db/manage/manage-client.js";
|
|
3
|
-
import {
|
|
3
|
+
import { createFullAgentServerSide, deleteFullAgent, getFullAgent, getFullAgentWithRelationIds, updateFullAgentServerSide } from "./manage/agentFull.js";
|
|
4
4
|
import { AvailableAgentInfo, createAgent, deleteAgent, fetchComponentRelationships, getAgentById, getAgentSubAgentInfos, getAgentWithDefaultSubAgent, getFullAgentDefinition, getFullAgentDefinitionWithRelationIds, listAgents, listAgentsAcrossProjectMainBranches, listAgentsPaginated, updateAgent, upsertAgent } from "./manage/agents.js";
|
|
5
5
|
import { agentHasArtifactComponents, associateArtifactComponentWithAgent, countArtifactComponents, countArtifactComponentsForAgent, createArtifactComponent, deleteAgentArtifactComponentRelationByAgent, deleteArtifactComponent, getAgentsUsingArtifactComponent, getArtifactComponentById, getArtifactComponentsForAgent, isArtifactComponentAssociatedWithAgent, listArtifactComponents, listArtifactComponentsPaginated, removeArtifactComponentFromAgent, updateArtifactComponent, upsertAgentArtifactComponentRelation, upsertArtifactComponent } from "./manage/artifactComponents.js";
|
|
6
6
|
import { listAgentIdsByProject, listContextConfigIdsByProject, listToolIdsByProject } from "./manage/audit-queries.js";
|
|
@@ -11,7 +11,7 @@ import { createAgentDatasetRelation, createAgentEvaluatorRelation, createDataset
|
|
|
11
11
|
import { countExternalAgents, createExternalAgent, deleteExternalAgent, externalAgentExists, externalAgentUrlExists, getExternalAgent, getExternalAgentByUrl, listExternalAgents, listExternalAgentsPaginated, updateExternalAgent, upsertExternalAgent } from "./manage/externalAgents.js";
|
|
12
12
|
import { deleteFunction, getFunction, listFunctions, listFunctionsPaginated, upsertFunction } from "./manage/functions.js";
|
|
13
13
|
import { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation } from "./manage/functionTools.js";
|
|
14
|
-
import {
|
|
14
|
+
import { createFullProjectServerSide, deleteFullProject, getFullProject, getFullProjectWithRelationIds, updateFullProjectServerSide } from "./manage/projectFull.js";
|
|
15
15
|
import { CreateProjectWithBranchParams, CreateProjectWithBranchResult, DeleteProjectAndBranchesParams, ListProjectsWithMetadataResult, ProjectConfigMetadata, ProjectWithMetadata, createProjectMetadataAndBranch, deleteProjectAndBranches, getProjectMainBranchName, getProjectWithBranchInfo, getProjectWithMetadata, listProjectsWithMetadataPaginated } from "./manage/projectLifecycle.js";
|
|
16
16
|
import { countProjects, createProject, deleteProject, getProject, getProjectResourceCounts, listProjects, listProjectsPaginated, projectExists, projectExistsInTable, projectHasResources, updateProject } from "./manage/projects.js";
|
|
17
17
|
import { createSkill, createSkillFileById, deleteSkill, deleteSkillFileById, deleteSubAgentSkill, getSkillById, getSkillByIdWithFiles, getSkillFileById, getSkillFilesBySkillIds, getSkillsForSubAgents, listSkills, listSkillsWithFiles, updateSkill, updateSkillFileById, upsertSkill, upsertSubAgentSkill } from "./manage/skills.js";
|
|
@@ -49,4 +49,4 @@ import { getOrganizationMemberByEmail, getOrganizationMemberByUserId, getUserByE
|
|
|
49
49
|
import { WorkAppSlackChannelAgentConfigInsert, WorkAppSlackChannelAgentConfigSelect, WorkAppSlackUserMappingInsert, WorkAppSlackUserMappingSelect, WorkAppSlackWorkspaceInsert, WorkAppSlackWorkspaceSelect, clearDevConfigWorkspaceDefaultsByAgent, clearDevConfigWorkspaceDefaultsByProject, clearWorkspaceDefaultsByAgent, clearWorkspaceDefaultsByProject, createWorkAppSlackChannelAgentConfig, createWorkAppSlackUserMapping, createWorkAppSlackWorkspace, deleteAllWorkAppSlackChannelAgentConfigsByTeam, deleteAllWorkAppSlackUserMappingsByTeam, deleteWorkAppSlackChannelAgentConfig, deleteWorkAppSlackChannelAgentConfigsByAgent, deleteWorkAppSlackChannelAgentConfigsByProject, deleteWorkAppSlackUserMapping, deleteWorkAppSlackWorkspace, deleteWorkAppSlackWorkspaceByNangoConnectionId, findWorkAppSlackChannelAgentConfig, findWorkAppSlackUserMapping, findWorkAppSlackUserMappingByInkeepUserId, findWorkAppSlackUserMappingBySlackUser, findWorkAppSlackWorkspaceByNangoConnectionId, findWorkAppSlackWorkspaceBySlackTeamId, findWorkAppSlackWorkspaceByTeamId, listWorkAppSlackChannelAgentConfigsByTeam, listWorkAppSlackUserMappingsByTeam, listWorkAppSlackWorkspacesByTenant, updateWorkAppSlackWorkspace, upsertWorkAppSlackChannelAgentConfig } from "./runtime/workAppSlack.js";
|
|
50
50
|
import { createWorkflowExecution, getWorkflowExecution, getWorkflowExecutionByConversation, updateWorkflowExecutionStatus } from "./runtime/workflowExecutions.js";
|
|
51
51
|
import { createValidatedDataAccess, validateProjectExists, withProjectValidation } from "./validation.js";
|
|
52
|
-
export { AgentLogger, AgentsManageDatabaseClient, AgentsManageDatabaseConfig, AgentsRunDatabaseClient, AgentsRunDatabaseConfig, AvailableAgentInfo, CascadeDeleteResult, CreateProjectWithBranchParams, CreateProjectWithBranchResult, CredentialReferenceWithResources, DeleteProjectAndBranchesParams, ListProjectsWithMetadataResult, MethodOption, OrgAuthInfo, ProjectConfigMetadata, ProjectGitHubAccessCascadeDeleteResult, ProjectLogger, ProjectMetadataPaginatedResult, ProjectWithMetadata, SSOProviderLookupResult, ScheduledTriggerRunInfo, SlackMcpToolAccessConfig, SubAgentIsDefaultError, ToolCascadeDeleteResult, UpsertUserProfileData, UserProfile, UserProviderInfo, WorkAppGitHubAccessMode, WorkAppSlackChannelAgentConfigInsert, WorkAppSlackChannelAgentConfigSelect, WorkAppSlackUserMappingInsert, WorkAppSlackUserMappingSelect, WorkAppSlackWorkspaceInsert, WorkAppSlackWorkspaceSelect, addConversationIdToInvocation, addFunctionToolToSubAgent, addLedgerArtifacts, addRepositories, addToolToAgent, addUserToOrganization, advanceScheduledTriggerNextRunAt, agentHasArtifactComponents, allowedMethodsToMethodOptions, associateArtifactComponentWithAgent, associateDataComponentWithAgent, associateFunctionToolWithSubAgent, cancelPastPendingInvocationsForTrigger, cancelPendingInvocationsForTrigger, cascadeDeleteByAgent, cascadeDeleteByBranch, cascadeDeleteByContextConfig, cascadeDeleteByProject, cascadeDeleteBySubAgent, cascadeDeleteByTool, cascadeDeleteGitHubAccessByProject, checkProjectRepositoryAccess, cleanupExpiredStreamChunks, cleanupTenantCache, clearAppDefaultsByAgent, clearAppDefaultsByProject, clearContextConfigCache, clearConversationCache, clearDevConfigWorkspaceDefaultsByAgent, clearDevConfigWorkspaceDefaultsByProject, clearMcpToolRepositoryAccess, clearProjectRepositoryAccess, clearSchedulerState, clearWorkspaceDefaultsByAgent, clearWorkspaceDefaultsByProject, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, countProjectsInRuntime, countVisibleMessages, createAgent, createAgentDatasetRelation, createAgentEvaluatorRelation, createAgentManageDatabaseConnection, createAgentToolRelation, createAgentsManageDatabaseClient, createAgentsManageDatabasePool, createAgentsRunDatabaseClient, createApiKey, createApp, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDataset, createDatasetItem, createDatasetItems, createDatasetRun, createDatasetRunConfig, createDatasetRunConfigAgentRelation, createDatasetRunConversationRelation, createDatasetRunConversationRelations, createEvaluationJobConfig, createEvaluationJobConfigEvaluatorRelation, createEvaluationResult, createEvaluationResults, createEvaluationRun, createEvaluationRunConfig, createEvaluationRunConfigEvaluationSuiteConfigRelation, createEvaluationSuiteConfig, createEvaluationSuiteConfigEvaluatorRelation, createEvaluator, createExternalAgent, createFeedback, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInstallation, createInvitationInDb, createMessage, createOrGetConversation, createProject, createProjectMetadata, createProjectMetadataAndBranch, createScheduledTrigger, createScheduledTriggerInvocation, createScheduledTriggerUser, createSkill, createSkillFileById, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTool, createTrigger, createTriggerInvocation, createUserProfileIfNotExists, createValidatedDataAccess, createWorkAppSlackChannelAgentConfig, createWorkAppSlackUserMapping, createWorkAppSlackWorkspace, createWorkflowExecution, dalCountMembersByRoleBucket, dalGetServiceAccountUserId, dalResolveEntitlement, dalSumSeatEntitlements, dbResultToMcpTool, dbResultToMcpToolSkeleton, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentDatasetRelation, deleteAgentEvaluatorRelation, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteAllSlackMcpToolAccessConfigsByTenant, deleteAllWorkAppSlackChannelAgentConfigsByTeam, deleteAllWorkAppSlackUserMappingsByTeam, deleteApiKey, deleteApp, deleteAppForProject, deleteAppForTenant, deleteAppsByProject, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteDataset, deleteDatasetItem, deleteDatasetItemsByDataset, deleteDatasetRun, deleteDatasetRunConfig, deleteDatasetRunConfigAgentRelation, deleteDatasetRunConversationRelation, deleteDatasetRunConversationRelationsByRun, deleteEvaluationJobConfig, deleteEvaluationJobConfigEvaluatorRelation, deleteEvaluationJobConfigEvaluatorRelationsByEvaluator, deleteEvaluationResult, deleteEvaluationResultsByRun, deleteEvaluationRun, deleteEvaluationRunConfig, deleteEvaluationRunConfigEvaluationSuiteConfigRelation, deleteEvaluationSuiteConfig, deleteEvaluationSuiteConfigEvaluatorRelation, deleteEvaluationSuiteConfigEvaluatorRelationsByEvaluator, deleteEvaluator, deleteExternalAgent, deleteFeedback, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteInstallation, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMcpToolAccessMode, deleteMessage, deletePendingInvocationsForTrigger, deleteProject, deleteProjectAccessMode, deleteProjectAndBranches, deleteProjectMetadata, deleteScheduledTrigger, deleteScheduledTriggerUser, deleteScheduledTriggersByRunAsUserId, deleteSkill, deleteSkillFileById, deleteSlackMcpToolAccessConfig, deleteStreamChunks, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteSubAgentSkill, deleteSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelationsByAgent, deleteSubAgentTeamAgentRelationsBySubAgent, deleteTool, deleteTrigger, deleteTriggersByRunAsUserId, deleteWorkAppSlackChannelAgentConfig, deleteWorkAppSlackChannelAgentConfigsByAgent, deleteWorkAppSlackChannelAgentConfigsByProject, deleteWorkAppSlackUserMapping, deleteWorkAppSlackWorkspace, deleteWorkAppSlackWorkspaceByNangoConnectionId, disconnectInstallation, externalAgentExists, externalAgentUrlExists, fetchComponentRelationships, filterConversationsForJob, findDueScheduledTriggersAcrossProjects, findWorkAppSlackChannelAgentConfig, findWorkAppSlackUserMapping, findWorkAppSlackUserMappingByInkeepUserId, findWorkAppSlackUserMappingBySlackUser, findWorkAppSlackWorkspaceByNangoConnectionId, findWorkAppSlackWorkspaceBySlackTeamId, findWorkAppSlackWorkspaceByTeamId, generateAndCreateApiKey, getActiveAgentForConversation, getAgentById, getAgentDatasetRelationsByAgent, getAgentDatasetRelationsByDataset, getAgentEvaluatorRelationsByAgent, getAgentEvaluatorRelationsByEvaluator, getAgentIdsForEvaluators, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getAllowedAuthMethods, getApiKeyById, getApiKeyByPublicId, getAppAuthKeysForProject, getAppById, getAppByIdForProject, getAppByIdForTenant, getArtifactComponentById, getArtifactComponentsForAgent, getAuthLookupForEmail, getCacheEntry, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getDataComponent, getDataComponentsForAgent, getDatasetById, getDatasetItemById, getDatasetRunById, getDatasetRunConfigAgentRelations, getDatasetRunConfigById, getDatasetRunConversationRelationByConversation, getDatasetRunConversationRelations, getEvaluationJobConfigById, getEvaluationJobConfigEvaluatorRelations, getEvaluationResultById, getEvaluationRunById, getEvaluationRunByJobConfigId, getEvaluationRunConfigById, getEvaluationRunConfigEvaluationSuiteConfigRelations, getEvaluationSuiteConfigById, getEvaluationSuiteConfigEvaluatorRelations, getEvaluatorById, getEvaluatorsByIds, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFeedbackById, getFilteredAuthMethodsForEmail, getFullAgent, getFullAgentDefinition, getFullAgentDefinitionWithRelationIds, getFullAgentWithRelationIds, getFullProject, getFullProjectWithRelationIds, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getInstallationByGitHubId, getInstallationById, getInstallationsByTenantId, getLedgerArtifacts, getLedgerArtifactsByContext, getMcpToolAccessMode, getMcpToolById, getMcpToolRepositoryAccess, getMcpToolRepositoryAccessWithDetails, getMessageById, getMessagesByConversation, getMessagesByTask, getOrganizationMemberByEmail, getOrganizationMemberByUserId, getPendingInvitationsByEmail, getProject, getProjectAccessMode, getProjectMainBranchName, getProjectMetadata, getProjectRepositoryAccess, getProjectRepositoryAccessWithDetails, getProjectResourceCounts, getProjectWithBranchInfo, getProjectWithMetadata, getRelatedAgentsForAgent, getRepositoriesByInstallationId, getRepositoriesByTenantId, getRepositoryByFullName, getRepositoryById, getRepositoryCount, getRepositoryCountsByTenantId, getSSOProvidersByDomain, getScheduledTriggerById, getScheduledTriggerInvocationById, getScheduledTriggerInvocationByIdempotencyKey, getScheduledTriggerInvocationStatusSummary, getScheduledTriggerRunInfoBatch, getScheduledTriggerUserCount, getScheduledTriggerUsers, getScheduledTriggerUsersBatch, getSchedulerState, getSkillById, getSkillByIdWithFiles, getSkillFileById, getSkillFilesBySkillIds, getSkillsForSubAgents, getSlackMcpToolAccessConfig, getStreamChunks, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getSubAgentsUsingFunctionTool, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTriggerById, getTriggerIdsWithUser, getTriggerInvocationById, getUserByEmail, getUserById, getUserOrganizationsFromDb, getUserProfile, getUserProvidersFromDb, getUserScopedCredentialReference, getVisibleMessages, getWorkflowExecution, getWorkflowExecutionByConversation, hasApiKey, hasContextConfig, hasCredentialReference, insertStreamChunks, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isFunctionToolAssociatedWithSubAgent, isGithubWorkAppTool, isSlackWorkAppTool, linkDatasetRunToEvaluationJobConfig, listAgentIdsByProject, listAgentRelations, listAgentToolRelations, listAgents, listAgentsAcrossProjectMainBranches, listAgentsPaginated, listApiKeys, listApiKeysByProject, listApiKeysPaginated, listAppsPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextCacheByProject, listContextConfigIdsByProject, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listDatasetItems, listDatasetRunConfigs, listDatasetRuns, listDatasetRunsByConfig, listDatasets, listDatasetsForAgent, listEvaluationJobConfigs, listEvaluationResults, listEvaluationResultsByConversation, listEvaluationResultsByRun, listEvaluationRunConfigs, listEvaluationRunConfigsWithSuiteConfigs, listEvaluationRuns, listEvaluationRunsByJobConfigId, listEvaluationSuiteConfigs, listEvaluators, listEvaluatorsForAgent, listExternalAgents, listExternalAgentsPaginated, listFeedback, listFeedbackByConversation, listFunctionTools, listFunctions, listFunctionsPaginated, listGitHubToolAccessByProject, listGitHubToolAccessModeByProject, listMessages, listOrgEntitlements, listPendingScheduledTriggerInvocations, listProjectScheduledTriggerInvocationsPaginated, listProjects, listProjectsMetadata, listProjectsMetadataPaginated, listProjectsPaginated, listProjectsWithMetadataPaginated, listScheduledTriggerInvocationsByTriggerId, listScheduledTriggerInvocationsPaginated, listScheduledTriggers, listScheduledTriggersPaginated, listSkills, listSkillsWithFiles, listSlackChannelAgentConfigsByProject, listSlackToolAccessConfigByProject, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listToolIdsByProject, listTools, listTriggerInvocationsPaginated, listTriggers, listTriggersPaginated, listUpcomingInvocationsForAgentPaginated, listWorkAppSlackChannelAgentConfigsByTeam, listWorkAppSlackUserMappingsByTeam, listWorkAppSlackWorkspacesByTenant, markScheduledTriggerInvocationCancelled, markScheduledTriggerInvocationCompleted, markScheduledTriggerInvocationFailed, markScheduledTriggerInvocationRunning, markStreamComplete, projectExists, projectExistsInTable, projectHasResources, projectsMetadataExists, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeFunctionToolFromSubAgent, removeRepositories, removeToolFromAgent, removeUserFromProjectScheduledTriggers, resetCancelledInvocationToPending, resolveSlackUserContext, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setMcpToolAccessMode, setMcpToolRepositoryAccess, setProjectAccessMode, setProjectRepositoryAccess, setScheduledTriggerUsers, setSlackMcpToolAccessConfig, syncRepositories, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateApp, updateAppAuthKeysForProject, updateAppForProject, updateAppForTenant, updateAppLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveSubAgent, updateCredentialReference, updateDataComponent, updateDataset, updateDatasetItem, updateDatasetRunConfig, updateEvaluationResult, updateEvaluationRun, updateEvaluationRunConfig, updateEvaluationSuiteConfig, updateEvaluator, updateExternalAgent, updateFeedback, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateInstallationStatus, updateInstallationStatusByGitHubId, updateLedgerArtifactParts, updateMessage, updateProject, updateScheduledTrigger, updateScheduledTriggerInvocationStatus, updateSkill, updateSkillFileById, updateSlackMcpToolAccessChannelIds, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentFunctionToolRelation, updateSubAgentTeamAgentRelation, updateTask, updateTool, updateTrigger, updateTriggerInvocationStatus, updateWorkAppSlackWorkspace, updateWorkflowExecutionStatus, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertOrganization, upsertScheduledTrigger, upsertSchedulerState, upsertSkill, upsertSubAgent, upsertSubAgentExternalAgentRelation, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentSkill, upsertSubAgentTeamAgentRelation, upsertSubAgentToolRelation, upsertTool, upsertTrigger, upsertUserProfile, upsertWorkAppSlackChannelAgentConfig, validateAndGetApiKey, validateProjectExists, validateRepositoryOwnership, validateSubAgent, withProjectValidation };
|
|
52
|
+
export { AgentsManageDatabaseClient, AgentsManageDatabaseConfig, AgentsRunDatabaseClient, AgentsRunDatabaseConfig, AvailableAgentInfo, CascadeDeleteResult, CreateProjectWithBranchParams, CreateProjectWithBranchResult, CredentialReferenceWithResources, DeleteProjectAndBranchesParams, ListProjectsWithMetadataResult, MethodOption, OrgAuthInfo, ProjectConfigMetadata, ProjectGitHubAccessCascadeDeleteResult, ProjectMetadataPaginatedResult, ProjectWithMetadata, SSOProviderLookupResult, ScheduledTriggerRunInfo, SlackMcpToolAccessConfig, SubAgentIsDefaultError, ToolCascadeDeleteResult, UpsertUserProfileData, UserProfile, UserProviderInfo, WorkAppGitHubAccessMode, WorkAppSlackChannelAgentConfigInsert, WorkAppSlackChannelAgentConfigSelect, WorkAppSlackUserMappingInsert, WorkAppSlackUserMappingSelect, WorkAppSlackWorkspaceInsert, WorkAppSlackWorkspaceSelect, addConversationIdToInvocation, addFunctionToolToSubAgent, addLedgerArtifacts, addRepositories, addToolToAgent, addUserToOrganization, advanceScheduledTriggerNextRunAt, agentHasArtifactComponents, allowedMethodsToMethodOptions, associateArtifactComponentWithAgent, associateDataComponentWithAgent, associateFunctionToolWithSubAgent, cancelPastPendingInvocationsForTrigger, cancelPendingInvocationsForTrigger, cascadeDeleteByAgent, cascadeDeleteByBranch, cascadeDeleteByContextConfig, cascadeDeleteByProject, cascadeDeleteBySubAgent, cascadeDeleteByTool, cascadeDeleteGitHubAccessByProject, checkProjectRepositoryAccess, cleanupExpiredStreamChunks, cleanupTenantCache, clearAppDefaultsByAgent, clearAppDefaultsByProject, clearContextConfigCache, clearConversationCache, clearDevConfigWorkspaceDefaultsByAgent, clearDevConfigWorkspaceDefaultsByProject, clearMcpToolRepositoryAccess, clearProjectRepositoryAccess, clearSchedulerState, clearWorkspaceDefaultsByAgent, clearWorkspaceDefaultsByProject, countApiKeys, countArtifactComponents, countArtifactComponentsForAgent, countContextConfigs, countCredentialReferences, countDataComponents, countExternalAgents, countLedgerArtifactsByTask, countMessagesByConversation, countProjects, countProjectsInRuntime, countVisibleMessages, createAgent, createAgentDatasetRelation, createAgentEvaluatorRelation, createAgentManageDatabaseConnection, createAgentToolRelation, createAgentsManageDatabaseClient, createAgentsManageDatabasePool, createAgentsRunDatabaseClient, createApiKey, createApp, createArtifactComponent, createContextConfig, createConversation, createCredentialReference, createDataComponent, createDataset, createDatasetItem, createDatasetItems, createDatasetRun, createDatasetRunConfig, createDatasetRunConfigAgentRelation, createDatasetRunConversationRelation, createDatasetRunConversationRelations, createEvaluationJobConfig, createEvaluationJobConfigEvaluatorRelation, createEvaluationResult, createEvaluationResults, createEvaluationRun, createEvaluationRunConfig, createEvaluationRunConfigEvaluationSuiteConfigRelation, createEvaluationSuiteConfig, createEvaluationSuiteConfigEvaluatorRelation, createEvaluator, createExternalAgent, createFeedback, createFullAgentServerSide, createFullProjectServerSide, createFunctionTool, createInstallation, createInvitationInDb, createMessage, createOrGetConversation, createProject, createProjectMetadata, createProjectMetadataAndBranch, createScheduledTrigger, createScheduledTriggerInvocation, createScheduledTriggerUser, createSkill, createSkillFileById, createSubAgent, createSubAgentExternalAgentRelation, createSubAgentRelation, createSubAgentTeamAgentRelation, createTask, createTool, createTrigger, createTriggerInvocation, createUserProfileIfNotExists, createValidatedDataAccess, createWorkAppSlackChannelAgentConfig, createWorkAppSlackUserMapping, createWorkAppSlackWorkspace, createWorkflowExecution, dalCountMembersByRoleBucket, dalGetServiceAccountUserId, dalResolveEntitlement, dalSumSeatEntitlements, dbResultToMcpTool, dbResultToMcpToolSkeleton, deleteAgent, deleteAgentArtifactComponentRelationByAgent, deleteAgentDataComponentRelationByAgent, deleteAgentDatasetRelation, deleteAgentEvaluatorRelation, deleteAgentRelationsByAgent, deleteAgentToolRelation, deleteAgentToolRelationByAgent, deleteAllSlackMcpToolAccessConfigsByTenant, deleteAllWorkAppSlackChannelAgentConfigsByTeam, deleteAllWorkAppSlackUserMappingsByTeam, deleteApiKey, deleteApp, deleteAppForProject, deleteAppForTenant, deleteAppsByProject, deleteArtifactComponent, deleteContextConfig, deleteConversation, deleteCredentialReference, deleteDataComponent, deleteDataset, deleteDatasetItem, deleteDatasetItemsByDataset, deleteDatasetRun, deleteDatasetRunConfig, deleteDatasetRunConfigAgentRelation, deleteDatasetRunConversationRelation, deleteDatasetRunConversationRelationsByRun, deleteEvaluationJobConfig, deleteEvaluationJobConfigEvaluatorRelation, deleteEvaluationJobConfigEvaluatorRelationsByEvaluator, deleteEvaluationResult, deleteEvaluationResultsByRun, deleteEvaluationRun, deleteEvaluationRunConfig, deleteEvaluationRunConfigEvaluationSuiteConfigRelation, deleteEvaluationSuiteConfig, deleteEvaluationSuiteConfigEvaluatorRelation, deleteEvaluationSuiteConfigEvaluatorRelationsByEvaluator, deleteEvaluator, deleteExternalAgent, deleteFeedback, deleteFullAgent, deleteFullProject, deleteFunction, deleteFunctionTool, deleteInstallation, deleteLedgerArtifactsByContext, deleteLedgerArtifactsByTask, deleteMcpToolAccessMode, deleteMessage, deletePendingInvocationsForTrigger, deleteProject, deleteProjectAccessMode, deleteProjectAndBranches, deleteProjectMetadata, deleteScheduledTrigger, deleteScheduledTriggerUser, deleteScheduledTriggersByRunAsUserId, deleteSkill, deleteSkillFileById, deleteSlackMcpToolAccessConfig, deleteStreamChunks, deleteSubAgent, deleteSubAgentExternalAgentRelation, deleteSubAgentExternalAgentRelationsByAgent, deleteSubAgentExternalAgentRelationsBySubAgent, deleteSubAgentRelation, deleteSubAgentSkill, deleteSubAgentTeamAgentRelation, deleteSubAgentTeamAgentRelationsByAgent, deleteSubAgentTeamAgentRelationsBySubAgent, deleteTool, deleteTrigger, deleteTriggersByRunAsUserId, deleteWorkAppSlackChannelAgentConfig, deleteWorkAppSlackChannelAgentConfigsByAgent, deleteWorkAppSlackChannelAgentConfigsByProject, deleteWorkAppSlackUserMapping, deleteWorkAppSlackWorkspace, deleteWorkAppSlackWorkspaceByNangoConnectionId, disconnectInstallation, externalAgentExists, externalAgentUrlExists, fetchComponentRelationships, filterConversationsForJob, findDueScheduledTriggersAcrossProjects, findWorkAppSlackChannelAgentConfig, findWorkAppSlackUserMapping, findWorkAppSlackUserMappingByInkeepUserId, findWorkAppSlackUserMappingBySlackUser, findWorkAppSlackWorkspaceByNangoConnectionId, findWorkAppSlackWorkspaceBySlackTeamId, findWorkAppSlackWorkspaceByTeamId, generateAndCreateApiKey, getActiveAgentForConversation, getAgentById, getAgentDatasetRelationsByAgent, getAgentDatasetRelationsByDataset, getAgentEvaluatorRelationsByAgent, getAgentEvaluatorRelationsByEvaluator, getAgentIdsForEvaluators, getAgentRelationById, getAgentRelationByParams, getAgentRelations, getAgentRelationsByAgent, getAgentRelationsBySource, getAgentSubAgentInfos, getAgentToolRelationByAgent, getAgentToolRelationById, getAgentToolRelationByTool, getAgentWithDefaultSubAgent, getAgentsForTool, getAgentsUsingArtifactComponent, getAgentsUsingDataComponent, getAllowedAuthMethods, getApiKeyById, getApiKeyByPublicId, getAppAuthKeysForProject, getAppById, getAppByIdForProject, getAppByIdForTenant, getArtifactComponentById, getArtifactComponentsForAgent, getAuthLookupForEmail, getCacheEntry, getContextConfigById, getContextConfigCacheEntries, getConversation, getConversationCacheEntries, getConversationHistory, getCredentialReference, getCredentialReferenceById, getCredentialReferenceWithResources, getDataComponent, getDataComponentsForAgent, getDatasetById, getDatasetItemById, getDatasetRunById, getDatasetRunConfigAgentRelations, getDatasetRunConfigById, getDatasetRunConversationRelationByConversation, getDatasetRunConversationRelations, getEvaluationJobConfigById, getEvaluationJobConfigEvaluatorRelations, getEvaluationResultById, getEvaluationRunById, getEvaluationRunByJobConfigId, getEvaluationRunConfigById, getEvaluationRunConfigEvaluationSuiteConfigRelations, getEvaluationSuiteConfigById, getEvaluationSuiteConfigEvaluatorRelations, getEvaluatorById, getEvaluatorsByIds, getExternalAgent, getExternalAgentByUrl, getExternalAgentsForSubAgent, getFeedbackById, getFilteredAuthMethodsForEmail, getFullAgent, getFullAgentDefinition, getFullAgentDefinitionWithRelationIds, getFullAgentWithRelationIds, getFullProject, getFullProjectWithRelationIds, getFunction, getFunctionToolById, getFunctionToolsForSubAgent, getInstallationByGitHubId, getInstallationById, getInstallationsByTenantId, getLedgerArtifacts, getLedgerArtifactsByContext, getMcpToolAccessMode, getMcpToolById, getMcpToolRepositoryAccess, getMcpToolRepositoryAccessWithDetails, getMessageById, getMessagesByConversation, getMessagesByTask, getOrganizationMemberByEmail, getOrganizationMemberByUserId, getPendingInvitationsByEmail, getProject, getProjectAccessMode, getProjectMainBranchName, getProjectMetadata, getProjectRepositoryAccess, getProjectRepositoryAccessWithDetails, getProjectResourceCounts, getProjectWithBranchInfo, getProjectWithMetadata, getRelatedAgentsForAgent, getRepositoriesByInstallationId, getRepositoriesByTenantId, getRepositoryByFullName, getRepositoryById, getRepositoryCount, getRepositoryCountsByTenantId, getSSOProvidersByDomain, getScheduledTriggerById, getScheduledTriggerInvocationById, getScheduledTriggerInvocationByIdempotencyKey, getScheduledTriggerInvocationStatusSummary, getScheduledTriggerRunInfoBatch, getScheduledTriggerUserCount, getScheduledTriggerUsers, getScheduledTriggerUsersBatch, getSchedulerState, getSkillById, getSkillByIdWithFiles, getSkillFileById, getSkillFilesBySkillIds, getSkillsForSubAgents, getSlackMcpToolAccessConfig, getStreamChunks, getSubAgentById, getSubAgentExternalAgentRelationById, getSubAgentExternalAgentRelationByParams, getSubAgentExternalAgentRelations, getSubAgentExternalAgentRelationsByAgent, getSubAgentExternalAgentRelationsByExternalAgent, getSubAgentRelationsByTarget, getSubAgentTeamAgentRelationById, getSubAgentTeamAgentRelationByParams, getSubAgentTeamAgentRelations, getSubAgentTeamAgentRelationsByAgent, getSubAgentTeamAgentRelationsByTeamAgent, getSubAgentsByIds, getSubAgentsForExternalAgent, getSubAgentsForTeamAgent, getSubAgentsUsingFunctionTool, getTask, getTeamAgentsForSubAgent, getToolById, getToolsForAgent, getTriggerById, getTriggerIdsWithUser, getTriggerInvocationById, getUserByEmail, getUserById, getUserOrganizationsFromDb, getUserProfile, getUserProvidersFromDb, getUserScopedCredentialReference, getVisibleMessages, getWorkflowExecution, getWorkflowExecutionByConversation, hasApiKey, hasContextConfig, hasCredentialReference, insertStreamChunks, invalidateHeadersCache, invalidateInvocationDefinitionsCache, isArtifactComponentAssociatedWithAgent, isDataComponentAssociatedWithAgent, isFunctionToolAssociatedWithSubAgent, isGithubWorkAppTool, isSlackWorkAppTool, linkDatasetRunToEvaluationJobConfig, listAgentIdsByProject, listAgentRelations, listAgentToolRelations, listAgents, listAgentsAcrossProjectMainBranches, listAgentsPaginated, listApiKeys, listApiKeysByProject, listApiKeysPaginated, listAppsPaginated, listArtifactComponents, listArtifactComponentsPaginated, listContextCacheByProject, listContextConfigIdsByProject, listContextConfigs, listContextConfigsPaginated, listConversations, listCredentialReferences, listCredentialReferencesPaginated, listDataComponents, listDataComponentsPaginated, listDatasetItems, listDatasetRunConfigs, listDatasetRuns, listDatasetRunsByConfig, listDatasets, listDatasetsForAgent, listEvaluationJobConfigs, listEvaluationResults, listEvaluationResultsByConversation, listEvaluationResultsByRun, listEvaluationRunConfigs, listEvaluationRunConfigsWithSuiteConfigs, listEvaluationRuns, listEvaluationRunsByJobConfigId, listEvaluationSuiteConfigs, listEvaluators, listEvaluatorsForAgent, listExternalAgents, listExternalAgentsPaginated, listFeedback, listFeedbackByConversation, listFunctionTools, listFunctions, listFunctionsPaginated, listGitHubToolAccessByProject, listGitHubToolAccessModeByProject, listMessages, listOrgEntitlements, listPendingScheduledTriggerInvocations, listProjectScheduledTriggerInvocationsPaginated, listProjects, listProjectsMetadata, listProjectsMetadataPaginated, listProjectsPaginated, listProjectsWithMetadataPaginated, listScheduledTriggerInvocationsByTriggerId, listScheduledTriggerInvocationsPaginated, listScheduledTriggers, listScheduledTriggersPaginated, listSkills, listSkillsWithFiles, listSlackChannelAgentConfigsByProject, listSlackToolAccessConfigByProject, listSubAgentExternalAgentRelations, listSubAgentTeamAgentRelations, listSubAgents, listSubAgentsPaginated, listTaskIdsByContextId, listToolIdsByProject, listTools, listTriggerInvocationsPaginated, listTriggers, listTriggersPaginated, listUpcomingInvocationsForAgentPaginated, listWorkAppSlackChannelAgentConfigsByTeam, listWorkAppSlackUserMappingsByTeam, listWorkAppSlackWorkspacesByTenant, markScheduledTriggerInvocationCancelled, markScheduledTriggerInvocationCompleted, markScheduledTriggerInvocationFailed, markScheduledTriggerInvocationRunning, markStreamComplete, projectExists, projectExistsInTable, projectHasResources, projectsMetadataExists, removeArtifactComponentFromAgent, removeDataComponentFromAgent, removeFunctionToolFromSubAgent, removeRepositories, removeToolFromAgent, removeUserFromProjectScheduledTriggers, resetCancelledInvocationToPending, resolveSlackUserContext, setActiveAgentForConversation, setActiveAgentForThread, setCacheEntry, setMcpToolAccessMode, setMcpToolRepositoryAccess, setProjectAccessMode, setProjectRepositoryAccess, setScheduledTriggerUsers, setSlackMcpToolAccessConfig, syncRepositories, updateAgent, updateAgentRelation, updateAgentToolRelation, updateApiKey, updateApiKeyLastUsed, updateApp, updateAppAuthKeysForProject, updateAppForProject, updateAppForTenant, updateAppLastUsed, updateArtifactComponent, updateContextConfig, updateConversation, updateConversationActiveSubAgent, updateCredentialReference, updateDataComponent, updateDataset, updateDatasetItem, updateDatasetRunConfig, updateEvaluationResult, updateEvaluationRun, updateEvaluationRunConfig, updateEvaluationSuiteConfig, updateEvaluator, updateExternalAgent, updateFeedback, updateFullAgentServerSide, updateFullProjectServerSide, updateFunctionTool, updateInstallationStatus, updateInstallationStatusByGitHubId, updateLedgerArtifactParts, updateMessage, updateProject, updateScheduledTrigger, updateScheduledTriggerInvocationStatus, updateSkill, updateSkillFileById, updateSlackMcpToolAccessChannelIds, updateSubAgent, updateSubAgentExternalAgentRelation, updateSubAgentFunctionToolRelation, updateSubAgentTeamAgentRelation, updateTask, updateTool, updateTrigger, updateTriggerInvocationStatus, updateWorkAppSlackWorkspace, updateWorkflowExecutionStatus, upsertAgent, upsertAgentArtifactComponentRelation, upsertAgentDataComponentRelation, upsertArtifactComponent, upsertContextConfig, upsertCredentialReference, upsertDataComponent, upsertExternalAgent, upsertFunction, upsertFunctionTool, upsertLedgerArtifact, upsertOrganization, upsertScheduledTrigger, upsertSchedulerState, upsertSkill, upsertSubAgent, upsertSubAgentExternalAgentRelation, upsertSubAgentFunctionToolRelation, upsertSubAgentRelation, upsertSubAgentSkill, upsertSubAgentTeamAgentRelation, upsertSubAgentToolRelation, upsertTool, upsertTrigger, upsertUserProfile, upsertWorkAppSlackChannelAgentConfig, validateAndGetApiKey, validateProjectExists, validateRepositoryOwnership, validateSubAgent, withProjectValidation };
|
|
@@ -4,34 +4,31 @@ import { AgentsManageDatabaseClient } from "../../db/manage/manage-client.js";
|
|
|
4
4
|
import { FullAgentDefinition, FullAgentSelectWithRelationIds } from "../../types/entities.js";
|
|
5
5
|
|
|
6
6
|
//#region src/data-access/manage/agentFull.d.ts
|
|
7
|
-
|
|
8
|
-
info(obj: Record<string, any>, msg?: string): void;
|
|
9
|
-
error(obj: Record<string, any>, msg?: string): void;
|
|
10
|
-
}
|
|
7
|
+
|
|
11
8
|
/**
|
|
12
9
|
* Server-side implementation of createFullAgent that performs actual database operations.
|
|
13
10
|
* This function creates a complete agent with all agents, tools, and relationships.
|
|
14
11
|
*/
|
|
15
|
-
declare const createFullAgentServerSide: (db: AgentsManageDatabaseClient
|
|
12
|
+
declare const createFullAgentServerSide: (db: AgentsManageDatabaseClient) => (scopes: ProjectScopeConfig, agentData: FullAgentDefinition) => Promise<FullAgentDefinition>;
|
|
16
13
|
/**
|
|
17
14
|
* Server-side implementation of updateFullAgent that performs actual database operations.
|
|
18
15
|
* This function updates a complete agent with all agents, tools, and relationships.
|
|
19
16
|
*/
|
|
20
|
-
declare const updateFullAgentServerSide: (db: AgentsManageDatabaseClient
|
|
17
|
+
declare const updateFullAgentServerSide: (db: AgentsManageDatabaseClient) => (scopes: ProjectScopeConfig, agentData: FullAgentDefinition) => Promise<FullAgentDefinition>;
|
|
21
18
|
/**
|
|
22
19
|
* Get a complete agent definition by ID
|
|
23
20
|
*/
|
|
24
|
-
declare const getFullAgent: (db: AgentsManageDatabaseClient
|
|
21
|
+
declare const getFullAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
25
22
|
scopes: AgentScopeConfig;
|
|
26
23
|
}) => Promise<FullAgentDefinition | null>;
|
|
27
|
-
declare const getFullAgentWithRelationIds: (db: AgentsManageDatabaseClient
|
|
24
|
+
declare const getFullAgentWithRelationIds: (db: AgentsManageDatabaseClient) => (params: {
|
|
28
25
|
scopes: AgentScopeConfig;
|
|
29
26
|
}) => Promise<FullAgentSelectWithRelationIds | null>;
|
|
30
27
|
/**
|
|
31
28
|
* Delete a complete agent and cascade to all related entities
|
|
32
29
|
*/
|
|
33
|
-
declare const deleteFullAgent: (db: AgentsManageDatabaseClient
|
|
30
|
+
declare const deleteFullAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
34
31
|
scopes: AgentScopeConfig;
|
|
35
32
|
}) => Promise<boolean>;
|
|
36
33
|
//#endregion
|
|
37
|
-
export {
|
|
34
|
+
export { createFullAgentServerSide, deleteFullAgent, getFullAgent, getFullAgentWithRelationIds, updateFullAgentServerSide };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { projects, subAgentFunctionToolRelations, subAgentSkills, subAgentToolRelations, subAgents } from "../../db/manage/manage-schema.js";
|
|
2
2
|
import { validateAgentStructure, validateAndTypeAgentData } from "../../validation/agentFull.js";
|
|
3
|
+
import { getLogger } from "../../utils/logger.js";
|
|
3
4
|
import { deriveRelationId, generateId } from "../../utils/conversations.js";
|
|
4
5
|
import { agentScopedWhere, subAgentScopedWhere, tenantScopedWhere } from "./scope-helpers.js";
|
|
5
6
|
import { upsertContextConfig } from "./contextConfigs.js";
|
|
@@ -18,11 +19,8 @@ import { associateDataComponentWithAgent, deleteAgentDataComponentRelationByAgen
|
|
|
18
19
|
import { and, eq, inArray, not } from "drizzle-orm";
|
|
19
20
|
|
|
20
21
|
//#region src/data-access/manage/agentFull.ts
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
error: () => {}
|
|
24
|
-
};
|
|
25
|
-
async function syncSubAgentSkills(db, scopes, subAgentsMap, logger) {
|
|
22
|
+
const logger = getLogger("agentFull");
|
|
23
|
+
async function syncSubAgentSkills(db, scopes, subAgentsMap) {
|
|
26
24
|
await db.delete(subAgentSkills).where(agentScopedWhere(subAgentSkills, scopes));
|
|
27
25
|
const skillPromises = [];
|
|
28
26
|
for (const [subAgentId, subAgentData] of Object.entries(subAgentsMap)) {
|
|
@@ -51,7 +49,7 @@ async function syncSubAgentSkills(db, scopes, subAgentsMap, logger) {
|
|
|
51
49
|
/**
|
|
52
50
|
* Apply execution limits inheritance from project to Agents and Sub Agents
|
|
53
51
|
*/
|
|
54
|
-
async function applyExecutionLimitsInheritance(db,
|
|
52
|
+
async function applyExecutionLimitsInheritance(db, scopes, agentData) {
|
|
55
53
|
try {
|
|
56
54
|
const project = await db.query.projects.findFirst({ where: and(tenantScopedWhere(projects, scopes), eq(projects.id, scopes.projectId)) });
|
|
57
55
|
if (!project?.stopWhen) {
|
|
@@ -106,17 +104,17 @@ async function applyExecutionLimitsInheritance(db, logger, scopes, agentData) {
|
|
|
106
104
|
* Server-side implementation of createFullAgent that performs actual database operations.
|
|
107
105
|
* This function creates a complete agent with all agents, tools, and relationships.
|
|
108
106
|
*/
|
|
109
|
-
const createFullAgentServerSide = (db
|
|
107
|
+
const createFullAgentServerSide = (db) => async (scopes, agentData) => {
|
|
110
108
|
const { tenantId, projectId } = scopes;
|
|
111
109
|
const typed = validateAndTypeAgentData(agentData);
|
|
112
110
|
validateAgentStructure(typed);
|
|
113
|
-
await applyExecutionLimitsInheritance(db,
|
|
111
|
+
await applyExecutionLimitsInheritance(db, {
|
|
114
112
|
tenantId,
|
|
115
113
|
projectId
|
|
116
114
|
}, typed);
|
|
117
115
|
try {
|
|
118
|
-
logger.info(
|
|
119
|
-
logger.info(
|
|
116
|
+
logger.info("CredentialReferences are project-scoped - skipping credential reference creation in agent");
|
|
117
|
+
logger.info("MCP Tools are project-scoped - skipping tool creation in agent");
|
|
120
118
|
let finalAgentId;
|
|
121
119
|
try {
|
|
122
120
|
const agentId = typed.id || generateId();
|
|
@@ -193,8 +191,8 @@ const createFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
193
191
|
}, "Failed to update agent with contextConfigId");
|
|
194
192
|
throw error;
|
|
195
193
|
}
|
|
196
|
-
logger.info(
|
|
197
|
-
logger.info(
|
|
194
|
+
logger.info("DataComponents are project-scoped - skipping dataComponent creation in agent");
|
|
195
|
+
logger.info("ArtifactComponents are project-scoped - skipping artifactComponent creation in agent");
|
|
198
196
|
if (typed.functions && Object.keys(typed.functions).length > 0) {
|
|
199
197
|
logger.info({
|
|
200
198
|
agentId: finalAgentId,
|
|
@@ -348,7 +346,7 @@ const createFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
348
346
|
await Promise.all(subAgentPromises);
|
|
349
347
|
const subAgentCount = Object.entries(typed.subAgents).length;
|
|
350
348
|
logger.info({ subAgentCount }, "All sub-agents created/updated successfully");
|
|
351
|
-
logger.info(
|
|
349
|
+
logger.info("External agents are project-scoped and managed at the project level.");
|
|
352
350
|
const agentToolPromises = [];
|
|
353
351
|
for (const [subAgentId, agentData$1] of Object.entries(typed.subAgents)) if (agentData$1.canUse && Array.isArray(agentData$1.canUse)) for (const canUseItem of agentData$1.canUse) agentToolPromises.push((async () => {
|
|
354
352
|
try {
|
|
@@ -443,7 +441,7 @@ const createFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
443
441
|
}
|
|
444
442
|
})());
|
|
445
443
|
await Promise.all(agentDataComponentPromises);
|
|
446
|
-
logger.info(
|
|
444
|
+
logger.info("All agent-data component relations created");
|
|
447
445
|
const agentArtifactComponentPromises = [];
|
|
448
446
|
for (const [subAgentId, agentData$1] of Object.entries(typed.subAgents)) if (agentData$1.artifactComponents) for (const artifactComponentId of agentData$1.artifactComponents) agentArtifactComponentPromises.push((async () => {
|
|
449
447
|
try {
|
|
@@ -473,7 +471,7 @@ const createFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
473
471
|
}
|
|
474
472
|
})());
|
|
475
473
|
await Promise.all(agentArtifactComponentPromises);
|
|
476
|
-
logger.info(
|
|
474
|
+
logger.info("All agent-artifact component relations created");
|
|
477
475
|
const subAgentRelationPromises = [];
|
|
478
476
|
const subAgentExternalAgentRelationPromises = [];
|
|
479
477
|
const subAgentTeamAgentRelationPromises = [];
|
|
@@ -602,7 +600,7 @@ const createFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
602
600
|
tenantId,
|
|
603
601
|
projectId,
|
|
604
602
|
agentId: finalAgentId
|
|
605
|
-
}, typed.subAgents
|
|
603
|
+
}, typed.subAgents);
|
|
606
604
|
logger.info({ subAgentRelationCount: subAgentRelationPromises.length }, "All sub-agent relations created");
|
|
607
605
|
logger.info({ subAgentExternalAgentRelationCount: subAgentExternalAgentRelationPromises.length }, "All sub-agent external agent relations created");
|
|
608
606
|
logger.info({ subAgentTeamAgentRelationCount: subAgentTeamAgentRelationPromises.length }, "All sub-agent team agent relations created");
|
|
@@ -631,7 +629,7 @@ const createFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
631
629
|
* Server-side implementation of updateFullAgent that performs actual database operations.
|
|
632
630
|
* This function updates a complete agent with all agents, tools, and relationships.
|
|
633
631
|
*/
|
|
634
|
-
const updateFullAgentServerSide = (db
|
|
632
|
+
const updateFullAgentServerSide = (db) => async (scopes, agentData) => {
|
|
635
633
|
const { tenantId, projectId } = scopes;
|
|
636
634
|
const typedAgentDefinition = validateAndTypeAgentData(agentData);
|
|
637
635
|
if (!typedAgentDefinition.id) throw new Error("Agent ID is required");
|
|
@@ -641,7 +639,7 @@ const updateFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
641
639
|
agentCount: Object.keys(typedAgentDefinition.subAgents).length
|
|
642
640
|
}, "Updating full agent in database");
|
|
643
641
|
validateAgentStructure(typedAgentDefinition);
|
|
644
|
-
await applyExecutionLimitsInheritance(db,
|
|
642
|
+
await applyExecutionLimitsInheritance(db, {
|
|
645
643
|
tenantId,
|
|
646
644
|
projectId
|
|
647
645
|
}, typedAgentDefinition);
|
|
@@ -653,11 +651,11 @@ const updateFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
653
651
|
} });
|
|
654
652
|
if (!existingAgent) {
|
|
655
653
|
logger.info({ agentId: typedAgentDefinition.id }, "Agent does not exist, creating new agent");
|
|
656
|
-
return createFullAgentServerSide(db
|
|
654
|
+
return createFullAgentServerSide(db)(scopes, agentData);
|
|
657
655
|
}
|
|
658
656
|
const existingAgentModels = existingAgent.models;
|
|
659
|
-
logger.info(
|
|
660
|
-
logger.info(
|
|
657
|
+
logger.info("CredentialReferences are project-scoped - skipping credential reference update in agent");
|
|
658
|
+
logger.info("MCP Tools are project-scoped - skipping tool creation in agent update");
|
|
661
659
|
let finalAgentId;
|
|
662
660
|
try {
|
|
663
661
|
const agentId = typedAgentDefinition.id || generateId();
|
|
@@ -734,8 +732,8 @@ const updateFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
734
732
|
}, "Failed to update agent with contextConfigId");
|
|
735
733
|
throw error;
|
|
736
734
|
}
|
|
737
|
-
logger.info(
|
|
738
|
-
logger.info(
|
|
735
|
+
logger.info("DataComponents are project-scoped - skipping dataComponent update in agent");
|
|
736
|
+
logger.info("ArtifactComponents are project-scoped - skipping artifactComponent update in agent");
|
|
739
737
|
if (typedAgentDefinition.functions && Object.keys(typedAgentDefinition.functions).length > 0) {
|
|
740
738
|
logger.info({
|
|
741
739
|
agentId: finalAgentId,
|
|
@@ -1021,7 +1019,7 @@ const updateFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
1021
1019
|
})());
|
|
1022
1020
|
}
|
|
1023
1021
|
if (relinkToolRelationPromises.length > 0) await Promise.all(relinkToolRelationPromises);
|
|
1024
|
-
logger.info(
|
|
1022
|
+
logger.info("External agents are project-scoped and managed at the project level.");
|
|
1025
1023
|
const incomingSubAgentIds = new Set(Object.keys(typedAgentDefinition.subAgents));
|
|
1026
1024
|
const existingSubAgents = await listSubAgents(db)({ scopes: {
|
|
1027
1025
|
tenantId,
|
|
@@ -1422,7 +1420,7 @@ const updateFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
1422
1420
|
tenantId,
|
|
1423
1421
|
projectId,
|
|
1424
1422
|
agentId: typedAgentDefinition.id
|
|
1425
|
-
}, typedAgentDefinition.subAgents
|
|
1423
|
+
}, typedAgentDefinition.subAgents);
|
|
1426
1424
|
const updatedAgent = await getFullAgentDefinition(db)({ scopes: {
|
|
1427
1425
|
tenantId,
|
|
1428
1426
|
projectId,
|
|
@@ -1442,7 +1440,7 @@ const updateFullAgentServerSide = (db, logger = defaultLogger) => async (scopes,
|
|
|
1442
1440
|
/**
|
|
1443
1441
|
* Get a complete agent definition by ID
|
|
1444
1442
|
*/
|
|
1445
|
-
const getFullAgent = (db
|
|
1443
|
+
const getFullAgent = (db) => async (params) => {
|
|
1446
1444
|
const { scopes } = params;
|
|
1447
1445
|
const { tenantId, projectId } = scopes;
|
|
1448
1446
|
logger.info({
|
|
@@ -1477,7 +1475,7 @@ const getFullAgent = (db, logger = defaultLogger) => async (params) => {
|
|
|
1477
1475
|
throw error;
|
|
1478
1476
|
}
|
|
1479
1477
|
};
|
|
1480
|
-
const getFullAgentWithRelationIds = (db
|
|
1478
|
+
const getFullAgentWithRelationIds = (db) => async (params) => {
|
|
1481
1479
|
const { scopes } = params;
|
|
1482
1480
|
const { tenantId, projectId } = scopes;
|
|
1483
1481
|
logger.info({
|
|
@@ -1515,7 +1513,7 @@ const getFullAgentWithRelationIds = (db, logger = defaultLogger) => async (param
|
|
|
1515
1513
|
/**
|
|
1516
1514
|
* Delete a complete agent and cascade to all related entities
|
|
1517
1515
|
*/
|
|
1518
|
-
const deleteFullAgent = (db
|
|
1516
|
+
const deleteFullAgent = (db) => async (params) => {
|
|
1519
1517
|
const { tenantId, projectId, agentId } = params.scopes;
|
|
1520
1518
|
logger.info({
|
|
1521
1519
|
tenantId,
|