@replayio/app-building 1.30.0 → 1.31.0

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/README.md CHANGED
@@ -80,7 +80,7 @@ The agent can also run `list-secrets` to see which secrets are available, and `s
80
80
 
81
81
  | Export | Description |
82
82
  |---|---|
83
- | `ContainerConfig` | `infisical` (required `InfisicalConfig`), optional `projectRoot` (local Docker only), `registry`, `flyToken`/`flyApp` (set both for remote Fly.io), `flyGuest` (override Fly Machine guest sizing; default: 16 performance CPUs / 32 GiB), `flyVolumeSizeGb` (override Fly Volume size in GiB; default: 50), `imageRef`, `webhookUrl`/`webhookSecret`, `taskWebhookUrl` (GET endpoint for external task queue), `addTaskWebhookUrl` (POST endpoint for tasks added by `add-task` script), `detached`, `initialPrompt`, `localPort`, `absorbTasks`, `namePrefix` (default: `"app-building"`). |
83
+ | `ContainerConfig` | `infisical` (required `InfisicalConfig`), optional `projectRoot` (local Docker only), `registry`, `flyToken`/`flyApp` (set both for remote Fly.io), `flyGuest` (override Fly Machine guest sizing; default: 16 performance CPUs / 32 GiB), `flyVolumeSizeGb` (override Fly Volume size in GiB; default: 50), `imageRef`, `webhookUrl`/`webhookSecret`, `taskWebhookUrl` (GET endpoint for external task queue), `addTaskWebhookUrl` (POST endpoint for tasks added by `add-task` script), `detached`, `initialPrompt`, `localPort`, `absorbTasks`, `namePrefix` (default: `"app-building"`), `env` (extra env vars to inject into the container; cannot clobber package-reserved vars). |
84
84
  | `FlyGuest` | Fly Machine guest spec: `cpu_kind` (`"shared"` \| `"performance"`), `cpus`, `memory_mb`. |
85
85
  | `RepoOptions` | Per-invocation git settings: `repoUrl`, `cloneBranch`, `pushBranch`. |
86
86
  | `AgentState` | Returned by `startContainer`. Contains `type`, `containerName`, `port`, `baseUrl`, and Fly-specific fields for remote containers. |
package/dist/index.d.ts CHANGED
@@ -119,6 +119,12 @@ interface ContainerConfig {
119
119
  flyGuest?: FlyGuest;
120
120
  /** Override the Fly Volume size in GiB. Default: 50. */
121
121
  flyVolumeSizeGb?: number;
122
+ /**
123
+ * Extra environment variables to inject into the container. Reserved vars
124
+ * set by the package (PORT, CONTAINER_NAME, WEBHOOK_URL, INFISICAL_*, etc.)
125
+ * always take precedence — values here cannot clobber them.
126
+ */
127
+ env?: Record<string, string>;
122
128
  }
123
129
  interface RepoOptions {
124
130
  repoUrl: string;
package/dist/index.js CHANGED
@@ -241,6 +241,7 @@ function buildContainerEnv(repo, infisical, extra = {}) {
241
241
  }
242
242
  function buildExtraEnv(config, containerName) {
243
243
  const extra = {
244
+ ...config.env,
244
245
  PORT: "3000",
245
246
  CONTAINER_NAME: containerName
246
247
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replayio/app-building",
3
- "version": "1.30.0",
3
+ "version": "1.31.0",
4
4
  "description": "Library for managing agentic app-building containers",
5
5
  "type": "module",
6
6
  "exports": {