@inkeep/agents-core 0.65.2 → 0.66.1

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.
Files changed (99) hide show
  1. package/dist/_virtual/rolldown_runtime.js +25 -1
  2. package/dist/auth/auth.d.ts +6 -6
  3. package/dist/auth/permissions.d.ts +13 -13
  4. package/dist/constants/index.d.ts +14 -0
  5. package/dist/constants/index.js +15 -0
  6. package/dist/constants/relation-types.d.ts +5 -0
  7. package/dist/constants/relation-types.js +6 -0
  8. package/dist/constants/session-events.d.ts +13 -0
  9. package/dist/constants/session-events.js +14 -0
  10. package/dist/constants/tool-names.d.ts +7 -0
  11. package/dist/constants/tool-names.js +8 -0
  12. package/dist/constants/workflow.d.ts +7 -0
  13. package/dist/constants/workflow.js +8 -0
  14. package/dist/data-access/index.d.ts +3 -3
  15. package/dist/data-access/manage/agentFull.d.ts +7 -10
  16. package/dist/data-access/manage/agentFull.js +26 -28
  17. package/dist/data-access/manage/agents.d.ts +10 -10
  18. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  19. package/dist/data-access/manage/contextConfigs.d.ts +4 -4
  20. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  21. package/dist/data-access/manage/functionTools.d.ts +8 -8
  22. package/dist/data-access/manage/projectFull.d.ts +6 -8
  23. package/dist/data-access/manage/projectFull.js +18 -18
  24. package/dist/data-access/manage/skills.d.ts +7 -7
  25. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  26. package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
  27. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  28. package/dist/data-access/manage/subAgents.d.ts +6 -6
  29. package/dist/data-access/manage/tools.d.ts +18 -18
  30. package/dist/data-access/manage/triggers.d.ts +2 -2
  31. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  32. package/dist/data-access/runtime/apps.d.ts +10 -10
  33. package/dist/data-access/runtime/conversations.d.ts +16 -16
  34. package/dist/data-access/runtime/feedback.d.ts +2 -2
  35. package/dist/data-access/runtime/messages.d.ts +3 -3
  36. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
  37. package/dist/data-access/runtime/tasks.d.ts +5 -5
  38. package/dist/db/manage/manage-schema.d.ts +4 -4
  39. package/dist/db/runtime/runtime-schema.d.ts +373 -373
  40. package/dist/dolt/ref-middleware.js +2 -2
  41. package/dist/index.d.ts +7 -3
  42. package/dist/index.js +5 -1
  43. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +77 -0
  44. package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +1356 -0
  45. package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +1119 -0
  46. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +982 -0
  47. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/index.js +4 -0
  48. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/utils.js +3 -0
  49. package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +1821 -0
  50. package/dist/node_modules/.pnpm/@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js +171 -0
  51. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +124 -0
  52. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js +1334 -0
  53. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +105 -0
  54. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js +118 -0
  55. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js +455 -0
  56. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js +168 -0
  57. package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js +3087 -0
  58. package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js +384 -0
  59. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +11 -0
  60. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +16 -0
  61. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +11 -0
  62. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +15 -0
  63. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +13 -0
  64. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +34 -0
  65. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +12 -0
  66. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +122 -0
  67. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +39 -0
  68. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +99 -0
  69. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +25 -0
  70. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +14 -0
  71. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +21 -0
  72. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +6 -0
  73. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +12 -0
  74. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +18 -0
  75. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +25 -0
  76. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +8 -0
  77. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +30 -0
  78. package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js +939 -0
  79. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +81 -0
  80. package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.js +51 -0
  81. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +81 -0
  82. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js +9 -0
  83. package/dist/node_modules/.pnpm/tinyspy@4.0.4/node_modules/tinyspy/dist/index.js +125 -0
  84. 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
  85. 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
  86. 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
  87. 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
  88. package/dist/test-utils/index.d.ts +2 -0
  89. package/dist/test-utils/index.js +3 -0
  90. package/dist/test-utils/mocks/index.d.ts +2 -0
  91. package/dist/test-utils/mocks/index.js +3 -0
  92. package/dist/test-utils/mocks/logger.d.ts +27 -0
  93. package/dist/test-utils/mocks/logger.js +48 -0
  94. package/dist/utils/jwt-helpers.js +1 -1
  95. package/dist/utils/third-party-mcp-servers/composio-client.js +10 -10
  96. package/dist/utils/tracer-factory.js +1 -1
  97. package/dist/validation/schemas/skills.d.ts +51 -51
  98. package/dist/validation/schemas.d.ts +600 -600
  99. 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 };
@@ -2,7 +2,7 @@ import { BetterAuthConfig, EmailServiceConfig, OIDCProviderConfig, SAMLProviderC
2
2
  import { extractCookieDomain, hasCredentialAccount } from "./auth-config-utils.js";
3
3
  import * as zod0 from "zod";
4
4
  import * as better_auth0 from "better-auth";
5
- import * as better_auth_plugins0 from "better-auth/plugins";
5
+ import * as better_auth_plugins20 from "better-auth/plugins";
6
6
 
7
7
  //#region src/auth/auth.d.ts
8
8
 
@@ -38,10 +38,10 @@ declare function _inferAuthType(): better_auth0.Auth<{
38
38
  handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
39
39
  }[];
40
40
  };
41
- options: better_auth_plugins0.BearerOptions | undefined;
41
+ options: better_auth_plugins20.BearerOptions | undefined;
42
42
  }, {
43
43
  id: "oauth-proxy";
44
- options: NoInfer<better_auth_plugins0.OAuthProxyOptions>;
44
+ options: NoInfer<better_auth_plugins20.OAuthProxyOptions>;
45
45
  endpoints: {
46
46
  oAuthProxy: better_auth0.StrictEndpoint<"/oauth-proxy-callback", {
47
47
  method: "GET";
@@ -93,7 +93,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
93
93
  handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
94
94
  }[];
95
95
  };
96
- }, better_auth_plugins0.DefaultOrganizationPlugin<{
96
+ }, better_auth_plugins20.DefaultOrganizationPlugin<{
97
97
  schema: {
98
98
  invitation: {
99
99
  additionalFields: {
@@ -456,8 +456,8 @@ declare function _inferAuthType(): better_auth0.Auth<{
456
456
  AUTHENTICATION_REQUIRED: better_auth0.RawError<"AUTHENTICATION_REQUIRED">;
457
457
  };
458
458
  options: Partial<{
459
- expiresIn: better_auth_plugins0.TimeString;
460
- interval: better_auth_plugins0.TimeString;
459
+ expiresIn: better_auth_plugins20.TimeString;
460
+ interval: better_auth_plugins20.TimeString;
461
461
  deviceCodeLength: number;
462
462
  userCodeLength: number;
463
463
  schema: {
@@ -1,29 +1,29 @@
1
- import * as better_auth_plugins4 from "better-auth/plugins";
1
+ import * as better_auth_plugins0 from "better-auth/plugins";
2
2
  import { AccessControl } from "better-auth/plugins/access";
3
3
  import { organizationClient } from "better-auth/client/plugins";
4
4
 
5
5
  //#region src/auth/permissions.d.ts
6
6
  declare const ac: AccessControl;
7
7
  declare const memberRole: {
8
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
9
- actions: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key];
8
+ authorize<K_1 extends "project" | "organization" | "member" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
9
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
10
10
  connector: "OR" | "AND";
11
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
12
- statements: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>;
11
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
12
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
16
- actions: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key];
15
+ authorize<K_1 extends "project" | "organization" | "member" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
16
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
17
17
  connector: "OR" | "AND";
18
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
19
- statements: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>;
18
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
19
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
23
- actions: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key];
22
+ authorize<K_1 extends "project" | "organization" | "member" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
23
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
24
24
  connector: "OR" | "AND";
25
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
26
- statements: better_auth_plugins4.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>;
25
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
26
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.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,5 @@
1
+ //#region src/constants/relation-types.d.ts
2
+ declare const RELATION_TYPE_TRANSFER = "transfer";
3
+ declare const RELATION_TYPE_DELEGATE = "delegate";
4
+ //#endregion
5
+ export { RELATION_TYPE_DELEGATE, RELATION_TYPE_TRANSFER };
@@ -0,0 +1,6 @@
1
+ //#region src/constants/relation-types.ts
2
+ const RELATION_TYPE_TRANSFER = "transfer";
3
+ const RELATION_TYPE_DELEGATE = "delegate";
4
+
5
+ //#endregion
6
+ export { RELATION_TYPE_DELEGATE, RELATION_TYPE_TRANSFER };
@@ -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 { AgentLogger, createFullAgentServerSide, deleteFullAgent, getFullAgent, getFullAgentWithRelationIds, updateFullAgentServerSide } from "./manage/agentFull.js";
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 { ProjectLogger, createFullProjectServerSide, deleteFullProject, getFullProject, getFullProjectWithRelationIds, updateFullProjectServerSide } from "./manage/projectFull.js";
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
- interface AgentLogger {
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, logger?: AgentLogger) => (scopes: ProjectScopeConfig, agentData: FullAgentDefinition) => Promise<FullAgentDefinition>;
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, logger?: AgentLogger) => (scopes: ProjectScopeConfig, agentData: FullAgentDefinition) => Promise<FullAgentDefinition>;
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, logger?: AgentLogger) => (params: {
21
+ declare const getFullAgent: (db: AgentsManageDatabaseClient) => (params: {
25
22
  scopes: AgentScopeConfig;
26
23
  }) => Promise<FullAgentDefinition | null>;
27
- declare const getFullAgentWithRelationIds: (db: AgentsManageDatabaseClient, logger?: AgentLogger) => (params: {
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, logger?: AgentLogger) => (params: {
30
+ declare const deleteFullAgent: (db: AgentsManageDatabaseClient) => (params: {
34
31
  scopes: AgentScopeConfig;
35
32
  }) => Promise<boolean>;
36
33
  //#endregion
37
- export { AgentLogger, createFullAgentServerSide, deleteFullAgent, getFullAgent, getFullAgentWithRelationIds, updateFullAgentServerSide };
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 defaultLogger = {
22
- info: () => {},
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, logger, scopes, agentData) {
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, logger = defaultLogger) => async (scopes, agentData) => {
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, logger, {
111
+ await applyExecutionLimitsInheritance(db, {
114
112
  tenantId,
115
113
  projectId
116
114
  }, typed);
117
115
  try {
118
- logger.info({}, "CredentialReferences are project-scoped - skipping credential reference creation in agent");
119
- logger.info({}, "MCP Tools are project-scoped - skipping tool creation in agent");
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({}, "DataComponents are project-scoped - skipping dataComponent creation in agent");
197
- logger.info({}, "ArtifactComponents are project-scoped - skipping artifactComponent creation in agent");
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({}, "External agents are project-scoped and managed at the project level.");
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({}, "All agent-data component relations created");
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({}, "All agent-artifact component relations created");
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, logger);
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, logger = defaultLogger) => async (scopes, agentData) => {
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, logger, {
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, logger)(scopes, agentData);
654
+ return createFullAgentServerSide(db)(scopes, agentData);
657
655
  }
658
656
  const existingAgentModels = existingAgent.models;
659
- logger.info({}, "CredentialReferences are project-scoped - skipping credential reference update in agent");
660
- logger.info({}, "MCP Tools are project-scoped - skipping tool creation in agent update");
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({}, "DataComponents are project-scoped - skipping dataComponent update in agent");
738
- logger.info({}, "ArtifactComponents are project-scoped - skipping artifactComponent update in agent");
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({}, "External agents are project-scoped and managed at the project level.");
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, logger);
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, logger = defaultLogger) => async (params) => {
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, logger = defaultLogger) => async (params) => {
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, logger = defaultLogger) => async (params) => {
1516
+ const deleteFullAgent = (db) => async (params) => {
1519
1517
  const { tenantId, projectId, agentId } = params.scopes;
1520
1518
  logger.info({
1521
1519
  tenantId,