coursecode 0.1.29 → 0.1.31

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.
@@ -47,6 +47,20 @@
47
47
  height: 100%; /* Fill the entire grid cell height (for equal row heights) */
48
48
  }
49
49
 
50
+ /* When multiple flip cards sit side-by-side in any grid or flex container,
51
+ align back-face content to the top so headings line up across cards.
52
+ :has(> .flip-card ~ .flip-card) matches any parent containing 2+ flip cards. */
53
+ :has(> .flip-card ~ .flip-card) > .flip-card .flip-card-back {
54
+ justify-content: flex-start;
55
+ }
56
+
57
+ /* Back-face content stretches to fill the card and uses space-between
58
+ so the heading sits at top and remaining content anchors to bottom */
59
+ :has(> .flip-card ~ .flip-card) > .flip-card .flip-card-back .flip-card-content {
60
+ flex: 1;
61
+ justify-content: space-between;
62
+ }
63
+
50
64
  .flip-card-inner {
51
65
  display: grid; /* Grid allows both faces to contribute to height */
52
66
  width: 100%;
@@ -302,7 +302,7 @@ Once connected, your AI assistant gains these capabilities:
302
302
  | `coursecode_interaction_catalog` | Browse available interaction types (multiple choice, drag-drop, etc.) |
303
303
  | `coursecode_css_catalog` | Browse available CSS classes by category |
304
304
  | `coursecode_icon_catalog` | Browse available icons by name/category |
305
- | `coursecode_export_content` | Export course content/interactions as Markdown or JSON for review |
305
+
306
306
  | `coursecode_workflow_status` | Get guidance on what to do next based on your project's current state |
307
307
  | `coursecode_build` | Build the course for LMS deployment |
308
308
 
@@ -407,67 +407,7 @@ Use to discover available icons before authoring slides or configuring menus.`,
407
407
  idempotentHint: true
408
408
  }
409
409
  },
410
- {
411
- name: 'coursecode_export_content',
412
- description: `Extract course content as structured Markdown or JSON for review.
413
-
414
- Returns the full text content of the course: slide headers, body text, tabs, accordions, callouts, cards, interactions, assessment questions, narration, config, and structure overview.
415
-
416
- Use cases:
417
- - Compare built course against COURSE_OUTLINE.md for accuracy
418
- - Review all interactions and assessment questions at once
419
- - Audit content wording and consistency across slides
420
- - Generate content for localization or SME review
421
-
422
- Filtering options keep output manageable:
423
- - slides: scope to specific slide IDs
424
- - interactionsOnly: just Q&A, no slide content
425
- - excludeInteractions: content only, no Q&A
426
- - format: 'md' (default) or 'json' for structured data
427
410
 
428
- For large courses (>40KB), full exports automatically return a summary with per-slide sizes instead. Use the slides parameter to export specific content.
429
-
430
- Does not require preview server.`,
431
- inputSchema: {
432
- type: 'object',
433
- properties: {
434
- slides: {
435
- type: 'string',
436
- description: 'Comma-separated slide IDs to export (default: all slides)'
437
- },
438
- interactionsOnly: {
439
- type: 'boolean',
440
- description: 'Export only interactions and assessment questions (no slide content)'
441
- },
442
- includeNarration: {
443
- type: 'boolean',
444
- description: 'Include narration transcripts (default: false)'
445
- },
446
- includeAnswers: {
447
- type: 'boolean',
448
- description: 'Include correct answers for interactions (default: true)'
449
- },
450
- includeFeedback: {
451
- type: 'boolean',
452
- description: 'Include feedback text (default: true)'
453
- },
454
- excludeInteractions: {
455
- type: 'boolean',
456
- description: 'Exclude all interactions from output (default: false)'
457
- },
458
- format: {
459
- type: 'string',
460
- description: 'Output format: md or json (default: md)',
461
- enum: ['md', 'json']
462
- }
463
- },
464
- required: []
465
- },
466
- annotations: {
467
- readOnlyHint: true,
468
- idempotentHint: true
469
- }
470
- },
471
411
  ];
472
412
 
473
413
  // ========================================
@@ -692,7 +632,6 @@ Visually verify and polish the course using the preview server.
692
632
  - coursecode_navigate — go to any slide by ID (get IDs from coursecode_state)
693
633
  - coursecode_screenshot — capture visual state (accepts slideId to navigate+capture in one call)
694
634
  - coursecode_interact — test interactions with responses
695
- - coursecode_export_content — extract all text content to review or compare against outline
696
635
  - coursecode_lint — validate after file changes
697
636
 
698
637
  4. Efficient iteration loop:
package/lib/mcp-server.js CHANGED
@@ -30,7 +30,7 @@ import {
30
30
  lintCourse,
31
31
  buildCourse
32
32
  } from './authoring-api.js';
33
- import { getContentExport } from './export-content.js';
33
+
34
34
  import headless from './headless-browser.js';
35
35
  import { TOOLS, buildInstructions, getWorkflowStatusWithInstructions } from './mcp-prompts.js';
36
36
 
@@ -258,17 +258,7 @@ export async function startMcpServer(options = {}) {
258
258
  result = await lintCourse();
259
259
  break;
260
260
 
261
- case 'coursecode_export_content':
262
- result = await getContentExport(args || {});
263
- if (result === null) {
264
- throw new Error('Failed to export content. Ensure course-config.js exists in course/');
265
- }
266
- return {
267
- content: [{
268
- type: 'text',
269
- text: result
270
- }]
271
- };
261
+
272
262
 
273
263
  default:
274
264
  throw new Error(`Unknown tool: ${name}`);
@@ -129,6 +129,16 @@ export function createEditModeHandlers(context) {
129
129
  outline-offset: 2px;
130
130
  background-color: rgba(245, 158, 11, 0.08);
131
131
  }
132
+ .edit-mode-active .flip-card,
133
+ .edit-mode-active .accordion-button,
134
+ .edit-mode-active [data-action="select-tab"],
135
+ .edit-mode-active [data-action="toggle-collapse"],
136
+ .edit-mode-active [data-component="modal-trigger"],
137
+ .edit-mode-active .timeline-event,
138
+ .edit-mode-active [data-component="lightbox"],
139
+ .edit-mode-active [data-action="toggle-dropdown"] {
140
+ pointer-events: none;
141
+ }
132
142
  `;
133
143
  doc.head.appendChild(styleEl);
134
144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coursecode",
3
- "version": "0.1.29",
3
+ "version": "0.1.31",
4
4
  "description": "Multi-format course authoring framework with CLI tools (SCORM 2004, SCORM 1.2, cmi5, LTI 1.3)",
5
5
  "type": "module",
6
6
  "bin": {