@aws/agentcore 1.0.0-preview.16 → 1.0.0-preview.17

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.
@@ -124,15 +124,9 @@ async function main() {
124
124
  }
125
125
  }
126
126
 
127
- // Harness is preview-gated. The CLI bundle bakes the preview flag at build time and
128
- // forwards it to this child process via AGENTCORE_PREVIEW (see toolkit-lib/wrapper.ts).
129
- // This app is built separately and cannot see that build-time define, so it gates on the
130
- // env var. Absent/anything-but-'1' defaults to off so a stale harnesses[] entry in a
131
- // non-preview build never synthesizes an AWS::BedrockAgentCore::Harness resource.
132
- const previewEnabled = process.env.AGENTCORE_PREVIEW === '1';
133
-
127
+ // Synthesize an AWS::BedrockAgentCore::Harness resource for each harness entry in the spec.
134
128
  const harnessConfigs: HarnessConfig[] = [];
135
- for (const entry of previewEnabled ? (specAny.harnesses ?? []) : []) {
129
+ for (const entry of specAny.harnesses ?? []) {
136
130
  const harnessDir = path.resolve(projectRoot, entry.path);
137
131
  const harnessPath = path.resolve(harnessDir, 'harness.json');
138
132
  try {
@@ -79,15 +79,9 @@ async function main() {
79
79
  }
80
80
  }
81
81
 
82
- // Harness is preview-gated. The CLI bundle bakes the preview flag at build time and
83
- // forwards it to this child process via AGENTCORE_PREVIEW (see toolkit-lib/wrapper.ts).
84
- // This app is built separately and cannot see that build-time define, so it gates on the
85
- // env var. Absent/anything-but-'1' defaults to off so a stale harnesses[] entry in a
86
- // non-preview build never synthesizes an AWS::BedrockAgentCore::Harness resource.
87
- const previewEnabled = process.env.AGENTCORE_PREVIEW === '1';
88
-
82
+ // Synthesize an AWS::BedrockAgentCore::Harness resource for each harness entry in the spec.
89
83
  const harnessConfigs: HarnessConfig[] = [];
90
- for (const entry of previewEnabled ? (specAny.harnesses ?? []) : []) {
84
+ for (const entry of specAny.harnesses ?? []) {
91
85
  const harnessDir = path.resolve(projectRoot, entry.path);
92
86
  const harnessPath = path.resolve(harnessDir, 'harness.json');
93
87
  try {