@theoremjs/studio 0.3.4-next.528.g44c76f9 → 0.3.4-next.538.gb556343
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 +4 -1
- package/browser-connection.js +1 -1
- package/compile-workspace.js +26 -7
- package/compile.js +13 -2
- package/{example.d.ts → cookbooks/catalog.d.ts} +35 -5
- package/cookbooks/catalog.js +686 -0
- package/cookbooks/checks.d.ts +10 -0
- package/cookbooks/checks.js +93 -0
- package/cookbooks/exchanges.d.ts +11 -0
- package/cookbooks/exchanges.js +13 -0
- package/cookbooks/fixtures/research.trace.json +4455 -0
- package/cookbooks/mod.d.ts +8 -0
- package/cookbooks/mod.js +5 -0
- package/cookbooks/project.d.ts +66 -0
- package/cookbooks/project.js +195 -0
- package/cookbooks/providers.d.ts +165 -0
- package/cookbooks/providers.js +289 -0
- package/cookbooks/sources.d.ts +10 -0
- package/cookbooks/sources.js +125 -0
- package/cookbooks/tools.d.ts +23 -0
- package/{concierge-demo.js → cookbooks/tools.js} +428 -42
- package/map.js +3 -1
- package/mod.d.ts +3 -3
- package/mod.js +2 -3
- package/package.json +4 -4
- package/page/assets/{Banner-BhKnM-76.js → Banner--7kKAcbR.js} +2 -2
- package/page/assets/{ConsoleFrame-CnGU8SiE.js → ConsoleFrame-Df-1k5rx.js} +1 -1
- package/page/assets/{ContextMenu-G2oYmfwG.js → ContextMenu-CLru8q9q.js} +2 -2
- package/page/assets/{ToolResultCharts-DpaHoQFj.js → ToolResultCharts-Cly-P3dx.js} +1 -1
- package/page/assets/{TraceInspector-Bo0PzFVf.js → TraceInspector-BFWqiEo8.js} +1 -1
- package/page/assets/{TraceOverview-CM-sd2zM.js → TraceOverview-DQxChC-h.js} +1 -1
- package/page/assets/{_virtual_studio-type-sources-DVbxNwnP.js → _virtual_studio-type-sources-C1mRXxbj.js} +29 -250
- package/page/assets/browser-engine-CNaADy_l.js +11 -0
- package/page/assets/browser-transport-C0uHtl3C.js +47 -0
- package/page/assets/{compile-egress-BRGW9qfO.js → compile-egress-C3etX-3o.js} +1 -1
- package/page/assets/{crypto-BAY2nUlu.js → crypto-Dd6XxhqK.js} +1 -1
- package/page/assets/{encode-files-BSTfq_Gp.js → encode-files-CiyHxnUC.js} +1 -1
- package/page/assets/{export-agent-CtklkKZk.js → export-agent-DqNoCFuj.js} +2 -2
- package/page/assets/{guardrail-tester-BXROlU1L.js → guardrail-tester-5LbFKh-H.js} +1 -1
- package/page/assets/host-patterns-F-KZIzkF.js +1 -0
- package/page/assets/{index-DbHspDC4.js → index-S12ARX87.js} +120 -72
- package/page/assets/{live-ingress-qi-y5uvH.js → live-ingress-OuSlQ6q7.js} +1 -1
- package/page/assets/{live-messages-DIf_R-NT.js → live-messages-BNhCuiuF.js} +1 -1
- package/page/assets/reader-BT_YeHdq.js +7 -0
- package/page/assets/shaped-data-DYOBdvLJ.js +20 -0
- package/page/assets/{stub-4m0tKRlG.js → stub-DPcZtI0s.js} +78 -40
- package/page/assets/{studio-code-pane-Dt3MWPBE.js → studio-code-pane-BXOCuMNp.js} +3 -3
- package/page/assets/{studio-console-4PMBDYuu.js → studio-console-AcvRLSDp.js} +1 -1
- package/page/assets/{studio-decision-BiN_FO02.js → studio-decision-Cl6wplXz.js} +1 -1
- package/page/assets/{studio-embedding-C7gIUtxM.js → studio-embedding-BfFLDsco.js} +1 -1
- package/page/assets/{studio-host-console-DOBHkxDj.js → studio-host-console-BlkqZDuc.js} +2 -2
- package/page/assets/{studio-labels-Dh_rsQs7.js → studio-labels-Z-P3w3-t.js} +1 -1
- package/page/assets/{studio-live-xPsQmJyQ.js → studio-live-C5tTdkWn.js} +1 -1
- package/page/assets/studio-map-Ng4hX_Zw.js +1 -0
- package/page/assets/studio-trace-replay-hz4210Sc.js +2 -0
- package/page/assets/{studio-type-checker-CHFs7A7H.js → studio-type-checker-B5DVxAZ0.js} +1 -1
- package/page/assets/tool-schema-CxLtS_Zt.js +17 -0
- package/page/assets/{trace-record-D9wgX8kq.js → trace-record-B2MF8flo.js} +1 -1
- package/page/assets/tree-Bi2FOU_h.js +3 -0
- package/page/assets/{turn-client-BWO4ocVM.js → turn-client-BCi5WnI6.js} +2 -2
- package/page/assets/types-s-3wFTyD.js +1 -0
- package/page/assets/{use-one-call-ApIuuZX3.js → use-one-call-JRMfBLt2.js} +1 -1
- package/page/assets/workspace-BiCkglEt.js +1 -0
- package/page/index.html +17 -17
- package/policy.js +1 -1
- package/registrations.d.ts +7 -1
- package/replay.d.ts +11 -0
- package/replay.js +67 -11
- package/runtime-scope.js +27 -3
- package/server/draft-decide.d.ts +1 -1
- package/source.js +2 -1
- package/stub.js +1 -1
- package/surface.js +6 -3
- package/tools.js +12 -6
- package/types.d.ts +2 -0
- package/ui/lib/studio-examples.d.ts +6 -31
- package/ui/lib/studio-examples.js +30 -15
- package/ui/lib/studio-open.d.ts +4 -1
- package/ui/lib/studio-open.js +6 -5
- package/ui/lib/tree-map-layout.js +9 -1
- package/ui/profile-editor.js +9 -8
- package/ui/studio-screen.js +30 -18
- package/workspace.js +8 -2
- package/concierge-demo.d.ts +0 -17
- package/example.js +0 -363
- package/page/assets/browser-engine-BJYQz5d_.js +0 -11
- package/page/assets/browser-transport-YKpXhacP.js +0 -47
- package/page/assets/host-patterns-cSf1U25G.js +0 -1
- package/page/assets/reader-BkaAkeh0.js +0 -7
- package/page/assets/shaped-data-C4jsvipW.js +0 -20
- package/page/assets/studio-map-Cc4_9fe9.js +0 -1
- package/page/assets/studio-trace-replay-D5JoQXyY.js +0 -2
- package/page/assets/tool-schema-DpbtSZtQ.js +0 -17
- package/page/assets/tree-0OoOeHfS.js +0 -3
- package/page/assets/types-BRZU5tBz.js +0 -1
- package/page/assets/workspace-DJBP4Adw.js +0 -1
|
@@ -5,8 +5,17 @@ const DEMO_VOICE_ACCEPT = VOICE_ACCEPT_MIMES.filter((mime) => mime === 'audio/*'
|
|
|
5
5
|
const DEMO_CLIENT_HEADERS = `{
|
|
6
6
|
"User-Agent": "TheoremStudio/1.0 (travel demo; +https://github.com/masudl-hub/theoremai)"
|
|
7
7
|
}`;
|
|
8
|
-
const
|
|
9
|
-
|
|
8
|
+
const GITHUB_RAW_HEADERS = `{
|
|
9
|
+
"Accept": "application/vnd.github.raw",
|
|
10
|
+
"User-Agent": "TheoremStudio/1.0 (research scout; +https://github.com/masudl-hub/theoremai)"
|
|
11
|
+
}`;
|
|
12
|
+
export const DISCOVER_LOADED = [
|
|
13
|
+
'get_cat_fact',
|
|
14
|
+
'tell_joke',
|
|
15
|
+
'get_advice',
|
|
16
|
+
'random_dog_image',
|
|
17
|
+
];
|
|
18
|
+
/** Sample inputs for HTTP and MCP cookbook tools (connection tests and smoke scripts). */
|
|
10
19
|
export const DEMO_HTTP_SAMPLE_INPUT = {
|
|
11
20
|
geocode_city: { name: 'Paris' },
|
|
12
21
|
search_places: { q: 'Paris', limit: 1 },
|
|
@@ -24,25 +33,28 @@ export const DEMO_HTTP_SAMPLE_INPUT = {
|
|
|
24
33
|
tell_joke: {},
|
|
25
34
|
get_advice: {},
|
|
26
35
|
random_dog_image: {},
|
|
36
|
+
list_arxiv: { search_query: 'all:"episodic memory" AND all:"language model"' },
|
|
37
|
+
search_models: { search: 'retrieval embedding' },
|
|
38
|
+
search_datasets: { search: 'long context memory' },
|
|
39
|
+
read_model_card: {
|
|
40
|
+
owner: 'sentence-transformers',
|
|
41
|
+
name: 'all-MiniLM-L6-v2',
|
|
42
|
+
question: 'What is the embedding dimension?',
|
|
43
|
+
},
|
|
44
|
+
read_dataset_card: {
|
|
45
|
+
owner: 'THUDM',
|
|
46
|
+
name: 'LongBench',
|
|
47
|
+
question: 'What context lengths are tested?',
|
|
48
|
+
},
|
|
49
|
+
search_github: { q: 'llm episodic memory' },
|
|
50
|
+
read_readme: { owner: 'mem0ai', repo: 'mem0', question: 'How are memories stored?' },
|
|
27
51
|
};
|
|
28
52
|
export function demoHttpSampleInput(toolName) {
|
|
29
53
|
return DEMO_HTTP_SAMPLE_INPUT[toolName];
|
|
30
54
|
}
|
|
31
|
-
/** Comma-separated hosts for guardrails.
|
|
32
|
-
export const DEMO_ALLOWED_HOSTS = 'nominatim.openstreetmap.org, geocoding-api.open-meteo.com, api.open-meteo.com, api.frankfurter.dev, api.sunrise-sunset.org, api.zippopotam.us, en.wikipedia.org, archive.org, pokeapi.co, dog.ceo, api.adviceslip.com, catfact.ninja, official-joke-api.appspot.com, mcp.deepwiki.com, mcp.context7.com, learn.microsoft.com, docs.mcp.cloudflare.com, knowledge-mcp.global.api.aws, huggingface.co, mcp.docs.astro.build, mcp.exa.ai, raw.githubusercontent.com, registry.npmjs.org';
|
|
33
|
-
export const
|
|
34
|
-
|
|
35
|
-
Communication Standards:
|
|
36
|
-
- Readable Formatting: Use markdown where it helps the reader: short headings, bullet lists, bold for key names, and tables for side-by-side comparisons.
|
|
37
|
-
- Adaptive Pacing: Deliver high-signal, concise answers. Avoid overwhelming monologues; provide the immediate insight or recommendation first, then offer a natural next step.
|
|
38
|
-
|
|
39
|
-
Tool & Fact Grounding:
|
|
40
|
-
- Absolute Grounding: Ground all dynamic facts (weather, currency conversions, distances, geography, destination research) using available tools before answering. Never invent live data.
|
|
41
|
-
- Silent Execution: Never narrate tool calls, announce function names, or reference underlying APIs. Seamlessly integrate verified findings into your response.
|
|
42
|
-
- Complete Resolution: Execute multi-step tool chains silently to completion before delivering the synthesized answer.
|
|
43
|
-
|
|
44
|
-
Multimodal Understanding:
|
|
45
|
-
- Immediately extract actionable constraints (dates, flight times, locations, budgets) from provided images, documents, tickets, or audio, and weave them directly into your response.`;
|
|
55
|
+
/** Comma-separated hosts for guardrails.network.allowedHosts across the cookbook graphs. */
|
|
56
|
+
export const DEMO_ALLOWED_HOSTS = 'nominatim.openstreetmap.org, geocoding-api.open-meteo.com, api.open-meteo.com, api.frankfurter.dev, api.sunrise-sunset.org, api.zippopotam.us, en.wikipedia.org, archive.org, pokeapi.co, dog.ceo, api.adviceslip.com, catfact.ninja, official-joke-api.appspot.com, mcp.deepwiki.com, mcp.context7.com, learn.microsoft.com, docs.mcp.cloudflare.com, knowledge-mcp.global.api.aws, huggingface.co, mcp.docs.astro.build, mcp.exa.ai, raw.githubusercontent.com, registry.npmjs.org, export.arxiv.org, api.github.com';
|
|
57
|
+
export const RESEARCH_ALLOWED_HOSTS = 'mcp.exa.ai, export.arxiv.org, huggingface.co, api.github.com, raw.githubusercontent.com, mcp.context7.com, mcp.deepwiki.com';
|
|
46
58
|
export function demoInputsSpec() {
|
|
47
59
|
return {
|
|
48
60
|
text: true,
|
|
@@ -53,7 +65,253 @@ export function demoInputsSpec() {
|
|
|
53
65
|
maxTurnBytes: 26_214_400,
|
|
54
66
|
};
|
|
55
67
|
}
|
|
56
|
-
const
|
|
68
|
+
const QUESTION_PROPERTY = `"question": { "type": "string", "minLength": 1, "description": "What you need from this source, as one specific question.", "examples": ["What datasets are evaluated?"] }`;
|
|
69
|
+
const COOKBOOK_TOOL_SPECS = [
|
|
70
|
+
// --- Research Scout tools (Exa, arXiv, Hugging Face, GitHub, Context7, DeepWiki) ---
|
|
71
|
+
{
|
|
72
|
+
id: 'tool-read-pages',
|
|
73
|
+
data: {
|
|
74
|
+
toolName: 'read_pages',
|
|
75
|
+
activity: 'Reading {urls.0}',
|
|
76
|
+
activityPast: `when urls.length is 1: Read {urls.0}
|
|
77
|
+
Read {urls.length} pages
|
|
78
|
+
Read pages`,
|
|
79
|
+
activityFailed: 'Could not read {urls.0|that page}',
|
|
80
|
+
request: 'read {urls.0}',
|
|
81
|
+
toolType: 'mcp',
|
|
82
|
+
description: 'Read up to three web pages by URL via Exa. Pass the specific question you are reading them for.',
|
|
83
|
+
category: 'research',
|
|
84
|
+
access: 'read-only',
|
|
85
|
+
permission: 'auto',
|
|
86
|
+
loadTier: 'T0',
|
|
87
|
+
paths: ['*'],
|
|
88
|
+
serverUrl: 'https://mcp.exa.ai/mcp',
|
|
89
|
+
mcpToolName: 'web_fetch_exa',
|
|
90
|
+
inputJson: `{
|
|
91
|
+
"type": "object",
|
|
92
|
+
"properties": {
|
|
93
|
+
"urls": { "type": "array", "items": { "type": "string", "format": "uri" }, "minItems": 1, "maxItems": 3, "description": "Web page URLs to read", "examples": [["https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2"]] },
|
|
94
|
+
"maxCharacters": { "type": "integer", "maximum": 8000, "description": "Max characters per page", "examples": [8000] },
|
|
95
|
+
${QUESTION_PROPERTY}
|
|
96
|
+
},
|
|
97
|
+
"required": ["urls", "question"]
|
|
98
|
+
}`,
|
|
99
|
+
outputJson: `{ "type": "string", "description": "Extracted passages from the requested pages" }`,
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: 'tool-list-arxiv',
|
|
104
|
+
data: {
|
|
105
|
+
toolName: 'list_arxiv',
|
|
106
|
+
activity: 'Searching arXiv for {search_query}',
|
|
107
|
+
activityPast: 'Searched arXiv for {search_query}',
|
|
108
|
+
activityFailed: 'Could not search arXiv for {search_query|that query}',
|
|
109
|
+
request: 'search arXiv for {search_query}',
|
|
110
|
+
toolType: 'http',
|
|
111
|
+
description: 'Fetch the newest arXiv submissions matching an arXiv query (e.g. all:"episodic memory" AND all:"language model").',
|
|
112
|
+
category: 'research',
|
|
113
|
+
access: 'read-only',
|
|
114
|
+
permission: 'auto',
|
|
115
|
+
loadTier: 'T0',
|
|
116
|
+
paths: ['*'],
|
|
117
|
+
endpoint: 'https://export.arxiv.org/api/query?sortBy=submittedDate&sortOrder=descending&max_results=10',
|
|
118
|
+
method: 'GET',
|
|
119
|
+
queryParams: ['search_query'],
|
|
120
|
+
inputJson: `{
|
|
121
|
+
"type": "object",
|
|
122
|
+
"properties": {
|
|
123
|
+
"search_query": { "type": "string", "minLength": 1, "description": "arXiv query expression", "examples": ["all:\\"episodic memory\\" AND all:\\"language model\\""] }
|
|
124
|
+
},
|
|
125
|
+
"required": ["search_query"]
|
|
126
|
+
}`,
|
|
127
|
+
outputJson: `{ "type": "string", "description": "Atom XML feed of matching arXiv preprints" }`,
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
id: 'tool-search-models',
|
|
132
|
+
data: {
|
|
133
|
+
toolName: 'search_models',
|
|
134
|
+
activity: 'Searching Hugging Face models for {search}',
|
|
135
|
+
activityPast: `Found {length} hits for {search}
|
|
136
|
+
Found hits for {search|that query}`,
|
|
137
|
+
activityFailed: 'Could not search models for {search|that query}',
|
|
138
|
+
request: 'search Hugging Face models for {search}',
|
|
139
|
+
toolType: 'http',
|
|
140
|
+
description: 'Search Hugging Face Hub models, most recently modified first.',
|
|
141
|
+
category: 'research',
|
|
142
|
+
access: 'read-only',
|
|
143
|
+
permission: 'auto',
|
|
144
|
+
loadTier: 'T0',
|
|
145
|
+
paths: ['*'],
|
|
146
|
+
endpoint: 'https://huggingface.co/api/models?sort=lastModified&direction=-1&limit=15',
|
|
147
|
+
method: 'GET',
|
|
148
|
+
queryParams: ['search'],
|
|
149
|
+
inputJson: `{
|
|
150
|
+
"type": "object",
|
|
151
|
+
"properties": {
|
|
152
|
+
"search": { "type": "string", "minLength": 1, "description": "Model search terms", "examples": ["retrieval embedding"] }
|
|
153
|
+
},
|
|
154
|
+
"required": ["search"]
|
|
155
|
+
}`,
|
|
156
|
+
outputJson: `{ "type": "array", "items": { "type": "object" } }`,
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
id: 'tool-search-datasets',
|
|
161
|
+
data: {
|
|
162
|
+
toolName: 'search_datasets',
|
|
163
|
+
activity: 'Searching Hugging Face datasets for {search}',
|
|
164
|
+
activityPast: `Found {length} hits for {search}
|
|
165
|
+
Found hits for {search|that query}`,
|
|
166
|
+
activityFailed: 'Could not search datasets for {search|that query}',
|
|
167
|
+
request: 'search Hugging Face datasets for {search}',
|
|
168
|
+
toolType: 'http',
|
|
169
|
+
description: 'Search Hugging Face Hub datasets, most recently modified first.',
|
|
170
|
+
category: 'research',
|
|
171
|
+
access: 'read-only',
|
|
172
|
+
permission: 'auto',
|
|
173
|
+
loadTier: 'T0',
|
|
174
|
+
paths: ['*'],
|
|
175
|
+
endpoint: 'https://huggingface.co/api/datasets?sort=lastModified&direction=-1&limit=15',
|
|
176
|
+
method: 'GET',
|
|
177
|
+
queryParams: ['search'],
|
|
178
|
+
inputJson: `{
|
|
179
|
+
"type": "object",
|
|
180
|
+
"properties": {
|
|
181
|
+
"search": { "type": "string", "minLength": 1, "description": "Dataset search terms", "examples": ["long context memory"] }
|
|
182
|
+
},
|
|
183
|
+
"required": ["search"]
|
|
184
|
+
}`,
|
|
185
|
+
outputJson: `{ "type": "array", "items": { "type": "object" } }`,
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
id: 'tool-read-model-card',
|
|
190
|
+
data: {
|
|
191
|
+
toolName: 'read_model_card',
|
|
192
|
+
activity: 'Reading model card {owner}/{name}',
|
|
193
|
+
activityPast: 'Read model card {owner}/{name}',
|
|
194
|
+
activityFailed: 'Could not read model card {owner}/{name}',
|
|
195
|
+
request: 'read model card {owner}/{name}',
|
|
196
|
+
toolType: 'http',
|
|
197
|
+
description: 'Read a Hugging Face model card (README.md) by owner and model name.',
|
|
198
|
+
category: 'research',
|
|
199
|
+
access: 'read-only',
|
|
200
|
+
permission: 'auto',
|
|
201
|
+
loadTier: 'T0',
|
|
202
|
+
paths: ['*'],
|
|
203
|
+
endpoint: 'https://huggingface.co/{owner}/{name}/raw/main/README.md',
|
|
204
|
+
method: 'GET',
|
|
205
|
+
pathParams: ['owner', 'name'],
|
|
206
|
+
inputJson: `{
|
|
207
|
+
"type": "object",
|
|
208
|
+
"properties": {
|
|
209
|
+
"owner": { "type": "string", "description": "Hub organisation or user", "examples": ["sentence-transformers"] },
|
|
210
|
+
"name": { "type": "string", "description": "Model repository name", "examples": ["all-MiniLM-L6-v2"] },
|
|
211
|
+
${QUESTION_PROPERTY}
|
|
212
|
+
},
|
|
213
|
+
"required": ["owner", "name", "question"]
|
|
214
|
+
}`,
|
|
215
|
+
outputJson: `{ "type": "string", "description": "Model card Markdown" }`,
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
id: 'tool-read-dataset-card',
|
|
220
|
+
data: {
|
|
221
|
+
toolName: 'read_dataset_card',
|
|
222
|
+
activity: 'Reading dataset card {owner}/{name}',
|
|
223
|
+
activityPast: 'Read dataset card {owner}/{name}',
|
|
224
|
+
activityFailed: 'Could not read dataset card {owner}/{name}',
|
|
225
|
+
request: 'read dataset card {owner}/{name}',
|
|
226
|
+
toolType: 'http',
|
|
227
|
+
description: 'Read a Hugging Face dataset card (README.md) by owner and dataset name.',
|
|
228
|
+
category: 'research',
|
|
229
|
+
access: 'read-only',
|
|
230
|
+
permission: 'auto',
|
|
231
|
+
loadTier: 'T0',
|
|
232
|
+
paths: ['*'],
|
|
233
|
+
endpoint: 'https://huggingface.co/datasets/{owner}/{name}/raw/main/README.md',
|
|
234
|
+
method: 'GET',
|
|
235
|
+
pathParams: ['owner', 'name'],
|
|
236
|
+
inputJson: `{
|
|
237
|
+
"type": "object",
|
|
238
|
+
"properties": {
|
|
239
|
+
"owner": { "type": "string", "description": "Hub organisation or user", "examples": ["THUDM"] },
|
|
240
|
+
"name": { "type": "string", "description": "Dataset repository name", "examples": ["LongBench"] },
|
|
241
|
+
${QUESTION_PROPERTY}
|
|
242
|
+
},
|
|
243
|
+
"required": ["owner", "name", "question"]
|
|
244
|
+
}`,
|
|
245
|
+
outputJson: `{ "type": "string", "description": "Dataset card Markdown" }`,
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
id: 'tool-search-github',
|
|
250
|
+
data: {
|
|
251
|
+
toolName: 'search_github',
|
|
252
|
+
activity: 'Searching GitHub for {q}',
|
|
253
|
+
activityPast: `Found {total_count} hits for {q}
|
|
254
|
+
Found hits for {q|that query}`,
|
|
255
|
+
activityFailed: 'Could not search GitHub for {q|that query}',
|
|
256
|
+
request: 'search GitHub for {q}',
|
|
257
|
+
toolType: 'http',
|
|
258
|
+
description: 'Search public GitHub repositories, most recently updated first.',
|
|
259
|
+
category: 'research',
|
|
260
|
+
access: 'read-only',
|
|
261
|
+
permission: 'auto',
|
|
262
|
+
loadTier: 'T0',
|
|
263
|
+
paths: ['*'],
|
|
264
|
+
endpoint: 'https://api.github.com/search/repositories?sort=updated&per_page=6',
|
|
265
|
+
method: 'GET',
|
|
266
|
+
headersJson: GITHUB_RAW_HEADERS,
|
|
267
|
+
queryParams: ['q'],
|
|
268
|
+
inputJson: `{
|
|
269
|
+
"type": "object",
|
|
270
|
+
"properties": {
|
|
271
|
+
"q": { "type": "string", "minLength": 1, "description": "GitHub repository search query", "examples": ["llm episodic memory"] }
|
|
272
|
+
},
|
|
273
|
+
"required": ["q"]
|
|
274
|
+
}`,
|
|
275
|
+
outputJson: `{
|
|
276
|
+
"type": "object",
|
|
277
|
+
"properties": {
|
|
278
|
+
"total_count": { "type": "number" },
|
|
279
|
+
"items": { "type": "array", "items": { "type": "object" } }
|
|
280
|
+
}
|
|
281
|
+
}`,
|
|
282
|
+
},
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
id: 'tool-read-readme',
|
|
286
|
+
data: {
|
|
287
|
+
toolName: 'read_readme',
|
|
288
|
+
activity: 'Reading README of {owner}/{repo}',
|
|
289
|
+
activityPast: 'Read README of {owner}/{repo}',
|
|
290
|
+
activityFailed: 'Could not read README of {owner}/{repo}',
|
|
291
|
+
request: 'read README of {owner}/{repo}',
|
|
292
|
+
toolType: 'http',
|
|
293
|
+
description: 'Read a public GitHub repository README by owner and repository name.',
|
|
294
|
+
category: 'research',
|
|
295
|
+
access: 'read-only',
|
|
296
|
+
permission: 'auto',
|
|
297
|
+
loadTier: 'T0',
|
|
298
|
+
paths: ['*'],
|
|
299
|
+
endpoint: 'https://api.github.com/repos/{owner}/{repo}/readme',
|
|
300
|
+
method: 'GET',
|
|
301
|
+
headersJson: GITHUB_RAW_HEADERS,
|
|
302
|
+
pathParams: ['owner', 'repo'],
|
|
303
|
+
inputJson: `{
|
|
304
|
+
"type": "object",
|
|
305
|
+
"properties": {
|
|
306
|
+
"owner": { "type": "string", "description": "GitHub owner", "examples": ["mem0ai"] },
|
|
307
|
+
"repo": { "type": "string", "description": "GitHub repository name", "examples": ["mem0"] },
|
|
308
|
+
${QUESTION_PROPERTY}
|
|
309
|
+
},
|
|
310
|
+
"required": ["owner", "repo", "question"]
|
|
311
|
+
}`,
|
|
312
|
+
outputJson: `{ "type": "string", "description": "Repository README Markdown" }`,
|
|
313
|
+
},
|
|
314
|
+
},
|
|
57
315
|
// --- Geocoding & weather (free, no Google attribution) ---
|
|
58
316
|
{
|
|
59
317
|
id: 'tool-geocode-city',
|
|
@@ -385,7 +643,6 @@ const DEMO_TOOL_SPECS = [
|
|
|
385
643
|
permission: 'auto',
|
|
386
644
|
loadTier: 'T0',
|
|
387
645
|
paths: ['*'],
|
|
388
|
-
// Archive.org advanced search — Open Library TLS is unreachable from many networks.
|
|
389
646
|
endpoint: 'https://archive.org/advancedsearch.php?output=json&fl[]=identifier&fl[]=title&fl[]=creator',
|
|
390
647
|
method: 'GET',
|
|
391
648
|
queryParams: ['q', 'rows'],
|
|
@@ -435,6 +692,7 @@ const DEMO_TOOL_SPECS = [
|
|
|
435
692
|
toolName: 'ask_repo_docs',
|
|
436
693
|
activity: 'Checking the docs',
|
|
437
694
|
activityPast: 'Checked the docs',
|
|
695
|
+
activityFailed: 'Could not check the docs',
|
|
438
696
|
request: 'check the docs',
|
|
439
697
|
toolType: 'mcp',
|
|
440
698
|
description: 'Ask questions about a public GitHub repo via DeepWiki MCP (Streamable HTTP).',
|
|
@@ -467,6 +725,7 @@ const DEMO_TOOL_SPECS = [
|
|
|
467
725
|
toolName: 'find_library',
|
|
468
726
|
activity: 'Finding {libraryName}',
|
|
469
727
|
activityPast: 'Found {libraryName}',
|
|
728
|
+
activityFailed: 'Could not find {libraryName|that library}',
|
|
470
729
|
request: 'find {libraryName}',
|
|
471
730
|
toolType: 'mcp',
|
|
472
731
|
description: "Find a library's Context7 ID by name. Call before read_library_docs unless the user gave an ID like /vercel/next.js.",
|
|
@@ -494,6 +753,7 @@ const DEMO_TOOL_SPECS = [
|
|
|
494
753
|
toolName: 'read_library_docs',
|
|
495
754
|
activity: 'Reading the {libraryId} docs',
|
|
496
755
|
activityPast: 'Read the {libraryId} docs',
|
|
756
|
+
activityFailed: 'Could not read the {libraryId|library} docs',
|
|
497
757
|
request: 'read the {libraryId} docs',
|
|
498
758
|
toolType: 'mcp',
|
|
499
759
|
description: 'Up-to-date docs and code examples for one library from Context7, for one topic per call.',
|
|
@@ -759,6 +1019,7 @@ const DEMO_TOOL_SPECS = [
|
|
|
759
1019
|
toolName: 'search_web',
|
|
760
1020
|
activity: 'Searching the web for {query}',
|
|
761
1021
|
activityPast: 'Searched the web for {query}',
|
|
1022
|
+
activityFailed: 'Could not search the web for {query|that query}',
|
|
762
1023
|
request: 'search the web for {query}',
|
|
763
1024
|
toolType: 'mcp',
|
|
764
1025
|
description: 'Search the web with Exa for current information, news, people, or companies. Describe the page you want, not just keywords.',
|
|
@@ -1157,6 +1418,29 @@ const DEMO_TOOL_SPECS = [
|
|
|
1157
1418
|
},
|
|
1158
1419
|
},
|
|
1159
1420
|
];
|
|
1421
|
+
/** The tools the research scout allows: web, papers, models, datasets, repos, and library docs. */
|
|
1422
|
+
export const DEMO_RESEARCH_TOOLS = [
|
|
1423
|
+
'search_web',
|
|
1424
|
+
'read_pages',
|
|
1425
|
+
'list_arxiv',
|
|
1426
|
+
'search_models',
|
|
1427
|
+
'search_datasets',
|
|
1428
|
+
'read_model_card',
|
|
1429
|
+
'read_dataset_card',
|
|
1430
|
+
'search_github',
|
|
1431
|
+
'read_readme',
|
|
1432
|
+
'find_library',
|
|
1433
|
+
'read_library_docs',
|
|
1434
|
+
'ask_repo_docs',
|
|
1435
|
+
];
|
|
1436
|
+
/** The research tools whose output is a full page or card that `research.pagereader` filters at `post_tool`. */
|
|
1437
|
+
export const DEMO_RESEARCH_STAGE_READ_TOOLS = [
|
|
1438
|
+
'read_pages',
|
|
1439
|
+
'read_model_card',
|
|
1440
|
+
'read_dataset_card',
|
|
1441
|
+
'read_readme',
|
|
1442
|
+
'read_library_docs',
|
|
1443
|
+
];
|
|
1160
1444
|
/** The tools the travel concierge allows: places, weather, money, trip helpers, and research. */
|
|
1161
1445
|
export const DEMO_CONCIERGE_TOOLS = [
|
|
1162
1446
|
'geocode_city',
|
|
@@ -1203,28 +1487,130 @@ export const DEMO_CONSOLE_TOOLS = [
|
|
|
1203
1487
|
'get_pokemon',
|
|
1204
1488
|
'archive_text_search',
|
|
1205
1489
|
];
|
|
1206
|
-
export const DEMO_ARCHITECT_SYSTEM = `Role: Senior software architect who researches before advising.
|
|
1207
|
-
|
|
1208
|
-
Communication Standards:
|
|
1209
|
-
- Readable Formatting: Use markdown where it helps the reader: short headings, bullet lists, code blocks for code, and tables for side-by-side comparisons.
|
|
1210
|
-
- Answer First: Lead with the recommendation, then the reasons and the trade-offs. Name what you could not confirm.
|
|
1211
|
-
|
|
1212
|
-
Tool & Fact Grounding:
|
|
1213
|
-
- Absolute Grounding: Ground claims about a library, a repository, a package version, or a cloud service in the tools before answering. Never invent an API, a version, or a default.
|
|
1214
|
-
- Silent Execution: Never narrate tool calls or announce function names. Work findings into the answer.
|
|
1215
|
-
- Complete Resolution: Finish multi-step research before you answer.
|
|
1216
|
-
|
|
1217
|
-
Audio briefings:
|
|
1218
|
-
- When asked for a podcast, a briefing, or anything to listen to, write a short spoken script of what you found, in plain sentences with no markdown, and pass it to narrate. Then say in one line what the briefing covers.`;
|
|
1219
|
-
export const DEMO_LIVE_CONCIERGE_SYSTEM = `Role: Elite, charismatic travel concierge, on a call.
|
|
1220
|
-
|
|
1221
|
-
Speaking:
|
|
1222
|
-
- Speak in short, natural sentences. No lists, no markdown, no reading out of addresses, or codes unless asked.
|
|
1223
|
-
- Give the recommendation first, then offer one next step.
|
|
1224
|
-
|
|
1225
|
-
Tool & Fact Grounding:
|
|
1226
|
-
- Ground weather, currency, distances, and places in the tools before you answer. Never invent live data.
|
|
1227
|
-
- Never name a tool or say that you are calling one.`;
|
|
1228
1490
|
export function demoToolSpecs() {
|
|
1229
|
-
return
|
|
1491
|
+
return COOKBOOK_TOOL_SPECS;
|
|
1492
|
+
}
|
|
1493
|
+
const WMO_WEATHER_LABELS = {
|
|
1494
|
+
0: 'Clear sky',
|
|
1495
|
+
1: 'Mainly clear',
|
|
1496
|
+
2: 'Partly cloudy',
|
|
1497
|
+
3: 'Overcast',
|
|
1498
|
+
45: 'Fog',
|
|
1499
|
+
48: 'Depositing rime fog',
|
|
1500
|
+
51: 'Light drizzle',
|
|
1501
|
+
53: 'Moderate drizzle',
|
|
1502
|
+
55: 'Dense drizzle',
|
|
1503
|
+
61: 'Slight rain',
|
|
1504
|
+
63: 'Moderate rain',
|
|
1505
|
+
65: 'Heavy rain',
|
|
1506
|
+
71: 'Slight snow',
|
|
1507
|
+
73: 'Moderate snow',
|
|
1508
|
+
75: 'Heavy snow',
|
|
1509
|
+
80: 'Slight rain showers',
|
|
1510
|
+
81: 'Moderate rain showers',
|
|
1511
|
+
82: 'Violent rain showers',
|
|
1512
|
+
95: 'Thunderstorm',
|
|
1513
|
+
};
|
|
1514
|
+
function num(input, key) {
|
|
1515
|
+
const value = input[key];
|
|
1516
|
+
if (typeof value === 'number' && Number.isFinite(value))
|
|
1517
|
+
return value;
|
|
1518
|
+
if (typeof value === 'string' && value.trim()) {
|
|
1519
|
+
const parsed = Number(value);
|
|
1520
|
+
if (Number.isFinite(parsed))
|
|
1521
|
+
return parsed;
|
|
1522
|
+
}
|
|
1523
|
+
throw new Error(`Missing or invalid number field: ${key}`);
|
|
1524
|
+
}
|
|
1525
|
+
function str(input, key) {
|
|
1526
|
+
const value = input[key];
|
|
1527
|
+
if (typeof value === 'string' && value.trim())
|
|
1528
|
+
return value.trim();
|
|
1529
|
+
throw new Error(`Missing or invalid string field: ${key}`);
|
|
1230
1530
|
}
|
|
1531
|
+
function toRadians(degrees) {
|
|
1532
|
+
return (degrees * Math.PI) / 180;
|
|
1533
|
+
}
|
|
1534
|
+
/** Each unit `convert_units` knows, as `(value + offset) * scale` onto its family's base: °C or km. */
|
|
1535
|
+
const UNITS = new Map([
|
|
1536
|
+
['c', { family: 'temperature', offset: 0, scale: 1 }],
|
|
1537
|
+
['f', { family: 'temperature', offset: -32, scale: 5 / 9 }],
|
|
1538
|
+
['k', { family: 'temperature', offset: -273.15, scale: 1 }],
|
|
1539
|
+
['km', { family: 'distance', offset: 0, scale: 1 }],
|
|
1540
|
+
['mi', { family: 'distance', offset: 0, scale: 1 / 0.621371 }],
|
|
1541
|
+
]);
|
|
1542
|
+
/** Portable handlers for the cookbook function tools, shared by Studio and the website. */
|
|
1543
|
+
export const COOKBOOK_TOOL_HANDLERS = {
|
|
1544
|
+
convert_units(input) {
|
|
1545
|
+
const value = num(input, 'value');
|
|
1546
|
+
const from = str(input, 'from').toLowerCase();
|
|
1547
|
+
const to = str(input, 'to').toLowerCase();
|
|
1548
|
+
if (from === to) {
|
|
1549
|
+
return { value, from, to, result: value };
|
|
1550
|
+
}
|
|
1551
|
+
const source = UNITS.get(from);
|
|
1552
|
+
const target = UNITS.get(to);
|
|
1553
|
+
if (!source || !target || source.family !== target.family) {
|
|
1554
|
+
throw new Error(`Unsupported conversion: ${from} → ${to}`);
|
|
1555
|
+
}
|
|
1556
|
+
const base = (value + source.offset) * source.scale;
|
|
1557
|
+
const result = base / target.scale - target.offset;
|
|
1558
|
+
return { value, from, to, result: Math.round(result * 1000) / 1000 };
|
|
1559
|
+
},
|
|
1560
|
+
weather_code_label(input) {
|
|
1561
|
+
const code = Math.trunc(num(input, 'weathercode'));
|
|
1562
|
+
const label = WMO_WEATHER_LABELS[code] ?? `WMO code ${String(code)}`;
|
|
1563
|
+
return { weathercode: code, label };
|
|
1564
|
+
},
|
|
1565
|
+
trip_budget_estimate(input) {
|
|
1566
|
+
const days = Math.max(1, Math.trunc(num(input, 'days')));
|
|
1567
|
+
const perDiem = num(input, 'perDiem');
|
|
1568
|
+
const currency = typeof input.currency === 'string' && input.currency.trim()
|
|
1569
|
+
? input.currency.trim().toUpperCase()
|
|
1570
|
+
: 'USD';
|
|
1571
|
+
const total = Math.round(days * perDiem * 100) / 100;
|
|
1572
|
+
return {
|
|
1573
|
+
days,
|
|
1574
|
+
perDiem,
|
|
1575
|
+
currency,
|
|
1576
|
+
total,
|
|
1577
|
+
note: 'Studio estimate — call convert_currency for live FX if needed.',
|
|
1578
|
+
};
|
|
1579
|
+
},
|
|
1580
|
+
packing_suggestions(input) {
|
|
1581
|
+
const tempC = num(input, 'tempC');
|
|
1582
|
+
const activity = typeof input.activity === 'string' && input.activity.trim()
|
|
1583
|
+
? input.activity.trim()
|
|
1584
|
+
: 'general sightseeing';
|
|
1585
|
+
const items = ['Comfortable walking shoes', 'Reusable water bottle'];
|
|
1586
|
+
if (tempC < 8)
|
|
1587
|
+
items.push('Warm layers', 'Gloves or scarf');
|
|
1588
|
+
else if (tempC < 18)
|
|
1589
|
+
items.push('Light jacket', 'Layerable top');
|
|
1590
|
+
else
|
|
1591
|
+
items.push('Sun hat', 'Breathable clothing');
|
|
1592
|
+
if (/hike|outdoor|trail/i.test(activity)) {
|
|
1593
|
+
items.push('Day pack', 'Rain shell');
|
|
1594
|
+
}
|
|
1595
|
+
if (/beach|swim/i.test(activity)) {
|
|
1596
|
+
items.push('Swimsuit', 'Sandals');
|
|
1597
|
+
}
|
|
1598
|
+
return { tempC, activity, items };
|
|
1599
|
+
},
|
|
1600
|
+
haversine_distance(input) {
|
|
1601
|
+
const lat1 = num(input, 'lat1');
|
|
1602
|
+
const lon1 = num(input, 'lon1');
|
|
1603
|
+
const lat2 = num(input, 'lat2');
|
|
1604
|
+
const lon2 = num(input, 'lon2');
|
|
1605
|
+
const earthKm = 6371;
|
|
1606
|
+
const dLat = toRadians(lat2 - lat1);
|
|
1607
|
+
const dLon = toRadians(lon2 - lon1);
|
|
1608
|
+
const a = Math.sin(dLat / 2) ** 2 +
|
|
1609
|
+
Math.cos(toRadians(lat1)) * Math.cos(toRadians(lat2)) * Math.sin(dLon / 2) ** 2;
|
|
1610
|
+
const km = earthKm * 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
|
|
1611
|
+
return {
|
|
1612
|
+
km: Math.round(km * 10) / 10,
|
|
1613
|
+
mi: Math.round(km * 0.621371 * 10) / 10,
|
|
1614
|
+
};
|
|
1615
|
+
},
|
|
1616
|
+
};
|
package/map.js
CHANGED
|
@@ -119,7 +119,9 @@ export function workspaceMap(workspace, shared = []) {
|
|
|
119
119
|
}
|
|
120
120
|
const tools = workspace.toolSpecs.map((tool) => {
|
|
121
121
|
const id = toolSpecNodeId(tool.key);
|
|
122
|
-
const asked = tool.toolType === 'agent'
|
|
122
|
+
const asked = tool.toolType === 'agent'
|
|
123
|
+
? agentIds.get(tool.agentKey ?? '')
|
|
124
|
+
: agentIds.get(tool.stageAgentKey ?? '');
|
|
123
125
|
if (asked)
|
|
124
126
|
links.push({ from: id, to: asked, kind: 'asks' });
|
|
125
127
|
return {
|
package/mod.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ export { type StudioAsks, type WriteAsk, writeAsk, writeAskLine } from './asks.t
|
|
|
2
2
|
export { KNOWN_GEMINI_EMBEDDING_MODELS, KNOWN_OPENROUTER_EMBEDDING_MODELS, } from './browser-connection.ts';
|
|
3
3
|
export { type CompiledStudio, compileStudio, credentialHeaderProblem, credentialUrlProblem, type StudioCompileResult, type StudioIssue, type StudioProfileDefinition, type StudioTurnProfileDefinition, } from './compile.ts';
|
|
4
4
|
export { type CompiledWorkspace, compileWorkspace, type WorkspaceCompileResult, workspaceRunAgent, } from './compile-workspace.ts';
|
|
5
|
-
export {
|
|
5
|
+
export type { CookbookEntry, CookbookId, GoogleBindingViolation, GoogleFreeTierGrounding, GoogleImageAspectRatio, GoogleImageInputMime, GoogleImageOutputMime, GoogleImagePins, GoogleImageResolution, GoogleLivePins, GoogleSpeechPins, GoogleSpeechVoice, GoogleThinkingLevel, GoogleVoiceInputMime, LocalBindingViolation, ProfileSliceOptions, StitchRecipe, ToolSliceField, ToolSliceOptions, } from './cookbooks/mod.ts';
|
|
6
|
+
export { addArchitectExample, addResearchExample, COOKBOOK_IDS, COOKBOOK_TOOL_HANDLERS, COOKBOOKS, cookbookOpening, createArchitectWorkspace, createConsoleExampleDraft, createDecisionExampleDraft, createExampleDraft, createGeminiEmbeddingExampleDraft, createLiveExampleDraft, createNarratorExampleDraft, createPageReaderExampleDraft, createResearchScoutDraft, createResearchWorkspace, createSpanExampleDraft, DECISION_EXAMPLE_AGENT_ID, DECISION_EXAMPLE_STATE, DEMO_ALLOWED_HOSTS, DEMO_ARCHITECT_SYSTEM, DEMO_ARCHITECT_TOOLS, DEMO_CONCIERGE_SYSTEM, DEMO_CONCIERGE_TOOLS, DEMO_CONSOLE_TOOLS, DEMO_HTTP_SAMPLE_INPUT, DEMO_LIVE_CONCIERGE_SYSTEM, DEMO_RESEARCH_STAGE_READ_TOOLS, DEMO_RESEARCH_SYSTEM, DEMO_RESEARCH_TOOLS, DISCOVER_LOADED, decisionExampleAssets, decisionExampleDraft, demoHttpSampleInput, demoInputsSpec, demoToolSpecs, exampleTools, GEMINI_MODELS_URL, GOOGLE_BUILTIN_TOOLS, GOOGLE_FREE_TIER_GROUNDING, GOOGLE_IMAGE_ASPECT_RATIOS, GOOGLE_IMAGE_INPUT_MIMES, GOOGLE_IMAGE_OUTPUT_MIMES, GOOGLE_IMAGE_RESOLUTIONS, GOOGLE_NO_EFFORT_API_IDS, GOOGLE_NO_THINKING_API_IDS, GOOGLE_SINGLE_TURN_API_IDS, GOOGLE_SPEECH_FORMATS, GOOGLE_SPEECH_VOICES, GOOGLE_THINKING_LEVELS, GOOGLE_THINKING_REQUIRED_API_IDS, GOOGLE_VOICE_INPUT_MIMES, googleBindingViolation, googleEfforts, googleFreeTierBuiltins, localBindingViolation, OPENROUTER_BUILTIN_TOOLS, OPENROUTER_IMAGES_IGNORED_INPUTS, OPENROUTER_IMAGES_INPUT_MIMES, ollamaModelThinks, projectProfileSlice, projectToolSlice, RESEARCH_ALLOWED_HOSTS, RESEARCH_FIRST_TURN_PROMPT, RESEARCH_REPLY_SCHEMA_ID, RESEARCH_REPLY_SCHEMA_JSON, resolveCookbookSlice, stitchCookbook, } from './cookbooks/mod.ts';
|
|
6
7
|
export { agentToolTarget, COMPACTION_DRAFT_DEFAULTS, createBlankDraft, type DecisionCriterionDraft, type DecisionDraft, type DecisionImageDraft, type DecisionQuestionDraft, type DecisionQuestionType, defaultModelBinding, defaultToolSpec, draftAllows, draftFacets, draftKey, type EffortDraft, EXAMPLE_DECISION_STATE, EXAMPLE_EMBEDDING_QUERY, EXAMPLE_EMBEDDING_TEXT, EXAMPLE_SPAN_DECISION_STATE, exampleDecisionDraft, excludeFacet, type GuardrailsDraft, type IdentityDraft, type ImageDraft, type ImageReferenceDraft, INLINE_LABELS, type InputsDraft, type ItemRuleOnFail, includableFacets, includeFacet, type LabelsDraft, type LiveDraft, MODEL_LIMITS, type ModelBindingDraft, type ModelsDraft, newCriteria, newDecisionImage, newDecisionQuestion, newModelBinding, newOwnDetector, newPattern, newToolSpec, type ObservabilityDraft, type OutputsDraft, type OwnDetectorDraft, type PatternDraft, type PatternSourceDraft, plantsCanary, removeModelBinding, type SpeechDraft, STUDIO_PROFILE_TYPES, type StudioDraft, type StudioProfileType, type StudioTurnProfileType, setProfileType, TIMER_MAX_MS, type ToolSpecDraft, type ToolsDraft, type TurnBehaviourDraft, takesContinueInstruction, updateModelBinding, } from './draft.ts';
|
|
7
|
-
export { addArchitectExample, createArchitectWorkspace, createConsoleExampleDraft, createDecisionExampleDraft, createExampleDraft, createGeminiEmbeddingExampleDraft, createLiveExampleDraft, createNarratorExampleDraft, createSpanExampleDraft, DECISION_EXAMPLE_AGENT_ID, DECISION_EXAMPLE_STATE, decisionExampleAssets, decisionExampleDraft, } from './example.ts';
|
|
8
8
|
export { EXAMPLE_EMBEDDING_FILES } from './example-embedding-files.ts';
|
|
9
9
|
export type { GuardrailProbe, GuardrailProbeAnswer, GuardrailProbeDraft, GuardrailProbeResult, ProbeBoundary, ProbeBoundaryNote, ProbeStatus, } from './guardrail-probe.ts';
|
|
10
10
|
export { PROBE_BOUNDARIES, PROBE_BOUNDARY_NOTES, PROBE_STATUSES, PROBE_TEXT_LIMIT, probeDraft, probeRefusal, runGuardrailProbe, runGuardrailProbes, } from './guardrail-probe.ts';
|
|
@@ -21,7 +21,7 @@ export { PROBE_BATTERY, type ProbeBatteryCase } from './probe-battery.ts';
|
|
|
21
21
|
export { type ConnectionField, connectionFields, definitionFactory, definitionOf, definitionOfFactory, kernelDefinition, kernelDefinitions, LOCAL_PROVIDER_ID, localProviderAddress, type ModelRoute, modelRoute, modelSlots, onStudioLocal, optionAt, type ProtocolOptionField, type ProviderProblem, protocolOptionFields, providerProblems, registerStudioProvider, STUDIO_PROVIDERS, type StudioProvider, servedProtocols, servesProfileType, takesKey, withOption, } from './providers.ts';
|
|
22
22
|
export { type AgentKeyOf, type ProviderSourceRead, readProviderSource, readStudioSource, type StudioSourceError, type StudioSourceRead, type StudioSourceSpan, } from './read-source.ts';
|
|
23
23
|
export type { AgentToolRegistration, FunctionToolRegistration, HttpToolRegistration, McpToolRegistration, StructuredRegistration, ToolRegistration, } from './registrations.ts';
|
|
24
|
-
export { createReplay, parseTraceFile, type Replay, type ReplayDivergence, type ReplayScript, type ReplayTurn, recordedPayload, recordedTranscript, replayScript, } from './replay.ts';
|
|
24
|
+
export { createReplay, openingFromRecords, parseTraceFile, parseTraceRecords, type Replay, type ReplayDivergence, type ReplayScript, type ReplayTurn, recordedPayload, recordedTranscript, replayScript, } from './replay.ts';
|
|
25
25
|
export { bindingSlots, defaultEffortRequired, defaultModelRequired, inputLimitsRequired, keySlotUnset, } from './requirements.ts';
|
|
26
26
|
export { clearStudioRunPayload, createStudioRunId, keptStudioRunIds, loadStudioRunPayload, readStudioRunIdFromUrl, STUDIO_RUN_INDEX_KEY, STUDIO_RUN_PAYLOAD_CAP, STUDIO_RUN_PAYLOAD_KEY, STUDIO_RUN_PAYLOAD_KEY_PREFIX, type StudioRunIndex, type StudioRunIndexEntry, type StudioRunPayload, saveStudioRunPayload, studioRunPayloadKey, upsertStudioRunIndex, } from './run-payload.ts';
|
|
27
27
|
export type { StudioDependency } from './runtime-scope.ts';
|
package/mod.js
CHANGED
|
@@ -2,9 +2,8 @@ export { writeAsk, writeAskLine } from "./asks.js";
|
|
|
2
2
|
export { KNOWN_GEMINI_EMBEDDING_MODELS, KNOWN_OPENROUTER_EMBEDDING_MODELS, } from "./browser-connection.js";
|
|
3
3
|
export { compileStudio, credentialHeaderProblem, credentialUrlProblem, } from "./compile.js";
|
|
4
4
|
export { compileWorkspace, workspaceRunAgent, } from "./compile-workspace.js";
|
|
5
|
-
export { DEMO_ALLOWED_HOSTS, DEMO_CONCIERGE_SYSTEM, DEMO_HTTP_SAMPLE_INPUT, demoHttpSampleInput, demoInputsSpec, demoToolSpecs, } from "./
|
|
5
|
+
export { addArchitectExample, addResearchExample, COOKBOOK_IDS, COOKBOOK_TOOL_HANDLERS, COOKBOOKS, cookbookOpening, createArchitectWorkspace, createConsoleExampleDraft, createDecisionExampleDraft, createExampleDraft, createGeminiEmbeddingExampleDraft, createLiveExampleDraft, createNarratorExampleDraft, createPageReaderExampleDraft, createResearchScoutDraft, createResearchWorkspace, createSpanExampleDraft, DECISION_EXAMPLE_AGENT_ID, DECISION_EXAMPLE_STATE, DEMO_ALLOWED_HOSTS, DEMO_ARCHITECT_SYSTEM, DEMO_ARCHITECT_TOOLS, DEMO_CONCIERGE_SYSTEM, DEMO_CONCIERGE_TOOLS, DEMO_CONSOLE_TOOLS, DEMO_HTTP_SAMPLE_INPUT, DEMO_LIVE_CONCIERGE_SYSTEM, DEMO_RESEARCH_STAGE_READ_TOOLS, DEMO_RESEARCH_SYSTEM, DEMO_RESEARCH_TOOLS, DISCOVER_LOADED, decisionExampleAssets, decisionExampleDraft, demoHttpSampleInput, demoInputsSpec, demoToolSpecs, exampleTools, GEMINI_MODELS_URL, GOOGLE_BUILTIN_TOOLS, GOOGLE_FREE_TIER_GROUNDING, GOOGLE_IMAGE_ASPECT_RATIOS, GOOGLE_IMAGE_INPUT_MIMES, GOOGLE_IMAGE_OUTPUT_MIMES, GOOGLE_IMAGE_RESOLUTIONS, GOOGLE_NO_EFFORT_API_IDS, GOOGLE_NO_THINKING_API_IDS, GOOGLE_SINGLE_TURN_API_IDS, GOOGLE_SPEECH_FORMATS, GOOGLE_SPEECH_VOICES, GOOGLE_THINKING_LEVELS, GOOGLE_THINKING_REQUIRED_API_IDS, GOOGLE_VOICE_INPUT_MIMES, googleBindingViolation, googleEfforts, googleFreeTierBuiltins, localBindingViolation, OPENROUTER_BUILTIN_TOOLS, OPENROUTER_IMAGES_IGNORED_INPUTS, OPENROUTER_IMAGES_INPUT_MIMES, ollamaModelThinks, projectProfileSlice, projectToolSlice, RESEARCH_ALLOWED_HOSTS, RESEARCH_FIRST_TURN_PROMPT, RESEARCH_REPLY_SCHEMA_ID, RESEARCH_REPLY_SCHEMA_JSON, resolveCookbookSlice, stitchCookbook, } from "./cookbooks/mod.js";
|
|
6
6
|
export { agentToolTarget, COMPACTION_DRAFT_DEFAULTS, createBlankDraft, defaultModelBinding, defaultToolSpec, draftAllows, draftFacets, draftKey, EXAMPLE_DECISION_STATE, EXAMPLE_EMBEDDING_QUERY, EXAMPLE_EMBEDDING_TEXT, EXAMPLE_SPAN_DECISION_STATE, exampleDecisionDraft, excludeFacet, INLINE_LABELS, includableFacets, includeFacet, MODEL_LIMITS, newCriteria, newDecisionImage, newDecisionQuestion, newModelBinding, newOwnDetector, newPattern, newToolSpec, plantsCanary, removeModelBinding, STUDIO_PROFILE_TYPES, setProfileType, TIMER_MAX_MS, takesContinueInstruction, updateModelBinding, } from "./draft.js";
|
|
7
|
-
export { addArchitectExample, createArchitectWorkspace, createConsoleExampleDraft, createDecisionExampleDraft, createExampleDraft, createGeminiEmbeddingExampleDraft, createLiveExampleDraft, createNarratorExampleDraft, createSpanExampleDraft, DECISION_EXAMPLE_AGENT_ID, DECISION_EXAMPLE_STATE, decisionExampleAssets, decisionExampleDraft, } from "./example.js";
|
|
8
7
|
export { EXAMPLE_EMBEDDING_FILES } from "./example-embedding-files.js";
|
|
9
8
|
export { PROBE_BOUNDARIES, PROBE_BOUNDARY_NOTES, PROBE_STATUSES, PROBE_TEXT_LIMIT, probeDraft, probeRefusal, runGuardrailProbe, runGuardrailProbes, } from "./guardrail-probe.js";
|
|
10
9
|
export { unheldProblem } from "./held-credentials.js";
|
|
@@ -18,7 +17,7 @@ export { firstServed, isGoogleRoute, isOpenRouterRoute, isProviderBuiltinId, mod
|
|
|
18
17
|
export { PROBE_BATTERY } from "./probe-battery.js";
|
|
19
18
|
export { connectionFields, definitionFactory, definitionOf, definitionOfFactory, kernelDefinition, kernelDefinitions, LOCAL_PROVIDER_ID, localProviderAddress, modelRoute, modelSlots, onStudioLocal, optionAt, protocolOptionFields, providerProblems, registerStudioProvider, STUDIO_PROVIDERS, servedProtocols, servesProfileType, takesKey, withOption, } from "./providers.js";
|
|
20
19
|
export { readProviderSource, readStudioSource, } from "./read-source.js";
|
|
21
|
-
export { createReplay, parseTraceFile, recordedPayload, recordedTranscript, replayScript, } from "./replay.js";
|
|
20
|
+
export { createReplay, openingFromRecords, parseTraceFile, parseTraceRecords, recordedPayload, recordedTranscript, replayScript, } from "./replay.js";
|
|
22
21
|
export { bindingSlots, defaultEffortRequired, defaultModelRequired, inputLimitsRequired, keySlotUnset, } from "./requirements.js";
|
|
23
22
|
export { clearStudioRunPayload, createStudioRunId, keptStudioRunIds, loadStudioRunPayload, readStudioRunIdFromUrl, STUDIO_RUN_INDEX_KEY, STUDIO_RUN_PAYLOAD_CAP, STUDIO_RUN_PAYLOAD_KEY, STUDIO_RUN_PAYLOAD_KEY_PREFIX, saveStudioRunPayload, studioRunPayloadKey, upsertStudioRunIndex, } from "./run-payload.js";
|
|
24
23
|
export { sectionNote } from "./section-notes.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theoremjs/studio",
|
|
3
|
-
"version": "0.3.4-next.
|
|
3
|
+
"version": "0.3.4-next.538.gb556343",
|
|
4
4
|
"description": "Theorem Studio: open a project's agents in a local studio on Deno, edit and run them, and save back to its files; or show the studio screen in a Vite app.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"zod": "^4.6.5",
|
|
80
|
-
"@theoremjs/agents": "0.3.4-next.
|
|
81
|
-
"@theoremjs/web": "0.3.4-next.
|
|
82
|
-
"@theoremjs/react": "0.3.4-next.
|
|
80
|
+
"@theoremjs/agents": "0.3.4-next.538.gb556343",
|
|
81
|
+
"@theoremjs/web": "0.3.4-next.538.gb556343",
|
|
82
|
+
"@theoremjs/react": "0.3.4-next.538.gb556343"
|
|
83
83
|
},
|
|
84
84
|
"peerDependenciesMeta": {
|
|
85
85
|
"@theoremjs/react": {
|