@inkeep/agents-core 0.60.0 → 0.62.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 +86 -86
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/init.js +44 -0
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/auth/wait-for-spicedb.d.ts +1 -0
- package/dist/auth/wait-for-spicedb.js +51 -0
- package/dist/client-exports.d.ts +3 -106
- package/dist/client-exports.js +2 -60
- package/dist/data-access/index.d.ts +4 -3
- package/dist/data-access/index.js +4 -3
- package/dist/data-access/manage/agentFull.js +10 -5
- package/dist/data-access/manage/agents.d.ts +47 -41
- package/dist/data-access/manage/agents.js +2 -0
- package/dist/data-access/manage/artifactComponents.d.ts +12 -12
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/projectFull.js +24 -3
- package/dist/data-access/manage/skills.d.ts +17 -17
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +27 -27
- package/dist/data-access/manage/subAgentRelations.d.ts +25 -25
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +30 -30
- package/dist/data-access/manage/subAgents.d.ts +30 -30
- package/dist/data-access/manage/tools.d.ts +27 -27
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +54 -9
- package/dist/data-access/runtime/apps.js +15 -1
- package/dist/data-access/runtime/conversations.d.ts +25 -25
- package/dist/data-access/runtime/conversations.js +1 -0
- package/dist/data-access/runtime/ledgerArtifacts.d.ts +11 -2
- package/dist/data-access/runtime/ledgerArtifacts.js +12 -1
- package/dist/data-access/runtime/messages.d.ts +15 -15
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/data-access/runtime/workflowExecutions.d.ts +25 -0
- package/dist/data-access/runtime/workflowExecutions.js +32 -0
- package/dist/db/manage/manage-schema.d.ts +495 -475
- package/dist/db/manage/manage-schema.js +1 -0
- package/dist/db/runtime/runtime-schema.d.ts +550 -335
- package/dist/db/runtime/runtime-schema.js +16 -2
- package/dist/index.d.ts +11 -9
- package/dist/index.js +9 -7
- package/dist/types/entities.d.ts +5 -2
- package/dist/types/index.d.ts +3 -3
- package/dist/types/utility.d.ts +9 -3
- package/dist/utils/conversations.d.ts +4 -1
- package/dist/utils/conversations.js +10 -1
- package/dist/utils/error.d.ts +51 -51
- package/dist/utils/index.d.ts +4 -3
- package/dist/utils/index.js +4 -3
- package/dist/utils/jwt-helpers.d.ts +7 -1
- package/dist/utils/jwt-helpers.js +11 -1
- package/dist/utils/validate-public-key.d.ts +10 -0
- package/dist/utils/validate-public-key.js +89 -0
- package/dist/validation/agentFull.js +0 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas.d.ts +3468 -2708
- package/dist/validation/schemas.js +104 -36
- package/drizzle/manage/0013_gorgeous_umar.sql +1 -0
- package/drizzle/manage/meta/0013_snapshot.json +3704 -0
- package/drizzle/manage/meta/_journal.json +7 -0
- package/drizzle/runtime/0026_graceful_scorpion.sql +15 -0
- package/drizzle/runtime/0027_seed-playground-app.sql +13 -0
- package/drizzle/runtime/meta/{0025_snapshot.json → 0026_snapshot.json} +114 -1
- package/drizzle/runtime/meta/0027_snapshot.json +4389 -0
- package/drizzle/runtime/meta/_journal.json +14 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
CREATE TABLE "workflow_executions" (
|
|
2
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
3
|
+
"id" varchar(256) NOT NULL,
|
|
4
|
+
"project_id" varchar(256) NOT NULL,
|
|
5
|
+
"agent_id" varchar(256) NOT NULL,
|
|
6
|
+
"conversation_id" varchar(256) NOT NULL,
|
|
7
|
+
"request_id" varchar(256),
|
|
8
|
+
"status" varchar(50) DEFAULT 'running' NOT NULL,
|
|
9
|
+
"metadata" jsonb,
|
|
10
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
11
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
12
|
+
CONSTRAINT "workflow_executions_tenant_id_project_id_id_pk" PRIMARY KEY("tenant_id","project_id","id")
|
|
13
|
+
);
|
|
14
|
+
--> statement-breakpoint
|
|
15
|
+
CREATE INDEX "workflow_executions_conversation_idx" ON "workflow_executions" USING btree ("tenant_id","project_id","conversation_id");
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
-- Custom SQL migration file, put your code below! --
|
|
2
|
+
INSERT INTO "apps" ("id", "name", "description", "type", "enabled", "config", "created_at", "updated_at")
|
|
3
|
+
VALUES (
|
|
4
|
+
'app_playground',
|
|
5
|
+
'Playground',
|
|
6
|
+
'Global playground app for the manage UI',
|
|
7
|
+
'web_client',
|
|
8
|
+
true,
|
|
9
|
+
'{"type": "web_client", "webClient": {"allowedDomains": ["*"], "auth": {"publicKeys": [], "validateScopeClaims": true}}}',
|
|
10
|
+
now(),
|
|
11
|
+
now()
|
|
12
|
+
)
|
|
13
|
+
ON CONFLICT ("id") DO NOTHING;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "
|
|
2
|
+
"id": "728e82ed-d1db-49f0-9f37-55c239ba200d",
|
|
3
3
|
"prevId": "aed8320f-0737-4399-92c1-db038ccabe6b",
|
|
4
4
|
"version": "7",
|
|
5
5
|
"dialect": "postgresql",
|
|
@@ -4260,6 +4260,119 @@
|
|
|
4260
4260
|
"policies": {},
|
|
4261
4261
|
"checkConstraints": {},
|
|
4262
4262
|
"isRLSEnabled": false
|
|
4263
|
+
},
|
|
4264
|
+
"public.workflow_executions": {
|
|
4265
|
+
"name": "workflow_executions",
|
|
4266
|
+
"schema": "",
|
|
4267
|
+
"columns": {
|
|
4268
|
+
"tenant_id": {
|
|
4269
|
+
"name": "tenant_id",
|
|
4270
|
+
"type": "varchar(256)",
|
|
4271
|
+
"primaryKey": false,
|
|
4272
|
+
"notNull": true
|
|
4273
|
+
},
|
|
4274
|
+
"id": {
|
|
4275
|
+
"name": "id",
|
|
4276
|
+
"type": "varchar(256)",
|
|
4277
|
+
"primaryKey": false,
|
|
4278
|
+
"notNull": true
|
|
4279
|
+
},
|
|
4280
|
+
"project_id": {
|
|
4281
|
+
"name": "project_id",
|
|
4282
|
+
"type": "varchar(256)",
|
|
4283
|
+
"primaryKey": false,
|
|
4284
|
+
"notNull": true
|
|
4285
|
+
},
|
|
4286
|
+
"agent_id": {
|
|
4287
|
+
"name": "agent_id",
|
|
4288
|
+
"type": "varchar(256)",
|
|
4289
|
+
"primaryKey": false,
|
|
4290
|
+
"notNull": true
|
|
4291
|
+
},
|
|
4292
|
+
"conversation_id": {
|
|
4293
|
+
"name": "conversation_id",
|
|
4294
|
+
"type": "varchar(256)",
|
|
4295
|
+
"primaryKey": false,
|
|
4296
|
+
"notNull": true
|
|
4297
|
+
},
|
|
4298
|
+
"request_id": {
|
|
4299
|
+
"name": "request_id",
|
|
4300
|
+
"type": "varchar(256)",
|
|
4301
|
+
"primaryKey": false,
|
|
4302
|
+
"notNull": false
|
|
4303
|
+
},
|
|
4304
|
+
"status": {
|
|
4305
|
+
"name": "status",
|
|
4306
|
+
"type": "varchar(50)",
|
|
4307
|
+
"primaryKey": false,
|
|
4308
|
+
"notNull": true,
|
|
4309
|
+
"default": "'running'"
|
|
4310
|
+
},
|
|
4311
|
+
"metadata": {
|
|
4312
|
+
"name": "metadata",
|
|
4313
|
+
"type": "jsonb",
|
|
4314
|
+
"primaryKey": false,
|
|
4315
|
+
"notNull": false
|
|
4316
|
+
},
|
|
4317
|
+
"created_at": {
|
|
4318
|
+
"name": "created_at",
|
|
4319
|
+
"type": "timestamp",
|
|
4320
|
+
"primaryKey": false,
|
|
4321
|
+
"notNull": true,
|
|
4322
|
+
"default": "now()"
|
|
4323
|
+
},
|
|
4324
|
+
"updated_at": {
|
|
4325
|
+
"name": "updated_at",
|
|
4326
|
+
"type": "timestamp",
|
|
4327
|
+
"primaryKey": false,
|
|
4328
|
+
"notNull": true,
|
|
4329
|
+
"default": "now()"
|
|
4330
|
+
}
|
|
4331
|
+
},
|
|
4332
|
+
"indexes": {
|
|
4333
|
+
"workflow_executions_conversation_idx": {
|
|
4334
|
+
"name": "workflow_executions_conversation_idx",
|
|
4335
|
+
"columns": [
|
|
4336
|
+
{
|
|
4337
|
+
"expression": "tenant_id",
|
|
4338
|
+
"isExpression": false,
|
|
4339
|
+
"asc": true,
|
|
4340
|
+
"nulls": "last"
|
|
4341
|
+
},
|
|
4342
|
+
{
|
|
4343
|
+
"expression": "project_id",
|
|
4344
|
+
"isExpression": false,
|
|
4345
|
+
"asc": true,
|
|
4346
|
+
"nulls": "last"
|
|
4347
|
+
},
|
|
4348
|
+
{
|
|
4349
|
+
"expression": "conversation_id",
|
|
4350
|
+
"isExpression": false,
|
|
4351
|
+
"asc": true,
|
|
4352
|
+
"nulls": "last"
|
|
4353
|
+
}
|
|
4354
|
+
],
|
|
4355
|
+
"isUnique": false,
|
|
4356
|
+
"concurrently": false,
|
|
4357
|
+
"method": "btree",
|
|
4358
|
+
"with": {}
|
|
4359
|
+
}
|
|
4360
|
+
},
|
|
4361
|
+
"foreignKeys": {},
|
|
4362
|
+
"compositePrimaryKeys": {
|
|
4363
|
+
"workflow_executions_tenant_id_project_id_id_pk": {
|
|
4364
|
+
"name": "workflow_executions_tenant_id_project_id_id_pk",
|
|
4365
|
+
"columns": [
|
|
4366
|
+
"tenant_id",
|
|
4367
|
+
"project_id",
|
|
4368
|
+
"id"
|
|
4369
|
+
]
|
|
4370
|
+
}
|
|
4371
|
+
},
|
|
4372
|
+
"uniqueConstraints": {},
|
|
4373
|
+
"policies": {},
|
|
4374
|
+
"checkConstraints": {},
|
|
4375
|
+
"isRLSEnabled": false
|
|
4263
4376
|
}
|
|
4264
4377
|
},
|
|
4265
4378
|
"enums": {},
|