@inkeep/agents-core 0.37.1 → 0.38.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/auth/auth-schema.d.ts +47 -1
- package/dist/auth/auth-schema.js +1 -1
- package/dist/auth/auth-validation-schemas.d.ts +35 -1
- package/dist/auth/auth-validation-schemas.js +2 -2
- package/dist/auth/auth.d.ts +24 -23
- package/dist/auth/auth.js +11 -4
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/auth/permissions.js +1 -1
- package/dist/chunk-3OPS2LN5.js +4 -0
- package/dist/{chunk-7CLFCY6J.js → chunk-7IQFIW44.js} +2 -0
- package/dist/{chunk-ZEZCCHV7.js → chunk-AJCP2QYU.js} +2 -2
- package/dist/{chunk-7GZHUB4J.js → chunk-AUGHKZEB.js} +42 -2
- package/dist/{chunk-W3QDM7WH.js → chunk-CWAFZVRI.js} +2 -2
- package/dist/{chunk-I6IF7ZTL.js → chunk-DW4DNYUS.js} +2 -2
- package/dist/chunk-GENLXHZ4.js +159 -0
- package/dist/{chunk-VMSYBWFH.js → chunk-JNBVHWXX.js} +7 -4
- package/dist/{chunk-PVRIMF6N.js → chunk-LH6OJIIM.js} +27 -12
- package/dist/{chunk-ROXPFQAM.js → chunk-MGHGIB7U.js} +25 -31
- package/dist/{chunk-FOK3JSQN.js → chunk-S4XQEAAF.js} +7 -4
- package/dist/{chunk-K6GMXJPW.js → chunk-UK63CULA.js} +7 -14
- package/dist/{chunk-LL6F3EAR.js → chunk-ZIXAWYZI.js} +1 -1
- package/dist/{client-B_3j-V4-.d.ts → client-DG_xZdlN.d.ts} +1 -1
- package/dist/client-exports.d.ts +14 -8
- package/dist/client-exports.js +10 -4
- package/dist/constants/models.d.ts +2 -0
- package/dist/constants/models.js +1 -1
- package/dist/constants/schema-validation/index.js +1 -1
- package/dist/credential-stores/index.d.ts +6 -6
- package/dist/credential-stores/index.js +1 -1
- package/dist/db/schema.d.ts +3 -4
- package/dist/db/schema.js +2 -2
- package/dist/db/test-client.d.ts +4 -5
- package/dist/db/test-client.js +1 -1
- package/dist/index.d.ts +379 -362
- package/dist/index.js +186 -125
- package/dist/{schema-DKbG39on.d.ts → schema-DA6PfmoP.d.ts} +83 -7
- package/dist/{server-BXoUiBMg.d.ts → server-BviIeoo5.d.ts} +1 -1
- package/dist/types/index.d.ts +3 -4
- package/dist/{utility-Lo5NoRHK.d.ts → utility-dsfXkYTu.d.ts} +1018 -366
- package/dist/utils/schema-conversion.d.ts +12 -2
- package/dist/utils/schema-conversion.js +1 -1
- package/dist/validation/index.d.ts +131 -132
- package/dist/validation/index.js +2 -2
- package/drizzle/0002_puzzling_goblin_queen.sql +8 -0
- package/drizzle/0003_sweet_human_robot.sql +8 -0
- package/drizzle/0004_cuddly_shooting_star.sql +6 -0
- package/drizzle/0005_reflective_starfox.sql +9 -0
- package/drizzle/meta/0003_snapshot.json +3643 -0
- package/drizzle/meta/0005_snapshot.json +3693 -0
- package/drizzle/meta/_journal.json +28 -0
- package/package.json +9 -11
- package/dist/chunk-NFTJ5JBY.js +0 -82
|
@@ -15,6 +15,34 @@
|
|
|
15
15
|
"when": 1764024513126,
|
|
16
16
|
"tag": "0001_calm_sheva_callister",
|
|
17
17
|
"breakpoints": true
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"idx": 2,
|
|
21
|
+
"version": "7",
|
|
22
|
+
"when": 1764045769142,
|
|
23
|
+
"tag": "0002_puzzling_goblin_queen",
|
|
24
|
+
"breakpoints": true
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"idx": 3,
|
|
28
|
+
"version": "7",
|
|
29
|
+
"when": 1764060547473,
|
|
30
|
+
"tag": "0003_sweet_human_robot",
|
|
31
|
+
"breakpoints": true
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"idx": 4,
|
|
35
|
+
"version": "7",
|
|
36
|
+
"when": 1764095962055,
|
|
37
|
+
"tag": "0004_cuddly_shooting_star",
|
|
38
|
+
"breakpoints": true
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"idx": 5,
|
|
42
|
+
"version": "7",
|
|
43
|
+
"when": 1765392765706,
|
|
44
|
+
"tag": "0005_reflective_starfox",
|
|
45
|
+
"breakpoints": true
|
|
18
46
|
}
|
|
19
47
|
]
|
|
20
48
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"description": "Agents Core contains the database schema, types, and validation schemas for Inkeep Agent Framework, along with core components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -72,11 +72,11 @@
|
|
|
72
72
|
},
|
|
73
73
|
"clean-package": "./clean-package.config.json",
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@ai-sdk/anthropic": "
|
|
76
|
-
"@ai-sdk/gateway": "
|
|
77
|
-
"@ai-sdk/google": "
|
|
78
|
-
"@ai-sdk/openai": "
|
|
79
|
-
"@ai-sdk/openai-compatible": "
|
|
75
|
+
"@ai-sdk/anthropic": "3.0.0-beta.66",
|
|
76
|
+
"@ai-sdk/gateway": "2.0.0-beta.68",
|
|
77
|
+
"@ai-sdk/google": "3.0.0-beta.62",
|
|
78
|
+
"@ai-sdk/openai": "3.0.0-beta.74",
|
|
79
|
+
"@ai-sdk/openai-compatible": "2.0.0-beta.41",
|
|
80
80
|
"@composio/core": "^0.2.4",
|
|
81
81
|
"@electric-sql/pglite": "^0.3.13",
|
|
82
82
|
"@better-auth/sso": "^1.4.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@opentelemetry/sdk-node": "^0.203.0",
|
|
95
95
|
"@opentelemetry/sdk-trace-node": "^2.0.1",
|
|
96
96
|
"@opentelemetry/semantic-conventions": "^1.34.0",
|
|
97
|
-
"ai": "
|
|
97
|
+
"ai": "6.0.0-beta.124",
|
|
98
98
|
"ajv": "^8.17.1",
|
|
99
99
|
"ajv-formats": "^3.0.1",
|
|
100
100
|
"better-auth": "^1.4.0",
|
|
@@ -111,9 +111,7 @@
|
|
|
111
111
|
"pg": "^8.16.3",
|
|
112
112
|
"pino": "^9.11.0",
|
|
113
113
|
"pino-pretty": "^13.1.1",
|
|
114
|
-
"ts-pattern": "^5.7.1"
|
|
115
|
-
"@hono/zod-openapi": "^1.1.5",
|
|
116
|
-
"zod": "^4.1.11"
|
|
114
|
+
"ts-pattern": "^5.7.1"
|
|
117
115
|
},
|
|
118
116
|
"peerDependencies": {
|
|
119
117
|
"@hono/zod-openapi": "^1.1.5",
|
|
@@ -159,7 +157,7 @@
|
|
|
159
157
|
"test:integration": "vitest --run src/__tests__/integration/",
|
|
160
158
|
"test:coverage": "vitest --run --coverage",
|
|
161
159
|
"test:watch": "vitest --watch",
|
|
162
|
-
"lint": "biome lint
|
|
160
|
+
"lint": "biome lint --error-on-warnings",
|
|
163
161
|
"lint:fix": "biome check --write src",
|
|
164
162
|
"format": "biome format --write src",
|
|
165
163
|
"format:check": "biome format src",
|
package/dist/chunk-NFTJ5JBY.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { pgTable, timestamp, text, boolean } from 'drizzle-orm/pg-core';
|
|
2
|
-
|
|
3
|
-
// src/auth/auth-schema.ts
|
|
4
|
-
var user = pgTable("user", {
|
|
5
|
-
id: text("id").primaryKey(),
|
|
6
|
-
name: text("name").notNull(),
|
|
7
|
-
email: text("email").notNull().unique(),
|
|
8
|
-
emailVerified: boolean("email_verified").default(false).notNull(),
|
|
9
|
-
image: text("image"),
|
|
10
|
-
createdAt: timestamp("created_at").defaultNow().notNull(),
|
|
11
|
-
updatedAt: timestamp("updated_at").defaultNow().$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
|
|
12
|
-
});
|
|
13
|
-
var session = pgTable("session", {
|
|
14
|
-
id: text("id").primaryKey(),
|
|
15
|
-
expiresAt: timestamp("expires_at").notNull(),
|
|
16
|
-
token: text("token").notNull().unique(),
|
|
17
|
-
createdAt: timestamp("created_at").defaultNow().notNull(),
|
|
18
|
-
updatedAt: timestamp("updated_at").$onUpdate(() => /* @__PURE__ */ new Date()).notNull(),
|
|
19
|
-
ipAddress: text("ip_address"),
|
|
20
|
-
userAgent: text("user_agent"),
|
|
21
|
-
userId: text("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
|
|
22
|
-
activeOrganizationId: text("active_organization_id")
|
|
23
|
-
});
|
|
24
|
-
var account = pgTable("account", {
|
|
25
|
-
id: text("id").primaryKey(),
|
|
26
|
-
accountId: text("account_id").notNull(),
|
|
27
|
-
providerId: text("provider_id").notNull(),
|
|
28
|
-
userId: text("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
|
|
29
|
-
accessToken: text("access_token"),
|
|
30
|
-
refreshToken: text("refresh_token"),
|
|
31
|
-
idToken: text("id_token"),
|
|
32
|
-
accessTokenExpiresAt: timestamp("access_token_expires_at"),
|
|
33
|
-
refreshTokenExpiresAt: timestamp("refresh_token_expires_at"),
|
|
34
|
-
scope: text("scope"),
|
|
35
|
-
password: text("password"),
|
|
36
|
-
createdAt: timestamp("created_at").defaultNow().notNull(),
|
|
37
|
-
updatedAt: timestamp("updated_at").$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
|
|
38
|
-
});
|
|
39
|
-
var verification = pgTable("verification", {
|
|
40
|
-
id: text("id").primaryKey(),
|
|
41
|
-
identifier: text("identifier").notNull(),
|
|
42
|
-
value: text("value").notNull(),
|
|
43
|
-
expiresAt: timestamp("expires_at").notNull(),
|
|
44
|
-
createdAt: timestamp("created_at").defaultNow().notNull(),
|
|
45
|
-
updatedAt: timestamp("updated_at").defaultNow().$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
|
|
46
|
-
});
|
|
47
|
-
var ssoProvider = pgTable("sso_provider", {
|
|
48
|
-
id: text("id").primaryKey(),
|
|
49
|
-
issuer: text("issuer").notNull(),
|
|
50
|
-
oidcConfig: text("oidc_config"),
|
|
51
|
-
samlConfig: text("saml_config"),
|
|
52
|
-
userId: text("user_id").references(() => user.id, { onDelete: "cascade" }),
|
|
53
|
-
providerId: text("provider_id").notNull().unique(),
|
|
54
|
-
organizationId: text("organization_id"),
|
|
55
|
-
domain: text("domain").notNull()
|
|
56
|
-
});
|
|
57
|
-
var organization = pgTable("organization", {
|
|
58
|
-
id: text("id").primaryKey(),
|
|
59
|
-
name: text("name").notNull(),
|
|
60
|
-
slug: text("slug").notNull().unique(),
|
|
61
|
-
logo: text("logo"),
|
|
62
|
-
createdAt: timestamp("created_at").notNull(),
|
|
63
|
-
metadata: text("metadata")
|
|
64
|
-
});
|
|
65
|
-
var member = pgTable("member", {
|
|
66
|
-
id: text("id").primaryKey(),
|
|
67
|
-
organizationId: text("organization_id").notNull().references(() => organization.id, { onDelete: "cascade" }),
|
|
68
|
-
userId: text("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
|
|
69
|
-
role: text("role").default("member").notNull(),
|
|
70
|
-
createdAt: timestamp("created_at").notNull()
|
|
71
|
-
});
|
|
72
|
-
var invitation = pgTable("invitation", {
|
|
73
|
-
id: text("id").primaryKey(),
|
|
74
|
-
organizationId: text("organization_id").notNull().references(() => organization.id, { onDelete: "cascade" }),
|
|
75
|
-
email: text("email").notNull(),
|
|
76
|
-
role: text("role"),
|
|
77
|
-
status: text("status").default("pending").notNull(),
|
|
78
|
-
expiresAt: timestamp("expires_at").notNull(),
|
|
79
|
-
inviterId: text("inviter_id").notNull().references(() => user.id, { onDelete: "cascade" })
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
export { account, invitation, member, organization, session, ssoProvider, user, verification };
|