Commit Graph

94 Commits

Author SHA1 Message Date
JenkenB ae014ac881 Switch to VectorEngine gpt-image-2 and edits
Replace uses of the legacy `gpt-image-2-all` model with `gpt-image-2` and standardize image workflows: no-reference generation uses POST /v1/images/generations, any-reference flows use POST /v1/images/edits with multipart `image` parts. Update SKILLs, generation scripts, decision logs, and docs to reflect the contract change and edits-vs-generations guidance. Apply corresponding changes across backend (api-server match3d/puzzle modules, openai image adapter, mappers, telemetry, spacetime client/module), frontend components and services (Match3D, Puzzle, CreativeImageInputPanel, runtime shells), and add new spritesheet/parser files and tests. Also add media/logo.png. These changes align repository code and documentation with the VectorEngine image API contract and update generation/upload handling (green-screen -> alpha processing, spritesheet handling, and related tests).
2026-05-22 03:06:41 +08:00
kdletters 5834a99107 refactor(api-server): narrow puzzle state surface 2026-05-21 18:55:25 +08:00
JenkenB 3931442249 Enforce Genarrative play-type SOP and update docs
Rewrite Genarrative play-type integration guidance across .codex and .hermes to define a platform-level SOP: default to form/image workbench, unify single-image asset slots (CreativeImageInputPanel), standardize series-material sheet->cut->transparent->OSS pipeline, and forbid copying legacy chat/agent workflows as the default. Add decision-log entry freezing the SOP and a pitfalls note warning against direct reuse of old play tools. Update CONTEXT.md and docs/README.md, add a new PRD file, and apply related small server-side changes (module-auth, spacetime-client mappers and runtime) to align back-end code with the new contracts and flows.
2026-05-20 12:12:00 +08:00
JenkenB 7b37271f17 Puzzle: support history images & partial generation
Allow history-generated image paths to be submitted where Data URLs were previously required and avoid treating partial/result-page generations as blocking the whole draft. Backend: resolve history /generated-* references via resolve_puzzle_reference_image_as_data_url and convert to PuzzleDownloadedImage; add PuzzleDownloadedImage::from_resolved_reference_image; extend draft handling to apply generated level metadata (auto-naming) and normalize generation_status to treat levels with images as ready. API: add shouldAutoNameLevel to action contracts and use it to request/refine generated level names. Spacetime/module and mappers: normalize completed level statuses when saving/reading so result-page background or per-level generation doesn't mask completed drafts. Frontend: expose resolver helpers, only mark a work as generating when no usable cover or ready level exists, keep level controls enabled during UI-background regeneration, and add tests covering history-image submission, auto-naming, and UI-background/partial-generation behaviors.
2026-05-19 10:02:13 +08:00
JenkenB d1adfa3406 Improve local auth env handling and fallbacks
Allow local env files to reliably override authentication feature flags (SMS/WeChat) by whitelisting keys in scripts/dev-utils.mjs and adding a unit test. Add SMS checks to scripts/check-api-server-env.mjs. Make server config.parse_bool tolerant of shell-wrapped quoted values (e.g. '"true"') and add tests so SMS_AUTH_ENABLED is parsed correctly when shells supply quotes. Update docs to clarify SMS env behaviour, restart requirements, and add guidance + a CSS fallback for old mobile browsers (QQ/X5) so public cover images render even when aspect-ratio is unsupported. Also include related frontend test and component adjustments and add puzzle onboarding handlers/endpoints in server-rs/crates/api-server/src/puzzle.rs.
2026-05-18 23:13:49 +08:00
kdletters 269f35cecf refactor: split large modules and normalize rust layout 2026-05-18 19:40:14 +08:00
JenkenB a45e358e83 Add generationStatus and match3d/runtime fixes
Introduce persistent generationStatus to work summaries (puzzle & match3d) and propagate generation recovery rules across docs and frontend/backends so "generating" is restored from server-side work summary rather than ephemeral front-end notices. Update API server image/asset handling (improve match3d material sheet green/alpha decontamination and promote generatedItemAssets background fields) and add runtime improvements: alpha-based hotspot hit-testing, tray insertion/three-match animation behavior, and session re-read on client-side VectorEngine timeouts/lock-screen interruptions. Many docs, tests and related frontend modules updated/added to reflect these contract and behavior changes.
2026-05-16 22:59:02 +08:00
JenkenB bb60ca91ef Match3D & Puzzle: runtime UI, assets, drag fix
Backend: stop treating background music as a required draft asset and remove auto-submit/plan for background music; load persisted generated UI/assets into Match3D agent session responses (added helpers to resolve profile id and fetch existing generated assets). Frontend: make Match3D result preview reuse runtime UI styles, unify runtime settings entry, update PuzzleRuntime to apply immediate pointermove transforms (disable drag transition), use SVG clipPath for merged piece rounding, ensure PuzzleRuntimeShell supplies platform theme classes, and adjust related tests. Docs & logs: update decision log, pitfalls and product docs to reflect these changes.
2026-05-15 08:49:59 +08:00
JenkenB 3cb3efb4d0 Prune stale docs and update .hermes content
Delete a large set of outdated documentation (many files under docs/ and .hermes/plans/, including audits, design, prd, technical, planning, assets, and todos). Update and consolidate .hermes content: refresh shared-memory pages (decision-log, development-workflow, document-map, pitfalls, project-overview, team-conventions) and several skills/references under .hermes/skills. Also modify AGENTS.md, README.md, UI_CODING_STANDARD.md, docs/README.md and .encoding-check-ignore. Purpose: clean up stale planning/audit material and keep current hermes documentation and related top-level docs in sync.
2026-05-15 06:24:07 +08:00
JenkenB 74fd9a33ac Increase VectorEngine timeouts and add image UI
Add VectorEngine image generation config and raise request timeouts (env + scripts) from 180000 to 1000000ms. Introduce a reusable CreativeImageInputPanel component with tests and wire up mobile keyboard-focus helpers; update generation views and related tests (CustomWorldGenerationView, BarkBattle editor, Match3D, Puzzle flows). Improve API error handling / VectorEngine request guidance (packages/shared http.ts and docs), and apply multiple backend/frontend fixes for puzzle/match3d/prompt handling. Also include extensive docs and decision-log updates describing UI/UX decisions and verification steps.
2026-05-15 02:40:59 +08:00
JenkenB 4642855fd0 Merge branch 'master' of https://git.genarrative.world/GenarrativeAI/Genarrative 2026-05-14 21:33:34 +08:00
JenkenB 548db78ca7 Update Match3D/image-generation docs & code
Adds/updates documentation, assets and implementation for Match3D and puzzle image generation workflows. Key changes: decision logs and pitfalls updated to prefer VectorEngine Gemini for Match3D material sheets and to require edits (multipart) for 1:1 container reference images; guidance added for when to use APIMart vs VectorEngine. .env.example clarified APIMart/Responses config. Many new public assets and PPT visuals added. Code changes across frontend and backend: updated shared contracts, server-rs match3d/puzzle/image-generation handlers, VectorEngine/OpenAI image generation clients, and multiple React components/tests to handle UI/background/container image signing, edits workflow, and puzzle UI background resolution. Added src/services/puzzle-runtime/puzzleUiBackgroundSource.ts and related test updates. Includes notes about multipart HTTP/1.1 requirement and test/verification commands in docs.
2026-05-14 20:34:45 +08:00
kdletters 502811a103 Merge remote-tracking branch 'origin/master' into hermes/hermes-1e775b03
# Conflicts:
#	server-rs/crates/api-server/src/app.rs
#	server-rs/crates/api-server/src/creation_entry_config.rs
#	server-rs/crates/api-server/src/puzzle.rs
#	server-rs/crates/spacetime-client/src/lib.rs
#	src/components/platform-entry/PlatformEntryFlowShellImpl.tsx
2026-05-14 19:17:17 +08:00
kdletters 1d7ef7e4b6 feat: wire bark battle platform loop
CI / verify (pull_request) Has been cancelled
2026-05-14 18:20:46 +08:00
wuxiangwanzi e444266e1e feat: add edutainment drawing and visual package flows 2026-05-14 14:56:36 +08:00
JenkenB d33c937ebc 1 2026-05-14 14:21:17 +08:00
JenkenB 2dc9d752e4 1 2026-05-14 13:40:50 +08:00
JenkenB 5a55180b78 1 2026-05-14 01:11:58 +08:00
JenkenB e4a8bd42bb Merge branch 'master' of http://82.157.175.59:3000/GenarrativeAI/Genarrative 2026-05-13 03:10:55 +08:00
JenkenB 01c5ab985a 1 2026-05-13 00:28:07 +08:00
wuxiangwanzi d41f260a2a feat: add baby object match edutainment flow
CI / verify (push) Has been cancelled
2026-05-12 16:08:59 +08:00
kdletters 8c6ec9e6e4 Merge remote-tracking branch 'origin/master' into hermes/hermes-1e775b03
CI / verify (pull_request) Has been cancelled
# Conflicts:
#	docs/technical/README.md
#	src/components/custom-world-home/CustomWorldCreationHub.tsx
#	src/components/custom-world-home/creationWorkShelf.ts
#	src/components/platform-entry/PlatformEntryFlowShellImpl.tsx
#	src/components/rpg-entry/RpgEntryFlowShell.agent.interaction.test.tsx
2026-05-12 15:02:47 +08:00
kdletters 22810245f5 refactor match3d runtime adapters 2026-05-12 14:02:42 +08:00
JenkenB ef4f91a75e 1
CI / verify (push) Has been cancelled
2026-05-11 20:57:16 +08:00
JenkenB 481a27fc53 1 2026-05-11 20:27:41 +08:00
kdletters 54968701f0 fix public work detail not found recovery
CI / verify (push) Has been cancelled
2026-05-11 19:52:25 +08:00
JenkenB e30b733b17 1 2026-05-11 16:15:48 +08:00
kdletters 6c1579a786 merge: database backed creation entry config
# Conflicts:
#	src/components/platform-entry/PlatformEntryFlowShellImpl.tsx
2026-05-11 11:25:35 +08:00
kdletters 793d82cccd feat: move creation entry config to database 2026-05-11 11:23:24 +08:00
JenkenB d0a9348e72 Merge branch 'master' of http://82.157.175.59:3000/GenarrativeAI/Genarrative 2026-05-10 22:28:43 +08:00
JenkenB 192accd796 1 2026-05-10 22:20:54 +08:00
wuxiangwanzi 46a254f142 feat: add child motion entry and fix auth env
CI / verify (push) Has been cancelled
2026-05-10 18:27:51 +08:00
kdletters 86fc382413 feat: add shared runtime input device layer
CI / verify (push) Has been cancelled
2026-05-10 17:50:00 +08:00
JenkenB 7c8aa1e124 1 2026-05-09 19:56:03 +08:00
JenkenB bc704d0c22 1 2026-05-09 18:24:08 +08:00
JenkenB a0ed128bde 1 2026-05-09 17:15:23 +08:00
JenkenB 80a4183b45 fix recommend runtime auth isolation 2026-05-09 16:08:40 +08:00
JenkenB 23ba2703b4 Merge branch 'master' of http://82.157.175.59:3000/GenarrativeAI/Genarrative
CI / verify (push) Has been cancelled
2026-05-08 22:12:10 +08:00
JenkenB 65c2b8cd79 Merge branch 'master' of http://82.157.175.59:3000/GenarrativeAI/Genarrative 2026-05-08 22:07:05 +08:00
kdletters 199b44c18c Add backend feedback submission and image preview
CI / verify (push) Has been cancelled
2026-05-08 21:47:45 +08:00
JenkenB e410f7974e 1 2026-05-08 21:46:11 +08:00
JenkenB 94975e4735 1 2026-05-08 20:48:29 +08:00
kdletters 78ce8527fc feat: wire profile feedback navigation 2026-05-08 12:25:08 +08:00
JenkenB abf1f1ebea 1 2026-05-08 11:44:42 +08:00
wuxiangwanzi e8fee0172a feat: add puzzle onboarding and match3d entry updates
CI / verify (push) Has been cancelled
2026-05-07 23:30:54 +08:00
kdletters d06107f2c6 落地方洞挑战图片与运行态交互
CI / verify (push) Has been cancelled
2026-05-06 12:52:47 +08:00
kdletters 60b667a9d1 Extend square-hole creation flow with visual asset timeout guard 2026-05-06 12:52:47 +08:00
JenkenB 06b8b46530 Merge branch 'master' of http://82.157.175.59:3000/GenarrativeAI/Genarrative
CI / verify (push) Has been cancelled
2026-05-05 14:58:07 +08:00
JenkenB 07e777fef8 1 2026-05-05 14:40:41 +08:00
kdletters 995661e7cc Preserve partial creation replies on stream failure
CI / verify (push) Has been cancelled
2026-05-05 11:31:50 +08:00