@worca/ui 0.45.0 → 0.46.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worca/ui",
3
- "version": "0.45.0",
3
+ "version": "0.46.0",
4
4
  "description": "Pipeline monitoring UI for worca-cc",
5
5
  "license": "MIT",
6
6
  "author": "Sinisha Djukic",
@@ -544,6 +544,9 @@ export class ProcessManager {
544
544
  if (opts.maxBeads != null) {
545
545
  args.push('--max-beads', String(opts.maxBeads));
546
546
  }
547
+ if (opts.claudeMdMode != null) {
548
+ args.push('--claude-md-mode', String(opts.claudeMdMode));
549
+ }
547
550
  if (opts.planFile) {
548
551
  args.push('--plan', opts.planFile);
549
552
  }
@@ -959,6 +959,7 @@ export function createProjectScopedRoutes({
959
959
  maxBeads,
960
960
  branch,
961
961
  template,
962
+ claudeMdMode,
962
963
  } = body;
963
964
  if (body.inputType && sourceType === undefined) {
964
965
  if (body.inputType === 'prompt') {
@@ -1029,6 +1030,25 @@ export function createProjectScopedRoutes({
1029
1030
  }
1030
1031
  }
1031
1032
 
1033
+ const CLAUDE_MD_MODES = new Set([
1034
+ 'all',
1035
+ 'project',
1036
+ 'project+local',
1037
+ 'none',
1038
+ ]);
1039
+ if (claudeMdMode !== undefined && claudeMdMode !== null) {
1040
+ if (
1041
+ typeof claudeMdMode !== 'string' ||
1042
+ !CLAUDE_MD_MODES.has(claudeMdMode)
1043
+ ) {
1044
+ return res.status(400).json({
1045
+ ok: false,
1046
+ error:
1047
+ 'claudeMdMode must be one of: all, project, project+local, none',
1048
+ });
1049
+ }
1050
+ }
1051
+
1032
1052
  const hasSource = sourceType !== 'none' && sourceValue;
1033
1053
  const hasPlan = typeof planFile === 'string' && planFile.trim().length > 0;
1034
1054
  const hasPrompt = typeof prompt === 'string' && prompt.length > 0;
@@ -1081,6 +1101,7 @@ export function createProjectScopedRoutes({
1081
1101
  planFile: hasPlan ? planFile.trim() : undefined,
1082
1102
  branch: branch || undefined,
1083
1103
  template: template || undefined,
1104
+ claudeMdMode: claudeMdMode || undefined,
1084
1105
  });
1085
1106
  const { broadcast } = req.app.locals;
1086
1107
  if (broadcast) broadcast('run-started', { pid: result.pid });