@finalai/agents 0.1.3 → 0.2.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/HOSTING.md +109 -0
- package/dist/modules/authoring/providers.d.mts +1 -1
- package/dist/modules/compile.mjs +0 -4
- package/dist/modules/compile.mjs.map +2 -2
- package/dist/modules/public.d.mts +1 -1
- package/dist/modules/public.mjs.map +2 -2
- package/package.json +6 -11
- package/dist/modules/models.d.mts +0 -1
- package/dist/modules/models.mjs +0 -2
- package/dist/modules/models.mjs.map +0 -7
package/HOSTING.md
CHANGED
|
@@ -21,6 +21,24 @@ Neither rewrites authored URLs. A GitHub-backed definition uses remote source;
|
|
|
21
21
|
push edits before explicitly publishing a ref. Caller API keys never become agent
|
|
22
22
|
credentials merely because they were used to publish.
|
|
23
23
|
|
|
24
|
+
## Hosted model resolution (SDK 0.2.0)
|
|
25
|
+
|
|
26
|
+
Hosted Final, Pi, Codex and Claude configurations accept string model references.
|
|
27
|
+
`serverless*ConfigSchema.parse(...).model` can be undefined: the host must choose
|
|
28
|
+
its catalog default, resolve aliases and validate availability before dispatch.
|
|
29
|
+
The host owns current candidates, runtime capabilities and dated prices, and
|
|
30
|
+
advertises picker choices through its harness descriptions. Compilation remains
|
|
31
|
+
offline and checks reference syntax.
|
|
32
|
+
|
|
33
|
+
SDK 0.2.0 removes `@finalai/agents/models` and
|
|
34
|
+
`@finalai/final-agent-provider/harnesses/models`, including their model arrays,
|
|
35
|
+
defaults, model-ID unions and pricing helpers. Migrate callers to string model
|
|
36
|
+
references and host-owned discovery, metadata and pricing.
|
|
37
|
+
|
|
38
|
+
Publish the SDK release before upgrading host dependencies. Ship the host's
|
|
39
|
+
catalog/default implementation together with its SDK dependency upgrade; a host
|
|
40
|
+
that only changes the dependency will lose the old default and catalog APIs.
|
|
41
|
+
|
|
24
42
|
## Hosted connections
|
|
25
43
|
|
|
26
44
|
```ts
|
|
@@ -66,6 +84,97 @@ other hosted connection. `binding`
|
|
|
66
84
|
selects another name. Existing explicit `url` calls remain static and compatible;
|
|
67
85
|
they always point at that URL. There is no Final-specific compiler rewrite.
|
|
68
86
|
|
|
87
|
+
## Connection tool policy
|
|
88
|
+
|
|
89
|
+
`tools.allow`, `tools.deny` and `tools.approval` keys are tool names or `*`
|
|
90
|
+
patterns, so a definition can scope a connection whose tool list it does not know:
|
|
91
|
+
|
|
92
|
+
```ts
|
|
93
|
+
export default defineFinalConnection({
|
|
94
|
+
tools: {
|
|
95
|
+
allow: ['github.*', 'list_goals'],
|
|
96
|
+
deny: ['github.delete_repo'],
|
|
97
|
+
approval: { 'github.delete_*': always() },
|
|
98
|
+
},
|
|
99
|
+
});
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
`*` matches any run of characters; everything else matches literally. `deny` wins
|
|
103
|
+
over `allow`. The most specific key governs a tool: an exact name, else the matching
|
|
104
|
+
pattern with the most literal characters, with ties resolved toward `ask`. Hosts
|
|
105
|
+
enforce this through `isToolExposed` and `toolApprovalOf` from
|
|
106
|
+
`@finalai/agent-provider`, and look up a tool's input-approval predicate under the
|
|
107
|
+
key `resolveToolApprovalKey` returns.
|
|
108
|
+
|
|
109
|
+
## Loaded and searchable tools
|
|
110
|
+
|
|
111
|
+
A connection that can expose many tools, such as Final's with every service the
|
|
112
|
+
person has connected, can name the ones the harness should list up front:
|
|
113
|
+
|
|
114
|
+
```ts
|
|
115
|
+
export default defineFinalConnection({
|
|
116
|
+
tools: { load: ['list_goals', 'get_goal', 'draft_goal', 'notify_user'] },
|
|
117
|
+
});
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
With `load`, the host lists only the loaded tools and must keep every other exposed
|
|
121
|
+
tool reachable: it serves a search over the connection's remaining exposed tools
|
|
122
|
+
(name, description, input schema) and a call that runs a found tool by its real
|
|
123
|
+
name, with the same exposure and approval checks as a direct call. A host may
|
|
124
|
+
instead add a found tool to the list and send `notifications/tools/list_changed`;
|
|
125
|
+
harnesses that ignore that notification still need the call path. `load: []`
|
|
126
|
+
leaves every tool to search. Entries are tool names or `*` patterns.
|
|
127
|
+
`isToolLoaded` from `@finalai/agent-provider` applies the rule after exposure.
|
|
128
|
+
|
|
129
|
+
Without `load`, the harness lists the connection's exposed tools except:
|
|
130
|
+
|
|
131
|
+
- **Connector tools.** A server can label a tool with the connector it belongs to
|
|
132
|
+
in the tool's `_meta`:
|
|
133
|
+
`{ "ai.final/connector": { "namespace": "salesforce", "name": "Salesforce" } }`.
|
|
134
|
+
The namespace identifies the connector (unique within the server's tools); the
|
|
135
|
+
name is for display, and two connectors may share one. Final's server labels
|
|
136
|
+
every connector tool with the namespace and name of the install it comes from.
|
|
137
|
+
The host never lists labelled tools up front. Its search tool names each
|
|
138
|
+
connector and how many tools it has, so the agent knows what is connected
|
|
139
|
+
without any of those definitions in its context, and searches for the tools it
|
|
140
|
+
needs. A `load` entry that names a labelled tool still lists it.
|
|
141
|
+
- **Tools past a size limit.** When a connection exposes more unlabelled tools
|
|
142
|
+
than the host lists directly (100 in Final's host), those are searched too.
|
|
143
|
+
|
|
144
|
+
A harness that declares `supports.deferredToolSearch` defers and searches tools
|
|
145
|
+
itself, so the host lists every exposed tool to it and serves no search.
|
|
146
|
+
|
|
147
|
+
A host's search should name the connectors it covers and accept a connector's
|
|
148
|
+
namespace to narrow to. Once a host has listed its search and call tools, it keeps answering them for
|
|
149
|
+
that harness even if the connection stops hiding tools, unless the connection
|
|
150
|
+
then lists its own tool by one of those names.
|
|
151
|
+
|
|
152
|
+
## Selecting tools by annotation
|
|
153
|
+
|
|
154
|
+
`tools.allow` and `tools.deny` entries can be MCP annotation selectors as well as
|
|
155
|
+
tool names, so a definition can scope tools it cannot name in advance:
|
|
156
|
+
|
|
157
|
+
```ts
|
|
158
|
+
export default defineFinalConnection({
|
|
159
|
+
tools: {
|
|
160
|
+
allow: ['list_goals', 'draft_goal', { readOnlyHint: true }],
|
|
161
|
+
deny: [{ destructiveHint: true, readOnlyHint: false }],
|
|
162
|
+
},
|
|
163
|
+
});
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
A selector matches when every hint it sets equals the tool's hint, reading hints the
|
|
167
|
+
tool omits as the MCP spec's defaults (not read-only, destructive, not idempotent,
|
|
168
|
+
open world). The annotations come from the connection's server, so select on them
|
|
169
|
+
only for servers trusted to classify their own tools.
|
|
170
|
+
|
|
171
|
+
Selectors lower to `allowAnnotations` (each with the connection default approval and
|
|
172
|
+
input predicate) and `denyAnnotations`. A host exposes a tool when nothing in `deny`
|
|
173
|
+
or `denyAnnotations` matches it and either an `approvals` key (name or pattern)
|
|
174
|
+
governs it, `approvals` is null, or `toolAnnotationRuleFor` finds a rule; a tool an
|
|
175
|
+
`approvals` key governs keeps that approval, otherwise it runs under the rule's. `tools.approval` overrides apply only to
|
|
176
|
+
named tools.
|
|
177
|
+
|
|
69
178
|
## Resources and provider packages
|
|
70
179
|
|
|
71
180
|
`HostedBindingsIface` is the shared `@finalai/agent-provider` contract. Hosting
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { HarnessBindingOutputIface, LocalStdioConfigInputIface, RemoteAcpConfigInputIface, RemoteClaudeCodeConfigInputIface, RemoteClientTlsInputIface, RemoteCodexConfigInputIface, RemotePiConfigInputIface, SecretRefIface, ServerlessFinalConfigInputIface, ServerlessNanocodeClaudeConfigInputIface, ServerlessNanocodeCodexConfigInputIface, ServerlessPiConfigInputIface, } from '@finalai/final-agent-provider/harnesses';
|
|
2
2
|
export type { ComputerInlineGuideInputIface, ComputerInputIface, ComputerParametersInputIface, ComputerRepositoryInputIface, ComputerSetupGuideInputIface, DeviceInputIface, InstalledSandboxEnvironmentIface, InstalledSandboxOpenRequestIface, SandboxOpenInputIface, } from '@finalai/final-agent-provider/sandboxes';
|
package/dist/modules/compile.mjs
CHANGED
|
@@ -2,7 +2,6 @@ import { fileURLToPath } from "node:url";
|
|
|
2
2
|
const compile = async (options) => {
|
|
3
3
|
const finalAuthoringModules = [
|
|
4
4
|
"harnesses",
|
|
5
|
-
"harnesses/models",
|
|
6
5
|
"harnesses/config-fields",
|
|
7
6
|
"harnesses/serverless-final",
|
|
8
7
|
"harnesses/serverless-pi",
|
|
@@ -32,9 +31,6 @@ const compile = async (options) => {
|
|
|
32
31
|
"@finalai/agents/harnesses": fileURLToPath(
|
|
33
32
|
import.meta.resolve("@finalai/final-agent-provider/harnesses")
|
|
34
33
|
),
|
|
35
|
-
"@finalai/agents/models": fileURLToPath(
|
|
36
|
-
import.meta.resolve("@finalai/final-agent-provider/harnesses/models")
|
|
37
|
-
),
|
|
38
34
|
"@finalai/agents/sandboxes": fileURLToPath(
|
|
39
35
|
import.meta.resolve("@finalai/final-agent-provider/sandboxes")
|
|
40
36
|
),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/compile.ts"],
|
|
4
|
-
"sourcesContent": ["import type { CompileOptionsIface, CompileResultIface } from '@finalai/agent-definition/compiler';\nimport { fileURLToPath } from 'node:url';\nexport const compile = async (options: CompileOptionsIface): Promise<CompileResultIface> => {\n const finalAuthoringModules = [\n 'harnesses',\n 'harnesses/
|
|
5
|
-
"mappings": "AACA,SAAS,qBAAqB;AACvB,MAAM,UAAU,OAAO,YAA8D;AAC1F,QAAM,wBAAwB;AAAA,IAC5B;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,
|
|
4
|
+
"sourcesContent": ["import type { CompileOptionsIface, CompileResultIface } from '@finalai/agent-definition/compiler';\nimport { fileURLToPath } from 'node:url';\nexport const compile = async (options: CompileOptionsIface): Promise<CompileResultIface> => {\n const finalAuthoringModules = [\n 'harnesses',\n 'harnesses/config-fields',\n 'harnesses/serverless-final',\n 'harnesses/serverless-pi',\n 'harnesses/serverless-nanocode-codex',\n 'harnesses/serverless-nanocode-claude',\n 'harnesses/remote-pi',\n 'harnesses/remote-codex',\n 'harnesses/remote-claude-code',\n 'harnesses/remote-acp',\n 'harnesses/local-stdio',\n 'sandboxes',\n 'sandboxes/computer',\n 'sandboxes/device',\n 'sandboxes/environment',\n 'connections',\n 'channels/final',\n 'channel-factories',\n ].map((path) => '@finalai/final-agent-provider/' + path);\n const providerModules = {\n ...Object.fromEntries(\n finalAuthoringModules.map((specifier) => [\n specifier,\n fileURLToPath(import.meta.resolve(specifier)),\n ]),\n ),\n '@finalai/agents': fileURLToPath(import.meta.resolve('@finalai/agents/authoring')),\n '@finalai/agents/harnesses': fileURLToPath(\n import.meta.resolve('@finalai/final-agent-provider/harnesses'),\n ),\n '@finalai/agents/sandboxes': fileURLToPath(\n import.meta.resolve('@finalai/final-agent-provider/sandboxes'),\n ),\n '@finalai/agents/channels/final': fileURLToPath(\n import.meta.resolve('@finalai/final-agent-provider/channels/final'),\n ),\n ...options.providerModules,\n };\n return (await import('@finalai/agent-definition/compiler')).compile({\n defaultFiles: {\n 'channels/final.ts':\n \"import { finalChannel } from '@finalai/agents/channels/final'; export default finalChannel();\",\n },\n ...options,\n providerModules,\n installedSandboxProviders: {\n computer: '@finalai/final-agent-provider/sandboxes/computer',\n device: '@finalai/final-agent-provider/sandboxes/device',\n ...options.installedSandboxProviders,\n },\n });\n};\nexport type {\n CompatibilityReportIface,\n CompiledBundleIface,\n CompileOptionsIface,\n CompileResultIface,\n DiagnosticCode,\n DiagnosticIface,\n DiagnosticSeverity,\n HarnessDescriptionContextIface,\n} from '@finalai/agent-definition/compiler';\n"],
|
|
5
|
+
"mappings": "AACA,SAAS,qBAAqB;AACvB,MAAM,UAAU,OAAO,YAA8D;AAC1F,QAAM,wBAAwB;AAAA,IAC5B;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,EAAE,IAAI,CAAC,SAAS,mCAAmC,IAAI;AACvD,QAAM,kBAAkB;AAAA,IACtB,GAAG,OAAO;AAAA,MACR,sBAAsB,IAAI,CAAC,cAAc;AAAA,QACvC;AAAA,QACA,cAAc,YAAY,QAAQ,SAAS,CAAC;AAAA,MAC9C,CAAC;AAAA,IACH;AAAA,IACA,mBAAmB,cAAc,YAAY,QAAQ,2BAA2B,CAAC;AAAA,IACjF,6BAA6B;AAAA,MAC3B,YAAY,QAAQ,yCAAyC;AAAA,IAC/D;AAAA,IACA,6BAA6B;AAAA,MAC3B,YAAY,QAAQ,yCAAyC;AAAA,IAC/D;AAAA,IACA,kCAAkC;AAAA,MAChC,YAAY,QAAQ,8CAA8C;AAAA,IACpE;AAAA,IACA,GAAG,QAAQ;AAAA,EACb;AACA,UAAQ,MAAM,OAAO,oCAAoC,GAAG,QAAQ;AAAA,IAClE,cAAc;AAAA,MACZ,qBACE;AAAA,IACJ;AAAA,IACA,GAAG;AAAA,IACH;AAAA,IACA,2BAA2B;AAAA,MACzB,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,GAAG,QAAQ;AAAA,IACb;AAAA,EACF,CAAC;AACH;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { CredentialOwner, CredentialPayer, DELETE, GET, HookEvent, POST, PUT, SandboxWire, WS, always, baseTools, credentials, defineAgent, defineChannel, disableChannel, defineProviderChannel, defineDynamic, defineHarness, defineHostedConnection, defineHook, defineInstructions, defineMcpClientConnection, defineSandbox, defineSandboxProvider, defineSchedule, defineSkill, defineTool, harnessHost, never, toolResultFrom, whenInput, } from "./authoring/index.mjs";
|
|
2
2
|
export type { AgentDefinitionInputIface, AgentSessionInfoIface, ApprovalPolicyIface, AuthoredChannelDefinitionIface, AuthoredHarnessCloseContextIface, AuthoredHarnessDescriptionIface, AuthoredHarnessEndpointIface, AuthoredHarnessHealthIface, AuthoredHarnessIface, AuthoredHarnessOpenArgsIface, AuthoredHarnessRefContextIface, AuthoredHarnessResumeArgsIface, BaseToolsValueIface, ConversationInfoIface, CredentialNode, CredentialPolicyIface, DefinedAuthoredHarnessIface, DefinedToolIface, DynamicDefinitionIface, DynamicResolveContextIface, DynamicSentinelIface, FinalPlatformClientIface, HarnessHostIface, HookContextIface, HookDefinitionIface, HookEventIface, HostedConnectionDefinitionIface, McpClientConnectionDefinitionIface, SandboxSelectorContextIface, ScheduleInputIface, SkillDefinitionIface, ToolContextIface, ToolDefinitionIface, } from "./authoring/index.mjs";
|
|
3
3
|
export * from "./authoring/providers.mjs";
|
|
4
|
-
export type { AgentManifestIface, ChannelDefinitionIface, ChannelPlatformIface, ChannelSocketIface, HarnessDescriptionIface, HarnessEndpointIface, HarnessIface, HarnessSessionRefIface, HostedBindingsIface, McpChannelIface, NetworkSandboxSessionIface, ResolvedAgentManifestIface, RouteDefinitionIface, SandboxMcpEndpoint, SandboxPrepareContextIface, SandboxProcessIface, SandboxProviderHandleIface, SandboxProviderIface, SandboxProviderImplementationIface, SandboxSessionIface, SandboxStartContextIface, ScreenSessionIface, } from '@finalai/agent-provider';
|
|
4
|
+
export type { AgentAvatarIface, AvatarMedia, AvatarState, AgentManifestIface, ChannelDefinitionIface, ChannelPlatformIface, ChannelSocketIface, HarnessDescriptionIface, HarnessEndpointIface, HarnessIface, HarnessSessionRefIface, HostedBindingsIface, McpChannelIface, NetworkSandboxSessionIface, ResolvedAgentManifestIface, RouteDefinitionIface, SandboxMcpEndpoint, SandboxPrepareContextIface, SandboxProcessIface, SandboxProviderHandleIface, SandboxProviderIface, SandboxProviderImplementationIface, SandboxSessionIface, SandboxStartContextIface, ScreenSessionIface, } from '@finalai/agent-provider';
|
|
5
5
|
export { requireHostedBinding } from '@finalai/agent-provider';
|
|
6
6
|
export { validateHostedBindings } from '@finalai/agent-definition';
|
|
7
7
|
export type { HostedBindingRequirementIface } from '@finalai/agent-provider';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/public.ts"],
|
|
4
|
-
"sourcesContent": ["// Agent authoring.\nexport {\n CredentialOwner,\n CredentialPayer,\n DELETE,\n GET,\n HookEvent,\n POST,\n PUT,\n SandboxWire,\n WS,\n always,\n baseTools,\n credentials,\n defineAgent,\n defineChannel,\n disableChannel,\n defineProviderChannel,\n defineDynamic,\n defineHarness,\n defineHostedConnection,\n defineHook,\n defineInstructions,\n defineMcpClientConnection,\n defineSandbox,\n defineSandboxProvider,\n defineSchedule,\n defineSkill,\n defineTool,\n harnessHost,\n never,\n toolResultFrom,\n whenInput,\n} from \"./authoring/index.mjs\";\nexport type {\n AgentDefinitionInputIface,\n AgentSessionInfoIface,\n ApprovalPolicyIface,\n AuthoredChannelDefinitionIface,\n AuthoredHarnessCloseContextIface,\n AuthoredHarnessDescriptionIface,\n AuthoredHarnessEndpointIface,\n AuthoredHarnessHealthIface,\n AuthoredHarnessIface,\n AuthoredHarnessOpenArgsIface,\n AuthoredHarnessRefContextIface,\n AuthoredHarnessResumeArgsIface,\n BaseToolsValueIface,\n ConversationInfoIface,\n CredentialNode,\n CredentialPolicyIface,\n DefinedAuthoredHarnessIface,\n DefinedToolIface,\n DynamicDefinitionIface,\n DynamicResolveContextIface,\n DynamicSentinelIface,\n FinalPlatformClientIface,\n HarnessHostIface,\n HookContextIface,\n HookDefinitionIface,\n HookEventIface,\n HostedConnectionDefinitionIface,\n McpClientConnectionDefinitionIface,\n SandboxSelectorContextIface,\n ScheduleInputIface,\n SkillDefinitionIface,\n ToolContextIface,\n ToolDefinitionIface,\n} from \"./authoring/index.mjs\";\nexport * from \"./authoring/providers.mjs\";\n\nexport type {\n AgentManifestIface,\n ChannelDefinitionIface,\n ChannelPlatformIface,\n ChannelSocketIface,\n HarnessDescriptionIface,\n HarnessEndpointIface,\n HarnessIface,\n HarnessSessionRefIface,\n HostedBindingsIface,\n McpChannelIface,\n NetworkSandboxSessionIface,\n ResolvedAgentManifestIface,\n RouteDefinitionIface,\n SandboxMcpEndpoint,\n SandboxPrepareContextIface,\n SandboxProcessIface,\n SandboxProviderHandleIface,\n SandboxProviderIface,\n SandboxProviderImplementationIface,\n SandboxSessionIface,\n SandboxStartContextIface,\n ScreenSessionIface,\n} from '@finalai/agent-provider';\n\nexport { requireHostedBinding } from '@finalai/agent-provider';\nexport { validateHostedBindings } from '@finalai/agent-definition';\nexport type { HostedBindingRequirementIface } from '@finalai/agent-provider';\n\nexport { defineFinalConnection } from '@finalai/final-agent-provider/connections';\nexport type {\n FinalConnectionDefinitionIface,\n FinalHostedConnectionDefinitionIface,\n} from '@finalai/final-agent-provider/connections';\n"],
|
|
5
|
-
"mappings": "AACA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAoCP,cAAc;
|
|
4
|
+
"sourcesContent": ["// Agent authoring.\nexport {\n CredentialOwner,\n CredentialPayer,\n DELETE,\n GET,\n HookEvent,\n POST,\n PUT,\n SandboxWire,\n WS,\n always,\n baseTools,\n credentials,\n defineAgent,\n defineChannel,\n disableChannel,\n defineProviderChannel,\n defineDynamic,\n defineHarness,\n defineHostedConnection,\n defineHook,\n defineInstructions,\n defineMcpClientConnection,\n defineSandbox,\n defineSandboxProvider,\n defineSchedule,\n defineSkill,\n defineTool,\n harnessHost,\n never,\n toolResultFrom,\n whenInput,\n} from \"./authoring/index.mjs\";\nexport type {\n AgentDefinitionInputIface,\n AgentSessionInfoIface,\n ApprovalPolicyIface,\n AuthoredChannelDefinitionIface,\n AuthoredHarnessCloseContextIface,\n AuthoredHarnessDescriptionIface,\n AuthoredHarnessEndpointIface,\n AuthoredHarnessHealthIface,\n AuthoredHarnessIface,\n AuthoredHarnessOpenArgsIface,\n AuthoredHarnessRefContextIface,\n AuthoredHarnessResumeArgsIface,\n BaseToolsValueIface,\n ConversationInfoIface,\n CredentialNode,\n CredentialPolicyIface,\n DefinedAuthoredHarnessIface,\n DefinedToolIface,\n DynamicDefinitionIface,\n DynamicResolveContextIface,\n DynamicSentinelIface,\n FinalPlatformClientIface,\n HarnessHostIface,\n HookContextIface,\n HookDefinitionIface,\n HookEventIface,\n HostedConnectionDefinitionIface,\n McpClientConnectionDefinitionIface,\n SandboxSelectorContextIface,\n ScheduleInputIface,\n SkillDefinitionIface,\n ToolContextIface,\n ToolDefinitionIface,\n} from \"./authoring/index.mjs\";\nexport * from \"./authoring/providers.mjs\";\n\nexport type {\n AgentAvatarIface,\n AvatarMedia,\n AvatarState,\n AgentManifestIface,\n ChannelDefinitionIface,\n ChannelPlatformIface,\n ChannelSocketIface,\n HarnessDescriptionIface,\n HarnessEndpointIface,\n HarnessIface,\n HarnessSessionRefIface,\n HostedBindingsIface,\n McpChannelIface,\n NetworkSandboxSessionIface,\n ResolvedAgentManifestIface,\n RouteDefinitionIface,\n SandboxMcpEndpoint,\n SandboxPrepareContextIface,\n SandboxProcessIface,\n SandboxProviderHandleIface,\n SandboxProviderIface,\n SandboxProviderImplementationIface,\n SandboxSessionIface,\n SandboxStartContextIface,\n ScreenSessionIface,\n} from '@finalai/agent-provider';\n\nexport { requireHostedBinding } from '@finalai/agent-provider';\nexport { validateHostedBindings } from '@finalai/agent-definition';\nexport type { HostedBindingRequirementIface } from '@finalai/agent-provider';\n\nexport { defineFinalConnection } from '@finalai/final-agent-provider/connections';\nexport type {\n FinalConnectionDefinitionIface,\n FinalHostedConnectionDefinitionIface,\n} from '@finalai/final-agent-provider/connections';\n"],
|
|
5
|
+
"mappings": "AACA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAoCP,cAAc;AA8Bd,SAAS,4BAA4B;AACrC,SAAS,8BAA8B;AAGvC,SAAS,6BAA6B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finalai/agents",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Agent authoring, client APIs, and CLI.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -73,11 +73,6 @@
|
|
|
73
73
|
"default": "./dist/modules/sandboxes.mjs"
|
|
74
74
|
},
|
|
75
75
|
"./package.json": "./package.json",
|
|
76
|
-
"./models": {
|
|
77
|
-
"types": "./dist/modules/models.d.mts",
|
|
78
|
-
"import": "./dist/modules/models.mjs",
|
|
79
|
-
"default": "./dist/modules/models.mjs"
|
|
80
|
-
},
|
|
81
76
|
"./channels/final": {
|
|
82
77
|
"types": "./dist/modules/authoring/final-channel.d.mts",
|
|
83
78
|
"import": "./dist/modules/authoring/final-channel.mjs",
|
|
@@ -110,11 +105,11 @@
|
|
|
110
105
|
},
|
|
111
106
|
"dependencies": {
|
|
112
107
|
"@agentclientprotocol/sdk": "1.8.0",
|
|
113
|
-
"@finalai/agent-definition": "0.1.
|
|
114
|
-
"@finalai/agent-protocol": "0.1.
|
|
115
|
-
"@finalai/agent-provider": "0.1.
|
|
116
|
-
"@finalai/final-agent-provider": "0.
|
|
117
|
-
"@finalai/websockets": "0.1.
|
|
108
|
+
"@finalai/agent-definition": "0.1.4",
|
|
109
|
+
"@finalai/agent-protocol": "0.1.4",
|
|
110
|
+
"@finalai/agent-provider": "0.1.5",
|
|
111
|
+
"@finalai/final-agent-provider": "0.2.0",
|
|
112
|
+
"@finalai/websockets": "0.1.4",
|
|
118
113
|
"ws": "^8.21.3",
|
|
119
114
|
"zod": "4.6.5"
|
|
120
115
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '@finalai/final-agent-provider/harnesses/models';
|
package/dist/modules/models.mjs
DELETED