@vite-hub/workflow 0.6.0 → 0.7.0
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 +32 -8
- package/dist/{app-DXUHElAz.js → app-Cpa9qCXr.js} +1 -1
- package/dist/{client-CbBg4HlH.js → client-CPxPxsl5.js} +37 -37
- package/dist/cloudflare-concurrency-counter-CDHHiMfn.js +136 -0
- package/dist/{config-CizNRTMi.js → config-CwCwuZqv.js} +1 -1
- package/dist/definition.d.ts +1 -1
- package/dist/definition.js +4 -1
- package/dist/{delay-CtT3442d.js → delay-JrpW40UF.js} +4 -2
- package/dist/durability.d.ts +3 -1
- package/dist/durability.js +7 -1
- package/dist/{error-diagnostics--2cV_ER1.js → error-diagnostics-35AEmfve.js} +25 -5
- package/dist/{error-diagnostics-kKXseq8d.js → error-diagnostics-CsiNo_oI.js} +3 -3
- package/dist/{errors-CJZuvOcx.d.ts → errors-DwKy5MQ8.d.ts} +1 -1
- package/dist/execute-CLmIXnON.js +355 -0
- package/dist/index.d.ts +12 -10
- package/dist/index.js +3 -3
- package/dist/{openworkflow-defaults-DfQWtSRU.js → invariant-Dj2R1eMr.js} +1 -4
- package/dist/openworkflow-BiwPTYEz.js +752 -0
- package/dist/{openworkflow-CdKbUGGa.d.ts → openworkflow-C65AWQSJ.d.ts} +23 -4
- package/dist/openworkflow-defaults-1n0DbLdb.js +4 -0
- package/dist/{operation-definition-CqZkx1Rm.d.ts → operations-Blwi3jQF.d.ts} +1 -0
- package/dist/{operations-BBTmDm2H.js → operations-DyaGK9zW.js} +70 -14
- package/dist/operations.d.ts +3 -59
- package/dist/operations.js +5 -5
- package/dist/results-DBp_bmUP.d.ts +60 -0
- package/dist/runtime/cloudflare-concurrency.d.ts +21 -0
- package/dist/runtime/cloudflare-concurrency.js +21 -0
- package/dist/runtime/cloudflare-runner.d.ts +1 -1
- package/dist/runtime/cloudflare-runner.js +7 -3
- package/dist/runtime/cloudflare-vite.d.ts +1 -1
- package/dist/runtime/cloudflare-vite.js +2 -2
- package/dist/runtime/execute.d.ts +8 -2
- package/dist/runtime/execute.js +1 -278
- package/dist/runtime/openworkflow-worker.d.ts +2 -2
- package/dist/runtime/openworkflow-worker.js +2 -2
- package/dist/runtime/openworkflow.d.ts +2 -2
- package/dist/runtime/openworkflow.js +1 -481
- package/dist/runtime/state.d.ts +1 -1
- package/dist/runtime/state.js +2 -2
- package/dist/runtime/vercel-vite.d.ts +1 -1
- package/dist/runtime/vercel-vite.js +2 -2
- package/dist/{signals-BHQdxoJo.js → signals-CdaxRNjN.js} +1 -1
- package/dist/{types-DvYcvbPG.d.ts → types-CvyOEp0V.d.ts} +33 -4
- package/dist/{vercel-Cw_Z9-j4.js → vercel-ADMH2MK8.js} +5 -3
- package/dist/vite.d.ts +18 -4
- package/dist/vite.js +553 -116
- package/package.json +3 -3
- package/dist/cloudflare-Sgywkm1N.js +0 -57
package/dist/vite.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as OperationContributionEntry } from "./
|
|
2
|
-
import {
|
|
1
|
+
import { n as OperationContributionEntry } from "./operations-Blwi3jQF.js";
|
|
2
|
+
import { D as WorkflowOptions, a as DiscoveredWorkflowDefinition } from "./types-CvyOEp0V.js";
|
|
3
3
|
import { Plugin, ResolvedConfig, Rolldown, UserConfig } from "vite";
|
|
4
|
-
type WorkflowRuntimeModuleName = "cloudflare-runner" | "cloudflare-vite" | "dev-runs" | "execute" | "openworkflow-worker" | "state" | "vercel-vite";
|
|
4
|
+
type WorkflowRuntimeModuleName = "cloudflare-concurrency" | "cloudflare-runner" | "cloudflare-vite" | "dev-runs" | "execute" | "openworkflow-worker" | "state" | "vercel-vite";
|
|
5
5
|
/**
|
|
6
6
|
* The file path of a Workflow runtime module. Generated code imports it by path, so it needs no package export.
|
|
7
7
|
* Schedule and Agent output receive these paths from the Workflow plugin.
|
|
@@ -516,7 +516,20 @@ interface WorkflowNitroConfigOptions {
|
|
|
516
516
|
transformRegistry?: (code: string, id: string) => string | Promise<string>;
|
|
517
517
|
viteConfig?: UserConfig;
|
|
518
518
|
}
|
|
519
|
-
|
|
519
|
+
type WorkflowNitro = Parameters<ProviderOutputEnvironmentOwner["nitro"]["setup"]>[0] & {
|
|
520
|
+
options: {
|
|
521
|
+
alias?: Record<string, string>;
|
|
522
|
+
};
|
|
523
|
+
hooks?: {
|
|
524
|
+
hook: (name: "compiled", callback: () => Promise<void>) => unknown;
|
|
525
|
+
};
|
|
526
|
+
};
|
|
527
|
+
export type WorkflowVitePlugin = Plugin & {
|
|
528
|
+
nitro?: {
|
|
529
|
+
name: string;
|
|
530
|
+
setup: (nitro: WorkflowNitro) => void;
|
|
531
|
+
};
|
|
532
|
+
} & {
|
|
520
533
|
/** The variables that Workflow reads on the deployed host. See `workflowDeploymentEnv()`. */
|
|
521
534
|
api: {
|
|
522
535
|
deploymentEnv: DeploymentEnvContribution;
|
|
@@ -525,6 +538,7 @@ export type WorkflowVitePlugin = Plugin & Partial<Pick<ProviderOutputEnvironment
|
|
|
525
538
|
operations?: readonly OperationContributionEntry[];
|
|
526
539
|
workflow?: {
|
|
527
540
|
createNitroConfig?: (options: WorkflowNitroConfigOptions) => Promise<Record<string, unknown>>;
|
|
541
|
+
prepareSeparateNitroBuild?: (config: ResolvedConfig) => void;
|
|
528
542
|
prepareScheduleRuntime?: (artifactDir?: string, config?: ResolvedConfig) => Promise<{
|
|
529
543
|
bundleAlias: Record<string, string>;
|
|
530
544
|
bundlePlugins?: Rolldown.Plugin[];
|