@notebook-intelligence/notebook-intelligence 4.2.0 → 4.2.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.
@@ -327,6 +327,11 @@ function ChatResponse(props) {
327
327
  runCommand('notebook-intelligence:chat-user-input', item.content.confirmArgs);
328
328
  } },
329
329
  React.createElement("div", { className: "jp-Dialog-buttonLabel" }, item.content.confirmLabel)),
330
+ item.content.confirmSessionArgs ? (React.createElement("button", { className: "jp-Dialog-button jp-mod-accept jp-mod-styled", onClick: () => {
331
+ markFormConfirmed(item.id);
332
+ runCommand('notebook-intelligence:chat-user-input', item.content.confirmSessionArgs);
333
+ } },
334
+ React.createElement("div", { className: "jp-Dialog-buttonLabel" }, item.content.confirmSessionLabel))) : null,
330
335
  React.createElement("button", { className: "jp-Dialog-button jp-mod-reject jp-mod-styled", onClick: () => {
331
336
  markFormCanceled(item.id);
332
337
  runCommand('notebook-intelligence:chat-user-input', item.content.cancelArgs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notebook-intelligence/notebook-intelligence",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "AI coding assistant for JupyterLab",
5
5
  "keywords": [
6
6
  "AI",
@@ -613,6 +613,22 @@ function ChatResponse(props: any) {
613
613
  {item.content.confirmLabel}
614
614
  </div>
615
615
  </button>
616
+ {item.content.confirmSessionArgs ? (
617
+ <button
618
+ className="jp-Dialog-button jp-mod-accept jp-mod-styled"
619
+ onClick={() => {
620
+ markFormConfirmed(item.id);
621
+ runCommand(
622
+ 'notebook-intelligence:chat-user-input',
623
+ item.content.confirmSessionArgs
624
+ );
625
+ }}
626
+ >
627
+ <div className="jp-Dialog-buttonLabel">
628
+ {item.content.confirmSessionLabel}
629
+ </div>
630
+ </button>
631
+ ) : null}
616
632
  <button
617
633
  className="jp-Dialog-button jp-mod-reject jp-mod-styled"
618
634
  onClick={() => {