@dailephd/my-dev-kit-orchestrator 1.0.0
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/README.md +295 -0
- package/dist/artifactChecker.d.ts +31 -0
- package/dist/artifactChecker.d.ts.map +1 -0
- package/dist/artifactChecker.js +341 -0
- package/dist/artifactChecker.js.map +1 -0
- package/dist/artifactLifecycle.d.ts +30 -0
- package/dist/artifactLifecycle.d.ts.map +1 -0
- package/dist/artifactLifecycle.js +176 -0
- package/dist/artifactLifecycle.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +7 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/check.d.ts +3 -0
- package/dist/commands/check.d.ts.map +1 -0
- package/dist/commands/check.js +494 -0
- package/dist/commands/check.js.map +1 -0
- package/dist/commands/export.d.ts +16 -0
- package/dist/commands/export.d.ts.map +1 -0
- package/dist/commands/export.js +248 -0
- package/dist/commands/export.js.map +1 -0
- package/dist/commands/init.d.ts +3 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +59 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/list.d.ts +3 -0
- package/dist/commands/list.d.ts.map +1 -0
- package/dist/commands/list.js +101 -0
- package/dist/commands/list.js.map +1 -0
- package/dist/commands/mark.d.ts +3 -0
- package/dist/commands/mark.d.ts.map +1 -0
- package/dist/commands/mark.js +139 -0
- package/dist/commands/mark.js.map +1 -0
- package/dist/commands/prompt.d.ts +3 -0
- package/dist/commands/prompt.d.ts.map +1 -0
- package/dist/commands/prompt.js +198 -0
- package/dist/commands/prompt.js.map +1 -0
- package/dist/commands/start.d.ts +3 -0
- package/dist/commands/start.d.ts.map +1 -0
- package/dist/commands/start.js +100 -0
- package/dist/commands/start.js.map +1 -0
- package/dist/commands/status.d.ts +3 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +191 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/contractChecker.d.ts +53 -0
- package/dist/contractChecker.d.ts.map +1 -0
- package/dist/contractChecker.js +319 -0
- package/dist/contractChecker.js.map +1 -0
- package/dist/correctionRouter.d.ts +37 -0
- package/dist/correctionRouter.d.ts.map +1 -0
- package/dist/correctionRouter.js +142 -0
- package/dist/correctionRouter.js.map +1 -0
- package/dist/correctionState.d.ts +16 -0
- package/dist/correctionState.d.ts.map +1 -0
- package/dist/correctionState.js +64 -0
- package/dist/correctionState.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/judgeParser.d.ts +16 -0
- package/dist/judgeParser.d.ts.map +1 -0
- package/dist/judgeParser.js +52 -0
- package/dist/judgeParser.js.map +1 -0
- package/dist/program.d.ts +3 -0
- package/dist/program.d.ts.map +1 -0
- package/dist/program.js +33 -0
- package/dist/program.js.map +1 -0
- package/dist/promptChecker.d.ts +27 -0
- package/dist/promptChecker.d.ts.map +1 -0
- package/dist/promptChecker.js +152 -0
- package/dist/promptChecker.js.map +1 -0
- package/dist/promptGenerator.d.ts +12 -0
- package/dist/promptGenerator.d.ts.map +1 -0
- package/dist/promptGenerator.js +2556 -0
- package/dist/promptGenerator.js.map +1 -0
- package/dist/run.d.ts +30 -0
- package/dist/run.d.ts.map +1 -0
- package/dist/run.js +141 -0
- package/dist/run.js.map +1 -0
- package/dist/stageDetector.d.ts +29 -0
- package/dist/stageDetector.d.ts.map +1 -0
- package/dist/stageDetector.js +161 -0
- package/dist/stageDetector.js.map +1 -0
- package/dist/traceChecker.d.ts +46 -0
- package/dist/traceChecker.d.ts.map +1 -0
- package/dist/traceChecker.js +257 -0
- package/dist/traceChecker.js.map +1 -0
- package/dist/traceModel.d.ts +7 -0
- package/dist/traceModel.d.ts.map +1 -0
- package/dist/traceModel.js +37 -0
- package/dist/traceModel.js.map +1 -0
- package/dist/traceParser.d.ts +27 -0
- package/dist/traceParser.d.ts.map +1 -0
- package/dist/traceParser.js +102 -0
- package/dist/traceParser.js.map +1 -0
- package/dist/types.d.ts +11 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +9 -0
- package/dist/types.js.map +1 -0
- package/dist/workflows.d.ts +16 -0
- package/dist/workflows.d.ts.map +1 -0
- package/dist/workflows.js +170 -0
- package/dist/workflows.js.map +1 -0
- package/dist/workspace.d.ts +13 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/workspace.js +70 -0
- package/dist/workspace.js.map +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getWorkflow = getWorkflow;
|
|
4
|
+
exports.getWorkflowOrThrow = getWorkflowOrThrow;
|
|
5
|
+
exports.getArtifactFile = getArtifactFile;
|
|
6
|
+
exports.getAllWorkflows = getAllWorkflows;
|
|
7
|
+
const types_1 = require("./types");
|
|
8
|
+
const ARTIFACT_MAP = {
|
|
9
|
+
'request-brief': 'artifacts/request-brief.txt',
|
|
10
|
+
'architecture-context': 'artifacts/architecture-context-packet.txt',
|
|
11
|
+
'behavior-model': 'artifacts/behavior-model.txt',
|
|
12
|
+
'pseudocode-packet': 'artifacts/pseudocode-packet.txt',
|
|
13
|
+
'test-strategy': 'artifacts/test-strategy-packet.txt',
|
|
14
|
+
'implementation': 'artifacts/implementation-report.txt',
|
|
15
|
+
'test-implementation': 'artifacts/test-implementation-report.txt',
|
|
16
|
+
'verification': 'artifacts/verification-report.txt',
|
|
17
|
+
'judge': 'artifacts/judge-report.txt',
|
|
18
|
+
'final-report': 'artifacts/final-report.txt',
|
|
19
|
+
// repair-specific
|
|
20
|
+
'observed-behavior-report': 'artifacts/observed-behavior-report.txt',
|
|
21
|
+
'behavior-trace': 'artifacts/behavior-trace.txt',
|
|
22
|
+
'divergence-report': 'artifacts/divergence-report.txt',
|
|
23
|
+
'correction-design': 'artifacts/correction-design.txt',
|
|
24
|
+
'regression-test-strategy': 'artifacts/regression-test-strategy.txt',
|
|
25
|
+
// test-specific
|
|
26
|
+
'test-target-brief': 'artifacts/test-target-brief.txt',
|
|
27
|
+
'behavior-reconstruction': 'artifacts/behavior-reconstruction.txt',
|
|
28
|
+
'pseudocode-summary': 'artifacts/pseudocode-summary.txt',
|
|
29
|
+
// refactor-specific
|
|
30
|
+
'refactor-brief': 'artifacts/refactor-brief.txt',
|
|
31
|
+
'existing-behavior-map': 'artifacts/existing-behavior-map.txt',
|
|
32
|
+
'preserved-invariant-list': 'artifacts/preserved-invariant-list.txt',
|
|
33
|
+
'compatibility-test-strategy': 'artifacts/compatibility-test-strategy.txt',
|
|
34
|
+
'refactor-pseudocode-packet': 'artifacts/refactor-pseudocode-packet.txt',
|
|
35
|
+
// harden-specific
|
|
36
|
+
'hardening-brief': 'artifacts/hardening-brief.txt',
|
|
37
|
+
'assumption-report': 'artifacts/assumption-report.txt',
|
|
38
|
+
'failure-mode-matrix': 'artifacts/failure-mode-matrix.txt',
|
|
39
|
+
'guard-pseudocode-packet': 'artifacts/guard-pseudocode-packet.txt',
|
|
40
|
+
'resilience-test-strategy': 'artifacts/resilience-test-strategy.txt',
|
|
41
|
+
// extraction-specific
|
|
42
|
+
'source-architecture-context': 'artifacts/source-architecture-context-packet.txt',
|
|
43
|
+
'source-workflow-map': 'artifacts/source-workflow-map.txt',
|
|
44
|
+
'porting-map': 'artifacts/source-to-target-porting-map.txt',
|
|
45
|
+
'golden-behavior-contract': 'artifacts/golden-behavior-contract.txt',
|
|
46
|
+
'target-architecture': 'artifacts/target-architecture-proposal.txt',
|
|
47
|
+
// design trace
|
|
48
|
+
'design-map': 'artifacts/design-map.txt',
|
|
49
|
+
};
|
|
50
|
+
const ADDITIONAL_ARTIFACT_MAP = {
|
|
51
|
+
'porting-map': ['artifacts/do-not-port-list.txt'],
|
|
52
|
+
};
|
|
53
|
+
function buildStages(stageNames) {
|
|
54
|
+
return stageNames.map((name, index) => {
|
|
55
|
+
const num = String(index + 1).padStart(2, '0');
|
|
56
|
+
const artifactFile = ARTIFACT_MAP[name];
|
|
57
|
+
if (!artifactFile) {
|
|
58
|
+
throw new Error(`No artifact mapping for stage: ${name}`);
|
|
59
|
+
}
|
|
60
|
+
const additionalArtifactFiles = ADDITIONAL_ARTIFACT_MAP[name];
|
|
61
|
+
return {
|
|
62
|
+
name,
|
|
63
|
+
artifactFile,
|
|
64
|
+
promptFile: `prompts/${num}-${name}.prompt.txt`,
|
|
65
|
+
...(additionalArtifactFiles ? { additionalArtifactFiles } : {}),
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
const FEATURE_STAGES = buildStages([
|
|
70
|
+
'request-brief',
|
|
71
|
+
'architecture-context',
|
|
72
|
+
'behavior-model',
|
|
73
|
+
'pseudocode-packet',
|
|
74
|
+
'test-strategy',
|
|
75
|
+
'implementation',
|
|
76
|
+
'test-implementation',
|
|
77
|
+
'verification',
|
|
78
|
+
'judge',
|
|
79
|
+
'final-report',
|
|
80
|
+
]);
|
|
81
|
+
const REPAIR_STAGES = buildStages([
|
|
82
|
+
'observed-behavior-report',
|
|
83
|
+
'architecture-context',
|
|
84
|
+
'behavior-trace',
|
|
85
|
+
'divergence-report',
|
|
86
|
+
'correction-design',
|
|
87
|
+
'regression-test-strategy',
|
|
88
|
+
'implementation',
|
|
89
|
+
'test-implementation',
|
|
90
|
+
'verification',
|
|
91
|
+
'judge',
|
|
92
|
+
'final-report',
|
|
93
|
+
]);
|
|
94
|
+
const TEST_STAGES = buildStages([
|
|
95
|
+
'test-target-brief',
|
|
96
|
+
'architecture-context',
|
|
97
|
+
'behavior-reconstruction',
|
|
98
|
+
'pseudocode-summary',
|
|
99
|
+
'test-strategy',
|
|
100
|
+
'test-implementation',
|
|
101
|
+
'verification',
|
|
102
|
+
'judge',
|
|
103
|
+
'final-report',
|
|
104
|
+
]);
|
|
105
|
+
const REFACTOR_STAGES = buildStages([
|
|
106
|
+
'refactor-brief',
|
|
107
|
+
'architecture-context',
|
|
108
|
+
'existing-behavior-map',
|
|
109
|
+
'preserved-invariant-list',
|
|
110
|
+
'compatibility-test-strategy',
|
|
111
|
+
'refactor-pseudocode-packet',
|
|
112
|
+
'implementation',
|
|
113
|
+
'test-implementation',
|
|
114
|
+
'verification',
|
|
115
|
+
'judge',
|
|
116
|
+
'final-report',
|
|
117
|
+
]);
|
|
118
|
+
const HARDEN_STAGES = buildStages([
|
|
119
|
+
'hardening-brief',
|
|
120
|
+
'architecture-context',
|
|
121
|
+
'assumption-report',
|
|
122
|
+
'failure-mode-matrix',
|
|
123
|
+
'guard-pseudocode-packet',
|
|
124
|
+
'resilience-test-strategy',
|
|
125
|
+
'implementation',
|
|
126
|
+
'test-implementation',
|
|
127
|
+
'verification',
|
|
128
|
+
'judge',
|
|
129
|
+
'final-report',
|
|
130
|
+
]);
|
|
131
|
+
const EXTRACTION_STAGES = buildStages([
|
|
132
|
+
'request-brief',
|
|
133
|
+
'source-architecture-context',
|
|
134
|
+
'source-workflow-map',
|
|
135
|
+
'porting-map',
|
|
136
|
+
'golden-behavior-contract',
|
|
137
|
+
'target-architecture',
|
|
138
|
+
'behavior-model',
|
|
139
|
+
'pseudocode-packet',
|
|
140
|
+
'test-strategy',
|
|
141
|
+
'implementation',
|
|
142
|
+
'test-implementation',
|
|
143
|
+
'verification',
|
|
144
|
+
'judge',
|
|
145
|
+
'final-report',
|
|
146
|
+
]);
|
|
147
|
+
const WORKFLOW_DEFINITIONS = {
|
|
148
|
+
feature: { mode: 'feature', stages: FEATURE_STAGES },
|
|
149
|
+
repair: { mode: 'repair', stages: REPAIR_STAGES },
|
|
150
|
+
test: { mode: 'test', stages: TEST_STAGES },
|
|
151
|
+
refactor: { mode: 'refactor', stages: REFACTOR_STAGES },
|
|
152
|
+
harden: { mode: 'harden', stages: HARDEN_STAGES },
|
|
153
|
+
extraction: { mode: 'extraction', stages: EXTRACTION_STAGES },
|
|
154
|
+
};
|
|
155
|
+
function getWorkflow(mode) {
|
|
156
|
+
return WORKFLOW_DEFINITIONS[mode];
|
|
157
|
+
}
|
|
158
|
+
function getWorkflowOrThrow(mode) {
|
|
159
|
+
if (!(0, types_1.isValidMode)(mode)) {
|
|
160
|
+
throw new Error(`Invalid workflow mode: "${mode}". Allowed: ${types_1.VALID_MODES.join(', ')}`);
|
|
161
|
+
}
|
|
162
|
+
return WORKFLOW_DEFINITIONS[mode];
|
|
163
|
+
}
|
|
164
|
+
function getArtifactFile(stageName) {
|
|
165
|
+
return ARTIFACT_MAP[stageName];
|
|
166
|
+
}
|
|
167
|
+
function getAllWorkflows() {
|
|
168
|
+
return types_1.VALID_MODES.map((mode) => WORKFLOW_DEFINITIONS[mode]);
|
|
169
|
+
}
|
|
170
|
+
//# sourceMappingURL=workflows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflows.js","sourceRoot":"","sources":["../src/workflows.ts"],"names":[],"mappings":";;AA2KA,kCAEC;AAED,gDAKC;AAED,0CAEC;AAED,0CAEC;AA5LD,mCAAiE;AAcjE,MAAM,YAAY,GAA2B;IAC3C,eAAe,EAAE,6BAA6B;IAC9C,sBAAsB,EAAE,2CAA2C;IACnE,gBAAgB,EAAE,8BAA8B;IAChD,mBAAmB,EAAE,iCAAiC;IACtD,eAAe,EAAE,oCAAoC;IACrD,gBAAgB,EAAE,qCAAqC;IACvD,qBAAqB,EAAE,0CAA0C;IACjE,cAAc,EAAE,mCAAmC;IACnD,OAAO,EAAE,4BAA4B;IACrC,cAAc,EAAE,4BAA4B;IAC5C,kBAAkB;IAClB,0BAA0B,EAAE,wCAAwC;IACpE,gBAAgB,EAAE,8BAA8B;IAChD,mBAAmB,EAAE,iCAAiC;IACtD,mBAAmB,EAAE,iCAAiC;IACtD,0BAA0B,EAAE,wCAAwC;IACpE,gBAAgB;IAChB,mBAAmB,EAAE,iCAAiC;IACtD,yBAAyB,EAAE,uCAAuC;IAClE,oBAAoB,EAAE,k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
4
|
+
projectRoot: string;
|
|
5
|
+
runDirectory: string;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
version: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function getWorkspaceRoot(projectRoot: string): string;
|
|
10
|
+
export declare function getRunsDir(projectRoot: string): string;
|
|
11
|
+
export declare function initWorkspace(projectRoot: string): void;
|
|
12
|
+
export declare function workspaceExists(projectRoot: string): boolean;
|
|
13
|
+
//# sourceMappingURL=workspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../src/workspace.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,6BAA6B,CAAC;AACxD,eAAO,MAAM,QAAQ,SAAS,CAAC;AAE/B,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,wBAAgB,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAiBvD;AAED,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAE5D"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.RUNS_DIR = exports.WORKSPACE_DIR = void 0;
|
|
37
|
+
exports.getWorkspaceRoot = getWorkspaceRoot;
|
|
38
|
+
exports.getRunsDir = getRunsDir;
|
|
39
|
+
exports.initWorkspace = initWorkspace;
|
|
40
|
+
exports.workspaceExists = workspaceExists;
|
|
41
|
+
const fs = __importStar(require("fs"));
|
|
42
|
+
const path = __importStar(require("path"));
|
|
43
|
+
exports.WORKSPACE_DIR = '.my-dev-kit-orchestrator';
|
|
44
|
+
exports.RUNS_DIR = 'runs';
|
|
45
|
+
function getWorkspaceRoot(projectRoot) {
|
|
46
|
+
return path.join(projectRoot, exports.WORKSPACE_DIR);
|
|
47
|
+
}
|
|
48
|
+
function getRunsDir(projectRoot) {
|
|
49
|
+
return path.join(projectRoot, exports.WORKSPACE_DIR, exports.RUNS_DIR);
|
|
50
|
+
}
|
|
51
|
+
function initWorkspace(projectRoot) {
|
|
52
|
+
const workspaceDir = getWorkspaceRoot(projectRoot);
|
|
53
|
+
const runsDir = path.join(workspaceDir, exports.RUNS_DIR);
|
|
54
|
+
fs.mkdirSync(workspaceDir, { recursive: true });
|
|
55
|
+
fs.mkdirSync(runsDir, { recursive: true });
|
|
56
|
+
const configPath = path.join(workspaceDir, 'config.json');
|
|
57
|
+
if (!fs.existsSync(configPath)) {
|
|
58
|
+
const config = {
|
|
59
|
+
projectRoot,
|
|
60
|
+
runDirectory: runsDir,
|
|
61
|
+
createdAt: new Date().toISOString(),
|
|
62
|
+
version: '0.1.0',
|
|
63
|
+
};
|
|
64
|
+
fs.writeFileSync(configPath, JSON.stringify(config, null, 2), 'utf8');
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function workspaceExists(projectRoot) {
|
|
68
|
+
return fs.existsSync(getWorkspaceRoot(projectRoot));
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=workspace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../src/workspace.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,4CAEC;AAED,gCAEC;AAED,sCAiBC;AAED,0CAEC;AA1CD,uCAAyB;AACzB,2CAA6B;AAEhB,QAAA,aAAa,GAAG,0BAA0B,CAAC;AAC3C,QAAA,QAAQ,GAAG,MAAM,CAAC;AAS/B,SAAgB,gBAAgB,CAAC,WAAmB;IAClD,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,qBAAa,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,UAAU,CAAC,WAAmB;IAC5C,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,qBAAa,EAAE,gBAAQ,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,aAAa,CAAC,WAAmB;IAC/C,MAAM,YAAY,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;IACnD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAQ,CAAC,CAAC;IAElD,EAAE,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAChD,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAE3C,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC;IAC1D,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QAC/B,MAAM,MAAM,GAAoB;YAC9B,WAAW;YACX,YAAY,EAAE,OAAO;YACrB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACnC,OAAO,EAAE,OAAO;SACjB,CAAC;QACF,EAAE,CAAC,aAAa,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IACxE,CAAC;AACH,CAAC;AAED,SAAgB,eAAe,CAAC,WAAmB;IACjD,OAAO,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC;AACtD,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dailephd/my-dev-kit-orchestrator",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "CLI-first workflow tool for design-first software development with coding agents",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/dailephd/my-dev-kit-orchestrator.git"
|
|
9
|
+
},
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/dailephd/my-dev-kit-orchestrator/issues"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/dailephd/my-dev-kit-orchestrator#readme",
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"bin": {
|
|
18
|
+
"my-dev-kit-orchestrator": "dist/cli.js"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsc",
|
|
22
|
+
"build:watch": "tsc --watch",
|
|
23
|
+
"start": "node dist/cli.js",
|
|
24
|
+
"smoke:cli": "node scripts/cli-smoke.mjs",
|
|
25
|
+
"test": "jest",
|
|
26
|
+
"test:watch": "jest --watch",
|
|
27
|
+
"lint": "eslint src --ext .ts",
|
|
28
|
+
"lint:docs": "markdownlint-cli2 \"README.md\" \"CHANGELOG.md\" \"docs/**/*.md\"",
|
|
29
|
+
"typecheck": "tsc --noEmit",
|
|
30
|
+
"clean": "rimraf dist"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist"
|
|
34
|
+
],
|
|
35
|
+
"keywords": [
|
|
36
|
+
"cli",
|
|
37
|
+
"workflow",
|
|
38
|
+
"coding-agent",
|
|
39
|
+
"design-first"
|
|
40
|
+
],
|
|
41
|
+
"author": "",
|
|
42
|
+
"license": "MIT",
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"commander": "^11.1.0"
|
|
45
|
+
},
|
|
46
|
+
"overrides": {
|
|
47
|
+
"js-yaml": "^4.2.0",
|
|
48
|
+
"markdown-it": "^14.2.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@types/jest": "^30.0.0",
|
|
52
|
+
"@types/node": "^20.10.0",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^8.62.0",
|
|
54
|
+
"@typescript-eslint/parser": "^8.62.0",
|
|
55
|
+
"eslint": "^8.55.0",
|
|
56
|
+
"jest": "^30.4.2",
|
|
57
|
+
"markdownlint-cli2": "^0.22.1",
|
|
58
|
+
"rimraf": "^5.0.5",
|
|
59
|
+
"ts-jest": "^29.4.11",
|
|
60
|
+
"typescript": "^5.3.3"
|
|
61
|
+
}
|
|
62
|
+
}
|