@opensumi/ide-ai-native 3.7.1-next-1738824147.0 → 3.7.1-next-1738917599.0

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 (22) hide show
  1. package/lib/browser/widget/inline-chat/inline-content-widget.d.ts.map +1 -1
  2. package/lib/browser/widget/inline-chat/inline-content-widget.js +0 -5
  3. package/lib/browser/widget/inline-chat/inline-content-widget.js.map +1 -1
  4. package/lib/browser/widget/inline-input/inline-input-widget.d.ts +5 -3
  5. package/lib/browser/widget/inline-input/inline-input-widget.d.ts.map +1 -1
  6. package/lib/browser/widget/inline-input/inline-input-widget.js +14 -10
  7. package/lib/browser/widget/inline-input/inline-input-widget.js.map +1 -1
  8. package/lib/browser/widget/inline-input/inline-input.controller.d.ts +3 -0
  9. package/lib/browser/widget/inline-input/inline-input.controller.d.ts.map +1 -1
  10. package/lib/browser/widget/inline-input/inline-input.controller.js +96 -37
  11. package/lib/browser/widget/inline-input/inline-input.controller.js.map +1 -1
  12. package/lib/browser/widget/inline-input/inline-input.module.less +4 -0
  13. package/lib/browser/widget/inline-input/model.d.ts +19 -1
  14. package/lib/browser/widget/inline-input/model.d.ts.map +1 -1
  15. package/lib/browser/widget/inline-input/model.js +39 -1
  16. package/lib/browser/widget/inline-input/model.js.map +1 -1
  17. package/package.json +21 -21
  18. package/src/browser/widget/inline-chat/inline-content-widget.tsx +0 -7
  19. package/src/browser/widget/inline-input/inline-input-widget.tsx +14 -5
  20. package/src/browser/widget/inline-input/inline-input.controller.ts +129 -44
  21. package/src/browser/widget/inline-input/inline-input.module.less +4 -0
  22. package/src/browser/widget/inline-input/model.ts +41 -1
@@ -1,6 +1,6 @@
1
1
  import { InteractiveInput } from '@opensumi/ide-core-browser/lib/components/ai-native';
2
2
  import { MaybePromise, uuid } from '@opensumi/ide-core-common';
3
- import { ICodeEditor } from '@opensumi/ide-monaco';
3
+ import { ICodeEditor, IPosition, Selection } from '@opensumi/ide-monaco';
4
4
 
5
5
  import { ERunStrategy, IInteractiveInputHandler } from '../../types';
6
6
 
@@ -32,3 +32,43 @@ export class InteractiveInputModel {
32
32
  this._handler = undefined;
33
33
  }
34
34
  }
35
+
36
+ export class InlineInputWidgetStoreInEmptyLine {
37
+ constructor(private position: IPosition, private value?: string) {}
38
+
39
+ public getPosition(): IPosition {
40
+ return this.position;
41
+ }
42
+
43
+ public setPosition(position: IPosition): void {
44
+ this.position = position;
45
+ }
46
+
47
+ public getValue(): string | undefined {
48
+ return this.value;
49
+ }
50
+
51
+ public setValue(value: string): void {
52
+ this.value = value;
53
+ }
54
+ }
55
+
56
+ export class InlineInputWidgetStoreInSelection {
57
+ constructor(private selection: Selection, private value?: string) {}
58
+
59
+ public getSelection(): Selection {
60
+ return this.selection;
61
+ }
62
+
63
+ public setSelection(selection: Selection): void {
64
+ this.selection = selection;
65
+ }
66
+
67
+ public getValue(): string | undefined {
68
+ return this.value;
69
+ }
70
+
71
+ public setValue(value: string): void {
72
+ this.value = value;
73
+ }
74
+ }