@songtonyli/dsh-cli 0.1.53 → 0.1.55
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 +28 -0
- package/node_modules/@anthropic-ai/sdk/client.js +2 -1
- package/node_modules/@anthropic-ai/sdk/client.mjs +2 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.js +4 -2
- package/node_modules/@anthropic-ai/sdk/core/streaming.mjs +4 -2
- package/node_modules/@anthropic-ai/sdk/package.json +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.js +25 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs +25 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.js +5 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs +5 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.js +10 -4
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs +10 -4
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.js +40 -16
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs +40 -16
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.js +25 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs +25 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.js +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.js +20 -8
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs +20 -8
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.js +22 -9
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs +22 -9
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.js +25 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs +25 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.js +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.js +15 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs +15 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js +25 -11
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs +25 -11
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js +4 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs +4 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.js +10 -4
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs +10 -4
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.js +15 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs +15 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.js +25 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs +25 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.js +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.js +10 -4
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs +10 -4
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.js +15 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs +15 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.js +20 -8
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs +20 -8
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.js +22 -9
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs +22 -9
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.js +20 -8
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs +20 -8
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.js +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.js +35 -14
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs +35 -14
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.js +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs +30 -12
- package/node_modules/@anthropic-ai/sdk/resources/completions.js +5 -2
- package/node_modules/@anthropic-ai/sdk/resources/completions.mjs +5 -2
- package/node_modules/@anthropic-ai/sdk/resources/files.js +79 -10
- package/node_modules/@anthropic-ai/sdk/resources/files.mjs +79 -10
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.js +52 -13
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs +52 -13
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.js +10 -4
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs +10 -4
- package/node_modules/@anthropic-ai/sdk/resources/models.js +23 -4
- package/node_modules/@anthropic-ai/sdk/resources/models.mjs +23 -4
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.js +64 -8
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs +64 -8
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.js +67 -7
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs +67 -7
- package/node_modules/@anthropic-ai/sdk/src/client.ts +12 -1
- package/node_modules/@anthropic-ai/sdk/src/core/streaming.ts +4 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/agents.ts +75 -10
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/versions.ts +15 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployment-runs.ts +30 -4
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployments.ts +120 -16
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/dreams.ts +75 -10
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/environments.ts +90 -12
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/work.ts +60 -8
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/files.ts +75 -11
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memories.ts +75 -10
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-stores.ts +90 -12
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-versions.ts +49 -10
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/batches.ts +85 -11
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/messages.ts +24 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/models.ts +30 -4
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/compliance-settings.ts +12 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/index.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/organization/organization.ts +4 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/events.ts +45 -6
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/resources.ts +75 -10
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/sessions.ts +90 -12
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/events.ts +30 -4
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/threads.ts +45 -6
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/skills.ts +60 -8
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/versions.ts +72 -9
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/certificates.ts +60 -8
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/tunnels.ts +90 -12
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/credentials.ts +105 -14
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/vaults.ts +90 -12
- package/node_modules/@anthropic-ai/sdk/src/resources/completions.ts +15 -2
- package/node_modules/@anthropic-ai/sdk/src/resources/files.ts +161 -18
- package/node_modules/@anthropic-ai/sdk/src/resources/index.ts +5 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/messages/batches.ts +137 -13
- package/node_modules/@anthropic-ai/sdk/src/resources/messages/index.ts +4 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/messages/messages.ts +38 -4
- package/node_modules/@anthropic-ai/sdk/src/resources/models.ts +43 -4
- package/node_modules/@anthropic-ai/sdk/src/resources/skills/index.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/skills/skills.ts +127 -13
- package/node_modules/@anthropic-ai/sdk/src/resources/skills/versions.ts +115 -11
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/fs-util.ts +16 -4
- package/node_modules/@anthropic-ai/sdk/src/version.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.js +14 -4
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs +14 -4
- package/node_modules/@anthropic-ai/sdk/version.js +1 -1
- package/node_modules/@anthropic-ai/sdk/version.mjs +1 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/README.md +7 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/index.js +2419 -185
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/BedrockRuntime.js +2 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commandBuilder.js +14 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ApplyGuardrailCommand.js +2 -14
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ConverseCommand.js +2 -14
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ConverseStreamCommand.js +2 -18
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/CountTokensCommand.js +2 -14
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/GetAsyncInvokeCommand.js +2 -14
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeGuardrailChecksCommand.js +4 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelCommand.js +2 -14
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelWithBidirectionalStreamCommand.js +2 -27
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/InvokeModelWithResponseStreamCommand.js +2 -18
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/ListAsyncInvokesCommand.js +2 -14
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/StartAsyncInvokeCommand.js +2 -14
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/commands/index.js +1 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/index.js +2 -1
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/models/enums.js +51 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.browser.js +0 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.js +1 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.native.js +0 -2
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-es/schemas/schemas_0.js +244 -31
- package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +43 -45
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +34 -32
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +8 -4
- package/node_modules/@aws-sdk/token-providers/dist-es/index.js +4 -4
- package/node_modules/@aws-sdk/token-providers/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh/lib/bin.js +12 -8
- package/node_modules/@deepseek-ai/dsh/lib/{plugin-DkYIj96-.js → plugin-BGnVfe_D.js} +26 -8
- package/node_modules/@deepseek-ai/dsh/package.json +111 -111
- package/node_modules/@deepseek-ai/dsh-acp/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-acp-app/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-agent/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +2 -2
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +8 -8
- 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 +9 -9
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/index.js +9 -0
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/index.js +12 -0
- package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +260 -20
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +41 -41
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +160 -4
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +120 -0
- package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +69 -69
- 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 +2 -2
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/index.js +13 -7
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/shells.js +14 -8
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +17 -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/package.json +9 -9
- 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 +6 -6
- package/node_modules/@deepseek-ai/dsh-authorization/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-base/package.json +93 -93
- 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/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-client-locale/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-client-modules/package.json +5 -5
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/client.js +12 -7
- package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-store/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +9 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +16 -16
- 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 +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +8 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +7 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +90 -126
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +37 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +7 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +7 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +111 -50
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +14 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +33 -33
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +10 -10
- 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 +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +9 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +9 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +216 -63
- 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/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +37 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +19 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +4 -4
- 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 +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +82 -101
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +10 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +10 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DisclosureRow.module.css +14 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuGroup.module.css +37 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +349 -226
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DisclosureRow.d.ts +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Input.d.ts +4 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuGroup.d.ts +22 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +1 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +4 -4
- 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 +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +19 -19
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +11 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +16 -16
- 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/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +13 -13
- 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 +12 -12
- 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/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +7 -7
- 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/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/lib/client.js +1 -1
- 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 +10 -15
- 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 +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +9 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +183 -156
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +3 -3
- 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 +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/index.js +4 -4
- 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 +9 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +12 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +12 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +304 -54
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +24 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +26 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.md +37 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.zh.md +37 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +1257 -218
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +23 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +1 -1
- 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 +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +3 -2
- 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 +1 -1
- package/node_modules/@deepseek-ai/dsh-commands/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-compaction/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +22 -22
- 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 +13 -13
- package/node_modules/@deepseek-ai/dsh-config-editor/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +59 -4
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.i18n.yaml +5 -2
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.md +8 -0
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.zh.md +8 -0
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/index.js +58 -20
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +18 -18
- 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 +5 -3
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/inspect-registry.js +62 -17
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +17 -16
- package/node_modules/@deepseek-ai/dsh-credentials/package.json +4 -4
- 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/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-deque/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +11 -5
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +39 -35
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-experimental-schedule-bundle/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-file-reference/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-fs/package.json +9 -9
- 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 +1 -1
- package/node_modules/@deepseek-ai/dsh-goal/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-headless/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-hmr/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-hmr/README.md +1 -0
- package/node_modules/@deepseek-ai/dsh-hmr/README.zh.md +1 -0
- package/node_modules/@deepseek-ai/dsh-hmr/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +13 -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 +3 -3
- 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 +4 -4
- package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-invariants/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-jobs/package.json +11 -11
- 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/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-llm/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +20 -20
- 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/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +4 -4
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +10 -6
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +20 -20
- 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/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-otel/package.json +3 -3
- 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 +1 -1
- package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-persona/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +27 -27
- 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/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/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-sandbox/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/assets/diagnose-windows-sandbox-acl/SKILL.md +39 -22
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/assets/diagnose-windows-sandbox-acl/scripts/diagnose-windows-sandbox-acl.ps1 +308 -231
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-schedule/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +6 -4
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/domain.js +6 -4
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +30 -30
- package/node_modules/@deepseek-ai/dsh-scope/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +28 -28
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-session/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +15 -15
- 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/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +10 -10
- 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/package.json +18 -18
- 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 +1 -1
- package/node_modules/@deepseek-ai/dsh-session-reference/package.json +34 -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/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-session-title/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +13 -13
- 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 +12 -12
- 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/package.json +3 -3
- 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 +30 -30
- package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-storage-json/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent/package.json +48 -48
- package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-subprocess/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-terminal/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-time-context/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
- 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/README.i18n.yaml +22 -22
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.md +27 -11
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.zh.md +27 -11
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/lib/index.js +211 -3
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +12 -9
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +29 -29
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-tool-cordis/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-cordis/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-cordis/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +31 -1
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/index.js +3 -3
- package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +29 -29
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-tool-present/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +28 -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 +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-tool-web/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-tools/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-tui-app/package.json +75 -75
- 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 +15 -15
- package/node_modules/@deepseek-ai/dsh-user-questions/README.i18n.yaml +19 -22
- package/node_modules/@deepseek-ai/dsh-user-questions/README.md +13 -10
- package/node_modules/@deepseek-ai/dsh-user-questions/README.zh.md +13 -10
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/index.js +659 -46
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +770 -0
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.remote-client.js +125 -0
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/types/index.js +289 -58
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/types/projection.js +298 -0
- package/node_modules/@deepseek-ai/dsh-user-questions/lib/types/timed-wait.js +85 -0
- package/node_modules/@deepseek-ai/dsh-user-questions/package.json +35 -11
- 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/package.json +136 -136
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-5SrrfWpU.js +127 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BPHePDI_.css +1 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +16 -16
- 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-webhook/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-win32-process/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-workflow/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +34 -34
- package/node_modules/@deepseek-ai/dsh-workspace/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +11 -11
- package/node_modules/@earendil-works/pi-ai/README.md +52 -8
- package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +131 -87
- package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +17 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +13 -12
- package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +21 -73
- package/node_modules/@earendil-works/pi-ai/dist/api/google-shared.js +55 -4
- package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +25 -65
- package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +19 -12
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +26 -23
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +44 -59
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +56 -56
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +14 -19
- package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.js +21 -7
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.js +5 -0
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/meta.js +190 -0
- package/node_modules/@earendil-works/pi-ai/dist/bun-oauth.js +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/compat.js +9 -6
- package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +49 -4
- package/node_modules/@earendil-works/pi-ai/dist/index.js +2 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +4 -0
- package/node_modules/@earendil-works/pi-ai/dist/models.js +5 -2
- package/node_modules/@earendil-works/pi-ai/dist/providers/all.js +2 -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/ant-ling.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-openai-responses.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/baseten.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/cerebras.json +1 -1
- 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/deepseek.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-vertex.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/groq.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/kimi-coding.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/meta.json +1 -0
- 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/moonshotai-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai.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-codex.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/qwen-token-plan-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-individual.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/radius.json +1 -0
- 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/data/xai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-ams.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-sgp.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +12 -11
- package/node_modules/@earendil-works/pi-ai/dist/providers/meta.js +24 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/meta.models.js +6 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js +4 -3
- package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-headers.js +22 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.js +5 -4
- package/node_modules/@earendil-works/pi-ai/dist/providers/radius.js +19 -5
- package/node_modules/@earendil-works/pi-ai/dist/providers/radius.models.js +6 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/estimate.js +8 -29
- package/node_modules/@earendil-works/pi-ai/dist/utils/event-stream.js +25 -7
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +11 -5
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +9 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/text.js +26 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/transcript.js +204 -0
- package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/LICENSE +22 -0
- package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/README.md +70 -0
- package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/dist/index.js +234 -0
- package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/dist/parse-proxy-response.js +94 -0
- package/node_modules/@earendil-works/pi-ai/node_modules/https-proxy-agent/package.json +51 -0
- package/node_modules/@earendil-works/pi-ai/package.json +9 -9
- package/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
- package/node_modules/@google/genai/README.md +19 -4
- package/node_modules/@google/genai/dist/index.cjs +7737 -2768
- package/node_modules/@google/genai/dist/index.mjs +7730 -2769
- package/node_modules/@google/genai/dist/node/index.cjs +7741 -2763
- package/node_modules/@google/genai/dist/node/index.mjs +7734 -2764
- package/node_modules/@google/genai/dist/tokenizer/node.cjs +424 -117
- package/node_modules/@google/genai/dist/tokenizer/node.mjs +424 -117
- package/node_modules/@google/genai/dist/vertex_internal/index.cjs +560 -181
- package/node_modules/@google/genai/dist/vertex_internal/index.js +561 -182
- package/node_modules/@google/genai/dist/web/index.mjs +7717 -2757
- package/node_modules/@google/genai/package.json +3 -3
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +41 -70
- package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
- package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +1 -0
- package/node_modules/@smithy/node-http-handler/dist-es/index.js +3 -3
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +19 -8
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +2 -3
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +10 -2
- package/node_modules/@smithy/node-http-handler/package.json +23 -30
- package/node_modules/agent-base/dist/helpers.js +5 -34
- package/node_modules/agent-base/dist/index.js +8 -40
- package/node_modules/agent-base/package.json +11 -11
- package/node_modules/http-proxy-agent/dist/index.js +26 -42
- package/node_modules/http-proxy-agent/package.json +14 -13
- package/node_modules/https-proxy-agent/node_modules/agent-base/LICENSE +22 -0
- package/node_modules/https-proxy-agent/node_modules/agent-base/README.md +69 -0
- package/node_modules/https-proxy-agent/node_modules/agent-base/dist/helpers.js +66 -0
- package/node_modules/https-proxy-agent/node_modules/agent-base/dist/index.js +178 -0
- package/node_modules/https-proxy-agent/node_modules/agent-base/package.json +46 -0
- package/node_modules/proxy-agent-negotiate/dist/index.js +35 -0
- package/node_modules/proxy-agent-negotiate/package.json +43 -0
- package/node_modules/typebox/build/compile/validator.mjs +1 -1
- package/node_modules/typebox/build/format/date.mjs +1 -1
- package/node_modules/typebox/build/format/date_time.mjs +3 -3
- package/node_modules/typebox/build/format/email.mjs +2 -2
- package/node_modules/typebox/build/format/hostname.mjs +2 -10
- package/node_modules/typebox/build/format/idn_email.mjs +3 -3
- package/node_modules/typebox/build/format/idn_hostname.mjs +3 -11
- package/node_modules/typebox/build/format/idna/format/bidi.mjs +98 -0
- package/node_modules/typebox/build/format/idna/format/puny.mjs +144 -0
- package/node_modules/typebox/build/format/idna/hostname.mjs +16 -0
- package/node_modules/typebox/build/format/idna/idn-hostname.mjs +43 -0
- package/node_modules/typebox/build/format/idna/index.mjs +2 -0
- package/node_modules/typebox/build/format/idna/label/ascii.mjs +9 -0
- package/node_modules/typebox/build/format/idna/label/puny.mjs +28 -0
- package/node_modules/typebox/build/format/idna/label/unicode.mjs +106 -0
- package/node_modules/typebox/build/format/idna/pattern/pattern.mjs +70 -0
- package/node_modules/typebox/build/format/ipv4.mjs +2 -32
- package/node_modules/typebox/build/format/ipv6.mjs +2 -61
- package/node_modules/typebox/build/format/iri.mjs +30 -8
- package/node_modules/typebox/build/format/iri_reference.mjs +9 -55
- package/node_modules/typebox/build/format/json_pointer.mjs +2 -2
- package/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +2 -2
- package/node_modules/typebox/build/format/regex.mjs +2 -6
- package/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
- package/node_modules/typebox/build/format/time.mjs +19 -14
- package/node_modules/typebox/build/format/uri.mjs +3 -130
- package/node_modules/typebox/build/format/uri_reference.mjs +2 -3
- package/node_modules/typebox/build/format/uri_template.mjs +4 -5
- package/node_modules/typebox/build/format/url.mjs +4 -5
- package/node_modules/typebox/build/guard/emit.mjs +13 -8
- package/node_modules/typebox/build/guard/guard.mjs +22 -13
- package/node_modules/typebox/build/guard/string.mjs +23 -31
- package/node_modules/typebox/build/schema/compile.mjs +8 -8
- package/node_modules/typebox/build/schema/engine/_context.mjs +12 -17
- package/node_modules/typebox/build/schema/engine/_functions.mjs +2 -3
- package/node_modules/typebox/build/schema/engine/_regexp.mjs +4 -0
- package/node_modules/typebox/build/schema/engine/_stack.mjs +138 -36
- package/node_modules/typebox/build/schema/engine/additionalItems.mjs +17 -7
- package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +20 -7
- package/node_modules/typebox/build/schema/engine/allOf.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/anyOf.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/contains.mjs +18 -6
- package/node_modules/typebox/build/schema/engine/enum.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/if.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/items.mjs +26 -6
- package/node_modules/typebox/build/schema/engine/maxContains.mjs +3 -3
- package/node_modules/typebox/build/schema/engine/minContains.mjs +14 -4
- package/node_modules/typebox/build/schema/engine/not.mjs +4 -2
- package/node_modules/typebox/build/schema/engine/oneOf.mjs +9 -8
- package/node_modules/typebox/build/schema/engine/pattern.mjs +3 -2
- package/node_modules/typebox/build/schema/engine/patternProperties.mjs +4 -3
- package/node_modules/typebox/build/schema/engine/propertyNames.mjs +1 -3
- package/node_modules/typebox/build/schema/engine/ref.mjs +3 -9
- package/node_modules/typebox/build/schema/engine/schema.mjs +19 -4
- package/node_modules/typebox/build/schema/engine/type.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +2 -2
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +2 -2
- package/node_modules/typebox/build/schema/errors.mjs +7 -13
- package/node_modules/typebox/build/schema/intern/index.mjs +1 -0
- package/node_modules/typebox/build/schema/intern/intern.mjs +259 -0
- package/node_modules/typebox/build/schema/parse.mjs +10 -5
- package/node_modules/typebox/build/schema/resolve/resolve.mjs +327 -1
- package/node_modules/typebox/build/schema/schema.mjs +1 -0
- package/node_modules/typebox/build/schema/static/propertyNames.mjs +3 -0
- package/node_modules/typebox/build/schema/types/index.mjs +0 -2
- package/node_modules/typebox/build/system/memory/assign.mjs +2 -1
- package/node_modules/typebox/build/system/memory/clone.mjs +14 -11
- package/node_modules/typebox/build/system/memory/create.mjs +3 -4
- package/node_modules/typebox/build/system/memory/discard.mjs +8 -7
- package/node_modules/typebox/build/system/memory/freeze.mjs +6 -0
- package/node_modules/typebox/build/system/memory/update.mjs +3 -2
- package/node_modules/typebox/build/system/settings/settings.mjs +2 -0
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +16 -3
- package/node_modules/typebox/build/type/engine/call/instantiate.mjs +34 -4
- package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +20 -26
- package/node_modules/typebox/build/type/engine/evaluate/compare.mjs +9 -13
- package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +12 -19
- package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +8 -20
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +11 -8
- package/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +3 -4
- package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +26 -6
- package/node_modules/typebox/build/type/engine/exclude/operation.mjs +3 -4
- package/node_modules/typebox/build/type/engine/extract/operation.mjs +3 -4
- package/node_modules/typebox/build/type/engine/priority/priority.mjs +3 -4
- package/node_modules/typebox/build/type/script/mapping.mjs +18 -25
- package/node_modules/typebox/build/type/script/parser.mjs +27 -23
- package/node_modules/typebox/build/value/errors/errors.mjs +2 -7
- package/node_modules/typebox/package.json +29 -29
- package/node_modules/typebox/readme.md +84 -83
- package/package.json +294 -308
- package/node_modules/@aws-crypto/sha256-browser/CHANGELOG.md +0 -118
- package/node_modules/@aws-crypto/sha256-browser/LICENSE +0 -202
- package/node_modules/@aws-crypto/sha256-browser/README.md +0 -31
- package/node_modules/@aws-crypto/sha256-browser/build/main/constants.js +0 -43
- package/node_modules/@aws-crypto/sha256-browser/build/main/crossPlatformSha256.js +0 -30
- package/node_modules/@aws-crypto/sha256-browser/build/main/index.js +0 -8
- package/node_modules/@aws-crypto/sha256-browser/build/main/isEmptyData.js +0 -11
- package/node_modules/@aws-crypto/sha256-browser/build/main/webCryptoSha256.js +0 -56
- package/node_modules/@aws-crypto/sha256-browser/build/module/constants.js +0 -40
- package/node_modules/@aws-crypto/sha256-browser/build/module/crossPlatformSha256.js +0 -27
- package/node_modules/@aws-crypto/sha256-browser/build/module/index.js +0 -3
- package/node_modules/@aws-crypto/sha256-browser/build/module/isEmptyData.js +0 -7
- package/node_modules/@aws-crypto/sha256-browser/build/module/webCryptoSha256.js +0 -53
- package/node_modules/@aws-crypto/sha256-browser/package.json +0 -28
- package/node_modules/@aws-crypto/sha256-browser/src/constants.ts +0 -41
- package/node_modules/@aws-crypto/sha256-browser/src/crossPlatformSha256.ts +0 -30
- package/node_modules/@aws-crypto/sha256-browser/src/index.ts +0 -2
- package/node_modules/@aws-crypto/sha256-browser/src/isEmptyData.ts +0 -9
- package/node_modules/@aws-crypto/sha256-browser/src/webCryptoSha256.ts +0 -71
- package/node_modules/@aws-crypto/sha256-browser/tsconfig.json +0 -10
- package/node_modules/@aws-crypto/sha256-browser/tsconfig.module.json +0 -7
- package/node_modules/@aws-crypto/sha256-js/CHANGELOG.md +0 -106
- package/node_modules/@aws-crypto/sha256-js/LICENSE +0 -201
- package/node_modules/@aws-crypto/sha256-js/README.md +0 -29
- package/node_modules/@aws-crypto/sha256-js/build/main/RawSha256.js +0 -124
- package/node_modules/@aws-crypto/sha256-js/build/main/constants.js +0 -98
- package/node_modules/@aws-crypto/sha256-js/build/main/index.js +0 -5
- package/node_modules/@aws-crypto/sha256-js/build/main/jsSha256.js +0 -85
- package/node_modules/@aws-crypto/sha256-js/build/main/knownHashes.fixture.js +0 -322
- package/node_modules/@aws-crypto/sha256-js/build/module/RawSha256.js +0 -121
- package/node_modules/@aws-crypto/sha256-js/build/module/constants.js +0 -95
- package/node_modules/@aws-crypto/sha256-js/build/module/index.js +0 -2
- package/node_modules/@aws-crypto/sha256-js/build/module/jsSha256.js +0 -82
- package/node_modules/@aws-crypto/sha256-js/build/module/knownHashes.fixture.js +0 -319
- package/node_modules/@aws-crypto/sha256-js/package.json +0 -27
- package/node_modules/@aws-crypto/sha256-js/src/RawSha256.ts +0 -164
- package/node_modules/@aws-crypto/sha256-js/src/constants.ts +0 -98
- package/node_modules/@aws-crypto/sha256-js/src/index.ts +0 -1
- package/node_modules/@aws-crypto/sha256-js/src/jsSha256.ts +0 -94
- package/node_modules/@aws-crypto/sha256-js/src/knownHashes.fixture.ts +0 -401
- package/node_modules/@aws-crypto/sha256-js/tsconfig.json +0 -10
- package/node_modules/@aws-crypto/sha256-js/tsconfig.module.json +0 -7
- package/node_modules/@aws-crypto/supports-web-crypto/CHANGELOG.md +0 -66
- package/node_modules/@aws-crypto/supports-web-crypto/LICENSE +0 -202
- package/node_modules/@aws-crypto/supports-web-crypto/README.md +0 -32
- package/node_modules/@aws-crypto/supports-web-crypto/build/main/index.js +0 -5
- package/node_modules/@aws-crypto/supports-web-crypto/build/main/supportsWebCrypto.js +0 -69
- package/node_modules/@aws-crypto/supports-web-crypto/build/module/index.js +0 -2
- package/node_modules/@aws-crypto/supports-web-crypto/build/module/supportsWebCrypto.js +0 -62
- package/node_modules/@aws-crypto/supports-web-crypto/package.json +0 -23
- package/node_modules/@aws-crypto/supports-web-crypto/src/index.ts +0 -1
- package/node_modules/@aws-crypto/supports-web-crypto/src/supportsWebCrypto.ts +0 -76
- package/node_modules/@aws-crypto/supports-web-crypto/tsconfig.json +0 -10
- package/node_modules/@aws-crypto/supports-web-crypto/tsconfig.module.json +0 -7
- package/node_modules/@aws-crypto/util/CHANGELOG.md +0 -71
- package/node_modules/@aws-crypto/util/LICENSE +0 -201
- package/node_modules/@aws-crypto/util/README.md +0 -16
- package/node_modules/@aws-crypto/util/build/main/convertToBuffer.js +0 -24
- package/node_modules/@aws-crypto/util/build/main/index.js +0 -14
- package/node_modules/@aws-crypto/util/build/main/isEmptyData.js +0 -13
- package/node_modules/@aws-crypto/util/build/main/numToUint8.js +0 -15
- package/node_modules/@aws-crypto/util/build/main/uint32ArrayFrom.js +0 -20
- package/node_modules/@aws-crypto/util/build/module/convertToBuffer.js +0 -20
- package/node_modules/@aws-crypto/util/build/module/index.js +0 -7
- package/node_modules/@aws-crypto/util/build/module/isEmptyData.js +0 -9
- package/node_modules/@aws-crypto/util/build/module/numToUint8.js +0 -11
- package/node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js +0 -16
- package/node_modules/@aws-crypto/util/package.json +0 -27
- package/node_modules/@aws-crypto/util/src/convertToBuffer.ts +0 -30
- package/node_modules/@aws-crypto/util/src/index.ts +0 -7
- package/node_modules/@aws-crypto/util/src/isEmptyData.ts +0 -12
- package/node_modules/@aws-crypto/util/src/numToUint8.ts +0 -11
- package/node_modules/@aws-crypto/util/src/uint32ArrayFrom.ts +0 -16
- package/node_modules/@aws-crypto/util/tsconfig.json +0 -9
- package/node_modules/@aws-crypto/util/tsconfig.module.json +0 -7
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/auth/httpAuthSchemeProvider.js +0 -63
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/endpoint/bdd.js +0 -49
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/endpoint/endpointResolver.js +0 -18
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/models/BedrockRuntimeServiceException.js +0 -12
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/models/errors.js +0 -169
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.browser.js +0 -41
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.js +0 -78
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.native.js +0 -19
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/runtimeConfig.shared.js +0 -48
- package/node_modules/@aws-sdk/client-bedrock-runtime/dist-cjs/schemas/schemas_0.js +0 -1500
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/LICENSE +0 -201
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/README.md +0 -9
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +0 -859
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +0 -19
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/constants.js +0 -1
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +0 -12
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +0 -51
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/index.js +0 -3
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +0 -251
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +0 -135
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +0 -46
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +0 -180
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +0 -36
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +0 -21
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +0 -22
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +0 -23
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/timing.js +0 -4
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +0 -63
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +0 -56
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/LICENSE +0 -201
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/README.md +0 -9
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +0 -859
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +0 -19
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/constants.js +0 -1
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +0 -12
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +0 -51
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/index.js +0 -3
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +0 -251
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +0 -135
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +0 -46
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +0 -180
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http2.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-https.js +0 -2
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +0 -36
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js +0 -21
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +0 -22
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +0 -23
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/timing.js +0 -4
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +0 -63
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +0 -56
- package/node_modules/@aws-sdk/util-locate-window/LICENSE +0 -201
- package/node_modules/@aws-sdk/util-locate-window/README.md +0 -4
- package/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +0 -12
- package/node_modules/@aws-sdk/util-locate-window/dist-es/index.js +0 -10
- package/node_modules/@aws-sdk/util-locate-window/package.json +0 -43
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Cq6ljTv2.css +0 -1
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Dy0OhsZ5.js +0 -127
- package/node_modules/@earendil-works/pi-ai/dist/utils/deferred-tools.js +0 -36
- package/node_modules/@smithy/is-array-buffer/LICENSE +0 -201
- package/node_modules/@smithy/is-array-buffer/README.md +0 -10
- package/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +0 -32
- package/node_modules/@smithy/is-array-buffer/dist-es/index.js +0 -2
- package/node_modules/@smithy/is-array-buffer/package.json +0 -48
- package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +0 -21
- package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +0 -88
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +0 -8
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +0 -41
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +0 -21
- package/node_modules/@smithy/util-buffer-from/LICENSE +0 -201
- package/node_modules/@smithy/util-buffer-from/README.md +0 -10
- package/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +0 -47
- package/node_modules/@smithy/util-buffer-from/dist-es/index.js +0 -14
- package/node_modules/@smithy/util-buffer-from/package.json +0 -49
- package/node_modules/@smithy/util-utf8/LICENSE +0 -201
- package/node_modules/@smithy/util-utf8/README.md +0 -4
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/index.js +0 -65
- package/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +0 -1
- package/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +0 -5
- package/node_modules/@smithy/util-utf8/dist-es/index.js +0 -3
- package/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js +0 -10
- package/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +0 -9
- package/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +0 -10
- package/node_modules/@smithy/util-utf8/package.json +0 -54
- package/node_modules/typebox/build/format/_idna.mjs +0 -246
- package/node_modules/typebox/build/format/_puny.mjs +0 -77
- package/node_modules/typebox/build/schema/resolve/ref.mjs +0 -146
- package/node_modules/typebox/build/schema/types/contentEncoding.mjs +0 -13
- package/node_modules/typebox/build/schema/types/contentMediaType.mjs +0 -13
- /package/node_modules/{@aws-sdk/credential-provider-http/node_modules/@smithy → @smithy}/node-http-handler/dist-es/node-http2.js +0 -0
- /package/node_modules/{@aws-sdk/credential-provider-http/node_modules/@smithy → @smithy}/node-http-handler/dist-es/node-https.js +0 -0
|
@@ -2,10 +2,10 @@ import { IsDate } from './date.mjs';
|
|
|
2
2
|
import { IsTime } from './time.mjs';
|
|
3
3
|
/**
|
|
4
4
|
* Returns true if the value is a ISO8601 DateTime string
|
|
5
|
-
* @
|
|
5
|
+
* @specification https://datatracker.ietf.org/doc/html/rfc3339
|
|
6
6
|
* @example `2020-12-12T20:20:40+00:00`
|
|
7
7
|
*/
|
|
8
|
-
export function IsDateTime(value
|
|
8
|
+
export function IsDateTime(value) {
|
|
9
9
|
const dateTime = value.split(/T/i);
|
|
10
|
-
return dateTime.length === 2 && IsDate(dateTime[0]) && IsTime(dateTime[1]
|
|
10
|
+
return dateTime.length === 2 && IsDate(dateTime[0]) && IsTime(dateTime[1]);
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const Email = /^(
|
|
1
|
+
const Email = /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[^"\\]|\\[\x20-\x7e])*")@(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*|\[(?:IPv6:[a-f0-9:]+|(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\])$/i;
|
|
2
2
|
/**
|
|
3
3
|
* Returns true if the value is an Email
|
|
4
|
-
* @specification
|
|
4
|
+
* @specification https://datatracker.ietf.org/doc/html/rfc5322
|
|
5
5
|
*/
|
|
6
6
|
export function IsEmail(value) {
|
|
7
7
|
return Email.test(value);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as Idna from './
|
|
1
|
+
import * as Idna from './idna/index.mjs';
|
|
2
2
|
/**
|
|
3
3
|
* Returns true if the value is a valid hostname.
|
|
4
4
|
* @specification https://tools.ietf.org/html/rfc1123
|
|
@@ -6,13 +6,5 @@ import * as Idna from './_idna.mjs';
|
|
|
6
6
|
* @specification https://tools.ietf.org/html/rfc5892
|
|
7
7
|
*/
|
|
8
8
|
export function IsHostname(value) {
|
|
9
|
-
|
|
10
|
-
return false;
|
|
11
|
-
if (value.charCodeAt(value.length - 1) === 46)
|
|
12
|
-
return false;
|
|
13
|
-
for (const label of value.split('.')) {
|
|
14
|
-
if (!Idna.IsLabel(label))
|
|
15
|
-
return false;
|
|
16
|
-
}
|
|
17
|
-
return true;
|
|
9
|
+
return Idna.IsHostname(value);
|
|
18
10
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const IdnEmail = /^(
|
|
1
|
+
const IdnEmail = /^(?:[A-Za-z0-9!#$%&'*+\/=?^_`{|}~\u{0080}-\u{10FFFF}-]+(?:\.[A-Za-z0-9!#$%&'*+\/=?^_`{|}~\u{0080}-\u{10FFFF}-]+)*|"(?:[^"\\]|\\.)*")@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,62})(?<!-)(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,62})(?<!-))*$/iu;
|
|
2
2
|
/**
|
|
3
3
|
* Returns true if the value is an IdnEmail
|
|
4
|
-
* @specification
|
|
4
|
+
* @specification https://datatracker.ietf.org/doc/html/rfc4952
|
|
5
5
|
*/
|
|
6
6
|
export function IsIdnEmail(value) {
|
|
7
|
-
return IdnEmail.test(value);
|
|
7
|
+
return IdnEmail.test(value.normalize('NFC'));
|
|
8
8
|
}
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Idna from './idna/index.mjs';
|
|
2
2
|
/**
|
|
3
3
|
* Returns true if the value is a valid internationalized (IDN) hostname.
|
|
4
4
|
* @specification https://tools.ietf.org/html/rfc3490
|
|
5
5
|
* @specification https://tools.ietf.org/html/rfc5891
|
|
6
6
|
* @specification https://tools.ietf.org/html/rfc5892
|
|
7
|
+
* @specification https://tools.ietf.org/html/rfc5893
|
|
7
8
|
*/
|
|
8
9
|
export function IsIdnHostname(value) {
|
|
9
|
-
|
|
10
|
-
return false;
|
|
11
|
-
const canonical = value.normalize('NFC').replace(/[\u002E\u3002\uFF0E\uFF61]/g, '.');
|
|
12
|
-
if (canonical.length > 253)
|
|
13
|
-
return false;
|
|
14
|
-
for (const label of canonical.split('.')) {
|
|
15
|
-
if (!IsIdnLabel(label))
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
return true;
|
|
10
|
+
return Idna.IsIdnHostname(value);
|
|
19
11
|
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
// deno-fmt-ignore-file
|
|
2
|
+
import * as FormatPuny from './puny.mjs';
|
|
3
|
+
import * as Pattern from '../pattern/pattern.mjs';
|
|
4
|
+
// ------------------------------------------------------------------
|
|
5
|
+
// LOCAL REGEX: Allowed Bidi classes per direction (RFC 5893)
|
|
6
|
+
// ------------------------------------------------------------------
|
|
7
|
+
const RE_RTL_ALLOWED = /^(?:R|AL|AN|EN|ES|CS|ET|ON|BN|NSM)$/;
|
|
8
|
+
const RE_LTR_ALLOWED = /^(?:L|EN|ES|CS|ET|ON|BN|NSM)$/;
|
|
9
|
+
const RE_RTL_CLASSES = /^(?:R|AL|AN)$/;
|
|
10
|
+
// ------------------------------------------------------------------
|
|
11
|
+
// HasBidiChars
|
|
12
|
+
//
|
|
13
|
+
// Decodes a punycode label to its Unicode form (if it is one) and
|
|
14
|
+
// checks whether the result is an RTL label per RFC 5893 §1.4.
|
|
15
|
+
// ------------------------------------------------------------------
|
|
16
|
+
export function HasBidiChars(value) {
|
|
17
|
+
if (FormatPuny.IsAcePrefixed(value)) {
|
|
18
|
+
try {
|
|
19
|
+
return HasRightToLeftCharacters(FormatPuny.Decode(value.slice(4).toLowerCase()));
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return HasRightToLeftCharacters(value);
|
|
26
|
+
}
|
|
27
|
+
// ------------------------------------------------------------------
|
|
28
|
+
// GetBidiClass
|
|
29
|
+
// ------------------------------------------------------------------
|
|
30
|
+
function GetBidiClass(codePoint) {
|
|
31
|
+
const char = String.fromCodePoint(codePoint);
|
|
32
|
+
return (Pattern.RE_EUROPEAN_NUMBER.test(char) ? 'EN' :
|
|
33
|
+
Pattern.RE_ARABIC_INDIC_DIGIT.test(char) ? 'AN' :
|
|
34
|
+
// Pattern.RE_EUROPEAN_SEPARATOR.test(char) ? 'ES' : // (no-spec-coverage)
|
|
35
|
+
// Pattern.RE_COMMON_SEPARATOR.test(char) ? 'CS' : // (no-spec-coverage)
|
|
36
|
+
Pattern.RE_MARK_NONSPACING.test(char) ? 'NSM' :
|
|
37
|
+
Pattern.RE_SCRIPT_HEBREW.test(char) ? 'R' :
|
|
38
|
+
Pattern.RE_SCRIPT_ARABIC_LETTER.test(char) ? 'AL' :
|
|
39
|
+
Pattern.RE_LETTER.test(char) ? 'L' :
|
|
40
|
+
'ON');
|
|
41
|
+
}
|
|
42
|
+
// ------------------------------------------------------------------
|
|
43
|
+
// HasRightToLeftCharacters
|
|
44
|
+
//
|
|
45
|
+
// Per RFC 5893 §1.4: "An RTL label is a label that contains at least
|
|
46
|
+
// one character of type R, AL, or AN." Used to determine whether a
|
|
47
|
+
// domain name is a "Bidi domain name" (RFC 5893 §1.4), in which case
|
|
48
|
+
// the Bidi Rule applies to every label in the domain.
|
|
49
|
+
// ------------------------------------------------------------------
|
|
50
|
+
export function HasRightToLeftCharacters(value) {
|
|
51
|
+
for (const ch of value)
|
|
52
|
+
if (RE_RTL_CLASSES.test(GetBidiClass(ch.codePointAt(0))))
|
|
53
|
+
return true;
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
// ------------------------------------------------------------------
|
|
57
|
+
// SatisfiesBidiRule
|
|
58
|
+
// ------------------------------------------------------------------
|
|
59
|
+
export function SatisfiesBidiRule(value) {
|
|
60
|
+
let isRtl = false;
|
|
61
|
+
let allowed = RE_LTR_ALLOWED;
|
|
62
|
+
let sawEN = false;
|
|
63
|
+
let sawAN = false;
|
|
64
|
+
let isFirst = true;
|
|
65
|
+
// let lastClass: string | null = null // (no-spec-coverage)
|
|
66
|
+
for (const ch of value) {
|
|
67
|
+
const bidiClass = GetBidiClass(ch.codePointAt(0));
|
|
68
|
+
if (isFirst) {
|
|
69
|
+
// 1. The first character must be a character with Bidi property L, R, or AL.
|
|
70
|
+
if (bidiClass !== 'L' && bidiClass !== 'R' && bidiClass !== 'AL')
|
|
71
|
+
return false;
|
|
72
|
+
isRtl = bidiClass === 'R' || bidiClass === 'AL';
|
|
73
|
+
allowed = isRtl ? RE_RTL_ALLOWED : RE_LTR_ALLOWED;
|
|
74
|
+
isFirst = false;
|
|
75
|
+
}
|
|
76
|
+
// 2 / 5. Only characters in the allowed set for this direction may appear.
|
|
77
|
+
if (!allowed.test(bidiClass))
|
|
78
|
+
return false;
|
|
79
|
+
if (bidiClass === 'EN')
|
|
80
|
+
sawEN = true;
|
|
81
|
+
else if (bidiClass === 'AN')
|
|
82
|
+
sawAN = true;
|
|
83
|
+
// if (bidiClass !== 'NSM') lastClass = bidiClass // (no-spec-coverage)
|
|
84
|
+
}
|
|
85
|
+
if (isRtl && sawEN && sawAN)
|
|
86
|
+
return false; // spec coverage path
|
|
87
|
+
// (no-spec-coverage)
|
|
88
|
+
// if (isRtl) {
|
|
89
|
+
// // 3. The end of the label must be R, AL, EN, or AN (ignoring trailing NSM).
|
|
90
|
+
// // if (lastClass !== 'R' && lastClass !== 'AL' && lastClass !== 'EN' && lastClass !== 'AN') return false
|
|
91
|
+
// // 4. If an EN is present, no AN may be present, and vice versa.
|
|
92
|
+
// if (sawEN && sawAN) return false
|
|
93
|
+
// } else {
|
|
94
|
+
// // 6. The end of the label must be L or EN (ignoring trailing NSM).
|
|
95
|
+
// // if (lastClass !== 'L' && lastClass !== 'EN') return false
|
|
96
|
+
// }
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import * as Pattern from '../pattern/pattern.mjs';
|
|
2
|
+
// ------------------------------------------------------------------
|
|
3
|
+
// PunyCode (RFC 3492)
|
|
4
|
+
// ------------------------------------------------------------------
|
|
5
|
+
const PUNYCODE_BASE = 36;
|
|
6
|
+
const PUNYCODE_TMIN = 1;
|
|
7
|
+
const PUNYCODE_TMAX = 26;
|
|
8
|
+
const PUNYCODE_SKEW = 38;
|
|
9
|
+
const PUNYCODE_DAMP = 700;
|
|
10
|
+
const PUNYCODE_INITIAL_BIAS = 72;
|
|
11
|
+
const PUNYCODE_INITIAL_N = 128;
|
|
12
|
+
// ------------------------------------------------------------------
|
|
13
|
+
// ThrowDontCare
|
|
14
|
+
// ------------------------------------------------------------------
|
|
15
|
+
function ThrowDontCare() {
|
|
16
|
+
throw null;
|
|
17
|
+
}
|
|
18
|
+
// ------------------------------------------------------------------
|
|
19
|
+
// IsAcePrefixed
|
|
20
|
+
// ------------------------------------------------------------------
|
|
21
|
+
export function IsAcePrefixed(value) {
|
|
22
|
+
return value.toLowerCase().startsWith('xn--');
|
|
23
|
+
}
|
|
24
|
+
// ------------------------------------------------------------------
|
|
25
|
+
// Adapt
|
|
26
|
+
// ------------------------------------------------------------------
|
|
27
|
+
function Adapt(delta, numPoints, firstTime) {
|
|
28
|
+
delta = firstTime ? Math.floor(delta / PUNYCODE_DAMP) : delta >> 1;
|
|
29
|
+
delta += Math.floor(delta / numPoints);
|
|
30
|
+
let k = 0;
|
|
31
|
+
while (delta > (((PUNYCODE_BASE - PUNYCODE_TMIN) * PUNYCODE_TMAX) >> 1)) {
|
|
32
|
+
delta = Math.floor(delta / (PUNYCODE_BASE - PUNYCODE_TMIN));
|
|
33
|
+
k += PUNYCODE_BASE;
|
|
34
|
+
}
|
|
35
|
+
return k + Math.floor(((PUNYCODE_BASE - PUNYCODE_TMIN + 1) * delta) / (delta + PUNYCODE_SKEW));
|
|
36
|
+
}
|
|
37
|
+
// ------------------------------------------------------------------
|
|
38
|
+
// Decode
|
|
39
|
+
// ------------------------------------------------------------------
|
|
40
|
+
export function Decode(value) {
|
|
41
|
+
const output = [];
|
|
42
|
+
let n = PUNYCODE_INITIAL_N;
|
|
43
|
+
let i = 0;
|
|
44
|
+
let bias = PUNYCODE_INITIAL_BIAS;
|
|
45
|
+
const delimIdx = value.lastIndexOf('-');
|
|
46
|
+
if (delimIdx > 0) {
|
|
47
|
+
for (let j = 0; j < delimIdx; j++) {
|
|
48
|
+
const cp = value.charCodeAt(j);
|
|
49
|
+
if (cp >= 128)
|
|
50
|
+
ThrowDontCare(); // throw new Error('Invalid punycode: non-basic before delimiter')
|
|
51
|
+
output.push(cp);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
let inIdx = delimIdx < 0 ? 0 : delimIdx + 1;
|
|
55
|
+
while (inIdx < value.length) {
|
|
56
|
+
const oldi = i;
|
|
57
|
+
let w = 1;
|
|
58
|
+
let k = PUNYCODE_BASE;
|
|
59
|
+
while (true) {
|
|
60
|
+
if (inIdx >= value.length)
|
|
61
|
+
ThrowDontCare(); // throw new Error('Invalid punycode: unexpected end of input')
|
|
62
|
+
const ch = value.charCodeAt(inIdx++);
|
|
63
|
+
let digit;
|
|
64
|
+
if (ch >= 0x61 && ch <= 0x7a)
|
|
65
|
+
digit = ch - 0x61; // a-z => 0-25
|
|
66
|
+
else if (ch >= 0x30 && ch <= 0x39)
|
|
67
|
+
digit = ch - 0x30 + 26; // 0-9 => 26-35
|
|
68
|
+
// else if (ch >= 0x41 && ch <= 0x5a) digit = ch - 0x41 // A-Z => 0-25 // (no-spec-coverage)
|
|
69
|
+
else
|
|
70
|
+
ThrowDontCare(); // throw new Error('Invalid punycode: bad digit character')
|
|
71
|
+
i += digit * w;
|
|
72
|
+
const t = k <= bias ? PUNYCODE_TMIN : k >= bias + PUNYCODE_TMAX ? PUNYCODE_TMAX : k - bias;
|
|
73
|
+
if (digit < t)
|
|
74
|
+
break;
|
|
75
|
+
w *= PUNYCODE_BASE - t;
|
|
76
|
+
k += PUNYCODE_BASE;
|
|
77
|
+
}
|
|
78
|
+
const outLen = output.length + 1;
|
|
79
|
+
bias = Adapt(i - oldi, outLen, oldi === 0);
|
|
80
|
+
n += Math.floor(i / outLen);
|
|
81
|
+
i %= outLen;
|
|
82
|
+
output.splice(i, 0, n);
|
|
83
|
+
i++;
|
|
84
|
+
}
|
|
85
|
+
return String.fromCodePoint(...output);
|
|
86
|
+
}
|
|
87
|
+
// ------------------------------------------------------------------
|
|
88
|
+
// DigitToChar
|
|
89
|
+
// ------------------------------------------------------------------
|
|
90
|
+
function DigitToChar(digit) {
|
|
91
|
+
return digit < 26 ? String.fromCharCode(digit + 0x61) : String.fromCharCode(digit - 26 + 0x30);
|
|
92
|
+
}
|
|
93
|
+
// ------------------------------------------------------------------
|
|
94
|
+
// Encode
|
|
95
|
+
//
|
|
96
|
+
// Encodes a Unicode string into its Punycode payload (the part that
|
|
97
|
+
// follows the 'xn--' ACE prefix). Used to compute the true A-label
|
|
98
|
+
// length of a U-label, since the 63-octet label length limit (RFC
|
|
99
|
+
// 5891 §4.2.4) applies to the encoded form, not the code point count.
|
|
100
|
+
// ------------------------------------------------------------------
|
|
101
|
+
const RE_REPLACE_NON_ASCII = new RegExp(Pattern.RE_NON_ASCII.source, 'gu');
|
|
102
|
+
export function Encode(input) {
|
|
103
|
+
// Extract basic ASCII characters and set initial output array state
|
|
104
|
+
const basic = input.replace(RE_REPLACE_NON_ASCII, '');
|
|
105
|
+
const basicLength = basic.length;
|
|
106
|
+
const result = basicLength > 0 ? [basic, '-'] : [];
|
|
107
|
+
// Extract unicode codepoints
|
|
108
|
+
const codePoints = Array.from(input, (char) => char.codePointAt(0));
|
|
109
|
+
let n = PUNYCODE_INITIAL_N;
|
|
110
|
+
let delta = 0;
|
|
111
|
+
let bias = PUNYCODE_INITIAL_BIAS;
|
|
112
|
+
let handledCPCount = basicLength;
|
|
113
|
+
while (handledCPCount < codePoints.length) {
|
|
114
|
+
let m = Infinity;
|
|
115
|
+
for (const cp of codePoints) {
|
|
116
|
+
if (cp >= n && cp < m)
|
|
117
|
+
m = cp;
|
|
118
|
+
}
|
|
119
|
+
delta += (m - n) * (handledCPCount + 1);
|
|
120
|
+
n = m;
|
|
121
|
+
for (const cp of codePoints) {
|
|
122
|
+
if (cp < n)
|
|
123
|
+
delta++;
|
|
124
|
+
if (cp === n) {
|
|
125
|
+
let q = delta;
|
|
126
|
+
for (let k = PUNYCODE_BASE;; k += PUNYCODE_BASE) {
|
|
127
|
+
const t = k <= bias ? PUNYCODE_TMIN : k >= bias + PUNYCODE_TMAX ? PUNYCODE_TMAX : k - bias;
|
|
128
|
+
if (q < t)
|
|
129
|
+
break;
|
|
130
|
+
const digit = t + ((q - t) % (PUNYCODE_BASE - t));
|
|
131
|
+
result.push(DigitToChar(digit));
|
|
132
|
+
q = Math.floor((q - t) / (PUNYCODE_BASE - t));
|
|
133
|
+
}
|
|
134
|
+
result.push(DigitToChar(q));
|
|
135
|
+
bias = Adapt(delta, handledCPCount + 1, handledCPCount === basicLength);
|
|
136
|
+
delta = 0;
|
|
137
|
+
handledCPCount++;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
delta++;
|
|
141
|
+
n++;
|
|
142
|
+
}
|
|
143
|
+
return result.join('');
|
|
144
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as LabelAscii from './label/ascii.mjs';
|
|
2
|
+
import * as LabelPuny from './label/puny.mjs';
|
|
3
|
+
function IsValidLabelLength(value) {
|
|
4
|
+
return value.length > 0 && value.length <= 63;
|
|
5
|
+
}
|
|
6
|
+
function IsLabel(value) {
|
|
7
|
+
return IsValidLabelLength(value) && (LabelPuny.IsPunyLabel(value) ||
|
|
8
|
+
LabelAscii.IsAsciiLabel(value));
|
|
9
|
+
}
|
|
10
|
+
export function IsHostname(value) {
|
|
11
|
+
if (value.length === 0 || value.length > 253)
|
|
12
|
+
return false;
|
|
13
|
+
if (value.charCodeAt(value.length - 1) === 46)
|
|
14
|
+
return false;
|
|
15
|
+
return value.split('.').every((label) => IsLabel(label));
|
|
16
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as FormatBidi from './format/bidi.mjs';
|
|
2
|
+
import * as LabelUnicode from './label/unicode.mjs';
|
|
3
|
+
import * as LabelPuny from './label/puny.mjs';
|
|
4
|
+
// ------------------------------------------------------------------
|
|
5
|
+
// IsLabel
|
|
6
|
+
// ------------------------------------------------------------------
|
|
7
|
+
function IsValidLabelLength(value) {
|
|
8
|
+
return value.length > 0 && value.length <= 63;
|
|
9
|
+
}
|
|
10
|
+
function IsLabel(value) {
|
|
11
|
+
return IsValidLabelLength(value) && (LabelPuny.IsPunyLabel(value) ||
|
|
12
|
+
LabelUnicode.IsUnicodeLabel(value));
|
|
13
|
+
}
|
|
14
|
+
// ------------------------------------------------------------------
|
|
15
|
+
// NormalizeHostname
|
|
16
|
+
//
|
|
17
|
+
// Normalizes a hostname for label validation. Maps fullwidth
|
|
18
|
+
// codepoints to their ASCII equivalent (e.g. 'a' U+FF41 maps to
|
|
19
|
+
// 'a'), then normalizes for NFC such that equivalent codepoint
|
|
20
|
+
// sequences can be uniformly compared. It also removes codepoints
|
|
21
|
+
// that IDNA mapping ignores, and converts full stop variants to
|
|
22
|
+
// ASCII '.' so the hostname can be split into labels.
|
|
23
|
+
// ------------------------------------------------------------------
|
|
24
|
+
function NormalizeHostname(value) {
|
|
25
|
+
return value
|
|
26
|
+
.replace(/[\uff01-\uff5e]/g, (char) => String.fromCharCode(char.charCodeAt(0) - 0xfee0)) // RE_FULLWIDTH_MAPPING
|
|
27
|
+
.normalize('NFC')
|
|
28
|
+
.replace(/[\u00ad\u034f\u180b-\u180d\u200b\ufe00-\ufe0f\u{e0100}-\u{e01ef}]/gu, '') // RE_IGNORED_MAPPING
|
|
29
|
+
.replace(/[\u002E\u3002\uFF0E\uFF61]/g, '.'); // RE_FULL_STOP_MAPPING
|
|
30
|
+
}
|
|
31
|
+
// ------------------------------------------------------------------
|
|
32
|
+
// IsIdnHostname
|
|
33
|
+
// ------------------------------------------------------------------
|
|
34
|
+
export function IsIdnHostname(value) {
|
|
35
|
+
if (value.length === 0 || value.includes(' '))
|
|
36
|
+
return false;
|
|
37
|
+
const normalized = NormalizeHostname(value);
|
|
38
|
+
if (normalized.length > 253)
|
|
39
|
+
return false;
|
|
40
|
+
const labels = normalized.split('.');
|
|
41
|
+
const hasBidiChars = labels.some((label) => FormatBidi.HasBidiChars(label));
|
|
42
|
+
return labels.every((label) => IsLabel(label) && (!hasBidiChars || FormatBidi.SatisfiesBidiRule(label)));
|
|
43
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as Pattern from '../pattern/pattern.mjs';
|
|
2
|
+
// -------------------------------------------------------------------
|
|
3
|
+
// Validates an ASCII LDH label per RFC 5891 §4.2.3.1
|
|
4
|
+
// -------------------------------------------------------------------
|
|
5
|
+
export function IsAsciiLabel(value) {
|
|
6
|
+
return (Pattern.RE_RULE_HYPHEN_PLACEMENT.test(value) &&
|
|
7
|
+
Pattern.RE_RULE_NOT_RESERVED_ACE.test(value) &&
|
|
8
|
+
Pattern.RE_ASCII_LDH.test(value));
|
|
9
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as FormatPuny from '../format/puny.mjs';
|
|
2
|
+
import * as LabelUnicode from './unicode.mjs';
|
|
3
|
+
import * as Pattern from '../pattern/pattern.mjs';
|
|
4
|
+
// ------------------------------------------------------------------
|
|
5
|
+
// IsPunyLabel
|
|
6
|
+
// ------------------------------------------------------------------
|
|
7
|
+
export function IsPunyLabel(value) {
|
|
8
|
+
if (!FormatPuny.IsAcePrefixed(value))
|
|
9
|
+
return false;
|
|
10
|
+
try {
|
|
11
|
+
const body = value.slice(4).toLowerCase();
|
|
12
|
+
// A payload consisting of only a hyphen, or starting with the delimiter
|
|
13
|
+
// (like "-9uc"), has 0 basic ASCII characters preceding it and is malformed.
|
|
14
|
+
if (body.lastIndexOf('-') === 0)
|
|
15
|
+
return false;
|
|
16
|
+
const decoded = FormatPuny.Decode(body);
|
|
17
|
+
// RFC 5890 §2.3.2.1 - a U-label must contain at least one non-ASCII
|
|
18
|
+
// character. Code-unit level check: any non-ASCII codepoint has at least
|
|
19
|
+
// one UTF-16 unit >= 0x80 (surrogate halves included), so no need to
|
|
20
|
+
// decode codepoints or allocate a character array to answer this.
|
|
21
|
+
if (!Pattern.RE_NON_ASCII.test(decoded))
|
|
22
|
+
return false;
|
|
23
|
+
return LabelUnicode.IsUnicodeLabel(decoded);
|
|
24
|
+
}
|
|
25
|
+
catch {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import * as Pattern from '../pattern/pattern.mjs';
|
|
2
|
+
import * as FormatBidi from '../format/bidi.mjs';
|
|
3
|
+
import * as FormatPuny from '../format/puny.mjs';
|
|
4
|
+
// ------------------------------------------------------------------
|
|
5
|
+
// ExceedsMaxALabelLength
|
|
6
|
+
//
|
|
7
|
+
// RFC 5890 §2.3.2.1: an A-label (the ACE-encoded form of a label,
|
|
8
|
+
// "xn--" + punycode) must not exceed 63 octets. Only labels
|
|
9
|
+
// containing non-ASCII characters need checking - a pure-ASCII label
|
|
10
|
+
// has no "xn--" prefix and is used as-is, so its punycode-encoded
|
|
11
|
+
// length is irrelevant. The ASCII check is a cheap short-circuit that
|
|
12
|
+
// avoids running the punycode encoder on labels that don't need it.
|
|
13
|
+
// ------------------------------------------------------------------
|
|
14
|
+
function ExceedsMaxALabelLength(value) {
|
|
15
|
+
return Pattern.RE_NON_ASCII.test(value) && FormatPuny.Encode(value).length + 4 > 63;
|
|
16
|
+
}
|
|
17
|
+
// ------------------------------------------------------------------
|
|
18
|
+
// HasInvalidHyphens
|
|
19
|
+
//
|
|
20
|
+
// RFC 5891 §4.2.3.2: label must not start or end with a hyphen, and
|
|
21
|
+
// must not have hyphens in the 3rd and 4th codepoint positions (the
|
|
22
|
+
// ACE prefix reservation, e.g. "xn--"). Operates on `chars` (the
|
|
23
|
+
// per-codepoint string array) rather than raw string indices so
|
|
24
|
+
// supplementary-plane characters earlier in the label don't throw
|
|
25
|
+
// off the codepoint-position count.
|
|
26
|
+
// ------------------------------------------------------------------
|
|
27
|
+
function HasInvalidHyphens(chars) {
|
|
28
|
+
if (chars[0] === '-' || chars[chars.length - 1] === '-')
|
|
29
|
+
return true;
|
|
30
|
+
return chars.slice(2).join('').startsWith('--');
|
|
31
|
+
}
|
|
32
|
+
// ------------------------------------------------------------------
|
|
33
|
+
// IsUnicodeLabel
|
|
34
|
+
// ------------------------------------------------------------------
|
|
35
|
+
export function IsUnicodeLabel(value) {
|
|
36
|
+
// RFC 5890 §2.3.2.1: Ensure Max Length
|
|
37
|
+
if (ExceedsMaxALabelLength(value))
|
|
38
|
+
return false;
|
|
39
|
+
// RFC 5893 - Bidi Rule (applies whenever this label itself is RTL)
|
|
40
|
+
if (FormatBidi.HasRightToLeftCharacters(value) && !FormatBidi.SatisfiesBidiRule(value))
|
|
41
|
+
return false;
|
|
42
|
+
const chars = [...value];
|
|
43
|
+
const codePoints = chars.map((c) => c.codePointAt(0));
|
|
44
|
+
const length = codePoints.length;
|
|
45
|
+
// RFC 5891 §4.2.3.2: Hyphen rules
|
|
46
|
+
if (HasInvalidHyphens(chars))
|
|
47
|
+
return false;
|
|
48
|
+
// RFC 5891 §4.2.3.2 - Must not begin with a combining mark
|
|
49
|
+
if (Pattern.RE_COMBINING_MARK.test(chars[0]))
|
|
50
|
+
return false;
|
|
51
|
+
let hasJapanese = false;
|
|
52
|
+
// let hasArabicIndic = false // (no-spec-coverage)
|
|
53
|
+
// let hasExtendedArabicIndic = false // (no-spec-coverage)
|
|
54
|
+
for (let i = 0; i < length; i++) {
|
|
55
|
+
const codePoint = codePoints[i];
|
|
56
|
+
const char = chars[i];
|
|
57
|
+
// 1. DISALLOWED exceptions
|
|
58
|
+
if (Pattern.RE_RFC5892_DISALLOWED.test(char))
|
|
59
|
+
return false;
|
|
60
|
+
// 1b. General category (PVALID) enforcement
|
|
61
|
+
if (!Pattern.RE_PERMITTED_CATEGORY.test(char))
|
|
62
|
+
return false;
|
|
63
|
+
// 2. Collect Flags
|
|
64
|
+
if (Pattern.RE_SCRIPT_JAPANESE.test(char))
|
|
65
|
+
hasJapanese = true;
|
|
66
|
+
// if (Pattern.RE_ARABIC_INDIC_DIGIT.test(char)) hasArabicIndic = true // (no-spec-coverage)
|
|
67
|
+
// if (Pattern.RE_EXT_ARABIC_INDIC_DIGIT.test(char)) hasExtendedArabicIndic = true // (no-spec-coverage)
|
|
68
|
+
// 3. CONTEXTO / CONTEXTJ Neighbor Rules
|
|
69
|
+
const prev = codePoints[i - 1], next = codePoints[i + 1];
|
|
70
|
+
switch (codePoint) {
|
|
71
|
+
case 0x00b7:
|
|
72
|
+
if (prev !== 0x006c || next !== 0x006c)
|
|
73
|
+
return false;
|
|
74
|
+
break; // MIDDLE DOT (Catalan)
|
|
75
|
+
case 0x0375:
|
|
76
|
+
if (!next || !Pattern.RE_SCRIPT_GREEK.test(chars[i + 1]))
|
|
77
|
+
return false;
|
|
78
|
+
break; // Greek KERAIA
|
|
79
|
+
case 0x05f3:
|
|
80
|
+
case 0x05f4:
|
|
81
|
+
if (!prev || !Pattern.RE_SCRIPT_HEBREW.test(chars[i - 1]))
|
|
82
|
+
return false;
|
|
83
|
+
break; // Hebrew GERESH
|
|
84
|
+
case 0x200c: // ZWNJ - RFC 5892 Appendix A.1
|
|
85
|
+
// Note: Full validation requires a Unicode joining type table. We reject
|
|
86
|
+
// only when preceded by ASCII (U+0000-U+007F), which can never satisfy
|
|
87
|
+
// the Virama or cursive-joining rules.
|
|
88
|
+
if (!prev || (prev < 0x0080 && !Pattern.RE_VIRAMA.test(chars[i - 1])))
|
|
89
|
+
return false;
|
|
90
|
+
break;
|
|
91
|
+
case 0x200d: // ZWJ: RFC 5892 Appendix A.2
|
|
92
|
+
if (!prev || !Pattern.RE_VIRAMA.test(chars[i - 1]))
|
|
93
|
+
return false;
|
|
94
|
+
break;
|
|
95
|
+
case 0x30fb: // Checked at end via hasJapanese
|
|
96
|
+
break; // KATAKANA MIDDLE DOT
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
// 4. Global Context Validations (Post-loop)
|
|
100
|
+
// RFC 5892 Appendix A.7 - Katakana Middle Dot requirement
|
|
101
|
+
if (value.includes('\u30fb') && !hasJapanese)
|
|
102
|
+
return false;
|
|
103
|
+
// RFC 5892 Appendix A.8/A.9 - Mixing Arabic Digits
|
|
104
|
+
// if (hasArabicIndic && hasExtendedArabicIndic) return false // (no-spec-coverage)
|
|
105
|
+
return true;
|
|
106
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// deno-fmt-ignore-file
|
|
2
|
+
// -------------------------------------------------------------------
|
|
3
|
+
// Validation Rules
|
|
4
|
+
// -------------------------------------------------------------------
|
|
5
|
+
export const RE_RULE_HYPHEN_PLACEMENT = /^(?!-).*(?<!-)$/;
|
|
6
|
+
export const RE_RULE_NOT_RESERVED_ACE = /^(?!..--)/;
|
|
7
|
+
export const RE_ASCII_LDH = /^[a-zA-Z0-9-]*$/;
|
|
8
|
+
// -------------------------------------------------------------------
|
|
9
|
+
// ASCII & Encoding
|
|
10
|
+
// -------------------------------------------------------------------
|
|
11
|
+
export const RE_ASCII = /^\p{ASCII}*$/u;
|
|
12
|
+
export const RE_NON_ASCII = /[^\p{ASCII}]/u;
|
|
13
|
+
// -------------------------------------------------------------------
|
|
14
|
+
// Structural & Unicode Controls
|
|
15
|
+
// -------------------------------------------------------------------
|
|
16
|
+
export const RE_HIGH_SURROGATE = /[\u{d800}-\u{dbff}]/u;
|
|
17
|
+
export const RE_REGIONAL_INDICATOR = /[\u{1f1e6}-\u{1f1ff}]/u;
|
|
18
|
+
export const RE_VARIATION_SELECTOR = /[\u{fe00}-\u{fe0f}]/u;
|
|
19
|
+
export const RE_ZERO_WIDTH_JOINER = /\u{200d}/u;
|
|
20
|
+
// -------------------------------------------------------------------
|
|
21
|
+
// Numbers & Digits
|
|
22
|
+
// -------------------------------------------------------------------
|
|
23
|
+
export const RE_ASCII_DIGIT = /[0-9]/;
|
|
24
|
+
export const RE_ARABIC_INDIC_DIGIT = /[\u{0660}-\u{0669}]/u;
|
|
25
|
+
export const RE_EXT_ARABIC_INDIC_DIGIT = /[\u{06f0}-\u{06f9}]/u;
|
|
26
|
+
// -------------------------------------------------------------------
|
|
27
|
+
// Separators
|
|
28
|
+
// -------------------------------------------------------------------
|
|
29
|
+
export const RE_COMMON_SEPARATOR = /[\u{002e}\u{002c}\u{003a}\u{002f}]/u;
|
|
30
|
+
export const RE_EUROPEAN_SEPARATOR = /[\u{002d}\u{002b}]/u;
|
|
31
|
+
// -------------------------------------------------------------------
|
|
32
|
+
// General Categories
|
|
33
|
+
// -------------------------------------------------------------------
|
|
34
|
+
export const RE_MARK_NONSPACING = /\p{Mn}/u;
|
|
35
|
+
export const RE_MARK_SPACING_COMBINING = /\p{Mc}/u;
|
|
36
|
+
export const RE_MARK_ENCLOSING = /\p{Me}/u;
|
|
37
|
+
export const RE_COMBINING_MARK = /[\p{Mn}\p{Mc}\p{Me}]/u;
|
|
38
|
+
export const RE_LETTER = /\p{L}/u;
|
|
39
|
+
export const RE_NUMBER_DECIMAL = /\p{Nd}/u;
|
|
40
|
+
// -------------------------------------------------------------------
|
|
41
|
+
// Scripts
|
|
42
|
+
// -------------------------------------------------------------------
|
|
43
|
+
export const RE_SCRIPT_GREEK = /\p{Script=Greek}/u;
|
|
44
|
+
export const RE_SCRIPT_HEBREW = /\p{Script=Hebrew}/u;
|
|
45
|
+
export const RE_SCRIPT_JAPANESE = /[\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Han}]/u;
|
|
46
|
+
export const RE_SCRIPT_ARABIC_LETTER = /[\p{Script=Arabic}\p{Script=Syriac}\p{Script=Thaana}\p{Script=Mandaic}]/u;
|
|
47
|
+
// -------------------------------------------------------------------
|
|
48
|
+
// RFC Specifications & Context Exceptions
|
|
49
|
+
// -------------------------------------------------------------------
|
|
50
|
+
export const RE_VIRAMA = /[\u{094d}\u{09cd}\u{0a4d}\u{0acd}\u{0b4d}\u{0bcd}\u{0c4d}\u{0ccd}\u{0d3b}\u{0d3c}\u{0d4d}\u{0dca}\u{1b44}\u{1baa}\u{1bab}\u{a9c0}\u{11046}\u{1107f}\u{110b9}\u{11133}\u{11134}\u{111c0}\u{11235}\u{1134d}\u{11442}\u{114c2}\u{115bf}\u{1163f}\u{116b6}\u{11c3f}\u{11d44}\u{11d45}]/u;
|
|
51
|
+
export const RE_RFC5892_DISALLOWED = /[\u{0640}\u{07fa}\u{302e}\u{302f}\u{3031}\u{3032}\u{3033}\u{3034}\u{3035}\u{303b}]/u;
|
|
52
|
+
export const RE_CONTEXTO_EXCEPTIONS = /[\u{00b7}\u{0375}\u{05f3}\u{05f4}\u{200c}\u{200d}\u{30fb}]/u;
|
|
53
|
+
export const RE_PVALID_EXCEPTIONS = /[\u{00df}\u{03c2}\u{06fd}\u{06fe}\u{0f0b}\u{3007}]/u;
|
|
54
|
+
// -------------------------------------------------------------------
|
|
55
|
+
// Composite Patterns
|
|
56
|
+
// -------------------------------------------------------------------
|
|
57
|
+
export const RE_EUROPEAN_NUMBER = new RegExp([
|
|
58
|
+
RE_ASCII_DIGIT,
|
|
59
|
+
RE_EXT_ARABIC_INDIC_DIGIT
|
|
60
|
+
].map((regexp) => regexp.source).join('|'), 'u');
|
|
61
|
+
export const RE_PERMITTED_CATEGORY = new RegExp([
|
|
62
|
+
RE_LETTER,
|
|
63
|
+
RE_EUROPEAN_SEPARATOR,
|
|
64
|
+
RE_COMMON_SEPARATOR,
|
|
65
|
+
RE_NUMBER_DECIMAL,
|
|
66
|
+
RE_MARK_NONSPACING,
|
|
67
|
+
RE_MARK_SPACING_COMBINING,
|
|
68
|
+
RE_CONTEXTO_EXCEPTIONS,
|
|
69
|
+
RE_PVALID_EXCEPTIONS
|
|
70
|
+
].map((regexp) => regexp.source).join('|'), 'u');
|
|
@@ -1,38 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
// Ranged Fast Path
|
|
3
|
-
// ------------------------------------------------------------------
|
|
4
|
-
/* Returns true if the value is a IPV4 address from index range offsets */
|
|
5
|
-
export function IsIPv4Internal(value, start, end) {
|
|
6
|
-
let dots = 0;
|
|
7
|
-
let num = 0;
|
|
8
|
-
let digits = 0;
|
|
9
|
-
let leading = 0;
|
|
10
|
-
for (let i = start; i < end; i++) {
|
|
11
|
-
const ch = value.charCodeAt(i);
|
|
12
|
-
if (ch === 46) { // '.'
|
|
13
|
-
if (digits === 0 || num > 255 || (leading === 48 && digits > 1))
|
|
14
|
-
return false;
|
|
15
|
-
dots++;
|
|
16
|
-
num = 0;
|
|
17
|
-
digits = 0;
|
|
18
|
-
leading = 0;
|
|
19
|
-
}
|
|
20
|
-
else if (ch >= 48 && ch <= 57) { // '0'-'9'
|
|
21
|
-
if (digits === 0)
|
|
22
|
-
leading = ch;
|
|
23
|
-
num = num * 10 + (ch - 48);
|
|
24
|
-
digits++;
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return dots === 3 && digits > 0 && num <= 255 && !(leading === 48 && digits > 1);
|
|
31
|
-
}
|
|
1
|
+
const IPv4 = /^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/;
|
|
32
2
|
/**
|
|
33
3
|
* Returns true if the value is a IPV4 address
|
|
34
4
|
* @specification http://tools.ietf.org/html/rfc2673#section-3.2
|
|
35
5
|
*/
|
|
36
6
|
export function IsIPv4(value) {
|
|
37
|
-
return
|
|
7
|
+
return IPv4.test(value);
|
|
38
8
|
}
|