@imfusion/web-ui 0.10.1-dev.46.g5fe8962a → 0.10.1-dev.48.g27170cb6
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/CHANGELOG.md +2 -1
- package/dist/components/dialog/dialog.d.ts +7 -4
- package/dist/index.js +1176 -1176
- package/package.json +1 -1
- package/src/docgen/doc.gen.json +4 -4
- package/src/llms/install-templates/hooks/stop.sh +4 -2
package/package.json
CHANGED
package/src/docgen/doc.gen.json
CHANGED
|
@@ -1726,7 +1726,7 @@
|
|
|
1726
1726
|
},
|
|
1727
1727
|
{
|
|
1728
1728
|
"name": "Dialog.Close",
|
|
1729
|
-
"description": "Dialog.Close — button that closes the dialog. With no `children` and no `render` it renders the library's ghost close\nbutton (
|
|
1729
|
+
"description": "Dialog.Close — button that closes the dialog. With no `children` and no `render` it renders the library's ghost close\nbutton (a boxed × icon labelled \"Close\"); otherwise render your own `Button`.",
|
|
1730
1730
|
"props": [
|
|
1731
1731
|
{
|
|
1732
1732
|
"name": "className",
|
|
@@ -1841,7 +1841,7 @@
|
|
|
1841
1841
|
"required": false,
|
|
1842
1842
|
"type": "ReactNode",
|
|
1843
1843
|
"defaultValue": null,
|
|
1844
|
-
"description": "Content of the footer, usually buttons. The footer renders only when this is set."
|
|
1844
|
+
"description": "Content of the footer, usually buttons. The footer renders only when this is set, and then replaces the header's\nclose button, so include a way out such as a Cancel `Dialog.Close`."
|
|
1845
1845
|
},
|
|
1846
1846
|
{
|
|
1847
1847
|
"name": "actionsRef",
|
|
@@ -2076,14 +2076,14 @@
|
|
|
2076
2076
|
},
|
|
2077
2077
|
{
|
|
2078
2078
|
"name": "Dialog.Simple",
|
|
2079
|
-
"description": "Dialog.Simple — pre-composed dialog: trigger, header with title, description, optional status
|
|
2079
|
+
"description": "Dialog.Simple — pre-composed dialog: trigger, header with title, description, and optional status, a scrolling body,\nand either a close button in the header or a footer of `actions`. Root props pass through.",
|
|
2080
2080
|
"props": [
|
|
2081
2081
|
{
|
|
2082
2082
|
"name": "actions",
|
|
2083
2083
|
"required": false,
|
|
2084
2084
|
"type": "ReactNode",
|
|
2085
2085
|
"defaultValue": null,
|
|
2086
|
-
"description": "Content of the footer, usually buttons. The footer renders only when this is set."
|
|
2086
|
+
"description": "Content of the footer, usually buttons. The footer renders only when this is set, and then replaces the header's\nclose button, so include a way out such as a Cancel `Dialog.Close`."
|
|
2087
2087
|
},
|
|
2088
2088
|
{
|
|
2089
2089
|
"name": "actionsRef",
|
|
@@ -12,10 +12,12 @@ git rev-parse --is-inside-work-tree >/dev/null 2>&1 || exit 0
|
|
|
12
12
|
# session must not block a question-answering turn. Edit evidence: Write/Edit
|
|
13
13
|
# tool calls (Claude transcript) or apply_patch calls (Codex rollout), searched
|
|
14
14
|
# only after the turn's opening entry: the last real user prompt (not a tool
|
|
15
|
-
# result or injected meta message) or the last Codex task_started event.
|
|
15
|
+
# result or injected meta message) or the last Codex task_started event. Claude
|
|
16
|
+
# matches only tool_use calls: its transcript also stores the tool definitions,
|
|
17
|
+
# whose "name":"Edit" entries are not edits.
|
|
16
18
|
TRANSCRIPT=$(printf '%s' "$PAYLOAD" | sed -n 's/.*"transcript_path"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -n 1)
|
|
17
19
|
[ -f "$TRANSCRIPT" ] || exit 0
|
|
18
20
|
TURN_START=$(grep -En '"type":"user"|"type":"task_started"' "$TRANSCRIPT" | grep -Ev '"type":"tool_result"|"isMeta":true' | tail -n 1 | cut -d: -f1)
|
|
19
|
-
tail -n +$(( ${TURN_START:-0} + 1 )) "$TRANSCRIPT" | grep -Eq '"
|
|
21
|
+
tail -n +$(( ${TURN_START:-0} + 1 )) "$TRANSCRIPT" | grep -Eq '"type":"tool_use","id":"[^"]*","name":"(Write|Edit|MultiEdit|NotebookEdit)"|"name":"apply_patch"' || exit 0
|
|
20
22
|
printf '{"decision":"block","reason":"web-ui stop gate: this turn changed source files. Run the project verification (verify:typecheck, verify:lint, and verify:format at minimum), fix what it reports, then finish. If it already ran after the last change, say so and finish."}\n'
|
|
21
23
|
exit 0
|