@agimon-ai/po-workflow 0.0.0-alpha.13 → 0.0.0-alpha.14
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region generated/server.d.ts
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const serverPlugin: import("@agimon-ai/po-core/serverPlugin").PoServerPlugin;
|
|
3
3
|
//#endregion
|
|
4
|
-
export {
|
|
4
|
+
export { serverPlugin as default };
|
|
5
5
|
//# sourceMappingURL=server.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.mts","names":[],"sources":["../../generated/server.ts"],"mappings":";qBAmCa,
|
|
1
|
+
{"version":3,"file":"server.d.mts","names":[],"sources":["../../generated/server.ts"],"mappings":";qBAmCa,wDAAY"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as resolveWorkflowEntry, r as validateWorkflowLaunch, t as parseWorkflowLaunchCommand } from "../workflowLaunchCommand-GGqimmTC.mjs";
|
|
2
|
-
import { composeServerProviderOverrides, defineServerPlugin } from "@agimon-ai/po-core/
|
|
3
|
-
import { composeRootHooks, defineChannel, defineRoot, defineRoutedContribution } from "@agimon-ai/po-core/extensionFile";
|
|
2
|
+
import { composeServerProviderOverrides, defineServerPlugin } from "@agimon-ai/po-core/serverPlugin";
|
|
3
|
+
import { composeRootHooks, composeRootInjects, defineChannel, defineRoot, defineRoutedContribution } from "@agimon-ai/po-core/extensionFile";
|
|
4
4
|
import { createHash, randomUUID } from "node:crypto";
|
|
5
5
|
import { readFile } from "node:fs/promises";
|
|
6
6
|
import path, { basename, isAbsolute, join, relative, resolve } from "node:path";
|
|
@@ -3021,7 +3021,7 @@ function untilAborted(work, signal) {
|
|
|
3021
3021
|
});
|
|
3022
3022
|
}
|
|
3023
3023
|
function createWorkflowServerRuntime(host, serverHost) {
|
|
3024
|
-
if (serverHost.context.directEvents === void 0) throw new Error("Workflow
|
|
3024
|
+
if (serverHost.context.directEvents === void 0) throw new Error("Workflow server plugin requires the session direct event bus.");
|
|
3025
3025
|
const directEvents = serverHost.context.directEvents;
|
|
3026
3026
|
let disposed = false;
|
|
3027
3027
|
let runProvider;
|
|
@@ -4337,9 +4337,10 @@ const via = (identity, value) => value === void 0 ? void 0 : {
|
|
|
4337
4337
|
...identity,
|
|
4338
4338
|
...value
|
|
4339
4339
|
};
|
|
4340
|
-
const
|
|
4340
|
+
const serverPlugin = defineServerPlugin({
|
|
4341
4341
|
name: "@agimon-ai/po-workflow",
|
|
4342
4342
|
providerOverrides: composeServerProviderOverrides(root_server_default),
|
|
4343
|
+
injects: composeRootInjects({ session: [root_server_default] }),
|
|
4343
4344
|
global: (context) => ({
|
|
4344
4345
|
get api() {
|
|
4345
4346
|
return defined([at(route_server_default$1, context)]);
|
|
@@ -4353,11 +4354,11 @@ const facet = defineServerPlugin({
|
|
|
4353
4354
|
return defined([at(route_server_default$1, context)]);
|
|
4354
4355
|
},
|
|
4355
4356
|
get channels() {
|
|
4356
|
-
return [() => via({ frameType: "workflow_catalog" }, workflow_catalog_server_default()), () => via({ frameType: "workflows" }, workflows_server_default())];
|
|
4357
|
+
return defined([context.hosted("global") ? void 0 : () => via({ frameType: "workflow_catalog" }, workflow_catalog_server_default()), context.hosted("global") ? void 0 : () => via({ frameType: "workflows" }, workflows_server_default())]);
|
|
4357
4358
|
}
|
|
4358
4359
|
}),
|
|
4359
4360
|
session: async (context) => {
|
|
4360
|
-
const scopeSession = await root_server_default
|
|
4361
|
+
const scopeSession = await context.scopeRoot("session", root_server_default, context);
|
|
4361
4362
|
const contextSession = {
|
|
4362
4363
|
...context,
|
|
4363
4364
|
root: scopeSession.value
|
|
@@ -4365,10 +4366,10 @@ const facet = defineServerPlugin({
|
|
|
4365
4366
|
return {
|
|
4366
4367
|
...composeRootHooks(scopeSession),
|
|
4367
4368
|
get api() {
|
|
4368
|
-
return defined([at(route_server_default
|
|
4369
|
+
return defined([at(route_server_default, contextSession)]);
|
|
4369
4370
|
},
|
|
4370
4371
|
get channels() {
|
|
4371
|
-
return [() => via({ frameType: "workflow_catalog" }, workflow_catalog_server_default()), () => via({ frameType: "workflows" }, workflows_server_default())];
|
|
4372
|
+
return defined([context.hosted("global") ? void 0 : () => via({ frameType: "workflow_catalog" }, workflow_catalog_server_default()), context.hosted("global") ? void 0 : () => via({ frameType: "workflows" }, workflows_server_default())]);
|
|
4372
4373
|
},
|
|
4373
4374
|
get commands() {
|
|
4374
4375
|
return defined([via({ name: "workflow-launch" }, at(workflow_launch_server_default, contextSession))]);
|
|
@@ -4409,6 +4410,6 @@ const facet = defineServerPlugin({
|
|
|
4409
4410
|
}
|
|
4410
4411
|
});
|
|
4411
4412
|
//#endregion
|
|
4412
|
-
export {
|
|
4413
|
+
export { serverPlugin as default, serverPlugin };
|
|
4413
4414
|
|
|
4414
4415
|
//# sourceMappingURL=server.mjs.map
|