@frockbot/plugin-subagents 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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/backend.ts +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frockbot/plugin-subagents",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -27,8 +27,8 @@
27
27
  "typecheck": "tsc --noEmit -p tsconfig.json"
28
28
  },
29
29
  "dependencies": {
30
- "@frockbot/kernel-agent-loop": "0.3.1",
31
- "@frockbot/kernel-contracts": "0.3.1",
30
+ "@frockbot/kernel-agent-loop": "0.3.3",
31
+ "@frockbot/kernel-contracts": "0.3.3",
32
32
  "cordis": "4.0.0-rc.8"
33
33
  },
34
34
  "devDependencies": {
package/src/backend.ts CHANGED
@@ -24,6 +24,7 @@ import {
24
24
  type TaskListViewV1,
25
25
  type TaskViewV1,
26
26
  } from "./shared.js";
27
+ import { defineGatewayContribution } from "@frockbot/kernel-contracts/contributions";
27
28
 
28
29
  export interface SubagentsGatewayHost {
29
30
  listTasks(userId: string, botId: string): Promise<TaskListViewV1>;
@@ -191,3 +192,16 @@ export namespace createSubagentsBackendContribution {
191
192
  return () => lifecycle.mount(createSubagentsBackendContribution(host));
192
193
  }
193
194
  }
195
+
196
+ /**
197
+ * The manifest's gateway `backend` entry, resolved by specifier. The
198
+ * application looks this descriptor up in its Contribution table; it never
199
+ * branches on which Package it belongs to.
200
+ */
201
+ export const backendContribution = defineGatewayContribution<
202
+ SubagentsGatewayHost,
203
+ SubagentsBackendRouteContribution
204
+ >({
205
+ specifier: "@frockbot/plugin-subagents/backend",
206
+ create: createSubagentsBackendContribution.plugin,
207
+ });