enbu 0.4.0 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.mjs CHANGED
@@ -1142,7 +1142,7 @@ For more information, visit: https://github.com/9wick/enbu
1142
1142
  * フォールバック値として'0.0.0-dev'を使用します。
1143
1143
  */
1144
1144
  const showVersion = () => {
1145
- process.stdout.write(`0.4.0\n`);
1145
+ process.stdout.write(`0.4.3\n`);
1146
1146
  };
1147
1147
 
1148
1148
  //#endregion
@@ -15991,17 +15991,17 @@ const resolveEnvVariables = (rawFlow, processEnv, dotEnv) => {
15991
15991
  *
15992
15992
  * 出力はBranded Type (CssSelector)
15993
15993
  */
15994
- const CssSelectorSchema$1 = object({ css: pipe(CssSelectorSchema, description("CSSセレクタ形式で要素を指定"), metadata({ exampleValues: ["#login-button", ".submit-btn"] })) });
15994
+ const CssSelectorSchema$1 = object({ css: pipe(CssSelectorSchema, description("Specify element by CSS selector"), metadata({ exampleValues: ["#login-button", ".submit-btn"] })) });
15995
15995
  /**
15996
15996
  * InteractableTextセレクタスキーマ
15997
15997
  *
15998
15998
  * インタラクティブ要素(ボタン、リンク、入力欄等)をテキスト内容で検索する。
15999
15999
  * click, fill, type, hover, select, assertEnabled, assertChecked で使用。
16000
- * 例: { interactableText: "ログイン" }
16000
+ * 例: { interactableText: "Login" }
16001
16001
  *
16002
16002
  * 出力はBranded Type (InteractableTextSelector)
16003
16003
  */
16004
- const InteractableTextSelectorSchema$1 = object({ interactableText: pipe(InteractableTextSelectorSchema, description("インタラクティブ要素をテキスト内容で検索"), metadata({ exampleValues: ["ログイン", "送信する"] })) });
16004
+ const InteractableTextSelectorSchema$1 = object({ interactableText: pipe(InteractableTextSelectorSchema, description("Search for interactive elements by text content"), metadata({ exampleValues: ["Login", "Submit"] })) });
16005
16005
  /**
16006
16006
  * AnyTextセレクタスキーマ
16007
16007
  *
@@ -16011,7 +16011,7 @@ const InteractableTextSelectorSchema$1 = object({ interactableText: pipe(Interac
16011
16011
  *
16012
16012
  * 出力はBranded Type (AnyTextSelector)
16013
16013
  */
16014
- const AnyTextSelectorSchema$1 = object({ anyText: pipe(AnyTextSelectorSchema, description("全要素をテキスト内容で検索"), metadata({ exampleValues: ["Welcome", "エラーメッセージ"] })) });
16014
+ const AnyTextSelectorSchema$1 = object({ anyText: pipe(AnyTextSelectorSchema, description("Search for any elements by text content"), metadata({ exampleValues: ["Welcome", "Error message"] })) });
16015
16015
  /**
16016
16016
  * XPathセレクタスキーマ
16017
16017
  *
@@ -16020,7 +16020,7 @@ const AnyTextSelectorSchema$1 = object({ anyText: pipe(AnyTextSelectorSchema, de
16020
16020
  *
16021
16021
  * 出力はBranded Type (XpathSelector)
16022
16022
  */
16023
- const XpathSelectorSchema$1 = object({ xpath: pipe(XpathSelectorSchema, description("XPath形式で要素を指定"), metadata({ exampleValues: ["//button[@type='submit']"] })) });
16023
+ const XpathSelectorSchema$1 = object({ xpath: pipe(XpathSelectorSchema, description("Specify element by XPath"), metadata({ exampleValues: ["//button[@type='submit']"] })) });
16024
16024
  /**
16025
16025
  * インタラクティブ要素用セレクタ指定スキーマ
16026
16026
  *
@@ -16067,7 +16067,7 @@ union([InteractableSelectorSpecSchema, AnySelectorSpecSchema]);
16067
16067
  * 文字列を直接指定した場合、インタラクティブ要素のテキスト検索として解釈する。
16068
16068
  * InteractableTextSelectorとしてBranded Type化される。
16069
16069
  */
16070
- const ClickShorthandSchema = pipe(object({ click: pipe(InteractableTextSelectorSchema, metadata({ exampleValues: ["ログイン", "送信ボタン"] })) }), metadata({ description: "テキストで要素を指定してクリック" }), transform((input) => ({
16070
+ const ClickShorthandSchema = pipe(object({ click: pipe(InteractableTextSelectorSchema, metadata({ exampleValues: ["Login", "Submit button"] })) }), metadata({ description: "Click on element specified by text" }), transform((input) => ({
16071
16071
  command: "click",
16072
16072
  interactableText: input.click
16073
16073
  })));
@@ -16080,7 +16080,7 @@ const ClickShorthandSchema = pipe(object({ click: pipe(InteractableTextSelectorS
16080
16080
  *
16081
16081
  * InteractableSelectorSpecSchemaを使用。format検証 + Branded Type化が1段階で完了。
16082
16082
  */
16083
- const ClickDetailedSchema = pipe(object({ click: InteractableSelectorSpecSchema }), metadata({ description: "セレクタで要素を指定してクリック" }), transform((input) => {
16083
+ const ClickDetailedSchema = pipe(object({ click: InteractableSelectorSpecSchema }), metadata({ description: "Click on element specified by selector" }), transform((input) => {
16084
16084
  return {
16085
16085
  command: "click",
16086
16086
  ...input.click
@@ -16095,7 +16095,7 @@ const ClickDetailedSchema = pipe(object({ click: InteractableSelectorSpecSchema
16095
16095
  * JSON Schema生成には typeMode: 'input' を使用し、
16096
16096
  * このRuntime版スキーマから入力形式のJSON Schemaを生成する。
16097
16097
  */
16098
- const ClickYamlSchema = pipe(union([ClickShorthandSchema, ClickDetailedSchema]), description("要素をクリックする"), metadata({ category: "インタラクション" }));
16098
+ const ClickYamlSchema = pipe(union([ClickShorthandSchema, ClickDetailedSchema]), description("要素をクリックする"), metadata({ category: "Interaction" }));
16099
16099
  /**
16100
16100
  * Hoverコマンドスキーマ定義
16101
16101
  *
@@ -16119,7 +16119,7 @@ const ClickYamlSchema = pipe(union([ClickShorthandSchema, ClickDetailedSchema]),
16119
16119
  * 文字列を直接指定した場合、インタラクティブ要素のテキスト検索として解釈する。
16120
16120
  * InteractableTextSelectorとしてBranded Type化される。
16121
16121
  */
16122
- const HoverShorthandSchema = pipe(object({ hover: pipe(InteractableTextSelectorSchema, metadata({ exampleValues: ["ログイン", "メニュー"] })) }), metadata({ description: "テキストで要素を指定してホバー" }), transform((input) => ({
16122
+ const HoverShorthandSchema = pipe(object({ hover: pipe(InteractableTextSelectorSchema, metadata({ exampleValues: ["Login", "Menu"] })) }), metadata({ description: "Hover over element specified by text" }), transform((input) => ({
16123
16123
  command: "hover",
16124
16124
  interactableText: input.hover
16125
16125
  })));
@@ -16132,7 +16132,7 @@ const HoverShorthandSchema = pipe(object({ hover: pipe(InteractableTextSelectorS
16132
16132
  *
16133
16133
  * InteractableSelectorSpecSchemaを使用。format検証 + Branded Type化が1段階で完了。
16134
16134
  */
16135
- const HoverDetailedSchema = pipe(object({ hover: InteractableSelectorSpecSchema }), metadata({ description: "セレクタで要素を指定してホバー" }), transform((input) => {
16135
+ const HoverDetailedSchema = pipe(object({ hover: InteractableSelectorSpecSchema }), metadata({ description: "Hover over element specified by selector" }), transform((input) => {
16136
16136
  return {
16137
16137
  command: "hover",
16138
16138
  ...input.hover
@@ -16147,7 +16147,7 @@ const HoverDetailedSchema = pipe(object({ hover: InteractableSelectorSpecSchema
16147
16147
  * JSON Schema生成には typeMode: 'input' を使用し、
16148
16148
  * このRuntime版スキーマから入力形式のJSON Schemaを生成する。
16149
16149
  */
16150
- const HoverYamlSchema = pipe(union([HoverShorthandSchema, HoverDetailedSchema]), description("要素にホバーする"), metadata({ category: "インタラクション" }));
16150
+ const HoverYamlSchema = pipe(union([HoverShorthandSchema, HoverDetailedSchema]), description("要素にホバーする"), metadata({ category: "Interaction" }));
16151
16151
  /**
16152
16152
  * ScrollIntoViewコマンドスキーマ定義
16153
16153
  *
@@ -16171,7 +16171,7 @@ const HoverYamlSchema = pipe(union([HoverShorthandSchema, HoverDetailedSchema]),
16171
16171
  * 文字列を直接指定した場合、全要素をテキスト検索として解釈する。
16172
16172
  * AnyTextSelectorとしてBranded Type化される。
16173
16173
  */
16174
- const ScrollIntoViewShorthandSchema = pipe(object({ scrollIntoView: pipe(AnyTextSelectorSchema, metadata({ exampleValues: ["送信ボタン", "フッター"] })) }), metadata({ description: "テキストで要素を指定してスクロール" }), transform((input) => ({
16174
+ const ScrollIntoViewShorthandSchema = pipe(object({ scrollIntoView: pipe(AnyTextSelectorSchema, metadata({ exampleValues: ["Submit button", "Footer"] })) }), metadata({ description: "Scroll to element specified by text" }), transform((input) => ({
16175
16175
  command: "scrollIntoView",
16176
16176
  anyText: input.scrollIntoView
16177
16177
  })));
@@ -16184,7 +16184,7 @@ const ScrollIntoViewShorthandSchema = pipe(object({ scrollIntoView: pipe(AnyText
16184
16184
  *
16185
16185
  * AnySelectorSpecSchemaを使用。format検証 + Branded Type化が1段階で完了。
16186
16186
  */
16187
- const ScrollIntoViewDetailedSchema = pipe(object({ scrollIntoView: AnySelectorSpecSchema }), metadata({ description: "セレクタで要素を指定してスクロール" }), transform((input) => {
16187
+ const ScrollIntoViewDetailedSchema = pipe(object({ scrollIntoView: AnySelectorSpecSchema }), metadata({ description: "Scroll to element specified by selector" }), transform((input) => {
16188
16188
  return {
16189
16189
  command: "scrollIntoView",
16190
16190
  ...input.scrollIntoView
@@ -16199,7 +16199,7 @@ const ScrollIntoViewDetailedSchema = pipe(object({ scrollIntoView: AnySelectorSp
16199
16199
  * JSON Schema生成には typeMode: 'input' を使用し、
16200
16200
  * このRuntime版スキーマから入力形式のJSON Schemaを生成する。
16201
16201
  */
16202
- const ScrollIntoViewYamlSchema = pipe(union([ScrollIntoViewShorthandSchema, ScrollIntoViewDetailedSchema]), description("要素が表示されるまでスクロール"), metadata({ category: "ナビゲーション" }));
16202
+ const ScrollIntoViewYamlSchema = pipe(union([ScrollIntoViewShorthandSchema, ScrollIntoViewDetailedSchema]), description("要素が表示されるまでスクロール"), metadata({ category: "Navigation" }));
16203
16203
  /**
16204
16204
  * スクロールコマンドスキーマ定義
16205
16205
  *
@@ -16224,7 +16224,7 @@ const ScrollDirectionSchema = pipe(picklist([
16224
16224
  "down",
16225
16225
  "left",
16226
16226
  "right"
16227
- ]), description("スクロール方向"));
16227
+ ]), description("Scroll direction"));
16228
16228
  /**
16229
16229
  * ScrollコマンドYAMLスキーマ(Single Source of Truth)
16230
16230
  *
@@ -16236,14 +16236,14 @@ const ScrollDirectionSchema = pipe(picklist([
16236
16236
  */
16237
16237
  const ScrollYamlSchema = pipe(object({ scroll: pipe(object({
16238
16238
  direction: ScrollDirectionSchema,
16239
- amount: pipe(number(), description("スクロール量(ピクセル)"), metadata({ exampleValues: [100, 500] }))
16239
+ amount: pipe(number(), description("Scroll amount (pixels)"), metadata({ exampleValues: [100, 500] }))
16240
16240
  }), metadata({ exampleValues: [{
16241
16241
  direction: "down",
16242
16242
  amount: 300
16243
16243
  }, {
16244
16244
  direction: "up",
16245
16245
  amount: 100
16246
- }] })) }), description("ページをスクロールする"), metadata({ category: "ナビゲーション" }), transform((input) => ({
16246
+ }] })) }), description("ページをスクロールする"), metadata({ category: "Navigation" }), transform((input) => ({
16247
16247
  command: "scroll",
16248
16248
  direction: input.scroll.direction,
16249
16249
  amount: input.scroll.amount
@@ -16278,32 +16278,32 @@ const LoadStateSchema = pipe(picklist([
16278
16278
  "load",
16279
16279
  "domcontentloaded",
16280
16280
  "networkidle"
16281
- ]), description("ページの読み込み状態"));
16282
- const WaitMsSchema = pipe(object({ wait: pipe(number(), description("待機時間(ミリ秒)"), metadata({ exampleValues: [1e3, 3e3] })) }), metadata({ description: "指定ミリ秒待機" }), transform((input) => ({
16281
+ ]), description("Page load state"));
16282
+ const WaitMsSchema = pipe(object({ wait: pipe(number(), description("Wait time (milliseconds)"), metadata({ exampleValues: [1e3, 3e3] })) }), metadata({ description: "Wait for specified milliseconds" }), transform((input) => ({
16283
16283
  command: "wait",
16284
16284
  ms: input.wait
16285
16285
  })));
16286
- const WaitCssSchema = pipe(object({ wait: object({ css: pipe(CssSelectorSchema, description("CSSセレクタ形式で要素を指定"), metadata({ exampleValues: ["#login-button", ".submit-btn"] })) }) }), metadata({ description: "CSSセレクタで指定した要素が表示されるまで待機" }), transform((input) => ({
16286
+ const WaitCssSchema = pipe(object({ wait: object({ css: pipe(CssSelectorSchema, description("Specify element by CSS selector"), metadata({ exampleValues: ["#login-button", ".submit-btn"] })) }) }), metadata({ description: "Wait until element specified by CSS selector is visible" }), transform((input) => ({
16287
16287
  command: "wait",
16288
16288
  css: input.wait.css
16289
16289
  })));
16290
- const WaitAnyTextSchema = pipe(object({ wait: object({ anyText: pipe(AnyTextSelectorSchema, description("全要素をテキスト内容で検索"), metadata({ exampleValues: ["ログイン", "送信する"] })) }) }), metadata({ description: "テキストで指定した要素が表示されるまで待機" }), transform((input) => ({
16290
+ const WaitAnyTextSchema = pipe(object({ wait: object({ anyText: pipe(AnyTextSelectorSchema, description("Search for any elements by text content"), metadata({ exampleValues: ["Login", "Submit"] })) }) }), metadata({ description: "Wait until element specified by text is visible" }), transform((input) => ({
16291
16291
  command: "wait",
16292
16292
  anyText: input.wait.anyText
16293
16293
  })));
16294
- const WaitXpathSchema = pipe(object({ wait: object({ xpath: pipe(XpathSelectorSchema, description("XPath形式で要素を指定"), metadata({ exampleValues: ["//button[@type='submit']"] })) }) }), metadata({ description: "XPathで指定した要素が表示されるまで待機" }), transform((input) => ({
16294
+ const WaitXpathSchema = pipe(object({ wait: object({ xpath: pipe(XpathSelectorSchema, description("Specify element by XPath"), metadata({ exampleValues: ["//button[@type='submit']"] })) }) }), metadata({ description: "Wait until element specified by XPath is visible" }), transform((input) => ({
16295
16295
  command: "wait",
16296
16296
  xpath: input.wait.xpath
16297
16297
  })));
16298
- const WaitLoadSchema = pipe(object({ wait: object({ load: pipe(LoadStateSchema, metadata({ exampleValues: ["networkidle", "domcontentloaded"] })) }) }), metadata({ description: "ページの読み込み状態が指定の状態になるまで待機" }), transform((input) => ({
16298
+ const WaitLoadSchema = pipe(object({ wait: object({ load: pipe(LoadStateSchema, metadata({ exampleValues: ["networkidle", "domcontentloaded"] })) }) }), metadata({ description: "Wait until page reaches specified load state" }), transform((input) => ({
16299
16299
  command: "wait",
16300
16300
  load: input.wait.load
16301
16301
  })));
16302
- const WaitUrlSchema = pipe(object({ wait: object({ url: pipe(string(), description("待機するURL(部分一致)"), metadata({ exampleValues: ["https://example.com", "/dashboard"] })) }) }), metadata({ description: "URLが指定の文字列を含むまで待機" }), transform((input) => ({
16302
+ const WaitUrlSchema = pipe(object({ wait: object({ url: pipe(string(), description("URL to wait for (partial match)"), metadata({ exampleValues: ["https://example.com", "/dashboard"] })) }) }), metadata({ description: "Wait until URL contains specified string" }), transform((input) => ({
16303
16303
  command: "wait",
16304
16304
  url: input.wait.url
16305
16305
  })));
16306
- const WaitFnSchema = pipe(object({ wait: object({ fn: pipe(JsExpressionSchema, description("待機条件の関数"), metadata({ exampleValues: ["() => document.readyState === \"complete\""] })) }) }), metadata({ description: "関数が真を返すまで待機" }), transform((input) => ({
16306
+ const WaitFnSchema = pipe(object({ wait: object({ fn: pipe(JsExpressionSchema, description("Wait condition function"), metadata({ exampleValues: ["() => document.readyState === \"complete\""] })) }) }), metadata({ description: "Wait until function returns true" }), transform((input) => ({
16307
16307
  command: "wait",
16308
16308
  fn: input.wait.fn
16309
16309
  })));
@@ -16323,7 +16323,7 @@ const WaitYamlSchema = pipe(union([
16323
16323
  WaitLoadSchema,
16324
16324
  WaitUrlSchema,
16325
16325
  WaitFnSchema
16326
- ]), description("指定の条件まで待機する"), metadata({ category: "待機" }));
16326
+ ]), description("指定の条件まで待機する"), metadata({ category: "Wait" }));
16327
16327
  /**
16328
16328
  * Assert系コマンドスキーマ定義
16329
16329
  *
@@ -16357,7 +16357,7 @@ const WaitYamlSchema = pipe(union([
16357
16357
  * 文字列を直接指定した場合、全要素をテキスト検索として解釈する。
16358
16358
  * AnyTextSelectorとしてBranded Type化される。
16359
16359
  */
16360
- const AssertVisibleShorthandSchema = pipe(object({ assertVisible: pipe(AnyTextSelectorSchema, metadata({ exampleValues: ["ログインボタン", "送信完了"] })) }), metadata({ description: "テキストで要素を指定して表示を検証" }), transform((input) => ({
16360
+ const AssertVisibleShorthandSchema = pipe(object({ assertVisible: pipe(AnyTextSelectorSchema, metadata({ exampleValues: ["Login button", "Submit completed"] })) }), metadata({ description: "テキストで要素を指定して表示を検証" }), transform((input) => ({
16361
16361
  command: "assertVisible",
16362
16362
  anyText: input.assertVisible
16363
16363
  })));
@@ -16385,7 +16385,7 @@ const AssertVisibleDetailedSchema = pipe(object({ assertVisible: AnySelectorSpec
16385
16385
  * JSON Schema生成には typeMode: 'input' を使用し、
16386
16386
  * このRuntime版スキーマから入力形式のJSON Schemaを生成する。
16387
16387
  */
16388
- const AssertVisibleYamlSchema = pipe(union([AssertVisibleShorthandSchema, AssertVisibleDetailedSchema]), description("要素が表示されていることを検証する"), metadata({ category: "検証" }));
16388
+ const AssertVisibleYamlSchema = pipe(union([AssertVisibleShorthandSchema, AssertVisibleDetailedSchema]), description("要素が表示されていることを検証する"), metadata({ category: "Assertion" }));
16389
16389
  /**
16390
16390
  * 簡略形式スキーマ
16391
16391
  *
@@ -16393,7 +16393,7 @@ const AssertVisibleYamlSchema = pipe(union([AssertVisibleShorthandSchema, Assert
16393
16393
  * 文字列を直接指定した場合、全要素をテキスト検索として解釈する。
16394
16394
  * AnyTextSelectorとしてBranded Type化される。
16395
16395
  */
16396
- const AssertNotVisibleShorthandSchema = pipe(object({ assertNotVisible: pipe(AnyTextSelectorSchema, metadata({ exampleValues: ["エラーメッセージ", "非表示要素"] })) }), metadata({ description: "テキストで要素を指定して非表示を検証" }), transform((input) => ({
16396
+ const AssertNotVisibleShorthandSchema = pipe(object({ assertNotVisible: pipe(AnyTextSelectorSchema, metadata({ exampleValues: ["Error message", "Hidden element"] })) }), metadata({ description: "テキストで要素を指定して非表示を検証" }), transform((input) => ({
16397
16397
  command: "assertNotVisible",
16398
16398
  anyText: input.assertNotVisible
16399
16399
  })));
@@ -16421,7 +16421,7 @@ const AssertNotVisibleDetailedSchema = pipe(object({ assertNotVisible: AnySelect
16421
16421
  * JSON Schema生成には typeMode: 'input' を使用し、
16422
16422
  * このRuntime版スキーマから入力形式のJSON Schemaを生成する。
16423
16423
  */
16424
- const AssertNotVisibleYamlSchema = pipe(union([AssertNotVisibleShorthandSchema, AssertNotVisibleDetailedSchema]), description("要素が非表示であることを検証する"), metadata({ category: "検証" }));
16424
+ const AssertNotVisibleYamlSchema = pipe(union([AssertNotVisibleShorthandSchema, AssertNotVisibleDetailedSchema]), description("要素が非表示であることを検証する"), metadata({ category: "Assertion" }));
16425
16425
  /**
16426
16426
  * 簡略形式スキーマ
16427
16427
  *
@@ -16429,7 +16429,7 @@ const AssertNotVisibleYamlSchema = pipe(union([AssertNotVisibleShorthandSchema,
16429
16429
  * 文字列を直接指定した場合、インタラクティブ要素のテキスト検索として解釈する。
16430
16430
  * InteractableTextSelectorとしてBranded Type化される。
16431
16431
  */
16432
- const AssertEnabledShorthandSchema = pipe(object({ assertEnabled: pipe(InteractableTextSelectorSchema, metadata({ exampleValues: ["送信ボタン", "入力フィールド"] })) }), metadata({ description: "テキストで要素を指定して有効を検証" }), transform((input) => ({
16432
+ const AssertEnabledShorthandSchema = pipe(object({ assertEnabled: pipe(InteractableTextSelectorSchema, metadata({ exampleValues: ["Submit button", "Input field"] })) }), metadata({ description: "テキストで要素を指定して有効を検証" }), transform((input) => ({
16433
16433
  command: "assertEnabled",
16434
16434
  interactableText: input.assertEnabled
16435
16435
  })));
@@ -16457,7 +16457,7 @@ const AssertEnabledDetailedSchema = pipe(object({ assertEnabled: InteractableSel
16457
16457
  * JSON Schema生成には typeMode: 'input' を使用し、
16458
16458
  * このRuntime版スキーマから入力形式のJSON Schemaを生成する。
16459
16459
  */
16460
- const AssertEnabledYamlSchema = pipe(union([AssertEnabledShorthandSchema, AssertEnabledDetailedSchema]), description("要素が有効であることを検証する"), metadata({ category: "検証" }));
16460
+ const AssertEnabledYamlSchema = pipe(union([AssertEnabledShorthandSchema, AssertEnabledDetailedSchema]), description("要素が有効であることを検証する"), metadata({ category: "Assertion" }));
16461
16461
  /**
16462
16462
  * 簡略形式スキーマ
16463
16463
  *
@@ -16466,7 +16466,7 @@ const AssertEnabledYamlSchema = pipe(union([AssertEnabledShorthandSchema, Assert
16466
16466
  * checkedフィールドは省略されるため、UseDefaultになる。
16467
16467
  * InteractableTextSelectorとしてBranded Type化される。
16468
16468
  */
16469
- const AssertCheckedShorthandSchema = pipe(object({ assertChecked: pipe(InteractableTextSelectorSchema, metadata({ exampleValues: ["利用規約に同意", "メール通知を有効化"] })) }), metadata({ description: "テキストで要素を指定してチェック状態を検証" }), transform((input) => ({
16469
+ const AssertCheckedShorthandSchema = pipe(object({ assertChecked: pipe(InteractableTextSelectorSchema, metadata({ exampleValues: ["Agree to terms", "Enable email notifications"] })) }), metadata({ description: "テキストで要素を指定してチェック状態を検証" }), transform((input) => ({
16470
16470
  command: "assertChecked",
16471
16471
  interactableText: input.assertChecked,
16472
16472
  checked: UseDefault
@@ -16490,7 +16490,7 @@ const AssertCheckedCssSchema = pipe(object({ assertChecked: object({
16490
16490
  * assertChecked: { interactableText: "...", checked?: boolean }
16491
16491
  */
16492
16492
  const AssertCheckedInteractableTextSchema = pipe(object({ assertChecked: object({
16493
- interactableText: pipe(InteractableTextSelectorSchema, description("インタラクティブ要素をテキスト内容で検索"), metadata({ exampleValues: ["利用規約に同意", "メール通知を有効化"] })),
16493
+ interactableText: pipe(InteractableTextSelectorSchema, description("インタラクティブ要素をテキスト内容で検索"), metadata({ exampleValues: ["Agree to terms", "Enable email notifications"] })),
16494
16494
  checked: CheckedFieldSchema
16495
16495
  }) }), metadata({ description: "テキストで要素を指定してチェック状態を検証" }), transform((input) => ({
16496
16496
  command: "assertChecked",
@@ -16528,7 +16528,7 @@ const AssertCheckedDetailedSchema = union([
16528
16528
  * JSON Schema生成には typeMode: 'input' を使用し、
16529
16529
  * このRuntime版スキーマから入力形式のJSON Schemaを生成する。
16530
16530
  */
16531
- const AssertCheckedYamlSchema = pipe(union([AssertCheckedShorthandSchema, AssertCheckedDetailedSchema]), description("チェックボックス/ラジオボタンの状態を検証する"), metadata({ category: "検証" }));
16531
+ const AssertCheckedYamlSchema = pipe(union([AssertCheckedShorthandSchema, AssertCheckedDetailedSchema]), description("チェックボックス/ラジオボタンの状態を検証する"), metadata({ category: "Assertion" }));
16532
16532
  /**
16533
16533
  * 入力系コマンドスキーマ定義
16534
16534
  *
@@ -16552,14 +16552,14 @@ const AssertCheckedYamlSchema = pipe(union([AssertCheckedShorthandSchema, Assert
16552
16552
  /**
16553
16553
  * valueフィールドスキーマ(type用)
16554
16554
  */
16555
- const TypeValueSchema = pipe(string(), description("入力するテキスト"), metadata({ exampleValues: ["ユーザー名", "test@example.com"] }));
16555
+ const TypeValueSchema = pipe(string(), description("Text to input"), metadata({ exampleValues: ["Username", "test@example.com"] }));
16556
16556
  /**
16557
16557
  * type: { css: "...", value: "..." }
16558
16558
  */
16559
16559
  const TypeCssSchema = pipe(object({ type: object({
16560
- css: pipe(CssSelectorSchema, description("CSSセレクタ形式で要素を指定"), metadata({ exampleValues: ["#username", ".email-input"] })),
16560
+ css: pipe(CssSelectorSchema, description("Specify element by CSS selector"), metadata({ exampleValues: ["#username", ".email-input"] })),
16561
16561
  value: TypeValueSchema
16562
- }) }), metadata({ description: "CSSセレクタで要素を指定して入力" }), transform((input) => ({
16562
+ }) }), metadata({ description: "Input to element specified by CSS selector" }), transform((input) => ({
16563
16563
  command: "type",
16564
16564
  css: input.type.css,
16565
16565
  value: input.type.value
@@ -16568,9 +16568,9 @@ const TypeCssSchema = pipe(object({ type: object({
16568
16568
  * type: { interactableText: "...", value: "..." }
16569
16569
  */
16570
16570
  const TypeInteractableTextSchema = pipe(object({ type: object({
16571
- interactableText: pipe(InteractableTextSelectorSchema, description("インタラクティブ要素をテキスト内容で検索"), metadata({ exampleValues: ["メールアドレス", "ユーザー名"] })),
16571
+ interactableText: pipe(InteractableTextSelectorSchema, description("Search for interactive elements by text content"), metadata({ exampleValues: ["Email address", "Username"] })),
16572
16572
  value: TypeValueSchema
16573
- }) }), metadata({ description: "テキストで要素を指定して入力" }), transform((input) => ({
16573
+ }) }), metadata({ description: "Input to element specified by text" }), transform((input) => ({
16574
16574
  command: "type",
16575
16575
  interactableText: input.type.interactableText,
16576
16576
  value: input.type.value
@@ -16579,9 +16579,9 @@ const TypeInteractableTextSchema = pipe(object({ type: object({
16579
16579
  * type: { xpath: "...", value: "..." }
16580
16580
  */
16581
16581
  const TypeXpathSchema = pipe(object({ type: object({
16582
- xpath: pipe(XpathSelectorSchema, description("XPath形式で要素を指定"), metadata({ exampleValues: ["//input[@name='email']"] })),
16582
+ xpath: pipe(XpathSelectorSchema, description("Specify element by XPath"), metadata({ exampleValues: ["//input[@name='email']"] })),
16583
16583
  value: TypeValueSchema
16584
- }) }), metadata({ description: "XPathで要素を指定して入力" }), transform((input) => ({
16584
+ }) }), metadata({ description: "Input to element specified by XPath" }), transform((input) => ({
16585
16585
  command: "type",
16586
16586
  xpath: input.type.xpath,
16587
16587
  value: input.type.value
@@ -16598,18 +16598,18 @@ const TypeYamlSchema = pipe(union([
16598
16598
  TypeCssSchema,
16599
16599
  TypeInteractableTextSchema,
16600
16600
  TypeXpathSchema
16601
- ]), description("要素にテキストを入力する(既存テキストに追加)"), metadata({ category: "入力" }));
16601
+ ]), description("要素にテキストを入力する(既存テキストに追加)"), metadata({ category: "Input" }));
16602
16602
  /**
16603
16603
  * valueフィールドスキーマ(fill用)
16604
16604
  */
16605
- const FillValueSchema = pipe(string(), description("入力するテキスト(既存テキストをクリアして入力)"), metadata({ exampleValues: ["新しいユーザー名", "new@example.com"] }));
16605
+ const FillValueSchema = pipe(string(), description("Text to input (clears existing text)"), metadata({ exampleValues: ["New username", "new@example.com"] }));
16606
16606
  /**
16607
16607
  * fill: { css: "...", value: "..." }
16608
16608
  */
16609
16609
  const FillCssSchema = pipe(object({ fill: object({
16610
- css: pipe(CssSelectorSchema, description("CSSセレクタ形式で要素を指定"), metadata({ exampleValues: ["#email", ".password-input"] })),
16610
+ css: pipe(CssSelectorSchema, description("Specify element by CSS selector"), metadata({ exampleValues: ["#email", ".password-input"] })),
16611
16611
  value: FillValueSchema
16612
- }) }), metadata({ description: "CSSセレクタで要素を指定して入力" }), transform((input) => ({
16612
+ }) }), metadata({ description: "Fill element specified by CSS selector" }), transform((input) => ({
16613
16613
  command: "fill",
16614
16614
  css: input.fill.css,
16615
16615
  value: input.fill.value
@@ -16618,9 +16618,9 @@ const FillCssSchema = pipe(object({ fill: object({
16618
16618
  * fill: { interactableText: "...", value: "..." }
16619
16619
  */
16620
16620
  const FillInteractableTextSchema = pipe(object({ fill: object({
16621
- interactableText: pipe(InteractableTextSelectorSchema, description("インタラクティブ要素をテキスト内容で検索"), metadata({ exampleValues: ["メールアドレス", "パスワード"] })),
16621
+ interactableText: pipe(InteractableTextSelectorSchema, description("Search for interactive elements by text content"), metadata({ exampleValues: ["Email address", "Password"] })),
16622
16622
  value: FillValueSchema
16623
- }) }), metadata({ description: "テキストで要素を指定して入力" }), transform((input) => ({
16623
+ }) }), metadata({ description: "Fill element specified by text" }), transform((input) => ({
16624
16624
  command: "fill",
16625
16625
  interactableText: input.fill.interactableText,
16626
16626
  value: input.fill.value
@@ -16629,9 +16629,9 @@ const FillInteractableTextSchema = pipe(object({ fill: object({
16629
16629
  * fill: { xpath: "...", value: "..." }
16630
16630
  */
16631
16631
  const FillXpathSchema = pipe(object({ fill: object({
16632
- xpath: pipe(XpathSelectorSchema, description("XPath形式で要素を指定"), metadata({ exampleValues: ["//input[@type='password']"] })),
16632
+ xpath: pipe(XpathSelectorSchema, description("Specify element by XPath"), metadata({ exampleValues: ["//input[@type='password']"] })),
16633
16633
  value: FillValueSchema
16634
- }) }), metadata({ description: "XPathで要素を指定して入力" }), transform((input) => ({
16634
+ }) }), metadata({ description: "Fill element specified by XPath" }), transform((input) => ({
16635
16635
  command: "fill",
16636
16636
  xpath: input.fill.xpath,
16637
16637
  value: input.fill.value
@@ -16648,18 +16648,18 @@ const FillYamlSchema = pipe(union([
16648
16648
  FillCssSchema,
16649
16649
  FillInteractableTextSchema,
16650
16650
  FillXpathSchema
16651
- ]), description("要素にテキストを入力する(既存テキストをクリアして入力)"), metadata({ category: "入力" }));
16651
+ ]), description("要素にテキストを入力する(既存テキストをクリアして入力)"), metadata({ category: "Input" }));
16652
16652
  /**
16653
16653
  * valueフィールドスキーマ(select用)
16654
16654
  */
16655
- const SelectValueSchema = pipe(string(), description("選択するオプションの値"), metadata({ exampleValues: ["japan", "option1"] }));
16655
+ const SelectValueSchema = pipe(string(), description("Option value to select"), metadata({ exampleValues: ["japan", "option1"] }));
16656
16656
  /**
16657
16657
  * select: { css: "...", value: "..." }
16658
16658
  */
16659
16659
  const SelectCssSchema = pipe(object({ select: object({
16660
- css: pipe(CssSelectorSchema, description("CSSセレクタ形式で要素を指定"), metadata({ exampleValues: ["#country", ".language-select"] })),
16660
+ css: pipe(CssSelectorSchema, description("Specify element by CSS selector"), metadata({ exampleValues: ["#country", ".language-select"] })),
16661
16661
  value: SelectValueSchema
16662
- }) }), metadata({ description: "CSSセレクタで要素を指定して選択" }), transform((input) => ({
16662
+ }) }), metadata({ description: "Select option from element specified by CSS selector" }), transform((input) => ({
16663
16663
  command: "select",
16664
16664
  css: input.select.css,
16665
16665
  value: input.select.value
@@ -16668,9 +16668,9 @@ const SelectCssSchema = pipe(object({ select: object({
16668
16668
  * select: { interactableText: "...", value: "..." }
16669
16669
  */
16670
16670
  const SelectInteractableTextSchema = pipe(object({ select: object({
16671
- interactableText: pipe(InteractableTextSelectorSchema, description("インタラクティブ要素をテキスト内容で検索"), metadata({ exampleValues: ["国を選択", "言語"] })),
16671
+ interactableText: pipe(InteractableTextSelectorSchema, description("Search for interactive elements by text content"), metadata({ exampleValues: ["Select country", "Language"] })),
16672
16672
  value: SelectValueSchema
16673
- }) }), metadata({ description: "テキストで要素を指定して選択" }), transform((input) => ({
16673
+ }) }), metadata({ description: "Select option from element specified by text" }), transform((input) => ({
16674
16674
  command: "select",
16675
16675
  interactableText: input.select.interactableText,
16676
16676
  value: input.select.value
@@ -16679,9 +16679,9 @@ const SelectInteractableTextSchema = pipe(object({ select: object({
16679
16679
  * select: { xpath: "...", value: "..." }
16680
16680
  */
16681
16681
  const SelectXpathSchema = pipe(object({ select: object({
16682
- xpath: pipe(XpathSelectorSchema, description("XPath形式で要素を指定"), metadata({ exampleValues: ["//select[@name='country']"] })),
16682
+ xpath: pipe(XpathSelectorSchema, description("Specify element by XPath"), metadata({ exampleValues: ["//select[@name='country']"] })),
16683
16683
  value: SelectValueSchema
16684
- }) }), metadata({ description: "XPathで要素を指定して選択" }), transform((input) => ({
16684
+ }) }), metadata({ description: "Select option from element specified by XPath" }), transform((input) => ({
16685
16685
  command: "select",
16686
16686
  xpath: input.select.xpath,
16687
16687
  value: input.select.value
@@ -16698,7 +16698,7 @@ const SelectYamlSchema = pipe(union([
16698
16698
  SelectCssSchema,
16699
16699
  SelectInteractableTextSchema,
16700
16700
  SelectXpathSchema
16701
- ]), description("セレクトボックスからオプションを選択する"), metadata({ category: "入力" }));
16701
+ ]), description("セレクトボックスからオプションを選択する"), metadata({ category: "Input" }));
16702
16702
  /**
16703
16703
  * シンプルコマンドスキーマ定義
16704
16704
  *
@@ -16725,7 +16725,7 @@ const SelectYamlSchema = pipe(union([
16725
16725
  *
16726
16726
  * URLを開く。Branded TypeのUrlとして型安全に変換。
16727
16727
  */
16728
- const OpenYamlSchema = pipe(object({ open: pipe(UrlSchema, description("開くURL"), metadata({ exampleValues: ["https://example.com", "https://google.com"] })) }), description("URLを開く"), metadata({ category: "ナビゲーション" }), transform((input) => ({
16728
+ const OpenYamlSchema = pipe(object({ open: pipe(UrlSchema, description("URL to open"), metadata({ exampleValues: ["https://example.com", "https://google.com"] })) }), description("URLを開く"), metadata({ category: "Navigation" }), transform((input) => ({
16729
16729
  command: "open",
16730
16730
  url: input.open
16731
16731
  })));
@@ -16736,12 +16736,12 @@ const OpenYamlSchema = pipe(object({ open: pipe(UrlSchema, description("開くUR
16736
16736
  *
16737
16737
  * キーを押す。Branded TypeのKeyboardKeyとして型安全に変換。
16738
16738
  */
16739
- const PressYamlSchema = pipe(object({ press: pipe(KeyboardKeySchema, description("押すキー"), metadata({ exampleValues: [
16739
+ const PressYamlSchema = pipe(object({ press: pipe(KeyboardKeySchema, description("Key to press"), metadata({ exampleValues: [
16740
16740
  "Enter",
16741
16741
  "Escape",
16742
16742
  "Tab",
16743
16743
  "ArrowDown"
16744
- ] })) }), description("キーを押す"), metadata({ category: "インタラクション" }), transform((input) => ({
16744
+ ] })) }), description("キーを押す"), metadata({ category: "Interaction" }), transform((input) => ({
16745
16745
  command: "press",
16746
16746
  key: input.press
16747
16747
  })));
@@ -16753,7 +16753,7 @@ const PressYamlSchema = pipe(object({ press: pipe(KeyboardKeySchema, description
16753
16753
  * パスのみを指定した場合、fullオプションはデフォルト値を使用。
16754
16754
  * Branded TypeのFilePathとして型安全に変換。
16755
16755
  */
16756
- const ScreenshotShorthandSchema = pipe(object({ screenshot: pipe(FilePathSchema, description("スクリーンショットの保存パス"), metadata({ exampleValues: ["./screenshot.png", "./output/screen.png"] })) }), transform((input) => ({
16756
+ const ScreenshotShorthandSchema = pipe(object({ screenshot: pipe(FilePathSchema, description("Screenshot save path"), metadata({ exampleValues: ["./screenshot.png", "./output/screen.png"] })) }), transform((input) => ({
16757
16757
  command: "screenshot",
16758
16758
  path: input.screenshot,
16759
16759
  full: UseDefault
@@ -16767,8 +16767,8 @@ const ScreenshotShorthandSchema = pipe(object({ screenshot: pipe(FilePathSchema,
16767
16767
  * Branded TypeのFilePathとして型安全に変換。
16768
16768
  */
16769
16769
  const ScreenshotDetailedSchema = pipe(object({ screenshot: object({
16770
- path: pipe(FilePathSchema, description("スクリーンショットの保存パス"), metadata({ exampleValues: ["./screenshot.png", "./output/screen.png"] })),
16771
- full: optional(pipe(boolean(), description("フルページスクリーンショットを取得するか"), metadata({ exampleValues: [true, false] })))
16770
+ path: pipe(FilePathSchema, description("Screenshot save path"), metadata({ exampleValues: ["./screenshot.png", "./output/screen.png"] })),
16771
+ full: optional(pipe(boolean(), description("Whether to take a full-page screenshot"), metadata({ exampleValues: [true, false] })))
16772
16772
  }) }), transform((input) => ({
16773
16773
  command: "screenshot",
16774
16774
  path: input.screenshot.path,
@@ -16783,7 +16783,7 @@ const ScreenshotDetailedSchema = pipe(object({ screenshot: object({
16783
16783
  *
16784
16784
  * fullオプションが指定されない場合、UseDefaultシンボルを使用。
16785
16785
  */
16786
- const ScreenshotYamlSchema = pipe(union([ScreenshotShorthandSchema, ScreenshotDetailedSchema]), description("スクリーンショットを取得する"), metadata({ category: "キャプチャ" }));
16786
+ const ScreenshotYamlSchema = pipe(union([ScreenshotShorthandSchema, ScreenshotDetailedSchema]), description("スクリーンショットを取得する"), metadata({ category: "Capture" }));
16787
16787
  /**
16788
16788
  * EvalコマンドYAMLスキーマ(Single Source of Truth)
16789
16789
  *
@@ -16791,7 +16791,7 @@ const ScreenshotYamlSchema = pipe(union([ScreenshotShorthandSchema, ScreenshotDe
16791
16791
  *
16792
16792
  * JavaScriptを実行する。Branded TypeのJsExpressionとして型安全に変換。
16793
16793
  */
16794
- const EvalYamlSchema = pipe(object({ eval: pipe(JsExpressionSchema, description("実行するJavaScriptコード"), metadata({ exampleValues: ["console.log(\"hello\")", "document.title"] })) }), description("JavaScriptを実行する"), metadata({ category: "その他" }), transform((input) => ({
16794
+ const EvalYamlSchema = pipe(object({ eval: pipe(JsExpressionSchema, description("JavaScript code to execute"), metadata({ exampleValues: ["console.log(\"hello\")", "document.title"] })) }), description("JavaScriptを実行する"), metadata({ category: "Other" }), transform((input) => ({
16795
16795
  command: "eval",
16796
16796
  script: input.eval
16797
16797
  })));