pi-proactive 0.2.0-beta.2 → 0.2.0-beta.4
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/CHANGELOG.md +45 -0
- package/README.md +49 -28
- package/build/cli.mjs +185 -0
- package/build/extensions/proactive.js +231 -6
- package/build/src/assistant.js +572 -0
- package/build/src/commands.js +91 -2
- package/build/src/config.js +531 -4
- package/build/src/content.js +2 -0
- package/build/src/daemon-config.js +221 -0
- package/build/src/daemon-contact.js +103 -0
- package/build/src/daemon-host.js +86 -0
- package/build/src/daemon.js +195 -3
- package/build/src/dedupe.js +2 -0
- package/build/src/health.js +86 -0
- package/build/src/lineage.js +43 -2
- package/build/src/mailbox.js +2 -0
- package/build/src/notify.js +185 -0
- package/build/src/peer-spawn.js +2 -0
- package/build/src/peer.js +2 -0
- package/build/src/progress-eta.js +134 -0
- package/build/src/registry.js +2 -0
- package/build/src/socket.js +2 -0
- package/build/src/supervisor-state.js +355 -0
- package/build/src/supervisor-tui.js +85 -0
- package/build/src/supervisor-web.js +262 -0
- package/build/src/task-store.js +2 -0
- package/build/src/thread.js +2 -0
- package/build/src/trigger.js +43 -0
- package/build/src/trust-loop.js +321 -0
- package/build/src/trust-metrics.js +236 -0
- package/build/src/trust-notify.js +73 -0
- package/build/src/trust-policy.js +58 -0
- package/build/src/trust-registry.js +323 -0
- package/daemon/launchd.plist +48 -0
- package/daemon/pi-proactive-daemon.service +29 -0
- package/daemon/run-daemon.sh +84 -0
- package/package.json +12 -9
- package/skills/pi-proactive/SKILL.md +29 -24
- package/tools/cli.mjs +185 -0
- package/tools/daemon-install.sh +397 -0
- package/tools/daemon-uninstall.sh +226 -0
- package/node_modules/typebox/build/compile/code.d.mts +0 -12
- package/node_modules/typebox/build/compile/code.mjs +0 -64
- package/node_modules/typebox/build/compile/compile.d.mts +0 -6
- package/node_modules/typebox/build/compile/compile.mjs +0 -12
- package/node_modules/typebox/build/compile/index.d.mts +0 -8
- package/node_modules/typebox/build/compile/index.mjs +0 -14
- package/node_modules/typebox/build/compile/validator.d.mts +0 -35
- package/node_modules/typebox/build/compile/validator.mjs +0 -95
- package/node_modules/typebox/build/error/errors.d.mts +0 -208
- package/node_modules/typebox/build/error/errors.mjs +0 -18
- package/node_modules/typebox/build/error/index.d.mts +0 -1
- package/node_modules/typebox/build/error/index.mjs +0 -1
- package/node_modules/typebox/build/format/_registry.d.mts +0 -15
- package/node_modules/typebox/build/format/_registry.mjs +0 -96
- package/node_modules/typebox/build/format/date.d.mts +0 -6
- package/node_modules/typebox/build/format/date.mjs +0 -19
- package/node_modules/typebox/build/format/date_time.d.mts +0 -7
- package/node_modules/typebox/build/format/date_time.mjs +0 -20
- package/node_modules/typebox/build/format/duration.d.mts +0 -5
- package/node_modules/typebox/build/format/duration.mjs +0 -8
- package/node_modules/typebox/build/format/email.d.mts +0 -5
- package/node_modules/typebox/build/format/email.mjs +0 -8
- package/node_modules/typebox/build/format/format.d.mts +0 -22
- package/node_modules/typebox/build/format/format.mjs +0 -22
- package/node_modules/typebox/build/format/hostname.d.mts +0 -7
- package/node_modules/typebox/build/format/hostname.mjs +0 -10
- package/node_modules/typebox/build/format/idn_email.d.mts +0 -6
- package/node_modules/typebox/build/format/idn_email.mjs +0 -9
- package/node_modules/typebox/build/format/idn_hostname.d.mts +0 -8
- package/node_modules/typebox/build/format/idn_hostname.mjs +0 -11
- package/node_modules/typebox/build/format/idna/format/bidi.d.mts +0 -3
- package/node_modules/typebox/build/format/idna/format/bidi.mjs +0 -98
- package/node_modules/typebox/build/format/idna/format/puny.d.mts +0 -3
- package/node_modules/typebox/build/format/idna/format/puny.mjs +0 -144
- package/node_modules/typebox/build/format/idna/hostname.d.mts +0 -1
- package/node_modules/typebox/build/format/idna/hostname.mjs +0 -16
- package/node_modules/typebox/build/format/idna/idn-hostname.d.mts +0 -1
- package/node_modules/typebox/build/format/idna/idn-hostname.mjs +0 -43
- package/node_modules/typebox/build/format/idna/index.d.mts +0 -2
- package/node_modules/typebox/build/format/idna/index.mjs +0 -2
- package/node_modules/typebox/build/format/idna/label/ascii.d.mts +0 -1
- package/node_modules/typebox/build/format/idna/label/ascii.mjs +0 -9
- package/node_modules/typebox/build/format/idna/label/puny.d.mts +0 -1
- package/node_modules/typebox/build/format/idna/label/puny.mjs +0 -28
- package/node_modules/typebox/build/format/idna/label/unicode.d.mts +0 -1
- package/node_modules/typebox/build/format/idna/label/unicode.mjs +0 -106
- package/node_modules/typebox/build/format/idna/pattern/pattern.d.mts +0 -30
- package/node_modules/typebox/build/format/idna/pattern/pattern.mjs +0 -70
- package/node_modules/typebox/build/format/index.d.mts +0 -4
- package/node_modules/typebox/build/format/index.mjs +0 -4
- package/node_modules/typebox/build/format/ipv4.d.mts +0 -5
- package/node_modules/typebox/build/format/ipv4.mjs +0 -8
- package/node_modules/typebox/build/format/ipv6.d.mts +0 -5
- package/node_modules/typebox/build/format/ipv6.mjs +0 -8
- package/node_modules/typebox/build/format/iri.d.mts +0 -5
- package/node_modules/typebox/build/format/iri.mjs +0 -42
- package/node_modules/typebox/build/format/iri_reference.d.mts +0 -5
- package/node_modules/typebox/build/format/iri_reference.mjs +0 -14
- package/node_modules/typebox/build/format/json_pointer.d.mts +0 -6
- package/node_modules/typebox/build/format/json_pointer.mjs +0 -9
- package/node_modules/typebox/build/format/json_pointer_uri_fragment.d.mts +0 -6
- package/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +0 -9
- package/node_modules/typebox/build/format/regex.d.mts +0 -5
- package/node_modules/typebox/build/format/regex.mjs +0 -13
- package/node_modules/typebox/build/format/relative_json_pointer.d.mts +0 -6
- package/node_modules/typebox/build/format/relative_json_pointer.mjs +0 -9
- package/node_modules/typebox/build/format/time.d.mts +0 -5
- package/node_modules/typebox/build/format/time.mjs +0 -32
- package/node_modules/typebox/build/format/uri.d.mts +0 -5
- package/node_modules/typebox/build/format/uri.mjs +0 -8
- package/node_modules/typebox/build/format/uri_reference.d.mts +0 -5
- package/node_modules/typebox/build/format/uri_reference.mjs +0 -8
- package/node_modules/typebox/build/format/uri_template.d.mts +0 -5
- package/node_modules/typebox/build/format/uri_template.mjs +0 -9
- package/node_modules/typebox/build/format/url.d.mts +0 -6
- package/node_modules/typebox/build/format/url.mjs +0 -8
- package/node_modules/typebox/build/format/uuid.d.mts +0 -6
- package/node_modules/typebox/build/format/uuid.mjs +0 -9
- package/node_modules/typebox/build/guard/emit.d.mts +0 -56
- package/node_modules/typebox/build/guard/emit.mjs +0 -191
- package/node_modules/typebox/build/guard/globals.d.mts +0 -35
- package/node_modules/typebox/build/guard/globals.mjs +0 -90
- package/node_modules/typebox/build/guard/guard.d.mts +0 -73
- package/node_modules/typebox/build/guard/guard.mjs +0 -226
- package/node_modules/typebox/build/guard/index.d.mts +0 -6
- package/node_modules/typebox/build/guard/index.mjs +0 -12
- package/node_modules/typebox/build/guard/native.d.mts +0 -20
- package/node_modules/typebox/build/guard/native.mjs +0 -60
- package/node_modules/typebox/build/guard/unicode/unicode.d.mts +0 -6
- package/node_modules/typebox/build/guard/unicode/unicode.mjs +0 -35
- package/node_modules/typebox/build/guard/unicode/unicode_segment.d.mts +0 -6
- package/node_modules/typebox/build/guard/unicode/unicode_segment.mjs +0 -165
- package/node_modules/typebox/build/index.d.mts +0 -8
- package/node_modules/typebox/build/index.mjs +0 -14
- package/node_modules/typebox/build/schema/build.d.mts +0 -39
- package/node_modules/typebox/build/schema/build.mjs +0 -118
- package/node_modules/typebox/build/schema/check.d.mts +0 -6
- package/node_modules/typebox/build/schema/check.mjs +0 -14
- package/node_modules/typebox/build/schema/compile.d.mts +0 -23
- package/node_modules/typebox/build/schema/compile.mjs +0 -46
- package/node_modules/typebox/build/schema/engine/_context.d.mts +0 -34
- package/node_modules/typebox/build/schema/engine/_context.mjs +0 -137
- package/node_modules/typebox/build/schema/engine/_exact_optional.d.mts +0 -3
- package/node_modules/typebox/build/schema/engine/_exact_optional.mjs +0 -20
- package/node_modules/typebox/build/schema/engine/_externals.d.mts +0 -7
- package/node_modules/typebox/build/schema/engine/_externals.mjs +0 -25
- package/node_modules/typebox/build/schema/engine/_functions.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/_functions.mjs +0 -65
- package/node_modules/typebox/build/schema/engine/_pathing.d.mts +0 -1
- package/node_modules/typebox/build/schema/engine/_pathing.mjs +0 -11
- package/node_modules/typebox/build/schema/engine/_reducer.d.mts +0 -4
- package/node_modules/typebox/build/schema/engine/_reducer.mjs +0 -45
- package/node_modules/typebox/build/schema/engine/_refine.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/_refine.mjs +0 -34
- package/node_modules/typebox/build/schema/engine/_regexp.d.mts +0 -2
- package/node_modules/typebox/build/schema/engine/_regexp.mjs +0 -4
- package/node_modules/typebox/build/schema/engine/_stack.d.mts +0 -36
- package/node_modules/typebox/build/schema/engine/_stack.mjs +0 -150
- package/node_modules/typebox/build/schema/engine/_unique.d.mts +0 -4
- package/node_modules/typebox/build/schema/engine/_unique.mjs +0 -9
- package/node_modules/typebox/build/schema/engine/additionalItems.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/additionalItems.mjs +0 -60
- package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +0 -118
- package/node_modules/typebox/build/schema/engine/allOf.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/allOf.mjs +0 -47
- package/node_modules/typebox/build/schema/engine/anyOf.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/anyOf.mjs +0 -47
- package/node_modules/typebox/build/schema/engine/boolean.d.mts +0 -5
- package/node_modules/typebox/build/schema/engine/boolean.mjs +0 -21
- package/node_modules/typebox/build/schema/engine/const.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/const.mjs +0 -26
- package/node_modules/typebox/build/schema/engine/contains.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/contains.mjs +0 -50
- package/node_modules/typebox/build/schema/engine/dependencies.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/dependencies.mjs +0 -43
- package/node_modules/typebox/build/schema/engine/dependentRequired.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/dependentRequired.mjs +0 -36
- package/node_modules/typebox/build/schema/engine/dependentSchemas.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +0 -39
- package/node_modules/typebox/build/schema/engine/dynamicRef.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +0 -29
- package/node_modules/typebox/build/schema/engine/enum.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/enum.mjs +0 -29
- package/node_modules/typebox/build/schema/engine/exclusiveMaximum.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +0 -21
- package/node_modules/typebox/build/schema/engine/exclusiveMinimum.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +0 -21
- package/node_modules/typebox/build/schema/engine/format.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/format.mjs +0 -29
- package/node_modules/typebox/build/schema/engine/if.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/if.mjs +0 -39
- package/node_modules/typebox/build/schema/engine/index.d.mts +0 -49
- package/node_modules/typebox/build/schema/engine/index.mjs +0 -55
- package/node_modules/typebox/build/schema/engine/items.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/items.mjs +0 -91
- package/node_modules/typebox/build/schema/engine/maxContains.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/maxContains.mjs +0 -38
- package/node_modules/typebox/build/schema/engine/maxItems.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/maxItems.mjs +0 -21
- package/node_modules/typebox/build/schema/engine/maxLength.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/maxLength.mjs +0 -21
- package/node_modules/typebox/build/schema/engine/maxProperties.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/maxProperties.mjs +0 -21
- package/node_modules/typebox/build/schema/engine/maximum.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/maximum.mjs +0 -21
- package/node_modules/typebox/build/schema/engine/minContains.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/minContains.mjs +0 -47
- package/node_modules/typebox/build/schema/engine/minItems.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/minItems.mjs +0 -21
- package/node_modules/typebox/build/schema/engine/minLength.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/minLength.mjs +0 -21
- package/node_modules/typebox/build/schema/engine/minProperties.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/minProperties.mjs +0 -21
- package/node_modules/typebox/build/schema/engine/minimum.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/minimum.mjs +0 -21
- package/node_modules/typebox/build/schema/engine/multipleOf.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/multipleOf.mjs +0 -21
- package/node_modules/typebox/build/schema/engine/not.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/not.mjs +0 -35
- package/node_modules/typebox/build/schema/engine/oneOf.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/oneOf.mjs +0 -54
- package/node_modules/typebox/build/schema/engine/pattern.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/pattern.mjs +0 -25
- package/node_modules/typebox/build/schema/engine/patternProperties.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/patternProperties.mjs +0 -46
- package/node_modules/typebox/build/schema/engine/prefixItems.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/prefixItems.mjs +0 -35
- package/node_modules/typebox/build/schema/engine/properties.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/properties.mjs +0 -76
- package/node_modules/typebox/build/schema/engine/propertyNames.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/propertyNames.mjs +0 -34
- package/node_modules/typebox/build/schema/engine/recursiveRef.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +0 -29
- package/node_modules/typebox/build/schema/engine/ref.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/ref.mjs +0 -56
- package/node_modules/typebox/build/schema/engine/required.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/required.mjs +0 -28
- package/node_modules/typebox/build/schema/engine/schema.d.mts +0 -9
- package/node_modules/typebox/build/schema/engine/schema.mjs +0 -360
- package/node_modules/typebox/build/schema/engine/type.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/type.mjs +0 -66
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +0 -47
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +0 -47
- package/node_modules/typebox/build/schema/engine/uniqueItems.d.mts +0 -6
- package/node_modules/typebox/build/schema/engine/uniqueItems.mjs +0 -47
- package/node_modules/typebox/build/schema/errors.d.mts +0 -6
- package/node_modules/typebox/build/schema/errors.mjs +0 -18
- package/node_modules/typebox/build/schema/index.d.mts +0 -3
- package/node_modules/typebox/build/schema/index.mjs +0 -9
- package/node_modules/typebox/build/schema/intern/index.d.mts +0 -1
- package/node_modules/typebox/build/schema/intern/index.mjs +0 -1
- package/node_modules/typebox/build/schema/intern/intern.d.mts +0 -11
- package/node_modules/typebox/build/schema/intern/intern.mjs +0 -293
- package/node_modules/typebox/build/schema/meta/draft_2019_09.d.mts +0 -2
- package/node_modules/typebox/build/schema/meta/draft_2019_09.mjs +0 -288
- package/node_modules/typebox/build/schema/meta/draft_2020_12.d.mts +0 -2
- package/node_modules/typebox/build/schema/meta/draft_2020_12.mjs +0 -300
- package/node_modules/typebox/build/schema/meta/draft_3.d.mts +0 -2
- package/node_modules/typebox/build/schema/meta/draft_3.mjs +0 -143
- package/node_modules/typebox/build/schema/meta/draft_4.d.mts +0 -2
- package/node_modules/typebox/build/schema/meta/draft_4.mjs +0 -149
- package/node_modules/typebox/build/schema/meta/draft_6.d.mts +0 -2
- package/node_modules/typebox/build/schema/meta/draft_6.mjs +0 -155
- package/node_modules/typebox/build/schema/meta/draft_7.d.mts +0 -2
- package/node_modules/typebox/build/schema/meta/draft_7.mjs +0 -172
- package/node_modules/typebox/build/schema/meta/index.d.mts +0 -2
- package/node_modules/typebox/build/schema/meta/index.mjs +0 -2
- package/node_modules/typebox/build/schema/meta/meta.d.mts +0 -9
- package/node_modules/typebox/build/schema/meta/meta.mjs +0 -15
- package/node_modules/typebox/build/schema/meta/schema.d.mts +0 -6
- package/node_modules/typebox/build/schema/meta/schema.mjs +0 -1
- package/node_modules/typebox/build/schema/parse.d.mts +0 -14
- package/node_modules/typebox/build/schema/parse.mjs +0 -35
- package/node_modules/typebox/build/schema/pointer/index.d.mts +0 -2
- package/node_modules/typebox/build/schema/pointer/index.mjs +0 -2
- package/node_modules/typebox/build/schema/pointer/pointer.d.mts +0 -5
- package/node_modules/typebox/build/schema/pointer/pointer.mjs +0 -89
- package/node_modules/typebox/build/schema/pointer/pointer_get.d.mts +0 -9
- package/node_modules/typebox/build/schema/pointer/pointer_get.mjs +0 -2
- package/node_modules/typebox/build/schema/resolve/index.d.mts +0 -1
- package/node_modules/typebox/build/schema/resolve/index.mjs +0 -1
- package/node_modules/typebox/build/schema/resolve/resolve.d.mts +0 -9
- package/node_modules/typebox/build/schema/resolve/resolve.mjs +0 -331
- package/node_modules/typebox/build/schema/schema.d.mts +0 -12
- package/node_modules/typebox/build/schema/schema.mjs +0 -12
- package/node_modules/typebox/build/schema/static/_canonical.d.mts +0 -7
- package/node_modules/typebox/build/schema/static/_canonical.mjs +0 -2
- package/node_modules/typebox/build/schema/static/_comparer.d.mts +0 -6
- package/node_modules/typebox/build/schema/static/_comparer.mjs +0 -2
- package/node_modules/typebox/build/schema/static/_elements.d.mts +0 -18
- package/node_modules/typebox/build/schema/static/_elements.mjs +0 -2
- package/node_modules/typebox/build/schema/static/additionalProperties.d.mts +0 -7
- package/node_modules/typebox/build/schema/static/additionalProperties.mjs +0 -3
- package/node_modules/typebox/build/schema/static/allOf.d.mts +0 -3
- package/node_modules/typebox/build/schema/static/allOf.mjs +0 -2
- package/node_modules/typebox/build/schema/static/anyOf.d.mts +0 -3
- package/node_modules/typebox/build/schema/static/anyOf.mjs +0 -2
- package/node_modules/typebox/build/schema/static/const.d.mts +0 -1
- package/node_modules/typebox/build/schema/static/const.mjs +0 -2
- package/node_modules/typebox/build/schema/static/enum.d.mts +0 -1
- package/node_modules/typebox/build/schema/static/enum.mjs +0 -2
- package/node_modules/typebox/build/schema/static/if.d.mts +0 -15
- package/node_modules/typebox/build/schema/static/if.mjs +0 -2
- package/node_modules/typebox/build/schema/static/index.d.mts +0 -1
- package/node_modules/typebox/build/schema/static/index.mjs +0 -1
- package/node_modules/typebox/build/schema/static/items.d.mts +0 -7
- package/node_modules/typebox/build/schema/static/items.mjs +0 -2
- package/node_modules/typebox/build/schema/static/oneOf.d.mts +0 -3
- package/node_modules/typebox/build/schema/static/oneOf.mjs +0 -2
- package/node_modules/typebox/build/schema/static/patternProperties.d.mts +0 -7
- package/node_modules/typebox/build/schema/static/patternProperties.mjs +0 -2
- package/node_modules/typebox/build/schema/static/prefixItems.d.mts +0 -3
- package/node_modules/typebox/build/schema/static/prefixItems.mjs +0 -2
- package/node_modules/typebox/build/schema/static/properties.d.mts +0 -32
- package/node_modules/typebox/build/schema/static/properties.mjs +0 -2
- package/node_modules/typebox/build/schema/static/propertyNames.d.mts +0 -5
- package/node_modules/typebox/build/schema/static/propertyNames.mjs +0 -3
- package/node_modules/typebox/build/schema/static/ref.d.mts +0 -8
- package/node_modules/typebox/build/schema/static/ref.mjs +0 -3
- package/node_modules/typebox/build/schema/static/required.d.mts +0 -3
- package/node_modules/typebox/build/schema/static/required.mjs +0 -3
- package/node_modules/typebox/build/schema/static/schema.d.mts +0 -59
- package/node_modules/typebox/build/schema/static/schema.mjs +0 -2
- package/node_modules/typebox/build/schema/static/static.d.mts +0 -4
- package/node_modules/typebox/build/schema/static/static.mjs +0 -3
- package/node_modules/typebox/build/schema/static/type.d.mts +0 -4
- package/node_modules/typebox/build/schema/static/type.mjs +0 -3
- package/node_modules/typebox/build/schema/static/unevaluatedProperties.d.mts +0 -7
- package/node_modules/typebox/build/schema/static/unevaluatedProperties.mjs +0 -3
- package/node_modules/typebox/build/schema/types/_refine.d.mts +0 -13
- package/node_modules/typebox/build/schema/types/_refine.mjs +0 -18
- package/node_modules/typebox/build/schema/types/additionalItems.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/additionalItems.mjs +0 -14
- package/node_modules/typebox/build/schema/types/additionalProperties.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/additionalProperties.mjs +0 -14
- package/node_modules/typebox/build/schema/types/allOf.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/allOf.mjs +0 -15
- package/node_modules/typebox/build/schema/types/anchor.d.mts +0 -8
- package/node_modules/typebox/build/schema/types/anchor.mjs +0 -12
- package/node_modules/typebox/build/schema/types/anyOf.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/anyOf.mjs +0 -15
- package/node_modules/typebox/build/schema/types/const.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/const.mjs +0 -12
- package/node_modules/typebox/build/schema/types/contains.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/contains.mjs +0 -14
- package/node_modules/typebox/build/schema/types/default.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/default.mjs +0 -12
- package/node_modules/typebox/build/schema/types/defs.d.mts +0 -6
- package/node_modules/typebox/build/schema/types/defs.mjs +0 -12
- package/node_modules/typebox/build/schema/types/dependencies.d.mts +0 -11
- package/node_modules/typebox/build/schema/types/dependencies.mjs +0 -16
- package/node_modules/typebox/build/schema/types/dependentRequired.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/dependentRequired.mjs +0 -15
- package/node_modules/typebox/build/schema/types/dependentSchemas.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/dependentSchemas.mjs +0 -15
- package/node_modules/typebox/build/schema/types/dynamicAnchor.d.mts +0 -8
- package/node_modules/typebox/build/schema/types/dynamicAnchor.mjs +0 -12
- package/node_modules/typebox/build/schema/types/dynamicRef.d.mts +0 -8
- package/node_modules/typebox/build/schema/types/dynamicRef.mjs +0 -12
- package/node_modules/typebox/build/schema/types/else.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/else.mjs +0 -14
- package/node_modules/typebox/build/schema/types/enum.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/enum.mjs +0 -13
- package/node_modules/typebox/build/schema/types/exclusiveMaximum.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs +0 -13
- package/node_modules/typebox/build/schema/types/exclusiveMinimum.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs +0 -13
- package/node_modules/typebox/build/schema/types/format.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/format.mjs +0 -13
- package/node_modules/typebox/build/schema/types/id.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/id.mjs +0 -13
- package/node_modules/typebox/build/schema/types/if.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/if.mjs +0 -14
- package/node_modules/typebox/build/schema/types/index.d.mts +0 -51
- package/node_modules/typebox/build/schema/types/index.mjs +0 -57
- package/node_modules/typebox/build/schema/types/items.d.mts +0 -19
- package/node_modules/typebox/build/schema/types/items.mjs +0 -26
- package/node_modules/typebox/build/schema/types/maxContains.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/maxContains.mjs +0 -13
- package/node_modules/typebox/build/schema/types/maxItems.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/maxItems.mjs +0 -13
- package/node_modules/typebox/build/schema/types/maxLength.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/maxLength.mjs +0 -13
- package/node_modules/typebox/build/schema/types/maxProperties.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/maxProperties.mjs +0 -13
- package/node_modules/typebox/build/schema/types/maximum.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/maximum.mjs +0 -13
- package/node_modules/typebox/build/schema/types/minContains.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/minContains.mjs +0 -13
- package/node_modules/typebox/build/schema/types/minItems.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/minItems.mjs +0 -13
- package/node_modules/typebox/build/schema/types/minLength.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/minLength.mjs +0 -13
- package/node_modules/typebox/build/schema/types/minProperties.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/minProperties.mjs +0 -13
- package/node_modules/typebox/build/schema/types/minimum.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/minimum.mjs +0 -13
- package/node_modules/typebox/build/schema/types/multipleOf.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/multipleOf.mjs +0 -13
- package/node_modules/typebox/build/schema/types/not.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/not.mjs +0 -14
- package/node_modules/typebox/build/schema/types/oneOf.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/oneOf.mjs +0 -15
- package/node_modules/typebox/build/schema/types/pattern.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/pattern.mjs +0 -14
- package/node_modules/typebox/build/schema/types/patternProperties.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/patternProperties.mjs +0 -15
- package/node_modules/typebox/build/schema/types/prefixItems.d.mts +0 -8
- package/node_modules/typebox/build/schema/types/prefixItems.mjs +0 -14
- package/node_modules/typebox/build/schema/types/properties.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/properties.mjs +0 -15
- package/node_modules/typebox/build/schema/types/propertyNames.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/propertyNames.mjs +0 -15
- package/node_modules/typebox/build/schema/types/recursiveAnchor.d.mts +0 -12
- package/node_modules/typebox/build/schema/types/recursiveAnchor.mjs +0 -19
- package/node_modules/typebox/build/schema/types/recursiveRef.d.mts +0 -8
- package/node_modules/typebox/build/schema/types/recursiveRef.mjs +0 -12
- package/node_modules/typebox/build/schema/types/ref.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/ref.mjs +0 -13
- package/node_modules/typebox/build/schema/types/required.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/required.mjs +0 -14
- package/node_modules/typebox/build/schema/types/schema.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/schema.mjs +0 -14
- package/node_modules/typebox/build/schema/types/then.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/then.mjs +0 -14
- package/node_modules/typebox/build/schema/types/type.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/type.mjs +0 -15
- package/node_modules/typebox/build/schema/types/unevaluatedItems.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/unevaluatedItems.mjs +0 -14
- package/node_modules/typebox/build/schema/types/unevaluatedProperties.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs +0 -14
- package/node_modules/typebox/build/schema/types/uniqueItems.d.mts +0 -9
- package/node_modules/typebox/build/schema/types/uniqueItems.mjs +0 -13
- package/node_modules/typebox/build/system/arguments/arguments.d.mts +0 -5
- package/node_modules/typebox/build/system/arguments/arguments.mjs +0 -9
- package/node_modules/typebox/build/system/arguments/index.d.mts +0 -1
- package/node_modules/typebox/build/system/arguments/index.mjs +0 -1
- package/node_modules/typebox/build/system/environment/environment.d.mts +0 -1
- package/node_modules/typebox/build/system/environment/environment.mjs +0 -1
- package/node_modules/typebox/build/system/environment/evaluate.d.mts +0 -9
- package/node_modules/typebox/build/system/environment/evaluate.mjs +0 -37
- package/node_modules/typebox/build/system/environment/index.d.mts +0 -1
- package/node_modules/typebox/build/system/environment/index.mjs +0 -1
- package/node_modules/typebox/build/system/hashing/hash.d.mts +0 -4
- package/node_modules/typebox/build/system/hashing/hash.mjs +0 -261
- package/node_modules/typebox/build/system/hashing/index.d.mts +0 -1
- package/node_modules/typebox/build/system/hashing/index.mjs +0 -1
- package/node_modules/typebox/build/system/index.d.mts +0 -4
- package/node_modules/typebox/build/system/index.mjs +0 -4
- package/node_modules/typebox/build/system/locale/_config.d.mts +0 -7
- package/node_modules/typebox/build/system/locale/_config.mjs +0 -15
- package/node_modules/typebox/build/system/locale/_locale.d.mts +0 -40
- package/node_modules/typebox/build/system/locale/_locale.mjs +0 -40
- package/node_modules/typebox/build/system/locale/ar_001.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/ar_001.mjs +0 -40
- package/node_modules/typebox/build/system/locale/bn_BD.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/bn_BD.mjs +0 -40
- package/node_modules/typebox/build/system/locale/cs_CZ.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/cs_CZ.mjs +0 -40
- package/node_modules/typebox/build/system/locale/de_DE.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/de_DE.mjs +0 -40
- package/node_modules/typebox/build/system/locale/el_GR.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/el_GR.mjs +0 -40
- package/node_modules/typebox/build/system/locale/en_US.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/en_US.mjs +0 -40
- package/node_modules/typebox/build/system/locale/es_419.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/es_419.mjs +0 -40
- package/node_modules/typebox/build/system/locale/es_AR.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/es_AR.mjs +0 -40
- package/node_modules/typebox/build/system/locale/es_ES.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/es_ES.mjs +0 -40
- package/node_modules/typebox/build/system/locale/es_MX.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/es_MX.mjs +0 -40
- package/node_modules/typebox/build/system/locale/fa_IR.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/fa_IR.mjs +0 -40
- package/node_modules/typebox/build/system/locale/fil_PH.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/fil_PH.mjs +0 -40
- package/node_modules/typebox/build/system/locale/fr_CA.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/fr_CA.mjs +0 -40
- package/node_modules/typebox/build/system/locale/fr_FR.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/fr_FR.mjs +0 -40
- package/node_modules/typebox/build/system/locale/ha_NG.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/ha_NG.mjs +0 -40
- package/node_modules/typebox/build/system/locale/hi_IN.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/hi_IN.mjs +0 -40
- package/node_modules/typebox/build/system/locale/hu_HU.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/hu_HU.mjs +0 -40
- package/node_modules/typebox/build/system/locale/id_ID.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/id_ID.mjs +0 -40
- package/node_modules/typebox/build/system/locale/index.d.mts +0 -1
- package/node_modules/typebox/build/system/locale/index.mjs +0 -1
- package/node_modules/typebox/build/system/locale/it_IT.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/it_IT.mjs +0 -40
- package/node_modules/typebox/build/system/locale/ja_JP.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/ja_JP.mjs +0 -40
- package/node_modules/typebox/build/system/locale/ko_KR.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/ko_KR.mjs +0 -40
- package/node_modules/typebox/build/system/locale/ms_MY.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/ms_MY.mjs +0 -40
- package/node_modules/typebox/build/system/locale/nl_NL.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/nl_NL.mjs +0 -40
- package/node_modules/typebox/build/system/locale/pl_PL.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/pl_PL.mjs +0 -40
- package/node_modules/typebox/build/system/locale/pt_BR.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/pt_BR.mjs +0 -40
- package/node_modules/typebox/build/system/locale/pt_PT.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/pt_PT.mjs +0 -40
- package/node_modules/typebox/build/system/locale/ro_RO.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/ro_RO.mjs +0 -40
- package/node_modules/typebox/build/system/locale/ru_RU.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/ru_RU.mjs +0 -40
- package/node_modules/typebox/build/system/locale/sv_SE.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/sv_SE.mjs +0 -40
- package/node_modules/typebox/build/system/locale/sw_TZ.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/sw_TZ.mjs +0 -40
- package/node_modules/typebox/build/system/locale/th_TH.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/th_TH.mjs +0 -40
- package/node_modules/typebox/build/system/locale/tr_TR.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/tr_TR.mjs +0 -40
- package/node_modules/typebox/build/system/locale/uk_UA.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/uk_UA.mjs +0 -40
- package/node_modules/typebox/build/system/locale/ur_PK.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/ur_PK.mjs +0 -40
- package/node_modules/typebox/build/system/locale/vi_VN.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/vi_VN.mjs +0 -40
- package/node_modules/typebox/build/system/locale/yo_NG.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/yo_NG.mjs +0 -40
- package/node_modules/typebox/build/system/locale/zh_Hans.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/zh_Hans.mjs +0 -40
- package/node_modules/typebox/build/system/locale/zh_Hant.d.mts +0 -3
- package/node_modules/typebox/build/system/locale/zh_Hant.mjs +0 -40
- package/node_modules/typebox/build/system/memory/assign.d.mts +0 -8
- package/node_modules/typebox/build/system/memory/assign.mjs +0 -19
- package/node_modules/typebox/build/system/memory/clone.d.mts +0 -4
- package/node_modules/typebox/build/system/memory/clone.mjs +0 -25
- package/node_modules/typebox/build/system/memory/create.d.mts +0 -4
- package/node_modules/typebox/build/system/memory/create.mjs +0 -34
- package/node_modules/typebox/build/system/memory/deep.d.mts +0 -2
- package/node_modules/typebox/build/system/memory/deep.mjs +0 -108
- package/node_modules/typebox/build/system/memory/discard.d.mts +0 -4
- package/node_modules/typebox/build/system/memory/discard.mjs +0 -19
- package/node_modules/typebox/build/system/memory/finalize.d.mts +0 -4
- package/node_modules/typebox/build/system/memory/finalize.mjs +0 -30
- package/node_modules/typebox/build/system/memory/index.d.mts +0 -1
- package/node_modules/typebox/build/system/memory/index.mjs +0 -1
- package/node_modules/typebox/build/system/memory/keys.d.mts +0 -2
- package/node_modules/typebox/build/system/memory/keys.mjs +0 -8
- package/node_modules/typebox/build/system/memory/memory.d.mts +0 -6
- package/node_modules/typebox/build/system/memory/memory.mjs +0 -7
- package/node_modules/typebox/build/system/memory/metrics.d.mts +0 -14
- package/node_modules/typebox/build/system/memory/metrics.mjs +0 -8
- package/node_modules/typebox/build/system/memory/update.d.mts +0 -4
- package/node_modules/typebox/build/system/memory/update.mjs +0 -60
- package/node_modules/typebox/build/system/settings/index.d.mts +0 -1
- package/node_modules/typebox/build/system/settings/index.mjs +0 -1
- package/node_modules/typebox/build/system/settings/internal.d.mts +0 -2
- package/node_modules/typebox/build/system/settings/internal.mjs +0 -20
- package/node_modules/typebox/build/system/settings/settings.d.mts +0 -91
- package/node_modules/typebox/build/system/settings/settings.mjs +0 -50
- package/node_modules/typebox/build/system/system.d.mts +0 -6
- package/node_modules/typebox/build/system/system.mjs +0 -6
- package/node_modules/typebox/build/system/unreachable/index.d.mts +0 -1
- package/node_modules/typebox/build/system/unreachable/index.mjs +0 -1
- package/node_modules/typebox/build/system/unreachable/unreachable.d.mts +0 -3
- package/node_modules/typebox/build/system/unreachable/unreachable.mjs +0 -6
- package/node_modules/typebox/build/type/action/_add_immutable.d.mts +0 -11
- package/node_modules/typebox/build/type/action/_add_immutable.mjs +0 -11
- package/node_modules/typebox/build/type/action/_add_optional.d.mts +0 -11
- package/node_modules/typebox/build/type/action/_add_optional.mjs +0 -11
- package/node_modules/typebox/build/type/action/_add_readonly.d.mts +0 -11
- package/node_modules/typebox/build/type/action/_add_readonly.mjs +0 -11
- package/node_modules/typebox/build/type/action/_remove_immutable.d.mts +0 -11
- package/node_modules/typebox/build/type/action/_remove_immutable.mjs +0 -11
- package/node_modules/typebox/build/type/action/_remove_optional.d.mts +0 -11
- package/node_modules/typebox/build/type/action/_remove_optional.mjs +0 -11
- package/node_modules/typebox/build/type/action/_remove_readonly.d.mts +0 -11
- package/node_modules/typebox/build/type/action/_remove_readonly.mjs +0 -11
- package/node_modules/typebox/build/type/action/capitalize.d.mts +0 -11
- package/node_modules/typebox/build/type/action/capitalize.mjs +0 -11
- package/node_modules/typebox/build/type/action/conditional.d.mts +0 -12
- package/node_modules/typebox/build/type/action/conditional.mjs +0 -13
- package/node_modules/typebox/build/type/action/constructor_parameters.d.mts +0 -11
- package/node_modules/typebox/build/type/action/constructor_parameters.mjs +0 -11
- package/node_modules/typebox/build/type/action/evaluate.d.mts +0 -11
- package/node_modules/typebox/build/type/action/evaluate.mjs +0 -11
- package/node_modules/typebox/build/type/action/exclude.d.mts +0 -11
- package/node_modules/typebox/build/type/action/exclude.mjs +0 -11
- package/node_modules/typebox/build/type/action/extract.d.mts +0 -11
- package/node_modules/typebox/build/type/action/extract.mjs +0 -11
- package/node_modules/typebox/build/type/action/index.d.mts +0 -30
- package/node_modules/typebox/build/type/action/index.mjs +0 -30
- package/node_modules/typebox/build/type/action/indexed.d.mts +0 -14
- package/node_modules/typebox/build/type/action/indexed.mjs +0 -14
- package/node_modules/typebox/build/type/action/instance_type.d.mts +0 -11
- package/node_modules/typebox/build/type/action/instance_type.mjs +0 -11
- package/node_modules/typebox/build/type/action/interface.d.mts +0 -14
- package/node_modules/typebox/build/type/action/interface.mjs +0 -22
- package/node_modules/typebox/build/type/action/keyof.d.mts +0 -11
- package/node_modules/typebox/build/type/action/keyof.mjs +0 -11
- package/node_modules/typebox/build/type/action/lowercase.d.mts +0 -11
- package/node_modules/typebox/build/type/action/lowercase.mjs +0 -11
- package/node_modules/typebox/build/type/action/mapped.d.mts +0 -13
- package/node_modules/typebox/build/type/action/mapped.mjs +0 -13
- package/node_modules/typebox/build/type/action/module.d.mts +0 -13
- package/node_modules/typebox/build/type/action/module.mjs +0 -13
- package/node_modules/typebox/build/type/action/non_nullable.d.mts +0 -11
- package/node_modules/typebox/build/type/action/non_nullable.mjs +0 -11
- package/node_modules/typebox/build/type/action/omit.d.mts +0 -14
- package/node_modules/typebox/build/type/action/omit.mjs +0 -14
- package/node_modules/typebox/build/type/action/parameters.d.mts +0 -11
- package/node_modules/typebox/build/type/action/parameters.mjs +0 -11
- package/node_modules/typebox/build/type/action/partial.d.mts +0 -11
- package/node_modules/typebox/build/type/action/partial.mjs +0 -11
- package/node_modules/typebox/build/type/action/pick.d.mts +0 -14
- package/node_modules/typebox/build/type/action/pick.mjs +0 -14
- package/node_modules/typebox/build/type/action/readonly_object.d.mts +0 -16
- package/node_modules/typebox/build/type/action/readonly_object.mjs +0 -19
- package/node_modules/typebox/build/type/action/required.d.mts +0 -11
- package/node_modules/typebox/build/type/action/required.mjs +0 -11
- package/node_modules/typebox/build/type/action/return_type.d.mts +0 -11
- package/node_modules/typebox/build/type/action/return_type.mjs +0 -11
- package/node_modules/typebox/build/type/action/uncapitalize.d.mts +0 -11
- package/node_modules/typebox/build/type/action/uncapitalize.mjs +0 -11
- package/node_modules/typebox/build/type/action/uppercase.d.mts +0 -11
- package/node_modules/typebox/build/type/action/uppercase.mjs +0 -11
- package/node_modules/typebox/build/type/action/with.d.mts +0 -11
- package/node_modules/typebox/build/type/action/with.mjs +0 -11
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts +0 -20
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +0 -66
- package/node_modules/typebox/build/type/engine/call/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/call/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/call/instantiate.d.mts +0 -21
- package/node_modules/typebox/build/type/engine/call/instantiate.mjs +0 -79
- package/node_modules/typebox/build/type/engine/call/resolve_arguments.d.mts +0 -13
- package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +0 -33
- package/node_modules/typebox/build/type/engine/call/resolve_target.d.mts +0 -25
- package/node_modules/typebox/build/type/engine/call/resolve_target.mjs +0 -27
- package/node_modules/typebox/build/type/engine/conditional/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/conditional/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/conditional/instantiate.d.mts +0 -12
- package/node_modules/typebox/build/type/engine/conditional/instantiate.mjs +0 -23
- package/node_modules/typebox/build/type/engine/constructor_parameters/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/constructor_parameters/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +0 -14
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +0 -25
- package/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +0 -8
- package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +0 -16
- package/node_modules/typebox/build/type/engine/cyclic/check.d.mts +0 -21
- package/node_modules/typebox/build/type/engine/cyclic/check.mjs +0 -45
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +0 -22
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +0 -47
- package/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +0 -28
- package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +0 -47
- package/node_modules/typebox/build/type/engine/cyclic/index.d.mts +0 -6
- package/node_modules/typebox/build/type/engine/cyclic/index.mjs +0 -6
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +0 -17
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +0 -31
- package/node_modules/typebox/build/type/engine/cyclic/target.d.mts +0 -10
- package/node_modules/typebox/build/type/engine/cyclic/target.mjs +0 -16
- package/node_modules/typebox/build/type/engine/enum/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/enum/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.d.mts +0 -8
- package/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs +0 -9
- package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +0 -15
- package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +0 -37
- package/node_modules/typebox/build/type/engine/evaluate/compare.d.mts +0 -11
- package/node_modules/typebox/build/type/engine/evaluate/compare.mjs +0 -18
- package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +0 -15
- package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +0 -33
- package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +0 -12
- package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +0 -33
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +0 -26
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +0 -56
- package/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts +0 -6
- package/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +0 -10
- package/node_modules/typebox/build/type/engine/evaluate/index.d.mts +0 -9
- package/node_modules/typebox/build/type/engine/evaluate/index.mjs +0 -9
- package/node_modules/typebox/build/type/engine/evaluate/instantiate.d.mts +0 -8
- package/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs +0 -12
- package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +0 -24
- package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +0 -36
- package/node_modules/typebox/build/type/engine/evaluate/property.d.mts +0 -30
- package/node_modules/typebox/build/type/engine/evaluate/property.mjs +0 -29
- package/node_modules/typebox/build/type/engine/exclude/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/exclude/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/exclude/instantiate.d.mts +0 -9
- package/node_modules/typebox/build/type/engine/exclude/instantiate.mjs +0 -16
- package/node_modules/typebox/build/type/engine/exclude/operation.d.mts +0 -10
- package/node_modules/typebox/build/type/engine/exclude/operation.mjs +0 -22
- package/node_modules/typebox/build/type/engine/extract/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/extract/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/extract/instantiate.d.mts +0 -9
- package/node_modules/typebox/build/type/engine/extract/instantiate.mjs +0 -16
- package/node_modules/typebox/build/type/engine/extract/operation.d.mts +0 -10
- package/node_modules/typebox/build/type/engine/extract/operation.mjs +0 -22
- package/node_modules/typebox/build/type/engine/helpers/index.d.mts +0 -3
- package/node_modules/typebox/build/type/engine/helpers/index.mjs +0 -3
- package/node_modules/typebox/build/type/engine/helpers/keys.d.mts +0 -3
- package/node_modules/typebox/build/type/engine/helpers/keys.mjs +0 -8
- package/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.d.mts +0 -7
- package/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs +0 -15
- package/node_modules/typebox/build/type/engine/helpers/union.d.mts +0 -7
- package/node_modules/typebox/build/type/engine/helpers/union.mjs +0 -3
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts +0 -8
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +0 -11
- package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts +0 -10
- package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +0 -14
- package/node_modules/typebox/build/type/engine/index.d.mts +0 -31
- package/node_modules/typebox/build/type/engine/index.mjs +0 -37
- package/node_modules/typebox/build/type/engine/indexable/from_cyclic.d.mts +0 -6
- package/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs +0 -8
- package/node_modules/typebox/build/type/engine/indexable/from_dependent.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +0 -8
- package/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts +0 -6
- package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +0 -8
- package/node_modules/typebox/build/type/engine/indexable/from_intersect.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs +0 -8
- package/node_modules/typebox/build/type/engine/indexable/from_literal.d.mts +0 -3
- package/node_modules/typebox/build/type/engine/indexable/from_literal.mjs +0 -5
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +0 -8
- package/node_modules/typebox/build/type/engine/indexable/from_type.d.mts +0 -19
- package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +0 -25
- package/node_modules/typebox/build/type/engine/indexable/from_union.d.mts +0 -4
- package/node_modules/typebox/build/type/engine/indexable/from_union.mjs +0 -7
- package/node_modules/typebox/build/type/engine/indexable/to_indexable.d.mts +0 -9
- package/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs +0 -14
- package/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.d.mts +0 -10
- package/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs +0 -12
- package/node_modules/typebox/build/type/engine/indexed/array_indexer.d.mts +0 -12
- package/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs +0 -18
- package/node_modules/typebox/build/type/engine/indexed/from_array.d.mts +0 -15
- package/node_modules/typebox/build/type/engine/indexed/from_array.mjs +0 -35
- package/node_modules/typebox/build/type/engine/indexed/from_object.d.mts +0 -16
- package/node_modules/typebox/build/type/engine/indexed/from_object.mjs +0 -40
- package/node_modules/typebox/build/type/engine/indexed/from_tuple.d.mts +0 -13
- package/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs +0 -35
- package/node_modules/typebox/build/type/engine/indexed/from_type.d.mts +0 -11
- package/node_modules/typebox/build/type/engine/indexed/from_type.mjs +0 -14
- package/node_modules/typebox/build/type/engine/indexed/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/indexed/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +0 -16
- package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +0 -28
- package/node_modules/typebox/build/type/engine/instance_type/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/instance_type/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/instance_type/instantiate.d.mts +0 -12
- package/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs +0 -21
- package/node_modules/typebox/build/type/engine/instantiate.d.mts +0 -178
- package/node_modules/typebox/build/type/engine/instantiate.mjs +0 -158
- package/node_modules/typebox/build/type/engine/interface/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/interface/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +0 -15
- package/node_modules/typebox/build/type/engine/interface/instantiate.mjs +0 -23
- package/node_modules/typebox/build/type/engine/intrinsics/from_literal.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs +0 -9
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +0 -6
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +0 -8
- package/node_modules/typebox/build/type/engine/intrinsics/from_type.d.mts +0 -10
- package/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs +0 -13
- package/node_modules/typebox/build/type/engine/intrinsics/from_union.d.mts +0 -6
- package/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs +0 -7
- package/node_modules/typebox/build/type/engine/intrinsics/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/intrinsics/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/intrinsics/instantiate.d.mts +0 -38
- package/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs +0 -52
- package/node_modules/typebox/build/type/engine/intrinsics/mapping.d.mts +0 -9
- package/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs +0 -4
- package/node_modules/typebox/build/type/engine/keyof/from_any.d.mts +0 -6
- package/node_modules/typebox/build/type/engine/keyof/from_any.mjs +0 -8
- package/node_modules/typebox/build/type/engine/keyof/from_array.d.mts +0 -4
- package/node_modules/typebox/build/type/engine/keyof/from_array.mjs +0 -5
- package/node_modules/typebox/build/type/engine/keyof/from_object.d.mts +0 -10
- package/node_modules/typebox/build/type/engine/keyof/from_object.mjs +0 -20
- package/node_modules/typebox/build/type/engine/keyof/from_record.d.mts +0 -4
- package/node_modules/typebox/build/type/engine/keyof/from_record.mjs +0 -5
- package/node_modules/typebox/build/type/engine/keyof/from_tuple.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs +0 -7
- package/node_modules/typebox/build/type/engine/keyof/from_type.d.mts +0 -15
- package/node_modules/typebox/build/type/engine/keyof/from_type.mjs +0 -23
- package/node_modules/typebox/build/type/engine/keyof/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/keyof/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +0 -16
- package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +0 -29
- package/node_modules/typebox/build/type/engine/mapped/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/mapped/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/mapped/instantiate.d.mts +0 -10
- package/node_modules/typebox/build/type/engine/mapped/instantiate.mjs +0 -15
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts +0 -22
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +0 -42
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts +0 -17
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +0 -39
- package/node_modules/typebox/build/type/engine/module/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/module/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/module/instantiate.d.mts +0 -19
- package/node_modules/typebox/build/type/engine/module/instantiate.mjs +0 -36
- package/node_modules/typebox/build/type/engine/non_nullable/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/non_nullable/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/non_nullable/instantiate.d.mts +0 -14
- package/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs +0 -22
- package/node_modules/typebox/build/type/engine/object/collapse.d.mts +0 -12
- package/node_modules/typebox/build/type/engine/object/collapse.mjs +0 -14
- package/node_modules/typebox/build/type/engine/object/from_cyclic.d.mts +0 -6
- package/node_modules/typebox/build/type/engine/object/from_cyclic.mjs +0 -8
- package/node_modules/typebox/build/type/engine/object/from_dependent.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +0 -8
- package/node_modules/typebox/build/type/engine/object/from_intersect.d.mts +0 -17
- package/node_modules/typebox/build/type/engine/object/from_intersect.mjs +0 -22
- package/node_modules/typebox/build/type/engine/object/from_object.d.mts +0 -3
- package/node_modules/typebox/build/type/engine/object/from_object.mjs +0 -4
- package/node_modules/typebox/build/type/engine/object/from_tuple.d.mts +0 -6
- package/node_modules/typebox/build/type/engine/object/from_tuple.mjs +0 -9
- package/node_modules/typebox/build/type/engine/object/from_type.d.mts +0 -16
- package/node_modules/typebox/build/type/engine/object/from_type.mjs +0 -23
- package/node_modules/typebox/build/type/engine/object/from_union.d.mts +0 -12
- package/node_modules/typebox/build/type/engine/object/from_union.mjs +0 -19
- package/node_modules/typebox/build/type/engine/object/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/object/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/omit/from_type.d.mts +0 -12
- package/node_modules/typebox/build/type/engine/omit/from_type.mjs +0 -18
- package/node_modules/typebox/build/type/engine/omit/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/omit/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/omit/instantiate.d.mts +0 -9
- package/node_modules/typebox/build/type/engine/omit/instantiate.mjs +0 -16
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts +0 -8
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +0 -11
- package/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts +0 -10
- package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +0 -14
- package/node_modules/typebox/build/type/engine/parameters/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/parameters/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +0 -14
- package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +0 -25
- package/node_modules/typebox/build/type/engine/partial/from_cyclic.d.mts +0 -10
- package/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs +0 -11
- package/node_modules/typebox/build/type/engine/partial/from_dependent.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +0 -8
- package/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +0 -8
- package/node_modules/typebox/build/type/engine/partial/from_object.d.mts +0 -8
- package/node_modules/typebox/build/type/engine/partial/from_object.mjs +0 -11
- package/node_modules/typebox/build/type/engine/partial/from_type.d.mts +0 -14
- package/node_modules/typebox/build/type/engine/partial/from_type.mjs +0 -20
- package/node_modules/typebox/build/type/engine/partial/from_union.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/partial/from_union.mjs +0 -7
- package/node_modules/typebox/build/type/engine/partial/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/partial/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/partial/instantiate.d.mts +0 -9
- package/node_modules/typebox/build/type/engine/partial/instantiate.mjs +0 -15
- package/node_modules/typebox/build/type/engine/patterns/index.d.mts +0 -2
- package/node_modules/typebox/build/type/engine/patterns/index.mjs +0 -2
- package/node_modules/typebox/build/type/engine/patterns/pattern.d.mts +0 -6
- package/node_modules/typebox/build/type/engine/patterns/pattern.mjs +0 -11
- package/node_modules/typebox/build/type/engine/patterns/template.d.mts +0 -7
- package/node_modules/typebox/build/type/engine/patterns/template.mjs +0 -20
- package/node_modules/typebox/build/type/engine/pick/from_type.d.mts +0 -13
- package/node_modules/typebox/build/type/engine/pick/from_type.mjs +0 -20
- package/node_modules/typebox/build/type/engine/pick/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/pick/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/pick/instantiate.d.mts +0 -9
- package/node_modules/typebox/build/type/engine/pick/instantiate.mjs +0 -16
- package/node_modules/typebox/build/type/engine/priority/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/priority/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/priority/priority.d.mts +0 -20
- package/node_modules/typebox/build/type/engine/priority/priority.mjs +0 -27
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts +0 -8
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +0 -11
- package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts +0 -10
- package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +0 -14
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +0 -7
- package/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.d.mts +0 -10
- package/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs +0 -11
- package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +0 -8
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +0 -8
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +0 -8
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +0 -11
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +0 -7
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts +0 -18
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +0 -25
- package/node_modules/typebox/build/type/engine/readonly_object/from_union.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs +0 -7
- package/node_modules/typebox/build/type/engine/readonly_object/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/readonly_object/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/readonly_object/instantiate.d.mts +0 -9
- package/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs +0 -15
- package/node_modules/typebox/build/type/engine/record/from_key.d.mts +0 -24
- package/node_modules/typebox/build/type/engine/record/from_key.mjs +0 -40
- package/node_modules/typebox/build/type/engine/record/from_key_any.d.mts +0 -4
- package/node_modules/typebox/build/type/engine/record/from_key_any.mjs +0 -6
- package/node_modules/typebox/build/type/engine/record/from_key_boolean.d.mts +0 -7
- package/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs +0 -5
- package/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts +0 -6
- package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +0 -8
- package/node_modules/typebox/build/type/engine/record/from_key_integer.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/record/from_key_integer.mjs +0 -7
- package/node_modules/typebox/build/type/engine/record/from_key_intersect.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs +0 -8
- package/node_modules/typebox/build/type/engine/record/from_key_literal.d.mts +0 -11
- package/node_modules/typebox/build/type/engine/record/from_key_literal.mjs +0 -10
- package/node_modules/typebox/build/type/engine/record/from_key_number.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/record/from_key_number.mjs +0 -7
- package/node_modules/typebox/build/type/engine/record/from_key_string.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/record/from_key_string.mjs +0 -12
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts +0 -8
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +0 -12
- package/node_modules/typebox/build/type/engine/record/from_key_union.d.mts +0 -20
- package/node_modules/typebox/build/type/engine/record/from_key_union.mjs +0 -39
- package/node_modules/typebox/build/type/engine/record/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/record/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/record/instantiate.d.mts +0 -9
- package/node_modules/typebox/build/type/engine/record/instantiate.mjs +0 -17
- package/node_modules/typebox/build/type/engine/record/record_create.d.mts +0 -3
- package/node_modules/typebox/build/type/engine/record/record_create.mjs +0 -7
- package/node_modules/typebox/build/type/engine/ref/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/ref/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +0 -6
- package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +0 -10
- package/node_modules/typebox/build/type/engine/required/from_cyclic.d.mts +0 -10
- package/node_modules/typebox/build/type/engine/required/from_cyclic.mjs +0 -11
- package/node_modules/typebox/build/type/engine/required/from_dependent.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +0 -8
- package/node_modules/typebox/build/type/engine/required/from_intersect.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +0 -8
- package/node_modules/typebox/build/type/engine/required/from_object.d.mts +0 -8
- package/node_modules/typebox/build/type/engine/required/from_object.mjs +0 -11
- package/node_modules/typebox/build/type/engine/required/from_type.d.mts +0 -14
- package/node_modules/typebox/build/type/engine/required/from_type.mjs +0 -20
- package/node_modules/typebox/build/type/engine/required/from_union.d.mts +0 -5
- package/node_modules/typebox/build/type/engine/required/from_union.mjs +0 -7
- package/node_modules/typebox/build/type/engine/required/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/required/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/required/instantiate.d.mts +0 -9
- package/node_modules/typebox/build/type/engine/required/instantiate.mjs +0 -15
- package/node_modules/typebox/build/type/engine/rest/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/rest/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/rest/spread.d.mts +0 -12
- package/node_modules/typebox/build/type/engine/rest/spread.mjs +0 -19
- package/node_modules/typebox/build/type/engine/return_type/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/return_type/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/return_type/instantiate.d.mts +0 -12
- package/node_modules/typebox/build/type/engine/return_type/instantiate.mjs +0 -21
- package/node_modules/typebox/build/type/engine/template_literal/create.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/template_literal/create.mjs +0 -5
- package/node_modules/typebox/build/type/engine/template_literal/decode.d.mts +0 -30
- package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +0 -81
- package/node_modules/typebox/build/type/engine/template_literal/encode.d.mts +0 -33
- package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +0 -81
- package/node_modules/typebox/build/type/engine/template_literal/index.d.mts +0 -6
- package/node_modules/typebox/build/type/engine/template_literal/index.mjs +0 -6
- package/node_modules/typebox/build/type/engine/template_literal/instantiate.d.mts +0 -9
- package/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs +0 -15
- package/node_modules/typebox/build/type/engine/template_literal/is_finite.d.mts +0 -12
- package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +0 -26
- package/node_modules/typebox/build/type/engine/template_literal/is_pattern.d.mts +0 -6
- package/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +0 -10
- package/node_modules/typebox/build/type/engine/template_literal/static.d.mts +0 -18
- package/node_modules/typebox/build/type/engine/template_literal/static.mjs +0 -2
- package/node_modules/typebox/build/type/engine/this/expand_this.d.mts +0 -16
- package/node_modules/typebox/build/type/engine/this/expand_this.mjs +0 -26
- package/node_modules/typebox/build/type/engine/this/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/this/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/tuple/to_object.d.mts +0 -12
- package/node_modules/typebox/build/type/engine/tuple/to_object.mjs +0 -14
- package/node_modules/typebox/build/type/engine/with/index.d.mts +0 -1
- package/node_modules/typebox/build/type/engine/with/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/with/instantiate.d.mts +0 -8
- package/node_modules/typebox/build/type/engine/with/instantiate.mjs +0 -14
- package/node_modules/typebox/build/type/extends/any.d.mts +0 -9
- package/node_modules/typebox/build/type/extends/any.mjs +0 -12
- package/node_modules/typebox/build/type/extends/array.d.mts +0 -20
- package/node_modules/typebox/build/type/extends/array.mjs +0 -21
- package/node_modules/typebox/build/type/extends/bigint.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/bigint.mjs +0 -9
- package/node_modules/typebox/build/type/extends/boolean.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/boolean.mjs +0 -9
- package/node_modules/typebox/build/type/extends/constructor.d.mts +0 -10
- package/node_modules/typebox/build/type/extends/constructor.mjs +0 -17
- package/node_modules/typebox/build/type/extends/dependent.d.mts +0 -6
- package/node_modules/typebox/build/type/extends/dependent.mjs +0 -6
- package/node_modules/typebox/build/type/extends/enum.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/enum.mjs +0 -7
- package/node_modules/typebox/build/type/extends/extends.d.mts +0 -13
- package/node_modules/typebox/build/type/extends/extends.mjs +0 -17
- package/node_modules/typebox/build/type/extends/extends_left.d.mts +0 -53
- package/node_modules/typebox/build/type/extends/extends_left.mjs +0 -80
- package/node_modules/typebox/build/type/extends/extends_right.d.mts +0 -27
- package/node_modules/typebox/build/type/extends/extends_right.mjs +0 -49
- package/node_modules/typebox/build/type/extends/function.d.mts +0 -10
- package/node_modules/typebox/build/type/extends/function.mjs +0 -17
- package/node_modules/typebox/build/type/extends/index.d.mts +0 -2
- package/node_modules/typebox/build/type/extends/index.mjs +0 -2
- package/node_modules/typebox/build/type/extends/inference.d.mts +0 -34
- package/node_modules/typebox/build/type/extends/inference.mjs +0 -75
- package/node_modules/typebox/build/type/extends/integer.d.mts +0 -8
- package/node_modules/typebox/build/type/extends/integer.mjs +0 -10
- package/node_modules/typebox/build/type/extends/intersect.d.mts +0 -6
- package/node_modules/typebox/build/type/extends/intersect.mjs +0 -15
- package/node_modules/typebox/build/type/extends/literal.d.mts +0 -18
- package/node_modules/typebox/build/type/extends/literal.mjs +0 -44
- package/node_modules/typebox/build/type/extends/never.d.mts +0 -8
- package/node_modules/typebox/build/type/extends/never.mjs +0 -9
- package/node_modules/typebox/build/type/extends/null.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/null.mjs +0 -9
- package/node_modules/typebox/build/type/extends/number.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/number.mjs +0 -9
- package/node_modules/typebox/build/type/extends/object.d.mts +0 -32
- package/node_modules/typebox/build/type/extends/object.mjs +0 -109
- package/node_modules/typebox/build/type/extends/parameters.d.mts +0 -15
- package/node_modules/typebox/build/type/extends/parameters.mjs +0 -28
- package/node_modules/typebox/build/type/extends/record.d.mts +0 -13
- package/node_modules/typebox/build/type/extends/record.mjs +0 -23
- package/node_modules/typebox/build/type/extends/result.d.mts +0 -24
- package/node_modules/typebox/build/type/extends/result.mjs +0 -36
- package/node_modules/typebox/build/type/extends/return_type.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/return_type.mjs +0 -9
- package/node_modules/typebox/build/type/extends/string.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/string.mjs +0 -9
- package/node_modules/typebox/build/type/extends/symbol.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/symbol.mjs +0 -9
- package/node_modules/typebox/build/type/extends/template_literal.d.mts +0 -6
- package/node_modules/typebox/build/type/extends/template_literal.mjs +0 -7
- package/node_modules/typebox/build/type/extends/tuple.d.mts +0 -23
- package/node_modules/typebox/build/type/extends/tuple.mjs +0 -81
- package/node_modules/typebox/build/type/extends/undefined.d.mts +0 -8
- package/node_modules/typebox/build/type/extends/undefined.mjs +0 -10
- package/node_modules/typebox/build/type/extends/union.d.mts +0 -11
- package/node_modules/typebox/build/type/extends/union.mjs +0 -24
- package/node_modules/typebox/build/type/extends/unknown.d.mts +0 -9
- package/node_modules/typebox/build/type/extends/unknown.mjs +0 -12
- package/node_modules/typebox/build/type/extends/void.d.mts +0 -7
- package/node_modules/typebox/build/type/extends/void.mjs +0 -9
- package/node_modules/typebox/build/type/index.d.mts +0 -5
- package/node_modules/typebox/build/type/index.mjs +0 -5
- package/node_modules/typebox/build/type/script/index.d.mts +0 -1
- package/node_modules/typebox/build/type/script/index.mjs +0 -1
- package/node_modules/typebox/build/type/script/mapping.d.mts +0 -356
- package/node_modules/typebox/build/type/script/mapping.mjs +0 -528
- package/node_modules/typebox/build/type/script/parser.d.mts +0 -256
- package/node_modules/typebox/build/type/script/parser.mjs +0 -140
- package/node_modules/typebox/build/type/script/script.d.mts +0 -16
- package/node_modules/typebox/build/type/script/script.mjs +0 -22
- package/node_modules/typebox/build/type/script/token/bigint.d.mts +0 -8
- package/node_modules/typebox/build/type/script/token/bigint.mjs +0 -14
- package/node_modules/typebox/build/type/script/token/const.d.mts +0 -11
- package/node_modules/typebox/build/type/script/token/const.mjs +0 -18
- package/node_modules/typebox/build/type/script/token/ident.d.mts +0 -16
- package/node_modules/typebox/build/type/script/token/ident.mjs +0 -26
- package/node_modules/typebox/build/type/script/token/index.d.mts +0 -12
- package/node_modules/typebox/build/type/script/token/index.mjs +0 -12
- package/node_modules/typebox/build/type/script/token/integer.d.mts +0 -11
- package/node_modules/typebox/build/type/script/token/integer.mjs +0 -19
- package/node_modules/typebox/build/type/script/token/internal/char.d.mts +0 -75
- package/node_modules/typebox/build/type/script/token/internal/char.mjs +0 -26
- package/node_modules/typebox/build/type/script/token/internal/guard.d.mts +0 -1
- package/node_modules/typebox/build/type/script/token/internal/guard.mjs +0 -15
- package/node_modules/typebox/build/type/script/token/internal/many.d.mts +0 -7
- package/node_modules/typebox/build/type/script/token/internal/many.mjs +0 -14
- package/node_modules/typebox/build/type/script/token/internal/match.d.mts +0 -6
- package/node_modules/typebox/build/type/script/token/internal/match.mjs +0 -11
- package/node_modules/typebox/build/type/script/token/internal/optional.d.mts +0 -5
- package/node_modules/typebox/build/type/script/token/internal/optional.mjs +0 -9
- package/node_modules/typebox/build/type/script/token/internal/take.d.mts +0 -6
- package/node_modules/typebox/build/type/script/token/internal/take.mjs +0 -30
- package/node_modules/typebox/build/type/script/token/internal/trim.d.mts +0 -19
- package/node_modules/typebox/build/type/script/token/internal/trim.mjs +0 -34
- package/node_modules/typebox/build/type/script/token/number.d.mts +0 -11
- package/node_modules/typebox/build/type/script/token/number.mjs +0 -19
- package/node_modules/typebox/build/type/script/token/rest.d.mts +0 -4
- package/node_modules/typebox/build/type/script/token/rest.mjs +0 -9
- package/node_modules/typebox/build/type/script/token/span.d.mts +0 -11
- package/node_modules/typebox/build/type/script/token/span.mjs +0 -24
- package/node_modules/typebox/build/type/script/token/string.d.mts +0 -11
- package/node_modules/typebox/build/type/script/token/string.mjs +0 -20
- package/node_modules/typebox/build/type/script/token/unsigned_integer.d.mts +0 -16
- package/node_modules/typebox/build/type/script/token/unsigned_integer.mjs +0 -26
- package/node_modules/typebox/build/type/script/token/unsigned_number.d.mts +0 -17
- package/node_modules/typebox/build/type/script/token/unsigned_number.mjs +0 -38
- package/node_modules/typebox/build/type/script/token/until.d.mts +0 -7
- package/node_modules/typebox/build/type/script/token/until.mjs +0 -21
- package/node_modules/typebox/build/type/script/token/until_1.d.mts +0 -5
- package/node_modules/typebox/build/type/script/token/until_1.mjs +0 -12
- package/node_modules/typebox/build/type/types/_codec.d.mts +0 -30
- package/node_modules/typebox/build/type/types/_codec.mjs +0 -60
- package/node_modules/typebox/build/type/types/_immutable.d.mts +0 -9
- package/node_modules/typebox/build/type/types/_immutable.mjs +0 -18
- package/node_modules/typebox/build/type/types/_optional.d.mts +0 -9
- package/node_modules/typebox/build/type/types/_optional.mjs +0 -18
- package/node_modules/typebox/build/type/types/_readonly.d.mts +0 -9
- package/node_modules/typebox/build/type/types/_readonly.mjs +0 -18
- package/node_modules/typebox/build/type/types/_refine.d.mts +0 -24
- package/node_modules/typebox/build/type/types/_refine.mjs +0 -36
- package/node_modules/typebox/build/type/types/any.d.mts +0 -10
- package/node_modules/typebox/build/type/types/any.mjs +0 -18
- package/node_modules/typebox/build/type/types/array.d.mts +0 -18
- package/node_modules/typebox/build/type/types/array.mjs +0 -25
- package/node_modules/typebox/build/type/types/bigint.d.mts +0 -12
- package/node_modules/typebox/build/type/types/bigint.mjs +0 -21
- package/node_modules/typebox/build/type/types/boolean.d.mts +0 -11
- package/node_modules/typebox/build/type/types/boolean.mjs +0 -17
- package/node_modules/typebox/build/type/types/call.d.mts +0 -16
- package/node_modules/typebox/build/type/types/call.mjs +0 -23
- package/node_modules/typebox/build/type/types/constructor.d.mts +0 -18
- package/node_modules/typebox/build/type/types/constructor.mjs +0 -24
- package/node_modules/typebox/build/type/types/cyclic.d.mts +0 -16
- package/node_modules/typebox/build/type/types/cyclic.mjs +0 -29
- package/node_modules/typebox/build/type/types/deferred.d.mts +0 -13
- package/node_modules/typebox/build/type/types/deferred.mjs +0 -16
- package/node_modules/typebox/build/type/types/dependent.d.mts +0 -17
- package/node_modules/typebox/build/type/types/dependent.mjs +0 -24
- package/node_modules/typebox/build/type/types/enum.d.mts +0 -18
- package/node_modules/typebox/build/type/types/enum.mjs +0 -22
- package/node_modules/typebox/build/type/types/function.d.mts +0 -21
- package/node_modules/typebox/build/type/types/function.mjs +0 -25
- package/node_modules/typebox/build/type/types/generic.d.mts +0 -13
- package/node_modules/typebox/build/type/types/generic.mjs +0 -17
- package/node_modules/typebox/build/type/types/identifier.d.mts +0 -11
- package/node_modules/typebox/build/type/types/identifier.mjs +0 -17
- package/node_modules/typebox/build/type/types/index.d.mts +0 -45
- package/node_modules/typebox/build/type/types/index.mjs +0 -51
- package/node_modules/typebox/build/type/types/infer.d.mts +0 -15
- package/node_modules/typebox/build/type/types/infer.mjs +0 -20
- package/node_modules/typebox/build/type/types/integer.d.mts +0 -12
- package/node_modules/typebox/build/type/types/integer.mjs +0 -21
- package/node_modules/typebox/build/type/types/intersect.d.mts +0 -15
- package/node_modules/typebox/build/type/types/intersect.mjs +0 -24
- package/node_modules/typebox/build/type/types/literal.d.mts +0 -31
- package/node_modules/typebox/build/type/types/literal.mjs +0 -62
- package/node_modules/typebox/build/type/types/never.d.mts +0 -12
- package/node_modules/typebox/build/type/types/never.mjs +0 -22
- package/node_modules/typebox/build/type/types/null.d.mts +0 -11
- package/node_modules/typebox/build/type/types/null.mjs +0 -17
- package/node_modules/typebox/build/type/types/number.d.mts +0 -12
- package/node_modules/typebox/build/type/types/number.mjs +0 -21
- package/node_modules/typebox/build/type/types/object.d.mts +0 -18
- package/node_modules/typebox/build/type/types/object.mjs +0 -28
- package/node_modules/typebox/build/type/types/parameter.d.mts +0 -17
- package/node_modules/typebox/build/type/types/parameter.mjs +0 -21
- package/node_modules/typebox/build/type/types/properties.d.mts +0 -43
- package/node_modules/typebox/build/type/types/properties.mjs +0 -15
- package/node_modules/typebox/build/type/types/record.d.mts +0 -52
- package/node_modules/typebox/build/type/types/record.mjs +0 -66
- package/node_modules/typebox/build/type/types/ref.d.mts +0 -19
- package/node_modules/typebox/build/type/types/ref.mjs +0 -18
- package/node_modules/typebox/build/type/types/rest.d.mts +0 -11
- package/node_modules/typebox/build/type/types/rest.mjs +0 -17
- package/node_modules/typebox/build/type/types/schema.d.mts +0 -176
- package/node_modules/typebox/build/type/types/schema.mjs +0 -15
- package/node_modules/typebox/build/type/types/static.d.mts +0 -45
- package/node_modules/typebox/build/type/types/static.mjs +0 -3
- package/node_modules/typebox/build/type/types/string.d.mts +0 -12
- package/node_modules/typebox/build/type/types/string.mjs +0 -22
- package/node_modules/typebox/build/type/types/symbol.d.mts +0 -11
- package/node_modules/typebox/build/type/types/symbol.mjs +0 -17
- package/node_modules/typebox/build/type/types/template_literal.d.mts +0 -28
- package/node_modules/typebox/build/type/types/template_literal.mjs +0 -37
- package/node_modules/typebox/build/type/types/this.d.mts +0 -14
- package/node_modules/typebox/build/type/types/this.mjs +0 -17
- package/node_modules/typebox/build/type/types/tuple.d.mts +0 -38
- package/node_modules/typebox/build/type/types/tuple.mjs +0 -25
- package/node_modules/typebox/build/type/types/undefined.d.mts +0 -11
- package/node_modules/typebox/build/type/types/undefined.mjs +0 -17
- package/node_modules/typebox/build/type/types/union.d.mts +0 -15
- package/node_modules/typebox/build/type/types/union.mjs +0 -24
- package/node_modules/typebox/build/type/types/unknown.d.mts +0 -10
- package/node_modules/typebox/build/type/types/unknown.mjs +0 -17
- package/node_modules/typebox/build/type/types/unsafe.d.mts +0 -10
- package/node_modules/typebox/build/type/types/unsafe.mjs +0 -20
- package/node_modules/typebox/build/type/types/void.d.mts +0 -11
- package/node_modules/typebox/build/type/types/void.mjs +0 -17
- package/node_modules/typebox/build/typebox.d.mts +0 -69
- package/node_modules/typebox/build/typebox.mjs +0 -85
- package/node_modules/typebox/build/value/assert/assert.d.mts +0 -14
- package/node_modules/typebox/build/value/assert/assert.mjs +0 -28
- package/node_modules/typebox/build/value/assert/index.d.mts +0 -1
- package/node_modules/typebox/build/value/assert/index.mjs +0 -1
- package/node_modules/typebox/build/value/check/check.d.mts +0 -5
- package/node_modules/typebox/build/value/check/check.mjs +0 -11
- package/node_modules/typebox/build/value/check/index.d.mts +0 -1
- package/node_modules/typebox/build/value/check/index.mjs +0 -1
- package/node_modules/typebox/build/value/clean/additional.d.mts +0 -2
- package/node_modules/typebox/build/value/clean/additional.mjs +0 -6
- package/node_modules/typebox/build/value/clean/clean.d.mts +0 -15
- package/node_modules/typebox/build/value/clean/clean.mjs +0 -17
- package/node_modules/typebox/build/value/clean/from_array.d.mts +0 -2
- package/node_modules/typebox/build/value/clean/from_array.mjs +0 -8
- package/node_modules/typebox/build/value/clean/from_cyclic.d.mts +0 -2
- package/node_modules/typebox/build/value/clean/from_cyclic.mjs +0 -6
- package/node_modules/typebox/build/value/clean/from_intersect.d.mts +0 -2
- package/node_modules/typebox/build/value/clean/from_intersect.mjs +0 -26
- package/node_modules/typebox/build/value/clean/from_object.d.mts +0 -2
- package/node_modules/typebox/build/value/clean/from_object.mjs +0 -31
- package/node_modules/typebox/build/value/clean/from_record.d.mts +0 -2
- package/node_modules/typebox/build/value/clean/from_record.mjs +0 -32
- package/node_modules/typebox/build/value/clean/from_ref.d.mts +0 -2
- package/node_modules/typebox/build/value/clean/from_ref.mjs +0 -8
- package/node_modules/typebox/build/value/clean/from_tuple.d.mts +0 -2
- package/node_modules/typebox/build/value/clean/from_tuple.mjs +0 -14
- package/node_modules/typebox/build/value/clean/from_type.d.mts +0 -2
- package/node_modules/typebox/build/value/clean/from_type.mjs +0 -21
- package/node_modules/typebox/build/value/clean/from_union.d.mts +0 -2
- package/node_modules/typebox/build/value/clean/from_union.mjs +0 -12
- package/node_modules/typebox/build/value/clean/index.d.mts +0 -1
- package/node_modules/typebox/build/value/clean/index.mjs +0 -1
- package/node_modules/typebox/build/value/clone/clone.d.mts +0 -6
- package/node_modules/typebox/build/value/clone/clone.mjs +0 -10
- package/node_modules/typebox/build/value/clone/index.d.mts +0 -1
- package/node_modules/typebox/build/value/clone/index.mjs +0 -1
- package/node_modules/typebox/build/value/codec/callback.d.mts +0 -2
- package/node_modules/typebox/build/value/codec/callback.mjs +0 -25
- package/node_modules/typebox/build/value/codec/decode.d.mts +0 -12
- package/node_modules/typebox/build/value/codec/decode.mjs +0 -52
- package/node_modules/typebox/build/value/codec/encode.d.mts +0 -12
- package/node_modules/typebox/build/value/codec/encode.mjs +0 -52
- package/node_modules/typebox/build/value/codec/from_array.d.mts +0 -2
- package/node_modules/typebox/build/value/codec/from_array.mjs +0 -35
- package/node_modules/typebox/build/value/codec/from_cyclic.d.mts +0 -2
- package/node_modules/typebox/build/value/codec/from_cyclic.mjs +0 -8
- package/node_modules/typebox/build/value/codec/from_intersect.d.mts +0 -2
- package/node_modules/typebox/build/value/codec/from_intersect.mjs +0 -58
- package/node_modules/typebox/build/value/codec/from_object.d.mts +0 -2
- package/node_modules/typebox/build/value/codec/from_object.mjs +0 -42
- package/node_modules/typebox/build/value/codec/from_record.d.mts +0 -2
- package/node_modules/typebox/build/value/codec/from_record.mjs +0 -39
- package/node_modules/typebox/build/value/codec/from_ref.d.mts +0 -2
- package/node_modules/typebox/build/value/codec/from_ref.mjs +0 -31
- package/node_modules/typebox/build/value/codec/from_tuple.d.mts +0 -2
- package/node_modules/typebox/build/value/codec/from_tuple.mjs +0 -32
- package/node_modules/typebox/build/value/codec/from_type.d.mts +0 -2
- package/node_modules/typebox/build/value/codec/from_type.mjs +0 -22
- package/node_modules/typebox/build/value/codec/from_union.d.mts +0 -2
- package/node_modules/typebox/build/value/codec/from_union.mjs +0 -39
- package/node_modules/typebox/build/value/codec/has.d.mts +0 -5
- package/node_modules/typebox/build/value/codec/has.mjs +0 -93
- package/node_modules/typebox/build/value/codec/index.d.mts +0 -3
- package/node_modules/typebox/build/value/codec/index.mjs +0 -3
- package/node_modules/typebox/build/value/convert/convert.d.mts +0 -13
- package/node_modules/typebox/build/value/convert/convert.mjs +0 -15
- package/node_modules/typebox/build/value/convert/from_additional.d.mts +0 -6
- package/node_modules/typebox/build/value/convert/from_additional.mjs +0 -18
- package/node_modules/typebox/build/value/convert/from_array.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_array.mjs +0 -7
- package/node_modules/typebox/build/value/convert/from_bigint.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_bigint.mjs +0 -6
- package/node_modules/typebox/build/value/convert/from_boolean.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_boolean.mjs +0 -6
- package/node_modules/typebox/build/value/convert/from_cyclic.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_cyclic.mjs +0 -6
- package/node_modules/typebox/build/value/convert/from_enum.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_enum.mjs +0 -6
- package/node_modules/typebox/build/value/convert/from_integer.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_integer.mjs +0 -6
- package/node_modules/typebox/build/value/convert/from_intersect.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_intersect.mjs +0 -8
- package/node_modules/typebox/build/value/convert/from_literal.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_literal.mjs +0 -44
- package/node_modules/typebox/build/value/convert/from_null.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_null.mjs +0 -6
- package/node_modules/typebox/build/value/convert/from_number.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_number.mjs +0 -6
- package/node_modules/typebox/build/value/convert/from_object.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_object.mjs +0 -28
- package/node_modules/typebox/build/value/convert/from_record.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_record.mjs +0 -23
- package/node_modules/typebox/build/value/convert/from_ref.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_ref.mjs +0 -8
- package/node_modules/typebox/build/value/convert/from_string.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_string.mjs +0 -6
- package/node_modules/typebox/build/value/convert/from_template_literal.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_template_literal.mjs +0 -6
- package/node_modules/typebox/build/value/convert/from_tuple.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_tuple.mjs +0 -11
- package/node_modules/typebox/build/value/convert/from_type.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_type.mjs +0 -43
- package/node_modules/typebox/build/value/convert/from_undefined.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_undefined.mjs +0 -6
- package/node_modules/typebox/build/value/convert/from_union.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_union.mjs +0 -13
- package/node_modules/typebox/build/value/convert/from_void.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/from_void.mjs +0 -6
- package/node_modules/typebox/build/value/convert/index.d.mts +0 -1
- package/node_modules/typebox/build/value/convert/index.mjs +0 -1
- package/node_modules/typebox/build/value/convert/try/index.d.mts +0 -1
- package/node_modules/typebox/build/value/convert/try/index.mjs +0 -1
- package/node_modules/typebox/build/value/convert/try/try.d.mts +0 -8
- package/node_modules/typebox/build/value/convert/try/try.mjs +0 -8
- package/node_modules/typebox/build/value/convert/try/try_array.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/try/try_array.mjs +0 -6
- package/node_modules/typebox/build/value/convert/try/try_bigint.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/try/try_bigint.mjs +0 -45
- package/node_modules/typebox/build/value/convert/try/try_boolean.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/try/try_boolean.mjs +0 -41
- package/node_modules/typebox/build/value/convert/try/try_null.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/try/try_null.mjs +0 -44
- package/node_modules/typebox/build/value/convert/try/try_number.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/try/try_number.mjs +0 -44
- package/node_modules/typebox/build/value/convert/try/try_result.d.mts +0 -8
- package/node_modules/typebox/build/value/convert/try/try_result.mjs +0 -17
- package/node_modules/typebox/build/value/convert/try/try_string.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/try/try_string.mjs +0 -12
- package/node_modules/typebox/build/value/convert/try/try_undefined.d.mts +0 -2
- package/node_modules/typebox/build/value/convert/try/try_undefined.mjs +0 -44
- package/node_modules/typebox/build/value/create/create.d.mts +0 -5
- package/node_modules/typebox/build/value/create/create.mjs +0 -11
- package/node_modules/typebox/build/value/create/error.d.mts +0 -5
- package/node_modules/typebox/build/value/create/error.mjs +0 -7
- package/node_modules/typebox/build/value/create/from_array.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_array.mjs +0 -10
- package/node_modules/typebox/build/value/create/from_bigint.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_bigint.mjs +0 -7
- package/node_modules/typebox/build/value/create/from_boolean.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_boolean.mjs +0 -4
- package/node_modules/typebox/build/value/create/from_constructor.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_constructor.mjs +0 -10
- package/node_modules/typebox/build/value/create/from_cyclic.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_cyclic.mjs +0 -6
- package/node_modules/typebox/build/value/create/from_default.d.mts +0 -3
- package/node_modules/typebox/build/value/create/from_default.mjs +0 -10
- package/node_modules/typebox/build/value/create/from_enum.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_enum.mjs +0 -6
- package/node_modules/typebox/build/value/create/from_function.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_function.mjs +0 -6
- package/node_modules/typebox/build/value/create/from_integer.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_integer.mjs +0 -8
- package/node_modules/typebox/build/value/create/from_intersect.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_intersect.mjs +0 -8
- package/node_modules/typebox/build/value/create/from_literal.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_literal.mjs +0 -4
- package/node_modules/typebox/build/value/create/from_never.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_never.mjs +0 -5
- package/node_modules/typebox/build/value/create/from_null.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_null.mjs +0 -4
- package/node_modules/typebox/build/value/create/from_number.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_number.mjs +0 -8
- package/node_modules/typebox/build/value/create/from_object.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_object.mjs +0 -9
- package/node_modules/typebox/build/value/create/from_record.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_record.mjs +0 -8
- package/node_modules/typebox/build/value/create/from_ref.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_ref.mjs +0 -9
- package/node_modules/typebox/build/value/create/from_string.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_string.mjs +0 -9
- package/node_modules/typebox/build/value/create/from_symbol.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_symbol.mjs +0 -4
- package/node_modules/typebox/build/value/create/from_template_literal.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_template_literal.mjs +0 -11
- package/node_modules/typebox/build/value/create/from_tuple.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_tuple.mjs +0 -5
- package/node_modules/typebox/build/value/create/from_type.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_type.mjs +0 -61
- package/node_modules/typebox/build/value/create/from_undefined.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_undefined.mjs +0 -4
- package/node_modules/typebox/build/value/create/from_union.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_union.mjs +0 -9
- package/node_modules/typebox/build/value/create/from_void.d.mts +0 -2
- package/node_modules/typebox/build/value/create/from_void.mjs +0 -4
- package/node_modules/typebox/build/value/create/index.d.mts +0 -2
- package/node_modules/typebox/build/value/create/index.mjs +0 -2
- package/node_modules/typebox/build/value/default/default.d.mts +0 -13
- package/node_modules/typebox/build/value/default/default.mjs +0 -15
- package/node_modules/typebox/build/value/default/from_array.d.mts +0 -2
- package/node_modules/typebox/build/value/default/from_array.mjs +0 -12
- package/node_modules/typebox/build/value/default/from_cyclic.d.mts +0 -2
- package/node_modules/typebox/build/value/default/from_cyclic.mjs +0 -7
- package/node_modules/typebox/build/value/default/from_default.d.mts +0 -3
- package/node_modules/typebox/build/value/default/from_default.mjs +0 -13
- package/node_modules/typebox/build/value/default/from_intersect.d.mts +0 -2
- package/node_modules/typebox/build/value/default/from_intersect.mjs +0 -9
- package/node_modules/typebox/build/value/default/from_object.d.mts +0 -2
- package/node_modules/typebox/build/value/default/from_object.mjs +0 -32
- package/node_modules/typebox/build/value/default/from_record.d.mts +0 -2
- package/node_modules/typebox/build/value/default/from_record.mjs +0 -26
- package/node_modules/typebox/build/value/default/from_ref.d.mts +0 -2
- package/node_modules/typebox/build/value/default/from_ref.mjs +0 -9
- package/node_modules/typebox/build/value/default/from_tuple.d.mts +0 -2
- package/node_modules/typebox/build/value/default/from_tuple.mjs +0 -14
- package/node_modules/typebox/build/value/default/from_type.d.mts +0 -2
- package/node_modules/typebox/build/value/default/from_type.mjs +0 -25
- package/node_modules/typebox/build/value/default/from_union.d.mts +0 -2
- package/node_modules/typebox/build/value/default/from_union.mjs +0 -14
- package/node_modules/typebox/build/value/default/index.d.mts +0 -1
- package/node_modules/typebox/build/value/default/index.mjs +0 -1
- package/node_modules/typebox/build/value/delta/diff.d.mts +0 -10
- package/node_modules/typebox/build/value/delta/diff.mjs +0 -135
- package/node_modules/typebox/build/value/delta/edit.d.mts +0 -24
- package/node_modules/typebox/build/value/delta/edit.mjs +0 -17
- package/node_modules/typebox/build/value/delta/index.d.mts +0 -3
- package/node_modules/typebox/build/value/delta/index.mjs +0 -3
- package/node_modules/typebox/build/value/delta/patch.d.mts +0 -8
- package/node_modules/typebox/build/value/delta/patch.mjs +0 -42
- package/node_modules/typebox/build/value/equal/equal.d.mts +0 -2
- package/node_modules/typebox/build/value/equal/equal.mjs +0 -6
- package/node_modules/typebox/build/value/equal/index.d.mts +0 -1
- package/node_modules/typebox/build/value/equal/index.mjs +0 -1
- package/node_modules/typebox/build/value/errors/errors.d.mts +0 -6
- package/node_modules/typebox/build/value/errors/errors.mjs +0 -12
- package/node_modules/typebox/build/value/errors/index.d.mts +0 -1
- package/node_modules/typebox/build/value/errors/index.mjs +0 -1
- package/node_modules/typebox/build/value/hash/hash.d.mts +0 -6
- package/node_modules/typebox/build/value/hash/hash.mjs +0 -10
- package/node_modules/typebox/build/value/hash/index.d.mts +0 -1
- package/node_modules/typebox/build/value/hash/index.mjs +0 -1
- package/node_modules/typebox/build/value/index.d.mts +0 -20
- package/node_modules/typebox/build/value/index.mjs +0 -29
- package/node_modules/typebox/build/value/parse/index.d.mts +0 -1
- package/node_modules/typebox/build/value/parse/index.mjs +0 -1
- package/node_modules/typebox/build/value/parse/parse.d.mts +0 -11
- package/node_modules/typebox/build/value/parse/parse.mjs +0 -53
- package/node_modules/typebox/build/value/pipeline/index.d.mts +0 -1
- package/node_modules/typebox/build/value/pipeline/index.mjs +0 -1
- package/node_modules/typebox/build/value/pipeline/pipeline.d.mts +0 -10
- package/node_modules/typebox/build/value/pipeline/pipeline.mjs +0 -15
- package/node_modules/typebox/build/value/pointer/index.d.mts +0 -1
- package/node_modules/typebox/build/value/pointer/index.mjs +0 -1
- package/node_modules/typebox/build/value/repair/error.d.mts +0 -7
- package/node_modules/typebox/build/value/repair/error.mjs +0 -8
- package/node_modules/typebox/build/value/repair/from_array.d.mts +0 -2
- package/node_modules/typebox/build/value/repair/from_array.mjs +0 -39
- package/node_modules/typebox/build/value/repair/from_cyclic.d.mts +0 -2
- package/node_modules/typebox/build/value/repair/from_cyclic.mjs +0 -6
- package/node_modules/typebox/build/value/repair/from_enum.d.mts +0 -2
- package/node_modules/typebox/build/value/repair/from_enum.mjs +0 -6
- package/node_modules/typebox/build/value/repair/from_intersect.d.mts +0 -2
- package/node_modules/typebox/build/value/repair/from_intersect.mjs +0 -8
- package/node_modules/typebox/build/value/repair/from_object.d.mts +0 -2
- package/node_modules/typebox/build/value/repair/from_object.mjs +0 -33
- package/node_modules/typebox/build/value/repair/from_record.d.mts +0 -2
- package/node_modules/typebox/build/value/repair/from_record.mjs +0 -33
- package/node_modules/typebox/build/value/repair/from_ref.d.mts +0 -2
- package/node_modules/typebox/build/value/repair/from_ref.mjs +0 -9
- package/node_modules/typebox/build/value/repair/from_template_literal.d.mts +0 -2
- package/node_modules/typebox/build/value/repair/from_template_literal.mjs +0 -7
- package/node_modules/typebox/build/value/repair/from_tuple.d.mts +0 -2
- package/node_modules/typebox/build/value/repair/from_tuple.mjs +0 -12
- package/node_modules/typebox/build/value/repair/from_type.d.mts +0 -2
- package/node_modules/typebox/build/value/repair/from_type.mjs +0 -88
- package/node_modules/typebox/build/value/repair/from_union.d.mts +0 -2
- package/node_modules/typebox/build/value/repair/from_union.mjs +0 -24
- package/node_modules/typebox/build/value/repair/from_unknown.d.mts +0 -2
- package/node_modules/typebox/build/value/repair/from_unknown.mjs +0 -12
- package/node_modules/typebox/build/value/repair/index.d.mts +0 -1
- package/node_modules/typebox/build/value/repair/index.mjs +0 -1
- package/node_modules/typebox/build/value/repair/repair.d.mts +0 -17
- package/node_modules/typebox/build/value/repair/repair.mjs +0 -20
- package/node_modules/typebox/build/value/shared/index.d.mts +0 -3
- package/node_modules/typebox/build/value/shared/index.mjs +0 -4
- package/node_modules/typebox/build/value/shared/optional_undefined.d.mts +0 -2
- package/node_modules/typebox/build/value/shared/optional_undefined.mjs +0 -15
- package/node_modules/typebox/build/value/shared/union_priority_sort.d.mts +0 -7
- package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +0 -83
- package/node_modules/typebox/build/value/shared/union_score_select.d.mts +0 -3
- package/node_modules/typebox/build/value/shared/union_score_select.mjs +0 -51
- package/node_modules/typebox/build/value/value.d.mts +0 -15
- package/node_modules/typebox/build/value/value.mjs +0 -15
- package/node_modules/typebox/license +0 -23
- package/node_modules/typebox/package.json +0 -87
- package/node_modules/typebox/readme.md +0 -339
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Web 监督面(**只读 · 本地优先 · 无依赖**)。
|
|
3
|
+
*
|
|
4
|
+
* 形态:`pi-proactive web [--port N] [--agent-dir D]` → Node 内置 http,**只监听 127.0.0.1**。
|
|
5
|
+
*
|
|
6
|
+
* 边界(越界即不合格):
|
|
7
|
+
* - **只读**:没有任何写配置的入口(无表单 / 无按钮 / 无写路由;写方法一律 405);
|
|
8
|
+
* - **单一数据源**:页面与 API 的数字全部来自 `src/supervisor-state.ts` 的**同一份聚合**
|
|
9
|
+
* (本模块**不重算**任何指标);
|
|
10
|
+
* - **本地优先**:绑定地址固定 `127.0.0.1`(不从其它网卡暴露);
|
|
11
|
+
* - **无依赖**:只用 Node 内置 `http` / `fs` / `path`,前端零框架零构建(样式内联)。
|
|
12
|
+
*
|
|
13
|
+
* 页面六块:状态卡 / 联系时间线 / 托付 / 阻塞 / 预算 / 守恒灯。
|
|
14
|
+
*/
|
|
15
|
+
import http from "node:http";
|
|
16
|
+
import { collectSupervisorState, formatBudgetLine, formatConservationLine, formatEntrustmentConservationLine, formatStatusLine, formatSupervisorSummary, } from "./supervisor-state.js";
|
|
17
|
+
/** 只监听的地址(**本地优先**:默认不暴露到局域网/公网)。 */
|
|
18
|
+
export const SUPERVISOR_HOST = "127.0.0.1";
|
|
19
|
+
/** HTML 转义(页面内容来自本地文件,仍按不可信处理)。 */
|
|
20
|
+
function esc(text) {
|
|
21
|
+
return text
|
|
22
|
+
.replace(/&/g, "&")
|
|
23
|
+
.replace(/</g, "<")
|
|
24
|
+
.replace(/>/g, ">")
|
|
25
|
+
.replace(/"/g, """);
|
|
26
|
+
}
|
|
27
|
+
/** 毫秒 → `MM-DD HH:mm:ss`(本地时区)。 */
|
|
28
|
+
function fmtTime(ts) {
|
|
29
|
+
const d = new Date(ts);
|
|
30
|
+
const p = (n) => String(n).padStart(2, "0");
|
|
31
|
+
return `${p(d.getMonth() + 1)}-${p(d.getDate())} ${p(d.getHours())}:${p(d.getMinutes())}:${p(d.getSeconds())}`;
|
|
32
|
+
}
|
|
33
|
+
const STYLE = `
|
|
34
|
+
:root { color-scheme: light dark; }
|
|
35
|
+
body { font: 14px/1.6 -apple-system, "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif; margin: 0; padding: 24px; }
|
|
36
|
+
h1 { font-size: 18px; margin: 0 0 4px; }
|
|
37
|
+
.sub { opacity: .65; font-size: 12px; margin-bottom: 16px; }
|
|
38
|
+
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
|
|
39
|
+
section { border: 1px solid rgba(128,128,128,.35); border-radius: 8px; padding: 12px 14px; }
|
|
40
|
+
section h2 { font-size: 14px; margin: 0 0 8px; letter-spacing: .04em; }
|
|
41
|
+
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
|
|
42
|
+
td, th { text-align: left; padding: 2px 6px 2px 0; vertical-align: top; }
|
|
43
|
+
.k { opacity: .6; white-space: nowrap; }
|
|
44
|
+
.ok { color: #1a7f37; font-weight: 600; }
|
|
45
|
+
.bad { color: #b42318; font-weight: 600; }
|
|
46
|
+
ul { margin: 4px 0 0; padding-left: 18px; }
|
|
47
|
+
li { font-size: 12.5px; }
|
|
48
|
+
details { margin-top: 8px; font-size: 12px; opacity: .8; }
|
|
49
|
+
code { font-size: 11.5px; }
|
|
50
|
+
`;
|
|
51
|
+
/** 一行键值表。 */
|
|
52
|
+
function row(key, value) {
|
|
53
|
+
return `<tr><td class="k">${esc(key)}</td><td>${value}</td></tr>`;
|
|
54
|
+
}
|
|
55
|
+
/** 状态卡。 */
|
|
56
|
+
function renderStatus(state) {
|
|
57
|
+
const s = state.status;
|
|
58
|
+
return [
|
|
59
|
+
"<table>",
|
|
60
|
+
row("摘要", esc(formatSupervisorSummary(state))),
|
|
61
|
+
row("宿主 / 进程", esc(formatStatusLine(state))),
|
|
62
|
+
row("在不在", s.running ? '<span class="ok">在跑</span>' : `<span class="bad">不在${s.notRunningReason ? `(${esc(s.notRunningReason)})` : ""}</span>`),
|
|
63
|
+
row("心跳时刻", s.heartbeatTs === undefined ? "—" : esc(fmtTime(s.heartbeatTs))),
|
|
64
|
+
row("上次联系", s.lastContactTs === undefined ? "从未" : esc(fmtTime(s.lastContactTs))),
|
|
65
|
+
row("值班身份", esc(s.agentId ?? "—")),
|
|
66
|
+
row("运行形态", esc(s.runMode ?? "—")),
|
|
67
|
+
row("总开关 / 联系开关", `${s.enabled === undefined ? "—" : s.enabled ? "开" : "关"} / ${s.contactEnabled === undefined ? "—" : s.contactEnabled ? "开" : "关"}`),
|
|
68
|
+
"</table>",
|
|
69
|
+
].join("");
|
|
70
|
+
}
|
|
71
|
+
/** 联系时间线。 */
|
|
72
|
+
function renderTimeline(state) {
|
|
73
|
+
if (state.timeline.length === 0)
|
|
74
|
+
return "<p>暂无记录</p>";
|
|
75
|
+
const rows = state.timeline
|
|
76
|
+
.slice()
|
|
77
|
+
.reverse()
|
|
78
|
+
.map((t) => {
|
|
79
|
+
const len = t.bodyLen === undefined ? "" : ` · 正文 ${t.bodyLen} 字`;
|
|
80
|
+
const digest = t.bodyDigest === undefined ? "" : ` · 摘要 ${t.bodyDigest}`;
|
|
81
|
+
const peer = t.peer === undefined ? "" : ` · 对端 ${t.peer}`;
|
|
82
|
+
return `<li><span class="k">${esc(fmtTime(t.ts))}</span> · ${esc(t.summary)}${esc(len)}${esc(digest)}${esc(peer)}</li>`;
|
|
83
|
+
})
|
|
84
|
+
.join("");
|
|
85
|
+
return `<ul>${rows}</ul>`;
|
|
86
|
+
}
|
|
87
|
+
/** 托付(含目标)。 */
|
|
88
|
+
function renderTrusts(state) {
|
|
89
|
+
if (state.trusts.length === 0 && state.goals.length === 0)
|
|
90
|
+
return "<p>暂无托付</p>";
|
|
91
|
+
const parts = [];
|
|
92
|
+
if (state.trusts.length > 0) {
|
|
93
|
+
const rows = state.trusts
|
|
94
|
+
.map((t) => `<li>${esc(t.target)} · <span class="k">${esc(t.status)}</span>${t.needsHuman ? " · 需人决策" : ""}${t.humanReason ? ` · ${esc(t.humanReason)}` : ""}</li>`)
|
|
95
|
+
.join("");
|
|
96
|
+
parts.push(`<table><tr><th>托付</th><th>状态</th></tr></table><ul>${rows}</ul>`);
|
|
97
|
+
}
|
|
98
|
+
if (state.goals.length > 0) {
|
|
99
|
+
const rows = state.goals
|
|
100
|
+
.map((g) => `<li>${esc(g.title)} · <span class="k">${esc(g.status)}</span> · 推进 ${g.progressSteps} 步 · 行动 ${g.usedActions}/${g.maxActions}${g.humanReason ? ` · ${esc(g.humanReason)}` : ""}</li>`)
|
|
101
|
+
.join("");
|
|
102
|
+
parts.push(`<ul>${rows}</ul>`);
|
|
103
|
+
}
|
|
104
|
+
return parts.join("");
|
|
105
|
+
}
|
|
106
|
+
/** 阻塞。 */
|
|
107
|
+
function renderBlockers(state) {
|
|
108
|
+
if (state.blockers.length === 0)
|
|
109
|
+
return '<p class="ok">无阻塞</p>';
|
|
110
|
+
const rows = state.blockers
|
|
111
|
+
.map((b) => `<li>${esc(b.title)}${b.detail ? ` · ${esc(b.detail)}` : ""}</li>`)
|
|
112
|
+
.join("");
|
|
113
|
+
return `<ul>${rows}</ul>`;
|
|
114
|
+
}
|
|
115
|
+
/** 预算。 */
|
|
116
|
+
function renderBudget(state) {
|
|
117
|
+
return [
|
|
118
|
+
"<table>",
|
|
119
|
+
row("余量", esc(formatBudgetLine(state))),
|
|
120
|
+
row("闸门", state.budget.exhausted ? `<span class="bad">${esc(state.budget.reason ?? "已耗尽")}</span>` : '<span class="ok">未耗尽</span>'),
|
|
121
|
+
row("耗尽时降级", state.budget.degradeToObserve ? "降级为只观察" : "直接停下"),
|
|
122
|
+
row("配置", state.budget.configured ? "已读 daemon.json" : "未配置(按缺省上限显示)"),
|
|
123
|
+
"</table>",
|
|
124
|
+
].join("");
|
|
125
|
+
}
|
|
126
|
+
/** 守恒灯。 */
|
|
127
|
+
function renderConservation(state) {
|
|
128
|
+
const c = state.conservation;
|
|
129
|
+
return [
|
|
130
|
+
"<table>",
|
|
131
|
+
row("行为四段", esc(formatConservationLine(state))),
|
|
132
|
+
row("托付四段", esc(formatEntrustmentConservationLine(state))),
|
|
133
|
+
row("回应率", `${(c.responseRate * 100).toFixed(1)}%`),
|
|
134
|
+
row("托付闭环率", `${(c.closureRate * 100).toFixed(1)}%`),
|
|
135
|
+
row("守候时长", `${Math.round(c.watchDurationMs / 1000)} 秒`),
|
|
136
|
+
row("判定", c.equal ? '<span class="ok">四段相等(无悬空)</span>' : '<span class="bad">四段不等(有悬空)</span>'),
|
|
137
|
+
"</table>",
|
|
138
|
+
].join("");
|
|
139
|
+
}
|
|
140
|
+
/** 渲染整页(**服务端渲染**:一处渲染实现 → 页面与 API 不会各说各话)。 */
|
|
141
|
+
export function renderSupervisorHtml(state) {
|
|
142
|
+
return `<!doctype html>
|
|
143
|
+
<html lang="zh-CN">
|
|
144
|
+
<head>
|
|
145
|
+
<meta charset="utf-8">
|
|
146
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
147
|
+
<meta http-equiv="refresh" content="5">
|
|
148
|
+
<title>pi-proactive 监督面</title>
|
|
149
|
+
<style>${STYLE}</style>
|
|
150
|
+
</head>
|
|
151
|
+
<body>
|
|
152
|
+
<h1>pi-proactive 监督面(只读)</h1>
|
|
153
|
+
<p class="sub">数据源:${esc(state.agentDir)} · 聚合于 ${esc(fmtTime(state.generatedAt))} · 本页只读,改配置请回 Pi 会话</p>
|
|
154
|
+
<div class="grid">
|
|
155
|
+
<section><h2>① 状态卡</h2>${renderStatus(state)}</section>
|
|
156
|
+
<section><h2>② 联系时间线</h2>${renderTimeline(state)}</section>
|
|
157
|
+
<section><h2>③ 托付</h2>${renderTrusts(state)}</section>
|
|
158
|
+
<section><h2>④ 阻塞</h2>${renderBlockers(state)}</section>
|
|
159
|
+
<section><h2>⑤ 预算</h2>${renderBudget(state)}</section>
|
|
160
|
+
<section><h2>⑥ 守恒灯</h2>${renderConservation(state)}</section>
|
|
161
|
+
</div>
|
|
162
|
+
<details><summary>数据源路径(可折叠)</summary>
|
|
163
|
+
<code>${esc(state.agentDir)}/proactive/lineage/*.jsonl</code><br>
|
|
164
|
+
<code>${esc(state.agentDir)}/proactive/daemon/heartbeat.json</code><br>
|
|
165
|
+
<code>${esc(state.agentDir)}/proactive/daemon/state.json</code><br>
|
|
166
|
+
<code>${esc(state.agentDir)}/proactive/daemon.json</code><br>
|
|
167
|
+
<code>${esc(state.agentDir)}/proactive/trust/registry.json</code>
|
|
168
|
+
</details>
|
|
169
|
+
</body>
|
|
170
|
+
</html>
|
|
171
|
+
`;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* 启动 Web 监督面(**只监听 127.0.0.1**)。
|
|
175
|
+
*
|
|
176
|
+
* @param opts 见 {@link SupervisorWebOptions}。
|
|
177
|
+
*/
|
|
178
|
+
export async function startSupervisorWeb(opts = {}) {
|
|
179
|
+
const port = opts.port ?? 7799;
|
|
180
|
+
const collect = () => collectSupervisorState({
|
|
181
|
+
...(opts.agentDir !== undefined ? { agentDir: opts.agentDir } : {}),
|
|
182
|
+
...(opts.agentId !== undefined ? { agentId: opts.agentId } : {}),
|
|
183
|
+
...(opts.timelineLimit !== undefined ? { timelineLimit: opts.timelineLimit } : {}),
|
|
184
|
+
});
|
|
185
|
+
const server = http.createServer((req, res) => {
|
|
186
|
+
// **只读**:只接受 GET / HEAD;其余方法一律 405(页面不提供任何写入口)。
|
|
187
|
+
const method = (req.method ?? "GET").toUpperCase();
|
|
188
|
+
if (method !== "GET" && method !== "HEAD") {
|
|
189
|
+
res.writeHead(405, { "content-type": "text/plain; charset=utf-8" });
|
|
190
|
+
res.end("只读:监督面不接受写操作\n");
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
const url = req.url ?? "/";
|
|
194
|
+
const pathOnly = url.split("?")[0];
|
|
195
|
+
try {
|
|
196
|
+
if (pathOnly === "/" || pathOnly === "/index.html") {
|
|
197
|
+
const body = renderSupervisorHtml(collect());
|
|
198
|
+
res.writeHead(200, { "content-type": "text/html; charset=utf-8" });
|
|
199
|
+
res.end(method === "HEAD" ? undefined : body);
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
if (pathOnly === "/api/state") {
|
|
203
|
+
const body = JSON.stringify(collect(), null, 2);
|
|
204
|
+
res.writeHead(200, { "content-type": "application/json; charset=utf-8" });
|
|
205
|
+
res.end(method === "HEAD" ? undefined : body);
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
if (pathOnly === "/api/timeline") {
|
|
209
|
+
const state = collect();
|
|
210
|
+
const body = JSON.stringify({ timeline: state.timeline, conservation: state.conservation }, null, 2);
|
|
211
|
+
res.writeHead(200, { "content-type": "application/json; charset=utf-8" });
|
|
212
|
+
res.end(method === "HEAD" ? undefined : body);
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
if (pathOnly === "/api/trusts") {
|
|
216
|
+
const state = collect();
|
|
217
|
+
const body = JSON.stringify({ trusts: state.trusts, goals: state.goals }, null, 2);
|
|
218
|
+
res.writeHead(200, { "content-type": "application/json; charset=utf-8" });
|
|
219
|
+
res.end(method === "HEAD" ? undefined : body);
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
if (pathOnly === "/api/budget") {
|
|
223
|
+
const state = collect();
|
|
224
|
+
const body = JSON.stringify({ budget: state.budget, blockers: state.blockers }, null, 2);
|
|
225
|
+
res.writeHead(200, { "content-type": "application/json; charset=utf-8" });
|
|
226
|
+
res.end(method === "HEAD" ? undefined : body);
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
res.writeHead(404, { "content-type": "text/plain; charset=utf-8" });
|
|
230
|
+
res.end("没有这个页面\n");
|
|
231
|
+
}
|
|
232
|
+
catch (err) {
|
|
233
|
+
res.writeHead(500, { "content-type": "text/plain; charset=utf-8" });
|
|
234
|
+
res.end(`监督面内部错误:${err instanceof Error ? err.message : String(err)}\n`);
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
await new Promise((resolve, reject) => {
|
|
238
|
+
server.once("error", reject);
|
|
239
|
+
// **只监听 127.0.0.1**(不传 host → 会监听全部网卡 → 违反本地优先)。
|
|
240
|
+
server.listen(port, SUPERVISOR_HOST, () => {
|
|
241
|
+
server.removeListener("error", reject);
|
|
242
|
+
resolve();
|
|
243
|
+
});
|
|
244
|
+
});
|
|
245
|
+
const address = server.address();
|
|
246
|
+
const actualPort = typeof address === "object" && address !== null ? address.port : port;
|
|
247
|
+
let closed = false;
|
|
248
|
+
return {
|
|
249
|
+
url: `http://${SUPERVISOR_HOST}:${actualPort}`,
|
|
250
|
+
port: actualPort,
|
|
251
|
+
close: async () => {
|
|
252
|
+
if (closed)
|
|
253
|
+
return;
|
|
254
|
+
closed = true;
|
|
255
|
+
await new Promise((resolve) => {
|
|
256
|
+
server.close(() => resolve());
|
|
257
|
+
// 断开残留连接,保证端口**立即**释放(否则 close 会挂住)。
|
|
258
|
+
server.closeAllConnections?.();
|
|
259
|
+
});
|
|
260
|
+
},
|
|
261
|
+
};
|
|
262
|
+
}
|
package/build/src/task-store.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// 【S0 归属】L1 内核 · 宿主无关(契约:docs/project/kernel-contract-s0.md §6.1)
|
|
2
|
+
// → 不得 import 宿主包、不得出现宿主类型/字段;对外只经宿主无关接口(HostPort 一族)。
|
|
1
3
|
import fs from "node:fs";
|
|
2
4
|
import path from "node:path";
|
|
3
5
|
import { PROACTIVE_FILE_MODE, chmodQuiet, ensureDir, proactiveDir, resolveAgentDir, writeAtomicFile, } from "./config.js";
|
package/build/src/thread.js
CHANGED
package/build/src/trigger.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { digestOf } from "./lineage.js";
|
|
2
|
+
import { evaluateShallowIdle, isIdleTriggerEnvelope } from "./trust-policy.js";
|
|
2
3
|
/** 注入内容自带来源前缀(custom 消息在 LLM 层会变成 role:"user",模型无法自行区分来源)。 */
|
|
3
4
|
const SOURCE_PREFIX = "[来自 proactive]";
|
|
4
5
|
/** 本地触发的 customType(跨进程 peer 用 "proactive:peer",M4 才需要)。 */
|
|
@@ -87,6 +88,13 @@ export class Trigger {
|
|
|
87
88
|
try {
|
|
88
89
|
// **触发原因落盘(因)**:判定通过、决定触发的那一刻就把 cause + 判定依据写进事件流。
|
|
89
90
|
this.noteTriggered(msg, cause);
|
|
91
|
+
// **空闲浅层闸门**(卡 D2):空闲触发默认静默 —— 没有用户交代、或分数不足 → 不开口。
|
|
92
|
+
// 缺省未注入 `trustPolicy` → 闸门不生效(既有行为逐字不变)。
|
|
93
|
+
const shallow = this.evaluateShallow(msg, cause);
|
|
94
|
+
if (shallow !== undefined && !shallow.speak) {
|
|
95
|
+
this.noteDropped(msg, cause, shallow.reason);
|
|
96
|
+
return "dropped";
|
|
97
|
+
}
|
|
90
98
|
if (intent === "notify") {
|
|
91
99
|
this.notifyOnly(msg.subject ?? "proactive", msg.body, msg);
|
|
92
100
|
this.noteDelivery(msg, cause, "notified");
|
|
@@ -133,6 +141,41 @@ export class Trigger {
|
|
|
133
141
|
console.error("[proactive] notify 失败", err);
|
|
134
142
|
}
|
|
135
143
|
}
|
|
144
|
+
/**
|
|
145
|
+
* 空闲浅层判定(卡 D2):**不是**空闲触发、或未注入策略 → 返回 undefined(闸门不生效)。
|
|
146
|
+
*
|
|
147
|
+
* 分量的来源(可复核):
|
|
148
|
+
* - 价值 = `已空闲时长 / 空闲阈值`(有判定依据时)——缺依据时按 1 计(已由上游判定为可触发);
|
|
149
|
+
* - 紧急度 = 1(空闲 = 用户不在场);
|
|
150
|
+
* - 打断代价 = 1(浅层判定发生在护栏记账之前,此处不重复计费)。
|
|
151
|
+
*/
|
|
152
|
+
evaluateShallow(msg, cause) {
|
|
153
|
+
const policy = this.deps.trustPolicy;
|
|
154
|
+
if (policy === undefined || policy.enabled === false)
|
|
155
|
+
return undefined;
|
|
156
|
+
if (!isIdleTriggerEnvelope(msg) && cause.type !== "idle")
|
|
157
|
+
return undefined;
|
|
158
|
+
const basis = cause.basis;
|
|
159
|
+
const hasRatio = basis?.idleForMs !== undefined && basis.thresholdMs !== undefined && basis.thresholdMs > 0;
|
|
160
|
+
const value = hasRatio ? (basis?.idleForMs ?? 0) / (basis?.thresholdMs ?? 1) : 1;
|
|
161
|
+
let backed = false;
|
|
162
|
+
try {
|
|
163
|
+
backed = this.deps.hasUserBacking?.() === true;
|
|
164
|
+
}
|
|
165
|
+
catch (err) {
|
|
166
|
+
console.error("[proactive] 是否有用户交代判定失败(按没有交代处理)", err);
|
|
167
|
+
}
|
|
168
|
+
return evaluateShallowIdle({
|
|
169
|
+
policy,
|
|
170
|
+
value,
|
|
171
|
+
valueSource: hasRatio ? "trust-policy: idleForMs/thresholdMs" : "trust-policy: default",
|
|
172
|
+
urgency: 1,
|
|
173
|
+
urgencySource: "trust-policy: idle",
|
|
174
|
+
interruptionCost: 1,
|
|
175
|
+
interruptionCostSource: "trust-policy: default",
|
|
176
|
+
backedByUserRequest: backed,
|
|
177
|
+
});
|
|
178
|
+
}
|
|
136
179
|
/**
|
|
137
180
|
* 向用户提问,并把结局分成**回答 / 用户取消(Esc)/ 超时未答**三种。
|
|
138
181
|
*
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 目标驱动与自主推进的**执行环**(卡 D6 / D7)+ 人机分工(卡 D3)。
|
|
3
|
+
*
|
|
4
|
+
* 同一套循环,三档自主度(`docs/product/agentic-loop.md` §1):
|
|
5
|
+
* ```
|
|
6
|
+
* 目标 → 候选行动 → 打分(DECIDE1) → 执行 → 结账(带归因) → 回灌目标进度
|
|
7
|
+
* 自主档位:L-B 托付(条件由用户给) / L-C 目标驱动(条件由 AI 推导)
|
|
8
|
+
* / L-D 自主推进(目标由 AI 从账本的未竟事项里发现)
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* **六条必要前提**(缺一即不得进入自主推进,`docs/product/agentic-loop.md` §2):
|
|
12
|
+
* ```
|
|
13
|
+
* ① 目标可判定 ② 预算硬上限 ③ 权限阶梯
|
|
14
|
+
* ④ 可中止可撤销 ⑤ 可追溯 ⑥ 不越界(范围外显式请求授权)
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* 红线(§6):
|
|
18
|
+
* - 不得替人做**需要担责**的决定 → 不可逆 / 对外 / 价值取舍 → 一律 **human-gated**;
|
|
19
|
+
* - 不得**假装完成** → 未达成的目标必须显式产出「未达成 / 需人决策」记录,**不得静默结账**;
|
|
20
|
+
* - 不得在目标外动手 → 范围外 → 产出**显式请求授权**的记录(不是自动执行)。
|
|
21
|
+
*
|
|
22
|
+
* @capability: trust-loop
|
|
23
|
+
* @observable: pi-proactive/src/trust-loop.ts:advanceCandidate
|
|
24
|
+
* @attribution: pi-proactive/src/trust-loop.ts:advanceCandidate
|
|
25
|
+
* @outcome: pi-proactive/src/trust-metrics.ts:TrustMetrics
|
|
26
|
+
* @checked: test:pi-proactive/tests/trust-loop.test.ts#D6-3 执行 → 结账带归因
|
|
27
|
+
*/
|
|
28
|
+
import { scoreDecision } from "./idle.js";
|
|
29
|
+
import { goalGap, goalSatisfied, isDecidable, } from "./trust-registry.js";
|
|
30
|
+
/**
|
|
31
|
+
* 权限阶梯(护栏③):**人的经历有效** → 需要担责的决定必须回到人手里。
|
|
32
|
+
*
|
|
33
|
+
* - `read` / `write`(可撤销)→ AI 可自主做;
|
|
34
|
+
* - `external`(对外承诺)/ `irreversible`(不可逆)/ `value-judgment`(取舍与价值排序)
|
|
35
|
+
* → **human-gated**:只能生成待人决策的记录,**不得自动执行**。
|
|
36
|
+
*/
|
|
37
|
+
export function resolvePermissionTier(actionType) {
|
|
38
|
+
switch (actionType) {
|
|
39
|
+
case "read":
|
|
40
|
+
return "auto";
|
|
41
|
+
case "write":
|
|
42
|
+
return "limited";
|
|
43
|
+
default:
|
|
44
|
+
return "human-gated";
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/** 六条护栏(缺一即不得进入自主推进)。 */
|
|
48
|
+
export const GUARDRAILS = [
|
|
49
|
+
"goal-decidable",
|
|
50
|
+
"budget-cap",
|
|
51
|
+
"permission-ladder",
|
|
52
|
+
"abortable-revocable",
|
|
53
|
+
"traceable",
|
|
54
|
+
"in-scope",
|
|
55
|
+
];
|
|
56
|
+
/**
|
|
57
|
+
* 六条护栏的判定(纯函数)。
|
|
58
|
+
*
|
|
59
|
+
* @param budgetAvailable 预算是否还有余额(由调用方用登记册的预算账本判定)。
|
|
60
|
+
*/
|
|
61
|
+
export function checkGuardrails(goal, candidate, budgetAvailable) {
|
|
62
|
+
const violations = [];
|
|
63
|
+
if (!isDecidable(goal))
|
|
64
|
+
violations.push({ rule: "goal-decidable", detail: "目标缺可判定的完成定义" });
|
|
65
|
+
if (!budgetAvailable || goal.budget.maxActions <= goal.budget.usedActions) {
|
|
66
|
+
violations.push({ rule: "budget-cap", detail: `预算已用尽(${goal.budget.usedActions}/${goal.budget.maxActions})` });
|
|
67
|
+
}
|
|
68
|
+
const expected = resolvePermissionTier(candidate.actionType);
|
|
69
|
+
if (candidate.permission !== expected) {
|
|
70
|
+
violations.push({ rule: "permission-ladder", detail: `权限档与动作种类不符(${candidate.permission} ≠ ${expected})` });
|
|
71
|
+
}
|
|
72
|
+
if (goal.permission === "human-gated" && candidate.permission !== "human-gated") {
|
|
73
|
+
violations.push({ rule: "permission-ladder", detail: "目标整体要求 human-gated" });
|
|
74
|
+
}
|
|
75
|
+
if (!candidate.reversible && candidate.permission !== "human-gated") {
|
|
76
|
+
violations.push({ rule: "abortable-revocable", detail: "不可撤销的动作不得自主执行" });
|
|
77
|
+
}
|
|
78
|
+
if (candidate.reason.trim() === "" || candidate.goalId === "") {
|
|
79
|
+
violations.push({ rule: "traceable", detail: "缺归因(为什么做 / 让哪个目标更近)" });
|
|
80
|
+
}
|
|
81
|
+
if (goal.scope.length > 0 && !goal.scope.includes(candidate.scope)) {
|
|
82
|
+
violations.push({ rule: "in-scope", detail: `范围外(${candidate.scope} ∉ ${goal.scope.join("/")})` });
|
|
83
|
+
}
|
|
84
|
+
return { ok: violations.length === 0, violations };
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* 由**目标差距**推导候选行动(卡 D6 的「候选」步)。
|
|
88
|
+
*
|
|
89
|
+
* - 完成定义缺失 → **没有候选**(不可判定的目标不许推进);
|
|
90
|
+
* - 清单型 → 每个未完成项一个候选;指标型 → 一个候选(把指标推向目标值)。
|
|
91
|
+
*/
|
|
92
|
+
export function deriveCandidates(goal, opts = {}) {
|
|
93
|
+
if (!isDecidable(goal))
|
|
94
|
+
return [];
|
|
95
|
+
const threshold = opts.threshold ?? 1;
|
|
96
|
+
const observeRatio = opts.observeRatio ?? 0.5;
|
|
97
|
+
const actionType = opts.actionType ?? "write";
|
|
98
|
+
const gap = goalGap(goal);
|
|
99
|
+
const scope = goal.scope[0] ?? goal.id;
|
|
100
|
+
const value = gap.ratio;
|
|
101
|
+
const urgency = 1;
|
|
102
|
+
const interruptionCost = 1;
|
|
103
|
+
const scoring = scoreDecision({
|
|
104
|
+
value: { score: value, source: "trust-loop: goalGap.ratio" },
|
|
105
|
+
urgency: { score: urgency, source: "trust-loop: goal.open" },
|
|
106
|
+
interruptionCost: { score: interruptionCost, source: "trust-loop: default" },
|
|
107
|
+
}, threshold, observeRatio);
|
|
108
|
+
const base = {
|
|
109
|
+
goalId: goal.id,
|
|
110
|
+
actionType,
|
|
111
|
+
permission: resolvePermissionTier(actionType),
|
|
112
|
+
scope,
|
|
113
|
+
reversible: true,
|
|
114
|
+
value,
|
|
115
|
+
valueSource: "trust-loop: goalGap.ratio",
|
|
116
|
+
urgency,
|
|
117
|
+
urgencySource: "trust-loop: goal.open",
|
|
118
|
+
interruptionCost,
|
|
119
|
+
interruptionCostSource: "trust-loop: default",
|
|
120
|
+
score: scoring.score,
|
|
121
|
+
band: scoring.band,
|
|
122
|
+
};
|
|
123
|
+
if (goal.doneWhen?.type === "checklist") {
|
|
124
|
+
return goal.doneWhen.items
|
|
125
|
+
.filter((i) => !i.done)
|
|
126
|
+
.map((item) => ({
|
|
127
|
+
...base,
|
|
128
|
+
id: `${goal.id}#${item.id}`,
|
|
129
|
+
action: item.text,
|
|
130
|
+
reason: `目标「${goal.title}」尚差:${item.text}(差距 ${gap.remaining}/${gap.total})`,
|
|
131
|
+
}));
|
|
132
|
+
}
|
|
133
|
+
const metric = goal.doneWhen;
|
|
134
|
+
return [
|
|
135
|
+
{
|
|
136
|
+
...base,
|
|
137
|
+
id: `${goal.id}#metric`,
|
|
138
|
+
action: `${metric.name} → ${metric.op} ${metric.target}`,
|
|
139
|
+
reason: `目标「${goal.title}」的 ${metric.name} 当前 ${metric.current},目标 ${metric.op} ${metric.target}`,
|
|
140
|
+
},
|
|
141
|
+
];
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* 推进一个候选行动(卡 D6 的「执行 → 结账」,卡 D7 的护栏)。
|
|
145
|
+
*
|
|
146
|
+
* 判定顺序(**顺序本身就是语义**):
|
|
147
|
+
* 1. 目标不存在 → failed(不静默);
|
|
148
|
+
* 2. 六条护栏 → 有违规 → blocked(**显式记录**,不执行);
|
|
149
|
+
* 3. 权限档 = human-gated → human-gated(**不执行、不结账**,产出待人决策记录);
|
|
150
|
+
* 4. 消耗预算(硬上限)→ 不足 → blocked;
|
|
151
|
+
* 5. 执行 → 失败 → failed(**不静默结账**);
|
|
152
|
+
* 6. 成功 → 结账:写归因(让哪个目标前进了多少)→ 回灌进度;
|
|
153
|
+
* 目标仍**未达成** → 显式产出「未达成」记录(**不得静默结账**)。
|
|
154
|
+
*/
|
|
155
|
+
export async function advanceCandidate(deps, candidate) {
|
|
156
|
+
if (candidate.entrustmentId !== undefined) {
|
|
157
|
+
// 托付路径:自主推进发现的「未闭合待办」→ 走托付的知会/结账流程。
|
|
158
|
+
const e = deps.registry.getEntrustment(candidate.entrustmentId);
|
|
159
|
+
if (e === undefined) {
|
|
160
|
+
deps.lineage?.noteTrust({ stage: "blocked", entrustmentId: candidate.entrustmentId, reason: "entrustment-not-found" });
|
|
161
|
+
return { result: "failed", candidate, reason: "托付不存在" };
|
|
162
|
+
}
|
|
163
|
+
if (e.needsHuman === true) {
|
|
164
|
+
const reason = e.humanReason ?? "需要人决定";
|
|
165
|
+
deps.registry.markNeedsHuman(e.id, reason);
|
|
166
|
+
deps.lineage?.noteTrust({ stage: "human-gated", entrustmentId: e.id, goalId: e.goalId, reason });
|
|
167
|
+
return { result: "human-gated", candidate, reason };
|
|
168
|
+
}
|
|
169
|
+
if (e.status !== "arrived" && e.status !== "notified") {
|
|
170
|
+
const reason = `托付尚未到达(${e.status})→ 不结账`;
|
|
171
|
+
deps.lineage?.noteTrust({ stage: "blocked", entrustmentId: e.id, goalId: e.goalId, reason });
|
|
172
|
+
return { result: "blocked", candidate, violations: [{ rule: "goal-decidable", detail: reason }] };
|
|
173
|
+
}
|
|
174
|
+
const closed = closeEntrustment(deps, e.id);
|
|
175
|
+
if (closed.result === "human-gated") {
|
|
176
|
+
return { result: "human-gated", candidate, reason: closed.reason ?? "需人决定" };
|
|
177
|
+
}
|
|
178
|
+
return { result: "settled", candidate, attribution: { goalId: e.goalId ?? "", progressDelta: 1 } };
|
|
179
|
+
}
|
|
180
|
+
const goal = deps.registry.getGoal(candidate.goalId);
|
|
181
|
+
if (goal === undefined) {
|
|
182
|
+
deps.lineage?.noteTrust({ stage: "blocked", goalId: candidate.goalId, reason: "goal-not-found" });
|
|
183
|
+
return { result: "failed", candidate, reason: "目标不存在" };
|
|
184
|
+
}
|
|
185
|
+
const budgetAvailable = goal.budget.usedActions < goal.budget.maxActions;
|
|
186
|
+
const report = checkGuardrails(goal, candidate, budgetAvailable);
|
|
187
|
+
if (!report.ok) {
|
|
188
|
+
const detail = report.violations.map((v) => `${v.rule}:${v.detail}`).join(";");
|
|
189
|
+
deps.lineage?.noteTrust({ stage: "blocked", goalId: goal.id, reason: detail });
|
|
190
|
+
// 范围外 / 不可判定 → 显式请求授权或人决策(**不是**自动执行)。
|
|
191
|
+
if (report.violations.some((v) => v.rule === "in-scope" || v.rule === "goal-decidable")) {
|
|
192
|
+
deps.registry.setGoalStatus(goal.id, "needs-human", `需要人授权或补充定义:${detail}`);
|
|
193
|
+
}
|
|
194
|
+
return { result: "blocked", candidate, violations: report.violations };
|
|
195
|
+
}
|
|
196
|
+
if (candidate.permission === "human-gated") {
|
|
197
|
+
const reason = `该动作需人担责(${candidate.actionType})→ 不自动执行`;
|
|
198
|
+
deps.registry.setGoalStatus(goal.id, "needs-human", reason);
|
|
199
|
+
deps.lineage?.noteTrust({ stage: "human-gated", goalId: goal.id, reason });
|
|
200
|
+
return { result: "human-gated", candidate, reason };
|
|
201
|
+
}
|
|
202
|
+
if (!deps.registry.consumeBudget(goal.id)) {
|
|
203
|
+
const detail = `预算硬上限已到(${goal.budget.usedActions}/${goal.budget.maxActions})`;
|
|
204
|
+
deps.lineage?.noteTrust({ stage: "blocked", goalId: goal.id, reason: detail });
|
|
205
|
+
return { result: "blocked", candidate, violations: [{ rule: "budget-cap", detail }] };
|
|
206
|
+
}
|
|
207
|
+
let result;
|
|
208
|
+
try {
|
|
209
|
+
result = deps.execute !== undefined ? await deps.execute(candidate) : { ok: true, progressDelta: 1 };
|
|
210
|
+
}
|
|
211
|
+
catch (err) {
|
|
212
|
+
const reason = `执行异常:${err instanceof Error ? err.message : String(err)}`;
|
|
213
|
+
deps.lineage?.noteTrust({ stage: "blocked", goalId: goal.id, reason });
|
|
214
|
+
return { result: "failed", candidate, reason };
|
|
215
|
+
}
|
|
216
|
+
if (!result.ok) {
|
|
217
|
+
const reason = `执行未成功:${result.result ?? "未说明"}`;
|
|
218
|
+
deps.lineage?.noteTrust({ stage: "blocked", goalId: goal.id, reason });
|
|
219
|
+
return { result: "failed", candidate, reason };
|
|
220
|
+
}
|
|
221
|
+
const delta = result.progressDelta ?? 1;
|
|
222
|
+
deps.registry.recordProgress(goal.id, delta);
|
|
223
|
+
deps.lineage?.noteTrust({ stage: "progress", goalId: goal.id, progressDelta: delta });
|
|
224
|
+
const after = deps.registry.getGoal(goal.id);
|
|
225
|
+
const satisfied = after !== undefined && goalSatisfied(after);
|
|
226
|
+
if (satisfied && after !== undefined) {
|
|
227
|
+
deps.registry.setGoalStatus(after.id, "achieved");
|
|
228
|
+
deps.lineage?.noteTrust({ stage: "progress", goalId: after.id, progressDelta: delta, reason: "goal-achieved" });
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
// **未达成不得静默结账**:显式记一条「仍未达成」。
|
|
232
|
+
deps.lineage?.noteTrust({ stage: "progress", goalId: goal.id, progressDelta: delta, reason: "goal-not-satisfied" });
|
|
233
|
+
}
|
|
234
|
+
return { result: "settled", candidate, attribution: { goalId: goal.id, progressDelta: delta } };
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* 登记一条托付并落 `registered` 事件(**登记与账本同一处** → 不会漏段)。
|
|
238
|
+
*/
|
|
239
|
+
export function openEntrustment(deps, input) {
|
|
240
|
+
const e = deps.registry.registerEntrustment(input);
|
|
241
|
+
deps.lineage?.noteTrust({ stage: "registered", entrustmentId: e.id, goalId: e.goalId });
|
|
242
|
+
return e;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* 托付到达(第二段):状态迁移 + `arrived` 事件(同一处 → 不会漏段)。
|
|
246
|
+
*/
|
|
247
|
+
export function arriveEntrustment(deps, entrustmentId) {
|
|
248
|
+
const e = deps.registry.markArrived(entrustmentId);
|
|
249
|
+
if (e === undefined)
|
|
250
|
+
return undefined;
|
|
251
|
+
deps.lineage?.noteTrust({ stage: "arrived", entrustmentId: e.id, goalId: e.goalId });
|
|
252
|
+
return e;
|
|
253
|
+
}
|
|
254
|
+
/** 托付条件的判定(**可判定**:到点 / 状态命中)。 */
|
|
255
|
+
export function evaluateEntrustmentCondition(entrustment, now, state) {
|
|
256
|
+
const c = entrustment.condition;
|
|
257
|
+
if (c.type === "at")
|
|
258
|
+
return now >= c.dueAt;
|
|
259
|
+
if (state === undefined)
|
|
260
|
+
return false;
|
|
261
|
+
return state[c.key] === c.equals;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* 关闭一条托付(**结账**;卡 D3:需要人决定的不得自动结账)。
|
|
265
|
+
*
|
|
266
|
+
* - `needsHuman` → 产出 human-gated 记录,**不结账**;
|
|
267
|
+
* - 否则 → 结账 + 落 `settled` 事件。
|
|
268
|
+
*/
|
|
269
|
+
export function closeEntrustment(deps, entrustmentId) {
|
|
270
|
+
const e = deps.registry.getEntrustment(entrustmentId);
|
|
271
|
+
if (e === undefined)
|
|
272
|
+
return { result: "human-gated", reason: "托付不存在" };
|
|
273
|
+
if (e.needsHuman === true) {
|
|
274
|
+
const reason = e.humanReason ?? "需要人决定";
|
|
275
|
+
deps.registry.markNeedsHuman(entrustmentId, reason);
|
|
276
|
+
deps.lineage?.noteTrust({ stage: "human-gated", entrustmentId, goalId: e.goalId, reason });
|
|
277
|
+
return { result: "human-gated", reason };
|
|
278
|
+
}
|
|
279
|
+
const settled = deps.registry.settle(entrustmentId);
|
|
280
|
+
if (settled === undefined) {
|
|
281
|
+
const reason = `托付当前状态不可结账(${e.status})`;
|
|
282
|
+
deps.lineage?.noteTrust({ stage: "blocked", entrustmentId, goalId: e.goalId, reason });
|
|
283
|
+
return { result: "human-gated", reason };
|
|
284
|
+
}
|
|
285
|
+
deps.lineage?.noteTrust({ stage: "settled", entrustmentId, goalId: e.goalId });
|
|
286
|
+
return { result: "settled" };
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* 自主推进的**下一步发现**(卡 D7 的 L-D)。
|
|
290
|
+
*
|
|
291
|
+
* 来源:**未竟目标**(登记册里 `open` 的目标)与**未闭合待办**(未闭合的托付)。
|
|
292
|
+
* 不是凭空生成 —— 每个候选都能指回一条账本记录。
|
|
293
|
+
*/
|
|
294
|
+
export function discoverNextCandidates(deps, opts = {}) {
|
|
295
|
+
const out = [];
|
|
296
|
+
for (const goal of deps.registry.listOpenGoals()) {
|
|
297
|
+
out.push(...deriveCandidates(goal, opts));
|
|
298
|
+
}
|
|
299
|
+
for (const e of deps.registry.listUnclosedEntrustments()) {
|
|
300
|
+
out.push({
|
|
301
|
+
id: `${e.id}#close`,
|
|
302
|
+
entrustmentId: e.id,
|
|
303
|
+
goalId: e.goalId ?? "",
|
|
304
|
+
action: `处理未闭合托付:${e.target}`,
|
|
305
|
+
actionType: "write",
|
|
306
|
+
permission: resolvePermissionTier("write"),
|
|
307
|
+
scope: e.id,
|
|
308
|
+
reversible: true,
|
|
309
|
+
value: 1,
|
|
310
|
+
valueSource: "trust-loop: unclosed-entrustment",
|
|
311
|
+
urgency: 1,
|
|
312
|
+
urgencySource: "trust-loop: unclosed-entrustment",
|
|
313
|
+
interruptionCost: 1,
|
|
314
|
+
interruptionCostSource: "trust-loop: default",
|
|
315
|
+
score: 1,
|
|
316
|
+
band: "trigger",
|
|
317
|
+
reason: `账本里有一条未闭合托付:${e.target}(${e.status})`,
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
return out;
|
|
321
|
+
}
|