@kody-ade/kody-engine 0.4.216 → 0.4.217

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 +11 -1
  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.216",
18
+ version: "0.4.217",
19
19
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
20
20
  license: "MIT",
21
21
  type: "module",
@@ -18126,6 +18126,7 @@ var PoolRegistry = class {
18126
18126
  }
18127
18127
  cfg;
18128
18128
  pools = /* @__PURE__ */ new Map();
18129
+ poolCreates = /* @__PURE__ */ new Map();
18129
18130
  resolveFlyToken;
18130
18131
  resolvePoolMin;
18131
18132
  log;
@@ -18137,6 +18138,15 @@ var PoolRegistry = class {
18137
18138
  const repoTag = this.key(owner, repo);
18138
18139
  const existing = this.pools.get(repoTag);
18139
18140
  if (existing) return existing;
18141
+ const pending = this.poolCreates.get(repoTag);
18142
+ if (pending) return pending;
18143
+ const creating = this.createPool(owner, repo, repoTag).finally(() => {
18144
+ this.poolCreates.delete(repoTag);
18145
+ });
18146
+ this.poolCreates.set(repoTag, creating);
18147
+ return creating;
18148
+ }
18149
+ async createPool(owner, repo, repoTag) {
18140
18150
  let flyToken;
18141
18151
  try {
18142
18152
  flyToken = await this.resolveFlyToken(owner, repo);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.216",
3
+ "version": "0.4.217",
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",