プレミアム・パッケージIBM Bob Premium Package for i

ツール

IBM i 固有の tool を使用して、メンバーや stream file の読み書き、CL コマンドの実行、SQL ステートメントの実行などを行います。

IBM Bob Premium Package for i は、Bob に組み込まれている tool 機能を拡張し、IBM i 専用の tool セットを提供します。tool の仕組みや組み込み tool の種類については、Tools を参照してください。

これらの tool は機能ごとに整理されており、使用する tool に応じて IBM i Developer mode および IBM i Database mode で利用できます。

Read tools

以下の IBM i read tools は、read auto-approve permission の対象です。

ToolPurposeAvailable in
read_memberQSYS 内の 1 つ以上の source member の内容を読み取ります。IBM i Developer, IBM i Database
search_qsysQSYS 内のライブラリー、オブジェクト、source member を検索します。さらに、regex を使用して member 内の内容も検索できます。IBM i Developer, IBM i Database
read_stream_fileIFS 内の 1 つ以上の stream file の内容を読み取ります。IBM i Developer
search_ifsIFS 内の stream file とディレクトリーを検索します。さらに、regex を使用して stream file 内の内容も検索できます。IBM i Developer
get_table_columnsDb2 for i のテーブルまたはビューの列メタデータを取得します。SQL 名とシステム名の両方に対応します。IBM i Database
get_cl_command_libraryCL コマンドが登録されているすべてのライブラリーを検索します。正しいライブラリー修飾のためのプロキシー・コマンドの詳細も含まれます。IBM i Developer, IBM i Database

Write tools

以下の IBM i write tools は、write auto-approve permission の対象です。

ToolPurposeAvailable in
write_memberQSYS 内に新しい source member を作成するか、既存の source member を上書きします。IBM i Developer
write_stream_fileIFS 内に新しい stream file を作成するか、既存の stream file を上書きします。IBM i Developer

Execute tools

以下の IBM i execute tools は、execute auto-approve permission の対象です。

ToolPurposeAvailable in
execute_cl_commandIBM i 上で CL コマンドを実行します。デフォルトでは、Bob はコマンドに library-qualified 指定(例: QSYS/...)を求め、ソースコードのコンパイル時には event file を生成するための parameter を自動提案します。この qualified CL command guardrail を有効にするかどうかは extension settings で設定できます。IBM i Developer
execute_sql_statementIBM i 上で SQL ステートメントを実行します。特定の SQL ステートメント種別(DROPUPDATETRUNCATE など)は、実行前に明示的なユーザー承認が必要です。この denied statement types のセットは extension settings で設定できます。IBM i Developer, IBM i Database
execute_pase_commandIBM i 上で PASE コマンドを実行します。IBM i Developer
convert_rpg_sourceconvert RPG source(CVTRPGSRC)CL コマンドを実行して、RPG III または RPG/400 のソースコードを新しい RPG IV 形式へ変換します。この tool は、all three workspaces 間のファイル転送もサポートします。IBM i Developer

Build tools

以下の IBM i build tools は、execute auto-approve permission の対象です。

ToolPurposeAvailable in
get_compile_actions指定したファイルに対して、事前定義された Code for IBM i actions を取得します。ローカルファイルの場合は、.vscode/actions.json に保存されているプロジェクトの local actions から取得します。source member または stream file の場合は、接続で定義されたデフォルト action およびユーザー定義 action から取得します。IBM i Developer
execute_compile_actionget_compile_actions tool で取得した特定の Code for IBM i action を、指定したファイルに対して実行します。IBM i Developer

Test tools

以下の IBM i test tools は、read および execute auto-approve permission の対象です。

ToolPurposeAvailable in
generate_rpg_unit_test_stubexported procedure を含む RPGLE SQLRPGLE ファイルをもとに RPGUnit test stub を生成します。これは、IBM i Testing test stub generator から生成するのと同じ目的を果たします。IBM i Developer
run_rpg_unit_test_suiteline-level(*LINE)または procedure-level(*PROC)の code coverage を指定して RPGUnit test suite をコンパイルおよび実行します。IBM i Developer

Documentation tools

以下の IBM i documentation tools は、documentation auto-approve permission の対象です。

ToolPurposeAvailable in
search_ibm_i_docs_with_rag正確なキーワード一致ではなく意味的理解が必要な、IBM i に関する概念的またはオープンエンドな質問に答える際に、RAG (retrieval-augmented generation) を使って IBM i ドキュメントを検索します。ILE programming(RPG、CL、DDS、COBOL、C、C++)、Db2 for i SQL、IFS と QSYS file systems、system operations、security、performance、networking、storage、troubleshooting を含むすべての IBM i トピックを対象とします。クエリーとの意味的類似性に基づいて順位付けされた、文脈に関連するドキュメント抜粋を返します。IBM i Developer, IBM i Database
fetch_cl_command_doc接続先 IBM i 上の CL コマンドについて、parameter の説明、使用例、発生しうるエラーメッセージを含むドキュメントを取得します。このドキュメントは GENCMDDOC CL コマンドを使用して生成されます。IBM i Developer, IBM i Database
search_sql_examplesDb2 for IBM i extension で定義されている SQL examples から、特定の SQL service を使用している SQL 例を検索します。IBM i Developer, IBM i Database
fetch_sql_examplesearch_sql_examples tool で取得した SQL 例の完全な内容を取得します。IBM i Developer, IBM i Database

追加の auto-approve permission

組み込みの auto-approve permission は、IBM i Developer mode と IBM i Database mode の両方で利用できます。これらの mode では、さらに次の auto-approve permission も利用できます。

  • Documentation: Bob が documentation tools を使用して、許可を求めずに IBM i ドキュメントを取得できるようにします。

Enabling the documentation permission group

このトピックはいかがですか?