@kody-ade/kody-engine 0.4.629 → 0.4.630

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/bin/kody.js CHANGED
@@ -15,7 +15,7 @@ var init_package = __esm({
15
15
  "package.json"() {
16
16
  package_default = {
17
17
  name: "@kody-ade/kody-engine",
18
- version: "0.4.629",
18
+ version: "0.4.630",
19
19
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative implementation profiles.",
20
20
  license: "MIT",
21
21
  repository: {
@@ -19483,7 +19483,9 @@ async function publishWorkflowReport(input) {
19483
19483
  const generatedAt = (/* @__PURE__ */ new Date()).toISOString();
19484
19484
  const title = input.publication.title ?? input.workflowTitle;
19485
19485
  const summary = input.state.status === "done" ? `${input.workflowTitle} completed` : `${input.workflowTitle} ${input.state.status}${input.state.blocker ? `: ${input.state.blocker}` : ""}`;
19486
- const markdown = buildRuntimeReportMarkdown({
19486
+ const body = stringValue5(resolveDotted(input.state.facts, input.publication.bodyFact));
19487
+ const reportFacts = input.publication.bodyFact ? omitKeys(input.state.facts, [input.publication.bodyFact.split(".")[0]]) : input.state.facts;
19488
+ const generatedMarkdown = buildRuntimeReportMarkdown({
19487
19489
  generatedAt,
19488
19490
  reportType: input.publication.type,
19489
19491
  reportTypeVersion: input.publication.version ?? 1,
@@ -19497,7 +19499,7 @@ async function publishWorkflowReport(input) {
19497
19499
  status: input.state.status,
19498
19500
  completedStepIds: input.state.completedStepIds,
19499
19501
  transitionCounts: input.state.transitionCounts,
19500
- facts: input.state.facts,
19502
+ facts: reportFacts,
19501
19503
  evidence: input.state.evidence,
19502
19504
  artifacts: input.state.artifacts,
19503
19505
  ...input.state.blocker ? { blocker: input.state.blocker } : {}
@@ -19506,6 +19508,10 @@ async function publishWorkflowReport(input) {
19506
19508
  ...input.publication.reviewStatus ? { reviewStatus: input.publication.reviewStatus } : {},
19507
19509
  ...input.publication.reviewArea ? { reviewArea: input.publication.reviewArea } : {}
19508
19510
  });
19511
+ const markdown = body ? `${generatedMarkdown.trimEnd()}
19512
+
19513
+ ${body}
19514
+ ` : generatedMarkdown;
19509
19515
  const runId = generatedAt.replace(/\.\d{3}Z$/, "Z").replace(/:/g, "-");
19510
19516
  if (hasStateBackendConfig()) {
19511
19517
  await createStateBackendFromEnv().saveReport(
@@ -550,6 +550,8 @@ export interface ReportPublicationConfig {
550
550
  slugFact?: string
551
551
  title?: string
552
552
  titleFact?: string
553
+ /** Dotted path in workflow facts containing a ready-to-render Markdown body. */
554
+ bodyFact?: string
553
555
  publishWhenFact?: string
554
556
  reviewStatus?: string
555
557
  reviewArea?: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.629",
3
+ "version": "0.4.630",
4
4
  "description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative implementation profiles.",
5
5
  "license": "MIT",
6
6
  "repository": {