@inkeep/agents-core 0.63.3 → 0.64.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.
- package/dist/api-client/eval-api-client.d.ts +2 -12
- package/dist/api-client/eval-api-client.js +0 -15
- package/dist/api-client/index.d.ts +2 -2
- package/dist/auth/auth.js +28 -9
- package/dist/auth/entitlement-constants.d.ts +11 -0
- package/dist/auth/entitlement-constants.js +10 -0
- package/dist/auth/entitlement-lock.d.ts +6 -0
- package/dist/auth/entitlement-lock.js +13 -0
- package/dist/auth/entitlements.d.ts +11 -0
- package/dist/auth/entitlements.js +55 -0
- package/dist/auth/init.js +2 -4
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +6 -4
- package/dist/client-exports.js +4 -2
- package/dist/constants/models.d.ts +2 -1
- package/dist/constants/models.js +6 -1
- package/dist/constants/otel-attributes.d.ts +2 -0
- package/dist/constants/otel-attributes.js +2 -0
- package/dist/data-access/index.d.ts +5 -4
- package/dist/data-access/index.js +4 -3
- package/dist/data-access/manage/agents.d.ts +83 -41
- package/dist/data-access/manage/artifactComponents.d.ts +8 -8
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/evalConfig.d.ts +49 -3
- package/dist/data-access/manage/evalConfig.js +61 -3
- package/dist/data-access/manage/functionTools.d.ts +10 -10
- package/dist/data-access/manage/projectLifecycle.d.ts +1 -1
- package/dist/data-access/manage/skills.d.ts +12 -12
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +32 -26
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +30 -18
- package/dist/data-access/manage/subAgents.d.ts +51 -15
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/manage/tools.js +41 -4
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +40 -49
- package/dist/data-access/runtime/cascade-delete.d.ts +1 -1
- package/dist/data-access/runtime/conversations.d.ts +25 -25
- package/dist/data-access/runtime/entitlements.d.ts +13 -0
- package/dist/data-access/runtime/entitlements.js +33 -0
- package/dist/data-access/runtime/ledgerArtifacts.d.ts +1 -1
- package/dist/data-access/runtime/messages.d.ts +13 -13
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +47 -2
- package/dist/data-access/runtime/scheduledTriggerInvocations.js +34 -1
- package/dist/data-access/runtime/tasks.d.ts +7 -7
- package/dist/data-access/runtime/workflowExecutions.d.ts +1 -1
- package/dist/data-reconciliation/types.d.ts +1 -1
- package/dist/db/clean.d.ts +1 -1
- package/dist/db/manage/manage-schema.d.ts +674 -596
- package/dist/db/manage/manage-schema.js +154 -134
- package/dist/db/runtime/runtime-schema.d.ts +499 -392
- package/dist/db/runtime/runtime-schema.js +20 -3
- package/dist/dolt/backfill-skill-files.d.ts +41 -0
- package/dist/dolt/backfill-skill-files.js +209 -0
- package/dist/dolt/run-sql-file-on-all-branches.d.ts +29 -0
- package/dist/dolt/run-sql-file-on-all-branches.js +177 -0
- package/dist/index.d.ts +20 -16
- package/dist/index.js +12 -8
- package/dist/middleware/create-protected-route.d.ts +3 -0
- package/dist/middleware/create-protected-route.js +7 -2
- package/dist/middleware/entitlement-meta.d.ts +9 -0
- package/dist/middleware/entitlement-meta.js +11 -0
- package/dist/middleware/index.d.ts +2 -1
- package/dist/middleware/index.js +2 -1
- package/dist/types/entities.d.ts +8 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/types/utility.d.ts +5 -6
- package/dist/utils/error.d.ts +54 -51
- package/dist/utils/error.js +3 -0
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.js +2 -2
- package/dist/utils/mcp-client.d.ts +1 -1
- package/dist/utils/mcp-client.js +1 -1
- package/dist/utils/model-factory.js +24 -9
- package/dist/utils/usage-cost-middleware.d.ts +2 -1
- package/dist/utils/usage-cost-middleware.js +22 -5
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas/skills.d.ts +45 -45
- package/dist/validation/schemas.d.ts +3504 -2569
- package/dist/validation/schemas.js +22 -24
- package/drizzle/manage/0016_complex_klaw.sql +2 -0
- package/drizzle/manage/0017_brief_doctor_strange.sql +29 -0
- package/drizzle/manage/meta/0016_snapshot.json +3530 -0
- package/drizzle/manage/meta/0017_snapshot.json +3748 -0
- package/drizzle/manage/meta/_journal.json +14 -0
- package/drizzle/runtime/0029_burly_satana.sql +13 -0
- package/drizzle/runtime/0030_set-allow-anonymous-for-existing-apps.sql +56 -0
- package/drizzle/runtime/meta/0029_snapshot.json +4756 -0
- package/drizzle/runtime/meta/_journal.json +14 -0
- package/package.json +3 -1
- /package/drizzle/runtime/meta/{0023_snapshot.json → 0025_snapshot.json} +0 -0
|
@@ -113,6 +113,20 @@
|
|
|
113
113
|
"when": 1774882222737,
|
|
114
114
|
"tag": "0015_backfill_skill_files",
|
|
115
115
|
"breakpoints": true
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"idx": 16,
|
|
119
|
+
"version": "7",
|
|
120
|
+
"when": 1774968024482,
|
|
121
|
+
"tag": "0016_complex_klaw",
|
|
122
|
+
"breakpoints": true
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"idx": 17,
|
|
126
|
+
"version": "7",
|
|
127
|
+
"when": 1774971562824,
|
|
128
|
+
"tag": "0017_brief_doctor_strange",
|
|
129
|
+
"breakpoints": true
|
|
116
130
|
}
|
|
117
131
|
]
|
|
118
132
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
CREATE TABLE "org_entitlement" (
|
|
2
|
+
"id" varchar(256) PRIMARY KEY NOT NULL,
|
|
3
|
+
"organization_id" varchar(256) NOT NULL,
|
|
4
|
+
"resource_type" text NOT NULL,
|
|
5
|
+
"max_value" integer NOT NULL,
|
|
6
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
7
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
8
|
+
CONSTRAINT "org_entitlement_org_resource_unique" UNIQUE("organization_id","resource_type"),
|
|
9
|
+
CONSTRAINT "org_entitlement_resource_type_format" CHECK (resource_type ~ '^[a-z]+:[a-z][a-z0-9_]*$')
|
|
10
|
+
);
|
|
11
|
+
--> statement-breakpoint
|
|
12
|
+
ALTER TABLE "org_entitlement" ADD CONSTRAINT "org_entitlement_organization_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
13
|
+
CREATE INDEX "org_entitlement_org_idx" ON "org_entitlement" USING btree ("organization_id");
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
-- Flatten auth config: move fields from webClient.auth.* to webClient.*,
|
|
2
|
+
-- backfill allowAnonymous, and remove validateScopeClaims (now always-on for global apps).
|
|
3
|
+
|
|
4
|
+
-- Step 1: For apps that have a nested auth object, hoist its fields up to webClient.
|
|
5
|
+
-- This moves publicKeys, audience, and allowAnonymous from webClient.auth to webClient
|
|
6
|
+
-- directly, then removes the auth key. validateScopeClaims is intentionally not hoisted
|
|
7
|
+
-- as it is being removed (scope validation is now always-on for global apps).
|
|
8
|
+
UPDATE apps
|
|
9
|
+
SET config = jsonb_set(
|
|
10
|
+
jsonb_set(
|
|
11
|
+
jsonb_set(
|
|
12
|
+
config #- '{webClient,auth}',
|
|
13
|
+
'{webClient,publicKeys}',
|
|
14
|
+
COALESCE(config->'webClient'->'auth'->'publicKeys', '[]'::jsonb)
|
|
15
|
+
),
|
|
16
|
+
'{webClient,audience}',
|
|
17
|
+
COALESCE(config->'webClient'->'auth'->'audience', 'null'::jsonb)
|
|
18
|
+
),
|
|
19
|
+
'{webClient,allowAnonymous}',
|
|
20
|
+
COALESCE(config->'webClient'->'auth'->'allowAnonymous', 'null'::jsonb)
|
|
21
|
+
)
|
|
22
|
+
WHERE type = 'web_client'
|
|
23
|
+
AND config->'webClient'->'auth' IS NOT NULL;--> statement-breakpoint
|
|
24
|
+
-- Step 2: Clean up null-valued fields that were hoisted from a missing auth sub-field.
|
|
25
|
+
UPDATE apps
|
|
26
|
+
SET config = config #- '{webClient,audience}'
|
|
27
|
+
WHERE type = 'web_client'
|
|
28
|
+
AND config->'webClient'->'audience' = 'null'::jsonb;--> statement-breakpoint
|
|
29
|
+
UPDATE apps
|
|
30
|
+
SET config = config #- '{webClient,allowAnonymous}'
|
|
31
|
+
WHERE type = 'web_client'
|
|
32
|
+
AND config->'webClient'->'allowAnonymous' = 'null'::jsonb;--> statement-breakpoint
|
|
33
|
+
-- Step 3: Remove validateScopeClaims from all apps (now always-on for global apps).
|
|
34
|
+
UPDATE apps
|
|
35
|
+
SET config = config #- '{webClient,validateScopeClaims}'
|
|
36
|
+
WHERE type = 'web_client'
|
|
37
|
+
AND config->'webClient'->'validateScopeClaims' IS NOT NULL;--> statement-breakpoint
|
|
38
|
+
-- Step 4: Backfill allowAnonymous=true for apps that still don't have it set
|
|
39
|
+
-- (preserves existing "allow anonymous" behavior for old apps).
|
|
40
|
+
UPDATE apps
|
|
41
|
+
SET config = jsonb_set(
|
|
42
|
+
config,
|
|
43
|
+
'{webClient,allowAnonymous}',
|
|
44
|
+
'true'::jsonb,
|
|
45
|
+
true
|
|
46
|
+
)
|
|
47
|
+
WHERE type = 'web_client'
|
|
48
|
+
AND (config->'webClient'->'allowAnonymous') IS NULL;--> statement-breakpoint
|
|
49
|
+
-- Step 5: Set playground app to require authentication.
|
|
50
|
+
UPDATE apps
|
|
51
|
+
SET config = jsonb_set(
|
|
52
|
+
config,
|
|
53
|
+
'{webClient,allowAnonymous}',
|
|
54
|
+
'false'::jsonb
|
|
55
|
+
)
|
|
56
|
+
WHERE id = 'app_playground';
|