Add support for a new curve data format in the Curves package converter system
日本語の概要は準備中です。原文の説明を表示しています。
Answer a "how do I …" question about the platform with a Gherkin scenario on @datagrok-libraries/bdd that is filmed into a how-to video (grok-bdd guide), so the answer is demonstrated, sent as a video plus numbered steps, and kept as a regression test
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
The answer to "how do I open a CSV from my computer?" is a scenario: the steps a person takes, in the vocabulary the bdd library already has, run against the stand and filmed. What goes back to the person is the video (or GIF) and the numbered steps with pictures; what stays is the feature, which the suite runs from then on — an answer that stops being true fails a test.
Rules: the vocabulary first (npx grok-bdd list-steps in the package's bdd/); a phrase the
library lacks is added as a binding or as a name/signal in the core, exactly as for a test
(public/libraries/bdd/CLAUDE.md); demo data only (demog, the package's fixtures/), never a
customer's file; nothing is committed without the lead's order. A question that needs a feature
the platform does not have is not a guide: say so, with what the closest scenario shows, and stop.
What a guide shows, and what the runtime guarantees (grok-bdd guide sets it up, nothing to pass):
grok-bdd run: its second step is And simple mode is off, right after Given user is logged in (the compiler refuses a @guide feature without it). The step is silent, not in the video.When names the element
to click, hover, drag or type into, and the pointer goes there. An API step is only for what
the person already has when they ask (the open tables); a view switch is a click on the view's
tab (user clicks on spgi-100 tab), which the full shell shows. Opening the tables IS in the
video: each Given user opens X dataset shows the table it opened under its caption. Only the
login and a step that changed nothing on the page are left out.guide.hop for each, as pickTopMenu and
pickMenuPath do — fix the runtime, not the feature.selectOption and Enter; only a guide
walks the list (selectNative, typeInColumnGrid in src/runtime/gestures.ts).besidePicker in gestures.ts).Then shows when it names something
on the page — a dialog, a column, a row count, a value, a legend item's color. The checks a
test needs and a person does not are filmed out by the HIDDEN_CHECKS patterns in
src/runtime/guide.ts: error and balloon floors, server state, viewer readings and pixels,
"than before" claims, property bags, widget counts, task-bar and command bookkeeping, values
matched against a regular expression (a guide names a new column exactly, not by a pattern). Keep
them in the feature (they are the test); a new kind of bookkeeping check goes into that list.the molecule sketcher is …) and
a package's readiness wait are silent (silent from @datagrok-libraries/bdd/runtime for a
package's own step), and a wait is written as a Then (… should have finished updating), not
an And under a When, or it is filmed as an action.packages/UsageAnalysis/bdd;
a viewer → the same, under features/viewers/; Bio, Chem, DiffStudio → their own bdd/).features/ for a scenario that already does it — a test scenario often is the answer,
only written for a checker rather than a reader. Prefer filming it as it is.features/guides/<slug>.feature: tag @guide (and @help:<page dir> when it
illustrates a help page under public/help/), a description that quotes the question, one
scenario of 5–12 steps. Every When names the element a person would click, in the order they
would; a Then after the decisive step shows the result. Step text is the caption of the video
(user clicks on X inside Y → "Click on X in Y"), so it is written for the person asking; where a
step must stay precise for the test (an atom's index, a drag in pixels, a reading), a # caption: <text>
comment on the line right above it is what the video says instead ("Click the acid's carbon"), and a
check captioned so is shown even when HIDDEN_CHECKS would leave it out. A guide about one widget
(a sketcher) starts with it open from a silent set-up step that frames the video to it (guideFrame).npx grok-bdd compile then npx grok-bdd run generated/guides/<slug>.test.ts until green; a
step that needs a wait or a pixel is a missing signal in the core, not a sleep.cd public/packages/<Pkg>/bdd
MSYS_NO_PATHCONV=1 npx grok-bdd guide features/guides/<slug>.feature [--gif]
Watch guides/<feature slug>/<scenario slug>/guide.mp4/gif once, and open audit.png beside it:
every press as the video shows it, next to the same picture with magenta ticks aimed at where the
press landed. The dot, the ring and the pointer's tip sit between the ticks, on the element the
step lit; the renderer measures both (audit.json: mark_off, tip_off in video pixels, and
prints any press more than 2 px off or outside the lit element). What to fix and where:
"Open local file" icon inside browse toolbar), or add the name to
the core;NOT ON THE LIT ELEMENT in audit.png → the step lit one element and pressed
another (a stale box, a scope): the same fix — the element the gesture presses is the one it
names;--settle 1000;VERBS map of src/runtime/guide.ts;guide.hop); a step that went through the API where a person clicks
→ find or add the named element and make it a When (a view switch is user clicks on X tab).guide.mp4 (or guide.gif where a video does not embed) and the body of
steps.md, whose pictures are the step-NN.png next to it.bdd/features/guides/INDEX.md: the question, the feature, the date,
the help page it illustrates if any. Create the file with a one-line header if absent.For help pages: npx grok-bdd guide --help-pages re-films every @help: tagged feature of the
package and copies the GIFs into public/help/<page dir>/img/; the page embeds them as
. public/help is the datagrok-ai/help submodule, so the GIFs are
committed there.
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Add support for a new curve data format in the Curves package converter system
日本語の概要は準備中です。原文の説明を表示しています。
Create info panels that appear in the context panel based on semantic types
日本語の概要は準備中です。原文の説明を表示しています。
Add a new single-objective optimization algorithm to the sci-comp library. Use when the user asks to implement a new optimizer (e.g. gradient descent, BFGS, simulated annealing, differential evolution).
日本語の概要は準備中です。原文の説明を表示しています。
Add unit tests to a Datagrok package
日本語の概要は準備中です。原文の説明を表示しています。
Translate hand-written Playwright specs (or any existing UI tests) into Gherkin features on @datagrok-libraries/bdd, then prove the features test what they claim by backward-matching them against the originals with independent reviewers, and fix the gaps in the core, the library and the features
日本語の概要は準備中です。原文の説明を表示しています。
Create a Datagrok application with routing, views, and data access
日本語の概要は準備中です。原文の説明を表示しています。