veryfront 0.1.1222 → 0.1.1223
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 +9 -5
- package/esm/src/agent/hosted/chat-runtime-tool-assembly.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-step-message-preparation.d.ts +14 -9
- package/esm/src/agent/hosted/child-fork-step-message-preparation.d.ts.map +1 -1
- package/esm/src/agent/hosted/child-fork-step-message-preparation.js +0 -3
- package/esm/src/agent/hosted/project-remote-tool-source.d.ts +13 -5
- package/esm/src/agent/hosted/project-remote-tool-source.d.ts.map +1 -1
- package/esm/src/agent/hosted/project-remote-tool-source.js +3 -3
- package/esm/src/agent/hosted/runtime-essential-tools.d.ts.map +1 -1
- package/esm/src/agent/hosted/runtime-essential-tools.js +0 -17
- package/esm/src/agent/runtime/tool-discovery-context.d.ts +27 -12
- package/esm/src/agent/runtime/tool-discovery-context.d.ts.map +1 -1
- package/esm/src/build/production-build/client-runtime.d.ts.map +1 -1
- package/esm/src/build/production-build/client-runtime.js +7 -0
- package/esm/src/html/hydration-script-builder/hydration-runtime.generated.js +1 -1
- package/esm/src/internal-agents/ag-ui-sse.d.ts.map +1 -1
- package/esm/src/internal-agents/ag-ui-sse.js +29 -18
- package/esm/src/platform/compat/http/pinned-fetch.d.ts +1 -1
- package/esm/src/security/client/html-sanitizer.d.ts +8 -0
- package/esm/src/security/client/html-sanitizer.d.ts.map +1 -1
- package/esm/src/security/client/html-sanitizer.js +4 -1
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.d.ts.map +1 -1
- package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.js +2 -2
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +8 -8
package/esm/deno.js
CHANGED
|
@@ -6,8 +6,8 @@ import { type HostedProjectRemoteToolSourceMutationHandler, type HostedProjectRe
|
|
|
6
6
|
import { type RuntimeClientProfile } from "../runtime/client-profile.js";
|
|
7
7
|
import { type HostedRuntimeAllowedToolNames } from "./runtime-essential-tools.js";
|
|
8
8
|
import type { HostedSubmittedFormInputResult } from "./chat-runtime-contract.js";
|
|
9
|
-
import type { RuntimeToolDiscoveryContext } from "../runtime/tool-discovery-context.js";
|
|
10
9
|
import { type SourceIntegrationPolicyManifest } from "../../integrations/source-policy.js";
|
|
10
|
+
import type { RuntimeToolDiscoveryContext } from "../runtime/tool-discovery-context.js";
|
|
11
11
|
import type { RuntimeToolLoadingMode } from "../runtime/runtime-tool-config.js";
|
|
12
12
|
/** Context for hosted chat runtime tool assembly. */
|
|
13
13
|
export type HostedChatRuntimeToolAssemblyContext = DefaultResearchArtifactContext & {
|
|
@@ -71,10 +71,14 @@ export type PrepareHostedChatRuntimeToolAssemblyInput<TTraceAttributes extends H
|
|
|
71
71
|
onStudioProjectSwitch?: HostedProjectRemoteToolSourceProjectSwitchHandler;
|
|
72
72
|
preloadLatestConversationUserText?: boolean;
|
|
73
73
|
/**
|
|
74
|
-
* Per-run tool
|
|
75
|
-
*
|
|
76
|
-
* execution gate
|
|
77
|
-
*
|
|
74
|
+
* Per-run tool activation context. When its `activatedRemoteToolNames` Set is
|
|
75
|
+
* present, it is passed by reference to every remote tool source as the live
|
|
76
|
+
* execution gate, so growing the Set exposes tools without re-creating the
|
|
77
|
+
* sources. Deprecated: no framework path populates this. It is retained
|
|
78
|
+
* because `PrepareHostedChatRuntimeToolAssemblyInput` is public API.
|
|
79
|
+
*
|
|
80
|
+
* @deprecated Use `tool_search` deferred loading. See
|
|
81
|
+
* `docs/architecture/28-model-driven-tool-discovery.md`.
|
|
78
82
|
*/
|
|
79
83
|
toolDiscoveryContext?: RuntimeToolDiscoveryContext;
|
|
80
84
|
/** Exact project-source restriction applied before tool inventory is exposed. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"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,qBAAqB,CAAC;AAC7D,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAE5B,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,OAAO,EAEZ,KAAK,qBAAqB,EAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,8BAA8B,EAGpC,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,EAEL,KAAK,4CAA4C,EACjD,KAAK,6CAA6C,EAClD,KAAK,iDAAiD,EACtD,KAAK,wCAAwC,EAC9C,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAIzE,OAAO,EACL,KAAK,6BAA6B,EAGnC,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"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,qBAAqB,CAAC;AAC7D,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAE5B,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,OAAO,EAEZ,KAAK,qBAAqB,EAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,8BAA8B,EAGpC,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,KAAK,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;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C,EAAE,CAAC,MAAM,EAAE,yBAAyB,KAAK,gBAAgB,CAAC;IACjF,eAAe,CAAC,EAAE,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;IAC1D,YAAY,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C,iBAAiB,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpD,sBAAsB,CAAC,EAAE,6CAA6C,CAAC;IACvE,yBAAyB,CAAC,EAAE,wCAAwC,CAAC;IACrE,kBAAkB,CAAC,EAAE,4CAA4C,CAAC;IAClE,qBAAqB,CAAC,EAAE,iDAAiD,CAAC;IAC1E,iCAAiC,CAAC,EAAE,OAAO,CAAC;IAC5C;;;;;;;;;OASG;IACH,oBAAoB,CAAC,EAAE,2BAA2B,CAAC;IACnD,iFAAiF;IACjF,uBAAuB,EAAE,+BAA+B,CAAC;CAC1D,CAAC;AA2FF,8CAA8C;AAC9C,wBAAgB,iCAAiC,CAAC,KAAK,EAAE;IACvD,KAAK,EAAE,WAAW,CAAC;IACnB,gBAAgB,CAAC,EAAE,iCAAiC,CAAC;IACrD,uBAAuB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC7C,GAAG,WAAW,CAOd;AAwBD,iDAAiD;AACjD,wBAAsB,oCAAoC,CACxD,gBAAgB,SAAS,uBAAuB,GAAG,uBAAuB,EAE1E,KAAK,EAAE,yCAAyC,CAAC,gBAAgB,CAAC,GACjE,OAAO,CAAC,mCAAmC,CAAC,CAoK9C"}
|
|
@@ -12,15 +12,20 @@ export type PrepareHostedChildForkRuntimeStepMessagesInput = {
|
|
|
12
12
|
forkToolNames: readonly string[];
|
|
13
13
|
resolveSystem?: HostedChildForkRuntimeStepSystemResolver;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* Tool names that are always present. Required when `getActivatedToolNames`
|
|
16
|
+
* is supplied.
|
|
17
|
+
*
|
|
18
|
+
* @deprecated No framework path supplies this. Retained because
|
|
19
|
+
* `PrepareHostedChildForkRuntimeStepMessagesInput` is public API.
|
|
17
20
|
*/
|
|
18
21
|
pinnedToolNames?: readonly string[];
|
|
19
22
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
23
|
+
* Returns the currently activated tool names. The result is merged with
|
|
24
|
+
* `pinnedToolNames` and returned as `forkToolNames`, letting a caller refresh
|
|
25
|
+
* the exposed tool set per step without mutating its own fixed array.
|
|
26
|
+
*
|
|
27
|
+
* @deprecated Use `tool_search` deferred loading. See
|
|
28
|
+
* `docs/architecture/28-model-driven-tool-discovery.md`.
|
|
24
29
|
*/
|
|
25
30
|
getActivatedToolNames?: () => readonly string[];
|
|
26
31
|
};
|
|
@@ -29,9 +34,9 @@ export type HostedChildForkRuntimeStepMessages = {
|
|
|
29
34
|
messages: AgentMessage[];
|
|
30
35
|
system: string;
|
|
31
36
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
37
|
+
* The live `pinned + activated` set for this step. Present only when
|
|
38
|
+
* `getActivatedToolNames` was supplied; callers otherwise keep their own
|
|
39
|
+
* fixed `forkToolNames`.
|
|
35
40
|
*/
|
|
36
41
|
forkToolNames?: readonly string[];
|
|
37
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"child-fork-step-message-preparation.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/child-fork-step-message-preparation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAUhE,OAAO,KAAK,EAAE,OAAO,IAAI,YAAY,EAAe,MAAM,qBAAqB,CAAC;AAEhF,8EAA8E;AAC9E,MAAM,MAAM,wCAAwC,GAAG,CAAC,KAAK,EAAE;IAC7D,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,SAAS,oBAAoB,EAAE,CAAC;CACpD,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAEhC,yEAAyE;AACzE,MAAM,MAAM,8CAA8C,GAAG;IAC3D,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,iBAAiB,EAAE,MAAM,MAAM,CAAC;IAChC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,aAAa,CAAC,EAAE,wCAAwC,CAAC;IACzD
|
|
1
|
+
{"version":3,"file":"child-fork-step-message-preparation.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/child-fork-step-message-preparation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAUhE,OAAO,KAAK,EAAE,OAAO,IAAI,YAAY,EAAe,MAAM,qBAAqB,CAAC;AAEhF,8EAA8E;AAC9E,MAAM,MAAM,wCAAwC,GAAG,CAAC,KAAK,EAAE;IAC7D,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,SAAS,oBAAoB,EAAE,CAAC;CACpD,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAEhC,yEAAyE;AACzE,MAAM,MAAM,8CAA8C,GAAG;IAC3D,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,iBAAiB,EAAE,MAAM,MAAM,CAAC;IAChC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,aAAa,CAAC,EAAE,wCAAwC,CAAC;IACzD;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC;;;;;;;OAOG;IACH,qBAAqB,CAAC,EAAE,MAAM,SAAS,MAAM,EAAE,CAAC;CACjD,CAAC;AAEF,uEAAuE;AACvE,MAAM,MAAM,kCAAkC,GAAG;IAC/C,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC,CAAC;AAiDF,0EAA0E;AAC1E,wBAAgB,0DAA0D,CACxE,iBAAiB,EAAE,SAAS,oBAAoB,EAAE,GACjD,YAAY,EAAE,CAOhB;AAED,uDAAuD;AACvD,wBAAgB,yCAAyC,CACvD,KAAK,EAAE,8CAA8C,GACpD,kCAAkC,CAoCpC"}
|
|
@@ -55,9 +55,6 @@ export function prepareHostedChildForkRuntimeStepMessages(input) {
|
|
|
55
55
|
system: currentInstructions,
|
|
56
56
|
compactedMessages,
|
|
57
57
|
});
|
|
58
|
-
// Compute live forkToolNames = pinned ∪ activated when the caller supplies
|
|
59
|
-
// a getActivatedToolNames getter. This allows each step to see newly
|
|
60
|
-
// activated tool schemas without the caller mutating its fixed array.
|
|
61
58
|
const liveForkToolNames = input.getActivatedToolNames
|
|
62
59
|
? [
|
|
63
60
|
...new Set([
|
|
@@ -29,11 +29,19 @@ export type CreateHostedProjectRemoteToolSourceInput = {
|
|
|
29
29
|
getActiveBranchId?: () => string | null | undefined;
|
|
30
30
|
allowedToolNames?: ReadonlySet<string> | null;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* the
|
|
36
|
-
*
|
|
32
|
+
* Narrower execution gate for the remote tool catalog. When set, only tools
|
|
33
|
+
* in this Set can be listed or executed, overriding `allowedToolNames`. The
|
|
34
|
+
* Set is held by reference, so growing it exposes tools without re-creating
|
|
35
|
+
* the catalog.
|
|
36
|
+
*
|
|
37
|
+
* `null` is not a fallback: it overrides `allowedToolNames` and disables name
|
|
38
|
+
* filtering entirely. Omit the property to keep `allowedToolNames` as the
|
|
39
|
+
* gate.
|
|
40
|
+
*
|
|
41
|
+
* @deprecated No framework path supplies this. It is retained because
|
|
42
|
+
* `CreateHostedProjectRemoteToolSourceInput` is public API, and dropping it
|
|
43
|
+
* would silently widen the catalog to `allowedToolNames` for any caller that
|
|
44
|
+
* relies on it as the gate.
|
|
37
45
|
*/
|
|
38
46
|
activatedRemoteToolNames?: ReadonlySet<string> | null;
|
|
39
47
|
projectScopedRemoteToolOptions?: ProjectScopedRemoteToolOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-remote-tool-source.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/project-remote-tool-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,qCAAqC,EAC1C,KAAK,uCAAuC,EAC5C,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,2BAA2B,EAGjC,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAItD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EACL,KAAK,kCAAkC,EAIxC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAGL,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EAC1B,MAAM,iCAAiC,CAAC;AAGzC,8DAA8D;AAC9D,MAAM,MAAM,4CAA4C,GAAG,CACzD,QAAQ,EAAE,6BAA6B,KACpC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAE1B,oEAAoE;AACpE,MAAM,MAAM,iDAAiD,GAAG,CAC9D,SAAS,EAAE,MAAM,EACjB,gBAAgB,CAAC,EAAE,QAAQ,CAAC,kCAAkC,CAAC,KAC5D,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAE1B,wEAAwE;AACxE,MAAM,MAAM,6CAA6C,GAAG,CAAC,KAAK,EAAE;IAClE,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE9B,8EAA8E;AAC9E,MAAM,MAAM,wCAAwC,GAAG,CAAC,KAAK,EAAE;IAC7D,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,KAAK,EAAE,OAAO,CAAC;CAChB,KAAK,OAAO,CAAC;AAEd,kEAAkE;AAClE,MAAM,MAAM,wCAAwC,GAAG;IACrD,MAAM,EAAE,gBAAgB,CAAC;IACzB,gBAAgB,CAAC,EAAE,uCAAuC,CAAC;IAC3D,iBAAiB,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpD,gBAAgB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAC9C
|
|
1
|
+
{"version":3,"file":"project-remote-tool-source.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/project-remote-tool-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,qCAAqC,EAC1C,KAAK,uCAAuC,EAC5C,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,2BAA2B,EAGjC,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAItD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EACL,KAAK,kCAAkC,EAIxC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAGL,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EAC1B,MAAM,iCAAiC,CAAC;AAGzC,8DAA8D;AAC9D,MAAM,MAAM,4CAA4C,GAAG,CACzD,QAAQ,EAAE,6BAA6B,KACpC,OAAO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AgB,CAAC,EAAE,6CAA6C,CAAC;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,wCAAwC,CAAC;IAC/D,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,eAAe,CAAC,EAAE,iDAAiD,CAAC;IACpE,kBAAkB,CAAC,EAAE,4CAA4C,CAAC;CACnE,CAAC;AAQF,gDAAgD;AAChD,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,wCAAwC,GAC9C,gBAAgB,CA0JlB;AAED,mEAAmE;AACnE,MAAM,MAAM,yCAAyC,GACjD,IAAI,CACJ,wCAAwC,EACxC,QAAQ,GAAG,iBAAiB,CAC7B,GACC;IACA,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,CAAC,EAAE,SAAS,2BAA2B,EAAE,CAAC;IACpD,aAAa,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC5C,YAAY,EAAE,MAAM,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,CAAC,MAAM,EAAE,yBAAyB,KAAK,gBAAgB,CAAC;IACjF,qBAAqB,CAAC,EAAE,iDAAiD,CAAC;CAC3E,CAAC;AAyFJ,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,gBAAgB,EACxB,MAAM,EAAE,kBAAkB,GAAG,SAAS,GACrC,gBAAgB,CAIlB;AAED,iDAAiD;AACjD,wBAAgB,oCAAoC,CAClD,KAAK,EAAE,yCAAyC,GAC/C,gBAAgB,EAAE,CAkCpB"}
|
|
@@ -11,9 +11,9 @@ function resolveActiveBranchId(getActiveBranchId) {
|
|
|
11
11
|
}
|
|
12
12
|
/** Create hosted project remote tool source. */
|
|
13
13
|
export function createHostedProjectRemoteToolSource(input) {
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
14
|
+
// `activatedRemoteToolNames` is the gate whenever the property is present,
|
|
15
|
+
// including when it is `null`, which disables name filtering entirely. Only
|
|
16
|
+
// an omitted property falls back to `allowedToolNames`.
|
|
17
17
|
const catalogAllowedToolNames = input.activatedRemoteToolNames !== undefined
|
|
18
18
|
? input.activatedRemoteToolNames
|
|
19
19
|
: input.allowedToolNames;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-essential-tools.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/runtime-essential-tools.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,MAAM,MAAM,6BAA6B,GAAG,SAAS,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;AAE3F,gEAAgE;AAChE,MAAM,MAAM,yCAAyC,GAAG;IACtD,gBAAgB,CAAC,EAAE,6BAA6B,CAAC;IACjD,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACjC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,gFAAgF;IAChF,qCAAqC,CAAC,EAAE,OAAO,CAAC;CACjD,CAAC;
|
|
1
|
+
{"version":3,"file":"runtime-essential-tools.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/hosted/runtime-essential-tools.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,MAAM,MAAM,6BAA6B,GAAG,SAAS,MAAM,EAAE,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;AAE3F,gEAAgE;AAChE,MAAM,MAAM,yCAAyC,GAAG;IACtD,gBAAgB,CAAC,EAAE,6BAA6B,CAAC;IACjD,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACjC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,gFAAgF;IAChF,qCAAqC,CAAC,EAAE,OAAO,CAAC;CACjD,CAAC;AAaF,8CAA8C;AAC9C,wBAAgB,sCAAsC,CACpD,SAAS,EAAE,6BAA6B,GAAG,SAAS,GACnD,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAM5B;AAED,iFAAiF;AACjF,wBAAgB,oCAAoC,CAClD,KAAK,EAAE,yCAAyC,GAC/C,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAwD5B"}
|
|
@@ -8,11 +8,6 @@ const EMPTY_SKILL_MANIFEST_TOOL_NAMES = [
|
|
|
8
8
|
...SKILL_RUNTIME_TOOL_NAMES,
|
|
9
9
|
...SKILL_SCRIPT_TOOL_NAMES,
|
|
10
10
|
];
|
|
11
|
-
/**
|
|
12
|
-
* Tool discovery tools are unconditionally essential: they must never be
|
|
13
|
-
* truncated by the provider cap, regardless of skill availability.
|
|
14
|
-
*/
|
|
15
|
-
const TOOL_DISCOVERY_TOOL_NAMES = ["search_tools", "load_tools"];
|
|
16
11
|
/** Normalize hosted runtime allowed tools. */
|
|
17
12
|
export function normalizeHostedRuntimeAllowedToolNames(toolNames) {
|
|
18
13
|
if (!toolNames) {
|
|
@@ -45,18 +40,6 @@ export function resolveHostedRuntimeAllowedToolNames(input) {
|
|
|
45
40
|
resolvedToolNames.delete(toolName);
|
|
46
41
|
}
|
|
47
42
|
}
|
|
48
|
-
// Tool discovery is essential only when the agent already has at least one
|
|
49
|
-
// tool in its resolved set. Under deny-all (empty allowedToolNames), discovery
|
|
50
|
-
// tools are intentionally excluded: activating new tools is a broader
|
|
51
|
-
// capability than running pre-configured skills (load_skill), so the two are
|
|
52
|
-
// treated asymmetrically when allowedToolNames is empty.
|
|
53
|
-
if (resolvedToolNames.size > 0) {
|
|
54
|
-
for (const toolName of TOOL_DISCOVERY_TOOL_NAMES) {
|
|
55
|
-
if (localToolNames.has(toolName)) {
|
|
56
|
-
resolvedToolNames.add(toolName);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
43
|
// Preserve request-scoped skill loading tools when the host supplies them.
|
|
61
44
|
// Hosted cloud supplies load_skill; other adapters may also supply the
|
|
62
45
|
// reference tool. Explicit request-level empty allowlists return above and
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Public API contract for tool catalog entry in the runtime discovery catalog. */
|
|
1
|
+
/** Public API contract for a tool catalog entry in the runtime discovery catalog. */
|
|
2
2
|
export type RuntimeToolCatalogEntry = {
|
|
3
3
|
name: string;
|
|
4
4
|
description: string;
|
|
@@ -6,27 +6,42 @@ export type RuntimeToolCatalogEntry = {
|
|
|
6
6
|
requiresGrant?: boolean;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
|
-
* Per-run context bag for
|
|
9
|
+
* Per-run context bag for run-scoped tool activation.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* The framework never creates this context. A caller that supplies one owns its
|
|
12
|
+
* lifetime and must create a fresh `Set` for every run: a `Set` reused across
|
|
13
|
+
* runs carries the earlier run's tool names into the later one and overrides
|
|
14
|
+
* that run's `allowedToolNames`.
|
|
15
|
+
*
|
|
16
|
+
* @deprecated Use `tool_search` deferred loading. See
|
|
17
|
+
* `docs/architecture/28-model-driven-tool-discovery.md`. This type is retained
|
|
18
|
+
* because it is reachable from the public
|
|
19
|
+
* `PrepareHostedChatRuntimeToolAssemblyInput.toolDiscoveryContext` field.
|
|
13
20
|
*/
|
|
14
21
|
export type RuntimeToolDiscoveryContext = {
|
|
15
22
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
23
|
+
* Remote tool names activated in this run. When present, this Set is used by
|
|
24
|
+
* reference as the execution gate for every remote tool source, so growing it
|
|
25
|
+
* widens the catalog without re-creating sources.
|
|
26
|
+
*
|
|
27
|
+
* `null` disables name filtering entirely and overrides `allowedToolNames`.
|
|
28
|
+
* Omit the property to keep `allowedToolNames` as the gate.
|
|
18
29
|
*/
|
|
19
30
|
activatedRemoteToolNames?: Set<string>;
|
|
20
31
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
32
|
+
* Invoked after a successful activation with the newly activated names.
|
|
33
|
+
*
|
|
34
|
+
* @deprecated Never invoked. Its only caller was the `load_tools` tool, which
|
|
35
|
+
* was never exported, so no external caller could make this fire. Retained as
|
|
36
|
+
* an optional declaration so callers that still construct this context keep
|
|
37
|
+
* compiling.
|
|
24
38
|
*/
|
|
25
39
|
onToolsActivated?: (names: string[]) => void;
|
|
26
40
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
41
|
+
* Invoked when an activation is rejected, with the rejected names and a
|
|
42
|
+
* per-name reason.
|
|
43
|
+
*
|
|
44
|
+
* @deprecated Never invoked. See `onToolsActivated`.
|
|
30
45
|
*/
|
|
31
46
|
onToolsActivationRejected?: (names: string[], reasons: Record<string, string>) => void;
|
|
32
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-discovery-context.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/tool-discovery-context.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"tool-discovery-context.d.ts","sourceRoot":"","sources":["../../../../src/src/agent/runtime/tool-discovery-context.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC;;;;;;;OAOG;IACH,wBAAwB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAEvC;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAE7C;;;;;OAKG;IACH,yBAAyB,CAAC,EAAE,CAC1B,KAAK,EAAE,MAAM,EAAE,EACf,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC5B,IAAI,CAAC;CACX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-runtime.d.ts","sourceRoot":"","sources":["../../../../src/src/build/production-build/client-runtime.ts"],"names":[],"mappings":"AAAA;;;4BAG4B;AAY5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAiBtE,UAAU,6BAA6B;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;
|
|
1
|
+
{"version":3,"file":"client-runtime.d.ts","sourceRoot":"","sources":["../../../../src/src/build/production-build/client-runtime.ts"],"names":[],"mappings":"AAAA;;;4BAG4B;AAY5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAiBtE,UAAU,6BAA6B;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AA4CD;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CA4B1C;AAED;;;GAGG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,MAAM,CAAC,CAYjB;AAoBD;;;GAGG;AACH,wBAAsB,oBAAoB,CACxC,QAAQ,EAAE,cAAc,EACxB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,MAAM,CAAC,CAOjB;AAED;;;GAGG;AACH,wBAAsB,sBAAsB,CAC1C,QAAQ,EAAE,cAAc,EACxB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,MAAM,CAAC,CAOjB;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC,CAYzD"}
|
|
@@ -44,6 +44,13 @@ const unresolvedInternalAlias = /(?:^|["'])#veryfront\//;
|
|
|
44
44
|
const clientAliasPaths = new Map([
|
|
45
45
|
["#veryfront/config", "src/rendering/client/browser-stubs/config.ts"],
|
|
46
46
|
["#veryfront/errors/error-registry.ts", "src/rendering/client/browser-stubs/error-registry.ts"],
|
|
47
|
+
// Client code reaches SECURITY_VIOLATION through the leaf category module so
|
|
48
|
+
// that other bundlers do not retain the whole registry; the stub has to cover
|
|
49
|
+
// that spelling too or the definitions come back in through the side door.
|
|
50
|
+
[
|
|
51
|
+
"#veryfront/errors/error-registry/general.ts",
|
|
52
|
+
"src/rendering/client/browser-stubs/error-registry.ts",
|
|
53
|
+
],
|
|
47
54
|
["#veryfront/routing", "src/routing/client/index.ts"],
|
|
48
55
|
]);
|
|
49
56
|
/**
|