@askdkc/dsh-cli 0.11.7 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -0
- package/README.md +47 -283
- 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/ModelPicker.d.ts +9 -11
- package/lib/types/components/ModelPicker.d.ts.map +1 -1
- package/lib/types/components/ModelPicker.js +6 -9
- 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/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/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/i18n.d.ts +32 -2
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +19 -1
- package/lib/types/modelGroups.d.ts +3 -1
- package/lib/types/modelGroups.d.ts.map +1 -1
- package/lib/types/modelGroups.js +4 -0
- package/lib/types/screens/Chat.d.ts.map +1 -1
- package/lib/types/screens/Chat.js +37 -37
- 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 +7 -2
- 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 +13 -9
- 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 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","names":["css"],"sources":["../src/client/activity.ts","../src/client/elapsed.ts","../src/client/WorkingLine.tsx","../src/client/index.ts"],"sourcesContent":["/**\n * Client-side contract of the working-activity Web half: the `workingActivity`\n * key of the session-projection type table.\n *\n * The browser reads the line through the session standard kit's\n * `useProjection('workingActivity')` — the host folds the projection from\n * committed session events and ships the whole value, so no client-side domain\n * folding exists and nothing is appended to the session log.\n *\n * The runtime patch that used to carry the value on the conversation snapshot\n * (`ConversationSnapshot.activity`, declared against `@deepseek-ai/dsh-client-runtime`)\n * is obsolete for the current host line: that package is frozen at `0.1.1-rc.2`\n * and absent from the `0.1.7-rc.2` client cohort.\n *\n * {@link WorkingActivityView} is imported from the host half on purpose — one\n * definition of the wire value, so the two halves cannot drift. The import is\n * TYPE-ONLY: a value import would pull host-only code (zod, node builtins) into\n * the browser bundle, which the build's purity gate rejects.\n * @module @deepseek-ai/dsh-working-activity/client/activity\n */\n\nimport type { SessionProjectionMap } from '@deepseek-ai/dsh-session-projection/types'\nimport type { WorkingActivityView } from '../projection.js'\n\ndeclare module '@deepseek-ai/dsh-session-projection/types' {\n interface SessionProjectionMap {\n /**\n * Latest folded working line for the current session, or absent while the\n * host unit is unmounted or no committed event has folded yet.\n */\n workingActivity: WorkingActivityView\n }\n}\n\n/**\n * The projection key this package reads, checked against the merged table: a\n * rename on the host side, or a merge that silently failed to land, is a\n * compile error here instead of a dock row that never renders.\n */\nexport const ACTIVITY_PROJECTION_KEY =\n 'workingActivity' satisfies Extract<keyof SessionProjectionMap, string>\n\nexport type { WorkingActivityView }\n","/**\n * Client-side elapsed re-tick for the working line.\n *\n * The projection is event-driven: the host pushes a value when a committed\n * event folds, and `view` renders at read time. The TUI creates its own\n * cadence by re-reading; a browser cannot, so between folds the shipped\n * `line` ages — measured on the rc.2 corridor, one turn carried three\n * pushes, freezing the elapsed text for the length of a tool. While `live`\n * is true, the dock row therefore re-ticks the ONE moving segment locally:\n * the elapsed counter.\n *\n * Safety: a segment is replaced only when it matches the shapes the host\n * emits (`总1m23s` / `total 5s` / a bare `87ms`). Any format drift on the\n * host side makes the matcher miss and the row falls back to the host's\n * (aging) text — stale, but never wrong. Settled `✓` lines carry a fixed\n * duration, not a counter, and are left alone. This module is deliberately\n * dependency-free: the host's `phrases.ts` reaches node builtins for\n * language detection, which the client bundle's purity gate rejects.\n * @module @deepseek-ai/dsh-working-activity/client/elapsed\n */\n\n/** What the caller knows about the value whose line is displayed. */\nexport interface ElapsedTickView {\n /** Current phase; only live phases carry a moving counter. */\n readonly phase: 'idle' | 'waiting' | 'thinking' | 'tool' | 'done'\n /** Wall clock the current phase began (the tool counter counts from it). */\n readonly phaseStartedAt: number\n /** Wall clock the current turn began (the elapsed counter counts from it). */\n readonly turnStartedAt: number\n /** Language the host rendered `line` in. */\n readonly lang: 'zh' | 'en'\n}\n\n/** The duration shapes the host emits: `87ms`, `5s`, `1m23s`, `4h0m`. */\nconst DURATION = /^\\d+(?:ms|s|m\\d+s|h\\d+m)$/\n/** The localized elapsed segment: `总5s`, `total 1m23s`. */\nconst ELAPSED = /^(?:总|total )\\d+(?:ms|s|m\\d+s|h\\d+m)$/\n/** The segment separator the host composes the line with. */\nconst SEP = ' · '\n\n/** Mirror of the host's `fmtDuration` (second granularity and shapes). */\nfunction formatDuration(ms: number): string {\n if (ms < 1000) return '0s'\n const total = Math.floor(ms / 1000)\n if (total < 60) return `${total}s`\n const minutes = Math.floor(total / 60)\n const seconds = total % 60\n if (minutes < 60) return `${minutes}m${seconds}s`\n return `${Math.floor(minutes / 60)}h${minutes % 60}m`\n}\n\n/** Mirror of the host's `durationLabel` (sub-second reads in milliseconds). */\nfunction formatCounter(ms: number): string {\n return ms < 1000 ? `${Math.max(0, Math.floor(ms))}ms` : formatDuration(ms)\n}\n\n/**\n * Replace the line's elapsed segment with one computed at `nowMs`.\n *\n * @param line - The host-rendered line (aged to the last fold).\n * @param view - The value's phase, counters and language.\n * @param nowMs - Wall clock to re-tick to.\n * @returns the line with a current counter, or the input when there is\n * nothing safe to replace.\n */\nexport function refreshElapsedSuffix(line: string, view: ElapsedTickView, nowMs: number): string {\n if (view.phase === 'idle' || view.phase === 'done') return line\n // A settled tool's `✓ … · 887ms` is a fixed fact, not a counter.\n if (line.startsWith('✓ ')) return line\n // The tool counter counts from the phase's entry; with concurrent tools the\n // host's own counter tracks the OLDEST one, so this may trail it by the\n // overlap — a display nuance, not a wrong number.\n const since = view.phase === 'tool' ? view.phaseStartedAt : view.turnStartedAt\n if (!(since > 0)) return line\n const elapsed = Math.max(0, nowMs - since)\n const replacement = view.phase === 'tool'\n ? formatCounter(elapsed)\n : (view.lang === 'en' ? `total ${formatDuration(elapsed)}` : `总${formatDuration(elapsed)}`)\n const segments = line.split(SEP)\n for (let i = segments.length - 1; i > 0; i--) {\n const segment = segments[i]\n if (segment !== undefined && (DURATION.test(segment) || ELAPSED.test(segment))) {\n segments[i] = replacement\n return segments.join(SEP)\n }\n }\n return line\n}\n","// Working-line dock entry: one dim full-width row above the composer card\n// showing the live working-activity line — phase-colored breathing marker,\n// the host-composed status line, and the turn's tool count badge.\n// Renders for every live phase (waiting/thinking/tool) and the done summary;\n// hides while idle or before the first frame.\n//\n// Data path: the host folds the `workingActivity` session projection and ships\n// the whole value to clients; the session standard kit's `useProjection` reads\n// it by key. Nothing is appended to the session log, and no client-runtime\n// patch is involved — the old `ConversationSnapshot.activity` transport is dead\n// on the current host line.\n//\n// The 'conversation.input.dock' SlotMap declaration lives in\n// @deepseek-ai/dsh-client-ui-conversation/client (contract/slots.ts) and the\n// `useProjection` standard seat in @deepseek-ai/dsh-client-ui-session/client;\n// this entry contributes into the slot without owning it.\nimport type { PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'\n// Type-only merges, erased at build time and never required by the bundle:\n// the ui-conversation SlotMap entry (the dock seat's owner props) and the\n// ui-session standard kit (`useProjection`). ./activity.ts carries this\n// package's own projection-key merge, the key constant, and the view type.\nimport type {} from '@deepseek-ai/dsh-client-ui-conversation/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-session/client'\nimport { ACTIVITY_PROJECTION_KEY, type WorkingActivityView } from './activity.ts'\nimport { refreshElapsedSuffix } from './elapsed.js'\nimport css from './WorkingLine.module.css'\n\n/** Full props of the dock entry: the input-zone runtime share (session standard kit). */\nexport type WorkingLineProps = PropsRuntime<'conversation.input.dock'>\n\n/** Tool-count badge copy (no locale seat: the line text itself is host-composed). */\nconst TOOLS_LABEL = 'tools this turn'\n\n/** The one live tick attachment (exactly one dock row exists at a time). */\nlet tickAttachment: { readonly el: HTMLElement; readonly timer: ReturnType<typeof setInterval> } | undefined\n\n/**\n * Re-tick the elapsed counter on the mounted text node, once per second.\n *\n * The projection only pushes when a committed event folds (measured: three\n * pushes per turn), so the host-rendered `line` ages between folds — the\n * elapsed text would freeze for the length of a tool. The row therefore\n * re-ticks the ONE moving segment locally; only segments matching the host's\n * elapsed shapes are ever replaced (see ./elapsed.ts).\n *\n * Imperative on purpose, and hook-free: the component is also invoked as a\n * plain function (the bundle gate reads its tree without a renderer), and a\n * ref callback plus this module-level slot is enough — React detaches a\n * changed inline ref with `null` first, which is where the previous interval\n * dies; a settled value simply never attaches a new one.\n */\nfunction attachElapsedTick(el: HTMLElement | null, activity: WorkingActivityView | undefined): void {\n if (tickAttachment !== undefined && (el === null || tickAttachment.el !== el)) {\n clearInterval(tickAttachment.timer)\n tickAttachment = undefined\n }\n if (el === null || activity === undefined || activity.live !== true) return\n const paint = (): void => {\n el.textContent = refreshElapsedSuffix(activity.line, activity, Date.now())\n }\n paint()\n tickAttachment = { el, timer: setInterval(paint, 1000) }\n}\n\n/**\n * Working-line dock entry: reads the session's latest `workingActivity`\n * projection value and renders the row, or nothing when idle/absent.\n */\nexport function WorkingLine({ useProjection }: WorkingLineProps) {\n // `undefined` is the uniform absence signal: the host unit is unmounted, no\n // frame carried the key for this session yet, or no session is current.\n // Rendering nothing (rather than an empty row) keeps the dock from reserving\n // space ahead of the first committed event.\n //\n // The annotation is load-bearing: `useProjection`'s precise engine type lives\n // in the session kit's own dependency (`@deepseek-ai/dsh-api-session-controller`),\n // which this package deliberately does not install (it would drag the whole\n // client peer closure into the dev tree). The key is pinned in ./activity.ts\n // against the merged table; this keeps the render body checked against the\n // host's view type.\n const activity: WorkingActivityView | undefined = useProjection(ACTIVITY_PROJECTION_KEY)\n if (activity === undefined || activity.phase === 'idle' || activity.line === '') return null\n return (\n <div className={css.line} data-activity-phase={activity.phase}>\n <span className={css.marker} aria-hidden=\"true\" />\n <span className={css.text} ref={el => attachElapsedTick(el, activity)}>{activity.line}</span>\n {activity.toolCount > 0 && (\n <span className={css.tools} title={`${activity.toolCount} ${TOOLS_LABEL}`}>\n {activity.toolCount}\n </span>\n )}\n </div>\n )\n}\n","/**\n * Working-activity surface plugin, browser half: the working-line entry in\n * the conversation.input.dock strip.\n *\n * The node half folds every committed session event into the `workingActivity`\n * session projection and the host ships that value to clients; this dock entry\n * reads it through the session standard kit's `useProjection` and owns no\n * store, no refresh chain, and no event listener. Nothing is appended to the\n * session log — the reason dsh-tui mounts this plugin with `publish: false`.\n *\n * Mount contract (see the root README's \"Web UI 集成\" section): the web\n * client's client-modules host scans loader entries for `dsh.client`\n * declarations and serves this package's `./client` bundle at\n * /plugins/dsh-working-activity/client.js. The entry contributes into the\n * input dock — no official-source patch is involved.\n */\nimport type { Context } from '@deepseek-ai/cordis'\n// Type-only merges: the ui-conversation SlotMap entry (the dock seat) and the\n// ui-renderer `slots` service on the client Context. Both are erased at build\n// time and never required by the bundle.\nimport type {} from '@deepseek-ai/dsh-client-ui-conversation/client'\nimport type {} from '@deepseek-ai/dsh-client-ui-renderer/client'\nimport { WorkingLine } from './WorkingLine.tsx'\n\nexport { WorkingLine, type WorkingLineProps } from './WorkingLine.tsx'\nexport type { WorkingActivityView } from './activity.ts'\n\n/** Required services for the dock registration. */\nexport const inject = ['slots']\n\n/**\n * Client plugin body: the working-line dock entry.\n * @param ctx - client root context.\n */\nexport function apply(ctx: Context): void {\n ctx.slots.inject('conversation.input.dock', () => ctx.slots.register({\n name: 'conversation.input.dock',\n // The pre-slots patch used the same id in ui-conversation; entries with\n // equal order render in registration order, and goal (10) / queue (20)\n // keep their seats — this row sits between them.\n id: 'activity',\n order: 15,\n registrant: 'dsh-working-activity',\n }, WorkingLine))\n}\n"],"mappings":";;;;;;;;;;;;;EAuCA,MAAa,0BACX;;;;ECNF,MAAM,WAAW;;EAEjB,MAAM,UAAU;;EAEhB,MAAM,MAAM;;EAGZ,SAAS,eAAe,IAAoB;GAC1C,IAAI,KAAK,KAAM,OAAO;GACtB,MAAM,QAAQ,KAAK,MAAM,KAAK,GAAI;GAClC,IAAI,QAAQ,IAAI,OAAO,GAAG,MAAM;GAChC,MAAM,UAAU,KAAK,MAAM,QAAQ,EAAE;GACrC,MAAM,UAAU,QAAQ;GACxB,IAAI,UAAU,IAAI,OAAO,GAAG,QAAQ,GAAG,QAAQ;GAC/C,OAAO,GAAG,KAAK,MAAM,UAAU,EAAE,EAAE,GAAG,UAAU,GAAG;EACrD;;EAGA,SAAS,cAAc,IAAoB;GACzC,OAAO,KAAK,MAAO,GAAG,KAAK,IAAI,GAAG,KAAK,MAAM,EAAE,CAAC,EAAE,MAAM,eAAe,EAAE;EAC3E;;;;;;;;;;EAWA,SAAgB,qBAAqB,MAAc,MAAuB,OAAuB;GAC/F,IAAI,KAAK,UAAU,UAAU,KAAK,UAAU,QAAQ,OAAO;GAE3D,IAAI,KAAK,WAAW,IAAI,GAAG,OAAO;GAIlC,MAAM,QAAQ,KAAK,UAAU,SAAS,KAAK,iBAAiB,KAAK;GACjE,IAAI,EAAE,QAAQ,IAAI,OAAO;GACzB,MAAM,UAAU,KAAK,IAAI,GAAG,QAAQ,KAAK;GACzC,MAAM,cAAc,KAAK,UAAU,SAC/B,cAAc,OAAO,IACpB,KAAK,SAAS,OAAO,SAAS,eAAe,OAAO,MAAM,IAAI,eAAe,OAAO;GACzF,MAAM,WAAW,KAAK,MAAM,GAAG;GAC/B,KAAK,IAAI,IAAI,SAAS,SAAS,GAAG,IAAI,GAAG,KAAK;IAC5C,MAAM,UAAU,SAAS;IACzB,IAAI,YAAY,KAAA,MAAc,SAAS,KAAK,OAAO,KAAK,QAAQ,KAAK,OAAO,IAAI;KAC9E,SAAS,KAAK;KACd,OAAO,SAAS,KAAK,GAAG;IAC1B;GACF;GACA,OAAO;EACT;;;;;;;;;;;;;;;;;;;;;;ECxDA,MAAM,cAAc;;EAGpB,IAAI;;;;;;;;;;;;;;;;EAiBJ,SAAS,kBAAkB,IAAwB,UAAiD;GAClG,IAAI,mBAAmB,KAAA,MAAc,OAAO,QAAQ,eAAe,OAAO,KAAK;IAC7E,cAAc,eAAe,KAAK;IAClC,iBAAiB,KAAA;GACnB;GACA,IAAI,OAAO,QAAQ,aAAa,KAAA,KAAa,SAAS,SAAS,MAAM;GACrE,MAAM,cAAoB;IACxB,GAAG,cAAc,qBAAqB,SAAS,MAAM,UAAU,KAAK,IAAI,CAAC;GAC3E;GACA,MAAM;GACN,iBAAiB;IAAE;IAAI,OAAO,YAAY,OAAO,GAAI;GAAE;EACzD;;;;;EAMA,SAAgB,YAAY,EAAE,iBAAmC;GAY/D,MAAM,WAA4C,cAAc,uBAAuB;GACvF,IAAI,aAAa,KAAA,KAAa,SAAS,UAAU,UAAU,SAAS,SAAS,IAAI,OAAO;GACxF,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;IAAK,WAAWA,+BAAI;IAAM,uBAAqB,SAAS;IAAxD,UAAA;KACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;MAAM,WAAWA,+BAAI;MAAQ,eAAY;KAAQ,CAAA;KACjD,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;MAAM,WAAWA,+BAAI;MAAM,MAAK,OAAM,kBAAkB,IAAI,QAAQ;MAAI,UAAA,SAAS;KAAW,CAAA;KAC3F,SAAS,YAAY,KACpB,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;MAAM,WAAWA,+BAAI;MAAO,OAAO,GAAG,SAAS,UAAU,GAAG;MACzD,UAAA,SAAS;KACN,CAAA;IAEL;;EAET;;;;ECjEA,MAAa,SAAS,CAAC,OAAO;;;;;EAM9B,SAAgB,MAAM,KAAoB;GACxC,IAAI,MAAM,OAAO,iCAAiC,IAAI,MAAM,SAAS;IACnE,MAAM;IAIN,IAAI;IACJ,OAAO;IACP,YAAY;GACd,GAAG,WAAW,CAAC;EACjB"}
|
|
@@ -0,0 +1,147 @@
|
|
|
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
|
+
/** Token counters reported by one settled assistant message. */
|
|
19
|
+
export interface ActivityUsage {
|
|
20
|
+
readonly inputTokens: number;
|
|
21
|
+
readonly outputTokens: number;
|
|
22
|
+
readonly cacheReadTokens?: number;
|
|
23
|
+
readonly cacheWriteTokens?: number;
|
|
24
|
+
}
|
|
25
|
+
/** Which stream a delta came from (reasoning and text both drive narration). */
|
|
26
|
+
export type ActivityStreamKind = 'text' | 'reasoning';
|
|
27
|
+
/**
|
|
28
|
+
* Why the model is not making progress even though the turn is open: the
|
|
29
|
+
* provider asked for a retry, a tool is parked on the user's approval, or the
|
|
30
|
+
* host is compacting the context. Without this the line cannot tell "waiting
|
|
31
|
+
* on the model" from "the model is waiting on YOU".
|
|
32
|
+
*/
|
|
33
|
+
export type WaitingReason = 'retry' | 'approval' | 'compaction';
|
|
34
|
+
/**
|
|
35
|
+
* Why provisional stream state was dropped: the attempt was abandoned (its
|
|
36
|
+
* output will never be settled) or only a partial settlement was committed
|
|
37
|
+
* (`assistant/attempt`). Both clear the buffer; they are not the same event.
|
|
38
|
+
*/
|
|
39
|
+
export type ActivityStreamResetReason = 'abandoned' | 'attempt-settled';
|
|
40
|
+
/** One normalized activity event. */
|
|
41
|
+
export type ActivityEvent =
|
|
42
|
+
/** Accepted human text from the durable session log. */
|
|
43
|
+
{
|
|
44
|
+
readonly kind: 'user-prompt';
|
|
45
|
+
readonly at: number;
|
|
46
|
+
readonly text: string;
|
|
47
|
+
}
|
|
48
|
+
/** A new turn opened: per-turn counters reset, phase → waiting. */
|
|
49
|
+
| {
|
|
50
|
+
readonly kind: 'turn-start';
|
|
51
|
+
readonly at: number;
|
|
52
|
+
}
|
|
53
|
+
/** A step opened. Carries no phase change on its own. */
|
|
54
|
+
| {
|
|
55
|
+
readonly kind: 'step-start';
|
|
56
|
+
readonly at: number;
|
|
57
|
+
}
|
|
58
|
+
/** A live model attempt opened; later deltas belong to `attemptId`. */
|
|
59
|
+
| {
|
|
60
|
+
readonly kind: 'stream-start';
|
|
61
|
+
readonly at: number;
|
|
62
|
+
readonly attemptId?: string;
|
|
63
|
+
}
|
|
64
|
+
/** One streamed delta with non-empty text. */
|
|
65
|
+
| {
|
|
66
|
+
readonly kind: 'stream-delta';
|
|
67
|
+
readonly at: number;
|
|
68
|
+
readonly stream: ActivityStreamKind;
|
|
69
|
+
readonly text: string;
|
|
70
|
+
}
|
|
71
|
+
/** Drop provisional stream state for the attempt that just ended. */
|
|
72
|
+
| {
|
|
73
|
+
readonly kind: 'stream-reset';
|
|
74
|
+
readonly at: number;
|
|
75
|
+
readonly reason: ActivityStreamResetReason;
|
|
76
|
+
}
|
|
77
|
+
/** One assistant message settled with authoritative usage (and its text). */
|
|
78
|
+
| {
|
|
79
|
+
readonly kind: 'assistant-settled';
|
|
80
|
+
readonly at: number;
|
|
81
|
+
readonly usage?: ActivityUsage;
|
|
82
|
+
/**
|
|
83
|
+
* The settled message's text, when it has any.
|
|
84
|
+
*
|
|
85
|
+
* Live narration arrives on stream frames, which only a live host sees; a
|
|
86
|
+
* projection (or a replayed log) folds durable events alone, so the same
|
|
87
|
+
* `⏵` line must be recoverable from the message that carries it.
|
|
88
|
+
*/
|
|
89
|
+
readonly text?: string;
|
|
90
|
+
}
|
|
91
|
+
/** A tool started running. */
|
|
92
|
+
| {
|
|
93
|
+
readonly kind: 'tool-start';
|
|
94
|
+
readonly at: number;
|
|
95
|
+
readonly callId: string;
|
|
96
|
+
readonly name: string;
|
|
97
|
+
readonly arguments: string;
|
|
98
|
+
}
|
|
99
|
+
/** A tool settled; `callId` is the exact id its start carried. */
|
|
100
|
+
| {
|
|
101
|
+
readonly kind: 'tool-end';
|
|
102
|
+
readonly at: number;
|
|
103
|
+
readonly callId: string;
|
|
104
|
+
readonly failed: boolean;
|
|
105
|
+
}
|
|
106
|
+
/** The model route changed to `model`. */
|
|
107
|
+
| {
|
|
108
|
+
readonly kind: 'route-change';
|
|
109
|
+
readonly at: number;
|
|
110
|
+
readonly model: string;
|
|
111
|
+
}
|
|
112
|
+
/** Context compaction finished, or overflowed while trying. */
|
|
113
|
+
| {
|
|
114
|
+
readonly kind: 'compaction';
|
|
115
|
+
readonly at: number;
|
|
116
|
+
readonly overflow?: boolean;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* The turn is stalled for `reason`. Stays until the stall resolves: a delta
|
|
120
|
+
* (the model is producing again), an approval decision, the compaction
|
|
121
|
+
* settling, or the turn closing.
|
|
122
|
+
*/
|
|
123
|
+
| {
|
|
124
|
+
readonly kind: 'waiting-reason';
|
|
125
|
+
readonly at: number;
|
|
126
|
+
readonly reason: WaitingReason;
|
|
127
|
+
}
|
|
128
|
+
/** A stall resolved (e.g. `approval/decided`): back to the normal pools. */
|
|
129
|
+
| {
|
|
130
|
+
readonly kind: 'waiting-cleared';
|
|
131
|
+
readonly at: number;
|
|
132
|
+
}
|
|
133
|
+
/** The agent entered another lifecycle status. */
|
|
134
|
+
| {
|
|
135
|
+
readonly kind: 'agent-status';
|
|
136
|
+
readonly at: number;
|
|
137
|
+
readonly status: 'idle' | 'running';
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* The turn closed. `interrupted` is already derived by the producer from the
|
|
141
|
+
* host's reason vocabulary, so the tracker never learns those spellings.
|
|
142
|
+
*/
|
|
143
|
+
| {
|
|
144
|
+
readonly kind: 'turn-end';
|
|
145
|
+
readonly at: number;
|
|
146
|
+
readonly interrupted?: boolean;
|
|
147
|
+
};
|
|
@@ -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;
|