@agent-native/core 0.136.4 → 0.137.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/clips/.agents/skills/recording/SKILL.md +53 -0
- package/corpus/templates/clips/actions/import-loom-recording.ts +7 -0
- package/corpus/templates/clips/actions/lib/loom-import-job.ts +24 -4
- package/corpus/templates/clips/app/components/import-menu.tsx +109 -0
- package/corpus/templates/clips/app/components/library/library-grid.tsx +8 -18
- package/corpus/templates/clips/app/components/library/library-layout.tsx +14 -50
- package/corpus/templates/clips/app/components/library/sort-menu.tsx +20 -6
- package/corpus/templates/clips/app/components/recorder/pre-record-panel.tsx +10 -34
- package/corpus/templates/clips/app/routes/_app.library._index.tsx +0 -2
- package/corpus/templates/clips/changelog/2026-08-03-restart-during-a-recording-now-immediately-starts-a-fresh-ta.md +6 -0
- package/corpus/templates/clips/changelog/2026-08-04-cleaner-library-controls-with-an-icon-only-sort-button.md +6 -0
- package/corpus/templates/clips/changelog/2026-08-04-upload-and-loom-imports-now-live-under-one-import-menu.md +6 -0
- package/corpus/templates/clips/desktop/src/app.tsx +81 -30
- package/corpus/templates/clips/desktop/src/lib/recorder.ts +436 -158
- package/corpus/templates/clips/server/lib/post-finalize-dispatch.ts +14 -1
- package/corpus/templates/clips/server/plugins/auth.ts +9 -0
- package/corpus/templates/clips/server/routes/api/_agent-native-background/post-finalize-worker.post.ts +13 -0
- package/corpus/templates/content/actions/_database-utils.ts +6 -0
- package/corpus/templates/content/actions/bind-content-database-source-field.ts +273 -97
- package/corpus/templates/content/actions/change-content-database-source-role.ts +65 -29
- package/corpus/templates/content/actions/configure-document-property.ts +113 -32
- package/corpus/templates/content/actions/delete-content-database.ts +5 -7
- package/corpus/templates/content/actions/delete-document-property.ts +109 -62
- package/corpus/templates/content/actions/delete-document.ts +178 -36
- package/corpus/templates/content/actions/duplicate-database-item.ts +27 -0
- package/corpus/templates/content/actions/duplicate-database-items.ts +31 -1
- package/corpus/templates/content/actions/permanently-delete-document.ts +4 -6
- package/corpus/templates/content/actions/remove-database-items.ts +13 -0
- package/corpus/templates/content/actions/set-document-property.ts +69 -1
- package/corpus/templates/content/actions/upsert-database-item-by-key.ts +814 -0
- package/corpus/templates/content/parity/matrix.md +1 -1
- package/corpus/templates/content/parity/matrix.ts +1 -0
- package/corpus/templates/content/server/db/schema.ts +27 -0
- package/corpus/templates/content/server/plugins/db.ts +24 -0
- package/corpus/templates/design/app/components/design/BreakpointBar.tsx +122 -114
- package/corpus/templates/design/app/components/design/CanvasContextMenu.tsx +2 -2
- package/corpus/templates/design/app/components/design/EditPanel.tsx +68 -34
- package/corpus/templates/design/app/components/design/KeyboardShortcutsPanel.tsx +78 -4
- package/corpus/templates/design/app/components/design/MultiScreenCanvas.tsx +8 -0
- package/corpus/templates/design/app/components/design/QuestionFlow.tsx +5 -2
- package/corpus/templates/design/app/components/design/edit-panel/panel-primitives.tsx +10 -9
- package/corpus/templates/design/app/components/design/inspector/AutoLayoutMatrix.tsx +31 -69
- package/corpus/templates/design/app/components/design/inspector/design-icons.tsx +80 -106
- package/corpus/templates/design/app/components/design/multi-screen/types.ts +4 -0
- package/corpus/templates/design/app/hooks/use-editor-preferences.ts +75 -0
- package/corpus/templates/design/app/i18n-data.ts +8 -0
- package/corpus/templates/design/app/i18n-keyboard-shortcuts.ts +61 -0
- package/corpus/templates/design/app/pages/design-editor/editor-preferences.ts +98 -0
- package/corpus/templates/design/app/pages/design-editor/nudge-intent.ts +491 -0
- package/corpus/templates/design/app/pages/design-editor/paste-placement.ts +133 -0
- package/corpus/templates/design/app/pages/design-editor/png-export-render.ts +8 -0
- package/corpus/templates/design/app/pages/design-editor/selection-state.ts +5 -12
- package/corpus/templates/design/changelog/2026-08-03-arrow-keys-now-reorder-a-layer-inside-an-auto-layout-frame.md +6 -0
- package/corpus/templates/design/changelog/2026-08-03-auto-layout-flow-icons-show-the-direction-at-a-glance-instea.md +6 -0
- package/corpus/templates/design/changelog/2026-08-03-auto-layout-icons-share-one-outlined-square-style-so-flow-ga.md +6 -0
- package/corpus/templates/design/changelog/2026-08-03-export-has-a-named-preview-section-you-can-expand-replacing-.md +6 -0
- package/corpus/templates/design/changelog/2026-08-03-export-preview-shows-the-selected-element-instead-of-the-who.md +6 -0
- package/corpus/templates/design/changelog/2026-08-03-inspector-sections-show-an-expand-indicator-so-it-is-clear-w.md +6 -0
- package/corpus/templates/design/changelog/2026-08-03-paste-lands-inside-a-selected-frame-instead-of-beside-it.md +6 -0
- package/corpus/templates/design/changelog/2026-08-03-the-add-breakpoint-button-sits-outside-the-breakpoint-select.md +6 -0
- package/corpus/templates/design/changelog/2026-08-03-the-agent-s-follow-up-questions-keep-space-below-the-continu.md +6 -0
- package/corpus/templates/design/changelog/2026-08-03-the-agent-s-follow-up-questions-share-the-chat-panel-s-backg.md +6 -0
- package/corpus/templates/design/changelog/2026-08-03-the-export-panel-no-longer-stacks-a-duplicate-export-block-o.md +6 -0
- package/corpus/templates/design/changelog/2026-08-03-the-text-tool-uses-a-t-icon-matching-the-letter-it-inserts.md +6 -0
- package/corpus/templates/factory/.env.example +17 -0
- package/corpus/templates/factory/AGENTS.md +27 -17
- package/corpus/templates/factory/README.md +19 -9
- package/corpus/templates/factory/actions/get-slack-feedback-context.ts +90 -0
- package/corpus/templates/factory/actions/get-triage-config.ts +14 -3
- package/corpus/templates/factory/actions/govern-agent-native-pull-request.ts +386 -0
- package/corpus/templates/factory/actions/list-factory-automations.ts +53 -0
- package/corpus/templates/factory/actions/list-triage-items.ts +7 -2
- package/corpus/templates/factory/actions/poll-github-sources.ts +203 -0
- package/corpus/templates/factory/actions/poll-sentry-errors.ts +161 -0
- package/corpus/templates/factory/actions/poll-slack-channel.ts +4 -2
- package/corpus/templates/factory/actions/run-factory-automation.ts +42 -0
- package/corpus/templates/factory/actions/save-factory-automation.ts +69 -0
- package/corpus/templates/factory/actions/save-triage-config.ts +28 -2
- package/corpus/templates/factory/actions/start-builder-for-item.ts +411 -0
- package/corpus/templates/factory/app/components/factory/FactoryCanvas.tsx +14 -3
- package/corpus/templates/factory/app/components/ui/checkbox.tsx +1 -0
- package/corpus/templates/factory/app/hooks/use-navigation-state.ts +7 -0
- package/corpus/templates/factory/app/i18n/en-US.ts +35 -1
- package/corpus/templates/factory/app/routes/factory.tsx +462 -9
- package/corpus/templates/factory/changelog/2026-08-04-added-organization-owned-factory-automations-for-slack-bug-t.md +6 -0
- package/corpus/templates/factory/changelog/2026-08-04-automation-editor-controls-and-model-picker.md +6 -0
- package/corpus/templates/factory/netlify.toml +2 -2
- package/corpus/templates/factory/server/connectors/credentials.ts +6 -5
- package/corpus/templates/factory/server/connectors/slack.ts +133 -5
- package/corpus/templates/factory/server/db/schema.ts +6 -0
- package/corpus/templates/factory/server/lib/require-factory-automation.ts +65 -0
- package/corpus/templates/factory/server/plugins/agent-chat.ts +29 -11
- package/corpus/templates/factory/server/plugins/auth.ts +1 -0
- package/corpus/templates/factory/server/plugins/factory-migrations.ts +12 -0
- package/corpus/templates/factory/server/plugins/factory-scheduler-job.ts +218 -67
- package/corpus/templates/factory/server/triage/builder-executor.ts +4 -0
- package/corpus/templates/factory/server/triage/contracts.ts +14 -1
- package/corpus/templates/factory/server/triage/github-client.ts +404 -0
- package/corpus/templates/factory/server/triage/metadata.ts +44 -0
- package/corpus/templates/factory/server/triage/pr-babysit.ts +5 -5
- package/corpus/templates/factory/server/triage/pr-policy.ts +144 -0
- package/corpus/templates/factory/server/triage/sentry-client.ts +180 -0
- package/corpus/templates/factory/server/triage/slack-client.ts +43 -0
- package/corpus/templates/factory/server/triage/slack-poller.ts +9 -2
- package/corpus/templates/plan/.agents/skills/visual-plan/SKILL.md +27 -0
- package/corpus/templates/plan/.agents/skills/visual-plan/references/canvas.md +14 -4
- package/corpus/templates/plan/.agents/skills/visual-plan/references/wireframe.md +7 -0
- package/corpus/templates/plan/.agents/skills/visual-recap/references/wireframe.md +7 -0
- package/corpus/templates/plan/actions/create-plan-design.ts +8 -6
- package/corpus/templates/plan/actions/create-prototype-plan.ts +8 -6
- package/corpus/templates/plan/actions/create-ui-plan.ts +7 -7
- package/corpus/templates/plan/actions/get-plan-blocks.ts +7 -1
- package/corpus/templates/plan/actions/validate-plan-input.ts +39 -0
- package/corpus/templates/plan/app/components/plan/CanvasArea.tsx +167 -11
- package/corpus/templates/plan/app/i18n/en-US.ts +1 -0
- package/corpus/templates/plan/changelog/2026-08-04-canvas-zoom-controls-now-explain-the-command-ctrl-plus-scrol.md +6 -0
- package/corpus/templates/plan/changelog/2026-08-04-pinch-to-zoom-is-now-supported-on-touchscreens-in-visual-pla.md +6 -0
- package/corpus/templates/plan/shared/plan-content.ts +17 -2
- package/dist/cli/skills-content/canvas.d.ts +3 -3
- package/dist/cli/skills-content/canvas.js +16 -5
- package/dist/cli/skills-content/visual-plan-skill.d.ts +1 -1
- package/dist/cli/skills-content/visual-plan-skill.js +27 -0
- package/dist/cli/skills-content/wireframe.d.ts +2 -2
- package/dist/cli/skills-content/wireframe.js +7 -0
- package/dist/client/AgentPanel.js +23 -8
- package/dist/client/api-path.d.ts +6 -0
- package/dist/client/api-path.js +55 -0
- package/dist/client/onboarding/FirstRunOnboarding.d.ts +3 -0
- package/dist/client/onboarding/FirstRunOnboarding.js +93 -0
- package/dist/client/onboarding/first-run-enabled.d.ts +2 -0
- package/dist/client/onboarding/first-run-enabled.js +9 -0
- package/dist/client/onboarding/index.d.ts +2 -1
- package/dist/client/onboarding/index.js +1 -0
- package/dist/client/onboarding/use-onboarding.d.ts +6 -1
- package/dist/client/onboarding/use-onboarding.js +32 -1
- package/dist/client/route-state.js +10 -0
- package/dist/client/settings/SecretsSection.js +32 -8
- package/dist/collab/struct-routes.d.ts +1 -1
- package/dist/connections/catalog.d.ts +4 -4
- package/dist/connections/catalog.js +3 -3
- package/dist/db/index.d.ts +1 -1
- package/dist/db/index.js +1 -1
- package/dist/localization/default-messages.d.ts +5 -0
- package/dist/localization/default-messages.js +5 -0
- package/dist/mcp/screen-memory-stdio.d.ts +7 -7
- package/dist/observability/routes.d.ts +3 -3
- package/dist/onboarding/app-profile.d.ts +4 -0
- package/dist/onboarding/app-profile.js +378 -0
- package/dist/onboarding/index.d.ts +2 -1
- package/dist/onboarding/index.js +1 -0
- package/dist/onboarding/plugin.d.ts +2 -0
- package/dist/onboarding/plugin.js +21 -1
- package/dist/onboarding/types.d.ts +19 -0
- package/dist/progress/routes.d.ts +1 -1
- package/dist/provider-api/actions/custom-provider-registration.d.ts +9 -9
- package/dist/provider-api/actions/provider-api.d.ts +12 -12
- package/dist/secrets/routes.d.ts +2 -2
- package/dist/secrets/routes.js +41 -17
- package/dist/server/auth.js +21 -1
- package/dist/server/better-auth-instance.d.ts +3 -2
- package/dist/server/better-auth-instance.js +9 -7
- package/dist/server/email-markdown.js +3 -8
- package/dist/server/transcribe-voice.d.ts +1 -1
- package/dist/shared/first-run-onboarding.d.ts +3 -0
- package/dist/shared/first-run-onboarding.js +3 -0
- package/dist/triggers/index.d.ts +3 -0
- package/dist/triggers/index.js +5 -0
- package/docs/content/cross-app-sso.mdx +26 -0
- package/package.json +1 -1
|
@@ -1,20 +1,31 @@
|
|
|
1
1
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
2
|
+
import { FIRST_RUN_ONBOARDING_COOKIE } from "../../shared/first-run-onboarding.js";
|
|
2
3
|
import { agentNativePath } from "../api-path.js";
|
|
4
|
+
function hasFirstRunCookie() {
|
|
5
|
+
if (typeof document === "undefined")
|
|
6
|
+
return false;
|
|
7
|
+
return document.cookie
|
|
8
|
+
.split(";")
|
|
9
|
+
.some((part) => part.trim().startsWith(`${FIRST_RUN_ONBOARDING_COOKIE}=`));
|
|
10
|
+
}
|
|
3
11
|
export function useOnboarding(options = {}) {
|
|
4
12
|
const preview = options.preview === true;
|
|
5
13
|
const [steps, setSteps] = useState([]);
|
|
14
|
+
const [profile, setProfile] = useState(null);
|
|
6
15
|
const [loading, setLoading] = useState(true);
|
|
7
16
|
const [error, setError] = useState(null);
|
|
8
17
|
const [dismissed, setDismissed] = useState(false);
|
|
18
|
+
const [firstRun, setFirstRun] = useState(hasFirstRunCookie);
|
|
9
19
|
const mountedRef = useRef(true);
|
|
10
20
|
const fetchAll = useCallback(async () => {
|
|
11
21
|
try {
|
|
12
22
|
const stepsUrl = agentNativePath(preview
|
|
13
23
|
? "/_agent-native/onboarding/steps?preview=1"
|
|
14
24
|
: "/_agent-native/onboarding/steps");
|
|
15
|
-
const [stepsRes, dismissRes] = await Promise.all([
|
|
25
|
+
const [stepsRes, dismissRes, profileRes] = await Promise.all([
|
|
16
26
|
fetch(stepsUrl),
|
|
17
27
|
fetch(agentNativePath("/_agent-native/onboarding/dismissed")),
|
|
28
|
+
fetch(agentNativePath("/_agent-native/onboarding/profile")),
|
|
18
29
|
]);
|
|
19
30
|
if (!mountedRef.current)
|
|
20
31
|
return;
|
|
@@ -23,6 +34,10 @@ export function useOnboarding(options = {}) {
|
|
|
23
34
|
}
|
|
24
35
|
const stepsData = await stepsRes.json();
|
|
25
36
|
setSteps(stepsData);
|
|
37
|
+
if (!profileRes.ok) {
|
|
38
|
+
throw new Error(`profile: ${profileRes.status}`);
|
|
39
|
+
}
|
|
40
|
+
setProfile((await profileRes.json()));
|
|
26
41
|
if (dismissRes.ok) {
|
|
27
42
|
const d = (await dismissRes.json());
|
|
28
43
|
setDismissed(!!d.dismissed);
|
|
@@ -83,6 +98,19 @@ export function useOnboarding(options = {}) {
|
|
|
83
98
|
});
|
|
84
99
|
await fetchAll();
|
|
85
100
|
}, [fetchAll]);
|
|
101
|
+
const completeFirstRun = useCallback(async () => {
|
|
102
|
+
const response = await fetch(agentNativePath("/_agent-native/onboarding/first-run/complete"), {
|
|
103
|
+
method: "POST",
|
|
104
|
+
headers: { "Content-Type": "application/json" },
|
|
105
|
+
body: "{}",
|
|
106
|
+
});
|
|
107
|
+
if (!response.ok) {
|
|
108
|
+
setError(`first-run completion: ${response.status}`);
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
setFirstRun(false);
|
|
112
|
+
await fetchAll();
|
|
113
|
+
}, [fetchAll]);
|
|
86
114
|
const totalCount = steps.length;
|
|
87
115
|
const completeCount = steps.filter((s) => s.complete).length;
|
|
88
116
|
const allComplete = steps.filter((s) => s.required).every((s) => s.complete);
|
|
@@ -91,6 +119,7 @@ export function useOnboarding(options = {}) {
|
|
|
91
119
|
null;
|
|
92
120
|
return {
|
|
93
121
|
steps,
|
|
122
|
+
profile,
|
|
94
123
|
loading,
|
|
95
124
|
error,
|
|
96
125
|
currentStepId,
|
|
@@ -102,6 +131,8 @@ export function useOnboarding(options = {}) {
|
|
|
102
131
|
complete,
|
|
103
132
|
dismiss,
|
|
104
133
|
reopen,
|
|
134
|
+
firstRun,
|
|
135
|
+
completeFirstRun,
|
|
105
136
|
};
|
|
106
137
|
}
|
|
107
138
|
//# sourceMappingURL=use-onboarding.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
2
2
|
import { useCallback, useEffect, useMemo, useRef } from "react";
|
|
3
3
|
import { useLocation, useNavigate, } from "react-router";
|
|
4
|
+
import { isWorkspaceAppPath } from "./api-path.js";
|
|
4
5
|
import { deleteClientAppState, readClientAppState, setClientAppState, } from "./application-state.js";
|
|
5
6
|
import { navigateWithAgentChatViewTransition, } from "./chat-view-transition.js";
|
|
6
7
|
const SAFE_BROWSER_TAB_ID_RE = /^[A-Za-z0-9_-]{1,96}$/;
|
|
@@ -207,6 +208,15 @@ export function useAgentRouteState(options) {
|
|
|
207
208
|
const resolvedOptions = typeof navigateOptions === "function"
|
|
208
209
|
? navigateOptions(command)
|
|
209
210
|
: navigateOptions;
|
|
211
|
+
if (isWorkspaceAppPath(path)) {
|
|
212
|
+
if (resolvedOptions?.replace) {
|
|
213
|
+
window.location.replace(path);
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
window.location.assign(path);
|
|
217
|
+
}
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
210
220
|
const transitionOptions = resolveAgentChatViewTransitionOption(options.agentChatViewTransition, command, path);
|
|
211
221
|
const runNavigate = () => navigate(path, resolvedOptions);
|
|
212
222
|
if (transitionOptions) {
|
|
@@ -98,16 +98,23 @@ function KeysHeader({ availableSecrets = [], onSecret, onCustomKey, }) {
|
|
|
98
98
|
}, children: [_jsx(IconPlus, { size: 14 }), "Custom"] }) })] })] }) })] })] }));
|
|
99
99
|
}
|
|
100
100
|
function SecretCard({ secret, onChanged, open, onOpenChange, focusInput, }) {
|
|
101
|
+
const t = useT();
|
|
101
102
|
const [value, setValue] = useState("");
|
|
103
|
+
const [isRotating, setIsRotating] = useState(false);
|
|
102
104
|
const [busy, setBusy] = useState(null);
|
|
103
105
|
const [confirmDelete, setConfirmDelete] = useState(false);
|
|
104
106
|
const [toast, setToast] = useState(null);
|
|
105
107
|
const inputRef = React.useRef(null);
|
|
106
108
|
useEffect(() => {
|
|
107
|
-
if (open
|
|
109
|
+
if (!open) {
|
|
110
|
+
setValue("");
|
|
111
|
+
setIsRotating(false);
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
if ((focusInput || isRotating) && inputRef.current) {
|
|
108
115
|
inputRef.current.focus();
|
|
109
116
|
}
|
|
110
|
-
}, [focusInput, open]);
|
|
117
|
+
}, [focusInput, isRotating, open]);
|
|
111
118
|
const setToastAndClear = (kind, text, ms = 2500) => {
|
|
112
119
|
setToast({ kind, text });
|
|
113
120
|
setTimeout(() => setToast(null), ms);
|
|
@@ -131,6 +138,7 @@ function SecretCard({ secret, onChanged, open, onOpenChange, focusInput, }) {
|
|
|
131
138
|
return;
|
|
132
139
|
}
|
|
133
140
|
setValue("");
|
|
141
|
+
setIsRotating(false);
|
|
134
142
|
setConfirmDelete(false);
|
|
135
143
|
setToastAndClear("ok", "Saved");
|
|
136
144
|
notifySecretsChanged();
|
|
@@ -166,20 +174,32 @@ function SecretCard({ secret, onChanged, open, onOpenChange, focusInput, }) {
|
|
|
166
174
|
setBusy(null);
|
|
167
175
|
}
|
|
168
176
|
};
|
|
169
|
-
const handleTest = async () => {
|
|
177
|
+
const handleTest = async (candidateValue) => {
|
|
170
178
|
if (busy)
|
|
171
179
|
return;
|
|
172
|
-
|
|
180
|
+
const isCandidate = candidateValue !== undefined;
|
|
181
|
+
setBusy(isCandidate ? "test-candidate" : "test");
|
|
173
182
|
try {
|
|
174
183
|
const res = await fetch(`${ENDPOINT}/${encodeURIComponent(secret.key)}/test`, {
|
|
175
184
|
method: "POST",
|
|
185
|
+
...(isCandidate
|
|
186
|
+
? {
|
|
187
|
+
headers: { "Content-Type": "application/json" },
|
|
188
|
+
body: JSON.stringify({ value: candidateValue }),
|
|
189
|
+
}
|
|
190
|
+
: {}),
|
|
176
191
|
});
|
|
177
192
|
const body = (await res.json().catch(() => ({})));
|
|
178
193
|
if (res.ok && body.ok) {
|
|
179
|
-
setToastAndClear("ok",
|
|
194
|
+
setToastAndClear("ok", isCandidate
|
|
195
|
+
? t("secrets.candidateValueWorking")
|
|
196
|
+
: t("secrets.storedValueWorking"));
|
|
180
197
|
}
|
|
181
198
|
else {
|
|
182
|
-
setToastAndClear("err", body.error ??
|
|
199
|
+
setToastAndClear("err", body.error ??
|
|
200
|
+
(body.ok === false
|
|
201
|
+
? t("secrets.invalid")
|
|
202
|
+
: t("secrets.testFailed")));
|
|
183
203
|
}
|
|
184
204
|
}
|
|
185
205
|
finally {
|
|
@@ -196,12 +216,16 @@ function SecretCard({ secret, onChanged, open, onOpenChange, focusInput, }) {
|
|
|
196
216
|
return (_jsx("span", { className: "rounded-full bg-accent/60 px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-muted-foreground", children: "Optional" }));
|
|
197
217
|
}, [secret.status, secret.required]);
|
|
198
218
|
const isOAuth = secret.kind === "oauth";
|
|
199
|
-
|
|
219
|
+
const showRotationForm = secret.status !== "set" || isRotating;
|
|
220
|
+
return (_jsxs("div", { className: "border-b border-border last:border-b-0", children: [_jsxs(Button, { type: "button", intent: "neutral", emphasis: "ghost", "aria-expanded": open, onClick: () => onOpenChange(!open), className: "flex w-full items-center gap-2 px-2.5 py-2 text-start transition-colors hover:bg-accent/30", children: [_jsx(IconChevronRight, { size: 13, className: `shrink-0 text-muted-foreground transition-transform ${open ? "rotate-90" : ""}` }), _jsx("span", { className: "min-w-0 flex-1 truncate text-[11px] font-medium text-foreground", children: secret.label }), secret.status === "set" && secret.last4 && (_jsxs("code", { className: "text-[10px] text-muted-foreground", children: ["\u2022\u2022\u2022\u2022", secret.last4] })), _jsx("span", { className: "shrink-0", children: pill })] }), open && (_jsxs("div", { className: "border-t border-border/60 bg-accent/20 px-3 pb-3 pt-2.5", children: [secret.description && (_jsx("p", { className: "mb-2 text-[10px] leading-relaxed text-muted-foreground", children: secret.description })), isOAuth ? (_jsxs("div", { className: "mt-2 flex items-center gap-1.5", children: [secret.oauthConnectUrl && (_jsxs("a", { href: secret.oauthConnectUrl, className: "inline-flex items-center gap-1 rounded px-2 py-1 text-[10px] font-medium no-underline", style: { backgroundColor: "#00B5FF", color: "white" }, children: [_jsx(IconPlugConnected, { size: 10 }), secret.status === "set" ? "Reconnect" : "Connect"] })), secret.docsUrl && (_jsxs("a", { href: secret.docsUrl, target: "_blank", rel: "noopener noreferrer", className: "inline-flex items-center gap-1 rounded border border-border px-2 py-1 text-[10px] no-underline text-muted-foreground hover:text-foreground", children: ["Docs", _jsx(IconExternalLink, { size: 10 })] }))] })) : (_jsxs("div", { className: "mt-2 space-y-2", children: [secret.status === "set" && (_jsxs(_Fragment, { children: [_jsxs("div", { className: "flex items-center gap-2 text-[10px] text-muted-foreground", children: [_jsx("span", { children: "Stored value ending in" }), _jsx("code", { className: "mt-1 block w-fit rounded bg-background px-1 py-0.5 text-foreground", children: secret.last4 })] }), _jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [_jsx(Button, { type: "button", intent: "neutral", emphasis: "outline", onClick: () => handleTest(), disabled: busy !== null, className: "inline-flex items-center gap-1 rounded border border-border px-2 py-1 text-[10px] text-muted-foreground hover:text-foreground disabled:opacity-40", children: busy === "test" ? (_jsx(IconLoader2, { size: 10, className: "animate-spin" })) : (t("secrets.testStoredValue")) }), _jsxs(Button, { type: "button", intent: "primary", emphasis: "solid", onClick: () => setIsRotating(true), disabled: busy !== null, className: "inline-flex items-center gap-1 rounded px-2 py-1 text-[10px] font-medium disabled:opacity-40", style: { backgroundColor: "#00B5FF", color: "white" }, children: [_jsx(IconRefresh, { size: 10 }), "Rotate"] }), _jsxs(Button, { type: "button", intent: "danger", emphasis: "outline", onClick: () => setConfirmDelete(true), disabled: busy !== null, className: "inline-flex items-center gap-1 rounded border border-border px-2 py-1 text-[10px] text-muted-foreground hover:text-red-500 disabled:opacity-40", children: [_jsx(IconTrash, { size: 10 }), "Delete"] })] })] })), showRotationForm && (_jsxs("div", { className: "space-y-1.5", children: [_jsx("hr", { className: "my-4" }), _jsx(TextField, { inputRef: inputRef, type: "password", "aria-label": secret.label, value: value, onChange: setValue, onKeyDown: (event) => {
|
|
200
221
|
if (event.key === "Enter")
|
|
201
222
|
handleSave();
|
|
202
223
|
}, placeholder: secret.status === "set"
|
|
203
224
|
? "Enter new value to rotate"
|
|
204
|
-
: "Paste key", className: "
|
|
225
|
+
: "Paste key", className: "w-full text-[11px]" }), _jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [_jsx(Button, { type: "button", intent: "neutral", emphasis: "outline", onClick: () => handleTest(value.trim()), disabled: !value.trim() || busy !== null, className: "inline-flex items-center gap-1 rounded border border-border px-2 py-1 text-[10px] text-muted-foreground hover:text-foreground disabled:opacity-40", children: busy === "test-candidate" ? (_jsx(IconLoader2, { size: 10, className: "animate-spin" })) : (t("secrets.testStoredValue")) }), secret.docsUrl && (_jsxs("a", { href: secret.docsUrl, target: "_blank", rel: "noopener noreferrer", className: "inline-flex items-center gap-1 rounded border border-border px-2 py-1 text-[10px] no-underline text-muted-foreground hover:text-foreground", children: ["Get key", _jsx(IconExternalLink, { size: 10 })] })), secret.status === "set" && (_jsx(Button, { type: "button", intent: "neutral", emphasis: "outline", onClick: () => {
|
|
226
|
+
setValue("");
|
|
227
|
+
setIsRotating(false);
|
|
228
|
+
}, disabled: busy !== null, className: "rounded border border-border px-2 py-1 text-[10px] text-muted-foreground hover:text-foreground disabled:opacity-40", children: "Discard" })), _jsx(Button, { type: "button", intent: "primary", emphasis: "solid", onClick: handleSave, disabled: !value.trim() || busy !== null, className: "inline-flex items-center gap-1 rounded px-2 py-1 text-[10px] font-medium disabled:opacity-40", style: { backgroundColor: "#00B5FF", color: "white" }, children: busy === "save" ? (_jsx(IconLoader2, { size: 10, className: "animate-spin" })) : ("Save") })] })] })), confirmDelete && (_jsxs("div", { className: "flex items-center gap-1.5 rounded border border-red-500/30 bg-red-500/10 px-2 py-1.5 text-[10px] text-red-500", children: [_jsx("span", { className: "min-w-0 flex-1", children: "Remove this saved value?" }), _jsx(Button, { type: "button", intent: "danger", emphasis: "solid", onClick: handleDelete, disabled: busy !== null, className: "inline-flex items-center gap-1 rounded border border-red-500/40 px-1.5 py-0.5 font-medium disabled:opacity-40", children: busy === "delete" ? (_jsx(IconLoader2, { size: 10, className: "animate-spin" })) : ("Confirm") }), _jsx(Button, { type: "button", intent: "neutral", emphasis: "outline", onClick: () => setConfirmDelete(false), disabled: busy !== null, className: "rounded border border-border px-1.5 py-0.5 text-muted-foreground hover:text-foreground disabled:opacity-40", children: "Cancel" })] }))] })), toast && (_jsx("p", { className: `mt-1.5 text-[10px] ${toast.kind === "ok" ? "text-green-500" : "text-red-500"}`, children: toast.text }))] }))] }));
|
|
205
229
|
}
|
|
206
230
|
const ADHOC_ENDPOINT = agentNativePath("/_agent-native/secrets/adhoc");
|
|
207
231
|
function AdHocKeysSection({ showForm, onShowFormChange, showEmptyState, }) {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* Body: { json: any, fieldName?: string, type?: "map"|"array", requestSource?: string }
|
|
14
14
|
*/
|
|
15
15
|
export declare const postCollabJson: import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
|
|
16
|
-
ok?: undefined;
|
|
17
16
|
error: string;
|
|
17
|
+
ok?: undefined;
|
|
18
18
|
} | {
|
|
19
19
|
error?: undefined;
|
|
20
20
|
ok: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type WorkspaceConnectionCapability = "search" | "import" | "messages" | "meetings" | "crm" | "code" | "docs";
|
|
2
|
-
export type WorkspaceConnectionTemplateUse = "analytics" | "brain" | "calendar" | "clips" | "content" | "crm" | "design" | "dispatch" | "forms" | "mail" | "slides";
|
|
2
|
+
export type WorkspaceConnectionTemplateUse = "analytics" | "brain" | "calendar" | "clips" | "content" | "crm" | "design" | "dispatch" | "factory" | "forms" | "mail" | "slides";
|
|
3
3
|
export type WorkspaceConnectionProviderId = "slack" | "github" | "figma" | "notion" | "gmail" | "google_drive" | "hubspot" | "salesforce" | "jira" | "sentry" | "granola" | "clips" | "generic";
|
|
4
4
|
export interface WorkspaceConnectionCredentialKey {
|
|
5
5
|
key: string;
|
|
@@ -39,7 +39,7 @@ export declare const WORKSPACE_CONNECTION_PROVIDERS: readonly [{
|
|
|
39
39
|
readonly required: true;
|
|
40
40
|
}];
|
|
41
41
|
readonly capabilities: readonly ["search", "import", "messages"];
|
|
42
|
-
readonly recommendedTemplateUses: readonly ["brain", "dispatch", "analytics"];
|
|
42
|
+
readonly recommendedTemplateUses: readonly ["brain", "dispatch", "analytics", "factory"];
|
|
43
43
|
}, {
|
|
44
44
|
readonly id: "github";
|
|
45
45
|
readonly label: "GitHub";
|
|
@@ -57,7 +57,7 @@ export declare const WORKSPACE_CONNECTION_PROVIDERS: readonly [{
|
|
|
57
57
|
readonly scopes: readonly ["repo", "read:org", "read:user", "user:email"];
|
|
58
58
|
};
|
|
59
59
|
readonly capabilities: readonly ["search", "import", "code", "docs"];
|
|
60
|
-
readonly recommendedTemplateUses: readonly ["brain", "analytics", "dispatch"];
|
|
60
|
+
readonly recommendedTemplateUses: readonly ["brain", "analytics", "dispatch", "factory"];
|
|
61
61
|
}, {
|
|
62
62
|
readonly id: "figma";
|
|
63
63
|
readonly label: "Figma";
|
|
@@ -217,7 +217,7 @@ export declare const WORKSPACE_CONNECTION_PROVIDERS: readonly [{
|
|
|
217
217
|
readonly scopes: readonly ["org:read", "project:read", "event:read", "team:read"];
|
|
218
218
|
};
|
|
219
219
|
readonly capabilities: readonly ["search", "import", "docs"];
|
|
220
|
-
readonly recommendedTemplateUses: readonly ["analytics", "brain", "dispatch"];
|
|
220
|
+
readonly recommendedTemplateUses: readonly ["analytics", "brain", "dispatch", "factory"];
|
|
221
221
|
}, {
|
|
222
222
|
readonly id: "granola";
|
|
223
223
|
readonly label: "Granola";
|
|
@@ -15,7 +15,7 @@ export const WORKSPACE_CONNECTION_PROVIDERS = [
|
|
|
15
15
|
},
|
|
16
16
|
],
|
|
17
17
|
capabilities: ["search", "import", "messages"],
|
|
18
|
-
recommendedTemplateUses: ["brain", "dispatch", "analytics"],
|
|
18
|
+
recommendedTemplateUses: ["brain", "dispatch", "analytics", "factory"],
|
|
19
19
|
}),
|
|
20
20
|
defineWorkspaceConnectionProvider({
|
|
21
21
|
id: "github",
|
|
@@ -36,7 +36,7 @@ export const WORKSPACE_CONNECTION_PROVIDERS = [
|
|
|
36
36
|
scopes: ["repo", "read:org", "read:user", "user:email"],
|
|
37
37
|
},
|
|
38
38
|
capabilities: ["search", "import", "code", "docs"],
|
|
39
|
-
recommendedTemplateUses: ["brain", "analytics", "dispatch"],
|
|
39
|
+
recommendedTemplateUses: ["brain", "analytics", "dispatch", "factory"],
|
|
40
40
|
}),
|
|
41
41
|
defineWorkspaceConnectionProvider({
|
|
42
42
|
id: "figma",
|
|
@@ -243,7 +243,7 @@ export const WORKSPACE_CONNECTION_PROVIDERS = [
|
|
|
243
243
|
scopes: ["org:read", "project:read", "event:read", "team:read"],
|
|
244
244
|
},
|
|
245
245
|
capabilities: ["search", "import", "docs"],
|
|
246
|
-
recommendedTemplateUses: ["analytics", "brain", "dispatch"],
|
|
246
|
+
recommendedTemplateUses: ["analytics", "brain", "dispatch", "factory"],
|
|
247
247
|
}),
|
|
248
248
|
defineWorkspaceConnectionProvider({
|
|
249
249
|
id: "granola",
|
package/dist/db/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare function createDb(config: DbConfig): Promise<(import("drizzle-orm
|
|
|
22
22
|
export type DrizzleDb = Awaited<ReturnType<typeof createDb>>;
|
|
23
23
|
export { createGetDb } from "./create-get-db.js";
|
|
24
24
|
export { runMigrations, type MigrationEntry, type MigrationSql, } from "./migrations.js";
|
|
25
|
-
export { getDbExec, createDbExec, getDialect, isLocalDatabase, isPostgres, intType, closeDbExec, type DbExec, type DbExecConfig, type DbExecQuery, type DbExecStatement, type Dialect, } from "./client.js";
|
|
25
|
+
export { getDbExec, createDbExec, getDatabaseUrl, getDialect, isLocalDatabase, isPostgres, intType, closeDbExec, type DbExec, type DbExecConfig, type DbExecQuery, type DbExecStatement, type Dialect, } from "./client.js";
|
|
26
26
|
export { table, text, integer, now } from "./schema.js";
|
|
27
27
|
export { ensureAdditiveColumns, type EnsureAdditiveColumnsOptions, type EnsureAdditiveColumnsResult, type EnsureAdditiveColumnsLogger, } from "./ensure-additive-columns.js";
|
|
28
28
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/db/index.js
CHANGED
|
@@ -21,7 +21,7 @@ export async function createDb(config) {
|
|
|
21
21
|
}
|
|
22
22
|
export { createGetDb } from "./create-get-db.js";
|
|
23
23
|
export { runMigrations, } from "./migrations.js";
|
|
24
|
-
export { getDbExec, createDbExec, getDialect, isLocalDatabase, isPostgres, intType, closeDbExec, } from "./client.js";
|
|
24
|
+
export { getDbExec, createDbExec, getDatabaseUrl, getDialect, isLocalDatabase, isPostgres, intType, closeDbExec, } from "./client.js";
|
|
25
25
|
export { table, text, integer, now } from "./schema.js";
|
|
26
26
|
export { ensureAdditiveColumns, } from "./ensure-additive-columns.js";
|
|
27
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -57,6 +57,11 @@ declare const messages: {
|
|
|
57
57
|
scopeLabel: string;
|
|
58
58
|
scopePersonal: string;
|
|
59
59
|
scopeWorkspace: string;
|
|
60
|
+
testStoredValue: string;
|
|
61
|
+
candidateValueWorking: string;
|
|
62
|
+
storedValueWorking: string;
|
|
63
|
+
invalid: string;
|
|
64
|
+
testFailed: string;
|
|
60
65
|
scopePersonalDescription: string;
|
|
61
66
|
scopeWorkspaceDescription: string;
|
|
62
67
|
};
|
|
@@ -62,6 +62,11 @@ const messages = {
|
|
|
62
62
|
scopeLabel: "Scope",
|
|
63
63
|
scopePersonal: "Personal",
|
|
64
64
|
scopeWorkspace: "Workspace",
|
|
65
|
+
testStoredValue: "Test",
|
|
66
|
+
candidateValueWorking: "New value works",
|
|
67
|
+
storedValueWorking: "Working",
|
|
68
|
+
invalid: "Invalid",
|
|
69
|
+
testFailed: "Test failed",
|
|
65
70
|
scopePersonalDescription: "Only your own signed-in sessions use this key. Integration, webhook, scheduled job, automation, and agent-to-agent runs sign in as their owner rather than as you, so they cannot read it.",
|
|
66
71
|
scopeWorkspaceDescription: "Everyone in this workspace uses this key, including integration, webhook, scheduled job, automation, and agent-to-agent runs.",
|
|
67
72
|
},
|
|
@@ -137,13 +137,13 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
137
137
|
inputSchema: {
|
|
138
138
|
type: string;
|
|
139
139
|
properties: {
|
|
140
|
-
count?: undefined;
|
|
141
140
|
query?: undefined;
|
|
142
141
|
minutes?: undefined;
|
|
143
142
|
limit?: undefined;
|
|
144
143
|
clientHint?: undefined;
|
|
145
144
|
timestamp?: undefined;
|
|
146
145
|
chapterId?: undefined;
|
|
146
|
+
count?: undefined;
|
|
147
147
|
startAt?: undefined;
|
|
148
148
|
endAt?: undefined;
|
|
149
149
|
reason?: undefined;
|
|
@@ -159,7 +159,6 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
159
159
|
inputSchema: {
|
|
160
160
|
type: string;
|
|
161
161
|
properties: {
|
|
162
|
-
count?: undefined;
|
|
163
162
|
query: {
|
|
164
163
|
type: string;
|
|
165
164
|
description: string;
|
|
@@ -175,6 +174,7 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
175
174
|
clientHint?: undefined;
|
|
176
175
|
timestamp?: undefined;
|
|
177
176
|
chapterId?: undefined;
|
|
177
|
+
count?: undefined;
|
|
178
178
|
startAt?: undefined;
|
|
179
179
|
endAt?: undefined;
|
|
180
180
|
reason?: undefined;
|
|
@@ -190,7 +190,6 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
190
190
|
inputSchema: {
|
|
191
191
|
type: string;
|
|
192
192
|
properties: {
|
|
193
|
-
count?: undefined;
|
|
194
193
|
minutes: {
|
|
195
194
|
type: string;
|
|
196
195
|
description: string;
|
|
@@ -200,6 +199,7 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
200
199
|
clientHint?: undefined;
|
|
201
200
|
timestamp?: undefined;
|
|
202
201
|
chapterId?: undefined;
|
|
202
|
+
count?: undefined;
|
|
203
203
|
startAt?: undefined;
|
|
204
204
|
endAt?: undefined;
|
|
205
205
|
reason?: undefined;
|
|
@@ -216,7 +216,6 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
216
216
|
type: string;
|
|
217
217
|
required: string[];
|
|
218
218
|
properties: {
|
|
219
|
-
count?: undefined;
|
|
220
219
|
query: {
|
|
221
220
|
type: string;
|
|
222
221
|
description: string;
|
|
@@ -235,6 +234,7 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
235
234
|
};
|
|
236
235
|
timestamp?: undefined;
|
|
237
236
|
chapterId?: undefined;
|
|
237
|
+
count?: undefined;
|
|
238
238
|
startAt?: undefined;
|
|
239
239
|
endAt?: undefined;
|
|
240
240
|
reason?: undefined;
|
|
@@ -250,7 +250,6 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
250
250
|
type: string;
|
|
251
251
|
required: string[];
|
|
252
252
|
properties: {
|
|
253
|
-
count?: undefined;
|
|
254
253
|
query?: undefined;
|
|
255
254
|
minutes?: undefined;
|
|
256
255
|
limit?: undefined;
|
|
@@ -264,6 +263,7 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
264
263
|
description: string;
|
|
265
264
|
};
|
|
266
265
|
chapterId?: undefined;
|
|
266
|
+
count?: undefined;
|
|
267
267
|
startAt?: undefined;
|
|
268
268
|
endAt?: undefined;
|
|
269
269
|
includeMicrophone?: undefined;
|
|
@@ -314,13 +314,13 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
314
314
|
type: string;
|
|
315
315
|
required: string[];
|
|
316
316
|
properties: {
|
|
317
|
-
count?: undefined;
|
|
318
317
|
query?: undefined;
|
|
319
318
|
minutes?: undefined;
|
|
320
319
|
limit?: undefined;
|
|
321
320
|
clientHint?: undefined;
|
|
322
321
|
timestamp?: undefined;
|
|
323
322
|
chapterId?: undefined;
|
|
323
|
+
count?: undefined;
|
|
324
324
|
startAt: {
|
|
325
325
|
type: string;
|
|
326
326
|
description: string;
|
|
@@ -349,13 +349,13 @@ export declare function screenMemoryMcpToolDefinitions(): ({
|
|
|
349
349
|
type: string;
|
|
350
350
|
required: string[];
|
|
351
351
|
properties: {
|
|
352
|
-
count?: undefined;
|
|
353
352
|
query?: undefined;
|
|
354
353
|
minutes?: undefined;
|
|
355
354
|
limit?: undefined;
|
|
356
355
|
clientHint?: undefined;
|
|
357
356
|
timestamp?: undefined;
|
|
358
357
|
chapterId?: undefined;
|
|
358
|
+
count?: undefined;
|
|
359
359
|
startAt?: undefined;
|
|
360
360
|
endAt?: undefined;
|
|
361
361
|
reason?: undefined;
|
|
@@ -41,16 +41,16 @@ export declare function createObservabilityHandler(): import("h3").EventHandlerW
|
|
|
41
41
|
thumbsUpRate: number;
|
|
42
42
|
avgEvalScore: number;
|
|
43
43
|
} | {
|
|
44
|
+
error?: undefined;
|
|
44
45
|
summary: import("./types.js").TraceSummary;
|
|
45
46
|
spans: import("./types.js").TraceSpan[];
|
|
46
47
|
id?: undefined;
|
|
47
|
-
error?: undefined;
|
|
48
48
|
ok?: undefined;
|
|
49
49
|
} | {
|
|
50
|
+
error?: undefined;
|
|
50
51
|
summary?: undefined;
|
|
51
52
|
spans?: undefined;
|
|
52
53
|
id: string;
|
|
53
|
-
error?: undefined;
|
|
54
54
|
ok?: undefined;
|
|
55
55
|
} | {
|
|
56
56
|
summary?: undefined;
|
|
@@ -59,10 +59,10 @@ export declare function createObservabilityHandler(): import("h3").EventHandlerW
|
|
|
59
59
|
error: any;
|
|
60
60
|
ok?: undefined;
|
|
61
61
|
} | {
|
|
62
|
+
error?: undefined;
|
|
62
63
|
summary?: undefined;
|
|
63
64
|
spans?: undefined;
|
|
64
65
|
id?: undefined;
|
|
65
|
-
error?: undefined;
|
|
66
66
|
ok: boolean;
|
|
67
67
|
}>>;
|
|
68
68
|
//# sourceMappingURL=routes.d.ts.map
|