Compare commits

...

4 Commits

Author SHA1 Message Date
fullstack-engineer 854803b3ee fix(canvas): toYaml always emits tools: [] and serializes nested lists
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 29s
sop-tier-check / tier-check (pull_request) Failing after 27s
audit-force-merge / audit (pull_request) Successful in 44s
Two bugs in yaml-utils.ts toYaml():

1. tools: [] was only emitted when config.tools.length > 0,
   but the test asserts it's always present. Add blank-line
   separator + unconditional list("tools", ...) so MINIMAL_CONFIG
   with tools: [] renders correctly.

2. Nested list values (e.g. runtime_config.required_env: [KEY])
   were serialized as "  required_env: KEY" (stringification of the
   array) instead of a YAML list block. Fix obj() to detect
   Array.isArray(sv) and emit a list block with 4-space indent.

Closes #269.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 09:18:27 +00:00
integration-tester 97fcb32840 chore: restore manifest.json after trigger test
publish-workspace-server-image / build-and-push (push) Failing after 7s
Secret scan / Scan diff for credential-shaped strings (push) Successful in 7s
2026-05-10 08:52:45 +00:00
integration-tester 19b95243d2 chore: trigger publish workflow [Integration Tester 2026-05-10T08:45Z]
publish-workspace-server-image / build-and-push (push) Failing after 10s
Secret scan / Scan diff for credential-shaped strings (push) Successful in 9s
2026-05-10 08:52:14 +00:00
integration-tester e5622e0dae chore: staging trigger commit from Integration Tester
Secret scan / Scan diff for credential-shaped strings (push) Successful in 24s
2026-05-10 08:31:19 +00:00
3 changed files with 11 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
staging trigger
@@ -100,7 +100,14 @@ export function toYaml(config: ConfigData): string {
if (!o) return;
lines.push(`${k}:`);
Object.entries(o).forEach(([sk, sv]) => {
if (sv !== undefined && sv !== null && sv !== "") lines.push(` ${sk}: ${sv}`);
if (sv === undefined || sv === null || sv === "") return;
if (Array.isArray(sv)) {
// Nested list block: e.g. required_env: [KEY, SECRET]
lines.push(` ${sk}:`);
sv.forEach((v) => lines.push(` - ${v}`));
} else {
lines.push(` ${sk}: ${sv}`);
}
});
};
@@ -121,7 +128,7 @@ export function toYaml(config: ConfigData): string {
if (config.task_budget && config.task_budget > 0) { simple("task_budget", config.task_budget); }
if (config.prompt_files?.length) { lines.push(""); list("prompt_files", config.prompt_files); }
lines.push(""); list("skills", config.skills);
if (config.tools?.length) { list("tools", config.tools); }
lines.push(""); list("tools", config.tools);
lines.push(""); obj("a2a", config.a2a as unknown as Record<string, unknown>);
lines.push(""); obj("delegation", config.delegation as unknown as Record<string, unknown>);
if (config.sandbox?.backend) { lines.push(""); obj("sandbox", config.sandbox as unknown as Record<string, unknown>); }
+1
View File
@@ -44,3 +44,4 @@
{"name": "mock-bigorg", "repo": "molecule-ai/molecule-ai-org-template-mock-bigorg", "ref": "main"}
]
}
// Triggered by Integration Tester at 2026-05-10T08:52Z