@theoremjs/studio 0.3.4-next.425.gd676bc4 → 0.3.4-next.429.g04f32ef

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.
Files changed (26) hide show
  1. package/README.md +2 -0
  2. package/package.json +4 -4
  3. package/page/assets/{Banner-BxLd-gbP.js → Banner-BXxhF-o1.js} +2 -2
  4. package/page/assets/{ConsoleFrame-Xig52jez.js → ConsoleFrame-Zogp88Wc.js} +1 -1
  5. package/page/assets/{ContextMenu-4tV-IRis.js → ContextMenu-CBOyKWd3.js} +2 -2
  6. package/page/assets/{ToolResultCharts-CGLk2QWt.js → ToolResultCharts-DoQ48Rsd.js} +1 -1
  7. package/page/assets/{TraceInspector-D8bgaGGg.js → TraceInspector-75n9__a7.js} +1 -1
  8. package/page/assets/{TraceOverview-YSw4NsLP.js → TraceOverview-UM4eJDLe.js} +1 -1
  9. package/page/assets/{browser-engine-CEVuq9tD.js → browser-engine-bQlfBE9p.js} +1 -1
  10. package/page/assets/{browser-transport-GN_sAoRU.js → browser-transport-DxIOg1UT.js} +3 -3
  11. package/page/assets/{export-agent-Cfk7FDUU.js → export-agent-DX9oOrot.js} +1 -1
  12. package/page/assets/{guardrail-tester-CzrCoHfx.js → guardrail-tester-BNJdJRUn.js} +1 -1
  13. package/page/assets/{index-DqhGleie.js → index-DF970vI_.js} +68 -68
  14. package/page/assets/{studio-code-pane-9Gi1uxMm.js → studio-code-pane-B8JqSxFl.js} +1 -1
  15. package/page/assets/{studio-console-DrcFIxad.js → studio-console-BbXL5cQm.js} +1 -1
  16. package/page/assets/{studio-decision-BVguQ_7z.js → studio-decision-BX7Q1Ux3.js} +1 -1
  17. package/page/assets/{studio-embedding-CfVq38py.js → studio-embedding-CaD6jPeS.js} +1 -1
  18. package/page/assets/{studio-host-console-lL4SbIEt.js → studio-host-console-Cc0ph_Fn.js} +2 -2
  19. package/page/assets/{studio-labels-Ons8T5De.js → studio-labels-J8Gxj-VB.js} +1 -1
  20. package/page/assets/{studio-live-BM6i1vpk.js → studio-live-TQtVqURP.js} +1 -1
  21. package/page/assets/{studio-map-BMscJbc0.js → studio-map-D-aUd36N.js} +1 -1
  22. package/page/assets/{studio-trace-replay-DL8xtvky.js → studio-trace-replay-DHRQV1xK.js} +1 -1
  23. package/page/assets/{use-one-call-DFAKQv2R.js → use-one-call-DOmiIAXx.js} +1 -1
  24. package/page/index.html +5 -5
  25. package/ui/studio-screen.d.ts +9 -0
  26. package/ui/studio-screen.js +27 -0
@@ -53,6 +53,15 @@ declare function useStudioWorkspace(start: RestoredStudio, project: ProjectSessi
53
53
  } | undefined;
54
54
  };
55
55
  export type StudioWorkspaceState = ReturnType<typeof useStudioWorkspace>;
56
+ /**
57
+ * The studio's tree for a workspace, open on its `selected` node, where nothing changes anything:
58
+ * a picture of the studio for a page that is not the studio, such as a home page. It writes no
59
+ * storage and reports nothing.
60
+ */
61
+ export declare function StudioTreePreview({ workspace, kernelVersion, }: {
62
+ workspace: StudioWorkspace;
63
+ kernelVersion: string;
64
+ }): import("react").JSX.Element;
56
65
  /** The studio, opened on `opened`, with what the page showing it provides. */
57
66
  export declare function StudioScreen({ opened, host }: {
58
67
  opened: StudioOpened;
@@ -1522,6 +1522,33 @@ const TreeColumn = memo(function TreeColumn({ tree, draft, onAddAgent, listRef,
1522
1522
  const { kernelVersion } = useStudioHost();
1523
1523
  return (_jsx(Section, { variant: "transparent", width: TREE_WIDTH, height: "100%", padding: 4, dividers: ['end'], children: _jsxs(VStack, { gap: 4, height: "100%", children: [_jsxs(HStack, { gap: 2, vAlign: "start", children: [_jsx(StackItem, { size: "fill", children: _jsxs(VStack, { gap: 1, children: [_jsx(Heading, { level: 3, children: "theorem studio" }), _jsx(Text, { type: "supporting", color: "secondary", children: `${project ? `${project.name} · ` : ''}@theoremjs/agents ${kernelVersion}` })] }) }), _jsx(SheetButton, { label: "Close sections", icon: IconX, sheet: null, setSheet: setSheet })] }), _jsx(StackItem, { size: "fill", children: _jsx(WorkspaceTreeLists, { tree: tree, draft: draft, onAddAgent: onAddAgent, listRef: listRef }) })] }) }));
1524
1524
  });
1525
+ /**
1526
+ * The studio's tree for a workspace, open on its `selected` node, where nothing changes anything:
1527
+ * a picture of the studio for a page that is not the studio, such as a home page. It writes no
1528
+ * storage and reports nothing.
1529
+ */
1530
+ export function StudioTreePreview({ workspace, kernelVersion, }) {
1531
+ const listRef = useRef(null);
1532
+ const selectedId = workspace.selected;
1533
+ const at = workspaceNodeRef(workspace, selectedId);
1534
+ const focus = at && 'agent' in at ? at.agent : (workspace.agents[0]?.key ?? '');
1535
+ const draft = libraryDraft(workspace, focus) ?? createBlankDraft();
1536
+ const still = () => { };
1537
+ const tree = {
1538
+ workspace,
1539
+ focus,
1540
+ selectedId,
1541
+ list: 'agents',
1542
+ ownsProviders: false,
1543
+ setList: still,
1544
+ onSelect: still,
1545
+ update: still,
1546
+ setDraft: still,
1547
+ reset: () => undefined,
1548
+ keys: null,
1549
+ };
1550
+ return (_jsx(StudioHostContext.Provider, { value: { kernelVersion }, children: _jsx(TreeColumn, { tree: tree, draft: draft, onAddAgent: still, listRef: listRef, setSheet: still }) }));
1551
+ }
1525
1552
  /**
1526
1553
  * The issue count, which goes to the next issue after the selected node and shows it there. Hidden
1527
1554
  * with none. It counts every issue, so what blocks a run or Save always has a way to it.