@theoremjs/studio 0.3.4-next.779.g11cbf1e → 0.3.4-next.783.g4851c77
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/package.json +4 -4
- package/page/assets/{ConsoleFrame-BL1z2eD0.js → ConsoleFrame-BNH2OxJG.js} +1 -1
- package/page/assets/{MenuBottomSheet-Cj_m0FwL.js → MenuBottomSheet-B00O94yF.js} +1 -1
- package/page/assets/{SchemaFields-ps09Azfn.js → SchemaFields-DSusqM3w.js} +1 -1
- package/page/assets/{ToolResultCharts-BXsovSPy.js → ToolResultCharts-DidcWO45.js} +1 -1
- package/page/assets/{Toolbar-DYcMnO62.js → Toolbar-DwRdpCEX.js} +1 -1
- package/page/assets/{TraceInspector-Bre-_OOJ.js → TraceInspector-BPRGOoCJ.js} +1 -1
- package/page/assets/{TraceOverview-Cu11czzK.js → TraceOverview-JJqWfsgu.js} +1 -1
- package/page/assets/{browser-engine-Bem0sxvd.js → browser-engine-5NXQR8hN.js} +2 -2
- package/page/assets/{browser-transport-EFTTaxlW.js → browser-transport-CIuwHNyC.js} +2 -2
- package/page/assets/{export-agent-Vr27IYjU.js → export-agent-DiXzlTcJ.js} +1 -1
- package/page/assets/{guardrail-tester-C751r3bt.js → guardrail-tester-DexvuTYg.js} +1 -1
- package/page/assets/{index-D-vL6Brp.js → index-B3hz0uS2.js} +10 -10
- package/page/assets/{index-hzhWkDKG.css → index-Bl2XBXLS.css} +1 -1
- package/page/assets/{json-code-H5C9N1L2.js → json-code-0S1o1sIU.js} +1 -1
- package/page/assets/{prompt-row-Cvv0-wIe.js → prompt-row-D7EJQrdC.js} +1 -1
- package/page/assets/{studio-code-pane-DEwkKRs7.js → studio-code-pane-DQu_WBYd.js} +1 -1
- package/page/assets/{studio-console-DUEQORQA.js → studio-console-COJvjXIq.js} +1 -1
- package/page/assets/{studio-decision-1ZxlVBif.js → studio-decision-BM70i3Ks.js} +1 -1
- package/page/assets/{studio-embedding-jpaLvrIG.js → studio-embedding-B-Z1ZLHH.js} +1 -1
- package/page/assets/{studio-host-console-PexPeQ56.js → studio-host-console-JdV93_By.js} +2 -2
- package/page/assets/{studio-labels-BT3B-xe1.js → studio-labels-ComAvVr5.js} +1 -1
- package/page/assets/{studio-live-Oj8HFx3a.js → studio-live-DDp4N4eh.js} +1 -1
- package/page/assets/{studio-map-BcCwfeFt.js → studio-map-CoqHG3Ot.js} +1 -1
- package/page/assets/{studio-trace-replay-B6GcmpuZ.js → studio-trace-replay-CONS-UvX.js} +1 -1
- package/page/assets/{use-one-call-CZI_M4Bi.js → use-one-call-qoi4CthT.js} +1 -1
- package/page/assets/{use-second-ticker-GWBt83pd.css → use-second-ticker-B-V4bkIB.css} +1 -1
- package/page/index.html +6 -6
- package/server/kept-sessions.js +2 -5
- package/server/serve.js +6 -1
- package/ui/built/theme.css +3 -4
- package/ui/built/theorem-studio.js +3 -4
- package/ui/studio-theme.js +1 -2
- /package/page/assets/{use-second-ticker-DhbZ0Soz.js → use-second-ticker-D29e7ivl.js} +0 -0
package/page/index.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='7' fill='%23000'/%3E%3Cg transform='translate(4 4)' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4.5 18.5c2 0 3-1.2 4.2-3.4l2.6-5c1-1.9 2.1-3.1 4.2-3.1'/%3E%3Cpath d='M5.5 8.2c1.6-.9 3.2-.4 3.8 1.6l2.3 6.6c.6 1.7 2.1 2.4 3.9 1.7'/%3E%3Ccircle cx='19.5' cy='4.5' r='1.6' fill='%23fff' stroke='none'/%3E%3C/g%3E%3C/svg%3E"
|
|
11
11
|
/>
|
|
12
12
|
<title>theorem studio</title>
|
|
13
|
-
<script type="module" crossorigin src="/studio/assets/index-
|
|
13
|
+
<script type="module" crossorigin src="/studio/assets/index-B3hz0uS2.js"></script>
|
|
14
14
|
<link rel="modulepreload" crossorigin href="/studio/assets/rolldown-runtime-hePW80VL.js">
|
|
15
15
|
<link rel="modulepreload" crossorigin href="/studio/assets/themeProps-3IqahpCr.js">
|
|
16
16
|
<link rel="modulepreload" crossorigin href="/studio/assets/tokens.stylex-BpCwr7Mf.js">
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
<link rel="modulepreload" crossorigin href="/studio/assets/stub-CJG-5zBe.js">
|
|
70
70
|
<link rel="modulepreload" crossorigin href="/studio/assets/reader-SzTjS7rw.js">
|
|
71
71
|
<link rel="modulepreload" crossorigin href="/studio/assets/registry-BrmnEhgs.js">
|
|
72
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/browser-transport-
|
|
72
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/browser-transport-CIuwHNyC.js">
|
|
73
73
|
<link rel="modulepreload" crossorigin href="/studio/assets/focusReturn-CTppP2k0.js">
|
|
74
74
|
<link rel="modulepreload" crossorigin href="/studio/assets/isRenderable-DHkzpAoQ.js">
|
|
75
75
|
<link rel="modulepreload" crossorigin href="/studio/assets/labels-provider-BcEDhptf.js">
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
<link rel="modulepreload" crossorigin href="/studio/assets/turn-client-eM8VIbMd.js">
|
|
89
89
|
<link rel="modulepreload" crossorigin href="/studio/assets/Badge-D78MvW22.js">
|
|
90
90
|
<link rel="modulepreload" crossorigin href="/studio/assets/CollapsibleGroup-Dfbkt6Hp.js">
|
|
91
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/studio-labels-
|
|
91
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/studio-labels-ComAvVr5.js">
|
|
92
92
|
<link rel="modulepreload" crossorigin href="/studio/assets/workspace-3igDw3Tv.js">
|
|
93
93
|
<link rel="modulepreload" crossorigin href="/studio/assets/lent-keys-C32ems-I.js">
|
|
94
94
|
<link rel="modulepreload" crossorigin href="/studio/assets/editors-BJX_S59A.js">
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
<link rel="modulepreload" crossorigin href="/studio/assets/people-CIsR0-5R.js">
|
|
97
97
|
<link rel="modulepreload" crossorigin href="/studio/assets/studio-session-ClF2iNCX.js">
|
|
98
98
|
<link rel="modulepreload" crossorigin href="/studio/assets/EmptyState-C_uF9Wyj.js">
|
|
99
|
-
<link rel="modulepreload" crossorigin href="/studio/assets/use-second-ticker-
|
|
99
|
+
<link rel="modulepreload" crossorigin href="/studio/assets/use-second-ticker-D29e7ivl.js">
|
|
100
100
|
<link rel="modulepreload" crossorigin href="/studio/assets/menuItemRoles-Bod0knkp.js">
|
|
101
101
|
<link rel="modulepreload" crossorigin href="/studio/assets/useMenuPress-DPpqa6F7.js">
|
|
102
102
|
<link rel="modulepreload" crossorigin href="/studio/assets/useAdaptivePresentation-Bma4-u1a.js">
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
<link rel="modulepreload" crossorigin href="/studio/assets/useKeyboardHint-BIqbBlHw.js">
|
|
106
106
|
<link rel="modulepreload" crossorigin href="/studio/assets/ListItem-DrfoLYVQ.js">
|
|
107
107
|
<link rel="modulepreload" crossorigin href="/studio/assets/MenuBottomSheetActionList-CG8160ZS.js">
|
|
108
|
-
<link rel="stylesheet" crossorigin href="/studio/assets/use-second-ticker-
|
|
109
|
-
<link rel="stylesheet" crossorigin href="/studio/assets/index-
|
|
108
|
+
<link rel="stylesheet" crossorigin href="/studio/assets/use-second-ticker-B-V4bkIB.css">
|
|
109
|
+
<link rel="stylesheet" crossorigin href="/studio/assets/index-Bl2XBXLS.css">
|
|
110
110
|
<style>html{color-scheme:dark}html,body{margin:0;background:#000}html[data-boot-pending],html[data-boot-pending] body{background:#262626}html[data-boot-pending] .astryx-app-shell{height:100dvh}html[data-boot-pending] .astryx-app-shell-sidenav{position:absolute;inset-block:0;inset-inline-start:0;z-index:0;width:3rem}html[data-boot-pending] #astryx-app-shell-main{position:relative;z-index:1;width:100%;height:100%;max-width:none;margin:0;border-radius:0;clip-path:none;background:#262626;color:#fff}html[data-boot-pending] #astryx-app-shell-main>:not([data-boot]){visibility:hidden}html[data-boot-pending] [data-boot]{position:absolute;inset:0;z-index:2;display:grid;place-items:center;background:#262626;color:#fff}</style>
|
|
111
111
|
<noscript> <style>html[data-boot-pending],html[data-boot-pending] body{background:#000}html[data-boot-pending] #astryx-app-shell-main>:not([data-boot]){visibility:visible !important}[data-boot]{display:none !important}</style>
|
|
112
112
|
</noscript>
|
package/server/kept-sessions.js
CHANGED
|
@@ -11,11 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { createMemorySessionStore, } from '@theoremjs/web/server';
|
|
13
13
|
export function createKeptSessions() {
|
|
14
|
-
// why: a session here lasts as long as the studio does, so
|
|
15
|
-
const store = createMemorySessionStore(
|
|
16
|
-
ttlMs: Number.MAX_SAFE_INTEGER,
|
|
17
|
-
maxSessions: Number.MAX_SAFE_INTEGER,
|
|
18
|
-
});
|
|
14
|
+
// why: a session here lasts as long as the studio does, so the store takes no limits.
|
|
15
|
+
const store = createMemorySessionStore();
|
|
19
16
|
const token = crypto.randomUUID();
|
|
20
17
|
/** Each session's detached calls, by operation, with the load each runs in. */
|
|
21
18
|
const detached = new Map();
|
package/server/serve.js
CHANGED
|
@@ -112,8 +112,11 @@ async function loadProject(edits) {
|
|
|
112
112
|
await input.write(new TextEncoder().encode(JSON.stringify(load)));
|
|
113
113
|
await input.close();
|
|
114
114
|
let printed = '';
|
|
115
|
+
let started = false;
|
|
115
116
|
const errors = drain(process.stderr, (text) => {
|
|
116
|
-
|
|
117
|
+
// why: only a project that fails to start shows this, and a running project prints without end.
|
|
118
|
+
if (!started)
|
|
119
|
+
printed += text;
|
|
117
120
|
Deno.stderr.writeSync(new TextEncoder().encode(text));
|
|
118
121
|
});
|
|
119
122
|
let ready = () => { };
|
|
@@ -131,6 +134,8 @@ async function loadProject(edits) {
|
|
|
131
134
|
// The page shows this, so the terminal's colours come out.
|
|
132
135
|
throw new Error(stripVTControlCharacters(printed).trim() || 'The project did not start.');
|
|
133
136
|
}
|
|
137
|
+
started = true;
|
|
138
|
+
printed = '';
|
|
134
139
|
const origin = `http://127.0.0.1:${childPort}`;
|
|
135
140
|
const description = await (await fetch(origin + STUDIO_BASE)).json();
|
|
136
141
|
return { id, process, origin, description };
|
package/ui/built/theme.css
CHANGED
|
@@ -253,9 +253,9 @@
|
|
|
253
253
|
--radius-container: 0.75rem;
|
|
254
254
|
--radius-page: 1.75rem;
|
|
255
255
|
--radius-full: 9999px;
|
|
256
|
-
--shadow-low: 0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 25%)), 0 4px 8px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 40%))
|
|
257
|
-
--shadow-med: 0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 35%)), 0 4px 12px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%))
|
|
258
|
-
--shadow-high: 0 4px 6px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), 0 12px 24px light-dark(oklch(0 0 0 / 15%), oklch(0 0 0 / 70%))
|
|
256
|
+
--shadow-low: 0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 25%)), 0 4px 8px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 40%));
|
|
257
|
+
--shadow-med: 0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 35%)), 0 4px 12px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%));
|
|
258
|
+
--shadow-high: 0 4px 6px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), 0 12px 24px light-dark(oklch(0 0 0 / 15%), oklch(0 0 0 / 70%));
|
|
259
259
|
--shadow-inset-hover: inset 0px 0px 0px 2px #0074e24D;
|
|
260
260
|
--shadow-inset-selected: inset 0px 0px 0px 2px #0074e280;
|
|
261
261
|
--shadow-inset-success: inset 0px 0px 0px 2px #2f7d334D;
|
|
@@ -672,7 +672,6 @@
|
|
|
672
672
|
--text-heading-4-size: var(--font-size-base);
|
|
673
673
|
--text-heading-5-size: var(--font-size-sm);
|
|
674
674
|
--text-heading-6-size: var(--font-size-xs);
|
|
675
|
-
box-shadow: 0 4px 6px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), 0 12px 24px light-dark(oklch(0 0 0 / 15%), oklch(0 0 0 / 70%));
|
|
676
675
|
}
|
|
677
676
|
|
|
678
677
|
.astryx-dialog::backdrop {
|
|
@@ -187,9 +187,9 @@ export const theoremStudioTheme = {
|
|
|
187
187
|
"--radius-container": "0.75rem",
|
|
188
188
|
"--radius-page": "1.75rem",
|
|
189
189
|
"--radius-full": "9999px",
|
|
190
|
-
"--shadow-low": "0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 25%)), 0 4px 8px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 40%))
|
|
191
|
-
"--shadow-med": "0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 35%)), 0 4px 12px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%))
|
|
192
|
-
"--shadow-high": "0 4px 6px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), 0 12px 24px light-dark(oklch(0 0 0 / 15%), oklch(0 0 0 / 70%))
|
|
190
|
+
"--shadow-low": "0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 25%)), 0 4px 8px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 40%))",
|
|
191
|
+
"--shadow-med": "0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 35%)), 0 4px 12px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%))",
|
|
192
|
+
"--shadow-high": "0 4px 6px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), 0 12px 24px light-dark(oklch(0 0 0 / 15%), oklch(0 0 0 / 70%))",
|
|
193
193
|
"--shadow-inset-hover": "inset 0px 0px 0px 2px #0074e24D",
|
|
194
194
|
"--shadow-inset-selected": "inset 0px 0px 0px 2px #0074e280",
|
|
195
195
|
"--shadow-inset-success": "inset 0px 0px 0px 2px #2f7d334D",
|
|
@@ -588,7 +588,6 @@ export const theoremStudioTheme = {
|
|
|
588
588
|
"--text-heading-4-size": "var(--font-size-base)",
|
|
589
589
|
"--text-heading-5-size": "var(--font-size-sm)",
|
|
590
590
|
"--text-heading-6-size": "var(--font-size-xs)",
|
|
591
|
-
"boxShadow": "0 4px 6px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), 0 12px 24px light-dark(oklch(0 0 0 / 15%), oklch(0 0 0 / 70%))",
|
|
592
591
|
"::backdrop": {
|
|
593
592
|
"backgroundColor": "light-dark(#00000080, #000000BF)"
|
|
594
593
|
}
|
package/ui/studio-theme.js
CHANGED
|
@@ -31,7 +31,7 @@ export const studioTheme = defineTheme({
|
|
|
31
31
|
components: {
|
|
32
32
|
// why: a dialog is short and sits at Astryx's padding, so the studio's larger type crowds it.
|
|
33
33
|
// It keeps Astryx's own ladder; the `--text-*` tokens resolve at the root, so they are restated
|
|
34
|
-
// here to read it.
|
|
34
|
+
// here to read it. The page behind goes further back than neutral's scrim.
|
|
35
35
|
dialog: {
|
|
36
36
|
base: {
|
|
37
37
|
'--font-size-xs': '0.625rem',
|
|
@@ -51,7 +51,6 @@ export const studioTheme = defineTheme({
|
|
|
51
51
|
'--text-heading-4-size': 'var(--font-size-base)',
|
|
52
52
|
'--text-heading-5-size': 'var(--font-size-sm)',
|
|
53
53
|
'--text-heading-6-size': 'var(--font-size-xs)',
|
|
54
|
-
boxShadow: '0 4px 6px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), 0 12px 24px light-dark(oklch(0 0 0 / 15%), oklch(0 0 0 / 70%))',
|
|
55
54
|
'::backdrop': { backgroundColor: 'light-dark(#00000080, #000000BF)' },
|
|
56
55
|
},
|
|
57
56
|
},
|
|
File without changes
|