@boboddy/sdk 0.1.1-alpha → 0.1.3-alpha

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,4 +1,5 @@
1
1
  import type { ZodType } from "zod";
2
+ import type { AnyStepFeature, FeatureResultExtensions, FeatureSignalKeys } from "./step-features";
2
3
  type OpenCodeMcpServers = Record<string, {
3
4
  type: "local";
4
5
  command: string[];
@@ -59,6 +60,7 @@ export type DefineStepInput<TInput extends ZodType = ZodType, TResult extends Zo
59
60
  result?: TResult;
60
61
  signals?: SignalSpecInput<TResult["_output"]>[];
61
62
  computedSignals?: StepComputedSignalSpec[];
63
+ features?: AnyStepFeature[];
62
64
  mcpServers?: OpenCodeMcpServers | null;
63
65
  status?: "draft" | "active";
64
66
  };
@@ -99,7 +101,8 @@ type ExtractSignalKey<T> = T extends {
99
101
  sourcePath: infer S extends string;
100
102
  } ? S : string;
101
103
  export type SignalKeysOf<TSignals extends readonly unknown[]> = TSignals extends readonly (infer S)[] ? ExtractSignalKey<S> : string;
102
- export declare function defineStep<TInput extends ZodType = ZodType, TResult extends ZodType = ZodType, const TSignals extends ReadonlyArray<SignalSpecInput<TResult["_output"]>> = never[]>(config: Omit<DefineStepInput<TInput, TResult>, "signals"> & {
104
+ export declare function defineStep<TInput extends ZodType = ZodType, TResult extends ZodType = ZodType, const TSignals extends ReadonlyArray<SignalSpecInput<TResult["_output"]>> = never[], const TFeatures extends ReadonlyArray<AnyStepFeature> = never[]>(config: Omit<DefineStepInput<TInput, TResult>, "signals" | "features"> & {
103
105
  signals?: TSignals;
104
- }): TypedStepDefinitionSpec<TInput["_output"], TResult["_output"], SignalKeysOf<TSignals>>;
106
+ features?: TFeatures;
107
+ }): TypedStepDefinitionSpec<TInput["_output"], TResult["_output"] & FeatureResultExtensions<TFeatures>, SignalKeysOf<TSignals> | FeatureSignalKeys<TFeatures>>;
105
108
  export {};
@@ -1,2 +1,3 @@
1
1
  export * from "./define-step";
2
2
  export * from "./step-definitions-client";
3
+ export * from "./step-features";