@songtonyli/dsh-cli 0.1.37 → 0.1.39

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.
Files changed (35) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@aws-sdk/core/package.json +6 -6
  4. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  5. package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
  6. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  7. package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
  8. package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -11
  9. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  10. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +6 -6
  11. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  12. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
  13. package/node_modules/@aws-sdk/eventstream-handler-node/package.json +4 -4
  14. package/node_modules/@aws-sdk/middleware-eventstream/package.json +4 -4
  15. package/node_modules/@aws-sdk/middleware-websocket/package.json +7 -7
  16. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +3 -3
  17. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +3 -3
  18. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +3 -3
  19. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +3 -3
  20. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +14 -11
  21. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/schemas/schemas_0.js +2 -2
  22. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +2 -2
  23. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js +2 -2
  24. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +2 -2
  25. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +13 -10
  26. package/node_modules/@aws-sdk/nested-clients/package.json +8 -8
  27. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +4 -4
  28. package/node_modules/@aws-sdk/types/package.json +2 -2
  29. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  30. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
  31. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +2 -2
  32. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +5 -5
  33. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +5 -5
  34. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +83 -16
  35. package/package.json +17 -17
package/README.md CHANGED
@@ -26,7 +26,7 @@ workspace and no build step. Native packages that ship one build per platform
26
26
  ripgrep, the PTY backend's addons, sharp, koffi, and the Landlock launcher — are
27
27
  ordinary optional dependencies, so npm resolves the right one for your machine.
28
28
 
29
- Requires Node `^22.19.0 || >=24.0.0`. Version 0.1.37; `dsh --version`
29
+ Requires Node `^22.19.0 || >=24.0.0`. Version 0.1.39; `dsh --version`
30
30
  also reports the harness build the package was assembled from.
31
31
 
32
32
  ## License
package/bin/dsh.mjs CHANGED
@@ -18,7 +18,7 @@ const argv = process.argv.slice(2)
18
18
  // version this package publishes. Reporting only one of the two would make an
19
19
  // ordinary `npm install @songtonyli/dsh-cli@x` look like it installed something else.
20
20
  if (argv.length === 1 && (argv[0] === '--version' || argv[0] === '-V')) {
21
- console.log('@songtonyli/dsh-cli 0.1.37 (deepseek-harness 0.1.7-alpha.1)')
21
+ console.log('@songtonyli/dsh-cli 0.1.39 (deepseek-harness 0.1.7-alpha.1)')
22
22
  process.exit(0)
23
23
  }
24
24
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.978.0",
3
+ "version": "3.978.1",
4
4
  "description": "Core functions & classes shared by multiple AWS SDK clients.",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/core",
6
6
  "license": "Apache-2.0",
@@ -106,12 +106,12 @@
106
106
  }
107
107
  },
108
108
  "dependencies": {
109
- "@aws-sdk/types": "^3.974.5",
110
- "@aws-sdk/xml-builder": "^3.972.40",
109
+ "@aws-sdk/types": "^3.974.6",
110
+ "@aws-sdk/xml-builder": "^3.972.41",
111
111
  "@aws/lambda-invoke-store": "^0.3.0",
112
- "@smithy/core": "^3.33.3",
113
- "@smithy/signature-v4": "^5.6.12",
114
- "@smithy/types": "^4.17.2",
112
+ "@smithy/core": "^3.35.0",
113
+ "@smithy/signature-v4": "^5.7.3",
114
+ "@smithy/types": "^4.19.0",
115
115
  "bowser": "^2.11.0",
116
116
  "tslib": "^2.6.2"
117
117
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-env",
3
- "version": "3.972.71",
3
+ "version": "3.972.72",
4
4
  "description": "AWS credential provider that sources credentials from known environment variables",
5
5
  "keywords": [
6
6
  "aws",
@@ -32,10 +32,10 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@aws-sdk/core": "^3.978.0",
36
- "@aws-sdk/types": "^3.974.5",
37
- "@smithy/core": "^3.33.3",
38
- "@smithy/types": "^4.17.2",
35
+ "@aws-sdk/core": "^3.978.1",
36
+ "@aws-sdk/types": "^3.974.6",
37
+ "@smithy/core": "^3.35.0",
38
+ "@smithy/types": "^4.19.0",
39
39
  "tslib": "^2.6.2"
40
40
  },
41
41
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-http",
3
- "version": "3.972.73",
3
+ "version": "3.972.74",
4
4
  "description": "AWS credential provider for containers and HTTP sources",
5
5
  "keywords": [
6
6
  "aws",
@@ -40,12 +40,12 @@
40
40
  "./dist-es/fromHttp/fromHttp": "./dist-es/fromHttp/fromHttp.browser"
41
41
  },
42
42
  "dependencies": {
43
- "@aws-sdk/core": "^3.978.0",
44
- "@aws-sdk/types": "^3.974.5",
45
- "@smithy/core": "^3.33.3",
46
- "@smithy/fetch-http-handler": "^5.7.2",
47
- "@smithy/node-http-handler": "^4.11.3",
48
- "@smithy/types": "^4.17.2",
43
+ "@aws-sdk/core": "^3.978.1",
44
+ "@aws-sdk/types": "^3.974.6",
45
+ "@smithy/core": "^3.35.0",
46
+ "@smithy/fetch-http-handler": "^5.8.0",
47
+ "@smithy/node-http-handler": "^4.12.1",
48
+ "@smithy/types": "^4.19.0",
49
49
  "tslib": "^2.6.2"
50
50
  },
51
51
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.973.16",
3
+ "version": "3.973.17",
4
4
  "description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
5
5
  "keywords": [
6
6
  "aws",
@@ -32,18 +32,18 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@aws-sdk/core": "^3.978.0",
36
- "@aws-sdk/credential-provider-env": "^3.972.71",
37
- "@aws-sdk/credential-provider-http": "^3.972.73",
38
- "@aws-sdk/credential-provider-login": "^3.972.78",
39
- "@aws-sdk/credential-provider-process": "^3.972.71",
40
- "@aws-sdk/credential-provider-sso": "^3.973.15",
41
- "@aws-sdk/credential-provider-web-identity": "^3.972.77",
42
- "@aws-sdk/nested-clients": "^3.997.45",
43
- "@aws-sdk/types": "^3.974.5",
44
- "@smithy/core": "^3.33.3",
45
- "@smithy/credential-provider-imds": "^4.4.16",
46
- "@smithy/types": "^4.17.2",
35
+ "@aws-sdk/core": "^3.978.1",
36
+ "@aws-sdk/credential-provider-env": "^3.972.72",
37
+ "@aws-sdk/credential-provider-http": "^3.972.74",
38
+ "@aws-sdk/credential-provider-login": "^3.972.79",
39
+ "@aws-sdk/credential-provider-process": "^3.972.72",
40
+ "@aws-sdk/credential-provider-sso": "^3.973.16",
41
+ "@aws-sdk/credential-provider-web-identity": "^3.972.78",
42
+ "@aws-sdk/nested-clients": "^3.997.46",
43
+ "@aws-sdk/types": "^3.974.6",
44
+ "@smithy/core": "^3.35.0",
45
+ "@smithy/credential-provider-imds": "^4.5.2",
46
+ "@smithy/types": "^4.19.0",
47
47
  "tslib": "^2.6.2"
48
48
  },
49
49
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-login",
3
- "version": "3.972.78",
3
+ "version": "3.972.79",
4
4
  "description": "AWS credential provider that sources credentials from aws login cached tokens",
5
5
  "keywords": [
6
6
  "aws",
@@ -34,11 +34,11 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "@aws-sdk/core": "^3.978.0",
38
- "@aws-sdk/nested-clients": "^3.997.45",
39
- "@aws-sdk/types": "^3.974.5",
40
- "@smithy/core": "^3.33.3",
41
- "@smithy/types": "^4.17.2",
37
+ "@aws-sdk/core": "^3.978.1",
38
+ "@aws-sdk/nested-clients": "^3.997.46",
39
+ "@aws-sdk/types": "^3.974.6",
40
+ "@smithy/core": "^3.35.0",
41
+ "@smithy/types": "^4.19.0",
42
42
  "tslib": "^2.6.2"
43
43
  },
44
44
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.972.83",
3
+ "version": "3.972.84",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "keywords": [
6
6
  "aws",
@@ -32,16 +32,16 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@aws-sdk/credential-provider-env": "^3.972.71",
36
- "@aws-sdk/credential-provider-http": "^3.972.73",
37
- "@aws-sdk/credential-provider-ini": "^3.973.16",
38
- "@aws-sdk/credential-provider-process": "^3.972.71",
39
- "@aws-sdk/credential-provider-sso": "^3.973.15",
40
- "@aws-sdk/credential-provider-web-identity": "^3.972.77",
41
- "@aws-sdk/types": "^3.974.5",
42
- "@smithy/core": "^3.33.3",
43
- "@smithy/credential-provider-imds": "^4.4.16",
44
- "@smithy/types": "^4.17.2",
35
+ "@aws-sdk/credential-provider-env": "^3.972.72",
36
+ "@aws-sdk/credential-provider-http": "^3.972.74",
37
+ "@aws-sdk/credential-provider-ini": "^3.973.17",
38
+ "@aws-sdk/credential-provider-process": "^3.972.72",
39
+ "@aws-sdk/credential-provider-sso": "^3.973.16",
40
+ "@aws-sdk/credential-provider-web-identity": "^3.972.78",
41
+ "@aws-sdk/types": "^3.974.6",
42
+ "@smithy/core": "^3.35.0",
43
+ "@smithy/credential-provider-imds": "^4.5.2",
44
+ "@smithy/types": "^4.19.0",
45
45
  "tslib": "^2.6.2"
46
46
  },
47
47
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.972.71",
3
+ "version": "3.972.72",
4
4
  "description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
5
5
  "keywords": [
6
6
  "aws",
@@ -32,10 +32,10 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@aws-sdk/core": "^3.978.0",
36
- "@aws-sdk/types": "^3.974.5",
37
- "@smithy/core": "^3.33.3",
38
- "@smithy/types": "^4.17.2",
35
+ "@aws-sdk/core": "^3.978.1",
36
+ "@aws-sdk/types": "^3.974.6",
37
+ "@smithy/core": "^3.35.0",
38
+ "@smithy/types": "^4.19.0",
39
39
  "tslib": "^2.6.2"
40
40
  },
41
41
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.1129.0",
3
+ "version": "3.1138.0",
4
4
  "description": "A collection of token providers",
5
5
  "keywords": [
6
6
  "aws",
@@ -48,11 +48,11 @@
48
48
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
49
49
  },
50
50
  "dependencies": {
51
- "@aws-sdk/core": "^3.978.0",
52
- "@aws-sdk/nested-clients": "^3.997.45",
53
- "@aws-sdk/types": "^3.974.5",
54
- "@smithy/core": "^3.33.3",
55
- "@smithy/types": "^4.17.2",
51
+ "@aws-sdk/core": "^3.978.1",
52
+ "@aws-sdk/nested-clients": "^3.997.46",
53
+ "@aws-sdk/types": "^3.974.6",
54
+ "@smithy/core": "^3.35.0",
55
+ "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.973.15",
3
+ "version": "3.973.16",
4
4
  "description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
5
5
  "keywords": [
6
6
  "aws",
@@ -32,12 +32,12 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@aws-sdk/core": "^3.978.0",
36
- "@aws-sdk/nested-clients": "^3.997.45",
37
- "@aws-sdk/token-providers": "3.1129.0",
38
- "@aws-sdk/types": "^3.974.5",
39
- "@smithy/core": "^3.33.3",
40
- "@smithy/types": "^4.17.2",
35
+ "@aws-sdk/core": "^3.978.1",
36
+ "@aws-sdk/nested-clients": "^3.997.46",
37
+ "@aws-sdk/token-providers": "3.1138.0",
38
+ "@aws-sdk/types": "^3.974.6",
39
+ "@smithy/core": "^3.35.0",
40
+ "@smithy/types": "^4.19.0",
41
41
  "tslib": "^2.6.2"
42
42
  },
43
43
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.972.77",
3
+ "version": "3.972.78",
4
4
  "description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
5
5
  "keywords": [
6
6
  "aws",
@@ -39,11 +39,11 @@
39
39
  "./dist-es/fromTokenFile": false
40
40
  },
41
41
  "dependencies": {
42
- "@aws-sdk/core": "^3.978.0",
43
- "@aws-sdk/nested-clients": "^3.997.45",
44
- "@aws-sdk/types": "^3.974.5",
45
- "@smithy/core": "^3.33.3",
46
- "@smithy/types": "^4.17.2",
42
+ "@aws-sdk/core": "^3.978.1",
43
+ "@aws-sdk/nested-clients": "^3.997.46",
44
+ "@aws-sdk/types": "^3.974.6",
45
+ "@smithy/core": "^3.35.0",
46
+ "@smithy/types": "^4.19.0",
47
47
  "tslib": "^2.6.2"
48
48
  },
49
49
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/eventstream-handler-node",
3
- "version": "3.972.34",
3
+ "version": "3.972.35",
4
4
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/eventstream-handler-node",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -27,9 +27,9 @@
27
27
  }
28
28
  },
29
29
  "dependencies": {
30
- "@aws-sdk/types": "^3.974.5",
31
- "@smithy/core": "^3.33.3",
32
- "@smithy/types": "^4.17.2",
30
+ "@aws-sdk/types": "^3.974.6",
31
+ "@smithy/core": "^3.35.0",
32
+ "@smithy/types": "^4.19.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-eventstream",
3
- "version": "3.972.29",
3
+ "version": "3.972.30",
4
4
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/middleware-eventstream",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -27,9 +27,9 @@
27
27
  }
28
28
  },
29
29
  "dependencies": {
30
- "@aws-sdk/types": "^3.974.5",
31
- "@smithy/core": "^3.33.3",
32
- "@smithy/types": "^4.17.2",
30
+ "@aws-sdk/types": "^3.974.6",
31
+ "@smithy/core": "^3.35.0",
32
+ "@smithy/types": "^4.19.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-websocket",
3
- "version": "3.972.53",
3
+ "version": "3.972.54",
4
4
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/middleware-websocket",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -27,12 +27,12 @@
27
27
  }
28
28
  },
29
29
  "dependencies": {
30
- "@aws-sdk/core": "^3.978.0",
31
- "@aws-sdk/types": "^3.974.5",
32
- "@smithy/core": "^3.33.3",
33
- "@smithy/fetch-http-handler": "^5.7.2",
34
- "@smithy/signature-v4": "^5.6.12",
35
- "@smithy/types": "^4.17.2",
30
+ "@aws-sdk/core": "^3.978.1",
31
+ "@aws-sdk/types": "^3.974.6",
32
+ "@smithy/core": "^3.35.0",
33
+ "@smithy/fetch-http-handler": "^5.8.0",
34
+ "@smithy/signature-v4": "^5.7.3",
35
+ "@smithy/types": "^4.19.0",
36
36
  "tslib": "^2.6.2"
37
37
  },
38
38
  "devDependencies": {
@@ -83,7 +83,7 @@ const commonParams = {
83
83
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
84
84
  };
85
85
 
86
- var version = "3.997.44";
86
+ var version = "3.997.45";
87
87
  var packageInfo = {
88
88
  version: version};
89
89
 
@@ -311,10 +311,10 @@ const _m = "message";
311
311
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity";
312
312
  const _se = "server";
313
313
  const n0 = "com.amazonaws.cognitoidentity";
314
- const _s_registry = TypeRegistry.for(_s);
314
+ const _s_registry = new TypeRegistry(_s);
315
315
  var CognitoIdentityServiceException$ = [-3, _s, "CognitoIdentityServiceException", 0, [], []];
316
316
  _s_registry.registerError(CognitoIdentityServiceException$, CognitoIdentityServiceException);
317
- const n0_registry = TypeRegistry.for(n0);
317
+ const n0_registry = new TypeRegistry(n0);
318
318
  var ExternalServiceException$ = [-3, n0, _ESE,
319
319
  { [_e]: _c, [_hE]: 400 },
320
320
  [_m],
@@ -78,7 +78,7 @@ const commonParams = {
78
78
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
79
79
  };
80
80
 
81
- var version = "3.997.44";
81
+ var version = "3.997.45";
82
82
  var packageInfo = {
83
83
  version: version};
84
84
 
@@ -302,10 +302,10 @@ const _tO = "tokenOutput";
302
302
  const _tT = "tokenType";
303
303
  const _tt = "token_type";
304
304
  const n0 = "com.amazonaws.signin";
305
- const _s_registry = TypeRegistry.for(_s);
305
+ const _s_registry = new TypeRegistry(_s);
306
306
  var SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
307
307
  _s_registry.registerError(SigninServiceException$, SigninServiceException);
308
- const n0_registry = TypeRegistry.for(n0);
308
+ const n0_registry = new TypeRegistry(n0);
309
309
  var AccessDeniedException$ = [-3, n0, _ADE,
310
310
  { [_e]: _c },
311
311
  [_e, _m],
@@ -78,7 +78,7 @@ const commonParams = {
78
78
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
79
79
  };
80
80
 
81
- var version = "3.997.44";
81
+ var version = "3.997.45";
82
82
  var packageInfo = {
83
83
  version: version};
84
84
 
@@ -230,10 +230,10 @@ const _sAK = "secretAccessKey";
230
230
  const _sT = "sessionToken";
231
231
  const _xasbt = "x-amz-sso_bearer_token";
232
232
  const n0 = "com.amazonaws.sso";
233
- const _s_registry = TypeRegistry.for(_s);
233
+ const _s_registry = new TypeRegistry(_s);
234
234
  var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
235
235
  _s_registry.registerError(SSOServiceException$, SSOServiceException);
236
- const n0_registry = TypeRegistry.for(n0);
236
+ const n0_registry = new TypeRegistry(n0);
237
237
  var InvalidRequestException$ = [-3, n0, _IRE,
238
238
  { [_e]: _c, [_hE]: 400 },
239
239
  [_m],
@@ -78,7 +78,7 @@ const commonParams = {
78
78
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
79
79
  };
80
80
 
81
- var version = "3.997.44";
81
+ var version = "3.997.45";
82
82
  var packageInfo = {
83
83
  version: version};
84
84
 
@@ -372,10 +372,10 @@ const _sc = "scope";
372
372
  const _se = "server";
373
373
  const _tT = "tokenType";
374
374
  const n0 = "com.amazonaws.ssooidc";
375
- const _s_registry = TypeRegistry.for(_s);
375
+ const _s_registry = new TypeRegistry(_s);
376
376
  var SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
377
377
  _s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
378
- const n0_registry = TypeRegistry.for(n0);
378
+ const n0_registry = new TypeRegistry(n0);
379
379
  var AccessDeniedException$ = [-3, n0, _ADE,
380
380
  { [_e]: _c, [_hE]: 400 },
381
381
  [_e, _r, _ed],
@@ -258,7 +258,7 @@ const commonParams = {
258
258
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
259
259
  };
260
260
 
261
- var version = "3.997.44";
261
+ var version = "3.997.45";
262
262
  var packageInfo = {
263
263
  version: version};
264
264
 
@@ -377,6 +377,7 @@ const _IDPRCE = "IDPRejectedClaimException";
377
377
  const _IITE = "InvalidIdentityTokenException";
378
378
  const _K = "Key";
379
379
  const _MPDE = "MalformedPolicyDocumentException";
380
+ const _MSTS = "MinimumSessionTokenSize";
380
381
  const _P = "Policy";
381
382
  const _PA = "PolicyArns";
382
383
  const _PAr = "ProviderArn";
@@ -396,6 +397,8 @@ const _SFWIT = "SubjectFromWebIdentityToken";
396
397
  const _SI = "SourceIdentity";
397
398
  const _SN = "SerialNumber";
398
399
  const _ST = "SessionToken";
400
+ const _STS = "SessionTokenSize";
401
+ const _STU = "SessionTokenUtilization";
399
402
  const _T = "Tags";
400
403
  const _TC = "TokenCode";
401
404
  const _TTK = "TransitiveTagKeys";
@@ -414,10 +417,10 @@ const _pDLT = "policyDescriptorListType";
414
417
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sts";
415
418
  const _tLT = "tagListType";
416
419
  const n0 = "com.amazonaws.sts";
417
- const _s_registry = TypeRegistry.for(_s);
420
+ const _s_registry = new TypeRegistry(_s);
418
421
  var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []];
419
422
  _s_registry.registerError(STSServiceException$, STSServiceException);
420
- const n0_registry = TypeRegistry.for(n0);
423
+ const n0_registry = new TypeRegistry(n0);
421
424
  var ExpiredTokenException$ = [-3, n0, _ETE,
422
425
  { [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 },
423
426
  [_m],
@@ -473,23 +476,23 @@ var AssumedRoleUser$ = [3, n0, _ARU,
473
476
  ];
474
477
  var AssumeRoleRequest$ = [3, n0, _ARR,
475
478
  0,
476
- [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC],
477
- [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType], 2
479
+ [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC, _MSTS],
480
+ [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType, 1], 2
478
481
  ];
479
482
  var AssumeRoleResponse$ = [3, n0, _ARRs,
480
483
  0,
481
- [_C, _ARU, _PPS, _SI],
482
- [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0]
484
+ [_C, _ARU, _PPS, _SI, _STU, _STS],
485
+ [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0, 1, 1]
483
486
  ];
484
487
  var AssumeRoleWithWebIdentityRequest$ = [3, n0, _ARWWIR,
485
488
  0,
486
- [_RA, _RSN, _WIT, _PI, _PA, _P, _DS],
487
- [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1], 3
489
+ [_RA, _RSN, _WIT, _PI, _PA, _P, _DS, _MSTS],
490
+ [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1, 1], 3
488
491
  ];
489
492
  var AssumeRoleWithWebIdentityResponse$ = [3, n0, _ARWWIRs,
490
493
  0,
491
- [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI],
492
- [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0]
494
+ [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI, _STU, _STS],
495
+ [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0, 1, 1]
493
496
  ];
494
497
  var Credentials$ = [3, n0, _C,
495
498
  0,
@@ -36,10 +36,10 @@ const n0 = "com.amazonaws.cognitoidentity";
36
36
  import { TypeRegistry } from "@smithy/core/schema";
37
37
  import { CognitoIdentityServiceException } from "../models/CognitoIdentityServiceException";
38
38
  import { ExternalServiceException, InternalErrorException, InvalidIdentityPoolConfigurationException, InvalidParameterException, LimitExceededException, NotAuthorizedException, ResourceConflictException, ResourceNotFoundException, TooManyRequestsException, } from "../models/errors";
39
- const _s_registry = TypeRegistry.for(_s);
39
+ const _s_registry = new TypeRegistry(_s);
40
40
  export var CognitoIdentityServiceException$ = [-3, _s, "CognitoIdentityServiceException", 0, [], []];
41
41
  _s_registry.registerError(CognitoIdentityServiceException$, CognitoIdentityServiceException);
42
- const n0_registry = TypeRegistry.for(n0);
42
+ const n0_registry = new TypeRegistry(n0);
43
43
  export var ExternalServiceException$ = [-3, n0, _ESE,
44
44
  { [_e]: _c, [_hE]: 400 },
45
45
  [_m],
@@ -45,10 +45,10 @@ const n0 = "com.amazonaws.signin";
45
45
  import { TypeRegistry } from "@smithy/core/schema";
46
46
  import { AccessDeniedException, InternalServerException, TooManyRequestsError, ValidationException, } from "../models/errors";
47
47
  import { SigninServiceException } from "../models/SigninServiceException";
48
- const _s_registry = TypeRegistry.for(_s);
48
+ const _s_registry = new TypeRegistry(_s);
49
49
  export var SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
50
50
  _s_registry.registerError(SigninServiceException$, SigninServiceException);
51
- const n0_registry = TypeRegistry.for(n0);
51
+ const n0_registry = new TypeRegistry(n0);
52
52
  export var AccessDeniedException$ = [-3, n0, _ADE,
53
53
  { [_e]: _c },
54
54
  [_e, _m],
@@ -32,10 +32,10 @@ const n0 = "com.amazonaws.sso";
32
32
  import { TypeRegistry } from "@smithy/core/schema";
33
33
  import { InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, UnauthorizedException, } from "../models/errors";
34
34
  import { SSOServiceException } from "../models/SSOServiceException";
35
- const _s_registry = TypeRegistry.for(_s);
35
+ const _s_registry = new TypeRegistry(_s);
36
36
  export var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
37
37
  _s_registry.registerError(SSOServiceException$, SSOServiceException);
38
- const n0_registry = TypeRegistry.for(n0);
38
+ const n0_registry = new TypeRegistry(n0);
39
39
  export var InvalidRequestException$ = [-3, n0, _IRE,
40
40
  { [_e]: _c, [_hE]: 400 },
41
41
  [_m],
@@ -42,10 +42,10 @@ const n0 = "com.amazonaws.ssooidc";
42
42
  import { TypeRegistry } from "@smithy/core/schema";
43
43
  import { AccessDeniedException, AuthorizationPendingException, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidGrantException, InvalidRequestException, InvalidScopeException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException, } from "../models/errors";
44
44
  import { SSOOIDCServiceException } from "../models/SSOOIDCServiceException";
45
- const _s_registry = TypeRegistry.for(_s);
45
+ const _s_registry = new TypeRegistry(_s);
46
46
  export var SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
47
47
  _s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
48
- const n0_registry = TypeRegistry.for(n0);
48
+ const n0_registry = new TypeRegistry(n0);
49
49
  export var AccessDeniedException$ = [-3, n0, _ADE,
50
50
  { [_e]: _c, [_hE]: 400 },
51
51
  [_e, _r, _ed],
@@ -20,6 +20,7 @@ const _IDPRCE = "IDPRejectedClaimException";
20
20
  const _IITE = "InvalidIdentityTokenException";
21
21
  const _K = "Key";
22
22
  const _MPDE = "MalformedPolicyDocumentException";
23
+ const _MSTS = "MinimumSessionTokenSize";
23
24
  const _P = "Policy";
24
25
  const _PA = "PolicyArns";
25
26
  const _PAr = "ProviderArn";
@@ -39,6 +40,8 @@ const _SFWIT = "SubjectFromWebIdentityToken";
39
40
  const _SI = "SourceIdentity";
40
41
  const _SN = "SerialNumber";
41
42
  const _ST = "SessionToken";
43
+ const _STS = "SessionTokenSize";
44
+ const _STU = "SessionTokenUtilization";
42
45
  const _T = "Tags";
43
46
  const _TC = "TokenCode";
44
47
  const _TTK = "TransitiveTagKeys";
@@ -60,10 +63,10 @@ const n0 = "com.amazonaws.sts";
60
63
  import { TypeRegistry } from "@smithy/core/schema";
61
64
  import { ExpiredTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InvalidIdentityTokenException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, } from "../models/errors";
62
65
  import { STSServiceException } from "../models/STSServiceException";
63
- const _s_registry = TypeRegistry.for(_s);
66
+ const _s_registry = new TypeRegistry(_s);
64
67
  export var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []];
65
68
  _s_registry.registerError(STSServiceException$, STSServiceException);
66
- const n0_registry = TypeRegistry.for(n0);
69
+ const n0_registry = new TypeRegistry(n0);
67
70
  export var ExpiredTokenException$ = [-3, n0, _ETE,
68
71
  { [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 },
69
72
  [_m],
@@ -119,23 +122,23 @@ export var AssumedRoleUser$ = [3, n0, _ARU,
119
122
  ];
120
123
  export var AssumeRoleRequest$ = [3, n0, _ARR,
121
124
  0,
122
- [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC],
123
- [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType], 2
125
+ [_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC, _MSTS],
126
+ [0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType, 1], 2
124
127
  ];
125
128
  export var AssumeRoleResponse$ = [3, n0, _ARRs,
126
129
  0,
127
- [_C, _ARU, _PPS, _SI],
128
- [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0]
130
+ [_C, _ARU, _PPS, _SI, _STU, _STS],
131
+ [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0, 1, 1]
129
132
  ];
130
133
  export var AssumeRoleWithWebIdentityRequest$ = [3, n0, _ARWWIR,
131
134
  0,
132
- [_RA, _RSN, _WIT, _PI, _PA, _P, _DS],
133
- [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1], 3
135
+ [_RA, _RSN, _WIT, _PI, _PA, _P, _DS, _MSTS],
136
+ [0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1, 1], 3
134
137
  ];
135
138
  export var AssumeRoleWithWebIdentityResponse$ = [3, n0, _ARWWIRs,
136
139
  0,
137
- [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI],
138
- [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0]
140
+ [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI, _STU, _STS],
141
+ [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0, 1, 1]
139
142
  ];
140
143
  export var Credentials$ = [3, n0, _C,
141
144
  0,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/nested-clients",
3
- "version": "3.997.45",
3
+ "version": "3.997.46",
4
4
  "description": "Nested clients for AWS SDK packages.",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
6
6
  "license": "Apache-2.0",
@@ -87,13 +87,13 @@
87
87
  }
88
88
  },
89
89
  "dependencies": {
90
- "@aws-sdk/core": "^3.978.0",
91
- "@aws-sdk/signature-v4-multi-region": "^3.996.46",
92
- "@aws-sdk/types": "^3.974.5",
93
- "@smithy/core": "^3.33.3",
94
- "@smithy/fetch-http-handler": "^5.7.2",
95
- "@smithy/node-http-handler": "^4.11.3",
96
- "@smithy/types": "^4.17.2",
90
+ "@aws-sdk/core": "^3.978.1",
91
+ "@aws-sdk/signature-v4-multi-region": "^3.996.47",
92
+ "@aws-sdk/types": "^3.974.6",
93
+ "@smithy/core": "^3.35.0",
94
+ "@smithy/fetch-http-handler": "^5.8.0",
95
+ "@smithy/node-http-handler": "^4.12.1",
96
+ "@smithy/types": "^4.19.0",
97
97
  "tslib": "^2.6.2"
98
98
  },
99
99
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/signature-v4-multi-region",
3
- "version": "3.996.46",
3
+ "version": "3.996.47",
4
4
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/signature-v4-multi-region",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -27,9 +27,9 @@
27
27
  }
28
28
  },
29
29
  "dependencies": {
30
- "@aws-sdk/types": "^3.974.5",
31
- "@smithy/signature-v4": "^5.6.12",
32
- "@smithy/types": "^4.17.2",
30
+ "@aws-sdk/types": "^3.974.6",
31
+ "@smithy/signature-v4": "^5.7.3",
32
+ "@smithy/types": "^4.19.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
35
35
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.974.5",
3
+ "version": "3.974.6",
4
4
  "description": "Types for the AWS SDK",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/types",
6
6
  "license": "Apache-2.0",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "react-native": {},
32
32
  "dependencies": {
33
- "@smithy/types": "^4.17.2",
33
+ "@smithy/types": "^4.19.0",
34
34
  "tslib": "^2.6.2"
35
35
  },
36
36
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/xml-builder",
3
- "version": "3.972.40",
3
+ "version": "3.972.41",
4
4
  "description": "XML utilities for the AWS SDK",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/xml-builder",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  "./dist-es/xml-parser": "./dist-es/xml-parser.browser"
35
35
  },
36
36
  "dependencies": {
37
- "@smithy/types": "^4.17.2",
37
+ "@smithy/types": "^4.19.0",
38
38
  "tslib": "^2.6.2"
39
39
  },
40
40
  "devDependencies": {
@@ -158,7 +158,7 @@ window.__ModuleLoader__.load({
158
158
  const SCROLLBAR_LINGER_MS = 2e3;
159
159
  /** Format complete-build metadata for the local brand badge. */
160
160
  function localBuildVersion() {
161
- return `0.1.7-alpha.1-0852938-dirty`;
161
+ return `0.1.7-alpha.1-157800d` + ({}.DSH_CLIENT_GIT_DIRTY === "true" ? "-dirty" : "");
162
162
  }
163
163
  /** Each panel row subscribes only to its own selection state. */
164
164
  function PanelRow({ id, label, wide, usePanelInfo, selectPanel, renderSlot }) {
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/bundle/tui-app/README.md
5
- README.md: 58e0ed0b4d68ad66e8ad91d57211f335e696d747
6
- README.zh.md: 5c01bc43cb57f4ca62f55ed896d852afe66282a9
5
+ README.md: 7ca6c87f5f29b0d69d3c6d0740e606bdca735047
6
+ README.zh.md: e251b01bacf00a7671aeb0d00713e7a2285d557b
@@ -40,9 +40,9 @@ On quit the app prints `dsh: session <id> saved; resume with: dsh --profile tui
40
40
 
41
41
  ### The screen
42
42
 
43
- The header names the session by its title once one is generated or set, with the id beside it. The transcript grows in the terminal's own scrollback: your prompts start with `❯` on a tinted full-width band while colour is on (attachments listed under them), assistant reasoning is dim italic under a `✻ Thinking` header above the Markdown reply, and each tool call is a card with a `◆` glyph coloured by status — yellow while it runs, green once done, red on failure — the bold tool name, the presenter headline in the link blue, a loading row while it runs, and a body folded to `toolPreviewLines` rows. The card appears when the model starts the call; the result rows float out when the tool answers. An `edit` or `write` diff card frames each run of consecutive additions in a green rounded box and each run of removals in a red one, the removed rows above the added ones. A `subagent` or `subagent_*` card draws folded as one row behind the same status-coloured `◆`, dim for a child handed to the background: while it runs, the tool name, the task description, and the requested model and `background` when the call names them; once settled, the description dimmed with `[done]`, `[started]` for a child handed to the background, or `[failed]` at the right edge. `Space` on the marked row, or `Ctrl+O`, unfolds the full card. A nonempty system prompt and each injected context — instructions, catalogs, snapshots, notices, relays, and recalls — draw as a dim `⬡` title over the first `contextPreviewLines` rows of their model-facing text, with each snapshot contribution named above its own rows; an empty system prompt and a compaction replacement are omitted. A tool card and a context block that carry more rows than they draw end on one marker: `… <n> more rows · Space expands` while the conversation's focus holds that block, and `… <n> more rows · Ctrl+O expands` otherwise. Fenced code in a reply, the file rows of a `read` card, the changed rows of an `edit` or `write` diff card — with `+` additions marked green, `-` removals red, and source text behind those signs drawn in the language the file's extension names — and the shell command of a `!` / `!!` draft, a `$ command` user-shell row (its `$` in the accent colour), and a terminal tool card, use syntax colours from a theme the terminal's own background picks, light or dark; the grammar of a language loads on the first block that asks for it, so that block draws plain and is repainted in colour a moment later, and a language with no grammar here, a terminal that reports neither 24-bit nor 256 colours, and `codeHighlight: false` each draw every block plain. Headings, links, list markers, quotes, and inline code share one cool dark-mode scale — a pale cyan, a deeper blue, and dim — so a reply sits beside a highlighted fence without contrasting hues. Streamed reasoning, reply text, and tool arguments are queued as they arrive and drawn a share per frame, about 60 frames per second by default, so a network burst spreads over `streamPaceFrames` frames instead of landing at once, and the queue never holds the model call back. Streamed reply text fades in and every word keeps its own clock: a word enters near the terminal's background color and brightens to the color it settles in over `streamFadeSteps` ticks of `streamFadeStepMs` each, so a fast stream leaves a longer trail of brightening words rather than a darker one. Streamed reasoning and a tool card float out over the same duration: they appear at a lifted color and recede to the dim italic or palette colors they settle in; a card redrawn from persisted history carries no fade, and text that has settled is never dimmed again.
43
+ The header names the session by its title once one is generated or set, with the id beside it. The transcript grows in the terminal's own scrollback: your prompts start with `❯` on a tinted full-width band while colour is on (attachments listed under them), assistant reasoning is dim italic under a `✻ Thinking` header above the Markdown reply, and each tool call is a card with a `◆` glyph coloured by status — yellow while it runs, green once done, red on failure — the bold tool name, the presenter headline in violet, a loading row while it runs, and a body folded to `toolPreviewLines` rows. The card appears when the model starts the call; the result rows float out when the tool answers. An `edit` or `write` diff card frames each run of consecutive additions in a green rounded box and each run of removals in a red one, the removed rows above the added ones. A `subagent` or `subagent_*` card draws folded as one row behind the same status-coloured `◆`, dim for a child handed to the background: while it runs, the tool name, the task description, and the requested model and `background` when the call names them; once settled, the description dimmed with `[done]`, `[started]` for a child handed to the background, or `[failed]` at the right edge. `Space` on the marked row, or `Ctrl+O`, unfolds the full card. A nonempty system prompt and each injected context — instructions, catalogs, snapshots, notices, relays, and recalls — draw as a dim `⬡` title over the first `contextPreviewLines` rows of their model-facing text, with each snapshot contribution named above its own rows; an empty system prompt and a compaction replacement are omitted. A tool card and a context block that carry more rows than they draw end on one marker: `… <n> more rows · Space expands` while the conversation's focus holds that block, and `… <n> more rows · Ctrl+O expands` otherwise. Fenced code in a reply, the file rows of a `read` card, the changed rows of an `edit` or `write` diff card — with `+` additions marked green, `-` removals red, and source text behind those signs drawn in the language the file's extension names — and the shell command of a `!` / `!!` draft, a `$ command` user-shell row (its `$` in the accent colour), and a terminal tool card, use syntax colours from a theme the terminal's own background picks, light or dark; the grammar of a language loads on the first block that asks for it, so that block draws plain and is repainted in colour a moment later, and a language with no grammar here, a terminal that reports neither 24-bit nor 256 colours, and `codeHighlight: false` each draw every block plain. Headings and list markers use warm orange, links and inline code use violet, and quotes stay dim. Streamed reasoning, reply text, and tool arguments are queued as they arrive and drawn a share per frame, about 60 frames per second by default, so a network burst spreads over `streamPaceFrames` frames instead of landing at once, and the queue never holds the model call back. Streamed reply text fades in and every word keeps its own clock: a word enters near the terminal's background color and brightens to the color it settles in over `streamFadeSteps` ticks of `streamFadeStepMs` each, so a fast stream leaves a longer trail of brightening words rather than a darker one. Streamed reasoning and a tool card float out over the same duration: they appear at a lifted color and recede to the dim italic or palette colors they settle in; a card redrawn from persisted history carries no fade, and text that has settled is never dimmed again.
44
44
 
45
- Below the transcript sit a spinner while the agent works — its label is `thinking` while the model reasons, `writing` while visible text arrives, or `calling <tool>` while a tool is streamed or still running, plus live `↑` send and `↓` receive tokens for the current model call, as compact `k` / `M` / `B` counts, growing as the stream arrives and settling on the provider usage chunk — any open prompt, a boxed follow-ups list while messages wait, an activity board of the open turn's todos and latest descendant line while either has a row — completed todo content scratched out, at most four todo rows then `+<n> more`, not a focus region, gone on `turn/end` and bind — the editor, the subagent panel, and the footer: a status bar that, unfocused, is one line built from both ends inward. The editor's caret is the terminal's own blinking bar: the app asks for that shape at start, gives your default back on quit, and draws no caret at all while the status bar or the panel holds the keyboard. The model is anchored at the left edge and is never dropped — past 20 columns it falls back to the bare model name, and only a label still too wide for that is ellipsized — and the two keys that leave the input are anchored at the right edge as `Shift+↑ read · Shift+↓ status`, or `Shift+↑ select · Shift+↓ status` while follow-ups wait, narrowing to `Shift+↑↓ nav` and dropped below 40 columns. The key facts fill whatever middle is left, in bar order: effort (`effort default` when the selection leaves reasoning to the model), the running turn's elapsed time, the context window percentage, the todo counts, and the workspace path (shortened with `~` and `…/` when long). Every segment that middle cannot hold folds into a trailing `+N`, together with the segments the unfocused line never draws — the permission preset, token usage (session totals plus the in-flight call), the goal and plan-mode markers from the projection seam, and the count of pending attachments. Compaction and model-request retries appear as notices, the same facts the browser's markers carry.
45
+ Below the transcript sit a spinner while the agent works — its label is `thinking` while the model reasons, `writing` while visible text arrives, or `calling <tool>` while a tool is streamed or still running, plus live `↑` send and `↓` receive tokens for the current model call, as compact `k` / `M` / `B` counts, growing as the stream arrives and settling on the provider usage chunk — any open prompt, a boxed follow-ups list while messages wait, an activity board of the open turn's todos and latest descendant line while either has a row — completed todo content scratched out and status glyphs colored green, yellow, or cyan, at most four todo rows then `+<n> more`, not a focus region, gone on `turn/end` and bind — the editor, the subagent panel, and the footer: a status bar that, unfocused, is one line built from both ends inward. The editor's caret is the terminal's own blinking bar: the app asks for that shape at start, gives your default back on quit, and draws no caret at all while the status bar or the panel holds the keyboard. The model and entry keys are colored; live turn, context, and todo facts use yellow, violet, and green. The model is anchored at the left edge and is never dropped — past 20 columns it falls back to the bare model name, and only a label still too wide for that is ellipsized — and the two keys that leave the input are anchored at the right edge as `Shift+↑ read · Shift+↓ status`, or `Shift+↑ select · Shift+↓ status` while follow-ups wait, narrowing to `Shift+↑↓ nav` and dropped below 40 columns. The key facts fill whatever middle is left, in bar order: effort (`effort default` when the selection leaves reasoning to the model), the running turn's elapsed time, the context window percentage, the todo counts, and the workspace path (shortened with `~` and `…/` when long). Every segment that middle cannot hold folds into a trailing `+N`, together with the segments the unfocused line never draws — the permission preset, token usage (session totals plus the in-flight call), the goal and plan-mode markers from the projection seam, and the count of pending attachments. Compaction and model-request retries appear as notices, the same facts the browser's markers carry.
46
46
 
47
47
  While the keyboard walks the conversation a framed inspector is docked directly above the editor, and the frame is the mode: it is drawn exactly while the conversation holds the keyboard. Its top rule carries an inverse ` ● READ ` chip and the focused section's heading — the section's position among the navigable blocks, the turn it belongs to, and what the section is — as in `╭ ● READ ─ 3/12 · turn 2 · bash git status · result ─╮`. Under it the block's parts draw as a numbered wrapping strip like `← 1 call · [2 result] →` when the block has more than one, the held label bracketed as well as accented so the selection is legible with no color at all; then the section's own source rows, each prefixed with `│ ` and wrapped two columns narrower, folded at `focusPreviewLines` for every section kind — a system prompt and an injected context included — with `… <n> more rows · Ctrl+G reads it` under them. The bottom rule carries the keys the conversation answers, `↑↓ sections · ←→ parts · Space folds · Ctrl+G reader · Esc input`, narrowed to `↑↓ ←→ · Space folds · Esc input` and then to `Esc input` as the terminal loses columns.
48
48
 
@@ -228,7 +228,7 @@ An approval request draws `Allow <tool>?` with the asker's reason, the logged ca
228
228
  | `liveRefreshMs` | `1000` | Period of the redraw that advances the `turn` segment and the panel's elapsed values and re-reads a stale subagent listing |
229
229
  | `streamFadeSteps` | `24` | How many ticks a fade lasts: reply text fades in, reasoning and tool cards float out, over `streamFadeSteps × streamFadeStepMs` |
230
230
  | `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` |
231
- | `streamPaceFrames` | `8` | Frames a backlog of streamed reasoning, reply text, or tool arguments takes to reach the screen; `0`, like `reducedMotion`, draws each delta as it arrives |
231
+ | `streamPaceFrames` | `8` | Frames a backlog of streamed reply text or tool arguments takes to reach the screen. Thinking still queued when its block ends, or when reply text or a tool call starts, is drawn at once; `0`, like `reducedMotion`, draws each delta as it arrives |
232
232
  | `reducedMotion` | `false` | Draw streamed text, streamed reasoning, tool cards, and the chrome in their settled colors, with no fade, no lift, and no repeating repaint |
233
233
  | `openBrowser` | `true` | Hand marked authorization pages to the local default browser |
234
234
 
@@ -305,8 +305,8 @@ The patch rides over `dsh-base`: it sets the coding persona prefix and cwd suffi
305
305
  | [`tests/editor.spec.ts`](tests/editor.spec.ts) | The terminal caret, `Shift+Left` / `Shift+Right` word navigation, and `!` / `!!` draft colour against pi-tui's editor behavior |
306
306
  | [`tests/frame.spec.ts`](tests/frame.spec.ts) | The rules, the chip, the body rows, and the legend a width holds |
307
307
  | [`tests/motion.spec.ts`](tests/motion.spec.ts) | The motion clock's levels, its repaint demand, and the lift each level draws |
308
- | [`tests/pace.spec.ts`](tests/pace.spec.ts) | The pacer's per-frame share, grapheme cuts, arrival order, flush, and clear |
309
- | [`tests/stream-pace.spec.ts`](tests/stream-pace.spec.ts) | Paced reasoning, reply text, and tool arguments in stream order, the flush at stream end and before a logged event, and reduced motion |
308
+ | [`tests/pace.spec.ts`](tests/pace.spec.ts) | The pacer's per-frame share, grapheme cuts, arrival order, flush, per-channel flush, and clear |
309
+ | [`tests/stream-pace.spec.ts`](tests/stream-pace.spec.ts) | Paced reply text and tool arguments in stream order, thinking drawn when its block ends, the flush at stream end and before a logged event, and reduced motion |
310
310
  | [`tests/toast.spec.ts`](tests/toast.spec.ts) | The transient line's box, its hold, its fade, and its early settlement |
311
311
  | [`tests/reader.spec.ts`](tests/reader.spec.ts) | The reader's geometry, its state machine, its filter, and the rows it returns |
312
312
  | [`tests/reader-screen.spec.ts`](tests/reader-screen.spec.ts) | The reader pane: its key map, the screen it fills, its re-anchoring, and its exit |
@@ -40,9 +40,9 @@ dsh tui --no-open # print sign-in URLs without opening a
40
40
 
41
41
  ### 屏幕布局
42
42
 
43
- 页眉在标题生成或设置后以标题命名会话,并在旁边显示 id。对话记录在终端自身的回滚区中增长:你的提示以 `❯` 开头,启用颜色时铺在一条通栏的着色背景带上(附件列在其下),assistant 的推理以暗色斜体显示在 `✻ Thinking` 标题之下、Markdown 回复上方,每次工具调用是一张卡片,含按状态着色的 `◆` 符号(运行中为黄色、完成为绿色、失败为红色)、粗体工具名、以链接蓝色显示的呈现器标题、运行中的一行加载标记,以及折叠到 `toolPreviewLines` 行的正文。卡片在模型开始调用时出现;结果行在工具回答后浮出。`edit` 或 `write` diff 卡片把每一段连续新增行框进绿色圆角框、每一段连续删除行框进红色圆角框,删除的旧行在上、新增的新行在下。`subagent` 与 `subagent_*` 卡片折叠时只画一行,行首是同样按状态着色的 `◆`,交给后台的子 agent 则为暗色:运行中显示工具名、任务描述,以及调用指定的模型与 `background`;结束后描述变暗,右端标出 `[done]`,交给后台的子 agent 标 `[started]`,失败标 `[failed]`。在被标记的行上按 `Space`,或按 `Ctrl+O`,即可展开完整卡片。非空的系统提示词与每一条注入的上下文——instructions、catalogs、snapshots、notices、relays 与 recalls——绘制为暗色 `⬡` 标题,其下是面向模型文本的前 `contextPreviewLines` 行,快照的每一份贡献具名写在其自身各行上方;空的系统提示词与压缩替换则省略。承载的行数多于其绘制行数的工具卡片与上下文块,结尾都是同一条标记:该块被对话记录的焦点持有时为 `… <n> more rows · Space expands`,否则为 `… <n> more rows · Ctrl+O expands`。回复中的围栏代码、`read` 卡片的文件行、`edit` 或 `write` diff 卡片的变更行——其中 `+` 新增项标为绿色、`-` 删除项标为红色,符号后的源文本按文件扩展名对应的语言绘制——以及 `!` / `!!` 草稿、用户 shell 的 `$ command` 行(其 `$` 用强调色)与终端工具卡片中的 shell 命令,都使用语法高亮,配色主题由终端自身的背景在明暗之间选定;某种语言的语法会在第一个用到它的代码块出现时才加载,因此该块先以纯文本绘制、随后被重绘为彩色;这里没有对应语法的语言、既不支持 24 位也不支持 256 色的终端,以及 `codeHighlight: false`,都会把每个代码块画成纯文本。标题、链接、列表标记、引用与行内代码共用一套暗色冷色阶——浅青、更深的蓝与暗色——因此回复能挨着高亮围栏,而不靠对比色相。流式推理、回复文字与工具参数到达时先入队,再按帧(默认约每秒 60 帧)分批绘制,因此一次网络突发会分摊到 `streamPaceFrames` 帧里,而不是一次落下,队列也从不拖慢模型调用。流式回复文字会淡入,而且每个词各走各的时钟:一个词以接近终端背景色的亮度出现,并经 `streamFadeSteps` 次、每次 `streamFadeStepMs` 提亮到它最终稳定的颜色,因此流得更快只会留下更长的一串正在提亮的词,而不会更暗。流式推理与工具卡片在同一时长内浮出:它们以抬高的颜色出现,再退回到稳定时的暗色斜体或调色板颜色;从持久化历史重绘的卡片不带淡入,已经稳定下来的文字也不会再被调暗。
43
+ 页眉在标题生成或设置后以标题命名会话,并在旁边显示 id。对话记录在终端自身的回滚区中增长:你的提示以 `❯` 开头,启用颜色时铺在一条通栏的着色背景带上(附件列在其下),assistant 的推理以暗色斜体显示在 `✻ Thinking` 标题之下、Markdown 回复上方,每次工具调用是一张卡片,含按状态着色的 `◆` 符号(运行中为黄色、完成为绿色、失败为红色)、粗体工具名、以紫色显示的呈现器标题、运行中的一行加载标记,以及折叠到 `toolPreviewLines` 行的正文。卡片在模型开始调用时出现;结果行在工具回答后浮出。`edit` 或 `write` diff 卡片把每一段连续新增行框进绿色圆角框、每一段连续删除行框进红色圆角框,删除的旧行在上、新增的新行在下。`subagent` 与 `subagent_*` 卡片折叠时只画一行,行首是同样按状态着色的 `◆`,交给后台的子 agent 则为暗色:运行中显示工具名、任务描述,以及调用指定的模型与 `background`;结束后描述变暗,右端标出 `[done]`,交给后台的子 agent 标 `[started]`,失败标 `[failed]`。在被标记的行上按 `Space`,或按 `Ctrl+O`,即可展开完整卡片。非空的系统提示词与每一条注入的上下文——instructions、catalogs、snapshots、notices、relays 与 recalls——绘制为暗色 `⬡` 标题,其下是面向模型文本的前 `contextPreviewLines` 行,快照的每一份贡献具名写在其自身各行上方;空的系统提示词与压缩替换则省略。承载的行数多于其绘制行数的工具卡片与上下文块,结尾都是同一条标记:该块被对话记录的焦点持有时为 `… <n> more rows · Space expands`,否则为 `… <n> more rows · Ctrl+O expands`。回复中的围栏代码、`read` 卡片的文件行、`edit` 或 `write` diff 卡片的变更行——其中 `+` 新增项标为绿色、`-` 删除项标为红色,符号后的源文本按文件扩展名对应的语言绘制——以及 `!` / `!!` 草稿、用户 shell 的 `$ command` 行(其 `$` 用强调色)与终端工具卡片中的 shell 命令,都使用语法高亮,配色主题由终端自身的背景在明暗之间选定;某种语言的语法会在第一个用到它的代码块出现时才加载,因此该块先以纯文本绘制、随后被重绘为彩色;这里没有对应语法的语言、既不支持 24 位也不支持 256 色的终端,以及 `codeHighlight: false`,都会把每个代码块画成纯文本。标题与列表标记使用暖橙色,链接与行内代码使用紫色,引用保持暗色。流式推理、回复文字与工具参数到达时先入队,再按帧(默认约每秒 60 帧)分批绘制,因此一次网络突发会分摊到 `streamPaceFrames` 帧里,而不是一次落下,队列也从不拖慢模型调用。流式回复文字会淡入,而且每个词各走各的时钟:一个词以接近终端背景色的亮度出现,并经 `streamFadeSteps` 次、每次 `streamFadeStepMs` 提亮到它最终稳定的颜色,因此流得更快只会留下更长的一串正在提亮的词,而不会更暗。流式推理与工具卡片在同一时长内浮出:它们以抬高的颜色出现,再退回到稳定时的暗色斜体或调色板颜色;从持久化历史重绘的卡片不带淡入,已经稳定下来的文字也不会再被调暗。
44
44
 
45
- 对话记录下方依次是 agent 工作时的旋转指示——其标签在模型推理时为 `thinking`,可见文本到达时为 `writing`,工具正在流出或仍在执行时为 `calling <tool>`,并带着当前这次模型调用的实时 `↑` 发送与 `↓` 接收 token,以紧凑的 `k` / `M` / `B` 计数,随数据流入增长,并在提供方的 usage 块到达后落定——任何打开的提示、有消息等待时的带框 follow-ups 列表、本轮 todo 与最新后代行的 activity board(有行时才绘制;已完成内容划掉,todo 最多四行其后 `+<n> more`,不是焦点区域,在 `turn/end` 与 bind 时消失)、编辑器、子 agent 面板,以及页脚:未聚焦时是一行由两端向内构建的状态栏。编辑器的光标是终端自身的闪烁竖条:应用在启动时请求这一形状,退出时把你的默认形状还回去,而状态栏或面板持有键盘期间完全不绘制光标。模型锚定在左端且永不丢弃——超过 20 列时退回到裸模型名,只有仍然过宽的标签才会被省略号截断——离开编辑器的那两个按键则锚定在右端,写作 `Shift+↑ read · Shift+↓ status`,有 follow-ups 等待时则写作 `Shift+↑ select · Shift+↓ status`,窄到一定程度收缩为 `Shift+↑↓ nav`,不足 40 列时整体丢弃。关键事实填满剩下的中间部分,按状态栏顺序排列:推理强度(选择把推理交给模型时标为 `effort default`)、进行中轮次的已用时间、上下文窗口百分比、todo 计数,以及 workspace 路径(过长时以 `~` 与 `…/` 缩短)。中间部分容纳不下的每个分段都折进末尾的 `+N`,未聚焦行从不绘制的那些分段也一并折入——权限预设、token 用量(会话合计加上进行中的这次调用)、来自投影接缝的目标与计划模式标记,以及待发送附件的数量。压缩与模型请求重试以通知形式出现,与浏览器标记承载的事实相同。
45
+ 对话记录下方依次是 agent 工作时的旋转指示——其标签在模型推理时为 `thinking`,可见文本到达时为 `writing`,工具正在流出或仍在执行时为 `calling <tool>`,并带着当前这次模型调用的实时 `↑` 发送与 `↓` 接收 token,以紧凑的 `k` / `M` / `B` 计数,随数据流入增长,并在提供方的 usage 块到达后落定——任何打开的提示、有消息等待时的带框 follow-ups 列表、本轮 todo 与最新后代行的 activity board(有行时才绘制;已完成内容划掉,状态符号以绿色、黄色或青色显示,todo 最多四行其后 `+<n> more`,不是焦点区域,在 `turn/end` 与 bind 时消失)、编辑器、子 agent 面板,以及页脚:未聚焦时是一行由两端向内构建的状态栏。编辑器的光标是终端自身的闪烁竖条:应用在启动时请求这一形状,退出时把你的默认形状还回去,而状态栏或面板持有键盘期间完全不绘制光标。模型与入口按键带有颜色;进行中的轮次、上下文与 todo 信息分别使用黄色、紫色与绿色。模型锚定在左端且永不丢弃——超过 20 列时退回到裸模型名,只有仍然过宽的标签才会被省略号截断——离开编辑器的那两个按键则锚定在右端,写作 `Shift+↑ read · Shift+↓ status`,有 follow-ups 等待时则写作 `Shift+↑ select · Shift+↓ status`,窄到一定程度收缩为 `Shift+↑↓ nav`,不足 40 列时整体丢弃。关键事实填满剩下的中间部分,按状态栏顺序排列:推理强度(选择把推理交给模型时标为 `effort default`)、进行中轮次的已用时间、上下文窗口百分比、todo 计数,以及 workspace 路径(过长时以 `~` 与 `…/` 缩短)。中间部分容纳不下的每个分段都折进末尾的 `+N`,未聚焦行从不绘制的那些分段也一并折入——权限预设、token 用量(会话合计加上进行中的这次调用)、来自投影接缝的目标与计划模式标记,以及待发送附件的数量。压缩与模型请求重试以通知形式出现,与浏览器标记承载的事实相同。
46
46
 
47
47
  键盘在对话记录中移动时,编辑器正上方停靠着一个带边框的检视面板,边框即模式:它恰好在对话记录持有键盘时绘制。其顶边线带有一个反白的 ` ● READ ` 徽标与当前聚焦小节的标题——该小节在可导航块中的位置、所属轮次,以及这是哪一种小节——例如 `╭ ● READ ─ 3/12 · turn 2 · bash git status · result ─╮`。其下在块含多个部分时,把这些部分绘制成形如 `← 1 call · [2 result] →` 的带编号、会折行的选择行,被持有的标签除强调色外还加上方括号,因此完全无颜色时选择仍然可读;再往下是该小节自身的源文本行,每行以 `│ ` 起头并按窄两列换行,对每一种小节——含系统提示词与注入的上下文——都折叠到 `focusPreviewLines` 行,其下写出 `… <n> more rows · Ctrl+G reads it`。底边线列出对话记录所应答的按键 `↑↓ sections · ←→ parts · Space folds · Ctrl+G reader · Esc input`,随着终端列数减少收缩为 `↑↓ ←→ · Space folds · Esc input`,再收缩为 `Esc input`。
48
48
 
@@ -228,7 +228,7 @@ follow-ups 面板持有键盘时:
228
228
  | `liveRefreshMs` | `1000` | 重绘周期:推进 `turn` 分段与面板中的已用时间,并重新读取已过期的子 agent 列表 |
229
229
  | `streamFadeSteps` | `24` | 一次淡入或浮出持续多少拍:回复文字淡入,推理与工具卡片浮出,时长为 `streamFadeSteps × streamFadeStepMs` |
230
230
  | `streamFadeStepMs` | `16` | 一帧的时长:淡入或浮出的一拍、仍在变化时的重绘周期,也是逐帧绘制流式文字的周期;总时长为 `streamFadeSteps × streamFadeStepMs` |
231
- | `streamPaceFrames` | `8` | 积压的流式推理、回复文字或工具参数要经过多少帧才全部上屏;`0` 与 `reducedMotion` 一样,收到即绘制 |
231
+ | `streamPaceFrames` | `8` | 积压的流式回复文字或工具参数要经过多少帧才全部上屏。思考块结束时,或回复文字或工具调用开始时,仍在队列中的思考立即画出;`0` 与 `reducedMotion` 一样,收到即绘制 |
232
232
  | `reducedMotion` | `false` | 以稳定颜色绘制流式文本、流式推理、工具卡片与应用自身的边框装饰,不做淡入、不做抬亮,也不重复重绘 |
233
233
  | `openBrowser` | `true` | 把被标记的授权页面交给本地默认浏览器 |
234
234
 
@@ -305,8 +305,8 @@ runner 等待完整应用就绪(`ctx.get('loader')?.await()`),并在核心
305
305
  | [`tests/editor.spec.ts`](tests/editor.spec.ts) | 对照 pi-tui 编辑器行为验证终端光标、`Shift+Left` / `Shift+Right` 词导航,以及 `!` / `!!` 草稿着色 |
306
306
  | [`tests/frame.spec.ts`](tests/frame.spec.ts) | 边框线、徽标、正文行,以及某个宽度容纳得下的按键提示 |
307
307
  | [`tests/motion.spec.ts`](tests/motion.spec.ts) | 动效时钟的各个级别、它对重绘的要求,以及每一级所绘的抬亮 |
308
- | [`tests/pace.spec.ts`](tests/pace.spec.ts) | 节拍器的每帧份额、按字素切分、到达顺序、flush 与 clear |
309
- | [`tests/stream-pace.spec.ts`](tests/stream-pace.spec.ts) | 按流顺序分批绘制的推理、回复文字与工具参数,流结束时与已记录事件前的 flush,以及 reducedMotion |
308
+ | [`tests/pace.spec.ts`](tests/pace.spec.ts) | 节拍器的每帧份额、按字素切分、到达顺序、flush、按通道 flush 与 clear |
309
+ | [`tests/stream-pace.spec.ts`](tests/stream-pace.spec.ts) | 按流顺序分批绘制的回复文字与工具参数,思考块结束时画出思考,流结束时与已记录事件前的 flush,以及 reducedMotion |
310
310
  | [`tests/toast.spec.ts`](tests/toast.spec.ts) | 临时提示行的方框、其保持、其淡出与其提前结算 |
311
311
  | [`tests/reader.spec.ts`](tests/reader.spec.ts) | 阅读器的几何布局、其状态机、其过滤,以及它返回的各行 |
312
312
  | [`tests/reader-screen.spec.ts`](tests/reader-screen.spec.ts) | 阅读器面板:其按键映射、它铺满的屏幕、其重新锚定与其退出 |
@@ -2391,8 +2391,8 @@ const SGR = {
2391
2391
  underline: ["4", "24"],
2392
2392
  strikethrough: ["9", "29"],
2393
2393
  accent: ["36", "39"],
2394
- heading: ["38;5;117", "39"],
2395
- link: ["38;5;75", "39"],
2394
+ heading: ["38;5;215", "39"],
2395
+ link: ["38;5;141", "39"],
2396
2396
  success: ["32", "39"],
2397
2397
  warning: ["33", "39"],
2398
2398
  error: ["31", "39"],
@@ -4589,6 +4589,29 @@ var StreamPacer = class {
4589
4589
  this.credit = 0;
4590
4590
  for (const entry of entries) entry.release(entry.text);
4591
4591
  }
4592
+ /**
4593
+ * Release every queued entry of one channel now, and keep every other
4594
+ * entry in arrival order. A finished thinking block uses this so its
4595
+ * remainder is drawn before later reply text is paced.
4596
+ * @param channel - the channel to release.
4597
+ * @returns whether any entry of that channel was queued.
4598
+ */
4599
+ flushChannel(channel) {
4600
+ const pending = this.entries.splice(0);
4601
+ const kept = [];
4602
+ const release = [];
4603
+ let backlog = 0;
4604
+ for (const entry of pending) if (entry.channel === channel) release.push(entry);
4605
+ else {
4606
+ kept.push(entry);
4607
+ backlog += entry.text.length;
4608
+ }
4609
+ this.entries.push(...kept);
4610
+ this.backlog = backlog;
4611
+ if (this.entries.length === 0) this.credit = 0;
4612
+ for (const entry of release) entry.release(entry.text);
4613
+ return release.length > 0;
4614
+ }
4592
4615
  /** Drop everything queued without releasing it. */
4593
4616
  clear() {
4594
4617
  this.entries.length = 0;
@@ -6538,21 +6561,26 @@ function middleFacts(facts, hidden, room) {
6538
6561
  * the entry keys reserved at the right edge, and the key facts filling
6539
6562
  * whatever middle is left, every segment they cannot hold folded into `+N`.
6540
6563
  * @param segments - the segments in bar order.
6541
- * @param palette - the palette the line is dimmed with.
6564
+ * @param palette - the palette that distinguishes the model, live facts, and entry keys.
6542
6565
  * @param width - terminal columns the line must fit.
6543
6566
  * @param queue - whether follow-ups are drawn, which rewrites Shift+↑.
6544
- * @returns one dim line.
6567
+ * @returns one line with colored key facts and dim secondary facts.
6545
6568
  */
6546
6569
  function unfocusedLine(segments, palette, width, queue) {
6547
6570
  const [anchor, ...rest] = segments;
6548
6571
  const model = anchorLabel(anchor);
6549
6572
  const hint = entryHint(width, queue);
6550
6573
  const reserved = hint === "" ? 0 : visibleWidth(hint) + HINT_GAP;
6551
- const facts = rest.filter((segment) => KEY_SEGMENT_IDS.has(segment.id)).map((segment) => segment.label);
6574
+ const facts = rest.filter((segment) => KEY_SEGMENT_IDS.has(segment.id)).map((segment) => {
6575
+ if (segment.id === "turn") return palette.warning(segment.label);
6576
+ if (segment.id === "context") return palette.link(segment.label);
6577
+ if (segment.id === "todo") return palette.success(segment.label);
6578
+ return palette.dim(segment.label);
6579
+ });
6552
6580
  const drawn = middleFacts(facts, rest.length - facts.length, width - visibleWidth(model) - reserved);
6553
- const left = palette.dim([model, ...drawn].filter((token) => token !== "").join(SEPARATOR$2));
6581
+ const left = [model === "" ? "" : palette.accent(model), ...drawn].filter((token) => token !== "").join(palette.dim(SEPARATOR$2));
6554
6582
  if (hint === "") return fitLine(left, width);
6555
- return fitLine(`${left}${" ".repeat(Math.max(1, width - visibleWidth(left) - visibleWidth(hint)))}${palette.dim(hint)}`, width);
6583
+ return fitLine(`${left}${" ".repeat(Math.max(1, width - visibleWidth(left) - visibleWidth(hint)))}${palette.link(hint)}`, width);
6556
6584
  }
6557
6585
  /**
6558
6586
  * The first detail row of a printed segment, or the summary of a page segment.
@@ -7296,7 +7324,7 @@ function activityTurnEndStatus(reason) {
7296
7324
  return turnEndNotice(reason) ?? "done";
7297
7325
  }
7298
7326
  /**
7299
- * Render the board. Todo rows lead with the shared status glyphs; completed
7327
+ * Render the board. Todo rows lead with status-colored glyphs; completed
7300
7328
  * content is dim and scratched out. A list past the cap ends on `+<n> more`.
7301
7329
  * The descendant line is last. An empty view returns the empty string so the
7302
7330
  * slot can unmount.
@@ -7309,7 +7337,8 @@ function renderActivityBoard(view, render) {
7309
7337
  const lines = [];
7310
7338
  for (const row of view.todos) {
7311
7339
  const content = paintTodoContent(row.content, row.status, (text) => palette.dim(palette.strikethrough(text)));
7312
- lines.push(fadedLine(`${TODO_GLYPH[row.status]} ${content}`, render.todoFades?.get(row.content)));
7340
+ const paint = row.status === "completed" ? palette.success : row.status === "in_progress" ? palette.warning : palette.accent;
7341
+ lines.push(fadedLine(`${paint(TODO_GLYPH[row.status])} ${content}`, render.todoFades?.get(row.content)));
7313
7342
  }
7314
7343
  if (view.hidden > 0) lines.push(palette.dim(`+${String(view.hidden)} more`));
7315
7344
  if (view.subagent !== void 0) lines.push(fadedLine(palette.dim(view.subagent), render.subagentFade));
@@ -12782,6 +12811,13 @@ var TuiApp = class {
12782
12811
  this.updateFadeTicker();
12783
12812
  }
12784
12813
  /**
12814
+ * Draw thinking that is still queued. The pacer would otherwise keep
12815
+ * releasing it after the model has moved on to reply text or a tool call.
12816
+ */
12817
+ finishReasoningPace() {
12818
+ if (this.pacer?.flushChannel("reasoning") === true) this.tui.requestRender();
12819
+ }
12820
+ /**
12785
12821
  * Take one visible text delta: the block draws it and the tail of that same
12786
12822
  * block ages it. The tail is created with the first delta of a message, so
12787
12823
  * a block rebuilt from history or committed from the log never carries one.
@@ -13053,23 +13089,26 @@ var TuiApp = class {
13053
13089
  switch (chunk.type) {
13054
13090
  case "text-delta":
13055
13091
  if (chunk.text !== "") {
13092
+ this.finishReasoningPace();
13093
+ this.setStreamActivity("writing");
13056
13094
  this.pace("text", chunk.text, (text) => {
13057
13095
  this.appendStreamedText(text);
13058
- this.setStreamActivity("writing");
13059
13096
  });
13060
13097
  this.noteStreamedChars(chunk.text.length);
13061
13098
  }
13062
13099
  break;
13063
13100
  case "reasoning-delta":
13064
13101
  if (chunk.text !== "") {
13102
+ this.setStreamActivity("thinking");
13065
13103
  this.pace("reasoning", chunk.text, (text) => {
13066
13104
  this.appendStreamedReasoning(text);
13067
- this.setStreamActivity("thinking");
13068
13105
  });
13069
13106
  this.noteStreamedChars(chunk.text.length);
13070
13107
  }
13071
13108
  break;
13072
13109
  case "tool-call-delta":
13110
+ this.finishReasoningPace();
13111
+ this.noteStreamedToolCall(chunk);
13073
13112
  this.pace(`tool:${chunk.id}:${chunk.name ?? ""}`, chunk.argumentsDelta, (text) => {
13074
13113
  this.onToolCallDelta({
13075
13114
  ...chunk,
@@ -13082,7 +13121,17 @@ var TuiApp = class {
13082
13121
  this.applyLiveUsage(chunk.usage);
13083
13122
  break;
13084
13123
  case "block-start":
13124
+ if (chunk.blockType === "text") {
13125
+ this.finishReasoningPace();
13126
+ this.setStreamActivity("writing");
13127
+ } else if (chunk.blockType === "tool-call") {
13128
+ this.finishReasoningPace();
13129
+ if (!isCallingActivity(this.loaderActivity)) this.setLoaderActivity(callingActivity(void 0));
13130
+ } else if (chunk.blockType !== "reasoning") this.finishReasoningPace();
13131
+ break;
13085
13132
  case "block-end":
13133
+ if (chunk.block.type === "reasoning") this.finishReasoningPace();
13134
+ break;
13086
13135
  case "finish": break;
13087
13136
  /* v8 ignore next -- closed-union exhaustiveness guard */
13088
13137
  default: assertNever(chunk, "tui stream chunk");
@@ -13347,17 +13396,35 @@ var TuiApp = class {
13347
13396
  this.loader.setMessage(suffix === "" ? this.loaderActivity : `${this.loaderActivity} ${suffix}`);
13348
13397
  }
13349
13398
  /**
13350
- * Mount or refresh a tool card from a stream delta: the name as soon as
13351
- * the model sends one, then the presenter headline once the arguments
13352
- * parse as JSON.
13399
+ * Label the spinner for a tool-call delta before its card is paced.
13400
+ * A known name becomes `calling <name>` and is remembered until the call
13401
+ * settles; a delta that has not named a tool yet says `calling`, and does
13402
+ * not replace a label that already names one.
13353
13403
  * @param chunk - one `tool-call-delta` of the live assistant stream.
13354
13404
  */
13355
- onToolCallDelta(chunk) {
13356
- const name = chunk.name === "" ? void 0 : chunk.name ?? this.toolBlocks.get(chunk.id)?.name;
13405
+ noteStreamedToolCall(chunk) {
13406
+ const name = this.streamedToolName(chunk);
13357
13407
  if (name !== void 0) {
13358
13408
  if (chunk.id !== "") this.pendingToolNames.set(chunk.id, name);
13359
13409
  this.setLoaderActivity(callingActivity(name));
13360
13410
  } else if (!isCallingActivity(this.loaderActivity)) this.setLoaderActivity(callingActivity(void 0));
13411
+ }
13412
+ /**
13413
+ * The tool name a live delta carries, or the name already drawn for that call.
13414
+ * @param chunk - one `tool-call-delta` of the live assistant stream.
13415
+ * @returns the name, or undefined while the model has not sent one.
13416
+ */
13417
+ streamedToolName(chunk) {
13418
+ return chunk.name === "" ? void 0 : chunk.name ?? this.toolBlocks.get(chunk.id)?.name;
13419
+ }
13420
+ /**
13421
+ * Mount or refresh a tool card from a stream delta: the name as soon as
13422
+ * the model sends one, then the presenter headline once the arguments
13423
+ * parse as JSON.
13424
+ * @param chunk - one `tool-call-delta` of the live assistant stream.
13425
+ */
13426
+ onToolCallDelta(chunk) {
13427
+ const name = this.streamedToolName(chunk);
13361
13428
  if (chunk.id === "") return;
13362
13429
  const argumentsJson = (this.toolStreamArgs.get(chunk.id) ?? "") + chunk.argumentsDelta;
13363
13430
  this.toolStreamArgs.set(chunk.id, argumentsJson);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@songtonyli/dsh-cli",
3
- "version": "0.1.37",
3
+ "version": "0.1.39",
4
4
  "description": "The dsh terminal agent: an interactive TUI over the DeepSeek Harness, with its whole Node runtime bundled in one install.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -21,24 +21,24 @@
21
21
  "@aws-crypto/supports-web-crypto": "5.2.0",
22
22
  "@aws-crypto/util": "5.2.0",
23
23
  "@aws-sdk/client-bedrock-runtime": "3.1048.0",
24
- "@aws-sdk/core": "3.978.0",
25
- "@aws-sdk/credential-provider-env": "3.972.71",
26
- "@aws-sdk/credential-provider-http": "3.972.73",
27
- "@aws-sdk/credential-provider-ini": "3.973.16",
28
- "@aws-sdk/credential-provider-login": "3.972.78",
29
- "@aws-sdk/credential-provider-node": "3.972.83",
30
- "@aws-sdk/credential-provider-process": "3.972.71",
31
- "@aws-sdk/credential-provider-sso": "3.973.15",
32
- "@aws-sdk/credential-provider-web-identity": "3.972.77",
33
- "@aws-sdk/eventstream-handler-node": "3.972.34",
34
- "@aws-sdk/middleware-eventstream": "3.972.29",
35
- "@aws-sdk/middleware-websocket": "3.972.53",
36
- "@aws-sdk/nested-clients": "3.997.45",
37
- "@aws-sdk/signature-v4-multi-region": "3.996.46",
24
+ "@aws-sdk/core": "3.978.1",
25
+ "@aws-sdk/credential-provider-env": "3.972.72",
26
+ "@aws-sdk/credential-provider-http": "3.972.74",
27
+ "@aws-sdk/credential-provider-ini": "3.973.17",
28
+ "@aws-sdk/credential-provider-login": "3.972.79",
29
+ "@aws-sdk/credential-provider-node": "3.972.84",
30
+ "@aws-sdk/credential-provider-process": "3.972.72",
31
+ "@aws-sdk/credential-provider-sso": "3.973.16",
32
+ "@aws-sdk/credential-provider-web-identity": "3.972.78",
33
+ "@aws-sdk/eventstream-handler-node": "3.972.35",
34
+ "@aws-sdk/middleware-eventstream": "3.972.30",
35
+ "@aws-sdk/middleware-websocket": "3.972.54",
36
+ "@aws-sdk/nested-clients": "3.997.46",
37
+ "@aws-sdk/signature-v4-multi-region": "3.996.47",
38
38
  "@aws-sdk/token-providers": "3.1048.0",
39
- "@aws-sdk/types": "3.974.5",
39
+ "@aws-sdk/types": "3.974.6",
40
40
  "@aws-sdk/util-locate-window": "3.965.10",
41
- "@aws-sdk/xml-builder": "3.972.40",
41
+ "@aws-sdk/xml-builder": "3.972.41",
42
42
  "@aws/lambda-invoke-store": "0.3.0",
43
43
  "@babel/code-frame": "7.29.7",
44
44
  "@babel/helper-validator-identifier": "7.29.7",