Commit Graph
46 Commits
  • docs: reorganize reference area and unify directory READMEs
    Reorganize the AI-agent documentation by function area:
    - Move the plays/ application archive and experiences into docs/reference/, grouped by contributor <username>/ (flat experience entries + application subdirectories), with a single reference/README entry.
    - Add a second level under docs/development/ (engineering/, ci/, release/); fold agent-guide into ai-guide; flatten the six project-completion sub-documents into one file.
    - Unify each directory to a single README (drop every INDEX); fold assets/{fonts,images,music} README leaves into assets/README; remove the empty docs/software-design/.
    - Add an upstream-PR rule: do not add or modify the repository-root README.
    - Update all cross-references and bibliographic links (EN/ZH aligned); validate.sh --static passes. The repository-root README is left untouched.
  • Merge remote-tracking branch 'upstream/main' into docs/project-completion-flow
    # Conflicts:
    #	docs/development/CI-build-and-release.md
  • docs(project-completion): resolve conflicts and restore verification
    Address review feedback:
    
    - Make all six actions optional; README update (E) is the default companion
      of archiving (D), not a standalone requirement.
    - Restore the post-release full-build hardware verification that the old
      after-release flow carried and was dropped in the rework.
    - Align archive path with the plays convention (plays/<username>/<app-name>/).
    - Align the three text-only rules: plays/README, plays-archive skill, and the
      archive-plays action now all record the cover by file name/format only.
    - Build the merged full image with ./tools/validate.sh --firmware (not idf.py
      build); confirm commit/push/tag/release separately in action B.
    - Rename the entry point from post-release follow-up to project completion in
      AGENTS, the indexes, and cross-references.
  • docs(development): add display refresh and deep-sleep notes
    Add a reusable, upstream-benefiting post-release experience entry from the
    'What to Eat Today' firmware release:
    
    - Display refresh: direct esp_lcd_panel_draw_bitmap refresh of a single image
      rect, big-endian RGB565, this project's LVGL I8 palette layout, and an
      optional interlaced two-pass mode.
    - Deep-sleep wakeup: ESP32-C3 has no EXT0/EXT1; use
      esp_deep_sleep_enable_gpio_wakeup on an RTC GPIO, noting ESP-IDF 5.5.3's
      default internal-resistor behavior.
    - LVGL object-type misuse crash signature (lv_tlsf_block_size).
    
    Link the bilingual entry from both the English and zh_CN experience indexes.
    Hardware facts are marked Unverified pending source commit/tag, board revision,
    and reproduced measurements.
  • docs(project-completion): adopt text-only plays archive convention
    将 PR #25 的 5 个增强并入 project-completion 的动作文档,保持新版约定一致:
    
    - 动作 D(归档到 plays):改为纯文本归档。不再提交封面图,封面按文件名
      与格式记录在发布元数据里;档案 text-only。
    - 动作 E(更新根 README):README 更新为必须(无论是否归档);明确宿主
      feature 分支 + fork main 两处各自处理;fork main 根 README 为项目目录,
      完整包含项目 README 内容;README 为 fork 独有内容,直接 merge 不另开 PR。
    - 动作 B(发布到 Git):补编译偏好——日常用 idf.py build,发布/交付前
      需合并校验的 0x0 全镜像才用 validate.sh --firmware。
  • docs(development): rework follow-up into project completion flow
    把原有的 after-release 三轨道收尾(归档 plays、提 issue、提经验 PR)
    重构为「项目开发完成流程」project-completion:一组六项可选动作菜单,
    支持单选/多选,用户确认后才执行。
    
    - 新增 docs/development/project-completion.md(唯一权威总索引):
      触发时机、按交付/沉淀分组的六项动作、共享安全与同意门槛、
      共享发布属性(Publish Profile)、Mermaid 触发流程图。
    - 新增 project-completion/ 下六个动作文档(各配中英双语):
      发布到社区市场、发布到 Git 并更新版本、发布经验、归档到 plays、
      更新根 README、提交 issue;正文引用现有 skill。
    - 删除旧的 after-release.md 及其中文版。
    - 将全仓库对 after-release 的引用更新为 project-completion
      (AGENTS、fork-guide、file-issues、CI-build-and-release、
      publish-to-community、INDEX、README、三个 skill 文件)。
    - 动作 C(发布经验)的经验条目命名适配 main 现状:
      docs/experiences/<username>/ 按内容摘要命名。
    - 发布到 Git 动作补充:Release 默认标题为版本号名,发布后由执行者
      完善为「项目功能名 + 版本号」,并在 CI-build-and-release 同步说明。
  • Merge pull request #19 from Shinku-Chen/docs/play-archive-conventions
    docs(archive): group play and experience archives by contributor
  • docs(development): keep battery icon clear of the top-right cloud
    The battery indicator shows in the top-right by default, but the corner already
    has a cloud decoration (add_cloud, around x≈188, y≈8). Place the battery in the
    clear sky space beside or below the cloud, or at the very top-right edge, so it
    does not overlap or cover the cloud. Documented in agent-guide and
    coding-conventions in both languages.
  • docs(development): show battery in the top-right by default
    A user interface shows the battery level in the top-right corner by default,
    unless the developer specifies a different placement or explicitly does not want
    it. Read it from bsp_battery_soc() (and bsp_battery_mv() where useful), render
    it as a small battery indicator or percentage in the reserved top-right area,
    and degrade gracefully when the reading is -1 (unavailable) instead of drawing a
    number. Documented in agent-guide (runtime invariants) and coding-conventions in
    both languages.
  • docs(after-release): re-flash the released full build and verify
    After a release is complete (community or Git), add the device-verification
    step as Track 1: download the release's merged full firmware
    (FoloToy-AI-Passport-full.bin, the flashable complete build from 0x0), flash it
    to a device, and confirm it runs normally. Treating a successful build or upload
    as hardware validation is wrong; this step proves the release artifact actually
    boots. Generalized the intro from community-only to any completed release, and
    renumbered the archive / issue / experience tracks to 2-4.
  • docs(publish): define a release and the publish-to-git flow
    A release happens when the code is finished, usable, and ready to ship — it is
    not a commit. When the publish destination is Git, the flow is: commit the
    finished code, then open a release for it. The release artifact may be produced
    by the CI/CD pipeline (recommended, tag-triggered via build-firmware.yml) or it
    may be a local .bin the developer already built. Added an explicit 'neither yet'
    route when the code is still in development. Documented in publish-to-community
    in both languages.
  • docs(development): keep the ui_pixel theme when trimming components
    When the user asks to remove unnecessary components or go straight into a
    feature, the main menu and its elements may be dropped and the target feature
    screen launched directly. Keep the ui_pixel theme (sky background, grass, title
    plate, mascot, ink-outlined panels) intact and build the screen through
    ui_pixel_screen_create() / ui_pixel_panel_create(), so the feature keeps the
    shared visual identity instead of rendering blank. Documented in agent-guide
    (runtime invariants) and coding-conventions in both languages.
  • docs(development): default asset submission to repository-root assets/
    When a developer submits a reusable asset through the AI agent, save it under
    the repository-root assets/ by default for development and later reuse. Place
    it in the matching subdirectory and record destination, naming, integration
    method, and source/license there. Archive records (cover, manual, summary)
    belong in plays/ or docs/experiences/, not assets/.
  • docs(dev): add AI environment bootstrap (#20)
    * docs(dev): add AI environment bootstrap
    
    * docs(ui): document CJK font pitfall
  • docs(release): note official config app search keyword
    - Document that after flashing, the device is configured through the official FoloToy mini program, found by searching 'FoloToy AI Passport'.
    - Update CI-build-and-release.md/.zh_CN.md (new Device configuration section) and CHANGELOG.md/.zh_CN.md (Unreleased note).
  • docs(release): document version+app release title convention
    - Document a release-title convention for multi-app releases: name tags as v<version>-<app-name> (e.g. v0.1.0-voice-keychain) so a release title carries both the version and the application, and confirm the title after the release is published so the release list is scannable by app.
    - Update CI-build-and-release.md/.zh_CN.md (new Release title section) and CHANGELOG.md/.zh_CN.md (Unreleased note).
  • docs(archive): use lowercase-kebab-case for contributor folders
    - Rename plays/Shinku-Chen -> plays/shinku-chen and docs/experiences/Shinku-Chen -> docs/experiences/shinku-chen, and update all in-repo path references (markdown link targets and code spans) to the lowercase path.
    - Revert the archive convention from case-insensitive usernames back to "both in lowercase-kebab-case"; the username folder is now lowercase-kebab-case (e.g. shinku-chen) like the app/topic folder.
    - Keep the contributor display name (Shinku-Chen) in prose/signatures/table cells and the GitHub URL unchanged.
  • docs(archive): allow case-insensitive usernames
    - The username segment in archive paths is case-insensitive and kept as the GitHub username is (e.g. Shinku-Chen/), while the application/topic folder stays lowercase-kebab-case.
    - Update plays README, experience-notes, and both skills (EN + zh_CN) accordingly.
  • docs(contribution): require English PR/issue titles, allow bilingual bodies
    - PR and issue titles stay English; bodies may now be English or English plus Simplified Chinese (bilingual).
    - Update commit-and-pr, file-issues, the PR template note, and the issue-suggestions skill accordingly.
    - Leave the commit-message title rule unchanged.
  • docs(archive): group archived applications and experience by contributor
    - Group plays/<app-name> and docs/experiences/<unixtime>_<sha> archives under a per-contributor username folder so submissions are not flattened across the archive.
    - Add plays/INDEX.md and docs/experiences/INDEX.md (and zh_CN pairs) that list each archived record by contributor.
    - Document the power-consumption rule: a small-battery wearable must avoid leaving the screen lit for long periods and should return to a low-power state when idle.
    - Add brand-shell guidance: when generating an effect or mockup image for a play, use docs/assets/brand/ references to add the device shell around the on-screen content.
  • docs(plays): archive published applications to the upstream repository
    Route the plays-archive workflow to the upstream FoloToy ai-passport repository:
    archive the application summary and cover into the upstream plays/ directory and
    open the archive pull request from the fork branch against upstream. Update the
    after-release track 1, the plays README, the publishing guide, the fork-guide
    split (plays belongs upstream), and the skills index to reflect the upstream
    target.
  • docs(release): add release notes guidance
    Add a "Release notes" section to the build-and-release doc: after a release is
    published, write notes covering what's new, how to build, and how to use, in
    English (and a Chinese version where the project is bilingual), and link them
    from the release, keeping them consistent with the changelog.
  • docs(publish): ask where to publish before releasing
    Add a "first confirm where to publish" step to the community publishing guide:
    when the developer says "publish the project", ask whether to publish to the
    community market or to a version-control repository, and route to the matching
    workflow instead of assuming one.
  • docs(plays): handle root README per-branch when archiving
    Refine the plays-archive README check so after archiving each branch is handled
    independently: create the root README on a branch that lacks one, and prompt the
    developer to update the README on a branch that already has one. Merge an
    existing README into the functional summary; summarize directly when none
    exists.
  • docs(plays): check root README when archiving an application
    Add a step to the plays-archive skill and the after-release track 1 to check
    the root README of the main and current branches before generating a functional
    summary: merge the README into the summary when it exists, summarize directly
    otherwise, and update (create) the root README after archiving when neither
    branch has one. Root README creation follows the fork-owner convention.
  • docs: surface recorded experience when starting development
    Reference the development experience notes alongside the plays application
    archive in the start-development guidance, so a developer checks previously
    recorded, reusable experience (from other runs) before starting from scratch.
    Mention the experience index in the repository overview and the plays README.
  • docs: register post-release follow-up docs and skills
    Register the post-release follow-up documents (after-release, file-issues,
    experience-notes) in the documentation index and the development README, and
    the issue-suggestions, experience-pr, and plays-archive skills in the skills
    index. Add the changelog entry for the post-release follow-up workflow.
  • docs: add fork-guide documentation split and post-release routing
    Add the documentation-and-experience split to fork-guide (fork-specific
    product customization stays in the fork; general, upstream-benefiting
    improvements go upstream), a post-release follow-up row to the AGENTS routing
    table, and an "archive to plays" step at the end of the community publishing
    flow so the assistant asks whether to archive a released application.
  • docs(development): add post-release suggestions and experience follow-up
    Add the post-release follow-up track for collecting suggestions as upstream
    issues and submitting reusable development experience as a documentation PR
    to the upstream FoloToy ai-passport project. Each workflow is a repository
    skill (issue-suggestions, experience-pr) with bilingual SKILL.md, driving the
    after-release overview, the issue-filing doc, and the experience index. All
    follow the same safety and consent gates: confirm consent, check a GitHub
    channel, never submit before review, and never include credentials or private
    data.
  • docs(development): add AI Passport community publishing guide
    Add a reusable guide for AI agents on how to publish firmware (or a demo
    application) to the AI Passport community using the official publisher skill.
    
    The document is bilingual (English default plus a Simplified Chinese peer),
    registered in docs/INDEX.md, docs/INDEX.zh_CN.md, and the development README
    pair. It is a general workflow for any fork owner; no fork-specific details
    are included.
  • docs: restructure repository documentation and add CI workflows
    Restructure project documentation for AI-assisted development, add community issue forms and governance guidance, introduce hardened build/release and fork-sync workflows, and produce a validated 0x0 firmware image for the fixed 8 MB target.