@zookanalytics/agent-env 0.12.1 → 0.12.3

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/cli.js +12 -6
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -57,7 +57,7 @@ import React4 from "react";
57
57
  // package.json
58
58
  var package_default = {
59
59
  name: "@zookanalytics/agent-env",
60
- version: "0.12.1",
60
+ version: "0.12.3",
61
61
  description: "CLI for creating isolated, AI-ready development environments",
62
62
  type: "module",
63
63
  bin: {
@@ -325,9 +325,11 @@ function createContainerLifecycle(executor = createExecutor()) {
325
325
  ...remoteEnvArgs,
326
326
  ...buildNoCache ? ["--build-no-cache"] : []
327
327
  ];
328
+ const inheritStdin = options?.interactive === true && process.stdin.isTTY === true;
328
329
  const result = await executor("devcontainer", args, {
329
330
  timeout: buildNoCache ? DEVCONTAINER_UP_NO_CACHE_TIMEOUT : DEVCONTAINER_UP_TIMEOUT,
330
- onLine: options?.onProgress
331
+ onLine: options?.onProgress,
332
+ ...inheritStdin && { stdin: "inherit" }
331
333
  });
332
334
  const parsedOutput = parseDevcontainerOutput(result.stdout);
333
335
  if (!result.ok) {
@@ -1761,7 +1763,8 @@ async function createInstance(instanceName, repoUrl, deps, options) {
1761
1763
  AGENT_ENV_PURPOSE: purposeText
1762
1764
  },
1763
1765
  configPath,
1764
- onProgress: options?.onProgress
1766
+ onProgress: options?.onProgress,
1767
+ interactive: true
1765
1768
  });
1766
1769
  if (!containerResult.ok) {
1767
1770
  return rollbackContainerFailure(containerName, wsPath, containerResult, deps);
@@ -1891,7 +1894,8 @@ async function attachInstance(instanceName, deps, onContainerStarting, onAttachi
1891
1894
  const configPath = join7(wsPath.root, AGENT_ENV_DIR, "devcontainer.json");
1892
1895
  const startResult = await deps.container.devcontainerUp(wsPath.root, containerName, {
1893
1896
  remoteEnv: { AGENT_INSTANCE: wsPath.name },
1894
- configPath
1897
+ configPath,
1898
+ interactive: true
1895
1899
  });
1896
1900
  if (!startResult.ok) {
1897
1901
  return {
@@ -2068,7 +2072,8 @@ async function codeInstance(instanceName, deps, onContainerStarting, onOpening,
2068
2072
  onContainerStarting?.();
2069
2073
  const startResult = await deps.container.devcontainerUp(wsPath.root, containerName, {
2070
2074
  remoteEnv: { AGENT_INSTANCE: wsPath.name },
2071
- configPath
2075
+ configPath,
2076
+ interactive: true
2072
2077
  });
2073
2078
  if (!startResult.ok) {
2074
2079
  return {
@@ -3411,7 +3416,8 @@ async function startAndDiscoverContainer(wsPath, containerName, purpose, buildNo
3411
3416
  buildNoCache,
3412
3417
  remoteEnv: { AGENT_INSTANCE: wsPath.name, AGENT_ENV_PURPOSE: purpose },
3413
3418
  configPath,
3414
- onProgress
3419
+ onProgress,
3420
+ interactive: true
3415
3421
  });
3416
3422
  if (!containerResult.ok) {
3417
3423
  return { ok: false, error: containerResult.error };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zookanalytics/agent-env",
3
- "version": "0.12.1",
3
+ "version": "0.12.3",
4
4
  "description": "CLI for creating isolated, AI-ready development environments",
5
5
  "type": "module",
6
6
  "bin": {