Skip to content

prototype#1

Merged
NoEgAm merged 13 commits intomainfrom
implement
Jul 29, 2025
Merged

prototype#1
NoEgAm merged 13 commits intomainfrom
implement

Conversation

@tiye
Copy link
Member

@tiye tiye commented Jun 14, 2025

No description provided.

@tiye tiye requested review from a team and Copilot June 14, 2025 04:39
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR sets up a new “gen-code” prototype by adding Calcit prompt documentation, integrating Google GenAI, and renaming the core app from “app” to “gen-code”.

  • Introduces new prompt files (respo.md, format-guide.md, declare-task.md, calcit-lang.md) for guiding code generation.
  • Adds @google/genai and copy-text-to-clipboard dependencies and hooks into Google GenAI in compact.cirru.
  • Renames imports, HMR entries, HTML title, and Cirru namespaces from app to gen-code.

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
prompts/respo.md Added Respo usage examples
prompts/format-guide.md Added Calcit format guidelines
prompts/declare-task.md Created placeholder for task declaration
prompts/calcit-lang.md Added comprehensive Calcit language reference
package.json Added GenAI and clipboard dependencies
main.mjs Updated imports and HMR paths to gen-code
index.html Updated document title to “Gen Code”
compact.cirru Renamed project, added GenAI component and namespace
Comments suppressed due to low confidence (3)

prompts/declare-task.md:2

  • [nitpick] This file ends abruptly after the task prompt. Consider providing a concrete example or placeholder after ‘任务的内容为:’ to complete the documentation.
你现在是一个 Calcit 脚本语言的编码助手, 按照以下要求, 返回 Calcit 语法树的 JSON 结构. 任务的内容为:

prompts/calcit-lang.md:25

  • [nitpick] The heading “### 数据结构” appears twice (lines 14 and 25). To improve clarity, consider renaming or merging these sections to avoid duplication.
### 数据结构

package.json:5

  • The copy-text-to-clipboard dependency is added but not used anywhere in the project. Consider removing it or adding related functionality to justify its inclusion.
"copy-text-to-clipboard": "^3.2.0"

compact.cirru Outdated
:class-name css/column
div
{} $ :class-name (str-spaced css/row css/gap8)
textarea $ {}
Copy link

Copilot AI Jun 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the textarea tag itself was removed but its attributes remain. Please re-add the textarea $ {} line before these attribute definitions so they apply to the intended element.

Suggested change
textarea $ {}
textarea $ {}
textarea $ {}

Copilot uses AI. Check for mistakes.
@NoEgAm NoEgAm merged commit e324f77 into main Jul 29, 2025
1 check passed
@NoEgAm NoEgAm deleted the implement branch July 29, 2025 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants