@agent-native/core 0.198.3-nightly-20260930124743 → 0.198.3
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/cli/create-tui.js +31 -9
- package/dist/cli/create.js +14 -0
- package/dist/cli/design-connect.js +10 -2
- package/dist/cli/migration-codemod.js +2 -1
- package/dist/cli/skills.js +15 -32
- package/dist/cli/upgrade.d.ts +3 -2
- package/dist/cli/upgrade.js +3 -0
- package/dist/cli/workspacify.js +1 -1
- package/dist/collab/struct-routes.d.ts +1 -1
- package/dist/db/client.d.ts +3 -0
- package/dist/db/client.js +7 -4
- package/dist/db/create-get-db.js +478 -3
- package/dist/deploy/workspace-deploy.js +18 -5
- package/dist/file-upload/actions/upload-image.d.ts +2 -2
- package/dist/jobs/actions/manage-recurring-job.d.ts +1 -1
- package/dist/localization/core-messages/supplemental/ar-SA.js +2 -0
- package/dist/localization/core-messages/supplemental/de-DE.js +2 -0
- package/dist/localization/core-messages/supplemental/en-US.js +2 -0
- package/dist/localization/core-messages/supplemental/es-ES.js +2 -0
- package/dist/localization/core-messages/supplemental/fr-FR.js +2 -0
- package/dist/localization/core-messages/supplemental/hi-IN.js +2 -0
- package/dist/localization/core-messages/supplemental/ja-JP.js +2 -0
- package/dist/localization/core-messages/supplemental/ko-KR.js +2 -0
- package/dist/localization/core-messages/supplemental/pt-BR.js +2 -0
- package/dist/localization/core-messages/supplemental/zh-CN.js +2 -0
- package/dist/localization/core-messages/supplemental/zh-TW.js +2 -0
- package/dist/localization/mcp-settings-messages.d.ts +2 -0
- package/dist/mcp/connect-route.js +57 -10
- package/dist/mcp/oauth-route.js +4 -21
- package/dist/mcp/org-choice.d.ts +26 -0
- package/dist/mcp/org-choice.js +36 -0
- package/dist/observability/routes.d.ts +1 -1
- package/dist/org/handlers.d.ts +1 -1
- package/dist/org/index.d.ts +1 -1
- package/dist/org/index.js +1 -1
- package/dist/provider-api/actions/custom-provider-registration.d.ts +10 -10
- package/dist/provider-api/actions/provider-api.d.ts +12 -12
- package/dist/provider-api/corpus-jobs.d.ts +2 -2
- package/dist/resources/handlers.d.ts +1 -1
- package/dist/secrets/routes.d.ts +10 -10
- package/dist/server/agent-engine-default-model-route.d.ts +2 -2
- package/dist/server/agent-engine-ollama-models-route.d.ts +2 -2
- package/dist/server/credential-provider.js +5 -0
- package/dist/sharing/access.js +4 -3
- package/dist/vite/client.js +11 -3
- package/package.json +4 -4
|
@@ -126,6 +126,8 @@ const APP_PROVIDED_DEPLOY_CREDENTIAL_KEYS = new Set([
|
|
|
126
126
|
"NOTION_CLIENT_ID",
|
|
127
127
|
"NOTION_CLIENT_SECRET",
|
|
128
128
|
"SLACK_BOT_TOKEN",
|
|
129
|
+
// Signs events from the deployed Slack app, not the integration owner's identity.
|
|
130
|
+
"SLACK_SIGNING_SECRET",
|
|
129
131
|
"RESEND_API_KEY",
|
|
130
132
|
"SENDGRID_API_KEY",
|
|
131
133
|
]);
|
|
@@ -1509,6 +1511,9 @@ export async function resolveSecretDetailed(key, options = {}) {
|
|
|
1509
1511
|
lookupFailed = true;
|
|
1510
1512
|
cause = err;
|
|
1511
1513
|
}
|
|
1514
|
+
if (lookupFailed && !isTrustedSelfHostedRuntime()) {
|
|
1515
|
+
return { value: null, lookupFailed: true, cause };
|
|
1516
|
+
}
|
|
1512
1517
|
const envFallback = (isBuilderCredentialKey(key)
|
|
1513
1518
|
? canUseBuilderDeployCredentialFallbackForRequest()
|
|
1514
1519
|
: canUseDeployCredentialFallbackForRequest(key))
|
package/dist/sharing/access.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { and, eq, isNull, or, sql } from "drizzle-orm";
|
|
2
2
|
import { drizzle as drizzleProxy } from "drizzle-orm/pg-proxy";
|
|
3
|
-
import { withDbExec } from "../db/client.js";
|
|
3
|
+
import { getScopedDbExec, withDbExec } from "../db/client.js";
|
|
4
4
|
import { evaluateFeatureFlagStrict } from "../feature-flags/store.js";
|
|
5
5
|
import { CROSS_APP_ORG_FEDERATION_FLAG } from "../org/feature-flags.js";
|
|
6
6
|
import { isMissingOrganizationTableError } from "../org/membership.js";
|
|
@@ -322,17 +322,18 @@ export async function resolveAccess(resourceType, resourceId, rawCtx = currentAc
|
|
|
322
322
|
}
|
|
323
323
|
async function resolveAccessImpl(resourceType, resourceId, rawCtx = currentAccess(), options = {}) {
|
|
324
324
|
const registered = requireShareableResource(resourceType);
|
|
325
|
-
const transaction = rawCtx.transaction;
|
|
325
|
+
const transaction = rawCtx.transaction ?? getScopedDbExec();
|
|
326
326
|
const transactionDb = transaction
|
|
327
327
|
? drizzleProxy(async (query, params) => {
|
|
328
328
|
const result = await transaction.execute({ sql: query, args: params });
|
|
329
329
|
return { rows: result.rows.map((row) => Object.values(row)) };
|
|
330
330
|
})
|
|
331
331
|
: null;
|
|
332
|
+
const transactionCtx = transaction ? { ...rawCtx, transaction } : rawCtx;
|
|
332
333
|
const reg = transactionDb
|
|
333
334
|
? { ...registered, getDb: () => transactionDb }
|
|
334
335
|
: registered;
|
|
335
|
-
const ctx = resolveRegisteredAccessContext(reg,
|
|
336
|
+
const ctx = resolveRegisteredAccessContext(reg, transactionCtx);
|
|
336
337
|
const resource = await loadResourceForAccess(reg, resourceId, options);
|
|
337
338
|
if (!resource)
|
|
338
339
|
return null;
|
package/dist/vite/client.js
CHANGED
|
@@ -2208,12 +2208,20 @@ function ssrStubPlugin(packages) {
|
|
|
2208
2208
|
load(id) {
|
|
2209
2209
|
if (id !== STUB_ID)
|
|
2210
2210
|
return null;
|
|
2211
|
-
return ("
|
|
2211
|
+
return ("function makeStub() { return new Proxy(makeStub, resultHandler); } " +
|
|
2212
|
+
"const handler = { get(_, p) { " +
|
|
2212
2213
|
"if (p === Symbol.toPrimitive) return () => ''; " +
|
|
2213
2214
|
"if (p === 'then') return undefined; " +
|
|
2214
|
-
"return new Proxy(
|
|
2215
|
+
"return new Proxy(makeStub, handler); " +
|
|
2215
2216
|
"} };" +
|
|
2216
|
-
"const
|
|
2217
|
+
"const resultHandler = { get(_, p) { " +
|
|
2218
|
+
"if (p === Symbol.toPrimitive) return () => ''; " +
|
|
2219
|
+
"if (p === 'then') return (resolve) => { " +
|
|
2220
|
+
"if (typeof resolve === 'function') resolve(''); " +
|
|
2221
|
+
"return new Proxy(makeStub, resultHandler); }; " +
|
|
2222
|
+
"return new Proxy(makeStub, resultHandler); " +
|
|
2223
|
+
"} };" +
|
|
2224
|
+
"const stub = new Proxy(makeStub, handler);" +
|
|
2217
2225
|
"export default stub;" +
|
|
2218
2226
|
namedExports.map((name) => `export const ${name} = stub;`).join(""));
|
|
2219
2227
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-native/core",
|
|
3
|
-
"version": "0.198.3
|
|
3
|
+
"version": "0.198.3",
|
|
4
4
|
"description": "The agentic application framework for building autonomous agents with intuitive UIs",
|
|
5
5
|
"homepage": "https://github.com/BuilderIO/agent-native#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -659,8 +659,8 @@
|
|
|
659
659
|
"yaml": "^2.9.0",
|
|
660
660
|
"yjs": "^13.6.33",
|
|
661
661
|
"zod": "^4.3.6",
|
|
662
|
-
"@agent-native/agentkit": "^0.198.3
|
|
663
|
-
"@agent-native/recap-cli": "^0.5.
|
|
662
|
+
"@agent-native/agentkit": "^0.198.3",
|
|
663
|
+
"@agent-native/recap-cli": "^0.5.53"
|
|
664
664
|
},
|
|
665
665
|
"devDependencies": {
|
|
666
666
|
"@ai-sdk/anthropic": "^3.0.71",
|
|
@@ -732,7 +732,7 @@
|
|
|
732
732
|
"xlsx": "^0.18.5"
|
|
733
733
|
},
|
|
734
734
|
"peerDependencies": {
|
|
735
|
-
"@agent-native/core-corpus": "0.
|
|
735
|
+
"@agent-native/core-corpus": ">=0.196.0",
|
|
736
736
|
"@ai-sdk/anthropic": ">=3",
|
|
737
737
|
"@ai-sdk/cohere": ">=3",
|
|
738
738
|
"@ai-sdk/google": ">=3",
|