@hugex/artifact 0.12.3 → 0.12.5

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.
@@ -29,6 +29,13 @@ export type ArtifactRoute = {
29
29
  key: string;
30
30
  mediaId: string;
31
31
  action: "stream" | "share";
32
+ }
33
+ /** `<base>/__hx/media?flow=<flowId>`. */
34
+ | {
35
+ kind: "media-upload";
36
+ slug: string;
37
+ key: string;
38
+ flowId: string;
32
39
  };
33
40
  export interface RouteInput {
34
41
  pathname: string;
@@ -1,5 +1,4 @@
1
- import { type WorkerGraph } from '../../../common/flow-graph';
2
- import type { GraphIssue } from '../../../common/flow-graph';
1
+ import { type GraphIssue, type WorkerGraph } from '../../../common/flow-graph';
3
2
  import type { McpRequestContext } from '../context';
4
3
  export type IoResult = {
5
4
  ok: true;
@@ -7,6 +7,8 @@ export * from './credentials';
7
7
  export * from './templates';
8
8
  export * from './composio';
9
9
  export * from './classifier';
10
+ export { findScopedOutVar } from '../utils/flowScope';
11
+ export type { FlowEdge, FlowNode } from '../types/var-scope';
10
12
  export { CLEF_MODELS } from '../constants/clef-models';
11
13
  export { TOOL_REGISTRY_SNAPSHOT } from '../constants/tools-registry';
12
14
  export { CLIENT_TOOL_FAMILIES, getClientTool, isClientToolFamily, listClientTools, type ClientRisk, type ClientToolActionSpec, type ClientToolFamilyId, type ClientToolFamilySpec, type ClientToolSpec, type ResolvedClientTool, } from '../constants/client-tools';
@@ -14,7 +14,7 @@ export interface MediaRef {
14
14
  durationMs?: number;
15
15
  }
16
16
  export declare function isMediaRef(value: unknown): value is MediaRef;
17
- export type MediaErrorCode = 'moderated' | 'timeout' | 'provider_error' | 'too_large' | 'cancelled' | 'media_node_public' | 'model_invalid' | 'reference_invalid' | 'ingest_failed' | 'snapshot_too_large' | 'media_job_pending';
17
+ export type MediaErrorCode = 'moderated' | 'timeout' | 'provider_error' | 'too_large' | 'cancelled' | 'media_node_public' | 'model_invalid' | 'invalid_param' | 'reference_invalid' | 'ingest_failed' | 'snapshot_too_large' | 'media_job_pending';
18
18
  export type MediaEvent = {
19
19
  type: 'media:start';
20
20
  content: {
@@ -87,16 +87,16 @@ export interface MediaNodeData {
87
87
  model: string;
88
88
  /** `{{ }}` template. */
89
89
  prompt: string;
90
- /** Upstream outVars of type `image`, or `media` with `mediaType: 'image'`. */
90
+ /** Upstream outVars of type `image`, or `media` with `mediaType: 'image' | 'video'`. */
91
91
  references?: string[];
92
92
  params: {
93
93
  aspectRatio?: string;
94
- seed?: number;
95
- /** Image: 1..capabilities.media.maxN. Video: always 1. */
96
- n?: number;
97
- duration?: number;
94
+ seed?: number | string;
95
+ /** Image: 1..capabilities.media.maxN. Video: always 1. Accepts `{{ }}` template. */
96
+ n?: number | string;
97
+ duration?: number | string;
98
98
  resolution?: string;
99
- generateAudio?: boolean;
99
+ generateAudio?: boolean | string;
100
100
  };
101
101
  /** Filtered by `capabilities.media.providerOptionsAllow`. */
102
102
  providerOptions?: Record<string, unknown>;