musubix2 0.5.84 → 0.5.85

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.
@@ -1 +1 @@
1
- {"generator":"musubix2","version":"0.5.84","timestamp":"2026-07-11T22:51:38.885Z"}
1
+ {"generator":"musubix2","version":"0.5.85","timestamp":"2026-07-11T23:00:53.949Z"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.0",
3
- "generatedAt": "2026-07-11T22:51:38.916Z",
3
+ "generatedAt": "2026-07-11T23:00:53.986Z",
4
4
  "entries": [
5
5
  {
6
6
  "platform": "copilot",
package/dist/cli.js CHANGED
@@ -2952,11 +2952,15 @@ var init_design = __esm({
2952
2952
  const interfaces = [];
2953
2953
  for (const req of reqs) {
2954
2954
  const words = req.title.split(/[\s_\-,、]+/).map((w) => w.replace(/[^A-Za-z0-9]/g, "")).filter((w) => w.length > 3);
2955
+ let name = "";
2955
2956
  if (words.length > 0) {
2956
- const name = words.map((w) => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()).join("");
2957
- if (name) {
2958
- interfaces.push(`I${name}`);
2959
- }
2957
+ name = words.map((w) => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()).join("");
2958
+ } else {
2959
+ const op = deriveOperation(req.text, "");
2960
+ name = op ? op.charAt(0).toUpperCase() + op.slice(1) : "";
2961
+ }
2962
+ if (name) {
2963
+ interfaces.push(`I${name}`);
2960
2964
  }
2961
2965
  }
2962
2966
  return [...new Set(interfaces)];
package/dist/index.js CHANGED
@@ -2952,11 +2952,15 @@ var init_design = __esm({
2952
2952
  const interfaces = [];
2953
2953
  for (const req of reqs) {
2954
2954
  const words = req.title.split(/[\s_\-,、]+/).map((w) => w.replace(/[^A-Za-z0-9]/g, "")).filter((w) => w.length > 3);
2955
+ let name = "";
2955
2956
  if (words.length > 0) {
2956
- const name = words.map((w) => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()).join("");
2957
- if (name) {
2958
- interfaces.push(`I${name}`);
2959
- }
2957
+ name = words.map((w) => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase()).join("");
2958
+ } else {
2959
+ const op = deriveOperation(req.text, "");
2960
+ name = op ? op.charAt(0).toUpperCase() + op.slice(1) : "";
2961
+ }
2962
+ if (name) {
2963
+ interfaces.push(`I${name}`);
2960
2964
  }
2961
2965
  }
2962
2966
  return [...new Set(interfaces)];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musubix2",
3
- "version": "0.5.84",
3
+ "version": "0.5.85",
4
4
  "description": "MUSUBIX2 — Specification Driven Development System",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",