@modelprofile.com/flexharness 10.14.0 → 10.15.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.
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/classes.flexharness.js +4 -2
- package/dist_ts/classes.toolcatalog.d.ts +13 -3
- package/dist_ts/classes.toolcatalog.js +239 -59
- package/dist_ts/interfaces.d.ts +49 -3
- package/dist_ts/interfaces.js +11 -1
- package/dist_ts/utils.harnessoptions.d.ts +2 -0
- package/dist_ts/utils.harnessoptions.js +19 -6
- package/dist_ts_document/index.js +21 -8
- package/dist_ts_document/plugins.d.ts +2 -2
- package/dist_ts_document/plugins.js +3 -3
- package/dist_ts_media/index.js +14 -3
- package/dist_ts_media/plugins.d.ts +2 -2
- package/dist_ts_media/plugins.js +3 -3
- package/package.json +3 -3
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.flexharness.ts +4 -1
- package/ts/classes.toolcatalog.ts +253 -56
- package/ts/interfaces.ts +50 -3
- package/ts/utils.harnessoptions.ts +26 -3
- package/ts_document/index.ts +18 -7
- package/ts_document/plugins.ts +2 -2
- package/ts_document/readme.md +2 -0
- package/ts_media/index.ts +11 -2
- package/ts_media/plugins.ts +2 -2
|
@@ -22,6 +22,10 @@ export declare class FlexToolCatalog<TScope = unknown> {
|
|
|
22
22
|
private readonly admitted;
|
|
23
23
|
/** The limits of `run_code`; absent while code mode is off. */
|
|
24
24
|
readonly codeMode: Readonly<IFlexCodeModeLimits> | undefined;
|
|
25
|
+
/** Levels of a result's named types a TypeScript declaration declares. */
|
|
26
|
+
private readonly outputTypeDepth;
|
|
27
|
+
/** `search` follows a clear top match with its declaration. */
|
|
28
|
+
private readonly describeTopMatch;
|
|
25
29
|
private namespaceTree?;
|
|
26
30
|
private constructor();
|
|
27
31
|
/**
|
|
@@ -44,8 +48,14 @@ export declare class FlexToolCatalog<TScope = unknown> {
|
|
|
44
48
|
private codeToolDefinition;
|
|
45
49
|
/** Hands proposed calls to the catalog's `onProposals` and returns what the model sees for them. */
|
|
46
50
|
propose(proposals: readonly IFlexCatalogProposal[], context: IFlexCatalogProposalContext<TScope>): Promise<unknown>;
|
|
47
|
-
/**
|
|
48
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Search results or a namespace listing as text. A clear top match of a query's first page is
|
|
53
|
+
* followed by its declaration, as `describe` gives it with `options`.
|
|
54
|
+
*/
|
|
55
|
+
search(input?: IFlexCatalogSearchInput, options?: {
|
|
56
|
+
declaredTypes?: Iterable<string>;
|
|
57
|
+
maxBytes?: number;
|
|
58
|
+
}): string;
|
|
49
59
|
/**
|
|
50
60
|
* The declarations of `input.methods` and `input.types`. Method declarations bring the named
|
|
51
61
|
* types they use, minus `declaredTypes`, which a session already has.
|
|
@@ -54,7 +64,7 @@ export declare class FlexToolCatalog<TScope = unknown> {
|
|
|
54
64
|
declaredTypes?: Iterable<string>;
|
|
55
65
|
maxBytes?: number;
|
|
56
66
|
}): IFlexCatalogDescribeResult;
|
|
57
|
-
/** The named types `describe_tools` results in `messages` declared. */
|
|
67
|
+
/** The named types the `describe_tools` and `search_tools` results in `messages` declared. */
|
|
58
68
|
declaredTypesIn(messages: readonly plugins.ModelMessage[] | undefined): Set<string>;
|
|
59
69
|
/**
|
|
60
70
|
* Resolves and validates a call. A failure is the error `execute` reports to the model; success
|