hdsp-jupyter-extension 2.0.18__py3-none-any.whl → 2.0.19__py3-none-any.whl
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.
- agent_server/langchain/agent_prompts/planner_prompt.py +19 -11
- agent_server/langchain/custom_middleware.py +114 -65
- agent_server/langchain/prompts.py +11 -7
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/build_log.json +1 -1
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/package.json +2 -2
- hdsp_jupyter_extension-2.0.18.data/data/share/jupyter/labextensions/hdsp-agent/static/frontend_styles_index_js.037b3c8e5d6a92b63b16.js → hdsp_jupyter_extension-2.0.19.data/data/share/jupyter/labextensions/hdsp-agent/static/frontend_styles_index_js.96745acc14125453fba8.js +36 -2
- hdsp_jupyter_extension-2.0.19.data/data/share/jupyter/labextensions/hdsp-agent/static/frontend_styles_index_js.96745acc14125453fba8.js.map +1 -0
- jupyter_ext/labextension/static/lib_index_js.8f72c63cdf542389aa9d.js → hdsp_jupyter_extension-2.0.19.data/data/share/jupyter/labextensions/hdsp-agent/static/lib_index_js.1917fbaea37d75dc69b3.js +21 -3
- hdsp_jupyter_extension-2.0.19.data/data/share/jupyter/labextensions/hdsp-agent/static/lib_index_js.1917fbaea37d75dc69b3.js.map +1 -0
- hdsp_jupyter_extension-2.0.18.data/data/share/jupyter/labextensions/hdsp-agent/static/remoteEntry.5099145cc2b28312d170.js → hdsp_jupyter_extension-2.0.19.data/data/share/jupyter/labextensions/hdsp-agent/static/remoteEntry.d686ab71eb65b5ef8f15.js +3 -3
- jupyter_ext/labextension/static/remoteEntry.5099145cc2b28312d170.js.map → hdsp_jupyter_extension-2.0.19.data/data/share/jupyter/labextensions/hdsp-agent/static/remoteEntry.d686ab71eb65b5ef8f15.js.map +1 -1
- {hdsp_jupyter_extension-2.0.18.dist-info → hdsp_jupyter_extension-2.0.19.dist-info}/METADATA +1 -1
- {hdsp_jupyter_extension-2.0.18.dist-info → hdsp_jupyter_extension-2.0.19.dist-info}/RECORD +43 -43
- jupyter_ext/_version.py +1 -1
- jupyter_ext/labextension/build_log.json +1 -1
- jupyter_ext/labextension/package.json +2 -2
- jupyter_ext/labextension/static/{frontend_styles_index_js.037b3c8e5d6a92b63b16.js → frontend_styles_index_js.96745acc14125453fba8.js} +36 -2
- jupyter_ext/labextension/static/frontend_styles_index_js.96745acc14125453fba8.js.map +1 -0
- hdsp_jupyter_extension-2.0.18.data/data/share/jupyter/labextensions/hdsp-agent/static/lib_index_js.8f72c63cdf542389aa9d.js → jupyter_ext/labextension/static/lib_index_js.1917fbaea37d75dc69b3.js +21 -3
- jupyter_ext/labextension/static/lib_index_js.1917fbaea37d75dc69b3.js.map +1 -0
- jupyter_ext/labextension/static/{remoteEntry.5099145cc2b28312d170.js → remoteEntry.d686ab71eb65b5ef8f15.js} +3 -3
- hdsp_jupyter_extension-2.0.18.data/data/share/jupyter/labextensions/hdsp-agent/static/remoteEntry.5099145cc2b28312d170.js.map → jupyter_ext/labextension/static/remoteEntry.d686ab71eb65b5ef8f15.js.map +1 -1
- hdsp_jupyter_extension-2.0.18.data/data/share/jupyter/labextensions/hdsp-agent/static/frontend_styles_index_js.037b3c8e5d6a92b63b16.js.map +0 -1
- hdsp_jupyter_extension-2.0.18.data/data/share/jupyter/labextensions/hdsp-agent/static/lib_index_js.8f72c63cdf542389aa9d.js.map +0 -1
- jupyter_ext/labextension/static/frontend_styles_index_js.037b3c8e5d6a92b63b16.js.map +0 -1
- jupyter_ext/labextension/static/lib_index_js.8f72c63cdf542389aa9d.js.map +0 -1
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/etc/jupyter/jupyter_server_config.d/hdsp_jupyter_extension.json +0 -0
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/install.json +0 -0
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3ba6b80.c095373419d05e6f141a.js +0 -0
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3ba6b80.c095373419d05e6f141a.js.map +0 -0
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3ba6b81.61e75fb98ecff46cf836.js +0 -0
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3ba6b81.61e75fb98ecff46cf836.js.map +0 -0
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/static/style.js +0 -0
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_babel_runtime_helpers_esm_extends_js-node_modules_emotion_serialize_dist-051195.e2553aab0c3963b83dd7.js +0 -0
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_babel_runtime_helpers_esm_extends_js-node_modules_emotion_serialize_dist-051195.e2553aab0c3963b83dd7.js.map +0 -0
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_emotion_cache_dist_emotion-cache_browser_development_esm_js.24edcc52a1c014a8a5f0.js +0 -0
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_emotion_cache_dist_emotion-cache_browser_development_esm_js.24edcc52a1c014a8a5f0.js.map +0 -0
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_emotion_react_dist_emotion-react_browser_development_esm_js.19ecf6babe00caff6b8a.js +0 -0
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_emotion_react_dist_emotion-react_browser_development_esm_js.19ecf6babe00caff6b8a.js.map +0 -0
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_emotion_styled_dist_emotion-styled_browser_development_esm_js.661fb5836f4978a7c6e1.js +0 -0
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_emotion_styled_dist_emotion-styled_browser_development_esm_js.661fb5836f4978a7c6e1.js.map +0 -0
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_mui_material_index_js.985697e0162d8d088ca2.js +0 -0
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_mui_material_index_js.985697e0162d8d088ca2.js.map +0 -0
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_mui_material_utils_createSvgIcon_js.1f5038488cdfd8b3a85d.js +0 -0
- {hdsp_jupyter_extension-2.0.18.data → hdsp_jupyter_extension-2.0.19.data}/data/share/jupyter/labextensions/hdsp-agent/static/vendors-node_modules_mui_material_utils_createSvgIcon_js.1f5038488cdfd8b3a85d.js.map +0 -0
- {hdsp_jupyter_extension-2.0.18.dist-info → hdsp_jupyter_extension-2.0.19.dist-info}/WHEEL +0 -0
- {hdsp_jupyter_extension-2.0.18.dist-info → hdsp_jupyter_extension-2.0.19.dist-info}/licenses/LICENSE +0 -0
|
@@ -3455,6 +3455,7 @@ SyntaxError: '(' was never closed
|
|
|
3455
3455
|
const isWriteFile = interruptAction === 'write_file_tool';
|
|
3456
3456
|
const isEditFile = interruptAction === 'edit_file_tool';
|
|
3457
3457
|
const isMultiEditFile = interruptAction === 'multiedit_file_tool';
|
|
3458
|
+
const isMarkdownTool = interruptAction === 'markdown_tool' || interruptAction === 'markdown';
|
|
3458
3459
|
const writePath = (isWriteFile
|
|
3459
3460
|
&& typeof msg.metadata?.interrupt?.args?.path === 'string') ? msg.metadata?.interrupt?.args?.path : '';
|
|
3460
3461
|
const editPath = ((isEditFile || isMultiEditFile)
|
|
@@ -3508,6 +3509,11 @@ SyntaxError: '(' was never closed
|
|
|
3508
3509
|
(replaceAll ? '\n\n(replace_all: true)' : '');
|
|
3509
3510
|
language = 'diff';
|
|
3510
3511
|
}
|
|
3512
|
+
else if (isMarkdownTool) {
|
|
3513
|
+
// markdown_tool: render as HTML, not as code block
|
|
3514
|
+
snippet = code || '';
|
|
3515
|
+
language = 'markdown';
|
|
3516
|
+
}
|
|
3511
3517
|
else {
|
|
3512
3518
|
snippet = (command || code || '(no details)');
|
|
3513
3519
|
language = command ? 'bash' : 'python';
|
|
@@ -3531,7 +3537,10 @@ SyntaxError: '(' was never closed
|
|
|
3531
3537
|
// Get tool description from args (for jupyter_cell_tool)
|
|
3532
3538
|
const toolDescription = msg.metadata?.interrupt?.args?.description;
|
|
3533
3539
|
const renderedHtml = (() => {
|
|
3534
|
-
|
|
3540
|
+
// markdown_tool: render content as HTML directly, not as code block
|
|
3541
|
+
let html = isMarkdownTool
|
|
3542
|
+
? (0,_utils_markdownRenderer__WEBPACK_IMPORTED_MODULE_5__.formatMarkdownToHtml)(snippet)
|
|
3543
|
+
: (0,_utils_markdownRenderer__WEBPACK_IMPORTED_MODULE_5__.formatMarkdownToHtml)(`\n\`\`\`${language}\n${snippet}\n\`\`\``);
|
|
3535
3544
|
if (isWriteFile && writePath) {
|
|
3536
3545
|
const safePath = escapeHtml(writePath);
|
|
3537
3546
|
html = html.replace(/<span class="code-block-language">[^<]*<\/span>/, `<span class="code-block-language jp-agent-interrupt-path">${safePath}</span>`);
|
|
@@ -3542,7 +3551,16 @@ SyntaxError: '(' was never closed
|
|
|
3542
3551
|
html = html.replace(/<span class="code-block-language">[^<]*<\/span>/, `<span class="code-block-language jp-agent-interrupt-path">${editIcon} ${safePath}</span>`);
|
|
3543
3552
|
}
|
|
3544
3553
|
// actionHtml이 비어있지 않을 때만 추가
|
|
3545
|
-
|
|
3554
|
+
let codeHtml;
|
|
3555
|
+
if (isMarkdownTool) {
|
|
3556
|
+
// markdown_tool: wrap in container with action buttons
|
|
3557
|
+
codeHtml = actionHtml
|
|
3558
|
+
? `<div class="jp-agent-markdown-preview">${html}${actionHtml}</div>`
|
|
3559
|
+
: `<div class="jp-agent-markdown-preview">${html}</div>`;
|
|
3560
|
+
}
|
|
3561
|
+
else {
|
|
3562
|
+
codeHtml = actionHtml ? html.replace('</div>', `${actionHtml}</div>`) : html;
|
|
3563
|
+
}
|
|
3546
3564
|
// Build the final HTML with proper ordering:
|
|
3547
3565
|
// 1. jp-agent-code-description (detailed description) - top
|
|
3548
3566
|
// 2. jp-agent-interrupt-description (approval message) - right above code
|
|
@@ -11795,4 +11813,4 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11795
11813
|
/***/ }
|
|
11796
11814
|
|
|
11797
11815
|
}]);
|
|
11798
|
-
//# sourceMappingURL=lib_index_js.
|
|
11816
|
+
//# sourceMappingURL=lib_index_js.1917fbaea37d75dc69b3.js.map
|