iagenify 0.3.0 → 0.3.1

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/index.cjs CHANGED
@@ -8446,7 +8446,8 @@ var HostsResource = class {
8446
8446
  /** `runtime` is the public contract. `kind` remains accepted for one upgrade cycle. */
8447
8447
  async create({ runtime, framework, label, slug, kind } = {}) {
8448
8448
  const rule = assertRuntime(runtime || LEGACY_RUNTIME[kind], framework);
8449
- const res = await this.client.post("/api/hosting", { kind: rule.kind, label, slug });
8449
+ const resolvedRuntime = runtime || LEGACY_RUNTIME[kind];
8450
+ const res = await this.client.post("/api/hosting", { runtime: resolvedRuntime, framework, label, slug });
8450
8451
  return new Host(this.client, res.host, { framework });
8451
8452
  }
8452
8453
  async list() {
@@ -8462,8 +8463,15 @@ var HostsResource = class {
8462
8463
  async kinds() {
8463
8464
  const serverKinds = (await this.client.get("/api/hosting/kinds")).kinds || [];
8464
8465
  return Object.entries(RUNTIMES).map(([runtime, rule]) => {
8465
- const server = serverKinds.find((item) => item.kind === rule.kind);
8466
- return { runtime, frameworks: rule.frameworks, deploy: rule.deploy, available: server?.available === true, reason: server?.available ? null : server?.reason || "This runtime is not available." };
8466
+ const server = serverKinds.find((item) => item.runtime === runtime || item.kind === rule.kind);
8467
+ return {
8468
+ runtime,
8469
+ frameworks: server?.frameworks || rule.frameworks,
8470
+ hostSuffix: server?.hostSuffix || null,
8471
+ deploy: server?.deploy || rule.deploy,
8472
+ available: server?.available === true,
8473
+ reason: server?.available ? null : server?.reason || "This runtime is not available."
8474
+ };
8467
8475
  });
8468
8476
  }
8469
8477
  async usage() {
package/dist/index.js CHANGED
@@ -8388,7 +8388,8 @@ var HostsResource = class {
8388
8388
  /** `runtime` is the public contract. `kind` remains accepted for one upgrade cycle. */
8389
8389
  async create({ runtime, framework, label, slug, kind } = {}) {
8390
8390
  const rule = assertRuntime(runtime || LEGACY_RUNTIME[kind], framework);
8391
- const res = await this.client.post("/api/hosting", { kind: rule.kind, label, slug });
8391
+ const resolvedRuntime = runtime || LEGACY_RUNTIME[kind];
8392
+ const res = await this.client.post("/api/hosting", { runtime: resolvedRuntime, framework, label, slug });
8392
8393
  return new Host(this.client, res.host, { framework });
8393
8394
  }
8394
8395
  async list() {
@@ -8404,8 +8405,15 @@ var HostsResource = class {
8404
8405
  async kinds() {
8405
8406
  const serverKinds = (await this.client.get("/api/hosting/kinds")).kinds || [];
8406
8407
  return Object.entries(RUNTIMES).map(([runtime, rule]) => {
8407
- const server = serverKinds.find((item) => item.kind === rule.kind);
8408
- return { runtime, frameworks: rule.frameworks, deploy: rule.deploy, available: server?.available === true, reason: server?.available ? null : server?.reason || "This runtime is not available." };
8408
+ const server = serverKinds.find((item) => item.runtime === runtime || item.kind === rule.kind);
8409
+ return {
8410
+ runtime,
8411
+ frameworks: server?.frameworks || rule.frameworks,
8412
+ hostSuffix: server?.hostSuffix || null,
8413
+ deploy: server?.deploy || rule.deploy,
8414
+ available: server?.available === true,
8415
+ reason: server?.available ? null : server?.reason || "This runtime is not available."
8416
+ };
8409
8417
  });
8410
8418
  }
8411
8419
  async usage() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iagenify",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "IaGenify client and agent engine — the agent loop runs inside the SDK (tools, skills, sub-agents, terminals, sessions, memory) in Node, the browser and Cloudflare Workers.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",