yieldstar 0.1.3 → 0.1.4-alpha.1

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/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  // src/exports/sdk-local.ts
3
3
  import { randomUUID } from "crypto";
4
- function createLocalSdk(workflowRouter, invoker) {
4
+ function createLocalSdk(invoker) {
5
5
  return {
6
6
  async trigger(workflowId, opts) {
7
7
  const { workflowParams } = opts ?? {};
@@ -75,7 +75,7 @@ function deserializeStepResponse(jsonString) {
75
75
  }
76
76
 
77
77
  // src/exports/sdk-http.ts
78
- function createHttpSdkFactory(workflowRouter) {
78
+ function createHttpSdkFactory() {
79
79
  return (params) => {
80
80
  return {
81
81
  async trigger(workflowId, opts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yieldstar",
3
- "version": "0.1.3",
3
+ "version": "0.1.4-alpha.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "src/index.ts",
@@ -6,9 +6,7 @@ import { deserializeError, isErrorLike } from "serialize-error";
6
6
  import { randomUUID } from "node:crypto";
7
7
  import { errorWithOriginalStack } from "../internal/serialise";
8
8
 
9
- export function createHttpSdkFactory<W extends WorkflowRouter>(
10
- workflowRouter: W
11
- ) {
9
+ export function createHttpSdkFactory<W extends WorkflowRouter>() {
12
10
  return (params: { host: string; port: number }) => {
13
11
  return {
14
12
  async trigger<K extends keyof W>(
@@ -6,7 +6,6 @@ import type {
6
6
  import { randomUUID } from "node:crypto";
7
7
 
8
8
  export function createLocalSdk<W extends WorkflowRouter>(
9
- workflowRouter: W,
10
9
  invoker: WorkflowInvoker
11
10
  ) {
12
11
  return {