@go-to-k/cdkd 0.167.0 → 0.167.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/cli.js CHANGED
@@ -46251,12 +46251,22 @@ async function invokeRieStreaming(host, port, event, timeoutMs) {
46251
46251
  throw new Error(`RIE streaming response did not emit the prelude/body separator within ${STREAM_PRELUDE_MAX_BYTES} bytes. The handler likely did not call awslambda.HttpResponseStream.from(stream, metadata).`);
46252
46252
  }
46253
46253
  }
46254
+ let preludeSynthesized = false;
46254
46255
  if (separatorIdx < 0) {
46255
- clearTimeout(timer);
46256
- throw new Error(`RIE streaming response ended before the prelude/body separator (got ${preludeBytes.length} bytes). The handler likely threw before streaming the prelude — check container logs.`);
46256
+ if (preludeBytes.length === 0) {
46257
+ clearTimeout(timer);
46258
+ throw new Error(`RIE streaming response ended with zero bytes. The handler likely threw before any write — check container logs.`);
46259
+ }
46260
+ preludeSynthesized = true;
46261
+ bodyTail = preludeBytes;
46262
+ preludeBytes = Buffer.alloc(0);
46257
46263
  }
46258
46264
  let prelude;
46259
- try {
46265
+ if (preludeSynthesized) prelude = {
46266
+ statusCode: 200,
46267
+ headers: { "Content-Type": "application/octet-stream" }
46268
+ };
46269
+ else try {
46260
46270
  prelude = parseStreamingPrelude(preludeBytes.toString("utf8"));
46261
46271
  } catch (err) {
46262
46272
  clearTimeout(timer);
@@ -60770,7 +60780,7 @@ function reorderArgs(argv) {
60770
60780
  */
60771
60781
  async function main() {
60772
60782
  const program = new Command();
60773
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.167.0");
60783
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.167.1");
60774
60784
  program.addCommand(createBootstrapCommand());
60775
60785
  program.addCommand(createSynthCommand());
60776
60786
  program.addCommand(createListCommand());