@treasuredata/tdx 2026.8.3 → 2026.8.5

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 (301) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/cas-command.js +1 -1
  13. package/dist/commands/cas-segment-command.d.ts.map +1 -1
  14. package/dist/commands/cas-segment-command.js +1 -1
  15. package/dist/commands/cas-segment-command.js.map +1 -1
  16. package/dist/commands/chat-command.js +1 -1
  17. package/dist/commands/claude-command.js +1 -1
  18. package/dist/commands/claude-statusline-command.js +1 -1
  19. package/dist/commands/claude-usage-command.js +1 -1
  20. package/dist/commands/command.js +1 -1
  21. package/dist/commands/connection-command.js +1 -1
  22. package/dist/commands/databases.js +1 -1
  23. package/dist/commands/delivery-command.js +1 -1
  24. package/dist/commands/describe.js +1 -1
  25. package/dist/commands/engage-always-on-campaign-pull-command.js +1 -1
  26. package/dist/commands/engage-always-on-campaign-push-command.js +1 -1
  27. package/dist/commands/engage-always-on-campaign-validate-command.js +1 -1
  28. package/dist/commands/engage-campaign-pull-command.js +1 -1
  29. package/dist/commands/engage-campaign-push-command.js +1 -1
  30. package/dist/commands/engage-campaign-validate-command.js +1 -1
  31. package/dist/commands/engage-command.js +1 -1
  32. package/dist/commands/engage-template-pull-command.js +1 -1
  33. package/dist/commands/engage-template-push-command.js +1 -1
  34. package/dist/commands/engage-template-validate-command.js +1 -1
  35. package/dist/commands/job-command.js +1 -1
  36. package/dist/commands/journey-command.js +1 -1
  37. package/dist/commands/journey-validate-command.js +1 -1
  38. package/dist/commands/llm-command.js +1 -1
  39. package/dist/commands/mcp-command.js +1 -1
  40. package/dist/commands/p13n-command.d.ts +11 -0
  41. package/dist/commands/p13n-command.d.ts.map +1 -0
  42. package/dist/commands/p13n-command.js +1 -0
  43. package/dist/commands/p13n-command.js.map +1 -0
  44. package/dist/commands/parent-segment-command.js +1 -1
  45. package/dist/commands/policy-command.js +1 -1
  46. package/dist/commands/profile-command.js +1 -1
  47. package/dist/commands/profiles-command.js +1 -1
  48. package/dist/commands/query-command.js +1 -1
  49. package/dist/commands/schedule-command.js +1 -1
  50. package/dist/commands/segment-command.js +1 -1
  51. package/dist/commands/segment-create-command.js +1 -1
  52. package/dist/commands/segment-fields-command.js +1 -1
  53. package/dist/commands/segment-move-command.js +1 -1
  54. package/dist/commands/segment-pull-command.js +1 -1
  55. package/dist/commands/segment-push-command.js +1 -1
  56. package/dist/commands/segment-update-command.js +1 -1
  57. package/dist/commands/segment-use-command.js +1 -1
  58. package/dist/commands/segment-validate-command.js +1 -1
  59. package/dist/commands/segments.js +1 -1
  60. package/dist/commands/show.js +1 -1
  61. package/dist/commands/status-command.js +1 -1
  62. package/dist/commands/table-deleted.js +1 -1
  63. package/dist/commands/tables.js +1 -1
  64. package/dist/commands/unset-command.js +1 -1
  65. package/dist/commands/upgrade-command.js +1 -1
  66. package/dist/commands/use-command.js +1 -1
  67. package/dist/commands/user-command.js +1 -1
  68. package/dist/commands/work-command.js +1 -1
  69. package/dist/commands/workflow-command.js +1 -1
  70. package/dist/core/auth.js +1 -1
  71. package/dist/core/command-output.js +1 -1
  72. package/dist/core/config.js +1 -1
  73. package/dist/core/connection-cache.js +1 -1
  74. package/dist/core/constants.js +1 -1
  75. package/dist/core/credential-cache.js +1 -1
  76. package/dist/core/global-context.d.ts.map +1 -1
  77. package/dist/core/global-context.js +1 -1
  78. package/dist/core/global-context.js.map +1 -1
  79. package/dist/core/keychain.js +1 -1
  80. package/dist/core/oauth-keychain.js +1 -1
  81. package/dist/core/oauth.d.ts +9 -1
  82. package/dist/core/oauth.d.ts.map +1 -1
  83. package/dist/core/oauth.js +1 -1
  84. package/dist/core/oauth.js.map +1 -1
  85. package/dist/core/profile.js +1 -1
  86. package/dist/core/project-config.js +1 -1
  87. package/dist/core/session.js +1 -1
  88. package/dist/core/site-mismatch.js +1 -1
  89. package/dist/core/user-cache.js +1 -1
  90. package/dist/core/version.js +1 -1
  91. package/dist/index.js +1 -1
  92. package/dist/mcp/server.js +1 -1
  93. package/dist/mcp/tools/index.js +1 -1
  94. package/dist/mcp/tools/tdx-run.js +1 -1
  95. package/dist/mcp/tools/tdx-search.js +1 -1
  96. package/dist/mcp/tools/work-create-item.js +1 -1
  97. package/dist/mcp/utils.js +1 -1
  98. package/dist/proxy/claude-usage-tracker.js +1 -1
  99. package/dist/proxy/passthrough-server.d.ts.map +1 -1
  100. package/dist/proxy/passthrough-server.js +1 -1
  101. package/dist/proxy/passthrough-server.js.map +1 -1
  102. package/dist/proxy/sse-usage-parser.js +1 -1
  103. package/dist/sdk/agent/agent-config.js +1 -1
  104. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  105. package/dist/sdk/agent/agent-yaml.js +1 -1
  106. package/dist/sdk/agent/test/evaluator.js +1 -1
  107. package/dist/sdk/agent/test/executor.js +1 -1
  108. package/dist/sdk/agent/test/index.js +1 -1
  109. package/dist/sdk/agent/test/output.js +1 -1
  110. package/dist/sdk/agent/test/parser.js +1 -1
  111. package/dist/sdk/agent/tool-target-registry.js +1 -1
  112. package/dist/sdk/api.js +1 -1
  113. package/dist/sdk/auth-token.d.ts +42 -6
  114. package/dist/sdk/auth-token.d.ts.map +1 -1
  115. package/dist/sdk/auth-token.js +1 -1
  116. package/dist/sdk/auth-token.js.map +1 -1
  117. package/dist/sdk/cas/cas-api-client.js +1 -1
  118. package/dist/sdk/cas/cas-audience-schema.js +1 -1
  119. package/dist/sdk/cas/cas-audience-validator.js +1 -1
  120. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  121. package/dist/sdk/cas/cas-segment-schema.d.ts +63 -0
  122. package/dist/sdk/cas/cas-segment-schema.d.ts.map +1 -0
  123. package/dist/sdk/cas/cas-segment-schema.js +1 -0
  124. package/dist/sdk/cas/cas-segment-schema.js.map +1 -0
  125. package/dist/sdk/cas/cas-segment-validator.d.ts +76 -0
  126. package/dist/sdk/cas/cas-segment-validator.d.ts.map +1 -0
  127. package/dist/sdk/cas/cas-segment-validator.js +1 -0
  128. package/dist/sdk/cas/cas-segment-validator.js.map +1 -0
  129. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  130. package/dist/sdk/cas/index.js +1 -1
  131. package/dist/sdk/cas/pull-workflow.js +1 -1
  132. package/dist/sdk/cas/push-workflow.js +1 -1
  133. package/dist/sdk/cas/validate-files.d.ts +23 -6
  134. package/dist/sdk/cas/validate-files.d.ts.map +1 -1
  135. package/dist/sdk/cas/validate-files.js +1 -1
  136. package/dist/sdk/cas/validate-files.js.map +1 -1
  137. package/dist/sdk/client/cdp-api-client.js +1 -1
  138. package/dist/sdk/client/delivery-api-client.js +1 -1
  139. package/dist/sdk/client/endpoints.d.ts +6 -0
  140. package/dist/sdk/client/endpoints.d.ts.map +1 -1
  141. package/dist/sdk/client/endpoints.js +1 -1
  142. package/dist/sdk/client/endpoints.js.map +1 -1
  143. package/dist/sdk/client/engage-api-client.js +1 -1
  144. package/dist/sdk/client/http-client.js +1 -1
  145. package/dist/sdk/client/llm-api-client.js +1 -1
  146. package/dist/sdk/client/oauth-refresh.d.ts +11 -2
  147. package/dist/sdk/client/oauth-refresh.d.ts.map +1 -1
  148. package/dist/sdk/client/oauth-refresh.js +1 -1
  149. package/dist/sdk/client/oauth-refresh.js.map +1 -1
  150. package/dist/sdk/client/p13n-studio-api-client.d.ts +19 -0
  151. package/dist/sdk/client/p13n-studio-api-client.d.ts.map +1 -0
  152. package/dist/sdk/client/p13n-studio-api-client.js +1 -0
  153. package/dist/sdk/client/p13n-studio-api-client.js.map +1 -0
  154. package/dist/sdk/client/rate-limiter.js +1 -1
  155. package/dist/sdk/client/td-api-client.js +1 -1
  156. package/dist/sdk/client/trino-api-client.js +1 -1
  157. package/dist/sdk/client/workflow-client.js +1 -1
  158. package/dist/sdk/connection-validator.js +1 -1
  159. package/dist/sdk/connection.js +1 -1
  160. package/dist/sdk/delivery.js +1 -1
  161. package/dist/sdk/engage/always-on-campaign-pull.js +1 -1
  162. package/dist/sdk/engage/always-on-campaign-push.js +1 -1
  163. package/dist/sdk/engage/always-on-campaign-validator.js +1 -1
  164. package/dist/sdk/engage/always-on-campaign-yaml.js +1 -1
  165. package/dist/sdk/engage/campaign-pull.js +1 -1
  166. package/dist/sdk/engage/campaign-push.js +1 -1
  167. package/dist/sdk/engage/campaign-validator.js +1 -1
  168. package/dist/sdk/engage/campaign-yaml.js +1 -1
  169. package/dist/sdk/engage/template-pull.js +1 -1
  170. package/dist/sdk/engage/template-push.js +1 -1
  171. package/dist/sdk/engage/template-validator.js +1 -1
  172. package/dist/sdk/engage/template-yaml.js +1 -1
  173. package/dist/sdk/engage/types/always-on-campaign-schema.js +1 -1
  174. package/dist/sdk/engage/types/campaign-def.js +1 -1
  175. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  176. package/dist/sdk/engage/types/template-schema.js +1 -1
  177. package/dist/sdk/engage.js +1 -1
  178. package/dist/sdk/errors.js +1 -1
  179. package/dist/sdk/index.d.ts +6 -0
  180. package/dist/sdk/index.d.ts.map +1 -1
  181. package/dist/sdk/index.js +1 -1
  182. package/dist/sdk/index.js.map +1 -1
  183. package/dist/sdk/io/index.js +1 -1
  184. package/dist/sdk/io/node-filesystem.js +1 -1
  185. package/dist/sdk/job.js +1 -1
  186. package/dist/sdk/journey.js +1 -1
  187. package/dist/sdk/llm/chat-cache.js +1 -1
  188. package/dist/sdk/llm/index.js +1 -1
  189. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  190. package/dist/sdk/llm/model-factors.js +1 -1
  191. package/dist/sdk/llm/user-settings.js +1 -1
  192. package/dist/sdk/p13n-studio.d.ts +13 -0
  193. package/dist/sdk/p13n-studio.d.ts.map +1 -0
  194. package/dist/sdk/p13n-studio.js +1 -0
  195. package/dist/sdk/p13n-studio.js.map +1 -0
  196. package/dist/sdk/personalization.js +1 -1
  197. package/dist/sdk/policy.js +1 -1
  198. package/dist/sdk/query/deleted-table-validation.js +1 -1
  199. package/dist/sdk/query/index.js +1 -1
  200. package/dist/sdk/query/sql-parser.js +1 -1
  201. package/dist/sdk/realtime.js +1 -1
  202. package/dist/sdk/schedule.js +1 -1
  203. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  204. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  205. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  206. package/dist/sdk/segment/fields-display.js +1 -1
  207. package/dist/sdk/segment/file-discovery.js +1 -1
  208. package/dist/sdk/segment/journey-utils.js +1 -1
  209. package/dist/sdk/segment/journey-validator.js +1 -1
  210. package/dist/sdk/segment/journey-yaml.js +1 -1
  211. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  212. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  213. package/dist/sdk/segment/pull-workflow.js +1 -1
  214. package/dist/sdk/segment/push-recovery.js +1 -1
  215. package/dist/sdk/segment/push-workflow.js +1 -1
  216. package/dist/sdk/segment/resolution-context.js +1 -1
  217. package/dist/sdk/segment/segment-path-parser.js +1 -1
  218. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  219. package/dist/sdk/segment/segment-validator.js +1 -1
  220. package/dist/sdk/segment/target-resolution.js +1 -1
  221. package/dist/sdk/segment/tdx-config.js +1 -1
  222. package/dist/sdk/segment/types/activation-schema.js +1 -1
  223. package/dist/sdk/segment/types/journey-def.js +1 -1
  224. package/dist/sdk/segment/types/journey-schema.js +1 -1
  225. package/dist/sdk/segment/types/segment-def.js +1 -1
  226. package/dist/sdk/segment/types/segment-schema.d.ts.map +1 -1
  227. package/dist/sdk/segment/types/segment-schema.js +1 -1
  228. package/dist/sdk/segment/types/segment-schema.js.map +1 -1
  229. package/dist/sdk/segment/validate-files.js +1 -1
  230. package/dist/sdk/segment/yaml-validator.d.ts +1 -1
  231. package/dist/sdk/segment/yaml-validator.d.ts.map +1 -1
  232. package/dist/sdk/segment/yaml-validator.js +1 -1
  233. package/dist/sdk/segment/yaml-validator.js.map +1 -1
  234. package/dist/sdk/segment.js +1 -1
  235. package/dist/sdk/types/index.d.ts +2 -1
  236. package/dist/sdk/types/index.d.ts.map +1 -1
  237. package/dist/sdk/types/index.js +1 -1
  238. package/dist/sdk/types/index.js.map +1 -1
  239. package/dist/sdk/types/p13n-studio.d.ts +18 -0
  240. package/dist/sdk/types/p13n-studio.d.ts.map +1 -0
  241. package/dist/sdk/types/p13n-studio.js +1 -0
  242. package/dist/sdk/types/p13n-studio.js.map +1 -0
  243. package/dist/sdk/types/progress.js +1 -1
  244. package/dist/sdk/types/workspace.js +1 -1
  245. package/dist/sdk/user.js +1 -1
  246. package/dist/sdk/util/format-detector.js +1 -1
  247. package/dist/sdk/util/formatters.js +1 -1
  248. package/dist/sdk/util/index.js +1 -1
  249. package/dist/sdk/util/paginate.js +1 -1
  250. package/dist/sdk/util/tree-formatter.js +1 -1
  251. package/dist/sdk/util/tree-search.js +1 -1
  252. package/dist/sdk/workflow/archive-validation.js +1 -1
  253. package/dist/sdk/workflow/clone-workflow.js +1 -1
  254. package/dist/sdk/workflow/index.js +1 -1
  255. package/dist/sdk/workflow/pull-workflow.js +1 -1
  256. package/dist/sdk/workflow/push-workflow.js +1 -1
  257. package/dist/sdk/workflow/task-graph.js +1 -1
  258. package/dist/sdk/workflow/tdx-config.js +1 -1
  259. package/dist/sdk/workflow/workflow-utils.js +1 -1
  260. package/dist/sdk/workspace/access-tracker.js +1 -1
  261. package/dist/sdk/workspace/frontmatter.js +1 -1
  262. package/dist/sdk/workspace/git.js +1 -1
  263. package/dist/sdk/workspace/index.js +1 -1
  264. package/dist/sdk/workspace/templates.js +1 -1
  265. package/dist/sdk/workspace/weekly.js +1 -1
  266. package/dist/sdk/workspace/wikilinks.js +1 -1
  267. package/dist/test-utils/command-runner.js +1 -1
  268. package/dist/test-utils/factories.js +1 -1
  269. package/dist/test-utils/fixtures.js +1 -1
  270. package/dist/test-utils/http-mock.js +1 -1
  271. package/dist/test-utils/index.js +1 -1
  272. package/dist/utils/async.js +1 -1
  273. package/dist/utils/claude-code-state.js +1 -1
  274. package/dist/utils/colors.js +1 -1
  275. package/dist/utils/diff.js +1 -1
  276. package/dist/utils/file-permissions.js +1 -1
  277. package/dist/utils/file-reader.js +1 -1
  278. package/dist/utils/github-releases.js +1 -1
  279. package/dist/utils/global-cache.js +1 -1
  280. package/dist/utils/json-loader.js +1 -1
  281. package/dist/utils/local-cache.js +1 -1
  282. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  283. package/dist/utils/logger/formatters/index.js +1 -1
  284. package/dist/utils/logger/handlers/console-handler.js +1 -1
  285. package/dist/utils/logger/handlers/file-handler.js +1 -1
  286. package/dist/utils/logger/handlers/index.js +1 -1
  287. package/dist/utils/logger/handlers/null-handler.js +1 -1
  288. package/dist/utils/logger/index.js +1 -1
  289. package/dist/utils/logger/logger.js +1 -1
  290. package/dist/utils/logger/types.js +1 -1
  291. package/dist/utils/option-validation.js +1 -1
  292. package/dist/utils/process.js +1 -1
  293. package/dist/utils/prompt.js +1 -1
  294. package/dist/utils/proxy-fetch.js +1 -1
  295. package/dist/utils/spinner.js +1 -1
  296. package/dist/utils/sse-parser.js +1 -1
  297. package/dist/utils/string-utils.js +1 -1
  298. package/dist/utils/table-ref-parser.js +1 -1
  299. package/dist/utils/tdx-logger.js +1 -1
  300. package/dist/utils/version-check.js +1 -1
  301. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x1de773,_0x56c5a6){const _0x2e3763=a221_0x1a82,_0x363a11=_0x1de773();while(!![]){try{const _0x2c1f5e=-parseInt(_0x2e3763(0xf6))/0x1+-parseInt(_0x2e3763(0xe4))/0x2+parseInt(_0x2e3763(0xf3))/0x3+-parseInt(_0x2e3763(0x102))/0x4*(parseInt(_0x2e3763(0xfc))/0x5)+-parseInt(_0x2e3763(0xea))/0x6+parseInt(_0x2e3763(0xdd))/0x7+parseInt(_0x2e3763(0xd7))/0x8;if(_0x2c1f5e===_0x56c5a6)break;else _0x363a11['push'](_0x363a11['shift']());}catch(_0x5c877f){_0x363a11['push'](_0x363a11['shift']());}}}(a221_0x25d5,0x72fa4));import*as a221_0x212468 from'node:fs';import*as a221_0x3e8378 from'node:path';import{serializeFrontmatter}from'./frontmatter.js';function a221_0x1a82(_0x4f779f,_0x3bc0b0){_0x4f779f=_0x4f779f-0xce;const _0x25d5f1=a221_0x25d5();let _0x1a8299=_0x25d5f1[_0x4f779f];return _0x1a8299;}function getWeekNumber(_0x56236c){const _0x49e641=a221_0x1a82,_0xbc1766=new Date(Date[_0x49e641(0x10a)](_0x56236c[_0x49e641(0xd1)](),_0x56236c[_0x49e641(0xce)](),_0x56236c['getDate']())),_0x10e866=_0xbc1766[_0x49e641(0x103)]()||0x7;_0xbc1766[_0x49e641(0x10c)](_0xbc1766[_0x49e641(0xf0)]()+0x4-_0x10e866);const _0x4c4f96=new Date(Date[_0x49e641(0x10a)](_0xbc1766[_0x49e641(0xe1)](),0x0,0x1));return Math['ceil'](((_0xbc1766[_0x49e641(0xdb)]()-_0x4c4f96['getTime']())/0x5265c00+0x1)/0x7);}function getWeekRange(_0x230ca0){const _0x563977=a221_0x1a82,_0x22af54=new Date(_0x230ca0),_0xf29818=_0x22af54[_0x563977(0xe2)](),_0x3590cb=_0x22af54[_0x563977(0xe0)]()-_0xf29818+(_0xf29818===0x0?-0x6:0x1),_0x1ce830=new Date(_0x22af54[_0x563977(0xed)](_0x3590cb)),_0x381ac8=new Date(_0x1ce830);return _0x381ac8[_0x563977(0xed)](_0x1ce830[_0x563977(0xe0)]()+0x4),{'monday':_0x1ce830,'friday':_0x381ac8};}function formatShortDate(_0x3cbcf4){const _0x389bb0=a221_0x1a82;return _0x3cbcf4[_0x389bb0(0x101)](_0x389bb0(0xf2),{'month':_0x389bb0(0xd0),'day':'numeric'});}export function generateWeeklyNote(_0x3df831){const _0x21ac11=a221_0x1a82,_0x20e544=_0x3df831[_0x21ac11(0xfb)]||new Date(),_0x5bb8b1=getWeekNumber(_0x20e544),_0x1367dd=_0x20e544[_0x21ac11(0xd1)](),{monday:_0x2fac2c,friday:_0xe7458e}=getWeekRange(_0x20e544),_0x2435c4=_0x21ac11(0xd2)+_0x5bb8b1+'\x20('+formatShortDate(_0x2fac2c)+'-'+formatShortDate(_0xe7458e)+')',_0x1e3daf=_0x1367dd+'-W'+String(_0x5bb8b1)['padStart'](0x2,'0')+_0x21ac11(0xe3),_0x8708bb={'title':_0x2435c4,'tags':[_0x21ac11(0xfe)],'created':_0x20e544[_0x21ac11(0xde)]()[_0x21ac11(0xee)](0x0,0xa)},_0x105d94=[];if(_0x3df831[_0x21ac11(0xf8)][_0x21ac11(0xd8)]>0x0){_0x105d94[_0x21ac11(0xf9)](_0x21ac11(0xf1));for(const _0x21cae2 of _0x3df831[_0x21ac11(0xf8)]){const _0x12e24f=a221_0x3e8378['basename'](_0x21cae2['fileName'],_0x21ac11(0xe3)),_0xf77dd=_0x3df831[_0x21ac11(0xd5)](_0x21cae2['filePath']),_0x56b981=_0x21cae2['frontmatter'][_0x21ac11(0x109)]||_0x12e24f;if(_0xf77dd['total']>0x0){_0x105d94[_0x21ac11(0xf9)](_0x21ac11(0x107)+_0x12e24f+'|'+_0x56b981+']]\x20—\x20'+_0xf77dd[_0x21ac11(0xeb)]+'/'+_0xf77dd[_0x21ac11(0xe9)]+'\x20items\x20done\x20('+_0xf77dd['percentage']+'%)');if(_0xf77dd['transitiveDeps']?.['length'])for(const _0xd1ec58 of _0xf77dd[_0x21ac11(0x106)]){const _0x3182d4=a221_0x3e8378['basename'](_0xd1ec58[_0x21ac11(0xdf)],_0x21ac11(0xe3));_0x105d94[_0x21ac11(0xf9)](_0x21ac11(0xfa)+_0x3182d4+_0x21ac11(0x108)+_0xd1ec58[_0x21ac11(0xe5)]+_0x21ac11(0x104)+_0xd1ec58['referencedBy'][_0x21ac11(0xf4)](',\x20')+'_');}}else _0x105d94[_0x21ac11(0xf9)](_0x21ac11(0x107)+_0x12e24f+'|'+_0x56b981+_0x21ac11(0xe6));}_0x105d94['push']('');}const _0x54d144=_0x3df831[_0x21ac11(0xd9)][_0x21ac11(0xdc)](_0x3712e4=>_0x3712e4['frontmatter'][_0x21ac11(0xe5)]===_0x21ac11(0xeb)),_0x11c5b1=_0x3df831['items'][_0x21ac11(0xdc)](_0x43a9a5=>[_0x21ac11(0xe7),_0x21ac11(0x100),_0x21ac11(0x105),_0x21ac11(0xcf)][_0x21ac11(0xda)](_0x43a9a5[_0x21ac11(0xf5)][_0x21ac11(0xe5)])),_0xecdefd=_0x3df831['items']['filter'](_0x3fe802=>[_0x21ac11(0xd3),_0x21ac11(0xff)][_0x21ac11(0xda)](_0x3fe802[_0x21ac11(0xf5)]['status']));_0x105d94[_0x21ac11(0xf9)](_0x21ac11(0xe8));if(_0x54d144[_0x21ac11(0xd8)]>0x0)for(const _0x121f6f of _0x54d144){_0x105d94[_0x21ac11(0xf9)](_0x21ac11(0xef)+_0x121f6f[_0x21ac11(0xf5)]['title']);}if(_0x11c5b1[_0x21ac11(0xd8)]>0x0)for(const _0x2eecea of _0x11c5b1){_0x105d94['push'](_0x21ac11(0xec)+_0x2eecea['frontmatter'][_0x21ac11(0x109)]+_0x21ac11(0xf7)+_0x2eecea[_0x21ac11(0xf5)][_0x21ac11(0xe5)]+')_');}if(_0xecdefd[_0x21ac11(0xd8)]>0x0)for(const _0xed9a55 of _0xecdefd){_0x105d94[_0x21ac11(0xf9)](_0x21ac11(0xec)+_0xed9a55[_0x21ac11(0xf5)]['title']);}_0x54d144[_0x21ac11(0xd8)]===0x0&&_0x11c5b1[_0x21ac11(0xd8)]===0x0&&_0xecdefd['length']===0x0&&_0x105d94[_0x21ac11(0xf9)](_0x21ac11(0x10b));_0x105d94[_0x21ac11(0xf9)](''),_0x105d94[_0x21ac11(0xf9)](_0x21ac11(0xfd)),_0x105d94[_0x21ac11(0xf9)](''),_0x105d94[_0x21ac11(0xf9)]('');const _0x2be106=_0x105d94['join']('\x0a'),_0xb932f1=serializeFrontmatter(_0x8708bb,_0x2be106);return{'fileName':_0x1e3daf,'content':_0xb932f1};}function a221_0x25d5(){const _0x43e490=['weekly','todo','review','toLocaleDateString','16vmuYlb','getUTCDay',')\x20—\x20via\x20','planning','transitiveDeps','-\x20[[',']]\x20(','title','UTC','_No\x20items\x20yet._','setUTCDate','getMonth','design_review','short','getFullYear','Week\x20','backlog','utf-8','getGoalProgress','mkdirSync','16281840sBCyNP','length','items','includes','getTime','filter','4418064nYfcTK','toISOString','fileName','getDate','getUTCFullYear','getDay','.md','1010454LnofmJ','status',']]\x20—\x20no\x20items\x20linked','in_progress','##\x20This\x20Week','total','4245990gdExAf','done','-\x20[\x20]\x20','setDate','slice','-\x20[x]\x20','getUTCDate','##\x20Goals\x20Progress','en-US','211131vopvuv','join','frontmatter','787483XhewZc','\x20_(','goals','push','\x20\x20-\x20_Transitive:\x20[[','weekDate','331795seQInN','##\x20Reflection'];a221_0x25d5=function(){return _0x43e490;};return a221_0x25d5();}export function writeWeeklyNote(_0x42a426,_0x193cde){const _0x4f720e=a221_0x1a82,{fileName:_0x180c48,content:_0x20aa9f}=generateWeeklyNote(_0x193cde),_0x3b0acb=a221_0x3e8378[_0x4f720e(0xf4)](_0x42a426,'notes','weekly');a221_0x212468[_0x4f720e(0xd6)](_0x3b0acb,{'recursive':!![]});const _0x4d559e=a221_0x3e8378['join'](_0x3b0acb,_0x180c48);return a221_0x212468['writeFileSync'](_0x4d559e,_0x20aa9f,_0x4f720e(0xd4)),{'filePath':_0x4d559e,'fileName':_0x180c48};}
1
+ (function(_0x53c4be,_0x2b4121){const _0x33a300=a227_0x4655,_0x11e295=_0x53c4be();while(!![]){try{const _0x330217=parseInt(_0x33a300(0x1a6))/0x1+-parseInt(_0x33a300(0x1cb))/0x2+-parseInt(_0x33a300(0x1bd))/0x3*(-parseInt(_0x33a300(0x1c0))/0x4)+-parseInt(_0x33a300(0x1b9))/0x5+parseInt(_0x33a300(0x1eb))/0x6*(-parseInt(_0x33a300(0x1e7))/0x7)+-parseInt(_0x33a300(0x1a7))/0x8*(-parseInt(_0x33a300(0x1ce))/0x9)+-parseInt(_0x33a300(0x1b3))/0xa*(-parseInt(_0x33a300(0x1c2))/0xb);if(_0x330217===_0x2b4121)break;else _0x11e295['push'](_0x11e295['shift']());}catch(_0x3d527f){_0x11e295['push'](_0x11e295['shift']());}}}(a227_0x5905,0xe0796));import*as a227_0x38a6bd from'node:fs';function a227_0x5905(){const _0x386ac1=['transitiveDeps','\x20\x20-\x20_Transitive:\x20[[','review','\x20items\x20done\x20(','\x20_(','padStart','mkdirSync','##\x20Goals\x20Progress',')\x20—\x20via\x20','##\x20Reflection','toISOString','percentage',']]\x20(','getDate','getUTCFullYear','18452HbjZYP','en-US','weekly','utf-8','3018vgsHFx','filter','1603720UUussL','1924240cGkKlL','writeFileSync','items','##\x20This\x20Week','todo','design_review','includes','done','notes','.md','getGoalProgress','backlog','72190ShUwKL','-\x20[[','UTC',']]\x20—\x20','in_progress','status','1396330LBSymJ','ceil','title','getFullYear','75TZmhOt','fileName','setUTCDate','108956RGyyeG','getTime','902DwJmpJ','length','goals','short','basename','Week\x20','getUTCDate','planning','join','2147246oltDmt','frontmatter','getMonth','27cwMOhT','-\x20[x]\x20','slice','setDate',']]\x20—\x20no\x20items\x20linked','getUTCDay','_No\x20items\x20yet._','push','-\x20[\x20]\x20','total'];a227_0x5905=function(){return _0x386ac1;};return a227_0x5905();}import*as a227_0x1e3798 from'node:path';import{serializeFrontmatter}from'./frontmatter.js';function getWeekNumber(_0x2daadd){const _0x578b7d=a227_0x4655,_0x1454eb=new Date(Date[_0x578b7d(0x1b5)](_0x2daadd[_0x578b7d(0x1bc)](),_0x2daadd[_0x578b7d(0x1cd)](),_0x2daadd[_0x578b7d(0x1e5)]())),_0x2c4d0f=_0x1454eb[_0x578b7d(0x1d3)]()||0x7;_0x1454eb[_0x578b7d(0x1bf)](_0x1454eb[_0x578b7d(0x1c8)]()+0x4-_0x2c4d0f);const _0x5d3cf3=new Date(Date[_0x578b7d(0x1b5)](_0x1454eb[_0x578b7d(0x1e6)](),0x0,0x1));return Math[_0x578b7d(0x1ba)](((_0x1454eb[_0x578b7d(0x1c1)]()-_0x5d3cf3[_0x578b7d(0x1c1)]())/0x5265c00+0x1)/0x7);}function getWeekRange(_0x58999e){const _0x397173=a227_0x4655,_0x1d53b5=new Date(_0x58999e),_0x2b9c96=_0x1d53b5['getDay'](),_0x59bb35=_0x1d53b5['getDate']()-_0x2b9c96+(_0x2b9c96===0x0?-0x6:0x1),_0x57f3dc=new Date(_0x1d53b5[_0x397173(0x1d1)](_0x59bb35)),_0x118bb5=new Date(_0x57f3dc);return _0x118bb5['setDate'](_0x57f3dc['getDate']()+0x4),{'monday':_0x57f3dc,'friday':_0x118bb5};}function formatShortDate(_0x1a47a9){const _0x40f8b6=a227_0x4655;return _0x1a47a9['toLocaleDateString'](_0x40f8b6(0x1e8),{'month':_0x40f8b6(0x1c5),'day':'numeric'});}function a227_0x4655(_0x28f783,_0x5d98f9){_0x28f783=_0x28f783-0x1a5;const _0x590536=a227_0x5905();let _0x465547=_0x590536[_0x28f783];return _0x465547;}export function generateWeeklyNote(_0x13ddf7){const _0x4f02a1=a227_0x4655,_0x87a97b=_0x13ddf7['weekDate']||new Date(),_0x5cb93b=getWeekNumber(_0x87a97b),_0x4104df=_0x87a97b['getFullYear'](),{monday:_0x53766a,friday:_0x2f0633}=getWeekRange(_0x87a97b),_0x451565=_0x4f02a1(0x1c7)+_0x5cb93b+'\x20('+formatShortDate(_0x53766a)+'-'+formatShortDate(_0x2f0633)+')',_0x515b0f=_0x4104df+'-W'+String(_0x5cb93b)[_0x4f02a1(0x1dd)](0x2,'0')+_0x4f02a1(0x1b0),_0x52898e={'title':_0x451565,'tags':[_0x4f02a1(0x1e9)],'created':_0x87a97b[_0x4f02a1(0x1e2)]()[_0x4f02a1(0x1d0)](0x0,0xa)},_0x241773=[];if(_0x13ddf7[_0x4f02a1(0x1c4)][_0x4f02a1(0x1c3)]>0x0){_0x241773['push'](_0x4f02a1(0x1df));for(const _0x248d78 of _0x13ddf7[_0x4f02a1(0x1c4)]){const _0x16c13a=a227_0x1e3798[_0x4f02a1(0x1c6)](_0x248d78[_0x4f02a1(0x1be)],_0x4f02a1(0x1b0)),_0x34c753=_0x13ddf7[_0x4f02a1(0x1b1)](_0x248d78['filePath']),_0xa01475=_0x248d78[_0x4f02a1(0x1cc)][_0x4f02a1(0x1bb)]||_0x16c13a;if(_0x34c753['total']>0x0){_0x241773[_0x4f02a1(0x1d5)](_0x4f02a1(0x1b4)+_0x16c13a+'|'+_0xa01475+_0x4f02a1(0x1b6)+_0x34c753[_0x4f02a1(0x1ae)]+'/'+_0x34c753[_0x4f02a1(0x1d7)]+_0x4f02a1(0x1db)+_0x34c753[_0x4f02a1(0x1e3)]+'%)');if(_0x34c753[_0x4f02a1(0x1d8)]?.[_0x4f02a1(0x1c3)])for(const _0x2ee7ce of _0x34c753['transitiveDeps']){const _0x30946a=a227_0x1e3798[_0x4f02a1(0x1c6)](_0x2ee7ce['fileName'],'.md');_0x241773[_0x4f02a1(0x1d5)](_0x4f02a1(0x1d9)+_0x30946a+_0x4f02a1(0x1e4)+_0x2ee7ce['status']+_0x4f02a1(0x1e0)+_0x2ee7ce['referencedBy'][_0x4f02a1(0x1ca)](',\x20')+'_');}}else _0x241773[_0x4f02a1(0x1d5)](_0x4f02a1(0x1b4)+_0x16c13a+'|'+_0xa01475+_0x4f02a1(0x1d2));}_0x241773[_0x4f02a1(0x1d5)]('');}const _0x37a4cf=_0x13ddf7[_0x4f02a1(0x1a9)][_0x4f02a1(0x1a5)](_0x1c4066=>_0x1c4066[_0x4f02a1(0x1cc)][_0x4f02a1(0x1b8)]==='done'),_0x4e18a6=_0x13ddf7['items'][_0x4f02a1(0x1a5)](_0x1ef944=>[_0x4f02a1(0x1b7),_0x4f02a1(0x1da),_0x4f02a1(0x1c9),_0x4f02a1(0x1ac)][_0x4f02a1(0x1ad)](_0x1ef944[_0x4f02a1(0x1cc)]['status'])),_0x5a9c6e=_0x13ddf7[_0x4f02a1(0x1a9)]['filter'](_0x1be36a=>[_0x4f02a1(0x1b2),_0x4f02a1(0x1ab)][_0x4f02a1(0x1ad)](_0x1be36a['frontmatter']['status']));_0x241773[_0x4f02a1(0x1d5)](_0x4f02a1(0x1aa));if(_0x37a4cf['length']>0x0)for(const _0x68a4e7 of _0x37a4cf){_0x241773[_0x4f02a1(0x1d5)](_0x4f02a1(0x1cf)+_0x68a4e7[_0x4f02a1(0x1cc)][_0x4f02a1(0x1bb)]);}if(_0x4e18a6[_0x4f02a1(0x1c3)]>0x0)for(const _0x583801 of _0x4e18a6){_0x241773['push']('-\x20[\x20]\x20'+_0x583801[_0x4f02a1(0x1cc)]['title']+_0x4f02a1(0x1dc)+_0x583801[_0x4f02a1(0x1cc)][_0x4f02a1(0x1b8)]+')_');}if(_0x5a9c6e['length']>0x0)for(const _0x224a5b of _0x5a9c6e){_0x241773[_0x4f02a1(0x1d5)](_0x4f02a1(0x1d6)+_0x224a5b[_0x4f02a1(0x1cc)]['title']);}_0x37a4cf[_0x4f02a1(0x1c3)]===0x0&&_0x4e18a6[_0x4f02a1(0x1c3)]===0x0&&_0x5a9c6e[_0x4f02a1(0x1c3)]===0x0&&_0x241773[_0x4f02a1(0x1d5)](_0x4f02a1(0x1d4));_0x241773['push'](''),_0x241773['push'](_0x4f02a1(0x1e1)),_0x241773[_0x4f02a1(0x1d5)](''),_0x241773['push']('');const _0x31eb75=_0x241773['join']('\x0a'),_0x219e47=serializeFrontmatter(_0x52898e,_0x31eb75);return{'fileName':_0x515b0f,'content':_0x219e47};}export function writeWeeklyNote(_0x13badb,_0x2711b3){const _0x418709=a227_0x4655,{fileName:_0x220ff4,content:_0x5d6931}=generateWeeklyNote(_0x2711b3),_0x5052aa=a227_0x1e3798[_0x418709(0x1ca)](_0x13badb,_0x418709(0x1af),_0x418709(0x1e9));a227_0x38a6bd[_0x418709(0x1de)](_0x5052aa,{'recursive':!![]});const _0x5be755=a227_0x1e3798[_0x418709(0x1ca)](_0x5052aa,_0x220ff4);return a227_0x38a6bd[_0x418709(0x1a8)](_0x5be755,_0x5d6931,_0x418709(0x1ea)),{'filePath':_0x5be755,'fileName':_0x220ff4};}
@@ -1 +1 @@
1
- (function(_0x2eb6cf,_0x430c14){const _0x2c6ec3=a222_0x2e73,_0x33b3db=_0x2eb6cf();while(!![]){try{const _0x5eb0a8=parseInt(_0x2c6ec3(0xfe))/0x1+parseInt(_0x2c6ec3(0x103))/0x2+parseInt(_0x2c6ec3(0x104))/0x3+parseInt(_0x2c6ec3(0x109))/0x4+-parseInt(_0x2c6ec3(0x110))/0x5+parseInt(_0x2c6ec3(0x102))/0x6*(parseInt(_0x2c6ec3(0xf8))/0x7)+-parseInt(_0x2c6ec3(0xee))/0x8;if(_0x5eb0a8===_0x430c14)break;else _0x33b3db['push'](_0x33b3db['shift']());}catch(_0x4da0b3){_0x33b3db['push'](_0x33b3db['shift']());}}}(a222_0xfb78,0x60bb4));function a222_0xfb78(){const _0x1e9b50=['1582216xcUjAh','1656906HVvtOv','exec','utf-8','replace','entries','2478392ynVWoq','resolvedPath','indexOf','slug','endsWith','resolvedKind','find','49090AXEtTe','kind','trim','some','add','push','shift','basename','templates','14596168tfCHjp','lastIndexOf','get','join','readFileSync','has','filePath','lastIndex','startsWith','slice','173201lQDTpc','readdirSync','match','name','sort','length','20113XCSPxm','.md','existsSync','workflows','60WeADHB'];a222_0xfb78=function(){return _0x1e9b50;};return a222_0xfb78();}import*as a222_0x4a0a24 from'node:fs';import*as a222_0x417ec2 from'node:path';function a222_0x2e73(_0x38a94e,_0x13f9ef){_0x38a94e=_0x38a94e-0xe9;const _0xfb78bd=a222_0xfb78();let _0x2e73ac=_0xfb78bd[_0x38a94e];return _0x2e73ac;}import{DOCUMENT_KIND_FOLDERS,KIND_PRIORITY,isTrackableKind}from'../types/workspace.js';const WIKI_LINK_REGEX=/\[\[([^\[\]]+)\]\]/g;export function parseWikiLinks(_0x246cae){const _0x47fc0b=a222_0x2e73,_0x321460=[];let _0x4b888c;WIKI_LINK_REGEX[_0x47fc0b(0xf5)]=0x0;while((_0x4b888c=WIKI_LINK_REGEX[_0x47fc0b(0x105)](_0x246cae))!==null){const _0x19094c=_0x4b888c[0x1],_0x34d5e5=_0x19094c[_0x47fc0b(0x10b)]('|');let _0x3256a6,_0x2bb7d4;_0x34d5e5!==-0x1?(_0x3256a6=_0x19094c[_0x47fc0b(0xf7)](0x0,_0x34d5e5)[_0x47fc0b(0x112)](),_0x2bb7d4=_0x19094c[_0x47fc0b(0xf7)](_0x34d5e5+0x1)['trim']()):_0x3256a6=_0x19094c['trim'](),_0x321460['push']({'raw':_0x4b888c[0x0],'slug':_0x3256a6,'displayText':_0x2bb7d4});}return _0x321460;}export function collectMarkdownFiles(_0x42a178,_0x11c0c6=0x0){const _0x32c10e=a222_0x2e73;if(_0x11c0c6>0x5)return[];if(!a222_0x4a0a24[_0x32c10e(0x100)](_0x42a178))return[];const _0x33d5c0=[];try{for(const _0x347b40 of a222_0x4a0a24[_0x32c10e(0xf9)](_0x42a178,{'withFileTypes':!![]})){if(_0x347b40[_0x32c10e(0xfb)][_0x32c10e(0xf6)]('.'))continue;if(_0x347b40['isSymbolicLink']())continue;const _0xeaf9bb=a222_0x417ec2[_0x32c10e(0xf1)](_0x42a178,_0x347b40[_0x32c10e(0xfb)]);if(_0x347b40['isDirectory']())_0x33d5c0[_0x32c10e(0xea)](...collectMarkdownFiles(_0xeaf9bb,_0x11c0c6+0x1));else _0x347b40[_0x32c10e(0xfb)][_0x32c10e(0x10d)]('.md')&&_0x33d5c0[_0x32c10e(0xea)](_0xeaf9bb);}}catch{}return _0x33d5c0;}export function buildFileIndex(_0x399478){const _0x16c694=a222_0x2e73,_0xa20745=new Map();for(const [_0x20e15a,_0xa2c831]of Object[_0x16c694(0x108)](DOCUMENT_KIND_FOLDERS)){const _0x741638=a222_0x417ec2[_0x16c694(0xf1)](_0x399478,_0xa2c831),_0xeb46b2=collectMarkdownFiles(_0x741638);for(const _0x613c76 of _0xeb46b2){const _0xca095c=a222_0x417ec2[_0x16c694(0xec)](_0x613c76,_0x16c694(0xff)),_0x4638d2={'stem':_0xca095c,'kind':_0x20e15a,'filePath':_0x613c76,'folder':_0xa2c831},_0x3bee8f=_0xa20745['get'](_0xca095c)||[];_0x3bee8f[_0x16c694(0xea)](_0x4638d2),_0xa20745['set'](_0xca095c,_0x3bee8f);}}return _0xa20745;}export function resolveWikiLinks(_0x159bfd,_0x3e9400){const _0x38fc77=a222_0x2e73,_0x111d8d=parseWikiLinks(_0x159bfd);for(const _0x26fc26 of _0x111d8d){const {slug:_0x391d63}=_0x26fc26,_0x2836cd=_0x391d63[_0x38fc77(0x10b)]('/');if(_0x2836cd!==-0x1){const _0x3092bd=_0x391d63[_0x38fc77(0xf7)](0x0,_0x2836cd),_0x103bac=_0x391d63[_0x38fc77(0xf7)](_0x2836cd+0x1),_0x154edd=_0x3e9400[_0x38fc77(0xf0)](_0x103bac);if(_0x154edd){const _0x2f50bc=_0x154edd[_0x38fc77(0x10f)](_0x2acb23=>_0x2acb23['folder']===_0x3092bd);_0x2f50bc&&(_0x26fc26[_0x38fc77(0x10a)]=_0x2f50bc['filePath'],_0x26fc26[_0x38fc77(0x10e)]=_0x2f50bc[_0x38fc77(0x111)]);}continue;}const _0x3be491=_0x3e9400[_0x38fc77(0xf0)](_0x391d63);if(_0x3be491&&_0x3be491[_0x38fc77(0xfd)]>0x0){const _0x584b6a=_0x3be491[_0x38fc77(0xfc)]((_0x323fc7,_0x1c6ef1)=>(KIND_PRIORITY[_0x1c6ef1[_0x38fc77(0x111)]]||0x0)-(KIND_PRIORITY[_0x323fc7[_0x38fc77(0x111)]]||0x0));_0x26fc26['resolvedPath']=_0x584b6a[0x0][_0x38fc77(0xf4)],_0x26fc26[_0x38fc77(0x10e)]=_0x584b6a[0x0][_0x38fc77(0x111)];}}return _0x111d8d;}export function linkStem(_0x12ad80){const _0x115596=a222_0x2e73,_0x1cb133=_0x12ad80[_0x115596(0xef)]('/');return _0x1cb133!==-0x1?_0x12ad80[_0x115596(0xf7)](_0x1cb133+0x1):_0x12ad80;}function hasDocEntry(_0x526e2a){const _0xfbc48b=a222_0x2e73;return _0x526e2a?.[_0xfbc48b(0x113)](_0x61819e=>isTrackableKind(_0x61819e[_0xfbc48b(0x111)]))??![];}export function findTransitiveDependencies(_0x4ed418,_0x358d3e,_0x35207e){const _0x5e4125=a222_0x2e73,_0x472663=new Map(),_0x3761ae=new Set(_0x4ed418),_0x4e9c53=[..._0x4ed418];function _0x653c29(_0x482aa2,_0x25e0c9){const _0x27a5a8=a222_0x2e73;for(const _0xc4bb2f of parseWikiLinks(_0x25e0c9)){const _0x3fd12d=_0xc4bb2f[_0x27a5a8(0x10c)][_0x27a5a8(0x10b)]('/');if(_0x3fd12d!==-0x1){const _0x54cd77=_0xc4bb2f['slug']['slice'](0x0,_0x3fd12d);if(_0x54cd77===_0x27a5a8(0xed)||_0x54cd77===_0x27a5a8(0x101))continue;}const _0x567c56=linkStem(_0xc4bb2f[_0x27a5a8(0x10c)]);if(!hasDocEntry(_0x358d3e[_0x27a5a8(0xf0)](_0x567c56)))continue;if(!_0x3761ae[_0x27a5a8(0xf3)](_0x567c56))_0x3761ae[_0x27a5a8(0xe9)](_0x567c56),_0x4e9c53[_0x27a5a8(0xea)](_0x567c56),_0x472663['set'](_0x567c56,{'referencedBy':[_0x482aa2]});else{if(_0x472663['has'](_0x567c56)){const _0x4d6d92=_0x472663[_0x27a5a8(0xf0)](_0x567c56);!_0x4d6d92['referencedBy']['includes'](_0x482aa2)&&_0x4d6d92['referencedBy'][_0x27a5a8(0xea)](_0x482aa2);}}}}while(_0x4e9c53[_0x5e4125(0xfd)]>0x0){const _0x2a33a2=_0x4e9c53[_0x5e4125(0xeb)](),_0x2d2a06=_0x35207e(_0x2a33a2);if(_0x2d2a06)_0x653c29(_0x2a33a2,_0x2d2a06);}return _0x472663;}export function getBacklinks(_0x482f7e,_0x51f372){const _0x356962=a222_0x2e73,_0x3dd27a=[];for(const [_0x132217,_0x2211bb]of Object[_0x356962(0x108)](DOCUMENT_KIND_FOLDERS)){const _0x76910c=a222_0x417ec2[_0x356962(0xf1)](_0x51f372,_0x2211bb),_0x22d9f2=collectMarkdownFiles(_0x76910c);for(const _0xd7e29f of _0x22d9f2){const _0x1979d6=a222_0x4a0a24[_0x356962(0xf2)](_0xd7e29f,_0x356962(0x106)),_0x82d28f=parseWikiLinks(_0x1979d6),_0x1ec620=_0x82d28f[_0x356962(0x113)](_0x5d56f4=>{const _0x5dc9a2=_0x356962,_0x2f2ab1=_0x5d56f4[_0x5dc9a2(0x10c)][_0x5dc9a2(0x10b)]('/'),_0xfeb761=_0x2f2ab1!==-0x1?_0x5d56f4[_0x5dc9a2(0x10c)][_0x5dc9a2(0xf7)](_0x2f2ab1+0x1):_0x5d56f4[_0x5dc9a2(0x10c)];return _0xfeb761===_0x482f7e;});if(_0x1ec620){const _0x5a0711=_0x1979d6[_0x356962(0xfa)](/^---[\s\S]*?title:\s*(.+?)[\s]*\n/m),_0x433231=a222_0x417ec2['basename'](_0xd7e29f),_0x577190=_0x5a0711?_0x5a0711[0x1][_0x356962(0x107)](/^['"]|['"]$/g,''):_0x433231;_0x3dd27a[_0x356962(0xea)]({'filePath':_0xd7e29f,'kind':_0x132217,'title':_0x577190});}}}return _0x3dd27a;}
1
+ (function(_0x3ee74d,_0x408c15){const _0x23866b=a228_0x2735,_0x1d3c45=_0x3ee74d();while(!![]){try{const _0x21dd9b=parseInt(_0x23866b(0xef))/0x1*(-parseInt(_0x23866b(0xd6))/0x2)+parseInt(_0x23866b(0xf4))/0x3*(-parseInt(_0x23866b(0xe9))/0x4)+parseInt(_0x23866b(0xfb))/0x5*(parseInt(_0x23866b(0xdc))/0x6)+parseInt(_0x23866b(0xda))/0x7*(-parseInt(_0x23866b(0xe5))/0x8)+parseInt(_0x23866b(0xf6))/0x9+-parseInt(_0x23866b(0xee))/0xa*(parseInt(_0x23866b(0xe1))/0xb)+parseInt(_0x23866b(0xdb))/0xc;if(_0x21dd9b===_0x408c15)break;else _0x1d3c45['push'](_0x1d3c45['shift']());}catch(_0x5f4fe4){_0x1d3c45['push'](_0x1d3c45['shift']());}}}(a228_0x574f,0x6e750));import*as a228_0x2b7629 from'node:fs';import*as a228_0x550059 from'node:path';function a228_0x574f(){const _0x43db12=['isDirectory','replace','exec','6VGZaic','.md','5833782SMKdLk','isSymbolicLink','kind','shift','entries','5xcxfOe','resolvedKind','name','slice','some','join','slug','225514RMzkKI','has','templates','lastIndex','539MuWUEu','12865464adAAOg','2325252OxysAF','push','match','find','referencedBy','11oBxiMS','endsWith','basename','sort','1504pEuAib','workflows','startsWith','trim','515356EqdjwX','readdirSync','indexOf','filePath','resolvedPath','5939770kfRkhY','7eLNPxP','get'];a228_0x574f=function(){return _0x43db12;};return a228_0x574f();}import{DOCUMENT_KIND_FOLDERS,KIND_PRIORITY,isTrackableKind}from'../types/workspace.js';const WIKI_LINK_REGEX=/\[\[([^\[\]]+)\]\]/g;export function parseWikiLinks(_0x3ffc54){const _0x22bf96=a228_0x2735,_0x16b2cb=[];let _0x24f031;WIKI_LINK_REGEX[_0x22bf96(0xd9)]=0x0;while((_0x24f031=WIKI_LINK_REGEX[_0x22bf96(0xf3)](_0x3ffc54))!==null){const _0x2dcdf8=_0x24f031[0x1],_0x1d299d=_0x2dcdf8[_0x22bf96(0xeb)]('|');let _0x58759e,_0x53a7fa;_0x1d299d!==-0x1?(_0x58759e=_0x2dcdf8['slice'](0x0,_0x1d299d)[_0x22bf96(0xe8)](),_0x53a7fa=_0x2dcdf8[_0x22bf96(0xfe)](_0x1d299d+0x1)['trim']()):_0x58759e=_0x2dcdf8['trim'](),_0x16b2cb[_0x22bf96(0xdd)]({'raw':_0x24f031[0x0],'slug':_0x58759e,'displayText':_0x53a7fa});}return _0x16b2cb;}function a228_0x2735(_0x5bd13c,_0x2bbc53){_0x5bd13c=_0x5bd13c-0xd5;const _0x574f4d=a228_0x574f();let _0x27353b=_0x574f4d[_0x5bd13c];return _0x27353b;}export function collectMarkdownFiles(_0x288156,_0xad41d9=0x0){const _0x36dce0=a228_0x2735;if(_0xad41d9>0x5)return[];if(!a228_0x2b7629['existsSync'](_0x288156))return[];const _0x3aa51f=[];try{for(const _0xba9bc3 of a228_0x2b7629[_0x36dce0(0xea)](_0x288156,{'withFileTypes':!![]})){if(_0xba9bc3[_0x36dce0(0xfd)][_0x36dce0(0xe7)]('.'))continue;if(_0xba9bc3[_0x36dce0(0xf7)]())continue;const _0x5c87c7=a228_0x550059[_0x36dce0(0x100)](_0x288156,_0xba9bc3[_0x36dce0(0xfd)]);if(_0xba9bc3[_0x36dce0(0xf1)]())_0x3aa51f[_0x36dce0(0xdd)](...collectMarkdownFiles(_0x5c87c7,_0xad41d9+0x1));else _0xba9bc3['name'][_0x36dce0(0xe2)](_0x36dce0(0xf5))&&_0x3aa51f['push'](_0x5c87c7);}}catch{}return _0x3aa51f;}export function buildFileIndex(_0x4ed4bb){const _0x43a4f6=a228_0x2735,_0x22a8a3=new Map();for(const [_0x1c3303,_0x69d5f1]of Object[_0x43a4f6(0xfa)](DOCUMENT_KIND_FOLDERS)){const _0x1146c3=a228_0x550059[_0x43a4f6(0x100)](_0x4ed4bb,_0x69d5f1),_0x17397e=collectMarkdownFiles(_0x1146c3);for(const _0x4efed2 of _0x17397e){const _0x5758c6=a228_0x550059['basename'](_0x4efed2,_0x43a4f6(0xf5)),_0x481161={'stem':_0x5758c6,'kind':_0x1c3303,'filePath':_0x4efed2,'folder':_0x69d5f1},_0x4fa40a=_0x22a8a3['get'](_0x5758c6)||[];_0x4fa40a[_0x43a4f6(0xdd)](_0x481161),_0x22a8a3['set'](_0x5758c6,_0x4fa40a);}}return _0x22a8a3;}export function resolveWikiLinks(_0x65f058,_0x3d78a5){const _0x4a42e3=a228_0x2735,_0x589be6=parseWikiLinks(_0x65f058);for(const _0x42fb53 of _0x589be6){const {slug:_0x498320}=_0x42fb53,_0x453a8c=_0x498320['indexOf']('/');if(_0x453a8c!==-0x1){const _0xc51c0a=_0x498320['slice'](0x0,_0x453a8c),_0x377f78=_0x498320['slice'](_0x453a8c+0x1),_0x1ce48a=_0x3d78a5[_0x4a42e3(0xf0)](_0x377f78);if(_0x1ce48a){const _0x11b2cb=_0x1ce48a[_0x4a42e3(0xdf)](_0x247654=>_0x247654['folder']===_0xc51c0a);_0x11b2cb&&(_0x42fb53[_0x4a42e3(0xed)]=_0x11b2cb[_0x4a42e3(0xec)],_0x42fb53[_0x4a42e3(0xfc)]=_0x11b2cb['kind']);}continue;}const _0x554071=_0x3d78a5[_0x4a42e3(0xf0)](_0x498320);if(_0x554071&&_0x554071['length']>0x0){const _0x1d2d36=_0x554071[_0x4a42e3(0xe4)]((_0x37fb8,_0x390064)=>(KIND_PRIORITY[_0x390064[_0x4a42e3(0xf8)]]||0x0)-(KIND_PRIORITY[_0x37fb8[_0x4a42e3(0xf8)]]||0x0));_0x42fb53[_0x4a42e3(0xed)]=_0x1d2d36[0x0][_0x4a42e3(0xec)],_0x42fb53[_0x4a42e3(0xfc)]=_0x1d2d36[0x0][_0x4a42e3(0xf8)];}}return _0x589be6;}export function linkStem(_0x5a1dee){const _0x47240e=a228_0x2735,_0x279617=_0x5a1dee['lastIndexOf']('/');return _0x279617!==-0x1?_0x5a1dee[_0x47240e(0xfe)](_0x279617+0x1):_0x5a1dee;}function hasDocEntry(_0x3b8b79){const _0x5c5d73=a228_0x2735;return _0x3b8b79?.[_0x5c5d73(0xff)](_0x5501f5=>isTrackableKind(_0x5501f5[_0x5c5d73(0xf8)]))??![];}export function findTransitiveDependencies(_0x51009c,_0x3480ca,_0x10cc54){const _0x475389=a228_0x2735,_0x52fa44=new Map(),_0x2a29d9=new Set(_0x51009c),_0x245020=[..._0x51009c];function _0xd9d043(_0x3a6e2b,_0x40634f){const _0x15d5be=a228_0x2735;for(const _0x2ba430 of parseWikiLinks(_0x40634f)){const _0x455cb5=_0x2ba430['slug'][_0x15d5be(0xeb)]('/');if(_0x455cb5!==-0x1){const _0x2aa82c=_0x2ba430[_0x15d5be(0xd5)][_0x15d5be(0xfe)](0x0,_0x455cb5);if(_0x2aa82c===_0x15d5be(0xd8)||_0x2aa82c===_0x15d5be(0xe6))continue;}const _0x32feb6=linkStem(_0x2ba430[_0x15d5be(0xd5)]);if(!hasDocEntry(_0x3480ca[_0x15d5be(0xf0)](_0x32feb6)))continue;if(!_0x2a29d9[_0x15d5be(0xd7)](_0x32feb6))_0x2a29d9['add'](_0x32feb6),_0x245020[_0x15d5be(0xdd)](_0x32feb6),_0x52fa44['set'](_0x32feb6,{'referencedBy':[_0x3a6e2b]});else{if(_0x52fa44[_0x15d5be(0xd7)](_0x32feb6)){const _0x25bb3a=_0x52fa44[_0x15d5be(0xf0)](_0x32feb6);!_0x25bb3a[_0x15d5be(0xe0)]['includes'](_0x3a6e2b)&&_0x25bb3a[_0x15d5be(0xe0)]['push'](_0x3a6e2b);}}}}while(_0x245020['length']>0x0){const _0x302348=_0x245020[_0x475389(0xf9)](),_0x269db4=_0x10cc54(_0x302348);if(_0x269db4)_0xd9d043(_0x302348,_0x269db4);}return _0x52fa44;}export function getBacklinks(_0x35481d,_0x46f2a5){const _0x4ec8b7=a228_0x2735,_0x1d7e46=[];for(const [_0x5d81ca,_0xfcbefd]of Object['entries'](DOCUMENT_KIND_FOLDERS)){const _0x51efc9=a228_0x550059[_0x4ec8b7(0x100)](_0x46f2a5,_0xfcbefd),_0x5e7ca0=collectMarkdownFiles(_0x51efc9);for(const _0x2f1b75 of _0x5e7ca0){const _0x50763d=a228_0x2b7629['readFileSync'](_0x2f1b75,'utf-8'),_0x3eb26c=parseWikiLinks(_0x50763d),_0x23f93e=_0x3eb26c[_0x4ec8b7(0xff)](_0x5205a0=>{const _0x30e0e7=_0x4ec8b7,_0x88e8cb=_0x5205a0[_0x30e0e7(0xd5)][_0x30e0e7(0xeb)]('/'),_0x36eafa=_0x88e8cb!==-0x1?_0x5205a0[_0x30e0e7(0xd5)][_0x30e0e7(0xfe)](_0x88e8cb+0x1):_0x5205a0[_0x30e0e7(0xd5)];return _0x36eafa===_0x35481d;});if(_0x23f93e){const _0x1a9626=_0x50763d[_0x4ec8b7(0xde)](/^---[\s\S]*?title:\s*(.+?)[\s]*\n/m),_0x4267d4=a228_0x550059[_0x4ec8b7(0xe3)](_0x2f1b75),_0x5050ba=_0x1a9626?_0x1a9626[0x1][_0x4ec8b7(0xf2)](/^['"]|['"]$/g,''):_0x4267d4;_0x1d7e46[_0x4ec8b7(0xdd)]({'filePath':_0x2f1b75,'kind':_0x5d81ca,'title':_0x5050ba});}}}return _0x1d7e46;}
@@ -1 +1 @@
1
- const a223_0x3caedf=a223_0xca55;(function(_0x48daa2,_0x27a7a1){const _0x1b6f43=a223_0xca55,_0x52b192=_0x48daa2();while(!![]){try{const _0x48224a=-parseInt(_0x1b6f43(0xfa))/0x1+parseInt(_0x1b6f43(0xe4))/0x2*(parseInt(_0x1b6f43(0xe9))/0x3)+-parseInt(_0x1b6f43(0xe8))/0x4*(parseInt(_0x1b6f43(0xeb))/0x5)+parseInt(_0x1b6f43(0xe6))/0x6+-parseInt(_0x1b6f43(0xef))/0x7+parseInt(_0x1b6f43(0xf4))/0x8*(parseInt(_0x1b6f43(0xf8))/0x9)+parseInt(_0x1b6f43(0xf2))/0xa*(parseInt(_0x1b6f43(0xdf))/0xb);if(_0x48224a===_0x27a7a1)break;else _0x52b192['push'](_0x52b192['shift']());}catch(_0xa7726f){_0x52b192['push'](_0x52b192['shift']());}}}(a223_0x1e5e,0x7af02));function a223_0x1e5e(){const _0x345c6b=['run','5834298GRbKWa','error','16YqwlMi','2844DfzxtX','join','544545UfZmXB','test-api-key-id/test-api-key-secret','originalFetch','reset','7029988VoCZdz','ERROR','options','30fpfmHh','fail','200laNrWl','http','log','createFetch','96057tpyctr','site','506921Bihacj','warn','map','setup','4413211aszdMA','push','runSequence','fetch','us01','16StWyaP'];a223_0x1e5e=function(){return _0x345c6b;};return a223_0x1e5e();}import{TDX,LogLevel}from'../sdk/index.js';function a223_0xca55(_0x4e63b4,_0x928a06){_0x4e63b4=_0x4e63b4-0xdc;const _0x1e5ec6=a223_0x1e5e();let _0xca55b1=_0x1e5ec6[_0x4e63b4];return _0xca55b1;}import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';export class CommandRunner{['http'];[a223_0x3caedf(0xed)];constructor(){const _0x170134=a223_0x3caedf;this[_0x170134(0xf5)]=createHTTPMock(),this['originalFetch']=global['fetch'];}[a223_0x3caedf(0xde)](){const _0xd16f8d=a223_0x3caedf;this['originalFetch']=global[_0xd16f8d(0xe2)],global[_0xd16f8d(0xe2)]=this[_0xd16f8d(0xf5)][_0xd16f8d(0xf7)]();}['teardown'](_0x9fb68c){const _0x3c912c=a223_0x3caedf;try{_0x9fb68c?.[_0x3c912c(0xf3)]&&this[_0x3c912c(0xf5)]['verify'](_0x9fb68c);}finally{global[_0x3c912c(0xe2)]=this[_0x3c912c(0xed)],this[_0x3c912c(0xf5)][_0x3c912c(0xee)]();}}async[a223_0x3caedf(0xe5)](_0x293992,_0x1d6c98={}){const _0x5b1154=a223_0x3caedf,_0x41e3cc=[],_0x286145=[],_0x3f491f=console['log'],_0x41aca3=console[_0x5b1154(0xe7)],_0xc842eb=console[_0x5b1154(0xdc)];console['log']=(..._0x8a5195)=>{const _0x497563=_0x5b1154;_0x41e3cc[_0x497563(0xe0)](_0x8a5195[_0x497563(0xdd)](String)['join']('\x20'));},console[_0x5b1154(0xe7)]=(..._0x3f1076)=>{const _0x33e951=_0x5b1154;_0x286145['push'](_0x3f1076[_0x33e951(0xdd)](String)[_0x33e951(0xea)]('\x20'));},console['warn']=(..._0x2c89ec)=>{const _0x191884=_0x5b1154;_0x286145[_0x191884(0xe0)](_0x2c89ec[_0x191884(0xdd)](String)[_0x191884(0xea)]('\x20'));};try{const _0x3f6bcd=new TDX({'site':_0x1d6c98[_0x5b1154(0xf1)]?.[_0x5b1154(0xf9)]??_0x5b1154(0xe3),'apiKey':_0x5b1154(0xec),'logLevel':LogLevel[_0x5b1154(0xf0)]}),_0x5ea41d={'options':createTestGlobalOptions(_0x1d6c98['options']),'args':_0x1d6c98['args']??[],'tdx':_0x3f6bcd},_0x1255ab=new _0x293992(),_0x98ad63=await _0x1255ab['run'](_0x5ea41d);return{'exitCode':_0x98ad63,'stdout':_0x41e3cc,'stderr':_0x286145};}finally{console[_0x5b1154(0xf6)]=_0x3f491f,console[_0x5b1154(0xe7)]=_0x41aca3,console[_0x5b1154(0xdc)]=_0xc842eb;}}async[a223_0x3caedf(0xe1)](_0xfaf015){const _0xd9f892=a223_0x3caedf,_0x35d596=[];for(const {command:_0x4051a6,options:_0x4ac144}of _0xfaf015){const _0x131b94=await this[_0xd9f892(0xe5)](_0x4051a6,_0x4ac144);_0x35d596[_0xd9f892(0xe0)](_0x131b94);if(_0x131b94['exitCode']!==0x0)break;}return _0x35d596;}}export function createCommandRunner(){return new CommandRunner();}
1
+ const a229_0x3c2e02=a229_0x30cd;(function(_0x28c8c5,_0x2cb908){const _0x629f81=a229_0x30cd,_0x1e78b3=_0x28c8c5();while(!![]){try{const _0x355edc=parseInt(_0x629f81(0x1cd))/0x1*(-parseInt(_0x629f81(0x1e2))/0x2)+parseInt(_0x629f81(0x1e1))/0x3+parseInt(_0x629f81(0x1cc))/0x4*(-parseInt(_0x629f81(0x1db))/0x5)+parseInt(_0x629f81(0x1da))/0x6+-parseInt(_0x629f81(0x1d6))/0x7+parseInt(_0x629f81(0x1cb))/0x8*(-parseInt(_0x629f81(0x1d9))/0x9)+parseInt(_0x629f81(0x1d1))/0xa;if(_0x355edc===_0x2cb908)break;else _0x1e78b3['push'](_0x1e78b3['shift']());}catch(_0x7ca36b){_0x1e78b3['push'](_0x1e78b3['shift']());}}}(a229_0x80f5,0xf12de));function a229_0x80f5(){const _0x5d6543=['2639745TxhjNO','1126796ajVPgy','fetch','map','join','createFetch','13328AzPTSJ','1897724jQQJov','3WaUnFK','http','error','run','21543710zVZurj','log','us01','exitCode','setup','1507191nDLDqN','warn','push','2664kXsyAL','10653120yePBsS','15GxGWZL','ERROR','verify','originalFetch','fail','site'];a229_0x80f5=function(){return _0x5d6543;};return a229_0x80f5();}import{TDX,LogLevel}from'../sdk/index.js';function a229_0x30cd(_0x131796,_0x27cc59){_0x131796=_0x131796-0x1ca;const _0x80f516=a229_0x80f5();let _0x30cd6a=_0x80f516[_0x131796];return _0x30cd6a;}import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';export class CommandRunner{[a229_0x3c2e02(0x1ce)];[a229_0x3c2e02(0x1de)];constructor(){const _0xbef9da=a229_0x3c2e02;this[_0xbef9da(0x1ce)]=createHTTPMock(),this[_0xbef9da(0x1de)]=global[_0xbef9da(0x1e3)];}[a229_0x3c2e02(0x1d5)](){const _0x1264ed=a229_0x3c2e02;this[_0x1264ed(0x1de)]=global[_0x1264ed(0x1e3)],global['fetch']=this['http'][_0x1264ed(0x1ca)]();}['teardown'](_0x52161b){const _0x2302e4=a229_0x3c2e02;try{_0x52161b?.[_0x2302e4(0x1df)]&&this[_0x2302e4(0x1ce)][_0x2302e4(0x1dd)](_0x52161b);}finally{global[_0x2302e4(0x1e3)]=this[_0x2302e4(0x1de)],this['http']['reset']();}}async['run'](_0x3c38e5,_0x3d45ee={}){const _0x27477c=a229_0x3c2e02,_0x325f17=[],_0x15ef21=[],_0x30af7f=console['log'],_0x4beb44=console[_0x27477c(0x1cf)],_0x17d960=console[_0x27477c(0x1d7)];console[_0x27477c(0x1d2)]=(..._0x148772)=>{const _0x275312=_0x27477c;_0x325f17['push'](_0x148772['map'](String)[_0x275312(0x1e5)]('\x20'));},console['error']=(..._0xd887e9)=>{const _0x5813a2=_0x27477c;_0x15ef21[_0x5813a2(0x1d8)](_0xd887e9['map'](String)[_0x5813a2(0x1e5)]('\x20'));},console['warn']=(..._0x194fdd)=>{const _0x3bc030=_0x27477c;_0x15ef21[_0x3bc030(0x1d8)](_0x194fdd[_0x3bc030(0x1e4)](String)[_0x3bc030(0x1e5)]('\x20'));};try{const _0x267200=new TDX({'site':_0x3d45ee['options']?.[_0x27477c(0x1e0)]??_0x27477c(0x1d3),'apiKey':'test-api-key-id/test-api-key-secret','logLevel':LogLevel[_0x27477c(0x1dc)]}),_0x3f2ca1={'options':createTestGlobalOptions(_0x3d45ee['options']),'args':_0x3d45ee['args']??[],'tdx':_0x267200},_0x1a099f=new _0x3c38e5(),_0x30db08=await _0x1a099f[_0x27477c(0x1d0)](_0x3f2ca1);return{'exitCode':_0x30db08,'stdout':_0x325f17,'stderr':_0x15ef21};}finally{console[_0x27477c(0x1d2)]=_0x30af7f,console[_0x27477c(0x1cf)]=_0x4beb44,console[_0x27477c(0x1d7)]=_0x17d960;}}async['runSequence'](_0x427818){const _0x26137c=a229_0x3c2e02,_0x2f05cf=[];for(const {command:_0x22fc70,options:_0x162418}of _0x427818){const _0x62e5b0=await this[_0x26137c(0x1d0)](_0x22fc70,_0x162418);_0x2f05cf[_0x26137c(0x1d8)](_0x62e5b0);if(_0x62e5b0[_0x26137c(0x1d4)]!==0x0)break;}return _0x2f05cf;}}export function createCommandRunner(){return new CommandRunner();}
@@ -1 +1 @@
1
- (function(_0x3b53f8,_0x891cf0){const _0x2e1636=a224_0x3952,_0x5477fb=_0x3b53f8();while(!![]){try{const _0x37bb03=parseInt(_0x2e1636(0x139))/0x1*(-parseInt(_0x2e1636(0x149))/0x2)+parseInt(_0x2e1636(0x15b))/0x3*(parseInt(_0x2e1636(0x152))/0x4)+-parseInt(_0x2e1636(0x150))/0x5*(-parseInt(_0x2e1636(0x140))/0x6)+-parseInt(_0x2e1636(0x15c))/0x7*(parseInt(_0x2e1636(0x144))/0x8)+-parseInt(_0x2e1636(0x142))/0x9*(parseInt(_0x2e1636(0x141))/0xa)+-parseInt(_0x2e1636(0x146))/0xb+parseInt(_0x2e1636(0x143))/0xc*(parseInt(_0x2e1636(0x148))/0xd);if(_0x37bb03===_0x891cf0)break;else _0x5477fb['push'](_0x5477fb['shift']());}catch(_0x467c50){_0x5477fb['push'](_0x5477fb['shift']());}}}(a224_0x4bb6,0xec25e));function a224_0x3952(_0x203e58,_0x42541f){_0x203e58=_0x203e58-0x137;const _0x4bb60f=a224_0x4bb6();let _0x39521a=_0x4bb60f[_0x203e58];return _0x39521a;}import{vi}from'vitest';import a224_0x3a6170 from'fs';import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';import{getGlobalCacheDir}from'../utils/global-cache.js';export function createTestSDKContext(_0x4a1c25){const _0x1640c1=a224_0x3952;return{'site':'us01','apiKey':_0x1640c1(0x137),'logLevel':LogLevel[_0x1640c1(0x13b)],..._0x4a1c25};}export function createTestGlobalOptions(_0x486581){const _0x1b032e=a224_0x3952;return{'site':'us01','format':_0x1b032e(0x154),'noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x1b032e(0x158),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x1b032e(0x13b)],..._0x486581};}export async function initTestLogger(){const _0x334853=a224_0x3952;Logger[_0x334853(0x147)]();const _0x3af8ba=join(getGlobalCacheDir(),_0x334853(0x14d),'tdx-test.log');await Logger[_0x334853(0x14c)]({'defaultLevel':LogLevel[_0x334853(0x153)],'handlers':[new FileHandler({'filePath':_0x3af8ba,'rotate':![]})]});}export function resetTestLogger(){const _0x6cbda9=a224_0x3952;Logger[_0x6cbda9(0x147)]();}export function createMockTDX(_0x28b98e){const _0x21ce12=a224_0x3952;return{'context':{'site':_0x21ce12(0x13a),'apiKey':_0x21ce12(0x13d),'logLevel':LogLevel[_0x21ce12(0x13b)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x28b98e?.[_0x21ce12(0x156)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x28b98e?.[_0x21ce12(0x155)]},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x28b98e?.[_0x21ce12(0x14a)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x28b98e?.[_0x21ce12(0x13f)]},'user':{'show':vi['fn'](),..._0x28b98e?.['user']},'api':{'request':vi['fn'](),..._0x28b98e?.[_0x21ce12(0x159)]},..._0x28b98e};}export function createTestCommandContext(_0x3c1e11){const _0x1d0d1b=a224_0x3952,_0x1b70f6=createTestGlobalOptions(_0x3c1e11?.['options']),_0x667d1f=_0x3c1e11?.[_0x1d0d1b(0x13c)]??createMockTDX();return{'options':_0x1b70f6,'args':_0x3c1e11?.[_0x1d0d1b(0x14e)]??[],'tdx':_0x667d1f};}export function captureConsole(){const _0x1279a5=a224_0x3952,_0x1965d5=[],_0x153d83=[],_0x32caba=console[_0x1279a5(0x15e)],_0x496932=console[_0x1279a5(0x157)],_0x1987df=console[_0x1279a5(0x15d)];return console['log']=(..._0x5435d0)=>{const _0x3532a4=_0x1279a5;_0x1965d5['push'](_0x5435d0[_0x3532a4(0x13e)](String)[_0x3532a4(0x138)]('\x20'));},console[_0x1279a5(0x157)]=(..._0xad1ef7)=>{const _0x5cc840=_0x1279a5;_0x153d83[_0x5cc840(0x15a)](_0xad1ef7[_0x5cc840(0x13e)](String)[_0x5cc840(0x138)]('\x20'));},console[_0x1279a5(0x15d)]=(..._0x239617)=>{const _0x151633=_0x1279a5;_0x153d83[_0x151633(0x15a)](_0x239617[_0x151633(0x13e)](String)[_0x151633(0x138)]('\x20'));},{'stdout':_0x1965d5,'stderr':_0x153d83,'restore':()=>{const _0x4ab480=_0x1279a5;console[_0x4ab480(0x15e)]=_0x32caba,console[_0x4ab480(0x157)]=_0x496932,console[_0x4ab480(0x15d)]=_0x1987df;}};}export function writeTestProfile(_0x34bb1b,_0x524fe9){const _0x2d8e01=a224_0x3952,_0x298c59=process.env.TDX_CONFIG_DIR;if(!_0x298c59)throw new Error(_0x2d8e01(0x14f));a224_0x3a6170[_0x2d8e01(0x145)](join(_0x298c59,_0x2d8e01(0x151)),JSON[_0x2d8e01(0x14b)]({'profiles':{[_0x34bb1b]:_0x524fe9}},null,0x2));}function a224_0x4bb6(){const _0x3c0034=['writeFileSync','15242634jIvKqe','reset','127114ZoZhec','3824ytVbLO','journey','stringify','init','logs','args','writeTestProfile\x20requires\x20TDX_CONFIG_DIR\x20to\x20be\x20set','5DUCVJb','tdx.json','7678592AWIluJ','DEBUG','table','segment','query','error','30000','api','push','3gMUngV','960407ORnNza','warn','log','test-api-key-id/test-api-key-secret','join','141tFBdxN','us01','ERROR','tdx','test-api-key','map','workflow','1400748OkszuH','2532030Ijwnkm','9EetPps','1392lENtop','24bcmXjH'];a224_0x4bb6=function(){return _0x3c0034;};return a224_0x4bb6();}
1
+ (function(_0x1e066d,_0x467582){const _0x56b7a3=a230_0x5e8b,_0x8d522b=_0x1e066d();while(!![]){try{const _0x20fa5c=parseInt(_0x56b7a3(0xcf))/0x1+-parseInt(_0x56b7a3(0xea))/0x2*(-parseInt(_0x56b7a3(0xd7))/0x3)+-parseInt(_0x56b7a3(0xe9))/0x4+parseInt(_0x56b7a3(0xd2))/0x5+parseInt(_0x56b7a3(0xee))/0x6+-parseInt(_0x56b7a3(0xdb))/0x7*(-parseInt(_0x56b7a3(0xe8))/0x8)+-parseInt(_0x56b7a3(0xe1))/0x9*(parseInt(_0x56b7a3(0xce))/0xa);if(_0x20fa5c===_0x467582)break;else _0x8d522b['push'](_0x8d522b['shift']());}catch(_0x4e840c){_0x8d522b['push'](_0x8d522b['shift']());}}}(a230_0x4fb1,0x7ee91));import{vi}from'vitest';import a230_0x17a606 from'fs';function a230_0x5e8b(_0x70474c,_0x547b4c){_0x70474c=_0x70474c-0xce;const _0x4fb16c=a230_0x4fb1();let _0x5e8bc8=_0x4fb16c[_0x70474c];return _0x5e8bc8;}import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';import{getGlobalCacheDir}from'../utils/global-cache.js';export function createTestSDKContext(_0x335d57){const _0x286d36=a230_0x5e8b;return{'site':_0x286d36(0xe7),'apiKey':_0x286d36(0xd0),'logLevel':LogLevel[_0x286d36(0xd9)],..._0x335d57};}function a230_0x4fb1(){const _0xfd72e7=['error','push','tdx.json','log','6883119UhnqnD','map','args','30000','logs','user','us01','5784KupSqZ','2172376YkPczK','80398DNsqyj','query','init','join','2581914mwSkkX','tdx','30wCleaQ','336186zXIjus','test-api-key-id/test-api-key-secret','workflow','4274295NXOnnA','writeTestProfile\x20requires\x20TDX_CONFIG_DIR\x20to\x20be\x20set','writeFileSync','segment','test-api-key','75NktIld','warn','ERROR','table','7077bZwCWB','api'];a230_0x4fb1=function(){return _0xfd72e7;};return a230_0x4fb1();}export function createTestGlobalOptions(_0x5dba70){const _0x4d653a=a230_0x5e8b;return{'site':_0x4d653a(0xe7),'format':_0x4d653a(0xda),'noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x4d653a(0xe4),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x4d653a(0xd9)],..._0x5dba70};}export async function initTestLogger(){const _0xffee0a=a230_0x5e8b;Logger['reset']();const _0x1b8c77=join(getGlobalCacheDir(),_0xffee0a(0xe5),'tdx-test.log');await Logger[_0xffee0a(0xec)]({'defaultLevel':LogLevel['DEBUG'],'handlers':[new FileHandler({'filePath':_0x1b8c77,'rotate':![]})]});}export function resetTestLogger(){Logger['reset']();}export function createMockTDX(_0x5ade69){const _0x41deb9=a230_0x5e8b;return{'context':{'site':_0x41deb9(0xe7),'apiKey':_0x41deb9(0xd6),'logLevel':LogLevel[_0x41deb9(0xd9)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x5ade69?.[_0x41deb9(0xeb)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x5ade69?.[_0x41deb9(0xd5)]},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x5ade69?.['journey']},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x5ade69?.[_0x41deb9(0xd1)]},'user':{'show':vi['fn'](),..._0x5ade69?.[_0x41deb9(0xe6)]},'api':{'request':vi['fn'](),..._0x5ade69?.[_0x41deb9(0xdc)]},..._0x5ade69};}export function createTestCommandContext(_0x170b8b){const _0x4bfb70=a230_0x5e8b,_0x4552bf=createTestGlobalOptions(_0x170b8b?.['options']),_0x5e0f96=_0x170b8b?.[_0x4bfb70(0xef)]??createMockTDX();return{'options':_0x4552bf,'args':_0x170b8b?.[_0x4bfb70(0xe3)]??[],'tdx':_0x5e0f96};}export function captureConsole(){const _0x1c4305=a230_0x5e8b,_0x5a8c70=[],_0x43aaba=[],_0x9819fd=console[_0x1c4305(0xe0)],_0x213a33=console['error'],_0x4cedc2=console[_0x1c4305(0xd8)];return console['log']=(..._0x881129)=>{const _0x4bb83c=_0x1c4305;_0x5a8c70[_0x4bb83c(0xde)](_0x881129[_0x4bb83c(0xe2)](String)[_0x4bb83c(0xed)]('\x20'));},console[_0x1c4305(0xdd)]=(..._0x5a6f93)=>{const _0x30bb88=_0x1c4305;_0x43aaba[_0x30bb88(0xde)](_0x5a6f93['map'](String)['join']('\x20'));},console[_0x1c4305(0xd8)]=(..._0x59d71d)=>{const _0x20b730=_0x1c4305;_0x43aaba[_0x20b730(0xde)](_0x59d71d[_0x20b730(0xe2)](String)['join']('\x20'));},{'stdout':_0x5a8c70,'stderr':_0x43aaba,'restore':()=>{const _0x2a6208=_0x1c4305;console[_0x2a6208(0xe0)]=_0x9819fd,console[_0x2a6208(0xdd)]=_0x213a33,console[_0x2a6208(0xd8)]=_0x4cedc2;}};}export function writeTestProfile(_0x287aef,_0x54f2a0){const _0x95cd63=a230_0x5e8b,_0x4a1c4c=process.env.TDX_CONFIG_DIR;if(!_0x4a1c4c)throw new Error(_0x95cd63(0xd3));a230_0x17a606[_0x95cd63(0xd4)](join(_0x4a1c4c,_0x95cd63(0xdf)),JSON['stringify']({'profiles':{[_0x287aef]:_0x54f2a0}},null,0x2));}
@@ -1 +1 @@
1
- const a225_0x16f6ba=a225_0x3f7b;(function(_0x2e26cf,_0x133af0){const _0x24f873=a225_0x3f7b,_0x174cb4=_0x2e26cf();while(!![]){try{const _0x1678c1=parseInt(_0x24f873(0x93))/0x1+parseInt(_0x24f873(0xa4))/0x2+-parseInt(_0x24f873(0x88))/0x3*(-parseInt(_0x24f873(0xd2))/0x4)+-parseInt(_0x24f873(0x9c))/0x5+-parseInt(_0x24f873(0xaf))/0x6*(parseInt(_0x24f873(0x97))/0x7)+parseInt(_0x24f873(0xc6))/0x8+parseInt(_0x24f873(0xd8))/0x9*(-parseInt(_0x24f873(0xb9))/0xa);if(_0x1678c1===_0x133af0)break;else _0x174cb4['push'](_0x174cb4['shift']());}catch(_0x1b79e9){_0x174cb4['push'](_0x174cb4['shift']());}}}(a225_0x5695,0x7ad0c));export const fixtures={'database':{'basic':{'name':a225_0x16f6ba(0xc2),'count':0x5,'created_at':'2024-01-01T00:00:00Z','updated_at':a225_0x16f6ba(0x94),'permission':a225_0x16f6ba(0x92)},'withTables':{'name':'production_db','count':0x64,'created_at':a225_0x16f6ba(0xf2),'updated_at':a225_0x16f6ba(0x8e),'permission':'full_access'}},'table':{'basic':{'id':0x3039,'name':'users','type':a225_0x16f6ba(0xc3),'schema':JSON[a225_0x16f6ba(0xd3)]([['id',a225_0x16f6ba(0xa0)],[a225_0x16f6ba(0xae),'long'],['name',a225_0x16f6ba(0xa0)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':'2024-01-01T00:00:00Z','updated_at':a225_0x16f6ba(0x94)},'events':{'id':0x303a,'name':a225_0x16f6ba(0xeb),'type':a225_0x16f6ba(0xc3),'schema':JSON[a225_0x16f6ba(0xd3)]([[a225_0x16f6ba(0xa2),a225_0x16f6ba(0xa0)],[a225_0x16f6ba(0xae),'long'],[a225_0x16f6ba(0xca),a225_0x16f6ba(0xa0)],['event_type',a225_0x16f6ba(0xa0)],['properties','map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a225_0x16f6ba(0x94),'updated_at':a225_0x16f6ba(0xd7)}},'parentSegment':{'basic':{'id':a225_0x16f6ba(0xd1),'name':a225_0x16f6ba(0x96),'description':a225_0x16f6ba(0xa3),'status':'active','master_table':{'database':a225_0x16f6ba(0x90),'table':a225_0x16f6ba(0x86)},'attributes':[{'name':a225_0x16f6ba(0xa6),'type':a225_0x16f6ba(0xa0),'key':!![]},{'name':a225_0x16f6ba(0xd5),'type':a225_0x16f6ba(0xa0)},{'name':a225_0x16f6ba(0x9d),'type':a225_0x16f6ba(0xac)}],'created_at':a225_0x16f6ba(0x94),'updated_at':a225_0x16f6ba(0xc5)},'withBehaviors':{'id':a225_0x16f6ba(0xa5),'name':a225_0x16f6ba(0xb5),'description':a225_0x16f6ba(0xe0),'status':a225_0x16f6ba(0xb1),'master_table':{'database':a225_0x16f6ba(0x90),'table':'customers'},'behaviors':[{'name':a225_0x16f6ba(0xa7),'table':{'database':a225_0x16f6ba(0x95),'table':'purchases'},'join_key':a225_0x16f6ba(0xa6)},{'name':a225_0x16f6ba(0xc4),'table':{'database':'events_db','table':'pageviews'},'join_key':a225_0x16f6ba(0xa6)}],'created_at':a225_0x16f6ba(0x94),'updated_at':a225_0x16f6ba(0xc5)}},'segment':{'basic':{'id':'cs-456789','name':a225_0x16f6ba(0x85),'description':'Users\x20active\x20in\x20the\x20last\x2030\x20days','parent_segment_id':a225_0x16f6ba(0xd1),'status':a225_0x16f6ba(0xb1),'rules':[{'type':a225_0x16f6ba(0xdf),'field':a225_0x16f6ba(0xe8),'operator':a225_0x16f6ba(0xcf),'value':'30d'}],'count':0x1388,'created_at':a225_0x16f6ba(0x94),'updated_at':a225_0x16f6ba(0xc5)},'withMultipleRules':{'id':a225_0x16f6ba(0xee),'name':a225_0x16f6ba(0xc7),'description':a225_0x16f6ba(0xc1),'parent_segment_id':a225_0x16f6ba(0xd1),'status':'active','rules':[{'type':a225_0x16f6ba(0xdf),'field':a225_0x16f6ba(0xe8),'operator':a225_0x16f6ba(0xcf),'value':a225_0x16f6ba(0x8b)},{'type':a225_0x16f6ba(0xdf),'field':a225_0x16f6ba(0xed),'operator':a225_0x16f6ba(0xe9),'value':0x3e8}],'count':0x5dc,'created_at':a225_0x16f6ba(0x94),'updated_at':a225_0x16f6ba(0xc5)}},'journey':{'basic':{'id':a225_0x16f6ba(0x9a),'name':'Welcome\x20Journey','description':'Onboarding\x20journey\x20for\x20new\x20users','status':'draft','version':0x1,'steps':[{'id':a225_0x16f6ba(0xf1),'type':'wait','duration':'1d'},{'id':a225_0x16f6ba(0xb6),'type':'activation','activation_id':'act-123'}],'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'},'withDecision':{'id':'j-def456','name':a225_0x16f6ba(0xb4),'description':a225_0x16f6ba(0xc0),'status':a225_0x16f6ba(0xb1),'version':0x2,'steps':[{'id':a225_0x16f6ba(0xf1),'type':a225_0x16f6ba(0xea),'segment_id':a225_0x16f6ba(0xdc),'yes_path':a225_0x16f6ba(0xb6),'no_path':a225_0x16f6ba(0xe3)},{'id':a225_0x16f6ba(0xb6),'type':a225_0x16f6ba(0xb2),'activation_id':a225_0x16f6ba(0xbb)},{'id':a225_0x16f6ba(0xe3),'type':a225_0x16f6ba(0xc8)}],'created_at':a225_0x16f6ba(0x94),'updated_at':a225_0x16f6ba(0xc5)}},'queryResult':{'basic':{'schema':[{'name':'id','type':'varchar'},{'name':a225_0x16f6ba(0xde),'type':a225_0x16f6ba(0xb8)},{'name':a225_0x16f6ba(0xd9),'type':a225_0x16f6ba(0xe7)}],'data':[['user-1',a225_0x16f6ba(0xdd),0x64],[a225_0x16f6ba(0xbc),a225_0x16f6ba(0xbf),0xc8],[a225_0x16f6ba(0x9b),'Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':a225_0x16f6ba(0xb8)},{'name':a225_0x16f6ba(0xde),'type':a225_0x16f6ba(0xb8)}],'data':[]},'singleRow':{'schema':[{'name':a225_0x16f6ba(0xce),'type':a225_0x16f6ba(0xe7)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a225_0x16f6ba(0xab),'email':'test@example.com','created_at':a225_0x16f6ba(0x94),'updated_at':a225_0x16f6ba(0xc5),'administrator':![]},'admin':{'id':0x1,'name':a225_0x16f6ba(0x8a),'email':a225_0x16f6ba(0xba),'created_at':a225_0x16f6ba(0x89),'updated_at':a225_0x16f6ba(0xc5),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a225_0x16f6ba(0xc9),'database':a225_0x16f6ba(0xc2),'status':a225_0x16f6ba(0xbe),'query':a225_0x16f6ba(0x8c),'start_at':a225_0x16f6ba(0xd0),'end_at':a225_0x16f6ba(0x91),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a225_0x16f6ba(0xc9),'database':a225_0x16f6ba(0xc2),'status':a225_0x16f6ba(0xb3),'query':a225_0x16f6ba(0xda),'start_at':a225_0x16f6ba(0xec),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a225_0x16f6ba(0xc9),'database':'test_db','status':a225_0x16f6ba(0x8d),'query':a225_0x16f6ba(0x87),'start_at':'2024-01-15T10:10:00Z','end_at':a225_0x16f6ba(0xcb),'duration':0x1,'result_size':null,'error':'Table\x20does\x20not\x20exist:\x20nonexistent_table'}},'workflow':{'basic':{'id':a225_0x16f6ba(0xb0),'name':a225_0x16f6ba(0xef),'project':a225_0x16f6ba(0xcc),'revision':a225_0x16f6ba(0xf0),'timezone':'UTC','schedule':{'cron':a225_0x16f6ba(0xe5)}},'withSessions':{'id':a225_0x16f6ba(0xe1),'name':a225_0x16f6ba(0xcd),'project':'data_sync','revision':a225_0x16f6ba(0x9f),'timezone':'America/Los_Angeles','schedule':{'cron':a225_0x16f6ba(0xaa)},'last_session':{'id':a225_0x16f6ba(0xe2),'status':a225_0x16f6ba(0xbe),'started_at':a225_0x16f6ba(0x84),'finished_at':a225_0x16f6ba(0xe6)}}},'apiError':{'unauthorized':{'errors':{'error':'Invalid\x20API\x20key','message':a225_0x16f6ba(0xbd),'severity':a225_0x16f6ba(0x8d),'status_code':0x191}},'notFound':{'errors':{'error':'Resource\x20not\x20found','message':a225_0x16f6ba(0xe4),'severity':a225_0x16f6ba(0x8d),'status_code':0x194}},'rateLimited':{'detail':a225_0x16f6ba(0xd6)},'rfc9457':{'type':a225_0x16f6ba(0xad),'title':a225_0x16f6ba(0x99),'status':0x193,'detail':a225_0x16f6ba(0xdb),'instance':'/v3/database/list'}}};function a225_0x5695(){const _0x41621b=['cs-111222','daily_etl','abc123','step-1','2023-06-15T10:30:00Z','2024-01-15T09:00:00Z','Active\x20Users','unified_customers','SELECT\x20*\x20FROM\x20nonexistent_table','15807ElBkEz','2023-01-01T00:00:00Z','Admin\x20User','30d','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','error','2024-01-15T08:00:00Z','job','cdp_db','2024-01-15T10:00:05Z','administrator','308333MTdbcY','2024-01-01T00:00:00Z','events_db','Test\x20Parent\x20Segment','2021257Yyhzrb','segment','Forbidden','j-abc123','user-3','1195585PqOpBy','created_at','basic','def456','string','parentSegment','event_id','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','670706tjiAZZ','ps-789012','customer_id','purchases','journey','completed','0\x20*\x20*\x20*\x20*','Test\x20User','timestamp','https://api.treasuredata.com/errors/forbidden','time','12vbGwEB','wf-12345','active','activation','running','Purchase\x20Reminder','Customers\x20with\x20Behaviors','step-2','queryResult','varchar','20jhuDaw','admin@example.com','act-email','user-2','Invalid\x20API\x20key','success','Bob','Journey\x20with\x20decision\x20point','Active\x20users\x20with\x20high\x20lifetime\x20value','test_db','log','page_views','2024-01-15T00:00:00Z','5384952XoBgSo','High\x20Value\x20Active\x20Users','end','presto','user_id','2024-01-15T10:10:01Z','data_pipeline','hourly_sync','total','TimeWithinPast','2024-01-15T10:00:00Z','ps-123456','512dmPXOK','stringify','workflow','email','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','2024-01-15T12:00:00Z','3022047egBjVn','count','SELECT\x20COUNT(*)\x20FROM\x20events','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','cs-456789','Alice','name','attribute','Parent\x20segment\x20with\x20behavioral\x20data','wf-67890','sess-111','step-3','The\x20requested\x20resource\x20does\x20not\x20exist','0\x200\x20*\x20*\x20*','2024-01-15T09:05:00Z','bigint','last_login','Greater','decision_point','events','2024-01-15T10:05:00Z','lifetime_value'];a225_0x5695=function(){return _0x41621b;};return a225_0x5695();}export function createDatabase(_0x5c974b){const _0x14384a=a225_0x16f6ba;return{...fixtures['database'][_0x14384a(0x9e)],..._0x5c974b};}export function createTable(_0x48e6f6){const _0x124785=a225_0x16f6ba;return{...fixtures['table'][_0x124785(0x9e)],..._0x48e6f6};}export function createParentSegment(_0x36f2c9){const _0x1aa875=a225_0x16f6ba;return{...fixtures[_0x1aa875(0xa1)][_0x1aa875(0x9e)],..._0x36f2c9};}export function createSegment(_0x5e2896){const _0x923830=a225_0x16f6ba;return{...fixtures[_0x923830(0x98)][_0x923830(0x9e)],..._0x5e2896};}export function createJourney(_0x2834c6){const _0x47d657=a225_0x16f6ba;return{...fixtures[_0x47d657(0xa8)][_0x47d657(0x9e)],..._0x2834c6};}function a225_0x3f7b(_0x4bf29b,_0x53a911){_0x4bf29b=_0x4bf29b-0x84;const _0x5695d8=a225_0x5695();let _0x3f7bde=_0x5695d8[_0x4bf29b];return _0x3f7bde;}export function createQueryResult(_0xfc87e0){const _0xcba717=a225_0x16f6ba;return{...fixtures[_0xcba717(0xb7)][_0xcba717(0x9e)],..._0xfc87e0};}export function createUser(_0x4ebcf3){return{...fixtures['user']['basic'],..._0x4ebcf3};}export function createJob(_0x246c33){const _0x1e981f=a225_0x16f6ba;return{...fixtures[_0x1e981f(0x8f)][_0x1e981f(0xa9)],..._0x246c33};}export function createWorkflow(_0x2e47e2){const _0x3a6ab3=a225_0x16f6ba;return{...fixtures[_0x3a6ab3(0xd4)][_0x3a6ab3(0x9e)],..._0x2e47e2};}
1
+ const a231_0x12663e=a231_0x354b;(function(_0x51682d,_0x5b9d0c){const _0x157f97=a231_0x354b,_0x2fae1f=_0x51682d();while(!![]){try{const _0x171c66=-parseInt(_0x157f97(0x16e))/0x1+-parseInt(_0x157f97(0x10d))/0x2*(-parseInt(_0x157f97(0x15e))/0x3)+-parseInt(_0x157f97(0x14b))/0x4*(-parseInt(_0x157f97(0x158))/0x5)+-parseInt(_0x157f97(0x13a))/0x6*(parseInt(_0x157f97(0x16b))/0x7)+parseInt(_0x157f97(0x155))/0x8+parseInt(_0x157f97(0x171))/0x9*(parseInt(_0x157f97(0x149))/0xa)+-parseInt(_0x157f97(0x109))/0xb*(parseInt(_0x157f97(0x11e))/0xc);if(_0x171c66===_0x5b9d0c)break;else _0x2fae1f['push'](_0x2fae1f['shift']());}catch(_0x300205){_0x2fae1f['push'](_0x2fae1f['shift']());}}}(a231_0x15fe,0x5c8e1));export const fixtures={'database':{'basic':{'name':'test_db','count':0x5,'created_at':a231_0x12663e(0x140),'updated_at':'2024-01-01T00:00:00Z','permission':a231_0x12663e(0x148)},'withTables':{'name':a231_0x12663e(0x10b),'count':0x64,'created_at':a231_0x12663e(0x126),'updated_at':a231_0x12663e(0x16a),'permission':a231_0x12663e(0x124)}},'table':{'basic':{'id':0x3039,'name':'users','type':a231_0x12663e(0x12a),'schema':JSON[a231_0x12663e(0x147)]([['id',a231_0x12663e(0x108)],[a231_0x12663e(0x170),a231_0x12663e(0x15c)],['name',a231_0x12663e(0x108)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a231_0x12663e(0x140),'updated_at':a231_0x12663e(0x140)},'events':{'id':0x303a,'name':a231_0x12663e(0x150),'type':a231_0x12663e(0x12a),'schema':JSON['stringify']([['event_id',a231_0x12663e(0x108)],[a231_0x12663e(0x170),a231_0x12663e(0x15c)],['user_id',a231_0x12663e(0x108)],[a231_0x12663e(0x127),'string'],['properties',a231_0x12663e(0x145)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a231_0x12663e(0x140),'updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':'ps-123456','name':a231_0x12663e(0x122),'description':a231_0x12663e(0x118),'status':a231_0x12663e(0x132),'master_table':{'database':a231_0x12663e(0x11b),'table':'unified_customers'},'attributes':[{'name':a231_0x12663e(0x107),'type':a231_0x12663e(0x108),'key':!![]},{'name':'email','type':a231_0x12663e(0x108)},{'name':a231_0x12663e(0x138),'type':'timestamp'}],'created_at':a231_0x12663e(0x140),'updated_at':a231_0x12663e(0x116)},'withBehaviors':{'id':a231_0x12663e(0x131),'name':a231_0x12663e(0x165),'description':'Parent\x20segment\x20with\x20behavioral\x20data','status':a231_0x12663e(0x132),'master_table':{'database':a231_0x12663e(0x11b),'table':a231_0x12663e(0x105)},'behaviors':[{'name':a231_0x12663e(0x162),'table':{'database':a231_0x12663e(0x151),'table':a231_0x12663e(0x162)},'join_key':a231_0x12663e(0x107)},{'name':'page_views','table':{'database':a231_0x12663e(0x151),'table':a231_0x12663e(0x123)},'join_key':'customer_id'}],'created_at':a231_0x12663e(0x140),'updated_at':a231_0x12663e(0x116)}},'segment':{'basic':{'id':a231_0x12663e(0x104),'name':a231_0x12663e(0x135),'description':a231_0x12663e(0x11a),'parent_segment_id':a231_0x12663e(0x10f),'status':a231_0x12663e(0x132),'rules':[{'type':a231_0x12663e(0x169),'field':a231_0x12663e(0x141),'operator':a231_0x12663e(0x102),'value':a231_0x12663e(0x112)}],'count':0x1388,'created_at':a231_0x12663e(0x140),'updated_at':a231_0x12663e(0x116)},'withMultipleRules':{'id':a231_0x12663e(0x125),'name':a231_0x12663e(0x115),'description':a231_0x12663e(0x164),'parent_segment_id':a231_0x12663e(0x10f),'status':a231_0x12663e(0x132),'rules':[{'type':a231_0x12663e(0x169),'field':a231_0x12663e(0x141),'operator':a231_0x12663e(0x102),'value':a231_0x12663e(0x112)},{'type':a231_0x12663e(0x169),'field':a231_0x12663e(0x119),'operator':a231_0x12663e(0x163),'value':0x3e8}],'count':0x5dc,'created_at':a231_0x12663e(0x140),'updated_at':'2024-01-15T00:00:00Z'}},'journey':{'basic':{'id':a231_0x12663e(0x168),'name':a231_0x12663e(0x139),'description':a231_0x12663e(0x142),'status':a231_0x12663e(0x159),'version':0x1,'steps':[{'id':a231_0x12663e(0x15a),'type':'wait','duration':'1d'},{'id':a231_0x12663e(0x12f),'type':a231_0x12663e(0x15b),'activation_id':a231_0x12663e(0x113)}],'created_at':a231_0x12663e(0x140),'updated_at':a231_0x12663e(0x116)},'withDecision':{'id':a231_0x12663e(0x152),'name':'Purchase\x20Reminder','description':'Journey\x20with\x20decision\x20point','status':a231_0x12663e(0x132),'version':0x2,'steps':[{'id':'step-1','type':a231_0x12663e(0x12e),'segment_id':a231_0x12663e(0x104),'yes_path':'step-2','no_path':'step-3'},{'id':a231_0x12663e(0x12f),'type':a231_0x12663e(0x15b),'activation_id':a231_0x12663e(0x137)},{'id':'step-3','type':a231_0x12663e(0x15d)}],'created_at':a231_0x12663e(0x140),'updated_at':a231_0x12663e(0x116)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a231_0x12663e(0x14c)},{'name':'name','type':'varchar'},{'name':a231_0x12663e(0x16c),'type':'bigint'}],'data':[[a231_0x12663e(0x111),a231_0x12663e(0x114),0x64],[a231_0x12663e(0x121),a231_0x12663e(0x13c),0xc8],[a231_0x12663e(0x154),'Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':'varchar'},{'name':a231_0x12663e(0x172),'type':'varchar'}],'data':[]},'singleRow':{'schema':[{'name':a231_0x12663e(0x117),'type':a231_0x12663e(0x13e)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a231_0x12663e(0x110),'email':a231_0x12663e(0x16d),'created_at':a231_0x12663e(0x140),'updated_at':'2024-01-15T00:00:00Z','administrator':![]},'admin':{'id':0x1,'name':a231_0x12663e(0x136),'email':'admin@example.com','created_at':a231_0x12663e(0x161),'updated_at':a231_0x12663e(0x116),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a231_0x12663e(0x146),'database':a231_0x12663e(0x153),'status':a231_0x12663e(0x157),'query':'SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','start_at':'2024-01-15T10:00:00Z','end_at':a231_0x12663e(0x14f),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a231_0x12663e(0x146),'database':a231_0x12663e(0x153),'status':a231_0x12663e(0x11d),'query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':'2024-01-15T10:05:00Z','end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':a231_0x12663e(0x153),'status':a231_0x12663e(0x106),'query':a231_0x12663e(0x12c),'start_at':a231_0x12663e(0x120),'end_at':a231_0x12663e(0x12d),'duration':0x1,'result_size':null,'error':a231_0x12663e(0x167)}},'workflow':{'basic':{'id':a231_0x12663e(0x14a),'name':a231_0x12663e(0x143),'project':'data_pipeline','revision':a231_0x12663e(0x13f),'timezone':a231_0x12663e(0x14e),'schedule':{'cron':a231_0x12663e(0x10c)}},'withSessions':{'id':a231_0x12663e(0x144),'name':a231_0x12663e(0x130),'project':a231_0x12663e(0x166),'revision':a231_0x12663e(0x156),'timezone':a231_0x12663e(0x16f),'schedule':{'cron':a231_0x12663e(0x160)},'last_session':{'id':a231_0x12663e(0x11c),'status':a231_0x12663e(0x157),'started_at':'2024-01-15T09:00:00Z','finished_at':a231_0x12663e(0x11f)}}},'apiError':{'unauthorized':{'errors':{'error':a231_0x12663e(0x10a),'message':a231_0x12663e(0x10a),'severity':a231_0x12663e(0x106),'status_code':0x191}},'notFound':{'errors':{'error':a231_0x12663e(0x14d),'message':a231_0x12663e(0x100),'severity':a231_0x12663e(0x106),'status_code':0x194}},'rateLimited':{'detail':a231_0x12663e(0x12b)},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':a231_0x12663e(0x128),'status':0x193,'detail':'You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','instance':a231_0x12663e(0x101)}}};export function createDatabase(_0x23e80d){const _0x750014=a231_0x12663e;return{...fixtures[_0x750014(0x15f)][_0x750014(0x13d)],..._0x23e80d};}export function createTable(_0x4f050d){const _0x1ac144=a231_0x12663e;return{...fixtures[_0x1ac144(0x10e)][_0x1ac144(0x13d)],..._0x4f050d};}export function createParentSegment(_0x1d6251){const _0x2da222=a231_0x12663e;return{...fixtures[_0x2da222(0x129)][_0x2da222(0x13d)],..._0x1d6251};}function a231_0x354b(_0x38879a,_0x32c2fe){_0x38879a=_0x38879a-0x100;const _0x15fe13=a231_0x15fe();let _0x354b87=_0x15fe13[_0x38879a];return _0x354b87;}export function createSegment(_0x4c1ae3){const _0x3a542d=a231_0x12663e;return{...fixtures['segment'][_0x3a542d(0x13d)],..._0x4c1ae3};}export function createJourney(_0x3e6ba6){return{...fixtures['journey']['basic'],..._0x3e6ba6};}export function createQueryResult(_0x3d7c83){const _0x115dc1=a231_0x12663e;return{...fixtures[_0x115dc1(0x13b)][_0x115dc1(0x13d)],..._0x3d7c83};}export function createUser(_0x392dfb){const _0x4161b8=a231_0x12663e;return{...fixtures[_0x4161b8(0x103)][_0x4161b8(0x13d)],..._0x392dfb};}function a231_0x15fe(){const _0x436824=['Alice','High\x20Value\x20Active\x20Users','2024-01-15T00:00:00Z','total','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','lifetime_value','Users\x20active\x20in\x20the\x20last\x2030\x20days','cdp_db','sess-111','running','84vSlTTs','2024-01-15T09:05:00Z','2024-01-15T10:10:00Z','user-2','Test\x20Parent\x20Segment','pageviews','full_access','cs-111222','2023-06-15T10:30:00Z','event_type','Forbidden','parentSegment','log','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','SELECT\x20*\x20FROM\x20nonexistent_table','2024-01-15T10:10:01Z','decision_point','step-2','hourly_sync','ps-789012','active','completed','job','Active\x20Users','Admin\x20User','act-email','created_at','Welcome\x20Journey','6FXmFnQ','queryResult','Bob','basic','bigint','abc123','2024-01-01T00:00:00Z','last_login','Onboarding\x20journey\x20for\x20new\x20users','daily_etl','wf-67890','map<string,string>','presto','stringify','administrator','490430VeLVqK','wf-12345','148OSMlri','varchar','Resource\x20not\x20found','UTC','2024-01-15T10:00:05Z','events','events_db','j-def456','test_db','user-3','3952752fBQNlD','def456','success','51915TEUvHH','draft','step-1','activation','long','end','3sARTaU','database','0\x20*\x20*\x20*\x20*','2023-01-01T00:00:00Z','purchases','Greater','Active\x20users\x20with\x20high\x20lifetime\x20value','Customers\x20with\x20Behaviors','data_sync','Table\x20does\x20not\x20exist:\x20nonexistent_table','j-abc123','attribute','2024-01-15T08:00:00Z','2487065kmnOEc','count','test@example.com','341893qXCxnJ','America/Los_Angeles','time','135mweFIo','name','The\x20requested\x20resource\x20does\x20not\x20exist','/v3/database/list','TimeWithinPast','user','cs-456789','customers','error','customer_id','string','1511477GtRGKa','Invalid\x20API\x20key','production_db','0\x200\x20*\x20*\x20*','848464sXTwLV','table','ps-123456','Test\x20User','user-1','30d','act-123'];a231_0x15fe=function(){return _0x436824;};return a231_0x15fe();}export function createJob(_0x1869bf){const _0x2bb4d2=a231_0x12663e;return{...fixtures[_0x2bb4d2(0x134)][_0x2bb4d2(0x133)],..._0x1869bf};}export function createWorkflow(_0x507aed){return{...fixtures['workflow']['basic'],..._0x507aed};}
@@ -1 +1 @@
1
- function a226_0x441f(){const _0x31e59b=['entries','matched','withQuery','20LSCyvP','Forbidden','td-api','join','1875096VZfpVA','Unknown','jsonResponse','pathname','parse','application/json','2509432qAEnOH','text/plain','includes','Request\x20body:\x20','matchCount','Bad\x20Gateway','every','rfc9457','870925mIgcdE','matcher','GET','100713GMffAt','fail','get','method','split','function','stack','unnamed\x20stub','description','register','Unmatched\x20stub','Unauthorized','\x20registered\x20at:\x0a','errorResponse','simple','No\x20stub\x20matched\x20request:\x20','312446hAzFaX','REST','parseRequest','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','withBody','responder','slice','getMatchCount','requests','createFetch','stubs','getRequests','searchParams','registerWithInspector','getStatusText','withHost','stringify','host','body','toLowerCase','textResponse','length','map','Bad\x20Request','test','getLastRequest','push','toUpperCase','437446gIHQDo','Internal\x20Server\x20Error','fetchMock','https://api.treasuredata.com/errors/','url','Not\x20Found','497973EXABvL','Registered\x20stubs:\x0a','headers','error'];a226_0x441f=function(){return _0x31e59b;};return a226_0x441f();}const a226_0x4235ce=a226_0x24dd;(function(_0x42ff05,_0x48f3ce){const _0x41f8bf=a226_0x24dd,_0x2e7fe7=_0x42ff05();while(!![]){try{const _0x17af97=parseInt(_0x41f8bf(0x131))/0x1+-parseInt(_0x41f8bf(0x14d))/0x2+-parseInt(_0x41f8bf(0x16f))/0x3*(-parseInt(_0x41f8bf(0x15a))/0x4)+-parseInt(_0x41f8bf(0x16c))/0x5+-parseInt(_0x41f8bf(0x15e))/0x6+parseInt(_0x41f8bf(0x153))/0x7+parseInt(_0x41f8bf(0x164))/0x8;if(_0x17af97===_0x48f3ce)break;else _0x2e7fe7['push'](_0x2e7fe7['shift']());}catch(_0x44f3a7){_0x2e7fe7['push'](_0x2e7fe7['shift']());}}}(a226_0x441f,0x26fcf));function a226_0x24dd(_0x21dbd8,_0x3cc408){_0x21dbd8=_0x21dbd8-0x125;const _0x441f8b=a226_0x441f();let _0x24dde=_0x441f8b[_0x21dbd8];return _0x24dde;}import{vi}from'vitest';export class HTTPMockRegistry{[a226_0x4235ce(0x13b)]=[];[a226_0x4235ce(0x139)]=[];[a226_0x4235ce(0x14f)]=null;[a226_0x4235ce(0x132)](_0x4fa7a8,_0x2c1915){return _0xf14002=>{const _0x20e87b=a226_0x24dd;if(_0xf14002[_0x20e87b(0x172)][_0x20e87b(0x14c)]()!==_0x4fa7a8[_0x20e87b(0x14c)]())return![];const _0xea6fcb=new URL(_0xf14002[_0x20e87b(0x151)]);if(typeof _0x2c1915==='string')return _0xea6fcb[_0x20e87b(0x161)]===_0x2c1915||_0xea6fcb[_0x20e87b(0x161)][_0x20e87b(0x166)](_0x2c1915);return _0x2c1915[_0x20e87b(0x149)](_0xea6fcb[_0x20e87b(0x161)]);};}[a226_0x4235ce(0x159)](_0x5ce93f,_0x2a9064){return _0x3dff4c=>{const _0x1bd350=a226_0x24dd;if(!_0x5ce93f(_0x3dff4c))return![];const _0x10a4dd=new URL(_0x3dff4c['url']);return Object[_0x1bd350(0x157)](_0x2a9064)[_0x1bd350(0x16a)](([_0x32f8a8,_0x39026d])=>_0x10a4dd[_0x1bd350(0x13d)][_0x1bd350(0x171)](_0x32f8a8)===_0x39026d);};}[a226_0x4235ce(0x135)](_0x3ce95a,_0x2eb7d3){return _0xbb8a5a=>{const _0x1c0c50=a226_0x24dd;if(!_0x3ce95a(_0xbb8a5a))return![];if(typeof _0x2eb7d3===_0x1c0c50(0x126))return _0x2eb7d3(_0xbb8a5a['body']);return JSON[_0x1c0c50(0x141)](_0xbb8a5a[_0x1c0c50(0x143)])===JSON[_0x1c0c50(0x141)](_0x2eb7d3);};}[a226_0x4235ce(0x140)](_0x373fbd,_0x169193){return _0x13469b=>{const _0x31ec64=a226_0x24dd;if(!_0x373fbd(_0x13469b))return![];const _0x5d8676=new URL(_0x13469b['url']);return _0x5d8676[_0x31ec64(0x142)]===_0x169193;};}['register'](_0x1139ba,_0x22f9fa,_0x17b4b5){const _0x12b4f1=a226_0x4235ce;this[_0x12b4f1(0x13b)][_0x12b4f1(0x14b)]({'matcher':_0x1139ba,'responder':_0x22f9fa,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x17b4b5?.[_0x12b4f1(0x129)]});}[a226_0x4235ce(0x13e)](_0x228b89,_0x5e5453,_0x37f01b){const _0x23775f=a226_0x4235ce,_0x1259c5=_0x492258=>{const _0x40e0a9=a226_0x24dd;return _0x37f01b(_0x492258[_0x40e0a9(0x143)],_0x492258),_0x5e5453(_0x492258);};this[_0x23775f(0x12a)](_0x228b89,_0x1259c5);}static[a226_0x4235ce(0x160)](_0x26d262,_0x42a883=0xc8){const _0x18c163=a226_0x4235ce;return()=>new Response(JSON[_0x18c163(0x141)](_0x26d262),{'status':_0x42a883,'headers':{'Content-Type':_0x18c163(0x163)}});}static[a226_0x4235ce(0x12e)](_0x49867a,_0x370845,_0x16f0af=a226_0x4235ce(0x12f)){return()=>{const _0x28fb0e=a226_0x24dd;let _0x27eb93;switch(_0x16f0af){case _0x28fb0e(0x15c):_0x27eb93={'errors':{'error':_0x370845,'message':_0x370845,'severity':_0x28fb0e(0x156),'status_code':_0x49867a}};break;case _0x28fb0e(0x16b):_0x27eb93={'type':_0x28fb0e(0x150)+_0x49867a,'title':HTTPMockRegistry[_0x28fb0e(0x13f)](_0x49867a),'status':_0x49867a,'detail':_0x370845};break;default:_0x27eb93={'error':_0x370845};}return new Response(JSON[_0x28fb0e(0x141)](_0x27eb93),{'status':_0x49867a,'headers':{'Content-Type':_0x28fb0e(0x163)}});};}static['jsonResponseWithHeaders'](_0x2e4b39,_0x1f9d83,_0x537fc6=0xc8){const _0x2e2958=a226_0x4235ce;return()=>new Response(JSON[_0x2e2958(0x141)](_0x2e4b39),{'status':_0x537fc6,'headers':{'Content-Type':_0x2e2958(0x163),..._0x1f9d83}});}static[a226_0x4235ce(0x145)](_0x377bc7,_0x50336e=0xc8){const _0x18fa3f=a226_0x4235ce;return()=>new Response(_0x377bc7,{'status':_0x50336e,'headers':{'Content-Type':_0x18fa3f(0x165)}});}static['networkError'](_0x4200da){return()=>{throw new Error(_0x4200da);};}[a226_0x4235ce(0x13a)](){const _0x2d8752=a226_0x4235ce;return this[_0x2d8752(0x14f)]=vi['fn']()['mockImplementation'](async(_0x1e8560,_0x4aa9bc)=>{const _0x349f5d=_0x2d8752,_0x548685=this[_0x349f5d(0x133)](_0x1e8560,_0x4aa9bc);this[_0x349f5d(0x139)][_0x349f5d(0x14b)](_0x548685);for(const _0x41c125 of this[_0x349f5d(0x13b)]){if(_0x41c125[_0x349f5d(0x16d)](_0x548685))return _0x41c125['matched']=!![],_0x41c125['matchCount']++,_0x41c125[_0x349f5d(0x136)](_0x548685);}const _0x58ffc9=this[_0x349f5d(0x13b)]['map']((_0x2cc48b,_0x39da4d)=>'\x20\x20'+(_0x39da4d+0x1)+'.\x20'+(_0x2cc48b['description']??_0x349f5d(0x128)))['join']('\x0a');throw new Error(_0x349f5d(0x130)+_0x548685[_0x349f5d(0x172)]+'\x20'+_0x548685[_0x349f5d(0x151)]+'\x0a'+(_0x349f5d(0x167)+JSON[_0x349f5d(0x141)](_0x548685[_0x349f5d(0x143)])+'\x0a')+(_0x349f5d(0x154)+(_0x58ffc9||'\x20\x20(none)')));}),this[_0x2d8752(0x14f)];}[a226_0x4235ce(0x133)](_0x858c68,_0x4775fc){const _0x4a6464=a226_0x4235ce,_0x563188={};if(_0x4775fc?.['headers']){if(_0x4775fc[_0x4a6464(0x155)]instanceof Headers)_0x4775fc[_0x4a6464(0x155)]['forEach']((_0x29b5cf,_0x3abea2)=>{const _0x54496f=_0x4a6464;_0x563188[_0x3abea2[_0x54496f(0x144)]()]=_0x29b5cf;});else{if(Array['isArray'](_0x4775fc[_0x4a6464(0x155)]))for(const [_0x213f44,_0xd8b374]of _0x4775fc[_0x4a6464(0x155)]){_0x563188[_0x213f44['toLowerCase']()]=_0xd8b374;}else for(const [_0x1cb96f,_0x540b42]of Object['entries'](_0x4775fc[_0x4a6464(0x155)])){_0x540b42!==undefined&&(_0x563188[_0x1cb96f[_0x4a6464(0x144)]()]=_0x540b42);}}}let _0x3a9168;if(_0x4775fc?.['body'])try{_0x3a9168=JSON[_0x4a6464(0x162)](_0x4775fc[_0x4a6464(0x143)]);}catch{_0x3a9168=_0x4775fc['body'];}return{'method':_0x4775fc?.[_0x4a6464(0x172)]??_0x4a6464(0x16e),'url':_0x858c68,'headers':_0x563188,'body':_0x3a9168};}['verify'](_0x4ffb14){const _0x43eaac=a226_0x4235ce,_0x5370cb=this[_0x43eaac(0x13b)]['filter'](_0x29849e=>!_0x29849e[_0x43eaac(0x158)]);if(_0x5370cb[_0x43eaac(0x146)]>0x0){const _0x55e549=_0x5370cb[_0x43eaac(0x147)](_0x472a57=>{const _0x713561=_0x43eaac,_0x4d7625=_0x472a57[_0x713561(0x129)]?'\x20('+_0x472a57[_0x713561(0x129)]+')':'',_0x2bf105=_0x472a57[_0x713561(0x127)][_0x713561(0x125)]('\x0a')[_0x713561(0x137)](0x2,0x5)[_0x713561(0x15d)]('\x0a');return _0x713561(0x12b)+_0x4d7625+_0x713561(0x12d)+_0x2bf105;});_0x4ffb14[_0x43eaac(0x170)](_0x5370cb[_0x43eaac(0x146)]+_0x43eaac(0x134)+_0x55e549['join']('\x0a\x0a'));}}[a226_0x4235ce(0x13c)](){const _0x496b18=a226_0x4235ce;return[...this[_0x496b18(0x139)]];}[a226_0x4235ce(0x14a)](){const _0x2f47da=a226_0x4235ce;return this['requests'][this[_0x2f47da(0x139)][_0x2f47da(0x146)]-0x1];}['wasCalled'](_0x1d2cf0,_0x1bcd72){const _0x5daa88=a226_0x4235ce;return this[_0x5daa88(0x139)]['some'](_0x130ecb=>{const _0x317275=_0x5daa88;if(_0x130ecb[_0x317275(0x172)]['toUpperCase']()!==_0x1d2cf0[_0x317275(0x14c)]())return![];if(typeof _0x1bcd72==='string')return _0x130ecb[_0x317275(0x151)]['includes'](_0x1bcd72);return _0x1bcd72[_0x317275(0x149)](_0x130ecb[_0x317275(0x151)]);});}[a226_0x4235ce(0x138)](_0x275c5a){const _0x39e089=a226_0x4235ce;return this['stubs'][_0x275c5a]?.[_0x39e089(0x168)]??0x0;}['reset'](){const _0x586bef=a226_0x4235ce;this[_0x586bef(0x13b)]=[],this[_0x586bef(0x139)]=[],this[_0x586bef(0x14f)]=null;}static['getStatusText'](_0x35e5fc){const _0x3c6e4f=a226_0x4235ce,_0x315b4b={0xc8:'OK',0xc9:'Created',0xcc:'No\x20Content',0x190:_0x3c6e4f(0x148),0x191:_0x3c6e4f(0x12c),0x193:_0x3c6e4f(0x15b),0x194:_0x3c6e4f(0x152),0x199:'Conflict',0x1a6:'Unprocessable\x20Entity',0x1ad:'Too\x20Many\x20Requests',0x1f4:_0x3c6e4f(0x14e),0x1f6:_0x3c6e4f(0x169),0x1f7:'Service\x20Unavailable'};return _0x315b4b[_0x35e5fc]??_0x3c6e4f(0x15f);}}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a232_0x2e5256=a232_0x2eea;(function(_0xd1987d,_0x20d3b0){const _0x48c093=a232_0x2eea,_0x1b50d6=_0xd1987d();while(!![]){try{const _0x339050=parseInt(_0x48c093(0x1bb))/0x1+-parseInt(_0x48c093(0x191))/0x2+-parseInt(_0x48c093(0x1c3))/0x3*(-parseInt(_0x48c093(0x1dc))/0x4)+-parseInt(_0x48c093(0x18e))/0x5*(-parseInt(_0x48c093(0x1d6))/0x6)+parseInt(_0x48c093(0x1cf))/0x7*(parseInt(_0x48c093(0x1e1))/0x8)+parseInt(_0x48c093(0x1ab))/0x9*(-parseInt(_0x48c093(0x1ba))/0xa)+parseInt(_0x48c093(0x1d4))/0xb;if(_0x339050===_0x20d3b0)break;else _0x1b50d6['push'](_0x1b50d6['shift']());}catch(_0x332e46){_0x1b50d6['push'](_0x1b50d6['shift']());}}}(a232_0x1250,0x1b84e));function a232_0x1250(){const _0x3b94f9=['withBody','toLowerCase','12SrdOyA','toUpperCase','getStatusText','responder','mockImplementation','16SHtUKD','register','60370PMmSAr','withQuery','jsonResponse','249976GwwOdB','Forbidden','\x20registered\x20at:\x0a','fetchMock','GET','split','pathname','host','Created','error','entries','getRequests','simple','matched','reset','rfc9457','Not\x20Found','string','url','description','No\x20stub\x20matched\x20request:\x20','Bad\x20Request','text/plain','Request\x20body:\x20','requests','stubs','18EDcxMg','some','push','No\x20Content','createFetch','isArray','length','every','join','application/json','https://api.treasuredata.com/errors/','errorResponse','wasCalled','Too\x20Many\x20Requests','get','846050NDqOiE','133961oudJHx','Internal\x20Server\x20Error','filter','body','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','test','parse','map','2067uUTdEt','jsonResponseWithHeaders','method','matchCount','networkError','getLastRequest','headers','REST','Unprocessable\x20Entity','matcher','forEach','Registered\x20stubs:\x0a','252581mwHWji','Unknown','getMatchCount','includes','registerWithInspector','326546lDevNh','withHost','84MKxEOK','stringify','function','Bad\x20Gateway'];a232_0x1250=function(){return _0x3b94f9;};return a232_0x1250();}function a232_0x2eea(_0x266218,_0xffc68c){_0x266218=_0x266218-0x18d;const _0x1250a6=a232_0x1250();let _0x2eea76=_0x1250a6[_0x266218];return _0x2eea76;}import{vi}from'vitest';export class HTTPMockRegistry{[a232_0x2e5256(0x1aa)]=[];[a232_0x2e5256(0x1a9)]=[];[a232_0x2e5256(0x194)]=null;[a232_0x2e5256(0x1ca)](_0x21bbca,_0x2272fa){return _0x47cecd=>{const _0x1ca611=a232_0x2eea;if(_0x47cecd[_0x1ca611(0x1c5)]['toUpperCase']()!==_0x21bbca[_0x1ca611(0x1dd)]())return![];const _0x59e6a2=new URL(_0x47cecd['url']);if(typeof _0x2272fa===_0x1ca611(0x1a2))return _0x59e6a2[_0x1ca611(0x197)]===_0x2272fa||_0x59e6a2[_0x1ca611(0x197)][_0x1ca611(0x1d2)](_0x2272fa);return _0x2272fa[_0x1ca611(0x1c0)](_0x59e6a2['pathname']);};}[a232_0x2e5256(0x18f)](_0x354631,_0x72c0fb){return _0x44114b=>{const _0x2f598d=a232_0x2eea;if(!_0x354631(_0x44114b))return![];const _0xd7fcef=new URL(_0x44114b[_0x2f598d(0x1a3)]);return Object[_0x2f598d(0x19b)](_0x72c0fb)[_0x2f598d(0x1b2)](([_0x3ac93e,_0x3e960a])=>_0xd7fcef['searchParams'][_0x2f598d(0x1b9)](_0x3ac93e)===_0x3e960a);};}[a232_0x2e5256(0x1da)](_0x2300a3,_0x27e324){return _0x231170=>{const _0x438a04=a232_0x2eea;if(!_0x2300a3(_0x231170))return![];if(typeof _0x27e324===_0x438a04(0x1d8))return _0x27e324(_0x231170[_0x438a04(0x1be)]);return JSON['stringify'](_0x231170[_0x438a04(0x1be)])===JSON[_0x438a04(0x1d7)](_0x27e324);};}[a232_0x2e5256(0x1d5)](_0x21e867,_0x4fccfd){return _0x419b49=>{const _0x215973=a232_0x2eea;if(!_0x21e867(_0x419b49))return![];const _0x22e41d=new URL(_0x419b49[_0x215973(0x1a3)]);return _0x22e41d[_0x215973(0x198)]===_0x4fccfd;};}[a232_0x2e5256(0x18d)](_0x116202,_0x2c94be,_0x21bea7){const _0x5316ac=a232_0x2e5256;this[_0x5316ac(0x1aa)][_0x5316ac(0x1ad)]({'matcher':_0x116202,'responder':_0x2c94be,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x21bea7?.['description']});}[a232_0x2e5256(0x1d3)](_0x3a3ddb,_0x27ccc7,_0x32974f){const _0x3c1023=a232_0x2e5256,_0x21dff6=_0x5f1bf3=>{const _0x2c151e=a232_0x2eea;return _0x32974f(_0x5f1bf3[_0x2c151e(0x1be)],_0x5f1bf3),_0x27ccc7(_0x5f1bf3);};this[_0x3c1023(0x18d)](_0x3a3ddb,_0x21dff6);}static[a232_0x2e5256(0x190)](_0x2a4996,_0x1baa7f=0xc8){const _0x41f52c=a232_0x2e5256;return()=>new Response(JSON['stringify'](_0x2a4996),{'status':_0x1baa7f,'headers':{'Content-Type':_0x41f52c(0x1b4)}});}static[a232_0x2e5256(0x1b6)](_0x1a0e6b,_0x4ad0a5,_0x1a2194=a232_0x2e5256(0x19d)){return()=>{const _0x2ae612=a232_0x2eea;let _0x1e302a;switch(_0x1a2194){case'td-api':_0x1e302a={'errors':{'error':_0x4ad0a5,'message':_0x4ad0a5,'severity':_0x2ae612(0x19a),'status_code':_0x1a0e6b}};break;case _0x2ae612(0x1a0):_0x1e302a={'type':_0x2ae612(0x1b5)+_0x1a0e6b,'title':HTTPMockRegistry[_0x2ae612(0x1de)](_0x1a0e6b),'status':_0x1a0e6b,'detail':_0x4ad0a5};break;default:_0x1e302a={'error':_0x4ad0a5};}return new Response(JSON[_0x2ae612(0x1d7)](_0x1e302a),{'status':_0x1a0e6b,'headers':{'Content-Type':_0x2ae612(0x1b4)}});};}static[a232_0x2e5256(0x1c4)](_0x52d48a,_0x533372,_0x3b8a81=0xc8){const _0x1f4f33=a232_0x2e5256;return()=>new Response(JSON['stringify'](_0x52d48a),{'status':_0x3b8a81,'headers':{'Content-Type':_0x1f4f33(0x1b4),..._0x533372}});}static['textResponse'](_0x4bb7b7,_0x454d0b=0xc8){const _0x316009=a232_0x2e5256;return()=>new Response(_0x4bb7b7,{'status':_0x454d0b,'headers':{'Content-Type':_0x316009(0x1a7)}});}static[a232_0x2e5256(0x1c7)](_0x193cea){return()=>{throw new Error(_0x193cea);};}[a232_0x2e5256(0x1af)](){const _0x50692f=a232_0x2e5256;return this[_0x50692f(0x194)]=vi['fn']()[_0x50692f(0x1e0)](async(_0x5d950a,_0x299df9)=>{const _0x1c6e1a=_0x50692f,_0x99a0df=this['parseRequest'](_0x5d950a,_0x299df9);this[_0x1c6e1a(0x1a9)][_0x1c6e1a(0x1ad)](_0x99a0df);for(const _0x4ddb7e of this[_0x1c6e1a(0x1aa)]){if(_0x4ddb7e[_0x1c6e1a(0x1cc)](_0x99a0df))return _0x4ddb7e['matched']=!![],_0x4ddb7e['matchCount']++,_0x4ddb7e[_0x1c6e1a(0x1df)](_0x99a0df);}const _0x561d70=this[_0x1c6e1a(0x1aa)][_0x1c6e1a(0x1c2)]((_0x30890d,_0x462f87)=>'\x20\x20'+(_0x462f87+0x1)+'.\x20'+(_0x30890d['description']??'unnamed\x20stub'))[_0x1c6e1a(0x1b3)]('\x0a');throw new Error(_0x1c6e1a(0x1a5)+_0x99a0df[_0x1c6e1a(0x1c5)]+'\x20'+_0x99a0df[_0x1c6e1a(0x1a3)]+'\x0a'+(_0x1c6e1a(0x1a8)+JSON[_0x1c6e1a(0x1d7)](_0x99a0df[_0x1c6e1a(0x1be)])+'\x0a')+(_0x1c6e1a(0x1ce)+(_0x561d70||'\x20\x20(none)')));}),this[_0x50692f(0x194)];}['parseRequest'](_0x25e733,_0x220519){const _0x180bf5=a232_0x2e5256,_0x452d9e={};if(_0x220519?.[_0x180bf5(0x1c9)]){if(_0x220519[_0x180bf5(0x1c9)]instanceof Headers)_0x220519[_0x180bf5(0x1c9)][_0x180bf5(0x1cd)]((_0x4cf5e0,_0xc6718b)=>{const _0x32d370=_0x180bf5;_0x452d9e[_0xc6718b[_0x32d370(0x1db)]()]=_0x4cf5e0;});else{if(Array[_0x180bf5(0x1b0)](_0x220519[_0x180bf5(0x1c9)]))for(const [_0x1baef4,_0x38abd8]of _0x220519[_0x180bf5(0x1c9)]){_0x452d9e[_0x1baef4['toLowerCase']()]=_0x38abd8;}else for(const [_0x144f65,_0x394bda]of Object['entries'](_0x220519[_0x180bf5(0x1c9)])){_0x394bda!==undefined&&(_0x452d9e[_0x144f65[_0x180bf5(0x1db)]()]=_0x394bda);}}}let _0x50f5e4;if(_0x220519?.[_0x180bf5(0x1be)])try{_0x50f5e4=JSON[_0x180bf5(0x1c1)](_0x220519[_0x180bf5(0x1be)]);}catch{_0x50f5e4=_0x220519[_0x180bf5(0x1be)];}return{'method':_0x220519?.[_0x180bf5(0x1c5)]??_0x180bf5(0x195),'url':_0x25e733,'headers':_0x452d9e,'body':_0x50f5e4};}['verify'](_0x213744){const _0xf99a84=a232_0x2e5256,_0x7eb785=this['stubs'][_0xf99a84(0x1bd)](_0x498031=>!_0x498031[_0xf99a84(0x19e)]);if(_0x7eb785[_0xf99a84(0x1b1)]>0x0){const _0x4f03ef=_0x7eb785[_0xf99a84(0x1c2)](_0x384d99=>{const _0x37b60b=_0xf99a84,_0x51677b=_0x384d99[_0x37b60b(0x1a4)]?'\x20('+_0x384d99['description']+')':'',_0x3ac882=_0x384d99['stack'][_0x37b60b(0x196)]('\x0a')['slice'](0x2,0x5)[_0x37b60b(0x1b3)]('\x0a');return'Unmatched\x20stub'+_0x51677b+_0x37b60b(0x193)+_0x3ac882;});_0x213744['fail'](_0x7eb785[_0xf99a84(0x1b1)]+_0xf99a84(0x1bf)+_0x4f03ef['join']('\x0a\x0a'));}}[a232_0x2e5256(0x19c)](){const _0x1dd922=a232_0x2e5256;return[...this[_0x1dd922(0x1a9)]];}[a232_0x2e5256(0x1c8)](){const _0x25c74a=a232_0x2e5256;return this[_0x25c74a(0x1a9)][this[_0x25c74a(0x1a9)][_0x25c74a(0x1b1)]-0x1];}[a232_0x2e5256(0x1b7)](_0x31db09,_0x3a25ef){const _0x419f3f=a232_0x2e5256;return this[_0x419f3f(0x1a9)][_0x419f3f(0x1ac)](_0x4b46be=>{const _0x2be381=_0x419f3f;if(_0x4b46be[_0x2be381(0x1c5)]['toUpperCase']()!==_0x31db09['toUpperCase']())return![];if(typeof _0x3a25ef===_0x2be381(0x1a2))return _0x4b46be['url']['includes'](_0x3a25ef);return _0x3a25ef['test'](_0x4b46be['url']);});}[a232_0x2e5256(0x1d1)](_0x4a5439){const _0x1dd9e2=a232_0x2e5256;return this['stubs'][_0x4a5439]?.[_0x1dd9e2(0x1c6)]??0x0;}[a232_0x2e5256(0x19f)](){const _0x15f48b=a232_0x2e5256;this[_0x15f48b(0x1aa)]=[],this[_0x15f48b(0x1a9)]=[],this[_0x15f48b(0x194)]=null;}static[a232_0x2e5256(0x1de)](_0x47e0d6){const _0x26e0fa=a232_0x2e5256,_0x526349={0xc8:'OK',0xc9:_0x26e0fa(0x199),0xcc:_0x26e0fa(0x1ae),0x190:_0x26e0fa(0x1a6),0x191:'Unauthorized',0x193:_0x26e0fa(0x192),0x194:_0x26e0fa(0x1a1),0x199:'Conflict',0x1a6:_0x26e0fa(0x1cb),0x1ad:_0x26e0fa(0x1b8),0x1f4:_0x26e0fa(0x1bc),0x1f6:_0x26e0fa(0x1d9),0x1f7:'Service\x20Unavailable'};return _0x526349[_0x47e0d6]??_0x26e0fa(0x1d0);}}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- (function(_0x4937ca,_0x1a5895){var _0x953cb0=a227_0x4c1a,_0x2cedfb=_0x4937ca();while(!![]){try{var _0x35aa77=-parseInt(_0x953cb0(0x12a))/0x1+-parseInt(_0x953cb0(0x129))/0x2+-parseInt(_0x953cb0(0x128))/0x3+-parseInt(_0x953cb0(0x125))/0x4*(-parseInt(_0x953cb0(0x127))/0x5)+parseInt(_0x953cb0(0x12b))/0x6+parseInt(_0x953cb0(0x124))/0x7*(parseInt(_0x953cb0(0x123))/0x8)+-parseInt(_0x953cb0(0x126))/0x9;if(_0x35aa77===_0x1a5895)break;else _0x2cedfb['push'](_0x2cedfb['shift']());}catch(_0x8dd736){_0x2cedfb['push'](_0x2cedfb['shift']());}}}(a227_0xff39,0xc876d));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole,writeTestProfile}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';function a227_0x4c1a(_0x21be9f,_0x5e0184){_0x21be9f=_0x21be9f-0x123;var _0xff39=a227_0xff39();var _0x4c1a1b=_0xff39[_0x21be9f];return _0x4c1a1b;}function a227_0xff39(){var _0x1c5063=['1876911bTNzqh','38016ysVeox','69428xODBZl','9213150iZAWhT','85016mQCRvW','987gCzHPH','339744VVBnly','16546518eEBGCb','20XekDGp'];a227_0xff39=function(){return _0x1c5063;};return a227_0xff39();}export{CommandRunner,createCommandRunner}from'./command-runner.js';
1
+ (function(_0x5df374,_0x18f817){var _0x42c3b0=a233_0x2b59,_0xa5cbb0=_0x5df374();while(!![]){try{var _0x5e175f=parseInt(_0x42c3b0(0x1b1))/0x1+-parseInt(_0x42c3b0(0x1a9))/0x2+-parseInt(_0x42c3b0(0x1af))/0x3*(-parseInt(_0x42c3b0(0x1ad))/0x4)+parseInt(_0x42c3b0(0x1ac))/0x5*(parseInt(_0x42c3b0(0x1ab))/0x6)+-parseInt(_0x42c3b0(0x1aa))/0x7*(-parseInt(_0x42c3b0(0x1b3))/0x8)+parseInt(_0x42c3b0(0x1b0))/0x9+-parseInt(_0x42c3b0(0x1b2))/0xa*(parseInt(_0x42c3b0(0x1ae))/0xb);if(_0x5e175f===_0x18f817)break;else _0xa5cbb0['push'](_0xa5cbb0['shift']());}catch(_0x2e2d9c){_0xa5cbb0['push'](_0xa5cbb0['shift']());}}}(a233_0xee8a,0x8a5d3));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a233_0x2b59(_0x414e66,_0xda6092){_0x414e66=_0x414e66-0x1a9;var _0xee8ad4=a233_0xee8a();var _0x2b5921=_0xee8ad4[_0x414e66];return _0x2b5921;}function a233_0xee8a(){var _0x1dfc5a=['148562QvcgGC','411754tJydQY','1155318YeWavH','20iwhDMC','4401832BMsdwE','146641iVsvTz','3nqIuIQ','1662822vVRtEs','796882UuBDjU','2100UISrgh','80CEVPed'];a233_0xee8a=function(){return _0x1dfc5a;};return a233_0xee8a();}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole,writeTestProfile}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- (function(_0x550beb,_0x3ad9fb){const _0x200c14=a228_0x473a,_0x332271=_0x550beb();while(!![]){try{const _0x1f5ea5=-parseInt(_0x200c14(0x132))/0x1+parseInt(_0x200c14(0x135))/0x2+-parseInt(_0x200c14(0x137))/0x3*(parseInt(_0x200c14(0x138))/0x4)+-parseInt(_0x200c14(0x139))/0x5*(parseInt(_0x200c14(0x13a))/0x6)+-parseInt(_0x200c14(0x136))/0x7+-parseInt(_0x200c14(0x130))/0x8+parseInt(_0x200c14(0x133))/0x9;if(_0x1f5ea5===_0x3ad9fb)break;else _0x332271['push'](_0x332271['shift']());}catch(_0x174c00){_0x332271['push'](_0x332271['shift']());}}}(a228_0x5d05,0x8c7f5));function a228_0x473a(_0x102a0d,_0x31e228){_0x102a0d=_0x102a0d-0x12f;const _0x5d054d=a228_0x5d05();let _0x473ae5=_0x5d054d[_0x102a0d];return _0x473ae5;}function a228_0x5d05(){const _0x3584d5=['1918106IpFZwf','3463110spmtCi','1217820AkrqHL','8ymtLNo','1310745zmBkDP','6kmIPik','map','push','5746960BAWxWX','length','536034KjNWPy','21956283BqHycu','slice'];a228_0x5d05=function(){return _0x3584d5;};return a228_0x5d05();}export async function batchAsync(_0x231631,_0x5673d0,_0x2598b8=0xa){const _0x57ac0b=a228_0x473a,_0x39ce3b=[];for(let _0x414d19=0x0;_0x414d19<_0x231631[_0x57ac0b(0x131)];_0x414d19+=_0x2598b8){const _0x1bca43=_0x231631[_0x57ac0b(0x134)](_0x414d19,_0x414d19+_0x2598b8),_0x2e9dae=await Promise['all'](_0x1bca43[_0x57ac0b(0x13b)](_0x5673d0));_0x39ce3b[_0x57ac0b(0x12f)](..._0x2e9dae);}return _0x39ce3b;}
1
+ (function(_0x2bed97,_0x47b21e){const _0x1d405b=a234_0x1a98,_0x580578=_0x2bed97();while(!![]){try{const _0xa66d60=-parseInt(_0x1d405b(0x125))/0x1+-parseInt(_0x1d405b(0x12a))/0x2+parseInt(_0x1d405b(0x121))/0x3*(parseInt(_0x1d405b(0x122))/0x4)+parseInt(_0x1d405b(0x128))/0x5+-parseInt(_0x1d405b(0x126))/0x6*(-parseInt(_0x1d405b(0x12b))/0x7)+parseInt(_0x1d405b(0x129))/0x8+parseInt(_0x1d405b(0x127))/0x9;if(_0xa66d60===_0x47b21e)break;else _0x580578['push'](_0x580578['shift']());}catch(_0x3a718b){_0x580578['push'](_0x580578['shift']());}}}(a234_0x5690,0xbfea4));export async function batchAsync(_0x3bb98e,_0x31ea4d,_0x1272e3=0xa){const _0x1b667b=a234_0x1a98,_0x256829=[];for(let _0x5f3a8f=0x0;_0x5f3a8f<_0x3bb98e[_0x1b667b(0x124)];_0x5f3a8f+=_0x1272e3){const _0x2bcf11=_0x3bb98e['slice'](_0x5f3a8f,_0x5f3a8f+_0x1272e3),_0x49d743=await Promise[_0x1b667b(0x12c)](_0x2bcf11[_0x1b667b(0x123)](_0x31ea4d));_0x256829['push'](..._0x49d743);}return _0x256829;}function a234_0x1a98(_0x4befde,_0x4574b9){_0x4befde=_0x4befde-0x121;const _0x5690fd=a234_0x5690();let _0x1a9838=_0x5690fd[_0x4befde];return _0x1a9838;}function a234_0x5690(){const _0x388f45=['630819qyusTY','146210zDiWJg','11463728IrlXjA','1800344jDLfoe','9527FOCdEh','all','1362081TmpagV','8mfCqAB','map','length','1555726yDiZDT','3534HaXDzF'];a234_0x5690=function(){return _0x388f45;};return a234_0x5690();}
@@ -1 +1 @@
1
- (function(_0x55f894,_0xfa94d3){const _0x5ee40b=a229_0x44e3,_0x3f2070=_0x55f894();while(!![]){try{const _0xe5d94f=parseInt(_0x5ee40b(0x19b))/0x1*(parseInt(_0x5ee40b(0x187))/0x2)+parseInt(_0x5ee40b(0x19d))/0x3+-parseInt(_0x5ee40b(0x195))/0x4+parseInt(_0x5ee40b(0x18f))/0x5+parseInt(_0x5ee40b(0x1a0))/0x6+parseInt(_0x5ee40b(0x19c))/0x7*(parseInt(_0x5ee40b(0x194))/0x8)+-parseInt(_0x5ee40b(0x198))/0x9;if(_0xe5d94f===_0xfa94d3)break;else _0x3f2070['push'](_0x3f2070['shift']());}catch(_0x22eb5c){_0x3f2070['push'](_0x3f2070['shift']());}}}(a229_0x2bc5,0xdd617));import{existsSync,readFileSync}from'node:fs';function a229_0x44e3(_0x1c4d77,_0x2966de){_0x1c4d77=_0x1c4d77-0x185;const _0x2bc58b=a229_0x2bc5();let _0x44e3c4=_0x2bc58b[_0x1c4d77];return _0x44e3c4;}import{homedir}from'node:os';import{join}from'node:path';export function getClaudeConfigDir(){const _0x32beca=a229_0x44e3;return process.env.CLAUDE_CONFIG_DIR||join(homedir(),_0x32beca(0x18c));}function getClaudeJsonPath(){const _0x4747bc=a229_0x44e3,_0x562005=getClaudeConfigDir(),_0x253bc5=join(_0x562005,'.claude.json');return existsSync(_0x253bc5)?_0x253bc5:_0x562005+_0x4747bc(0x18d);}function readJsonFile(_0x137265){const _0x395420=a229_0x44e3;if(!existsSync(_0x137265))return undefined;try{return JSON[_0x395420(0x192)](readFileSync(_0x137265,_0x395420(0x19f)));}catch{return undefined;}}function asRecord(_0x2fe8e2){const _0x1ce484=a229_0x44e3;return typeof _0x2fe8e2===_0x1ce484(0x185)&&_0x2fe8e2!==null&&!Array[_0x1ce484(0x19a)](_0x2fe8e2)?_0x2fe8e2:undefined;}function a229_0x2bc5(){const _0x1f7396=['isArray','155773tGqJsK','91PcdLIz','4797372IghjVp','toLowerCase','utf-8','4482624tBGAOI','object','projects','8hNIFHG','.mcp.json','https://github.com/','mcpServers','installed_plugins.json','.claude','.json','trim','2123510zaXxCq','source','url','parse','repo','418136YpfgOZ','478052bKdGOk','replace','plugins','27424845FVjtVh','string'];a229_0x2bc5=function(){return _0x1f7396;};return a229_0x2bc5();}function mcpServerUrl(_0x5144cd,_0x484340){const _0x272c43=a229_0x44e3,_0x3fe985=asRecord(asRecord(_0x5144cd)?.[_0x484340]);return typeof _0x3fe985?.[_0x272c43(0x191)]===_0x272c43(0x199)?_0x3fe985['url']:undefined;}export function findMcpServerUrl(_0x33200f,_0x5a8786){const _0x220e63=a229_0x44e3,_0x519ec5=asRecord(readJsonFile(getClaudeJsonPath())),_0xf126d1=asRecord(asRecord(_0x519ec5?.[_0x220e63(0x186)])?.[_0x5a8786]),_0x13f98f=mcpServerUrl(_0xf126d1?.[_0x220e63(0x18a)],_0x33200f);if(_0x13f98f)return _0x13f98f;const _0x2ce3ff=mcpServerUrl(_0x519ec5?.[_0x220e63(0x18a)],_0x33200f);if(_0x2ce3ff)return _0x2ce3ff;return mcpServerUrl(asRecord(readJsonFile(join(_0x5a8786,_0x220e63(0x188))))?.[_0x220e63(0x18a)],_0x33200f);}export function normalizeRepoUrl(_0x767bc8){const _0x3f7c8c=a229_0x44e3;return _0x767bc8[_0x3f7c8c(0x18e)]()[_0x3f7c8c(0x19e)]()[_0x3f7c8c(0x196)](/\.git$/,'')[_0x3f7c8c(0x196)](/\/+$/,'');}export function readMarketplaceSourceUrl(_0x34aebf){const _0x384ca0=a229_0x44e3,_0x27ef1a=join(getClaudeConfigDir(),_0x384ca0(0x197),'known_marketplaces.json'),_0x406fec=asRecord(asRecord(readJsonFile(_0x27ef1a))?.[_0x34aebf])?.[_0x384ca0(0x190)],_0x49b362=asRecord(_0x406fec);if(!_0x49b362)return undefined;if(typeof _0x49b362['url']==='string')return normalizeRepoUrl(_0x49b362[_0x384ca0(0x191)]);if(typeof _0x49b362[_0x384ca0(0x193)]===_0x384ca0(0x199))return normalizeRepoUrl(_0x384ca0(0x189)+_0x49b362[_0x384ca0(0x193)]);return undefined;}export function isPluginInstalled(_0x3f937b,_0x50555a){const _0x5a6e49=a229_0x44e3,_0x3b52e3=join(getClaudeConfigDir(),_0x5a6e49(0x197),_0x5a6e49(0x18b)),_0x23a7d4=readJsonFile(_0x3b52e3),_0x207907=_0x23a7d4?.[_0x5a6e49(0x197)]?.[_0x3f937b+'@'+_0x50555a];return Array[_0x5a6e49(0x19a)](_0x207907)&&_0x207907['length']>0x0;}
1
+ (function(_0x2cbd14,_0x53005b){const _0x144081=a235_0x1d7a,_0x3de9dd=_0x2cbd14();while(!![]){try{const _0x399a88=parseInt(_0x144081(0xc9))/0x1+-parseInt(_0x144081(0xc5))/0x2+-parseInt(_0x144081(0xb6))/0x3+parseInt(_0x144081(0xb7))/0x4+-parseInt(_0x144081(0xbc))/0x5+-parseInt(_0x144081(0xba))/0x6+parseInt(_0x144081(0xbf))/0x7;if(_0x399a88===_0x53005b)break;else _0x3de9dd['push'](_0x3de9dd['shift']());}catch(_0x427171){_0x3de9dd['push'](_0x3de9dd['shift']());}}}(a235_0x92e0,0x605df));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export function getClaudeConfigDir(){const _0x1bbf10=a235_0x1d7a;return process.env.CLAUDE_CONFIG_DIR||join(homedir(),_0x1bbf10(0xb9));}function getClaudeJsonPath(){const _0x363be6=a235_0x1d7a,_0x3e5626=getClaudeConfigDir(),_0x4565e4=join(_0x3e5626,'.claude.json');return existsSync(_0x4565e4)?_0x4565e4:_0x3e5626+_0x363be6(0xc2);}function a235_0x92e0(){const _0x1f4ed9=['projects','3321975jQBCzH','trim','mcpServers','7454573iMUkUn','string','plugins','.json','.mcp.json','source','106400TDOwIL','replace','known_marketplaces.json','isArray','389054PHVAEn','repo','object','url','installed_plugins.json','https://github.com/','1713471IDZYQT','2648632HTohBq','length','.claude','2596080zkpWzZ'];a235_0x92e0=function(){return _0x1f4ed9;};return a235_0x92e0();}function a235_0x1d7a(_0x32535c,_0x24c58a){_0x32535c=_0x32535c-0xb3;const _0x92e0e4=a235_0x92e0();let _0x1d7a47=_0x92e0e4[_0x32535c];return _0x1d7a47;}function readJsonFile(_0x519573){if(!existsSync(_0x519573))return undefined;try{return JSON['parse'](readFileSync(_0x519573,'utf-8'));}catch{return undefined;}}function asRecord(_0x3dea36){const _0x8cbac4=a235_0x1d7a;return typeof _0x3dea36===_0x8cbac4(0xcb)&&_0x3dea36!==null&&!Array[_0x8cbac4(0xc8)](_0x3dea36)?_0x3dea36:undefined;}function mcpServerUrl(_0x34539e,_0x455171){const _0x2fb53b=a235_0x1d7a,_0x529acc=asRecord(asRecord(_0x34539e)?.[_0x455171]);return typeof _0x529acc?.[_0x2fb53b(0xb3)]===_0x2fb53b(0xc0)?_0x529acc[_0x2fb53b(0xb3)]:undefined;}export function findMcpServerUrl(_0x4d73e2,_0x284317){const _0x3e67bd=a235_0x1d7a,_0x570a13=asRecord(readJsonFile(getClaudeJsonPath())),_0x28fc43=asRecord(asRecord(_0x570a13?.[_0x3e67bd(0xbb)])?.[_0x284317]),_0x3e9ca7=mcpServerUrl(_0x28fc43?.['mcpServers'],_0x4d73e2);if(_0x3e9ca7)return _0x3e9ca7;const _0x45a486=mcpServerUrl(_0x570a13?.[_0x3e67bd(0xbe)],_0x4d73e2);if(_0x45a486)return _0x45a486;return mcpServerUrl(asRecord(readJsonFile(join(_0x284317,_0x3e67bd(0xc3))))?.[_0x3e67bd(0xbe)],_0x4d73e2);}export function normalizeRepoUrl(_0x447b5a){const _0x3e18b5=a235_0x1d7a;return _0x447b5a[_0x3e18b5(0xbd)]()['toLowerCase']()[_0x3e18b5(0xc6)](/\.git$/,'')[_0x3e18b5(0xc6)](/\/+$/,'');}export function readMarketplaceSourceUrl(_0x3076d7){const _0x25faa6=a235_0x1d7a,_0x5dc371=join(getClaudeConfigDir(),'plugins',_0x25faa6(0xc7)),_0x18c3da=asRecord(asRecord(readJsonFile(_0x5dc371))?.[_0x3076d7])?.[_0x25faa6(0xc4)],_0x50620f=asRecord(_0x18c3da);if(!_0x50620f)return undefined;if(typeof _0x50620f['url']===_0x25faa6(0xc0))return normalizeRepoUrl(_0x50620f[_0x25faa6(0xb3)]);if(typeof _0x50620f[_0x25faa6(0xca)]===_0x25faa6(0xc0))return normalizeRepoUrl(_0x25faa6(0xb5)+_0x50620f[_0x25faa6(0xca)]);return undefined;}export function isPluginInstalled(_0x4c2822,_0x12c7b3){const _0x8c7fce=a235_0x1d7a,_0x36be4b=join(getClaudeConfigDir(),_0x8c7fce(0xc1),_0x8c7fce(0xb4)),_0x4c920b=readJsonFile(_0x36be4b),_0x2a67dd=_0x4c920b?.['plugins']?.[_0x4c2822+'@'+_0x12c7b3];return Array['isArray'](_0x2a67dd)&&_0x2a67dd[_0x8c7fce(0xb8)]>0x0;}
@@ -1 +1 @@
1
- (function(_0x5365ba,_0x31f5b8){const _0x4512ef=a230_0x2300,_0x202810=_0x5365ba();while(!![]){try{const _0x581a2a=-parseInt(_0x4512ef(0x14f))/0x1*(parseInt(_0x4512ef(0x15b))/0x2)+parseInt(_0x4512ef(0x152))/0x3*(-parseInt(_0x4512ef(0x155))/0x4)+parseInt(_0x4512ef(0x157))/0x5*(-parseInt(_0x4512ef(0x160))/0x6)+-parseInt(_0x4512ef(0x154))/0x7+parseInt(_0x4512ef(0x151))/0x8*(parseInt(_0x4512ef(0x15d))/0x9)+-parseInt(_0x4512ef(0x167))/0xa+parseInt(_0x4512ef(0x156))/0xb;if(_0x581a2a===_0x31f5b8)break;else _0x202810['push'](_0x202810['shift']());}catch(_0x3b0c40){_0x202810['push'](_0x202810['shift']());}}}(a230_0x390f,0x6dd1f));import*as a230_0x372508 from'chalk';const Chalk=a230_0x372508['Chalk'];export function shouldUseColor(_0x5ec779={}){const _0x2c39e5=a230_0x2300;if(_0x5ec779[_0x2c39e5(0x166)]===!![])return![];if(_0x5ec779[_0x2c39e5(0x14d)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x2c39e5(0x162)][_0x2c39e5(0x153)]??![];}export function getChalk(_0x5c1fe2={}){if(shouldUseColor(_0x5c1fe2))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x9717a8,_0x46ec48={}){const _0x501ef7=a230_0x2300;return getChalk(_0x46ec48)[_0x501ef7(0x164)](_0x9717a8);}export function colorHeader(_0x58c2c2,_0x5ae299={}){return getChalk(_0x5ae299)['cyan'](_0x58c2c2);}export function colorType(_0x9dde26,_0x193d30={}){const _0x2dce80=a230_0x2300;return getChalk(_0x193d30)[_0x2dce80(0x164)](_0x9dde26);}export function colorJSONKey(_0x17feb1,_0x203038={}){return getChalk(_0x203038)['blue'](_0x17feb1);}function a230_0x390f(){const _0x3978a9=['9Kwivyw','cyan','map','6kECFyI','repeat','stdout','green','dim','yellow','noColor','6454500aozzXX','null','object','isArray','color','join','149eovPzC','string','2498360HDvktU','6JWccZC','isTTY','5642966rSdSCJ','795364lhUFhH','23747812xxQorl','71515HlmdUN','length','entries','number','2118GgOlQH','stringify'];a230_0x390f=function(){return _0x3978a9;};return a230_0x390f();}export function colorJSONString(_0x1eefa3,_0x28465d={}){const _0x5462fa=a230_0x2300;return getChalk(_0x28465d)[_0x5462fa(0x163)](_0x1eefa3);}export function colorJSONNumber(_0x13fc03,_0x564c5a={}){const _0x57171f=a230_0x2300;return getChalk(_0x564c5a)[_0x57171f(0x15e)](_0x13fc03);}export function colorJSONBoolean(_0x4a77ad,_0x26193c={}){const _0x4f6844=a230_0x2300;return getChalk(_0x26193c)[_0x4f6844(0x165)](_0x4a77ad);}export function colorJSONNull(_0x4bcdc3,_0x404542={}){return getChalk(_0x404542)['dim'](_0x4bcdc3);}function a230_0x2300(_0x20d989,_0x23754f){_0x20d989=_0x20d989-0x14a;const _0x390f9c=a230_0x390f();let _0x23001b=_0x390f9c[_0x20d989];return _0x23001b;}export function colorizeJSONCompact(_0x4f4ca6,_0x33594d={}){const _0x53a075=a230_0x2300;if(!shouldUseColor(_0x33594d))return JSON['stringify'](_0x4f4ca6);if(_0x4f4ca6===null)return colorJSONNull(_0x53a075(0x14a),_0x33594d);if(typeof _0x4f4ca6==='boolean')return colorJSONBoolean(String(_0x4f4ca6),_0x33594d);if(typeof _0x4f4ca6===_0x53a075(0x15a))return colorJSONNumber(String(_0x4f4ca6),_0x33594d);if(typeof _0x4f4ca6===_0x53a075(0x150))return colorJSONString(JSON[_0x53a075(0x15c)](_0x4f4ca6),_0x33594d);if(Array[_0x53a075(0x14c)](_0x4f4ca6)){if(_0x4f4ca6[_0x53a075(0x158)]===0x0)return'[]';const _0x1abbd2=_0x4f4ca6[_0x53a075(0x15f)](_0x252fc5=>colorizeJSONCompact(_0x252fc5,_0x33594d));return'['+_0x1abbd2[_0x53a075(0x14e)](',')+']';}if(typeof _0x4f4ca6===_0x53a075(0x14b)){const _0x1d804e=Object['entries'](_0x4f4ca6);if(_0x1d804e[_0x53a075(0x158)]===0x0)return'{}';const _0x401631=_0x1d804e[_0x53a075(0x15f)](([_0x40b05a,_0x49a6e5])=>{const _0x63b615=_0x53a075,_0x625dc1=colorJSONKey(JSON[_0x63b615(0x15c)](_0x40b05a),_0x33594d),_0x4dbd9e=colorizeJSONCompact(_0x49a6e5,_0x33594d);return _0x625dc1+':'+_0x4dbd9e;});return'{'+_0x401631[_0x53a075(0x14e)](',')+'}';}return String(_0x4f4ca6);}export function colorizeJSON(_0x3dec0a,_0xb2ac63={},_0x577d61=0x0){const _0x4a80df=a230_0x2300;if(!shouldUseColor(_0xb2ac63))return JSON[_0x4a80df(0x15c)](_0x3dec0a,null,0x2);const _0x116c24='\x20'[_0x4a80df(0x161)](_0x577d61),_0xcab960=_0x577d61+0x2;if(_0x3dec0a===null)return colorJSONNull('null',_0xb2ac63);if(typeof _0x3dec0a==='boolean')return colorJSONBoolean(String(_0x3dec0a),_0xb2ac63);if(typeof _0x3dec0a===_0x4a80df(0x15a))return colorJSONNumber(String(_0x3dec0a),_0xb2ac63);if(typeof _0x3dec0a===_0x4a80df(0x150))return colorJSONString(JSON[_0x4a80df(0x15c)](_0x3dec0a),_0xb2ac63);if(Array[_0x4a80df(0x14c)](_0x3dec0a)){if(_0x3dec0a[_0x4a80df(0x158)]===0x0)return'[]';const _0x194f34=_0x3dec0a[_0x4a80df(0x15f)](_0x182a53=>{const _0x552ec1=_0x4a80df,_0xb6a246=colorizeJSON(_0x182a53,_0xb2ac63,_0xcab960);return''+'\x20'[_0x552ec1(0x161)](_0xcab960)+_0xb6a246;});return'[\x0a'+_0x194f34[_0x4a80df(0x14e)](',\x0a')+('\x0a'+_0x116c24+']');}if(typeof _0x3dec0a===_0x4a80df(0x14b)){const _0x4770af=Object[_0x4a80df(0x159)](_0x3dec0a);if(_0x4770af[_0x4a80df(0x158)]===0x0)return'{}';const _0x1907b7=_0x4770af['map'](([_0xdfb3bf,_0x4a918c])=>{const _0x342e38=colorJSONKey(JSON['stringify'](_0xdfb3bf),_0xb2ac63),_0x5cb1b5=colorizeJSON(_0x4a918c,_0xb2ac63,_0xcab960);return''+'\x20'['repeat'](_0xcab960)+_0x342e38+':\x20'+_0x5cb1b5;});return'{\x0a'+_0x1907b7[_0x4a80df(0x14e)](',\x0a')+('\x0a'+_0x116c24+'}');}return String(_0x3dec0a);}
1
+ const a236_0x4628ba=a236_0x342d;function a236_0x342d(_0x1e9468,_0x3d0526){_0x1e9468=_0x1e9468-0x85;const _0xdcbe82=a236_0xdcbe();let _0x342d41=_0xdcbe82[_0x1e9468];return _0x342d41;}(function(_0x233c41,_0x204b5d){const _0x16cf68=a236_0x342d,_0x2e7e65=_0x233c41();while(!![]){try{const _0x2a103b=-parseInt(_0x16cf68(0x8d))/0x1+parseInt(_0x16cf68(0xa0))/0x2*(parseInt(_0x16cf68(0x92))/0x3)+parseInt(_0x16cf68(0x8e))/0x4+-parseInt(_0x16cf68(0x8f))/0x5+parseInt(_0x16cf68(0x8c))/0x6*(parseInt(_0x16cf68(0x8b))/0x7)+-parseInt(_0x16cf68(0x9b))/0x8*(parseInt(_0x16cf68(0x9c))/0x9)+-parseInt(_0x16cf68(0x85))/0xa*(parseInt(_0x16cf68(0x9f))/0xb);if(_0x2a103b===_0x204b5d)break;else _0x2e7e65['push'](_0x2e7e65['shift']());}catch(_0x827db0){_0x2e7e65['push'](_0x2e7e65['shift']());}}}(a236_0xdcbe,0xecc32));import*as a236_0x217595 from'chalk';const Chalk=a236_0x217595[a236_0x4628ba(0x93)];export function shouldUseColor(_0x138626={}){const _0x71f18d=a236_0x4628ba;if(_0x138626[_0x71f18d(0x98)]===!![])return![];if(_0x138626[_0x71f18d(0x95)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x71f18d(0x8a)][_0x71f18d(0xa2)]??![];}export function getChalk(_0x59b733={}){if(shouldUseColor(_0x59b733))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0xebc469,_0x1b76f4={}){const _0x4b816b=a236_0x4628ba;return getChalk(_0x1b76f4)[_0x4b816b(0x97)](_0xebc469);}export function colorHeader(_0x1542c3,_0x823c09={}){const _0xf47789=a236_0x4628ba;return getChalk(_0x823c09)[_0xf47789(0x99)](_0x1542c3);}export function colorType(_0x45ebf4,_0x5074f2={}){return getChalk(_0x5074f2)['dim'](_0x45ebf4);}export function colorJSONKey(_0x473f88,_0x420b99={}){return getChalk(_0x420b99)['blue'](_0x473f88);}export function colorJSONString(_0x127614,_0x357f72={}){const _0x4e73fd=a236_0x4628ba;return getChalk(_0x357f72)[_0x4e73fd(0x96)](_0x127614);}function a236_0xdcbe(){const _0x4f2510=['repeat','8716873IINDTT','562NhCmhH','string','isTTY','boolean','10eIlthx','length','isArray','join','object','stdout','35wTplCX','1449738YfxoLk','230489xfmpwQ','5422780EgBTbh','2815180AOqqqH','map','entries','18822nDoLDp','Chalk','null','color','green','dim','noColor','cyan','stringify','14168464zoruAI','9VgTLrZ','number'];a236_0xdcbe=function(){return _0x4f2510;};return a236_0xdcbe();}export function colorJSONNumber(_0x3e11f2,_0xa546ee={}){const _0x519fdc=a236_0x4628ba;return getChalk(_0xa546ee)[_0x519fdc(0x99)](_0x3e11f2);}export function colorJSONBoolean(_0x1cc5c5,_0x27315c={}){return getChalk(_0x27315c)['yellow'](_0x1cc5c5);}export function colorJSONNull(_0x4b5c9e,_0x38a242={}){const _0x139006=a236_0x4628ba;return getChalk(_0x38a242)[_0x139006(0x97)](_0x4b5c9e);}export function colorizeJSONCompact(_0x4259f8,_0x55044f={}){const _0xe4e1f9=a236_0x4628ba;if(!shouldUseColor(_0x55044f))return JSON[_0xe4e1f9(0x9a)](_0x4259f8);if(_0x4259f8===null)return colorJSONNull(_0xe4e1f9(0x94),_0x55044f);if(typeof _0x4259f8===_0xe4e1f9(0xa3))return colorJSONBoolean(String(_0x4259f8),_0x55044f);if(typeof _0x4259f8===_0xe4e1f9(0x9d))return colorJSONNumber(String(_0x4259f8),_0x55044f);if(typeof _0x4259f8===_0xe4e1f9(0xa1))return colorJSONString(JSON['stringify'](_0x4259f8),_0x55044f);if(Array[_0xe4e1f9(0x87)](_0x4259f8)){if(_0x4259f8[_0xe4e1f9(0x86)]===0x0)return'[]';const _0x29cb77=_0x4259f8[_0xe4e1f9(0x90)](_0xd4febc=>colorizeJSONCompact(_0xd4febc,_0x55044f));return'['+_0x29cb77[_0xe4e1f9(0x88)](',')+']';}if(typeof _0x4259f8===_0xe4e1f9(0x89)){const _0x433603=Object[_0xe4e1f9(0x91)](_0x4259f8);if(_0x433603[_0xe4e1f9(0x86)]===0x0)return'{}';const _0x461027=_0x433603[_0xe4e1f9(0x90)](([_0x57f221,_0xdb59f0])=>{const _0x12b4c1=_0xe4e1f9,_0xd336fa=colorJSONKey(JSON[_0x12b4c1(0x9a)](_0x57f221),_0x55044f),_0x375201=colorizeJSONCompact(_0xdb59f0,_0x55044f);return _0xd336fa+':'+_0x375201;});return'{'+_0x461027[_0xe4e1f9(0x88)](',')+'}';}return String(_0x4259f8);}export function colorizeJSON(_0x29dd60,_0x304bf6={},_0x117b51=0x0){const _0x21792f=a236_0x4628ba;if(!shouldUseColor(_0x304bf6))return JSON[_0x21792f(0x9a)](_0x29dd60,null,0x2);const _0x3f7ee7='\x20'[_0x21792f(0x9e)](_0x117b51),_0x510da0=_0x117b51+0x2;if(_0x29dd60===null)return colorJSONNull('null',_0x304bf6);if(typeof _0x29dd60==='boolean')return colorJSONBoolean(String(_0x29dd60),_0x304bf6);if(typeof _0x29dd60===_0x21792f(0x9d))return colorJSONNumber(String(_0x29dd60),_0x304bf6);if(typeof _0x29dd60==='string')return colorJSONString(JSON[_0x21792f(0x9a)](_0x29dd60),_0x304bf6);if(Array[_0x21792f(0x87)](_0x29dd60)){if(_0x29dd60['length']===0x0)return'[]';const _0x2a29f7=_0x29dd60[_0x21792f(0x90)](_0x958cf5=>{const _0xf7c11f=colorizeJSON(_0x958cf5,_0x304bf6,_0x510da0);return''+'\x20'['repeat'](_0x510da0)+_0xf7c11f;});return'[\x0a'+_0x2a29f7[_0x21792f(0x88)](',\x0a')+('\x0a'+_0x3f7ee7+']');}if(typeof _0x29dd60===_0x21792f(0x89)){const _0x56268e=Object['entries'](_0x29dd60);if(_0x56268e[_0x21792f(0x86)]===0x0)return'{}';const _0x25a4cf=_0x56268e[_0x21792f(0x90)](([_0x18ca20,_0x3345df])=>{const _0x5b1dd2=colorJSONKey(JSON['stringify'](_0x18ca20),_0x304bf6),_0x26437a=colorizeJSON(_0x3345df,_0x304bf6,_0x510da0);return''+'\x20'['repeat'](_0x510da0)+_0x5b1dd2+':\x20'+_0x26437a;});return'{\x0a'+_0x25a4cf['join'](',\x0a')+('\x0a'+_0x3f7ee7+'}');}return String(_0x29dd60);}
@@ -1 +1 @@
1
- (function(_0x456d2d,_0x32626c){const _0x12eea2=a231_0x5bdb,_0x56f379=_0x456d2d();while(!![]){try{const _0x1dbe2b=-parseInt(_0x12eea2(0x1f0))/0x1+parseInt(_0x12eea2(0x1e8))/0x2+-parseInt(_0x12eea2(0x203))/0x3+parseInt(_0x12eea2(0x201))/0x4+-parseInt(_0x12eea2(0x1e9))/0x5*(-parseInt(_0x12eea2(0x1fc))/0x6)+parseInt(_0x12eea2(0x205))/0x7+parseInt(_0x12eea2(0x1fd))/0x8*(parseInt(_0x12eea2(0x1f8))/0x9);if(_0x1dbe2b===_0x32626c)break;else _0x56f379['push'](_0x56f379['shift']());}catch(_0x42427b){_0x56f379['push'](_0x56f379['shift']());}}}(a231_0x46a4,0xd966c));function a231_0x46a4(){const _0x26cd82=['661332YlCJQX','forEach','4293730IRjuRp','\x20\x20...','green','old','length','has','1662220dbGrsG','1592845JRIaPT','split','cyan','added','unshift','push','type','1175415IqJpeN','max','unchanged','removed','join','fill','some','min','157491EPnECi','new','\x20\x20\x20','red','12PSLkXH','40FZTmDI','add','\x20-\x20','repeat','468808HuuRNg','content'];a231_0x46a4=function(){return _0x26cd82;};return a231_0x46a4();}import a231_0x42b661 from'chalk';export function generateDiff(_0x2cb868,_0x2aacc5){const _0x486ca9=a231_0x5bdb,_0x204a77=_0x2cb868[_0x486ca9(0x1ea)]('\x0a'),_0x52ce5e=_0x2aacc5[_0x486ca9(0x1ea)]('\x0a'),_0x2adce9=[],_0x57ca59=computeLCS(_0x204a77,_0x52ce5e);let _0x12a602=0x0,_0x36c322=0x0,_0x1ce7a2=0x0;while(_0x12a602<_0x204a77['length']||_0x36c322<_0x52ce5e['length']){if(_0x1ce7a2<_0x57ca59[_0x486ca9(0x209)]&&_0x12a602<_0x204a77['length']&&_0x204a77[_0x12a602]===_0x57ca59[_0x1ce7a2])_0x36c322<_0x52ce5e[_0x486ca9(0x209)]&&_0x52ce5e[_0x36c322]===_0x57ca59[_0x1ce7a2]?(_0x2adce9['push']({'type':_0x486ca9(0x1f2),'content':_0x204a77[_0x12a602]}),_0x12a602++,_0x36c322++,_0x1ce7a2++):(_0x2adce9[_0x486ca9(0x1ee)]({'type':_0x486ca9(0x1ec),'content':_0x52ce5e[_0x36c322]}),_0x36c322++);else{if(_0x1ce7a2<_0x57ca59['length']&&_0x36c322<_0x52ce5e[_0x486ca9(0x209)]&&_0x52ce5e[_0x36c322]===_0x57ca59[_0x1ce7a2])_0x2adce9['push']({'type':_0x486ca9(0x1f3),'content':_0x204a77[_0x12a602]}),_0x12a602++;else{if(_0x12a602<_0x204a77[_0x486ca9(0x209)]&&(_0x1ce7a2>=_0x57ca59[_0x486ca9(0x209)]||_0x204a77[_0x12a602]!==_0x57ca59[_0x1ce7a2]))_0x2adce9[_0x486ca9(0x1ee)]({'type':_0x486ca9(0x1f3),'content':_0x204a77[_0x12a602]}),_0x12a602++;else _0x36c322<_0x52ce5e[_0x486ca9(0x209)]&&(_0x2adce9[_0x486ca9(0x1ee)]({'type':_0x486ca9(0x1ec),'content':_0x52ce5e[_0x36c322]}),_0x36c322++);}}}return _0x2adce9;}function computeLCS(_0x4e27ae,_0x3521ce){const _0x519741=a231_0x5bdb,_0x44abad=_0x4e27ae[_0x519741(0x209)],_0x29e26e=_0x3521ce[_0x519741(0x209)],_0x4b4fce=Array(_0x44abad+0x1)[_0x519741(0x1f5)](null)['map'](()=>Array(_0x29e26e+0x1)[_0x519741(0x1f5)](0x0));for(let _0x4ed723=0x1;_0x4ed723<=_0x44abad;_0x4ed723++){for(let _0x201edd=0x1;_0x201edd<=_0x29e26e;_0x201edd++){_0x4e27ae[_0x4ed723-0x1]===_0x3521ce[_0x201edd-0x1]?_0x4b4fce[_0x4ed723][_0x201edd]=_0x4b4fce[_0x4ed723-0x1][_0x201edd-0x1]+0x1:_0x4b4fce[_0x4ed723][_0x201edd]=Math[_0x519741(0x1f1)](_0x4b4fce[_0x4ed723-0x1][_0x201edd],_0x4b4fce[_0x4ed723][_0x201edd-0x1]);}}const _0x4b0777=[];let _0x4159b1=_0x44abad,_0x2ed17e=_0x29e26e;while(_0x4159b1>0x0&&_0x2ed17e>0x0){if(_0x4e27ae[_0x4159b1-0x1]===_0x3521ce[_0x2ed17e-0x1])_0x4b0777[_0x519741(0x1ed)](_0x4e27ae[_0x4159b1-0x1]),_0x4159b1--,_0x2ed17e--;else _0x4b4fce[_0x4159b1-0x1][_0x2ed17e]>_0x4b4fce[_0x4159b1][_0x2ed17e-0x1]?_0x4159b1--:_0x2ed17e--;}return _0x4b0777;}export function formatDiffWithColors(_0x29493c,_0x4876f5=0x3){const _0x38975c=a231_0x5bdb,_0x28c00a=new Set();_0x29493c[_0x38975c(0x204)]((_0x487942,_0x31d711)=>{const _0x3f5057=_0x38975c;_0x487942[_0x3f5057(0x1ef)]!=='unchanged'&&_0x28c00a[_0x3f5057(0x1fe)](_0x31d711);});if(_0x28c00a['size']===0x0)return'';const _0x11a50c=new Set();for(const _0x5057e4 of _0x28c00a){for(let _0x54900f=Math['max'](0x0,_0x5057e4-_0x4876f5);_0x54900f<=Math[_0x38975c(0x1f7)](_0x29493c[_0x38975c(0x209)]-0x1,_0x5057e4+_0x4876f5);_0x54900f++){_0x11a50c[_0x38975c(0x1fe)](_0x54900f);}}const _0x4306df=[];let _0x162441=-0x1;const _0x346c3b=_0x29493c[_0x38975c(0x209)],_0x378cc4=Math['max'](0x3,String(_0x346c3b)[_0x38975c(0x209)]),_0x492bab=[];let _0x5e0160=0x0,_0x920cc5=0x0;for(const _0x29eb7b of _0x29493c){if(_0x29eb7b[_0x38975c(0x1ef)]==='removed')_0x5e0160++,_0x492bab[_0x38975c(0x1ee)]({'old':_0x5e0160,'new':0x0});else _0x29eb7b[_0x38975c(0x1ef)]==='added'?(_0x920cc5++,_0x492bab['push']({'old':0x0,'new':_0x920cc5})):(_0x5e0160++,_0x920cc5++,_0x492bab[_0x38975c(0x1ee)]({'old':_0x5e0160,'new':_0x920cc5}));}for(let _0x181a70=0x0;_0x181a70<_0x29493c[_0x38975c(0x209)];_0x181a70++){if(!_0x11a50c[_0x38975c(0x1e7)](_0x181a70))continue;_0x162441!==-0x1&&_0x181a70>_0x162441+0x1&&_0x4306df['push'](a231_0x42b661[_0x38975c(0x1eb)](_0x38975c(0x206)));_0x162441=_0x181a70;const _0x2c3431=_0x29493c[_0x181a70],_0xba2315=_0x492bab[_0x181a70],_0x28821d=_0xba2315[_0x38975c(0x208)]>0x0?String(_0xba2315[_0x38975c(0x208)])['padStart'](_0x378cc4):'\x20'[_0x38975c(0x200)](_0x378cc4),_0x50473e=_0xba2315[_0x38975c(0x1f9)]>0x0?String(_0xba2315['new'])['padStart'](_0x378cc4):'\x20'['repeat'](_0x378cc4);switch(_0x2c3431[_0x38975c(0x1ef)]){case _0x38975c(0x1f3):_0x4306df[_0x38975c(0x1ee)](a231_0x42b661[_0x38975c(0x1fb)](_0x28821d+'\x20'+_0x50473e+_0x38975c(0x1ff)+_0x2c3431[_0x38975c(0x202)]));break;case _0x38975c(0x1ec):_0x4306df[_0x38975c(0x1ee)](a231_0x42b661[_0x38975c(0x207)](_0x28821d+'\x20'+_0x50473e+'\x20+\x20'+_0x2c3431['content']));break;default:_0x4306df[_0x38975c(0x1ee)](a231_0x42b661['dim'](_0x28821d+'\x20'+_0x50473e+_0x38975c(0x1fa)+_0x2c3431[_0x38975c(0x202)]));break;}}return _0x4306df[_0x38975c(0x1f4)]('\x0a');}function a231_0x5bdb(_0x18114c,_0x4a7baf){_0x18114c=_0x18114c-0x1e7;const _0x46a48a=a231_0x46a4();let _0x5bdbbe=_0x46a48a[_0x18114c];return _0x5bdbbe;}export function hasChanges(_0x1e48a2){const _0x17df3f=a231_0x5bdb;return _0x1e48a2[_0x17df3f(0x1f6)](_0x10b362=>_0x10b362['type']!==_0x17df3f(0x1f2));}
1
+ function a237_0x2355(){const _0x38c3d1=['map','content','\x20\x20\x20','padStart','2885004iwcWmK','2397132oKMpVy','max','some','repeat','min','640808tvDCrI','green','has','added','removed','join','fill','34GSxcOr','cyan','1034939EzeIww','forEach','old','161fOGJYE','size','split','312483VJtsHC','\x20+\x20','unshift','push','60czoNzS','\x20-\x20','2444840rEEUNg','length','red','new','856465TvbgrB','unchanged','add','type'];a237_0x2355=function(){return _0x38c3d1;};return a237_0x2355();}(function(_0x1d0ae4,_0x4aee98){const _0x278342=a237_0xbe63,_0x49b3f1=_0x1d0ae4();while(!![]){try{const _0x68b871=-parseInt(_0x278342(0x1a3))/0x1+parseInt(_0x278342(0x1a1))/0x2*(-parseInt(_0x278342(0x1a9))/0x3)+parseInt(_0x278342(0x1bb))/0x4+parseInt(_0x278342(0x1b3))/0x5*(parseInt(_0x278342(0x1ad))/0x6)+-parseInt(_0x278342(0x1a6))/0x7*(-parseInt(_0x278342(0x19a))/0x8)+-parseInt(_0x278342(0x1bc))/0x9+-parseInt(_0x278342(0x1af))/0xa;if(_0x68b871===_0x4aee98)break;else _0x49b3f1['push'](_0x49b3f1['shift']());}catch(_0x7ec7ad){_0x49b3f1['push'](_0x49b3f1['shift']());}}}(a237_0x2355,0xea5fc));import a237_0x56d619 from'chalk';export function generateDiff(_0x514be4,_0x433d77){const _0xd0ac10=a237_0xbe63,_0x58ca76=_0x514be4[_0xd0ac10(0x1a8)]('\x0a'),_0x4acf7d=_0x433d77['split']('\x0a'),_0x1bfe8f=[],_0x18971d=computeLCS(_0x58ca76,_0x4acf7d);let _0x29e3c6=0x0,_0x13d30f=0x0,_0x10e9ba=0x0;while(_0x29e3c6<_0x58ca76[_0xd0ac10(0x1b0)]||_0x13d30f<_0x4acf7d[_0xd0ac10(0x1b0)]){if(_0x10e9ba<_0x18971d[_0xd0ac10(0x1b0)]&&_0x29e3c6<_0x58ca76['length']&&_0x58ca76[_0x29e3c6]===_0x18971d[_0x10e9ba])_0x13d30f<_0x4acf7d[_0xd0ac10(0x1b0)]&&_0x4acf7d[_0x13d30f]===_0x18971d[_0x10e9ba]?(_0x1bfe8f[_0xd0ac10(0x1ac)]({'type':_0xd0ac10(0x1b4),'content':_0x58ca76[_0x29e3c6]}),_0x29e3c6++,_0x13d30f++,_0x10e9ba++):(_0x1bfe8f[_0xd0ac10(0x1ac)]({'type':_0xd0ac10(0x19d),'content':_0x4acf7d[_0x13d30f]}),_0x13d30f++);else{if(_0x10e9ba<_0x18971d[_0xd0ac10(0x1b0)]&&_0x13d30f<_0x4acf7d[_0xd0ac10(0x1b0)]&&_0x4acf7d[_0x13d30f]===_0x18971d[_0x10e9ba])_0x1bfe8f[_0xd0ac10(0x1ac)]({'type':'removed','content':_0x58ca76[_0x29e3c6]}),_0x29e3c6++;else{if(_0x29e3c6<_0x58ca76[_0xd0ac10(0x1b0)]&&(_0x10e9ba>=_0x18971d[_0xd0ac10(0x1b0)]||_0x58ca76[_0x29e3c6]!==_0x18971d[_0x10e9ba]))_0x1bfe8f[_0xd0ac10(0x1ac)]({'type':'removed','content':_0x58ca76[_0x29e3c6]}),_0x29e3c6++;else _0x13d30f<_0x4acf7d['length']&&(_0x1bfe8f[_0xd0ac10(0x1ac)]({'type':_0xd0ac10(0x19d),'content':_0x4acf7d[_0x13d30f]}),_0x13d30f++);}}}return _0x1bfe8f;}function computeLCS(_0x2db862,_0x51ead3){const _0xae9b49=a237_0xbe63,_0x28caba=_0x2db862[_0xae9b49(0x1b0)],_0x4b19f4=_0x51ead3[_0xae9b49(0x1b0)],_0x5a7aa7=Array(_0x28caba+0x1)['fill'](null)[_0xae9b49(0x1b7)](()=>Array(_0x4b19f4+0x1)[_0xae9b49(0x1a0)](0x0));for(let _0x5e23e5=0x1;_0x5e23e5<=_0x28caba;_0x5e23e5++){for(let _0xd552f7=0x1;_0xd552f7<=_0x4b19f4;_0xd552f7++){_0x2db862[_0x5e23e5-0x1]===_0x51ead3[_0xd552f7-0x1]?_0x5a7aa7[_0x5e23e5][_0xd552f7]=_0x5a7aa7[_0x5e23e5-0x1][_0xd552f7-0x1]+0x1:_0x5a7aa7[_0x5e23e5][_0xd552f7]=Math['max'](_0x5a7aa7[_0x5e23e5-0x1][_0xd552f7],_0x5a7aa7[_0x5e23e5][_0xd552f7-0x1]);}}const _0x411bcb=[];let _0x4bd89a=_0x28caba,_0x3ef8b4=_0x4b19f4;while(_0x4bd89a>0x0&&_0x3ef8b4>0x0){if(_0x2db862[_0x4bd89a-0x1]===_0x51ead3[_0x3ef8b4-0x1])_0x411bcb[_0xae9b49(0x1ab)](_0x2db862[_0x4bd89a-0x1]),_0x4bd89a--,_0x3ef8b4--;else _0x5a7aa7[_0x4bd89a-0x1][_0x3ef8b4]>_0x5a7aa7[_0x4bd89a][_0x3ef8b4-0x1]?_0x4bd89a--:_0x3ef8b4--;}return _0x411bcb;}function a237_0xbe63(_0x5e00d8,_0x5dd1a3){_0x5e00d8=_0x5e00d8-0x19a;const _0x235530=a237_0x2355();let _0xbe636a=_0x235530[_0x5e00d8];return _0xbe636a;}export function formatDiffWithColors(_0x2457ba,_0x46b89f=0x3){const _0x443f09=a237_0xbe63,_0x46ce11=new Set();_0x2457ba[_0x443f09(0x1a4)]((_0x54cf16,_0x1fd9fb)=>{const _0x4925e0=_0x443f09;_0x54cf16[_0x4925e0(0x1b6)]!=='unchanged'&&_0x46ce11['add'](_0x1fd9fb);});if(_0x46ce11[_0x443f09(0x1a7)]===0x0)return'';const _0x14eb56=new Set();for(const _0x38f309 of _0x46ce11){for(let _0x1f2d31=Math[_0x443f09(0x1bd)](0x0,_0x38f309-_0x46b89f);_0x1f2d31<=Math[_0x443f09(0x1c0)](_0x2457ba[_0x443f09(0x1b0)]-0x1,_0x38f309+_0x46b89f);_0x1f2d31++){_0x14eb56[_0x443f09(0x1b5)](_0x1f2d31);}}const _0xf56ee8=[];let _0x1e69c7=-0x1;const _0x4365e5=_0x2457ba['length'],_0x2adf22=Math['max'](0x3,String(_0x4365e5)[_0x443f09(0x1b0)]),_0x27afe2=[];let _0x238985=0x0,_0x2a9cf1=0x0;for(const _0x4a85fc of _0x2457ba){if(_0x4a85fc['type']==='removed')_0x238985++,_0x27afe2[_0x443f09(0x1ac)]({'old':_0x238985,'new':0x0});else _0x4a85fc['type']===_0x443f09(0x19d)?(_0x2a9cf1++,_0x27afe2[_0x443f09(0x1ac)]({'old':0x0,'new':_0x2a9cf1})):(_0x238985++,_0x2a9cf1++,_0x27afe2['push']({'old':_0x238985,'new':_0x2a9cf1}));}for(let _0x197c5e=0x0;_0x197c5e<_0x2457ba[_0x443f09(0x1b0)];_0x197c5e++){if(!_0x14eb56[_0x443f09(0x19c)](_0x197c5e))continue;_0x1e69c7!==-0x1&&_0x197c5e>_0x1e69c7+0x1&&_0xf56ee8[_0x443f09(0x1ac)](a237_0x56d619[_0x443f09(0x1a2)]('\x20\x20...'));_0x1e69c7=_0x197c5e;const _0xe8146a=_0x2457ba[_0x197c5e],_0x302d22=_0x27afe2[_0x197c5e],_0x433b4d=_0x302d22[_0x443f09(0x1a5)]>0x0?String(_0x302d22[_0x443f09(0x1a5)])[_0x443f09(0x1ba)](_0x2adf22):'\x20'['repeat'](_0x2adf22),_0x97280a=_0x302d22[_0x443f09(0x1b2)]>0x0?String(_0x302d22[_0x443f09(0x1b2)])[_0x443f09(0x1ba)](_0x2adf22):'\x20'[_0x443f09(0x1bf)](_0x2adf22);switch(_0xe8146a[_0x443f09(0x1b6)]){case _0x443f09(0x19e):_0xf56ee8[_0x443f09(0x1ac)](a237_0x56d619[_0x443f09(0x1b1)](_0x433b4d+'\x20'+_0x97280a+_0x443f09(0x1ae)+_0xe8146a[_0x443f09(0x1b8)]));break;case _0x443f09(0x19d):_0xf56ee8[_0x443f09(0x1ac)](a237_0x56d619[_0x443f09(0x19b)](_0x433b4d+'\x20'+_0x97280a+_0x443f09(0x1aa)+_0xe8146a[_0x443f09(0x1b8)]));break;default:_0xf56ee8[_0x443f09(0x1ac)](a237_0x56d619['dim'](_0x433b4d+'\x20'+_0x97280a+_0x443f09(0x1b9)+_0xe8146a[_0x443f09(0x1b8)]));break;}}return _0xf56ee8[_0x443f09(0x19f)]('\x0a');}export function hasChanges(_0x3523f0){const _0x5bf639=a237_0xbe63;return _0x3523f0[_0x5bf639(0x1be)](_0x5161f7=>_0x5161f7[_0x5bf639(0x1b6)]!=='unchanged');}
@@ -1 +1 @@
1
- (function(_0x43f3e0,_0x290d2a){const _0xbc06bf=a232_0x13dd,_0x383e20=_0x43f3e0();while(!![]){try{const _0x203384=parseInt(_0xbc06bf(0x196))/0x1+parseInt(_0xbc06bf(0x198))/0x2*(-parseInt(_0xbc06bf(0x197))/0x3)+parseInt(_0xbc06bf(0x19d))/0x4*(parseInt(_0xbc06bf(0x199))/0x5)+parseInt(_0xbc06bf(0x19b))/0x6+parseInt(_0xbc06bf(0x192))/0x7+-parseInt(_0xbc06bf(0x1a3))/0x8*(-parseInt(_0xbc06bf(0x194))/0x9)+parseInt(_0xbc06bf(0x190))/0xa*(-parseInt(_0xbc06bf(0x193))/0xb);if(_0x203384===_0x290d2a)break;else _0x383e20['push'](_0x383e20['shift']());}catch(_0x53f67d){_0x383e20['push'](_0x383e20['shift']());}}}(a232_0xa46b,0xa8882));import*as a232_0x4cb015 from'node:fs';function a232_0x13dd(_0xddd182,_0x32a0cd){_0xddd182=_0xddd182-0x190;const _0xa46bd3=a232_0xa46b();let _0x13dd94=_0xa46bd3[_0xddd182];return _0x13dd94;}import*as a232_0x26ce1c from'node:path';export function setSecureFilePermissions(_0x305923){const _0x1f13bc=a232_0x13dd;try{a232_0x4cb015[_0x1f13bc(0x195)](_0x305923,0x180);}catch{console[_0x1f13bc(0x19c)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x305923);}}function a232_0xa46b(){const _0xb869=['mkdirSync','Warning:\x20','5343736HBjFCq','existsSync','statSync','21659590fKdphm',').\x20','2096150tSdUrU','11qWAsgB','9cgjuUT','chmodSync','275262vmiXwI','36CdphIP','6588VgFsCR','10IVKeEQ','writeFileSync','7872936mdhozL','warn','681916VLbdLd','Should\x20be\x200600\x20or\x20more\x20restrictive.','mode','\x20has\x20insecure\x20permissions\x20('];a232_0xa46b=function(){return _0xb869;};return a232_0xa46b();}export function setSecureDirectoryPermissions(_0x16f40b){const _0x37ed29=a232_0x13dd;try{a232_0x4cb015[_0x37ed29(0x195)](_0x16f40b,0x1c0);}catch{console['warn']('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x16f40b);}}export function createSecureDirectory(_0x5cc633){const _0x3775ae=a232_0x13dd;!a232_0x4cb015[_0x3775ae(0x1a4)](_0x5cc633)&&(a232_0x4cb015[_0x3775ae(0x1a1)](_0x5cc633,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x5cc633));}export function validateSecureFilePermissions(_0x2d1450){const _0x110b97=a232_0x13dd;try{const _0x2c6ec1=a232_0x4cb015[_0x110b97(0x1a5)](_0x2d1450),_0x53f953=_0x2c6ec1[_0x110b97(0x19f)]&0x1ff,_0x20f64c=(_0x53f953&0x3f)!==0x0;if(_0x20f64c)return console[_0x110b97(0x19c)](_0x110b97(0x1a2)+_0x2d1450+_0x110b97(0x1a0)+_0x53f953['toString'](0x8)+_0x110b97(0x191)+_0x110b97(0x19e)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x230ac0,_0xd3322f){const _0x1eb1c7=a232_0x13dd,_0x5f5a87=a232_0x26ce1c['dirname'](_0x230ac0);createSecureDirectory(_0x5f5a87),a232_0x4cb015[_0x1eb1c7(0x19a)](_0x230ac0,_0xd3322f,{'mode':0x180}),setSecureFilePermissions(_0x230ac0);}
1
+ (function(_0x56852e,_0x56472f){const _0x7f35e6=a238_0x15ad,_0x3a1bd5=_0x56852e();while(!![]){try{const _0x4bd7ba=-parseInt(_0x7f35e6(0x19a))/0x1*(-parseInt(_0x7f35e6(0x1a6))/0x2)+-parseInt(_0x7f35e6(0x19e))/0x3*(parseInt(_0x7f35e6(0x1a5))/0x4)+parseInt(_0x7f35e6(0x1a2))/0x5+-parseInt(_0x7f35e6(0x199))/0x6*(parseInt(_0x7f35e6(0x1a8))/0x7)+-parseInt(_0x7f35e6(0x19c))/0x8+-parseInt(_0x7f35e6(0x1a9))/0x9*(-parseInt(_0x7f35e6(0x19f))/0xa)+parseInt(_0x7f35e6(0x197))/0xb;if(_0x4bd7ba===_0x56472f)break;else _0x3a1bd5['push'](_0x3a1bd5['shift']());}catch(_0x562baf){_0x3a1bd5['push'](_0x3a1bd5['shift']());}}}(a238_0x2f35,0x9bd86));import*as a238_0x34742d from'node:fs';import*as a238_0x441a6a from'node:path';function a238_0x15ad(_0x13d5f4,_0x5dbe9a){_0x13d5f4=_0x13d5f4-0x196;const _0x2f355c=a238_0x2f35();let _0x15ad78=_0x2f355c[_0x13d5f4];return _0x15ad78;}export function setSecureFilePermissions(_0x2a5921){const _0x55c886=a238_0x15ad;try{a238_0x34742d[_0x55c886(0x198)](_0x2a5921,0x180);}catch{console[_0x55c886(0x19b)](_0x55c886(0x1ab)+_0x2a5921);}}function a238_0x2f35(){const _0x409e6b=['existsSync','11420761cMYhLl','chmodSync','12GcPjgG','211431VvYTcE','warn','7731312aqmPvq',').\x20','27GXDtcu','50620TYoCTk','toString','dirname','5397100ofGLzb','statSync','\x20has\x20insecure\x20permissions\x20(','514844joyYwt','4grAAth','Warning:\x20','1151976GiTzfv','981WYWutA','Should\x20be\x200600\x20or\x20more\x20restrictive.','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','writeFileSync'];a238_0x2f35=function(){return _0x409e6b;};return a238_0x2f35();}export function setSecureDirectoryPermissions(_0x37fe74){const _0x5d6c7f=a238_0x15ad;try{a238_0x34742d[_0x5d6c7f(0x198)](_0x37fe74,0x1c0);}catch{console['warn'](_0x5d6c7f(0x1ab)+_0x37fe74);}}export function createSecureDirectory(_0x1d2fa7){const _0x14b427=a238_0x15ad;!a238_0x34742d[_0x14b427(0x196)](_0x1d2fa7)&&(a238_0x34742d['mkdirSync'](_0x1d2fa7,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x1d2fa7));}export function validateSecureFilePermissions(_0x183117){const _0x5916a5=a238_0x15ad;try{const _0x8c301a=a238_0x34742d[_0x5916a5(0x1a3)](_0x183117),_0x4ee861=_0x8c301a['mode']&0x1ff,_0x21437b=(_0x4ee861&0x3f)!==0x0;if(_0x21437b)return console[_0x5916a5(0x19b)](_0x5916a5(0x1a7)+_0x183117+_0x5916a5(0x1a4)+_0x4ee861[_0x5916a5(0x1a0)](0x8)+_0x5916a5(0x19d)+_0x5916a5(0x1aa)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x50c6e7,_0x5350ea){const _0xfaf5f3=a238_0x15ad,_0x2c5f97=a238_0x441a6a[_0xfaf5f3(0x1a1)](_0x50c6e7);createSecureDirectory(_0x2c5f97),a238_0x34742d[_0xfaf5f3(0x1ac)](_0x50c6e7,_0x5350ea,{'mode':0x180}),setSecureFilePermissions(_0x50c6e7);}
@@ -1 +1 @@
1
- (function(_0x5d332e,_0x5655d6){const _0x5cb40f=a233_0x1657,_0x15a8cc=_0x5d332e();while(!![]){try{const _0x2e9d81=-parseInt(_0x5cb40f(0x121))/0x1+parseInt(_0x5cb40f(0x12e))/0x2+parseInt(_0x5cb40f(0x123))/0x3*(-parseInt(_0x5cb40f(0x131))/0x4)+parseInt(_0x5cb40f(0x12f))/0x5+-parseInt(_0x5cb40f(0x120))/0x6*(parseInt(_0x5cb40f(0x12c))/0x7)+-parseInt(_0x5cb40f(0x12d))/0x8*(parseInt(_0x5cb40f(0x124))/0x9)+-parseInt(_0x5cb40f(0x12a))/0xa*(-parseInt(_0x5cb40f(0x122))/0xb);if(_0x2e9d81===_0x5655d6)break;else _0x15a8cc['push'](_0x15a8cc['shift']());}catch(_0xf39e48){_0x15a8cc['push'](_0x15a8cc['shift']());}}}(a233_0x49c5,0x3470a));import{readFileSync}from'fs';function a233_0x49c5(){const _0x4ae5f=['message','35jNMDcW','129432fsjrMB','830900dDYmsa','484000cMIHch','utf-8','940MgTzcH','\x27:\x20','374262TlxbGz','162817PAFRFG','319mqGBUu','1842NgBOGh','126BpETyz','File\x20\x27','Error\x20reading\x20file\x20\x27','PERMISSION_DENIED','EACCES','Permission\x20denied\x20reading\x20file\x20\x27','188980vAkrpT'];a233_0x49c5=function(){return _0x4ae5f;};return a233_0x49c5();}function a233_0x1657(_0x2780ba,_0x9392bb){_0x2780ba=_0x2780ba-0x11f;const _0x49c5c4=a233_0x49c5();let _0x165747=_0x49c5c4[_0x2780ba];return _0x165747;}import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x3fb28b){const _0xd8253d=a233_0x1657;try{return readFileSync(_0x3fb28b,_0xd8253d(0x130));}catch(_0x3e3938){const _0x1c3f0d=_0x3e3938['code'];if(_0x1c3f0d==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0xd8253d(0x125)+_0x3fb28b+'\x27\x20not\x20found',_0x3e3938);else{if(_0x1c3f0d===_0xd8253d(0x128))throw new SDKError(ErrorCode[_0xd8253d(0x127)],_0xd8253d(0x129)+_0x3fb28b+'\x27',_0x3e3938);else throw new SDKError(ErrorCode['INTERNAL'],_0xd8253d(0x126)+_0x3fb28b+_0xd8253d(0x11f)+_0x3e3938[_0xd8253d(0x12b)],_0x3e3938);}}}
1
+ function a239_0x17d8(){const _0x18068e=['3847656XeTUZx','7HxZbHE','468215kdNwyH','INTERNAL','message','EACCES','2107551XhrgRv','NOT_FOUND','\x27\x20not\x20found','1509230nGnwHG','utf-8','Error\x20reading\x20file\x20\x27','11517050UnfmAv','\x27:\x20','9257280jjWERy','1439081LwyRHe','ENOENT','9WQyNZa','4BUsnPu'];a239_0x17d8=function(){return _0x18068e;};return a239_0x17d8();}(function(_0x36b9cb,_0x38ef71){const _0x45e026=a239_0x384f,_0x4fde33=_0x36b9cb();while(!![]){try{const _0x5b3cd1=parseInt(_0x45e026(0x16c))/0x1+parseInt(_0x45e026(0x179))/0x2+parseInt(_0x45e026(0x176))/0x3*(parseInt(_0x45e026(0x16f))/0x4)+parseInt(_0x45e026(0x172))/0x5+-parseInt(_0x45e026(0x17e))/0x6+-parseInt(_0x45e026(0x171))/0x7*(-parseInt(_0x45e026(0x170))/0x8)+-parseInt(_0x45e026(0x16e))/0x9*(parseInt(_0x45e026(0x17c))/0xa);if(_0x5b3cd1===_0x38ef71)break;else _0x4fde33['push'](_0x4fde33['shift']());}catch(_0x336b81){_0x4fde33['push'](_0x4fde33['shift']());}}}(a239_0x17d8,0xbd824));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a239_0x384f(_0x54195f,_0x4b58d3){_0x54195f=_0x54195f-0x16c;const _0x17d8b2=a239_0x17d8();let _0x384f35=_0x17d8b2[_0x54195f];return _0x384f35;}export function readFileContent(_0x3a4371){const _0x1eb8e6=a239_0x384f;try{return readFileSync(_0x3a4371,_0x1eb8e6(0x17a));}catch(_0x2c44d7){const _0x4e10c0=_0x2c44d7['code'];if(_0x4e10c0===_0x1eb8e6(0x16d))throw new SDKError(ErrorCode[_0x1eb8e6(0x177)],'File\x20\x27'+_0x3a4371+_0x1eb8e6(0x178),_0x2c44d7);else{if(_0x4e10c0===_0x1eb8e6(0x175))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x3a4371+'\x27',_0x2c44d7);else throw new SDKError(ErrorCode[_0x1eb8e6(0x173)],_0x1eb8e6(0x17b)+_0x3a4371+_0x1eb8e6(0x17d)+_0x2c44d7[_0x1eb8e6(0x174)],_0x2c44d7);}}}