@happier-dev/stack 0.1.0-preview.9.1 → 0.1.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/docs/isolated-linux-vm.md +12 -12
- package/docs/server-flavors.md +6 -6
- package/docs/tauri.md +1 -0
- package/node_modules/@happier-dev/agents/README.md +4 -0
- package/node_modules/@happier-dev/agents/dist/advancedModes.d.ts +26 -0
- package/node_modules/@happier-dev/agents/dist/advancedModes.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/advancedModes.js +13 -0
- package/node_modules/@happier-dev/agents/dist/advancedModes.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/index.d.ts +16 -0
- package/node_modules/@happier-dev/agents/dist/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/index.js +17 -0
- package/node_modules/@happier-dev/agents/dist/index.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/manifest.d.ts +171 -0
- package/node_modules/@happier-dev/agents/dist/manifest.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/manifest.js +121 -0
- package/node_modules/@happier-dev/agents/dist/manifest.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/models.d.ts +45 -0
- package/node_modules/@happier-dev/agents/dist/models.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/models.js +104 -0
- package/node_modules/@happier-dev/agents/dist/models.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/permissions/index.d.ts +46 -0
- package/node_modules/@happier-dev/agents/dist/permissions/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/permissions/index.js +151 -0
- package/node_modules/@happier-dev/agents/dist/permissions/index.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/claudeRemote.d.ts +22 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/claudeRemote.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/claudeRemote.js +81 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/claudeRemote.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/codex.d.ts +15 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/codex.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/codex.js +28 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/definitions/codex.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/index.d.ts +6 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/index.js +4 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/index.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/registry.d.ts +6 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/registry.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/registry.js +41 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/registry.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/types.d.ts +21 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/types.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/types.js +2 -0
- package/node_modules/@happier-dev/agents/dist/providerSettings/types.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/cliInstallSpecs.d.ts +28 -0
- package/node_modules/@happier-dev/agents/dist/providers/cliInstallSpecs.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/cliInstallSpecs.js +143 -0
- package/node_modules/@happier-dev/agents/dist/providers/cliInstallSpecs.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/index.d.ts +2 -0
- package/node_modules/@happier-dev/agents/dist/providers/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/index.js +2 -0
- package/node_modules/@happier-dev/agents/dist/providers/index.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/pi/index.d.ts +2 -0
- package/node_modules/@happier-dev/agents/dist/providers/pi/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/pi/index.js +2 -0
- package/node_modules/@happier-dev/agents/dist/providers/pi/index.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/pi/thinking.d.ts +8 -0
- package/node_modules/@happier-dev/agents/dist/providers/pi/thinking.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/providers/pi/thinking.js +26 -0
- package/node_modules/@happier-dev/agents/dist/providers/pi/thinking.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/metadata.d.ts +22 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/metadata.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/metadata.js +49 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/metadata.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/monotonic.d.ts +19 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/monotonic.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/monotonic.js +24 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/monotonic.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/publish.d.ts +19 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/publish.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/publish.js +111 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/publish.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/publish.spec.d.ts +2 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/publish.spec.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/publish.spec.js +112 -0
- package/node_modules/@happier-dev/agents/dist/sessionControls/publish.spec.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/sessionModes.d.ts +12 -0
- package/node_modules/@happier-dev/agents/dist/sessionModes.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/sessionModes.js +23 -0
- package/node_modules/@happier-dev/agents/dist/sessionModes.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/sessions/replay/happierReplayPrompt.d.ts +13 -0
- package/node_modules/@happier-dev/agents/dist/sessions/replay/happierReplayPrompt.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/sessions/replay/happierReplayPrompt.js +60 -0
- package/node_modules/@happier-dev/agents/dist/sessions/replay/happierReplayPrompt.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/types.d.ts +86 -0
- package/node_modules/@happier-dev/agents/dist/types.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/types.js +25 -0
- package/node_modules/@happier-dev/agents/dist/types.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/voice/index.d.ts +2 -0
- package/node_modules/@happier-dev/agents/dist/voice/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/voice/index.js +2 -0
- package/node_modules/@happier-dev/agents/dist/voice/index.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/voice/voiceAgentPrompt.d.ts +21 -0
- package/node_modules/@happier-dev/agents/dist/voice/voiceAgentPrompt.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/voice/voiceAgentPrompt.js +95 -0
- package/node_modules/@happier-dev/agents/dist/voice/voiceAgentPrompt.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/voice/voiceAgentPrompt.spec.d.ts +2 -0
- package/node_modules/@happier-dev/agents/dist/voice/voiceAgentPrompt.spec.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/voice/voiceAgentPrompt.spec.js +30 -0
- package/node_modules/@happier-dev/agents/dist/voice/voiceAgentPrompt.spec.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/voice/voiceClientTools.d.ts +10 -0
- package/node_modules/@happier-dev/agents/dist/voice/voiceClientTools.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/voice/voiceClientTools.js +54 -0
- package/node_modules/@happier-dev/agents/dist/voice/voiceClientTools.js.map +1 -0
- package/node_modules/@happier-dev/agents/dist/voice/voiceMediatorPrompt.d.ts +17 -0
- package/node_modules/@happier-dev/agents/dist/voice/voiceMediatorPrompt.d.ts.map +1 -0
- package/node_modules/@happier-dev/agents/dist/voice/voiceMediatorPrompt.js +65 -0
- package/node_modules/@happier-dev/agents/dist/voice/voiceMediatorPrompt.js.map +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/LICENSE +21 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/README.md +208 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/index.cjs +33 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/index.d.cts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/index.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/index.js +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/locales/index.cjs +17 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/locales/index.js +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/locales/package.json +6 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/mini/index.cjs +32 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/mini/index.js +3 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/mini/package.json +6 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/package.json +135 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/index.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v3/types.ts +5138 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/checks.ts +32 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/compat.ts +70 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/errors.ts +82 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/external.ts +51 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/from-json-schema.ts +643 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/parse.ts +82 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/schemas.ts +2409 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/catch.test.ts +276 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/codec.test.ts +562 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/default.test.ts +365 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +661 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +595 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +734 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/number.test.ts +270 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/object.test.ts +640 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/optional.test.ts +223 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/partial.test.ts +427 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +282 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/record.test.ts +632 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +582 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/refine.test.ts +570 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/string.test.ts +1175 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2990 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/transform.test.ts +361 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/tuple.test.ts +183 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/union.test.ts +219 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/api.ts +1798 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/checks.ts +1293 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/core.ts +138 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/errors.ts +448 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/index.ts +16 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/json-schema-processors.ts +667 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/json-schema.ts +147 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/parse.ts +195 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/regexes.ts +183 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/schemas.ts +4538 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +83 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +67 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/to-json-schema.ts +613 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/util.ts +966 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ar.ts +115 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/az.ts +111 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/be.ts +176 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/bg.ts +128 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ca.ts +116 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/cs.ts +118 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/da.ts +123 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/de.ts +116 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/en.ts +119 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/eo.ts +118 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/es.ts +141 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/fa.ts +126 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/fi.ts +121 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/fr.ts +116 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/he.ts +246 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/hu.ts +117 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/hy.ts +164 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/id.ts +115 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/index.ts +49 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/is.ts +119 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/it.ts +116 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ja.ts +114 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ka.ts +123 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/km.ts +119 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ko.ts +121 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/lt.ts +239 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/mk.ts +118 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ms.ts +115 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/nl.ts +121 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/no.ts +116 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ota.ts +117 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/pl.ts +118 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ps.ts +126 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/pt.ts +116 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ru.ts +176 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/sl.ts +118 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/sv.ts +119 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ta.ts +118 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/th.ts +119 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/tr.ts +111 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/uk.ts +117 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/ur.ts +119 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/uz.ts +116 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/vi.ts +117 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/yo.ts +124 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/parse.ts +14 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/schemas.ts +1916 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/codec.test.ts +529 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/index.test.ts +963 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4/mini/tests/string.test.ts +347 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/external.js +6 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/index.js +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/locales/en.cjs +112 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/package.json +6 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/types.cjs +3777 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/types.d.cts +1034 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/types.d.ts +1034 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v3/types.js +3695 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/checks.cjs +33 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/compat.cjs +61 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/compat.d.cts +50 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/compat.d.ts +50 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/compat.js +31 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/errors.cjs +74 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/errors.js +48 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/external.cjs +73 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/external.d.cts +15 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/external.d.ts +15 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/external.js +20 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/from-json-schema.cjs +610 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/from-json-schema.js +584 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/package.json +6 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/parse.cjs +41 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/parse.d.cts +31 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/parse.d.ts +31 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/parse.js +15 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/schemas.cjs +1272 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/schemas.d.cts +739 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/schemas.d.ts +739 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/classic/schemas.js +1157 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/api.cjs +1222 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/api.d.cts +304 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/api.d.ts +304 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/api.js +1082 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/checks.cjs +601 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/checks.js +575 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/core.cjs +83 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/core.d.cts +70 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/core.d.ts +70 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/core.js +76 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/errors.cjs +213 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/errors.d.cts +220 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/errors.d.ts +220 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/errors.js +182 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/index.cjs +47 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/index.d.cts +16 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/index.d.ts +16 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/index.js +16 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema-processors.cjs +648 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema-processors.js +605 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema.d.cts +88 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema.d.ts +88 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/package.json +6 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/parse.cjs +131 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/parse.d.cts +49 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/parse.d.ts +49 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/parse.js +93 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/regexes.cjs +166 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/regexes.d.cts +79 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/regexes.d.ts +79 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/regexes.js +133 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/schemas.cjs +2124 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/schemas.d.cts +1146 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/schemas.d.ts +1146 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/schemas.js +2093 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/to-json-schema.cjs +446 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/to-json-schema.js +437 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/util.cjs +710 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/util.d.cts +199 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/util.d.ts +199 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/util.js +651 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/index.js +3 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ar.cjs +133 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ar.js +106 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/az.cjs +132 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/az.js +105 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/be.cjs +183 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/be.js +156 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/bg.cjs +147 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/bg.js +120 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ca.cjs +134 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ca.js +107 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/cs.cjs +138 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/cs.js +111 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/da.cjs +142 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/da.js +115 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/de.cjs +135 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/de.js +108 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/en.cjs +136 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/en.js +109 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/eo.cjs +136 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/eo.js +109 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/es.cjs +159 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/es.js +132 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fa.cjs +141 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fa.js +114 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fi.cjs +139 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fi.js +112 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fr-CA.js +107 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fr.cjs +135 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/fr.js +108 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/he.cjs +241 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/he.js +214 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/hu.cjs +135 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/hu.js +108 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/hy.cjs +174 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/hy.js +147 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/id.cjs +133 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/id.js +106 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/index.cjs +104 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/index.d.cts +49 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/index.d.ts +49 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/index.js +49 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/is.cjs +136 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/is.js +109 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/it.cjs +135 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/it.js +108 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ja.cjs +134 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ja.js +107 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ka.cjs +139 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ka.js +112 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/kh.js +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/km.cjs +137 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/km.js +110 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ko.cjs +138 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ko.js +111 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/lt.cjs +230 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/lt.js +203 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/mk.cjs +136 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/mk.js +109 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ms.cjs +134 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ms.js +107 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/nl.cjs +137 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/nl.js +110 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/no.cjs +135 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/no.js +108 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ota.cjs +136 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ota.js +109 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/package.json +6 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/pl.cjs +136 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/pl.js +109 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ps.cjs +141 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ps.js +114 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/pt.cjs +135 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/pt.js +108 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ru.cjs +183 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ru.js +156 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/sl.cjs +136 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/sl.js +109 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/sv.cjs +137 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/sv.js +110 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ta.cjs +137 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ta.js +110 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/th.cjs +137 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/th.js +110 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/tr.cjs +132 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/tr.js +105 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ua.js +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/uk.cjs +135 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/uk.js +108 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ur.cjs +137 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/ur.js +110 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/uz.cjs +136 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/uz.js +109 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/vi.cjs +135 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/vi.js +108 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/yo.cjs +134 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/yo.js +107 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/zh-CN.js +109 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/locales/zh-TW.js +107 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/coerce.cjs +52 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/coerce.js +22 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/external.cjs +63 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/external.d.cts +12 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/external.d.ts +12 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/external.js +14 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/iso.cjs +64 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/iso.js +34 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/package.json +6 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/parse.cjs +16 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/schemas.cjs +1046 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/schemas.d.cts +427 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/schemas.d.ts +427 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/mini/schemas.js +925 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4/package.json +6 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4-mini/index.cjs +32 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4-mini/index.js +3 -0
- package/node_modules/@happier-dev/agents/node_modules/zod/v4-mini/package.json +6 -0
- package/node_modules/@happier-dev/agents/package.json +18 -0
- package/node_modules/@happier-dev/cli-common/dist/index.d.ts +2 -0
- package/node_modules/@happier-dev/cli-common/dist/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/index.js +2 -0
- package/node_modules/@happier-dev/cli-common/dist/index.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/providers/index.d.ts +51 -0
- package/node_modules/@happier-dev/cli-common/dist/providers/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/providers/index.js +129 -0
- package/node_modules/@happier-dev/cli-common/dist/providers/index.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/service/index.d.ts +5 -0
- package/node_modules/@happier-dev/cli-common/dist/service/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/service/index.js +5 -0
- package/node_modules/@happier-dev/cli-common/dist/service/index.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/service/launchd.d.ts +19 -0
- package/node_modules/@happier-dev/cli-common/dist/service/launchd.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/service/launchd.js +117 -0
- package/node_modules/@happier-dev/cli-common/dist/service/launchd.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/service/manager.d.ts +55 -0
- package/node_modules/@happier-dev/cli-common/dist/service/manager.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/service/manager.js +337 -0
- package/node_modules/@happier-dev/cli-common/dist/service/manager.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/service/systemd.d.ts +12 -0
- package/node_modules/@happier-dev/cli-common/dist/service/systemd.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/service/systemd.js +75 -0
- package/node_modules/@happier-dev/cli-common/dist/service/systemd.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/service/windows.d.ts +8 -0
- package/node_modules/@happier-dev/cli-common/dist/service/windows.d.ts.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/service/windows.js +29 -0
- package/node_modules/@happier-dev/cli-common/dist/service/windows.js.map +1 -0
- package/node_modules/@happier-dev/cli-common/dist/update/index.d.ts +9 -0
- package/node_modules/@happier-dev/cli-common/dist/update/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/update/index.js +17 -3
- package/node_modules/@happier-dev/cli-common/dist/update/index.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/workspaces/index.d.ts +4 -0
- package/node_modules/@happier-dev/cli-common/dist/workspaces/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/cli-common/dist/workspaces/index.js +70 -1
- package/node_modules/@happier-dev/cli-common/dist/workspaces/index.js.map +1 -1
- package/node_modules/@happier-dev/cli-common/package.json +11 -0
- package/node_modules/@happier-dev/protocol/README.md +12 -0
- package/node_modules/@happier-dev/protocol/dist/account/encryptionMode.d.ts +17 -0
- package/node_modules/@happier-dev/protocol/dist/account/encryptionMode.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/account/encryptionMode.js +10 -0
- package/node_modules/@happier-dev/protocol/dist/account/encryptionMode.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/account/profile.d.ts +103 -0
- package/node_modules/@happier-dev/protocol/dist/account/profile.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/account/profile.js +37 -0
- package/node_modules/@happier-dev/protocol/dist/account/profile.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettings.d.ts +80 -0
- package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettings.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettings.js +49 -0
- package/node_modules/@happier-dev/protocol/dist/account/settings/accountSettings.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/account/settings/index.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/account/settings/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/account/settings/index.js +2 -0
- package/node_modules/@happier-dev/protocol/dist/account/settings/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionDraftSeed.d.ts +6 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionDraftSeed.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionDraftSeed.js +75 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionDraftSeed.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionExecutor.d.ts +151 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionExecutor.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionExecutor.js +326 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionExecutor.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionIds.d.ts +35 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionIds.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionIds.js +43 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionIds.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionIds.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionIds.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionIds.test.js +12 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionIds.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputElevenLabsToolSchema.d.ts +15 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputElevenLabsToolSchema.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputElevenLabsToolSchema.js +223 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputElevenLabsToolSchema.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputHintsRuntime.d.ts +8 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputHintsRuntime.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputHintsRuntime.js +19 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputHintsRuntime.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputHintsRuntime.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputHintsRuntime.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputHintsRuntime.test.js +35 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputHintsRuntime.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputJsonSchema.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputJsonSchema.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputJsonSchema.js +107 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputJsonSchema.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputPredicates.d.ts +9 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputPredicates.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputPredicates.js +93 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionInputPredicates.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSettings.d.ts +108 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSettings.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSettings.js +53 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSettings.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSettings.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSettings.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSettings.test.js +18 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSettings.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSpecs.d.ts +211 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSpecs.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSpecs.js +1181 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSpecs.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSpecs.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSpecs.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSpecs.test.js +184 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionSpecs.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionUiPlacements.d.ts +19 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionUiPlacements.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionUiPlacements.js +18 -0
- package/node_modules/@happier-dev/protocol/dist/actions/actionUiPlacements.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/index.d.ts +10 -0
- package/node_modules/@happier-dev/protocol/dist/actions/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/actions/index.js +10 -0
- package/node_modules/@happier-dev/protocol/dist/actions/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/auth/errors.d.ts +25 -0
- package/node_modules/@happier-dev/protocol/dist/auth/errors.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/auth/errors.js +27 -0
- package/node_modules/@happier-dev/protocol/dist/auth/errors.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/auth/externalOAuth.d.ts +35 -0
- package/node_modules/@happier-dev/protocol/dist/auth/externalOAuth.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/auth/externalOAuth.js +36 -0
- package/node_modules/@happier-dev/protocol/dist/auth/externalOAuth.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/auth/providers.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/dist/auth/providers.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/auth/providers.js +3 -0
- package/node_modules/@happier-dev/protocol/dist/auth/providers.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/artifacts.d.ts +7 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/artifacts.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/artifacts.js +20 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/artifacts.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/fallback.d.ts +20 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/fallback.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/fallback.js +107 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/fallback.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/http.d.ts +12 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/http.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/http.js +51 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/http.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/issueTarget.d.ts +18 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/issueTarget.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/issueTarget.js +25 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/issueTarget.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/machineDiagnostics.d.ts +36 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/machineDiagnostics.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/machineDiagnostics.js +30 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/machineDiagnostics.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/redaction.d.ts +3 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/redaction.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/redaction.js +17 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/redaction.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/reporter.d.ts +3 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/reporter.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/reporter.js +30 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/reporter.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/sanitize.d.ts +7 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/sanitize.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/sanitize.js +65 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/sanitize.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/serverDiagnostics.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/serverDiagnostics.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/serverDiagnostics.js +7 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/serverDiagnostics.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/similarIssues.d.ts +21 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/similarIssues.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/similarIssues.js +33 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/similarIssues.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/submit.d.ts +7 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/submit.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/submit.js +93 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/submit.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/types.d.ts +52 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/types.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/types.js +8 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/types.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/utf8.d.ts +3 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/utf8.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/utf8.js +56 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports/utf8.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.d.ts +12 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.js +12 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.reporter.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.reporter.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.reporter.test.js +33 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.reporter.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.serverDiagnostics.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.serverDiagnostics.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.serverDiagnostics.test.js +12 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.serverDiagnostics.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.similarIssues.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.similarIssues.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.similarIssues.test.js +68 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.similarIssues.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.submit.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.submit.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.submit.test.js +382 -0
- package/node_modules/@happier-dev/protocol/dist/bugReports.submit.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/capabilities.d.ts +59 -0
- package/node_modules/@happier-dev/protocol/dist/capabilities.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/capabilities.js +2 -0
- package/node_modules/@happier-dev/protocol/dist/capabilities.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/changes.automation.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/changes.automation.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/changes.automation.test.js +19 -0
- package/node_modules/@happier-dev/protocol/dist/changes.automation.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/changes.d.ts +64 -0
- package/node_modules/@happier-dev/protocol/dist/changes.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/changes.js +30 -0
- package/node_modules/@happier-dev/protocol/dist/changes.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/checklists.d.ts +8 -0
- package/node_modules/@happier-dev/protocol/dist/checklists.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/checklists.js +8 -0
- package/node_modules/@happier-dev/protocol/dist/checklists.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/common/asyncTtlCache.d.ts +32 -0
- package/node_modules/@happier-dev/protocol/dist/common/asyncTtlCache.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/common/asyncTtlCache.js +53 -0
- package/node_modules/@happier-dev/protocol/dist/common/asyncTtlCache.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/common/imageRef.d.ts +10 -0
- package/node_modules/@happier-dev/protocol/dist/common/imageRef.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/common/imageRef.js +9 -0
- package/node_modules/@happier-dev/protocol/dist/common/imageRef.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/common/probedResourceCache.d.ts +36 -0
- package/node_modules/@happier-dev/protocol/dist/common/probedResourceCache.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/common/probedResourceCache.js +154 -0
- package/node_modules/@happier-dev/protocol/dist/common/probedResourceCache.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/common/profileBadge.d.ts +8 -0
- package/node_modules/@happier-dev/protocol/dist/common/profileBadge.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/common/profileBadge.js +7 -0
- package/node_modules/@happier-dev/protocol/dist/common/profileBadge.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/buildConnectedServiceCredentialRecord.d.ts +28 -0
- package/node_modules/@happier-dev/protocol/dist/connect/buildConnectedServiceCredentialRecord.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/buildConnectedServiceCredentialRecord.js +40 -0
- package/node_modules/@happier-dev/protocol/dist/connect/buildConnectedServiceCredentialRecord.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceCipher.d.ts +20 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceCipher.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceCipher.js +32 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceCipher.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceErrors.d.ts +21 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceErrors.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceErrors.js +20 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceErrors.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceSchemas.d.ts +149 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceSchemas.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceSchemas.js +92 -0
- package/node_modules/@happier-dev/protocol/dist/connect/connectedServiceSchemas.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/accountScopedCipher.d.ts +26 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/accountScopedCipher.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/accountScopedCipher.js +135 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/accountScopedCipher.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/accountScopedCipher.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/accountScopedCipher.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/accountScopedCipher.test.js +105 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/accountScopedCipher.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/base64.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/base64.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/base64.js +36 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/base64.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/base64.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/base64.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/base64.test.js +42 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/base64.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/boxBundle.d.ts +15 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/boxBundle.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/boxBundle.js +57 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/boxBundle.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/boxBundle.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/boxBundle.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/boxBundle.test.js +65 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/boxBundle.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/encryptedDataKeyEnvelopeV1.d.ts +11 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/encryptedDataKeyEnvelopeV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/encryptedDataKeyEnvelopeV1.js +24 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/encryptedDataKeyEnvelopeV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/encryptedDataKeyEnvelopeV1.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/encryptedDataKeyEnvelopeV1.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/encryptedDataKeyEnvelopeV1.test.js +68 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/encryptedDataKeyEnvelopeV1.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/terminalProvisioningV2.d.ts +13 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/terminalProvisioningV2.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/terminalProvisioningV2.js +31 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/terminalProvisioningV2.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/terminalProvisioningV2.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/terminalProvisioningV2.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/terminalProvisioningV2.test.js +67 -0
- package/node_modules/@happier-dev/protocol/dist/crypto/terminalProvisioningV2.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.d.ts +209 -0
- package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.js +48 -0
- package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.test.js +53 -0
- package/node_modules/@happier-dev/protocol/dist/daemonExecutionRuns.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/diff/splitUnifiedDiffByFile.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/diff/splitUnifiedDiffByFile.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/diff/splitUnifiedDiffByFile.js +39 -0
- package/node_modules/@happier-dev/protocol/dist/diff/splitUnifiedDiffByFile.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/e2e/providerScenarios.d.ts +24 -0
- package/node_modules/@happier-dev/protocol/dist/e2e/providerScenarios.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/e2e/providerScenarios.js +26 -0
- package/node_modules/@happier-dev/protocol/dist/e2e/providerScenarios.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/e2e/providerSpec.d.ts +156 -0
- package/node_modules/@happier-dev/protocol/dist/e2e/providerSpec.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/e2e/providerSpec.js +170 -0
- package/node_modules/@happier-dev/protocol/dist/e2e/providerSpec.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/encryption/storagePolicyDecisions.d.ts +8 -0
- package/node_modules/@happier-dev/protocol/dist/encryption/storagePolicyDecisions.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/encryption/storagePolicyDecisions.js +28 -0
- package/node_modules/@happier-dev/protocol/dist/encryption/storagePolicyDecisions.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/env/parseBooleanEnv.d.ts +3 -0
- package/node_modules/@happier-dev/protocol/dist/env/parseBooleanEnv.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/env/parseBooleanEnv.js +17 -0
- package/node_modules/@happier-dev/protocol/dist/env/parseBooleanEnv.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/ephemeralTasks.d.ts +44 -0
- package/node_modules/@happier-dev/protocol/dist/ephemeralTasks.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/ephemeralTasks.js +34 -0
- package/node_modules/@happier-dev/protocol/dist/ephemeralTasks.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/esmImportCycle.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/esmImportCycle.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/esmImportCycle.test.js +16 -0
- package/node_modules/@happier-dev/protocol/dist/esmImportCycle.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/executionRuns.d.ts +488 -0
- package/node_modules/@happier-dev/protocol/dist/executionRuns.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/executionRuns.js +210 -0
- package/node_modules/@happier-dev/protocol/dist/executionRuns.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/executionRuns.streaming.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/executionRuns.streaming.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/executionRuns.streaming.test.js +23 -0
- package/node_modules/@happier-dev/protocol/dist/executionRuns.streaming.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/executionRuns.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/executionRuns.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/executionRuns.test.js +174 -0
- package/node_modules/@happier-dev/protocol/dist/executionRuns.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/buildPolicy.d.ts +12 -0
- package/node_modules/@happier-dev/protocol/dist/features/buildPolicy.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/buildPolicy.js +38 -0
- package/node_modules/@happier-dev/protocol/dist/features/buildPolicy.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/buildPolicy.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/features/buildPolicy.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/buildPolicy.test.js +22 -0
- package/node_modules/@happier-dev/protocol/dist/features/buildPolicy.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/catalog.d.ts +230 -0
- package/node_modules/@happier-dev/protocol/dist/features/catalog.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/catalog.js +264 -0
- package/node_modules/@happier-dev/protocol/dist/features/catalog.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/catalog.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/features/catalog.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/catalog.test.js +31 -0
- package/node_modules/@happier-dev/protocol/dist/features/catalog.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/catalogTypes.d.ts +9 -0
- package/node_modules/@happier-dev/protocol/dist/features/catalogTypes.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/catalogTypes.js +2 -0
- package/node_modules/@happier-dev/protocol/dist/features/catalogTypes.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/decision.d.ts +126 -0
- package/node_modules/@happier-dev/protocol/dist/features/decision.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/decision.js +55 -0
- package/node_modules/@happier-dev/protocol/dist/features/decision.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/decision.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/features/decision.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/decision.test.js +31 -0
- package/node_modules/@happier-dev/protocol/dist/features/decision.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/embeddedFeaturePolicies.generated.d.ts +14 -0
- package/node_modules/@happier-dev/protocol/dist/features/embeddedFeaturePolicies.generated.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/embeddedFeaturePolicies.generated.js +18 -0
- package/node_modules/@happier-dev/protocol/dist/features/embeddedFeaturePolicies.generated.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/embeddedFeaturePolicy.d.ts +11 -0
- package/node_modules/@happier-dev/protocol/dist/features/embeddedFeaturePolicy.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/embeddedFeaturePolicy.js +36 -0
- package/node_modules/@happier-dev/protocol/dist/features/embeddedFeaturePolicy.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/featureDecisionEngine.d.ts +21 -0
- package/node_modules/@happier-dev/protocol/dist/features/featureDecisionEngine.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/featureDecisionEngine.js +103 -0
- package/node_modules/@happier-dev/protocol/dist/features/featureDecisionEngine.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/featureIds.d.ts +3 -0
- package/node_modules/@happier-dev/protocol/dist/features/featureIds.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/featureIds.js +2 -0
- package/node_modules/@happier-dev/protocol/dist/features/featureIds.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/authCapabilities.d.ts +64 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/authCapabilities.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/authCapabilities.js +61 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/authCapabilities.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/bugReportsCapabilities.d.ts +15 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/bugReportsCapabilities.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/bugReportsCapabilities.js +65 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/bugReportsCapabilities.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/capabilitiesSchema.d.ts +105 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/capabilitiesSchema.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/capabilitiesSchema.js +26 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/capabilitiesSchema.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/encryptionCapabilities.d.ts +27 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/encryptionCapabilities.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/encryptionCapabilities.js +14 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/encryptionCapabilities.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/socialFriendsCapabilities.d.ts +8 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/socialFriendsCapabilities.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/socialFriendsCapabilities.js +10 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/socialFriendsCapabilities.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/voiceCapabilities.d.ts +12 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/voiceCapabilities.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/voiceCapabilities.js +22 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/capabilities/voiceCapabilities.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/featureGate.d.ts +6 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/featureGate.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/featureGate.js +5 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/featureGate.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/featureGatesSchema.d.ts +77 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/featureGatesSchema.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/featureGatesSchema.js +94 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/featureGatesSchema.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/featuresResponseSchema.d.ts +186 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/featuresResponseSchema.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/featuresResponseSchema.js +27 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/featuresResponseSchema.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/isRecord.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/isRecord.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/isRecord.js +4 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/isRecord.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/oauthProviderStatus.d.ts +7 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/oauthProviderStatus.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/oauthProviderStatus.js +6 -0
- package/node_modules/@happier-dev/protocol/dist/features/payload/oauthProviderStatus.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/serverEnabledBit.d.ts +6 -0
- package/node_modules/@happier-dev/protocol/dist/features/serverEnabledBit.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features/serverEnabledBit.js +37 -0
- package/node_modules/@happier-dev/protocol/dist/features/serverEnabledBit.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features.compat.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/features.compat.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features.compat.test.js +150 -0
- package/node_modules/@happier-dev/protocol/dist/features.compat.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features.d.ts +10 -0
- package/node_modules/@happier-dev/protocol/dist/features.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/features.js +13 -0
- package/node_modules/@happier-dev/protocol/dist/features.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/index.d.ts +74 -0
- package/node_modules/@happier-dev/protocol/dist/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/index.exports.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/index.exports.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/index.exports.test.js +57 -0
- package/node_modules/@happier-dev/protocol/dist/index.exports.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/index.js +78 -0
- package/node_modules/@happier-dev/protocol/dist/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/installables.d.ts +50 -0
- package/node_modules/@happier-dev/protocol/dist/installables.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/installables.js +28 -0
- package/node_modules/@happier-dev/protocol/dist/installables.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/memory/memorySearch.d.ts +82 -0
- package/node_modules/@happier-dev/protocol/dist/memory/memorySearch.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/memory/memorySearch.js +61 -0
- package/node_modules/@happier-dev/protocol/dist/memory/memorySearch.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/memory/memorySettings.d.ts +141 -0
- package/node_modules/@happier-dev/protocol/dist/memory/memorySettings.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/memory/memorySettings.js +89 -0
- package/node_modules/@happier-dev/protocol/dist/memory/memorySettings.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/memory/memoryWindow.d.ts +28 -0
- package/node_modules/@happier-dev/protocol/dist/memory/memoryWindow.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/memory/memoryWindow.js +23 -0
- package/node_modules/@happier-dev/protocol/dist/memory/memoryWindow.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/ReviewFinding.d.ts +48 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/ReviewFinding.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/ReviewFinding.js +30 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/ReviewFinding.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewEngines.d.ts +15 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewEngines.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewEngines.js +21 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewEngines.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewEngines.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewEngines.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewEngines.test.js +10 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewEngines.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewStart.d.ts +71 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewStart.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewStart.js +43 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewStart.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewStart.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewStart.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewStart.test.js +15 -0
- package/node_modules/@happier-dev/protocol/dist/reviews/reviewStart.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.d.ts +70 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.daemonExecutionRuns.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.daemonExecutionRuns.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.daemonExecutionRuns.test.js +8 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.daemonExecutionRuns.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.executionRuns.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.executionRuns.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.executionRuns.test.js +11 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.executionRuns.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.js +73 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.scm.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.scm.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.scm.test.js +22 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.scm.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.sessionReplay.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.sessionReplay.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.sessionReplay.test.js +8 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.sessionReplay.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.voiceAgentStreaming.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.voiceAgentStreaming.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.voiceAgentStreaming.test.js +10 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.voiceAgentStreaming.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.voiceMediatorStreaming.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.voiceMediatorStreaming.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.voiceMediatorStreaming.test.js +10 -0
- package/node_modules/@happier-dev/protocol/dist/rpc.voiceMediatorStreaming.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/rpcErrors.d.ts +13 -0
- package/node_modules/@happier-dev/protocol/dist/rpcErrors.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/rpcErrors.js +30 -0
- package/node_modules/@happier-dev/protocol/dist/rpcErrors.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/rpcErrors.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/rpcErrors.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/rpcErrors.test.js +39 -0
- package/node_modules/@happier-dev/protocol/dist/rpcErrors.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scm.contract.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/scm.contract.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scm.contract.test.js +197 -0
- package/node_modules/@happier-dev/protocol/dist/scm.contract.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scm.d.ts +797 -0
- package/node_modules/@happier-dev/protocol/dist/scm.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scm.js +530 -0
- package/node_modules/@happier-dev/protocol/dist/scm.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmCapabilities.d.ts +5 -0
- package/node_modules/@happier-dev/protocol/dist/scmCapabilities.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmCapabilities.js +73 -0
- package/node_modules/@happier-dev/protocol/dist/scmCapabilities.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmCapabilities.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/scmCapabilities.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmCapabilities.test.js +23 -0
- package/node_modules/@happier-dev/protocol/dist/scmCapabilities.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmPathScope.d.ts +10 -0
- package/node_modules/@happier-dev/protocol/dist/scmPathScope.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmPathScope.js +46 -0
- package/node_modules/@happier-dev/protocol/dist/scmPathScope.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmPathScope.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/scmPathScope.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmPathScope.test.js +29 -0
- package/node_modules/@happier-dev/protocol/dist/scmPathScope.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmPolicy.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/scmPolicy.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/scmPolicy.test.js +183 -0
- package/node_modules/@happier-dev/protocol/dist/scmPolicy.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sentFrom.d.ts +33 -0
- package/node_modules/@happier-dev/protocol/dist/sentFrom.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sentFrom.js +24 -0
- package/node_modules/@happier-dev/protocol/dist/sentFrom.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/serverControl/contract.d.ts +269 -0
- package/node_modules/@happier-dev/protocol/dist/serverControl/contract.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/serverControl/contract.js +77 -0
- package/node_modules/@happier-dev/protocol/dist/serverControl/contract.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/serverControl/contract.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/serverControl/contract.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/serverControl/contract.test.js +23 -0
- package/node_modules/@happier-dev/protocol/dist/serverControl/contract.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionContinueWithReplay.d.ts +69 -0
- package/node_modules/@happier-dev/protocol/dist/sessionContinueWithReplay.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionContinueWithReplay.js +36 -0
- package/node_modules/@happier-dev/protocol/dist/sessionContinueWithReplay.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionContinueWithReplay.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/sessionContinueWithReplay.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionContinueWithReplay.test.js +33 -0
- package/node_modules/@happier-dev/protocol/dist/sessionContinueWithReplay.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.d.ts +1954 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.js +479 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.test.js +54 -0
- package/node_modules/@happier-dev/protocol/dist/sessionControl/contract.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageMeta.d.ts +83 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageMeta.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageMeta.js +39 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionMessageMeta.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionStoredMessageContent.d.ts +10 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionStoredMessageContent.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionStoredMessageContent.js +12 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMessages/sessionStoredMessageContent.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/metadataOverridesV1.d.ts +65 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/metadataOverridesV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/metadataOverridesV1.js +68 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/metadataOverridesV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionPermissionModes.d.ts +27 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionPermissionModes.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionPermissionModes.js +20 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/sessionPermissionModes.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/terminalMetadata.d.ts +39 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/terminalMetadata.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/terminalMetadata.js +24 -0
- package/node_modules/@happier-dev/protocol/dist/sessionMetadata/terminalMetadata.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/social/friends.d.ts +212 -0
- package/node_modules/@happier-dev/protocol/dist/social/friends.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/social/friends.js +31 -0
- package/node_modules/@happier-dev/protocol/dist/social/friends.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/socketRpc.d.ts +11 -0
- package/node_modules/@happier-dev/protocol/dist/socketRpc.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/socketRpc.js +10 -0
- package/node_modules/@happier-dev/protocol/dist/socketRpc.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/spawnSession.d.ts +28 -0
- package/node_modules/@happier-dev/protocol/dist/spawnSession.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/spawnSession.js +16 -0
- package/node_modules/@happier-dev/protocol/dist/spawnSession.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/HappierMetaEnvelope.d.ts +12 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/HappierMetaEnvelope.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/HappierMetaEnvelope.js +11 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/HappierMetaEnvelope.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/delegateOutputV1.d.ts +30 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/delegateOutputV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/delegateOutputV1.js +27 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/delegateOutputV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/planOutputV1.d.ts +41 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/planOutputV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/planOutputV1.js +35 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/planOutputV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewFindingsV1.d.ts +75 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewFindingsV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewFindingsV1.js +37 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/reviewFindingsV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/sessionSummaryShardV1.d.ts +22 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/sessionSummaryShardV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/sessionSummaryShardV1.js +36 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/sessionSummaryShardV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/sessionSynopsisV1.d.ts +17 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/sessionSynopsisV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/sessionSynopsisV1.js +16 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/sessionSynopsisV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/voiceAgentTurnV1.d.ts +20 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/voiceAgentTurnV1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/voiceAgentTurnV1.js +16 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/voiceAgentTurnV1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/voiceAgentTurnV1.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/voiceAgentTurnV1.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/voiceAgentTurnV1.test.js +16 -0
- package/node_modules/@happier-dev/protocol/dist/structuredMessages/voiceAgentTurnV1.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/index.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/index.js +6 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/meta.backcompat.spec.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/meta.backcompat.spec.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/meta.backcompat.spec.js +43 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/meta.backcompat.spec.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/meta.d.ts +57 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/meta.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/meta.js +27 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/meta.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/names.d.ts +59 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/names.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/names.js +35 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/names.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/schemas.d.ts +1167 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/schemas.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/schemas.js +338 -0
- package/node_modules/@happier-dev/protocol/dist/tools/v2/schemas.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/updates.automation.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/updates.automation.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/updates.automation.test.js +50 -0
- package/node_modules/@happier-dev/protocol/dist/updates.automation.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/updates.d.ts +509 -0
- package/node_modules/@happier-dev/protocol/dist/updates.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/updates.js +317 -0
- package/node_modules/@happier-dev/protocol/dist/updates.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/voiceActions.d.ts +12 -0
- package/node_modules/@happier-dev/protocol/dist/voiceActions.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/voiceActions.js +58 -0
- package/node_modules/@happier-dev/protocol/dist/voiceActions.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/voiceActions.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/voiceActions.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/voiceActions.test.js +124 -0
- package/node_modules/@happier-dev/protocol/dist/voiceActions.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/voiceAgent.d.ts +427 -0
- package/node_modules/@happier-dev/protocol/dist/voiceAgent.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/voiceAgent.js +118 -0
- package/node_modules/@happier-dev/protocol/dist/voiceAgent.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/voiceAgent.streaming.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/voiceAgent.streaming.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/voiceAgent.streaming.test.js +43 -0
- package/node_modules/@happier-dev/protocol/dist/voiceAgent.streaming.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/voiceAgent.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/voiceAgent.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/voiceAgent.test.js +16 -0
- package/node_modules/@happier-dev/protocol/dist/voiceAgent.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/voiceMediator.d.ts +2737 -0
- package/node_modules/@happier-dev/protocol/dist/voiceMediator.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/voiceMediator.js +118 -0
- package/node_modules/@happier-dev/protocol/dist/voiceMediator.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/voiceMediator.streaming.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/voiceMediator.streaming.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/voiceMediator.streaming.test.js +43 -0
- package/node_modules/@happier-dev/protocol/dist/voiceMediator.streaming.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/voiceMediator.test.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/dist/voiceMediator.test.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/dist/voiceMediator.test.js +16 -0
- package/node_modules/@happier-dev/protocol/dist/voiceMediator.test.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/LICENSE +21 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/README.md +521 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_assert.d.ts +17 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_assert.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_assert.js +18 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_assert.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_blake.d.ts +14 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_blake.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_blake.js +50 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_blake.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_md.d.ts +51 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_md.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_md.js +162 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_md.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_u64.d.ts +55 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_u64.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_u64.js +90 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/_u64.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/argon2.d.ts +32 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/argon2.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/argon2.js +401 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/argon2.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake1.d.ts +106 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake1.js +459 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2.d.ts +116 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2.js +420 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2b.d.ts +11 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2b.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2b.js +14 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2b.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2s.d.ts +20 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2s.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2s.js +24 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake2s.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake3.d.ts +54 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake3.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake3.js +255 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/blake3.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/crypto.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/crypto.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/crypto.js +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/crypto.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/cryptoNode.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/cryptoNode.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/cryptoNode.js +18 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/cryptoNode.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/eskdf.d.ts +47 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/eskdf.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/eskdf.js +166 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/eskdf.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_assert.d.ts +17 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_assert.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_assert.js +15 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_assert.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_blake.d.ts +14 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_blake.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_blake.js +45 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_blake.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_md.d.ts +51 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_md.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_md.js +155 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_md.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_u64.d.ts +55 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_u64.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_u64.js +67 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/_u64.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/argon2.d.ts +32 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/argon2.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/argon2.js +392 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/argon2.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake1.d.ts +106 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake1.js +452 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2.d.ts +116 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2.js +413 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2b.d.ts +11 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2b.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2b.js +11 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2b.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2s.d.ts +20 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2s.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2s.js +21 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake2s.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake3.d.ts +54 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake3.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake3.js +251 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/blake3.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/crypto.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/crypto.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/crypto.js +2 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/crypto.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/cryptoNode.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/cryptoNode.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/cryptoNode.js +15 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/cryptoNode.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/eskdf.d.ts +47 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/eskdf.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/eskdf.js +160 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/eskdf.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/hkdf.d.ts +36 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/hkdf.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/hkdf.js +82 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/hkdf.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/hmac.d.ts +35 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/hmac.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/hmac.js +86 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/hmac.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/index.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/index.js +33 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/legacy.d.ts +71 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/legacy.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/legacy.js +281 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/legacy.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/package.json +10 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/pbkdf2.d.ts +23 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/pbkdf2.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/pbkdf2.js +97 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/pbkdf2.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/ripemd160.d.ts +13 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/ripemd160.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/ripemd160.js +13 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/ripemd160.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/scrypt.d.ts +34 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/scrypt.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/scrypt.js +228 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/scrypt.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha1.d.ts +11 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha1.js +11 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha2.d.ts +159 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha2.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha2.js +375 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha2.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha256.d.ts +20 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha256.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha256.js +20 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha256.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha3-addons.d.ts +142 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha3-addons.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha3-addons.js +393 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha3-addons.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha3.d.ts +53 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha3.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha3.js +234 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha3.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha512.d.ts +26 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha512.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha512.js +26 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/sha512.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/utils.d.ts +161 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/utils.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/utils.js +281 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/esm/utils.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/hkdf.d.ts +36 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/hkdf.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/hkdf.js +88 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/hkdf.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/hmac.d.ts +35 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/hmac.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/hmac.js +91 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/hmac.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/index.d.ts +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/index.js +33 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/index.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/legacy.d.ts +71 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/legacy.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/legacy.js +287 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/legacy.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/package.json +266 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/pbkdf2.d.ts +23 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/pbkdf2.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/pbkdf2.js +101 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/pbkdf2.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/ripemd160.d.ts +13 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/ripemd160.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/ripemd160.js +16 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/ripemd160.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/scrypt.d.ts +34 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/scrypt.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/scrypt.js +232 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/scrypt.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha1.d.ts +11 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha1.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha1.js +14 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha1.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha2.d.ts +159 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha2.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha2.js +384 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha2.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha256.d.ts +20 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha256.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha256.js +23 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha256.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha3-addons.d.ts +142 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha3-addons.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha3-addons.js +402 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha3-addons.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha3.d.ts +53 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha3.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha3.js +239 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha3.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha512.d.ts +26 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha512.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha512.js +29 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/sha512.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/_assert.ts +22 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/_blake.ts +50 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/_md.ts +176 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/_u64.ts +91 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/argon2.ts +497 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/blake1.ts +534 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/blake2.ts +486 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/blake2b.ts +10 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/blake2s.ts +20 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/blake3.ts +272 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/crypto.ts +9 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/cryptoNode.ts +15 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/eskdf.ts +187 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/hkdf.ts +88 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/hmac.ts +94 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/index.ts +31 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/legacy.ts +293 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/pbkdf2.ts +122 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/ripemd160.ts +12 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/scrypt.ts +257 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/sha1.ts +10 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/sha2.ts +402 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/sha256.ts +24 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/sha3-addons.ts +499 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/sha3.ts +258 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/sha512.ts +34 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/src/utils.ts +395 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/utils.d.ts +161 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/utils.d.ts.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/utils.js +313 -0
- package/node_modules/@happier-dev/protocol/node_modules/@noble/hashes/utils.js.map +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/base64-js/LICENSE +21 -0
- package/node_modules/@happier-dev/protocol/node_modules/base64-js/README.md +34 -0
- package/node_modules/@happier-dev/protocol/node_modules/base64-js/base64js.min.js +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/base64-js/index.d.ts +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/base64-js/index.js +150 -0
- package/node_modules/@happier-dev/protocol/node_modules/base64-js/package.json +47 -0
- package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/AUTHORS.md +27 -0
- package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/CHANGELOG.md +283 -0
- package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/LICENSE +24 -0
- package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md +20 -0
- package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/README.md +494 -0
- package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/nacl-fast.js +2391 -0
- package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/nacl-fast.min.js +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/nacl.d.ts +98 -0
- package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/nacl.js +1178 -0
- package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/nacl.min.js +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/tweetnacl/package.json +56 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/LICENSE +21 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/README.md +208 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/index.cjs +33 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/index.d.cts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/index.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/index.js +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/locales/index.cjs +17 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/locales/index.js +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/locales/package.json +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/mini/index.cjs +32 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/mini/index.js +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/mini/package.json +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/package.json +135 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/index.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v3/types.ts +5138 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/checks.ts +32 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/compat.ts +70 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/errors.ts +82 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/external.ts +51 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/from-json-schema.ts +643 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/parse.ts +82 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/schemas.ts +2409 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/catch.test.ts +276 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/codec.test.ts +562 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/default.test.ts +365 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +661 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +595 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +734 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/number.test.ts +270 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/object.test.ts +640 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/optional.test.ts +223 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/partial.test.ts +427 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +282 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/record.test.ts +632 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +582 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/refine.test.ts +570 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/string.test.ts +1175 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2990 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/transform.test.ts +361 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/tuple.test.ts +183 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/union.test.ts +219 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/api.ts +1798 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/checks.ts +1293 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/core.ts +138 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/errors.ts +448 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/index.ts +16 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/json-schema-processors.ts +667 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/json-schema.ts +147 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/parse.ts +195 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/regexes.ts +183 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/schemas.ts +4538 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +83 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +67 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/to-json-schema.ts +613 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/util.ts +966 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ar.ts +115 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/az.ts +111 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/be.ts +176 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/bg.ts +128 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ca.ts +116 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/cs.ts +118 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/da.ts +123 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/de.ts +116 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/en.ts +119 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/eo.ts +118 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/es.ts +141 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/fa.ts +126 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/fi.ts +121 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/fr.ts +116 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/he.ts +246 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/hu.ts +117 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/hy.ts +164 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/id.ts +115 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/index.ts +49 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/is.ts +119 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/it.ts +116 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ja.ts +114 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ka.ts +123 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/km.ts +119 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ko.ts +121 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/lt.ts +239 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/mk.ts +118 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ms.ts +115 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/nl.ts +121 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/no.ts +116 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ota.ts +117 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/pl.ts +118 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ps.ts +126 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/pt.ts +116 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ru.ts +176 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/sl.ts +118 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/sv.ts +119 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ta.ts +118 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/th.ts +119 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/tr.ts +111 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/uk.ts +117 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/ur.ts +119 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/uz.ts +116 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/vi.ts +117 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/yo.ts +124 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/parse.ts +14 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/schemas.ts +1916 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/codec.test.ts +529 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/index.test.ts +963 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4/mini/tests/string.test.ts +347 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/external.js +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/index.js +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/locales/en.cjs +112 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/package.json +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/types.cjs +3777 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/types.d.cts +1034 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/types.d.ts +1034 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v3/types.js +3695 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/checks.cjs +33 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/compat.cjs +61 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/compat.d.cts +50 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/compat.d.ts +50 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/compat.js +31 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/errors.cjs +74 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/errors.js +48 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/external.cjs +73 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/external.d.cts +15 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/external.d.ts +15 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/external.js +20 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/from-json-schema.cjs +610 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/from-json-schema.js +584 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/package.json +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/parse.cjs +41 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/parse.d.cts +31 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/parse.d.ts +31 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/parse.js +15 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/schemas.cjs +1272 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/schemas.d.cts +739 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/schemas.d.ts +739 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/classic/schemas.js +1157 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/api.cjs +1222 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/api.d.cts +304 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/api.d.ts +304 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/api.js +1082 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/checks.cjs +601 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/checks.js +575 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/core.cjs +83 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/core.d.cts +70 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/core.d.ts +70 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/core.js +76 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/errors.cjs +213 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/errors.d.cts +220 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/errors.d.ts +220 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/errors.js +182 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/index.cjs +47 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/index.d.cts +16 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/index.d.ts +16 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/index.js +16 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema-processors.cjs +648 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema-processors.js +605 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema.d.cts +88 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema.d.ts +88 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/package.json +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/parse.cjs +131 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/parse.d.cts +49 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/parse.d.ts +49 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/parse.js +93 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/regexes.cjs +166 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/regexes.d.cts +79 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/regexes.d.ts +79 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/regexes.js +133 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/schemas.cjs +2124 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/schemas.d.cts +1146 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/schemas.d.ts +1146 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/schemas.js +2093 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/to-json-schema.cjs +446 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/to-json-schema.js +437 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/util.cjs +710 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/util.d.cts +199 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/util.d.ts +199 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/util.js +651 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/index.js +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ar.cjs +133 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ar.js +106 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/az.cjs +132 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/az.js +105 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/be.cjs +183 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/be.js +156 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/bg.cjs +147 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/bg.js +120 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ca.cjs +134 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ca.js +107 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/cs.cjs +138 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/cs.js +111 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/da.cjs +142 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/da.js +115 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/de.cjs +135 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/de.js +108 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/en.cjs +136 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/en.js +109 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/eo.cjs +136 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/eo.js +109 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/es.cjs +159 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/es.js +132 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fa.cjs +141 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fa.js +114 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fi.cjs +139 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fi.js +112 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fr-CA.js +107 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fr.cjs +135 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/fr.js +108 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/he.cjs +241 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/he.js +214 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/hu.cjs +135 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/hu.js +108 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/hy.cjs +174 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/hy.js +147 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/id.cjs +133 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/id.js +106 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/index.cjs +104 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/index.d.cts +49 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/index.d.ts +49 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/index.js +49 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/is.cjs +136 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/is.js +109 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/it.cjs +135 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/it.js +108 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ja.cjs +134 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ja.js +107 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ka.cjs +139 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ka.js +112 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/kh.js +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/km.cjs +137 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/km.js +110 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ko.cjs +138 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ko.js +111 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/lt.cjs +230 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/lt.js +203 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/mk.cjs +136 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/mk.js +109 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ms.cjs +134 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ms.js +107 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/nl.cjs +137 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/nl.js +110 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/no.cjs +135 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/no.js +108 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ota.cjs +136 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ota.js +109 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/package.json +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/pl.cjs +136 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/pl.js +109 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ps.cjs +141 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ps.js +114 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/pt.cjs +135 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/pt.js +108 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ru.cjs +183 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ru.js +156 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/sl.cjs +136 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/sl.js +109 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/sv.cjs +137 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/sv.js +110 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ta.cjs +137 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ta.js +110 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/th.cjs +137 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/th.js +110 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/tr.cjs +132 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/tr.js +105 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ua.js +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/uk.cjs +135 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/uk.js +108 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ur.cjs +137 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/ur.js +110 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/uz.cjs +136 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/uz.js +109 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/vi.cjs +135 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/vi.js +108 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/yo.cjs +134 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/yo.js +107 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/zh-CN.js +109 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/locales/zh-TW.js +107 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/coerce.cjs +52 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/coerce.js +22 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/external.cjs +63 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/external.d.cts +12 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/external.d.ts +12 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/external.js +14 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/iso.cjs +64 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/iso.js +34 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/package.json +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/parse.cjs +16 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/schemas.cjs +1046 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/schemas.d.cts +427 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/schemas.d.ts +427 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/mini/schemas.js +925 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4/package.json +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4-mini/index.cjs +32 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4-mini/index.js +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod/v4-mini/package.json +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/.github/CR_logotype-full-color.png +0 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/.github/FUNDING.yml +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/.prettierrc.json +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/LICENSE +15 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/README.md +390 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/changelog.md +82 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/contributing.md +9 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/createIndex.ts +32 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/Options.js +51 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/Refs.js +26 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/errorMessages.js +19 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/getRelativePath.js +12 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/index.js +56 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/package.json +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parseDef.js +66 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parseTypes.js +2 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/any.js +21 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/array.js +30 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/bigint.js +53 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/boolean.js +9 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/branded.js +8 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/catch.js +8 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/date.js +50 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/default.js +11 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/effects.js +11 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/enum.js +10 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/intersection.js +56 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/literal.js +25 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/map.js +30 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/nativeEnum.js +20 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/never.js +15 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/null.js +14 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/nullable.js +37 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/number.js +56 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/object.js +76 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/optional.js +25 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/pipeline.js +24 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/promise.js +8 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/readonly.js +8 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/record.js +65 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/set.js +24 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/string.js +356 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/tuple.js +36 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/undefined.js +10 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/union.js +84 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/parsers/unknown.js +8 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/selectParser.js +109 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/cjs/zodToJsonSchema.js +90 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/Options.js +46 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/Refs.js +22 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +14 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +8 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/index.js +40 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/package.json +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parseDef.js +62 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +17 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +26 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +49 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +46 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +7 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +7 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +52 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +21 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +26 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +16 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +11 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +10 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +33 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +52 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +72 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +21 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +20 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +61 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +20 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +352 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +32 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +80 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/selectParser.js +105 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +87 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/Options.d.ts +37 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/Refs.d.ts +17 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/errorMessages.d.ts +15 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/getRelativePath.d.ts +1 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/index.d.ts +40 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parseDef.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parseTypes.d.ts +34 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/any.d.ts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/array.d.ts +12 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/bigint.d.ts +14 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/boolean.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/branded.d.ts +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/catch.d.ts +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/date.d.ts +15 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/default.d.ts +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/effects.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/enum.d.ts +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/intersection.d.ts +8 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/literal.d.ts +9 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/map.d.ts +15 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/nativeEnum.d.ts +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/never.d.ts +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/null.d.ts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/nullable.d.ts +10 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/number.d.ts +13 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/object.d.ts +10 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/optional.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/pipeline.d.ts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/promise.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/readonly.d.ts +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/record.d.ts +13 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/set.d.ts +13 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/string.d.ts +73 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/tuple.d.ts +13 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/undefined.d.ts +6 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/union.d.ts +23 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/parsers/unknown.d.ts +4 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/selectParser.d.ts +5 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/dist/types/zodToJsonSchema.d.ts +10 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/package.json +78 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/postcjs.ts +3 -0
- package/node_modules/@happier-dev/protocol/node_modules/zod-to-json-schema/postesm.ts +3 -0
- package/node_modules/@happier-dev/protocol/package.json +61 -0
- package/node_modules/@happier-dev/release-runtime/dist/assets.d.ts +22 -0
- package/node_modules/@happier-dev/release-runtime/dist/assets.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/dist/assets.js +44 -0
- package/node_modules/@happier-dev/release-runtime/dist/assets.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/dist/checksums.d.ts +5 -0
- package/node_modules/@happier-dev/release-runtime/dist/checksums.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/dist/checksums.js +21 -0
- package/node_modules/@happier-dev/release-runtime/dist/checksums.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/dist/extractPlan.d.ts +14 -0
- package/node_modules/@happier-dev/release-runtime/dist/extractPlan.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/dist/extractPlan.js +39 -0
- package/node_modules/@happier-dev/release-runtime/dist/extractPlan.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/dist/github.d.ts +20 -0
- package/node_modules/@happier-dev/release-runtime/dist/github.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/dist/github.js +60 -0
- package/node_modules/@happier-dev/release-runtime/dist/github.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/dist/index.d.ts +7 -0
- package/node_modules/@happier-dev/release-runtime/dist/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/dist/index.js +7 -0
- package/node_modules/@happier-dev/release-runtime/dist/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/dist/minisign.d.ts +7 -0
- package/node_modules/@happier-dev/release-runtime/dist/minisign.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/dist/minisign.js +92 -0
- package/node_modules/@happier-dev/release-runtime/dist/minisign.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/dist/verifiedDownload.d.ts +26 -0
- package/node_modules/@happier-dev/release-runtime/dist/verifiedDownload.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/dist/verifiedDownload.js +53 -0
- package/node_modules/@happier-dev/release-runtime/dist/verifiedDownload.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/package.json +38 -0
- package/package.json +8 -2
- package/scripts/auth.mjs +71 -41
- package/scripts/auth_copy_from_pglite_lock_in_use.integration.test.mjs +1 -0
- package/scripts/auth_copy_from_runCapture.integration.test.mjs +173 -4
- package/scripts/auth_force_flag.test.mjs +28 -0
- package/scripts/auth_help_cmd.test.mjs +5 -0
- package/scripts/auth_login_guided_server_no_expo.test.mjs +2 -0
- package/scripts/auth_login_respects_pinned_stack_port.test.mjs +200 -0
- package/scripts/auth_login_runtime_state_port.test.mjs +47 -0
- package/scripts/build.mjs +3 -18
- package/scripts/bundleWorkspaceDeps.mjs +27 -2
- package/scripts/bundleWorkspaceDeps.test.mjs +155 -2
- package/scripts/daemon.mjs +90 -10
- package/scripts/daemon_dist_guard.test.mjs +6 -5
- package/scripts/daemon_invalid_auth_reseed_stack_name.integration.test.mjs +107 -27
- package/scripts/daemon_start_verification.integration.test.mjs +13 -13
- package/scripts/daemon_stop_expected_pid.test.mjs +71 -0
- package/scripts/dev.mjs +144 -110
- package/scripts/dev_external_server_flags.test.mjs +59 -0
- package/scripts/ghops.mjs +80 -0
- package/scripts/ghops.test.mjs +78 -0
- package/scripts/init.mjs +5 -1
- package/scripts/init_shim_invoked_cwd.test.mjs +51 -0
- package/scripts/logs.mjs +286 -0
- package/scripts/logs_cmd.test.mjs +87 -0
- package/scripts/mobile.mjs +30 -2
- package/scripts/mobile_dev_client.mjs +7 -32
- package/scripts/mobile_dev_client_help_smoke.test.mjs +24 -0
- package/scripts/mobile_prebuild_happyDir_defined.test.mjs +47 -0
- package/scripts/mobile_prebuild_sets_rct_metro_port.test.mjs +81 -0
- package/scripts/mobile_run_ios_passes_port.integration.test.mjs +103 -0
- package/scripts/mobile_run_ios_uses_long_port_flag.test.mjs +106 -0
- package/scripts/providers_cmd.mjs +262 -0
- package/scripts/provision/{linux-ubuntu-e2e.sh → linux-ubuntu-hstack-smoke.sh} +27 -33
- package/scripts/provision/linux-ubuntu-provision.sh +147 -0
- package/scripts/provision/linux-ubuntu-provision.test.mjs +163 -0
- package/scripts/provision/macos-lima-hstack-smoke.sh +104 -0
- package/scripts/provision/macos-lima-vm.sh +257 -0
- package/scripts/provision/macos-lima-vm.test.mjs +133 -0
- package/scripts/release_binary_smoke.integration.test.mjs +30 -8
- package/scripts/remote_cmd.mjs +362 -0
- package/scripts/repo_cli_activate.mjs +41 -0
- package/scripts/repo_cli_activate.test.mjs +54 -0
- package/scripts/repo_local.mjs +541 -0
- package/scripts/repo_local_wrapper.test.mjs +454 -0
- package/scripts/root_package_repo_local_scripts.test.mjs +46 -0
- package/scripts/run.mjs +74 -31
- package/scripts/self_host_binary_smoke.integration.test.mjs +1 -1
- package/scripts/self_host_daemon.real.integration.test.mjs +296 -0
- package/scripts/self_host_launchd.real.integration.test.mjs +212 -0
- package/scripts/self_host_runtime.mjs +1893 -333
- package/scripts/self_host_runtime.test.mjs +698 -1
- package/scripts/self_host_schtasks.real.integration.test.mjs +217 -0
- package/scripts/self_host_service_e2e_harness.mjs +93 -0
- package/scripts/self_host_systemd.real.integration.test.mjs +10 -88
- package/scripts/service.mjs +156 -26
- package/scripts/setup.mjs +223 -44
- package/scripts/setup_dev_child_env.test.mjs +244 -0
- package/scripts/setup_local_repo_profile.test.mjs +178 -0
- package/scripts/setup_pr.mjs +9 -6
- package/scripts/setup_pr_orchestrated_auth_flow_util_import.test.mjs +23 -1
- package/scripts/stack/command_arguments.mjs +1 -0
- package/scripts/stack/help_text.mjs +4 -2
- package/scripts/stack/run_script_with_stack_env.mjs +24 -2
- package/scripts/stack/stack_daemon_command.mjs +31 -2
- package/scripts/stack/stack_environment.mjs +15 -2
- package/scripts/stack/stack_environment.sanitization.test.mjs +45 -0
- package/scripts/stack.mjs +5 -2
- package/scripts/stack_create_dev_auth_seed_help_force.test.mjs +38 -0
- package/scripts/stack_daemon_cmd.integration.test.mjs +70 -0
- package/scripts/stack_guided_login_does_not_preopen_browser.test.mjs +17 -0
- package/scripts/stack_happy_cmd.integration.test.mjs +36 -0
- package/scripts/stack_pr_help_cmd.test.mjs +38 -0
- package/scripts/stop.mjs +2 -3
- package/scripts/stopStackWithEnv_kills_ephemeral_runtime_pids_without_env_markers.integration.test.mjs +98 -0
- package/scripts/stopStackWithEnv_sweeps_repo_local_stack_by_stackName_when_runtime_missing.integration.test.mjs +78 -0
- package/scripts/tailscale.mjs +16 -1
- package/scripts/tailscale_cmd_output.test.mjs +88 -0
- package/scripts/tui.mjs +604 -88
- package/scripts/tui_args_default_cmd.test.mjs +41 -0
- package/scripts/utils/auth/auth_force_flag.mjs +14 -0
- package/scripts/utils/auth/credentials_paths.mjs +9 -9
- package/scripts/utils/auth/credentials_paths.test.mjs +8 -0
- package/scripts/utils/auth/orchestrated_stack_auth_flow.mjs +64 -3
- package/scripts/utils/auth/stable_scope_id.mjs +1 -1
- package/scripts/utils/auth/stack_guided_login.mjs +0 -6
- package/scripts/utils/cli/cli_registry.mjs +30 -3
- package/scripts/utils/cli/normalize.mjs +1 -0
- package/scripts/utils/cli/progress.mjs +8 -1
- package/scripts/utils/cli/progress.test.mjs +43 -0
- package/scripts/utils/dev/expo_dev.buildEnv.test.mjs +17 -0
- package/scripts/utils/dev/expo_dev.mjs +59 -5
- package/scripts/utils/dev/expo_dev_restart_port_reservation.test.mjs +242 -1
- package/scripts/utils/dev/expo_dev_runtime_metadata.test.mjs +126 -0
- package/scripts/utils/dev/expo_dev_verbose_logs.test.mjs +9 -2
- package/scripts/utils/dev/resolveDevServerConnection.mjs +60 -0
- package/scripts/utils/dev/resolveDevServerConnection.test.mjs +74 -0
- package/scripts/utils/env/env.mjs +3 -0
- package/scripts/utils/expo/command.mjs +5 -2
- package/scripts/utils/expo/command_workspace_deps_built.test.mjs +158 -0
- package/scripts/utils/expo/metro_ports.test.mjs +55 -0
- package/scripts/utils/git/dev_checkout.mjs +3 -2
- package/scripts/utils/mobile/dev_client_install_invocation.mjs +68 -0
- package/scripts/utils/mobile/dev_client_install_invocation.test.mjs +27 -0
- package/scripts/utils/paths/paths.mjs +7 -1
- package/scripts/utils/paths/paths_monorepo.test.mjs +26 -1
- package/scripts/utils/proc/ensureWorkspacePackagesBuilt.test.mjs +120 -0
- package/scripts/utils/proc/pm.mjs +198 -11
- package/scripts/utils/proc/pm_stack_cache_env.test.mjs +244 -1
- package/scripts/utils/proc/proc.mjs +20 -2
- package/scripts/utils/proc/proc.test.mjs +16 -1
- package/scripts/utils/server/port.mjs +20 -2
- package/scripts/utils/server/resolve_stack_server_port.mjs +101 -0
- package/scripts/utils/server/resolve_stack_server_port.test.mjs +148 -0
- package/scripts/utils/service/service_manager.definition.test.mjs +66 -0
- package/scripts/utils/service/service_manager.mjs +96 -0
- package/scripts/utils/service/service_manager.plan.test.mjs +37 -0
- package/scripts/utils/service/service_manager.test.mjs +20 -0
- package/scripts/utils/service/systemd_service_unit.mjs +1 -0
- package/scripts/utils/service/systemd_service_unit.test.mjs +42 -0
- package/scripts/utils/service/windows_schtasks_wrapper.mjs +1 -0
- package/scripts/utils/service/windows_schtasks_wrapper.test.mjs +25 -0
- package/scripts/utils/setup/child_env.mjs +13 -0
- package/scripts/utils/setup/child_env.test.mjs +36 -0
- package/scripts/utils/stack/stacks.mjs +2 -2
- package/scripts/utils/stack/stop.mjs +82 -8
- package/scripts/utils/tauri/stack_overrides.mjs +16 -0
- package/scripts/utils/tui/actions.mjs +22 -0
- package/scripts/utils/tui/actions.test.mjs +39 -0
- package/scripts/utils/tui/args.mjs +49 -0
- package/scripts/utils/tui/args.test.mjs +70 -0
- package/scripts/utils/tui/daemon_auth_notice.mjs +74 -0
- package/scripts/utils/tui/daemon_auth_notice.test.mjs +53 -0
- package/scripts/utils/tui/daemon_autostart.mjs +34 -0
- package/scripts/utils/tui/daemon_autostart.test.mjs +157 -0
- package/scripts/utils/tui/daemon_pane_reconcile.mjs +43 -0
- package/scripts/utils/tui/daemon_pane_reconcile.test.mjs +35 -0
- package/scripts/utils/tui/script_pty_command.mjs +27 -0
- package/scripts/utils/tui/script_pty_command.test.mjs +29 -0
- package/scripts/utils/tui/stack_scope_env.mjs +10 -0
- package/scripts/utils/tui/stack_scope_env.test.mjs +21 -0
- package/scripts/utils/tui/stdin_handoff.mjs +101 -0
- package/scripts/utils/tui/stdin_handoff.test.mjs +29 -0
- package/scripts/utils/tui/summary_env.mjs +7 -0
- package/scripts/utils/tui/summary_env.test.mjs +22 -0
- package/scripts/utils/ui/box_line.mjs +46 -0
- package/scripts/utils/ui/box_line.test.mjs +20 -0
- package/scripts/utils/ui/ui_export_env.mjs +29 -0
- package/scripts/utils/ui/ui_export_env.test.mjs +25 -0
- package/scripts/worktrees.mjs +3 -0
- package/scripts/worktrees_status_default_target.test.mjs +56 -0
- package/scripts/provision/linux-ubuntu-review-pr.sh +0 -66
- package/scripts/provision/macos-lima-happy-vm.sh +0 -192
- package/scripts/provision/macos-lima-hstack-e2e.sh +0 -100
|
@@ -1,30 +1,47 @@
|
|
|
1
1
|
import { spawnSync } from 'node:child_process';
|
|
2
|
-
import { createHash } from 'node:crypto';
|
|
2
|
+
import { createHash, randomUUID } from 'node:crypto';
|
|
3
3
|
import { existsSync } from 'node:fs';
|
|
4
4
|
import {
|
|
5
|
+
cp,
|
|
5
6
|
chmod,
|
|
6
7
|
copyFile,
|
|
7
8
|
mkdir,
|
|
8
9
|
mkdtemp,
|
|
9
10
|
readFile,
|
|
10
11
|
readdir,
|
|
12
|
+
rename,
|
|
11
13
|
rm,
|
|
12
14
|
stat,
|
|
13
15
|
symlink,
|
|
14
16
|
writeFile,
|
|
15
17
|
} from 'node:fs/promises';
|
|
16
|
-
import { tmpdir } from 'node:os';
|
|
17
|
-
import { dirname, join } from 'node:path';
|
|
18
|
+
import { homedir, tmpdir } from 'node:os';
|
|
19
|
+
import { dirname, join, win32 as win32Path } from 'node:path';
|
|
18
20
|
|
|
19
21
|
import { parseArgs } from './utils/cli/args.mjs';
|
|
20
22
|
import { printResult, wantsHelp, wantsJson } from './utils/cli/cli.mjs';
|
|
21
23
|
import { banner, sectionTitle } from './utils/ui/layout.mjs';
|
|
22
24
|
import { cyan, dim, green, yellow } from './utils/ui/ansi.mjs';
|
|
25
|
+
import { installService as installManagedService, restartService as restartManagedService, uninstallService as uninstallManagedService } from './utils/service/service_manager.mjs';
|
|
26
|
+
import {
|
|
27
|
+
applyServicePlan,
|
|
28
|
+
buildLaunchdPath,
|
|
29
|
+
buildLaunchdPlistXml,
|
|
30
|
+
buildServiceDefinition,
|
|
31
|
+
planServiceAction,
|
|
32
|
+
renderSystemdServiceUnit,
|
|
33
|
+
renderWindowsScheduledTaskWrapperPs1,
|
|
34
|
+
resolveServiceBackend,
|
|
35
|
+
} from '@happier-dev/cli-common/service';
|
|
36
|
+
import { DEFAULT_MINISIGN_PUBLIC_KEY } from '@happier-dev/release-runtime/minisign';
|
|
37
|
+
import { resolveReleaseAssetBundle } from '@happier-dev/release-runtime/assets';
|
|
38
|
+
import { downloadVerifiedReleaseAssetBundle } from '@happier-dev/release-runtime/verifiedDownload';
|
|
39
|
+
import { planArchiveExtraction } from '@happier-dev/release-runtime/extractPlan';
|
|
40
|
+
import { fetchFirstGitHubReleaseByTags, fetchGitHubReleaseByTag } from '@happier-dev/release-runtime/github';
|
|
23
41
|
|
|
24
42
|
const SUPPORTED_CHANNELS = new Set(['stable', 'preview']);
|
|
25
43
|
const DEFAULTS = Object.freeze({
|
|
26
44
|
githubRepo: 'happier-dev/happier',
|
|
27
|
-
minisignPubKeyUrl: 'https://happier.dev/happier-release.pub',
|
|
28
45
|
installRoot: '/opt/happier',
|
|
29
46
|
binDir: '/usr/local/bin',
|
|
30
47
|
configDir: '/etc/happier',
|
|
@@ -33,8 +50,39 @@ const DEFAULTS = Object.freeze({
|
|
|
33
50
|
serviceName: 'happier-server',
|
|
34
51
|
serverHost: '127.0.0.1',
|
|
35
52
|
serverPort: 3005,
|
|
53
|
+
healthCheckTimeoutMs: 90_000,
|
|
54
|
+
autoUpdateIntervalMinutes: 1440,
|
|
55
|
+
uiWebProduct: 'happier-ui-web',
|
|
56
|
+
uiWebOs: 'web',
|
|
57
|
+
uiWebArch: 'any',
|
|
36
58
|
});
|
|
37
59
|
|
|
60
|
+
export function resolveSelfHostDefaults({ platform = process.platform, mode = 'user', homeDir = homedir() } = {}) {
|
|
61
|
+
const p = String(platform ?? '').trim() || process.platform;
|
|
62
|
+
const m = String(mode ?? '').trim().toLowerCase() === 'system' ? 'system' : 'user';
|
|
63
|
+
const home = String(homeDir ?? '').trim() || homedir();
|
|
64
|
+
|
|
65
|
+
if (m === 'system') {
|
|
66
|
+
return {
|
|
67
|
+
installRoot: DEFAULTS.installRoot,
|
|
68
|
+
binDir: DEFAULTS.binDir,
|
|
69
|
+
configDir: DEFAULTS.configDir,
|
|
70
|
+
dataDir: DEFAULTS.dataDir,
|
|
71
|
+
logDir: DEFAULTS.logDir,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const happierHome = p === 'win32' ? `${home}\\.happier` : join(home, '.happier');
|
|
76
|
+
const installRoot = p === 'win32' ? `${happierHome}\\self-host` : join(happierHome, 'self-host');
|
|
77
|
+
return {
|
|
78
|
+
installRoot,
|
|
79
|
+
binDir: p === 'win32' ? `${happierHome}\\bin` : join(happierHome, 'bin'),
|
|
80
|
+
configDir: p === 'win32' ? `${installRoot}\\config` : join(installRoot, 'config'),
|
|
81
|
+
dataDir: p === 'win32' ? `${installRoot}\\data` : join(installRoot, 'data'),
|
|
82
|
+
logDir: p === 'win32' ? `${installRoot}\\logs` : join(installRoot, 'logs'),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
38
86
|
function parseBoolean(raw, fallback = false) {
|
|
39
87
|
const value = String(raw ?? '').trim().toLowerCase();
|
|
40
88
|
if (!value) return fallback;
|
|
@@ -50,6 +98,88 @@ function parsePort(raw, fallback = DEFAULTS.serverPort) {
|
|
|
50
98
|
return port > 0 && port <= 65535 ? port : fallback;
|
|
51
99
|
}
|
|
52
100
|
|
|
101
|
+
function parseDailyAtTime(raw) {
|
|
102
|
+
const text = String(raw ?? '').trim();
|
|
103
|
+
if (!text) return null;
|
|
104
|
+
const m = /^(\d{1,2}):(\d{1,2})$/.exec(text);
|
|
105
|
+
if (!m) return null;
|
|
106
|
+
const hourRaw = Number(m[1]);
|
|
107
|
+
const minuteRaw = Number(m[2]);
|
|
108
|
+
const hour = Number.isFinite(hourRaw) ? Math.floor(hourRaw) : NaN;
|
|
109
|
+
const minute = Number.isFinite(minuteRaw) ? Math.floor(minuteRaw) : NaN;
|
|
110
|
+
if (!Number.isFinite(hour) || !Number.isFinite(minute)) return null;
|
|
111
|
+
if (hour < 0 || hour > 23) return null;
|
|
112
|
+
if (minute < 0 || minute > 59) return null;
|
|
113
|
+
const hh = String(hour).padStart(2, '0');
|
|
114
|
+
const mm = String(minute).padStart(2, '0');
|
|
115
|
+
return { hour, minute, normalized: `${hh}:${mm}` };
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function resolveSelfHostHealthTimeoutMs(env = process.env) {
|
|
119
|
+
const raw = String(env?.HAPPIER_SELF_HOST_HEALTH_TIMEOUT_MS ?? '').trim();
|
|
120
|
+
if (!raw) return DEFAULTS.healthCheckTimeoutMs;
|
|
121
|
+
const parsed = Number(raw);
|
|
122
|
+
return Number.isFinite(parsed) && parsed >= 10_000
|
|
123
|
+
? Math.floor(parsed)
|
|
124
|
+
: DEFAULTS.healthCheckTimeoutMs;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function resolveSelfHostEffectiveServerPort({ config, env } = {}) {
|
|
128
|
+
const fallback = parsePort(config?.serverPort, DEFAULTS.serverPort);
|
|
129
|
+
return parsePort(env?.PORT, fallback);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function resolveSelfHostAutoUpdateDefault(env = process.env) {
|
|
133
|
+
return parseBoolean(env?.HAPPIER_SELF_HOST_AUTO_UPDATE, false);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function resolveSelfHostAutoUpdateIntervalMinutes(env = process.env) {
|
|
137
|
+
const raw = String(env?.HAPPIER_SELF_HOST_AUTO_UPDATE_INTERVAL_MINUTES ?? '').trim();
|
|
138
|
+
if (!raw) return DEFAULTS.autoUpdateIntervalMinutes;
|
|
139
|
+
const parsed = Number(raw);
|
|
140
|
+
const minutes = Number.isFinite(parsed) ? Math.floor(parsed) : NaN;
|
|
141
|
+
return Number.isFinite(minutes) && minutes >= 15
|
|
142
|
+
? minutes
|
|
143
|
+
: DEFAULTS.autoUpdateIntervalMinutes;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function resolveSelfHostAutoUpdateAt(env = process.env) {
|
|
147
|
+
const raw = String(env?.HAPPIER_SELF_HOST_AUTO_UPDATE_AT ?? '').trim();
|
|
148
|
+
const parsed = parseDailyAtTime(raw);
|
|
149
|
+
return parsed?.normalized || '';
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export function normalizeSelfHostAutoUpdateState(state, { fallbackIntervalMinutes = DEFAULTS.autoUpdateIntervalMinutes } = {}) {
|
|
153
|
+
const fallbackRaw = Number(fallbackIntervalMinutes);
|
|
154
|
+
const fallback =
|
|
155
|
+
Number.isFinite(fallbackRaw) && Math.floor(fallbackRaw) >= 15
|
|
156
|
+
? Math.floor(fallbackRaw)
|
|
157
|
+
: DEFAULTS.autoUpdateIntervalMinutes;
|
|
158
|
+
|
|
159
|
+
const raw = state?.autoUpdate;
|
|
160
|
+
if (raw != null && typeof raw === 'object') {
|
|
161
|
+
const enabled = Boolean(raw.enabled);
|
|
162
|
+
const parsed = Number(raw.intervalMinutes);
|
|
163
|
+
const intervalMinutes = Number.isFinite(parsed) && Math.floor(parsed) >= 15 ? Math.floor(parsed) : fallback;
|
|
164
|
+
const at = typeof raw.at === 'string' ? (parseDailyAtTime(raw.at)?.normalized || '') : '';
|
|
165
|
+
return { enabled, intervalMinutes, at };
|
|
166
|
+
}
|
|
167
|
+
if (raw === true || raw === false) {
|
|
168
|
+
return { enabled: raw, intervalMinutes: fallback, at: '' };
|
|
169
|
+
}
|
|
170
|
+
return { enabled: false, intervalMinutes: fallback, at: '' };
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export function decideSelfHostAutoUpdateReconcile(state, { fallbackIntervalMinutes = DEFAULTS.autoUpdateIntervalMinutes } = {}) {
|
|
174
|
+
const normalized = normalizeSelfHostAutoUpdateState(state, { fallbackIntervalMinutes });
|
|
175
|
+
return {
|
|
176
|
+
action: normalized.enabled ? 'install' : 'uninstall',
|
|
177
|
+
enabled: normalized.enabled,
|
|
178
|
+
intervalMinutes: normalized.intervalMinutes,
|
|
179
|
+
at: normalized.at,
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
53
183
|
function assertLinux() {
|
|
54
184
|
if (process.platform !== 'linux') {
|
|
55
185
|
throw new Error('[self-host] Happier Self-Host currently supports Linux only.');
|
|
@@ -82,7 +212,13 @@ function runCommand(cmd, args, { cwd, env, allowFail = false, stdio = 'pipe' } =
|
|
|
82
212
|
}
|
|
83
213
|
|
|
84
214
|
function commandExists(cmd) {
|
|
85
|
-
const
|
|
215
|
+
const name = String(cmd ?? '').trim();
|
|
216
|
+
if (!name) return false;
|
|
217
|
+
if (process.platform === 'win32') {
|
|
218
|
+
const result = runCommand('where', [name], { allowFail: true, stdio: 'ignore' });
|
|
219
|
+
return (result.status ?? 1) === 0;
|
|
220
|
+
}
|
|
221
|
+
const result = runCommand('sh', ['-lc', `command -v ${name} >/dev/null 2>&1`], { allowFail: true, stdio: 'ignore' });
|
|
86
222
|
return (result.status ?? 1) === 0;
|
|
87
223
|
}
|
|
88
224
|
|
|
@@ -94,6 +230,14 @@ function normalizeArch() {
|
|
|
94
230
|
return arch;
|
|
95
231
|
}
|
|
96
232
|
|
|
233
|
+
function normalizeOs(platform = process.platform) {
|
|
234
|
+
const p = String(platform ?? '').trim() || process.platform;
|
|
235
|
+
if (p === 'linux') return 'linux';
|
|
236
|
+
if (p === 'darwin') return 'darwin';
|
|
237
|
+
if (p === 'win32') return 'windows';
|
|
238
|
+
throw new Error(`[self-host] unsupported platform: ${p}`);
|
|
239
|
+
}
|
|
240
|
+
|
|
97
241
|
function normalizeChannel(raw) {
|
|
98
242
|
const channel = String(raw ?? '').trim() || 'stable';
|
|
99
243
|
if (!SUPPORTED_CHANNELS.has(channel)) {
|
|
@@ -102,6 +246,13 @@ function normalizeChannel(raw) {
|
|
|
102
246
|
return channel;
|
|
103
247
|
}
|
|
104
248
|
|
|
249
|
+
function normalizeMode(raw) {
|
|
250
|
+
const mode = String(raw ?? '').trim().toLowerCase();
|
|
251
|
+
if (!mode) return 'user';
|
|
252
|
+
if (mode === 'user' || mode === 'system') return mode;
|
|
253
|
+
throw new Error(`[self-host] invalid mode: ${mode} (expected user|system)`);
|
|
254
|
+
}
|
|
255
|
+
|
|
105
256
|
export function parseSelfHostInvocation(argv) {
|
|
106
257
|
const args = Array.isArray(argv) ? [...argv] : [];
|
|
107
258
|
if (args[0] === 'self-host' || args[0] === 'selfhost') {
|
|
@@ -116,78 +267,154 @@ export function parseSelfHostInvocation(argv) {
|
|
|
116
267
|
};
|
|
117
268
|
}
|
|
118
269
|
|
|
119
|
-
function escapeRegex(s) {
|
|
120
|
-
return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
121
|
-
}
|
|
122
|
-
|
|
123
270
|
export function pickReleaseAsset({ assets, product, os, arch }) {
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
const checksums = list.find((asset) => checksumsRe.test(String(asset?.name ?? '')));
|
|
131
|
-
const signature = list.find((asset) => signatureRe.test(String(asset?.name ?? '')));
|
|
132
|
-
if (!archive || !checksums || !signature) {
|
|
133
|
-
throw new Error(
|
|
134
|
-
`[self-host] release assets not found for ${product} ${os}-${arch} (archive/checksums/signature missing)`
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
|
-
const archiveName = String(archive.name);
|
|
138
|
-
const versionMatch = archiveName.match(/-v([^-/]+)-/);
|
|
271
|
+
const { version, archive, checksums, checksumsSig } = resolveReleaseAssetBundle({
|
|
272
|
+
assets,
|
|
273
|
+
product,
|
|
274
|
+
os,
|
|
275
|
+
arch,
|
|
276
|
+
});
|
|
139
277
|
return {
|
|
140
|
-
archiveUrl:
|
|
141
|
-
archiveName,
|
|
142
|
-
checksumsUrl:
|
|
143
|
-
signatureUrl:
|
|
144
|
-
version
|
|
278
|
+
archiveUrl: archive.url,
|
|
279
|
+
archiveName: archive.name,
|
|
280
|
+
checksumsUrl: checksums.url,
|
|
281
|
+
signatureUrl: checksumsSig.url,
|
|
282
|
+
version,
|
|
145
283
|
};
|
|
146
284
|
}
|
|
147
285
|
|
|
148
|
-
|
|
149
|
-
const
|
|
150
|
-
|
|
286
|
+
function resolveSqliteDatabaseFilePath(databaseUrl) {
|
|
287
|
+
const raw = String(databaseUrl ?? '').trim();
|
|
288
|
+
if (!raw) return '';
|
|
289
|
+
if (!raw.startsWith('file:')) return '';
|
|
290
|
+
try {
|
|
291
|
+
const url = new URL(raw);
|
|
292
|
+
if (url.protocol !== 'file:') return '';
|
|
293
|
+
const pathname = url.pathname || '';
|
|
294
|
+
// On Windows, URL.pathname can start with /C:/...
|
|
295
|
+
return pathname.startsWith('/') && /^[A-Za-z]:\//.test(pathname.slice(1))
|
|
296
|
+
? pathname.slice(1)
|
|
297
|
+
: pathname;
|
|
298
|
+
} catch {
|
|
299
|
+
const value = raw.slice('file:'.length);
|
|
300
|
+
return value.startsWith('//') ? value.replace(/^\/+/, '/') : value;
|
|
301
|
+
}
|
|
151
302
|
}
|
|
152
303
|
|
|
153
|
-
function
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
304
|
+
async function applySelfHostSqliteMigrationsAtInstallTime({ env }) {
|
|
305
|
+
if (typeof globalThis.Bun === 'undefined') {
|
|
306
|
+
return { applied: [], skipped: true, reason: 'bun-unavailable' };
|
|
307
|
+
}
|
|
308
|
+
const databaseUrl = String(env?.DATABASE_URL ?? '').trim();
|
|
309
|
+
const migrationsDir = String(env?.HAPPIER_SQLITE_MIGRATIONS_DIR ?? env?.HAPPY_SQLITE_MIGRATIONS_DIR ?? '').trim();
|
|
310
|
+
if (!databaseUrl || !migrationsDir) {
|
|
311
|
+
return { applied: [], skipped: true, reason: 'missing-config' };
|
|
312
|
+
}
|
|
313
|
+
const dbPath = resolveSqliteDatabaseFilePath(databaseUrl);
|
|
314
|
+
if (!dbPath) {
|
|
315
|
+
return { applied: [], skipped: true, reason: 'unsupported-database-url' };
|
|
316
|
+
}
|
|
317
|
+
const migrationsInfo = await stat(migrationsDir).catch(() => null);
|
|
318
|
+
if (!migrationsInfo?.isDirectory()) {
|
|
319
|
+
return { applied: [], skipped: true, reason: 'migrations-dir-missing' };
|
|
161
320
|
}
|
|
162
|
-
return map;
|
|
163
|
-
}
|
|
164
321
|
|
|
165
|
-
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
accept: 'application/json',
|
|
170
|
-
},
|
|
171
|
-
});
|
|
172
|
-
if (!response.ok) {
|
|
173
|
-
throw new Error(`[self-host] download failed: ${url} (${response.status} ${response.statusText})`);
|
|
322
|
+
const mod = await import('bun:sqlite');
|
|
323
|
+
const Database = mod?.Database;
|
|
324
|
+
if (!Database) {
|
|
325
|
+
return { applied: [], skipped: true, reason: 'bun-sqlite-unavailable' };
|
|
174
326
|
}
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
|
|
327
|
+
const db = new Database(dbPath);
|
|
328
|
+
db.exec(
|
|
329
|
+
[
|
|
330
|
+
'CREATE TABLE IF NOT EXISTS _prisma_migrations (',
|
|
331
|
+
' id TEXT PRIMARY KEY,',
|
|
332
|
+
' checksum TEXT NOT NULL,',
|
|
333
|
+
' finished_at DATETIME,',
|
|
334
|
+
' migration_name TEXT NOT NULL,',
|
|
335
|
+
' logs TEXT,',
|
|
336
|
+
' rolled_back_at DATETIME,',
|
|
337
|
+
' started_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,',
|
|
338
|
+
' applied_steps_count INTEGER NOT NULL DEFAULT 0',
|
|
339
|
+
');',
|
|
340
|
+
].join('\n'),
|
|
341
|
+
);
|
|
178
342
|
|
|
179
|
-
|
|
180
|
-
const
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
343
|
+
const tableNamesQuery = db.query(`SELECT name FROM sqlite_master WHERE type='table'`);
|
|
344
|
+
const appliedQuery = db.query(
|
|
345
|
+
`SELECT migration_name FROM _prisma_migrations WHERE rolled_back_at IS NULL AND finished_at IS NOT NULL`,
|
|
346
|
+
);
|
|
347
|
+
const insertQuery = db.query(
|
|
348
|
+
`INSERT INTO _prisma_migrations (id, checksum, finished_at, migration_name, applied_steps_count) VALUES (?, ?, CURRENT_TIMESTAMP, ?, 1)`,
|
|
349
|
+
);
|
|
350
|
+
|
|
351
|
+
const applied = new Set(
|
|
352
|
+
appliedQuery.all().map((row) => String(row?.migration_name ?? '').trim()).filter(Boolean),
|
|
353
|
+
);
|
|
354
|
+
|
|
355
|
+
const existingTables = new Set(
|
|
356
|
+
tableNamesQuery.all().map((row) => String(row?.name ?? '').trim()).filter(Boolean),
|
|
357
|
+
);
|
|
358
|
+
const hasCoreTables =
|
|
359
|
+
existingTables.has('Account')
|
|
360
|
+
|| existingTables.has('account')
|
|
361
|
+
|| existingTables.has('accounts');
|
|
362
|
+
const legacyMode = applied.size === 0 && hasCoreTables;
|
|
363
|
+
|
|
364
|
+
const isLikelyAlreadyAppliedError = (err) => {
|
|
365
|
+
const msg = String(err?.message ?? err ?? '').toLowerCase();
|
|
366
|
+
return msg.includes('already exists') || msg.includes('duplicate column') || msg.includes('duplicate');
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
const entries = await readdir(migrationsDir, { withFileTypes: true }).catch(() => []);
|
|
370
|
+
const dirs = entries
|
|
371
|
+
.filter((e) => e.isDirectory())
|
|
372
|
+
.map((e) => e.name)
|
|
373
|
+
.sort((a, b) => a.localeCompare(b));
|
|
374
|
+
|
|
375
|
+
const sha256Hex = (input) => createHash('sha256').update(String(input)).digest('hex');
|
|
376
|
+
const appliedNow = [];
|
|
377
|
+
for (const name of dirs) {
|
|
378
|
+
if (applied.has(name)) continue;
|
|
379
|
+
const sqlPath = join(migrationsDir, name, 'migration.sql');
|
|
380
|
+
const sql = await readFile(sqlPath, 'utf8').catch(() => '');
|
|
381
|
+
if (!sql.trim()) continue;
|
|
382
|
+
const checksum = sha256Hex(sql);
|
|
383
|
+
db.exec('BEGIN');
|
|
384
|
+
try {
|
|
385
|
+
db.exec(sql);
|
|
386
|
+
insertQuery.run(randomUUID(), checksum, name);
|
|
387
|
+
db.exec('COMMIT');
|
|
388
|
+
appliedNow.push(name);
|
|
389
|
+
applied.add(name);
|
|
390
|
+
} catch (e) {
|
|
391
|
+
try {
|
|
392
|
+
db.exec('ROLLBACK');
|
|
393
|
+
} catch {
|
|
394
|
+
// ignore
|
|
395
|
+
}
|
|
396
|
+
if (legacyMode && isLikelyAlreadyAppliedError(e)) {
|
|
397
|
+
db.exec('BEGIN');
|
|
398
|
+
try {
|
|
399
|
+
insertQuery.run(randomUUID(), checksum, name);
|
|
400
|
+
db.exec('COMMIT');
|
|
401
|
+
} catch (inner) {
|
|
402
|
+
try {
|
|
403
|
+
db.exec('ROLLBACK');
|
|
404
|
+
} catch {
|
|
405
|
+
// ignore
|
|
406
|
+
}
|
|
407
|
+
throw inner;
|
|
408
|
+
}
|
|
409
|
+
appliedNow.push(name);
|
|
410
|
+
applied.add(name);
|
|
411
|
+
continue;
|
|
412
|
+
}
|
|
413
|
+
throw e;
|
|
414
|
+
}
|
|
189
415
|
}
|
|
190
|
-
|
|
416
|
+
|
|
417
|
+
return { applied: appliedNow, skipped: false, reason: 'ok' };
|
|
191
418
|
}
|
|
192
419
|
|
|
193
420
|
async function findExecutableByName(rootDir, binaryName) {
|
|
@@ -202,30 +429,39 @@ async function findExecutableByName(rootDir, binaryName) {
|
|
|
202
429
|
if (!entry.isFile()) continue;
|
|
203
430
|
if (entry.name !== binaryName) continue;
|
|
204
431
|
const info = await stat(fullPath);
|
|
432
|
+
if (process.platform === 'win32') return fullPath;
|
|
205
433
|
if ((info.mode & 0o111) !== 0) return fullPath;
|
|
206
434
|
}
|
|
207
435
|
return '';
|
|
208
436
|
}
|
|
209
437
|
|
|
210
|
-
function resolveConfig({ channel }) {
|
|
211
|
-
const
|
|
212
|
-
const
|
|
213
|
-
const
|
|
214
|
-
const
|
|
215
|
-
const
|
|
438
|
+
function resolveConfig({ channel, mode = 'user', platform = process.platform } = {}) {
|
|
439
|
+
const defaults = resolveSelfHostDefaults({ platform, mode, homeDir: homedir() });
|
|
440
|
+
const installRoot = String(process.env.HAPPIER_SELF_HOST_INSTALL_ROOT ?? defaults.installRoot).trim();
|
|
441
|
+
const binDir = String(process.env.HAPPIER_SELF_HOST_BIN_DIR ?? defaults.binDir).trim();
|
|
442
|
+
const configDir = String(process.env.HAPPIER_SELF_HOST_CONFIG_DIR ?? defaults.configDir).trim();
|
|
443
|
+
const dataDir = String(process.env.HAPPIER_SELF_HOST_DATA_DIR ?? defaults.dataDir).trim();
|
|
444
|
+
const logDir = String(process.env.HAPPIER_SELF_HOST_LOG_DIR ?? defaults.logDir).trim();
|
|
216
445
|
const serviceName = String(process.env.HAPPIER_SELF_HOST_SERVICE_NAME ?? DEFAULTS.serviceName).trim();
|
|
217
446
|
const serverHost = String(process.env.HAPPIER_SERVER_HOST ?? DEFAULTS.serverHost).trim();
|
|
218
447
|
const serverPort = parsePort(process.env.HAPPIER_SERVER_PORT, DEFAULTS.serverPort);
|
|
219
448
|
const githubRepo = String(process.env.HAPPIER_GITHUB_REPO ?? DEFAULTS.githubRepo).trim();
|
|
220
|
-
const autoUpdate =
|
|
449
|
+
const autoUpdate = resolveSelfHostAutoUpdateDefault(process.env);
|
|
450
|
+
const autoUpdateIntervalMinutes = resolveSelfHostAutoUpdateIntervalMinutes(process.env);
|
|
451
|
+
const autoUpdateAt = resolveSelfHostAutoUpdateAt(process.env);
|
|
452
|
+
const serverBinaryName = platform === 'win32' ? 'happier-server.exe' : 'happier-server';
|
|
453
|
+
const uiWebRootDir = join(installRoot, 'ui-web');
|
|
221
454
|
|
|
222
455
|
return {
|
|
223
456
|
channel,
|
|
457
|
+
mode,
|
|
458
|
+
platform,
|
|
224
459
|
installRoot,
|
|
225
460
|
versionsDir: join(installRoot, 'versions'),
|
|
226
461
|
installBinDir: join(installRoot, 'bin'),
|
|
227
|
-
|
|
228
|
-
|
|
462
|
+
serverBinaryName,
|
|
463
|
+
serverBinaryPath: join(installRoot, 'bin', serverBinaryName),
|
|
464
|
+
serverPreviousBinaryPath: join(installRoot, 'bin', `${serverBinaryName}.previous`),
|
|
229
465
|
statePath: join(installRoot, 'self-host-state.json'),
|
|
230
466
|
binDir,
|
|
231
467
|
configDir,
|
|
@@ -234,27 +470,84 @@ function resolveConfig({ channel }) {
|
|
|
234
470
|
filesDir: join(dataDir, 'files'),
|
|
235
471
|
dbDir: join(dataDir, 'pglite'),
|
|
236
472
|
logDir,
|
|
237
|
-
|
|
473
|
+
serverStdoutLogPath: join(logDir, 'server.out.log'),
|
|
474
|
+
serverStderrLogPath: join(logDir, 'server.err.log'),
|
|
238
475
|
serviceName,
|
|
239
|
-
serviceUnitName: `${serviceName}.service`,
|
|
240
|
-
serviceUnitPath: join('/etc/systemd/system', `${serviceName}.service`),
|
|
241
|
-
updaterServiceName: `${serviceName}-updater`,
|
|
242
|
-
updaterServiceUnitPath: join('/etc/systemd/system', `${serviceName}-updater.service`),
|
|
243
|
-
updaterTimerUnitName: `${serviceName}-updater.timer`,
|
|
244
|
-
updaterTimerUnitPath: join('/etc/systemd/system', `${serviceName}-updater.timer`),
|
|
245
476
|
serverHost,
|
|
246
477
|
serverPort,
|
|
247
478
|
githubRepo,
|
|
248
479
|
autoUpdate,
|
|
480
|
+
autoUpdateIntervalMinutes,
|
|
481
|
+
autoUpdateAt,
|
|
482
|
+
uiWebProduct: DEFAULTS.uiWebProduct,
|
|
483
|
+
uiWebOs: DEFAULTS.uiWebOs,
|
|
484
|
+
uiWebArch: DEFAULTS.uiWebArch,
|
|
485
|
+
uiWebRootDir,
|
|
486
|
+
uiWebVersionsDir: join(uiWebRootDir, 'versions'),
|
|
487
|
+
uiWebCurrentDir: join(uiWebRootDir, 'current'),
|
|
249
488
|
};
|
|
250
489
|
}
|
|
251
490
|
|
|
252
|
-
export function renderServerEnvFile({
|
|
491
|
+
export function renderServerEnvFile({
|
|
492
|
+
port,
|
|
493
|
+
host,
|
|
494
|
+
dataDir,
|
|
495
|
+
filesDir,
|
|
496
|
+
dbDir,
|
|
497
|
+
uiDir,
|
|
498
|
+
serverBinDir = '',
|
|
499
|
+
arch = process.arch,
|
|
500
|
+
platform = process.platform,
|
|
501
|
+
}) {
|
|
502
|
+
const normalizedDataDir = String(dataDir ?? '').replace(/\/+$/, '') || String(dataDir ?? '');
|
|
503
|
+
const p = String(platform ?? '').trim() || process.platform;
|
|
504
|
+
const a = String(arch ?? '').trim() || process.arch;
|
|
505
|
+
const hasBunRuntime = typeof globalThis.Bun !== 'undefined';
|
|
506
|
+
// NOTE: Bun's native sqlite module (`bun:sqlite`) can hang when used inside launchd-managed binaries on macOS.
|
|
507
|
+
// We pre-apply migrations at install time in the self-host installer on that path instead.
|
|
508
|
+
const autoMigrateSqlite = p === 'darwin' && hasBunRuntime ? '0' : '1';
|
|
509
|
+
const migrationsDir =
|
|
510
|
+
p === 'win32'
|
|
511
|
+
? win32Path.join(String(dataDir ?? ''), 'migrations', 'sqlite')
|
|
512
|
+
: `${normalizedDataDir}/migrations/sqlite`;
|
|
513
|
+
const dbPath =
|
|
514
|
+
p === 'win32'
|
|
515
|
+
? win32Path.join(String(dataDir ?? ''), 'happier-server-light.sqlite')
|
|
516
|
+
: `${normalizedDataDir}/happier-server-light.sqlite`;
|
|
517
|
+
const databaseUrl =
|
|
518
|
+
p === 'win32'
|
|
519
|
+
? (() => {
|
|
520
|
+
const normalized = String(dbPath).replaceAll('\\', '/');
|
|
521
|
+
if (/^[a-zA-Z]:\//.test(normalized)) return `file:///${normalized}`;
|
|
522
|
+
if (normalized.startsWith('//')) return `file:${normalized}`;
|
|
523
|
+
return `file:///${normalized}`;
|
|
524
|
+
})()
|
|
525
|
+
: `file:${dbPath}`;
|
|
526
|
+
const uiDirRaw = typeof uiDir === 'string' && uiDir.trim() ? uiDir.trim() : '';
|
|
527
|
+
const serverBinDirRaw = typeof serverBinDir === 'string' && serverBinDir.trim() ? serverBinDir.trim() : '';
|
|
528
|
+
const prismaEngineCandidate = serverBinDirRaw && p === 'darwin' && a === 'arm64'
|
|
529
|
+
? join(serverBinDirRaw, 'generated', 'sqlite-client', 'libquery_engine-darwin-arm64.dylib.node')
|
|
530
|
+
: serverBinDirRaw && p === 'linux' && a === 'arm64'
|
|
531
|
+
? join(serverBinDirRaw, 'generated', 'sqlite-client', 'libquery_engine-linux-arm64-openssl-1.1.x.so.node')
|
|
532
|
+
: '';
|
|
533
|
+
const prismaEnginePath = prismaEngineCandidate && existsSync(prismaEngineCandidate) ? prismaEngineCandidate : '';
|
|
253
534
|
return [
|
|
254
535
|
`PORT=${port}`,
|
|
255
536
|
`HAPPIER_SERVER_HOST=${host}`,
|
|
537
|
+
...(uiDirRaw ? [`HAPPIER_SERVER_UI_DIR=${uiDirRaw}`] : []),
|
|
538
|
+
'METRICS_ENABLED=false',
|
|
539
|
+
// Bun-compiled server binaries currently exhibit unstable pglite path resolution in systemd environments.
|
|
256
540
|
'HAPPIER_DB_PROVIDER=sqlite',
|
|
541
|
+
`DATABASE_URL=${databaseUrl}`,
|
|
257
542
|
'HAPPIER_FILES_BACKEND=local',
|
|
543
|
+
...(prismaEnginePath
|
|
544
|
+
? [
|
|
545
|
+
'PRISMA_CLIENT_ENGINE_TYPE=library',
|
|
546
|
+
`PRISMA_QUERY_ENGINE_LIBRARY=${prismaEnginePath}`,
|
|
547
|
+
]
|
|
548
|
+
: []),
|
|
549
|
+
`HAPPIER_SQLITE_AUTO_MIGRATE=${autoMigrateSqlite}`,
|
|
550
|
+
`HAPPIER_SQLITE_MIGRATIONS_DIR=${migrationsDir}`,
|
|
258
551
|
`HAPPIER_SERVER_LIGHT_DATA_DIR=${dataDir}`,
|
|
259
552
|
`HAPPIER_SERVER_LIGHT_FILES_DIR=${filesDir}`,
|
|
260
553
|
`HAPPIER_SERVER_LIGHT_DB_DIR=${dbDir}`,
|
|
@@ -262,6 +555,252 @@ export function renderServerEnvFile({ port, host, dataDir, filesDir, dbDir }) {
|
|
|
262
555
|
].join('\n');
|
|
263
556
|
}
|
|
264
557
|
|
|
558
|
+
function parseEnvText(raw) {
|
|
559
|
+
const env = {};
|
|
560
|
+
for (const line of String(raw ?? '').split('\n')) {
|
|
561
|
+
const trimmed = line.trim();
|
|
562
|
+
if (!trimmed) continue;
|
|
563
|
+
if (trimmed.startsWith('#')) continue;
|
|
564
|
+
const idx = trimmed.indexOf('=');
|
|
565
|
+
if (idx <= 0) continue;
|
|
566
|
+
const k = trimmed.slice(0, idx).trim();
|
|
567
|
+
const v = trimmed.slice(idx + 1);
|
|
568
|
+
if (!k) continue;
|
|
569
|
+
env[k] = v;
|
|
570
|
+
}
|
|
571
|
+
return env;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
function listEnvKeysInOrder(raw) {
|
|
575
|
+
const keys = [];
|
|
576
|
+
const seen = new Set();
|
|
577
|
+
for (const line of String(raw ?? '').split('\n')) {
|
|
578
|
+
const trimmed = line.trim();
|
|
579
|
+
if (!trimmed) continue;
|
|
580
|
+
if (trimmed.startsWith('#')) continue;
|
|
581
|
+
const idx = trimmed.indexOf('=');
|
|
582
|
+
if (idx <= 0) continue;
|
|
583
|
+
const k = trimmed.slice(0, idx).trim();
|
|
584
|
+
if (!k || seen.has(k)) continue;
|
|
585
|
+
seen.add(k);
|
|
586
|
+
keys.push(k);
|
|
587
|
+
}
|
|
588
|
+
return keys;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
function parseEnvKeyValue(raw) {
|
|
592
|
+
const text = String(raw ?? '');
|
|
593
|
+
const idx = text.indexOf('=');
|
|
594
|
+
if (idx <= 0) {
|
|
595
|
+
throw new Error(`[self-host] invalid env assignment (expected KEY=VALUE): ${text}`);
|
|
596
|
+
}
|
|
597
|
+
const key = text.slice(0, idx).trim();
|
|
598
|
+
const value = text.slice(idx + 1);
|
|
599
|
+
return { key, value };
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
function assertValidEnvKey(key) {
|
|
603
|
+
const k = String(key ?? '').trim();
|
|
604
|
+
if (!/^[A-Z][A-Z0-9_]*$/.test(k)) {
|
|
605
|
+
throw new Error(`[self-host] invalid env key: ${k || '(empty)'}`);
|
|
606
|
+
}
|
|
607
|
+
return k;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
function assertValidEnvValue(value) {
|
|
611
|
+
const v = String(value ?? '');
|
|
612
|
+
if (v.includes('\n') || v.includes('\r')) {
|
|
613
|
+
throw new Error('[self-host] invalid env value (must not contain newlines)');
|
|
614
|
+
}
|
|
615
|
+
return v;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
export function parseEnvOverridesFromArgv(argv) {
|
|
619
|
+
const args = Array.isArray(argv) ? argv.map(String) : [];
|
|
620
|
+
const overrides = [];
|
|
621
|
+
const rest = [];
|
|
622
|
+
|
|
623
|
+
for (let i = 0; i < args.length; i += 1) {
|
|
624
|
+
const a = args[i] ?? '';
|
|
625
|
+
if (a === '--env') {
|
|
626
|
+
const next = args[i + 1] ?? '';
|
|
627
|
+
if (!next || next.startsWith('--')) {
|
|
628
|
+
throw new Error('[self-host] missing value for --env (expected KEY=VALUE)');
|
|
629
|
+
}
|
|
630
|
+
const parsed = parseEnvKeyValue(next);
|
|
631
|
+
overrides.push({
|
|
632
|
+
key: assertValidEnvKey(parsed.key),
|
|
633
|
+
value: assertValidEnvValue(parsed.value),
|
|
634
|
+
});
|
|
635
|
+
i += 1;
|
|
636
|
+
continue;
|
|
637
|
+
}
|
|
638
|
+
if (a.startsWith('--env=')) {
|
|
639
|
+
const raw = a.slice('--env='.length);
|
|
640
|
+
if (!raw) {
|
|
641
|
+
throw new Error('[self-host] missing value for --env (expected KEY=VALUE)');
|
|
642
|
+
}
|
|
643
|
+
const parsed = parseEnvKeyValue(raw);
|
|
644
|
+
overrides.push({
|
|
645
|
+
key: assertValidEnvKey(parsed.key),
|
|
646
|
+
value: assertValidEnvValue(parsed.value),
|
|
647
|
+
});
|
|
648
|
+
continue;
|
|
649
|
+
}
|
|
650
|
+
rest.push(a);
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
return { overrides, rest };
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
export function applyEnvOverridesToEnvText(envText, overrides) {
|
|
657
|
+
const base = String(envText ?? '');
|
|
658
|
+
const list = Array.isArray(overrides) ? overrides : [];
|
|
659
|
+
if (!base.trim() || list.length === 0) return base.endsWith('\n') ? base : `${base}\n`;
|
|
660
|
+
|
|
661
|
+
const env = parseEnvText(base);
|
|
662
|
+
const keys = listEnvKeysInOrder(base);
|
|
663
|
+
const seen = new Set(keys);
|
|
664
|
+
|
|
665
|
+
for (const entry of list) {
|
|
666
|
+
const key = assertValidEnvKey(entry?.key);
|
|
667
|
+
const value = assertValidEnvValue(entry?.value);
|
|
668
|
+
env[key] = value;
|
|
669
|
+
if (!seen.has(key)) {
|
|
670
|
+
seen.add(key);
|
|
671
|
+
keys.push(key);
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
const lines = [];
|
|
676
|
+
for (const key of keys) {
|
|
677
|
+
if (!Object.prototype.hasOwnProperty.call(env, key)) continue;
|
|
678
|
+
lines.push(`${key}=${env[key]}`);
|
|
679
|
+
}
|
|
680
|
+
lines.push('');
|
|
681
|
+
return `${lines.join('\n')}\n`;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
export function mergeEnvTextWithDefaults(existingText, defaultsText) {
|
|
685
|
+
const existingRaw = String(existingText ?? '');
|
|
686
|
+
const defaultsRaw = String(defaultsText ?? '');
|
|
687
|
+
if (!existingRaw.trim()) return defaultsRaw.endsWith('\n') ? defaultsRaw : `${defaultsRaw}\n`;
|
|
688
|
+
|
|
689
|
+
const existingEnv = parseEnvText(existingRaw);
|
|
690
|
+
const defaultsEnv = parseEnvText(defaultsRaw);
|
|
691
|
+
const defaultKeys = listEnvKeysInOrder(defaultsRaw);
|
|
692
|
+
const existingKeys = listEnvKeysInOrder(existingRaw);
|
|
693
|
+
|
|
694
|
+
const lines = [];
|
|
695
|
+
for (const key of defaultKeys) {
|
|
696
|
+
const fromExisting = Object.prototype.hasOwnProperty.call(existingEnv, key) ? existingEnv[key] : null;
|
|
697
|
+
const v = fromExisting != null ? fromExisting : defaultsEnv[key];
|
|
698
|
+
if (v == null) continue;
|
|
699
|
+
lines.push(`${key}=${v}`);
|
|
700
|
+
}
|
|
701
|
+
for (const key of existingKeys) {
|
|
702
|
+
if (Object.prototype.hasOwnProperty.call(defaultsEnv, key)) continue;
|
|
703
|
+
if (!Object.prototype.hasOwnProperty.call(existingEnv, key)) continue;
|
|
704
|
+
lines.push(`${key}=${existingEnv[key]}`);
|
|
705
|
+
}
|
|
706
|
+
lines.push('');
|
|
707
|
+
return `${lines.join('\n')}\n`;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
function identity(s) {
|
|
711
|
+
return String(s ?? '');
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
function formatTriState(value, { yes, no, unknown }) {
|
|
715
|
+
if (value == null) return unknown('unknown');
|
|
716
|
+
return value ? yes('yes') : no('no');
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
function formatHealth(value, { ok, warn }) {
|
|
720
|
+
return value ? ok('ok') : warn('failed');
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
function formatJobState(value, { yes, no, unknown }) {
|
|
724
|
+
if (value == null) return unknown('unknown');
|
|
725
|
+
return value ? yes('enabled') : no('disabled');
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
function formatJobActive(value, { yes, no, unknown }) {
|
|
729
|
+
if (value == null) return unknown('unknown');
|
|
730
|
+
return value ? yes('active') : no('inactive');
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
export function renderSelfHostStatusText(report, { colors = true } = {}) {
|
|
734
|
+
const fmt = colors
|
|
735
|
+
? {
|
|
736
|
+
label: cyan,
|
|
737
|
+
yes: green,
|
|
738
|
+
no: yellow,
|
|
739
|
+
ok: green,
|
|
740
|
+
warn: yellow,
|
|
741
|
+
unknown: dim,
|
|
742
|
+
dim,
|
|
743
|
+
}
|
|
744
|
+
: {
|
|
745
|
+
label: identity,
|
|
746
|
+
yes: identity,
|
|
747
|
+
no: identity,
|
|
748
|
+
ok: identity,
|
|
749
|
+
warn: identity,
|
|
750
|
+
unknown: identity,
|
|
751
|
+
dim: identity,
|
|
752
|
+
};
|
|
753
|
+
|
|
754
|
+
const channel = String(report?.channel ?? '').trim();
|
|
755
|
+
const mode = String(report?.mode ?? '').trim();
|
|
756
|
+
const serviceName = String(report?.serviceName ?? '').trim();
|
|
757
|
+
const serverUrl = String(report?.serverUrl ?? '').trim();
|
|
758
|
+
const healthy = Boolean(report?.healthy);
|
|
759
|
+
const updatedAt = report?.updatedAt ? String(report.updatedAt) : '';
|
|
760
|
+
|
|
761
|
+
const serviceActive = report?.service?.active ?? null;
|
|
762
|
+
const serviceEnabled = report?.service?.enabled ?? null;
|
|
763
|
+
|
|
764
|
+
const serverVersion = report?.versions?.server ? String(report.versions.server) : '';
|
|
765
|
+
const uiWebVersion = report?.versions?.uiWeb ? String(report.versions.uiWeb) : '';
|
|
766
|
+
|
|
767
|
+
const autoConfiguredEnabled = Boolean(report?.autoUpdate?.configured?.enabled);
|
|
768
|
+
const autoConfiguredInterval = report?.autoUpdate?.configured?.intervalMinutes ?? null;
|
|
769
|
+
const autoConfiguredAtRaw = typeof report?.autoUpdate?.configured?.at === 'string' ? report.autoUpdate.configured.at : '';
|
|
770
|
+
const autoConfiguredAt = parseDailyAtTime(autoConfiguredAtRaw)?.normalized || '';
|
|
771
|
+
const updaterEnabled = report?.autoUpdate?.job?.enabled ?? null;
|
|
772
|
+
const updaterActive = report?.autoUpdate?.job?.active ?? null;
|
|
773
|
+
|
|
774
|
+
const configuredLine = autoConfiguredEnabled
|
|
775
|
+
? (
|
|
776
|
+
autoConfiguredAt
|
|
777
|
+
? `configured enabled (daily at ${autoConfiguredAt})`
|
|
778
|
+
: `configured enabled${autoConfiguredInterval ? ` (every ${autoConfiguredInterval}m)` : ''}`
|
|
779
|
+
)
|
|
780
|
+
: 'configured disabled';
|
|
781
|
+
|
|
782
|
+
const jobLine =
|
|
783
|
+
updaterEnabled == null && updaterActive == null
|
|
784
|
+
? 'job unknown'
|
|
785
|
+
: `job ${formatJobState(updaterEnabled, fmt)}, ${formatJobActive(updaterActive, fmt)}`;
|
|
786
|
+
|
|
787
|
+
return [
|
|
788
|
+
channel ? `${fmt.label('channel')}: ${channel}` : null,
|
|
789
|
+
mode ? `${fmt.label('mode')}: ${mode}` : null,
|
|
790
|
+
serviceName ? `${fmt.label('service')}: ${serviceName}` : null,
|
|
791
|
+
serverUrl ? `${fmt.label('url')}: ${serverUrl}` : null,
|
|
792
|
+
`${fmt.label('health')}: ${formatHealth(healthy, fmt)}`,
|
|
793
|
+
`${fmt.label('active')}: ${formatTriState(serviceActive, fmt)}`,
|
|
794
|
+
`${fmt.label('enabled')}: ${formatTriState(serviceEnabled, fmt)}`,
|
|
795
|
+
`${fmt.label('auto-update')}: ${configuredLine}; ${jobLine}`,
|
|
796
|
+
`${fmt.label('server')}: ${serverVersion || fmt.unknown('unknown')}`,
|
|
797
|
+
`${fmt.label('ui-web')}: ${uiWebVersion || fmt.unknown('unknown')}`,
|
|
798
|
+
updatedAt ? `${fmt.label('updated')}: ${updatedAt}` : null,
|
|
799
|
+
]
|
|
800
|
+
.filter(Boolean)
|
|
801
|
+
.join('\n');
|
|
802
|
+
}
|
|
803
|
+
|
|
265
804
|
export function renderServerServiceUnit({ serviceName, binaryPath, envFilePath, workingDirectory, logPath }) {
|
|
266
805
|
return [
|
|
267
806
|
'[Unit]',
|
|
@@ -286,29 +825,101 @@ export function renderServerServiceUnit({ serviceName, binaryPath, envFilePath,
|
|
|
286
825
|
].join('\n');
|
|
287
826
|
}
|
|
288
827
|
|
|
289
|
-
function
|
|
828
|
+
export function buildSelfHostDoctorChecks(config, { state, commandExists: commandExistsOverride, pathExists } = {}) {
|
|
829
|
+
const cfg = config ?? {};
|
|
830
|
+
const platform = String(cfg.platform ?? process.platform).trim() || process.platform;
|
|
831
|
+
const mode = String(cfg.mode ?? 'user').trim() || 'user';
|
|
832
|
+
const os = normalizeOs(platform);
|
|
833
|
+
|
|
834
|
+
const commandExistsFn = typeof commandExistsOverride === 'function' ? commandExistsOverride : commandExists;
|
|
835
|
+
const pathExistsFn = typeof pathExists === 'function'
|
|
836
|
+
? pathExists
|
|
837
|
+
: (p) => existsSync(String(p ?? ''));
|
|
838
|
+
const stateObj = state ?? {};
|
|
839
|
+
|
|
840
|
+
const uiExpected = Boolean(stateObj?.uiWeb?.installed);
|
|
841
|
+
const uiIndexPath = cfg.uiWebCurrentDir ? join(String(cfg.uiWebCurrentDir), 'index.html') : '';
|
|
842
|
+
|
|
290
843
|
return [
|
|
291
|
-
'[
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
'',
|
|
295
|
-
'
|
|
296
|
-
'
|
|
297
|
-
|
|
298
|
-
'',
|
|
299
|
-
|
|
844
|
+
{ name: 'platform', ok: ['linux', 'darwin', 'windows'].includes(os) },
|
|
845
|
+
{ name: 'mode', ok: mode === 'user' || (mode === 'system' && platform !== 'win32') },
|
|
846
|
+
// We verify minisign signatures using the bundled public key + node:crypto, so no external `minisign` dependency.
|
|
847
|
+
{ name: 'tar', ok: commandExistsFn('tar') },
|
|
848
|
+
{ name: 'powershell', ok: os === 'windows' ? commandExistsFn('powershell') : true },
|
|
849
|
+
{ name: 'systemctl', ok: os === 'linux' ? commandExistsFn('systemctl') : true },
|
|
850
|
+
{ name: 'launchctl', ok: os === 'darwin' ? commandExistsFn('launchctl') : true },
|
|
851
|
+
{ name: 'schtasks', ok: os === 'windows' ? commandExistsFn('schtasks') : true },
|
|
852
|
+
{ name: 'server-binary', ok: cfg.serverBinaryPath ? pathExistsFn(cfg.serverBinaryPath) : false },
|
|
853
|
+
{ name: 'server-env', ok: cfg.configEnvPath ? pathExistsFn(cfg.configEnvPath) : false },
|
|
854
|
+
...(uiExpected
|
|
855
|
+
? [{ name: 'ui-web', ok: uiIndexPath ? pathExistsFn(uiIndexPath) : false }]
|
|
856
|
+
: []),
|
|
857
|
+
];
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
export function renderUpdaterSystemdUnit({
|
|
861
|
+
updaterLabel,
|
|
862
|
+
hstackPath,
|
|
863
|
+
channel,
|
|
864
|
+
mode,
|
|
865
|
+
workingDirectory,
|
|
866
|
+
stdoutPath,
|
|
867
|
+
stderrPath,
|
|
868
|
+
wantedBy,
|
|
869
|
+
} = {}) {
|
|
870
|
+
const label = String(updaterLabel ?? '').trim() || 'happier-self-host-updater';
|
|
871
|
+
const hstack = String(hstackPath ?? '').trim();
|
|
872
|
+
if (!hstack) throw new Error('[self-host] missing hstackPath for updater unit');
|
|
873
|
+
const ch = String(channel ?? '').trim() || 'stable';
|
|
874
|
+
const m = String(mode ?? '').trim().toLowerCase() === 'system' ? 'system' : 'user';
|
|
875
|
+
const wd = String(workingDirectory ?? '').trim();
|
|
876
|
+
const out = String(stdoutPath ?? '').trim();
|
|
877
|
+
const err = String(stderrPath ?? '').trim();
|
|
878
|
+
const wb = String(wantedBy ?? '').trim() || 'default.target';
|
|
879
|
+
|
|
880
|
+
return renderSystemdServiceUnit({
|
|
881
|
+
description: `${label} (auto-update)`,
|
|
882
|
+
execStart: [
|
|
883
|
+
hstack,
|
|
884
|
+
'self-host',
|
|
885
|
+
'update',
|
|
886
|
+
`--channel=${ch}`,
|
|
887
|
+
`--mode=${m}`,
|
|
888
|
+
'--non-interactive',
|
|
889
|
+
],
|
|
890
|
+
workingDirectory: wd,
|
|
891
|
+
env: {},
|
|
892
|
+
restart: 'no',
|
|
893
|
+
stdoutPath: out,
|
|
894
|
+
stderrPath: err,
|
|
895
|
+
wantedBy: wb,
|
|
896
|
+
});
|
|
300
897
|
}
|
|
301
898
|
|
|
302
|
-
function
|
|
899
|
+
export function renderUpdaterSystemdTimerUnit({ updaterLabel, intervalMinutes = 1440, at } = {}) {
|
|
900
|
+
const label = String(updaterLabel ?? '').trim() || 'happier-self-host-updater';
|
|
901
|
+
const parsedAt = parseDailyAtTime(at);
|
|
902
|
+
const minutesRaw = Number(intervalMinutes);
|
|
903
|
+
const minutes = Number.isFinite(minutesRaw) ? Math.max(15, Math.floor(minutesRaw)) : 1440;
|
|
904
|
+
const timerLines = parsedAt
|
|
905
|
+
? [
|
|
906
|
+
'[Timer]',
|
|
907
|
+
`OnCalendar=*-*-* ${parsedAt.normalized}:00`,
|
|
908
|
+
`Unit=${label}.service`,
|
|
909
|
+
'Persistent=true',
|
|
910
|
+
]
|
|
911
|
+
: [
|
|
912
|
+
'[Timer]',
|
|
913
|
+
'OnBootSec=5m',
|
|
914
|
+
`OnUnitActiveSec=${minutes}m`,
|
|
915
|
+
`Unit=${label}.service`,
|
|
916
|
+
'Persistent=true',
|
|
917
|
+
];
|
|
303
918
|
return [
|
|
304
919
|
'[Unit]',
|
|
305
|
-
`Description=${
|
|
920
|
+
`Description=${label} (auto-update timer)`,
|
|
306
921
|
'',
|
|
307
|
-
|
|
308
|
-
'OnCalendar=weekly',
|
|
309
|
-
'RandomizedDelaySec=30m',
|
|
310
|
-
'Persistent=true',
|
|
311
|
-
`Unit=${updaterServiceName}.service`,
|
|
922
|
+
...timerLines,
|
|
312
923
|
'',
|
|
313
924
|
'[Install]',
|
|
314
925
|
'WantedBy=timers.target',
|
|
@@ -316,15 +927,344 @@ function renderUpdaterTimerUnit({ updaterServiceName, updaterTimerName }) {
|
|
|
316
927
|
].join('\n');
|
|
317
928
|
}
|
|
318
929
|
|
|
319
|
-
|
|
320
|
-
|
|
930
|
+
export function renderUpdaterLaunchdPlistXml({
|
|
931
|
+
updaterLabel,
|
|
932
|
+
hstackPath,
|
|
933
|
+
channel,
|
|
934
|
+
mode,
|
|
935
|
+
intervalMinutes,
|
|
936
|
+
at,
|
|
937
|
+
workingDirectory,
|
|
938
|
+
stdoutPath,
|
|
939
|
+
stderrPath,
|
|
940
|
+
} = {}) {
|
|
941
|
+
const label = String(updaterLabel ?? '').trim() || 'happier-self-host-updater';
|
|
942
|
+
const hstack = String(hstackPath ?? '').trim();
|
|
943
|
+
if (!hstack) throw new Error('[self-host] missing hstackPath for updater launchd plist');
|
|
944
|
+
const ch = String(channel ?? '').trim() || 'stable';
|
|
945
|
+
const m = String(mode ?? '').trim().toLowerCase() === 'system' ? 'system' : 'user';
|
|
946
|
+
const wd = String(workingDirectory ?? '').trim();
|
|
947
|
+
const out = String(stdoutPath ?? '').trim();
|
|
948
|
+
const err = String(stderrPath ?? '').trim();
|
|
949
|
+
const parsedAt = parseDailyAtTime(at);
|
|
950
|
+
const intervalRaw = Number(intervalMinutes);
|
|
951
|
+
const startIntervalSec = Number.isFinite(intervalRaw) && intervalRaw > 0 ? Math.max(15, Math.floor(intervalRaw)) * 60 : 0;
|
|
952
|
+
|
|
953
|
+
return buildLaunchdPlistXml({
|
|
954
|
+
label,
|
|
955
|
+
programArgs: [
|
|
956
|
+
hstack,
|
|
957
|
+
'self-host',
|
|
958
|
+
'update',
|
|
959
|
+
`--channel=${ch}`,
|
|
960
|
+
`--mode=${m}`,
|
|
961
|
+
'--non-interactive',
|
|
962
|
+
],
|
|
963
|
+
env: {
|
|
964
|
+
PATH: buildLaunchdPath({ execPath: process.execPath, basePath: process.env.PATH }),
|
|
965
|
+
},
|
|
966
|
+
stdoutPath: out,
|
|
967
|
+
stderrPath: err,
|
|
968
|
+
workingDirectory: wd,
|
|
969
|
+
keepAliveOnFailure: false,
|
|
970
|
+
...(parsedAt
|
|
971
|
+
? { startCalendarInterval: { hour: parsedAt.hour, minute: parsedAt.minute } }
|
|
972
|
+
: { startIntervalSec: startIntervalSec || undefined }),
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
export function renderUpdaterScheduledTaskWrapperPs1({
|
|
977
|
+
updaterLabel,
|
|
978
|
+
hstackPath,
|
|
979
|
+
channel,
|
|
980
|
+
mode,
|
|
981
|
+
workingDirectory,
|
|
982
|
+
stdoutPath,
|
|
983
|
+
stderrPath,
|
|
984
|
+
} = {}) {
|
|
985
|
+
const label = String(updaterLabel ?? '').trim() || 'happier-self-host-updater';
|
|
986
|
+
const hstack = String(hstackPath ?? '').trim();
|
|
987
|
+
if (!hstack) throw new Error('[self-host] missing hstackPath for updater scheduled task wrapper');
|
|
988
|
+
const ch = String(channel ?? '').trim() || 'stable';
|
|
989
|
+
const m = String(mode ?? '').trim().toLowerCase() === 'system' ? 'system' : 'user';
|
|
990
|
+
const wd = String(workingDirectory ?? '').trim();
|
|
991
|
+
const out = String(stdoutPath ?? '').trim();
|
|
992
|
+
const err = String(stderrPath ?? '').trim();
|
|
993
|
+
|
|
994
|
+
return renderWindowsScheduledTaskWrapperPs1({
|
|
995
|
+
workingDirectory: wd,
|
|
996
|
+
programArgs: [
|
|
997
|
+
hstack,
|
|
998
|
+
'self-host',
|
|
999
|
+
'update',
|
|
1000
|
+
`--channel=${ch}`,
|
|
1001
|
+
`--mode=${m}`,
|
|
1002
|
+
'--non-interactive',
|
|
1003
|
+
],
|
|
1004
|
+
env: {},
|
|
1005
|
+
stdoutPath: out,
|
|
1006
|
+
stderrPath: err,
|
|
1007
|
+
});
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
export function buildUpdaterScheduledTaskCreateArgs({ backend, taskName, definitionPath, intervalMinutes = 1440, at } = {}) {
|
|
1011
|
+
const b = String(backend ?? '').trim();
|
|
1012
|
+
const name = String(taskName ?? '').trim();
|
|
1013
|
+
const definition = String(definitionPath ?? '').trim();
|
|
1014
|
+
if (!name) throw new Error('[self-host] missing taskName for updater scheduled task');
|
|
1015
|
+
if (!definition) throw new Error('[self-host] missing definitionPath for updater scheduled task');
|
|
1016
|
+
|
|
1017
|
+
const parsedAt = parseDailyAtTime(at);
|
|
1018
|
+
const minutesRaw = Number(intervalMinutes);
|
|
1019
|
+
const minutes = Number.isFinite(minutesRaw) ? Math.max(15, Math.floor(minutesRaw)) : 1440;
|
|
1020
|
+
const ps = `powershell.exe -NoProfile -ExecutionPolicy Bypass -File "${definition}"`;
|
|
1021
|
+
|
|
1022
|
+
return [
|
|
1023
|
+
'/Create',
|
|
1024
|
+
'/F',
|
|
1025
|
+
'/SC',
|
|
1026
|
+
parsedAt ? 'DAILY' : 'MINUTE',
|
|
1027
|
+
...(parsedAt ? [] : ['/MO', String(minutes)]),
|
|
1028
|
+
'/ST',
|
|
1029
|
+
parsedAt ? parsedAt.normalized : '00:00',
|
|
1030
|
+
'/TN',
|
|
1031
|
+
name,
|
|
1032
|
+
'/TR',
|
|
1033
|
+
ps,
|
|
1034
|
+
...(b === 'schtasks-system' ? ['/RU', 'SYSTEM', '/RL', 'HIGHEST'] : []),
|
|
1035
|
+
];
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
function resolveAutoUpdateEnabled(argv, fallback) {
|
|
1039
|
+
const args = Array.isArray(argv) ? argv.map(String) : [];
|
|
1040
|
+
if (args.includes('--no-auto-update')) return false;
|
|
1041
|
+
if (args.includes('--auto-update')) return true;
|
|
1042
|
+
return Boolean(fallback);
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
function resolveAutoUpdateIntervalMinutes(argv, fallback) {
|
|
1046
|
+
const args = Array.isArray(argv) ? argv.map(String) : [];
|
|
1047
|
+
const findEq = args.find((a) => a.startsWith('--auto-update-interval='));
|
|
1048
|
+
const value = findEq
|
|
1049
|
+
? findEq.slice('--auto-update-interval='.length)
|
|
1050
|
+
: (() => {
|
|
1051
|
+
const idx = args.indexOf('--auto-update-interval');
|
|
1052
|
+
if (idx >= 0 && args[idx + 1] && !String(args[idx + 1]).startsWith('-')) return String(args[idx + 1]);
|
|
1053
|
+
return '';
|
|
1054
|
+
})();
|
|
1055
|
+
const raw = String(value ?? '').trim();
|
|
1056
|
+
if (!raw) return Number(fallback) || DEFAULTS.autoUpdateIntervalMinutes;
|
|
1057
|
+
const parsed = Number(raw);
|
|
1058
|
+
const minutes = Number.isFinite(parsed) ? Math.floor(parsed) : NaN;
|
|
1059
|
+
if (!Number.isFinite(minutes) || minutes < 15) return Number(fallback) || DEFAULTS.autoUpdateIntervalMinutes;
|
|
1060
|
+
return Math.min(minutes, 60 * 24 * 7);
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
function resolveAutoUpdateAt(argv, fallback) {
|
|
1064
|
+
const args = Array.isArray(argv) ? argv.map(String) : [];
|
|
1065
|
+
const findEq = args.find((a) => a.startsWith('--auto-update-at='));
|
|
1066
|
+
const value = findEq
|
|
1067
|
+
? findEq.slice('--auto-update-at='.length)
|
|
1068
|
+
: (() => {
|
|
1069
|
+
const idx = args.indexOf('--auto-update-at');
|
|
1070
|
+
if (idx >= 0 && args[idx + 1] && !String(args[idx + 1]).startsWith('-')) return String(args[idx + 1]);
|
|
1071
|
+
return '';
|
|
1072
|
+
})();
|
|
1073
|
+
const raw = String(value ?? '').trim();
|
|
1074
|
+
if (!raw) return String(fallback ?? '').trim();
|
|
1075
|
+
const parsed = parseDailyAtTime(raw);
|
|
1076
|
+
if (!parsed) {
|
|
1077
|
+
throw new Error(`[self-host] invalid --auto-update-at value: ${raw} (expected HH:MM)`);
|
|
1078
|
+
}
|
|
1079
|
+
return parsed.normalized;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
function resolveUpdaterLabel(config) {
|
|
1083
|
+
const override = String(process.env.HAPPIER_SELF_HOST_UPDATER_LABEL ?? '').trim();
|
|
1084
|
+
if (override) return override;
|
|
1085
|
+
const base = String(config?.serviceName ?? '').trim() || 'happier-server';
|
|
1086
|
+
return `${base}-updater`;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
function resolveHstackPathForUpdater(config) {
|
|
1090
|
+
const override = String(process.env.HAPPIER_SELF_HOST_HSTACK_PATH ?? '').trim();
|
|
1091
|
+
if (override) return override;
|
|
1092
|
+
const platform = String(config?.platform ?? '').trim() || process.platform;
|
|
1093
|
+
const exe = platform === 'win32' ? 'hstack.exe' : 'hstack';
|
|
1094
|
+
return join(String(config?.binDir ?? '').trim() || '', exe);
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
async function installAutoUpdateJob({ config, enabled, intervalMinutes, at }) {
|
|
1098
|
+
if (!enabled) return { installed: false, reason: 'disabled' };
|
|
1099
|
+
const updaterLabel = resolveUpdaterLabel(config);
|
|
1100
|
+
const hstackPath = resolveHstackPathForUpdater(config);
|
|
1101
|
+
const stdoutPath = join(config.logDir, 'updater.out.log');
|
|
1102
|
+
const stderrPath = join(config.logDir, 'updater.err.log');
|
|
1103
|
+
const backend = resolveServiceBackend({ platform: config.platform, mode: config.mode });
|
|
1104
|
+
const interval = resolveAutoUpdateIntervalMinutes([], intervalMinutes ?? config.autoUpdateIntervalMinutes);
|
|
1105
|
+
const effectiveAt = resolveAutoUpdateAt([], at ?? config.autoUpdateAt ?? '');
|
|
1106
|
+
|
|
1107
|
+
const baseSpec = {
|
|
1108
|
+
label: updaterLabel,
|
|
1109
|
+
description: `Happier Self-Host (${updaterLabel})`,
|
|
1110
|
+
programArgs: [hstackPath],
|
|
1111
|
+
workingDirectory: config.installRoot,
|
|
1112
|
+
env: {},
|
|
1113
|
+
stdoutPath,
|
|
1114
|
+
stderrPath,
|
|
1115
|
+
};
|
|
1116
|
+
const definitionPath = buildServiceDefinition({ backend, homeDir: homedir(), spec: baseSpec }).path;
|
|
1117
|
+
const wantedBy =
|
|
1118
|
+
backend === 'systemd-system' ? 'multi-user.target' : backend === 'systemd-user' ? 'default.target' : '';
|
|
1119
|
+
|
|
1120
|
+
if (backend === 'systemd-system' || backend === 'systemd-user') {
|
|
1121
|
+
const timerPath = definitionPath.replace(/\.service$/, '.timer');
|
|
1122
|
+
const serviceContents = renderUpdaterSystemdUnit({
|
|
1123
|
+
updaterLabel,
|
|
1124
|
+
hstackPath,
|
|
1125
|
+
channel: config.channel,
|
|
1126
|
+
mode: config.mode,
|
|
1127
|
+
workingDirectory: config.installRoot,
|
|
1128
|
+
stdoutPath,
|
|
1129
|
+
stderrPath,
|
|
1130
|
+
wantedBy,
|
|
1131
|
+
});
|
|
1132
|
+
const timerContents = renderUpdaterSystemdTimerUnit({ updaterLabel, intervalMinutes: interval, at: effectiveAt });
|
|
1133
|
+
const prefix = backend === 'systemd-user' ? ['--user'] : [];
|
|
1134
|
+
const plan = {
|
|
1135
|
+
writes: [
|
|
1136
|
+
{ path: definitionPath, contents: serviceContents, mode: 0o644 },
|
|
1137
|
+
{ path: timerPath, contents: timerContents, mode: 0o644 },
|
|
1138
|
+
],
|
|
1139
|
+
commands: [
|
|
1140
|
+
{ cmd: 'systemctl', args: [...prefix, 'daemon-reload'] },
|
|
1141
|
+
{ cmd: 'systemctl', args: [...prefix, 'enable', '--now', `${updaterLabel}.timer`] },
|
|
1142
|
+
{ cmd: 'systemctl', args: [...prefix, 'start', `${updaterLabel}.service`], allowFail: true },
|
|
1143
|
+
],
|
|
1144
|
+
};
|
|
1145
|
+
await applyServicePlan(plan);
|
|
1146
|
+
return { installed: true, backend, label: updaterLabel, definitionPath, timerPath, intervalMinutes: interval, at: effectiveAt };
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
if (backend === 'launchd-system' || backend === 'launchd-user') {
|
|
1150
|
+
const definitionContents = renderUpdaterLaunchdPlistXml({
|
|
1151
|
+
updaterLabel,
|
|
1152
|
+
hstackPath,
|
|
1153
|
+
channel: config.channel,
|
|
1154
|
+
mode: config.mode,
|
|
1155
|
+
intervalMinutes: interval,
|
|
1156
|
+
at: effectiveAt,
|
|
1157
|
+
workingDirectory: config.installRoot,
|
|
1158
|
+
stdoutPath,
|
|
1159
|
+
stderrPath,
|
|
1160
|
+
});
|
|
1161
|
+
const plan = planServiceAction({
|
|
1162
|
+
backend,
|
|
1163
|
+
action: 'install',
|
|
1164
|
+
label: updaterLabel,
|
|
1165
|
+
definitionPath,
|
|
1166
|
+
definitionContents,
|
|
1167
|
+
persistent: true,
|
|
1168
|
+
});
|
|
1169
|
+
await applyServicePlan(plan);
|
|
1170
|
+
return { installed: true, backend, label: updaterLabel, definitionPath, intervalMinutes: interval, at: effectiveAt };
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
const definitionContents = renderUpdaterScheduledTaskWrapperPs1({
|
|
1174
|
+
updaterLabel,
|
|
1175
|
+
hstackPath,
|
|
1176
|
+
channel: config.channel,
|
|
1177
|
+
mode: config.mode,
|
|
1178
|
+
workingDirectory: config.installRoot,
|
|
1179
|
+
stdoutPath,
|
|
1180
|
+
stderrPath,
|
|
1181
|
+
});
|
|
1182
|
+
const name = `Happier\\${updaterLabel}`;
|
|
1183
|
+
const args = buildUpdaterScheduledTaskCreateArgs({
|
|
1184
|
+
backend,
|
|
1185
|
+
taskName: name,
|
|
1186
|
+
definitionPath,
|
|
1187
|
+
intervalMinutes: interval,
|
|
1188
|
+
at: effectiveAt,
|
|
1189
|
+
});
|
|
1190
|
+
const plan = {
|
|
1191
|
+
writes: [{ path: definitionPath, contents: definitionContents, mode: 0o644 }],
|
|
1192
|
+
commands: [
|
|
1193
|
+
{ cmd: 'schtasks', args },
|
|
1194
|
+
{ cmd: 'schtasks', args: ['/Run', '/TN', name] },
|
|
1195
|
+
],
|
|
1196
|
+
};
|
|
1197
|
+
await applyServicePlan(plan);
|
|
1198
|
+
return { installed: true, backend, label: updaterLabel, definitionPath, taskName: name, intervalMinutes: interval, at: effectiveAt };
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
async function uninstallAutoUpdateJob({ config }) {
|
|
1202
|
+
const updaterLabel = resolveUpdaterLabel(config);
|
|
1203
|
+
const hstackPath = resolveHstackPathForUpdater(config);
|
|
1204
|
+
const stdoutPath = join(config.logDir, 'updater.out.log');
|
|
1205
|
+
const stderrPath = join(config.logDir, 'updater.err.log');
|
|
1206
|
+
const backend = resolveServiceBackend({ platform: config.platform, mode: config.mode });
|
|
1207
|
+
const baseSpec = {
|
|
1208
|
+
label: updaterLabel,
|
|
1209
|
+
description: `Happier Self-Host (${updaterLabel})`,
|
|
1210
|
+
programArgs: [hstackPath],
|
|
1211
|
+
workingDirectory: config.installRoot,
|
|
1212
|
+
env: {},
|
|
1213
|
+
stdoutPath,
|
|
1214
|
+
stderrPath,
|
|
1215
|
+
};
|
|
1216
|
+
const definitionPath = buildServiceDefinition({ backend, homeDir: homedir(), spec: baseSpec }).path;
|
|
1217
|
+
|
|
1218
|
+
if (backend === 'systemd-system' || backend === 'systemd-user') {
|
|
1219
|
+
const prefix = backend === 'systemd-user' ? ['--user'] : [];
|
|
1220
|
+
const timerPath = definitionPath.replace(/\.service$/, '.timer');
|
|
1221
|
+
const plan = {
|
|
1222
|
+
writes: [],
|
|
1223
|
+
commands: [
|
|
1224
|
+
{ cmd: 'systemctl', args: [...prefix, 'disable', '--now', `${updaterLabel}.timer`], allowFail: true },
|
|
1225
|
+
{ cmd: 'systemctl', args: [...prefix, 'disable', '--now', `${updaterLabel}.service`], allowFail: true },
|
|
1226
|
+
{ cmd: 'systemctl', args: [...prefix, 'daemon-reload'] },
|
|
1227
|
+
],
|
|
1228
|
+
};
|
|
1229
|
+
await applyServicePlan(plan);
|
|
1230
|
+
await rm(timerPath, { force: true }).catch(() => {});
|
|
1231
|
+
await rm(definitionPath, { force: true }).catch(() => {});
|
|
1232
|
+
return { uninstalled: true, backend, label: updaterLabel };
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
if (backend === 'launchd-system' || backend === 'launchd-user') {
|
|
1236
|
+
const plan = planServiceAction({
|
|
1237
|
+
backend,
|
|
1238
|
+
action: 'uninstall',
|
|
1239
|
+
label: updaterLabel,
|
|
1240
|
+
definitionPath,
|
|
1241
|
+
persistent: true,
|
|
1242
|
+
});
|
|
1243
|
+
await applyServicePlan(plan);
|
|
1244
|
+
await rm(definitionPath, { force: true }).catch(() => {});
|
|
1245
|
+
return { uninstalled: true, backend, label: updaterLabel };
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
const name = `Happier\\${updaterLabel}`;
|
|
1249
|
+
const plan = {
|
|
1250
|
+
writes: [],
|
|
1251
|
+
commands: [
|
|
1252
|
+
{ cmd: 'schtasks', args: ['/End', '/TN', name], allowFail: true },
|
|
1253
|
+
{ cmd: 'schtasks', args: ['/Delete', '/F', '/TN', name], allowFail: true },
|
|
1254
|
+
],
|
|
1255
|
+
};
|
|
1256
|
+
await applyServicePlan(plan);
|
|
1257
|
+
await rm(definitionPath, { force: true }).catch(() => {});
|
|
1258
|
+
return { uninstalled: true, backend, label: updaterLabel };
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
async function restartAndCheckHealth({ config, serviceSpec, port }) {
|
|
1262
|
+
await restartManagedService({ platform: config.platform, mode: config.mode, spec: serviceSpec }).catch(() => {});
|
|
1263
|
+
const timeoutMs = resolveSelfHostHealthTimeoutMs();
|
|
321
1264
|
const startedAt = Date.now();
|
|
322
|
-
while (Date.now() - startedAt <
|
|
323
|
-
const
|
|
324
|
-
if (
|
|
325
|
-
const ok = await checkHealth({ port: serverPort });
|
|
326
|
-
if (ok) return true;
|
|
327
|
-
}
|
|
1265
|
+
while (Date.now() - startedAt < timeoutMs) {
|
|
1266
|
+
const ok = await checkHealth({ port: parsePort(port, config.serverPort) });
|
|
1267
|
+
if (ok) return true;
|
|
328
1268
|
await new Promise((resolve) => setTimeout(resolve, 1500));
|
|
329
1269
|
}
|
|
330
1270
|
return false;
|
|
@@ -343,70 +1283,147 @@ async function checkHealth({ port }) {
|
|
|
343
1283
|
}
|
|
344
1284
|
}
|
|
345
1285
|
|
|
346
|
-
|
|
347
|
-
const inline = String(
|
|
348
|
-
|
|
349
|
-
const publicKeyUrl = String(
|
|
350
|
-
process.env.HAPPIER_MINISIGN_PUBKEY_URL ?? DEFAULTS.minisignPubKeyUrl
|
|
351
|
-
).trim();
|
|
352
|
-
if (!publicKeyUrl) {
|
|
353
|
-
throw new Error('[self-host] HAPPIER_MINISIGN_PUBKEY_URL is empty');
|
|
354
|
-
}
|
|
355
|
-
const response = await fetch(publicKeyUrl, {
|
|
356
|
-
headers: {
|
|
357
|
-
'user-agent': 'happier-self-host-installer',
|
|
358
|
-
accept: 'text/plain,application/octet-stream;q=0.9,*/*;q=0.8',
|
|
359
|
-
},
|
|
360
|
-
});
|
|
361
|
-
if (!response.ok) {
|
|
362
|
-
throw new Error(
|
|
363
|
-
`[self-host] failed to download minisign public key (${response.status} ${response.statusText})`
|
|
364
|
-
);
|
|
365
|
-
}
|
|
366
|
-
const raw = String(await response.text()).trim();
|
|
367
|
-
if (!raw) {
|
|
368
|
-
throw new Error('[self-host] downloaded minisign public key was empty');
|
|
369
|
-
}
|
|
370
|
-
return raw;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
async function verifySignature({ checksumsPath, signatureUrl, publicKey }) {
|
|
374
|
-
if (!signatureUrl) {
|
|
375
|
-
throw new Error('[self-host] release signature URL is missing');
|
|
376
|
-
}
|
|
377
|
-
if (!publicKey) {
|
|
378
|
-
throw new Error('[self-host] minisign public key is missing');
|
|
379
|
-
}
|
|
380
|
-
if (!commandExists('minisign')) {
|
|
381
|
-
throw new Error('[self-host] minisign is required for self-host signature verification');
|
|
382
|
-
}
|
|
383
|
-
const tmp = await mkdtemp(join(tmpdir(), 'happier-self-host-signature-'));
|
|
384
|
-
const pubKeyPath = join(tmp, 'minisign.pub');
|
|
385
|
-
const signaturePath = join(tmp, 'checksums.txt.minisig');
|
|
386
|
-
try {
|
|
387
|
-
await writeFile(pubKeyPath, `${publicKey}\n`, 'utf-8');
|
|
388
|
-
await downloadToFile(signatureUrl, signaturePath);
|
|
389
|
-
runCommand('minisign', ['-Vm', checksumsPath, '-x', signaturePath, '-p', pubKeyPath], { stdio: 'ignore' });
|
|
390
|
-
} finally {
|
|
391
|
-
await rm(tmp, { recursive: true, force: true });
|
|
392
|
-
}
|
|
1286
|
+
export function resolveMinisignPublicKeyText(env = process.env) {
|
|
1287
|
+
const inline = String(env?.HAPPIER_MINISIGN_PUBKEY ?? '').trim();
|
|
1288
|
+
return inline || DEFAULT_MINISIGN_PUBLIC_KEY;
|
|
393
1289
|
}
|
|
394
1290
|
|
|
395
|
-
async function installBinaryAtomically({ sourceBinaryPath, targetBinaryPath, previousBinaryPath, versionedTargetPath }) {
|
|
1291
|
+
export async function installBinaryAtomically({ sourceBinaryPath, targetBinaryPath, previousBinaryPath, versionedTargetPath }) {
|
|
396
1292
|
await mkdir(dirname(targetBinaryPath), { recursive: true });
|
|
397
1293
|
await mkdir(dirname(versionedTargetPath), { recursive: true });
|
|
398
1294
|
const stagedPath = `${targetBinaryPath}.new`;
|
|
399
1295
|
await copyFile(sourceBinaryPath, stagedPath);
|
|
400
|
-
await chmod(stagedPath, 0o755);
|
|
1296
|
+
await chmod(stagedPath, 0o755).catch(() => {});
|
|
401
1297
|
if (existsSync(targetBinaryPath)) {
|
|
402
1298
|
await copyFile(targetBinaryPath, previousBinaryPath);
|
|
403
|
-
await chmod(previousBinaryPath, 0o755);
|
|
1299
|
+
await chmod(previousBinaryPath, 0o755).catch(() => {});
|
|
404
1300
|
}
|
|
405
1301
|
await copyFile(stagedPath, versionedTargetPath);
|
|
406
|
-
await chmod(versionedTargetPath, 0o755);
|
|
407
|
-
|
|
1302
|
+
await chmod(versionedTargetPath, 0o755).catch(() => {});
|
|
1303
|
+
|
|
1304
|
+
// Replacing an on-disk executable that may currently be running can fail with ETXTBSY if we try to
|
|
1305
|
+
// write over the existing path. Prefer an atomic rename/swap on POSIX so the running process keeps
|
|
1306
|
+
// using the old inode while new spawns see the new binary.
|
|
1307
|
+
if (process.platform !== 'win32') {
|
|
1308
|
+
await rename(stagedPath, targetBinaryPath).catch(async (e) => {
|
|
1309
|
+
const code = String(e?.code ?? '');
|
|
1310
|
+
// Best-effort fallback (should be rare): keep behavior working even on filesystems where rename fails.
|
|
1311
|
+
if (code === 'EXDEV') {
|
|
1312
|
+
await copyFile(versionedTargetPath, targetBinaryPath);
|
|
1313
|
+
await chmod(targetBinaryPath, 0o755).catch(() => {});
|
|
1314
|
+
await rm(stagedPath, { force: true });
|
|
1315
|
+
return;
|
|
1316
|
+
}
|
|
1317
|
+
throw e;
|
|
1318
|
+
});
|
|
1319
|
+
await chmod(targetBinaryPath, 0o755).catch(() => {});
|
|
1320
|
+
return;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
// Windows does not reliably support overwrite semantics for rename.
|
|
408
1324
|
await copyFile(versionedTargetPath, targetBinaryPath);
|
|
409
|
-
await chmod(targetBinaryPath, 0o755);
|
|
1325
|
+
await chmod(targetBinaryPath, 0o755).catch(() => {});
|
|
1326
|
+
await rm(stagedPath, { force: true });
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
async function syncSelfHostSqliteMigrations({ artifactRootDir, targetDir }) {
|
|
1330
|
+
const root = String(artifactRootDir ?? '').trim();
|
|
1331
|
+
const dest = String(targetDir ?? '').trim();
|
|
1332
|
+
if (!root || !dest) return { copied: false, reason: 'missing-paths' };
|
|
1333
|
+
|
|
1334
|
+
const source = join(root, 'prisma', 'sqlite', 'migrations');
|
|
1335
|
+
if (!existsSync(source)) return { copied: false, reason: 'missing-source' };
|
|
1336
|
+
|
|
1337
|
+
await rm(dest, { recursive: true, force: true });
|
|
1338
|
+
await mkdir(dirname(dest), { recursive: true });
|
|
1339
|
+
await cp(source, dest, { recursive: true });
|
|
1340
|
+
return { copied: true, reason: 'ok' };
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
async function syncSelfHostGeneratedClients({ artifactRootDir, targetDir }) {
|
|
1344
|
+
const root = String(artifactRootDir ?? '').trim();
|
|
1345
|
+
const dest = String(targetDir ?? '').trim();
|
|
1346
|
+
if (!root || !dest) return { copied: false, reason: 'missing-paths' };
|
|
1347
|
+
|
|
1348
|
+
const source = join(root, 'generated');
|
|
1349
|
+
if (!existsSync(source)) return { copied: false, reason: 'missing-source' };
|
|
1350
|
+
|
|
1351
|
+
await rm(dest, { recursive: true, force: true });
|
|
1352
|
+
await mkdir(dirname(dest), { recursive: true });
|
|
1353
|
+
await cp(source, dest, { recursive: true });
|
|
1354
|
+
return { copied: true, reason: 'ok' };
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
export async function installSelfHostBinaryFromBundle({
|
|
1358
|
+
bundle,
|
|
1359
|
+
binaryName,
|
|
1360
|
+
config,
|
|
1361
|
+
pubkeyFile = resolveMinisignPublicKeyText(process.env),
|
|
1362
|
+
userAgent = 'happier-self-host-installer',
|
|
1363
|
+
} = {}) {
|
|
1364
|
+
const resolvedBundle = bundle;
|
|
1365
|
+
const name = String(binaryName ?? '').trim();
|
|
1366
|
+
if (!resolvedBundle?.archive?.url || !resolvedBundle?.archive?.name) {
|
|
1367
|
+
throw new Error('[self-host] invalid release bundle (missing archive)');
|
|
1368
|
+
}
|
|
1369
|
+
if (!resolvedBundle?.checksums?.url || !resolvedBundle?.checksumsSig?.url) {
|
|
1370
|
+
throw new Error('[self-host] invalid release bundle (missing checksums assets)');
|
|
1371
|
+
}
|
|
1372
|
+
if (!name) {
|
|
1373
|
+
throw new Error('[self-host] missing binary name');
|
|
1374
|
+
}
|
|
1375
|
+
const platform = String(config?.platform ?? process.platform).trim() || process.platform;
|
|
1376
|
+
const os = normalizeOs(platform);
|
|
1377
|
+
|
|
1378
|
+
const tempDir = await mkdtemp(join(tmpdir(), 'happier-self-host-release-'));
|
|
1379
|
+
try {
|
|
1380
|
+
const downloaded = await downloadVerifiedReleaseAssetBundle({
|
|
1381
|
+
bundle: resolvedBundle,
|
|
1382
|
+
destDir: tempDir,
|
|
1383
|
+
pubkeyFile,
|
|
1384
|
+
userAgent,
|
|
1385
|
+
});
|
|
1386
|
+
|
|
1387
|
+
const extractDir = join(tempDir, 'extract');
|
|
1388
|
+
await mkdir(extractDir, { recursive: true });
|
|
1389
|
+
const plan = planArchiveExtraction({
|
|
1390
|
+
archiveName: downloaded.archiveName,
|
|
1391
|
+
archivePath: downloaded.archivePath,
|
|
1392
|
+
destDir: extractDir,
|
|
1393
|
+
os,
|
|
1394
|
+
});
|
|
1395
|
+
if (!commandExists(plan.requiredCommand)) {
|
|
1396
|
+
throw new Error(`[self-host] ${plan.requiredCommand} is required to extract release artifacts`);
|
|
1397
|
+
}
|
|
1398
|
+
runCommand(plan.command.cmd, plan.command.args, { stdio: 'ignore' });
|
|
1399
|
+
const extractedBinary = await findExecutableByName(extractDir, name);
|
|
1400
|
+
if (!extractedBinary) {
|
|
1401
|
+
throw new Error('[self-host] failed to locate extracted server binary');
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
const version = downloaded.version || String(resolvedBundle?.version ?? '').trim() || `${Date.now()}`;
|
|
1405
|
+
await installBinaryAtomically({
|
|
1406
|
+
sourceBinaryPath: extractedBinary,
|
|
1407
|
+
targetBinaryPath: config.serverBinaryPath,
|
|
1408
|
+
previousBinaryPath: config.serverPreviousBinaryPath,
|
|
1409
|
+
versionedTargetPath: join(config.versionsDir, `${name}-${version}`),
|
|
1410
|
+
});
|
|
1411
|
+
const artifactRootDir = dirname(extractedBinary);
|
|
1412
|
+
await syncSelfHostSqliteMigrations({
|
|
1413
|
+
artifactRootDir,
|
|
1414
|
+
targetDir: join(config.dataDir, 'migrations', 'sqlite'),
|
|
1415
|
+
}).catch(() => {});
|
|
1416
|
+
const generated = await syncSelfHostGeneratedClients({
|
|
1417
|
+
artifactRootDir,
|
|
1418
|
+
targetDir: join(dirname(config.serverBinaryPath), 'generated'),
|
|
1419
|
+
});
|
|
1420
|
+
if (!generated.copied) {
|
|
1421
|
+
throw new Error('[self-host] server runtime is missing packaged generated clients');
|
|
1422
|
+
}
|
|
1423
|
+
return { version, source: resolvedBundle.archive.url };
|
|
1424
|
+
} finally {
|
|
1425
|
+
await rm(tempDir, { recursive: true, force: true });
|
|
1426
|
+
}
|
|
410
1427
|
}
|
|
411
1428
|
|
|
412
1429
|
async function installFromRelease({ product, binaryName, config, explicitBinaryPath = '' }) {
|
|
@@ -422,57 +1439,158 @@ async function installFromRelease({ product, binaryName, config, explicitBinaryP
|
|
|
422
1439
|
previousBinaryPath: config.serverPreviousBinaryPath,
|
|
423
1440
|
versionedTargetPath: join(config.versionsDir, `${binaryName}-${version}`),
|
|
424
1441
|
});
|
|
1442
|
+
await syncSelfHostSqliteMigrations({
|
|
1443
|
+
artifactRootDir: dirname(srcPath),
|
|
1444
|
+
targetDir: join(config.dataDir, 'migrations', 'sqlite'),
|
|
1445
|
+
}).catch(() => {});
|
|
1446
|
+
const generated = await syncSelfHostGeneratedClients({
|
|
1447
|
+
artifactRootDir: dirname(srcPath),
|
|
1448
|
+
targetDir: join(dirname(config.serverBinaryPath), 'generated'),
|
|
1449
|
+
});
|
|
1450
|
+
if (!generated.copied) {
|
|
1451
|
+
throw new Error('[self-host] server runtime is missing packaged generated clients');
|
|
1452
|
+
}
|
|
425
1453
|
return { version, source: 'local' };
|
|
426
1454
|
}
|
|
427
1455
|
|
|
428
1456
|
const channelTag = config.channel === 'preview' ? 'server-preview' : 'server-stable';
|
|
429
|
-
const release = await
|
|
430
|
-
|
|
1457
|
+
const release = await fetchGitHubReleaseByTag({
|
|
1458
|
+
githubRepo: config.githubRepo,
|
|
1459
|
+
tag: channelTag,
|
|
1460
|
+
userAgent: 'happier-self-host-installer',
|
|
1461
|
+
githubToken: String(process.env.GITHUB_TOKEN ?? process.env.GH_TOKEN ?? ''),
|
|
1462
|
+
});
|
|
1463
|
+
const os = normalizeOs(config.platform);
|
|
1464
|
+
const resolved = resolveReleaseAssetBundle({
|
|
431
1465
|
assets: release?.assets,
|
|
432
1466
|
product,
|
|
433
|
-
os
|
|
1467
|
+
os,
|
|
434
1468
|
arch: normalizeArch(),
|
|
435
1469
|
});
|
|
1470
|
+
const result = await installSelfHostBinaryFromBundle({
|
|
1471
|
+
bundle: resolved,
|
|
1472
|
+
binaryName,
|
|
1473
|
+
config,
|
|
1474
|
+
pubkeyFile: resolveMinisignPublicKeyText(process.env),
|
|
1475
|
+
userAgent: 'happier-self-host-installer',
|
|
1476
|
+
});
|
|
1477
|
+
return { version: result.version || resolved.version || String(release?.tag_name ?? '').replace(/^server-v/, ''), source: result.source };
|
|
1478
|
+
}
|
|
436
1479
|
|
|
437
|
-
|
|
1480
|
+
async function assertUiWebBundleIsValid(rootDir) {
|
|
1481
|
+
const indexPath = join(rootDir, 'index.html');
|
|
1482
|
+
const info = await stat(indexPath).catch(() => null);
|
|
1483
|
+
if (!info?.isFile()) {
|
|
1484
|
+
throw new Error(`[self-host] UI web bundle is missing index.html: ${indexPath}`);
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
export async function resolveExtractedUiWebBundleRootDir({ extractDir } = {}) {
|
|
1489
|
+
const root = String(extractDir ?? '').trim();
|
|
1490
|
+
if (!root) {
|
|
1491
|
+
throw new Error('[self-host] missing ui web bundle extractDir');
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
// Some archives extract index.html directly into extractDir.
|
|
438
1495
|
try {
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
const
|
|
449
|
-
if (
|
|
450
|
-
|
|
1496
|
+
await assertUiWebBundleIsValid(root);
|
|
1497
|
+
return root;
|
|
1498
|
+
} catch {
|
|
1499
|
+
// continue
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
const roots = await readdir(root).catch(() => []);
|
|
1503
|
+
for (const entry of roots) {
|
|
1504
|
+
const candidate = join(root, entry);
|
|
1505
|
+
const info = await stat(candidate).catch(() => null);
|
|
1506
|
+
if (!info?.isDirectory()) continue;
|
|
1507
|
+
try {
|
|
1508
|
+
await assertUiWebBundleIsValid(candidate);
|
|
1509
|
+
return candidate;
|
|
1510
|
+
} catch {
|
|
1511
|
+
// continue
|
|
451
1512
|
}
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
// Preserve the existing missing-index.html error shape, but anchor it to the extraction root
|
|
1516
|
+
// instead of whatever random entry came first (e.g. AppleDouble `._*` files).
|
|
1517
|
+
throw new Error(`[self-host] UI web bundle is missing index.html: ${join(root, 'index.html')}`);
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
async function installUiWebFromRelease({ config }) {
|
|
1521
|
+
const tags = config.channel === 'preview'
|
|
1522
|
+
? ['ui-web-preview', 'ui-web-stable']
|
|
1523
|
+
: ['ui-web-stable'];
|
|
1524
|
+
|
|
1525
|
+
const resolvedRelease = await fetchFirstGitHubReleaseByTags({
|
|
1526
|
+
githubRepo: config.githubRepo,
|
|
1527
|
+
tags,
|
|
1528
|
+
userAgent: 'happier-self-host-installer',
|
|
1529
|
+
githubToken: String(process.env.GITHUB_TOKEN ?? process.env.GH_TOKEN ?? ''),
|
|
1530
|
+
}).catch((e) => {
|
|
1531
|
+
const status = Number(e?.status);
|
|
1532
|
+
if (status === 404) return null;
|
|
1533
|
+
throw e;
|
|
1534
|
+
});
|
|
1535
|
+
|
|
1536
|
+
if (!resolvedRelease) {
|
|
1537
|
+
return {
|
|
1538
|
+
installed: false,
|
|
1539
|
+
version: null,
|
|
1540
|
+
source: null,
|
|
1541
|
+
reason: `ui web release tag not found (${tags.join(', ')})`,
|
|
1542
|
+
};
|
|
1543
|
+
}
|
|
1544
|
+
const { release, tag: channelTag } = resolvedRelease;
|
|
1545
|
+
|
|
1546
|
+
const resolved = resolveReleaseAssetBundle({
|
|
1547
|
+
assets: release?.assets,
|
|
1548
|
+
product: config.uiWebProduct,
|
|
1549
|
+
os: config.uiWebOs,
|
|
1550
|
+
arch: config.uiWebArch,
|
|
1551
|
+
});
|
|
452
1552
|
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
1553
|
+
const tempDir = await mkdtemp(join(tmpdir(), 'happier-self-host-ui-web-'));
|
|
1554
|
+
try {
|
|
1555
|
+
const pubkeyFile = resolveMinisignPublicKeyText(process.env);
|
|
1556
|
+
const downloaded = await downloadVerifiedReleaseAssetBundle({
|
|
1557
|
+
bundle: resolved,
|
|
1558
|
+
destDir: tempDir,
|
|
1559
|
+
pubkeyFile,
|
|
1560
|
+
userAgent: 'happier-self-host-installer',
|
|
458
1561
|
});
|
|
459
1562
|
|
|
460
1563
|
const extractDir = join(tempDir, 'extract');
|
|
461
1564
|
await mkdir(extractDir, { recursive: true });
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
1565
|
+
const plan = planArchiveExtraction({
|
|
1566
|
+
archiveName: downloaded.archiveName,
|
|
1567
|
+
archivePath: downloaded.archivePath,
|
|
1568
|
+
destDir: extractDir,
|
|
1569
|
+
os: normalizeOs(config.platform),
|
|
1570
|
+
});
|
|
1571
|
+
if (!commandExists(plan.requiredCommand)) {
|
|
1572
|
+
throw new Error(`[self-host] ${plan.requiredCommand} is required to extract ui web bundle artifacts`);
|
|
466
1573
|
}
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
1574
|
+
runCommand(plan.command.cmd, plan.command.args, { stdio: 'ignore' });
|
|
1575
|
+
|
|
1576
|
+
const roots = await readdir(extractDir).catch(() => []);
|
|
1577
|
+
if (roots.length === 0) {
|
|
1578
|
+
throw new Error('[self-host] extracted ui web bundle is empty');
|
|
1579
|
+
}
|
|
1580
|
+
const artifactRootDir = await resolveExtractedUiWebBundleRootDir({ extractDir });
|
|
1581
|
+
|
|
1582
|
+
const version = resolved.version || String(release?.tag_name ?? '').replace(/^ui-web-v/, '') || `${Date.now()}`;
|
|
1583
|
+
const versionedTargetDir = join(config.uiWebVersionsDir, `${config.uiWebProduct}-${version}`);
|
|
1584
|
+
await rm(versionedTargetDir, { recursive: true, force: true });
|
|
1585
|
+
await mkdir(dirname(versionedTargetDir), { recursive: true });
|
|
1586
|
+
await cp(artifactRootDir, versionedTargetDir, { recursive: true });
|
|
1587
|
+
|
|
1588
|
+
await rm(config.uiWebCurrentDir, { recursive: true, force: true }).catch(() => {});
|
|
1589
|
+
await symlink(versionedTargetDir, config.uiWebCurrentDir, config.platform === 'win32' ? 'junction' : 'dir').catch(async () => {
|
|
1590
|
+
await cp(versionedTargetDir, config.uiWebCurrentDir, { recursive: true });
|
|
474
1591
|
});
|
|
475
|
-
|
|
1592
|
+
|
|
1593
|
+
return { installed: true, version, source: downloaded.source.archiveUrl, tag: channelTag };
|
|
476
1594
|
} finally {
|
|
477
1595
|
await rm(tempDir, { recursive: true, force: true });
|
|
478
1596
|
}
|
|
@@ -518,20 +1636,56 @@ async function maybeInstallCompanionCli({ channel, nonInteractive, withCli }) {
|
|
|
518
1636
|
};
|
|
519
1637
|
}
|
|
520
1638
|
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
1639
|
+
function buildSelfHostServerServiceSpec({ config, envText }) {
|
|
1640
|
+
return {
|
|
1641
|
+
label: config.serviceName,
|
|
1642
|
+
description: `Happier Self-Host (${config.serviceName})`,
|
|
1643
|
+
programArgs: [config.serverBinaryPath],
|
|
1644
|
+
workingDirectory: config.installRoot,
|
|
1645
|
+
env: parseEnvText(envText),
|
|
1646
|
+
stdoutPath: config.serverStdoutLogPath,
|
|
1647
|
+
stderrPath: config.serverStderrLogPath,
|
|
1648
|
+
};
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
async function cmdInstall({ channel, mode, argv, json }) {
|
|
1652
|
+
if (mode === 'system' && process.platform !== 'win32') {
|
|
1653
|
+
assertRoot();
|
|
529
1654
|
}
|
|
530
|
-
const
|
|
531
|
-
const
|
|
532
|
-
const
|
|
1655
|
+
const parsedEnvOverrides = parseEnvOverridesFromArgv(argv);
|
|
1656
|
+
const envOverrides = parsedEnvOverrides.overrides;
|
|
1657
|
+
const argvSansEnv = parsedEnvOverrides.rest;
|
|
1658
|
+
const config = resolveConfig({ channel, mode, platform: process.platform });
|
|
1659
|
+
const autoUpdateEnabled = resolveAutoUpdateEnabled(argvSansEnv, config.autoUpdate);
|
|
1660
|
+
const autoUpdateIntervalMinutes = resolveAutoUpdateIntervalMinutes(argvSansEnv, config.autoUpdateIntervalMinutes);
|
|
1661
|
+
const autoUpdateAt = resolveAutoUpdateAt(argvSansEnv, config.autoUpdateAt);
|
|
1662
|
+
const withoutCli = argvSansEnv.includes('--without-cli') || parseBoolean(process.env.HAPPIER_WITH_CLI, true) === false;
|
|
1663
|
+
const withUi =
|
|
1664
|
+
!(argvSansEnv.includes('--without-ui')
|
|
1665
|
+
|| parseBoolean(process.env.HAPPIER_WITH_UI, true) === false
|
|
1666
|
+
|| parseBoolean(process.env.HAPPIER_SELF_HOST_WITH_UI, true) === false);
|
|
1667
|
+
const nonInteractive = argvSansEnv.includes('--non-interactive') || parseBoolean(process.env.HAPPIER_NONINTERACTIVE, false);
|
|
533
1668
|
const serverBinaryOverride = String(process.env.HAPPIER_SELF_HOST_SERVER_BINARY ?? '').trim();
|
|
534
1669
|
|
|
1670
|
+
if (normalizeOs(config.platform) !== 'windows' && !commandExists('tar')) {
|
|
1671
|
+
throw new Error('[self-host] tar is required to extract release artifacts');
|
|
1672
|
+
}
|
|
1673
|
+
if (normalizeOs(config.platform) === 'windows' && !commandExists('powershell')) {
|
|
1674
|
+
throw new Error('[self-host] powershell is required on Windows');
|
|
1675
|
+
}
|
|
1676
|
+
if (withUi && !commandExists('tar')) {
|
|
1677
|
+
throw new Error('[self-host] tar is required to extract ui web bundle artifacts');
|
|
1678
|
+
}
|
|
1679
|
+
if (normalizeOs(config.platform) === 'linux' && !commandExists('systemctl')) {
|
|
1680
|
+
throw new Error('[self-host] systemctl is required on Linux');
|
|
1681
|
+
}
|
|
1682
|
+
if (autoUpdateEnabled && normalizeOs(config.platform) === 'darwin' && !commandExists('launchctl')) {
|
|
1683
|
+
throw new Error('[self-host] launchctl is required on macOS for auto-update scheduling');
|
|
1684
|
+
}
|
|
1685
|
+
if (autoUpdateEnabled && normalizeOs(config.platform) === 'windows' && !commandExists('schtasks')) {
|
|
1686
|
+
throw new Error('[self-host] schtasks is required on Windows for auto-update scheduling');
|
|
1687
|
+
}
|
|
1688
|
+
|
|
535
1689
|
await mkdir(config.installRoot, { recursive: true });
|
|
536
1690
|
await mkdir(config.installBinDir, { recursive: true });
|
|
537
1691
|
await mkdir(config.versionsDir, { recursive: true });
|
|
@@ -540,79 +1694,73 @@ async function cmdInstall({ channel, argv, json }) {
|
|
|
540
1694
|
await mkdir(config.filesDir, { recursive: true });
|
|
541
1695
|
await mkdir(config.dbDir, { recursive: true });
|
|
542
1696
|
await mkdir(config.logDir, { recursive: true });
|
|
1697
|
+
await mkdir(config.uiWebRootDir, { recursive: true });
|
|
1698
|
+
await mkdir(config.uiWebVersionsDir, { recursive: true });
|
|
543
1699
|
|
|
544
1700
|
const installResult = await installFromRelease({
|
|
545
1701
|
product: 'happier-server',
|
|
546
|
-
binaryName:
|
|
1702
|
+
binaryName: config.serverBinaryName,
|
|
547
1703
|
config,
|
|
548
1704
|
explicitBinaryPath: serverBinaryOverride,
|
|
549
1705
|
});
|
|
550
1706
|
|
|
551
|
-
|
|
552
|
-
config
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
config.
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
config.updaterServiceUnitPath,
|
|
579
|
-
renderUpdaterServiceUnit({
|
|
580
|
-
updaterServiceName: config.updaterServiceName,
|
|
581
|
-
hstackPath,
|
|
582
|
-
channel,
|
|
583
|
-
}),
|
|
584
|
-
'utf-8'
|
|
585
|
-
);
|
|
586
|
-
await writeFile(
|
|
587
|
-
config.updaterTimerUnitPath,
|
|
588
|
-
renderUpdaterTimerUnit({
|
|
589
|
-
updaterServiceName: config.updaterServiceName,
|
|
590
|
-
updaterTimerName: config.updaterTimerUnitName,
|
|
591
|
-
}),
|
|
592
|
-
'utf-8'
|
|
593
|
-
);
|
|
594
|
-
|
|
595
|
-
const serverShimPath = join(config.binDir, 'happier-server');
|
|
1707
|
+
const uiResult = withUi
|
|
1708
|
+
? await installUiWebFromRelease({ config })
|
|
1709
|
+
: { installed: false, version: null, source: null, reason: 'disabled' };
|
|
1710
|
+
const uiInstalled = Boolean(uiResult?.installed);
|
|
1711
|
+
|
|
1712
|
+
const envText = renderServerEnvFile({
|
|
1713
|
+
port: config.serverPort,
|
|
1714
|
+
host: config.serverHost,
|
|
1715
|
+
dataDir: config.dataDir,
|
|
1716
|
+
filesDir: config.filesDir,
|
|
1717
|
+
dbDir: config.dbDir,
|
|
1718
|
+
uiDir: uiInstalled ? config.uiWebCurrentDir : '',
|
|
1719
|
+
serverBinDir: dirname(config.serverBinaryPath),
|
|
1720
|
+
arch: process.arch,
|
|
1721
|
+
platform: config.platform,
|
|
1722
|
+
});
|
|
1723
|
+
const envTextWithOverrides = envOverrides.length ? applyEnvOverridesToEnvText(envText, envOverrides) : envText;
|
|
1724
|
+
await writeFile(config.configEnvPath, envTextWithOverrides, 'utf-8');
|
|
1725
|
+
const installEnv = parseEnvText(envTextWithOverrides);
|
|
1726
|
+
const healthPort = resolveSelfHostEffectiveServerPort({ config, env: installEnv });
|
|
1727
|
+
if (!parseBoolean(installEnv.HAPPIER_SQLITE_AUTO_MIGRATE ?? installEnv.HAPPY_SQLITE_AUTO_MIGRATE, true)) {
|
|
1728
|
+
await applySelfHostSqliteMigrationsAtInstallTime({ env: installEnv }).catch((e) => {
|
|
1729
|
+
throw new Error(`[self-host] failed to apply sqlite migrations at install time: ${String(e?.message ?? e)}`);
|
|
1730
|
+
});
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
const serverShimPath = join(config.binDir, config.serverBinaryName);
|
|
596
1734
|
await mkdir(config.binDir, { recursive: true });
|
|
597
1735
|
await rm(serverShimPath, { force: true });
|
|
598
1736
|
await symlink(config.serverBinaryPath, serverShimPath).catch(async () => {
|
|
599
1737
|
await copyFile(config.serverBinaryPath, serverShimPath);
|
|
600
|
-
await chmod(serverShimPath, 0o755);
|
|
1738
|
+
await chmod(serverShimPath, 0o755).catch(() => {});
|
|
601
1739
|
});
|
|
602
1740
|
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
1741
|
+
const serviceSpec = buildSelfHostServerServiceSpec({ config, envText: envTextWithOverrides });
|
|
1742
|
+
await installManagedService({
|
|
1743
|
+
platform: config.platform,
|
|
1744
|
+
mode: config.mode,
|
|
1745
|
+
homeDir: homedir(),
|
|
1746
|
+
spec: serviceSpec,
|
|
1747
|
+
persistent: true,
|
|
1748
|
+
});
|
|
1749
|
+
|
|
1750
|
+
const healthy = await restartAndCheckHealth({ config, serviceSpec, port: healthPort });
|
|
1751
|
+
if (!healthy) {
|
|
1752
|
+
throw new Error('[self-host] service failed health checks after install');
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
const autoUpdateResult = await installAutoUpdateJob({
|
|
1756
|
+
config: { ...config, autoUpdateAt },
|
|
1757
|
+
enabled: autoUpdateEnabled,
|
|
1758
|
+
intervalMinutes: autoUpdateIntervalMinutes,
|
|
1759
|
+
at: autoUpdateAt,
|
|
1760
|
+
}).catch((e) => ({
|
|
1761
|
+
installed: false,
|
|
1762
|
+
reason: String(e?.message ?? e),
|
|
1763
|
+
}));
|
|
616
1764
|
|
|
617
1765
|
const cliResult = await maybeInstallCompanionCli({
|
|
618
1766
|
channel,
|
|
@@ -621,10 +1769,14 @@ async function cmdInstall({ channel, argv, json }) {
|
|
|
621
1769
|
});
|
|
622
1770
|
await writeSelfHostState(config, {
|
|
623
1771
|
channel,
|
|
1772
|
+
mode,
|
|
624
1773
|
version: installResult.version,
|
|
625
1774
|
source: installResult.source,
|
|
626
|
-
autoUpdate: config.autoUpdate,
|
|
627
1775
|
withCli: !withoutCli,
|
|
1776
|
+
uiWeb: uiInstalled
|
|
1777
|
+
? { installed: true, version: uiResult.version, source: uiResult.source, tag: uiResult.tag }
|
|
1778
|
+
: { installed: false, reason: String(uiResult?.reason ?? (withUi ? 'missing' : 'disabled')) },
|
|
1779
|
+
autoUpdate: { enabled: autoUpdateEnabled, intervalMinutes: autoUpdateIntervalMinutes, at: autoUpdateAt },
|
|
628
1780
|
});
|
|
629
1781
|
|
|
630
1782
|
printResult({
|
|
@@ -632,84 +1784,257 @@ async function cmdInstall({ channel, argv, json }) {
|
|
|
632
1784
|
data: {
|
|
633
1785
|
ok: true,
|
|
634
1786
|
channel,
|
|
1787
|
+
mode,
|
|
635
1788
|
version: installResult.version,
|
|
636
|
-
service: config.
|
|
1789
|
+
service: config.serviceName,
|
|
637
1790
|
serverPort: config.serverPort,
|
|
1791
|
+
autoUpdate: {
|
|
1792
|
+
enabled: autoUpdateEnabled,
|
|
1793
|
+
intervalMinutes: autoUpdateIntervalMinutes,
|
|
1794
|
+
at: autoUpdateAt || null,
|
|
1795
|
+
...autoUpdateResult,
|
|
1796
|
+
},
|
|
638
1797
|
cli: cliResult,
|
|
639
1798
|
},
|
|
640
1799
|
text: [
|
|
641
1800
|
`${green('✓')} Happier Self-Host installed`,
|
|
642
|
-
`-
|
|
1801
|
+
`- mode: ${cyan(mode)}`,
|
|
1802
|
+
`- service: ${cyan(config.serviceName)}`,
|
|
643
1803
|
`- version: ${cyan(installResult.version || 'unknown')}`,
|
|
644
1804
|
`- server: ${cyan(`http://127.0.0.1:${config.serverPort}`)}`,
|
|
1805
|
+
`- auto-update: ${autoUpdateEnabled ? (autoUpdateResult.installed ? green(`installed (${autoUpdateAt ? `daily at ${autoUpdateAt}` : `every ${autoUpdateIntervalMinutes}m`})`) : yellow('failed')) : dim('disabled')}`,
|
|
645
1806
|
`- cli: ${cliResult.installed ? green('installed') : dim(cliResult.reason)}`,
|
|
1807
|
+
`- ui: ${uiInstalled ? green('installed') : dim(String(uiResult?.reason ?? 'disabled'))}`,
|
|
646
1808
|
].join('\n'),
|
|
647
1809
|
});
|
|
648
1810
|
}
|
|
649
1811
|
|
|
650
|
-
async function cmdStatus({ channel, json }) {
|
|
651
|
-
|
|
652
|
-
const config = resolveConfig({ channel });
|
|
653
|
-
const serviceState = runCommand('systemctl', ['is-active', config.serviceUnitName], { allowFail: true, stdio: 'pipe' });
|
|
654
|
-
const active = (serviceState.status ?? 1) === 0;
|
|
655
|
-
const enabledState = runCommand('systemctl', ['is-enabled', config.serviceUnitName], { allowFail: true, stdio: 'pipe' });
|
|
656
|
-
const enabled = (enabledState.status ?? 1) === 0;
|
|
657
|
-
const healthy = active ? await checkHealth({ port: config.serverPort }) : false;
|
|
1812
|
+
async function cmdStatus({ channel, mode, json }) {
|
|
1813
|
+
const config = resolveConfig({ channel, mode, platform: process.platform });
|
|
658
1814
|
const state = existsSync(config.statePath)
|
|
659
1815
|
? JSON.parse(await readFile(config.statePath, 'utf-8').catch(() => '{}'))
|
|
660
1816
|
: {};
|
|
661
1817
|
|
|
1818
|
+
let active = null;
|
|
1819
|
+
let enabled = null;
|
|
1820
|
+
let updaterActive = null;
|
|
1821
|
+
let updaterEnabled = null;
|
|
1822
|
+
const updaterLabel = resolveUpdaterLabel(config);
|
|
1823
|
+
try {
|
|
1824
|
+
if (config.platform === 'linux' && commandExists('systemctl')) {
|
|
1825
|
+
const prefix = config.mode === 'user' ? ['--user'] : [];
|
|
1826
|
+
const isActive = runCommand('systemctl', [...prefix, 'is-active', '--quiet', `${config.serviceName}.service`], {
|
|
1827
|
+
allowFail: true,
|
|
1828
|
+
stdio: 'ignore',
|
|
1829
|
+
});
|
|
1830
|
+
active = (isActive.status ?? 1) === 0;
|
|
1831
|
+
const isEnabled = runCommand('systemctl', [...prefix, 'is-enabled', '--quiet', `${config.serviceName}.service`], {
|
|
1832
|
+
allowFail: true,
|
|
1833
|
+
stdio: 'ignore',
|
|
1834
|
+
});
|
|
1835
|
+
enabled = (isEnabled.status ?? 1) === 0;
|
|
1836
|
+
|
|
1837
|
+
const updaterTimerIsActive = runCommand('systemctl', [...prefix, 'is-active', '--quiet', `${updaterLabel}.timer`], {
|
|
1838
|
+
allowFail: true,
|
|
1839
|
+
stdio: 'ignore',
|
|
1840
|
+
});
|
|
1841
|
+
updaterActive = (updaterTimerIsActive.status ?? 1) === 0;
|
|
1842
|
+
const updaterIsEnabled = runCommand('systemctl', [...prefix, 'is-enabled', '--quiet', `${updaterLabel}.timer`], {
|
|
1843
|
+
allowFail: true,
|
|
1844
|
+
stdio: 'ignore',
|
|
1845
|
+
});
|
|
1846
|
+
updaterEnabled = (updaterIsEnabled.status ?? 1) === 0;
|
|
1847
|
+
} else if (config.platform === 'darwin' && commandExists('launchctl')) {
|
|
1848
|
+
const list = runCommand('launchctl', ['list'], { allowFail: true, stdio: 'pipe' });
|
|
1849
|
+
const out = String(list.stdout ?? '');
|
|
1850
|
+
active = out.includes(`\t${config.serviceName}`) || out.includes(` ${config.serviceName}`);
|
|
1851
|
+
updaterActive = out.includes(`\t${updaterLabel}`) || out.includes(` ${updaterLabel}`);
|
|
1852
|
+
enabled = null;
|
|
1853
|
+
updaterEnabled = null;
|
|
1854
|
+
} else if (config.platform === 'win32' && commandExists('schtasks')) {
|
|
1855
|
+
const query = runCommand('schtasks', ['/Query', '/TN', `Happier\\${config.serviceName}`, '/FO', 'LIST', '/V'], {
|
|
1856
|
+
allowFail: true,
|
|
1857
|
+
stdio: 'pipe',
|
|
1858
|
+
});
|
|
1859
|
+
const out = String(query.stdout ?? '');
|
|
1860
|
+
active = /Status:\s*Running/i.test(out) ? true : /Status:/i.test(out) ? false : null;
|
|
1861
|
+
enabled = /Scheduled Task State:\s*Enabled/i.test(out) ? true : /Scheduled Task State:/i.test(out) ? false : null;
|
|
1862
|
+
|
|
1863
|
+
const updaterQuery = runCommand('schtasks', ['/Query', '/TN', `Happier\\${updaterLabel}`, '/FO', 'LIST', '/V'], {
|
|
1864
|
+
allowFail: true,
|
|
1865
|
+
stdio: 'pipe',
|
|
1866
|
+
});
|
|
1867
|
+
const updaterOut = String(updaterQuery.stdout ?? '');
|
|
1868
|
+
updaterActive = /Status:\s*Running/i.test(updaterOut) ? true : /Status:/i.test(updaterOut) ? false : null;
|
|
1869
|
+
updaterEnabled = /Scheduled Task State:\s*Enabled/i.test(updaterOut)
|
|
1870
|
+
? true
|
|
1871
|
+
: /Scheduled Task State:/i.test(updaterOut)
|
|
1872
|
+
? false
|
|
1873
|
+
: null;
|
|
1874
|
+
}
|
|
1875
|
+
} catch {
|
|
1876
|
+
active = null;
|
|
1877
|
+
enabled = null;
|
|
1878
|
+
updaterActive = null;
|
|
1879
|
+
updaterEnabled = null;
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
const healthy = await checkHealth({ port: config.serverPort });
|
|
1883
|
+
const serverVersion = state?.version ? String(state.version) : '';
|
|
1884
|
+
const uiWebVersion =
|
|
1885
|
+
state?.uiWeb?.installed === true && state?.uiWeb?.version
|
|
1886
|
+
? String(state.uiWeb.version)
|
|
1887
|
+
: '';
|
|
1888
|
+
const autoUpdateState = normalizeSelfHostAutoUpdateState(state, {
|
|
1889
|
+
fallbackIntervalMinutes: config.autoUpdateIntervalMinutes,
|
|
1890
|
+
});
|
|
1891
|
+
|
|
1892
|
+
const serverUrl = `http://${config.serverHost}:${config.serverPort}`;
|
|
662
1893
|
printResult({
|
|
663
1894
|
json,
|
|
664
1895
|
data: {
|
|
665
1896
|
ok: true,
|
|
666
1897
|
channel,
|
|
1898
|
+
mode,
|
|
1899
|
+
serverUrl,
|
|
1900
|
+
versions: {
|
|
1901
|
+
server: serverVersion || null,
|
|
1902
|
+
uiWeb: uiWebVersion || null,
|
|
1903
|
+
},
|
|
667
1904
|
service: {
|
|
668
|
-
name: config.
|
|
1905
|
+
name: config.serviceName,
|
|
669
1906
|
active,
|
|
670
1907
|
enabled,
|
|
671
1908
|
},
|
|
1909
|
+
autoUpdate: {
|
|
1910
|
+
label: updaterLabel,
|
|
1911
|
+
active: updaterActive,
|
|
1912
|
+
enabled: updaterEnabled,
|
|
1913
|
+
configured: {
|
|
1914
|
+
enabled: Boolean(autoUpdateState?.enabled),
|
|
1915
|
+
intervalMinutes: autoUpdateState?.intervalMinutes ?? null,
|
|
1916
|
+
at: autoUpdateState?.at ? String(autoUpdateState.at) : null,
|
|
1917
|
+
},
|
|
1918
|
+
},
|
|
672
1919
|
healthy,
|
|
673
1920
|
state,
|
|
674
1921
|
},
|
|
675
|
-
text:
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
1922
|
+
text: renderSelfHostStatusText({
|
|
1923
|
+
channel,
|
|
1924
|
+
mode,
|
|
1925
|
+
serviceName: config.serviceName,
|
|
1926
|
+
serverUrl,
|
|
1927
|
+
healthy,
|
|
1928
|
+
service: { active, enabled },
|
|
1929
|
+
versions: { server: serverVersion || null, uiWeb: uiWebVersion || null },
|
|
1930
|
+
autoUpdate: {
|
|
1931
|
+
label: updaterLabel,
|
|
1932
|
+
job: { active: updaterActive, enabled: updaterEnabled },
|
|
1933
|
+
configured: {
|
|
1934
|
+
enabled: Boolean(autoUpdateState?.enabled),
|
|
1935
|
+
intervalMinutes: autoUpdateState?.intervalMinutes ?? null,
|
|
1936
|
+
at: autoUpdateState?.at ? String(autoUpdateState.at) : null,
|
|
1937
|
+
},
|
|
1938
|
+
},
|
|
1939
|
+
updatedAt: state?.updatedAt ?? null,
|
|
1940
|
+
}),
|
|
682
1941
|
});
|
|
683
1942
|
}
|
|
684
1943
|
|
|
685
|
-
async function cmdUpdate({ channel, json }) {
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
1944
|
+
async function cmdUpdate({ channel, mode, json }) {
|
|
1945
|
+
const config = resolveConfig({ channel, mode, platform: process.platform });
|
|
1946
|
+
if (config.mode === 'system' && config.platform !== 'win32') {
|
|
1947
|
+
assertRoot();
|
|
1948
|
+
}
|
|
1949
|
+
const existingState = existsSync(config.statePath)
|
|
1950
|
+
? JSON.parse(await readFile(config.statePath, 'utf-8').catch(() => '{}'))
|
|
1951
|
+
: {};
|
|
1952
|
+
const autoUpdateReconcile = decideSelfHostAutoUpdateReconcile(existingState, {
|
|
1953
|
+
fallbackIntervalMinutes: config.autoUpdateIntervalMinutes,
|
|
1954
|
+
});
|
|
1955
|
+
const withUi =
|
|
1956
|
+
parseBoolean(process.env.HAPPIER_WITH_UI, true) !== false
|
|
1957
|
+
&& parseBoolean(process.env.HAPPIER_SELF_HOST_WITH_UI, true) !== false;
|
|
689
1958
|
const installResult = await installFromRelease({
|
|
690
1959
|
product: 'happier-server',
|
|
691
|
-
binaryName:
|
|
1960
|
+
binaryName: config.serverBinaryName,
|
|
692
1961
|
config,
|
|
693
1962
|
});
|
|
694
|
-
const
|
|
1963
|
+
const uiResult = withUi
|
|
1964
|
+
? await installUiWebFromRelease({ config })
|
|
1965
|
+
: { installed: false, version: null, source: null, reason: 'disabled' };
|
|
1966
|
+
const uiInstalled = Boolean(uiResult?.installed);
|
|
1967
|
+
|
|
1968
|
+
const envText = existsSync(config.configEnvPath)
|
|
1969
|
+
? await readFile(config.configEnvPath, 'utf-8').catch(() => '')
|
|
1970
|
+
: '';
|
|
1971
|
+
const parsedEnv = parseEnvText(envText);
|
|
1972
|
+
const effectivePort = parsePort(parsedEnv.PORT, config.serverPort);
|
|
1973
|
+
const configWithPort = effectivePort === config.serverPort ? config : { ...config, serverPort: effectivePort };
|
|
1974
|
+
const defaultsEnvText = renderServerEnvFile({
|
|
1975
|
+
port: configWithPort.serverPort,
|
|
1976
|
+
host: configWithPort.serverHost,
|
|
1977
|
+
dataDir: configWithPort.dataDir,
|
|
1978
|
+
filesDir: configWithPort.filesDir,
|
|
1979
|
+
dbDir: configWithPort.dbDir,
|
|
1980
|
+
uiDir: uiInstalled ? configWithPort.uiWebCurrentDir : '',
|
|
1981
|
+
serverBinDir: dirname(configWithPort.serverBinaryPath),
|
|
1982
|
+
arch: process.arch,
|
|
1983
|
+
platform: configWithPort.platform,
|
|
1984
|
+
});
|
|
1985
|
+
const nextEnvText = envText ? mergeEnvTextWithDefaults(envText, defaultsEnvText) : defaultsEnvText;
|
|
1986
|
+
await mkdir(configWithPort.configDir, { recursive: true });
|
|
1987
|
+
await writeFile(configWithPort.configEnvPath, nextEnvText, 'utf-8');
|
|
1988
|
+
const nextEnv = parseEnvText(nextEnvText);
|
|
1989
|
+
if (!parseBoolean(nextEnv.HAPPIER_SQLITE_AUTO_MIGRATE ?? nextEnv.HAPPY_SQLITE_AUTO_MIGRATE, true)) {
|
|
1990
|
+
await applySelfHostSqliteMigrationsAtInstallTime({ env: nextEnv }).catch((e) => {
|
|
1991
|
+
throw new Error(`[self-host] failed to apply sqlite migrations at update time: ${String(e?.message ?? e)}`);
|
|
1992
|
+
});
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1995
|
+
const serviceSpec = buildSelfHostServerServiceSpec({ config: configWithPort, envText: nextEnvText });
|
|
1996
|
+
await installManagedService({
|
|
1997
|
+
platform: configWithPort.platform,
|
|
1998
|
+
mode: configWithPort.mode,
|
|
1999
|
+
homeDir: homedir(),
|
|
2000
|
+
spec: serviceSpec,
|
|
2001
|
+
persistent: true,
|
|
2002
|
+
}).catch(() => {});
|
|
2003
|
+
const healthy = await restartAndCheckHealth({ config: configWithPort, serviceSpec });
|
|
695
2004
|
if (!healthy) {
|
|
696
2005
|
if (existsSync(config.serverPreviousBinaryPath)) {
|
|
697
2006
|
await copyFile(config.serverPreviousBinaryPath, config.serverBinaryPath);
|
|
698
|
-
await chmod(config.serverBinaryPath, 0o755);
|
|
699
|
-
await restartAndCheckHealth({
|
|
2007
|
+
await chmod(config.serverBinaryPath, 0o755).catch(() => {});
|
|
2008
|
+
await restartAndCheckHealth({ config: configWithPort, serviceSpec });
|
|
700
2009
|
}
|
|
701
2010
|
throw new Error('[self-host] update failed health checks and was rolled back to previous binary');
|
|
702
2011
|
}
|
|
703
2012
|
|
|
2013
|
+
if (autoUpdateReconcile.action === 'install') {
|
|
2014
|
+
await installAutoUpdateJob({
|
|
2015
|
+
config: { ...configWithPort, autoUpdateAt: autoUpdateReconcile.at },
|
|
2016
|
+
enabled: true,
|
|
2017
|
+
intervalMinutes: autoUpdateReconcile.intervalMinutes,
|
|
2018
|
+
at: autoUpdateReconcile.at,
|
|
2019
|
+
}).catch(() => {});
|
|
2020
|
+
} else {
|
|
2021
|
+
await uninstallAutoUpdateJob({ config: configWithPort }).catch(() => {});
|
|
2022
|
+
}
|
|
2023
|
+
|
|
704
2024
|
await writeSelfHostState(config, {
|
|
705
2025
|
channel,
|
|
2026
|
+
mode,
|
|
706
2027
|
version: installResult.version,
|
|
707
2028
|
source: installResult.source,
|
|
2029
|
+
autoUpdate: { enabled: autoUpdateReconcile.enabled, intervalMinutes: autoUpdateReconcile.intervalMinutes, at: autoUpdateReconcile.at },
|
|
2030
|
+
uiWeb: uiInstalled
|
|
2031
|
+
? { installed: true, version: uiResult.version, source: uiResult.source, tag: uiResult.tag }
|
|
2032
|
+
: { installed: false, reason: String(uiResult?.reason ?? (withUi ? 'missing' : 'disabled')) },
|
|
708
2033
|
});
|
|
709
2034
|
|
|
710
2035
|
printResult({
|
|
711
2036
|
json,
|
|
712
|
-
data: { ok: true, version: installResult.version, service: config.
|
|
2037
|
+
data: { ok: true, version: installResult.version, service: config.serviceName },
|
|
713
2038
|
text: `${green('✓')} updated self-host runtime to ${cyan(installResult.version || 'latest')}`,
|
|
714
2039
|
});
|
|
715
2040
|
}
|
|
@@ -723,13 +2048,14 @@ function parseRollbackVersion(argv) {
|
|
|
723
2048
|
return '';
|
|
724
2049
|
}
|
|
725
2050
|
|
|
726
|
-
async function cmdRollback({ channel, argv, json }) {
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
2051
|
+
async function cmdRollback({ channel, mode, argv, json }) {
|
|
2052
|
+
const config = resolveConfig({ channel, mode, platform: process.platform });
|
|
2053
|
+
if (config.mode === 'system' && config.platform !== 'win32') {
|
|
2054
|
+
assertRoot();
|
|
2055
|
+
}
|
|
730
2056
|
const to = parseRollbackVersion(argv);
|
|
731
2057
|
const target = to
|
|
732
|
-
? join(config.versionsDir,
|
|
2058
|
+
? join(config.versionsDir, `${config.serverBinaryName}-${to}`)
|
|
733
2059
|
: config.serverPreviousBinaryPath;
|
|
734
2060
|
if (!existsSync(target)) {
|
|
735
2061
|
throw new Error(
|
|
@@ -739,13 +2065,42 @@ async function cmdRollback({ channel, argv, json }) {
|
|
|
739
2065
|
);
|
|
740
2066
|
}
|
|
741
2067
|
await copyFile(target, config.serverBinaryPath);
|
|
742
|
-
await chmod(config.serverBinaryPath, 0o755);
|
|
743
|
-
const
|
|
2068
|
+
await chmod(config.serverBinaryPath, 0o755).catch(() => {});
|
|
2069
|
+
const envText = existsSync(config.configEnvPath)
|
|
2070
|
+
? await readFile(config.configEnvPath, 'utf-8').catch(() => '')
|
|
2071
|
+
: '';
|
|
2072
|
+
const parsedEnv = parseEnvText(envText);
|
|
2073
|
+
const effectivePort = parsePort(parsedEnv.PORT, config.serverPort);
|
|
2074
|
+
const configWithPort = effectivePort === config.serverPort ? config : { ...config, serverPort: effectivePort };
|
|
2075
|
+
const defaultsEnvText = renderServerEnvFile({
|
|
2076
|
+
port: configWithPort.serverPort,
|
|
2077
|
+
host: configWithPort.serverHost,
|
|
2078
|
+
dataDir: configWithPort.dataDir,
|
|
2079
|
+
filesDir: configWithPort.filesDir,
|
|
2080
|
+
dbDir: configWithPort.dbDir,
|
|
2081
|
+
serverBinDir: dirname(configWithPort.serverBinaryPath),
|
|
2082
|
+
arch: process.arch,
|
|
2083
|
+
platform: configWithPort.platform,
|
|
2084
|
+
});
|
|
2085
|
+
const nextEnvText = envText ? mergeEnvTextWithDefaults(envText, defaultsEnvText) : defaultsEnvText;
|
|
2086
|
+
await mkdir(configWithPort.configDir, { recursive: true });
|
|
2087
|
+
await writeFile(configWithPort.configEnvPath, nextEnvText, 'utf-8');
|
|
2088
|
+
|
|
2089
|
+
const serviceSpec = buildSelfHostServerServiceSpec({ config: configWithPort, envText: nextEnvText });
|
|
2090
|
+
await installManagedService({
|
|
2091
|
+
platform: configWithPort.platform,
|
|
2092
|
+
mode: configWithPort.mode,
|
|
2093
|
+
homeDir: homedir(),
|
|
2094
|
+
spec: serviceSpec,
|
|
2095
|
+
persistent: true,
|
|
2096
|
+
}).catch(() => {});
|
|
2097
|
+
const healthy = await restartAndCheckHealth({ config: configWithPort, serviceSpec });
|
|
744
2098
|
if (!healthy) {
|
|
745
2099
|
throw new Error('[self-host] rollback completed binary swap but health checks failed');
|
|
746
2100
|
}
|
|
747
2101
|
await writeSelfHostState(config, {
|
|
748
2102
|
channel,
|
|
2103
|
+
mode,
|
|
749
2104
|
version: to || 'previous',
|
|
750
2105
|
rolledBackAt: new Date().toISOString(),
|
|
751
2106
|
});
|
|
@@ -756,27 +2111,43 @@ async function cmdRollback({ channel, argv, json }) {
|
|
|
756
2111
|
});
|
|
757
2112
|
}
|
|
758
2113
|
|
|
759
|
-
async function cmdUninstall({ channel, argv, json }) {
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
2114
|
+
async function cmdUninstall({ channel, mode, argv, json }) {
|
|
2115
|
+
const config = resolveConfig({ channel, mode, platform: process.platform });
|
|
2116
|
+
if (config.mode === 'system' && config.platform !== 'win32') {
|
|
2117
|
+
assertRoot();
|
|
2118
|
+
}
|
|
763
2119
|
const purgeData = argv.includes('--purge-data');
|
|
764
2120
|
const yes = argv.includes('--yes') || parseBoolean(process.env.HAPPIER_NONINTERACTIVE, false);
|
|
765
2121
|
if (!yes) {
|
|
766
2122
|
throw new Error('[self-host] uninstall requires --yes (or HAPPIER_NONINTERACTIVE=1)');
|
|
767
2123
|
}
|
|
768
2124
|
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
2125
|
+
const envText = existsSync(config.configEnvPath)
|
|
2126
|
+
? await readFile(config.configEnvPath, 'utf-8').catch(() => '')
|
|
2127
|
+
: '';
|
|
2128
|
+
const fallbackEnvText = envText || renderServerEnvFile({
|
|
2129
|
+
port: config.serverPort,
|
|
2130
|
+
host: config.serverHost,
|
|
2131
|
+
dataDir: config.dataDir,
|
|
2132
|
+
filesDir: config.filesDir,
|
|
2133
|
+
dbDir: config.dbDir,
|
|
2134
|
+
serverBinDir: dirname(config.serverBinaryPath),
|
|
2135
|
+
arch: process.arch,
|
|
2136
|
+
platform: config.platform,
|
|
2137
|
+
});
|
|
2138
|
+
const serviceSpec = buildSelfHostServerServiceSpec({ config, envText: fallbackEnvText });
|
|
2139
|
+
await uninstallAutoUpdateJob({ config }).catch(() => {});
|
|
2140
|
+
await uninstallManagedService({
|
|
2141
|
+
platform: config.platform,
|
|
2142
|
+
mode: config.mode,
|
|
2143
|
+
homeDir: homedir(),
|
|
2144
|
+
spec: serviceSpec,
|
|
2145
|
+
persistent: true,
|
|
2146
|
+
}).catch(() => {});
|
|
776
2147
|
|
|
777
2148
|
await rm(config.serverBinaryPath, { force: true });
|
|
778
2149
|
await rm(config.serverPreviousBinaryPath, { force: true });
|
|
779
|
-
await rm(join(config.binDir,
|
|
2150
|
+
await rm(join(config.binDir, config.serverBinaryName), { force: true });
|
|
780
2151
|
await rm(config.statePath, { force: true });
|
|
781
2152
|
|
|
782
2153
|
if (purgeData) {
|
|
@@ -793,16 +2164,12 @@ async function cmdUninstall({ channel, argv, json }) {
|
|
|
793
2164
|
});
|
|
794
2165
|
}
|
|
795
2166
|
|
|
796
|
-
async function cmdDoctor({ channel, json }) {
|
|
797
|
-
const config = resolveConfig({ channel });
|
|
798
|
-
const
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
{ name: 'tar', ok: commandExists('tar') },
|
|
803
|
-
{ name: 'server-binary', ok: existsSync(config.serverBinaryPath) },
|
|
804
|
-
{ name: 'service-unit', ok: existsSync(config.serviceUnitPath) },
|
|
805
|
-
];
|
|
2167
|
+
async function cmdDoctor({ channel, mode, json }) {
|
|
2168
|
+
const config = resolveConfig({ channel, mode, platform: process.platform });
|
|
2169
|
+
const state = existsSync(config.statePath)
|
|
2170
|
+
? JSON.parse(await readFile(config.statePath, 'utf-8').catch(() => '{}'))
|
|
2171
|
+
: {};
|
|
2172
|
+
const checks = buildSelfHostDoctorChecks(config, { state });
|
|
806
2173
|
const ok = checks.every((check) => check.ok);
|
|
807
2174
|
printResult({
|
|
808
2175
|
json,
|
|
@@ -818,17 +2185,200 @@ async function cmdDoctor({ channel, json }) {
|
|
|
818
2185
|
}
|
|
819
2186
|
}
|
|
820
2187
|
|
|
2188
|
+
function pickFirstPositional(argv) {
|
|
2189
|
+
const args = Array.isArray(argv) ? argv.map(String) : [];
|
|
2190
|
+
return args.find((a) => a && !a.startsWith('-')) ?? '';
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
function safeParseJson(text) {
|
|
2194
|
+
try {
|
|
2195
|
+
return JSON.parse(String(text ?? ''));
|
|
2196
|
+
} catch {
|
|
2197
|
+
return null;
|
|
2198
|
+
}
|
|
2199
|
+
}
|
|
2200
|
+
|
|
2201
|
+
function redactEnvForDisplay(env) {
|
|
2202
|
+
const input = env ?? {};
|
|
2203
|
+
const out = {};
|
|
2204
|
+
const allowed = new Set([
|
|
2205
|
+
'PORT',
|
|
2206
|
+
'HAPPIER_SERVER_HOST',
|
|
2207
|
+
'HAPPIER_DB_PROVIDER',
|
|
2208
|
+
'HAPPIER_FILES_BACKEND',
|
|
2209
|
+
'HAPPIER_SERVER_UI_DIR',
|
|
2210
|
+
]);
|
|
2211
|
+
for (const [k, v] of Object.entries(input)) {
|
|
2212
|
+
if (!allowed.has(k)) continue;
|
|
2213
|
+
out[k] = String(v ?? '');
|
|
2214
|
+
}
|
|
2215
|
+
return out;
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
async function cmdConfig({ channel, mode, argv, json }) {
|
|
2219
|
+
const args = Array.isArray(argv) ? argv.map(String) : [];
|
|
2220
|
+
const sub = pickFirstPositional(args) || 'view';
|
|
2221
|
+
const subIndex = args.indexOf(sub);
|
|
2222
|
+
const rest = subIndex >= 0 ? args.slice(subIndex + 1) : [];
|
|
2223
|
+
|
|
2224
|
+
const config = resolveConfig({ channel, mode, platform: process.platform });
|
|
2225
|
+
const existingState = existsSync(config.statePath)
|
|
2226
|
+
? safeParseJson(await readFile(config.statePath, 'utf-8').catch(() => '')) ?? {}
|
|
2227
|
+
: {};
|
|
2228
|
+
const normalizedAutoUpdate = normalizeSelfHostAutoUpdateState(existingState, {
|
|
2229
|
+
fallbackIntervalMinutes: config.autoUpdateIntervalMinutes,
|
|
2230
|
+
});
|
|
2231
|
+
const envText = existsSync(config.configEnvPath)
|
|
2232
|
+
? await readFile(config.configEnvPath, 'utf-8').catch(() => '')
|
|
2233
|
+
: '';
|
|
2234
|
+
const envObj = envText ? parseEnvText(envText) : {};
|
|
2235
|
+
|
|
2236
|
+
if (sub === 'view') {
|
|
2237
|
+
printResult({
|
|
2238
|
+
json,
|
|
2239
|
+
data: {
|
|
2240
|
+
ok: true,
|
|
2241
|
+
channel,
|
|
2242
|
+
mode,
|
|
2243
|
+
paths: {
|
|
2244
|
+
installRoot: config.installRoot,
|
|
2245
|
+
binDir: config.binDir,
|
|
2246
|
+
configDir: config.configDir,
|
|
2247
|
+
configEnvPath: config.configEnvPath,
|
|
2248
|
+
statePath: config.statePath,
|
|
2249
|
+
logDir: config.logDir,
|
|
2250
|
+
},
|
|
2251
|
+
autoUpdate: {
|
|
2252
|
+
enabled: Boolean(normalizedAutoUpdate.enabled),
|
|
2253
|
+
intervalMinutes: normalizedAutoUpdate.intervalMinutes,
|
|
2254
|
+
at: normalizedAutoUpdate.at || null,
|
|
2255
|
+
},
|
|
2256
|
+
env: redactEnvForDisplay(envObj),
|
|
2257
|
+
state: existingState,
|
|
2258
|
+
},
|
|
2259
|
+
text: json
|
|
2260
|
+
? null
|
|
2261
|
+
: [
|
|
2262
|
+
banner('self-host config', { subtitle: 'Self-host configuration (paths + auto-update).' }),
|
|
2263
|
+
'',
|
|
2264
|
+
sectionTitle('paths:'),
|
|
2265
|
+
`- installRoot: ${cyan(config.installRoot)}`,
|
|
2266
|
+
`- configEnvPath: ${cyan(config.configEnvPath)}`,
|
|
2267
|
+
`- statePath: ${cyan(config.statePath)}`,
|
|
2268
|
+
'',
|
|
2269
|
+
sectionTitle('auto-update:'),
|
|
2270
|
+
`- enabled: ${normalizedAutoUpdate.enabled ? green('yes') : dim('no')}`,
|
|
2271
|
+
`- schedule: ${normalizedAutoUpdate.enabled ? cyan(normalizedAutoUpdate.at ? `daily at ${normalizedAutoUpdate.at}` : `every ${normalizedAutoUpdate.intervalMinutes}m`) : dim('disabled')}`,
|
|
2272
|
+
].join('\n'),
|
|
2273
|
+
});
|
|
2274
|
+
return;
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
if (sub === 'set') {
|
|
2278
|
+
const wantsApply = !rest.includes('--no-apply');
|
|
2279
|
+
const enabled =
|
|
2280
|
+
rest.includes('--auto-update') ? true : rest.includes('--no-auto-update') ? false : Boolean(normalizedAutoUpdate.enabled);
|
|
2281
|
+
|
|
2282
|
+
const wantsInterval = rest.some((a) => a === '--auto-update-interval' || a.startsWith('--auto-update-interval='));
|
|
2283
|
+
const nextIntervalMinutes = wantsInterval
|
|
2284
|
+
? resolveAutoUpdateIntervalMinutes(rest, normalizedAutoUpdate.intervalMinutes)
|
|
2285
|
+
: normalizedAutoUpdate.intervalMinutes;
|
|
2286
|
+
|
|
2287
|
+
const wantsAt = rest.some((a) => a === '--auto-update-at' || a.startsWith('--auto-update-at='));
|
|
2288
|
+
const clearAt = rest.includes('--clear-auto-update-at');
|
|
2289
|
+
const nextAt = clearAt
|
|
2290
|
+
? ''
|
|
2291
|
+
: wantsAt
|
|
2292
|
+
? resolveAutoUpdateAt(rest, normalizedAutoUpdate.at || config.autoUpdateAt || '')
|
|
2293
|
+
: normalizedAutoUpdate.at || '';
|
|
2294
|
+
|
|
2295
|
+
const parsedEnvOverrides = parseEnvOverridesFromArgv(rest);
|
|
2296
|
+
const envOverrides = parsedEnvOverrides.overrides;
|
|
2297
|
+
|
|
2298
|
+
await mkdir(config.installRoot, { recursive: true });
|
|
2299
|
+
|
|
2300
|
+
if (envOverrides.length) {
|
|
2301
|
+
const baseEnvText = envText || renderServerEnvFile({
|
|
2302
|
+
port: config.serverPort,
|
|
2303
|
+
host: config.serverHost,
|
|
2304
|
+
dataDir: config.dataDir,
|
|
2305
|
+
filesDir: config.filesDir,
|
|
2306
|
+
dbDir: config.dbDir,
|
|
2307
|
+
uiDir: existingState?.uiWeb?.installed === true ? config.uiWebCurrentDir : '',
|
|
2308
|
+
serverBinDir: dirname(config.serverBinaryPath),
|
|
2309
|
+
arch: process.arch,
|
|
2310
|
+
platform: config.platform,
|
|
2311
|
+
});
|
|
2312
|
+
const nextEnvText = applyEnvOverridesToEnvText(baseEnvText, envOverrides);
|
|
2313
|
+
await mkdir(config.configDir, { recursive: true });
|
|
2314
|
+
await writeFile(config.configEnvPath, nextEnvText, 'utf-8');
|
|
2315
|
+
}
|
|
2316
|
+
|
|
2317
|
+
await writeSelfHostState(config, {
|
|
2318
|
+
channel,
|
|
2319
|
+
mode,
|
|
2320
|
+
autoUpdate: { enabled, intervalMinutes: nextIntervalMinutes, at: nextAt },
|
|
2321
|
+
});
|
|
2322
|
+
|
|
2323
|
+
let applyResult = null;
|
|
2324
|
+
if (wantsApply) {
|
|
2325
|
+
if (config.mode === 'system' && config.platform !== 'win32') {
|
|
2326
|
+
assertRoot();
|
|
2327
|
+
}
|
|
2328
|
+
if (enabled) {
|
|
2329
|
+
applyResult = await installAutoUpdateJob({
|
|
2330
|
+
config: { ...config, autoUpdateAt: nextAt },
|
|
2331
|
+
enabled: true,
|
|
2332
|
+
intervalMinutes: nextIntervalMinutes,
|
|
2333
|
+
at: nextAt,
|
|
2334
|
+
}).catch((e) => ({ installed: false, reason: String(e?.message ?? e) }));
|
|
2335
|
+
} else {
|
|
2336
|
+
applyResult = await uninstallAutoUpdateJob({ config }).catch((e) => ({ uninstalled: false, reason: String(e?.message ?? e) }));
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2340
|
+
const nextEnvText = existsSync(config.configEnvPath)
|
|
2341
|
+
? await readFile(config.configEnvPath, 'utf-8').catch(() => '')
|
|
2342
|
+
: '';
|
|
2343
|
+
const nextEnvObj = nextEnvText ? parseEnvText(nextEnvText) : {};
|
|
2344
|
+
|
|
2345
|
+
printResult({
|
|
2346
|
+
json,
|
|
2347
|
+
data: {
|
|
2348
|
+
ok: true,
|
|
2349
|
+
channel,
|
|
2350
|
+
mode,
|
|
2351
|
+
autoUpdate: { enabled, intervalMinutes: nextIntervalMinutes, at: nextAt || null },
|
|
2352
|
+
env: redactEnvForDisplay(nextEnvObj),
|
|
2353
|
+
applied: wantsApply,
|
|
2354
|
+
applyResult,
|
|
2355
|
+
},
|
|
2356
|
+
text: json
|
|
2357
|
+
? null
|
|
2358
|
+
: [
|
|
2359
|
+
`${green('✓')} self-host config updated`,
|
|
2360
|
+
`- auto-update: ${enabled ? (nextAt ? `daily at ${nextAt}` : `every ${nextIntervalMinutes}m`) : 'disabled'}`,
|
|
2361
|
+
`- apply: ${wantsApply ? green('yes') : dim('no')}`,
|
|
2362
|
+
].join('\n'),
|
|
2363
|
+
});
|
|
2364
|
+
return;
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
throw new Error(`[self-host] unknown config command: ${sub}`);
|
|
2368
|
+
}
|
|
2369
|
+
|
|
821
2370
|
export function usageText() {
|
|
822
2371
|
return [
|
|
823
2372
|
banner('self-host', { subtitle: 'Happier Self-Host guided installation flow.' }),
|
|
824
2373
|
'',
|
|
825
2374
|
sectionTitle('usage:'),
|
|
826
|
-
` ${cyan('hstack self-host')} install [--without-cli] [--channel=stable|preview] [--non-interactive] [--json]`,
|
|
827
|
-
` ${cyan('hstack self-host')} status [--channel=stable|preview] [--json]`,
|
|
828
|
-
` ${cyan('hstack self-host')} update [--channel=stable|preview] [--json]`,
|
|
829
|
-
` ${cyan('hstack self-host')} rollback [--to=<version>] [--channel=stable|preview] [--json]`,
|
|
830
|
-
` ${cyan('hstack self-host')} uninstall [--purge-data] [--yes] [--json]`,
|
|
2375
|
+
` ${cyan('hstack self-host')} install [--mode=user|system] [--without-cli] [--without-ui] [--channel=stable|preview] [--auto-update|--no-auto-update] [--auto-update-interval=<minutes>] [--auto-update-at=<HH:MM>] [--env KEY=VALUE]... [--non-interactive] [--json]`,
|
|
2376
|
+
` ${cyan('hstack self-host')} status [--mode=user|system] [--channel=stable|preview] [--json]`,
|
|
2377
|
+
` ${cyan('hstack self-host')} update [--mode=user|system] [--channel=stable|preview] [--json]`,
|
|
2378
|
+
` ${cyan('hstack self-host')} rollback [--mode=user|system] [--to=<version>] [--channel=stable|preview] [--json]`,
|
|
2379
|
+
` ${cyan('hstack self-host')} uninstall [--mode=user|system] [--purge-data] [--yes] [--json]`,
|
|
831
2380
|
` ${cyan('hstack self-host')} doctor [--json]`,
|
|
2381
|
+
` ${cyan('hstack self-host')} config view|set [--mode=user|system] [--channel=stable|preview] [--json]`,
|
|
832
2382
|
'',
|
|
833
2383
|
sectionTitle('notes:'),
|
|
834
2384
|
'- works without a repository checkout (binary-safe flow).',
|
|
@@ -841,13 +2391,19 @@ export async function runSelfHostCli(argv = process.argv.slice(2)) {
|
|
|
841
2391
|
const { flags, kv } = parseArgs(argv);
|
|
842
2392
|
const json = wantsJson(argv, { flags });
|
|
843
2393
|
const channel = normalizeChannel(String(kv.get('--channel') ?? process.env.HAPPIER_CHANNEL ?? 'stable'));
|
|
2394
|
+
const mode = normalizeMode(
|
|
2395
|
+
String(
|
|
2396
|
+
kv.get('--mode') ??
|
|
2397
|
+
(argv.includes('--system') ? 'system' : argv.includes('--user') ? 'user' : process.env.HAPPIER_SELF_HOST_MODE ?? 'user')
|
|
2398
|
+
)
|
|
2399
|
+
);
|
|
844
2400
|
|
|
845
2401
|
if (wantsHelp(argv, { flags }) || parsed.subcommand === 'help') {
|
|
846
2402
|
printResult({
|
|
847
2403
|
json,
|
|
848
2404
|
data: {
|
|
849
2405
|
ok: true,
|
|
850
|
-
commands: ['install', 'status', 'update', 'rollback', 'uninstall', 'doctor'],
|
|
2406
|
+
commands: ['install', 'status', 'update', 'rollback', 'uninstall', 'doctor', 'config'],
|
|
851
2407
|
},
|
|
852
2408
|
text: usageText(),
|
|
853
2409
|
});
|
|
@@ -855,27 +2411,31 @@ export async function runSelfHostCli(argv = process.argv.slice(2)) {
|
|
|
855
2411
|
}
|
|
856
2412
|
|
|
857
2413
|
if (parsed.subcommand === 'install') {
|
|
858
|
-
await cmdInstall({ channel, argv: parsed.rest, json });
|
|
2414
|
+
await cmdInstall({ channel, mode, argv: parsed.rest, json });
|
|
859
2415
|
return;
|
|
860
2416
|
}
|
|
861
2417
|
if (parsed.subcommand === 'status') {
|
|
862
|
-
await cmdStatus({ channel, json });
|
|
2418
|
+
await cmdStatus({ channel, mode, json });
|
|
863
2419
|
return;
|
|
864
2420
|
}
|
|
865
2421
|
if (parsed.subcommand === 'update') {
|
|
866
|
-
await cmdUpdate({ channel, json });
|
|
2422
|
+
await cmdUpdate({ channel, mode, json });
|
|
867
2423
|
return;
|
|
868
2424
|
}
|
|
869
2425
|
if (parsed.subcommand === 'rollback') {
|
|
870
|
-
await cmdRollback({ channel, argv: parsed.rest, json });
|
|
2426
|
+
await cmdRollback({ channel, mode, argv: parsed.rest, json });
|
|
871
2427
|
return;
|
|
872
2428
|
}
|
|
873
2429
|
if (parsed.subcommand === 'uninstall') {
|
|
874
|
-
await cmdUninstall({ channel, argv: parsed.rest, json });
|
|
2430
|
+
await cmdUninstall({ channel, mode, argv: parsed.rest, json });
|
|
875
2431
|
return;
|
|
876
2432
|
}
|
|
877
2433
|
if (parsed.subcommand === 'doctor' || parsed.subcommand === 'migrate-from-npm') {
|
|
878
|
-
await cmdDoctor({ channel, json });
|
|
2434
|
+
await cmdDoctor({ channel, mode, json });
|
|
2435
|
+
return;
|
|
2436
|
+
}
|
|
2437
|
+
if (parsed.subcommand === 'config') {
|
|
2438
|
+
await cmdConfig({ channel, mode, argv: parsed.rest, json });
|
|
879
2439
|
return;
|
|
880
2440
|
}
|
|
881
2441
|
|