@archkit/cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/commands/build.d.ts +5 -0
- package/dist/commands/build.d.ts.map +1 -0
- package/dist/commands/build.js +33 -0
- package/dist/commands/build.js.map +1 -0
- package/dist/commands/context.d.ts +5 -0
- package/dist/commands/context.d.ts.map +1 -0
- package/dist/commands/context.js +31 -0
- package/dist/commands/context.js.map +1 -0
- package/dist/commands/deps.d.ts +5 -0
- package/dist/commands/deps.d.ts.map +1 -0
- package/dist/commands/deps.js +48 -0
- package/dist/commands/deps.js.map +1 -0
- package/dist/commands/knowledge.d.ts +18 -0
- package/dist/commands/knowledge.d.ts.map +1 -0
- package/dist/commands/knowledge.js +148 -0
- package/dist/commands/knowledge.js.map +1 -0
- package/dist/commands/query.d.ts +5 -0
- package/dist/commands/query.d.ts.map +1 -0
- package/dist/commands/query.js +59 -0
- package/dist/commands/query.js.map +1 -0
- package/dist/commands/scaffold.d.ts +2 -0
- package/dist/commands/scaffold.d.ts.map +1 -0
- package/dist/commands/scaffold.js +8 -0
- package/dist/commands/scaffold.js.map +1 -0
- package/dist/commands/show.d.ts +5 -0
- package/dist/commands/show.d.ts.map +1 -0
- package/dist/commands/show.js +54 -0
- package/dist/commands/show.js.map +1 -0
- package/dist/commands/stats.d.ts +5 -0
- package/dist/commands/stats.d.ts.map +1 -0
- package/dist/commands/stats.js +35 -0
- package/dist/commands/stats.js.map +1 -0
- package/dist/formatters/build.d.ts +4 -0
- package/dist/formatters/build.d.ts.map +1 -0
- package/dist/formatters/build.js +23 -0
- package/dist/formatters/build.js.map +1 -0
- package/dist/formatters/context.d.ts +4 -0
- package/dist/formatters/context.d.ts.map +1 -0
- package/dist/formatters/context.js +63 -0
- package/dist/formatters/context.js.map +1 -0
- package/dist/formatters/deps.d.ts +4 -0
- package/dist/formatters/deps.d.ts.map +1 -0
- package/dist/formatters/deps.js +47 -0
- package/dist/formatters/deps.js.map +1 -0
- package/dist/formatters/knowledge.d.ts +4 -0
- package/dist/formatters/knowledge.d.ts.map +1 -0
- package/dist/formatters/knowledge.js +126 -0
- package/dist/formatters/knowledge.js.map +1 -0
- package/dist/formatters/query.d.ts +4 -0
- package/dist/formatters/query.d.ts.map +1 -0
- package/dist/formatters/query.js +51 -0
- package/dist/formatters/query.js.map +1 -0
- package/dist/formatters/show.d.ts +4 -0
- package/dist/formatters/show.d.ts.map +1 -0
- package/dist/formatters/show.js +53 -0
- package/dist/formatters/show.js.map +1 -0
- package/dist/formatters/stats.d.ts +4 -0
- package/dist/formatters/stats.d.ts.map +1 -0
- package/dist/formatters/stats.js +29 -0
- package/dist/formatters/stats.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/models/command-results.d.ts +47 -0
- package/dist/models/command-results.d.ts.map +1 -0
- package/dist/models/command-results.js +3 -0
- package/dist/models/command-results.js.map +1 -0
- package/dist/models/output-mode.d.ts +6 -0
- package/dist/models/output-mode.d.ts.map +1 -0
- package/dist/models/output-mode.js +3 -0
- package/dist/models/output-mode.js.map +1 -0
- package/dist/program.d.ts +3 -0
- package/dist/program.d.ts.map +1 -0
- package/dist/program.js +120 -0
- package/dist/program.js.map +1 -0
- package/dist/utils/command-output.d.ts +10 -0
- package/dist/utils/command-output.d.ts.map +1 -0
- package/dist/utils/command-output.js +60 -0
- package/dist/utils/command-output.js.map +1 -0
- package/dist/utils/output.d.ts +2 -0
- package/dist/utils/output.d.ts.map +1 -0
- package/dist/utils/output.js +15 -0
- package/dist/utils/output.js.map +1 -0
- package/package.json +45 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Brent Broeckx
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/commander@13.1.0/node_modules/commander/typings/index.d.ts","../../../node_modules/.pnpm/@ts-morph+common@0.25.0/node_modules/@ts-morph/common/lib/typescript.d.ts","../../../node_modules/.pnpm/@ts-morph+common@0.25.0/node_modules/@ts-morph/common/lib/ts-morph-common.d.ts","../../../node_modules/.pnpm/ts-morph@24.0.0/node_modules/ts-morph/lib/ts-morph.d.ts","../../arch-core/dist/index.d.ts","../../arch-parser-ts/dist/models/parser-types.d.ts","../../arch-parser-ts/dist/services/type-script-parser.d.ts","../../arch-parser-ts/dist/index.d.ts","../../arch-graph/dist/models/architecture-graph.d.ts","../../arch-graph/dist/models/deps-types.d.ts","../../arch-graph/dist/models/knowledge-types.d.ts","../../arch-graph/dist/models/persist-types.d.ts","../../arch-graph/dist/models/query-types.d.ts","../../arch-graph/dist/services/knowledge-storage.d.ts","../../arch-graph/dist/services/graph-storage.d.ts","../../arch-graph/dist/services/deps-query.d.ts","../../arch-graph/dist/services/persisted-read.d.ts","../../arch-graph/dist/services/snippet.d.ts","../../arch-graph/dist/services/symbol-query.d.ts","../../arch-graph/dist/index.d.ts","../../arch-context/dist/models/context-types.d.ts","../../arch-context/dist/services/context-compiler.d.ts","../../arch-context/dist/index.d.ts","../src/models/command-results.ts","../src/models/output-mode.ts","../src/formatters/build.ts","../src/utils/command-output.ts","../src/commands/build.ts","../src/formatters/context.ts","../src/commands/context.ts","../src/formatters/deps.ts","../src/commands/deps.ts","../src/formatters/knowledge.ts","../src/commands/knowledge.ts","../src/formatters/query.ts","../src/commands/query.ts","../src/formatters/show.ts","../src/commands/show.ts","../src/formatters/stats.ts","../src/commands/stats.ts","../src/utils/output.ts","../src/program.ts","../src/index.ts","../src/commands/scaffold.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.19.15/node_modules/@types/node/index.d.ts"],"fileIdsList":[[59,107,155,172,173],[107,155,172,173],[107,152,153,155,172,173],[107,154,155,172,173],[155,172,173],[107,155,160,172,173,190],[107,155,156,161,166,172,173,175,187,198],[107,155,156,157,166,172,173,175],[102,103,104,107,155,172,173],[107,155,158,172,173,199],[107,155,159,160,167,172,173,176],[107,155,160,172,173,187,195],[107,155,161,163,166,172,173,175],[107,154,155,162,172,173],[107,155,163,164,172,173],[107,155,165,166,172,173],[107,154,155,166,172,173],[107,155,166,167,168,172,173,187,198],[107,155,166,167,168,172,173,182,187,190],[107,148,155,163,166,169,172,173,175,187,198],[107,155,166,167,169,170,172,173,175,187,195,198],[107,155,169,171,172,173,187,195,198],[105,106,107,108,109,110,111,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204],[107,155,166,172,173],[107,155,172,173,174,198],[107,155,163,166,172,173,175,187],[107,155,172,173,176],[107,155,172,173,177],[107,154,155,172,173,178],[107,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],[107,155,172,173,180],[107,155,172,173,181],[107,155,166,172,173,182,183],[107,155,172,173,182,184,199,201],[107,155,167,172,173],[107,155,166,172,173,187,188,190],[107,155,172,173,189,190],[107,155,172,173,187,188],[107,155,172,173,190],[107,155,172,173,191],[107,152,155,172,173,187,192,198],[107,155,166,172,173,193,194],[107,155,172,173,193,194],[107,155,160,172,173,175,187,195],[107,155,172,173,196],[107,155,172,173,175,197],[107,155,169,172,173,181,198],[107,155,160,172,173,199],[107,155,172,173,187,200],[107,155,172,173,174,201],[107,155,172,173,202],[107,148,155,172,173],[107,148,155,166,168,172,173,178,187,190,198,200,201,203],[107,155,172,173,187,204],[60,107,155,172,173],[107,120,124,155,172,173,198],[107,120,155,172,173,187,198],[107,115,155,172,173],[107,117,120,155,172,173,195,198],[107,155,172,173,175,195],[107,155,172,173,205],[107,115,155,172,173,205],[107,117,120,155,172,173,175,198],[107,112,113,116,119,155,166,172,173,187,198],[107,120,127,155,172,173],[107,112,118,155,172,173],[107,120,141,142,155,172,173],[107,116,120,155,172,173,190,198,205],[107,141,155,172,173,205],[107,114,115,155,172,173,205],[107,120,155,172,173],[107,114,115,116,117,118,119,120,121,122,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,144,145,146,147,155,172,173],[107,120,135,155,172,173],[107,120,127,128,155,172,173],[107,118,120,128,129,155,172,173],[107,119,155,172,173],[107,112,115,120,155,172,173],[107,120,124,128,129,155,172,173],[107,124,155,172,173],[107,118,120,123,155,172,173,198],[107,112,117,120,127,155,172,173],[107,155,172,173,187],[107,115,120,141,155,172,173,203,205],[65,77,81,82,83,84,107,155,172,173,177],[80,81,82,84,86,107,155,172,173],[77,81,82,84,88,107,155,172,173],[77,81,82,84,90,107,155,172,173],[77,81,82,84,92,107,155,172,173],[77,81,82,84,94,107,155,172,173],[77,81,82,84,96,107,155,172,173,177],[81,82,107,155,172,173],[81,82,107,155,172,173,177],[99,107,155,172,173],[62,77,80,107,155,172,173],[58,82,85,87,89,91,93,95,97,98,107,155,172,173],[82,107,155,172,173],[78,79,107,155,172,173],[78,107,155,172,173],[66,67,68,69,70,71,72,73,74,75,76,107,155,172,173],[62,107,155,172,173],[62,67,107,155,172,173],[62,69,107,155,172,173],[68,107,155,172,173],[70,107,155,172,173],[63,64,107,155,172,173],[61,62,63,107,155,172,173]],"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":"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":"f70c407d79749859db326d714554c92b6f46bbf00bfdb40a1e2e6f705baa52a0","impliedFormat":1},{"version":"07189c6298f1b1a9f590baa5cf542937e44abc98ef7111a719262893ade1510f","impliedFormat":1},{"version":"e1a3930856d8f6a01240c81768c0219e4b1021f92e505f67b95c45fd7f11795c","impliedFormat":1},{"version":"5f019a25680faf51002b5ccf104dd61a93f95cc6821ed45fe905f7ffd6d44335","impliedFormat":1},"144a499d21023354b10cbd973431ebc2fa572a09d5c0fb61602f17a8fd01255c","300a891e9525c0a333d9687ee874f048a6c3a8c992e10c7395d1b8b873d7e468","e1131036edab8b893d1f6bc60b6bd91946ada31456bb6f0c8c252f3c42019c41","6d6ad79e639e2fda8cd6d421bbd1122aa48e4033b50971e318e7a47ee09e586a","e663b61a2f0336cf1fb7a85b721d2f7e76756c41b0729ca3c1ab25b652098224","69743b2f198dd86ace7b9c3369fbe5a333db58672b02f7477643e28f46e5c480","2485f0918d6903bf3220062514a653ed7f8ee76a564e5e2f07f856d17b1dd31a","fc5bd6dce0957f08063991ca21a3ff93e14717169dd0fbf107ea8499a2696a96","f57fc1bedb208ae4fe040b737a7380b26be665da9513280e3b97741b28d8d41a","c2bbb2366b38e02f2d4fc5091dc1982d97e38e04877894d88ee1deb3c55b1a75","d1fa7336238252b5a83d7051469c2b2442837c14fe1b37f0efb978c152fc70ad","42624ca9e43f455330d36cc43a93ef25393068aebefd754d6e501e8dc872bdc1","d152a39bc6d9c56ad3ee7bb91ef8df0d5272d416458ea7ae8eb1b156f1e23e1b","579732677604e6168d449646a8cf351a9d438cc0e0445a5c0f05e1c23d3e329e","cb589e2b10207d5db1a9e22c89cb34f86cf17eee2f02438994d3fae2d246df42","d9fa41bcf5129f6de4f31b5a84076ae4b0e7a7785e18f5d235c1b755356037dc","5dd2d4106df4c0bcf76f1c33ffaa90a1d402ba98ead02efe5008ca789de6b62d","8761811ea662c46c104703d615f109462d3c52b1e27462048831f914444912b8","d0a94f608fed74c2a6c18069d93c5a9dedcbc9509315ad910f03979fe7e459ed",{"version":"fb9acdb8f4c0c7bd2a042ee2ef6ff4bc23bfcf07fde909280664d553084a25a3","signature":"b9427890c86808b10b002b5e8898dc194e72c6670ca12ad5d48c1413f4394f8f"},{"version":"6bd6125d66d7784bdbd0b33d7ab1bb91bac21803898c07b7d635fcfef027ff7b","signature":"05012fc86ecad838f67cd251afd90a831c69963f681f232aeea88d6fa52d11b2"},{"version":"cca0d9e0af0de2e40268479940e71bd56f38bafece447f94f37eefe7664c4467","signature":"2b73f2b3de1adb64e7c9f5b63ecdc83f9792cc1ba0d58c5ad6472d22f03bc51c"},{"version":"019c157f7002560bed4d3c5e927fa63dbe8a8f8ba40891aa8389b8357b7dd7a2","signature":"53529ac7f2e2e0f504f61e68268077b3fb2f00d52febb5b8c04315a97a3b1a51"},{"version":"26fefe5bc6bdd00ff5a97ddfb1a36d4409ed7623ca78a807d75ae11c29f07e88","signature":"50d960e3218b91e4c3fcafde584e73b85ac43c6bb6801fbb96fd2d7f8259a7ca"},{"version":"14248341fa9d749d739172b90d9ed2814689cbdf6543d42ae4225b9eab40ac98","signature":"827a792927264d235de7a04c1acb480d30f92dc5d2f394fabf061fea3c8684f1"},{"version":"5794da71840594fb77fb2eb9606457179d0c63d4d06e581666117dbe5ef56aaf","signature":"fd1a53112a634c0214f443a51c3921639326dd3f35ef26a4642c5a4f176a9d92"},{"version":"6254b06b00b59489e4af5d6949ef0e98264f56fdb75964b1ec284a4ab4b73ebb","signature":"ba67900cf4224e65dfc2b13c06d2187cbd9ad40de0c2501f9cbe4ac3c3d5da21"},{"version":"5eaa4fdc8453705eca2a39b395e5bc0a10a09afc92d0bb7428ffb886357555bd","signature":"48a5633bf74e2d91641795ea59a2e79912937032ea0d396109850ca14dea1e51"},{"version":"3cd85435bf7234c1727338d23edd9ab64f937eb77e8a526c2678924781469e3d","signature":"fff76fb85a89e24517028ccff91c83f0c83a73cc185ae6d933e615b77db99787"},{"version":"5ef4eb6a2a089b6cc0f5fc45f984dbb313180ec6d469a4d7e64cec046ee0d7cb","signature":"c3437b7cdea2e87caa0b562029f1cc9fd1e9e3c2642790546eaa7b6a960d2e88"},{"version":"bc330e9851a4de3cb77f17c3297643f153f67d73fc3b314fcd827703c76448b6","signature":"80f045aea6795f5607ea2dafd2d1cb350489679e2531cb3ec11a33c907b4ddd3"},{"version":"12dc1a2a3eacfa110c4618c7d9deead62e9b5cac8a3cc0decf864d272f733f27","signature":"4f2ce024bc53ea4fd869bb0a29d2437ad2adfb2646dd25ed95da7c5c8a3f7e7c"},{"version":"a77e84715a5d653d71b8b55b98dd88ccf7326f8258d66ad8f84cddd1b74420e4","signature":"a2c87f5a4d8183492c274b05d5333841cc496646a810a73a0e9c8487261a8011"},{"version":"5e8d050605e3ef6f8d8b0a2db3a8fd826b641d66272daec846e6e1f30d5621ac","signature":"6851545879626b95820df96a16dd4edee6b185a61041f419812915e66501e6e3"},{"version":"acf53043986c411bc32479be28e43150cf34fdf83eb2758fb8df02f30b9300f3","signature":"245e5160fae5ced82e029f152b8c42e5d24484305604769558a8df3a434b434d"},{"version":"6bffb4304183051a77c628644dec985c099286d53e26b910bc9937799ec8e99c","signature":"9eae2f1929bc7904be16ee00376c8f24bcde34f30cee7bb4592b638a5ef2d859"},{"version":"99ed10b5eb23163c1aed8fd62d8735be45419dd3c48bc609d0d85f620dad2ac5","signature":"751d8f74ab2a1cbdd650471bce4df308bf055635a977c113d208b6313671d903"},{"version":"c7b196eb1b4da0605ff8aff7db7a8d2faef8155b095ddcbe1e324b51923f3e33","signature":"86242a63bb89410f0f7bcbad8cc0567e26762464c2bee3fab26d535a4501e082"},{"version":"7bf506c27060c630d39dd6aa0639a68331b16f853eba62305012e582ab0042bb","signature":"43e818adf60173644896298637f47b01d5819b17eda46eaa32d0c7d64724d012"},{"version":"8b8c66f6e46703d2da0558de6cb3ec1eef41b191ff155c85a0c0ee13dff7abce","signature":"49fb62e75ff6171882048a04becdf655330268bf52154929da8ec52bc91ece4b"},{"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":"6b4e081d55ac24fc8a4631d5dd77fe249fa25900abd7d046abb87d90e3b45645","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"83e63d6ccf8ec004a3bb6d58b9bb0104f60e002754b1e968024b320730cc5311","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":"f27524f4bef4b6519c604bdb23bf4465bddcccbf3f003abb901acbd0d7404d99","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"6b039f55681caaf111d5eb84d292b9bee9e0131d0db1ad0871eef0964f533c73","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"c8d3e5a18ba35629954e48c4cc8f11dc88224650067a172685c736b27a34a4dc","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2b55d426ff2b9087485e52ac4bc7cfafe1dc420fc76dad926cd46526567c501a","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"47613031a5a31510831304405af561b0ffaedb734437c595256bb61a90f9311b","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"8a1a0d0a4a06a8d278947fcb66bf684f117bf147f89b06e50662d79a53be3e9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"358765d5ea8afd285d4fd1532e78b88273f18cb3f87403a9b16fef61ac9fdcfe","impliedFormat":1},{"version":"9f55299850d4f0921e79b6bf344b47c420ce0f507b9dcf593e532b09ea7eeea1","impliedFormat":1}],"root":[[81,101]],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":1,"noImplicitAny":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[[60,1],[59,2],[152,3],[153,3],[154,4],[107,5],[155,6],[156,7],[157,8],[102,2],[105,9],[103,2],[104,2],[158,10],[159,11],[160,12],[161,13],[162,14],[163,15],[164,15],[165,16],[166,17],[167,18],[168,19],[108,2],[106,2],[169,20],[170,21],[171,22],[205,23],[172,24],[173,2],[174,25],[175,26],[176,27],[177,28],[178,29],[179,30],[180,31],[181,32],[182,33],[183,33],[184,34],[185,2],[186,35],[187,36],[189,37],[188,38],[190,39],[191,40],[192,41],[193,42],[194,43],[195,44],[196,45],[197,46],[198,47],[199,48],[200,49],[201,50],[202,51],[109,2],[110,2],[111,2],[149,52],[150,2],[151,2],[203,53],[204,54],[58,2],[61,55],[56,2],[57,2],[11,2],[10,2],[2,2],[12,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[3,2],[20,2],[21,2],[4,2],[22,2],[26,2],[23,2],[24,2],[25,2],[27,2],[28,2],[29,2],[5,2],[30,2],[31,2],[32,2],[33,2],[6,2],[37,2],[34,2],[35,2],[36,2],[38,2],[7,2],[39,2],[44,2],[45,2],[40,2],[41,2],[42,2],[43,2],[8,2],[49,2],[46,2],[47,2],[48,2],[50,2],[9,2],[51,2],[52,2],[53,2],[55,2],[54,2],[1,2],[127,56],[137,57],[126,56],[147,58],[118,59],[117,60],[146,61],[140,62],[145,63],[120,64],[134,65],[119,66],[143,67],[115,68],[114,61],[144,69],[116,70],[121,71],[122,2],[125,71],[112,2],[148,72],[138,73],[129,74],[130,75],[132,76],[128,77],[131,78],[141,61],[123,79],[124,80],[133,81],[113,82],[136,73],[135,71],[139,2],[142,83],[85,84],[87,85],[89,86],[91,87],[93,88],[101,2],[95,89],[97,90],[83,91],[86,91],[88,91],[90,91],[92,91],[94,92],[96,91],[100,93],[81,94],[82,2],[99,95],[84,96],[98,2],[80,97],[78,2],[79,98],[62,2],[77,99],[66,100],[67,2],[68,2],[69,100],[70,100],[73,101],[72,102],[71,103],[74,100],[75,100],[76,104],[65,105],[63,100],[64,106]],"latestChangedDtsFile":"./commands/scaffold.d.ts","version":"5.9.3"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { BuildCommandResult } from '../models/command-results';
|
|
2
|
+
import type { OutputOptions } from '../models/output-mode';
|
|
3
|
+
export declare function executeBuildCommand(repoPath: string, cwd?: string): Promise<BuildCommandResult>;
|
|
4
|
+
export declare function runBuildCommand(repoPath: string, outputOptions: OutputOptions): Promise<void>;
|
|
5
|
+
//# sourceMappingURL=build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAG1D,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,MAAM,EAChB,GAAG,GAAE,MAAsB,GAC1B,OAAO,CAAC,kBAAkB,CAAC,CAW7B;AAED,wBAAsB,eAAe,CACnC,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,IAAI,CAAC,CAQf"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.executeBuildCommand = executeBuildCommand;
|
|
7
|
+
exports.runBuildCommand = runBuildCommand;
|
|
8
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
9
|
+
const parser_ts_1 = require("@archkit/parser-ts");
|
|
10
|
+
const graph_1 = require("@archkit/graph");
|
|
11
|
+
const build_1 = require("../formatters/build");
|
|
12
|
+
const command_output_1 = require("../utils/command-output");
|
|
13
|
+
async function executeBuildCommand(repoPath, cwd = process.cwd()) {
|
|
14
|
+
const rootDir = node_path_1.default.resolve(cwd, repoPath);
|
|
15
|
+
const parser = new parser_ts_1.TypeScriptParser();
|
|
16
|
+
const graphData = parser.parseRepository({ rootDir });
|
|
17
|
+
const result = await (0, graph_1.persistGraph)(rootDir, graphData);
|
|
18
|
+
return {
|
|
19
|
+
repoPath,
|
|
20
|
+
meta: result.meta,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
async function runBuildCommand(repoPath, outputOptions) {
|
|
24
|
+
try {
|
|
25
|
+
const mode = (0, command_output_1.resolveOutputMode)(outputOptions, false);
|
|
26
|
+
const result = await executeBuildCommand(repoPath);
|
|
27
|
+
(0, command_output_1.writeFormattedOutput)((0, build_1.formatBuildResult)(result, mode));
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
(0, command_output_1.handleCommandError)(error, outputOptions);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=build.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":";;;;;AAQA,kDAcC;AAED,0CAWC;AAnCD,0DAA4B;AAC5B,kDAAqD;AACrD,0CAA6C;AAC7C,+CAAuD;AAGvD,4DAAqG;AAE9F,KAAK,UAAU,mBAAmB,CACvC,QAAgB,EAChB,MAAc,OAAO,CAAC,GAAG,EAAE;IAE3B,MAAM,OAAO,GAAG,mBAAI,CAAC,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;IAC3C,MAAM,MAAM,GAAG,IAAI,4BAAgB,EAAE,CAAA;IAErC,MAAM,SAAS,GAAG,MAAM,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;IACrD,MAAM,MAAM,GAAG,MAAM,IAAA,oBAAY,EAAC,OAAO,EAAE,SAAS,CAAC,CAAA;IAErD,OAAO;QACL,QAAQ;QACR,IAAI,EAAE,MAAM,CAAC,IAAI;KAClB,CAAA;AACH,CAAC;AAEM,KAAK,UAAU,eAAe,CACnC,QAAgB,EAChB,aAA4B;IAE5B,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,IAAA,kCAAiB,EAAC,aAAa,EAAE,KAAK,CAAC,CAAA;QACpD,MAAM,MAAM,GAAG,MAAM,mBAAmB,CAAC,QAAQ,CAAC,CAAA;QAClD,IAAA,qCAAoB,EAAC,IAAA,yBAAiB,EAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAA;IACvD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAA,mCAAkB,EAAC,KAAK,EAAE,aAAa,CAAC,CAAA;IAC1C,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ContextCommandResult } from '../models/command-results';
|
|
2
|
+
import type { OutputOptions } from '../models/output-mode';
|
|
3
|
+
export declare function executeContextCommand(query: string | undefined, cwd?: string): Promise<ContextCommandResult>;
|
|
4
|
+
export declare function runContextCommand(query: string | undefined, outputOptions: OutputOptions): Promise<void>;
|
|
5
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/commands/context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAG1D,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,GAAG,GAAE,MAAsB,GAC1B,OAAO,CAAC,oBAAoB,CAAC,CAa/B;AAED,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,IAAI,CAAC,CAQf"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.executeContextCommand = executeContextCommand;
|
|
4
|
+
exports.runContextCommand = runContextCommand;
|
|
5
|
+
const context_1 = require("@archkit/context");
|
|
6
|
+
const context_2 = require("../formatters/context");
|
|
7
|
+
const command_output_1 = require("../utils/command-output");
|
|
8
|
+
async function executeContextCommand(query, cwd = process.cwd()) {
|
|
9
|
+
const queryInput = query?.trim();
|
|
10
|
+
if (!queryInput) {
|
|
11
|
+
throw new command_output_1.CliCommandError('INVALID_INPUT', 'Provide a query. Usage: `arch context <query>`.');
|
|
12
|
+
}
|
|
13
|
+
try {
|
|
14
|
+
const compiler = new context_1.ContextCompiler();
|
|
15
|
+
return await compiler.compile(cwd, { query: queryInput });
|
|
16
|
+
}
|
|
17
|
+
catch {
|
|
18
|
+
throw new command_output_1.CliCommandError('GRAPH_NOT_FOUND', 'No graph data found. Run `arch build` first.');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
async function runContextCommand(query, outputOptions) {
|
|
22
|
+
try {
|
|
23
|
+
const mode = (0, command_output_1.resolveOutputMode)(outputOptions, true);
|
|
24
|
+
const result = await executeContextCommand(query);
|
|
25
|
+
(0, command_output_1.writeFormattedOutput)((0, context_2.formatContextResult)(result, mode));
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
(0, command_output_1.handleCommandError)(error, outputOptions);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/commands/context.ts"],"names":[],"mappings":";;AAMA,sDAgBC;AAED,8CAWC;AAnCD,8CAAkD;AAClD,mDAA2D;AAG3D,4DAAsH;AAE/G,KAAK,UAAU,qBAAqB,CACzC,KAAyB,EACzB,MAAc,OAAO,CAAC,GAAG,EAAE;IAE3B,MAAM,UAAU,GAAG,KAAK,EAAE,IAAI,EAAE,CAAA;IAEhC,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,MAAM,IAAI,gCAAe,CAAC,eAAe,EAAE,iDAAiD,CAAC,CAAA;IAC/F,CAAC;IAED,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,IAAI,yBAAe,EAAE,CAAA;QACtC,OAAO,MAAM,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAA;IAC3D,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,gCAAe,CAAC,iBAAiB,EAAE,8CAA8C,CAAC,CAAA;IAC9F,CAAC;AACH,CAAC;AAEM,KAAK,UAAU,iBAAiB,CACrC,KAAyB,EACzB,aAA4B;IAE5B,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,IAAA,kCAAiB,EAAC,aAAa,EAAE,IAAI,CAAC,CAAA;QACnD,MAAM,MAAM,GAAG,MAAM,qBAAqB,CAAC,KAAK,CAAC,CAAA;QACjD,IAAA,qCAAoB,EAAC,IAAA,6BAAmB,EAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAA;IACzD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAA,mCAAkB,EAAC,KAAK,EAAE,aAAa,CAAC,CAAA;IAC1C,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DepsCommandResult } from '../models/command-results';
|
|
2
|
+
import type { OutputOptions } from '../models/output-mode';
|
|
3
|
+
export declare function executeDepsCommand(symbol: string | undefined, cwd?: string): Promise<DepsCommandResult>;
|
|
4
|
+
export declare function runDepsCommand(symbol: string | undefined, outputOptions: OutputOptions): Promise<void>;
|
|
5
|
+
//# sourceMappingURL=deps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../../src/commands/deps.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAG1D,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,GAAG,GAAE,MAAsB,GAC1B,OAAO,CAAC,iBAAiB,CAAC,CAqC5B;AAED,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,IAAI,CAAC,CAQf"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.executeDepsCommand = executeDepsCommand;
|
|
4
|
+
exports.runDepsCommand = runDepsCommand;
|
|
5
|
+
const graph_1 = require("@archkit/graph");
|
|
6
|
+
const deps_1 = require("../formatters/deps");
|
|
7
|
+
const command_output_1 = require("../utils/command-output");
|
|
8
|
+
async function executeDepsCommand(symbol, cwd = process.cwd()) {
|
|
9
|
+
const symbolInput = symbol?.trim();
|
|
10
|
+
if (!symbolInput) {
|
|
11
|
+
throw new command_output_1.CliCommandError('INVALID_INPUT', 'Provide a symbol. Usage: `arch deps <symbol>`.');
|
|
12
|
+
}
|
|
13
|
+
try {
|
|
14
|
+
const resolved = await (0, graph_1.resolveSymbolInput)(cwd, symbolInput);
|
|
15
|
+
if (resolved.nodes.length === 0) {
|
|
16
|
+
throw new command_output_1.CliCommandError('SYMBOL_NOT_FOUND', `No symbol found for: ${symbolInput}`);
|
|
17
|
+
}
|
|
18
|
+
if (resolved.nodes.length > 1) {
|
|
19
|
+
throw new command_output_1.CliCommandError('SYMBOL_AMBIGUOUS', [
|
|
20
|
+
`Ambiguous symbol: ${symbolInput}`,
|
|
21
|
+
'',
|
|
22
|
+
'Matches:',
|
|
23
|
+
...resolved.nodes
|
|
24
|
+
.slice()
|
|
25
|
+
.sort((left, right) => left.id.localeCompare(right.id))
|
|
26
|
+
.map((node) => ` ${node.id}`),
|
|
27
|
+
].join('\n'));
|
|
28
|
+
}
|
|
29
|
+
return (0, graph_1.queryDependencies)(cwd, symbolInput, resolved.nodes);
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
if (error instanceof command_output_1.CliCommandError) {
|
|
33
|
+
throw error;
|
|
34
|
+
}
|
|
35
|
+
throw new command_output_1.CliCommandError('GRAPH_NOT_FOUND', 'No graph data found. Run `arch build` first.');
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
async function runDepsCommand(symbol, outputOptions) {
|
|
39
|
+
try {
|
|
40
|
+
const mode = (0, command_output_1.resolveOutputMode)(outputOptions, true);
|
|
41
|
+
const result = await executeDepsCommand(symbol);
|
|
42
|
+
(0, command_output_1.writeFormattedOutput)((0, deps_1.formatDepsResult)(result, mode));
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
(0, command_output_1.handleCommandError)(error, outputOptions);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=deps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deps.js","sourceRoot":"","sources":["../../src/commands/deps.ts"],"names":[],"mappings":";;AAMA,gDAwCC;AAED,wCAWC;AA3DD,0CAAsE;AACtE,6CAAqD;AAGrD,4DAAsH;AAE/G,KAAK,UAAU,kBAAkB,CACtC,MAA0B,EAC1B,MAAc,OAAO,CAAC,GAAG,EAAE;IAE3B,MAAM,WAAW,GAAG,MAAM,EAAE,IAAI,EAAE,CAAA;IAElC,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,MAAM,IAAI,gCAAe,CAAC,eAAe,EAAE,gDAAgD,CAAC,CAAA;IAC9F,CAAC;IAED,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,IAAA,0BAAkB,EAAC,GAAG,EAAE,WAAW,CAAC,CAAA;QAE3D,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAChC,MAAM,IAAI,gCAAe,CAAC,kBAAkB,EAAE,wBAAwB,WAAW,EAAE,CAAC,CAAA;QACtF,CAAC;QAED,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC9B,MAAM,IAAI,gCAAe,CACvB,kBAAkB,EAClB;gBACE,qBAAqB,WAAW,EAAE;gBAClC,EAAE;gBACF,UAAU;gBACV,GAAG,QAAQ,CAAC,KAAK;qBACd,KAAK,EAAE;qBACP,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;qBACtD,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,CAAC,EAAE,EAAE,CAAC;aACjC,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CAAA;QACH,CAAC;QAED,OAAO,IAAA,yBAAiB,EAAC,GAAG,EAAE,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAA;IAC5D,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,gCAAe,EAAE,CAAC;YACrC,MAAM,KAAK,CAAA;QACb,CAAC;QAED,MAAM,IAAI,gCAAe,CAAC,iBAAiB,EAAE,8CAA8C,CAAC,CAAA;IAC9F,CAAC;AACH,CAAC;AAEM,KAAK,UAAU,cAAc,CAClC,MAA0B,EAC1B,aAA4B;IAE5B,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,IAAA,kCAAiB,EAAC,aAAa,EAAE,IAAI,CAAC,CAAA;QACnD,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,MAAM,CAAC,CAAA;QAC/C,IAAA,qCAAoB,EAAC,IAAA,uBAAgB,EAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAA;IACtD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAA,mCAAkB,EAAC,KAAK,EAAE,aAAa,CAAC,CAAA;IAC1C,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { KnowledgeAddCommandResult, KnowledgeListCommandResult, KnowledgeSearchCommandResult, KnowledgeShowCommandResult } from '../models/command-results';
|
|
2
|
+
import type { OutputOptions } from '../models/output-mode';
|
|
3
|
+
export interface KnowledgeAddOptions extends OutputOptions {
|
|
4
|
+
type?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
body?: string;
|
|
7
|
+
feature?: string;
|
|
8
|
+
tags?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function executeKnowledgeAddCommand(options: KnowledgeAddOptions, cwd?: string): Promise<KnowledgeAddCommandResult>;
|
|
11
|
+
export declare function executeKnowledgeListCommand(cwd?: string): Promise<KnowledgeListCommandResult>;
|
|
12
|
+
export declare function executeKnowledgeShowCommand(id: string | undefined, cwd?: string): Promise<KnowledgeShowCommandResult>;
|
|
13
|
+
export declare function executeKnowledgeSearchCommand(query: string | undefined, cwd?: string): Promise<KnowledgeSearchCommandResult>;
|
|
14
|
+
export declare function runKnowledgeAddCommand(options: KnowledgeAddOptions): Promise<void>;
|
|
15
|
+
export declare function runKnowledgeListCommand(options: OutputOptions): Promise<void>;
|
|
16
|
+
export declare function runKnowledgeShowCommand(id: string | undefined, options: OutputOptions): Promise<void>;
|
|
17
|
+
export declare function runKnowledgeSearchCommand(query: string | undefined, options: OutputOptions): Promise<void>;
|
|
18
|
+
//# sourceMappingURL=knowledge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge.d.ts","sourceRoot":"","sources":["../../src/commands/knowledge.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,yBAAyB,EACzB,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC3B,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAG1D,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACxD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE,mBAAmB,EAC5B,GAAG,GAAE,MAAsB,GAC1B,OAAO,CAAC,yBAAyB,CAAC,CAyCpC;AAED,wBAAsB,2BAA2B,CAC/C,GAAG,GAAE,MAAsB,GAC1B,OAAO,CAAC,0BAA0B,CAAC,CAUrC;AAED,wBAAsB,2BAA2B,CAC/C,EAAE,EAAE,MAAM,GAAG,SAAS,EACtB,GAAG,GAAE,MAAsB,GAC1B,OAAO,CAAC,0BAA0B,CAAC,CAuBrC;AAED,wBAAsB,6BAA6B,CACjD,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,GAAG,GAAE,MAAsB,GAC1B,OAAO,CAAC,4BAA4B,CAAC,CAgBvC;AAED,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAQxF;AAED,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAQnF;AAED,wBAAsB,uBAAuB,CAC3C,EAAE,EAAE,MAAM,GAAG,SAAS,EACtB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,IAAI,CAAC,CAQf;AAED,wBAAsB,yBAAyB,CAC7C,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,IAAI,CAAC,CAQf"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.executeKnowledgeAddCommand = executeKnowledgeAddCommand;
|
|
4
|
+
exports.executeKnowledgeListCommand = executeKnowledgeListCommand;
|
|
5
|
+
exports.executeKnowledgeShowCommand = executeKnowledgeShowCommand;
|
|
6
|
+
exports.executeKnowledgeSearchCommand = executeKnowledgeSearchCommand;
|
|
7
|
+
exports.runKnowledgeAddCommand = runKnowledgeAddCommand;
|
|
8
|
+
exports.runKnowledgeListCommand = runKnowledgeListCommand;
|
|
9
|
+
exports.runKnowledgeShowCommand = runKnowledgeShowCommand;
|
|
10
|
+
exports.runKnowledgeSearchCommand = runKnowledgeSearchCommand;
|
|
11
|
+
const graph_1 = require("@archkit/graph");
|
|
12
|
+
const knowledge_1 = require("../formatters/knowledge");
|
|
13
|
+
const command_output_1 = require("../utils/command-output");
|
|
14
|
+
async function executeKnowledgeAddCommand(options, cwd = process.cwd()) {
|
|
15
|
+
const normalizedType = options.type?.trim().toLocaleLowerCase();
|
|
16
|
+
const title = options.title?.trim();
|
|
17
|
+
const body = options.body?.trim();
|
|
18
|
+
if (!normalizedType || !title || !body) {
|
|
19
|
+
throw new command_output_1.CliCommandError('INVALID_INPUT', 'Provide type, title, and body. Usage: `arch knowledge add --type <type> --title <title> --body <body>`.');
|
|
20
|
+
}
|
|
21
|
+
if (!isKnowledgeType(normalizedType)) {
|
|
22
|
+
throw new command_output_1.CliCommandError('INVALID_INPUT', `Invalid type: ${normalizedType}. Supported values: ${graph_1.KNOWLEDGE_TYPES.join(', ')}.`);
|
|
23
|
+
}
|
|
24
|
+
const parsedTags = parseTagsOption(options.tags);
|
|
25
|
+
try {
|
|
26
|
+
const entry = await (0, graph_1.addKnowledgeEntry)(cwd, {
|
|
27
|
+
type: normalizedType,
|
|
28
|
+
title,
|
|
29
|
+
body,
|
|
30
|
+
feature: options.feature,
|
|
31
|
+
tags: parsedTags,
|
|
32
|
+
});
|
|
33
|
+
return {
|
|
34
|
+
action: 'add',
|
|
35
|
+
entry,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
if (error instanceof Error && error.message.includes('already exists')) {
|
|
40
|
+
throw new command_output_1.CliCommandError('KNOWLEDGE_EXISTS', error.message);
|
|
41
|
+
}
|
|
42
|
+
throw new command_output_1.CliCommandError('COMMAND_FAILED', 'Failed to add knowledge entry.');
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
async function executeKnowledgeListCommand(cwd = process.cwd()) {
|
|
46
|
+
try {
|
|
47
|
+
const entries = await (0, graph_1.listKnowledgeEntries)(cwd);
|
|
48
|
+
return {
|
|
49
|
+
action: 'list',
|
|
50
|
+
entries,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
catch {
|
|
54
|
+
throw new command_output_1.CliCommandError('COMMAND_FAILED', 'Failed to list knowledge entries.');
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
async function executeKnowledgeShowCommand(id, cwd = process.cwd()) {
|
|
58
|
+
const normalizedId = id?.trim().toLocaleLowerCase();
|
|
59
|
+
if (!normalizedId) {
|
|
60
|
+
throw new command_output_1.CliCommandError('INVALID_INPUT', 'Provide an entry id. Usage: `arch knowledge show <id>`.');
|
|
61
|
+
}
|
|
62
|
+
try {
|
|
63
|
+
const entry = await (0, graph_1.getKnowledgeEntry)(cwd, normalizedId);
|
|
64
|
+
if (!entry) {
|
|
65
|
+
throw new command_output_1.CliCommandError('KNOWLEDGE_NOT_FOUND', `No knowledge entry found for id: ${normalizedId}`);
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
action: 'show',
|
|
69
|
+
entry,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
catch (error) {
|
|
73
|
+
if (error instanceof command_output_1.CliCommandError) {
|
|
74
|
+
throw error;
|
|
75
|
+
}
|
|
76
|
+
throw new command_output_1.CliCommandError('COMMAND_FAILED', 'Failed to load knowledge entry.');
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
async function executeKnowledgeSearchCommand(query, cwd = process.cwd()) {
|
|
80
|
+
const normalizedQuery = query?.trim();
|
|
81
|
+
if (!normalizedQuery) {
|
|
82
|
+
throw new command_output_1.CliCommandError('INVALID_INPUT', 'Provide a query. Usage: `arch knowledge search <query>`.');
|
|
83
|
+
}
|
|
84
|
+
try {
|
|
85
|
+
const matches = await (0, graph_1.searchKnowledgeEntries)(cwd, normalizedQuery);
|
|
86
|
+
return {
|
|
87
|
+
action: 'search',
|
|
88
|
+
query: normalizedQuery,
|
|
89
|
+
matches,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
catch {
|
|
93
|
+
throw new command_output_1.CliCommandError('COMMAND_FAILED', 'Failed to search knowledge entries.');
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
async function runKnowledgeAddCommand(options) {
|
|
97
|
+
try {
|
|
98
|
+
const mode = (0, command_output_1.resolveOutputMode)(options, true);
|
|
99
|
+
const result = await executeKnowledgeAddCommand(options);
|
|
100
|
+
(0, command_output_1.writeFormattedOutput)((0, knowledge_1.formatKnowledgeResult)(result, mode));
|
|
101
|
+
}
|
|
102
|
+
catch (error) {
|
|
103
|
+
(0, command_output_1.handleCommandError)(error, options);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
async function runKnowledgeListCommand(options) {
|
|
107
|
+
try {
|
|
108
|
+
const mode = (0, command_output_1.resolveOutputMode)(options, true);
|
|
109
|
+
const result = await executeKnowledgeListCommand();
|
|
110
|
+
(0, command_output_1.writeFormattedOutput)((0, knowledge_1.formatKnowledgeResult)(result, mode));
|
|
111
|
+
}
|
|
112
|
+
catch (error) {
|
|
113
|
+
(0, command_output_1.handleCommandError)(error, options);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
async function runKnowledgeShowCommand(id, options) {
|
|
117
|
+
try {
|
|
118
|
+
const mode = (0, command_output_1.resolveOutputMode)(options, true);
|
|
119
|
+
const result = await executeKnowledgeShowCommand(id);
|
|
120
|
+
(0, command_output_1.writeFormattedOutput)((0, knowledge_1.formatKnowledgeResult)(result, mode));
|
|
121
|
+
}
|
|
122
|
+
catch (error) {
|
|
123
|
+
(0, command_output_1.handleCommandError)(error, options);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
async function runKnowledgeSearchCommand(query, options) {
|
|
127
|
+
try {
|
|
128
|
+
const mode = (0, command_output_1.resolveOutputMode)(options, true);
|
|
129
|
+
const result = await executeKnowledgeSearchCommand(query);
|
|
130
|
+
(0, command_output_1.writeFormattedOutput)((0, knowledge_1.formatKnowledgeResult)(result, mode));
|
|
131
|
+
}
|
|
132
|
+
catch (error) {
|
|
133
|
+
(0, command_output_1.handleCommandError)(error, options);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
function isKnowledgeType(value) {
|
|
137
|
+
return graph_1.KNOWLEDGE_TYPES.includes(value);
|
|
138
|
+
}
|
|
139
|
+
function parseTagsOption(value) {
|
|
140
|
+
if (!value) {
|
|
141
|
+
return [];
|
|
142
|
+
}
|
|
143
|
+
return value
|
|
144
|
+
.split(',')
|
|
145
|
+
.map((tag) => tag.trim())
|
|
146
|
+
.filter((tag) => tag.length > 0);
|
|
147
|
+
}
|
|
148
|
+
//# sourceMappingURL=knowledge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge.js","sourceRoot":"","sources":["../../src/commands/knowledge.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { QueryCommandResult } from '../models/command-results';
|
|
2
|
+
import type { OutputOptions } from '../models/output-mode';
|
|
3
|
+
export declare function executeQueryCommand(term: string | undefined, cwd?: string): Promise<QueryCommandResult>;
|
|
4
|
+
export declare function runQueryCommand(term: string | undefined, outputOptions: OutputOptions): Promise<void>;
|
|
5
|
+
//# sourceMappingURL=query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../src/commands/query.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAG1D,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,GAAG,GAAE,MAAsB,GAC1B,OAAO,CAAC,kBAAkB,CAAC,CA4C7B;AAED,wBAAsB,eAAe,CACnC,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,IAAI,CAAC,CAQf"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.executeQueryCommand = executeQueryCommand;
|
|
4
|
+
exports.runQueryCommand = runQueryCommand;
|
|
5
|
+
const graph_1 = require("@archkit/graph");
|
|
6
|
+
const query_1 = require("../formatters/query");
|
|
7
|
+
const command_output_1 = require("../utils/command-output");
|
|
8
|
+
async function executeQueryCommand(term, cwd = process.cwd()) {
|
|
9
|
+
const queryTerm = term?.trim();
|
|
10
|
+
if (!queryTerm) {
|
|
11
|
+
throw new command_output_1.CliCommandError('INVALID_INPUT', 'Provide a query term. Usage: `arch query <term>`.');
|
|
12
|
+
}
|
|
13
|
+
try {
|
|
14
|
+
const [queryResult, nodes] = await Promise.all([
|
|
15
|
+
(0, graph_1.querySymbols)(cwd, queryTerm),
|
|
16
|
+
(0, graph_1.readPersistedNodes)(cwd),
|
|
17
|
+
]);
|
|
18
|
+
const nodeMap = new Map(nodes.map((node) => [node.id, node]));
|
|
19
|
+
const matches = queryResult.matches
|
|
20
|
+
.flatMap((match) => match.nodeIds)
|
|
21
|
+
.map((nodeId) => {
|
|
22
|
+
const node = nodeMap.get(nodeId);
|
|
23
|
+
if (!node) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
nodeId: node.id,
|
|
28
|
+
type: node.type,
|
|
29
|
+
name: node.name,
|
|
30
|
+
file: node.filePath,
|
|
31
|
+
};
|
|
32
|
+
})
|
|
33
|
+
.filter((match) => match !== undefined);
|
|
34
|
+
const dedupedMatches = [...new Map(matches.map((match) => [match.nodeId, match])).values()]
|
|
35
|
+
.sort((left, right) => {
|
|
36
|
+
const leftKey = `${left.type}:${left.name}:${left.file}:${left.nodeId}`;
|
|
37
|
+
const rightKey = `${right.type}:${right.name}:${right.file}:${right.nodeId}`;
|
|
38
|
+
return leftKey.localeCompare(rightKey);
|
|
39
|
+
});
|
|
40
|
+
return {
|
|
41
|
+
term: queryResult.term,
|
|
42
|
+
matches: dedupedMatches,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
catch {
|
|
46
|
+
throw new command_output_1.CliCommandError('GRAPH_NOT_FOUND', 'No graph index found. Run `arch build` first.');
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
async function runQueryCommand(term, outputOptions) {
|
|
50
|
+
try {
|
|
51
|
+
const mode = (0, command_output_1.resolveOutputMode)(outputOptions, true);
|
|
52
|
+
const result = await executeQueryCommand(term);
|
|
53
|
+
(0, command_output_1.writeFormattedOutput)((0, query_1.formatQueryResult)(result, mode));
|
|
54
|
+
}
|
|
55
|
+
catch (error) {
|
|
56
|
+
(0, command_output_1.handleCommandError)(error, outputOptions);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/commands/query.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/commands/scaffold.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAG/E"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.runScaffoldCommand = runScaffoldCommand;
|
|
4
|
+
function runScaffoldCommand(commandName, argument) {
|
|
5
|
+
const suffix = argument ?? '';
|
|
6
|
+
console.log(`arch ${commandName} (scaffold): ${suffix}`.trim());
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=scaffold.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffold.js","sourceRoot":"","sources":["../../src/commands/scaffold.ts"],"names":[],"mappings":";;AAAA,gDAGC;AAHD,SAAgB,kBAAkB,CAAC,WAAmB,EAAE,QAAiB;IACvE,MAAM,MAAM,GAAG,QAAQ,IAAI,EAAE,CAAA;IAC7B,OAAO,CAAC,GAAG,CAAC,QAAQ,WAAW,gBAAgB,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAA;AACjE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ShowCommandResult } from '../models/command-results';
|
|
2
|
+
import type { OutputOptions } from '../models/output-mode';
|
|
3
|
+
export declare function executeShowCommand(symbol: string | undefined, cwd?: string): Promise<ShowCommandResult>;
|
|
4
|
+
export declare function runShowCommand(symbol: string | undefined, outputOptions: OutputOptions): Promise<void>;
|
|
5
|
+
//# sourceMappingURL=show.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show.d.ts","sourceRoot":"","sources":["../../src/commands/show.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAG1D,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,GAAG,GAAE,MAAsB,GAC1B,OAAO,CAAC,iBAAiB,CAAC,CA2C5B;AAED,wBAAsB,cAAc,CAClC,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,IAAI,CAAC,CAQf"}
|