@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,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The tracker's own event vocabulary — the only input `ActivityTracker`
|
|
3
|
+
* understands.
|
|
4
|
+
*
|
|
5
|
+
* Why this exists: the state machine used to consume raw DSH `SessionEvent`s,
|
|
6
|
+
* so every host payload drift silently changed the rendered status (the
|
|
7
|
+
* current host moved a tool-call id out of `content[]` and replaced the durable
|
|
8
|
+
* `assistant/chunk` stream with transient frames — both broke the line without
|
|
9
|
+
* a single failing test). Events here carry **meaning**, never host shape:
|
|
10
|
+
* `kind` plus already-normalized values, and every one of them is timestamped
|
|
11
|
+
* by the producer so the clock stays injectable.
|
|
12
|
+
*
|
|
13
|
+
* Producers live in `src/compat/*` (durable session events) and
|
|
14
|
+
* `src/compat/assistant-stream.ts` (live attempt frames). The tracker must
|
|
15
|
+
* never import a DSH type.
|
|
16
|
+
* @module @deepseek-ai/dsh-working-activity/activity-event
|
|
17
|
+
*/
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
|
|
2
|
+
/** Full props of the dock entry: the input-zone runtime share (session standard kit). */
|
|
3
|
+
export type WorkingLineProps = PropsRuntime<'conversation.input.dock'>;
|
|
4
|
+
/**
|
|
5
|
+
* Working-line dock entry: reads the session's latest `workingActivity`
|
|
6
|
+
* projection value and renders the row, or nothing when idle/absent.
|
|
7
|
+
*/
|
|
8
|
+
export declare function WorkingLine({ useProjection }: WorkingLineProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkingLine.d.ts","sourceRoot":"","sources":["../../../src/client/WorkingLine.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAWpE,yFAAyF;AACzF,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,yBAAyB,CAAC,CAAA;AAoCtE;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAAE,aAAa,EAAE,EAAE,gBAAgB,sCAyB9D"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ACTIVITY_PROJECTION_KEY } from './activity.ts';
|
|
3
|
+
import { refreshElapsedSuffix } from './elapsed.js';
|
|
4
|
+
import css from './WorkingLine.module.css';
|
|
5
|
+
/** Tool-count badge copy (no locale seat: the line text itself is host-composed). */
|
|
6
|
+
const TOOLS_LABEL = 'tools this turn';
|
|
7
|
+
/** The one live tick attachment (exactly one dock row exists at a time). */
|
|
8
|
+
let tickAttachment;
|
|
9
|
+
/**
|
|
10
|
+
* Re-tick the elapsed counter on the mounted text node, once per second.
|
|
11
|
+
*
|
|
12
|
+
* The projection only pushes when a committed event folds (measured: three
|
|
13
|
+
* pushes per turn), so the host-rendered `line` ages between folds — the
|
|
14
|
+
* elapsed text would freeze for the length of a tool. The row therefore
|
|
15
|
+
* re-ticks the ONE moving segment locally; only segments matching the host's
|
|
16
|
+
* elapsed shapes are ever replaced (see ./elapsed.ts).
|
|
17
|
+
*
|
|
18
|
+
* Imperative on purpose, and hook-free: the component is also invoked as a
|
|
19
|
+
* plain function (the bundle gate reads its tree without a renderer), and a
|
|
20
|
+
* ref callback plus this module-level slot is enough — React detaches a
|
|
21
|
+
* changed inline ref with `null` first, which is where the previous interval
|
|
22
|
+
* dies; a settled value simply never attaches a new one.
|
|
23
|
+
*/
|
|
24
|
+
function attachElapsedTick(el, activity) {
|
|
25
|
+
if (tickAttachment !== undefined && (el === null || tickAttachment.el !== el)) {
|
|
26
|
+
clearInterval(tickAttachment.timer);
|
|
27
|
+
tickAttachment = undefined;
|
|
28
|
+
}
|
|
29
|
+
if (el === null || activity === undefined || activity.live !== true)
|
|
30
|
+
return;
|
|
31
|
+
const paint = () => {
|
|
32
|
+
el.textContent = refreshElapsedSuffix(activity.line, activity, Date.now());
|
|
33
|
+
};
|
|
34
|
+
paint();
|
|
35
|
+
tickAttachment = { el, timer: setInterval(paint, 1000) };
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Working-line dock entry: reads the session's latest `workingActivity`
|
|
39
|
+
* projection value and renders the row, or nothing when idle/absent.
|
|
40
|
+
*/
|
|
41
|
+
export function WorkingLine({ useProjection }) {
|
|
42
|
+
// `undefined` is the uniform absence signal: the host unit is unmounted, no
|
|
43
|
+
// frame carried the key for this session yet, or no session is current.
|
|
44
|
+
// Rendering nothing (rather than an empty row) keeps the dock from reserving
|
|
45
|
+
// space ahead of the first committed event.
|
|
46
|
+
//
|
|
47
|
+
// The annotation is load-bearing: `useProjection`'s precise engine type lives
|
|
48
|
+
// in the session kit's own dependency (`@deepseek-ai/dsh-api-session-controller`),
|
|
49
|
+
// which this package deliberately does not install (it would drag the whole
|
|
50
|
+
// client peer closure into the dev tree). The key is pinned in ./activity.ts
|
|
51
|
+
// against the merged table; this keeps the render body checked against the
|
|
52
|
+
// host's view type.
|
|
53
|
+
const activity = useProjection(ACTIVITY_PROJECTION_KEY);
|
|
54
|
+
if (activity === undefined || activity.phase === 'idle' || activity.line === '')
|
|
55
|
+
return null;
|
|
56
|
+
return (_jsxs("div", { className: css.line, "data-activity-phase": activity.phase, children: [_jsx("span", { className: css.marker, "aria-hidden": "true" }), _jsx("span", { className: css.text, ref: el => attachElapsedTick(el, activity), children: activity.line }), activity.toolCount > 0 && (_jsx("span", { className: css.tools, title: `${activity.toolCount} ${TOOLS_LABEL}`, children: activity.toolCount }))] }));
|
|
57
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client-side contract of the working-activity Web half: the `workingActivity`
|
|
3
|
+
* key of the session-projection type table.
|
|
4
|
+
*
|
|
5
|
+
* The browser reads the line through the session standard kit's
|
|
6
|
+
* `useProjection('workingActivity')` — the host folds the projection from
|
|
7
|
+
* committed session events and ships the whole value, so no client-side domain
|
|
8
|
+
* folding exists and nothing is appended to the session log.
|
|
9
|
+
*
|
|
10
|
+
* The runtime patch that used to carry the value on the conversation snapshot
|
|
11
|
+
* (`ConversationSnapshot.activity`, declared against `@deepseek-ai/dsh-client-runtime`)
|
|
12
|
+
* is obsolete for the current host line: that package is frozen at `0.1.1-rc.2`
|
|
13
|
+
* and absent from the `0.1.7-rc.2` client cohort.
|
|
14
|
+
*
|
|
15
|
+
* {@link WorkingActivityView} is imported from the host half on purpose — one
|
|
16
|
+
* definition of the wire value, so the two halves cannot drift. The import is
|
|
17
|
+
* TYPE-ONLY: a value import would pull host-only code (zod, node builtins) into
|
|
18
|
+
* the browser bundle, which the build's purity gate rejects.
|
|
19
|
+
* @module @deepseek-ai/dsh-working-activity/client/activity
|
|
20
|
+
*/
|
|
21
|
+
import type { WorkingActivityView } from '../projection.js';
|
|
22
|
+
declare module '@deepseek-ai/dsh-session-projection/types' {
|
|
23
|
+
interface SessionProjectionMap {
|
|
24
|
+
/**
|
|
25
|
+
* Latest folded working line for the current session, or absent while the
|
|
26
|
+
* host unit is unmounted or no committed event has folded yet.
|
|
27
|
+
*/
|
|
28
|
+
workingActivity: WorkingActivityView;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The projection key this package reads, checked against the merged table: a
|
|
33
|
+
* rename on the host side, or a merge that silently failed to land, is a
|
|
34
|
+
* compile error here instead of a dock row that never renders.
|
|
35
|
+
*/
|
|
36
|
+
export declare const ACTIVITY_PROJECTION_KEY = "workingActivity";
|
|
37
|
+
export type { WorkingActivityView };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../../src/client/activity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAE3D,OAAO,QAAQ,2CAA2C,CAAC;IACzD,UAAU,oBAAoB;QAC5B;;;WAGG;QACH,eAAe,EAAE,mBAAmB,CAAA;KACrC;CACF;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,oBACqC,CAAA;AAEzE,YAAY,EAAE,mBAAmB,EAAE,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client-side contract of the working-activity Web half: the `workingActivity`
|
|
3
|
+
* key of the session-projection type table.
|
|
4
|
+
*
|
|
5
|
+
* The browser reads the line through the session standard kit's
|
|
6
|
+
* `useProjection('workingActivity')` — the host folds the projection from
|
|
7
|
+
* committed session events and ships the whole value, so no client-side domain
|
|
8
|
+
* folding exists and nothing is appended to the session log.
|
|
9
|
+
*
|
|
10
|
+
* The runtime patch that used to carry the value on the conversation snapshot
|
|
11
|
+
* (`ConversationSnapshot.activity`, declared against `@deepseek-ai/dsh-client-runtime`)
|
|
12
|
+
* is obsolete for the current host line: that package is frozen at `0.1.1-rc.2`
|
|
13
|
+
* and absent from the `0.1.7-rc.2` client cohort.
|
|
14
|
+
*
|
|
15
|
+
* {@link WorkingActivityView} is imported from the host half on purpose — one
|
|
16
|
+
* definition of the wire value, so the two halves cannot drift. The import is
|
|
17
|
+
* TYPE-ONLY: a value import would pull host-only code (zod, node builtins) into
|
|
18
|
+
* the browser bundle, which the build's purity gate rejects.
|
|
19
|
+
* @module @deepseek-ai/dsh-working-activity/client/activity
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* The projection key this package reads, checked against the merged table: a
|
|
23
|
+
* rename on the host side, or a merge that silently failed to land, is a
|
|
24
|
+
* compile error here instead of a dock row that never renders.
|
|
25
|
+
*/
|
|
26
|
+
export const ACTIVITY_PROJECTION_KEY = 'workingActivity';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client-side elapsed re-tick for the working line.
|
|
3
|
+
*
|
|
4
|
+
* The projection is event-driven: the host pushes a value when a committed
|
|
5
|
+
* event folds, and `view` renders at read time. The TUI creates its own
|
|
6
|
+
* cadence by re-reading; a browser cannot, so between folds the shipped
|
|
7
|
+
* `line` ages — measured on the rc.2 corridor, one turn carried three
|
|
8
|
+
* pushes, freezing the elapsed text for the length of a tool. While `live`
|
|
9
|
+
* is true, the dock row therefore re-ticks the ONE moving segment locally:
|
|
10
|
+
* the elapsed counter.
|
|
11
|
+
*
|
|
12
|
+
* Safety: a segment is replaced only when it matches the shapes the host
|
|
13
|
+
* emits (`总1m23s` / `total 5s` / a bare `87ms`). Any format drift on the
|
|
14
|
+
* host side makes the matcher miss and the row falls back to the host's
|
|
15
|
+
* (aging) text — stale, but never wrong. Settled `✓` lines carry a fixed
|
|
16
|
+
* duration, not a counter, and are left alone. This module is deliberately
|
|
17
|
+
* dependency-free: the host's `phrases.ts` reaches node builtins for
|
|
18
|
+
* language detection, which the client bundle's purity gate rejects.
|
|
19
|
+
* @module @deepseek-ai/dsh-working-activity/client/elapsed
|
|
20
|
+
*/
|
|
21
|
+
/** What the caller knows about the value whose line is displayed. */
|
|
22
|
+
export interface ElapsedTickView {
|
|
23
|
+
/** Current phase; only live phases carry a moving counter. */
|
|
24
|
+
readonly phase: 'idle' | 'waiting' | 'thinking' | 'tool' | 'done';
|
|
25
|
+
/** Wall clock the current phase began (the tool counter counts from it). */
|
|
26
|
+
readonly phaseStartedAt: number;
|
|
27
|
+
/** Wall clock the current turn began (the elapsed counter counts from it). */
|
|
28
|
+
readonly turnStartedAt: number;
|
|
29
|
+
/** Language the host rendered `line` in. */
|
|
30
|
+
readonly lang: 'zh' | 'en';
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Replace the line's elapsed segment with one computed at `nowMs`.
|
|
34
|
+
*
|
|
35
|
+
* @param line - The host-rendered line (aged to the last fold).
|
|
36
|
+
* @param view - The value's phase, counters and language.
|
|
37
|
+
* @param nowMs - Wall clock to re-tick to.
|
|
38
|
+
* @returns the line with a current counter, or the input when there is
|
|
39
|
+
* nothing safe to replace.
|
|
40
|
+
*/
|
|
41
|
+
export declare function refreshElapsedSuffix(line: string, view: ElapsedTickView, nowMs: number): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elapsed.d.ts","sourceRoot":"","sources":["../../../src/client/elapsed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,qEAAqE;AACrE,MAAM,WAAW,eAAe;IAC9B,8DAA8D;IAC9D,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAA;IACjE,4EAA4E;IAC5E,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;IAC/B,8EAA8E;IAC9E,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,4CAA4C;IAC5C,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAA;CAC3B;AAyBD;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAsB/F"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client-side elapsed re-tick for the working line.
|
|
3
|
+
*
|
|
4
|
+
* The projection is event-driven: the host pushes a value when a committed
|
|
5
|
+
* event folds, and `view` renders at read time. The TUI creates its own
|
|
6
|
+
* cadence by re-reading; a browser cannot, so between folds the shipped
|
|
7
|
+
* `line` ages — measured on the rc.2 corridor, one turn carried three
|
|
8
|
+
* pushes, freezing the elapsed text for the length of a tool. While `live`
|
|
9
|
+
* is true, the dock row therefore re-ticks the ONE moving segment locally:
|
|
10
|
+
* the elapsed counter.
|
|
11
|
+
*
|
|
12
|
+
* Safety: a segment is replaced only when it matches the shapes the host
|
|
13
|
+
* emits (`总1m23s` / `total 5s` / a bare `87ms`). Any format drift on the
|
|
14
|
+
* host side makes the matcher miss and the row falls back to the host's
|
|
15
|
+
* (aging) text — stale, but never wrong. Settled `✓` lines carry a fixed
|
|
16
|
+
* duration, not a counter, and are left alone. This module is deliberately
|
|
17
|
+
* dependency-free: the host's `phrases.ts` reaches node builtins for
|
|
18
|
+
* language detection, which the client bundle's purity gate rejects.
|
|
19
|
+
* @module @deepseek-ai/dsh-working-activity/client/elapsed
|
|
20
|
+
*/
|
|
21
|
+
/** The duration shapes the host emits: `87ms`, `5s`, `1m23s`, `4h0m`. */
|
|
22
|
+
const DURATION = /^\d+(?:ms|s|m\d+s|h\d+m)$/;
|
|
23
|
+
/** The localized elapsed segment: `总5s`, `total 1m23s`. */
|
|
24
|
+
const ELAPSED = /^(?:总|total )\d+(?:ms|s|m\d+s|h\d+m)$/;
|
|
25
|
+
/** The segment separator the host composes the line with. */
|
|
26
|
+
const SEP = ' · ';
|
|
27
|
+
/** Mirror of the host's `fmtDuration` (second granularity and shapes). */
|
|
28
|
+
function formatDuration(ms) {
|
|
29
|
+
if (ms < 1000)
|
|
30
|
+
return '0s';
|
|
31
|
+
const total = Math.floor(ms / 1000);
|
|
32
|
+
if (total < 60)
|
|
33
|
+
return `${total}s`;
|
|
34
|
+
const minutes = Math.floor(total / 60);
|
|
35
|
+
const seconds = total % 60;
|
|
36
|
+
if (minutes < 60)
|
|
37
|
+
return `${minutes}m${seconds}s`;
|
|
38
|
+
return `${Math.floor(minutes / 60)}h${minutes % 60}m`;
|
|
39
|
+
}
|
|
40
|
+
/** Mirror of the host's `durationLabel` (sub-second reads in milliseconds). */
|
|
41
|
+
function formatCounter(ms) {
|
|
42
|
+
return ms < 1000 ? `${Math.max(0, Math.floor(ms))}ms` : formatDuration(ms);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Replace the line's elapsed segment with one computed at `nowMs`.
|
|
46
|
+
*
|
|
47
|
+
* @param line - The host-rendered line (aged to the last fold).
|
|
48
|
+
* @param view - The value's phase, counters and language.
|
|
49
|
+
* @param nowMs - Wall clock to re-tick to.
|
|
50
|
+
* @returns the line with a current counter, or the input when there is
|
|
51
|
+
* nothing safe to replace.
|
|
52
|
+
*/
|
|
53
|
+
export function refreshElapsedSuffix(line, view, nowMs) {
|
|
54
|
+
if (view.phase === 'idle' || view.phase === 'done')
|
|
55
|
+
return line;
|
|
56
|
+
// A settled tool's `✓ … · 887ms` is a fixed fact, not a counter.
|
|
57
|
+
if (line.startsWith('✓ '))
|
|
58
|
+
return line;
|
|
59
|
+
// The tool counter counts from the phase's entry; with concurrent tools the
|
|
60
|
+
// host's own counter tracks the OLDEST one, so this may trail it by the
|
|
61
|
+
// overlap — a display nuance, not a wrong number.
|
|
62
|
+
const since = view.phase === 'tool' ? view.phaseStartedAt : view.turnStartedAt;
|
|
63
|
+
if (!(since > 0))
|
|
64
|
+
return line;
|
|
65
|
+
const elapsed = Math.max(0, nowMs - since);
|
|
66
|
+
const replacement = view.phase === 'tool'
|
|
67
|
+
? formatCounter(elapsed)
|
|
68
|
+
: (view.lang === 'en' ? `total ${formatDuration(elapsed)}` : `总${formatDuration(elapsed)}`);
|
|
69
|
+
const segments = line.split(SEP);
|
|
70
|
+
for (let i = segments.length - 1; i > 0; i--) {
|
|
71
|
+
const segment = segments[i];
|
|
72
|
+
if (segment !== undefined && (DURATION.test(segment) || ELAPSED.test(segment))) {
|
|
73
|
+
segments[i] = replacement;
|
|
74
|
+
return segments.join(SEP);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return line;
|
|
78
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Working-activity surface plugin, browser half: the working-line entry in
|
|
3
|
+
* the conversation.input.dock strip.
|
|
4
|
+
*
|
|
5
|
+
* The node half folds every committed session event into the `workingActivity`
|
|
6
|
+
* session projection and the host ships that value to clients; this dock entry
|
|
7
|
+
* reads it through the session standard kit's `useProjection` and owns no
|
|
8
|
+
* store, no refresh chain, and no event listener. Nothing is appended to the
|
|
9
|
+
* session log — the reason dsh-tui mounts this plugin with `publish: false`.
|
|
10
|
+
*
|
|
11
|
+
* Mount contract (see the root README's "Web UI 集成" section): the web
|
|
12
|
+
* client's client-modules host scans loader entries for `dsh.client`
|
|
13
|
+
* declarations and serves this package's `./client` bundle at
|
|
14
|
+
* /plugins/dsh-working-activity/client.js. The entry contributes into the
|
|
15
|
+
* input dock — no official-source patch is involved.
|
|
16
|
+
*/
|
|
17
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
18
|
+
export { WorkingLine, type WorkingLineProps } from './WorkingLine.tsx';
|
|
19
|
+
export type { WorkingActivityView } from './activity.ts';
|
|
20
|
+
/** Required services for the dock registration. */
|
|
21
|
+
export declare const inject: string[];
|
|
22
|
+
/**
|
|
23
|
+
* Client plugin body: the working-line dock entry.
|
|
24
|
+
* @param ctx - client root context.
|
|
25
|
+
*/
|
|
26
|
+
export declare function apply(ctx: Context): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAQlD,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACtE,YAAY,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAExD,mDAAmD;AACnD,eAAO,MAAM,MAAM,UAAY,CAAA;AAE/B;;;GAGG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAUxC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { WorkingLine } from './WorkingLine.tsx';
|
|
2
|
+
export { WorkingLine } from './WorkingLine.tsx';
|
|
3
|
+
/** Required services for the dock registration. */
|
|
4
|
+
export const inject = ['slots'];
|
|
5
|
+
/**
|
|
6
|
+
* Client plugin body: the working-line dock entry.
|
|
7
|
+
* @param ctx - client root context.
|
|
8
|
+
*/
|
|
9
|
+
export function apply(ctx) {
|
|
10
|
+
ctx.slots.inject('conversation.input.dock', () => ctx.slots.register({
|
|
11
|
+
name: 'conversation.input.dock',
|
|
12
|
+
// The pre-slots patch used the same id in ui-conversation; entries with
|
|
13
|
+
// equal order render in registration order, and goal (10) / queue (20)
|
|
14
|
+
// keep their seats — this row sits between them.
|
|
15
|
+
id: 'activity',
|
|
16
|
+
order: 15,
|
|
17
|
+
registrant: 'dsh-working-activity',
|
|
18
|
+
}, WorkingLine));
|
|
19
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Live `agent/assistant-stream` frame → {@link ActivityEvent} normalization.
|
|
3
|
+
*
|
|
4
|
+
* This is the realtime half of the plugin's input. On the current host line the
|
|
5
|
+
* durable `assistant/chunk` event no longer exists (it is absent from
|
|
6
|
+
* `SessionEventMap` and from `KNOWN_SESSION_EVENT_TYPES`) and streamed output
|
|
7
|
+
* arrives as transient frames published on the agent scope instead, so without
|
|
8
|
+
* this module the line has no first-token promotion, no `⏵` narration and no
|
|
9
|
+
* tok/s estimate — it only moves when durable tool events arrive.
|
|
10
|
+
*
|
|
11
|
+
* Measured frame shape (`@deepseek-ai/dsh-agent@0.1.7-rc.2`,
|
|
12
|
+
* `lib/types/runtime-types.d.ts`):
|
|
13
|
+
*
|
|
14
|
+
* ```text
|
|
15
|
+
* start { attemptId, revision, turn, step }
|
|
16
|
+
* chunk { attemptId, revision, index, time, chunk } chunk: StreamChunk
|
|
17
|
+
* end { attemptId, revision, index, outcome } outcome: committed{eventType,seq} | abandoned
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* The fields stay read tolerantly rather than through a host type import: the
|
|
21
|
+
* package still compiles against `@deepseek-ai/dsh-agent@0.1.0-rc.6`, which has
|
|
22
|
+
* no `AssistantStreamFrame` declaration at all. Reading structurally is also
|
|
23
|
+
* what keeps the next reshape a one-file fix here.
|
|
24
|
+
*
|
|
25
|
+
* ## Why the cursor is keyed by the agent, not by the session
|
|
26
|
+
* `revision` is documented as "monotone within one attached Agent lifecycle;
|
|
27
|
+
* replacement restarts at 1". A single counter would therefore drop every frame
|
|
28
|
+
* of a replacement agent (`1 <= 100`) and silence the line forever, so the
|
|
29
|
+
* cursor lives in a `WeakMap` keyed by the emitting agent — a new agent is a new
|
|
30
|
+
* key and starts at its own revision 1 with no explicit reset anywhere.
|
|
31
|
+
* @module @deepseek-ai/dsh-working-activity/compat/assistant-stream
|
|
32
|
+
*/
|
|
33
|
+
import type { ActivityEvent } from '../activity-event.js';
|
|
34
|
+
/** Identity of one agent lifecycle. Frames of different owners never share a cursor. */
|
|
35
|
+
export type StreamOwner = object;
|
|
36
|
+
/**
|
|
37
|
+
* Normalize one live frame for the agent that published it.
|
|
38
|
+
*
|
|
39
|
+
* Returns zero events for anything the tracker does not model: unknown frame
|
|
40
|
+
* types, non-delta chunks (block boundaries, tool-call deltas, usage, finish),
|
|
41
|
+
* empty delta text, and any frame the owner's revision cursor has already seen.
|
|
42
|
+
*
|
|
43
|
+
* @param owner - The agent lifecycle that published the frame (cursor key).
|
|
44
|
+
* @param frame - Raw `agent/assistant-stream` frame, or any host payload.
|
|
45
|
+
* @returns the domain events this frame carries, in order.
|
|
46
|
+
*/
|
|
47
|
+
export declare function frameToActivityEvents(owner: StreamOwner, frame: unknown): readonly ActivityEvent[];
|
|
48
|
+
/**
|
|
49
|
+
* Feed one live frame into any domain-event consumer.
|
|
50
|
+
*
|
|
51
|
+
* Kept as a free function so the tracker never learns a host type: the plugin
|
|
52
|
+
* subscribes to `agent/assistant-stream` and calls this.
|
|
53
|
+
* @param tracker - Consumer of normalized events.
|
|
54
|
+
* @param owner - The agent lifecycle that published the frame.
|
|
55
|
+
* @param frame - Raw frame payload.
|
|
56
|
+
*/
|
|
57
|
+
export declare function feedStreamFrame(tracker: {
|
|
58
|
+
onEvent(event: ActivityEvent): void;
|
|
59
|
+
}, owner: StreamOwner, frame: unknown): void;
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Live `agent/assistant-stream` frame → {@link ActivityEvent} normalization.
|
|
3
|
+
*
|
|
4
|
+
* This is the realtime half of the plugin's input. On the current host line the
|
|
5
|
+
* durable `assistant/chunk` event no longer exists (it is absent from
|
|
6
|
+
* `SessionEventMap` and from `KNOWN_SESSION_EVENT_TYPES`) and streamed output
|
|
7
|
+
* arrives as transient frames published on the agent scope instead, so without
|
|
8
|
+
* this module the line has no first-token promotion, no `⏵` narration and no
|
|
9
|
+
* tok/s estimate — it only moves when durable tool events arrive.
|
|
10
|
+
*
|
|
11
|
+
* Measured frame shape (`@deepseek-ai/dsh-agent@0.1.7-rc.2`,
|
|
12
|
+
* `lib/types/runtime-types.d.ts`):
|
|
13
|
+
*
|
|
14
|
+
* ```text
|
|
15
|
+
* start { attemptId, revision, turn, step }
|
|
16
|
+
* chunk { attemptId, revision, index, time, chunk } chunk: StreamChunk
|
|
17
|
+
* end { attemptId, revision, index, outcome } outcome: committed{eventType,seq} | abandoned
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* The fields stay read tolerantly rather than through a host type import: the
|
|
21
|
+
* package still compiles against `@deepseek-ai/dsh-agent@0.1.0-rc.6`, which has
|
|
22
|
+
* no `AssistantStreamFrame` declaration at all. Reading structurally is also
|
|
23
|
+
* what keeps the next reshape a one-file fix here.
|
|
24
|
+
*
|
|
25
|
+
* ## Why the cursor is keyed by the agent, not by the session
|
|
26
|
+
* `revision` is documented as "monotone within one attached Agent lifecycle;
|
|
27
|
+
* replacement restarts at 1". A single counter would therefore drop every frame
|
|
28
|
+
* of a replacement agent (`1 <= 100`) and silence the line forever, so the
|
|
29
|
+
* cursor lives in a `WeakMap` keyed by the emitting agent — a new agent is a new
|
|
30
|
+
* key and starts at its own revision 1 with no explicit reset anywhere.
|
|
31
|
+
* @module @deepseek-ai/dsh-working-activity/compat/assistant-stream
|
|
32
|
+
*/
|
|
33
|
+
/** Frame types this adapter understands. */
|
|
34
|
+
const FRAME_TYPES = ['start', 'chunk', 'end'];
|
|
35
|
+
const cursors = new WeakMap();
|
|
36
|
+
/** The cursor for one agent lifecycle, created on first use. */
|
|
37
|
+
function cursorFor(owner) {
|
|
38
|
+
let cursor = cursors.get(owner);
|
|
39
|
+
if (cursor === undefined) {
|
|
40
|
+
cursor = {};
|
|
41
|
+
cursors.set(owner, cursor);
|
|
42
|
+
}
|
|
43
|
+
return cursor;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Whether one frame is new for its owner's cursor, updating the cursor.
|
|
47
|
+
*
|
|
48
|
+
* Ordering is enforced only when both sides carry a usable revision: a host
|
|
49
|
+
* that stops timestamping frames must degrade to "accept" rather than "drop
|
|
50
|
+
* everything", because a silently frozen line is the exact failure this module
|
|
51
|
+
* exists to prevent. Duplicate delivery in that degraded mode costs a repeated
|
|
52
|
+
* delta, which the narration buffer tolerates.
|
|
53
|
+
*/
|
|
54
|
+
function accept(cursor, revision) {
|
|
55
|
+
if (typeof revision !== 'number' || !Number.isFinite(revision))
|
|
56
|
+
return true;
|
|
57
|
+
if (cursor.revision !== undefined && revision <= cursor.revision)
|
|
58
|
+
return false;
|
|
59
|
+
cursor.revision = revision;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
/** Narrow `unknown` to a plain record: objects only, never `null`, never an array. */
|
|
63
|
+
function asRecord(value) {
|
|
64
|
+
if (typeof value !== 'object' || value === null || Array.isArray(value))
|
|
65
|
+
return undefined;
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
/** A usable attempt id: a non-empty string, returned verbatim. */
|
|
69
|
+
function asAttemptId(value) {
|
|
70
|
+
return typeof value === 'string' && value.trim().length > 0 ? value : undefined;
|
|
71
|
+
}
|
|
72
|
+
/** A frame timestamp, falling back to the wall clock when the host omits one. */
|
|
73
|
+
function frameTime(frame) {
|
|
74
|
+
const time = frame.time;
|
|
75
|
+
return typeof time === 'number' && Number.isFinite(time) ? time : Date.now();
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Normalize one live frame for the agent that published it.
|
|
79
|
+
*
|
|
80
|
+
* Returns zero events for anything the tracker does not model: unknown frame
|
|
81
|
+
* types, non-delta chunks (block boundaries, tool-call deltas, usage, finish),
|
|
82
|
+
* empty delta text, and any frame the owner's revision cursor has already seen.
|
|
83
|
+
*
|
|
84
|
+
* @param owner - The agent lifecycle that published the frame (cursor key).
|
|
85
|
+
* @param frame - Raw `agent/assistant-stream` frame, or any host payload.
|
|
86
|
+
* @returns the domain events this frame carries, in order.
|
|
87
|
+
*/
|
|
88
|
+
export function frameToActivityEvents(owner, frame) {
|
|
89
|
+
const record = asRecord(frame);
|
|
90
|
+
if (record === undefined)
|
|
91
|
+
return [];
|
|
92
|
+
const type = typeof record.type === 'string' ? record.type : undefined;
|
|
93
|
+
if (type === undefined || !FRAME_TYPES.includes(type))
|
|
94
|
+
return [];
|
|
95
|
+
const cursor = cursorFor(owner);
|
|
96
|
+
if (!accept(cursor, record.revision))
|
|
97
|
+
return [];
|
|
98
|
+
if (type === 'start') {
|
|
99
|
+
const attemptId = asAttemptId(record.attemptId);
|
|
100
|
+
cursor.attemptId = attemptId;
|
|
101
|
+
return [{
|
|
102
|
+
kind: 'stream-start',
|
|
103
|
+
at: frameTime(record),
|
|
104
|
+
...(attemptId === undefined ? {} : { attemptId }),
|
|
105
|
+
}];
|
|
106
|
+
}
|
|
107
|
+
if (type === 'chunk')
|
|
108
|
+
return chunkEvents(cursor, record);
|
|
109
|
+
return endEvents(cursor, record);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* One `chunk` frame: open the attempt first when the frame announces one the
|
|
113
|
+
* cursor has not seen, then the delta itself.
|
|
114
|
+
*
|
|
115
|
+
* Adoption matters after a reattach/resume, where the stream is joined
|
|
116
|
+
* mid-attempt and no `start` frame is redelivered: the first chunk a plugin
|
|
117
|
+
* sees would otherwise be unusable. Safety comes from the revision cursor
|
|
118
|
+
* instead — a late chunk of a superseded attempt carries a lower revision and
|
|
119
|
+
* never reaches this point.
|
|
120
|
+
*/
|
|
121
|
+
function chunkEvents(cursor, frame) {
|
|
122
|
+
const at = frameTime(frame);
|
|
123
|
+
const attempts = asAttemptId(frame.attemptId);
|
|
124
|
+
const events = [];
|
|
125
|
+
if (attempts !== undefined && attempts !== cursor.attemptId) {
|
|
126
|
+
cursor.attemptId = attempts;
|
|
127
|
+
events.push({ kind: 'stream-start', at, attemptId: attempts });
|
|
128
|
+
}
|
|
129
|
+
const chunk = asRecord(frame.chunk);
|
|
130
|
+
const delta = deltaOf(chunk);
|
|
131
|
+
if (delta !== undefined && delta.text.length > 0) {
|
|
132
|
+
events.push({ kind: 'stream-delta', at, stream: delta.stream, text: delta.text });
|
|
133
|
+
}
|
|
134
|
+
return events;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* One `end` frame. Both terminal outcomes clear the cursor's attempt, but only
|
|
138
|
+
* the ones whose committed output can differ from what was streamed ask the
|
|
139
|
+
* tracker to drop its provisional state:
|
|
140
|
+
*
|
|
141
|
+
* - `abandoned` — no settlement at all, so the provisional narration is wrong;
|
|
142
|
+
* - `committed` + `assistant/attempt` — a PARTIAL settlement, so the streamed
|
|
143
|
+
* text may exceed what was committed. This is not an abandonment and is not
|
|
144
|
+
* reported as one;
|
|
145
|
+
* - `committed` + `assistant/message` — the streamed text IS the committed
|
|
146
|
+
* message, so its narration may keep its freshness window (the durable
|
|
147
|
+
* settlement already carried the same content);
|
|
148
|
+
* - an unrecognized outcome — cleared, but no reset event, so a future terminal
|
|
149
|
+
* kind cannot accidentally discard narration it did commit.
|
|
150
|
+
*/
|
|
151
|
+
function endEvents(cursor, frame) {
|
|
152
|
+
const at = frameTime(frame);
|
|
153
|
+
cursor.attemptId = undefined;
|
|
154
|
+
const outcome = asRecord(frame.outcome);
|
|
155
|
+
const kind = typeof outcome?.kind === 'string' ? outcome.kind : undefined;
|
|
156
|
+
if (kind === 'abandoned')
|
|
157
|
+
return [{ kind: 'stream-reset', at, reason: 'abandoned' }];
|
|
158
|
+
const eventType = typeof outcome?.eventType === 'string' ? outcome.eventType : undefined;
|
|
159
|
+
if (kind === 'committed' && eventType === 'assistant/attempt') {
|
|
160
|
+
return [{ kind: 'stream-reset', at, reason: 'attempt-settled' }];
|
|
161
|
+
}
|
|
162
|
+
return [];
|
|
163
|
+
}
|
|
164
|
+
/** The stream kind and text of one chunk, when it is a displayable delta. */
|
|
165
|
+
function deltaOf(chunk) {
|
|
166
|
+
if (chunk === undefined)
|
|
167
|
+
return undefined;
|
|
168
|
+
const text = chunk.text;
|
|
169
|
+
if (typeof text !== 'string')
|
|
170
|
+
return undefined;
|
|
171
|
+
if (chunk.type === 'text-delta')
|
|
172
|
+
return { stream: 'text', text };
|
|
173
|
+
if (chunk.type === 'reasoning-delta')
|
|
174
|
+
return { stream: 'reasoning', text };
|
|
175
|
+
return undefined;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Feed one live frame into any domain-event consumer.
|
|
179
|
+
*
|
|
180
|
+
* Kept as a free function so the tracker never learns a host type: the plugin
|
|
181
|
+
* subscribes to `agent/assistant-stream` and calls this.
|
|
182
|
+
* @param tracker - Consumer of normalized events.
|
|
183
|
+
* @param owner - The agent lifecycle that published the frame.
|
|
184
|
+
* @param frame - Raw frame payload.
|
|
185
|
+
*/
|
|
186
|
+
export function feedStreamFrame(tracker, owner, frame) {
|
|
187
|
+
for (const activityEvent of frameToActivityEvents(owner, frame))
|
|
188
|
+
tracker.onEvent(activityEvent);
|
|
189
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 type { SessionEvent } from '@deepseek-ai/dsh-session';
|
|
17
|
+
import type { ActivityEvent } from '../activity-event.js';
|
|
18
|
+
/**
|
|
19
|
+
* Normalize one durable session event.
|
|
20
|
+
*
|
|
21
|
+
* Returns zero events for anything the tracker does not model (including a
|
|
22
|
+
* tool result whose call id cannot be resolved — an unpaired result is
|
|
23
|
+
* dropped, never guessed at).
|
|
24
|
+
* @param event - Raw durable session event.
|
|
25
|
+
* @returns the domain events this host event carries, in order.
|
|
26
|
+
*/
|
|
27
|
+
export declare function toActivityEvents(event: SessionEvent): readonly ActivityEvent[];
|
|
28
|
+
/**
|
|
29
|
+
* Feed one durable session event into any domain-event consumer.
|
|
30
|
+
*
|
|
31
|
+
* Kept as a free function so the tracker itself never learns a host type: the
|
|
32
|
+
* published `onSessionEvent` method delegates here.
|
|
33
|
+
* @param tracker - Consumer of normalized events.
|
|
34
|
+
* @param event - Raw durable session event.
|
|
35
|
+
*/
|
|
36
|
+
export declare function feedSessionEvent(tracker: {
|
|
37
|
+
onEvent(event: ActivityEvent): void;
|
|
38
|
+
}, event: SessionEvent): void;
|