@frockbot/plugin-provider-ollama-cloud 0.3.0 → 0.3.2

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.
Files changed (2) hide show
  1. package/package.json +11 -11
  2. package/src/user.ts +24 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frockbot/plugin-provider-ollama-cloud",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
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.0",
24
- "@frockbot/connection-core": "0.3.0",
25
- "@frockbot/kernel-agent-loop": "0.3.0",
26
- "@frockbot/kernel-contracts": "0.3.0",
27
- "@frockbot/plugin-credentials": "0.3.0",
28
- "@frockbot/plugin-models": "0.3.0",
29
- "@frockbot/plugin-settings": "0.3.0",
30
- "@frockbot/plugin-web": "0.3.0",
31
- "@frockbot/provider-openai-compatible": "0.3.0",
23
+ "@frockbot/configuration-core": "0.3.2",
24
+ "@frockbot/connection-core": "0.3.2",
25
+ "@frockbot/kernel-agent-loop": "0.3.2",
26
+ "@frockbot/kernel-contracts": "0.3.2",
27
+ "@frockbot/plugin-credentials": "0.3.2",
28
+ "@frockbot/plugin-models": "0.3.2",
29
+ "@frockbot/plugin-settings": "0.3.2",
30
+ "@frockbot/plugin-web": "0.3.2",
31
+ "@frockbot/provider-openai-compatible": "0.3.2",
32
32
  "cordis": "4.0.0-rc.8"
33
33
  },
34
34
  "devDependencies": {
35
- "@frockbot/plugin-tools": "0.3.0",
35
+ "@frockbot/plugin-tools": "0.3.2",
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
+ });