hazo_llm_api 1.2.5 → 1.2.6
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt_dialog.d.ts","sourceRoot":"","sources":["../../../src/components/prompt_editor/prompt_dialog.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"prompt_dialog.d.ts","sourceRoot":"","sources":["../../../src/components/prompt_editor/prompt_dialog.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAWH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAyCpD;;GAEG;AACH,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,cAAc,EACd,IAAI,EACJ,SAAS,EACT,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,SAAS,EACT,UAAU,GACX,EAAE,iBAAiB,2CAwRnB"}
|
|
@@ -4,20 +4,29 @@
|
|
|
4
4
|
* Dialog for creating and editing prompts.
|
|
5
5
|
*/
|
|
6
6
|
'use client';
|
|
7
|
-
import { jsx as _jsx, jsxs as _jsxs
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
import * as React from 'react';
|
|
9
|
-
import { Plus,
|
|
10
|
-
import {
|
|
9
|
+
import { Plus, CheckCircle, ChevronDown, ChevronRight } from 'lucide-react';
|
|
10
|
+
import { HazoUiDialog } from 'hazo_ui';
|
|
11
11
|
import { Button } from './ui/button.js';
|
|
12
12
|
import { Input } from './ui/input.js';
|
|
13
13
|
import { Textarea } from './ui/textarea.js';
|
|
14
14
|
import { VariableEntry } from './variable_entry.js';
|
|
15
|
+
function CollapsibleSection({ title, expanded, on_toggle, badge, children, }) {
|
|
16
|
+
return (_jsxs("div", { className: "space-y-2 border rounded-lg p-3", children: [_jsxs("button", { type: "button", onClick: on_toggle, className: "flex items-center gap-2 text-sm font-medium w-full text-left", children: [expanded ? (_jsx(ChevronDown, { className: "h-4 w-4" })) : (_jsx(ChevronRight, { className: "h-4 w-4" })), title, badge && (_jsxs("span", { className: "text-xs text-primary ml-2", children: ["(", badge, ")"] }))] }), expanded && (_jsx("div", { className: "pt-2 space-y-2", children: children }))] }));
|
|
17
|
+
}
|
|
15
18
|
/**
|
|
16
19
|
* PromptDialog component for create/edit operations
|
|
17
20
|
*/
|
|
18
21
|
export function PromptDialog({ open, on_open_change, mode, form_data, on_form_change, on_variable_change, on_add_variable, on_delete_variable, on_submit, submitting, }) {
|
|
22
|
+
const [locals_expanded, set_locals_expanded] = React.useState(false);
|
|
23
|
+
const [ownership_expanded, set_ownership_expanded] = React.useState(false);
|
|
24
|
+
const [variables_expanded, set_variables_expanded] = React.useState(false);
|
|
19
25
|
const [next_prompt_expanded, set_next_prompt_expanded] = React.useState(false);
|
|
20
|
-
|
|
26
|
+
const has_locals = !!(form_data.local_1 || form_data.local_2 || form_data.local_3);
|
|
27
|
+
const has_ownership = !!(form_data.user_id || form_data.scope_id);
|
|
28
|
+
const has_variables = form_data.prompt_variables.length > 0;
|
|
29
|
+
return (_jsx(HazoUiDialog, { open: open, onOpenChange: on_open_change, title: mode === 'create' ? 'Create New Prompt' : 'Edit Prompt', description: mode === 'create' ? 'Add a new prompt to the library.' : 'Update the prompt details.', sizeWidth: "min(95vw, 900px)", sizeHeight: "min(90vh, 900px)", headerBar: true, actionButtonText: mode === 'create' ? 'Create' : 'Update', actionButtonIcon: _jsx(CheckCircle, { className: "h-4 w-4" }), actionButtonLoading: submitting, onConfirm: on_submit, onCancel: () => on_open_change(false), className: "cls_prompt_dialog", children: _jsxs("div", { className: "cls_dialog_body space-y-4", children: [_jsxs("div", { className: "grid grid-cols-2 gap-4", children: [_jsxs("div", { className: "cls_field_area space-y-2", children: [_jsxs("label", { className: "text-sm font-medium", children: ["Prompt Area ", _jsx("span", { className: "text-destructive", children: "*" })] }), _jsx(Input, { className: "cls_prompt_area_input", placeholder: "e.g., marketing, support, generation", value: form_data.prompt_area, onChange: (e) => on_form_change('prompt_area', e.target.value) }), _jsx("p", { className: "text-xs text-muted-foreground", children: "Lowercase, single word only" })] }), _jsxs("div", { className: "cls_field_key space-y-2", children: [_jsxs("label", { className: "text-sm font-medium", children: ["Prompt Key ", _jsx("span", { className: "text-destructive", children: "*" })] }), _jsx(Input, { className: "cls_prompt_key_input", placeholder: "e.g., greeting, summary, analysis", value: form_data.prompt_key, onChange: (e) => on_form_change('prompt_key', e.target.value) }), _jsx("p", { className: "text-xs text-muted-foreground", children: "Lowercase, single word only" })] })] }), _jsxs(CollapsibleSection, { title: "Local Filters (Optional)", expanded: locals_expanded, on_toggle: () => set_locals_expanded(!locals_expanded), badge: has_locals ? 'configured' : undefined, children: [_jsx("p", { className: "text-xs text-muted-foreground", children: "Localization filters for more specific prompt variants. Leave empty for base prompt." }), _jsxs("div", { className: "cls_field_locals grid grid-cols-3 gap-2", children: [_jsx("div", { children: _jsx(Input, { className: "cls_local_1_input", placeholder: "local_1", value: form_data.local_1, onChange: (e) => on_form_change('local_1', e.target.value) }) }), _jsx("div", { children: _jsx(Input, { className: "cls_local_2_input", placeholder: "local_2", value: form_data.local_2, onChange: (e) => on_form_change('local_2', e.target.value) }) }), _jsx("div", { children: _jsx(Input, { className: "cls_local_3_input", placeholder: "local_3", value: form_data.local_3, onChange: (e) => on_form_change('local_3', e.target.value) }) })] })] }), _jsxs(CollapsibleSection, { title: "Ownership (Optional)", expanded: ownership_expanded, on_toggle: () => set_ownership_expanded(!ownership_expanded), badge: has_ownership ? 'configured' : undefined, children: [_jsx("p", { className: "text-xs text-muted-foreground", children: "Optional identifiers for user-specific or scope-specific prompts." }), _jsxs("div", { className: "cls_field_ownership grid grid-cols-2 gap-2", children: [_jsxs("div", { children: [_jsx("label", { className: "text-xs text-muted-foreground", children: "User ID" }), _jsx(Input, { className: "cls_user_id_input", placeholder: "User UUID", value: form_data.user_id, onChange: (e) => on_form_change('user_id', e.target.value) })] }), _jsxs("div", { children: [_jsx("label", { className: "text-xs text-muted-foreground", children: "Scope ID" }), _jsx(Input, { className: "cls_scope_id_input", placeholder: "Scope UUID", value: form_data.scope_id, onChange: (e) => on_form_change('scope_id', e.target.value) })] })] })] }), _jsxs("div", { className: "cls_field_name space-y-2", children: [_jsx("label", { className: "text-sm font-medium", children: "Prompt Name" }), _jsx(Input, { className: "cls_prompt_name_input", placeholder: "Human-readable title for this prompt", value: form_data.prompt_name, onChange: (e) => on_form_change('prompt_name', e.target.value) }), _jsx("p", { className: "text-xs text-muted-foreground", children: "Optional title to identify this prompt" })] }), _jsxs("div", { className: "grid grid-cols-2 gap-4", children: [_jsxs("div", { className: "cls_field_text_head space-y-2", children: [_jsx("label", { className: "text-sm font-medium", children: "Prompt Text Head (Prefix)" }), _jsx(Textarea, { className: "cls_prompt_text_head_input", placeholder: "Optional prefix text prepended to the main prompt", value: form_data.prompt_text_head, onChange: (e) => on_form_change('prompt_text_head', e.target.value), rows: 5 })] }), _jsxs("div", { className: "cls_field_text_tail space-y-2", children: [_jsx("label", { className: "text-sm font-medium", children: "Prompt Text Tail (Suffix)" }), _jsx(Textarea, { className: "cls_prompt_text_tail_input", placeholder: "Optional suffix text appended to the main prompt", value: form_data.prompt_text_tail, onChange: (e) => on_form_change('prompt_text_tail', e.target.value), rows: 5 })] })] }), _jsxs("div", { className: "cls_field_text_body space-y-2", children: [_jsxs("label", { className: "text-sm font-medium", children: ["Prompt Text Body ", _jsx("span", { className: "text-destructive", children: "*" })] }), _jsx(Textarea, { className: "cls_prompt_text_body_input min-h-[200px]", placeholder: "Enter your main prompt text. Use {{variable_name}} for variables, e.g., Give me info about {{country}}", value: form_data.prompt_text_body, onChange: (e) => on_form_change('prompt_text_body', e.target.value), rows: 10 })] }), _jsx(CollapsibleSection, { title: "Variables", expanded: variables_expanded, on_toggle: () => set_variables_expanded(!variables_expanded), badge: has_variables ? `${form_data.prompt_variables.length}` : undefined, children: _jsxs("div", { className: "cls_field_variables space-y-2", children: [_jsx("div", { className: "flex items-center justify-end", children: _jsxs(Button, { type: "button", variant: "outline", size: "sm", onClick: on_add_variable, className: "cls_add_variable_button", children: [_jsx(Plus, { className: "h-3 w-3 mr-1" }), "Add Variable"] }) }), _jsxs("div", { className: "space-y-2", children: [form_data.prompt_variables.map((variable, index) => (_jsx(VariableEntry, { variable: variable, index: index, on_change: on_variable_change, on_delete: on_delete_variable }, index))), form_data.prompt_variables.length === 0 && (_jsx("p", { className: "text-xs text-muted-foreground italic", children: "No variables defined. Click \"Add Variable\" to add one." }))] })] }) }), _jsxs("div", { className: "cls_field_notes space-y-2", children: [_jsx("label", { className: "text-sm font-medium", children: "Notes" }), _jsx(Textarea, { className: "cls_prompt_notes_input", placeholder: "Optional notes about this prompt", value: form_data.prompt_notes, onChange: (e) => on_form_change('prompt_notes', e.target.value), rows: 4 })] }), _jsxs(CollapsibleSection, { title: "Next Prompt Configuration", expanded: next_prompt_expanded, on_toggle: () => set_next_prompt_expanded(!next_prompt_expanded), badge: form_data.next_prompt ? 'configured' : undefined, children: [_jsx("p", { className: "text-xs text-muted-foreground", children: "JSON configuration for dynamic prompt chaining. Define how the next prompt should be determined based on this prompt's output." }), _jsx(Textarea, { className: "cls_next_prompt_input font-mono text-xs", placeholder: `{
|
|
21
30
|
"static_prompt_area": "doc",
|
|
22
31
|
"dynamic_prompt_key": "$.document_type"
|
|
23
32
|
}`, value: form_data.next_prompt, onChange: (e) => on_form_change('next_prompt', e.target.value), rows: 6 }), _jsxs("details", { className: "text-xs text-muted-foreground", children: [_jsx("summary", { className: "cursor-pointer hover:text-foreground", children: "JSONPath Examples" }), _jsxs("div", { className: "mt-2 p-2 bg-muted rounded space-y-2", children: [_jsxs("p", { children: [_jsx("strong", { children: "Simple:" }), ' ', _jsx("code", { className: "bg-background px-1 rounded", children: `{"static_prompt_area": "doc", "dynamic_prompt_key": "$.type"}` })] }), _jsx("p", { children: _jsx("strong", { children: "Branching:" }) }), _jsx("pre", { className: "bg-background p-2 rounded overflow-x-auto text-xs", children: `{
|
|
@@ -32,6 +41,6 @@ export function PromptDialog({ open, on_open_change, mode, form_data, on_form_ch
|
|
|
32
41
|
"static_prompt_area": "doc",
|
|
33
42
|
"dynamic_prompt_key": "$.document_type"
|
|
34
43
|
}
|
|
35
|
-
}` })] })] })] })
|
|
44
|
+
}` })] })] })] })] }) }));
|
|
36
45
|
}
|
|
37
46
|
//# sourceMappingURL=prompt_dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt_dialog.js","sourceRoot":"","sources":["../../../src/components/prompt_editor/prompt_dialog.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"prompt_dialog.js","sourceRoot":"","sources":["../../../src/components/prompt_editor/prompt_dialog.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,SAAS,kBAAkB,CAAC,EAC1B,KAAK,EACL,QAAQ,EACR,SAAS,EACT,KAAK,EACL,QAAQ,GAOT;IACC,OAAO,CACL,eAAK,SAAS,EAAC,iCAAiC,aAC9C,kBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,SAAS,EAClB,SAAS,EAA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CAAC,CAAC,SAAS,aAEvD,YAAG,SAAS,EAAC,+BAA+B,+IAGxC,EACJ,KAAC,QAAQ,IACP,SAAS,EAAC,yCAAyC,EACnD,WAAW,EAAE;;;EAGvB,EACU,KAAK,EAAE,SAAS,CAAC,WAAW,EAC5B,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAC9D,IAAI,EAAE,CAAC,GACP,EACF,mBAAS,SAAS,EAAC,+BAA+B,aAChD,kBAAS,SAAS,EAAC,sCAAsC,kCAE/C,EACV,eAAK,SAAS,EAAC,qCAAqC,aAClD,wBACE,uCAAwB,EAAC,GAAG,EAC5B,eAAM,SAAS,EAAC,4BAA4B,YAAE,+DAA+D,GAAQ,IACnH,EACJ,sBACE,0CAA2B,GACzB,EACJ,cAAK,SAAS,EAAC,mDAAmD,YAAE;;;;;;;;;;;;EAYhF,GAAO,IACS,IACE,IACS,IACjB,GACO,CAChB,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hazo_llm_api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"description": "Wrapper to call different LLMs and includes prompt management",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"LLM",
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"@radix-ui/react-tooltip": "^1.1.7",
|
|
72
72
|
"class-variance-authority": "^0.7.1",
|
|
73
73
|
"clsx": "^2.1.1",
|
|
74
|
+
"hazo_ui": ">=2.0.0",
|
|
74
75
|
"ini": "^6.0.0",
|
|
75
76
|
"lucide-react": "^0.474.0",
|
|
76
77
|
"sql.js": "^1.10.0",
|