@mastra/playground-ui 30.0.2-alpha.2 → 31.0.0-alpha.4
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/CHANGELOG.md +83 -0
- package/dist/index.cjs.js +233 -75
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +201 -27
- package/dist/index.es.js +227 -70
- package/dist/index.es.js.map +1 -1
- package/dist/src/domains/logs/hooks/use-logs.d.ts +13 -1267
- package/dist/src/domains/traces/hooks/use-branch.d.ts +5 -46
- package/dist/src/domains/traces/hooks/use-span-detail.d.ts +6 -44
- package/dist/src/domains/traces/hooks/use-trace-light-spans.d.ts +5 -18
- package/dist/src/domains/traces/hooks/use-trace-spans.d.ts +5 -46
- package/dist/src/domains/traces/hooks/use-traces.d.ts +15 -1539
- package/dist/src/ds/components/ButtonsGroup/buttons-group.stories.d.ts +30 -0
- package/dist/src/ds/components/Command/command.d.ts +7 -72
- package/dist/src/ds/components/FormFieldBlocks/fields/search-field-block.d.ts +2 -1
- package/dist/src/ds/components/Input/input.d.ts +3 -3
- package/dist/src/ds/components/Input/input.stories.d.ts +4 -0
- package/dist/src/ds/components/InputGroup/input-group.d.ts +7 -2
- package/dist/src/ds/components/InputGroup/input-group.stories.d.ts +3 -0
- package/dist/src/ds/components/ListSearch/list-search.d.ts +2 -1
- package/dist/src/ds/components/Searchbar/searchbar.d.ts +4 -1
- package/dist/src/ds/components/Searchbar/searchbar.stories.d.ts +3 -0
- package/dist/src/ds/components/Textarea/textarea.d.ts +3 -3
- package/dist/src/ds/components/Textarea/textarea.stories.d.ts +1 -0
- package/dist/src/ds/primitives/form-element.d.ts +6 -4
- package/dist/src/lib/formatting.d.ts +1 -0
- package/package.json +6 -6
|
@@ -1,52 +1,11 @@
|
|
|
1
|
+
import { LightSpanRecord } from '@mastra/core/storage';
|
|
2
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
1
3
|
export interface UseBranchArgs {
|
|
2
4
|
traceId: string | null | undefined;
|
|
3
5
|
spanId: string | null | undefined;
|
|
4
6
|
depth?: number;
|
|
5
7
|
}
|
|
6
|
-
export declare function useBranch({ traceId, spanId, depth }: UseBranchArgs):
|
|
8
|
+
export declare function useBranch({ traceId, spanId, depth, }: UseBranchArgs): UseQueryResult<{
|
|
7
9
|
traceId: string;
|
|
8
|
-
spans:
|
|
9
|
-
|
|
10
|
-
updatedAt: Date | null;
|
|
11
|
-
name: string;
|
|
12
|
-
spanType: import('@mastra/core/observability').SpanType;
|
|
13
|
-
isEvent: boolean;
|
|
14
|
-
startedAt: Date;
|
|
15
|
-
traceId: string;
|
|
16
|
-
spanId: string;
|
|
17
|
-
experimentId?: string | null | undefined;
|
|
18
|
-
attributes?: Record<string, unknown> | null | undefined;
|
|
19
|
-
links?: unknown[] | null | undefined;
|
|
20
|
-
input?: unknown;
|
|
21
|
-
output?: unknown;
|
|
22
|
-
error?: unknown;
|
|
23
|
-
endedAt?: Date | null | undefined;
|
|
24
|
-
requestContext?: Record<string, unknown> | null | undefined;
|
|
25
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
26
|
-
tags?: string[] | null | undefined;
|
|
27
|
-
source?: string | null | undefined;
|
|
28
|
-
entityType?: import('@mastra/core/storage').EntityType | null | undefined;
|
|
29
|
-
entityId?: string | null | undefined;
|
|
30
|
-
entityName?: string | null | undefined;
|
|
31
|
-
parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
|
|
32
|
-
parentEntityId?: string | null | undefined;
|
|
33
|
-
parentEntityName?: string | null | undefined;
|
|
34
|
-
rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
|
|
35
|
-
rootEntityId?: string | null | undefined;
|
|
36
|
-
rootEntityName?: string | null | undefined;
|
|
37
|
-
userId?: string | null | undefined;
|
|
38
|
-
organizationId?: string | null | undefined;
|
|
39
|
-
resourceId?: string | null | undefined;
|
|
40
|
-
runId?: string | null | undefined;
|
|
41
|
-
sessionId?: string | null | undefined;
|
|
42
|
-
threadId?: string | null | undefined;
|
|
43
|
-
requestId?: string | null | undefined;
|
|
44
|
-
environment?: string | null | undefined;
|
|
45
|
-
serviceName?: string | null | undefined;
|
|
46
|
-
scope?: Record<string, unknown> | null | undefined;
|
|
47
|
-
entityVersionId?: string | null | undefined;
|
|
48
|
-
parentEntityVersionId?: string | null | undefined;
|
|
49
|
-
rootEntityVersionId?: string | null | undefined;
|
|
50
|
-
parentSpanId?: string | null | undefined;
|
|
51
|
-
}[];
|
|
52
|
-
}, Error>;
|
|
10
|
+
spans: LightSpanRecord[];
|
|
11
|
+
} | null>;
|
|
@@ -1,46 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
name: string;
|
|
6
|
-
spanType: import('@mastra/core/observability').SpanType;
|
|
7
|
-
isEvent: boolean;
|
|
8
|
-
startedAt: Date;
|
|
9
|
-
traceId: string;
|
|
10
|
-
spanId: string;
|
|
11
|
-
experimentId?: string | null | undefined;
|
|
12
|
-
attributes?: Record<string, unknown> | null | undefined;
|
|
13
|
-
links?: unknown[] | null | undefined;
|
|
14
|
-
input?: unknown;
|
|
1
|
+
import { LightSpanRecord } from '@mastra/core/storage';
|
|
2
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
3
|
+
export declare function useSpanDetail(traceId: string | null | undefined, spanId: string | null | undefined): UseQueryResult<{
|
|
4
|
+
span: LightSpanRecord & {
|
|
15
5
|
output?: unknown;
|
|
16
|
-
|
|
17
|
-
endedAt?: Date | null | undefined;
|
|
18
|
-
requestContext?: Record<string, unknown> | null | undefined;
|
|
19
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
20
|
-
tags?: string[] | null | undefined;
|
|
21
|
-
source?: string | null | undefined;
|
|
22
|
-
entityType?: import('@mastra/core/storage').EntityType | null | undefined;
|
|
23
|
-
entityId?: string | null | undefined;
|
|
24
|
-
entityName?: string | null | undefined;
|
|
25
|
-
parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
|
|
26
|
-
parentEntityId?: string | null | undefined;
|
|
27
|
-
parentEntityName?: string | null | undefined;
|
|
28
|
-
rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
|
|
29
|
-
rootEntityId?: string | null | undefined;
|
|
30
|
-
rootEntityName?: string | null | undefined;
|
|
31
|
-
userId?: string | null | undefined;
|
|
32
|
-
organizationId?: string | null | undefined;
|
|
33
|
-
resourceId?: string | null | undefined;
|
|
34
|
-
runId?: string | null | undefined;
|
|
35
|
-
sessionId?: string | null | undefined;
|
|
36
|
-
threadId?: string | null | undefined;
|
|
37
|
-
requestId?: string | null | undefined;
|
|
38
|
-
environment?: string | null | undefined;
|
|
39
|
-
serviceName?: string | null | undefined;
|
|
40
|
-
scope?: Record<string, unknown> | null | undefined;
|
|
41
|
-
entityVersionId?: string | null | undefined;
|
|
42
|
-
parentEntityVersionId?: string | null | undefined;
|
|
43
|
-
rootEntityVersionId?: string | null | undefined;
|
|
44
|
-
parentSpanId?: string | null | undefined;
|
|
6
|
+
result?: unknown;
|
|
45
7
|
};
|
|
46
|
-
}
|
|
8
|
+
} | null>;
|
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { LightSpanRecord } from '@mastra/core/storage';
|
|
2
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
3
|
+
export declare function useTraceLightSpans(traceId: string | null | undefined): UseQueryResult<{
|
|
2
4
|
traceId: string;
|
|
3
|
-
spans:
|
|
4
|
-
|
|
5
|
-
updatedAt: Date | null;
|
|
6
|
-
name: string;
|
|
7
|
-
spanType: import('@mastra/core/observability').SpanType;
|
|
8
|
-
isEvent: boolean;
|
|
9
|
-
startedAt: Date;
|
|
10
|
-
traceId: string;
|
|
11
|
-
spanId: string;
|
|
12
|
-
parentSpanId?: string | null | undefined;
|
|
13
|
-
endedAt?: Date | null | undefined;
|
|
14
|
-
error?: unknown;
|
|
15
|
-
entityType?: import('@mastra/core/storage').EntityType | null | undefined;
|
|
16
|
-
entityId?: string | null | undefined;
|
|
17
|
-
entityName?: string | null | undefined;
|
|
18
|
-
}[];
|
|
19
|
-
}, Error>;
|
|
5
|
+
spans: LightSpanRecord[];
|
|
6
|
+
} | null>;
|
|
@@ -1,47 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { LightSpanRecord } from '@mastra/core/storage';
|
|
2
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
3
|
+
export declare function useTraceSpans(traceId: string | null | undefined): UseQueryResult<{
|
|
2
4
|
traceId: string;
|
|
3
|
-
spans:
|
|
4
|
-
|
|
5
|
-
updatedAt: Date | null;
|
|
6
|
-
name: string;
|
|
7
|
-
spanType: import('@mastra/core/observability').SpanType;
|
|
8
|
-
isEvent: boolean;
|
|
9
|
-
startedAt: Date;
|
|
10
|
-
traceId: string;
|
|
11
|
-
spanId: string;
|
|
12
|
-
experimentId?: string | null | undefined;
|
|
13
|
-
attributes?: Record<string, unknown> | null | undefined;
|
|
14
|
-
links?: unknown[] | null | undefined;
|
|
15
|
-
input?: unknown;
|
|
16
|
-
output?: unknown;
|
|
17
|
-
error?: unknown;
|
|
18
|
-
endedAt?: Date | null | undefined;
|
|
19
|
-
requestContext?: Record<string, unknown> | null | undefined;
|
|
20
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
21
|
-
tags?: string[] | null | undefined;
|
|
22
|
-
source?: string | null | undefined;
|
|
23
|
-
entityType?: import('@mastra/core/storage').EntityType | null | undefined;
|
|
24
|
-
entityId?: string | null | undefined;
|
|
25
|
-
entityName?: string | null | undefined;
|
|
26
|
-
parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
|
|
27
|
-
parentEntityId?: string | null | undefined;
|
|
28
|
-
parentEntityName?: string | null | undefined;
|
|
29
|
-
rootEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
|
|
30
|
-
rootEntityId?: string | null | undefined;
|
|
31
|
-
rootEntityName?: string | null | undefined;
|
|
32
|
-
userId?: string | null | undefined;
|
|
33
|
-
organizationId?: string | null | undefined;
|
|
34
|
-
resourceId?: string | null | undefined;
|
|
35
|
-
runId?: string | null | undefined;
|
|
36
|
-
sessionId?: string | null | undefined;
|
|
37
|
-
threadId?: string | null | undefined;
|
|
38
|
-
requestId?: string | null | undefined;
|
|
39
|
-
environment?: string | null | undefined;
|
|
40
|
-
serviceName?: string | null | undefined;
|
|
41
|
-
scope?: Record<string, unknown> | null | undefined;
|
|
42
|
-
entityVersionId?: string | null | undefined;
|
|
43
|
-
parentEntityVersionId?: string | null | undefined;
|
|
44
|
-
rootEntityVersionId?: string | null | undefined;
|
|
45
|
-
parentSpanId?: string | null | undefined;
|
|
46
|
-
}[];
|
|
47
|
-
}, Error>;
|
|
5
|
+
spans: LightSpanRecord[];
|
|
6
|
+
} | null>;
|