Skip to content

Instantly share code, notes, and snippets.

View tai2's full-sized avatar
🐢

Taiju Muto tai2

🐢
View GitHub Profile

Research: Appium's supported commands / messages for XCUITestDriver and UIAutomator2Driver, assuming WebdriverIO as the client interface

Context note. The project root /Users/tai2/aco is currently a TypeScript CLI scaffold (commander.js based) with no Appium‑related source yet. The file plan.md is empty. There is therefore no in‑repo implementation to trace; this report is a topical/architectural deep‑dive into the subject requested. It captures the full surface area of commands that flow from a WebdriverIO test through the Appium server into the XCUITest driver (iOS) and UIAutomator2 driver (Android), with attention to the wire format, the legacy/W3C/mobile: triplication, and the practical edge cases. No changes are proposed and nothing is implemented.


1. Purpose

The goal of this research is to understand, at the level of "what bytes go on the wire," the complete catalog of commands and protocol messages that an Appium‑backed mobile‑automation client (specifically Webdriver

import json
import math
SENTINEL = -9999
def calculate_perplexity(
api_response: dict,
sentinel_strategy: str = "skip", # "skip" | "clamp"
clamp_value: float = -100.0,
立川都税事務所
042-523-3171
錦町4-6-3
#!/usr/bin/env bash
set -euo pipefail
usage() {
echo "Usage: $0 -p <prompt> -o <output_file> [-m <model>] [-s <size>]"
echo ""
echo " -p Prompt text (required)"
echo " -o Output filename (required)"
echo " -m Model (default: dall-e-2)"
echo " -s Size (default: 1024x1024)"
@tai2
tai2 / settings.json
Last active April 27, 2026 04:53
Claude Code Audio Notifications
"hooks": {
"Stop": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "afplay /System/Library/Sounds/Glass.aiff"
}
]
あなたはマイクラ英会話教室の「通訳ロボット」です。
子供が日本語で「〇〇ってなんて言うの?」と聞いてきます。
以下のルールで回答してください。
1. **超短く:** 3語〜5語以内の簡単な英語にする。(例:「Would you please...」ではなく「Please give me...」)
2. **カタカナを添える:** 音声で返す際、ゆっくりはっきり発音する。
3. **励ます:** 教えた後に「Go!」や「Say it!」と付け加える。
@tai2
tai2 / a.md
Last active January 18, 2026 01:54
飽きについて

質問

講演などを聴いている時、映画を見ているとき、なんでもいいけど、あらゆる情報受容において、人間は、同じパターンが続くと飽き始めるということが言えると思う。しかし、どのくらい同じパターンが続くと、「飽き」がはじまるんだろう。

回答

とても本質的な問いですね。 結論から言うと、「飽きが始まるまでの長さ」は一つの数値では決まらず、いくつかの層で同時に起きる、というのが現在いちばん妥当な理解です。ただし、研究や実践から見えている目安はあります。

webdriver-test@1.0.0 /Users/tai2/webdriver-test
└─┬ webdriver@9.19.2
  ├─┬ @types/node@20.19.27
  │ └── undici-types@6.21.0
  ├─┬ @types/ws@8.18.1
  │ └── @types/node@20.19.27 deduped
  ├─┬ @wdio/config@9.19.2
  │ ├── @wdio/logger@9.18.0 deduped
  │ ├── @wdio/types@9.19.2 deduped
@tai2
tai2 / a.md
Created June 28, 2025 09:12
経済成長と環境問題

経済成長=浪費という“不可避の因果”ではない

マクロ経済学が「雇用の安定には成長が必要」と説くのは、生産性向上と人口増を吸収するために需要を拡大するという経験則に基づきます。ところが 成長が即‐大量消費・大量廃棄を伴う必然性はない、ということも近年の実証研究と政策事例から分かってきました。ポイントは 「デカップリング(分離)」—GDP を伸ばしつつ環境負荷を下げることが可能か という問いです。


1 | 何がすでに起きているか──部分的な「絶対デカップリング」の実績

指標 代表例 実績
@tai2
tai2 / react-native-high-priority-events.md
Last active June 22, 2025 08:34
React Native high priority events (investigation result by Devin)

Based on my analysis of the React Native source code, I can provide you with concrete examples of high priority events that can run the render pipeline in the UI thread.

High Priority Events in React Native

From examining the React Native source code, I found that React Native uses a priority-based scheduling system with the following hierarchy (defined in <ref_file file="/home/ubuntu/repos/react-native/packages/react-native/ReactCommon/react/renderer/runtimescheduler/SchedulerPriorityUtils.h" />):

Priority Levels:

  1. ImmediatePriority (value 1, timeout 0ms) - Highest priority
  2. UserBlockingPriority (value 2, timeout 250ms) - Second highest priority
  3. NormalPriority (value 3, timeout 5s)