@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,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every Lifecycle Event identifies its Agent, so an unnamed Agent still needs a
|
|
3
|
+
* name and a duplicate is suffixed rather than rejected — spawning in a loop
|
|
4
|
+
* must not fail.
|
|
5
|
+
*
|
|
6
|
+
* `taken` is mutated: the chosen name is reserved.
|
|
7
|
+
*/
|
|
8
|
+
export declare function uniqueAgentName(requested: string | undefined, ordinal: number, taken: Set<string>): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Frame, TokenBreakdown } from "./transport.ts";
|
|
2
|
+
export interface AgentUsageSnapshot {
|
|
3
|
+
readonly tokens: TokenBreakdown;
|
|
4
|
+
readonly cost: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Accumulates complete assistant `message_end` usage across an Agent's lifetime.
|
|
8
|
+
*
|
|
9
|
+
* Invalid or non-assistant frames never change the reported accounting.
|
|
10
|
+
*/
|
|
11
|
+
export declare class AgentUsage {
|
|
12
|
+
#private;
|
|
13
|
+
constructor(report: (snapshot: AgentUsageSnapshot) => void);
|
|
14
|
+
/** Observes one raw Agent frame and reports after each valid assistant completion. */
|
|
15
|
+
observe(frame: Frame): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Static, TSchema } from "typebox";
|
|
2
|
+
import type { EventSink } from "./events.ts";
|
|
3
|
+
import type { AgentStats, AgentTransport } from "./transport.ts";
|
|
4
|
+
import type { AskOptions, Handle, SpawnOptions, StructuredAskOptions } from "./types.ts";
|
|
5
|
+
export interface AgentOptions {
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly cwd: string;
|
|
8
|
+
readonly branch: string | undefined;
|
|
9
|
+
readonly transport: AgentTransport;
|
|
10
|
+
readonly emit: EventSink;
|
|
11
|
+
/** The options this Agent was spawned with, for the ADR-0014 Ask hash. */
|
|
12
|
+
readonly spawnOptions: SpawnOptions;
|
|
13
|
+
/** Definition-owned defaults merged below explicit per-Ask options. */
|
|
14
|
+
readonly askDefaults?: AskOptions;
|
|
15
|
+
/** Definition identity recorded on its Asks, outside replay identity. */
|
|
16
|
+
readonly definitionName?: string;
|
|
17
|
+
/** Test-only override for the fixed duration-limit grace. */
|
|
18
|
+
readonly askLimitGraceMs?: number;
|
|
19
|
+
/** Test-only override for the bounded wait for `agent_settled` after an idle abort. */
|
|
20
|
+
readonly idleAbortSettleMs?: number;
|
|
21
|
+
}
|
|
22
|
+
/** One Agent as an Orchestration Program sees it. Lives above the transport seam. */
|
|
23
|
+
export declare class Agent implements Handle {
|
|
24
|
+
#private;
|
|
25
|
+
readonly name: string;
|
|
26
|
+
readonly cwd: string;
|
|
27
|
+
readonly branch: string | undefined;
|
|
28
|
+
readonly model: string;
|
|
29
|
+
constructor(options: AgentOptions);
|
|
30
|
+
ask<Schema extends TSchema>(prompt: string, options: StructuredAskOptions<Schema>): Promise<Static<Schema>>;
|
|
31
|
+
ask(prompt: string, options?: AskOptions): Promise<string>;
|
|
32
|
+
/** True when the Agent was killed mid-Ask, so its cost is a floor (ADR-0012). */
|
|
33
|
+
get incomplete(): boolean;
|
|
34
|
+
/** Shuts the Agent down and reports its cost. Idempotent. */
|
|
35
|
+
close(): Promise<AgentStats>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AgentActivity } from "./events.ts";
|
|
2
|
+
import type { Frame } from "./transport.ts";
|
|
3
|
+
/** Reports complete Ask activity transitions derived from already-observed frames. */
|
|
4
|
+
export declare class AskActivityTracker {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(onChange: (activity: AgentActivity) => void);
|
|
7
|
+
/** Inspects one Agent frame and ignores malformed or unsupported shapes. */
|
|
8
|
+
observe(frame: Frame): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { TSchema } from "typebox";
|
|
2
|
+
/** A JSON value suitable for deterministic Cassette identity. */
|
|
3
|
+
export type CanonicalJson = null | boolean | number | string | CanonicalJson[] | CanonicalJsonObject;
|
|
4
|
+
/** A JSON object with recursively sorted keys. */
|
|
5
|
+
export interface CanonicalJsonObject {
|
|
6
|
+
readonly [key: string]: CanonicalJson;
|
|
7
|
+
}
|
|
8
|
+
/** The conditional behavioral output contract of a structured Ask. */
|
|
9
|
+
export interface AskOutputContract {
|
|
10
|
+
readonly outputSchema: CanonicalJsonObject;
|
|
11
|
+
readonly extractionPolicy: string;
|
|
12
|
+
readonly maxSteers?: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Copies a TypeBox schema into recursively key-sorted JSON form without mutating it.
|
|
16
|
+
*
|
|
17
|
+
* Throws when the value cannot be represented in a Cassette JSON artifact.
|
|
18
|
+
*/
|
|
19
|
+
export declare function canonicalizeSchema(value: unknown): CanonicalJsonObject;
|
|
20
|
+
/** Builds the recorded and hashed behavioral contract for one structured Ask. */
|
|
21
|
+
export declare function createAskOutputContract(schema: TSchema, maxSteers?: number): AskOutputContract;
|
|
22
|
+
/** Validates an externally supplied canonical schema representation. */
|
|
23
|
+
export declare function validateCanonicalOutputSchema(value: unknown): CanonicalJsonObject;
|
|
24
|
+
/** Validates a policy identifier while allowing future versions to load and diverge at replay. */
|
|
25
|
+
export declare function validateExtractionPolicy(value: unknown): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AgentActivity, AskOutputChannel, EventSink } from "./events.ts";
|
|
2
|
+
import type { NodeSnapshot } from "./node-tracker.ts";
|
|
3
|
+
/** Emits the four Ask-scoped Lifecycle Events for one exchange. */
|
|
4
|
+
export declare class AskEvents {
|
|
5
|
+
#private;
|
|
6
|
+
constructor(emit: EventSink, agent: string, index: number);
|
|
7
|
+
start(prompt: string, replayed: boolean): void;
|
|
8
|
+
activity: (activity: AgentActivity) => void;
|
|
9
|
+
output: (channel: AskOutputChannel, text: string) => void;
|
|
10
|
+
/** Composes the Nested Node path from this Ask's identity, then reports it. */
|
|
11
|
+
node: (snapshot: NodeSnapshot) => void;
|
|
12
|
+
end(durationMs: number, ok: boolean, maxFrameGapMs: number | undefined): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { EffectiveAskOptions } from "./ask-hash.ts";
|
|
2
|
+
import type { Connection } from "./connection.ts";
|
|
3
|
+
import type { EventSink } from "./events.ts";
|
|
4
|
+
import type { AgentTransport, Frame } from "./transport.ts";
|
|
5
|
+
import type { SpawnOptions } from "./types.ts";
|
|
6
|
+
/** A frame consumer whose lifetime exceeds one Ask; the Agent's AgentUsage satisfies it. */
|
|
7
|
+
export interface FrameObserver {
|
|
8
|
+
observe(frame: Frame): void;
|
|
9
|
+
}
|
|
10
|
+
/** Options that connect one Ask exchange to its Agent's identity and event stream. */
|
|
11
|
+
export interface AskExchangeOptions {
|
|
12
|
+
readonly agent: string;
|
|
13
|
+
readonly connection: Connection;
|
|
14
|
+
readonly transport: AgentTransport;
|
|
15
|
+
readonly prompt: string;
|
|
16
|
+
readonly index: number;
|
|
17
|
+
readonly ask: EffectiveAskOptions;
|
|
18
|
+
readonly spawnOptions: SpawnOptions;
|
|
19
|
+
readonly definitionName: string | undefined;
|
|
20
|
+
/** Lifecycle Event sink; the exchange emits every Ask-scoped event itself. */
|
|
21
|
+
readonly emit: EventSink;
|
|
22
|
+
/** The Agent's persistent usage accumulator; fed frames only during live Asks. */
|
|
23
|
+
readonly usage: FrameObserver;
|
|
24
|
+
/** Kills the Agent on ASK_TIMEOUT and destructive stalls — the one upward capability. */
|
|
25
|
+
readonly close: () => void;
|
|
26
|
+
/** Test-only override for the fixed duration-limit grace. */
|
|
27
|
+
readonly askLimitGraceMs: number | undefined;
|
|
28
|
+
/** Test-only override for the bounded settle wait after an idle abort. */
|
|
29
|
+
readonly idleAbortSettleMs: number | undefined;
|
|
30
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AskExchangeOptions } from "./ask-exchange-options.ts";
|
|
2
|
+
export type { AskExchangeOptions } from "./ask-exchange-options.ts";
|
|
3
|
+
/** Runs one Ask's transport exchange, including controls and structured-output correction. */
|
|
4
|
+
export declare function exchangeAsk(options: AskExchangeOptions): Promise<unknown>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { TSchema } from "typebox";
|
|
2
|
+
import { type AskOutputContract } from "./ask-contract-identity.ts";
|
|
3
|
+
import type { AskMarkerContext } from "./transport.ts";
|
|
4
|
+
import type { AskOptions, SpawnOptions, StructuredAskOptions } from "./types.ts";
|
|
5
|
+
/** The combined option shape used internally after Definition defaults merge. */
|
|
6
|
+
export type EffectiveAskOptions = AskOptions | StructuredAskOptions<TSchema>;
|
|
7
|
+
/** Inputs that identify an Ask in a Cassette. */
|
|
8
|
+
export interface AskHashOptions {
|
|
9
|
+
readonly spawnOptions: SpawnOptions;
|
|
10
|
+
readonly index: number;
|
|
11
|
+
readonly prompt: string;
|
|
12
|
+
/** Soft-limit behavior and structured output contract, unlike timeoutMs, identify replay. */
|
|
13
|
+
readonly ask?: EffectiveAskOptions;
|
|
14
|
+
/** Precomputed once so marker metadata and hashing cannot drift. */
|
|
15
|
+
readonly outputContract?: AskOutputContract;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Identity of one Ask: sha256 over the prompt and behavioral Agent/Ask options.
|
|
19
|
+
*
|
|
20
|
+
* The optional canonical output schema, explicit steer bound, and extraction
|
|
21
|
+
* policy identify schema-bearing Asks. `timeoutMs` remains excluded.
|
|
22
|
+
*/
|
|
23
|
+
export declare function askHash(options: AskHashOptions): string;
|
|
24
|
+
/**
|
|
25
|
+
* Retains Ask hash inputs for Definition-backed Cassette divergence diagnostics.
|
|
26
|
+
*
|
|
27
|
+
* `timeoutMs` remains excluded. Structured output schemas, explicit steer bounds,
|
|
28
|
+
* and extraction policy are retained because they participate in `askHash`.
|
|
29
|
+
*/
|
|
30
|
+
export declare function askMarkerContext({ spawnOptions, prompt, ask, outputContract, }: AskHashOptions): AskMarkerContext;
|
|
31
|
+
/** Creates structured identity only when the Ask explicitly carries a schema. */
|
|
32
|
+
export declare function structuredOutputContract(ask: EffectiveAskOptions | undefined): AskOutputContract | undefined;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { AskLimitOutcome } from "./errors.ts";
|
|
2
|
+
import type { Frame } from "./transport.ts";
|
|
3
|
+
import type { AskOptions } from "./types.ts";
|
|
4
|
+
/** The message sent when an Ask uses its allotted soft budget. */
|
|
5
|
+
export declare const DEFAULT_WRAP_UP_PROMPT = "Please wrap up now and provide your final answer.";
|
|
6
|
+
/** Fixed time allowed to conclude after a duration limit trips. */
|
|
7
|
+
export declare const ASK_LIMIT_DURATION_GRACE_MS = 5000;
|
|
8
|
+
export interface AskLimitOptions {
|
|
9
|
+
readonly ask: AskOptions;
|
|
10
|
+
readonly command: (frame: Frame) => Promise<boolean>;
|
|
11
|
+
readonly durationGraceMs?: number;
|
|
12
|
+
readonly now?: () => number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Per-Ask soft-limit controller.
|
|
16
|
+
*
|
|
17
|
+
* A budget trips at equality. The triggering turn is allowed to finish and one
|
|
18
|
+
* later `turn_start` is grace, because pi delivers steering between turns.
|
|
19
|
+
*/
|
|
20
|
+
export declare class AskLimit {
|
|
21
|
+
#private;
|
|
22
|
+
constructor(options: AskLimitOptions);
|
|
23
|
+
/** Starts wall-clock accounting immediately before the prompt command is sent. */
|
|
24
|
+
start(): void;
|
|
25
|
+
/** Observes frames without changing their interpretation for the Ask itself. */
|
|
26
|
+
observe(frame: Frame): void;
|
|
27
|
+
/**
|
|
28
|
+
* Enters one output-contract correction effort when no limit is wrapping up.
|
|
29
|
+
*
|
|
30
|
+
* Returns false after a limit has tripped, so callers never reopen its grace
|
|
31
|
+
* window with a validator steer.
|
|
32
|
+
*/
|
|
33
|
+
enterOutputCorrection(): boolean;
|
|
34
|
+
/** Leaves an output-contract correction effort after its text was retrieved. */
|
|
35
|
+
leaveOutputCorrection(): void;
|
|
36
|
+
/** Cancels timers when the whole logical Ask reaches a terminal result. */
|
|
37
|
+
settled(): void;
|
|
38
|
+
/** Cancels timers on every other Ask exit path. Idempotent. */
|
|
39
|
+
cleanup(): void;
|
|
40
|
+
/** Rejects when a steer or abort RPC is refused. */
|
|
41
|
+
get failed(): Promise<never>;
|
|
42
|
+
/** True once a limit has sent its wrap-up steer and owns the grace window. */
|
|
43
|
+
get tripped(): boolean;
|
|
44
|
+
/** Present only after yaag itself has sent the limit abort command. */
|
|
45
|
+
get abortOutcome(): AskLimitOutcome | null;
|
|
46
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { TSchema } from "typebox";
|
|
2
|
+
/** The per-Ask bound when a structured Ask omits `maxSteers`. */
|
|
3
|
+
export declare const DEFAULT_MAX_STEERS = 3;
|
|
4
|
+
export interface AskOutputSteeringOptions {
|
|
5
|
+
readonly agent: string;
|
|
6
|
+
readonly schema: TSchema;
|
|
7
|
+
readonly maxSteers: number | undefined;
|
|
8
|
+
/** Atomically enters a correction effort, or false after a limit starts wrap-up. */
|
|
9
|
+
readonly beginCorrection: () => boolean;
|
|
10
|
+
/** True once a soft limit has sent its wrap-up steer. */
|
|
11
|
+
readonly wrappingUp: () => boolean;
|
|
12
|
+
/** Re-arms settlement tracking, sends the steer, and returns its settled text. */
|
|
13
|
+
readonly correct: (message: string) => Promise<string>;
|
|
14
|
+
/** Re-arms settlement tracking, sends abort, and waits for its settlement. */
|
|
15
|
+
readonly abort: () => Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Validates structured output and corrects it without creating another logical Ask.
|
|
19
|
+
*
|
|
20
|
+
* Control-command failures propagate from `correct` or `abort` as Agent failures,
|
|
21
|
+
* rather than being reported as invalid-output exhaustion.
|
|
22
|
+
*/
|
|
23
|
+
export declare class AskOutputSteering {
|
|
24
|
+
#private;
|
|
25
|
+
constructor(options: AskOutputSteeringOptions);
|
|
26
|
+
/** Resolves a valid parsed value or rejects after the abort settlement on exhaustion. */
|
|
27
|
+
resolve(text: string): Promise<unknown>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { AskOutputChannel } from "./events.ts";
|
|
2
|
+
import type { Frame } from "./transport.ts";
|
|
3
|
+
/** The timer boundary used to test output batching without changing its wire rate. */
|
|
4
|
+
export interface AskOutputTailScheduler<Handle = unknown> {
|
|
5
|
+
schedule(callback: () => void): Handle;
|
|
6
|
+
cancel(timer: Handle): void;
|
|
7
|
+
}
|
|
8
|
+
interface AskOutputTailOptions {
|
|
9
|
+
readonly report: (channel: AskOutputChannel, text: string) => void;
|
|
10
|
+
readonly scheduler?: AskOutputTailScheduler;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Coalesces live assistant deltas into channel-tagged, UTF-8-bounded output tails.
|
|
14
|
+
*
|
|
15
|
+
* Malformed and unsupported frames are ignored. `close()` flushes synchronously and
|
|
16
|
+
* prevents a timer from emitting after an Ask terminal event.
|
|
17
|
+
*/
|
|
18
|
+
export declare class AskOutputTail {
|
|
19
|
+
#private;
|
|
20
|
+
constructor(options: AskOutputTailOptions);
|
|
21
|
+
/** Inspects one frame and queues only non-empty assistant thinking or text deltas. */
|
|
22
|
+
observe(frame: Frame): void;
|
|
23
|
+
/** Emits one pending batch immediately and cancels its scheduled trailing flush. */
|
|
24
|
+
flush(): void;
|
|
25
|
+
/** Flushes remaining output and prevents future observations or timer emissions. */
|
|
26
|
+
close(): void;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { TSchema } from "typebox";
|
|
2
|
+
import type { AskInvalidOutputOutcome } from "./errors.ts";
|
|
3
|
+
import { YaagError } from "./errors.ts";
|
|
4
|
+
import type { AskInvalidOutputPlayback } from "./transport.ts";
|
|
5
|
+
/** Versioned extraction behavior. It becomes Cassette identity in issue 04. */
|
|
6
|
+
export declare const ASK_OUTPUT_EXTRACTION_POLICY = "json-first-block/v1";
|
|
7
|
+
/** The currently implemented extraction policy identifier. */
|
|
8
|
+
export type AskOutputExtractionPolicy = typeof ASK_OUTPUT_EXTRACTION_POLICY;
|
|
9
|
+
export type AskOutputResult = {
|
|
10
|
+
readonly ok: true;
|
|
11
|
+
readonly value: unknown;
|
|
12
|
+
} | {
|
|
13
|
+
readonly ok: false;
|
|
14
|
+
readonly errors: readonly string[];
|
|
15
|
+
};
|
|
16
|
+
/** Extracts the first parseable JSON object or array and validates it without coercion. */
|
|
17
|
+
export declare function validateAskOutput(text: string, schema: TSchema): AskOutputResult;
|
|
18
|
+
/** Produces the deterministic prompt for one correction effort. */
|
|
19
|
+
export declare function formatAskOutputCorrection(errors: readonly string[]): string;
|
|
20
|
+
/**
|
|
21
|
+
* Resolves a replayed Ask's structured output from its recorded text and outcome.
|
|
22
|
+
*
|
|
23
|
+
* A recorded invalid-output outcome rethrows deterministically (ADR-0027); otherwise
|
|
24
|
+
* the text is re-validated so playback and live settlement agree. Throws the same
|
|
25
|
+
* recoverable ASK_INVALID_OUTPUT error as a live Ask on validation failure.
|
|
26
|
+
*/
|
|
27
|
+
export declare function resolvePlaybackAskOutput(agent: string, schema: TSchema, text: string, recordedOutcome: AskInvalidOutputPlayback | undefined): unknown;
|
|
28
|
+
/** Creates the recoverable error for final structured-output validation failure. */
|
|
29
|
+
export declare function invalidAskOutputError(agent: string, outcome: AskInvalidOutputOutcome): YaagError;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { YaagError } from "./errors.ts";
|
|
2
|
+
export interface AwaitAskSettlementOptions {
|
|
3
|
+
readonly settled: Promise<void>;
|
|
4
|
+
readonly closed: Promise<void>;
|
|
5
|
+
readonly timeoutMs: number | undefined;
|
|
6
|
+
readonly controlFailure: Promise<never>;
|
|
7
|
+
readonly error: (code: YaagError["code"], message: string) => YaagError;
|
|
8
|
+
readonly close: () => void;
|
|
9
|
+
}
|
|
10
|
+
/** Waits for one effort's settlement while preserving the Ask-wide timeout and death semantics. */
|
|
11
|
+
export declare function awaitAskSettlement(options: AwaitAskSettlementOptions): Promise<void>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Frame } from "./transport.ts";
|
|
2
|
+
/**
|
|
3
|
+
* Interprets the frames of one Ask (ticket 01's 8-point contract).
|
|
4
|
+
*
|
|
5
|
+
* Two rules here are counter-intuitive and load-bearing:
|
|
6
|
+
* - `agent_end` is ignored entirely. `willRetry: true` is followed by a second
|
|
7
|
+
* `agent_start` for the same Ask; only `agent_settled` terminates one.
|
|
8
|
+
* - Only the *last* assistant `message_end` decides success. A retried-then-
|
|
9
|
+
* successful Ask emits an early `stopReason: "error"`, so an earlier one would
|
|
10
|
+
* falsely reject a recovered turn.
|
|
11
|
+
*/
|
|
12
|
+
export declare class AskTurn {
|
|
13
|
+
#private;
|
|
14
|
+
observe(frame: Frame): void;
|
|
15
|
+
/** True once `agent_settled` has been seen — settled says nothing about success. */
|
|
16
|
+
get settled(): boolean;
|
|
17
|
+
/** Starts a new correction effort without retaining the preceding terminal state. */
|
|
18
|
+
rearm(): void;
|
|
19
|
+
/**
|
|
20
|
+
* The failure message when the turn ended badly, else null.
|
|
21
|
+
* `agent_settled` fires on failed turns too, so this check is what
|
|
22
|
+
* distinguishes them (ticket 01 §3).
|
|
23
|
+
*/
|
|
24
|
+
failure(): string | null;
|
|
25
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type Cassette } from "./cassette.ts";
|
|
2
|
+
/**
|
|
3
|
+
* Reads and validates one Cassette artifact before replay begins.
|
|
4
|
+
*
|
|
5
|
+
* Rejects unreadable, unparsable, unsupported, and malformed artifacts at the
|
|
6
|
+
* filesystem boundary; replay never receives unchecked external data. The
|
|
7
|
+
* schema checks structure; the five named invariants below check semantics.
|
|
8
|
+
* A version 1 artifact is upgraded in memory to version 2 (ADR-0021).
|
|
9
|
+
* Unknown fields are retained, never dropped (forward tolerance).
|
|
10
|
+
*/
|
|
11
|
+
export declare function loadCassette(path: string): Promise<Cassette>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Cassette } from "./cassette.ts";
|
|
2
|
+
/** Prefix of every in-flight publication temp file, so a later start can clean stale ones (ADR-0021). */
|
|
3
|
+
export declare const CASSETTE_TEMP_PREFIX = ".yaag-tmp-";
|
|
4
|
+
/**
|
|
5
|
+
* Publishes a Cassette crash-durably: temp file, fsync, rename, destination
|
|
6
|
+
* directory fsync. Resolves only after all four steps complete (ADR-0021).
|
|
7
|
+
*
|
|
8
|
+
* Rejects with an error naming `path` when any step fails; the temp file is
|
|
9
|
+
* removed on a best-effort basis first.
|
|
10
|
+
*/
|
|
11
|
+
export declare function publishCassette(path: string, cassette: Cassette): Promise<void>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { CassetteAgent } from "./cassette.ts";
|
|
2
|
+
import type { AgentStats, AskMarker, AskPlayback, Frame } from "./transport.ts";
|
|
3
|
+
/**
|
|
4
|
+
* Replays one Cassette Agent's frame streams at the transport seam.
|
|
5
|
+
*
|
|
6
|
+
* It owns frame ordering and command-id remapping, but deliberately leaves
|
|
7
|
+
* mismatch policy to its caller. `finish()` ends playback for a live handoff.
|
|
8
|
+
*/
|
|
9
|
+
export declare class CassetteReplay {
|
|
10
|
+
#private;
|
|
11
|
+
readonly model: string;
|
|
12
|
+
readonly stats: AgentStats;
|
|
13
|
+
constructor(agent: CassetteAgent);
|
|
14
|
+
/** Returns the recorded Agent whose Ask cursors this instance plays. */
|
|
15
|
+
get agent(): CassetteAgent;
|
|
16
|
+
/** Sends a frame through the recorded conversation, synthesizing internal responses. */
|
|
17
|
+
send(frame: Frame): void;
|
|
18
|
+
/** Returns a single ordered stream of recorded incoming frames. */
|
|
19
|
+
frames(): AsyncIterable<Frame>;
|
|
20
|
+
/** Moves playback to an Ask that its caller has already identity-checked. */
|
|
21
|
+
beginAsk(marker: AskMarker): AskPlayback;
|
|
22
|
+
/** Ends the stream cleanly, allowing a caller to switch to another source. */
|
|
23
|
+
finish(): void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { type Static, Type } from "typebox";
|
|
2
|
+
import type { CanonicalJsonObject } from "./ask-contract-identity.ts";
|
|
3
|
+
import type { CassetteArtifact } from "./cassette.ts";
|
|
4
|
+
import type { Frame } from "./transport.ts";
|
|
5
|
+
/**
|
|
6
|
+
* Structure gate for one Cassette artifact read from disk. `run` stays optional
|
|
7
|
+
* here because version 1 predates it; the loader's presence invariant rejects a
|
|
8
|
+
* version 2 artifact without one, so field-path errors stay precise (no union
|
|
9
|
+
* of whole-artifact schemas).
|
|
10
|
+
*/
|
|
11
|
+
export declare const CassetteSchema: Type.TObject<{
|
|
12
|
+
v: Type.TUnion<[Type.TLiteral<1>, Type.TLiteral<2>]>;
|
|
13
|
+
run: Type.TOptional<Type.TObject<{
|
|
14
|
+
outcome: Type.TUnion<Type.TLiteral<"completed" | "failed" | "paused" | "stopped">[]>;
|
|
15
|
+
programFile: Type.TOptional<Type.TString>;
|
|
16
|
+
args: Type.TOptional<Type.TUnknown>;
|
|
17
|
+
programHash: Type.TOptional<Type.TString>;
|
|
18
|
+
}>>;
|
|
19
|
+
agents: Type.TArray<Type.TObject<{
|
|
20
|
+
spawn: Type.TObject<{
|
|
21
|
+
model: Type.TOptional<Type.TString>;
|
|
22
|
+
systemPrompt: Type.TOptional<Type.TString>;
|
|
23
|
+
thinking: Type.TOptional<Type.TUnion<Type.TLiteral<"high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh">[]>>;
|
|
24
|
+
appendSystemPrompt: Type.TOptional<Type.TString>;
|
|
25
|
+
tools: Type.TOptional<Type.TArray<Type.TString>>;
|
|
26
|
+
disallowedTools: Type.TOptional<Type.TArray<Type.TString>>;
|
|
27
|
+
skills: Type.TOptional<Type.TArray<Type.TString>>;
|
|
28
|
+
disallowedSkills: Type.TOptional<Type.TArray<Type.TString>>;
|
|
29
|
+
name: Type.TString;
|
|
30
|
+
cwd: Type.TString;
|
|
31
|
+
worktree: Type.TOptional<Type.TLiteral<true>>;
|
|
32
|
+
}>;
|
|
33
|
+
model: Type.TString;
|
|
34
|
+
sessionFile: Type.TOptional<Type.TString>;
|
|
35
|
+
worktree: Type.TOptional<Type.TObject<{
|
|
36
|
+
cwd: Type.TString;
|
|
37
|
+
branch: Type.TString;
|
|
38
|
+
}>>;
|
|
39
|
+
git: Type.TOptional<Type.TObject<{
|
|
40
|
+
branch: Type.TString;
|
|
41
|
+
head: Type.TString;
|
|
42
|
+
}>>;
|
|
43
|
+
sentFrames: Type.TArray<Type.TUnsafe<Frame>>;
|
|
44
|
+
receivedFrames: Type.TArray<Type.TUnsafe<Frame>>;
|
|
45
|
+
asks: Type.TArray<Type.TObject<{
|
|
46
|
+
outputSchema: Type.TOptional<Type.TUnsafe<CanonicalJsonObject>>;
|
|
47
|
+
maxSteers: Type.TOptional<Type.TInteger>;
|
|
48
|
+
extractionPolicy: Type.TOptional<Type.TString>;
|
|
49
|
+
index: Type.TNumber;
|
|
50
|
+
hash: Type.TString;
|
|
51
|
+
definitionName: Type.TOptional<Type.TString>;
|
|
52
|
+
context: Type.TOptional<Type.TObject<{
|
|
53
|
+
prompt: Type.TString;
|
|
54
|
+
spawn: Type.TObject<{
|
|
55
|
+
model: Type.TOptional<Type.TString>;
|
|
56
|
+
systemPrompt: Type.TOptional<Type.TString>;
|
|
57
|
+
thinking: Type.TOptional<Type.TUnion<Type.TLiteral<"high" | "low" | "max" | "medium" | "minimal" | "off" | "xhigh">[]>>;
|
|
58
|
+
appendSystemPrompt: Type.TOptional<Type.TString>;
|
|
59
|
+
tools: Type.TOptional<Type.TArray<Type.TString>>;
|
|
60
|
+
disallowedTools: Type.TOptional<Type.TArray<Type.TString>>;
|
|
61
|
+
skills: Type.TOptional<Type.TArray<Type.TString>>;
|
|
62
|
+
disallowedSkills: Type.TOptional<Type.TArray<Type.TString>>;
|
|
63
|
+
cwd: Type.TOptional<Type.TString>;
|
|
64
|
+
worktree: Type.TOptional<Type.TBoolean>;
|
|
65
|
+
}>;
|
|
66
|
+
ask: Type.TObject<{
|
|
67
|
+
outputSchema: Type.TOptional<Type.TUnsafe<CanonicalJsonObject>>;
|
|
68
|
+
maxSteers: Type.TOptional<Type.TInteger>;
|
|
69
|
+
extractionPolicy: Type.TOptional<Type.TString>;
|
|
70
|
+
maxTurns: Type.TOptional<Type.TNumber>;
|
|
71
|
+
maxToolCalls: Type.TOptional<Type.TNumber>;
|
|
72
|
+
maxDurationMs: Type.TOptional<Type.TNumber>;
|
|
73
|
+
idleMs: Type.TOptional<Type.TNumber>;
|
|
74
|
+
wrapUpPrompt: Type.TOptional<Type.TString>;
|
|
75
|
+
}>;
|
|
76
|
+
}>>;
|
|
77
|
+
sentFrames: Type.TArray<Type.TUnsafe<Frame>>;
|
|
78
|
+
receivedFrames: Type.TArray<Type.TUnsafe<Frame>>;
|
|
79
|
+
limit: Type.TOptional<Type.TObject<{
|
|
80
|
+
kind: Type.TUnion<[Type.TLiteral<"turns">, Type.TLiteral<"toolCalls">, Type.TLiteral<"durationMs">]>;
|
|
81
|
+
count: Type.TInteger;
|
|
82
|
+
}>>;
|
|
83
|
+
stalled: Type.TOptional<Type.TObject<{
|
|
84
|
+
idleMs: Type.TNumber;
|
|
85
|
+
destructive: Type.TBoolean;
|
|
86
|
+
}>>;
|
|
87
|
+
outcome: Type.TOptional<Type.TObject<{
|
|
88
|
+
kind: Type.TLiteral<"invalid_output">;
|
|
89
|
+
steeringEfforts: Type.TInteger;
|
|
90
|
+
}>>;
|
|
91
|
+
}>>;
|
|
92
|
+
stats: Type.TObject<{
|
|
93
|
+
tokens: Type.TUnion<[Type.TNull, Type.TObject<{
|
|
94
|
+
input: Type.TNumber;
|
|
95
|
+
output: Type.TNumber;
|
|
96
|
+
cacheRead: Type.TNumber;
|
|
97
|
+
cacheWrite: Type.TNumber;
|
|
98
|
+
total: Type.TNumber;
|
|
99
|
+
}>]>;
|
|
100
|
+
cost: Type.TUnion<[Type.TNull, Type.TNumber]>;
|
|
101
|
+
}>;
|
|
102
|
+
}>>;
|
|
103
|
+
}>;
|
|
104
|
+
/**
|
|
105
|
+
* Compile-time soundness: every schema-accepted value IS a Cassette, so the
|
|
106
|
+
* loader's cast cannot drift. Completeness (schema not over-strict) is pinned
|
|
107
|
+
* by the committed real-pi fixture round-trip tests.
|
|
108
|
+
*/
|
|
109
|
+
type AssertAssignable<T extends Base, Base> = T;
|
|
110
|
+
export type CassetteSchemaIsSound = AssertAssignable<Static<typeof CassetteSchema>, CassetteArtifact>;
|
|
111
|
+
export {};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { CanonicalJsonObject } from "./ask-contract-identity.ts";
|
|
2
|
+
import type { AskLimitOutcome, AskStalledOutcome } from "./errors.ts";
|
|
3
|
+
import type { RunOutcome } from "./events.ts";
|
|
4
|
+
import type { AgentStats, AskInvalidOutputPlayback, AskMarker, AskMarkerContext, Frame, OpenOptions, WorktreeResolution } from "./transport.ts";
|
|
5
|
+
import type { ThinkingLevel } from "./types.ts";
|
|
6
|
+
/** The Cassette format this runtime writes; the loader also reads version 1. */
|
|
7
|
+
export declare const CASSETTE_VERSION: 2;
|
|
8
|
+
/** Run-level settlement record; the ADR-0021 v2 block. */
|
|
9
|
+
export interface CassetteRun {
|
|
10
|
+
/** The Run's terminal outcome. `paused` arrives with the pause slice. */
|
|
11
|
+
readonly outcome: RunOutcome;
|
|
12
|
+
/** Invocation identity: what a resume is about to re-execute. */
|
|
13
|
+
readonly programFile?: string;
|
|
14
|
+
readonly args?: unknown;
|
|
15
|
+
/** Advisory content hash of the program file; SHA-256 hex. */
|
|
16
|
+
readonly programHash?: string;
|
|
17
|
+
}
|
|
18
|
+
/** Versioned JSON artifact containing the frames exchanged during one Run. */
|
|
19
|
+
export interface Cassette {
|
|
20
|
+
readonly v: typeof CASSETTE_VERSION;
|
|
21
|
+
readonly run: CassetteRun;
|
|
22
|
+
readonly agents: readonly CassetteAgent[];
|
|
23
|
+
}
|
|
24
|
+
/** On-disk shape the loader accepts: v1 carries no run block, v2 carries one. */
|
|
25
|
+
export interface CassetteArtifact {
|
|
26
|
+
readonly v: 1 | typeof CASSETTE_VERSION;
|
|
27
|
+
readonly run?: CassetteRun;
|
|
28
|
+
readonly agents: readonly CassetteAgent[];
|
|
29
|
+
}
|
|
30
|
+
/** Git state observed at Agent spawn, when its cwd is a work tree. */
|
|
31
|
+
export interface CassetteGit {
|
|
32
|
+
readonly branch: string;
|
|
33
|
+
readonly head: string;
|
|
34
|
+
}
|
|
35
|
+
/** One Agent's independently ordered frame streams. */
|
|
36
|
+
export interface CassetteAgent {
|
|
37
|
+
readonly spawn: CassetteSpawn;
|
|
38
|
+
readonly model: string;
|
|
39
|
+
readonly sessionFile?: string;
|
|
40
|
+
/** Nondeterministic worktree location, deliberately outside spawn matching. */
|
|
41
|
+
readonly worktree?: WorktreeResolution;
|
|
42
|
+
readonly git?: CassetteGit;
|
|
43
|
+
readonly sentFrames: readonly Frame[];
|
|
44
|
+
readonly receivedFrames: readonly Frame[];
|
|
45
|
+
readonly asks: readonly CassetteAsk[];
|
|
46
|
+
readonly stats: AgentStats;
|
|
47
|
+
}
|
|
48
|
+
/** Behavioural identity supplied when opening a recorded Agent. */
|
|
49
|
+
export interface CassetteSpawn {
|
|
50
|
+
readonly name: string;
|
|
51
|
+
readonly cwd: string;
|
|
52
|
+
readonly model?: string;
|
|
53
|
+
readonly systemPrompt?: string;
|
|
54
|
+
/** pi thinking level, present only when explicitly requested. */
|
|
55
|
+
readonly thinking?: ThinkingLevel;
|
|
56
|
+
/** Text appended to pi's system prompt, present even when empty. */
|
|
57
|
+
readonly appendSystemPrompt?: string;
|
|
58
|
+
/** Tool allowlist, including an explicit empty list that disables all tools. */
|
|
59
|
+
readonly tools?: readonly string[];
|
|
60
|
+
/** Tool denylist, applied after the allowlist. */
|
|
61
|
+
readonly disallowedTools?: readonly string[];
|
|
62
|
+
/** Skill-name allowlist; resolved filesystem paths never enter a Cassette. */
|
|
63
|
+
readonly skills?: readonly string[];
|
|
64
|
+
/** Skill-name denylist; resolved filesystem paths never enter a Cassette. */
|
|
65
|
+
readonly disallowedSkills?: readonly string[];
|
|
66
|
+
/** Deterministic request, present only when the Agent requested a worktree. */
|
|
67
|
+
readonly worktree?: true;
|
|
68
|
+
}
|
|
69
|
+
/** The frames attributed to one Ask marker. */
|
|
70
|
+
export interface CassetteAsk {
|
|
71
|
+
readonly index: number;
|
|
72
|
+
readonly hash: string;
|
|
73
|
+
/** Canonical schema behavioral identity, never recorded model output. */
|
|
74
|
+
readonly outputSchema?: CanonicalJsonObject;
|
|
75
|
+
/** Explicit correction bound; omission remains distinct from the runtime default. */
|
|
76
|
+
readonly maxSteers?: number;
|
|
77
|
+
/** Extraction behavior identity, never recorded model output. */
|
|
78
|
+
readonly extractionPolicy?: string;
|
|
79
|
+
/** Definition identity for replay divergence diagnostics, never Ask identity. */
|
|
80
|
+
readonly definitionName?: string;
|
|
81
|
+
/** Recorded hash inputs for definition-specific divergence diagnostics. */
|
|
82
|
+
readonly context?: AskMarkerContext;
|
|
83
|
+
readonly sentFrames: readonly Frame[];
|
|
84
|
+
readonly receivedFrames: readonly Frame[];
|
|
85
|
+
/** Present only when the Ask surfaced ASK_LIMIT. */
|
|
86
|
+
readonly limit?: AskLimitOutcome;
|
|
87
|
+
/** Present only when the Ask surfaced ASK_STALLED. */
|
|
88
|
+
readonly stalled?: AskStalledOutcome;
|
|
89
|
+
/** Present only when the Ask surfaced ASK_INVALID_OUTPUT. */
|
|
90
|
+
readonly outcome?: AskInvalidOutputPlayback;
|
|
91
|
+
}
|
|
92
|
+
/** Sink consumed by recordingTransport without exposing its mutable state. */
|
|
93
|
+
export interface CassetteSink {
|
|
94
|
+
reserve(options: OpenOptions): CassetteRecorder;
|
|
95
|
+
cassette(run: CassetteRun): Cassette;
|
|
96
|
+
}
|
|
97
|
+
/** Per-Agent recorder returned when a factory open begins. */
|
|
98
|
+
export interface CassetteOpened {
|
|
99
|
+
readonly model: string;
|
|
100
|
+
readonly sessionFile?: string;
|
|
101
|
+
readonly worktree?: WorktreeResolution;
|
|
102
|
+
readonly git?: CassetteGit;
|
|
103
|
+
}
|
|
104
|
+
export interface CassetteRecorder {
|
|
105
|
+
opened(metadata: CassetteOpened): void;
|
|
106
|
+
failed(): void;
|
|
107
|
+
sent(frame: Frame): void;
|
|
108
|
+
received(frame: Frame): void;
|
|
109
|
+
beginAsk(marker: AskMarker): void;
|
|
110
|
+
finishAsk(outcome?: AskLimitOutcome, stalled?: AskStalledOutcome, invalidOutput?: AskInvalidOutputPlayback): void;
|
|
111
|
+
closed(stats: AgentStats): void;
|
|
112
|
+
}
|
|
113
|
+
/** Collects a Cassette in memory; `executeRun` serializes it at Run settlement. */
|
|
114
|
+
export declare class CassetteCollector implements CassetteSink {
|
|
115
|
+
#private;
|
|
116
|
+
reserve(options: OpenOptions): CassetteRecorder;
|
|
117
|
+
cassette(run: CassetteRun): Cassette;
|
|
118
|
+
}
|