@songtonyli/dsh-cli 0.1.81 → 0.1.83
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 +1 -1
- package/bin/dsh.mjs +1 -1
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +94 -1589
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -7
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -3
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -3
- package/node_modules/@aws-sdk/core/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-http/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-login/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
- package/node_modules/@aws-sdk/eventstream-handler-node/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-eventstream/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-websocket/package.json +4 -4
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +5 -5
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +37 -19
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +37 -19
- package/node_modules/@aws-sdk/token-providers/package.json +5 -5
- package/node_modules/@aws-sdk/types/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +18 -12
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.i18n.yaml +14 -14
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.md +7 -5
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.zh.md +7 -5
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/index.js +15 -3
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-f9xQyTek.js +1669 -0
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +19 -16
- package/node_modules/@deepseek-ai/dsh-tui-app/README.md +38 -8
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +38 -8
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +8457 -7005
- package/node_modules/@opentelemetry/api/README.md +4 -23
- package/node_modules/@opentelemetry/api/dist/api/context.cjs +100 -0
- package/node_modules/@opentelemetry/api/dist/api/context.mjs +100 -0
- package/node_modules/@opentelemetry/api/dist/api/diag.cjs +68 -0
- package/node_modules/@opentelemetry/api/dist/api/diag.mjs +68 -0
- package/node_modules/@opentelemetry/api/dist/api/logs.cjs +59 -0
- package/node_modules/@opentelemetry/api/dist/api/logs.mjs +59 -0
- package/node_modules/@opentelemetry/api/dist/api/metrics.cjs +46 -0
- package/node_modules/@opentelemetry/api/dist/api/metrics.mjs +46 -0
- package/node_modules/@opentelemetry/api/dist/api/propagation.cjs +74 -0
- package/node_modules/@opentelemetry/api/dist/api/propagation.mjs +74 -0
- package/node_modules/@opentelemetry/api/dist/api/trace.cjs +62 -0
- package/node_modules/@opentelemetry/api/dist/api/trace.mjs +62 -0
- package/node_modules/@opentelemetry/api/dist/baggage/context-helpers.cjs +48 -0
- package/node_modules/@opentelemetry/api/dist/baggage/context-helpers.mjs +45 -0
- package/node_modules/@opentelemetry/api/dist/baggage/internal/baggage-impl.cjs +36 -0
- package/node_modules/@opentelemetry/api/dist/baggage/internal/baggage-impl.mjs +36 -0
- package/node_modules/@opentelemetry/api/dist/baggage/internal/symbol.cjs +9 -0
- package/node_modules/@opentelemetry/api/dist/baggage/internal/symbol.mjs +9 -0
- package/node_modules/@opentelemetry/api/dist/baggage/utils.cjs +37 -0
- package/node_modules/@opentelemetry/api/dist/baggage/utils.mjs +36 -0
- package/node_modules/@opentelemetry/api/dist/context/NoopContextManager.cjs +27 -0
- package/node_modules/@opentelemetry/api/dist/context/NoopContextManager.mjs +27 -0
- package/node_modules/@opentelemetry/api/dist/context/context.cjs +41 -0
- package/node_modules/@opentelemetry/api/dist/context/context.mjs +40 -0
- package/node_modules/@opentelemetry/api/dist/context-api.cjs +10 -0
- package/node_modules/@opentelemetry/api/dist/context-api.mjs +11 -0
- package/node_modules/@opentelemetry/api/dist/diag/ComponentLogger.cjs +40 -0
- package/node_modules/@opentelemetry/api/dist/diag/ComponentLogger.mjs +40 -0
- package/node_modules/@opentelemetry/api/dist/diag/consoleLogger.cjs +62 -0
- package/node_modules/@opentelemetry/api/dist/diag/consoleLogger.mjs +61 -0
- package/node_modules/@opentelemetry/api/dist/diag/internal/logLevelLogger.cjs +23 -0
- package/node_modules/@opentelemetry/api/dist/diag/internal/logLevelLogger.mjs +23 -0
- package/node_modules/@opentelemetry/api/dist/diag/types.cjs +32 -0
- package/node_modules/@opentelemetry/api/dist/diag/types.mjs +32 -0
- package/node_modules/@opentelemetry/api/dist/diag-api.cjs +14 -0
- package/node_modules/@opentelemetry/api/dist/diag-api.mjs +15 -0
- package/node_modules/@opentelemetry/api/dist/experimental/index.cjs +4 -0
- package/node_modules/@opentelemetry/api/dist/experimental/index.mjs +2 -0
- package/node_modules/@opentelemetry/api/dist/experimental/trace/SugaredTracer.cjs +88 -0
- package/node_modules/@opentelemetry/api/dist/experimental/trace/SugaredTracer.mjs +87 -0
- package/node_modules/@opentelemetry/api/dist/index.cjs +71 -0
- package/node_modules/@opentelemetry/api/dist/index.mjs +37 -0
- package/node_modules/@opentelemetry/api/dist/internal/global-utils.cjs +52 -0
- package/node_modules/@opentelemetry/api/dist/internal/global-utils.mjs +50 -0
- package/node_modules/@opentelemetry/api/dist/internal/semver.cjs +83 -0
- package/node_modules/@opentelemetry/api/dist/internal/semver.mjs +82 -0
- package/node_modules/@opentelemetry/api/dist/logs/LogRecord.cjs +33 -0
- package/node_modules/@opentelemetry/api/dist/logs/LogRecord.mjs +33 -0
- package/node_modules/@opentelemetry/api/dist/logs/NoopLogger.cjs +20 -0
- package/node_modules/@opentelemetry/api/dist/logs/NoopLogger.mjs +18 -0
- package/node_modules/@opentelemetry/api/dist/logs/NoopLoggerProvider.cjs +13 -0
- package/node_modules/@opentelemetry/api/dist/logs/NoopLoggerProvider.mjs +12 -0
- package/node_modules/@opentelemetry/api/dist/logs/ProxyLogger.cjs +36 -0
- package/node_modules/@opentelemetry/api/dist/logs/ProxyLogger.mjs +36 -0
- package/node_modules/@opentelemetry/api/dist/logs/ProxyLoggerProvider.cjs +36 -0
- package/node_modules/@opentelemetry/api/dist/logs/ProxyLoggerProvider.mjs +36 -0
- package/node_modules/@opentelemetry/api/dist/logs-api.cjs +11 -0
- package/node_modules/@opentelemetry/api/dist/logs-api.mjs +12 -0
- package/node_modules/@opentelemetry/api/dist/metrics/Metric.cjs +15 -0
- package/node_modules/@opentelemetry/api/dist/metrics/Metric.mjs +15 -0
- package/node_modules/@opentelemetry/api/dist/metrics/NoopMeter.cjs +116 -0
- package/node_modules/@opentelemetry/api/dist/metrics/NoopMeter.mjs +98 -0
- package/node_modules/@opentelemetry/api/dist/metrics/NoopMeterProvider.cjs +17 -0
- package/node_modules/@opentelemetry/api/dist/metrics/NoopMeterProvider.mjs +16 -0
- package/node_modules/@opentelemetry/api/dist/metrics-api.cjs +11 -0
- package/node_modules/@opentelemetry/api/dist/metrics-api.mjs +12 -0
- package/node_modules/@opentelemetry/api/dist/propagation/NoopTextMapPropagator.cjs +19 -0
- package/node_modules/@opentelemetry/api/dist/propagation/NoopTextMapPropagator.mjs +19 -0
- package/node_modules/@opentelemetry/api/dist/propagation/TextMapPropagator.cjs +26 -0
- package/node_modules/@opentelemetry/api/dist/propagation/TextMapPropagator.mjs +25 -0
- package/node_modules/@opentelemetry/api/dist/propagation-api.cjs +11 -0
- package/node_modules/@opentelemetry/api/dist/propagation-api.mjs +12 -0
- package/node_modules/@opentelemetry/api/dist/trace/NonRecordingSpan.cjs +45 -0
- package/node_modules/@opentelemetry/api/dist/trace/NonRecordingSpan.mjs +45 -0
- package/node_modules/@opentelemetry/api/dist/trace/NoopTracer.cjs +44 -0
- package/node_modules/@opentelemetry/api/dist/trace/NoopTracer.mjs +44 -0
- package/node_modules/@opentelemetry/api/dist/trace/NoopTracerProvider.cjs +17 -0
- package/node_modules/@opentelemetry/api/dist/trace/NoopTracerProvider.mjs +17 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracer.cjs +37 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracer.mjs +38 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracerProvider.cjs +41 -0
- package/node_modules/@opentelemetry/api/dist/trace/ProxyTracerProvider.mjs +42 -0
- package/node_modules/@opentelemetry/api/dist/trace/SamplingResult.cjs +30 -0
- package/node_modules/@opentelemetry/api/dist/trace/SamplingResult.mjs +30 -0
- package/node_modules/@opentelemetry/api/dist/trace/context-utils.cjs +67 -0
- package/node_modules/@opentelemetry/api/dist/trace/context-utils.mjs +62 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/tracestate-impl.cjs +77 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/tracestate-impl.mjs +77 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/tracestate-validators.cjs +28 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/tracestate-validators.mjs +27 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/utils.cjs +13 -0
- package/node_modules/@opentelemetry/api/dist/trace/internal/utils.mjs +13 -0
- package/node_modules/@opentelemetry/api/dist/trace/invalid-span-constants.cjs +24 -0
- package/node_modules/@opentelemetry/api/dist/trace/invalid-span-constants.mjs +22 -0
- package/node_modules/@opentelemetry/api/dist/trace/span_kind.cjs +35 -0
- package/node_modules/@opentelemetry/api/dist/trace/span_kind.mjs +35 -0
- package/node_modules/@opentelemetry/api/dist/trace/spancontext-utils.cjs +151 -0
- package/node_modules/@opentelemetry/api/dist/trace/spancontext-utils.mjs +148 -0
- package/node_modules/@opentelemetry/api/dist/trace/status.cjs +26 -0
- package/node_modules/@opentelemetry/api/dist/trace/status.mjs +26 -0
- package/node_modules/@opentelemetry/api/dist/trace/trace_flags.cjs +15 -0
- package/node_modules/@opentelemetry/api/dist/trace/trace_flags.mjs +15 -0
- package/node_modules/@opentelemetry/api/dist/trace-api.cjs +11 -0
- package/node_modules/@opentelemetry/api/dist/trace-api.mjs +12 -0
- package/node_modules/@opentelemetry/api/dist/version.cjs +6 -0
- package/node_modules/@opentelemetry/api/dist/version.mjs +6 -0
- package/node_modules/@opentelemetry/api/package.json +32 -34
- package/node_modules/@shikijs/vscode-textmate/dist/index.js +46 -1
- package/node_modules/@shikijs/vscode-textmate/package.json +9 -9
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +15 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +10 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +10 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +5 -5
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/command.js +16 -2
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +10 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +5 -5
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/execa/lib/convert/duplex.js +8 -4
- package/node_modules/execa/lib/convert/readable.js +3 -8
- package/node_modules/execa/lib/convert/writable.js +6 -5
- package/node_modules/execa/lib/io/input-sync.js +2 -1
- package/node_modules/execa/lib/io/max-buffer.js +2 -1
- package/node_modules/execa/lib/io/output-sync.js +2 -1
- package/node_modules/execa/lib/methods/create.js +7 -0
- package/node_modules/execa/lib/methods/node.js +1 -1
- package/node_modules/execa/lib/methods/script.js +3 -3
- package/node_modules/execa/lib/resolve/all-async.js +2 -1
- package/node_modules/execa/lib/resolve/wait-subprocess.js +6 -0
- package/node_modules/execa/lib/stdio/handle-async.js +3 -2
- package/node_modules/execa/lib/stdio/handle.js +8 -3
- package/node_modules/execa/lib/transform/generator.js +7 -0
- package/node_modules/execa/lib/transform/run-sync.js +17 -5
- package/node_modules/execa/package.json +1 -1
- package/node_modules/fast-uri/.github/workflows/release.yml +35 -0
- package/node_modules/fast-uri/README.md +8 -0
- package/node_modules/fast-uri/index.js +98 -18
- package/node_modules/fast-uri/lib/utils.js +52 -0
- package/node_modules/fast-uri/package.json +1 -1
- package/node_modules/fast-uri/test/host-delimiter-security.test.js +94 -0
- package/node_modules/fast-uri/test/relative-normalization-security.test.js +156 -0
- package/node_modules/fast-uri/test/reserved-path-normalization.test.js +32 -4
- package/node_modules/fast-uri/test/scheme-validation.test.js +53 -14
- package/node_modules/jose/README.md +2 -2
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +3 -3
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +8 -8
- package/node_modules/jose/dist/webapi/jwks/local.js +2 -1
- package/node_modules/jose/dist/webapi/jwks/remote.js +4 -4
- package/node_modules/jose/dist/webapi/jws/general/sign.js +3 -3
- package/node_modules/jose/dist/webapi/jws/general/verify.js +3 -3
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +2 -2
- package/node_modules/jose/dist/webapi/jwt/sign.js +2 -2
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +3 -3
- package/node_modules/jose/dist/webapi/key/generate_secret.js +4 -4
- package/node_modules/jose/dist/webapi/lib/asn1.js +2 -2
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +4 -4
- package/node_modules/jose/dist/webapi/lib/content_encryption.js +8 -8
- package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +14 -14
- package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +3 -3
- package/node_modules/jose/dist/webapi/lib/jws_algorithms.js +2 -2
- package/node_modules/jose/dist/webapi/lib/jws_sign.js +11 -11
- package/node_modules/jose/dist/webapi/lib/jws_verify.js +19 -16
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +44 -43
- package/node_modules/jose/dist/webapi/lib/key.js +4 -4
- package/node_modules/jose/dist/webapi/lib/key_management.js +17 -17
- package/node_modules/jose/dist/webapi/lib/validate.js +10 -10
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +12 -12
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +5 -5
- package/node_modules/jose/package.json +1 -1
- package/package.json +23 -23
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonSettings.js +0 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonCodec.js +0 -20
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +0 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +0 -160
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +0 -193
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +0 -103
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +0 -20
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +0 -200
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +0 -519
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/detectBufferParsing.js +0 -18
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js +0 -46
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +0 -121
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/needsReviver.js +0 -41
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +0 -89
- package/node_modules/@opentelemetry/api/build/esm/api/context.js +0 -68
- package/node_modules/@opentelemetry/api/build/esm/api/diag.js +0 -80
- package/node_modules/@opentelemetry/api/build/esm/api/metrics.js +0 -46
- package/node_modules/@opentelemetry/api/build/esm/api/propagation.js +0 -76
- package/node_modules/@opentelemetry/api/build/esm/api/trace.js +0 -66
- package/node_modules/@opentelemetry/api/build/esm/baggage/context-helpers.js +0 -45
- package/node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.js +0 -40
- package/node_modules/@opentelemetry/api/build/esm/baggage/internal/symbol.js +0 -9
- package/node_modules/@opentelemetry/api/build/esm/baggage/types.js +0 -6
- package/node_modules/@opentelemetry/api/build/esm/baggage/utils.js +0 -36
- package/node_modules/@opentelemetry/api/build/esm/common/Attributes.js +0 -6
- package/node_modules/@opentelemetry/api/build/esm/common/Exception.js +0 -6
- package/node_modules/@opentelemetry/api/build/esm/common/Time.js +0 -2
- package/node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js +0 -23
- package/node_modules/@opentelemetry/api/build/esm/context/context.js +0 -48
- package/node_modules/@opentelemetry/api/build/esm/context/types.js +0 -6
- package/node_modules/@opentelemetry/api/build/esm/context-api.js +0 -13
- package/node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js +0 -43
- package/node_modules/@opentelemetry/api/build/esm/diag/consoleLogger.js +0 -69
- package/node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js +0 -30
- package/node_modules/@opentelemetry/api/build/esm/diag/internal/noopLogger.js +0 -20
- package/node_modules/@opentelemetry/api/build/esm/diag/types.js +0 -30
- package/node_modules/@opentelemetry/api/build/esm/diag-api.js +0 -17
- package/node_modules/@opentelemetry/api/build/esm/experimental/index.js +0 -10
- package/node_modules/@opentelemetry/api/build/esm/experimental/trace/SugaredOptions.js +0 -6
- package/node_modules/@opentelemetry/api/build/esm/experimental/trace/SugaredTracer.js +0 -88
- package/node_modules/@opentelemetry/api/build/esm/index.js +0 -43
- package/node_modules/@opentelemetry/api/build/esm/internal/global-utils.js +0 -54
- package/node_modules/@opentelemetry/api/build/esm/internal/semver.js +0 -107
- package/node_modules/@opentelemetry/api/build/esm/metrics/Meter.js +0 -6
- package/node_modules/@opentelemetry/api/build/esm/metrics/MeterProvider.js +0 -6
- package/node_modules/@opentelemetry/api/build/esm/metrics/Metric.js +0 -15
- package/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeter.js +0 -104
- package/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.js +0 -16
- package/node_modules/@opentelemetry/api/build/esm/metrics-api.js +0 -14
- package/node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js +0 -19
- package/node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.js +0 -33
- package/node_modules/@opentelemetry/api/build/esm/propagation-api.js +0 -14
- package/node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js +0 -54
- package/node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js +0 -64
- package/node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js +0 -17
- package/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js +0 -42
- package/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js +0 -42
- package/node_modules/@opentelemetry/api/build/esm/trace/Sampler.js +0 -6
- package/node_modules/@opentelemetry/api/build/esm/trace/SamplingResult.js +0 -30
- package/node_modules/@opentelemetry/api/build/esm/trace/SpanOptions.js +0 -6
- package/node_modules/@opentelemetry/api/build/esm/trace/attributes.js +0 -6
- package/node_modules/@opentelemetry/api/build/esm/trace/context-utils.js +0 -62
- package/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-impl.js +0 -90
- package/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-validators.js +0 -30
- package/node_modules/@opentelemetry/api/build/esm/trace/internal/utils.js +0 -12
- package/node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js +0 -22
- package/node_modules/@opentelemetry/api/build/esm/trace/link.js +0 -6
- package/node_modules/@opentelemetry/api/build/esm/trace/span.js +0 -6
- package/node_modules/@opentelemetry/api/build/esm/trace/span_context.js +0 -6
- package/node_modules/@opentelemetry/api/build/esm/trace/span_kind.js +0 -35
- package/node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js +0 -59
- package/node_modules/@opentelemetry/api/build/esm/trace/status.js +0 -26
- package/node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js +0 -15
- package/node_modules/@opentelemetry/api/build/esm/trace/trace_state.js +0 -6
- package/node_modules/@opentelemetry/api/build/esm/trace/tracer.js +0 -6
- package/node_modules/@opentelemetry/api/build/esm/trace/tracer_options.js +0 -6
- package/node_modules/@opentelemetry/api/build/esm/trace/tracer_provider.js +0 -6
- package/node_modules/@opentelemetry/api/build/esm/trace-api.js +0 -14
- package/node_modules/@opentelemetry/api/build/esm/version.js +0 -7
- package/node_modules/@opentelemetry/api/build/esnext/api/context.js +0 -68
- package/node_modules/@opentelemetry/api/build/esnext/api/diag.js +0 -80
- package/node_modules/@opentelemetry/api/build/esnext/api/metrics.js +0 -46
- package/node_modules/@opentelemetry/api/build/esnext/api/propagation.js +0 -76
- package/node_modules/@opentelemetry/api/build/esnext/api/trace.js +0 -66
- package/node_modules/@opentelemetry/api/build/esnext/baggage/context-helpers.js +0 -45
- package/node_modules/@opentelemetry/api/build/esnext/baggage/internal/baggage-impl.js +0 -40
- package/node_modules/@opentelemetry/api/build/esnext/baggage/internal/symbol.js +0 -9
- package/node_modules/@opentelemetry/api/build/esnext/baggage/types.js +0 -6
- package/node_modules/@opentelemetry/api/build/esnext/baggage/utils.js +0 -36
- package/node_modules/@opentelemetry/api/build/esnext/common/Attributes.js +0 -6
- package/node_modules/@opentelemetry/api/build/esnext/common/Exception.js +0 -6
- package/node_modules/@opentelemetry/api/build/esnext/common/Time.js +0 -2
- package/node_modules/@opentelemetry/api/build/esnext/context/NoopContextManager.js +0 -23
- package/node_modules/@opentelemetry/api/build/esnext/context/context.js +0 -48
- package/node_modules/@opentelemetry/api/build/esnext/context/types.js +0 -6
- package/node_modules/@opentelemetry/api/build/esnext/context-api.js +0 -13
- package/node_modules/@opentelemetry/api/build/esnext/diag/ComponentLogger.js +0 -43
- package/node_modules/@opentelemetry/api/build/esnext/diag/consoleLogger.js +0 -69
- package/node_modules/@opentelemetry/api/build/esnext/diag/internal/logLevelLogger.js +0 -30
- package/node_modules/@opentelemetry/api/build/esnext/diag/internal/noopLogger.js +0 -20
- package/node_modules/@opentelemetry/api/build/esnext/diag/types.js +0 -30
- package/node_modules/@opentelemetry/api/build/esnext/diag-api.js +0 -17
- package/node_modules/@opentelemetry/api/build/esnext/experimental/index.js +0 -10
- package/node_modules/@opentelemetry/api/build/esnext/experimental/trace/SugaredOptions.js +0 -6
- package/node_modules/@opentelemetry/api/build/esnext/experimental/trace/SugaredTracer.js +0 -88
- package/node_modules/@opentelemetry/api/build/esnext/index.js +0 -43
- package/node_modules/@opentelemetry/api/build/esnext/internal/global-utils.js +0 -54
- package/node_modules/@opentelemetry/api/build/esnext/internal/semver.js +0 -107
- package/node_modules/@opentelemetry/api/build/esnext/metrics/Meter.js +0 -6
- package/node_modules/@opentelemetry/api/build/esnext/metrics/MeterProvider.js +0 -6
- package/node_modules/@opentelemetry/api/build/esnext/metrics/Metric.js +0 -15
- package/node_modules/@opentelemetry/api/build/esnext/metrics/NoopMeter.js +0 -104
- package/node_modules/@opentelemetry/api/build/esnext/metrics/NoopMeterProvider.js +0 -16
- package/node_modules/@opentelemetry/api/build/esnext/metrics-api.js +0 -14
- package/node_modules/@opentelemetry/api/build/esnext/propagation/NoopTextMapPropagator.js +0 -19
- package/node_modules/@opentelemetry/api/build/esnext/propagation/TextMapPropagator.js +0 -33
- package/node_modules/@opentelemetry/api/build/esnext/propagation-api.js +0 -14
- package/node_modules/@opentelemetry/api/build/esnext/trace/NonRecordingSpan.js +0 -54
- package/node_modules/@opentelemetry/api/build/esnext/trace/NoopTracer.js +0 -64
- package/node_modules/@opentelemetry/api/build/esnext/trace/NoopTracerProvider.js +0 -17
- package/node_modules/@opentelemetry/api/build/esnext/trace/ProxyTracer.js +0 -42
- package/node_modules/@opentelemetry/api/build/esnext/trace/ProxyTracerProvider.js +0 -42
- package/node_modules/@opentelemetry/api/build/esnext/trace/Sampler.js +0 -6
- package/node_modules/@opentelemetry/api/build/esnext/trace/SamplingResult.js +0 -30
- package/node_modules/@opentelemetry/api/build/esnext/trace/SpanOptions.js +0 -6
- package/node_modules/@opentelemetry/api/build/esnext/trace/attributes.js +0 -6
- package/node_modules/@opentelemetry/api/build/esnext/trace/context-utils.js +0 -62
- package/node_modules/@opentelemetry/api/build/esnext/trace/internal/tracestate-impl.js +0 -90
- package/node_modules/@opentelemetry/api/build/esnext/trace/internal/tracestate-validators.js +0 -30
- package/node_modules/@opentelemetry/api/build/esnext/trace/internal/utils.js +0 -12
- package/node_modules/@opentelemetry/api/build/esnext/trace/invalid-span-constants.js +0 -22
- package/node_modules/@opentelemetry/api/build/esnext/trace/link.js +0 -6
- package/node_modules/@opentelemetry/api/build/esnext/trace/span.js +0 -6
- package/node_modules/@opentelemetry/api/build/esnext/trace/span_context.js +0 -6
- package/node_modules/@opentelemetry/api/build/esnext/trace/span_kind.js +0 -35
- package/node_modules/@opentelemetry/api/build/esnext/trace/spancontext-utils.js +0 -59
- package/node_modules/@opentelemetry/api/build/esnext/trace/status.js +0 -26
- package/node_modules/@opentelemetry/api/build/esnext/trace/trace_flags.js +0 -15
- package/node_modules/@opentelemetry/api/build/esnext/trace/trace_state.js +0 -6
- package/node_modules/@opentelemetry/api/build/esnext/trace/tracer.js +0 -6
- package/node_modules/@opentelemetry/api/build/esnext/trace/tracer_options.js +0 -6
- package/node_modules/@opentelemetry/api/build/esnext/trace/tracer_provider.js +0 -6
- package/node_modules/@opentelemetry/api/build/esnext/trace-api.js +0 -14
- package/node_modules/@opentelemetry/api/build/esnext/version.js +0 -7
- package/node_modules/@opentelemetry/api/build/src/api/context.js +0 -72
- package/node_modules/@opentelemetry/api/build/src/api/diag.js +0 -84
- package/node_modules/@opentelemetry/api/build/src/api/metrics.js +0 -50
- package/node_modules/@opentelemetry/api/build/src/api/propagation.js +0 -80
- package/node_modules/@opentelemetry/api/build/src/api/trace.js +0 -70
- package/node_modules/@opentelemetry/api/build/src/baggage/context-helpers.js +0 -52
- package/node_modules/@opentelemetry/api/build/src/baggage/internal/baggage-impl.js +0 -44
- package/node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.js +0 -12
- package/node_modules/@opentelemetry/api/build/src/baggage/types.js +0 -7
- package/node_modules/@opentelemetry/api/build/src/baggage/utils.js +0 -41
- package/node_modules/@opentelemetry/api/build/src/common/Attributes.js +0 -7
- package/node_modules/@opentelemetry/api/build/src/common/Exception.js +0 -7
- package/node_modules/@opentelemetry/api/build/src/common/Time.js +0 -3
- package/node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js +0 -27
- package/node_modules/@opentelemetry/api/build/src/context/context.js +0 -52
- package/node_modules/@opentelemetry/api/build/src/context/types.js +0 -7
- package/node_modules/@opentelemetry/api/build/src/context-api.js +0 -16
- package/node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js +0 -47
- package/node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js +0 -73
- package/node_modules/@opentelemetry/api/build/src/diag/internal/logLevelLogger.js +0 -34
- package/node_modules/@opentelemetry/api/build/src/diag/internal/noopLogger.js +0 -24
- package/node_modules/@opentelemetry/api/build/src/diag/types.js +0 -33
- package/node_modules/@opentelemetry/api/build/src/diag-api.js +0 -20
- package/node_modules/@opentelemetry/api/build/src/experimental/index.js +0 -15
- package/node_modules/@opentelemetry/api/build/src/experimental/trace/SugaredOptions.js +0 -7
- package/node_modules/@opentelemetry/api/build/src/experimental/trace/SugaredTracer.js +0 -93
- package/node_modules/@opentelemetry/api/build/src/index.js +0 -71
- package/node_modules/@opentelemetry/api/build/src/internal/global-utils.js +0 -60
- package/node_modules/@opentelemetry/api/build/src/internal/semver.js +0 -111
- package/node_modules/@opentelemetry/api/build/src/metrics/Meter.js +0 -7
- package/node_modules/@opentelemetry/api/build/src/metrics/MeterProvider.js +0 -7
- package/node_modules/@opentelemetry/api/build/src/metrics/Metric.js +0 -18
- package/node_modules/@opentelemetry/api/build/src/metrics/NoopMeter.js +0 -118
- package/node_modules/@opentelemetry/api/build/src/metrics/NoopMeterProvider.js +0 -20
- package/node_modules/@opentelemetry/api/build/src/metrics-api.js +0 -17
- package/node_modules/@opentelemetry/api/build/src/propagation/NoopTextMapPropagator.js +0 -23
- package/node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.js +0 -36
- package/node_modules/@opentelemetry/api/build/src/propagation-api.js +0 -17
- package/node_modules/@opentelemetry/api/build/src/trace/NonRecordingSpan.js +0 -58
- package/node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js +0 -68
- package/node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js +0 -21
- package/node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js +0 -46
- package/node_modules/@opentelemetry/api/build/src/trace/ProxyTracerProvider.js +0 -46
- package/node_modules/@opentelemetry/api/build/src/trace/Sampler.js +0 -7
- package/node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js +0 -33
- package/node_modules/@opentelemetry/api/build/src/trace/SpanOptions.js +0 -7
- package/node_modules/@opentelemetry/api/build/src/trace/attributes.js +0 -7
- package/node_modules/@opentelemetry/api/build/src/trace/context-utils.js +0 -71
- package/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js +0 -94
- package/node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js +0 -35
- package/node_modules/@opentelemetry/api/build/src/trace/internal/utils.js +0 -16
- package/node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js +0 -25
- package/node_modules/@opentelemetry/api/build/src/trace/link.js +0 -7
- package/node_modules/@opentelemetry/api/build/src/trace/span.js +0 -7
- package/node_modules/@opentelemetry/api/build/src/trace/span_context.js +0 -7
- package/node_modules/@opentelemetry/api/build/src/trace/span_kind.js +0 -38
- package/node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js +0 -66
- package/node_modules/@opentelemetry/api/build/src/trace/status.js +0 -29
- package/node_modules/@opentelemetry/api/build/src/trace/trace_flags.js +0 -18
- package/node_modules/@opentelemetry/api/build/src/trace/trace_state.js +0 -7
- package/node_modules/@opentelemetry/api/build/src/trace/tracer.js +0 -7
- package/node_modules/@opentelemetry/api/build/src/trace/tracer_options.js +0 -7
- package/node_modules/@opentelemetry/api/build/src/trace/tracer_provider.js +0 -7
- package/node_modules/@opentelemetry/api/build/src/trace-api.js +0 -17
- package/node_modules/@opentelemetry/api/build/src/version.js +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as loadLinuxExecve, a as resolveWindowsExecutable, b as serializeRunnerError, f as consumeLinuxLaunchRequest, g as linuxLaunchFilesFromLocator, h as isWindowsTerminateRequest, i as parseRunnerTargetArgv, r as consumeRunnerSelection, t as SUBPROCESS_RUNNER_ENV, v as parseWindowsStartRequest, x as writeLinuxStartupError } from "./runner-launch-
|
|
1
|
+
import { S as loadLinuxExecve, a as resolveWindowsExecutable, b as serializeRunnerError, f as consumeLinuxLaunchRequest, g as linuxLaunchFilesFromLocator, h as isWindowsTerminateRequest, i as parseRunnerTargetArgv, r as consumeRunnerSelection, t as SUBPROCESS_RUNNER_ENV, v as parseWindowsStartRequest, x as writeLinuxStartupError } from "./runner-launch-f9xQyTek.js";
|
|
2
2
|
import { closeSync } from "node:fs";
|
|
3
3
|
import { SUBPROCESS_CONTROL_FD } from "@deepseek-ai/dsh-subprocess/control";
|
|
4
4
|
import { Win32Error, closeHandleChecked, isJobEmpty, loadWin32ProcessBindings, pollProcessExit, spawnCurrentTokenJobProcess, terminateJob } from "@deepseek-ai/dsh-win32-process";
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
en: 192bbbb187278f91
|
|
19
19
|
zh: 1f7e5632c15bdcf7
|
|
20
20
|
/deepseek-ai-dsh-tui-app/use-this-package/starting-and-resuming:
|
|
21
|
-
en:
|
|
22
|
-
zh:
|
|
21
|
+
en: 312d9a3ea1cbb673
|
|
22
|
+
zh: 937ff76d6bdcca22
|
|
23
23
|
/deepseek-ai-dsh-tui-app/use-this-package/the-screen:
|
|
24
|
-
en:
|
|
25
|
-
zh:
|
|
24
|
+
en: 6d16c1e12149ace4
|
|
25
|
+
zh: 24a57b64875568c2
|
|
26
26
|
/deepseek-ai-dsh-tui-app/use-this-package/keys-and-commands:
|
|
27
|
-
en:
|
|
28
|
-
zh:
|
|
27
|
+
en: 2bf5e6b8a72663e4
|
|
28
|
+
zh: b2ff69e277c4bdb4
|
|
29
29
|
/deepseek-ai-dsh-tui-app/use-this-package/background-tool-calls:
|
|
30
30
|
en: 322ae3c6d76383ec
|
|
31
31
|
zh: 8c38eee4b57ed8dd
|
|
@@ -36,17 +36,20 @@
|
|
|
36
36
|
en: 2b7c7e8eb2b0281b
|
|
37
37
|
zh: 1037fc8908901ccc
|
|
38
38
|
/deepseek-ai-dsh-tui-app/use-this-package/references-and-attachments:
|
|
39
|
-
en:
|
|
40
|
-
zh:
|
|
39
|
+
en: 253d589df7d691f0
|
|
40
|
+
zh: 94ec4cc098a033e8
|
|
41
|
+
/deepseek-ai-dsh-tui-app/use-this-package/quitting:
|
|
42
|
+
en: 1354f4f002a282eb
|
|
43
|
+
zh: 98ce0fa0ef7e3156
|
|
41
44
|
/deepseek-ai-dsh-tui-app/use-this-package/configuration:
|
|
42
|
-
en:
|
|
43
|
-
zh:
|
|
45
|
+
en: a49396b53b347ac4
|
|
46
|
+
zh: 6ee8443d318b2bf6
|
|
44
47
|
/deepseek-ai-dsh-tui-app/understand-the-implementation:
|
|
45
48
|
en: f124d406565fef39
|
|
46
49
|
zh: 90344b5eec319cad
|
|
47
50
|
/deepseek-ai-dsh-tui-app/understand-the-implementation/run-flow:
|
|
48
|
-
en:
|
|
49
|
-
zh:
|
|
51
|
+
en: a72d4dc0f5307a8a
|
|
52
|
+
zh: e4ec471d25470876
|
|
50
53
|
/deepseek-ai-dsh-tui-app/understand-the-implementation/rendering-model:
|
|
51
54
|
en: 42cc6ac3475fba61
|
|
52
55
|
zh: 450342bc7b31cb61
|
|
@@ -54,8 +57,8 @@
|
|
|
54
57
|
en: 142f04bf29e981dd
|
|
55
58
|
zh: a1689297b06c9ca6
|
|
56
59
|
/deepseek-ai-dsh-tui-app/understand-the-implementation/source-map:
|
|
57
|
-
en:
|
|
58
|
-
zh:
|
|
60
|
+
en: ddc2631c3f51f92c
|
|
61
|
+
zh: d46f1f072b63bddc
|
|
59
62
|
/deepseek-ai-dsh-tui-app/understand-the-implementation/invariant-ownership:
|
|
60
63
|
en: 0ddf6de8928026d5
|
|
61
64
|
zh: 24feedcbb9e9d676
|
|
@@ -108,8 +111,8 @@
|
|
|
108
111
|
en: 1dadc4a2f1560eaa
|
|
109
112
|
zh: dc4697c269bc16b9
|
|
110
113
|
/deepseek-ai-dsh-tui-app/known-limitations-and-deferred-work:
|
|
111
|
-
en:
|
|
112
|
-
zh:
|
|
114
|
+
en: 26e125a8a59bd810
|
|
115
|
+
zh: 63c9e3bd6e8a56a4
|
|
113
116
|
/deepseek-ai-dsh-tui-app/known-limitations-and-deferred-work/dev-note:
|
|
114
117
|
en: 5629c6159cec997f
|
|
115
118
|
zh: 17f2d7e1f96da7f1
|
|
@@ -36,7 +36,7 @@ dsh tui --resume <session-id> # continue an earlier session
|
|
|
36
36
|
dsh tui --no-open # print sign-in URLs without opening a browser
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
Once a quit has saved the session, the app prints `dsh: session <id> saved; resume with: dsh --profile tui --resume <id>` on stderr for the root session bound at that moment; [Quitting](#quitting) lists every line a quit prints. A resumed session redraws its persisted history before accepting input and continues with that session's last model, or the launch default when the log has no request header; inside the terminal, `/resume` and `/sessions` open the same picker over persisted root sessions other than the current session, newest first, and resume the selected previous session, `/new` starts a fresh empty session with the launch default model, while `/clear` starts a fresh empty session that retains the current model and reasoning effort; the previous session stays on disk for `/resume`, and `/fork` copies the current session up to its last completed turn into a new one, the same cut the browser's fork takes. Switching releases the previous Agent and redraws the transcript of the next.
|
|
40
40
|
|
|
41
41
|
### The screen
|
|
42
42
|
|
|
@@ -50,12 +50,14 @@ The focused block is also marked where it stands, with a two-column gutter that
|
|
|
50
50
|
|
|
51
51
|
`Ctrl+G` from any region, `Enter` on a conversation section, and `/turns` read the conversation full screen, one turn at a time. The reader takes the terminal rather than drawing over the conversation: it runs on the terminal's alternate screen, the screen a pager runs on, and the conversation's own screen is held off the terminal for as long as it is up. So it costs the conversation no line, leaves the repaint window where it was, fills the screen on every terminal, and cannot leave a row of itself in your scrollback; closing it restores the conversation exactly as you left it, with whatever landed meanwhile drawn underneath. When the turn panel scrolls below its first row, a compact tinted bar replaces the top rule with the current user prompt, collapsed to one line and ellipsized to the terminal width; scrolling back to the top restores the ` ● READER ` chip and `turn <n> of <total>`. Under that fixed header, the turn being read takes most of the screen and a narrow turn list sits to its left, every body row closed by a right border. The list has one row per turn — `❯` on the turn being read, the turn number, the first line of its prompt, and right-aligned markers, `⬡<n>` injected context blocks, `✻` any reasoning, `¶` any reply, `◆<n>` tool calls — with the sections of the turn being read listed under it, `▸` on the one the reader holds, so any turn's own context is one step away. The turn panel scrolls that turn end to end in the conversation's own glyphs, a blank row between each two sections: the prompt opens it behind `❯` on a shaded band, then `✻ Thinking` in dim italic, `¶ Reply` rendered as the conversation renders Markdown — headings, emphasis, inline code, and fenced code in syntax colour — except that unordered bullets are drawn as `•`, a call's `◆` — green once its result landed, yellow while it runs — with the tool name in bold cyan and its headline in teal, `⎿ Result` indented under its call with a diff's `+ ` rows green and `- ` rows red on shaded bands and a `read` card's file rows in syntax colour, and `⬡` with the label of an injected context. The section the top row belongs to is accented and carries the conversation walk's `┃` gutter on every row, which reads with no color at all. The bands are mixed from the background color the terminal reports, so a terminal that reports none, or draws no color, draws the panel without them. Rows are never folded there: the reader is where the full model-facing text of a system prompt, an injected snapshot, a long reply, or a tool result is read. `Right` opens the selected turn and `Left` goes back to the list; in the list `Up` / `Down` step one section at a time and cross into the turn either side while `PageUp` / `PageDown` step a whole turn, in the turn they scroll one row at a time, and the section the top row belongs to is where the conversation resumes when the reader closes. `/` opens a query line in place of the legend and narrows the list to the turns whose prompt or text matches, with the readout reading `<kept>/<total> turns`; otherwise the legend rule reports `turn 3/12 · row 14/212` at its right, which no width drops. Below `readerMinColumns` the body draws one panel at a time — the list, or the turn `Right` opens from it — and below 24 columns or 8 rows it draws one dim line, `terminal too small for the reader (needs 24×8)`, and answers only `Esc`, `Ctrl+G`, and `Ctrl+C`. It re-reads the conversation on every render, draws only sections in view, and reuses cached rows when their content, width, and styling match, so long turns stay responsive while the session runs; a streaming reply grows inside it, a landing tool result appears, and a new turn joins the list; a rewrap re-anchors on the section being read rather than on a row number; an approval or a question steps it aside for that prompt's lifetime; and a session switch takes it down with the notice `the transcript changed · reader closed`.
|
|
52
52
|
|
|
53
|
-
Transient key feedback floats as a dim framed line in the top-right corner of the viewport: `press Esc again to stop turn <n>`, `press Ctrl+C again to quit
|
|
53
|
+
Transient key feedback floats as a dim framed line in the top-right corner of the viewport: `press Esc again to stop turn <n>`, `press Ctrl+C again to quit` — `press Ctrl+C again to quit · stops 1 command, 2 background jobs` while commands, background jobs, or subagents run — and `nothing in the transcript to read yet`. It holds at full strength for `toastMs`, fades out, costs the conversation no row of its own, and takes no keyboard; where the renderer can no longer repaint the top of the viewport it is printed into the conversation instead, which keeps it. Facts worth keeping are notices in the conversation: `stopping the turn…`, `wait for the session switch to finish`, `above the repaint window · opened in the reader`, and every command result.
|
|
54
54
|
|
|
55
55
|
Motion reaches past streamed text: every lift and float rides the same fade tick, and every working animation one spinner tick. The keyboard landing on the conversation, the subagent panel, or the status bar lifts that surface's frame, its chip, and the mark it holds for twelve ticks of `streamFadeStepMs`; a step of the conversation walk lifts the newly focused gutter for six; and a step along the bar lifts the selected label for eight. A new or status-changed activity-board todo row, and a replaced descendant line, float out on the fade tick; replay and `reducedMotion` draw the settled board. Every working animation has eight frames, takes the one it draws from the clock, and steps on the spinner tick of `spinnerMs`, 100 ms by default, so everything that spins advances at the same instant and speed, a label change keeps the beat, and the tick is armed only while one of them is drawn. The working spinner alone draws braille, its animation following its status, so it never repeats a card's glyph. A running tool card and a folded subagent row draw the animation of that tool's family, and an in-progress todo row draws the planning family's. Each of those animations mixes flowers, blooms, and stars, no two families share a glyph, and every frame of one family is different, so two indicators of one family at different phases never draw the same glyph. An indicator that starts while others of its family spin takes a phase at which it never draws their glyph at the same instant, for up to eight of that family spinning together; beyond eight, it takes the phase the fewest indicators of that family hold. A card whose header has scrolled above the part of the screen the renderer can repaint draws the static `◆` from then on, and `reducedMotion` draws every one of them still — the card's `◆`, the todo's `▸`, and the working spinner's label without a glyph — with no spinner tick. The reader arrives complete on the screen it owns, and what it newly shows floats out on the fade tick: opening it and showing another turn float out the whole turn, and stepping the list to another section of the same turn floats out that section, over `streamFadeSteps` ticks; scrolling, live growth, and a rewrap float nothing out. No lift changes how many lines anything draws, and `reducedMotion` — like `NO_COLOR`, a disabled palette, and `TERM=dumb` — turns every lift and float off and arms no repaint for them.
|
|
56
56
|
|
|
57
57
|
The subagent panel is drawn while a local subagent session under the bound one is resident, or the listing carries a candidate it could not read; an external task has no local session and stays out of the panel. Unfocused it is one summary line with the listed count and the first child's key label; focused, its heading counts what it lists and ends on the keys it answers, `↑↓ children · Enter opens · Tab regions · Esc input`, narrowed to `↑↓ children · Esc input` and then to `Esc input` on a terminal that cannot hold them, and each row gives the child's depth indent, its label or id, its mode (`one-shot` or `continuable`), `resident`, whether its agent is `running`, `completed` after its latest settled turn, or `idle`, its elapsed time — the open turn's, else the total its settled turns took — and its token usage, as far as this process's own view of that child and the composed projections carry them. Six rows are drawn at most, with `+<n> more · /subagents lists them all` under them; `/subagents` shows an external task as `external task · no local session` and shows its no-local-session detail instead of opening a Session, a candidate the listing could not interpret draws as `unreadable: <reason>` and shows its reason instead of opening a Session, and a failed listing keeps the rows the last good one produced with `listing failed: <reason>` beneath. The panel disappears with its last row. `Enter` or `Right` on a readable row, like `Enter` on a readable `/subagents` row, opens that child as a subagent view: the terminal draws the child session in place of the bound one — its transcript, live stream, conversation walk, inspector, reader, and its own subagent panel — while the session it was entered from stays open. A resident child is read live, and any other is resumed. The entry's detail rows print as notices under `subagent <label> · Ctrl+P or /parent returns to session <id>`, the header ends on `◆ subagent view ›` with one `›` per level entered and `· Ctrl+P returns`, a shaded line directly above the input reads `◆ subagent view · main › <label> · Ctrl+P back to <parent>` for as long as the view is open, whatever the transcript has scrolled to, and `Ctrl+P` or `/parent` goes back one level, redrawing the parent from its log as it stands then. A one-shot child opens read-only: its banner opens with `◆ subagent view · one-shot, read-only`, a prompt or `!` line typed there is refused with a notice and stays in the editor, `Esc` does not stop its turn, and commands such as `/parent` still run, while a continuable child takes prompts and a stop as any session does. `/new`, `/clear`, `/resume`, `/sessions`, and `/fork` refuse while any session in that chain runs a turn or a background job, since releasing a session ends its jobs, and otherwise release every view with the session they leave; quitting releases every view and saves the root session.
|
|
58
58
|
|
|
59
|
+
The team panel is one dim summary line, `team · <n> members · <running> running · <tasks> tasks`, while the bound session has a teammate or a shared task that is not deleted, and it does not take the keyboard; a lead with neither leaves it unmounted. `/team-panel off` hides the line, `/team-panel on` forces it on, which draws `team · no teammates or shared tasks yet` when the roster has no teammate and no shared task, and `/team-panel` alone toggles that choice. `/team` lists every member and every shared task; `Enter` opens a running or inactive teammate as a continuable session view, and a lead, a provisioning member, a failed member, or a task opens a detail page. `/team-tools` prints the tools the Agent Teams plugin currently scopes onto this agent, each with the description the plugin supplies, and omits tools that are already visible without that plugin. A tool the plugin adds or removes shows up on the next `/team-tools` without a terminal change. `/team` detail pages also print string, number, and boolean fields the plugin adds to a member or a task. `/team-play` plays those scoped tool calls and every `team/` event. Without the service each command notices `Agent Teams are not enabled in this composition` and the panel stays unmounted; a session that is not on a team notices `this session is not on a team`.
|
|
60
|
+
|
|
59
61
|
`/btw` opens a temporary side agent as a view over the session on screen, so the user can ask questions while that session's agent keeps working. The side agent is a new Agent seeded with every event the session has logged so far, an unfinished turn included: a tool call still waiting for its result gets the fork's error result, and reply text that is still streaming is not included. Input still queued for the session, prompts and next-step context alike, stays with that session's agent and is not carried into the side agent. It runs on the session's last logged model, else its current selection, and it can only read: its session runs in the `read-only` sandbox mode with the `never` approval policy, so a write fails and cannot be approved, and it sees only the tools named in `btwTools`, plus the command tools in `btwSandboxedTools` when the command executor confines commands. Every other tool is hidden from it and refused if called. It runs its own turns: the question after `/btw` is its first prompt, and every line typed while it is on screen goes to it, `/btw <question>` included. The view is drawn like a subagent view: the header ends on `◆ btw side agent · Ctrl+P ends it and returns`, the shaded line above the input reads `◆ btw side agent · main › btw · Ctrl+P back to main`, and the transcript starts empty instead of repeating the inherited conversation. `Ctrl+P` or `/parent` ends the side agent, cancelling a turn it is running, and redraws the session it was opened from under `btw ended · back in session <id>`. The working session is only read: nothing is appended to its log, its inbox is untouched, and neither its subagent panel, `/subagents`, nor its model-facing subagent listing shows the side agent, which also cannot message it. An approval or question that a session held behind any view raises is shown on screen after `session <id>, behind this view, asks:` instead of being refused.
|
|
60
62
|
|
|
61
63
|
### Keys and commands
|
|
@@ -86,7 +88,7 @@ While the input has the keyboard:
|
|
|
86
88
|
| `Ctrl+L` | Redraw the whole screen from scratch |
|
|
87
89
|
| `?` | On an empty input, list the commands and keys, like `/help`; inside a draft it is typed |
|
|
88
90
|
| `Esc` | Cancel a running `!` or `/compact`; with a leading `!` draft and no turn running, clear the editor; otherwise arm the stop, and a second press while that line is on screen stops the running turn |
|
|
89
|
-
| `Ctrl+C` | Clear the editor; a second press
|
|
91
|
+
| `Ctrl+C` | Clear the editor and arm the quit; a second press while the `press Ctrl+C again to quit` line is on screen quits |
|
|
90
92
|
| `Ctrl+D` | Quit when the editor is empty |
|
|
91
93
|
|
|
92
94
|
An `Esc` that only handed the keyboard back — leaving a region, closing a page, a picker, or the reader — opens a 750 ms window in which an `Esc` reaching the input does nothing at all, so a habitual double press stops no turn. With no turn running, `Esc` closes the completion list while one is open, clears a draft that starts with `!`, and is silent otherwise. A session with nothing to read yet answers `Shift+Up` (when no follow-up waits) and `Ctrl+G` with `nothing in the transcript to read yet` and leaves the keyboard in the input.
|
|
@@ -196,6 +198,10 @@ Typing `/` at the start of the editor completes the terminal's own commands and
|
|
|
196
198
|
| `/deliverables` | The files the agent presented, grouped by turn |
|
|
197
199
|
| `/changes [turn]` | Browse the files the latest turn changed, or turn `turn`, with their line counts; `Enter` opens one file's turn-start to turn-end comparison |
|
|
198
200
|
| `/subagents` | Browse local subagent sessions and external task records under this session; `Enter` opens a readable session as a subagent view and shows details for an external or unreadable row |
|
|
201
|
+
| `/team-play` | Play how Agent Teams teammates message each other, on its own screen. `Esc` closes it, `←` `→` step one exchange, and `Space` pauses. A session with no teammate messages plays an example. The subagent view stays `/subagents` |
|
|
202
|
+
| `/team` | Browse the team roster and shared tasks; `Enter` opens a running or inactive teammate session, and a lead, a provisioning or failed member, or a task opens its details |
|
|
203
|
+
| `/team-tools` | List the tools the Agent Teams plugin currently gives this agent, with each tool's description |
|
|
204
|
+
| `/team-panel` | Show or hide the team summary (`/team-panel`, `/team-panel on`, `/team-panel off`) |
|
|
199
205
|
| `/parent` | Return from a subagent view to the session it was entered from, or end a `/btw` side agent, like `Ctrl+P` |
|
|
200
206
|
| `/workflows` | Browse this session's workflow runs with their status, settled members, phases, and owning job; `Enter` lists a run's members, `Enter` on a member opens its child as a live view while it runs here and shows its details otherwise, and `Ctrl+K` stops a background run through its job. `/workflows <name>` opens the newest run of that name |
|
|
201
207
|
| `/jobs` | Browse this session's background jobs, the calls moved with `Ctrl+B` and the jobs the agent started, with status and elapsed time; `Enter` shows one job's status and output tail, and `Ctrl+K` stops the highlighted job |
|
|
@@ -206,6 +212,8 @@ Typing `/` at the start of the editor completes the terminal's own commands and
|
|
|
206
212
|
| `/btw <question>` | Open a temporary side agent with this session's context and ask it the question; it can use read-only tools, the session keeps working and never sees it, and `Ctrl+P` ends it. Inside the side agent, `/btw <question>` asks it another question |
|
|
207
213
|
| `/quit`, `/exit` | Save the session and exit |
|
|
208
214
|
|
|
215
|
+
An empty session whose profile mounts Agent Teams draws a start card. It reads `Agent Teams is on by default`, names `/plugins disable @deepseek-ai/dsh-experimental-agent-team-profile`, and plays a lane of a lead spawning a reviewer, sending `check the diff`, and receiving `the diff is consistent`. The header reads `Agent Teams on`. Reduced motion draws the three lanes settled. `/team-play` opens that exchange on its own screen; `/subagents` still opens one transcript.
|
|
216
|
+
|
|
209
217
|
Every other `/name` line goes to the shared command registry, so `/compact`, `/goal`, and plugin commands work as they do in the browser. `/compact` runs between turns: with a turn running it prints `/compact runs between turns: let this turn finish, or stop it (Esc twice)`. While it runs, the working spinner reads `compacting context · Esc cancels`, `Esc` cancels it with the notice `/compact cancelled`, a prompt submitted meanwhile waits in the follow-ups list under `queued: the prompt starts once compaction finishes`, and a session switch waits for it; the compaction block it lands is its result, so its own success text is not printed. An automatic compaction inside a running turn labels that turn's spinner `compacting` until the next model call starts.
|
|
210
218
|
|
|
211
219
|
Every picker the terminal opens — `/model`'s model and reasoning-effort lists, the current-model effort list shared by empty `/effort` and editor `Shift+Tab`, the permission-preset list empty `/permission` opens, the persisted-session list shared by `/resume` and `/sessions`, the `/subagents` and `/todos` lists, and the rows `/signin` and `/login` raise — filters its rows as you type: the query matches each row's label and description together, its whitespace- and slash-separated tokens must all match, and the rows are ordered best match first, so `dsk chat` and `deepseek/chat` both find `deepseek/deepseek-chat` and `gpt5` finds `gpt-5`. `Backspace` drops the last character, `Ctrl+U` clears the query, `Esc` clears a non-empty query and cancels the picker once the query is empty, `Up` / `Down` move within the matches, and `Enter` picks the highlighted row. The dim line above the rows reads `type to filter · Enter selects · Esc cancels` while the query is empty and `filter: <query> · <kept>/<total>` afterwards; a query nothing matches draws `no row matches "<query>"` in place of the rows, and the `✓` on the row in force — the row a picker opens on — shows only while the query is empty.
|
|
@@ -228,6 +236,18 @@ An approval request draws `Allow <tool>?` with the asker's reason, the logged ca
|
|
|
228
236
|
|
|
229
237
|
`@` followed by text lists matching files and directories — workspace-relative, `../` from the workspace, `~/` from the home directory, or absolute — and other sessions, in the same mention grammar the browser composer inserts (`@path`, `@"path with spaces"`, and the opaque `@[label](…)` session token); the base rows resolve those mentions into the prompt exactly as they do for the browser. `/attach <path>` reads a local file relative to the workspace and stores it through the composed attachment store, as an image block for `.png`, `.jpg`, `.jpeg`, `.webp`, and `.gif` and as a file block otherwise; pending attachments travel with the next prompt and are listed under it.
|
|
230
238
|
|
|
239
|
+
<a id="quitting"></a>
|
|
240
|
+
### Quitting
|
|
241
|
+
|
|
242
|
+
`Ctrl+C` twice, `Ctrl+D` on an empty input, `/quit`, and `/exit` quit; the second `Ctrl+C` must arrive while `press Ctrl+C again to quit` is on screen, and any other key in between disarms the first. A quit counts the commands, background jobs, and subagents running under the root session, stops a running `!` command, and hands the terminal back to your shell. It then stops the rest in order: it cancels the running turn, which stops the model's commands, waits for the agent to go idle, saves the session log, and releases the session, which stops its background jobs and subagents. A failed step does not skip the steps after it. Meanwhile the app writes to stderr:
|
|
243
|
+
|
|
244
|
+
- `dsh: stopping <work> (Ctrl+C to force)` when anything runs, where `<work>` reads like `1 command, 2 background jobs, 1 subagent`, then `dsh: still stopping <work> (Ctrl+C to force)` every 2 s, naming what still runs.
|
|
245
|
+
- `dsh: gave up waiting after <N>s; <work> may still be running` when the stop outlasts `quitGraceMs`, and `dsh: forcing exit; <work> may still be running` when `Ctrl+C` ends the wait; either line omits `; <work> may still be running` when nothing still runs.
|
|
246
|
+
- `dsh: saving the session failed: <reason>` or `dsh: stopping failed: <reason>` for each failed step.
|
|
247
|
+
- `dsh: session <id> saved; resume with: dsh --profile tui --resume <id>` last, whenever the session log was saved.
|
|
248
|
+
|
|
249
|
+
The exit code is 130 when `Ctrl+C` ended the wait, 129 when the terminal closed, 1 when the wait gave up or a step failed, and 0 otherwise. `quitGraceMs` (default 10000 ms, at least 1000) bounds the whole stop; after it, the launcher's own disposal waits at most 5 s more and kills the command processes still running as the process exits. Closing the terminal sends `SIGHUP`, which runs the same stop; output to the closed terminal is dropped. A process that a command detached from its own process tree can outlive the quit; see [Known Limitations and Deferred Work](#known-limitations-and-deferred-work).
|
|
250
|
+
|
|
231
251
|
### Configuration
|
|
232
252
|
|
|
233
253
|
| Field | Default | Meaning |
|
|
@@ -239,7 +259,8 @@ An approval request draws `Allow <tool>?` with the asker's reason, the logged ca
|
|
|
239
259
|
| `focusPreviewLines` | `12` | Rows of the focused section the docked inspector shows before its fold marker sends the rest to the reader, for every section kind |
|
|
240
260
|
| `readerMinColumns` | `60` | Columns the reader needs before it draws the selected turn beside the turn list; below it one panel is drawn at a time |
|
|
241
261
|
| `codeHighlight` | `true` | Draw fenced code in a reply, the file rows of `read` and diff tool cards, and shell commands in a `!` / `!!` draft, a `$ command` row, and a terminal tool card, in syntax colours, from a theme the terminal's background picks |
|
|
242
|
-
| `toastMs` | `2000` | How long a transient key-feedback line holds at full strength before it fades out
|
|
262
|
+
| `toastMs` | `2000` | How long a transient key-feedback line holds at full strength before it fades out; while the line is on screen, a second `Esc` stops the running turn and a second `Ctrl+C` quits |
|
|
263
|
+
| `quitGraceMs` | `10000` | How long a quit waits for the running turn to stop, the session log to save, and the session's background jobs and subagents to stop before it names what may still run and exits with code 1; the launcher's own 5 s disposal follows. A value below 1000 is rejected |
|
|
243
264
|
| `liveRefreshMs` | `1000` | Period of the redraw that advances the `turn` segment and the panel's elapsed values and re-reads a stale subagent listing |
|
|
244
265
|
| `streamFadeSteps` | `24` | How many ticks a fade lasts: reply text and the columns of a tool card fade in, reasoning floats out, over `streamFadeSteps × streamFadeStepMs` |
|
|
245
266
|
| `streamFadeStepMs` | `16` | One frame: the fade tick, the repaint period while anything is still moving, and the period paced stream text is drawn at; duration is `streamFadeSteps × streamFadeStepMs` |
|
|
@@ -266,7 +287,7 @@ The runner is a direct driver over the core API carrier, like `dsh-headless`, th
|
|
|
266
287
|
|
|
267
288
|
### Run flow
|
|
268
289
|
|
|
269
|
-
The runner awaits the complete application (`ctx.get('loader')?.await()`) and builds a session host over the core registry with five operations: `create` makes one fresh persisted Agent with its requested selection or the shared [`agentDefaultModel`](../../core/agent-default-model/README.md) selection, `resume` takes the Agent write handle first and then observes the live Session through `ctx.sessionQuery` so bind draws every persisted event including resume closers, and `fork` observes the source through `ctx.sessionQuery`, cuts after the chosen (by default the last) `turn/end` up to the next `turn/start`, and creates a seeded Agent with `parentSession` and `isSeeded` metadata, and `observe` opens a subagent session without releasing the bound one — a resident subagent Agent is read live and its release does nothing, and any other session is resumed, and `aside` creates a `/btw` side agent seeded through `buildForkSeed` with the bound session's whole log as `ctx.sessionQuery` observes it, recording `parentSession`, `isSeeded`, and `origin: 'subagent'` but passing no parent Agent and appending no catalog event to the parent, then in its setup appends the `read-only` sandbox mode and the `never` approval policy and restricts its global tools to the configured names. Every operation except a resident `observe` installs a `ModelSelectionRef` in the Agent's scoped setup so `/model` changes the next request; `resume` passes the launch default as AgentOptions so assemble has a `{{model}}` value, then overlays the log's last request header onto the selection when one exists, else keeps that default. The terminal application starts on the session `--resume` or a fresh `create` yields, subscribes to `session/event`, `agent/assistant-stream`, and `agent/status`, answers the `approval/request` and `user-questions/request` waterfalls for the bound Agent and for every session a view is held open over, and switches sessions by binding the next one and disposing the previous handle; while the host opens the next session the editor refuses input, and a quit during that wait releases the session that arrives afterwards. Quitting cancels any running turn, waits for quiescence, flushes the
|
|
290
|
+
The runner awaits the complete application (`ctx.get('loader')?.await()`) and builds a session host over the core registry with five operations: `create` makes one fresh persisted Agent with its requested selection or the shared [`agentDefaultModel`](../../core/agent-default-model/README.md) selection, `resume` takes the Agent write handle first and then observes the live Session through `ctx.sessionQuery` so bind draws every persisted event including resume closers, and `fork` observes the source through `ctx.sessionQuery`, cuts after the chosen (by default the last) `turn/end` up to the next `turn/start`, and creates a seeded Agent with `parentSession` and `isSeeded` metadata, and `observe` opens a subagent session without releasing the bound one — a resident subagent Agent is read live and its release does nothing, and any other session is resumed, and `aside` creates a `/btw` side agent seeded through `buildForkSeed` with the bound session's whole log as `ctx.sessionQuery` observes it, recording `parentSession`, `isSeeded`, and `origin: 'subagent'` but passing no parent Agent and appending no catalog event to the parent, then in its setup appends the `read-only` sandbox mode and the `never` approval policy and restricts its global tools to the configured names. Every operation except a resident `observe` installs a `ModelSelectionRef` in the Agent's scoped setup so `/model` changes the next request; `resume` passes the launch default as AgentOptions so assemble has a `{{model}}` value, then overlays the log's last request header onto the selection when one exists, else keeps that default. The terminal application starts on the session `--resume` or a fresh `create` yields, subscribes to `session/event`, `agent/assistant-stream`, and `agent/status`, answers the `approval/request` and `user-questions/request` waterfalls for the bound Agent and for every session a view is held open over, and switches sessions by binding the next one and disposing the previous handle; while the host opens the next session the editor refuses input, and a quit during that wait releases the session that arrives afterwards. Quitting runs the sequence in `src/quit.ts` over the root binding: it cancels any running turn, waits for quiescence, flushes the root Session, and disposes its handle, each step contained so a failure does not skip the next, races that sequence against `quitGraceMs` and a `SIGINT` listener registered only while the quit runs, and then writes the outcome lines and requests the exit code the report maps to; a `SIGHUP` listener the runner registers as an effect runs the same quit with the terminal treated as gone. A driver failure writes `dsh: <message>` to stderr and requests exit 1. `/resume` and `/sessions` share the persisted-session chooser. Editor `Shift+Tab` dispatches empty `/effort` to open its current-model picker, and editor `Shift+Left` / `Shift+Right` use pi-tui's word navigation. `/login` starts `authorization.begin` with only subscription methods (every method except a key-collecting `api-key` login). A notice the flow marks with `openInBrowser` is handed to the default browser through `dsh-native-command`'s credential-scrubbed helper while the URL stays printed; the handoff is suppressed when `openBrowser` is false, the launch came through SSH, or the host has no desktop, and an opener failure becomes a notice beside the URL rather than a sign-in failure. A nonempty `!` or `!!` line submitted in the editor runs through `ctx.shell` in this process; `!` injects a next-step notice and `!!` stays local.
|
|
270
291
|
|
|
271
292
|
### Rendering model
|
|
272
293
|
|
|
@@ -280,11 +301,12 @@ The patch rides over `dsh-base`: it sets the coding persona prefix and cwd suffi
|
|
|
280
301
|
|
|
281
302
|
| File | Role |
|
|
282
303
|
|---|---|
|
|
283
|
-
| [`src/index.ts`](src/index.ts) | The `tui-app` plugin: the session host (create, resume, fork, observe), resume observation, quit
|
|
304
|
+
| [`src/index.ts`](src/index.ts) | The `tui-app` plugin: the session host (create, resume, fork, observe), resume observation, and the quit wiring: the `SIGHUP` and `SIGINT` listeners, the budget, the outcome lines, and the exit request |
|
|
305
|
+
| [`src/quit.ts`](src/quit.ts) | The quit sequence: the census of running work and its wording, the ordered, contained, and bounded stop, and the stderr lines and exit code a report maps to |
|
|
284
306
|
| [`src/resume-model.ts`](src/resume-model.ts) | Resume-time model selection from the last request header or the launch default |
|
|
285
307
|
| [`tests/resume-model.spec.ts`](tests/resume-model.spec.ts) | Resume restores the last logged route, else the launch default |
|
|
286
308
|
| [`src/startup.ts`](src/startup.ts) | The `tui-app-startup` provider: prompt positional, `--resume`, `--no-open`, and `--help` |
|
|
287
|
-
| [`src/app.ts`](src/app.ts) | The terminal application: layout, the key router, commands, session binding, seams, log and stream folding, the activity board above the editor, the stop
|
|
309
|
+
| [`src/app.ts`](src/app.ts) | The terminal application: layout, the key router, commands, session binding, seams, log and stream folding, the activity board above the editor, the stop and quit arms, the census of the work a quit stops, the transient line it mounts, the terminal handover the reader runs on, and prefix-on-submit `!` / `!!` |
|
|
288
310
|
| [`src/keys.ts`](src/keys.ts) | The key model: the focus regions, what one press means in each, the legends they degrade through, the entry keys, the `/help` lines, and the handoff window |
|
|
289
311
|
| [`src/sessions.ts`](src/sessions.ts) | The persisted-session list and picker rows shared by `/resume` and `/sessions`; titles come from the live or cached title projection |
|
|
290
312
|
| [`src/effort.ts`](src/effort.ts) | Reasoning-effort names and picker rows shared by `/model`, `/effort`, and editor `Shift+Tab` |
|
|
@@ -323,6 +345,8 @@ The patch rides over `dsh-base`: it sets the coding persona prefix and cwd suffi
|
|
|
323
345
|
| [`src/status.ts`](src/status.ts) | Projection-seam facts and the sections the `/status` report and the segment details share; the retry notice |
|
|
324
346
|
| [`src/footer.ts`](src/footer.ts) | The status bar: the ordered segments, each segment's detail rows, the unfocused line built from both ends, and the focused sliding window |
|
|
325
347
|
| [`src/subagent-panel.ts`](src/subagent-panel.ts) | The live subagent panel: one descendant listing plus sampled live facts become its rows, the unfocused summary line, and the focused listing |
|
|
348
|
+
| [`src/team-panel.ts`](src/team-panel.ts) | The team summary: one line of member and task counts, drawn while a teammate or a shared task exists |
|
|
349
|
+
| [`src/team.ts`](src/team.ts) | `/team`, `/team-tools`, and `/team-panel`: roster rows, the nine tool lines, and the read of the optional service |
|
|
326
350
|
| [`src/queue-panel.ts`](src/queue-panel.ts) | The follow-ups list: pending-row glyphs, hanging wrap, and the enter-steer legend |
|
|
327
351
|
| [`src/background.ts`](src/background.ts) | `Ctrl+B`: the `tools/execute` wrapper that tracks root calls, moves them to `tool` jobs, recognizes a shell call's own process job, and holds the jobs of a stopped turn |
|
|
328
352
|
| [`src/jobs-panel.ts`](src/jobs-panel.ts) | The background-jobs line above the editor, the `/jobs` rows and detail page, and the settlement line |
|
|
@@ -332,7 +356,7 @@ The patch rides over `dsh-base`: it sets the coding persona prefix and cwd suffi
|
|
|
332
356
|
| [`src/todos.ts`](src/todos.ts) | The todo list: the status glyphs, the picker rows with completed content scratched out, and one item's detail rows |
|
|
333
357
|
| [`cordis.patch.yml`](cordis.patch.yml) | The terminal patch over `dsh-base` |
|
|
334
358
|
| — | No runtime invariant companion is published; the app registers listeners on one Agent and holds no mutable relation another observer could contradict. |
|
|
335
|
-
| [`tests/app.spec.ts`](tests/app.spec.ts) | Rendering, keys, commands, the stop
|
|
359
|
+
| [`tests/app.spec.ts`](tests/app.spec.ts) | Rendering, keys, commands, the stop and quit arms, the follow-ups rows above the editor, the activity board, and both seams over a fake terminal |
|
|
336
360
|
| [`tests/background.spec.ts`](tests/background.spec.ts) | `Ctrl+B` over the real tool runtime, job registry, and job tools: the spinner hint, the moved result and card, the jobs line, `/jobs` output and `Ctrl+K`, completion notices, refusal, failure, and the turn stop |
|
|
337
361
|
| [`tests/background-tracking.spec.ts`](tests/background-tracking.spec.ts) | Which calls the wrapper tracks, which jobs count as a call's own, and the moved-result text |
|
|
338
362
|
| [`tests/jobs-panel.spec.ts`](tests/jobs-panel.spec.ts) | The jobs line, `/jobs` rows, detail page, and settlement line as text |
|
|
@@ -366,10 +390,15 @@ The patch rides over `dsh-base`: it sets the coding persona prefix and cwd suffi
|
|
|
366
390
|
| [`tests/compaction-app.spec.ts`](tests/compaction-app.spec.ts) | `/compact` in the terminal: the spinner, `Esc`, queued prompts, the refused switch, the block in place of the result, and the block from a replayed log |
|
|
367
391
|
| [`tests/sessions.spec.ts`](tests/sessions.spec.ts) | Session picker listing: newest first, live or cached titles, hidden subagents |
|
|
368
392
|
| [`tests/index.spec.ts`](tests/index.spec.ts) | Creation, resume paging, resume model assembly, fork cut, session switching, quit flow, and failure reporting |
|
|
393
|
+
| [`tests/quit.spec.ts`](tests/quit.spec.ts) | The quit order, the budget, the force, contained step failures, the progress notices, and the lines and exit code each outcome maps to |
|
|
369
394
|
| [`tests/startup.spec.ts`](tests/startup.spec.ts) | Command-line parsing over a real Loader tree |
|
|
370
395
|
| [`tests/shortcuts.spec.ts`](tests/shortcuts.spec.ts) | `?` on an empty input and inside a draft, `Ctrl+T` from any region, `Ctrl+P` at the root session, and the `Ctrl+L` redraw |
|
|
371
396
|
| [`tests/subagents.spec.ts`](tests/subagents.spec.ts) | The live subagent panel's rows, walk, and listing refresh, and the subagent view it and `/subagents` open, left through `/parent` and `Ctrl+P` and released on a session switch and on quit |
|
|
397
|
+
| [`tests/team-panel.spec.ts`](tests/team-panel.spec.ts) | The team summary's counts, hiding, deleted tasks, and row cap |
|
|
398
|
+
| [`tests/team.spec.ts`](tests/team.spec.ts) | Tool visibility lines, roster picker rows, and the optional service read |
|
|
399
|
+
| [`tests/team-app.spec.ts`](tests/team-app.spec.ts) | `/team`, `/team-tools`, and `/team-panel` in the terminal: notices, the summary, and opening a teammate session |
|
|
372
400
|
| [`../../../apps/cli/tests/profiles/tui/tests/keyless-smoke.e2e.ts`](../../../apps/cli/tests/profiles/tui/tests/keyless-smoke.e2e.ts) | The shipped profile through the real launcher with a keyless mock model |
|
|
401
|
+
| [`../../../apps/cli/tests/profiles/tui/tests/quit-while-busy.e2e.ts`](../../../apps/cli/tests/profiles/tui/tests/quit-while-busy.e2e.ts) | The shipped profile quitting while a command, a background job, a subagent, or a process that ignores `SIGTERM` is running, and on `SIGHUP` and `SIGINT`: the stderr lines and their order, the exit codes, and that no process survives |
|
|
373
402
|
|
|
374
403
|
### Invariant ownership
|
|
375
404
|
|
|
@@ -479,6 +508,7 @@ These limits describe the terminal surface as shipped; they are not a general CL
|
|
|
479
508
|
- **Clicks need the terminal's cooperation** — with `mouse: true` the terminal's mouse reports are on for the whole run, so the wheel and plain click-drag stop scrolling its scrollback and selecting text unless `Shift` is held; a click on the main screen is placed by the terminal's answer to a cursor-position query, so a terminal that never answers ignores clicks there, while the reader's screen needs no answer; and a chip in scrollback the terminal is scrolled back through cannot be clicked, because the mouse report names a row of the live screen.
|
|
480
509
|
- **The terminal's own caret can flicker** — the editor draws no caret of its own and the app turns the terminal cursor on, which pi-tui then moves across the lines it repaints; a terminal that does not honor the synchronized-output sequences pi-tui wraps a frame in can show that movement.
|
|
481
510
|
- **Runs through the `dsh` launcher** — starting the profile another way fails at startup, because only the launcher can request the process exit.
|
|
511
|
+
- **A command's detached processes can outlive a quit** — on macOS, and on Linux without a usable user-systemd scope, a quit stops each running command's process group and the descendants still under the command in the process tree, but a process that double-forked away from it (re-parented to process 1) is not tracked and keeps running; Linux native mode keeps such processes in the command's scope. The [subprocess-local limitations](../../subprocess/subprocess-local/README.md#known-limitations-and-deferred-work) describe the containment each platform provides.
|
|
482
512
|
- **A `/btw` side agent is read-only by tool name and sandbox** — `btwTools` must name only tools that read, because the side agent shares the workspace with the working agent; a command tool can read anything the `read-only` sandbox mode allows, and without a confining command executor command tools are hidden. It inherits only what the working session has logged: reply text still streaming is absent. Its log is stored like a subagent session's and hidden from `/resume` and `/sessions`, and Web has no `/btw`.
|
|
483
513
|
- **A moved call stays tied to its turn and returns text** — the tool runtime fuses the turn's signal into every call, so `Esc` on the turn that dispatched a call stops it even after `Ctrl+B`; a job result is a string, so other content blocks of the call's result are named as `[image omitted]` and the like; and moving needs `ctx.jobs` with `dsh-tool-jobs`, which the base profile composes.
|
|
484
514
|
- **Workflow runs show identity and status** — a top-level workflow call draws a run beside its tool card: the name, member count, status, progress, phases, and started members. `/workflows` stops only a background run; a run inside the turn stops with the turn. Running and abnormal groups open; a clean completion stays closed. Space or Enter on a run or phase folds that level. Enter opens a running member only while it is a live direct child of this session, and does not resume a member that has finished. The script stays on the tool card. A background run stays running after its launch turn while its job is live; an unfinished run with no live job is interrupted on replay. Phase and log lines stay on `/jobs`, and the job's return value stays with `job_output`.
|
|
@@ -36,7 +36,7 @@ dsh tui --resume <session-id> # continue an earlier session
|
|
|
36
36
|
dsh tui --no-open # print sign-in URLs without opening a browser
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
一次退出保存会话之后,应用在 stderr 为当时绑定的根会话打印 `dsh: session <id> saved; resume with: dsh --profile tui --resume <id>`;[退出](#quitting)列出退出时打印的每一行。恢复的会话会在接受输入前先重绘其持久化历史,并沿用该会话上次使用的模型;日志里还没有请求头时则使用启动默认模型。在终端内,`/resume` 与 `/sessions` 打开同一个选择器,按从新到旧列出当前会话以外的持久化根会话,并恢复选中的先前会话,`/new` 使用启动默认模型开始新的空会话,而 `/clear` 开始新的空会话并保留当前模型和推理强度;先前会话仍留在磁盘上可用 `/resume` 恢复,`/fork` 把当前会话复制到其最后一个完成轮次并作为新会话,切割点与浏览器的 fork 相同。切换会释放先前的 Agent 并重绘下一个会话的对话记录。
|
|
40
40
|
|
|
41
41
|
### 屏幕布局
|
|
42
42
|
|
|
@@ -50,12 +50,14 @@ dsh tui --no-open # print sign-in URLs without opening a
|
|
|
50
50
|
|
|
51
51
|
在任一区域按 `Ctrl+G`、在对话记录的某个小节上按 `Enter`,以及 `/turns`,都会整屏读出对话记录,一次读一个轮次。阅读器并不画在对话记录之上,而是接管终端:它运行在终端的备用屏幕(alternate screen,分页器所用的那块屏幕)上,只要它还开着,对话记录自己的屏幕就被挡在终端之外。因此它不占用对话记录的任何一行,让重绘边界保持原位,在任何终端上都铺满整屏,也不可能把自己的任何一行留在你的回滚缓冲里;关闭它会把对话记录原样恢复成你离开时的样子,期间落地的内容则绘制在其下方。轮次面板滚过首行后,紧凑的着色条会替代顶边线,将当前用户提示合并为一行,并按终端宽度以省略号截断;滚回顶部时恢复 ` ● READER ` 徽标与 `turn <n> of <total>`。在这个固定页眉之下,正在阅读的轮次占据屏幕的大部分,左侧是一列窄的轮次列表,每个正文行都以右边框收口。列表每个轮次一行——正在阅读的轮次带 `❯`、轮次编号、其提示的首行,以及右对齐的标记 `⬡<n>` 注入上下文块数、`✻` 有推理、`¶` 有回复、`◆<n>` 工具调用数——并在正在阅读的那个轮次之下列出它的各小节,`▸` 落在阅读器所持的那一个上,因此任何轮次自己的上下文都只有一步之遥。轮次面板用对话记录自己的符号把该轮次从头到尾滚动读出,相邻两个小节之间隔一空行:提示以 `❯` 开头、铺在着色背景带上,其后是暗色斜体的 `✻ Thinking`、按对话记录的方式渲染 Markdown(标题、强调、行内代码,以及带语法着色的围栏代码)但无序列表符号画成 `•` 的 `¶ Reply`、工具调用的 `◆`(结果落地后为绿色、运行中为黄色)连同粗体青色工具名与蓝绿色的标题、缩进在调用之下的 `⎿ Result`(diff 的 `+ ` 行为绿色、`- ` 行为红色,各铺在着色背景带上;`read` 卡片的文件行带语法着色),以及带注入上下文标签的 `⬡`。顶行所属的小节带强调色,并在每一行带上对话记录走查所用的 `┃` 标记条,无色时也能辨认。背景带由终端报告的背景色混合而成,因此没有报告背景色、或不绘制颜色的终端画出的面板不带背景带。那里的行从不折叠:阅读器正是读取系统提示词、注入快照、长回复或工具结果完整面向模型文本的地方。`Right` 打开被选中的轮次,`Left` 回到轮次列表;在列表中 `Up` / `Down` 每次步进一个小节并跨入相邻的轮次,而 `PageUp` / `PageDown` 步进整个轮次;在轮次面板中它们逐行滚动,而顶行所属的小节就是阅读器关闭后对话记录恢复到的位置。`/` 在按键提示的位置打开一行查询,把轮次列表收窄到提示或文本匹配的轮次,读数写作 `<kept>/<total> turns`;其余时候提示边线在右端报告 `turn 3/12 · row 14/212`,任何宽度都不会丢弃它。列数不足 `readerMinColumns` 时正文一次只画一个面板——轮次列表,或由 `Right` 从中打开的那个轮次——不足 24 列或 8 行时只画一行暗色文字 `terminal too small for the reader (needs 24×8)`,并且只应答 `Esc`、`Ctrl+G` 与 `Ctrl+C`。它每一帧都会重新读取对话记录,只绘制视区内的小节,并在内容、宽度和样式与缓存匹配时复用已有行,因此长轮次在会话运行期间仍能保持响应;流式回复会在其中增长、落地的工具结果会出现、新轮次会加入轮次列表;重新换行时它按正在阅读的小节重新锚定,而不是按行号;审批或提问出现时它在该提示存续期间让位;切换会话会让它随通知 `the transcript changed · reader closed` 一同关闭。
|
|
52
52
|
|
|
53
|
-
临时按键反馈以一行暗色带框文字浮在视口右上角:`press Esc again to stop turn <n>`、`press Ctrl+C again to quit`
|
|
53
|
+
临时按键反馈以一行暗色带框文字浮在视口右上角:`press Esc again to stop turn <n>`、`press Ctrl+C again to quit`——有命令、后台作业或子 agent 在运行时为 `press Ctrl+C again to quit · stops 1 command, 2 background jobs`——与 `nothing in the transcript to read yet`。它以全亮度保持 `toastMs`、随后淡出,不占用对话记录自身的任何一行,也不接管键盘;渲染器已无法重绘视口顶部时,它改为打印进对话记录,从而被保留下来。值得留存的事实则是对话记录中的通知:`stopping the turn…`、`wait for the session switch to finish`、`above the repaint window · opened in the reader` 以及每一条命令结果。
|
|
54
54
|
|
|
55
55
|
动效不止于流式文本:每种抬亮与浮出都乘着同一个淡入时钟,每种工作动画则乘着同一个旋转时钟。键盘落到对话记录、子 agent 面板或状态栏上时,会把该表层的边框、其徽标与它持有的标记抬亮十二拍(每拍一个 `streamFadeStepMs`);对话记录走查中的一步把新聚焦的标记条抬亮六拍;状态栏上的一步把所选标签抬亮八拍。活动板上新出现或状态已变的 todo 行,以及被替换的后代行,也在淡入时钟上浮出;重放与 `reducedMotion` 则画出已稳定的活动板。每种工作动画都有八帧,由时钟决定当前画哪一帧,并在周期为 `spinnerMs`(默认 100 ms)的旋转时钟上步进,因此一切旋转中的指示都在同一时刻、以同一速度前进,标签变化也不打乱节拍,而该时钟只在其中之一被绘制时才启动。只有工作时的旋转指示画盲文,其动画随状态而变,因此它从不与卡片的符号重复。运行中的工具卡片与折叠的子 agent 行画该工具族的动画,进行中的 todo 行画规划族的动画。这些动画都把花朵、绽放与星形混在同一组帧里,族与族之间不共用符号,同一族的每一帧也各不相同,因此同一族里相位不同的两个指示在任何时刻都不会画出相同的符号。某个指示开始旋转时若同族已有其他指示在转,它会取一个相位,使它在任何时刻都不与它们画出相同的符号,同族同时旋转的不超过八个时都能做到;超过八个后,它取同族中被持有指示最少的那个相位。标题行已滚动到渲染器可重绘区域之上的卡片自此画出静态的 `◆`,而 `reducedMotion` 把它们全部画成静止的——卡片的 `◆`、todo 的 `▸`,以及不带符号、只剩标签的工作旋转指示——且不启动旋转时钟。阅读器在自己占据的屏幕上一次性完整出现,而它新显示的内容会在淡入时钟上浮出:打开它与显示另一个轮次时浮出整个轮次,在列表中步进到同一轮次的另一个小节时浮出该小节,历时 `streamFadeSteps` 拍;滚动、实时增长与重新换行都不浮出任何内容。任何抬亮都不改变任何东西绘制的行数,而 `reducedMotion`——与 `NO_COLOR`、被禁用的调色板和 `TERM=dumb` 一样——会关闭每一种抬亮与浮出,并且不为它们安排任何重绘。
|
|
56
56
|
|
|
57
57
|
子 agent 面板在绑定会话之下有常驻的本地子 agent 会话、或列表中带有无法读取的候选者时绘制;外部任务没有本地会话,因此不在面板中出现。未聚焦时它是一行摘要,含列出的数量与第一个子会话的关键标签;聚焦时其标题统计所列出的条目,并以它所应答的按键 `↑↓ children · Enter opens · Tab regions · Esc input` 结尾,在容纳不下时收缩为 `↑↓ children · Esc input`,再收缩为 `Esc input`;每一行给出该子会话的层级缩进、其标签或 id、其模式(`one-shot` 或 `continuable`)、`resident`、其 agent 处于 `running`、最新已结束轮次后为 `completed`,还是 `idle`、其已用时间——进行中轮次的用时,否则是已结束轮次的合计——以及其 token 用量,以本进程对该子会话的可见程度与已组合的投影所能提供的为限。最多绘制六行,其下是 `+<n> more · /subagents lists them all`;`/subagents` 把外部任务显示为 `external task · no local session`,并显示其没有本地会话的详情而不打开会话,列表无法解读的候选者绘制为 `unreadable: <reason>`,并显示其原因而不打开会话,读取失败的列表则保留上一次成功读取产生的各行,并在其下写出 `listing failed: <reason>`。面板随其最后一行一同消失。在可读的行上按 `Enter` 或 `Right`,与在可读的 `/subagents` 行上按 `Enter` 一样,会把该子会话作为子 agent 视图打开:终端在已绑定会话的位置绘制子会话——其对话记录、实时流、对话记录走查、检查器、阅读器以及它自己的子 agent 面板——而进入它之前的会话保持打开。常驻的子会话被实时读取,其他子会话则被恢复。条目的详情行作为通知打印在 `subagent <label> · Ctrl+P or /parent returns to session <id>` 之下,页眉以 `◆ subagent view ›`(每进入一层一个 `›`)与 `· Ctrl+P returns` 结尾,只要视图打开,输入框正上方就有一条着色行写着 `◆ subagent view · main › <label> · Ctrl+P back to <parent>`,无论对话记录滚动到哪里,`Ctrl+P` 或 `/parent` 返回上一层,并按父会话此刻的日志重绘它。`one-shot` 子会话以只读方式打开:其横幅以 `◆ subagent view · one-shot, read-only` 开头,在其中输入的提示词或 `!` 行会被通知拒绝并留在编辑器中,`Esc` 不会停止它的轮次,而 `/parent` 等命令仍可运行;`continuable` 子会话则像任何会话一样接受提示词与停止。只要这条链中任一会话正在运行轮次或后台任务,`/new`、`/clear`、`/resume`、`/sessions` 与 `/fork` 都会拒绝(释放会话会结束它的后台任务),否则它们会随所离开的会话释放每一个视图;退出会释放每一个视图并保存根会话。
|
|
58
58
|
|
|
59
|
+
团队面板在绑定会话有 teammate,或有一条状态不是 `deleted` 的共享任务时,是一行不占键盘的暗色摘要 `team · <n> members · <running> running · <tasks> tasks`;只有 lead、且没有这类任务时,面板不挂载。`/team-panel off` 隐藏该行,`/team-panel on` 强制显示,名册里既没有 teammate 也没有共享任务时绘制 `team · no teammates or shared tasks yet`,单独的 `/team-panel` 在这两种选择之间切换。`/team` 列出每一名成员和每一条未删除的共享任务;在 `running` 或 `inactive` 的 teammate 上按 `Enter` 会把该会话作为可继续的会话视图打开,lead、`provisioning` 或 `failed` 的成员以及任务则打开详情页。`/team-tools` 打印 Agent Teams 插件当前限定在本 agent 上的工具,每条带上插件给出的描述,并略去没有该插件时就已经可见的工具。插件新增或移除的工具,下一次 `/team-tools` 就会反映出来,终端本身不必改动。`/team` 的详情页也会打印插件加在成员或任务上的字符串、数字和布尔字段。`/team-play` 播放这些限定工具的调用,以及每一种 `team/` 事件。没有该服务时,每条命令提示 `Agent Teams are not enabled in this composition`,面板保持不挂载;会话不在团队中时提示 `this session is not on a team`。
|
|
60
|
+
|
|
59
61
|
`/btw` 在屏幕上的会话之上打开一个临时的旁路 agent 视图,让用户在该会话的 agent 继续工作时提问。旁路 agent 是一个新的 Agent,以该会话迄今记录的全部事件为种子,包括尚未结束的轮次:仍在等待结果的工具调用会得到分叉产生的错误结果,仍在流式输出的回复文本不包含在内。该会话仍在排队的输入,无论是提示还是下一步上下文,都留给该会话的 agent,不会带进旁路 agent。它使用该会话最后记录的模型(否则使用其当前选择),并且只能读取:它的会话运行在 `read-only` 沙箱模式与 `never` 审批策略下,因此写入会失败且无法获批;它只看得到 `btwTools` 中列出的工具,以及在命令执行器会约束命令时 `btwSandboxedTools` 中的命令工具。其他工具对它隐藏,被调用时也会被拒绝。它运行自己的轮次:`/btw` 之后的问题是它的第一条提示,它在屏幕上时输入的每一行都交给它,`/btw <question>` 也一样。该视图的绘制方式与子 agent 视图相同:页眉以 `◆ btw side agent · Ctrl+P ends it and returns` 结尾,输入框上方的着色行写着 `◆ btw side agent · main › btw · Ctrl+P back to main`,对话记录从空开始,而不是重复继承来的对话。`Ctrl+P` 或 `/parent` 结束旁路 agent(取消它正在运行的轮次),并在 `btw ended · back in session <id>` 之下重绘打开它之前的会话。工作中的会话只被读取:不向其日志追加任何内容,不触碰其收件箱,其子 agent 面板、`/subagents` 与面向模型的子 agent 列表都不显示旁路 agent,旁路 agent 也不能给它发消息。被任一视图挡在后面的会话发起的审批或提问,会在 `session <id>, behind this view, asks:` 之后显示在屏幕上,而不是被拒绝。
|
|
60
62
|
|
|
61
63
|
### 按键与命令
|
|
@@ -86,7 +88,7 @@ dsh tui --no-open # print sign-in URLs without opening a
|
|
|
86
88
|
| `Ctrl+L` | 从头重绘整个屏幕 |
|
|
87
89
|
| `?` | 输入为空时列出命令与按键,与 `/help` 相同;在草稿中则作为文字输入 |
|
|
88
90
|
| `Esc` | 取消正在运行的 `!` 或 `/compact`;在没有轮次进行且草稿以 `!` 开头时清空编辑器;否则装填停止,该提示仍在屏幕上时再按一次会停止正在进行的轮次 |
|
|
89
|
-
| `Ctrl+C` |
|
|
91
|
+
| `Ctrl+C` | 清空编辑器并装填退出;`press Ctrl+C again to quit` 这一行仍在屏幕上时再按一次即退出 |
|
|
90
92
|
| `Ctrl+D` | 编辑器为空时退出 |
|
|
91
93
|
|
|
92
94
|
仅仅交还了键盘的 `Esc`——离开某个区域、关闭页面、选择器或阅读器——会打开一个 750 ms 的窗口,其间到达编辑器的 `Esc` 完全不做任何事,因此习惯性的连按停不掉任何轮次。没有轮次进行时,`Esc` 在补全列表打开时关闭它,清空以 `!` 开头的草稿,其余情况保持沉默。尚无可读内容的会话对 `Shift+Up`(没有 follow-up 等待时)与 `Ctrl+G` 回以 `nothing in the transcript to read yet`,并把键盘留在编辑器。
|
|
@@ -196,6 +198,10 @@ follow-ups 面板持有键盘时:
|
|
|
196
198
|
| `/deliverables` | agent 交付的文件,按轮次分组 |
|
|
197
199
|
| `/changes [turn]` | 浏览最近一轮(或第 `turn` 轮)改动的文件及其行数;`Enter` 打开某个文件从轮次开始到结束的对比 |
|
|
198
200
|
| `/subagents` | 浏览本会话之下的本地子 agent 会话和外部任务记录;`Enter` 把可读的会话作为子 agent 视图打开,对外部或无法读取的行则显示详情 |
|
|
201
|
+
| `/team-play` | 在独立画面中播放 Agent Teams 成员如何互相发消息。`Esc` 关闭,`←` `→` 步进一次往来,`Space` 暂停。尚无 teammate 消息的会话播放一个示例。子 agent 视图仍是 `/subagents` |
|
|
202
|
+
| `/team` | 浏览团队名册与共享任务;`Enter` 打开 running 或 inactive 的 teammate 会话,lead、provisioning 或 failed 的成员以及任务则打开详情 |
|
|
203
|
+
| `/team-tools` | 列出 Agent Teams 插件当前提供给本 agent 的工具,并带上每个工具的描述 |
|
|
204
|
+
| `/team-panel` | 显示或隐藏团队摘要(`/team-panel`、`/team-panel on`、`/team-panel off`) |
|
|
199
205
|
| `/parent` | 从子 agent 视图返回进入它之前的会话,或结束 `/btw` 旁路 agent,与 `Ctrl+P` 相同 |
|
|
200
206
|
| `/workflows` | 浏览本会话的工作流运行,附带状态、已结束成员、阶段与所属作业;`Enter` 列出一次运行的成员,在成员上按 `Enter` 时,若它仍在本进程运行则把其子会话作为实时视图打开,否则显示其详情,`Ctrl+K` 通过作业停止后台运行。`/workflows <name>` 打开该名称最新的一次运行 |
|
|
201
207
|
| `/jobs` | 浏览本会话的后台作业,即用 `Ctrl+B` 移走的调用与 agent 启动的作业,附带状态与耗时;`Enter` 显示一个作业的状态与输出末尾,`Ctrl+K` 停止高亮的作业 |
|
|
@@ -206,6 +212,8 @@ follow-ups 面板持有键盘时:
|
|
|
206
212
|
| `/btw <question>` | 打开一个带有本会话上下文的临时旁路 agent 并向它提问;它可以使用只读工具,本会话继续工作且看不到它,`Ctrl+P` 结束它。在旁路 agent 中,`/btw <question>` 向它再提一个问题 |
|
|
207
213
|
| `/quit`、`/exit` | 保存会话并退出 |
|
|
208
214
|
|
|
215
|
+
挂载了 Agent Teams 的 profile 在空会话里画出一张起始卡片。卡片写着 `Agent Teams is on by default`,给出 `/plugins disable @deepseek-ai/dsh-experimental-agent-team-profile`,并播放一条轨道:lead 创建 reviewer、送出 `check the diff`、收到 `the diff is consistent`。标题行写着 `Agent Teams on`。减弱动效时三条轨道都以定格绘制。`/team-play` 在独立画面打开这段往来;`/subagents` 仍然打开一份对话记录。
|
|
216
|
+
|
|
209
217
|
其他每条 `/name` 行都交给共享命令注册表,因此 `/compact`、`/goal` 与插件命令的行为和浏览器中一致。`/compact` 在轮次之间运行:有轮次正在进行时,它打印 `/compact runs between turns: let this turn finish, or stop it (Esc twice)`。运行期间,工作旋转指示显示 `compacting context · Esc cancels`,`Esc` 会取消它并给出通知 `/compact cancelled`,其间提交的提示在 follow-ups 列表中等待并提示 `queued: the prompt starts once compaction finishes`,切换会话也会等它结束;它落地的压缩块就是其结果,因此不再打印它自己的成功文本。运行中的轮次里发生的自动压缩,会把该轮次的旋转指示标为 `compacting`,直到下一次模型调用开始。
|
|
210
218
|
|
|
211
219
|
终端打开的每个选择器——`/model` 的模型列表与推理强度列表、空参数 `/effort` 与编辑器 `Shift+Tab` 共用的当前模型推理强度列表、空参数 `/permission` 打开的权限预设列表、`/resume` 与 `/sessions` 共用的持久化会话列表、`/subagents` 与 `/todos` 的列表,以及 `/signin` 与 `/login` 引出的各行——都随输入过滤其行:查询同时匹配每行的标签与描述,其以空白与斜杠分隔的各段必须全部匹配,各行按最佳匹配在前排序,因此 `dsk chat` 与 `deepseek/chat` 都能找到 `deepseek/deepseek-chat`,`gpt5` 能找到 `gpt-5`。`Backspace` 删除最后一个字符,`Ctrl+U` 清空查询,`Esc` 在查询非空时清空查询、在查询为空时取消选择器,`Up` / `Down` 在匹配行之间移动,`Enter` 选中高亮行。行上方的暗色行在查询为空时显示 `type to filter · Enter selects · Esc cancels`,此后显示 `filter: <query> · <kept>/<total>`;无任何行匹配的查询会以 `no row matches "<query>"` 取代这些行,而生效行上的 `✓`——也就是选择器打开时定位的那一行——只在查询为空时显示。
|
|
@@ -228,6 +236,18 @@ follow-ups 面板持有键盘时:
|
|
|
228
236
|
|
|
229
237
|
`@` 后接文本会列出匹配的文件与目录——相对工作区、从工作区出发的 `../`、从家目录出发的 `~/`、或绝对路径——以及其他会话,使用与浏览器编辑器插入相同的提及语法(`@path`、`@"path with spaces"` 与不透明的 `@[label](…)` 会话标记);base 行把这些提及解析进提示,与浏览器中完全一致。`/attach <path>` 读取相对于 workspace 的本地文件并通过已组合的附件存储保存:`.png`、`.jpg`、`.jpeg`、`.webp` 与 `.gif` 作为图片块,其余作为文件块;待发送附件随下一条提示一起发送,并列在其下。
|
|
230
238
|
|
|
239
|
+
<a id="quitting"></a>
|
|
240
|
+
### 退出
|
|
241
|
+
|
|
242
|
+
按两次 `Ctrl+C`、在空输入上按 `Ctrl+D`、`/quit` 与 `/exit` 都会退出;第二次 `Ctrl+C` 必须在 `press Ctrl+C again to quit` 仍在屏幕上时到达,其间按下的任何其他键都会解除第一次的装填。退出会清点根会话之下正在运行的命令、后台作业与子 agent,停止正在运行的 `!` 命令,并把终端交还给你的 shell。随后它按顺序停止其余工作:取消进行中的轮次(这会停止模型的命令),等待 agent 进入空闲,保存会话日志,并释放会话(这会停止其后台作业与子 agent)。某一步失败不会跳过其后的步骤。在此期间应用向 stderr 写入:
|
|
243
|
+
|
|
244
|
+
- 有工作在运行时写 `dsh: stopping <work> (Ctrl+C to force)`,其中 `<work>` 形如 `1 command, 2 background jobs, 1 subagent`;之后每 2 s 写一次 `dsh: still stopping <work> (Ctrl+C to force)`,写明仍在运行的工作。
|
|
245
|
+
- 停止过程超过 `quitGraceMs` 时写 `dsh: gave up waiting after <N>s; <work> may still be running`,`Ctrl+C` 结束等待时写 `dsh: forcing exit; <work> may still be running`;已没有工作在运行时,这两行都省略 `; <work> may still be running`。
|
|
246
|
+
- 每个失败的步骤写 `dsh: saving the session failed: <reason>` 或 `dsh: stopping failed: <reason>`。
|
|
247
|
+
- 只要会话日志已保存,最后写 `dsh: session <id> saved; resume with: dsh --profile tui --resume <id>`。
|
|
248
|
+
|
|
249
|
+
`Ctrl+C` 结束等待时退出码为 130,终端关闭时为 129,等待放弃或某一步失败时为 1,其余情况为 0。`quitGraceMs`(默认 10000 ms,至少 1000)限定整个停止过程;超过之后,启动器自身的 dispose 最多再等 5 s,并在进程退出时杀掉仍在运行的命令进程。关闭终端会发送 `SIGHUP`,它运行同样的停止过程;写往已关闭终端的输出被丢弃。命令从自身进程树中脱离出去的进程可能在退出后继续存活;参见[已知限制与延期工作](#known-limitations-and-deferred-work)。
|
|
250
|
+
|
|
231
251
|
### 配置
|
|
232
252
|
|
|
233
253
|
| 字段 | 默认值 | 含义 |
|
|
@@ -239,7 +259,8 @@ follow-ups 面板持有键盘时:
|
|
|
239
259
|
| `focusPreviewLines` | `12` | 停靠的检视面板为聚焦小节显示的行数,其后由折叠标记把剩余部分交给阅读器;对每一种小节都适用 |
|
|
240
260
|
| `readerMinColumns` | `60` | 阅读器把被选中的轮次画在轮次列表旁边所需的列数;不足时一次只画一个面板 |
|
|
241
261
|
| `codeHighlight` | `true` | 以语法高亮绘制回复中的围栏代码、`read` 与 diff 工具卡片的文件行,以及 `!` / `!!` 草稿、`$ command` 行与终端工具卡片中的 shell 命令,配色主题由终端背景选定 |
|
|
242
|
-
| `toastMs` | `2000` |
|
|
262
|
+
| `toastMs` | `2000` | 临时按键提示行以全亮度保持多久后淡出;该行仍在屏幕上时,第二次 `Esc` 停止正在进行的轮次,第二次 `Ctrl+C` 退出 |
|
|
263
|
+
| `quitGraceMs` | `10000` | 退出时等待进行中的轮次停止、会话日志保存、会话的后台作业与子 agent 停止的时长,超过后写明可能仍在运行的工作并以退出码 1 退出;随后是启动器自身 5 s 的 dispose。低于 1000 的值会被拒绝 |
|
|
243
264
|
| `liveRefreshMs` | `1000` | 重绘周期:推进 `turn` 分段与面板中的已用时间,并重新读取已过期的子 agent 列表 |
|
|
244
265
|
| `streamFadeSteps` | `24` | 一次淡入或浮出持续多少拍:回复文字与工具卡片的列淡入,推理浮出,时长为 `streamFadeSteps × streamFadeStepMs` |
|
|
245
266
|
| `streamFadeStepMs` | `16` | 一帧的时长:淡入或浮出的一拍、仍在变化时的重绘周期,也是逐帧绘制流式文字的周期;总时长为 `streamFadeSteps × streamFadeStepMs` |
|
|
@@ -266,7 +287,7 @@ runner 与 `dsh-headless` 一样是核心 API 载体之上的直接驱动器,
|
|
|
266
287
|
|
|
267
288
|
### 运行流程
|
|
268
289
|
|
|
269
|
-
runner 等待完整应用就绪(`ctx.get('loader')?.await()`),并在核心注册表之上构建含五个操作的会话宿主:`create` 用传入的选择或共享的 [`agentDefaultModel`](../../core/agent-default-model/README.zh.md) 选择创建一个全新的持久化 Agent,`resume` 先拿到 Agent 写句柄,再经 `ctx.sessionQuery` 观察实时 Session,使 bind 画出每条持久化事件(包括恢复时的闭合事件),`fork` 通过 `ctx.sessionQuery` 观察源会话、在所选(默认最后一个)`turn/end` 之后直到下一个 `turn/start` 处切割,并创建带 `parentSession` 与 `isSeeded` 元数据的种子 Agent,`observe` 打开子 agent 会话而不释放已绑定的会话——常驻的子 agent Agent 被实时读取、释放它什么也不做,其他会话则被恢复,`aside` 创建 `/btw` 旁路 agent:它以 `buildForkSeed` 用 `ctx.sessionQuery` 观察到的已绑定会话完整日志作种子,记录 `parentSession`、`isSeeded` 与 `origin: 'subagent'`,但不传入父 Agent,也不向父会话追加目录事件,随后在其 setup 中追加 `read-only` 沙箱模式与 `never` 审批策略,并把它的全局工具限制为配置的名称。除常驻会话的 `observe` 外,每个操作都在 Agent 的作用域 setup 中安装 `ModelSelectionRef`,因此 `/model` 会改变下一次请求;`resume` 把启动默认作为 AgentOptions 传入,使组装时 `{{model}}` 有值,再在有请求头时把它覆盖到该选择上,否则保留该默认。终端应用从 `--resume` 或一次新的 `create` 产生的会话开始,订阅 `session/event`、`agent/assistant-stream` 与 `agent/status`,为绑定的 Agent 以及每个被视图挡在后面的会话应答 `approval/request` 与 `user-questions/request` waterfall,并通过绑定下一个会话、dispose
|
|
290
|
+
runner 等待完整应用就绪(`ctx.get('loader')?.await()`),并在核心注册表之上构建含五个操作的会话宿主:`create` 用传入的选择或共享的 [`agentDefaultModel`](../../core/agent-default-model/README.zh.md) 选择创建一个全新的持久化 Agent,`resume` 先拿到 Agent 写句柄,再经 `ctx.sessionQuery` 观察实时 Session,使 bind 画出每条持久化事件(包括恢复时的闭合事件),`fork` 通过 `ctx.sessionQuery` 观察源会话、在所选(默认最后一个)`turn/end` 之后直到下一个 `turn/start` 处切割,并创建带 `parentSession` 与 `isSeeded` 元数据的种子 Agent,`observe` 打开子 agent 会话而不释放已绑定的会话——常驻的子 agent Agent 被实时读取、释放它什么也不做,其他会话则被恢复,`aside` 创建 `/btw` 旁路 agent:它以 `buildForkSeed` 用 `ctx.sessionQuery` 观察到的已绑定会话完整日志作种子,记录 `parentSession`、`isSeeded` 与 `origin: 'subagent'`,但不传入父 Agent,也不向父会话追加目录事件,随后在其 setup 中追加 `read-only` 沙箱模式与 `never` 审批策略,并把它的全局工具限制为配置的名称。除常驻会话的 `observe` 外,每个操作都在 Agent 的作用域 setup 中安装 `ModelSelectionRef`,因此 `/model` 会改变下一次请求;`resume` 把启动默认作为 AgentOptions 传入,使组装时 `{{model}}` 有值,再在有请求头时把它覆盖到该选择上,否则保留该默认。终端应用从 `--resume` 或一次新的 `create` 产生的会话开始,订阅 `session/event`、`agent/assistant-stream` 与 `agent/status`,为绑定的 Agent 以及每个被视图挡在后面的会话应答 `approval/request` 与 `user-questions/request` waterfall,并通过绑定下一个会话、dispose 先前句柄来切换会话;宿主打开下一个会话期间编辑器拒绝输入,等待期间退出会释放随后到达的会话。退出在根绑定上运行 `src/quit.ts` 中的序列:取消任何进行中的轮次、等待完全停稳、flush 根会话、dispose 其句柄,每一步都被隔离,失败不会跳过下一步;该序列与 `quitGraceMs` 以及只在退出期间注册的 `SIGINT` 监听器竞争,之后写出结果行,并请求报告映射出的退出码;runner 作为 effect 注册的 `SIGHUP` 监听器运行同样的退出,并把终端视为已消失。驱动器失败会向 stderr 写入 `dsh: <message>` 并请求以 1 退出。`/resume` 与 `/sessions` 共用持久化会话选择器。编辑器中的 `Shift+Tab` 会派发空参数 `/effort` 以打开当前模型的推理强度选择器,而编辑器中的 `Shift+Left` / `Shift+Right` 使用 pi-tui 的词导航。`/login` 只带着订阅方法(除收集密钥的 `api-key` 登录外的每一种方法)启动 `authorization.begin`。flow 用 `openInBrowser` 标记的 notice 会经 `dsh-native-command` 的凭据擦除辅助进程交给默认浏览器,URL 同时保持打印;当 `openBrowser` 为 false、启动经过 SSH 或宿主没有桌面时抑制该交接,打开器失败则成为 URL 旁的一条通知,而非登录失败。编辑器里提交的非空 `!` 或 `!!` 行经本进程的 `ctx.shell` 运行;`!` 注入一条下一步通知,`!!` 只留在本地。
|
|
270
291
|
|
|
271
292
|
### 渲染模型
|
|
272
293
|
|
|
@@ -280,11 +301,12 @@ runner 等待完整应用就绪(`ctx.get('loader')?.await()`),并在核心
|
|
|
280
301
|
|
|
281
302
|
| 文件 | 职责 |
|
|
282
303
|
|---|---|
|
|
283
|
-
| [`src/index.ts`](src/index.ts) | `tui-app` 插件:会话宿主(创建、恢复、fork
|
|
304
|
+
| [`src/index.ts`](src/index.ts) | `tui-app` 插件:会话宿主(创建、恢复、fork、观察)、恢复观察,以及退出的接线:`SIGHUP` 与 `SIGINT` 监听器、时间预算、结果行与退出请求 |
|
|
305
|
+
| [`src/quit.ts`](src/quit.ts) | 退出序列:运行中工作的清点及其措辞、有序、隔离且有界的停止,以及一份报告映射出的 stderr 行与退出码 |
|
|
284
306
|
| [`src/resume-model.ts`](src/resume-model.ts) | 恢复时的模型选择:来自最后一条请求头,否则为启动默认 |
|
|
285
307
|
| [`tests/resume-model.spec.ts`](tests/resume-model.spec.ts) | 恢复沿用上次记录的路由,没有请求头时则用启动默认 |
|
|
286
308
|
| [`src/startup.ts`](src/startup.ts) | `tui-app-startup` 提供方:提示位置参数、`--resume`、`--no-open` 与 `--help` |
|
|
287
|
-
| [`src/app.ts`](src/app.ts) | 终端应用:布局、按键路由、命令、会话绑定、接缝、日志与流的折叠、编辑器上方的 activity board
|
|
309
|
+
| [`src/app.ts`](src/app.ts) | 终端应用:布局、按键路由、命令、会话绑定、接缝、日志与流的折叠、编辑器上方的 activity board、停止与退出的装填、退出所停止工作的清点、它挂载的临时提示行、阅读器所依托的终端交接,以及提交时解析的 `!` / `!!` |
|
|
288
310
|
| [`src/keys.ts`](src/keys.ts) | 按键模型:各焦点区域、一次按键在每个区域中的含义、它们逐级收缩的按键提示、进入用的按键、`/help` 的各行,以及交接窗口 |
|
|
289
311
|
| [`src/sessions.ts`](src/sessions.ts) | `/resume` 与 `/sessions` 共用的持久化会话列表及选择器行;标题来自实时或缓存的 title 投影 |
|
|
290
312
|
| [`src/effort.ts`](src/effort.ts) | `/model`、`/effort` 与编辑器 `Shift+Tab` 共用的推理强度名称及选择器行 |
|
|
@@ -323,6 +345,8 @@ runner 等待完整应用就绪(`ctx.get('loader')?.await()`),并在核心
|
|
|
323
345
|
| [`src/status.ts`](src/status.ts) | 投影接缝的事实,以及 `/status` 报告与分段详情共享的小节;重试通知 |
|
|
324
346
|
| [`src/footer.ts`](src/footer.ts) | 状态栏:有序的各分段、每个分段的详情行、未聚焦时由两端向内构建的一行,以及聚焦时的滑动窗口 |
|
|
325
347
|
| [`src/subagent-panel.ts`](src/subagent-panel.ts) | 实时子 agent 面板:一次后代列表加上采样到的实时事实构成其各行、未聚焦时的摘要行,以及聚焦时的列表 |
|
|
348
|
+
| [`src/team-panel.ts`](src/team-panel.ts) | 团队摘要:一行成员与任务计数,在有 teammate 或共享任务时绘制 |
|
|
349
|
+
| [`src/team.ts`](src/team.ts) | `/team`、`/team-tools` 与 `/team-panel`:名册行、九个工具的可见性,以及对可选服务的读取 |
|
|
326
350
|
| [`src/queue-panel.ts`](src/queue-panel.ts) | follow-ups 列表:待处理行符号、悬挂换行与 enter-steer 图例 |
|
|
327
351
|
| [`src/background.ts`](src/background.ts) | `Ctrl+B`:跟踪根调用的 `tools/execute` 包装器,把调用移为 `tool` 作业、识别 shell 调用自己的进程作业,并保持被停止轮次的作业 |
|
|
328
352
|
| [`src/jobs-panel.ts`](src/jobs-panel.ts) | 编辑器上方的后台作业行、`/jobs` 的行与详情页,以及作业结束提示行 |
|
|
@@ -332,7 +356,7 @@ runner 等待完整应用就绪(`ctx.get('loader')?.await()`),并在核心
|
|
|
332
356
|
| [`src/todos.ts`](src/todos.ts) | todo 列表:状态符号、已完成内容划掉的选择器行与单个条目的详情行 |
|
|
333
357
|
| [`cordis.patch.yml`](cordis.patch.yml) | 基于 `dsh-base` 的终端 patch |
|
|
334
358
|
| — | 不发布运行时不变量伴随模块;应用只在一个 Agent 上注册监听器,不持有其他观察者可能与之矛盾的可变关系。 |
|
|
335
|
-
| [`tests/app.spec.ts`](tests/app.spec.ts) |
|
|
359
|
+
| [`tests/app.spec.ts`](tests/app.spec.ts) | 基于伪终端的渲染、按键、命令、停止与退出的装填、编辑器上方的 follow-ups 行、activity board 与两个接缝 |
|
|
336
360
|
| [`tests/background.spec.ts`](tests/background.spec.ts) | 基于真实工具运行时、作业注册表与作业工具的 `Ctrl+B`:旋转指示提示、被移走的结果与卡片、作业行、`/jobs` 输出与 `Ctrl+K`、完成通知、拒绝、失败与轮次停止 |
|
|
337
361
|
| [`tests/background-tracking.spec.ts`](tests/background-tracking.spec.ts) | 包装器跟踪哪些调用、哪些作业算作调用自己的作业,以及被移走结果的文本 |
|
|
338
362
|
| [`tests/jobs-panel.spec.ts`](tests/jobs-panel.spec.ts) | 作业行、`/jobs` 的行、详情页与作业结束提示行的文本 |
|
|
@@ -366,10 +390,15 @@ runner 等待完整应用就绪(`ctx.get('loader')?.await()`),并在核心
|
|
|
366
390
|
| [`tests/compaction-app.spec.ts`](tests/compaction-app.spec.ts) | 终端中的 `/compact`:旋转指示、`Esc`、排队的提示、被拒绝的切换、取代结果的压缩块,以及从重放日志绘出的压缩块 |
|
|
367
391
|
| [`tests/sessions.spec.ts`](tests/sessions.spec.ts) | 会话选择器列表:最新在前、实时或缓存标题、隐藏子 agent |
|
|
368
392
|
| [`tests/index.spec.ts`](tests/index.spec.ts) | 创建、恢复分页、恢复时的模型组装、fork 切割、会话切换、退出流程与失败报告 |
|
|
393
|
+
| [`tests/quit.spec.ts`](tests/quit.spec.ts) | 退出顺序、时间预算、强制退出、被隔离的步骤失败、进度通知,以及每种结果映射出的输出行与退出码 |
|
|
369
394
|
| [`tests/startup.spec.ts`](tests/startup.spec.ts) | 基于真实 Loader 配置树的命令行解析 |
|
|
370
395
|
| [`tests/shortcuts.spec.ts`](tests/shortcuts.spec.ts) | 空输入与草稿中的 `?`、任一区域的 `Ctrl+T`、根会话上的 `Ctrl+P`,以及 `Ctrl+L` 重绘 |
|
|
371
396
|
| [`tests/subagents.spec.ts`](tests/subagents.spec.ts) | 实时子 agent 面板的各行、走查与列表刷新,以及它与 `/subagents` 打开的子 agent 视图:经 `/parent` 与 `Ctrl+P` 离开,并在会话切换与退出时释放 |
|
|
397
|
+
| [`tests/team-panel.spec.ts`](tests/team-panel.spec.ts) | 团队摘要的计数、隐藏、已删除任务与行数上限 |
|
|
398
|
+
| [`tests/team.spec.ts`](tests/team.spec.ts) | 工具可见性行、名册选择行,以及对可选服务的读取 |
|
|
399
|
+
| [`tests/team-app.spec.ts`](tests/team-app.spec.ts) | 终端中的 `/team`、`/team-tools` 与 `/team-panel`:提示、摘要,以及打开 teammate 会话 |
|
|
372
400
|
| [`../../../apps/cli/tests/profiles/tui/tests/keyless-smoke.e2e.ts`](../../../apps/cli/tests/profiles/tui/tests/keyless-smoke.e2e.ts) | 通过真实启动器与免密钥模拟模型运行随附 profile |
|
|
401
|
+
| [`../../../apps/cli/tests/profiles/tui/tests/quit-while-busy.e2e.ts`](../../../apps/cli/tests/profiles/tui/tests/quit-while-busy.e2e.ts) | 已发布的配置文件在命令、后台作业、子代理或忽略 `SIGTERM` 的进程仍在运行时退出,以及收到 `SIGHUP` 与 `SIGINT` 时的表现:stderr 输出行及其顺序、退出码,以及没有进程残留 |
|
|
373
402
|
|
|
374
403
|
### 不变量归属
|
|
375
404
|
|
|
@@ -479,6 +508,7 @@ The user moved this call to the background. It keeps running as job <id>. You ar
|
|
|
479
508
|
- **点击需要终端配合**——设置 `mouse: true` 后,终端的鼠标报告在整个运行期间都处于打开状态,因此不按住 `Shift` 时,滚轮与普通的点击拖动不再滚动回滚缓冲区或选择文本;主屏幕上的点击依据终端对光标位置查询的应答来定位,因此从不应答的终端会忽略主屏幕上的点击,而阅读器的屏幕不需要应答;终端向回滚动时,回滚缓冲区中的徽标无法点击,因为鼠标报告指的是实时屏幕上的行。
|
|
480
509
|
- **终端自身的光标可能闪烁**——编辑器不绘制自己的光标,应用打开终端光标,而 pi-tui 会在其重绘的各行之间移动它;不支持 pi-tui 为一帧包裹的同步输出序列的终端可能显示出这种移动。
|
|
481
510
|
- **通过 `dsh` 启动器运行**——以其他方式启动该 profile 会在启动时失败,因为只有启动器能请求进程退出。
|
|
511
|
+
- **命令脱离出去的进程可能在退出后存活**——在 macOS 上,以及在没有可用 user-systemd scope 的 Linux 上,退出会停止每个运行中命令的进程组,以及进程树中仍在该命令之下的后代进程,但通过两次 fork 脱离它(被重新挂到 1 号进程下)的进程不被追踪,会继续运行;Linux 原生模式把这类进程保留在该命令的 scope 中。[subprocess-local 的限制](../../subprocess/subprocess-local/README.zh.md#known-limitations-and-deferred-work)说明各平台提供的隔离范围。
|
|
482
512
|
- **`/btw` 旁路 agent 靠工具名称与沙箱保持只读**——`btwTools` 只能列出读取类工具,因为旁路 agent 与工作 agent 共享工作区;命令工具可以读取 `read-only` 沙箱模式允许的任何内容,而没有会约束命令的执行器时命令工具会被隐藏。它只继承工作会话已记录的内容:仍在流式输出的回复文本不在其中。它的日志像子 agent 会话一样被存储,并在 `/resume` 与 `/sessions` 中隐藏,Web 没有 `/btw`。
|
|
483
513
|
- **被移走的调用仍绑定其轮次并返回文本**——工具运行时把轮次的信号融合进每个调用,因此即便按过 `Ctrl+B`,在派发该调用的轮次上按 `Esc` 仍会停止它;作业结果是字符串,因此调用结果中的其他内容块会被写成 `[image omitted]` 之类;移走调用需要 `ctx.jobs` 与 `dsh-tool-jobs`,base profile 已组合二者。
|
|
484
514
|
- **工作流运行块只显示身份与状态**——顶层 workflow 调用在工具卡片旁另绘运行块:运行名、成员数、状态、进度、阶段和已启动的成员。`/workflows` 只停止后台运行;轮次内的运行随轮次一起停止。运行中与异常的层级默认展开,干净完成的层级保持折叠。在运行或阶段上按 Space 或 Enter 折叠该层。在仍在运行的成员上按 Enter 只会在它是本会话的直接子会话且仍在本进程运行时打开,不会恢复已结束的成员。脚本留在工具卡片上。后台运行在其作业仍存活时,启动轮次结束后仍显示为运行中;重放时没有存活作业的未结束运行显示为 interrupted。阶段与日志行留在 `/jobs`,作业返回值仍由 `job_output` 交给模型。
|