Conversation
There was a problem hiding this comment.
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/genaiandcopy-text-to-clipboarddependencies and hooks into Google GenAI incompact.cirru. - Renames imports, HMR entries, HTML title, and Cirru namespaces from
apptogen-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-clipboarddependency 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 $ {} |
There was a problem hiding this comment.
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 $ {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.