@kortix/ui 0.15.10 → 0.15.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_vendor/kortix-shared.js +396 -2
- package/dist/_vendor/shared/app-config.d.ts +6 -30
- package/dist/_vendor/shared/channel-descriptors.d.ts +0 -34
- package/dist/_vendor/shared/channel-header.d.ts +2 -1
- package/dist/_vendor/shared/connector-sections.d.ts +0 -25
- package/dist/_vendor/shared/file-tags.d.ts +2 -1
- package/dist/_vendor/shared/pasted-content.d.ts +0 -4
- package/dist/_vendor/shared/pixel-mark.d.ts +0 -17
- package/dist/_vendor/shared/project-glyphs.d.ts +0 -1
- package/dist/customize/agents/agent-model-view.d.ts +11 -1
- package/dist/customize/agents/agent-model-view.js +12 -1
- package/dist/customize/agents/agent-page.js +19 -6
- package/dist/customize/agents/agent-tabs.d.ts +2 -0
- package/dist/customize/agents/agent-tabs.js +2 -0
- package/dist/customize/connectors/detail/connector-triggers.js +1 -1
- package/dist/customize/connectors/use-agent-access.d.ts +1 -0
- package/dist/customize/sections/component/teams-byo-wizard.js +4 -1
- package/dist/customize/triggers/runtime-triggers.js +13 -2
- package/dist/customize/triggers/schedule/event-trigger-copy.js +1 -1
- package/dist/customize/triggers/schedule/schedule-detail-sheet.js +5 -4
- package/dist/customize/triggers/schedule/then-fields.d.ts +5 -1
- package/dist/customize/triggers/schedule/then-fields.js +23 -3
- package/dist/customize/triggers/schedule/trigger-callouts.js +1 -1
- package/dist/customize/triggers/schedule/trigger-composer-logic.d.ts +27 -0
- package/dist/customize/triggers/schedule/trigger-composer-logic.js +51 -5
- package/dist/customize/triggers/schedule/trigger-composer.js +19 -13
- package/dist/customize/triggers/schedule/trigger-edit-logic.js +25 -5
- package/dist/customize/triggers/schedule/trigger-filter.d.ts +10 -3
- package/dist/customize/triggers/schedule/trigger-filter.js +7 -6
- package/dist/customize/triggers/schedule/trigger-readonly.js +1 -1
- package/dist/customize/triggers/schedule/trigger-runs-panel.js +1 -1
- package/dist/customize/triggers/schedule/when-event.js +1 -1
- package/dist/customize/triggers/schedule/when-schedule.d.ts +5 -1
- package/dist/customize/triggers/schedule/when-schedule.js +16 -1
- package/dist/customize/triggers/schedule-view.js +4 -2
- package/dist/i18n/en.d.ts +49 -0
- package/dist/i18n/en.js +57 -8
- package/dist/internal/layout/project-settings-nav.d.ts +17 -0
- package/dist/internal/layout/project-settings-nav.js +24 -0
- package/dist/internal/lib/capability-tab-routes.d.ts +8 -0
- package/dist/internal/lib/capability-tab-routes.js +11 -0
- package/dist/internal/stores/composer-prefill-store.d.ts +7 -0
- package/dist/internal/stores/composer-prefill-store.js +1 -0
- package/dist/session/actions/session-label.js +2 -2
- package/dist/session/agents/agent-strip.d.ts +10 -5
- package/dist/session/agents/agent-strip.js +40 -12
- package/dist/session/agents/held-messages.d.ts +6 -2
- package/dist/session/agents/held-messages.js +6 -3
- package/dist/session/composer/ComposerCard.js +4 -1
- package/dist/session/composer/agent-selector.d.ts +2 -0
- package/dist/session/composer/agent-selector.js +5 -0
- package/dist/session/composer/composer-chat-input.d.ts +1 -0
- package/dist/session/composer/composer-logic.d.ts +7 -0
- package/dist/session/composer/composer-logic.js +18 -0
- package/dist/session/composer/composer-reset.d.ts +8 -14
- package/dist/session/composer/composer-toolbar.d.ts +3 -1
- package/dist/session/composer/composer-toolbar.js +3 -3
- package/dist/session/composer/composer.d.ts +7 -0
- package/dist/session/composer/composer.js +17 -3
- package/dist/session/composer/editor/composer-editor.js +6 -4
- package/dist/session/header/session-site-header.d.ts +3 -1
- package/dist/session/header/session-site-header.js +3 -2
- package/dist/session/models/connect-model-step.d.ts +29 -0
- package/dist/session/models/connect-model-step.js +50 -0
- package/dist/session/models/use-workspace-model-gate.d.ts +11 -0
- package/dist/session/models/use-workspace-model-gate.js +62 -0
- package/dist/session/models/workspace-model-gate.d.ts +46 -0
- package/dist/session/models/workspace-model-gate.js +66 -0
- package/dist/session/prompts/session-connect-card.d.ts +63 -0
- package/dist/session/prompts/{session-connect-prompt.js → session-connect-card.js} +53 -42
- package/dist/session/thread/session-chat.js +294 -298
- package/dist/session/thread/transcript.d.ts +2 -1
- package/dist/session/thread/transcript.js +7 -3
- package/dist/session/tool/tool-part-renderer.js +7 -2
- package/dist/session/tool/tools/kortix-action-tool.js +10 -2
- package/dist/session/turn/turn-viewport.d.ts +66 -10
- package/dist/session/turn/turn-viewport.js +92 -12
- package/dist/session/turn/user-message.js +7 -5
- package/dist/styles.css +1 -1
- package/dist/test-utils/intl.d.ts +49 -0
- package/dist/workspace/admin/project-admin-dashboard.js +2 -4
- package/dist/workspace/home/existing-repo-setup-prompt.d.ts +5 -8
- package/dist/workspace/home/existing-repo-setup-prompt.js +16 -42
- package/dist/workspace/home/no-agent-home.d.ts +3 -1
- package/dist/workspace/home/no-agent-home.js +2 -2
- package/dist/workspace/layout/project-home.js +16 -9
- package/dist/workspace/sidebar/session-grouping.d.ts +1 -1
- package/dist/workspace/sidebar/session-grouping.js +1 -1
- package/dist/workspace/spaces/space-details-panel.js +2 -2
- package/dist/workspace/spaces/space-triggers.js +2 -2
- package/dist/workspace/spaces/space-view.js +11 -5
- package/package.json +15 -3
- package/dist/session/prompts/session-connect-prompt.d.ts +0 -40
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
* edits, and saves one PATCH holding only the fields that changed.
|
|
5
5
|
*/
|
|
6
6
|
import { modelKeyToWire } from '@kortix/sdk/react';
|
|
7
|
+
import { formatDurationSeconds } from '../../../_vendor/kortix-shared.js';
|
|
7
8
|
import { configToDraft, draftToConfig, humanizeEventType, schemaFields, } from './event-trigger-copy.js';
|
|
8
9
|
import { conditionsToRows, sameConditions } from './schedule-fields.js';
|
|
9
|
-
import { APP_EVENT_NAME_PATH, initialDraft, runCapFromInput, triggerFilter } from './trigger-composer-logic.js';
|
|
10
|
+
import { APP_EVENT_NAME_PATH, initialDraft, runCapFromInput, targetInput, triggerFilter, } from './trigger-composer-logic.js';
|
|
10
11
|
/** The event type the catalog has no entry for: enough to name it and keep its saved config. */
|
|
11
12
|
function stubEventType(event) {
|
|
12
13
|
return {
|
|
@@ -32,6 +33,8 @@ export function draftFromTrigger(trigger, saved) {
|
|
|
32
33
|
...initialDraft({ kind: trigger.type, agent: trigger.agent }),
|
|
33
34
|
cron: trigger.cron ?? '0 0 9 * * *',
|
|
34
35
|
runAt: trigger.run_at,
|
|
36
|
+
// `every: 1h` reads back as `every_seconds`: show the period, never the cron default.
|
|
37
|
+
every: trigger.every_seconds ? formatDurationSeconds(trigger.every_seconds) : null,
|
|
35
38
|
timezone: trigger.timezone,
|
|
36
39
|
appSlug: event?.app ?? null,
|
|
37
40
|
appSource: event?.source ?? event?.provider ?? null,
|
|
@@ -44,6 +47,11 @@ export function draftFromTrigger(trigger, saved) {
|
|
|
44
47
|
kortixApp: trigger.type === 'app' ? (trigger.app ?? null) : null,
|
|
45
48
|
appEvent: named ? appEvent : '',
|
|
46
49
|
crBase: branch ?? '',
|
|
50
|
+
thenKind: trigger.target?.app ? 'app' : 'agent',
|
|
51
|
+
targetApp: trigger.target?.app ?? null,
|
|
52
|
+
targetPath: trigger.target?.path ?? '/',
|
|
53
|
+
targetMethod: trigger.target?.method ?? 'POST',
|
|
54
|
+
targetPayload: trigger.target?.payload ?? null,
|
|
47
55
|
instruction: trigger.prompt_template,
|
|
48
56
|
model: saved.model,
|
|
49
57
|
nameOverride: trigger.name,
|
|
@@ -89,18 +97,30 @@ export function triggerPatch(saved, draft) {
|
|
|
89
97
|
if (!same(draft.model, saved.model))
|
|
90
98
|
out.model = draft.model ? modelKeyToWire(draft.model) : null;
|
|
91
99
|
if (draft.kind === 'cron') {
|
|
100
|
+
const every = draft.every?.trim() ?? null;
|
|
101
|
+
const savedEvery = saved.every?.trim() ?? null;
|
|
92
102
|
if (draft.cron !== saved.cron ||
|
|
93
103
|
draft.runAt !== saved.runAt ||
|
|
104
|
+
every !== savedEvery ||
|
|
94
105
|
draft.timezone !== saved.timezone) {
|
|
95
|
-
// `run_at` and `
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
106
|
+
// `cron`, `run_at` and `every` are mutually exclusive, so each one clears the others.
|
|
107
|
+
// `every: null` goes only to a trigger that had a period: an older API knows no `every`.
|
|
108
|
+
const clearEvery = savedEvery ? { every: null } : {};
|
|
109
|
+
Object.assign(out, every !== null
|
|
110
|
+
? { every, cron: null, run_at: null }
|
|
111
|
+
: draft.runAt
|
|
112
|
+
? { run_at: draft.runAt, cron: null, timezone: draft.timezone, ...clearEvery }
|
|
113
|
+
: { cron: draft.cron.trim(), run_at: null, timezone: draft.timezone, ...clearEvery });
|
|
99
114
|
}
|
|
100
115
|
}
|
|
101
116
|
else if (!sameConditions(triggerFilter(draft), triggerFilter(saved))) {
|
|
102
117
|
out.filter = triggerFilter(draft);
|
|
103
118
|
}
|
|
119
|
+
// The App a fire calls: set, changed, or cleared back to an agent run.
|
|
120
|
+
const target = draft.thenKind === 'app' ? targetInput(draft) : null;
|
|
121
|
+
const savedTarget = saved.thenKind === 'app' ? targetInput(saved) : null;
|
|
122
|
+
if (!same(target, savedTarget))
|
|
123
|
+
out.target = target;
|
|
104
124
|
if (draft.kind === 'app' && draft.kortixApp && draft.kortixApp !== saved.kortixApp) {
|
|
105
125
|
out.app = draft.kortixApp;
|
|
106
126
|
}
|
|
@@ -40,13 +40,20 @@ export type TriggerSheetTab = 'settings' | 'runs';
|
|
|
40
40
|
* it "ID"). Runs is the default tab, so only Settings is written. `?t=<slug>`
|
|
41
41
|
* is the older connector-page link, still read for links already shared.
|
|
42
42
|
*/
|
|
43
|
-
export declare function readTriggerSheet(params: Pick<URLSearchParams, 'get'> | null | undefined): {
|
|
43
|
+
export declare function readTriggerSheet(params: Pick<URLSearchParams, 'get'> | null | undefined, tabParam?: TriggerSheetTabParam): {
|
|
44
44
|
slug: string | null;
|
|
45
45
|
tab: TriggerSheetTab;
|
|
46
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* The param that holds the sheet's tab. `tab` on the Triggers page. On an
|
|
49
|
+
* agent's page `tab` is the agent's own tab (`?tab=triggers`), so the sheet
|
|
50
|
+
* writes `sheet` there and never touches `tab`.
|
|
51
|
+
*/
|
|
52
|
+
export type TriggerSheetTabParam = 'tab' | 'sheet';
|
|
47
53
|
/**
|
|
48
54
|
* The URL for opening a trigger (or changing its tab), or for closing
|
|
49
|
-
* (`slug: null`). Every other param (the `?type` filter
|
|
55
|
+
* (`slug: null`). Every other param (the `?type` filter, an agent page's
|
|
56
|
+
* `?tab=triggers`) is kept.
|
|
50
57
|
*
|
|
51
58
|
* `wasOpen` is whether a trigger is open on screen now: the caller knows it,
|
|
52
59
|
* the URL does not (an unknown `?id` opens nothing). Opening from closed and
|
|
@@ -58,7 +65,7 @@ export declare function triggerSheetHref(pathname: string, current: string, next
|
|
|
58
65
|
tab?: TriggerSheetTab;
|
|
59
66
|
} | {
|
|
60
67
|
slug: null;
|
|
61
|
-
}, wasOpen: boolean): {
|
|
68
|
+
}, wasOpen: boolean, tabParam?: TriggerSheetTabParam): {
|
|
62
69
|
href: string;
|
|
63
70
|
mode: 'push' | 'replace';
|
|
64
71
|
};
|
|
@@ -59,31 +59,32 @@ export function eventAppStrip(apps) {
|
|
|
59
59
|
* it "ID"). Runs is the default tab, so only Settings is written. `?t=<slug>`
|
|
60
60
|
* is the older connector-page link, still read for links already shared.
|
|
61
61
|
*/
|
|
62
|
-
export function readTriggerSheet(params) {
|
|
62
|
+
export function readTriggerSheet(params, tabParam = 'tab') {
|
|
63
63
|
return {
|
|
64
64
|
slug: params?.get('id') || params?.get('t') || null,
|
|
65
|
-
tab: params?.get(
|
|
65
|
+
tab: params?.get(tabParam) === 'settings' ? 'settings' : 'runs',
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
69
|
* The URL for opening a trigger (or changing its tab), or for closing
|
|
70
|
-
* (`slug: null`). Every other param (the `?type` filter
|
|
70
|
+
* (`slug: null`). Every other param (the `?type` filter, an agent page's
|
|
71
|
+
* `?tab=triggers`) is kept.
|
|
71
72
|
*
|
|
72
73
|
* `wasOpen` is whether a trigger is open on screen now: the caller knows it,
|
|
73
74
|
* the URL does not (an unknown `?id` opens nothing). Opening from closed and
|
|
74
75
|
* closing are each a `push`, so Back and Forward step through them. Switching
|
|
75
76
|
* triggers or tabs while open is a `replace`, so clicks do not fill history.
|
|
76
77
|
*/
|
|
77
|
-
export function triggerSheetHref(pathname, current, next, wasOpen) {
|
|
78
|
+
export function triggerSheetHref(pathname, current, next, wasOpen, tabParam = 'tab') {
|
|
78
79
|
const params = new URLSearchParams(current);
|
|
79
80
|
params.delete('t');
|
|
80
|
-
params.delete(
|
|
81
|
+
params.delete(tabParam);
|
|
81
82
|
if (next.slug === null)
|
|
82
83
|
params.delete('id');
|
|
83
84
|
else {
|
|
84
85
|
params.set('id', next.slug);
|
|
85
86
|
if (next.tab === 'settings')
|
|
86
|
-
params.set(
|
|
87
|
+
params.set(tabParam, 'settings');
|
|
87
88
|
}
|
|
88
89
|
const qs = params.toString();
|
|
89
90
|
return {
|
|
@@ -54,7 +54,7 @@ function AppBrowser({ apps, onPick, }) {
|
|
|
54
54
|
return (_jsxs(BannerAlert, { variant: "warning", className: "text-xs", children: [_jsx(BannerAlertTitle, { children: tI18nComplete.raw('textc416d056595e') }), _jsx(BannerAlertDescription, { children: apps.error instanceof Error ? apps.error.message : tI18nComplete.raw('text29cc3339fce9') })] }));
|
|
55
55
|
}
|
|
56
56
|
if (list.length === 0) {
|
|
57
|
-
return (_jsxs(BannerAlert, { variant: "warning", className: "text-xs", children: [_jsx(BannerAlertTitle, { children: tI18nComplete.raw('
|
|
57
|
+
return (_jsxs(BannerAlert, { variant: "warning", className: "text-xs", children: [_jsx(BannerAlertTitle, { children: tI18nComplete.raw('textccf59f978ef6') }), _jsx(BannerAlertDescription, { children: tI18nComplete.raw('text82cbc4a4def0') })] }));
|
|
58
58
|
}
|
|
59
59
|
const group = (heading, rows) => rows.length === 0 ? null : (_jsxs("section", { className: "space-y-1.5", children: [heading ? _jsx("h3", { className: "text-muted-foreground text-xs font-medium", children: heading }) : null, _jsx("ul", { className: "grid gap-1.5 sm:grid-cols-2", children: rows.map((app) => (_jsx(AppTile, { app: app, onPick: () => onPick(app) }, `${eventAppSource(app)}:${app.app}`))) })] }));
|
|
60
60
|
return (_jsxs("div", { className: "space-y-3", children: [_jsx(SearchField, { value: search, onChange: setSearch, placeholder: tI18nComplete.raw('texta10a36fa1098') }), _jsxs("div", { className: "space-y-4", children: [group(yours.length > 0 ? tI18nComplete.raw('text13b17cc7974b') : null, yours), group(yours.length > 0 ? tI18nComplete.raw('text01bed311e7d0') : null, capped ? more.slice(0, APP_CAP) : more), capped ? (_jsx(ShowAll, { label: tI18nComplete('text024172a56d6f', {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { type PatchDraft } from './composer-parts.js';
|
|
2
2
|
import type { ComposerDraft } from './trigger-composer-logic.js';
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* When: a repeating schedule, or one run at a set time. A trigger saved with a
|
|
5
|
+
* fixed period (`every: 1h`) shows that period, not a calendar it does not
|
|
6
|
+
* have, until the person switches it to a calendar schedule.
|
|
7
|
+
*/
|
|
4
8
|
export declare function WhenSchedule({ draft, patch, error, }: {
|
|
5
9
|
draft: ComposerDraft;
|
|
6
10
|
patch: PatchDraft;
|
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useTranslations } from '../../../i18n/index.js';
|
|
4
|
+
import { Button } from '../../../primitives/button.js';
|
|
5
|
+
import { Input } from '../../../primitives/input.js';
|
|
6
|
+
import { Label } from '../../../primitives/label.js';
|
|
3
7
|
import { ScheduleBuilder } from './schedule-builder.js';
|
|
4
8
|
import { InlineError } from './composer-parts.js';
|
|
5
9
|
import { TimezoneField } from './schedule-fields.js';
|
|
6
|
-
|
|
10
|
+
const EVERY_ERROR_ID = 'trigger-every-error';
|
|
11
|
+
/** Duration syntax the `every` field parses, not copy. */
|
|
12
|
+
const EVERY_EXAMPLE = '1h';
|
|
13
|
+
/**
|
|
14
|
+
* When: a repeating schedule, or one run at a set time. A trigger saved with a
|
|
15
|
+
* fixed period (`every: 1h`) shows that period, not a calendar it does not
|
|
16
|
+
* have, until the person switches it to a calendar schedule.
|
|
17
|
+
*/
|
|
7
18
|
export function WhenSchedule({ draft, patch, error, }) {
|
|
19
|
+
const t = useTranslations('triggerComposer');
|
|
20
|
+
if (draft.every !== null) {
|
|
21
|
+
return (_jsxs("div", { className: "space-y-3", children: [_jsxs("div", { className: "space-y-1.5", children: [_jsx(Label, { htmlFor: "trigger-every", className: "text-xs", children: t('intervalLabel') }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Input, { id: "trigger-every", size: "xs", value: draft.every, onChange: (e) => patch({ every: e.target.value }), placeholder: EVERY_EXAMPLE, maxLength: 16, className: "w-32 font-mono text-sm", "aria-invalid": error ? true : undefined, "aria-describedby": error ? EVERY_ERROR_ID : undefined }), _jsx(Button, { variant: "ghost", size: "sm", onClick: () => patch({ every: null }), children: t('useCalendar') })] }), _jsx("p", { className: "text-muted-foreground text-xs leading-relaxed text-pretty", children: t('intervalHelp') })] }), _jsx(InlineError, { id: EVERY_ERROR_ID, message: error })] }));
|
|
22
|
+
}
|
|
8
23
|
return (_jsxs("div", { className: "space-y-3", children: [_jsx(ScheduleBuilder, { value: draft.cron, onChange: (cron) => patch({ cron }), allowOnce: true, runAt: draft.runAt, onRunAtChange: (runAt) => patch({ runAt }),
|
|
9
24
|
// A one-off runs at a local date and time, so it has no timezone field.
|
|
10
25
|
trailing: _jsx(TimezoneField, { inline: true, className: "min-w-40 flex-1", value: draft.timezone, onChange: (timezone) => patch({ timezone }) }) }), _jsx(InlineError, { message: error })] }));
|
|
@@ -203,7 +203,9 @@ export function ScheduleView({ projectId, surface = { kind: 'global' }, defaultA
|
|
|
203
203
|
const configure = useConfigureThread(projectId);
|
|
204
204
|
const searchParams = useUiSearchParams();
|
|
205
205
|
// `?id=<trigger id>[&tab=runs]` is the open trigger: a link, Back and Forward all open it.
|
|
206
|
-
|
|
206
|
+
// On an agent's page `?tab=` is the agent's tab: the sheet keeps its own tab in `?sheet=`.
|
|
207
|
+
const sheetTabParam = agentName ? 'sheet' : 'tab';
|
|
208
|
+
const sheet = readTriggerSheet(searchParams, sheetTabParam);
|
|
207
209
|
// App events are a beta feature behind the project flag `event_triggers`. Fail
|
|
208
210
|
// closed: until the flag resolves on, nothing that lists, browses or requests events renders.
|
|
209
211
|
const featureFlags = useFeatureFlags(projectId);
|
|
@@ -227,7 +229,7 @@ export function ScheduleView({ projectId, surface = { kind: 'global' }, defaultA
|
|
|
227
229
|
// A null project id keeps the hook idle: with events off the page asks for no event data at all.
|
|
228
230
|
const eventApps = useProjectTriggerEventApps(eventsOn ? projectId : null);
|
|
229
231
|
const navigateSheet = (next) => {
|
|
230
|
-
const { href, mode } = triggerSheetHref(pathname, searchParams?.toString() ?? '', next, selected !== null);
|
|
232
|
+
const { href, mode } = triggerSheetHref(pathname, searchParams?.toString() ?? '', next, selected !== null, sheetTabParam);
|
|
231
233
|
if (mode === 'push')
|
|
232
234
|
router.push(href, { scroll: false });
|
|
233
235
|
else
|
package/dist/i18n/en.d.ts
CHANGED
|
@@ -856,6 +856,10 @@ declare const catalog: {
|
|
|
856
856
|
name: string;
|
|
857
857
|
description: string;
|
|
858
858
|
};
|
|
859
|
+
program_agents: {
|
|
860
|
+
name: string;
|
|
861
|
+
description: string;
|
|
862
|
+
};
|
|
859
863
|
};
|
|
860
864
|
channelsSwitch: {
|
|
861
865
|
onTitle: string;
|
|
@@ -1500,6 +1504,12 @@ declare const catalog: {
|
|
|
1500
1504
|
noModelKeyReason: string;
|
|
1501
1505
|
noModelUpgradePlan: string;
|
|
1502
1506
|
noModelAddProviderKey: string;
|
|
1507
|
+
stepTitle: string;
|
|
1508
|
+
stepBody: string;
|
|
1509
|
+
stepBodyUpgrade: string;
|
|
1510
|
+
stepBodyMember: string;
|
|
1511
|
+
stepThisWorkspace: string;
|
|
1512
|
+
stepBack: string;
|
|
1503
1513
|
};
|
|
1504
1514
|
providerRecovery: {
|
|
1505
1515
|
savedPrompt: string;
|
|
@@ -6209,6 +6219,15 @@ declare const catalog: {
|
|
|
6209
6219
|
texta68ee4167406: string;
|
|
6210
6220
|
texta69c4dece144: string;
|
|
6211
6221
|
textab3aff8f7642: string;
|
|
6222
|
+
text30b9ce09f406: string;
|
|
6223
|
+
text28d33d2ad989: string;
|
|
6224
|
+
textd777d7805cfa: string;
|
|
6225
|
+
text8043e69a8dd6: string;
|
|
6226
|
+
textd6fa1626e3af: string;
|
|
6227
|
+
textccf59f978ef6: string;
|
|
6228
|
+
text82cbc4a4def0: string;
|
|
6229
|
+
text458ceb31019b: string;
|
|
6230
|
+
text27ca9df9dbaa: string;
|
|
6212
6231
|
};
|
|
6213
6232
|
publicShareConfirm: {
|
|
6214
6233
|
title: string;
|
|
@@ -6599,6 +6618,8 @@ declare const catalog: {
|
|
|
6599
6618
|
llmEstimateLabel: string;
|
|
6600
6619
|
};
|
|
6601
6620
|
triggerComposer: {
|
|
6621
|
+
programInputPlaceholder: string;
|
|
6622
|
+
programInputHelp: string;
|
|
6602
6623
|
every: string;
|
|
6603
6624
|
dayOfMonth: string;
|
|
6604
6625
|
details: string;
|
|
@@ -6637,6 +6658,15 @@ declare const catalog: {
|
|
|
6637
6658
|
eventsOff: string;
|
|
6638
6659
|
noApps: string;
|
|
6639
6660
|
openApps: string;
|
|
6661
|
+
thenLabel: string;
|
|
6662
|
+
thenAgent: string;
|
|
6663
|
+
thenApp: string;
|
|
6664
|
+
targetPath: string;
|
|
6665
|
+
targetMethod: string;
|
|
6666
|
+
targetHelp: string;
|
|
6667
|
+
intervalLabel: string;
|
|
6668
|
+
intervalHelp: string;
|
|
6669
|
+
useCalendar: string;
|
|
6640
6670
|
};
|
|
6641
6671
|
gatewayAccess: {
|
|
6642
6672
|
heroTitle: string;
|
|
@@ -8267,6 +8297,11 @@ declare const catalog: {
|
|
|
8267
8297
|
};
|
|
8268
8298
|
};
|
|
8269
8299
|
modelView: {
|
|
8300
|
+
programTimeout: string;
|
|
8301
|
+
programTimeoutHelp: string;
|
|
8302
|
+
programTitle: string;
|
|
8303
|
+
programCommand: string;
|
|
8304
|
+
programHelp: string;
|
|
8270
8305
|
title: string;
|
|
8271
8306
|
help: string;
|
|
8272
8307
|
projectDefault: string;
|
|
@@ -10130,6 +10165,20 @@ declare const catalog: {
|
|
|
10130
10165
|
cardFailed: string;
|
|
10131
10166
|
blockedTitle: string;
|
|
10132
10167
|
blockedDescription: string;
|
|
10168
|
+
doneTitle: string;
|
|
10169
|
+
doneTitleNoApp: string;
|
|
10170
|
+
doneDescription: string;
|
|
10171
|
+
doneClose: string;
|
|
10172
|
+
doneDeniedTitle: string;
|
|
10173
|
+
doneDeniedDescription: string;
|
|
10174
|
+
doneExpiredTitle: string;
|
|
10175
|
+
doneExpiredDescription: string;
|
|
10176
|
+
doneFailedTitle: string;
|
|
10177
|
+
doneFailedTitleNoApp: string;
|
|
10178
|
+
doneFailedDescription: string;
|
|
10179
|
+
doneErrorCode: string;
|
|
10180
|
+
doneOpenKortix: string;
|
|
10181
|
+
doneFallbackApp: string;
|
|
10133
10182
|
};
|
|
10134
10183
|
};
|
|
10135
10184
|
export default catalog;
|
package/dist/i18n/en.js
CHANGED
|
@@ -856,6 +856,10 @@ const catalog = {
|
|
|
856
856
|
"spaces_proactive": {
|
|
857
857
|
"name": "Spaces-Proactive",
|
|
858
858
|
"description": "With Spaces on, a space can watch itself: turn on Proactive in its details, and an agent reads what happens there (finished threads, questions left open, people who join) and writes in the chat only when it matters: a result worth sharing, a decision you need to make, or something overdue. It can also start a thread that does the work. Optional daily brief at 9:00."
|
|
859
|
+
},
|
|
860
|
+
"program_agents": {
|
|
861
|
+
"name": "Program agents",
|
|
862
|
+
"description": "An agent that runs your code instead of a model. Give an agent `run: <command>` in kortix.yaml: each turn runs that command in the session's sandbox, with the agent's workspace, secrets and access. The message or trigger payload is the input, and what the command prints is the reply."
|
|
859
863
|
}
|
|
860
864
|
},
|
|
861
865
|
"channelsSwitch": {
|
|
@@ -1227,7 +1231,7 @@ const catalog = {
|
|
|
1227
1231
|
"email": "Email",
|
|
1228
1232
|
"scheduled": "Scheduled",
|
|
1229
1233
|
"webhook": "Webhook",
|
|
1230
|
-
"event": "
|
|
1234
|
+
"event": "Connector event",
|
|
1231
1235
|
"manual": "Manual",
|
|
1232
1236
|
"all": "All"
|
|
1233
1237
|
},
|
|
@@ -1500,7 +1504,13 @@ const catalog = {
|
|
|
1500
1504
|
"noModelUpgradeReason": "No model: upgrade to the Credits plan or add your own provider key.",
|
|
1501
1505
|
"noModelKeyReason": "No model: add your own provider key.",
|
|
1502
1506
|
"noModelUpgradePlan": "Upgrade plan",
|
|
1503
|
-
"noModelAddProviderKey": "Add provider key"
|
|
1507
|
+
"noModelAddProviderKey": "Add provider key",
|
|
1508
|
+
"stepTitle": "Connect a model",
|
|
1509
|
+
"stepBody": "Agents in {workspace} need a model to answer. Connect your ChatGPT or Claude plan, or add a provider key.",
|
|
1510
|
+
"stepBodyUpgrade": "Agents in {workspace} need a model to answer. Connect your ChatGPT or Claude plan, add a provider key, or upgrade to the Credits plan for Kortix models.",
|
|
1511
|
+
"stepBodyMember": "Agents in {workspace} need a model to answer. Connect your own ChatGPT or Claude plan or provider key, or ask someone who manages this workspace to connect a model for everyone.",
|
|
1512
|
+
"stepThisWorkspace": "this workspace",
|
|
1513
|
+
"stepBack": "Back to workspaces"
|
|
1504
1514
|
},
|
|
1505
1515
|
"providerRecovery": {
|
|
1506
1516
|
"savedPrompt": "Saved prompt",
|
|
@@ -6209,7 +6219,16 @@ const catalog = {
|
|
|
6209
6219
|
"text765a8cb04cf5": "LLM Hold Refund",
|
|
6210
6220
|
"texta68ee4167406": "Proxy",
|
|
6211
6221
|
"texta69c4dece144": "Storage",
|
|
6212
|
-
"textab3aff8f7642": "Top-up Bonus"
|
|
6222
|
+
"textab3aff8f7642": "Top-up Bonus",
|
|
6223
|
+
"text30b9ce09f406": "Enter a period such as 15m, 1h or 1d, at least 1m.",
|
|
6224
|
+
"text28d33d2ad989": "Choose the App to call",
|
|
6225
|
+
"textd777d7805cfa": "Enter a path that starts with /",
|
|
6226
|
+
"text8043e69a8dd6": "Delete trigger",
|
|
6227
|
+
"textd6fa1626e3af": "Connector event created",
|
|
6228
|
+
"textccf59f978ef6": "No connector events here yet",
|
|
6229
|
+
"text82cbc4a4def0": "Connector events are not set up on this deployment, so no connector can send them yet.",
|
|
6230
|
+
"text458ceb31019b": "Connector event triggers",
|
|
6231
|
+
"text27ca9df9dbaa": "Connector event triggers are off"
|
|
6213
6232
|
},
|
|
6214
6233
|
"publicShareConfirm": {
|
|
6215
6234
|
"title": "Create a public link?",
|
|
@@ -6600,6 +6619,8 @@ const catalog = {
|
|
|
6600
6619
|
"llmEstimateLabel": "LLM estimate:"
|
|
6601
6620
|
},
|
|
6602
6621
|
"triggerComposer": {
|
|
6622
|
+
"programInputPlaceholder": "Empty: the program reads the trigger's payload as JSON",
|
|
6623
|
+
"programInputHelp": "This agent runs a program. It reads this text on stdin. Leave it empty to send the whole payload as JSON: the event, webhook body or schedule details, plus the trigger's static payload.",
|
|
6603
6624
|
"every": "Every",
|
|
6604
6625
|
"dayOfMonth": "Day of month",
|
|
6605
6626
|
"details": "Details",
|
|
@@ -6637,7 +6658,16 @@ const catalog = {
|
|
|
6637
6658
|
"crBranchHelp": "Runs when a change request merges into this branch, or into any branch when it is empty. The instruction can read <code>change_request.number</code>, <code>change_request.title</code> and <code>change_request.base_ref</code>.",
|
|
6638
6659
|
"eventsOff": "Connector events are in beta and off for this workspace. Turn them on under Feature flags in Workspace admin.",
|
|
6639
6660
|
"noApps": "No App in this workspace sends events yet. Deploy an App that POSTs to <code>KORTIX_APP_EVENTS_URL</code>, then pick it here.",
|
|
6640
|
-
"openApps": "Open Apps"
|
|
6661
|
+
"openApps": "Open Apps",
|
|
6662
|
+
"thenLabel": "What a fire does",
|
|
6663
|
+
"thenAgent": "Run an agent",
|
|
6664
|
+
"thenApp": "Call an App",
|
|
6665
|
+
"targetPath": "Path",
|
|
6666
|
+
"targetMethod": "Method",
|
|
6667
|
+
"targetHelp": "Each fire wakes the App and sends the payload to this path. No agent runs.",
|
|
6668
|
+
"intervalLabel": "Repeats every",
|
|
6669
|
+
"intervalHelp": "A fixed period such as 15m, 1h or 1d.",
|
|
6670
|
+
"useCalendar": "Use a calendar schedule"
|
|
6641
6671
|
},
|
|
6642
6672
|
"gatewayAccess": {
|
|
6643
6673
|
"heroTitle": "Use this workspace's models anywhere",
|
|
@@ -6910,7 +6940,7 @@ const catalog = {
|
|
|
6910
6940
|
"infoRunsThrough": "Provider",
|
|
6911
6941
|
"infoSignsInWith": "Signs in with",
|
|
6912
6942
|
"infoCategory": "Category",
|
|
6913
|
-
"infoAppEvents": "
|
|
6943
|
+
"infoAppEvents": "Events",
|
|
6914
6944
|
"infoAppEventsYes": "Supported",
|
|
6915
6945
|
"authOAuth": "OAuth sign-in",
|
|
6916
6946
|
"authApiKey": "API key",
|
|
@@ -7839,9 +7869,9 @@ const catalog = {
|
|
|
7839
7869
|
},
|
|
7840
7870
|
"automationsPause": {
|
|
7841
7871
|
"groupTitle": "Triggers",
|
|
7842
|
-
"groupDescription": "Schedules, loops, webhooks,
|
|
7872
|
+
"groupDescription": "Schedules, loops, webhooks, connector events and App events in this workspace.",
|
|
7843
7873
|
"label": "Pause all triggers",
|
|
7844
|
-
"description": "Nothing in this workspace runs on its own: no schedule, loop, webhook,
|
|
7874
|
+
"description": "Nothing in this workspace runs on its own: no schedule, loop, webhook, connector event or App event. Running a trigger by hand still works.",
|
|
7845
7875
|
"readOnlyDescription": "Only an owner or admin can pause or resume triggers.",
|
|
7846
7876
|
"pausedSince": "Paused since {date}.",
|
|
7847
7877
|
"pauseTitle": "Pause all triggers?",
|
|
@@ -8268,6 +8298,11 @@ const catalog = {
|
|
|
8268
8298
|
}
|
|
8269
8299
|
},
|
|
8270
8300
|
"modelView": {
|
|
8301
|
+
"programTimeout": "Time limit",
|
|
8302
|
+
"programTimeoutHelp": "A run that takes longer is stopped and the turn fails. From 1s to 6h, such as 30m or 2h. Empty: 30m.",
|
|
8303
|
+
"programTitle": "Program",
|
|
8304
|
+
"programCommand": "Command",
|
|
8305
|
+
"programHelp": "Each turn runs this command in the session's sandbox instead of a model. The message arrives on stdin and in $KORTIX_EVENT_PATH. What it prints is the reply. A non-zero exit fails the turn.",
|
|
8271
8306
|
"title": "Model",
|
|
8272
8307
|
"help": "How this agent thinks.",
|
|
8273
8308
|
"projectDefault": "Workspace default",
|
|
@@ -10130,7 +10165,21 @@ const catalog = {
|
|
|
10130
10165
|
"connect": "Connect",
|
|
10131
10166
|
"cardFailed": "Could not connect {app}. Try again.",
|
|
10132
10167
|
"blockedTitle": "Open {app} to sign in",
|
|
10133
|
-
"blockedDescription": "Your browser blocked the sign-in window. Open it with the button below. This page updates by itself."
|
|
10168
|
+
"blockedDescription": "Your browser blocked the sign-in window. Open it with the button below. This page updates by itself.",
|
|
10169
|
+
"doneTitle": "{app} connected",
|
|
10170
|
+
"doneTitleNoApp": "Connected",
|
|
10171
|
+
"doneDescription": "Your agent can use {app} now.",
|
|
10172
|
+
"doneClose": "You can close this tab.",
|
|
10173
|
+
"doneDeniedTitle": "Sign-in cancelled",
|
|
10174
|
+
"doneDeniedDescription": "You did not allow access on {app}. Start the sign-in again from Kortix to connect it.",
|
|
10175
|
+
"doneExpiredTitle": "This sign-in link expired",
|
|
10176
|
+
"doneExpiredDescription": "It was already used or is too old. Start the sign-in again from Kortix.",
|
|
10177
|
+
"doneFailedTitle": "{app} did not connect",
|
|
10178
|
+
"doneFailedTitleNoApp": "The sign-in did not finish",
|
|
10179
|
+
"doneFailedDescription": "Start the sign-in again from Kortix. If it fails again, send the code below to support.",
|
|
10180
|
+
"doneErrorCode": "Error code: {code}",
|
|
10181
|
+
"doneOpenKortix": "Open Kortix",
|
|
10182
|
+
"doneFallbackApp": "the app"
|
|
10134
10183
|
}
|
|
10135
10184
|
};
|
|
10136
10185
|
export default catalog;
|
|
@@ -76,6 +76,23 @@ export interface CapabilityFlags {
|
|
|
76
76
|
reminders: boolean | undefined;
|
|
77
77
|
}
|
|
78
78
|
export declare function capabilityAccess(caps: Record<string, CanResult>, flags: CapabilityFlags): CapabilityAccess;
|
|
79
|
+
/**
|
|
80
|
+
* The Workspace settings rule for one resource row (`/admin/<section>`): the
|
|
81
|
+
* caller holds Settings access (`project.settings.write`), unless the row is
|
|
82
|
+
* member-open, and the row's capability tab. The settings page and every link
|
|
83
|
+
* into a section read this, so a link never shows to a caller the page sends
|
|
84
|
+
* back to General.
|
|
85
|
+
*/
|
|
86
|
+
export declare function adminResourceRowOpen(resource: {
|
|
87
|
+
capability: CapabilityTab['key'] | null;
|
|
88
|
+
memberOpen?: true;
|
|
89
|
+
}, projectRowsOpen: boolean, allowedTabs: ReadonlySet<string>): boolean;
|
|
90
|
+
/**
|
|
91
|
+
* True once the caller may open the Triggers section of Workspace settings
|
|
92
|
+
* (`admin/triggers`, kortix.yaml and runtime triggers, loops included). False
|
|
93
|
+
* while the probes load.
|
|
94
|
+
*/
|
|
95
|
+
export declare function useTriggersPageOpen(projectId: string | undefined): boolean;
|
|
79
96
|
export declare function useCapabilityAccess(projectId: string | undefined): CapabilityAccess;
|
|
80
97
|
/**
|
|
81
98
|
* The sidebar's Customize and file rows, decided together.
|
|
@@ -162,6 +162,30 @@ export function capabilityAccess(caps, flags) {
|
|
|
162
162
|
(!tab.manage || tab.manage.some(allowed))).map((tab) => tab.key);
|
|
163
163
|
return { settled, tabs };
|
|
164
164
|
}
|
|
165
|
+
/**
|
|
166
|
+
* The Workspace settings rule for one resource row (`/admin/<section>`): the
|
|
167
|
+
* caller holds Settings access (`project.settings.write`), unless the row is
|
|
168
|
+
* member-open, and the row's capability tab. The settings page and every link
|
|
169
|
+
* into a section read this, so a link never shows to a caller the page sends
|
|
170
|
+
* back to General.
|
|
171
|
+
*/
|
|
172
|
+
export function adminResourceRowOpen(resource, projectRowsOpen, allowedTabs) {
|
|
173
|
+
if (!projectRowsOpen && !resource.memberOpen)
|
|
174
|
+
return false;
|
|
175
|
+
return !resource.capability || allowedTabs.has(resource.capability);
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* True once the caller may open the Triggers section of Workspace settings
|
|
179
|
+
* (`admin/triggers`, kortix.yaml and runtime triggers, loops included). False
|
|
180
|
+
* while the probes load.
|
|
181
|
+
*/
|
|
182
|
+
export function useTriggersPageOpen(projectId) {
|
|
183
|
+
const caps = useProjectPageCans(projectId);
|
|
184
|
+
// The flags only gate tabs the settings page does not gate (see `project-admin-dashboard.tsx`).
|
|
185
|
+
const access = capabilityAccess(caps, { drives: true, reminders: true });
|
|
186
|
+
const projectRowsOpen = caps[PROJECT_ACTIONS.PROJECT_SETTINGS_WRITE]?.allowed === true;
|
|
187
|
+
return access.settled && adminResourceRowOpen({ capability: 'triggers' }, projectRowsOpen, new Set(access.tabs));
|
|
188
|
+
}
|
|
165
189
|
export function useCapabilityAccess(projectId) {
|
|
166
190
|
const caps = useProjectPageCans(projectId);
|
|
167
191
|
const drives = useFeatureFlag(projectId, 'drives');
|
|
@@ -127,6 +127,14 @@ export declare function reviewHref(projectId: string): string | null;
|
|
|
127
127
|
* 2026-10-19, redirects here.
|
|
128
128
|
*/
|
|
129
129
|
export declare function remindersHref(projectId: string): string | null;
|
|
130
|
+
/**
|
|
131
|
+
* One trigger on the Triggers page: `?id=<id>` opens it. The id is a
|
|
132
|
+
* kortix.yaml slug, or a runtime trigger's id (`reminder.<hex>`), whose row the
|
|
133
|
+
* page marks. Null when the host serves no Triggers page. A
|
|
134
|
+
* `/customize/triggers?id=` link went through the legacy redirect, which drops
|
|
135
|
+
* the query, so the trigger never opened.
|
|
136
|
+
*/
|
|
137
|
+
export declare function triggerHref(projectId: string, triggerId: string): string | null;
|
|
130
138
|
/**
|
|
131
139
|
* One agent's page — the configuration of a single `agents.<name>` block,
|
|
132
140
|
* routed rather than modal so it has a URL a person can be sent to. The name
|
|
@@ -144,6 +144,17 @@ export function reviewHref(projectId) {
|
|
|
144
144
|
export function remindersHref(projectId) {
|
|
145
145
|
return capabilityLinkHref(projectId, 'reminders');
|
|
146
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* One trigger on the Triggers page: `?id=<id>` opens it. The id is a
|
|
149
|
+
* kortix.yaml slug, or a runtime trigger's id (`reminder.<hex>`), whose row the
|
|
150
|
+
* page marks. Null when the host serves no Triggers page. A
|
|
151
|
+
* `/customize/triggers?id=` link went through the legacy redirect, which drops
|
|
152
|
+
* the query, so the trigger never opened.
|
|
153
|
+
*/
|
|
154
|
+
export function triggerHref(projectId, triggerId) {
|
|
155
|
+
const page = capabilityLinkHref(projectId, 'triggers');
|
|
156
|
+
return page ? `${page}?id=${encodeURIComponent(triggerId)}` : null;
|
|
157
|
+
}
|
|
147
158
|
/**
|
|
148
159
|
* One agent's page — the configuration of a single `agents.<name>` block,
|
|
149
160
|
* routed rather than modal so it has a URL a person can be sent to. The name
|
|
@@ -31,6 +31,13 @@ interface ComposerPrefill {
|
|
|
31
31
|
files?: AttachedFile[];
|
|
32
32
|
/** The agent, model and effort to select before it lands (desktop Quick Entry). */
|
|
33
33
|
options?: SessionPromptOverrides;
|
|
34
|
+
/**
|
|
35
|
+
* Restore the saved draft first, then append this text to its end. Only
|
|
36
|
+
* keys typed before the home composer existed are stored this way
|
|
37
|
+
* (`apps/web/src/components/projects/use-home-typing-buffer.ts`). See
|
|
38
|
+
* `Composer` `prefill.restoreDraft`.
|
|
39
|
+
*/
|
|
40
|
+
restoreDraft?: boolean;
|
|
34
41
|
}
|
|
35
42
|
type PrefillExtras = Omit<ComposerPrefill, 'text'>;
|
|
36
43
|
interface ComposerPrefillState {
|
|
@@ -13,6 +13,7 @@ export const useComposerPrefillStore = create((set, get) => ({
|
|
|
13
13
|
...(extras?.submit ? { submit: extras.submit } : {}),
|
|
14
14
|
...(extras?.files?.length ? { files: extras.files } : {}),
|
|
15
15
|
...(extras?.options ? { options: extras.options } : {}),
|
|
16
|
+
...(extras?.restoreDraft ? { restoreDraft: true } : {}),
|
|
16
17
|
},
|
|
17
18
|
},
|
|
18
19
|
})),
|
|
@@ -40,7 +40,7 @@ export function sessionSource(session, tI18nComplete) {
|
|
|
40
40
|
if (type === 'cron')
|
|
41
41
|
return { kind: 'schedule', label: tI18nComplete.raw('text4724f344c1c0'), triggerSlug };
|
|
42
42
|
if (type === 'event')
|
|
43
|
-
return { kind: 'event', label: tI18nComplete.raw('
|
|
43
|
+
return { kind: 'event', label: tI18nComplete.raw('textca395c4d19b2'), triggerSlug };
|
|
44
44
|
return { kind: 'webhook', label: tI18nComplete.raw('text4814f62c108d'), triggerSlug };
|
|
45
45
|
}
|
|
46
46
|
return { kind: 'chat', label: tI18nComplete.raw('text460b3a7da007'), triggerSlug: null };
|
|
@@ -112,7 +112,7 @@ export const SESSION_SOURCE_FILTERS = [
|
|
|
112
112
|
{ value: 'email', label: 'Email' },
|
|
113
113
|
{ value: 'schedule', label: 'Scheduled' },
|
|
114
114
|
{ value: 'webhook', label: 'Webhook' },
|
|
115
|
-
{ value: 'event', label: '
|
|
115
|
+
{ value: 'event', label: 'Connector event' },
|
|
116
116
|
{ value: 'manual', label: 'Manual' },
|
|
117
117
|
];
|
|
118
118
|
export const SESSION_STATUS_FILTERS = [
|
|
@@ -33,11 +33,14 @@ export interface AgentsPanelProps extends Omit<AgentsLineViewProps, 'compact' |
|
|
|
33
33
|
/** The popover body: Agents, Team, Workflows, and a Tasks tab when this session leads a team. */
|
|
34
34
|
export declare function AgentsPanel({ projectId, sessionId, agents, team, runs, tasks, onOpen, onStop, stopping, live }: AgentsPanelProps): import("react").JSX.Element;
|
|
35
35
|
/**
|
|
36
|
-
* The agents of one session, read live: its children
|
|
37
|
-
*
|
|
38
|
-
*
|
|
36
|
+
* The agents of one session, read live: its children, its teammates and team
|
|
37
|
+
* tasks (flag `agent_teams`) and its workflow runs; and the stop of one agent.
|
|
38
|
+
* The lists poll every 5 s while the session works (`live`) and every 30 s
|
|
39
|
+
* while it is idle.
|
|
39
40
|
*/
|
|
40
|
-
export declare function useAgentsLine(projectId: string | undefined, sessionId: string | undefined
|
|
41
|
+
export declare function useAgentsLine(projectId: string | undefined, sessionId: string | undefined, { live }?: {
|
|
42
|
+
live?: boolean;
|
|
43
|
+
}): {
|
|
41
44
|
ready: boolean;
|
|
42
45
|
agents: AgentRow[];
|
|
43
46
|
team: AgentRow[];
|
|
@@ -51,8 +54,10 @@ export declare function useAgentsLine(projectId: string | undefined, sessionId:
|
|
|
51
54
|
* (`SessionChatInputProps.underbarSlot`). Nothing renders while the session
|
|
52
55
|
* started no agent and no workflow run.
|
|
53
56
|
*/
|
|
54
|
-
export declare function AgentsLine({ projectId, sessionId, compact, }: {
|
|
57
|
+
export declare function AgentsLine({ projectId, sessionId, compact, live, }: {
|
|
55
58
|
projectId: string | undefined;
|
|
56
59
|
sessionId: string | undefined;
|
|
57
60
|
compact?: boolean;
|
|
61
|
+
/** The session works now: its agent lists poll every 5 s instead of every 30 s. */
|
|
62
|
+
live?: boolean;
|
|
58
63
|
}): import("react").JSX.Element | null;
|