@asaidimu/utils-workspace 6.6.8 → 6.6.10

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/index.d.mts CHANGED
@@ -493,7 +493,7 @@ interface SubscribeOptions {
493
493
  */
494
494
  type DeepPartial<T> = T extends object ? T extends readonly (infer U)[] ? readonly (DeepPartial<U> | undefined)[] | undefined | T : T extends (infer U)[] ? (DeepPartial<U> | undefined)[] | undefined | T : {
495
495
  [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> | undefined : T[K] | undefined;
496
- } | undefined | T : T | undefined;
496
+ } | undefined | T : T | undefined | symbol;
497
497
 
498
498
  /**
499
499
  * Canonical conversational continuity artifact.
@@ -2641,7 +2641,7 @@ interface LLMAdapter<TRequestParams extends Record<string, any> = {}> {
2641
2641
  interface LLMAdapterStatic<TRequestParams extends Record<string, any> = {}> {
2642
2642
  /** Lists all model profiles that can be used with this adapter. */
2643
2643
  models(): ModelProfile[];
2644
- new (...args: any[]): LLMAdapter<TRequestParams>;
2644
+ new (...args: any): LLMAdapter<TRequestParams>;
2645
2645
  }
2646
2646
  interface ModelProfile {
2647
2647
  /** Provider identifier, e.g. "google". */
@@ -3104,6 +3104,12 @@ declare class TurnBuilder {
3104
3104
  withRole(role: string): TurnBuilder;
3105
3105
  withModel(model: string): TurnBuilder;
3106
3106
  build(): Turn;
3107
+ /**
3108
+ * Builds a `TurnNode` from the current turn.
3109
+ * The node will contain the turn as its only version,
3110
+ * marked as the active version, with an empty children map.
3111
+ */
3112
+ node(): TurnNode;
3107
3113
  }
3108
3114
 
3109
3115
  declare class DefaultPromptBuilder implements PromptBuilder {
package/index.d.ts CHANGED
@@ -493,7 +493,7 @@ interface SubscribeOptions {
493
493
  */
494
494
  type DeepPartial<T> = T extends object ? T extends readonly (infer U)[] ? readonly (DeepPartial<U> | undefined)[] | undefined | T : T extends (infer U)[] ? (DeepPartial<U> | undefined)[] | undefined | T : {
495
495
  [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> | undefined : T[K] | undefined;
496
- } | undefined | T : T | undefined;
496
+ } | undefined | T : T | undefined | symbol;
497
497
 
498
498
  /**
499
499
  * Canonical conversational continuity artifact.
@@ -2641,7 +2641,7 @@ interface LLMAdapter<TRequestParams extends Record<string, any> = {}> {
2641
2641
  interface LLMAdapterStatic<TRequestParams extends Record<string, any> = {}> {
2642
2642
  /** Lists all model profiles that can be used with this adapter. */
2643
2643
  models(): ModelProfile[];
2644
- new (...args: any[]): LLMAdapter<TRequestParams>;
2644
+ new (...args: any): LLMAdapter<TRequestParams>;
2645
2645
  }
2646
2646
  interface ModelProfile {
2647
2647
  /** Provider identifier, e.g. "google". */
@@ -3104,6 +3104,12 @@ declare class TurnBuilder {
3104
3104
  withRole(role: string): TurnBuilder;
3105
3105
  withModel(model: string): TurnBuilder;
3106
3106
  build(): Turn;
3107
+ /**
3108
+ * Builds a `TurnNode` from the current turn.
3109
+ * The node will contain the turn as its only version,
3110
+ * marked as the active version, with an empty children map.
3111
+ */
3112
+ node(): TurnNode;
3107
3113
  }
3108
3114
 
3109
3115
  declare class DefaultPromptBuilder implements PromptBuilder {