@frockbot/plugin-provider-ollama-cloud 0.3.1 → 0.3.3
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/package.json +11 -11
- package/src/user.ts +24 -0
- package/src/web-search.test.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frockbot/plugin-provider-ollama-cloud",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
"typecheck": "tsc --noEmit -p tsconfig.json"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@frockbot/configuration-core": "0.3.
|
|
24
|
-
"@frockbot/connection-core": "0.3.
|
|
25
|
-
"@frockbot/kernel-agent-loop": "0.3.
|
|
26
|
-
"@frockbot/kernel-contracts": "0.3.
|
|
27
|
-
"@frockbot/plugin-credentials": "0.3.
|
|
28
|
-
"@frockbot/plugin-models": "0.3.
|
|
29
|
-
"@frockbot/plugin-settings": "0.3.
|
|
30
|
-
"@frockbot/plugin-web": "0.3.
|
|
31
|
-
"@frockbot/provider-openai-compatible": "0.3.
|
|
23
|
+
"@frockbot/configuration-core": "0.3.3",
|
|
24
|
+
"@frockbot/connection-core": "0.3.3",
|
|
25
|
+
"@frockbot/kernel-agent-loop": "0.3.3",
|
|
26
|
+
"@frockbot/kernel-contracts": "0.3.3",
|
|
27
|
+
"@frockbot/plugin-credentials": "0.3.3",
|
|
28
|
+
"@frockbot/plugin-models": "0.3.3",
|
|
29
|
+
"@frockbot/plugin-settings": "0.3.3",
|
|
30
|
+
"@frockbot/plugin-web": "0.3.3",
|
|
31
|
+
"@frockbot/provider-openai-compatible": "0.3.3",
|
|
32
32
|
"cordis": "4.0.0-rc.8"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@frockbot/plugin-tools": "0.3.
|
|
35
|
+
"@frockbot/plugin-tools": "0.3.3",
|
|
36
36
|
"@types/bun": "1.3.6",
|
|
37
37
|
"typescript": "^7.0.2"
|
|
38
38
|
},
|
package/src/user.ts
CHANGED
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
type OllamaCloudClientConfig,
|
|
29
29
|
} from "./client.js";
|
|
30
30
|
import { OLLAMA_CLOUD_PROVIDER } from "./runtime.js";
|
|
31
|
+
import { defineUserBackendContribution } from "@frockbot/kernel-contracts/contributions";
|
|
31
32
|
|
|
32
33
|
const PACKAGE_ID = "provider-ollama-cloud";
|
|
33
34
|
const CONNECTION_TYPE_ID = "ollama-cloud-account";
|
|
@@ -2390,3 +2391,26 @@ export function createOllamaCloudUserBackendPlugin(
|
|
|
2390
2391
|
): Plugin {
|
|
2391
2392
|
return () => lifecycle.mount(createOllamaCloudUserBackendContribution(host));
|
|
2392
2393
|
}
|
|
2394
|
+
|
|
2395
|
+
/**
|
|
2396
|
+
* What an application hands this Contribution: the Ollama Cloud Connection, under the
|
|
2397
|
+
* Package's own key so one wide host object can satisfy every Package's slice
|
|
2398
|
+
* without their fields colliding.
|
|
2399
|
+
*/
|
|
2400
|
+
export interface OllamaCloudUserApplicationHostV1 {
|
|
2401
|
+
ollamaCloud: OllamaUserBackendHost;
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
/**
|
|
2405
|
+
* The manifest's `user` entry, resolved by specifier. The
|
|
2406
|
+
* application looks this descriptor up in its Contribution table; it never
|
|
2407
|
+
* branches on which Package it belongs to.
|
|
2408
|
+
*/
|
|
2409
|
+
export const userContribution = defineUserBackendContribution<
|
|
2410
|
+
OllamaCloudUserApplicationHostV1,
|
|
2411
|
+
OllamaCloudUserBackendContribution
|
|
2412
|
+
>({
|
|
2413
|
+
specifier: "@frockbot/plugin-provider-ollama-cloud/user",
|
|
2414
|
+
create: (host, lifecycle) =>
|
|
2415
|
+
createOllamaCloudUserBackendPlugin(host.ollamaCloud, lifecycle),
|
|
2416
|
+
});
|
package/src/web-search.test.ts
CHANGED
|
@@ -330,7 +330,10 @@ describe("the Ollama Cloud web_search Capability", () => {
|
|
|
330
330
|
expect({
|
|
331
331
|
turnType,
|
|
332
332
|
names: root.tools.schemas({ turnType }).map((schema) => schema.name),
|
|
333
|
-
}).toEqual({
|
|
333
|
+
}).toEqual({
|
|
334
|
+
turnType,
|
|
335
|
+
names: ["web_search", "get_dynamic_tools", "call_dynamic_tool"],
|
|
336
|
+
});
|
|
334
337
|
}
|
|
335
338
|
await root.fiber.dispose();
|
|
336
339
|
});
|