@kody-ade/kody-engine 0.4.629 → 0.4.631
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 +11 -3
- package/dist/implementations/types.ts +2 -0
- package/package.json +1 -1
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.
|
|
18
|
+
version: "0.4.631",
|
|
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: {
|
|
@@ -2563,6 +2563,7 @@ function parseReportPublication(value) {
|
|
|
2563
2563
|
const slugFact = stringField(value.slugFact);
|
|
2564
2564
|
const title = stringField(value.title);
|
|
2565
2565
|
const titleFact = stringField(value.titleFact);
|
|
2566
|
+
const bodyFact = stringField(value.bodyFact);
|
|
2566
2567
|
const publishWhenFact = stringField(value.publishWhenFact);
|
|
2567
2568
|
const reviewStatus = stringField(value.reviewStatus);
|
|
2568
2569
|
const reviewArea = stringField(value.reviewArea);
|
|
@@ -2575,6 +2576,7 @@ function parseReportPublication(value) {
|
|
|
2575
2576
|
...slugFact ? { slugFact } : {},
|
|
2576
2577
|
...title ? { title } : {},
|
|
2577
2578
|
...titleFact ? { titleFact } : {},
|
|
2579
|
+
...bodyFact ? { bodyFact } : {},
|
|
2578
2580
|
...publishWhenFact ? { publishWhenFact } : {},
|
|
2579
2581
|
...reviewStatus ? { reviewStatus } : {},
|
|
2580
2582
|
...reviewArea ? { reviewArea } : {}
|
|
@@ -19483,7 +19485,9 @@ async function publishWorkflowReport(input) {
|
|
|
19483
19485
|
const generatedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
19484
19486
|
const title = input.publication.title ?? input.workflowTitle;
|
|
19485
19487
|
const summary = input.state.status === "done" ? `${input.workflowTitle} completed` : `${input.workflowTitle} ${input.state.status}${input.state.blocker ? `: ${input.state.blocker}` : ""}`;
|
|
19486
|
-
const
|
|
19488
|
+
const body = stringValue5(resolveDotted(input.state.facts, input.publication.bodyFact));
|
|
19489
|
+
const reportFacts = input.publication.bodyFact ? omitKeys(input.state.facts, [input.publication.bodyFact.split(".")[0]]) : input.state.facts;
|
|
19490
|
+
const generatedMarkdown = buildRuntimeReportMarkdown({
|
|
19487
19491
|
generatedAt,
|
|
19488
19492
|
reportType: input.publication.type,
|
|
19489
19493
|
reportTypeVersion: input.publication.version ?? 1,
|
|
@@ -19497,7 +19501,7 @@ async function publishWorkflowReport(input) {
|
|
|
19497
19501
|
status: input.state.status,
|
|
19498
19502
|
completedStepIds: input.state.completedStepIds,
|
|
19499
19503
|
transitionCounts: input.state.transitionCounts,
|
|
19500
|
-
facts:
|
|
19504
|
+
facts: reportFacts,
|
|
19501
19505
|
evidence: input.state.evidence,
|
|
19502
19506
|
artifacts: input.state.artifacts,
|
|
19503
19507
|
...input.state.blocker ? { blocker: input.state.blocker } : {}
|
|
@@ -19506,6 +19510,10 @@ async function publishWorkflowReport(input) {
|
|
|
19506
19510
|
...input.publication.reviewStatus ? { reviewStatus: input.publication.reviewStatus } : {},
|
|
19507
19511
|
...input.publication.reviewArea ? { reviewArea: input.publication.reviewArea } : {}
|
|
19508
19512
|
});
|
|
19513
|
+
const markdown = body ? `${generatedMarkdown.trimEnd()}
|
|
19514
|
+
|
|
19515
|
+
${body}
|
|
19516
|
+
` : generatedMarkdown;
|
|
19509
19517
|
const runId = generatedAt.replace(/\.\d{3}Z$/, "Z").replace(/:/g, "-");
|
|
19510
19518
|
if (hasStateBackendConfig()) {
|
|
19511
19519
|
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.
|
|
3
|
+
"version": "0.4.631",
|
|
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": {
|