chore(visualizer): align release metadata and snapshots

This commit is contained in:
ZiyaZhang
2026-09-08 01:40:11 -07:00
parent 7729e0ffee
commit b75b8ce49e
2 changed files with 2 additions and 2 deletions
@@ -1,7 +1,7 @@
{
"name": "@deepseek-ai/dsh-tool-visualizer",
"description": "Host tools, prompt policy, and authorized widget follow-ups for inline conversation visuals",
"version": "0.1.3-alpha.1",
"version": "0.1.3-alpha.2",
"publishConfig": {
"access": "public"
},
@@ -13,7 +13,7 @@
{"type":"request/context","data":{"provider":"deepseek-official","model":"deepseek-v4-flash","contextWindow":1000000}}
{"type":"assistant/message","data":{"turn":1,"step":1,"message":{"role":"assistant","content":[{"type":"reasoning","text":"The user wants me to call widget_guidelines with the interactive and chart modules, then reply exactly \"Guidance loaded.\" Do not call show_widget."},{"type":"tool-call","id":"call_00_Ln0fHsLLWZHZEm0ScWzt8902","name":"widget_guidelines","arguments":"{\"modules\": [\"interactive\", \"chart\"]}"}],"source":{"kind":"model","provider":"deepseek-official","model":"deepseek-v4-flash"},"id":"{{message:3}}"},"usage":{"inputTokens":8649,"outputTokens":84,"totalTokens":8733,"cacheReadTokens":0,"reasoningTokens":32},"stream":[{"type":"chunk","time":0,"chunk":{"type":"block-start","index":0,"blockType":"reasoning"}},{"type":"reasoning-chunks","time0":0,"index":0,"dt":[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0],"texts":["The"," user"," wants"," me"," to"," call"," widget","_","guid","elines"," with"," the"," interactive"," and"," chart"," modules",","," then"," reply"," exactly"," \"","Guid","ance"," loaded",".\""," Do"," not"," call"," show","_w","idget","."]},{"type":"chunk","time":0,"chunk":{"type":"block-start","index":1,"blockType":"tool-call"}},{"type":"tool-call-chunks","time0":0,"index":1,"dt":[0,0,0,0,0,0,1,0,0,0,0,0,0],"id":"call_00_Ln0fHsLLWZHZEm0ScWzt8902","name":"widget_guidelines","args":["","{","\"","modules","\"",": ","[\"","inter","active","\","," \"","chart","\"]","}"]},{"type":"chunk","time":0,"chunk":{"type":"block-end","index":0,"block":{"type":"reasoning","text":"The user wants me to call widget_guidelines with the interactive and chart modules, then reply exactly \"Guidance loaded.\" Do not call show_widget."}}},{"type":"chunk","time":0,"chunk":{"type":"block-end","index":1,"block":{"type":"tool-call","id":"call_00_Ln0fHsLLWZHZEm0ScWzt8902","name":"widget_guidelines","arguments":"{\"modules\": [\"interactive\", \"chart\"]}"}}},{"type":"chunk","time":0,"chunk":{"type":"usage","usage":{"inputTokens":8649,"outputTokens":84,"totalTokens":8733,"cacheReadTokens":0,"reasoningTokens":32}}},{"type":"chunk","time":0,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}]},"surfaceOp":"append"}
{"type":"tool/call","data":{"turn":1,"step":1,"callId":"call_00_Ln0fHsLLWZHZEm0ScWzt8902","name":"widget_guidelines","arguments":"{\"modules\": [\"interactive\", \"chart\"]}"}}
{"type":"tool/result","data":{"turn":1,"step":1,"message":{"source":{"kind":"tool","callId":"call_00_Ln0fHsLLWZHZEm0ScWzt8902"},"content":[{"type":"tool-result","toolCallId":"call_00_Ln0fHsLLWZHZEm0ScWzt8902","content":[{"type":"text","text":"## Delivery\n- Call show_widget next with the complete source; keep planning brief.\n\n## Foundation\n- Theme variables available: --dsw-alias-bg-base, --dsw-alias-bg-layer-1, --dsw-alias-bg-layer-2, --dsw-alias-border-l1, --dsw-alias-border-l2, --dsw-alias-brand-primary, --dsw-alias-button-primary-fill, --dsw-alias-interactive-bg-hover, --dsw-alias-interactive-bg-active, --dsw-alias-label-primary, --dsw-alias-label-primary-inverted, --dsw-alias-label-secondary, --dsw-alias-label-tertiary, --dsw-alias-state-error-primary.\n- The host provides readable defaults for controls and owns placement and title. Keep those defaults or restyle controls and the visual surface to suit the subject; avoid a second outer frame or repeated panels.\n- Center the task's primary result or relationship; leave secondary explanation to the reply.\n- For a broad request, choose one representative scenario and leave alternatives to the reply.\n- Keep related inputs and primary results in one compact flow; reserve separate panels for distinct tasks.\n- Keep labels in the user's language.\n- Keep content inside its coordinate space or normal document flow. At narrow widths, reflow controls, legends, comparison layouts, and exact-value rows instead of clipping, shrinking labels, or adding nested scrolling; let flexible grid and flex children shrink with min-width: 0.\n- Pair color with a label, shape, or pattern.\n- Give every primary visual a concise accessible name and summary without repeating the host title.\n\n## Interactive\n- Keep the task's primary interaction or result dominant.\n- Match each input to its semantics with one primary control per value: fields for exact entry, choice controls for discrete values, and ranges only for values meant to be swept. Give every control a clear label. Native controls come styled, focusable, and keyboard-accessible; custom controls must match that.\n- Within an HTML fragment, use inspectable DOM or inline SVG elements when they can represent the scene directly; use canvas only when retaining one element per visual mark would be impractical.\n- Keep self-contained interactions and computation local; they must not call the model.\n- Use motion only when change over time carries the explanation. Otherwise start stable; continuous motion waits for a user action unless immediate motion is the requested content. Honor reduced-motion preferences.\n- Reuse a bounded set of DOM or SVG nodes for recurring updates; change textContent or attributes in place instead of rebuilding markup, and stop scheduling while idle, paused, or settled.\n- Keep changing numeric readouts from shifting the layout by using tabular numerals and reserving enough width for expected values.\n- Call window.dshWidget.sendPrompt(text) only from a user gesture and only when the next step genuinely needs the model. The message enters the conversation immediately, labelled as widget-authored; there is no confirmation step.\n- Recover from non-fatal errors. Keep behavior deterministic; when variation is meaningful, make it reproducible and resettable.\n\n## Chart\n- Choose the smallest chart that exposes the relationship: bars for comparison, lines for ordered change, dots for distribution, and tables when exact lookup matters most.\n- Start quantitative axes at zero when magnitude comparison depends on it; otherwise mark the scale and domain clearly. When a wide magnitude range hides structure, consider a clearly labelled log scale, normalized view, or small multiples only when it preserves the comparison's meaning.\n- Leave room so marks, ticks, and labels do not overlap or clip. Include units, preserve meaningful precision, distinguish missing values from zero, format signs consistently, and use a legend when direct labels would collide.\n- Keep series count small and include the main finding in the accessible summary. When series become visually indistinguishable, use a consolidated or direct-difference view if separate marks no longer carry meaning."}],"isError":false}],"role":"user","id":"{{message:4}}"}},"sourceEventSeqs":[13],"surfaceOp":"append"}
{"type":"tool/result","data":{"turn":1,"step":1,"message":{"source":{"kind":"tool","callId":"call_00_Ln0fHsLLWZHZEm0ScWzt8902"},"content":[{"type":"tool-result","toolCallId":"call_00_Ln0fHsLLWZHZEm0ScWzt8902","content":[{"type":"text","text":"## Delivery\n- Call show_widget next with the complete source; keep planning brief.\n\n## Foundation\n- Theme variables available: --dsw-alias-bg-base, --dsw-alias-bg-layer-1, --dsw-alias-bg-layer-2, --dsw-alias-border-l1, --dsw-alias-border-l2, --dsw-alias-brand-primary, --dsw-alias-button-primary-fill, --dsw-alias-interactive-bg-hover, --dsw-alias-interactive-bg-active, --dsw-alias-label-primary, --dsw-alias-label-primary-inverted, --dsw-alias-label-secondary, --dsw-alias-label-tertiary, --dsw-alias-state-error-primary.\n- Use readable controls and a visual surface suited to the subject; avoid wrapping the result in an extra outer frame or giving every item its own panel.\n- Center the task's primary result or relationship; leave secondary explanation to the reply.\n- For a broad request, choose one representative scenario and leave alternatives to the reply.\n- Keep related inputs and primary results in one compact flow; reserve separate panels for distinct tasks.\n- Keep labels in the user's language.\n- Keep content inside its coordinate space or normal document flow. At narrow widths, reflow controls, legends, comparison layouts, and exact-value rows instead of clipping, shrinking labels, or adding nested scrolling; let flexible grid and flex children shrink with min-width: 0.\n- Pair color with a label, shape, or pattern.\n- Give every primary visual a concise accessible name and summary.\n\n## Interactive\n- Keep the task's primary interaction or result dominant.\n- Match each input to its semantics with one primary control per value: fields for exact entry, choice controls for discrete values, and ranges only for values meant to be swept. Give every control a clear label. Native controls come styled, focusable, and keyboard-accessible; custom controls must match that.\n- Within an HTML fragment, use inspectable DOM or inline SVG elements when they can represent the scene directly; use canvas only when retaining one element per visual mark would be impractical.\n- Keep self-contained interactions and computation local; they must not call the model.\n- Use motion only when change over time carries the explanation. Otherwise start stable; continuous motion waits for a user action unless immediate motion is the requested content. Honor reduced-motion preferences.\n- Reuse a bounded set of DOM or SVG nodes for recurring updates; change textContent or attributes in place instead of rebuilding markup, and stop scheduling while idle, paused, or settled.\n- Keep changing numeric readouts from shifting the layout by using tabular numerals and reserving enough width for expected values.\n- Call window.dshWidget.sendPrompt(text, event) directly from a trusted click or keydown handler, at most once per event, and only when the next step genuinely needs the model. The message enters the conversation immediately, labelled as widget-authored; there is no confirmation step.\n- Recover from non-fatal errors. Keep behavior deterministic; when variation is meaningful, make it reproducible and resettable.\n\n## Chart\n- Choose the smallest chart that exposes the relationship: bars for comparison, lines for ordered change, dots for distribution, and tables when exact lookup matters most.\n- Start quantitative axes at zero when magnitude comparison depends on it; otherwise mark the scale and domain clearly. When a wide magnitude range hides structure, consider a clearly labelled log scale, normalized view, or small multiples only when it preserves the comparison's meaning.\n- Leave room so marks, ticks, and labels do not overlap or clip. Include units, preserve meaningful precision, distinguish missing values from zero, format signs consistently, and use a legend when direct labels would collide.\n- Keep series count small and include the main finding in the accessible summary. When series become visually indistinguishable, use a consolidated or direct-difference view if separate marks no longer carry meaning."}],"isError":false}],"role":"user","id":"{{message:4}}"}},"sourceEventSeqs":[13],"surfaceOp":"append"}
{"type":"step/end","data":{"turn":1,"step":1}}
{"type":"step/start","data":{"turn":1,"step":2}}
{"type":"assistant/message","data":{"turn":1,"step":2,"message":{"role":"assistant","content":[{"type":"text","text":"Guidance loaded."}],"source":{"kind":"model","provider":"deepseek-official","model":"deepseek-v4-flash"},"id":"{{message:5}}"},"usage":{"inputTokens":704,"outputTokens":5,"totalTokens":9413,"cacheReadTokens":8704,"reasoningTokens":0},"stream":[{"type":"chunk","time":0,"chunk":{"type":"block-start","index":0,"blockType":"text"}},{"type":"text-chunks","time0":0,"index":0,"dt":[0,0,0],"texts":["Guid","ance"," loaded","."]},{"type":"chunk","time":0,"chunk":{"type":"block-end","index":0,"block":{"type":"text","text":"Guidance loaded."}}},{"type":"chunk","time":0,"chunk":{"type":"usage","usage":{"inputTokens":704,"outputTokens":5,"totalTokens":9413,"cacheReadTokens":8704,"reasoningTokens":0}}},{"type":"chunk","time":0,"chunk":{"type":"finish","reason":{"kind":"stop"}}}]},"surfaceOp":"append"}