@agent-native/core 0.161.20 → 0.161.22
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/README.md +1 -1
- package/corpus/templates/clips/actions/finalize-meeting.ts +57 -21
- package/corpus/templates/clips/actions/get-meeting.ts +11 -3
- package/corpus/templates/clips/actions/request-transcript.ts +183 -8
- package/corpus/templates/clips/actions/update-meeting.ts +66 -14
- package/corpus/templates/clips/app/components/meetings/canvas-editor.tsx +80 -135
- package/corpus/templates/clips/app/i18n/en-US.ts +4 -0
- package/corpus/templates/clips/app/routes/_app.meetings.$meetingId.tsx +470 -35
- package/corpus/templates/clips/changelog/2026-08-18-meeting-notes-support-rich-editing-for-personal-notes-summar.md +6 -0
- package/corpus/templates/clips/desktop/src-tauri/src/whisper_speech.rs +13 -3
- package/corpus/templates/mail/app/components/email/EmailList.tsx +74 -22
- package/corpus/templates/mail/app/components/email/infinite-pagination.ts +82 -0
- package/corpus/templates/mail/app/hooks/use-emails.ts +1 -0
- package/corpus/templates/mail/app/pages/InboxPage.tsx +15 -10
- package/corpus/templates/mail/app/pages/inbox-zero.ts +35 -0
- package/corpus/templates/mail/changelog/2026-08-18-pinned-labels-load-matches.md +6 -0
- package/corpus/templates/slides/actions/get-deck.ts +5 -1
- package/corpus/templates/slides/actions/list-decks.ts +29 -8
- package/corpus/templates/slides/actions/view-screen.ts +7 -3
- package/corpus/templates/slides/changelog/2026-08-18-decks-appear-under-mine.md +6 -0
- package/corpus/templates/slides/shared/ownership.ts +6 -0
- package/dist/app-config/schema.d.ts +2 -0
- package/dist/app-config/workspace.d.ts +2 -0
- package/dist/app-config/workspace.js +18 -0
- package/dist/catalog.json +23 -23
- package/dist/client/analytics.d.ts +1 -0
- package/dist/client/api-path.js +7 -3
- package/dist/client/frame.js +20 -6
- package/dist/client/org/workspace-app-links.js +10 -1
- package/dist/collab/awareness.d.ts +2 -2
- package/dist/collab/struct-routes.d.ts +1 -1
- package/dist/deploy/build.js +26 -2
- package/dist/file-upload/actions/upload-image.d.ts +1 -1
- package/dist/notifications/routes.d.ts +1 -1
- package/dist/observability/routes.d.ts +6 -6
- package/dist/progress/routes.d.ts +1 -1
- package/dist/provider-api/actions/custom-provider-registration.d.ts +14 -14
- package/dist/provider-api/actions/provider-api.d.ts +15 -15
- package/dist/secrets/routes.d.ts +9 -9
- package/dist/server/agent-engine-api-key-route.d.ts +1 -1
- package/dist/server/app-origin-config.d.ts +1 -0
- package/dist/server/app-origin-config.js +3 -0
- package/dist/server/auth.js +2 -2
- package/dist/server/cookie-namespace.js +17 -2
- package/dist/server/credential-provider.js +5 -2
- package/dist/server/derived-secret.js +3 -2
- package/dist/server/onboarding-html.js +34 -2
- package/dist/server/workspace-oauth.js +11 -6
- package/dist/shared/runtime-config.d.ts +2 -0
- package/dist/shared/runtime-config.js +12 -3
- package/dist/vite/client.js +5 -2
- package/package.json +2 -2
|
@@ -5,6 +5,13 @@
|
|
|
5
5
|
* process.env so the same rules can run during a Vite build, on the server,
|
|
6
6
|
* and in focused tests without ever exposing secret values to the browser.
|
|
7
7
|
*/
|
|
8
|
+
/** Parse the truthy spellings accepted by typed runtime configuration flags. */
|
|
9
|
+
export function isTruthyRuntimeValue(value) {
|
|
10
|
+
if (value === true)
|
|
11
|
+
return true;
|
|
12
|
+
return (typeof value === "string" &&
|
|
13
|
+
["1", "true", "yes", "on"].includes(value.trim().toLowerCase()));
|
|
14
|
+
}
|
|
8
15
|
const ENV_KEY_PATTERN = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
9
16
|
const RUNTIME_CONFIG_ISSUE_CODES = new Set([
|
|
10
17
|
"auth-disabled-in-production",
|
|
@@ -36,7 +43,7 @@ function valueOf(env, key) {
|
|
|
36
43
|
return value || undefined;
|
|
37
44
|
}
|
|
38
45
|
function truthy(value) {
|
|
39
|
-
return value
|
|
46
|
+
return isTruthyRuntimeValue(value);
|
|
40
47
|
}
|
|
41
48
|
function isProductionEnvironment(env) {
|
|
42
49
|
return (valueOf(env, "NODE_ENV") === "production" ||
|
|
@@ -44,8 +51,10 @@ function isProductionEnvironment(env) {
|
|
|
44
51
|
valueOf(env, "VERCEL_ENV") === "production");
|
|
45
52
|
}
|
|
46
53
|
function isWorkspaceRuntime(env) {
|
|
47
|
-
return (valueOf(env, "AGENT_NATIVE_WORKSPACE")
|
|
48
|
-
valueOf(env, "VITE_AGENT_NATIVE_WORKSPACE")
|
|
54
|
+
return (isTruthyRuntimeValue(valueOf(env, "AGENT_NATIVE_WORKSPACE")) ||
|
|
55
|
+
isTruthyRuntimeValue(valueOf(env, "VITE_AGENT_NATIVE_WORKSPACE")) ||
|
|
56
|
+
Boolean(valueOf(env, "AGENT_NATIVE_WORKSPACE_APPS_JSON")) ||
|
|
57
|
+
Boolean(valueOf(env, "VITE_AGENT_NATIVE_WORKSPACE_APPS_JSON")));
|
|
49
58
|
}
|
|
50
59
|
function appEnvPrefix(env, appName) {
|
|
51
60
|
const raw = appName ?? valueOf(env, "APP_NAME");
|
package/dist/vite/client.js
CHANGED
|
@@ -15,7 +15,7 @@ import { EMBED_SESSION_COOKIE, EMBED_TOKEN_QUERY_PARAM, MCP_APP_CHAT_BRIDGE_QUER
|
|
|
15
15
|
import { isMcpEmbedCorsOrigin, MCP_EMBED_CORS_ALLOW_HEADERS, MCP_EMBED_STATIC_ASSET_HEADERS, mcpEmbedStaticAssetRouteRules, shouldAllowMcpEmbedCredentials, } from "../shared/mcp-embed-headers.js";
|
|
16
16
|
import { normalizeMcpIntegrationsConfig, } from "../shared/mcp-integration-config.js";
|
|
17
17
|
import { normalizeAgentNativeRouteWarmupConfig, } from "../shared/route-warmup-config.js";
|
|
18
|
-
import { formatRuntimeConfigReport, getRuntimeConfigReport, } from "../shared/runtime-config.js";
|
|
18
|
+
import { formatRuntimeConfigReport, getRuntimeConfigReport, isTruthyRuntimeValue, } from "../shared/runtime-config.js";
|
|
19
19
|
import { actionTypesPlugin } from "./action-types-plugin.js";
|
|
20
20
|
import { createAgentNativeConfigContext, loadAgentNativeConfigFile, loadWorkspaceAgentNativeConfigFile, readAgentNativeJsonConfig, } from "./agent-native-config-loader.js";
|
|
21
21
|
import { agentsBundlePlugin } from "./agents-bundle-plugin.js";
|
|
@@ -2791,7 +2791,10 @@ function createAgentNativeConfig(options = {}, command, userConfig = {}, mode =
|
|
|
2791
2791
|
};
|
|
2792
2792
|
reportRuntimeConfigDiagnostics(appConfig, configContext, mode, runtimeEnv);
|
|
2793
2793
|
const { base } = getConfiguredAppBasePath();
|
|
2794
|
-
const isWorkspaceChild = process.env.AGENT_NATIVE_WORKSPACE
|
|
2794
|
+
const isWorkspaceChild = isTruthyRuntimeValue(process.env.AGENT_NATIVE_WORKSPACE) ||
|
|
2795
|
+
isTruthyRuntimeValue(process.env.VITE_AGENT_NATIVE_WORKSPACE) ||
|
|
2796
|
+
Boolean(process.env.AGENT_NATIVE_WORKSPACE_APPS_JSON?.trim()) ||
|
|
2797
|
+
Boolean(process.env.VITE_AGENT_NATIVE_WORKSPACE_APPS_JSON?.trim());
|
|
2795
2798
|
const monorepoPackageAllow = [
|
|
2796
2799
|
path.resolve(cwd, "../../packages/core"),
|
|
2797
2800
|
path.resolve(cwd, "../core"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-native/core",
|
|
3
|
-
"version": "0.161.
|
|
3
|
+
"version": "0.161.22",
|
|
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,7 +425,7 @@
|
|
|
425
425
|
"tweetnacl": "^1.0.3",
|
|
426
426
|
"undici": "^7.28.0",
|
|
427
427
|
"y-protocols": "^1.0.7",
|
|
428
|
-
"yjs": "^13.6.
|
|
428
|
+
"yjs": "^13.6.32",
|
|
429
429
|
"zod": "^4.3.6",
|
|
430
430
|
"@agent-native/recap-cli": "0.5.4",
|
|
431
431
|
"@agent-native/toolkit": "^0.16.4"
|