できたもの

Next.js 視点で leptos のチュートリアル https://book.leptos.dev/01_introduction.html でなぞって、評価して。
できたもの
Next.js 視点で leptos のチュートリアル https://book.leptos.dev/01_introduction.html でなぞって、評価して。
#!/usr/bin/env -S deno run -A | |
// Install deno install -Afg blog.ts | |
// edit your own zenn sync dir | |
const homeDir = Deno.env.get("HOME"); | |
if (!homeDir) { | |
$.log("HOME環境変数が設定されていません"); | |
Deno.exit(1); | |
} |
cloudflare containers の 使い方を Claude Code にまとめさせた
https://github.com/yusukebe/image-resize-containers/tree/main
/** | |
* My Portable RAG | |
* $ pnpm add sqlite-vec @ai-sdk/google ai | |
* SQLite Vector Search + Google AI Embeddings | |
* | |
* Required environment variables: | |
* GOOGLE_GENERATIVE_AI_API_KEY=your-api-key | |
* | |
* Usage: | |
* # Index text content |
This document contains essential MoonBit knowledge that LLMs cannot know without external environment access. Last updated: December 2024.
Current Status: Beta (as of December 2024)
import React, { useState } from "react"; | |
import { render } from "ink-testing-library"; | |
import { Text, Box, useInput, useApp } from "ink"; | |
import { describe, it, expect, beforeAll } from "vitest"; | |
// テスト環境設定 | |
beforeAll(() => { | |
process.stdin.isTTY = true; | |
process.stdout.isTTY = true; | |
}); |
// node --test ask-claude.test.ts | |
import { test } from "node:test"; | |
import { query, type Options } from "@anthropic-ai/claude-code"; | |
async function assertAI(prompt: string, options: Options = {}): Promise<void> { | |
const MARKER = "**ASSERT_OK**"; | |
const abortController = new AbortController(); | |
const finalPrompt = `Assert user query. Return ${MARKER} if it is true. \n\n${prompt}`; | |
for await (const message of query({ | |
prompt: finalPrompt, |
// node --test ask-claude.test.ts | |
import { test } from "node:test"; | |
import { query } from "@anthropic-ai/claude-code"; | |
test("Ask", async () => { | |
const EXPECTED = "paris"; | |
const abortController = new AbortController(); | |
for await (const message of query({ | |
prompt: "What is the capital of France?", | |
options: { maxTurns: 1, abortController }, |