@av-pi-studio/client 0.0.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.
@@ -0,0 +1 @@
1
+ {"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/zod/v3/helpers/typeAliases.d.cts","../../../node_modules/zod/v3/helpers/util.d.cts","../../../node_modules/zod/v3/index.d.cts","../../../node_modules/zod/v3/ZodError.d.cts","../../../node_modules/zod/v3/locales/en.d.cts","../../../node_modules/zod/v3/errors.d.cts","../../../node_modules/zod/v3/helpers/parseUtil.d.cts","../../../node_modules/zod/v3/helpers/enumUtil.d.cts","../../../node_modules/zod/v3/helpers/errorUtil.d.cts","../../../node_modules/zod/v3/helpers/partialUtil.d.cts","../../../node_modules/zod/v3/standard-schema.d.cts","../../../node_modules/zod/v3/types.d.cts","../../../node_modules/zod/v3/external.d.cts","../../../node_modules/zod/index.d.cts","../../protocol/dist/validation.d.ts","../../protocol/dist/messages.d.ts","../../protocol/dist/client-capabilities.d.ts","../../protocol/dist/binary-frames/terminal-stream-protocol.d.ts","../../protocol/dist/binary-frames/file-transfer-protocol.d.ts","../../protocol/dist/binary-frames/index.d.ts","../../protocol/dist/endpoint.d.ts","../../protocol/dist/provider-manifest.d.ts","../../protocol/dist/index.d.ts","../src/transport.ts","../src/daemon-client.ts","../src/file-transfer-client.ts","../src/pistudio-client.ts","../src/terminal-stream-router.ts","../src/reconnect.ts","../src/index.ts","../../../node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/file.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/undici-types/retry-handler.d.ts","../../../node_modules/undici-types/retry-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/util.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/eventsource.d.ts","../../../node_modules/undici-types/filereader.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/sea.d.ts","../../../node_modules/@types/node/sqlite.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/index.d.ts"],"fileIdsList":[[97,142,143,145,162,163],[97,144,145,162,163],[145,162,163],[97,145,150,162,163,180],[97,145,146,151,156,162,163,165,177,188],[97,145,146,147,156,162,163,165],[97,145,162,163],[92,93,94,97,145,162,163],[97,145,148,162,163,189],[97,145,149,150,157,162,163,166],[97,145,150,162,163,177,185],[97,145,151,153,156,162,163,165],[97,144,145,152,162,163],[97,145,153,154,162,163],[97,145,155,156,162,163],[97,144,145,156,162,163],[97,145,156,157,158,162,163,177,188],[97,145,156,157,158,162,163,172,177,180],[97,138,145,153,156,159,162,163,165,177,188],[97,145,156,157,159,160,162,163,165,177,185,188],[97,145,159,161,162,163,177,185,188],[95,96,97,98,99,100,101,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194],[97,145,156,162,163],[97,145,162,163,164,188],[97,145,153,156,162,163,165,177],[97,145,162,163,166],[97,145,162,163,167],[97,144,145,162,163,168],[97,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194],[97,145,162,163,170],[97,145,162,163,171],[97,145,156,162,163,172,173],[97,145,162,163,172,174,189,191],[97,145,157,162,163],[97,145,156,162,163,177,178,180],[97,145,162,163,179,180],[97,145,162,163,177,178],[97,145,162,163,180],[97,145,162,163,181],[97,142,145,162,163,177,182,188],[97,145,156,162,163,183,184],[97,145,162,163,183,184],[97,145,150,162,163,165,177,185],[97,145,162,163,186],[97,145,162,163,165,187],[97,145,159,162,163,171,188],[97,145,150,162,163,189],[97,145,162,163,177,190],[97,145,162,163,164,191],[97,145,162,163,192],[97,138,145,162,163],[97,138,145,156,158,162,163,168,177,180,188,190,191,193],[97,145,162,163,177,194],[97,110,114,145,162,163,188],[97,110,145,162,163,177,188],[97,105,145,162,163],[97,107,110,145,162,163,185,188],[97,145,162,163,165,185],[97,145,162,163,195],[97,105,145,162,163,195],[97,107,110,145,162,163,165,188],[97,102,103,106,109,145,156,162,163,177,188],[97,110,117,145,162,163],[97,102,108,145,162,163],[97,110,131,132,145,162,163],[97,106,110,145,162,163,180,188,195],[97,131,145,162,163,195],[97,104,105,145,162,163,195],[97,110,145,162,163],[97,104,105,106,107,108,109,110,111,112,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,132,133,134,135,136,137,145,162,163],[97,110,125,145,162,163],[97,110,117,118,145,162,163],[97,108,110,118,119,145,162,163],[97,109,145,162,163],[97,102,105,110,145,162,163],[97,110,114,118,119,145,162,163],[97,114,145,162,163],[97,108,110,113,145,162,163,188],[97,102,107,110,117,145,162,163],[97,145,162,163,177],[97,105,110,131,145,162,163,193,195],[74,97,145,162,163],[62,63,64,97,145,162,163],[65,66,97,145,162,163],[62,63,65,67,68,73,97,145,162,163],[63,65,97,145,162,163],[73,97,145,162,163],[65,97,145,162,163],[62,63,65,68,69,70,71,72,97,145,162,163],[84,85,97,145,162,163],[84,86,97,145,162,163],[84,85,86,87,88,89,90,97,145,162,163],[86,97,145,162,163],[75,97,145,162,163],[79,80,97,145,162,163],[76,97,145,162,163],[76,77,78,81,82,83,97,145,162,163]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","impliedFormat":1},{"version":"293eadad9dead44c6fd1db6de552663c33f215c55a1bfa2802a1bceed88ff0ec","impliedFormat":1},{"version":"833e92c058d033cde3f29a6c7603f517001d1ddd8020bc94d2067a3bc69b2a8e","impliedFormat":1},{"version":"08b2fae7b0f553ad9f79faec864b179fc58bc172e295a70943e8585dd85f600c","impliedFormat":1},{"version":"f12edf1672a94c578eca32216839604f1e1c16b40a1896198deabf99c882b340","impliedFormat":1},{"version":"e3498cf5e428e6c6b9e97bd88736f26d6cf147dedbfa5a8ad3ed8e05e059af8a","impliedFormat":1},{"version":"dba3f34531fd9b1b6e072928b6f885aa4d28dd6789cbd0e93563d43f4b62da53","impliedFormat":1},{"version":"f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","impliedFormat":1},{"version":"e4b03ddcf8563b1c0aee782a185286ed85a255ce8a30df8453aade2188bbc904","impliedFormat":1},{"version":"2329d90062487e1eaca87b5e06abcbbeeecf80a82f65f949fd332cfcf824b87b","impliedFormat":1},{"version":"25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","impliedFormat":1},{"version":"4fdb529707247a1a917a4626bfb6a293d52cd8ee57ccf03830ec91d39d606d6d","impliedFormat":1},{"version":"a9ebb67d6bbead6044b43714b50dcb77b8f7541ffe803046fdec1714c1eba206","impliedFormat":1},{"version":"5780b706cece027f0d4444fbb4e1af62dc51e19da7c3d3719f67b22b033859b9","impliedFormat":1},"d7eef9fb2ef0d20ca3a7a24f22096aa4edbd5608e01550a012a40c18d065db35","129f92bc56ca138ae08114cdaf45f0b80aeac898d4a94220cde3fccbc9786566","50291032fb9decabe0244a3397706ec81866ef211fce7ddef8c7f01658b17d00","54f4e07ffe47dbd162491e2e48af4db9b01c785e3d52be912922a70cb40d9691","fa70f99b09be6b9683ca899622ec8c872a2818e5ad065d00675e4ac67bc0b5fd","35e0b43165d74cc44c4e0a47490a11310e53caf8cf7d4f66e07f88a726f897f6","c4c8603245ab64e11ff220baf198193089713a3a4fbfe37d154e5b5521610947","2b36239e9be6979f4d8910a5e3e028fc56ca6487856dfc5f1a3ea973495d215a","751634c91e3855c68bb90ba6f493b679f6ac1ba19b887d179551da35fe87c4c5",{"version":"47fc7dce6b2202bac681148331ae75fa1854cf99c6144a30e3972808bbd8ff17","signature":"f01c0f72fb4d821682d4960b4f2ecf545615e6c06d9d938ac96352f253407298"},{"version":"d0668f5f9ecb0775deebe3441e358410adcf7b62c7d14a2cd237c47dc344a2cf","signature":"e3de3e3782a4766bf562e4fcb95ae3312bd1b8495563a92d1f2a7d986edcf613"},{"version":"759efd15df26d1c2e56a7254a4be1bff84bd7f5870f6daf12a8b9df8cb80e931","signature":"f5cd12d2b96f3ebc782050c9f6e988bb209ec6c83b7be3c6cfba403e7f691bf2"},{"version":"37dc510e662add35b54f82f57def0360166df449149cfc626129ad2d07320892","signature":"0849e7221138eccabb41f2f3345aafcc324e92fdcc30ea2063460b7bd1f7f7a9"},{"version":"e7e72c4183cb54005ad3a18cf8d7aac95cbe43972b16947636332a42f4cdf60b","signature":"8502ccaa9d23af3d98e18841352fd0ed55545d4c16742ec60dad6ba97f21a7a5"},{"version":"beb2374e04264ea09dfe23caa870dba4c9787cc6f2f23c562ec3d4d4cc3d6982","signature":"cb60267447a8e1c066aa79337348a6f9a7baf23484ca561e99bdc488f98ec378"},{"version":"a9ef6da827cd3be4889120a908657aa5bd3c30865b5628b6bfb7c41286f7d5a5","signature":"7bad3cd7532b3d948697e4daceb6493f3ded8b1226d806f19b5d2f3cfee23f37"},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c906fb15bd2aabc9ed1e3f44eb6a8661199d6c320b3aa196b826121552cb3695","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"58647d85d0f722a1ce9de50955df60a7489f0593bf1a7015521efe901c06d770","impliedFormat":1},{"version":"9018e9493596e2d041fc531f5101a0d05f9d2e1311f4ae3c74345b1766158c08","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6f137d651076822d4fe884287e68fd61785a0d3d1fdb250a5059b691fa897db","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"bceb58df66ab8fb00170df20cd813978c5ab84be1d285710c4eb005d8e9d8efb","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"a3fc63c0d7b031693f665f5494412ba4b551fe644ededccc0ab5922401079c95","impliedFormat":1},{"version":"80523c00b8544a2000ae0143e4a90a00b47f99823eb7926c1e03c494216fc363","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"746911b62b329587939560deb5c036aca48aece03147b021fa680223255d5183","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"c8d3e5a18ba35629954e48c4cc8f11dc88224650067a172685c736b27a34a4dc","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2b55d426ff2b9087485e52ac4bc7cfafe1dc420fc76dad926cd46526567c501a","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"47613031a5a31510831304405af561b0ffaedb734437c595256bb61a90f9311b","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"8a1a0d0a4a06a8d278947fcb66bf684f117bf147f89b06e50662d79a53be3e9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"358765d5ea8afd285d4fd1532e78b88273f18cb3f87403a9b16fef61ac9fdcfe","impliedFormat":1},{"version":"9f55299850d4f0921e79b6bf344b47c420ce0f507b9dcf593e532b09ea7eeea1","impliedFormat":1}],"root":[[85,91]],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":false,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[142,1],[143,1],[144,2],[97,3],[145,4],[146,5],[147,6],[92,7],[95,8],[93,7],[94,7],[148,9],[149,10],[150,11],[151,12],[152,13],[153,14],[154,14],[155,15],[156,16],[157,17],[158,18],[98,7],[96,7],[159,19],[160,20],[161,21],[195,22],[162,23],[163,7],[164,24],[165,25],[166,26],[167,27],[168,28],[169,29],[170,30],[171,31],[172,32],[173,32],[174,33],[175,7],[176,34],[177,35],[179,36],[178,37],[180,38],[181,39],[182,40],[183,41],[184,42],[185,43],[186,44],[187,45],[188,46],[189,47],[190,48],[191,49],[192,50],[99,7],[100,7],[101,7],[139,51],[140,7],[141,7],[193,52],[194,53],[60,7],[61,7],[12,7],[11,7],[2,7],[13,7],[14,7],[15,7],[16,7],[17,7],[18,7],[19,7],[20,7],[3,7],[21,7],[22,7],[4,7],[23,7],[27,7],[24,7],[25,7],[26,7],[28,7],[29,7],[30,7],[5,7],[31,7],[32,7],[33,7],[34,7],[6,7],[38,7],[35,7],[36,7],[37,7],[39,7],[7,7],[40,7],[45,7],[46,7],[41,7],[42,7],[43,7],[44,7],[8,7],[50,7],[47,7],[48,7],[49,7],[51,7],[9,7],[52,7],[53,7],[54,7],[56,7],[55,7],[57,7],[58,7],[10,7],[59,7],[1,7],[117,54],[127,55],[116,54],[137,56],[108,57],[107,58],[136,59],[130,60],[135,61],[110,62],[124,63],[109,64],[133,65],[105,66],[104,59],[134,67],[106,68],[111,69],[112,7],[115,69],[102,7],[138,70],[128,71],[119,72],[120,73],[122,74],[118,75],[121,76],[131,59],[113,77],[114,78],[123,79],[103,80],[126,71],[125,69],[129,7],[132,81],[75,82],[65,83],[67,84],[74,85],[69,7],[70,7],[68,86],[71,87],[62,7],[63,7],[64,82],[66,88],[72,7],[73,89],[86,90],[87,91],[91,92],[88,91],[90,93],[89,91],[85,7],[80,94],[81,95],[79,94],[78,96],[82,7],[84,97],[77,94],[83,94],[76,94]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
@@ -0,0 +1,115 @@
1
+ import { type ClientType, type ServerInfoPayload, type SessionMessage, type TerminalFrame, type FileTransferFrame } from "@av-pi-studio/protocol";
2
+ import type { Transport } from "./transport.js";
3
+ /**
4
+ * Low-level `DaemonClient` WebSocket driver: connect, hello handshake, framing, RPC correlation,
5
+ * ping/pong liveness, and a pluggable transport abstraction.
6
+ *
7
+ * See architecture/client-app-runtime.md § Connection and architecture/websocket-protocol.md
8
+ * § Connection & handshake, § Top-level envelopes.
9
+ *
10
+ * Out of scope here: the `Pi-StudioClient` facade (task-002), relay transport (sprint-013), and the
11
+ * terminal-stream router (task-003) — though this driver exposes the hooks the router rides on.
12
+ */
13
+ /** Connection lifecycle states. */
14
+ export type ConnectionState = "idle" | "connecting" | "open" | "closing" | "closed";
15
+ /** The default wire protocol version this client speaks. */
16
+ export declare const PROTOCOL_VERSION = 1;
17
+ export interface DaemonClientOptions {
18
+ url: string;
19
+ clientId: string;
20
+ clientType: ClientType;
21
+ protocolVersion?: number;
22
+ appVersion?: string;
23
+ capabilities?: Record<string, boolean>;
24
+ /** Inject a transport (tests/relay). Defaults to a direct WebSocket transport. */
25
+ transport?: Transport;
26
+ /** Default RPC timeout (ms). RPC timeouts are operation errors, NOT socket deaths. */
27
+ rpcTimeoutMs?: number;
28
+ /** Optional clock for deterministic tests. */
29
+ now?: () => number;
30
+ }
31
+ /** A failed RPC surfaced from a correlated `rpc_error`. */
32
+ export declare class RpcError extends Error {
33
+ readonly requestId: string;
34
+ readonly code?: string | undefined;
35
+ constructor(message: string, requestId: string, code?: string | undefined);
36
+ }
37
+ /** A timed-out RPC. Distinguished from a dead socket per the protocol contract. */
38
+ export declare class RpcTimeoutError extends Error {
39
+ readonly requestId: string;
40
+ constructor(requestId: string);
41
+ }
42
+ export type SessionMessageHandler = (message: SessionMessage) => void;
43
+ export type TerminalFrameHandler = (frame: TerminalFrame) => void;
44
+ export type FileTransferFrameHandler = (frame: FileTransferFrame) => void;
45
+ export type StateChangeHandler = (state: ConnectionState) => void;
46
+ export declare class DaemonClient {
47
+ private readonly options;
48
+ private readonly transport;
49
+ private readonly rpcTimeoutMs;
50
+ private readonly now;
51
+ private _state;
52
+ private _serverId;
53
+ private _features;
54
+ private _serverCapabilities;
55
+ private readonly pending;
56
+ private readonly sessionHandlers;
57
+ private readonly terminalHandlers;
58
+ private readonly fileTransferHandlers;
59
+ private readonly stateHandlers;
60
+ private helloResolve;
61
+ private helloReject;
62
+ constructor(options: DaemonClientOptions);
63
+ get state(): ConnectionState;
64
+ get serverId(): string | null;
65
+ get features(): Record<string, unknown>;
66
+ get serverCapabilities(): Record<string, unknown>;
67
+ /** True iff the daemon advertised the given `server_info.features.*` flag truthy. */
68
+ hasFeature(flag: string): boolean;
69
+ /**
70
+ * Open the socket, send `hello`, and await `status`/`server_info`. Resolves with the
71
+ * recorded server info (serverId + features).
72
+ */
73
+ connect(): Promise<ServerInfoPayload>;
74
+ /** Close the socket cleanly. */
75
+ close(code?: number, reason?: string): void;
76
+ /**
77
+ * Send a correlated session RPC. Resolves with the response `payload` when a session message
78
+ * carrying the same `requestId` arrives, rejects with `RpcError` on a correlated `rpc_error`,
79
+ * and rejects with `RpcTimeoutError` (operation error only, socket stays alive) on timeout.
80
+ */
81
+ request<T = unknown>(type: string, params?: Record<string, unknown>, timeoutMs?: number): Promise<T>;
82
+ /** Send a fire-and-forget session message (wrapped in a `session` envelope). */
83
+ sendSession(message: SessionMessage): void;
84
+ /** Send a raw binary frame (terminal / file-transfer). */
85
+ sendBinary(data: Uint8Array): void;
86
+ /**
87
+ * Send a JSON `ping` and await the correlated `pong`. Liveness rides on the data path because
88
+ * browser/RN WebSocket APIs do not expose RFC6455 ping.
89
+ */
90
+ ping(timeoutMs?: number): Promise<void>;
91
+ /** Subscribe to all inbound session messages (e.g. `agent_stream`, `agent_update`). */
92
+ onSessionMessage(handler: SessionMessageHandler): () => void;
93
+ /** Subscribe to decoded inbound terminal binary frames. */
94
+ onTerminalFrame(handler: TerminalFrameHandler): () => void;
95
+ /** Subscribe to decoded inbound file-transfer binary frames (download/upload chunks). */
96
+ onFileTransferFrame(handler: FileTransferFrameHandler): () => void;
97
+ /** Subscribe to connection-state transitions. */
98
+ onStateChange(handler: StateChangeHandler): () => void;
99
+ private setState;
100
+ private handleClose;
101
+ private handleIncoming;
102
+ /**
103
+ * Route an inbound binary frame by its opcode byte: file-transfer opcodes (`0x10`–`0x13`) go to
104
+ * `fileTransferHandlers`, everything else decodes as a terminal frame. Two independent binary
105
+ * protocols share one opcode byte's numeric range without colliding — see
106
+ * `@av-pi-studio/protocol`'s `TerminalOpcode` (`0x01`–`0x05`) vs `FileTransferOpcode`
107
+ * (`0x10`–`0x13`).
108
+ */
109
+ private handleBinaryFrame;
110
+ private handleTextFrame;
111
+ private handleStatus;
112
+ private handleSession;
113
+ private resolvePending;
114
+ }
115
+ //# sourceMappingURL=daemon-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"daemon-client.d.ts","sourceRoot":"","sources":["../src/daemon-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACvB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD;;;;;;;;;GASG;AAEH,mCAAmC;AACnC,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEpF,4DAA4D;AAC5D,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAWlC,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,kFAAkF;IAClF,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,sFAAsF;IACtF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8CAA8C;IAC9C,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;CACpB;AASD,2DAA2D;AAC3D,qBAAa,QAAS,SAAQ,KAAK;IAG/B,QAAQ,CAAC,SAAS,EAAE,MAAM;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM;gBAFtB,OAAO,EAAE,MAAM,EACN,SAAS,EAAE,MAAM,EACjB,IAAI,CAAC,EAAE,MAAM,YAAA;CAKzB;AAED,mFAAmF;AACnF,qBAAa,eAAgB,SAAQ,KAAK;IAC5B,QAAQ,CAAC,SAAS,EAA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CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAMjC;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,iBAAiB,CAAC;IA4B3C,gCAAgC;IAChC,KAAK,CAAC,IAAI,SAAO,EAAE,MAAM,SAAK,GAAG,IAAI;IAOrC;;;;OAIG;IACH,OAAO,CAAC,CAAC,GAAG,OAAO,EACjB,IAAI,EAAE,MAAM,EACZ,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,EACpC,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,CAAC,CAAC;IAoBb,gFAAgF;IAChF,WAAW,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAI1C,0DAA0D;IAC1D,UAAU,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI;IAIlC;;;OAGG;IACH,IAAI,CAAC,SAAS,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAuBvC,uFAAuF;IACvF,gBAAgB,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,IAAI;IAK5D,2DAA2D;IAC3D,eAAe,CAAC,OAAO,EAAE,oBAAoB,GAAG,MAAM,IAAI;IAK1D,yFAAyF;IACzF,mBAAmB,CAAC,OAAO,EAAE,wBAAwB,GAAG,MAAM,IAAI;IAKlE,iDAAiD;IACjD,aAAa,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,IAAI;IAOtD,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,WAAW;IAgBnB,OAAO,CAAC,cAAc;IAetB;;;;;;OAMG;IACH,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,eAAe;IAkCvB,OAAO,CAAC,YAAY;IASpB,OAAO,CAAC,aAAa;IA+BrB,OAAO,CAAC,cAAc;CAOvB"}
@@ -0,0 +1,318 @@
1
+ import { decodeTerminalFrame, tryDecodeFileTransferFrame, FileTransferOpcode, } from "@av-pi-studio/protocol";
2
+ import { createWebSocketTransport } from "./transport.js";
3
+ /** The default wire protocol version this client speaks. */
4
+ export const PROTOCOL_VERSION = 1;
5
+ /** Generate a request correlation id. */
6
+ function newRequestId() {
7
+ // crypto.randomUUID is available in browsers, RN (Hermes 0.74+), and Node 16+.
8
+ if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
9
+ return crypto.randomUUID();
10
+ }
11
+ return `req-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}`;
12
+ }
13
+ /** A failed RPC surfaced from a correlated `rpc_error`. */
14
+ export class RpcError extends Error {
15
+ requestId;
16
+ code;
17
+ constructor(message, requestId, code) {
18
+ super(message);
19
+ this.requestId = requestId;
20
+ this.code = code;
21
+ this.name = "RpcError";
22
+ }
23
+ }
24
+ /** A timed-out RPC. Distinguished from a dead socket per the protocol contract. */
25
+ export class RpcTimeoutError extends Error {
26
+ requestId;
27
+ constructor(requestId) {
28
+ super(`RPC ${requestId} timed out`);
29
+ this.requestId = requestId;
30
+ this.name = "RpcTimeoutError";
31
+ }
32
+ }
33
+ export class DaemonClient {
34
+ options;
35
+ transport;
36
+ rpcTimeoutMs;
37
+ now;
38
+ _state = "idle";
39
+ _serverId = null;
40
+ _features = {};
41
+ _serverCapabilities = {};
42
+ pending = new Map();
43
+ sessionHandlers = new Set();
44
+ terminalHandlers = new Set();
45
+ fileTransferHandlers = new Set();
46
+ stateHandlers = new Set();
47
+ helloResolve = null;
48
+ helloReject = null;
49
+ constructor(options) {
50
+ this.options = options;
51
+ this.transport = options.transport ?? createWebSocketTransport();
52
+ this.rpcTimeoutMs = options.rpcTimeoutMs ?? 30_000;
53
+ this.now = options.now ?? (() => Date.now());
54
+ this.transport.onMessage = (data) => this.handleIncoming(data);
55
+ this.transport.onClose = (code, reason) => this.handleClose(code, reason);
56
+ this.transport.onError = () => {
57
+ /* surfaced via close / rpc errors; do not treat as fatal on its own */
58
+ };
59
+ }
60
+ // ─── Public accessors ─────────────────────────────────────────────────────
61
+ get state() {
62
+ return this._state;
63
+ }
64
+ get serverId() {
65
+ return this._serverId;
66
+ }
67
+ get features() {
68
+ return this._features;
69
+ }
70
+ get serverCapabilities() {
71
+ return this._serverCapabilities;
72
+ }
73
+ /** True iff the daemon advertised the given `server_info.features.*` flag truthy. */
74
+ hasFeature(flag) {
75
+ return Boolean(this._features[flag]);
76
+ }
77
+ // ─── Lifecycle ────────────────────────────────────────────────────────────
78
+ /**
79
+ * Open the socket, send `hello`, and await `status`/`server_info`. Resolves with the
80
+ * recorded server info (serverId + features).
81
+ */
82
+ async connect() {
83
+ this.setState("connecting");
84
+ await this.transport.connect(this.options.url);
85
+ const handshake = new Promise((resolve, reject) => {
86
+ this.helloResolve = resolve;
87
+ this.helloReject = reject;
88
+ });
89
+ this.transport.sendText(JSON.stringify({
90
+ type: "hello",
91
+ clientId: this.options.clientId,
92
+ clientType: this.options.clientType,
93
+ protocolVersion: this.options.protocolVersion ?? PROTOCOL_VERSION,
94
+ appVersion: this.options.appVersion,
95
+ capabilities: this.options.capabilities,
96
+ }));
97
+ const info = await handshake;
98
+ this._serverId = info.serverId;
99
+ this._features = info.features;
100
+ this._serverCapabilities = info.capabilities;
101
+ this.setState("open");
102
+ return info;
103
+ }
104
+ /** Close the socket cleanly. */
105
+ close(code = 1000, reason = "") {
106
+ this.setState("closing");
107
+ this.transport.close(code, reason);
108
+ }
109
+ // ─── RPC / send ───────────────────────────────────────────────────────────
110
+ /**
111
+ * Send a correlated session RPC. Resolves with the response `payload` when a session message
112
+ * carrying the same `requestId` arrives, rejects with `RpcError` on a correlated `rpc_error`,
113
+ * and rejects with `RpcTimeoutError` (operation error only, socket stays alive) on timeout.
114
+ */
115
+ request(type, params = {}, timeoutMs) {
116
+ const requestId = params.requestId ?? newRequestId();
117
+ return new Promise((resolve, reject) => {
118
+ const timeout = timeoutMs ?? this.rpcTimeoutMs;
119
+ const timer = timeout > 0
120
+ ? setTimeout(() => {
121
+ this.pending.delete(requestId);
122
+ reject(new RpcTimeoutError(requestId));
123
+ }, timeout)
124
+ : null;
125
+ this.pending.set(requestId, {
126
+ resolve: (payload) => resolve(payload),
127
+ reject,
128
+ timer,
129
+ });
130
+ this.sendSession({ type, ...params, requestId });
131
+ });
132
+ }
133
+ /** Send a fire-and-forget session message (wrapped in a `session` envelope). */
134
+ sendSession(message) {
135
+ this.transport.sendText(JSON.stringify({ type: "session", message }));
136
+ }
137
+ /** Send a raw binary frame (terminal / file-transfer). */
138
+ sendBinary(data) {
139
+ this.transport.sendBinary(data);
140
+ }
141
+ /**
142
+ * Send a JSON `ping` and await the correlated `pong`. Liveness rides on the data path because
143
+ * browser/RN WebSocket APIs do not expose RFC6455 ping.
144
+ */
145
+ ping(timeoutMs = 10_000) {
146
+ const requestId = newRequestId();
147
+ return new Promise((resolve, reject) => {
148
+ const timer = timeoutMs > 0
149
+ ? setTimeout(() => {
150
+ this.pending.delete(requestId);
151
+ reject(new RpcTimeoutError(requestId));
152
+ }, timeoutMs)
153
+ : null;
154
+ this.pending.set(requestId, {
155
+ resolve: () => resolve(),
156
+ reject,
157
+ timer,
158
+ });
159
+ this.transport.sendText(JSON.stringify({ type: "ping", requestId, clientSentAt: this.now() }));
160
+ });
161
+ }
162
+ // ─── Subscriptions ──────────────────────────────────────────────────────────
163
+ /** Subscribe to all inbound session messages (e.g. `agent_stream`, `agent_update`). */
164
+ onSessionMessage(handler) {
165
+ this.sessionHandlers.add(handler);
166
+ return () => this.sessionHandlers.delete(handler);
167
+ }
168
+ /** Subscribe to decoded inbound terminal binary frames. */
169
+ onTerminalFrame(handler) {
170
+ this.terminalHandlers.add(handler);
171
+ return () => this.terminalHandlers.delete(handler);
172
+ }
173
+ /** Subscribe to decoded inbound file-transfer binary frames (download/upload chunks). */
174
+ onFileTransferFrame(handler) {
175
+ this.fileTransferHandlers.add(handler);
176
+ return () => this.fileTransferHandlers.delete(handler);
177
+ }
178
+ /** Subscribe to connection-state transitions. */
179
+ onStateChange(handler) {
180
+ this.stateHandlers.add(handler);
181
+ return () => this.stateHandlers.delete(handler);
182
+ }
183
+ // ─── Internals ──────────────────────────────────────────────────────────────
184
+ setState(next) {
185
+ if (this._state === next)
186
+ return;
187
+ this._state = next;
188
+ for (const handler of this.stateHandlers)
189
+ handler(next);
190
+ }
191
+ handleClose(_code, reason) {
192
+ // Reject the in-flight handshake if the socket closed before server_info.
193
+ if (this.helloReject) {
194
+ this.helloReject(new Error(`socket closed during handshake: ${reason}`));
195
+ this.helloResolve = null;
196
+ this.helloReject = null;
197
+ }
198
+ // Reject all pending RPCs — the socket is gone (distinct from an RPC timeout).
199
+ for (const [, pending] of this.pending) {
200
+ if (pending.timer)
201
+ clearTimeout(pending.timer);
202
+ pending.reject(new Error(`socket closed: ${reason}`));
203
+ }
204
+ this.pending.clear();
205
+ this.setState("closed");
206
+ }
207
+ handleIncoming(data) {
208
+ if (typeof data === "string") {
209
+ this.handleTextFrame(data);
210
+ return;
211
+ }
212
+ if (data instanceof ArrayBuffer) {
213
+ this.handleBinaryFrame(new Uint8Array(data));
214
+ return;
215
+ }
216
+ // Blob (browser) — read asynchronously.
217
+ if (typeof data.arrayBuffer === "function") {
218
+ void data.arrayBuffer().then((buf) => this.handleBinaryFrame(new Uint8Array(buf)));
219
+ }
220
+ }
221
+ /**
222
+ * Route an inbound binary frame by its opcode byte: file-transfer opcodes (`0x10`–`0x13`) go to
223
+ * `fileTransferHandlers`, everything else decodes as a terminal frame. Two independent binary
224
+ * protocols share one opcode byte's numeric range without colliding — see
225
+ * `@av-pi-studio/protocol`'s `TerminalOpcode` (`0x01`–`0x05`) vs `FileTransferOpcode`
226
+ * (`0x10`–`0x13`).
227
+ */
228
+ handleBinaryFrame(bytes) {
229
+ const opcodeByte = bytes[0];
230
+ const isFileTransfer = opcodeByte !== undefined &&
231
+ Object.values(FileTransferOpcode).includes(opcodeByte);
232
+ if (isFileTransfer) {
233
+ const frame = tryDecodeFileTransferFrame(bytes);
234
+ if (!frame)
235
+ return; // malformed frame — drop rather than throw
236
+ for (const handler of this.fileTransferHandlers)
237
+ handler(frame);
238
+ return;
239
+ }
240
+ const frame = decodeTerminalFrame(bytes);
241
+ for (const handler of this.terminalHandlers)
242
+ handler(frame);
243
+ }
244
+ handleTextFrame(raw) {
245
+ let parsed;
246
+ try {
247
+ parsed = JSON.parse(raw);
248
+ }
249
+ catch {
250
+ return; // ignore malformed frames
251
+ }
252
+ const envelope = parsed;
253
+ switch (envelope.type) {
254
+ case "status":
255
+ this.handleStatus(envelope);
256
+ return;
257
+ case "pong":
258
+ this.resolvePending(envelope.requestId, undefined);
259
+ return;
260
+ case "ping":
261
+ // Some daemons send keepalive pings; reply with a pong.
262
+ this.transport.sendText(JSON.stringify({
263
+ type: "pong",
264
+ requestId: envelope.requestId,
265
+ serverReceivedAt: this.now(),
266
+ serverSentAt: this.now(),
267
+ }));
268
+ return;
269
+ case "session":
270
+ this.handleSession(envelope.message);
271
+ return;
272
+ default:
273
+ return; // unknown top-level envelope — ignore
274
+ }
275
+ }
276
+ handleStatus(envelope) {
277
+ const payload = envelope.payload;
278
+ if (payload?.status === "server_info" && this.helloResolve) {
279
+ this.helloResolve(payload);
280
+ this.helloResolve = null;
281
+ this.helloReject = null;
282
+ }
283
+ }
284
+ handleSession(message) {
285
+ if (!message || typeof message !== "object")
286
+ return;
287
+ const msg = message;
288
+ // Correlated rpc_error → reject the matching pending RPC.
289
+ if (msg.type === "rpc_error" && typeof msg.requestId === "string") {
290
+ const pending = this.pending.get(msg.requestId);
291
+ if (pending) {
292
+ if (pending.timer)
293
+ clearTimeout(pending.timer);
294
+ this.pending.delete(msg.requestId);
295
+ pending.reject(new RpcError(msg.message ?? msg.error ?? "RPC failed", msg.requestId, msg.code));
296
+ }
297
+ return;
298
+ }
299
+ // Correlated response → resolve the matching pending RPC (and still fan out).
300
+ if (typeof msg.requestId === "string" && this.pending.has(msg.requestId)) {
301
+ const payload = "payload" in msg ? msg.payload : msg;
302
+ this.resolvePending(msg.requestId, payload);
303
+ }
304
+ // Fan out to subscribers (streams, updates, uncorrelated broadcasts).
305
+ for (const handler of this.sessionHandlers)
306
+ handler(message);
307
+ }
308
+ resolvePending(requestId, payload) {
309
+ const pending = this.pending.get(requestId);
310
+ if (!pending)
311
+ return;
312
+ if (pending.timer)
313
+ clearTimeout(pending.timer);
314
+ this.pending.delete(requestId);
315
+ pending.resolve(payload);
316
+ }
317
+ }
318
+ //# sourceMappingURL=daemon-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"daemon-client.js","sourceRoot":"","sources":["../src/daemon-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,kBAAkB,GAMnB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAgB1D,4DAA4D;AAC5D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAElC,yCAAyC;AACzC,SAAS,YAAY;IACnB,+EAA+E;IAC/E,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,MAAM,CAAC,UAAU,KAAK,UAAU,EAAE,CAAC;QAC7E,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC;IAC7B,CAAC;IACD,OAAO,OAAO,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC;AACrF,CAAC;AAwBD,2DAA2D;AAC3D,MAAM,OAAO,QAAS,SAAQ,KAAK;IAGtB;IACA;IAHX,YACE,OAAe,EACN,SAAiB,EACjB,IAAa;QAEtB,KAAK,CAAC,OAAO,CAAC,CAAC;QAHN,cAAS,GAAT,SAAS,CAAQ;QACjB,SAAI,GAAJ,IAAI,CAAS;QAGtB,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;IACzB,CAAC;CACF;AAED,mFAAmF;AACnF,MAAM,OAAO,eAAgB,SAAQ,KAAK;IACnB;IAArB,YAAqB,S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,MAAM,OAAO,GAAG,SAAS,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;YACrD,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAC9C,CAAC;QAED,sEAAsE;QACtE,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,eAAe;YAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/D,CAAC;IAEO,cAAc,CAAC,SAAiB,EAAE,OAAgB;QACxD,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO;YAAE,OAAO;QACrB,IAAI,OAAO,CAAC,KAAK;YAAE,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAC/B,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;CACF"}
@@ -0,0 +1,30 @@
1
+ import type { DaemonClient } from "./daemon-client.js";
2
+ /**
3
+ * Client-side demux + assembly for binary file downloads (features/file-explorer-transfer.md
4
+ * § Binary transfer frames). Mirrors `TerminalStreamRouter`'s inbound-frame-routing shape, but a
5
+ * download is a one-shot request/response rather than a persistent per-slot subscription: request
6
+ * a token, request the download, await the assembled bytes.
7
+ */
8
+ export interface DownloadedFile {
9
+ bytes: Uint8Array;
10
+ fileName?: string;
11
+ mimeType?: string;
12
+ }
13
+ export declare class FileTransferClient {
14
+ private readonly daemon;
15
+ private readonly pending;
16
+ private nextStream;
17
+ private detach;
18
+ constructor(daemon: DaemonClient);
19
+ /** Begin routing inbound file-transfer frames. Idempotent. */
20
+ start(): void;
21
+ /** Stop routing inbound frames. Any downloads still pending are rejected. */
22
+ stop(): void;
23
+ /**
24
+ * Download the file at `path`: requests a single-use token, then requests the chunked
25
+ * transfer, assembling `Begin → Chunk* → End` frames into one buffer.
26
+ */
27
+ download(path: string): Promise<DownloadedFile>;
28
+ private dispatch;
29
+ }
30
+ //# sourceMappingURL=file-transfer-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-transfer-client.d.ts","sourceRoot":"","sources":["../src/file-transfer-client.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;;;GAKG;AAEH,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AA+BD,qBAAa,kBAAkB;IAKjB,OAAO,CAAC,QAAQ,CAAC,MAAM;IAJnC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAsC;IAC9D,OAAO,CAAC,UAAU,CAAK;IACvB,OAAO,CAAC,MAAM,CAA6B;gBAEd,MAAM,EAAE,YAAY;IAEjD,8DAA8D;IAC9D,KAAK,IAAI,IAAI;IAKb,6EAA6E;IAC7E,IAAI,IAAI,IAAI;IASZ;;;OAGG;IACG,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IA0BrD,OAAO,CAAC,QAAQ;CAyBjB"}