@finalai/agent-definition 0.1.10 → 0.4.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/THIRD_PARTY_NOTICES.md +565 -0
- package/dist/compiler-assets/{chunk-YW7HDGQA.ts → chunk-2LYL3UFK.ts} +4 -4
- package/dist/compiler-assets/{chunk-PFLSBTJA.ts → chunk-36MVFRMA.ts} +2 -2
- package/dist/compiler-assets/{chunk-2ZRYQO4Q.ts → chunk-4ERFBLH7.ts} +4 -4
- package/dist/compiler-assets/{chunk-Z2UDHIJK.ts → chunk-6MVG5NYI.ts} +13 -13
- package/dist/compiler-assets/{chunk-7XUPKRZU.ts → chunk-7KPWSOMK.ts} +1 -1
- package/dist/compiler-assets/{chunk-JGQ2KAN7.ts → chunk-7MDGEPFT.ts} +1 -1
- package/dist/compiler-assets/{chunk-TJZS457N.ts → chunk-BLF6KTBB.ts} +3 -3
- package/dist/compiler-assets/{chunk-4X2DS5BR.ts → chunk-FU5VHNO4.ts} +1 -1
- package/dist/compiler-assets/{chunk-APU2VKLW.ts → chunk-GOIK7WNT.ts} +3 -3
- package/dist/compiler-assets/{chunk-KGIUNNCX.ts → chunk-ISYIPH2T.ts} +3 -3
- package/dist/compiler-assets/{chunk-34O434BK.ts → chunk-JFNLGXQM.ts} +2 -2
- package/dist/compiler-assets/{chunk-TJ536HI4.ts → chunk-JW4Y5OAP.ts} +6 -6
- package/dist/compiler-assets/{chunk-4E5HECVD.ts → chunk-KNFPKVUS.ts} +1 -1
- package/dist/compiler-assets/{chunk-QJ26GEUM.ts → chunk-KTBNDKGJ.ts} +1 -1
- package/dist/compiler-assets/{chunk-3K4C4SVG.ts → chunk-KTXTYIF4.ts} +209 -1
- package/dist/compiler-assets/{chunk-RSWGFPNZ.ts → chunk-L7E6UQX3.ts} +3 -3
- package/dist/compiler-assets/{chunk-W6DOJA4W.ts → chunk-O3JKMLDP.ts} +3 -3
- package/dist/compiler-assets/{chunk-K6D7ZK74.ts → chunk-OBFQTLWC.ts} +3 -3
- package/dist/compiler-assets/{chunk-TM36NO3C.ts → chunk-OX46N5EP.ts} +1 -1
- package/dist/compiler-assets/{chunk-GCFSHHH2.ts → chunk-QVHDGZAN.ts} +2 -2
- package/dist/compiler-assets/{chunk-MSE7X5YG.ts → chunk-R4IHPPTB.ts} +2 -2
- package/dist/compiler-assets/chunk-S5ON7OBR.ts +8081 -0
- package/dist/compiler-assets/{chunk-4A66SVBJ.ts → chunk-TFPXCL5W.ts} +4 -4
- package/dist/compiler-assets/{chunk-5PWY25HA.ts → chunk-V5E4RKG6.ts} +4 -4
- package/dist/compiler-assets/chunk-VI5WBWUX.ts +97 -0
- package/dist/compiler-assets/{chunk-LHMUAIYJ.ts → chunk-WJPAUIVM.ts} +1 -1
- package/dist/compiler-assets/{chunk-ULI5WWRR.ts → chunk-XJNO7EHQ.ts} +2 -2
- package/dist/compiler-assets/{chunk-UBR53WBH.ts → chunk-YOE37BRR.ts} +7 -7
- package/dist/compiler-assets/{chunk-D3SB4CCB.ts → chunk-Z7HGOUC2.ts} +1 -1
- package/dist/compiler-assets/{chunk-5NTKRRMC.ts → chunk-ZICJVGG7.ts} +7 -7
- package/dist/compiler-assets/src/authoring/agent.ts +4 -4
- package/dist/compiler-assets/src/authoring/approval.ts +7 -7
- package/dist/compiler-assets/src/authoring/brand.ts +3 -3
- package/dist/compiler-assets/src/authoring/channels.ts +6 -6
- package/dist/compiler-assets/src/authoring/connections.ts +11 -11
- package/dist/compiler-assets/src/authoring/credentials.ts +7 -7
- package/dist/compiler-assets/src/authoring/dynamic.ts +8 -8
- package/dist/compiler-assets/src/authoring/harness.ts +9 -9
- package/dist/compiler-assets/src/authoring/hooks.ts +10 -10
- package/dist/compiler-assets/src/authoring/index.ts +26 -26
- package/dist/compiler-assets/src/authoring/instructions.ts +9 -9
- package/dist/compiler-assets/src/authoring/sandbox.ts +11 -10
- package/dist/compiler-assets/src/authoring/schedules.ts +4 -4
- package/dist/compiler-assets/src/authoring/skills.ts +4 -4
- package/dist/compiler-assets/src/authoring/tools.ts +9 -9
- package/dist/compiler-assets/src/compatibility.ts +6 -6
- package/dist/compiler-assets/src/hosted-bindings.ts +6 -6
- package/dist/compiler-assets/src/index.ts +27 -27
- package/dist/compiler-assets/src/manifest.ts +4 -4
- package/dist/compiler-assets/src/resolve.ts +5 -5
- package/dist/compiler-assets/src/runtime/bundle.ts +18 -18
- package/dist/compiler-assets/src/runtime/describe.ts +14 -14
- package/dist/compiler-assets/src/runtime/described.ts +13 -13
- package/dist/compiler-assets/src/runtime/isolate.ts +17 -17
- package/dist/compiler-assets/src/runtime/lower.ts +13 -13
- package/dist/compiler-assets/src/runtime/schema-validation.ts +4 -4
- package/dist/compiler-assets/src/runtime/values.ts +2 -2
- package/dist/compiler-assets/webapi-JYYAFVXR.ts +2480 -0
- package/dist/modules/authoring/channels.d.mts +2 -2
- package/package.json +3 -3
- package/dist/compiler-assets/chunk-CIWWFQHL.ts +0 -0
- package/dist/compiler-assets/chunk-OEXIS2VK.ts +0 -43
|
@@ -28,7 +28,7 @@ export type AuthoredChannelEventsIface = AuthoredSemanticEventsIface & {
|
|
|
28
28
|
} & {
|
|
29
29
|
[kind: AcpUpdateKind]: ChannelEventHandler | AuthoredSemanticHandlerIface | undefined;
|
|
30
30
|
};
|
|
31
|
-
export declare const defineChannel: <TChannel extends AuthoredChannelDefinitionIface>(definition: TChannel) => Omit<TChannel, "
|
|
31
|
+
export declare const defineChannel: <TChannel extends AuthoredChannelDefinitionIface>(definition: TChannel) => Omit<TChannel, "configure" | "installed"> & {
|
|
32
32
|
configure: ((config: JsonObject) => ChannelDefinitionIface<JsonValue, JsonValue>) | undefined;
|
|
33
33
|
events: {
|
|
34
34
|
[kind: string]: AuthoredSemanticHandlerIface | ChannelEventHandler | undefined;
|
|
@@ -61,7 +61,7 @@ export declare const defineChannel: <TChannel extends AuthoredChannelDefinitionI
|
|
|
61
61
|
};
|
|
62
62
|
export declare const disableChannel: () => Omit<{
|
|
63
63
|
disabled: true;
|
|
64
|
-
}, "
|
|
64
|
+
}, "configure" | "installed"> & {
|
|
65
65
|
configure: ((config: JsonObject) => ChannelDefinitionIface<JsonValue, JsonValue>) | undefined;
|
|
66
66
|
events: {
|
|
67
67
|
[kind: string]: AuthoredSemanticHandlerIface | ChannelEventHandler | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finalai/agent-definition",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Provider-independent agent authoring, manifest schemas, directory compiler, and harness compatibility reports.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"registry": "https://registry.npmjs.org/"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@finalai/agent-protocol": "0.
|
|
79
|
-
"@finalai/agent-provider": "0.
|
|
78
|
+
"@finalai/agent-protocol": "0.4.1",
|
|
79
|
+
"@finalai/agent-provider": "0.4.1",
|
|
80
80
|
"ajv": "^8.20.0",
|
|
81
81
|
"ajv-formats": "^3.0.1",
|
|
82
82
|
"croner": "^10.0.1",
|
|
File without changes
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
awaitableOpenRequest
|
|
3
|
-
} from "./chunk-4E5HECVD.ts";
|
|
4
|
-
import {
|
|
5
|
-
stamp
|
|
6
|
-
} from "./chunk-QJ26GEUM.ts";
|
|
7
|
-
|
|
8
|
-
// ../agent-provider/src/sandbox/types.ts
|
|
9
|
-
var defineSandboxProvider = (definition) => ({
|
|
10
|
-
// An implementation exists only once its options are given, so awaitRunning is
|
|
11
|
-
// checked as each environment is defined, before anything can start from it.
|
|
12
|
-
definition: {
|
|
13
|
-
...definition,
|
|
14
|
-
environment: (options) => {
|
|
15
|
-
const implementation = definition.environment(options);
|
|
16
|
-
if (typeof implementation.awaitRunning !== "function")
|
|
17
|
-
throw new Error(`sandbox provider ${definition.name} does not implement awaitRunning`);
|
|
18
|
-
return implementation;
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
name: definition.name,
|
|
22
|
-
environment: (options) => ({
|
|
23
|
-
providerName: definition.name,
|
|
24
|
-
options,
|
|
25
|
-
open: (openOptions) => awaitableOpenRequest({
|
|
26
|
-
providerName: definition.name,
|
|
27
|
-
environmentOptions: options,
|
|
28
|
-
openOptions
|
|
29
|
-
})
|
|
30
|
-
})
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
// src/authoring/sandbox.ts
|
|
34
|
-
var harnessHost = stamp({ harnessHost: true }, "harness-host" /* HarnessHost */);
|
|
35
|
-
var defineSandbox = (value) => value instanceof Function ? stamp(value, "sandbox-selector" /* SandboxSelector */) : value;
|
|
36
|
-
var baseTools = (base) => stamp({ base: { ...base } }, "base-tools" /* BaseTools */);
|
|
37
|
-
|
|
38
|
-
export {
|
|
39
|
-
defineSandboxProvider,
|
|
40
|
-
harnessHost,
|
|
41
|
-
defineSandbox,
|
|
42
|
-
baseTools
|
|
43
|
-
};
|