@songtonyli/dsh-cli 0.1.68 → 0.1.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/dsh.mjs +1 -1
- package/node_modules/@anthropic-ai/sdk/CHANGELOG.md +182 -0
- package/node_modules/@anthropic-ai/sdk/README.md +1 -1
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js +66 -53
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs +66 -53
- package/node_modules/@anthropic-ai/sdk/client.js +871 -856
- package/node_modules/@anthropic-ai/sdk/client.mjs +872 -851
- package/node_modules/@anthropic-ai/sdk/core/api-promise.js +71 -69
- package/node_modules/@anthropic-ai/sdk/core/api-promise.mjs +71 -65
- package/node_modules/@anthropic-ai/sdk/core/error.js +5 -3
- package/node_modules/@anthropic-ai/sdk/core/error.mjs +5 -3
- package/node_modules/@anthropic-ai/sdk/core/pagination.js +56 -51
- package/node_modules/@anthropic-ai/sdk/core/pagination.mjs +56 -42
- package/node_modules/@anthropic-ai/sdk/core/resource.js +0 -1
- package/node_modules/@anthropic-ai/sdk/core/resource.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.js +214 -240
- package/node_modules/@anthropic-ai/sdk/core/streaming.mjs +215 -241
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.js +14 -19
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.mjs +14 -13
- package/node_modules/@anthropic-ai/sdk/index.js +7 -7
- package/node_modules/@anthropic-ai/sdk/index.mjs +3 -3
- package/node_modules/@anthropic-ai/sdk/internal/builtin-types.js +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/builtin-types.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/constants.js +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.js +27 -24
- package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs +27 -24
- package/node_modules/@anthropic-ai/sdk/internal/decoders/line.js +52 -49
- package/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs +52 -43
- package/node_modules/@anthropic-ai/sdk/internal/detect-platform.js +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/errors.js +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/errors.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/file-store.js +256 -258
- package/node_modules/@anthropic-ai/sdk/internal/file-store.mjs +256 -243
- package/node_modules/@anthropic-ai/sdk/internal/headers.js +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/headers.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/node.browser.mjs +7 -7
- package/node_modules/@anthropic-ai/sdk/internal/parse.js +2 -3
- package/node_modules/@anthropic-ai/sdk/internal/parse.mjs +3 -4
- package/node_modules/@anthropic-ai/sdk/internal/request-options.js +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/request-options.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/shim-types.js +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/shim-types.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/shims.js +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/shims.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.js +12 -7
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.mjs +6 -1
- package/node_modules/@anthropic-ai/sdk/internal/to-file.js +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/to-file.mjs +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/types.js +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/types.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/uploads.js +5 -2
- package/node_modules/@anthropic-ai/sdk/internal/uploads.mjs +5 -2
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.js +66 -63
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs +66 -56
- package/node_modules/@anthropic-ai/sdk/internal/utils/base64.js +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/env.js +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.js +12 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs +11 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.js +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/uuid.js +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/values.js +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils.js +0 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js +596 -590
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs +596 -590
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.js +544 -541
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs +544 -541
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.js +180 -174
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs +180 -153
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.js +375 -359
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs +374 -319
- package/node_modules/@anthropic-ai/sdk/lib/internal/BetaToolRunnerStream.js +137 -0
- package/node_modules/@anthropic-ai/sdk/lib/internal/BetaToolRunnerStream.mjs +137 -0
- package/node_modules/@anthropic-ai/sdk/lib/internal/stub.js +6 -0
- package/node_modules/@anthropic-ai/sdk/lib/internal/stub.mjs +3 -0
- package/node_modules/@anthropic-ai/sdk/lib/internal/types.js +3 -0
- package/node_modules/@anthropic-ai/sdk/lib/internal/types.mjs +2 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.js +20 -2
- package/node_modules/@anthropic-ai/sdk/lib/middleware.mjs +20 -2
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.js +628 -361
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs +629 -355
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.js +600 -594
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs +599 -550
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.js +39 -36
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.mjs +39 -13
- package/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.js +7 -5
- package/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs +7 -5
- package/node_modules/@anthropic-ai/sdk/package.json +3 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.js +135 -133
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs +135 -133
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.js +39 -37
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs +39 -37
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.js +45 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs +45 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.js +157 -155
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs +157 -155
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.js +255 -253
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs +255 -253
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.js +8 -8
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs +1 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.js +150 -148
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs +150 -148
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.js +4 -4
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.mjs +2 -3
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js +132 -112
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs +131 -111
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/api-keys.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/compliance-settings.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/external-keys.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.js +11 -9
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/federation.mjs +11 -9
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/index.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/issuers.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/index.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.js +187 -185
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/rules.mjs +187 -185
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules/workspaces.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation/rules.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/federation.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/index.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/invites.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.js +38 -36
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/organization.mjs +38 -36
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/rate-limits.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/index.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.js +163 -161
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/service-accounts.mjs +163 -161
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts/workspaces.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/service-accounts.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/users.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/index.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/members.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.js +6 -5
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/rate-limits.mjs +6 -5
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/service-accounts.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.js +97 -95
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces/workspaces.mjs +97 -95
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization/workspaces.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/organization.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.js +118 -116
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs +118 -116
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.js +161 -159
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs +161 -159
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.js +86 -84
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs +86 -84
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.js +104 -102
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs +104 -102
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.js +188 -186
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs +188 -186
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.js +25 -11
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs +25 -11
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.js +156 -154
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs +156 -154
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/completions.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/completions.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/files.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/files.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/index.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/index.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.js +115 -113
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs +115 -113
- package/node_modules/@anthropic-ai/sdk/resources/messages.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/models.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/models.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/shared.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/shared.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.js +88 -86
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs +88 -86
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/skills.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/skills.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/top-level.js +0 -1
- package/node_modules/@anthropic-ai/sdk/resources/top-level.mjs +0 -1
- package/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/parser.ts +71 -56
- package/node_modules/@anthropic-ai/sdk/src/client.ts +138 -98
- package/node_modules/@anthropic-ai/sdk/src/core/api-promise.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/core/error.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/core/pagination.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/core/resource.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/core/streaming.ts +3 -39
- package/node_modules/@anthropic-ai/sdk/src/index.ts +10 -17
- package/node_modules/@anthropic-ai/sdk/src/internal/builtin-types.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/internal/detect-platform.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/internal/errors.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/internal/headers.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/internal/node.browser.ts +7 -7
- package/node_modules/@anthropic-ai/sdk/src/internal/parse.ts +8 -13
- package/node_modules/@anthropic-ai/sdk/src/internal/request-options.ts +1 -3
- package/node_modules/@anthropic-ai/sdk/src/internal/shim-types.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/internal/shims.ts +4 -5
- package/node_modules/@anthropic-ai/sdk/src/internal/stainless-helper-header.ts +7 -1
- package/node_modules/@anthropic-ai/sdk/src/internal/to-file.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/src/internal/types.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/internal/uploads.ts +5 -2
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/base64.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/bytes.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/env.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/log.ts +16 -4
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/query.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/uuid.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/values.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/internal/utils.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/lib/.keep +0 -2
- package/node_modules/@anthropic-ai/sdk/src/lib/BetaMessageStream.ts +9 -6
- package/node_modules/@anthropic-ai/sdk/src/lib/beta-parser.ts +1 -3
- package/node_modules/@anthropic-ai/sdk/src/lib/environments/worker.ts +29 -15
- package/node_modules/@anthropic-ai/sdk/src/lib/internal/BetaToolRunnerStream.ts +170 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/internal/stub.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/internal/types.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/middleware.ts +20 -2
- package/node_modules/@anthropic-ai/sdk/src/lib/parser.ts +1 -3
- package/node_modules/@anthropic-ai/sdk/src/lib/tools/BetaRunnableTool.ts +2 -1
- package/node_modules/@anthropic-ai/sdk/src/lib/tools/BetaToolRunner.ts +579 -240
- package/node_modules/@anthropic-ai/sdk/src/lib/transform-json-schema.ts +8 -6
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/agents.ts +147 -53
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/index.ts +1 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/versions.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/beta.ts +67 -3
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployment-runs.ts +13 -8
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployments.ts +43 -27
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/dreams.ts +279 -89
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/environments.ts +5 -12
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/index.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/work.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/files.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/index.ts +191 -161
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/index.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memories.ts +82 -23
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-stores.ts +6 -5
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-versions.ts +60 -43
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/batches.ts +27 -12
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/index.ts +47 -21
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/messages.ts +741 -176
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/models.ts +30 -7
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/api-keys.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/compliance-settings.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/external-keys.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/federation.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/index.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/issuers.ts +4 -7
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/rules/index.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/rules/rules.ts +4 -8
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/rules/workspaces.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation/rules.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/federation.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/index.ts +6 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/invites.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/organization.ts +12 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/rate-limits.ts +112 -6
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/service-accounts/index.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/service-accounts/service-accounts.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/service-accounts/workspaces.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/service-accounts.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/users.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/workspaces/index.ts +2 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/workspaces/members.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/workspaces/rate-limits.ts +58 -14
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/workspaces/service-accounts.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/workspaces/workspaces.ts +7 -5
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/workspaces.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/events.ts +234 -82
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/index.ts +10 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/resources.ts +5 -9
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/sessions.ts +85 -46
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/events.ts +2 -4
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/index.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/threads.ts +21 -15
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/index.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/skills.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/versions.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/certificates.ts +7 -7
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/index.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/tunnels.ts +3 -4
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/user-profiles.ts +300 -38
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/credentials.ts +37 -35
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/index.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/vaults.ts +1 -3
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/webhooks.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/completions.ts +3 -4
- package/node_modules/@anthropic-ai/sdk/src/resources/files.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/index.ts +17 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/messages/batches.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/messages/index.ts +17 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/messages/messages.ts +289 -93
- package/node_modules/@anthropic-ai/sdk/src/resources/messages.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/models.ts +12 -9
- package/node_modules/@anthropic-ai/sdk/src/resources/shared.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/skills/index.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/skills/skills.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/skills/versions.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/skills.ts +0 -2
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/node.ts +3 -2
- package/node_modules/@anthropic-ai/sdk/src/tsconfig.json +13 -3
- package/node_modules/@anthropic-ai/sdk/src/version.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.js +0 -6
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs +0 -6
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.js +694 -691
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.mjs +691 -631
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.js +12 -12
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.js +207 -200
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs +197 -186
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.js +5 -5
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.js +3 -3
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.js +2 -2
- package/node_modules/@anthropic-ai/sdk/version.js +1 -1
- package/node_modules/@anthropic-ai/sdk/version.mjs +1 -1
- package/node_modules/@deepseek-ai/cordis-plugin-loader/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh/lib/bin.js +1 -1
- package/node_modules/@deepseek-ai/dsh/package.json +121 -117
- package/node_modules/@deepseek-ai/dsh-acp/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-acp/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-acp/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-acp/lib/index.js +59 -17
- package/node_modules/@deepseek-ai/dsh-acp/package.json +23 -22
- package/node_modules/@deepseek-ai/dsh-acp-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-acp-app/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-acp-app/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-acp-app/cordis.patch.yml +0 -1
- package/node_modules/@deepseek-ai/dsh-acp-app/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-agent/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-agent-instructions/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-agent-instructions/README.md +15 -7
- package/node_modules/@deepseek-ai/dsh-agent-instructions/README.zh.md +15 -7
- package/node_modules/@deepseek-ai/dsh-agent-instructions/lib/index.js +226 -91
- package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +24 -22
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +6 -3
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +6 -3
- package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +67 -25
- package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +17 -21
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/practices.md +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +9 -5
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/lib/index.js +1 -5
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +477 -237
- package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +41 -41
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +44 -20
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +43 -13
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +227 -41
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +199 -21
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/manager.js +36 -11
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/projection-store.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/service.js +7 -3
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +40 -10
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/list.js +6 -4
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/skill-catalog.js +7 -6
- package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +73 -70
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.md +5 -5
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.zh.md +5 -5
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/index.js +13 -9
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +21 -17
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.remote-client.js +10 -10
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/index.js +13 -10
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +18 -17
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-app-boot/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +61 -8
- package/node_modules/@deepseek-ai/dsh-app-boot/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-attachment/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-authorization/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-base/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-base/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +13 -25
- package/node_modules/@deepseek-ai/dsh-base/package.json +94 -94
- package/node_modules/@deepseek-ai/dsh-bash-local/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-connection/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-connection/README.md +5 -3
- package/node_modules/@deepseek-ai/dsh-client-connection/README.zh.md +5 -3
- package/node_modules/@deepseek-ai/dsh-client-connection/lib/index.js +94 -38
- package/node_modules/@deepseek-ai/dsh-client-connection/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +9 -5
- package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-locale/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-modules/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-client-product-analytics/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-resources/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-store/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +19 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +19 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +5539 -4837
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +38 -38
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +26 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +33 -33
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +26 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +46 -33
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +13 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +22 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.i18n.yaml +5 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +11 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +9 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +9 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +303 -94
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +6 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +6 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/CommandText.module.css +12 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DisclosureRow.module.css +15 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ImageLightbox.module.css +12 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TerminalBlock.module.css +3 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +224 -120
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CommandText.d.ts +16 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DisclosureRow.d.ts +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/PermissionIcon.d.ts +12 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TerminalBlock.d.ts +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/lib/client.js +87 -87
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +54 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.excel.js +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +437 -91
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +73 -33
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.terminal.js +27 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.i18n.yaml +5 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +50 -35
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +19 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +13 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +13 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +471 -104
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/index.js +134 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +5 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +5 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +52 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +28 -26
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +4 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +60 -43
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +1 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.md +3 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.zh.md +3 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +20 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +52 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-command-compact/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-command-goal/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +9 -5
- package/node_modules/@deepseek-ai/dsh-commands/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-compaction/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-config-editor/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +153 -41
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/index.js +9 -9
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +30 -22
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.remote-client.js +12 -12
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/index.js +12 -8
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-credentials/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-credentials-local/lib/index.js +7 -3
- package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/lib/index.js +25 -9
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/lib/types/index.js +22 -9
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-deque/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.i18n.yaml +35 -35
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.md +19 -21
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.zh.md +19 -21
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/index.js +748 -978
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/index.js +44 -22
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/lifecycle.js +18 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/roster.js +4 -19
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/session-message.js +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/cordis.patch.yml +0 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +7 -5
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +4 -5
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +41 -39
- package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/README.md +78 -0
- package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/README.zh.md +78 -0
- package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/icon.svg +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/{dsh-hook-protocol → dsh-experimental-badge-skill-bundle}/package.json +18 -8
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/README.md +90 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/README.zh.md +90 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/lib/client.js +4766 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/lib/index.js +250 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/lib/typert.host.js +137 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/lib/typert.remote-client.js +72 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/package.json +100 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/client.js +298 -24
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +34 -32
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/README.md +81 -0
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/README.zh.md +81 -0
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/cordis.patch.yml +8 -0
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/icon.svg +5 -0
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/package.json +52 -0
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/AutocompleteHistory-BJXpeT8x.js +73 -0
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{FormatterActions-FcPgI0uV.js → FormatterActions-D6HaA-6R.js} +17 -6
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/MapUtilities-C6UNTa-e.js +50 -0
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/ResolverBase-BwI5i_Uj.js +33 -0
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/Runnable-Mz0aa-Zm.js +22 -0
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/StorageItem-_wZ3i4k_.js +12 -0
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/StringUtilities-CMDxNrEc.js +190 -0
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{accessibility-BY7oM_Zr.js → accessibility-B8zUkXQh.js} +225 -226
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{acorn-_jSanihy.js → acorn-yx0Qbj0X.js} +58 -51
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{adorners-CGSl65ls.js → adorners-DUGSZ7j5.js} +2 -4
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{ai_assistance-B1wOs26S.js → ai_assistance-Clc1xIf6.js} +571 -558
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{angular-Dutmu-L9.js → angular-CyYAyotN.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{animation-1CaxAvi1.js → animation-Cb5WQenF.js} +91 -92
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{application-a6KsIIks.js → application-oBBqvcZp.js} +2237 -2232
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{autofill-DRlJ5WO3.js → autofill--bByRQmk.js} +24 -24
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/autofill_manager-XEkk9oZ5.js +59 -0
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{bindings-Cr5O2fL5.js → bindings-CAIo-k1a.js} +492 -462
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{browser-DL1S1Kiu.js → browser-DveWkZD5.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{browser_debugger-DfivmPio.js → browser_debugger--7vbe3d1.js} +146 -145
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{changes-CzTmqALz.js → changes-DjWi1v9d.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{changes-o7rU211I.js → changes-xRx2n786.js} +46 -45
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{code_highlighter-Bh9ro2mP.js → code_highlighter-H8UOTYgG.js} +6 -3
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{codemirror-CBR9VJma.js → codemirror-CENmPHF2.js} +157 -137
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{color_picker-D9TxczuM.js → color_picker-BIF87165.js} +273 -273
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{common-qd_KLeYO.js → common-DMSVbaSb.js} +1077 -1439
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{common-LSsbP0lU.js → common-Ec_cVEiV.js} +2683 -2500
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{common-DhyylFJO.js → common-kU2bwxmb.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{components-DB4oenRq.js → components-B3I3NG-4.js} +68 -67
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{components-CT445-PD.js → components-CaH94O_V.js} +170 -116
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{components-CSVBAbW3.js → components-CsKivuxU.js} +258 -293
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{console-DwIHHkNd.js → console-BmwBLvHk.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{console-VAMtSW-X.js → console-CUdjJ9Xp.js} +596 -601
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{console_counters-BpgnYGWt.js → console_counters-BScL6IPX.js} +26 -26
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{coverage-4LvbYA2T.js → coverage-HrH22f9l.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{coverage-CYnEOg6T.js → coverage-NhXPoU6-.js} +156 -150
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{cpp-CdElSCaB.js → cpp-DaQzQ7EV.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{css_overview-s6ziZpq8.js → css_overview-CxLMtTr9.js} +344 -345
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{data_grid-UqFJQMC9.js → data_grid-CWSfqJp7.js} +109 -102
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{developer_resources-BEGIXIcF.js → developer_resources-BATAp86N.js} +38 -37
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{diff-qn55JSCS.js → diff-DXcO6Sla.js} +24 -7
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{dom_extension-B0UaTHZj.js → dom_extension-BLny9Waw.js} +38 -14
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{elements-B5_H3hT1.js → elements-BU8z2iUE.js} +1881 -1776
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{elements-KASgrHtM.js → elements-Ck9kJ4zi.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{emulation-DZ65TT-w.js → emulation-BIhr0HsX.js} +61 -59
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{emulation-CbCy_GsY.js → emulation-CJ_3s3iH.js} +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{emulation-C518g-x2.js → emulation-CczS-vUV.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{emulation-3hQQL2yf.js → emulation-DSV_4uNT.js} +277 -271
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{event_listeners-DhTNoGOp.js → event_listeners-DnM83R-t.js} +63 -63
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/explain-D5jDyrH1.js +745 -0
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{greendev-yysgT4ng.js → greendev-IsUdA61g.js} +38 -38
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{heap_snapshot-CZt2KUPL.js → heap_snapshot-CTdRQlts.js} +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{helper-DbYCW1m0.js → helper-YgGAtBRb.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{helpers-C-Rya7xk.js → helpers-BQtqX6SJ.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{i18n--ZipiwZ9.js → i18n-BX_qxSex.js} +4 -3
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{icon_button-BKsdgzo3.js → icon_button-AiKYfeBf.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{inline_editor-DaZpS-8x.js → inline_editor-C2tEGunK.js} +218 -215
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{inspector_main-DkFTp37J.js → inspector_main-BqySmYv0.js} +75 -73
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{issue_counter-rspQhd2r.js → issue_counter-BX-KAvOZ.js} +22 -22
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{issues-DrqiU8Pw.js → issues-DaMGmAC2.js} +469 -468
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{issues_manager-DZmsx4wr.js → issues_manager-e2pmpVIp.js} +537 -599
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{java-7g_qfFa2.js → java-62KG1Vpd.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{layer_viewer-farvqWTo.js → layer_viewer-pReGOxmi.js} +101 -100
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{layers-BO25qbXj.js → layers-BsFRGUMJ.js} +22 -22
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{legacy-DOCLCisy.js → legacy-BYV0pRId.js} +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{legacy-Dv5Py_9p.js → legacy-md3HQs_7.js} +6124 -5944
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{less-DXiRNbd4.js → less-DmILOm_5.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{lighthouse-BvKq1-jB.js → lighthouse-BZB1Bmby.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{lighthouse-CawSQT5Y.js → lighthouse-NimZl1cI.js} +181 -191
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{linear_memory_inspector-CGR2Z7Ph.js → linear_memory_inspector-p2-Ih16z.js} +22 -22
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{live-metrics-4EBbno52.js → live-metrics-CTk3dlLJ.js} +73 -73
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{main-DY6diJ-3.js → main-B8aRedWL.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/main-CU6VhZTa.js +753 -0
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{markdown-tZoR6Bsu.js → markdown-rVMoMV9q.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{markdown_view-CxbhmCgQ.js → markdown_view-JGM1CTOq.js} +15 -12
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{marked-zGgfoDxO.js → marked-CGxJO_CC.js} +20 -14
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{media-DEVFcgOQ.js → media-Cf52Rd9o.js} +236 -234
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{media-BeuRvD7L.js → media-Z6GjdmRm.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{menus-Cjq-uD73.js → menus-Cu1y5CSe.js} +85 -83
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{mobile_throttling-CuGRbE5B.js → mobile_throttling-CvudVoXO.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{mobile_throttling-B_3ewTmi.js → mobile_throttling-dNBk2ECF.js} +174 -172
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{network-CpKopkw0.js → network-BX1qe3_D.js} +1237 -1230
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{network-C-3jvhoX.js → network-B_IYxadp.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{object_ui-cmgZzf81.js → object_ui-Bkc4pMRS.js} +255 -249
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{object_ui-BLzT-Z2e.js → object_ui-CYZ9Q9W6.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{perf_ui-uax9xKLn.js → perf_ui-Ch0z1TZ3.js} +409 -405
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{perf_ui-CYbvqQmF.js → perf_ui-Dlpk1iY7.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{performance_monitor-B_RXvxih.js → performance_monitor-BTc9fFSa.js} +55 -56
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{php-tl5gKrxu.js → php-DVXaM5js.js} +7 -5
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/platform-D4TUCh2P.js +7 -0
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{profiler-C7HGH_E8.js → profiler-CBSzVAE7.js} +707 -703
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{protocol_client-Cwf_jb8R.js → protocol_client-L4-X1Qrb.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/protocol_monitor-B0h70b5w.js +2 -0
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{protocol_monitor-DW-p-6yH.js → protocol_monitor-DOPDE4ZB.js} +221 -225
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{puppeteer-ZLIws8kb.js → puppeteer-xGpmPP-i.js} +71 -89
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{python-D9AdRkMm.js → python-kisakN4d.js} +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{quick_open-C_ga_4Hq.js → quick_open-BUuhuOIx.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{quick_open-DJB3P9Ki.js → quick_open-CdyeK7mh.js} +92 -94
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{recorder-DGA0ByVf.js → recorder-DJPAdS_H.js} +365 -365
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{request_link_icon-DPUTK49Y.js → request_link_icon-D2WGdvuX.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{root-DbVQo07X.js → root-DdvV-xPu.js} +52 -74
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{sass-BPQlMmw2.js → sass-CIsRpUiU.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{security-BvuW7HEs.js → security-D2VNjFFC.js} +175 -181
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{sensors-xT8kT9Ea.js → sensors-DjLhEaOA.js} +62 -62
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{settings-z07EmGki.js → settings-D4dmilBC.js} +235 -229
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{settings_ui-gaRa3Hhd.js → settings_ui-DJR_-8cd.js} +54 -53
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{snackbars-CGAwPElE.js → snackbars-DazoAb8B.js} +1169 -1172
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{snippets-Dfmqv8f-.js → snippets-BKl1jevC.js} +51 -50
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{source_frame-_RZ4t3FM.js → source_frame-DpMQZC8A.js} +166 -165
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{sources-DbXkdCVM.js → sources-BS1uHO2R.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{sources-C5ZQ_xfd.js → sources-D4DLpkXp.js} +1131 -1140
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{suggestion_input-Dw2hCSbK.js → suggestion_input-oulk6E-b.js} +6 -16
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{svelte-DJS1itbE.js → svelte-C62W4gaL.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{text_editor-DLc_XoDa.js → text_editor-zHwTtDDW.js} +374 -444
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{text_utils-ohNt_gua.js → text_utils-DWSliayn.js} +161 -82
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{theme_support-DXvy8kfg.js → theme_support-BF2WpOah.js} +49 -34
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{third-party-web-DGiPoc0U.js → third-party-web-Dm5IRT3g.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{timeline-E7l2B_oh.js → timeline-Dt3nmxBb.js} +2407 -2389
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{timeline-Cg6JhvmN.js → timeline-yO_pXh7Z.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{utils-CIWN0B30.js → utils-TeCpVsRE.js} +50 -52
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{vue-CjH9yovn.js → vue-rRx4yj6I.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{wast-CbGHiqaW.js → wast-BJdLzx63.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{web_audio-CbMU64Js.js → web_audio-DuonfZJu.js} +25 -25
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{webauthn-Dlb2Haex.js → webauthn-5JQ01zyM.js} +24 -24
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{whats_new-DtTF4nMn.js → whats_new-nGMut_wC.js} +18 -19
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{xml-DI9dcP5w.js → xml-qmN-BlAu.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/entrypoints/device_mode_emulation_frame/device_mode_emulation_frame.js +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/entrypoints/devtools_app/devtools_app.js +2444 -2443
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/entrypoints/formatter_worker/formatter_worker-entrypoint.js +116 -118
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/entrypoints/heap_snapshot_worker/heap_snapshot_worker-entrypoint.js +289 -192
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/entrypoints/lighthouse_worker/lighthouse_worker.js +428 -403
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.js +31 -44
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/models/live-metrics/web-vitals-injected/web-vitals-injected.generated.js +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/panels/recorder/injected/injected.generated.js +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/resource-manifest.json +387 -357
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/index.js +9 -0
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/README.md +78 -0
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/README.zh.md +78 -0
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/cordis.patch.yml +16 -0
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/icon.svg +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/package.json +50 -0
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/lib/client.js +15 -7
- package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/README.md +82 -0
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/README.zh.md +82 -0
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/cordis.patch.yml +14 -0
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/icon.svg +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-session-search/package.json +50 -0
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/README.md +78 -0
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/README.zh.md +78 -0
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/cordis.patch.yml +12 -0
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/icon.svg +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/package.json +49 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +8 -6
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/worker.js +15 -1
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +10 -8
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/README.md +78 -0
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/README.zh.md +78 -0
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/cordis.patch.yml +19 -0
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/icon.svg +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/package.json +51 -0
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/lib/index.js +11 -16
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/README.i18n.yaml +46 -0
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/README.md +96 -0
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/README.zh.md +96 -0
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/cordis.patch.yml +5 -0
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/icon.svg +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/lib/index.js +66 -0
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/package.json +67 -0
- package/node_modules/@deepseek-ai/dsh-experimental-translator/README.i18n.yaml +49 -0
- package/node_modules/@deepseek-ai/dsh-experimental-translator/README.md +124 -0
- package/node_modules/@deepseek-ai/dsh-experimental-translator/README.zh.md +124 -0
- package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/index.js +935 -0
- package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/types/deepseek.js +283 -0
- package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/types/error.js +14 -0
- package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/types/index.js +148 -0
- package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/types/provider.js +215 -0
- package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/types/storage.js +215 -0
- package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/types/types.js +2 -0
- package/node_modules/@deepseek-ai/dsh-experimental-translator/package.json +68 -0
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +6 -6
- package/node_modules/{@octokit/request-error → @deepseek-ai/dsh-experimental-worktree}/LICENSE +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/README.i18n.yaml +37 -0
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/README.md +98 -0
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/README.zh.md +98 -0
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/lib/index.js +368 -0
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/lib/types/directory.d.ts +7 -0
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/lib/types/index.d.ts +54 -0
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/lib/types/process.d.ts +29 -0
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/lib/types/types.d.ts +20 -0
- package/node_modules/@deepseek-ai/dsh-experimental-worktree/package.json +58 -0
- package/node_modules/@deepseek-ai/dsh-file-reference/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-file-reference-local/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-file-reference-local/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-file-reference-local/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-file-reference-local/lib/index.js +15 -10
- package/node_modules/@deepseek-ai/dsh-file-reference-local/lib/types/index.js +12 -10
- package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +15 -11
- package/node_modules/@deepseek-ai/dsh-fs/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +9 -5
- package/node_modules/@deepseek-ai/dsh-goal/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-headless/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-headless/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-headless/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-headless/cordis.patch.yml +0 -1
- package/node_modules/@deepseek-ai/dsh-headless/lib/index.js +20 -1
- package/node_modules/@deepseek-ai/dsh-headless/package.json +24 -17
- package/node_modules/@deepseek-ai/dsh-hmr/lib/index.js +9 -3
- package/node_modules/@deepseek-ai/dsh-hmr/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-home-paths/README.i18n.yaml +13 -10
- package/node_modules/@deepseek-ai/dsh-home-paths/README.md +16 -5
- package/node_modules/@deepseek-ai/dsh-home-paths/README.zh.md +16 -5
- package/node_modules/@deepseek-ai/dsh-home-paths/lib/index.js +65 -4
- package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/README.md +5 -3
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/README.zh.md +5 -3
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/lib/index.js +30 -18
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +15 -13
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-host-webserver/README.i18n.yaml +23 -20
- package/node_modules/@deepseek-ai/dsh-host-webserver/README.md +31 -10
- package/node_modules/@deepseek-ai/dsh-host-webserver/README.zh.md +31 -10
- package/node_modules/@deepseek-ai/dsh-host-webserver/lib/index.js +207 -63
- package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +5 -3
- package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-jobs/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm/README.md +19 -0
- package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +19 -0
- package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +21 -8
- package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +12 -4
- package/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +19 -8
- package/node_modules/@deepseek-ai/dsh-llm/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +37 -14
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +37 -37
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/index.js +8 -2
- package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +10 -4
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +10 -4
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +150 -61
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-native-command/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-no-progress-reminder/lib/index.js +21 -8
- package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-otel/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-otel/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-otel/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-otel/lib/index.js +14 -4
- package/node_modules/@deepseek-ai/dsh-otel/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +9 -5
- package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-persona/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-plan-mode/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-plan-mode/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-plan-mode/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-plan-mode/lib/index.js +31 -26
- package/node_modules/@deepseek-ai/dsh-plan-mode/lib/types/index.js +35 -27
- package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +7 -1
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +7 -1
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +142 -20
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +24 -17
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +19 -12
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/build-approval.js +35 -5
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +55 -24
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/official-install-target.js +54 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/lib/index.js +22 -13
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/lib/types/index.js +25 -15
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.md +2 -3
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.zh.md +2 -3
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/index.js +37 -12
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +21 -8
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-sandbox/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +30 -30
- package/node_modules/@deepseek-ai/dsh-scope/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +14 -14
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +5 -5
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +5 -5
- package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +4 -9
- package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +93 -11
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +23 -21
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/README.md +6 -6
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/README.zh.md +6 -6
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/cordis.patch.yml +9 -0
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +29 -26
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.md +6 -1
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.zh.md +6 -1
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-session/README.i18n.yaml +7 -4
- package/node_modules/@deepseek-ai/dsh-session/README.md +13 -1
- package/node_modules/@deepseek-ai/dsh-session/README.zh.md +13 -1
- package/node_modules/@deepseek-ai/dsh-session/lib/index.js +134 -18
- package/node_modules/@deepseek-ai/dsh-session/lib/types/index.js +120 -5
- package/node_modules/@deepseek-ai/dsh-session/lib/types/known-event-types.js +1 -0
- package/node_modules/@deepseek-ai/dsh-session/lib/types/types.js +14 -14
- package/node_modules/@deepseek-ai/dsh-session/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-session-format/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-format/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-format/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-format/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +4 -1
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +4 -1
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-session-persistence/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-persistence/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-session-persistence/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.md +4 -0
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.zh.md +4 -0
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/index.js +23 -19
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +92 -12
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-session-projection/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-projection/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-projection/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-projection/lib/index.js +1 -2
- package/node_modules/@deepseek-ai/dsh-session-projection/lib/types/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-session-projection/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-session-query/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-session-query/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-session-query/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-session-query/lib/index.js +9 -7
- package/node_modules/@deepseek-ai/dsh-session-query/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-session-query-sqlite/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-query-sqlite/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-query-sqlite/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +9 -5
- package/node_modules/@deepseek-ai/dsh-session-reference/package.json +35 -34
- package/node_modules/@deepseek-ai/dsh-session-stats/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/lib/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +22 -24
- package/node_modules/@deepseek-ai/dsh-session-title/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-session-title/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-session-title/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-session-title/lib/index.js +8 -4
- package/node_modules/@deepseek-ai/dsh-session-title/lib/types/index.js +9 -4
- package/node_modules/@deepseek-ai/dsh-session-title/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/README.i18n.yaml +64 -0
- package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/README.md +120 -0
- package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/README.zh.md +120 -0
- package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/lib/index.js +127 -0
- package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/package.json +48 -0
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/README.i18n.yaml +16 -16
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/README.md +10 -10
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/README.zh.md +10 -10
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/lib/index.js +91 -8
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +15 -13
- package/node_modules/@deepseek-ai/dsh-session-title-llm/README.i18n.yaml +29 -29
- package/node_modules/@deepseek-ai/dsh-session-title-llm/README.md +21 -20
- package/node_modules/@deepseek-ai/dsh-session-title-llm/README.zh.md +21 -20
- package/node_modules/@deepseek-ai/dsh-session-title-llm/lib/index.js +60 -81
- package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-settings/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-shell/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-shell-env/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-skill/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-skill-badge/README.i18n.yaml +13 -13
- package/node_modules/@deepseek-ai/dsh-skill-badge/README.md +10 -8
- package/node_modules/@deepseek-ai/dsh-skill-badge/README.zh.md +10 -8
- package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-skill-filesystem/lib/index.js +17 -14
- package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-skill-office/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-spill/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-spill-local/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-storage-json/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +34 -34
- package/node_modules/@deepseek-ai/dsh-subagent/README.md +32 -26
- package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +32 -26
- package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +1552 -1477
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +59 -48
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.remote-client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/activation.js +112 -0
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/catalog.js +34 -30
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/child-agent.js +1 -3
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/continuation-messages.js +18 -23
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/descriptor.js +20 -21
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +75 -95
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/lifecycle.js +9 -100
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/list-children.js +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/manager.js +1294 -0
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/out-of-process.js +25 -45
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/structured.js +130 -0
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/types.js +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent/package.json +48 -48
- package/node_modules/@deepseek-ai/dsh-subagent-acp/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-subagent-acp/README.md +3 -4
- package/node_modules/@deepseek-ai/dsh-subagent-acp/README.zh.md +3 -4
- package/node_modules/@deepseek-ai/dsh-subagent-acp/lib/index.js +5 -55
- package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/README.i18n.yaml +14 -14
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/README.md +8 -9
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/README.zh.md +8 -9
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/lib/index.js +0 -5
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +11 -13
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.i18n.yaml +14 -14
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.md +6 -7
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.zh.md +6 -7
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/lib/index.js +0 -4
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +15 -16
- package/node_modules/@deepseek-ai/dsh-subprocess/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.md +2 -1
- package/node_modules/@deepseek-ai/dsh-subprocess-local/README.zh.md +2 -1
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/index.js +5 -3
- package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-system-prompt/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-system-prompt/README.md +10 -6
- package/node_modules/@deepseek-ai/dsh-system-prompt/README.zh.md +10 -6
- package/node_modules/@deepseek-ai/dsh-system-prompt/lib/index.js +50 -9
- package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-terminal/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-terminal/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-terminal/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-terminal/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-terminal-bash/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-terminal-bash/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-terminal-bash/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-terminal-bash/lib/index.js +3 -2
- package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +20 -18
- package/node_modules/@deepseek-ai/dsh-time-context/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-timeout/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-timeout/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-timeout/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-timeout/lib/index.js +12 -3
- package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +21 -8
- package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-token-meter/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash/lib/index.js +35 -21
- package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +33 -30
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/lib/index.js +7 -3
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +22 -20
- package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +293 -94
- package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +6 -3
- package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +6 -3
- package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +69 -56
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +32 -30
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/lib/index.js +25 -21
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +27 -25
- package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-tool-jobs/README.i18n.yaml +3 -3
- package/node_modules/@deepseek-ai/dsh-tool-jobs/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-jobs/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-tool-present/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-present/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-tool-present/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-tool-present/lib/index.js +7 -4
- package/node_modules/@deepseek-ai/dsh-tool-present/lib/types/index.js +3 -5
- package/node_modules/@deepseek-ai/dsh-tool-present/package.json +19 -17
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.md +4 -1
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.zh.md +4 -1
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/lib/index.js +37 -20
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +31 -28
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.md +3 -0
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.zh.md +3 -0
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/lib/index.js +7 -3
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +24 -22
- package/node_modules/@deepseek-ai/dsh-tool-ralph/README.i18n.yaml +3 -3
- package/node_modules/@deepseek-ai/dsh-tool-ralph/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-ralph/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-tool-session-query/README.i18n.yaml +97 -0
- package/node_modules/@deepseek-ai/dsh-tool-session-query/README.md +186 -0
- package/node_modules/@deepseek-ai/dsh-tool-session-query/README.zh.md +186 -0
- package/node_modules/@deepseek-ai/dsh-tool-session-query/lib/index.js +1034 -0
- package/node_modules/@deepseek-ai/dsh-tool-session-query/package.json +61 -0
- package/node_modules/@deepseek-ai/dsh-tool-skill/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-skill/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-tool-skill/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-tool-skill/lib/index.js +97 -5
- package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +16 -14
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +51 -51
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +27 -29
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +26 -28
- package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +108 -237
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +20 -24
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.i18n.yaml +8 -8
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.md +4 -5
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.zh.md +4 -5
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-terminal/README.i18n.yaml +100 -0
- package/node_modules/@deepseek-ai/dsh-tool-terminal/README.md +186 -0
- package/node_modules/@deepseek-ai/dsh-tool-terminal/README.zh.md +186 -0
- package/node_modules/@deepseek-ai/dsh-tool-terminal/lib/index.js +650 -0
- package/node_modules/@deepseek-ai/dsh-tool-terminal/package.json +64 -0
- package/node_modules/@deepseek-ai/dsh-tool-todo/lib/types/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-tool-web/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-working-directory/README.i18n.yaml +46 -0
- package/node_modules/@deepseek-ai/dsh-tool-working-directory/README.md +90 -0
- package/node_modules/@deepseek-ai/dsh-tool-working-directory/README.zh.md +90 -0
- package/node_modules/@deepseek-ai/dsh-tool-working-directory/lib/index.js +45 -0
- package/node_modules/@deepseek-ai/dsh-tool-working-directory/package.json +45 -0
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-tools/README.i18n.yaml +12 -12
- package/node_modules/@deepseek-ai/dsh-tools/README.md +9 -7
- package/node_modules/@deepseek-ai/dsh-tools/README.zh.md +9 -7
- package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +17 -19
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/index.js +17 -10
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/ptc.js +4 -2
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/py-types.js +1 -2
- package/node_modules/@deepseek-ai/dsh-tools/package.json +24 -22
- package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-tui-app/README.md +5 -4
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +5 -4
- package/node_modules/@deepseek-ai/dsh-tui-app/cordis.patch.yml +0 -1
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +117 -53
- package/node_modules/@deepseek-ai/dsh-tui-app/package.json +79 -79
- package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-user-approval/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +9 -5
- package/node_modules/@deepseek-ai/dsh-user-questions/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-util-time/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-util-values/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-web/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +18 -21
- package/node_modules/@deepseek-ai/dsh-web-app/README.md +30 -22
- package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +30 -22
- package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +18 -24
- package/node_modules/@deepseek-ai/dsh-web-app/lib/index.js +44 -41
- package/node_modules/@deepseek-ai/dsh-web-app/lib/startup.js +17 -6
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +142 -143
- package/node_modules/@deepseek-ai/dsh-web-app/presets/cordis.patch.yml +1 -26
- package/node_modules/@deepseek-ai/dsh-web-app/presets/ptc.patch.yml +1 -26
- package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +1 -26
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-C5TXjxs_.js +127 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-CyN1a9tV.css +1 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/asciidoc-CSVQ5wI8.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{bat-BkioyH1T.js → bat-CickPsom.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/cpp-DddhVWhK.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{graphql-DujV8YkJ.js → graphql-B1S3xuDR.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{http-DcV90OkR.js → http-Ddl8tKhJ.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{julia-BpJ6DjL_.js → julia-BfSmLjIk.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{latex-B4C7GdlO.js → latex-B2nUCzCX.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{php-LEPfNACG.js → php-G1-V1D4R.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{powershell-Dpen1YoG.js → powershell-BmBUJMz7.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/r-Cf5RLm7j.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{rst-BbocfKWr.js → rst-qb8661zE.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{ruby-R292Iif0.js → ruby-D3_WCtdO.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{scala-C151Ov-r.js → scala-CqE71os6.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{svelte-DNMY6jOf.js → svelte-Dhjv0SwI.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/swift-C2oV4EkX.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/system-verilog-0hqHdDBg.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{vb-D17OF-Vu.js → vb-Cu-pLBUe.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/verilog-nZwndyjY.js +2 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{vue-Dq2x6432.js → vue-CjW_c7H6.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/{vendor-CCJJTK99.js → vendor-BlFz1smR.js} +32 -32
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/vendor-D2ODLP6r.css +1 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +4 -4
- package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +25 -22
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-win32-process/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-workflow/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/README.i18n.yaml +10 -10
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/README.md +5 -5
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/README.zh.md +5 -5
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/lib/index.js +25 -14
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +36 -33
- package/node_modules/@deepseek-ai/dsh-working-directory/README.i18n.yaml +46 -0
- package/node_modules/@deepseek-ai/dsh-working-directory/README.md +90 -0
- package/node_modules/@deepseek-ai/dsh-working-directory/README.zh.md +90 -0
- package/node_modules/@deepseek-ai/dsh-working-directory/lib/index.js +167 -0
- package/node_modules/@deepseek-ai/dsh-working-directory/package.json +56 -0
- package/node_modules/@deepseek-ai/dsh-workspace/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-workspace-changes/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/index.js +25 -34
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/capture.js +0 -27
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/index.js +22 -4
- package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/recorder.js +4 -8
- package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +18 -11
- package/node_modules/@earendil-works/pi-ai/README.md +16 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +30 -30
- package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-config.js +76 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +11 -79
- package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +58 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/classifier-shared.js +98 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-workers-ai-system-one.js +15 -9
- package/node_modules/@earendil-works/pi-ai/dist/api/lazy.js +4 -3
- package/node_modules/@earendil-works/pi-ai/dist/api/llama-cpp-classify.js +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +2 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +5 -3
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +6 -3
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-decisions.js +162 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-decisions.lazy.js +4 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +6 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +9 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +10 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/system-one-shared.js +5 -89
- package/node_modules/@earendil-works/pi-ai/dist/api/typesafe-system-one.js +2 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/anthropic.js +65 -7
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-chatgpt.js +11 -14
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-codex.js +4 -4
- package/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js +51 -27
- package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +4 -4
- package/node_modules/@earendil-works/pi-ai/dist/models.js +6 -8
- package/node_modules/@earendil-works/pi-ai/dist/providers/all.js +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/azure.js +46 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/azure.models.js +8 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/amazon-bedrock.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/azure.json +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-workers-ai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/google.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/mistral.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/radius.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +25 -8
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai.js +12 -3
- package/node_modules/@earendil-works/pi-ai/dist/providers/radius.js +4 -12
- package/node_modules/@earendil-works/pi-ai/dist/utils/estimate.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js +25 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/model-operations.js +6 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/oauth-page.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/provider-retry.js +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +6 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/transcript.js +5 -2
- package/node_modules/@earendil-works/pi-ai/package.json +3 -3
- package/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
- package/node_modules/@modelcontextprotocol/client/dist/index.cjs +474 -114
- package/node_modules/@modelcontextprotocol/client/dist/index.mjs +468 -115
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs +1 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs +1 -1
- package/node_modules/@modelcontextprotocol/client/dist/{src-NAgB4Mp8.cjs → src-oZBjf3U1.cjs} +131 -41
- package/node_modules/@modelcontextprotocol/client/dist/{src-D_zzAWoS.mjs → src-xKF0PJN-.mjs} +120 -36
- package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs +8 -2
- package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs +8 -2
- package/node_modules/@modelcontextprotocol/client/package.json +4 -4
- package/node_modules/@modelcontextprotocol/core/dist/{auth-CUe6YdwF.mjs → auth-BNDyLTqp.mjs} +7 -4
- package/node_modules/@modelcontextprotocol/core/dist/{auth-CfDMXiII.cjs → auth-D1CeV_Jr.cjs} +7 -4
- package/node_modules/@modelcontextprotocol/core/dist/index.cjs +1 -1
- package/node_modules/@modelcontextprotocol/core/dist/index.mjs +1 -1
- package/node_modules/@modelcontextprotocol/core/dist/internal.cjs +1 -1
- package/node_modules/@modelcontextprotocol/core/dist/internal.mjs +1 -1
- package/node_modules/@modelcontextprotocol/core/package.json +1 -1
- package/node_modules/@opentelemetry/api-logs/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/api-logs/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/api-logs/build/src/types/LogRecord.js +1 -1
- package/node_modules/@opentelemetry/api-logs/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/api-logs/package.json +7 -7
- package/node_modules/@opentelemetry/core/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/core/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/core/build/src/ExportResult.js +1 -1
- package/node_modules/@opentelemetry/core/build/src/trace/rpc-metadata.js +1 -1
- package/node_modules/@opentelemetry/core/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/core/package.json +7 -7
- package/node_modules/@opentelemetry/otlp-exporter-base/README.md +30 -0
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esm/ExporterMetrics.js +104 -0
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esm/OTLPExporterBase.js +3 -0
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esm/configuration/create-legacy-browser-delegate.js +36 -2
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esm/index-browser-http.js +1 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esm/index-node-http.js +1 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esm/index.js +1 -0
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-browser-http-export-delegate.js +8 -4
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-export-delegate.js +19 -6
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-http-export-delegate.js +30 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esm/otlp-network-export-delegate.js +2 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esm/semconv.js +100 -0
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/ExporterMetrics.js +104 -0
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/OTLPExporterBase.js +3 -0
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/configuration/create-legacy-browser-delegate.js +36 -2
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/index-browser-http.js +1 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/index-node-http.js +1 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/index.js +1 -0
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/otlp-browser-http-export-delegate.js +8 -4
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/otlp-export-delegate.js +19 -6
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/otlp-http-export-delegate.js +30 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/otlp-network-export-delegate.js +2 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/semconv.js +100 -0
- package/node_modules/@opentelemetry/otlp-exporter-base/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/src/ExporterMetrics.js +108 -0
- package/node_modules/@opentelemetry/otlp-exporter-base/build/src/OTLPExporterBase.js +3 -0
- package/node_modules/@opentelemetry/otlp-exporter-base/build/src/configuration/create-legacy-browser-delegate.js +38 -3
- package/node_modules/@opentelemetry/otlp-exporter-base/build/src/configuration/legacy-node-configuration.js +1 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/src/index-browser-http.js +2 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/src/index-node-http.js +2 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/src/index.js +3 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/src/otlp-browser-http-export-delegate.js +8 -4
- package/node_modules/@opentelemetry/otlp-exporter-base/build/src/otlp-export-delegate.js +19 -6
- package/node_modules/@opentelemetry/otlp-exporter-base/build/src/otlp-http-export-delegate.js +32 -2
- package/node_modules/@opentelemetry/otlp-exporter-base/build/src/otlp-network-export-delegate.js +2 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/build/src/semconv.js +103 -0
- package/node_modules/@opentelemetry/otlp-exporter-base/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/otlp-exporter-base/package.json +9 -9
- package/node_modules/@opentelemetry/otlp-transformer/build/esm/i-exporter-metrics-helper.js +6 -0
- package/node_modules/@opentelemetry/otlp-transformer/build/esm/index.js +3 -0
- package/node_modules/@opentelemetry/otlp-transformer/build/esm/logs/index.js +7 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esm/logs/json/logs.js +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esm/logs/protobuf/logs.js +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esm/metrics/index.js +12 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/index.js +4 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esnext/i-exporter-metrics-helper.js +6 -0
- package/node_modules/@opentelemetry/otlp-transformer/build/esnext/index.js +3 -0
- package/node_modules/@opentelemetry/otlp-transformer/build/esnext/logs/index.js +7 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esnext/logs/json/logs.js +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esnext/logs/protobuf/logs.js +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esnext/metrics/index.js +12 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/esnext/trace/index.js +4 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/src/i-exporter-metrics-helper.js +7 -0
- package/node_modules/@opentelemetry/otlp-transformer/build/src/index.js +7 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/src/logs/index.js +8 -0
- package/node_modules/@opentelemetry/otlp-transformer/build/src/logs/internal-types.js +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/src/logs/json/logs.js +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/src/logs/protobuf/logs.js +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/src/metrics/index.js +13 -0
- package/node_modules/@opentelemetry/otlp-transformer/build/src/metrics/internal-types.js +1 -1
- package/node_modules/@opentelemetry/otlp-transformer/build/src/trace/index.js +5 -0
- package/node_modules/@opentelemetry/otlp-transformer/build/src/trace/internal-types.js +2 -2
- package/node_modules/@opentelemetry/otlp-transformer/package.json +15 -15
- package/node_modules/@opentelemetry/resources/build/esm/detectors/platform/node/ServiceInstanceIdDetector.js +6 -1
- package/node_modules/@opentelemetry/resources/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/resources/build/esnext/detectors/platform/node/ServiceInstanceIdDetector.js +6 -1
- package/node_modules/@opentelemetry/resources/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/ServiceInstanceIdDetector.js +6 -1
- package/node_modules/@opentelemetry/resources/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/resources/package.json +9 -9
- package/node_modules/@opentelemetry/sdk-logs/README.md +5 -0
- package/node_modules/@opentelemetry/sdk-logs/build/esm/LogRecordImpl.js +33 -6
- package/node_modules/@opentelemetry/sdk-logs/build/esm/LoggerProvider.js +3 -4
- package/node_modules/@opentelemetry/sdk-logs/build/esm/MultiLogRecordProcessor.js +3 -5
- package/node_modules/@opentelemetry/sdk-logs/build/esm/export/BatchLogRecordProcessorBase.js +19 -4
- package/node_modules/@opentelemetry/sdk-logs/build/esm/export/LogRecordProcessorMetrics.js +63 -0
- package/node_modules/@opentelemetry/sdk-logs/build/esm/export/{SdkLogRecord.js → ReadWriteLogRecord.js} +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esm/export/SimpleLogRecordProcessor.js +10 -0
- package/node_modules/@opentelemetry/sdk-logs/build/esm/internal/LoggerProviderSharedState.js +2 -4
- package/node_modules/@opentelemetry/sdk-logs/build/esm/semconv.js +106 -0
- package/node_modules/@opentelemetry/sdk-logs/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/LogRecordImpl.js +33 -6
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/LoggerProvider.js +3 -4
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/MultiLogRecordProcessor.js +3 -5
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/export/BatchLogRecordProcessorBase.js +19 -4
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/export/LogRecordProcessorMetrics.js +63 -0
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/export/{SdkLogRecord.js → ReadWriteLogRecord.js} +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/export/SimpleLogRecordProcessor.js +10 -0
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/internal/LoggerProviderSharedState.js +2 -4
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/semconv.js +106 -0
- package/node_modules/@opentelemetry/sdk-logs/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/src/LogRecordImpl.js +33 -6
- package/node_modules/@opentelemetry/sdk-logs/build/src/LoggerProvider.js +3 -4
- package/node_modules/@opentelemetry/sdk-logs/build/src/MultiLogRecordProcessor.js +3 -5
- package/node_modules/@opentelemetry/sdk-logs/build/src/export/BatchLogRecordProcessorBase.js +18 -3
- package/node_modules/@opentelemetry/sdk-logs/build/src/export/LogRecordProcessorMetrics.js +67 -0
- package/node_modules/@opentelemetry/sdk-logs/build/src/export/{SdkLogRecord.js → ReadWriteLogRecord.js} +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/src/export/SimpleLogRecordProcessor.js +10 -0
- package/node_modules/@opentelemetry/sdk-logs/build/src/internal/LoggerProviderSharedState.js +2 -4
- package/node_modules/@opentelemetry/sdk-logs/build/src/semconv.js +107 -1
- package/node_modules/@opentelemetry/sdk-logs/build/src/utils/validation.js +1 -1
- package/node_modules/@opentelemetry/sdk-logs/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-logs/package.json +11 -11
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/aggregator/ExponentialHistogram.js +3 -3
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/aggregator/exponential-histogram/mapping/ExponentMapping.js +3 -8
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/aggregator/exponential-histogram/mapping/LogarithmMapping.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/aggregator/exponential-histogram/mapping/ieee754.js +24 -23
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esm/view/Aggregation.js +4 -8
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/aggregator/ExponentialHistogram.js +3 -3
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/aggregator/exponential-histogram/mapping/ExponentMapping.js +3 -8
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/aggregator/exponential-histogram/mapping/LogarithmMapping.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/aggregator/exponential-histogram/mapping/ieee754.js +24 -23
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/esnext/view/Aggregation.js +4 -8
- package/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/ExponentialHistogram.js +3 -3
- package/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/ExponentMapping.js +3 -8
- package/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/LogarithmMapping.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/ieee754.js +26 -25
- package/node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/types.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/src/export/AggregationTemporality.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/src/export/MetricData.js +2 -2
- package/node_modules/@opentelemetry/sdk-metrics/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/build/src/view/AggregationOption.js +1 -1
- package/node_modules/@opentelemetry/sdk-metrics/package.json +9 -9
- package/node_modules/@opentelemetry/sdk-trace/build/esm/TracerProvider.js +2 -2
- package/node_modules/@opentelemetry/sdk-trace/build/esm/export/SimpleSpanProcessor.js +19 -3
- package/node_modules/@opentelemetry/sdk-trace/build/esm/sampler/TraceIdRatioBasedSampler.js +2 -1
- package/node_modules/@opentelemetry/sdk-trace/build/esm/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/TracerProvider.js +2 -2
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/export/SimpleSpanProcessor.js +19 -3
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/sampler/TraceIdRatioBasedSampler.js +2 -1
- package/node_modules/@opentelemetry/sdk-trace/build/esnext/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/src/Sampler.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace/build/src/TracerProvider.js +2 -2
- package/node_modules/@opentelemetry/sdk-trace/build/src/export/SimpleSpanProcessor.js +19 -3
- package/node_modules/@opentelemetry/sdk-trace/build/src/sampler/TraceIdRatioBasedSampler.js +2 -1
- package/node_modules/@opentelemetry/sdk-trace/build/src/version.js +1 -1
- package/node_modules/@opentelemetry/sdk-trace/package.json +11 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/cache/EndpointCache.js +2 -1
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/node/package.json +13 -3
- package/node_modules/node-addon-native-custom-loader/package.json +1 -1
- package/node_modules/node-addon-require-builtin/package.json +2 -2
- package/node_modules/node-pty/lib/windowsPtyAgent.js +2 -0
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/ws/lib/permessage-deflate.js +3 -1
- package/node_modules/ws/lib/receiver.js +15 -32
- package/node_modules/ws/lib/websocket-server.js +4 -4
- package/node_modules/ws/lib/websocket.js +4 -4
- package/node_modules/ws/package.json +5 -1
- package/package.json +342 -336
- package/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.js +0 -28
- package/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.mjs +0 -25
- package/node_modules/@anthropic-ai/sdk/src/lib/tools/CompactionControl.ts +0 -57
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/autofill_manager-CxcaWQiv.js +0 -58
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/explain-CNIdfhW8.js +0 -747
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/main-BLMNMheT.js +0 -755
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/platform-BzB373NB.js +0 -600
- package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/protocol_monitor-mWRlFT7z.js +0 -2
- package/node_modules/@deepseek-ai/dsh-hook-protocol/README.i18n.yaml +0 -61
- package/node_modules/@deepseek-ai/dsh-hook-protocol/README.md +0 -142
- package/node_modules/@deepseek-ai/dsh-hook-protocol/README.zh.md +0 -142
- package/node_modules/@deepseek-ai/dsh-hook-protocol/lib/index.js +0 -377
- package/node_modules/@deepseek-ai/dsh-hooks-claude-code/README.i18n.yaml +0 -88
- package/node_modules/@deepseek-ai/dsh-hooks-claude-code/README.md +0 -193
- package/node_modules/@deepseek-ai/dsh-hooks-claude-code/README.zh.md +0 -193
- package/node_modules/@deepseek-ai/dsh-hooks-claude-code/lib/index.js +0 -405
- package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +0 -57
- package/node_modules/@deepseek-ai/dsh-hooks-codex/README.i18n.yaml +0 -88
- package/node_modules/@deepseek-ai/dsh-hooks-codex/README.md +0 -188
- package/node_modules/@deepseek-ai/dsh-hooks-codex/README.zh.md +0 -188
- package/node_modules/@deepseek-ai/dsh-hooks-codex/lib/index.js +0 -346
- package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +0 -55
- package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/README.i18n.yaml +0 -106
- package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/README.md +0 -176
- package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/README.zh.md +0 -176
- package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/lib/index.js +0 -254
- package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +0 -59
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DBK_Mahs.css +0 -1
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DjTxlw_T.js +0 -127
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/asciidoc-Ve4PFQV2.js +0 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/cpp-DIPi6g--.js +0 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/r-Dspwwk_N.js +0 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/swift-D82vCrfD.js +0 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/system-verilog-CnnmHF94.js +0 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/verilog-BQ8w6xss.js +0 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/vendor-BNsW4eBh.css +0 -1
- package/node_modules/@deepseek-ai/dsh-webhook/README.i18n.yaml +0 -46
- package/node_modules/@deepseek-ai/dsh-webhook/README.md +0 -86
- package/node_modules/@deepseek-ai/dsh-webhook/README.zh.md +0 -86
- package/node_modules/@deepseek-ai/dsh-webhook/lib/index.js +0 -352
- package/node_modules/@deepseek-ai/dsh-webhook/lib/types/brand.js +0 -26
- package/node_modules/@deepseek-ai/dsh-webhook/lib/types/index.js +0 -138
- package/node_modules/@deepseek-ai/dsh-webhook/lib/types/invariant.js +0 -38
- package/node_modules/@deepseek-ai/dsh-webhook/lib/types/session.js +0 -211
- package/node_modules/@deepseek-ai/dsh-webhook/lib/types/types.js +0 -3
- package/node_modules/@deepseek-ai/dsh-webhook/package.json +0 -62
- package/node_modules/@deepseek-ai/dsh-webhook-github/README.i18n.yaml +0 -37
- package/node_modules/@deepseek-ai/dsh-webhook-github/README.md +0 -86
- package/node_modules/@deepseek-ai/dsh-webhook-github/README.zh.md +0 -86
- package/node_modules/@deepseek-ai/dsh-webhook-github/lib/index.js +0 -193
- package/node_modules/@deepseek-ai/dsh-webhook-github/lib/types/body.js +0 -65
- package/node_modules/@deepseek-ai/dsh-webhook-github/lib/types/handler.js +0 -115
- package/node_modules/@deepseek-ai/dsh-webhook-github/lib/types/index.js +0 -39
- package/node_modules/@deepseek-ai/dsh-webhook-github/lib/types/types.js +0 -3
- package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +0 -55
- package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.js +0 -14
- package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.js +0 -8
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/azure-openai-responses.json +0 -1
- package/node_modules/@octokit/openapi-types/LICENSE +0 -7
- package/node_modules/@octokit/openapi-types/README.md +0 -17
- package/node_modules/@octokit/openapi-types/package.json +0 -21
- package/node_modules/@octokit/openapi-webhooks-types/LICENSE +0 -7
- package/node_modules/@octokit/openapi-webhooks-types/README.md +0 -17
- package/node_modules/@octokit/openapi-webhooks-types/package.json +0 -18
- package/node_modules/@octokit/request-error/README.md +0 -93
- package/node_modules/@octokit/request-error/dist-src/index.js +0 -41
- package/node_modules/@octokit/request-error/package.json +0 -50
- package/node_modules/@octokit/types/LICENSE +0 -7
- package/node_modules/@octokit/types/README.md +0 -65
- package/node_modules/@octokit/types/package.json +0 -41
- package/node_modules/@octokit/webhooks/LICENSE.md +0 -20
- package/node_modules/@octokit/webhooks/README.md +0 -786
- package/node_modules/@octokit/webhooks/dist-bundle/index.js +0 -871
- package/node_modules/@octokit/webhooks/dist-src/concat-uint8array.js +0 -22
- package/node_modules/@octokit/webhooks/dist-src/create-logger.js +0 -20
- package/node_modules/@octokit/webhooks/dist-src/event-handler/index.js +0 -27
- package/node_modules/@octokit/webhooks/dist-src/event-handler/on.js +0 -31
- package/node_modules/@octokit/webhooks/dist-src/event-handler/receive.js +0 -61
- package/node_modules/@octokit/webhooks/dist-src/event-handler/remove-listener.js +0 -20
- package/node_modules/@octokit/webhooks/dist-src/event-handler/validate-event-name.js +0 -33
- package/node_modules/@octokit/webhooks/dist-src/event-handler/wrap-error-handler.js +0 -18
- package/node_modules/@octokit/webhooks/dist-src/generated/webhook-identifiers.js +0 -0
- package/node_modules/@octokit/webhooks/dist-src/generated/webhook-names.js +0 -328
- package/node_modules/@octokit/webhooks/dist-src/index.js +0 -48
- package/node_modules/@octokit/webhooks/dist-src/middleware/create-middleware.js +0 -147
- package/node_modules/@octokit/webhooks/dist-src/middleware/node/get-payload.js +0 -30
- package/node_modules/@octokit/webhooks/dist-src/middleware/node/get-request-header.js +0 -6
- package/node_modules/@octokit/webhooks/dist-src/middleware/node/handle-response.js +0 -11
- package/node_modules/@octokit/webhooks/dist-src/middleware/node/index.js +0 -23
- package/node_modules/@octokit/webhooks/dist-src/middleware/web/get-payload.js +0 -6
- package/node_modules/@octokit/webhooks/dist-src/middleware/web/get-request-header.js +0 -6
- package/node_modules/@octokit/webhooks/dist-src/middleware/web/handle-response.js +0 -12
- package/node_modules/@octokit/webhooks/dist-src/middleware/web/index.js +0 -23
- package/node_modules/@octokit/webhooks/dist-src/normalize-trailing-slashes.js +0 -18
- package/node_modules/@octokit/webhooks/dist-src/verify-and-receive.js +0 -33
- package/node_modules/@octokit/webhooks/package.json +0 -54
- package/node_modules/@octokit/webhooks-methods/LICENSE +0 -9
- package/node_modules/@octokit/webhooks-methods/README.md +0 -249
- package/node_modules/@octokit/webhooks-methods/dist-node/index.js +0 -65
- package/node_modules/@octokit/webhooks-methods/dist-src/index.js +0 -22
- package/node_modules/@octokit/webhooks-methods/dist-src/node/sign.js +0 -18
- package/node_modules/@octokit/webhooks-methods/dist-src/node/verify.js +0 -26
- package/node_modules/@octokit/webhooks-methods/dist-src/version.js +0 -4
- package/node_modules/@octokit/webhooks-methods/dist-src/web.js +0 -83
- package/node_modules/@octokit/webhooks-methods/dist-web/index.js +0 -84
- package/node_modules/@octokit/webhooks-methods/package.json +0 -53
- /package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/devtools/chunks/{chunk-DF993M8W.js → rolldown-runtime-DF993M8W.js} +0 -0
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { $ as t,
|
|
3
|
-
import { $ as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as Et } from "./
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
1
|
+
import { n as e } from "./rolldown-runtime-DF993M8W.js";
|
|
2
|
+
import { $ as t, D as n, H as r, I as i, J as a, K as o, L as s, P as c, Q as l, Wt as u, X as d, Y as f, Zt as ee, en as p, i as m, ot as h, qt as te, v as ne, x as g } from "./common-DMSVbaSb.js";
|
|
3
|
+
import { $i as re, $n as ie, C as ae, Cl as oe, Cs as se, D as ce, Dp as le, Dt as ue, Fo as de, Ho as fe, Hr as pe, Jt as me, Mo as he, Mp as ge, O as _e, Or as ve, Po as ye, Qn as be, Sl as xe, Ss as Se, St as Ce, Tl as _, Ur as v, Xi as we, Xl as Te, Xn as y, Xr as Ee, Yn as De, Yo as Oe, Zs as ke, _ as Ae, _o as je, _r as Me, bn as Ne, br as Pe, ct as Fe, ei as b, el as Ie, er as Le, fa as x, ff as Re, fo as ze, fp as Be, gr as Ve, hn as He, i as Ue, ja as We, jd as S, jo as Ge, jp as Ke, kd as qe, kr as Je, mo as Ye, n as Xe, na as Ze, nc as Qe, ni as $e, nl as et, no as tt, o as nt, pf as rt, qa as it, rn as at, so as ot, tn as st, ui as ct, un as lt, ur as ut, ut as dt, wl as C, wn as ft, x as pt, xn as mt, xs as ht, yr as gt } from "./legacy-md3HQs_7.js";
|
|
4
|
+
import "./platform-D4TUCh2P.js";
|
|
5
|
+
import { F as _t, I as vt, c as yt } from "./StringUtilities-CMDxNrEc.js";
|
|
6
|
+
import { n as w, t as bt } from "./theme_support-BF2WpOah.js";
|
|
7
|
+
import { a as xt, o as St, s as Ct, t as wt } from "./bindings-CAIo-k1a.js";
|
|
8
|
+
import { C as T } from "./common-Ec_cVEiV.js";
|
|
9
|
+
import { m as Tt } from "./elements-BU8z2iUE.js";
|
|
10
|
+
import { t as Et } from "./object_ui-Bkc4pMRS.js";
|
|
11
|
+
import { $t as Dt, en as Ot } from "./snackbars-DazoAb8B.js";
|
|
12
|
+
import { t as kt } from "./objectValue.css-Dgh-kJvQ.js";
|
|
13
|
+
import { c as At, d as E, l as jt, n as Mt, u as D } from "./data_grid-CWSfqJp7.js";
|
|
14
|
+
import { n as Nt } from "./settings_ui-DJR_-8cd.js";
|
|
15
|
+
import { A as Pt, E as Ft, F as It, L as Lt, O as Rt, c as zt, d as Bt, u as Vt } from "./perf_ui-Ch0z1TZ3.js";
|
|
16
|
+
import { c as Ht, f as Ut, h as Wt, l as Gt, n as Kt, o as O, p as k, u as qt, v as Jt, y as Yt } from "./heap_snapshot-CTdRQlts.js";
|
|
16
17
|
//#region node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/panels/profiler/ProfileDataGrid.ts
|
|
17
|
-
var
|
|
18
|
-
ProfileDataGridNode: () =>
|
|
19
|
-
ProfileDataGridTree: () =>
|
|
20
|
-
}),
|
|
18
|
+
var Xt = /* @__PURE__ */ e({
|
|
19
|
+
ProfileDataGridNode: () => A,
|
|
20
|
+
ProfileDataGridTree: () => en
|
|
21
|
+
}), Zt = {
|
|
21
22
|
notOptimizedS: "Not optimized: {PH1}",
|
|
22
23
|
genericTextTwoPlaceholders: "{PH1}, {PH2}"
|
|
23
|
-
},
|
|
24
|
+
}, Qt = o("panels/profiler/ProfileDataGrid.ts", Zt), $t = r.bind(void 0, Qt), A = class e extends jt {
|
|
24
25
|
searchMatchedSelfColumn;
|
|
25
26
|
searchMatchedTotalColumn;
|
|
26
27
|
searchMatchedFunctionColumn;
|
|
@@ -40,7 +41,7 @@ var Jt = /* @__PURE__ */ e({
|
|
|
40
41
|
savedTotal;
|
|
41
42
|
savedChildren;
|
|
42
43
|
constructor(e, t, n) {
|
|
43
|
-
super(null, n), this.searchMatchedSelfColumn = !1, this.searchMatchedTotalColumn = !1, this.searchMatchedFunctionColumn = !1, this.profileNode = e, this.tree = t, this.childrenByCallUID = /* @__PURE__ */ new Map(), this.lastComparator = null, this.callUID = e.callUID, this.self = e.self, this.total = e.total, this.functionName =
|
|
44
|
+
super(null, n), this.searchMatchedSelfColumn = !1, this.searchMatchedTotalColumn = !1, this.searchMatchedFunctionColumn = !1, this.profileNode = e, this.tree = t, this.childrenByCallUID = /* @__PURE__ */ new Map(), this.lastComparator = null, this.callUID = e.callUID, this.self = e.self, this.total = e.total, this.functionName = at(e.functionName), this.deoptReason = e.deoptReason || "", this.url = e.url, this.linkElement = null, this.populated = !1;
|
|
44
45
|
}
|
|
45
46
|
static sort(e, t, n) {
|
|
46
47
|
for (let r = 0; r < e.length; ++r) {
|
|
@@ -94,9 +95,9 @@ var Jt = /* @__PURE__ */ e({
|
|
|
94
95
|
if (t.classList.toggle("highlight", this.searchMatchedFunctionColumn), this.deoptReason) {
|
|
95
96
|
t.classList.add("not-optimized");
|
|
96
97
|
let e = new Ge();
|
|
97
|
-
e.name = "warning-filled", e.classList.add("profile-warn-marker", "small"),
|
|
98
|
+
e.name = "warning-filled", e.classList.add("profile-warn-marker", "small"), v.install(e, $t(Zt.notOptimizedS, { PH1: this.deoptReason })), t.appendChild(e);
|
|
98
99
|
}
|
|
99
|
-
if (
|
|
100
|
+
if (mt(t, this.functionName), this.profileNode.scriptId === "0") return t;
|
|
100
101
|
let n = this.tree.formatter.linkifyNode(this);
|
|
101
102
|
return n ? (n.style.maxWidth = "75%", t.appendChild(n), this.linkElement = n, t) : t;
|
|
102
103
|
}
|
|
@@ -111,7 +112,7 @@ var Jt = /* @__PURE__ */ e({
|
|
|
111
112
|
let o = i.createChild("span", "percent-column"), s = this.tree.formatter.formatPercent(t, this);
|
|
112
113
|
o.textContent = s;
|
|
113
114
|
let c = this.tree.formatter.formatValueAccessibleText(e, this);
|
|
114
|
-
return this.setCellAccessibleName(Zt
|
|
115
|
+
return this.setCellAccessibleName($t(Zt.genericTextTwoPlaceholders, {
|
|
115
116
|
PH1: c,
|
|
116
117
|
PH2: s
|
|
117
118
|
}), r, n), r;
|
|
@@ -155,7 +156,7 @@ var Jt = /* @__PURE__ */ e({
|
|
|
155
156
|
merge(t, n) {
|
|
156
157
|
e.merge(this, t, n);
|
|
157
158
|
}
|
|
158
|
-
},
|
|
159
|
+
}, en = class {
|
|
159
160
|
tree;
|
|
160
161
|
self;
|
|
161
162
|
children;
|
|
@@ -174,12 +175,12 @@ var Jt = /* @__PURE__ */ e({
|
|
|
174
175
|
this.tree = this, this.self = 0, this.children = [], this.formatter = e, this.searchableView = t, this.total = n, this.lastComparator = null, this.childrenByCallUID = /* @__PURE__ */ new Map(), this.deepSearch = !0, this.populated = !1;
|
|
175
176
|
}
|
|
176
177
|
static propertyComparator(e, t) {
|
|
177
|
-
let n =
|
|
178
|
+
let n = tn[+!!t][e];
|
|
178
179
|
return n || (n = t ? function(t, n) {
|
|
179
180
|
return t[e] < n[e] ? -1 : +(t[e] > n[e]);
|
|
180
181
|
} : function(t, n) {
|
|
181
182
|
return t[e] > n[e] ? -1 : +(t[e] < n[e]);
|
|
182
|
-
},
|
|
183
|
+
}, tn[+!!t][e] = n), n;
|
|
183
184
|
}
|
|
184
185
|
get expanded() {
|
|
185
186
|
return !0;
|
|
@@ -201,7 +202,7 @@ var Jt = /* @__PURE__ */ e({
|
|
|
201
202
|
return e && this.childrenByCallUID.get(e.callUID) || null;
|
|
202
203
|
}
|
|
203
204
|
sort(e, t) {
|
|
204
|
-
return
|
|
205
|
+
return A.sort([[this]], e, t);
|
|
205
206
|
}
|
|
206
207
|
save() {
|
|
207
208
|
this.savedChildren ||= (this.savedTotal = this.total, this.children.slice());
|
|
@@ -218,13 +219,13 @@ var Jt = /* @__PURE__ */ e({
|
|
|
218
219
|
if (!t.length) return null;
|
|
219
220
|
let n = t.startsWith(">"), r = t.startsWith("<"), i = t.startsWith("=") || (n || r) && t.indexOf("=") === 1, a = t.endsWith("%"), o = t.length > 2 && t.endsWith("ms"), s = !o && t.endsWith("s"), c = parseFloat(t);
|
|
220
221
|
(n || r || i) && (c = parseFloat(i && (n || r) ? t.substring(2) : t.substring(1)));
|
|
221
|
-
let
|
|
222
|
+
let l = s ? c * 1e3 : c;
|
|
222
223
|
!isNaN(c) && !(n || r) && (i = !0);
|
|
223
|
-
let
|
|
224
|
-
function
|
|
225
|
-
return e.searchMatchedSelfColumn = !1, e.searchMatchedTotalColumn = !1, e.searchMatchedFunctionColumn = !1, a ? (r ? (e.selfPercent < c && (e.searchMatchedSelfColumn = !0), e.totalPercent < c && (e.searchMatchedTotalColumn = !0)) : n && (e.selfPercent > c && (e.searchMatchedSelfColumn = !0), e.totalPercent > c && (e.searchMatchedTotalColumn = !0)), i && (e.selfPercent === c && (e.searchMatchedSelfColumn = !0), e.totalPercent === c && (e.searchMatchedTotalColumn = !0))) : (o || s) && (r ? (e.self <
|
|
224
|
+
let u = yt(t, "i");
|
|
225
|
+
function d(e) {
|
|
226
|
+
return e.searchMatchedSelfColumn = !1, e.searchMatchedTotalColumn = !1, e.searchMatchedFunctionColumn = !1, a ? (r ? (e.selfPercent < c && (e.searchMatchedSelfColumn = !0), e.totalPercent < c && (e.searchMatchedTotalColumn = !0)) : n && (e.selfPercent > c && (e.searchMatchedSelfColumn = !0), e.totalPercent > c && (e.searchMatchedTotalColumn = !0)), i && (e.selfPercent === c && (e.searchMatchedSelfColumn = !0), e.totalPercent === c && (e.searchMatchedTotalColumn = !0))) : (o || s) && (r ? (e.self < l && (e.searchMatchedSelfColumn = !0), e.total < l && (e.searchMatchedTotalColumn = !0)) : n && (e.self > l && (e.searchMatchedSelfColumn = !0), e.total > l && (e.searchMatchedTotalColumn = !0)), i && (e.self === l && (e.searchMatchedSelfColumn = !0), e.total === l && (e.searchMatchedTotalColumn = !0))), (e.functionName.match(u) || e.url && e.url.match(u)) && (e.searchMatchedFunctionColumn = !0), e.searchMatchedSelfColumn || e.searchMatchedTotalColumn || e.searchMatchedFunctionColumn ? (e.refresh(), !0) : !1;
|
|
226
227
|
}
|
|
227
|
-
return
|
|
228
|
+
return d;
|
|
228
229
|
}
|
|
229
230
|
performSearch(e, t, n) {
|
|
230
231
|
this.onSearchCanceled();
|
|
@@ -265,10 +266,10 @@ var Jt = /* @__PURE__ */ e({
|
|
|
265
266
|
let t = this.searchResults[e];
|
|
266
267
|
t && (t.profileNode.revealAndSelect(), this.searchableView.updateCurrentMatchIndex(e));
|
|
267
268
|
}
|
|
268
|
-
},
|
|
269
|
-
BottomUpProfileDataGridNode: () =>
|
|
270
|
-
BottomUpProfileDataGridTree: () =>
|
|
271
|
-
}),
|
|
269
|
+
}, tn = [{}, {}], nn = /* @__PURE__ */ e({
|
|
270
|
+
BottomUpProfileDataGridNode: () => rn,
|
|
271
|
+
BottomUpProfileDataGridTree: () => an
|
|
272
|
+
}), rn = class e extends A {
|
|
272
273
|
remainingNodeInfos;
|
|
273
274
|
constructor(e, t) {
|
|
274
275
|
super(e, t, e.parent !== null && !!e.parent.parent), this.remainingNodeInfos = [];
|
|
@@ -283,7 +284,7 @@ var Jt = /* @__PURE__ */ e({
|
|
|
283
284
|
s.self += o.self, e || (s.total += o.total);
|
|
284
285
|
} else s = new e(a, t.tree), a !== o && (s.self = o.self, s.total = o.total), t.appendChild(s);
|
|
285
286
|
let c = a.parent;
|
|
286
|
-
c?.parent && (r.ancestor = c, s.remainingNodeInfos
|
|
287
|
+
c?.parent && (r.ancestor = c, s.remainingNodeInfos || (s.remainingNodeInfos = []), s.remainingNodeInfos.push(r));
|
|
287
288
|
}
|
|
288
289
|
delete t.remainingNodeInfos;
|
|
289
290
|
}
|
|
@@ -312,7 +313,7 @@ var Jt = /* @__PURE__ */ e({
|
|
|
312
313
|
willHaveChildren(e) {
|
|
313
314
|
return !!e.parent?.parent;
|
|
314
315
|
}
|
|
315
|
-
},
|
|
316
|
+
}, an = class extends en {
|
|
316
317
|
deepSearch;
|
|
317
318
|
remainingNodeInfos;
|
|
318
319
|
constructor(e, t, n, r) {
|
|
@@ -347,49 +348,49 @@ var Jt = /* @__PURE__ */ e({
|
|
|
347
348
|
c.length && (a.push(t.concat([r])), a.push(c));
|
|
348
349
|
}
|
|
349
350
|
}
|
|
350
|
-
return
|
|
351
|
+
return A.populate(this), this;
|
|
351
352
|
}
|
|
352
353
|
focus(e) {
|
|
353
354
|
if (!e) return;
|
|
354
355
|
this.save();
|
|
355
356
|
let t = e, n = e;
|
|
356
|
-
for (; t.parent && t instanceof
|
|
357
|
+
for (; t.parent && t instanceof rn;) t.takePropertiesFromProfileDataGridNode(e), n = t, t = t.parent, t instanceof rn && t.keepOnlyChild(n);
|
|
357
358
|
this.children = [n], this.total = e.total;
|
|
358
359
|
}
|
|
359
360
|
exclude(e) {
|
|
360
361
|
if (!e) return;
|
|
361
362
|
this.save();
|
|
362
363
|
let t = e.callUID, n = this.childrenByCallUID.get(t);
|
|
363
|
-
n &&
|
|
364
|
+
n && ee(this.children, n);
|
|
364
365
|
let r = this.children, i = r.length;
|
|
365
366
|
for (let e = 0; e < i; ++e) r[e].exclude(t);
|
|
366
367
|
this.lastComparator && this.sort(this.lastComparator, !0);
|
|
367
368
|
}
|
|
368
369
|
populateChildren() {
|
|
369
|
-
|
|
370
|
+
rn.sharedPopulate(this);
|
|
370
371
|
}
|
|
371
|
-
},
|
|
372
|
+
}, on = {
|
|
372
373
|
detachedNodes: "Detached nodes",
|
|
373
374
|
nodeSize: "Node count",
|
|
374
375
|
detachedElementsList: "Detached elements list"
|
|
375
|
-
},
|
|
376
|
+
}, sn = o("panels/profiler/HeapDetachedElementsDataGrid.ts", on), cn = r.bind(void 0, sn), ln = class extends At {
|
|
376
377
|
constructor() {
|
|
377
378
|
let e = [];
|
|
378
379
|
e.push({
|
|
379
380
|
id: "detached-node",
|
|
380
|
-
title: on
|
|
381
|
+
title: cn(on.detachedNodes),
|
|
381
382
|
sortable: !1
|
|
382
383
|
}), e.push({
|
|
383
384
|
id: "detached-node-count",
|
|
384
|
-
title: on
|
|
385
|
+
title: cn(on.nodeSize),
|
|
385
386
|
sortable: !1,
|
|
386
387
|
disclosure: !0
|
|
387
388
|
}), super({
|
|
388
|
-
displayName: on
|
|
389
|
+
displayName: cn(on.detachedElementsList),
|
|
389
390
|
columns: e
|
|
390
391
|
}), this.setStriped(!0);
|
|
391
392
|
}
|
|
392
|
-
},
|
|
393
|
+
}, un = class extends jt {
|
|
393
394
|
detachedElementInfo;
|
|
394
395
|
domModel;
|
|
395
396
|
retainedNodeIds = /* @__PURE__ */ new Set();
|
|
@@ -401,10 +402,13 @@ var Jt = /* @__PURE__ */ e({
|
|
|
401
402
|
let t = this.createTD(e);
|
|
402
403
|
switch (e) {
|
|
403
404
|
case "detached-node": {
|
|
404
|
-
let e =
|
|
405
|
+
let e = et.create(this.domModel, null, !1, this.detachedElementInfo.treeNode, this.retainedNodeIds);
|
|
405
406
|
return e.detached = !0, this.#t(e, t), t;
|
|
406
407
|
}
|
|
407
|
-
case "detached-node-count":
|
|
408
|
+
case "detached-node-count": {
|
|
409
|
+
let e = this.#e(this.detachedElementInfo);
|
|
410
|
+
return mt(t, e.toString()), t;
|
|
411
|
+
}
|
|
408
412
|
}
|
|
409
413
|
return t;
|
|
410
414
|
}
|
|
@@ -414,16 +418,16 @@ var Jt = /* @__PURE__ */ e({
|
|
|
414
418
|
return t;
|
|
415
419
|
}
|
|
416
420
|
#t(e, t) {
|
|
417
|
-
let n = new
|
|
421
|
+
let n = new Tt();
|
|
418
422
|
n.omitRootDOMNode = !1, n.selectEnabled = !0, n.hideGutter = !0, n.rootDOMNode = e, n.showSelectionOnKeyboardFocus = !0, n.preventTabOrder = !0, n.deindentSingleNode = !0, n.show(t, void 0, !0);
|
|
419
423
|
}
|
|
420
|
-
},
|
|
421
|
-
Events: () =>
|
|
422
|
-
ProfileEvents: () =>
|
|
423
|
-
ProfileHeader: () =>
|
|
424
|
-
ProfileType: () =>
|
|
425
|
-
StatusUpdate: () =>
|
|
426
|
-
}),
|
|
424
|
+
}, dn = /* @__PURE__ */ e({
|
|
425
|
+
Events: () => M,
|
|
426
|
+
ProfileEvents: () => N,
|
|
427
|
+
ProfileHeader: () => j,
|
|
428
|
+
ProfileType: () => pn,
|
|
429
|
+
StatusUpdate: () => fn
|
|
430
|
+
}), j = class extends l {
|
|
427
431
|
#e;
|
|
428
432
|
title;
|
|
429
433
|
uid;
|
|
@@ -439,7 +443,7 @@ var Jt = /* @__PURE__ */ e({
|
|
|
439
443
|
return this.#e;
|
|
440
444
|
}
|
|
441
445
|
updateStatus(e, t) {
|
|
442
|
-
this.dispatchEventToListeners("UpdateStatus", new
|
|
446
|
+
this.dispatchEventToListeners("UpdateStatus", new fn(e, t));
|
|
443
447
|
}
|
|
444
448
|
removeTempFile() {
|
|
445
449
|
this.tempFile && this.tempFile.remove();
|
|
@@ -461,15 +465,15 @@ var Jt = /* @__PURE__ */ e({
|
|
|
461
465
|
this.#t = !0;
|
|
462
466
|
}
|
|
463
467
|
setProfile(e) {}
|
|
464
|
-
},
|
|
468
|
+
}, fn = class {
|
|
465
469
|
subtitle;
|
|
466
470
|
wait;
|
|
467
471
|
constructor(e, t) {
|
|
468
472
|
this.subtitle = e, this.wait = t;
|
|
469
473
|
}
|
|
470
|
-
},
|
|
474
|
+
}, M = /* @__PURE__ */ function(e) {
|
|
471
475
|
return e.UPDATE_STATUS = "UpdateStatus", e.PROFILE_TITLE_CHANGED = "ProfileTitleChanged", e;
|
|
472
|
-
}({}),
|
|
476
|
+
}({}), pn = class extends l {
|
|
473
477
|
#e;
|
|
474
478
|
#t;
|
|
475
479
|
profiles = [];
|
|
@@ -557,15 +561,15 @@ var Jt = /* @__PURE__ */ e({
|
|
|
557
561
|
disposeProfile(e) {
|
|
558
562
|
this.dispatchEventToListeners("remove-profile-header", e), e.dispose(), this.#n === e && (this.profileBeingRecordedRemoved(), this.setProfileBeingRecorded(null));
|
|
559
563
|
}
|
|
560
|
-
},
|
|
564
|
+
}, N = /* @__PURE__ */ function(e) {
|
|
561
565
|
return e.ADD_PROFILE_HEADER = "add-profile-header", e.PROFILE_COMPLETE = "profile-complete", e.REMOVE_PROFILE_HEADER = "remove-profile-header", e.VIEW_UPDATED = "view-updated", e;
|
|
562
|
-
}({}),
|
|
563
|
-
OverviewCalculator: () =>
|
|
564
|
-
OverviewPane: () =>
|
|
565
|
-
OverviewPaneEvents: () =>
|
|
566
|
-
ProfileFlameChart: () =>
|
|
567
|
-
ProfileFlameChartDataProvider: () =>
|
|
568
|
-
}),
|
|
566
|
+
}({}), mn = /* @__PURE__ */ e({
|
|
567
|
+
OverviewCalculator: () => vn,
|
|
568
|
+
OverviewPane: () => yn,
|
|
569
|
+
OverviewPaneEvents: () => bn,
|
|
570
|
+
ProfileFlameChart: () => _n,
|
|
571
|
+
ProfileFlameChartDataProvider: () => gn
|
|
572
|
+
}), hn = null, gn = class e {
|
|
569
573
|
#e;
|
|
570
574
|
maxStackDepthInternal;
|
|
571
575
|
timelineDataInternal;
|
|
@@ -573,10 +577,10 @@ var Jt = /* @__PURE__ */ e({
|
|
|
573
577
|
#t;
|
|
574
578
|
boldFont;
|
|
575
579
|
constructor() {
|
|
576
|
-
this.#e = e.colorGenerator(), this.maxStackDepthInternal = 0, this.timelineDataInternal = null, this.entryNodes = [], this.#t = `${
|
|
580
|
+
this.#e = e.colorGenerator(), this.maxStackDepthInternal = 0, this.timelineDataInternal = null, this.entryNodes = [], this.#t = `${It} ${Lt()}`;
|
|
577
581
|
}
|
|
578
582
|
static colorGenerator() {
|
|
579
|
-
return
|
|
583
|
+
return hn || (hn = new h({
|
|
580
584
|
min: 30,
|
|
581
585
|
max: 330
|
|
582
586
|
}, {
|
|
@@ -587,7 +591,7 @@ var Jt = /* @__PURE__ */ e({
|
|
|
587
591
|
min: 80,
|
|
588
592
|
max: 90,
|
|
589
593
|
count: 3
|
|
590
|
-
}),
|
|
594
|
+
}), hn.setColorForID("(idle)", "hsl(0, 0%, 94%)"), hn.setColorForID("(program)", "hsl(0, 0%, 80%)"), hn.setColorForID("(garbage collector)", "hsl(0, 0%, 80%)")), hn;
|
|
591
595
|
}
|
|
592
596
|
minimumBoundary() {
|
|
593
597
|
throw Error("Not implemented");
|
|
@@ -596,7 +600,7 @@ var Jt = /* @__PURE__ */ e({
|
|
|
596
600
|
throw Error("Not implemented");
|
|
597
601
|
}
|
|
598
602
|
formatValue(e, t) {
|
|
599
|
-
return
|
|
603
|
+
return c(e, t);
|
|
600
604
|
}
|
|
601
605
|
maxStackDepth() {
|
|
602
606
|
return this.maxStackDepthInternal;
|
|
@@ -618,7 +622,7 @@ var Jt = /* @__PURE__ */ e({
|
|
|
618
622
|
}
|
|
619
623
|
entryTitle(e) {
|
|
620
624
|
let t = this.entryNodes[e];
|
|
621
|
-
return
|
|
625
|
+
return at(t.functionName);
|
|
622
626
|
}
|
|
623
627
|
entryFont(e) {
|
|
624
628
|
let t = "bold " + this.#t;
|
|
@@ -643,7 +647,7 @@ var Jt = /* @__PURE__ */ e({
|
|
|
643
647
|
entryNodesLength() {
|
|
644
648
|
return this.entryNodes.length;
|
|
645
649
|
}
|
|
646
|
-
},
|
|
650
|
+
}, _n = class extends t(b) {
|
|
647
651
|
searchableView;
|
|
648
652
|
overviewPane;
|
|
649
653
|
mainPane;
|
|
@@ -652,7 +656,7 @@ var Jt = /* @__PURE__ */ e({
|
|
|
652
656
|
searchResults;
|
|
653
657
|
searchResultIndex = -1;
|
|
654
658
|
constructor(e, t) {
|
|
655
|
-
super(), this.element.id = "cpu-flame-chart", this.searchableView = e, this.overviewPane = new
|
|
659
|
+
super(), this.element.id = "cpu-flame-chart", this.searchableView = e, this.overviewPane = new yn(t), this.overviewPane.show(this.element), this.mainPane = new Rt(t, this.overviewPane), this.mainPane.setBarHeight(15), this.mainPane.setTextBaseline(4), this.mainPane.setTextPadding(2), this.mainPane.show(this.element), this.mainPane.addEventListener(Ft.ENTRY_SELECTED, this.onEntrySelected, this), this.mainPane.addEventListener(Ft.ENTRY_INVOKED, this.onEntryInvoked, this), this.entrySelected = !1, this.mainPane.addEventListener(Ft.CANVAS_FOCUSED, this.onEntrySelected, this), this.overviewPane.addEventListener("WindowChanged", this.onWindowChanged, this), this.dataProvider = t, this.searchResults = [];
|
|
656
660
|
}
|
|
657
661
|
focus() {
|
|
658
662
|
this.mainPane.focus();
|
|
@@ -667,17 +671,17 @@ var Jt = /* @__PURE__ */ e({
|
|
|
667
671
|
onEntrySelected(e) {
|
|
668
672
|
if (e.data) {
|
|
669
673
|
let t = e.data;
|
|
670
|
-
this.mainPane.setSelectedEntry(t),
|
|
674
|
+
this.mainPane.setSelectedEntry(t), this.entrySelected = t !== -1;
|
|
671
675
|
} else this.entrySelected ||= (this.mainPane.setSelectedEntry(0), !0);
|
|
672
676
|
}
|
|
673
677
|
onEntryInvoked(e) {
|
|
674
|
-
this.onEntrySelected(e), this.dispatchEventToListeners(
|
|
678
|
+
this.onEntrySelected(e), this.dispatchEventToListeners(Ft.ENTRY_INVOKED, e.data);
|
|
675
679
|
}
|
|
676
680
|
update() {
|
|
677
681
|
this.overviewPane.update(), this.mainPane.update();
|
|
678
682
|
}
|
|
679
683
|
performSearch(e, t, n) {
|
|
680
|
-
let r =
|
|
684
|
+
let r = yt(e.query, e.caseSensitive ? "" : "i"), i = this.searchResultIndex === -1 ? -1 : this.searchResults[this.searchResultIndex];
|
|
681
685
|
this.searchResults = [];
|
|
682
686
|
let a = this.dataProvider.entryNodesLength();
|
|
683
687
|
for (let e = 0; e < a; ++e) this.dataProvider.entryTitle(e).match(r) && this.searchResults.push(e);
|
|
@@ -701,7 +705,7 @@ var Jt = /* @__PURE__ */ e({
|
|
|
701
705
|
supportsRegexSearch() {
|
|
702
706
|
return !1;
|
|
703
707
|
}
|
|
704
|
-
},
|
|
708
|
+
}, vn = class {
|
|
705
709
|
formatter;
|
|
706
710
|
minimumBoundaries;
|
|
707
711
|
maximumBoundaries;
|
|
@@ -732,7 +736,7 @@ var Jt = /* @__PURE__ */ e({
|
|
|
732
736
|
boundarySpan() {
|
|
733
737
|
return this.maximumBoundaries - this.minimumBoundaries;
|
|
734
738
|
}
|
|
735
|
-
},
|
|
739
|
+
}, yn = class extends t(b) {
|
|
736
740
|
overviewContainer;
|
|
737
741
|
overviewCalculator;
|
|
738
742
|
overviewGrid;
|
|
@@ -742,7 +746,7 @@ var Jt = /* @__PURE__ */ e({
|
|
|
742
746
|
windowTimeRight;
|
|
743
747
|
updateTimerId;
|
|
744
748
|
constructor(e) {
|
|
745
|
-
super(), this.element.classList.add("cpu-profile-flame-chart-overview-pane"), this.overviewContainer = this.element.createChild("div", "cpu-profile-flame-chart-overview-container"), this.overviewCalculator = new
|
|
749
|
+
super(), this.element.classList.add("cpu-profile-flame-chart-overview-pane"), this.overviewContainer = this.element.createChild("div", "cpu-profile-flame-chart-overview-container"), this.overviewCalculator = new vn(e.formatValue), this.overviewGrid = new Bt("cpu-profile-flame-chart", this.overviewCalculator), this.overviewGrid.element.classList.add("fill"), this.overviewCanvas = this.overviewContainer.createChild("canvas", "cpu-profile-flame-chart-overview-canvas"), this.overviewContainer.appendChild(this.overviewGrid.element), this.dataProvider = e, this.overviewGrid.addEventListener(Vt.WINDOW_CHANGED_WITH_POSITION, this.onWindowChanged, this);
|
|
746
750
|
}
|
|
747
751
|
windowChanged(e, t) {
|
|
748
752
|
this.selectRange(e, t);
|
|
@@ -793,12 +797,12 @@ var Jt = /* @__PURE__ */ e({
|
|
|
793
797
|
let n = window.devicePixelRatio;
|
|
794
798
|
this.overviewCanvas.width = e * n, this.overviewCanvas.height = t * n, this.overviewCanvas.style.width = e + "px", this.overviewCanvas.style.height = t + "px";
|
|
795
799
|
}
|
|
796
|
-
},
|
|
800
|
+
}, bn = /* @__PURE__ */ function(e) {
|
|
797
801
|
return e.WINDOW_CHANGED = "WindowChanged", e;
|
|
798
|
-
}({}),
|
|
799
|
-
TopDownProfileDataGridNode: () =>
|
|
800
|
-
TopDownProfileDataGridTree: () =>
|
|
801
|
-
}),
|
|
802
|
+
}({}), xn = /* @__PURE__ */ e({
|
|
803
|
+
TopDownProfileDataGridNode: () => Sn,
|
|
804
|
+
TopDownProfileDataGridTree: () => Cn
|
|
805
|
+
}), Sn = class e extends A {
|
|
802
806
|
remainingChildren;
|
|
803
807
|
constructor(e, t) {
|
|
804
808
|
let n = !!e.children?.length;
|
|
@@ -814,34 +818,34 @@ var Jt = /* @__PURE__ */ e({
|
|
|
814
818
|
let r = t.children, i = t.children.length;
|
|
815
819
|
for (; i--;) e.excludeRecursively(r[i], n);
|
|
816
820
|
let a = t.childrenByCallUID.get(n);
|
|
817
|
-
a &&
|
|
821
|
+
a && A.merge(t, a, !0);
|
|
818
822
|
}
|
|
819
823
|
populateChildren() {
|
|
820
824
|
e.sharedPopulate(this);
|
|
821
825
|
}
|
|
822
|
-
},
|
|
826
|
+
}, Cn = class extends en {
|
|
823
827
|
remainingChildren;
|
|
824
828
|
constructor(e, t, n, r) {
|
|
825
|
-
super(e, t, r), this.remainingChildren = n.children,
|
|
829
|
+
super(e, t, r), this.remainingChildren = n.children, A.populate(this);
|
|
826
830
|
}
|
|
827
831
|
focus(e) {
|
|
828
832
|
e && (this.save(), e.savePosition(), this.children = [e], this.total = e.total);
|
|
829
833
|
}
|
|
830
834
|
exclude(e) {
|
|
831
|
-
e && (this.save(),
|
|
835
|
+
e && (this.save(), Sn.excludeRecursively(this, e.callUID), this.lastComparator && this.sort(this.lastComparator, !0));
|
|
832
836
|
}
|
|
833
837
|
restore() {
|
|
834
838
|
this.savedChildren && (this.children[0].restorePosition(), super.restore());
|
|
835
839
|
}
|
|
836
840
|
populateChildren() {
|
|
837
|
-
|
|
841
|
+
Sn.sharedPopulate(this);
|
|
838
842
|
}
|
|
839
|
-
},
|
|
840
|
-
ProfileView: () =>
|
|
841
|
-
ViewTypes: () =>
|
|
842
|
-
WritableProfileHeader: () =>
|
|
843
|
+
}, wn = /* @__PURE__ */ e({
|
|
844
|
+
ProfileView: () => En,
|
|
845
|
+
ViewTypes: () => Dn,
|
|
846
|
+
WritableProfileHeader: () => On,
|
|
843
847
|
maxLinkLength: () => 30
|
|
844
|
-
}),
|
|
848
|
+
}), P = {
|
|
845
849
|
profile: "Profile",
|
|
846
850
|
findByCostMsNameOrFile: "Find by cost (>50ms), name or file",
|
|
847
851
|
function: "Function",
|
|
@@ -860,7 +864,7 @@ var Jt = /* @__PURE__ */ e({
|
|
|
860
864
|
failedToReadFile: "Failed to read file",
|
|
861
865
|
parsing: "Parsing…",
|
|
862
866
|
loaded: "Loaded"
|
|
863
|
-
},
|
|
867
|
+
}, Tn = o("panels/profiler/ProfileView.ts", P), F = r.bind(void 0, Tn), En = class extends Xe {
|
|
864
868
|
profileInternal;
|
|
865
869
|
searchableViewInternal;
|
|
866
870
|
dataGrid;
|
|
@@ -883,9 +887,9 @@ var Jt = /* @__PURE__ */ e({
|
|
|
883
887
|
profileDataGridTree;
|
|
884
888
|
constructor() {
|
|
885
889
|
super({
|
|
886
|
-
title:
|
|
890
|
+
title: F(P.profile),
|
|
887
891
|
viewId: "profile"
|
|
888
|
-
}), this.profileInternal = null, this.searchableViewInternal = new
|
|
892
|
+
}), this.profileInternal = null, this.searchableViewInternal = new Ae(this, null), this.searchableViewInternal.setPlaceholder(F(P.findByCostMsNameOrFile)), this.searchableViewInternal.show(this.element);
|
|
889
893
|
let e = [];
|
|
890
894
|
e.push({
|
|
891
895
|
id: "self",
|
|
@@ -893,7 +897,7 @@ var Jt = /* @__PURE__ */ e({
|
|
|
893
897
|
width: "120px",
|
|
894
898
|
fixedWidth: !0,
|
|
895
899
|
sortable: !0,
|
|
896
|
-
sort:
|
|
900
|
+
sort: E.Descending
|
|
897
901
|
}), e.push({
|
|
898
902
|
id: "total",
|
|
899
903
|
title: this.columnHeader("total"),
|
|
@@ -902,13 +906,13 @@ var Jt = /* @__PURE__ */ e({
|
|
|
902
906
|
sortable: !0
|
|
903
907
|
}), e.push({
|
|
904
908
|
id: "function",
|
|
905
|
-
title:
|
|
909
|
+
title: F(P.function),
|
|
906
910
|
disclosure: !0,
|
|
907
911
|
sortable: !0
|
|
908
|
-
}), this.dataGrid = new
|
|
909
|
-
displayName:
|
|
912
|
+
}), this.dataGrid = new At({
|
|
913
|
+
displayName: F(P.profiler),
|
|
910
914
|
columns: e
|
|
911
|
-
}), this.dataGrid.addEventListener(
|
|
915
|
+
}), this.dataGrid.addEventListener(D.SORTING_CHANGED, this.sortProfile, this), this.dataGrid.addEventListener(D.SELECTED_NODE, this.nodeSelected.bind(this, !0)), this.dataGrid.addEventListener(D.DESELECTED_NODE, this.nodeSelected.bind(this, !1)), this.dataGrid.setRowContextMenuCallback(this.populateContextMenu.bind(this)), this.viewSelectComboBox = new be(this.changeView.bind(this), F(P.profileViewMode), void 0, "profile-view.selected-view"), this.focusButton = new y(F(P.focusSelectedFunction), "eye", void 0, "profile-view.focus-selected-function"), this.focusButton.setEnabled(!1), this.focusButton.addEventListener(y.Events.CLICK, this.focusClicked, this), this.excludeButton = new y(F(P.excludeSelectedFunction), "cross", void 0, "profile-view.exclude-selected-function"), this.excludeButton.setEnabled(!1), this.excludeButton.addEventListener(y.Events.CLICK, this.excludeClicked, this), this.resetButton = new y(F(P.restoreAllFunctions), "refresh", void 0, "profile-view.restore-all-functions"), this.resetButton.setEnabled(!1), this.resetButton.addEventListener(y.Events.CLICK, this.resetClicked, this), this.linkifierInternal = new T(30);
|
|
912
916
|
}
|
|
913
917
|
static buildPopoverTable(e) {
|
|
914
918
|
let t = document.createElement("table");
|
|
@@ -925,15 +929,15 @@ var Jt = /* @__PURE__ */ e({
|
|
|
925
929
|
return this.profileInternal;
|
|
926
930
|
}
|
|
927
931
|
initialize(e) {
|
|
928
|
-
this.nodeFormatter = e, this.viewType =
|
|
932
|
+
this.nodeFormatter = e, this.viewType = m.instance().createSetting("profile-view", "Heavy");
|
|
929
933
|
let t = [
|
|
930
934
|
"Flame",
|
|
931
935
|
"Heavy",
|
|
932
936
|
"Tree"
|
|
933
|
-
], n = new Map([
|
|
934
|
-
["Flame",
|
|
935
|
-
["Heavy",
|
|
936
|
-
["Tree",
|
|
937
|
+
], n = /* @__PURE__ */ new Map([
|
|
938
|
+
["Flame", F(P.chart)],
|
|
939
|
+
["Heavy", F(P.heavyBottomUp)],
|
|
940
|
+
["Tree", F(P.treeTopDown)]
|
|
937
941
|
]), r = new Map(t.map((e) => [e, this.viewSelectComboBox.createOption(n.get(e), e)])), i = this.viewType.get() || t[0], a = r.get(i) || r.get(t[0]);
|
|
938
942
|
this.viewSelectComboBox.select(a), this.changeView(), this.flameChart && this.flameChart.update();
|
|
939
943
|
}
|
|
@@ -955,10 +959,10 @@ var Jt = /* @__PURE__ */ e({
|
|
|
955
959
|
];
|
|
956
960
|
}
|
|
957
961
|
getBottomUpProfileDataGridTree() {
|
|
958
|
-
return this.bottomUpProfileDataGridTree ||= new
|
|
962
|
+
return this.bottomUpProfileDataGridTree ||= new an(this.nodeFormatter, this.searchableViewInternal, this.profileInternal.root, this.adjustedTotal), this.bottomUpProfileDataGridTree;
|
|
959
963
|
}
|
|
960
964
|
getTopDownProfileDataGridTree() {
|
|
961
|
-
return this.topDownProfileDataGridTree ||= new
|
|
965
|
+
return this.topDownProfileDataGridTree ||= new Cn(this.nodeFormatter, this.searchableViewInternal, this.profileInternal.root, this.adjustedTotal), this.topDownProfileDataGridTree;
|
|
962
966
|
}
|
|
963
967
|
populateContextMenu(e, t) {
|
|
964
968
|
let n = t;
|
|
@@ -1008,18 +1012,18 @@ var Jt = /* @__PURE__ */ e({
|
|
|
1008
1012
|
throw Error("Not implemented");
|
|
1009
1013
|
}
|
|
1010
1014
|
ensureFlameChartCreated() {
|
|
1011
|
-
this.flameChart || (this.dataProvider = this.createFlameChartDataProvider(), this.flameChart = new
|
|
1015
|
+
this.flameChart || (this.dataProvider = this.createFlameChartDataProvider(), this.flameChart = new _n(this.searchableViewInternal, this.dataProvider), this.flameChart.addEventListener(Ft.ENTRY_INVOKED, (e) => {
|
|
1012
1016
|
this.onEntryInvoked(e);
|
|
1013
1017
|
}));
|
|
1014
1018
|
}
|
|
1015
1019
|
async onEntryInvoked(e) {
|
|
1016
1020
|
if (!this.dataProvider) return;
|
|
1017
|
-
let t = e.data,
|
|
1018
|
-
if (!
|
|
1019
|
-
let
|
|
1020
|
-
if (!
|
|
1021
|
-
let
|
|
1022
|
-
|
|
1021
|
+
let t = e.data, r = this.dataProvider.entryNodes[t], i = this.profileHeader.debuggerModel;
|
|
1022
|
+
if (!r || !r.scriptId || !i) return;
|
|
1023
|
+
let a = i.scriptForId(r.scriptId);
|
|
1024
|
+
if (!a) return;
|
|
1025
|
+
let o = i.createRawLocation(a, r.lineNumber, r.columnNumber), s = await Ct.instance().rawLocationToUILocation(o);
|
|
1026
|
+
n(s);
|
|
1023
1027
|
}
|
|
1024
1028
|
changeView() {
|
|
1025
1029
|
if (!this.profileInternal) return;
|
|
@@ -1030,9 +1034,7 @@ var Jt = /* @__PURE__ */ e({
|
|
|
1030
1034
|
case "Tree":
|
|
1031
1035
|
this.profileDataGridTree = this.getTopDownProfileDataGridTree(), this.sortProfile(), this.visibleView = this.dataGrid.asWidget(), this.searchableElement = this.profileDataGridTree;
|
|
1032
1036
|
break;
|
|
1033
|
-
case "Heavy":
|
|
1034
|
-
this.profileDataGridTree = this.getBottomUpProfileDataGridTree(), this.sortProfile(), this.visibleView = this.dataGrid.asWidget(), this.searchableElement = this.profileDataGridTree;
|
|
1035
|
-
break;
|
|
1037
|
+
case "Heavy": this.profileDataGridTree = this.getBottomUpProfileDataGridTree(), this.sortProfile(), this.visibleView = this.dataGrid.asWidget(), this.searchableElement = this.profileDataGridTree;
|
|
1036
1038
|
}
|
|
1037
1039
|
let e = this.viewType.get() === "Flame";
|
|
1038
1040
|
this.focusButton.setVisible(!e), this.excludeButton.setVisible(!e), this.resetButton.setVisible(!e), this.visibleView && this.visibleView.show(this.searchableViewInternal.element);
|
|
@@ -1041,11 +1043,11 @@ var Jt = /* @__PURE__ */ e({
|
|
|
1041
1043
|
this.focusButton.setEnabled(e), this.excludeButton.setEnabled(e);
|
|
1042
1044
|
}
|
|
1043
1045
|
focusClicked() {
|
|
1044
|
-
this.dataGrid.selectedNode && (this.resetButton.setEnabled(!0), this.resetButton.element.focus(), this.profileDataGridTree && this.profileDataGridTree.focus(this.dataGrid.selectedNode), this.refresh(), this.refreshVisibleData(),
|
|
1046
|
+
this.dataGrid.selectedNode && (this.resetButton.setEnabled(!0), this.resetButton.element.focus(), this.profileDataGridTree && this.profileDataGridTree.focus(this.dataGrid.selectedNode), this.refresh(), this.refreshVisibleData(), Re.actionTaken(rt.CpuProfileNodeFocused));
|
|
1045
1047
|
}
|
|
1046
1048
|
excludeClicked() {
|
|
1047
1049
|
let e = this.dataGrid.selectedNode;
|
|
1048
|
-
e && (this.resetButton.setEnabled(!0), this.resetButton.element.focus(), e.deselect(), this.profileDataGridTree && this.profileDataGridTree.exclude(e), this.refresh(), this.refreshVisibleData(),
|
|
1050
|
+
e && (this.resetButton.setEnabled(!0), this.resetButton.element.focus(), e.deselect(), this.profileDataGridTree && this.profileDataGridTree.exclude(e), this.refresh(), this.refreshVisibleData(), Re.actionTaken(rt.CpuProfileNodeExcluded));
|
|
1049
1051
|
}
|
|
1050
1052
|
resetClicked() {
|
|
1051
1053
|
this.viewSelectComboBox.element.focus(), this.resetButton.setEnabled(!1), this.profileDataGridTree && this.profileDataGridTree.restore(), this.linkifierInternal.reset(), this.refresh(), this.refreshVisibleData();
|
|
@@ -1053,11 +1055,11 @@ var Jt = /* @__PURE__ */ e({
|
|
|
1053
1055
|
sortProfile() {
|
|
1054
1056
|
if (!this.profileDataGridTree) return;
|
|
1055
1057
|
let e = this.dataGrid.isSortOrderAscending(), t = this.dataGrid.sortColumnId(), n = t === "function" ? "functionName" : t || "";
|
|
1056
|
-
this.profileDataGridTree.sort(
|
|
1058
|
+
this.profileDataGridTree.sort(en.propertyComparator(n, e), !1), this.refresh();
|
|
1057
1059
|
}
|
|
1058
|
-
},
|
|
1060
|
+
}, Dn = /* @__PURE__ */ function(e) {
|
|
1059
1061
|
return e.FLAME = "Flame", e.TREE = "Tree", e.HEAVY = "Heavy", e;
|
|
1060
|
-
}({}),
|
|
1062
|
+
}({}), On = class extends j {
|
|
1061
1063
|
debuggerModel;
|
|
1062
1064
|
fileName;
|
|
1063
1065
|
jsonifiedProfile;
|
|
@@ -1065,14 +1067,14 @@ var Jt = /* @__PURE__ */ e({
|
|
|
1065
1067
|
protocolProfileInternal;
|
|
1066
1068
|
#e = Promise.withResolvers();
|
|
1067
1069
|
constructor(e, t, n) {
|
|
1068
|
-
super(t, n ||
|
|
1070
|
+
super(t, n || F(P.profileD, { PH1: t.nextProfileUid() })), this.debuggerModel = e;
|
|
1069
1071
|
}
|
|
1070
1072
|
onChunkTransferred(e) {
|
|
1071
|
-
this.jsonifiedProfile && this.updateStatus(
|
|
1073
|
+
this.jsonifiedProfile && this.updateStatus(F(P.loadingD, { PH1: a(this.jsonifiedProfile.length) }));
|
|
1072
1074
|
}
|
|
1073
1075
|
onError(e) {
|
|
1074
1076
|
let t = e.error();
|
|
1075
|
-
t && this.updateStatus(
|
|
1077
|
+
t && this.updateStatus(F(P.fileSReadErrorS, {
|
|
1076
1078
|
PH1: e.fileName(),
|
|
1077
1079
|
PH2: t.message
|
|
1078
1080
|
}));
|
|
@@ -1089,9 +1091,9 @@ var Jt = /* @__PURE__ */ e({
|
|
|
1089
1091
|
}
|
|
1090
1092
|
async saveToFile() {
|
|
1091
1093
|
await this.#e.promise;
|
|
1092
|
-
let e = new
|
|
1094
|
+
let e = new St();
|
|
1093
1095
|
if (!this.fileName) {
|
|
1094
|
-
let e =
|
|
1096
|
+
let e = ge(/* @__PURE__ */ new Date()), t = this.profileType().fileExtension();
|
|
1095
1097
|
this.fileName = `${this.profileType().typeName()}-${e}${t}`;
|
|
1096
1098
|
}
|
|
1097
1099
|
if (!await e.open(this.fileName) || !this.tempFile) return;
|
|
@@ -1099,36 +1101,36 @@ var Jt = /* @__PURE__ */ e({
|
|
|
1099
1101
|
t && await e.write(t), e.close();
|
|
1100
1102
|
}
|
|
1101
1103
|
async loadFromFile(e) {
|
|
1102
|
-
this.updateStatus(
|
|
1103
|
-
let t = new
|
|
1104
|
-
if (this.jsonifiedProfile = "", !await t.read(this)) return this.onError(t), Error(
|
|
1105
|
-
this.updateStatus(
|
|
1104
|
+
this.updateStatus(F(P.loading), !0);
|
|
1105
|
+
let t = new xt(e, 1e7, this.onChunkTransferred.bind(this));
|
|
1106
|
+
if (this.jsonifiedProfile = "", !await t.read(this)) return this.onError(t), Error(F(P.failedToReadFile));
|
|
1107
|
+
this.updateStatus(F(P.parsing), !0);
|
|
1106
1108
|
let n = null;
|
|
1107
1109
|
try {
|
|
1108
|
-
this.profile = JSON.parse(this.jsonifiedProfile), this.setProfile(this.profile), this.updateStatus(
|
|
1110
|
+
this.profile = JSON.parse(this.jsonifiedProfile), this.setProfile(this.profile), this.updateStatus(F(P.loaded), !1);
|
|
1109
1111
|
} catch (e) {
|
|
1110
1112
|
n = e, this.profileType().removeProfile(this);
|
|
1111
1113
|
}
|
|
1112
1114
|
return this.jsonifiedProfile = null, this.profileType().profileBeingRecorded() === this && this.profileType().setProfileBeingRecorded(null), n;
|
|
1113
1115
|
}
|
|
1114
1116
|
setProtocolProfile(e) {
|
|
1115
|
-
this.setProfile(e), this.protocolProfileInternal = e, this.tempFile = new
|
|
1117
|
+
this.setProfile(e), this.protocolProfileInternal = e, this.tempFile = new wt(), this.tempFile.write([JSON.stringify(e)]), this.#e.resolve();
|
|
1116
1118
|
}
|
|
1117
|
-
},
|
|
1119
|
+
}, I = {
|
|
1118
1120
|
startDetachedElements: "Obtain detached elements",
|
|
1119
1121
|
detachedElementsTitle: "Detached elements",
|
|
1120
1122
|
detachedElementsDescription: "Detached elements shows objects that are retained by a JS reference.",
|
|
1121
1123
|
detachedElementProfile: "Detached elements {PH1}"
|
|
1122
|
-
},
|
|
1124
|
+
}, kn = o("panels/profiler/HeapDetachedElementsView.ts", I), L = r.bind(void 0, kn), An = class extends Xe {
|
|
1123
1125
|
selectedSizeText;
|
|
1124
1126
|
dataGrid;
|
|
1125
1127
|
profile;
|
|
1126
1128
|
parentDataDisplayDelegate;
|
|
1127
1129
|
constructor(e, t) {
|
|
1128
1130
|
super({
|
|
1129
|
-
title:
|
|
1131
|
+
title: L(I.detachedElementsTitle),
|
|
1130
1132
|
viewId: "detached-elements"
|
|
1131
|
-
}), this.element.classList.add("detached-elements-view"), this.profile = t, this.parentDataDisplayDelegate = e, this.selectedSizeText = new ut(), this.dataGrid = new
|
|
1133
|
+
}), this.element.classList.add("detached-elements-view"), this.profile = t, this.parentDataDisplayDelegate = e, this.selectedSizeText = new ut(), this.dataGrid = new ln(), this.populateElementsGrid(t.detachedElements), this.dataGrid.asWidget().show(this.element);
|
|
1132
1134
|
}
|
|
1133
1135
|
showProfile(e) {
|
|
1134
1136
|
return this.parentDataDisplayDelegate.showProfile(e);
|
|
@@ -1141,37 +1143,37 @@ var Jt = /* @__PURE__ */ e({
|
|
|
1141
1143
|
}
|
|
1142
1144
|
populateElementsGrid(e) {
|
|
1143
1145
|
if (!e) return;
|
|
1144
|
-
let t = this.profile.heapProfilerModel()?.target().model(
|
|
1145
|
-
if (t) for (let n of e) this.dataGrid.rootNode().appendChild(new
|
|
1146
|
+
let t = this.profile.heapProfilerModel()?.target().model(Ie);
|
|
1147
|
+
if (t) for (let n of e) this.dataGrid.rootNode().appendChild(new un(n, t));
|
|
1146
1148
|
}
|
|
1147
1149
|
async toolbarItems() {
|
|
1148
1150
|
return [...await super.toolbarItems(), this.selectedSizeText];
|
|
1149
1151
|
}
|
|
1150
|
-
},
|
|
1152
|
+
}, jn = class extends t(pn) {
|
|
1151
1153
|
constructor(e, t) {
|
|
1152
|
-
super(e ||
|
|
1154
|
+
super(e || L(I.detachedElementsTitle), t || L(I.detachedElementsTitle));
|
|
1153
1155
|
}
|
|
1154
1156
|
profileBeingRecorded() {
|
|
1155
1157
|
return super.profileBeingRecorded();
|
|
1156
1158
|
}
|
|
1157
1159
|
get buttonTooltip() {
|
|
1158
|
-
return
|
|
1160
|
+
return L(I.startDetachedElements);
|
|
1159
1161
|
}
|
|
1160
1162
|
buttonClicked() {
|
|
1161
1163
|
return this.getDetachedElements(), !1;
|
|
1162
1164
|
}
|
|
1163
1165
|
async getDetachedElements() {
|
|
1164
1166
|
if (this.profileBeingRecorded()) return;
|
|
1165
|
-
let e =
|
|
1167
|
+
let e = x.instance().flavor(_), t = e?.target(), n = t?.model(Ie);
|
|
1166
1168
|
if (!e || !t || !n) return;
|
|
1167
|
-
let r = await n.getDetachedDOMNodes(), i = new
|
|
1168
|
-
this.addProfile(i), this.dispatchEventToListeners(
|
|
1169
|
+
let r = await n.getDetachedDOMNodes(), i = new Mn(e, this, r);
|
|
1170
|
+
this.addProfile(i), this.dispatchEventToListeners(N.PROFILE_COMPLETE, i);
|
|
1169
1171
|
}
|
|
1170
1172
|
get treeItemTitle() {
|
|
1171
|
-
return
|
|
1173
|
+
return L(I.detachedElementsTitle);
|
|
1172
1174
|
}
|
|
1173
1175
|
get description() {
|
|
1174
|
-
return
|
|
1176
|
+
return L(I.detachedElementsDescription);
|
|
1175
1177
|
}
|
|
1176
1178
|
isInstantProfile() {
|
|
1177
1179
|
return !0;
|
|
@@ -1182,12 +1184,12 @@ var Jt = /* @__PURE__ */ e({
|
|
|
1182
1184
|
e.Events = /* @__PURE__ */ function(e) {
|
|
1183
1185
|
return e.RECORDING_STOPPED = "RecordingStopped", e.STATS_UPDATE = "StatsUpdate", e.DETACHED_ELEMENTS_OBTAINED = "DetachedElementsObtained", e;
|
|
1184
1186
|
}({});
|
|
1185
|
-
})(
|
|
1186
|
-
var
|
|
1187
|
+
})(jn ||= {});
|
|
1188
|
+
var Mn = class extends On {
|
|
1187
1189
|
#e;
|
|
1188
1190
|
detachedElements;
|
|
1189
1191
|
constructor(e, t, n, r) {
|
|
1190
|
-
super(e?.debuggerModel() ?? null, t, r ||
|
|
1192
|
+
super(e?.debuggerModel() ?? null, t, r || L(I.detachedElementProfile, { PH1: t.nextProfileUid() })), this.detachedElements = n, this.#e = e;
|
|
1191
1193
|
}
|
|
1192
1194
|
heapProfilerModel() {
|
|
1193
1195
|
return this.#e;
|
|
@@ -1195,13 +1197,13 @@ var An = class extends En {
|
|
|
1195
1197
|
profileType() {
|
|
1196
1198
|
return super.profileType();
|
|
1197
1199
|
}
|
|
1198
|
-
},
|
|
1199
|
-
Events: () =>
|
|
1200
|
-
HeapTimelineOverview: () =>
|
|
1201
|
-
OverviewCalculator: () =>
|
|
1202
|
-
Samples: () =>
|
|
1203
|
-
SmoothScale: () =>
|
|
1204
|
-
}),
|
|
1200
|
+
}, Nn = "/*\n * Copyright (C) 2009 Google Inc. All rights reserved.\n * Copyright (C) 2010 Apple Inc. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are\n * met:\n *\n * * Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above\n * copyright notice, this list of conditions and the following disclaimer\n * in the documentation and/or other materials provided with the\n * distribution.\n * * Neither the name of Google Inc. nor the names of its\n * contributors may be used to endorse or promote products derived from\n * this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n.heap-snapshot-view {\n overflow: hidden;\n}\n\n.heap-snapshot-view .data-grid {\n border: none;\n flex: auto;\n\n .data-container {\n overflow-x: scroll;\n }\n\n .corner {\n width: 100%;\n }\n}\n\n.heap-snapshot-view .data-grid tr:empty {\n height: 16px;\n visibility: hidden;\n}\n\n.heap-snapshot-view .data-grid span.percent-column {\n width: 35px !important; /* stylelint-disable-line declaration-no-important */\n}\n\n.heap-snapshot-view .object-value-object,\n.object-value-node {\n display: inline;\n position: static;\n}\n\n.heap-snapshot-view .object-value-string {\n white-space: nowrap;\n}\n\n.heap-snapshot-view td.object-column .objects-count {\n margin-left: 10px;\n font-size: 11px;\n color: var(--sys-color-token-subtle);\n}\n\n.heap-snapshot-view tr:not(.selected) .object-value-id {\n color: var(--sys-color-token-subtle);\n}\n\n.profile-view .heap-tracking-overview {\n flex: 0 0 80px;\n height: 80px;\n}\n\n.heap-snapshot-view .retaining-paths-view {\n overflow: hidden;\n}\n\n.heap-snapshot-view .heap-snapshot-view-resizer {\n background-color: var(--sys-color-surface1);\n display: flex;\n flex: 0 0 21px;\n}\n\n.heap-snapshot-view td.object-column > div > span {\n margin-right: 6px;\n}\n\n.heap-snapshot-view .heap-snapshot-view-resizer .title {\n flex: 0 1 auto;\n overflow: hidden;\n white-space: nowrap;\n}\n\n.heap-snapshot-view .heap-snapshot-view-resizer .verticalResizerIcon {\n /* stylelint-disable-next-line custom-property-pattern */\n background-image: var(--image-file-toolbarResizerVertical);\n background-repeat: no-repeat;\n background-position: center;\n flex: 0 0 28px;\n margin-left: auto;\n}\n\n.heap-snapshot-view .heap-snapshot-view-resizer .title > span {\n display: inline-block;\n padding-top: 3px;\n vertical-align: middle;\n margin-left: 4px;\n margin-right: 8px;\n}\n\n.heap-snapshot-view .heap-snapshot-view-resizer * {\n pointer-events: none;\n}\n\n.heap-snapshot-view tr:not(.selected) td.object-column span.highlight {\n background-color: inherit;\n}\n\n.heap-snapshot-view td.object-column span.heap-object-source-link {\n float: right;\n\n & > button.text-button.devtools-link {\n background-color: inherit;\n outline-offset: calc(-1 * var(--sys-size-1));\n padding-inline: var(--sys-size-2) !important; /* stylelint-disable-line declaration-no-important */\n }\n}\n\n.heap-snapshot-view td.object-column span.heap-object-source-link:empty {\n animation: fadeInOut 2s infinite;\n}\n\n.heap-snapshot-view td.object-column span.heap-object-source-link:empty::before {\n content: \"\\b7\\b7\";\n font-weight: bold;\n}\n\n@keyframes fadeInOut {\n 0% {\n transform: rotate(0);\n }\n\n 50% {\n transform: rotate(0.5turn);\n }\n\n 100% {\n transform: rotate(1turn);\n }\n}\n\n.heap-object-tag {\n height: 14px;\n width: 14px;\n}\n\n.heap-snapshot-view tr:not(.selected) td.object-column span.heap-object-tag,\n.heap-snapshot-view tr:not(.selected) td.object-column span.grayed {\n color: var(--sys-color-token-subtle);\n}\n\n.heap-snapshot-view tr:not(.selected) .cycled-ancestor-node,\n.heap-snapshot-view tr:not(.selected) .unreachable-ancestor-node {\n opacity: 60%;\n}\n\n#heap-recording-view .profile-view {\n top: 80px;\n}\n\n.heap-overview-container {\n overflow: hidden;\n position: absolute;\n top: 0;\n width: 100%;\n height: 80px;\n}\n\n#heap-recording-overview-grid .resources-dividers-label-bar {\n pointer-events: auto;\n}\n\n.heap-recording-overview-canvas {\n position: absolute;\n inset: 20px 0 0;\n}\n\n.heap-snapshot-statistics-view {\n overflow: auto;\n}\n\n.heap-snapshot-stats-pie-chart {\n margin: 12px 30px;\n flex-shrink: 0;\n}\n\n.heap-allocation-stack .stack-frame {\n display: flex;\n justify-content: space-between;\n border-bottom: 1px solid var(--sys-color-divider);\n padding: 2px;\n}\n\n.heap-allocation-stack .stack-frame:focus {\n background-color: var(--sys-color-tonal-container);\n color: var(--sys-color-on-tonal-container);\n}\n\n.heap-allocation-stack .stack-frame:hover:not(:focus) {\n background-color: var(--sys-color-state-hover-on-subtle);\n}\n\n.heap-allocation-stack .stack-frame .devtools-link {\n color: var(--sys-color-primary);\n}\n\n.no-heap-allocation-stack {\n padding: 5px;\n}\n\n@media (forced-colors: active) {\n .cycled-ancestor-node {\n opacity: 100%;\n }\n\n .heap-snapshot-view td.object-column .objects-count,\n .heap-snapshot-view tr:not(.selected) td.object-column span.heap-object-tag,\n .heap-snapshot-view tr:not(.selected) .object-value-id {\n color: ButtonText;\n }\n}\n\n.detached-elements-view {\n overflow: auto;\n}\n", Pn = /* @__PURE__ */ e({
|
|
1201
|
+
Events: () => In,
|
|
1202
|
+
HeapTimelineOverview: () => Fn,
|
|
1203
|
+
OverviewCalculator: () => zn,
|
|
1204
|
+
Samples: () => Rn,
|
|
1205
|
+
SmoothScale: () => Ln
|
|
1206
|
+
}), Fn = class extends t(b) {
|
|
1205
1207
|
overviewCalculator;
|
|
1206
1208
|
overviewContainer;
|
|
1207
1209
|
overviewGrid;
|
|
@@ -1217,7 +1219,7 @@ var An = class extends En {
|
|
|
1217
1219
|
updateTimerId;
|
|
1218
1220
|
windowWidthRatio;
|
|
1219
1221
|
constructor() {
|
|
1220
|
-
super({ jslog: `${
|
|
1222
|
+
super({ jslog: `${tt("heap-tracking-overview")}` }), this.element.id = "heap-recording-view", this.element.classList.add("heap-tracking-overview"), this.overviewCalculator = new zn(), this.overviewContainer = this.element.createChild("div", "heap-overview-container"), this.overviewGrid = new Bt("heap-recording", this.overviewCalculator), this.overviewGrid.element.classList.add("fill"), this.overviewCanvas = this.overviewContainer.createChild("canvas", "heap-recording-overview-canvas"), this.overviewContainer.appendChild(this.overviewGrid.element), this.overviewGrid.addEventListener(Vt.WINDOW_CHANGED, this.onWindowChanged, this), this.windowLeftRatio = 0, this.windowRightRatio = 1, this.overviewGrid.setWindowRatio(this.windowLeftRatio, this.windowRightRatio), this.yScale = new Ln(), this.xScale = new Ln(), this.profileSamples = new Rn(), w.instance().addEventListener(bt.eventName, () => this.update());
|
|
1221
1223
|
}
|
|
1222
1224
|
start() {
|
|
1223
1225
|
this.running = !0;
|
|
@@ -1234,40 +1236,40 @@ var An = class extends En {
|
|
|
1234
1236
|
}
|
|
1235
1237
|
drawOverviewCanvas(e, t) {
|
|
1236
1238
|
if (!this.profileSamples) return;
|
|
1237
|
-
let n = this.profileSamples, r = n.sizes, i = n.max,
|
|
1238
|
-
function
|
|
1239
|
+
let n = this.profileSamples, r = n.sizes, i = n.max, o = n.timestamps, s = o[0], c = this.xScale.nextScale(e / n.totalTime), l = 0;
|
|
1240
|
+
function u(e, t) {
|
|
1239
1241
|
let n = 0, r = 0;
|
|
1240
|
-
for (let i = 1; i <
|
|
1241
|
-
let
|
|
1242
|
-
|
|
1242
|
+
for (let i = 1; i < o.length; ++i) {
|
|
1243
|
+
let a = Math.floor((o[i] - s) * c);
|
|
1244
|
+
a !== r && (n && t(r, n), n = 0, r = a), n += e[i];
|
|
1243
1245
|
}
|
|
1244
1246
|
t(r, n);
|
|
1245
1247
|
}
|
|
1246
|
-
function
|
|
1247
|
-
|
|
1248
|
+
function d(e, t) {
|
|
1249
|
+
l = Math.max(l, t);
|
|
1248
1250
|
}
|
|
1249
|
-
|
|
1250
|
-
let
|
|
1251
|
+
u(r, d);
|
|
1252
|
+
let f = this.yScale.nextScale(l ? t / (l * 1.1) : 0);
|
|
1251
1253
|
this.overviewCanvas.width = e * window.devicePixelRatio, this.overviewCanvas.height = t * window.devicePixelRatio, this.overviewCanvas.style.width = e + "px", this.overviewCanvas.style.height = t + "px";
|
|
1252
|
-
let
|
|
1253
|
-
if (!
|
|
1254
|
-
let p =
|
|
1254
|
+
let ee = this.overviewCanvas.getContext("2d");
|
|
1255
|
+
if (!ee) throw Error("Failed to get canvas context");
|
|
1256
|
+
let p = ee;
|
|
1255
1257
|
if (p.scale(window.devicePixelRatio, window.devicePixelRatio), this.running) {
|
|
1256
|
-
p.beginPath(), p.lineWidth = 2, p.strokeStyle =
|
|
1257
|
-
let e = (Date.now() -
|
|
1258
|
+
p.beginPath(), p.lineWidth = 2, p.strokeStyle = w.instance().getComputedValue("--sys-color-neutral-outline");
|
|
1259
|
+
let e = (Date.now() - s) * c;
|
|
1258
1260
|
p.moveTo(e, t - 1), p.lineTo(e, 0), p.stroke(), p.closePath();
|
|
1259
1261
|
}
|
|
1260
|
-
let
|
|
1261
|
-
if (
|
|
1262
|
-
let n = (t - 14) /
|
|
1263
|
-
h = 1024 ** Math.floor(Math.log(n) / Math.log(1024)), h *= 10 ** Math.floor(Math.log(n / h) / Math.LN10), h * 5 <= n && (h *= 5),
|
|
1262
|
+
let m = 0, h;
|
|
1263
|
+
if (f) {
|
|
1264
|
+
let n = (t - 14) / f;
|
|
1265
|
+
h = 1024 ** Math.floor(Math.log(n) / Math.log(1024)), h *= 10 ** Math.floor(Math.log(n / h) / Math.LN10), h * 5 <= n && (h *= 5), m = Math.round(t - h * f - .5) + .5, p.beginPath(), p.lineWidth = 1, p.strokeStyle = w.instance().getComputedValue("--sys-color-on-surface-subtle"), p.moveTo(0, m), p.lineTo(e, m), p.stroke(), p.closePath();
|
|
1264
1266
|
}
|
|
1265
1267
|
function te(e, n) {
|
|
1266
|
-
p.moveTo(e, t - 1), p.lineTo(e, Math.round(t - n *
|
|
1268
|
+
p.moveTo(e, t - 1), p.lineTo(e, Math.round(t - n * f - 1));
|
|
1267
1269
|
}
|
|
1268
|
-
if (p.beginPath(), p.lineWidth = 2, p.strokeStyle =
|
|
1269
|
-
let e =
|
|
1270
|
-
p.beginPath(), p.textBaseline = "bottom", p.font = "10px " + window.getComputedStyle(this.element, null).getPropertyValue("font-family"), p.fillStyle =
|
|
1270
|
+
if (p.beginPath(), p.lineWidth = 2, p.strokeStyle = w.instance().getComputedValue("--sys-color-neutral-outline"), u(i, te), p.stroke(), p.closePath(), p.beginPath(), p.lineWidth = 2, p.strokeStyle = w.instance().getComputedValue("--sys-color-primary-bright"), u(r, te), p.stroke(), p.closePath(), h) {
|
|
1271
|
+
let e = a(h), t = m - .5, n = 8 + p.measureText(e).width;
|
|
1272
|
+
p.beginPath(), p.textBaseline = "bottom", p.font = "10px " + window.getComputedStyle(this.element, null).getPropertyValue("font-family"), p.fillStyle = w.instance().getComputedValue("--color-background-opacity-80"), p.fillRect(0, t - 14, n, 14), p.fillStyle = w.instance().getComputedValue("--sys-color-on-surface-subtle"), p.fillText(e, 4, t), p.fill(), p.closePath();
|
|
1271
1273
|
}
|
|
1272
1274
|
}
|
|
1273
1275
|
onResize() {
|
|
@@ -1289,18 +1291,18 @@ var An = class extends En {
|
|
|
1289
1291
|
this.updateGridTimerId = 0, this.updateBoundaries();
|
|
1290
1292
|
let e = this.profileSamples.ids;
|
|
1291
1293
|
if (!e.length) return;
|
|
1292
|
-
let t = this.profileSamples.timestamps, n = this.profileSamples.sizes, r = t[0],
|
|
1293
|
-
for (let e =
|
|
1294
|
-
let
|
|
1294
|
+
let t = this.profileSamples.timestamps, n = this.profileSamples.sizes, r = t[0], i = this.profileSamples.totalTime, a = r + i * this.windowLeftRatio, o = r + i * this.windowRightRatio, s = te(t, a, u), c = p(t, o, u), l = 0;
|
|
1295
|
+
for (let e = s; e < c; ++e) l += n[e];
|
|
1296
|
+
let d = s > 0 ? e[s - 1] : 0, f = c < e.length ? e[c] : Infinity;
|
|
1295
1297
|
this.dispatchEventToListeners("IdsRangeChanged", {
|
|
1296
|
-
minId:
|
|
1297
|
-
maxId:
|
|
1298
|
-
size:
|
|
1298
|
+
minId: d,
|
|
1299
|
+
maxId: f,
|
|
1300
|
+
size: l
|
|
1299
1301
|
});
|
|
1300
1302
|
}
|
|
1301
|
-
},
|
|
1303
|
+
}, In = /* @__PURE__ */ function(e) {
|
|
1302
1304
|
return e.IDS_RANGE_CHANGED = "IdsRangeChanged", e;
|
|
1303
|
-
}({}),
|
|
1305
|
+
}({}), Ln = class {
|
|
1304
1306
|
lastUpdate;
|
|
1305
1307
|
currentScale;
|
|
1306
1308
|
constructor() {
|
|
@@ -1311,11 +1313,11 @@ var An = class extends En {
|
|
|
1311
1313
|
let t = Date.now(), n = t - this.lastUpdate;
|
|
1312
1314
|
this.lastUpdate = t;
|
|
1313
1315
|
let r = 20 ** (n / 1e3), i = e / this.currentScale;
|
|
1314
|
-
this.currentScale *=
|
|
1316
|
+
this.currentScale *= le(i, 1 / r, r);
|
|
1315
1317
|
} else this.currentScale = e;
|
|
1316
1318
|
return this.currentScale;
|
|
1317
1319
|
}
|
|
1318
|
-
},
|
|
1320
|
+
}, Rn = class {
|
|
1319
1321
|
sizes;
|
|
1320
1322
|
ids;
|
|
1321
1323
|
timestamps;
|
|
@@ -1324,7 +1326,7 @@ var An = class extends En {
|
|
|
1324
1326
|
constructor() {
|
|
1325
1327
|
this.sizes = [], this.ids = [], this.timestamps = [], this.max = [], this.totalTime = 3e4;
|
|
1326
1328
|
}
|
|
1327
|
-
},
|
|
1329
|
+
}, zn = class {
|
|
1328
1330
|
maximumBoundaries;
|
|
1329
1331
|
minimumBoundaries;
|
|
1330
1332
|
xScaleFactor;
|
|
@@ -1338,7 +1340,7 @@ var An = class extends En {
|
|
|
1338
1340
|
return (e - this.minimumBoundaries) * this.xScaleFactor;
|
|
1339
1341
|
}
|
|
1340
1342
|
formatValue(e, t) {
|
|
1341
|
-
return
|
|
1343
|
+
return i(e / 1e3, !!t);
|
|
1342
1344
|
}
|
|
1343
1345
|
maximumBoundary() {
|
|
1344
1346
|
return this.maximumBoundaries;
|
|
@@ -1352,16 +1354,16 @@ var An = class extends En {
|
|
|
1352
1354
|
boundarySpan() {
|
|
1353
1355
|
return this.maximumBoundaries - this.minimumBoundaries;
|
|
1354
1356
|
}
|
|
1355
|
-
},
|
|
1356
|
-
HeapFlameChartDataProvider: () =>
|
|
1357
|
-
HeapProfileView: () =>
|
|
1358
|
-
NodeFormatter: () =>
|
|
1359
|
-
SamplingHeapProfileHeader: () =>
|
|
1360
|
-
SamplingHeapProfileModel: () =>
|
|
1361
|
-
SamplingHeapProfileNode: () =>
|
|
1362
|
-
SamplingHeapProfileType: () =>
|
|
1363
|
-
SamplingHeapProfileTypeBase: () =>
|
|
1364
|
-
}),
|
|
1357
|
+
}, Bn = /* @__PURE__ */ e({
|
|
1358
|
+
HeapFlameChartDataProvider: () => Zn,
|
|
1359
|
+
HeapProfileView: () => Un,
|
|
1360
|
+
NodeFormatter: () => Xn,
|
|
1361
|
+
SamplingHeapProfileHeader: () => qn,
|
|
1362
|
+
SamplingHeapProfileModel: () => Yn,
|
|
1363
|
+
SamplingHeapProfileNode: () => Jn,
|
|
1364
|
+
SamplingHeapProfileType: () => Kn,
|
|
1365
|
+
SamplingHeapProfileTypeBase: () => Wn
|
|
1366
|
+
}), R = {
|
|
1365
1367
|
selectedSizeS: "Selected size: {PH1}",
|
|
1366
1368
|
selfSizeBytes: "Self size",
|
|
1367
1369
|
totalSizeBytes: "Total size",
|
|
@@ -1382,11 +1384,11 @@ var An = class extends En {
|
|
|
1382
1384
|
totalSize: "Total size",
|
|
1383
1385
|
url: "URL",
|
|
1384
1386
|
samplingHeapProfilerTimeline: "Sampling heap profiler timeline"
|
|
1385
|
-
},
|
|
1386
|
-
function
|
|
1387
|
+
}, Vn = o("panels/profiler/HeapProfileView.ts", R), z = r.bind(void 0, Vn);
|
|
1388
|
+
function Hn(e) {
|
|
1387
1389
|
return e.profile || e.protocolProfile();
|
|
1388
1390
|
}
|
|
1389
|
-
var
|
|
1391
|
+
var Un = class extends En {
|
|
1390
1392
|
profileHeader;
|
|
1391
1393
|
profileType;
|
|
1392
1394
|
adjustedTotal;
|
|
@@ -1399,10 +1401,10 @@ var Vn = class extends wn {
|
|
|
1399
1401
|
lastOrdinal;
|
|
1400
1402
|
timelineOverview;
|
|
1401
1403
|
constructor(e) {
|
|
1402
|
-
super(), this.profileHeader = e, this.profileType = e.profileType(), this.initialize(new
|
|
1403
|
-
let t = new
|
|
1404
|
-
this.adjustedTotal = t.total, this.setProfile(t), this.selectedSizeText = new ut(), this.timestamps = [], this.sizes = [], this.max = [], this.ordinals = [], this.totalTime = 0, this.lastOrdinal = 0, this.timelineOverview = new
|
|
1405
|
-
this.profileType.removeEventListener(
|
|
1404
|
+
super(), this.profileHeader = e, this.profileType = e.profileType(), this.initialize(new Xn(this));
|
|
1405
|
+
let t = new Yn(Hn(e));
|
|
1406
|
+
this.adjustedTotal = t.total, this.setProfile(t), this.selectedSizeText = new ut(), this.timestamps = [], this.sizes = [], this.max = [], this.ordinals = [], this.totalTime = 0, this.lastOrdinal = 0, this.timelineOverview = new Fn(), this.profileType.hasTemporaryView() && (this.timelineOverview.addEventListener(In.IDS_RANGE_CHANGED, this.onIdsRangeChanged.bind(this)), this.timelineOverview.show(this.element, this.element.firstChild), this.timelineOverview.start(), this.profileType.addEventListener(Kn.Events.STATS_UPDATE, this.onStatsUpdate, this), this.profileType.once(N.PROFILE_COMPLETE).then(() => {
|
|
1407
|
+
this.profileType.removeEventListener(Kn.Events.STATS_UPDATE, this.onStatsUpdate, this), this.timelineOverview.stop(), this.timelineOverview.updateGrid();
|
|
1406
1408
|
}));
|
|
1407
1409
|
}
|
|
1408
1410
|
async toolbarItems() {
|
|
@@ -1410,10 +1412,10 @@ var Vn = class extends wn {
|
|
|
1410
1412
|
}
|
|
1411
1413
|
onIdsRangeChanged(e) {
|
|
1412
1414
|
let { minId: t, maxId: n } = e.data;
|
|
1413
|
-
this.selectedSizeText.setText(
|
|
1415
|
+
this.selectedSizeText.setText(z(R.selectedSizeS, { PH1: a(e.data.size) })), this.setSelectionRange(t, n);
|
|
1414
1416
|
}
|
|
1415
1417
|
setSelectionRange(e, t) {
|
|
1416
|
-
let n = new
|
|
1418
|
+
let n = new Yn(Hn(this.profileHeader), e, t);
|
|
1417
1419
|
this.adjustedTotal = n.total, this.setProfile(n);
|
|
1418
1420
|
}
|
|
1419
1421
|
onStatsUpdate(e) {
|
|
@@ -1421,7 +1423,7 @@ var Vn = class extends wn {
|
|
|
1421
1423
|
this.totalTime || (this.timestamps = [], this.sizes = [], this.max = [], this.ordinals = [], this.totalTime = 3e4, this.lastOrdinal = 0), this.sizes.fill(0), this.sizes.push(0), this.timestamps.push(Date.now()), this.ordinals.push(this.lastOrdinal + 1);
|
|
1422
1424
|
for (let e of t?.samples ?? []) {
|
|
1423
1425
|
this.lastOrdinal = Math.max(this.lastOrdinal, e.ordinal);
|
|
1424
|
-
let t =
|
|
1426
|
+
let t = p(this.ordinals, e.ordinal, u) - 1;
|
|
1425
1427
|
this.sizes[t] += e.size;
|
|
1426
1428
|
}
|
|
1427
1429
|
this.max.push(this.sizes[this.sizes.length - 1]), this.timestamps[this.timestamps.length - 1] - this.timestamps[0] > this.totalTime && (this.totalTime *= 2);
|
|
@@ -1436,15 +1438,15 @@ var Vn = class extends wn {
|
|
|
1436
1438
|
}
|
|
1437
1439
|
columnHeader(e) {
|
|
1438
1440
|
switch (e) {
|
|
1439
|
-
case "self": return
|
|
1440
|
-
case "total": return
|
|
1441
|
+
case "self": return z(R.selfSizeBytes);
|
|
1442
|
+
case "total": return z(R.totalSizeBytes);
|
|
1441
1443
|
}
|
|
1442
1444
|
return "";
|
|
1443
1445
|
}
|
|
1444
1446
|
createFlameChartDataProvider() {
|
|
1445
|
-
return new
|
|
1447
|
+
return new Zn(this.profile(), this.profileHeader.heapProfilerModel());
|
|
1446
1448
|
}
|
|
1447
|
-
},
|
|
1449
|
+
}, Wn = class extends t(pn) {
|
|
1448
1450
|
recording;
|
|
1449
1451
|
clearedDuringRecording;
|
|
1450
1452
|
constructor(e, t) {
|
|
@@ -1460,31 +1462,31 @@ var Vn = class extends wn {
|
|
|
1460
1462
|
return ".heapprofile";
|
|
1461
1463
|
}
|
|
1462
1464
|
get buttonTooltip() {
|
|
1463
|
-
return this.recording ?
|
|
1465
|
+
return this.recording ? z(R.stopHeapProfiling) : z(R.startHeapProfiling);
|
|
1464
1466
|
}
|
|
1465
1467
|
buttonClicked() {
|
|
1466
1468
|
return this.recording ? this.stopRecordingProfile() : this.startRecordingProfile(), this.recording;
|
|
1467
1469
|
}
|
|
1468
1470
|
async startRecordingProfile() {
|
|
1469
|
-
let e =
|
|
1471
|
+
let e = x.instance().flavor(_);
|
|
1470
1472
|
if (this.profileBeingRecorded() || !e) return;
|
|
1471
|
-
let t = new
|
|
1472
|
-
this.setProfileBeingRecorded(t), this.addProfile(t), t.updateStatus(
|
|
1473
|
-
let n = [
|
|
1474
|
-
|
|
1473
|
+
let t = new qn(e, this);
|
|
1474
|
+
this.setProfileBeingRecorded(t), this.addProfile(t), t.updateStatus(z(R.recording));
|
|
1475
|
+
let n = [z(R.heapProfilerIsRecording)];
|
|
1476
|
+
ve.instance().setPanelWarnings("heap-profiler", n), this.recording = !0, this.startSampling();
|
|
1475
1477
|
}
|
|
1476
1478
|
async stopRecordingProfile() {
|
|
1477
1479
|
this.recording = !1;
|
|
1478
1480
|
let e = this.profileBeingRecorded();
|
|
1479
1481
|
if (!e?.heapProfilerModel()) return;
|
|
1480
|
-
e.updateStatus(
|
|
1482
|
+
e.updateStatus(z(R.stopping));
|
|
1481
1483
|
let t = await this.stopSampling();
|
|
1482
|
-
e && (console.assert(t !== void 0), e.setProtocolProfile(t), e.updateStatus(""), this.setProfileBeingRecorded(null)),
|
|
1484
|
+
e && (console.assert(t !== void 0), e.setProtocolProfile(t), e.updateStatus(""), this.setProfileBeingRecorded(null)), ve.instance().setPanelWarnings("heap-profiler", []);
|
|
1483
1485
|
let n = this.clearedDuringRecording;
|
|
1484
|
-
this.clearedDuringRecording = !1, !n && this.dispatchEventToListeners(
|
|
1486
|
+
this.clearedDuringRecording = !1, !n && this.dispatchEventToListeners(N.PROFILE_COMPLETE, e);
|
|
1485
1487
|
}
|
|
1486
1488
|
createProfileLoadedFromFile(e) {
|
|
1487
|
-
return new
|
|
1489
|
+
return new qn(null, this, e);
|
|
1488
1490
|
}
|
|
1489
1491
|
profileBeingRecordedRemoved() {
|
|
1490
1492
|
this.clearedDuringRecording = !0, this.stopRecordingProfile();
|
|
@@ -1495,29 +1497,29 @@ var Vn = class extends wn {
|
|
|
1495
1497
|
stopSampling() {
|
|
1496
1498
|
throw Error("Not implemented");
|
|
1497
1499
|
}
|
|
1498
|
-
},
|
|
1500
|
+
}, Gn, Kn = class e extends Wn {
|
|
1499
1501
|
updateTimer;
|
|
1500
1502
|
updateIntervalMs;
|
|
1501
1503
|
#e;
|
|
1502
1504
|
customContentInternal = null;
|
|
1503
1505
|
constructor() {
|
|
1504
|
-
super(e.TypeId,
|
|
1506
|
+
super(e.TypeId, z(R.allocationSampling)), Gn ||= this, this.updateTimer = 0, this.updateIntervalMs = 200, this.#e = m.instance().createSetting("record-sampling-heap-profiler-timeline", !1);
|
|
1505
1507
|
}
|
|
1506
1508
|
static get instance() {
|
|
1507
|
-
return
|
|
1509
|
+
return Gn;
|
|
1508
1510
|
}
|
|
1509
1511
|
get treeItemTitle() {
|
|
1510
|
-
return
|
|
1512
|
+
return z(R.samplingProfiles);
|
|
1511
1513
|
}
|
|
1512
1514
|
get description() {
|
|
1513
|
-
return [
|
|
1515
|
+
return [z(R.recordMemoryAllocations)].join("\n");
|
|
1514
1516
|
}
|
|
1515
1517
|
hasTemporaryView() {
|
|
1516
1518
|
return this.#e.get();
|
|
1517
1519
|
}
|
|
1518
1520
|
customContent() {
|
|
1519
|
-
let e =
|
|
1520
|
-
return this.customContentInternal = e, e.setAttribute("jslog", `${
|
|
1521
|
+
let e = Nt(z(R.samplingHeapProfilerTimeline), this.#e);
|
|
1522
|
+
return this.customContentInternal = e, e.setAttribute("jslog", `${ze("record-sampling-heap-profiler-timeline").track({ click: !0 })}`), e;
|
|
1521
1523
|
}
|
|
1522
1524
|
setCustomContentEnabled(e) {
|
|
1523
1525
|
this.customContentInternal && (this.customContentInternal.disabled = !e);
|
|
@@ -1554,12 +1556,12 @@ var Vn = class extends wn {
|
|
|
1554
1556
|
e.Events = /* @__PURE__ */ function(e) {
|
|
1555
1557
|
return e.RECORDING_STOPPED = "RecordingStopped", e.STATS_UPDATE = "StatsUpdate", e;
|
|
1556
1558
|
}({});
|
|
1557
|
-
})(
|
|
1558
|
-
var
|
|
1559
|
+
})(Kn ||= {});
|
|
1560
|
+
var qn = class extends On {
|
|
1559
1561
|
heapProfilerModelInternal;
|
|
1560
1562
|
protocolProfileInternal;
|
|
1561
1563
|
constructor(e, t, n) {
|
|
1562
|
-
super(e?.debuggerModel() ?? null, t, n ||
|
|
1564
|
+
super(e?.debuggerModel() ?? null, t, n || z(R.profileD, { PH1: t.nextProfileUid() })), this.heapProfilerModelInternal = e, this.protocolProfileInternal = {
|
|
1563
1565
|
head: {
|
|
1564
1566
|
callFrame: {
|
|
1565
1567
|
functionName: "",
|
|
@@ -1587,7 +1589,7 @@ var Gn = class extends En {
|
|
|
1587
1589
|
profileType() {
|
|
1588
1590
|
return super.profileType();
|
|
1589
1591
|
}
|
|
1590
|
-
},
|
|
1592
|
+
}, Jn = class extends Dt {
|
|
1591
1593
|
self;
|
|
1592
1594
|
constructor(e) {
|
|
1593
1595
|
let t = e.callFrame || {
|
|
@@ -1599,7 +1601,7 @@ var Gn = class extends En {
|
|
|
1599
1601
|
};
|
|
1600
1602
|
super(t), this.self = e.selfSize;
|
|
1601
1603
|
}
|
|
1602
|
-
},
|
|
1604
|
+
}, Yn = class extends Ot {
|
|
1603
1605
|
modules;
|
|
1604
1606
|
constructor(e, t, n) {
|
|
1605
1607
|
super(), this.modules = e.modules || [];
|
|
@@ -1614,11 +1616,11 @@ var Gn = class extends En {
|
|
|
1614
1616
|
}
|
|
1615
1617
|
this.initialize(i(e.head));
|
|
1616
1618
|
function i(e) {
|
|
1617
|
-
let t = new
|
|
1619
|
+
let t = new Jn(e), n = [e], i = [t];
|
|
1618
1620
|
for (; n.length;) {
|
|
1619
1621
|
let e = n.pop(), t = i.pop();
|
|
1620
1622
|
t.children = e.children.map((e) => {
|
|
1621
|
-
let t = new
|
|
1623
|
+
let t = new Jn(e);
|
|
1622
1624
|
return r && (t.self = r.get(e.id) || 0), t;
|
|
1623
1625
|
}), n.push(...e.children), i.push(...t.children);
|
|
1624
1626
|
}
|
|
@@ -1628,19 +1630,19 @@ var Gn = class extends En {
|
|
|
1628
1630
|
return e.children = e.children.filter(a), !!(e.children.length || e.self);
|
|
1629
1631
|
}
|
|
1630
1632
|
}
|
|
1631
|
-
},
|
|
1633
|
+
}, Xn = class {
|
|
1632
1634
|
profileView;
|
|
1633
1635
|
constructor(e) {
|
|
1634
1636
|
this.profileView = e;
|
|
1635
1637
|
}
|
|
1636
1638
|
formatValue(e) {
|
|
1637
|
-
return
|
|
1639
|
+
return a(e);
|
|
1638
1640
|
}
|
|
1639
1641
|
formatValueAccessibleText(e) {
|
|
1640
|
-
return
|
|
1642
|
+
return z(R.sBytes, { PH1: e });
|
|
1641
1643
|
}
|
|
1642
1644
|
formatPercent(e, t) {
|
|
1643
|
-
return
|
|
1645
|
+
return z(R.formatPercent, { PH1: e.toFixed(2) });
|
|
1644
1646
|
}
|
|
1645
1647
|
linkifyNode(e) {
|
|
1646
1648
|
let t = this.profileView.profileHeader.heapProfilerModel(), n = t ? t.target() : null;
|
|
@@ -1649,7 +1651,7 @@ var Gn = class extends En {
|
|
|
1649
1651
|
inlineFrameIndex: 0
|
|
1650
1652
|
});
|
|
1651
1653
|
}
|
|
1652
|
-
},
|
|
1654
|
+
}, Zn = class extends gn {
|
|
1653
1655
|
profile;
|
|
1654
1656
|
heapProfilerModel;
|
|
1655
1657
|
constructor(e, t) {
|
|
@@ -1664,8 +1666,8 @@ var Gn = class extends En {
|
|
|
1664
1666
|
entryHasDeoptReason(e) {
|
|
1665
1667
|
return !1;
|
|
1666
1668
|
}
|
|
1667
|
-
formatValue(e,
|
|
1668
|
-
return
|
|
1669
|
+
formatValue(e, t) {
|
|
1670
|
+
return z(R.skb, { PH1: Ke(e / 1e3) });
|
|
1669
1671
|
}
|
|
1670
1672
|
calculateTimelineData() {
|
|
1671
1673
|
function e(t) {
|
|
@@ -1676,7 +1678,7 @@ var Gn = class extends En {
|
|
|
1676
1678
|
let t = c;
|
|
1677
1679
|
n[l] = e, r[l] = o, i[l] = e.total, a[l] = c, ++l, ++o, e.children.forEach(u), --o, s = Math.max(s, o), c = t + e.total;
|
|
1678
1680
|
}
|
|
1679
|
-
return u(this.profile.root), this.maxStackDepthInternal = s + 1, this.entryNodes = n, this.timelineDataInternal =
|
|
1681
|
+
return u(this.profile.root), this.maxStackDepthInternal = s + 1, this.entryNodes = n, this.timelineDataInternal = Pt.create({
|
|
1680
1682
|
entryLevels: r,
|
|
1681
1683
|
entryTotalTimes: i,
|
|
1682
1684
|
entryStartTimes: a,
|
|
@@ -1693,21 +1695,21 @@ var Gn = class extends En {
|
|
|
1693
1695
|
value: t
|
|
1694
1696
|
});
|
|
1695
1697
|
}
|
|
1696
|
-
r(
|
|
1697
|
-
let i = new
|
|
1698
|
-
return
|
|
1699
|
-
}
|
|
1700
|
-
},
|
|
1701
|
-
AllocationGridNode: () =>
|
|
1702
|
-
HeapSnapshotConstructorNode: () =>
|
|
1703
|
-
HeapSnapshotDiffNode: () =>
|
|
1704
|
-
HeapSnapshotDiffNodesProvider: () =>
|
|
1705
|
-
HeapSnapshotGenericObjectNode: () =>
|
|
1706
|
-
HeapSnapshotGridNode: () =>
|
|
1707
|
-
HeapSnapshotInstanceNode: () =>
|
|
1708
|
-
HeapSnapshotObjectNode: () =>
|
|
1709
|
-
HeapSnapshotRetainingObjectNode: () =>
|
|
1710
|
-
}),
|
|
1698
|
+
r(z(R.name), at(t.functionName)), r(z(R.selfSize), a(t.self)), r(z(R.totalSize), a(t.total));
|
|
1699
|
+
let i = new T(), o = i.maybeLinkifyConsoleCallFrame(this.heapProfilerModel ? this.heapProfilerModel.target() : null, t.callFrame);
|
|
1700
|
+
return o && r(z(R.url), o.textContent), i.dispose(), En.buildPopoverTable(n);
|
|
1701
|
+
}
|
|
1702
|
+
}, Qn = /* @__PURE__ */ e({
|
|
1703
|
+
AllocationGridNode: () => cr,
|
|
1704
|
+
HeapSnapshotConstructorNode: () => ar,
|
|
1705
|
+
HeapSnapshotDiffNode: () => sr,
|
|
1706
|
+
HeapSnapshotDiffNodesProvider: () => or,
|
|
1707
|
+
HeapSnapshotGenericObjectNode: () => tr,
|
|
1708
|
+
HeapSnapshotGridNode: () => H,
|
|
1709
|
+
HeapSnapshotInstanceNode: () => ir,
|
|
1710
|
+
HeapSnapshotObjectNode: () => nr,
|
|
1711
|
+
HeapSnapshotRetainingObjectNode: () => rr
|
|
1712
|
+
}), B = {
|
|
1711
1713
|
genericStringsTwoPlaceholders: "{PH1}, {PH2}",
|
|
1712
1714
|
internalArray: "(internal array)[]",
|
|
1713
1715
|
userObjectReachableFromWindow: "User object reachable from window",
|
|
@@ -1731,7 +1733,7 @@ var Gn = class extends En {
|
|
|
1731
1733
|
objectElementsSummary: "An internal object which stores the indexed properties in a JavaScript Object, such as the contents of an Array.",
|
|
1732
1734
|
objectPropertiesSummary: "An internal object which stores the named properties in a JavaScript Object.",
|
|
1733
1735
|
slicedStringSummary: "A string which represents some of the characters from another string."
|
|
1734
|
-
},
|
|
1736
|
+
}, $n = o("panels/profiler/HeapSnapshotGridNodes.ts", B), V = r.bind(void 0, $n), er = class extends jt {}, H = class e extends t(er) {
|
|
1735
1737
|
dataGridInternal;
|
|
1736
1738
|
instanceCount = 0;
|
|
1737
1739
|
savedChildren = /* @__PURE__ */ new Map();
|
|
@@ -1785,7 +1787,7 @@ var Gn = class extends En {
|
|
|
1785
1787
|
return e.toFixed(0) + "\xA0%";
|
|
1786
1788
|
}
|
|
1787
1789
|
toUIDistance(e) {
|
|
1788
|
-
return e >= 0 && e <
|
|
1790
|
+
return e >= 0 && e < Jt ? e.toString() : "−";
|
|
1789
1791
|
}
|
|
1790
1792
|
allChildren() {
|
|
1791
1793
|
return this.dataGridInternal.allChildren(this);
|
|
@@ -1806,21 +1808,21 @@ var Gn = class extends En {
|
|
|
1806
1808
|
return null;
|
|
1807
1809
|
}
|
|
1808
1810
|
createValueCell(e) {
|
|
1809
|
-
let t =
|
|
1811
|
+
let t = ot("numeric-column").track({ click: !0 }), n = document.createElement("td");
|
|
1810
1812
|
n.className = "numeric-column", n.setAttribute("jslog", t.toString());
|
|
1811
1813
|
let r = this.dataGrid;
|
|
1812
1814
|
if (r.snapshot && r.snapshot.totalSize !== 0) {
|
|
1813
1815
|
let t = this.data[e], r = e + "-percent", i = this.data[r], a = `${e}-tooltip`, o = this.data[a];
|
|
1814
|
-
i ? (
|
|
1816
|
+
i ? (de(ye`
|
|
1815
1817
|
<div class="profile-multiple-values">
|
|
1816
|
-
<span aria-hidden="true" title=${
|
|
1818
|
+
<span aria-hidden="true" title=${fe(o)}>${t}</span>
|
|
1817
1819
|
<span class="percent-column" aria-hidden="true">${i}</span>
|
|
1818
|
-
</div>`, n), this.setCellAccessibleName(
|
|
1820
|
+
</div>`, n), this.setCellAccessibleName(V(B.genericStringsTwoPlaceholders, {
|
|
1819
1821
|
PH1: t,
|
|
1820
1822
|
PH2: i
|
|
1821
|
-
}), n, e)) :
|
|
1823
|
+
}), n, e)) : de(ye`
|
|
1822
1824
|
<div>
|
|
1823
|
-
<span title=${
|
|
1825
|
+
<span title=${fe(o)}>${t}</span>
|
|
1824
1826
|
</div>`, n);
|
|
1825
1827
|
}
|
|
1826
1828
|
return n;
|
|
@@ -1855,7 +1857,7 @@ var Gn = class extends En {
|
|
|
1855
1857
|
this.dataGridInternal.insertChild(this, this.createChildNode(e), t);
|
|
1856
1858
|
}
|
|
1857
1859
|
function s(e, t, n) {
|
|
1858
|
-
let r = new
|
|
1860
|
+
let r = new Mt(this.populateChildren.bind(this), e, t, this.dataGridInternal.defaultPopulateCount());
|
|
1859
1861
|
this.dataGridInternal.insertChild(this, r, n);
|
|
1860
1862
|
}
|
|
1861
1863
|
function c(t, n) {
|
|
@@ -1921,8 +1923,8 @@ var Gn = class extends En {
|
|
|
1921
1923
|
e.Events = /* @__PURE__ */ function(e) {
|
|
1922
1924
|
return e.PopulateComplete = "PopulateComplete", e;
|
|
1923
1925
|
}({});
|
|
1924
|
-
})(
|
|
1925
|
-
var
|
|
1926
|
+
})(H ||= {});
|
|
1927
|
+
var tr = class extends H {
|
|
1926
1928
|
referenceName;
|
|
1927
1929
|
nameInternal;
|
|
1928
1930
|
type;
|
|
@@ -1939,12 +1941,12 @@ var $n = class extends W {
|
|
|
1939
1941
|
let n = e.snapshot, r = this.shallowSize / n.totalSize * 100, i = this.retainedSize / n.totalSize * 100;
|
|
1940
1942
|
this.data = {
|
|
1941
1943
|
distance: this.toUIDistance(this.distance),
|
|
1942
|
-
shallowSize:
|
|
1943
|
-
retainedSize:
|
|
1944
|
+
shallowSize: f(this.shallowSize),
|
|
1945
|
+
retainedSize: f(this.retainedSize),
|
|
1944
1946
|
"shallowSize-percent": this.toPercentString(r),
|
|
1945
1947
|
"retainedSize-percent": this.toPercentString(i),
|
|
1946
|
-
"shallowSize-tooltip":
|
|
1947
|
-
"retainedSize-tooltip":
|
|
1948
|
+
"shallowSize-tooltip": a(this.shallowSize),
|
|
1949
|
+
"retainedSize-tooltip": a(this.retainedSize)
|
|
1948
1950
|
};
|
|
1949
1951
|
}
|
|
1950
1952
|
get name() {
|
|
@@ -1983,20 +1985,18 @@ var $n = class extends W {
|
|
|
1983
1985
|
case "object shape":
|
|
1984
1986
|
t = "null";
|
|
1985
1987
|
break;
|
|
1986
|
-
case "array":
|
|
1987
|
-
e = e ? `${e}[]` : U(H.internalArray);
|
|
1988
|
-
break;
|
|
1988
|
+
case "array": e = e ? `${e}[]` : V(B.internalArray);
|
|
1989
1989
|
}
|
|
1990
1990
|
return this.createObjectCellWithValue(t, e || "");
|
|
1991
1991
|
}
|
|
1992
1992
|
createObjectCellWithValue(e, t) {
|
|
1993
|
-
let n =
|
|
1993
|
+
let n = ot("object-column").track({ click: !0 }), r = document.createElement("td");
|
|
1994
1994
|
r.className = "object-column disclosure", r.setAttribute("jslog", n.toString());
|
|
1995
1995
|
let i = {};
|
|
1996
|
-
|
|
1996
|
+
de(ye`<div
|
|
1997
1997
|
class="source-code event-properties"
|
|
1998
1998
|
style="overflow: visible;"
|
|
1999
|
-
${
|
|
1999
|
+
${Oe((e) => {
|
|
2000
2000
|
i.div = e;
|
|
2001
2001
|
})}
|
|
2002
2002
|
>
|
|
@@ -2006,12 +2006,12 @@ var $n = class extends W {
|
|
|
2006
2006
|
let a = i.div;
|
|
2007
2007
|
if (!a) throw Error("Expected div to exists");
|
|
2008
2008
|
if (this.prefixObjectCell(a), this.reachableFromWindow) {
|
|
2009
|
-
let e =
|
|
2010
|
-
|
|
2009
|
+
let e = he("frame", "heap-object-tag");
|
|
2010
|
+
v.install(e, V(B.userObjectReachableFromWindow)), a.appendChild(e);
|
|
2011
2011
|
}
|
|
2012
2012
|
if (this.detachedDOMTreeNode) {
|
|
2013
|
-
let e =
|
|
2014
|
-
|
|
2013
|
+
let e = he("scissors", "heap-object-tag");
|
|
2014
|
+
v.install(e, V(B.detachedFromDomTree)), a.appendChild(e);
|
|
2015
2015
|
}
|
|
2016
2016
|
return this.appendSourceLocation(a), this.depth && r.style.setProperty("padding-left", this.depth * this.dataGrid.indentWidth + "px"), r;
|
|
2017
2017
|
}
|
|
@@ -2023,55 +2023,56 @@ var $n = class extends W {
|
|
|
2023
2023
|
n ? (n.setAttribute("tabindex", "0"), t.appendChild(n), this.linkElement = n) : t.remove();
|
|
2024
2024
|
}
|
|
2025
2025
|
async queryObjectContent(e, t) {
|
|
2026
|
-
return await this.tryQueryObjectContent(e, t) || this.tryGetTooltipDescription() || e.runtimeModel().createRemoteObjectFromPrimitiveValue(
|
|
2026
|
+
return await this.tryQueryObjectContent(e, t) || this.tryGetTooltipDescription() || e.runtimeModel().createRemoteObjectFromPrimitiveValue(V(B.previewIsNotAvailable));
|
|
2027
2027
|
}
|
|
2028
2028
|
async tryQueryObjectContent(e, t) {
|
|
2029
2029
|
return this.type === "string" ? e.runtimeModel().createRemoteObjectFromPrimitiveValue(this.nameInternal) : await e.objectForSnapshotObjectId(String(this.snapshotNodeId), t);
|
|
2030
2030
|
}
|
|
2031
2031
|
tryGetTooltipDescription() {
|
|
2032
|
+
let e = "https://developer.chrome.com/docs/devtools/memory-problems/heap-snapshots#";
|
|
2032
2033
|
switch (this.type) {
|
|
2033
2034
|
case "code": return {
|
|
2034
|
-
description:
|
|
2035
|
-
link: "
|
|
2035
|
+
description: V(B.compiledCodeSummary),
|
|
2036
|
+
link: e + "compiled-code"
|
|
2036
2037
|
};
|
|
2037
2038
|
case "concatenated string": return {
|
|
2038
|
-
description:
|
|
2039
|
-
link: "
|
|
2039
|
+
description: V(B.concatenatedStringSummary),
|
|
2040
|
+
link: e + "concatenated-string"
|
|
2040
2041
|
};
|
|
2041
2042
|
case "sliced string": return {
|
|
2042
|
-
description:
|
|
2043
|
-
link: "
|
|
2043
|
+
description: V(B.slicedStringSummary),
|
|
2044
|
+
link: e + "sliced-string"
|
|
2044
2045
|
};
|
|
2045
2046
|
}
|
|
2046
2047
|
switch (this.type + ":" + this.nameInternal) {
|
|
2047
2048
|
case "array:": return {
|
|
2048
|
-
description:
|
|
2049
|
-
link: "
|
|
2049
|
+
description: V(B.internalArraySummary),
|
|
2050
|
+
link: e + "array"
|
|
2050
2051
|
};
|
|
2051
2052
|
case "array:(object elements)": return {
|
|
2052
|
-
description:
|
|
2053
|
-
link: "
|
|
2053
|
+
description: V(B.objectElementsSummary),
|
|
2054
|
+
link: e + "array"
|
|
2054
2055
|
};
|
|
2055
2056
|
case "array:(object properties)":
|
|
2056
2057
|
case "hidden:system / PropertyArray": return {
|
|
2057
|
-
description:
|
|
2058
|
-
link: "
|
|
2058
|
+
description: V(B.objectPropertiesSummary),
|
|
2059
|
+
link: e + "array"
|
|
2059
2060
|
};
|
|
2060
2061
|
case "object:system / Context": return {
|
|
2061
|
-
description:
|
|
2062
|
-
link: "
|
|
2062
|
+
description: V(B.contextSummary),
|
|
2063
|
+
link: e + "system-context"
|
|
2063
2064
|
};
|
|
2064
2065
|
case "object shape:system / DescriptorArray": return {
|
|
2065
|
-
description:
|
|
2066
|
-
link: "
|
|
2066
|
+
description: V(B.descriptorArraySummary),
|
|
2067
|
+
link: e + "object-shape"
|
|
2067
2068
|
};
|
|
2068
2069
|
case "object shape:system / Map": return {
|
|
2069
|
-
description:
|
|
2070
|
-
link: "
|
|
2070
|
+
description: V(B.mapSummary),
|
|
2071
|
+
link: e + "object-shape"
|
|
2071
2072
|
};
|
|
2072
2073
|
case "native:InternalNode": return {
|
|
2073
|
-
description:
|
|
2074
|
-
link: "
|
|
2074
|
+
description: V(B.internalNodeSummary),
|
|
2075
|
+
link: e + "internal-node"
|
|
2075
2076
|
};
|
|
2076
2077
|
}
|
|
2077
2078
|
}
|
|
@@ -2080,29 +2081,29 @@ var $n = class extends W {
|
|
|
2080
2081
|
this.setHasChildren(!e);
|
|
2081
2082
|
}
|
|
2082
2083
|
shortenWindowURL(e, t) {
|
|
2083
|
-
let
|
|
2084
|
-
if (
|
|
2085
|
-
let
|
|
2086
|
-
return
|
|
2084
|
+
let n = e.indexOf("/"), r = t ? e.indexOf("@") : e.length;
|
|
2085
|
+
if (n === -1 || r === -1) return e;
|
|
2086
|
+
let i = e.substring(n + 1, r).trimLeft(), a = vt(i);
|
|
2087
|
+
return a.length > 40 && (a = _t(a, 40)), e.substr(0, n + 2) + a + e.substr(r);
|
|
2087
2088
|
}
|
|
2088
2089
|
populateContextMenu(e, t, n) {
|
|
2089
|
-
if (this.shallowSize !== 0 && e.revealSection().appendItem(
|
|
2090
|
-
t.showObject(String(this.snapshotNodeId),
|
|
2090
|
+
if (this.shallowSize !== 0 && e.revealSection().appendItem(V(B.revealInSummaryView), () => {
|
|
2091
|
+
t.showObject(String(this.snapshotNodeId), V(B.summary));
|
|
2091
2092
|
}, { jslogContext: "reveal-in-summary" }), this.referenceName) for (let n of this.referenceName.matchAll(/\((?<objectName>[^@)]*) @(?<snapshotNodeId>\d+)\)/g)) {
|
|
2092
2093
|
let { objectName: r, snapshotNodeId: i } = n.groups;
|
|
2093
|
-
e.revealSection().appendItem(
|
|
2094
|
+
e.revealSection().appendItem(V(B.revealObjectSWithIdSInSummary, {
|
|
2094
2095
|
PH1: r,
|
|
2095
2096
|
PH2: i
|
|
2096
2097
|
}), () => {
|
|
2097
|
-
t.showObject(i,
|
|
2098
|
+
t.showObject(i, V(B.summary));
|
|
2098
2099
|
}, { jslogContext: "reveal-in-summary" });
|
|
2099
2100
|
}
|
|
2100
|
-
n && e.revealSection().appendItem(
|
|
2101
|
+
n && e.revealSection().appendItem(V(B.storeAsGlobalVariable), async () => {
|
|
2101
2102
|
let e = await this.tryQueryObjectContent(n, "");
|
|
2102
|
-
e ? await n.target().model(
|
|
2103
|
+
e ? await n.target().model(ke)?.saveToTempVariable(x.instance().flavor(xe), e) : g.instance().error(V(B.previewIsNotAvailable));
|
|
2103
2104
|
}, { jslogContext: "store-as-global-variable" });
|
|
2104
2105
|
}
|
|
2105
|
-
},
|
|
2106
|
+
}, nr = class e extends tr {
|
|
2106
2107
|
referenceName;
|
|
2107
2108
|
referenceType;
|
|
2108
2109
|
edgeIndex;
|
|
@@ -2142,12 +2143,12 @@ var $n = class extends W {
|
|
|
2142
2143
|
comparator() {
|
|
2143
2144
|
let e = this.dataGridInternal.isSortOrderAscending();
|
|
2144
2145
|
switch (this.dataGridInternal.sortColumnId()) {
|
|
2145
|
-
case "object": return new
|
|
2146
|
-
case "count": return new
|
|
2147
|
-
case "shallowSize": return new
|
|
2148
|
-
case "retainedSize": return new
|
|
2149
|
-
case "distance": return new
|
|
2150
|
-
default: return new
|
|
2146
|
+
case "object": return new O("!edgeName", e, "retainedSize", !1);
|
|
2147
|
+
case "count": return new O("!edgeName", !0, "retainedSize", !1);
|
|
2148
|
+
case "shallowSize": return new O("selfSize", e, "!edgeName", !0);
|
|
2149
|
+
case "retainedSize": return new O("retainedSize", e, "!edgeName", !0);
|
|
2150
|
+
case "distance": return new O("distance", e, "name", !0);
|
|
2151
|
+
default: return new O("!edgeName", !0, "retainedSize", !1);
|
|
2151
2152
|
}
|
|
2152
2153
|
}
|
|
2153
2154
|
prefixObjectCell(e) {
|
|
@@ -2161,9 +2162,7 @@ var $n = class extends W {
|
|
|
2161
2162
|
case "weak":
|
|
2162
2163
|
n = "object-value-null";
|
|
2163
2164
|
break;
|
|
2164
|
-
case "element":
|
|
2165
|
-
t = `[${t}]`;
|
|
2166
|
-
break;
|
|
2165
|
+
case "element": t = `[${t}]`;
|
|
2167
2166
|
}
|
|
2168
2167
|
this.cycledWithAncestorGridNode && e.classList.add("cycled-ancestor-node");
|
|
2169
2168
|
let r = document.createElement("span");
|
|
@@ -2174,10 +2173,10 @@ var $n = class extends W {
|
|
|
2174
2173
|
edgeNodeSeparator() {
|
|
2175
2174
|
return "::";
|
|
2176
2175
|
}
|
|
2177
|
-
},
|
|
2176
|
+
}, rr = class e extends nr {
|
|
2178
2177
|
#e;
|
|
2179
2178
|
constructor(e, t, n, r) {
|
|
2180
|
-
super(e, t, n, r), this.#e = n.node.ignored, this.#e && (this.data.distance =
|
|
2179
|
+
super(e, t, n, r), this.#e = n.node.ignored, this.#e && (this.data.distance = V(B.ignored));
|
|
2181
2180
|
}
|
|
2182
2181
|
createProvider() {
|
|
2183
2182
|
if (this.snapshotNodeIndex === void 0) throw Error("Cannot create providers on root nodes");
|
|
@@ -2187,7 +2186,7 @@ var $n = class extends W {
|
|
|
2187
2186
|
return new e(this.dataGridInternal, this.snapshot, t, this);
|
|
2188
2187
|
}
|
|
2189
2188
|
edgeNodeSeparator() {
|
|
2190
|
-
return
|
|
2189
|
+
return V(B.inElement);
|
|
2191
2190
|
}
|
|
2192
2191
|
expand() {
|
|
2193
2192
|
this.expandRetainersChain(20);
|
|
@@ -2195,21 +2194,21 @@ var $n = class extends W {
|
|
|
2195
2194
|
populateContextMenu(e, t, n) {
|
|
2196
2195
|
super.populateContextMenu(e, t, n);
|
|
2197
2196
|
let r = this.snapshotNodeIndex;
|
|
2198
|
-
r !== void 0 && (this.#e ? e.revealSection().appendItem(
|
|
2197
|
+
r !== void 0 && (this.#e ? e.revealSection().appendItem(V(B.stopIgnoringThisRetainer), async () => {
|
|
2199
2198
|
await this.snapshot.unignoreNodeInRetainersView(r), await this.dataGridInternal.dataSourceChanged();
|
|
2200
|
-
}, { jslogContext: "stop-ignoring-this-retainer" }) : e.revealSection().appendItem(
|
|
2199
|
+
}, { jslogContext: "stop-ignoring-this-retainer" }) : e.revealSection().appendItem(V(B.ignoreThisRetainer), async () => {
|
|
2201
2200
|
await this.snapshot.ignoreNodeInRetainersView(r), await this.dataGridInternal.dataSourceChanged();
|
|
2202
2201
|
}, { jslogContext: "ignore-this-retainer" }));
|
|
2203
2202
|
}
|
|
2204
2203
|
isReachable() {
|
|
2205
|
-
return (this.distance ?? 0) <
|
|
2204
|
+
return (this.distance ?? 0) < Yt;
|
|
2206
2205
|
}
|
|
2207
2206
|
prefixObjectCell(e) {
|
|
2208
2207
|
super.prefixObjectCell(e), this.isReachable() || e.classList.add("unreachable-ancestor-node");
|
|
2209
2208
|
}
|
|
2210
2209
|
expandRetainersChain(e) {
|
|
2211
2210
|
if (!this.populated) {
|
|
2212
|
-
this.once(
|
|
2211
|
+
this.once(H.Events.PopulateComplete).then(() => this.expandRetainersChain(e)), this.populate();
|
|
2213
2212
|
return;
|
|
2214
2213
|
}
|
|
2215
2214
|
if (super.expand(), --e > 0 && this.children.length > 0) {
|
|
@@ -2219,19 +2218,19 @@ var $n = class extends W {
|
|
|
2219
2218
|
return;
|
|
2220
2219
|
}
|
|
2221
2220
|
}
|
|
2222
|
-
this.dataGridInternal.dispatchEventToListeners(
|
|
2221
|
+
this.dataGridInternal.dispatchEventToListeners(mr.ExpandRetainersComplete);
|
|
2223
2222
|
}
|
|
2224
2223
|
comparator() {
|
|
2225
2224
|
let e = super.comparator();
|
|
2226
2225
|
return e.fieldName1 === "distance" && (e.fieldName1 = "!edgeDistance"), e.fieldName2 === "distance" && (e.fieldName2 = "!edgeDistance"), e;
|
|
2227
2226
|
}
|
|
2228
|
-
},
|
|
2227
|
+
}, ir = class extends tr {
|
|
2229
2228
|
baseSnapshotOrSnapshot;
|
|
2230
2229
|
isDeletedNode;
|
|
2231
2230
|
constructor(e, t, n, r) {
|
|
2232
2231
|
super(e, n), this.baseSnapshotOrSnapshot = t, this.isDeletedNode = r, this.updateHasChildren();
|
|
2233
2232
|
let i = this.data;
|
|
2234
|
-
i.count = "", i.countDelta = "", i.sizeDelta = "", this.isDeletedNode ? (i.addedCount = "", i.addedSize = "", i.removedCount = "•", i.removedSize =
|
|
2233
|
+
i.count = "", i.countDelta = "", i.sizeDelta = "", this.isDeletedNode ? (i.addedCount = "", i.addedSize = "", i.removedCount = "•", i.removedSize = f(this.shallowSize || 0)) : (i.addedCount = "•", i.addedSize = f(this.shallowSize || 0), i.removedCount = "", i.removedSize = "");
|
|
2235
2234
|
}
|
|
2236
2235
|
retainersDataSource() {
|
|
2237
2236
|
return this.snapshotNodeIndex === void 0 ? null : {
|
|
@@ -2245,7 +2244,7 @@ var $n = class extends W {
|
|
|
2245
2244
|
return this.baseSnapshotOrSnapshot.createEdgesProvider(this.snapshotNodeIndex);
|
|
2246
2245
|
}
|
|
2247
2246
|
createChildNode(e) {
|
|
2248
|
-
return new
|
|
2247
|
+
return new nr(this.dataGridInternal, this.baseSnapshotOrSnapshot, e, null);
|
|
2249
2248
|
}
|
|
2250
2249
|
getHash() {
|
|
2251
2250
|
if (this.snapshotNodeId === void 0) throw Error("Cannot hash root nodes");
|
|
@@ -2254,17 +2253,17 @@ var $n = class extends W {
|
|
|
2254
2253
|
comparator() {
|
|
2255
2254
|
let e = this.dataGridInternal.isSortOrderAscending();
|
|
2256
2255
|
switch (this.dataGridInternal.sortColumnId()) {
|
|
2257
|
-
case "object": return new
|
|
2258
|
-
case "distance": return new
|
|
2259
|
-
case "count": return new
|
|
2260
|
-
case "addedSize": return new
|
|
2261
|
-
case "removedSize": return new
|
|
2262
|
-
case "shallowSize": return new
|
|
2263
|
-
case "retainedSize": return new
|
|
2264
|
-
default: return new
|
|
2256
|
+
case "object": return new O("!edgeName", e, "retainedSize", !1);
|
|
2257
|
+
case "distance": return new O("distance", e, "retainedSize", !1);
|
|
2258
|
+
case "count": return new O("!edgeName", !0, "retainedSize", !1);
|
|
2259
|
+
case "addedSize": return new O("selfSize", e, "!edgeName", !0);
|
|
2260
|
+
case "removedSize": return new O("selfSize", e, "!edgeName", !0);
|
|
2261
|
+
case "shallowSize": return new O("selfSize", e, "!edgeName", !0);
|
|
2262
|
+
case "retainedSize": return new O("retainedSize", e, "!edgeName", !0);
|
|
2263
|
+
default: return new O("!edgeName", !0, "retainedSize", !1);
|
|
2265
2264
|
}
|
|
2266
2265
|
}
|
|
2267
|
-
},
|
|
2266
|
+
}, ar = class extends H {
|
|
2268
2267
|
nameInternal;
|
|
2269
2268
|
nodeFilter;
|
|
2270
2269
|
distance;
|
|
@@ -2272,20 +2271,20 @@ var $n = class extends W {
|
|
|
2272
2271
|
shallowSize;
|
|
2273
2272
|
retainedSize;
|
|
2274
2273
|
classKey;
|
|
2275
|
-
#e = new Intl.NumberFormat(
|
|
2274
|
+
#e = new Intl.NumberFormat(d.instance().locale);
|
|
2276
2275
|
constructor(e, t, n, r) {
|
|
2277
2276
|
super(e, n.count > 0), this.nameInternal = n.name, this.nodeFilter = r, this.distance = n.distance, this.count = n.count, this.shallowSize = n.self, this.retainedSize = n.maxRet, this.classKey = t;
|
|
2278
|
-
let i = e.snapshot,
|
|
2277
|
+
let i = e.snapshot, o = this.retainedSize / i.totalSize * 100, s = this.shallowSize / i.totalSize * 100;
|
|
2279
2278
|
this.data = {
|
|
2280
2279
|
object: this.nameInternal,
|
|
2281
2280
|
count: this.#e.format(this.count),
|
|
2282
2281
|
distance: this.toUIDistance(this.distance),
|
|
2283
|
-
shallowSize:
|
|
2284
|
-
retainedSize:
|
|
2285
|
-
"shallowSize-percent": this.toPercentString(
|
|
2286
|
-
"retainedSize-percent": this.toPercentString(
|
|
2287
|
-
"shallowSize-tooltip":
|
|
2288
|
-
"retainedSize-tooltip":
|
|
2282
|
+
shallowSize: f(this.shallowSize),
|
|
2283
|
+
retainedSize: f(this.retainedSize),
|
|
2284
|
+
"shallowSize-percent": this.toPercentString(s),
|
|
2285
|
+
"retainedSize-percent": this.toPercentString(o),
|
|
2286
|
+
"shallowSize-tooltip": a(this.shallowSize),
|
|
2287
|
+
"retainedSize-tooltip": a(this.retainedSize)
|
|
2289
2288
|
};
|
|
2290
2289
|
}
|
|
2291
2290
|
get name() {
|
|
@@ -2307,22 +2306,26 @@ var $n = class extends W {
|
|
|
2307
2306
|
}
|
|
2308
2307
|
createCell(e) {
|
|
2309
2308
|
let t = e === "object" ? super.createCell(e) : this.createValueCell(e);
|
|
2310
|
-
|
|
2309
|
+
if (e === "object" && this.count > 1) {
|
|
2310
|
+
let e = ye`<span class="objects-count">×${this.data.count}</span>`;
|
|
2311
|
+
de(e, t);
|
|
2312
|
+
}
|
|
2313
|
+
return t;
|
|
2311
2314
|
}
|
|
2312
2315
|
createChildNode(e) {
|
|
2313
|
-
return new
|
|
2316
|
+
return new ir(this.dataGridInternal, this.dataGridInternal.snapshot, e, !1);
|
|
2314
2317
|
}
|
|
2315
2318
|
comparator() {
|
|
2316
2319
|
let e = this.dataGridInternal.isSortOrderAscending(), t = this.dataGridInternal.sortColumnId();
|
|
2317
2320
|
switch (t) {
|
|
2318
|
-
case "object": return new
|
|
2319
|
-
case "distance": return new
|
|
2320
|
-
case "shallowSize": return new
|
|
2321
|
-
case "retainedSize": return new
|
|
2321
|
+
case "object": return new O("name", e, "id", !0);
|
|
2322
|
+
case "distance": return new O("distance", e, "retainedSize", !1);
|
|
2323
|
+
case "shallowSize": return new O("selfSize", e, "id", !0);
|
|
2324
|
+
case "retainedSize": return new O("retainedSize", e, "id", !0);
|
|
2322
2325
|
default: throw Error(`Invalid sort column id ${t}`);
|
|
2323
2326
|
}
|
|
2324
2327
|
}
|
|
2325
|
-
},
|
|
2328
|
+
}, or = class {
|
|
2326
2329
|
addedNodesProvider;
|
|
2327
2330
|
deletedNodesProvider;
|
|
2328
2331
|
addedCount;
|
|
@@ -2346,7 +2349,7 @@ var $n = class extends W {
|
|
|
2346
2349
|
for (let e of n.items) e.isAddedNotRemoved = !0;
|
|
2347
2350
|
if (n.endPosition >= t) return n.totalLength = this.addedCount + this.removedCount, n;
|
|
2348
2351
|
r = n, n = await this.deletedNodesProvider.serializeItemsRange(0, t - n.endPosition);
|
|
2349
|
-
} else r = new
|
|
2352
|
+
} else r = new qt(0, 0, 0, []), n = await this.deletedNodesProvider.serializeItemsRange(e - this.addedCount, t - this.addedCount);
|
|
2350
2353
|
r.items.length || (r.startPosition = this.addedCount + n.startPosition);
|
|
2351
2354
|
for (let e of n.items) e.isAddedNotRemoved = !1;
|
|
2352
2355
|
return r.items.push(...n.items), r.endPosition = this.addedCount + n.endPosition, r.totalLength = this.addedCount + this.removedCount, r;
|
|
@@ -2354,7 +2357,7 @@ var $n = class extends W {
|
|
|
2354
2357
|
async sortAndRewind(e) {
|
|
2355
2358
|
await this.addedNodesProvider.sortAndRewind(e), await this.deletedNodesProvider.sortAndRewind(e);
|
|
2356
2359
|
}
|
|
2357
|
-
},
|
|
2360
|
+
}, sr = class extends H {
|
|
2358
2361
|
nameInternal;
|
|
2359
2362
|
addedCount;
|
|
2360
2363
|
removedCount;
|
|
@@ -2364,15 +2367,15 @@ var $n = class extends W {
|
|
|
2364
2367
|
sizeDelta;
|
|
2365
2368
|
deletedIndexes;
|
|
2366
2369
|
classKey;
|
|
2367
|
-
constructor(e,
|
|
2368
|
-
super(e, !0), this.nameInternal =
|
|
2370
|
+
constructor(e, t, n) {
|
|
2371
|
+
super(e, !0), this.nameInternal = n.name, this.addedCount = n.addedCount, this.removedCount = n.removedCount, this.countDelta = n.countDelta, this.addedSize = n.addedSize, this.removedSize = n.removedSize, this.sizeDelta = n.sizeDelta, this.deletedIndexes = n.deletedIndexes, this.classKey = t, this.data = {
|
|
2369
2372
|
object: this.nameInternal,
|
|
2370
|
-
addedCount:
|
|
2371
|
-
removedCount:
|
|
2372
|
-
countDelta: this.signForDelta(this.countDelta) +
|
|
2373
|
-
addedSize:
|
|
2374
|
-
removedSize:
|
|
2375
|
-
sizeDelta: this.signForDelta(this.sizeDelta) +
|
|
2373
|
+
addedCount: Ke(this.addedCount),
|
|
2374
|
+
removedCount: Ke(this.removedCount),
|
|
2375
|
+
countDelta: this.signForDelta(this.countDelta) + Ke(Math.abs(this.countDelta)),
|
|
2376
|
+
addedSize: a(this.addedSize),
|
|
2377
|
+
removedSize: a(this.removedSize),
|
|
2378
|
+
sizeDelta: this.signForDelta(this.sizeDelta) + a(Math.abs(this.sizeDelta))
|
|
2376
2379
|
};
|
|
2377
2380
|
}
|
|
2378
2381
|
get name() {
|
|
@@ -2383,7 +2386,7 @@ var $n = class extends W {
|
|
|
2383
2386
|
if (e.snapshot === null || e.baseSnapshot?.uid === void 0) throw Error("Data sources have not been set correctly");
|
|
2384
2387
|
let t = e.snapshot.createAddedNodesProvider(e.baseSnapshot.uid, this.classKey), n = e.baseSnapshot.createDeletedNodesProvider(this.deletedIndexes);
|
|
2385
2388
|
if (!t || !n) throw Error("Failed to create node providers");
|
|
2386
|
-
return new
|
|
2389
|
+
return new or(t, n, this.addedCount, this.removedCount);
|
|
2387
2390
|
}
|
|
2388
2391
|
createCell(e) {
|
|
2389
2392
|
let t = super.createCell(e);
|
|
@@ -2393,21 +2396,21 @@ var $n = class extends W {
|
|
|
2393
2396
|
let t = this.dataGridInternal;
|
|
2394
2397
|
if (e.isAddedNotRemoved) {
|
|
2395
2398
|
if (t.snapshot === null) throw Error("Data sources have not been set correctly");
|
|
2396
|
-
return new
|
|
2399
|
+
return new ir(this.dataGridInternal, t.snapshot, e, !1);
|
|
2397
2400
|
}
|
|
2398
2401
|
if (t.baseSnapshot === void 0) throw Error("Data sources have not been set correctly");
|
|
2399
|
-
return new
|
|
2402
|
+
return new ir(this.dataGridInternal, t.baseSnapshot, e, !0);
|
|
2400
2403
|
}
|
|
2401
2404
|
comparator() {
|
|
2402
2405
|
let e = this.dataGridInternal.isSortOrderAscending(), t = this.dataGridInternal.sortColumnId();
|
|
2403
2406
|
switch (t) {
|
|
2404
|
-
case "object": return new
|
|
2405
|
-
case "addedCount": return new
|
|
2406
|
-
case "removedCount": return new
|
|
2407
|
-
case "countDelta": return new
|
|
2408
|
-
case "addedSize": return new
|
|
2409
|
-
case "removedSize": return new
|
|
2410
|
-
case "sizeDelta": return new
|
|
2407
|
+
case "object": return new O("name", e, "id", !0);
|
|
2408
|
+
case "addedCount": return new O("name", !0, "id", !0);
|
|
2409
|
+
case "removedCount": return new O("name", !0, "id", !0);
|
|
2410
|
+
case "countDelta": return new O("name", !0, "id", !0);
|
|
2411
|
+
case "addedSize": return new O("selfSize", e, "id", !0);
|
|
2412
|
+
case "removedSize": return new O("selfSize", e, "id", !0);
|
|
2413
|
+
case "sizeDelta": return new O("selfSize", e, "id", !0);
|
|
2411
2414
|
default: throw Error(`Invalid sort column ${t}`);
|
|
2412
2415
|
}
|
|
2413
2416
|
}
|
|
@@ -2417,16 +2420,16 @@ var $n = class extends W {
|
|
|
2417
2420
|
signForDelta(e) {
|
|
2418
2421
|
return e === 0 ? "" : e > 0 ? "+" : "−";
|
|
2419
2422
|
}
|
|
2420
|
-
},
|
|
2423
|
+
}, cr = class e extends H {
|
|
2421
2424
|
populated;
|
|
2422
2425
|
allocationNode;
|
|
2423
|
-
constructor(e,
|
|
2424
|
-
super(e,
|
|
2425
|
-
liveCount: t
|
|
2426
|
-
count: t
|
|
2427
|
-
liveSize:
|
|
2428
|
-
size:
|
|
2429
|
-
name:
|
|
2426
|
+
constructor(e, t) {
|
|
2427
|
+
super(e, t.hasChildren), this.populated = !1, this.allocationNode = t, this.data = {
|
|
2428
|
+
liveCount: Ke(t.liveCount),
|
|
2429
|
+
count: Ke(t.count),
|
|
2430
|
+
liveSize: a(t.liveSize),
|
|
2431
|
+
size: a(t.size),
|
|
2432
|
+
name: t.name
|
|
2430
2433
|
};
|
|
2431
2434
|
}
|
|
2432
2435
|
populate() {
|
|
@@ -2463,17 +2466,17 @@ var $n = class extends W {
|
|
|
2463
2466
|
allocationNodeId() {
|
|
2464
2467
|
return this.allocationNode.id;
|
|
2465
2468
|
}
|
|
2466
|
-
},
|
|
2467
|
-
AllocationDataGrid: () =>
|
|
2468
|
-
HeapSnapshotConstructorsDataGrid: () =>
|
|
2469
|
-
HeapSnapshotContainmentDataGrid: () =>
|
|
2470
|
-
HeapSnapshotDiffDataGrid: () =>
|
|
2471
|
-
HeapSnapshotRetainmentDataGrid: () =>
|
|
2472
|
-
HeapSnapshotRetainmentDataGridEvents: () =>
|
|
2473
|
-
HeapSnapshotSortableDataGrid: () =>
|
|
2474
|
-
HeapSnapshotSortableDataGridEvents: () =>
|
|
2475
|
-
HeapSnapshotViewportDataGrid: () =>
|
|
2476
|
-
}),
|
|
2469
|
+
}, lr = /* @__PURE__ */ e({
|
|
2470
|
+
AllocationDataGrid: () => xr,
|
|
2471
|
+
HeapSnapshotConstructorsDataGrid: () => yr,
|
|
2472
|
+
HeapSnapshotContainmentDataGrid: () => gr,
|
|
2473
|
+
HeapSnapshotDiffDataGrid: () => br,
|
|
2474
|
+
HeapSnapshotRetainmentDataGrid: () => _r,
|
|
2475
|
+
HeapSnapshotRetainmentDataGridEvents: () => vr,
|
|
2476
|
+
HeapSnapshotSortableDataGrid: () => pr,
|
|
2477
|
+
HeapSnapshotSortableDataGridEvents: () => mr,
|
|
2478
|
+
HeapSnapshotViewportDataGrid: () => hr
|
|
2479
|
+
}), U = {
|
|
2477
2480
|
distanceFromWindowObject: "Distance from window object",
|
|
2478
2481
|
sizeOfTheObjectItselfInBytes: "Size of the object itself in bytes",
|
|
2479
2482
|
sizeOfTheObjectPlusTheGraphIt: "Size of the object plus the graph it retains in bytes",
|
|
@@ -2497,7 +2500,7 @@ var $n = class extends W {
|
|
|
2497
2500
|
size: "Size",
|
|
2498
2501
|
function: "Function",
|
|
2499
2502
|
allocation: "Allocation"
|
|
2500
|
-
},
|
|
2503
|
+
}, ur = o("panels/profiler/HeapSnapshotDataGrids.ts", U), W = r.bind(void 0, ur), dr = /* @__PURE__ */ new WeakMap(), fr = class extends At {}, pr = class extends t(fr) {
|
|
2501
2504
|
snapshot = null;
|
|
2502
2505
|
selectedNode = null;
|
|
2503
2506
|
heapProfilerModelInternal;
|
|
@@ -2511,20 +2514,20 @@ var $n = class extends W {
|
|
|
2511
2514
|
constructor(e, t, n) {
|
|
2512
2515
|
super(n), this.heapProfilerModelInternal = e, this.dataDisplayDelegateInternal = t;
|
|
2513
2516
|
let r = [
|
|
2514
|
-
["distance",
|
|
2515
|
-
["shallowSize",
|
|
2516
|
-
["retainedSize",
|
|
2517
|
+
["distance", W(U.distanceFromWindowObject)],
|
|
2518
|
+
["shallowSize", W(U.sizeOfTheObjectItselfInBytes)],
|
|
2519
|
+
["retainedSize", W(U.sizeOfTheObjectPlusTheGraphIt)]
|
|
2517
2520
|
];
|
|
2518
2521
|
for (let e of r) {
|
|
2519
2522
|
let t = this.headerTableHeader(e[0]);
|
|
2520
2523
|
t && t.setAttribute("title", e[1]);
|
|
2521
2524
|
}
|
|
2522
|
-
this.recursiveSortingDepth = 0, this.populatedAndSorted = !1, this.nameFilter = null, this.nodeFilterInternal = new
|
|
2525
|
+
this.recursiveSortingDepth = 0, this.populatedAndSorted = !1, this.nameFilter = null, this.nodeFilterInternal = new k(), this.addEventListener("SortingComplete", this.sortingComplete, this), this.addEventListener(D.SORTING_CHANGED, this.sortingChanged, this), this.setRowContextMenuCallback(this.populateContextMenu.bind(this));
|
|
2523
2526
|
}
|
|
2524
2527
|
async setDataSource(e, t) {}
|
|
2525
2528
|
isFilteredOut(e) {
|
|
2526
2529
|
let t = this.nameFilter ? this.nameFilter.value().toLowerCase() : "";
|
|
2527
|
-
return !!(t && (e instanceof
|
|
2530
|
+
return !!(t && (e instanceof sr || e instanceof ar) && e.filteredOut(t));
|
|
2528
2531
|
}
|
|
2529
2532
|
heapProfilerModel() {
|
|
2530
2533
|
return this.heapProfilerModelInternal;
|
|
@@ -2546,17 +2549,17 @@ var $n = class extends W {
|
|
|
2546
2549
|
for (let t = 0, n = e.length; t < n; ++t) e[t].dispose();
|
|
2547
2550
|
}
|
|
2548
2551
|
wasShown() {
|
|
2549
|
-
super.wasShown(), this.nameFilter && (this.nameFilter.addEventListener(
|
|
2552
|
+
super.wasShown(), this.nameFilter && (this.nameFilter.addEventListener(Le.Event.TEXT_CHANGED, this.onNameFilterChanged, this), this.updateVisibleNodes(!0)), this.populatedAndSorted && this.dispatchEventToListeners("ContentShown", this);
|
|
2550
2553
|
}
|
|
2551
2554
|
sortingComplete() {
|
|
2552
2555
|
this.removeEventListener("SortingComplete", this.sortingComplete, this), this.populatedAndSorted = !0, this.dispatchEventToListeners("ContentShown", this);
|
|
2553
2556
|
}
|
|
2554
2557
|
willHide() {
|
|
2555
|
-
super.willHide(), this.nameFilter && this.nameFilter.removeEventListener(
|
|
2558
|
+
super.willHide(), this.nameFilter && this.nameFilter.removeEventListener(Le.Event.TEXT_CHANGED, this.onNameFilterChanged, this);
|
|
2556
2559
|
}
|
|
2557
2560
|
populateContextMenu(e, t) {
|
|
2558
2561
|
let n = t;
|
|
2559
|
-
n.populateContextMenu(e, this.dataDisplayDelegateInternal, this.heapProfilerModel()), n instanceof
|
|
2562
|
+
n.populateContextMenu(e, this.dataDisplayDelegateInternal, this.heapProfilerModel()), n instanceof tr && n.linkElement && e.appendApplicableItems(n.linkElement);
|
|
2560
2563
|
}
|
|
2561
2564
|
resetSortingCache() {
|
|
2562
2565
|
delete this.lastSortColumnId, delete this.lastSortAscending;
|
|
@@ -2633,9 +2636,9 @@ var $n = class extends W {
|
|
|
2633
2636
|
async dataSourceChanged() {
|
|
2634
2637
|
throw Error("Not implemented");
|
|
2635
2638
|
}
|
|
2636
|
-
},
|
|
2639
|
+
}, mr = /* @__PURE__ */ function(e) {
|
|
2637
2640
|
return e.ContentShown = "ContentShown", e.SortingComplete = "SortingComplete", e.ExpandRetainersComplete = "ExpandRetainersComplete", e;
|
|
2638
|
-
}({}),
|
|
2641
|
+
}({}), hr = class extends pr {
|
|
2639
2642
|
topPaddingHeight;
|
|
2640
2643
|
bottomPaddingHeight;
|
|
2641
2644
|
selectedNode;
|
|
@@ -2652,7 +2655,7 @@ var $n = class extends W {
|
|
|
2652
2655
|
n = Math.max(0, n - 40), r = Math.max(0, r - 40);
|
|
2653
2656
|
let i = t - n - r;
|
|
2654
2657
|
if (!e && n >= this.topPaddingHeight && r >= this.bottomPaddingHeight) return;
|
|
2655
|
-
n -= 500, i +=
|
|
2658
|
+
n -= 500, i += 1e3;
|
|
2656
2659
|
let a = this.selectedNode;
|
|
2657
2660
|
this.rootNode().removeChildren(), this.topPaddingHeight = 0, this.bottomPaddingHeight = 0, this.addVisibleNodes(this.rootNode(), n, n + i), this.setVerticalPadding(this.topPaddingHeight, this.bottomPaddingHeight), a && (a.parent ? a.select(!0) : this.selectedNode = a);
|
|
2658
2661
|
}
|
|
@@ -2713,8 +2716,8 @@ var $n = class extends W {
|
|
|
2713
2716
|
return n - e[e.length - 1].nodeSelfHeight();
|
|
2714
2717
|
}
|
|
2715
2718
|
allChildren(e) {
|
|
2716
|
-
let t =
|
|
2717
|
-
return
|
|
2719
|
+
let t = dr.get(e) || [];
|
|
2720
|
+
return dr.has(e) || dr.set(e, t), t;
|
|
2718
2721
|
}
|
|
2719
2722
|
appendNode(e, t) {
|
|
2720
2723
|
this.allChildren(e).push(t);
|
|
@@ -2726,7 +2729,7 @@ var $n = class extends W {
|
|
|
2726
2729
|
this.allChildren(e).splice(t, 1);
|
|
2727
2730
|
}
|
|
2728
2731
|
removeAllChildren(e) {
|
|
2729
|
-
|
|
2732
|
+
dr.delete(e);
|
|
2730
2733
|
}
|
|
2731
2734
|
removeTopLevelNodes() {
|
|
2732
2735
|
this.disposeAllNodes(), this.rootNode().removeChildren(), this.removeAllChildren(this.rootNode());
|
|
@@ -2737,36 +2740,36 @@ var $n = class extends W {
|
|
|
2737
2740
|
onScroll(e) {
|
|
2738
2741
|
this.updateVisibleNodes(!1), this.scrollToResolveCallback &&= (this.scrollToResolveCallback(), null);
|
|
2739
2742
|
}
|
|
2740
|
-
},
|
|
2743
|
+
}, gr = class extends pr {
|
|
2741
2744
|
constructor(e, t, n, r) {
|
|
2742
2745
|
let i = [
|
|
2743
2746
|
{
|
|
2744
2747
|
id: "object",
|
|
2745
|
-
title:
|
|
2748
|
+
title: W(U.object),
|
|
2746
2749
|
disclosure: !0,
|
|
2747
2750
|
sortable: !0
|
|
2748
2751
|
},
|
|
2749
2752
|
{
|
|
2750
2753
|
id: "distance",
|
|
2751
|
-
title:
|
|
2754
|
+
title: W(U.distance),
|
|
2752
2755
|
width: "70px",
|
|
2753
2756
|
sortable: !0,
|
|
2754
2757
|
fixedWidth: !0
|
|
2755
2758
|
},
|
|
2756
2759
|
{
|
|
2757
2760
|
id: "shallowSize",
|
|
2758
|
-
title:
|
|
2761
|
+
title: W(U.shallowSize),
|
|
2759
2762
|
width: "110px",
|
|
2760
2763
|
sortable: !0,
|
|
2761
2764
|
fixedWidth: !0
|
|
2762
2765
|
},
|
|
2763
2766
|
{
|
|
2764
2767
|
id: "retainedSize",
|
|
2765
|
-
title:
|
|
2768
|
+
title: W(U.retainedSize),
|
|
2766
2769
|
width: "110px",
|
|
2767
2770
|
sortable: !0,
|
|
2768
2771
|
fixedWidth: !0,
|
|
2769
|
-
sort:
|
|
2772
|
+
sort: E.Descending
|
|
2770
2773
|
}
|
|
2771
2774
|
];
|
|
2772
2775
|
r ||= i, super(e, t, {
|
|
@@ -2776,63 +2779,63 @@ var $n = class extends W {
|
|
|
2776
2779
|
}
|
|
2777
2780
|
async setDataSource(e, t, n) {
|
|
2778
2781
|
this.snapshot = e;
|
|
2779
|
-
let r = new
|
|
2782
|
+
let r = new Ut(n ?? -1, "root", 0, t || e.rootNodeIndex, 0, 0, "");
|
|
2780
2783
|
this.setRootNode(this.createRootNode(e, r)), this.rootNode().sort();
|
|
2781
2784
|
}
|
|
2782
2785
|
createRootNode(e, t) {
|
|
2783
|
-
let n = new
|
|
2784
|
-
return new
|
|
2786
|
+
let n = new Ht("", t, "", -1);
|
|
2787
|
+
return new nr(this, e, n, null);
|
|
2785
2788
|
}
|
|
2786
2789
|
sortingChanged() {
|
|
2787
2790
|
let e = this.rootNode();
|
|
2788
2791
|
e.hasChildren() && e.sort();
|
|
2789
2792
|
}
|
|
2790
|
-
},
|
|
2793
|
+
}, _r = class extends gr {
|
|
2791
2794
|
resetRetainersButton;
|
|
2792
2795
|
constructor(e, t) {
|
|
2793
2796
|
let n = [
|
|
2794
2797
|
{
|
|
2795
2798
|
id: "object",
|
|
2796
|
-
title:
|
|
2799
|
+
title: W(U.object),
|
|
2797
2800
|
disclosure: !0,
|
|
2798
2801
|
sortable: !0
|
|
2799
2802
|
},
|
|
2800
2803
|
{
|
|
2801
2804
|
id: "distance",
|
|
2802
|
-
title:
|
|
2805
|
+
title: W(U.distance),
|
|
2803
2806
|
width: "70px",
|
|
2804
2807
|
sortable: !0,
|
|
2805
2808
|
fixedWidth: !0,
|
|
2806
|
-
sort:
|
|
2809
|
+
sort: E.Ascending
|
|
2807
2810
|
},
|
|
2808
2811
|
{
|
|
2809
2812
|
id: "shallowSize",
|
|
2810
|
-
title:
|
|
2813
|
+
title: W(U.shallowSize),
|
|
2811
2814
|
width: "110px",
|
|
2812
2815
|
sortable: !0,
|
|
2813
2816
|
fixedWidth: !0
|
|
2814
2817
|
},
|
|
2815
2818
|
{
|
|
2816
2819
|
id: "retainedSize",
|
|
2817
|
-
title:
|
|
2820
|
+
title: W(U.retainedSize),
|
|
2818
2821
|
width: "110px",
|
|
2819
2822
|
sortable: !0,
|
|
2820
2823
|
fixedWidth: !0
|
|
2821
2824
|
}
|
|
2822
2825
|
];
|
|
2823
|
-
super(e, t,
|
|
2826
|
+
super(e, t, W(U.heapSnapshotRetainment), n);
|
|
2824
2827
|
}
|
|
2825
2828
|
createRootNode(e, t) {
|
|
2826
|
-
let n = new
|
|
2827
|
-
return new
|
|
2829
|
+
let n = new Ht("", t, "", -1);
|
|
2830
|
+
return new rr(this, e, n, null);
|
|
2828
2831
|
}
|
|
2829
2832
|
sortFields(e, t) {
|
|
2830
2833
|
switch (e) {
|
|
2831
|
-
case "object": return new
|
|
2832
|
-
case "count": return new
|
|
2833
|
-
case "shallowSize": return new
|
|
2834
|
-
case "retainedSize": return new
|
|
2835
|
-
case "distance": return new
|
|
2834
|
+
case "object": return new O("name", t, "count", !1);
|
|
2835
|
+
case "count": return new O("count", t, "name", !0);
|
|
2836
|
+
case "shallowSize": return new O("shallowSize", t, "name", !0);
|
|
2837
|
+
case "retainedSize": return new O("retainedSize", t, "name", !0);
|
|
2838
|
+
case "distance": return new O("distance", t, "name", !0);
|
|
2836
2839
|
default: throw Error(`Unknown column ${e}`);
|
|
2837
2840
|
}
|
|
2838
2841
|
}
|
|
@@ -2850,9 +2853,9 @@ var $n = class extends W {
|
|
|
2850
2853
|
async dataSourceChanged() {
|
|
2851
2854
|
this.reset(), await this.rootNode().sort(), this.rootNode().expand(), this.updateResetButtonVisibility();
|
|
2852
2855
|
}
|
|
2853
|
-
},
|
|
2856
|
+
}, vr = /* @__PURE__ */ function(e) {
|
|
2854
2857
|
return e.ExpandRetainersComplete = "ExpandRetainersComplete", e;
|
|
2855
|
-
}({}),
|
|
2858
|
+
}({}), yr = class extends hr {
|
|
2856
2859
|
profileIndex = -1;
|
|
2857
2860
|
objectIdToSelect = null;
|
|
2858
2861
|
nextRequestedFilter = null;
|
|
@@ -2862,44 +2865,44 @@ var $n = class extends W {
|
|
|
2862
2865
|
let n = [
|
|
2863
2866
|
{
|
|
2864
2867
|
id: "object",
|
|
2865
|
-
title:
|
|
2868
|
+
title: W(U.constructorString),
|
|
2866
2869
|
disclosure: !0,
|
|
2867
2870
|
sortable: !0
|
|
2868
2871
|
},
|
|
2869
2872
|
{
|
|
2870
2873
|
id: "distance",
|
|
2871
|
-
title:
|
|
2874
|
+
title: W(U.distance),
|
|
2872
2875
|
width: "70px",
|
|
2873
2876
|
sortable: !0,
|
|
2874
2877
|
fixedWidth: !0
|
|
2875
2878
|
},
|
|
2876
2879
|
{
|
|
2877
2880
|
id: "shallowSize",
|
|
2878
|
-
title:
|
|
2881
|
+
title: W(U.shallowSize),
|
|
2879
2882
|
width: "110px",
|
|
2880
2883
|
sortable: !0,
|
|
2881
2884
|
fixedWidth: !0
|
|
2882
2885
|
},
|
|
2883
2886
|
{
|
|
2884
2887
|
id: "retainedSize",
|
|
2885
|
-
title:
|
|
2888
|
+
title: W(U.retainedSize),
|
|
2886
2889
|
width: "110px",
|
|
2887
|
-
sort:
|
|
2890
|
+
sort: E.Descending,
|
|
2888
2891
|
sortable: !0,
|
|
2889
2892
|
fixedWidth: !0
|
|
2890
2893
|
}
|
|
2891
2894
|
];
|
|
2892
2895
|
super(e, t, {
|
|
2893
|
-
displayName:
|
|
2896
|
+
displayName: W(U.heapSnapshotConstructors).toString(),
|
|
2894
2897
|
columns: n
|
|
2895
2898
|
});
|
|
2896
2899
|
}
|
|
2897
2900
|
sortFields(e, t) {
|
|
2898
2901
|
switch (e) {
|
|
2899
|
-
case "object": return new
|
|
2900
|
-
case "distance": return new
|
|
2901
|
-
case "shallowSize": return new
|
|
2902
|
-
case "retainedSize": return new
|
|
2902
|
+
case "object": return new O("name", t, "retainedSize", !1);
|
|
2903
|
+
case "distance": return new O("distance", t, "retainedSize", !1);
|
|
2904
|
+
case "shallowSize": return new O("shallowSize", t, "name", !0);
|
|
2905
|
+
case "retainedSize": return new O("retainedSize", t, "name", !0);
|
|
2903
2906
|
default: throw Error(`Unknown column ${e}`);
|
|
2904
2907
|
}
|
|
2905
2908
|
}
|
|
@@ -2919,18 +2922,18 @@ var $n = class extends W {
|
|
|
2919
2922
|
this.snapshot = e, this.profileIndex === -1 && this.populateChildren(), this.objectIdToSelect &&= (this.revealObjectByHeapSnapshotId(this.objectIdToSelect), null);
|
|
2920
2923
|
}
|
|
2921
2924
|
setSelectionRange(e, t) {
|
|
2922
|
-
this.nodeFilterInternal = new
|
|
2925
|
+
this.nodeFilterInternal = new k(e, t), this.populateChildren(this.nodeFilterInternal);
|
|
2923
2926
|
}
|
|
2924
2927
|
setAllocationNodeId(e) {
|
|
2925
|
-
this.nodeFilterInternal = new
|
|
2928
|
+
this.nodeFilterInternal = new k(), this.nodeFilterInternal.allocationNodeId = e, this.populateChildren(this.nodeFilterInternal);
|
|
2926
2929
|
}
|
|
2927
2930
|
aggregatesReceived(e, t) {
|
|
2928
2931
|
this.filterInProgress = null, this.nextRequestedFilter && this.snapshot && (this.snapshot.aggregatesWithFilter(this.nextRequestedFilter).then(this.aggregatesReceived.bind(this, this.nextRequestedFilter)), this.filterInProgress = this.nextRequestedFilter, this.nextRequestedFilter = null), this.removeTopLevelNodes(), this.resetSortingCache();
|
|
2929
|
-
for (let n in t) this.appendNode(this.rootNode(), new
|
|
2932
|
+
for (let n in t) this.appendNode(this.rootNode(), new ar(this, n, t[n], e));
|
|
2930
2933
|
this.sortingChanged(), this.lastFilter = e;
|
|
2931
2934
|
}
|
|
2932
2935
|
async populateChildren(e) {
|
|
2933
|
-
let t = e || new
|
|
2936
|
+
let t = e || new k();
|
|
2934
2937
|
if (this.filterInProgress) {
|
|
2935
2938
|
this.nextRequestedFilter = this.filterInProgress.equals(t) ? null : t;
|
|
2936
2939
|
return;
|
|
@@ -2943,66 +2946,66 @@ var $n = class extends W {
|
|
|
2943
2946
|
filterSelectIndexChanged(e, t, n) {
|
|
2944
2947
|
if (this.profileIndex = t, this.nodeFilterInternal = void 0, t !== -1) {
|
|
2945
2948
|
let n = t > 0 ? e[t - 1].maxJSObjectId : 0, r = e[t].maxJSObjectId;
|
|
2946
|
-
this.nodeFilterInternal = new
|
|
2947
|
-
} else n !== void 0 && (this.nodeFilterInternal = new
|
|
2949
|
+
this.nodeFilterInternal = new k(n, r);
|
|
2950
|
+
} else n !== void 0 && (this.nodeFilterInternal = new k(), this.nodeFilterInternal.filterName = n);
|
|
2948
2951
|
this.populateChildren(this.nodeFilterInternal);
|
|
2949
2952
|
}
|
|
2950
|
-
},
|
|
2953
|
+
}, br = class extends hr {
|
|
2951
2954
|
baseSnapshot;
|
|
2952
2955
|
constructor(e, t) {
|
|
2953
2956
|
let n = [
|
|
2954
2957
|
{
|
|
2955
2958
|
id: "object",
|
|
2956
|
-
title:
|
|
2959
|
+
title: W(U.constructorString),
|
|
2957
2960
|
disclosure: !0,
|
|
2958
2961
|
sortable: !0
|
|
2959
2962
|
},
|
|
2960
2963
|
{
|
|
2961
2964
|
id: "addedCount",
|
|
2962
|
-
title:
|
|
2965
|
+
title: W(U.New),
|
|
2963
2966
|
width: "75px",
|
|
2964
2967
|
sortable: !0,
|
|
2965
2968
|
fixedWidth: !0
|
|
2966
2969
|
},
|
|
2967
2970
|
{
|
|
2968
2971
|
id: "removedCount",
|
|
2969
|
-
title:
|
|
2972
|
+
title: W(U.Deleted),
|
|
2970
2973
|
width: "75px",
|
|
2971
2974
|
sortable: !0,
|
|
2972
2975
|
fixedWidth: !0
|
|
2973
2976
|
},
|
|
2974
2977
|
{
|
|
2975
2978
|
id: "countDelta",
|
|
2976
|
-
title:
|
|
2979
|
+
title: W(U.Delta),
|
|
2977
2980
|
width: "65px",
|
|
2978
2981
|
sortable: !0,
|
|
2979
2982
|
fixedWidth: !0
|
|
2980
2983
|
},
|
|
2981
2984
|
{
|
|
2982
2985
|
id: "addedSize",
|
|
2983
|
-
title:
|
|
2986
|
+
title: W(U.allocSize),
|
|
2984
2987
|
width: "75px",
|
|
2985
2988
|
sortable: !0,
|
|
2986
2989
|
fixedWidth: !0,
|
|
2987
|
-
sort:
|
|
2990
|
+
sort: E.Descending
|
|
2988
2991
|
},
|
|
2989
2992
|
{
|
|
2990
2993
|
id: "removedSize",
|
|
2991
|
-
title:
|
|
2994
|
+
title: W(U.freedSize),
|
|
2992
2995
|
width: "75px",
|
|
2993
2996
|
sortable: !0,
|
|
2994
2997
|
fixedWidth: !0
|
|
2995
2998
|
},
|
|
2996
2999
|
{
|
|
2997
3000
|
id: "sizeDelta",
|
|
2998
|
-
title:
|
|
3001
|
+
title: W(U.sizeDelta),
|
|
2999
3002
|
width: "75px",
|
|
3000
3003
|
sortable: !0,
|
|
3001
3004
|
fixedWidth: !0
|
|
3002
3005
|
}
|
|
3003
3006
|
];
|
|
3004
3007
|
super(e, t, {
|
|
3005
|
-
displayName:
|
|
3008
|
+
displayName: W(U.heapSnapshotDiff).toString(),
|
|
3006
3009
|
columns: n
|
|
3007
3010
|
});
|
|
3008
3011
|
}
|
|
@@ -3011,13 +3014,13 @@ var $n = class extends W {
|
|
|
3011
3014
|
}
|
|
3012
3015
|
sortFields(e, t) {
|
|
3013
3016
|
switch (e) {
|
|
3014
|
-
case "object": return new
|
|
3015
|
-
case "addedCount": return new
|
|
3016
|
-
case "removedCount": return new
|
|
3017
|
-
case "countDelta": return new
|
|
3018
|
-
case "addedSize": return new
|
|
3019
|
-
case "removedSize": return new
|
|
3020
|
-
case "sizeDelta": return new
|
|
3017
|
+
case "object": return new O("name", t, "count", !1);
|
|
3018
|
+
case "addedCount": return new O("addedCount", t, "name", !0);
|
|
3019
|
+
case "removedCount": return new O("removedCount", t, "name", !0);
|
|
3020
|
+
case "countDelta": return new O("countDelta", t, "name", !0);
|
|
3021
|
+
case "addedSize": return new O("addedSize", t, "name", !0);
|
|
3022
|
+
case "removedSize": return new O("removedSize", t, "name", !0);
|
|
3023
|
+
case "sizeDelta": return new O("sizeDelta", t, "name", !0);
|
|
3021
3024
|
default: throw Error(`Unknown column ${e}`);
|
|
3022
3025
|
}
|
|
3023
3026
|
}
|
|
@@ -3036,55 +3039,55 @@ var $n = class extends W {
|
|
|
3036
3039
|
let e = await this.snapshot.interfaceDefinitions(), t = await this.baseSnapshot.aggregatesForDiff(e), n = await this.snapshot.calculateSnapshotDiff(this.baseSnapshot.uid, t);
|
|
3037
3040
|
for (let e in n) {
|
|
3038
3041
|
let t = n[e];
|
|
3039
|
-
this.appendNode(this.rootNode(), new
|
|
3042
|
+
this.appendNode(this.rootNode(), new sr(this, e, t));
|
|
3040
3043
|
}
|
|
3041
3044
|
this.sortingChanged();
|
|
3042
3045
|
}
|
|
3043
|
-
},
|
|
3046
|
+
}, xr = class extends hr {
|
|
3044
3047
|
linkifierInternal;
|
|
3045
3048
|
topNodes;
|
|
3046
3049
|
constructor(e, t) {
|
|
3047
3050
|
let n = [
|
|
3048
3051
|
{
|
|
3049
3052
|
id: "liveCount",
|
|
3050
|
-
title:
|
|
3053
|
+
title: W(U.liveCount),
|
|
3051
3054
|
width: "75px",
|
|
3052
3055
|
sortable: !0,
|
|
3053
3056
|
fixedWidth: !0
|
|
3054
3057
|
},
|
|
3055
3058
|
{
|
|
3056
3059
|
id: "count",
|
|
3057
|
-
title:
|
|
3060
|
+
title: W(U.count),
|
|
3058
3061
|
width: "65px",
|
|
3059
3062
|
sortable: !0,
|
|
3060
3063
|
fixedWidth: !0
|
|
3061
3064
|
},
|
|
3062
3065
|
{
|
|
3063
3066
|
id: "liveSize",
|
|
3064
|
-
title:
|
|
3067
|
+
title: W(U.liveSize),
|
|
3065
3068
|
width: "75px",
|
|
3066
3069
|
sortable: !0,
|
|
3067
3070
|
fixedWidth: !0
|
|
3068
3071
|
},
|
|
3069
3072
|
{
|
|
3070
3073
|
id: "size",
|
|
3071
|
-
title:
|
|
3074
|
+
title: W(U.size),
|
|
3072
3075
|
width: "75px",
|
|
3073
3076
|
sortable: !0,
|
|
3074
3077
|
fixedWidth: !0,
|
|
3075
|
-
sort:
|
|
3078
|
+
sort: E.Descending
|
|
3076
3079
|
},
|
|
3077
3080
|
{
|
|
3078
3081
|
id: "name",
|
|
3079
|
-
title:
|
|
3082
|
+
title: W(U.function),
|
|
3080
3083
|
disclosure: !0,
|
|
3081
3084
|
sortable: !0
|
|
3082
3085
|
}
|
|
3083
3086
|
];
|
|
3084
3087
|
super(e, t, {
|
|
3085
|
-
displayName:
|
|
3088
|
+
displayName: W(U.allocation).toString(),
|
|
3086
3089
|
columns: n
|
|
3087
|
-
}), this.linkifierInternal = new
|
|
3090
|
+
}), this.linkifierInternal = new T();
|
|
3088
3091
|
}
|
|
3089
3092
|
get linkifier() {
|
|
3090
3093
|
return this.linkifierInternal;
|
|
@@ -3098,20 +3101,20 @@ var $n = class extends W {
|
|
|
3098
3101
|
populateChildren() {
|
|
3099
3102
|
this.removeTopLevelNodes();
|
|
3100
3103
|
let e = this.rootNode(), t = this.topNodes || [];
|
|
3101
|
-
for (let n of t) this.appendNode(e, new
|
|
3104
|
+
for (let n of t) this.appendNode(e, new cr(this, n));
|
|
3102
3105
|
this.updateVisibleNodes(!0);
|
|
3103
3106
|
}
|
|
3104
3107
|
sortingChanged() {
|
|
3105
3108
|
this.topNodes !== void 0 && (this.topNodes.sort(this.createComparator()), this.rootNode().removeChildren(), this.populateChildren());
|
|
3106
3109
|
}
|
|
3107
3110
|
createComparator() {
|
|
3108
|
-
let e = this.sortColumnId(), t = this.sortOrder() ===
|
|
3111
|
+
let e = this.sortColumnId(), t = this.sortOrder() === E.Ascending ? 1 : -1;
|
|
3109
3112
|
function n(n, r) {
|
|
3110
3113
|
return n[e] > r[e] ? t : n[e] < r[e] ? -t : 0;
|
|
3111
3114
|
}
|
|
3112
3115
|
return n;
|
|
3113
3116
|
}
|
|
3114
|
-
},
|
|
3117
|
+
}, Sr = {
|
|
3115
3118
|
buildingEdgeIndexes: "Building edge indexes…",
|
|
3116
3119
|
buildingRetainers: "Building retainers…",
|
|
3117
3120
|
propagatingDomState: "Propagating DOM state…",
|
|
@@ -3136,22 +3139,22 @@ var $n = class extends W {
|
|
|
3136
3139
|
loadingSamples: "Loading samples…",
|
|
3137
3140
|
loadingLocations: "Loading locations…",
|
|
3138
3141
|
loadingStrings: "Loading strings…"
|
|
3139
|
-
},
|
|
3140
|
-
AllocationPerspective: () =>
|
|
3141
|
-
ComparisonPerspective: () =>
|
|
3142
|
-
ContainmentPerspective: () =>
|
|
3142
|
+
}, Cr = /* @__PURE__ */ e({
|
|
3143
|
+
AllocationPerspective: () => jr,
|
|
3144
|
+
ComparisonPerspective: () => kr,
|
|
3145
|
+
ContainmentPerspective: () => Ar,
|
|
3143
3146
|
HeapAllocationStackView: () => Rr,
|
|
3144
|
-
HeapProfileHeader: () =>
|
|
3145
|
-
HeapSnapshotProfileType: () =>
|
|
3146
|
-
HeapSnapshotProfileTypeEvents: () =>
|
|
3147
|
+
HeapProfileHeader: () => J,
|
|
3148
|
+
HeapSnapshotProfileType: () => Nr,
|
|
3149
|
+
HeapSnapshotProfileTypeEvents: () => Pr,
|
|
3147
3150
|
HeapSnapshotStatisticsView: () => Lr,
|
|
3148
|
-
HeapSnapshotView: () =>
|
|
3149
|
-
Perspective: () =>
|
|
3150
|
-
StatisticsPerspective: () =>
|
|
3151
|
-
SummaryPerspective: () =>
|
|
3152
|
-
TrackingHeapSnapshotProfileType: () =>
|
|
3153
|
-
TrackingHeapSnapshotProfileTypeEvents: () =>
|
|
3154
|
-
}),
|
|
3151
|
+
HeapSnapshotView: () => Dr,
|
|
3152
|
+
Perspective: () => q,
|
|
3153
|
+
StatisticsPerspective: () => Mr,
|
|
3154
|
+
SummaryPerspective: () => Or,
|
|
3155
|
+
TrackingHeapSnapshotProfileType: () => Fr,
|
|
3156
|
+
TrackingHeapSnapshotProfileTypeEvents: () => Ir
|
|
3157
|
+
}), G = {
|
|
3155
3158
|
find: "Find",
|
|
3156
3159
|
containment: "Containment",
|
|
3157
3160
|
retainers: "Retainers",
|
|
@@ -3199,7 +3202,7 @@ var $n = class extends W {
|
|
|
3199
3202
|
heapMemoryUsage: "Heap memory usage",
|
|
3200
3203
|
stackWasNotRecordedForThisObject: "Stack wasn't recorded for this object because it had been allocated before this profile recording started.",
|
|
3201
3204
|
restoreIgnoredRetainers: "Restore ignored retainers"
|
|
3202
|
-
},
|
|
3205
|
+
}, wr = o("panels/profiler/HeapSnapshotView.ts", G), K = r.bind(void 0, wr), Tr = o("panels/profiler/ModuleUIStrings.ts", Sr), Er = r.bind(void 0, Tr), Dr = class e extends Xe {
|
|
3203
3206
|
searchResults = [];
|
|
3204
3207
|
profile;
|
|
3205
3208
|
linkifier;
|
|
@@ -3246,37 +3249,37 @@ var $n = class extends W {
|
|
|
3246
3249
|
}
|
|
3247
3250
|
constructor(e, t, n) {
|
|
3248
3251
|
super({
|
|
3249
|
-
title:
|
|
3252
|
+
title: K(G.heapSnapshot),
|
|
3250
3253
|
viewId: "heap-snapshot"
|
|
3251
|
-
}), this.#e = n, this.element.classList.add("heap-snapshot-view"), this.profile = t, this.linkifier = new
|
|
3254
|
+
}), this.#e = n, this.element.classList.add("heap-snapshot-view"), this.profile = t, this.linkifier = new T();
|
|
3252
3255
|
let r = t.profileType();
|
|
3253
|
-
r.addEventListener("SnapshotReceived", this.onReceiveSnapshot, this), r.addEventListener(
|
|
3254
|
-
let i = r.id ===
|
|
3256
|
+
r.addEventListener("SnapshotReceived", this.onReceiveSnapshot, this), r.addEventListener(N.REMOVE_PROFILE_HEADER, this.onProfileHeaderRemoved, this);
|
|
3257
|
+
let i = r.id === Fr.TypeId;
|
|
3255
3258
|
i && this.createOverview();
|
|
3256
3259
|
let a = n.trackingHeapSnapshotProfileType.recordAllocationStacksSetting().get();
|
|
3257
|
-
this.parentDataDisplayDelegate = e, this.searchableViewInternal = new
|
|
3260
|
+
this.parentDataDisplayDelegate = e, this.searchableViewInternal = new Ae(this, null), this.searchableViewInternal.setPlaceholder(K(G.find), K(G.find)), this.searchableViewInternal.show(this.element), this.splitWidget = new Ee(!1, !0, "heap-snapshot-split-view-state", 200, 200), this.splitWidget.show(this.searchableViewInternal.element);
|
|
3258
3261
|
let o = t.heapProfilerModel();
|
|
3259
|
-
this.containmentDataGrid = new
|
|
3262
|
+
this.containmentDataGrid = new gr(o, this, K(G.containment)), this.containmentDataGrid.addEventListener(D.SELECTED_NODE, this.selectionChanged, this), this.containmentWidget = this.containmentDataGrid.asWidget(), this.containmentWidget.setMinimumSize(50, 25), this.statisticsView = new Lr(), this.constructorsDataGrid = new yr(o, this), this.constructorsDataGrid.addEventListener(D.SELECTED_NODE, this.selectionChanged, this), this.constructorsWidget = this.constructorsDataGrid.asWidget(), this.constructorsWidget.setMinimumSize(50, 25), this.constructorsWidget.element.setAttribute("jslog", `${it("heap-snapshot.constructors-view").track({ resize: !0 })}`), this.diffDataGrid = new br(o, this), this.diffDataGrid.addEventListener(D.SELECTED_NODE, this.selectionChanged, this), this.diffWidget = this.diffDataGrid.asWidget(), this.diffWidget.setMinimumSize(50, 25), this.allocationDataGrid = null, i && a && (this.allocationDataGrid = new xr(o, this), this.allocationDataGrid.addEventListener(D.SELECTED_NODE, this.onSelectAllocationNode, this), this.allocationWidget = this.allocationDataGrid.asWidget(), this.allocationWidget.setMinimumSize(50, 25), this.allocationStackView = new Rr(o), this.allocationStackView.setMinimumSize(50, 25), this.tabbedPane = new pe()), this.retainmentDataGrid = new _r(o, this), this.retainmentWidget = this.retainmentDataGrid.asWidget(), this.retainmentWidget.setMinimumSize(50, 21), this.retainmentWidget.element.classList.add("retaining-paths-view"), this.retainmentWidget.element.setAttribute("jslog", `${it("heap-snapshot.retaining-paths-view").track({ resize: !0 })}`);
|
|
3260
3263
|
let s;
|
|
3261
|
-
if (this.allocationStackView) this.tabbedPane = new
|
|
3264
|
+
if (this.allocationStackView) this.tabbedPane = new pe(), this.tabbedPane.appendTab("retainers", K(G.retainers), this.retainmentWidget), this.tabbedPane.appendTab("allocation-stack", K(G.allocationStack), this.allocationStackView), s = this.tabbedPane.headerElement(), this.objectDetailsView = this.tabbedPane;
|
|
3262
3265
|
else {
|
|
3263
3266
|
let e = document.createElement("div");
|
|
3264
3267
|
e.classList.add("heap-snapshot-view-resizer");
|
|
3265
3268
|
let t = e.createChild("div", "title");
|
|
3266
3269
|
e.createChild("div", "verticalResizerIcon");
|
|
3267
3270
|
let n = t.createChild("span");
|
|
3268
|
-
n.textContent =
|
|
3271
|
+
n.textContent = K(G.retainers), s = e, this.objectDetailsView = new b(), this.objectDetailsView.element.appendChild(e), this.retainmentWidget.show(this.objectDetailsView.element);
|
|
3269
3272
|
}
|
|
3270
|
-
this.splitWidget.hideDefaultResizer(), this.splitWidget.installResizer(s), this.retainmentDataGrid.addEventListener(
|
|
3271
|
-
let c =
|
|
3272
|
-
this.resetRetainersButton = new
|
|
3273
|
+
this.splitWidget.hideDefaultResizer(), this.splitWidget.installResizer(s), this.retainmentDataGrid.addEventListener(D.SELECTED_NODE, this.inspectedObjectChanged, this), this.retainmentDataGrid.reset(), this.perspectives = [], this.comparisonPerspective = new kr(), this.perspectives.push(new Or()), t.profileType() !== this.#e.trackingHeapSnapshotProfileType && this.perspectives.push(this.comparisonPerspective), this.perspectives.push(new Ar()), this.allocationWidget && this.perspectives.push(new jr()), this.perspectives.push(new Mr()), this.perspectiveSelect = new be(this.onSelectedPerspectiveChanged.bind(this), K(G.perspective), void 0, "profiler.heap-snapshot-perspective"), this.updatePerspectiveOptions(), this.baseSelect = new be(this.changeBase.bind(this), K(G.baseSnapshot), void 0, "profiler.heap-snapshot-base"), this.baseSelect.setVisible(!1), this.updateBaseOptions(), this.filterSelect = new be(this.changeFilter.bind(this), K(G.filter), void 0, "profiler.heap-snapshot-filter"), this.filterSelect.setVisible(!1), this.updateFilterOptions(), this.classNameFilter = new ie(K(G.filterByClass)), this.classNameFilter.setVisible(!1), this.constructorsDataGrid.setNameFilter(this.classNameFilter), this.diffDataGrid.setNameFilter(this.classNameFilter), this.selectedSizeText = new ut();
|
|
3274
|
+
let c = K(G.restoreIgnoredRetainers);
|
|
3275
|
+
this.resetRetainersButton = new y(c, "clear-list", c), this.resetRetainersButton.setVisible(!1), this.resetRetainersButton.addEventListener(y.Events.CLICK, async () => {
|
|
3273
3276
|
await this.retainmentDataGrid.snapshot?.unignoreAllNodesInRetainersView(), await this.retainmentDataGrid.dataSourceChanged();
|
|
3274
|
-
}), this.retainmentDataGrid.resetRetainersButton = this.resetRetainersButton, this.popoverHelper = new
|
|
3275
|
-
for (let e of this.profiles()) e.addEventListener(
|
|
3277
|
+
}), this.retainmentDataGrid.resetRetainersButton = this.resetRetainersButton, this.popoverHelper = new pt(this.element, this.getPopoverRequest.bind(this), "profiler.heap-snapshot-object"), this.popoverHelper.setDisableOnClick(!0), this.element.addEventListener("scroll", this.popoverHelper.hidePopover.bind(this.popoverHelper), !0), this.currentPerspectiveIndex = 0, this.currentPerspective = this.perspectives[0], this.currentPerspective.activate(this), this.dataGrid = this.currentPerspective.masterGrid(this), this.populate(), this.searchThrottler = new Be(0);
|
|
3278
|
+
for (let e of this.profiles()) e.addEventListener(M.PROFILE_TITLE_CHANGED, this.updateControls, this);
|
|
3276
3279
|
}
|
|
3277
3280
|
createOverview() {
|
|
3278
3281
|
let e = this.profile.profileType();
|
|
3279
|
-
this.trackingOverviewGrid = new
|
|
3282
|
+
this.trackingOverviewGrid = new Fn(), this.trackingOverviewGrid.addEventListener(In.IDS_RANGE_CHANGED, this.onIdsRangeChanged.bind(this)), !this.profile.fromFile() && e.profileBeingRecorded() === this.profile && (e.addEventListener("HeapStatsUpdate", this.onHeapStatsUpdate, this), e.addEventListener("TrackingStopped", this.onStopTracking, this), this.trackingOverviewGrid.start());
|
|
3280
3283
|
}
|
|
3281
3284
|
onStopTracking() {
|
|
3282
3285
|
let e = this.profile.profileType();
|
|
@@ -3306,11 +3309,11 @@ var $n = class extends W {
|
|
|
3306
3309
|
}
|
|
3307
3310
|
async populate() {
|
|
3308
3311
|
let e = await this.profile.loadPromise;
|
|
3309
|
-
if (this.retrieveStatistics(e), this.dataGrid && this.dataGrid.setDataSource(e, 0), this.profile.profileType().id ===
|
|
3312
|
+
if (this.retrieveStatistics(e), this.dataGrid && this.dataGrid.setDataSource(e, 0), this.profile.profileType().id === Fr.TypeId && this.profile.fromFile()) {
|
|
3310
3313
|
let t = await e.getSamples();
|
|
3311
3314
|
if (t) {
|
|
3312
3315
|
console.assert(!!t.timestamps.length);
|
|
3313
|
-
let e = new
|
|
3316
|
+
let e = new Rn();
|
|
3314
3317
|
e.sizes = t.sizes, e.ids = t.lastAssignedIds, e.timestamps = t.timestamps, e.max = t.sizes, e.totalTime = Math.max(t.timestamps[t.timestamps.length - 1] || 0, 1e4), this.trackingOverviewGrid && this.trackingOverviewGrid.setSamples(e);
|
|
3315
3318
|
}
|
|
3316
3319
|
}
|
|
@@ -3322,44 +3325,44 @@ var $n = class extends W {
|
|
|
3322
3325
|
{
|
|
3323
3326
|
value: n.code,
|
|
3324
3327
|
color: "var(--app-color-code)",
|
|
3325
|
-
title:
|
|
3328
|
+
title: K(G.code)
|
|
3326
3329
|
},
|
|
3327
3330
|
{
|
|
3328
3331
|
value: n.strings,
|
|
3329
3332
|
color: "var(--app-color-strings)",
|
|
3330
|
-
title:
|
|
3333
|
+
title: K(G.strings)
|
|
3331
3334
|
},
|
|
3332
3335
|
{
|
|
3333
3336
|
value: n.jsArrays,
|
|
3334
3337
|
color: "var(--app-color-js-arrays)",
|
|
3335
|
-
title:
|
|
3338
|
+
title: K(G.jsArrays)
|
|
3336
3339
|
},
|
|
3337
3340
|
{
|
|
3338
3341
|
value: r.typedArrays,
|
|
3339
3342
|
color: "var(--app-color-typed-arrays)",
|
|
3340
|
-
title:
|
|
3343
|
+
title: K(G.typedArrays)
|
|
3341
3344
|
},
|
|
3342
3345
|
{
|
|
3343
3346
|
value: n.system,
|
|
3344
3347
|
color: "var(--app-color-system)",
|
|
3345
|
-
title:
|
|
3348
|
+
title: K(G.systemObjects)
|
|
3346
3349
|
},
|
|
3347
3350
|
{
|
|
3348
3351
|
value: i,
|
|
3349
3352
|
color: "var(--app-color-other-js-objects)",
|
|
3350
|
-
title:
|
|
3353
|
+
title: K(G.otherJSObjects)
|
|
3351
3354
|
},
|
|
3352
3355
|
{
|
|
3353
3356
|
value: r.total - r.typedArrays,
|
|
3354
3357
|
color: "var(--app-color-other-non-js-objects)",
|
|
3355
|
-
title:
|
|
3358
|
+
title: K(G.otherNonJSObjects)
|
|
3356
3359
|
}
|
|
3357
3360
|
];
|
|
3358
3361
|
return this.statisticsView.setTotalAndRecords(t.total, a), t;
|
|
3359
3362
|
}
|
|
3360
3363
|
onIdsRangeChanged(e) {
|
|
3361
3364
|
let { minId: t, maxId: n } = e.data;
|
|
3362
|
-
this.selectedSizeText.setText(
|
|
3365
|
+
this.selectedSizeText.setText(K(G.selectedSizeS, { PH1: a(e.data.size) })), this.constructorsDataGrid.snapshot && this.constructorsDataGrid.setSelectionRange(t, n);
|
|
3363
3366
|
}
|
|
3364
3367
|
async toolbarItems() {
|
|
3365
3368
|
let e = [this.perspectiveSelect, this.classNameFilter];
|
|
@@ -3384,7 +3387,7 @@ var $n = class extends W {
|
|
|
3384
3387
|
e && e.select();
|
|
3385
3388
|
}
|
|
3386
3389
|
performSearch(e, t, n) {
|
|
3387
|
-
let r = new
|
|
3390
|
+
let r = new Wt(e.query.trim(), e.caseSensitive, e.wholeWord, e.isRegex, t, n || !1);
|
|
3388
3391
|
this.searchThrottler.schedule(this.performSearchInternal.bind(this, r));
|
|
3389
3392
|
}
|
|
3390
3393
|
async performSearchInternal(e) {
|
|
@@ -3423,23 +3426,23 @@ var $n = class extends W {
|
|
|
3423
3426
|
if (this.baseProfile === this.profiles()[this.baseSelect.selectedIndex()]) return;
|
|
3424
3427
|
this.baseProfile = this.profiles()[this.baseSelect.selectedIndex()];
|
|
3425
3428
|
let e = this.dataGrid;
|
|
3426
|
-
e.snapshot && this.baseProfile.loadPromise.then(e.setBaseDataSource.bind(e)),
|
|
3429
|
+
e.snapshot && this.baseProfile.loadPromise.then(e.setBaseDataSource.bind(e)), this.currentSearch && this.searchResults && this.performSearch(this.currentSearch, !1);
|
|
3427
3430
|
}
|
|
3428
3431
|
static ALWAYS_AVAILABLE_FILTERS = [
|
|
3429
3432
|
{
|
|
3430
|
-
uiName:
|
|
3433
|
+
uiName: K(G.duplicatedStrings),
|
|
3431
3434
|
filterName: "duplicatedStrings"
|
|
3432
3435
|
},
|
|
3433
3436
|
{
|
|
3434
|
-
uiName:
|
|
3437
|
+
uiName: K(G.objectsRetainedByDetachedDomNodes),
|
|
3435
3438
|
filterName: "objectsRetainedByDetachedDomNodes"
|
|
3436
3439
|
},
|
|
3437
3440
|
{
|
|
3438
|
-
uiName:
|
|
3441
|
+
uiName: K(G.objectsRetainedByConsole),
|
|
3439
3442
|
filterName: "objectsRetainedByConsole"
|
|
3440
3443
|
},
|
|
3441
3444
|
{
|
|
3442
|
-
uiName:
|
|
3445
|
+
uiName: K(G.objectsRetainedByEventHandlers),
|
|
3443
3446
|
filterName: "objectsRetainedByEventHandlers"
|
|
3444
3447
|
}
|
|
3445
3448
|
];
|
|
@@ -3447,7 +3450,7 @@ var $n = class extends W {
|
|
|
3447
3450
|
let t = this.filterSelect.selectedIndex(), n, r = this.filterSelect.size() - e.ALWAYS_AVAILABLE_FILTERS.length;
|
|
3448
3451
|
t >= r && (n = e.ALWAYS_AVAILABLE_FILTERS[t - r].filterName, t = 0);
|
|
3449
3452
|
let i = t - 1;
|
|
3450
|
-
this.dataGrid && (this.dataGrid.filterSelectIndexChanged(this.profiles(), i, n),
|
|
3453
|
+
this.dataGrid && (this.dataGrid.filterSelectIndexChanged(this.profiles(), i, n), this.currentSearch && this.searchResults && this.performSearch(this.currentSearch, !1));
|
|
3451
3454
|
}
|
|
3452
3455
|
profiles() {
|
|
3453
3456
|
return this.profile.profileType().getProfiles();
|
|
@@ -3462,7 +3465,7 @@ var $n = class extends W {
|
|
|
3462
3465
|
}
|
|
3463
3466
|
inspectedObjectChanged(e) {
|
|
3464
3467
|
let t = e.data, n = this.profile.heapProfilerModel();
|
|
3465
|
-
n && t instanceof
|
|
3468
|
+
n && t instanceof tr && n.addInspectedHeapObject(String(t.snapshotNodeId));
|
|
3466
3469
|
}
|
|
3467
3470
|
setSelectedNodeForDetailsView(e) {
|
|
3468
3471
|
let t = e?.retainersDataSource();
|
|
@@ -3473,7 +3476,7 @@ var $n = class extends W {
|
|
|
3473
3476
|
if (t === -1 || this.currentPerspectiveIndex === t) return;
|
|
3474
3477
|
let n = this.perspectives[t].masterGrid(this);
|
|
3475
3478
|
if (!n) return;
|
|
3476
|
-
let r = n.once(
|
|
3479
|
+
let r = n.once(mr.ContentShown), i = this.perspectiveSelect.options().find((e) => e.value === String(t));
|
|
3477
3480
|
this.perspectiveSelect.select(i), this.changePerspective(t), await r;
|
|
3478
3481
|
}
|
|
3479
3482
|
async updateDataSourceAndView() {
|
|
@@ -3492,15 +3495,15 @@ var $n = class extends W {
|
|
|
3492
3495
|
if (e === this.currentPerspectiveIndex) return;
|
|
3493
3496
|
this.currentPerspectiveIndex = e, this.currentPerspective.deactivate(this);
|
|
3494
3497
|
let t = this.perspectives[e];
|
|
3495
|
-
this.currentPerspective = t, this.dataGrid = t.masterGrid(this), t.activate(this), this.refreshVisibleData(), this.dataGrid && this.dataGrid.updateWidths(), this.updateDataSourceAndView(),
|
|
3498
|
+
this.currentPerspective = t, this.dataGrid = t.masterGrid(this), t.activate(this), this.refreshVisibleData(), this.dataGrid && this.dataGrid.updateWidths(), this.updateDataSourceAndView(), this.currentSearch && this.searchResults && this.performSearch(this.currentSearch, !1);
|
|
3496
3499
|
}
|
|
3497
3500
|
async selectLiveObject(e, t) {
|
|
3498
3501
|
if (await this.changePerspectiveAndWait(e), !this.dataGrid) return;
|
|
3499
3502
|
let n = await this.dataGrid.revealObjectByHeapSnapshotId(t);
|
|
3500
|
-
n ? n.select() :
|
|
3503
|
+
n ? n.select() : g.instance().error("Cannot find corresponding heap snapshot node");
|
|
3501
3504
|
}
|
|
3502
3505
|
getPopoverRequest(e) {
|
|
3503
|
-
let t =
|
|
3506
|
+
let t = ft(e.target, "span"), n = ft(e.target, "tr");
|
|
3504
3507
|
if (!n || !this.dataGrid) return null;
|
|
3505
3508
|
let r = this.dataGrid.dataGridNodeFromNode(n) || this.containmentDataGrid.dataGridNodeFromNode(n) || this.constructorsDataGrid.dataGridNodeFromNode(n) || this.diffDataGrid.dataGridNodeFromNode(n) || this.allocationDataGrid?.dataGridNodeFromNode(n) || this.retainmentDataGrid.dataGridNodeFromNode(n), i = this.profile.heapProfilerModel();
|
|
3506
3509
|
if (!r || !t || !i) return null;
|
|
@@ -3510,7 +3513,7 @@ var $n = class extends W {
|
|
|
3510
3513
|
show: async (e) => {
|
|
3511
3514
|
if (!i) return !1;
|
|
3512
3515
|
let t = await r.queryObjectContent(i, "popover");
|
|
3513
|
-
return a = t instanceof
|
|
3516
|
+
return a = t instanceof Te ? await Et.buildObjectPopover(t, e) : Et.buildDescriptionPopover(t.description, t.link, e), a ? !0 : (i.runtimeModel().releaseObjectGroup("popover"), !1);
|
|
3514
3517
|
},
|
|
3515
3518
|
hide: () => {
|
|
3516
3519
|
i.runtimeModel().releaseObjectGroup("popover"), a && a.dispose();
|
|
@@ -3534,13 +3537,13 @@ var $n = class extends W {
|
|
|
3534
3537
|
}
|
|
3535
3538
|
updateFilterOptions() {
|
|
3536
3539
|
let t = this.profiles(), n = this.filterSelect.selectedIndex(), r = this.filterSelect.size();
|
|
3537
|
-
this.filterSelect.removeOptions(), this.filterSelect.createOption(
|
|
3540
|
+
this.filterSelect.removeOptions(), this.filterSelect.createOption(K(G.allObjects));
|
|
3538
3541
|
for (let e = 0; e < t.length; ++e) {
|
|
3539
3542
|
let n;
|
|
3540
|
-
n = e ?
|
|
3543
|
+
n = e ? K(G.objectsAllocatedBetweenSAndS, {
|
|
3541
3544
|
PH1: t[e - 1].title,
|
|
3542
3545
|
PH2: t[e].title
|
|
3543
|
-
}) :
|
|
3546
|
+
}) : K(G.objectsAllocatedBeforeS, { PH1: t[e].title }), this.filterSelect.createOption(n);
|
|
3544
3547
|
}
|
|
3545
3548
|
let i = this.filterSelect.size(), a = this.filterSelect.createOption("—".repeat(18));
|
|
3546
3549
|
a.disabled = !0;
|
|
@@ -3555,16 +3558,16 @@ var $n = class extends W {
|
|
|
3555
3558
|
this.updatePerspectiveOptions(), this.updateBaseOptions(), this.updateFilterOptions();
|
|
3556
3559
|
}
|
|
3557
3560
|
onReceiveSnapshot(e) {
|
|
3558
|
-
this.updateControls(), e.data.addEventListener(
|
|
3561
|
+
this.updateControls(), e.data.addEventListener(M.PROFILE_TITLE_CHANGED, this.updateControls, this);
|
|
3559
3562
|
}
|
|
3560
3563
|
onProfileHeaderRemoved(e) {
|
|
3561
3564
|
let t = e.data;
|
|
3562
|
-
t.removeEventListener(
|
|
3565
|
+
t.removeEventListener(M.PROFILE_TITLE_CHANGED, this.updateControls, this), this.profile === t ? (this.detach(), this.profile.profileType().removeEventListener("SnapshotReceived", this.onReceiveSnapshot, this), this.profile.profileType().removeEventListener(N.REMOVE_PROFILE_HEADER, this.onProfileHeaderRemoved, this), this.dispose()) : this.updateControls();
|
|
3563
3566
|
}
|
|
3564
3567
|
dispose() {
|
|
3565
|
-
this.linkifier.dispose(), this.popoverHelper.dispose(), this.allocationStackView && (this.allocationStackView.clear(), this.allocationDataGrid && this.allocationDataGrid.dispose()), this.onStopTracking(), this.trackingOverviewGrid && this.trackingOverviewGrid.removeEventListener(
|
|
3568
|
+
this.linkifier.dispose(), this.popoverHelper.dispose(), this.allocationStackView && (this.allocationStackView.clear(), this.allocationDataGrid && this.allocationDataGrid.dispose()), this.onStopTracking(), this.trackingOverviewGrid && this.trackingOverviewGrid.removeEventListener(In.IDS_RANGE_CHANGED, this.onIdsRangeChanged.bind(this));
|
|
3566
3569
|
}
|
|
3567
|
-
},
|
|
3570
|
+
}, q = class {
|
|
3568
3571
|
titleInternal;
|
|
3569
3572
|
constructor(e) {
|
|
3570
3573
|
this.titleInternal = e;
|
|
@@ -3582,9 +3585,9 @@ var $n = class extends W {
|
|
|
3582
3585
|
supportsSearch() {
|
|
3583
3586
|
return !1;
|
|
3584
3587
|
}
|
|
3585
|
-
},
|
|
3588
|
+
}, Or = class extends q {
|
|
3586
3589
|
constructor() {
|
|
3587
|
-
super(
|
|
3590
|
+
super(K(G.summary));
|
|
3588
3591
|
}
|
|
3589
3592
|
activate(e) {
|
|
3590
3593
|
e.splitWidget.setMainWidget(e.constructorsWidget), e.splitWidget.setSidebarWidget(e.objectDetailsView), e.splitWidget.show(e.searchableViewInternal.element), e.filterSelect.setVisible(!0), e.classNameFilter.setVisible(!0), e.trackingOverviewGrid && (e.trackingOverviewGrid.show(e.searchableViewInternal.element, e.splitWidget.element), e.trackingOverviewGrid.update(), e.trackingOverviewGrid.updateGrid());
|
|
@@ -3595,9 +3598,9 @@ var $n = class extends W {
|
|
|
3595
3598
|
supportsSearch() {
|
|
3596
3599
|
return !0;
|
|
3597
3600
|
}
|
|
3598
|
-
},
|
|
3601
|
+
}, kr = class extends q {
|
|
3599
3602
|
constructor() {
|
|
3600
|
-
super(
|
|
3603
|
+
super(K(G.comparison));
|
|
3601
3604
|
}
|
|
3602
3605
|
activate(e) {
|
|
3603
3606
|
e.splitWidget.setMainWidget(e.diffWidget), e.splitWidget.setSidebarWidget(e.objectDetailsView), e.splitWidget.show(e.searchableViewInternal.element), e.baseSelect.setVisible(!0), e.classNameFilter.setVisible(!0);
|
|
@@ -3608,9 +3611,9 @@ var $n = class extends W {
|
|
|
3608
3611
|
supportsSearch() {
|
|
3609
3612
|
return !0;
|
|
3610
3613
|
}
|
|
3611
|
-
},
|
|
3614
|
+
}, Ar = class extends q {
|
|
3612
3615
|
constructor() {
|
|
3613
|
-
super(
|
|
3616
|
+
super(K(G.containment));
|
|
3614
3617
|
}
|
|
3615
3618
|
activate(e) {
|
|
3616
3619
|
e.splitWidget.setMainWidget(e.containmentWidget), e.splitWidget.setSidebarWidget(e.objectDetailsView), e.splitWidget.show(e.searchableViewInternal.element);
|
|
@@ -3618,17 +3621,17 @@ var $n = class extends W {
|
|
|
3618
3621
|
masterGrid(e) {
|
|
3619
3622
|
return e.containmentDataGrid;
|
|
3620
3623
|
}
|
|
3621
|
-
},
|
|
3624
|
+
}, jr = class extends q {
|
|
3622
3625
|
allocationSplitWidget;
|
|
3623
3626
|
constructor() {
|
|
3624
|
-
super(
|
|
3627
|
+
super(K(G.allocation)), this.allocationSplitWidget = new Ee(!1, !0, "heap-snapshot-allocation-split-view-state", 200, 200), this.allocationSplitWidget.setSidebarWidget(new b());
|
|
3625
3628
|
}
|
|
3626
3629
|
activate(e) {
|
|
3627
3630
|
e.allocationWidget && this.allocationSplitWidget.setMainWidget(e.allocationWidget), e.splitWidget.setMainWidget(e.constructorsWidget), e.splitWidget.setSidebarWidget(e.objectDetailsView);
|
|
3628
|
-
let t = new
|
|
3631
|
+
let t = new b(), n = document.createElement("div");
|
|
3629
3632
|
n.classList.add("heap-snapshot-view-resizer");
|
|
3630
3633
|
let r = n.createChild("div", "title").createChild("span");
|
|
3631
|
-
if (n.createChild("div", "verticalResizerIcon"), r.textContent =
|
|
3634
|
+
if (n.createChild("div", "verticalResizerIcon"), r.textContent = K(G.liveObjects), this.allocationSplitWidget.hideDefaultResizer(), this.allocationSplitWidget.installResizer(n), t.element.appendChild(n), e.splitWidget.show(t.element), this.allocationSplitWidget.setSidebarWidget(t), this.allocationSplitWidget.show(e.searchableViewInternal.element), e.constructorsDataGrid.clear(), e.allocationDataGrid) {
|
|
3632
3635
|
let t = e.allocationDataGrid.selectedNode;
|
|
3633
3636
|
t && e.constructorsDataGrid.setAllocationNodeId(t.allocationNodeId());
|
|
3634
3637
|
}
|
|
@@ -3639,9 +3642,9 @@ var $n = class extends W {
|
|
|
3639
3642
|
masterGrid(e) {
|
|
3640
3643
|
return e.allocationDataGrid;
|
|
3641
3644
|
}
|
|
3642
|
-
},
|
|
3645
|
+
}, Mr = class extends q {
|
|
3643
3646
|
constructor() {
|
|
3644
|
-
super(
|
|
3647
|
+
super(K(G.statistics));
|
|
3645
3648
|
}
|
|
3646
3649
|
activate(e) {
|
|
3647
3650
|
e.statisticsView.show(e.searchableViewInternal.element);
|
|
@@ -3649,10 +3652,10 @@ var $n = class extends W {
|
|
|
3649
3652
|
masterGrid(e) {
|
|
3650
3653
|
return null;
|
|
3651
3654
|
}
|
|
3652
|
-
},
|
|
3655
|
+
}, Nr = class e extends t(pn) {
|
|
3653
3656
|
customContentInternal;
|
|
3654
3657
|
constructor(t, n) {
|
|
3655
|
-
super(t || e.TypeId, n ||
|
|
3658
|
+
super(t || e.TypeId, n || K(G.heapSnapshot)), S.instance().observeModels(_, this), S.instance().addModelListener(_, C.RESET_PROFILES, this.resetProfiles, this), S.instance().addModelListener(_, C.ADD_HEAP_SNAPSHOT_CHUNK, this.addHeapSnapshotChunk, this), S.instance().addModelListener(_, C.REPORT_HEAP_SNAPSHOT_PROGRESS, this.reportHeapSnapshotProgress, this), this.customContentInternal = null;
|
|
3656
3659
|
}
|
|
3657
3660
|
modelAdded(e) {
|
|
3658
3661
|
e.enable();
|
|
@@ -3665,33 +3668,33 @@ var $n = class extends W {
|
|
|
3665
3668
|
return ".heapsnapshot";
|
|
3666
3669
|
}
|
|
3667
3670
|
get buttonTooltip() {
|
|
3668
|
-
return
|
|
3671
|
+
return K(G.takeHeapSnapshot);
|
|
3669
3672
|
}
|
|
3670
3673
|
isInstantProfile() {
|
|
3671
3674
|
return !0;
|
|
3672
3675
|
}
|
|
3673
3676
|
buttonClicked() {
|
|
3674
|
-
return this.takeHeapSnapshot(),
|
|
3677
|
+
return this.takeHeapSnapshot(), Re.actionTaken(rt.ProfilesHeapProfileTaken), !1;
|
|
3675
3678
|
}
|
|
3676
3679
|
get treeItemTitle() {
|
|
3677
|
-
return
|
|
3680
|
+
return K(G.heapSnapshots);
|
|
3678
3681
|
}
|
|
3679
3682
|
get description() {
|
|
3680
|
-
return
|
|
3683
|
+
return K(G.heapSnapshotProfilesShowMemory);
|
|
3681
3684
|
}
|
|
3682
3685
|
createProfileLoadedFromFile(e) {
|
|
3683
|
-
return new
|
|
3686
|
+
return new J(null, this, e);
|
|
3684
3687
|
}
|
|
3685
3688
|
async takeHeapSnapshot() {
|
|
3686
3689
|
if (this.profileBeingRecorded()) return;
|
|
3687
|
-
let e =
|
|
3690
|
+
let e = x.instance().flavor(_);
|
|
3688
3691
|
if (!e) return;
|
|
3689
|
-
let t = new
|
|
3690
|
-
this.setProfileBeingRecorded(t), this.addProfile(t), t.updateStatus(
|
|
3692
|
+
let t = new J(e, this);
|
|
3693
|
+
this.setProfileBeingRecorded(t), this.addProfile(t), t.updateStatus(K(G.snapshotting)), await e.takeHeapSnapshot({
|
|
3691
3694
|
reportProgress: !0,
|
|
3692
3695
|
captureNumericValue: !0,
|
|
3693
3696
|
exposeInternals: !0
|
|
3694
|
-
}), t = this.profileBeingRecorded(), t && (t.title =
|
|
3697
|
+
}), t = this.profileBeingRecorded(), t && (t.title = K(G.snapshotD, { PH1: t.uid }), t.finishLoad(), this.setProfileBeingRecorded(null), this.dispatchEventToListeners(N.PROFILE_COMPLETE, t));
|
|
3695
3698
|
}
|
|
3696
3699
|
addHeapSnapshotChunk(e) {
|
|
3697
3700
|
let t = this.profileBeingRecorded();
|
|
@@ -3701,7 +3704,7 @@ var $n = class extends W {
|
|
|
3701
3704
|
let t = this.profileBeingRecorded();
|
|
3702
3705
|
if (!t) return;
|
|
3703
3706
|
let { done: n, total: r, finished: i } = e.data;
|
|
3704
|
-
t.updateStatus(
|
|
3707
|
+
t.updateStatus(K(G.percentagePlaceholder, { PH1: (n / r * 100).toFixed(0) }), !0), i && t.prepareToLoad();
|
|
3705
3708
|
}
|
|
3706
3709
|
resetProfiles(e) {
|
|
3707
3710
|
let t = e.data;
|
|
@@ -3712,21 +3715,21 @@ var $n = class extends W {
|
|
|
3712
3715
|
}
|
|
3713
3716
|
static TypeId = "HEAP";
|
|
3714
3717
|
static SnapshotReceived = "SnapshotReceived";
|
|
3715
|
-
},
|
|
3718
|
+
}, Pr = /* @__PURE__ */ function(e) {
|
|
3716
3719
|
return e.SNAPSHOT_RECEIVED = "SnapshotReceived", e;
|
|
3717
|
-
}({}),
|
|
3720
|
+
}({}), Fr = class e extends t(Nr) {
|
|
3718
3721
|
recordAllocationStacksSettingInternal;
|
|
3719
3722
|
customContentInternal;
|
|
3720
3723
|
recording;
|
|
3721
3724
|
profileSamples;
|
|
3722
3725
|
constructor() {
|
|
3723
|
-
super(e.TypeId,
|
|
3726
|
+
super(e.TypeId, K(G.allocationInstrumentationOn)), this.recordAllocationStacksSettingInternal = m.instance().createSetting("record-allocation-stacks", !1), this.customContentInternal = null, this.recording = !1;
|
|
3724
3727
|
}
|
|
3725
3728
|
modelAdded(e) {
|
|
3726
|
-
super.modelAdded(e), e.addEventListener(
|
|
3729
|
+
super.modelAdded(e), e.addEventListener(C.HEAP_STATS_UPDATED, this.heapStatsUpdate, this), e.addEventListener(C.LAST_SEEN_OBJECT_ID, this.lastSeenObjectId, this);
|
|
3727
3730
|
}
|
|
3728
3731
|
modelRemoved(e) {
|
|
3729
|
-
super.modelRemoved(e), e.removeEventListener(
|
|
3732
|
+
super.modelRemoved(e), e.removeEventListener(C.HEAP_STATS_UPDATED, this.heapStatsUpdate, this), e.removeEventListener(C.LAST_SEEN_OBJECT_ID, this.lastSeenObjectId, this);
|
|
3730
3733
|
}
|
|
3731
3734
|
heapStatsUpdate(e) {
|
|
3732
3735
|
if (!this.profileSamples) return;
|
|
@@ -3749,7 +3752,7 @@ var $n = class extends W {
|
|
|
3749
3752
|
return !0;
|
|
3750
3753
|
}
|
|
3751
3754
|
get buttonTooltip() {
|
|
3752
|
-
return this.recording ?
|
|
3755
|
+
return this.recording ? K(G.stopRecordingHeapProfile) : K(G.startRecordingHeapProfile);
|
|
3753
3756
|
}
|
|
3754
3757
|
isInstantProfile() {
|
|
3755
3758
|
return !1;
|
|
@@ -3763,7 +3766,7 @@ var $n = class extends W {
|
|
|
3763
3766
|
e && e.startTrackingHeapObjects(this.recordAllocationStacksSettingInternal.get());
|
|
3764
3767
|
}
|
|
3765
3768
|
customContent() {
|
|
3766
|
-
let e =
|
|
3769
|
+
let e = Nt(K(G.recordAllocationStacksExtra), this.recordAllocationStacksSettingInternal);
|
|
3767
3770
|
return this.customContentInternal = e, e;
|
|
3768
3771
|
}
|
|
3769
3772
|
setCustomContentEnabled(e) {
|
|
@@ -3773,14 +3776,14 @@ var $n = class extends W {
|
|
|
3773
3776
|
return this.recordAllocationStacksSettingInternal;
|
|
3774
3777
|
}
|
|
3775
3778
|
addNewProfile() {
|
|
3776
|
-
let e =
|
|
3777
|
-
return e ? (this.setProfileBeingRecorded(new
|
|
3779
|
+
let e = x.instance().flavor(_);
|
|
3780
|
+
return e ? (this.setProfileBeingRecorded(new J(e, this, void 0)), this.profileSamples = new Rn(), this.recording = !0, this.addProfile(this.profileBeingRecorded()), this.profileBeingRecorded().updateStatus(K(G.recording)), this.dispatchEventToListeners("TrackingStarted"), e) : null;
|
|
3778
3781
|
}
|
|
3779
3782
|
async stopRecordingProfile() {
|
|
3780
3783
|
let e = this.profileBeingRecorded();
|
|
3781
|
-
e.updateStatus(
|
|
3784
|
+
e.updateStatus(K(G.snapshotting));
|
|
3782
3785
|
let t = e.heapProfilerModel().stopTrackingHeapObjects(!0);
|
|
3783
|
-
this.recording = !1, this.dispatchEventToListeners("TrackingStopped"), await t, e = this.profileBeingRecorded(), e && (e.finishLoad(), this.profileSamples = null, this.setProfileBeingRecorded(null), this.dispatchEventToListeners(
|
|
3786
|
+
this.recording = !1, this.dispatchEventToListeners("TrackingStopped"), await t, e = this.profileBeingRecorded(), e && (e.finishLoad(), this.profileSamples = null, this.setProfileBeingRecorded(null), this.dispatchEventToListeners(N.PROFILE_COMPLETE, e));
|
|
3784
3787
|
}
|
|
3785
3788
|
toggleRecording() {
|
|
3786
3789
|
return this.recording ? this.stopRecordingProfile() : this.startRecordingProfile(), this.recording;
|
|
@@ -3789,10 +3792,10 @@ var $n = class extends W {
|
|
|
3789
3792
|
return ".heaptimeline";
|
|
3790
3793
|
}
|
|
3791
3794
|
get treeItemTitle() {
|
|
3792
|
-
return
|
|
3795
|
+
return K(G.allocationTimelines);
|
|
3793
3796
|
}
|
|
3794
3797
|
get description() {
|
|
3795
|
-
return
|
|
3798
|
+
return K(G.AllocationTimelinesShowInstrumented);
|
|
3796
3799
|
}
|
|
3797
3800
|
resetProfiles(e) {
|
|
3798
3801
|
let t = this.recording;
|
|
@@ -3805,9 +3808,9 @@ var $n = class extends W {
|
|
|
3805
3808
|
static HeapStatsUpdate = "HeapStatsUpdate";
|
|
3806
3809
|
static TrackingStarted = "TrackingStarted";
|
|
3807
3810
|
static TrackingStopped = "TrackingStopped";
|
|
3808
|
-
},
|
|
3811
|
+
}, Ir = /* @__PURE__ */ function(e) {
|
|
3809
3812
|
return e.HEAP_STATS_UPDATE = "HeapStatsUpdate", e.TRACKING_STARTED = "TrackingStarted", e.TRACKING_STOPPED = "TrackingStopped", e;
|
|
3810
|
-
}({}),
|
|
3813
|
+
}({}), J = class extends j {
|
|
3811
3814
|
heapProfilerModelInternal;
|
|
3812
3815
|
maxJSObjectId = -1;
|
|
3813
3816
|
workerProxy = null;
|
|
@@ -3822,7 +3825,7 @@ var $n = class extends W {
|
|
|
3822
3825
|
wasDisposed;
|
|
3823
3826
|
fileName;
|
|
3824
3827
|
constructor(e, t, n) {
|
|
3825
|
-
super(t, n ||
|
|
3828
|
+
super(t, n || K(G.snapshotD, { PH1: t.nextProfileUid() })), this.heapProfilerModelInternal = e;
|
|
3826
3829
|
let { promise: r, resolve: i } = Promise.withResolvers();
|
|
3827
3830
|
this.loadPromise = r, this.fulfillLoad = i;
|
|
3828
3831
|
}
|
|
@@ -3833,7 +3836,7 @@ var $n = class extends W {
|
|
|
3833
3836
|
return this.snapshotProxy ? await this.snapshotProxy.getLocation(e) : null;
|
|
3834
3837
|
}
|
|
3835
3838
|
prepareToLoad() {
|
|
3836
|
-
console.assert(!this.receiver, "Already loading"), this.setupWorker(), this.updateStatus(
|
|
3839
|
+
console.assert(!this.receiver, "Already loading"), this.setupWorker(), this.updateStatus(K(G.loading), !0);
|
|
3837
3840
|
}
|
|
3838
3841
|
finishLoad() {
|
|
3839
3842
|
!this.wasDisposed && this.receiver && this.receiver.close(), this.bufferedWriter && this.didWriteToTempFile(this.bufferedWriter);
|
|
@@ -3846,27 +3849,27 @@ var $n = class extends W {
|
|
|
3846
3849
|
this.tempFile = e, e || (this.failedToCreateTempFile = !0), this.onTempFileReady &&= (this.onTempFileReady(), null);
|
|
3847
3850
|
}
|
|
3848
3851
|
setupWorker() {
|
|
3849
|
-
console.assert(!this.workerProxy, "HeapSnapshotWorkerProxy already exists"), this.workerProxy = new
|
|
3852
|
+
console.assert(!this.workerProxy, "HeapSnapshotWorkerProxy already exists"), this.workerProxy = new Kt(this.handleWorkerEvent.bind(this)), this.workerProxy.addEventListener(Kt.Events.WAIT, (e) => {
|
|
3850
3853
|
this.updateStatus(null, e.data);
|
|
3851
3854
|
}, this), this.receiver = this.workerProxy.createLoader(this.uid, this.snapshotReceived.bind(this));
|
|
3852
3855
|
}
|
|
3853
3856
|
handleWorkerEvent(e, t) {
|
|
3854
|
-
if (
|
|
3855
|
-
|
|
3857
|
+
if (Gt.BrokenSnapshot === e) {
|
|
3858
|
+
g.instance().error(t);
|
|
3856
3859
|
return;
|
|
3857
3860
|
}
|
|
3858
|
-
if (
|
|
3859
|
-
let n =
|
|
3860
|
-
this.updateStatus(
|
|
3861
|
+
if (Gt.Update !== e) return;
|
|
3862
|
+
let n = s(t);
|
|
3863
|
+
this.updateStatus(Er(n.string, n.values));
|
|
3861
3864
|
}
|
|
3862
3865
|
dispose() {
|
|
3863
3866
|
this.workerProxy && this.workerProxy.dispose(), this.removeTempFile(), this.wasDisposed = !0;
|
|
3864
3867
|
}
|
|
3865
3868
|
didCompleteSnapshotTransfer() {
|
|
3866
|
-
this.snapshotProxy && this.updateStatus(
|
|
3869
|
+
this.snapshotProxy && this.updateStatus(a(this.snapshotProxy.totalSize), !1);
|
|
3867
3870
|
}
|
|
3868
3871
|
transferChunk(e) {
|
|
3869
|
-
this.bufferedWriter ||= new
|
|
3872
|
+
this.bufferedWriter ||= new wt(), this.bufferedWriter.write([e]), ++this.totalNumberOfChunks, this.receiver && this.receiver.write(e);
|
|
3870
3873
|
}
|
|
3871
3874
|
snapshotReceived(e) {
|
|
3872
3875
|
this.wasDisposed || (this.receiver = null, this.snapshotProxy = e, this.maxJSObjectId = e.maxJSObjectId(), this.didCompleteSnapshotTransfer(), this.workerProxy && this.workerProxy.startCheckingForLongRunningCalls(), this.notifySnapshotReceived());
|
|
@@ -3879,17 +3882,17 @@ var $n = class extends W {
|
|
|
3879
3882
|
}
|
|
3880
3883
|
async saveToFile() {
|
|
3881
3884
|
await this.loadPromise;
|
|
3882
|
-
let e = new
|
|
3883
|
-
this.fileName = this.fileName || "Heap-" +
|
|
3885
|
+
let e = new St();
|
|
3886
|
+
this.fileName = this.fileName || "Heap-" + ge(/* @__PURE__ */ new Date()) + this.profileType().fileExtension();
|
|
3884
3887
|
let t = async (n) => {
|
|
3885
3888
|
if (n) {
|
|
3886
3889
|
if (this.failedToCreateTempFile) {
|
|
3887
|
-
|
|
3890
|
+
g.instance().error("Failed to open temp file with heap snapshot"), e.close();
|
|
3888
3891
|
return;
|
|
3889
3892
|
}
|
|
3890
3893
|
if (this.tempFile) {
|
|
3891
3894
|
let t = await this.tempFile.copyToOutputStream(e, this.onChunkTransferred.bind(this));
|
|
3892
|
-
t &&
|
|
3895
|
+
t && g.instance().error("Failed to read heap snapshot from temp file: " + t.message), this.didCompleteSnapshotTransfer();
|
|
3893
3896
|
return;
|
|
3894
3897
|
}
|
|
3895
3898
|
this.onTempFileReady = () => {
|
|
@@ -3904,30 +3907,30 @@ var $n = class extends W {
|
|
|
3904
3907
|
}
|
|
3905
3908
|
updateSaveProgress(e, t) {
|
|
3906
3909
|
let n = ((t && e / t) * 100).toFixed(0);
|
|
3907
|
-
this.updateStatus(
|
|
3910
|
+
this.updateStatus(K(G.savingD, { PH1: n }));
|
|
3908
3911
|
}
|
|
3909
3912
|
async loadFromFile(e) {
|
|
3910
|
-
this.updateStatus(
|
|
3911
|
-
let t = new
|
|
3913
|
+
this.updateStatus(K(G.loading), !0), this.setupWorker();
|
|
3914
|
+
let t = new xt(e, 1e7), n = await t.read(this.receiver), r = t.error();
|
|
3912
3915
|
return !n && r && this.updateStatus(r.message), n ? null : r;
|
|
3913
3916
|
}
|
|
3914
3917
|
profileType() {
|
|
3915
3918
|
return super.profileType();
|
|
3916
3919
|
}
|
|
3917
|
-
}, Lr = class e extends
|
|
3920
|
+
}, Lr = class e extends b {
|
|
3918
3921
|
pieChart;
|
|
3919
3922
|
constructor() {
|
|
3920
|
-
super(), this.element.classList.add("heap-snapshot-statistics-view"), this.element.setAttribute("jslog", `${
|
|
3923
|
+
super(), this.element.classList.add("heap-snapshot-statistics-view"), this.element.setAttribute("jslog", `${it("profiler.heap-snapshot-statistics-view").track({ resize: !0 })}`), this.pieChart = new zt(), this.setTotalAndRecords(0, []), this.pieChart.classList.add("heap-snapshot-stats-pie-chart"), this.element.appendChild(this.pieChart);
|
|
3921
3924
|
}
|
|
3922
3925
|
static valueFormatter(e) {
|
|
3923
|
-
return new Intl.NumberFormat(
|
|
3926
|
+
return new Intl.NumberFormat(d.instance().locale, {
|
|
3924
3927
|
style: "unit",
|
|
3925
3928
|
unit: "kilobyte"
|
|
3926
3929
|
}).format(Math.round(e / 1e3));
|
|
3927
3930
|
}
|
|
3928
3931
|
setTotalAndRecords(t, n) {
|
|
3929
3932
|
this.pieChart.data = {
|
|
3930
|
-
chartName:
|
|
3933
|
+
chartName: K(G.heapMemoryUsage),
|
|
3931
3934
|
size: 150,
|
|
3932
3935
|
formatter: e.valueFormatter,
|
|
3933
3936
|
showLegend: !0,
|
|
@@ -3935,15 +3938,15 @@ var $n = class extends W {
|
|
|
3935
3938
|
slices: n
|
|
3936
3939
|
};
|
|
3937
3940
|
}
|
|
3938
|
-
}, Rr = class extends
|
|
3941
|
+
}, Rr = class extends $e {
|
|
3939
3942
|
heapProfilerModel;
|
|
3940
3943
|
linkifier;
|
|
3941
3944
|
frameElements;
|
|
3942
3945
|
constructor(e) {
|
|
3943
|
-
super(), this.heapProfilerModel = e, this.linkifier = new
|
|
3946
|
+
super(), this.heapProfilerModel = e, this.linkifier = new T(), this.frameElements = [];
|
|
3944
3947
|
}
|
|
3945
3948
|
onContextMenu(e, t) {
|
|
3946
|
-
let n = new
|
|
3949
|
+
let n = new Pe(t);
|
|
3947
3950
|
n.appendApplicableItems(e), n.show(), t.consume(!0);
|
|
3948
3951
|
}
|
|
3949
3952
|
onStackViewKeydown(e) {
|
|
@@ -3952,9 +3955,9 @@ var $n = class extends W {
|
|
|
3952
3955
|
if (e.key === "Enter") {
|
|
3953
3956
|
let n = zr.get(t);
|
|
3954
3957
|
if (!n) return;
|
|
3955
|
-
let r =
|
|
3958
|
+
let r = T.linkInfo(n);
|
|
3956
3959
|
if (!r) return;
|
|
3957
|
-
|
|
3960
|
+
T.invokeFirstAction(r) && e.consume(!0);
|
|
3958
3961
|
return;
|
|
3959
3962
|
}
|
|
3960
3963
|
let n, r = e;
|
|
@@ -3972,7 +3975,8 @@ var $n = class extends W {
|
|
|
3972
3975
|
this.clear();
|
|
3973
3976
|
let n = await e.allocationStack(t);
|
|
3974
3977
|
if (!n) {
|
|
3975
|
-
|
|
3978
|
+
let e = this.element.createChild("div", "no-heap-allocation-stack");
|
|
3979
|
+
mt(e, K(G.stackWasNotRecordedForThisObject));
|
|
3976
3980
|
return;
|
|
3977
3981
|
}
|
|
3978
3982
|
let r = this.element.createChild("div", "heap-allocation-stack");
|
|
@@ -3981,7 +3985,7 @@ var $n = class extends W {
|
|
|
3981
3985
|
let t = r.createChild("div", "stack-frame");
|
|
3982
3986
|
this.frameElements.push(t), t.tabIndex = -1;
|
|
3983
3987
|
let n = t.createChild("div");
|
|
3984
|
-
if (n.textContent =
|
|
3988
|
+
if (n.textContent = at(e.functionName), !e.scriptId) continue;
|
|
3985
3989
|
let i = this.heapProfilerModel ? this.heapProfilerModel.target() : null, a = {
|
|
3986
3990
|
columnNumber: e.column - 1,
|
|
3987
3991
|
inlineFrameIndex: 0
|
|
@@ -4007,7 +4011,7 @@ var $n = class extends W {
|
|
|
4007
4011
|
heapSizeInUseByLiveJsObjects: "Heap size in use by live JS objects.",
|
|
4008
4012
|
heapSizeChangeTrendOverTheLastS: "Heap size change trend over the last {PH1} minutes.",
|
|
4009
4013
|
empty: "(empty)"
|
|
4010
|
-
}, Vr =
|
|
4014
|
+
}, Vr = o("panels/profiler/IsolateSelector.ts", Y), X = r.bind(void 0, Vr), Hr = class e extends b {
|
|
4011
4015
|
items;
|
|
4012
4016
|
list;
|
|
4013
4017
|
itemByIsolate;
|
|
@@ -4015,19 +4019,19 @@ var $n = class extends W {
|
|
|
4015
4019
|
totalValueDiv;
|
|
4016
4020
|
totalTrendDiv;
|
|
4017
4021
|
constructor() {
|
|
4018
|
-
super(), this.items = new
|
|
4019
|
-
let e = Math.round(
|
|
4020
|
-
|
|
4022
|
+
super(), this.items = new gt(), this.list = new Ve(this.items, this, Me.NonViewport), this.list.element.classList.add("javascript-vm-instances-list"), ue(this.list.element, X(Y.javascriptVmInstances)), this.contentElement.appendChild(this.list.element), this.itemByIsolate = /* @__PURE__ */ new Map(), this.totalElement = document.createElement("div"), this.totalElement.classList.add("profile-memory-usage-item"), this.totalElement.classList.add("hbox"), this.totalValueDiv = this.totalElement.createChild("div", "profile-memory-usage-item-size"), this.totalTrendDiv = this.totalElement.createChild("div", "profile-memory-usage-item-trend"), this.totalElement.createChild("div").textContent = X(Y.totalJsHeapSize);
|
|
4023
|
+
let e = Math.round(se / 6e4);
|
|
4024
|
+
v.install(this.totalTrendDiv, X(Y.totalPageJsHeapSizeChangeTrend, { PH1: e })), v.install(this.totalValueDiv, X(Y.totalPageJsHeapSizeAcrossAllVm)), Se.instance().observeIsolates(this), S.instance().addEventListener(qe.NAME_CHANGED, this.targetChanged, this), S.instance().addEventListener(qe.INSPECTED_URL_CHANGED, this.targetChanged, this);
|
|
4021
4025
|
}
|
|
4022
4026
|
wasShown() {
|
|
4023
|
-
super.wasShown(),
|
|
4027
|
+
super.wasShown(), Se.instance().addEventListener(ht.MEMORY_CHANGED, this.heapStatsChanged, this);
|
|
4024
4028
|
}
|
|
4025
4029
|
willHide() {
|
|
4026
|
-
super.willHide(),
|
|
4030
|
+
super.willHide(), Se.instance().removeEventListener(ht.MEMORY_CHANGED, this.heapStatsChanged, this);
|
|
4027
4031
|
}
|
|
4028
4032
|
isolateAdded(e) {
|
|
4029
4033
|
this.list.element.tabIndex = 0;
|
|
4030
|
-
let t = new Ur(e), n = t.model().target() ===
|
|
4034
|
+
let t = new Ur(e), n = t.model().target() === S.instance().primaryPageTarget() ? 0 : this.items.length;
|
|
4031
4035
|
this.items.insert(n, t), this.itemByIsolate.set(e, t), n === 0 && this.list.selectItem(t), this.update();
|
|
4032
4036
|
}
|
|
4033
4037
|
isolateChanged(e) {
|
|
@@ -4039,9 +4043,9 @@ var $n = class extends W {
|
|
|
4039
4043
|
t && this.items.remove(this.items.indexOf(t)), this.itemByIsolate.delete(e), this.items.length === 0 && (this.list.element.tabIndex = -1), this.update();
|
|
4040
4044
|
}
|
|
4041
4045
|
targetChanged(e) {
|
|
4042
|
-
let t = e.data.model(
|
|
4046
|
+
let t = e.data.model(oe);
|
|
4043
4047
|
if (!t) return;
|
|
4044
|
-
let n =
|
|
4048
|
+
let n = Se.instance().isolateByModel(t), r = n && this.itemByIsolate.get(n);
|
|
4045
4049
|
r && r.updateTitle();
|
|
4046
4050
|
}
|
|
4047
4051
|
heapStatsChanged(e) {
|
|
@@ -4050,14 +4054,14 @@ var $n = class extends W {
|
|
|
4050
4054
|
}
|
|
4051
4055
|
updateTotal() {
|
|
4052
4056
|
let t = 0, n = 0;
|
|
4053
|
-
for (let e of
|
|
4054
|
-
this.totalValueDiv.textContent =
|
|
4057
|
+
for (let e of Se.instance().isolates()) t += e.usedHeapSize(), n += e.usedHeapSizeGrowRate();
|
|
4058
|
+
this.totalValueDiv.textContent = a(t), e.formatTrendElement(n, this.totalTrendDiv);
|
|
4055
4059
|
}
|
|
4056
4060
|
static formatTrendElement(e, t) {
|
|
4057
4061
|
let n = e * 1e3;
|
|
4058
4062
|
if (Math.abs(n) < 1e3) return;
|
|
4059
|
-
let r =
|
|
4060
|
-
n > 0 ? (i = "⬆" + X(Y.changeRate, { PH1: r }), t.classList.toggle("increasing", !0),
|
|
4063
|
+
let r = a(Math.abs(n)), i, o;
|
|
4064
|
+
n > 0 ? (i = "⬆" + X(Y.changeRate, { PH1: r }), t.classList.toggle("increasing", !0), o = X(Y.increasingBySPerSecond, { PH1: r })) : (i = "⬇" + X(Y.changeRate, { PH1: r }), t.classList.toggle("increasing", !1), o = X(Y.decreasingBySPerSecond, { PH1: r })), t.textContent = i, ue(t, o);
|
|
4061
4065
|
}
|
|
4062
4066
|
totalMemoryElement() {
|
|
4063
4067
|
return this.totalElement;
|
|
@@ -4077,7 +4081,7 @@ var $n = class extends W {
|
|
|
4077
4081
|
selectedItemChanged(e, t, n, r) {
|
|
4078
4082
|
n && n.classList.remove("selected"), r && r.classList.add("selected");
|
|
4079
4083
|
let i = t?.model();
|
|
4080
|
-
|
|
4084
|
+
x.instance().setFlavor(_, i?.heapProfilerModel() ?? null), x.instance().setFlavor(Qe, i?.target().model(Qe) ?? null);
|
|
4081
4085
|
}
|
|
4082
4086
|
update() {
|
|
4083
4087
|
this.updateTotal(), this.list.invalidateRange(0, this.items.length);
|
|
@@ -4090,19 +4094,19 @@ var $n = class extends W {
|
|
|
4090
4094
|
nameDiv;
|
|
4091
4095
|
constructor(e) {
|
|
4092
4096
|
this.isolate = e;
|
|
4093
|
-
let t = Math.round(
|
|
4094
|
-
this.element = document.createElement("div"), this.element.classList.add("profile-memory-usage-item"), this.element.classList.add("hbox"),
|
|
4097
|
+
let t = Math.round(se / 6e4);
|
|
4098
|
+
this.element = document.createElement("div"), this.element.classList.add("profile-memory-usage-item"), this.element.classList.add("hbox"), Fe(this.element), this.heapDiv = this.element.createChild("div", "profile-memory-usage-item-size"), v.install(this.heapDiv, X(Y.heapSizeInUseByLiveJsObjects)), this.trendDiv = this.element.createChild("div", "profile-memory-usage-item-trend"), v.install(this.trendDiv, X(Y.heapSizeChangeTrendOverTheLastS, { PH1: t })), this.nameDiv = this.element.createChild("div", "profile-memory-usage-item-name"), this.updateTitle();
|
|
4095
4099
|
}
|
|
4096
4100
|
model() {
|
|
4097
4101
|
return this.isolate.runtimeModel();
|
|
4098
4102
|
}
|
|
4099
4103
|
updateStats() {
|
|
4100
|
-
this.heapDiv.textContent =
|
|
4104
|
+
this.heapDiv.textContent = a(this.isolate.usedHeapSize()), Hr.formatTrendElement(this.isolate.usedHeapSizeGrowRate(), this.trendDiv);
|
|
4101
4105
|
}
|
|
4102
4106
|
updateTitle() {
|
|
4103
|
-
let e = /* @__PURE__ */ new Map(), t =
|
|
4107
|
+
let e = /* @__PURE__ */ new Map(), t = S.instance();
|
|
4104
4108
|
for (let n of this.isolate.models()) {
|
|
4105
|
-
let r = n.target(), i = t.primaryPageTarget() === r, a = r.name(), o = new
|
|
4109
|
+
let r = n.target(), i = t.primaryPageTarget() === r, a = r.name(), o = new ne(r.inspectedURL()), s = o.isValid ? o.domain() : "", c = r.decorateLabel(s && !i ? `${s}: ${a}` : a || s || X(Y.empty));
|
|
4106
4110
|
e.set(c, (e.get(c) || 0) + 1);
|
|
4107
4111
|
}
|
|
4108
4112
|
this.nameDiv.removeChildren();
|
|
@@ -4111,7 +4115,7 @@ var $n = class extends W {
|
|
|
4111
4115
|
let e = r > 1 ? `${t} (${r})` : t;
|
|
4112
4116
|
n.push(e);
|
|
4113
4117
|
let i = this.nameDiv.createChild("div");
|
|
4114
|
-
i.textContent = e,
|
|
4118
|
+
i.textContent = e, v.install(i, String(e));
|
|
4115
4119
|
}
|
|
4116
4120
|
}
|
|
4117
4121
|
}, Wr = "/*\n * Copyright 2018 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n.profile-launcher-view {\n overflow: auto;\n}\n\n.profile-launcher-view-content {\n margin: 10px 16px;\n flex: auto 1 0;\n\n & h1 {\n font: var(--sys-typescale-headline4);\n margin: 6px 0 10px;\n }\n\n & label {\n font: var(--sys-typescale-body3-regular);\n }\n\n & p {\n color: var(--sys-color-token-subtle);\n margin-top: var(--sys-size-1);\n margin-left: var(--sys-size-10);\n\n & > devtools-checkbox {\n display: flex;\n }\n }\n\n .profile-launcher-view-content button.text-button.running,\n .profile-launcher-view-content button.text-button.running:focus {\n color: var(--sys-color-error);\n }\n\n & > div {\n flex: auto 0 0;\n }\n\n & > .profile-isolate-selector-block {\n flex: auto 1 0;\n overflow: hidden;\n }\n}\n\n.profile-launcher-target-list {\n margin-bottom: 6px;\n border: 1px solid var(--sys-color-divider);\n flex: 150px 1 0;\n}\n\n.profile-launcher-target-list-container {\n overflow: auto;\n}\n\n.profile-memory-usage-item {\n min-width: 100%;\n width: max-content;\n padding: 4px;\n line-height: 16px;\n}\n\n.profile-isolate-selector-block > .profile-memory-usage-item {\n margin-left: 1px;\n margin-bottom: 4px;\n font-weight: bolder;\n}\n\n.profile-memory-usage-item.selected {\n background-color: var(--sys-color-neutral-container);\n}\n\n.profile-memory-usage-item:focus {\n background-color: var(--sys-color-tonal-container);\n}\n\n.profile-launcher-target-list .profile-memory-usage-item:hover:not(.selected) {\n background-color: var(--sys-color-state-hover-on-subtle);\n}\n\n.javascript-vm-instances-list {\n width: max-content;\n min-width: 100%;\n}\n\n.javascript-vm-instances-list:focus .profile-memory-usage-item.selected {\n background-color: var(--sys-color-tonal-container);\n}\n\n.profile-memory-usage-item > div {\n flex-shrink: 0;\n margin-right: 12px;\n}\n\n.profile-memory-usage-item-size {\n width: 60px;\n text-align: right;\n}\n\n.profile-memory-usage-item-trend {\n min-width: 5em;\n color: var(--sys-color-tertiary);\n}\n\n.profile-memory-usage-item-trend.increasing {\n color: var(--sys-color-error);\n}\n\n.profile-launcher-buttons {\n flex-wrap: wrap;\n column-gap: 8px;\n}\n\n@media (forced-colors: active) {\n .profile-memory-usage-item {\n forced-color-adjust: none;\n border-left-color: transparent;\n }\n\n .profile-memory-usage-item-trend,\n .profile-memory-usage-item-trend.increasing,\n .profile-launcher-view-content button.running {\n color: ButtonText;\n }\n\n .javascript-vm-instances-list .profile-memory-usage-item:hover:not(.selected) {\n background-color: Highlight;\n color: HighlightText;\n }\n\n .javascript-vm-instances-list .profile-memory-usage-item.selected .profile-memory-usage-item-trend,\n .javascript-vm-instances-list .profile-memory-usage-item.selected .profile-memory-usage-item-trend.increasing {\n color: ButtonFace;\n }\n\n .javascript-vm-instances-list .profile-memory-usage-item:hover:not(.selected) .profile-memory-usage-item-trend,\n .javascript-vm-instances-list .profile-memory-usage-item:hover:not(.selected) .profile-memory-usage-item-trend.increasing {\n background-color: Highlight;\n color: HighlightText;\n }\n\n .javascript-vm-instances-list .profile-memory-usage-item.selected {\n background-color: ButtonText;\n border-color: Highlight;\n color: ButtonFace;\n }\n\n .javascript-vm-instances-list:focus .profile-memory-usage-item.selected,\n .javascript-vm-instances-list:focus-visible .profile-memory-usage-item.selected {\n background-color: Highlight;\n border-color: ButtonText;\n color: HighlightText;\n }\n}\n", Gr = /* @__PURE__ */ e({
|
|
@@ -4124,7 +4128,7 @@ var $n = class extends W {
|
|
|
4124
4128
|
stop: "Stop",
|
|
4125
4129
|
start: "Start",
|
|
4126
4130
|
selectProfilingType: "Select profiling type"
|
|
4127
|
-
}, Kr =
|
|
4131
|
+
}, Kr = o("panels/profiler/ProfileLauncherView.ts", Z), qr = r.bind(void 0, Kr), Jr = class extends t(b) {
|
|
4128
4132
|
panel;
|
|
4129
4133
|
#e;
|
|
4130
4134
|
selectedProfileTypeSetting;
|
|
@@ -4140,26 +4144,26 @@ var $n = class extends W {
|
|
|
4140
4144
|
constructor(e) {
|
|
4141
4145
|
super(), this.registerRequiredCSS(Wr), this.panel = e, this.element.classList.add("profile-launcher-view"), this.#e = this.element.createChild("div", "profile-launcher-view-content vbox");
|
|
4142
4146
|
let t = this.#e.createChild("div", "vbox");
|
|
4143
|
-
this.selectedProfileTypeSetting =
|
|
4147
|
+
this.selectedProfileTypeSetting = m.instance().createSetting("selected-profile-type", "CPU"), this.profileTypeHeaderElement = t.createChild("h1"), this.profileTypeSelectorForm = t.createChild("form"), dt(this.profileTypeSelectorForm);
|
|
4144
4148
|
let n = this.#e.createChild("div", "vbox profile-isolate-selector-block");
|
|
4145
4149
|
n.createChild("h1").textContent = qr(Z.selectJavascriptVmInstance);
|
|
4146
4150
|
let r = new Hr(), i = n.createChild("div", "vbox profile-launcher-target-list");
|
|
4147
4151
|
i.classList.add("profile-launcher-target-list-container"), r.show(i), n.appendChild(r.totalMemoryElement());
|
|
4148
4152
|
let a = this.#e.createChild("div", "hbox profile-launcher-buttons");
|
|
4149
|
-
this.controlButton =
|
|
4153
|
+
this.controlButton = Ne("", this.controlButtonClicked.bind(this), {
|
|
4150
4154
|
jslogContext: "profiler.heap-toggle-recording",
|
|
4151
|
-
variant:
|
|
4152
|
-
}), this.loadButton = new
|
|
4155
|
+
variant: re.PRIMARY
|
|
4156
|
+
}), this.loadButton = new we(), this.loadButton.data = {
|
|
4153
4157
|
iconName: "import",
|
|
4154
|
-
variant:
|
|
4158
|
+
variant: re.OUTLINED,
|
|
4155
4159
|
jslogContext: "profiler.load-from-file"
|
|
4156
4160
|
}, this.loadButton.textContent = qr(Z.load), this.loadButton.addEventListener("click", this.loadButtonClicked.bind(this)), a.appendChild(this.loadButton), a.appendChild(this.controlButton), this.recordButtonEnabled = !0, this.typeIdToOptionElementAndProfileType = /* @__PURE__ */ new Map();
|
|
4157
4161
|
}
|
|
4158
4162
|
loadButtonClicked() {
|
|
4159
|
-
|
|
4163
|
+
Ze.instance().getAction("profiler.load-from-file").execute();
|
|
4160
4164
|
}
|
|
4161
4165
|
updateControls() {
|
|
4162
|
-
this.isEnabled && this.recordButtonEnabled ? this.controlButton.removeAttribute("disabled") : this.controlButton.setAttribute("disabled", ""),
|
|
4166
|
+
this.isEnabled && this.recordButtonEnabled ? this.controlButton.removeAttribute("disabled") : this.controlButton.setAttribute("disabled", ""), v.install(this.controlButton, this.recordButtonEnabled ? "" : st()), this.isInstantProfile ? (this.controlButton.classList.remove("running"), this.controlButton.textContent = qr(Z.takeSnapshot)) : this.isProfiling ? (this.controlButton.classList.add("running"), this.controlButton.textContent = qr(Z.stop)) : (this.controlButton.classList.remove("running"), this.controlButton.textContent = qr(Z.start));
|
|
4163
4167
|
for (let { optionElement: e } of this.typeIdToOptionElementAndProfileType.values()) e.disabled = !!this.isProfiling;
|
|
4164
4168
|
}
|
|
4165
4169
|
profileStarted() {
|
|
@@ -4178,11 +4182,11 @@ var $n = class extends W {
|
|
|
4178
4182
|
profileType: e
|
|
4179
4183
|
}), t.addEventListener("change", this.profileTypeChanged.bind(this, e), !1);
|
|
4180
4184
|
let r = this.profileTypeSelectorForm.createChild("p");
|
|
4181
|
-
r.textContent = e.description,
|
|
4185
|
+
r.textContent = e.description, Ce(t, e.description);
|
|
4182
4186
|
let i = e.customContent();
|
|
4183
4187
|
i && (i.setAttribute("role", "group"), i.setAttribute("aria-labelledby", `${t.id}`), this.profileTypeSelectorForm.createChild("p").appendChild(i), e.setCustomContentEnabled(!1));
|
|
4184
4188
|
let a = this.typeIdToOptionElementAndProfileType.size > 1 ? qr(Z.selectProfilingType) : e.name;
|
|
4185
|
-
this.profileTypeHeaderElement.textContent = a,
|
|
4189
|
+
this.profileTypeHeaderElement.textContent = a, ue(this.profileTypeSelectorForm, a);
|
|
4186
4190
|
}
|
|
4187
4191
|
restoreSelectedProfileType() {
|
|
4188
4192
|
let e = this.selectedProfileTypeSetting.get();
|
|
@@ -4205,7 +4209,7 @@ var $n = class extends W {
|
|
|
4205
4209
|
}
|
|
4206
4210
|
}, Yr = /* @__PURE__ */ function(e) {
|
|
4207
4211
|
return e.PROFILE_TYPE_SELECTED = "ProfileTypeSelected", e;
|
|
4208
|
-
}({}), Xr = /* @__PURE__ */ e({ ProfileSidebarTreeElement: () => ei }), Zr = { profileOptions: "Profile options" }, Qr =
|
|
4212
|
+
}({}), Xr = /* @__PURE__ */ e({ ProfileSidebarTreeElement: () => ei }), Zr = { profileOptions: "Profile options" }, Qr = o("panels/profiler/ProfileSidebarTreeElement.ts", Zr), $r = r.bind(void 0, Qr), ei = class extends Ue {
|
|
4209
4213
|
iconElement;
|
|
4210
4214
|
titlesElement;
|
|
4211
4215
|
menuElement;
|
|
@@ -4218,18 +4222,18 @@ var $n = class extends W {
|
|
|
4218
4222
|
profile;
|
|
4219
4223
|
editing;
|
|
4220
4224
|
constructor(e, t, n) {
|
|
4221
|
-
super("", !1), this.iconElement = document.createElement("div"), this.iconElement.classList.add("icon"), this.titlesElement = document.createElement("div"), this.titlesElement.classList.add("titles"), this.titlesElement.classList.add("no-subtitle"), this.titlesElement.setAttribute("jslog", `${
|
|
4225
|
+
super("", !1), this.iconElement = document.createElement("div"), this.iconElement.classList.add("icon"), this.titlesElement = document.createElement("div"), this.titlesElement.classList.add("titles"), this.titlesElement.classList.add("no-subtitle"), this.titlesElement.setAttribute("jslog", `${je("title").track({
|
|
4222
4226
|
dblclick: !0,
|
|
4223
4227
|
change: !0
|
|
4224
|
-
})}`), this.titleContainer = this.titlesElement.createChild("span", "title-container"), this.titleElement = this.titleContainer.createChild("span", "title"), this.subtitleElement = this.titlesElement.createChild("span", "subtitle"), this.menuElement = new
|
|
4225
|
-
variant:
|
|
4228
|
+
})}`), this.titleContainer = this.titlesElement.createChild("span", "title-container"), this.titleElement = this.titleContainer.createChild("span", "title"), this.subtitleElement = this.titlesElement.createChild("span", "subtitle"), this.menuElement = new we(), this.menuElement.data = {
|
|
4229
|
+
variant: re.ICON,
|
|
4226
4230
|
iconName: "dots-vertical",
|
|
4227
4231
|
title: $r(Zr.profileOptions)
|
|
4228
|
-
}, this.menuElement.tabIndex = -1, this.menuElement.addEventListener("click", this.handleContextMenuEvent.bind(this)), this.menuElement.setAttribute("jslog", `${We("profile-options").track({ click: !0 })}`),
|
|
4232
|
+
}, this.menuElement.tabIndex = -1, this.menuElement.addEventListener("click", this.handleContextMenuEvent.bind(this)), this.menuElement.setAttribute("jslog", `${We("profile-options").track({ click: !0 })}`), v.install(this.menuElement, $r(Zr.profileOptions)), this.titleElement.textContent = t.title, this.className = n, this.small = !1, this.dataDisplayDelegate = e, this.profile = t, t.addEventListener(M.UPDATE_STATUS, this.updateStatus, this), this.editing = null;
|
|
4229
4233
|
}
|
|
4230
4234
|
updateStatus(e) {
|
|
4231
4235
|
let t = e.data;
|
|
4232
|
-
t.subtitle !== null && (this.subtitleElement.textContent = t.subtitle.length > 0 ? `(${t.subtitle})` : "", this.titlesElement.classList.toggle("no-subtitle", !t.subtitle),
|
|
4236
|
+
t.subtitle !== null && (this.subtitleElement.textContent = t.subtitle.length > 0 ? `(${t.subtitle})` : "", this.titlesElement.classList.toggle("no-subtitle", !t.subtitle), ue(this.listItemElement, `${this.profile.title}, ${t.subtitle}`)), typeof t.wait == "boolean" && this.listItemElement && (this.iconElement.classList.toggle("spinner", t.wait), this.listItemElement.classList.toggle("wait", t.wait));
|
|
4233
4237
|
}
|
|
4234
4238
|
ondblclick(e) {
|
|
4235
4239
|
return this.editing || this.startEditing(e.target), !1;
|
|
@@ -4237,8 +4241,8 @@ var $n = class extends W {
|
|
|
4237
4241
|
startEditing(e) {
|
|
4238
4242
|
let t = e.enclosingNodeOrSelfWithClass("title");
|
|
4239
4243
|
if (!t) return;
|
|
4240
|
-
let n = new
|
|
4241
|
-
this.editing =
|
|
4244
|
+
let n = new ce(this.editingCommitted.bind(this), this.editingCancelled.bind(this), void 0);
|
|
4245
|
+
this.editing = _e.startEditing(t, n);
|
|
4242
4246
|
}
|
|
4243
4247
|
editingCommitted(e, t) {
|
|
4244
4248
|
t.trim().length === 0 ? this.editing && this.editing.cancel() : (this.editing = null, this.profile.setTitle(t));
|
|
@@ -4247,7 +4251,7 @@ var $n = class extends W {
|
|
|
4247
4251
|
this.editing = null;
|
|
4248
4252
|
}
|
|
4249
4253
|
dispose() {
|
|
4250
|
-
this.profile.removeEventListener(
|
|
4254
|
+
this.profile.removeEventListener(M.UPDATE_STATUS, this.updateStatus, this);
|
|
4251
4255
|
}
|
|
4252
4256
|
onselect() {
|
|
4253
4257
|
return this.dataDisplayDelegate.showProfile(this.profile), !0;
|
|
@@ -4256,10 +4260,10 @@ var $n = class extends W {
|
|
|
4256
4260
|
return this.profile.profileType().removeProfile(this.profile), !0;
|
|
4257
4261
|
}
|
|
4258
4262
|
onattach() {
|
|
4259
|
-
this.className && this.listItemElement.classList.add(this.className), this.small && this.listItemElement.classList.add("small"), this.listItemElement.append(this.iconElement, this.titlesElement, this.menuElement), this.listItemElement.addEventListener("contextmenu", this.handleContextMenuEvent.bind(this), !0),
|
|
4263
|
+
this.className && this.listItemElement.classList.add(this.className), this.small && this.listItemElement.classList.add("small"), this.listItemElement.append(this.iconElement, this.titlesElement, this.menuElement), this.listItemElement.addEventListener("contextmenu", this.handleContextMenuEvent.bind(this), !0), Ce(this.listItemElement, this.profile.profileType().name);
|
|
4260
4264
|
}
|
|
4261
4265
|
handleContextMenuEvent(e) {
|
|
4262
|
-
let t = new
|
|
4266
|
+
let t = new Pe(e);
|
|
4263
4267
|
t.appendItemsAtLocation("profilerMenu"), t.show();
|
|
4264
4268
|
}
|
|
4265
4269
|
setSmall(e) {
|
|
@@ -4281,19 +4285,19 @@ var $n = class extends W {
|
|
|
4281
4285
|
failReason: "Reason: {PH1}.",
|
|
4282
4286
|
runD: "Run {PH1}",
|
|
4283
4287
|
profiles: "Profiles"
|
|
4284
|
-
}, ii =
|
|
4288
|
+
}, ii = o("panels/profiler/ProfilesPanel.ts", Q), $ = r.bind(void 0, ii);
|
|
4285
4289
|
function ai(e, t) {
|
|
4286
|
-
if (e instanceof
|
|
4287
|
-
if (e instanceof
|
|
4290
|
+
if (e instanceof J) return new ei(t, e, "heap-snapshot-sidebar-tree-item");
|
|
4291
|
+
if (e instanceof On) return new ei(t, e, "profile-sidebar-tree-item");
|
|
4288
4292
|
throw Error("Not implemented.");
|
|
4289
4293
|
}
|
|
4290
4294
|
function oi(e, t, n) {
|
|
4291
|
-
if (e instanceof
|
|
4292
|
-
if (e instanceof
|
|
4293
|
-
if (e instanceof
|
|
4295
|
+
if (e instanceof J) return new Dr(t, e, n);
|
|
4296
|
+
if (e instanceof qn) return new Un(e);
|
|
4297
|
+
if (e instanceof Mn) return new An(t, e);
|
|
4294
4298
|
throw Error("Not implemented.");
|
|
4295
4299
|
}
|
|
4296
|
-
var si = class e extends
|
|
4300
|
+
var si = class e extends ae {
|
|
4297
4301
|
profilesItemTreeElement;
|
|
4298
4302
|
sidebarTree;
|
|
4299
4303
|
profileViews;
|
|
@@ -4310,22 +4314,22 @@ var si = class e extends de {
|
|
|
4310
4314
|
fileSelectorElement;
|
|
4311
4315
|
selectedProfileType;
|
|
4312
4316
|
static registry = {
|
|
4313
|
-
heapSnapshotProfileType: new
|
|
4314
|
-
trackingHeapSnapshotProfileType: new
|
|
4315
|
-
samplingHeapProfileType: new
|
|
4316
|
-
detachedElementProfileType: new
|
|
4317
|
+
heapSnapshotProfileType: new Nr(),
|
|
4318
|
+
trackingHeapSnapshotProfileType: new Fr(),
|
|
4319
|
+
samplingHeapProfileType: new Kn(),
|
|
4320
|
+
detachedElementProfileType: new jn()
|
|
4317
4321
|
};
|
|
4318
4322
|
constructor(e, t) {
|
|
4319
|
-
super(e), this.registerRequiredCSS(
|
|
4320
|
-
let n = new
|
|
4321
|
-
this.splitWidget().setMainWidget(n), this.profilesItemTreeElement = new ui(this), this.sidebarTree = new
|
|
4323
|
+
super(e), this.registerRequiredCSS(kt, ti, Nn);
|
|
4324
|
+
let n = new b();
|
|
4325
|
+
this.splitWidget().setMainWidget(n), this.profilesItemTreeElement = new ui(this), this.sidebarTree = new nt(), this.sidebarTree.registerRequiredCSS(ni), this.sidebarTree.element.classList.add("profiles-sidebar-tree-box"), this.panelSidebarElement().appendChild(this.sidebarTree.element), this.sidebarTree.appendChild(this.profilesItemTreeElement), this.sidebarTree.element.addEventListener("keydown", this.onKeyDown.bind(this), !1), this.profileViews = document.createElement("div"), this.profileViews.id = "profile-views", this.profileViews.classList.add("vbox"), n.element.appendChild(this.profileViews), this.toolbarElement = document.createElement("div"), this.toolbarElement.classList.add("profiles-toolbar"), n.element.insertBefore(this.toolbarElement, n.element.firstChild), this.panelSidebarElement().classList.add("profiles-tree-sidebar");
|
|
4322
4326
|
let r = document.createElement("div");
|
|
4323
|
-
r.classList.add("profiles-toolbar"), r.setAttribute("jslog", `${
|
|
4327
|
+
r.classList.add("profiles-toolbar"), r.setAttribute("jslog", `${Ye("profiles-sidebar")}`), this.panelSidebarElement().insertBefore(r, this.panelSidebarElement().firstChild);
|
|
4324
4328
|
let i = r.createChild("devtools-toolbar");
|
|
4325
|
-
i.wrappable = !0, this.toggleRecordAction =
|
|
4329
|
+
i.wrappable = !0, this.toggleRecordAction = Ze.instance().getAction(t), this.toggleRecordButton = De.createActionButton(this.toggleRecordAction), i.appendToolbarItem(this.toggleRecordButton), i.appendToolbarItem(De.createActionButton("profiler.clear-all")), i.appendSeparator(), i.appendToolbarItem(De.createActionButton("profiler.load-from-file")), this.#e = Ze.instance().getAction("profiler.save-to-file"), this.#e.setEnabled(!1), i.appendToolbarItem(De.createActionButton(this.#e)), i.appendSeparator(), i.appendToolbarItem(De.createActionButton("components.collect-garbage")), this.profileViewToolbar = this.toolbarElement.createChild("devtools-toolbar"), this.profileViewToolbar.wrappable = !0, this.profileViewToolbar.setAttribute("jslog", `${Ye("profile-view")}`), this.profileGroups = {}, this.launcherView = new Jr(this), this.launcherView.addEventListener(Yr.PROFILE_TYPE_SELECTED, this.onProfileTypeSelected, this), this.profileToView = [], this.typeIdToSidebarSection = {};
|
|
4326
4330
|
let a = this.profileTypes;
|
|
4327
4331
|
for (let e = 0; e < a.length; e++) this.registerProfileType(a[e]);
|
|
4328
|
-
this.launcherView.restoreSelectedProfileType(), this.profilesItemTreeElement.select(), this.showLauncherView(), this.createFileSelectorElement(),
|
|
4332
|
+
this.launcherView.restoreSelectedProfileType(), this.profilesItemTreeElement.select(), this.showLauncherView(), this.createFileSelectorElement(), S.instance().addEventListener(qe.SUSPEND_STATE_CHANGED, this.onSuspendStateChanged, this), x.instance().addFlavorChangeListener(Qe, this.updateProfileTypeSpecificUI, this), x.instance().addFlavorChangeListener(_, this.updateProfileTypeSpecificUI, this);
|
|
4329
4333
|
}
|
|
4330
4334
|
get profileTypes() {
|
|
4331
4335
|
return Object.values(e.registry);
|
|
@@ -4349,15 +4353,15 @@ var si = class e extends de {
|
|
|
4349
4353
|
let t = this.findProfileTypeByExtension(e.name);
|
|
4350
4354
|
if (!t) {
|
|
4351
4355
|
let e = new Set(this.profileTypes.map((e) => e.fileExtension()).filter((e) => e));
|
|
4352
|
-
|
|
4356
|
+
g.instance().error($(Q.cantLoadFileSupportedFile, { PH1: Array.from(e).join("', '") }));
|
|
4353
4357
|
return;
|
|
4354
4358
|
}
|
|
4355
4359
|
if (t.profileBeingRecorded()) {
|
|
4356
|
-
|
|
4360
|
+
g.instance().error($(Q.cantLoadProfileWhileAnother));
|
|
4357
4361
|
return;
|
|
4358
4362
|
}
|
|
4359
4363
|
let n = await t.loadFromFile(e);
|
|
4360
|
-
n && "message" in n &&
|
|
4364
|
+
n && "message" in n && me.show($(Q.profileLoadingFailed), $(Q.failReason, { PH1: n.message }), void 0, "profile-loading-failed");
|
|
4361
4365
|
}
|
|
4362
4366
|
toggleRecord() {
|
|
4363
4367
|
if (!this.toggleRecordAction.enabled()) return !0;
|
|
@@ -4370,7 +4374,7 @@ var si = class e extends de {
|
|
|
4370
4374
|
this.updateToggleRecordAction(this.toggleRecordAction.toggled());
|
|
4371
4375
|
}
|
|
4372
4376
|
updateToggleRecordAction(e) {
|
|
4373
|
-
let t = !!(
|
|
4377
|
+
let t = !!(x.instance().flavor(Qe) || x.instance().flavor(_)), n = e || !S.instance().allTargetsSuspended() && t;
|
|
4374
4378
|
this.toggleRecordAction.setEnabled(n), this.toggleRecordAction.setToggled(e), n ? this.toggleRecordButton.setTitle(this.selectedProfileType ? this.selectedProfileType.buttonTooltip : "") : this.toggleRecordButton.setTitle(st()), this.selectedProfileType && this.launcherView.updateProfileType(this.selectedProfileType, n);
|
|
4375
4379
|
}
|
|
4376
4380
|
profileBeingRecordedRemoved() {
|
|
@@ -4401,7 +4405,7 @@ var si = class e extends de {
|
|
|
4401
4405
|
function i(e) {
|
|
4402
4406
|
this.showProfile(e.data);
|
|
4403
4407
|
}
|
|
4404
|
-
e.addEventListener(
|
|
4408
|
+
e.addEventListener(N.VIEW_UPDATED, this.updateProfileTypeSpecificUI, this), e.addEventListener(N.ADD_PROFILE_HEADER, n, this), e.addEventListener(N.REMOVE_PROFILE_HEADER, r, this), e.addEventListener(N.PROFILE_COMPLETE, i, this);
|
|
4405
4409
|
let a = e.getProfiles();
|
|
4406
4410
|
for (let e = 0; e < a.length; e++) this.addProfileHeader(a[e]);
|
|
4407
4411
|
}
|
|
@@ -4423,10 +4427,10 @@ var si = class e extends de {
|
|
|
4423
4427
|
if (!e || e.profileType().profileBeingRecorded() === e && !e.profileType().hasTemporaryView()) return null;
|
|
4424
4428
|
let t = this.viewForProfile(e);
|
|
4425
4429
|
if (t === this.visibleView) return t;
|
|
4426
|
-
this.closeVisibleView(),
|
|
4430
|
+
this.closeVisibleView(), x.instance().setFlavor(j, e), this.#e.setEnabled(e.canSaveToFile()), t.show(this.profileViews), this.toolbarElement.classList.remove("hidden"), this.visibleView = t;
|
|
4427
4431
|
let n = this.typeIdToSidebarSection[e.profileType().id].sidebarElementForProfile(e);
|
|
4428
4432
|
return n && n.revealAndSelect(), this.profileViewToolbar.removeToolbarItems(), t.toolbarItems().then((e) => {
|
|
4429
|
-
Array.isArray(e) ? e.map((e) => this.profileViewToolbar.appendToolbarItem(e)) :
|
|
4433
|
+
Array.isArray(e) ? e.map((e) => this.profileViewToolbar.appendToolbarItem(e)) : de(e, this.profileViewToolbar);
|
|
4430
4434
|
}), t;
|
|
4431
4435
|
}
|
|
4432
4436
|
showObject(e, t) {}
|
|
@@ -4446,16 +4450,16 @@ var si = class e extends de {
|
|
|
4446
4450
|
return this.profileToView.findIndex((t) => t.profile === e);
|
|
4447
4451
|
}
|
|
4448
4452
|
closeVisibleView() {
|
|
4449
|
-
|
|
4453
|
+
x.instance().setFlavor(j, null), this.#e.setEnabled(!1), this.visibleView && this.visibleView.detach(), delete this.visibleView;
|
|
4450
4454
|
}
|
|
4451
4455
|
focus() {
|
|
4452
4456
|
this.sidebarTree.focus();
|
|
4453
4457
|
}
|
|
4454
4458
|
wasShown() {
|
|
4455
|
-
super.wasShown(),
|
|
4459
|
+
super.wasShown(), x.instance().setFlavor(e, this);
|
|
4456
4460
|
}
|
|
4457
4461
|
willHide() {
|
|
4458
|
-
|
|
4462
|
+
x.instance().setFlavor(e, null), super.willHide();
|
|
4459
4463
|
}
|
|
4460
4464
|
}, ci = class extends Ue {
|
|
4461
4465
|
dataDisplayDelegate;
|
|
@@ -4499,7 +4503,7 @@ var si = class e extends de {
|
|
|
4499
4503
|
}
|
|
4500
4504
|
t.length !== 0 && (r = i.sidebarTreeElement);
|
|
4501
4505
|
}
|
|
4502
|
-
return r && r.removeChild(n), n.dispose(), this.childCount()
|
|
4506
|
+
return r && r.removeChild(n), n.dispose(), !this.childCount() && (this.hidden = !0, !0);
|
|
4503
4507
|
}
|
|
4504
4508
|
sidebarElementForProfile(e) {
|
|
4505
4509
|
let t = this.sidebarElementIndex(e);
|
|
@@ -4539,31 +4543,31 @@ var si = class e extends de {
|
|
|
4539
4543
|
return this.panel.showLauncherView(), !0;
|
|
4540
4544
|
}
|
|
4541
4545
|
onattach() {
|
|
4542
|
-
this.listItemElement.classList.add("profile-launcher-view-tree-item"), this.listItemElement.createChild("div", "titles no-subtitle").createChild("span", "title-container").createChild("span", "title").textContent = $(Q.profiles), this.setLeadingIcons([
|
|
4546
|
+
this.listItemElement.classList.add("profile-launcher-view-tree-item"), this.listItemElement.createChild("div", "titles no-subtitle").createChild("span", "title-container").createChild("span", "title").textContent = $(Q.profiles), this.setLeadingIcons([he("tune")]);
|
|
4543
4547
|
}
|
|
4544
4548
|
}, di = class {
|
|
4545
4549
|
handleAction(e, t) {
|
|
4546
4550
|
switch (t) {
|
|
4547
4551
|
case "profiler.clear-all": {
|
|
4548
4552
|
let t = e.flavor(si);
|
|
4549
|
-
return t
|
|
4553
|
+
return t !== null && (t.reset(), !0);
|
|
4550
4554
|
}
|
|
4551
4555
|
case "profiler.load-from-file": {
|
|
4552
4556
|
let t = e.flavor(si);
|
|
4553
|
-
return t
|
|
4557
|
+
return t !== null && (t.showLoadFromFileDialog(), !0);
|
|
4554
4558
|
}
|
|
4555
4559
|
case "profiler.save-to-file": {
|
|
4556
|
-
let t = e.flavor(
|
|
4557
|
-
return t
|
|
4560
|
+
let t = e.flavor(j);
|
|
4561
|
+
return t !== null && (t.saveToFile(), !0);
|
|
4558
4562
|
}
|
|
4559
4563
|
case "profiler.delete-profile": {
|
|
4560
|
-
let t = e.flavor(
|
|
4561
|
-
return t
|
|
4564
|
+
let t = e.flavor(j);
|
|
4565
|
+
return t !== null && (t.profileType().removeProfile(t), !0);
|
|
4562
4566
|
}
|
|
4563
4567
|
}
|
|
4564
4568
|
return !1;
|
|
4565
4569
|
}
|
|
4566
|
-
}, fi = /* @__PURE__ */ e({ HeapProfilerPanel: () => _i }), pi = { revealInSummaryView: "Reveal in Summary view" }, mi =
|
|
4570
|
+
}, fi = /* @__PURE__ */ e({ HeapProfilerPanel: () => _i }), pi = { revealInSummaryView: "Reveal in Summary view" }, mi = o("panels/profiler/HeapProfilerPanel.ts", pi), hi = r.bind(void 0, mi), gi, _i = class e extends si {
|
|
4567
4571
|
constructor() {
|
|
4568
4572
|
super("heap-profiler", "profiler.heap-toggle-recording");
|
|
4569
4573
|
}
|
|
@@ -4584,14 +4588,14 @@ var si = class e extends de {
|
|
|
4584
4588
|
t.revealSection().appendItem(hi(pi.revealInSummaryView), a.bind(this, "Summary"), { jslogContext: "reveal-in-summary" });
|
|
4585
4589
|
}
|
|
4586
4590
|
handleAction(t, n) {
|
|
4587
|
-
let r =
|
|
4591
|
+
let r = x.instance().flavor(e);
|
|
4588
4592
|
return console.assert(!!r && r instanceof e), r && r.toggleRecord(), !0;
|
|
4589
4593
|
}
|
|
4590
4594
|
wasShown() {
|
|
4591
|
-
super.wasShown(),
|
|
4595
|
+
super.wasShown(), x.instance().setFlavor(e, this), Je.instance().panelLoaded("heap-profiler", "DevTools.Launch.HeapProfiler");
|
|
4592
4596
|
}
|
|
4593
4597
|
willHide() {
|
|
4594
|
-
|
|
4598
|
+
x.instance().setFlavor(e, null), super.willHide();
|
|
4595
4599
|
}
|
|
4596
4600
|
showObject(e, t) {
|
|
4597
4601
|
let n = si.registry.heapSnapshotProfileType.getProfiles();
|
|
@@ -4605,4 +4609,4 @@ var si = class e extends de {
|
|
|
4605
4609
|
}
|
|
4606
4610
|
}, vi = /* @__PURE__ */ e({});
|
|
4607
4611
|
//#endregion
|
|
4608
|
-
export {
|
|
4612
|
+
export { nn as BottomUpProfileDataGrid, Bn as HeapProfileView, fi as HeapProfilerPanel, lr as HeapSnapshotDataGrids, Qn as HeapSnapshotGridNodes, Cr as HeapSnapshotView, Pn as HeapTimelineOverview, Br as IsolateSelector, Xt as ProfileDataGrid, mn as ProfileFlameChart, dn as ProfileHeader, Gr as ProfileLauncherView, Xr as ProfileSidebarTreeElement, vi as ProfileTypeRegistry, wn as ProfileView, ri as ProfilesPanel, xn as TopDownProfileDataGrid };
|