Add support for a new curve data format in the Curves package converter system
日本語の概要は準備中です。原文の説明を表示しています。
Scaffold, build, and publish a new Datagrok package
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
Help the user scaffold a new Datagrok package, add functions to it, build, and publish.
/create-package [package-name] [--test] [--js]
Run from the directory where the package folder should be created:
grok create <PackageName> --test
TextStats, MyAnalysis).--test flag adds a test scaffold. Use --js for plain JavaScript instead of TypeScript.cd <PackageName>
npm install
The created package contains:
src/package.ts -- main entry point for functions, viewers, panels, appsdetectors.js -- semantic type detectors (loaded separately from the bundle)webpack.config.js -- webpack configuration (do not modify the externals)package.json -- metadata and dependenciesFunctions are defined with annotation comments above the export. Common types:
Panel function (appears in context panel for matching data):
//name: MyPanel
//tags: panel, widgets
//input: string str {semType: text}
//output: widget result
export function myPanel(str: string) {
return new DG.Widget(ui.divV([
ui.divText('Result: ' + str.length)
]));
}
Add more function types via CLI:
grok add app <name> # Application entry point
grok add viewer <name> # Custom viewer
grok add detector <name> # Semantic type detector
npm run build
This runs grok api (auto-generates wrappers), grok check --soft (validates), and webpack (bundles). Do not modify the build script in package.json.
Publish to a configured server:
grok publish dev # Debug mode (only visible to you)
grok publish dev --release # Release mode (visible to shared groups)
Return code 0 means success. After publishing in debug mode, find the package under Manage | Packages prefixed with v..
Manage | Packages.grok publish public --release.--test flag unless the user says otherwise.npm install.//name:, //tags:, //input:, //output:).まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
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
日本語の概要は準備中です。原文の説明を表示しています。
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
日本語の概要は準備中です。原文の説明を表示しています。
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
日本語の概要は準備中です。原文の説明を表示しています。