@sudobility/screenwriter_types 0.1.3 → 0.1.5

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/CLAUDE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # screenwriter_types
2
2
 
3
- Shared TypeScript types and Zod v4 schemas for Fadewright (frontend and backend). Platform-free ESM: no DOM, no Node built-ins, no clock reads. Consumers import from the package root only (plus `/test` for fixtures).
3
+ Shared TypeScript types and Zod v4 schemas for ViaInk (frontend and backend). Platform-free ESM: no DOM, no Node built-ins, no clock reads. Consumers import from the package root only (plus `/test` for fixtures).
4
4
 
5
5
  ## Stack
6
6
 
@@ -48,3 +48,7 @@ bun run lint
48
48
  ## Related
49
49
 
50
50
  `writing_core`, `screenwriter_api`, `screenwriter_client`, `screenwriter_lib`, `screenwriter_plans`
51
+
52
+ ## Synchronous AI actions (`src/ai/actions.ts`)
53
+
54
+ Request, model (what the ShapeShyft endpoint returns: every field required, nullable never optional, objects closed) and result Zod schemas for `POST /ai/{action}` in `screenwriter_api`: `generate-character-skeleton`, `generate-script`, `polish-character-dialogue`, `polish-scene`, plus `AI_ACTION_LIMITS`, `CHARACTER_SKELETON_KEYS` (the flat skeleton the app's `CharacterSkeletonEditor` edits: `age` required, ~34 optional strings across Physical/Social/Psychological), the `/ai/{action}` rows in `API_ROUTES` (`U`), and `AiActionResponse`. `AI_ACTION_MODEL_SCHEMAS` feeds `bun run ai:schemas` in the API, which is what gets stored on the ShapeShyft endpoints, so changing a model schema means updating those endpoints too.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @sudobility/screenwriter_types
2
2
 
3
- Shared TypeScript types and Zod schemas for the Fadewright screenwriting app, used by both the frontend and the backend.
3
+ Shared TypeScript types and Zod schemas for the ViaInk screenwriting app, used by both the frontend and the backend.
4
4
 
5
5
  ## Contents
6
6