@funnycode/myclaude 0.1.50 → 0.1.51

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/myclaude.js CHANGED
@@ -4,8 +4,8 @@
4
4
  // MACRO - build-time constants (injected by build.ts)
5
5
  // MACRO injected by build script
6
6
  globalThis.MACRO = {
7
- VERSION: "0.1.50",
8
- BUILD_TIME: "2026-06-25T14:34:01.656Z",
7
+ VERSION: "0.1.51",
8
+ BUILD_TIME: "2026-06-28T12:45:44.785Z",
9
9
  PACKAGE_URL: "@funnycode/myclaude",
10
10
  NATIVE_PACKAGE_URL: "@funnycode/myclaude",
11
11
  VERSION_CHANGELOG: '',
@@ -478715,6 +478715,80 @@ var init_git_flow = __esm(() => {
478715
478715
  };
478716
478716
  });
478717
478717
 
478718
+ // src/commands/frontend-tdd.ts
478719
+ function getPrompt10(args) {
478720
+ const featureDesc = args.trim() || "(no description provided)";
478721
+ return `You are practicing **Frontend TDD (Test-Driven Development)**.
478722
+
478723
+ ## User's Request
478724
+
478725
+ ${featureDesc}
478726
+
478727
+ ## TDD Workflow
478728
+
478729
+ Follow the **Red-Green-Refactor** cycle strictly:
478730
+
478731
+ ### \uD83D\uDD34 Red — Write the Failing Test First
478732
+ 1. Understand the requirement and identify the expected behavior
478733
+ 2. Write a test that captures the requirement — this test MUST fail initially
478734
+ 3. The test should cover:
478735
+ - Normal expected behavior (happy path)
478736
+ - Edge cases (empty state, error state, boundary values)
478737
+ - User interactions (click, input, submit, navigation)
478738
+ - Accessibility (ARIA labels, keyboard navigation, focus management)
478739
+ 4. Use the project's existing test framework and conventions (Vitest, Jest, Playwright, Testing Library, etc.)
478740
+ 5. Verify the test fails before proceeding
478741
+
478742
+ ### \uD83D\uDFE2 Green — Minimum Code to Pass
478743
+ 1. Write ONLY the code needed to make the failing test pass
478744
+ 2. No speculative features, no future-proofing, no "while I'm here" additions
478745
+ 3. If the test passes, you're done with this cycle
478746
+
478747
+ ### \uD83D\uDD35 Refactor — Clean Up Safely
478748
+ 1. Once the test is green, refactor for clarity and maintainability
478749
+ 2. The test MUST stay green after every refactor step
478750
+ 3. If the test turns red during refactor, the refactor broke something — revert
478751
+
478752
+ ## Frontend Testing Guidelines
478753
+
478754
+ - **Component tests**: Use Testing Library — test behavior, not implementation details
478755
+ - **User interactions**: Use \`@testing-library/user-event\` over \`fireEvent\`
478756
+ - **Accessibility**: Prefer queries by role (\`getByRole\`) over test IDs
478757
+ - **Async**: Use \`waitFor\` or \`findBy*\` queries for async operations
478758
+ - **Mocking**: Mock external APIs at the network level (MSW) or module level (vi.mock)
478759
+ - **Style**: Test visual outcomes (is the element visible/disabled?), not CSS class names
478760
+ - **Snapshots**: Use sparingly — prefer assertion-based tests
478761
+
478762
+ ## Project Context
478763
+
478764
+ - Check \`package.json\` for test framework and scripts
478765
+ - Check existing test files in \`__tests__/\`, \`*.test.tsx\`, \`*.spec.tsx\` for conventions
478766
+ - Run \`!package.json test\` script to verify tests pass before starting
478767
+
478768
+ ## Important Rules
478769
+
478770
+ - NEVER skip the Red phase — a passing test without implementation is a buggy test
478771
+ - NEVER modify a test to make it pass — fix the implementation instead
478772
+ - Run the test suite after each cycle to ensure nothing is broken
478773
+ - If multiple test files exist, run only the relevant test file during development`;
478774
+ }
478775
+ var frontendTdd, frontend_tdd_default;
478776
+ var init_frontend_tdd = __esm(() => {
478777
+ frontendTdd = {
478778
+ type: "prompt",
478779
+ name: "frontend-tdd",
478780
+ description: "TDD (Test-Driven Development) for frontend features — Red, Green, Refactor",
478781
+ argumentHint: "<feature description>",
478782
+ progressMessage: "running frontend TDD cycle",
478783
+ contentLength: 0,
478784
+ source: "builtin",
478785
+ async getPromptForCommand(args) {
478786
+ return [{ type: "text", text: getPrompt10(args) }];
478787
+ }
478788
+ };
478789
+ frontend_tdd_default = frontendTdd;
478790
+ });
478791
+
478718
478792
  // src/skills/bundledSkills.ts
478719
478793
  import { constants as fsConstants5 } from "fs";
478720
478794
  import { mkdir as mkdir34, open as open12 } from "fs/promises";
@@ -487423,6 +487497,7 @@ var init_commands2 = __esm(() => {
487423
487497
  init_stickers2();
487424
487498
  init_advisor2();
487425
487499
  init_git_flow();
487500
+ init_frontend_tdd();
487426
487501
  init_log3();
487427
487502
  init_errors();
487428
487503
  init_debug();
@@ -487550,6 +487625,7 @@ var init_commands2 = __esm(() => {
487550
487625
  finishReleaseCmd,
487551
487626
  newHotfixCmd,
487552
487627
  finishHotfixCmd,
487628
+ frontend_tdd_default,
487553
487629
  tag_default,
487554
487630
  theme_default,
487555
487631
  feedback_default,
package/dist/myclaude.mjs CHANGED
@@ -4,8 +4,8 @@
4
4
  // MACRO - build-time constants (injected by build.ts)
5
5
  // MACRO injected by build script
6
6
  globalThis.MACRO = {
7
- VERSION: "0.1.50",
8
- BUILD_TIME: "2026-06-25T14:34:01.656Z",
7
+ VERSION: "0.1.51",
8
+ BUILD_TIME: "2026-06-28T12:45:44.785Z",
9
9
  PACKAGE_URL: "@funnycode/myclaude",
10
10
  NATIVE_PACKAGE_URL: "@funnycode/myclaude",
11
11
  VERSION_CHANGELOG: '',
@@ -478715,6 +478715,80 @@ var init_git_flow = __esm(() => {
478715
478715
  };
478716
478716
  });
478717
478717
 
478718
+ // src/commands/frontend-tdd.ts
478719
+ function getPrompt10(args) {
478720
+ const featureDesc = args.trim() || "(no description provided)";
478721
+ return `You are practicing **Frontend TDD (Test-Driven Development)**.
478722
+
478723
+ ## User's Request
478724
+
478725
+ ${featureDesc}
478726
+
478727
+ ## TDD Workflow
478728
+
478729
+ Follow the **Red-Green-Refactor** cycle strictly:
478730
+
478731
+ ### \uD83D\uDD34 Red — Write the Failing Test First
478732
+ 1. Understand the requirement and identify the expected behavior
478733
+ 2. Write a test that captures the requirement — this test MUST fail initially
478734
+ 3. The test should cover:
478735
+ - Normal expected behavior (happy path)
478736
+ - Edge cases (empty state, error state, boundary values)
478737
+ - User interactions (click, input, submit, navigation)
478738
+ - Accessibility (ARIA labels, keyboard navigation, focus management)
478739
+ 4. Use the project's existing test framework and conventions (Vitest, Jest, Playwright, Testing Library, etc.)
478740
+ 5. Verify the test fails before proceeding
478741
+
478742
+ ### \uD83D\uDFE2 Green — Minimum Code to Pass
478743
+ 1. Write ONLY the code needed to make the failing test pass
478744
+ 2. No speculative features, no future-proofing, no "while I'm here" additions
478745
+ 3. If the test passes, you're done with this cycle
478746
+
478747
+ ### \uD83D\uDD35 Refactor — Clean Up Safely
478748
+ 1. Once the test is green, refactor for clarity and maintainability
478749
+ 2. The test MUST stay green after every refactor step
478750
+ 3. If the test turns red during refactor, the refactor broke something — revert
478751
+
478752
+ ## Frontend Testing Guidelines
478753
+
478754
+ - **Component tests**: Use Testing Library — test behavior, not implementation details
478755
+ - **User interactions**: Use \`@testing-library/user-event\` over \`fireEvent\`
478756
+ - **Accessibility**: Prefer queries by role (\`getByRole\`) over test IDs
478757
+ - **Async**: Use \`waitFor\` or \`findBy*\` queries for async operations
478758
+ - **Mocking**: Mock external APIs at the network level (MSW) or module level (vi.mock)
478759
+ - **Style**: Test visual outcomes (is the element visible/disabled?), not CSS class names
478760
+ - **Snapshots**: Use sparingly — prefer assertion-based tests
478761
+
478762
+ ## Project Context
478763
+
478764
+ - Check \`package.json\` for test framework and scripts
478765
+ - Check existing test files in \`__tests__/\`, \`*.test.tsx\`, \`*.spec.tsx\` for conventions
478766
+ - Run \`!package.json test\` script to verify tests pass before starting
478767
+
478768
+ ## Important Rules
478769
+
478770
+ - NEVER skip the Red phase — a passing test without implementation is a buggy test
478771
+ - NEVER modify a test to make it pass — fix the implementation instead
478772
+ - Run the test suite after each cycle to ensure nothing is broken
478773
+ - If multiple test files exist, run only the relevant test file during development`;
478774
+ }
478775
+ var frontendTdd, frontend_tdd_default;
478776
+ var init_frontend_tdd = __esm(() => {
478777
+ frontendTdd = {
478778
+ type: "prompt",
478779
+ name: "frontend-tdd",
478780
+ description: "TDD (Test-Driven Development) for frontend features — Red, Green, Refactor",
478781
+ argumentHint: "<feature description>",
478782
+ progressMessage: "running frontend TDD cycle",
478783
+ contentLength: 0,
478784
+ source: "builtin",
478785
+ async getPromptForCommand(args) {
478786
+ return [{ type: "text", text: getPrompt10(args) }];
478787
+ }
478788
+ };
478789
+ frontend_tdd_default = frontendTdd;
478790
+ });
478791
+
478718
478792
  // src/skills/bundledSkills.ts
478719
478793
  import { constants as fsConstants5 } from "fs";
478720
478794
  import { mkdir as mkdir34, open as open12 } from "fs/promises";
@@ -487423,6 +487497,7 @@ var init_commands2 = __esm(() => {
487423
487497
  init_stickers2();
487424
487498
  init_advisor2();
487425
487499
  init_git_flow();
487500
+ init_frontend_tdd();
487426
487501
  init_log3();
487427
487502
  init_errors();
487428
487503
  init_debug();
@@ -487550,6 +487625,7 @@ var init_commands2 = __esm(() => {
487550
487625
  finishReleaseCmd,
487551
487626
  newHotfixCmd,
487552
487627
  finishHotfixCmd,
487628
+ frontend_tdd_default,
487553
487629
  tag_default,
487554
487630
  theme_default,
487555
487631
  feedback_default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnycode/myclaude",
3
- "version": "0.1.50",
3
+ "version": "0.1.51",
4
4
  "private": false,
5
5
  "description": "An open-source AI coding assistant in your terminal - powered by Claude",
6
6
  "license": "MIT",