@explyt/ai-agent 0.1.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +19 -0
- package/README.md +24 -0
- package/THIRD-PARTY-NOTICES.md +321 -0
- package/dist/acp/index.js +62 -0
- package/dist/cli/engine.js +377 -0
- package/dist/cli/index.js +315 -0
- package/dist/extensions/hello.js +1 -0
- package/dist/extensions/policy.js +1 -0
- package/dist/extensions/tool-gradle.js +1 -0
- package/dist/extensions/usage.js +1 -0
- package/node_modules/@modelcontextprotocol/client/LICENSE +216 -0
- package/node_modules/@modelcontextprotocol/client/README.md +26 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-1b6pVpkg.cjs +7531 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-1b6pVpkg.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-97rDpkRx.mjs +7514 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-97rDpkRx.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-FOQRM7up.d.cts +1071 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-FOQRM7up.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-INpkxUi1.d.mts +1071 -0
- package/node_modules/@modelcontextprotocol/client/dist/ajvProvider-INpkxUi1.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-B3ZJEoRM.d.mts +74 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-B3ZJEoRM.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-B3dvjU3F.cjs +986 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-B3dvjU3F.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-BylNJ1R5.mjs +981 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-BylNJ1R5.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-doTkZbTr.d.cts +74 -0
- package/node_modules/@modelcontextprotocol/client/dist/cfWorkerProvider-doTkZbTr.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/chunk-Bnu9O96Y.cjs +60 -0
- package/node_modules/@modelcontextprotocol/client/dist/chunk-Br0eD_fh.mjs +42 -0
- package/node_modules/@modelcontextprotocol/client/dist/dialects-BGO_ZrYF.cjs +46 -0
- package/node_modules/@modelcontextprotocol/client/dist/dialects-BGO_ZrYF.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/dialects-BOhdv1Fc.mjs +34 -0
- package/node_modules/@modelcontextprotocol/client/dist/dialects-BOhdv1Fc.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index-CHhhk6PQ.d.cts +2526 -0
- package/node_modules/@modelcontextprotocol/client/dist/index-CHhhk6PQ.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index-D4xIIEF6.d.mts +2523 -0
- package/node_modules/@modelcontextprotocol/client/dist/index-D4xIIEF6.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.cjs +5690 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.d.cts +3252 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.d.mts +3252 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.mjs +5481 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.cjs +14 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.cts +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.mts +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.mjs +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsBrowser.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.cjs +14 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.cts +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.mts +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsNode.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs +21 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.cts +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.mts +13 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs +20 -0
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/src-D_zzAWoS.mjs +7063 -0
- package/node_modules/@modelcontextprotocol/client/dist/src-D_zzAWoS.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/src-NAgB4Mp8.cjs +7431 -0
- package/node_modules/@modelcontextprotocol/client/dist/src-NAgB4Mp8.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs +217 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.cts +96 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.mts +96 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs +212 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/types-DsbMXNFL.d.cts +1099 -0
- package/node_modules/@modelcontextprotocol/client/dist/types-DsbMXNFL.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/types-mS0yxCL0.d.mts +1099 -0
- package/node_modules/@modelcontextprotocol/client/dist/types-mS0yxCL0.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.cjs +5 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.d.cts +2 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.d.mts +2 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/ajv.mjs +3 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.cjs +3 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.d.cts +2 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.d.mts +2 -0
- package/node_modules/@modelcontextprotocol/client/dist/validators/cfWorker.mjs +3 -0
- package/node_modules/@modelcontextprotocol/client/package.json +166 -0
- package/node_modules/@modelcontextprotocol/core/LICENSE +216 -0
- package/node_modules/@modelcontextprotocol/core/README.md +40 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-BWdKR39I.d.mts +8501 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-BWdKR39I.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-CUe6YdwF.mjs +1678 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-CUe6YdwF.mjs.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-CfDMXiII.cjs +2899 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-CfDMXiII.cjs.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-hYtaIUZm.d.cts +8501 -0
- package/node_modules/@modelcontextprotocol/core/dist/auth-hYtaIUZm.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.cjs +175 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.d.cts +2 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.d.mts +2 -0
- package/node_modules/@modelcontextprotocol/core/dist/index.mjs +3 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.cjs +201 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts +99 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts +99 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/core/dist/internal.mjs +3 -0
- package/node_modules/@modelcontextprotocol/core/package.json +85 -0
- package/node_modules/@modelcontextprotocol/ext-apps/LICENSE +216 -0
- package/node_modules/@modelcontextprotocol/ext-apps/README.md +259 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/docs/patterns.d.ts +9 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-bridge.d.ts +1320 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-bridge.examples.d.ts +9 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-bridge.js +39 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-bridge.test.d.ts +1 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app-with-deps.js +78 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app.d.ts +1449 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app.examples.d.ts +9 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/app.js +39 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/events.d.ts +130 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/generated/schema.d.ts +1041 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/generated/schema.json +6090 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/generated/schema.test.d.ts +41 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/message-transport.d.ts +127 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/message-transport.examples.d.ts +9 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/message-transport.test.d.ts +1 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.d.ts +37 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.examples.d.ts +6 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.js +39 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/react-with-deps.js +78 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useApp.d.ts +115 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useApp.examples.d.ts +6 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useAutoResize.d.ts +54 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useAutoResize.examples.d.ts +6 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useDocumentTheme.d.ts +44 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useDocumentTheme.examples.d.ts +6 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useHostStyles.d.ts +113 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/useHostStyles.examples.d.ts +6 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/server/index.d.ts +361 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/server/index.examples.d.ts +9 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/server/index.js +39 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/server/index.test.d.ts +1 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/spec.types.d.ts +698 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/standard-schema.d.ts +35 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/styles.d.ts +184 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/styles.examples.d.ts +9 -0
- package/node_modules/@modelcontextprotocol/ext-apps/dist/src/types.d.ts +43 -0
- package/node_modules/@modelcontextprotocol/ext-apps/package.json +133 -0
- package/node_modules/@napi-rs/keyring/LICENSE +21 -0
- package/node_modules/@napi-rs/keyring/README.md +19 -0
- package/node_modules/@napi-rs/keyring/index.d.ts +166 -0
- package/node_modules/@napi-rs/keyring/index.js +514 -0
- package/node_modules/@napi-rs/keyring/keytar.d.ts +53 -0
- package/node_modules/@napi-rs/keyring/keytar.js +26 -0
- package/node_modules/@napi-rs/keyring/package.json +125 -0
- package/node_modules/@pkgr/core/lib/constants.d.ts +3 -0
- package/node_modules/@pkgr/core/lib/constants.js +5 -0
- package/node_modules/@pkgr/core/lib/constants.js.map +1 -0
- package/node_modules/@pkgr/core/lib/helpers.d.ts +5 -0
- package/node_modules/@pkgr/core/lib/helpers.js +51 -0
- package/node_modules/@pkgr/core/lib/helpers.js.map +1 -0
- package/node_modules/@pkgr/core/lib/index.cjs +66 -0
- package/node_modules/@pkgr/core/lib/index.d.ts +2 -0
- package/node_modules/@pkgr/core/lib/index.js +3 -0
- package/node_modules/@pkgr/core/lib/index.js.map +1 -0
- package/node_modules/@pkgr/core/package.json +29 -0
- package/node_modules/@standard-schema/spec/LICENSE +21 -0
- package/node_modules/@standard-schema/spec/README.md +198 -0
- package/node_modules/@standard-schema/spec/dist/index.cjs +18 -0
- package/node_modules/@standard-schema/spec/dist/index.d.cts +119 -0
- package/node_modules/@standard-schema/spec/dist/index.d.ts +119 -0
- package/node_modules/@standard-schema/spec/dist/index.js +0 -0
- package/node_modules/@standard-schema/spec/package.json +52 -0
- package/node_modules/ajv/.runkit_example.js +23 -0
- package/node_modules/ajv/LICENSE +22 -0
- package/node_modules/ajv/README.md +207 -0
- package/node_modules/ajv/dist/2019.d.ts +19 -0
- package/node_modules/ajv/dist/2019.js +61 -0
- package/node_modules/ajv/dist/2019.js.map +1 -0
- package/node_modules/ajv/dist/2020.d.ts +19 -0
- package/node_modules/ajv/dist/2020.js +55 -0
- package/node_modules/ajv/dist/2020.js.map +1 -0
- package/node_modules/ajv/dist/ajv.d.ts +18 -0
- package/node_modules/ajv/dist/ajv.js +50 -0
- package/node_modules/ajv/dist/ajv.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
- package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
- package/node_modules/ajv/dist/compile/errors.d.ts +13 -0
- package/node_modules/ajv/dist/compile/errors.js +123 -0
- package/node_modules/ajv/dist/compile/errors.js.map +1 -0
- package/node_modules/ajv/dist/compile/index.d.ts +80 -0
- package/node_modules/ajv/dist/compile/index.js +242 -0
- package/node_modules/ajv/dist/compile/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
- package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
- package/node_modules/ajv/dist/compile/names.d.ts +20 -0
- package/node_modules/ajv/dist/compile/names.js +28 -0
- package/node_modules/ajv/dist/compile/names.js.map +1 -0
- package/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
- package/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
- package/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
- package/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/node_modules/ajv/dist/compile/resolve.js.map +1 -0
- package/node_modules/ajv/dist/compile/rules.d.ts +28 -0
- package/node_modules/ajv/dist/compile/rules.js +26 -0
- package/node_modules/ajv/dist/compile/rules.js.map +1 -0
- package/node_modules/ajv/dist/compile/util.d.ts +40 -0
- package/node_modules/ajv/dist/compile/util.js +178 -0
- package/node_modules/ajv/dist/compile/util.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
- package/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
- package/node_modules/ajv/dist/core.d.ts +174 -0
- package/node_modules/ajv/dist/core.js +618 -0
- package/node_modules/ajv/dist/core.js.map +1 -0
- package/node_modules/ajv/dist/jtd.d.ts +47 -0
- package/node_modules/ajv/dist/jtd.js +72 -0
- package/node_modules/ajv/dist/jtd.js.map +1 -0
- package/node_modules/ajv/dist/refs/data.json +13 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/node_modules/ajv/dist/runtime/equal.js.map +1 -0
- package/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
- package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
- package/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
- package/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/node_modules/ajv/dist/runtime/quote.js.map +1 -0
- package/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/node_modules/ajv/dist/runtime/re2.js.map +1 -0
- package/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
- package/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
- package/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/node_modules/ajv/dist/runtime/uri.js.map +1 -0
- package/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
- package/node_modules/ajv/dist/standalone/index.d.ts +6 -0
- package/node_modules/ajv/dist/standalone/index.js +90 -0
- package/node_modules/ajv/dist/standalone/index.js.map +1 -0
- package/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
- package/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/node_modules/ajv/dist/standalone/instance.js.map +1 -0
- package/node_modules/ajv/dist/types/index.d.ts +183 -0
- package/node_modules/ajv/dist/types/index.js +3 -0
- package/node_modules/ajv/dist/types/index.js.map +1 -0
- package/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
- package/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/node_modules/ajv/dist/types/json-schema.js.map +1 -0
- package/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
- package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
- package/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
- package/node_modules/ajv/lib/2019.ts +81 -0
- package/node_modules/ajv/lib/2020.ts +75 -0
- package/node_modules/ajv/lib/ajv.ts +70 -0
- package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
- package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
- package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/node_modules/ajv/lib/compile/index.ts +324 -0
- package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
- package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/node_modules/ajv/lib/compile/names.ts +27 -0
- package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
- package/node_modules/ajv/lib/compile/resolve.ts +149 -0
- package/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/node_modules/ajv/lib/compile/util.ts +213 -0
- package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
- package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
- package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/node_modules/ajv/lib/core.ts +892 -0
- package/node_modules/ajv/lib/jtd.ts +132 -0
- package/node_modules/ajv/lib/refs/data.json +13 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
- package/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/node_modules/ajv/lib/standalone/index.ts +100 -0
- package/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/node_modules/ajv/lib/types/index.ts +244 -0
- package/node_modules/ajv/lib/types/json-schema.ts +187 -0
- package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
- package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
- package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
- package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
- package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
- package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/node_modules/ajv/package.json +126 -0
- package/node_modules/ajv-formats/LICENSE +21 -0
- package/node_modules/ajv-formats/README.md +125 -0
- package/node_modules/ajv-formats/dist/formats.d.ts +9 -0
- package/node_modules/ajv-formats/dist/formats.js +208 -0
- package/node_modules/ajv-formats/dist/formats.js.map +1 -0
- package/node_modules/ajv-formats/dist/index.d.ts +15 -0
- package/node_modules/ajv-formats/dist/index.js +37 -0
- package/node_modules/ajv-formats/dist/index.js.map +1 -0
- package/node_modules/ajv-formats/dist/limit.d.ts +10 -0
- package/node_modules/ajv-formats/dist/limit.js +69 -0
- package/node_modules/ajv-formats/dist/limit.js.map +1 -0
- package/node_modules/ajv-formats/package.json +74 -0
- package/node_modules/ajv-formats/src/formats.ts +269 -0
- package/node_modules/ajv-formats/src/index.ts +62 -0
- package/node_modules/ajv-formats/src/limit.ts +99 -0
- package/node_modules/bundle-name/index.js +5 -0
- package/node_modules/bundle-name/license +9 -0
- package/node_modules/bundle-name/package.json +45 -0
- package/node_modules/bundle-name/readme.md +23 -0
- package/node_modules/cross-spawn/LICENSE +21 -0
- package/node_modules/cross-spawn/README.md +89 -0
- package/node_modules/cross-spawn/index.js +39 -0
- package/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/node_modules/cross-spawn/lib/parse.js +91 -0
- package/node_modules/cross-spawn/lib/util/escape.js +47 -0
- package/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
- package/node_modules/cross-spawn/package.json +73 -0
- package/node_modules/default-browser/index.d.ts +29 -0
- package/node_modules/default-browser/index.js +34 -0
- package/node_modules/default-browser/license +9 -0
- package/node_modules/default-browser/package.json +54 -0
- package/node_modules/default-browser/readme.md +24 -0
- package/node_modules/default-browser/windows.js +57 -0
- package/node_modules/default-browser-id/index.js +25 -0
- package/node_modules/default-browser-id/license +9 -0
- package/node_modules/default-browser-id/package.json +41 -0
- package/node_modules/default-browser-id/readme.md +19 -0
- package/node_modules/define-lazy-prop/index.d.ts +31 -0
- package/node_modules/define-lazy-prop/index.js +18 -0
- package/node_modules/define-lazy-prop/license +9 -0
- package/node_modules/define-lazy-prop/package.json +51 -0
- package/node_modules/define-lazy-prop/readme.md +55 -0
- package/node_modules/eventsource/LICENSE +22 -0
- package/node_modules/eventsource/README.md +167 -0
- package/node_modules/eventsource/dist/index.cjs +273 -0
- package/node_modules/eventsource/dist/index.cjs.map +1 -0
- package/node_modules/eventsource/dist/index.d.cts +332 -0
- package/node_modules/eventsource/dist/index.d.ts +332 -0
- package/node_modules/eventsource/dist/index.js +273 -0
- package/node_modules/eventsource/dist/index.js.map +1 -0
- package/node_modules/eventsource/package.json +130 -0
- package/node_modules/eventsource/src/EventSource.ts +596 -0
- package/node_modules/eventsource/src/errors.ts +141 -0
- package/node_modules/eventsource/src/index.ts +3 -0
- package/node_modules/eventsource/src/types.ts +152 -0
- package/node_modules/eventsource-parser/LICENSE +21 -0
- package/node_modules/eventsource-parser/README.md +157 -0
- package/node_modules/eventsource-parser/dist/index.cjs +177 -0
- package/node_modules/eventsource-parser/dist/index.cjs.map +1 -0
- package/node_modules/eventsource-parser/dist/index.d.cts +169 -0
- package/node_modules/eventsource-parser/dist/index.d.ts +169 -0
- package/node_modules/eventsource-parser/dist/index.js +177 -0
- package/node_modules/eventsource-parser/dist/index.js.map +1 -0
- package/node_modules/eventsource-parser/dist/stream.cjs +29 -0
- package/node_modules/eventsource-parser/dist/stream.cjs.map +1 -0
- package/node_modules/eventsource-parser/dist/stream.d.cts +134 -0
- package/node_modules/eventsource-parser/dist/stream.d.ts +134 -0
- package/node_modules/eventsource-parser/dist/stream.js +30 -0
- package/node_modules/eventsource-parser/dist/stream.js.map +1 -0
- package/node_modules/eventsource-parser/package.json +92 -0
- package/node_modules/eventsource-parser/src/errors.ts +44 -0
- package/node_modules/eventsource-parser/src/index.ts +8 -0
- package/node_modules/eventsource-parser/src/parse.ts +439 -0
- package/node_modules/eventsource-parser/src/stream.ts +107 -0
- package/node_modules/eventsource-parser/src/types.ts +122 -0
- package/node_modules/eventsource-parser/stream.js +2 -0
- package/node_modules/fast-deep-equal/LICENSE +21 -0
- package/node_modules/fast-deep-equal/README.md +96 -0
- package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/index.js +72 -0
- package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/react.js +79 -0
- package/node_modules/fast-deep-equal/index.d.ts +4 -0
- package/node_modules/fast-deep-equal/index.js +46 -0
- package/node_modules/fast-deep-equal/package.json +61 -0
- package/node_modules/fast-deep-equal/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/react.js +53 -0
- package/node_modules/fast-uri/.gitattributes +2 -0
- package/node_modules/fast-uri/.github/dependabot.yml +13 -0
- package/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
- package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
- package/node_modules/fast-uri/LICENSE +30 -0
- package/node_modules/fast-uri/README.md +152 -0
- package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
- package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
- package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
- package/node_modules/fast-uri/benchmark/package.json +17 -0
- package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
- package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
- package/node_modules/fast-uri/eslint.config.js +6 -0
- package/node_modules/fast-uri/index.js +459 -0
- package/node_modules/fast-uri/lib/schemes.js +267 -0
- package/node_modules/fast-uri/lib/utils.js +443 -0
- package/node_modules/fast-uri/package.json +68 -0
- package/node_modules/fast-uri/test/ajv.test.js +43 -0
- package/node_modules/fast-uri/test/equal.test.js +117 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +501 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
- package/node_modules/fast-uri/test/parse.test.js +323 -0
- package/node_modules/fast-uri/test/resolve.test.js +87 -0
- package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
- package/node_modules/fast-uri/test/security-normalization.test.js +39 -0
- package/node_modules/fast-uri/test/security.test.js +359 -0
- package/node_modules/fast-uri/test/serialize.test.js +151 -0
- package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
- package/node_modules/fast-uri/test/uri-js.test.js +912 -0
- package/node_modules/fast-uri/test/util.test.js +38 -0
- package/node_modules/fast-uri/tsconfig.json +9 -0
- package/node_modules/fast-uri/types/index.d.ts +60 -0
- package/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/node_modules/is-docker/cli.js +5 -0
- package/node_modules/is-docker/index.d.ts +13 -0
- package/node_modules/is-docker/index.js +29 -0
- package/node_modules/is-docker/license +9 -0
- package/node_modules/is-docker/package.json +44 -0
- package/node_modules/is-docker/readme.md +27 -0
- package/node_modules/is-inside-container/cli.js +5 -0
- package/node_modules/is-inside-container/index.d.ts +13 -0
- package/node_modules/is-inside-container/index.js +23 -0
- package/node_modules/is-inside-container/license +9 -0
- package/node_modules/is-inside-container/package.json +51 -0
- package/node_modules/is-inside-container/readme.md +36 -0
- package/node_modules/is-wsl/index.d.ts +15 -0
- package/node_modules/is-wsl/index.js +36 -0
- package/node_modules/is-wsl/license +9 -0
- package/node_modules/is-wsl/package.json +58 -0
- package/node_modules/is-wsl/readme.md +21 -0
- package/node_modules/isexe/.npmignore +2 -0
- package/node_modules/isexe/LICENSE +15 -0
- package/node_modules/isexe/README.md +51 -0
- package/node_modules/isexe/index.js +57 -0
- package/node_modules/isexe/mode.js +41 -0
- package/node_modules/isexe/package.json +31 -0
- package/node_modules/isexe/test/basic.js +221 -0
- package/node_modules/isexe/windows.js +42 -0
- package/node_modules/jiti/LICENSE +21 -0
- package/node_modules/jiti/README.md +258 -0
- package/node_modules/jiti/dist/babel.cjs +257 -0
- package/node_modules/jiti/dist/jiti.cjs +1 -0
- package/node_modules/jiti/lib/jiti-cli.mjs +34 -0
- package/node_modules/jiti/lib/jiti-hooks.mjs +124 -0
- package/node_modules/jiti/lib/jiti-native.mjs +121 -0
- package/node_modules/jiti/lib/jiti-register.d.mts +1 -0
- package/node_modules/jiti/lib/jiti-register.mjs +4 -0
- package/node_modules/jiti/lib/jiti-static.mjs +23 -0
- package/node_modules/jiti/lib/jiti.cjs +30 -0
- package/node_modules/jiti/lib/jiti.d.cts +8 -0
- package/node_modules/jiti/lib/jiti.d.mts +8 -0
- package/node_modules/jiti/lib/jiti.mjs +29 -0
- package/node_modules/jiti/lib/types.d.ts +420 -0
- package/node_modules/jiti/package.json +146 -0
- package/node_modules/jose/LICENSE.md +21 -0
- package/node_modules/jose/README.md +150 -0
- package/node_modules/jose/dist/types/index.d.ts +56 -0
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +37 -0
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +53 -0
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +37 -0
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +71 -0
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +43 -0
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +73 -0
- package/node_modules/jose/dist/types/jwk/embedded.d.ts +13 -0
- package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +17 -0
- package/node_modules/jose/dist/types/jwks/local.d.ts +20 -0
- package/node_modules/jose/dist/types/jwks/remote.d.ts +106 -0
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +25 -0
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +37 -0
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +31 -0
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +37 -0
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +52 -0
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +44 -0
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +41 -0
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +67 -0
- package/node_modules/jose/dist/types/jwt/sign.d.ts +32 -0
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +34 -0
- package/node_modules/jose/dist/types/jwt/verify.d.ts +38 -0
- package/node_modules/jose/dist/types/key/export.d.ts +19 -0
- package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +40 -0
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +37 -0
- package/node_modules/jose/dist/types/key/import.d.ts +73 -0
- package/node_modules/jose/dist/types/types.d.ts +869 -0
- package/node_modules/jose/dist/types/util/base64url.d.ts +16 -0
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +10 -0
- package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +9 -0
- package/node_modules/jose/dist/types/util/errors.d.ts +220 -0
- package/node_modules/jose/dist/webapi/index.js +32 -0
- package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +9 -0
- package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +27 -0
- package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +11 -0
- package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +72 -0
- package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +51 -0
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +166 -0
- package/node_modules/jose/dist/webapi/jwk/embedded.js +19 -0
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +68 -0
- package/node_modules/jose/dist/webapi/jwks/local.js +78 -0
- package/node_modules/jose/dist/webapi/jwks/remote.js +170 -0
- package/node_modules/jose/dist/webapi/jws/compact/sign.js +21 -0
- package/node_modules/jose/dist/webapi/jws/compact/verify.js +9 -0
- package/node_modules/jose/dist/webapi/jws/flattened/sign.js +31 -0
- package/node_modules/jose/dist/webapi/jws/flattened/verify.js +24 -0
- package/node_modules/jose/dist/webapi/jws/general/sign.js +74 -0
- package/node_modules/jose/dist/webapi/jws/general/verify.js +44 -0
- package/node_modules/jose/dist/webapi/jwt/decrypt.js +23 -0
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +101 -0
- package/node_modules/jose/dist/webapi/jwt/sign.js +51 -0
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +64 -0
- package/node_modules/jose/dist/webapi/jwt/verify.js +15 -0
- package/node_modules/jose/dist/webapi/key/export.js +44 -0
- package/node_modules/jose/dist/webapi/key/generate_key_pair.js +48 -0
- package/node_modules/jose/dist/webapi/key/generate_secret.js +40 -0
- package/node_modules/jose/dist/webapi/key/import.js +57 -0
- package/node_modules/jose/dist/webapi/lib/asn1.js +174 -0
- package/node_modules/jose/dist/webapi/lib/base64.js +22 -0
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +44 -0
- package/node_modules/jose/dist/webapi/lib/content_encryption.js +142 -0
- package/node_modules/jose/dist/webapi/lib/crypto_key.js +28 -0
- package/node_modules/jose/dist/webapi/lib/deflate.js +44 -0
- package/node_modules/jose/dist/webapi/lib/helpers.js +42 -0
- package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +26 -0
- package/node_modules/jose/dist/webapi/lib/is_key_like.js +17 -0
- package/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +107 -0
- package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +186 -0
- package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +110 -0
- package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +17 -0
- package/node_modules/jose/dist/webapi/lib/jws_algorithms.js +73 -0
- package/node_modules/jose/dist/webapi/lib/jws_sign.js +74 -0
- package/node_modules/jose/dist/webapi/lib/jws_verify.js +107 -0
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +197 -0
- package/node_modules/jose/dist/webapi/lib/key.js +132 -0
- package/node_modules/jose/dist/webapi/lib/key_algorithm.js +10 -0
- package/node_modules/jose/dist/webapi/lib/key_descriptor.js +7 -0
- package/node_modules/jose/dist/webapi/lib/key_management.js +256 -0
- package/node_modules/jose/dist/webapi/lib/options.js +48 -0
- package/node_modules/jose/dist/webapi/lib/signing.js +26 -0
- package/node_modules/jose/dist/webapi/lib/type_checks.js +35 -0
- package/node_modules/jose/dist/webapi/util/base64url.js +39 -0
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -0
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +24 -0
- package/node_modules/jose/dist/webapi/util/errors.js +99 -0
- package/node_modules/jose/package.json +198 -0
- package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
- package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
- package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
- package/node_modules/json-schema-traverse/LICENSE +21 -0
- package/node_modules/json-schema-traverse/README.md +95 -0
- package/node_modules/json-schema-traverse/index.d.ts +40 -0
- package/node_modules/json-schema-traverse/index.js +93 -0
- package/node_modules/json-schema-traverse/package.json +43 -0
- package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
- package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
- package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
- package/node_modules/open/index.d.ts +158 -0
- package/node_modules/open/index.js +366 -0
- package/node_modules/open/license +9 -0
- package/node_modules/open/package.json +68 -0
- package/node_modules/open/readme.md +183 -0
- package/node_modules/open/xdg-open +1267 -0
- package/node_modules/path-key/index.d.ts +40 -0
- package/node_modules/path-key/index.js +16 -0
- package/node_modules/path-key/license +9 -0
- package/node_modules/path-key/package.json +39 -0
- package/node_modules/path-key/readme.md +61 -0
- package/node_modules/pi-mcp-adapter/CHANGELOG.md +635 -0
- package/node_modules/pi-mcp-adapter/LICENSE +21 -0
- package/node_modules/pi-mcp-adapter/README.md +702 -0
- package/node_modules/pi-mcp-adapter/abort.ts +34 -0
- package/node_modules/pi-mcp-adapter/agent-dir.ts +60 -0
- package/node_modules/pi-mcp-adapter/agent-plugin-loader.ts +377 -0
- package/node_modules/pi-mcp-adapter/app-bridge.bundle.js +67 -0
- package/node_modules/pi-mcp-adapter/banner.png +0 -0
- package/node_modules/pi-mcp-adapter/cli.js +209 -0
- package/node_modules/pi-mcp-adapter/commands.ts +619 -0
- package/node_modules/pi-mcp-adapter/config.ts +1226 -0
- package/node_modules/pi-mcp-adapter/consent-manager.ts +64 -0
- package/node_modules/pi-mcp-adapter/direct-tools.ts +557 -0
- package/node_modules/pi-mcp-adapter/elicitation-handler.ts +348 -0
- package/node_modules/pi-mcp-adapter/error-signal.ts +21 -0
- package/node_modules/pi-mcp-adapter/errors.ts +223 -0
- package/node_modules/pi-mcp-adapter/glimpse-ui.ts +80 -0
- package/node_modules/pi-mcp-adapter/host-html-template.ts +469 -0
- package/node_modules/pi-mcp-adapter/index.ts +893 -0
- package/node_modules/pi-mcp-adapter/init.ts +625 -0
- package/node_modules/pi-mcp-adapter/json-schema-validator.ts +69 -0
- package/node_modules/pi-mcp-adapter/lifecycle.ts +151 -0
- package/node_modules/pi-mcp-adapter/logger.ts +169 -0
- package/node_modules/pi-mcp-adapter/mcp-auth-flow.ts +994 -0
- package/node_modules/pi-mcp-adapter/mcp-auth.ts +942 -0
- package/node_modules/pi-mcp-adapter/mcp-callback-server.ts +510 -0
- package/node_modules/pi-mcp-adapter/mcp-code.ts +354 -0
- package/node_modules/pi-mcp-adapter/mcp-keyring-helper.cjs +89 -0
- package/node_modules/pi-mcp-adapter/mcp-oauth-provider.ts +616 -0
- package/node_modules/pi-mcp-adapter/mcp-output-guard.ts +408 -0
- package/node_modules/pi-mcp-adapter/mcp-panel.ts +979 -0
- package/node_modules/pi-mcp-adapter/mcp-probe.ts +187 -0
- package/node_modules/pi-mcp-adapter/mcp-script-worker.mjs +128 -0
- package/node_modules/pi-mcp-adapter/mcp-setup-panel.ts +666 -0
- package/node_modules/pi-mcp-adapter/mcp-status.ts +109 -0
- package/node_modules/pi-mcp-adapter/mcp-trace.ts +306 -0
- package/node_modules/pi-mcp-adapter/metadata-cache.ts +330 -0
- package/node_modules/pi-mcp-adapter/npx-resolver.ts +488 -0
- package/node_modules/pi-mcp-adapter/oauth-handler.ts +30 -0
- package/node_modules/pi-mcp-adapter/oauth.ts +48 -0
- package/node_modules/pi-mcp-adapter/onboarding-state.ts +76 -0
- package/node_modules/pi-mcp-adapter/package.json +178 -0
- package/node_modules/pi-mcp-adapter/panel-keys.ts +53 -0
- package/node_modules/pi-mcp-adapter/prompts.ts +353 -0
- package/node_modules/pi-mcp-adapter/proxy-modes.ts +1249 -0
- package/node_modules/pi-mcp-adapter/resource-tools.ts +17 -0
- package/node_modules/pi-mcp-adapter/runtime-owner.ts +91 -0
- package/node_modules/pi-mcp-adapter/sampling-handler.ts +284 -0
- package/node_modules/pi-mcp-adapter/search-ranking.ts +127 -0
- package/node_modules/pi-mcp-adapter/server-manager.ts +1095 -0
- package/node_modules/pi-mcp-adapter/session-recovery.ts +145 -0
- package/node_modules/pi-mcp-adapter/skills/mcp-scripting/SKILL.md +38 -0
- package/node_modules/pi-mcp-adapter/state.ts +62 -0
- package/node_modules/pi-mcp-adapter/tool-approval.ts +141 -0
- package/node_modules/pi-mcp-adapter/tool-metadata.ts +238 -0
- package/node_modules/pi-mcp-adapter/tool-registrar.ts +253 -0
- package/node_modules/pi-mcp-adapter/tool-result-renderer.ts +297 -0
- package/node_modules/pi-mcp-adapter/ts-shape.ts +149 -0
- package/node_modules/pi-mcp-adapter/types.ts +793 -0
- package/node_modules/pi-mcp-adapter/ui-app-bridge-helpers.ts +40 -0
- package/node_modules/pi-mcp-adapter/ui-resource-handler.ts +250 -0
- package/node_modules/pi-mcp-adapter/ui-server.ts +847 -0
- package/node_modules/pi-mcp-adapter/ui-session.ts +570 -0
- package/node_modules/pi-mcp-adapter/ui-stream-types.ts +89 -0
- package/node_modules/pi-mcp-adapter/ui-tool-visibility.ts +25 -0
- package/node_modules/pi-mcp-adapter/unix-socket-transport.ts +85 -0
- package/node_modules/pi-mcp-adapter/utils.ts +310 -0
- package/node_modules/pi-subagents/CHANGELOG.md +1700 -0
- package/node_modules/pi-subagents/LICENSE +21 -0
- package/node_modules/pi-subagents/README.md +120 -0
- package/node_modules/pi-subagents/agents/delegate.md +14 -0
- package/node_modules/pi-subagents/agents/oracle.md +74 -0
- package/node_modules/pi-subagents/agents/researcher.md +52 -0
- package/node_modules/pi-subagents/agents/reviewer.md +78 -0
- package/node_modules/pi-subagents/agents/scout.md +50 -0
- package/node_modules/pi-subagents/agents/worker.md +58 -0
- package/node_modules/pi-subagents/docs/agents.md +342 -0
- package/node_modules/pi-subagents/docs/configuration.md +328 -0
- package/node_modules/pi-subagents/docs/extension-api.md +308 -0
- package/node_modules/pi-subagents/docs/missions.md +119 -0
- package/node_modules/pi-subagents/docs/models.md +192 -0
- package/node_modules/pi-subagents/docs/observability.md +174 -0
- package/node_modules/pi-subagents/docs/tool-reference.md +343 -0
- package/node_modules/pi-subagents/docs/watchdog.md +176 -0
- package/node_modules/pi-subagents/docs/workflows.md +163 -0
- package/node_modules/pi-subagents/index.ts +1 -0
- package/node_modules/pi-subagents/inspector-runner.mjs +11 -0
- package/node_modules/pi-subagents/install.mjs +93 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/compile/code.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/compile/code.mjs +65 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/compile/compile.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/compile/compile.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/compile/index.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/compile/index.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/compile/validator.d.mts +43 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/compile/validator.mjs +121 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/error/errors.d.mts +214 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/error/errors.mjs +18 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/error/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/error/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/_idna.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/_idna.mjs +216 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/_puny.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/_puny.mjs +74 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/_registry.d.mts +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/_registry.mjs +96 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/date.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/date.mjs +19 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/date_time.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/date_time.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/duration.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/duration.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/email.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/email.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/format.d.mts +22 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/format.mjs +22 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/hostname.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/hostname.mjs +18 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/idn_email.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/idn_email.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/idn_hostname.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/idn_hostname.mjs +19 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/index.d.mts +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/index.mjs +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/ipv4.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/ipv4.mjs +38 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/ipv6.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/ipv6.mjs +67 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/iri.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/iri.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/iri_reference.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/iri_reference.mjs +60 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/json_pointer.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/json_pointer.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/json_pointer_uri_fragment.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/regex.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/regex.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/relative_json_pointer.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/relative_json_pointer.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/time.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/time.mjs +27 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/uri.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/uri.mjs +135 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/uri_reference.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/uri_reference.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/uri_template.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/uri_template.mjs +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/url.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/url.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/uuid.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/format/uuid.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/guard/emit.d.mts +58 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/guard/emit.mjs +194 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/guard/globals.d.mts +35 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/guard/globals.mjs +90 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/guard/guard.d.mts +69 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/guard/guard.mjs +217 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/guard/index.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/guard/index.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/guard/native.d.mts +20 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/guard/native.mjs +60 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/guard/string.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/guard/string.mjs +164 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/index.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/index.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/build.d.mts +39 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/build.mjs +118 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/check.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/check.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/compile.d.mts +22 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/compile.mjs +46 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/_context.d.mts +35 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/_context.mjs +129 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/_exact_optional.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/_exact_optional.mjs +20 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/_externals.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/_externals.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/_functions.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/_functions.mjs +47 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/_guard.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/_guard.mjs +26 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/_reducer.d.mts +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/_reducer.mjs +45 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/_refine.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/_refine.mjs +29 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/_stack.d.mts +18 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/_stack.mjs +107 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/_unique.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/_unique.mjs +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/additionalItems.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/additionalItems.mjs +50 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/additionalProperties.mjs +110 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/allOf.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/allOf.mjs +47 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/anyOf.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/anyOf.mjs +52 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/boolean.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/boolean.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/const.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/const.mjs +30 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/contains.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/contains.mjs +42 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/dependencies.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/dependencies.mjs +45 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/dependentRequired.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/dependentRequired.mjs +40 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/dependentSchemas.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +38 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/dynamicRef.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/dynamicRef.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/enum.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/enum.mjs +33 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/exclusiveMaximum.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/exclusiveMinimum.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/format.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/format.mjs +26 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/if.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/if.mjs +47 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/index.d.mts +49 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/index.mjs +55 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/items.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/items.mjs +68 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/maxContains.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/maxContains.mjs +42 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/maxItems.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/maxItems.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/maxLength.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/maxLength.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/maxProperties.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/maxProperties.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/maximum.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/maximum.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/minContains.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/minContains.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/minItems.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/minItems.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/minLength.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/minLength.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/minProperties.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/minProperties.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/minimum.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/minimum.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/multipleOf.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/multipleOf.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/not.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/not.mjs +37 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/oneOf.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/oneOf.mjs +58 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/pattern.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/pattern.mjs +28 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/patternProperties.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/patternProperties.mjs +44 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/prefixItems.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/prefixItems.mjs +35 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/properties.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/properties.mjs +75 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/propertyNames.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/propertyNames.mjs +39 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/recursiveRef.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/recursiveRef.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/ref.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/ref.mjs +58 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/required.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/required.mjs +32 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/schema.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/schema.mjs +352 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/type.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/type.mjs +74 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/unevaluatedItems.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +51 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/unevaluatedProperties.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +51 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/uniqueItems.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/engine/uniqueItems.mjs +51 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/errors.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/errors.mjs +24 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/index.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/index.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/parse.d.mts +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/parse.mjs +27 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/pointer/index.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/pointer/index.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/pointer/pointer.d.mts +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/pointer/pointer.mjs +106 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/pointer/pointer_get.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/pointer/pointer_get.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/resolve/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/resolve/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/resolve/ref.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/resolve/ref.mjs +146 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/resolve/resolve.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/resolve/resolve.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/schema.d.mts +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/schema.mjs +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/_canonical.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/_canonical.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/_comparer.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/_comparer.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/_elements.d.mts +18 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/_elements.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/additionalProperties.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/additionalProperties.mjs +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/allOf.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/allOf.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/anyOf.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/anyOf.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/const.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/const.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/enum.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/enum.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/if.d.mts +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/if.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/items.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/items.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/oneOf.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/oneOf.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/patternProperties.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/patternProperties.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/prefixItems.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/prefixItems.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/properties.d.mts +32 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/properties.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/ref.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/ref.mjs +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/required.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/required.mjs +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/schema.d.mts +56 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/schema.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/static.d.mts +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/static.mjs +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/type.d.mts +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/type.mjs +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/unevaluatedProperties.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/static/unevaluatedProperties.mjs +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/_guard.d.mts +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/_guard.mjs +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/_refine.d.mts +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/_refine.mjs +18 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/additionalItems.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/additionalItems.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/additionalProperties.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/additionalProperties.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/allOf.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/allOf.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/anchor.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/anchor.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/anyOf.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/anyOf.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/const.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/const.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/contains.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/contains.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/contentEncoding.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/contentEncoding.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/contentMediaType.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/contentMediaType.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/default.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/default.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/defs.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/defs.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/dependencies.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/dependencies.mjs +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/dependentRequired.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/dependentRequired.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/dependentSchemas.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/dependentSchemas.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/dynamicAnchor.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/dynamicAnchor.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/dynamicRef.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/dynamicRef.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/else.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/else.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/enum.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/enum.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/exclusiveMaximum.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/exclusiveMinimum.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/format.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/format.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/id.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/id.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/if.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/if.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/index.d.mts +54 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/index.mjs +60 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/items.d.mts +19 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/items.mjs +26 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/maxContains.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/maxContains.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/maxItems.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/maxItems.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/maxLength.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/maxLength.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/maxProperties.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/maxProperties.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/maximum.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/maximum.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/minContains.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/minContains.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/minItems.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/minItems.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/minLength.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/minLength.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/minProperties.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/minProperties.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/minimum.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/minimum.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/multipleOf.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/multipleOf.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/not.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/not.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/oneOf.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/oneOf.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/pattern.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/pattern.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/patternProperties.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/patternProperties.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/prefixItems.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/prefixItems.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/properties.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/properties.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/propertyNames.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/propertyNames.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/recursiveAnchor.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/recursiveAnchor.mjs +19 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/recursiveRef.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/recursiveRef.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/ref.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/ref.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/required.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/required.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/schema.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/schema.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/then.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/then.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/type.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/type.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/unevaluatedItems.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/unevaluatedItems.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/unevaluatedProperties.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/uniqueItems.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/schema/types/uniqueItems.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/arguments/arguments.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/arguments/arguments.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/arguments/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/arguments/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/environment/environment.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/environment/environment.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/environment/evaluate.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/environment/evaluate.mjs +37 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/environment/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/environment/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/hashing/hash.d.mts +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/hashing/hash.mjs +232 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/hashing/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/hashing/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/index.d.mts +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/index.mjs +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/_config.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/_config.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/_locale.d.mts +40 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/_locale.mjs +40 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/ar_001.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/ar_001.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/bn_BD.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/bn_BD.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/cs_CZ.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/cs_CZ.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/de_DE.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/de_DE.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/el_GR.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/el_GR.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/en_US.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/en_US.mjs +40 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/es_419.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/es_419.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/es_AR.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/es_AR.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/es_ES.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/es_ES.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/es_MX.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/es_MX.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/fa_IR.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/fa_IR.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/fil_PH.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/fil_PH.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/fr_CA.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/fr_CA.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/fr_FR.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/fr_FR.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/ha_NG.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/ha_NG.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/hi_IN.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/hi_IN.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/hu_HU.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/hu_HU.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/id_ID.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/id_ID.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/it_IT.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/it_IT.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/ja_JP.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/ja_JP.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/ko_KR.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/ko_KR.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/ms_MY.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/ms_MY.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/nl_NL.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/nl_NL.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/pl_PL.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/pl_PL.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/pt_BR.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/pt_BR.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/pt_PT.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/pt_PT.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/ro_RO.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/ro_RO.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/ru_RU.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/ru_RU.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/sv_SE.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/sv_SE.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/sw_TZ.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/sw_TZ.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/th_TH.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/th_TH.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/tr_TR.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/tr_TR.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/uk_UA.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/uk_UA.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/ur_PK.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/ur_PK.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/vi_VN.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/vi_VN.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/yo_NG.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/yo_NG.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/zh_Hans.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/zh_Hans.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/zh_Hant.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/locale/zh_Hant.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/memory/assign.d.mts +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/memory/assign.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/memory/clone.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/memory/clone.mjs +63 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/memory/create.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/memory/create.mjs +30 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/memory/discard.d.mts +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/memory/discard.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/memory/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/memory/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/memory/memory.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/memory/memory.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/memory/metrics.d.mts +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/memory/metrics.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/memory/update.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/memory/update.mjs +32 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/settings/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/settings/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/settings/settings.d.mts +56 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/settings/settings.mjs +32 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/system.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/system.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/unreachable/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/unreachable/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/unreachable/unreachable.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/system/unreachable/unreachable.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/_optional.d.mts +19 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/_optional.mjs +40 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/_readonly.d.mts +19 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/_readonly.mjs +40 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/awaited.d.mts +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/awaited.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/capitalize.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/capitalize.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/conditional.d.mts +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/conditional.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/constructor_parameters.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/constructor_parameters.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/evaluate.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/evaluate.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/exclude.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/exclude.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/extract.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/extract.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/index.d.mts +27 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/index.mjs +27 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/indexed.d.mts +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/indexed.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/instance_type.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/instance_type.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/interface.d.mts +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/interface.mjs +22 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/keyof.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/keyof.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/lowercase.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/lowercase.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/mapped.d.mts +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/mapped.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/module.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/module.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/non_nullable.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/non_nullable.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/omit.d.mts +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/omit.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/options.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/options.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/parameters.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/parameters.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/partial.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/partial.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/pick.d.mts +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/pick.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/readonly_object.d.mts +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/readonly_object.mjs +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/required.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/required.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/return_type.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/return_type.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/uncapitalize.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/uncapitalize.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/uppercase.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/action/uppercase.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/awaited/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/awaited/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/awaited/instantiate.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +20 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +53 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/call/instantiate.d.mts +23 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/call/instantiate.mjs +48 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/call/resolve_arguments.d.mts +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +33 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/call/resolve_target.d.mts +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/call/resolve_target.mjs +27 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/conditional/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/conditional/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/conditional/instantiate.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/conditional/instantiate.mjs +23 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/constructor_parameters/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/constructor_parameters/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +24 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +19 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/cyclic/check.d.mts +24 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/cyclic/check.mjs +51 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +53 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +31 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/cyclic/extends.mjs +53 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/cyclic/index.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/cyclic/index.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +20 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +30 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/cyclic/target.d.mts +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/cyclic/target.mjs +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/enum/enum_to_union.d.mts +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +24 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/enum/index.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/enum/index.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +47 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/evaluate/compare.d.mts +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/evaluate/compare.mjs +22 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +30 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/evaluate/composite.mjs +63 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +27 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +45 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +27 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/evaluate/index.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/evaluate/index.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/evaluate/instantiate.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/exclude/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/exclude/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/exclude/instantiate.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/exclude/instantiate.mjs +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/exclude/operation.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/exclude/operation.mjs +24 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/extract/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/extract/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/extract/instantiate.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/extract/instantiate.mjs +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/extract/operation.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/extract/operation.mjs +24 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/helpers/index.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/helpers/index.mjs +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/helpers/keys.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/helpers/keys.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/helpers/union.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/helpers/union.mjs +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/index.d.mts +31 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/index.mjs +37 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexable/from_cyclic.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexable/from_intersect.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexable/from_literal.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexable/from_literal.mjs +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexable/from_type.d.mts +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexable/from_type.mjs +22 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexable/from_union.d.mts +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexable/from_union.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexable/to_indexable.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.d.mts +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexed/array_indexer.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs +18 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexed/from_array.d.mts +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexed/from_array.mjs +35 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexed/from_object.d.mts +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexed/from_object.mjs +40 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexed/from_tuple.d.mts +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs +35 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexed/from_type.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexed/from_type.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexed/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexed/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/instance_type/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/instance_type/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/instance_type/instantiate.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs +21 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/instantiate.d.mts +165 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/instantiate.mjs +159 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/interface/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/interface/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +18 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/interface/instantiate.mjs +23 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/intrinsics/from_literal.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/intrinsics/from_type.d.mts +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/intrinsics/from_union.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/intrinsics/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/intrinsics/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/intrinsics/instantiate.d.mts +38 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs +52 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/intrinsics/mapping.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/keyof/from_any.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/keyof/from_any.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/keyof/from_array.d.mts +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/keyof/from_array.mjs +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/keyof/from_object.d.mts +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/keyof/from_object.mjs +20 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/keyof/from_record.d.mts +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/keyof/from_record.mjs +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/keyof/from_tuple.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/keyof/from_type.d.mts +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/keyof/from_type.mjs +23 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/keyof/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/keyof/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/mapped/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/mapped/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/mapped/instantiate.d.mts +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/mapped/instantiate.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts +22 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +42 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +34 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/module/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/module/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/module/instantiate.d.mts +21 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/module/instantiate.mjs +34 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/non_nullable/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/non_nullable/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/non_nullable/instantiate.d.mts +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs +22 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/object/collapse.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/object/collapse.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/object/from_cyclic.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/object/from_cyclic.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/object/from_intersect.d.mts +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/object/from_intersect.mjs +22 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/object/from_object.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/object/from_object.mjs +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/object/from_tuple.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/object/from_tuple.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/object/from_type.d.mts +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/object/from_type.mjs +20 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/object/from_union.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/object/from_union.mjs +19 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/object/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/object/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/omit/from_type.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/omit/from_type.mjs +18 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/omit/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/omit/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/omit/instantiate.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/omit/instantiate.mjs +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/options/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/options/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/options/instantiate.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/options/instantiate.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/parameters/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/parameters/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +24 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/partial/from_cyclic.d.mts +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/partial/from_object.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/partial/from_object.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/partial/from_type.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/partial/from_type.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/partial/from_union.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/partial/from_union.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/partial/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/partial/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/partial/instantiate.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/partial/instantiate.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/patterns/index.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/patterns/index.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/patterns/pattern.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/patterns/pattern.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/patterns/template.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/patterns/template.mjs +20 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/pick/from_type.d.mts +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/pick/from_type.mjs +20 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/pick/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/pick/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/pick/instantiate.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/pick/instantiate.mjs +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.d.mts +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +22 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/readonly_object/from_union.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/readonly_object/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/readonly_object/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/readonly_object/instantiate.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key.d.mts +24 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key.mjs +40 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_any.d.mts +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_any.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_boolean.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_integer.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_integer.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_intersect.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_literal.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_literal.mjs +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_number.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_number.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_string.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_string.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_union.d.mts +20 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/from_key_union.mjs +39 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/instantiate.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/instantiate.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/record_create.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/record/record_create.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/ref/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/ref/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/ref/instantiate.mjs +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/required/from_cyclic.d.mts +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/required/from_cyclic.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/required/from_intersect.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/required/from_intersect.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/required/from_object.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/required/from_object.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/required/from_type.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/required/from_type.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/required/from_union.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/required/from_union.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/required/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/required/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/required/instantiate.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/required/instantiate.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/rest/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/rest/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/rest/spread.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/rest/spread.mjs +19 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/return_type/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/return_type/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/return_type/instantiate.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/return_type/instantiate.mjs +21 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/template_literal/create.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/template_literal/create.mjs +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/template_literal/decode.d.mts +30 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/template_literal/decode.mjs +81 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/template_literal/encode.d.mts +33 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/template_literal/encode.mjs +81 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/template_literal/index.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/template_literal/index.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/template_literal/instantiate.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/template_literal/is_finite.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +26 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/template_literal/is_pattern.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/template_literal/static.d.mts +18 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/template_literal/static.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/this/expand_this.d.mts +19 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/this/expand_this.mjs +32 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/tuple/to_object.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/engine/tuple/to_object.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/any.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/any.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/array.d.mts +20 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/array.mjs +21 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/async_iterator.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/async_iterator.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/bigint.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/bigint.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/boolean.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/boolean.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/constructor.d.mts +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/constructor.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/enum.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/enum.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/extends.d.mts +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/extends.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/extends_left.d.mts +55 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/extends_left.mjs +83 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/extends_right.d.mts +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/extends_right.mjs +44 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/function.d.mts +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/function.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/index.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/index.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/inference.d.mts +34 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/inference.mjs +62 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/integer.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/integer.mjs +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/intersect.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/intersect.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/iterator.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/iterator.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/literal.d.mts +18 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/literal.mjs +44 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/never.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/never.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/null.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/null.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/number.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/number.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/object.d.mts +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/object.mjs +87 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/parameters.d.mts +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/parameters.mjs +28 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/promise.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/promise.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/result.d.mts +24 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/result.mjs +36 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/return_type.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/return_type.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/string.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/string.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/symbol.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/symbol.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/template_literal.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/template_literal.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/tuple.d.mts +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/tuple.mjs +60 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/undefined.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/undefined.mjs +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/union.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/union.mjs +24 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/unknown.d.mts +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/unknown.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/void.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/extends/void.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/index.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/index.mjs +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/mapping.d.mts +365 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/mapping.mjs +532 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/parser.d.mts +260 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/parser.mjs +135 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/script.d.mts +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/script.mjs +21 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/bigint.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/bigint.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/const.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/const.mjs +18 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/ident.d.mts +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/ident.mjs +26 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/index.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/index.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/integer.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/integer.mjs +19 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/internal/char.d.mts +75 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/internal/char.mjs +26 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/internal/guard.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/internal/guard.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/internal/many.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/internal/many.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/internal/match.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/internal/match.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/internal/optional.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/internal/optional.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/internal/take.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/internal/take.mjs +30 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/internal/trim.d.mts +19 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/internal/trim.mjs +34 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/number.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/number.mjs +19 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/rest.d.mts +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/rest.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/span.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/span.mjs +24 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/string.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/string.mjs +20 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/unsigned_integer.d.mts +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/unsigned_integer.mjs +26 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/unsigned_number.d.mts +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/unsigned_number.mjs +38 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/until.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/until.mjs +21 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/until_1.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/script/token/until_1.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/_codec.d.mts +30 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/_codec.mjs +61 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/_immutable.d.mts +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/_immutable.mjs +26 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/_optional.d.mts +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/_optional.mjs +27 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/_readonly.d.mts +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/_readonly.mjs +26 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/_refine.d.mts +26 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/_refine.mjs +37 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/any.d.mts +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/any.mjs +18 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/array.d.mts +18 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/array.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/async_iterator.d.mts +20 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/async_iterator.mjs +28 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/base.d.mts +50 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/base.mjs +84 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/bigint.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/bigint.mjs +21 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/boolean.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/boolean.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/call.d.mts +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/call.mjs +22 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/constructor.d.mts +18 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/constructor.mjs +24 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/cyclic.d.mts +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/cyclic.mjs +29 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/deferred.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/deferred.mjs +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/enum.d.mts +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/enum.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/function.d.mts +21 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/function.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/generic.d.mts +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/generic.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/identifier.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/identifier.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/index.d.mts +48 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/index.mjs +54 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/infer.d.mts +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/infer.mjs +20 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/integer.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/integer.mjs +21 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/intersect.d.mts +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/intersect.mjs +24 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/iterator.d.mts +20 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/iterator.mjs +28 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/literal.d.mts +31 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/literal.mjs +62 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/never.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/never.mjs +22 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/null.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/null.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/number.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/number.mjs +21 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/object.d.mts +18 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/object.mjs +28 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/parameter.d.mts +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/parameter.mjs +21 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/promise.d.mts +21 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/promise.mjs +29 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/properties.d.mts +43 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/properties.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/record.d.mts +46 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/record.mjs +60 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/ref.d.mts +19 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/ref.mjs +18 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/rest.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/rest.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/schema.d.mts +176 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/schema.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/static.d.mts +48 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/static.mjs +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/string.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/string.mjs +22 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/symbol.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/symbol.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/template_literal.d.mts +28 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/template_literal.mjs +37 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/this.d.mts +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/this.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/tuple.d.mts +38 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/tuple.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/undefined.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/undefined.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/union.d.mts +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/union.mjs +24 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/unknown.d.mts +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/unknown.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/unsafe.d.mts +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/unsafe.mjs +20 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/void.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/type/types/void.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/typebox.d.mts +73 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/typebox.mjs +89 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/assert/assert.d.mts +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/assert/assert.mjs +28 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/assert/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/assert/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/check/check.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/check/check.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/check/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/check/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/additional.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/additional.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/clean.d.mts +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/clean.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_array.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_array.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_base.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_base.mjs +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_cyclic.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_cyclic.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_intersect.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_intersect.mjs +26 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_object.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_object.mjs +31 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_record.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_record.mjs +32 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_ref.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_ref.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_tuple.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_tuple.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_type.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_type.mjs +23 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_union.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/from_union.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clean/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clone/clone.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clone/clone.mjs +83 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clone/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/clone/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/callback.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/callback.mjs +25 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/decode.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/decode.mjs +50 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/encode.d.mts +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/encode.mjs +50 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/from_array.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/from_array.mjs +38 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/from_cyclic.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/from_cyclic.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/from_intersect.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/from_intersect.mjs +58 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/from_object.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/from_object.mjs +45 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/from_record.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/from_record.mjs +44 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/from_ref.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/from_ref.mjs +31 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/from_tuple.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/from_tuple.mjs +35 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/from_type.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/from_type.mjs +22 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/from_union.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/from_union.mjs +40 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/has.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/has.mjs +93 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/index.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/codec/index.mjs +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/convert.d.mts +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/convert.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_additional.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_additional.mjs +18 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_array.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_array.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_base.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_base.mjs +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_bigint.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_bigint.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_boolean.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_boolean.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_cyclic.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_cyclic.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_enum.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_enum.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_integer.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_integer.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_intersect.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_intersect.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_literal.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_literal.mjs +44 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_null.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_null.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_number.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_number.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_object.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_object.mjs +28 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_record.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_record.mjs +23 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_ref.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_ref.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_string.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_string.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_template_literal.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_template_literal.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_tuple.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_tuple.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_type.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_type.mjs +45 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_undefined.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_undefined.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_union.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_union.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_void.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/from_void.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/try.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/try.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/try_array.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/try_array.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/try_bigint.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/try_bigint.mjs +45 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/try_boolean.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/try_boolean.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/try_null.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/try_null.mjs +44 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/try_number.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/try_number.mjs +44 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/try_result.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/try_result.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/try_string.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/try_string.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/try_undefined.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/convert/try/try_undefined.mjs +44 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/create.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/create.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/error.d.mts +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/error.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_array.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_array.mjs +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_async_iterator.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_async_iterator.mjs +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_base.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_base.mjs +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_bigint.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_bigint.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_boolean.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_boolean.mjs +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_constructor.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_constructor.mjs +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_cyclic.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_cyclic.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_default.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_default.mjs +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_enum.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_enum.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_function.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_function.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_integer.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_integer.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_intersect.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_intersect.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_iterator.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_iterator.mjs +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_literal.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_literal.mjs +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_never.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_never.mjs +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_null.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_null.mjs +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_number.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_number.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_object.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_object.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_promise.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_promise.mjs +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_record.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_record.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_ref.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_ref.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_string.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_string.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_symbol.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_symbol.mjs +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_template_literal.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_template_literal.mjs +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_tuple.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_tuple.mjs +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_type.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_type.mjs +69 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_undefined.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_undefined.mjs +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_union.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_union.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_void.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/from_void.mjs +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/index.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/create/index.mjs +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/default.d.mts +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/default.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_array.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_array.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_base.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_base.mjs +5 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_cyclic.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_cyclic.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_default.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_default.mjs +13 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_intersect.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_intersect.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_object.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_object.mjs +32 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_record.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_record.mjs +26 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_ref.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_ref.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_tuple.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_tuple.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_type.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_type.mjs +27 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_union.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/from_union.mjs +14 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/default/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/delta/diff.d.mts +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/delta/diff.mjs +135 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/delta/edit.d.mts +24 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/delta/edit.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/delta/index.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/delta/index.mjs +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/delta/patch.d.mts +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/delta/patch.mjs +42 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/equal/equal.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/equal/equal.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/equal/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/equal/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/errors/errors.d.mts +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/errors/errors.mjs +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/errors/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/errors/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/hash/hash.d.mts +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/hash/hash.mjs +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/hash/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/hash/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/index.d.mts +21 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/index.mjs +30 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/mutate/error.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/mutate/error.mjs +6 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/mutate/from_array.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/mutate/from_array.mjs +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/mutate/from_object.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/mutate/from_object.mjs +40 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/mutate/from_unknown.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/mutate/from_unknown.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/mutate/from_value.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/mutate/from_value.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/mutate/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/mutate/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/mutate/mutate.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/mutate/mutate.mjs +41 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/parse/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/parse/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/parse/parse.d.mts +11 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/parse/parse.mjs +47 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/pipeline/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/pipeline/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/pipeline/pipeline.d.mts +10 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/pipeline/pipeline.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/pointer/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/pointer/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/error.d.mts +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/error.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_array.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_array.mjs +39 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_base.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_base.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_enum.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_enum.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_intersect.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_intersect.mjs +8 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_object.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_object.mjs +33 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_record.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_record.mjs +33 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_ref.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_ref.mjs +9 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_template_literal.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_template_literal.mjs +7 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_tuple.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_tuple.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_type.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_type.mjs +86 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_union.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_union.mjs +24 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_unknown.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/from_unknown.mjs +12 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/index.d.mts +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/index.mjs +1 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/repair.d.mts +17 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/repair/repair.mjs +20 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/shared/index.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/shared/index.mjs +4 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/shared/optional_undefined.d.mts +2 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/shared/optional_undefined.mjs +15 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/shared/union_priority_sort.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/shared/union_priority_sort.mjs +36 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/shared/union_score_select.d.mts +3 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/shared/union_score_select.mjs +51 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/value.d.mts +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/build/value/value.mjs +16 -0
- package/node_modules/pi-subagents/node_modules/typebox/license +23 -0
- package/node_modules/pi-subagents/node_modules/typebox/package.json +87 -0
- package/node_modules/pi-subagents/node_modules/typebox/readme.md +356 -0
- package/node_modules/pi-subagents/package.json +104 -0
- package/node_modules/pi-subagents/prompts/gather-context-and-clarify.md +13 -0
- package/node_modules/pi-subagents/prompts/parallel-cleanup.md +59 -0
- package/node_modules/pi-subagents/prompts/parallel-research.md +50 -0
- package/node_modules/pi-subagents/prompts/parallel-review.md +54 -0
- package/node_modules/pi-subagents/prompts/review-loop.md +43 -0
- package/node_modules/pi-subagents/skills/pi-subagents/SKILL.md +41 -0
- package/node_modules/pi-subagents/skills/pi-subagents/references/constraints-and-recipes.md +251 -0
- package/node_modules/pi-subagents/skills/pi-subagents/references/execution-controls.md +428 -0
- package/node_modules/pi-subagents/skills/pi-subagents/references/management-authoring-rpc.md +161 -0
- package/node_modules/pi-subagents/skills/pi-subagents/references/prompting-and-roles.md +242 -0
- package/node_modules/pi-subagents/src/agents/agent-management.ts +1256 -0
- package/node_modules/pi-subagents/src/agents/agent-memory.ts +254 -0
- package/node_modules/pi-subagents/src/agents/agent-refinements.ts +624 -0
- package/node_modules/pi-subagents/src/agents/agent-scope.ts +6 -0
- package/node_modules/pi-subagents/src/agents/agent-selection.ts +25 -0
- package/node_modules/pi-subagents/src/agents/agent-serializer.ts +163 -0
- package/node_modules/pi-subagents/src/agents/agents.ts +1898 -0
- package/node_modules/pi-subagents/src/agents/chain-serializer.ts +280 -0
- package/node_modules/pi-subagents/src/agents/frontmatter.ts +153 -0
- package/node_modules/pi-subagents/src/agents/identity.ts +30 -0
- package/node_modules/pi-subagents/src/agents/proactive-skills.ts +194 -0
- package/node_modules/pi-subagents/src/agents/skills.ts +754 -0
- package/node_modules/pi-subagents/src/api/background-work.ts +197 -0
- package/node_modules/pi-subagents/src/api/capability-ceiling.ts +17 -0
- package/node_modules/pi-subagents/src/api/control-channel.ts +4 -0
- package/node_modules/pi-subagents/src/api/delegation.ts +119 -0
- package/node_modules/pi-subagents/src/api/external-runs.ts +129 -0
- package/node_modules/pi-subagents/src/api/intercom-bridge.ts +3 -0
- package/node_modules/pi-subagents/src/api/pi-args.ts +5 -0
- package/node_modules/pi-subagents/src/api/preflight.ts +403 -0
- package/node_modules/pi-subagents/src/api/project-panes.ts +30 -0
- package/node_modules/pi-subagents/src/api/shared-types.ts +19 -0
- package/node_modules/pi-subagents/src/extension/config.ts +103 -0
- package/node_modules/pi-subagents/src/extension/control-notices.ts +58 -0
- package/node_modules/pi-subagents/src/extension/doctor.ts +230 -0
- package/node_modules/pi-subagents/src/extension/fanout-child.ts +202 -0
- package/node_modules/pi-subagents/src/extension/index.ts +850 -0
- package/node_modules/pi-subagents/src/extension/public-execution.ts +71 -0
- package/node_modules/pi-subagents/src/extension/rpc.ts +654 -0
- package/node_modules/pi-subagents/src/extension/schemas.ts +396 -0
- package/node_modules/pi-subagents/src/extension/steering-notices.ts +35 -0
- package/node_modules/pi-subagents/src/extension/subagent-guide.ts +39 -0
- package/node_modules/pi-subagents/src/extension/tool-description.ts +182 -0
- package/node_modules/pi-subagents/src/inspectors/herdr/actions.ts +229 -0
- package/node_modules/pi-subagents/src/inspectors/herdr/client.ts +130 -0
- package/node_modules/pi-subagents/src/inspectors/herdr/inspector-runner.ts +141 -0
- package/node_modules/pi-subagents/src/inspectors/herdr/project-panes.ts +550 -0
- package/node_modules/pi-subagents/src/integrations/herdr-status.ts +330 -0
- package/node_modules/pi-subagents/src/intercom/intercom-bridge.ts +187 -0
- package/node_modules/pi-subagents/src/intercom/native-supervisor-channel.ts +813 -0
- package/node_modules/pi-subagents/src/intercom/result-intercom.ts +421 -0
- package/node_modules/pi-subagents/src/missions/actions.ts +433 -0
- package/node_modules/pi-subagents/src/missions/goal-driver.ts +162 -0
- package/node_modules/pi-subagents/src/missions/lifecycle.ts +365 -0
- package/node_modules/pi-subagents/src/missions/store.ts +584 -0
- package/node_modules/pi-subagents/src/missions/types.ts +190 -0
- package/node_modules/pi-subagents/src/missions/workflow-state.ts +256 -0
- package/node_modules/pi-subagents/src/policy/authority.ts +46 -0
- package/node_modules/pi-subagents/src/profiles/profiles.ts +661 -0
- package/node_modules/pi-subagents/src/runs/background/active-run-index.ts +42 -0
- package/node_modules/pi-subagents/src/runs/background/async-execution.ts +1585 -0
- package/node_modules/pi-subagents/src/runs/background/async-job-tracker.ts +671 -0
- package/node_modules/pi-subagents/src/runs/background/async-resume.ts +555 -0
- package/node_modules/pi-subagents/src/runs/background/async-status.ts +570 -0
- package/node_modules/pi-subagents/src/runs/background/auto-drain.ts +67 -0
- package/node_modules/pi-subagents/src/runs/background/chain-append.ts +328 -0
- package/node_modules/pi-subagents/src/runs/background/chain-root-attachment.ts +199 -0
- package/node_modules/pi-subagents/src/runs/background/completion-batcher.ts +168 -0
- package/node_modules/pi-subagents/src/runs/background/completion-dedupe.ts +54 -0
- package/node_modules/pi-subagents/src/runs/background/completion-replay.ts +267 -0
- package/node_modules/pi-subagents/src/runs/background/control-channel.ts +733 -0
- package/node_modules/pi-subagents/src/runs/background/fleet-view.ts +540 -0
- package/node_modules/pi-subagents/src/runs/background/notify.ts +332 -0
- package/node_modules/pi-subagents/src/runs/background/parallel-groups.ts +45 -0
- package/node_modules/pi-subagents/src/runs/background/process-terminal.ts +280 -0
- package/node_modules/pi-subagents/src/runs/background/result-watcher.ts +517 -0
- package/node_modules/pi-subagents/src/runs/background/resume-guidance.ts +33 -0
- package/node_modules/pi-subagents/src/runs/background/retained-children.ts +68 -0
- package/node_modules/pi-subagents/src/runs/background/run-id-resolver.ts +167 -0
- package/node_modules/pi-subagents/src/runs/background/run-status.ts +522 -0
- package/node_modules/pi-subagents/src/runs/background/scheduled-runs.ts +777 -0
- package/node_modules/pi-subagents/src/runs/background/stale-run-reconciler.ts +384 -0
- package/node_modules/pi-subagents/src/runs/background/steering.ts +239 -0
- package/node_modules/pi-subagents/src/runs/background/subagent-runner.ts +4776 -0
- package/node_modules/pi-subagents/src/runs/background/subagent-wait.ts +664 -0
- package/node_modules/pi-subagents/src/runs/background/top-level-async.ts +14 -0
- package/node_modules/pi-subagents/src/runs/background/wait-completions.ts +146 -0
- package/node_modules/pi-subagents/src/runs/background/wait-config.ts +36 -0
- package/node_modules/pi-subagents/src/runs/background/wait-subscriptions.ts +269 -0
- package/node_modules/pi-subagents/src/runs/background/wait-tool.ts +34 -0
- package/node_modules/pi-subagents/src/runs/foreground/async-dismiss-action.ts +85 -0
- package/node_modules/pi-subagents/src/runs/foreground/async-steering-action.ts +255 -0
- package/node_modules/pi-subagents/src/runs/foreground/async-stop-action.ts +65 -0
- package/node_modules/pi-subagents/src/runs/foreground/chain-clarify.ts +1354 -0
- package/node_modules/pi-subagents/src/runs/foreground/chain-execution.ts +1530 -0
- package/node_modules/pi-subagents/src/runs/foreground/execution.ts +1875 -0
- package/node_modules/pi-subagents/src/runs/foreground/foreground-control.ts +132 -0
- package/node_modules/pi-subagents/src/runs/foreground/foreground-history.ts +137 -0
- package/node_modules/pi-subagents/src/runs/foreground/subagent-executor.ts +5937 -0
- package/node_modules/pi-subagents/src/runs/foreground/workflow-foreground-steering.ts +187 -0
- package/node_modules/pi-subagents/src/runs/shared/acceptance.ts +1365 -0
- package/node_modules/pi-subagents/src/runs/shared/agent-contract.ts +38 -0
- package/node_modules/pi-subagents/src/runs/shared/capability-ceiling.ts +209 -0
- package/node_modules/pi-subagents/src/runs/shared/chain-outputs.ts +118 -0
- package/node_modules/pi-subagents/src/runs/shared/child-protocol.ts +401 -0
- package/node_modules/pi-subagents/src/runs/shared/completion-guard.ts +95 -0
- package/node_modules/pi-subagents/src/runs/shared/context-mode.ts +44 -0
- package/node_modules/pi-subagents/src/runs/shared/dynamic-fanout.ts +297 -0
- package/node_modules/pi-subagents/src/runs/shared/external-cli-runner.ts +130 -0
- package/node_modules/pi-subagents/src/runs/shared/long-running-guard.ts +220 -0
- package/node_modules/pi-subagents/src/runs/shared/mcp-direct-tool-allowlist.ts +406 -0
- package/node_modules/pi-subagents/src/runs/shared/model-fallback.ts +340 -0
- package/node_modules/pi-subagents/src/runs/shared/model-scope.ts +138 -0
- package/node_modules/pi-subagents/src/runs/shared/nested-events.ts +1076 -0
- package/node_modules/pi-subagents/src/runs/shared/nested-path.ts +52 -0
- package/node_modules/pi-subagents/src/runs/shared/nested-render.ts +123 -0
- package/node_modules/pi-subagents/src/runs/shared/parallel-handoff.ts +238 -0
- package/node_modules/pi-subagents/src/runs/shared/parallel-utils.ts +257 -0
- package/node_modules/pi-subagents/src/runs/shared/permissions.ts +95 -0
- package/node_modules/pi-subagents/src/runs/shared/pi-args.ts +798 -0
- package/node_modules/pi-subagents/src/runs/shared/pi-spawn.ts +163 -0
- package/node_modules/pi-subagents/src/runs/shared/process-signal.ts +19 -0
- package/node_modules/pi-subagents/src/runs/shared/run-history.ts +181 -0
- package/node_modules/pi-subagents/src/runs/shared/runtime-acknowledged-extensions.ts +71 -0
- package/node_modules/pi-subagents/src/runs/shared/session-lease.ts +299 -0
- package/node_modules/pi-subagents/src/runs/shared/single-output.ts +235 -0
- package/node_modules/pi-subagents/src/runs/shared/spawn-budget.ts +128 -0
- package/node_modules/pi-subagents/src/runs/shared/structured-output.ts +182 -0
- package/node_modules/pi-subagents/src/runs/shared/subagent-control.ts +231 -0
- package/node_modules/pi-subagents/src/runs/shared/subagent-prompt-runtime.ts +673 -0
- package/node_modules/pi-subagents/src/runs/shared/subagent-startup-retry.ts +104 -0
- package/node_modules/pi-subagents/src/runs/shared/task-intent.ts +181 -0
- package/node_modules/pi-subagents/src/runs/shared/tool-availability.ts +83 -0
- package/node_modules/pi-subagents/src/runs/shared/tool-budget.ts +80 -0
- package/node_modules/pi-subagents/src/runs/shared/turn-budget.ts +98 -0
- package/node_modules/pi-subagents/src/runs/shared/usage-budget.ts +65 -0
- package/node_modules/pi-subagents/src/runs/shared/workflow-graph.ts +231 -0
- package/node_modules/pi-subagents/src/runs/shared/worktree.ts +760 -0
- package/node_modules/pi-subagents/src/shared/accessible-dir.ts +47 -0
- package/node_modules/pi-subagents/src/shared/artifacts.ts +285 -0
- package/node_modules/pi-subagents/src/shared/atomic-json.ts +61 -0
- package/node_modules/pi-subagents/src/shared/child-transcript.ts +264 -0
- package/node_modules/pi-subagents/src/shared/display-text.ts +100 -0
- package/node_modules/pi-subagents/src/shared/file-coalescer.ts +49 -0
- package/node_modules/pi-subagents/src/shared/file-system-retry.ts +47 -0
- package/node_modules/pi-subagents/src/shared/fork-context.ts +226 -0
- package/node_modules/pi-subagents/src/shared/formatters.ts +131 -0
- package/node_modules/pi-subagents/src/shared/jsonl-writer.ts +81 -0
- package/node_modules/pi-subagents/src/shared/launch-contract.ts +124 -0
- package/node_modules/pi-subagents/src/shared/model-info.ts +81 -0
- package/node_modules/pi-subagents/src/shared/post-exit-stdio-guard.ts +85 -0
- package/node_modules/pi-subagents/src/shared/prompt-resources.ts +51 -0
- package/node_modules/pi-subagents/src/shared/session-identity.ts +10 -0
- package/node_modules/pi-subagents/src/shared/session-tokens.ts +44 -0
- package/node_modules/pi-subagents/src/shared/settings.ts +514 -0
- package/node_modules/pi-subagents/src/shared/status-format.ts +55 -0
- package/node_modules/pi-subagents/src/shared/types.ts +2112 -0
- package/node_modules/pi-subagents/src/shared/utf8.ts +11 -0
- package/node_modules/pi-subagents/src/shared/utils.ts +623 -0
- package/node_modules/pi-subagents/src/slash/delegation-adapters.ts +434 -0
- package/node_modules/pi-subagents/src/slash/delegation-json.ts +108 -0
- package/node_modules/pi-subagents/src/slash/delegation-request.ts +166 -0
- package/node_modules/pi-subagents/src/slash/prompt-template-bridge.ts +383 -0
- package/node_modules/pi-subagents/src/slash/prompt-workflows.ts +287 -0
- package/node_modules/pi-subagents/src/slash/selector.ts +147 -0
- package/node_modules/pi-subagents/src/slash/slash-bridge.ts +192 -0
- package/node_modules/pi-subagents/src/slash/slash-commands.ts +1014 -0
- package/node_modules/pi-subagents/src/slash/slash-live-state.ts +296 -0
- package/node_modules/pi-subagents/src/slash/subagents-admin.ts +432 -0
- package/node_modules/pi-subagents/src/tui/fleet-status.ts +574 -0
- package/node_modules/pi-subagents/src/tui/fleet-transcript.ts +577 -0
- package/node_modules/pi-subagents/src/tui/fleet.ts +989 -0
- package/node_modules/pi-subagents/src/tui/render-helpers.ts +80 -0
- package/node_modules/pi-subagents/src/tui/render.ts +2146 -0
- package/node_modules/pi-subagents/src/types/pi-runtime-compat.d.ts +8 -0
- package/node_modules/pi-subagents/src/watchdog/change-signature.ts +221 -0
- package/node_modules/pi-subagents/src/watchdog/child-status.ts +205 -0
- package/node_modules/pi-subagents/src/watchdog/emission-guard.ts +123 -0
- package/node_modules/pi-subagents/src/watchdog/lsp-diagnostics.ts +537 -0
- package/node_modules/pi-subagents/src/watchdog/model-selection.ts +167 -0
- package/node_modules/pi-subagents/src/watchdog/permission-arbiter.ts +145 -0
- package/node_modules/pi-subagents/src/watchdog/register-child.ts +117 -0
- package/node_modules/pi-subagents/src/watchdog/register-main.ts +440 -0
- package/node_modules/pi-subagents/src/watchdog/render.ts +54 -0
- package/node_modules/pi-subagents/src/watchdog/review.ts +302 -0
- package/node_modules/pi-subagents/src/watchdog/runtime.ts +868 -0
- package/node_modules/pi-subagents/src/watchdog/scope.ts +62 -0
- package/node_modules/pi-subagents/src/watchdog/settings.ts +568 -0
- package/node_modules/pi-subagents/src/watchdog/tool-actions.ts +155 -0
- package/node_modules/pi-subagents/src/watchdog/turn-delta.ts +161 -0
- package/node_modules/pi-subagents/src/watchdog/types.ts +198 -0
- package/node_modules/pi-subagents/src/watchdog/warning-format.ts +73 -0
- package/node_modules/pi-subagents/src/workflows/chat-progress.ts +140 -0
- package/node_modules/pi-subagents/src/workflows/scripted-workflow.ts +703 -0
- package/node_modules/pkce-challenge/CHANGELOG.md +114 -0
- package/node_modules/pkce-challenge/LICENSE +21 -0
- package/node_modules/pkce-challenge/README.md +55 -0
- package/node_modules/pkce-challenge/dist/index.browser.d.ts +19 -0
- package/node_modules/pkce-challenge/dist/index.browser.js +75 -0
- package/node_modules/pkce-challenge/dist/index.node.cjs +83 -0
- package/node_modules/pkce-challenge/dist/index.node.d.cts +19 -0
- package/node_modules/pkce-challenge/dist/index.node.d.ts +19 -0
- package/node_modules/pkce-challenge/dist/index.node.js +78 -0
- package/node_modules/pkce-challenge/package.json +59 -0
- package/node_modules/recheck/LICENSE +9 -0
- package/node_modules/recheck/README.md +5 -0
- package/node_modules/recheck/index.d.ts +400 -0
- package/node_modules/recheck/index.js +4 -0
- package/node_modules/recheck/lib/browser.js +124 -0
- package/node_modules/recheck/lib/main.js +127 -0
- package/node_modules/recheck/lib/synckit-worker.js +1 -0
- package/node_modules/recheck/package.json +62 -0
- package/node_modules/require-from-string/index.js +34 -0
- package/node_modules/require-from-string/license +21 -0
- package/node_modules/require-from-string/package.json +28 -0
- package/node_modules/require-from-string/readme.md +56 -0
- package/node_modules/run-applescript/index.d.ts +66 -0
- package/node_modules/run-applescript/index.js +37 -0
- package/node_modules/run-applescript/license +9 -0
- package/node_modules/run-applescript/package.json +42 -0
- package/node_modules/run-applescript/readme.md +78 -0
- package/node_modules/shebang-command/index.js +19 -0
- package/node_modules/shebang-command/license +9 -0
- package/node_modules/shebang-command/package.json +34 -0
- package/node_modules/shebang-command/readme.md +34 -0
- package/node_modules/shebang-regex/index.d.ts +22 -0
- package/node_modules/shebang-regex/index.js +2 -0
- package/node_modules/shebang-regex/license +9 -0
- package/node_modules/shebang-regex/package.json +35 -0
- package/node_modules/shebang-regex/readme.md +33 -0
- package/node_modules/smol-toml/LICENSE +24 -0
- package/node_modules/smol-toml/README.md +418 -0
- package/node_modules/smol-toml/dist/date.d.ts +41 -0
- package/node_modules/smol-toml/dist/date.js +127 -0
- package/node_modules/smol-toml/dist/error.d.ts +38 -0
- package/node_modules/smol-toml/dist/error.js +63 -0
- package/node_modules/smol-toml/dist/extract.js +69 -0
- package/node_modules/smol-toml/dist/index.cjs +734 -0
- package/node_modules/smol-toml/dist/index.d.ts +43 -0
- package/node_modules/smol-toml/dist/index.js +33 -0
- package/node_modules/smol-toml/dist/parse.d.ts +36 -0
- package/node_modules/smol-toml/dist/parse.js +149 -0
- package/node_modules/smol-toml/dist/primitive.js +238 -0
- package/node_modules/smol-toml/dist/stringify.d.ts +31 -0
- package/node_modules/smol-toml/dist/stringify.js +181 -0
- package/node_modules/smol-toml/dist/struct.js +179 -0
- package/node_modules/smol-toml/dist/util.d.ts +38 -0
- package/node_modules/smol-toml/dist/util.js +89 -0
- package/node_modules/smol-toml/package.json +68 -0
- package/node_modules/strip-json-comments/index.d.ts +41 -0
- package/node_modules/strip-json-comments/index.js +113 -0
- package/node_modules/strip-json-comments/license +9 -0
- package/node_modules/strip-json-comments/package.json +56 -0
- package/node_modules/strip-json-comments/readme.md +75 -0
- package/node_modules/synckit/LICENSE +21 -0
- package/node_modules/synckit/README.md +191 -0
- package/node_modules/synckit/lib/index.cjs +472 -0
- package/node_modules/synckit/lib/index.d.ts +32 -0
- package/node_modules/synckit/lib/index.js +380 -0
- package/node_modules/synckit/lib/index.js.map +1 -0
- package/node_modules/synckit/lib/types.d.ts +35 -0
- package/node_modules/synckit/lib/types.js +2 -0
- package/node_modules/synckit/lib/types.js.map +1 -0
- package/node_modules/synckit/package.json +40 -0
- package/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/tslib/README.md +164 -0
- package/node_modules/tslib/SECURITY.md +41 -0
- package/node_modules/tslib/modules/index.d.ts +38 -0
- package/node_modules/tslib/modules/index.js +70 -0
- package/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/tslib/package.json +47 -0
- package/node_modules/tslib/tslib.d.ts +460 -0
- package/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/tslib/tslib.es6.js +402 -0
- package/node_modules/tslib/tslib.es6.mjs +401 -0
- package/node_modules/tslib/tslib.html +1 -0
- package/node_modules/tslib/tslib.js +484 -0
- package/node_modules/which/LICENSE +15 -0
- package/node_modules/which/README.md +54 -0
- package/node_modules/which/bin/node-which +52 -0
- package/node_modules/which/package.json +43 -0
- package/node_modules/which/which.js +125 -0
- package/node_modules/wsl-utils/index.d.ts +21 -0
- package/node_modules/wsl-utils/index.js +57 -0
- package/node_modules/wsl-utils/license +9 -0
- package/node_modules/wsl-utils/package.json +46 -0
- package/node_modules/wsl-utils/readme.md +50 -0
- package/node_modules/yaml/LICENSE +13 -0
- package/node_modules/yaml/README.md +172 -0
- package/node_modules/yaml/bin.mjs +11 -0
- package/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
- package/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
- package/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
- package/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
- package/node_modules/yaml/browser/dist/compose/composer.js +217 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
- package/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +223 -0
- package/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
- package/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
- package/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
- package/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
- package/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
- package/node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/node_modules/yaml/browser/dist/errors.js +57 -0
- package/node_modules/yaml/browser/dist/index.js +17 -0
- package/node_modules/yaml/browser/dist/log.js +11 -0
- package/node_modules/yaml/browser/dist/nodes/Alias.js +114 -0
- package/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
- package/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
- package/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
- package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
- package/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
- package/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
- package/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
- package/node_modules/yaml/browser/dist/parse/cst.js +98 -0
- package/node_modules/yaml/browser/dist/parse/lexer.js +717 -0
- package/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/node_modules/yaml/browser/dist/parse/parser.js +967 -0
- package/node_modules/yaml/browser/dist/public-api.js +102 -0
- package/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
- package/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
- package/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
- package/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
- package/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
- package/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
- package/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
- package/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
- package/node_modules/yaml/browser/dist/schema/tags.js +96 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +64 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
- package/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +24 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
- package/node_modules/yaml/browser/dist/util.js +11 -0
- package/node_modules/yaml/browser/dist/visit.js +233 -0
- package/node_modules/yaml/browser/index.js +5 -0
- package/node_modules/yaml/browser/package.json +3 -0
- package/node_modules/yaml/dist/cli.d.ts +8 -0
- package/node_modules/yaml/dist/cli.mjs +201 -0
- package/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
- package/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
- package/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
- package/node_modules/yaml/dist/compose/compose-node.js +112 -0
- package/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
- package/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/node_modules/yaml/dist/compose/composer.d.ts +63 -0
- package/node_modules/yaml/dist/compose/composer.js +222 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +225 -0
- package/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
- package/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
- package/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/node_modules/yaml/dist/doc/Document.d.ts +141 -0
- package/node_modules/yaml/dist/doc/Document.js +337 -0
- package/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
- package/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
- package/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
- package/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/node_modules/yaml/dist/doc/directives.d.ts +49 -0
- package/node_modules/yaml/dist/doc/directives.js +178 -0
- package/node_modules/yaml/dist/errors.d.ts +21 -0
- package/node_modules/yaml/dist/errors.js +62 -0
- package/node_modules/yaml/dist/index.d.ts +25 -0
- package/node_modules/yaml/dist/index.js +50 -0
- package/node_modules/yaml/dist/log.d.ts +3 -0
- package/node_modules/yaml/dist/log.js +19 -0
- package/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
- package/node_modules/yaml/dist/nodes/Alias.js +116 -0
- package/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
- package/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
- package/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
- package/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/node_modules/yaml/dist/nodes/Scalar.d.ts +43 -0
- package/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
- package/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
- package/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/node_modules/yaml/dist/options.d.ts +350 -0
- package/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
- package/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
- package/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
- package/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/node_modules/yaml/dist/parse/cst.d.ts +109 -0
- package/node_modules/yaml/dist/parse/cst.js +112 -0
- package/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
- package/node_modules/yaml/dist/parse/lexer.js +719 -0
- package/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
- package/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/node_modules/yaml/dist/parse/parser.d.ts +84 -0
- package/node_modules/yaml/dist/parse/parser.js +972 -0
- package/node_modules/yaml/dist/public-api.d.ts +44 -0
- package/node_modules/yaml/dist/public-api.js +107 -0
- package/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
- package/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
- package/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
- package/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
- package/node_modules/yaml/dist/schema/tags.d.ts +48 -0
- package/node_modules/yaml/dist/schema/tags.js +99 -0
- package/node_modules/yaml/dist/schema/types.d.ts +92 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +68 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
- package/node_modules/yaml/dist/stringify/stringify.js +132 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.js +26 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
- package/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/node_modules/yaml/dist/test-events.d.ts +4 -0
- package/node_modules/yaml/dist/test-events.js +134 -0
- package/node_modules/yaml/dist/util.d.ts +16 -0
- package/node_modules/yaml/dist/util.js +28 -0
- package/node_modules/yaml/dist/visit.d.ts +102 -0
- package/node_modules/yaml/dist/visit.js +236 -0
- package/node_modules/yaml/package.json +97 -0
- package/node_modules/yaml/util.js +2 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +191 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/locales/index.cjs +17 -0
- package/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/zod/locales/index.js +1 -0
- package/node_modules/zod/locales/package.json +7 -0
- package/node_modules/zod/mini/index.cjs +32 -0
- package/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/zod/mini/index.js +3 -0
- package/node_modules/zod/mini/package.json +7 -0
- package/node_modules/zod/package.json +135 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5138 -0
- package/node_modules/zod/src/v4/classic/checks.ts +32 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +70 -0
- package/node_modules/zod/src/v4/classic/errors.ts +82 -0
- package/node_modules/zod/src/v4/classic/external.ts +52 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +659 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +82 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2672 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +216 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +326 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +703 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +409 -0
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +197 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +694 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +807 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +895 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +46 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +325 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +717 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +333 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +450 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +717 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +631 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +633 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +1224 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3125 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +496 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +273 -0
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1823 -0
- package/node_modules/zod/src/v4/core/checks.ts +1293 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +153 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +455 -0
- package/node_modules/zod/src/v4/core/index.ts +16 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +666 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +147 -0
- package/node_modules/zod/src/v4/core/parse.ts +195 -0
- package/node_modules/zod/src/v4/core/regexes.ts +190 -0
- package/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/node_modules/zod/src/v4/core/schemas.ts +4730 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +215 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +622 -0
- package/node_modules/zod/src/v4/core/util.ts +983 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +115 -0
- package/node_modules/zod/src/v4/locales/az.ts +111 -0
- package/node_modules/zod/src/v4/locales/be.ts +176 -0
- package/node_modules/zod/src/v4/locales/bg.ts +128 -0
- package/node_modules/zod/src/v4/locales/ca.ts +116 -0
- package/node_modules/zod/src/v4/locales/cs.ts +118 -0
- package/node_modules/zod/src/v4/locales/da.ts +123 -0
- package/node_modules/zod/src/v4/locales/de.ts +116 -0
- package/node_modules/zod/src/v4/locales/el.ts +121 -0
- package/node_modules/zod/src/v4/locales/en.ts +123 -0
- package/node_modules/zod/src/v4/locales/eo.ts +118 -0
- package/node_modules/zod/src/v4/locales/es.ts +141 -0
- package/node_modules/zod/src/v4/locales/fa.ts +126 -0
- package/node_modules/zod/src/v4/locales/fi.ts +121 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
- package/node_modules/zod/src/v4/locales/fr.ts +132 -0
- package/node_modules/zod/src/v4/locales/he.ts +246 -0
- package/node_modules/zod/src/v4/locales/hr.ts +131 -0
- package/node_modules/zod/src/v4/locales/hu.ts +117 -0
- package/node_modules/zod/src/v4/locales/hy.ts +164 -0
- package/node_modules/zod/src/v4/locales/id.ts +115 -0
- package/node_modules/zod/src/v4/locales/index.ts +52 -0
- package/node_modules/zod/src/v4/locales/is.ts +119 -0
- package/node_modules/zod/src/v4/locales/it.ts +116 -0
- package/node_modules/zod/src/v4/locales/ja.ts +114 -0
- package/node_modules/zod/src/v4/locales/ka.ts +123 -0
- package/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/node_modules/zod/src/v4/locales/km.ts +119 -0
- package/node_modules/zod/src/v4/locales/ko.ts +121 -0
- package/node_modules/zod/src/v4/locales/lt.ts +239 -0
- package/node_modules/zod/src/v4/locales/mk.ts +118 -0
- package/node_modules/zod/src/v4/locales/ms.ts +115 -0
- package/node_modules/zod/src/v4/locales/nl.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +116 -0
- package/node_modules/zod/src/v4/locales/ota.ts +117 -0
- package/node_modules/zod/src/v4/locales/pl.ts +118 -0
- package/node_modules/zod/src/v4/locales/ps.ts +126 -0
- package/node_modules/zod/src/v4/locales/pt.ts +116 -0
- package/node_modules/zod/src/v4/locales/ro.ts +129 -0
- package/node_modules/zod/src/v4/locales/ru.ts +176 -0
- package/node_modules/zod/src/v4/locales/sl.ts +118 -0
- package/node_modules/zod/src/v4/locales/sv.ts +119 -0
- package/node_modules/zod/src/v4/locales/ta.ts +118 -0
- package/node_modules/zod/src/v4/locales/th.ts +119 -0
- package/node_modules/zod/src/v4/locales/tr.ts +111 -0
- package/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/node_modules/zod/src/v4/locales/uk.ts +117 -0
- package/node_modules/zod/src/v4/locales/ur.ts +119 -0
- package/node_modules/zod/src/v4/locales/uz.ts +117 -0
- package/node_modules/zod/src/v4/locales/vi.ts +117 -0
- package/node_modules/zod/src/v4/locales/yo.ts +124 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/node_modules/zod/src/v4/mini/external.ts +41 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/node_modules/zod/src/v4/mini/parse.ts +14 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1947 -0
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +548 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +993 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +325 -0
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +352 -0
- package/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +112 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/package.json +7 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3777 -0
- package/node_modules/zod/v3/types.d.cts +1034 -0
- package/node_modules/zod/v3/types.d.ts +1034 -0
- package/node_modules/zod/v3/types.js +3695 -0
- package/node_modules/zod/v4/classic/checks.cjs +33 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +61 -0
- package/node_modules/zod/v4/classic/compat.d.cts +50 -0
- package/node_modules/zod/v4/classic/compat.d.ts +50 -0
- package/node_modules/zod/v4/classic/compat.js +31 -0
- package/node_modules/zod/v4/classic/errors.cjs +74 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +48 -0
- package/node_modules/zod/v4/classic/external.cjs +73 -0
- package/node_modules/zod/v4/classic/external.d.cts +16 -0
- package/node_modules/zod/v4/classic/external.d.ts +16 -0
- package/node_modules/zod/v4/classic/external.js +20 -0
- package/node_modules/zod/v4/classic/from-json-schema.cjs +625 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.js +599 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/package.json +7 -0
- package/node_modules/zod/v4/classic/parse.cjs +41 -0
- package/node_modules/zod/v4/classic/parse.d.cts +31 -0
- package/node_modules/zod/v4/classic/parse.d.ts +31 -0
- package/node_modules/zod/v4/classic/parse.js +15 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1511 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +767 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +767 -0
- package/node_modules/zod/v4/classic/schemas.js +1395 -0
- package/node_modules/zod/v4/core/api.cjs +1227 -0
- package/node_modules/zod/v4/core/api.d.cts +325 -0
- package/node_modules/zod/v4/core/api.d.ts +325 -0
- package/node_modules/zod/v4/core/api.js +1087 -0
- package/node_modules/zod/v4/core/checks.cjs +601 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +575 -0
- package/node_modules/zod/v4/core/core.cjs +85 -0
- package/node_modules/zod/v4/core/core.d.cts +70 -0
- package/node_modules/zod/v4/core/core.d.ts +70 -0
- package/node_modules/zod/v4/core/core.js +78 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +216 -0
- package/node_modules/zod/v4/core/errors.d.cts +221 -0
- package/node_modules/zod/v4/core/errors.d.ts +221 -0
- package/node_modules/zod/v4/core/errors.js +185 -0
- package/node_modules/zod/v4/core/index.cjs +47 -0
- package/node_modules/zod/v4/core/index.d.cts +16 -0
- package/node_modules/zod/v4/core/index.d.ts +16 -0
- package/node_modules/zod/v4/core/index.js +16 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +644 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +601 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/zod/v4/core/parse.cjs +131 -0
- package/node_modules/zod/v4/core/parse.d.cts +49 -0
- package/node_modules/zod/v4/core/parse.d.ts +49 -0
- package/node_modules/zod/v4/core/parse.js +93 -0
- package/node_modules/zod/v4/core/regexes.cjs +172 -0
- package/node_modules/zod/v4/core/regexes.d.cts +85 -0
- package/node_modules/zod/v4/core/regexes.d.ts +85 -0
- package/node_modules/zod/v4/core/regexes.js +139 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +2270 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1184 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1184 -0
- package/node_modules/zod/v4/core/schemas.js +2239 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +457 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
- package/node_modules/zod/v4/core/to-json-schema.js +448 -0
- package/node_modules/zod/v4/core/util.cjs +734 -0
- package/node_modules/zod/v4/core/util.d.cts +200 -0
- package/node_modules/zod/v4/core/util.d.ts +200 -0
- package/node_modules/zod/v4/core/util.js +674 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +133 -0
- package/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +106 -0
- package/node_modules/zod/v4/locales/az.cjs +132 -0
- package/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +105 -0
- package/node_modules/zod/v4/locales/be.cjs +183 -0
- package/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +156 -0
- package/node_modules/zod/v4/locales/bg.cjs +147 -0
- package/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/zod/v4/locales/bg.js +120 -0
- package/node_modules/zod/v4/locales/ca.cjs +134 -0
- package/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +107 -0
- package/node_modules/zod/v4/locales/cs.cjs +138 -0
- package/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +111 -0
- package/node_modules/zod/v4/locales/da.cjs +142 -0
- package/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/zod/v4/locales/da.js +115 -0
- package/node_modules/zod/v4/locales/de.cjs +135 -0
- package/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +108 -0
- package/node_modules/zod/v4/locales/el.cjs +136 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/node_modules/zod/v4/locales/el.js +109 -0
- package/node_modules/zod/v4/locales/en.cjs +140 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/node_modules/zod/v4/locales/en.js +113 -0
- package/node_modules/zod/v4/locales/eo.cjs +136 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/node_modules/zod/v4/locales/eo.js +109 -0
- package/node_modules/zod/v4/locales/es.cjs +159 -0
- package/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +132 -0
- package/node_modules/zod/v4/locales/fa.cjs +141 -0
- package/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +114 -0
- package/node_modules/zod/v4/locales/fi.cjs +139 -0
- package/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +112 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +107 -0
- package/node_modules/zod/v4/locales/fr.cjs +152 -0
- package/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +125 -0
- package/node_modules/zod/v4/locales/he.cjs +241 -0
- package/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +214 -0
- package/node_modules/zod/v4/locales/hr.cjs +149 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/node_modules/zod/v4/locales/hr.js +122 -0
- package/node_modules/zod/v4/locales/hu.cjs +135 -0
- package/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +108 -0
- package/node_modules/zod/v4/locales/hy.cjs +174 -0
- package/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/zod/v4/locales/hy.js +147 -0
- package/node_modules/zod/v4/locales/id.cjs +133 -0
- package/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +106 -0
- package/node_modules/zod/v4/locales/index.cjs +111 -0
- package/node_modules/zod/v4/locales/index.d.cts +52 -0
- package/node_modules/zod/v4/locales/index.d.ts +52 -0
- package/node_modules/zod/v4/locales/index.js +52 -0
- package/node_modules/zod/v4/locales/is.cjs +136 -0
- package/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/zod/v4/locales/is.js +109 -0
- package/node_modules/zod/v4/locales/it.cjs +135 -0
- package/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +108 -0
- package/node_modules/zod/v4/locales/ja.cjs +134 -0
- package/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +107 -0
- package/node_modules/zod/v4/locales/ka.cjs +139 -0
- package/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/zod/v4/locales/ka.js +112 -0
- package/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/node_modules/zod/v4/locales/kh.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +137 -0
- package/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/zod/v4/locales/km.js +110 -0
- package/node_modules/zod/v4/locales/ko.cjs +138 -0
- package/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +111 -0
- package/node_modules/zod/v4/locales/lt.cjs +230 -0
- package/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/zod/v4/locales/lt.js +203 -0
- package/node_modules/zod/v4/locales/mk.cjs +136 -0
- package/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +109 -0
- package/node_modules/zod/v4/locales/ms.cjs +134 -0
- package/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +107 -0
- package/node_modules/zod/v4/locales/nl.cjs +137 -0
- package/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +110 -0
- package/node_modules/zod/v4/locales/no.cjs +135 -0
- package/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +108 -0
- package/node_modules/zod/v4/locales/ota.cjs +136 -0
- package/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +109 -0
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/pl.cjs +136 -0
- package/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +109 -0
- package/node_modules/zod/v4/locales/ps.cjs +141 -0
- package/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +114 -0
- package/node_modules/zod/v4/locales/pt.cjs +135 -0
- package/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +108 -0
- package/node_modules/zod/v4/locales/ro.cjs +146 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/node_modules/zod/v4/locales/ro.js +119 -0
- package/node_modules/zod/v4/locales/ru.cjs +183 -0
- package/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +156 -0
- package/node_modules/zod/v4/locales/sl.cjs +136 -0
- package/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +109 -0
- package/node_modules/zod/v4/locales/sv.cjs +137 -0
- package/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +110 -0
- package/node_modules/zod/v4/locales/ta.cjs +137 -0
- package/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +110 -0
- package/node_modules/zod/v4/locales/th.cjs +137 -0
- package/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +110 -0
- package/node_modules/zod/v4/locales/tr.cjs +132 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/node_modules/zod/v4/locales/tr.js +105 -0
- package/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/node_modules/zod/v4/locales/ua.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +135 -0
- package/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/zod/v4/locales/uk.js +108 -0
- package/node_modules/zod/v4/locales/ur.cjs +137 -0
- package/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +110 -0
- package/node_modules/zod/v4/locales/uz.cjs +137 -0
- package/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/zod/v4/locales/uz.js +110 -0
- package/node_modules/zod/v4/locales/vi.cjs +135 -0
- package/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +108 -0
- package/node_modules/zod/v4/locales/yo.cjs +134 -0
- package/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/zod/v4/locales/yo.js +107 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +109 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +107 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +52 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +22 -0
- package/node_modules/zod/v4/mini/external.cjs +63 -0
- package/node_modules/zod/v4/mini/external.d.cts +13 -0
- package/node_modules/zod/v4/mini/external.d.ts +13 -0
- package/node_modules/zod/v4/mini/external.js +14 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +64 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +34 -0
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/zod/v4/mini/parse.cjs +16 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +1083 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +445 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +445 -0
- package/node_modules/zod/v4/mini/schemas.js +961 -0
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/zod/v4-mini/index.cjs +32 -0
- package/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/node_modules/zod/v4-mini/index.js +3 -0
- package/node_modules/zod/v4-mini/package.json +7 -0
- package/package.json +67 -0
|
@@ -0,0 +1,1875 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core execution logic for running subagents
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { spawn } from "node:child_process";
|
|
6
|
+
import { existsSync, unlinkSync } from "node:fs";
|
|
7
|
+
import * as path from "node:path";
|
|
8
|
+
import type { Message } from "@earendil-works/pi-ai";
|
|
9
|
+
import type { AgentConfig } from "../../agents/agents.ts";
|
|
10
|
+
import { appendAgentRefinementOverlay } from "../../agents/agent-refinements.ts";
|
|
11
|
+
import { alignForkedSessionCwd } from "../../shared/fork-context.ts";
|
|
12
|
+
import {
|
|
13
|
+
ensureArtifactsDir,
|
|
14
|
+
formatOutputArtifactContent,
|
|
15
|
+
getArtifactPaths,
|
|
16
|
+
writeArtifact,
|
|
17
|
+
writeMetadata,
|
|
18
|
+
} from "../../shared/artifacts.ts";
|
|
19
|
+
import { createChildTranscriptWriter, type ChildTranscriptWriter } from "../../shared/child-transcript.ts";
|
|
20
|
+
import {
|
|
21
|
+
type AgentProgress,
|
|
22
|
+
type ArtifactPaths,
|
|
23
|
+
type ControlEvent,
|
|
24
|
+
type ModelAttempt,
|
|
25
|
+
type RunSyncOptions,
|
|
26
|
+
type SingleResult,
|
|
27
|
+
type Usage,
|
|
28
|
+
DEFAULT_MAX_OUTPUT,
|
|
29
|
+
INTERCOM_DETACH_REQUEST_EVENT,
|
|
30
|
+
INTERCOM_DETACH_RESPONSE_EVENT,
|
|
31
|
+
type AcceptanceLedger,
|
|
32
|
+
type ResolvedAcceptanceConfig,
|
|
33
|
+
truncateOutput,
|
|
34
|
+
getSubagentDepthEnv,
|
|
35
|
+
} from "../../shared/types.ts";
|
|
36
|
+
import {
|
|
37
|
+
DEFAULT_CONTROL_CONFIG,
|
|
38
|
+
buildControlEvent,
|
|
39
|
+
claimControlNotification,
|
|
40
|
+
deriveActivityState,
|
|
41
|
+
shouldNotifyControlEvent,
|
|
42
|
+
} from "../shared/subagent-control.ts";
|
|
43
|
+
import {
|
|
44
|
+
getFinalOutput,
|
|
45
|
+
findLatestSessionFile,
|
|
46
|
+
detectSubagentError,
|
|
47
|
+
hasEmptyTerminalAssistantResponse,
|
|
48
|
+
extractToolArgsPreview,
|
|
49
|
+
extractTextFromContent,
|
|
50
|
+
boundStreamedRecentTools,
|
|
51
|
+
boundStreamedRecentOutput,
|
|
52
|
+
boundStreamedToolCalls,
|
|
53
|
+
} from "../../shared/utils.ts";
|
|
54
|
+
import { buildSkillInjection, resolveSkillsWithFallback } from "../../agents/skills.ts";
|
|
55
|
+
import { buildAgentMemoryInjection } from "../../agents/agent-memory.ts";
|
|
56
|
+
import { evaluateCompletionMutationGuard } from "../shared/completion-guard.ts";
|
|
57
|
+
import { getPiSpawnCommand } from "../shared/pi-spawn.ts";
|
|
58
|
+
import { createJsonlWriter } from "../../shared/jsonl-writer.ts";
|
|
59
|
+
import { attachPostExitStdioGuard, trySignalChild } from "../../shared/post-exit-stdio-guard.ts";
|
|
60
|
+
import { resolvePermissionRules } from "../shared/permissions.ts";
|
|
61
|
+
import { applyThinkingSuffix, buildPiArgs, cleanupTempDir, projectLaunchResolvedChildExtensions, resolvePiLaunchToolPlan } from "../shared/pi-args.ts";
|
|
62
|
+
import { readRuntimeAcknowledgedExtensions } from "../shared/runtime-acknowledged-extensions.ts";
|
|
63
|
+
import { assertAgentAllowedByCapabilityCeiling, decodeSubagentCapabilityCeiling, intersectSubagentCapabilityCeilings, resolveCurrentSubagentCapabilityCeiling, SUBAGENT_CAPABILITY_CEILING_ENV } from "../shared/capability-ceiling.ts";
|
|
64
|
+
import { resolveEffectiveThinking } from "../../shared/model-info.ts";
|
|
65
|
+
import { MISSING_STRUCTURED_OUTPUT_CALL_ERROR, readStructuredOutput } from "../shared/structured-output.ts";
|
|
66
|
+
import { formatProcessSignalError, isUnexplainedProcessSignal } from "../shared/process-signal.ts";
|
|
67
|
+
import { readChildToolDiagnosticError } from "../shared/tool-availability.ts";
|
|
68
|
+
import { captureSingleOutputSnapshot, extractChildWrittenOutput, formatSavedOutputReference, injectOutputPathSystemPrompt, resolveSingleOutput, validateFileOnlyOutputMode, type SingleOutputSnapshot } from "../shared/single-output.ts";
|
|
69
|
+
import {
|
|
70
|
+
buildModelCandidates,
|
|
71
|
+
formatModelAttemptNote,
|
|
72
|
+
isRetryableModelFailure,
|
|
73
|
+
} from "../shared/model-fallback.ts";
|
|
74
|
+
import {
|
|
75
|
+
SUBAGENT_STARTUP_RETRY_DELAYS_MS,
|
|
76
|
+
formatSubagentStartupRetryExhaustedError,
|
|
77
|
+
formatSubagentStartupRetryNote,
|
|
78
|
+
isRetryableSubagentStartupFailure,
|
|
79
|
+
waitForSubagentStartupRetry,
|
|
80
|
+
} from "../shared/subagent-startup-retry.ts";
|
|
81
|
+
import {
|
|
82
|
+
createMutatingFailureState,
|
|
83
|
+
didMutatingToolFail,
|
|
84
|
+
isMutatingTool,
|
|
85
|
+
nextLongRunningTrigger,
|
|
86
|
+
recordMutatingFailure,
|
|
87
|
+
resetMutatingFailureState,
|
|
88
|
+
resolveCurrentPath,
|
|
89
|
+
shouldEscalateMutatingFailures,
|
|
90
|
+
summarizeRecentMutatingFailures,
|
|
91
|
+
} from "../shared/long-running-guard.ts";
|
|
92
|
+
import { acceptanceFailureMessage, buildSkippedAcceptanceLedger, evaluateAcceptance, formatAcceptancePrompt, resolveEffectiveAcceptance, stripAcceptanceReport, validateAcceptanceInput } from "../shared/acceptance.ts";
|
|
93
|
+
import { attachContractProjections, isAgentContractV1 } from "../shared/agent-contract.ts";
|
|
94
|
+
import { appendTurnBudgetSystemPrompt, formatTurnBudgetOutput, initialTurnBudgetState, turnBudgetDecision, turnBudgetDeferredNote, turnBudgetDeferredState, turnBudgetExceededMessage, turnBudgetSoftNote, turnBudgetState } from "../shared/turn-budget.ts";
|
|
95
|
+
import { initialToolBudgetState, toolBudgetState } from "../shared/tool-budget.ts";
|
|
96
|
+
import { resolveWatchdogConfig } from "../../watchdog/settings.ts";
|
|
97
|
+
import { agentDefinitionDigest, launchBindingDigest } from "../../shared/launch-contract.ts";
|
|
98
|
+
import { createBoundedByteTail, createBoundedLineReader, formatProtocolOutputLimit, MAX_CHILD_STDERR_BYTES, PI_AGGREGATE_EVENT_PROJECTOR, projectChildLifecycle, type ChildLifecycleAction, type ProtocolOutputLimit } from "../shared/child-protocol.ts";
|
|
99
|
+
import {
|
|
100
|
+
acceptChildWatchdogEvent,
|
|
101
|
+
childWatchdogIsActive,
|
|
102
|
+
isChildWatchdogStatusEvent,
|
|
103
|
+
resolveChildWatchdogConfig,
|
|
104
|
+
type ChildWatchdogStateSnapshot,
|
|
105
|
+
} from "../../watchdog/child-status.ts";
|
|
106
|
+
|
|
107
|
+
const artifactOutputByResult = new WeakMap<SingleResult, string>();
|
|
108
|
+
const acceptanceOutputByResult = new WeakMap<SingleResult, string>();
|
|
109
|
+
|
|
110
|
+
function emptyUsage(): Usage {
|
|
111
|
+
return { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, cost: 0, turns: 0 };
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function withRunContext<T extends SingleResult>(result: T, context: RunSyncOptions["context"]): T {
|
|
115
|
+
if (!context) return result;
|
|
116
|
+
result.context = context;
|
|
117
|
+
return result;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function sumUsage(target: Usage, source: Usage): void {
|
|
121
|
+
target.input += source.input;
|
|
122
|
+
target.output += source.output;
|
|
123
|
+
target.cacheRead += source.cacheRead;
|
|
124
|
+
target.cacheWrite += source.cacheWrite;
|
|
125
|
+
target.cost += source.cost;
|
|
126
|
+
target.turns += source.turns;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function persistSingleResultMetadata(input: {
|
|
130
|
+
metadataPath?: string;
|
|
131
|
+
enabled: boolean;
|
|
132
|
+
runId?: string;
|
|
133
|
+
agent: string;
|
|
134
|
+
task: string;
|
|
135
|
+
result: SingleResult;
|
|
136
|
+
}): void {
|
|
137
|
+
if (!input.enabled || !input.metadataPath) return;
|
|
138
|
+
const target = input.result;
|
|
139
|
+
writeMetadata(input.metadataPath, {
|
|
140
|
+
runId: input.runId,
|
|
141
|
+
agent: input.agent,
|
|
142
|
+
task: input.task,
|
|
143
|
+
exitCode: target.exitCode,
|
|
144
|
+
processSignal: target.processSignal,
|
|
145
|
+
usage: target.usage,
|
|
146
|
+
model: target.model,
|
|
147
|
+
attemptedModels: target.attemptedModels,
|
|
148
|
+
modelAttempts: target.modelAttempts,
|
|
149
|
+
durationMs: target.progressSummary?.durationMs,
|
|
150
|
+
toolCount: target.progressSummary?.toolCount,
|
|
151
|
+
error: target.error,
|
|
152
|
+
agentContract: target.agentContract,
|
|
153
|
+
launchContractDigest: target.launchContractDigest,
|
|
154
|
+
launchResolvedExtensions: target.launchResolvedExtensions,
|
|
155
|
+
runtimeAcknowledgedExtensions: target.runtimeAcknowledgedExtensions,
|
|
156
|
+
execution: target.execution,
|
|
157
|
+
acceptance: target.acceptance,
|
|
158
|
+
capabilityCeiling: target.capabilityCeiling,
|
|
159
|
+
capabilityAudit: target.capabilityAudit,
|
|
160
|
+
review: target.review,
|
|
161
|
+
effects: target.effects,
|
|
162
|
+
transcriptPath: target.transcriptPath,
|
|
163
|
+
transcriptError: target.transcriptError,
|
|
164
|
+
skills: target.skills,
|
|
165
|
+
skillsWarning: target.skillsWarning,
|
|
166
|
+
timestamp: Date.now(),
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
function formatTimeoutMessage(timeoutMs: number): string {
|
|
171
|
+
return `Subagent timed out after ${timeoutMs}ms.`;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
function resolveAttemptTimeout(options: RunSyncOptions): { timeoutMs: number; remainingMs: number; message: string } | undefined {
|
|
175
|
+
if (options.timeoutMs === undefined) return undefined;
|
|
176
|
+
const deadlineAt = options.deadlineAt ?? Date.now() + options.timeoutMs;
|
|
177
|
+
return {
|
|
178
|
+
timeoutMs: options.timeoutMs,
|
|
179
|
+
remainingMs: Math.max(0, deadlineAt - Date.now()),
|
|
180
|
+
message: formatTimeoutMessage(options.timeoutMs),
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
function buildPendingAcceptanceLedger(acceptance: ResolvedAcceptanceConfig): AcceptanceLedger {
|
|
185
|
+
return {
|
|
186
|
+
status: "pending",
|
|
187
|
+
evidenceStatus: "pending",
|
|
188
|
+
explicit: acceptance.explicit,
|
|
189
|
+
effectiveAcceptance: acceptance,
|
|
190
|
+
inferredReason: acceptance.inferredReason,
|
|
191
|
+
criteria: acceptance.criteria,
|
|
192
|
+
runtimeChecks: [],
|
|
193
|
+
verifyRuns: [],
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
function buildInterruptedAcceptanceLedger(acceptance: ResolvedAcceptanceConfig): AcceptanceLedger {
|
|
198
|
+
const pending = buildPendingAcceptanceLedger(acceptance);
|
|
199
|
+
if (acceptance.level === "none") {
|
|
200
|
+
pending.status = "not-required";
|
|
201
|
+
pending.evidenceStatus = "not-required";
|
|
202
|
+
} else {
|
|
203
|
+
pending.runtimeChecks = [{
|
|
204
|
+
id: "interrupted",
|
|
205
|
+
status: "not-applicable",
|
|
206
|
+
message: "Acceptance was not evaluated because the subagent was interrupted.",
|
|
207
|
+
}];
|
|
208
|
+
}
|
|
209
|
+
return pending;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
function appendRecentOutput(progress: AgentProgress, lines: string[]): void {
|
|
213
|
+
if (lines.length === 0) return;
|
|
214
|
+
progress.recentOutput.push(...lines.filter((line) => line.trim()));
|
|
215
|
+
if (progress.recentOutput.length > 50) {
|
|
216
|
+
progress.recentOutput.splice(0, progress.recentOutput.length - 50);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
function stripAcceptanceReportsFromMessages(messages: Message[] | undefined): void {
|
|
221
|
+
for (const message of messages ?? []) {
|
|
222
|
+
if (message.role !== "assistant" || !Array.isArray(message.content)) continue;
|
|
223
|
+
for (const part of message.content) {
|
|
224
|
+
if (part.type === "text" && "text" in part && typeof part.text === "string") {
|
|
225
|
+
part.text = stripAcceptanceReport(part.text);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
function snapshotProgress(progress: AgentProgress): AgentProgress {
|
|
232
|
+
return {
|
|
233
|
+
...progress,
|
|
234
|
+
skills: progress.skills ? [...progress.skills] : undefined,
|
|
235
|
+
recentTools: boundStreamedRecentTools(progress.recentTools),
|
|
236
|
+
recentOutput: boundStreamedRecentOutput(progress.recentOutput),
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
function snapshotResult(result: SingleResult, progress: AgentProgress): SingleResult {
|
|
241
|
+
return {
|
|
242
|
+
...result,
|
|
243
|
+
messages: result.outputMode === "file-only" && result.savedOutputPath ? undefined : result.messages ? [...result.messages] : undefined,
|
|
244
|
+
usage: { ...result.usage },
|
|
245
|
+
skills: result.skills ? [...result.skills] : undefined,
|
|
246
|
+
attemptedModels: result.attemptedModels ? [...result.attemptedModels] : undefined,
|
|
247
|
+
modelAttempts: result.modelAttempts
|
|
248
|
+
? result.modelAttempts.map((attempt) => ({
|
|
249
|
+
...attempt,
|
|
250
|
+
usage: attempt.usage ? { ...attempt.usage } : undefined,
|
|
251
|
+
}))
|
|
252
|
+
: undefined,
|
|
253
|
+
controlEvents: result.controlEvents ? result.controlEvents.map((event) => ({ ...event })) : undefined,
|
|
254
|
+
progress,
|
|
255
|
+
progressSummary: result.progressSummary ? { ...result.progressSummary } : undefined,
|
|
256
|
+
artifactPaths: result.artifactPaths ? { ...result.artifactPaths } : undefined,
|
|
257
|
+
truncation: result.truncation ? { ...result.truncation } : undefined,
|
|
258
|
+
outputReference: result.outputReference ? { ...result.outputReference } : undefined,
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Streaming variant of snapshotResult for `onUpdate` progress events: it drops the
|
|
264
|
+
* unbounded `messages` transcript in favour of compact tool-call summaries so a
|
|
265
|
+
* single `tool_execution_update` line stays well under the child-stdout protocol
|
|
266
|
+
* cap (`MAX_CHILD_PENDING_LINE_BYTES`). Non-streaming consumers such as
|
|
267
|
+
* foreground detach receipts and terminal consumers use snapshotResult directly.
|
|
268
|
+
*/
|
|
269
|
+
function snapshotStreamResult(result: SingleResult, progress: AgentProgress): SingleResult {
|
|
270
|
+
const snapshot = snapshotResult(result, progress);
|
|
271
|
+
snapshot.messages = undefined;
|
|
272
|
+
snapshot.toolCalls = boundStreamedToolCalls(result);
|
|
273
|
+
return snapshot;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
async function runSingleAttempt(
|
|
277
|
+
runtimeCwd: string,
|
|
278
|
+
agent: AgentConfig,
|
|
279
|
+
task: string,
|
|
280
|
+
model: string | undefined,
|
|
281
|
+
options: RunSyncOptions,
|
|
282
|
+
shared: {
|
|
283
|
+
sessionEnabled: boolean;
|
|
284
|
+
systemPrompt: string;
|
|
285
|
+
resolvedSkillNames?: string[];
|
|
286
|
+
modelCandidates?: string[];
|
|
287
|
+
skillsWarning?: string;
|
|
288
|
+
jsonlPath?: string;
|
|
289
|
+
artifactPaths?: ArtifactPaths;
|
|
290
|
+
transcriptWriter?: ChildTranscriptWriter;
|
|
291
|
+
attemptNotes: string[];
|
|
292
|
+
outputSnapshot?: SingleOutputSnapshot;
|
|
293
|
+
originalTask?: string;
|
|
294
|
+
},
|
|
295
|
+
): Promise<SingleResult> {
|
|
296
|
+
const effectiveThinking = options.thinkingOverride ?? agent.thinking;
|
|
297
|
+
const modelArg = applyThinkingSuffix(model, effectiveThinking, options.thinkingOverride !== undefined);
|
|
298
|
+
const resolvedThinking = resolveEffectiveThinking(modelArg, effectiveThinking);
|
|
299
|
+
const watchdogConfig = resolveWatchdogConfig(options.cwd ?? runtimeCwd);
|
|
300
|
+
const childWatchdog = watchdogConfig.ok
|
|
301
|
+
? resolveChildWatchdogConfig({
|
|
302
|
+
config: watchdogConfig.config,
|
|
303
|
+
agent: agent.name,
|
|
304
|
+
runId: options.runId,
|
|
305
|
+
childIndex: options.index ?? 0,
|
|
306
|
+
})
|
|
307
|
+
: undefined;
|
|
308
|
+
const permissionRules = resolvePermissionRules(options.permissions, agent.permissions);
|
|
309
|
+
const permissionAuditPath = permissionRules && options.artifactsDir
|
|
310
|
+
? path.join(options.artifactsDir, "permission-audit", `${options.runId}-${options.index ?? 0}.jsonl`)
|
|
311
|
+
: undefined;
|
|
312
|
+
const { args, env: sharedEnv, tempDir, toolDiagnosticPath, runtimeAcknowledgedExtensionsPath, capabilityAudit } = buildPiArgs({
|
|
313
|
+
baseArgs: ["--mode", "json", "-p"],
|
|
314
|
+
task,
|
|
315
|
+
sessionEnabled: shared.sessionEnabled,
|
|
316
|
+
sessionDir: options.sessionDir,
|
|
317
|
+
sessionFile: options.sessionFile,
|
|
318
|
+
model: modelArg,
|
|
319
|
+
thinking: effectiveThinking,
|
|
320
|
+
systemPromptMode: agent.systemPromptMode,
|
|
321
|
+
inheritProjectContext: agent.inheritProjectContext,
|
|
322
|
+
inheritSkills: agent.inheritSkills,
|
|
323
|
+
requireReadTool: Boolean(shared.resolvedSkillNames?.length),
|
|
324
|
+
tools: agent.tools,
|
|
325
|
+
extensions: agent.extensions,
|
|
326
|
+
subagentOnlyExtensions: agent.subagentOnlyExtensions,
|
|
327
|
+
systemPrompt: appendTurnBudgetSystemPrompt(shared.systemPrompt, options.turnBudget),
|
|
328
|
+
mcpDirectTools: agent.mcpDirectTools,
|
|
329
|
+
cwd: options.cwd ?? runtimeCwd,
|
|
330
|
+
promptFileStem: agent.name,
|
|
331
|
+
intercomSessionName: options.intercomSessionName,
|
|
332
|
+
orchestratorIntercomTarget: options.orchestratorIntercomTarget,
|
|
333
|
+
runId: options.runId,
|
|
334
|
+
childAgentName: agent.name,
|
|
335
|
+
childIndex: options.index ?? 0,
|
|
336
|
+
parentEventSink: options.nestedRoute?.eventSink,
|
|
337
|
+
parentControlInbox: options.nestedRoute?.controlInbox,
|
|
338
|
+
parentRootRunId: options.nestedRoute?.rootRunId,
|
|
339
|
+
parentCapabilityToken: options.nestedRoute?.capabilityToken,
|
|
340
|
+
parentSessionId: options.parentSessionId,
|
|
341
|
+
steerInboxDir: options.steerInboxDir,
|
|
342
|
+
steerCapabilityPath: options.steerCapabilityPath,
|
|
343
|
+
steerAckDir: options.steerAckDir,
|
|
344
|
+
structuredOutput: options.structuredOutput,
|
|
345
|
+
toolBudget: options.toolBudget,
|
|
346
|
+
allowZeroToolBudget: options.allowZeroToolBudget,
|
|
347
|
+
permissionRules,
|
|
348
|
+
permissionAuditPath,
|
|
349
|
+
childWatchdog,
|
|
350
|
+
waitToolEnabled: options.waitToolEnabled,
|
|
351
|
+
capabilityCeiling: options.capabilityCeiling,
|
|
352
|
+
});
|
|
353
|
+
|
|
354
|
+
const effectiveSystemPrompt = appendTurnBudgetSystemPrompt(shared.systemPrompt, options.turnBudget);
|
|
355
|
+
const toolPlan = resolvePiLaunchToolPlan({
|
|
356
|
+
tools: agent.tools,
|
|
357
|
+
extensions: agent.extensions,
|
|
358
|
+
subagentOnlyExtensions: agent.subagentOnlyExtensions,
|
|
359
|
+
mcpDirectTools: agent.mcpDirectTools,
|
|
360
|
+
cwd: options.cwd ?? runtimeCwd,
|
|
361
|
+
requireReadTool: Boolean(shared.resolvedSkillNames?.length),
|
|
362
|
+
structuredOutput: Boolean(options.structuredOutput),
|
|
363
|
+
capabilityCeiling: options.capabilityCeiling,
|
|
364
|
+
inheritedCapabilityCeiling: decodeSubagentCapabilityCeiling(process.env[SUBAGENT_CAPABILITY_CEILING_ENV]),
|
|
365
|
+
agentName: agent.name,
|
|
366
|
+
});
|
|
367
|
+
const launchResolvedExtensions = projectLaunchResolvedChildExtensions(toolPlan);
|
|
368
|
+
const launchContractDigest = launchBindingDigest({
|
|
369
|
+
definitionDigest: agentDefinitionDigest(agent),
|
|
370
|
+
task: shared.originalTask ?? task,
|
|
371
|
+
...(modelArg ? { model: modelArg } : {}),
|
|
372
|
+
modelCandidates: shared.modelCandidates,
|
|
373
|
+
...(resolvedThinking ? { thinking: resolvedThinking } : {}),
|
|
374
|
+
systemPrompt: effectiveSystemPrompt,
|
|
375
|
+
systemPromptMode: agent.systemPromptMode,
|
|
376
|
+
inheritProjectContext: agent.inheritProjectContext,
|
|
377
|
+
inheritSkills: agent.inheritSkills,
|
|
378
|
+
skills: shared.resolvedSkillNames ?? [],
|
|
379
|
+
tools: toolPlan.effectiveToolAllowlist,
|
|
380
|
+
extensions: toolPlan.extensionArgs,
|
|
381
|
+
mcpDirectTools: toolPlan.effectiveMcpTools,
|
|
382
|
+
...(options.outputPath ? { outputPath: options.outputPath } : {}),
|
|
383
|
+
outputMode: options.outputMode ?? "inline",
|
|
384
|
+
...(options.structuredOutput ? { structuredOutputSchema: options.structuredOutput.schema } : {}),
|
|
385
|
+
});
|
|
386
|
+
const result: SingleResult = withRunContext({
|
|
387
|
+
index: options.index ?? 0,
|
|
388
|
+
agent: agent.name,
|
|
389
|
+
task: shared.originalTask ?? task,
|
|
390
|
+
...(options.agentContract ? { agentContract: options.agentContract } : {}),
|
|
391
|
+
launchContractDigest,
|
|
392
|
+
launchResolvedExtensions,
|
|
393
|
+
exitCode: 0,
|
|
394
|
+
outputState: "absent",
|
|
395
|
+
messages: [],
|
|
396
|
+
usage: emptyUsage(),
|
|
397
|
+
model: modelArg,
|
|
398
|
+
...(resolvedThinking ? { thinking: resolvedThinking } : {}),
|
|
399
|
+
artifactPaths: shared.artifactPaths,
|
|
400
|
+
transcriptPath: shared.transcriptWriter ? shared.artifactPaths?.transcriptPath : undefined,
|
|
401
|
+
skills: shared.resolvedSkillNames,
|
|
402
|
+
skillsWarning: shared.skillsWarning,
|
|
403
|
+
...(options.turnBudget ? { turnBudget: initialTurnBudgetState(options.turnBudget) } : {}),
|
|
404
|
+
...(options.toolBudget ? { toolBudget: initialToolBudgetState(options.toolBudget) } : {}),
|
|
405
|
+
...(options.capabilityCeiling ? { capabilityCeiling: options.capabilityCeiling } : {}),
|
|
406
|
+
...(capabilityAudit ? { capabilityAudit } : {}),
|
|
407
|
+
}, options.context);
|
|
408
|
+
const startTime = Date.now();
|
|
409
|
+
if (options.structuredOutput) {
|
|
410
|
+
try {
|
|
411
|
+
if (existsSync(options.structuredOutput.outputPath)) unlinkSync(options.structuredOutput.outputPath);
|
|
412
|
+
} catch {
|
|
413
|
+
// Missing/stale structured-output files are handled after the child exits.
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
const controlConfig = options.controlConfig ?? DEFAULT_CONTROL_CONFIG;
|
|
417
|
+
let interruptedByControl = false;
|
|
418
|
+
const allControlEvents: ControlEvent[] = [];
|
|
419
|
+
let pendingControlEvents: ControlEvent[] = [];
|
|
420
|
+
const emittedControlEventKeys = new Set<string>();
|
|
421
|
+
const emitControlEvent = (event: ControlEvent) => {
|
|
422
|
+
if (!shouldNotifyControlEvent(controlConfig, event)) return;
|
|
423
|
+
if (!claimControlNotification(controlConfig, event, emittedControlEventKeys)) return;
|
|
424
|
+
allControlEvents.push(event);
|
|
425
|
+
pendingControlEvents.push(event);
|
|
426
|
+
options.onControlEvent?.(event);
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
const progress: AgentProgress = {
|
|
430
|
+
index: options.index ?? 0,
|
|
431
|
+
agent: agent.name,
|
|
432
|
+
status: "running",
|
|
433
|
+
task,
|
|
434
|
+
skills: shared.resolvedSkillNames,
|
|
435
|
+
recentTools: [],
|
|
436
|
+
recentOutput: [...shared.attemptNotes],
|
|
437
|
+
toolCount: 0,
|
|
438
|
+
tokens: 0,
|
|
439
|
+
...(modelArg ? { model: modelArg } : {}),
|
|
440
|
+
...(resolvedThinking ? { thinking: resolvedThinking } : {}),
|
|
441
|
+
inputTokens: 0,
|
|
442
|
+
outputTokens: 0,
|
|
443
|
+
durationMs: 0,
|
|
444
|
+
lastActivityAt: startTime,
|
|
445
|
+
};
|
|
446
|
+
result.progress = progress;
|
|
447
|
+
const attemptTimeout = resolveAttemptTimeout(options);
|
|
448
|
+
if (attemptTimeout?.remainingMs === 0) {
|
|
449
|
+
cleanupTempDir(tempDir);
|
|
450
|
+
result.exitCode = 1;
|
|
451
|
+
result.timedOut = true;
|
|
452
|
+
result.error = attemptTimeout.message;
|
|
453
|
+
result.finalOutput = attemptTimeout.message;
|
|
454
|
+
progress.status = "failed";
|
|
455
|
+
progress.error = attemptTimeout.message;
|
|
456
|
+
result.progressSummary = {
|
|
457
|
+
toolCount: progress.toolCount,
|
|
458
|
+
tokens: progress.tokens,
|
|
459
|
+
durationMs: progress.durationMs,
|
|
460
|
+
};
|
|
461
|
+
return result;
|
|
462
|
+
}
|
|
463
|
+
const spawnEnv = { ...process.env, ...sharedEnv, ...getSubagentDepthEnv(options.maxSubagentDepth) };
|
|
464
|
+
let observedMutationAttempt = false;
|
|
465
|
+
let structuredOutputToolInvoked = false;
|
|
466
|
+
let structuredOutputMessageStartIndex: number | undefined;
|
|
467
|
+
|
|
468
|
+
const exitCode = await new Promise<number>((resolve) => {
|
|
469
|
+
const spawnSpec = getPiSpawnCommand(args);
|
|
470
|
+
const proc = spawn(spawnSpec.command, spawnSpec.args, {
|
|
471
|
+
cwd: options.cwd ?? runtimeCwd,
|
|
472
|
+
env: spawnEnv,
|
|
473
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
474
|
+
windowsHide: true,
|
|
475
|
+
});
|
|
476
|
+
const jsonlWriter = createJsonlWriter(shared.jsonlPath, proc.stdout);
|
|
477
|
+
let processClosed = false;
|
|
478
|
+
let lifecycleFinished = false;
|
|
479
|
+
let detached = false;
|
|
480
|
+
let intercomStarted = false;
|
|
481
|
+
let assistantError: string | undefined;
|
|
482
|
+
let removeAbortListener: (() => void) | undefined;
|
|
483
|
+
let removeInterruptListener: (() => void) | undefined;
|
|
484
|
+
let activityTimer: NodeJS.Timeout | undefined;
|
|
485
|
+
let timeoutTimer: NodeJS.Timeout | undefined;
|
|
486
|
+
let timeoutTerminationTimer: NodeJS.Timeout | undefined;
|
|
487
|
+
let timeoutHardKillTimer: NodeJS.Timeout | undefined;
|
|
488
|
+
let turnBudgetSoftReached = false;
|
|
489
|
+
let turnBudgetTerminationTimer: NodeJS.Timeout | undefined;
|
|
490
|
+
let turnBudgetHardKillTimer: NodeJS.Timeout | undefined;
|
|
491
|
+
let protocolHardKillTimer: NodeJS.Timeout | undefined;
|
|
492
|
+
const clearTurnBudgetTimers = () => {
|
|
493
|
+
if (turnBudgetTerminationTimer) {
|
|
494
|
+
clearTimeout(turnBudgetTerminationTimer);
|
|
495
|
+
turnBudgetTerminationTimer = undefined;
|
|
496
|
+
}
|
|
497
|
+
if (turnBudgetHardKillTimer) {
|
|
498
|
+
clearTimeout(turnBudgetHardKillTimer);
|
|
499
|
+
turnBudgetHardKillTimer = undefined;
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
const clearTimeoutTimers = () => {
|
|
503
|
+
if (timeoutTimer) {
|
|
504
|
+
clearTimeout(timeoutTimer);
|
|
505
|
+
timeoutTimer = undefined;
|
|
506
|
+
}
|
|
507
|
+
if (timeoutTerminationTimer) {
|
|
508
|
+
clearTimeout(timeoutTerminationTimer);
|
|
509
|
+
timeoutTerminationTimer = undefined;
|
|
510
|
+
}
|
|
511
|
+
if (timeoutHardKillTimer) {
|
|
512
|
+
clearTimeout(timeoutHardKillTimer);
|
|
513
|
+
timeoutHardKillTimer = undefined;
|
|
514
|
+
}
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
const detachForeground = (reason: string): boolean => {
|
|
518
|
+
if (detached || processClosed || lifecycleFinished || options.signal?.aborted) return false;
|
|
519
|
+
const receiptProgress = snapshotProgress(progress);
|
|
520
|
+
receiptProgress.status = "detached";
|
|
521
|
+
receiptProgress.durationMs = Date.now() - startTime;
|
|
522
|
+
const receipt = snapshotResult(result, receiptProgress);
|
|
523
|
+
receipt.exitCode = -2;
|
|
524
|
+
receipt.detached = true;
|
|
525
|
+
receipt.detachedReason = reason;
|
|
526
|
+
receipt.finalOutput = reason === "intercom coordination"
|
|
527
|
+
? "Detached for intercom coordination before task completion."
|
|
528
|
+
: reason === "user request"
|
|
529
|
+
? "Detached at user request before task completion."
|
|
530
|
+
: `Detached for ${reason} before task completion.`;
|
|
531
|
+
receipt.outputMode = options.outputMode ?? "inline";
|
|
532
|
+
if (options.outputPath) {
|
|
533
|
+
receipt.outputSaveError = reason === "user request"
|
|
534
|
+
? "Output file was not finalized because the subagent detached at user request."
|
|
535
|
+
: `Output file was not finalized because the subagent detached for ${reason}.`;
|
|
536
|
+
}
|
|
537
|
+
receipt.progressSummary = {
|
|
538
|
+
toolCount: receiptProgress.toolCount,
|
|
539
|
+
tokens: receiptProgress.tokens,
|
|
540
|
+
durationMs: receiptProgress.durationMs,
|
|
541
|
+
};
|
|
542
|
+
// The attempt is not detached until the outer coordinator has accepted and
|
|
543
|
+
// synchronously published the receipt. A persistence/callback failure must
|
|
544
|
+
// leave this attempt attached and abortable rather than orphaning it.
|
|
545
|
+
let accepted = false;
|
|
546
|
+
try {
|
|
547
|
+
accepted = options.onDetachReceipt?.(receipt) === true;
|
|
548
|
+
} catch {
|
|
549
|
+
return false;
|
|
550
|
+
}
|
|
551
|
+
if (!accepted) return false;
|
|
552
|
+
detached = true;
|
|
553
|
+
return true;
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
// If the child emits a terminal assistant stop but never exits,
|
|
557
|
+
// give it a short grace period to flush naturally, then clean it up.
|
|
558
|
+
const FINAL_STOP_GRACE_MS = 1000;
|
|
559
|
+
const HARD_KILL_MS = 3000;
|
|
560
|
+
let childExited = false;
|
|
561
|
+
let forcedTerminationSignal = false;
|
|
562
|
+
let cleanTerminalAssistantStopReceived = false;
|
|
563
|
+
let agentSettledReceived = false;
|
|
564
|
+
let finalDrainTimer: NodeJS.Timeout | undefined;
|
|
565
|
+
let finalHardKillTimer: NodeJS.Timeout | undefined;
|
|
566
|
+
let watchdogTailTimer: NodeJS.Timeout | undefined;
|
|
567
|
+
let childWatchdogState: ChildWatchdogStateSnapshot | undefined;
|
|
568
|
+
const updateChildWatchdogState = (snapshot: ChildWatchdogStateSnapshot): void => {
|
|
569
|
+
childWatchdogState = snapshot;
|
|
570
|
+
result.watchdog = snapshot;
|
|
571
|
+
progress.watchdog = snapshot;
|
|
572
|
+
};
|
|
573
|
+
const clearWatchdogTailTimer = () => {
|
|
574
|
+
if (watchdogTailTimer) {
|
|
575
|
+
clearTimeout(watchdogTailTimer);
|
|
576
|
+
watchdogTailTimer = undefined;
|
|
577
|
+
}
|
|
578
|
+
};
|
|
579
|
+
const clearFinalDrainTimers = () => {
|
|
580
|
+
if (finalDrainTimer) {
|
|
581
|
+
clearTimeout(finalDrainTimer);
|
|
582
|
+
finalDrainTimer = undefined;
|
|
583
|
+
}
|
|
584
|
+
if (finalHardKillTimer) {
|
|
585
|
+
clearTimeout(finalHardKillTimer);
|
|
586
|
+
finalHardKillTimer = undefined;
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
const startFinalDrain = () => {
|
|
590
|
+
if (childWatchdogIsActive(childWatchdogState)) {
|
|
591
|
+
armWatchdogTail();
|
|
592
|
+
return;
|
|
593
|
+
}
|
|
594
|
+
if (childExited || finalDrainTimer || lifecycleFinished || processClosed) return;
|
|
595
|
+
finalDrainTimer = setTimeout(() => {
|
|
596
|
+
if (lifecycleFinished || processClosed) return;
|
|
597
|
+
const termSent = trySignalChild(proc, "SIGTERM");
|
|
598
|
+
if (!termSent) return;
|
|
599
|
+
forcedTerminationSignal = true;
|
|
600
|
+
if (!cleanTerminalAssistantStopReceived && !agentSettledReceived && !assistantError) {
|
|
601
|
+
result.error = result.error ?? `Subagent process did not exit within ${FINAL_STOP_GRACE_MS}ms after its terminal event. Forcing termination.`;
|
|
602
|
+
}
|
|
603
|
+
finalHardKillTimer = setTimeout(() => {
|
|
604
|
+
if (lifecycleFinished || processClosed) return;
|
|
605
|
+
forcedTerminationSignal = trySignalChild(proc, "SIGKILL") || forcedTerminationSignal;
|
|
606
|
+
}, HARD_KILL_MS);
|
|
607
|
+
finalHardKillTimer.unref?.();
|
|
608
|
+
}, FINAL_STOP_GRACE_MS);
|
|
609
|
+
finalDrainTimer.unref?.();
|
|
610
|
+
};
|
|
611
|
+
function armWatchdogTail(): void {
|
|
612
|
+
if ((!cleanTerminalAssistantStopReceived && !agentSettledReceived) || watchdogTailTimer || lifecycleFinished || processClosed) return;
|
|
613
|
+
watchdogTailTimer = setTimeout(() => {
|
|
614
|
+
watchdogTailTimer = undefined;
|
|
615
|
+
updateChildWatchdogState({
|
|
616
|
+
phase: "stale",
|
|
617
|
+
seq: (childWatchdogState?.seq ?? 0) + 1,
|
|
618
|
+
lastUpdate: Date.now(),
|
|
619
|
+
followUpPending: false,
|
|
620
|
+
reason: "child watchdog tail timeout",
|
|
621
|
+
timedOut: true,
|
|
622
|
+
});
|
|
623
|
+
startFinalDrain();
|
|
624
|
+
fireUpdate();
|
|
625
|
+
}, childWatchdog?.watchdogTailTimeoutMs ?? 120_000);
|
|
626
|
+
watchdogTailTimer.unref?.();
|
|
627
|
+
}
|
|
628
|
+
const applyChildLifecycle = (action: ChildLifecycleAction): void => {
|
|
629
|
+
if (action === "cancel-drain") {
|
|
630
|
+
clearFinalDrainTimers();
|
|
631
|
+
clearWatchdogTailTimer();
|
|
632
|
+
return;
|
|
633
|
+
}
|
|
634
|
+
if (action === "start-drain") startFinalDrain();
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
const unsubscribeIntercomDetach = options.intercomEvents?.on?.(INTERCOM_DETACH_REQUEST_EVENT, (payload) => {
|
|
638
|
+
if (!options.allowIntercomDetach || processClosed) return;
|
|
639
|
+
if (!payload || typeof payload !== "object") return;
|
|
640
|
+
const event = payload as { requestId?: unknown; runId?: unknown; agent?: unknown; childIndex?: unknown };
|
|
641
|
+
const requestId = event.requestId;
|
|
642
|
+
if (typeof requestId !== "string" || requestId.length === 0) return;
|
|
643
|
+
const hasRoute = event.runId !== undefined || event.agent !== undefined || event.childIndex !== undefined;
|
|
644
|
+
if (hasRoute) {
|
|
645
|
+
if (typeof event.runId === "string" && event.runId !== options.runId) return;
|
|
646
|
+
if (typeof event.agent === "string" && event.agent !== agent.name) return;
|
|
647
|
+
if (typeof event.childIndex === "number" && event.childIndex !== (options.index ?? 0)) return;
|
|
648
|
+
} else if (!intercomStarted) return;
|
|
649
|
+
const accepted = detachForeground("intercom coordination");
|
|
650
|
+
options.intercomEvents?.emit(INTERCOM_DETACH_RESPONSE_EVENT, { requestId, accepted, runId: options.runId, agent: agent.name, childIndex: options.index ?? 0 });
|
|
651
|
+
});
|
|
652
|
+
|
|
653
|
+
const finish = (code: number) => {
|
|
654
|
+
if (lifecycleFinished) return;
|
|
655
|
+
lifecycleFinished = true;
|
|
656
|
+
clearFinalDrainTimers();
|
|
657
|
+
clearWatchdogTailTimer();
|
|
658
|
+
clearStdioGuard();
|
|
659
|
+
clearTimeoutTimers();
|
|
660
|
+
clearTurnBudgetTimers();
|
|
661
|
+
if (protocolHardKillTimer) {
|
|
662
|
+
clearTimeout(protocolHardKillTimer);
|
|
663
|
+
protocolHardKillTimer = undefined;
|
|
664
|
+
}
|
|
665
|
+
if (activityTimer) {
|
|
666
|
+
clearInterval(activityTimer);
|
|
667
|
+
activityTimer = undefined;
|
|
668
|
+
}
|
|
669
|
+
unsubscribeIntercomDetach?.();
|
|
670
|
+
removeAbortListener?.();
|
|
671
|
+
removeInterruptListener?.();
|
|
672
|
+
resolve(code);
|
|
673
|
+
};
|
|
674
|
+
|
|
675
|
+
const drainPendingControlEvents = (): ControlEvent[] | undefined => {
|
|
676
|
+
if (pendingControlEvents.length === 0) return undefined;
|
|
677
|
+
const events = pendingControlEvents;
|
|
678
|
+
pendingControlEvents = [];
|
|
679
|
+
return events;
|
|
680
|
+
};
|
|
681
|
+
|
|
682
|
+
let activeLongRunningNotified = false;
|
|
683
|
+
let pendingToolResult: { tool: string; path?: string; mutates: boolean; startedAt?: number } | undefined;
|
|
684
|
+
const mutatingFailures = createMutatingFailureState();
|
|
685
|
+
const mutatingFailureWindowMs = 5 * 60_000;
|
|
686
|
+
const currentToolDurationMs = (now: number) => progress.currentToolStartedAt ? Math.max(0, now - progress.currentToolStartedAt) : undefined;
|
|
687
|
+
const emitNeedsAttention = (now: number, input: { message?: string; reason?: ControlEvent["reason"]; recentFailureSummary?: string; currentTool?: string; currentPath?: string; currentToolDurationMs?: number } = {}): boolean => {
|
|
688
|
+
if (!controlConfig.enabled) return false;
|
|
689
|
+
const previous = progress.activityState;
|
|
690
|
+
progress.activityState = "needs_attention";
|
|
691
|
+
const event = buildControlEvent({
|
|
692
|
+
type: "needs_attention",
|
|
693
|
+
from: previous,
|
|
694
|
+
to: "needs_attention",
|
|
695
|
+
runId: options.runId,
|
|
696
|
+
agent: agent.name,
|
|
697
|
+
index: options.index,
|
|
698
|
+
ts: now,
|
|
699
|
+
lastActivityAt: progress.lastActivityAt,
|
|
700
|
+
message: input.message,
|
|
701
|
+
reason: input.reason ?? "idle",
|
|
702
|
+
turns: result.usage.turns,
|
|
703
|
+
tokens: progress.tokens,
|
|
704
|
+
toolCount: progress.toolCount,
|
|
705
|
+
currentTool: input.currentTool ?? progress.currentTool,
|
|
706
|
+
currentToolDurationMs: input.currentToolDurationMs ?? currentToolDurationMs(now),
|
|
707
|
+
currentPath: input.currentPath ?? progress.currentPath,
|
|
708
|
+
recentFailureSummary: input.recentFailureSummary,
|
|
709
|
+
});
|
|
710
|
+
emitControlEvent(event);
|
|
711
|
+
return previous !== "needs_attention";
|
|
712
|
+
};
|
|
713
|
+
const emitActiveLongRunning = (now: number, reason: ControlEvent["reason"]): boolean => {
|
|
714
|
+
if (!controlConfig.enabled || activeLongRunningNotified || progress.activityState === "needs_attention") return false;
|
|
715
|
+
activeLongRunningNotified = true;
|
|
716
|
+
const previous = progress.activityState;
|
|
717
|
+
progress.activityState = "active_long_running";
|
|
718
|
+
emitControlEvent(buildControlEvent({
|
|
719
|
+
type: "active_long_running",
|
|
720
|
+
from: previous,
|
|
721
|
+
to: "active_long_running",
|
|
722
|
+
runId: options.runId,
|
|
723
|
+
agent: agent.name,
|
|
724
|
+
index: options.index,
|
|
725
|
+
ts: now,
|
|
726
|
+
message: `${agent.name} is still active but long-running`,
|
|
727
|
+
reason,
|
|
728
|
+
turns: result.usage.turns,
|
|
729
|
+
tokens: progress.tokens,
|
|
730
|
+
toolCount: progress.toolCount,
|
|
731
|
+
currentTool: progress.currentTool,
|
|
732
|
+
currentToolDurationMs: currentToolDurationMs(now),
|
|
733
|
+
currentPath: progress.currentPath,
|
|
734
|
+
elapsedMs: now - startTime,
|
|
735
|
+
}));
|
|
736
|
+
return true;
|
|
737
|
+
};
|
|
738
|
+
const requestTurnBudgetAbort = (turnCount: number) => {
|
|
739
|
+
const budget = options.turnBudget;
|
|
740
|
+
if (!budget || result.timedOut || result.turnBudgetExceeded || interruptedByControl || processClosed || lifecycleFinished) return;
|
|
741
|
+
const message = turnBudgetExceededMessage(budget, turnCount);
|
|
742
|
+
result.turnBudgetExceeded = true;
|
|
743
|
+
result.wrapUpRequested = true;
|
|
744
|
+
result.turnBudget = turnBudgetState(budget, turnCount, true);
|
|
745
|
+
result.error = message;
|
|
746
|
+
result.finalOutput = message;
|
|
747
|
+
progress.status = "failed";
|
|
748
|
+
progress.error = message;
|
|
749
|
+
progress.durationMs = Date.now() - startTime;
|
|
750
|
+
fireUpdate();
|
|
751
|
+
trySignalChild(proc, "SIGINT");
|
|
752
|
+
turnBudgetTerminationTimer = setTimeout(() => {
|
|
753
|
+
if (processClosed || lifecycleFinished || result.timedOut) return;
|
|
754
|
+
trySignalChild(proc, "SIGTERM");
|
|
755
|
+
}, 1000);
|
|
756
|
+
turnBudgetTerminationTimer.unref?.();
|
|
757
|
+
turnBudgetHardKillTimer = setTimeout(() => {
|
|
758
|
+
if (processClosed || lifecycleFinished || result.timedOut) return;
|
|
759
|
+
trySignalChild(proc, "SIGKILL");
|
|
760
|
+
}, 4000);
|
|
761
|
+
turnBudgetHardKillTimer.unref?.();
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
const updateTurnBudget = (turnCount: number, terminalAssistantStop: boolean, toolWorkActiveOrStarting: boolean) => {
|
|
765
|
+
const budget = options.turnBudget;
|
|
766
|
+
if (!budget || result.timedOut || result.turnBudgetExceeded) return;
|
|
767
|
+
if (turnCount < budget.maxTurns) {
|
|
768
|
+
result.turnBudget = { ...budget, outcome: "within-budget", turnCount };
|
|
769
|
+
return;
|
|
770
|
+
}
|
|
771
|
+
if (!turnBudgetSoftReached) {
|
|
772
|
+
turnBudgetSoftReached = true;
|
|
773
|
+
result.wrapUpRequested = true;
|
|
774
|
+
appendRecentOutput(progress, [turnBudgetSoftNote(budget, turnCount)]);
|
|
775
|
+
}
|
|
776
|
+
const decision = turnBudgetDecision(budget, turnCount, terminalAssistantStop, toolWorkActiveOrStarting, options.enforceHardTurnLimit);
|
|
777
|
+
if (decision === "defer") {
|
|
778
|
+
result.turnBudget = turnBudgetDeferredState(
|
|
779
|
+
budget,
|
|
780
|
+
turnCount,
|
|
781
|
+
result.turnBudget?.terminationDeferredAtTurn,
|
|
782
|
+
);
|
|
783
|
+
return;
|
|
784
|
+
}
|
|
785
|
+
result.turnBudget = turnBudgetState(budget, turnCount, false);
|
|
786
|
+
if (decision === "abort") requestTurnBudgetAbort(turnCount);
|
|
787
|
+
};
|
|
788
|
+
|
|
789
|
+
const updateActivityState = (now: number): boolean => {
|
|
790
|
+
if (!controlConfig.enabled) return false;
|
|
791
|
+
const idleState = deriveActivityState({
|
|
792
|
+
config: controlConfig,
|
|
793
|
+
startedAt: startTime,
|
|
794
|
+
lastActivityAt: progress.lastActivityAt,
|
|
795
|
+
currentTool: progress.currentTool,
|
|
796
|
+
now,
|
|
797
|
+
});
|
|
798
|
+
if (idleState === "needs_attention") {
|
|
799
|
+
return progress.activityState === "needs_attention" ? false : emitNeedsAttention(now);
|
|
800
|
+
}
|
|
801
|
+
const activeReason = nextLongRunningTrigger(controlConfig, {
|
|
802
|
+
startedAt: startTime,
|
|
803
|
+
now,
|
|
804
|
+
turns: result.usage.turns,
|
|
805
|
+
tokens: progress.tokens,
|
|
806
|
+
});
|
|
807
|
+
return activeReason ? emitActiveLongRunning(now, activeReason) : false;
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
const emitUpdateSnapshot = (text: string) => {
|
|
812
|
+
if (!options.onUpdate || processClosed) return;
|
|
813
|
+
const progressSnapshot = snapshotProgress(progress);
|
|
814
|
+
const resultSnapshot = snapshotStreamResult(result, progressSnapshot);
|
|
815
|
+
const controlEvents = drainPendingControlEvents();
|
|
816
|
+
options.onUpdate({
|
|
817
|
+
content: [{ type: "text", text }],
|
|
818
|
+
details: {
|
|
819
|
+
mode: "single",
|
|
820
|
+
results: [resultSnapshot],
|
|
821
|
+
progress: [progressSnapshot],
|
|
822
|
+
controlEvents,
|
|
823
|
+
},
|
|
824
|
+
});
|
|
825
|
+
};
|
|
826
|
+
|
|
827
|
+
const fireUpdate = () => {
|
|
828
|
+
if (!options.onUpdate || processClosed) return;
|
|
829
|
+
progress.durationMs = Date.now() - startTime;
|
|
830
|
+
const output = (result.timedOut || result.turnBudgetExceeded) && result.finalOutput ? result.finalOutput : getFinalOutput(result.messages ?? []);
|
|
831
|
+
emitUpdateSnapshot(output || "(running...)");
|
|
832
|
+
};
|
|
833
|
+
|
|
834
|
+
const rawStdoutTail = createBoundedByteTail();
|
|
835
|
+
const processLine = (line: string) => {
|
|
836
|
+
if (!line.trim()) return;
|
|
837
|
+
jsonlWriter.writeLine(line);
|
|
838
|
+
let evt: { type?: string; message?: Message; toolName?: string; args?: unknown; willRetry?: unknown };
|
|
839
|
+
try {
|
|
840
|
+
evt = JSON.parse(line) as { type?: string; message?: Message; toolName?: string; args?: unknown; willRetry?: unknown };
|
|
841
|
+
} catch {
|
|
842
|
+
rawStdoutTail.push(`${line}\n`);
|
|
843
|
+
shared.transcriptWriter?.writeStdoutLine(line);
|
|
844
|
+
// Non-JSON stdout lines are expected; only structured events are parsed.
|
|
845
|
+
return;
|
|
846
|
+
}
|
|
847
|
+
shared.transcriptWriter?.writeChildEvent(evt);
|
|
848
|
+
if (evt.type === "agent_settled") agentSettledReceived = true;
|
|
849
|
+
applyChildLifecycle(projectChildLifecycle(evt));
|
|
850
|
+
|
|
851
|
+
if (isChildWatchdogStatusEvent(evt)) {
|
|
852
|
+
if (!childWatchdog) return;
|
|
853
|
+
const next = acceptChildWatchdogEvent({
|
|
854
|
+
current: childWatchdogState,
|
|
855
|
+
event: evt,
|
|
856
|
+
runId: options.runId,
|
|
857
|
+
agent: agent.name,
|
|
858
|
+
childIndex: options.index ?? 0,
|
|
859
|
+
});
|
|
860
|
+
if (!next) return;
|
|
861
|
+
updateChildWatchdogState(next);
|
|
862
|
+
if (childWatchdogIsActive(next)) {
|
|
863
|
+
clearFinalDrainTimers();
|
|
864
|
+
armWatchdogTail();
|
|
865
|
+
} else {
|
|
866
|
+
clearWatchdogTailTimer();
|
|
867
|
+
if (cleanTerminalAssistantStopReceived || agentSettledReceived) startFinalDrain();
|
|
868
|
+
}
|
|
869
|
+
fireUpdate();
|
|
870
|
+
return;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
const now = Date.now();
|
|
874
|
+
progress.durationMs = now - startTime;
|
|
875
|
+
progress.lastActivityAt = now;
|
|
876
|
+
updateActivityState(now);
|
|
877
|
+
|
|
878
|
+
if (evt.type === "tool_execution_start") {
|
|
879
|
+
const toolArgs = evt.args && typeof evt.args === "object" && !Array.isArray(evt.args)
|
|
880
|
+
? evt.args as Record<string, unknown>
|
|
881
|
+
: {};
|
|
882
|
+
if (options.structuredOutput && evt.toolName === "structured_output") {
|
|
883
|
+
structuredOutputToolInvoked = true;
|
|
884
|
+
structuredOutputMessageStartIndex = result.messages?.length ?? 0;
|
|
885
|
+
}
|
|
886
|
+
if (options.allowIntercomDetach && (evt.toolName === "intercom" || evt.toolName === "contact_supervisor")) {
|
|
887
|
+
intercomStarted = true;
|
|
888
|
+
}
|
|
889
|
+
progress.toolCount++;
|
|
890
|
+
if (options.toolBudget) {
|
|
891
|
+
result.toolBudget = toolBudgetState(options.toolBudget, progress.toolCount);
|
|
892
|
+
}
|
|
893
|
+
progress.currentTool = evt.toolName;
|
|
894
|
+
progress.currentToolArgs = extractToolArgsPreview(toolArgs);
|
|
895
|
+
progress.currentToolStartedAt = now;
|
|
896
|
+
progress.currentPath = resolveCurrentPath(evt.toolName, toolArgs);
|
|
897
|
+
const mutates = isMutatingTool(evt.toolName, toolArgs);
|
|
898
|
+
observedMutationAttempt = observedMutationAttempt || mutates;
|
|
899
|
+
pendingToolResult = { tool: evt.toolName ?? "tool", path: progress.currentPath, mutates, startedAt: now };
|
|
900
|
+
fireUpdate();
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
if (evt.type === "tool_execution_end") {
|
|
904
|
+
if (progress.currentTool) {
|
|
905
|
+
progress.recentTools.push({
|
|
906
|
+
tool: progress.currentTool,
|
|
907
|
+
args: progress.currentToolArgs || "",
|
|
908
|
+
endMs: now,
|
|
909
|
+
});
|
|
910
|
+
}
|
|
911
|
+
progress.currentTool = undefined;
|
|
912
|
+
progress.currentToolArgs = undefined;
|
|
913
|
+
progress.currentToolStartedAt = undefined;
|
|
914
|
+
progress.currentPath = undefined;
|
|
915
|
+
fireUpdate();
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
if (evt.type === "message_end" && evt.message) {
|
|
919
|
+
result.messages!.push(evt.message);
|
|
920
|
+
if (evt.message.role === "assistant") {
|
|
921
|
+
result.usage.turns++;
|
|
922
|
+
progress.turnCount = result.usage.turns;
|
|
923
|
+
const stopReason = (evt.message as { stopReason?: string }).stopReason;
|
|
924
|
+
const toolCalls = Array.isArray(evt.message.content)
|
|
925
|
+
? evt.message.content.filter((part) => (part as { type?: string }).type === "toolCall")
|
|
926
|
+
: [];
|
|
927
|
+
const hasToolCall = toolCalls.length > 0;
|
|
928
|
+
const terminalAssistantStop = stopReason === "stop" && !hasToolCall;
|
|
929
|
+
const terminalStructuredOutputCall = Boolean(options.structuredOutput)
|
|
930
|
+
&& toolCalls.length === 1
|
|
931
|
+
&& (toolCalls[0] as { name?: string }).name === "structured_output";
|
|
932
|
+
updateTurnBudget(result.usage.turns, terminalAssistantStop || terminalStructuredOutputCall, hasToolCall || Boolean(progress.currentTool));
|
|
933
|
+
const u = evt.message.usage;
|
|
934
|
+
if (u) {
|
|
935
|
+
result.usage.input += u.input || 0;
|
|
936
|
+
result.usage.output += u.output || 0;
|
|
937
|
+
result.usage.cacheRead += u.cacheRead || 0;
|
|
938
|
+
result.usage.cacheWrite += u.cacheWrite || 0;
|
|
939
|
+
result.usage.cost += u.cost?.total || 0;
|
|
940
|
+
progress.tokens = result.usage.input + result.usage.output;
|
|
941
|
+
progress.inputTokens = result.usage.input;
|
|
942
|
+
progress.outputTokens = result.usage.output;
|
|
943
|
+
}
|
|
944
|
+
if (evt.message.model) {
|
|
945
|
+
progress.model = evt.message.model;
|
|
946
|
+
if (!result.model) result.model = evt.message.model;
|
|
947
|
+
}
|
|
948
|
+
if (evt.message.errorMessage) assistantError = evt.message.errorMessage;
|
|
949
|
+
const assistantText = extractTextFromContent(evt.message.content);
|
|
950
|
+
appendRecentOutput(progress, assistantText.split("\n").slice(-10));
|
|
951
|
+
// Final assistant message: start the exit drain window.
|
|
952
|
+
if (terminalAssistantStop) {
|
|
953
|
+
if (!evt.message.errorMessage && assistantText.trim()) assistantError = undefined;
|
|
954
|
+
cleanTerminalAssistantStopReceived ||= !evt.message.errorMessage;
|
|
955
|
+
applyChildLifecycle(projectChildLifecycle(evt, true));
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
updateActivityState(now);
|
|
959
|
+
fireUpdate();
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
if (evt.type === "tool_result_end" && evt.message) {
|
|
963
|
+
result.messages!.push(evt.message);
|
|
964
|
+
const resultText = extractTextFromContent(evt.message.content);
|
|
965
|
+
if (options.toolBudget && pendingToolResult && resultText.includes("Tool budget hard limit reached")) {
|
|
966
|
+
result.toolBudgetBlocked = true;
|
|
967
|
+
result.toolBudget = toolBudgetState(options.toolBudget, progress.toolCount, pendingToolResult.tool);
|
|
968
|
+
}
|
|
969
|
+
appendRecentOutput(progress, resultText.split("\n").slice(-10));
|
|
970
|
+
const toolSnapshot = pendingToolResult;
|
|
971
|
+
pendingToolResult = undefined;
|
|
972
|
+
if (toolSnapshot?.mutates && didMutatingToolFail(resultText)) {
|
|
973
|
+
recordMutatingFailure(mutatingFailures, {
|
|
974
|
+
tool: toolSnapshot.tool,
|
|
975
|
+
path: toolSnapshot.path,
|
|
976
|
+
error: resultText.split("\n").find((line) => line.trim())?.trim().slice(0, 180) ?? "mutating tool failed",
|
|
977
|
+
ts: now,
|
|
978
|
+
}, mutatingFailureWindowMs);
|
|
979
|
+
if (shouldEscalateMutatingFailures(mutatingFailures, controlConfig.failedToolAttemptsBeforeAttention)) {
|
|
980
|
+
emitNeedsAttention(now, {
|
|
981
|
+
message: `${agent.name} needs attention after repeated mutating tool failures`,
|
|
982
|
+
reason: "tool_failures",
|
|
983
|
+
currentTool: toolSnapshot.tool,
|
|
984
|
+
currentPath: toolSnapshot.path,
|
|
985
|
+
currentToolDurationMs: toolSnapshot.startedAt ? Math.max(0, now - toolSnapshot.startedAt) : undefined,
|
|
986
|
+
recentFailureSummary: summarizeRecentMutatingFailures(mutatingFailures),
|
|
987
|
+
});
|
|
988
|
+
}
|
|
989
|
+
} else if (toolSnapshot?.mutates) {
|
|
990
|
+
resetMutatingFailureState(mutatingFailures);
|
|
991
|
+
}
|
|
992
|
+
fireUpdate();
|
|
993
|
+
}
|
|
994
|
+
};
|
|
995
|
+
|
|
996
|
+
fireUpdate();
|
|
997
|
+
if (controlConfig.enabled || options.onUpdate) {
|
|
998
|
+
activityTimer = setInterval(() => {
|
|
999
|
+
if (processClosed || lifecycleFinished) {
|
|
1000
|
+
return;
|
|
1001
|
+
}
|
|
1002
|
+
updateActivityState(Date.now());
|
|
1003
|
+
fireUpdate();
|
|
1004
|
+
}, 1000);
|
|
1005
|
+
activityTimer.unref?.();
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
if (attemptTimeout) {
|
|
1009
|
+
timeoutTimer = setTimeout(() => {
|
|
1010
|
+
if (processClosed || lifecycleFinished || interruptedByControl) return;
|
|
1011
|
+
result.timedOut = true;
|
|
1012
|
+
result.error = attemptTimeout.message;
|
|
1013
|
+
result.finalOutput = attemptTimeout.message;
|
|
1014
|
+
progress.status = "failed";
|
|
1015
|
+
progress.error = attemptTimeout.message;
|
|
1016
|
+
progress.durationMs = Date.now() - startTime;
|
|
1017
|
+
fireUpdate();
|
|
1018
|
+
trySignalChild(proc, "SIGINT");
|
|
1019
|
+
timeoutTerminationTimer = setTimeout(() => {
|
|
1020
|
+
if (processClosed || lifecycleFinished) return;
|
|
1021
|
+
trySignalChild(proc, "SIGTERM");
|
|
1022
|
+
}, 1000);
|
|
1023
|
+
timeoutTerminationTimer.unref?.();
|
|
1024
|
+
timeoutHardKillTimer = setTimeout(() => {
|
|
1025
|
+
if (processClosed || lifecycleFinished) return;
|
|
1026
|
+
trySignalChild(proc, "SIGKILL");
|
|
1027
|
+
}, 4000);
|
|
1028
|
+
timeoutHardKillTimer.unref?.();
|
|
1029
|
+
}, attemptTimeout.remainingMs);
|
|
1030
|
+
timeoutTimer.unref?.();
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
const stderrTail = createBoundedByteTail();
|
|
1034
|
+
const failProtocol = (limit: ProtocolOutputLimit): void => {
|
|
1035
|
+
if (result.protocolError) return;
|
|
1036
|
+
result.protocolError = limit;
|
|
1037
|
+
result.error = formatProtocolOutputLimit(limit);
|
|
1038
|
+
progress.status = "failed";
|
|
1039
|
+
progress.error = result.error;
|
|
1040
|
+
progress.durationMs = Date.now() - startTime;
|
|
1041
|
+
fireUpdate();
|
|
1042
|
+
if (!childExited) {
|
|
1043
|
+
trySignalChild(proc, "SIGTERM");
|
|
1044
|
+
protocolHardKillTimer = setTimeout(() => {
|
|
1045
|
+
if (!childExited) trySignalChild(proc, "SIGKILL");
|
|
1046
|
+
}, 3000);
|
|
1047
|
+
protocolHardKillTimer.unref?.();
|
|
1048
|
+
}
|
|
1049
|
+
};
|
|
1050
|
+
const stdoutReader = createBoundedLineReader({
|
|
1051
|
+
oversizedLineProjector: PI_AGGREGATE_EVENT_PROJECTOR,
|
|
1052
|
+
onLine: processLine,
|
|
1053
|
+
onLimit: failProtocol,
|
|
1054
|
+
});
|
|
1055
|
+
const stderrReader = createBoundedLineReader({
|
|
1056
|
+
stream: "stderr",
|
|
1057
|
+
maxPendingLineBytes: MAX_CHILD_STDERR_BYTES,
|
|
1058
|
+
onLine: (line) => shared.transcriptWriter?.writeStderrLine(line),
|
|
1059
|
+
onLimit: (limit) => shared.transcriptWriter?.writeStderrLine(formatProtocolOutputLimit(limit)),
|
|
1060
|
+
});
|
|
1061
|
+
|
|
1062
|
+
const clearStdioGuard = attachPostExitStdioGuard(proc, { idleMs: 2000, hardMs: 8000 });
|
|
1063
|
+
proc.stdout.on("data", (chunk: Buffer) => stdoutReader.push(chunk));
|
|
1064
|
+
proc.stderr.on("data", (chunk: Buffer) => {
|
|
1065
|
+
stderrTail.push(chunk);
|
|
1066
|
+
stderrReader.push(chunk);
|
|
1067
|
+
});
|
|
1068
|
+
proc.on("exit", () => {
|
|
1069
|
+
childExited = true;
|
|
1070
|
+
clearFinalDrainTimers();
|
|
1071
|
+
});
|
|
1072
|
+
proc.on("close", (code, signal) => {
|
|
1073
|
+
if (lifecycleFinished) return;
|
|
1074
|
+
processClosed = true;
|
|
1075
|
+
clearFinalDrainTimers();
|
|
1076
|
+
clearStdioGuard();
|
|
1077
|
+
void jsonlWriter.close().catch(() => {
|
|
1078
|
+
// JSONL artifact flush is best effort.
|
|
1079
|
+
});
|
|
1080
|
+
const toolDiagnosticError = readChildToolDiagnosticError(toolDiagnosticPath);
|
|
1081
|
+
result.runtimeAcknowledgedExtensions = readRuntimeAcknowledgedExtensions(runtimeAcknowledgedExtensionsPath);
|
|
1082
|
+
cleanupTempDir(tempDir);
|
|
1083
|
+
stdoutReader.end();
|
|
1084
|
+
stderrReader.end();
|
|
1085
|
+
const stderr = stderrTail.text();
|
|
1086
|
+
const rawStdout = rawStdoutTail.text();
|
|
1087
|
+
let closeError = result.error ?? toolDiagnosticError ?? assistantError;
|
|
1088
|
+
const forcedDrainAfterFinalSuccess = Boolean(forcedTerminationSignal || signal) && (cleanTerminalAssistantStopReceived || agentSettledReceived) && !closeError;
|
|
1089
|
+
if (signal) result.processSignal = signal;
|
|
1090
|
+
if (!closeError && isUnexplainedProcessSignal({
|
|
1091
|
+
processSignal: signal,
|
|
1092
|
+
interrupted: result.interrupted,
|
|
1093
|
+
timedOut: result.timedOut,
|
|
1094
|
+
stopped: result.stopped,
|
|
1095
|
+
turnBudgetExceeded: result.turnBudgetExceeded,
|
|
1096
|
+
forcedDrainAfterFinalSuccess,
|
|
1097
|
+
})) {
|
|
1098
|
+
closeError = formatProcessSignalError(signal!);
|
|
1099
|
+
}
|
|
1100
|
+
if (code !== 0 && rawStdout.trim() && !closeError && !forcedDrainAfterFinalSuccess) {
|
|
1101
|
+
closeError = rawStdout.trim();
|
|
1102
|
+
}
|
|
1103
|
+
if (code !== 0 && stderr.trim() && !closeError && !forcedDrainAfterFinalSuccess) {
|
|
1104
|
+
closeError = stderr.trim();
|
|
1105
|
+
}
|
|
1106
|
+
const finalCode = forcedDrainAfterFinalSuccess ? 0 : forcedTerminationSignal || signal ? (code ?? 1) : (code ?? 0);
|
|
1107
|
+
if (!result.error && closeError) result.error = closeError;
|
|
1108
|
+
finish(finalCode);
|
|
1109
|
+
});
|
|
1110
|
+
proc.on("error", (error) => {
|
|
1111
|
+
if (lifecycleFinished) return;
|
|
1112
|
+
processClosed = true;
|
|
1113
|
+
clearFinalDrainTimers();
|
|
1114
|
+
clearStdioGuard();
|
|
1115
|
+
void jsonlWriter.close().catch(() => {
|
|
1116
|
+
// JSONL artifact flush is best effort.
|
|
1117
|
+
});
|
|
1118
|
+
cleanupTempDir(tempDir);
|
|
1119
|
+
stdoutReader.end();
|
|
1120
|
+
stderrReader.end();
|
|
1121
|
+
if (!result.error) {
|
|
1122
|
+
result.error = error instanceof Error ? error.message : String(error);
|
|
1123
|
+
}
|
|
1124
|
+
finish(1);
|
|
1125
|
+
});
|
|
1126
|
+
|
|
1127
|
+
if (options.signal) {
|
|
1128
|
+
const kill = () => {
|
|
1129
|
+
if (processClosed || lifecycleFinished) return;
|
|
1130
|
+
proc.kill("SIGTERM");
|
|
1131
|
+
setTimeout(() => !proc.killed && proc.kill("SIGKILL"), 3000);
|
|
1132
|
+
};
|
|
1133
|
+
if (options.signal.aborted) kill();
|
|
1134
|
+
else {
|
|
1135
|
+
options.signal.addEventListener("abort", kill, { once: true });
|
|
1136
|
+
removeAbortListener = () => options.signal?.removeEventListener("abort", kill);
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
if (options.interruptSignal) {
|
|
1141
|
+
const interrupt = () => {
|
|
1142
|
+
if (processClosed || lifecycleFinished) return;
|
|
1143
|
+
if (result.timedOut) return;
|
|
1144
|
+
interruptedByControl = true;
|
|
1145
|
+
clearTimeoutTimers();
|
|
1146
|
+
progress.status = "running";
|
|
1147
|
+
progress.durationMs = Date.now() - startTime;
|
|
1148
|
+
result.interrupted = true;
|
|
1149
|
+
result.finalOutput = "Interrupted. Waiting for explicit next action.";
|
|
1150
|
+
progress.activityState = undefined;
|
|
1151
|
+
fireUpdate();
|
|
1152
|
+
trySignalChild(proc, "SIGINT");
|
|
1153
|
+
setTimeout(() => {
|
|
1154
|
+
if (lifecycleFinished || processClosed) return;
|
|
1155
|
+
trySignalChild(proc, "SIGTERM");
|
|
1156
|
+
}, 1000).unref?.();
|
|
1157
|
+
};
|
|
1158
|
+
if (options.interruptSignal.aborted) interrupt();
|
|
1159
|
+
else {
|
|
1160
|
+
options.interruptSignal.addEventListener("abort", interrupt, { once: true });
|
|
1161
|
+
removeInterruptListener = () => options.interruptSignal?.removeEventListener("abort", interrupt);
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
// Publish only after every callback and cleanup guard captured by detach or
|
|
1166
|
+
// later lifecycle events has initialized. Consumers may invoke synchronously.
|
|
1167
|
+
try {
|
|
1168
|
+
options.onDetachReady?.((reason = "user request") => detachForeground(reason));
|
|
1169
|
+
} catch (error) {
|
|
1170
|
+
// A consumer callback is advisory. Keep the child attached and observable
|
|
1171
|
+
// rather than rejecting this attempt and orphaning its live process.
|
|
1172
|
+
appendRecentOutput(progress, [`Foreground detach callback failed: ${error instanceof Error ? error.message : String(error)}`]);
|
|
1173
|
+
}
|
|
1174
|
+
});
|
|
1175
|
+
result.exitCode = exitCode;
|
|
1176
|
+
if (interruptedByControl) {
|
|
1177
|
+
result.exitCode = 0;
|
|
1178
|
+
result.interrupted = true;
|
|
1179
|
+
result.error = undefined;
|
|
1180
|
+
result.finalOutput = result.finalOutput || "Interrupted. Waiting for explicit next action.";
|
|
1181
|
+
result.controlEvents = allControlEvents.length ? allControlEvents : undefined;
|
|
1182
|
+
progress.activityState = undefined;
|
|
1183
|
+
progress.durationMs = Date.now() - startTime;
|
|
1184
|
+
result.progressSummary = {
|
|
1185
|
+
toolCount: progress.toolCount,
|
|
1186
|
+
tokens: progress.tokens,
|
|
1187
|
+
durationMs: progress.durationMs,
|
|
1188
|
+
};
|
|
1189
|
+
return result;
|
|
1190
|
+
}
|
|
1191
|
+
if (result.error && result.exitCode === 0) {
|
|
1192
|
+
result.exitCode = 1;
|
|
1193
|
+
}
|
|
1194
|
+
let validatedStructuredOutput = false;
|
|
1195
|
+
if (options.structuredOutput && result.exitCode === 0 && !result.error) {
|
|
1196
|
+
result.structuredOutputSchemaPath = options.structuredOutput.schemaPath;
|
|
1197
|
+
result.structuredOutputPath = options.structuredOutput.outputPath;
|
|
1198
|
+
if (!structuredOutputToolInvoked) {
|
|
1199
|
+
result.exitCode = 1;
|
|
1200
|
+
result.error = MISSING_STRUCTURED_OUTPUT_CALL_ERROR;
|
|
1201
|
+
result.structuredOutputFailed = true;
|
|
1202
|
+
} else {
|
|
1203
|
+
const structured = await readStructuredOutput({
|
|
1204
|
+
schema: options.structuredOutput.schema,
|
|
1205
|
+
schemaPath: options.structuredOutput.schemaPath,
|
|
1206
|
+
outputPath: options.structuredOutput.outputPath,
|
|
1207
|
+
});
|
|
1208
|
+
if (structured.error) {
|
|
1209
|
+
result.exitCode = 1;
|
|
1210
|
+
result.error = structured.error;
|
|
1211
|
+
result.structuredOutputFailed = true;
|
|
1212
|
+
} else {
|
|
1213
|
+
result.structuredOutput = structured.value;
|
|
1214
|
+
validatedStructuredOutput = true;
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
if (result.exitCode === 0 && !result.error) {
|
|
1219
|
+
const messages = result.messages ?? [];
|
|
1220
|
+
const finalText = getFinalOutput(messages);
|
|
1221
|
+
const errorMessages = validatedStructuredOutput
|
|
1222
|
+
? messages.slice(structuredOutputMessageStartIndex ?? messages.length)
|
|
1223
|
+
: messages;
|
|
1224
|
+
const errInfo = detectSubagentError(errorMessages);
|
|
1225
|
+
const missingOutput = !finalText?.trim() && !validatedStructuredOutput;
|
|
1226
|
+
if (missingOutput && (!errInfo.hasError || hasEmptyTerminalAssistantResponse(messages))) {
|
|
1227
|
+
result.exitCode = 1;
|
|
1228
|
+
result.error = "Subagent produced no output (possible model cold-start or empty response).";
|
|
1229
|
+
} else if (errInfo.hasError) {
|
|
1230
|
+
result.exitCode = errInfo.exitCode ?? 1;
|
|
1231
|
+
result.error = errInfo.details
|
|
1232
|
+
? `${errInfo.errorType} failed (exit ${errInfo.exitCode}): ${errInfo.details}`
|
|
1233
|
+
: `${errInfo.errorType} failed with exit code ${errInfo.exitCode}`;
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
progress.status = result.exitCode === 0 ? "completed" : "failed";
|
|
1238
|
+
progress.durationMs = Date.now() - startTime;
|
|
1239
|
+
if (result.error) {
|
|
1240
|
+
progress.error = result.error;
|
|
1241
|
+
if (progress.currentTool) {
|
|
1242
|
+
progress.failedTool = progress.currentTool;
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
result.progressSummary = {
|
|
1247
|
+
toolCount: progress.toolCount,
|
|
1248
|
+
tokens: progress.tokens,
|
|
1249
|
+
durationMs: progress.durationMs,
|
|
1250
|
+
};
|
|
1251
|
+
|
|
1252
|
+
const acceptanceOutput = getFinalOutput(result.messages ?? []);
|
|
1253
|
+
let fullOutput = stripAcceptanceReport(acceptanceOutput);
|
|
1254
|
+
if (!fullOutput.trim() && result.structuredOutput !== undefined) fullOutput = JSON.stringify(result.structuredOutput, null, 2);
|
|
1255
|
+
result.outputState = fullOutput.trim() || result.structuredOutput !== undefined ? "present" : "absent";
|
|
1256
|
+
if (result.timedOut) {
|
|
1257
|
+
const timeoutMessage = formatTimeoutMessage(options.timeoutMs ?? 0);
|
|
1258
|
+
fullOutput = fullOutput.trim()
|
|
1259
|
+
? `${timeoutMessage}\n\nPartial output before timeout:\n${fullOutput}`
|
|
1260
|
+
: timeoutMessage;
|
|
1261
|
+
} else if (result.turnBudgetExceeded && result.turnBudget) {
|
|
1262
|
+
fullOutput = formatTurnBudgetOutput(turnBudgetExceededMessage(result.turnBudget, result.turnBudget.turnCount), fullOutput);
|
|
1263
|
+
} else if (result.turnBudget?.outcome === "termination-deferred") {
|
|
1264
|
+
const note = turnBudgetDeferredNote(result.turnBudget, result.turnBudget.terminationDeferredAtTurn ?? result.turnBudget.turnCount);
|
|
1265
|
+
fullOutput = fullOutput.trim() ? `${note}\n\n${fullOutput}` : note;
|
|
1266
|
+
} else if (result.wrapUpRequested && result.turnBudget?.outcome === "wrap-up-requested") {
|
|
1267
|
+
const note = turnBudgetSoftNote(result.turnBudget, result.turnBudget.wrapUpRequestedAtTurn ?? result.turnBudget.turnCount);
|
|
1268
|
+
fullOutput = fullOutput.trim() ? `${note}\n\n${fullOutput}` : note;
|
|
1269
|
+
}
|
|
1270
|
+
const completionGuardEnabled = isAgentContractV1(options.agentContract) ? agent.completionGuard === true : agent.completionGuard !== false;
|
|
1271
|
+
const completionGuard = result.exitCode === 0 && !result.error && completionGuardEnabled
|
|
1272
|
+
? evaluateCompletionMutationGuard({
|
|
1273
|
+
agent: agent.name,
|
|
1274
|
+
task: shared.originalTask ?? task,
|
|
1275
|
+
messages: result.messages ?? [],
|
|
1276
|
+
tools: agent.tools,
|
|
1277
|
+
mcpDirectTools: agent.mcpDirectTools,
|
|
1278
|
+
})
|
|
1279
|
+
: undefined;
|
|
1280
|
+
const completionGuardTriggered = completionGuard?.triggered === true && !observedMutationAttempt;
|
|
1281
|
+
if (completionGuard) {
|
|
1282
|
+
result.effects = {
|
|
1283
|
+
...(result.effects ?? {}),
|
|
1284
|
+
fileMutation: {
|
|
1285
|
+
status: completionGuard.expectedMutation ? completionGuardTriggered ? "missing" : "observed" : "not-applicable",
|
|
1286
|
+
expected: completionGuard.expectedMutation,
|
|
1287
|
+
attempted: completionGuard.attemptedMutation || observedMutationAttempt,
|
|
1288
|
+
...(completionGuardTriggered ? { message: "Subagent completed without making edits for an implementation task." } : {}),
|
|
1289
|
+
},
|
|
1290
|
+
};
|
|
1291
|
+
}
|
|
1292
|
+
if (completionGuardTriggered && !isAgentContractV1(options.agentContract)) {
|
|
1293
|
+
result.exitCode = 1;
|
|
1294
|
+
result.error = "Subagent completed without making edits for an implementation task.\nIt appears to have returned planning or scratchpad output instead of applying changes.";
|
|
1295
|
+
progress.status = "failed";
|
|
1296
|
+
progress.error = result.error;
|
|
1297
|
+
emitControlEvent(buildControlEvent({
|
|
1298
|
+
from: progress.activityState,
|
|
1299
|
+
to: "needs_attention",
|
|
1300
|
+
runId: options.runId ?? agent.name,
|
|
1301
|
+
agent: agent.name,
|
|
1302
|
+
index: options.index,
|
|
1303
|
+
ts: Date.now(),
|
|
1304
|
+
message: `${agent.name} completed without making edits for an implementation task`,
|
|
1305
|
+
reason: "completion_guard",
|
|
1306
|
+
}));
|
|
1307
|
+
}
|
|
1308
|
+
if (options.outputPath && result.exitCode === 0) {
|
|
1309
|
+
const resolvedOutput = resolveSingleOutput(options.outputPath, fullOutput, shared.outputSnapshot);
|
|
1310
|
+
fullOutput = stripAcceptanceReport(resolvedOutput.fullOutput);
|
|
1311
|
+
result.savedOutputPath = resolvedOutput.savedPath;
|
|
1312
|
+
result.outputSaveError = resolvedOutput.saveError;
|
|
1313
|
+
if (resolvedOutput.savedPath) {
|
|
1314
|
+
result.outputReference = formatSavedOutputReference(resolvedOutput.savedPath, fullOutput);
|
|
1315
|
+
if (result.outputState === "absent") result.outputState = "unknown";
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
artifactOutputByResult.set(result, fullOutput);
|
|
1319
|
+
acceptanceOutputByResult.set(result, acceptanceOutput);
|
|
1320
|
+
result.outputMode = options.outputMode ?? "inline";
|
|
1321
|
+
result.finalOutput = options.outputMode === "file-only" && result.savedOutputPath && result.outputReference
|
|
1322
|
+
? result.outputReference.message
|
|
1323
|
+
: fullOutput;
|
|
1324
|
+
result.controlEvents = allControlEvents.length ? allControlEvents : undefined;
|
|
1325
|
+
if (options.onUpdate) {
|
|
1326
|
+
const finalText = result.finalOutput || result.error || "(no output)";
|
|
1327
|
+
const progressSnapshot = snapshotProgress(progress);
|
|
1328
|
+
const resultSnapshot = snapshotStreamResult(result, progressSnapshot);
|
|
1329
|
+
options.onUpdate({
|
|
1330
|
+
content: [{ type: "text", text: finalText }],
|
|
1331
|
+
details: {
|
|
1332
|
+
mode: "single",
|
|
1333
|
+
results: [resultSnapshot],
|
|
1334
|
+
progress: [progressSnapshot],
|
|
1335
|
+
controlEvents: allControlEvents.length ? allControlEvents : undefined,
|
|
1336
|
+
},
|
|
1337
|
+
});
|
|
1338
|
+
}
|
|
1339
|
+
return result;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* Run a subagent synchronously (blocking until complete)
|
|
1344
|
+
*/
|
|
1345
|
+
async function runSyncCompletion(
|
|
1346
|
+
runtimeCwd: string,
|
|
1347
|
+
agents: AgentConfig[],
|
|
1348
|
+
agentName: string,
|
|
1349
|
+
task: string,
|
|
1350
|
+
options: RunSyncOptions,
|
|
1351
|
+
): Promise<SingleResult> {
|
|
1352
|
+
options = {
|
|
1353
|
+
...options,
|
|
1354
|
+
capabilityCeiling: intersectSubagentCapabilityCeilings(options.capabilityCeiling ?? resolveCurrentSubagentCapabilityCeiling(options.parentSessionId), decodeSubagentCapabilityCeiling(process.env[SUBAGENT_CAPABILITY_CEILING_ENV])),
|
|
1355
|
+
};
|
|
1356
|
+
const agent = agents.find((a) => a.name === agentName);
|
|
1357
|
+
if (!agent) {
|
|
1358
|
+
return withRunContext({
|
|
1359
|
+
index: options.index ?? 0,
|
|
1360
|
+
agent: agentName,
|
|
1361
|
+
task,
|
|
1362
|
+
exitCode: 1,
|
|
1363
|
+
messages: [],
|
|
1364
|
+
usage: emptyUsage(),
|
|
1365
|
+
error: `Unknown agent: ${agentName}`,
|
|
1366
|
+
}, options.context);
|
|
1367
|
+
}
|
|
1368
|
+
try {
|
|
1369
|
+
assertAgentAllowedByCapabilityCeiling(agent.name, options.capabilityCeiling);
|
|
1370
|
+
} catch (error) {
|
|
1371
|
+
return withRunContext({
|
|
1372
|
+
index: options.index ?? 0,
|
|
1373
|
+
agent: agent.name,
|
|
1374
|
+
task,
|
|
1375
|
+
exitCode: 1,
|
|
1376
|
+
messages: [],
|
|
1377
|
+
usage: emptyUsage(),
|
|
1378
|
+
error: error instanceof Error ? error.message : String(error),
|
|
1379
|
+
...(options.capabilityCeiling ? { capabilityCeiling: options.capabilityCeiling } : {}),
|
|
1380
|
+
}, options.context);
|
|
1381
|
+
}
|
|
1382
|
+
const acceptanceErrors = validateAcceptanceInput(options.acceptance);
|
|
1383
|
+
if (acceptanceErrors.length > 0) {
|
|
1384
|
+
return withRunContext({
|
|
1385
|
+
index: options.index ?? 0,
|
|
1386
|
+
agent: agentName,
|
|
1387
|
+
task,
|
|
1388
|
+
exitCode: 1,
|
|
1389
|
+
messages: [],
|
|
1390
|
+
usage: emptyUsage(),
|
|
1391
|
+
error: acceptanceErrors.join(" "),
|
|
1392
|
+
}, options.context);
|
|
1393
|
+
}
|
|
1394
|
+
const outputModeValidationError = validateFileOnlyOutputMode(options.outputMode, options.outputPath, `Single run (${agentName})`);
|
|
1395
|
+
if (outputModeValidationError) {
|
|
1396
|
+
return withRunContext({
|
|
1397
|
+
index: options.index ?? 0,
|
|
1398
|
+
agent: agentName,
|
|
1399
|
+
task,
|
|
1400
|
+
exitCode: 1,
|
|
1401
|
+
messages: [],
|
|
1402
|
+
usage: emptyUsage(),
|
|
1403
|
+
outputMode: options.outputMode,
|
|
1404
|
+
error: outputModeValidationError,
|
|
1405
|
+
}, options.context);
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
const shareEnabled = options.share === true;
|
|
1409
|
+
const effectiveAcceptance = resolveEffectiveAcceptance({
|
|
1410
|
+
explicit: options.acceptance,
|
|
1411
|
+
agentName,
|
|
1412
|
+
acceptanceRole: agent.acceptanceRole,
|
|
1413
|
+
task,
|
|
1414
|
+
mode: options.acceptanceContext?.mode ?? "single",
|
|
1415
|
+
async: options.acceptanceContext?.async,
|
|
1416
|
+
dynamic: options.acceptanceContext?.dynamic,
|
|
1417
|
+
dynamicGroup: options.acceptanceContext?.dynamicGroup,
|
|
1418
|
+
agentContract: options.agentContract,
|
|
1419
|
+
});
|
|
1420
|
+
const acceptancePrompt = formatAcceptancePrompt(effectiveAcceptance, { reportOptional: isAgentContractV1(options.agentContract) });
|
|
1421
|
+
const taskWithAcceptance = acceptancePrompt ? `${task}\n${acceptancePrompt}` : task;
|
|
1422
|
+
const sessionEnabled = Boolean(options.sessionFile || options.sessionDir) || shareEnabled;
|
|
1423
|
+
if (options.context === "fork" && options.sessionFile && existsSync(options.sessionFile)) {
|
|
1424
|
+
alignForkedSessionCwd(options.sessionFile, options.cwd ?? runtimeCwd);
|
|
1425
|
+
}
|
|
1426
|
+
const skillNames = options.skills ?? agent.skills ?? [];
|
|
1427
|
+
const skillCwd = options.cwd ?? runtimeCwd;
|
|
1428
|
+
const { resolved: resolvedSkills, missing: missingSkills } = resolveSkillsWithFallback(
|
|
1429
|
+
skillNames,
|
|
1430
|
+
skillCwd,
|
|
1431
|
+
runtimeCwd,
|
|
1432
|
+
agent.skillPath,
|
|
1433
|
+
agent.filePath ? path.dirname(agent.filePath) : skillCwd,
|
|
1434
|
+
);
|
|
1435
|
+
if (skillNames.some((skill) => skill.trim() === "pi-subagents") && missingSkills.includes("pi-subagents")) {
|
|
1436
|
+
return withRunContext({
|
|
1437
|
+
index: options.index ?? 0,
|
|
1438
|
+
agent: agentName,
|
|
1439
|
+
task,
|
|
1440
|
+
exitCode: 1,
|
|
1441
|
+
messages: [],
|
|
1442
|
+
usage: emptyUsage(),
|
|
1443
|
+
error: "Skills not found: pi-subagents",
|
|
1444
|
+
}, options.context);
|
|
1445
|
+
}
|
|
1446
|
+
let systemPrompt = agent.systemPrompt?.trim() || "";
|
|
1447
|
+
if (resolvedSkills.length > 0) {
|
|
1448
|
+
const skillInjection = buildSkillInjection(resolvedSkills);
|
|
1449
|
+
systemPrompt = systemPrompt ? `${systemPrompt}\n\n${skillInjection}` : skillInjection;
|
|
1450
|
+
}
|
|
1451
|
+
const memoryInjection = buildAgentMemoryInjection(agent, skillCwd);
|
|
1452
|
+
if (memoryInjection) {
|
|
1453
|
+
systemPrompt = systemPrompt ? `${systemPrompt}\n\n${memoryInjection}` : memoryInjection;
|
|
1454
|
+
}
|
|
1455
|
+
systemPrompt = appendAgentRefinementOverlay(systemPrompt, { cwd: skillCwd, agentName });
|
|
1456
|
+
systemPrompt = injectOutputPathSystemPrompt(systemPrompt, options.outputPath, agent);
|
|
1457
|
+
|
|
1458
|
+
const candidates = buildModelCandidates(
|
|
1459
|
+
options.modelOverride ?? agent.model,
|
|
1460
|
+
agent.fallbackModels,
|
|
1461
|
+
options.availableModels,
|
|
1462
|
+
options.preferredModelProvider,
|
|
1463
|
+
{ scope: options.modelScope },
|
|
1464
|
+
);
|
|
1465
|
+
const attemptedModels: string[] = [];
|
|
1466
|
+
const modelAttempts: ModelAttempt[] = [];
|
|
1467
|
+
const aggregateUsage = emptyUsage();
|
|
1468
|
+
const attemptNotes: string[] = [];
|
|
1469
|
+
let totalToolCount = 0;
|
|
1470
|
+
let totalDurationMs = 0;
|
|
1471
|
+
|
|
1472
|
+
let artifactPathsResult: ArtifactPaths | undefined;
|
|
1473
|
+
let jsonlPath: string | undefined;
|
|
1474
|
+
let transcriptWriter: ChildTranscriptWriter | undefined;
|
|
1475
|
+
if (options.artifactsDir && options.artifactConfig?.enabled !== false) {
|
|
1476
|
+
artifactPathsResult = getArtifactPaths(options.artifactsDir, options.runId, agentName, options.index);
|
|
1477
|
+
ensureArtifactsDir(options.artifactsDir);
|
|
1478
|
+
if (options.artifactConfig?.includeInput !== false) {
|
|
1479
|
+
writeArtifact(artifactPathsResult.inputPath, `# Task for ${agentName}\n\n${taskWithAcceptance}`);
|
|
1480
|
+
}
|
|
1481
|
+
if (options.artifactConfig?.includeJsonl !== false) {
|
|
1482
|
+
jsonlPath = artifactPathsResult.jsonlPath;
|
|
1483
|
+
}
|
|
1484
|
+
if (options.artifactConfig?.includeTranscript !== false) {
|
|
1485
|
+
transcriptWriter = createChildTranscriptWriter({
|
|
1486
|
+
transcriptPath: artifactPathsResult.transcriptPath,
|
|
1487
|
+
source: "foreground",
|
|
1488
|
+
runId: options.runId,
|
|
1489
|
+
agent: agentName,
|
|
1490
|
+
childIndex: options.index,
|
|
1491
|
+
cwd: options.cwd ?? runtimeCwd,
|
|
1492
|
+
});
|
|
1493
|
+
transcriptWriter.writeInitialUserMessage(taskWithAcceptance);
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
const persistResultMetadata = (target: SingleResult): void => {
|
|
1498
|
+
persistSingleResultMetadata({
|
|
1499
|
+
metadataPath: artifactPathsResult?.metadataPath,
|
|
1500
|
+
enabled: options.artifactConfig?.enabled !== false && options.artifactConfig?.includeMetadata !== false,
|
|
1501
|
+
runId: options.runId,
|
|
1502
|
+
agent: agentName,
|
|
1503
|
+
task,
|
|
1504
|
+
result: target,
|
|
1505
|
+
});
|
|
1506
|
+
};
|
|
1507
|
+
|
|
1508
|
+
let intercomDetached = false;
|
|
1509
|
+
let detachedReason: string | undefined;
|
|
1510
|
+
const attemptOptions: RunSyncOptions = {
|
|
1511
|
+
...options,
|
|
1512
|
+
onDetachReceipt: (receipt) => {
|
|
1513
|
+
receipt.acceptance = buildPendingAcceptanceLedger(effectiveAcceptance);
|
|
1514
|
+
try {
|
|
1515
|
+
persistResultMetadata(receipt);
|
|
1516
|
+
} catch (error) {
|
|
1517
|
+
receipt.metadataSaveError = error instanceof Error ? error.message : String(error);
|
|
1518
|
+
}
|
|
1519
|
+
const accepted = options.onDetachReceipt?.(receipt) === true;
|
|
1520
|
+
if (accepted) {
|
|
1521
|
+
detachedReason = receipt.detachedReason;
|
|
1522
|
+
if (receipt.detachedReason === "intercom coordination") intercomDetached = true;
|
|
1523
|
+
}
|
|
1524
|
+
return accepted;
|
|
1525
|
+
},
|
|
1526
|
+
};
|
|
1527
|
+
let lastResult: SingleResult | undefined;
|
|
1528
|
+
const modelsToTry = candidates.length > 0 ? candidates : [undefined];
|
|
1529
|
+
modelAttemptsLoop: for (let modelIndex = 0; modelIndex < modelsToTry.length; modelIndex++) {
|
|
1530
|
+
const candidate = modelsToTry[modelIndex];
|
|
1531
|
+
for (let startupAttemptIndex = 0; ; startupAttemptIndex++) {
|
|
1532
|
+
const outputSnapshot = captureSingleOutputSnapshot(options.outputPath);
|
|
1533
|
+
const result = await runSingleAttempt(runtimeCwd, agent, taskWithAcceptance, candidate, attemptOptions, {
|
|
1534
|
+
sessionEnabled,
|
|
1535
|
+
systemPrompt,
|
|
1536
|
+
resolvedSkillNames: resolvedSkills.length > 0 ? resolvedSkills.map((skill) => skill.name) : undefined,
|
|
1537
|
+
skillsWarning: missingSkills.length > 0 ? `Skills not found: ${missingSkills.join(", ")}` : undefined,
|
|
1538
|
+
jsonlPath,
|
|
1539
|
+
artifactPaths: artifactPathsResult,
|
|
1540
|
+
transcriptWriter,
|
|
1541
|
+
attemptNotes,
|
|
1542
|
+
modelCandidates: candidates
|
|
1543
|
+
.map((modelCandidate) => applyThinkingSuffix(modelCandidate, options.thinkingOverride ?? agent.thinking, options.thinkingOverride !== undefined))
|
|
1544
|
+
.filter((modelCandidate): modelCandidate is string => Boolean(modelCandidate)),
|
|
1545
|
+
outputSnapshot,
|
|
1546
|
+
originalTask: task,
|
|
1547
|
+
});
|
|
1548
|
+
lastResult = result;
|
|
1549
|
+
if (startupAttemptIndex === 0) {
|
|
1550
|
+
if (result.model) attemptedModels.push(result.model);
|
|
1551
|
+
else if (candidate) attemptedModels.push(candidate);
|
|
1552
|
+
}
|
|
1553
|
+
sumUsage(aggregateUsage, result.usage);
|
|
1554
|
+
totalToolCount += result.progressSummary?.toolCount ?? 0;
|
|
1555
|
+
totalDurationMs += result.progressSummary?.durationMs ?? 0;
|
|
1556
|
+
const attemptSucceeded = result.exitCode === 0 && !result.error;
|
|
1557
|
+
const attempt: ModelAttempt = {
|
|
1558
|
+
model: result.model ?? candidate ?? agent.model ?? "default",
|
|
1559
|
+
success: attemptSucceeded,
|
|
1560
|
+
exitCode: result.exitCode,
|
|
1561
|
+
error: result.error,
|
|
1562
|
+
usage: { ...result.usage },
|
|
1563
|
+
};
|
|
1564
|
+
modelAttempts.push(attempt);
|
|
1565
|
+
// Preserve the legacy intercom handoff contract: once this logical run has
|
|
1566
|
+
// been handed to a supervisor, terminating that attempt must not launch a
|
|
1567
|
+
// startup retry or model fallback. Explicit user detach retains fallback.
|
|
1568
|
+
if (intercomDetached || result.timedOut || result.turnBudgetExceeded) break modelAttemptsLoop;
|
|
1569
|
+
if (attemptSucceeded) break modelAttemptsLoop;
|
|
1570
|
+
|
|
1571
|
+
const startupFailure = isRetryableSubagentStartupFailure({
|
|
1572
|
+
exitCode: result.exitCode,
|
|
1573
|
+
error: result.error,
|
|
1574
|
+
finalOutput: result.finalOutput,
|
|
1575
|
+
messageCount: result.messages?.length ?? 0,
|
|
1576
|
+
toolCount: result.progressSummary?.toolCount ?? 0,
|
|
1577
|
+
usage: result.usage,
|
|
1578
|
+
durationMs: result.progressSummary?.durationMs ?? Number.POSITIVE_INFINITY,
|
|
1579
|
+
protocolError: result.protocolError,
|
|
1580
|
+
processSignal: result.processSignal,
|
|
1581
|
+
detached: result.detached,
|
|
1582
|
+
interrupted: result.interrupted,
|
|
1583
|
+
timedOut: result.timedOut,
|
|
1584
|
+
stopped: result.stopped,
|
|
1585
|
+
turnBudgetExceeded: result.turnBudgetExceeded,
|
|
1586
|
+
});
|
|
1587
|
+
const retryDelayMs = SUBAGENT_STARTUP_RETRY_DELAYS_MS[startupAttemptIndex];
|
|
1588
|
+
if (startupFailure && retryDelayMs !== undefined) {
|
|
1589
|
+
const retryNote = formatSubagentStartupRetryNote({
|
|
1590
|
+
model: attempt.model,
|
|
1591
|
+
attempt: startupAttemptIndex + 1,
|
|
1592
|
+
maxAttempts: SUBAGENT_STARTUP_RETRY_DELAYS_MS.length + 1,
|
|
1593
|
+
delayMs: retryDelayMs,
|
|
1594
|
+
});
|
|
1595
|
+
const shouldRetry = await waitForSubagentStartupRetry(retryDelayMs, [options.signal, options.interruptSignal]);
|
|
1596
|
+
if (!shouldRetry) {
|
|
1597
|
+
if (options.interruptSignal?.aborted) {
|
|
1598
|
+
result.exitCode = 0;
|
|
1599
|
+
result.interrupted = true;
|
|
1600
|
+
result.error = undefined;
|
|
1601
|
+
result.finalOutput = "Interrupted. Waiting for explicit next action.";
|
|
1602
|
+
if (result.progress) {
|
|
1603
|
+
result.progress.status = "running";
|
|
1604
|
+
result.progress.error = undefined;
|
|
1605
|
+
}
|
|
1606
|
+
} else {
|
|
1607
|
+
const cancellationError = "Subagent startup retry cancelled before relaunch.";
|
|
1608
|
+
result.error = cancellationError;
|
|
1609
|
+
result.finalOutput = cancellationError;
|
|
1610
|
+
attempt.error = cancellationError;
|
|
1611
|
+
if (result.progress) result.progress.error = cancellationError;
|
|
1612
|
+
}
|
|
1613
|
+
break modelAttemptsLoop;
|
|
1614
|
+
}
|
|
1615
|
+
attempt.error = retryNote;
|
|
1616
|
+
attemptNotes.push(retryNote);
|
|
1617
|
+
continue;
|
|
1618
|
+
}
|
|
1619
|
+
if (startupFailure) {
|
|
1620
|
+
const startupError = formatSubagentStartupRetryExhaustedError({
|
|
1621
|
+
model: attempt.model,
|
|
1622
|
+
attempts: startupAttemptIndex + 1,
|
|
1623
|
+
});
|
|
1624
|
+
result.error = startupError;
|
|
1625
|
+
result.finalOutput = startupError;
|
|
1626
|
+
if (result.progress) {
|
|
1627
|
+
result.progress.error = startupError;
|
|
1628
|
+
result.progress.status = "failed";
|
|
1629
|
+
}
|
|
1630
|
+
attempt.error = startupError;
|
|
1631
|
+
break modelAttemptsLoop;
|
|
1632
|
+
}
|
|
1633
|
+
if (!isRetryableModelFailure(result.error) || modelIndex === modelsToTry.length - 1) break modelAttemptsLoop;
|
|
1634
|
+
attemptNotes.push(formatModelAttemptNote(attempt, modelsToTry[modelIndex + 1]));
|
|
1635
|
+
break;
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
const result = withRunContext(lastResult ?? {
|
|
1640
|
+
index: options.index ?? 0,
|
|
1641
|
+
agent: agentName,
|
|
1642
|
+
task,
|
|
1643
|
+
exitCode: 1,
|
|
1644
|
+
messages: [],
|
|
1645
|
+
usage: emptyUsage(),
|
|
1646
|
+
error: "Subagent did not produce a result.",
|
|
1647
|
+
} satisfies SingleResult, options.context);
|
|
1648
|
+
|
|
1649
|
+
result.usage = aggregateUsage;
|
|
1650
|
+
result.attemptedModels = attemptedModels.length > 0 ? attemptedModels : undefined;
|
|
1651
|
+
result.modelAttempts = modelAttempts.length > 0 ? modelAttempts : undefined;
|
|
1652
|
+
result.progressSummary = {
|
|
1653
|
+
toolCount: totalToolCount,
|
|
1654
|
+
tokens: aggregateUsage.input + aggregateUsage.output,
|
|
1655
|
+
durationMs: totalDurationMs,
|
|
1656
|
+
};
|
|
1657
|
+
if (transcriptWriter) result.transcriptPath = artifactPathsResult?.transcriptPath;
|
|
1658
|
+
if (transcriptWriter?.getError()) result.transcriptError = transcriptWriter.getError();
|
|
1659
|
+
|
|
1660
|
+
try {
|
|
1661
|
+
if (artifactPathsResult && options.artifactConfig?.enabled !== false) {
|
|
1662
|
+
result.artifactPaths = artifactPathsResult;
|
|
1663
|
+
if (options.artifactConfig?.includeOutput !== false) {
|
|
1664
|
+
writeArtifact(artifactPathsResult.outputPath, formatOutputArtifactContent({
|
|
1665
|
+
output: artifactOutputByResult.get(result) ?? result.finalOutput ?? "",
|
|
1666
|
+
error: result.error,
|
|
1667
|
+
transcriptPath: result.transcriptPath,
|
|
1668
|
+
metadataPath: options.artifactConfig?.includeMetadata === false ? undefined : artifactPathsResult.metadataPath,
|
|
1669
|
+
}));
|
|
1670
|
+
}
|
|
1671
|
+
if (options.maxOutput) {
|
|
1672
|
+
const config = { ...DEFAULT_MAX_OUTPUT, ...options.maxOutput };
|
|
1673
|
+
const truncationResult = truncateOutput(result.finalOutput ?? "", config, artifactPathsResult.outputPath);
|
|
1674
|
+
if (truncationResult.truncated) result.truncation = truncationResult;
|
|
1675
|
+
}
|
|
1676
|
+
} else if (options.maxOutput) {
|
|
1677
|
+
const config = { ...DEFAULT_MAX_OUTPUT, ...options.maxOutput };
|
|
1678
|
+
const truncationResult = truncateOutput(result.finalOutput ?? "", config);
|
|
1679
|
+
if (truncationResult.truncated) result.truncation = truncationResult;
|
|
1680
|
+
}
|
|
1681
|
+
} catch (error) {
|
|
1682
|
+
const message = `Artifact output post-processing failed: ${error instanceof Error ? error.message : String(error)}`;
|
|
1683
|
+
result.outputSaveError = result.outputSaveError ? `${result.outputSaveError}\n${message}` : message;
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
if (options.sessionFile && (existsSync(options.sessionFile) || result.messages?.length)) {
|
|
1687
|
+
result.sessionFile = options.sessionFile;
|
|
1688
|
+
} else if (shareEnabled && options.sessionDir) {
|
|
1689
|
+
const sessionFile = findLatestSessionFile(options.sessionDir);
|
|
1690
|
+
if (sessionFile) result.sessionFile = sessionFile;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
const childWrittenOutput = options.outputPath
|
|
1694
|
+
? extractChildWrittenOutput(result.messages, options.outputPath, options.cwd ?? runtimeCwd)
|
|
1695
|
+
: undefined;
|
|
1696
|
+
try {
|
|
1697
|
+
if (result.interrupted && detachedReason === "user request") {
|
|
1698
|
+
// Only an accepted user-detach receipt needs a non-rejecting terminal
|
|
1699
|
+
// ledger. Attached and background execution retain their baseline
|
|
1700
|
+
// acceptance behavior.
|
|
1701
|
+
result.acceptance = buildInterruptedAcceptanceLedger(effectiveAcceptance);
|
|
1702
|
+
} else if (result.stopped) {
|
|
1703
|
+
result.acceptance = buildSkippedAcceptanceLedger(effectiveAcceptance, { id: "stopped", message: "Acceptance was not evaluated because the subagent was stopped." });
|
|
1704
|
+
} else if (result.timedOut) {
|
|
1705
|
+
result.acceptance = buildSkippedAcceptanceLedger(effectiveAcceptance, { id: "timeout", message: "Acceptance was not evaluated because the subagent timed out." });
|
|
1706
|
+
} else if (result.turnBudgetExceeded) {
|
|
1707
|
+
result.acceptance = buildSkippedAcceptanceLedger(effectiveAcceptance, { id: "turn-budget", message: "Acceptance was not evaluated because the subagent exceeded its turn budget." });
|
|
1708
|
+
} else {
|
|
1709
|
+
result.acceptance = await evaluateAcceptance({
|
|
1710
|
+
acceptance: effectiveAcceptance,
|
|
1711
|
+
output: acceptanceOutputByResult.get(result) ?? result.finalOutput ?? "",
|
|
1712
|
+
fileOutput: childWrittenOutput !== undefined && options.outputPath
|
|
1713
|
+
? { content: childWrittenOutput, path: options.outputPath, authoritative: options.outputMode === "file-only" }
|
|
1714
|
+
: undefined,
|
|
1715
|
+
cwd: options.cwd ?? runtimeCwd,
|
|
1716
|
+
reportOptional: isAgentContractV1(options.agentContract),
|
|
1717
|
+
artifactsDir: options.artifactsDir,
|
|
1718
|
+
runId: options.runId,
|
|
1719
|
+
});
|
|
1720
|
+
}
|
|
1721
|
+
} catch (error) {
|
|
1722
|
+
const message = `Acceptance evaluation failed: ${error instanceof Error ? error.message : String(error)}`;
|
|
1723
|
+
result.acceptance = buildSkippedAcceptanceLedger(effectiveAcceptance, { id: "acceptance-evaluation", message });
|
|
1724
|
+
}
|
|
1725
|
+
const acceptanceFailure = acceptanceFailureMessage(result.acceptance);
|
|
1726
|
+
stripAcceptanceReportsFromMessages(result.messages);
|
|
1727
|
+
if (acceptanceFailure && result.acceptance.explicit && result.exitCode === 0 && !result.interrupted && !result.timedOut && !isAgentContractV1(options.agentContract)) {
|
|
1728
|
+
result.exitCode = 1;
|
|
1729
|
+
result.error = result.error ? `${result.error}\n${acceptanceFailure}` : acceptanceFailure;
|
|
1730
|
+
if (result.progress) {
|
|
1731
|
+
result.progress.status = "failed";
|
|
1732
|
+
result.progress.error = result.error;
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
if (isAgentContractV1(options.agentContract)) attachContractProjections(result);
|
|
1736
|
+
try {
|
|
1737
|
+
persistResultMetadata(result);
|
|
1738
|
+
} catch (error) {
|
|
1739
|
+
result.metadataSaveError = error instanceof Error ? error.message : String(error);
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
return result;
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
/**
|
|
1746
|
+
* Runs the authoritative completion pipeline independently from the foreground
|
|
1747
|
+
* receipt. Detachment is same-runtime only: it does not adopt or daemonize work.
|
|
1748
|
+
*/
|
|
1749
|
+
export async function runSync(
|
|
1750
|
+
runtimeCwd: string,
|
|
1751
|
+
agents: AgentConfig[],
|
|
1752
|
+
agentName: string,
|
|
1753
|
+
task: string,
|
|
1754
|
+
options: RunSyncOptions,
|
|
1755
|
+
): Promise<SingleResult> {
|
|
1756
|
+
// Capture the strict contract before consumer-owned objects can be mutated
|
|
1757
|
+
// after a detached receipt is published.
|
|
1758
|
+
const strictContract = isAgentContractV1(options.agentContract);
|
|
1759
|
+
let detachedReason: string | undefined;
|
|
1760
|
+
let publishedReceipt: SingleResult | undefined;
|
|
1761
|
+
let activeDetachAttempt: ((reason?: string) => boolean) | undefined;
|
|
1762
|
+
let detachReadyPublished = false;
|
|
1763
|
+
let resolveReceipt!: (result: SingleResult) => void;
|
|
1764
|
+
const receipt = new Promise<SingleResult>((resolve) => { resolveReceipt = resolve; });
|
|
1765
|
+
const originSignal = options.signal;
|
|
1766
|
+
const originController = new AbortController();
|
|
1767
|
+
const forwardOriginAbort = () => {
|
|
1768
|
+
if (!detachedReason) originController.abort(originSignal?.reason);
|
|
1769
|
+
};
|
|
1770
|
+
if (originSignal?.aborted) forwardOriginAbort();
|
|
1771
|
+
else originSignal?.addEventListener("abort", forwardOriginAbort, { once: true });
|
|
1772
|
+
|
|
1773
|
+
const completion = runSyncCompletion(runtimeCwd, agents, agentName, task, {
|
|
1774
|
+
...options,
|
|
1775
|
+
signal: originController.signal,
|
|
1776
|
+
onDetachedExit: undefined,
|
|
1777
|
+
onDetachReceipt: (detachedReceipt) => {
|
|
1778
|
+
if (detachedReason || publishedReceipt) return false;
|
|
1779
|
+
// Keep the authoritative result, fallback snapshot, and caller receipt
|
|
1780
|
+
// separately owned while the completion pipeline remains live.
|
|
1781
|
+
publishedReceipt = structuredClone(detachedReceipt);
|
|
1782
|
+
const callerReceipt = structuredClone(detachedReceipt);
|
|
1783
|
+
// A strict contract was already validated before detach; normalize private
|
|
1784
|
+
// and caller snapshots to the only safely known version.
|
|
1785
|
+
publishedReceipt.agentContract = strictContract ? { version: 1 } : undefined;
|
|
1786
|
+
callerReceipt.agentContract = strictContract ? { version: 1 } : undefined;
|
|
1787
|
+
detachedReason = detachedReceipt.detachedReason ?? "user request";
|
|
1788
|
+
resolveReceipt(callerReceipt);
|
|
1789
|
+
return true;
|
|
1790
|
+
},
|
|
1791
|
+
onDetachReady: (detachAttempt) => {
|
|
1792
|
+
activeDetachAttempt = detachAttempt;
|
|
1793
|
+
if (detachReadyPublished) return;
|
|
1794
|
+
detachReadyPublished = true;
|
|
1795
|
+
options.onDetachReady?.((reason = "user request") => {
|
|
1796
|
+
if (detachedReason || originController.signal.aborted) return false;
|
|
1797
|
+
return activeDetachAttempt?.(reason) ?? false;
|
|
1798
|
+
});
|
|
1799
|
+
},
|
|
1800
|
+
});
|
|
1801
|
+
|
|
1802
|
+
const authoritativeCompletion = completion.catch((error: unknown) => {
|
|
1803
|
+
if (!publishedReceipt || !detachedReason) throw error;
|
|
1804
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
1805
|
+
const failureMessage = `Detached completion pipeline failed after receipt: ${message}`;
|
|
1806
|
+
const failedProgress: AgentProgress = publishedReceipt.progress
|
|
1807
|
+
? { ...publishedReceipt.progress, status: "failed", error: failureMessage }
|
|
1808
|
+
: {
|
|
1809
|
+
index: options.index ?? 0,
|
|
1810
|
+
agent: publishedReceipt.agent,
|
|
1811
|
+
status: "failed",
|
|
1812
|
+
task: publishedReceipt.task,
|
|
1813
|
+
recentTools: [],
|
|
1814
|
+
recentOutput: [],
|
|
1815
|
+
toolCount: publishedReceipt.progressSummary?.toolCount ?? 0,
|
|
1816
|
+
tokens: publishedReceipt.progressSummary?.tokens ?? 0,
|
|
1817
|
+
durationMs: publishedReceipt.progressSummary?.durationMs ?? 0,
|
|
1818
|
+
error: failureMessage,
|
|
1819
|
+
};
|
|
1820
|
+
const failedResult: SingleResult = {
|
|
1821
|
+
...publishedReceipt,
|
|
1822
|
+
detached: undefined,
|
|
1823
|
+
detachedReason,
|
|
1824
|
+
exitCode: 1,
|
|
1825
|
+
error: failureMessage,
|
|
1826
|
+
finalOutput: failureMessage,
|
|
1827
|
+
progress: failedProgress,
|
|
1828
|
+
progressSummary: {
|
|
1829
|
+
toolCount: failedProgress.toolCount,
|
|
1830
|
+
tokens: failedProgress.tokens,
|
|
1831
|
+
durationMs: failedProgress.durationMs,
|
|
1832
|
+
},
|
|
1833
|
+
acceptance: publishedReceipt.acceptance
|
|
1834
|
+
? buildSkippedAcceptanceLedger(publishedReceipt.acceptance.effectiveAcceptance, { id: "completion-pipeline", message: failureMessage })
|
|
1835
|
+
: undefined,
|
|
1836
|
+
};
|
|
1837
|
+
if (strictContract) attachContractProjections(failedResult);
|
|
1838
|
+
try {
|
|
1839
|
+
// Replace the provisional detach receipt metadata with the authoritative
|
|
1840
|
+
// terminal failure. Persistence remains best-effort and cannot orphan work.
|
|
1841
|
+
persistSingleResultMetadata({
|
|
1842
|
+
metadataPath: failedResult.artifactPaths?.metadataPath,
|
|
1843
|
+
enabled: options.artifactConfig?.enabled !== false && options.artifactConfig?.includeMetadata !== false,
|
|
1844
|
+
runId: options.runId,
|
|
1845
|
+
agent: failedResult.agent,
|
|
1846
|
+
task: failedResult.task,
|
|
1847
|
+
result: failedResult,
|
|
1848
|
+
});
|
|
1849
|
+
} catch (metadataError) {
|
|
1850
|
+
failedResult.metadataSaveError = metadataError instanceof Error ? metadataError.message : String(metadataError);
|
|
1851
|
+
}
|
|
1852
|
+
return failedResult;
|
|
1853
|
+
});
|
|
1854
|
+
|
|
1855
|
+
let terminalCallbackInvoked = false;
|
|
1856
|
+
void authoritativeCompletion.then((terminalResult) => {
|
|
1857
|
+
if (!detachedReason || terminalCallbackInvoked) return;
|
|
1858
|
+
terminalCallbackInvoked = true;
|
|
1859
|
+
terminalResult.detached = undefined;
|
|
1860
|
+
terminalResult.detachedReason = detachedReason;
|
|
1861
|
+
try {
|
|
1862
|
+
options.onDetachedExit?.(terminalResult);
|
|
1863
|
+
} catch {
|
|
1864
|
+
// The authoritative result has settled. Consumer callback failures are
|
|
1865
|
+
// contained here; each consumer owns cleanup through its own finally block.
|
|
1866
|
+
}
|
|
1867
|
+
}).catch(() => {
|
|
1868
|
+
// Attached completion rejection remains observable through the returned
|
|
1869
|
+
// promise without becoming an unhandled side-channel rejection.
|
|
1870
|
+
}).finally(() => {
|
|
1871
|
+
originSignal?.removeEventListener("abort", forwardOriginAbort);
|
|
1872
|
+
});
|
|
1873
|
+
|
|
1874
|
+
return Promise.race([authoritativeCompletion, receipt]);
|
|
1875
|
+
}
|