diff --git a/docs-site/src/content/docs/index.mdx b/docs-site/src/content/docs/index.mdx index 2f80d51..18f4821 100644 --- a/docs-site/src/content/docs/index.mdx +++ b/docs-site/src/content/docs/index.mdx @@ -5,14 +5,14 @@ description: LLM imports that feel like a magic trick. import { Code } from 'astro:components'; -
-
-
+
+
+
JIT codegen, import-shaped
-

Write the import you wish existed.

+

Write the import you wish existed.

-
+
-
+
-

+

import wishful turns “someone should really write this helper” into cached, type-aware Python modules — with safety checks, offline-friendly stubs, and a dash of mischief.

-
-
LLM-generated modules with real files on disk
-
Static (cached) and dynamic (runtime-aware) imports
-
Type- and context-aware prompts
+
+
LLM-generated modules with real files on disk
+
Static (cached) and dynamic (runtime-aware) imports
+
Type- and context-aware prompts
-

+

Prefer reading code? Start with the{' '} README and come back here for the deeper “how it works” tour. @@ -49,29 +49,29 @@ print(emails) # prints ["team@example.com","sales@demo.dev"] probably...`} ## Moments that make this “click” -

-
+
+

Imports as intent

You describe the behavior in comments, write the import you wish you had, and let the model do the boring glue work.

-
+

Real files you can edit

Generated modules land in .wishful/ as plain .py files. If the LLM gets close-but-not-perfect, tweak it once and you're done.

-
+

Types that steer the model

Register dataclasses, Pydantic models, or TypedDicts with @wishful.type so the generated code returns exactly the shapes you expect.

-
+

Context-aware by default

wishful forwards nearby comments and call sites into the prompt, so diff --git a/pyproject.toml b/pyproject.toml index 2139f23..f97be41 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "wishful" -version = "0.2.1" +version = "0.2.2" description = "Wishful thinking for Python" readme = "README.md" authors = [