@loopstack/loopstack-studio 0.36.0 → 0.38.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.
- package/dist/features/documents/DocumentRenderer.js +46 -44
- package/dist/features/documents/renderers/DocumentMessageRenderer.js +23 -9
- package/dist/features/documents/renderers/LlmMessage.js +90 -50
- package/dist/features/documents/renderers/TerminalMessageRenderer.js +51 -0
- package/dist/features/documents/renderers/ansi.js +77 -0
- package/dist/features/file-explorer/components/FileExplorerPanel.js +66 -73
- package/dist/features/file-explorer/hooks/useFileExplorer.js +29 -25
- package/dist/features/file-explorer/providers/FileExplorerProvider.js +53 -53
- package/dist/features/git/components/WorkbenchGitPanel.js +36 -33
- package/dist/features/git/hooks/useGit.js +36 -33
- package/dist/features/run-view/RunView.js +1 -1
- package/dist/features/workbench/components/EnvironmentSelector.js +46 -0
- package/dist/features/workbench/components/WorkbenchPreviewPanel.js +1 -1
- package/dist/features/workbench/providers/WorkbenchLayoutProvider.js +64 -55
- package/dist/hooks/useEnvironments.js +25 -31
- package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js +1 -1
- package/dist/node_modules/es-toolkit/dist/compat/object/clone.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +11 -11
- package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js +8 -8
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +3 -3
- package/dist/node_modules/es-toolkit/dist/object/clone.js +2 -7
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +65 -65
- package/dist/packages/client/dist/queries/query-keys.js +5 -0
- package/dist/packages/client/dist/stream/invalidations.js +1 -0
- package/dist/packages/contracts/dist/events/client-message.schema.js +2 -1
- package/dist/packages/contracts/dist/events/index.js +1 -1
- package/dist/packages/contracts/dist/events/workspace-events.schema.js +2 -2
- package/dist/packages/contracts/dist/types/types/ui-message.type.js +15 -2
- package/package.json +4 -4
- /package/dist/features/run-view/{transcript.js → transcript-model.js} +0 -0
|
@@ -31,9 +31,22 @@ const UITextBlockSchema = z.object({
|
|
|
31
31
|
UIServerToolUseBlockSchema,
|
|
32
32
|
UIServerToolResultBlockSchema,
|
|
33
33
|
UIToolResultBlockSchema
|
|
34
|
-
]),
|
|
34
|
+
]), UIUsageSchema = z.object({
|
|
35
|
+
inputTokens: z.number(),
|
|
36
|
+
outputTokens: z.number(),
|
|
37
|
+
cacheCreationInputTokens: z.number().optional(),
|
|
38
|
+
cacheReadInputTokens: z.number().optional(),
|
|
39
|
+
reasoningTokens: z.number().optional()
|
|
40
|
+
}), UIMessageMetaSchema = z.object({
|
|
41
|
+
model: z.string().optional(),
|
|
42
|
+
usage: UIUsageSchema.optional(),
|
|
43
|
+
costUsd: z.number().optional(),
|
|
44
|
+
numTurns: z.number().optional(),
|
|
45
|
+
durationMs: z.number().optional()
|
|
46
|
+
}), UIMessageSchema = z.object({
|
|
35
47
|
role: z.enum(["user", "assistant"]),
|
|
36
48
|
text: z.string().optional(),
|
|
37
|
-
blocks: z.array(UIContentBlockSchema).optional()
|
|
49
|
+
blocks: z.array(UIContentBlockSchema).optional(),
|
|
50
|
+
meta: UIMessageMetaSchema.optional()
|
|
38
51
|
});
|
|
39
52
|
export { UIMessageSchema };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopstack/loopstack-studio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"repository": "loopstack-ai/loopstack-studio",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@fontsource/roboto": "^5.2.10",
|
|
28
28
|
"@hookform/resolvers": "^5.2.2",
|
|
29
|
-
"@loopstack/client": "^0.
|
|
30
|
-
"@loopstack/contracts": "^0.
|
|
31
|
-
"@loopstack/react": "^
|
|
29
|
+
"@loopstack/client": "^0.41.0",
|
|
30
|
+
"@loopstack/contracts": "^0.41.0",
|
|
31
|
+
"@loopstack/react": "^4.0.0",
|
|
32
32
|
"@radix-ui/react-accordion": "^1.2.12",
|
|
33
33
|
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
34
34
|
"@radix-ui/react-avatar": "^1.1.11",
|
|
File without changes
|