@pitcheye/core 0.0.0-stage → 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.
Files changed (56) hide show
  1. package/LICENSE +21 -0
  2. package/dist/.tsbuildinfo +1 -0
  3. package/dist/ast.d.ts +82 -0
  4. package/dist/ast.d.ts.map +1 -0
  5. package/dist/ast.js +313 -0
  6. package/dist/ast.js.map +1 -0
  7. package/dist/engine.d.ts +38 -0
  8. package/dist/engine.d.ts.map +1 -0
  9. package/dist/engine.js +362 -0
  10. package/dist/engine.js.map +1 -0
  11. package/dist/index.d.ts +14 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +27 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/registry.d.ts +48 -0
  16. package/dist/registry.d.ts.map +1 -0
  17. package/dist/registry.js +115 -0
  18. package/dist/registry.js.map +1 -0
  19. package/dist/rules/_shared.d.ts +81 -0
  20. package/dist/rules/_shared.d.ts.map +1 -0
  21. package/dist/rules/_shared.js +308 -0
  22. package/dist/rules/_shared.js.map +1 -0
  23. package/dist/rules/clerk.d.ts +3 -0
  24. package/dist/rules/clerk.d.ts.map +1 -0
  25. package/dist/rules/clerk.js +315 -0
  26. package/dist/rules/clerk.js.map +1 -0
  27. package/dist/rules/db.d.ts +17 -0
  28. package/dist/rules/db.d.ts.map +1 -0
  29. package/dist/rules/db.js +587 -0
  30. package/dist/rules/db.js.map +1 -0
  31. package/dist/rules/inngest.d.ts +3 -0
  32. package/dist/rules/inngest.d.ts.map +1 -0
  33. package/dist/rules/inngest.js +233 -0
  34. package/dist/rules/inngest.js.map +1 -0
  35. package/dist/rules/supabase-auth.d.ts +3 -0
  36. package/dist/rules/supabase-auth.d.ts.map +1 -0
  37. package/dist/rules/supabase-auth.js +259 -0
  38. package/dist/rules/supabase-auth.js.map +1 -0
  39. package/dist/rules/vercel.d.ts +3 -0
  40. package/dist/rules/vercel.d.ts.map +1 -0
  41. package/dist/rules/vercel.js +349 -0
  42. package/dist/rules/vercel.js.map +1 -0
  43. package/dist/rules/webhooks.d.ts +3 -0
  44. package/dist/rules/webhooks.d.ts.map +1 -0
  45. package/dist/rules/webhooks.js +342 -0
  46. package/dist/rules/webhooks.js.map +1 -0
  47. package/dist/serializer.d.ts +136 -0
  48. package/dist/serializer.d.ts.map +1 -0
  49. package/dist/serializer.js +119 -0
  50. package/dist/serializer.js.map +1 -0
  51. package/dist/types.d.ts +137 -0
  52. package/dist/types.d.ts.map +1 -0
  53. package/dist/types.js +11 -0
  54. package/dist/types.js.map +1 -0
  55. package/package.json +24 -3
  56. package/README.md +0 -3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 PitchEye LLC
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/typescript@5.9.3/node_modules/typescript/lib/typescript.d.ts","../src/ast.ts","../src/types.ts","../src/rules/_shared.ts","../src/rules/clerk.ts","../src/rules/supabase-auth.ts","../src/rules/db.ts","../src/rules/vercel.ts","../src/rules/webhooks.ts","../src/rules/inngest.ts","../src/registry.ts","../src/engine.ts","../src/serializer.ts","../src/index.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/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.20.7/node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/web-globals/streams.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/index.d.ts"],"fileIdsList":[[77,123,124,126,143,144],[77,125,126,143,144],[126,143,144],[77,126,131,143,144,161],[77,126,127,132,137,143,144,146,158,169],[77,126,127,128,137,143,144,146],[77,126,143,144],[72,73,74,77,126,143,144],[77,126,129,143,144,170],[77,126,130,131,138,143,144,147],[77,126,131,143,144,158,166],[77,126,132,134,137,143,144,146],[77,125,126,133,143,144],[77,126,134,135,143,144],[77,126,136,137,143,144],[77,125,126,137,143,144],[77,126,137,138,139,143,144,158,169],[77,126,137,138,139,143,144,153,158,161],[77,118,126,134,137,140,143,144,146,158,169],[77,126,137,138,140,141,143,144,146,158,166,169],[77,126,140,142,143,144,158,166,169],[75,76,77,78,79,80,81,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,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],[77,126,137,143,144],[77,126,143,144,145,169],[77,126,134,137,143,144,146,158],[77,126,143,144,147],[77,126,143,144,148],[77,125,126,143,144,149],[77,123,124,125,126,127,128,129,130,131,132,133,134,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],[77,126,143,144,151],[77,126,143,144,152],[77,126,137,143,144,153,154],[77,126,143,144,153,155,170,172],[77,126,138,143,144],[77,126,137,143,144,158,159,161],[77,126,143,144,160,161],[77,126,143,144,158,159],[77,126,143,144,161],[77,126,143,144,162],[77,123,126,143,144,158,163,169],[77,126,137,143,144,164,165],[77,126,143,144,164,165],[77,126,131,143,144,146,158,166],[77,126,143,144,167],[77,126,143,144,146,168],[77,126,140,143,144,152,169],[77,126,131,143,144,170],[77,126,143,144,158,171],[77,126,143,144,145,172],[77,126,143,144,173],[77,118,126,143,144],[77,118,126,137,139,143,144,149,158,161,169,171,172,174],[77,126,143,144,158,175],[77,90,94,126,143,144,169],[77,90,126,143,144,158,169],[77,85,126,143,144],[77,87,90,126,143,144,166,169],[77,126,143,144,146,166],[77,126,143,144,176],[77,85,126,143,144,176],[77,87,90,126,143,144,146,169],[77,82,83,86,89,126,137,143,144,158,169],[77,90,97,126,143,144],[77,82,88,126,143,144],[77,90,111,112,126,143,144],[77,86,90,126,143,144,161,169,176],[77,111,126,143,144,176],[77,84,85,126,143,144,176],[77,90,126,143,144],[77,84,85,86,87,88,89,90,91,92,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,112,113,114,115,116,117,126,143,144],[77,90,105,126,143,144],[77,90,97,98,126,143,144],[77,88,90,98,99,126,143,144],[77,89,126,143,144],[77,82,85,90,126,143,144],[77,90,94,98,99,126,143,144],[77,94,126,143,144],[77,88,90,93,126,143,144,169],[77,82,87,90,97,126,143,144],[77,126,143,144,158],[77,85,90,111,126,143,144,174,176],[58,77,126,143,144],[60,68,77,126,138,139,143,144,148],[60,64,68,69,70,77,126,143,144],[60,62,63,64,65,66,67,77,126,143,144],[58,59,60,77,126,143,144],[58,59,60,61,77,126,143,144],[60,77,126,143,144]],"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":"e134052a6b1ded61693b4037f615dc72f14e2881e79c1ddbff6c514c8a516b05","impliedFormat":1},{"version":"b872506d59d9a434f5a520cb2d3ad3b8475ff2743740a52aaa8deaed9dee047b","signature":"b04722e487978e62a771d4b0abc3cde14a57825c45be059fcc22082f38188101","impliedFormat":1},{"version":"668d7d641e95a3c428bc1e9736bb951eefe53aa5eb89634e15d76306345c367a","signature":"3d0a3c62c2c815d209413eec47bfc5bf6f709b7382e81c5e0a7904ea64242b8e","impliedFormat":1},{"version":"bf8a591e4f5aaed23871f5ee6c7dbbd44bd6ede92997526ad97e6a6fb8cfc52a","signature":"0149b9b8e0038d166ae560e66316f1abe68bb2af1cdcdeb672115c6ac07d6e44","impliedFormat":1},{"version":"2c9327b9ab63e35d77fb72ec7d5ed8daad92aa6cc460f75a007086accaafa972","signature":"2c392574f00780771727fa62ec9016784c45b9a19b7a5b2a69d829d37b38c4b3","impliedFormat":1},{"version":"a7a2972225e94645ad8c486f999b4b1b2d98b5eee30b1d6b90bbf6db66f6f079","signature":"8dabed1cb44514ee1ab16e2d3d13195346b43e5d5469432a32c03ed10b95c70b","impliedFormat":1},{"version":"f14edca406fc10eedbacdf119fa64b2ed784c2f6ab41735efc5325a1f0a61741","signature":"1041d175d9e1b4d13f1822c672b1d59c3679f99fe49daf9a6779e64c02df6233","impliedFormat":1},{"version":"dd8c6307c94467a41b746e18df75079a57cd7169ffdd27eee6a5e00c3dc5f8e1","signature":"72442fc0411a0ef5ee0e2729eb686b1e5bfce517391da0f6f17535bec323a099","impliedFormat":1},{"version":"1bc431f2c78dd26636d28df5bdc254828affeb9808f8cc15fb7b558febb51fef","signature":"e2c731ce3d748f812d9b19084580c788f189e4b999ca621750708aa0beb5b918","impliedFormat":1},{"version":"459344b8691e889385ad2460a77a147cb34d6c6ef2aa3e477d65ab09519e0d17","signature":"9440ed4ce2631f02fc0c21b5f66571fd10a8eeb508b64043196fba2987ff5f7d","impliedFormat":1},{"version":"f85e6c47bf25978faabbf0b9b4baee8b00fe15762b7f1c881e416ade289fbc5a","signature":"95c02ab506a6dbe8ba8ef41bc275d3a89b4312dbd1156e2867ed65c622c0a609","impliedFormat":1},{"version":"0e59016592c900288be2b6bfc8e595a3299e6aef699ac1fc91e119f510a47248","signature":"bfa5edd33340cbd9db2fa9ec46979816970f217a5d56743dd84c6a98f2468e47","impliedFormat":1},{"version":"c6929c40fc75813be3afc9005672657619a5a413526ac1b0fd6b19bf42c6e4ad","signature":"14603d54ab92b720dc6bbf35f8eee56297270f8b6c13f9a5b6ae0e3f13af4cff","impliedFormat":1},{"version":"b88dcb089b64668aac4123daae7a1fd1d70c7404f11a118dd7e43a96243b83a7","signature":"db724e76946babaaa028c013594f48229efd6c3e87ab4f7c3a826cb747cbb3c3","impliedFormat":1},{"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":"d97fb21da858fb18b8ae72c314e9743fd52f73ebe2764e12af1db32fc03f853f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"913be43dad2a40e500104700aa26cfb5c51a976114bedf19624de43fdae7474f","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":"78dbea00e90d2df8ea3dbef0cc379d95b8be9b71cd6bde4c28728f306811803b","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e1e46d0a9837ee058c100501080c920fa98081ea3956af0374308ba6f22a33e","impliedFormat":1},{"version":"272ca407e0c9068bdc5152552d876e68037ceae3de62e529306403e973dec8e1","impliedFormat":1},{"version":"fa7834c715d5357e4540cee40ce96c3250ddb67a7b879a6b7fa0e86d6696f121","impliedFormat":1},{"version":"22dfb07a7ab15b66ac043829056fe70124844636ae719551812ac631ba04985b","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6f137d651076822d4fe884287e68fd61785a0d3d1fdb250a5059b691fa897db","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7fcccb7463007c1a6e877709650c26cd297ef1b2679d0173157ee874bf16517","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":"0cb167c371eaa8c869f8a7656a7296f2e4fae43b4d8b803a680236b24794e5f9","impliedFormat":1},{"version":"0a839dba0287cc0481ad4beedd48a1c64acf1e212ae865d1315f7007ca215161","impliedFormat":1},{"version":"38dc4655376cd1a4bd6bb3763d92949233e33d38d3dd3cbea7bbf218175a38ef","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"208a6a0bfb227bdf8fb964799d0a206c75cf03ccd72e63bf5495c9331354c6d6","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"48a679952eefe4cb776d5a0e1ccba2d3eb53b57448bbb7abc1fcebcbd5440188","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2d14da6ecb49bf828d83948765ec2d3a579d476bbb9645e749610baa6ec880ca","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"33f03c0429f2c638069fc1186e2eccd96370c91fb9d8d7a69c5241bb31fc3d46","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"0aef708fb4c7a6b915e8305cbfac40cd207b032dbaabe9a01889a5fff3254681","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"ad9bdafb4e7abf14cc53ce7970486a84c87831e62891e5dfe798ddcd55e84701","affectsGlobalScope":true,"impliedFormat":1},{"version":"45479f65af737a3e5c26d8772bd8ab1aa8bebbd09c1a808c2b3faddb9b84afbb","impliedFormat":1},{"version":"71d3ae6a5e73ca4130762560425e00984ebaff64d5353a3333d1bb7eb86ef336","impliedFormat":1}],"root":[[59,71]],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":false,"module":199,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[[123,1],[124,1],[125,2],[77,3],[126,4],[127,5],[128,6],[72,7],[75,8],[73,7],[74,7],[129,9],[130,10],[131,11],[132,12],[133,13],[134,14],[135,14],[136,15],[137,16],[138,17],[139,18],[78,7],[76,7],[140,19],[141,20],[142,21],[176,22],[143,23],[144,7],[145,24],[146,25],[147,26],[148,27],[149,28],[150,29],[151,30],[152,31],[153,32],[154,32],[155,33],[156,7],[157,34],[158,35],[160,36],[159,37],[161,38],[162,39],[163,40],[164,41],[165,42],[166,43],[167,44],[168,45],[169,46],[170,47],[171,48],[172,49],[173,50],[79,7],[80,7],[81,7],[119,51],[120,7],[121,7],[122,38],[174,52],[175,53],[56,7],[57,7],[11,7],[10,7],[2,7],[12,7],[13,7],[14,7],[15,7],[16,7],[17,7],[18,7],[19,7],[3,7],[20,7],[21,7],[4,7],[22,7],[26,7],[23,7],[24,7],[25,7],[27,7],[28,7],[29,7],[5,7],[30,7],[31,7],[32,7],[33,7],[6,7],[37,7],[34,7],[35,7],[36,7],[38,7],[7,7],[39,7],[44,7],[45,7],[40,7],[41,7],[42,7],[43,7],[8,7],[49,7],[46,7],[47,7],[48,7],[50,7],[9,7],[51,7],[52,7],[53,7],[55,7],[54,7],[1,7],[58,7],[97,54],[107,55],[96,54],[117,56],[88,57],[87,58],[116,59],[110,60],[115,61],[90,62],[104,63],[89,64],[113,65],[85,66],[84,59],[114,67],[86,68],[91,69],[92,7],[95,69],[82,7],[118,70],[108,71],[99,72],[100,73],[102,74],[98,75],[101,76],[111,59],[93,77],[94,78],[103,79],[83,80],[106,71],[105,69],[109,7],[112,81],[59,82],[69,83],[71,84],[68,85],[61,86],[62,87],[64,87],[67,87],[63,87],[65,87],[66,87],[70,88],[60,7]],"latestChangedDtsFile":"./types.d.ts","version":"5.9.3"}
package/dist/ast.d.ts ADDED
@@ -0,0 +1,82 @@
1
+ /**
2
+ * Shared AST + text helpers.
3
+ *
4
+ * Every rule goes through this module instead of touching the TypeScript API
5
+ * directly, so two things stay true:
6
+ * 1. A rule can never be non-deterministic (no clock, no ordering surprises —
7
+ * walks are depth-first and stable).
8
+ * 2. Line numbers are computed the ONE way (`lineOf`), which is what makes the
9
+ * fixture harness able to assert an exact `expectedLine`.
10
+ */
11
+ import ts from 'typescript';
12
+ export type Ast = ts.SourceFile;
13
+ export declare function isScriptExt(ext: string): boolean;
14
+ /**
15
+ * Parse one file. Deliberately `createSourceFile`, NOT a `Program`: a Program
16
+ * type-checks the whole graph (seconds), while a bare parse is ~1ms and is all
17
+ * any of these rules need (they read syntax, not types).
18
+ */
19
+ export declare function parse(text: string, path: string, ext: string): Ast;
20
+ /** 1-based line number of a node/piece of text. */
21
+ export declare function lineOf(sf: Ast, node: {
22
+ getStart(sf?: Ast): number;
23
+ }): number;
24
+ /** 1-based line number of a raw character offset. */
25
+ export declare function lineAt(sf: Ast, pos: number): number;
26
+ /** Walk every node depth-first, in source order. */
27
+ export declare function walk(root: ts.Node, visit: (node: ts.Node) => void): void;
28
+ /** First node matching a predicate, in source order. */
29
+ export declare function findFirst<T extends ts.Node>(sf: Ast, predicate: (node: ts.Node) => node is T): T | undefined;
30
+ export declare function findFirst(sf: Ast, predicate: (node: ts.Node) => boolean): ts.Node | undefined;
31
+ /** All nodes matching a predicate, in source order. */
32
+ export declare function findAll(sf: Ast, predicate: (node: ts.Node) => boolean): ts.Node[];
33
+ export declare function isCall(node: ts.Node): node is ts.CallExpression;
34
+ /** Dotted callee text: `supabase.auth.getSession`, `db.transaction`, `auth.protect`. */
35
+ export declare function calleeText(node: ts.CallExpression): string;
36
+ /** `auth()` / `auth().protect()` / `supabase.auth.getSession()` */
37
+ export declare function callsNamed(sf: Ast, dotted: string): ts.CallExpression[];
38
+ /** Any call whose dotted callee ENDS with the given suffix. */
39
+ export declare function callsEndingWith(sf: Ast, suffix: string): ts.CallExpression[];
40
+ /** Module specifiers imported by the file. */
41
+ export declare function importSpecifiers(sf: Ast): string[];
42
+ /** True when the module has a top-level `'use client'` / `'use server'` directive. */
43
+ export declare function hasDirective(sf: Ast, directive: 'use client' | 'use server'): boolean;
44
+ /**
45
+ * Names destructured/named out of `await auth()` or `auth()`.
46
+ *
47
+ * Returns the declaration nodes so a rule can both decide (is `sessionClaims`
48
+ * read?) and report the right line.
49
+ */
50
+ export declare function authDestructuredNames(sf: Ast): string[];
51
+ /** Text of a string literal, or a template literal with no substitutions. */
52
+ export declare function stringLiteralText(node: ts.Node | undefined): string | null;
53
+ /**
54
+ * Resolve an identifier to a same-file string literal initializer.
55
+ *
56
+ * The pooler rules need this: the URL is usually a `const url = '...'` on an
57
+ * earlier line and the `postgres(url, ...)` call is a different node.
58
+ */
59
+ export declare function resolveStringConst(sf: Ast, name: string): string | null;
60
+ /** True when `node` is (lexically) inside a function whose name matches. */
61
+ export declare function enclosingFunctionNames(node: ts.Node): string[];
62
+ /** True when any ancestor is a function-like node. */
63
+ export declare function isInsideFunction(node: ts.Node): boolean;
64
+ /** JSX opening elements whose tag text equals `tag` (e.g. `UserProfile.Page`). */
65
+ export declare function jsxElements(sf: Ast, tag: string): ts.JsxOpeningElement[];
66
+ export declare function jsxTagText(node: ts.JsxOpeningElement | ts.JsxSelfClosingElement): string;
67
+ /** Attribute names present on a JSX opening/self-closing element. */
68
+ export declare function jsxAttributeNames(node: ts.JsxAttributes): string[];
69
+ /** 1-based line of the first line whose trimmed text contains `needle`. */
70
+ export declare function firstLineContaining(lines: string[], needle: string): number | null;
71
+ /** Every 1-based line whose text contains `needle`. */
72
+ export declare function allLinesContaining(lines: string[], needle: string): number[];
73
+ /**
74
+ * Text with comments removed, keeping LINE STRUCTURE intact.
75
+ *
76
+ * Comment stripping is not cosmetic: this repo's own rules are annotated with
77
+ * examples of the bad pattern, and a comment must never be able to make a rule
78
+ * fire (or suppress one). Blanking rather than deleting keeps line numbers
79
+ * honest.
80
+ */
81
+ export declare function stripCommentsKeepLines(sf: Ast, text: string): string;
82
+ //# sourceMappingURL=ast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../src/ast.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC;AAWhC,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,GAAG,CAQlE;AAED,mDAAmD;AACnD,wBAAgB,MAAM,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE;IAAE,QAAQ,CAAC,EAAE,CAAC,E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MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAM5E;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAiBpE"}
package/dist/ast.js ADDED
@@ -0,0 +1,313 @@
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.isScriptExt = isScriptExt;
7
+ exports.parse = parse;
8
+ exports.lineOf = lineOf;
9
+ exports.lineAt = lineAt;
10
+ exports.walk = walk;
11
+ exports.findFirst = findFirst;
12
+ exports.findAll = findAll;
13
+ exports.isCall = isCall;
14
+ exports.calleeText = calleeText;
15
+ exports.callsNamed = callsNamed;
16
+ exports.callsEndingWith = callsEndingWith;
17
+ exports.importSpecifiers = importSpecifiers;
18
+ exports.hasDirective = hasDirective;
19
+ exports.authDestructuredNames = authDestructuredNames;
20
+ exports.stringLiteralText = stringLiteralText;
21
+ exports.resolveStringConst = resolveStringConst;
22
+ exports.enclosingFunctionNames = enclosingFunctionNames;
23
+ exports.isInsideFunction = isInsideFunction;
24
+ exports.jsxElements = jsxElements;
25
+ exports.jsxTagText = jsxTagText;
26
+ exports.jsxAttributeNames = jsxAttributeNames;
27
+ exports.firstLineContaining = firstLineContaining;
28
+ exports.allLinesContaining = allLinesContaining;
29
+ exports.stripCommentsKeepLines = stripCommentsKeepLines;
30
+ /**
31
+ * Shared AST + text helpers.
32
+ *
33
+ * Every rule goes through this module instead of touching the TypeScript API
34
+ * directly, so two things stay true:
35
+ * 1. A rule can never be non-deterministic (no clock, no ordering surprises —
36
+ * walks are depth-first and stable).
37
+ * 2. Line numbers are computed the ONE way (`lineOf`), which is what makes the
38
+ * fixture harness able to assert an exact `expectedLine`.
39
+ */
40
+ const typescript_1 = __importDefault(require("typescript"));
41
+ const KIND_BY_EXT = {
42
+ '.ts': typescript_1.default.ScriptKind.TS,
43
+ '.tsx': typescript_1.default.ScriptKind.TSX,
44
+ '.js': typescript_1.default.ScriptKind.JS,
45
+ '.jsx': typescript_1.default.ScriptKind.JSX,
46
+ '.mjs': typescript_1.default.ScriptKind.JS,
47
+ '.cjs': typescript_1.default.ScriptKind.JS,
48
+ };
49
+ function isScriptExt(ext) {
50
+ return ext in KIND_BY_EXT;
51
+ }
52
+ /**
53
+ * Parse one file. Deliberately `createSourceFile`, NOT a `Program`: a Program
54
+ * type-checks the whole graph (seconds), while a bare parse is ~1ms and is all
55
+ * any of these rules need (they read syntax, not types).
56
+ */
57
+ function parse(text, path, ext) {
58
+ return typescript_1.default.createSourceFile(path, text, typescript_1.default.ScriptTarget.Latest,
59
+ /* setParentNodes */ true, KIND_BY_EXT[ext] ?? typescript_1.default.ScriptKind.TS);
60
+ }
61
+ /** 1-based line number of a node/piece of text. */
62
+ function lineOf(sf, node) {
63
+ return sf.getLineAndCharacterOfPosition(node.getStart(sf)).line + 1;
64
+ }
65
+ /** 1-based line number of a raw character offset. */
66
+ function lineAt(sf, pos) {
67
+ return sf.getLineAndCharacterOfPosition(pos).line + 1;
68
+ }
69
+ /** Walk every node depth-first, in source order. */
70
+ function walk(root, visit) {
71
+ const go = (node) => {
72
+ visit(node);
73
+ typescript_1.default.forEachChild(node, go);
74
+ };
75
+ go(root);
76
+ }
77
+ function findFirst(sf, predicate) {
78
+ let hit;
79
+ walk(sf, (node) => {
80
+ if (hit)
81
+ return;
82
+ if (predicate(node))
83
+ hit = node;
84
+ });
85
+ return hit;
86
+ }
87
+ /** All nodes matching a predicate, in source order. */
88
+ function findAll(sf, predicate) {
89
+ const out = [];
90
+ walk(sf, (node) => {
91
+ if (predicate(node))
92
+ out.push(node);
93
+ });
94
+ return out;
95
+ }
96
+ function isCall(node) {
97
+ return typescript_1.default.isCallExpression(node);
98
+ }
99
+ /** Dotted callee text: `supabase.auth.getSession`, `db.transaction`, `auth.protect`. */
100
+ function calleeText(node) {
101
+ const parts = [];
102
+ let expr = node.expression;
103
+ for (;;) {
104
+ if (typescript_1.default.isPropertyAccessExpression(expr)) {
105
+ parts.unshift(expr.name.text);
106
+ expr = expr.expression;
107
+ }
108
+ else if (typescript_1.default.isIdentifier(expr)) {
109
+ parts.unshift(expr.text);
110
+ break;
111
+ }
112
+ else if (typescript_1.default.isCallExpression(expr)) {
113
+ // e.g. `auth().protect()` — descend into the inner call's callee.
114
+ parts.unshift('()');
115
+ expr = expr.expression;
116
+ }
117
+ else {
118
+ break;
119
+ }
120
+ }
121
+ return parts.join('.');
122
+ }
123
+ /** `auth()` / `auth().protect()` / `supabase.auth.getSession()` */
124
+ function callsNamed(sf, dotted) {
125
+ return findAll(sf, (n) => typescript_1.default.isCallExpression(n) && calleeText(n) === dotted);
126
+ }
127
+ /** Any call whose dotted callee ENDS with the given suffix. */
128
+ function callsEndingWith(sf, suffix) {
129
+ return findAll(sf, (n) => typescript_1.default.isCallExpression(n) && calleeText(n).endsWith(suffix));
130
+ }
131
+ /** Module specifiers imported by the file. */
132
+ function importSpecifiers(sf) {
133
+ const out = [];
134
+ for (const stmt of sf.statements) {
135
+ if (!typescript_1.default.isImportDeclaration(stmt))
136
+ continue;
137
+ const spec = stmt.moduleSpecifier;
138
+ if (typescript_1.default.isStringLiteral(spec))
139
+ out.push(spec.text);
140
+ }
141
+ return out;
142
+ }
143
+ /** True when the module has a top-level `'use client'` / `'use server'` directive. */
144
+ function hasDirective(sf, directive) {
145
+ for (const stmt of sf.statements) {
146
+ if (!typescript_1.default.isExpressionStatement(stmt))
147
+ continue;
148
+ const expr = stmt.expression;
149
+ if (typescript_1.default.isStringLiteral(expr) && expr.text === directive)
150
+ return true;
151
+ }
152
+ return false;
153
+ }
154
+ /**
155
+ * Names destructured/named out of `await auth()` or `auth()`.
156
+ *
157
+ * Returns the declaration nodes so a rule can both decide (is `sessionClaims`
158
+ * read?) and report the right line.
159
+ */
160
+ function authDestructuredNames(sf) {
161
+ const names = [];
162
+ walk(sf, (node) => {
163
+ if (!typescript_1.default.isVariableDeclaration(node))
164
+ return;
165
+ const init = node.initializer;
166
+ if (!init)
167
+ return;
168
+ // `await auth()` or `auth()`
169
+ const call = typescript_1.default.isAwaitExpression(init) ? init.expression : init;
170
+ if (!typescript_1.default.isCallExpression(call))
171
+ return;
172
+ if (calleeText(call) !== 'auth')
173
+ return;
174
+ if (!typescript_1.default.isObjectBindingPattern(node.name))
175
+ return;
176
+ for (const el of node.name.elements) {
177
+ if (typescript_1.default.isBindingElement(el) && typescript_1.default.isIdentifier(el.name))
178
+ names.push(el.name.text);
179
+ }
180
+ });
181
+ return names;
182
+ }
183
+ /** Text of a string literal, or a template literal with no substitutions. */
184
+ function stringLiteralText(node) {
185
+ if (!node)
186
+ return null;
187
+ if (typescript_1.default.isStringLiteral(node) || typescript_1.default.isNoSubstitutionTemplateLiteral(node))
188
+ return node.text;
189
+ return null;
190
+ }
191
+ /**
192
+ * Resolve an identifier to a same-file string literal initializer.
193
+ *
194
+ * The pooler rules need this: the URL is usually a `const url = '...'` on an
195
+ * earlier line and the `postgres(url, ...)` call is a different node.
196
+ */
197
+ function resolveStringConst(sf, name) {
198
+ let value = null;
199
+ walk(sf, (node) => {
200
+ if (value !== null)
201
+ return;
202
+ if (!typescript_1.default.isVariableDeclaration(node))
203
+ return;
204
+ if (!typescript_1.default.isIdentifier(node.name) || node.name.text !== name)
205
+ return;
206
+ value = stringLiteralText(node.initializer);
207
+ });
208
+ return value;
209
+ }
210
+ /** True when `node` is (lexically) inside a function whose name matches. */
211
+ function enclosingFunctionNames(node) {
212
+ const names = [];
213
+ let cur = node.parent;
214
+ while (cur) {
215
+ if (typescript_1.default.isFunctionDeclaration(cur) && cur.name)
216
+ names.push(cur.name.text);
217
+ else if (typescript_1.default.isMethodDeclaration(cur) && typescript_1.default.isIdentifier(cur.name))
218
+ names.push(cur.name.text);
219
+ else if (typescript_1.default.isArrowFunction(cur) || typescript_1.default.isFunctionExpression(cur))
220
+ names.push('<anonymous>');
221
+ cur = cur.parent;
222
+ }
223
+ return names;
224
+ }
225
+ /** True when any ancestor is a function-like node. */
226
+ function isInsideFunction(node) {
227
+ let cur = node.parent;
228
+ while (cur) {
229
+ if (typescript_1.default.isFunctionDeclaration(cur) ||
230
+ typescript_1.default.isFunctionExpression(cur) ||
231
+ typescript_1.default.isArrowFunction(cur) ||
232
+ typescript_1.default.isMethodDeclaration(cur) ||
233
+ typescript_1.default.isConstructorDeclaration(cur) ||
234
+ typescript_1.default.isGetAccessorDeclaration(cur) ||
235
+ typescript_1.default.isSetAccessorDeclaration(cur)) {
236
+ return true;
237
+ }
238
+ cur = cur.parent;
239
+ }
240
+ return false;
241
+ }
242
+ /** JSX opening elements whose tag text equals `tag` (e.g. `UserProfile.Page`). */
243
+ function jsxElements(sf, tag) {
244
+ return findAll(sf, (n) => typescript_1.default.isJsxOpeningElement(n) && jsxTagText(n) === tag);
245
+ }
246
+ function jsxTagText(node) {
247
+ const tag = node.tagName;
248
+ if (typescript_1.default.isIdentifier(tag))
249
+ return tag.text;
250
+ if (typescript_1.default.isPropertyAccessExpression(tag))
251
+ return `${jsxTagText2(tag.expression)}.${tag.name.text}`;
252
+ return '';
253
+ }
254
+ function jsxTagText2(expr) {
255
+ if (typescript_1.default.isIdentifier(expr))
256
+ return expr.text;
257
+ if (typescript_1.default.isPropertyAccessExpression(expr))
258
+ return `${jsxTagText2(expr.expression)}.${expr.name.text}`;
259
+ return '';
260
+ }
261
+ /** Attribute names present on a JSX opening/self-closing element. */
262
+ function jsxAttributeNames(node) {
263
+ const out = [];
264
+ for (const prop of node.properties) {
265
+ if (typescript_1.default.isJsxAttribute(prop) && typescript_1.default.isIdentifier(prop.name))
266
+ out.push(prop.name.text);
267
+ }
268
+ return out;
269
+ }
270
+ /** 1-based line of the first line whose trimmed text contains `needle`. */
271
+ function firstLineContaining(lines, needle) {
272
+ for (let i = 0; i < lines.length; i++) {
273
+ if ((lines[i] ?? '').includes(needle))
274
+ return i + 1;
275
+ }
276
+ return null;
277
+ }
278
+ /** Every 1-based line whose text contains `needle`. */
279
+ function allLinesContaining(lines, needle) {
280
+ const out = [];
281
+ for (let i = 0; i < lines.length; i++) {
282
+ if ((lines[i] ?? '').includes(needle))
283
+ out.push(i + 1);
284
+ }
285
+ return out;
286
+ }
287
+ /**
288
+ * Text with comments removed, keeping LINE STRUCTURE intact.
289
+ *
290
+ * Comment stripping is not cosmetic: this repo's own rules are annotated with
291
+ * examples of the bad pattern, and a comment must never be able to make a rule
292
+ * fire (or suppress one). Blanking rather than deleting keeps line numbers
293
+ * honest.
294
+ */
295
+ function stripCommentsKeepLines(sf, text) {
296
+ const scanner = typescript_1.default.createScanner(typescript_1.default.ScriptTarget.Latest, /* skipTrivia */ false, sf.languageVariant, text);
297
+ let out = '';
298
+ let last = 0;
299
+ let tok = scanner.scan();
300
+ while (tok !== typescript_1.default.SyntaxKind.EndOfFileToken) {
301
+ if (tok === typescript_1.default.SyntaxKind.SingleLineCommentTrivia || tok === typescript_1.default.SyntaxKind.MultiLineCommentTrivia) {
302
+ const start = scanner.getTokenStart();
303
+ const end = scanner.getTokenEnd();
304
+ out += text.slice(last, start);
305
+ out += text.slice(start, end).replace(/[^\n]/g, ' ');
306
+ last = end;
307
+ }
308
+ tok = scanner.scan();
309
+ }
310
+ out += text.slice(last);
311
+ return out;
312
+ }
313
+ //# sourceMappingURL=ast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ast.js","sourceRoot":"","sources":["../src/ast.ts"],"names":[],"mappings":";;;;;AAuBA,kCAEC;AAOD,sBAQC;AAGD,wBAEC;AAGD,wBAEC;AAGD,oBAMC;AAWD,8BAUC;AAGD,0BAMC;AAED,wBAEC;AAGD,gCAmBC;AAGD,gCAEC;AAGD,0CAKC;AAGD,4CAQC;AAGD,oCAOC;AAQD,sDAgBC;AAGD,8CAIC;AAQD,gDASC;AAGD,wDAUC;AAGD,4CAiBC;AAGD,kCAEC;AAED,gCAKC;AAS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AK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YAC/B,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;YACrD,IAAI,GAAG,GAAG,CAAC;QACb,CAAC;QACD,GAAG,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;IACD,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACxB,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,38 @@
1
+ import type { FileContext, Finding, PackId, RepoFacts, Rule, ScanResult } from './types.js';
2
+ export type DiscoverOptions = {
3
+ /** Additional repo-relative paths to skip (e.g. the tool's own fixtures). */
4
+ ignore?: string[];
5
+ };
6
+ /** Repo-relative POSIX paths of every scannable file under `root`. */
7
+ export declare function discoverFiles(root: string, opts?: DiscoverOptions): Promise<string[]>;
8
+ export declare function toPosix(p: string): string;
9
+ /**
10
+ * Repo-wide facts, derived from cheap string scans.
11
+ *
12
+ * A "does this repo use X" question must be answerable without building a
13
+ * module graph, so this reads every package.json and greps raw text for the
14
+ * handful of imports the cross-file rules care about.
15
+ */
16
+ export declare function computeRepoFacts(root: string, files: string[]): Promise<RepoFacts>;
17
+ export type ScanInput = {
18
+ root: string;
19
+ packs?: PackId[];
20
+ /** Repo-relative paths only; everything else is skipped. */
21
+ onlyFiles?: string[];
22
+ ignore?: string[];
23
+ };
24
+ /** Scan a repo. Read-only: this function never writes to the target. */
25
+ export declare function scan(input: ScanInput): Promise<ScanResult>;
26
+ export declare function compareFindings(a: Finding, b: Finding): number;
27
+ export declare function summarize(findings: Finding[]): ScanResult['summary'];
28
+ export declare function makeContext(rel: string, text: string, repo: RepoFacts): FileContext;
29
+ /**
30
+ * Honour inline suppressions: `// pitcheye-allow: <ruleId>` (or the bare pack
31
+ * name) on the finding's line, the line above, or the file's first 5 lines.
32
+ *
33
+ * Same-line-above is included because the natural place to write it is the
34
+ * comment above the offending call.
35
+ */
36
+ export declare function isSuppressed(ctx: FileContext, rule: Rule, line: number): boolean;
37
+ export declare function fileExists(root: string, rel: string): boolean;
38
+ //# sourceMappingURL=engine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../src/engine.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,WAAW,EACX,OAAO,EAEP,MAAM,EACN,SAAS,EACT,IAAI,EACJ,UAAU,EAEX,MAAM,YAAY,CAAC;AAkCpB,MAAM,MAAM,eAAe,GAAG;IAC5B,6EAA6E;IAC7E,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,sEAAsE;AACtE,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,eAAoB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAmC/F;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAEzC;AAaD;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC,CAqExF;AAQD,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,wEAAwE;AACxE,wBAAsB,IAAI,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAqEhE;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,MAAM,CAK9D;AAED,wBAAgB,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,C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