@yaag/cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/types/runtime/agent-names.d.ts +8 -0
- package/assets/types/runtime/agent-usage.d.ts +16 -0
- package/assets/types/runtime/agent.d.ts +36 -0
- package/assets/types/runtime/args-validation.d.ts +3 -0
- package/assets/types/runtime/ask-activity.d.ts +9 -0
- package/assets/types/runtime/ask-contract-identity.d.ts +25 -0
- package/assets/types/runtime/ask-exchange-events.d.ts +13 -0
- package/assets/types/runtime/ask-exchange-options.d.ts +30 -0
- package/assets/types/runtime/ask-exchange.d.ts +4 -0
- package/assets/types/runtime/ask-hash.d.ts +32 -0
- package/assets/types/runtime/ask-limit.d.ts +46 -0
- package/assets/types/runtime/ask-output-steering.d.ts +28 -0
- package/assets/types/runtime/ask-output-tail.d.ts +28 -0
- package/assets/types/runtime/ask-output.d.ts +29 -0
- package/assets/types/runtime/ask-settlement.d.ts +11 -0
- package/assets/types/runtime/ask-turn.d.ts +25 -0
- package/assets/types/runtime/cassette-loader.d.ts +11 -0
- package/assets/types/runtime/cassette-publish.d.ts +11 -0
- package/assets/types/runtime/cassette-replay.d.ts +24 -0
- package/assets/types/runtime/cassette-schema.d.ts +111 -0
- package/assets/types/runtime/cassette.d.ts +118 -0
- package/assets/types/runtime/checkpoint-dir.d.ts +30 -0
- package/assets/types/runtime/connection.d.ts +29 -0
- package/assets/types/runtime/define-agent.d.ts +48 -0
- package/assets/types/runtime/define-run.d.ts +40 -0
- package/assets/types/runtime/errors.d.ts +50 -0
- package/assets/types/runtime/events.d.ts +138 -0
- package/assets/types/runtime/extension-package.d.ts +17 -0
- package/assets/types/runtime/extension-paths.d.ts +16 -0
- package/assets/types/runtime/extension-source.d.ts +28 -0
- package/assets/types/runtime/fake-transport.d.ts +78 -0
- package/assets/types/runtime/frame-gap.d.ts +23 -0
- package/assets/types/runtime/frame-queue.d.ts +15 -0
- package/assets/types/runtime/git-facts.d.ts +7 -0
- package/assets/types/runtime/idle-watch.d.ts +44 -0
- package/assets/types/runtime/index.d.ts +33 -0
- package/assets/types/runtime/jsonl.d.ts +13 -0
- package/assets/types/runtime/live-transport.d.ts +3 -0
- package/assets/types/runtime/node-decoder-subagent.d.ts +7 -0
- package/assets/types/runtime/node-decoder-workflow.d.ts +12 -0
- package/assets/types/runtime/node-decoder.d.ts +21 -0
- package/assets/types/runtime/node-decoders.d.ts +3 -0
- package/assets/types/runtime/node-details.d.ts +22 -0
- package/assets/types/runtime/node-path.d.ts +19 -0
- package/assets/types/runtime/node-tracker.d.ts +30 -0
- package/assets/types/runtime/pi-state.d.ts +16 -0
- package/assets/types/runtime/prompt-gist.d.ts +8 -0
- package/assets/types/runtime/prompt.d.ts +9 -0
- package/assets/types/runtime/reap.d.ts +22 -0
- package/assets/types/runtime/recording-transport.d.ts +9 -0
- package/assets/types/runtime/replay-divergence.d.ts +19 -0
- package/assets/types/runtime/replay-transport.d.ts +9 -0
- package/assets/types/runtime/resume-preconditions.d.ts +8 -0
- package/assets/types/runtime/resume-transport.d.ts +9 -0
- package/assets/types/runtime/run-checkpoint.d.ts +28 -0
- package/assets/types/runtime/run-context.d.ts +18 -0
- package/assets/types/runtime/run.d.ts +60 -0
- package/assets/types/runtime/skill-probe.d.ts +71 -0
- package/assets/types/runtime/skill-restriction-transport.d.ts +8 -0
- package/assets/types/runtime/spawn.d.ts +24 -0
- package/assets/types/runtime/summary-agent.d.ts +123 -0
- package/assets/types/runtime/summary-nodes.d.ts +28 -0
- package/assets/types/runtime/summary.d.ts +55 -0
- package/assets/types/runtime/tool-probe-extension.d.ts +12 -0
- package/assets/types/runtime/tool-probe.d.ts +30 -0
- package/assets/types/runtime/transport.d.ts +143 -0
- package/assets/types/runtime/types.d.ts +120 -0
- package/assets/types/runtime/validation-errors.d.ts +3 -0
- package/assets/types/runtime/wire-constants.d.ts +18 -0
- package/assets/types/runtime/worktree-transport.d.ts +9 -0
- package/assets/types/typebox/build/compile/code.d.mts +12 -0
- package/assets/types/typebox/build/compile/compile.d.mts +6 -0
- package/assets/types/typebox/build/compile/index.d.mts +8 -0
- package/assets/types/typebox/build/compile/validator.d.mts +35 -0
- package/assets/types/typebox/build/error/errors.d.mts +208 -0
- package/assets/types/typebox/build/error/index.d.mts +1 -0
- package/assets/types/typebox/build/format/_idna.d.mts +2 -0
- package/assets/types/typebox/build/format/_puny.d.mts +1 -0
- package/assets/types/typebox/build/format/_registry.d.mts +15 -0
- package/assets/types/typebox/build/format/date.d.mts +6 -0
- package/assets/types/typebox/build/format/date_time.d.mts +6 -0
- package/assets/types/typebox/build/format/duration.d.mts +5 -0
- package/assets/types/typebox/build/format/email.d.mts +5 -0
- package/assets/types/typebox/build/format/format.d.mts +22 -0
- package/assets/types/typebox/build/format/hostname.d.mts +7 -0
- package/assets/types/typebox/build/format/idn_email.d.mts +5 -0
- package/assets/types/typebox/build/format/idn_hostname.d.mts +7 -0
- package/assets/types/typebox/build/format/index.d.mts +4 -0
- package/assets/types/typebox/build/format/ipv4.d.mts +6 -0
- package/assets/types/typebox/build/format/ipv6.d.mts +5 -0
- package/assets/types/typebox/build/format/iri.d.mts +5 -0
- package/assets/types/typebox/build/format/iri_reference.d.mts +5 -0
- package/assets/types/typebox/build/format/json_pointer.d.mts +6 -0
- package/assets/types/typebox/build/format/json_pointer_uri_fragment.d.mts +6 -0
- package/assets/types/typebox/build/format/regex.d.mts +6 -0
- package/assets/types/typebox/build/format/relative_json_pointer.d.mts +6 -0
- package/assets/types/typebox/build/format/time.d.mts +5 -0
- package/assets/types/typebox/build/format/uri.d.mts +5 -0
- package/assets/types/typebox/build/format/uri_reference.d.mts +5 -0
- package/assets/types/typebox/build/format/uri_template.d.mts +6 -0
- package/assets/types/typebox/build/format/url.d.mts +6 -0
- package/assets/types/typebox/build/format/uuid.d.mts +6 -0
- package/assets/types/typebox/build/guard/emit.d.mts +54 -0
- package/assets/types/typebox/build/guard/globals.d.mts +35 -0
- package/assets/types/typebox/build/guard/guard.d.mts +65 -0
- package/assets/types/typebox/build/guard/index.d.mts +6 -0
- package/assets/types/typebox/build/guard/native.d.mts +20 -0
- package/assets/types/typebox/build/guard/string.d.mts +6 -0
- package/assets/types/typebox/build/index.d.mts +8 -0
- package/assets/types/typebox/build/schema/build.d.mts +39 -0
- package/assets/types/typebox/build/schema/check.d.mts +6 -0
- package/assets/types/typebox/build/schema/compile.d.mts +22 -0
- package/assets/types/typebox/build/schema/engine/_context.d.mts +35 -0
- package/assets/types/typebox/build/schema/engine/_exact_optional.d.mts +3 -0
- package/assets/types/typebox/build/schema/engine/_externals.d.mts +7 -0
- package/assets/types/typebox/build/schema/engine/_functions.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/_reducer.d.mts +4 -0
- package/assets/types/typebox/build/schema/engine/_refine.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/_stack.d.mts +18 -0
- package/assets/types/typebox/build/schema/engine/_unique.d.mts +2 -0
- package/assets/types/typebox/build/schema/engine/additionalItems.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/additionalProperties.d.mts +9 -0
- package/assets/types/typebox/build/schema/engine/allOf.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/anyOf.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/boolean.d.mts +5 -0
- package/assets/types/typebox/build/schema/engine/const.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/contains.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/dependencies.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/dependentRequired.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/dependentSchemas.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/dynamicRef.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/enum.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/exclusiveMaximum.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/exclusiveMinimum.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/format.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/if.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/index.d.mts +48 -0
- package/assets/types/typebox/build/schema/engine/items.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/maxContains.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/maxItems.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/maxLength.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/maxProperties.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/maximum.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/minContains.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/minItems.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/minLength.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/minProperties.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/minimum.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/multipleOf.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/not.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/oneOf.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/pattern.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/patternProperties.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/prefixItems.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/properties.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/propertyNames.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/recursiveRef.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/ref.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/required.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/schema.d.mts +9 -0
- package/assets/types/typebox/build/schema/engine/type.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/unevaluatedItems.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/unevaluatedProperties.d.mts +6 -0
- package/assets/types/typebox/build/schema/engine/uniqueItems.d.mts +6 -0
- package/assets/types/typebox/build/schema/errors.d.mts +6 -0
- package/assets/types/typebox/build/schema/index.d.mts +3 -0
- package/assets/types/typebox/build/schema/parse.d.mts +13 -0
- package/assets/types/typebox/build/schema/pointer/index.d.mts +2 -0
- package/assets/types/typebox/build/schema/pointer/pointer.d.mts +10 -0
- package/assets/types/typebox/build/schema/pointer/pointer_get.d.mts +9 -0
- package/assets/types/typebox/build/schema/resolve/index.d.mts +1 -0
- package/assets/types/typebox/build/schema/resolve/ref.d.mts +3 -0
- package/assets/types/typebox/build/schema/resolve/resolve.d.mts +1 -0
- package/assets/types/typebox/build/schema/schema.d.mts +10 -0
- package/assets/types/typebox/build/schema/static/_canonical.d.mts +7 -0
- package/assets/types/typebox/build/schema/static/_comparer.d.mts +6 -0
- package/assets/types/typebox/build/schema/static/_elements.d.mts +18 -0
- package/assets/types/typebox/build/schema/static/additionalProperties.d.mts +7 -0
- package/assets/types/typebox/build/schema/static/allOf.d.mts +3 -0
- package/assets/types/typebox/build/schema/static/anyOf.d.mts +3 -0
- package/assets/types/typebox/build/schema/static/const.d.mts +1 -0
- package/assets/types/typebox/build/schema/static/enum.d.mts +1 -0
- package/assets/types/typebox/build/schema/static/if.d.mts +15 -0
- package/assets/types/typebox/build/schema/static/index.d.mts +1 -0
- package/assets/types/typebox/build/schema/static/items.d.mts +7 -0
- package/assets/types/typebox/build/schema/static/oneOf.d.mts +3 -0
- package/assets/types/typebox/build/schema/static/patternProperties.d.mts +7 -0
- package/assets/types/typebox/build/schema/static/prefixItems.d.mts +3 -0
- package/assets/types/typebox/build/schema/static/properties.d.mts +32 -0
- package/assets/types/typebox/build/schema/static/ref.d.mts +8 -0
- package/assets/types/typebox/build/schema/static/required.d.mts +3 -0
- package/assets/types/typebox/build/schema/static/schema.d.mts +56 -0
- package/assets/types/typebox/build/schema/static/static.d.mts +4 -0
- package/assets/types/typebox/build/schema/static/type.d.mts +4 -0
- package/assets/types/typebox/build/schema/static/unevaluatedProperties.d.mts +7 -0
- package/assets/types/typebox/build/schema/types/_refine.d.mts +13 -0
- package/assets/types/typebox/build/schema/types/additionalItems.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/additionalProperties.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/allOf.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/anchor.d.mts +8 -0
- package/assets/types/typebox/build/schema/types/anyOf.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/const.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/contains.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/contentEncoding.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/contentMediaType.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/default.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/defs.d.mts +6 -0
- package/assets/types/typebox/build/schema/types/dependencies.d.mts +11 -0
- package/assets/types/typebox/build/schema/types/dependentRequired.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/dependentSchemas.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/dynamicAnchor.d.mts +8 -0
- package/assets/types/typebox/build/schema/types/dynamicRef.d.mts +8 -0
- package/assets/types/typebox/build/schema/types/else.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/enum.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/exclusiveMaximum.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/exclusiveMinimum.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/format.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/id.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/if.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/index.d.mts +53 -0
- package/assets/types/typebox/build/schema/types/items.d.mts +19 -0
- package/assets/types/typebox/build/schema/types/maxContains.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/maxItems.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/maxLength.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/maxProperties.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/maximum.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/minContains.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/minItems.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/minLength.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/minProperties.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/minimum.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/multipleOf.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/not.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/oneOf.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/pattern.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/patternProperties.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/prefixItems.d.mts +8 -0
- package/assets/types/typebox/build/schema/types/properties.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/propertyNames.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/recursiveAnchor.d.mts +12 -0
- package/assets/types/typebox/build/schema/types/recursiveRef.d.mts +8 -0
- package/assets/types/typebox/build/schema/types/ref.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/required.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/schema.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/then.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/type.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/unevaluatedItems.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/unevaluatedProperties.d.mts +9 -0
- package/assets/types/typebox/build/schema/types/uniqueItems.d.mts +9 -0
- package/assets/types/typebox/build/system/arguments/arguments.d.mts +5 -0
- package/assets/types/typebox/build/system/arguments/index.d.mts +1 -0
- package/assets/types/typebox/build/system/environment/environment.d.mts +1 -0
- package/assets/types/typebox/build/system/environment/evaluate.d.mts +9 -0
- package/assets/types/typebox/build/system/environment/index.d.mts +1 -0
- package/assets/types/typebox/build/system/hashing/hash.d.mts +4 -0
- package/assets/types/typebox/build/system/hashing/index.d.mts +1 -0
- package/assets/types/typebox/build/system/index.d.mts +4 -0
- package/assets/types/typebox/build/system/locale/_config.d.mts +7 -0
- package/assets/types/typebox/build/system/locale/_locale.d.mts +40 -0
- package/assets/types/typebox/build/system/locale/ar_001.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/bn_BD.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/cs_CZ.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/de_DE.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/el_GR.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/en_US.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/es_419.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/es_AR.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/es_ES.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/es_MX.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/fa_IR.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/fil_PH.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/fr_CA.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/fr_FR.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/ha_NG.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/hi_IN.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/hu_HU.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/id_ID.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/index.d.mts +1 -0
- package/assets/types/typebox/build/system/locale/it_IT.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/ja_JP.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/ko_KR.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/ms_MY.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/nl_NL.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/pl_PL.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/pt_BR.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/pt_PT.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/ro_RO.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/ru_RU.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/sv_SE.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/sw_TZ.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/th_TH.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/tr_TR.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/uk_UA.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/ur_PK.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/vi_VN.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/yo_NG.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/zh_Hans.d.mts +3 -0
- package/assets/types/typebox/build/system/locale/zh_Hant.d.mts +3 -0
- package/assets/types/typebox/build/system/memory/assign.d.mts +14 -0
- package/assets/types/typebox/build/system/memory/clone.d.mts +5 -0
- package/assets/types/typebox/build/system/memory/create.d.mts +8 -0
- package/assets/types/typebox/build/system/memory/discard.d.mts +4 -0
- package/assets/types/typebox/build/system/memory/index.d.mts +1 -0
- package/assets/types/typebox/build/system/memory/memory.d.mts +6 -0
- package/assets/types/typebox/build/system/memory/metrics.d.mts +14 -0
- package/assets/types/typebox/build/system/memory/update.d.mts +7 -0
- package/assets/types/typebox/build/system/settings/index.d.mts +1 -0
- package/assets/types/typebox/build/system/settings/settings.d.mts +71 -0
- package/assets/types/typebox/build/system/system.d.mts +6 -0
- package/assets/types/typebox/build/system/unreachable/index.d.mts +1 -0
- package/assets/types/typebox/build/system/unreachable/unreachable.d.mts +3 -0
- package/assets/types/typebox/build/type/action/_add_immutable.d.mts +11 -0
- package/assets/types/typebox/build/type/action/_add_optional.d.mts +11 -0
- package/assets/types/typebox/build/type/action/_add_readonly.d.mts +11 -0
- package/assets/types/typebox/build/type/action/_remove_immutable.d.mts +11 -0
- package/assets/types/typebox/build/type/action/_remove_optional.d.mts +11 -0
- package/assets/types/typebox/build/type/action/_remove_readonly.d.mts +11 -0
- package/assets/types/typebox/build/type/action/capitalize.d.mts +11 -0
- package/assets/types/typebox/build/type/action/conditional.d.mts +12 -0
- package/assets/types/typebox/build/type/action/constructor_parameters.d.mts +11 -0
- package/assets/types/typebox/build/type/action/evaluate.d.mts +11 -0
- package/assets/types/typebox/build/type/action/exclude.d.mts +11 -0
- package/assets/types/typebox/build/type/action/extract.d.mts +11 -0
- package/assets/types/typebox/build/type/action/index.d.mts +30 -0
- package/assets/types/typebox/build/type/action/indexed.d.mts +14 -0
- package/assets/types/typebox/build/type/action/instance_type.d.mts +11 -0
- package/assets/types/typebox/build/type/action/interface.d.mts +14 -0
- package/assets/types/typebox/build/type/action/keyof.d.mts +11 -0
- package/assets/types/typebox/build/type/action/lowercase.d.mts +11 -0
- package/assets/types/typebox/build/type/action/mapped.d.mts +13 -0
- package/assets/types/typebox/build/type/action/module.d.mts +13 -0
- package/assets/types/typebox/build/type/action/non_nullable.d.mts +11 -0
- package/assets/types/typebox/build/type/action/omit.d.mts +14 -0
- package/assets/types/typebox/build/type/action/parameters.d.mts +11 -0
- package/assets/types/typebox/build/type/action/partial.d.mts +11 -0
- package/assets/types/typebox/build/type/action/pick.d.mts +14 -0
- package/assets/types/typebox/build/type/action/readonly_object.d.mts +16 -0
- package/assets/types/typebox/build/type/action/required.d.mts +11 -0
- package/assets/types/typebox/build/type/action/return_type.d.mts +11 -0
- package/assets/types/typebox/build/type/action/uncapitalize.d.mts +11 -0
- package/assets/types/typebox/build/type/action/uppercase.d.mts +11 -0
- package/assets/types/typebox/build/type/action/with.d.mts +11 -0
- package/assets/types/typebox/build/type/engine/call/distribute_arguments.d.mts +15 -0
- package/assets/types/typebox/build/type/engine/call/instantiate.d.mts +21 -0
- package/assets/types/typebox/build/type/engine/call/resolve_arguments.d.mts +13 -0
- package/assets/types/typebox/build/type/engine/call/resolve_target.d.mts +25 -0
- package/assets/types/typebox/build/type/engine/conditional/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/conditional/instantiate.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/constructor_parameters/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +14 -0
- package/assets/types/typebox/build/type/engine/cyclic/candidates.d.mts +8 -0
- package/assets/types/typebox/build/type/engine/cyclic/check.d.mts +21 -0
- package/assets/types/typebox/build/type/engine/cyclic/dependencies.d.mts +22 -0
- package/assets/types/typebox/build/type/engine/cyclic/extends.d.mts +28 -0
- package/assets/types/typebox/build/type/engine/cyclic/index.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/cyclic/instantiate.d.mts +17 -0
- package/assets/types/typebox/build/type/engine/cyclic/target.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/enum/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/enum/typescript_enum_to_enum_values.d.mts +8 -0
- package/assets/types/typebox/build/type/engine/evaluate/broaden.d.mts +15 -0
- package/assets/types/typebox/build/type/engine/evaluate/compare.d.mts +15 -0
- package/assets/types/typebox/build/type/engine/evaluate/composite.d.mts +34 -0
- package/assets/types/typebox/build/type/engine/evaluate/distribute.d.mts +28 -0
- package/assets/types/typebox/build/type/engine/evaluate/evaluate.d.mts +26 -0
- package/assets/types/typebox/build/type/engine/evaluate/flatten.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/evaluate/index.d.mts +8 -0
- package/assets/types/typebox/build/type/engine/evaluate/instantiate.d.mts +8 -0
- package/assets/types/typebox/build/type/engine/evaluate/narrow.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/exclude/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/exclude/instantiate.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/exclude/operation.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/extract/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/extract/instantiate.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/extract/operation.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/helpers/index.d.mts +3 -0
- package/assets/types/typebox/build/type/engine/helpers/keys.d.mts +3 -0
- package/assets/types/typebox/build/type/engine/helpers/keys_to_indexer.d.mts +7 -0
- package/assets/types/typebox/build/type/engine/helpers/union.d.mts +7 -0
- package/assets/types/typebox/build/type/engine/immutable/instantiate_add.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/immutable/instantiate_remove.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/index.d.mts +31 -0
- package/assets/types/typebox/build/type/engine/indexable/from_cyclic.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/indexable/from_dependent.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/indexable/from_enum.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/indexable/from_intersect.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/indexable/from_literal.d.mts +3 -0
- package/assets/types/typebox/build/type/engine/indexable/from_template_literal.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/indexable/from_type.d.mts +19 -0
- package/assets/types/typebox/build/type/engine/indexable/from_union.d.mts +4 -0
- package/assets/types/typebox/build/type/engine/indexable/to_indexable.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/indexable/to_indexable_keys.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/indexed/array_indexer.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/indexed/from_array.d.mts +15 -0
- package/assets/types/typebox/build/type/engine/indexed/from_object.d.mts +16 -0
- package/assets/types/typebox/build/type/engine/indexed/from_tuple.d.mts +13 -0
- package/assets/types/typebox/build/type/engine/indexed/from_type.d.mts +11 -0
- package/assets/types/typebox/build/type/engine/indexed/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/indexed/instantiate.d.mts +16 -0
- package/assets/types/typebox/build/type/engine/instance_type/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/instance_type/instantiate.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/instantiate.d.mts +178 -0
- package/assets/types/typebox/build/type/engine/interface/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/interface/instantiate.d.mts +15 -0
- package/assets/types/typebox/build/type/engine/intrinsics/from_literal.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/intrinsics/from_type.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/intrinsics/from_union.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/intrinsics/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/intrinsics/instantiate.d.mts +38 -0
- package/assets/types/typebox/build/type/engine/intrinsics/mapping.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/keyof/from_any.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/keyof/from_array.d.mts +4 -0
- package/assets/types/typebox/build/type/engine/keyof/from_object.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/keyof/from_record.d.mts +4 -0
- package/assets/types/typebox/build/type/engine/keyof/from_tuple.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/keyof/from_type.d.mts +15 -0
- package/assets/types/typebox/build/type/engine/keyof/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/keyof/instantiate.d.mts +16 -0
- package/assets/types/typebox/build/type/engine/mapped/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/mapped/instantiate.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/mapped/mapped_operation.d.mts +22 -0
- package/assets/types/typebox/build/type/engine/mapped/mapped_variants.d.mts +17 -0
- package/assets/types/typebox/build/type/engine/module/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/module/instantiate.d.mts +19 -0
- package/assets/types/typebox/build/type/engine/non_nullable/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/non_nullable/instantiate.d.mts +14 -0
- package/assets/types/typebox/build/type/engine/object/collapse.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/object/from_cyclic.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/object/from_dependent.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/object/from_intersect.d.mts +17 -0
- package/assets/types/typebox/build/type/engine/object/from_object.d.mts +3 -0
- package/assets/types/typebox/build/type/engine/object/from_tuple.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/object/from_type.d.mts +16 -0
- package/assets/types/typebox/build/type/engine/object/from_union.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/object/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/omit/from_type.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/omit/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/omit/instantiate.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/optional/instantiate_add.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/optional/instantiate_remove.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/parameters/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/parameters/instantiate.d.mts +14 -0
- package/assets/types/typebox/build/type/engine/partial/from_cyclic.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/partial/from_dependent.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/partial/from_intersect.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/partial/from_object.d.mts +8 -0
- package/assets/types/typebox/build/type/engine/partial/from_type.d.mts +14 -0
- package/assets/types/typebox/build/type/engine/partial/from_union.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/partial/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/partial/instantiate.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/patterns/index.d.mts +2 -0
- package/assets/types/typebox/build/type/engine/patterns/pattern.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/patterns/template.d.mts +7 -0
- package/assets/types/typebox/build/type/engine/pick/from_type.d.mts +13 -0
- package/assets/types/typebox/build/type/engine/pick/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/pick/instantiate.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/priority/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/priority/priority.d.mts +20 -0
- package/assets/types/typebox/build/type/engine/readonly/instantiate_add.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/readonly/instantiate_remove.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/readonly_object/from_array.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/readonly_object/from_cyclic.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/readonly_object/from_dependent.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/readonly_object/from_intersect.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/readonly_object/from_object.d.mts +8 -0
- package/assets/types/typebox/build/type/engine/readonly_object/from_tuple.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/readonly_object/from_type.d.mts +18 -0
- package/assets/types/typebox/build/type/engine/readonly_object/from_union.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/readonly_object/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/readonly_object/instantiate.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/record/from_key.d.mts +24 -0
- package/assets/types/typebox/build/type/engine/record/from_key_any.d.mts +4 -0
- package/assets/types/typebox/build/type/engine/record/from_key_boolean.d.mts +7 -0
- package/assets/types/typebox/build/type/engine/record/from_key_enum.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/record/from_key_integer.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/record/from_key_intersect.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/record/from_key_literal.d.mts +11 -0
- package/assets/types/typebox/build/type/engine/record/from_key_number.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/record/from_key_string.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/record/from_key_template_literal.d.mts +8 -0
- package/assets/types/typebox/build/type/engine/record/from_key_union.d.mts +20 -0
- package/assets/types/typebox/build/type/engine/record/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/record/instantiate.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/record/record_create.d.mts +3 -0
- package/assets/types/typebox/build/type/engine/ref/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/ref/instantiate.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/required/from_cyclic.d.mts +10 -0
- package/assets/types/typebox/build/type/engine/required/from_dependent.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/required/from_intersect.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/required/from_object.d.mts +8 -0
- package/assets/types/typebox/build/type/engine/required/from_type.d.mts +14 -0
- package/assets/types/typebox/build/type/engine/required/from_union.d.mts +5 -0
- package/assets/types/typebox/build/type/engine/required/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/required/instantiate.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/rest/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/rest/spread.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/return_type/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/return_type/instantiate.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/template_literal/create.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/template_literal/decode.d.mts +30 -0
- package/assets/types/typebox/build/type/engine/template_literal/encode.d.mts +33 -0
- package/assets/types/typebox/build/type/engine/template_literal/index.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/template_literal/instantiate.d.mts +9 -0
- package/assets/types/typebox/build/type/engine/template_literal/is_finite.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/template_literal/is_pattern.d.mts +6 -0
- package/assets/types/typebox/build/type/engine/template_literal/static.d.mts +18 -0
- package/assets/types/typebox/build/type/engine/this/expand_this.d.mts +16 -0
- package/assets/types/typebox/build/type/engine/tuple/to_object.d.mts +12 -0
- package/assets/types/typebox/build/type/engine/with/index.d.mts +1 -0
- package/assets/types/typebox/build/type/engine/with/instantiate.d.mts +8 -0
- package/assets/types/typebox/build/type/extends/any.d.mts +9 -0
- package/assets/types/typebox/build/type/extends/array.d.mts +20 -0
- package/assets/types/typebox/build/type/extends/bigint.d.mts +7 -0
- package/assets/types/typebox/build/type/extends/boolean.d.mts +7 -0
- package/assets/types/typebox/build/type/extends/constructor.d.mts +10 -0
- package/assets/types/typebox/build/type/extends/dependent.d.mts +6 -0
- package/assets/types/typebox/build/type/extends/enum.d.mts +7 -0
- package/assets/types/typebox/build/type/extends/extends.d.mts +13 -0
- package/assets/types/typebox/build/type/extends/extends_left.d.mts +53 -0
- package/assets/types/typebox/build/type/extends/extends_right.d.mts +27 -0
- package/assets/types/typebox/build/type/extends/function.d.mts +10 -0
- package/assets/types/typebox/build/type/extends/index.d.mts +2 -0
- package/assets/types/typebox/build/type/extends/inference.d.mts +34 -0
- package/assets/types/typebox/build/type/extends/integer.d.mts +8 -0
- package/assets/types/typebox/build/type/extends/intersect.d.mts +6 -0
- package/assets/types/typebox/build/type/extends/literal.d.mts +18 -0
- package/assets/types/typebox/build/type/extends/never.d.mts +8 -0
- package/assets/types/typebox/build/type/extends/null.d.mts +7 -0
- package/assets/types/typebox/build/type/extends/number.d.mts +7 -0
- package/assets/types/typebox/build/type/extends/object.d.mts +32 -0
- package/assets/types/typebox/build/type/extends/parameters.d.mts +15 -0
- package/assets/types/typebox/build/type/extends/record.d.mts +13 -0
- package/assets/types/typebox/build/type/extends/result.d.mts +24 -0
- package/assets/types/typebox/build/type/extends/return_type.d.mts +7 -0
- package/assets/types/typebox/build/type/extends/string.d.mts +7 -0
- package/assets/types/typebox/build/type/extends/symbol.d.mts +7 -0
- package/assets/types/typebox/build/type/extends/template_literal.d.mts +6 -0
- package/assets/types/typebox/build/type/extends/tuple.d.mts +22 -0
- package/assets/types/typebox/build/type/extends/undefined.d.mts +8 -0
- package/assets/types/typebox/build/type/extends/union.d.mts +11 -0
- package/assets/types/typebox/build/type/extends/unknown.d.mts +9 -0
- package/assets/types/typebox/build/type/extends/void.d.mts +7 -0
- package/assets/types/typebox/build/type/index.d.mts +5 -0
- package/assets/types/typebox/build/type/script/index.d.mts +1 -0
- package/assets/types/typebox/build/type/script/mapping.d.mts +353 -0
- package/assets/types/typebox/build/type/script/parser.d.mts +262 -0
- package/assets/types/typebox/build/type/script/script.d.mts +16 -0
- package/assets/types/typebox/build/type/script/token/bigint.d.mts +8 -0
- package/assets/types/typebox/build/type/script/token/const.d.mts +11 -0
- package/assets/types/typebox/build/type/script/token/ident.d.mts +16 -0
- package/assets/types/typebox/build/type/script/token/index.d.mts +12 -0
- package/assets/types/typebox/build/type/script/token/integer.d.mts +11 -0
- package/assets/types/typebox/build/type/script/token/internal/char.d.mts +75 -0
- package/assets/types/typebox/build/type/script/token/internal/guard.d.mts +1 -0
- package/assets/types/typebox/build/type/script/token/internal/many.d.mts +7 -0
- package/assets/types/typebox/build/type/script/token/internal/match.d.mts +6 -0
- package/assets/types/typebox/build/type/script/token/internal/optional.d.mts +5 -0
- package/assets/types/typebox/build/type/script/token/internal/take.d.mts +6 -0
- package/assets/types/typebox/build/type/script/token/internal/trim.d.mts +19 -0
- package/assets/types/typebox/build/type/script/token/number.d.mts +11 -0
- package/assets/types/typebox/build/type/script/token/rest.d.mts +4 -0
- package/assets/types/typebox/build/type/script/token/span.d.mts +11 -0
- package/assets/types/typebox/build/type/script/token/string.d.mts +11 -0
- package/assets/types/typebox/build/type/script/token/unsigned_integer.d.mts +16 -0
- package/assets/types/typebox/build/type/script/token/unsigned_number.d.mts +17 -0
- package/assets/types/typebox/build/type/script/token/until.d.mts +7 -0
- package/assets/types/typebox/build/type/script/token/until_1.d.mts +5 -0
- package/assets/types/typebox/build/type/types/_codec.d.mts +30 -0
- package/assets/types/typebox/build/type/types/_immutable.d.mts +9 -0
- package/assets/types/typebox/build/type/types/_optional.d.mts +9 -0
- package/assets/types/typebox/build/type/types/_readonly.d.mts +9 -0
- package/assets/types/typebox/build/type/types/_refine.d.mts +24 -0
- package/assets/types/typebox/build/type/types/any.d.mts +10 -0
- package/assets/types/typebox/build/type/types/array.d.mts +18 -0
- package/assets/types/typebox/build/type/types/bigint.d.mts +12 -0
- package/assets/types/typebox/build/type/types/boolean.d.mts +11 -0
- package/assets/types/typebox/build/type/types/call.d.mts +16 -0
- package/assets/types/typebox/build/type/types/constructor.d.mts +18 -0
- package/assets/types/typebox/build/type/types/cyclic.d.mts +16 -0
- package/assets/types/typebox/build/type/types/deferred.d.mts +13 -0
- package/assets/types/typebox/build/type/types/dependent.d.mts +17 -0
- package/assets/types/typebox/build/type/types/enum.d.mts +18 -0
- package/assets/types/typebox/build/type/types/function.d.mts +21 -0
- package/assets/types/typebox/build/type/types/generic.d.mts +13 -0
- package/assets/types/typebox/build/type/types/identifier.d.mts +11 -0
- package/assets/types/typebox/build/type/types/index.d.mts +45 -0
- package/assets/types/typebox/build/type/types/infer.d.mts +15 -0
- package/assets/types/typebox/build/type/types/integer.d.mts +12 -0
- package/assets/types/typebox/build/type/types/intersect.d.mts +15 -0
- package/assets/types/typebox/build/type/types/literal.d.mts +31 -0
- package/assets/types/typebox/build/type/types/never.d.mts +12 -0
- package/assets/types/typebox/build/type/types/null.d.mts +11 -0
- package/assets/types/typebox/build/type/types/number.d.mts +12 -0
- package/assets/types/typebox/build/type/types/object.d.mts +18 -0
- package/assets/types/typebox/build/type/types/parameter.d.mts +17 -0
- package/assets/types/typebox/build/type/types/properties.d.mts +43 -0
- package/assets/types/typebox/build/type/types/record.d.mts +52 -0
- package/assets/types/typebox/build/type/types/ref.d.mts +19 -0
- package/assets/types/typebox/build/type/types/rest.d.mts +11 -0
- package/assets/types/typebox/build/type/types/schema.d.mts +176 -0
- package/assets/types/typebox/build/type/types/static.d.mts +45 -0
- package/assets/types/typebox/build/type/types/string.d.mts +12 -0
- package/assets/types/typebox/build/type/types/symbol.d.mts +11 -0
- package/assets/types/typebox/build/type/types/template_literal.d.mts +28 -0
- package/assets/types/typebox/build/type/types/this.d.mts +14 -0
- package/assets/types/typebox/build/type/types/tuple.d.mts +38 -0
- package/assets/types/typebox/build/type/types/undefined.d.mts +11 -0
- package/assets/types/typebox/build/type/types/union.d.mts +15 -0
- package/assets/types/typebox/build/type/types/unknown.d.mts +10 -0
- package/assets/types/typebox/build/type/types/unsafe.d.mts +10 -0
- package/assets/types/typebox/build/type/types/void.d.mts +11 -0
- package/assets/types/typebox/build/typebox.d.mts +69 -0
- package/assets/types/typebox/build/value/assert/assert.d.mts +14 -0
- package/assets/types/typebox/build/value/assert/index.d.mts +1 -0
- package/assets/types/typebox/build/value/check/check.d.mts +5 -0
- package/assets/types/typebox/build/value/check/index.d.mts +1 -0
- package/assets/types/typebox/build/value/clean/additional.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/clean.d.mts +15 -0
- package/assets/types/typebox/build/value/clean/from_array.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/from_cyclic.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/from_intersect.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/from_object.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/from_record.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/from_ref.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/from_tuple.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/from_type.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/from_union.d.mts +2 -0
- package/assets/types/typebox/build/value/clean/index.d.mts +1 -0
- package/assets/types/typebox/build/value/clone/clone.d.mts +5 -0
- package/assets/types/typebox/build/value/clone/index.d.mts +1 -0
- package/assets/types/typebox/build/value/codec/callback.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/decode.d.mts +12 -0
- package/assets/types/typebox/build/value/codec/encode.d.mts +12 -0
- package/assets/types/typebox/build/value/codec/from_array.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/from_cyclic.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/from_intersect.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/from_object.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/from_record.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/from_ref.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/from_tuple.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/from_type.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/from_union.d.mts +2 -0
- package/assets/types/typebox/build/value/codec/has.d.mts +5 -0
- package/assets/types/typebox/build/value/codec/index.d.mts +3 -0
- package/assets/types/typebox/build/value/convert/convert.d.mts +13 -0
- package/assets/types/typebox/build/value/convert/from_additional.d.mts +6 -0
- package/assets/types/typebox/build/value/convert/from_array.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_bigint.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_boolean.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_cyclic.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_enum.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_integer.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_intersect.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_literal.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_null.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_number.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_object.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_record.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_ref.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_string.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_template_literal.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_tuple.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_type.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_undefined.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_union.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/from_void.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/index.d.mts +1 -0
- package/assets/types/typebox/build/value/convert/try/index.d.mts +1 -0
- package/assets/types/typebox/build/value/convert/try/try.d.mts +8 -0
- package/assets/types/typebox/build/value/convert/try/try_array.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/try/try_bigint.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/try/try_boolean.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/try/try_null.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/try/try_number.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/try/try_result.d.mts +8 -0
- package/assets/types/typebox/build/value/convert/try/try_string.d.mts +2 -0
- package/assets/types/typebox/build/value/convert/try/try_undefined.d.mts +2 -0
- package/assets/types/typebox/build/value/create/create.d.mts +5 -0
- package/assets/types/typebox/build/value/create/error.d.mts +5 -0
- package/assets/types/typebox/build/value/create/from_array.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_bigint.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_boolean.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_constructor.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_cyclic.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_default.d.mts +3 -0
- package/assets/types/typebox/build/value/create/from_enum.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_function.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_integer.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_intersect.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_literal.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_never.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_null.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_number.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_object.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_record.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_ref.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_string.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_symbol.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_template_literal.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_tuple.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_type.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_undefined.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_union.d.mts +2 -0
- package/assets/types/typebox/build/value/create/from_void.d.mts +2 -0
- package/assets/types/typebox/build/value/create/index.d.mts +2 -0
- package/assets/types/typebox/build/value/default/default.d.mts +13 -0
- package/assets/types/typebox/build/value/default/from_array.d.mts +2 -0
- package/assets/types/typebox/build/value/default/from_cyclic.d.mts +2 -0
- package/assets/types/typebox/build/value/default/from_default.d.mts +3 -0
- package/assets/types/typebox/build/value/default/from_intersect.d.mts +2 -0
- package/assets/types/typebox/build/value/default/from_object.d.mts +2 -0
- package/assets/types/typebox/build/value/default/from_record.d.mts +2 -0
- package/assets/types/typebox/build/value/default/from_ref.d.mts +2 -0
- package/assets/types/typebox/build/value/default/from_tuple.d.mts +2 -0
- package/assets/types/typebox/build/value/default/from_type.d.mts +2 -0
- package/assets/types/typebox/build/value/default/from_union.d.mts +2 -0
- package/assets/types/typebox/build/value/default/index.d.mts +1 -0
- package/assets/types/typebox/build/value/delta/diff.d.mts +10 -0
- package/assets/types/typebox/build/value/delta/edit.d.mts +24 -0
- package/assets/types/typebox/build/value/delta/index.d.mts +3 -0
- package/assets/types/typebox/build/value/delta/patch.d.mts +8 -0
- package/assets/types/typebox/build/value/equal/equal.d.mts +2 -0
- package/assets/types/typebox/build/value/equal/index.d.mts +1 -0
- package/assets/types/typebox/build/value/errors/errors.d.mts +16 -0
- package/assets/types/typebox/build/value/errors/index.d.mts +1 -0
- package/assets/types/typebox/build/value/hash/hash.d.mts +6 -0
- package/assets/types/typebox/build/value/hash/index.d.mts +1 -0
- package/assets/types/typebox/build/value/index.d.mts +20 -0
- package/assets/types/typebox/build/value/parse/index.d.mts +1 -0
- package/assets/types/typebox/build/value/parse/parse.d.mts +11 -0
- package/assets/types/typebox/build/value/pipeline/index.d.mts +1 -0
- package/assets/types/typebox/build/value/pipeline/pipeline.d.mts +10 -0
- package/assets/types/typebox/build/value/pointer/index.d.mts +1 -0
- package/assets/types/typebox/build/value/repair/error.d.mts +7 -0
- package/assets/types/typebox/build/value/repair/from_array.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_enum.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_intersect.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_object.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_record.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_ref.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_template_literal.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_tuple.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_type.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_union.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/from_unknown.d.mts +2 -0
- package/assets/types/typebox/build/value/repair/index.d.mts +1 -0
- package/assets/types/typebox/build/value/repair/repair.d.mts +17 -0
- package/assets/types/typebox/build/value/shared/index.d.mts +3 -0
- package/assets/types/typebox/build/value/shared/optional_undefined.d.mts +2 -0
- package/assets/types/typebox/build/value/shared/union_priority_sort.d.mts +7 -0
- package/assets/types/typebox/build/value/shared/union_score_select.d.mts +3 -0
- package/assets/types/typebox/build/value/value.d.mts +15 -0
- package/assets/types/typebox/package.json +87 -0
- package/package.json +28 -0
- package/src/alt-screen.ts +46 -0
- package/src/argv.ts +147 -0
- package/src/cli-tree-host.ts +81 -0
- package/src/cli.ts +155 -0
- package/src/fatal-signal.ts +45 -0
- package/src/final-frame.ts +71 -0
- package/src/interactive-run.ts +231 -0
- package/src/presenter.ts +31 -0
- package/src/render.ts +96 -0
- package/src/run-invocation.ts +48 -0
- package/src/runtime-alias.ts +64 -0
- package/src/setup-workspace.ts +91 -0
- package/src/tree-app.ts +178 -0
- package/src/tui-test-support.ts +96 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface ToolProbeAPI {
|
|
2
|
+
getActiveTools(): string[];
|
|
3
|
+
on(event: "session_start", handler: (event: unknown, context: ToolProbeContext) => void): void;
|
|
4
|
+
}
|
|
5
|
+
interface ToolProbeContext {
|
|
6
|
+
readonly ui: {
|
|
7
|
+
setStatus(key: string, text: string | undefined): void;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
/** Reports pi's post-composition active tool names through the RPC UI channel. */
|
|
11
|
+
export default function (pi: ToolProbeAPI): void;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Frame } from "./transport.ts";
|
|
2
|
+
/** The private status key used only by yaag's internal pi tool probe extension. */
|
|
3
|
+
export declare const TOOL_PROBE_STATUS_KEY = "yaag.tool-probe.v1";
|
|
4
|
+
/** Filesystem sibling path of the probe extension; decodes percent-escapes (e.g. spaces). */
|
|
5
|
+
export declare function toolProbeExtensionPath(moduleUrl: string): string;
|
|
6
|
+
/** Loadable source path for the private extension that reports pi's active tools. */
|
|
7
|
+
export declare const TOOL_PROBE_EXTENSION_PATH: string;
|
|
8
|
+
/** Startup collector for the private extension's effective-tool report. */
|
|
9
|
+
export interface ToolProbe {
|
|
10
|
+
/** True when the frame belongs to the probe and must not cross the transport seam. */
|
|
11
|
+
accept(frame: Frame): boolean;
|
|
12
|
+
/** Resolves with active tool names or rejects on malformed output or timeout. */
|
|
13
|
+
wait(): Promise<readonly string[]>;
|
|
14
|
+
/** Rejects startup when the spawned pi process ends before reporting. */
|
|
15
|
+
fail(error: Error): void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Returns promised tools that survive pi's final denylist composition.
|
|
19
|
+
*
|
|
20
|
+
* Null means no tool allowlist promised anything and therefore needs no probe.
|
|
21
|
+
*/
|
|
22
|
+
export declare function requestedToolNames(tools: readonly string[] | undefined, disallowedTools?: readonly string[] | undefined): readonly string[] | null;
|
|
23
|
+
/** Creates a startup collector only when a non-empty allowlist promised tool selection. */
|
|
24
|
+
export declare function createToolProbe(tools: readonly string[] | undefined, _disallowedTools?: readonly string[] | undefined, timeoutMs?: number): ToolProbe | null;
|
|
25
|
+
/** True exactly for a status frame emitted by the private probe extension. */
|
|
26
|
+
export declare function isToolProbeFrame(frame: Frame): boolean;
|
|
27
|
+
/** Parses the private status payload, rejecting every malformed boundary. */
|
|
28
|
+
export declare function parseToolProbeFrame(frame: Frame): readonly string[];
|
|
29
|
+
/** Throws a diagnostic naming every missing requested tool. */
|
|
30
|
+
export declare function verifyEffectiveTools(promised: readonly string[], effective: readonly string[]): void;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import type { CanonicalJsonObject } from "./ask-contract-identity.ts";
|
|
2
|
+
import type { AskLimitOutcome, AskStalledOutcome } from "./errors.ts";
|
|
3
|
+
import type { AskOptions, SpawnOptions, ThinkingLevel } from "./types.ts";
|
|
4
|
+
/**
|
|
5
|
+
* The one seam of the runtime (ticket 04). An AgentTransport represents a whole
|
|
6
|
+
* Agent and exchanges raw JSONL frames; it is the only place a process is known.
|
|
7
|
+
*
|
|
8
|
+
* Ask resolution and Lifecycle Events sit ABOVE this interface, so a replay
|
|
9
|
+
* implementation added later (ADR-0013) exercises the frame interpretation
|
|
10
|
+
* rather than bypassing it.
|
|
11
|
+
*/
|
|
12
|
+
/** One JSONL frame in either direction. Unknown `type`s must survive (ticket 01). */
|
|
13
|
+
export type Frame = {
|
|
14
|
+
readonly type: string;
|
|
15
|
+
readonly [k: string]: unknown;
|
|
16
|
+
};
|
|
17
|
+
/** pi's full token usage for one Agent, as reported by `get_session_stats`. */
|
|
18
|
+
export interface TokenBreakdown {
|
|
19
|
+
readonly input: number;
|
|
20
|
+
readonly output: number;
|
|
21
|
+
readonly cacheRead: number;
|
|
22
|
+
readonly cacheWrite: number;
|
|
23
|
+
readonly total: number;
|
|
24
|
+
}
|
|
25
|
+
/** Cost and usage read at Agent shutdown (ADR-0012). */
|
|
26
|
+
export interface AgentStats {
|
|
27
|
+
/** Null when unavailable — e.g. killed before the first Ask completed. */
|
|
28
|
+
readonly tokens: TokenBreakdown | null;
|
|
29
|
+
readonly cost: number | null;
|
|
30
|
+
}
|
|
31
|
+
/** Recorded inputs used to explain an Ask-hash mismatch without changing identity. */
|
|
32
|
+
export interface AskMarkerContext {
|
|
33
|
+
readonly prompt: string;
|
|
34
|
+
readonly spawn: Pick<SpawnOptions, "cwd" | "model" | "systemPrompt" | "thinking" | "appendSystemPrompt" | "tools" | "disallowedTools" | "skills" | "disallowedSkills" | "worktree">;
|
|
35
|
+
readonly ask: Pick<AskOptions, "maxTurns" | "maxToolCalls" | "maxDurationMs" | "idleMs" | "wrapUpPrompt"> & {
|
|
36
|
+
readonly outputSchema?: CanonicalJsonObject;
|
|
37
|
+
readonly maxSteers?: number;
|
|
38
|
+
readonly extractionPolicy?: string;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/** Opaque marker naming the Ask that subsequent frames belong to. */
|
|
42
|
+
export interface AskMarker {
|
|
43
|
+
/** Monotonic per Agent, from 0. */
|
|
44
|
+
readonly index: number;
|
|
45
|
+
/** sha256 of prompt, spawn options, soft Ask behavior, and an optional output contract. */
|
|
46
|
+
readonly hash: string;
|
|
47
|
+
/** Canonical structured-output contract, present only for schema-bearing Asks. */
|
|
48
|
+
readonly outputSchema?: CanonicalJsonObject;
|
|
49
|
+
/** Explicit structured-output correction bound; omission remains distinct from a default. */
|
|
50
|
+
readonly maxSteers?: number;
|
|
51
|
+
/** Structured-output extraction behavior identifier. */
|
|
52
|
+
readonly extractionPolicy?: string;
|
|
53
|
+
/** Definition identity for Cassette diagnostics; never participates in the hash. */
|
|
54
|
+
readonly definitionName?: string;
|
|
55
|
+
/** Hash inputs retained only for definition-spawned Ask divergence diagnostics. */
|
|
56
|
+
readonly context?: AskMarkerContext;
|
|
57
|
+
}
|
|
58
|
+
/** Compact Cassette result for a surfaced structured-output exhaustion. */
|
|
59
|
+
export interface AskInvalidOutputPlayback {
|
|
60
|
+
readonly kind: "invalid_output";
|
|
61
|
+
readonly steeringEfforts: number;
|
|
62
|
+
}
|
|
63
|
+
/** Presence identifies Cassette playback, including recorded successful Asks. */
|
|
64
|
+
export interface AskPlayback {
|
|
65
|
+
/** Limit outcome recorded for this Ask, if it rejected with ASK_LIMIT. */
|
|
66
|
+
readonly limit?: AskLimitOutcome;
|
|
67
|
+
/** Stalled outcome recorded for this Ask, if it rejected with ASK_STALLED. */
|
|
68
|
+
readonly stalled?: AskStalledOutcome;
|
|
69
|
+
/** Invalid structured-output result recorded for this Ask, if it surfaced. */
|
|
70
|
+
readonly outcome?: AskInvalidOutputPlayback;
|
|
71
|
+
/** Whether recorded correction history has an abort settlement after final text. */
|
|
72
|
+
readonly awaitsAbortSettlement?: true;
|
|
73
|
+
}
|
|
74
|
+
/** One Agent, as the layer above sees it. */
|
|
75
|
+
export interface AgentTransport {
|
|
76
|
+
/** Resolved model id from the startup `get_state` round-trip (ticket 03). */
|
|
77
|
+
readonly model: string;
|
|
78
|
+
/** Write one frame. Safe immediately after open: pi buffers stdin (ticket 01). */
|
|
79
|
+
send(frame: Frame): void;
|
|
80
|
+
/** Every frame from the Agent, in arrival order. Ends when the Agent is gone. */
|
|
81
|
+
frames(): AsyncIterable<Frame>;
|
|
82
|
+
/**
|
|
83
|
+
* Begins one Ask. Live transports return undefined; replay transports return
|
|
84
|
+
* playback metadata even when the recorded Ask succeeded.
|
|
85
|
+
*/
|
|
86
|
+
beginAsk(marker: AskMarker): AskPlayback | undefined;
|
|
87
|
+
/** Reports surfaced live outcomes; replay ignores completion. */
|
|
88
|
+
finishAsk(outcome?: AskLimitOutcome, stalled?: AskStalledOutcome, invalidOutput?: AskInvalidOutputPlayback): void;
|
|
89
|
+
/**
|
|
90
|
+
* Shut the Agent down and report its cost. Idempotent.
|
|
91
|
+
* Owns the whole reap contract, so nothing above this interface knows what a
|
|
92
|
+
* signal is (ticket 02).
|
|
93
|
+
*/
|
|
94
|
+
close(): Promise<AgentStats>;
|
|
95
|
+
}
|
|
96
|
+
/** Everything needed to open one Agent. */
|
|
97
|
+
export interface OpenOptions {
|
|
98
|
+
/** Base cwd when requesting a worktree; resolved cwd after the wrapper opens it. */
|
|
99
|
+
readonly cwd: string;
|
|
100
|
+
readonly name: string;
|
|
101
|
+
/** Deterministic request for an isolated worktree; stripped before inner open. */
|
|
102
|
+
readonly worktree?: true;
|
|
103
|
+
readonly model?: string;
|
|
104
|
+
readonly systemPrompt?: string;
|
|
105
|
+
/** Process-start discovery policy; true restores pi's normal discovery, omission or false is hermetic. */
|
|
106
|
+
readonly inherit?: boolean;
|
|
107
|
+
/** Deterministic process-start thinking level; omission preserves pi's default. */
|
|
108
|
+
readonly thinking?: ThinkingLevel;
|
|
109
|
+
/** Deterministic process-start text appended to pi's system prompt. */
|
|
110
|
+
readonly appendSystemPrompt?: string;
|
|
111
|
+
/** Tool allowlist; an empty list disables all tools. */
|
|
112
|
+
readonly tools?: readonly string[];
|
|
113
|
+
/** Tool denylist, applied by pi after the allowlist. */
|
|
114
|
+
readonly disallowedTools?: readonly string[];
|
|
115
|
+
/** Skill allowlist by discovered name; identity only, never emitted as argv paths. */
|
|
116
|
+
readonly skills?: readonly string[];
|
|
117
|
+
/** Skill denylist by discovered name; identity only, never emitted as argv paths. */
|
|
118
|
+
readonly disallowedSkills?: readonly string[];
|
|
119
|
+
/** Resolved SKILL.md paths, injected only by the live restriction wrapper. */
|
|
120
|
+
readonly resolvedSkillPaths?: readonly string[];
|
|
121
|
+
/** Absolute launch-ready extension paths resolved above the seam, emitted as repeated `-e` flags. */
|
|
122
|
+
readonly resolvedExtensionPaths?: readonly string[];
|
|
123
|
+
/** Session storage directory. Used by the e2e suite to stay out of ~/.pi (ticket 06). */
|
|
124
|
+
readonly sessionDir?: string;
|
|
125
|
+
/** Resumes an existing pi session, translated to `--session <path>`. */
|
|
126
|
+
readonly sessionFile?: string;
|
|
127
|
+
}
|
|
128
|
+
/** Nondeterministic worktree identity resolved below the transport seam. */
|
|
129
|
+
export interface WorktreeResolution {
|
|
130
|
+
readonly cwd: string;
|
|
131
|
+
readonly branch: string;
|
|
132
|
+
}
|
|
133
|
+
/** Startup facts a factory may report without widening AgentTransport. */
|
|
134
|
+
export interface TransportStartup {
|
|
135
|
+
readonly sessionFile?: string;
|
|
136
|
+
readonly worktree?: WorktreeResolution;
|
|
137
|
+
}
|
|
138
|
+
/** Receives startup facts after a successful factory open. */
|
|
139
|
+
export type TransportStartupObserver = (startup: TransportStartup) => void;
|
|
140
|
+
/** How the layer above obtains transports. Swapped wholesale for replay. */
|
|
141
|
+
export interface TransportFactory {
|
|
142
|
+
open(options: OpenOptions, observeStartup?: TransportStartupObserver): Promise<AgentTransport>;
|
|
143
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { Static, TSchema } from "typebox";
|
|
2
|
+
/** pi's supported thinking levels. */
|
|
3
|
+
export type ThinkingLevel = "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
4
|
+
/** Options for spawning one Agent (ADR-0001, ADR-0009, ADR-0026). */
|
|
5
|
+
export interface SpawnOptions {
|
|
6
|
+
/** Working directory. Defaults to the Orchestrator's cwd. */
|
|
7
|
+
readonly cwd?: string;
|
|
8
|
+
/** Model pattern, e.g. "anthropic/claude-haiku-4". Unset inherits the user's default. */
|
|
9
|
+
readonly model?: string;
|
|
10
|
+
/** Replaces the default system prompt (`pi --system-prompt`). */
|
|
11
|
+
readonly systemPrompt?: string;
|
|
12
|
+
/** Sets pi's thinking level; omission preserves pi's default. */
|
|
13
|
+
readonly thinking?: ThinkingLevel;
|
|
14
|
+
/** Appends text to pi's system prompt (`pi --append-system-prompt`). */
|
|
15
|
+
readonly appendSystemPrompt?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Restores pi discovery. Omission or false selects ADR-0026's hermetic baseline.
|
|
18
|
+
*/
|
|
19
|
+
readonly inherit?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Explicit pi extensions layer over either ADR-0026 baseline. Relative entries
|
|
22
|
+
* resolve from the Orchestration Program file; each becomes `pi -e <path>`.
|
|
23
|
+
*/
|
|
24
|
+
readonly extensions?: readonly string[];
|
|
25
|
+
/**
|
|
26
|
+
* Tool allowlist layered over the ADR-0026 baseline; omission is tool-free when hermetic.
|
|
27
|
+
* `disallowedTools` applies last. A non-empty surviving allowlist is verified after startup;
|
|
28
|
+
* a missing promised name rejects spawn.
|
|
29
|
+
*/
|
|
30
|
+
readonly tools?: readonly string[];
|
|
31
|
+
/**
|
|
32
|
+
* Tool denylist applied last under ADR-0026; `['yaag_run']` prevents nested yaag Runs.
|
|
33
|
+
* Denying an absent tool is inert and is not presence-validated.
|
|
34
|
+
*/
|
|
35
|
+
readonly disallowedTools?: readonly string[];
|
|
36
|
+
/**
|
|
37
|
+
* Skill-name allowlist, not filesystem paths, layered over the ADR-0026 baseline.
|
|
38
|
+
* Omission is skill-free when hermetic; `disallowedSkills` applies last. Unknown requested
|
|
39
|
+
* names reject spawn.
|
|
40
|
+
*/
|
|
41
|
+
readonly skills?: readonly string[];
|
|
42
|
+
/** Skill-name denylist discovered from pi and applied last (ADR-0026). */
|
|
43
|
+
readonly disallowedSkills?: readonly string[];
|
|
44
|
+
/** Log and event label. Defaults to a1, a2, …; duplicate names are suffixed. */
|
|
45
|
+
readonly name?: string;
|
|
46
|
+
/** Request a fresh Git worktree. The requested cwd remains the base until spawn resolves. */
|
|
47
|
+
readonly worktree?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/** Topology-only fields that may change when spawning an Agent Definition. */
|
|
50
|
+
export interface SpawnOverrides {
|
|
51
|
+
/** Log and event label. Defaults to the definition's name; duplicates are suffixed. */
|
|
52
|
+
readonly name?: string;
|
|
53
|
+
/** Working directory. Defaults to the Orchestrator's cwd. */
|
|
54
|
+
readonly cwd?: string;
|
|
55
|
+
/** Request a fresh Git worktree. */
|
|
56
|
+
readonly worktree?: boolean;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Options for one Ask (ADR-0003).
|
|
60
|
+
*
|
|
61
|
+
* Soft limits trip at their configured count: turns are `turn_start` frames and
|
|
62
|
+
* tool calls are `tool_execution_start` frames between `agent_start` and
|
|
63
|
+
* `agent_settled`; duration is wall time from prompt send. A trip steers the
|
|
64
|
+
* Agent, permits one further turn (or a fixed duration grace), then aborts and
|
|
65
|
+
* rejects with `ASK_LIMIT` if it has not settled. This leaves the Handle alive.
|
|
66
|
+
* `timeoutMs` is independent: it kills the Agent and rejects with `ASK_TIMEOUT`.
|
|
67
|
+
*/
|
|
68
|
+
export interface AskOptions {
|
|
69
|
+
/** Reject and kill the Agent if it has not settled in time. Unset = no bound. */
|
|
70
|
+
readonly timeoutMs?: number;
|
|
71
|
+
/** Soft budget of `turn_start` frames between `agent_start` and `agent_settled`. */
|
|
72
|
+
readonly maxTurns?: number;
|
|
73
|
+
/** Soft budget of `tool_execution_start` frames between `agent_start` and `agent_settled`. */
|
|
74
|
+
readonly maxToolCalls?: number;
|
|
75
|
+
/** Soft wall-clock budget in milliseconds, measured from prompt send. */
|
|
76
|
+
readonly maxDurationMs?: number;
|
|
77
|
+
/**
|
|
78
|
+
* Maximum silence in milliseconds: rejects with `ASK_STALLED` when no frame
|
|
79
|
+
* arrives for this span. Complementary to `maxDurationMs` (silence vs.
|
|
80
|
+
* trickle) and separate from `timeoutMs`, which always kills. Unset disables
|
|
81
|
+
* idle detection (ADR-0020).
|
|
82
|
+
*/
|
|
83
|
+
readonly idleMs?: number;
|
|
84
|
+
/** Per-Ask replacement for the runtime's wrap-up steering message. */
|
|
85
|
+
readonly wrapUpPrompt?: string;
|
|
86
|
+
}
|
|
87
|
+
/** Ask options that require a schema and preserve its inferred successful result. */
|
|
88
|
+
export interface StructuredAskOptions<Schema extends TSchema> extends AskOptions {
|
|
89
|
+
/** TypeBox schema that changes successful Ask resolution from text to a parsed value. */
|
|
90
|
+
readonly outputSchema: Schema;
|
|
91
|
+
/** Maximum corrective steering efforts for this Ask; defaults to 3 when omitted. */
|
|
92
|
+
readonly maxSteers?: number;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* A handle to one long-lived Agent.
|
|
96
|
+
* ADR-0003: `ask()` is the only conversational verb; everything else is data.
|
|
97
|
+
*/
|
|
98
|
+
export interface Handle {
|
|
99
|
+
/** Stable identity, used in every Lifecycle Event and log line. */
|
|
100
|
+
readonly name: string;
|
|
101
|
+
/** Resolved absolute working directory; a worktree's actual cwd after spawn resolves. */
|
|
102
|
+
readonly cwd: string;
|
|
103
|
+
/** Fresh branch for a worktree Agent; undefined for ordinary Agents. */
|
|
104
|
+
readonly branch: string | undefined;
|
|
105
|
+
/** Model id as reported by the Agent's own `get_state` — not the requested pattern. */
|
|
106
|
+
readonly model: string;
|
|
107
|
+
/**
|
|
108
|
+
* Sends a prompt and resolves after the Agent's turn settles.
|
|
109
|
+
*
|
|
110
|
+
* Schema-free calls resolve with the exact final assistant text. Calls with
|
|
111
|
+
* `outputSchema` resolve with the extracted, TypeBox-validated value. Rejects
|
|
112
|
+
* with a YaagError for a failed or empty turn, timeout, `ASK_LIMIT`, or dead
|
|
113
|
+
* Agent; invalid structured output rejects recoverably with
|
|
114
|
+
* `ASK_INVALID_OUTPUT` after at most `maxSteers` (default 3) in-Ask
|
|
115
|
+
* correction efforts and an abort settlement. These recoverable outcomes
|
|
116
|
+
* leave the Handle reusable. A concurrent call rejects with `AGENT_BUSY`.
|
|
117
|
+
*/
|
|
118
|
+
ask<Schema extends TSchema>(prompt: string, options: StructuredAskOptions<Schema>): Promise<Static<Schema>>;
|
|
119
|
+
ask(prompt: string, options?: AskOptions): Promise<string>;
|
|
120
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { TLocalizedValidationError } from "typebox/error";
|
|
2
|
+
/** Formats TypeBox errors with stable JSON-path prefixes for public diagnostics. */
|
|
3
|
+
export declare function formatValidationErrors(value: unknown, errors: Iterable<TLocalizedValidationError>): readonly string[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cap on `ask_start.promptGist` characters (ticket 09). Shared so producers
|
|
3
|
+
* and observers agree on how much prompt ever rides the wire — the full
|
|
4
|
+
* prompt never does; `promptChars` carries its true length.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PROMPT_GIST_MAX_CHARS = 160;
|
|
7
|
+
/** Cap on the one-line argument gist carried by `ask_activity` tool observations. */
|
|
8
|
+
export declare const TOOL_ARGS_GIST_MAX_CHARS = 120;
|
|
9
|
+
/** Delay before a live Ask's pending assistant output tail is emitted. */
|
|
10
|
+
export declare const ASK_OUTPUT_FLUSH_INTERVAL_MS = 250;
|
|
11
|
+
/** Maximum UTF-8 payload bytes in one coalesced live Ask output batch. */
|
|
12
|
+
export declare const ASK_OUTPUT_MAX_BYTES: number;
|
|
13
|
+
/** Cap on the one-line `activityGist` carried by a `node_update` event. */
|
|
14
|
+
export declare const NODE_GIST_MAX_CHARS = 120;
|
|
15
|
+
/** Maximum Nested Nodes the Summary keeps per Agent; past it, exited nodes prune oldest-first. */
|
|
16
|
+
export declare const AGENT_NODE_TABLE_MAX = 64;
|
|
17
|
+
/** Prefix marking that the oldest pending Ask output was dropped to fit the wire cap. */
|
|
18
|
+
export declare const ASK_OUTPUT_TRUNCATION_MARKER = "[\u2026output truncated\u2026]";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TransportFactory } from "./transport.ts";
|
|
2
|
+
/**
|
|
3
|
+
* Creates an isolated Git worktree before opening flagged Agents.
|
|
4
|
+
*
|
|
5
|
+
* Refuses non-repositories and dirty base trees with `WORKTREE_REFUSED`, before
|
|
6
|
+
* opening `inner`. Created worktrees and branches are deliberately never
|
|
7
|
+
* removed: yaag does not own the user's work after creation (ADR-0007).
|
|
8
|
+
*/
|
|
9
|
+
export declare function worktreeTransport(inner: TransportFactory): TransportFactory;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type TProperties, type TSchema } from '../type/index.mjs';
|
|
2
|
+
import { type TExternal } from '../schema/index.mjs';
|
|
3
|
+
export interface CodeResult {
|
|
4
|
+
/** External Variables */
|
|
5
|
+
External: TExternal;
|
|
6
|
+
/** Generated Esm module. */
|
|
7
|
+
Code: string;
|
|
8
|
+
}
|
|
9
|
+
/** Creates a standalone ESM validation module for the given type. */
|
|
10
|
+
export declare function Code<Type extends TSchema>(type: Type): CodeResult;
|
|
11
|
+
/** Creates a standalone ESM validation module for the given type. */
|
|
12
|
+
export declare function Code<Context extends TProperties, Type extends TSchema>(context: Context, type: Type): CodeResult;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type TProperties, type TSchema } from '../type/index.mjs';
|
|
2
|
+
import { Validator } from './validator.mjs';
|
|
3
|
+
/** Compiles a type into a high performance Validator */
|
|
4
|
+
export declare function Compile<const Type extends TSchema, Result extends Validator = Validator<{}, Type>>(type: Type): Result;
|
|
5
|
+
/** Compiles a type into a high performance Validator */
|
|
6
|
+
export declare function Compile<Context extends TProperties, const Type extends TSchema, Result extends Validator = Validator<Context, Type>>(context: Context, type: Type): Result;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './code.mjs';
|
|
2
|
+
export * from './compile.mjs';
|
|
3
|
+
export * from './validator.mjs';
|
|
4
|
+
import { Code } from './code.mjs';
|
|
5
|
+
import { Compile } from './compile.mjs';
|
|
6
|
+
import { Validator } from './validator.mjs';
|
|
7
|
+
export { Code, Compile, Validator };
|
|
8
|
+
export default Compile;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type TLocalizedValidationError } from '../error/index.mjs';
|
|
2
|
+
import { type StaticDecode, type StaticEncode, type TProperties, type TSchema } from '../type/index.mjs';
|
|
3
|
+
export declare class Validator<Context extends TProperties = TProperties, Type extends TSchema = TSchema, Encode extends unknown = StaticEncode<Type, Context>, Decode extends unknown = StaticDecode<Type, Context>> {
|
|
4
|
+
private readonly hasCodec;
|
|
5
|
+
private readonly buildResult;
|
|
6
|
+
private readonly evaluateResult;
|
|
7
|
+
/** Constructs a Validator. */
|
|
8
|
+
constructor(context: Context, type: Type);
|
|
9
|
+
/** Returns true if this Validator is using JIT acceleration. */
|
|
10
|
+
IsAccelerated(): boolean;
|
|
11
|
+
/** Returns the Context for this validator. */
|
|
12
|
+
Context(): Context;
|
|
13
|
+
/** Returns the underlying Type used to construct this Validator. */
|
|
14
|
+
Type(): Type;
|
|
15
|
+
/** Returns the generated code for this validator. */
|
|
16
|
+
Code(): string;
|
|
17
|
+
/** Performs a type-guard check on the provided value. */
|
|
18
|
+
Check(value: unknown): value is Encode;
|
|
19
|
+
/** Validates a value and returns it. Will throw if invalid. */
|
|
20
|
+
Parse(value: unknown): Encode;
|
|
21
|
+
/** Inspects a value and returns a detailed list of validation errors. */
|
|
22
|
+
Errors(value: unknown): TLocalizedValidationError[];
|
|
23
|
+
/** Cleans a value using the Validator type. */
|
|
24
|
+
Clean(value: unknown): unknown;
|
|
25
|
+
/** Converts a value using the Validator type. */
|
|
26
|
+
Convert(value: unknown): unknown;
|
|
27
|
+
/** Creates a value using the Validator type. */
|
|
28
|
+
Create(): Encode;
|
|
29
|
+
/** Creates defaults using the Validator type. */
|
|
30
|
+
Default(value: unknown): unknown;
|
|
31
|
+
/** Decodes a value */
|
|
32
|
+
Decode(value: unknown): Decode;
|
|
33
|
+
/** Encodes a value */
|
|
34
|
+
Encode(value: unknown): Encode;
|
|
35
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
export type TValidationError = TAdditionalPropertiesError | TAnyOfError | TBooleanError | TConstError | TContainsError | TDependenciesError | TDependentRequiredError | TEnumError | TExclusiveMaximumError | TExclusiveMinimumError | TFormatError | TIfError | TMaximumError | TMaxItemsError | TMaxLengthError | TMaxPropertiesError | TMinimumError | TMinItemsError | TMinLengthError | TMinPropertiesError | TMultipleOfError | TNotError | TOneOfError | TPatternError | TPropertyNamesError | TRefineError | TRequiredError | TTypeError | TUnevaluatedItemsError | TUnevaluatedPropertiesError | TUniqueItemsError;
|
|
2
|
+
export declare function IsValidationError(value: unknown): value is TValidationError;
|
|
3
|
+
export type TLocalizedValidationError = TValidationError & {
|
|
4
|
+
message: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function IsLocalizedValidationError(value: unknown): value is TLocalizedValidationError;
|
|
7
|
+
export type TLocalizedValidationMessageCallback = (error: TValidationError) => string;
|
|
8
|
+
export interface TValidationErrorBase {
|
|
9
|
+
keyword: string;
|
|
10
|
+
schemaPath: string;
|
|
11
|
+
instancePath: string;
|
|
12
|
+
params: object;
|
|
13
|
+
}
|
|
14
|
+
export interface TAdditionalPropertiesError extends TValidationErrorBase {
|
|
15
|
+
keyword: 'additionalProperties';
|
|
16
|
+
params: {
|
|
17
|
+
additionalProperties: string[];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export interface TAnyOfError extends TValidationErrorBase {
|
|
21
|
+
keyword: 'anyOf';
|
|
22
|
+
params: {};
|
|
23
|
+
}
|
|
24
|
+
export interface TBooleanError extends TValidationErrorBase {
|
|
25
|
+
keyword: 'boolean';
|
|
26
|
+
params: {};
|
|
27
|
+
}
|
|
28
|
+
export interface TConstError extends TValidationErrorBase {
|
|
29
|
+
keyword: 'const';
|
|
30
|
+
params: {
|
|
31
|
+
allowedValue: unknown;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export interface TContainsError extends TValidationErrorBase {
|
|
35
|
+
keyword: 'contains';
|
|
36
|
+
params: {
|
|
37
|
+
minContains: number;
|
|
38
|
+
maxContains?: number;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export interface TDependenciesError extends TValidationErrorBase {
|
|
42
|
+
keyword: 'dependencies';
|
|
43
|
+
params: {
|
|
44
|
+
property: string;
|
|
45
|
+
dependencies: string[];
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export interface TDependentRequiredError extends TValidationErrorBase {
|
|
49
|
+
keyword: 'dependentRequired';
|
|
50
|
+
params: {
|
|
51
|
+
property: string;
|
|
52
|
+
dependencies: string[];
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface TEnumError extends TValidationErrorBase {
|
|
56
|
+
keyword: 'enum';
|
|
57
|
+
params: {
|
|
58
|
+
allowedValues: unknown[];
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export interface TExclusiveMaximumError extends TValidationErrorBase {
|
|
62
|
+
keyword: 'exclusiveMaximum';
|
|
63
|
+
params: {
|
|
64
|
+
comparison: '<';
|
|
65
|
+
limit: number | bigint;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export interface TExclusiveMinimumError extends TValidationErrorBase {
|
|
69
|
+
keyword: 'exclusiveMinimum';
|
|
70
|
+
params: {
|
|
71
|
+
comparison: '>';
|
|
72
|
+
limit: number | bigint;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export interface TFormatError extends TValidationErrorBase {
|
|
76
|
+
keyword: 'format';
|
|
77
|
+
params: {
|
|
78
|
+
format: string;
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
export interface TIfError extends TValidationErrorBase {
|
|
82
|
+
keyword: 'if';
|
|
83
|
+
params: {
|
|
84
|
+
failingKeyword: 'then' | 'else';
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
export interface TMaximumError extends TValidationErrorBase {
|
|
88
|
+
keyword: 'maximum';
|
|
89
|
+
params: {
|
|
90
|
+
comparison: '<=';
|
|
91
|
+
limit: number | bigint;
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
export interface TMaxItemsError extends TValidationErrorBase {
|
|
95
|
+
keyword: 'maxItems';
|
|
96
|
+
params: {
|
|
97
|
+
limit: number;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
export interface TMaxLengthError extends TValidationErrorBase {
|
|
101
|
+
keyword: 'maxLength';
|
|
102
|
+
params: {
|
|
103
|
+
limit: number;
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
export interface TMaxPropertiesError extends TValidationErrorBase {
|
|
107
|
+
keyword: 'maxProperties';
|
|
108
|
+
params: {
|
|
109
|
+
limit: number;
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
export interface TMinimumError extends TValidationErrorBase {
|
|
113
|
+
keyword: 'minimum';
|
|
114
|
+
params: {
|
|
115
|
+
comparison: '>=';
|
|
116
|
+
limit: number | bigint;
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
export interface TMinItemsError extends TValidationErrorBase {
|
|
120
|
+
keyword: 'minItems';
|
|
121
|
+
params: {
|
|
122
|
+
limit: number;
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
export interface TMinLengthError extends TValidationErrorBase {
|
|
126
|
+
keyword: 'minLength';
|
|
127
|
+
params: {
|
|
128
|
+
limit: number;
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
export interface TMinPropertiesError extends TValidationErrorBase {
|
|
132
|
+
keyword: 'minProperties';
|
|
133
|
+
params: {
|
|
134
|
+
limit: number;
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
export interface TMultipleOfError extends TValidationErrorBase {
|
|
138
|
+
keyword: 'multipleOf';
|
|
139
|
+
params: {
|
|
140
|
+
multipleOf: number | bigint;
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
export interface TMinimumError extends TValidationErrorBase {
|
|
144
|
+
keyword: 'minimum';
|
|
145
|
+
params: {
|
|
146
|
+
comparison: '>=';
|
|
147
|
+
limit: number | bigint;
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
export interface TNotError extends TValidationErrorBase {
|
|
151
|
+
keyword: 'not';
|
|
152
|
+
params: {};
|
|
153
|
+
}
|
|
154
|
+
export interface TOneOfError extends TValidationErrorBase {
|
|
155
|
+
keyword: 'oneOf';
|
|
156
|
+
params: {
|
|
157
|
+
passingSchemas: number[];
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
export interface TPatternError extends TValidationErrorBase {
|
|
161
|
+
keyword: 'pattern';
|
|
162
|
+
params: {
|
|
163
|
+
pattern: string | RegExp;
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
export interface TPropertyNamesError extends TValidationErrorBase {
|
|
167
|
+
keyword: 'propertyNames';
|
|
168
|
+
params: {
|
|
169
|
+
propertyNames: string[];
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
export interface TRefineError extends TValidationErrorBase {
|
|
173
|
+
keyword: '~refine';
|
|
174
|
+
params: {
|
|
175
|
+
index: number;
|
|
176
|
+
message: string;
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
export interface TRequiredError extends TValidationErrorBase {
|
|
180
|
+
keyword: 'required';
|
|
181
|
+
params: {
|
|
182
|
+
requiredProperties: string[];
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
export interface TTypeError extends TValidationErrorBase {
|
|
186
|
+
keyword: 'type';
|
|
187
|
+
params: {
|
|
188
|
+
type: string | string[];
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
export interface TUnevaluatedItemsError extends TValidationErrorBase {
|
|
192
|
+
keyword: 'unevaluatedItems';
|
|
193
|
+
params: {
|
|
194
|
+
unevaluatedItems: number[];
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
export interface TUnevaluatedPropertiesError extends TValidationErrorBase {
|
|
198
|
+
keyword: 'unevaluatedProperties';
|
|
199
|
+
params: {
|
|
200
|
+
unevaluatedProperties: PropertyKey[];
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
export interface TUniqueItemsError extends TValidationErrorBase {
|
|
204
|
+
keyword: 'uniqueItems';
|
|
205
|
+
params: {
|
|
206
|
+
duplicateItems: number[];
|
|
207
|
+
};
|
|
208
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './errors.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function Decode(value: string): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type TFormatCheckFunction = (value: string) => boolean;
|
|
2
|
+
/** Clears all entries */
|
|
3
|
+
export declare function Clear(): void;
|
|
4
|
+
/** Returns format entries in this registry */
|
|
5
|
+
export declare function Entries(): [string, TFormatCheckFunction][];
|
|
6
|
+
/** Sets a format */
|
|
7
|
+
export declare function Set(format: string, check: TFormatCheckFunction): void;
|
|
8
|
+
/** Returns true if the registry has this format */
|
|
9
|
+
export declare function Has(format: string): boolean;
|
|
10
|
+
/** Gets a format or undefined if not exists */
|
|
11
|
+
export declare function Get(format: string): TFormatCheckFunction | undefined;
|
|
12
|
+
/** Tests a value against a format, if the format is not registered, true */
|
|
13
|
+
export declare function Test(format: string, value: string): boolean;
|
|
14
|
+
/** Resets all formats to defaults */
|
|
15
|
+
export declare function Reset(): void;
|