agentic-ui-libs 1.2.0-beta.5 → 1.2.0-beta.6
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/assets/agentic-ui-libs.css +3 -0
- package/dist/features/debug-logs/components/DebugCard.d.ts.map +1 -1
- package/dist/features/debug-logs/services/TreeBuilder.d.ts.map +1 -1
- package/dist/features/md-editor/MDEditor.d.ts.map +1 -1
- package/dist/features/md-editor/utils/variableContext.d.ts +28 -0
- package/dist/features/md-editor/utils/variableContext.d.ts.map +1 -0
- package/dist/features/tracing/components/TracesList.d.ts.map +1 -1
- package/dist/features/tracing/components/detail/DetailPage.d.ts.map +1 -1
- package/dist/features/tracing/services/TraceTreeService.d.ts +12 -2
- package/dist/features/tracing/services/TraceTreeService.d.ts.map +1 -1
- package/dist/index.js +225 -59
- package/dist/ui-libs.umd.js +225 -59
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DebugCard.d.ts","sourceRoot":"","sources":["../../../../src/features/debug-logs/components/DebugCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAmB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"DebugCard.d.ts","sourceRoot":"","sources":["../../../../src/features/debug-logs/components/DebugCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAmB,MAAM,UAAU,CAAC;AAyDhE,UAAU,cAAc;IACtB,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACvC,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,QAAQ,EACR,UAAkB,EAClB,WAAW,EACX,eAAe,EACf,cAAqB,EACrB,SAAS,EACT,SAAS,EACT,SAAa,EACd,EAAE,cAAc,2CAgiChB;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeBuilder.d.ts","sourceRoot":"","sources":["../../../../src/features/debug-logs/services/TreeBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,WAAW,EAAoC,MAAM,UAAU,CAAC;AAE5G,qBAAa,WAAW;IACtB;;;OAGG;IACH,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,cAAc,EAAE,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,WAAW;IAoBlF;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAc/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,YAAY;
|
|
1
|
+
{"version":3,"file":"TreeBuilder.d.ts","sourceRoot":"","sources":["../../../../src/features/debug-logs/services/TreeBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,WAAW,EAAoC,MAAM,UAAU,CAAC;AAE5G,qBAAa,WAAW;IACtB;;;OAGG;IACH,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,cAAc,EAAE,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,WAAW;IAoBlF;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAc/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,YAAY;IA+D3B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,wBAAwB;IA0EvC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IA8BjC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAmC9B;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAsDrC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IA0B9B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,YAAY;IAU3B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IASjC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAuB/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,uBAAuB;IAgBtC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,2BAA2B;IA4C1C;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IA2JjC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAajC;;OAEG;IACH,MAAM,CAAC,UAAU,CAAC,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,cAAc,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,GAAG,WAAW;IAMpH;;OAEG;IACH,MAAM,CAAC,WAAW,CAAC,cAAc,EAAE,cAAc,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE;CASpG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MDEditor.d.ts","sourceRoot":"","sources":["../../../src/features/md-editor/MDEditor.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EAQZ,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"MDEditor.d.ts","sourceRoot":"","sources":["../../../src/features/md-editor/MDEditor.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EAQZ,MAAM,SAAS,CAAC;AAkBjB,OAAO,wBAAwB,CAAC;AAyBhC,eAAO,MAAM,QAAQ,uGAohCpB,CAAC;AAIF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/core';
|
|
2
|
+
/**
|
|
3
|
+
* Result when the cursor is inside a variable insertion context (e.g. after {{ or between {{ and }}).
|
|
4
|
+
*/
|
|
5
|
+
export interface VariableContext {
|
|
6
|
+
/** Document position of the first '{' of the opening '{{'. */
|
|
7
|
+
readonly triggerFrom: number;
|
|
8
|
+
/** Text between '{{' and the cursor (the current query for suggestions). */
|
|
9
|
+
readonly query: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Detects if the cursor is inside a variable context (after an unclosed {{ ).
|
|
13
|
+
*
|
|
14
|
+
* Handles all scenarios:
|
|
15
|
+
* - Cursor after `{{` with partial path (e.g. `{{memory.`)
|
|
16
|
+
* - Cursor between `{{` and `}}` (e.g. user typed `{{}}` and is filling in between)
|
|
17
|
+
* - Re-opening suggestions after focus return
|
|
18
|
+
*
|
|
19
|
+
* Implementation correctly maps text offsets to ProseMirror document positions
|
|
20
|
+
* by walking the parent text-block's inline content. Atom nodes (existing
|
|
21
|
+
* variable/mention chips) are skipped so their `{{ }}` text doesn't interfere.
|
|
22
|
+
*
|
|
23
|
+
* @param editor - TipTap editor instance
|
|
24
|
+
* @param pos - Document position (usually selection.from)
|
|
25
|
+
* @returns Variable context with triggerFrom and query, or null if not in context
|
|
26
|
+
*/
|
|
27
|
+
export declare function getVariableContextAtPosition(editor: Editor, pos: number): VariableContext | null;
|
|
28
|
+
//# sourceMappingURL=variableContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variableContext.d.ts","sourceRoot":"","sources":["../../../../src/features/md-editor/utils/variableContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,8DAA8D;IAC9D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,4EAA4E;IAC5E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,GACV,eAAe,GAAG,IAAI,CAyDxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TracesList.d.ts","sourceRoot":"","sources":["../../../../src/features/tracing/components/TracesList.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,eAAe,EAAwF,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"TracesList.d.ts","sourceRoot":"","sources":["../../../../src/features/tracing/components/TracesList.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,eAAe,EAAwF,MAAM,UAAU,CAAC;AASjI,OAAO,6BAA6B,CAAC;AAs/BrC;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,2CAMhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailPage.d.ts","sourceRoot":"","sources":["../../../../../src/features/tracing/components/detail/DetailPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,EACL,eAAe,EAMhB,MAAM,SAAS,CAAC;AA+BjB,wBAAgB,UAAU,CAAC,EACzB,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,gBAAgB,EAC3B,OAAO,EAAE,cAAc,EACvB,SAAS,EACT,SAAS,EACT,OAAO,EACP,SAAc,EACd,qBAAqB,EACrB,SAA8B,EAC9B,iBAAiB,EACjB,kBAAkB,GACnB,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"DetailPage.d.ts","sourceRoot":"","sources":["../../../../../src/features/tracing/components/detail/DetailPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,EACL,eAAe,EAMhB,MAAM,SAAS,CAAC;AA+BjB,wBAAgB,UAAU,CAAC,EACzB,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,gBAAgB,EAC3B,OAAO,EAAE,cAAc,EACvB,SAAS,EACT,SAAS,EACT,OAAO,EACP,SAAc,EACd,qBAAqB,EACrB,SAA8B,EAC9B,iBAAiB,EACjB,kBAAkB,GACnB,EAAE,eAAe,2CA6pBjB"}
|
|
@@ -46,13 +46,23 @@ export declare class TraceTreeService {
|
|
|
46
46
|
*/
|
|
47
47
|
static formatDateTime(dateStr: string): string;
|
|
48
48
|
/**
|
|
49
|
-
* Extract user message from trace input
|
|
49
|
+
* Extract user message from trace input for display.
|
|
50
|
+
* Handles string, object with message/content/text/query, and messages array (e.g. voice/chat).
|
|
50
51
|
*/
|
|
51
52
|
static extractUserMessage(input: unknown): string;
|
|
52
53
|
/**
|
|
53
|
-
*
|
|
54
|
+
* Get last user message content from a messages array (chat/voice format).
|
|
55
|
+
*/
|
|
56
|
+
private static extractLastUserMessageFromArray;
|
|
57
|
+
/**
|
|
58
|
+
* Extract app response from trace output for display.
|
|
59
|
+
* Handles string, object with message/content/text/response, and messages array.
|
|
54
60
|
*/
|
|
55
61
|
static extractAppResponse(output: unknown): string;
|
|
62
|
+
/**
|
|
63
|
+
* Get last message content from a messages array for output display.
|
|
64
|
+
*/
|
|
65
|
+
private static extractLastMessageContentFromArray;
|
|
56
66
|
/**
|
|
57
67
|
* Calculate trace metrics from observations
|
|
58
68
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TraceTreeService.d.ts","sourceRoot":"","sources":["../../../../src/features/tracing/services/TraceTreeService.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAE7F,qBAAa,gBAAgB;IAC3B;;;OAGG;IACH,MAAM,CAAC,oBAAoB,CAAC,YAAY,EAAE,eAAe,EAAE,GAAG,mBAAmB,EAAE;IAoFnF;;OAEG;IACH,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE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