Skip to content

Commit eb86e34

Browse files
authored
Merge pull request #88 from amDosion/feat/enable-schedule-remote-agents
feat: enable /schedule by adding AGENT_TRIGGERS_REMOTE to default features
1 parent 4c5a122 commit eb86e34

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

build.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@ const outdir = "dist";
88
const { rmSync } = await import("fs");
99
rmSync(outdir, { recursive: true, force: true });
1010

11+
// Default features that match the official CLI build.
12+
// Additional features can be enabled via FEATURE_<NAME>=1 env vars.
13+
const DEFAULT_BUILD_FEATURES = ["AGENT_TRIGGERS_REMOTE"];
14+
1115
// Collect FEATURE_* env vars → Bun.build features
12-
const features = Object.keys(process.env)
16+
const envFeatures = Object.keys(process.env)
1317
.filter(k => k.startsWith("FEATURE_"))
1418
.map(k => k.replace("FEATURE_", ""));
19+
const features = [...new Set([...DEFAULT_BUILD_FEATURES, ...envFeatures])];
1520

1621
// Step 2: Bundle with splitting
1722
const result = await Bun.build({

scripts/dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const defineArgs = Object.entries(defines).flatMap(([k, v]) => [
1515

1616
// Bun --feature flags: enable feature() gates at runtime.
1717
// Default features enabled in dev mode.
18-
const DEFAULT_FEATURES = ["BUDDY", "TRANSCRIPT_CLASSIFIER", "BRIDGE_MODE"];
18+
const DEFAULT_FEATURES = ["BUDDY", "TRANSCRIPT_CLASSIFIER", "BRIDGE_MODE", "AGENT_TRIGGERS_REMOTE"];
1919

2020
// Any env var matching FEATURE_<NAME>=1 will also enable that feature.
2121
// e.g. FEATURE_PROACTIVE=1 bun run dev

0 commit comments

Comments
 (0)