@datalayer/agent-runtimes 1.0.26 → 1.0.29

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.
Files changed (34) hide show
  1. package/lib/api/index.js +16 -4
  2. package/lib/components/code-sandboxes/CodeSandboxEnvironmentSelect.d.ts +41 -0
  3. package/lib/components/code-sandboxes/CodeSandboxEnvironmentSelect.js +83 -0
  4. package/lib/components/code-sandboxes/CodeSandboxLauncher.d.ts +11 -0
  5. package/lib/components/code-sandboxes/CodeSandboxLauncher.js +190 -17
  6. package/lib/components/code-sandboxes/CodeSandboxNames.d.ts +47 -0
  7. package/lib/components/code-sandboxes/CodeSandboxNames.js +211 -0
  8. package/lib/components/code-sandboxes/CodeSandboxPicker.d.ts +14 -1
  9. package/lib/components/code-sandboxes/CodeSandboxPicker.js +203 -18
  10. package/lib/components/code-sandboxes/CodeSandboxTransfer.d.ts +6 -0
  11. package/lib/components/code-sandboxes/CodeSandboxUtils.d.ts +3 -0
  12. package/lib/components/code-sandboxes/CodeSandboxUtils.js +76 -20
  13. package/lib/components/code-sandboxes/NewCodeSandboxControls.d.ts +17 -0
  14. package/lib/components/code-sandboxes/NewCodeSandboxControls.js +4 -4
  15. package/lib/components/code-sandboxes/codeSandboxProviders.d.ts +29 -0
  16. package/lib/components/code-sandboxes/codeSandboxProviders.js +81 -0
  17. package/lib/components/code-sandboxes/index.d.ts +3 -0
  18. package/lib/components/code-sandboxes/index.js +3 -0
  19. package/lib/examples/AgentspecsExample.js +3 -3
  20. package/lib/identity/index.d.ts +1 -1
  21. package/lib/identity/index.js +1 -1
  22. package/lib/identity/types.d.ts +1 -1
  23. package/lib/identity/types.js +1 -1
  24. package/lib/models/CodeSandboxVariant.d.ts +45 -0
  25. package/lib/models/CodeSandboxVariant.js +65 -0
  26. package/lib/models/index.d.ts +1 -0
  27. package/lib/models/index.js +1 -0
  28. package/lib/runtimes/actions.js +14 -2
  29. package/lib/specs/envvars.d.ts +1 -1
  30. package/lib/specs/envvars.js +3 -3
  31. package/lib/specs/mcpServers.js +2 -2
  32. package/lib/state/substates/RuntimesState.js +4 -1
  33. package/package.json +1 -1
  34. package/scripts/gen_workers.py +1 -1
@@ -163,13 +163,13 @@ export const KAGGLE_MCP_SERVER_0_0_1 = {
163
163
  'mcp-remote',
164
164
  'https://www.kaggle.com/mcp',
165
165
  '--header',
166
- 'Authorization: Bearer ${KAGGLE_TOKEN}',
166
+ 'Authorization: Bearer ${KAGGLE_API_TOKEN}',
167
167
  ],
168
168
  transport: 'stdio',
169
169
  enabled: true,
170
170
  isAvailable: false,
171
171
  tools: [],
172
- requiredEnvVars: ['KAGGLE_TOKEN:0.0.1'],
172
+ requiredEnvVars: ['KAGGLE_API_TOKEN:0.0.1'],
173
173
  };
174
174
  export const ODOO_MCP_SERVER_0_0_1 = {
175
175
  id: 'odoo',
@@ -77,7 +77,10 @@ export const runtimesStore = createStore((set, get) => {
77
77
  */
78
78
  removeRuntimeModel: (id) => {
79
79
  const kernels = [...get().runtimeModels];
80
- const index = kernels?.findIndex(model => id === model.id) ?? -1;
80
+ // By the kernel it runs, or by the pod it is: a sandbox of an external
81
+ // provider has no kernel, so its pod name is the only name it answers
82
+ // to — matched on the kernel alone it was never removed from the list.
83
+ const index = kernels?.findIndex(model => (!!model.id && id === model.id) || id === model.pod_name) ?? -1;
81
84
  if (index >= 0) {
82
85
  kernels.splice(index, 1);
83
86
  set({ runtimeModels: kernels });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datalayer/agent-runtimes",
3
- "version": "1.0.26",
3
+ "version": "1.0.29",
4
4
  "type": "module",
5
5
  "workspaces": [
6
6
  ".",
@@ -40,7 +40,7 @@ VERTICALS = {
40
40
  "emoji": "🧬", "icon": "beaker", "color": "#06B6D4",
41
41
  "mcp": ["huggingface:0.0.1", "kaggle:0.0.1"],
42
42
  "skills": ["text-summarizer:0.0.1", "pdf:0.0.1"],
43
- "envvars": ["HF_TOKEN:0.0.1", "KAGGLE_TOKEN:0.0.1"],
43
+ "envvars": ["HF_TOKEN:0.0.1", "KAGGLE_API_TOKEN:0.0.1"],
44
44
  },
45
45
  "capital-markets": {
46
46
  "emoji": "📈", "icon": "graph", "color": "#3B82F6",