@mgamadeus/ddd-agents 0.14.8 → 0.15.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 +6 -0
- package/dist/admin.js +2 -2
- package/dist/chat.js +9 -9
- package/dist/chunks/{ConversationMarkdown-DlvwT3Qk.js → ConversationMarkdown-DNQcVuz-.js} +2 -2
- package/dist/chunks/{ConversationMarkdown-DlvwT3Qk.js.map → ConversationMarkdown-DNQcVuz-.js.map} +1 -1
- package/dist/chunks/{ConversationMessageInputComposerWidgets-TchR1lPj.js → ConversationMessageInputComposerWidgets-BlpIule7.js} +2 -2
- package/dist/chunks/{ConversationMessageInputComposerWidgets-TchR1lPj.js.map → ConversationMessageInputComposerWidgets-BlpIule7.js.map} +1 -1
- package/dist/chunks/{VoiceBarsIcon-y3mgSqbn.js → VoiceBarsIcon-eODB_UTI.js} +3 -3
- package/dist/chunks/{VoiceBarsIcon-y3mgSqbn.js.map → VoiceBarsIcon-eODB_UTI.js.map} +1 -1
- package/dist/chunks/{agents-http-trace-mappers-juBx_kw5.js → agents-http-trace-mappers-BYEpNy0b.js} +2 -1
- package/dist/chunks/{agents-http-trace-mappers-juBx_kw5.js.map → agents-http-trace-mappers-BYEpNy0b.js.map} +1 -1
- package/dist/chunks/{canvas-label-context-B54MYVLF.js → canvas-label-context-C1Pc_Ldo.js} +2 -2
- package/dist/chunks/{canvas-label-context-B54MYVLF.js.map → canvas-label-context-C1Pc_Ldo.js.map} +1 -1
- package/dist/chunks/{canvasBodies-BjXypuHf.js → canvasBodies-BpLPp-S8.js} +2 -2
- package/dist/chunks/{canvasBodies-BjXypuHf.js.map → canvasBodies-BpLPp-S8.js.map} +1 -1
- package/dist/chunks/{content-from-unified-diff-lgH6CejC.js → content-from-unified-diff-Dzsh8kR2.js} +6 -4
- package/dist/chunks/content-from-unified-diff-Dzsh8kR2.js.map +1 -0
- package/dist/chunks/conversation-trace-fVeh6Lg6.js.map +1 -1
- package/dist/chunks/{widget-name-resolver-DS3zH_5W.js → widget-name-resolver-DXIE9JUr.js} +2 -2
- package/dist/chunks/{widget-name-resolver-DS3zH_5W.js.map → widget-name-resolver-DXIE9JUr.js.map} +1 -1
- package/dist/client-testing.js +2 -2
- package/dist/client.js +2 -2
- package/dist/files/i18n-keys.json +9 -0
- package/dist/files/renderer/widget-tree/composed-node-schema.json +2 -0
- package/dist/image-render.js +2 -2
- package/dist/index.js +3 -3
- package/dist/kit.js +1 -1
- package/dist/preview.js +3 -3
- package/dist/renderer.js +5 -5
- package/dist/types/chat/trace/trace-format.d.ts +2 -2
- package/dist/types/chat/trace/trace-types.d.ts +2 -0
- package/dist/types/client/http/agents-http-trace-wire.d.ts +1 -0
- package/dist/types/contract/conversation-trace.d.ts +3 -1
- package/dist/voice.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/content-from-unified-diff-lgH6CejC.js.map +0 -1
package/dist/client-testing.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { A as AgentsClientError, C as CONVERSATION_RUN_STATES_THAT_END_THE_CONVERSATION, r as readConversationRunStatusOfRunState } from "./chunks/conversation-B7-evdj_.js";
|
|
3
3
|
import { c as composeAttachmentMessageText } from "./chunks/compose-attachment-message-text-FvVJbrge.js";
|
|
4
4
|
import { l as listWidgetHydratorTypes, k as getWidgetHydrator, h as registerWidgetHydrator, m as abandonWidgetHydrationReads, u as unregisterWidgetHydrator } from "./chunks/WebSearchResultsConversationWidget-l9Aek_lG.js";
|
|
5
|
-
import { j as conversationWidgetRegistry, k as replaceConversationWidgetRegistryEntries } from "./chunks/widget-name-resolver-
|
|
6
|
-
import { l, s } from "./chunks/widget-name-resolver-
|
|
5
|
+
import { j as conversationWidgetRegistry, k as replaceConversationWidgetRegistryEntries } from "./chunks/widget-name-resolver-DXIE9JUr.js";
|
|
6
|
+
import { l, s } from "./chunks/widget-name-resolver-DXIE9JUr.js";
|
|
7
7
|
import { c, r, s as s2 } from "./chunks/canvasStorage-DSspwRMg.js";
|
|
8
8
|
const DEFAULT_SCRIPTED_ASSISTANT_ANSWER = "Done.";
|
|
9
9
|
const DEFAULT_PAGE_SIZE = 50;
|
package/dist/client.js
CHANGED
|
@@ -5,8 +5,8 @@ import { P, a as a2, b, c, d, r } from "./chunks/withPollingChangeSubscription-X
|
|
|
5
5
|
import { A as AgentsClientError, a as AGENTS_CLIENT_ERROR_CODE_REQUEST_ABORTED } from "./chunks/conversation-B7-evdj_.js";
|
|
6
6
|
import { a as acceptArrivedRealtimeMessage, c as createAgentUIClientId } from "./chunks/realtime-arrival-BfsAPwqQ.js";
|
|
7
7
|
import { c as composeAttachmentMessageText } from "./chunks/compose-attachment-message-text-FvVJbrge.js";
|
|
8
|
-
import { m as mapWireConversation, a as mapWireTraceViewPolicy, r as readWireSetElements, b as mapWireConversationRunState, c as mapWireBoundConversationSubject, d as mapWireSearchGroup, e as mapWireSearchHit, f as mapWireConversationActivity, g as mapWireTurnTraces, h as mapWireContextComposition, i as mapWireFileChangeDiff, j as mapWireConversationMessage, k as mapWireTurnStop, l as mapWireSelectableModel, n as mapClientContextToWire, o as mapHttpFailureToAgentsClientError } from "./chunks/agents-http-trace-mappers-
|
|
9
|
-
import { p, q, s, t, u as u2, v } from "./chunks/agents-http-trace-mappers-
|
|
8
|
+
import { m as mapWireConversation, a as mapWireTraceViewPolicy, r as readWireSetElements, b as mapWireConversationRunState, c as mapWireBoundConversationSubject, d as mapWireSearchGroup, e as mapWireSearchHit, f as mapWireConversationActivity, g as mapWireTurnTraces, h as mapWireContextComposition, i as mapWireFileChangeDiff, j as mapWireConversationMessage, k as mapWireTurnStop, l as mapWireSelectableModel, n as mapClientContextToWire, o as mapHttpFailureToAgentsClientError } from "./chunks/agents-http-trace-mappers-BYEpNy0b.js";
|
|
9
|
+
import { p, q, s, t, u as u2, v } from "./chunks/agents-http-trace-mappers-BYEpNy0b.js";
|
|
10
10
|
const AGENTS_HTTP_DEFAULT_CHANGED_MESSAGES_PAGE_SIZE = 50;
|
|
11
11
|
const MESSAGES_EXPAND = "delegatedConversations(select=id,runState)";
|
|
12
12
|
const defaultBuildStartPath = (agentSpaceKey) => agentSpaceKey > 0 ? `/start/${agentSpaceKey}` : "/start";
|
|
@@ -3406,6 +3406,15 @@
|
|
|
3406
3406
|
"src/chat/trace/trace-labels.ts"
|
|
3407
3407
|
]
|
|
3408
3408
|
},
|
|
3409
|
+
{
|
|
3410
|
+
"key": "Click on a step",
|
|
3411
|
+
"defaultText": "Click on a step",
|
|
3412
|
+
"placeholders": [],
|
|
3413
|
+
"contexts": [],
|
|
3414
|
+
"usedIn": [
|
|
3415
|
+
"src/chat/trace/trace-labels.ts"
|
|
3416
|
+
]
|
|
3417
|
+
},
|
|
3409
3418
|
{
|
|
3410
3419
|
"key": "Close",
|
|
3411
3420
|
"defaultText": "Close",
|
package/dist/image-render.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import React, { useRef, useEffect } from "react";
|
|
4
|
-
import { G as resolveWidgetName, j as conversationWidgetRegistry } from "./chunks/widget-name-resolver-
|
|
5
|
-
import { H } from "./chunks/widget-name-resolver-
|
|
4
|
+
import { G as resolveWidgetName, j as conversationWidgetRegistry } from "./chunks/widget-name-resolver-DXIE9JUr.js";
|
|
5
|
+
import { H } from "./chunks/widget-name-resolver-DXIE9JUr.js";
|
|
6
6
|
import { z as ConversationWidgetRenderContext, bi as WidgetImageReadinessContext, R as ReadOnlyConversationWidgetProvider, bj as WidgetImageRenderContext, bk as WidgetImageLiveHydrationContext, A as buildWidgetAgentSpaceKeyProps } from "./chunks/WebSearchResultsConversationWidget-l9Aek_lG.js";
|
|
7
7
|
import { bl, bm, bn } from "./chunks/WebSearchResultsConversationWidget-l9Aek_lG.js";
|
|
8
8
|
import { r as readWidgetImageReadiness, p as publishWidgetImageReadiness, i as interceptXMLHttpRequests, a as interceptFetchRequests, c as createHeaderlessResponse, t as toSameRealmFetchInput } from "./chunks/browser-request-interception-D678IemW.js";
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { h, i } from "./chunks/widget-name-resolver-
|
|
3
|
-
import { r as registerCanvasBodies, c as canvasBodies } from "./chunks/canvasBodies-
|
|
4
|
-
import { g, a, b } from "./chunks/canvasBodies-
|
|
2
|
+
import { h, i } from "./chunks/widget-name-resolver-DXIE9JUr.js";
|
|
3
|
+
import { r as registerCanvasBodies, c as canvasBodies } from "./chunks/canvasBodies-BpLPp-S8.js";
|
|
4
|
+
import { g, a, b } from "./chunks/canvasBodies-BpLPp-S8.js";
|
|
5
5
|
import { a as isPackageCanvasId, d as declareCanvasKind, f as forgetCanvasKind } from "./chunks/WebSearchResultsConversationWidget-l9Aek_lG.js";
|
|
6
6
|
import { r, b as b2, c, e, g as g2, h as h2 } from "./chunks/WebSearchResultsConversationWidget-l9Aek_lG.js";
|
|
7
7
|
import { r as registerCanvasFeatureFlags, c as canvasFeatureFlags } from "./chunks/canvas-feature-flags-Cn8xBliA.js";
|
package/dist/kit.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { A, C, a, b, c, d, e, E, r, f, u, g } from "./chunks/widget-name-resolver-
|
|
2
|
+
import { A, C, a, b, c, d, e, E, r, f, u, g } from "./chunks/widget-name-resolver-DXIE9JUr.js";
|
|
3
3
|
import { M } from "./chunks/WebSearchResultsConversationWidget-l9Aek_lG.js";
|
|
4
4
|
import { E as E2, u as u2 } from "./chunks/entity-detail-name-3A82gDAp.js";
|
|
5
5
|
export {
|
package/dist/preview.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { r as Text, $ as setAgentsEnvironment, K as getAgentsEnvironment, X as getWidgetSelfHydrationKeyFieldName, d as DEFAULT_WIDGET_SELF_HYDRATION_KEY_FIELD_NAME, U as getSandboxLegacyAliases } from "./chunks/index-DZovGMpG.js";
|
|
4
4
|
import { useRef, useState, useMemo, useEffect, useCallback } from "react";
|
|
5
|
-
import { Q as buildComposedViewComponentRegistry, R as composedViewComponents, G as resolveWidgetName, j as conversationWidgetRegistry, o as ConversationWidgetErrorBoundary, S as ComposedViewComponentsContext } from "./chunks/widget-name-resolver-
|
|
5
|
+
import { Q as buildComposedViewComponentRegistry, R as composedViewComponents, G as resolveWidgetName, j as conversationWidgetRegistry, o as ConversationWidgetErrorBoundary, S as ComposedViewComponentsContext } from "./chunks/widget-name-resolver-DXIE9JUr.js";
|
|
6
6
|
import { aI as WidgetSurface, Z as readWidgetAgentSpaceKeyAttribute, j as canvasBehaviourOf, W as WidgetRenderReportContext, A as buildWidgetAgentSpaceKeyProps, S as StandaloneConversationWidgetProvider, z as ConversationWidgetRenderContext, bj as WidgetImageRenderContext, ab as CANVAS_VIABLE_MIN_WIDTH, l as listWidgetHydratorTypes, k as getWidgetHydrator, u as unregisterWidgetHydrator, h as registerWidgetHydrator } from "./chunks/WebSearchResultsConversationWidget-l9Aek_lG.js";
|
|
7
|
-
import { c as canvasBodies, E as EntityMentionAskButton } from "./chunks/canvasBodies-
|
|
7
|
+
import { c as canvasBodies, E as EntityMentionAskButton } from "./chunks/canvasBodies-BpLPp-S8.js";
|
|
8
8
|
import { f as decideCanvasOpen } from "./chunks/canvas-reducers-BYArW_Ji.js";
|
|
9
9
|
import { p as publishWidgetImageReadiness, i as interceptXMLHttpRequests, d as isFetchRequest, c as createHeaderlessResponse } from "./chunks/browser-request-interception-D678IemW.js";
|
|
10
|
-
import { C as ConversationWidgetProvider, a as ConversationMessageInputComposerWidgets } from "./chunks/ConversationMessageInputComposerWidgets-
|
|
10
|
+
import { C as ConversationWidgetProvider, a as ConversationMessageInputComposerWidgets } from "./chunks/ConversationMessageInputComposerWidgets-BlpIule7.js";
|
|
11
11
|
const page$1 = "agents_page_5VMDeD";
|
|
12
12
|
const chatColumn = "agents_chatColumn_FWcgdJ";
|
|
13
13
|
const widget = "agents_widget_3qpgMy";
|
package/dist/renderer.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { C, a, M, W, b, c, d, p, s } from "./chunks/ConversationMarkdown-
|
|
3
|
-
import { m as findWidgetFenceByPayloadHash, n as findWidgetFencesInMarkdown } from "./chunks/widget-name-resolver-
|
|
4
|
-
import { o, p as p2, q, t, v, w, j, x, y, z, B, D, F, G } from "./chunks/widget-name-resolver-
|
|
2
|
+
import { C, a, M, W, b, c, d, p, s } from "./chunks/ConversationMarkdown-DNQcVuz-.js";
|
|
3
|
+
import { m as findWidgetFenceByPayloadHash, n as findWidgetFencesInMarkdown } from "./chunks/widget-name-resolver-DXIE9JUr.js";
|
|
4
|
+
import { o, p as p2, q, t, v, w, j, x, y, z, B, D, F, G } from "./chunks/widget-name-resolver-DXIE9JUr.js";
|
|
5
5
|
import { n as useResolvedConversationWidgetAgentSpaceKey, p as payloadHashOfInstanceId } from "./chunks/WebSearchResultsConversationWidget-l9Aek_lG.js";
|
|
6
6
|
import { C as C2, o as o2, q as q2, t as t2, v as v2, w as w2, x as x2, y as y2, z as z2, D as D2, L, R, S, W as W2, A, j as j2, B as B2, E, F as F2, G as G2, H, I, J, K, N, O, P, k, Q, T, i, U, a as a2, V, X, Y, Z, _, h, $, s as s2, a0, u, a1, a2 as a22, a3, a4, a5, a6 } from "./chunks/WebSearchResultsConversationWidget-l9Aek_lG.js";
|
|
7
|
-
import { C as C3, a as a7, d as d2, g, i as i2, r, u as u2, b as b2 } from "./chunks/canvas-label-context-
|
|
8
|
-
import { c as c2, u as u3 } from "./chunks/canvasBodies-
|
|
7
|
+
import { C as C3, a as a7, d as d2, g, i as i2, r, u as u2, b as b2 } from "./chunks/canvas-label-context-C1Pc_Ldo.js";
|
|
8
|
+
import { c as c2, u as u3 } from "./chunks/canvasBodies-BpLPp-S8.js";
|
|
9
9
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
10
10
|
import { m as Skeleton } from "./chunks/index-DZovGMpG.js";
|
|
11
11
|
import { aa, ab, ac, ad, ae } from "./chunks/index-DZovGMpG.js";
|
|
@@ -40,8 +40,8 @@ export declare const describeTraceEffort: (effort: string | null | undefined) =>
|
|
|
40
40
|
export declare const formatShortSha256: (sha256: string | null | undefined) => string | null;
|
|
41
41
|
/** A stored status as a row's state; a status the blocks do not know reads as done. */
|
|
42
42
|
export declare const readTraceStateOfStatus: (status: string | null | undefined) => TraceStepState;
|
|
43
|
-
/** Where a step stands: held for the owner's consent waits, an error step failed, else its status says. */
|
|
44
|
-
export declare const readTraceStepState: (step: Pick<TraceStep, "kind" | "status" | "isHeldForConsent" | "isRefused" | "terminal">) => TraceStepState;
|
|
43
|
+
/** Where a step stands: held for the owner's consent or click waits, an error step failed, else its status says. */
|
|
44
|
+
export declare const readTraceStepState: (step: Pick<TraceStep, "kind" | "status" | "isHeldForConsent" | "isAwaitingOwnerClick" | "isRefused" | "terminal">) => TraceStepState;
|
|
45
45
|
/** Where a sub-agent stands: the status of its newest run. */
|
|
46
46
|
export declare const readTraceSubAgentState: (subAgent: Pick<TraceSubAgent, "status" | "runs">) => TraceStepState;
|
|
47
47
|
/** The lead icon of a step's row. */
|
|
@@ -276,6 +276,8 @@ export interface TraceStep {
|
|
|
276
276
|
line?: string | null;
|
|
277
277
|
entityReferences?: TraceEntityReference[];
|
|
278
278
|
isHeldForConsent?: boolean;
|
|
279
|
+
/** The held write waits for the owner's click on its step widget (no approval card). */
|
|
280
|
+
isAwaitingOwnerClick?: boolean;
|
|
279
281
|
isRefused?: boolean;
|
|
280
282
|
errorText?: string | null;
|
|
281
283
|
errorCode?: string | null;
|
|
@@ -302,6 +302,7 @@ export interface WireTraceStep {
|
|
|
302
302
|
recordChanges?: WireTraceRecordChanges | null;
|
|
303
303
|
wasHeldForOwnerConsent?: boolean | null;
|
|
304
304
|
isHeldForConsent?: boolean | null;
|
|
305
|
+
isAwaitingOwnerClick?: boolean | null;
|
|
305
306
|
wasRefusedByGate?: boolean | null;
|
|
306
307
|
wasRefusedAsDuplicate?: boolean | null;
|
|
307
308
|
wasRefusedAsFinal?: boolean | null;
|
|
@@ -474,8 +474,10 @@ export interface ConversationTraceStep {
|
|
|
474
474
|
recordChanges?: ConversationTraceRecordChange[];
|
|
475
475
|
/** Changed records left out beyond the server's cap. */
|
|
476
476
|
omittedRecordChangeCount?: number;
|
|
477
|
-
/** The owner-consent check held a write of the call back. */
|
|
477
|
+
/** The owner-consent check held a write of the call back; the owner answers in the chat (the approval card). */
|
|
478
478
|
isHeldForConsent: boolean;
|
|
479
|
+
/** The held write was stored as a step that waits for the owner's click on its widget: waiting, no approval card. */
|
|
480
|
+
isAwaitingOwnerClick?: boolean;
|
|
479
481
|
/** A gate refused the call before it ran, or it was dropped as a repeat. */
|
|
480
482
|
isRefused: boolean;
|
|
481
483
|
/** The start of the text of an `ERROR` step. */
|
package/dist/voice.js
CHANGED
|
@@ -5,7 +5,7 @@ import { f as formatAgentVoiceCallDuration } from "./chunks/format-agent-voice-c
|
|
|
5
5
|
import { a as useOptionalAgentsConversationClient } from "./chunks/AgentsConversationClientContext-B_UJSLXU.js";
|
|
6
6
|
import { b as DEFAULT_AGENTS_TEXTS, a9 as useAgentsTexts, J as getAgentDisplayName, a3 as useAgentsComponents, D as DEFAULT_AGENTS_COMPONENTS } from "./chunks/index-DZovGMpG.js";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { V as VoiceBarsIcon, C as ConversationMessageWidgets, a as ConversationMessageUser } from "./chunks/VoiceBarsIcon-
|
|
8
|
+
import { V as VoiceBarsIcon, C as ConversationMessageWidgets, a as ConversationMessageUser } from "./chunks/VoiceBarsIcon-eODB_UTI.js";
|
|
9
9
|
import { a as useOptionalAgentsChatStore, u as useAgentsChatSelector } from "./chunks/use-agents-chat-store-CuIkCz9v.js";
|
|
10
10
|
class AgentVoiceApiError extends Error {
|
|
11
11
|
constructor(code, httpStatus) {
|