@vite-hub/workflow 0.0.1 → 0.0.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/README.md +56 -6
- package/dist/{cloudflare-env-BVUMOgFK.d.ts → cloudflare-env-CIjdFTv6.d.ts} +2 -1
- package/dist/{cloudflare-env-g0Rf3ClH.js → cloudflare-env-mFp2Uj6Z.js} +7 -3
- package/dist/{cloudflare-vite-DcM5YVTP.js → cloudflare-vite-B0zel2Do.js} +4 -5
- package/dist/{config-DkgsQuXz.js → config-BDqB6I4E.js} +43 -5
- package/dist/index.d.ts +43 -18
- package/dist/index.js +99 -111
- package/dist/provider-operation-CWIV4k42.js +62 -0
- package/dist/runtime/cloudflare-runner.d.ts +2 -2
- package/dist/runtime/cloudflare-runner.js +15 -14
- package/dist/runtime/cloudflare-shared.d.ts +2 -2
- package/dist/runtime/cloudflare-shared.js +2 -2
- package/dist/runtime/cloudflare-vite.d.ts +3 -3
- package/dist/runtime/cloudflare-vite.js +1 -1
- package/dist/runtime/execute.d.ts +1 -1
- package/dist/runtime/openworkflow-worker.d.ts +4 -2
- package/dist/runtime/openworkflow-worker.js +63 -6
- package/dist/runtime/openworkflow.d.ts +22 -1
- package/dist/runtime/openworkflow.js +110 -37
- package/dist/runtime/state.d.ts +1 -1
- package/dist/runtime/vercel-vite.d.ts +58 -3
- package/dist/runtime/vercel-vite.js +3 -2
- package/dist/{types-ThDitg7Z.d.ts → types-BUlYBZwH.d.ts} +48 -6
- package/dist/vercel-D2_J5D_Y.js +217 -0
- package/dist/vite.d.ts +2 -5
- package/dist/vite.js +1678 -144
- package/package.json +45 -48
- package/dist/module-UYEnVfxy.js +0 -1546
- package/dist/nitro.d.ts +0 -19
- package/dist/nitro.js +0 -2
- package/dist/openworkflow-amN7IkGO.d.ts +0 -24
- package/dist/runtime/nitro-plugin.d.ts +0 -6
- package/dist/runtime/nitro-plugin.js +0 -14
- /package/dist/{_app-BVWpnNHo.d.ts → _app-DgwN4ulW.d.ts} +0 -0
- /package/dist/{app-BE3EYOWn.js → app-BZpq2cwC.js} +0 -0
- /package/dist/{cloudflare-CeHVSHoN.js → cloudflare-Cds1VIWa.js} +0 -0
- /package/dist/{cloudflare-shared-BIeY2kak.d.ts → cloudflare-shared-BVVgDSdq.d.ts} +0 -0
package/dist/nitro.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { l as ResolvedWorkflowOptions, y as WorkflowModuleOptions } from "./types-ThDitg7Z.js";
|
|
2
|
-
import { NitroModule } from "nitro/types";
|
|
3
|
-
|
|
4
|
-
//#region src/nitro/module.d.ts
|
|
5
|
-
declare const workflowNitroModule: NitroModule;
|
|
6
|
-
declare module "nitro/types" {
|
|
7
|
-
interface NitroConfig {
|
|
8
|
-
workflow?: WorkflowModuleOptions;
|
|
9
|
-
}
|
|
10
|
-
interface NitroOptions {
|
|
11
|
-
workflow?: WorkflowModuleOptions;
|
|
12
|
-
}
|
|
13
|
-
interface NitroRuntimeConfig {
|
|
14
|
-
hosting?: string;
|
|
15
|
-
workflow?: false | ResolvedWorkflowOptions;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
//#endregion
|
|
19
|
-
export { workflowNitroModule as default };
|
package/dist/nitro.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { f as WorkflowDeferOptions, l as ResolvedWorkflowOptions, p as WorkflowDefinition, w as WorkflowRun } from "./types-ThDitg7Z.js";
|
|
2
|
-
import * as _$openworkflow from "openworkflow";
|
|
3
|
-
import * as _$openworkflow_postgres0 from "openworkflow/postgres";
|
|
4
|
-
|
|
5
|
-
//#region src/runtime/openworkflow.d.ts
|
|
6
|
-
type OpenWorkflowModule = typeof _$openworkflow;
|
|
7
|
-
type OpenWorkflowPostgresModule = typeof _$openworkflow_postgres0;
|
|
8
|
-
type OpenWorkflowClient = InstanceType<OpenWorkflowModule["OpenWorkflow"]>;
|
|
9
|
-
type OpenWorkflowBackend = Awaited<ReturnType<OpenWorkflowPostgresModule["BackendPostgres"]["connect"]>>;
|
|
10
|
-
type OpenWorkflowRunnable = ReturnType<OpenWorkflowClient["defineWorkflow"]>;
|
|
11
|
-
type OpenWorkflowImporter = <T>(specifier: string) => Promise<T>;
|
|
12
|
-
interface OpenWorkflowRuntime {
|
|
13
|
-
backend: OpenWorkflowBackend;
|
|
14
|
-
client: OpenWorkflowClient;
|
|
15
|
-
workflows: Map<string, OpenWorkflowRunnable>;
|
|
16
|
-
}
|
|
17
|
-
declare function getOpenWorkflowRuntime(config: ResolvedWorkflowOptions): Promise<OpenWorkflowRuntime>;
|
|
18
|
-
declare function registerOpenWorkflowDefinition(runtime: OpenWorkflowRuntime, name: string, definition: WorkflowDefinition): Promise<OpenWorkflowRunnable>;
|
|
19
|
-
declare function runOpenWorkflow<TPayload = unknown, TResult = unknown>(config: ResolvedWorkflowOptions, name: string, payload: TPayload | undefined, definition: WorkflowDefinition<TPayload, TResult>, options: WorkflowDeferOptions): Promise<WorkflowRun<TPayload, TResult>>;
|
|
20
|
-
declare function getOpenWorkflowRun<TPayload = unknown, TResult = unknown>(config: ResolvedWorkflowOptions, name: string, id: string): Promise<WorkflowRun<TPayload, TResult>>;
|
|
21
|
-
declare function resetOpenWorkflowRuntime(): Promise<void>;
|
|
22
|
-
declare function setOpenWorkflowImporter(importer: OpenWorkflowImporter): void;
|
|
23
|
-
//#endregion
|
|
24
|
-
export { runOpenWorkflow as a, resetOpenWorkflowRuntime as i, getOpenWorkflowRuntime as n, setOpenWorkflowImporter as o, registerOpenWorkflowDefinition as r, getOpenWorkflowRun as t };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { enterWorkflowRuntimeEvent, setWorkflowRuntimeConfig, setWorkflowRuntimeRegistry } from "./state.js";
|
|
2
|
-
import { definePlugin } from "nitro";
|
|
3
|
-
import { useRuntimeConfig } from "nitro/runtime-config";
|
|
4
|
-
import workflowRegistry from "#vitehub/workflow/registry";
|
|
5
|
-
//#region src/runtime/nitro-plugin.ts
|
|
6
|
-
const workflowNitroPlugin = definePlugin((nitroApp) => {
|
|
7
|
-
setWorkflowRuntimeConfig(useRuntimeConfig().workflow);
|
|
8
|
-
setWorkflowRuntimeRegistry(workflowRegistry);
|
|
9
|
-
nitroApp.hooks.hook("request", (event) => {
|
|
10
|
-
enterWorkflowRuntimeEvent(event);
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
//#endregion
|
|
14
|
-
export { workflowNitroPlugin as default };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|