musubix2 0.3.3 → 0.3.4
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/.github/skills/code-generator/SKILL.md +9 -0
- package/.github/skills/code-generator/scripts/explain.sh +4 -0
- package/.github/skills/code-generator/scripts/generate.sh +4 -0
- package/.github/skills/code-generator/scripts/scaffold.sh +4 -0
- package/.github/skills/code-generator/scripts/synthesis.sh +4 -0
- package/.github/skills/constitution-enforcer/SKILL.md +7 -0
- package/.github/skills/constitution-enforcer/scripts/check.sh +4 -0
- package/.github/skills/constitution-enforcer/scripts/validate.sh +4 -0
- package/.github/skills/design-generator/SKILL.md +9 -0
- package/.github/skills/design-generator/scripts/c4.sh +4 -0
- package/.github/skills/design-generator/scripts/decision.sh +4 -0
- package/.github/skills/design-generator/scripts/generate.sh +4 -0
- package/.github/skills/design-generator/scripts/verify.sh +4 -0
- package/.github/skills/orchestrator/SKILL.md +14 -0
- package/.github/skills/orchestrator/scripts/knowledge.sh +4 -0
- package/.github/skills/orchestrator/scripts/learn.sh +4 -0
- package/.github/skills/orchestrator/scripts/repl.sh +4 -0
- package/.github/skills/orchestrator/scripts/research.sh +4 -0
- package/.github/skills/orchestrator/scripts/security.sh +4 -0
- package/.github/skills/orchestrator/scripts/skills.sh +4 -0
- package/.github/skills/orchestrator/scripts/status.sh +4 -0
- package/.github/skills/orchestrator/scripts/watch.sh +4 -0
- package/.github/skills/orchestrator/scripts/workflow.sh +4 -0
- package/.github/skills/requirements-analyst/SKILL.md +11 -0
- package/.github/skills/requirements-analyst/scripts/analyze.sh +5 -0
- package/.github/skills/requirements-analyst/scripts/interview-answer.sh +4 -0
- package/.github/skills/requirements-analyst/scripts/interview-generate.sh +4 -0
- package/.github/skills/requirements-analyst/scripts/interview.sh +9 -0
- package/.github/skills/requirements-analyst/scripts/validate.sh +5 -0
- package/.github/skills/requirements-analyst/scripts/wizard.sh +4 -0
- package/.github/skills/review-orchestrator/SKILL.md +6 -0
- package/.github/skills/review-orchestrator/scripts/review.sh +13 -0
- package/.github/skills/test-engineer/SKILL.md +6 -0
- package/.github/skills/test-engineer/scripts/generate.sh +4 -0
- package/.github/skills/traceability-auditor/SKILL.md +8 -0
- package/.github/skills/traceability-auditor/scripts/matrix.sh +4 -0
- package/.github/skills/traceability-auditor/scripts/verify-detailed.sh +4 -0
- package/.github/skills/traceability-auditor/scripts/verify.sh +4 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -134,3 +134,12 @@ export function registerXCommand(program: Command): void {
|
|
|
134
134
|
1. **ESM 必須**: `type: "module"` を package.json に設定。`import` 文に `.js` 拡張子を付けること(TypeScript でもビルド後のパスを指定)。
|
|
135
135
|
2. **依存性逆転の徹底**: `domain/` 内で `infrastructure/` の具象クラスを import してはならない。必ずインターフェースを経由。
|
|
136
136
|
3. **ActionableError の使用**: 標準 Error ではなく `ActionableError` を使用し、ユーザーへの修正提案を含める。
|
|
137
|
+
|
|
138
|
+
## スクリプト
|
|
139
|
+
|
|
140
|
+
| スクリプト | 説明 | 使い方 |
|
|
141
|
+
|-----------|------|--------|
|
|
142
|
+
| `scripts/generate.sh` | 設計からコード生成 | `./scripts/generate.sh [args]` |
|
|
143
|
+
| `scripts/scaffold.sh` | プロジェクト構造スキャフォールド | `./scripts/scaffold.sh [args]` |
|
|
144
|
+
| `scripts/explain.sh` | コード説明 | `./scripts/explain.sh [args]` |
|
|
145
|
+
| `scripts/synthesis.sh` | プログラム合成 | `./scripts/synthesis.sh [args]` |
|
|
@@ -125,3 +125,10 @@ export interface Violation {
|
|
|
125
125
|
1. **憲法は不変**: 9条の内容を修正・削除するリクエストは拒否すること。修正プロセスは別途定義される。
|
|
126
126
|
2. **Phase 遷移ブロック**: Article IX 違反がある場合、Phase 遷移を即時ブロックする。ユーザーが override を要求しても拒否。
|
|
127
127
|
3. **steering/ の鮮度**: `project.yml` のタイムスタンプが古い場合、Article VI 違反の可能性がある。最終更新日を確認すること。
|
|
128
|
+
|
|
129
|
+
## スクリプト
|
|
130
|
+
|
|
131
|
+
| スクリプト | 説明 | 使い方 |
|
|
132
|
+
|-----------|------|--------|
|
|
133
|
+
| `scripts/validate.sh` | ポリシー準拠検証 | `./scripts/validate.sh [args]` |
|
|
134
|
+
| `scripts/check.sh` | 品質ゲートチェック | `./scripts/check.sh [args]` |
|
|
@@ -125,3 +125,12 @@ WHEN ユーザーが設計文書の検証を要求する:
|
|
|
125
125
|
1. **DES と REQ の N:M 関係**: 1つの DES が複数の REQ を参照する場合がある。逆も同様。全方向のリンクを維持すること。
|
|
126
126
|
2. **Mermaid 記法の制限**: classDiagram で `?` nullable 表記を使う場合、TypeScript 側の `| undefined` と一致させること。
|
|
127
127
|
3. **ADR のステータス管理**: `accept` と `deprecate` は状態遷移。直接 `superseded` にはできない(必ず `deprecated` を経由)。
|
|
128
|
+
|
|
129
|
+
## スクリプト
|
|
130
|
+
|
|
131
|
+
| スクリプト | 説明 | 使い方 |
|
|
132
|
+
|-----------|------|--------|
|
|
133
|
+
| `scripts/generate.sh` | 要件から設計生成 | `./scripts/generate.sh [args]` |
|
|
134
|
+
| `scripts/c4.sh` | C4 ダイアグラム生成 | `./scripts/c4.sh [args]` |
|
|
135
|
+
| `scripts/verify.sh` | 設計トレーサビリティ検証 | `./scripts/verify.sh [args]` |
|
|
136
|
+
| `scripts/decision.sh` | ADR 作成・管理 | `./scripts/decision.sh [args]` |
|
|
@@ -487,3 +487,17 @@ npm publish 時に `.github/skills/` と `.github/copilot-instructions.md` を
|
|
|
487
487
|
- `@musubix2/decisions` — `DecisionManager`
|
|
488
488
|
- `@musubix2/assistant-axis` — `DomainClassifier`, `DriftAnalyzer`
|
|
489
489
|
- `@musubix2/skill-manager` — `SkillRegistry`, `SkillManager`, `SkillExecutor`
|
|
490
|
+
|
|
491
|
+
## スクリプト
|
|
492
|
+
|
|
493
|
+
| スクリプト | 説明 | 使い方 |
|
|
494
|
+
|-----------|------|--------|
|
|
495
|
+
| `scripts/status.sh` | プロジェクトステータス表示 | `./scripts/status.sh` |
|
|
496
|
+
| `scripts/workflow.sh` | ワークフロー管理 | `./scripts/workflow.sh [args]` |
|
|
497
|
+
| `scripts/knowledge.sh` | ナレッジグラフ操作 | `./scripts/knowledge.sh [args]` |
|
|
498
|
+
| `scripts/research.sh` | ディープリサーチ | `./scripts/research.sh [args]` |
|
|
499
|
+
| `scripts/security.sh` | セキュリティスキャン | `./scripts/security.sh [args]` |
|
|
500
|
+
| `scripts/skills.sh` | スキル管理 | `./scripts/skills.sh [args]` |
|
|
501
|
+
| `scripts/learn.sh` | ライブラリ学習 | `./scripts/learn.sh [args]` |
|
|
502
|
+
| `scripts/watch.sh` | ファイルウォッチャー | `./scripts/watch.sh [args]` |
|
|
503
|
+
| `scripts/repl.sh` | インタラクティブ REPL | `./scripts/repl.sh` |
|
|
@@ -149,3 +149,14 @@ npx musubix req:interview --reset # リセット
|
|
|
149
149
|
1. **EARS パターン混在に注意**: 1つの要件に複数パターンが混在する場合、COMPLEX に分類する。「WHEN ... WHILE ...」は COMPLEX。
|
|
150
150
|
2. **受入基準の粒度**: 「動作すること」のような曖昧な基準は不合格。具体的なコマンド・出力・閾値を含めること。
|
|
151
151
|
3. **トレーサビリティの双方向性**: REQ → DES だけでなく、DES → REQ の逆参照も維持する。片方向のみは Article V 違反。
|
|
152
|
+
|
|
153
|
+
## スクリプト
|
|
154
|
+
|
|
155
|
+
| スクリプト | 説明 | 使い方 |
|
|
156
|
+
|-----------|------|--------|
|
|
157
|
+
| `scripts/analyze.sh` | 要件分析 | `./scripts/analyze.sh <requirements-file.md>` |
|
|
158
|
+
| `scripts/validate.sh` | EARS 準拠検証 | `./scripts/validate.sh <requirements-file.md>` |
|
|
159
|
+
| `scripts/interview.sh` | 1問1答インタビュー開始 | `./scripts/interview.sh [input-text]` |
|
|
160
|
+
| `scripts/interview-answer.sh` | インタビュー質問に回答 | `./scripts/interview-answer.sh <id> <response>` |
|
|
161
|
+
| `scripts/interview-generate.sh` | インタビューから要件生成 | `./scripts/interview-generate.sh` |
|
|
162
|
+
| `scripts/wizard.sh` | 要件ウィザード実行 | `./scripts/wizard.sh` |
|
|
@@ -154,3 +154,9 @@ const canProceed = orchestrator.canProceedToImplementation();
|
|
|
154
154
|
1. **モデル応答のばらつき**: 同じアーティファクトでもモデルの応答が異なる場合がある。合意チェックで一貫性を担保する。
|
|
155
155
|
2. **ラウンド数と品質のトレードオフ**: ラウンド数が多いほど品質は上がるが、時間コストも増加する。5 ラウンド制限はこのバランスを取るもの。
|
|
156
156
|
3. **Phase 遷移との連携**: review-orchestrator の承認は PhaseController の遷移条件に組み込まれる。review-orchestrator 単体では Phase を遷移させない。
|
|
157
|
+
|
|
158
|
+
## スクリプト
|
|
159
|
+
|
|
160
|
+
| スクリプト | 説明 | 使い方 |
|
|
161
|
+
|-----------|------|--------|
|
|
162
|
+
| `scripts/review.sh` | レビューワークフロー案内 | `./scripts/review.sh` |
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Start review workflow
|
|
3
|
+
set -e
|
|
4
|
+
echo "Review Orchestrator"
|
|
5
|
+
echo "==================="
|
|
6
|
+
echo "This skill orchestrates cross-model reviews."
|
|
7
|
+
echo ""
|
|
8
|
+
echo "Available commands:"
|
|
9
|
+
echo " npx musubix workflow # Workflow management"
|
|
10
|
+
echo " npx musubix policy # Policy validation"
|
|
11
|
+
echo " npx musubix trace:verify # Traceability check"
|
|
12
|
+
echo ""
|
|
13
|
+
echo "For full review orchestration, use the AI agent with this skill."
|
|
@@ -131,3 +131,9 @@ export default defineConfig({
|
|
|
131
131
|
1. **テストなしのコミット禁止**: Article III により、テストのないコードは Phase 4 完了の品質ゲートを通過できない。
|
|
132
132
|
2. **モック依存の分離**: `SkillTestHarness` パターンに従い、外部依存はモック注入する。テスト内で直接ファイルシステムにアクセスしない。
|
|
133
133
|
3. **EARS ID リンクの維持**: テスト名を変更する場合、REQ ID リンクも必ず更新する。`traceability-auditor` で検証可能。
|
|
134
|
+
|
|
135
|
+
## スクリプト
|
|
136
|
+
|
|
137
|
+
| スクリプト | 説明 | 使い方 |
|
|
138
|
+
|-----------|------|--------|
|
|
139
|
+
| `scripts/generate.sh` | テスト生成 | `./scripts/generate.sh [args]` |
|
|
@@ -107,3 +107,11 @@ WHEN ユーザーがトレーサビリティの同期を要求する:
|
|
|
107
107
|
1. **N:M 関係の扱い**: 1つの REQ が複数の DES にマッピングされる場合がある。マトリクスでは全組み合わせを列挙すること。
|
|
108
108
|
2. **DES-SDD-002a/b/c のような複合 ID**: サフィックス付き ID も個別にトレースすること。グループ化表記(`002a/b/c`)は表示用。
|
|
109
109
|
3. **コード内の REQ ID コメント**: `// REQ-XXX-NNN` 形式のコメントを検索対象にする。テスト内の `describe('REQ-XXX-NNN: ...')` も対象。
|
|
110
|
+
|
|
111
|
+
## スクリプト
|
|
112
|
+
|
|
113
|
+
| スクリプト | 説明 | 使い方 |
|
|
114
|
+
|-----------|------|--------|
|
|
115
|
+
| `scripts/verify.sh` | トレーサビリティ検証 | `./scripts/verify.sh [args]` |
|
|
116
|
+
| `scripts/matrix.sh` | トレーサビリティマトリクス生成 | `./scripts/matrix.sh [args]` |
|
|
117
|
+
| `scripts/verify-detailed.sh` | 詳細トレーサビリティ検証 | `./scripts/verify-detailed.sh [args]` |
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { EARSValidator as _EARSValidator, MarkdownEARSParser as _MarkdownEARSParser, RequirementsValidator as _RequirementsValidator } from '@musubix2/core';
|
|
10
10
|
export { ActionableError, ErrorCodes, CommonErrors, ErrorFormatter, CircuitBreaker, retryWithBackoff, createGracefulDegradation, Logger, AuditLogger, ConfigLoader, EARSValidator, createEARSValidator, MarkdownEARSParser, RequirementsValidator, createMarkdownEARSParser, createRequirementsValidator, ReplEngine, ReasoningChainRecorder, ExplanationGenerator, InMemoryRepository, createInMemoryRepository, ExitCode, formatTable, formatSuccess, formatError, type EARSPattern, type ParsedRequirement, type ValidationResult, type ErrorSeverity, type MuSubixConfig, type ReplCommand, type ReasoningChain, } from '@musubix2/core';
|
|
11
|
-
export declare const MUSUBI_VERSION = "0.3.
|
|
11
|
+
export declare const MUSUBI_VERSION = "0.3.4";
|
|
12
12
|
export { CLIDispatcher, createCLIDispatcher, getDefaultCommands, parseArgs, showHelp, handleInit, handleTasksValidate, handleTasksList, handleTasksStats, parseTaskFile, handleSkills, handleKnowledge, handleDecision, handleDeepResearch, handleRepl, handleScaffold, handleExplain, handleLearn, handleSynthesis, handleWatch, type CLICommand, type CLIConfig, type ParsedArgs, } from './cli.js';
|
|
13
13
|
/**
|
|
14
14
|
* Quick-start helper: create a configured EARS validator + parser combo.
|
package/dist/index.js
CHANGED
|
@@ -13454,7 +13454,7 @@ function createCLIDispatcher() {
|
|
|
13454
13454
|
}
|
|
13455
13455
|
|
|
13456
13456
|
// dist/index.js
|
|
13457
|
-
var MUSUBI_VERSION = "0.3.
|
|
13457
|
+
var MUSUBI_VERSION = "0.3.4";
|
|
13458
13458
|
function createEARSPipeline() {
|
|
13459
13459
|
const validator = createEARSValidator();
|
|
13460
13460
|
const parser = createMarkdownEARSParser();
|