@dp-bohrium/widget-contracts 0.0.1
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/LICENSE +21 -0
- package/README.md +190 -0
- package/conformance/bridge/capability-request.json +23 -0
- package/conformance/bridge/network-fetch-denied.json +16 -0
- package/conformance/bridge/network-fetch-request.json +19 -0
- package/conformance/bridge/network-fetch-success.json +22 -0
- package/conformance/bridge/presentation-change-surface-request.json +14 -0
- package/conformance/bridge/presentation-close-request.json +14 -0
- package/conformance/bridge/presentation-close-success.json +11 -0
- package/conformance/bridge/presentation-downgrade-success.json +14 -0
- package/conformance/bridge/presentation-focus-backward-request.json +14 -0
- package/conformance/bridge/presentation-focus-boundary-success.json +14 -0
- package/conformance/bridge/presentation-focus-forward-request.json +14 -0
- package/conformance/bridge/presentation-init.json +70 -0
- package/conformance/bridge/presentation-policy-denied.json +16 -0
- package/conformance/bridge/presentation-present-request.json +14 -0
- package/conformance/bridge/presentation-user-denied.json +16 -0
- package/conformance/bridge/ready.json +11 -0
- package/conformance/bundles/minimal-file-preview/entry.js +1 -0
- package/conformance/bundles/minimal-file-preview/manifest.json +12 -0
- package/conformance/bundles/minimal-file-preview/samples/file-preview.json +1 -0
- package/conformance/bundles/minimal-panel/entry.js +1 -0
- package/conformance/bundles/minimal-panel/manifest.json +11 -0
- package/conformance/bundles/minimal-panel/samples/panel.json +1 -0
- package/conformance/bundles/minimal-tool-result/entry.js +1 -0
- package/conformance/bundles/minimal-tool-result/manifest.json +11 -0
- package/conformance/bundles/minimal-tool-result/samples/tool-result.json +1 -0
- package/conformance/file-responses/list.json +1 -0
- package/conformance/file-responses/metadata.json +11 -0
- package/conformance/file-responses/permission-denied.json +6 -0
- package/conformance/file-responses/resource-limit.json +1 -0
- package/conformance/file-responses/text-content.json +1 -0
- package/conformance/host-runtime-config/invalid-missing-manifest-fields.json +55 -0
- package/conformance/host-runtime-config/invalid-static-origins.json +60 -0
- package/conformance/host-runtime-config/valid.json +85 -0
- package/conformance/invalid-bridge-messages/network-fetch-mixed-case-forbidden-header.json +21 -0
- package/conformance/invalid-manifests/missing-target.json +11 -0
- package/conformance/invalid-manifests/presentation-duplicate-surfaces.json +16 -0
- package/conformance/invalid-manifests/presentation-empty-surfaces.json +14 -0
- package/conformance/invalid-manifests/presentation-unknown-surface.json +16 -0
- package/conformance/invalid-manifests/unknown-field.json +12 -0
- package/conformance/invalid-network-requests/mixed-case-forbidden-header.json +11 -0
- package/conformance/invalid-presentation-grants/duplicate-surfaces.json +5 -0
- package/conformance/invalid-presentation-grants/empty-surfaces.json +5 -0
- package/conformance/invalid-presentation-grants/false-confirmation.json +5 -0
- package/conformance/invalid-presentation-grants/missing-confirmation.json +4 -0
- package/conformance/invalid-presentation-grants/unknown-surface.json +5 -0
- package/conformance/invalid-presentation-requests/change-surface-missing-surface.json +4 -0
- package/conformance/invalid-presentation-requests/close-with-surface.json +4 -0
- package/conformance/invalid-presentation-requests/focus-boundary-missing-direction.json +4 -0
- package/conformance/invalid-presentation-requests/focus-boundary-unknown-direction.json +4 -0
- package/conformance/invalid-presentation-requests/focus-boundary-with-coordinates.json +9 -0
- package/conformance/invalid-presentation-requests/focus-boundary-with-event-provenance.json +8 -0
- package/conformance/invalid-presentation-requests/focus-boundary-with-generation.json +8 -0
- package/conformance/invalid-presentation-requests/focus-boundary-with-identity.json +12 -0
- package/conformance/invalid-presentation-requests/focus-boundary-with-key.json +8 -0
- package/conformance/invalid-presentation-requests/focus-boundary-with-modifiers.json +11 -0
- package/conformance/invalid-presentation-requests/focus-boundary-with-selector.json +8 -0
- package/conformance/invalid-presentation-requests/focus-boundary-with-surface.json +8 -0
- package/conformance/invalid-presentation-requests/focus-boundary-with-target.json +8 -0
- package/conformance/invalid-presentation-requests/focus-boundary-with-timestamp.json +8 -0
- package/conformance/invalid-presentation-requests/focus-boundary-with-z-index.json +8 -0
- package/conformance/invalid-presentation-requests/present-missing-surface.json +4 -0
- package/conformance/invalid-presentation-requests/unknown-surface.json +4 -0
- package/conformance/invalid-presentation-requests/widget-controls-coordinates.json +9 -0
- package/conformance/invalid-presentation-requests/widget-controls-geometry.json +8 -0
- package/conformance/invalid-presentation-requests/widget-controls-instance-id.json +8 -0
- package/conformance/invalid-presentation-requests/widget-controls-principal.json +8 -0
- package/conformance/invalid-presentation-requests/widget-controls-run-id.json +4 -0
- package/conformance/invalid-presentation-requests/widget-controls-widget-id.json +8 -0
- package/conformance/invalid-presentation-requests/widget-controls-widget-version-id.json +8 -0
- package/conformance/invalid-presentation-requests/widget-controls-z-index.json +4 -0
- package/conformance/invalid-render-inputs/malformed.json +17 -0
- package/conformance/manifests/valid-file-preview.json +12 -0
- package/conformance/manifests/valid-network.json +15 -0
- package/conformance/manifests/valid-panel.json +11 -0
- package/conformance/manifests/valid-presentation-panel.json +21 -0
- package/conformance/manifests/valid-tool-result.json +14 -0
- package/conformance/render-inputs/compatibility/literature-search-paper-results.json +75 -0
- package/conformance/render-inputs/compatibility/scientific-bibliography-bibtex.json +10 -0
- package/conformance/render-inputs/compatibility/scientific-dataset-csv.json +10 -0
- package/conformance/render-inputs/compatibility/scientific-manuscript-latex.json +10 -0
- package/conformance/render-inputs/compatibility/scientific-manuscript-markdown.json +10 -0
- package/conformance/render-inputs/compatibility/scientific-molecule-mol.json +10 -0
- package/conformance/render-inputs/compatibility/scientific-molecule-mol2.json +10 -0
- package/conformance/render-inputs/compatibility/scientific-notebook-ipynb.json +10 -0
- package/conformance/render-inputs/compatibility/scientific-paper-pdf.json +10 -0
- package/conformance/render-inputs/compatibility/scientific-protein-pdb.json +10 -0
- package/conformance/render-inputs/compatibility/scientific-source-python.json +10 -0
- package/conformance/render-inputs/compatibility/scientific-structure-cif.json +47 -0
- package/conformance/render-inputs/compatibility/scientific-structure-poscar.json +10 -0
- package/conformance/render-inputs/compatibility/scientific-structure-stru.json +10 -0
- package/conformance/render-inputs/compatibility/scientific-trajectory-xyz.json +10 -0
- package/conformance/render-inputs/compatibility/thinking-process-paper-search.json +25 -0
- package/conformance/render-inputs/compatibility/thinking-process-scholar-search.json +25 -0
- package/conformance/render-inputs/compatibility/thinking-process-web-search.json +25 -0
- package/conformance/render-inputs/compatibility/workspace-file-search.json +24 -0
- package/conformance/render-inputs/compatibility/workspace-file-tree.json +24 -0
- package/conformance/render-inputs/empty.json +10 -0
- package/conformance/render-inputs/file-preview.json +10 -0
- package/conformance/render-inputs/incremental-update.json +10 -0
- package/conformance/render-inputs/large.json +10 -0
- package/conformance/render-inputs/malformed.json +1 -0
- package/conformance/render-inputs/panel.json +10 -0
- package/conformance/render-inputs/partial-state-full-snapshot.json +40 -0
- package/conformance/render-inputs/tool-result.json +10 -0
- package/dist/generated-host-runtime-config.d.ts +246 -0
- package/dist/generated-host-runtime-config.js +3 -0
- package/dist/generated-manifest.d.ts +86 -0
- package/dist/generated-manifest.js +3 -0
- package/dist/generated-runtime-contracts.d.ts +401 -0
- package/dist/generated-runtime-contracts.js +3 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +2 -0
- package/package.json +55 -0
- package/schemas/host-runtime-config.schema.json +185 -0
- package/schemas/widget-manifest.schema.json +227 -0
- package/schemas/widget-runtime-contracts.schema.json +1478 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "SciForge Research Panel",
|
|
3
|
+
"description": "A Panel Widget that requests governed elevated presentation surfaces.",
|
|
4
|
+
"widgetConfig": {
|
|
5
|
+
"schemaVersion": 1,
|
|
6
|
+
"hostApiVersion": 1,
|
|
7
|
+
"widgetSdkVersion": "0.0.1",
|
|
8
|
+
"entry": "dist/widget.js",
|
|
9
|
+
"slot": { "type": "panel", "panelType": "sciforge-research" },
|
|
10
|
+
"requestedCapabilities": {
|
|
11
|
+
"presentation": { "surfaces": ["floating", "overlay"] }
|
|
12
|
+
},
|
|
13
|
+
"samples": [
|
|
14
|
+
{
|
|
15
|
+
"id": "normal",
|
|
16
|
+
"title": "Research panel",
|
|
17
|
+
"request": "samples/panel.json"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Simulation Result",
|
|
3
|
+
"description": "Renders a simulation tool result.",
|
|
4
|
+
"widgetConfig": {
|
|
5
|
+
"schemaVersion": 1,
|
|
6
|
+
"hostApiVersion": 1,
|
|
7
|
+
"widgetSdkVersion": "0.0.1",
|
|
8
|
+
"entry": "dist/widget.js",
|
|
9
|
+
"slot": { "type": "tool-result", "toolName": "simulation.run" },
|
|
10
|
+
"requestedCapabilities": { "files": { "metadata": true, "read": true } },
|
|
11
|
+
"runtime": { "worker": false, "webAssembly": false },
|
|
12
|
+
"samples": [{ "id": "normal", "title": "Normal result", "request": "samples/tool-result.json" }]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-literature-search-paper-results-001",
|
|
4
|
+
"instanceId": "compat-literature-search-paper-results",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "tool-result",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": {
|
|
9
|
+
"slot": "tool-result",
|
|
10
|
+
"tool": {
|
|
11
|
+
"name": "PaperSearch",
|
|
12
|
+
"callId": "call-literature-search-paper-results-001",
|
|
13
|
+
"status": "succeeded"
|
|
14
|
+
},
|
|
15
|
+
"input": {
|
|
16
|
+
"query": "machine-learned interatomic potentials"
|
|
17
|
+
},
|
|
18
|
+
"result": {
|
|
19
|
+
"query": "machine-learned interatomic potentials",
|
|
20
|
+
"total": 2,
|
|
21
|
+
"papers": [
|
|
22
|
+
{
|
|
23
|
+
"titleEn": "Machine-learned interatomic potentials",
|
|
24
|
+
"titleZh": "机器学习原子间势",
|
|
25
|
+
"paperId": "paper-001",
|
|
26
|
+
"publicationId": 42,
|
|
27
|
+
"doi": "10.1000/example",
|
|
28
|
+
"journal": "Nature Computational Science",
|
|
29
|
+
"jcrZone": "Q1",
|
|
30
|
+
"publicationDate": "2025-03-14",
|
|
31
|
+
"authors": [
|
|
32
|
+
{
|
|
33
|
+
"name": "Researcher Example",
|
|
34
|
+
"originName": "Researcher Example",
|
|
35
|
+
"scholarId": "scholar-001"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"abstract": "A representative literature result used by SciX and Front-X renderers."
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"enName": "Foundation models for atomistic simulation",
|
|
42
|
+
"paper_id": "paper-002",
|
|
43
|
+
"publication_id": 84,
|
|
44
|
+
"paperUrl": "https://example.org/papers/foundation-models",
|
|
45
|
+
"publicationEnName": "Journal of Computational Materials",
|
|
46
|
+
"quartile": "Q1",
|
|
47
|
+
"year": 2026,
|
|
48
|
+
"author": "Second Researcher",
|
|
49
|
+
"snippet": "A second result exercises aliases accepted by existing Host adapters."
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"context": {
|
|
55
|
+
"locale": "zh-CN",
|
|
56
|
+
"theme": {
|
|
57
|
+
"mode": "light",
|
|
58
|
+
"tokens": {
|
|
59
|
+
"background": "#ffffff",
|
|
60
|
+
"foreground": "#111111",
|
|
61
|
+
"muted": "#eeeeee",
|
|
62
|
+
"mutedForeground": "#666666",
|
|
63
|
+
"border": "#dddddd",
|
|
64
|
+
"primary": "#0066cc",
|
|
65
|
+
"danger": "#cc0000"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"viewport": {
|
|
69
|
+
"width": 960,
|
|
70
|
+
"height": 720
|
|
71
|
+
},
|
|
72
|
+
"capabilities": [],
|
|
73
|
+
"correlationId": "compat-literature-search-paper-results-001"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-scientific-bibliography-bibtex-001",
|
|
4
|
+
"instanceId": "compat-scientific-bibliography-bibtex",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "file-preview",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": { "slot": "file-preview", "file": { "id": "file-bibliography-001", "kind": "file", "name": "references.bib", "extension": "bib", "mimeType": "application/x-bibtex", "size": 16384 }, "preview": { "format": "text" } },
|
|
9
|
+
"context": { "locale": "en-US", "theme": { "mode": "light", "tokens": { "background": "#ffffff", "foreground": "#111111", "muted": "#eeeeee", "mutedForeground": "#666666", "border": "#dddddd", "primary": "#0066cc", "danger": "#cc0000" } }, "viewport": { "width": 960, "height": 720 }, "capabilities": [{ "name": "files.read", "limits": { "bytesPerRequest": 65536, "bytesPerRun": 2097152, "callsPerMinute": 40 } }], "correlationId": "compat-scientific-bibliography-bibtex-001" }
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-scientific-dataset-csv-001",
|
|
4
|
+
"instanceId": "compat-scientific-dataset-csv",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "file-preview",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": { "slot": "file-preview", "file": { "id": "file-dataset-001", "kind": "file", "name": "measurements.csv", "extension": "csv", "mimeType": "text/csv", "size": 262144 }, "preview": { "format": "text" } },
|
|
9
|
+
"context": { "locale": "zh-CN", "theme": { "mode": "light", "tokens": { "background": "#ffffff", "foreground": "#111111", "muted": "#eeeeee", "mutedForeground": "#666666", "border": "#dddddd", "primary": "#0066cc", "danger": "#cc0000" } }, "viewport": { "width": 960, "height": 720 }, "capabilities": [{ "name": "files.read", "limits": { "bytesPerRequest": 65536, "bytesPerRun": 2097152, "callsPerMinute": 40 } }], "correlationId": "compat-scientific-dataset-csv-001" }
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-scientific-manuscript-latex-001",
|
|
4
|
+
"instanceId": "compat-scientific-manuscript-latex",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "file-preview",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": { "slot": "file-preview", "file": { "id": "file-manuscript-tex-001", "kind": "file", "name": "manuscript.tex", "extension": "tex", "mimeType": "application/x-tex", "size": 32768 }, "preview": { "format": "text" } },
|
|
9
|
+
"context": { "locale": "en-US", "theme": { "mode": "dark", "tokens": { "background": "#000000", "foreground": "#ffffff", "muted": "#333333", "mutedForeground": "#999999", "border": "#444444", "primary": "#0088ff", "danger": "#ff4444" } }, "viewport": { "width": 960, "height": 720 }, "capabilities": [{ "name": "files.read", "limits": { "bytesPerRequest": 65536, "bytesPerRun": 2097152, "callsPerMinute": 40 } }], "correlationId": "compat-scientific-manuscript-latex-001" }
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-scientific-manuscript-markdown-001",
|
|
4
|
+
"instanceId": "compat-scientific-manuscript-markdown",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "file-preview",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": { "slot": "file-preview", "file": { "id": "file-manuscript-md-001", "kind": "file", "name": "manuscript.md", "extension": "md", "mimeType": "text/markdown", "size": 32768 }, "preview": { "format": "text" } },
|
|
9
|
+
"context": { "locale": "zh-CN", "theme": { "mode": "light", "tokens": { "background": "#ffffff", "foreground": "#111111", "muted": "#eeeeee", "mutedForeground": "#666666", "border": "#dddddd", "primary": "#0066cc", "danger": "#cc0000" } }, "viewport": { "width": 960, "height": 720 }, "capabilities": [{ "name": "files.read", "limits": { "bytesPerRequest": 65536, "bytesPerRun": 2097152, "callsPerMinute": 40 } }], "correlationId": "compat-scientific-manuscript-markdown-001" }
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-scientific-molecule-mol-001",
|
|
4
|
+
"instanceId": "compat-scientific-molecule-mol",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "file-preview",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": { "slot": "file-preview", "file": { "id": "file-molecule-mol-001", "kind": "file", "name": "molecule.mol", "extension": "mol", "size": 32768 }, "preview": { "format": "text" } },
|
|
9
|
+
"context": { "locale": "en-US", "theme": { "mode": "light", "tokens": { "background": "#ffffff", "foreground": "#111111", "muted": "#eeeeee", "mutedForeground": "#666666", "border": "#dddddd", "primary": "#0066cc", "danger": "#cc0000" } }, "viewport": { "width": 960, "height": 720 }, "capabilities": [{ "name": "files.read", "limits": { "bytesPerRequest": 65536, "bytesPerRun": 2097152, "callsPerMinute": 40 } }], "correlationId": "compat-scientific-molecule-mol-001" }
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-scientific-molecule-mol2-001",
|
|
4
|
+
"instanceId": "compat-scientific-molecule-mol2",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "file-preview",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": { "slot": "file-preview", "file": { "id": "file-molecule-mol2-001", "kind": "file", "name": "molecule.mol2", "extension": "mol2", "size": 48120 }, "preview": { "format": "text" } },
|
|
9
|
+
"context": { "locale": "en-US", "theme": { "mode": "dark", "tokens": { "background": "#000000", "foreground": "#ffffff", "muted": "#333333", "mutedForeground": "#999999", "border": "#444444", "primary": "#0088ff", "danger": "#ff4444" } }, "viewport": { "width": 960, "height": 720 }, "capabilities": [{ "name": "files.read", "limits": { "bytesPerRequest": 65536, "bytesPerRun": 2097152, "callsPerMinute": 40 } }], "correlationId": "compat-scientific-molecule-mol2-001" }
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-scientific-notebook-ipynb-001",
|
|
4
|
+
"instanceId": "compat-scientific-notebook-ipynb",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "file-preview",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": { "slot": "file-preview", "file": { "id": "file-notebook-001", "kind": "file", "name": "analysis.ipynb", "extension": "ipynb", "mimeType": "application/x-ipynb+json", "size": 524288 }, "preview": { "format": "json" } },
|
|
9
|
+
"context": { "locale": "en-US", "theme": { "mode": "dark", "tokens": { "background": "#000000", "foreground": "#ffffff", "muted": "#333333", "mutedForeground": "#999999", "border": "#444444", "primary": "#0088ff", "danger": "#ff4444" } }, "viewport": { "width": 960, "height": 720 }, "capabilities": [{ "name": "files.read", "limits": { "bytesPerRequest": 65536, "bytesPerRun": 2097152, "callsPerMinute": 40 } }], "correlationId": "compat-scientific-notebook-ipynb-001" }
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-scientific-paper-pdf-001",
|
|
4
|
+
"instanceId": "compat-scientific-paper-pdf",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "file-preview",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": { "slot": "file-preview", "file": { "id": "file-paper-001", "kind": "file", "name": "paper.pdf", "extension": "pdf", "mimeType": "application/pdf", "size": 1048576 }, "preview": { "format": "binary" } },
|
|
9
|
+
"context": { "locale": "en-US", "theme": { "mode": "light", "tokens": { "background": "#ffffff", "foreground": "#111111", "muted": "#eeeeee", "mutedForeground": "#666666", "border": "#dddddd", "primary": "#0066cc", "danger": "#cc0000" } }, "viewport": { "width": 960, "height": 720 }, "capabilities": [{ "name": "files.read", "limits": { "bytesPerRequest": 65536, "bytesPerRun": 2097152, "callsPerMinute": 40 } }], "correlationId": "compat-scientific-paper-pdf-001" }
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-scientific-protein-pdb-001",
|
|
4
|
+
"instanceId": "compat-scientific-protein-pdb",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "file-preview",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": { "slot": "file-preview", "file": { "id": "file-protein-001", "kind": "file", "name": "protein.pdb", "extension": "pdb", "mimeType": "chemical/x-pdb", "size": 196608 }, "preview": { "format": "text" } },
|
|
9
|
+
"context": { "locale": "en-US", "theme": { "mode": "light", "tokens": { "background": "#ffffff", "foreground": "#111111", "muted": "#eeeeee", "mutedForeground": "#666666", "border": "#dddddd", "primary": "#0066cc", "danger": "#cc0000" } }, "viewport": { "width": 960, "height": 720 }, "capabilities": [{ "name": "files.read", "limits": { "bytesPerRequest": 65536, "bytesPerRun": 2097152, "callsPerMinute": 40 } }], "correlationId": "compat-scientific-protein-pdb-001" }
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-scientific-source-python-001",
|
|
4
|
+
"instanceId": "compat-scientific-source-python",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "file-preview",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": { "slot": "file-preview", "file": { "id": "file-source-001", "kind": "file", "name": "analysis.py", "extension": "py", "mimeType": "text/x-python", "size": 24576 }, "preview": { "format": "text" } },
|
|
9
|
+
"context": { "locale": "en-US", "theme": { "mode": "light", "tokens": { "background": "#ffffff", "foreground": "#111111", "muted": "#eeeeee", "mutedForeground": "#666666", "border": "#dddddd", "primary": "#0066cc", "danger": "#cc0000" } }, "viewport": { "width": 960, "height": 720 }, "capabilities": [{ "name": "files.read", "limits": { "bytesPerRequest": 65536, "bytesPerRun": 2097152, "callsPerMinute": 40 } }], "correlationId": "compat-scientific-source-python-001" }
|
|
10
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-scientific-structure-cif-001",
|
|
4
|
+
"instanceId": "compat-scientific-structure-cif",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "file-preview",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": {
|
|
9
|
+
"slot": "file-preview",
|
|
10
|
+
"file": {
|
|
11
|
+
"id": "file-structure-001",
|
|
12
|
+
"kind": "file",
|
|
13
|
+
"name": "structure.cif",
|
|
14
|
+
"extension": "cif",
|
|
15
|
+
"mimeType": "chemical/x-cif",
|
|
16
|
+
"size": 2048
|
|
17
|
+
},
|
|
18
|
+
"preview": { "format": "text" }
|
|
19
|
+
},
|
|
20
|
+
"context": {
|
|
21
|
+
"locale": "en-US",
|
|
22
|
+
"theme": {
|
|
23
|
+
"mode": "dark",
|
|
24
|
+
"tokens": {
|
|
25
|
+
"background": "#000000",
|
|
26
|
+
"foreground": "#ffffff",
|
|
27
|
+
"muted": "#333333",
|
|
28
|
+
"mutedForeground": "#999999",
|
|
29
|
+
"border": "#444444",
|
|
30
|
+
"primary": "#0088ff",
|
|
31
|
+
"danger": "#ff4444"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"viewport": { "width": 640, "height": 480 },
|
|
35
|
+
"capabilities": [
|
|
36
|
+
{
|
|
37
|
+
"name": "files.read",
|
|
38
|
+
"limits": {
|
|
39
|
+
"bytesPerRequest": 65536,
|
|
40
|
+
"bytesPerRun": 262144,
|
|
41
|
+
"callsPerMinute": 20
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"correlationId": "compat-scientific-structure-cif-001"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-scientific-structure-poscar-001",
|
|
4
|
+
"instanceId": "compat-scientific-structure-poscar",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "file-preview",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": { "slot": "file-preview", "file": { "id": "file-structure-poscar-001", "kind": "file", "name": "POSCAR", "extension": "poscar", "size": 4096 }, "preview": { "format": "text" } },
|
|
9
|
+
"context": { "locale": "en-US", "theme": { "mode": "dark", "tokens": { "background": "#000000", "foreground": "#ffffff", "muted": "#333333", "mutedForeground": "#999999", "border": "#444444", "primary": "#0088ff", "danger": "#ff4444" } }, "viewport": { "width": 960, "height": 720 }, "capabilities": [{ "name": "files.read", "limits": { "bytesPerRequest": 65536, "bytesPerRun": 2097152, "callsPerMinute": 40 } }], "correlationId": "compat-scientific-structure-poscar-001" }
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-scientific-structure-stru-001",
|
|
4
|
+
"instanceId": "compat-scientific-structure-stru",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "file-preview",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": { "slot": "file-preview", "file": { "id": "file-structure-stru-001", "kind": "file", "name": "silicon.stru", "extension": "stru", "size": 8192 }, "preview": { "format": "text" } },
|
|
9
|
+
"context": { "locale": "zh-CN", "theme": { "mode": "light", "tokens": { "background": "#ffffff", "foreground": "#111111", "muted": "#eeeeee", "mutedForeground": "#666666", "border": "#dddddd", "primary": "#0066cc", "danger": "#cc0000" } }, "viewport": { "width": 960, "height": 720 }, "capabilities": [{ "name": "files.read", "limits": { "bytesPerRequest": 65536, "bytesPerRun": 2097152, "callsPerMinute": 40 } }], "correlationId": "compat-scientific-structure-stru-001" }
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-scientific-trajectory-xyz-001",
|
|
4
|
+
"instanceId": "compat-scientific-trajectory-xyz",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "file-preview",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": { "slot": "file-preview", "file": { "id": "file-trajectory-001", "kind": "file", "name": "trajectory.xyz", "extension": "xyz", "mimeType": "chemical/x-xyz", "size": 131072 }, "preview": { "format": "text" } },
|
|
9
|
+
"context": { "locale": "en-US", "theme": { "mode": "dark", "tokens": { "background": "#000000", "foreground": "#ffffff", "muted": "#333333", "mutedForeground": "#999999", "border": "#444444", "primary": "#0088ff", "danger": "#ff4444" } }, "viewport": { "width": 960, "height": 720 }, "capabilities": [{ "name": "files.read", "limits": { "bytesPerRequest": 65536, "bytesPerRun": 2097152, "callsPerMinute": 40 } }], "correlationId": "compat-scientific-trajectory-xyz-001" }
|
|
10
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-thinking-paper-search-001",
|
|
4
|
+
"instanceId": "compat-thinking-paper-search",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "tool-result",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": {
|
|
9
|
+
"slot": "tool-result",
|
|
10
|
+
"tool": { "name": "PaperSearch", "callId": "call-thinking-paper-search-001", "status": "succeeded" },
|
|
11
|
+
"input": { "query": "machine-learned interatomic potentials" },
|
|
12
|
+
"result": {
|
|
13
|
+
"papers": [
|
|
14
|
+
{ "title": "Machine-learned interatomic potentials", "paperId": "paper-001", "publicationId": 42, "doi": "10.1000/example", "journal": "Nature Computational Science" }
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"context": {
|
|
19
|
+
"locale": "en-US",
|
|
20
|
+
"theme": { "mode": "light", "tokens": { "background": "#ffffff", "foreground": "#111111", "muted": "#eeeeee", "mutedForeground": "#666666", "border": "#dddddd", "primary": "#0066cc", "danger": "#cc0000" } },
|
|
21
|
+
"viewport": { "width": 720, "height": 480 },
|
|
22
|
+
"capabilities": [],
|
|
23
|
+
"correlationId": "compat-thinking-paper-search-001"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-thinking-scholar-search-001",
|
|
4
|
+
"instanceId": "compat-thinking-scholar-search",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "tool-result",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": {
|
|
9
|
+
"slot": "tool-result",
|
|
10
|
+
"tool": { "name": "ScholarSearch", "callId": "call-thinking-scholar-search-001", "status": "succeeded" },
|
|
11
|
+
"input": { "query": "graph neural networks for molecular dynamics" },
|
|
12
|
+
"result": {
|
|
13
|
+
"scholars": [
|
|
14
|
+
{ "name": "Researcher Example", "affiliations": ["Scientific Computing Lab"], "hIndex": 42, "verified": true }
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"context": {
|
|
19
|
+
"locale": "zh-CN",
|
|
20
|
+
"theme": { "mode": "light", "tokens": { "background": "#ffffff", "foreground": "#111111", "muted": "#eeeeee", "mutedForeground": "#666666", "border": "#dddddd", "primary": "#0066cc", "danger": "#cc0000" } },
|
|
21
|
+
"viewport": { "width": 720, "height": 480 },
|
|
22
|
+
"capabilities": [],
|
|
23
|
+
"correlationId": "compat-thinking-scholar-search-001"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-thinking-web-search-001",
|
|
4
|
+
"instanceId": "compat-thinking-web-search",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "tool-result",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": {
|
|
9
|
+
"slot": "tool-result",
|
|
10
|
+
"tool": { "name": "WebSearch", "callId": "call-thinking-web-search-001", "status": "succeeded" },
|
|
11
|
+
"input": { "query": "open materials datasets" },
|
|
12
|
+
"result": {
|
|
13
|
+
"results": [
|
|
14
|
+
{ "title": "Materials Project", "url": "https://materialsproject.org", "snippet": "Open computational materials data", "source": "Materials Project" }
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"context": {
|
|
19
|
+
"locale": "zh-CN",
|
|
20
|
+
"theme": { "mode": "dark", "tokens": { "background": "#000000", "foreground": "#ffffff", "muted": "#333333", "mutedForeground": "#999999", "border": "#444444", "primary": "#0088ff", "danger": "#ff4444" } },
|
|
21
|
+
"viewport": { "width": 720, "height": 480 },
|
|
22
|
+
"capabilities": [],
|
|
23
|
+
"correlationId": "compat-thinking-web-search-001"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-workspace-file-search-001",
|
|
4
|
+
"instanceId": "compat-workspace-file-search",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "panel",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": {
|
|
9
|
+
"slot": "panel",
|
|
10
|
+
"panelType": "workspace-files",
|
|
11
|
+
"title": "Files",
|
|
12
|
+
"data": { "view": "search", "query": "energy" }
|
|
13
|
+
},
|
|
14
|
+
"context": {
|
|
15
|
+
"locale": "en-US",
|
|
16
|
+
"theme": { "mode": "dark", "tokens": { "background": "#000000", "foreground": "#ffffff", "muted": "#333333", "mutedForeground": "#999999", "border": "#444444", "primary": "#0088ff", "danger": "#ff4444" } },
|
|
17
|
+
"viewport": { "width": 720, "height": 480 },
|
|
18
|
+
"capabilities": [
|
|
19
|
+
{ "name": "files.list", "limits": { "pageSize": 50, "callsPerMinute": 30 } },
|
|
20
|
+
{ "name": "files.metadata", "limits": { "callsPerMinute": 60 } }
|
|
21
|
+
],
|
|
22
|
+
"correlationId": "compat-workspace-file-search-001"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "compat-workspace-file-tree-001",
|
|
4
|
+
"instanceId": "compat-workspace-file-tree",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "panel",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": {
|
|
9
|
+
"slot": "panel",
|
|
10
|
+
"panelType": "workspace-files",
|
|
11
|
+
"title": "Files",
|
|
12
|
+
"data": { "root": { "id": "directory-root-001", "kind": "directory", "name": "workspace" } }
|
|
13
|
+
},
|
|
14
|
+
"context": {
|
|
15
|
+
"locale": "en-US",
|
|
16
|
+
"theme": { "mode": "light", "tokens": { "background": "#ffffff", "foreground": "#111111", "muted": "#eeeeee", "mutedForeground": "#666666", "border": "#dddddd", "primary": "#0066cc", "danger": "#cc0000" } },
|
|
17
|
+
"viewport": { "width": 360, "height": 720 },
|
|
18
|
+
"capabilities": [
|
|
19
|
+
{ "name": "files.list", "limits": { "pageSize": 50, "callsPerMinute": 30 } },
|
|
20
|
+
{ "name": "files.metadata", "limits": { "callsPerMinute": 60 } }
|
|
21
|
+
],
|
|
22
|
+
"correlationId": "compat-workspace-file-tree-001"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "request-empty",
|
|
4
|
+
"instanceId": "fixture-tool-result",
|
|
5
|
+
"revision": 2,
|
|
6
|
+
"slot": "tool-result",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": { "slot": "tool-result", "tool": { "name": "simulation.run", "callId": "call-empty", "status": "succeeded" }, "input": {}, "result": null },
|
|
9
|
+
"context": { "locale": "en-US", "theme": { "mode": "light", "tokens": { "background": "#fff", "foreground": "#111", "muted": "#eee", "mutedForeground": "#666", "border": "#ddd", "primary": "#06c", "danger": "#c00" } }, "viewport": { "width": 1, "height": 1 }, "capabilities": [], "correlationId": "fixture-empty" }
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "request-002",
|
|
4
|
+
"instanceId": "fixture-file-preview",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "file-preview",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": { "slot": "file-preview", "file": { "id": "file-001", "kind": "file", "name": "structure.cif", "extension": "cif", "mimeType": "chemical/x-cif", "size": 128 }, "preview": { "format": "text" } },
|
|
9
|
+
"context": { "locale": "en-US", "theme": { "mode": "dark", "tokens": { "background": "#000", "foreground": "#fff", "muted": "#333", "mutedForeground": "#999", "border": "#444", "primary": "#08f", "danger": "#f44" } }, "viewport": { "width": 640, "height": 480 }, "capabilities": [{ "name": "files.read", "limits": { "bytesPerRequest": 4096, "bytesPerRun": 8192, "callsPerMinute": 10 } }], "correlationId": "fixture-002" }
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "request-004",
|
|
4
|
+
"instanceId": "fixture-tool-result",
|
|
5
|
+
"revision": 3,
|
|
6
|
+
"slot": "tool-result",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": { "slot": "tool-result", "tool": { "name": "simulation.run", "callId": "call-001", "status": "succeeded" }, "input": { "model": "water" }, "result": { "status": "succeeded", "progress": 1 } },
|
|
9
|
+
"context": { "locale": "en-US", "theme": { "mode": "dark", "tokens": { "background": "#000", "foreground": "#fff", "muted": "#333", "mutedForeground": "#999", "border": "#444", "primary": "#08f", "danger": "#f44" } }, "viewport": { "width": 640, "height": 480 }, "capabilities": [], "correlationId": "fixture-004" }
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "request-large",
|
|
4
|
+
"instanceId": "fixture-panel",
|
|
5
|
+
"revision": 4,
|
|
6
|
+
"slot": "panel",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": { "slot": "panel", "panelType": "analysis-summary", "data": { "rows": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] } },
|
|
9
|
+
"context": { "locale": "en-US", "theme": { "mode": "light", "tokens": { "background": "#fff", "foreground": "#111", "muted": "#eee", "mutedForeground": "#666", "border": "#ddd", "primary": "#06c", "danger": "#c00" } }, "viewport": { "width": 1280, "height": 720 }, "capabilities": [], "correlationId": "fixture-large" }
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "schemaVersion": 1, "requestId": "bad", "instanceId": "bad", "revision": 0, "slot": "panel", "state": "complete", "content": { "slot": "tool-result" }, "context": {} }
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "request-003",
|
|
4
|
+
"instanceId": "fixture-panel",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "panel",
|
|
7
|
+
"state": "partial",
|
|
8
|
+
"content": { "slot": "panel", "panelType": "analysis-summary", "title": "Analysis", "data": { "rows": 3 } },
|
|
9
|
+
"context": { "locale": "zh-CN", "theme": { "mode": "light", "tokens": { "background": "#fff", "foreground": "#111", "muted": "#eee", "mutedForeground": "#666", "border": "#ddd", "primary": "#06c", "danger": "#c00" } }, "viewport": { "width": 640, "height": 480 }, "capabilities": [], "correlationId": "fixture-003" }
|
|
10
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "request-update-2",
|
|
4
|
+
"instanceId": "instance-update-1",
|
|
5
|
+
"revision": 2,
|
|
6
|
+
"slot": "tool-result",
|
|
7
|
+
"state": "partial",
|
|
8
|
+
"content": {
|
|
9
|
+
"slot": "tool-result",
|
|
10
|
+
"tool": {
|
|
11
|
+
"name": "literature__search",
|
|
12
|
+
"callId": "call-update-1",
|
|
13
|
+
"status": "running"
|
|
14
|
+
},
|
|
15
|
+
"input": { "query": "protein folding" },
|
|
16
|
+
"result": {
|
|
17
|
+
"papers": [
|
|
18
|
+
{ "id": "paper-001", "title": "Protein folding study 001" }
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"context": {
|
|
23
|
+
"locale": "zh-CN",
|
|
24
|
+
"theme": {
|
|
25
|
+
"mode": "dark",
|
|
26
|
+
"tokens": {
|
|
27
|
+
"background": "#101114",
|
|
28
|
+
"foreground": "#f7f7f8",
|
|
29
|
+
"muted": "#24262b",
|
|
30
|
+
"mutedForeground": "#a5a8b0",
|
|
31
|
+
"border": "#343740",
|
|
32
|
+
"primary": "#6d7cff",
|
|
33
|
+
"danger": "#f25f5c"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"viewport": { "width": 640, "height": 480 },
|
|
37
|
+
"capabilities": [],
|
|
38
|
+
"correlationId": "correlation-update-1"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"requestId": "request-001",
|
|
4
|
+
"instanceId": "fixture-tool-result",
|
|
5
|
+
"revision": 1,
|
|
6
|
+
"slot": "tool-result",
|
|
7
|
+
"state": "complete",
|
|
8
|
+
"content": { "slot": "tool-result", "tool": { "name": "simulation.run", "callId": "call-001", "status": "succeeded" }, "input": { "model": "water" }, "result": { "status": "succeeded" } },
|
|
9
|
+
"context": { "locale": "en-US", "theme": { "mode": "dark", "tokens": { "background": "#000", "foreground": "#fff", "muted": "#333", "mutedForeground": "#999", "border": "#444", "primary": "#08f", "danger": "#f44" } }, "viewport": { "width": 640, "height": 480 }, "capabilities": [], "correlationId": "fixture-001" }
|
|
10
|
+
}
|