@mgamadeus/ddd-agents 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1223,6 +1223,18 @@
1223
1223
  "src/admin/conversations/AgentConversationDetailScreen.tsx"
1224
1224
  ]
1225
1225
  },
1226
+ {
1227
+ "key": "%used% used, %unused% unused",
1228
+ "defaultText": "%used% used, %unused% unused",
1229
+ "placeholders": [
1230
+ "unused",
1231
+ "used"
1232
+ ],
1233
+ "contexts": [],
1234
+ "usedIn": [
1235
+ "src/admin/skills/SkillLoadSourcesPanel.tsx"
1236
+ ]
1237
+ },
1226
1238
  {
1227
1239
  "key": "(counted separately)",
1228
1240
  "defaultText": "(counted separately)",
@@ -5833,6 +5845,17 @@
5833
5845
  "src/chat/trace/trace-labels.ts"
5834
5846
  ]
5835
5847
  },
5848
+ {
5849
+ "key": "Follow-up pass",
5850
+ "defaultText": "Follow-up pass",
5851
+ "placeholders": [],
5852
+ "contexts": [
5853
+ "skill-load-source"
5854
+ ],
5855
+ "usedIn": [
5856
+ "src/admin/skills/SkillLoadSourcesPanel.tsx"
5857
+ ]
5858
+ },
5836
5859
  {
5837
5860
  "key": "Follows the connection’s sharing",
5838
5861
  "defaultText": "Follows the connection’s sharing",
@@ -6208,6 +6231,15 @@
6208
6231
  "src/admin/conversations/AgentConversationsScreen.tsx"
6209
6232
  ]
6210
6233
  },
6234
+ {
6235
+ "key": "How each skill came into the conversations: preloaded by the decision model (first pass, or the follow-up pass under a preloaded root) or loaded by the chat model itself with load_skills. A skill the model loads itself that no preload brought is a preload candidate.",
6236
+ "defaultText": "How each skill came into the conversations: preloaded by the decision model (first pass, or the follow-up pass under a preloaded root) or loaded by the chat model itself with load_skills. A skill the model loads itself that no preload brought is a preload candidate.",
6237
+ "placeholders": [],
6238
+ "contexts": [],
6239
+ "usedIn": [
6240
+ "src/admin/skills/SkillLoadSourcesPanel.tsx"
6241
+ ]
6242
+ },
6211
6243
  {
6212
6244
  "key": "How the agent works and what it costs: usage, tools, schedules and the settings of the agent.",
6213
6245
  "defaultText": "How the agent works and what it costs: usage, tools, schedules and the settings of the agent.",
@@ -6908,6 +6940,15 @@
6908
6940
  "src/admin/skills/AgentSkillCatalogScreen.tsx"
6909
6941
  ]
6910
6942
  },
6943
+ {
6944
+ "key": "Loads by source",
6945
+ "defaultText": "Loads by source",
6946
+ "placeholders": [],
6947
+ "contexts": [],
6948
+ "usedIn": [
6949
+ "src/admin/skills/SkillLoadSourcesPanel.tsx"
6950
+ ]
6951
+ },
6911
6952
  {
6912
6953
  "key": "Loads cannot be counted on this database: the generated tool columns of the message table are missing.",
6913
6954
  "defaultText": "Loads cannot be counted on this database: the generated tool columns of the message table are missing.",
@@ -8162,6 +8203,15 @@
8162
8203
  "src/admin/skills/AgentSkillCatalogScreen.tsx"
8163
8204
  ]
8164
8205
  },
8206
+ {
8207
+ "key": "No skill was loaded in this period.",
8208
+ "defaultText": "No skill was loaded in this period.",
8209
+ "placeholders": [],
8210
+ "contexts": [],
8211
+ "usedIn": [
8212
+ "src/admin/skills/SkillLoadSourcesPanel.tsx"
8213
+ ]
8214
+ },
8165
8215
  {
8166
8216
  "key": "No space uses “%name%” any more, the spaces the connection is shared with included. The owner’s own use stays as it is.",
8167
8217
  "defaultText": "No space uses “%name%” any more, the spaces the connection is shared with included. The owner’s own use stays as it is.",
@@ -9566,6 +9616,17 @@
9566
9616
  "src/widgets/WritingDraftConversationWidget/WritingDraftWidget/WritingDraftWidget.tsx"
9567
9617
  ]
9568
9618
  },
9619
+ {
9620
+ "key": "Preload",
9621
+ "defaultText": "Preload",
9622
+ "placeholders": [],
9623
+ "contexts": [
9624
+ "skill-load-source"
9625
+ ],
9626
+ "usedIn": [
9627
+ "src/admin/skills/SkillLoadSourcesPanel.tsx"
9628
+ ]
9629
+ },
9569
9630
  {
9570
9631
  "key": "Preload outcome",
9571
9632
  "defaultText": "Preload outcome",
@@ -9575,6 +9636,28 @@
9575
9636
  "src/chat/trace/trace-labels.ts"
9576
9637
  ]
9577
9638
  },
9639
+ {
9640
+ "key": "Preload unused",
9641
+ "defaultText": "Preload unused",
9642
+ "placeholders": [],
9643
+ "contexts": [
9644
+ "skill-load-source"
9645
+ ],
9646
+ "usedIn": [
9647
+ "src/admin/skills/SkillLoadSourcesPanel.tsx"
9648
+ ]
9649
+ },
9650
+ {
9651
+ "key": "Preload used",
9652
+ "defaultText": "Preload used",
9653
+ "placeholders": [],
9654
+ "contexts": [
9655
+ "skill-load-source"
9656
+ ],
9657
+ "usedIn": [
9658
+ "src/admin/skills/SkillLoadSourcesPanel.tsx"
9659
+ ]
9660
+ },
9578
9661
  {
9579
9662
  "key": "Preloaded for the next plan item: %skills%",
9580
9663
  "defaultText": "Preloaded for the next plan item: %skills%",
@@ -9607,6 +9690,15 @@
9607
9690
  "src/admin/skills/SkillPurposesPanel.tsx"
9608
9691
  ]
9609
9692
  },
9693
+ {
9694
+ "key": "Preloads used",
9695
+ "defaultText": "Preloads used",
9696
+ "placeholders": [],
9697
+ "contexts": [],
9698
+ "usedIn": [
9699
+ "src/admin/skills/SkillLoadSourcesPanel.tsx"
9700
+ ]
9701
+ },
9610
9702
  {
9611
9703
  "key": "Presentation",
9612
9704
  "defaultText": "Presentation",
@@ -11722,6 +11814,15 @@
11722
11814
  "src/kit/components/rich/Code.composed.tsx"
11723
11815
  ]
11724
11816
  },
11817
+ {
11818
+ "key": "Show fewer skills",
11819
+ "defaultText": "Show fewer skills",
11820
+ "placeholders": [],
11821
+ "contexts": [],
11822
+ "usedIn": [
11823
+ "src/admin/skills/SkillLoadSourcesPanel.tsx"
11824
+ ]
11825
+ },
11725
11826
  {
11726
11827
  "key": "Show hidden widget",
11727
11828
  "defaultText": "Show hidden widget",
@@ -12019,10 +12120,12 @@
12019
12120
  "defaultText": "Skill",
12020
12121
  "placeholders": [],
12021
12122
  "contexts": [
12123
+ "skill-catalog",
12022
12124
  "tool-schema"
12023
12125
  ],
12024
12126
  "usedIn": [
12025
12127
  "src/admin/skills/AgentSkillCatalogScreen.tsx",
12128
+ "src/admin/skills/SkillLoadSourcesPanel.tsx",
12026
12129
  "src/admin/skills/ToolSchemaDrawer.tsx"
12027
12130
  ]
12028
12131
  },
@@ -13755,6 +13858,15 @@
13755
13858
  "src/admin/conversations/RequestsPanel.tsx"
13756
13859
  ]
13757
13860
  },
13861
+ {
13862
+ "key": "The loads of the chat model cannot be counted on this database: only the preloads are shown.",
13863
+ "defaultText": "The loads of the chat model cannot be counted on this database: only the preloads are shown.",
13864
+ "placeholders": [],
13865
+ "contexts": [],
13866
+ "usedIn": [
13867
+ "src/admin/skills/SkillLoadSourcesPanel.tsx"
13868
+ ]
13869
+ },
13758
13870
  {
13759
13871
  "key": "The loop refused or aborted a call the model repeated.",
13760
13872
  "defaultText": "The loop refused or aborted a call the model repeated.",
@@ -13909,6 +14021,15 @@
13909
14021
  "src/admin/skills/AgentSkillCatalogScreen.tsx"
13910
14022
  ]
13911
14023
  },
14024
+ {
14025
+ "key": "The period holds more rows than one read counts: the newest were counted.",
14026
+ "defaultText": "The period holds more rows than one read counts: the newest were counted.",
14027
+ "placeholders": [],
14028
+ "contexts": [],
14029
+ "usedIn": [
14030
+ "src/admin/skills/SkillLoadSourcesPanel.tsx"
14031
+ ]
14032
+ },
13912
14033
  {
13913
14034
  "key": "The provider does not let you share this item.",
13914
14035
  "defaultText": "The provider does not let you share this item.",
@@ -14392,6 +14513,15 @@
14392
14513
  "src/admin/skills/AgentSkillCatalogScreen.tsx"
14393
14514
  ]
14394
14515
  },
14516
+ {
14517
+ "key": "The skill load sources could not be loaded.",
14518
+ "defaultText": "The skill load sources could not be loaded.",
14519
+ "placeholders": [],
14520
+ "contexts": [],
14521
+ "usedIn": [
14522
+ "src/admin/skills/SkillLoadSourcesPanel.tsx"
14523
+ ]
14524
+ },
14395
14525
  {
14396
14526
  "key": "The skill that brought this tool",
14397
14527
  "defaultText": "The skill that brought this tool",
@@ -14611,6 +14741,15 @@
14611
14741
  "src/admin/conversations/ConversationActions.tsx"
14612
14742
  ]
14613
14743
  },
14744
+ {
14745
+ "key": "The turn events cannot be read on this database: no load sources.",
14746
+ "defaultText": "The turn events cannot be read on this database: no load sources.",
14747
+ "placeholders": [],
14748
+ "contexts": [],
14749
+ "usedIn": [
14750
+ "src/admin/skills/SkillLoadSourcesPanel.tsx"
14751
+ ]
14752
+ },
14614
14753
  {
14615
14754
  "key": "The turn is asked to stop.",
14616
14755
  "defaultText": "The turn is asked to stop.",
@@ -14824,6 +14963,15 @@
14824
14963
  "src/widgets/EntityMentionConversationWidget/shared/entity-mention-presentation.ts"
14825
14964
  ]
14826
14965
  },
14966
+ {
14967
+ "key": "This connection cannot be reconnected here.",
14968
+ "defaultText": "This connection cannot be reconnected here.",
14969
+ "placeholders": [],
14970
+ "contexts": [],
14971
+ "usedIn": [
14972
+ "src/admin/connections/AgentConnectionsPanel.tsx"
14973
+ ]
14974
+ },
14827
14975
  {
14828
14976
  "key": "This connection is not in your list.",
14829
14977
  "defaultText": "This connection is not in your list.",
@@ -18264,6 +18412,15 @@
18264
18412
  "src/admin/quality/AgentQualityScreen.tsx"
18265
18413
  ]
18266
18414
  },
18415
+ {
18416
+ "key": "no preloading turn",
18417
+ "defaultText": "no preloading turn",
18418
+ "placeholders": [],
18419
+ "contexts": [],
18420
+ "usedIn": [
18421
+ "src/admin/skills/SkillLoadSourcesPanel.tsx"
18422
+ ]
18423
+ },
18267
18424
  {
18268
18425
  "key": "no purpose definition",
18269
18426
  "defaultText": "no purpose definition",
@@ -18552,6 +18709,15 @@
18552
18709
  "src/chat/trace/trace-format.ts"
18553
18710
  ]
18554
18711
  },
18712
+ {
18713
+ "key": "preload candidate",
18714
+ "defaultText": "preload candidate",
18715
+ "placeholders": [],
18716
+ "contexts": [],
18717
+ "usedIn": [
18718
+ "src/admin/skills/SkillLoadSourcesPanel.tsx"
18719
+ ]
18720
+ },
18555
18721
  {
18556
18722
  "key": "provider %duration%",
18557
18723
  "defaultText": "provider %duration%",
@@ -19639,6 +19805,15 @@
19639
19805
  "src/admin/skills/AgentSkillCatalogScreen.tsx"
19640
19806
  ]
19641
19807
  },
19808
+ {
19809
+ "key": "{count, plural, one {Show all # skill} other {Show all # skills}}",
19810
+ "defaultText": "{count, plural, one {Show all # skill} other {Show all # skills}}",
19811
+ "placeholders": [],
19812
+ "contexts": [],
19813
+ "usedIn": [
19814
+ "src/admin/skills/SkillLoadSourcesPanel.tsx"
19815
+ ]
19816
+ },
19642
19817
  {
19643
19818
  "key": "{count, plural, one {Skill catalog (# skill offered)} other {Skill catalog (# skills offered)}}",
19644
19819
  "defaultText": "{count, plural, one {Skill catalog (# skill offered)} other {Skill catalog (# skills offered)}}",
@@ -1,7 +1,7 @@
1
1
  import { type ListDisplayMode, type UrlStateAdapter } from "@mgamadeus/ddd-admin-ui/logic";
2
2
  import { type ReactNode } from "react";
3
3
  import { type AgentConnectionsScope } from "./agent-connection-format";
4
- import { type AgentConnectionDriveSelection, type AgentConnectionLevelsRequest, type AgentConnectionsOAuthAdapter } from "./agent-connection-oauth";
4
+ import { type AgentConnectionDriveSelection, type AgentConnectionLevelsRequest, type AgentConnectionReconnectRequest, type AgentConnectionsOAuthAdapter } from "./agent-connection-oauth";
5
5
  import type { AgentConnectionsApi } from "./agent-connections-api";
6
6
  import { type AgentConnectionsTexts } from "./agent-connections-context";
7
7
  import { type AgentConnectionLogos } from "./connection-logos";
@@ -58,6 +58,14 @@ export interface AgentConnectionsPanelProps {
58
58
  /** A request to open the levels drawer of a connection (a deep link); handled once the list is loaded. */
59
59
  levelsRequest?: AgentConnectionLevelsRequest | null;
60
60
  onLevelsRequestHandled?: () => void;
61
+ /**
62
+ * A request to reconnect a connection (the deep link `?connection=<id>&reconnect=1`, e.g. "Reconnect" of a screen that
63
+ * found the connection expired): once the list is loaded the panel scrolls to the connection and starts its
64
+ * reconnect once; `onReconnectRequestHandled` then lets the host drop the parameters, so a reload does not start it
65
+ * again.
66
+ */
67
+ reconnectRequest?: AgentConnectionReconnectRequest | null;
68
+ onReconnectRequestHandled?: () => void;
61
69
  /** False: no "Drives and folders" (a host that does not mount the drive routes). Default true. */
62
70
  driveRoots?: boolean;
63
71
  /** The connection whose drives and folders are open, when the host keeps it (the URL); with it pass the callback. */
@@ -116,7 +116,23 @@ export interface AgentConnectionDriveSelection {
116
116
  }
117
117
  /** The query string (without `?`) of a drive selection: `connection=<id>[&driveRoot=<id>]`. */
118
118
  export declare const buildAgentConnectionDriveSearch: ({ connectionId, driveRootId }: AgentConnectionDriveSelection) => string;
119
- /** The drive selection of an address, `null` without a valid `connection` id. */
119
+ /**
120
+ * The drive selection of an address, `null` without a valid `connection` id. An address that asks to reconnect
121
+ * (`reconnect=1`, {@link readAgentConnectionReconnectRequest}) names the connection for that and opens no drives.
122
+ */
120
123
  export declare const readAgentConnectionDriveSelection: (parameters: Pick<URLSearchParams, "get">) => AgentConnectionDriveSelection | null;
124
+ /**
125
+ * The search parameters of the deep link that renews a connection: `connection=<id>&reconnect=1`. A screen that finds
126
+ * the connection expired links here ("Reconnect"); the panel scrolls to the connection and starts its reconnect once.
127
+ */
128
+ export declare const AGENT_CONNECTION_RECONNECT_LINK_PARAMETERS: readonly ["connection", "reconnect"];
129
+ /** A request to reconnect one connection (the deep link `connection=<id>&reconnect=1`). */
130
+ export interface AgentConnectionReconnectRequest {
131
+ connectionId: number;
132
+ }
133
+ /** The query string (without `?`) of a reconnect request: `connection=<id>&reconnect=1`. */
134
+ export declare const buildAgentConnectionReconnectSearch: ({ connectionId }: AgentConnectionReconnectRequest) => string;
135
+ /** The reconnect request of an address, `null` unless `reconnect=1` names a valid `connection` id. */
136
+ export declare const readAgentConnectionReconnectRequest: (parameters: Pick<URLSearchParams, "get">) => AgentConnectionReconnectRequest | null;
121
137
  /** The DOM id of a root's row in the drive roots of a connection (the target of the deep link). */
122
138
  export declare const agentConnectionDriveRootDomId: (connectionId: number, driveRootId: number | string) => string;
@@ -0,0 +1,20 @@
1
+ import type { AdminPeriod } from "../period/admin-period";
2
+ import type { AgentSkillCatalogApi } from "./agent-skill-catalog-api";
3
+ import type { AgentSkillLoadSource } from "./agent-skill-catalog-types";
4
+ export interface SkillLoadSourcesPanelProps {
5
+ api: Pick<AgentSkillCatalogApi, "useSkillLoadSourcesQuery">;
6
+ /** The period the loads are counted over. */
7
+ period: Pick<AdminPeriod, "from" | "to">;
8
+ className?: string;
9
+ }
10
+ /** The rows the card shows before "show all". */
11
+ export declare const SKILL_LOAD_SOURCES_COLLAPSED_ROW_COUNT = 12;
12
+ /** A skill the chat model loaded itself while no preload brought it in the period: a preload candidate. */
13
+ export declare const isSkillPreloadCandidate: (loadSource: AgentSkillLoadSource) => boolean;
14
+ /**
15
+ * How the skills came into conversations in a period, by source: the decision model's preloads (first pass and the
16
+ * follow-up pass under a preloaded root) and the chat model's own calls of the skill-loading tool, with the share of
17
+ * the preloading turns that used what was preloaded. A skill the model loads itself that no preload brought is
18
+ * marked as a preload candidate.
19
+ */
20
+ export declare const SkillLoadSourcesPanel: ({ api, period, className }: SkillLoadSourcesPanelProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { type ApiQueryHook, type InjectableBaseApi, type InjectedRequest, type StaticQueryFailure } from "@mgamadeus/ddd-admin-ui/logic/pure";
2
- import type { AgentSkillCatalogResponse, AgentSkillLoadCountsResponse, AgentSkillPurposesResponse, AgentSkillSharedBlocksResponse, AgentSkillToolArg, AgentSkillToolDocumentationResponse, AgentSkillUsageArg } from "./agent-skill-catalog-types";
3
- /** The cache tag type of the skill catalog reads (ids `CATALOG`, `TOOL`, `SHARED_BLOCKS`, `PURPOSES`, `LOAD_COUNTS`). */
2
+ import type { AgentSkillCatalogResponse, AgentSkillLoadCountsResponse, AgentSkillLoadSourcesResponse, AgentSkillPurposesResponse, AgentSkillSharedBlocksResponse, AgentSkillToolArg, AgentSkillToolDocumentationResponse, AgentSkillUsageArg } from "./agent-skill-catalog-types";
3
+ /** The cache tag type of the skill catalog reads (ids `CATALOG`, `TOOL`, `SHARED_BLOCKS`, `PURPOSES`, `LOAD_COUNTS`, `LOAD_SOURCES`). */
4
4
  export declare const AGENT_SKILL_CATALOG_TAG = "AdminUiAgentSkillCatalog";
5
5
  /** The hooks `createAgentSkillCatalogApi` returns; `AgentSkillCatalogScreen` takes them as `api`. */
6
6
  export interface AgentSkillCatalogApi {
@@ -14,6 +14,8 @@ export interface AgentSkillCatalogApi {
14
14
  useSkillPurposesQuery: ApiQueryHook<AgentSkillUsageArg, AgentSkillPurposesResponse>;
15
15
  /** `GET /skillLoadCounts?from&to`: how often the model asked for each skill in a period. */
16
16
  useSkillLoadCountsQuery: ApiQueryHook<AgentSkillUsageArg, AgentSkillLoadCountsResponse>;
17
+ /** `GET /skillLoadSources?from&to`: the loads of each skill by source (preload, follow-up pass, the model) and the preload outcomes. */
18
+ useSkillLoadSourcesQuery: ApiQueryHook<AgentSkillUsageArg, AgentSkillLoadSourcesResponse>;
17
19
  }
18
20
  export interface CreateAgentSkillCatalogApiOptions {
19
21
  /** The host's RTK Query api (`createApi` with the React hooks module). */
@@ -28,6 +30,7 @@ export declare const buildAgentSkillCatalogRequests: (apiPrefix: string) => {
28
30
  sharedBlocks: () => InjectedRequest;
29
31
  purposes: (arg?: AgentSkillUsageArg) => InjectedRequest;
30
32
  skillLoadCounts: (arg?: AgentSkillUsageArg) => InjectedRequest;
33
+ skillLoadSources: (arg?: AgentSkillUsageArg) => InjectedRequest;
31
34
  };
32
35
  /** The operations as injected. */
33
36
  export declare const agentSkillCatalogEndpointDefinitions: (apiPrefix: string) => {
@@ -71,6 +74,14 @@ export declare const agentSkillCatalogEndpointDefinitions: (apiPrefix: string) =
71
74
  readonly id: "LOAD_COUNTS";
72
75
  }];
73
76
  };
77
+ readonly adminUiAgentSkillLoadSources: {
78
+ readonly kind: "query";
79
+ readonly request: (arg?: AgentSkillUsageArg) => InjectedRequest;
80
+ readonly providesTags: readonly [{
81
+ readonly type: "AdminUiAgentSkillCatalog";
82
+ readonly id: "LOAD_SOURCES";
83
+ }];
84
+ };
74
85
  };
75
86
  /**
76
87
  * Injects the skill catalog reads into the host's RTK Query api and returns their hooks. Call it once at module scope:
@@ -84,6 +95,7 @@ export interface StaticAgentSkillCatalogData {
84
95
  sharedBlocks?: () => AgentSkillSharedBlocksResponse | StaticQueryFailure | undefined;
85
96
  purposes?: (arg: AgentSkillUsageArg) => AgentSkillPurposesResponse | StaticQueryFailure | undefined;
86
97
  skillLoadCounts?: (arg: AgentSkillUsageArg) => AgentSkillLoadCountsResponse | StaticQueryFailure | undefined;
98
+ skillLoadSources?: (arg: AgentSkillUsageArg) => AgentSkillLoadSourcesResponse | StaticQueryFailure | undefined;
87
99
  }
88
100
  /** An `AgentSkillCatalogApi` answering fixed payloads, without a store or a request (previews, tests, reviews). */
89
101
  export declare const createStaticAgentSkillCatalogApi: (data: StaticAgentSkillCatalogData) => AgentSkillCatalogApi;
@@ -221,3 +221,39 @@ export interface AgentSkillLoadCountsResponse {
221
221
  isLoadCountDataAvailable?: boolean;
222
222
  loadCounts?: AgentSkillLoadCounts | null;
223
223
  }
224
+ /** How one skill came into conversations in a period, by source (`AISkillCatalogSkillLoadSource`). */
225
+ export interface AgentSkillLoadSource {
226
+ skillName: string;
227
+ /** Applied preloads of the decision model's first pass. */
228
+ preloadCount?: number;
229
+ /** Applied preloads of a follow-up pass (a sub-skill under a preloaded root). */
230
+ subPassPreloadCount?: number;
231
+ /** Calls of the skill-loading tool that named the skill: loads the chat model asked for itself. */
232
+ modelLoadCount?: number;
233
+ /** Turns that preloaded the skill and used a tool of a preloaded skill. */
234
+ preloadUsedCount?: number;
235
+ /** Turns that preloaded the skill and used none. */
236
+ preloadUnusedCount?: number;
237
+ }
238
+ /** The loads of a period by source (`AISkillCatalogSkillLoadSources`, an object set), with the preload outcomes. */
239
+ export interface AgentSkillLoadSources {
240
+ /** The skills, the most loaded by the chat model first. */
241
+ elements?: readonly AgentSkillLoadSource[] | null;
242
+ countedEventCount?: number;
243
+ /** True: the period holds more rows than one read counts; the newest were counted. */
244
+ isTruncated?: boolean;
245
+ preloadUsedTurnCount?: number;
246
+ preloadUnusedTurnCount?: number;
247
+ /** The share of the preloading turns that used the preload (0…1); null without one. */
248
+ preloadUsedShare?: number | null;
249
+ /** False: the chat model's own loads could not be counted on this database. */
250
+ isModelLoadCountAvailable?: boolean;
251
+ }
252
+ /** `GET {prefix}/skillLoadSources`. */
253
+ export interface AgentSkillLoadSourcesResponse {
254
+ rangeFrom?: string;
255
+ rangeTo?: string;
256
+ /** False: the turn events could not be read on this database. */
257
+ isLoadSourceDataAvailable?: boolean;
258
+ loadSources?: AgentSkillLoadSources | null;
259
+ }
@@ -20,9 +20,10 @@ export { ContextCompositionPanel, type ContextCompositionPanelProps } from "../a
20
20
  export { CONTEXT_SEGMENT_LIST_WINDOW_SIZE, ContextSegmentList, type ContextSegmentListProps } from "../admin/context/ContextSegmentList";
21
21
  export { formatSentPayloadText, readSentPayloadValue, type SentPayloadComparableMessage, SentPayloadPanel, type SentPayloadPanelMode, type SentPayloadPanelProps, } from "../admin/context/SentPayloadPanel";
22
22
  export { AGENT_SKILL_CATALOG_TAG, type AgentSkillCatalogApi, agentSkillCatalogEndpointDefinitions, buildAgentSkillCatalogRequests, createAgentSkillCatalogApi, type CreateAgentSkillCatalogApiOptions, createStaticAgentSkillCatalogApi, type StaticAgentSkillCatalogData, } from "../admin/skills/agent-skill-catalog-api";
23
- export type { AgentSkillCatalog, AgentSkillCatalogEntry, AgentSkillCatalogNamespaceGroup, AgentSkillCatalogPackage, AgentSkillCatalogPurposeGroup, AgentSkillCatalogResponse, AgentSkillCatalogSharedBlock, AgentSkillCatalogSkillGroup, AgentSkillCatalogTool, AgentSkillCatalogToolComponents, AgentSkillCatalogTotals, AgentSkillLoadCount, AgentSkillLoadCounts, AgentSkillLoadCountsResponse, AgentSkillPurposesResponse, AgentSkillPurposeUsage, AgentSkillSharedBlocksResponse, AgentSkillTokenEntry, AgentSkillTokenMap, AgentSkillToolArg, AgentSkillToolDocumentation, AgentSkillToolDocumentationResponse, AgentSkillUsageArg, } from "../admin/skills/agent-skill-catalog-types";
23
+ export type { AgentSkillCatalog, AgentSkillCatalogEntry, AgentSkillCatalogNamespaceGroup, AgentSkillCatalogPackage, AgentSkillCatalogPurposeGroup, AgentSkillCatalogResponse, AgentSkillCatalogSharedBlock, AgentSkillCatalogSkillGroup, AgentSkillCatalogTool, AgentSkillCatalogToolComponents, AgentSkillCatalogTotals, AgentSkillLoadCount, AgentSkillLoadCounts, AgentSkillLoadCountsResponse, AgentSkillLoadSource, AgentSkillLoadSources, AgentSkillLoadSourcesResponse, AgentSkillPurposesResponse, AgentSkillPurposeUsage, AgentSkillSharedBlocksResponse, AgentSkillTokenEntry, AgentSkillTokenMap, AgentSkillToolArg, AgentSkillToolDocumentation, AgentSkillToolDocumentationResponse, AgentSkillUsageArg, } from "../admin/skills/agent-skill-catalog-types";
24
24
  export { AGENT_SKILL_CATALOG_URL_KEYS, type AgentSkillCatalogSection, AgentSkillCatalogScreen, type AgentSkillCatalogScreenProps } from "../admin/skills/AgentSkillCatalogScreen";
25
25
  export { SkillPurposesPanel, type SkillPurposesPanelProps } from "../admin/skills/SkillPurposesPanel";
26
+ export { isSkillPreloadCandidate, SKILL_LOAD_SOURCES_COLLAPSED_ROW_COUNT, SkillLoadSourcesPanel, type SkillLoadSourcesPanelProps } from "../admin/skills/SkillLoadSourcesPanel";
26
27
  export { SharedBlocksPanel, type SharedBlocksPanelProps } from "../admin/skills/SharedBlocksPanel";
27
28
  export { SKILL_INSTRUCTIONS_FILL_CLASS_NAME, SKILL_TOOL_DEFINITIONS_FILL_CLASS_NAME, skillToolTokenPartFillClassNameOf } from "../admin/skills/skill-catalog-colors";
28
29
  export { buildSkillNamespaceSections, buildSkillPurposeSections, buildSkillToolParameterRows, buildSkillToolTokenParts, buildSkillTreeRows, countFilteredSkills, type FilteredSkill, type FilteredSkillTreeRow, filterSkill, filterSkillTreeRows, findSkillToolLocations, generalSkillsOf, heaviestToolTokensOf, normalizeSkillTokenEntries, sharedBlocksOf, skillGroupSectionKeyOf, skillLoadCountsByNameOf, type SkillNamespaceSection, type SkillPurposeSection, skillToolDefinitionTokensOf, skillToolDescriptionOf, type SkillToolLocation, type SkillToolParameterRow, skillToolParametersSchemaOf, skillToolParameterTokensOf, type SkillToolTokenPart, type SkillToolTokenPartKind, type SkillTreeRow, summarizeJsonSchemaType, summarizeSkillGroup, sumSubSkillTotals, } from "../admin/skills/skill-catalog-tree";
@@ -73,7 +74,7 @@ export { AGENT_DECISION_ENGINE_LABELS, AGENT_DECISION_STATUS_LABELS, type AgentD
73
74
  export { AGENT_CONNECTIONS_TAG, type AgentConnectionsApi, agentConnectionsEndpointDefinitions, buildAgentConnectionsRequests, createAgentConnectionsApi, type CreateAgentConnectionsApiOptions, createStaticAgentConnectionsApi, type StaticAgentConnectionsData, } from "../admin/connections/agent-connections-api";
74
75
  export type { AgentConnectionAccountLink, AgentConnectionAccountLinkArg, AgentConnectionAction, AgentConnectionAddress, AgentConnectionAddressArg, AgentConnectionApprovalAnswerArg, AgentConnectionApprovalOption, AgentConnectionApprovalRequest, AgentConnectionApprovalsArg, AgentConnectionApprovalsResponse, AgentConnectionCapability, AgentConnectionCapabilityLevel, AgentConnectionDetailResponse, AgentConnectionDriveItem, AgentConnectionDriveItemsArg, AgentConnectionDriveItemsPage, AgentConnectionDriveItemsSearchArg, AgentConnectionDriveItemsSection, AgentConnectionDriveLabel, AgentConnectionDriveReleaseRole, AgentConnectionDriveRoot, AgentConnectionDriveRootAddArg, AgentConnectionDriveRootItemArg, AgentConnectionDriveRootKind, AgentConnectionDriveRootRuleKind, AgentConnectionDriveRootRuleResolution, AgentConnectionDriveRootRelease, AgentConnectionDriveRootReleaseArg, AgentConnectionDriveRootReleaseRevokeArg, AgentConnectionDriveRootReleasesArg, AgentConnectionDriveRootRevokeArg, AgentConnectionDriveRootsArg, AgentConnectionDriveRootsResponse, AgentConnectionDriveRootStatus, AgentConnectionDriveRootWay, AgentConnectionIdArg, AgentConnectionImapArg, AgentConnectionLevel, AgentConnectionLevelArg, AgentConnectionLevelRequest, AgentConnectionOAuthStartArg, AgentConnectionOAuthStartResponse, AgentConnectionPermission, AgentConnectionRelease, AgentConnectionReleaseArg, AgentConnectionReleaseToAgentArg, AgentConnectionScopeBoundary, AgentConnectionSettingsArg, AgentConnectionSlackArg, AgentConnectionsResponse, AgentConnectionSummary, AgentConnectionVisibility, } from "../admin/connections/agent-connections-types";
75
76
  export { AGENT_CONNECTION_CAPABILITIES, AGENT_CONNECTION_CAPABILITY_CONTEXT, AGENT_CONNECTION_CAPABILITY_LABEL, AGENT_CONNECTION_LEVEL_CONTEXT, AGENT_CONNECTION_LEVEL_HELP, AGENT_CONNECTION_LEVEL_HELP_CONTEXT, AGENT_CONNECTION_LEVEL_LABEL, AGENT_CONNECTION_LEVELS, AGENT_CONNECTION_STATUS, AGENT_CONNECTION_STATUS_GROUP_LABEL, AGENT_CONNECTION_STATUS_GROUPS, type AgentConnectionsFilter, type AgentConnectionsScope, type AgentConnectionStatusGroup, type AgentConnectionsViewer, agentConnectionLevelRank, agentConnectionLevelToneClass, agentConnectionNameOf, agentConnectionPortOf, agentConnectionProviderName, agentConnectionsOfScope, agentConnectionStatusGroupOf, agentConnectionVisibilityOf, canManageAgentConnection, countAgentConnectionsByStatusGroup, filterAgentConnections, GOOGLE_CONNECT_CAPABILITIES, hasAgentConnectionDriveAccess, isAgentConnectionCapability, isAgentConnectionConsentRequiredMessage, isAgentConnectionLevel, isAgentConnectionStatusGroup, isAgentConnectionVisibility, parseAgentConnectionLevels, } from "../admin/connections/agent-connection-format";
76
- export { AGENT_CONNECT_RETURN_PARAMETERS, AGENT_CONNECTION_DRIVE_LINK_PARAMETERS, AGENT_CONNECTION_LEVELS_LINK_PARAMETERS, AGENT_CONNECTIONS_PAGE_SURFACE, type AgentConnectionDriveSelection, type AgentConnectionLevelsRequest, type AgentConnectionsOAuthAdapter, type AgentConnectReturn, type AgentConnectReturnParameters, agentConnectionDriveRootDomId, buildAgentConnectionDriveSearch, buildAgentConnectionLevelsSearch, isAgentConnectCancelledReason, parsePendingAgentConnect, type PendingAgentConnect, pendingAgentConnectSurfaceOf, readAgentConnectionDriveSelection, readAgentConnectionLevelsRequest, readAgentConnectReturnParameters, resolveAgentConnectReturn, serializePendingAgentConnect, } from "../admin/connections/agent-connection-oauth";
77
+ export { AGENT_CONNECT_RETURN_PARAMETERS, AGENT_CONNECTION_DRIVE_LINK_PARAMETERS, AGENT_CONNECTION_LEVELS_LINK_PARAMETERS, AGENT_CONNECTION_RECONNECT_LINK_PARAMETERS, AGENT_CONNECTIONS_PAGE_SURFACE, type AgentConnectionDriveSelection, type AgentConnectionLevelsRequest, type AgentConnectionReconnectRequest, type AgentConnectionsOAuthAdapter, type AgentConnectReturn, type AgentConnectReturnParameters, agentConnectionDriveRootDomId, buildAgentConnectionDriveSearch, buildAgentConnectionLevelsSearch, buildAgentConnectionReconnectSearch, isAgentConnectCancelledReason, parsePendingAgentConnect, type PendingAgentConnect, pendingAgentConnectSurfaceOf, readAgentConnectionDriveSelection, readAgentConnectionLevelsRequest, readAgentConnectionReconnectRequest, readAgentConnectReturnParameters, resolveAgentConnectReturn, serializePendingAgentConnect, } from "../admin/connections/agent-connection-oauth";
77
78
  export { AGENT_CONNECTION_DRIVE_ITEMS_SECTION_LABEL, AGENT_CONNECTION_DRIVE_ITEMS_SECTIONS, AGENT_CONNECTION_DRIVE_RELEASE_ROLES, AGENT_CONNECTION_DRIVE_ROLE_LABEL, AGENT_CONNECTION_DRIVE_ROOT_GROUP_LABEL, AGENT_CONNECTION_DRIVE_ROOT_KIND_LABEL, AGENT_CONNECTION_DRIVE_ROOT_STATUS, AGENT_CONNECTION_DRIVE_ROOT_WAY_LABEL, AGENT_CONNECTION_DRIVE_SEARCH_MAX_LENGTH, AGENT_CONNECTION_DRIVE_SEARCH_MIN_LENGTH, type AgentConnectionDriveRootActions, type AgentConnectionDriveRootGroup, type AgentConnectionDriveRootGroupKind, type AgentConnectionDriveRootSpaceState, activeAgentConnectionDriveRootReleasesOf, agentConnectionDriveItemKindOf, agentConnectionDriveItemsSectionsOf, agentConnectionDriveLabelOf, agentConnectionDriveReleaseTargetsOf, agentConnectionDriveRootActionsOf, agentConnectionDriveRootAttachWayOf, agentConnectionDriveRootGroupsOf, agentConnectionDriveRootIdOf, agentConnectionDriveRootReleaseIdOf, agentConnectionDriveRootSpaceStateOf, agentConnectionDriveSearchQueryOf, attachableAgentConnectionDriveItemsOf, canReleaseAgentConnectionDriveItemToAgent, canRevokeAgentConnectionDriveRootRelease, canShareAgentConnectionDriveItem, findAgentConnectionDriveRootOfItem, isAgentConnectionDriveFolder, isAgentConnectionDriveItemAttachable, isAgentConnectionDriveReleaseRole, isAgentConnectionDriveRootEnded, releasableAgentSpaceIdsOfDriveRoot, } from "../admin/connections/agent-connection-drives";
78
79
  export { type AgentConnectionsTexts, resolveAgentConnectionsTexts } from "../admin/connections/agent-connections-context";
79
80
  export { type AgentConnectionLogo, type AgentConnectionLogoProps, type AgentConnectionLogos, DEFAULT_AGENT_CONNECTION_LOGOS, GmailLogo, GoogleCalendarLogo, GoogleContactsLogo, GoogleDriveLogo, GoogleLogo, mergeAgentConnectionLogos, SlackLogo, } from "../admin/connections/connection-logos";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mgamadeus/ddd-agents",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "The web frontend of the ddd-agents module: the agent chat, the widget renderer and the composed-view kit.",
5
5
  "keywords": [
6
6
  "ddd",
package/public-api.json CHANGED
@@ -1597,6 +1597,7 @@
1597
1597
  "AGENT_CONNECTION_LEVEL_HELP",
1598
1598
  "AGENT_CONNECTION_LEVEL_HELP_CONTEXT",
1599
1599
  "AGENT_CONNECTION_LEVEL_LABEL",
1600
+ "AGENT_CONNECTION_RECONNECT_LINK_PARAMETERS",
1600
1601
  "AGENT_CONNECTION_STATUS",
1601
1602
  "AGENT_CONNECTION_STATUS_GROUPS",
1602
1603
  "AGENT_CONNECTION_STATUS_GROUP_LABEL",
@@ -1691,6 +1692,7 @@
1691
1692
  "ProportionBar",
1692
1693
  "SERIES_FILL_CLASS_NAMES",
1693
1694
  "SKILL_INSTRUCTIONS_FILL_CLASS_NAME",
1695
+ "SKILL_LOAD_SOURCES_COLLAPSED_ROW_COUNT",
1694
1696
  "SKILL_ROW_GRID_CLASS_NAME",
1695
1697
  "SKILL_ROW_WITH_LOADS_GRID_CLASS_NAME",
1696
1698
  "SKILL_TOOL_DEFINITIONS_FILL_CLASS_NAME",
@@ -1699,6 +1701,7 @@
1699
1701
  "SentPayloadPanel",
1700
1702
  "SettingsTab",
1701
1703
  "SharedBlocksPanel",
1704
+ "SkillLoadSourcesPanel",
1702
1705
  "SkillPurposesPanel",
1703
1706
  "SkillTreeRowView",
1704
1707
  "SlackLogo",
@@ -1765,6 +1768,7 @@
1765
1768
  "budgetMeterLevelOf",
1766
1769
  "buildAgentConnectionDriveSearch",
1767
1770
  "buildAgentConnectionLevelsSearch",
1771
+ "buildAgentConnectionReconnectSearch",
1768
1772
  "buildAgentConnectionsRequests",
1769
1773
  "buildAgentContextCompositionEntries",
1770
1774
  "buildAgentContextEntrySegmentViews",
@@ -1883,6 +1887,7 @@
1883
1887
  "isRuntimeSettingName",
1884
1888
  "isRuntimeSettingSwitch",
1885
1889
  "isRuntimeSettingText",
1890
+ "isSkillPreloadCandidate",
1886
1891
  "jsonChildCountOf",
1887
1892
  "jsonChildEntriesOf",
1888
1893
  "jsonValueKindOf",
@@ -1914,6 +1919,7 @@
1914
1919
  "readAgentConnectReturnParameters",
1915
1920
  "readAgentConnectionDriveSelection",
1916
1921
  "readAgentConnectionLevelsRequest",
1922
+ "readAgentConnectionReconnectRequest",
1917
1923
  "readAgentConversationListCost",
1918
1924
  "readAgentConversationListIds",
1919
1925
  "readAgentConversationListPage",
@@ -2045,6 +2051,7 @@
2045
2051
  "AgentConnectionOAuthStartArg",
2046
2052
  "AgentConnectionOAuthStartResponse",
2047
2053
  "AgentConnectionPermission",
2054
+ "AgentConnectionReconnectRequest",
2048
2055
  "AgentConnectionRelease",
2049
2056
  "AgentConnectionReleaseArg",
2050
2057
  "AgentConnectionReleaseToAgentArg",
@@ -2217,6 +2224,9 @@
2217
2224
  "AgentSkillLoadCount",
2218
2225
  "AgentSkillLoadCounts",
2219
2226
  "AgentSkillLoadCountsResponse",
2227
+ "AgentSkillLoadSource",
2228
+ "AgentSkillLoadSources",
2229
+ "AgentSkillLoadSourcesResponse",
2220
2230
  "AgentSkillPurposeUsage",
2221
2231
  "AgentSkillPurposesResponse",
2222
2232
  "AgentSkillSharedBlocksResponse",
@@ -2293,6 +2303,7 @@
2293
2303
  "SeriesFillSteps",
2294
2304
  "SettingsTabProps",
2295
2305
  "SharedBlocksPanelProps",
2306
+ "SkillLoadSourcesPanelProps",
2296
2307
  "SkillNamespaceSection",
2297
2308
  "SkillPurposeSection",
2298
2309
  "SkillPurposesPanelProps",