veryfront 0.1.448 → 0.1.449
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/esm/deno.js +1 -1
- package/esm/src/agent/hosted-chat-runtime-tool-assembly.d.ts +4 -4
- package/esm/src/agent/hosted-chat-runtime-tool-assembly.d.ts.map +1 -1
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +1 -1
- package/src/deno.js +1 -1
- package/src/src/agent/hosted-chat-runtime-tool-assembly.ts +9 -4
- package/src/src/utils/version-constant.ts +1 -1
package/esm/deno.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ChatSystemMessage } from "../chat/types.js";
|
|
2
|
-
import { type HostToolSet, type ProjectScopedRemoteToolOptions, type RemoteMCPToolSourceConfig, type RemoteToolSource, type ToolSet, type TraceHostToolsOptions } from "../tool/index.js";
|
|
2
|
+
import { type HostToolSet, type HostToolTraceAttributes, type ProjectScopedRemoteToolOptions, type RemoteMCPToolSourceConfig, type RemoteToolSource, type ToolSet, type TraceHostToolsOptions } from "../tool/index.js";
|
|
3
3
|
import { type DefaultResearchArtifactContext } from "./default-research-artifact-support.js";
|
|
4
4
|
import { type HostedProjectRemoteToolSourceMutationHandler, type HostedProjectRemoteToolSourcePrepareToolInput, type HostedProjectRemoteToolSourceProjectSwitchHandler, type HostedProjectRemoteToolSourceRetryPolicy } from "./hosted-project-remote-tool-source.js";
|
|
5
5
|
import { type RuntimeClientProfile } from "./runtime-client-profile.js";
|
|
@@ -21,7 +21,7 @@ export type HostedChatRuntimeToolAssemblyResult = {
|
|
|
21
21
|
compatibleRemoteToolNames: string[];
|
|
22
22
|
systemInstructions: string;
|
|
23
23
|
};
|
|
24
|
-
export type PrepareHostedChatRuntimeToolAssemblyInput = {
|
|
24
|
+
export type PrepareHostedChatRuntimeToolAssemblyInput<TTraceAttributes extends HostToolTraceAttributes = HostToolTraceAttributes> = {
|
|
25
25
|
taskContext: HostedChatRuntimeToolAssemblyContext;
|
|
26
26
|
instructions: string | readonly ChatSystemMessage[];
|
|
27
27
|
localTools: HostToolSet;
|
|
@@ -32,7 +32,7 @@ export type PrepareHostedChatRuntimeToolAssemblyInput = {
|
|
|
32
32
|
allowedToolNames?: HostedChatRuntimeAllowedToolNames;
|
|
33
33
|
projectScopedRemoteToolOptions?: ProjectScopedRemoteToolOptions;
|
|
34
34
|
createRemoteToolSource?: (config: RemoteMCPToolSourceConfig) => RemoteToolSource;
|
|
35
|
-
traceLocalTools?: TraceHostToolsOptions
|
|
35
|
+
traceLocalTools?: TraceHostToolsOptions<TTraceAttributes>;
|
|
36
36
|
getProjectId?: () => string | null | undefined;
|
|
37
37
|
getActiveBranchId?: () => string | null | undefined;
|
|
38
38
|
prepareRemoteToolInput?: HostedProjectRemoteToolSourcePrepareToolInput;
|
|
@@ -45,5 +45,5 @@ export declare function filterHostedChatRuntimeLocalTools(input: {
|
|
|
45
45
|
tools: HostToolSet;
|
|
46
46
|
allowedToolNames?: HostedChatRuntimeAllowedToolNames;
|
|
47
47
|
}): HostToolSet;
|
|
48
|
-
export declare function prepareHostedChatRuntimeToolAssembly(input: PrepareHostedChatRuntimeToolAssemblyInput): Promise<HostedChatRuntimeToolAssemblyResult>;
|
|
48
|
+
export declare function prepareHostedChatRuntimeToolAssembly<TTraceAttributes extends HostToolTraceAttributes = HostToolTraceAttributes>(input: PrepareHostedChatRuntimeToolAssemblyInput<TTraceAttributes>): Promise<HostedChatRuntimeToolAssemblyResult>;
|
|
49
49
|
//# sourceMappingURL=hosted-chat-runtime-tool-assembly.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-chat-runtime-tool-assembly.d.ts","sourceRoot":"","sources":["../../../src/src/agent/hosted-chat-runtime-tool-assembly.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAGL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,yCAAyC,CAAC,gBAAgB,CAAC,GACjE,OAAO,CAAC,mCAAmC,CAAC,CAuE9C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.449";
|
|
2
2
|
//# sourceMappingURL=version-constant.d.ts.map
|
package/package.json
CHANGED
package/src/deno.js
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
createRemoteMCPToolSource,
|
|
4
4
|
createToolsFromHostDefinitions,
|
|
5
5
|
type HostToolSet,
|
|
6
|
+
type HostToolTraceAttributes,
|
|
6
7
|
listProjectScopedRemoteToolNames,
|
|
7
8
|
type ProjectScopedRemoteToolOptions,
|
|
8
9
|
type RemoteMCPToolSourceConfig,
|
|
@@ -48,7 +49,9 @@ export type HostedChatRuntimeToolAssemblyResult = {
|
|
|
48
49
|
systemInstructions: string;
|
|
49
50
|
};
|
|
50
51
|
|
|
51
|
-
export type PrepareHostedChatRuntimeToolAssemblyInput
|
|
52
|
+
export type PrepareHostedChatRuntimeToolAssemblyInput<
|
|
53
|
+
TTraceAttributes extends HostToolTraceAttributes = HostToolTraceAttributes,
|
|
54
|
+
> = {
|
|
52
55
|
taskContext: HostedChatRuntimeToolAssemblyContext;
|
|
53
56
|
instructions: string | readonly ChatSystemMessage[];
|
|
54
57
|
localTools: HostToolSet;
|
|
@@ -59,7 +62,7 @@ export type PrepareHostedChatRuntimeToolAssemblyInput = {
|
|
|
59
62
|
allowedToolNames?: HostedChatRuntimeAllowedToolNames;
|
|
60
63
|
projectScopedRemoteToolOptions?: ProjectScopedRemoteToolOptions;
|
|
61
64
|
createRemoteToolSource?: (config: RemoteMCPToolSourceConfig) => RemoteToolSource;
|
|
62
|
-
traceLocalTools?: TraceHostToolsOptions
|
|
65
|
+
traceLocalTools?: TraceHostToolsOptions<TTraceAttributes>;
|
|
63
66
|
getProjectId?: () => string | null | undefined;
|
|
64
67
|
getActiveBranchId?: () => string | null | undefined;
|
|
65
68
|
prepareRemoteToolInput?: HostedProjectRemoteToolSourcePrepareToolInput;
|
|
@@ -99,8 +102,10 @@ export function filterHostedChatRuntimeLocalTools(input: {
|
|
|
99
102
|
return Object.fromEntries(entries.sort(([left], [right]) => left.localeCompare(right)));
|
|
100
103
|
}
|
|
101
104
|
|
|
102
|
-
export async function prepareHostedChatRuntimeToolAssembly
|
|
103
|
-
|
|
105
|
+
export async function prepareHostedChatRuntimeToolAssembly<
|
|
106
|
+
TTraceAttributes extends HostToolTraceAttributes = HostToolTraceAttributes,
|
|
107
|
+
>(
|
|
108
|
+
input: PrepareHostedChatRuntimeToolAssemblyInput<TTraceAttributes>,
|
|
104
109
|
): Promise<HostedChatRuntimeToolAssemblyResult> {
|
|
105
110
|
const allowedToolNames = normalizeAllowedToolNames(input.allowedToolNames);
|
|
106
111
|
const sortedLocalTools = filterHostedChatRuntimeLocalTools({
|