@datalayer/core 1.1.66 → 1.2.10
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 +41 -18
- package/lib/api/constants.d.ts +1 -1
- package/lib/api/constants.js +1 -1
- package/lib/api/contents/attachments.js +3 -7
- package/lib/api/contents/datasets.d.ts +48 -0
- package/lib/api/contents/datasets.js +44 -7
- package/lib/api/contents/runtimeMounts.js +1 -1
- package/lib/api/contents/sandboxUid.d.ts +13 -45
- package/lib/api/contents/sandboxUid.js +14 -65
- package/lib/api/evals/client.d.ts +402 -0
- package/lib/api/evals/client.js +359 -0
- package/lib/api/evals/index.d.ts +10 -0
- package/lib/api/evals/index.js +18 -0
- package/lib/api/evals/request.d.ts +43 -0
- package/lib/api/evals/request.js +67 -0
- package/lib/api/evals/status.d.ts +27 -0
- package/lib/api/evals/status.js +122 -0
- package/lib/api/evals/types.d.ts +1335 -0
- package/lib/api/evals/types.js +5 -0
- package/lib/api/iam/connectedAgents.d.ts +29 -0
- package/lib/api/iam/connectedAgents.js +35 -0
- package/lib/api/iam/identityProviders.d.ts +76 -0
- package/lib/api/iam/identityProviders.js +187 -0
- package/lib/api/iam/index.d.ts +1 -0
- package/lib/api/iam/index.js +1 -0
- package/lib/api/iam/mcpPolicy.d.ts +102 -1
- package/lib/api/iam/mcpPolicy.js +38 -2
- package/lib/api/iam/profile.d.ts +17 -1
- package/lib/api/iam/profile.js +27 -0
- package/lib/api/iam/scimTokens.d.ts +79 -0
- package/lib/api/iam/scimTokens.js +141 -0
- package/lib/api/iam/secrets.js +9 -21
- package/lib/api/iam/trials.d.ts +38 -0
- package/lib/api/iam/trials.js +66 -0
- package/lib/api/index.d.ts +4 -0
- package/lib/api/index.js +4 -0
- package/lib/api/mcp/observability.d.ts +25 -9
- package/lib/api/mcp/observability.js +63 -50
- package/lib/api/orchestration/client.d.ts +53 -0
- package/lib/api/orchestration/client.js +105 -0
- package/lib/api/orchestration/events.d.ts +88 -0
- package/lib/api/orchestration/events.js +245 -0
- package/lib/api/orchestration/generated.d.ts +693 -0
- package/lib/api/orchestration/generated.js +687 -0
- package/lib/api/orchestration/index.d.ts +30 -0
- package/lib/api/orchestration/index.js +34 -0
- package/lib/api/orchestration/lifecycle.d.ts +39 -0
- package/lib/api/orchestration/lifecycle.js +57 -0
- package/lib/api/orchestration/measures.d.ts +55 -0
- package/lib/api/orchestration/measures.js +99 -0
- package/lib/api/otel/dashboards.d.ts +56 -0
- package/lib/api/otel/dashboards.js +50 -0
- package/lib/api/otel/index.d.ts +1 -0
- package/lib/api/otel/index.js +1 -0
- package/lib/api/otel/metrics.d.ts +16 -0
- package/lib/api/otel/metrics.js +15 -0
- package/lib/api/scheduler/client.d.ts +32 -0
- package/lib/api/scheduler/client.js +42 -0
- package/lib/api/scheduler/index.d.ts +8 -0
- package/lib/api/scheduler/index.js +16 -0
- package/lib/api/scheduler/request.d.ts +28 -0
- package/lib/api/scheduler/request.js +50 -0
- package/lib/api/scheduler/types.d.ts +88 -0
- package/lib/api/scheduler/types.js +5 -0
- package/lib/api/spacer/comments.d.ts +97 -0
- package/lib/api/spacer/comments.js +45 -0
- package/lib/api/spacer/index.d.ts +9 -0
- package/lib/api/spacer/index.js +17 -0
- package/lib/api/spacer/notebooks.d.ts +33 -0
- package/lib/api/spacer/notebooks.js +39 -0
- package/lib/api/spacer/request.d.ts +25 -0
- package/lib/api/spacer/request.js +46 -0
- package/lib/api/spacer/spaces.d.ts +68 -0
- package/lib/api/spacer/spaces.js +45 -0
- package/lib/api/utils/validation.d.ts +4 -4
- package/lib/api/utils/validation.js +10 -7
- package/lib/client/constants.d.ts +1 -0
- package/lib/client/constants.js +1 -0
- package/lib/components/animation/AnimatedText.d.ts +1 -44
- package/lib/components/animation/AnimatedText.js +6 -122
- package/lib/components/anonymous/AnonymousKeyExpired.d.ts +56 -0
- package/lib/components/anonymous/AnonymousKeyExpired.js +96 -0
- package/lib/components/anonymous/AnonymousKeyTimer.d.ts +63 -0
- package/lib/components/anonymous/AnonymousKeyTimer.js +140 -0
- package/lib/components/anonymous/index.d.ts +7 -0
- package/lib/components/anonymous/index.js +15 -0
- package/lib/components/avatars/UserAvatar.d.ts +7 -1
- package/lib/components/avatars/UserAvatar.js +15 -1
- package/lib/components/billing/BillingEntitySelect.d.ts +6 -0
- package/lib/components/billing/BillingEntitySelect.js +49 -10
- package/lib/components/billing/eligibility.d.ts +22 -0
- package/lib/components/billing/eligibility.js +27 -0
- package/lib/components/billing/index.d.ts +1 -0
- package/lib/components/billing/index.js +1 -0
- package/lib/components/collaboration/LiveEditorCollaborators.d.ts +5 -0
- package/lib/components/collaboration/LiveEditorCollaborators.js +3 -1
- package/lib/components/display/DatalayerBox.d.ts +2 -3
- package/lib/components/display/DatalayerBox.js +1 -1
- package/lib/components/display/NavLink.js +3 -2
- package/lib/components/labels/StatusLabels.d.ts +2 -10
- package/lib/components/labels/StatusLabels.js +2 -26
- package/lib/components/principal/PrincipalAppearance.d.ts +21 -42
- package/lib/components/principal/PrincipalAppearance.js +232 -174
- package/lib/components/principal/PrincipalAvatar.d.ts +8 -1
- package/lib/components/principal/PrincipalAvatar.js +2 -2
- package/lib/components/principal/PrincipalDetailsOverlay.d.ts +8 -1
- package/lib/components/principal/PrincipalDetailsOverlay.js +2 -2
- package/lib/components/screencapture/Screencapture.js +46 -3
- package/lib/components/sharing/ShareAccessComponent.d.ts +45 -4
- package/lib/components/sharing/ShareAccessComponent.js +110 -78
- package/lib/components/sharing/SharingEditor.d.ts +5 -1
- package/lib/components/sharing/SharingEditor.js +9 -4
- package/lib/components/sharing/index.d.ts +1 -0
- package/lib/components/sharing/index.js +1 -0
- package/lib/components/sharing/sandboxSharing.d.ts +26 -0
- package/lib/components/sharing/sandboxSharing.js +41 -0
- package/lib/components/spaces/SpaceDetailsOverlay.d.ts +39 -0
- package/lib/components/spaces/SpaceDetailsOverlay.js +80 -0
- package/lib/components/spaces/SpaceDisplay.d.ts +38 -0
- package/lib/components/spaces/SpaceDisplay.js +92 -0
- package/lib/components/spaces/index.d.ts +4 -0
- package/lib/components/spaces/index.js +7 -0
- package/lib/components/spaces/spaceDisplayModel.d.ts +93 -0
- package/lib/components/spaces/spaceDisplayModel.js +170 -0
- package/lib/hooks/cacheConverters.d.ts +0 -7
- package/lib/hooks/cacheConverters.js +0 -25
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +1 -0
- package/lib/hooks/useBillingEntityStore.js +3 -0
- package/lib/hooks/useCache.d.ts +168 -25
- package/lib/hooks/useCache.js +1424 -307
- package/lib/hooks/useContents.d.ts +22 -1
- package/lib/hooks/useContents.js +90 -21
- package/lib/hooks/useMcp.d.ts +87 -1
- package/lib/hooks/useMcp.js +247 -12
- package/lib/hooks/useNavigate.d.ts +41 -3
- package/lib/hooks/useNavigate.js +106 -52
- package/lib/hooks/usePrincipalCacheStore.js +3 -0
- package/lib/hooks/usePrincipalStore.js +3 -0
- package/lib/hooks/useSpaceCacheStore.d.ts +50 -0
- package/lib/hooks/useSpaceCacheStore.js +85 -0
- package/lib/models/CreditsDTO.d.ts +6 -5
- package/lib/models/CreditsDTO.js +7 -5
- package/lib/models/McpBinding.d.ts +6 -0
- package/lib/models/Organization.d.ts +69 -0
- package/lib/models/Organization.js +96 -0
- package/lib/models/Secret.d.ts +1 -2
- package/lib/models/Secret.js +2 -18
- package/lib/models/StartedBy.d.ts +34 -0
- package/lib/models/StartedBy.js +36 -0
- package/lib/models/Team.d.ts +2 -0
- package/lib/models/Team.js +2 -0
- package/lib/models/User.d.ts +4 -0
- package/lib/models/User.js +3 -0
- package/lib/models/UserSettings.d.ts +13 -0
- package/lib/models/UserSettings.js +9 -0
- package/lib/models/contents/__fixtures__/v1-contracts.json +158 -30
- package/lib/navigation/components.js +2 -3
- package/lib/routes/publicPaths.js +4 -0
- package/lib/state/index.d.ts +1 -0
- package/lib/state/index.js +1 -0
- package/lib/state/sessionEnd.d.ts +55 -0
- package/lib/state/sessionEnd.js +162 -0
- package/lib/state/substates/CoreState.js +3 -3
- package/lib/state/substates/IAMState.js +7 -0
- package/lib/state/substates/LayoutState.js +12 -0
- package/lib/state/substates/ProfileState.d.ts +1 -0
- package/lib/state/substates/ProfileState.js +1 -0
- package/lib/utils/Lazy.d.ts +20 -0
- package/lib/utils/Lazy.js +32 -6
- package/lib/utils/Screencapture.js +3 -0
- package/lib/utils/WithSuspense.d.ts +11 -1
- package/lib/utils/WithSuspense.js +11 -1
- package/lib/views/mcp/AdmittedClients.d.ts +44 -0
- package/lib/views/mcp/AdmittedClients.js +59 -0
- package/lib/views/mcp/ApprovalQueue.d.ts +66 -0
- package/lib/views/mcp/ApprovalQueue.js +95 -0
- package/lib/views/mcp/ConnectedAgents.js +38 -3
- package/lib/views/mcp/EnterpriseConsole.d.ts +1 -1
- package/lib/views/mcp/EnterpriseConsole.js +23 -1
- package/lib/views/mcp/IdentityProviders.d.ts +33 -0
- package/lib/views/mcp/IdentityProviders.js +299 -0
- package/lib/views/mcp/McpDashboard.js +90 -7
- package/lib/views/mcp/McpObservability.d.ts +30 -1
- package/lib/views/mcp/McpObservability.js +105 -19
- package/lib/views/mcp/NotebookRuns.d.ts +39 -0
- package/lib/views/mcp/NotebookRuns.js +44 -0
- package/lib/views/mcp/OrganizationPolicy.js +2 -1
- package/lib/views/mcp/PersonalPolicy.js +2 -1
- package/lib/views/mcp/PolicyForm.d.ts +17 -1
- package/lib/views/mcp/PolicyForm.js +25 -3
- package/lib/views/mcp/PolicyHistory.d.ts +13 -0
- package/lib/views/mcp/PolicyHistory.js +14 -1
- package/lib/views/mcp/RunDetail.d.ts +87 -0
- package/lib/views/mcp/RunDetail.js +186 -0
- package/lib/views/mcp/ScimProvisioning.d.ts +54 -0
- package/lib/views/mcp/ScimProvisioning.js +173 -0
- package/lib/views/mcp/TeamPolicies.js +66 -5
- package/lib/views/mcp/ToolAccess.d.ts +60 -0
- package/lib/views/mcp/ToolAccess.js +101 -0
- package/lib/views/mcp/TraceTimeline.d.ts +81 -0
- package/lib/views/mcp/TraceTimeline.js +132 -0
- package/lib/views/mcp/index.d.ts +5 -0
- package/lib/views/mcp/index.js +5 -0
- package/lib/views/otel/simpleAuthStore.js +3 -0
- package/lib/views/secrets/SecretEdit.js +3 -2
- package/lib/views/secrets/SecretNew.js +5 -1
- package/package.json +269 -264
- package/scripts/generate-mcp-types.py +1 -1
- package/scripts/generate-orchestration-types.py +920 -0
package/package.json
CHANGED
|
@@ -1,267 +1,272 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
],
|
|
29
|
-
"main": "lib/index.js",
|
|
30
|
-
"types": "lib/index.d.ts",
|
|
31
|
-
"style": "style/index.css",
|
|
32
|
-
"repository": {
|
|
33
|
-
"type": "git",
|
|
34
|
-
"url": "git+https://github.com/datalayer/core.git"
|
|
35
|
-
},
|
|
36
|
-
"homepage": "https://github.com/datalayer/core",
|
|
37
|
-
"bugs": {
|
|
38
|
-
"url": "https://github.com/datalayer/core/issues"
|
|
39
|
-
},
|
|
40
|
-
"sideEffects": [
|
|
41
|
-
"style/*.css",
|
|
42
|
-
"style/index.js"
|
|
43
|
-
],
|
|
44
|
-
"styleModule": "style/index.js",
|
|
45
|
-
"publishConfig": {
|
|
46
|
-
"access": "public"
|
|
47
|
-
},
|
|
48
|
-
"scripts": {
|
|
49
|
-
"dev": "vite",
|
|
50
|
-
"clean": "rimraf lib dist build tsconfig.tsbuildinfo",
|
|
51
|
-
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
|
|
52
|
-
"clean:dist": "rimraf dist",
|
|
53
|
-
"clean:cache": "rimraf node_modules/.vite",
|
|
54
|
-
"build": "npm run clean && gulp resources-to-lib && tsc -b && vite build && vite build --config vite.cli-login.config.ts",
|
|
55
|
-
"build:lib": "npm run clean:lib && gulp resources-to-lib && tsc -b && node scripts/fix-esm-imports.cjs",
|
|
56
|
-
"build:cli-login": "vite build --config vite.cli-login.config.ts",
|
|
57
|
-
"build:types": "npm run clean:lib && tsc -b",
|
|
58
|
-
"generate:contents": "python scripts/generate-contents-types.py",
|
|
59
|
-
"check:contents-generated": "python scripts/generate-contents-types.py --check",
|
|
60
|
-
"generate:mcp": "python scripts/generate-mcp-types.py",
|
|
61
|
-
"check:mcp-generated": "python scripts/generate-mcp-types.py --check",
|
|
62
|
-
"build:nextjs": "npm run build --workspace=nextjj-example",
|
|
63
|
-
"build:examples": "npm run build:nextjs",
|
|
64
|
-
"build:all": "npm run build && npm run build:examples",
|
|
65
|
-
"lint": "eslint . --quiet",
|
|
66
|
-
"lint:fix": "eslint . --fix",
|
|
67
|
-
"lint:all": "npm run lint && npm run lint --workspaces --if-present",
|
|
68
|
-
"lint:fix:all": "npm run lint:fix && npm run lint:fix --workspaces --if-present",
|
|
69
|
-
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,css,json,md}\" \"examples/**/*.{js,jsx,ts,tsx,css,json,md,mjs}\"",
|
|
70
|
-
"format:check": "prettier --check \"src/**/*.{js,jsx,ts,tsx,css,json,md}\" \"examples/**/*.{js,jsx,ts,tsx,css,json,md,mjs}\"",
|
|
71
|
-
"format:fix": "npm run format",
|
|
72
|
-
"format:all": "npm run format && npm run format --workspaces --if-present",
|
|
73
|
-
"format:check:all": "npm run format:check && npm run format:check --workspaces --if-present",
|
|
74
|
-
"format:fix:all": "npm run format:all",
|
|
75
|
-
"type-check": "tsc --noEmit",
|
|
76
|
-
"type-check:all": "npm run type-check && npm run type-check --workspaces --if-present",
|
|
77
|
-
"check": "npm run format:check && npm run lint:all && npm run type-check:all",
|
|
78
|
-
"check:fix": "npm run format:all && npm run lint:fix && npm run type-check:all",
|
|
79
|
-
"preview": "vite preview",
|
|
80
|
-
"start": "vite",
|
|
81
|
-
"test": "vitest run --project=unit --project=general",
|
|
82
|
-
"test:watch": "vitest --project=unit --project=general",
|
|
83
|
-
"test:ui": "vitest --ui --project=unit --project=general",
|
|
84
|
-
"test:coverage": "vitest run --coverage --project=unit --project=general",
|
|
85
|
-
"test:unit": "vitest run --project=unit",
|
|
86
|
-
"test:integration": "vitest run --project=integration",
|
|
87
|
-
"test:all": "vitest run",
|
|
88
|
-
"storybook": "storybook dev -p 6006",
|
|
89
|
-
"build-storybook": "storybook build",
|
|
90
|
-
"typedoc": "typedoc --options typedoc.json --out docs/docs/typescript_api",
|
|
91
|
-
"docs": "make typedoc && make pydoc && cd docs && npm install && npm run build",
|
|
92
|
-
"watch:lib": "run-p 'watch:lib:*'",
|
|
93
|
-
"watch:lib:res": "gulp resources-to-lib-watch",
|
|
94
|
-
"watch:lib:src": "tsc -b -w",
|
|
95
|
-
"type-check:watch": "tsc -b -w --noEmit",
|
|
96
|
-
"examples": "run-p jupyter:start examples:vite",
|
|
97
|
-
"examples:vite": "VITE_DATALAYER_IAM_URL=http://localhost:8888 vite --config vite.examples.config.ts",
|
|
98
|
-
"examples:nextjs": "npm run dev --workspace=nextjj-example",
|
|
99
|
-
"jupyter:start": "./dev/sh/start-jupyter-server.sh",
|
|
100
|
-
"prepare": "husky || true",
|
|
101
|
-
"kill": "./dev/sh/kill.sh || true",
|
|
102
|
-
"sync:jupyter": "bash scripts/sync-jupyter.sh",
|
|
103
|
-
"sync:jupyter:watch": "bash scripts/sync-jupyter.sh --watch",
|
|
104
|
-
"create:patches": "bash scripts/create-patches.sh",
|
|
105
|
-
"apply:patches": "bash scripts/apply-patches.sh",
|
|
106
|
-
"examples:fresh": "npm run clean:cache && npm run examples",
|
|
107
|
-
"rebuild:fresh": "npm run create:patches && npm install && npm run build && npm run clean:cache"
|
|
108
|
-
},
|
|
109
|
-
"dependencies": {
|
|
110
|
-
"@datalayer/design": "^1.0.0",
|
|
111
|
-
"@datalayer/icons-react": "^1.0.7",
|
|
112
|
-
"@datalayer/jupyter-lexical": "^1.0.16",
|
|
113
|
-
"@datalayer/jupyter-react": "^2.0.7",
|
|
114
|
-
"@datalayer/primer-addons": "^1.0.15",
|
|
115
|
-
"@datalayer/primer-rjsf": "^1.0.3",
|
|
116
|
-
"@fluentui/react": "^8.125.3",
|
|
117
|
-
"@jupyter-widgets/base-manager": "^1.0.12",
|
|
118
|
-
"@jupyter-widgets/schema": "^0.5.6",
|
|
119
|
-
"@jupyterlab/apputils": "^4.6.0",
|
|
120
|
-
"@jupyterlab/cells": "^4.5.0",
|
|
121
|
-
"@jupyterlab/codeeditor": "^4.5.0",
|
|
122
|
-
"@jupyterlab/coreutils": "^6.0.0",
|
|
123
|
-
"@jupyterlab/documentsearch": "^4.5.0",
|
|
124
|
-
"@jupyterlab/rendermime": "^4.5.0",
|
|
125
|
-
"@jupyterlab/services": "^7.0.0",
|
|
126
|
-
"@jupyterlab/translation": "^4.5.0",
|
|
127
|
-
"@jupyterlab/ui-components": "^4.5.0",
|
|
128
|
-
"@lumino/commands": "^2.3.3",
|
|
129
|
-
"@lumino/coreutils": "^2.2.2",
|
|
130
|
-
"@lumino/datagrid": "^2.5.3",
|
|
131
|
-
"@lumino/disposable": "^2.1.5",
|
|
132
|
-
"@lumino/polling": "^2.1.5",
|
|
133
|
-
"@lumino/signaling": "^2.1.5",
|
|
134
|
-
"@lumino/widgets": "^2.7.3",
|
|
135
|
-
"@primer/behaviors": "^1.8.4",
|
|
136
|
-
"@primer/brand-primitives": "^0.51.0",
|
|
137
|
-
"@primer/css": "^21.5.1",
|
|
138
|
-
"@primer/octicons-react": "^19.29.1",
|
|
139
|
-
"@primer/primitives": "^10.7.0",
|
|
140
|
-
"@primer/react": "^37.31.0",
|
|
141
|
-
"@primer/react-brand": "^0.58.0",
|
|
142
|
-
"@stripe/react-stripe-js": "6.8.2",
|
|
143
|
-
"@stripe/stripe-js": "9.15.0",
|
|
144
|
-
"@styled-system/css": "^5.1.5",
|
|
145
|
-
"@tailwindcss/vite": "^4.1.13",
|
|
146
|
-
"@tanstack/react-query": "^5.90.6",
|
|
147
|
-
"@toon-format/toon": "^1.3.0",
|
|
148
|
-
"ansi-to-html": "^0.7.2",
|
|
149
|
-
"axios": "^1.7.7",
|
|
150
|
-
"boring-avatars": "^2.0.1",
|
|
151
|
-
"date-fns": "^2.29.3",
|
|
152
|
-
"deepmerge": "^4.3.1",
|
|
153
|
-
"diff": "^8.0.2",
|
|
154
|
-
"echarts": "^5.5.0",
|
|
155
|
-
"echarts-for-react": "^3.0.2",
|
|
156
|
-
"html2canvas": "^1.4.1",
|
|
157
|
-
"jwt-decode": "^2.2.0",
|
|
158
|
-
"localforage": "^1.10.0",
|
|
159
|
-
"lucide-react": "^0.542.0",
|
|
160
|
-
"marked": "^4.0.10",
|
|
161
|
-
"mock-socket": "^9.3.1",
|
|
162
|
-
"react": "19.2.8",
|
|
163
|
-
"react-confetti": "^6.4.0",
|
|
164
|
-
"react-dom": "19.2.8",
|
|
165
|
-
"react-is": "19.2.8",
|
|
166
|
-
"react-toastify": "^11.0.5",
|
|
167
|
-
"streamdown": "^1.6.6",
|
|
168
|
-
"styled-system": "^5.1.5",
|
|
169
|
-
"tailwind-merge": "^3.3.1",
|
|
170
|
-
"tailwindcss": "^4.1.13",
|
|
171
|
-
"tslib": "^2.8.1",
|
|
172
|
-
"tus-js-client": "^4.2.3",
|
|
173
|
-
"tw-animate-css": "^1.4.0",
|
|
174
|
-
"ulid": "^2.3.0",
|
|
175
|
-
"unique-names-generator": "^4.7.1",
|
|
176
|
-
"usehooks-ts": "3.1.1",
|
|
177
|
-
"uuid": "^13.0.0",
|
|
178
|
-
"validator": "^13.7.0",
|
|
179
|
-
"zod": "^4.1.13",
|
|
180
|
-
"zod-to-json-schema": "^3.25.0",
|
|
181
|
-
"zustand": "^4.4.1"
|
|
182
|
-
},
|
|
183
|
-
"peerDependencies": {
|
|
184
|
-
"react-router-dom": "^6.0.0"
|
|
185
|
-
},
|
|
186
|
-
"peerDependenciesMeta": {
|
|
187
|
-
"react-router-dom": {
|
|
188
|
-
"optional": true
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
"devDependencies": {
|
|
192
|
-
"@chromatic-com/storybook": "^4.1.0",
|
|
193
|
-
"@eslint/js": "^10.0.1",
|
|
194
|
-
"@storybook/addon-a11y": "^9.1.1",
|
|
195
|
-
"@storybook/addon-docs": "^9.1.1",
|
|
196
|
-
"@storybook/addon-onboarding": "^9.1.1",
|
|
197
|
-
"@storybook/addon-vitest": "^9.1.1",
|
|
198
|
-
"@storybook/builder-vite": "^9.1.1",
|
|
199
|
-
"@storybook/react-vite": "^9.1.1",
|
|
200
|
-
"@tailwindcss/postcss": "^4.1.16",
|
|
201
|
-
"@types/node": "^20.11.0",
|
|
202
|
-
"@types/react": "19.2.18",
|
|
203
|
-
"@types/react-dom": "19.2.5",
|
|
204
|
-
"@vitejs/plugin-react": "^4.5.2",
|
|
205
|
-
"@vitest/browser": "^3.2.4",
|
|
206
|
-
"@vitest/coverage-v8": "^3.2.4",
|
|
207
|
-
"abort-controller": "^3.0.0",
|
|
208
|
-
"autoprefixer": "^10.4.21",
|
|
209
|
-
"crypto-browserify": "^3.12.1",
|
|
210
|
-
"dotenv": "^17.2.2",
|
|
211
|
-
"eslint": "^10.9.1",
|
|
212
|
-
"eslint-config-prettier": "^10.1.8",
|
|
213
|
-
"eslint-plugin-prettier": "^5.5.6",
|
|
214
|
-
"eslint-plugin-react": "^7.37.5",
|
|
215
|
-
"eslint-plugin-react-hooks": "^7.1.1",
|
|
216
|
-
"eslint-plugin-react-refresh": "^0.5.5",
|
|
217
|
-
"eslint-plugin-storybook": "^10.5.10",
|
|
218
|
-
"globals": "^16.2.0",
|
|
219
|
-
"gulp": "^4.0.2",
|
|
220
|
-
"gulp-append-prepend": "^1.0.8",
|
|
221
|
-
"gulp-filter": "^6.0.0",
|
|
222
|
-
"gulp-watch": "^5.0.1",
|
|
223
|
-
"husky": "^9.1.7",
|
|
224
|
-
"jsdom": "^26.0.0",
|
|
225
|
-
"lint-staged": "^16.1.5",
|
|
226
|
-
"npm-run-all": "^4.1.5",
|
|
227
|
-
"patch-package": "^8.0.0",
|
|
228
|
-
"playwright": "^1.53.2",
|
|
229
|
-
"prettier": "^3.6.2",
|
|
230
|
-
"react-router-dom": "7.18.3",
|
|
231
|
-
"rimraf": "^6.1.3",
|
|
232
|
-
"storybook": "^9.1.1",
|
|
233
|
-
"typedoc-plugin-markdown": "^4.0.0",
|
|
234
|
-
"typescript": "5.9.3",
|
|
235
|
-
"typescript-eslint": "^8.34.1",
|
|
236
|
-
"vite": "7.3.6",
|
|
237
|
-
"vite-plugin-treat-umd-as-commonjs": "^0.1.4",
|
|
238
|
-
"vitest": "^3.2.4"
|
|
239
|
-
},
|
|
240
|
-
"overrides": {
|
|
241
|
-
"@microsoft/fast-colors": "5.3.1",
|
|
242
|
-
"@microsoft/fast-components": "2.30.6",
|
|
243
|
-
"@microsoft/fast-element": "1.13.0",
|
|
244
|
-
"@microsoft/fast-foundation": "2.49.6",
|
|
245
|
-
"@microsoft/fast-react-wrapper": "0.3.24",
|
|
246
|
-
"@microsoft/fast-web-utilities": "5.4.1",
|
|
247
|
-
"@microsoft/load-themed-styles": "1.10.295",
|
|
248
|
-
"@types/react": "19.2.18",
|
|
249
|
-
"@types/react-dom": "19.2.5",
|
|
250
|
-
"pyodide": "0.29.4",
|
|
251
|
-
"react": "19.2.8",
|
|
252
|
-
"react-dom": "19.2.8",
|
|
253
|
-
"typescript": "5.9.3"
|
|
254
|
-
},
|
|
255
|
-
"lint-staged": {
|
|
256
|
-
"src/**/*.{js,jsx,ts,tsx}": [
|
|
257
|
-
"prettier --write",
|
|
258
|
-
"eslint --fix"
|
|
2
|
+
"name": "@datalayer/core",
|
|
3
|
+
"version": "1.2.10",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"workspaces": [
|
|
6
|
+
".",
|
|
7
|
+
"examples/*"
|
|
8
|
+
],
|
|
9
|
+
"author": {
|
|
10
|
+
"name": "Datalayer",
|
|
11
|
+
"email": "info@datalayer.io"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"datalayer",
|
|
15
|
+
"ai",
|
|
16
|
+
"data",
|
|
17
|
+
"jupyter",
|
|
18
|
+
"react",
|
|
19
|
+
"run",
|
|
20
|
+
"storybook"
|
|
21
|
+
],
|
|
22
|
+
"files": [
|
|
23
|
+
"lib/**/*.{css,d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
|
|
24
|
+
"style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
|
|
25
|
+
"schema/*.json",
|
|
26
|
+
"patches/",
|
|
27
|
+
"scripts/"
|
|
259
28
|
],
|
|
260
|
-
"
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
29
|
+
"main": "lib/index.js",
|
|
30
|
+
"types": "lib/index.d.ts",
|
|
31
|
+
"style": "style/index.css",
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/datalayer/core.git"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://github.com/datalayer/core",
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/datalayer/core/issues"
|
|
39
|
+
},
|
|
40
|
+
"sideEffects": [
|
|
41
|
+
"style/*.css",
|
|
42
|
+
"style/index.js"
|
|
43
|
+
],
|
|
44
|
+
"styleModule": "style/index.js",
|
|
45
|
+
"publishConfig": {
|
|
46
|
+
"access": "public"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"dev": "vite",
|
|
50
|
+
"clean": "rimraf lib dist build tsconfig.tsbuildinfo",
|
|
51
|
+
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
|
|
52
|
+
"clean:dist": "rimraf dist",
|
|
53
|
+
"clean:cache": "rimraf node_modules/.vite",
|
|
54
|
+
"build": "npm run clean && gulp resources-to-lib && tsc -b && vite build && vite build --config vite.cli-login.config.ts",
|
|
55
|
+
"build:lib": "npm run clean:lib && gulp resources-to-lib && tsc -b && node scripts/fix-esm-imports.cjs",
|
|
56
|
+
"build:cli-login": "vite build --config vite.cli-login.config.ts",
|
|
57
|
+
"build:types": "npm run clean:lib && tsc -b",
|
|
58
|
+
"generate:contents": "python scripts/generate-contents-types.py",
|
|
59
|
+
"check:contents-generated": "python scripts/generate-contents-types.py --check",
|
|
60
|
+
"generate:mcp": "python scripts/generate-mcp-types.py",
|
|
61
|
+
"check:mcp-generated": "python scripts/generate-mcp-types.py --check",
|
|
62
|
+
"generate:orchestration": "python scripts/generate-orchestration-types.py",
|
|
63
|
+
"check:orchestration-generated": "python scripts/generate-orchestration-types.py --check",
|
|
64
|
+
"build:nextjs": "npm run build --workspace=nextjj-example",
|
|
65
|
+
"build:examples": "npm run build:nextjs",
|
|
66
|
+
"build:all": "npm run build && npm run build:examples",
|
|
67
|
+
"lint": "eslint . --quiet",
|
|
68
|
+
"lint:fix": "eslint . --fix",
|
|
69
|
+
"lint:all": "npm run lint && npm run lint --workspaces --if-present",
|
|
70
|
+
"lint:fix:all": "npm run lint:fix && npm run lint:fix --workspaces --if-present",
|
|
71
|
+
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,css,json,md}\" \"examples/**/*.{js,jsx,ts,tsx,css,json,md,mjs}\"",
|
|
72
|
+
"format:check": "prettier --check \"src/**/*.{js,jsx,ts,tsx,css,json,md}\" \"examples/**/*.{js,jsx,ts,tsx,css,json,md,mjs}\"",
|
|
73
|
+
"format:fix": "npm run format",
|
|
74
|
+
"format:all": "npm run format && npm run format --workspaces --if-present",
|
|
75
|
+
"format:check:all": "npm run format:check && npm run format:check --workspaces --if-present",
|
|
76
|
+
"format:fix:all": "npm run format:all",
|
|
77
|
+
"type-check": "tsc --noEmit",
|
|
78
|
+
"type-check:all": "npm run type-check && npm run type-check --workspaces --if-present",
|
|
79
|
+
"check": "npm run format:check && npm run lint:all && npm run type-check:all",
|
|
80
|
+
"check:fix": "npm run format:all && npm run lint:fix && npm run type-check:all",
|
|
81
|
+
"preview": "vite preview",
|
|
82
|
+
"start": "vite",
|
|
83
|
+
"test": "vitest run --project=unit --project=general",
|
|
84
|
+
"test:watch": "vitest --project=unit --project=general",
|
|
85
|
+
"test:ui": "vitest --ui --project=unit --project=general",
|
|
86
|
+
"test:coverage": "vitest run --coverage --project=unit --project=general",
|
|
87
|
+
"test:unit": "vitest run --project=unit",
|
|
88
|
+
"test:integration": "vitest run --project=integration",
|
|
89
|
+
"test:all": "vitest run",
|
|
90
|
+
"storybook": "storybook dev -p 6006",
|
|
91
|
+
"build-storybook": "storybook build",
|
|
92
|
+
"typedoc": "typedoc --options typedoc.json --out docs/docs/typescript_api",
|
|
93
|
+
"docs": "make typedoc && make pydoc && cd docs && npm install && npm run build",
|
|
94
|
+
"watch:lib": "run-p 'watch:lib:*'",
|
|
95
|
+
"watch:lib:res": "gulp resources-to-lib-watch",
|
|
96
|
+
"watch:lib:src": "tsc -b -w",
|
|
97
|
+
"type-check:watch": "tsc -b -w --noEmit",
|
|
98
|
+
"examples": "run-p jupyter:start examples:vite",
|
|
99
|
+
"examples:vite": "VITE_DATALAYER_IAM_URL=http://localhost:8888 vite --config vite.examples.config.ts",
|
|
100
|
+
"examples:nextjs": "npm run dev --workspace=nextjj-example",
|
|
101
|
+
"jupyter:start": "./dev/sh/start-jupyter-server.sh",
|
|
102
|
+
"prepare": "husky || true",
|
|
103
|
+
"kill": "./dev/sh/kill.sh || true",
|
|
104
|
+
"sync:jupyter": "bash scripts/sync-jupyter.sh",
|
|
105
|
+
"sync:jupyter:watch": "bash scripts/sync-jupyter.sh --watch",
|
|
106
|
+
"create:patches": "bash scripts/create-patches.sh",
|
|
107
|
+
"apply:patches": "bash scripts/apply-patches.sh",
|
|
108
|
+
"examples:fresh": "npm run clean:cache && npm run examples",
|
|
109
|
+
"rebuild:fresh": "npm run create:patches && npm install && npm run build && npm run clean:cache"
|
|
110
|
+
},
|
|
111
|
+
"dependencies": {
|
|
112
|
+
"@datalayer/design": "^1.0.0",
|
|
113
|
+
"@datalayer/icons-react": "^1.0.7",
|
|
114
|
+
"@datalayer/jupyter-lexical": "^1.0.16",
|
|
115
|
+
"@datalayer/jupyter-react": "^2.0.7",
|
|
116
|
+
"@datalayer/primer-addons": "^1.0.15",
|
|
117
|
+
"@datalayer/primer-rjsf": "^1.0.3",
|
|
118
|
+
"@fluentui/react": "^8.125.3",
|
|
119
|
+
"@jupyter-widgets/base-manager": "^1.0.12",
|
|
120
|
+
"@jupyter-widgets/schema": "^0.5.6",
|
|
121
|
+
"@jupyterlab/apputils": "^4.6.0",
|
|
122
|
+
"@jupyterlab/cells": "^4.5.0",
|
|
123
|
+
"@jupyterlab/codeeditor": "^4.5.0",
|
|
124
|
+
"@jupyterlab/coreutils": "^6.0.0",
|
|
125
|
+
"@jupyterlab/documentsearch": "^4.5.0",
|
|
126
|
+
"@jupyterlab/rendermime": "^4.5.0",
|
|
127
|
+
"@jupyterlab/services": "^7.0.0",
|
|
128
|
+
"@jupyterlab/translation": "^4.5.0",
|
|
129
|
+
"@jupyterlab/ui-components": "^4.5.0",
|
|
130
|
+
"@lumino/commands": "^2.3.3",
|
|
131
|
+
"@lumino/coreutils": "^2.2.2",
|
|
132
|
+
"@lumino/datagrid": "^2.5.3",
|
|
133
|
+
"@lumino/disposable": "^2.1.5",
|
|
134
|
+
"@lumino/polling": "^2.1.5",
|
|
135
|
+
"@lumino/signaling": "^2.1.5",
|
|
136
|
+
"@lumino/widgets": "^2.7.3",
|
|
137
|
+
"@primer/behaviors": "^1.8.4",
|
|
138
|
+
"@primer/brand-primitives": "^0.51.0",
|
|
139
|
+
"@primer/css": "^21.5.1",
|
|
140
|
+
"@primer/octicons-react": "^19.35.0",
|
|
141
|
+
"@primer/primitives": "^10.7.0",
|
|
142
|
+
"@primer/react": "^37.31.0",
|
|
143
|
+
"@primer/react-brand": "^0.58.0",
|
|
144
|
+
"@stripe/react-stripe-js": "6.8.2",
|
|
145
|
+
"@stripe/stripe-js": "9.15.0",
|
|
146
|
+
"@styled-system/css": "^5.1.5",
|
|
147
|
+
"@tailwindcss/vite": "^4.1.13",
|
|
148
|
+
"@tanstack/react-query": "^5.90.6",
|
|
149
|
+
"@toon-format/toon": "^1.3.0",
|
|
150
|
+
"ansi-to-html": "^0.7.2",
|
|
151
|
+
"axios": "^1.7.7",
|
|
152
|
+
"boring-avatars": "^2.0.1",
|
|
153
|
+
"date-fns": "^2.29.3",
|
|
154
|
+
"deepmerge": "^4.3.1",
|
|
155
|
+
"diff": "^8.0.2",
|
|
156
|
+
"echarts": "^5.5.0",
|
|
157
|
+
"echarts-for-react": "^3.0.2",
|
|
158
|
+
"html2canvas": "^1.4.1",
|
|
159
|
+
"jwt-decode": "^2.2.0",
|
|
160
|
+
"localforage": "^1.10.0",
|
|
161
|
+
"lucide-react": "^0.542.0",
|
|
162
|
+
"marked": "^4.0.10",
|
|
163
|
+
"mock-socket": "^9.3.1",
|
|
164
|
+
"react": "19.2.8",
|
|
165
|
+
"react-confetti": "^6.4.0",
|
|
166
|
+
"react-dom": "19.2.8",
|
|
167
|
+
"react-is": "19.2.8",
|
|
168
|
+
"react-toastify": "^11.0.5",
|
|
169
|
+
"streamdown": "^1.6.6",
|
|
170
|
+
"styled-system": "^5.1.5",
|
|
171
|
+
"tailwind-merge": "^3.3.1",
|
|
172
|
+
"tailwindcss": "^4.1.13",
|
|
173
|
+
"tslib": "^2.8.1",
|
|
174
|
+
"tus-js-client": "^4.2.3",
|
|
175
|
+
"tw-animate-css": "^1.4.0",
|
|
176
|
+
"ulid": "^2.3.0",
|
|
177
|
+
"unique-names-generator": "^4.7.1",
|
|
178
|
+
"usehooks-ts": "3.1.1",
|
|
179
|
+
"uuid": "^13.0.0",
|
|
180
|
+
"validator": "^13.7.0",
|
|
181
|
+
"zod": "^4.1.13",
|
|
182
|
+
"zod-to-json-schema": "^3.25.0",
|
|
183
|
+
"zustand": "^4.4.1"
|
|
184
|
+
},
|
|
185
|
+
"peerDependencies": {
|
|
186
|
+
"react-router-dom": "^6.0.0"
|
|
187
|
+
},
|
|
188
|
+
"peerDependenciesMeta": {
|
|
189
|
+
"react-router-dom": {
|
|
190
|
+
"optional": true
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"devDependencies": {
|
|
194
|
+
"@chromatic-com/storybook": "^4.1.0",
|
|
195
|
+
"@eslint/js": "^10.0.1",
|
|
196
|
+
"@storybook/addon-a11y": "^9.1.1",
|
|
197
|
+
"@storybook/addon-docs": "^9.1.1",
|
|
198
|
+
"@storybook/addon-onboarding": "^9.1.1",
|
|
199
|
+
"@storybook/addon-vitest": "^9.1.1",
|
|
200
|
+
"@storybook/builder-vite": "^9.1.1",
|
|
201
|
+
"@storybook/react-vite": "^9.1.1",
|
|
202
|
+
"@tailwindcss/postcss": "^4.1.16",
|
|
203
|
+
"@types/node": "^20.11.0",
|
|
204
|
+
"@types/react": "19.2.18",
|
|
205
|
+
"@types/react-dom": "19.2.5",
|
|
206
|
+
"@vitejs/plugin-react": "^4.5.2",
|
|
207
|
+
"@vitest/browser": "^3.2.4",
|
|
208
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
209
|
+
"abort-controller": "^3.0.0",
|
|
210
|
+
"autoprefixer": "^10.4.21",
|
|
211
|
+
"crypto-browserify": "^3.12.1",
|
|
212
|
+
"dotenv": "^17.2.2",
|
|
213
|
+
"eslint": "^10.9.1",
|
|
214
|
+
"eslint-config-prettier": "^10.1.8",
|
|
215
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
216
|
+
"eslint-plugin-react": "^7.37.5",
|
|
217
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
218
|
+
"eslint-plugin-react-refresh": "^0.5.5",
|
|
219
|
+
"eslint-plugin-storybook": "^10.5.10",
|
|
220
|
+
"globals": "^16.2.0",
|
|
221
|
+
"gulp": "^4.0.2",
|
|
222
|
+
"gulp-append-prepend": "^1.0.8",
|
|
223
|
+
"gulp-filter": "^6.0.0",
|
|
224
|
+
"gulp-watch": "^5.0.1",
|
|
225
|
+
"husky": "^9.1.7",
|
|
226
|
+
"jsdom": "^26.0.0",
|
|
227
|
+
"lint-staged": "^16.1.5",
|
|
228
|
+
"npm-run-all": "^4.1.5",
|
|
229
|
+
"patch-package": "^8.0.0",
|
|
230
|
+
"playwright": "^1.53.2",
|
|
231
|
+
"prettier": "^3.6.2",
|
|
232
|
+
"react-router-dom": "7.18.3",
|
|
233
|
+
"rimraf": "^6.1.3",
|
|
234
|
+
"storybook": "^9.1.1",
|
|
235
|
+
"typedoc-plugin-markdown": "^4.0.0",
|
|
236
|
+
"typescript": "5.9.3",
|
|
237
|
+
"typescript-eslint": "^8.34.1",
|
|
238
|
+
"vite": "7.3.6",
|
|
239
|
+
"vite-plugin-treat-umd-as-commonjs": "^0.1.4",
|
|
240
|
+
"vitest": "^3.2.4"
|
|
241
|
+
},
|
|
242
|
+
"overrides": {
|
|
243
|
+
"@microsoft/fast-colors": "5.3.1",
|
|
244
|
+
"@microsoft/fast-components": "2.30.6",
|
|
245
|
+
"@microsoft/fast-element": "1.13.0",
|
|
246
|
+
"@microsoft/fast-foundation": "2.49.6",
|
|
247
|
+
"@microsoft/fast-react-wrapper": "0.3.24",
|
|
248
|
+
"@microsoft/fast-web-utilities": "5.4.1",
|
|
249
|
+
"@microsoft/load-themed-styles": "1.10.295",
|
|
250
|
+
"@types/react": "19.2.18",
|
|
251
|
+
"@types/react-dom": "19.2.5",
|
|
252
|
+
"eslint-plugin-react": {
|
|
253
|
+
"eslint": "$eslint"
|
|
254
|
+
},
|
|
255
|
+
"pyodide": "0.29.4",
|
|
256
|
+
"react": "19.2.8",
|
|
257
|
+
"react-dom": "19.2.8",
|
|
258
|
+
"typescript": "5.9.3"
|
|
259
|
+
},
|
|
260
|
+
"lint-staged": {
|
|
261
|
+
"src/**/*.{js,jsx,ts,tsx}": [
|
|
262
|
+
"prettier --write",
|
|
263
|
+
"eslint --fix"
|
|
264
|
+
],
|
|
265
|
+
"src/**/*.{css,json,md}": [
|
|
266
|
+
"prettier --write"
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
"optionalDependencies": {
|
|
270
|
+
"@github/keytar": "^7.10.6"
|
|
271
|
+
}
|
|
267
272
|
}
|
|
@@ -41,7 +41,7 @@ from urllib.request import Request, urlopen
|
|
|
41
41
|
|
|
42
42
|
ROOT = Path(__file__).parents[1]
|
|
43
43
|
DEFAULT_GATEWAY_CHECKOUT = ROOT.parents[2] / "k8s/services/jupyter-mcp-server"
|
|
44
|
-
DEFAULT_GATEWAY_OPENAPI_URL = "https://
|
|
44
|
+
DEFAULT_GATEWAY_OPENAPI_URL = "https://r1.datalayer.run/api/mcp/v1/openapi.json"
|
|
45
45
|
GATEWAY_APP = "datalayer_jupyter_mcp_server.main:app"
|
|
46
46
|
OUTPUT = ROOT / "src/api/mcp/generated.ts"
|
|
47
47
|
#: The licence header every source file in this repository carries. It is
|