@waoooo/claude-skills 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -0
- package/package.json +28 -0
- package/registry.json +431 -0
- package/skills/acceptance-review/SKILL.md +537 -0
- package/skills/all-plan/SKILL.md +19 -0
- package/skills/all-plan/references/flow.md +750 -0
- package/skills/api-docs-generate/SKILL.md +204 -0
- package/skills/api-docs-generate/assets/templates/api.mdx +140 -0
- package/skills/api-docs-generate/scripts/generate-api-docs.ts +308 -0
- package/skills/ask/SKILL.md +42 -0
- package/skills/autonew/SKILL.md +34 -0
- package/skills/capability-analyze/SKILL.md +300 -0
- package/skills/capability-analyze/scripts/analyze-capabilities.ts +531 -0
- package/skills/capability-docs-generate/SKILL.md +155 -0
- package/skills/capability-docs-generate/assets/templates/capability.mdx +271 -0
- package/skills/capability-docs-generate/scripts/generate-capability-docs.ts +358 -0
- package/skills/capability-tree-query/SKILL.md +112 -0
- package/skills/capability-tree-query/scripts/build-capability-tree.ts +402 -0
- package/skills/changelog-generator/SKILL.md +104 -0
- package/skills/continue/SKILL.md +39 -0
- package/skills/continue/agents/openai.yaml +3 -0
- package/skills/creating-skills/SKILL.md +158 -0
- package/skills/creating-skills/references/official_best_practices.md +128 -0
- package/skills/creating-skills/references/skill_examples.md +199 -0
- package/skills/docx/LICENSE.txt +30 -0
- package/skills/docx/SKILL.md +197 -0
- package/skills/docx/docx-js.md +350 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/skills/docx/ooxml/schemas/mce/mc.xsd +75 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/skills/docx/ooxml/scripts/pack.py +159 -0
- package/skills/docx/ooxml/scripts/unpack.py +29 -0
- package/skills/docx/ooxml/scripts/validate.py +69 -0
- package/skills/docx/ooxml/scripts/validation/__init__.py +15 -0
- package/skills/docx/ooxml/scripts/validation/base.py +951 -0
- package/skills/docx/ooxml/scripts/validation/docx.py +274 -0
- package/skills/docx/ooxml/scripts/validation/pptx.py +315 -0
- package/skills/docx/ooxml/scripts/validation/redlining.py +279 -0
- package/skills/docx/ooxml.md +610 -0
- package/skills/docx/scripts/__init__.py +1 -0
- package/skills/docx/scripts/document.py +1276 -0
- package/skills/docx/scripts/templates/comments.xml +3 -0
- package/skills/docx/scripts/templates/commentsExtended.xml +3 -0
- package/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
- package/skills/docx/scripts/templates/commentsIds.xml +3 -0
- package/skills/docx/scripts/templates/people.xml +3 -0
- package/skills/docx/scripts/utilities.py +374 -0
- package/skills/git-branch-create/SKILL.md +170 -0
- package/skills/git-branch-merge/SKILL.md +176 -0
- package/skills/git-commit/SKILL.md +56 -0
- package/skills/git-commit/references/commit_examples.md +311 -0
- package/skills/github-actions-trigger/SKILL.md +367 -0
- package/skills/github-issue-create/SKILL.md +294 -0
- package/skills/github-pr-creation/SKILL.md +137 -0
- package/skills/github-pr-creation/references/pr_templates.md +187 -0
- package/skills/github-pr-merge/SKILL.md +112 -0
- package/skills/github-pr-review/SKILL.md +110 -0
- package/skills/github-pr-review/references/severity_guide.md +168 -0
- package/skills/job-create/SKILL.md +294 -0
- package/skills/job-create/scripts/create-job.ts +105 -0
- package/skills/job-workflow/SKILL.md +212 -0
- package/skills/keyword-extract/SKILL.md +229 -0
- package/skills/mcp-builder/LICENSE.txt +202 -0
- package/skills/mcp-builder/SKILL.md +236 -0
- package/skills/mcp-builder/reference/evaluation.md +602 -0
- package/skills/mcp-builder/reference/mcp_best_practices.md +249 -0
- package/skills/mcp-builder/reference/node_mcp_server.md +970 -0
- package/skills/mcp-builder/reference/python_mcp_server.md +719 -0
- package/skills/mcp-builder/scripts/connections.py +151 -0
- package/skills/mcp-builder/scripts/evaluation.py +373 -0
- package/skills/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/skills/mcp-builder/scripts/requirements.txt +2 -0
- package/skills/mdx-to-openspec/SKILL.md +827 -0
- package/skills/mdx-to-openspec/scripts/mdx-to-openspec.ts +320 -0
- package/skills/mounted/SKILL.md +20 -0
- package/skills/multi-model-review/SKILL.md +459 -0
- package/skills/notion-automation/SKILL.md +215 -0
- package/skills/openspec-review/SKILL.md +513 -0
- package/skills/pdf/LICENSE.txt +30 -0
- package/skills/pdf/SKILL.md +294 -0
- package/skills/pdf/forms.md +205 -0
- package/skills/pdf/reference.md +612 -0
- package/skills/pdf/scripts/check_bounding_boxes.py +70 -0
- package/skills/pdf/scripts/check_bounding_boxes_test.py +226 -0
- package/skills/pdf/scripts/check_fillable_fields.py +12 -0
- package/skills/pdf/scripts/convert_pdf_to_images.py +35 -0
- package/skills/pdf/scripts/create_validation_image.py +41 -0
- package/skills/pdf/scripts/extract_form_field_info.py +152 -0
- package/skills/pdf/scripts/fill_fillable_fields.py +114 -0
- package/skills/pdf/scripts/fill_pdf_form_with_annotations.py +108 -0
- package/skills/pend/SKILL.md +33 -0
- package/skills/ping/SKILL.md +39 -0
- package/skills/pptx/LICENSE.txt +30 -0
- package/skills/pptx/SKILL.md +484 -0
- package/skills/pptx/html2pptx.md +625 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/skills/pptx/ooxml/schemas/mce/mc.xsd +75 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/skills/pptx/ooxml/scripts/pack.py +159 -0
- package/skills/pptx/ooxml/scripts/unpack.py +29 -0
- package/skills/pptx/ooxml/scripts/validate.py +69 -0
- package/skills/pptx/ooxml/scripts/validation/__init__.py +15 -0
- package/skills/pptx/ooxml/scripts/validation/base.py +951 -0
- package/skills/pptx/ooxml/scripts/validation/docx.py +274 -0
- package/skills/pptx/ooxml/scripts/validation/pptx.py +315 -0
- package/skills/pptx/ooxml/scripts/validation/redlining.py +279 -0
- package/skills/pptx/ooxml.md +427 -0
- package/skills/pptx/scripts/html2pptx.js +979 -0
- package/skills/pptx/scripts/inventory.py +1020 -0
- package/skills/pptx/scripts/rearrange.py +231 -0
- package/skills/pptx/scripts/replace.py +385 -0
- package/skills/pptx/scripts/thumbnail.py +450 -0
- package/skills/progress-update/SKILL.md +394 -0
- package/skills/progress-update/scripts/update-progress.ts +221 -0
- package/skills/release-automation/SKILL.md +306 -0
- package/skills/requirement-parse/SKILL.md +212 -0
- package/skills/requirement-parse/scripts/infer-builder-config.ts +346 -0
- package/skills/requirement-parse/scripts/merge-requirements.ts +228 -0
- package/skills/requirement-parse/scripts/parse-docs.ts +206 -0
- package/skills/requirement-parse/scripts/parse-openspec.ts +168 -0
- package/skills/roadmap-docs-generate/SKILL.md +483 -0
- package/skills/roadmap-docs-generate/assets/templates/ROADMAP.mdx +75 -0
- package/skills/roadmap-docs-generate/assets/templates/ROADMAP.mdx.template +330 -0
- package/skills/roadmap-docs-generate/assets/templates/TODO.mdx +56 -0
- package/skills/roadmap-docs-generate/assets/templates/TODO.mdx.template +363 -0
- package/skills/roadmap-docs-generate/scripts/json-to-mdx.ts +445 -0
- package/skills/roadmap-docs-generate/scripts/json-to-mdx.ts.backup +411 -0
- package/skills/roadmap-generate/SKILL.md +396 -0
- package/skills/roadmap-generate/scripts/generate-roadmap.ts +496 -0
- package/skills/skill-creator/LICENSE.txt +202 -0
- package/skills/skill-creator/SKILL.md +356 -0
- package/skills/skill-creator/references/output-patterns.md +82 -0
- package/skills/skill-creator/references/workflows.md +28 -0
- package/skills/skill-creator/scripts/init_skill.py +303 -0
- package/skills/skill-creator/scripts/package_skill.py +110 -0
- package/skills/skill-creator/scripts/quick_validate.py +95 -0
- package/skills/spec-generate/SKILL.md +408 -0
- package/skills/spec-generate/scripts/generate-specs.ts +538 -0
- package/skills/spec-generate/scripts/generate-tasks.ts +174 -0
- package/skills/specs-review/SKILL.md +370 -0
- package/skills/task-execute/SKILL.md +399 -0
- package/skills/task-update-status/SKILL.md +349 -0
- package/skills/task-update-status/scripts/update-task-status.ts +192 -0
- package/skills/task-verify/SKILL.md +407 -0
- package/skills/ui-ux-pro-max/SKILL.md +386 -0
- package/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/skills/ui-ux-pro-max/data/icons.csv +101 -0
- package/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/skills/ui-ux-pro-max/data/stacks/astro.csv +54 -0
- package/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/skills/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/skills/ui-ux-pro-max/data/styles.csv +68 -0
- package/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/skills/ui-ux-pro-max/scripts/core.py +253 -0
- package/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
- package/skills/ui-ux-pro-max/scripts/search.py +114 -0
- package/skills/vercel-automation/SKILL.md +226 -0
- package/skills/webapp-testing/LICENSE.txt +202 -0
- package/skills/webapp-testing/SKILL.md +96 -0
- package/skills/webapp-testing/examples/console_logging.py +35 -0
- package/skills/webapp-testing/examples/element_discovery.py +40 -0
- package/skills/webapp-testing/examples/static_html_automation.py +33 -0
- package/skills/webapp-testing/scripts/with_server.py +106 -0
- package/skills/worktree-manager/SKILL.md +725 -0
- package/skills/worktree-manager/config.json +15 -0
- package/skills/worktree-manager/scripts/allocate-ports.sh +100 -0
- package/skills/worktree-manager/scripts/cleanup.sh +185 -0
- package/skills/worktree-manager/scripts/launch-agent.sh +155 -0
- package/skills/worktree-manager/scripts/register.sh +125 -0
- package/skills/worktree-manager/scripts/release-ports.sh +48 -0
- package/skills/worktree-manager/scripts/status.sh +169 -0
- package/skills/worktree-manager/scripts/sync.sh +168 -0
- package/skills/worktree-manager/templates/worktree.json +23 -0
- package/skills/xlsx/LICENSE.txt +30 -0
- package/skills/xlsx/SKILL.md +289 -0
- package/skills/xlsx/recalc.py +178 -0
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
# Skill: task-update-status
|
|
2
|
+
|
|
3
|
+
## åč½
|
|
4
|
+
|
|
5
|
+
ę“ę° OpenSpec tasks.md äøēä»»å”ē¶ęę č®°ļ¼`- [ ]` ā `- [x]`ļ¼ć
|
|
6
|
+
|
|
7
|
+
## ä½ę¶č°ēØ
|
|
8
|
+
|
|
9
|
+
- ę„éŖ¤ 17ļ¼ä»»å”éŖčÆéčæå
|
|
10
|
+
- éč¦ę č®°ä»»å”å®ęę¶
|
|
11
|
+
- åå OpenSpec ē¶ęę¶
|
|
12
|
+
|
|
13
|
+
## č¾å
„
|
|
14
|
+
|
|
15
|
+
- `taskId` - ä»»å” IDļ¼ä¾å¦ļ¼TASK-001ļ¼
|
|
16
|
+
- `jobId` - Job IDļ¼ä¾å¦ļ¼2026-02-10-1520-pricing-systemļ¼
|
|
17
|
+
- `openspecPath` - OpenSpec ē®å½č·Æå¾ļ¼ä¾å¦ļ¼openspec/changes/001-pricing-system/ļ¼
|
|
18
|
+
- `status` - ę°ē¶ęļ¼pending / in-progress / completed / failedļ¼
|
|
19
|
+
|
|
20
|
+
## č¾åŗ
|
|
21
|
+
|
|
22
|
+
- ę“ę°åē tasks.md
|
|
23
|
+
- ę“ę°ę„åæ
|
|
24
|
+
|
|
25
|
+
## ę§č”ę„éŖ¤
|
|
26
|
+
|
|
27
|
+
### 1. 读å tasks.md
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
const tasksPath = `${openspecPath}/tasks.md`
|
|
31
|
+
const content = readFile(tasksPath)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### 2. å®ä½ä»»å”
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
// ä» tasks.json č·åä»»å”äæ”ęÆ
|
|
38
|
+
const tasks = JSON.parse(readFile(`exports/jobs/${jobId}/specs/tasks.json`))
|
|
39
|
+
const task = tasks.tasks.find(t => t.taskId === taskId)
|
|
40
|
+
|
|
41
|
+
if (!task) {
|
|
42
|
+
throw new Error(`Task ${taskId} not found`)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// č·åä»»å”åØ MDX äøēå¼ēØäæ”ęÆ
|
|
46
|
+
const mdxRef = task.mdxRef
|
|
47
|
+
// mdxRef: { file, line, marker }
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### 3. ę“ę°ē¶ęę č®°
|
|
51
|
+
|
|
52
|
+
```typescript
|
|
53
|
+
const lines = content.split('\n')
|
|
54
|
+
|
|
55
|
+
// ę¹ę³ 1ļ¼éčæ marker 精甮å¹é
|
|
56
|
+
if (mdxRef && mdxRef.marker) {
|
|
57
|
+
const targetLine = lines.findIndex(line =>
|
|
58
|
+
line.trim() === mdxRef.marker.trim()
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
if (targetLine !== -1) {
|
|
62
|
+
// ę“ę°ē¶ę
|
|
63
|
+
if (status === 'completed') {
|
|
64
|
+
lines[targetLine] = lines[targetLine].replace('- [ ]', '- [x]')
|
|
65
|
+
} else if (status === 'pending') {
|
|
66
|
+
lines[targetLine] = lines[targetLine].replace('- [x]', '- [ ]')
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// ę¹ę³ 2ļ¼éčæä»»å”ę é¢ęØ”ē³å¹é
|
|
72
|
+
else {
|
|
73
|
+
const taskTitle = task.title
|
|
74
|
+
const targetLine = lines.findIndex(line =>
|
|
75
|
+
line.includes(taskTitle) &&
|
|
76
|
+
(line.includes('- [ ]') || line.includes('- [x]'))
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
if (targetLine !== -1) {
|
|
80
|
+
if (status === 'completed') {
|
|
81
|
+
lines[targetLine] = lines[targetLine].replace('- [ ]', '- [x]')
|
|
82
|
+
} else if (status === 'pending') {
|
|
83
|
+
lines[targetLine] = lines[targetLine].replace('- [x]', '- [ ]')
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const updatedContent = lines.join('\n')
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### 4. åå
„ęä»¶
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
writeFile(tasksPath, updatedContent)
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### 5. č®°å½ę“ę°ę„åæ
|
|
98
|
+
|
|
99
|
+
```typescript
|
|
100
|
+
const log = {
|
|
101
|
+
taskId: taskId,
|
|
102
|
+
jobId: jobId,
|
|
103
|
+
updatedAt: new Date().toISOString(),
|
|
104
|
+
file: 'tasks.md',
|
|
105
|
+
oldStatus: task.status,
|
|
106
|
+
newStatus: status,
|
|
107
|
+
line: targetLine,
|
|
108
|
+
change: {
|
|
109
|
+
before: lines[targetLine],
|
|
110
|
+
after: updatedContent.split('\n')[targetLine]
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// čæ½å å°ę“ę°ę„åæ
|
|
115
|
+
appendFile(
|
|
116
|
+
`exports/jobs/${jobId}/logs/status-updates.jsonl`,
|
|
117
|
+
JSON.stringify(log) + '\n'
|
|
118
|
+
)
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## ē¶ęę č®°ę ¼å¼
|
|
122
|
+
|
|
123
|
+
### Markdown ä»»å”åč”Øę ¼å¼
|
|
124
|
+
|
|
125
|
+
```markdown
|
|
126
|
+
## Phase 1: Foundation
|
|
127
|
+
|
|
128
|
+
### ä»»å”å蔨
|
|
129
|
+
|
|
130
|
+
- [ ] å®ē°ęÆä» API
|
|
131
|
+
- [ ] ę·»å å¤č“§åøęÆę
|
|
132
|
+
- [x] éę Stripe
|
|
133
|
+
- [ ] ē¼åęµčÆ
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### ęÆęēē¶ę
|
|
137
|
+
|
|
138
|
+
| ē¶ę | Markdown | 诓ę |
|
|
139
|
+
|------|----------|------|
|
|
140
|
+
| pending | `- [ ]` | å¾
å¼å§ |
|
|
141
|
+
| in-progress | `- [ ]` | čæč”äøļ¼äøę¹åę č®°ļ¼ |
|
|
142
|
+
| completed | `- [x]` | å·²å®ę |
|
|
143
|
+
| failed | `- [ ]` | 失蓄ļ¼ę¢å¤äøŗå¾
å¼å§ļ¼ |
|
|
144
|
+
|
|
145
|
+
### åµå„ä»»å”
|
|
146
|
+
|
|
147
|
+
```markdown
|
|
148
|
+
- [ ] å®ē°ęÆä»åč½
|
|
149
|
+
- [x] 设讔ę„å£
|
|
150
|
+
- [x] å®ē° Stripe éę
|
|
151
|
+
- [ ] ę·»å webhook å¤ē
|
|
152
|
+
- [ ] ē¼åęµčÆ
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
**å¤ēé»č¾**ļ¼
|
|
156
|
+
- åŖę“ę°äø»ä»»å”ēē¶ę
|
|
157
|
+
- åä»»å”ē¶ęē±å¼åč
ęåØę“ę°
|
|
158
|
+
- ęę ¹ę®åä»»å”å®ęę
åµčŖåØę“ę°äø»ä»»å”
|
|
159
|
+
|
|
160
|
+
## 使ēØē¤ŗä¾
|
|
161
|
+
|
|
162
|
+
### ē¤ŗä¾ 1ļ¼ę č®°ä»»å”å®ę
|
|
163
|
+
|
|
164
|
+
```
|
|
165
|
+
Agent č°ēØ task-update-status:
|
|
166
|
+
č¾å
„:
|
|
167
|
+
- taskId: TASK-001
|
|
168
|
+
- jobId: 2026-02-10-1520-pricing-system
|
|
169
|
+
- openspecPath: openspec/changes/001-pricing-system/
|
|
170
|
+
- status: completed
|
|
171
|
+
|
|
172
|
+
ę§č”:
|
|
173
|
+
š§ ę„éŖ¤ 1: 读å tasks.md
|
|
174
|
+
ā³ ęä»¶: openspec/changes/001-pricing-system/tasks.md
|
|
175
|
+
ā³ ę»č”ę°: 156 č”
|
|
176
|
+
|
|
177
|
+
š§ ę„éŖ¤ 2: å®ä½ä»»å”
|
|
178
|
+
ā³ ä»»å”: TASK-001 - Develop payment-gateway capability
|
|
179
|
+
ā³ å¼ēØ: line 42, marker: "- [ ] Develop payment-gateway capability"
|
|
180
|
+
ā
ę¾å°: 第 42 č”
|
|
181
|
+
|
|
182
|
+
š§ ę„éŖ¤ 3: ę“ę°ē¶ę
|
|
183
|
+
š äæ®ę¹å: - [ ] Develop payment-gateway capability
|
|
184
|
+
š äæ®ę¹å: - [x] Develop payment-gateway capability
|
|
185
|
+
|
|
186
|
+
š§ ę„éŖ¤ 4: åå
„ęä»¶
|
|
187
|
+
ā
å·²äæå: tasks.md
|
|
188
|
+
|
|
189
|
+
š§ ę„éŖ¤ 5: č®°å½ę„åæ
|
|
190
|
+
ā
已记å½: logs/status-updates.jsonl
|
|
191
|
+
|
|
192
|
+
ę¾ē¤ŗē»ę:
|
|
193
|
+
ā
ē¶ęå·²ę“ę°
|
|
194
|
+
|
|
195
|
+
š ę“ę°äæ”ęÆ:
|
|
196
|
+
- ä»»å”: TASK-001
|
|
197
|
+
- ęä»¶: tasks.md (第 42 č”)
|
|
198
|
+
- ē¶ę: pending ā completed
|
|
199
|
+
- ę č®°: [ ] ā [x]
|
|
200
|
+
|
|
201
|
+
š” äøäøę„:
|
|
202
|
+
ē»§ē»ę“ę° progress.json
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### ē¤ŗä¾ 2ļ¼ę¹éę“ę°
|
|
206
|
+
|
|
207
|
+
```
|
|
208
|
+
Agent č°ēØ task-update-status (ę¹é):
|
|
209
|
+
č¾å
„:
|
|
210
|
+
- taskIds: [TASK-001, TASK-002, TASK-003]
|
|
211
|
+
- jobId: 2026-02-10-1520-pricing-system
|
|
212
|
+
- openspecPath: openspec/changes/001-pricing-system/
|
|
213
|
+
- status: completed
|
|
214
|
+
|
|
215
|
+
ę§č”:
|
|
216
|
+
š§ ę¹éę“ę° 3 äøŖä»»å”
|
|
217
|
+
|
|
218
|
+
ā³ TASK-001: 第 42 č” ā
|
|
219
|
+
ā³ TASK-002: 第 58 č” ā
|
|
220
|
+
ā³ TASK-003: 第 73 č” ā
|
|
221
|
+
|
|
222
|
+
ę¾ē¤ŗē»ę:
|
|
223
|
+
ā
ę¹éę“ę°å®ę
|
|
224
|
+
|
|
225
|
+
š ę“ę°ē»č®”:
|
|
226
|
+
- ę»č®”: 3 äøŖä»»å”
|
|
227
|
+
- ęå: 3 äøŖ ā
|
|
228
|
+
- 失蓄: 0 个
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
### ē¤ŗä¾ 3ļ¼ä»»å”ęŖę¾å°
|
|
232
|
+
|
|
233
|
+
```
|
|
234
|
+
Agent č°ēØ task-update-status:
|
|
235
|
+
č¾å
„:
|
|
236
|
+
- taskId: TASK-999
|
|
237
|
+
- jobId: 2026-02-10-1520-pricing-system
|
|
238
|
+
- openspecPath: openspec/changes/001-pricing-system/
|
|
239
|
+
- status: completed
|
|
240
|
+
|
|
241
|
+
ę§č”:
|
|
242
|
+
š§ ę„éŖ¤ 1-2: 读ååå®ä½
|
|
243
|
+
|
|
244
|
+
ā é误: ä»»å”ęŖę¾å°
|
|
245
|
+
š åå : tasks.md äøę²”ęę¾å° TASK-999 ēę č®°
|
|
246
|
+
|
|
247
|
+
ę¾ē¤ŗē»ę:
|
|
248
|
+
ā ę“ę°å¤±č“„
|
|
249
|
+
|
|
250
|
+
š” 建议:
|
|
251
|
+
1. ę£ę„ taskId ęÆå¦ę£ē”®
|
|
252
|
+
2. ę£ę„ tasks.md äøęÆå¦ę对åŗä»»å”
|
|
253
|
+
3. ęęåØę·»å ä»»å”ę č®°
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
## ęŗč½å¹é
ēē„
|
|
257
|
+
|
|
258
|
+
### 1. 精甮å¹é
ļ¼ä¼å
ļ¼
|
|
259
|
+
|
|
260
|
+
```typescript
|
|
261
|
+
// ä½æēØ mdxRef.marker 精甮å¹é
|
|
262
|
+
const exactMatch = lines.findIndex(line =>
|
|
263
|
+
line.trim() === mdxRef.marker.trim()
|
|
264
|
+
)
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
### 2. ę é¢å¹é
|
|
268
|
+
|
|
269
|
+
```typescript
|
|
270
|
+
// 使ēØä»»å”ę é¢å¹é
|
|
271
|
+
const titleMatch = lines.findIndex(line =>
|
|
272
|
+
line.includes(task.title) &&
|
|
273
|
+
(line.includes('- [ ]') || line.includes('- [x]'))
|
|
274
|
+
)
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
### 3. 樔ē³å¹é
|
|
278
|
+
|
|
279
|
+
```typescript
|
|
280
|
+
// 使ēØå
³é®čÆå¹é
|
|
281
|
+
const keywords = task.title.split(' ').filter(w => w.length > 3)
|
|
282
|
+
const fuzzyMatch = lines.findIndex(line =>
|
|
283
|
+
keywords.some(kw => line.includes(kw)) &&
|
|
284
|
+
(line.includes('- [ ]') || line.includes('- [x]'))
|
|
285
|
+
)
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
### 4. č”å·å¹é
ļ¼ęåęꮵļ¼
|
|
289
|
+
|
|
290
|
+
```typescript
|
|
291
|
+
// ä½æēØ mdxRef.line ē“ę„å®ä½
|
|
292
|
+
if (mdxRef && mdxRef.line) {
|
|
293
|
+
const lineMatch = mdxRef.line - 1 // 转ę¢äøŗ 0-based index
|
|
294
|
+
if (lines[lineMatch].includes('- [ ]') || lines[lineMatch].includes('- [x]')) {
|
|
295
|
+
// 使ēØčæäøč”
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
## é误å¤ē
|
|
301
|
+
|
|
302
|
+
### é误 1ļ¼tasks.md äøååØ
|
|
303
|
+
|
|
304
|
+
```
|
|
305
|
+
ā é误: tasks.md ęä»¶äøååØ
|
|
306
|
+
š åå : openspec/changes/001-pricing-system/tasks.md ęŖę¾å°
|
|
307
|
+
|
|
308
|
+
š” 建议:
|
|
309
|
+
1. ę£ę„ OpenSpec č·Æå¾
|
|
310
|
+
2. 甮认 tasks.md ęä»¶ååØ
|
|
311
|
+
3. éę°ēę OpenSpec
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
### é误 2ļ¼ä»»å”ę č®°ęŖę¾å°
|
|
315
|
+
|
|
316
|
+
```
|
|
317
|
+
ā é误: ä»»å”ę č®°ęŖę¾å°
|
|
318
|
+
š åå : tasks.md äøę²”ę TASK-001 ēę č®°
|
|
319
|
+
|
|
320
|
+
š” 建议:
|
|
321
|
+
1. ę£ę„ä»»å”ę é¢ęÆå¦å¹é
|
|
322
|
+
2. ęåØę·»å ä»»å”ę č®°
|
|
323
|
+
3. ęę“ę° mdxRef äæ”ęÆ
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
### é误 3ļ¼ęä»¶åå
„失蓄
|
|
327
|
+
|
|
328
|
+
```
|
|
329
|
+
ā é误: ęä»¶åå
„失蓄
|
|
330
|
+
š åå : ę²”ęåå
„ęé
|
|
331
|
+
|
|
332
|
+
š” 建议:
|
|
333
|
+
1. ę£ę„ęä»¶ęé
|
|
334
|
+
2. 甮认ęä»¶ęŖč¢«éå®
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
## 注ęäŗé”¹
|
|
338
|
+
|
|
339
|
+
1. **精甮å¹é
** - ä¼å
ä½æēØ mdxRef.marker 精甮å¹é
|
|
340
|
+
2. **äæęę ¼å¼** - åŖäæ®ę¹ē¶ęę č®°ļ¼äæęå
¶ä»ę ¼å¼äøå
|
|
341
|
+
3. **ååęä½** - 读å-äæ®ę¹-åå
„ä½äøŗååęä½
|
|
342
|
+
4. **ę„åæč®°å½** - č®°å½ęÆę¬”ę“ę°ļ¼ä¾æäŗčæ½ęŗÆ
|
|
343
|
+
5. **å¹ēę§** - å¤ę¬”č°ēØē»ęäøč“
|
|
344
|
+
|
|
345
|
+
## ēøå
³ęä»¶
|
|
346
|
+
|
|
347
|
+
- `openspec/changes/<change-id>/tasks.md` - OpenSpec ä»»å”å蔨
|
|
348
|
+
- `exports/jobs/<job-id>/specs/tasks.json` - ä»»å”详ę
|
|
349
|
+
- `exports/jobs/<job-id>/logs/status-updates.jsonl` - ę“ę°ę„åæ
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Update Task Status in OpenSpec tasks.md
|
|
4
|
+
*
|
|
5
|
+
* This script updates task status in OpenSpec tasks.md file:
|
|
6
|
+
* - Mark task as completed: `- [ ]` ā `- [x]`
|
|
7
|
+
* - Update task metadata (completion time, notes)
|
|
8
|
+
*
|
|
9
|
+
* Usage:
|
|
10
|
+
* npx tsx update-task-status.ts \
|
|
11
|
+
* --openspec <openspec-path> \
|
|
12
|
+
* --task <task-id> \
|
|
13
|
+
* --status <completed|in_progress|failed>
|
|
14
|
+
*
|
|
15
|
+
* Example:
|
|
16
|
+
* npx tsx update-task-status.ts \
|
|
17
|
+
* --openspec openspec/changes/001-pricing-system/ \
|
|
18
|
+
* --task TASK-001 \
|
|
19
|
+
* --status completed
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
import fs from 'fs';
|
|
23
|
+
import path from 'path';
|
|
24
|
+
import { fileURLToPath } from 'url';
|
|
25
|
+
|
|
26
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
27
|
+
const __dirname = path.dirname(__filename);
|
|
28
|
+
|
|
29
|
+
// ============================================================================
|
|
30
|
+
// Types
|
|
31
|
+
// ============================================================================
|
|
32
|
+
|
|
33
|
+
type TaskStatus = 'completed' | 'in_progress' | 'failed' | 'pending';
|
|
34
|
+
|
|
35
|
+
interface UpdateOptions {
|
|
36
|
+
openspecPath: string;
|
|
37
|
+
taskId: string;
|
|
38
|
+
status: TaskStatus;
|
|
39
|
+
notes?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// ============================================================================
|
|
43
|
+
// CLI Arguments
|
|
44
|
+
// ============================================================================
|
|
45
|
+
|
|
46
|
+
function parseArgs(): UpdateOptions {
|
|
47
|
+
const args = process.argv.slice(2);
|
|
48
|
+
const result: any = {};
|
|
49
|
+
|
|
50
|
+
for (let i = 0; i < args.length; i += 2) {
|
|
51
|
+
const key = args[i].replace('--', '');
|
|
52
|
+
const value = args[i + 1];
|
|
53
|
+
result[key] = value;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
if (!result.openspec || !result.task || !result.status) {
|
|
57
|
+
console.error('ā Missing required arguments');
|
|
58
|
+
console.error('Usage: update-task-status.ts --openspec <path> --task <id> --status <status>');
|
|
59
|
+
process.exit(1);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return {
|
|
63
|
+
openspecPath: result.openspec,
|
|
64
|
+
taskId: result.task,
|
|
65
|
+
status: result.status as TaskStatus,
|
|
66
|
+
notes: result.notes,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// ============================================================================
|
|
71
|
+
// OpenSpec tasks.md Operations
|
|
72
|
+
// ============================================================================
|
|
73
|
+
|
|
74
|
+
function readTasksFile(openspecPath: string): string {
|
|
75
|
+
const tasksPath = path.join(openspecPath, 'tasks.md');
|
|
76
|
+
|
|
77
|
+
if (!fs.existsSync(tasksPath)) {
|
|
78
|
+
throw new Error(`tasks.md not found: ${tasksPath}`);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return fs.readFileSync(tasksPath, 'utf-8');
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function writeTasksFile(openspecPath: string, content: string): void {
|
|
85
|
+
const tasksPath = path.join(openspecPath, 'tasks.md');
|
|
86
|
+
fs.writeFileSync(tasksPath, content, 'utf-8');
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function updateTaskStatus(content: string, taskId: string, status: TaskStatus, notes?: string): string {
|
|
90
|
+
const lines = content.split('\n');
|
|
91
|
+
let updated = false;
|
|
92
|
+
let inTask = false;
|
|
93
|
+
let taskIndent = 0;
|
|
94
|
+
|
|
95
|
+
for (let i = 0; i < lines.length; i++) {
|
|
96
|
+
const line = lines[i];
|
|
97
|
+
|
|
98
|
+
// Find task by ID (in comment or heading)
|
|
99
|
+
if (line.includes(taskId)) {
|
|
100
|
+
inTask = true;
|
|
101
|
+
taskIndent = line.search(/\S/); // Get indentation level
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Update checkbox if we're in the target task
|
|
106
|
+
if (inTask && line.match(/^[\s]*-\s+\[[ x]\]/)) {
|
|
107
|
+
const currentIndent = line.search(/\S/);
|
|
108
|
+
|
|
109
|
+
// Check if this is a subtask (more indented) or next task (same/less indented)
|
|
110
|
+
if (currentIndent > taskIndent) {
|
|
111
|
+
// This is a subtask, skip it
|
|
112
|
+
continue;
|
|
113
|
+
} else if (currentIndent === taskIndent) {
|
|
114
|
+
// This is the task checkbox
|
|
115
|
+
if (status === 'completed') {
|
|
116
|
+
lines[i] = line.replace(/- \[ \]/, '- [x]');
|
|
117
|
+
} else if (status === 'in_progress') {
|
|
118
|
+
lines[i] = line.replace(/- \[x\]/, '- [ ]');
|
|
119
|
+
} else if (status === 'failed') {
|
|
120
|
+
lines[i] = line.replace(/- \[ \]/, '- [x]') + ' ā';
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Add completion note if provided
|
|
124
|
+
if (notes && status === 'completed') {
|
|
125
|
+
const noteIndent = ' '.repeat(currentIndent + 2);
|
|
126
|
+
lines.splice(i + 1, 0, `${noteIndent}> ā
Completed: ${notes}`);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
updated = true;
|
|
130
|
+
inTask = false;
|
|
131
|
+
break;
|
|
132
|
+
} else {
|
|
133
|
+
// Next task at same or lower level, stop
|
|
134
|
+
inTask = false;
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (!updated) {
|
|
141
|
+
throw new Error(`Task ${taskId} not found in tasks.md`);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
return lines.join('\n');
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// ============================================================================
|
|
148
|
+
// Main
|
|
149
|
+
// ============================================================================
|
|
150
|
+
|
|
151
|
+
async function main() {
|
|
152
|
+
console.log('š§ Updating task status in OpenSpec...\n');
|
|
153
|
+
|
|
154
|
+
const options = parseArgs();
|
|
155
|
+
|
|
156
|
+
console.log('š„ Input:');
|
|
157
|
+
console.log(` - OpenSpec: ${options.openspecPath}`);
|
|
158
|
+
console.log(` - Task ID: ${options.taskId}`);
|
|
159
|
+
console.log(` - Status: ${options.status}`);
|
|
160
|
+
if (options.notes) {
|
|
161
|
+
console.log(` - Notes: ${options.notes}`);
|
|
162
|
+
}
|
|
163
|
+
console.log('');
|
|
164
|
+
|
|
165
|
+
// Step 1: Read tasks.md
|
|
166
|
+
console.log('š Step 1/3: Reading tasks.md...');
|
|
167
|
+
const content = readTasksFile(options.openspecPath);
|
|
168
|
+
console.log('ā
Read\n');
|
|
169
|
+
|
|
170
|
+
// Step 2: Update task status
|
|
171
|
+
console.log('š§ Step 2/3: Updating task status...');
|
|
172
|
+
const updatedContent = updateTaskStatus(
|
|
173
|
+
content,
|
|
174
|
+
options.taskId,
|
|
175
|
+
options.status,
|
|
176
|
+
options.notes
|
|
177
|
+
);
|
|
178
|
+
console.log('ā
Updated\n');
|
|
179
|
+
|
|
180
|
+
// Step 3: Write back
|
|
181
|
+
console.log('š¾ Step 3/3: Writing tasks.md...');
|
|
182
|
+
writeTasksFile(options.openspecPath, updatedContent);
|
|
183
|
+
console.log('ā
Written\n');
|
|
184
|
+
|
|
185
|
+
console.log('š Done!');
|
|
186
|
+
console.log(`\nā
Task ${options.taskId} marked as ${options.status}`);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
main().catch(error => {
|
|
190
|
+
console.error('ā Error:', error.message);
|
|
191
|
+
process.exit(1);
|
|
192
|
+
});
|