claude-flow-novice 2.0.8 → 2.0.9
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/dist/src/booster/performance-benchmark.js +1 -1
- package/dist/src/booster/wasm-demo.js +1 -1
- package/dist/src/cli/command-registry.js +2 -2
- package/dist/src/cli/simple-commands/sparc/refinement.js +3 -3
- package/dist/src/commands/suggest-templates.js +4 -4
- package/dist/src/slash-commands/parse-epic.js +1 -1
- package/dist/src/utils/error-handler.js +1 -1
- package/package.json +1 -1
|
@@ -447,7 +447,7 @@ export class PerformanceBenchmark {
|
|
|
447
447
|
{
|
|
448
448
|
name: 'module-exports',
|
|
449
449
|
content: `
|
|
450
|
-
import { utils } from './utils';
|
|
450
|
+
import { utils } from './utils/index.js';
|
|
451
451
|
export class Helper {
|
|
452
452
|
static format(text) {
|
|
453
453
|
return utils.trim(text.toLowerCase());
|
|
@@ -45,8 +45,8 @@ import { hookCommand } from './commands/hook.js';
|
|
|
45
45
|
// Maestro commands integrated with clean implementation
|
|
46
46
|
// Note: Maestro TypeScript commands now integrated directly in ./commands/maestro.ts
|
|
47
47
|
// Note: TypeScript imports commented out for Node.js compatibility
|
|
48
|
-
// import { ruvSwarmAction } from './commands/ruv-swarm.
|
|
49
|
-
// import { configIntegrationAction } from './commands/config-integration.
|
|
48
|
+
// import { ruvSwarmAction } from './commands/ruv-swarm.js';
|
|
49
|
+
// import { configIntegrationAction } from './commands/config-integration.js';
|
|
50
50
|
|
|
51
51
|
// Command registry for extensible CLI
|
|
52
52
|
export const commandRegistry = new Map();
|
|
@@ -522,7 +522,7 @@ const ERROR_MESSAGES = {
|
|
|
522
522
|
generateMainImplementationFile(component) {
|
|
523
523
|
const className = component.name;
|
|
524
524
|
const dependencies = component.dependencies
|
|
525
|
-
.map((dep) => `import { ${dep} } from './${dep}';`)
|
|
525
|
+
.map((dep) => `import { ${dep} } from './${dep}/index.js';`)
|
|
526
526
|
.join('\n');
|
|
527
527
|
|
|
528
528
|
const code = `${dependencies}
|
|
@@ -723,8 +723,8 @@ export default ${className};`;
|
|
|
723
723
|
generateTestFile(component) {
|
|
724
724
|
const className = component.name;
|
|
725
725
|
|
|
726
|
-
const code = `import { ${className} } from '../${component.type}/${className}';
|
|
727
|
-
${component.dependencies.map((dep) => `import { Mock${dep} } from '../mocks/Mock${dep}';`).join('\n')}
|
|
726
|
+
const code = `import { ${className} } from '../${component.type}/${className}/index.js';
|
|
727
|
+
${component.dependencies.map((dep) => `import { Mock${dep} } from '../mocks/Mock${dep}/index.js';`).join('\n')}
|
|
728
728
|
|
|
729
729
|
describe('${className}', () => {
|
|
730
730
|
let ${className.toLowerCase()};
|
|
@@ -253,7 +253,7 @@ export default {{ComponentName}};`;
|
|
|
253
253
|
return `import React from 'react';
|
|
254
254
|
import { render, screen } from '@testing-library/react';
|
|
255
255
|
import '@testing-library/jest-dom';
|
|
256
|
-
import {{ComponentName}} from './{{ComponentName}}';
|
|
256
|
+
import {{ComponentName}} from './{{ComponentName}}/index.js';
|
|
257
257
|
|
|
258
258
|
describe('{{ComponentName}}', () => {
|
|
259
259
|
it('renders without crashing', () => {
|
|
@@ -279,7 +279,7 @@ describe('{{ComponentName}}', () => {
|
|
|
279
279
|
|
|
280
280
|
getStorybookTemplate() {
|
|
281
281
|
return `import type { Meta, StoryObj } from '@storybook/react';
|
|
282
|
-
import {{ComponentName}} from './{{ComponentName}}';
|
|
282
|
+
import {{ComponentName}} from './{{ComponentName}}/index.js';
|
|
283
283
|
|
|
284
284
|
const meta: Meta<typeof {{ComponentName}}> = {
|
|
285
285
|
title: 'Components/{{ComponentName}}',
|
|
@@ -308,8 +308,8 @@ export const WithCustomClass: Story = {
|
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
getIndexTemplate() {
|
|
311
|
-
return `export { default, {{ComponentName}} } from './{{ComponentName}}';
|
|
312
|
-
export type { {{ComponentName}}Props } from './{{ComponentName}}';`;
|
|
311
|
+
return `export { default, {{ComponentName}} } from './{{ComponentName}}/index.js';
|
|
312
|
+
export type { {{ComponentName}}Props } from './{{ComponentName}}/index.js';`;
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
getExpressRouteTemplate() {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Re-export from TypeScript file
|
|
2
|
-
export * from './error-handler.
|
|
2
|
+
export * from './error-handler.js';
|