@saws/cli 1.0.11 → 2.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/.tsbuildinfo +1 -0
  2. package/dist/bin/saws.d.ts +1 -0
  3. package/dist/bin/saws.d.ts.map +1 -0
  4. package/dist/bin/saws.js +51 -36
  5. package/dist/commands/deploy/command.d.ts +8 -0
  6. package/dist/commands/deploy/command.d.ts.map +1 -0
  7. package/dist/commands/deploy/command.js +21 -0
  8. package/dist/{src/commands/dev → commands/deploy}/index.d.ts +1 -0
  9. package/dist/commands/deploy/index.d.ts.map +1 -0
  10. package/dist/commands/deploy/index.js +9 -0
  11. package/dist/commands/dev/command.d.ts +7 -0
  12. package/dist/commands/dev/command.d.ts.map +1 -0
  13. package/dist/commands/dev/command.js +63 -0
  14. package/dist/{src/commands/execute → commands/dev}/index.d.ts +1 -0
  15. package/dist/commands/dev/index.d.ts.map +1 -0
  16. package/dist/commands/dev/index.js +8 -0
  17. package/dist/commands/dev/tui/dev-tui.d.ts +18 -0
  18. package/dist/commands/dev/tui/dev-tui.d.ts.map +1 -0
  19. package/dist/commands/dev/tui/dev-tui.js +146 -0
  20. package/dist/commands/host/command.d.ts +8 -0
  21. package/dist/commands/host/command.d.ts.map +1 -0
  22. package/dist/commands/host/command.js +24 -0
  23. package/dist/commands/host/command.test.d.ts +2 -0
  24. package/dist/commands/host/command.test.d.ts.map +1 -0
  25. package/dist/commands/host/command.test.js +13 -0
  26. package/dist/{src/commands/init → commands/host}/index.d.ts +1 -0
  27. package/dist/commands/host/index.d.ts.map +1 -0
  28. package/dist/commands/host/index.js +10 -0
  29. package/dist/commands/init/command.d.ts +7 -0
  30. package/dist/commands/init/command.d.ts.map +1 -0
  31. package/dist/commands/init/command.js +15 -0
  32. package/dist/commands/init/command.test.d.ts +2 -0
  33. package/dist/commands/init/command.test.d.ts.map +1 -0
  34. package/dist/commands/init/command.test.js +40 -0
  35. package/dist/{src/commands/deploy → commands/init}/index.d.ts +1 -0
  36. package/dist/commands/init/index.d.ts.map +1 -0
  37. package/dist/commands/init/index.js +10 -0
  38. package/dist/commands/secrets/command.d.ts +8 -0
  39. package/dist/commands/secrets/command.d.ts.map +1 -0
  40. package/dist/commands/secrets/command.js +16 -0
  41. package/dist/commands/secrets/index.d.ts +3 -0
  42. package/dist/commands/secrets/index.d.ts.map +1 -0
  43. package/dist/commands/secrets/index.js +9 -0
  44. package/dist/hosts.d.ts +4 -0
  45. package/dist/hosts.d.ts.map +1 -0
  46. package/dist/hosts.js +17 -0
  47. package/package.json +24 -18
  48. package/README.md +0 -62
  49. package/dist/src/commands/deploy/command.d.ts +0 -3
  50. package/dist/src/commands/deploy/command.js +0 -16
  51. package/dist/src/commands/deploy/index.js +0 -11
  52. package/dist/src/commands/dev/command.d.ts +0 -1
  53. package/dist/src/commands/dev/command.js +0 -22
  54. package/dist/src/commands/dev/index.js +0 -10
  55. package/dist/src/commands/execute/command.d.ts +0 -3
  56. package/dist/src/commands/execute/command.js +0 -41
  57. package/dist/src/commands/execute/index.js +0 -12
  58. package/dist/src/commands/init/command.d.ts +0 -1
  59. package/dist/src/commands/init/command.js +0 -23
  60. package/dist/src/commands/init/index.js +0 -9
  61. package/dist/src/commands/init/templates/gitignore.template.d.ts +0 -1
  62. package/dist/src/commands/init/templates/gitignore.template.js +0 -13
  63. package/dist/src/commands/init/templates/saws-js.template.d.ts +0 -3
  64. package/dist/src/commands/init/templates/saws-js.template.js +0 -12
  65. package/dist/src/commands/init/templates/tsconfig-json.template.d.ts +0 -1
  66. package/dist/src/commands/init/templates/tsconfig-json.template.js +0 -25
  67. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -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.dom.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.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../host/dist/host-readiness.d.ts","../../host/dist/host.d.ts","../../host/dist/index.d.ts","../../../node_modules/commander/typings/index.d.ts","../../../node_modules/commander/typings/esm.d.mts","../../core/dist/service-types.d.ts","../../core/dist/service-definition.d.ts","../../core/dist/context.d.ts","../../core/dist/find-service-definition.d.ts","../../core/dist/get-saws-config.d.ts","../../core/dist/service-commands.d.ts","../../core/dist/index.d.ts","../src/hosts.ts","../src/commands/deploy/command.ts","../src/commands/deploy/index.ts","../src/commands/dev/tui/dev-tui.ts","../src/commands/dev/command.ts","../src/commands/dev/index.ts","../src/commands/init/command.ts","../src/commands/init/index.ts","../src/commands/host/command.ts","../src/commands/host/index.ts","../../secrets/dist/secrets-manager.d.ts","../../secrets/dist/index.d.ts","../src/commands/secrets/command.ts","../src/commands/secrets/index.ts","../src/bin/saws.ts","../src/commands/host/command.test.ts","../src/commands/init/command.test.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/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.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/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":[[93,136,139],[93,138,139],[139],[93,139,144,172],[93,139,140,145,150,158,169,180],[93,139,140,141,150,158],[93,139],[88,89,90,93,139],[93,139,142,181],[93,139,143,144,151,159],[93,139,144,169,177],[93,139,145,147,150,158],[93,138,139,146],[93,139,147,148],[93,139,149,150],[93,138,139,150],[93,139,150,151,152,169,180],[93,139,150,151,152,165,169,172],[93,139,147,150,153,158,169,180],[93,139,150,151,153,154,158,169,177,180],[93,139,153,155,169,177,180],[91,92,93,94,95,96,97,135,136,137,138,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],[93,139,150,156],[93,139,157,180,185],[93,139,147,150,158,169],[93,139,159],[93,139,160],[93,138,139,161],[93,136,137,138,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],[93,139,163],[93,139,164],[93,139,150,165,166],[93,139,165,167,181,183],[93,139,150,169,170,172],[93,139,171,172],[93,139,169,170],[93,139,172],[93,139,173],[93,136,139,169,174],[93,139,150,175,176],[93,139,175,176],[93,139,144,158,169,177],[93,139,178],[93,139,158,179],[93,139,153,164,180],[93,139,144,181],[93,139,169,182],[93,139,157,183],[93,139,184],[93,134,139],[93,134,139,150,152,161,169,172,180,183,185],[93,139,169,186],[62,93,139],[93,106,110,139,180],[93,106,139,169,180],[93,101,139],[93,103,106,139,177,180],[93,139,158,177],[93,139,187],[93,101,139,187],[93,103,106,139,158,180],[93,98,99,102,105,139,150,169,180],[93,106,113,139],[93,98,104,139],[93,106,127,128,139],[93,102,106,139,172,180,187],[93,127,139,187],[93,100,101,139,187],[93,106,139],[93,100,101,102,103,104,105,106,107,108,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,128,129,130,131,132,133,139],[93,106,121,139],[93,106,113,114,139],[93,104,106,114,115,139],[93,105,139],[93,98,101,106,139],[93,106,110,114,115,139],[93,110,139],[93,104,106,109,139,180],[93,98,103,106,113,139],[93,139,169],[93,101,106,127,139,185,187],[63,70,73,76,78,80,84,93,139,152,160],[70,71,93,139],[63,72,93,139],[70,74,93,139],[63,75,93,139],[70,93,139,165],[61,79,93,137,139,174],[61,70,71,93,139],[63,79,93,139],[77,93,137,139,152,159,160,174,180],[70,93,139],[63,77,93,139],[82,93,139],[63,83,93,139],[61,70,93,139],[65,93,139],[64,65,66,67,68,69,93,139],[63,65,93,139],[63,64,66,93,139],[59,93,139],[59,60,93,139],[81,93,139]],"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":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"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":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"67497091bc5106f247155c0e4492c254c1146035ace78f8e23e6888967090ff1","impliedFormat":99},{"version":"f096d47d865bec76322fca225dc326087bf5f02f0943a6739e4e81047b735fc8","impliedFormat":99},{"version":"e058b64f7116f08c7a64ad5bbce0cb94d062ffe03d027a4f6ce6951674cb2eb9","impliedFormat":99},{"version":"0237580177f1a858ab125992af8a6dfc29268fe7d4bac5308b9f462f88b0cd31","impliedFormat":1},{"version":"b124c0624b15412ace7d54644ade38d7a69db7e25488a1a4d2a8df6e11696538","impliedFormat":99},{"version":"25b4ca99e8f7e04e37815d1b1e2c6d16269aea69fc2b31a02ec8ab22107a182f","impliedFormat":99},{"version":"1f2f4cc91d0d8b6d9cfe001de062216cf24da3a277b427c15658b8fa325ce532","impliedFormat":99},{"version":"c0064c0ab7169b14ee7ea349467c57b9bda8122aa7d242704030e6ad29df3e12","impliedFormat":99},{"version":"70832f4166b574751e842101dd7b2adf35d4e796a3500d03ba11a5a6a6615987","impliedFormat":99},{"version":"4f4e407edbd1cab037fc37f85734a7a5d0d14ac2cb81976b57afc178676bd335","impliedFormat":99},{"version":"586e460042686e6774c36b32e8d5417059fc5204a45a627368c7ae3e9b2a84c9","impliedFormat":99},{"version":"4303856a763ae3664dba4244c4cd78120325aee1b7dee3ad25a91bbc79b2dd64","impliedFormat":99},{"version":"6ac16e766cdf5af5ca989239bbd7e9a45a9edab1a15d6d89858c0222ebfac184","signature":"61ca228943fd3d2e6582fc0ffe54be9f3713588914982cf9c8c2b6b9b32cdc61","impliedFormat":99},{"version":"687b97d71da4fae8aaf493ab24d0918db3b0465bd54dc994fa35d1a89f893c96","signature":"f6b01ee3193654fcc804f59effc6c01ed88f04274b7724f392f778700b7ec807","impliedFormat":99},{"version":"c225fb28f05cb07d0a440a12027a3a3f1847dfaf2b7300b0b37657c3f2918c9e","signature":"8368b9bf33e02585e5c5daa7fe3ca112f8a8162110b5a2a5babc435fac043cf2","impliedFormat":99},{"version":"456c8ece5cc4755e18356fb729783bc0949b2128946b90c9faf011989c720c96","signature":"cff1e3fd2a4135d78d05cfae748ff2884c1d1bb3d15c28810c54fe42e23fd7af","impliedFormat":99},{"version":"640f4c1b229b4907ef347301639247f7bb556dbede356cef7388d259cf541eba","signature":"fdce25c536077433de2a71ddf8fffc43b50ef37da0d8a10575b318286502fe87","impliedFormat":99},{"version":"c2bef466df1fe338dea88ca0fd10c293dd9b9e56c9f976b212a62fb4ade776e1","signature":"8368b9bf33e02585e5c5daa7fe3ca112f8a8162110b5a2a5babc435fac043cf2","impliedFormat":99},{"version":"8344b6ebb02238851a83b4767ab3bafa9106ce7850df0ca27302e2caa20d977e","signature":"c2b7098699849ca512e142f57059e9747f80aae24fcef8df39d594bfee43c304","impliedFormat":99},{"version":"f3e9b77283c5b923331cdc86af79e0461e4a707f63d8cde851f2f889edeea9ed","signature":"8368b9bf33e02585e5c5daa7fe3ca112f8a8162110b5a2a5babc435fac043cf2","impliedFormat":99},{"version":"7cc16c09524a923c5fc93ccc2574cdbcad1ffbc1a5e5aa8c61ebe5942d8e7536","signature":"1496d432043c621db85d7c3b0d42dd5dbaa988999bc2a366176555789fa91098","impliedFormat":99},{"version":"d86de4ca2a92840c0d422815578d49d9db061aca6eacce818d63a9bee1a385a4","signature":"8368b9bf33e02585e5c5daa7fe3ca112f8a8162110b5a2a5babc435fac043cf2","impliedFormat":99},{"version":"5dede85968f55521dcacdd071188e27bb6825b33f09ae7130a320e1f291aaf8e","impliedFormat":99},{"version":"93421fd5147ad716b0b7482ffd6e216e87a5889601f5d467c26b0fad7bb58da4","impliedFormat":99},{"version":"82f0c2d77ab37a7ad8aeffed70f00201d19c1862d2672c33ad7b9c34f6182f04","signature":"1e0e6f75434737c591c85aa03b1ea1857ee805224124a61dbcb3795d99c05bbe","impliedFormat":99},{"version":"06ad3bb78c6aeedfa3d82f18c86201936a9efe3f593259025371c1e6416e6b73","signature":"8368b9bf33e02585e5c5daa7fe3ca112f8a8162110b5a2a5babc435fac043cf2","impliedFormat":99},{"version":"cce5e26391a1a73d68c157e7dd918562e1b587c26478ac452c737aa73470d109","signature":"43e818adf60173644896298637f47b01d5819b17eda46eaa32d0c7d64724d012","impliedFormat":99},{"version":"98bcacb415904364b6e181b76a6c33229e41dcbeefd0b819b0a4b2a41688102c","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881","impliedFormat":99},{"version":"34250fe34313dc68ae4f94ec7eb4a69bc4c01859e86442db43b59e5c4a053ec9","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881","impliedFormat":99},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"ba481bca06f37d3f2c137ce343c7d5937029b2468f8e26111f3c9d9963d6568d","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d9ef24f9a22a88e3e9b3b3d8c40ab1ddb0853f1bfbd5c843c37800138437b61","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":"e2677634fe27e87348825bb041651e22d50a613e2fdf6a4a3ade971d71bac37e","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"8c0bcd6c6b67b4b503c11e91a1fb91522ed585900eab2ab1f61bba7d7caa9d6f","impliedFormat":1},{"version":"8cd19276b6590b3ebbeeb030ac271871b9ed0afc3074ac88a94ed2449174b776","affectsGlobalScope":true,"impliedFormat":1},{"version":"696eb8d28f5949b87d894b26dc97318ef944c794a9a4e4f62360cd1d1958014b","impliedFormat":1},{"version":"3f8fa3061bd7402970b399300880d55257953ee6d3cd408722cb9ac20126460c","impliedFormat":1},{"version":"35ec8b6760fd7138bbf5809b84551e31028fb2ba7b6dc91d95d098bf212ca8b4","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"68bd56c92c2bd7d2339457eb84d63e7de3bd56a69b25f3576e1568d21a162398","affectsGlobalScope":true,"impliedFormat":1},{"version":"3e93b123f7c2944969d291b35fed2af79a6e9e27fdd5faa99748a51c07c02d28","impliedFormat":1},{"version":"9d19808c8c291a9010a6c788e8532a2da70f811adb431c97520803e0ec649991","impliedFormat":1},{"version":"87aad3dd9752067dc875cfaa466fc44246451c0c560b820796bdd528e29bef40","impliedFormat":1},{"version":"4aacb0dd020eeaef65426153686cc639a78ec2885dc72ad220be1d25f1a439df","impliedFormat":1},{"version":"f0bd7e6d931657b59605c44112eaf8b980ba7f957a5051ed21cb93d978cf2f45","impliedFormat":1},{"version":"8db0ae9cb14d9955b14c214f34dae1b9ef2baee2fe4ce794a4cd3ac2531e3255","affectsGlobalScope":true,"impliedFormat":1},{"version":"15fc6f7512c86810273af28f224251a5a879e4261b4d4c7e532abfbfc3983134","impliedFormat":1},{"version":"58adba1a8ab2d10b54dc1dced4e41f4e7c9772cbbac40939c0dc8ce2cdb1d442","impliedFormat":1},{"version":"641942a78f9063caa5d6b777c99304b7d1dc7328076038c6d94d8a0b81fc95c1","impliedFormat":1},{"version":"1123a83f35cf56c97de746f0a7250012153c61a167e4a61668bf50e558162d14","impliedFormat":1},{"version":"855cd5f7eb396f5f1ab1bc0f8580339bff77b68a770f84c6b254e319bbfd1ac7","impliedFormat":1},{"version":"5650cf3dace09e7c25d384e3e6b818b938f68f4e8de96f52d9c5a1b3db068e86","impliedFormat":1},{"version":"1354ca5c38bd3fd3836a68e0f7c9f91f172582ba30ab15bb8c075891b91502b7","affectsGlobalScope":true,"impliedFormat":1},{"version":"7e20d899c28ca26a2a7afc98beaa69e63ff7fba0a8bc47b4e3bf3ede5e09e424","impliedFormat":1},{"version":"2d2fcaab481b31a5882065c7951255703ddbe1c0e507af56ea42d79ac3911201","impliedFormat":1},{"version":"a192fe8ec33f75edbc8d8f3ed79f768dfae11ff5735e7fe52bfa69956e46d78d","impliedFormat":1},{"version":"ca867399f7db82df981d6915bcbb2d81131d7d1ef683bc782b59f71dda59bc85","affectsGlobalScope":true,"impliedFormat":1},{"version":"372413016d17d804e1d139418aca0c68e47a83fb6669490857f4b318de8cccb3","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e043a1bc8fbf2a255bccf9bf27e0f1caf916c3b0518ea34aa72357c0afd42ec","impliedFormat":1},{"version":"b4f70ec656a11d570e1a9edce07d118cd58d9760239e2ece99306ee9dfe61d02","impliedFormat":1},{"version":"3bc2f1e2c95c04048212c569ed38e338873f6a8593930cf5a7ef24ffb38fc3b6","impliedFormat":1},{"version":"6e70e9570e98aae2b825b533aa6292b6abd542e8d9f6e9475e88e1d7ba17c866","impliedFormat":1},{"version":"f9d9d753d430ed050dc1bf2667a1bab711ccbb1c1507183d794cc195a5b085cc","impliedFormat":1},{"version":"9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","impliedFormat":1},{"version":"085f552d005479e2e6a7311cdbbe5d8c55c497b4d19274285df161ee9684cd9c","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"007faacc9268357caa21d24169f3f3f2497af3e9241308df2d89f6e6d9bb3f2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"74cf591a0f63db318651e0e04cb55f8791385f86e987a67fd4d2eaab8191f730","impliedFormat":1},{"version":"5eab9b3dc9b34f185417342436ec3f106898da5f4801992d8ff38ab3aff346b5","impliedFormat":1},{"version":"12ed4559eba17cd977aa0db658d25c4047067444b51acfdcbf38470630642b23","affectsGlobalScope":true,"impliedFormat":1},{"version":"f3ffabc95802521e1e4bcba4c88d8615176dc6e09111d920c7a213bdda6e1d65","impliedFormat":1},{"version":"809821b8a065e3234a55b3a9d7846231ed18d66dd749f2494c66288d890daf7f","impliedFormat":1},{"version":"ae56f65caf3be91108707bd8dfbccc2a57a91feb5daabf7165a06a945545ed26","impliedFormat":1},{"version":"a136d5de521da20f31631a0a96bf712370779d1c05b7015d7019a9b2a0446ca9","impliedFormat":1},{"version":"c3b41e74b9a84b88b1dca61ec39eee25c0dbc8e7d519ba11bb070918cfacf656","affectsGlobalScope":true,"impliedFormat":1},{"version":"4737a9dc24d0e68b734e6cfbcea0c15a2cfafeb493485e27905f7856988c6b29","affectsGlobalScope":true,"impliedFormat":1},{"version":"36d8d3e7506b631c9582c251a2c0b8a28855af3f76719b12b534c6edf952748d","impliedFormat":1},{"version":"1ca69210cc42729e7ca97d3a9ad48f2e9cb0042bada4075b588ae5387debd318","impliedFormat":1},{"version":"f5ebe66baaf7c552cfa59d75f2bfba679f329204847db3cec385acda245e574e","impliedFormat":1},{"version":"ed59add13139f84da271cafd32e2171876b0a0af2f798d0c663e8eeb867732cf","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7c5e2ea4a9749097c347454805e933844ed207b6eefec6b7cfd418b5f5f7b28","impliedFormat":1},{"version":"b1810689b76fd473bd12cc9ee219f8e62f54a7d08019a235d07424afbf074d25","impliedFormat":1}],"root":[[71,80],[83,87]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":100,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[[136,1],[137,1],[138,2],[93,3],[139,4],[140,5],[141,6],[88,7],[91,8],[89,7],[90,7],[142,9],[143,10],[144,11],[145,12],[146,13],[147,14],[148,14],[149,15],[150,16],[151,17],[152,18],[94,7],[92,7],[153,19],[154,20],[155,21],[187,22],[156,23],[157,24],[158,25],[159,26],[160,27],[161,28],[162,29],[163,30],[164,31],[165,32],[166,32],[167,33],[168,7],[169,34],[171,35],[170,36],[172,37],[173,38],[174,39],[175,40],[176,41],[177,42],[178,43],[179,44],[180,45],[181,46],[182,47],[183,48],[184,49],[95,7],[96,7],[97,7],[135,50],[185,51],[186,52],[63,53],[62,7],[57,7],[58,7],[10,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],[1,7],[113,54],[123,55],[112,54],[133,56],[104,57],[103,58],[132,59],[126,60],[131,61],[106,62],[120,63],[105,64],[129,65],[101,66],[100,59],[130,67],[102,68],[107,69],[108,7],[111,69],[98,7],[134,70],[124,71],[115,72],[116,73],[118,74],[114,75],[117,76],[127,59],[109,77],[110,78],[119,79],[99,80],[122,71],[121,69],[125,7],[128,81],[85,82],[72,83],[73,84],[75,85],[76,86],[74,87],[86,88],[79,89],[80,90],[87,91],[77,92],[78,93],[83,94],[84,95],[71,96],[66,97],[67,97],[68,97],[70,98],[69,99],[65,100],[64,7],[59,7],[60,101],[61,102],[82,103],[81,7]],"latestChangedDtsFile":"./commands/init/command.test.d.ts","version":"5.9.3"}
@@ -1,2 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  export {};
3
+ //# sourceMappingURL=saws.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"saws.d.ts","sourceRoot":"","sources":["../../src/bin/saws.ts"],"names":[],"mappings":""}
package/dist/bin/saws.js CHANGED
@@ -1,42 +1,57 @@
1
1
  #!/usr/bin/env node
2
- "use strict";
3
- var __importDefault = (this && this.__importDefault) || function (mod) {
4
- return (mod && mod.__esModule) ? mod : { "default": mod };
5
- };
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- process.on("uncaughtException", (e) => {
8
- console.log(e);
2
+ import { program } from "commander";
3
+ import { createCommand as createDeployCommand } from "../commands/deploy/index.js";
4
+ import { createCommand as createDevCommand } from "../commands/dev/index.js";
5
+ import { createCommand as createInitCommand } from "../commands/init/index.js";
6
+ import { createCommand as createHostCommand } from "../commands/host/index.js";
7
+ import { createCommand as createSecretsCommand } from "../commands/secrets/index.js";
8
+ import { access } from "node:fs/promises";
9
+ import path from "node:path";
10
+ import { getSawsConfig, getServiceCommands } from "@saws/core";
11
+ process.on("uncaughtException", (error) => {
12
+ console.error(error);
13
+ process.exitCode = 1;
9
14
  });
10
- const find_package_json_1 = __importDefault(require("find-package-json"));
11
- const commander_1 = require("commander");
12
- const core_1 = require("@saws/core");
13
- const dev_1 = require("../src/commands/dev");
14
- const deploy_1 = require("../src/commands/deploy");
15
- const execute_1 = require("../src/commands/execute");
16
- const init_1 = require("../src/commands/init");
17
- const pkg = (0, find_package_json_1.default)(__dirname).next().value;
18
- commander_1.program
15
+ program
19
16
  .name("saws")
20
- .description("A tool for building apps quickly")
21
- .version(pkg?.version);
22
- commander_1.program.addCommand((0, dev_1.createCommand)());
23
- commander_1.program.addCommand((0, deploy_1.createCommand)());
24
- commander_1.program.addCommand((0, execute_1.createCommand)());
25
- commander_1.program.addCommand((0, init_1.createCommand)());
26
- (async () => {
27
- try {
28
- const service = await (0, core_1.getSawsConfig)();
29
- const allServices = [...new Set(service.getAllDependencies().map(service => service.constructor))];
30
- for (const serviceClass of allServices) {
31
- // @ts-expect-error Not all classes will define a getCommands static method
32
- serviceClass.getCommands?.()?.forEach(command => commander_1.program.addCommand(command));
17
+ .description("Command-line interface for SAWS")
18
+ .version("0.0.0");
19
+ program.addCommand(createDevCommand());
20
+ program.addCommand(createDeployCommand());
21
+ program.addCommand(createInitCommand());
22
+ program.addCommand(createHostCommand());
23
+ program.addCommand(createSecretsCommand());
24
+ await addConfiguredServiceCommands();
25
+ await program.parseAsync(process.argv);
26
+ async function addConfiguredServiceCommands() {
27
+ const configPath = getConfigOption(process.argv.slice(2));
28
+ if (configPath == null && !(await defaultConfigExists()))
29
+ return;
30
+ const root = await getSawsConfig(configPath);
31
+ for (const command of getServiceCommands(root)) {
32
+ if (program.commands.some((existing) => existing.name() === command.name())) {
33
+ throw new Error(`Service command "${command.name()}" conflicts with an existing SAWS command`);
33
34
  }
35
+ program.addCommand(command);
34
36
  }
35
- catch (_err) {
36
- // It's possible for there not to be a saws.js file yet and thus this will fail
37
- }
38
- finally {
39
- commander_1.program.parse(process.argv);
37
+ }
38
+ function getConfigOption(args) {
39
+ const index = args.indexOf("--config");
40
+ if (index >= 0)
41
+ return args[index + 1];
42
+ const option = args.find((argument) => argument.startsWith("--config="));
43
+ return option?.slice("--config=".length);
44
+ }
45
+ async function defaultConfigExists() {
46
+ for (const candidate of ["saws.ts", "saws.js"]) {
47
+ try {
48
+ await access(path.resolve(candidate));
49
+ return true;
50
+ }
51
+ catch (error) {
52
+ if (error.code !== "ENOENT")
53
+ throw error;
54
+ }
40
55
  }
41
- })();
42
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2F3cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2Jpbi9zYXdzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUVBLE9BQU8sQ0FBQyxFQUFFLENBQUMsbUJBQW1CLEVBQUUsQ0FBQyxDQUFDLEVBQUUsRUFBRTtJQUNwQyxPQUFPLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDO0FBQ2pCLENBQUMsQ0FBQyxDQUFDO0FBRUgsMEVBQXNEO0FBQ3RELHlDQUFvQztBQUNwQyxxQ0FBMkM7QUFFM0MsNkNBQXdFO0FBQ3hFLG1EQUE4RTtBQUM5RSxxREFBZ0Y7QUFDaEYsK0NBQTBFO0FBRTFFLE1BQU0sR0FBRyxHQUFHLElBQUEsMkJBQU0sRUFBQyxTQUFTLENBQUMsQ0FBQyxJQUFJLEVBQUUsQ0FBQyxLQUFLLENBQUM7QUFFM0MsbUJBQU87S0FDSixJQUFJLENBQUMsTUFBTSxDQUFDO0tBQ1osV0FBVyxDQUFDLGtDQUFrQyxDQUFDO0tBQy9DLE9BQU8sQ0FBQyxHQUFHLEVBQUUsT0FBUSxDQUFDLENBQUM7QUFFMUIsbUJBQU8sQ0FBQyxVQUFVLENBQUMsSUFBQSxtQkFBZ0IsR0FBRSxDQUFDLENBQUM7QUFDdkMsbUJBQU8sQ0FBQyxVQUFVLENBQUMsSUFBQSxzQkFBbUIsR0FBRSxDQUFDLENBQUM7QUFDMUMsbUJBQU8sQ0FBQyxVQUFVLENBQUMsSUFBQSx1QkFBb0IsR0FBRSxDQUFDLENBQUM7QUFDM0MsbUJBQU8sQ0FBQyxVQUFVLENBQUMsSUFBQSxvQkFBaUIsR0FBRSxDQUFDLENBQUM7QUFFeEMsQ0FBQyxLQUFLLElBQUksRUFBRTtJQUNWLElBQUksQ0FBQztRQUNILE1BQU0sT0FBTyxHQUFHLE1BQU0sSUFBQSxvQkFBYSxHQUFFLENBQUE7UUFFckMsTUFBTSxXQUFXLEdBQUcsQ0FBQyxHQUFHLElBQUksR0FBRyxDQUFDLE9BQU8sQ0FBQyxrQkFBa0IsRUFBRSxDQUFDLEdBQUcsQ0FBQyxPQUFPLENBQUMsRUFBRSxDQUFDLE9BQU8sQ0FBQyxXQUFXLENBQUMsQ0FBQyxDQUFDLENBQUE7UUFFbEcsS0FBSyxNQUFNLFlBQVksSUFBSSxXQUFXLEVBQUUsQ0FBQztZQUN2QywyRUFBMkU7WUFDM0UsWUFBWSxDQUFDLFdBQVcsRUFBRSxFQUFFLEVBQUUsT0FBTyxDQUFDLE9BQU8sQ0FBQyxFQUFFLENBQUMsbUJBQU8sQ0FBQyxVQUFVLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQTtRQUMvRSxDQUFDO0lBQ0gsQ0FBQztJQUFDLE9BQU8sSUFBSSxFQUFFLENBQUM7UUFDZCwrRUFBK0U7SUFDakYsQ0FBQztZQUFTLENBQUM7UUFDVCxtQkFBTyxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDOUIsQ0FBQztBQUNILENBQUMsQ0FBQyxFQUFFLENBQUEifQ==
56
+ return false;
57
+ }
@@ -0,0 +1,8 @@
1
+ export interface DeployCommandOptions {
2
+ stage: string;
3
+ dryRun?: boolean;
4
+ rootDir?: string;
5
+ config?: string;
6
+ }
7
+ export declare function deployCommand(path: string | undefined, options: DeployCommandOptions): Promise<void>;
8
+ //# sourceMappingURL=command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/commands/deploy/command.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAsB,aAAa,CACjC,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,OAAO,EAAE,oBAAoB,iBA2B9B"}
@@ -0,0 +1,21 @@
1
+ import { DeployContext, getSawsConfig } from "@saws/core";
2
+ import { findConfiguredHosts } from "../../hosts.js";
3
+ export async function deployCommand(path, options) {
4
+ if (options.stage == null || options.stage.length === 0) {
5
+ throw new Error("deploy requires --stage <stage>");
6
+ }
7
+ if (options.stage === "local") {
8
+ throw new Error("Can not deploy to local stage");
9
+ }
10
+ const serviceDefinition = await getSawsConfig(options.config ?? path);
11
+ const dryRun = options.dryRun ?? false;
12
+ for (const host of findConfiguredHosts(serviceDefinition)) {
13
+ await host.assertReady({ dryRun });
14
+ }
15
+ await serviceDefinition.deploy(new DeployContext({
16
+ stage: options.stage,
17
+ rootDir: options.rootDir ?? process.cwd(),
18
+ dryRun,
19
+ env: process.env,
20
+ }));
21
+ }
@@ -1,2 +1,3 @@
1
1
  import { Command } from "commander";
2
2
  export declare const createCommand: () => Command;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/deploy/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,eAAO,MAAM,aAAa,eAOA,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Command } from "commander";
2
+ import { deployCommand } from "./command.js";
3
+ export const createCommand = () => new Command("deploy")
4
+ .argument("[string]", "path to service definition")
5
+ .requiredOption("--stage <string>", "stage to deploy")
6
+ .option("--dry-run", "print remote commands instead of executing them")
7
+ .option("--root-dir <string>", "project root used for generated local files")
8
+ .option("--config <string>", "path to service definition")
9
+ .action(deployCommand);
@@ -0,0 +1,7 @@
1
+ export interface DevCommandOptions {
2
+ rootDir?: string;
3
+ config?: string;
4
+ dryRun?: boolean;
5
+ }
6
+ export declare function devCommand(path: string | undefined, options: DevCommandOptions): Promise<void>;
7
+ //# sourceMappingURL=command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/commands/dev/command.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAsB,UAAU,CAC9B,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,OAAO,EAAE,iBAAiB,iBAoD3B"}
@@ -0,0 +1,63 @@
1
+ import { DevContext, ExitContext, getSawsConfig, } from "@saws/core";
2
+ import { DevTui } from "./tui/dev-tui.js";
3
+ const LOCAL_STAGE = "local";
4
+ export async function devCommand(path, options) {
5
+ process.env.NODE_ENV = "development";
6
+ process.env.STAGE = LOCAL_STAGE;
7
+ const rootDir = options.rootDir ?? process.cwd();
8
+ const serviceDefinition = await getSawsConfig(options.config ?? path);
9
+ const tui = new DevTui(collectServices(serviceDefinition));
10
+ const useTui = process.stdout.isTTY && process.stdin.isTTY;
11
+ if (useTui)
12
+ tui.start();
13
+ const shutdown = async () => {
14
+ try {
15
+ await serviceDefinition.exit(new ExitContext({ stage: LOCAL_STAGE, rootDir }));
16
+ }
17
+ finally {
18
+ tui.stop();
19
+ process.exit();
20
+ }
21
+ };
22
+ process.once("SIGINT", shutdown);
23
+ process.once("SIGTERM", shutdown);
24
+ try {
25
+ await serviceDefinition.dev(new DevContext({
26
+ stage: LOCAL_STAGE,
27
+ rootDir,
28
+ dryRun: options.dryRun ?? false,
29
+ env: process.env,
30
+ logSink: useTui ? tui.logSink : undefined,
31
+ }));
32
+ // Service dev hooks start their processes without blocking so every
33
+ // dependency can come up. Keep the command alive until a signal invokes
34
+ // the shared shutdown path.
35
+ if (!options.dryRun) {
36
+ await new Promise(() => { });
37
+ }
38
+ }
39
+ catch (error) {
40
+ if (useTui) {
41
+ tui.writeSystemLog(error.stack ?? String(error), "stderr");
42
+ }
43
+ throw error;
44
+ }
45
+ finally {
46
+ tui.stop();
47
+ }
48
+ }
49
+ function collectServices(root) {
50
+ const services = [];
51
+ const seen = new Set();
52
+ const visit = (service) => {
53
+ if (seen.has(service))
54
+ return;
55
+ seen.add(service);
56
+ for (const dependency of service.dependencies) {
57
+ visit(dependency);
58
+ }
59
+ services.push(service.name);
60
+ };
61
+ visit(root);
62
+ return services;
63
+ }
@@ -1,2 +1,3 @@
1
1
  import { Command } from "commander";
2
2
  export declare const createCommand: () => Command;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/dev/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,eAAO,MAAM,aAAa,eAMH,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Command } from "commander";
2
+ import { devCommand } from "./command.js";
3
+ export const createCommand = () => new Command("dev")
4
+ .argument("[string]", "path to service definition")
5
+ .option("--dry-run", "print local Docker commands instead of executing them")
6
+ .option("--root-dir <string>", "project root used for generated local files")
7
+ .option("--config <string>", "path to service definition")
8
+ .action(devCommand);
@@ -0,0 +1,18 @@
1
+ import type { RuntimeLogSink } from "@saws/core";
2
+ export declare class DevTui {
3
+ readonly logSink: RuntimeLogSink;
4
+ private readonly services;
5
+ private readonly logs;
6
+ private selectedIndex;
7
+ private isStarted;
8
+ private previousRawMode;
9
+ private readonly maxLines;
10
+ constructor(services: string[]);
11
+ start(): void;
12
+ stop(): void;
13
+ writeSystemLog(message: string, stream?: "stdout" | "stderr"): void;
14
+ private handleKeypress;
15
+ private addLog;
16
+ private render;
17
+ }
18
+ //# sourceMappingURL=dev-tui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dev-tui.d.ts","sourceRoot":"","sources":["../../../../src/commands/dev/tui/dev-tui.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,cAAc,EAAE,MAAM,YAAY,CAAC;AAkBlE,qBAAa,MAAM;IACjB,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAiC;IAEjE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAW;IACpC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAiC;IACtD,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;gBAErB,QAAQ,EAAE,MAAM,EAAE;IAQ9B,KAAK;IAkBL,IAAI;IAUJ,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,GAAE,QAAQ,GAAG,QAAmB;IAStE,OAAO,CAAC,cAAc,CAqBpB;IAEF,OAAO,CAAC,MAAM;IAkBd,OAAO,CAAC,MAAM,CA6BZ;CACH"}
@@ -0,0 +1,146 @@
1
+ import readline from "node:readline";
2
+ const CLEAR_SCREEN = "\x1b[2J";
3
+ const CURSOR_HOME = "\x1b[H";
4
+ const HIDE_CURSOR = "\x1b[?25l";
5
+ const SHOW_CURSOR = "\x1b[?25h";
6
+ const ENTER_ALT_SCREEN = "\x1b[?1049h";
7
+ const EXIT_ALT_SCREEN = "\x1b[?1049l";
8
+ const RESET = "\x1b[0m";
9
+ const INVERSE = "\x1b[7m";
10
+ const DIM = "\x1b[2m";
11
+ const CYAN = "\x1b[36m";
12
+ export class DevTui {
13
+ logSink = (entry) => this.addLog(entry);
14
+ services;
15
+ logs = new Map();
16
+ selectedIndex = 0;
17
+ isStarted = false;
18
+ previousRawMode = false;
19
+ maxLines = 2000;
20
+ constructor(services) {
21
+ this.services = services.length === 0 ? ["system"] : services;
22
+ for (const service of this.services) {
23
+ this.logs.set(service, { lines: [], partial: "" });
24
+ }
25
+ }
26
+ start() {
27
+ if (this.isStarted || !process.stdout.isTTY || !process.stdin.isTTY) {
28
+ this.isStarted = process.stdout.isTTY && process.stdin.isTTY;
29
+ return;
30
+ }
31
+ this.isStarted = true;
32
+ this.previousRawMode = process.stdin.isRaw;
33
+ process.stdout.write(`${ENTER_ALT_SCREEN}${HIDE_CURSOR}`);
34
+ readline.emitKeypressEvents(process.stdin);
35
+ process.stdin.setRawMode(true);
36
+ process.stdin.resume();
37
+ process.stdin.on("keypress", this.handleKeypress);
38
+ process.stdout.on("resize", this.render);
39
+ this.render();
40
+ }
41
+ stop() {
42
+ if (!this.isStarted)
43
+ return;
44
+ process.stdin.off("keypress", this.handleKeypress);
45
+ process.stdout.off("resize", this.render);
46
+ process.stdin.setRawMode(this.previousRawMode);
47
+ process.stdout.write(`${SHOW_CURSOR}${EXIT_ALT_SCREEN}${RESET}`);
48
+ this.isStarted = false;
49
+ }
50
+ writeSystemLog(message, stream = "stdout") {
51
+ this.addLog({
52
+ serviceName: "system",
53
+ stream,
54
+ chunk: message.endsWith("\n") ? message : `${message}\n`,
55
+ timestamp: new Date(),
56
+ });
57
+ }
58
+ handleKeypress = (_input, key) => {
59
+ if (key.name === "up" || key.name === "k") {
60
+ this.selectedIndex = Math.max(0, this.selectedIndex - 1);
61
+ this.render();
62
+ return;
63
+ }
64
+ if (key.name === "down" || key.name === "j") {
65
+ this.selectedIndex = Math.min(this.services.length - 1, this.selectedIndex + 1);
66
+ this.render();
67
+ return;
68
+ }
69
+ if (key.ctrl && key.name === "c") {
70
+ process.kill(process.pid, "SIGINT");
71
+ return;
72
+ }
73
+ if (key.name === "q") {
74
+ process.kill(process.pid, "SIGTERM");
75
+ }
76
+ };
77
+ addLog(entry) {
78
+ const serviceName = this.logs.has(entry.serviceName) ? entry.serviceName : "system";
79
+ const log = this.logs.get(serviceName) ?? { lines: [], partial: "" };
80
+ const pieces = `${log.partial}${entry.chunk}`.split(/\r?\n/);
81
+ log.partial = pieces.pop() ?? "";
82
+ for (const piece of pieces) {
83
+ log.lines.push(`${timestamp(entry.timestamp)} ${piece}`);
84
+ }
85
+ if (log.lines.length > this.maxLines) {
86
+ log.lines.splice(0, log.lines.length - this.maxLines);
87
+ }
88
+ this.logs.set(serviceName, log);
89
+ this.render();
90
+ }
91
+ render = () => {
92
+ if (!this.isStarted || !process.stdout.isTTY)
93
+ return;
94
+ const width = process.stdout.columns ?? 80;
95
+ const height = process.stdout.rows ?? 24;
96
+ const navWidth = Math.min(30, Math.max(18, Math.floor(width * 0.28)));
97
+ const logWidth = Math.max(10, width - navWidth - 1);
98
+ const bodyHeight = Math.max(1, height - 3);
99
+ const selectedService = this.services[this.selectedIndex] ?? "system";
100
+ const log = this.logs.get(selectedService) ?? { lines: [], partial: "" };
101
+ const visibleLines = [...log.lines, log.partial].filter(Boolean);
102
+ const logLines = visibleLines
103
+ .flatMap((line) => wrapLine(line, logWidth))
104
+ .slice(-bodyHeight);
105
+ const rows = [];
106
+ rows.push(`${CYAN}SAWS dev${RESET}${DIM} up/down select, q quit${RESET}`.padEnd(width));
107
+ rows.push(`${"Services".padEnd(navWidth)} ${`Logs: ${selectedService}`.padEnd(logWidth)}`);
108
+ for (let index = 0; index < bodyHeight; index += 1) {
109
+ const service = this.services[index] ?? "";
110
+ const isSelected = index === this.selectedIndex;
111
+ const serviceLabel = service === "" ? "" : ` ${service}`;
112
+ const nav = truncate(serviceLabel, navWidth).padEnd(navWidth);
113
+ const logLine = truncate(logLines[index] ?? "", logWidth).padEnd(logWidth);
114
+ rows.push(`${isSelected ? `${INVERSE}${nav}${RESET}` : nav} ${logLine}`);
115
+ }
116
+ process.stdout.write(`${CURSOR_HOME}${CLEAR_SCREEN}${rows.join("\n")}`);
117
+ };
118
+ }
119
+ function timestamp(date) {
120
+ return date.toLocaleTimeString(undefined, {
121
+ hour12: false,
122
+ hour: "2-digit",
123
+ minute: "2-digit",
124
+ second: "2-digit",
125
+ });
126
+ }
127
+ function wrapLine(line, width) {
128
+ const chunks = [];
129
+ let remaining = line;
130
+ while (visibleLength(remaining) > width) {
131
+ chunks.push(remaining.slice(0, width));
132
+ remaining = remaining.slice(width);
133
+ }
134
+ chunks.push(remaining);
135
+ return chunks;
136
+ }
137
+ function truncate(value, width) {
138
+ if (visibleLength(value) <= width)
139
+ return value;
140
+ if (width <= 3)
141
+ return value.slice(0, width);
142
+ return `${value.slice(0, width - 3)}...`;
143
+ }
144
+ function visibleLength(value) {
145
+ return value.replace(/\x1b\[[0-9;]*m/g, "").length;
146
+ }
@@ -0,0 +1,8 @@
1
+ import type { Host } from "@saws/host";
2
+ export interface ConfigureHostCommandOptions {
3
+ config?: string;
4
+ dryRun?: boolean;
5
+ }
6
+ export declare function configureHostCommand(name: string | undefined, options: ConfigureHostCommandOptions): Promise<void>;
7
+ export declare function selectHost(hosts: Host[], name?: string): Host;
8
+ //# sourceMappingURL=command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/commands/host/command.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGvC,MAAM,WAAW,2BAA2B;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,OAAO,EAAE,2BAA2B,iBAOrC;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,IAAI,CAAC,EAAE,MAAM,QAmBtD"}
@@ -0,0 +1,24 @@
1
+ import { getSawsConfig } from "@saws/core";
2
+ import { findConfiguredHosts } from "../../hosts.js";
3
+ export async function configureHostCommand(name, options) {
4
+ const root = await getSawsConfig(options.config);
5
+ const hosts = findConfiguredHosts(root);
6
+ const host = selectHost(hosts, name);
7
+ await host.configure({ dryRun: options.dryRun });
8
+ }
9
+ export function selectHost(hosts, name) {
10
+ if (hosts.length === 0) {
11
+ throw new Error("No Docker hosts are configured");
12
+ }
13
+ const host = name == null
14
+ ? hosts.length === 1
15
+ ? hosts[0]
16
+ : undefined
17
+ : hosts.find((candidate) => candidate.name === name);
18
+ if (host != null)
19
+ return host;
20
+ const available = hosts.map((candidate) => candidate.name).sort().join(", ");
21
+ throw new Error(name == null
22
+ ? `Host name is required. Available hosts: ${available}`
23
+ : `Host "${name}" was not found. Available hosts: ${available}`);
24
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=command.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.test.d.ts","sourceRoot":"","sources":["../../../src/commands/host/command.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import assert from "node:assert/strict";
2
+ import test from "node:test";
3
+ import { Host } from "@saws/host";
4
+ import { selectHost } from "./command.js";
5
+ const first = new Host({ name: "first", address: "first.example.test" });
6
+ const second = new Host({ name: "second", address: "second.example.test" });
7
+ test("selects the only configured host when its name is omitted", () => {
8
+ assert.equal(selectHost([first]), first);
9
+ });
10
+ test("requires a valid name when several hosts are configured", () => {
11
+ assert.throws(() => selectHost([second, first]), /Host name is required\. Available hosts: first, second/);
12
+ assert.throws(() => selectHost([first, second], "missing"), /Host "missing" was not found\. Available hosts: first, second/);
13
+ });
@@ -1,2 +1,3 @@
1
1
  import { Command } from "commander";
2
2
  export declare const createCommand: () => Command;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/host/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,eAAO,MAAM,aAAa,eAUrB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { Command } from "commander";
2
+ import { configureHostCommand } from "./command.js";
3
+ export const createCommand = () => new Command("host")
4
+ .description("configure deployment hosts")
5
+ .addCommand(new Command("configure")
6
+ .description("install Docker and apply the configured security policy")
7
+ .argument("[name]", "host name; optional when exactly one host exists")
8
+ .option("--config <string>", "path to service definition")
9
+ .option("--dry-run", "print the remote configuration command")
10
+ .action(configureHostCommand));
@@ -0,0 +1,7 @@
1
+ export interface InitCommandOptions {
2
+ rootDir?: string;
3
+ config?: string;
4
+ dryRun?: boolean;
5
+ }
6
+ export declare function initCommand(serviceName: string, path: string | undefined, options: InitCommandOptions): Promise<void>;
7
+ //# sourceMappingURL=command.d.ts.map