@theia/plugin-ext 1.55.1 → 1.57.0-next.22

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 (69) hide show
  1. package/README.md +5 -4
  2. package/lib/common/plugin-protocol.d.ts +2 -0
  3. package/lib/common/plugin-protocol.d.ts.map +1 -1
  4. package/lib/common/plugin-protocol.js.map +1 -1
  5. package/lib/hosted/common/hosted-plugin.d.ts.map +1 -1
  6. package/lib/hosted/common/hosted-plugin.js +1 -0
  7. package/lib/hosted/common/hosted-plugin.js.map +1 -1
  8. package/lib/hosted/node/scanners/scanner-theia.d.ts.map +1 -1
  9. package/lib/hosted/node/scanners/scanner-theia.js +3 -0
  10. package/lib/hosted/node/scanners/scanner-theia.js.map +1 -1
  11. package/lib/main/browser/editors-and-documents-main.js +6 -3
  12. package/lib/main/browser/editors-and-documents-main.js.map +1 -1
  13. package/lib/main/browser/main-context.js +1 -1
  14. package/lib/main/browser/main-context.js.map +1 -1
  15. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.d.ts +2 -1
  16. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.d.ts.map +1 -1
  17. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js +7 -2
  18. package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js.map +1 -1
  19. package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts +4 -1
  20. package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts.map +1 -1
  21. package/lib/main/browser/notebooks/renderers/cell-output-webview.js +41 -11
  22. package/lib/main/browser/notebooks/renderers/cell-output-webview.js.map +1 -1
  23. package/lib/main/browser/notebooks/renderers/output-webview-internal.d.ts.map +1 -1
  24. package/lib/main/browser/notebooks/renderers/output-webview-internal.js +23 -17
  25. package/lib/main/browser/notebooks/renderers/output-webview-internal.js.map +1 -1
  26. package/lib/main/browser/text-editor-main.d.ts.map +1 -1
  27. package/lib/main/browser/text-editor-main.js +6 -1
  28. package/lib/main/browser/text-editor-main.js.map +1 -1
  29. package/lib/main/browser/view/tree-view-widget.d.ts +0 -2
  30. package/lib/main/browser/view/tree-view-widget.d.ts.map +1 -1
  31. package/lib/main/browser/view/tree-view-widget.js +0 -5
  32. package/lib/main/browser/view/tree-view-widget.js.map +1 -1
  33. package/lib/main/node/plugin-deployer-proxy-entry-impl.d.ts.map +1 -1
  34. package/lib/main/node/plugin-deployer-proxy-entry-impl.js +2 -0
  35. package/lib/main/node/plugin-deployer-proxy-entry-impl.js.map +1 -1
  36. package/lib/main/node/plugin-remote-cli-contribution.d.ts.map +1 -1
  37. package/lib/main/node/plugin-remote-cli-contribution.js +3 -4
  38. package/lib/main/node/plugin-remote-cli-contribution.js.map +1 -1
  39. package/lib/main/node/plugin-remote-copy-contribution.d.ts.map +1 -1
  40. package/lib/main/node/plugin-remote-copy-contribution.js +7 -3
  41. package/lib/main/node/plugin-remote-copy-contribution.js.map +1 -1
  42. package/lib/plugin/notebook/notebooks.d.ts +1 -1
  43. package/lib/plugin/notebook/notebooks.d.ts.map +1 -1
  44. package/lib/plugin/notebook/notebooks.js +8 -7
  45. package/lib/plugin/notebook/notebooks.js.map +1 -1
  46. package/lib/plugin/plugin-context.d.ts.map +1 -1
  47. package/lib/plugin/plugin-context.js +17 -1
  48. package/lib/plugin/plugin-context.js.map +1 -1
  49. package/lib/plugin/types-impl.d.ts +75 -5
  50. package/lib/plugin/types-impl.d.ts.map +1 -1
  51. package/lib/plugin/types-impl.js +71 -2
  52. package/lib/plugin/types-impl.js.map +1 -1
  53. package/package.json +29 -29
  54. package/src/common/plugin-protocol.ts +2 -0
  55. package/src/hosted/common/hosted-plugin.ts +2 -2
  56. package/src/hosted/node/scanners/scanner-theia.ts +6 -2
  57. package/src/main/browser/editors-and-documents-main.ts +4 -1
  58. package/src/main/browser/main-context.ts +1 -1
  59. package/src/main/browser/notebooks/notebook-documents-and-editors-main.ts +8 -1
  60. package/src/main/browser/notebooks/renderers/cell-output-webview.tsx +53 -17
  61. package/src/main/browser/notebooks/renderers/output-webview-internal.ts +25 -18
  62. package/src/main/browser/text-editor-main.ts +10 -5
  63. package/src/main/browser/view/tree-view-widget.tsx +0 -4
  64. package/src/main/node/plugin-deployer-proxy-entry-impl.ts +5 -2
  65. package/src/main/node/plugin-remote-cli-contribution.ts +4 -3
  66. package/src/main/node/plugin-remote-copy-contribution.ts +7 -4
  67. package/src/plugin/notebook/notebooks.ts +8 -6
  68. package/src/plugin/plugin-context.ts +23 -1
  69. package/src/plugin/types-impl.ts +90 -6
@@ -725,7 +725,7 @@ export class SnippetString {
725
725
 
726
726
  @es5ClassCompat
727
727
  export class ThemeColor {
728
- constructor(public id: string) { }
728
+ constructor(public readonly id: string) { }
729
729
  }
730
730
 
731
731
  @es5ClassCompat
@@ -3868,19 +3868,29 @@ export class TerminalQuickFixOpener {
3868
3868
  }
3869
3869
 
3870
3870
  // #region Chat
3871
+
3872
+ /**
3873
+ * @stubbed
3874
+ */
3871
3875
  export class ChatRequestTurn {
3872
3876
  readonly prompt: string;
3873
3877
  readonly participant: string;
3874
3878
  readonly command?: string;
3875
3879
  readonly references: theia.ChatPromptReference[];
3876
- private constructor(prompt: string, command: string | undefined, references: theia.ChatPromptReference[], participant: string) {
3880
+ readonly toolReferences: readonly theia.ChatLanguageModelToolReference[];
3881
+ private constructor(prompt: string, command: string | undefined, references: theia.ChatPromptReference[], participant: string,
3882
+ toolReferences: theia.ChatLanguageModelToolReference[]) {
3877
3883
  this.prompt = prompt;
3878
3884
  this.command = command;
3879
3885
  this.participant = participant;
3880
3886
  this.references = references;
3887
+ this.toolReferences = toolReferences;
3881
3888
  };
3882
3889
  }
3883
3890
 
3891
+ /**
3892
+ * @stubbed
3893
+ */
3884
3894
  export class ChatResponseTurn {
3885
3895
  readonly command?: string;
3886
3896
 
@@ -3888,6 +3898,9 @@ export class ChatResponseTurn {
3888
3898
  | theia.ChatResponseCommandButtonPart>, readonly result: theia.ChatResult, readonly participant: string) { }
3889
3899
  }
3890
3900
 
3901
+ /**
3902
+ * @stubbed
3903
+ */
3891
3904
  export class ChatResponseAnchorPart {
3892
3905
  value: URI | Location;
3893
3906
  title?: string;
@@ -3895,12 +3908,18 @@ export class ChatResponseAnchorPart {
3895
3908
  constructor(value: URI | Location, title?: string) { }
3896
3909
  }
3897
3910
 
3911
+ /**
3912
+ * @stubbed
3913
+ */
3898
3914
  export class ChatResponseProgressPart {
3899
3915
  value: string;
3900
3916
 
3901
3917
  constructor(value: string) { }
3902
3918
  }
3903
3919
 
3920
+ /**
3921
+ * @stubbed
3922
+ */
3904
3923
  export class ChatResponseReferencePart {
3905
3924
  value: URI | Location;
3906
3925
  iconPath?: URI | ThemeIcon | { light: URI; dark: URI; };
@@ -3910,12 +3929,19 @@ export class ChatResponseReferencePart {
3910
3929
  dark: URI;
3911
3930
  }) { }
3912
3931
  }
3932
+
3933
+ /**
3934
+ * @stubbed
3935
+ */
3913
3936
  export class ChatResponseCommandButtonPart {
3914
3937
  value: theia.Command;
3915
3938
 
3916
3939
  constructor(value: theia.Command) { }
3917
3940
  }
3918
3941
 
3942
+ /**
3943
+ * @stubbed
3944
+ */
3919
3945
  export class ChatResponseMarkdownPart {
3920
3946
  value: theia.MarkdownString;
3921
3947
 
@@ -3923,6 +3949,9 @@ export class ChatResponseMarkdownPart {
3923
3949
  }
3924
3950
  }
3925
3951
 
3952
+ /**
3953
+ * @stubbed
3954
+ */
3926
3955
  export class ChatResponseFileTreePart {
3927
3956
  value: theia.ChatResponseFileTree[];
3928
3957
  baseUri: URI;
@@ -3943,17 +3972,20 @@ export enum LanguageModelChatMessageRole {
3943
3972
  Assistant = 2
3944
3973
  }
3945
3974
 
3975
+ /**
3976
+ * @stubbed
3977
+ */
3946
3978
  export class LanguageModelChatMessage {
3947
-
3948
- static User(content: string, name?: string): LanguageModelChatMessage {
3979
+ static User(content: string | (LanguageModelTextPart | LanguageModelToolResultPart)[], name?: string): LanguageModelChatMessage {
3949
3980
  return new LanguageModelChatMessage(LanguageModelChatMessageRole.User, content, name);
3950
3981
  }
3951
3982
 
3952
- static Assistant(content: string, name?: string): LanguageModelChatMessage {
3983
+ static Assistant(content: string | (LanguageModelTextPart | LanguageModelToolResultPart)[], name?: string): LanguageModelChatMessage {
3953
3984
  return new LanguageModelChatMessage(LanguageModelChatMessageRole.Assistant, content, name);
3954
3985
  }
3955
3986
 
3956
- constructor(public role: LanguageModelChatMessageRole, public content: string, public name?: string) { }
3987
+ constructor(public role: LanguageModelChatMessageRole, public content: string | (LanguageModelTextPart | LanguageModelToolResultPart | LanguageModelToolCallPart)[],
3988
+ public name?: string) { }
3957
3989
  }
3958
3990
 
3959
3991
  export class LanguageModelError extends Error {
@@ -3978,6 +4010,58 @@ export class LanguageModelError extends Error {
3978
4010
  this.code = code ?? '';
3979
4011
  }
3980
4012
  }
4013
+
4014
+ export enum LanguageModelChatToolMode {
4015
+ Auto = 1,
4016
+ Required = 2
4017
+ }
4018
+
4019
+ /**
4020
+ * @stubbed
4021
+ */
4022
+ export class LanguageModelToolCallPart {
4023
+ callId: string;
4024
+ name: string;
4025
+ input: object;
4026
+
4027
+ constructor(callId: string, name: string, input: object) { }
4028
+ }
4029
+
4030
+ /**
4031
+ * @stubbed
4032
+ */
4033
+ export class LanguageModelToolResultPart {
4034
+ callId: string;
4035
+ content: (theia.LanguageModelTextPart | theia.LanguageModelPromptTsxPart | unknown)[];
4036
+
4037
+ constructor(callId: string, content: (theia.LanguageModelTextPart | theia.LanguageModelPromptTsxPart | unknown)[]) { }
4038
+ }
4039
+
4040
+ /**
4041
+ * @stubbed
4042
+ */
4043
+ export class LanguageModelTextPart {
4044
+ value: string;
4045
+ constructor(value: string) { }
4046
+ }
4047
+
4048
+ /**
4049
+ * @stubbed
4050
+ */
4051
+ export class LanguageModelToolResult {
4052
+ content: (theia.LanguageModelTextPart | theia.LanguageModelPromptTsxPart | unknown)[];
4053
+
4054
+ constructor(content: (theia.LanguageModelTextPart | theia.LanguageModelPromptTsxPart)[]) { }
4055
+ }
4056
+
4057
+ /**
4058
+ * @stubbed
4059
+ */
4060
+ export class LanguageModelPromptTsxPart {
4061
+ value: unknown;
4062
+
4063
+ constructor(value: unknown) { }
4064
+ }
3981
4065
  // #endregion
3982
4066
 
3983
4067
  // #region Port Attributes