@worca/ui 0.45.0 → 0.47.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/app/main.bundle.js +1493 -1429
- package/app/main.bundle.js.map +4 -4
- package/app/styles.css +10 -0
- package/package.json +1 -1
- package/server/process-manager.js +3 -0
- package/server/project-routes.js +21 -0
package/app/styles.css
CHANGED
|
@@ -2371,6 +2371,16 @@ sl-input [slot="prefix"] {
|
|
|
2371
2371
|
margin-top: 2px;
|
|
2372
2372
|
}
|
|
2373
2373
|
|
|
2374
|
+
.settings-field-hint--warn {
|
|
2375
|
+
color: var(--warning, #b8860b);
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
.settings-field-hint--warn code {
|
|
2379
|
+
color: inherit;
|
|
2380
|
+
background: transparent;
|
|
2381
|
+
padding: 0;
|
|
2382
|
+
}
|
|
2383
|
+
|
|
2374
2384
|
/* Export-mode picker (standalone vs delta): roomy rows, with each option's
|
|
2375
2385
|
description on its own line aligned under the option title (not the radio). */
|
|
2376
2386
|
.export-mode-group sl-radio::part(base) {
|
package/package.json
CHANGED
|
@@ -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
|
}
|
package/server/project-routes.js
CHANGED
|
@@ -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 });
|