Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixbug: #1623, use a share context to pass the repo path information #1631

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

iorisa
Copy link
Collaborator

@iorisa iorisa commented Dec 6, 2024

Features

2024-12-06 15:46:20.433 | INFO     | metagpt.const:get_metagpt_package_root:21 - Package root set to /Users/ix/github/bak/MetaGPT
2024-12-06 15:46:32.805 | INFO     | metagpt.roles.role:_act:403 - Alice(Product Manager): to do PrepareDocuments(PrepareDocuments)
2024-12-06 15:46:33.026 | INFO     | metagpt.utils.file_repository:save:57 - save to: /Users/ix/github/bak/MetaGPT/workspace/20241206154632/docs/requirement.txt
2024-12-06 15:46:33.031 | INFO     | metagpt.roles.role:_act:403 - Alice(Product Manager): to do WritePRD(WritePRD)
2024-12-06 15:46:33.036 | INFO     | metagpt.actions.write_prd:run:86 - New requirement detected: Write a PRD for a snake game
[CONTENT]
{
    "Language": "en_us",
    "Programming Language": "Python",
    "Original Requirements": "Write a PRD for a snake game",
    "Project Name": "snake_game_prd",
    "Product Goals": [
        "Create an addictive and engaging gameplay experience",
        "Enhance user interaction and responsiveness",
        "Design visually pleasing UI"
    ],
    "User Stories": [
        "As a player, I want to control the snake's movement using arrow keys",
        "As a player, I expect the snake to grow longer when it eats the food",
        "As a player, I want the game to end if the snake collides with the walls or itself"
    ],
    "Competitive Analysis": [
        "Snake Game A: Simple interface, lacks responsiveness",
        "playSnake.co: Responsive UI with high scores displayed",
        "SnakeGame.com: Responsive UI with high scores, but too many ads"
    ],
    "Competitive Quadrant Chart": "quadrantChart\n    title \"Engagement and Accessibility of Snake Games\"\n    x-axis \"Low Engagement\" --> \"High Engagement\"\n    y-axis \"Low Accessibility\" --> \"High Accessibility\"\n    quadrant-1 \"Potential Improvement\"\n    quadrant-2 \"Require Enhancement\"\n    quadrant-3 \"Re-assess\"\n    quadrant-4 \"Opportunity for Growth\"\n    \"Snake Game A\": [0.3, 0.6]\n    \"playSnake.co\": [0.45, 0.23]\n    \"SnakeGame.com\": [0.57, 0.69]\n    \"Our Snake Game\": [0.5, 0.6]",
    "Requirement Analysis": "",
    "Requirement Pool": [
        [
            "P0",
            "Implement snake movement and food interaction"
        ],
        [
            "P1",
            "Add collision detection for walls and snake itself"
        ],
        [
            "P2",
            "Incorporate high score tracking and display"
        ]
    ],
    "UI Design draft": "Simple and intuitive controls, visually appealing snake and food graphics, and a clean layout for the game board.",
    "Anything UNCLEAR": ""
}
[/CONTENT]
2024-12-06 15:47:10.545 | INFO     | metagpt.utils.token_counter:count_input_tokens:433 - Warning: gpt-3.5-turbo may update over time. Returning num tokens assuming gpt-3.5-turbo-0125.
2024-12-06 15:47:10.555 | INFO     | metagpt.utils.cost_manager:update_cost:57 - Total running cost: $0.002 | Max budget: $10.000 | Current cost: $0.002, prompt_tokens: 950, completion_tokens: 468
2024-12-06 15:47:10.577 | INFO     | metagpt.utils.git_repository:rename_root:219 - Rename directory /Users/ix/github/bak/MetaGPT/workspace/20241206154632 to /Users/ix/github/bak/MetaGPT/workspace/snake_game_prd
2024-12-06 15:47:10.585 | INFO     | metagpt.utils.file_repository:save:57 - save to: /Users/ix/github/bak/MetaGPT/workspace/snake_game_prd/docs/prd/20241206154710.json
2024-12-06 15:47:10.596 | INFO     | metagpt.utils.mermaid:mermaid_to_file:44 - Generating /Users/ix/github/bak/MetaGPT/workspace/snake_game_prd/resources/competitive_analysis/20241206154710.pdf..
2024-12-06 15:47:18.005 | INFO     | metagpt.utils.mermaid:mermaid_to_file:68 - Generating single mermaid chart

2024-12-06 15:47:18.007 | INFO     | metagpt.utils.mermaid:mermaid_to_file:44 - Generating /Users/ix/github/bak/MetaGPT/workspace/snake_game_prd/resources/competitive_analysis/20241206154710.svg..
2024-12-06 15:47:19.968 | INFO     | metagpt.utils.mermaid:mermaid_to_file:68 - Generating single mermaid chart

2024-12-06 15:47:19.968 | INFO     | metagpt.utils.mermaid:mermaid_to_file:44 - Generating /Users/ix/github/bak/MetaGPT/workspace/snake_game_prd/resources/competitive_analysis/20241206154710.png..
2024-12-06 15:47:21.738 | INFO     | metagpt.utils.mermaid:mermaid_to_file:68 - Generating single mermaid chart

2024-12-06 15:47:21.741 | INFO     | metagpt.utils.file_repository:save:57 - save to: /Users/ix/github/bak/MetaGPT/workspace/snake_game_prd/resources/prd/20241206154710.md
2024-12-06 15:48:05.966 | INFO     | __main__:main:18 - {"docs":{"20241206154710.json":{"root_path":"docs/prd","filename":"20241206154710.json","content":"{

Process finished with exit code 0

Copy link
Collaborator

@shenchucheng shenchucheng left a comment

Choose a reason for hiding this comment

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

LGTM

@iorisa iorisa requested a review from shenchucheng December 6, 2024 07:58
@iorisa iorisa merged commit 0a5a235 into geekan:main Dec 6, 2024
2 of 3 checks passed
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.

2 participants