@hugex/artifact 0.6.7 → 0.6.8

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.
@@ -23,7 +23,7 @@ export interface WorkerGraph {
23
23
  }
24
24
  export type IssueSeverity = 'error' | 'warning';
25
25
  export type CredentialKind = 'bearer_token' | 'basic_auth' | 'known_token' | 'url_userinfo' | 'url_query' | 'sensitive_key' | 'high_entropy';
26
- export type IssueCode = 'missing_state' | 'schema_version' | 'var_mapping' | 'classifier_invalid' | 'classifier_edge_missing' | 'out_vars_invalid' | 'start_count' | 'answer_missing' | 'dead_end' | 'unknown_node_type' | 'duplicate_node_id' | 'invalid_node_id' | 'node_id_collides_with_input' | 'edge_unknown_node' | 'edge_bad_handle' | 'edge_duplicate' | 'start_has_input' | 'answer_has_output' | 'multiple_outgoing' | 'field_type' | 'field_required' | 'field_range' | 'field_enum' | 'ref_syntax' | 'ref_unknown_node' | 'ref_out_of_scope' | 'ref_unknown_output' | 'ref_binary_not_allowed' | 'start_input_invalid' | 'answer_mapping_invalid' | 'worker_self_reference' | 'classifier_error_unrouted' | 'classifier_handle_inactive' | 'unreachable_node' | 'graph_cycle' | 'crawl_prompt_literal' | 'model_unknown' | 'param_unsupported' | 'reasoning_effort_unsupported' | 'tool_unavailable' | 'tool_kind_mismatch' | 'skill_unavailable' | 'builtin_unknown' | 'tool_args_invalid' | 'tool_args_unknown' | 'composio_slug_disabled' | 'composio_schema_missing' | 'memo_unavailable' | 'worker_unavailable' | 'worker_child_no_output' | 'worker_inputs_mismatch' | 'worker_child_inactive_forbidden' | 'worker_child_inactive' | 'secret_unknown' | 'secret_check_skipped' | 'inline_credential' | 'op_invalid' | 'op_unknown_node' | 'already_connected' | 'edge_not_found' | 'edge_ambiguous' | 'cannot_remove_start';
26
+ export type IssueCode = 'missing_state' | 'schema_version' | 'var_mapping' | 'classifier_invalid' | 'classifier_edge_missing' | 'out_vars_invalid' | 'start_count' | 'answer_missing' | 'dead_end' | 'unknown_node_type' | 'duplicate_node_id' | 'invalid_node_id' | 'node_id_collides_with_input' | 'edge_unknown_node' | 'edge_bad_handle' | 'edge_duplicate' | 'start_has_input' | 'answer_has_output' | 'multiple_outgoing' | 'field_type' | 'field_required' | 'field_range' | 'field_enum' | 'ref_syntax' | 'ref_unknown_node' | 'ref_out_of_scope' | 'ref_unknown_output' | 'ref_binary_not_allowed' | 'start_input_invalid' | 'answer_mapping_invalid' | 'worker_self_reference' | 'classifier_error_unrouted' | 'classifier_handle_inactive' | 'unreachable_node' | 'graph_cycle' | 'crawl_prompt_literal' | 'model_unknown' | 'param_unsupported' | 'reasoning_effort_unsupported' | 'tool_unavailable' | 'tool_kind_mismatch' | 'skill_unavailable' | 'builtin_unknown' | 'tool_args_invalid' | 'tool_args_unknown' | 'composio_slug_disabled' | 'composio_schema_missing' | 'memo_unavailable' | 'worker_unavailable' | 'worker_child_no_output' | 'worker_inputs_mismatch' | 'worker_child_inactive_forbidden' | 'worker_child_inactive' | 'secret_unknown' | 'secret_check_skipped' | 'personal_memory_inactive' | 'inline_credential' | 'op_invalid' | 'op_unknown_node' | 'already_connected' | 'edge_not_found' | 'edge_ambiguous' | 'cannot_remove_start';
27
27
  export interface GraphIssue {
28
28
  code: IssueCode;
29
29
  severity: IssueSeverity;
@@ -55,6 +55,7 @@ export declare const ISSUE_SEVERITY: {
55
55
  readonly worker_child_inactive: 'advisory';
56
56
  readonly secret_unknown: 'advisory';
57
57
  readonly secret_check_skipped: 'advisory';
58
+ readonly personal_memory_inactive: 'advisory';
58
59
  readonly inline_credential: 'blocking';
59
60
  readonly op_invalid: 'blocking';
60
61
  readonly op_unknown_node: 'blocking';
@@ -66,7 +67,9 @@ export declare const ISSUE_SEVERITY: {
66
67
  /** L1, same order and same messages as FlowEngine.validateFlowStart. */
67
68
  export declare function validateFlowStructure(graph: unknown): GraphIssue[];
68
69
  /** L2 authoring issues, with intrinsic severity. Final severity is classifyIssues. */
69
- export declare function validateAuthoring(graph: WorkerGraph): GraphIssue[];
70
+ export declare function validateAuthoring(graph: WorkerGraph, opts?: {
71
+ flowType?: string;
72
+ }): GraphIssue[];
70
73
  /** Fingerprint of code, node, field, ref, and credential kind. Message and op are excluded. */
71
74
  export declare function issueFingerprint(issue: GraphIssue): string;
72
75
  export declare function classifyIssues(before: GraphIssue[], after: GraphIssue[], opts?: {
@@ -21,6 +21,7 @@ export declare function capMemoryContent(content: string, maxTokens: number): {
21
21
  truncated: boolean;
22
22
  };
23
23
  export declare function isStartMemoryEnabled(data: Record<string, unknown> | undefined | null): boolean;
24
+ export declare function isPersonalMemoryEnabled(data: Record<string, unknown> | undefined | null): boolean;
24
25
  export declare function startMemoryModel(data: Record<string, unknown> | undefined | null): string;
25
26
  export declare function startMemoryLength(data: Record<string, unknown> | undefined | null): MemoryLength;
26
27
  /** Reasoning models spend output budget on thinking; request extra tokens then cap the document. */