@frockbot/plugin-routines 0.3.1 → 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.
- package/package.json +7 -7
- package/src/backend.ts +14 -0
- package/src/client/index.ts +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frockbot/plugin-routines",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"typecheck": "vue-tsc --noEmit -p tsconfig.json"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@frockbot/client-core": "0.3.
|
|
36
|
-
"@frockbot/client-ui": "0.3.
|
|
37
|
-
"@frockbot/configuration-core": "0.3.
|
|
38
|
-
"@frockbot/kernel-agent-loop": "0.3.
|
|
39
|
-
"@frockbot/kernel-contracts": "0.3.
|
|
40
|
-
"@frockbot/plugin-shell": "0.3.
|
|
35
|
+
"@frockbot/client-core": "0.3.2",
|
|
36
|
+
"@frockbot/client-ui": "0.3.2",
|
|
37
|
+
"@frockbot/configuration-core": "0.3.2",
|
|
38
|
+
"@frockbot/kernel-agent-loop": "0.3.2",
|
|
39
|
+
"@frockbot/kernel-contracts": "0.3.2",
|
|
40
|
+
"@frockbot/plugin-shell": "0.3.2",
|
|
41
41
|
"cordis": "4.0.0-rc.8",
|
|
42
42
|
"croner": "10.0.1",
|
|
43
43
|
"vue": "3.5.41"
|
package/src/backend.ts
CHANGED
|
@@ -46,6 +46,7 @@ import {
|
|
|
46
46
|
type RoutineRunDetailViewV1,
|
|
47
47
|
type RoutineRunListViewV1,
|
|
48
48
|
} from "./shared.js";
|
|
49
|
+
import { defineGatewayContribution } from "@frockbot/kernel-contracts/contributions";
|
|
49
50
|
|
|
50
51
|
/** One delivery, as the Bot Durable Object answers it. */
|
|
51
52
|
export interface RoutineHookDeliveryReceiptV1 {
|
|
@@ -373,3 +374,16 @@ export namespace createRoutinesBackendContribution {
|
|
|
373
374
|
return () => lifecycle.mount(createRoutinesBackendContribution(host));
|
|
374
375
|
}
|
|
375
376
|
}
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* The manifest's gateway `backend` entry, resolved by specifier. The
|
|
380
|
+
* application looks this descriptor up in its Contribution table; it never
|
|
381
|
+
* branches on which Package it belongs to.
|
|
382
|
+
*/
|
|
383
|
+
export const backendContribution = defineGatewayContribution<
|
|
384
|
+
RoutinesGatewayHost,
|
|
385
|
+
RoutinesBackendRouteContribution
|
|
386
|
+
>({
|
|
387
|
+
specifier: "@frockbot/plugin-routines/backend",
|
|
388
|
+
create: createRoutinesBackendContribution.plugin,
|
|
389
|
+
});
|
package/src/client/index.ts
CHANGED
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
type RoutineFormSubmissionV1,
|
|
25
25
|
type RoutinesClientState,
|
|
26
26
|
} from "./state.js";
|
|
27
|
+
import { defineClientContribution } from "@frockbot/kernel-contracts/contributions";
|
|
27
28
|
|
|
28
29
|
function message(error: unknown, fallback: string): string {
|
|
29
30
|
return error instanceof Error ? error.message : fallback;
|
|
@@ -287,3 +288,13 @@ export const routinesClientPlugin: ClientPlugin = (ctx) => {
|
|
|
287
288
|
};
|
|
288
289
|
|
|
289
290
|
export default routinesClientPlugin;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* The manifest's `client` entry, resolved by specifier. The application looks
|
|
294
|
+
* this descriptor up in its Contribution table; it never branches on which
|
|
295
|
+
* Package it belongs to.
|
|
296
|
+
*/
|
|
297
|
+
export const clientContribution = defineClientContribution<ClientPlugin>({
|
|
298
|
+
specifier: "@frockbot/plugin-routines/client",
|
|
299
|
+
plugin: routinesClientPlugin,
|
|
300
|
+
});
|