@mgamadeus/ddd-agents 0.16.1 → 0.17.1
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/README.md +113 -10
- package/boundary.json +15 -1
- package/dist/admin-chat-widgets.js +158 -0
- package/dist/admin-chat-widgets.js.map +1 -0
- package/dist/admin.js +92 -65
- package/dist/admin.js.map +1 -1
- package/dist/chat.js +19 -19
- package/dist/chat.js.map +1 -1
- package/dist/chunks/AgentScheduleOrderDraftPanel-DM6pz_hc.js +304 -0
- package/dist/chunks/AgentScheduleOrderDraftPanel-DM6pz_hc.js.map +1 -0
- package/dist/chunks/{ConversationMarkdown-DNQcVuz-.js → ConversationMarkdown-dj0EF6bu.js} +5 -5
- package/dist/chunks/{ConversationMarkdown-DNQcVuz-.js.map → ConversationMarkdown-dj0EF6bu.js.map} +1 -1
- package/dist/chunks/{ConversationMessageInputComposerWidgets-BlpIule7.js → ConversationMessageInputComposerWidgets-ClgCwnVW.js} +6 -6
- package/dist/chunks/{ConversationMessageInputComposerWidgets-BlpIule7.js.map → ConversationMessageInputComposerWidgets-ClgCwnVW.js.map} +1 -1
- package/dist/chunks/{VoiceBarsIcon-eODB_UTI.js → VoiceBarsIcon-B6VTVtdB.js} +4 -4
- package/dist/chunks/{VoiceBarsIcon-eODB_UTI.js.map → VoiceBarsIcon-B6VTVtdB.js.map} +1 -1
- package/dist/chunks/{WebSearchResultsConversationWidget-l9Aek_lG.js → WebSearchResultsConversationWidget-BVMwJfhL.js} +73 -64
- package/dist/chunks/WebSearchResultsConversationWidget-BVMwJfhL.js.map +1 -0
- package/dist/chunks/{agents-http-trace-mappers-rsbGAf2_.js → agents-http-trace-mappers-CuGZOFu-.js} +53 -14
- package/dist/chunks/agents-http-trace-mappers-CuGZOFu-.js.map +1 -0
- package/dist/chunks/{browser-request-interception-D678IemW.js → browser-request-interception-BnOQWLaJ.js} +2 -2
- package/dist/chunks/{browser-request-interception-D678IemW.js.map → browser-request-interception-BnOQWLaJ.js.map} +1 -1
- package/dist/chunks/{canvas-label-context-C1Pc_Ldo.js → canvas-label-context-5yvbmK-V.js} +3 -3
- package/dist/chunks/{canvas-label-context-C1Pc_Ldo.js.map → canvas-label-context-5yvbmK-V.js.map} +1 -1
- package/dist/chunks/{canvas-reducers-BYArW_Ji.js → canvas-reducers-133Kl1QH.js} +2 -2
- package/dist/chunks/{canvas-reducers-BYArW_Ji.js.map → canvas-reducers-133Kl1QH.js.map} +1 -1
- package/dist/chunks/{canvasBodies-BpLPp-S8.js → canvasBodies-B2M6aWao.js} +4 -4
- package/dist/chunks/{canvasBodies-BpLPp-S8.js.map → canvasBodies-B2M6aWao.js.map} +1 -1
- package/dist/chunks/{canvasStorage-DSspwRMg.js → canvasStorage-B69JHOLd.js} +2 -2
- package/dist/chunks/{canvasStorage-DSspwRMg.js.map → canvasStorage-B69JHOLd.js.map} +1 -1
- package/dist/chunks/{content-from-unified-diff-DWyBHRSy.js → content-from-unified-diff-BKdgop63.js} +39 -5
- package/dist/chunks/content-from-unified-diff-BKdgop63.js.map +1 -0
- package/dist/chunks/{contract-DtFmOk91.js → contract-CQ6PO_e8.js} +2 -2
- package/dist/chunks/{contract-DtFmOk91.js.map → contract-CQ6PO_e8.js.map} +1 -1
- package/dist/chunks/{conversation-Cbrqtx-_.js → conversation-VosmRbsr.js} +4 -2
- package/dist/chunks/{conversation-Cbrqtx-_.js.map → conversation-VosmRbsr.js.map} +1 -1
- package/dist/chunks/conversation-trace-fVeh6Lg6.js.map +1 -1
- package/dist/chunks/{widget-name-resolver-DXIE9JUr.js → conversationWidgetRegistry-webrYtkI.js} +810 -530
- package/dist/chunks/conversationWidgetRegistry-webrYtkI.js.map +1 -0
- package/dist/chunks/{index-DZovGMpG.js → index-DAEGct6X.js} +61 -61
- package/dist/chunks/index-DAEGct6X.js.map +1 -0
- package/dist/chunks/{link-navigation-a_sRfmsj.js → link-navigation-DQWyeNkx.js} +2 -2
- package/dist/chunks/{link-navigation-a_sRfmsj.js.map → link-navigation-DQWyeNkx.js.map} +1 -1
- package/dist/chunks/{withPollingChangeSubscription-Cz3Diolr.js → withPollingChangeSubscription-Ct8kjmlL.js} +19 -2
- package/dist/chunks/withPollingChangeSubscription-Ct8kjmlL.js.map +1 -0
- package/dist/client-testing.js +39 -5
- package/dist/client-testing.js.map +1 -1
- package/dist/client.js +43 -14
- package/dist/client.js.map +1 -1
- package/dist/contract.js +4 -3
- package/dist/files/i18n-keys.json +619 -15
- package/dist/files/widgets/DriveFilesConversationWidget/DriveFilesConversationWidget.md +4 -2
- package/dist/files/widgets/OwnerStepConfirmationConversationWidget/OwnerStepConfirmationConversationWidget.md +54 -0
- package/dist/files/widgets/OwnerStepConfirmationConversationWidget/owner-step-confirmation.preview-fixtures.json +16 -0
- package/dist/image-render.js +8 -8
- package/dist/index.js +16 -16
- package/dist/kit.js +2 -2
- package/dist/preview.js +124 -117
- package/dist/preview.js.map +1 -1
- package/dist/provider.js +2 -2
- package/dist/renderer.js +53 -52
- package/dist/styles.css +46 -0
- package/dist/types/admin/connections/connection-parts.d.ts +2 -1
- package/dist/types/admin/schedules/AgentScheduleOrderDraftPanel.d.ts +45 -0
- package/dist/types/admin/schedules/AgentSchedulesPanel.d.ts +11 -3
- package/dist/types/admin/schedules/agent-schedules-api.d.ts +38 -2
- package/dist/types/admin/schedules/agent-schedules-format.d.ts +22 -1
- package/dist/types/admin/schedules/agent-schedules-types.d.ts +91 -1
- package/dist/types/admin-chat-widgets/ScheduleOrderApprovalConversationWidget.d.ts +37 -0
- package/dist/types/admin-chat-widgets/registerScheduleOrderApprovalWidget.d.ts +11 -0
- package/dist/types/chat/trace/TurnMetaLine.d.ts +5 -3
- package/dist/types/chat/trace/trace-counts.d.ts +2 -0
- package/dist/types/chat/trace/trace-types.d.ts +4 -0
- package/dist/types/client/AgentsConversationClient.d.ts +17 -1
- package/dist/types/client/http/agents-http-mappers.d.ts +4 -2
- package/dist/types/client/http/agents-http-trace-wire.d.ts +2 -0
- package/dist/types/client/http/agents-http-wire.d.ts +24 -0
- package/dist/types/client/testing/createInMemoryAgentsConversationClient.d.ts +13 -1
- package/dist/types/contract/conversation-trace.d.ts +4 -0
- package/dist/types/contract/conversation.d.ts +43 -0
- package/dist/types/entries/admin-chat-widgets.d.ts +2 -0
- package/dist/types/entries/admin.d.ts +4 -2
- package/dist/types/entries/renderer.d.ts +1 -1
- package/dist/types/renderer/widget-tree/composed-node-schema.d.ts +20 -3
- package/dist/types/widgets/DriveFilesConversationWidget/shared/drive-files.d.ts +3 -1
- package/dist/voice.js +2 -2
- package/dist/widgets.js +4 -4
- package/package.json +7 -1
- package/public-api.json +39 -0
- package/dist/chunks/WebSearchResultsConversationWidget-l9Aek_lG.js.map +0 -1
- package/dist/chunks/agents-http-trace-mappers-rsbGAf2_.js.map +0 -1
- package/dist/chunks/content-from-unified-diff-DWyBHRSy.js.map +0 -1
- package/dist/chunks/index-DZovGMpG.js.map +0 -1
- package/dist/chunks/widget-name-resolver-DXIE9JUr.js.map +0 -1
- package/dist/chunks/withPollingChangeSubscription-Cz3Diolr.js.map +0 -1
package/dist/chat.js
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
3
3
|
import { useRef, useEffect, useMemo, useState, useImperativeHandle, useLayoutEffect, memo, useCallback, Fragment, useReducer, createContext, useContext, useSyncExternalStore } from "react";
|
|
4
4
|
import { u as useAgentsConversationClient, a as useOptionalAgentsConversationClient, A as AgentsConversationClientProvider } from "./chunks/AgentsConversationClientContext-B_UJSLXU.js";
|
|
5
|
-
import { w as withPollingChangeSubscription } from "./chunks/withPollingChangeSubscription-
|
|
6
|
-
import { r as Text, E as classNames, I as Icon, a9 as useAgentsTexts, G as GlowFrame, u as Tooltip, B as Button, m as Skeleton, i as Markdown, a0 as translateText, a6 as useAgentsOwnerSettings, J as getAgentDisplayName, a2 as useAgentsBudgetLimit, a4 as useAgentsEnvironment, g as InteractiveSurface, L as LoadingSpinner, o as SplitView, Z as reportRunningTurn, a1 as useAgentsActiveAgentSpaceKey, P as ProgressBar } from "./chunks/index-
|
|
7
|
-
import { i as isAgentsClientError, A as AgentsClientError } from "./chunks/conversation-
|
|
8
|
-
import { n as normalizeServerMessageToMarkdown, V as VoiceBarsIcon, b as ConversationMessageHeader, a as ConversationMessageUser, C as ConversationMessageWidgets } from "./chunks/VoiceBarsIcon-
|
|
9
|
-
import {
|
|
10
|
-
import { j as conversationWidgetRegistry, n as findWidgetFencesInMarkdown, o as ConversationWidgetErrorBoundary, p as ConversationWidgetFeatureGate,
|
|
11
|
-
import { r as readStoredCanvas, c as clearStoredCanvas } from "./chunks/canvasStorage-
|
|
12
|
-
import { r as resolveDeepLinkableWidget, i as isWidgetClickSignalSource, a as CanvasTitleSlotContext, C as CanvasLabelContext } from "./chunks/canvas-label-context-
|
|
13
|
-
import { b as ConversationErrorType, a as ConversationMessageInputComposerWidgets, C as ConversationWidgetProvider, c as createAgentsChatStore } from "./chunks/ConversationMessageInputComposerWidgets-
|
|
14
|
-
import { A, E, I, r, d } from "./chunks/ConversationMessageInputComposerWidgets-
|
|
15
|
-
import { c as buildMessageTextWithComposerWidgets, e as WidgetWindowRootContext, f as findBalancedJsonObjectEnd, d as buildWidgetRenderReportSignal, W as WIDGET_RENDER_REPORT_SIGNAL_SOURCE, g as createWidgetRenderReportCollector, h as WidgetRenderReportCollectorContext } from "./chunks/ConversationMarkdown-
|
|
16
|
-
import { S as SIGNAL_SOURCES_THAT_OWE_NO_WORK, P as PHONE_CALL_LIFECYCLE_SIGNAL_SOURCES, l as lastWireMessageIsUnansweredUserMessage, b as buildChangedMessagesRequest, d as deriveAgentActivity } from "./chunks/contract-
|
|
5
|
+
import { w as withPollingChangeSubscription } from "./chunks/withPollingChangeSubscription-Ct8kjmlL.js";
|
|
6
|
+
import { r as Text, E as classNames, I as Icon, a9 as useAgentsTexts, G as GlowFrame, u as Tooltip, B as Button, m as Skeleton, i as Markdown, a0 as translateText, a6 as useAgentsOwnerSettings, J as getAgentDisplayName, a2 as useAgentsBudgetLimit, a4 as useAgentsEnvironment, g as InteractiveSurface, L as LoadingSpinner, o as SplitView, Z as reportRunningTurn, a1 as useAgentsActiveAgentSpaceKey, P as ProgressBar } from "./chunks/index-DAEGct6X.js";
|
|
7
|
+
import { i as isAgentsClientError, A as AgentsClientError } from "./chunks/conversation-VosmRbsr.js";
|
|
8
|
+
import { n as normalizeServerMessageToMarkdown, V as VoiceBarsIcon, b as ConversationMessageHeader, a as ConversationMessageUser, C as ConversationMessageWidgets } from "./chunks/VoiceBarsIcon-B6VTVtdB.js";
|
|
9
|
+
import { a as useConversationWidgetContext, k as canvasBehaviourOf, N as canvasKindOpenerWidgetNamesOf, q as payloadHashOfInstanceId, E as buildWidgetAgentSpaceKeyProps, C as CANVAS_BOXED_INSET_PX, w as CHAT_COLUMN_MIN_WIDTH_PX, v as CANVAS_MIN_WIDTH_PX, bg as useCanvasViable, D as DEFAULT_CANVAS_WIDTH_PERCENT, O as canvasWidthPercentOf, aq as ElementWidthCanvasViability, ae as CanvasViabilityContext } from "./chunks/WebSearchResultsConversationWidget-BVMwJfhL.js";
|
|
10
|
+
import { j as conversationWidgetRegistry, n as findWidgetFencesInMarkdown, o as ConversationWidgetErrorBoundary, p as ConversationWidgetFeatureGate, U as parseWidgetJsonObject, G as resolveCanonicalWidgetName, W as WIDGET_FENCE_LANG, y as getConversationWidgetRegistryRevision, V as BARE_WIDGET_LINE_GLOBAL, H as resolveWidgetName, t as closestWidgetNames } from "./chunks/conversationWidgetRegistry-webrYtkI.js";
|
|
11
|
+
import { r as readStoredCanvas, c as clearStoredCanvas } from "./chunks/canvasStorage-B69JHOLd.js";
|
|
12
|
+
import { r as resolveDeepLinkableWidget, i as isWidgetClickSignalSource, a as CanvasTitleSlotContext, C as CanvasLabelContext } from "./chunks/canvas-label-context-5yvbmK-V.js";
|
|
13
|
+
import { b as ConversationErrorType, a as ConversationMessageInputComposerWidgets, C as ConversationWidgetProvider, c as createAgentsChatStore } from "./chunks/ConversationMessageInputComposerWidgets-ClgCwnVW.js";
|
|
14
|
+
import { A, E, I, r, d } from "./chunks/ConversationMessageInputComposerWidgets-ClgCwnVW.js";
|
|
15
|
+
import { c as buildMessageTextWithComposerWidgets, e as WidgetWindowRootContext, f as findBalancedJsonObjectEnd, d as buildWidgetRenderReportSignal, W as WIDGET_RENDER_REPORT_SIGNAL_SOURCE, g as createWidgetRenderReportCollector, h as WidgetRenderReportCollectorContext } from "./chunks/ConversationMarkdown-dj0EF6bu.js";
|
|
16
|
+
import { S as SIGNAL_SOURCES_THAT_OWE_NO_WORK, P as PHONE_CALL_LIFECYCLE_SIGNAL_SOURCES, l as lastWireMessageIsUnansweredUserMessage, b as buildChangedMessagesRequest, d as deriveAgentActivity } from "./chunks/contract-CQ6PO_e8.js";
|
|
17
17
|
import { t as textKey } from "./chunks/text-key-DnoZ4lAk.js";
|
|
18
|
-
import { r as readTraceMoment, s as styles$m, u as useTraceFormat, a as useTraceNow, b as agentStyles, T as TraceStateIcon, f as formatTraceClock, c as readTraceStateLabel, d as styles$n, F as FileChangesSummary, e as readTraceFileChangeLetter, g as readTraceFileChangeWord, h as TracePath, i as TraceMountChip, j as TraceLink, k as FileEditBlock, E as EntityChip, l as selectVisibleTraceSteps, m as TraceStepRow, n as TaskPlanRow$1, o as readTaskPlanCountsOfStep, p as buildTaskPlanItems, q as describeStepCount, M as MIN_SHOWN_TURN_DURATION_MS, t as TurnMetaLine, v as ToolStepGroup, w as readTaskPlanCounts, x as describeTaskPlanProgress, y as isTraceBackgroundJobLabel, z as readTraceSubAgentState, A as describeTraceBackgroundJob, B as readTraceStepState } from "./chunks/content-from-unified-diff-
|
|
19
|
-
import { C, D, G, L, S, H, I as I2, J, K, N, O, P, Q, R, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at } from "./chunks/content-from-unified-diff-
|
|
20
|
-
import { c as canvasBodies } from "./chunks/canvasBodies-
|
|
18
|
+
import { r as readTraceMoment, s as styles$m, u as useTraceFormat, a as useTraceNow, b as agentStyles, T as TraceStateIcon, f as formatTraceClock, c as readTraceStateLabel, d as styles$n, F as FileChangesSummary, e as readTraceFileChangeLetter, g as readTraceFileChangeWord, h as TracePath, i as TraceMountChip, j as TraceLink, k as FileEditBlock, E as EntityChip, l as selectVisibleTraceSteps, m as TraceStepRow, n as TaskPlanRow$1, o as readTaskPlanCountsOfStep, p as buildTaskPlanItems, q as describeStepCount, M as MIN_SHOWN_TURN_DURATION_MS, t as TurnMetaLine, v as ToolStepGroup, w as readTaskPlanCounts, x as describeTaskPlanProgress, y as isTraceBackgroundJobLabel, z as readTraceSubAgentState, A as describeTraceBackgroundJob, B as readTraceStepState } from "./chunks/content-from-unified-diff-BKdgop63.js";
|
|
19
|
+
import { C, D, G, L, S, H, I as I2, J, K, N, O, P, Q, R, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at } from "./chunks/content-from-unified-diff-BKdgop63.js";
|
|
20
|
+
import { c as canvasBodies } from "./chunks/canvasBodies-B2M6aWao.js";
|
|
21
21
|
import { a as canvasFeatureFlagOf } from "./chunks/canvas-feature-flags-Cn8xBliA.js";
|
|
22
22
|
import { flushSync } from "react-dom";
|
|
23
23
|
import { u as useAgentsChatSelector, a as useOptionalAgentsChatStore } from "./chunks/use-agents-chat-store-CuIkCz9v.js";
|
|
@@ -717,8 +717,8 @@ const buildMessageTimeMarks = (messages, isShown, dayKeyOf, isTurnRunning) => {
|
|
|
717
717
|
};
|
|
718
718
|
const DAY_MS = 24 * 60 * 60 * 1e3;
|
|
719
719
|
const createMessageTimeFormat = (locale, timeZone, now = Date.now) => {
|
|
720
|
-
const localeOrDefault = locale
|
|
721
|
-
const zone = timeZone
|
|
720
|
+
const localeOrDefault = locale || void 0;
|
|
721
|
+
const zone = timeZone || void 0;
|
|
722
722
|
const clock2 = new Intl.DateTimeFormat(localeOrDefault, { hour: "2-digit", minute: "2-digit", timeZone: zone });
|
|
723
723
|
const exactFormat = new Intl.DateTimeFormat(localeOrDefault, {
|
|
724
724
|
weekday: "short",
|
|
@@ -752,7 +752,7 @@ const createMessageTimeFormat = (locale, timeZone, now = Date.now) => {
|
|
|
752
752
|
};
|
|
753
753
|
const useMessageTimeFormat = () => {
|
|
754
754
|
const { locale, dateLocale, timeZone } = useAgentsOwnerSettings();
|
|
755
|
-
const shownLocale = dateLocale
|
|
755
|
+
const shownLocale = dateLocale || locale || void 0;
|
|
756
756
|
return useMemo(() => createMessageTimeFormat(shownLocale, timeZone), [shownLocale, timeZone]);
|
|
757
757
|
};
|
|
758
758
|
const formatCallLength = (durationSeconds) => {
|
|
@@ -4819,7 +4819,7 @@ const RunStatusLine = (props) => {
|
|
|
4819
4819
|
const figures = [
|
|
4820
4820
|
startedAtMoment !== null ? formatTraceClock(now - startedAtMoment) : null,
|
|
4821
4821
|
// before the first model call answers there is nothing to count: "0 tokens · $0.00" would read as a fault
|
|
4822
|
-
viewMode === "verbose" && tokens != null && tokens > 0 ? translateText("%count% tokens", { count: format.count(tokens) }) : null,
|
|
4822
|
+
viewMode === "verbose" && tokens != null && tokens > 0 ? translateText("%count% tokens in total", { count: format.count(tokens) }) : null,
|
|
4823
4823
|
viewMode === "verbose" && costInUsd != null && costInUsd > 0 ? (formatCost ?? format.cost)(costInUsd) : null
|
|
4824
4824
|
].filter((figure) => figure !== null);
|
|
4825
4825
|
const handleStop = async () => {
|