@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.
Files changed (2) hide show
  1. package/dist/index.js +40 -32
  2. 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 }) => `## Instructions
609
+ body: ({ npxCommand }) => `## Step 1 — Verify tasks
610
+
611
+ Confirm all tasks in \`osddt.tasks.md\` are checked off (\`- [x]\`).
610
612
 
611
- 1. Confirm all tasks in \`osddt.tasks.md\` are checked off (\`- [x]\`)
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
- 3. Based on the result:
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
- **If it exits with code 1 (standard feature):** use the project path from \`.osddtrc\`, then run:
621
- \`\`\`
622
- ${npxCommand} done <feature-name> --dir <project-path>
623
- \`\`\`
624
- Skip to step 8.
622
+ ## If standard feature
625
623
 
626
- **If it exits with code 0 (worktree feature):** parse the JSON to get \`worktreePath\` and \`branch\`, derive \`<project-path>\` from \`workingDir\`, then continue below.
624
+ Run the done command using the project path from \`.osddtrc\`:
627
625
 
628
- 4. Check for uncommitted changes inside the worktree:
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
- 5. If there are **uncommitted changes**:
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
- 6. Push the branch to remote (covers both first push and subsequent pushes):
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
- 7. Run the done command with the \`--worktree\` flag:
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
- ${npxCommand} done <feature-name> --dir <project-path> --worktree
654
+ git -C <worktreePath> add -A
655
+ git -C <worktreePath> commit -m "<confirmed-message>"
653
656
  \`\`\`
654
657
 
655
- 8. The command will automatically prefix the destination folder name with today's date in \`YYYY-MM-DD\` format.
656
- For example, \`working-on/feature-a\` will be moved to \`done/YYYY-MM-DD-feature-a\`.
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
- 9. Report the result of the command, including the full destination path
666
+ Report the result of the command, including the full destination path.
659
667
 
660
668
  ${getCustomContextStep(npxCommand, 'done')}`,
661
669
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dezkareid/osddt",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "description": "Package for Spec-Driven Development workflow",
5
5
  "keywords": [
6
6
  "spec-driven",