lee-spec-kit 0.4.0 → 0.4.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 +12 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1226,12 +1226,21 @@ function getStepDefinitions(lang) {
1226
1226
  step: 6,
1227
1227
  name: tr(lang, "steps", "tasksWrite"),
1228
1228
  checklist: {
1229
- done: (f) => f.docs.tasksExists && f.tasks.total > 0,
1229
+ done: (f) => f.docs.tasksExists && f.tasks.total > 0 && f.docs.prFieldExists && f.docs.prStatusFieldExists,
1230
1230
  detail: (f) => f.tasks.total > 0 ? `(${f.tasks.total})` : ""
1231
1231
  },
1232
1232
  current: {
1233
- when: (f) => f.planStatus === "Approved" && (!f.docs.tasksExists || f.tasks.total === 0),
1233
+ when: (f) => f.planStatus === "Approved" && (!f.docs.tasksExists || f.tasks.total === 0 || f.docs.tasksExists && f.tasks.total > 0 && (!f.docs.prFieldExists || !f.docs.prStatusFieldExists)),
1234
1234
  actions: (f) => {
1235
+ if (f.docs.tasksExists && f.tasks.total > 0 && (!f.docs.prFieldExists || !f.docs.prStatusFieldExists)) {
1236
+ return [
1237
+ {
1238
+ type: "instruction",
1239
+ requiresUserOk: true,
1240
+ message: tr(lang, "messages", "prLegacyAsk")
1241
+ }
1242
+ ];
1243
+ }
1235
1244
  if (!f.docs.tasksExists) {
1236
1245
  return [
1237
1246
  {
@@ -1661,7 +1670,7 @@ function parseCompletionChecklist(content) {
1661
1670
  async function parseFeature(featurePath, type, context, options) {
1662
1671
  const lang = options.lang;
1663
1672
  const folderName = path4.basename(featurePath);
1664
- const match = folderName.match(/^(F\\d+)-(.+)$/);
1673
+ const match = folderName.match(/^(F\d+)-(.+)$/);
1665
1674
  const id = match?.[1];
1666
1675
  const slug = match?.[2] || folderName;
1667
1676
  const specPath = path4.join(featurePath, "spec.md");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lee-spec-kit",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Project documentation structure generator for AI-assisted development",
5
5
  "type": "module",
6
6
  "bin": {