エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
ここにツイート内容が記載されます https://b.hatena.ne.jp/URLはspanで囲んでください
Twitterで共有ONにすると、次回以降このダイアログを飛ばしてTwitterに遷移します
claude-code sdk を使えば、TypeScirpt/Python コードから claude-code を呼べる。 これを使って、自動... claude-code sdk を使えば、TypeScirpt/Python コードから claude-code を呼べる。 これを使って、自動テスト中に自然言語によるアサーションをするという、(最悪な)アイデアを思いついたのでメモしておく。 // node --test ask-claude.test.ts import { test } from "node:test"; import { query, type Options } from "@anthropic-ai/claude-code"; // claude-code が起動し、prompt が条件を満たしたら MARKER を投げて停止する。 async function assertAI(prompt: string, options: Options = {}): Promise<void> { const MARKE