@theoremjs/studio 0.3.3 → 0.3.4-next.373.gab46e23
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/README.md +5 -5
- package/browser-engine.d.ts +1 -1
- package/browser-engine.js +1 -1
- package/browser-execution.d.ts +2 -2
- package/browser-execution.js +1 -1
- package/browser-live.d.ts +1 -1
- package/browser-transport.d.ts +1 -1
- package/browser-transport.js +1 -1
- package/installed.mjs +2 -2
- package/live-connection.d.ts +1 -1
- package/live-session-bridge.d.ts +1 -1
- package/live-session-bridge.js +2 -2
- package/package.json +9 -8
- package/page/assets/{Banner-Buiul23B.js → Banner-CKQFHXRj.js} +2 -2
- package/page/assets/{ContextMenu-Dw9_F5b0.js → ContextMenu-RWK1rYUn.js} +2 -2
- package/page/assets/{ToolResultCharts-CVlI3NkJ.js → ToolResultCharts-WgtTxD5t.js} +1 -1
- package/page/assets/{TraceInspector-TusXx3zZ.js → TraceInspector-BfIZnssQ.js} +1 -1
- package/page/assets/{TraceOverview-DrHQgMQO.js → TraceOverview-BprrhF2w.js} +1 -1
- package/page/assets/{_virtual_studio-type-sources-BwZOives.js → _virtual_studio-type-sources-DN0c88ZG.js} +1 -1
- package/page/assets/{browser-engine-BTOR18GA.js → browser-engine-CAENs3B6.js} +1 -1
- package/page/assets/{browser-transport-BEFsWdzI.js → browser-transport-BP9NWbxa.js} +3 -3
- package/page/assets/{embedding-space-view-CfQBPDxD.js → embedding-space-view-judaIj9T.js} +2 -2
- package/page/assets/{export-agent-BnlMWFTv.js → export-agent-WLZxVvG6.js} +3 -3
- package/page/assets/{guardrail-tester-DRsOgbwK.js → guardrail-tester-B6nZ87zd.js} +1 -1
- package/page/assets/{index-D2T8e_8Q.js → index-DS-hdSzr.js} +34 -34
- package/page/assets/{studio-code-pane-PndbSO1v.js → studio-code-pane-BLyK9cZ9.js} +3 -3
- package/page/assets/{studio-console-e6kqu38F.js → studio-console-DTivu8H4.js} +1 -1
- package/page/assets/{studio-decision-DFM0psog.js → studio-decision-BACHQW4n.js} +1 -1
- package/page/assets/{studio-embedding-4qgdJ4gh.js → studio-embedding-U84522AY.js} +2 -2
- package/page/assets/{studio-host-console-DajI604W.js → studio-host-console-CGTPZ8yJ.js} +2 -2
- package/page/assets/{studio-live-B1a0aWbl.js → studio-live-C_pybCeb.js} +1 -1
- package/page/assets/{studio-map-CdrEm07d.js → studio-map-CMrHu9vk.js} +1 -1
- package/page/assets/{studio-type-checker-DosSRFbd.js → studio-type-checker-DHsmQ4Du.js} +1 -1
- package/page/assets/{use-one-call-9e3o5vH-.js → use-one-call-Cm3BreW5.js} +1 -1
- package/page/index.html +4 -4
- package/runtime.d.ts +3 -3
- package/runtime.js +3 -3
- package/server/draft-decide.js +1 -1
- package/server/draft-embedding.js +1 -1
- package/server/draft-handler.d.ts +1 -1
- package/server/draft-handler.js +1 -1
- package/server/draft-probe.js +1 -1
- package/server/handler.js +1 -1
- package/server/live.js +1 -1
- package/server/test-connection.js +1 -1
- package/server/test-key.js +1 -1
- package/tool-schema.d.ts +1 -1
- package/tool-schema.js +1 -1
- package/transport.d.ts +1 -1
- package/transport.js +1 -1
- package/ui/lib/export-agent.js +3 -2
- package/ui/lib/project-traces.d.ts +1 -1
- package/ui/lib/studio-console.d.ts +1 -1
- package/ui/studio-compare.d.ts +1 -1
- package/ui/studio-compare.js +1 -1
- package/ui/studio-runner.js +1 -1
package/tool-schema.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonSchema } from '@theoremjs/
|
|
1
|
+
import { type JsonSchema } from '@theoremjs/web/client';
|
|
2
2
|
import { type ZodType } from 'zod';
|
|
3
3
|
export declare const DEFAULT_TOOL_INPUT_SCHEMA = "{\n \"type\": \"object\",\n \"properties\": {\n \"query\": { \"type\": \"string\" }\n },\n \"required\": [\"query\"]\n}";
|
|
4
4
|
export declare const DEFAULT_TOOL_OUTPUT_SCHEMA = "{\n \"type\": \"object\",\n \"properties\": {\n \"result\": { \"type\": \"string\" }\n },\n \"required\": [\"result\"]\n}";
|
package/tool-schema.js
CHANGED
package/transport.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { type TurnEvent } from '@theoremjs/agents';
|
|
8
8
|
import { type ProfileInterface } from '@theoremjs/agents/interface';
|
|
9
|
-
import { type ChatLineSink, type ConversationLine, type DecisionTransport, type EmbeddingTransport, type HostTransport, type HttpOptions, type MalformedEvent, type TheoremTransport, type TraceFeed, type TurnEventSink, type UnsupportedEvent } from '@theoremjs/
|
|
9
|
+
import { type ChatLineSink, type ConversationLine, type DecisionTransport, type EmbeddingTransport, type HostTransport, type HttpOptions, type MalformedEvent, type TheoremTransport, type TraceFeed, type TurnEventSink, type UnsupportedEvent } from '@theoremjs/web/client';
|
|
10
10
|
import { z } from 'zod';
|
|
11
11
|
import { type StudioRunPayload } from './run-payload.ts';
|
|
12
12
|
import type { StudioTraceLine } from './traces.ts';
|
package/transport.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { defineProfile, TheoremError, TURN_EVENT_SCHEMAS, traceRecordSchema, } from '@theoremjs/agents';
|
|
8
8
|
import { interfaceFromProfile } from '@theoremjs/agents/interface';
|
|
9
9
|
import { createToolRegistry } from '@theoremjs/agents/kernel';
|
|
10
|
-
import { CHAT_LINES, createTraceFeed, decisionAssets, decisionInterface, embeddingInterface, fetchConversation, fetchRewound, hostInterface, postDecision, postEmbedding, postJson, postNdjson, } from '@theoremjs/
|
|
10
|
+
import { CHAT_LINES, createTraceFeed, decisionAssets, decisionInterface, embeddingInterface, fetchConversation, fetchRewound, hostInterface, postDecision, postEmbedding, postJson, postNdjson, } from '@theoremjs/web/client';
|
|
11
11
|
import { z } from 'zod';
|
|
12
12
|
import { uncompiled } from "./compile.js";
|
|
13
13
|
import { clearStudioRunPayload, keptStudioRunIds, loadStudioRunPayload, } from "./run-payload.js";
|
package/ui/lib/export-agent.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { agentModulePath, importSpecifier, workspaceSource, } from "../../mod.js";
|
|
2
2
|
const PACKAGES = [
|
|
3
3
|
'@theoremjs/agents',
|
|
4
|
+
'@theoremjs/web',
|
|
4
5
|
'@theoremjs/react',
|
|
5
6
|
'zod',
|
|
6
7
|
'react',
|
|
@@ -58,7 +59,7 @@ function serverFile(agent, exportName, factory, mount, options) {
|
|
|
58
59
|
return {
|
|
59
60
|
path: 'route.ts',
|
|
60
61
|
code: `${[
|
|
61
|
-
`import { ${factory} } from '@theoremjs/
|
|
62
|
+
`import { ${factory} } from '@theoremjs/web/server';`,
|
|
62
63
|
"import './theorem';",
|
|
63
64
|
`import { ${moduleNames(agent).join(', ')} } from '${module}';`,
|
|
64
65
|
'',
|
|
@@ -305,7 +306,7 @@ ${briefQuestions(agent, stubs).join('\n')}
|
|
|
305
306
|
${turns
|
|
306
307
|
? `Install only what my answer about the UI needs:
|
|
307
308
|
- No UI: \`npm install @theoremjs/agents zod\`
|
|
308
|
-
- My own UI: \`npm install @theoremjs/agents @theoremjs/react zod react react-dom\`
|
|
309
|
+
- My own UI: \`npm install @theoremjs/agents @theoremjs/web @theoremjs/react zod react react-dom\`
|
|
309
310
|
- The package-prepared user interface: \`${INSTALL}\``
|
|
310
311
|
: `\`\`\`bash
|
|
311
312
|
${INSTALL}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TraceFeed } from '@theoremjs/
|
|
1
|
+
import type { TraceFeed } from '@theoremjs/web/client';
|
|
2
2
|
import type { StudioRunPayload } from '../../mod.ts';
|
|
3
3
|
import { type StudioActingAs } from '../../people.ts';
|
|
4
4
|
/** Whether the agent records traces, so the page can offer them: the rule every view reads. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TraceFeed } from '@theoremjs/
|
|
1
|
+
import type { TraceFeed } from '@theoremjs/web/client';
|
|
2
2
|
import type { StudioBrowserRuntime } from '../../browser.ts';
|
|
3
3
|
import type { StudioRunPayload } from '../../mod.ts';
|
|
4
4
|
/** What the builder preview and the standalone run tab hand a one-call console. */
|
package/ui/studio-compare.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type TraceFeed } from '@theoremjs/react/client';
|
|
2
1
|
import { type TheoremChatHandle } from '@theoremjs/react/ui';
|
|
2
|
+
import { type TraceFeed } from '@theoremjs/web/client';
|
|
3
3
|
import { type ReactNode, type Ref } from 'react';
|
|
4
4
|
import { type StudioWorkspace } from '../mod.ts';
|
|
5
5
|
import type { EditedAnswer, SaveRefusal } from '../server/save-wire.ts';
|
package/ui/studio-compare.js
CHANGED
|
@@ -8,8 +8,8 @@ import { StackItem } from '@astryxdesign/core/Stack';
|
|
|
8
8
|
import { Text } from '@astryxdesign/core/Text';
|
|
9
9
|
import { VStack } from '@astryxdesign/core/VStack';
|
|
10
10
|
import { IconLayoutSidebarLeftCollapse, IconLayoutSidebarLeftExpand } from '@tabler/icons-react';
|
|
11
|
-
import { createHttpTransport, createTraceFeed } from '@theoremjs/react/client';
|
|
12
11
|
import { ChatComposerBar, InPlace, PaneFailure, PaneLoading, TheoremChat, } from '@theoremjs/react/ui';
|
|
12
|
+
import { createHttpTransport, createTraceFeed } from '@theoremjs/web/client';
|
|
13
13
|
import { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState, useSyncExternalStore, } from 'react';
|
|
14
14
|
import { atStart } from "../mod.js";
|
|
15
15
|
import { useActingAs } from "./lib/acting-as.js";
|
package/ui/studio-runner.js
CHANGED
|
@@ -4,8 +4,8 @@ import { HStack } from '@astryxdesign/core/HStack';
|
|
|
4
4
|
import { Icon } from '@astryxdesign/core/Icon';
|
|
5
5
|
import { Token } from '@astryxdesign/core/Token';
|
|
6
6
|
import { IconKey } from '@tabler/icons-react';
|
|
7
|
-
import { createDecisionTransport, createEmbeddingTransport, createHostTransport, createHttpTransport, createTraceFeed, } from '@theoremjs/react/client';
|
|
8
7
|
import { PaneLoading, PaneState, TheoremChat, useLabels } from '@theoremjs/react/ui';
|
|
8
|
+
import { createDecisionTransport, createEmbeddingTransport, createHostTransport, createHttpTransport, createTraceFeed, } from '@theoremjs/web/client';
|
|
9
9
|
import { lazy, Suspense, useContext, useEffect, useMemo, useRef, useState, } from 'react';
|
|
10
10
|
import { createBrowserStudioTransport } from "../browser.js";
|
|
11
11
|
import { compileWorkspace, createStudioTransport, ON_OWN_KEYS, studioInterface, studioPageTools, workspaceRunAgent, } from "../mod.js";
|