@kody-ade/kody-engine 0.4.489 → 0.4.490

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.
Files changed (2) hide show
  1. package/dist/bin/kody.js +2 -19
  2. 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.489",
18
+ version: "0.4.490",
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",
@@ -2448,16 +2448,6 @@ async function readRuntimeSecretFromKody(name, env = process.env) {
2448
2448
  const body = await response.json();
2449
2449
  return typeof body.value === "string" ? body.value : null;
2450
2450
  }
2451
- async function writeRuntimeSecretToKody(name, value, env = process.env) {
2452
- const token = await githubOidcToken(env);
2453
- const response = await fetch(`${resolveKodyApiUrl(env)}/api/kody/engine/secret`, {
2454
- method: "PUT",
2455
- headers: { Authorization: `Bearer ${token}`, "Content-Type": "application/json" },
2456
- body: JSON.stringify({ name, value }),
2457
- signal: AbortSignal.timeout(3e4)
2458
- });
2459
- if (!response.ok) throw new Error(`Kody secret upsert failed (${response.status})`);
2460
- }
2461
2451
  async function readPreviewContextFromKody(env = process.env) {
2462
2452
  const token = await githubOidcToken(env);
2463
2453
  const response = await fetch(`${resolveKodyApiUrl(env)}/api/kody/engine/preview-context`, {
@@ -15453,10 +15443,7 @@ async function resolveRuntimeSecret(name, ctx, opts = {}) {
15453
15443
  if (hasGitHubActionsIdentity(env)) {
15454
15444
  try {
15455
15445
  const value = await readRuntimeSecretFromKody(name, env);
15456
- if (value) return { value, source: "vault" };
15457
- const fallback = envSecret(name, env);
15458
- if (fallback.value) await writeRuntimeSecretToKody(name, fallback.value, env);
15459
- return fallback;
15446
+ return value ? { value, source: "vault" } : envSecret(name, env);
15460
15447
  } catch (err) {
15461
15448
  const fallback = envSecret(name, env);
15462
15449
  return {
@@ -16741,7 +16728,6 @@ var init_parseSimpleCapabilityOutput = __esm({
16741
16728
  reason: reason2,
16742
16729
  summary: reason2
16743
16730
  };
16744
- ctx.output.exitCode = 1;
16745
16731
  ctx.output.reason = reason2;
16746
16732
  ctx.data.capabilityOutput = blocked;
16747
16733
  ctx.data.capabilityResults = [
@@ -16783,9 +16769,6 @@ var init_parseSimpleCapabilityOutput = __esm({
16783
16769
  ctx.data.capabilityOutput = output;
16784
16770
  const structuredResult = parseCapabilityResult(output);
16785
16771
  if (structuredResult) {
16786
- if ((structuredResult.status === "fail" || structuredResult.status === "blocked") && (ctx.output.exitCode === void 0 || ctx.output.exitCode === 0)) {
16787
- ctx.output.exitCode = 1;
16788
- }
16789
16772
  ctx.output.reason = structuredResult.summary;
16790
16773
  ctx.data.capabilityResults = [structuredResult];
16791
16774
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.489",
3
+ "version": "0.4.490",
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",