@dezkareid/osddt 1.12.0 → 1.12.1
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/dist/index.js +40 -32
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -606,56 +606,64 @@ ${args}
|
|
|
606
606
|
{
|
|
607
607
|
name: 'osddt.done',
|
|
608
608
|
description: 'Mark a feature as done and move it from working-on to done',
|
|
609
|
-
body: ({ npxCommand }) => `##
|
|
609
|
+
body: ({ npxCommand }) => `## Step 1 — Verify tasks
|
|
610
|
+
|
|
611
|
+
Confirm all tasks in \`osddt.tasks.md\` are checked off (\`- [x]\`).
|
|
610
612
|
|
|
611
|
-
|
|
612
|
-
2. Run the following command to check whether this feature uses a git worktree:
|
|
613
|
+
## Step 2 — Detect feature type
|
|
613
614
|
|
|
614
615
|
\`\`\`
|
|
615
616
|
${npxCommand} worktree-info <feature-name>
|
|
616
617
|
\`\`\`
|
|
617
618
|
|
|
618
|
-
|
|
619
|
+
- **Exit code 1** → standard feature. Follow **[If standard feature]** below.
|
|
620
|
+
- **Exit code 0** → worktree feature. Follow **[If worktree feature]** below.
|
|
619
621
|
|
|
620
|
-
|
|
621
|
-
\`\`\`
|
|
622
|
-
${npxCommand} done <feature-name> --dir <project-path>
|
|
623
|
-
\`\`\`
|
|
624
|
-
Skip to step 8.
|
|
622
|
+
## If standard feature
|
|
625
623
|
|
|
626
|
-
|
|
624
|
+
Run the done command using the project path from \`.osddtrc\`:
|
|
627
625
|
|
|
628
|
-
|
|
626
|
+
\`\`\`
|
|
627
|
+
${npxCommand} done <feature-name> --dir <project-path>
|
|
628
|
+
\`\`\`
|
|
629
629
|
|
|
630
|
-
|
|
631
|
-
git -C <worktreePath> status --porcelain
|
|
632
|
-
\`\`\`
|
|
630
|
+
Then skip to **[Step 3 — Report]**.
|
|
633
631
|
|
|
634
|
-
|
|
635
|
-
1. Run \`git -C <worktreePath> diff\` to inspect them.
|
|
636
|
-
2. Derive a concise commit message in **conventional commit** format (e.g. \`feat: add payment gateway integration\`) based on the diff.
|
|
637
|
-
3. Present the proposed message to the user: _"Use this commit message, or provide your own?"_
|
|
638
|
-
4. Once confirmed, commit:
|
|
639
|
-
\`\`\`
|
|
640
|
-
git -C <worktreePath> add -A
|
|
641
|
-
git -C <worktreePath> commit -m "<confirmed-message>"
|
|
642
|
-
\`\`\`
|
|
632
|
+
## If worktree feature
|
|
643
633
|
|
|
644
|
-
|
|
634
|
+
Parse the JSON output to get \`worktreePath\` and \`branch\`. Derive \`<project-path>\` from \`workingDir\`.
|
|
645
635
|
|
|
646
|
-
|
|
647
|
-
git -C <worktreePath> push --set-upstream origin <branch>
|
|
648
|
-
\`\`\`
|
|
636
|
+
Run the done command to archive the working-on folder:
|
|
649
637
|
|
|
650
|
-
|
|
638
|
+
\`\`\`
|
|
639
|
+
${npxCommand} done <feature-name> --dir <project-path>
|
|
640
|
+
\`\`\`
|
|
641
|
+
|
|
642
|
+
Then check for uncommitted changes:
|
|
643
|
+
|
|
644
|
+
\`\`\`
|
|
645
|
+
git -C <worktreePath> status --porcelain
|
|
646
|
+
\`\`\`
|
|
647
|
+
|
|
648
|
+
If there are **uncommitted changes**:
|
|
649
|
+
1. Run \`git -C <worktreePath> diff\` to inspect them.
|
|
650
|
+
2. Derive a concise commit message in **conventional commit** format (e.g. \`feat: add payment gateway integration\`) based on the diff.
|
|
651
|
+
3. Present the proposed message to the user: _"Use this commit message, or provide your own?"_
|
|
652
|
+
4. Once confirmed, commit:
|
|
651
653
|
\`\`\`
|
|
652
|
-
|
|
654
|
+
git -C <worktreePath> add -A
|
|
655
|
+
git -C <worktreePath> commit -m "<confirmed-message>"
|
|
653
656
|
\`\`\`
|
|
654
657
|
|
|
655
|
-
|
|
656
|
-
|
|
658
|
+
Push the branch to remote:
|
|
659
|
+
|
|
660
|
+
\`\`\`
|
|
661
|
+
git -C <worktreePath> push --set-upstream origin <branch>
|
|
662
|
+
\`\`\`
|
|
663
|
+
|
|
664
|
+
## Step 3 — Report
|
|
657
665
|
|
|
658
|
-
|
|
666
|
+
Report the result of the command, including the full destination path.
|
|
659
667
|
|
|
660
668
|
${getCustomContextStep(npxCommand, 'done')}`,
|
|
661
669
|
},
|