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.
@@ -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());
@@ -133,7 +133,7 @@ async function runWASMDemo() {
133
133
  {
134
134
  name: 'test2.js',
135
135
  content: `
136
- import { utils } from './utils';
136
+ import { utils } from './utils/index.js';
137
137
  export function processData(data) {
138
138
  return data.map(item => ({
139
139
  ...item,
@@ -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.ts';
49
- // import { configIntegrationAction } from './commands/config-integration.ts';
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() {
@@ -12,7 +12,7 @@
12
12
  */
13
13
 
14
14
  import { SlashCommand } from '../core/slash-command.js';
15
- import { EpicParser } from '../parsers/epic-parser.ts';
15
+ import { EpicParser } from '../parsers/epic-parser.js';
16
16
  import * as path from 'path';
17
17
  import * as fs from 'fs';
18
18
 
@@ -1,2 +1,2 @@
1
1
  // Re-export from TypeScript file
2
- export * from './error-handler.ts';
2
+ export * from './error-handler.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-flow-novice",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "Simplified Claude Flow for beginners - AI agent orchestration made easy",
5
5
  "type": "module",
6
6
  "mcpName": "io.github.ruvnet/claude-flow",