@agent-native/core 0.158.9 → 0.159.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/corpus/templates/clips/app/components/recorder/recording-toolbar.tsx +2 -2
- package/corpus/templates/clips/app/i18n/en-US.ts +7 -2
- package/corpus/templates/clips/app/routes/record.tsx +147 -5
- package/dist/a2a/auth-policy.d.ts +0 -6
- package/dist/a2a/auth-policy.js +2 -1
- package/dist/a2a/client.js +10 -12
- package/dist/agent/durable-background.js +3 -2
- package/dist/agent/engine/registry.js +5 -4
- package/dist/agent/run-manager.js +8 -20
- package/dist/app-config/a2a.d.ts +14 -0
- package/dist/app-config/a2a.js +42 -0
- package/dist/app-config/agent.d.ts +18 -0
- package/dist/app-config/agent.js +69 -0
- package/dist/app-config/app.d.ts +33 -0
- package/dist/app-config/app.js +100 -0
- package/dist/app-config/describe.d.ts +26 -0
- package/dist/app-config/describe.js +61 -0
- package/dist/app-config/env-layer.d.ts +37 -0
- package/dist/app-config/env-layer.js +136 -0
- package/dist/app-config/index.d.ts +2 -0
- package/dist/app-config/index.js +2 -0
- package/dist/app-config/integrations.d.ts +5 -0
- package/dist/app-config/integrations.js +11 -0
- package/dist/app-config/private-blob.d.ts +14 -0
- package/dist/app-config/private-blob.js +19 -0
- package/dist/app-config/schema.d.ts +55 -0
- package/dist/app-config/schema.js +31 -0
- package/dist/app-config/store.d.ts +42 -0
- package/dist/app-config/store.js +104 -0
- package/dist/app-config/workspace.d.ts +21 -0
- package/dist/app-config/workspace.js +35 -0
- package/dist/cli/agent.js +2 -1
- package/dist/cli/code-agent-executor.js +5 -4
- package/dist/client/analytics.d.ts +9 -0
- package/dist/client/frame.js +11 -1
- package/dist/collab/awareness.d.ts +2 -2
- package/dist/deploy/build.js +36 -0
- package/dist/file-upload/actions/upload-image.d.ts +1 -1
- package/dist/integrations/a2a-continuation-processor.js +12 -9
- package/dist/integrations/adapters/email.js +2 -1
- package/dist/integrations/adapters/telegram.js +2 -1
- package/dist/integrations/adapters/whatsapp.js +2 -1
- package/dist/integrations/webhook-handler.d.ts +7 -2
- package/dist/integrations/webhook-handler.js +9 -31
- package/dist/observability/routes.d.ts +5 -5
- package/dist/onboarding/app-profile.js +2 -4
- package/dist/onboarding/default-steps.js +4 -4
- package/dist/private-blob/registry.d.ts +5 -0
- package/dist/private-blob/registry.js +19 -8
- package/dist/progress/routes.d.ts +1 -1
- package/dist/provider-api/actions/custom-provider-registration.d.ts +13 -13
- package/dist/provider-api/actions/provider-api.d.ts +11 -11
- package/dist/provider-api/corpus-jobs.d.ts +2 -2
- package/dist/resources/handlers.d.ts +1 -1
- package/dist/scripts/agent-engines/list-agent-engines.js +4 -2
- package/dist/secrets/routes.d.ts +9 -9
- package/dist/server/agent-chat/action-filters-a2a.js +5 -4
- package/dist/server/agent-chat/run-code-tools.js +3 -4
- package/dist/server/agent-chat-plugin.js +4 -3
- package/dist/server/agent-discovery.js +7 -5
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/server/app-origin-config.d.ts +23 -0
- package/dist/server/app-origin-config.js +43 -0
- package/dist/server/auth.js +21 -1
- package/dist/server/core-routes-plugin.js +3 -3
- package/dist/server/credential-provider.js +7 -8
- package/dist/server/embed-session.js +2 -1
- package/dist/server/identity-sso.js +6 -2
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +1 -0
- package/dist/server/oauth-public-origin.js +10 -14
- package/dist/server/oauth-return-url.js +5 -9
- package/dist/server/self-dispatch.js +5 -2
- package/dist/server/ssr-handler.js +2 -0
- package/dist/server/workspace-provider-oauth.js +2 -4
- package/dist/sharing/actions/create-agent-resource-link.js +2 -2
- package/dist/usage/metrics-store.js +2 -1
- package/package.json +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { defineAction } from "../../action.js";
|
|
3
|
+
import { getAppConfig } from "../../app-config/index.js";
|
|
3
4
|
import { buildAgentAccessApiUrl, buildAgentAccessUrl, createScopedAgentAccessGrant, } from "../../server/agent-access.js";
|
|
4
5
|
import { getConfiguredAppBasePath } from "../../server/app-base-path.js";
|
|
5
6
|
import { getRequestContext, getRequestUserEmail, } from "../../server/request-context.js";
|
|
@@ -7,8 +8,7 @@ import { ForbiddenError, resolveAccess } from "../access.js";
|
|
|
7
8
|
import { requireShareableResource } from "../registry.js";
|
|
8
9
|
function appOrigin() {
|
|
9
10
|
const origin = getRequestContext()?.requestOrigin ||
|
|
10
|
-
|
|
11
|
-
process.env.BETTER_AUTH_URL ||
|
|
11
|
+
getAppConfig().app.url ||
|
|
12
12
|
"http://localhost:3000";
|
|
13
13
|
try {
|
|
14
14
|
return new URL(origin).origin;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getAppConfig } from "../app-config/index.js";
|
|
1
2
|
import { getDbExec } from "../db/client.js";
|
|
2
3
|
import { ForbiddenError } from "../sharing/access.js";
|
|
3
4
|
import { builderCreditsFromCostCents, usageBillingForEngine, } from "./store.js";
|
|
@@ -271,7 +272,7 @@ async function detectUsageEngineName() {
|
|
|
271
272
|
// The metrics action can still render USD estimates when engine settings
|
|
272
273
|
// are unavailable; the underlying usage rows remain authoritative.
|
|
273
274
|
}
|
|
274
|
-
return
|
|
275
|
+
return getAppConfig().agent.engine ?? null;
|
|
275
276
|
}
|
|
276
277
|
export async function listAppUsageMetrics(input, accessInput) {
|
|
277
278
|
const scope = input.scope === "workspace" ? "workspace" : "me";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-native/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.159.0",
|
|
4
4
|
"description": "Framework for agent-native application development — where AI agents and UI share SQL state, actions, and context",
|
|
5
5
|
"homepage": "https://github.com/BuilderIO/agent-native#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -425,8 +425,8 @@
|
|
|
425
425
|
"y-protocols": "^1.0.7",
|
|
426
426
|
"yjs": "^13.6.31",
|
|
427
427
|
"zod": "^4.3.6",
|
|
428
|
-
"@agent-native/
|
|
429
|
-
"@agent-native/
|
|
428
|
+
"@agent-native/recap-cli": "0.5.4",
|
|
429
|
+
"@agent-native/toolkit": "^0.16.3"
|
|
430
430
|
},
|
|
431
431
|
"devDependencies": {
|
|
432
432
|
"@ai-sdk/anthropic": "^3.0.71",
|