@av-pi-studio/cli 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.
Files changed (54) hide show
  1. package/dist/.tsbuildinfo +1 -0
  2. package/dist/agent-commands.d.ts +70 -0
  3. package/dist/agent-commands.d.ts.map +1 -0
  4. package/dist/agent-commands.js +296 -0
  5. package/dist/agent-commands.js.map +1 -0
  6. package/dist/cli-core.d.ts +55 -0
  7. package/dist/cli-core.d.ts.map +1 -0
  8. package/dist/cli-core.js +85 -0
  9. package/dist/cli-core.js.map +1 -0
  10. package/dist/cli.d.ts +3 -0
  11. package/dist/cli.d.ts.map +1 -0
  12. package/dist/cli.js +16 -0
  13. package/dist/cli.js.map +1 -0
  14. package/dist/client-id.d.ts +12 -0
  15. package/dist/client-id.d.ts.map +1 -0
  16. package/dist/client-id.js +47 -0
  17. package/dist/client-id.js.map +1 -0
  18. package/dist/connection.d.ts +44 -0
  19. package/dist/connection.d.ts.map +1 -0
  20. package/dist/connection.js +83 -0
  21. package/dist/connection.js.map +1 -0
  22. package/dist/daemon-commands.d.ts +10 -0
  23. package/dist/daemon-commands.d.ts.map +1 -0
  24. package/dist/daemon-commands.js +108 -0
  25. package/dist/daemon-commands.js.map +1 -0
  26. package/dist/daemon-control.d.ts +67 -0
  27. package/dist/daemon-control.d.ts.map +1 -0
  28. package/dist/daemon-control.js +140 -0
  29. package/dist/daemon-control.js.map +1 -0
  30. package/dist/feature-commands.d.ts +56 -0
  31. package/dist/feature-commands.d.ts.map +1 -0
  32. package/dist/feature-commands.js +250 -0
  33. package/dist/feature-commands.js.map +1 -0
  34. package/dist/index.d.ts +15 -0
  35. package/dist/index.d.ts.map +1 -0
  36. package/dist/index.js +18 -0
  37. package/dist/index.js.map +1 -0
  38. package/dist/output.d.ts +25 -0
  39. package/dist/output.d.ts.map +1 -0
  40. package/dist/output.js +65 -0
  41. package/dist/output.js.map +1 -0
  42. package/dist/pairing.d.ts +17 -0
  43. package/dist/pairing.d.ts.map +1 -0
  44. package/dist/pairing.js +33 -0
  45. package/dist/pairing.js.map +1 -0
  46. package/dist/program.d.ts +17 -0
  47. package/dist/program.d.ts.map +1 -0
  48. package/dist/program.js +75 -0
  49. package/dist/program.js.map +1 -0
  50. package/dist/qr.d.ts +6 -0
  51. package/dist/qr.d.ts.map +1 -0
  52. package/dist/qr.js +9 -0
  53. package/dist/qr.js.map +1 -0
  54. package/package.json +34 -0
@@ -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","../../client/dist/transport.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","../../client/dist/daemon-client.d.ts","../../client/dist/pistudio-client.d.ts","../../client/dist/terminal-stream-router.d.ts","../../client/dist/file-transfer-client.d.ts","../../client/dist/reconnect.d.ts","../../client/dist/index.d.ts","../../../node_modules/commander/typings/index.d.ts","../../../node_modules/commander/typings/esm.d.mts","../src/client-id.ts","../src/connection.ts","../../../node_modules/bcryptjs/types.d.ts","../../../node_modules/bcryptjs/index.d.ts","../src/daemon-control.ts","../src/output.ts","../src/cli-core.ts","../src/agent-commands.ts","../src/pairing.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","../../../node_modules/@types/qrcode/index.d.ts","../src/qr.ts","../src/daemon-commands.ts","../src/feature-commands.ts","../src/program.ts","../src/cli.ts","../src/index.ts"],"fileIdsList":[[108,153,154,156,173,174],[108,155,156,173,174],[156,173,174],[108,156,161,173,174,191],[108,156,157,162,167,173,174,176,188,199],[108,156,157,158,167,173,174,176],[108,156,173,174],[103,104,105,108,156,173,174],[108,156,159,173,174,200],[108,156,160,161,168,173,174,177],[108,156,161,173,174,188,196],[108,156,162,164,167,173,174,176],[108,155,156,163,173,174],[108,156,164,165,173,174],[108,156,166,167,173,174],[108,155,156,167,173,174],[108,156,167,168,169,173,174,188,199],[108,156,167,168,169,173,174,183,188,191],[108,149,156,164,167,170,173,174,176,188,199],[108,156,167,168,170,171,173,174,176,188,196,199],[108,156,170,172,173,174,188,196,199],[106,107,108,109,110,111,112,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,195,196,197,198,199,200,201,202,203,204,205],[108,156,167,173,174],[108,156,173,174,175,199],[108,156,164,167,173,174,176,188],[108,156,173,174,177],[108,156,173,174,178],[108,155,156,173,174,179],[108,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,195,196,197,198,199,200,201,202,203,204,205],[108,156,173,174,181],[108,156,173,174,182],[108,156,167,173,174,183,184],[108,156,173,174,183,185,200,202],[108,156,168,173,174],[108,156,167,173,174,188,189,191],[108,156,173,174,190,191],[108,156,173,174,188,189],[108,156,173,174,191],[108,156,173,174,192],[108,153,156,173,174,188,193,199],[108,156,167,173,174,194,195],[108,156,173,174,194,195],[108,156,161,173,174,176,188,196],[108,156,173,174,197],[108,156,173,174,176,198],[108,156,170,173,174,182,199],[108,156,161,173,174,200],[108,156,173,174,188,201],[108,156,173,174,175,202],[108,156,173,174,203],[108,149,156,173,174],[108,149,156,167,169,173,174,179,188,191,199,201,202,204],[108,156,173,174,188,205],[108,156,173,174,188,206],[96,108,156,173,174],[92,108,156,173,174],[108,121,125,156,173,174,199],[108,121,156,173,174,188,199],[108,116,156,173,174],[108,118,121,156,173,174,196,199],[108,156,173,174,176,196],[108,156,173,174,206],[108,116,156,173,174,206],[108,118,121,156,173,174,176,199],[108,113,114,117,120,156,167,173,174,188,199],[108,121,128,156,173,174],[108,113,119,156,173,174],[108,121,142,143,156,173,174],[108,117,121,156,173,174,191,199,206],[108,142,156,173,174,206],[108,115,116,156,173,174,206],[108,121,156,173,174],[108,115,116,117,118,119,120,121,122,123,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,143,144,145,146,147,148,156,173,174],[108,121,136,156,173,174],[108,121,128,129,156,173,174],[108,119,121,129,130,156,173,174],[108,120,156,173,174],[108,113,116,121,156,173,174],[108,121,125,129,130,156,173,174],[108,125,156,173,174],[108,119,121,124,156,173,174,199],[108,113,118,121,128,156,173,174],[108,156,173,174,188],[108,116,121,142,156,173,174,204,206],[75,108,156,173,174],[63,64,65,108,156,173,174],[66,67,108,156,173,174],[63,64,66,68,69,74,108,156,173,174],[64,66,108,156,173,174],[74,108,156,173,174],[66,108,156,173,174],[63,64,66,69,70,71,72,73,108,156,173,174],[85,91,93,99,100,108,156,173,174],[91,95,98,99,108,156,173,174],[108,156,173,174,211],[108,156,168,173,174,177,178],[91,94,108,156,173,174],[93,94,95,98,100,102,108,156,173,174,208],[95,97,108,156,157,168,170,173,174,178],[91,93,99,100,108,156,173,174],[85,94,95,98,99,100,101,102,108,156,173,174,208,209,210,211],[108,156,168,173,174,178],[93,100,101,108,156,173,174,209,210],[108,156,173,174,207],[62,85,108,156,173,174],[86,108,156,173,174],[62,86,87,88,89,90,108,156,173,174],[85,86,108,156,173,174],[76,108,156,173,174],[80,81,108,156,173,174],[77,108,156,173,174],[77,78,79,82,83,84,108,156,173,174]],"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},"f01c0f72fb4d821682d4960b4f2ecf545615e6c06d9d938ac96352f253407298",{"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","e3de3e3782a4766bf562e4fcb95ae3312bd1b8495563a92d1f2a7d986edcf613","0849e7221138eccabb41f2f3345aafcc324e92fdcc30ea2063460b7bd1f7f7a9","8502ccaa9d23af3d98e18841352fd0ed55545d4c16742ec60dad6ba97f21a7a5","f5cd12d2b96f3ebc782050c9f6e988bb209ec6c83b7be3c6cfba403e7f691bf2","cb60267447a8e1c066aa79337348a6f9a7baf23484ca561e99bdc488f98ec378","7bad3cd7532b3d948697e4daceb6493f3ded8b1226d806f19b5d2f3cfee23f37",{"version":"0237580177f1a858ab125992af8a6dfc29268fe7d4bac5308b9f462f88b0cd31","impliedFormat":1},{"version":"b124c0624b15412ace7d54644ade38d7a69db7e25488a1a4d2a8df6e11696538","impliedFormat":99},{"version":"02eaa09e731fd9bb31542725650ddafaf1b8a4b085944e94078ff2c4449514d7","signature":"dbac8e0a4fb342a5d165dfaa8ed8461c0ff9816b0996d935a5e46ac809fba6d1"},{"version":"69a95b94e79f3a558c983b01b833f2533eaef979ab962a3ac935e6838d56bdf4","signature":"73bdaa2c5adbc8314a30a72682ec801c6c039c9af3c8b008849ae896ca7fbf8f"},{"version":"07fcc9be98e12bd2f0f71a501a9bfbe2e53d38c50e8a5e84223fdd05bd8749c5","impliedFormat":99},{"version":"b887a4575db46263f82d7bde681bdc14526e4a2618a1172fef4206c467752d8f","impliedFormat":99},{"version":"c06bd742465f66bb2345fab633110a94099995ad37eeda08228ed05224969e1a","signature":"7cfb42f6ebb3e537bdfeddca7cbf73b40ff1ae2e9a4330d65765ff19922899eb"},{"version":"263b85cd6400df449ba32e76483da5981f0ba7c020a02151eb85ba9240ece263","signature":"248df3ea62e30f070f685187b914d77e784f9639f8080e9d513384a43c468dd3"},{"version":"819c01f46ae7240a649e45e837d25e4ad9f615630377539b37961183fe03a391","signature":"75a2b7d2b0acec60c90233c69cbace91635c7e933b7c3abc5878c4266483d623"},{"version":"1bd4d6599c91ca7d70af70564817a61f395b7e38a32a09da50ea10632f89d18f","signature":"5a72aeb2016327dcf798ef6e55ae289e78430e29b061e9aa96bec51b85b0e5b7"},{"version":"f319c4ecb50c004c3d2f73a601df3c27e003807de2178a69998fe0120e13ebda","signature":"9a1bbd623bd87c764278b90e01654f0129b0d0e18b7a09294cc921586ff74896"},{"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},{"version":"006d8ff9a051d61b0887b594b1e76c73314bb1a6fe39026867418937ea2259b3","impliedFormat":1},{"version":"3f70b6cfd45cfc9b4d3442e605701ac593eeddaff6d3bedffb2837548f3b4937","signature":"f5003ea18b51c39886595b07a913e804aa35b90cdb9edf39b23b12095ec8e27c"},{"version":"f6075126b11e376b28143dd17c8da946094968d2af57a22802345b0a8b4a0bd9","signature":"098f237b4edf3be119f37d601060bc83594b75ad783cfe62672df096835511ce"},{"version":"4cbab7a845b61d0d4f1cf600ab2629d799ce36361c48d157b589ec217cf68d07","signature":"6435bcc1999e839721cc1ce4ff4a1c074a3d8a7aee61c0353dafb22badecc97f"},{"version":"d19b5cf26cc027cf51bb5d8892600aa74aebf582fb570b58588de2fb4df62843","signature":"d195197c85b457f56f6558381a226b392d4d706a87ae5d19f03c26e20a6ef7ed"},{"version":"a271023d96b84891bac0bca38f2af8942a317a49bcea2224892f49c4a7d730d2","signature":"43e818adf60173644896298637f47b01d5819b17eda46eaa32d0c7d64724d012"},{"version":"6ad914241dc051ff006797205515400ffcf7eec515d88cc07ce4b00eefcb98bb","signature":"9b4aff927947a7f5f229689b0ce2586e4b2e9f5f703e77a44150a67179b21fa3"}],"root":[94,95,[98,102],[208,213]],"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":[[153,1],[154,1],[155,2],[108,3],[156,4],[157,5],[158,6],[103,7],[106,8],[104,7],[105,7],[159,9],[160,10],[161,11],[162,12],[163,13],[164,14],[165,14],[166,15],[167,16],[168,17],[169,18],[109,7],[107,7],[170,19],[171,20],[172,21],[206,22],[173,23],[174,7],[175,24],[176,25],[177,26],[178,27],[179,28],[180,29],[181,30],[182,31],[183,32],[184,32],[185,33],[186,7],[187,34],[188,35],[190,36],[189,37],[191,38],[192,39],[193,40],[194,41],[195,42],[196,43],[197,44],[198,45],[199,46],[200,47],[201,48],[202,49],[203,50],[110,7],[111,7],[112,7],[150,51],[151,7],[152,7],[204,52],[205,53],[207,54],[97,55],[96,7],[93,56],[92,7],[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],[128,57],[138,58],[127,57],[148,59],[119,60],[118,61],[147,62],[141,63],[146,64],[121,65],[135,66],[120,67],[144,68],[116,69],[115,62],[145,70],[117,71],[122,72],[123,7],[126,72],[113,7],[149,73],[139,74],[130,75],[131,76],[133,77],[129,78],[132,79],[142,62],[124,80],[125,81],[134,82],[114,83],[137,74],[136,72],[140,7],[143,84],[76,85],[66,86],[68,87],[75,88],[70,7],[71,7],[69,89],[72,90],[63,7],[64,7],[65,85],[67,91],[73,7],[74,92],[101,93],[100,94],[212,95],[94,96],[95,97],[209,98],[98,99],[210,100],[213,101],[99,7],[102,102],[211,103],[208,104],[86,105],[89,106],[91,107],[87,108],[90,106],[88,106],[62,7],[81,109],[82,110],[80,109],[79,111],[83,7],[85,112],[78,109],[84,109],[77,109]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
@@ -0,0 +1,70 @@
1
+ import type { DaemonClient } from "@av-pi-studio/client";
2
+ import type { AgentStreamEvent } from "@av-pi-studio/protocol";
3
+ import type { Command } from "commander";
4
+ import { type CliContext, type GlobalOptions } from "./cli-core.js";
5
+ /**
6
+ * Agent command group (features/cli.md § Command tree (agent); agent-sessions.md § Other
7
+ * operations). Each command maps to the same WS RPC as its app/MCP equivalent.
8
+ *
9
+ * RPC names follow the daemon's registered handlers where they exist (`create_agent_request`,
10
+ * `send_agent_prompt`, `interrupt_agent`, `update_agent`, `resume_agent`, `import_agent_session`,
11
+ * `fetch_agent_timeline_request`). Names for operations whose daemon handlers land in other sprints
12
+ * (`list_agents_request`, `archive_agent`, `delete_agent`, `inspect_agent_request`,
13
+ * `wait_for_agent`) are the canonical names per the scope and are flagged TODO(verify).
14
+ */
15
+ export declare const AGENT_RPC: {
16
+ readonly create: "create_agent_request";
17
+ readonly send: "send_agent_prompt";
18
+ readonly stop: "interrupt_agent";
19
+ readonly update: "update_agent";
20
+ readonly resume: "resume_agent";
21
+ readonly import: "import_agent_session";
22
+ readonly timeline: "fetch_agent_timeline_request";
23
+ readonly list: "list_agents_request";
24
+ readonly archive: "archive_agent";
25
+ readonly delete: "delete_agent";
26
+ readonly inspect: "inspect_agent_request";
27
+ readonly wait: "wait_for_agent";
28
+ };
29
+ /** Parse a `--provider pi/<model>` spec into provider id + optional model. */
30
+ export declare function parseProviderModel(spec?: string): {
31
+ provider: string;
32
+ model?: string;
33
+ };
34
+ /** Render one timeline/stream event as a single line. */
35
+ export declare function formatStreamEvent(event: AgentStreamEvent): string;
36
+ export interface RunOptions {
37
+ provider?: string;
38
+ worktree?: string;
39
+ cwd?: string;
40
+ json?: boolean;
41
+ }
42
+ /** `run` — create + run an agent, print its id. */
43
+ export declare function runAgent(client: DaemonClient, ctx: CliContext, prompt: string, opts: RunOptions): Promise<number>;
44
+ export interface LsOptions {
45
+ all?: boolean;
46
+ global?: boolean;
47
+ json?: boolean;
48
+ }
49
+ /** `ls` — list agents. `-a` all, `-g` global. */
50
+ export declare function lsAgents(client: DaemonClient, ctx: CliContext, opts: LsOptions): Promise<number>;
51
+ /** `send` — send a follow-up prompt. */
52
+ export declare function sendAgent(client: DaemonClient, ctx: CliContext, agentId: string, prompt: string, opts: GlobalOptions): Promise<number>;
53
+ /** `update` / `mode` — patch agent config. */
54
+ export declare function updateAgent(client: DaemonClient, ctx: CliContext, agentId: string, patch: Record<string, unknown>, opts: GlobalOptions): Promise<number>;
55
+ /** `inspect` — show agent detail. */
56
+ export declare function inspectAgent(client: DaemonClient, ctx: CliContext, agentId: string, opts: GlobalOptions): Promise<number>;
57
+ /** `logs` — fetch timeline history and print it. */
58
+ export declare function logsAgent(client: DaemonClient, ctx: CliContext, agentId: string, opts: GlobalOptions & {
59
+ limit?: number;
60
+ }): Promise<number>;
61
+ export interface AttachOptions extends GlobalOptions {
62
+ /** Resolve once a terminal turn event arrives (used by tests + `--until-idle`). */
63
+ untilTurnEnd?: boolean;
64
+ /** Abort the stream (SIGINT in production). */
65
+ signal?: AbortSignal;
66
+ }
67
+ /** `attach` — subscribe to the live timeline and stream events to the terminal. */
68
+ export declare function attachAgent(client: DaemonClient, ctx: CliContext, agentId: string, opts: AttachOptions): Promise<number>;
69
+ export declare function registerAgentCommands(program: Command, ctx: CliContext, setExit: (code: number) => void): void;
70
+ //# sourceMappingURL=agent-commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-commands.d.ts","sourceRoot":"","sources":["../src/agent-commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAuB,MAAM,eAAe,CAAC;AAGzF;;;;;;;;;GASG;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;CAcZ,CAAC;AAEX,8EAA8E;AAC9E,wBAAgB,kBAAkB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAMtF;AAED,yDAAyD;AACzD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAgCjE;AAOD,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,mDAAmD;AACnD,wBAAsB,QAAQ,CAC5B,MAAM,EAAE,YAAY,EACpB,GAAG,EAAE,UAAU,EACf,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,GACf,OAAO,CAAC,MAAM,CAAC,CAUjB;AAED,MAAM,WAAW,SAAS;IACxB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd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,EACf,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,MAAM,CAAC,CAwBjB;AAID,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC9B,IAAI,CAsLN"}
@@ -0,0 +1,296 @@
1
+ import { EXIT_OK, withDaemon } from "./cli-core.js";
2
+ import { renderJson, renderObject, renderTable } from "./output.js";
3
+ /**
4
+ * Agent command group (features/cli.md § Command tree (agent); agent-sessions.md § Other
5
+ * operations). Each command maps to the same WS RPC as its app/MCP equivalent.
6
+ *
7
+ * RPC names follow the daemon's registered handlers where they exist (`create_agent_request`,
8
+ * `send_agent_prompt`, `interrupt_agent`, `update_agent`, `resume_agent`, `import_agent_session`,
9
+ * `fetch_agent_timeline_request`). Names for operations whose daemon handlers land in other sprints
10
+ * (`list_agents_request`, `archive_agent`, `delete_agent`, `inspect_agent_request`,
11
+ * `wait_for_agent`) are the canonical names per the scope and are flagged TODO(verify).
12
+ */
13
+ export const AGENT_RPC = {
14
+ create: "create_agent_request",
15
+ send: "send_agent_prompt",
16
+ stop: "interrupt_agent",
17
+ update: "update_agent",
18
+ resume: "resume_agent",
19
+ import: "import_agent_session",
20
+ timeline: "fetch_agent_timeline_request",
21
+ // TODO(verify): daemon handlers for these land in later/integration sprints.
22
+ list: "list_agents_request",
23
+ archive: "archive_agent",
24
+ delete: "delete_agent",
25
+ inspect: "inspect_agent_request",
26
+ wait: "wait_for_agent",
27
+ };
28
+ /** Parse a `--provider pi/<model>` spec into provider id + optional model. */
29
+ export function parseProviderModel(spec) {
30
+ if (!spec || !spec.trim())
31
+ return { provider: "pi" };
32
+ const trimmed = spec.trim();
33
+ const slash = trimmed.indexOf("/");
34
+ if (slash === -1)
35
+ return { provider: trimmed };
36
+ return { provider: trimmed.slice(0, slash), model: trimmed.slice(slash + 1) || undefined };
37
+ }
38
+ /** Render one timeline/stream event as a single line. */
39
+ export function formatStreamEvent(event) {
40
+ switch (event.kind) {
41
+ case "user_message":
42
+ return `» ${event.text ?? ""}`;
43
+ case "assistant_message":
44
+ return `${event.text ?? ""}`;
45
+ case "reasoning":
46
+ return `· ${event.text ?? ""}`;
47
+ case "tool_call": {
48
+ const t = event.tool;
49
+ const detail = ("command" in t && t.command) ||
50
+ ("path" in t && t.path) ||
51
+ ("query" in t && t.query) ||
52
+ ("url" in t && t.url) ||
53
+ ("description" in t && t.description) ||
54
+ "";
55
+ return `[${t.kind}${event.status ? ` ${event.status}` : ""}] ${detail}`;
56
+ }
57
+ case "turn_started":
58
+ return `--- turn started ---`;
59
+ case "turn_completed":
60
+ return `--- turn completed ---`;
61
+ case "turn_failed":
62
+ return `--- turn failed: ${event.error ?? ""} ---`;
63
+ case "turn_canceled":
64
+ return `--- turn canceled ---`;
65
+ case "error":
66
+ return `!! ${event.message ?? "error"}`;
67
+ default:
68
+ return JSON.stringify(event);
69
+ }
70
+ }
71
+ const isTerminalEvent = (e) => e.kind === "turn_completed" || e.kind === "turn_failed" || e.kind === "turn_canceled";
72
+ /** `run` — create + run an agent, print its id. */
73
+ export async function runAgent(client, ctx, prompt, opts) {
74
+ const { provider, model } = parseProviderModel(opts.provider);
75
+ const config = { provider, cwd: opts.cwd ?? process.cwd() };
76
+ if (model)
77
+ config.model = model;
78
+ const params = { config, initialPrompt: prompt };
79
+ if (opts.worktree)
80
+ params.worktreeName = opts.worktree;
81
+ const payload = await client.request(AGENT_RPC.create, params);
82
+ ctx.sink.write(opts.json ? renderJson(payload) : payload.agentId);
83
+ return EXIT_OK;
84
+ }
85
+ /** `ls` — list agents. `-a` all, `-g` global. */
86
+ export async function lsAgents(client, ctx, opts) {
87
+ const payload = await client.request(AGENT_RPC.list, {
88
+ all: Boolean(opts.all),
89
+ global: Boolean(opts.global),
90
+ });
91
+ const agents = payload.agents ?? [];
92
+ ctx.sink.write(opts.json
93
+ ? renderJson(payload)
94
+ : renderTable(agents, ["agentId", "status", "provider", "title"]));
95
+ return EXIT_OK;
96
+ }
97
+ /** `send` — send a follow-up prompt. */
98
+ export async function sendAgent(client, ctx, agentId, prompt, opts) {
99
+ const payload = await client.request(AGENT_RPC.send, { agentId, prompt });
100
+ ctx.sink.write(opts.json ? renderJson(payload) : "sent");
101
+ return EXIT_OK;
102
+ }
103
+ /** Generic single-agent RPC by id (stop/archive/delete/reload/wait). */
104
+ async function simpleAgentRpc(client, ctx, type, agentId, okText, opts, extra = {}) {
105
+ const payload = await client.request(type, { agentId, ...extra });
106
+ ctx.sink.write(opts.json ? renderJson(payload) : okText);
107
+ return EXIT_OK;
108
+ }
109
+ /** `update` / `mode` — patch agent config. */
110
+ export async function updateAgent(client, ctx, agentId, patch, opts) {
111
+ const payload = await client.request(AGENT_RPC.update, { agentId, ...patch });
112
+ ctx.sink.write(opts.json ? renderJson(payload) : "updated");
113
+ return EXIT_OK;
114
+ }
115
+ /** `inspect` — show agent detail. */
116
+ export async function inspectAgent(client, ctx, agentId, opts) {
117
+ const payload = await client.request(AGENT_RPC.inspect, { agentId });
118
+ ctx.sink.write(opts.json ? renderJson(payload) : renderObject(payload));
119
+ return EXIT_OK;
120
+ }
121
+ /** `logs` — fetch timeline history and print it. */
122
+ export async function logsAgent(client, ctx, agentId, opts) {
123
+ const payload = await client.request(AGENT_RPC.timeline, {
124
+ agentId,
125
+ direction: "backward",
126
+ limit: opts.limit ?? 100,
127
+ });
128
+ if (opts.json) {
129
+ ctx.sink.write(renderJson(payload));
130
+ return EXIT_OK;
131
+ }
132
+ for (const item of payload.items ?? []) {
133
+ const event = item.event ?? item;
134
+ ctx.sink.write(formatStreamEvent(event));
135
+ }
136
+ return EXIT_OK;
137
+ }
138
+ /** `attach` — subscribe to the live timeline and stream events to the terminal. */
139
+ export function attachAgent(client, ctx, agentId, opts) {
140
+ return new Promise((resolve) => {
141
+ const unsubscribe = client.onSessionMessage((msg) => {
142
+ const m = msg;
143
+ if (m.type !== "agent_stream" || m.agentId !== agentId || !m.event)
144
+ return;
145
+ ctx.sink.write(opts.json ? renderJson(m.event) : formatStreamEvent(m.event));
146
+ if (opts.untilTurnEnd && isTerminalEvent(m.event)) {
147
+ unsubscribe();
148
+ resolve(EXIT_OK);
149
+ }
150
+ });
151
+ if (opts.signal) {
152
+ if (opts.signal.aborted) {
153
+ unsubscribe();
154
+ resolve(EXIT_OK);
155
+ return;
156
+ }
157
+ opts.signal.addEventListener("abort", () => {
158
+ unsubscribe();
159
+ resolve(EXIT_OK);
160
+ });
161
+ }
162
+ });
163
+ }
164
+ // ─── Commander wiring ───────────────────────────────────────────────────────────
165
+ export function registerAgentCommands(program, ctx, setExit) {
166
+ const g = () => program.opts();
167
+ const agent = program.command("agent").description("manage agents");
168
+ // ls (+ top-level alias)
169
+ const lsAction = (o) => withDaemon(ctx, g(), (client) => lsAgents(client, ctx, { all: o.all, global: o.global, json: g().json })).then(setExit);
170
+ agent
171
+ .command("ls")
172
+ .description("list agents")
173
+ .option("-a, --all", "include closed/archived agents")
174
+ .option("-g, --global", "include agents from all workspaces")
175
+ .action(lsAction);
176
+ program
177
+ .command("ls")
178
+ .description("list agents (alias of `agent ls`)")
179
+ .option("-a, --all", "include closed/archived agents")
180
+ .option("-g, --global", "include agents from all workspaces")
181
+ .action(lsAction);
182
+ // run (+ top-level alias)
183
+ const runAction = (prompt, o) => withDaemon(ctx, g(), (client) => runAgent(client, ctx, prompt, { ...o, json: g().json })).then(setExit);
184
+ agent
185
+ .command("run <prompt>")
186
+ .description("create and run an agent")
187
+ .option("-p, --provider <provider/model>", "provider id and model, e.g. pi/<model>")
188
+ .option("-w, --worktree <name>", "run inside a Pi-Studio worktree")
189
+ .option("--cwd <dir>", "working directory for the agent")
190
+ .action(runAction);
191
+ program
192
+ .command("run <prompt>")
193
+ .description("create and run an agent (alias of `agent run`)")
194
+ .option("-p, --provider <provider/model>", "provider id and model, e.g. pi/<model>")
195
+ .option("-w, --worktree <name>", "run inside a Pi-Studio worktree")
196
+ .option("--cwd <dir>", "working directory for the agent")
197
+ .action(runAction);
198
+ // attach (+ top-level alias)
199
+ const attachAction = (agentId, o) => withDaemon(ctx, g(), (client) => attachAgent(client, ctx, agentId, { json: g().json, untilTurnEnd: o.untilIdle })).then(setExit);
200
+ agent
201
+ .command("attach <agentId>")
202
+ .description("stream the live timeline")
203
+ .option("--until-idle", "exit when the current turn ends")
204
+ .action(attachAction);
205
+ program
206
+ .command("attach <agentId>")
207
+ .description("stream the live timeline (alias of `agent attach`)")
208
+ .option("--until-idle", "exit when the current turn ends")
209
+ .action(attachAction);
210
+ // logs (+ top-level alias)
211
+ const logsAction = (agentId, o) => withDaemon(ctx, g(), (client) => logsAgent(client, ctx, agentId, {
212
+ json: g().json,
213
+ limit: o.limit ? Number(o.limit) : undefined,
214
+ })).then(setExit);
215
+ agent
216
+ .command("logs <agentId>")
217
+ .description("fetch timeline history")
218
+ .option("-n, --limit <n>", "max events")
219
+ .action(logsAction);
220
+ program
221
+ .command("logs <agentId>")
222
+ .description("fetch timeline history (alias of `agent logs`)")
223
+ .option("-n, --limit <n>", "max events")
224
+ .action(logsAction);
225
+ // send (+ top-level alias)
226
+ const sendAction = (agentId, prompt) => withDaemon(ctx, g(), (client) => sendAgent(client, ctx, agentId, prompt, g())).then(setExit);
227
+ agent
228
+ .command("send <agentId> <prompt>")
229
+ .description("send a follow-up prompt")
230
+ .action(sendAction);
231
+ program
232
+ .command("send <agentId> <prompt>")
233
+ .description("send a follow-up prompt (alias of `agent send`)")
234
+ .action(sendAction);
235
+ // stop / archive / delete / reload / wait
236
+ agent
237
+ .command("stop <agentId>")
238
+ .description("interrupt the current turn")
239
+ .action((agentId) => withDaemon(ctx, g(), (client) => simpleAgentRpc(client, ctx, AGENT_RPC.stop, agentId, "stopped", g())).then(setExit));
240
+ agent
241
+ .command("archive <agentId>")
242
+ .description("archive (soft-delete) an agent")
243
+ .action((agentId) => withDaemon(ctx, g(), (client) => simpleAgentRpc(client, ctx, AGENT_RPC.archive, agentId, "archived", g())).then(setExit));
244
+ agent
245
+ .command("delete <agentId>")
246
+ .description("delete an agent")
247
+ .action((agentId) => withDaemon(ctx, g(), (client) => simpleAgentRpc(client, ctx, AGENT_RPC.delete, agentId, "deleted", g())).then(setExit));
248
+ agent
249
+ .command("reload <agentId>")
250
+ .description("reload/resume a closed session")
251
+ .action((agentId) => withDaemon(ctx, g(), (client) => simpleAgentRpc(client, ctx, AGENT_RPC.resume, agentId, "reloaded", g())).then(setExit));
252
+ agent
253
+ .command("wait <agentId>")
254
+ .description("wait for the agent to finish")
255
+ .action((agentId) => withDaemon(ctx, g(), (client) => simpleAgentRpc(client, ctx, AGENT_RPC.wait, agentId, "finished", g())).then(setExit));
256
+ // import
257
+ agent
258
+ .command("import <sessionRef>")
259
+ .description("import a provider-native session")
260
+ .action((sessionRef) => withDaemon(ctx, g(), async (client) => {
261
+ const payload = await client.request(AGENT_RPC.import, { sessionRef });
262
+ ctx.sink.write(g().json ? renderJson(payload) : renderObject(payload));
263
+ return EXIT_OK;
264
+ }).then(setExit));
265
+ // inspect
266
+ agent
267
+ .command("inspect <agentId>")
268
+ .description("show agent detail")
269
+ .action((agentId) => withDaemon(ctx, g(), (client) => inspectAgent(client, ctx, agentId, g())).then(setExit));
270
+ // update
271
+ agent
272
+ .command("update <agentId>")
273
+ .description("update agent config (model/mode/thinking/title)")
274
+ .option("--model <model>", "set the model")
275
+ .option("--mode <modeId>", "set the mode")
276
+ .option("--thinking <id>", "set the thinking option")
277
+ .option("--title <title>", "set the title")
278
+ .action((agentId, o) => {
279
+ const patch = {};
280
+ if (o.model)
281
+ patch.model = o.model;
282
+ if (o.mode)
283
+ patch.modeId = o.mode;
284
+ if (o.thinking)
285
+ patch.thinkingOptionId = o.thinking;
286
+ if (o.title)
287
+ patch.title = o.title;
288
+ return withDaemon(ctx, g(), (client) => updateAgent(client, ctx, agentId, patch, g())).then(setExit);
289
+ });
290
+ // mode (shortcut for update --mode)
291
+ agent
292
+ .command("mode <agentId> <modeId>")
293
+ .description("set the agent mode")
294
+ .action((agentId, modeId) => withDaemon(ctx, g(), (client) => updateAgent(client, ctx, agentId, { modeId }, g())).then(setExit));
295
+ }
296
+ //# sourceMappingURL=agent-commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-commands.js","sourceRoot":"","sources":["../src/agent-commands.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEpE;;;;;;;;;GASG;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,MAAM,EAAE,sBAAsB;IAC9B,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,iBAAiB;IACvB,MAAM,EAAE,cAAc;IACtB,MAAM,EAAE,cAAc;IACtB,MAAM,EAAE,sBAAsB;IAC9B,QAAQ,EAAE,8BAA8B;IACxC,6EAA6E;IAC7E,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,eAAe;IACxB,MAAM,EAAE,cAAc;IACtB,OAAO,EAAE,uBAAuB;IAChC,IAAI,EAAE,gBAAgB;CACd,CAAC;AAEX,8EAA8E;AAC9E,MAAM,UAAU,kBAAkB,CAAC,IAAa;IAC9C,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACrD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAC5B,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACnC,IAAI,KAAK,KAAK,CAAC,CAAC;QAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;IAC/C,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,KAAK,EAAE,O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AAE,CAAC,EAAE,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CACzF,OAAO,CACR,CAAC;IACJ,CAAC,CAAC,CAAC;IAEL,oCAAoC;IACpC,KAAK;SACF,OAAO,CAAC,yBAAyB,CAAC;SAClC,WAAW,CAAC,oBAAoB,CAAC;SACjC,MAAM,CAAC,CAAC,OAAe,EAAE,MAAc,EAAE,EAAE,CAC1C,UAAU,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CACvF,OAAO,CACR,CACF,CAAC;AACN,CAAC"}
@@ -0,0 +1,55 @@
1
+ import { DaemonClient } from "@av-pi-studio/client";
2
+ import { type ConnectOptions, connectDaemon } from "./connection.js";
3
+ import type { DaemonRuntime } from "./daemon-control.js";
4
+ import { type OutputFormat, type OutputSink } from "./output.js";
5
+ /**
6
+ * CLI core (features/cli.md § Behavior — main): connect a `DaemonClient`, dispatch a subcommand to
7
+ * one or more WS RPCs, render output, and produce an exit code. The Commander program (program.ts)
8
+ * is a thin shell over these helpers; tests drive the helpers directly with an injected transport.
9
+ */
10
+ /** Process exit codes. */
11
+ export declare const EXIT_OK = 0;
12
+ export declare const EXIT_ERROR = 1;
13
+ export declare const EXIT_CONNECTION = 2;
14
+ /** Global options shared by every command, parsed from the root Commander program. */
15
+ export interface GlobalOptions {
16
+ host?: string;
17
+ password?: string;
18
+ json?: boolean;
19
+ home?: string;
20
+ }
21
+ /** Injectable runtime context (production defaults; tests override transport/sink/clientId). */
22
+ export interface CliContext {
23
+ /** Connect a daemon client for the given global options. */
24
+ connect(opts: ConnectOptions): ReturnType<typeof connectDaemon>;
25
+ /** Output sink (stdout/stderr). */
26
+ sink: OutputSink;
27
+ /** Default RPC timeout (ms). */
28
+ rpcTimeoutMs?: number;
29
+ /** Test hooks injected into the connection (transport / fixed clientId). */
30
+ connectOverrides?: Pick<ConnectOptions, "transport" | "clientId" | "home">;
31
+ /** Local daemon control runtime (process/network side-effects); tests inject fakes. */
32
+ daemon?: DaemonRuntime;
33
+ }
34
+ /** Default production context. */
35
+ export declare function defaultContext(): CliContext;
36
+ /** Resolve the output format from global options. */
37
+ export declare function formatOf(opts: GlobalOptions): OutputFormat;
38
+ /** Map global options + context overrides into ConnectOptions. */
39
+ export declare function connectOptionsFrom(ctx: CliContext, opts: GlobalOptions): ConnectOptions;
40
+ /**
41
+ * A command action that already has an open daemon client. Returns an exit code (defaults to OK).
42
+ */
43
+ export type ConnectedAction = (client: DaemonClient, ctx: CliContext, opts: GlobalOptions) => Promise<number | void> | number | void;
44
+ /**
45
+ * Run an action with a connected daemon client, translating connection/RPC failures into the
46
+ * appropriate exit code + error message. Always closes the client.
47
+ */
48
+ export declare function withDaemon(ctx: CliContext, opts: GlobalOptions, action: ConnectedAction): Promise<number>;
49
+ /**
50
+ * Convenience: run a single RPC and render its payload, then return an exit code. `render` turns the
51
+ * payload into text for the table view; the JSON view always prints the raw payload.
52
+ */
53
+ export declare function runRpc(ctx: CliContext, opts: GlobalOptions, type: string, params: Record<string, unknown>, render: (payload: unknown) => string): Promise<number>;
54
+ export declare function errorMessage(error: unknown): string;
55
+ //# sourceMappingURL=cli-core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-core.d.ts","sourceRoot":"","sources":["../src/cli-core.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA6B,MAAM,sBAAsB,CAAC;AAE/E,OAAO,EAAE,KAAK,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,KAAK,YAAY,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