@agent-native/core 0.178.1 → 0.178.2-nightly-20260910195009
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/analytics/app/components/layout/Sidebar.tsx +108 -121
- package/corpus/templates/assets/app/components/layout/Sidebar.tsx +87 -220
- package/corpus/templates/brain/app/components/layout/Sidebar.tsx +83 -221
- package/corpus/templates/calendar/app/components/layout/Sidebar.tsx +324 -460
- package/corpus/templates/chat/app/components/layout/Sidebar.tsx +57 -247
- package/corpus/templates/clips/app/components/library/library-layout.tsx +15 -48
- package/corpus/templates/clips/changelog/2026-09-10-open-mcp-connections-in-new-tabs.md +1 -0
- package/corpus/templates/content/app/components/sidebar/DocumentSidebar.tsx +84 -94
- package/corpus/templates/crm/app/components/layout/CrmLayout.tsx +1 -1
- package/corpus/templates/crm/app/components/layout/CrmSidebar.tsx +108 -296
- package/corpus/templates/design/app/components/layout/Sidebar.tsx +55 -212
- package/corpus/templates/factory/app/components/layout/Sidebar.tsx +72 -260
- package/corpus/templates/forms/app/components/layout/Sidebar.tsx +143 -362
- package/corpus/templates/macros/app/components/layout/AppLayout.tsx +64 -159
- package/corpus/templates/mail/app/components/layout/AppLayout.tsx +152 -165
- package/corpus/templates/plan/app/components/layout/Sidebar.tsx +82 -207
- package/corpus/templates/slides/app/components/layout/Sidebar.tsx +61 -234
- package/corpus/templates/tasks/app/components/layout/Sidebar.tsx +73 -225
- package/dist/automation/index.d.ts +1 -1
- package/dist/client/EnvironmentBadge.d.ts +7 -4
- package/dist/client/EnvironmentBadge.js +26 -18
- package/dist/client/FeedbackButton.js +23 -8
- package/dist/client/app-providers.js +1 -1
- package/dist/client/auth/AuthPage.js +0 -38
- package/dist/client/components/icons/AgentNativeIcon.js +1 -1
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.js +1 -0
- package/dist/client/ui/AppSidebar.d.ts +15 -0
- package/dist/client/ui/AppSidebar.js +34 -0
- package/dist/client/ui/index.d.ts +1 -0
- package/dist/client/ui/index.js +1 -0
- package/dist/collab/awareness.d.ts +2 -2
- package/dist/collab/struct-routes.d.ts +1 -1
- package/dist/config.d.ts +4 -0
- package/dist/config.js +19 -3
- 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 +15 -15
- package/dist/provider-api/corpus-jobs.d.ts +2 -2
- package/dist/resources/handlers.d.ts +1 -1
- package/dist/secrets/routes.d.ts +9 -9
- package/dist/server/beta-opt-out-html.js +2 -2
- package/dist/templates/chat/app/components/layout/Sidebar.tsx +57 -247
- package/dist/vite/client.js +4 -1
- package/docs/content/template-clips-anonymous-intake.mdx +7 -5
- package/docs/content/template-clips-developers.mdx +1 -1
- package/package.json +3 -3
- package/src/templates/chat/app/components/layout/Sidebar.tsx +57 -247
package/dist/client/index.js
CHANGED
|
@@ -13,6 +13,7 @@ export * from "./ui/index.js";
|
|
|
13
13
|
export { cn } from "@agent-native/toolkit/utils";
|
|
14
14
|
export { AgentNativeI18nProvider, LanguagePicker, getLocaleInitScript, isLocaleCode, isValidLocaleCode, localeDirection, localeMetadataFor, normalizeLocaleCode, normalizeLocalePreference, normalizeLocalizationPreference, resolveLocaleFromCandidates, resolveLocaleFromPreference, useFormatters, useLocale, useT, DEFAULT_LOCALE, LOCALE_HYDRATION_GLOBAL, LOCALE_METADATA, LOCALE_STORAGE_KEY, SUPPORTED_LOCALES, } from "./i18n.js";
|
|
15
15
|
export { AgentNativeIcon } from "./components/icons/AgentNativeIcon.js";
|
|
16
|
+
export { AppSidebar, AppSidebarHeader, AppSidebarNavItem, AppSidebarNavGroup, AppSidebarSection, AppSidebarFeedbackButton, AppSidebarFooter, useAppSidebar, } from "./ui/AppSidebar.js";
|
|
16
17
|
export { FeatureFlagsEditor, evaluatedFeatureFlagValues, featureFlagValue, useFeatureFlag, useFeatureFlags, } from "./feature-flags/index.js";
|
|
17
18
|
export { ExperimentsSettings, useExperiment, useExperimentState, useExperiments, } from "./experiments/index.js";
|
|
18
19
|
export { withBuilderUtmTrackingParams } from "../shared/builder-link-tracking.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type AppSidebarProps as ToolkitAppSidebarProps, type AppSidebarHeaderProps as ToolkitAppSidebarHeaderProps, type AppSidebarFooterProps as ToolkitAppSidebarFooterProps } from "@agent-native/toolkit/app-shell";
|
|
2
|
+
export interface AppSidebarHeaderProps extends ToolkitAppSidebarHeaderProps {
|
|
3
|
+
badgeText?: string;
|
|
4
|
+
showBadge?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const AppSidebarHeader: import("react").ForwardRefExoticComponent<AppSidebarHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export interface AppSidebarFooterProps extends ToolkitAppSidebarFooterProps {
|
|
8
|
+
}
|
|
9
|
+
export declare const AppSidebarFooter: import("react").ForwardRefExoticComponent<AppSidebarFooterProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export interface AppSidebarProps extends ToolkitAppSidebarProps {
|
|
11
|
+
badgeText?: string;
|
|
12
|
+
showBadge?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const AppSidebar: import("react").ForwardRefExoticComponent<AppSidebarProps & import("react").RefAttributes<HTMLElement>>;
|
|
15
|
+
export { AppSidebarNavItem, AppSidebarNavGroup, AppSidebarSection, AppSidebarFeedbackButton, useAppSidebar, type AppSidebarNavItemProps, type AppSidebarNavGroupProps, type AppSidebarSectionProps, type AppSidebarFeedbackButtonProps, type AppSidebarItemDefinition, type AppSidebarContextValue, type AppSidebarLinkComponent, } from "@agent-native/toolkit/app-shell";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AppSidebar as ToolkitAppSidebar, AppSidebarHeader as ToolkitAppSidebarHeader, AppSidebarFooter as ToolkitAppSidebarFooter, useAppSidebar, } from "@agent-native/toolkit/app-shell";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import { Link } from "react-router";
|
|
5
|
+
import { AgentNativeIcon } from "../components/icons/AgentNativeIcon.js";
|
|
6
|
+
import { EnvironmentBadge } from "../EnvironmentBadge.js";
|
|
7
|
+
import { FeedbackButton } from "../FeedbackButton.js";
|
|
8
|
+
function RouterSidebarLink({ to, href, className, onClick, children, "aria-label": ariaLabel, }) {
|
|
9
|
+
return (_jsx(Link, { to: to ?? href ?? "/", className: className, onClick: onClick, "aria-label": ariaLabel, children: children }));
|
|
10
|
+
}
|
|
11
|
+
export const AppSidebarHeader = forwardRef(({ brandIcon, badge, badgeText, showBadge = true, brandLink, brandHref = "/", ...props }, ref) => {
|
|
12
|
+
const resolvedBrandIcon = brandIcon ?? (_jsx(AgentNativeIcon, { "aria-hidden": "true", className: "h-3.5 w-6 shrink-0 text-primary" }));
|
|
13
|
+
const resolvedBadge = badge ??
|
|
14
|
+
(showBadge ? (_jsx(EnvironmentBadge, { placement: "inline", badgeText: badgeText })) : undefined);
|
|
15
|
+
return (_jsx(ToolkitAppSidebarHeader, { ref: ref, brandIcon: resolvedBrandIcon, badge: resolvedBadge, brandHref: brandHref, ...props }));
|
|
16
|
+
});
|
|
17
|
+
AppSidebarHeader.displayName = "AppSidebarHeader";
|
|
18
|
+
export const AppSidebarFooter = forwardRef(({ feedback, collapsed: propCollapsed, ...props }, ref) => {
|
|
19
|
+
const context = useAppSidebar();
|
|
20
|
+
const collapsed = propCollapsed ?? context.collapsed;
|
|
21
|
+
const resolvedFeedback = feedback !== undefined ? (feedback) : (_jsx(FeedbackButton, { variant: collapsed ? "icon" : "sidebar", side: "right" }));
|
|
22
|
+
return (_jsx(ToolkitAppSidebarFooter, { ref: ref, collapsed: collapsed, feedback: resolvedFeedback, ...props }));
|
|
23
|
+
});
|
|
24
|
+
AppSidebarFooter.displayName = "AppSidebarFooter";
|
|
25
|
+
export const AppSidebar = forwardRef(({ brandIcon, badge, badgeText, showBadge = true, linkComponent, ...props }, ref) => {
|
|
26
|
+
const resolvedBrandIcon = brandIcon ?? (_jsx(AgentNativeIcon, { "aria-hidden": "true", className: "h-3.5 w-6 shrink-0 text-primary" }));
|
|
27
|
+
const resolvedBadge = badge ??
|
|
28
|
+
(showBadge ? (_jsx(EnvironmentBadge, { placement: "inline", badgeText: badgeText })) : undefined);
|
|
29
|
+
const resolvedLinkComponent = linkComponent ?? RouterSidebarLink;
|
|
30
|
+
const resolvedFeedback = props.feedback !== undefined ? (props.feedback) : (_jsx(FeedbackButton, { variant: props.collapsed ? "icon" : "sidebar" }));
|
|
31
|
+
return (_jsx(ToolkitAppSidebar, { ref: ref, brandIcon: resolvedBrandIcon, badge: resolvedBadge, linkComponent: resolvedLinkComponent, ...props, feedback: resolvedFeedback }));
|
|
32
|
+
});
|
|
33
|
+
AppSidebar.displayName = "AppSidebar";
|
|
34
|
+
export { AppSidebarNavItem, AppSidebarNavGroup, AppSidebarSection, AppSidebarFeedbackButton, useAppSidebar, } from "@agent-native/toolkit/app-shell";
|
|
@@ -19,3 +19,4 @@ export { applyEmbeddedThemeUpdate, buildEmbeddedThemeUpdate, EMBEDDED_THEME_CHAN
|
|
|
19
19
|
export { APPEARANCE_PRESETS, applyAppearance, getStoredAppearance, useAppearance, useAppearanceSync, type AppearancePresetId, } from "../appearance.js";
|
|
20
20
|
export { AppearancePicker, type AppearancePickerProps, } from "../AppearancePicker.js";
|
|
21
21
|
export { AgentNativeIcon } from "../components/icons/AgentNativeIcon.js";
|
|
22
|
+
export { AppSidebar, AppSidebarHeader, AppSidebarNavItem, AppSidebarNavGroup, AppSidebarSection, AppSidebarFeedbackButton, AppSidebarFooter, useAppSidebar, type AppSidebarProps, type AppSidebarHeaderProps, type AppSidebarNavItemProps, type AppSidebarNavGroupProps, type AppSidebarSectionProps, type AppSidebarFeedbackButtonProps, type AppSidebarFooterProps, type AppSidebarItemDefinition, type AppSidebarContextValue, } from "./AppSidebar.js";
|
package/dist/client/ui/index.js
CHANGED
|
@@ -19,3 +19,4 @@ export { applyEmbeddedThemeUpdate, buildEmbeddedThemeUpdate, EMBEDDED_THEME_CHAN
|
|
|
19
19
|
export { APPEARANCE_PRESETS, applyAppearance, getStoredAppearance, useAppearance, useAppearanceSync, } from "../appearance.js";
|
|
20
20
|
export { AppearancePicker, } from "../AppearancePicker.js";
|
|
21
21
|
export { AgentNativeIcon } from "../components/icons/AgentNativeIcon.js";
|
|
22
|
+
export { AppSidebar, AppSidebarHeader, AppSidebarNavItem, AppSidebarNavGroup, AppSidebarSection, AppSidebarFeedbackButton, AppSidebarFooter, useAppSidebar, } from "./AppSidebar.js";
|
|
@@ -62,11 +62,11 @@ export declare const postAwareness: import("h3").EventHandlerWithFetch<import("h
|
|
|
62
62
|
error: string;
|
|
63
63
|
states?: undefined;
|
|
64
64
|
} | {
|
|
65
|
-
error?: undefined;
|
|
66
65
|
states: {
|
|
67
66
|
clientId: number;
|
|
68
67
|
state: string;
|
|
69
68
|
}[];
|
|
69
|
+
error?: undefined;
|
|
70
70
|
}>>;
|
|
71
71
|
/**
|
|
72
72
|
* GET /_agent-native/collab/:docId/users
|
|
@@ -77,9 +77,9 @@ export declare const getActiveUsers: import("h3").EventHandlerWithFetch<import("
|
|
|
77
77
|
error: string;
|
|
78
78
|
users?: undefined;
|
|
79
79
|
} | {
|
|
80
|
-
error?: undefined;
|
|
81
80
|
users: {
|
|
82
81
|
clientId: number;
|
|
83
82
|
lastSeen: number;
|
|
84
83
|
}[];
|
|
84
|
+
error?: undefined;
|
|
85
85
|
}>>;
|
|
@@ -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;
|
package/dist/config.d.ts
CHANGED
|
@@ -42,6 +42,8 @@ export type AgentNativeDeploymentEnvironment = "local" | "beta" | "production" |
|
|
|
42
42
|
export interface AgentNativeDeploymentConfig {
|
|
43
43
|
/** The release lane that produced the currently running client bundle. */
|
|
44
44
|
environment?: AgentNativeDeploymentEnvironment;
|
|
45
|
+
/** Badge text override shown in the top-left sidebar header badge (e.g. "alpha" or "beta"). Defaults to "alpha". */
|
|
46
|
+
badgeText?: string;
|
|
45
47
|
}
|
|
46
48
|
export interface AgentNativeDiagnosticsConfig {
|
|
47
49
|
/** Fail a production Vite build when runtime configuration has issues. */
|
|
@@ -79,6 +81,8 @@ export interface AgentNativeConfig {
|
|
|
79
81
|
onboarding?: AgentNativeOnboardingConfig;
|
|
80
82
|
runtime?: AgentNativeRuntimeConfig;
|
|
81
83
|
deployment?: AgentNativeDeploymentConfig;
|
|
84
|
+
/** Badge text override shown in the top-left sidebar header badge (e.g. "alpha" or "beta"). Defaults to "alpha". */
|
|
85
|
+
badgeText?: string;
|
|
82
86
|
diagnostics?: AgentNativeDiagnosticsConfig;
|
|
83
87
|
instructions?: AgentNativeInstructionsConfig;
|
|
84
88
|
translations?: AgentNativeTranslationsConfig;
|
package/dist/config.js
CHANGED
|
@@ -275,6 +275,7 @@ export function normalizeAgentNativeConfig(input, source = "agent-native config"
|
|
|
275
275
|
const onboardingValue = input.onboarding;
|
|
276
276
|
const runtimeValue = input.runtime;
|
|
277
277
|
const deploymentValue = input.deployment;
|
|
278
|
+
const badgeTextValue = input.badgeText;
|
|
278
279
|
const diagnosticsValue = input.diagnostics;
|
|
279
280
|
const instructionsValue = input.instructions;
|
|
280
281
|
const translationsValue = input.translations;
|
|
@@ -285,6 +286,12 @@ export function normalizeAgentNativeConfig(input, source = "agent-native config"
|
|
|
285
286
|
? {}
|
|
286
287
|
: { version: AGENT_NATIVE_CONFIG_VERSION }),
|
|
287
288
|
};
|
|
289
|
+
if (badgeTextValue !== undefined) {
|
|
290
|
+
if (typeof badgeTextValue !== "string") {
|
|
291
|
+
throw new Error(`${source}.badgeText must be a string`);
|
|
292
|
+
}
|
|
293
|
+
normalized.badgeText = badgeTextValue;
|
|
294
|
+
}
|
|
288
295
|
if (onboardingValue !== undefined) {
|
|
289
296
|
if (!isRecord(onboardingValue)) {
|
|
290
297
|
throw new Error(`${source}.onboarding must be an object`);
|
|
@@ -360,6 +367,7 @@ export function mergeAgentNativeConfigs(base, override, options = {}) {
|
|
|
360
367
|
...override.deployment,
|
|
361
368
|
}
|
|
362
369
|
: undefined,
|
|
370
|
+
badgeText: override.badgeText ?? base.badgeText,
|
|
363
371
|
diagnostics: base.diagnostics || override.diagnostics
|
|
364
372
|
? {
|
|
365
373
|
...base.diagnostics,
|
|
@@ -469,12 +477,20 @@ function normalizeDeploymentConfig(value, source) {
|
|
|
469
477
|
throw new Error(`${source} must be an object`);
|
|
470
478
|
}
|
|
471
479
|
const environment = value.environment;
|
|
472
|
-
|
|
473
|
-
|
|
480
|
+
const badgeText = value.badgeText;
|
|
481
|
+
if (badgeText !== undefined && typeof badgeText !== "string") {
|
|
482
|
+
throw new Error(`${source}.badgeText must be a string`);
|
|
483
|
+
}
|
|
484
|
+
if (environment === undefined) {
|
|
485
|
+
return badgeText === undefined ? {} : { badgeText };
|
|
486
|
+
}
|
|
474
487
|
if (!isAgentNativeDeploymentEnvironment(environment)) {
|
|
475
488
|
throw new Error(`${source}.environment must be "local", "beta", "production", or "preview"`);
|
|
476
489
|
}
|
|
477
|
-
return {
|
|
490
|
+
return {
|
|
491
|
+
environment,
|
|
492
|
+
...(badgeText === undefined ? {} : { badgeText }),
|
|
493
|
+
};
|
|
478
494
|
}
|
|
479
495
|
function normalizeDiagnosticsConfig(value, source) {
|
|
480
496
|
if (!isRecord(value)) {
|
|
@@ -76,9 +76,7 @@ export declare function createCustomProviderRegistrationAction<TSchema extends Z
|
|
|
76
76
|
}>>;
|
|
77
77
|
}, z.core.$strip>>, {
|
|
78
78
|
id?: undefined;
|
|
79
|
-
message?: undefined;
|
|
80
79
|
deleted?: undefined;
|
|
81
|
-
provider?: undefined;
|
|
82
80
|
providers: {
|
|
83
81
|
id: string;
|
|
84
82
|
label: string;
|
|
@@ -89,44 +87,46 @@ export declare function createCustomProviderRegistrationAction<TSchema extends Z
|
|
|
89
87
|
updatedAt: number;
|
|
90
88
|
}[];
|
|
91
89
|
count: number;
|
|
90
|
+
provider?: undefined;
|
|
92
91
|
found?: undefined;
|
|
93
92
|
registered?: undefined;
|
|
94
93
|
label?: undefined;
|
|
94
|
+
message?: undefined;
|
|
95
95
|
} | {
|
|
96
96
|
id?: undefined;
|
|
97
|
-
message?: undefined;
|
|
98
97
|
deleted?: undefined;
|
|
99
|
-
count?: undefined;
|
|
100
98
|
providers?: undefined;
|
|
99
|
+
count?: undefined;
|
|
101
100
|
found: boolean;
|
|
102
101
|
provider: import("../custom-registry.js").CustomProviderConfig;
|
|
103
102
|
registered?: undefined;
|
|
104
103
|
label?: undefined;
|
|
105
|
-
} | {
|
|
106
104
|
message?: undefined;
|
|
105
|
+
} | {
|
|
107
106
|
deleted?: undefined;
|
|
107
|
+
providers?: undefined;
|
|
108
108
|
count?: undefined;
|
|
109
109
|
provider?: undefined;
|
|
110
|
-
providers?: undefined;
|
|
111
110
|
found: boolean;
|
|
112
111
|
id: string;
|
|
113
112
|
registered?: undefined;
|
|
114
113
|
label?: undefined;
|
|
115
|
-
} | {
|
|
116
114
|
message?: undefined;
|
|
115
|
+
} | {
|
|
116
|
+
providers?: undefined;
|
|
117
117
|
count?: undefined;
|
|
118
118
|
provider?: undefined;
|
|
119
|
-
providers?: undefined;
|
|
120
119
|
found?: undefined;
|
|
121
120
|
deleted: boolean;
|
|
122
121
|
id: string;
|
|
123
122
|
registered?: undefined;
|
|
124
123
|
label?: undefined;
|
|
124
|
+
message?: undefined;
|
|
125
125
|
} | {
|
|
126
126
|
deleted?: undefined;
|
|
127
|
+
providers?: undefined;
|
|
127
128
|
count?: undefined;
|
|
128
129
|
provider?: undefined;
|
|
129
|
-
providers?: undefined;
|
|
130
130
|
found?: undefined;
|
|
131
131
|
registered: boolean;
|
|
132
132
|
id: string;
|
|
@@ -311,6 +311,10 @@ export declare function createProviderApiActions(runtime: Pick<ProviderApiRuntim
|
|
|
311
311
|
notes?: string | undefined;
|
|
312
312
|
scope?: "org" | "user" | undefined;
|
|
313
313
|
}, {
|
|
314
|
+
id?: undefined;
|
|
315
|
+
message?: undefined;
|
|
316
|
+
deleted?: undefined;
|
|
317
|
+
provider?: undefined;
|
|
314
318
|
providers: {
|
|
315
319
|
id: string;
|
|
316
320
|
label: string;
|
|
@@ -321,49 +325,45 @@ export declare function createProviderApiActions(runtime: Pick<ProviderApiRuntim
|
|
|
321
325
|
updatedAt: number;
|
|
322
326
|
}[];
|
|
323
327
|
count: number;
|
|
324
|
-
provider?: undefined;
|
|
325
328
|
found?: undefined;
|
|
326
|
-
deleted?: undefined;
|
|
327
329
|
registered?: undefined;
|
|
328
|
-
id?: undefined;
|
|
329
330
|
label?: undefined;
|
|
330
|
-
message?: undefined;
|
|
331
331
|
} | {
|
|
332
|
-
|
|
332
|
+
id?: undefined;
|
|
333
|
+
message?: undefined;
|
|
334
|
+
deleted?: undefined;
|
|
333
335
|
count?: undefined;
|
|
336
|
+
providers?: undefined;
|
|
334
337
|
found: boolean;
|
|
335
338
|
provider: import("../custom-registry.js").CustomProviderConfig;
|
|
336
|
-
deleted?: undefined;
|
|
337
339
|
registered?: undefined;
|
|
338
|
-
id?: undefined;
|
|
339
340
|
label?: undefined;
|
|
340
|
-
message?: undefined;
|
|
341
341
|
} | {
|
|
342
|
-
|
|
342
|
+
message?: undefined;
|
|
343
|
+
deleted?: undefined;
|
|
343
344
|
count?: undefined;
|
|
344
345
|
provider?: undefined;
|
|
346
|
+
providers?: undefined;
|
|
345
347
|
found: boolean;
|
|
346
348
|
id: string;
|
|
347
|
-
deleted?: undefined;
|
|
348
349
|
registered?: undefined;
|
|
349
350
|
label?: undefined;
|
|
350
|
-
message?: undefined;
|
|
351
351
|
} | {
|
|
352
|
-
|
|
352
|
+
message?: undefined;
|
|
353
353
|
count?: undefined;
|
|
354
354
|
provider?: undefined;
|
|
355
|
+
providers?: undefined;
|
|
355
356
|
found?: undefined;
|
|
356
357
|
deleted: boolean;
|
|
357
358
|
id: string;
|
|
358
359
|
registered?: undefined;
|
|
359
360
|
label?: undefined;
|
|
360
|
-
message?: undefined;
|
|
361
361
|
} | {
|
|
362
|
-
|
|
362
|
+
deleted?: undefined;
|
|
363
363
|
count?: undefined;
|
|
364
364
|
provider?: undefined;
|
|
365
|
+
providers?: undefined;
|
|
365
366
|
found?: undefined;
|
|
366
|
-
deleted?: undefined;
|
|
367
367
|
registered: boolean;
|
|
368
368
|
id: string;
|
|
369
369
|
label: string;
|
|
@@ -73,7 +73,6 @@ export declare function createProviderCorpusJobAction(options: CreateProviderCor
|
|
|
73
73
|
offset?: unknown;
|
|
74
74
|
limit?: unknown;
|
|
75
75
|
}, {
|
|
76
|
-
deleted?: undefined;
|
|
77
76
|
jobs: {
|
|
78
77
|
id: string;
|
|
79
78
|
name: string;
|
|
@@ -84,6 +83,7 @@ export declare function createProviderCorpusJobAction(options: CreateProviderCor
|
|
|
84
83
|
updatedAt: string;
|
|
85
84
|
}[];
|
|
86
85
|
total: number;
|
|
86
|
+
deleted?: undefined;
|
|
87
87
|
jobId?: undefined;
|
|
88
88
|
} | {
|
|
89
89
|
jobs?: undefined;
|
|
@@ -91,9 +91,9 @@ export declare function createProviderCorpusJobAction(options: CreateProviderCor
|
|
|
91
91
|
deleted: boolean;
|
|
92
92
|
jobId: string;
|
|
93
93
|
} | {
|
|
94
|
-
deleted?: undefined;
|
|
95
94
|
jobs?: undefined;
|
|
96
95
|
total?: undefined;
|
|
96
|
+
deleted?: undefined;
|
|
97
97
|
jobId?: undefined;
|
|
98
98
|
hits: Record<string, unknown>[];
|
|
99
99
|
offset: number;
|
|
@@ -48,8 +48,8 @@ export declare function handleUpdateResource(event: any): Promise<import("./stor
|
|
|
48
48
|
}>;
|
|
49
49
|
/** DELETE /_agent-native/resources/:id — delete a resource */
|
|
50
50
|
export declare function handleDeleteResource(event: any): Promise<{
|
|
51
|
-
error: string;
|
|
52
51
|
ok?: undefined;
|
|
52
|
+
error: string;
|
|
53
53
|
} | {
|
|
54
54
|
error?: undefined;
|
|
55
55
|
ok: boolean;
|
package/dist/secrets/routes.d.ts
CHANGED
|
@@ -53,37 +53,37 @@ export declare function createListSecretsHandler(): import("h3").EventHandlerWit
|
|
|
53
53
|
/** POST /_agent-native/secrets/:key — write a secret. */
|
|
54
54
|
export declare function createWriteSecretHandler(): import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
|
|
55
55
|
error: string;
|
|
56
|
-
status?: undefined;
|
|
57
56
|
ok?: undefined;
|
|
57
|
+
status?: undefined;
|
|
58
58
|
} | {
|
|
59
|
-
error?: undefined;
|
|
60
59
|
ok: boolean;
|
|
61
60
|
status: string;
|
|
61
|
+
error?: undefined;
|
|
62
62
|
} | {
|
|
63
|
+
ok?: undefined;
|
|
63
64
|
error: string;
|
|
64
65
|
removed?: undefined;
|
|
65
|
-
ok?: undefined;
|
|
66
66
|
} | {
|
|
67
|
-
error?: undefined;
|
|
68
67
|
ok: boolean;
|
|
69
68
|
removed: boolean;
|
|
69
|
+
error?: undefined;
|
|
70
70
|
}>>;
|
|
71
71
|
/**
|
|
72
72
|
* POST /_agent-native/secrets/:key/test — validate an optional candidate value
|
|
73
73
|
* or the current stored value without changing anything.
|
|
74
74
|
*/
|
|
75
75
|
export declare function createTestSecretHandler(): import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<{
|
|
76
|
+
ok?: undefined;
|
|
76
77
|
error: string;
|
|
77
78
|
note?: undefined;
|
|
78
|
-
ok?: undefined;
|
|
79
79
|
} | {
|
|
80
|
-
error?: undefined;
|
|
81
80
|
ok: boolean;
|
|
82
81
|
note?: undefined;
|
|
83
|
-
} | {
|
|
84
82
|
error?: undefined;
|
|
83
|
+
} | {
|
|
85
84
|
ok: boolean;
|
|
86
85
|
note: string;
|
|
86
|
+
error?: undefined;
|
|
87
87
|
} | {
|
|
88
88
|
note?: undefined;
|
|
89
89
|
ok: boolean;
|
|
@@ -115,11 +115,11 @@ export interface AdHocSecretPayload {
|
|
|
115
115
|
export declare function createAdHocSecretHandler(): import("h3").EventHandlerWithFetch<import("h3").EventHandlerRequest, Promise<AdHocSecretPayload[] | {
|
|
116
116
|
error: string;
|
|
117
117
|
} | {
|
|
118
|
-
error?: undefined;
|
|
119
118
|
ok: boolean;
|
|
120
119
|
key: string;
|
|
121
|
-
} | {
|
|
122
120
|
error?: undefined;
|
|
121
|
+
} | {
|
|
123
122
|
ok: boolean;
|
|
124
123
|
removed: boolean;
|
|
124
|
+
error?: undefined;
|
|
125
125
|
}>>;
|
|
@@ -25,9 +25,9 @@ function betaRedirectBasePath(requestPath) {
|
|
|
25
25
|
: configuredBasePath;
|
|
26
26
|
}
|
|
27
27
|
const environmentSwitcherMarkup = `<div class="environment-switcher" id="environment-switcher" ${ENVIRONMENT_SWITCHER_MARKER} hidden>
|
|
28
|
-
<button type="button" class="environment-badge" id="environment-badge" aria-expanded="false" aria-controls="environment-popover">
|
|
28
|
+
<button type="button" class="environment-badge" id="environment-badge" aria-expanded="false" aria-controls="environment-popover">alpha</button>
|
|
29
29
|
<div class="environment-popover" id="environment-popover" role="dialog" aria-labelledby="environment-popover-title" hidden>
|
|
30
|
-
<div class="environment-popover-title" id="environment-popover-title">You're on Agent-Native
|
|
30
|
+
<div class="environment-popover-title" id="environment-popover-title">You're on Agent-Native Alpha</div>
|
|
31
31
|
<div class="environment-popover-copy">Choose where you want to continue.</div>
|
|
32
32
|
<a class="environment-production-link" id="environment-production-link" href="">Switch to production</a>
|
|
33
33
|
<button type="button" class="environment-hide-badge" id="environment-hide-badge">Hide badge</button>
|