@agent-native/core 0.165.4 → 0.167.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/README.md +1 -1
- package/corpus/templates/analytics/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/analytics/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/analytics/app/components/layout/Sidebar.tsx +93 -56
- package/corpus/templates/analytics/app/i18n-data.ts +23 -20
- package/corpus/templates/analytics/app/pages/Settings.tsx +0 -1
- package/corpus/templates/analytics/app/pages/adhoc/explorer/index.tsx +0 -1
- package/corpus/templates/analytics/app/pages/adhoc/explorer-dashboard/index.tsx +1 -1
- package/corpus/templates/analytics/app/pages/adhoc/sql-dashboard/SqlChartCard.tsx +2 -1
- package/corpus/templates/analytics/app/pages/sessions/SessionsPage.tsx +0 -1
- package/corpus/templates/analytics/server/lib/first-party-analytics-backend.ts +0 -32
- package/corpus/templates/analytics/server/lib/session-replay.ts +1 -5
- package/corpus/templates/assets/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/assets/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/assets/actions/navigate.ts +2 -2
- package/corpus/templates/assets/actions/save-generated-image.ts +0 -5
- package/corpus/templates/assets/app/routes/brand-kits.$id.tsx +2 -262
- package/corpus/templates/assets/app/routes/library.tsx +1 -1
- package/corpus/templates/assets/app/routes/settings.tsx +0 -3
- package/corpus/templates/brain/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/brain/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/brain/actions/ask-brain.ts +0 -1
- package/corpus/templates/brain/actions/navigate.ts +2 -2
- package/corpus/templates/brain/app/routes/sources.tsx +0 -4
- package/corpus/templates/brain/server/lib/capture-sanitization.ts +0 -11
- package/corpus/templates/calendar/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/calendar/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/calendar/app/components/calendar/EventDetailPopover.tsx +0 -20
- package/corpus/templates/calendar/app/pages/CalendarView.tsx +0 -1
- package/corpus/templates/chat/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/chat/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/chat/actions/navigate.ts +2 -2
- package/corpus/templates/clips/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/clips/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/clips/CHANGELOG.md +1 -0
- package/corpus/templates/clips/actions/import-loom-recording.ts +16 -4
- package/corpus/templates/clips/actions/navigate.ts +2 -2
- package/corpus/templates/clips/app/components/editor/stitch-manager.tsx +0 -1
- package/corpus/templates/clips/app/components/library/space-dialogs.tsx +0 -1
- package/corpus/templates/clips/app/components/meetings/share-meeting-dialog.tsx +0 -1
- package/corpus/templates/clips/app/components/player/clips-share-trigger.tsx +17 -0
- package/corpus/templates/clips/app/components/player/delete-recording-menu.tsx +3 -3
- package/corpus/templates/clips/app/components/player/video-player.tsx +2 -2
- package/corpus/templates/clips/app/components/recorder/recorder-engine.ts +0 -1
- package/corpus/templates/clips/app/components/settings/ai-setup-section.tsx +0 -1
- package/corpus/templates/clips/app/global.css +31 -0
- package/corpus/templates/clips/app/hooks/use-playback-position.ts +0 -2
- package/corpus/templates/clips/app/lib/download-release-channel.ts +10 -0
- package/corpus/templates/clips/app/routes/_app.meetings.$meetingId.tsx +1 -3
- package/corpus/templates/clips/app/routes/download.tsx +67 -44
- package/corpus/templates/clips/app/routes/r.$recordingId.tsx +7 -12
- package/corpus/templates/clips/app/routes/record.tsx +6 -6
- package/corpus/templates/clips/app/routes/share.$shareId.tsx +26 -29
- package/corpus/templates/clips/changelog/2026-08-20-clip-viewer-share-actions.md +6 -0
- package/corpus/templates/clips/changelog/2026-08-20-preparing-recording-countdown-overlay.md +1 -0
- package/corpus/templates/clips/chrome-extension/src/background.ts +0 -13
- package/corpus/templates/clips/chrome-extension/src/overlay.ts +0 -1
- package/corpus/templates/clips/chrome-extension/src/popup.ts +0 -20
- package/corpus/templates/clips/desktop/src/app.tsx +6 -18
- package/corpus/templates/clips/desktop/src/hooks/useMediaDevices.ts +0 -1
- package/corpus/templates/clips/desktop/src/lib/recorder.ts +0 -8
- package/corpus/templates/content/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/content/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/content/actions/_database-source-utils.ts +0 -3
- package/corpus/templates/content/actions/attach-content-database-source.ts +1 -4
- package/corpus/templates/content/actions/navigate.ts +2 -2
- package/corpus/templates/content/actions/prepare-builder-source-execution.ts +1 -1
- package/corpus/templates/content/app/components/editor/DocumentProperties.tsx +0 -6
- package/corpus/templates/content/app/components/editor/database/DatabaseView.tsx +0 -580
- package/corpus/templates/content/app/components/editor/database/FormView.tsx +2 -2
- package/corpus/templates/content/app/components/editor/database/filter-sort.ts +1 -1
- package/corpus/templates/content/app/components/editor/database/settings.tsx +0 -23
- package/corpus/templates/content/app/components/editor/database/sidebar.tsx +0 -1
- package/corpus/templates/content/app/components/sidebar/DocumentSidebar.tsx +8 -304
- package/corpus/templates/content/app/hooks/use-documents.ts +0 -1
- package/corpus/templates/content/shared/api.ts +0 -1
- package/corpus/templates/content/shared/builder-mdx.ts +0 -1
- package/corpus/templates/content/shared/nfm.ts +1 -7
- package/corpus/templates/crm/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/crm/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/crm/actions/merge-crm-records.ts +0 -4
- package/corpus/templates/crm/app/components/crm/record/RecordLists.tsx +0 -1
- package/corpus/templates/crm/server/crm/hubspot-adapter.ts +0 -1
- package/corpus/templates/crm/server/crm/salesforce-adapter.ts +0 -1
- package/corpus/templates/crm/server/db/crm-store.ts +1 -1
- package/corpus/templates/design/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/design/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/design/.generated/bridge/editor-chrome.generated.ts +1 -14
- package/corpus/templates/design/AGENTS.md +2 -1
- package/corpus/templates/design/actions/apply-component-prop-edit.ts +1 -5
- package/corpus/templates/design/actions/generate-design.ts +0 -1
- package/corpus/templates/design/actions/generate-screens.ts +5 -2
- package/corpus/templates/design/actions/go-to-main-component.ts +2 -2
- package/corpus/templates/design/actions/list-design-systems.ts +10 -0
- package/corpus/templates/design/actions/navigate.ts +2 -2
- package/corpus/templates/design/actions/open-component-source.ts +4 -4
- package/corpus/templates/design/actions/present-design-variants.ts +1 -2
- package/corpus/templates/design/actions/run-design-audit.ts +0 -22
- package/corpus/templates/design/actions/show-design-questions.ts +5 -2
- package/corpus/templates/design/app/components/design/DesignCanvas.tsx +19 -8
- package/corpus/templates/design/app/components/design/EditPanel.tsx +11 -183
- package/corpus/templates/design/app/components/design/MultiScreenCanvas.tsx +21 -4
- package/corpus/templates/design/app/components/design/QuestionFlow.tsx +1 -5
- package/corpus/templates/design/app/components/design/bridge/codegen.ts +1 -1
- package/corpus/templates/design/app/components/design/bridge/editor-chrome.bridge.ts +10 -19
- package/corpus/templates/design/app/components/design/edit-panel/appearance-properties.tsx +1 -1
- package/corpus/templates/design/app/components/design/edit-panel/layout-properties.tsx +13 -3
- package/corpus/templates/design/app/components/design/edit-panel/panel-primitives.tsx +38 -32
- package/corpus/templates/design/app/components/design/edit-panel/position-layout-properties.tsx +1 -4
- package/corpus/templates/design/app/components/design/inspector/AlignmentMatrix.tsx +0 -4
- package/corpus/templates/design/app/components/design/inspector/AutoLayoutMatrix.tsx +15 -6
- package/corpus/templates/design/app/components/design/inspector/DesignColorPicker.tsx +2 -2
- package/corpus/templates/design/app/components/visual-editor/NodeRewriteProposal.tsx +0 -1
- package/corpus/templates/design/app/components/visual-editor/ReviewCanvasPins.tsx +1 -1
- package/corpus/templates/design/app/i18n-data.ts +122 -0
- package/corpus/templates/design/app/lib/clipboard-content-lineage.ts +11 -1
- package/corpus/templates/design/app/pages/DesignEditor.tsx +50 -254
- package/corpus/templates/design/app/pages/DesignSystemSetup.tsx +163 -8
- package/corpus/templates/design/app/pages/Index.tsx +17 -0
- package/corpus/templates/design/app/pages/design-editor/canvas-primitive-insert.ts +44 -32
- package/corpus/templates/design/app/pages/design-editor/canvas-primitives.ts +10 -0
- package/corpus/templates/design/app/pages/design-editor/clone-and-pen-edit.ts +49 -3
- package/corpus/templates/design/app/pages/design-editor/clone-idrefs.ts +31 -0
- package/corpus/templates/design/app/pages/design-editor/code-layer-state.ts +28 -0
- package/corpus/templates/design/app/pages/design-editor/commands/add-auto-layout.ts +3 -3
- package/corpus/templates/design/app/pages/design-editor/commands/align-selection.ts +44 -14
- package/corpus/templates/design/app/pages/design-editor/commands/apply-local-content-update.ts +16 -5
- package/corpus/templates/design/app/pages/design-editor/commands/change-selected-z-index.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/commands/frame-selection.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/commands/group-selection.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/commands/nudge-selection.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/commands/paste-selection.ts +142 -17
- package/corpus/templates/design/app/pages/design-editor/commands/screen-visual-duplicate-change.ts +1 -0
- package/corpus/templates/design/app/pages/design-editor/commands/ungroup-selection.ts +1 -1
- package/corpus/templates/design/app/pages/design-editor/commands/visual-duplicate-change.ts +1 -0
- package/corpus/templates/design/app/pages/design-editor/cross-screen-text-color.ts +25 -9
- package/corpus/templates/design/app/pages/design-editor/editor-state.ts +1 -0
- package/corpus/templates/design/app/pages/design-editor/measure-child-rects.ts +83 -0
- package/corpus/templates/design/app/pages/design-editor/paste-placement.ts +66 -0
- package/corpus/templates/design/server/routes/[...page].get.ts +0 -1
- package/corpus/templates/design/shared/code-layer.ts +120 -70
- package/corpus/templates/design/shared/design-surface-index.ts +0 -1
- package/corpus/templates/design/shared/pen-path.ts +0 -4
- package/corpus/templates/dispatch/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/dispatch/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/dispatch/app/routes/integrations.tsx +0 -109
- package/corpus/templates/factory/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/factory/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/factory/actions/navigate.ts +2 -2
- package/corpus/templates/factory/app/components/factory/FactoryAuditView.tsx +0 -13
- package/corpus/templates/factory/app/routes/factory.tsx +0 -1
- package/corpus/templates/factory/server/factory-graph/store.ts +0 -1
- package/corpus/templates/forms/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/forms/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/macros/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/macros/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/macros/app/components/layout/AppLayout.tsx +0 -1
- package/corpus/templates/mail/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/mail/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/mail/app/components/email/EmailList.tsx +0 -1
- package/corpus/templates/mail/app/components/layout/AppLayout.tsx +2 -2
- package/corpus/templates/mail/shared/markdown.ts +3 -0
- package/corpus/templates/plan/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/plan/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/slides/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/slides/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/slides/actions/add-slide.ts +0 -1
- package/corpus/templates/slides/actions/list-decks.ts +1 -1
- package/corpus/templates/slides/app/components/editor/EditorSidebar.tsx +1 -4
- package/corpus/templates/slides/app/components/editor/SlideContextToolbar.tsx +0 -1
- package/corpus/templates/slides/app/components/editor/SlideEditor.tsx +1 -1
- package/corpus/templates/slides/app/pages/DeckEditor.tsx +1 -6
- package/corpus/templates/tasks/.agents/skills/secrets/SKILL.md +5 -1
- package/corpus/templates/tasks/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/corpus/templates/tasks/app/components/layout/Layout.tsx +0 -1
- package/corpus/templates/tasks/app/hooks/use-visible-task-fields.ts +1 -4
- package/corpus/templates/tasks/server/custom-fields/store.ts +1 -6
- package/corpus/templates/tasks/shared/list-screen-snapshot.ts +2 -2
- package/dist/agent/engine/registry.js +27 -14
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/production-agent.d.ts +19 -6
- package/dist/agent/production-agent.js +57 -16
- package/dist/agent/types.d.ts +3 -0
- package/dist/client/EnvironmentBadge.d.ts +1 -0
- package/dist/client/EnvironmentBadge.js +7 -0
- package/dist/collab/awareness.d.ts +2 -2
- package/dist/collab/routes.d.ts +1 -1
- package/dist/config.d.ts +11 -0
- package/dist/config.js +248 -0
- package/dist/deploy/build.js +12 -1
- package/dist/index.d.ts +1 -1
- package/dist/notifications/routes.d.ts +3 -3
- package/dist/observability/routes.d.ts +2 -2
- package/dist/progress/routes.d.ts +1 -1
- package/dist/resources/handlers.d.ts +2 -2
- package/dist/server/agent-chat/plugin-options.d.ts +3 -2
- package/dist/server/agent-chat-plugin.js +5 -2
- package/dist/server/index.d.ts +1 -1
- package/dist/templates/chat/.agents/skills/secrets/SKILL.md +5 -1
- package/dist/templates/chat/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/dist/templates/chat/actions/navigate.ts +2 -2
- package/dist/templates/default/.agents/skills/secrets/SKILL.md +5 -1
- package/dist/templates/default/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/dist/templates/headless/.agents/skills/secrets/SKILL.md +5 -1
- package/dist/templates/workspace-core/.agents/skills/secrets/SKILL.md +5 -1
- package/dist/templates/workspace-core/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/dist/vite/agent-native-config-loader.d.ts +1 -0
- package/dist/vite/agent-native-config-loader.js +3 -3
- package/dist/vite/agents-bundle-plugin.d.ts +1 -1
- package/dist/vite/agents-bundle-plugin.js +13 -1
- package/dist/vite/client.js +14 -14
- package/docs/content/agent-native-config.mdx +62 -11
- package/docs/content/agent-surfaces.mdx +6 -0
- package/docs/content/environment-variables.mdx +5 -2
- package/package.json +3 -3
- package/src/templates/chat/.agents/skills/secrets/SKILL.md +5 -1
- package/src/templates/chat/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/src/templates/chat/actions/navigate.ts +2 -2
- package/src/templates/default/.agents/skills/secrets/SKILL.md +5 -1
- package/src/templates/default/.agents/skills/workspace-conventions/SKILL.md +4 -1
- package/src/templates/headless/.agents/skills/secrets/SKILL.md +5 -1
- package/src/templates/workspace-core/.agents/skills/secrets/SKILL.md +5 -1
- package/src/templates/workspace-core/.agents/skills/workspace-conventions/SKILL.md +4 -1
|
@@ -345,17 +345,6 @@ const DEFAULT_SCREEN_MEMORY_CONFIG = {
|
|
|
345
345
|
excludePrivateWindows: false,
|
|
346
346
|
};
|
|
347
347
|
|
|
348
|
-
function parseExcludedBundleIds(value: string): string[] {
|
|
349
|
-
return [
|
|
350
|
-
...new Set(
|
|
351
|
-
value
|
|
352
|
-
.split(/[\n,]/)
|
|
353
|
-
.map((id) => id.trim())
|
|
354
|
-
.filter(Boolean),
|
|
355
|
-
),
|
|
356
|
-
];
|
|
357
|
-
}
|
|
358
|
-
|
|
359
348
|
function isStorageSetupFailureMessage(message: string | null | undefined) {
|
|
360
349
|
return STORAGE_SETUP_FAILURE_RE.test(message ?? "");
|
|
361
350
|
}
|
|
@@ -997,9 +986,9 @@ export function App() {
|
|
|
997
986
|
setPopoverView("settings");
|
|
998
987
|
}
|
|
999
988
|
|
|
1000
|
-
const [rewindSettingsReturnView
|
|
1001
|
-
"recorder"
|
|
1002
|
-
|
|
989
|
+
const [rewindSettingsReturnView] = useState<"recorder" | "settings">(
|
|
990
|
+
"recorder",
|
|
991
|
+
);
|
|
1003
992
|
const [rewindAgentPromptCopied, setRewindAgentPromptCopied] = useState(false);
|
|
1004
993
|
const [agentHandoff, setAgentHandoff] =
|
|
1005
994
|
useState<RewindAgentHandoffRequest | null>(null);
|
|
@@ -1037,7 +1026,7 @@ export function App() {
|
|
|
1037
1026
|
// popover auto-hide during the macOS screen-picker focus dance.
|
|
1038
1027
|
const [recordingFlowActive, setRecordingFlowActive] = useState(false);
|
|
1039
1028
|
const [recordingStopFinalizing, setRecordingStopFinalizing] = useState(false);
|
|
1040
|
-
const [
|
|
1029
|
+
const [, setLastRecordingId] = useState<string | null>(null);
|
|
1041
1030
|
const [authStatus, setAuthStatus] = useState<"unknown" | "authed" | "anon">(
|
|
1042
1031
|
"unknown",
|
|
1043
1032
|
);
|
|
@@ -1071,7 +1060,6 @@ export function App() {
|
|
|
1071
1060
|
const {
|
|
1072
1061
|
cameraId,
|
|
1073
1062
|
setCameraId,
|
|
1074
|
-
micId,
|
|
1075
1063
|
setMicId,
|
|
1076
1064
|
cameraLabel,
|
|
1077
1065
|
setCameraLabel,
|
|
@@ -4387,7 +4375,7 @@ function PendingUploadBanner({
|
|
|
4387
4375
|
|
|
4388
4376
|
const retrying = retryingUploadId === latest.recordingId;
|
|
4389
4377
|
const storageSetupFailure = isStorageSetupFailureMessage(latest.lastError);
|
|
4390
|
-
|
|
4378
|
+
|
|
4391
4379
|
const canOpenFolder = latest.kind === "native" && !!latest.folderPath;
|
|
4392
4380
|
const canExport = latest.kind === "browser";
|
|
4393
4381
|
const actionsDisabled =
|
|
@@ -5516,7 +5504,7 @@ function Setup({
|
|
|
5516
5504
|
const [rewindLocalBusy, setRewindLocalBusy] = useState(false);
|
|
5517
5505
|
const [rewindLocalError, setRewindLocalError] = useState<string | null>(null);
|
|
5518
5506
|
const [rewindReplayId, setRewindReplayId] = useState<string | null>(null);
|
|
5519
|
-
const [
|
|
5507
|
+
const [, setExcludedBundleIdsInput] = useState("");
|
|
5520
5508
|
const [excludedApps, setExcludedApps] = useState<RewindExcludedApplication[]>(
|
|
5521
5509
|
[],
|
|
5522
5510
|
);
|
|
@@ -1992,14 +1992,6 @@ function isCountdownCancelledError(err: unknown) {
|
|
|
1992
1992
|
);
|
|
1993
1993
|
}
|
|
1994
1994
|
|
|
1995
|
-
function isRegionSelectionCancelledError(err: unknown) {
|
|
1996
|
-
return (
|
|
1997
|
-
err instanceof Error &&
|
|
1998
|
-
err.name === "AbortError" &&
|
|
1999
|
-
/region selection/i.test(err.message)
|
|
2000
|
-
);
|
|
2001
|
-
}
|
|
2002
|
-
|
|
2003
1995
|
function normalizeRegionCaptureRect(value: unknown): RegionCaptureRect | null {
|
|
2004
1996
|
if (!value || typeof value !== "object") return null;
|
|
2005
1997
|
const rect = value as Partial<RegionCaptureRect>;
|
|
@@ -38,7 +38,11 @@ connection exists:
|
|
|
38
38
|
register a `kind: "oauth"` entry so the shared UI renders Connect and the
|
|
39
39
|
runtime owns status, refresh, and reauthorization.
|
|
40
40
|
- **Deploy- or app-level configuration** - use deployment/runtime
|
|
41
|
-
configuration, not a per-user secret row.
|
|
41
|
+
configuration, not a per-user secret row. For a non-secret public setting
|
|
42
|
+
already represented by `AgentNativeConfig`, put the default in
|
|
43
|
+
`agent-native.config.ts` and use its `AGENT_NATIVE_CONFIG_<PATH>` alias only
|
|
44
|
+
for a deployment override. Never put a credential or provider key in that
|
|
45
|
+
public namespace.
|
|
42
46
|
- **Account, customer, manager, or other non-secret identifier** - store it as
|
|
43
47
|
scoped connection metadata or app data, not as a masked secret field.
|
|
44
48
|
|
|
@@ -55,7 +55,10 @@ Preview before `--apply`, commit `agent-native.ejections.json`, and never edit
|
|
|
55
55
|
ZIPs, screenshots, thumbnails, session replay chunks) in configured file/blob
|
|
56
56
|
storage and persist only URLs, ids, or handles.
|
|
57
57
|
- Store shared runtime configuration in the workspace root `.env`; use
|
|
58
|
-
`apps/<app>/.env` only for app-specific overrides.
|
|
58
|
+
`apps/<app>/.env` only for app-specific overrides. For public app behavior,
|
|
59
|
+
prefer the default in `agent-native.config.ts` and use the deterministic
|
|
60
|
+
`AGENT_NATIVE_CONFIG_<UPPER_SNAKE_PATH>` alias only when a non-secret value
|
|
61
|
+
needs a deployment override. Never hardcode API keys,
|
|
59
62
|
tokens, webhook URLs, signing secrets, private Builder/internal data, customer
|
|
60
63
|
data, or credential-looking literals in source, docs, prompts, fixtures,
|
|
61
64
|
application state, action responses, or generated app content. Use
|
|
@@ -8,7 +8,6 @@ import type {
|
|
|
8
8
|
ContentDatabase,
|
|
9
9
|
ContentDatabaseBodyHydrationSummary,
|
|
10
10
|
ContentDatabaseItem,
|
|
11
|
-
ContentDatabaseResponse,
|
|
12
11
|
ContentDatabaseSource,
|
|
13
12
|
ContentDatabaseSourceBodyChange,
|
|
14
13
|
ContentDatabaseSourceCapabilities,
|
|
@@ -46,7 +45,6 @@ import {
|
|
|
46
45
|
builderMdxBodyToBuilderBlocks,
|
|
47
46
|
} from "../shared/builder-mdx.js";
|
|
48
47
|
import {
|
|
49
|
-
normalizePropertyValue,
|
|
50
48
|
normalizePropertyValueWithOptions,
|
|
51
49
|
parsePropertyOptions,
|
|
52
50
|
serializePropertyOptions,
|
|
@@ -4296,7 +4294,6 @@ async function loadSourceSnapshot(
|
|
|
4296
4294
|
allDocumentIds,
|
|
4297
4295
|
rowDocuments,
|
|
4298
4296
|
propertyValueRows,
|
|
4299
|
-
consistencyAttempts,
|
|
4300
4297
|
} = await loadSourceSnapshotRowsOptimistically({
|
|
4301
4298
|
source,
|
|
4302
4299
|
database,
|
|
@@ -40,10 +40,7 @@ import {
|
|
|
40
40
|
writeSourceFederation,
|
|
41
41
|
} from "./_database-source-utils.js";
|
|
42
42
|
import { getContentDatabaseResponse } from "./_database-utils.js";
|
|
43
|
-
import {
|
|
44
|
-
readLocalTableEntries,
|
|
45
|
-
resolveReadableLocalTableSource,
|
|
46
|
-
} from "./_local-table-source.js";
|
|
43
|
+
import { resolveReadableLocalTableSource } from "./_local-table-source.js";
|
|
47
44
|
import { listPropertiesForDatabase } from "./_property-utils.js";
|
|
48
45
|
|
|
49
46
|
const sourceTypeSchema = z
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineAction } from "@agent-native/core";
|
|
2
|
-
import {
|
|
2
|
+
import { writeAppStateForCurrentTab } from "@agent-native/core/application-state";
|
|
3
3
|
import { eq } from "drizzle-orm";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
@@ -57,7 +57,7 @@ export default defineAction({
|
|
|
57
57
|
run: async (args) => {
|
|
58
58
|
const path = await resolveNavigatePath(args);
|
|
59
59
|
|
|
60
|
-
await
|
|
60
|
+
await writeAppStateForCurrentTab("navigate", { path, ts: Date.now() });
|
|
61
61
|
return `Navigating to ${path}`;
|
|
62
62
|
},
|
|
63
63
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAction } from "@agent-native/core";
|
|
2
2
|
import { assertAccess } from "@agent-native/core/sharing";
|
|
3
|
-
import {
|
|
3
|
+
import { eq } from "drizzle-orm";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
import { getDb, schema } from "../server/db/index.js";
|
|
@@ -27,7 +27,6 @@ import type {
|
|
|
27
27
|
import {
|
|
28
28
|
CREATABLE_DOCUMENT_PROPERTY_TYPES,
|
|
29
29
|
DOCUMENT_PROPERTY_TYPE_LABELS,
|
|
30
|
-
DOCUMENT_PROPERTY_VISIBILITY_LABELS,
|
|
31
30
|
DOCUMENT_PROPERTY_VISIBILITIES,
|
|
32
31
|
defaultPropertyOptions,
|
|
33
32
|
documentPropertyDateIncludesTime,
|
|
@@ -54,7 +53,6 @@ import {
|
|
|
54
53
|
IconCircleChevronDown,
|
|
55
54
|
IconCircleDotted,
|
|
56
55
|
IconClockFilled,
|
|
57
|
-
IconClock,
|
|
58
56
|
IconCopy,
|
|
59
57
|
IconEdit,
|
|
60
58
|
IconEye,
|
|
@@ -102,7 +100,6 @@ import {
|
|
|
102
100
|
AlertDialogFooter,
|
|
103
101
|
AlertDialogHeader,
|
|
104
102
|
AlertDialogTitle,
|
|
105
|
-
AlertDialogTrigger,
|
|
106
103
|
} from "@/components/ui/alert-dialog";
|
|
107
104
|
import { Button } from "@/components/ui/button";
|
|
108
105
|
import {
|
|
@@ -2162,9 +2159,6 @@ function PersonValueEditor({
|
|
|
2162
2159
|
const [query, setQuery] = useState("");
|
|
2163
2160
|
const inputRef = useRef<HTMLInputElement>(null);
|
|
2164
2161
|
const currentUserEmail = session?.email?.trim() ?? "";
|
|
2165
|
-
const currentUserLabel = currentUserEmail
|
|
2166
|
-
? personLabel(currentUserEmail)
|
|
2167
|
-
: "";
|
|
2168
2162
|
|
|
2169
2163
|
useEffect(() => {
|
|
2170
2164
|
const frame = requestAnimationFrame(() => inputRef.current?.focus());
|