@askdkc/dsh-cli 0.11.7 → 0.12.1
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/LICENSE +1 -0
- package/README.md +49 -282
- package/cordis.patch.yml +1 -0
- package/cordis.yml +1 -0
- package/lib/types/adapter/channel/ui-policy.d.ts +1 -1
- package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -1
- package/lib/types/adapter/channel/ui-policy.js +1 -0
- package/lib/types/adapter/ports/channel-ui.d.ts +2 -0
- package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
- package/lib/types/components/LogoV2.d.ts +2 -1
- package/lib/types/components/LogoV2.d.ts.map +1 -1
- package/lib/types/components/LogoV2.js +9 -15
- package/lib/types/components/ModelDialogLayer.d.ts +12 -0
- package/lib/types/components/ModelDialogLayer.d.ts.map +1 -0
- package/lib/types/components/ModelDialogLayer.js +39 -0
- package/lib/types/components/ModelPicker.d.ts +12 -43
- package/lib/types/components/ModelPicker.d.ts.map +1 -1
- package/lib/types/components/ModelPicker.js +15 -47
- package/lib/types/components/Spinner/SpinnerAnimationRow.d.ts +6 -1
- package/lib/types/components/Spinner/SpinnerAnimationRow.d.ts.map +1 -1
- package/lib/types/components/Spinner/SpinnerAnimationRow.js +8 -9
- package/lib/types/components/WorkingSpinner.d.ts +3 -1
- package/lib/types/components/WorkingSpinner.d.ts.map +1 -1
- package/lib/types/components/WorkingSpinner.js +9 -4
- package/lib/types/components/bigfont.d.ts +2 -0
- package/lib/types/components/bigfont.d.ts.map +1 -1
- package/lib/types/components/bigfont.js +5 -1
- package/lib/types/components/design-system/ListItem.d.ts.map +1 -1
- package/lib/types/components/design-system/ListItem.js +1 -1
- package/lib/types/components/splashLayout.d.ts +12 -0
- package/lib/types/components/splashLayout.d.ts.map +1 -0
- package/lib/types/components/splashLayout.js +18 -0
- package/lib/types/dsh-adapter/activity-store.d.ts +1 -1
- package/lib/types/dsh-adapter/activity-store.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/command-completions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/command-completions.js +11 -2
- package/lib/types/dsh-adapter/channel/projection.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/projection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/projection.js +4 -0
- package/lib/types/dsh-adapter/channel/session-reset.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-reset.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-reset.js +2 -0
- package/lib/types/dsh-adapter/channel/state.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/state.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/state.js +2 -1
- package/lib/types/dsh-adapter/contract.d.ts +3 -3
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +4 -3
- package/lib/types/i18n.d.ts +44 -22
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +22 -6
- package/lib/types/modelFavorites.d.ts +8 -0
- package/lib/types/modelFavorites.d.ts.map +1 -0
- package/lib/types/modelFavorites.js +59 -0
- package/lib/types/modelGroups.d.ts +6 -7
- package/lib/types/modelGroups.d.ts.map +1 -1
- package/lib/types/modelGroups.js +8 -7
- package/lib/types/modelPickerRows.d.ts +19 -0
- package/lib/types/modelPickerRows.d.ts.map +1 -0
- package/lib/types/modelPickerRows.js +54 -0
- package/lib/types/screens/Chat.d.ts.map +1 -1
- package/lib/types/screens/Chat.js +189 -240
- package/lib/types/screens/chatOverlay.d.ts.map +1 -1
- package/lib/types/screens/chatOverlay.js +2 -0
- package/node_modules/@askdkc/dsh-auth/LICENSE +1 -0
- package/node_modules/@askdkc/dsh-auth/README.ja.md +17 -12
- package/node_modules/@askdkc/dsh-auth/README.md +18 -13
- package/node_modules/@askdkc/dsh-auth/package.json +17 -12
- package/node_modules/dsh-working-activity/LICENSE +28 -0
- package/node_modules/dsh-working-activity/README.md +16 -0
- package/node_modules/dsh-working-activity/cordis.patch.yml +19 -0
- package/node_modules/dsh-working-activity/lib/client.js +169 -0
- package/node_modules/dsh-working-activity/lib/client.js.map +1 -0
- package/node_modules/dsh-working-activity/lib/types/activity-event.d.ts +147 -0
- package/node_modules/dsh-working-activity/lib/types/activity-event.js +18 -0
- package/node_modules/dsh-working-activity/lib/types/client/WorkingLine.d.ts +8 -0
- package/node_modules/dsh-working-activity/lib/types/client/WorkingLine.d.ts.map +1 -0
- package/node_modules/dsh-working-activity/lib/types/client/WorkingLine.js +57 -0
- package/node_modules/dsh-working-activity/lib/types/client/activity.d.ts +37 -0
- package/node_modules/dsh-working-activity/lib/types/client/activity.d.ts.map +1 -0
- package/node_modules/dsh-working-activity/lib/types/client/activity.js +26 -0
- package/node_modules/dsh-working-activity/lib/types/client/elapsed.d.ts +41 -0
- package/node_modules/dsh-working-activity/lib/types/client/elapsed.d.ts.map +1 -0
- package/node_modules/dsh-working-activity/lib/types/client/elapsed.js +78 -0
- package/node_modules/dsh-working-activity/lib/types/client/index.d.ts +26 -0
- package/node_modules/dsh-working-activity/lib/types/client/index.d.ts.map +1 -0
- package/node_modules/dsh-working-activity/lib/types/client/index.js +19 -0
- package/node_modules/dsh-working-activity/lib/types/compat/assistant-stream.d.ts +59 -0
- package/node_modules/dsh-working-activity/lib/types/compat/assistant-stream.js +189 -0
- package/node_modules/dsh-working-activity/lib/types/compat/session-events.d.ts +38 -0
- package/node_modules/dsh-working-activity/lib/types/compat/session-events.js +193 -0
- package/node_modules/dsh-working-activity/lib/types/compat/tool-result.d.ts +72 -0
- package/node_modules/dsh-working-activity/lib/types/compat/tool-result.js +136 -0
- package/node_modules/dsh-working-activity/lib/types/config.d.ts +74 -0
- package/node_modules/dsh-working-activity/lib/types/config.js +142 -0
- package/node_modules/dsh-working-activity/lib/types/events.d.ts +41 -0
- package/node_modules/dsh-working-activity/lib/types/events.js +9 -0
- package/node_modules/dsh-working-activity/lib/types/frames.d.ts +36 -0
- package/node_modules/dsh-working-activity/lib/types/frames.js +126 -0
- package/node_modules/dsh-working-activity/lib/types/index.d.ts +71 -0
- package/node_modules/dsh-working-activity/lib/types/index.js +350 -0
- package/node_modules/dsh-working-activity/lib/types/invariant.d.ts +15 -0
- package/node_modules/dsh-working-activity/lib/types/invariant.js +72 -0
- package/node_modules/dsh-working-activity/lib/types/japanese.d.ts +28 -0
- package/node_modules/dsh-working-activity/lib/types/japanese.js +47 -0
- package/node_modules/dsh-working-activity/lib/types/lang.d.ts +140 -0
- package/node_modules/dsh-working-activity/lib/types/lang.js +209 -0
- package/node_modules/dsh-working-activity/lib/types/phrases.d.ts +246 -0
- package/node_modules/dsh-working-activity/lib/types/phrases.js +611 -0
- package/node_modules/dsh-working-activity/lib/types/projection.d.ts +168 -0
- package/node_modules/dsh-working-activity/lib/types/projection.js +162 -0
- package/node_modules/dsh-working-activity/lib/types/registration.d.ts +6 -0
- package/node_modules/dsh-working-activity/lib/types/registration.js +94 -0
- package/node_modules/dsh-working-activity/lib/types/status.d.ts +400 -0
- package/node_modules/dsh-working-activity/lib/types/status.js +1306 -0
- package/node_modules/dsh-working-activity/package.json +108 -0
- package/node_modules/dsh-working-activity/src/activity-event.ts +106 -0
- package/node_modules/dsh-working-activity/src/client/WorkingLine.module.css +74 -0
- package/node_modules/dsh-working-activity/src/client/WorkingLine.tsx +94 -0
- package/node_modules/dsh-working-activity/src/client/activity.ts +43 -0
- package/node_modules/dsh-working-activity/src/client/css-modules.d.ts +6 -0
- package/node_modules/dsh-working-activity/src/client/elapsed.ts +88 -0
- package/node_modules/dsh-working-activity/src/client/index.ts +45 -0
- package/node_modules/dsh-working-activity/src/compat/assistant-stream.ts +209 -0
- package/node_modules/dsh-working-activity/src/compat/session-events.ts +201 -0
- package/node_modules/dsh-working-activity/src/compat/tool-result.ts +132 -0
- package/node_modules/dsh-working-activity/src/config.ts +176 -0
- package/node_modules/dsh-working-activity/src/events.ts +45 -0
- package/node_modules/dsh-working-activity/src/frames.ts +138 -0
- package/node_modules/dsh-working-activity/src/index.ts +467 -0
- package/node_modules/dsh-working-activity/src/invariant.ts +98 -0
- package/node_modules/dsh-working-activity/src/japanese.ts +47 -0
- package/node_modules/dsh-working-activity/src/lang.ts +221 -0
- package/node_modules/dsh-working-activity/src/phrases.ts +715 -0
- package/node_modules/dsh-working-activity/src/projection.ts +259 -0
- package/node_modules/dsh-working-activity/src/registration.ts +99 -0
- package/node_modules/dsh-working-activity/src/status.ts +1474 -0
- package/package.json +104 -100
- package/vendor/dsh-working-activity/node_modules/zod/LICENSE +21 -0
- package/vendor/dsh-working-activity/node_modules/zod/README.md +191 -0
- package/vendor/dsh-working-activity/node_modules/zod/index.cjs +33 -0
- package/vendor/dsh-working-activity/node_modules/zod/index.d.cts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/index.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/index.js +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/locales/index.cjs +17 -0
- package/vendor/dsh-working-activity/node_modules/zod/locales/index.d.cts +1 -0
- package/vendor/dsh-working-activity/node_modules/zod/locales/index.d.ts +1 -0
- package/vendor/dsh-working-activity/node_modules/zod/locales/index.js +1 -0
- package/vendor/dsh-working-activity/node_modules/zod/locales/package.json +7 -0
- package/vendor/dsh-working-activity/node_modules/zod/mini/index.cjs +32 -0
- package/vendor/dsh-working-activity/node_modules/zod/mini/index.d.cts +3 -0
- package/vendor/dsh-working-activity/node_modules/zod/mini/index.d.ts +3 -0
- package/vendor/dsh-working-activity/node_modules/zod/mini/index.js +3 -0
- package/vendor/dsh-working-activity/node_modules/zod/mini/package.json +7 -0
- package/vendor/dsh-working-activity/node_modules/zod/package.json +135 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/index.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/locales/index.ts +1 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/mini/index.ts +3 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/errors.ts +13 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/external.ts +6 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/index.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v3/types.ts +5138 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/checks.ts +32 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/compat.ts +70 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/errors.ts +82 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/external.ts +52 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/from-json-schema.ts +659 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/parse.ts +82 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/schemas.ts +2672 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/assignability.test.ts +216 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/catch.test.ts +326 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/codec.test.ts +703 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/default.test.ts +409 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +197 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +694 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +807 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +895 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/global-config.test.ts +39 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +46 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/number.test.ts +325 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/object.test.ts +717 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/optional.test.ts +333 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/partial.test.ts +450 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +26 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/record.test.ts +717 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +631 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/refine.test.ts +633 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/string.test.ts +1224 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3125 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/tuple.test.ts +496 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/union.test.ts +273 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/api.ts +1823 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/checks.ts +1293 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/config.ts +15 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/core.ts +153 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/errors.ts +455 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/index.ts +16 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/json-schema-processors.ts +666 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/json-schema.ts +147 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/parse.ts +195 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/regexes.ts +190 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/schemas.ts +4730 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/el.test.ts +215 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/to-json-schema.ts +622 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/util.ts +983 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/index.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ar.ts +115 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/az.ts +111 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/be.ts +176 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/bg.ts +128 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ca.ts +116 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/cs.ts +118 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/da.ts +123 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/de.ts +116 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/el.ts +121 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/en.ts +123 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/eo.ts +118 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/es.ts +141 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/fa.ts +126 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/fi.ts +121 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/fr.ts +132 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/he.ts +246 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/hr.ts +131 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/hu.ts +117 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/hy.ts +164 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/id.ts +115 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/index.ts +52 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/is.ts +119 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/it.ts +116 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ja.ts +114 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ka.ts +123 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/km.ts +119 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ko.ts +121 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/lt.ts +239 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/mk.ts +118 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ms.ts +115 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/nl.ts +121 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/no.ts +116 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ota.ts +117 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/pl.ts +118 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ps.ts +126 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/pt.ts +116 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ro.ts +129 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ru.ts +176 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/sl.ts +118 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/sv.ts +119 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ta.ts +118 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/th.ts +119 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/tr.ts +111 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/uk.ts +117 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/ur.ts +119 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/uz.ts +117 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/vi.ts +117 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/yo.ts +124 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/external.ts +41 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/parse.ts +14 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/schemas.ts +1947 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/codec.test.ts +548 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/index.test.ts +993 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +325 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4/mini/tests/string.test.ts +352 -0
- package/vendor/dsh-working-activity/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/ZodError.cjs +138 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/ZodError.js +133 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/errors.cjs +17 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/errors.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/errors.d.ts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/errors.js +9 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/external.cjs +22 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/external.d.cts +6 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/external.d.ts +6 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/external.js +6 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/helpers/util.js +133 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/index.cjs +33 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/index.d.cts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/index.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/index.js +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/locales/en.cjs +112 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/locales/en.js +109 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/package.json +7 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/standard-schema.js +1 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/types.cjs +3777 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/types.d.cts +1034 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/types.d.ts +1034 -0
- package/vendor/dsh-working-activity/node_modules/zod/v3/types.js +3695 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/checks.cjs +33 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/checks.js +1 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/coerce.js +17 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/compat.cjs +61 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/compat.d.cts +50 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/compat.d.ts +50 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/compat.js +31 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/errors.cjs +74 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/errors.js +48 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/external.cjs +73 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/external.d.cts +16 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/external.d.ts +16 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/external.js +20 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/from-json-schema.cjs +625 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/from-json-schema.js +599 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/index.cjs +33 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/index.js +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/iso.js +30 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/package.json +7 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/parse.cjs +41 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/parse.d.cts +31 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/parse.d.ts +31 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/parse.js +15 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/schemas.cjs +1511 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/schemas.d.cts +767 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/schemas.d.ts +767 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/classic/schemas.js +1395 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/api.cjs +1227 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/api.d.cts +325 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/api.d.ts +325 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/api.js +1087 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/checks.cjs +601 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/checks.js +575 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/core.cjs +85 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/core.d.cts +70 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/core.d.ts +70 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/core.js +78 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/doc.cjs +39 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/doc.js +35 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/errors.cjs +216 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/errors.d.cts +221 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/errors.d.ts +221 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/errors.js +185 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/index.cjs +47 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/index.d.cts +16 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/index.d.ts +16 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/index.js +16 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema-processors.cjs +644 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema-processors.js +601 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema.d.cts +88 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema.d.ts +88 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/json-schema.js +1 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/package.json +7 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/parse.cjs +131 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/parse.d.cts +49 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/parse.d.ts +49 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/parse.js +93 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/regexes.cjs +172 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/regexes.d.cts +85 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/regexes.d.ts +85 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/regexes.js +139 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/registries.cjs +56 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/registries.js +51 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/schemas.cjs +2270 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/schemas.d.cts +1184 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/schemas.d.ts +1184 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/schemas.js +2239 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/to-json-schema.cjs +457 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/to-json-schema.js +448 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/util.cjs +734 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/util.d.cts +200 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/util.d.ts +200 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/util.js +674 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/versions.cjs +8 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/core/versions.js +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/index.cjs +22 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/index.d.cts +3 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/index.d.ts +3 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/index.js +3 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ar.cjs +133 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ar.js +106 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/az.cjs +132 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/az.js +105 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/be.cjs +183 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/be.js +156 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/bg.cjs +147 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/bg.js +120 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ca.cjs +134 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ca.js +107 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/cs.cjs +138 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/cs.js +111 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/da.cjs +142 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/da.js +115 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/de.cjs +135 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/de.js +108 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/el.cjs +136 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/el.js +109 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/en.cjs +140 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/en.js +113 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/eo.cjs +136 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/eo.js +109 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/es.cjs +159 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/es.js +132 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fa.cjs +141 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fa.js +114 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fi.cjs +139 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fi.js +112 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fr-CA.js +107 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fr.cjs +152 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/fr.js +125 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/he.cjs +241 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/he.js +214 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hr.cjs +149 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hr.js +122 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hu.cjs +135 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hu.js +108 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hy.cjs +174 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/hy.js +147 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/id.cjs +133 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/id.js +106 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/index.cjs +111 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/index.d.cts +52 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/index.d.ts +52 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/index.js +52 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/is.cjs +136 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/is.js +109 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/it.cjs +135 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/it.js +108 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ja.cjs +134 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ja.js +107 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ka.cjs +139 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ka.js +112 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/kh.js +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/km.cjs +137 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/km.js +110 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ko.cjs +138 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ko.js +111 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/lt.cjs +230 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/lt.js +203 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/mk.cjs +136 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/mk.js +109 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ms.cjs +134 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ms.js +107 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/nl.cjs +137 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/nl.js +110 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/no.cjs +135 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/no.js +108 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ota.cjs +136 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ota.js +109 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/package.json +7 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/pl.cjs +136 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/pl.js +109 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ps.cjs +141 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ps.js +114 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/pt.cjs +135 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/pt.js +108 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ro.cjs +146 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ro.js +119 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ru.cjs +183 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ru.js +156 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/sl.cjs +136 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/sl.js +109 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/sv.cjs +137 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/sv.js +110 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ta.cjs +137 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ta.js +110 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/th.cjs +137 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/th.js +110 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/tr.cjs +132 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/tr.js +105 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ua.js +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/uk.cjs +135 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/uk.js +108 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ur.cjs +137 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/ur.js +110 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/uz.cjs +137 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/uz.js +110 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/vi.cjs +135 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/vi.js +108 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/yo.cjs +134 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/yo.js +107 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/zh-CN.js +109 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/locales/zh-TW.js +107 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/checks.js +1 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/coerce.cjs +52 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/coerce.js +22 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/external.cjs +63 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/external.d.cts +13 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/external.d.ts +13 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/external.js +14 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/index.cjs +32 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/index.js +3 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/iso.cjs +64 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/iso.js +34 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/package.json +7 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/parse.cjs +16 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/parse.js +1 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/schemas.cjs +1083 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/schemas.d.cts +445 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/schemas.d.ts +445 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/mini/schemas.js +961 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4/package.json +7 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4-mini/index.cjs +32 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4-mini/index.js +3 -0
- package/vendor/dsh-working-activity/node_modules/zod/v4-mini/package.json +7 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Durable `SessionEvent` → {@link ActivityEvent} normalization.
|
|
3
|
+
*
|
|
4
|
+
* Every host-shape guess for the durable log lives here (plus
|
|
5
|
+
* `./tool-result.ts` for the tool-result payload), so a host-line change stays
|
|
6
|
+
* a one-file fix and the state machine keeps consuming meaning only.
|
|
7
|
+
*
|
|
8
|
+
* Measured on the DSH `0.1.7-rc.2` line: `assistant/chunk` no longer exists in
|
|
9
|
+
* `SessionEventMap` or in `KNOWN_SESSION_EVENT_TYPES` (live deltas arrive as
|
|
10
|
+
* transient `agent/assistant-stream` frames instead), so the mapping below is
|
|
11
|
+
* the legacy path kept for replaying older logs. It must stay: sessions
|
|
12
|
+
* written by pre-0.1.5 hosts still carry those events, and replaying them is
|
|
13
|
+
* the only way a resuming user sees the same line they would have seen live.
|
|
14
|
+
* @module @deepseek-ai/dsh-working-activity/compat/session-events
|
|
15
|
+
*/
|
|
16
|
+
import { resultCallId, resultFailed } from './tool-result.js';
|
|
17
|
+
/** Turn-end reason kinds that mean "the user stopped this turn". */
|
|
18
|
+
const INTERRUPTED_REASONS = ['aborted', 'interrupted'];
|
|
19
|
+
/**
|
|
20
|
+
* Normalize one durable session event.
|
|
21
|
+
*
|
|
22
|
+
* Returns zero events for anything the tracker does not model (including a
|
|
23
|
+
* tool result whose call id cannot be resolved — an unpaired result is
|
|
24
|
+
* dropped, never guessed at).
|
|
25
|
+
* @param event - Raw durable session event.
|
|
26
|
+
* @returns the domain events this host event carries, in order.
|
|
27
|
+
*/
|
|
28
|
+
export function toActivityEvents(event) {
|
|
29
|
+
// `assistant/attempt` exists on the 0.1.5+ host lines only, and this package
|
|
30
|
+
// still compiles against `@deepseek-ai/dsh-session@0.1.0-rc.6`, where the
|
|
31
|
+
// member is absent from `SessionEventMap` — a literal `case` for it would not
|
|
32
|
+
// typecheck there (TS2367, no overlap). Comparing the widened string keeps one
|
|
33
|
+
// adapter serving every corridor.
|
|
34
|
+
const eventType = event.type;
|
|
35
|
+
if (eventType === 'assistant/attempt') {
|
|
36
|
+
// A PARTIAL settlement: the durable text may be shorter than what was
|
|
37
|
+
// streamed, so provisional narration must go. The live `end` frame reports
|
|
38
|
+
// the same outcome; folding the durable event too keeps replay of logs
|
|
39
|
+
// written before (or without) frames correct. This is not an abandonment.
|
|
40
|
+
return [{ kind: 'stream-reset', at: event.time, reason: 'attempt-settled' }];
|
|
41
|
+
}
|
|
42
|
+
if (eventType === 'model/selection') {
|
|
43
|
+
// The selection the host validated for subsequent prompt assembly. Declared
|
|
44
|
+
// by the session controller's module merge, so it is absent from the
|
|
45
|
+
// rc.6-era `SessionEventMap` this package compiles against — compared as a
|
|
46
|
+
// widened string for the same reason `assistant/attempt` is.
|
|
47
|
+
//
|
|
48
|
+
// A selection without a usable model id says nothing about the route, and
|
|
49
|
+
// the tracker deduplicates repeats, so every selection is forwarded here.
|
|
50
|
+
const model = event.data.model;
|
|
51
|
+
if (typeof model !== 'string' || model === '')
|
|
52
|
+
return [];
|
|
53
|
+
return [{ kind: 'route-change', at: event.time, model }];
|
|
54
|
+
}
|
|
55
|
+
if (eventType === 'user/message') {
|
|
56
|
+
// A compaction replaces the context with a checkpoint message; its source
|
|
57
|
+
// kind is the durable marker. The source carries no overflow flag (only the
|
|
58
|
+
// compaction id and the initiating command), so a finished compaction is
|
|
59
|
+
// all this signal can prove.
|
|
60
|
+
const data = event.data;
|
|
61
|
+
const source = data.source ?? data.message?.source;
|
|
62
|
+
if (source?.kind === 'compact-checkpoint')
|
|
63
|
+
return [{ kind: 'compaction', at: event.time }];
|
|
64
|
+
if (source?.kind !== 'user')
|
|
65
|
+
return [];
|
|
66
|
+
const content = data.content ?? data.message?.content;
|
|
67
|
+
if (!Array.isArray(content))
|
|
68
|
+
return [];
|
|
69
|
+
const first = content.find(block => block !== null && typeof block === 'object' && block.type === 'text');
|
|
70
|
+
return typeof first?.text === 'string' && first.text.trim() !== ''
|
|
71
|
+
? [{ kind: 'user-prompt', at: event.time, text: first.text }]
|
|
72
|
+
: [];
|
|
73
|
+
}
|
|
74
|
+
// The stall vocabulary (0.1.7-rc.2 `KNOWN_SESSION_EVENT_TYPES`; widened
|
|
75
|
+
// strings because the rc.6-era `SessionEventMap` this package compiles
|
|
76
|
+
// against predates them). Without these the line cannot tell "waiting on the
|
|
77
|
+
// model" from "the model is waiting on YOU".
|
|
78
|
+
if (eventType === 'llm/retry' || eventType === 'llm/retry-started') {
|
|
79
|
+
// The provider pushed back (rate limit / transient error); the host backs
|
|
80
|
+
// off before another attempt.
|
|
81
|
+
return [{ kind: 'waiting-reason', at: event.time, reason: 'retry' }];
|
|
82
|
+
}
|
|
83
|
+
if (eventType === 'approval/asked') {
|
|
84
|
+
// A tool is parked on the user's decision.
|
|
85
|
+
return [{ kind: 'waiting-reason', at: event.time, reason: 'approval' }];
|
|
86
|
+
}
|
|
87
|
+
if (eventType === 'approval/decided') {
|
|
88
|
+
return [{ kind: 'waiting-cleared', at: event.time }];
|
|
89
|
+
}
|
|
90
|
+
if (eventType === 'compaction/start') {
|
|
91
|
+
return [{ kind: 'waiting-reason', at: event.time, reason: 'compaction' }];
|
|
92
|
+
}
|
|
93
|
+
if (eventType === 'assistant/chunk') {
|
|
94
|
+
// This legacy member is absent from the current host's type union.
|
|
95
|
+
const legacy = event;
|
|
96
|
+
const chunk = legacy.data.chunk;
|
|
97
|
+
if (chunk?.type !== 'text-delta' && chunk?.type !== 'reasoning-delta')
|
|
98
|
+
return [];
|
|
99
|
+
if (typeof chunk.text !== 'string' || chunk.text.length === 0)
|
|
100
|
+
return [];
|
|
101
|
+
return [{
|
|
102
|
+
kind: 'stream-delta',
|
|
103
|
+
at: legacy.time,
|
|
104
|
+
stream: chunk.type === 'text-delta' ? 'text' : 'reasoning',
|
|
105
|
+
text: chunk.text,
|
|
106
|
+
}];
|
|
107
|
+
}
|
|
108
|
+
switch (event.type) {
|
|
109
|
+
case 'turn/start':
|
|
110
|
+
return [{ kind: 'turn-start', at: event.time }];
|
|
111
|
+
case 'step/start':
|
|
112
|
+
return [{ kind: 'step-start', at: event.time }];
|
|
113
|
+
case 'assistant/message': {
|
|
114
|
+
const usage = event.data.usage;
|
|
115
|
+
const normalized = usage === undefined ? undefined : normalizeUsage(usage);
|
|
116
|
+
const text = settledText(event.data.message);
|
|
117
|
+
return [{
|
|
118
|
+
kind: 'assistant-settled',
|
|
119
|
+
at: event.time,
|
|
120
|
+
...(normalized === undefined ? {} : { usage: normalized }),
|
|
121
|
+
...(text === '' ? {} : { text }),
|
|
122
|
+
}];
|
|
123
|
+
}
|
|
124
|
+
case 'tool/call':
|
|
125
|
+
return [{
|
|
126
|
+
kind: 'tool-start',
|
|
127
|
+
at: event.time,
|
|
128
|
+
callId: event.data.callId,
|
|
129
|
+
name: event.data.name,
|
|
130
|
+
arguments: event.data.arguments,
|
|
131
|
+
}];
|
|
132
|
+
case 'tool/result': {
|
|
133
|
+
const callId = resultCallId(event);
|
|
134
|
+
if (callId === undefined)
|
|
135
|
+
return [];
|
|
136
|
+
return [{ kind: 'tool-end', at: event.time, callId, failed: resultFailed(event) }];
|
|
137
|
+
}
|
|
138
|
+
case 'turn/end': {
|
|
139
|
+
const reason = event.data.reason;
|
|
140
|
+
const interrupted = typeof reason?.kind === 'string' && INTERRUPTED_REASONS.includes(reason.kind);
|
|
141
|
+
return [{ kind: 'turn-end', at: event.time, interrupted }];
|
|
142
|
+
}
|
|
143
|
+
default:
|
|
144
|
+
return [];
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Feed one durable session event into any domain-event consumer.
|
|
149
|
+
*
|
|
150
|
+
* Kept as a free function so the tracker itself never learns a host type: the
|
|
151
|
+
* published `onSessionEvent` method delegates here.
|
|
152
|
+
* @param tracker - Consumer of normalized events.
|
|
153
|
+
* @param event - Raw durable session event.
|
|
154
|
+
*/
|
|
155
|
+
export function feedSessionEvent(tracker, event) {
|
|
156
|
+
for (const activityEvent of toActivityEvents(event))
|
|
157
|
+
tracker.onEvent(activityEvent);
|
|
158
|
+
}
|
|
159
|
+
/** Copy the host's usage counters into the plugin's own shape. */
|
|
160
|
+
function normalizeUsage(usage) {
|
|
161
|
+
return {
|
|
162
|
+
inputTokens: usage.inputTokens,
|
|
163
|
+
outputTokens: usage.outputTokens,
|
|
164
|
+
...(usage.cacheReadTokens === undefined ? {} : { cacheReadTokens: usage.cacheReadTokens }),
|
|
165
|
+
...(usage.cacheWriteTokens === undefined ? {} : { cacheWriteTokens: usage.cacheWriteTokens }),
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* The text of a settled assistant message, concatenated from its text blocks.
|
|
170
|
+
*
|
|
171
|
+
* Structural readers only: the message shape is host data, and a message with a
|
|
172
|
+
* different shape yields '' rather than throwing (the tracker then simply has no
|
|
173
|
+
* narration for it).
|
|
174
|
+
* @param message - The event's message payload, of unknown shape.
|
|
175
|
+
* @returns the message text, or '' when it carries none.
|
|
176
|
+
*/
|
|
177
|
+
function settledText(message) {
|
|
178
|
+
if (message === null || typeof message !== 'object')
|
|
179
|
+
return '';
|
|
180
|
+
const content = message.content;
|
|
181
|
+
if (!Array.isArray(content))
|
|
182
|
+
return '';
|
|
183
|
+
let text = '';
|
|
184
|
+
for (const block of content) {
|
|
185
|
+
if (block === null || typeof block !== 'object')
|
|
186
|
+
continue;
|
|
187
|
+
const record = block;
|
|
188
|
+
if (record.type !== 'text' || typeof record.text !== 'string')
|
|
189
|
+
continue;
|
|
190
|
+
text += record.text;
|
|
191
|
+
}
|
|
192
|
+
return text;
|
|
193
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host-payload readers for `tool/result` events — the one place allowed to know
|
|
3
|
+
* how the DSH host spells a tool-call id or a tool failure.
|
|
4
|
+
*
|
|
5
|
+
* The tracker pairs every `tool/result` with the `tool/call` that opened it by
|
|
6
|
+
* exact call-id equality, so a payload shape drift does not throw: it silently
|
|
7
|
+
* resolves no id, and the UI keeps a running tool card that never settles. That
|
|
8
|
+
* is why every shape guess lives in `src/compat/*` — a drift stays a one-file
|
|
9
|
+
* fix here — and why the state machine (`src/status.ts`) must never reach into
|
|
10
|
+
* `event.data` itself. Both readers accept `unknown` and never throw, because
|
|
11
|
+
* the caller hands over raw host events.
|
|
12
|
+
*
|
|
13
|
+
* Measured on the DSH 0.1.7-rc.2 host line over 1290 real `tool/result` events
|
|
14
|
+
* (`data.message` carries `role`, `source: { kind: 'tool', callId }`,
|
|
15
|
+
* `toolCallId`, `content`, `isError`, `id`):
|
|
16
|
+
*
|
|
17
|
+
* | id source | present |
|
|
18
|
+
* | ----------------------- | --------- |
|
|
19
|
+
* | `message.source.callId` | 1290/1290 |
|
|
20
|
+
* | `message.toolCallId` | 1290/1290 |
|
|
21
|
+
* | `content[0].toolCallId` | 0/1290 |
|
|
22
|
+
*
|
|
23
|
+
* The two modern fields were equal in all 1290 events, yet both stay read: the
|
|
24
|
+
* legacy logs this plugin must still replay carry neither and put the id on the
|
|
25
|
+
* content block, which is why {@link resultCallId} keeps a third tier instead
|
|
26
|
+
* of trusting the newest shape alone.
|
|
27
|
+
*
|
|
28
|
+
* Failure signalling on the same corpus is NOT one field: `data.error` was
|
|
29
|
+
* present in 15 events and `message.isError === true` in 17, with neither set
|
|
30
|
+
* containing the other — and legacy logs used a content-block `isError`. Do not
|
|
31
|
+
* "simplify" {@link resultFailed} down to a single signal.
|
|
32
|
+
*
|
|
33
|
+
* @module @deepseek-ai/dsh-working-activity/compat/tool-result
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* The call id a `tool/result` reports, or `undefined` when the payload carries
|
|
37
|
+
* no usable id. Strict precedence, never the other way round:
|
|
38
|
+
*
|
|
39
|
+
* 1. `message.source.callId` — only while `source.kind === 'tool'`, so a source
|
|
40
|
+
* written by another producer (or an unknown future kind) never donates its
|
|
41
|
+
* id;
|
|
42
|
+
* 2. `message.toolCallId` — the echo the measured host line writes beside it;
|
|
43
|
+
* 3. the first `content[]` block with a usable `toolCallId` — the legacy shape,
|
|
44
|
+
* kept last so a lower tier can never override a modern one.
|
|
45
|
+
*
|
|
46
|
+
* Ids that are empty, whitespace-only, or not strings are rejected at every
|
|
47
|
+
* tier: a truthy-but-wrong id would mis-pair a result just as silently as no id
|
|
48
|
+
* at all.
|
|
49
|
+
*
|
|
50
|
+
* @param event - Raw `tool/result` event data (or any host payload).
|
|
51
|
+
* @returns the paired call id, or `undefined` when none is usable.
|
|
52
|
+
*/
|
|
53
|
+
export declare function resultCallId(event: unknown): string | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Whether a `tool/result` reports a failed tool.
|
|
56
|
+
*
|
|
57
|
+
* Three independent signals, OR-ed on purpose (measured 15 vs 17 events on the
|
|
58
|
+
* same corpus, and neither set contains the other — see the module header):
|
|
59
|
+
*
|
|
60
|
+
* - `data.error` present at all — presence, not truthiness, so an explicitly
|
|
61
|
+
* `undefined` field does not count as a failure;
|
|
62
|
+
* - `message.isError === true`;
|
|
63
|
+
* - any `content[]` block with `isError === true` (the legacy signal).
|
|
64
|
+
*
|
|
65
|
+
* A payload that cannot be read is reported as healthy: a missing failure flag
|
|
66
|
+
* costs a wrong badge, while treating unreadable data as failure would flag
|
|
67
|
+
* every successful tool on a shape the host has moved on from.
|
|
68
|
+
*
|
|
69
|
+
* @param event - Raw `tool/result` event data (or any host payload).
|
|
70
|
+
* @returns true when any signal fired, false for a clean or unreadable payload.
|
|
71
|
+
*/
|
|
72
|
+
export declare function resultFailed(event: unknown): boolean;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Host-payload readers for `tool/result` events — the one place allowed to know
|
|
3
|
+
* how the DSH host spells a tool-call id or a tool failure.
|
|
4
|
+
*
|
|
5
|
+
* The tracker pairs every `tool/result` with the `tool/call` that opened it by
|
|
6
|
+
* exact call-id equality, so a payload shape drift does not throw: it silently
|
|
7
|
+
* resolves no id, and the UI keeps a running tool card that never settles. That
|
|
8
|
+
* is why every shape guess lives in `src/compat/*` — a drift stays a one-file
|
|
9
|
+
* fix here — and why the state machine (`src/status.ts`) must never reach into
|
|
10
|
+
* `event.data` itself. Both readers accept `unknown` and never throw, because
|
|
11
|
+
* the caller hands over raw host events.
|
|
12
|
+
*
|
|
13
|
+
* Measured on the DSH 0.1.7-rc.2 host line over 1290 real `tool/result` events
|
|
14
|
+
* (`data.message` carries `role`, `source: { kind: 'tool', callId }`,
|
|
15
|
+
* `toolCallId`, `content`, `isError`, `id`):
|
|
16
|
+
*
|
|
17
|
+
* | id source | present |
|
|
18
|
+
* | ----------------------- | --------- |
|
|
19
|
+
* | `message.source.callId` | 1290/1290 |
|
|
20
|
+
* | `message.toolCallId` | 1290/1290 |
|
|
21
|
+
* | `content[0].toolCallId` | 0/1290 |
|
|
22
|
+
*
|
|
23
|
+
* The two modern fields were equal in all 1290 events, yet both stay read: the
|
|
24
|
+
* legacy logs this plugin must still replay carry neither and put the id on the
|
|
25
|
+
* content block, which is why {@link resultCallId} keeps a third tier instead
|
|
26
|
+
* of trusting the newest shape alone.
|
|
27
|
+
*
|
|
28
|
+
* Failure signalling on the same corpus is NOT one field: `data.error` was
|
|
29
|
+
* present in 15 events and `message.isError === true` in 17, with neither set
|
|
30
|
+
* containing the other — and legacy logs used a content-block `isError`. Do not
|
|
31
|
+
* "simplify" {@link resultFailed} down to a single signal.
|
|
32
|
+
*
|
|
33
|
+
* @module @deepseek-ai/dsh-working-activity/compat/tool-result
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* The call id a `tool/result` reports, or `undefined` when the payload carries
|
|
37
|
+
* no usable id. Strict precedence, never the other way round:
|
|
38
|
+
*
|
|
39
|
+
* 1. `message.source.callId` — only while `source.kind === 'tool'`, so a source
|
|
40
|
+
* written by another producer (or an unknown future kind) never donates its
|
|
41
|
+
* id;
|
|
42
|
+
* 2. `message.toolCallId` — the echo the measured host line writes beside it;
|
|
43
|
+
* 3. the first `content[]` block with a usable `toolCallId` — the legacy shape,
|
|
44
|
+
* kept last so a lower tier can never override a modern one.
|
|
45
|
+
*
|
|
46
|
+
* Ids that are empty, whitespace-only, or not strings are rejected at every
|
|
47
|
+
* tier: a truthy-but-wrong id would mis-pair a result just as silently as no id
|
|
48
|
+
* at all.
|
|
49
|
+
*
|
|
50
|
+
* @param event - Raw `tool/result` event data (or any host payload).
|
|
51
|
+
* @returns the paired call id, or `undefined` when none is usable.
|
|
52
|
+
*/
|
|
53
|
+
export function resultCallId(event) {
|
|
54
|
+
const message = resultMessage(event);
|
|
55
|
+
if (message === undefined)
|
|
56
|
+
return undefined;
|
|
57
|
+
const source = asRecord(message.source);
|
|
58
|
+
if (source?.kind === 'tool') {
|
|
59
|
+
const fromSource = asCallId(source.callId);
|
|
60
|
+
if (fromSource !== undefined)
|
|
61
|
+
return fromSource;
|
|
62
|
+
}
|
|
63
|
+
const fromMessage = asCallId(message.toolCallId);
|
|
64
|
+
if (fromMessage !== undefined)
|
|
65
|
+
return fromMessage;
|
|
66
|
+
for (const block of asArray(message.content) ?? []) {
|
|
67
|
+
const fromBlock = asCallId(asRecord(block)?.toolCallId);
|
|
68
|
+
if (fromBlock !== undefined)
|
|
69
|
+
return fromBlock;
|
|
70
|
+
}
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Whether a `tool/result` reports a failed tool.
|
|
75
|
+
*
|
|
76
|
+
* Three independent signals, OR-ed on purpose (measured 15 vs 17 events on the
|
|
77
|
+
* same corpus, and neither set contains the other — see the module header):
|
|
78
|
+
*
|
|
79
|
+
* - `data.error` present at all — presence, not truthiness, so an explicitly
|
|
80
|
+
* `undefined` field does not count as a failure;
|
|
81
|
+
* - `message.isError === true`;
|
|
82
|
+
* - any `content[]` block with `isError === true` (the legacy signal).
|
|
83
|
+
*
|
|
84
|
+
* A payload that cannot be read is reported as healthy: a missing failure flag
|
|
85
|
+
* costs a wrong badge, while treating unreadable data as failure would flag
|
|
86
|
+
* every successful tool on a shape the host has moved on from.
|
|
87
|
+
*
|
|
88
|
+
* @param event - Raw `tool/result` event data (or any host payload).
|
|
89
|
+
* @returns true when any signal fired, false for a clean or unreadable payload.
|
|
90
|
+
*/
|
|
91
|
+
export function resultFailed(event) {
|
|
92
|
+
const data = resultData(event);
|
|
93
|
+
if (data === undefined)
|
|
94
|
+
return false;
|
|
95
|
+
if (data.error !== undefined)
|
|
96
|
+
return true;
|
|
97
|
+
const message = asRecord(data.message);
|
|
98
|
+
if (message === undefined)
|
|
99
|
+
return false;
|
|
100
|
+
if (message.isError === true)
|
|
101
|
+
return true;
|
|
102
|
+
for (const block of asArray(message.content) ?? []) {
|
|
103
|
+
if (asRecord(block)?.isError === true)
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
return false;
|
|
107
|
+
}
|
|
108
|
+
/** The `data` record of a host event, or `undefined` for any other shape. */
|
|
109
|
+
function resultData(event) {
|
|
110
|
+
return asRecord(asRecord(event)?.data);
|
|
111
|
+
}
|
|
112
|
+
/** The `data.message` record of a `tool/result` event, when the payload has one. */
|
|
113
|
+
function resultMessage(event) {
|
|
114
|
+
return asRecord(resultData(event)?.message);
|
|
115
|
+
}
|
|
116
|
+
/** Narrow `unknown` to a plain record: objects only, never `null`, never an array. */
|
|
117
|
+
function asRecord(value) {
|
|
118
|
+
if (typeof value !== 'object' || value === null || Array.isArray(value))
|
|
119
|
+
return undefined;
|
|
120
|
+
return value;
|
|
121
|
+
}
|
|
122
|
+
/** Narrow `unknown` to an array, or `undefined` for every non-array value. */
|
|
123
|
+
function asArray(value) {
|
|
124
|
+
return Array.isArray(value) ? value : undefined;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* A usable call id: a string holding at least one non-whitespace character,
|
|
128
|
+
* returned verbatim (trimming would break exact pairing against the
|
|
129
|
+
* `tool/call` id). Empty and whitespace-only strings are rejected so a junk
|
|
130
|
+
* value can never shadow a real id in a lower tier.
|
|
131
|
+
*/
|
|
132
|
+
function asCallId(value) {
|
|
133
|
+
if (typeof value !== 'string')
|
|
134
|
+
return undefined;
|
|
135
|
+
return value.trim().length > 0 ? value : undefined;
|
|
136
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Working-activity user configuration, mirroring the pi extension's
|
|
3
|
+
* `~/.pi/agent/working-activity.json` shape: the UI owns the file (dsh-tui
|
|
4
|
+
* persists `frames` at `~/.dsh-tui/working-activity.json`) and consumers use
|
|
5
|
+
* the pure parser here to honor `mode` / `features` / `customPhrases` /
|
|
6
|
+
* `customActions` without duplicating validation. No I/O — filesystem
|
|
7
|
+
* ownership stays with the host.
|
|
8
|
+
* @module @deepseek-ai/dsh-working-activity/config
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Feature flags that can be switched independently (pi extension parity).
|
|
12
|
+
*
|
|
13
|
+
* Every name here is HONOURED by the DSH line (the tracker reads it). The pi
|
|
14
|
+
* extension's list also carries `shimmer` and `cost` — DSH has no shimmer of
|
|
15
|
+
* its own (the host renders the line) and no cost accounting, so accepting
|
|
16
|
+
* those keys here would mean silently ignoring them.
|
|
17
|
+
*/
|
|
18
|
+
export declare const FEATURE_FLAGS: readonly ["phrases", "rareEggs", "nightPhrases", "weekend", "holidays", "combo", "failPhrases", "modelQuips", "continuePhrases"];
|
|
19
|
+
/** Feature-flag name type. */
|
|
20
|
+
export type FeatureFlag = (typeof FEATURE_FLAGS)[number];
|
|
21
|
+
/** Chinese labels for the settings panel / docs. */
|
|
22
|
+
export declare const FEATURE_LABELS: Record<FeatureFlag, string>;
|
|
23
|
+
/** The file-based config, same keys as the pi extension. */
|
|
24
|
+
export type WorkingActivityConfig = {
|
|
25
|
+
/** Frame preset name (`random` picks one per process). */
|
|
26
|
+
frames?: string;
|
|
27
|
+
/** Extra thinking phrases appended to the base pool. */
|
|
28
|
+
customPhrases?: readonly string[];
|
|
29
|
+
/** Exact tool-name → action-copy pools (case-insensitive match). */
|
|
30
|
+
customActions?: Readonly<Record<string, readonly string[]>>;
|
|
31
|
+
/** Inject the `⏵` self-narration contract into the system prompt. */
|
|
32
|
+
narrate?: boolean;
|
|
33
|
+
/** Debug logging to `working-activity-debug.log`. */
|
|
34
|
+
debugLog?: boolean;
|
|
35
|
+
/** Context usage warning threshold in percent. */
|
|
36
|
+
contextWarnAt?: number;
|
|
37
|
+
/** Context usage danger threshold in percent. */
|
|
38
|
+
contextDangerAt?: number;
|
|
39
|
+
/** Show estimated output tokens per second. */
|
|
40
|
+
showTokPerSec?: boolean;
|
|
41
|
+
/** Hourly work-reminder threshold (0–24, 0 = off). */
|
|
42
|
+
workRemindAt?: number;
|
|
43
|
+
/** lively: full flourish (default) / minimal: functional labels only. */
|
|
44
|
+
mode?: 'lively' | 'minimal';
|
|
45
|
+
/** Per-feature switches; explicit values override `mode` defaults. */
|
|
46
|
+
features?: Readonly<Record<string, boolean>>;
|
|
47
|
+
};
|
|
48
|
+
/** The defaults when nothing is configured. */
|
|
49
|
+
export declare const DEFAULT_ACTIVITY_CONFIG: WorkingActivityConfig;
|
|
50
|
+
/** Result of parsing a config file. */
|
|
51
|
+
export type ConfigReadResult = {
|
|
52
|
+
readonly config: WorkingActivityConfig;
|
|
53
|
+
/** Raw parsed object, preserving unknown keys for lossless write-back. */
|
|
54
|
+
readonly raw: Record<string, unknown>;
|
|
55
|
+
/** Parse error message, when the text was not a valid config object. */
|
|
56
|
+
readonly error?: string;
|
|
57
|
+
};
|
|
58
|
+
/** Clamp `dangerAt` to be at least `warnAt` (percent thresholds). */
|
|
59
|
+
export declare function normalizeThresholds(cfg: WorkingActivityConfig): WorkingActivityConfig;
|
|
60
|
+
/**
|
|
61
|
+
* Parse a `working-activity.json` text into a validated config. Unknown keys
|
|
62
|
+
* are preserved in `raw` (for lossless write-back); invalid values are
|
|
63
|
+
* dropped. A non-object root yields the defaults plus an `error`.
|
|
64
|
+
* @param text - Raw file contents.
|
|
65
|
+
* @returns Validated config + raw object (+ optional error).
|
|
66
|
+
*/
|
|
67
|
+
export declare function parseWorkingActivityConfig(text: string): ConfigReadResult;
|
|
68
|
+
/**
|
|
69
|
+
* Whether a feature is on. Explicit `features` entries win; otherwise
|
|
70
|
+
* `minimal` mode turns everything off.
|
|
71
|
+
* @param config - Parsed config.
|
|
72
|
+
* @param name - Feature flag name.
|
|
73
|
+
*/
|
|
74
|
+
export declare function featureOn(config: WorkingActivityConfig, name: FeatureFlag): boolean;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Working-activity user configuration, mirroring the pi extension's
|
|
3
|
+
* `~/.pi/agent/working-activity.json` shape: the UI owns the file (dsh-tui
|
|
4
|
+
* persists `frames` at `~/.dsh-tui/working-activity.json`) and consumers use
|
|
5
|
+
* the pure parser here to honor `mode` / `features` / `customPhrases` /
|
|
6
|
+
* `customActions` without duplicating validation. No I/O — filesystem
|
|
7
|
+
* ownership stays with the host.
|
|
8
|
+
* @module @deepseek-ai/dsh-working-activity/config
|
|
9
|
+
*/
|
|
10
|
+
import { DEFAULT_PRESET, isPresetName } from './frames.js';
|
|
11
|
+
/**
|
|
12
|
+
* Feature flags that can be switched independently (pi extension parity).
|
|
13
|
+
*
|
|
14
|
+
* Every name here is HONOURED by the DSH line (the tracker reads it). The pi
|
|
15
|
+
* extension's list also carries `shimmer` and `cost` — DSH has no shimmer of
|
|
16
|
+
* its own (the host renders the line) and no cost accounting, so accepting
|
|
17
|
+
* those keys here would mean silently ignoring them.
|
|
18
|
+
*/
|
|
19
|
+
export const FEATURE_FLAGS = [
|
|
20
|
+
'phrases', // 俏皮文案池(思考/等待/收尾/工具动词)
|
|
21
|
+
'rareEggs', // 稀有彩虹彩蛋
|
|
22
|
+
'nightPhrases', // 深夜文案
|
|
23
|
+
'weekend', // 周末问候
|
|
24
|
+
'holidays', // 节假日彩蛋
|
|
25
|
+
'combo', // 连击火力全开
|
|
26
|
+
'failPhrases', // 失败文案池
|
|
27
|
+
'modelQuips', // 模型切换梗
|
|
28
|
+
'continuePhrases', // 打断后接梗
|
|
29
|
+
];
|
|
30
|
+
/** Chinese labels for the settings panel / docs. */
|
|
31
|
+
export const FEATURE_LABELS = {
|
|
32
|
+
phrases: '俏皮文案',
|
|
33
|
+
rareEggs: '稀有彩蛋',
|
|
34
|
+
nightPhrases: '深夜文案',
|
|
35
|
+
weekend: '周末问候',
|
|
36
|
+
holidays: '节假日彩蛋',
|
|
37
|
+
combo: '工具连击',
|
|
38
|
+
failPhrases: '失败文案',
|
|
39
|
+
modelQuips: '模型切换梗',
|
|
40
|
+
continuePhrases: '打断接梗',
|
|
41
|
+
};
|
|
42
|
+
/** The defaults when nothing is configured. */
|
|
43
|
+
export const DEFAULT_ACTIVITY_CONFIG = {
|
|
44
|
+
frames: DEFAULT_PRESET,
|
|
45
|
+
narrate: true,
|
|
46
|
+
};
|
|
47
|
+
function errorText(error) {
|
|
48
|
+
return error instanceof Error ? error.message : String(error);
|
|
49
|
+
}
|
|
50
|
+
/** Clamp `dangerAt` to be at least `warnAt` (percent thresholds). */
|
|
51
|
+
export function normalizeThresholds(cfg) {
|
|
52
|
+
const warnAt = cfg.contextWarnAt ?? 80;
|
|
53
|
+
const dangerAt = cfg.contextDangerAt ?? 95;
|
|
54
|
+
return dangerAt < warnAt ? { ...cfg, contextDangerAt: warnAt } : cfg;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Parse a `working-activity.json` text into a validated config. Unknown keys
|
|
58
|
+
* are preserved in `raw` (for lossless write-back); invalid values are
|
|
59
|
+
* dropped. A non-object root yields the defaults plus an `error`.
|
|
60
|
+
* @param text - Raw file contents.
|
|
61
|
+
* @returns Validated config + raw object (+ optional error).
|
|
62
|
+
*/
|
|
63
|
+
export function parseWorkingActivityConfig(text) {
|
|
64
|
+
let parsed;
|
|
65
|
+
try {
|
|
66
|
+
parsed = JSON.parse(text);
|
|
67
|
+
}
|
|
68
|
+
catch (error) {
|
|
69
|
+
return { config: { ...DEFAULT_ACTIVITY_CONFIG }, raw: {}, error: errorText(error) };
|
|
70
|
+
}
|
|
71
|
+
if (parsed === null || typeof parsed !== 'object' || Array.isArray(parsed)) {
|
|
72
|
+
return {
|
|
73
|
+
config: { ...DEFAULT_ACTIVITY_CONFIG },
|
|
74
|
+
raw: {},
|
|
75
|
+
error: '配置根节点必须是 JSON 对象',
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
const raw = parsed;
|
|
79
|
+
const config = { ...DEFAULT_ACTIVITY_CONFIG };
|
|
80
|
+
if (typeof raw.frames === 'string' && isPresetName(raw.frames))
|
|
81
|
+
config.frames = raw.frames;
|
|
82
|
+
if (Array.isArray(raw.customPhrases)) {
|
|
83
|
+
const phrases = raw.customPhrases.filter((s) => typeof s === 'string' && s.trim().length > 0);
|
|
84
|
+
if (phrases.length > 0)
|
|
85
|
+
config.customPhrases = phrases;
|
|
86
|
+
}
|
|
87
|
+
if (raw.customActions !== null && typeof raw.customActions === 'object' && !Array.isArray(raw.customActions)) {
|
|
88
|
+
const customActions = {};
|
|
89
|
+
for (const [key, value] of Object.entries(raw.customActions)) {
|
|
90
|
+
const actions = Array.isArray(value)
|
|
91
|
+
? value.filter((entry) => typeof entry === 'string' && entry.trim().length > 0)
|
|
92
|
+
.map((entry) => entry.trim())
|
|
93
|
+
: [];
|
|
94
|
+
if (key.trim().length > 0 && actions.length > 0)
|
|
95
|
+
customActions[key.trim()] = actions;
|
|
96
|
+
}
|
|
97
|
+
if (Object.keys(customActions).length > 0)
|
|
98
|
+
config.customActions = customActions;
|
|
99
|
+
}
|
|
100
|
+
if (typeof raw.narrate === 'boolean')
|
|
101
|
+
config.narrate = raw.narrate;
|
|
102
|
+
if (typeof raw.debugLog === 'boolean')
|
|
103
|
+
config.debugLog = raw.debugLog;
|
|
104
|
+
if (typeof raw.contextWarnAt === 'number' && Number.isFinite(raw.contextWarnAt)
|
|
105
|
+
&& raw.contextWarnAt >= 0 && raw.contextWarnAt <= 100) {
|
|
106
|
+
config.contextWarnAt = raw.contextWarnAt;
|
|
107
|
+
}
|
|
108
|
+
if (typeof raw.contextDangerAt === 'number' && Number.isFinite(raw.contextDangerAt)
|
|
109
|
+
&& raw.contextDangerAt >= 0 && raw.contextDangerAt <= 100) {
|
|
110
|
+
config.contextDangerAt = raw.contextDangerAt;
|
|
111
|
+
}
|
|
112
|
+
if (typeof raw.showTokPerSec === 'boolean')
|
|
113
|
+
config.showTokPerSec = raw.showTokPerSec;
|
|
114
|
+
if (typeof raw.workRemindAt === 'number' && Number.isFinite(raw.workRemindAt)
|
|
115
|
+
&& raw.workRemindAt >= 0 && raw.workRemindAt <= 24) {
|
|
116
|
+
config.workRemindAt = raw.workRemindAt;
|
|
117
|
+
}
|
|
118
|
+
if (raw.mode === 'lively' || raw.mode === 'minimal')
|
|
119
|
+
config.mode = raw.mode;
|
|
120
|
+
if (raw.features !== null && typeof raw.features === 'object' && !Array.isArray(raw.features)) {
|
|
121
|
+
const features = {};
|
|
122
|
+
for (const [key, value] of Object.entries(raw.features)) {
|
|
123
|
+
if (typeof value === 'boolean')
|
|
124
|
+
features[key] = value;
|
|
125
|
+
}
|
|
126
|
+
if (Object.keys(features).length > 0)
|
|
127
|
+
config.features = features;
|
|
128
|
+
}
|
|
129
|
+
return { config: normalizeThresholds(config), raw };
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Whether a feature is on. Explicit `features` entries win; otherwise
|
|
133
|
+
* `minimal` mode turns everything off.
|
|
134
|
+
* @param config - Parsed config.
|
|
135
|
+
* @param name - Feature flag name.
|
|
136
|
+
*/
|
|
137
|
+
export function featureOn(config, name) {
|
|
138
|
+
const explicit = config.features?.[name];
|
|
139
|
+
if (typeof explicit === 'boolean')
|
|
140
|
+
return explicit;
|
|
141
|
+
return config.mode !== 'minimal';
|
|
142
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `activity/status` session event — a log-only, non-surface snapshot of the
|
|
3
|
+
* model's current working activity, published by this plugin for any UI
|
|
4
|
+
* consumer (Web client, telemetry, …). It never enters derived model history
|
|
5
|
+
* (no `surfaceOp`), so it cannot leak into prompts; UIs render it like
|
|
6
|
+
* `todo/write` or `plan/mode`.
|
|
7
|
+
* @module @deepseek-ai/dsh-working-activity/events
|
|
8
|
+
*/
|
|
9
|
+
import type { ActivityPhase } from './status.js';
|
|
10
|
+
/** Durable payload of one `activity/status` snapshot. */
|
|
11
|
+
export interface ActivityStatusEvent {
|
|
12
|
+
/** Which activity phase the model is in. */
|
|
13
|
+
readonly phase: ActivityPhase;
|
|
14
|
+
/** Human-readable status line (plain text, no ANSI). */
|
|
15
|
+
readonly line: string;
|
|
16
|
+
/** Short label of the current work, when any. */
|
|
17
|
+
readonly label?: string;
|
|
18
|
+
/** Detail fragment (path / command / pattern), when any. */
|
|
19
|
+
readonly detail?: string;
|
|
20
|
+
/** The playful phrase currently shown, when the copy pool is on. */
|
|
21
|
+
readonly phrase?: string;
|
|
22
|
+
/** Tools completed in the current turn. */
|
|
23
|
+
readonly toolCount: number;
|
|
24
|
+
/** Milliseconds since the current turn started (0 when idle). */
|
|
25
|
+
readonly turnElapsedMs: number;
|
|
26
|
+
/** Wall-clock time (epoch ms) the current phase started, for animations. */
|
|
27
|
+
readonly phaseStartedAt: number;
|
|
28
|
+
}
|
|
29
|
+
/** The `activity/status` phase vocabulary, exported for wire consumers. */
|
|
30
|
+
export type { ActivityPhase };
|
|
31
|
+
declare module '@deepseek-ai/dsh-session/types' {
|
|
32
|
+
interface SessionEventMap {
|
|
33
|
+
/**
|
|
34
|
+
* Log-only UI snapshot of the model's working activity (thinking copy,
|
|
35
|
+
* running tool, turn elapsed). Never a surface event: UIs render it, the
|
|
36
|
+
* model never sees it.
|
|
37
|
+
* @param data - The rendered status snapshot.
|
|
38
|
+
*/
|
|
39
|
+
'activity/status': ActivityStatusEvent;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `activity/status` session event — a log-only, non-surface snapshot of the
|
|
3
|
+
* model's current working activity, published by this plugin for any UI
|
|
4
|
+
* consumer (Web client, telemetry, …). It never enters derived model history
|
|
5
|
+
* (no `surfaceOp`), so it cannot leak into prompts; UIs render it like
|
|
6
|
+
* `todo/write` or `plan/mode`.
|
|
7
|
+
* @module @deepseek-ai/dsh-working-activity/events
|
|
8
|
+
*/
|
|
9
|
+
export {};
|