@kody-ade/kody-engine 0.4.537 → 0.4.538
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 +9 -3
- 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.538",
|
|
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
|
type: "module",
|
|
@@ -2664,10 +2664,15 @@ function createKodyApiBackendClient(env = process.env) {
|
|
|
2664
2664
|
}
|
|
2665
2665
|
async function notifyWorkflowCompleted(notification, env = process.env) {
|
|
2666
2666
|
const token = await githubOidcToken(env);
|
|
2667
|
+
const { summary: rawSummary, ...completion } = notification;
|
|
2668
|
+
const summary = rawSummary?.trim();
|
|
2667
2669
|
const response = await fetch(`${resolveKodyApiUrl(env)}/api/kody/engine/workflow-completed`, {
|
|
2668
2670
|
method: "POST",
|
|
2669
2671
|
headers: { Authorization: `Bearer ${token}`, "Content-Type": "application/json" },
|
|
2670
|
-
body: JSON.stringify(
|
|
2672
|
+
body: JSON.stringify({
|
|
2673
|
+
...completion,
|
|
2674
|
+
...summary ? { summary: summary.slice(0, WORKFLOW_COMPLETION_SUMMARY_MAX_LENGTH) } : {}
|
|
2675
|
+
}),
|
|
2671
2676
|
signal: AbortSignal.timeout(3e4)
|
|
2672
2677
|
});
|
|
2673
2678
|
if (!response.ok) throw new Error(`Kody workflow completion request failed (${response.status})`);
|
|
@@ -2705,12 +2710,13 @@ async function readPreviewContextFromKody(env = process.env) {
|
|
|
2705
2710
|
if (!response.ok) throw new Error(`Kody preview context request failed (${response.status})`);
|
|
2706
2711
|
return await response.json();
|
|
2707
2712
|
}
|
|
2708
|
-
var DEFAULT_KODY_API_URL, OIDC_AUDIENCE, cachedToken;
|
|
2713
|
+
var DEFAULT_KODY_API_URL, OIDC_AUDIENCE, WORKFLOW_COMPLETION_SUMMARY_MAX_LENGTH, cachedToken;
|
|
2709
2714
|
var init_kody_api_client = __esm({
|
|
2710
2715
|
"src/kody-api-client.ts"() {
|
|
2711
2716
|
"use strict";
|
|
2712
2717
|
DEFAULT_KODY_API_URL = "https://kody-dashboard-aguy.vercel.app";
|
|
2713
2718
|
OIDC_AUDIENCE = "kody-api";
|
|
2719
|
+
WORKFLOW_COMPLETION_SUMMARY_MAX_LENGTH = 1e3;
|
|
2714
2720
|
cachedToken = null;
|
|
2715
2721
|
}
|
|
2716
2722
|
});
|
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.538",
|
|
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
|
"type": "module",
|