Add support for a new curve data format in the Curves package converter system
中文简介正在准备中。当前显示原文说明。
Set up and manage package and connection credentials securely
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Help the user store, retrieve, and manage security credentials for packages and database connections.
/manage-credentials [package-name] [--connection <connection-name>]
const creds = await _package.getCredentials();
if (creds === null) {
grok.shell.info('Credentials are not set.');
return;
}
const login = creds.parameters['login'];
const password = creds.parameters['password'];
Read a single parameter:
const creds = await _package.getCredentials();
const apiKey = creds.parameters['apiKey'];
Send a POST request to the credentials endpoint:
const grokHost = 'https://your-instance.datagrok.ai';
const packageName = 'MyPackage';
const url = `${grokHost}/api/credentials/for/${packageName}`;
const headers = {
'Authorization': apiKey,
'Content-Type': 'application/json'
};
const credentials = {login: 'myLogin', password: 'myPassword'};
await fetch(url, {method: 'POST', headers, body: JSON.stringify(credentials)});
Define credentials in the connection JSON file using environment variable substitution:
{
"#type": "DataConnection",
"name": "MyDb",
"parameters": {
"server": "db.example.com",
"port": 5432,
"db": "mydb"
},
"credentials": {
"parameters": {
"login": "${DB_LOGIN}",
"password": "${DB_PASSWORD}"
}
},
"dataSource": "Postgres"
}
For connections that belong to a package, use a dotted name:
POST ${GROK_HOST}/api/credentials/for/${PACKAGE_NAME}.${CONNECTION_NAME}
Headers: { Authorization: <API_KEY>, Content-Type: application/json }
Body: { "login": "...", "password": "..." }
For automated credential management, create a service user:
${VAR_NAME}) in connection files for sensitive values._package.getCredentials()).packages/ApiSamples/scripts/misc/package-credentials.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
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; the same scenarios, filmed in help mode, are the GIFs of the help pages
中文简介正在准备中。当前显示原文说明。
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
中文简介正在准备中。当前显示原文说明。