@inkeep/agents-core 0.0.0-dev-20251124223719 → 0.0.0-dev-20251124234228
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/auth.d.ts +3 -3
- package/dist/auth/auth.js +4 -3
- package/dist/{auth-detection-CGqhPDnj.d.ts → auth-detection-7G0Dxt55.d.ts} +11 -0
- package/dist/{chunk-32YRH2S7.js → chunk-6XW4J5LI.js} +1 -1
- package/dist/{chunk-SLQW43IV.js → chunk-ATWIYWOU.js} +1 -1
- package/dist/chunk-CMNLBV2A.js +39 -0
- package/dist/{chunk-ICZLNCX7.js → chunk-K3UNCRSA.js} +330 -40
- package/dist/{chunk-SG75RA63.js → chunk-K54FZSDH.js} +1 -1
- package/dist/{chunk-TGESM3JG.js → chunk-MQMMFK2K.js} +14 -3
- package/dist/{chunk-VQXQOGJU.js → chunk-N7TIJHWC.js} +6 -6
- package/dist/{chunk-Q5U2SVA6.js → chunk-NMBNWFIZ.js} +4 -1
- package/dist/{chunk-NFYCSHD3.js → chunk-OHZDHXP7.js} +1 -0
- package/dist/{client-CnpNkGsH.d.ts → client-B_3j-V4-.d.ts} +1 -1
- package/dist/client-exports.d.ts +6 -3
- package/dist/client-exports.js +3 -3
- package/dist/constants/schema-validation/index.js +1 -1
- package/dist/credential-stores/index.d.ts +3 -3
- package/dist/db/schema.d.ts +2 -2
- package/dist/db/schema.js +1 -1
- package/dist/db/test-client.d.ts +3 -3
- package/dist/db/test-client.js +1 -1
- package/dist/index.d.ts +126 -9
- package/dist/index.js +275 -57
- package/dist/{schema-Cgkp_geg.d.ts → schema-DKbG39on.d.ts} +24 -1
- package/dist/server-BXoUiBMg.d.ts +127 -0
- package/dist/types/index.d.ts +33 -113
- package/dist/types/index.js +1 -1
- package/dist/{utility-C_tTZ7-k.d.ts → utility-Lo5NoRHK.d.ts} +141 -11
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/drizzle/{0001_fair_malice.sql → 0001_calm_sheva_callister.sql} +1 -16
- package/drizzle/meta/0001_snapshot.json +7 -1
- package/drizzle/meta/_journal.json +2 -2
- package/package.json +7 -1
- package/dist/chunk-H2F72PDA.js +0 -15
package/dist/auth/auth.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ import * as zod from 'zod';
|
|
|
4
4
|
import * as better_auth from 'better-auth';
|
|
5
5
|
import { BetterAuthAdvancedOptions } from 'better-auth';
|
|
6
6
|
import { GoogleOptions } from 'better-auth/social-providers';
|
|
7
|
-
import { D as DatabaseClient } from '../client-
|
|
7
|
+
import { D as DatabaseClient } from '../client-B_3j-V4-.js';
|
|
8
8
|
import 'drizzle-orm/node-postgres';
|
|
9
9
|
import 'drizzle-orm/pglite';
|
|
10
|
-
import '../schema-
|
|
10
|
+
import '../schema-DKbG39on.js';
|
|
11
11
|
import 'drizzle-orm';
|
|
12
12
|
import 'drizzle-orm/pg-core';
|
|
13
|
-
import '../utility-
|
|
13
|
+
import '../utility-Lo5NoRHK.js';
|
|
14
14
|
import 'drizzle-zod';
|
|
15
15
|
import '@hono/zod-openapi';
|
|
16
16
|
import './auth-schema.js';
|
package/dist/auth/auth.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { generateId } from '../chunk-
|
|
1
|
+
import { generateId } from '../chunk-K3UNCRSA.js';
|
|
2
|
+
import { env } from '../chunk-NMBNWFIZ.js';
|
|
2
3
|
import { ssoProvider } from '../chunk-NOPEANIU.js';
|
|
3
4
|
import { ownerRole, adminRole, memberRole, ac } from '../chunk-VMSYBWFH.js';
|
|
4
5
|
import { sso } from '@better-auth/sso';
|
|
5
|
-
import { betterAuth
|
|
6
|
+
import { betterAuth } from 'better-auth';
|
|
6
7
|
import { drizzleAdapter } from 'better-auth/adapters/drizzle';
|
|
7
8
|
import { organization } from 'better-auth/plugins';
|
|
8
9
|
import { eq } from 'drizzle-orm';
|
|
@@ -88,7 +89,7 @@ function createAuth(config) {
|
|
|
88
89
|
"http://localhost:3002",
|
|
89
90
|
env.INKEEP_AGENTS_MANAGE_UI_URL,
|
|
90
91
|
env.INKEEP_AGENTS_MANAGE_API_URL
|
|
91
|
-
],
|
|
92
|
+
].filter((origin) => typeof origin === "string" && origin.length > 0),
|
|
92
93
|
plugins: [
|
|
93
94
|
sso(),
|
|
94
95
|
organization({
|
|
@@ -12,6 +12,9 @@ declare const SPAN_NAMES: {
|
|
|
12
12
|
readonly AGENT_GENERATION: "agent.generate";
|
|
13
13
|
readonly CONTEXT_FETCHER: "context-fetcher.http-request";
|
|
14
14
|
readonly ARTIFACT_PROCESSING: "agent_session.process_artifact";
|
|
15
|
+
readonly TOOL_APPROVAL_REQUESTED: "tool.approval_requested";
|
|
16
|
+
readonly TOOL_APPROVAL_APPROVED: "tool.approval_approved";
|
|
17
|
+
readonly TOOL_APPROVAL_DENIED: "tool.approval_denied";
|
|
15
18
|
};
|
|
16
19
|
declare const AI_OPERATIONS: {
|
|
17
20
|
readonly GENERATE_TEXT: "ai.generateText.doGenerate";
|
|
@@ -53,6 +56,8 @@ declare const SPAN_KEYS: {
|
|
|
53
56
|
readonly AI_TOOL_CALL_ID: "ai.toolCall.id";
|
|
54
57
|
readonly AI_TOOL_TYPE: "ai.toolType";
|
|
55
58
|
readonly TOOL_PURPOSE: "tool.purpose";
|
|
59
|
+
readonly TOOL_NAME: "tool.name";
|
|
60
|
+
readonly TOOL_CALL_ID: "tool.callId";
|
|
56
61
|
readonly GEN_AI_USAGE_INPUT_TOKENS: "gen_ai.usage.input_tokens";
|
|
57
62
|
readonly GEN_AI_USAGE_OUTPUT_TOKENS: "gen_ai.usage.output_tokens";
|
|
58
63
|
readonly CONTEXT_URL: "context.url";
|
|
@@ -92,6 +97,9 @@ declare const ACTIVITY_TYPES: {
|
|
|
92
97
|
readonly AI_ASSISTANT_MESSAGE: "ai_assistant_message";
|
|
93
98
|
readonly AI_MODEL_STREAMED_TEXT: "ai_model_streamed_text";
|
|
94
99
|
readonly AI_MODEL_STREAMED_OBJECT: "ai_model_streamed_object";
|
|
100
|
+
readonly TOOL_APPROVAL_REQUESTED: "tool_approval_requested";
|
|
101
|
+
readonly TOOL_APPROVAL_APPROVED: "tool_approval_approved";
|
|
102
|
+
readonly TOOL_APPROVAL_DENIED: "tool_approval_denied";
|
|
95
103
|
};
|
|
96
104
|
/** Activity Status Values */
|
|
97
105
|
declare const ACTIVITY_STATUS: {
|
|
@@ -223,6 +231,9 @@ declare const QUERY_EXPRESSIONS: {
|
|
|
223
231
|
readonly AGENT_GENERATIONS: "agentGenerations";
|
|
224
232
|
readonly SPANS_WITH_ERRORS: "spansWithErrors";
|
|
225
233
|
readonly ARTIFACT_PROCESSING: "artifactProcessing";
|
|
234
|
+
readonly TOOL_APPROVAL_REQUESTED: "toolApprovalRequested";
|
|
235
|
+
readonly TOOL_APPROVAL_APPROVED: "toolApprovalApproved";
|
|
236
|
+
readonly TOOL_APPROVAL_DENIED: "toolApprovalDenied";
|
|
226
237
|
};
|
|
227
238
|
/** Query Reduce Operations */
|
|
228
239
|
declare const REDUCE_OPERATIONS: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-
|
|
1
|
+
import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-N7TIJHWC.js';
|
|
2
2
|
import { external_exports } from './chunk-OUXC23J7.js';
|
|
3
3
|
|
|
4
4
|
// src/validation/cycleDetection.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { schemaValidationDefaults } from './chunk-Z64UK4CA.js';
|
|
2
|
-
import { loadEnvironmentFiles } from './chunk-
|
|
2
|
+
import { loadEnvironmentFiles } from './chunk-NMBNWFIZ.js';
|
|
3
3
|
import { external_exports } from './chunk-OUXC23J7.js';
|
|
4
4
|
|
|
5
5
|
// src/constants/schema-validation/index.ts
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// src/types/a2a.ts
|
|
2
|
+
var TaskState = /* @__PURE__ */ ((TaskState2) => {
|
|
3
|
+
TaskState2["Submitted"] = "submitted";
|
|
4
|
+
TaskState2["Working"] = "working";
|
|
5
|
+
TaskState2["InputRequired"] = "input-required";
|
|
6
|
+
TaskState2["Completed"] = "completed";
|
|
7
|
+
TaskState2["Canceled"] = "canceled";
|
|
8
|
+
TaskState2["Failed"] = "failed";
|
|
9
|
+
TaskState2["Rejected"] = "rejected";
|
|
10
|
+
TaskState2["AuthRequired"] = "auth-required";
|
|
11
|
+
TaskState2["Unknown"] = "unknown";
|
|
12
|
+
return TaskState2;
|
|
13
|
+
})(TaskState || {});
|
|
14
|
+
|
|
15
|
+
// src/types/tool-policies.ts
|
|
16
|
+
function normalizeToolSelections(selections) {
|
|
17
|
+
if (!selections || selections.length === 0) {
|
|
18
|
+
return { selectedTools: [], toolPolicies: {} };
|
|
19
|
+
}
|
|
20
|
+
const selectedTools = [];
|
|
21
|
+
const toolPolicies = {};
|
|
22
|
+
for (const selection of selections) {
|
|
23
|
+
if (typeof selection === "string") {
|
|
24
|
+
selectedTools.push(selection);
|
|
25
|
+
} else {
|
|
26
|
+
selectedTools.push(selection.name);
|
|
27
|
+
const policy = {};
|
|
28
|
+
if (selection.needsApproval !== void 0) {
|
|
29
|
+
policy.needsApproval = selection.needsApproval;
|
|
30
|
+
}
|
|
31
|
+
if (Object.keys(policy).length > 0) {
|
|
32
|
+
toolPolicies[selection.name] = policy;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return { selectedTools, toolPolicies };
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { TaskState, normalizeToolSelections };
|