@kody-ade/kody-engine 0.4.45 → 0.4.46

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
@@ -3,7 +3,7 @@
3
3
  // package.json
4
4
  var package_default = {
5
5
  name: "@kody-ade/kody-engine",
6
- version: "0.4.45",
6
+ version: "0.4.46",
7
7
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
8
8
  license: "MIT",
9
9
  type: "module",
@@ -3828,14 +3828,6 @@ function markPrReady(prNumber, cwd) {
3828
3828
  return fail(err);
3829
3829
  }
3830
3830
  }
3831
- function fetchDefaultBranch(cwd) {
3832
- try {
3833
- const out = gh(["api", "repos/{owner}/{repo}", "--jq", ".default_branch"], { cwd });
3834
- return { ok: true, value: out.trim() };
3835
- } catch (err) {
3836
- return fail(err);
3837
- }
3838
- }
3839
3831
 
3840
3832
  // src/goal/phase.ts
3841
3833
  function derivePhase(snap) {
@@ -3859,15 +3851,6 @@ function pickNextDispatchable(snap) {
3859
3851
  var deriveGoalPhase = async (ctx) => {
3860
3852
  const goal = ctx.data.goal;
3861
3853
  if (!goal) return;
3862
- const defaultBranchResult = fetchDefaultBranch(ctx.cwd);
3863
- if (defaultBranchResult.ok && defaultBranchResult.value) {
3864
- goal.defaultBranch = defaultBranchResult.value;
3865
- } else if (defaultBranchResult.error) {
3866
- process.stderr.write(
3867
- `[goal-tick] deriveGoalPhase: fetchDefaultBranch failed (${defaultBranchResult.error}); falling back to ${goal.defaultBranch}
3868
- `
3869
- );
3870
- }
3871
3854
  const issues = listGoalIssues(goal.id, ctx.cwd);
3872
3855
  if (!issues.ok) {
3873
3856
  process.stderr.write(`[goal-tick] deriveGoalPhase: list issues failed: ${issues.error}
@@ -7992,9 +7975,10 @@ function tryPost(issueNumber, body, cwd) {
7992
7975
  }
7993
7976
  function resolveBaseOverride(value) {
7994
7977
  if (!value) return null;
7995
- if (/^\d+-[a-z0-9-]+$/.test(value)) return value;
7996
- if (/^goal-[a-z0-9-]+$/.test(value)) return value;
7997
- return null;
7978
+ if (value.length > 200) return null;
7979
+ if (value.includes("..")) return null;
7980
+ if (!/^[a-z0-9][a-z0-9/._-]*$/.test(value)) return null;
7981
+ return value;
7998
7982
  }
7999
7983
 
8000
7984
  // src/scripts/runTickScript.ts
@@ -10740,7 +10724,7 @@ ${HELP_TEXT}`);
10740
10724
  }
10741
10725
  }
10742
10726
  const cwd = args.cwd ?? process.cwd();
10743
- const configlessCommands = /* @__PURE__ */ new Set(["init", "goal-tick", "goal-scheduler"]);
10727
+ const configlessCommands = /* @__PURE__ */ new Set(["init", "goal-scheduler"]);
10744
10728
  const skipConfig = configlessCommands.has(args.executableName ?? "");
10745
10729
  try {
10746
10730
  const result = await runExecutable(args.executableName, {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.45",
3
+ "version": "0.4.46",
4
4
  "description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -12,6 +12,18 @@
12
12
  "templates",
13
13
  "kody.config.schema.json"
14
14
  ],
15
+ "scripts": {
16
+ "kody": "tsx bin/kody.ts",
17
+ "build": "tsup && node scripts/copy-assets.cjs",
18
+ "test": "vitest run tests/unit tests/int --no-coverage",
19
+ "test:e2e": "vitest run tests/e2e --no-coverage",
20
+ "test:all": "vitest run tests --no-coverage",
21
+ "typecheck": "tsc --noEmit",
22
+ "lint": "biome check",
23
+ "lint:fix": "biome check --write",
24
+ "format": "biome format --write",
25
+ "prepublishOnly": "pnpm build"
26
+ },
15
27
  "dependencies": {
16
28
  "@actions/cache": "^6.0.0",
17
29
  "@anthropic-ai/claude-agent-sdk": "0.2.119"
@@ -32,16 +44,5 @@
32
44
  "url": "git+https://github.com/aharonyaircohen/kody-engine.git"
33
45
  },
34
46
  "homepage": "https://github.com/aharonyaircohen/kody-engine",
35
- "bugs": "https://github.com/aharonyaircohen/kody-engine/issues",
36
- "scripts": {
37
- "kody": "tsx bin/kody.ts",
38
- "build": "tsup && node scripts/copy-assets.cjs",
39
- "test": "vitest run tests/unit tests/int --no-coverage",
40
- "test:e2e": "vitest run tests/e2e --no-coverage",
41
- "test:all": "vitest run tests --no-coverage",
42
- "typecheck": "tsc --noEmit",
43
- "lint": "biome check",
44
- "lint:fix": "biome check --write",
45
- "format": "biome format --write"
46
- }
47
- }
47
+ "bugs": "https://github.com/aharonyaircohen/kody-engine/issues"
48
+ }