@theia/plugin 1.73.0-next.9 → 1.73.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/plugin",
3
- "version": "1.73.0-next.9+310484268",
3
+ "version": "1.73.0",
4
4
  "description": "Theia - Plugin API",
5
5
  "types": "./src/theia.d.ts",
6
6
  "publishConfig": {
@@ -27,10 +27,10 @@
27
27
  "watch": "theiaext watch"
28
28
  },
29
29
  "devDependencies": {
30
- "@theia/ext-scripts": "1.72.0"
30
+ "@theia/ext-scripts": "1.73.0"
31
31
  },
32
32
  "nyc": {
33
33
  "extends": "../../configs/nyc.json"
34
34
  },
35
- "gitHead": "31048426875ed92ecdb45c7446e92dddb8048f81"
35
+ "gitHead": "25e1b7fdf4c39ecea7066e1c8be3af1cc02e4d2e"
36
36
  }
package/src/theia.d.ts CHANGED
@@ -19561,14 +19561,12 @@ export module '@theia/plugin' {
19561
19561
  * point. A registered tool is available in the {@link lm.tools} list for any extension to see. But in order for it to
19562
19562
  * be seen by a language model, it must be passed in the list of available tools in {@link LanguageModelChatRequestOptions.tools}.
19563
19563
  * @returns A {@link Disposable} that unregisters the tool when disposed.
19564
- * @stubbed
19565
19564
  */
19566
19565
  export function registerTool<T>(name: string, tool: LanguageModelTool<T>): Disposable;
19567
19566
 
19568
19567
  /**
19569
19568
  * A list of all available tools that were registered by all extensions using {@link lm.registerTool}. They can be called
19570
19569
  * with {@link lm.invokeTool} with input that match their declared `inputSchema`.
19571
- * @stubbed
19572
19570
  */
19573
19571
  export const tools: readonly LanguageModelToolInformation[];
19574
19572
 
@@ -19597,7 +19595,6 @@ export module '@theia/plugin' {
19597
19595
  * @param options The options to use when invoking the tool.
19598
19596
  * @param token A cancellation token. See {@link CancellationTokenSource} for how to create one.
19599
19597
  * @returns The result of the tool invocation.
19600
- * @stubbed
19601
19598
  */
19602
19599
  export function invokeTool(name: string, options: LanguageModelToolInvocationOptions<object>, token?: CancellationToken): Thenable<LanguageModelToolResult>;
19603
19600
 
@@ -19811,21 +19808,18 @@ export module '@theia/plugin' {
19811
19808
 
19812
19809
  /**
19813
19810
  * A result returned from a tool invocation. If using `@vscode/prompt-tsx`, this result may be rendered using a `ToolResult`.
19814
- * @stubbed
19815
19811
  */
19816
19812
  export class LanguageModelToolResult {
19817
19813
  /**
19818
19814
  * A list of tool result content parts. Includes `unknown` becauses this list may be extended with new content types in
19819
19815
  * the future.
19820
19816
  * @see {@link lm.invokeTool}.
19821
- * @stubbed
19822
19817
  */
19823
19818
  content: Array<LanguageModelTextPart | LanguageModelPromptTsxPart | LanguageModelDataPart | unknown>;
19824
19819
 
19825
19820
  /**
19826
19821
  * Create a LanguageModelToolResult
19827
19822
  * @param content A list of tool result content parts
19828
- * @stubbed
19829
19823
  */
19830
19824
  constructor(content: Array<LanguageModelTextPart | LanguageModelPromptTsxPart | LanguageModelDataPart | unknown>);
19831
19825
  }
@@ -19894,7 +19888,6 @@ export module '@theia/plugin' {
19894
19888
 
19895
19889
  /**
19896
19890
  * Options provided for tool invocation.
19897
- * @stubbed
19898
19891
  */
19899
19892
  export interface LanguageModelToolInvocationOptions<T> {
19900
19893
  /**
@@ -19915,7 +19908,6 @@ export module '@theia/plugin' {
19915
19908
  /**
19916
19909
  * The input with which to invoke the tool. The input must match the schema defined in
19917
19910
  * {@link LanguageModelToolInformation.inputSchema}
19918
- * @stubbed
19919
19911
  */
19920
19912
  input: T;
19921
19913
 
@@ -19950,31 +19942,26 @@ export module '@theia/plugin' {
19950
19942
 
19951
19943
  /**
19952
19944
  * Information about a registered tool available in {@link lm.tools}.
19953
- * @stubbed
19954
19945
  */
19955
19946
  export interface LanguageModelToolInformation {
19956
19947
  /**
19957
19948
  * A unique name for the tool.
19958
- * @stubbed
19959
19949
  */
19960
19950
  readonly name: string;
19961
19951
 
19962
19952
  /**
19963
19953
  * A description of this tool that may be passed to a language model.
19964
- * @stubbed
19965
19954
  */
19966
19955
  readonly description: string;
19967
19956
 
19968
19957
  /**
19969
19958
  * A JSON schema for the input this tool accepts.
19970
- * @stubbed
19971
19959
  */
19972
19960
  readonly inputSchema: object | undefined;
19973
19961
 
19974
19962
  /**
19975
19963
  * A set of tags, declared by the tool, that roughly describe the tool's capabilities. A tool user may use these to filter
19976
19964
  * the set of tools to just ones that are relevant for the task at hand.
19977
- * @stubbed
19978
19965
  */
19979
19966
  readonly tags: readonly string[];
19980
19967
  }
@@ -19993,14 +19980,12 @@ export module '@theia/plugin' {
19993
19980
 
19994
19981
  /**
19995
19982
  * A tool that can be invoked by a call to a {@link LanguageModelChat}.
19996
- * @stubbed
19997
19983
  */
19998
19984
  export interface LanguageModelTool<T> {
19999
19985
  /**
20000
19986
  * Invoke the tool with the given input and return a result.
20001
19987
  *
20002
19988
  * The provided {@link LanguageModelToolInvocationOptions.input} has been validated against the declared schema.
20003
- * @stubbed
20004
19989
  */
20005
19990
  invoke(options: LanguageModelToolInvocationOptions<T>, token: CancellationToken): ProviderResult<LanguageModelToolResult>;
20006
19991
 
@@ -74,7 +74,6 @@ export module '@theia/plugin' {
74
74
  * @param selector A selector that defines the documents this provider is applicable to.
75
75
  * @param provider A multi-document highlight provider.
76
76
  * @returns A {@link Disposable} that unregisters this provider when being disposed.
77
- * @stubbed
78
77
  */
79
78
  export function registerMultiDocumentHighlightProvider(selector: DocumentSelector, provider: MultiDocumentHighlightProvider): Disposable;
80
79
  }