@zhushanwen/subagent-core 0.2.0
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 +114 -0
- package/dist/chunk-3VOERJPJ.js +22 -0
- package/dist/chunk-A4IVZWVX.js +31 -0
- package/dist/execution/engine/engines/zcode/constants.cjs +54 -0
- package/dist/execution/engine/engines/zcode/constants.d.cts +31 -0
- package/dist/execution/engine/engines/zcode/constants.d.ts +31 -0
- package/dist/execution/engine/engines/zcode/constants.js +22 -0
- package/dist/execution/engine/engines/zcode/reader.cjs +276 -0
- package/dist/execution/engine/engines/zcode/reader.d.cts +20 -0
- package/dist/execution/engine/engines/zcode/reader.d.ts +20 -0
- package/dist/execution/engine/engines/zcode/reader.js +239 -0
- package/dist/execution/engine/paths.cjs +55 -0
- package/dist/execution/engine/paths.d.cts +8 -0
- package/dist/execution/engine/paths.d.ts +8 -0
- package/dist/execution/engine/paths.js +26 -0
- package/dist/execution/relay-env.cjs +62 -0
- package/dist/execution/relay-env.d.cts +33 -0
- package/dist/execution/relay-env.d.ts +33 -0
- package/dist/execution/relay-env.js +20 -0
- package/dist/index.cjs +1852 -0
- package/dist/index.d.cts +1184 -0
- package/dist/index.d.ts +1184 -0
- package/dist/index.js +1810 -0
- package/dist/types-BxyAidGf.d.cts +875 -0
- package/dist/types-BxyAidGf.d.ts +875 -0
- package/package.json +99 -0
- package/src/__tests__/agent-opts-resolver-schema-prompt.test.ts +142 -0
- package/src/__tests__/append-system-prompt-assembly.test.ts +242 -0
- package/src/__tests__/builtin-workflows-structure.test.ts +180 -0
- package/src/__tests__/derive-closed-display-parity.test.ts +93 -0
- package/src/__tests__/fr4-get-state-handshake.test.ts +125 -0
- package/src/__tests__/fr8-orphan-recovery.test.ts +259 -0
- package/src/__tests__/m2-append-content-probe.test.ts +73 -0
- package/src/__tests__/manifest-store.test.ts +368 -0
- package/src/__tests__/record-store-cache.test.ts +335 -0
- package/src/__tests__/record-store-index.test.ts +560 -0
- package/src/__tests__/record-store-last-line.test.ts +129 -0
- package/src/__tests__/review-fix-loop-script.test.ts +288 -0
- package/src/__tests__/review-fix-loop-utils.test.ts +2377 -0
- package/src/__tests__/robustness-low-batch1.test.ts +286 -0
- package/src/__tests__/robustness-medium-batch1.test.ts +69 -0
- package/src/__tests__/robustness-medium-batch2.test.ts +65 -0
- package/src/__tests__/robustness-medium-batch3.test.ts +30 -0
- package/src/__tests__/robustness-medium-batch4.test.ts +358 -0
- package/src/__tests__/session-runner.test.ts +69 -0
- package/src/__tests__/smoke.test.ts +9 -0
- package/src/__tests__/stream-sink.test.ts +203 -0
- package/src/core/__tests__/host-services.test.ts +144 -0
- package/src/core/__tests__/logger.test.ts +78 -0
- package/src/core/__tests__/notify-ports.test.ts +104 -0
- package/src/core/host-services.ts +97 -0
- package/src/core/logger.ts +47 -0
- package/src/core/notify-ports.ts +126 -0
- package/src/execution/__tests__/__fixtures__/notifier-golden-snapshots.json +53 -0
- package/src/execution/__tests__/__fixtures__/truncline.snapshot.json +1 -0
- package/src/execution/__tests__/agent-result-mapper.test.ts +150 -0
- package/src/execution/__tests__/alive-store.test.ts +147 -0
- package/src/execution/__tests__/ask-user-transit-e2e.test.ts +490 -0
- package/src/execution/__tests__/channel-registry-handshake.test.ts +242 -0
- package/src/execution/__tests__/chat-engine-routing.test.ts +610 -0
- package/src/execution/__tests__/chatmode-first-round-closure-spawn.test.ts +190 -0
- package/src/execution/__tests__/concurrency-pool.test.ts +250 -0
- package/src/execution/__tests__/config.test.ts +302 -0
- package/src/execution/__tests__/delivery-methods.test.ts +424 -0
- package/src/execution/__tests__/dialog-queue.test.ts +299 -0
- package/src/execution/__tests__/epipe-fallback.test.ts +241 -0
- package/src/execution/__tests__/execute-and-await-worktree.test.ts +243 -0
- package/src/execution/__tests__/execute-nesting.test.ts +323 -0
- package/src/execution/__tests__/execute-options-mapper.test.ts +200 -0
- package/src/execution/__tests__/execution-record.test.ts +1394 -0
- package/src/execution/__tests__/explicit-agent-ref-guard.test.ts +171 -0
- package/src/execution/__tests__/finalize-record.test.ts +367 -0
- package/src/execution/__tests__/finalized-marker.test.ts +104 -0
- package/src/execution/__tests__/format-schema-instruction.test.ts +169 -0
- package/src/execution/__tests__/gc-timer.test.ts +184 -0
- package/src/execution/__tests__/get-record-for-action-restart.test.ts +254 -0
- package/src/execution/__tests__/helpers/mock-extension-api.ts +30 -0
- package/src/execution/__tests__/helpers/spawn-mock.ts +242 -0
- package/src/execution/__tests__/host-mode.test.ts +87 -0
- package/src/execution/__tests__/lifecycle-manager-lock.test.ts +211 -0
- package/src/execution/__tests__/lifecycle-manager.test.ts +383 -0
- package/src/execution/__tests__/lifecycle-predicates.test.ts +116 -0
- package/src/execution/__tests__/manifest-parentid.test.ts +117 -0
- package/src/execution/__tests__/model-resolver.test.ts +465 -0
- package/src/execution/__tests__/nested-visibility-env-propagation.test.ts +287 -0
- package/src/execution/__tests__/nested-visibility.test.ts +325 -0
- package/src/execution/__tests__/output-collector.test.ts +358 -0
- package/src/execution/__tests__/path-encoding.test.ts +104 -0
- package/src/execution/__tests__/pi-invocation.test.ts +134 -0
- package/src/execution/__tests__/record-store.test.ts +1057 -0
- package/src/execution/__tests__/records-cwd-isolation.test.ts +91 -0
- package/src/execution/__tests__/recursive-visibility-baseline.test.ts +339 -0
- package/src/execution/__tests__/recursive-visibility-env.test.ts +273 -0
- package/src/execution/__tests__/relay-env.test.ts +42 -0
- package/src/execution/__tests__/resource-policy.test.ts +109 -0
- package/src/execution/__tests__/rpc-mode.test.ts +89 -0
- package/src/execution/__tests__/run-and-finalize-chatmode.test.ts +267 -0
- package/src/execution/__tests__/run-spawn-chatmode-settled.test.ts +253 -0
- package/src/execution/__tests__/run-spawn-edges.test.ts +687 -0
- package/src/execution/__tests__/run-spawn-integration.test.ts +933 -0
- package/src/execution/__tests__/run-spawn-resume.test.ts +322 -0
- package/src/execution/__tests__/run-spawn-rpc-mode.test.ts +196 -0
- package/src/execution/__tests__/run-spawn-stdout-callback-throw.test.ts +199 -0
- package/src/execution/__tests__/session-context-resolver.test.ts +167 -0
- package/src/execution/__tests__/session-file-gc.test.ts +293 -0
- package/src/execution/__tests__/session-reconstructor.test.ts +379 -0
- package/src/execution/__tests__/session-runner-epipe.test.ts +178 -0
- package/src/execution/__tests__/session-runner-schema-env.test.ts +350 -0
- package/src/execution/__tests__/spawn-args.test.ts +445 -0
- package/src/execution/__tests__/spawn-event-adapter-rpc.test.ts +189 -0
- package/src/execution/__tests__/spawn-event-adapter.test.ts +167 -0
- package/src/execution/__tests__/spawn-worktree-guidance.test.ts +207 -0
- package/src/execution/__tests__/spawned-children.test.ts +92 -0
- package/src/execution/__tests__/start-sync-model-guard.test.ts +150 -0
- package/src/execution/__tests__/stdin-writer.test.ts +462 -0
- package/src/execution/__tests__/stream-sink-retirement.test.ts +261 -0
- package/src/execution/__tests__/subagent-service-abort.test.ts +60 -0
- package/src/execution/__tests__/subagent-service-message-close.test.ts +629 -0
- package/src/execution/__tests__/subagent-service-parent-guard.test.ts +180 -0
- package/src/execution/__tests__/subagent-service.test.ts +788 -0
- package/src/execution/__tests__/subprocess-agent-runner-routing.test.ts +310 -0
- package/src/execution/__tests__/subprocess-agent-runner.test.ts +612 -0
- package/src/execution/__tests__/temp-prompt.test.ts +53 -0
- package/src/execution/__tests__/timeout-integration.test.ts +615 -0
- package/src/execution/__tests__/tombstone-store.test.ts +73 -0
- package/src/execution/__tests__/turn-limiter-semantics.test.ts +194 -0
- package/src/execution/__tests__/turn-limiter.test.ts +65 -0
- package/src/execution/__tests__/ui-channels.test.ts +187 -0
- package/src/execution/__tests__/ui-interaction-model.test.ts +67 -0
- package/src/execution/__tests__/ui-request-handler-factory.test.ts +369 -0
- package/src/execution/__tests__/ui-request-handler.test.ts +204 -0
- package/src/execution/__tests__/ui-request-observability.test.ts +113 -0
- package/src/execution/__tests__/ui-request-queue.test.ts +133 -0
- package/src/execution/__tests__/worktree-manager.test.ts +633 -0
- package/src/execution/__tests__/worktree-pid-registration.integration.test.ts +229 -0
- package/src/execution/__tests__/worktree-reconcile.integration.test.ts +181 -0
- package/src/execution/__tests__/worktree-registry.test.ts +199 -0
- package/src/execution/agent-registry.ts +199 -0
- package/src/execution/agent-result-mapper.ts +90 -0
- package/src/execution/alive-store.ts +119 -0
- package/src/execution/argv-mirror.ts +113 -0
- package/src/execution/best-effort.ts +38 -0
- package/src/execution/channel-registry-access.ts +144 -0
- package/src/execution/concurrency-pool.ts +116 -0
- package/src/execution/config.ts +165 -0
- package/src/execution/dialog-queue.ts +330 -0
- package/src/execution/engine/__tests__/common/data-dir.test.ts +78 -0
- package/src/execution/engine/__tests__/common/errors.test.ts +132 -0
- package/src/execution/engine/__tests__/common/event-journal.test.ts +177 -0
- package/src/execution/engine/__tests__/common/kill-chain.test.ts +192 -0
- package/src/execution/engine/__tests__/common/nesting-guard.test.ts +81 -0
- package/src/execution/engine/__tests__/common/persona-router.test.ts +123 -0
- package/src/execution/engine/__tests__/common/pool-manager.test.ts +154 -0
- package/src/execution/engine/__tests__/common/schema-emulation.test.ts +128 -0
- package/src/execution/engine/__tests__/conformance/__fixtures__/pi-golden-events.json +28 -0
- package/src/execution/engine/__tests__/conformance/agent-event-invariants.ts +141 -0
- package/src/execution/engine/__tests__/conformance/contract.abort.test.ts +109 -0
- package/src/execution/engine/__tests__/conformance/contract.agent-events.test.ts +101 -0
- package/src/execution/engine/__tests__/conformance/contract.probe.test.ts +77 -0
- package/src/execution/engine/__tests__/conformance/contract.read-degradation.test.ts +104 -0
- package/src/execution/engine/__tests__/conformance/engine-conformance.live.test.ts +201 -0
- package/src/execution/engine/__tests__/conformance/golden-replay.pi.test.ts +76 -0
- package/src/execution/engine/__tests__/conformance/golden-replay.zcode.test.ts +79 -0
- package/src/execution/engine/__tests__/engine-discovery.test.ts +87 -0
- package/src/execution/engine/__tests__/model-prompt.test.ts +197 -0
- package/src/execution/engine/__tests__/paths.test.ts +39 -0
- package/src/execution/engine/__tests__/registry.test.ts +120 -0
- package/src/execution/engine/__tests__/routing.test.ts +231 -0
- package/src/execution/engine/common/data-dir.ts +66 -0
- package/src/execution/engine/common/errors.ts +183 -0
- package/src/execution/engine/common/event-journal.ts +254 -0
- package/src/execution/engine/common/journal-replay.ts +62 -0
- package/src/execution/engine/common/kill-chain.ts +221 -0
- package/src/execution/engine/common/nesting-guard.ts +50 -0
- package/src/execution/engine/common/persona-router.ts +108 -0
- package/src/execution/engine/common/pool-manager.ts +226 -0
- package/src/execution/engine/common/schema-emulation.ts +189 -0
- package/src/execution/engine/common/session-view-projection.ts +51 -0
- package/src/execution/engine/engine-discovery.ts +65 -0
- package/src/execution/engine/engines/pi/__tests__/pi-engine.test.ts +469 -0
- package/src/execution/engine/engines/pi/__tests__/reader.test.ts +155 -0
- package/src/execution/engine/engines/pi/__tests__/task-spec-mapper.test.ts +164 -0
- package/src/execution/engine/engines/pi/pi-engine.ts +415 -0
- package/src/execution/engine/engines/pi/reader.ts +48 -0
- package/src/execution/engine/engines/pi/registration.ts +35 -0
- package/src/execution/engine/engines/pi/task-spec-mapper.ts +100 -0
- package/src/execution/engine/engines/zcode/__tests__/__fixtures__/zcode-golden-spawn.json +39 -0
- package/src/execution/engine/engines/zcode/__tests__/launcher.test.ts +150 -0
- package/src/execution/engine/engines/zcode/__tests__/parser.test.ts +246 -0
- package/src/execution/engine/engines/zcode/__tests__/preparer.test.ts +228 -0
- package/src/execution/engine/engines/zcode/__tests__/reader.test.ts +210 -0
- package/src/execution/engine/engines/zcode/__tests__/registration.test.ts +71 -0
- package/src/execution/engine/engines/zcode/__tests__/zcode-engine.live.test.ts +127 -0
- package/src/execution/engine/engines/zcode/__tests__/zcode-engine.test.ts +580 -0
- package/src/execution/engine/engines/zcode/constants.ts +43 -0
- package/src/execution/engine/engines/zcode/golden-sample.ts +39 -0
- package/src/execution/engine/engines/zcode/launcher.ts +161 -0
- package/src/execution/engine/engines/zcode/parser.ts +436 -0
- package/src/execution/engine/engines/zcode/preparer.ts +363 -0
- package/src/execution/engine/engines/zcode/reader.ts +381 -0
- package/src/execution/engine/engines/zcode/registration.ts +37 -0
- package/src/execution/engine/engines/zcode/zcode-engine.ts +658 -0
- package/src/execution/engine/host-task-spec.ts +47 -0
- package/src/execution/engine/model-prompt.ts +158 -0
- package/src/execution/engine/paths.ts +42 -0
- package/src/execution/engine/port.ts +153 -0
- package/src/execution/engine/registry.ts +133 -0
- package/src/execution/engine/routing.ts +218 -0
- package/src/execution/engine/types.ts +309 -0
- package/src/execution/execute-options-mapper.ts +115 -0
- package/src/execution/execution-record.ts +984 -0
- package/src/execution/finalize-record.ts +254 -0
- package/src/execution/finalized-marker.ts +70 -0
- package/src/execution/get-state-handshake.ts +104 -0
- package/src/execution/host-mode.ts +56 -0
- package/src/execution/idle-gc.ts +47 -0
- package/src/execution/lifecycle-manager.ts +513 -0
- package/src/execution/lifecycle-predicates.ts +65 -0
- package/src/execution/manifest-store.ts +256 -0
- package/src/execution/model-config-service.ts +250 -0
- package/src/execution/model-resolver.ts +248 -0
- package/src/execution/notifier.ts +372 -0
- package/src/execution/notify-ledger.ts +580 -0
- package/src/execution/output-collector.ts +228 -0
- package/src/execution/path-encoding.ts +60 -0
- package/src/execution/pi-invocation.ts +120 -0
- package/src/execution/record-entry.ts +132 -0
- package/src/execution/record-store.ts +1265 -0
- package/src/execution/relay-env.ts +37 -0
- package/src/execution/session-context-resolver.ts +64 -0
- package/src/execution/session-file-gc.ts +120 -0
- package/src/execution/session-pending.ts +170 -0
- package/src/execution/session-reconstructor.ts +678 -0
- package/src/execution/session-runner.ts +1789 -0
- package/src/execution/sessions-index.ts +304 -0
- package/src/execution/spawn-event-adapter.ts +363 -0
- package/src/execution/stdin-writer.ts +198 -0
- package/src/execution/stream-sink.ts +126 -0
- package/src/execution/subagent-service.ts +2268 -0
- package/src/execution/subprocess-agent-runner.ts +317 -0
- package/src/execution/temp-prompt.ts +62 -0
- package/src/execution/tombstone-store.ts +72 -0
- package/src/execution/turn-limiter.ts +102 -0
- package/src/execution/types.ts +1023 -0
- package/src/execution/ui-channels.ts +216 -0
- package/src/execution/ui-interaction-model.ts +48 -0
- package/src/execution/ui-request-handler-factory.ts +243 -0
- package/src/execution/ui-request-observability.ts +81 -0
- package/src/execution/ui-request-queue.ts +184 -0
- package/src/execution/worktree-manager.ts +688 -0
- package/src/execution/worktree-registry.ts +279 -0
- package/src/index.ts +87 -0
- package/src/orchestration/__tests__/__fixtures__/worker-template.snapshot.txt +349 -0
- package/src/orchestration/__tests__/agent-call-catch-fallback.test.ts +202 -0
- package/src/orchestration/__tests__/agent-call-stream.test.ts +152 -0
- package/src/orchestration/__tests__/args-validator.test.ts +143 -0
- package/src/orchestration/__tests__/config-loader.test.ts +503 -0
- package/src/orchestration/__tests__/error-recovery-handlers.test.ts +809 -0
- package/src/orchestration/__tests__/error-recovery-postmessage-defense.test.ts +404 -0
- package/src/orchestration/__tests__/error-recovery-serialize-failed-result.test.ts +56 -0
- package/src/orchestration/__tests__/error-recovery-workflow-call.test.ts +166 -0
- package/src/orchestration/__tests__/execute-agent-call.test.ts +451 -0
- package/src/orchestration/__tests__/launcher-nested-workflow.test.ts +600 -0
- package/src/orchestration/__tests__/lifecycle-runid-injection.test.ts +96 -0
- package/src/orchestration/__tests__/lifecycle.test.ts +659 -0
- package/src/orchestration/__tests__/non-cloneable-return-e2e.test.ts +95 -0
- package/src/orchestration/__tests__/review-fix-loop-scriptpath-failfast.test.ts +183 -0
- package/src/orchestration/__tests__/script-lint.test.ts +831 -0
- package/src/orchestration/__tests__/skill-discovery.test.ts +210 -0
- package/src/orchestration/__tests__/test-mocks.ts +197 -0
- package/src/orchestration/__tests__/worker-exit-without-result.test.ts +368 -0
- package/src/orchestration/__tests__/worker-host.test.ts +120 -0
- package/src/orchestration/__tests__/worker-returnmeta-passthrough.test.ts +164 -0
- package/src/orchestration/__tests__/worker-script-builder-runtime.test.ts +563 -0
- package/src/orchestration/__tests__/worker-script-builder.test.ts +309 -0
- package/src/orchestration/__tests__/worker-script-template-snapshot.test.ts +129 -0
- package/src/orchestration/__tests__/workflow-nesting-e2e.test.ts +317 -0
- package/src/orchestration/__tests__/workflow-script-lint-memo.test.ts +110 -0
- package/src/orchestration/agent-opts-resolver.ts +174 -0
- package/src/orchestration/args-validator.ts +127 -0
- package/src/orchestration/config-loader.ts +316 -0
- package/src/orchestration/error-recovery.ts +1018 -0
- package/src/orchestration/execute-agent-call.ts +256 -0
- package/src/orchestration/launcher.ts +455 -0
- package/src/orchestration/lifecycle.ts +399 -0
- package/src/orchestration/models/__tests__/budget.test.ts +307 -0
- package/src/orchestration/models/agent-call.ts +83 -0
- package/src/orchestration/models/budget.ts +118 -0
- package/src/orchestration/models/ports.ts +164 -0
- package/src/orchestration/models/run-runtime.ts +104 -0
- package/src/orchestration/models/run-spec.ts +83 -0
- package/src/orchestration/models/run-state.ts +44 -0
- package/src/orchestration/models/trace.ts +183 -0
- package/src/orchestration/models/types.ts +301 -0
- package/src/orchestration/models/workflow-run.ts +254 -0
- package/src/orchestration/models/workflow-script-registry.ts +35 -0
- package/src/orchestration/models/workflow-script.ts +117 -0
- package/src/orchestration/script-lint.ts +766 -0
- package/src/orchestration/skill-discovery.ts +135 -0
- package/src/orchestration/worker-handle.ts +115 -0
- package/src/orchestration/worker-host.ts +98 -0
- package/src/orchestration/worker-script-builder.ts +421 -0
- package/src/orchestration/workflow-files.ts +85 -0
- package/src/orchestration/workflow-script-registry-impl.ts +133 -0
- package/src/shared/__tests__/agent-ref.test.ts +34 -0
- package/src/shared/__tests__/meta-parser.test.ts +304 -0
- package/src/shared/__tests__/model-ref.test.ts +306 -0
- package/src/shared/__tests__/resource-discovery-manifest-cache.test.ts +288 -0
- package/src/shared/__tests__/resource-discovery.test.ts +749 -0
- package/src/shared/__tests__/resource-meta.test.ts +51 -0
- package/src/shared/__tests__/schema-jsonify.test.ts +81 -0
- package/src/shared/__tests__/timer-delay.test.ts +61 -0
- package/src/shared/agent-event.ts +13 -0
- package/src/shared/agent-ref.ts +57 -0
- package/src/shared/meta-parser.ts +261 -0
- package/src/shared/model-ref.ts +286 -0
- package/src/shared/resource-discovery.ts +835 -0
- package/src/shared/resource-meta.ts +65 -0
- package/src/shared/schema-env.ts +44 -0
- package/src/shared/schema-jsonify.ts +58 -0
- package/src/shared/timer-delay.ts +54 -0
- package/src/shared/xml-injection.ts +35 -0
- package/workflows/README.md +81 -0
- package/workflows/_shared/agent-refs.cjs +40 -0
- package/workflows/chain.js +137 -0
- package/workflows/map-reduce.js +180 -0
- package/workflows/parallel.js +154 -0
- package/workflows/review-fix-loop-utils.cjs +1542 -0
- package/workflows/review-fix-loop.js +1605 -0
- package/workflows/scatter-gather.js +184 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"label":"plain-ascii-long","maxWidth":40,"text":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","expected":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa…"},{"label":"cjk-long","maxWidth":33,"text":"你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界","expected":"你好世界你好世界你好世界你好世界…"},{"label":"sgr-mixed-10k","maxWidth":60,"text":"汉字测试 data \u001b[0m\u001b[38;5;9m汉字测试 \u001b[mbeta \u001b[0mγλυφ \u001b[0malpha alpha \u001b[31m\u001b[38;5;9malpha \u001b[mdata \u001b[Kalpha \u001b[0mbeta beta \u001b[K→arrow beta \u001b[1;32m\u001b[38;5;9mdata alpha 汉字测试 alpha \u001b[31m\u001b]0;title\u0007γλυφ alpha →arrow \u001b[38;5;9m\u001b[0malpha γλυφ 汉字测试 汉字测试 beta beta →arrow →arrow 汉字测试 beta \u001b[38;5;9m\u001b[K→arrow \u001b[0malpha beta data \u001b[0m\u001b[38;5;9m\u001b[K\u001b[38;5;9mbeta 汉字测试 \u001b[m\u001b]0;title\u0007\u001b[38;5;9m→arrow beta 汉字测试 \u001b[31mdata \u001b[1;32m\u001b[K\u001b[1;32mγλυφ alpha \u001b[0m\u001b[1;32m汉字测试 汉字测试 \u001b[Kbeta γλυφ γλυφ \u001b[1;32m\u001b[1;32mbeta \u001b[38;5;9m\u001b[K\u001b[1;32m\u001b[0m\u001b[0m\u001b]0;title\u0007→arrow 汉字测试 \u001b[m→arrow 汉字测试 \u001b[38;5;9mbeta \u001b]0;title\u0007→arrow →arrow data \u001b[31m\u001b[0mdata data →arrow γλυφ \u001b[K→arrow 汉字测试 γλυφ \u001b[Kalpha \u001b]0;title\u0007\u001b[31mdata →arrow data \u001b[1;32m\u001b[31m\u001b[0mdata data \u001b[38;5;9m汉字测试 汉字测试 \u001bZ\u001b[K\u001b[K\u001b[0m\u001b[0mγλυφ alpha \u001b[31malpha 汉字测试 alpha alpha \u001b]0;title\u0007\u001b[38;5;9malpha data data data beta \u001b[31m\u001b[1;32mdata →arrow \u001b[1;32m\u001b[K\u001b[mbeta →arrow \u001b[0m→arrow γλυφ beta data data γλυφ →arrow beta data 汉字测试 beta 汉字测试 \u001b[K→arrow →arrow alpha \u001b[mbeta data data \u001b[mγλυφ alpha →arrow 汉字测试 γλυφ γλυφ \u001b[31m\u001b[31m\u001b]0;title\u0007→arrow alpha \u001b[1;32mbeta γλυφ →arrow \u001b[K\u001b[38;5;9m\u001b[0m\u001b[1;32mγλυφ γλυφ \u001b[38;5;9m→arrow \u001b[31m\u001b[1;32m\u001b[1;32mγλυφ 汉字测试 alpha data \u001b]0;title\u0007\u001b[38;5;9malpha \u001b[38;5;9m→arrow 汉字测试 beta \u001b[0mbeta beta \u001b[38;5;9mγλυφ \u001b[mdata \u001b[mbeta \u001b[1;32mdata \u001b[mbeta γλυφ \u001b[m\u001b[31mbeta γλυφ 汉字测试 alpha data \u001b[K\u001b[0m汉字测试 beta alpha 汉字测试 \u001bZ\u001b[0m\u001b[38;5;9m\u001b[mγλυφ alpha γλυφ γλυφ 汉字测试 alpha alpha beta \u001b]0;title\u0007→arrow \u001b[38;5;9m汉字测试 \u001b[0m汉字测试 data \u001b[38;5;9m→arrow 汉字测试 \u001b[m\u001b[0mdata γλυφ γλυφ →arrow data data \u001b[31malpha →arrow data \u001b[K汉字测试 γλυφ \u001b[31m\u001b]0;title\u0007alpha \u001b[1;32m汉字测试 →arrow \u001bZdata \u001b[38;5;9mbeta →arrow 汉字测试 γλυφ \u001b[Kγλυφ beta alpha data γλυφ 汉字测试 beta beta data γλυφ →arrow alpha \u001b[31malpha \u001b[0m\u001b[38;5;9malpha \u001bZ汉字测试 \u001b[38;5;9malpha γλυφ γλυφ \u001bZ汉字测试 beta \u001b[38;5;9mbeta →arrow γλυφ \u001b[K→arrow data \u001b[Kγλυφ beta \u001b[1;32mγλυφ alpha γλυφ beta beta beta 汉字测试 \u001b[1;32mγλυφ \u001b[K汉字测试 beta →arrow γλυφ γλυφ 汉字测试 汉字测试 γλυφ 汉字测试 \u001b[31m汉字测试 \u001b[K\u001b[31mbeta \u001b[0malpha beta \u001b[38;5;9m\u001b[K\u001b[K汉字测试 alpha \u001b[1;32m→arrow 汉字测试 \u001b[38;5;9mdata 汉字测试 \u001b]0;title\u0007\u001b[mbeta \u001b[m\u001b[0mγλυφ γλυφ γλυφ →arrow \u001b[1;32m汉字测试 γλυφ beta \u001b]0;title\u0007\u001b[K→arrow beta 汉字测试 data 汉字测试 beta \u001bZ\u001b[31m\u001b[31m\u001b[Kγλυφ 汉字测试 data 汉字测试 beta beta \u001b[m\u001b]0;title\u0007\u001b[m\u001b[38;5;9malpha →arrow \u001b[m\u001b[m汉字测试 \u001b[1;32m\u001b[1;32m汉字测试 \u001b[mbeta \u001b[31mdata →arrow beta γλυφ beta \u001b[m→arrow \u001b[31m\u001b[mγλυφ \u001b[38;5;9mdata \u001b[m\u001b[0m\u001b]0;title\u0007\u001b[1;32m→arrow beta \u001b[m\u001b[m\u001b[K→arrow alpha \u001b]0;title\u0007\u001b[31mγλυφ γλυφ alpha data 汉字测试 beta \u001bZ\u001b[m\u001b[1;32mγλυφ 汉字测试 \u001bZ\u001b[K\u001bZalpha γλυφ →arrow 汉字测试 alpha γλυφ \u001bZ\u001b[m汉字测试 →arrow \u001b[0mbeta data \u001b[K汉字测试 alpha data beta \u001b[1;32m\u001b[1;32m\u001b[38;5;9m\u001b[1;32m\u001b[38;5;9m\u001b[38;5;9m汉字测试 \u001b[Kγλυφ \u001b[K→arrow γλυφ 汉字测试 →arrow \u001b[0m\u001bZ\u001b[38;5;9m\u001b[K\u001b[38;5;9mγλυφ →arrow γλυφ 汉字测试 beta \u001b[38;5;9m\u001b[31mbeta \u001b[31m\u001b]0;title\u0007汉字测试 →arrow beta 汉字测试 \u001b[31mdata 汉字测试 \u001b[38;5;9mbeta data γλυφ →arrow \u001bZdata \u001b[m→arrow \u001b[31m汉字测试 →arrow \u001bZ\u001b]0;title\u0007alpha \u001b[mγλυφ beta \u001b[m\u001b[1;32mγλυφ \u001b[1;32m\u001b[1;32m→arrow 汉字测试 beta 汉字测试 汉字测试 汉字测试 γλυφ \u001b[38;5;9mγλυφ \u001b[1;32m\u001b[m\u001b[0mbeta \u001b[0m\u001b[38;5;9mbeta γλυφ →arrow beta \u001b[mγλυφ \u001b[1;32m\u001b[malpha \u001b[38;5;9mdata 汉字测试 →arrow →arrow \u001b]0;title\u0007\u001b[31mγλυφ \u001b[mdata beta alpha \u001b[Kγλυφ data data data γλυφ 汉字测试 alpha \u001b]0;title\u0007\u001b[38;5;9m\u001b[38;5;9m\u001b[38;5;9m\u001b[31m\u001b[31m→arrow \u001b[K\u001b[Kdata \u001b[1;32m\u001b[0mdata →arrow data \u001b[1;32m\u001bZ\u001b[m\u001b[0m汉字测试 →arrow beta \u001b[0m汉字测试 alpha \u001b[38;5;9m\u001b]0;title\u0007\u001b[38;5;9mbeta \u001b[31m\u001b[1;32m→arrow \u001b]0;title\u0007beta beta \u001b[38;5;9m汉字测试 γλυφ \u001b[mγλυφ \u001b[31m→arrow \u001b[K\u001b[1;32m汉字测试 \u001b[K汉字测试 \u001b[0malpha \u001b[1;32m\u001b[0m→arrow 汉字测试 beta beta data γλυφ \u001b[Kγλυφ \u001b[0m\u001b[1;32malpha 汉字测试 \u001b[1;32m\u001b[K\u001b[38;5;9m\u001b[0mγλυφ alpha alpha \u001b[m\u001b[0m\u001bZγλυφ data 汉字测试 \u001b[38;5;9m→arrow data beta \u001b[31mdata γλυφ \u001b[38;5;9mbeta \u001bZ→arrow alpha →arrow \u001b[31m\u001b[0m\u001b[mγλυφ \u001b[m\u001b[Kbeta data →arrow \u001b[K\u001b[31mbeta γλυφ →arrow data \u001b[31m\u001b[31malpha \u001b[31m\u001b[0malpha →arrow 汉字测试 \u001b]0;title\u0007\u001b[malpha \u001b[31m\u001b[31mdata \u001b]0;title\u0007\u001b[0malpha \u001b[0m汉字测试 \u001b[31mγλυφ 汉字测试 \u001bZ\u001bZ\u001b[38;5;9mbeta →arrow 汉字测试 \u001b[38;5;9m\u001b[31m→arrow \u001b]0;title\u0007beta 汉字测试 \u001b]0;title\u0007\u001b]0;title\u0007\u001b]0;title\u0007→arrow 汉字测试 \u001b[31m\u001b[malpha data 汉字测试 data beta 汉字测试 →arrow γλυφ \u001b[0m\u001b[mγλυφ beta \u001b[38;5;9malpha \u001b[0m\u001b[mγλυφ \u001b[K汉字测试 \u001b[1;32m\u001b[31malpha alpha \u001b[m\u001bZγλυφ 汉字测试 γλυφ alpha \u001b[31mdata γλυφ \u001b[1;32mdata \u001b[malpha \u001b[Kγλυφ \u001b[31m→arrow beta \u001b[K\u001b[K\u001b[1;32malpha \u001b]0;title\u0007\u001b[31m\u001b[1;32mbeta \u001b[Kbeta γλυφ alpha γλυφ \u001b[38;5;9malpha \u001b[31mdata \u001b]0;title\u0007beta \u001b[K\u001b[m\u001b[K\u001b[K汉字测试 \u001b[K\u001b[38;5;9mdata alpha \u001b[Kdata \u001b[mdata γλυφ beta \u001b[38;5;9m\u001b[mγλυφ \u001b[mbeta \u001b[m\u001bZ\u001b[38;5;9m\u001b]0;title\u0007\u001b[K\u001b[malpha 汉字测试 \u001b[38;5;9mγλυφ beta →arrow beta →arrow γλυφ \u001b[31m→arrow \u001b[38;5;9mγλυφ alpha 汉字测试 beta \u001b[31malpha \u001b[Kalpha alpha \u001b[m\u001b[38;5;9m\u001b[1;32m\u001b[0m→arrow data \u001b]0;title\u0007汉字测试 \u001b[38;5;9mbeta \u001b[mbeta \u001b[0m汉字测试 alpha 汉字测试 \u001b[mdata γλυφ \u001bZ\u001b[1;32mbeta data alpha γλυφ data \u001b[malpha \u001b[38;5;9mbeta beta alpha \u001b[0m\u001b[31m\u001b[m\u001b[31m汉字测试 \u001b[K\u001b[38;5;9mdata \u001b[38;5;9malpha alpha \u001bZ\u001b]0;title\u0007beta \u001b[0m\u001bZ汉字测试 γλυφ γλυφ γλυφ \u001b[malpha \u001b]0;title\u0007汉字测试 汉字测试 \u001b[0m\u001b[Kbeta \u001b[mbeta beta γλυφ 汉字测试 \u001b[1;32m\u001b[Kdata →arrow \u001b[31m→arrow γλυφ γλυφ 汉字测试 \u001b]0;title\u0007\u001b[m\u001b[1;32malpha data \u001bZalpha \u001b]0;title\u0007\u001b[K→arrow \u001b[m\u001b[mγλυφ \u001b[m\u001b[31m\u001b[1;32m→arrow \u001b[31m\u001b[m→arrow 汉字测试 →arrow beta alpha γλυφ \u001b[Kbeta \u001bZ\u001b[38;5;9mdata γλυφ γλυφ alpha \u001b[31m\u001b[K\u001b[1;32m\u001b[m\u001b]0;title\u0007data →arrow alpha →arrow beta beta data beta 汉字测试 alpha \u001b[31malpha beta \u001b[0m\u001b[38;5;9m\u001b[31m\u001b[38;5;9m→arrow \u001b[K\u001b[Kalpha beta \u001b[31m\u001b[1;32mdata \u001b[1;32m\u001b[K\u001b[m\u001b]0;title\u0007\u001b[31m\u001b[38;5;9m\u001b[Kbeta →arrow γλυφ \u001bZalpha γλυφ →arrow →arrow \u001b[m\u001b[K\u001b[1;32m\u001b[malpha 汉字测试 \u001b[mbeta →arrow γλυφ alpha \u001b[0m\u001b[0malpha beta \u001b[m\u001b[1;32m\u001b[1;32malpha →arrow γλυφ \u001b[38;5;9m\u001b[0m\u001b[1;32m\u001bZ→arrow \u001b[38;5;9m\u001b[31malpha alpha 汉字测试 →arrow data beta data \u001b]0;title\u0007γλυφ \u001b[K\u001b[0m→arrow γλυφ alpha \u001b[31m\u001b[m→arrow \u001b]0;title\u0007\u001b[38;5;9m\u001b[0m\u001b[malpha 汉字测试 \u001b[31mγλυφ →arrow \u001b[Kalpha alpha beta \u001b[38;5;9mbeta →arrow data γλυφ beta beta \u001b[38;5;9malpha \u001b[38;5;9m\u001b[m汉字测试 \u001b[m\u001b]0;title\u0007alpha \u001b[K\u001b[38;5;9m\u001b[mγλυφ \u001b[Kγλυφ data 汉字测试 \u001b]0;title\u0007\u001b[0mγλυφ →arrow →arrow →arrow \u001b[1;32mγλυφ 汉字测试 汉字测试 \u001b[0m\u001b[m\u001b[38;5;9mdata 汉字测试 \u001b[1;32m\u001b[0m\u001b[31mγλυφ \u001b]0;title\u0007alpha \u001b[38;5;9m\u001b[31m\u001b[31m\u001b[31malpha 汉字测试 alpha \u001b[0m\u001bZbeta →arrow \u001b[31malpha alpha \u001b[0mdata beta alpha alpha data →arrow beta γλυφ \u001b[31m\u001b[K\u001b[1;32mγλυφ \u001b[1;32m\u001b[1;32m汉字测试 data 汉字测试 beta beta \u001b[m\u001b[Kγλυφ data \u001b[mγλυφ 汉字测试 γλυφ \u001b[m\u001b]0;title\u0007→arrow →arrow \u001b[0m\u001b[mbeta beta 汉字测试 →arrow γλυφ γλυφ \u001b[38;5;9m→arrow \u001b[1;32mγλυφ \u001b]0;title\u0007data \u001b[1;32mbeta \u001b[31m→arrow 汉字测试 alpha data →arrow data \u001b[0m汉字测试 \u001b[m\u001b]0;title\u0007beta alpha \u001b[38;5;9m汉字测试 \u001b[mγλυφ beta \u001b[1;32m\u001b[malpha 汉字测试 \u001b[1;32m\u001b[0m\u001b[31m\u001bZalpha →arrow alpha \u001b[1;32mdata beta data →arrow \u001b]0;title\u0007beta data γλυφ alpha \u001b[38;5;9malpha alpha data \u001bZ\u001b[38;5;9m汉字测试 alpha \u001bZ\u001b[38;5;9mdata alpha →arrow →arrow \u001b[31m\u001b[Kbeta alpha γλυφ beta \u001b[mbeta \u001b[31mγλυφ \u001bZ\u001bZ\u001b[K\u001bZbeta alpha \u001b[1;32m\u001b[31m\u001b]0;title\u0007beta \u001b]0;title\u0007\u001b[1;32malpha beta beta \u001b[0m\u001bZγλυφ alpha \u001b[mdata \u001b[38;5;9m汉字测试 beta \u001b[38;5;9malpha \u001b[Kdata \u001b[0m汉字测试 γλυφ →arrow data \u001b[31mdata γλυφ \u001b[1;32m汉字测试 alpha \u001b]0;title\u0007alpha \u001b[38;5;9m\u001bZalpha 汉字测试 alpha beta γλυφ \u001b[38;5;9m\u001b[Kdata \u001b[1;32malpha data \u001b]0;title\u0007\u001b[m\u001b[1;32m\u001b[K\u001b[38;5;9m\u001b[38;5;9mγλυφ \u001b[m→arrow →arrow \u001b[1;32mγλυφ \u001b[31mdata →arrow \u001b[malpha \u001b]0;title\u0007\u001b[K\u001b[0mbeta 汉字测试 \u001b[31m→arrow \u001b[K\u001b]0;title\u0007alpha beta \u001b]0;title\u0007\u001b[0m汉字测试 beta →arrow beta γλυφ →arrow beta \u001b[m\u001b[K\u001b]0;title\u0007\u001b[m\u001b[0m\u001b[1;32m\u001b[38;5;9mbeta γλυφ data alpha γλυφ \u001b[mγλυφ \u001b[1;32m汉字测试 →arrow 汉字测试 汉字测试 \u001b]0;title\u0007beta alpha \u001b[0mbeta data \u001b[0malpha \u001b[31m\u001b[38;5;9m→arrow data \u001b[31m\u001b]0;title\u0007\u001b[malpha γλυφ \u001b[31m\u001b[38;5;9m\u001bZ\u001b]0;title\u0007alpha \u001b[38;5;9m\u001b[mdata \u001b[31m→arrow alpha \u001b[Kbeta \u001bZ\u001b[0m\u001b[38;5;9m\u001b[m\u001b[1;32mγλυφ alpha data \u001b[31mbeta data \u001b[1;32mbeta →arrow \u001b[mbeta \u001b[31m\u001b[31m\u001b[m\u001b[1;32mdata γλυφ \u001b[38;5;9m→arrow 汉字测试 alpha alpha \u001b[K汉字测试 \u001b[m\u001b[m\u001b[38;5;9m\u001b[31m\u001b[m\u001b[K\u001b[mγλυφ data \u001b[31m\u001b[38;5;9m→arrow 汉字测试 \u001b[38;5;9mdata data alpha \u001b[38;5;9m汉字测试 \u001b[38;5;9m\u001b[31m\u001b[31mbeta \u001b[Kdata data data 汉字测试 γλυφ \u001b]0;title\u0007γλυφ \u001b[m\u001b[38;5;9m汉字测试 data 汉字测试 \u001b[Kγλυφ \u001b]0;title\u0007data \u001b[mdata γλυφ \u001b[1;32m\u001b[31mbeta 汉字测试 \u001b[38;5;9m→arrow \u001b[1;32m汉字测试 beta →arrow γλυφ beta γλυφ alpha \u001b[38;5;9m\u001bZbeta \u001b[38;5;9m\u001b[1;32m\u001b[K→arrow \u001b[38;5;9m\u001b[K\u001b[0mγλυφ alpha beta \u001b[1;32mbeta beta →arrow →arrow 汉字测试 γλυφ alpha \u001b[31mdata \u001b]0;title\u0007→arrow \u001b[38;5;9m\u001b[1;32m\u001b]0;title\u0007\u001b[0m→arrow beta \u001b[Kdata data data beta data data γλυφ γλυφ 汉字测试 \u001b[mγλυφ \u001bZ汉字测试 \u001b]0;title\u0007\u001b]0;title\u0007\u001b[0m\u001bZ\u001b[31mγλυφ data \u001b[38;5;9m\u001b[Kdata γλυφ γλυφ \u001b[0m\u001b[K\u001b[0m→arrow alpha \u001b[K\u001b]0;title\u0007data \u001b[38;5;9mdata →arrow \u001b[m\u001b[38;5;9m汉字测试 \u001bZbeta beta \u001b[Kalpha \u001b[38;5;9m\u001b[0m\u001bZ\u001b[31m\u001b[38;5;9m→arrow \u001b[0m→arrow →arrow →arrow →arrow \u001b[0m汉字测试 data \u001b[1;32m→arrow alpha →arrow \u001b[38;5;9m汉字测试 \u001b[38;5;9m\u001b[38;5;9mdata \u001b]0;title\u0007\u001b]0;title\u0007\u001b]0;title\u0007\u001b[38;5;9mγλυφ \u001b]0;title\u0007\u001b[1;32mγλυφ 汉字测试 \u001b[malpha \u001b[0m汉字测试 beta \u001bZ\u001b[K\u001b[K→arrow \u001b[38;5;9mγλυφ γλυφ \u001b[1;32mγλυφ →arrow \u001bZdata γλυφ \u001bZ\u001b[K\u001bZ\u001bZγλυφ \u001b]0;title\u0007\u001bZ\u001b[38;5;9m\u001b[1;32m\u001b[1;32m\u001b[m\u001b[mdata beta \u001b[K\u001bZ\u001b[38;5;9m\u001bZalpha \u001b[0m\u001b[K→arrow 汉字测试 beta beta alpha \u001b[m汉字测试 beta →arrow \u001b[38;5;9malpha data →arrow 汉字测试 γλυφ \u001b[38;5;9m\u001b[m\u001b]0;title\u0007\u001b]0;title\u0007\u001b[Kbeta beta \u001bZγλυφ \u001b[1;32m\u001b[31m\u001b[31m\u001b[38;5;9mγλυφ \u001bZdata \u001b[0m\u001b[31mγλυφ data \u001b[0m\u001b[31m→arrow \u001b[38;5;9malpha beta \u001bZdata \u001b[Kdata \u001b[1;32mdata 汉字测试 γλυφ \u001b[K\u001b]0;title\u0007→arrow 汉字测试 \u001b[38;5;9m\u001b[K\u001b[38;5;9mbeta \u001b[38;5;9m\u001b[31m→arrow →arrow \u001b[31m\u001b[31m\u001b]0;title\u0007→arrow 汉字测试 \u001b[malpha beta \u001b[38;5;9mγλυφ data γλυφ \u001b]0;title\u0007\u001b[m\u001bZalpha beta \u001b[0m\u001b[0m汉字测试 \u001b[mdata 汉字测试 \u001b[0m→arrow \u001b[0mγλυφ data data \u001b[0m\u001bZ\u001b[m\u001b[0mbeta γλυφ alpha \u001b[K汉字测试 \u001b[0m\u001bZ\u001b[38;5;9mγλυφ beta \u001b[Kalpha γλυφ 汉字测试 \u001b[31mγλυφ γλυφ beta beta \u001b[1;32m→arrow 汉字测试 \u001b[38;5;9m\u001b]0;title\u0007data \u001b[K\u001b[31mdata γλυφ \u001b]0;title\u0007alpha γλυφ \u001b[1;32m\u001b[Kalpha data data \u001b[1;32m\u001b[m→arrow 汉字测试 →arrow beta γλυφ \u001b[38;5;9m\u001bZalpha \u001b[Kalpha \u001bZ\u001b[m\u001b[0m\u001b[38;5;9m→arrow \u001b[m→arrow beta \u001b[Kbeta \u001b[38;5;9m\u001b[Kdata beta 汉字测试 \u001b[Kγλυφ \u001b[38;5;9m\u001b]0;title\u0007γλυφ \u001b[0m汉字测试 汉字测试 \u001b[31mdata \u001b[1;32m\u001b[m\u001b[Kdata \u001b[K\u001b]0;title\u0007\u001b[1;32mbeta \u001b[0mdata \u001b[31m汉字测试 γλυφ →arrow data γλυφ alpha →arrow \u001b[0m\u001b[38;5;9mbeta beta \u001b[malpha 汉字测试 data →arrow γλυφ \u001b[1;32mdata alpha beta \u001b[31m\u001b[Kbeta →arrow data \u001b[31m\u001b[38;5;9mdata \u001b[38;5;9malpha \u001b[Kγλυφ \u001b]0;title\u0007→arrow data \u001b[1;32m\u001b[31m\u001b[0m\u001b[1;32m\u001b[38;5;9m→arrow 汉字测试 beta γλυφ 汉字测试 →arrow \u001b[mdata alpha \u001b[mγλυφ →arrow \u001b[31mγλυφ beta \u001b[1;32mdata \u001b[0m→arrow beta \u001b[31m\u001b[31m\u001b[1;32m汉字测试 data data γλυφ ","expected":"汉字测试 data \u001b[0m\u001b[38;5;9m汉字测试 \u001b[mbeta \u001b[0mγλυφ \u001b[0malpha alpha \u001b[31m\u001b[38;5;9malpha \u001b[mdata \u001b[K…"},{"label":"sgr-mixed-10k-narrow","maxWidth":12,"text":"\u001b[31mdata 汉字测试 beta data \u001b[31mγλυφ \u001b[1;32m\u001b[0m\u001b[m\u001b[m\u001b[31m\u001b[1;32mdata \u001b[mγλυφ →arrow →arrow alpha \u001b[1;32m\u001bZ\u001b[31m汉字测试 \u001bZ→arrow data \u001b[K\u001b[K\u001b[31mbeta \u001b[38;5;9m\u001b[K\u001b[38;5;9mγλυφ γλυφ alpha γλυφ →arrow γλυφ →arrow data \u001b[0m\u001b[Kγλυφ →arrow data \u001bZdata beta \u001b[31m\u001b[mγλυφ \u001b[38;5;9mdata beta γλυφ γλυφ alpha γλυφ alpha \u001b]0;title\u0007\u001b[mdata →arrow data 汉字测试 \u001b[0m→arrow \u001b[0mγλυφ \u001b[1;32m汉字测试 \u001b[31m\u001b[31m\u001b[malpha \u001b[0mdata \u001b]0;title\u0007\u001b]0;title\u0007data γλυφ 汉字测试 beta data \u001b[1;32mdata 汉字测试 \u001b[Kbeta \u001b]0;title\u0007data \u001bZγλυφ 汉字测试 beta γλυφ →arrow 汉字测试 →arrow γλυφ \u001b[38;5;9m\u001b]0;title\u0007→arrow \u001b]0;title\u0007\u001b[31mdata beta \u001b[31m→arrow data beta beta 汉字测试 data data γλυφ \u001b[malpha 汉字测试 γλυφ →arrow \u001b[31m\u001b[0m\u001b]0;title\u0007→arrow →arrow \u001b[0mdata 汉字测试 →arrow alpha \u001b[38;5;9m\u001b[31mbeta beta data \u001b[0malpha \u001b[1;32mdata \u001b[0m\u001b[0mγλυφ \u001b[38;5;9m\u001b[Kdata \u001b[31m→arrow \u001b[mbeta \u001b[31mdata \u001b[0m\u001b[0m\u001bZalpha beta \u001b[1;32malpha \u001b[m汉字测试 data \u001b[0m\u001b[0m→arrow \u001b[0m\u001b]0;title\u0007\u001b[m\u001b[31m\u001b[1;32mdata data →arrow data beta \u001bZbeta \u001b[0mdata \u001bZbeta γλυφ 汉字测试 alpha γλυφ γλυφ \u001b[0mdata data \u001b[Kalpha 汉字测试 \u001b[0m\u001b[mγλυφ alpha beta \u001b[38;5;9mbeta \u001b[0mbeta →arrow \u001b[0mbeta \u001b[38;5;9m\u001b[0mdata data data data γλυφ data data →arrow γλυφ \u001b[1;32mbeta alpha γλυφ beta \u001b[1;32mγλυφ \u001b[K\u001b[1;32malpha \u001b[1;32malpha alpha γλυφ γλυφ \u001b]0;title\u0007beta \u001b]0;title\u0007data data \u001b]0;title\u0007beta \u001b[1;32m\u001b[38;5;9m\u001b[1;32m\u001b[1;32m→arrow data alpha \u001b[1;32m\u001bZalpha 汉字测试 \u001b[31m汉字测试 \u001b[K\u001b[0m→arrow data →arrow \u001b[Kdata →arrow data \u001b[K\u001b[K汉字测试 alpha γλυφ \u001b[0m→arrow \u001b[31m汉字测试 \u001b[31m\u001bZ\u001b[38;5;9mdata data →arrow γλυφ →arrow \u001b[Kdata 汉字测试 \u001b[0mdata \u001b[Kdata data data \u001b[38;5;9mbeta \u001bZdata 汉字测试 →arrow \u001b[38;5;9m\u001b[0mγλυφ \u001bZγλυφ alpha \u001b[m\u001b[m\u001b[K汉字测试 beta \u001b[0malpha alpha γλυφ \u001b[mdata \u001b[31mbeta \u001b[Kbeta \u001b[0m→arrow γλυφ 汉字测试 \u001b[1;32mγλυφ alpha \u001b[31mdata alpha →arrow →arrow 汉字测试 \u001b[1;32malpha \u001b]0;title\u0007data \u001bZdata γλυφ \u001b[31mdata \u001b]0;title\u0007γλυφ alpha \u001b[1;32mdata data beta \u001b]0;title\u0007\u001b[0m\u001b[31m\u001b[Kbeta →arrow alpha →arrow →arrow data data \u001b[K\u001b[0m\u001b[31malpha \u001b[0m\u001b[m汉字测试 beta \u001b[0m→arrow alpha →arrow alpha beta alpha \u001b[m\u001b[31m→arrow →arrow 汉字测试 \u001b[31m→arrow 汉字测试 data 汉字测试 \u001b[38;5;9m\u001b[31mγλυφ \u001b[1;32mγλυφ →arrow 汉字测试 汉字测试 汉字测试 \u001b[m\u001b[31m\u001b[1;32malpha 汉字测试 alpha \u001b[31mbeta \u001b[38;5;9mbeta 汉字测试 \u001b[m\u001b[K汉字测试 →arrow beta γλυφ →arrow γλυφ \u001b]0;title\u0007\u001b[mdata \u001b[0mbeta \u001b[K\u001bZ→arrow data \u001b]0;title\u0007alpha \u001b[38;5;9m\u001b[Kdata \u001b[38;5;9m\u001b[m汉字测试 data \u001b]0;title\u0007汉字测试 \u001b[1;32malpha \u001b[0m汉字测试 \u001b[38;5;9malpha alpha beta 汉字测试 汉字测试 beta γλυφ →arrow \u001b[31m\u001b[K\u001b[31m\u001b]0;title\u0007\u001b[0mγλυφ alpha beta data \u001b[31mdata data \u001bZγλυφ γλυφ γλυφ \u001b[m→arrow \u001b[38;5;9m汉字测试 汉字测试 γλυφ \u001b[K→arrow \u001b[0m\u001b[1;32mγλυφ data data data 汉字测试 \u001b[1;32mγλυφ →arrow beta γλυφ \u001b[0mbeta \u001b[0m\u001b[0malpha \u001b[38;5;9mbeta \u001bZalpha \u001b]0;title\u0007\u001b[38;5;9mγλυφ beta data \u001b[Kγλυφ \u001b[0m→arrow data \u001b[1;32mdata \u001b[31mbeta \u001b[0m\u001b[m\u001b[Kdata data \u001b[0m→arrow \u001b[K\u001b[Kalpha →arrow \u001b[Kbeta beta \u001b[31m\u001b[Kγλυφ beta data beta \u001b[Kdata \u001b[0mγλυφ →arrow →arrow alpha \u001b[mbeta alpha →arrow alpha \u001b[0mγλυφ 汉字测试 γλυφ data γλυφ \u001bZ\u001b[Kγλυφ \u001b[mbeta \u001b]0;title\u0007\u001b[0mbeta 汉字测试 汉字测试 →arrow \u001b[0m\u001b[K\u001b[m\u001b[38;5;9m\u001b[38;5;9m\u001b[m\u001bZ\u001b[1;32mbeta \u001b[31m\u001b[38;5;9m汉字测试 →arrow beta alpha \u001b[0m\u001b[1;32m\u001b[38;5;9m\u001b[38;5;9m\u001b[38;5;9m\u001b[Kγλυφ beta 汉字测试 \u001b[mdata alpha data \u001b[Kdata \u001b[K\u001b[31m→arrow beta γλυφ 汉字测试 \u001b[Kγλυφ data γλυφ \u001b[38;5;9m→arrow data alpha γλυφ data \u001b[31m\u001b[K\u001b[38;5;9mdata 汉字测试 alpha \u001b[31m\u001b[31mbeta \u001b[0mγλυφ \u001b[1;32m\u001b[38;5;9m\u001b[K\u001b[K\u001b[0m\u001bZ→arrow γλυφ 汉字测试 beta \u001bZalpha γλυφ beta \u001b[1;32malpha γλυφ \u001b[31m\u001b[31m\u001b[38;5;9m→arrow \u001b[31malpha 汉字测试 data \u001b[1;32mbeta 汉字测试 γλυφ alpha \u001b[38;5;9m汉字测试 data \u001b[0mbeta alpha →arrow beta beta γλυφ γλυφ \u001b[0m\u001b[K\u001b[0m\u001b[31m→arrow \u001b[38;5;9malpha \u001b[0m\u001b[K→arrow \u001b[0m\u001b]0;title\u0007\u001b[38;5;9m\u001b[0malpha \u001b[0m\u001b]0;title\u0007\u001b[38;5;9mbeta beta \u001b[K\u001b[1;32mbeta →arrow 汉字测试 \u001b[38;5;9m\u001b[K→arrow \u001b[0malpha beta \u001b[0m汉字测试 →arrow alpha 汉字测试 →arrow \u001b[mdata beta \u001b[38;5;9m汉字测试 beta \u001b[31m\u001b[38;5;9m\u001b[Kalpha data \u001b[31m汉字测试 beta →arrow \u001b[38;5;9malpha data alpha \u001b[1;32m\u001b[0m\u001bZγλυφ \u001b[Kγλυφ beta →arrow \u001b[38;5;9m\u001b[m\u001b]0;title\u0007\u001b[1;32mγλυφ alpha \u001b[1;32m→arrow \u001bZγλυφ \u001b[1;32m\u001bZγλυφ 汉字测试 →arrow beta \u001b[malpha →arrow \u001b[1;32malpha alpha \u001b[31malpha alpha \u001b[31m\u001b[Kγλυφ beta \u001b[m\u001b[31mγλυφ \u001b[0m→arrow γλυφ beta alpha \u001b[0mγλυφ alpha alpha \u001b[38;5;9mbeta data γλυφ beta \u001b]0;title\u0007\u001bZγλυφ \u001bZ\u001b[0m\u001b[1;32mγλυφ beta 汉字测试 \u001b[0malpha \u001b[31m\u001b[38;5;9m\u001b[m\u001b[mbeta \u001b[Kalpha →arrow \u001b[38;5;9m\u001bZdata γλυφ \u001b]0;title\u0007γλυφ \u001b[K→arrow \u001bZ\u001b[38;5;9mbeta γλυφ 汉字测试 alpha data γλυφ \u001b[38;5;9m\u001bZγλυφ \u001b]0;title\u0007alpha →arrow 汉字测试 \u001b[31m汉字测试 \u001b[1;32m\u001b[K\u001b[K\u001b[0mbeta 汉字测试 \u001b]0;title\u0007beta data \u001bZ\u001b[m\u001b[m\u001b[0m\u001bZ\u001b[1;32m汉字测试 γλυφ \u001b[38;5;9m\u001b[K→arrow data →arrow \u001b[1;32m\u001b[K\u001b[1;32m汉字测试 汉字测试 beta →arrow data alpha \u001b[m→arrow \u001b[31m\u001bZγλυφ \u001b[1;32mγλυφ \u001b[m\u001bZ\u001b[31m\u001b[0malpha 汉字测试 \u001b[38;5;9m汉字测试 \u001b[38;5;9mγλυφ alpha γλυφ \u001b[1;32m\u001b[38;5;9m\u001b[mdata \u001b[38;5;9mdata \u001b]0;title\u0007\u001b[38;5;9m\u001b[1;32mγλυφ \u001b[38;5;9m\u001b[31m\u001b[1;32mbeta \u001b[31mγλυφ \u001b[38;5;9m→arrow \u001b[31malpha \u001b[38;5;9m汉字测试 \u001b[mbeta beta \u001b[Kγλυφ \u001b[38;5;9m\u001b]0;title\u0007\u001b[0m\u001b[1;32m\u001b[1;32m\u001b[31mbeta \u001b]0;title\u0007data data beta 汉字测试 \u001b]0;title\u0007\u001b[38;5;9m\u001bZdata \u001b[31mγλυφ \u001b[m→arrow \u001b]0;title\u0007beta →arrow 汉字测试 \u001b[mdata \u001b[31malpha γλυφ \u001b[38;5;9m→arrow beta 汉字测试 →arrow γλυφ →arrow \u001b]0;title\u0007\u001b]0;title\u0007汉字测试 alpha \u001b[31m汉字测试 \u001b[1;32m\u001b[38;5;9m\u001b[m\u001b[0m汉字测试 \u001b[m\u001b[38;5;9m→arrow γλυφ \u001b[38;5;9mbeta →arrow \u001b[Kdata alpha 汉字测试 \u001b[1;32m汉字测试 \u001bZ\u001bZalpha \u001b[31m\u001b[mbeta \u001b[m\u001b[K\u001bZ\u001b[1;32mγλυφ \u001b[K→arrow \u001b[m\u001b[1;32mbeta alpha \u001b[0m\u001b[38;5;9m\u001b[1;32mbeta →arrow beta beta 汉字测试 \u001b[0m汉字测试 alpha \u001bZalpha data \u001b[1;32mdata \u001b[malpha alpha \u001b]0;title\u0007\u001b[0m\u001b[0malpha 汉字测试 alpha \u001b[1;32mγλυφ \u001b[0malpha beta \u001b]0;title\u0007\u001bZ\u001b[38;5;9mγλυφ beta γλυφ \u001b[Kalpha \u001b[31m\u001b[0malpha alpha beta \u001b[1;32mγλυφ beta \u001b[0m\u001b[K汉字测试 汉字测试 \u001b[31mbeta \u001b[1;32m汉字测试 alpha \u001b[0m→arrow \u001b[mdata γλυφ alpha alpha beta data \u001b[mγλυφ γλυφ \u001b[0mγλυφ \u001b[0malpha beta \u001b[31mbeta alpha \u001b[malpha data \u001bZ\u001b[1;32m\u001b]0;title\u0007\u001b[38;5;9mγλυφ 汉字测试 γλυφ beta \u001b[38;5;9m\u001b[0m→arrow 汉字测试 →arrow beta beta beta beta →arrow →arrow \u001b[1;32mdata \u001b[0m\u001b[1;32malpha \u001b[m\u001b[38;5;9m汉字测试 \u001b[K\u001bZ汉字测试 \u001b[1;32m→arrow beta alpha \u001b[0mγλυφ →arrow \u001b[mdata →arrow \u001b]0;title\u0007data beta \u001b[Kbeta →arrow alpha 汉字测试 \u001bZ\u001b[K\u001b[0mdata \u001b[31m\u001b[Kγλυφ →arrow γλυφ beta \u001b[38;5;9m→arrow \u001b[38;5;9mdata →arrow 汉字测试 \u001b[38;5;9m\u001b[1;32m汉字测试 \u001b[1;32m\u001b[38;5;9m\u001b[0mγλυφ \u001b[K\u001b[1;32malpha alpha \u001b[K→arrow \u001b[1;32m\u001b[Kalpha \u001b[K汉字测试 \u001b[1;32m\u001b[Kγλυφ \u001b[0m→arrow data →arrow 汉字测试 γλυφ alpha 汉字测试 beta beta data data \u001bZ\u001b[1;32m\u001b]0;title\u0007\u001bZ\u001b]0;title\u0007\u001b[0m\u001b[31mdata data γλυφ \u001b[31m→arrow \u001b[m\u001b[31mdata →arrow data alpha \u001b[38;5;9mdata data \u001b[Kγλυφ \u001b[1;32malpha \u001b[m→arrow data →arrow alpha \u001b[0m\u001b]0;title\u0007alpha alpha \u001b[38;5;9m\u001b[m\u001b[38;5;9mbeta \u001b[m\u001b[31malpha alpha \u001b[m\u001b[K\u001b[m→arrow \u001b[K\u001b[1;32mγλυφ →arrow →arrow alpha \u001b[m\u001b[38;5;9m\u001b[31m\u001b[m汉字测试 γλυφ beta \u001b[0mbeta data \u001b[K\u001b[K\u001b[m→arrow \u001b[1;32m\u001b[31mbeta \u001b[31malpha \u001b[Kalpha γλυφ 汉字测试 \u001b[K\u001b[1;32mbeta →arrow alpha data 汉字测试 \u001b]0;title\u0007beta γλυφ \u001b[K\u001b[0m\u001b[31malpha \u001b[Kbeta \u001b[1;32mbeta \u001b[malpha →arrow 汉字测试 \u001b[1;32m→arrow \u001bZ\u001b[K\u001b[1;32mbeta 汉字测试 \u001b[K汉字测试 γλυφ γλυφ γλυφ \u001b[31m\u001b[Kγλυφ alpha γλυφ \u001b[31mγλυφ \u001bZ\u001b]0;title\u0007\u001b[0malpha →arrow \u001b[1;32m\u001b[m汉字测试 \u001b[38;5;9mbeta \u001b[m\u001b[0m\u001b]0;title\u0007汉字测试 \u001b[38;5;9m→arrow \u001b]0;title\u0007alpha \u001b[m→arrow \u001b[38;5;9m\u001b[0m\u001b[0mbeta \u001b[0m\u001b]0;title\u0007data →arrow γλυφ beta \u001b[38;5;9malpha beta \u001b[mdata γλυφ alpha \u001b[38;5;9m\u001b[38;5;9malpha \u001b[1;32m汉字测试 γλυφ \u001b[1;32mdata →arrow alpha \u001b[K\u001b[malpha \u001b[0mγλυφ \u001bZ\u001bZ汉字测试 γλυφ →arrow \u001b[31m\u001b[1;32mdata \u001b[0mγλυφ beta \u001b]0;title\u0007汉字测试 data \u001b[38;5;9malpha →arrow beta \u001b[38;5;9mγλυφ alpha \u001b[1;32mγλυφ 汉字测试 汉字测试 \u001b[38;5;9m\u001b[1;32m汉字测试 \u001b[0m\u001b[0mγλυφ \u001b[0mbeta data alpha alpha 汉字测试 γλυφ \u001bZ\u001b[38;5;9mbeta γλυφ alpha γλυφ alpha \u001b[m汉字测试 →arrow \u001b[0m汉字测试 γλυφ \u001b]0;title\u0007beta data \u001b[0m\u001b[1;32m\u001b]0;title\u0007\u001b[38;5;9m\u001b]0;title\u0007\u001b[1;32mbeta \u001b[31m汉字测试 γλυφ \u001b[1;32m→arrow 汉字测试 γλυφ 汉字测试 \u001b[m→arrow 汉字测试 beta 汉字测试 →arrow 汉字测试 \u001b[38;5;9m\u001b]0;title\u0007\u001b[38;5;9mdata 汉字测试 \u001b[m\u001b[38;5;9mdata \u001b[Kdata 汉字测试 \u001b[38;5;9mbeta \u001b[0m\u001bZbeta \u001b[1;32malpha 汉字测试 \u001b[1;32mbeta data beta \u001b[1;32m\u001b[38;5;9m→arrow beta \u001b[31mdata beta \u001b[m\u001b[38;5;9mdata \u001b[38;5;9m\u001b[0mdata beta data beta →arrow \u001b[malpha \u001b[31m\u001b[m→arrow \u001b[K→arrow \u001b[31m\u001b[m\u001b]0;title\u0007汉字测试 data beta \u001b[0m汉字测试 data γλυφ alpha \u001b[K\u001b[K→arrow \u001bZ\u001b[0m→arrow →arrow \u001b[m\u001bZγλυφ data \u001b]0;title\u0007beta γλυφ γλυφ \u001b[malpha \u001b[K\u001b[38;5;9m汉字测试 data \u001b[mγλυφ \u001bZ\u001b[0m\u001b[31m\u001b]0;title\u0007data 汉字测试 alpha \u001bZ\u001b]0;title\u0007→arrow beta \u001b[38;5;9mγλυφ \u001b[K\u001b[1;32m\u001b[K\u001b]0;title\u0007beta \u001b[0m汉字测试 data 汉字测试 \u001b]0;title\u0007beta data data →arrow \u001b[mbeta \u001b[K汉字测试 data 汉字测试 汉字测试 beta \u001b[31m\u001bZ→arrow \u001b[1;32m\u001b[mdata \u001bZalpha \u001b[0m\u001bZ\u001b[K\u001b[1;32m→arrow \u001b[1;32m→arrow 汉字测试 \u001b]0;title\u0007\u001b[31mdata \u001b[K\u001bZ→arrow 汉字测试 →arrow 汉字测试 beta \u001b[38;5;9m→arrow \u001b[31mγλυφ →arrow \u001b[31m\u001b[1;32malpha \u001b[38;5;9m\u001b[K\u001b[Kdata \u001b[Kγλυφ γλυφ \u001b[31mγλυφ →arrow \u001b[31mγλυφ γλυφ γλυφ \u001b[1;32m汉字测试 \u001b]0;title\u0007beta \u001b[K\u001b[K\u001b[31m→arrow \u001b]0;title\u0007\u001b[K\u001b[1;32malpha \u001b[31m汉字测试 γλυφ γλυφ →arrow \u001b]0;title\u0007data alpha γλυφ \u001b[0m\u001b[0m\u001b[38;5;9m\u001b[0m\u001bZ\u001b[31m\u001b[31m\u001b[31mdata \u001b[0mdata \u001b[1;32mγλυφ \u001b]0;title\u0007γλυφ →arrow beta data \u001b[1;32malpha beta γλυφ 汉字测试 beta data \u001b[mγλυφ \u001bZbeta \u001b[m\u001b[31mdata \u001b[38;5;9malpha \u001bZ\u001b[31malpha \u001b[0m→arrow \u001b[38;5;9m汉字测试 汉字测试 \u001b[mγλυφ \u001b[31malpha beta data \u001b[Kdata →arrow γλυφ data γλυφ \u001b[m汉字测试 \u001b[31m→arrow data →arrow \u001b[31m\u001b[38;5;9m汉字测试 alpha \u001b[0m\u001b[31mγλυφ \u001b[K→arrow γλυφ 汉字测试 汉字测试 \u001b[m汉字测试 alpha \u001b[0m\u001b[1;32m\u001b[K汉字测试 \u001b[0m\u001b[Kalpha 汉字测试 \u001b[1;32mbeta beta \u001b[0malpha data \u001b[31mγλυφ γλυφ 汉字测试 \u001b]0;title\u0007\u001b[K→arrow 汉字测试 \u001b[31malpha \u001b[31mγλυφ \u001b[K\u001b[malpha \u001b[1;32mbeta 汉字测试 beta →arrow \u001b[m\u001b[m\u001b[mdata alpha 汉字测试 beta \u001b[1;32mdata \u001b[malpha \u001b[0mbeta \u001b[mγλυφ γλυφ →arrow →arrow γλυφ beta data \u001b[31m\u001b[38;5;9m汉字测试 \u001b]0;title\u0007alpha \u001b]0;title\u0007alpha \u001b[0m\u001b[mγλυφ 汉字测试 beta γλυφ γλυφ data beta \u001b[31m\u001b[1;32m\u001b[1;32m汉字测试 γλυφ \u001b[38;5;9m\u001b[m\u001b]0;title\u0007data \u001b[31mγλυφ →arrow alpha \u001b[38;5;9mbeta 汉字测试 \u001b]0;title\u0007\u001b[38;5;9m→arrow \u001b]0;title\u0007\u001b[31m汉字测试 beta \u001b[38;5;9m\u001b[K\u001b[0m\u001b[38;5;9m\u001b[0mbeta beta data γλυφ →arrow \u001b[1;32m\u001b[Kbeta \u001b]0;title\u0007beta 汉字测试 beta alpha →arrow γλυφ \u001b[m\u001bZ\u001b[31malpha \u001b[31mbeta \u001b[m\u001b[0mγλυφ \u001b[0m\u001b[Kdata data \u001b[Kbeta \u001b[K\u001b[0m汉字测试 汉字测试 \u001b]0;title\u0007\u001b[38;5;9m\u001b[1;32m→arrow alpha alpha \u001b[1;32m\u001b[0m→arrow \u001b[K\u001b[1;32malpha alpha \u001b[m\u001b[38;5;9mbeta beta 汉字测试 汉字测试 \u001b[31malpha \u001b[1;32m\u001bZ\u001b[K→arrow \u001b[1;32m汉字测试 →arrow →arrow \u001b[38;5;9m\u001b[Kγλυφ data data alpha γλυφ →arrow data 汉字测试 汉字测试 \u001b[31mγλυφ \u001b[38;5;9malpha →arrow \u001b[mγλυφ \u001b[38;5;9mbeta \u001b[38;5;9m→arrow \u001b[mdata alpha γλυφ \u001b[m汉字测试 \u001b[38;5;9m\u001b[31m汉字测试 \u001b[0m\u001b[38;5;9mγλυφ \u001b[K汉字测试 \u001b[38;5;9mbeta γλυφ γλυφ alpha \u001bZ汉字测试 γλυφ beta 汉字测试 data \u001b[1;32m","expected":"\u001b[31mdata 汉字测\u001b[31m…\u001b[0m"},{"label":"osc-title","maxWidth":30,"text":"\u001b]0;window title\u0007plain text after osc that is long enough to truncate here","expected":"\u001b]0;window title\u0007plain text a…"},{"label":"bare-esc","maxWidth":25,"text":"before \u001bZ after bare esc char continues to exceed the width limit easily","expected":"before \u001bZ after bare esc…"},{"label":"csi-k-mixed-sgr","maxWidth":20,"text":"\u001b[31mred\u001b[K\u001b[32mgreen tail that keeps going past the boundary here ok","expected":"\u001b[31mred\u001b[K\u001b[32mgreen tail th\u001b[31m\u001b[32m…\u001b[0m"},{"label":"osc-inside-truncation","maxWidth":24,"text":"AAAAAAAAAAAAAAAAAAAA\u001b]0;t\u0007BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB","expected":"AAAAAAAAAAAAAAAAAAAA\u001b]0…"},{"label":"esc-at-end","maxWidth":22,"text":"text almost at width limit\u001b","expected":"text almost at width …"},{"label":"sgr-exact-fit","maxWidth":31,"text":"\u001b[31mxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\u001b[0m","expected":"\u001b[31mxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\u001b[0m"},{"label":"emoji-mix","maxWidth":17,"text":"😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅😀🚀✅\u001b[1mbold\u001b[0myyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy","expected":"😀🚀✅😀🚀✅😀🚀✅😀🚀✅…"}]
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
// src/execution/__tests__/agent-result-mapper.test.ts
|
|
2
|
+
//
|
|
3
|
+
// T3.14 (NFR-兼容性): AgentResult 映射字段对齐 —— D-A10 纯函数单测
|
|
4
|
+
// T3.1 (正常): executeAndAwait 返回 content → 间接覆盖(subagent-service.test.ts 集成验证)
|
|
5
|
+
//
|
|
6
|
+
// 测试范围: mapToWorkflowAgentResult 所有字段映射分支(success/error/usage/toolCalls)
|
|
7
|
+
|
|
8
|
+
import { describe, expect, it } from "vitest";
|
|
9
|
+
|
|
10
|
+
import { mapToWorkflowAgentResult } from "../agent-result-mapper.ts";
|
|
11
|
+
import type { AgentResult as SubagentsAgentResult, AgentUsageTotal, ToolCall } from "../types.ts";
|
|
12
|
+
|
|
13
|
+
describe("mapToWorkflowAgentResult (D-A10)", () => {
|
|
14
|
+
const minimalResult: SubagentsAgentResult = {
|
|
15
|
+
text: "Hello",
|
|
16
|
+
turns: 3,
|
|
17
|
+
durationMs: 1200,
|
|
18
|
+
success: true,
|
|
19
|
+
sessionId: "session-123",
|
|
20
|
+
toolCalls: [],
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
// ── T3.14: 正常成功路径 ──
|
|
24
|
+
|
|
25
|
+
it("映射成功结果: text→content, durationMs/sessionId 透传", () => {
|
|
26
|
+
const result = mapToWorkflowAgentResult(minimalResult);
|
|
27
|
+
expect(result.content).toBe("Hello");
|
|
28
|
+
expect(result.durationMs).toBe(1200);
|
|
29
|
+
expect(result.sessionId).toBe("session-123");
|
|
30
|
+
expect(result.error).toBeUndefined();
|
|
31
|
+
expect(result.parsedOutput).toBeUndefined();
|
|
32
|
+
expect(result.usage).toBeUndefined();
|
|
33
|
+
expect(result.toolCalls).toEqual([]);
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
// ── sessionFile 透传(方案 A:让 workflow 继承 subagent 的 session jsonl 路径)──
|
|
37
|
+
|
|
38
|
+
it("映射 sessionFile: subagents AgentResult.sessionFile → workflow AgentResult.sessionFile 透传", () => {
|
|
39
|
+
const r: SubagentsAgentResult = {
|
|
40
|
+
...minimalResult,
|
|
41
|
+
sessionFile: "/abs/path/.pi/agent/subagents/enc/sessions/2026-07-15T10-00-00-000Z_session-123.jsonl",
|
|
42
|
+
};
|
|
43
|
+
const result = mapToWorkflowAgentResult(r);
|
|
44
|
+
expect(result.sessionFile).toBe("/abs/path/.pi/agent/subagents/enc/sessions/2026-07-15T10-00-00-000Z_session-123.jsonl");
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
it("映射 sessionFile: 无 sessionFile → workflow AgentResult.sessionFile undefined(窗口期/未回填)", () => {
|
|
48
|
+
const r: SubagentsAgentResult = { ...minimalResult, sessionFile: undefined };
|
|
49
|
+
const result = mapToWorkflowAgentResult(r);
|
|
50
|
+
expect(result.sessionFile).toBeUndefined();
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
it("映射 parsedOutput 透传(structured-output 契约 BC-8)", () => {
|
|
54
|
+
const parsedData = { score: 0.95, label: "positive" };
|
|
55
|
+
const r: SubagentsAgentResult = { ...minimalResult, parsedOutput: parsedData };
|
|
56
|
+
const result = mapToWorkflowAgentResult(r);
|
|
57
|
+
expect(result.parsedOutput).toEqual(parsedData);
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
// ── T3.14: 失败路径 ──
|
|
61
|
+
|
|
62
|
+
it("映射失败: success=false 且 error → 填入 error 字段", () => {
|
|
63
|
+
const r: SubagentsAgentResult = { ...minimalResult, success: false, error: "timeout" };
|
|
64
|
+
const result = mapToWorkflowAgentResult(r);
|
|
65
|
+
expect(result.error).toBe("timeout");
|
|
66
|
+
expect(result.content).toBe("Hello"); // content 仍保留(可能有部分输出)
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
it("映射失败: success=false 但无 error(abort 路径)→ error 填入 fallback 而非 undefined", () => {
|
|
70
|
+
// H4: session-runner.ts abort 时 success=false, error=undefined。
|
|
71
|
+
// 旧代码 error=undefined → executeAgentCall 误判 completed。
|
|
72
|
+
// 修复后应 synthesize fallback error。
|
|
73
|
+
const r: SubagentsAgentResult = { ...minimalResult, success: false };
|
|
74
|
+
const result = mapToWorkflowAgentResult(r);
|
|
75
|
+
expect(result.error).toBeDefined();
|
|
76
|
+
expect(typeof result.error).toBe("string");
|
|
77
|
+
expect(result.error.length).toBeGreaterThan(0);
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
it("映射成功: success=true 且 error 存在 → error=undefined(不误填)", () => {
|
|
81
|
+
const r: SubagentsAgentResult = { ...minimalResult, success: true, error: "stale" };
|
|
82
|
+
const result = mapToWorkflowAgentResult(r);
|
|
83
|
+
expect(result.error).toBeUndefined();
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
// ── T3.14: usage 映射 ──
|
|
87
|
+
|
|
88
|
+
it("映射 usage: AgentUsageTotal → AgentUsage(字段形状转换)", () => {
|
|
89
|
+
const usage: AgentUsageTotal = {
|
|
90
|
+
input: 1000,
|
|
91
|
+
output: 500,
|
|
92
|
+
cacheRead: 200,
|
|
93
|
+
cacheWrite: 100,
|
|
94
|
+
total: 1800,
|
|
95
|
+
cost: 0.005,
|
|
96
|
+
};
|
|
97
|
+
const r: SubagentsAgentResult = { ...minimalResult, usage };
|
|
98
|
+
const result = mapToWorkflowAgentResult(r);
|
|
99
|
+
expect(result.usage).toEqual({
|
|
100
|
+
input: 1000,
|
|
101
|
+
output: 500,
|
|
102
|
+
cacheRead: 200,
|
|
103
|
+
cacheWrite: 100,
|
|
104
|
+
cost: 0.005,
|
|
105
|
+
contextTokens: 1800, // total → contextTokens
|
|
106
|
+
turns: 3, // 来自 AgentResult.turns
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
it("映射 usage: 无 usage → usage undefined", () => {
|
|
111
|
+
const result = mapToWorkflowAgentResult(minimalResult);
|
|
112
|
+
expect(result.usage).toBeUndefined();
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
// ── T3.14: toolCalls 映射 ──
|
|
116
|
+
|
|
117
|
+
it("映射 toolCalls: ToolCall → ToolCallEntry(name/input 形状转换)", () => {
|
|
118
|
+
const calls: ToolCall[] = [
|
|
119
|
+
{ toolName: "read", args: { path: "/a.txt" } },
|
|
120
|
+
{ toolName: "bash", args: { command: "ls" }, result: { content: ["ok"] }, isError: false },
|
|
121
|
+
];
|
|
122
|
+
const r: SubagentsAgentResult = { ...minimalResult, toolCalls: calls };
|
|
123
|
+
const result = mapToWorkflowAgentResult(r);
|
|
124
|
+
expect(result.toolCalls).toBeDefined();
|
|
125
|
+
expect(result.toolCalls!).toHaveLength(2);
|
|
126
|
+
expect(result.toolCalls![0]).toEqual({ name: "read", input: '{"path":"/a.txt"}' });
|
|
127
|
+
expect(result.toolCalls![1].name).toBe("bash");
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
it("映射 toolCalls: args=undefined → input=''", () => {
|
|
131
|
+
const calls: ToolCall[] = [{ toolName: "list" }];
|
|
132
|
+
const r: SubagentsAgentResult = { ...minimalResult, toolCalls: calls };
|
|
133
|
+
const result = mapToWorkflowAgentResult(r);
|
|
134
|
+
expect(result.toolCalls![0].input).toBe("");
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
it("映射 toolCalls: 长 args 截断(>500 chars)", () => {
|
|
138
|
+
const longStr = "x".repeat(600);
|
|
139
|
+
const calls: ToolCall[] = [{ toolName: "write", args: { content: longStr } }];
|
|
140
|
+
const r: SubagentsAgentResult = { ...minimalResult, toolCalls: calls };
|
|
141
|
+
const result = mapToWorkflowAgentResult(r);
|
|
142
|
+
expect(result.toolCalls![0].input.length).toBeLessThanOrEqual(503); // 500 + "..."
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
it("映射 toolCalls: 无 toolCalls → undefined", () => {
|
|
146
|
+
const r: SubagentsAgentResult = { ...minimalResult, toolCalls: undefined };
|
|
147
|
+
const result = mapToWorkflowAgentResult(r);
|
|
148
|
+
expect(result.toolCalls).toBeUndefined();
|
|
149
|
+
});
|
|
150
|
+
});
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
// src/__tests__/alive-store.test.ts
|
|
2
|
+
|
|
3
|
+
import * as fs from "node:fs";
|
|
4
|
+
import * as os from "node:os";
|
|
5
|
+
import * as path from "node:path";
|
|
6
|
+
|
|
7
|
+
import { afterEach,describe, expect, it } from "vitest";
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
isProcessAlive,
|
|
11
|
+
readAliveMarker,
|
|
12
|
+
removeAliveMarker,
|
|
13
|
+
writeAliveMarker,
|
|
14
|
+
} from "../alive-store.ts";
|
|
15
|
+
import type { AliveMarker } from "../types.ts";
|
|
16
|
+
|
|
17
|
+
function makeTmpDir(): string {
|
|
18
|
+
return fs.mkdtempSync(path.join(os.tmpdir(), "alive-store-test-"));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
describe("alive-store", () => {
|
|
22
|
+
let tmpDir: string;
|
|
23
|
+
|
|
24
|
+
afterEach(() => {
|
|
25
|
+
if (tmpDir) {
|
|
26
|
+
fs.rmSync(tmpDir, { recursive: true, force: true });
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
// ── writeAliveMarker + readAliveMarker 往返 ──
|
|
31
|
+
|
|
32
|
+
it("write → read round-trip", () => {
|
|
33
|
+
tmpDir = makeTmpDir();
|
|
34
|
+
const sessionFile = path.join(tmpDir, "session.jsonl");
|
|
35
|
+
const marker: AliveMarker = { pid: 12345, id: "bg-1-abc", startedAt: Date.now() };
|
|
36
|
+
|
|
37
|
+
writeAliveMarker(sessionFile, marker);
|
|
38
|
+
const result = readAliveMarker(sessionFile);
|
|
39
|
+
|
|
40
|
+
expect(result).toEqual(marker);
|
|
41
|
+
// 验证 sidecar 文件是单行 JSON
|
|
42
|
+
const raw = fs.readFileSync(`${sessionFile}.alive`, "utf-8");
|
|
43
|
+
expect(raw.endsWith("\n")).toBe(true);
|
|
44
|
+
expect(JSON.parse(raw.trim())).toEqual(marker);
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
// ── readAliveMarker 损坏文件 ──
|
|
48
|
+
|
|
49
|
+
it("readAliveMarker returns undefined for corrupted file", () => {
|
|
50
|
+
tmpDir = makeTmpDir();
|
|
51
|
+
const sessionFile = path.join(tmpDir, "session.jsonl");
|
|
52
|
+
fs.writeFileSync(`${sessionFile}.alive`, "not-json", "utf-8");
|
|
53
|
+
|
|
54
|
+
expect(readAliveMarker(sessionFile)).toBeUndefined();
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it("readAliveMarker returns undefined for structurally invalid JSON", () => {
|
|
58
|
+
tmpDir = makeTmpDir();
|
|
59
|
+
const sessionFile = path.join(tmpDir, "session.jsonl");
|
|
60
|
+
// pid 字段缺失
|
|
61
|
+
fs.writeFileSync(`${sessionFile}.alive`, '{"id":"x","startedAt":1}\n', "utf-8");
|
|
62
|
+
|
|
63
|
+
expect(readAliveMarker(sessionFile)).toBeUndefined();
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
it("readAliveMarker returns undefined when file does not exist", () => {
|
|
67
|
+
tmpDir = makeTmpDir();
|
|
68
|
+
const sessionFile = path.join(tmpDir, "session.jsonl");
|
|
69
|
+
|
|
70
|
+
expect(readAliveMarker(sessionFile)).toBeUndefined();
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
// ── removeAliveMarker ──
|
|
74
|
+
|
|
75
|
+
it("removeAliveMarker removes existing sidecar", () => {
|
|
76
|
+
tmpDir = makeTmpDir();
|
|
77
|
+
const sessionFile = path.join(tmpDir, "session.jsonl");
|
|
78
|
+
const marker: AliveMarker = { pid: 1, id: "x", startedAt: 0 };
|
|
79
|
+
|
|
80
|
+
writeAliveMarker(sessionFile, marker);
|
|
81
|
+
expect(fs.existsSync(`${sessionFile}.alive`)).toBe(true);
|
|
82
|
+
|
|
83
|
+
removeAliveMarker(sessionFile);
|
|
84
|
+
expect(fs.existsSync(`${sessionFile}.alive`)).toBe(false);
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
it("removeAliveMarker does not throw when file does not exist", () => {
|
|
88
|
+
tmpDir = makeTmpDir();
|
|
89
|
+
const sessionFile = path.join(tmpDir, "session.jsonl");
|
|
90
|
+
|
|
91
|
+
expect(() => removeAliveMarker(sessionFile)).not.toThrow();
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
// ── isProcessAlive ──
|
|
95
|
+
|
|
96
|
+
it("isProcessAlive returns true for current process", () => {
|
|
97
|
+
expect(isProcessAlive(process.pid)).toBe(true);
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
it("isProcessAlive returns false for non-existent pid", () => {
|
|
101
|
+
// pid 0 不存在于用户空间(kill(0,0) 在某些 OS 有特殊语义,用大数更安全)
|
|
102
|
+
expect(isProcessAlive(9999999)).toBe(false);
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
it("isProcessAlive returns true for EPERM (process exists but no permission)", () => {
|
|
106
|
+
// 模拟 EPERM:进程存在但无权限发信号
|
|
107
|
+
const err = new Error("EPERM") as NodeJS.ErrnoException;
|
|
108
|
+
err.code = "EPERM";
|
|
109
|
+
const originalKill = process.kill;
|
|
110
|
+
process.kill = (_pid: number, _signal?: string | number) => {
|
|
111
|
+
throw err;
|
|
112
|
+
};
|
|
113
|
+
try {
|
|
114
|
+
expect(isProcessAlive(12345)).toBe(true);
|
|
115
|
+
} finally {
|
|
116
|
+
process.kill = originalKill;
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
it("isProcessAlive returns false for ESRCH (no such process)", () => {
|
|
121
|
+
// 模拟 ESRCH:进程不存在
|
|
122
|
+
const err = new Error("ESRCH") as NodeJS.ErrnoException;
|
|
123
|
+
err.code = "ESRCH";
|
|
124
|
+
const originalKill = process.kill;
|
|
125
|
+
process.kill = (_pid: number, _signal?: string | number) => {
|
|
126
|
+
throw err;
|
|
127
|
+
};
|
|
128
|
+
try {
|
|
129
|
+
expect(isProcessAlive(12345)).toBe(false);
|
|
130
|
+
} finally {
|
|
131
|
+
process.kill = originalKill;
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
it("isProcessAlive returns false for unknown errors", () => {
|
|
136
|
+
// 模拟未知错误:保守判死
|
|
137
|
+
const originalKill = process.kill;
|
|
138
|
+
process.kill = (_pid: number, _signal?: string | number) => {
|
|
139
|
+
throw new Error("unknown error");
|
|
140
|
+
};
|
|
141
|
+
try {
|
|
142
|
+
expect(isProcessAlive(12345)).toBe(false);
|
|
143
|
+
} finally {
|
|
144
|
+
process.kill = originalKill;
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
});
|