@go-to-k/cdkd 0.285.5 → 0.285.6
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/{asg-provider-BBSPZtne.js → asg-provider-DsyALMVT.js} +3 -3
- package/dist/{asg-provider-BBSPZtne.js.map → asg-provider-DsyALMVT.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/{deploy-engine-CSBoL-Az.js → deploy-engine-BgpCWFvY.js} +43 -16
- package/dist/deploy-engine-BgpCWFvY.js.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/{logger-Dz3Le2Pw.js → logger-DyTk5GeO.js} +81 -17
- package/dist/{logger-Dz3Le2Pw.js.map → logger-DyTk5GeO.js.map} +1 -1
- package/dist/{program-Def0C7JX.js → program-cjSJf49d.js} +31 -15
- package/dist/{program-Def0C7JX.js.map → program-cjSJf49d.js.map} +1 -1
- package/dist/{version-neBHYAq9.js → version-De6foYg3.js} +2 -2
- package/dist/{version-neBHYAq9.js.map → version-De6foYg3.js.map} +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-CSBoL-Az.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as DEFAULT_STATE_PREFIX, $n as warnDeprecatedNoPrefixCliFlag, $t as maskSecretsInError, A as bold, An as buildDenyExternalAccessPolicy, Ar as NestedStackChildDirectDestroyError, At as requireConfigObject, B as secretBearingStateKeyWarning, Bn as getDockerImageBySourceHash, Bt as DiffCalculator, C as unsupportedFinalSnapshotError, Cn as ensureAssetStorage, Cr as DeployCancelledError, Ct as assertRegionMatch, D as isStatefulRecreateTargetSync, Dn as readBootstrapMarkerBody, Dr as LocalStartServiceError, Dt as readConfigString, E as MULTI_REGION_RECREATE_BLOCKED_TYPES, En as parseBootstrapMarker, Er as LocalMigrateError, Et as configStringRefusal, F as yellow, Fn as getDockerCmd, Fr as StackHasActiveImportsError, Ft as s3BucketDomainName, G as clearOnUpdateRemoval, Gn as resolveApp, Gr as isThrottlingError, Gt as TemplateParser, H as getCurrentResourceSecrets, Hn as synthesisStatusMessage, Hr as withErrorHandling, Ht as describeTypeWithThrottleRetry, I as collectDeclaredOutputNames, In as partitionSensitiveEnv, Ir as StackTerminationProtectionError, It as s3BucketDualStackDomainName, J as findSilentDropProperties, Jn as resolveSkipPrefix, Jr as markRedactedCause, Jt as TEMPLATE_SOURCED_RULES, K as ProviderRegistry, Kn as resolveAutoAssetStorage, Kr as isTransientServerError, Kt as STATE_SOURCED_CROSS_GENERATION_RULES, L as collectPublishedOutputNames, Ln as runDockerForeground, Lt as s3BucketRegionalDomainName, M as gray, Mn as buildDockerImage, Mr as ProvisioningError, Mt as classifyReplaySecretRegion, N as green, Nn as dockerSpawnEnvWithSensitive, Nr as ResourceTimeoutError, Nt as producerRegionsFromState, O as renderStatefulReason, On as validateAssetBucketName, Ot as replayWarn, P as red, Pn as formatDockerLoginError, Pr as ResourceUpdateNotSupportedError, Pt as s3BucketArn, Q as CUSTOM_RESOURCE_RESPONSE_PREFIX, Qn as stateBucketExistenceConfirmed, Qt as isSingleDynamicReferenceToken, R as exportAliasCollisionScrubWarning, Rn as runDockerStreaming, Rt as s3BucketWebsiteUrl, S as refusesFinalSnapshot, Sn as assertAssetBucketRegion, St as resolveExplicitPhysicalId, T as extractDeploymentEventError, Tn as isCrossRegionRedirect, Tr as LocalInvokeBuildError$1, Tt as configBooleanRefusal, U as IAMRoleProvider, Un as getDefaultStateBucketName, Ur as isMarkedNonRetryable, Ut as withRetry, V as stateKeySecretExposure, Vn as Synthesizer, Vr as normalizeAwsError, Vt as INTRINSIC_KEYS, W as collectInlinePolicyNamesManagedBySiblings, Wn as getLegacyStateBucketName, Wr as isRetryableTransientError, Wt as DagBuilder, X as maskDeep, Xn as resolveStateBucketWithDefaultAndSource, Xt as dynamicReferenceTokens, Y as createMaskedRetryLogger, Yn as resolveStateBucketWithDefault, Yr as retryClassificationText, Yt as createSecretMasker, Z as maskerOrIdentity, Zn as resolveUseCdkBootstrapAssets, Zt as errorCauseChain, _ as PRE_DELETE_SNAPSHOT_TYPES, _n as rewriteTemplateAssetReferences, _r as setAwsClients, _t as isUnboundTemplateParameter, a as DeploymentEventsStore, an as S3StateBackend, ar as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, at as CloudControlProvider, b as createPreDeleteFinalSnapshot, bn as AssetModeResolver, bt as WAFv2WebACLProvider, c as replayFailedOperations, cn as importableOutputKeys, cr as canonicalizeRegion, ct as deleteIndeterminateGuards, d as updatePartialReason, dn as AssetPublisher, dr as processStackMessages, dt as isTerminationProtectionPropagationError, en as maskSecretsInText, er as CFN_TEMPLATE_BODY_LIMIT, et as beginCommandInterruptScope, f as withResourceDeadline, fn as stringifyValue, ft as IntrinsicFunctionResolver, g as ATOMIC_FINAL_SNAPSHOT_TYPES, gn as loadPublishableAssetManifest, gr as resetAwsClients, gt as getAccountInfo, h as computeImplicitDeleteEdges, hn as createAssetRedirectResolver, hr as getAwsClients, ht as coerceParameterTypedValue, i as DeploymentEventsReader, in as displaySafe, ir as uploadCfnTemplate, it as startInterruptWatch, j as cyan, jn as describeAwsFailure, jr as PartialFailureError, jt as requireConfigString, k as formatResourceLine, kn as validateContainerRepoName, kr as MissingCdkCliError, kt as requireConfigArray, l as replayRollback, ln as importableOutputs, lr as derivePartitionAndUrlSuffix, lt as deleteSkipReason, m as IMPLICIT_DELETE_DEPENDENCIES, mn as buildAssetRedirectMap, mr as AwsClients, mt as cfnRefValueFromPhysicalId, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nn as scrubResourceRecord, nr as MIGRATE_TMP_PREFIX, nt as interruptWatchListenerCount, o as planFailedOps, on as rebuildClientForBucketRegion, or as expectedOwnerParam, ot as slowCcOperationTimeoutMs, p as maskingRetryLogger, pn as WorkGraph, pr as resolveBucketRegion, pt as carriesDynamicReference, q as findActionableSilentDrops, qn as resolveCaptureObservedState, qr as markNonRetryable, qt as STATE_SOURCED_READBACK_RULES, r as DeployEngine, rn as LockManager, rr as findLargeInlineResources, rt as isInterruptedWaitError, s as planRollback, sn as exportNamesCarriedFrom, sr as PARTITION_TABLE, st as UNSPECIFIED_SKIP_REASON, t as DEFAULT_RESOURCE_TIMEOUT_MS, tn as redactSecretsForState, tr as CFN_TEMPLATE_URL_LIMIT, tt as endCommandInterruptScope, u as updatePartialMessage, un as shouldRetainResource, ur as AssemblyReader, ut as disableInstanceApiTermination, v as buildFinalSnapshotIdentifier, vn as escapeRegExp, vt as parameterTypeMayLoseSecretIdentity, w as makeCanonicalizePropertiesFn, wn as getBootstrapMarkerKey, wr as DynamicReferenceRegionAmbiguousError, wt as coerceCfnBoolean, x as isFinalSnapshotError, xn as BOOTSTRAP_MARKER_PREFIX, xr as CrossAccountSecretRefusalError, xt as normalizeAwsTagsToCfn, y as ccRoutedFinalSnapshotError, yn as stripControlChars, yr as CdkdError, yt as refStateLookupFromResource, z as isExportAliasCollision, zn as AssetManifestLoader, zt as applyRoleArnIfSet } from "./deploy-engine-
|
|
2
|
-
import {
|
|
1
|
+
import { $ as DEFAULT_STATE_PREFIX, $n as warnDeprecatedNoPrefixCliFlag, $t as maskSecretsInError, A as bold, An as buildDenyExternalAccessPolicy, Ar as NestedStackChildDirectDestroyError, At as requireConfigObject, B as secretBearingStateKeyWarning, Bn as getDockerImageBySourceHash, Bt as DiffCalculator, C as unsupportedFinalSnapshotError, Cn as ensureAssetStorage, Cr as DeployCancelledError, Ct as assertRegionMatch, D as isStatefulRecreateTargetSync, Dn as readBootstrapMarkerBody, Dr as LocalStartServiceError, Dt as readConfigString, E as MULTI_REGION_RECREATE_BLOCKED_TYPES, En as parseBootstrapMarker, Er as LocalMigrateError, Et as configStringRefusal, F as yellow, Fn as getDockerCmd, Fr as StackHasActiveImportsError, Ft as s3BucketDomainName, G as clearOnUpdateRemoval, Gn as resolveApp, Gr as isThrottlingError, Gt as TemplateParser, H as getCurrentResourceSecrets, Hn as synthesisStatusMessage, Hr as withErrorHandling, Ht as describeTypeWithThrottleRetry, I as collectDeclaredOutputNames, In as partitionSensitiveEnv, Ir as StackTerminationProtectionError, It as s3BucketDualStackDomainName, J as findSilentDropProperties, Jn as resolveSkipPrefix, Jr as markRedactedCause, Jt as TEMPLATE_SOURCED_RULES, K as ProviderRegistry, Kn as resolveAutoAssetStorage, Kr as isTransientServerError, Kt as STATE_SOURCED_CROSS_GENERATION_RULES, L as collectPublishedOutputNames, Ln as runDockerForeground, Lt as s3BucketRegionalDomainName, M as gray, Mn as buildDockerImage, Mr as ProvisioningError, Mt as classifyReplaySecretRegion, N as green, Nn as dockerSpawnEnvWithSensitive, Nr as ResourceTimeoutError, Nt as producerRegionsFromState, O as renderStatefulReason, On as validateAssetBucketName, Ot as replayWarn, P as red, Pn as formatDockerLoginError, Pr as ResourceUpdateNotSupportedError, Pt as s3BucketArn, Q as CUSTOM_RESOURCE_RESPONSE_PREFIX, Qn as stateBucketExistenceConfirmed, Qt as isSingleDynamicReferenceToken, R as exportAliasCollisionScrubWarning, Rn as runDockerStreaming, Rt as s3BucketWebsiteUrl, S as refusesFinalSnapshot, Sn as assertAssetBucketRegion, St as resolveExplicitPhysicalId, T as extractDeploymentEventError, Tn as isCrossRegionRedirect, Tr as LocalInvokeBuildError$1, Tt as configBooleanRefusal, U as IAMRoleProvider, Un as getDefaultStateBucketName, Ur as isMarkedNonRetryable, Ut as withRetry, V as stateKeySecretExposure, Vn as Synthesizer, Vr as normalizeAwsError, Vt as INTRINSIC_KEYS, W as collectInlinePolicyNamesManagedBySiblings, Wn as getLegacyStateBucketName, Wr as isRetryableTransientError, Wt as DagBuilder, X as maskDeep, Xn as resolveStateBucketWithDefaultAndSource, Xt as dynamicReferenceTokens, Y as createMaskedRetryLogger, Yn as resolveStateBucketWithDefault, Yr as retryClassificationText, Yt as createSecretMasker, Z as maskerOrIdentity, Zn as resolveUseCdkBootstrapAssets, Zt as errorCauseChain, _ as PRE_DELETE_SNAPSHOT_TYPES, _n as rewriteTemplateAssetReferences, _r as setAwsClients, _t as isUnboundTemplateParameter, a as DeploymentEventsStore, an as S3StateBackend, ar as CUSTOM_RESOURCE_RESPONSE_OBJECT_DESCRIPTION, at as CloudControlProvider, b as createPreDeleteFinalSnapshot, bn as AssetModeResolver, bt as WAFv2WebACLProvider, c as replayFailedOperations, cn as importableOutputKeys, cr as canonicalizeRegion, ct as deleteIndeterminateGuards, d as updatePartialReason, dn as AssetPublisher, dr as processStackMessages, dt as isTerminationProtectionPropagationError, en as maskSecretsInText, er as CFN_TEMPLATE_BODY_LIMIT, et as beginCommandInterruptScope, f as withResourceDeadline, fn as stringifyValue, ft as IntrinsicFunctionResolver, g as ATOMIC_FINAL_SNAPSHOT_TYPES, gn as loadPublishableAssetManifest, gr as resetAwsClients, gt as getAccountInfo, h as computeImplicitDeleteEdges, hn as createAssetRedirectResolver, hr as getAwsClients, ht as coerceParameterTypedValue, i as DeploymentEventsReader, in as displaySafe, ir as uploadCfnTemplate, it as startInterruptWatch, j as cyan, jn as describeAwsFailure, jr as PartialFailureError, jt as requireConfigString, k as formatResourceLine, kn as validateContainerRepoName, kr as MissingCdkCliError, kt as requireConfigArray, l as replayRollback, ln as importableOutputs, lr as derivePartitionAndUrlSuffix, lt as deleteSkipReason, m as IMPLICIT_DELETE_DEPENDENCIES, mn as buildAssetRedirectMap, mr as AwsClients, mt as cfnRefValueFromPhysicalId, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nn as scrubResourceRecord, nr as MIGRATE_TMP_PREFIX, nt as interruptWatchListenerCount, o as planFailedOps, on as rebuildClientForBucketRegion, or as expectedOwnerParam, ot as slowCcOperationTimeoutMs, p as maskingRetryLogger, pn as WorkGraph, pr as resolveBucketRegion, pt as carriesDynamicReference, q as findActionableSilentDrops, qn as resolveCaptureObservedState, qr as markNonRetryable, qt as STATE_SOURCED_READBACK_RULES, r as DeployEngine, rn as LockManager, rr as findLargeInlineResources, rt as isInterruptedWaitError, s as planRollback, sn as exportNamesCarriedFrom, sr as PARTITION_TABLE, st as UNSPECIFIED_SKIP_REASON, t as DEFAULT_RESOURCE_TIMEOUT_MS, tn as redactSecretsForState, tr as CFN_TEMPLATE_URL_LIMIT, tt as endCommandInterruptScope, u as updatePartialMessage, un as shouldRetainResource, ur as AssemblyReader, ut as disableInstanceApiTermination, v as buildFinalSnapshotIdentifier, vn as escapeRegExp, vt as parameterTypeMayLoseSecretIdentity, w as makeCanonicalizePropertiesFn, wn as getBootstrapMarkerKey, wr as DynamicReferenceRegionAmbiguousError, wt as coerceCfnBoolean, x as isFinalSnapshotError, xn as BOOTSTRAP_MARKER_PREFIX, xr as CrossAccountSecretRefusalError, xt as normalizeAwsTagsToCfn, y as ccRoutedFinalSnapshotError, yn as stripControlChars, yr as CdkdError, yt as refStateLookupFromResource, z as isExportAliasCollision, zn as AssetManifestLoader, zt as applyRoleArnIfSet } from "./deploy-engine-BgpCWFvY.js";
|
|
2
|
+
import { _ as withStackName, c as PATTERN_B_NAME_OPTIONS, f as generateResourceName, g as withSkipPrefix, i as reserveStdoutForPayload, l as PATTERN_B_NAME_PROPERTIES, m as getCurrentStackName, n as getLogger, o as runStackBuffered, p as generateResourceNameWithFallback, s as getLiveRenderer, u as PATTERN_B_RESOURCE_TYPES } from "./logger-DyTk5GeO.js";
|
|
3
3
|
import { t as awsClientDefaults } from "./aws-client-defaults-D-iYiIJ6.js";
|
|
4
|
-
import { t as getCdkdVersion } from "./version-
|
|
5
|
-
import { t as ASGProvider } from "./asg-provider-
|
|
4
|
+
import { t as getCdkdVersion } from "./version-De6foYg3.js";
|
|
5
|
+
import { t as ASGProvider } from "./asg-provider-DsyALMVT.js";
|
|
6
6
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
7
7
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
8
8
|
import { CopyObjectCommand, CreateBucketCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketEncryptionCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketOwnershipControlsCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketNotificationConfigurationCommand, GetBucketOwnershipControlsCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
|
|
@@ -1810,6 +1810,7 @@ function countDeployableResources(template) {
|
|
|
1810
1810
|
async function synthCommand(options) {
|
|
1811
1811
|
const logger = getLogger();
|
|
1812
1812
|
if (options.verbose) logger.setLevel("debug");
|
|
1813
|
+
reserveStdoutForPayload();
|
|
1813
1814
|
warnIfDeprecatedRegion(options);
|
|
1814
1815
|
foldRegionOption(options);
|
|
1815
1816
|
await applyRoleArnIfSet({
|
|
@@ -1948,7 +1949,7 @@ function toLongRecord(stack, includeDeps) {
|
|
|
1948
1949
|
async function listCommand(patterns, options) {
|
|
1949
1950
|
const logger = getLogger();
|
|
1950
1951
|
if (options.verbose) logger.setLevel("debug");
|
|
1951
|
-
|
|
1952
|
+
reserveStdoutForPayload();
|
|
1952
1953
|
warnIfDeprecatedRegion(options);
|
|
1953
1954
|
foldRegionOption(options);
|
|
1954
1955
|
await applyRoleArnIfSet({
|
|
@@ -81137,8 +81138,15 @@ var DockerRunnerError = class DockerRunnerError extends Error {
|
|
|
81137
81138
|
* Pull the image. No-op when `skipPull` is true.
|
|
81138
81139
|
*
|
|
81139
81140
|
* In verbose mode (`--verbose` / global log level `debug`), streams the
|
|
81140
|
-
* full `docker pull` progress
|
|
81141
|
-
*
|
|
81141
|
+
* full `docker pull` progress live so the user sees per-layer downloads.
|
|
81142
|
+
* NOT necessarily to stdout: on a command holding a payload reservation --
|
|
81143
|
+
* which `cdkd local invoke` and `cdkd local invoke-agentcore` both do, and
|
|
81144
|
+
* both reach this function -- the child's fd 1 is redirected to stderr by
|
|
81145
|
+
* `spawnForeground` (`src/utils/docker-cmd.ts`, issue
|
|
81146
|
+
* [#2410](https://github.com/go-to-k/cdkd/issues/2410)), so the progress
|
|
81147
|
+
* lands there instead. Do not build on the fd-1 assumption; that is the one
|
|
81148
|
+
* this file's own leak was made of. In the default compact mode the call is
|
|
81149
|
+
* silent (cached
|
|
81142
81150
|
* images are the common case; a fresh pull still shows progress only
|
|
81143
81151
|
* via `--verbose`). Errors are always surfaced: the captured stderr is
|
|
81144
81152
|
* folded into the thrown `DockerRunnerError` message.
|
|
@@ -85844,6 +85852,7 @@ function parseTimeoutMs(raw) {
|
|
|
85844
85852
|
async function localInvokeAgentCoreCommand(target, options) {
|
|
85845
85853
|
const logger = getLogger();
|
|
85846
85854
|
if (options.verbose) logger.setLevel("debug");
|
|
85855
|
+
reserveStdoutForPayload();
|
|
85847
85856
|
warnIfDeprecatedRegion(options);
|
|
85848
85857
|
if (options.region !== void 0) options.region = canonicalizeRegion(options.region);
|
|
85849
85858
|
if (options.stackRegion !== void 0) {
|
|
@@ -85964,6 +85973,7 @@ async function localInvokeAgentCoreCommand(target, options) {
|
|
|
85964
85973
|
emitA2aResult(a2a);
|
|
85965
85974
|
} else if (options.ws) {
|
|
85966
85975
|
const interactive = process.stdin.isTTY === true;
|
|
85976
|
+
const promptOnStdout = interactive && process.stdout.isTTY === true;
|
|
85967
85977
|
if (watchActive) await runAgentCoreWatchLoop({
|
|
85968
85978
|
containerHost,
|
|
85969
85979
|
hostPort,
|
|
@@ -85979,7 +85989,7 @@ async function localInvokeAgentCoreCommand(target, options) {
|
|
|
85979
85989
|
const wsResult = await invokeAgentCoreWs(containerHost, port, event, {
|
|
85980
85990
|
sessionId,
|
|
85981
85991
|
timeoutMs: options.timeout,
|
|
85982
|
-
onMessage: wrapWsOnMessage((text) => process.stdout.write(text),
|
|
85992
|
+
onMessage: wrapWsOnMessage((text) => process.stdout.write(text), promptOnStdout),
|
|
85983
85993
|
abortSignal,
|
|
85984
85994
|
...authorization && { authorization },
|
|
85985
85995
|
...frameSource && { frameSource }
|
|
@@ -86034,7 +86044,7 @@ async function localInvokeAgentCoreCommand(target, options) {
|
|
|
86034
86044
|
const wsResult = await invokeAgentCoreWs(containerHost, hostPort, event, {
|
|
86035
86045
|
sessionId,
|
|
86036
86046
|
timeoutMs: options.timeout,
|
|
86037
|
-
onMessage: wrapWsOnMessage((text) => process.stdout.write(text),
|
|
86047
|
+
onMessage: wrapWsOnMessage((text) => process.stdout.write(text), promptOnStdout),
|
|
86038
86048
|
...authorization && { authorization },
|
|
86039
86049
|
...frameSource && { frameSource }
|
|
86040
86050
|
});
|
|
@@ -86857,17 +86867,22 @@ const WS_REPL_PROMPT = "> ";
|
|
|
86857
86867
|
* `/ws` endpoint behaves the same. That's correct on the wire but visually
|
|
86858
86868
|
* run-on in an interactive terminal — the user's next keystroke concatenates
|
|
86859
86869
|
* onto the last frame's tail char and they have no signal that the REPL is
|
|
86860
|
-
* waiting for input.
|
|
86870
|
+
* waiting for input. When the prompt is on, we append `\n` (unless already
|
|
86861
86871
|
* present) and then write a `> ` prompt, so each agent message is presented as
|
|
86862
86872
|
* its own line and the next input prompt is visible.
|
|
86863
86873
|
*
|
|
86864
|
-
*
|
|
86865
|
-
*
|
|
86874
|
+
* The gate is `promptOnStdout` — stdin a TTY AND stdout a TTY — not stdin
|
|
86875
|
+
* alone (issue [#2410](https://github.com/go-to-k/cdkd/issues/2410)). Reading
|
|
86876
|
+
* follow-up frames from stdin is a stdin question and keeps its own check at
|
|
86877
|
+
* the call site; writing a prompt is a STDOUT question, and stdout is this
|
|
86878
|
+
* command's payload stream. With a REDIRECTED stdout the raw
|
|
86879
|
+
* WS-protocol-faithful pass-through is what a consumer parses, so a terminal
|
|
86880
|
+
* stdin no longer drags a `> ` into it.
|
|
86866
86881
|
*
|
|
86867
86882
|
* Exported so a unit test can drive the wrapping without the full WS pipeline.
|
|
86868
86883
|
*/
|
|
86869
|
-
function wrapWsOnMessage(sink,
|
|
86870
|
-
if (!
|
|
86884
|
+
function wrapWsOnMessage(sink, promptOnStdout) {
|
|
86885
|
+
if (!promptOnStdout) return sink;
|
|
86871
86886
|
return (text) => {
|
|
86872
86887
|
sink(text.endsWith("\n") ? text : `${text}\n`);
|
|
86873
86888
|
sink("> ");
|
|
@@ -87071,6 +87086,7 @@ const CDKD_EMBED_CONFIG = {
|
|
|
87071
87086
|
async function localInvokeCommand(target, options) {
|
|
87072
87087
|
const logger = getLogger();
|
|
87073
87088
|
if (options.verbose) logger.setLevel("debug");
|
|
87089
|
+
reserveStdoutForPayload();
|
|
87074
87090
|
warnIfDeprecatedRegion(options);
|
|
87075
87091
|
if (options.region !== void 0) options.region = canonicalizeRegion(options.region);
|
|
87076
87092
|
if (options.stackRegion !== void 0) {
|
|
@@ -89022,4 +89038,4 @@ function buildProgram() {
|
|
|
89022
89038
|
|
|
89023
89039
|
//#endregion
|
|
89024
89040
|
export { buildProgram };
|
|
89025
|
-
//# sourceMappingURL=program-
|
|
89041
|
+
//# sourceMappingURL=program-cjSJf49d.js.map
|