@treasuredata/tdx 0.8.5 → 0.8.6

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 (115) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +2 -2
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/client/cdp-api-client.js +1 -1
  6. package/dist/client/engage-api-client.js +1 -1
  7. package/dist/client/http-client.js +1 -1
  8. package/dist/client/llm-api-client.js +1 -1
  9. package/dist/client/rate-limiter.js +1 -1
  10. package/dist/client/td-api-client.js +1 -1
  11. package/dist/client/trino-api-client.js +1 -1
  12. package/dist/client/workflow-client.js +1 -1
  13. package/dist/commands/activations.js +1 -1
  14. package/dist/commands/api-command.js +1 -1
  15. package/dist/commands/auth-command.js +1 -1
  16. package/dist/commands/chat-command.js +1 -1
  17. package/dist/commands/claude-command.d.ts +1 -0
  18. package/dist/commands/claude-command.d.ts.map +1 -1
  19. package/dist/commands/claude-command.js +1 -1
  20. package/dist/commands/claude-command.js.map +1 -1
  21. package/dist/commands/claude-statusline-command.js +1 -1
  22. package/dist/commands/claude-usage-command.js +1 -1
  23. package/dist/commands/command.js +1 -1
  24. package/dist/commands/connection-command.js +1 -1
  25. package/dist/commands/context-command.js +1 -1
  26. package/dist/commands/databases.js +1 -1
  27. package/dist/commands/describe.js +1 -1
  28. package/dist/commands/engage-command.js +1 -1
  29. package/dist/commands/job-command.js +1 -1
  30. package/dist/commands/journey-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/llm-proxy.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/profiles-command.js +1 -1
  35. package/dist/commands/query-command.js +1 -1
  36. package/dist/commands/segment-command.js +1 -1
  37. package/dist/commands/segment-create-command.js +1 -1
  38. package/dist/commands/segment-fields-command.js +1 -1
  39. package/dist/commands/segment-pull-command.js +1 -1
  40. package/dist/commands/segment-push-command.js +1 -1
  41. package/dist/commands/segment-update-command.js +1 -1
  42. package/dist/commands/segment-use-command.js +1 -1
  43. package/dist/commands/segments.js +1 -1
  44. package/dist/commands/show.js +1 -1
  45. package/dist/commands/tables.js +1 -1
  46. package/dist/commands/use-command.js +1 -1
  47. package/dist/commands/user-command.js +1 -1
  48. package/dist/commands/workflow-command.js +1 -1
  49. package/dist/core/auth.js +1 -1
  50. package/dist/core/config.js +1 -1
  51. package/dist/core/connection-cache.js +1 -1
  52. package/dist/core/credential-cache.js +1 -1
  53. package/dist/core/global-context.js +1 -1
  54. package/dist/core/keychain.js +1 -1
  55. package/dist/core/profile.js +1 -1
  56. package/dist/core/project-config.js +1 -1
  57. package/dist/core/session.js +1 -1
  58. package/dist/core/user-cache.js +1 -1
  59. package/dist/index.js +1 -1
  60. package/dist/proxy/anthropic-adapter.js +1 -1
  61. package/dist/proxy/claude-usage-tracker.js +1 -1
  62. package/dist/proxy/context-signature.js +1 -1
  63. package/dist/proxy/conversation-utils.js +1 -1
  64. package/dist/proxy/server.js +1 -1
  65. package/dist/proxy/session-cache.js +1 -1
  66. package/dist/sdk/api.js +1 -1
  67. package/dist/sdk/connection.js +1 -1
  68. package/dist/sdk/engage.js +1 -1
  69. package/dist/sdk/errors.js +1 -1
  70. package/dist/sdk/index.js +1 -1
  71. package/dist/sdk/job.js +1 -1
  72. package/dist/sdk/journey.js +1 -1
  73. package/dist/sdk/llm.js +1 -1
  74. package/dist/sdk/query.js +1 -1
  75. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  76. package/dist/sdk/segment/journey-yaml.js +1 -1
  77. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  78. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  79. package/dist/sdk/segment.js +1 -1
  80. package/dist/sdk/user.js +1 -1
  81. package/dist/sdk/workflow.js +1 -1
  82. package/dist/types/endpoints.js +1 -1
  83. package/dist/types/index.js +1 -1
  84. package/dist/utils/agent-ref-parser.js +1 -1
  85. package/dist/utils/async.js +1 -1
  86. package/dist/utils/chat-cache.js +1 -1
  87. package/dist/utils/colors.js +1 -1
  88. package/dist/utils/command-output.js +1 -1
  89. package/dist/utils/constants.js +1 -1
  90. package/dist/utils/diff.js +1 -1
  91. package/dist/utils/fields-display.js +1 -1
  92. package/dist/utils/file-permissions.js +1 -1
  93. package/dist/utils/format-detector.js +1 -1
  94. package/dist/utils/formatters.js +1 -1
  95. package/dist/utils/json-loader.js +1 -1
  96. package/dist/utils/llm-backup-utils.js +1 -1
  97. package/dist/utils/model-aliases.js +1 -1
  98. package/dist/utils/model-factors.js +1 -1
  99. package/dist/utils/option-validation.js +1 -1
  100. package/dist/utils/port.js +1 -1
  101. package/dist/utils/process.js +1 -1
  102. package/dist/utils/prompt.js +1 -1
  103. package/dist/utils/segment-path-parser.js +1 -1
  104. package/dist/utils/segment-ref-parser.js +1 -1
  105. package/dist/utils/spinner.js +1 -1
  106. package/dist/utils/sql-parser.js +1 -1
  107. package/dist/utils/sse-parser.js +1 -1
  108. package/dist/utils/string-utils.js +1 -1
  109. package/dist/utils/table-ref-parser.js +1 -1
  110. package/dist/utils/tdx-config.js +1 -1
  111. package/dist/utils/tdx-logger.js +1 -1
  112. package/dist/utils/tree-formatter.js +1 -1
  113. package/dist/utils/version-check.js +1 -1
  114. package/dist/utils/workflow-utils.js +1 -1
  115. package/package.json +1 -1
@@ -1 +1 @@
1
- function a95_0x27b0(_0x24fd74,_0xefe1a0){_0x24fd74=_0x24fd74-0xf7;const _0xd05a7a=a95_0xd05a();let _0x27b0aa=_0xd05a7a[_0x24fd74];return _0x27b0aa;}(function(_0xd980fd,_0x334d84){const _0x45aaf6=a95_0x27b0,_0x3d2c9f=_0xd980fd();while(!![]){try{const _0x1af2e1=parseInt(_0x45aaf6(0x107))/0x1+-parseInt(_0x45aaf6(0x126))/0x2+-parseInt(_0x45aaf6(0x11e))/0x3*(-parseInt(_0x45aaf6(0x115))/0x4)+-parseInt(_0x45aaf6(0x12f))/0x5*(-parseInt(_0x45aaf6(0x129))/0x6)+parseInt(_0x45aaf6(0x11c))/0x7*(parseInt(_0x45aaf6(0x102))/0x8)+parseInt(_0x45aaf6(0x111))/0x9+-parseInt(_0x45aaf6(0x12d))/0xa;if(_0x1af2e1===_0x334d84)break;else _0x3d2c9f['push'](_0x3d2c9f['shift']());}catch(_0x1da51a){_0x3d2c9f['push'](_0x3d2c9f['shift']());}}}(a95_0xd05a,0xdee60));function a95_0xd05a(){const _0x4f921f=['attribute','execute','9493524xMThvR','source','dim','extra','30128zXllQR','type','Schema\x20query:\x0a','Unknown','Attributes','varchar','slice','546uYdkjF','error','480cQGZQp','bold','behaviorName','null','name','sort','replace','Behaviors','235434bFmndj','parentColumn','push','6DgsgEF','\x0a)\x20AS\x20segment_query\x20LIMIT\x200','\x20\x20\x20\x20','set','39234840mnTOaP','parentTableName','7412645vsEGbt','tableName','length','default','size','column_name','groupingName','map','cyan','startsWith','entries','verbose','60056HWhFLL','query','get','behavior','fields','626162lgjOzo','Fetching\x20schema...','filter','trim','displayName','key','YES','localeCompare'];a95_0xd05a=function(){return _0x4f921f;};return a95_0xd05a();}import a95_0x51080f from'chalk';import{withQuerySpinner}from'./spinner.js';export function buildSchemaResult(_0x203f9a){const _0x4b5caf=a95_0x27b0,_0x47318e=_0x203f9a['columns'][_0x4b5caf(0xfd)](_0x1a7e94=>({'column_name':_0x1a7e94[_0x4b5caf(0x122)],'column_type':_0x1a7e94[_0x4b5caf(0x116)],'null':_0x4b5caf(0x10d),'key':null,'default':null,'extra':null}));return{..._0x203f9a,'columns':[{'name':_0x4b5caf(0xfb),'type':'varchar'},{'name':'column_type','type':_0x4b5caf(0x11a)},{'name':_0x4b5caf(0x121),'type':'varchar'},{'name':_0x4b5caf(0x10c),'type':_0x4b5caf(0x11a)},{'name':_0x4b5caf(0xf9),'type':_0x4b5caf(0x11a)},{'name':_0x4b5caf(0x114),'type':'varchar'}],'data':_0x47318e};}export async function executeSchemaQuery(_0x5b2669,_0x20c50e,_0x2a229e){const _0x56ff45=a95_0x27b0,_0x5397be=_0x5b2669[_0x56ff45(0x10a)]()[_0x56ff45(0x124)](/;+$/,''),_0x30b204='SELECT\x20*\x20FROM\x20(\x0a'+_0x5397be+_0x56ff45(0x12a);_0x2a229e[_0x56ff45(0x101)]&&console['error'](_0x56ff45(0x117)+_0x30b204);const _0x416ca8=await withQuerySpinner(_0x56ff45(0x108),async _0x5ebd52=>{const _0x210cc7=_0x56ff45,_0x4ef16c=await _0x20c50e[_0x210cc7(0x103)][_0x210cc7(0x110)](_0x30b204,{'catalog':'td','schema':'information_schema','onJobId':_0x17ab89=>{_0x5ebd52['setJobId'](_0x17ab89);}});return _0x4ef16c;},{'verbose':_0x2a229e[_0x56ff45(0x101)]});return buildSchemaResult(_0x416ca8['data']);}export function displayFieldsHumanReadable(_0x4cf222,_0x48c8a5){const _0xcf263c=a95_0x27b0,_0x1d7dde=_0x4cf222[_0xcf263c(0x109)](_0x5f1b99=>_0x5f1b99[_0xcf263c(0x112)]===_0xcf263c(0x10f)),_0x2b662b=_0x4cf222[_0xcf263c(0x109)](_0xae79f0=>_0xae79f0[_0xcf263c(0x112)]===_0xcf263c(0x105)),_0x37a937=new Map();for(const _0x393e51 of _0x1d7dde){const _0xef2470=_0x393e51[_0xcf263c(0xfc)]||_0x393e51['parentTableName']||_0xcf263c(0x118),_0x50adda=_0x37a937[_0xcf263c(0x104)](_0xef2470);_0x50adda?_0x50adda[_0xcf263c(0x106)][_0xcf263c(0x128)](_0x393e51):_0x37a937['set'](_0xef2470,{'displayName':_0xef2470,'tableName':_0x393e51[_0xcf263c(0x12e)],'fields':[_0x393e51]});}const _0xd816ca=new Map();for(const _0x518d92 of _0x2b662b){const _0x381c49=_0x518d92[_0xcf263c(0x120)]||_0xcf263c(0x118),_0x334d90=_0xd816ca['get'](_0x381c49)||[];_0x334d90['push'](_0x518d92),_0xd816ca[_0xcf263c(0x12c)](_0x381c49,_0x334d90);}console[_0xcf263c(0x11d)]('\x0a'+a95_0x51080f['bold'](_0x48c8a5));if(_0x37a937[_0xcf263c(0xfa)]>0x0){console['error']('\x0a'+a95_0x51080f[_0xcf263c(0x113)](_0xcf263c(0x119)));const _0xd16a1c=[..._0x37a937[_0xcf263c(0x100)]()][_0xcf263c(0x123)]((_0x59326d,_0x5016eb)=>_0x59326d[0x0][_0xcf263c(0x10e)](_0x5016eb[0x0]));for(const [,_0x7f1913]of _0xd16a1c){const _0x59e81a=_0x7f1913['tableName']&&_0x7f1913[_0xcf263c(0xf7)]!==_0x7f1913[_0xcf263c(0x10b)]?'\x20'+a95_0x51080f[_0xcf263c(0x113)]('('+_0x7f1913[_0xcf263c(0xf7)]+')'):'';console[_0xcf263c(0x11d)]('\x20\x20'+a95_0x51080f[_0xcf263c(0x11f)](_0x7f1913[_0xcf263c(0x10b)])+_0x59e81a);const _0x30b855=[..._0x7f1913[_0xcf263c(0x106)]][_0xcf263c(0x123)]((_0x36382c,_0x5a62ee)=>_0x36382c[_0xcf263c(0x122)][_0xcf263c(0x10e)](_0x5a62ee[_0xcf263c(0x122)]));for(const _0x184b82 of _0x30b855){const _0x1ac977=_0x184b82[_0xcf263c(0x127)]&&_0x184b82[_0xcf263c(0x127)]!==_0x184b82[_0xcf263c(0x122)]?'\x20'+a95_0x51080f[_0xcf263c(0x113)]('('+_0x184b82[_0xcf263c(0x127)]+')'):'';console[_0xcf263c(0x11d)](_0xcf263c(0x12b)+_0x184b82[_0xcf263c(0x122)]+_0x1ac977+':\x20'+a95_0x51080f[_0xcf263c(0xfe)](_0x184b82[_0xcf263c(0x116)]));}}}if(_0xd816ca[_0xcf263c(0xfa)]>0x0){console[_0xcf263c(0x11d)]('\x0a'+a95_0x51080f['dim'](_0xcf263c(0x125)));const _0x2bd156=[..._0xd816ca[_0xcf263c(0x100)]()][_0xcf263c(0x123)]((_0x24ac81,_0x380fa0)=>_0x24ac81[0x0][_0xcf263c(0x10e)](_0x380fa0[0x0]));for(const [_0x4ce46a,_0x3255fd]of _0x2bd156){const _0x30b8cc=_0x3255fd[0x0],_0x22bfcc=_0x30b8cc?.[_0xcf263c(0x12e)]||'';console['error']('\x20\x20'+a95_0x51080f[_0xcf263c(0x11f)](_0x4ce46a)+(_0x22bfcc?'\x20'+a95_0x51080f[_0xcf263c(0x113)]('('+_0x22bfcc+')'):''));const _0x4b4dd7=[..._0x3255fd][_0xcf263c(0x123)]((_0x37b1b5,_0x4554bc)=>_0x37b1b5['name'][_0xcf263c(0x10e)](_0x4554bc[_0xcf263c(0x122)]));for(const _0x33f88f of _0x4b4dd7){const _0x83eb94=_0x33f88f[_0xcf263c(0x122)][_0xcf263c(0xff)](_0x4ce46a+'.')?_0x33f88f[_0xcf263c(0x122)][_0xcf263c(0x11b)](_0x4ce46a[_0xcf263c(0xf8)]+0x1):_0x33f88f[_0xcf263c(0x122)],_0x5086a5=_0x33f88f['parentColumn']&&_0x33f88f[_0xcf263c(0x127)]!==_0x83eb94?'\x20'+a95_0x51080f[_0xcf263c(0x113)]('('+_0x33f88f[_0xcf263c(0x127)]+')'):'';console[_0xcf263c(0x11d)](_0xcf263c(0x12b)+_0x83eb94+_0x5086a5+':\x20'+a95_0x51080f[_0xcf263c(0xfe)](_0x33f88f[_0xcf263c(0x116)]));}}}console['error']('');}
1
+ function a95_0x3f76(_0xbcf826,_0x44a477){_0xbcf826=_0xbcf826-0xb7;const _0x18e833=a95_0x18e8();let _0x3f76a9=_0x18e833[_0xbcf826];return _0x3f76a9;}(function(_0x593f9a,_0x57bda0){const _0x2dd52f=a95_0x3f76,_0x4d4289=_0x593f9a();while(!![]){try{const _0x215a9c=parseInt(_0x2dd52f(0xbd))/0x1+-parseInt(_0x2dd52f(0xbf))/0x2+parseInt(_0x2dd52f(0xdf))/0x3+parseInt(_0x2dd52f(0xc8))/0x4+parseInt(_0x2dd52f(0xea))/0x5+parseInt(_0x2dd52f(0xdd))/0x6*(parseInt(_0x2dd52f(0xd0))/0x7)+-parseInt(_0x2dd52f(0xd4))/0x8*(parseInt(_0x2dd52f(0xe9))/0x9);if(_0x215a9c===_0x57bda0)break;else _0x4d4289['push'](_0x4d4289['shift']());}catch(_0xe79534){_0x4d4289['push'](_0x4d4289['shift']());}}}(a95_0x18e8,0x9a13c));import a95_0x510418 from'chalk';function a95_0x18e8(){const _0x18fd41=['Schema\x20query:\x0a','execute','bold','\x20\x20\x20\x20','attribute','column_name','3146624HnkbqJ','entries','size','sort','groupingName','Attributes','source','Behaviors','559083SJJMoK','columns','parentTableName','error','24zhwOpE','length','name','information_schema','get','key','Fetching\x20schema...','set','localeCompare','30pendlO','extra','1317069yMCxqv','replace','fields','slice','displayName','Unknown','varchar','dim','verbose','column_type','6049305efKHQf','5906935FbmUnz','data','map','push','SELECT\x20*\x20FROM\x20(\x0a','behaviorName','cyan','9750KHvCox','parentColumn','337252VMDuUQ','trim','tableName'];a95_0x18e8=function(){return _0x18fd41;};return a95_0x18e8();}import{withQuerySpinner}from'./spinner.js';export function buildSchemaResult(_0x338dc9){const _0x5228a7=a95_0x3f76,_0x532029=_0x338dc9[_0x5228a7(0xd1)][_0x5228a7(0xb8)](_0x47627b=>({'column_name':_0x47627b[_0x5228a7(0xd6)],'column_type':_0x47627b['type'],'null':'YES','key':null,'default':null,'extra':null}));return{..._0x338dc9,'columns':[{'name':_0x5228a7(0xc7),'type':_0x5228a7(0xe5)},{'name':_0x5228a7(0xe8),'type':_0x5228a7(0xe5)},{'name':'null','type':_0x5228a7(0xe5)},{'name':_0x5228a7(0xd9),'type':_0x5228a7(0xe5)},{'name':'default','type':_0x5228a7(0xe5)},{'name':_0x5228a7(0xde),'type':_0x5228a7(0xe5)}],'data':_0x532029};}export async function executeSchemaQuery(_0x307deb,_0x6a031d,_0x207536){const _0x5f27d7=a95_0x3f76,_0x25b6e7=_0x307deb[_0x5f27d7(0xc0)]()[_0x5f27d7(0xe0)](/;+$/,''),_0x515719=_0x5f27d7(0xba)+_0x25b6e7+'\x0a)\x20AS\x20segment_query\x20LIMIT\x200';_0x207536[_0x5f27d7(0xe7)]&&console[_0x5f27d7(0xd3)](_0x5f27d7(0xc2)+_0x515719);const _0x37289f=await withQuerySpinner(_0x5f27d7(0xda),async _0x30ce85=>{const _0x28c712=_0x5f27d7,_0x3e33bb=await _0x6a031d['query'][_0x28c712(0xc3)](_0x515719,{'catalog':'td','schema':_0x28c712(0xd7),'onJobId':_0x356520=>{_0x30ce85['setJobId'](_0x356520);}});return _0x3e33bb;},{'verbose':_0x207536['verbose']});return buildSchemaResult(_0x37289f[_0x5f27d7(0xb7)]);}export function displayFieldsHumanReadable(_0x250ed9,_0x585552){const _0x4cce7f=a95_0x3f76,_0xc4db3c=_0x250ed9['filter'](_0x3b8400=>_0x3b8400[_0x4cce7f(0xce)]===_0x4cce7f(0xc6)),_0x172f43=_0x250ed9['filter'](_0x52db9c=>_0x52db9c['source']==='behavior'),_0x3b7d66=new Map();for(const _0x1e9ff9 of _0xc4db3c){const _0x1184dd=_0x1e9ff9[_0x4cce7f(0xcc)]||_0x1e9ff9['parentTableName']||_0x4cce7f(0xe4),_0x4a1bd5=_0x3b7d66[_0x4cce7f(0xd8)](_0x1184dd);_0x4a1bd5?_0x4a1bd5[_0x4cce7f(0xe1)][_0x4cce7f(0xb9)](_0x1e9ff9):_0x3b7d66[_0x4cce7f(0xdb)](_0x1184dd,{'displayName':_0x1184dd,'tableName':_0x1e9ff9[_0x4cce7f(0xd2)],'fields':[_0x1e9ff9]});}const _0x5e77eb=new Map();for(const _0x4f7236 of _0x172f43){const _0x1498d0=_0x4f7236[_0x4cce7f(0xbb)]||_0x4cce7f(0xe4),_0x485625=_0x5e77eb[_0x4cce7f(0xd8)](_0x1498d0)||[];_0x485625[_0x4cce7f(0xb9)](_0x4f7236),_0x5e77eb[_0x4cce7f(0xdb)](_0x1498d0,_0x485625);}console['error']('\x0a'+a95_0x510418[_0x4cce7f(0xc4)](_0x585552));if(_0x3b7d66['size']>0x0){console['error']('\x0a'+a95_0x510418['dim'](_0x4cce7f(0xcd)));const _0x56ef05=[..._0x3b7d66[_0x4cce7f(0xc9)]()][_0x4cce7f(0xcb)]((_0x280cc7,_0x4c7e80)=>_0x280cc7[0x0][_0x4cce7f(0xdc)](_0x4c7e80[0x0]));for(const [,_0x2570f4]of _0x56ef05){const _0x489bdb=_0x2570f4[_0x4cce7f(0xc1)]&&_0x2570f4[_0x4cce7f(0xc1)]!==_0x2570f4[_0x4cce7f(0xe3)]?'\x20'+a95_0x510418[_0x4cce7f(0xe6)]('('+_0x2570f4['tableName']+')'):'';console[_0x4cce7f(0xd3)]('\x20\x20'+a95_0x510418[_0x4cce7f(0xc4)](_0x2570f4['displayName'])+_0x489bdb);const _0x761327=[..._0x2570f4[_0x4cce7f(0xe1)]]['sort']((_0x285564,_0x342075)=>_0x285564[_0x4cce7f(0xd6)][_0x4cce7f(0xdc)](_0x342075['name']));for(const _0x1fbd00 of _0x761327){const _0x427ffe=_0x1fbd00['parentColumn']&&_0x1fbd00[_0x4cce7f(0xbe)]!==_0x1fbd00[_0x4cce7f(0xd6)]?'\x20'+a95_0x510418['dim']('('+_0x1fbd00[_0x4cce7f(0xbe)]+')'):'';console[_0x4cce7f(0xd3)]('\x20\x20\x20\x20'+_0x1fbd00[_0x4cce7f(0xd6)]+_0x427ffe+':\x20'+a95_0x510418[_0x4cce7f(0xbc)](_0x1fbd00['type']));}}}if(_0x5e77eb[_0x4cce7f(0xca)]>0x0){console[_0x4cce7f(0xd3)]('\x0a'+a95_0x510418[_0x4cce7f(0xe6)](_0x4cce7f(0xcf)));const _0x328eb4=[..._0x5e77eb['entries']()]['sort']((_0x67d712,_0x53efc6)=>_0x67d712[0x0][_0x4cce7f(0xdc)](_0x53efc6[0x0]));for(const [_0x2c9f86,_0x3f8fba]of _0x328eb4){const _0x58e317=_0x3f8fba[0x0],_0x5760f9=_0x58e317?.[_0x4cce7f(0xd2)]||'';console[_0x4cce7f(0xd3)]('\x20\x20'+a95_0x510418['bold'](_0x2c9f86)+(_0x5760f9?'\x20'+a95_0x510418['dim']('('+_0x5760f9+')'):''));const _0x43651c=[..._0x3f8fba][_0x4cce7f(0xcb)]((_0x1dec79,_0x58618d)=>_0x1dec79['name']['localeCompare'](_0x58618d[_0x4cce7f(0xd6)]));for(const _0x48e8b0 of _0x43651c){const _0x5e1751=_0x48e8b0['name']['startsWith'](_0x2c9f86+'.')?_0x48e8b0[_0x4cce7f(0xd6)][_0x4cce7f(0xe2)](_0x2c9f86[_0x4cce7f(0xd5)]+0x1):_0x48e8b0[_0x4cce7f(0xd6)],_0x41a37b=_0x48e8b0[_0x4cce7f(0xbe)]&&_0x48e8b0[_0x4cce7f(0xbe)]!==_0x5e1751?'\x20'+a95_0x510418[_0x4cce7f(0xe6)]('('+_0x48e8b0[_0x4cce7f(0xbe)]+')'):'';console[_0x4cce7f(0xd3)](_0x4cce7f(0xc5)+_0x5e1751+_0x41a37b+':\x20'+a95_0x510418[_0x4cce7f(0xbc)](_0x48e8b0['type']));}}}console['error']('');}
@@ -1 +1 @@
1
- function a96_0x4c01(_0x9f2adc,_0x3de997){_0x9f2adc=_0x9f2adc-0x192;const _0x1096b2=a96_0x1096();let _0x4c0189=_0x1096b2[_0x9f2adc];return _0x4c0189;}(function(_0x2e620d,_0x16e71e){const _0x9c8b26=a96_0x4c01,_0x3932c7=_0x2e620d();while(!![]){try{const _0x300f46=parseInt(_0x9c8b26(0x19f))/0x1+-parseInt(_0x9c8b26(0x199))/0x2+parseInt(_0x9c8b26(0x1a4))/0x3+parseInt(_0x9c8b26(0x197))/0x4+parseInt(_0x9c8b26(0x1a0))/0x5+parseInt(_0x9c8b26(0x1a1))/0x6*(-parseInt(_0x9c8b26(0x19c))/0x7)+-parseInt(_0x9c8b26(0x19b))/0x8;if(_0x300f46===_0x16e71e)break;else _0x3932c7['push'](_0x3932c7['shift']());}catch(_0x19be10){_0x3932c7['push'](_0x3932c7['shift']());}}}(a96_0x1096,0x5396d));import*as a96_0x1cd9d0 from'node:fs';import*as a96_0x56f838 from'node:path';export function setSecureFilePermissions(_0x4e0b5d){const _0x1dfb1a=a96_0x4c01;try{a96_0x1cd9d0[_0x1dfb1a(0x198)](_0x4e0b5d,0x180);}catch{console['warn'](_0x1dfb1a(0x194)+_0x4e0b5d);}}export function setSecureDirectoryPermissions(_0xc9f4a3){const _0x5a76e1=a96_0x4c01;try{a96_0x1cd9d0[_0x5a76e1(0x198)](_0xc9f4a3,0x1c0);}catch{console['warn'](_0x5a76e1(0x194)+_0xc9f4a3);}}export function createSecureDirectory(_0x9f45e){const _0x49fdfd=a96_0x4c01;!a96_0x1cd9d0[_0x49fdfd(0x192)](_0x9f45e)&&(a96_0x1cd9d0[_0x49fdfd(0x19e)](_0x9f45e,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x9f45e));}function a96_0x1096(){const _0x526f3b=['toString','2410312RcOZAL','42623XSznVt','\x20has\x20insecure\x20permissions\x20(','mkdirSync','159980KeLLJQ','163655tTJnaz','534AFvlQd','Should\x20be\x200600\x20or\x20more\x20restrictive.','warn','2028375mNMcYv','Warning:\x20','existsSync','writeFileSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','dirname','mode','2628620PJGZsm','chmodSync','680800KIcFvT'];a96_0x1096=function(){return _0x526f3b;};return a96_0x1096();}export function validateSecureFilePermissions(_0x29eda7){const _0x4e29c8=a96_0x4c01;try{const _0x58c269=a96_0x1cd9d0['statSync'](_0x29eda7),_0x3b5fbb=_0x58c269[_0x4e29c8(0x196)]&0x1ff,_0x40b2fd=(_0x3b5fbb&0x3f)!==0x0;if(_0x40b2fd)return console[_0x4e29c8(0x1a3)](_0x4e29c8(0x1a5)+_0x29eda7+_0x4e29c8(0x19d)+_0x3b5fbb[_0x4e29c8(0x19a)](0x8)+').\x20'+_0x4e29c8(0x1a2)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x31579e,_0x1dd833){const _0xd22364=a96_0x4c01,_0x218ea4=a96_0x56f838[_0xd22364(0x195)](_0x31579e);createSecureDirectory(_0x218ea4),a96_0x1cd9d0[_0xd22364(0x193)](_0x31579e,_0x1dd833,{'mode':0x180}),setSecureFilePermissions(_0x31579e);}
1
+ function a96_0x571a(_0x166090,_0x36da7d){_0x166090=_0x166090-0xa4;const _0x5137fd=a96_0x5137();let _0x571a24=_0x5137fd[_0x166090];return _0x571a24;}function a96_0x5137(){const _0x3bdb72=['3296556EhsXpX','statSync','writeFileSync','chmodSync','476876HEOrpa','warn','430NNjUMo','mkdirSync','dirname',').\x20','716wDjekv','55adsXBM','1969479CdxoAD','toString','\x20has\x20insecure\x20permissions\x20(','289487EpTBiV','7XJoeYy','8YnRPpX','mode','existsSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','6400788qXEuuW','Warning:\x20','130jZXUlX','1803096uwvbyF','7TBdjPu'];a96_0x5137=function(){return _0x3bdb72;};return a96_0x5137();}(function(_0x527736,_0x495c43){const _0x2658c9=a96_0x571a,_0x18a51b=_0x527736();while(!![]){try{const _0x9da595=parseInt(_0x2658c9(0xb2))/0x1*(-parseInt(_0x2658c9(0xac))/0x2)+-parseInt(_0x2658c9(0xba))/0x3+-parseInt(_0x2658c9(0xa6))/0x4*(parseInt(_0x2658c9(0xad))/0x5)+-parseInt(_0x2658c9(0xb7))/0x6*(parseInt(_0x2658c9(0xbb))/0x7)+parseInt(_0x2658c9(0xb3))/0x8*(-parseInt(_0x2658c9(0xae))/0x9)+-parseInt(_0x2658c9(0xa8))/0xa*(-parseInt(_0x2658c9(0xb1))/0xb)+-parseInt(_0x2658c9(0xbc))/0xc*(-parseInt(_0x2658c9(0xb9))/0xd);if(_0x9da595===_0x495c43)break;else _0x18a51b['push'](_0x18a51b['shift']());}catch(_0xee7de8){_0x18a51b['push'](_0x18a51b['shift']());}}}(a96_0x5137,0xa5929));import*as a96_0x55bf09 from'node:fs';import*as a96_0x392ad4 from'node:path';export function setSecureFilePermissions(_0x39d7a8){const _0x36eda3=a96_0x571a;try{a96_0x55bf09[_0x36eda3(0xa5)](_0x39d7a8,0x180);}catch{console[_0x36eda3(0xa7)](_0x36eda3(0xb6)+_0x39d7a8);}}export function setSecureDirectoryPermissions(_0x4c01c3){const _0x2b5b5d=a96_0x571a;try{a96_0x55bf09['chmodSync'](_0x4c01c3,0x1c0);}catch{console[_0x2b5b5d(0xa7)](_0x2b5b5d(0xb6)+_0x4c01c3);}}export function createSecureDirectory(_0x1b2f89){const _0x135ee6=a96_0x571a;!a96_0x55bf09[_0x135ee6(0xb5)](_0x1b2f89)&&(a96_0x55bf09[_0x135ee6(0xa9)](_0x1b2f89,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x1b2f89));}export function validateSecureFilePermissions(_0x1f2157){const _0x1bf443=a96_0x571a;try{const _0x15bf35=a96_0x55bf09[_0x1bf443(0xbd)](_0x1f2157),_0x47658b=_0x15bf35[_0x1bf443(0xb4)]&0x1ff,_0x349c40=(_0x47658b&0x3f)!==0x0;if(_0x349c40)return console[_0x1bf443(0xa7)](_0x1bf443(0xb8)+_0x1f2157+_0x1bf443(0xb0)+_0x47658b[_0x1bf443(0xaf)](0x8)+_0x1bf443(0xab)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x3cbba9,_0x5c63de){const _0x57b4f2=a96_0x571a,_0x195666=a96_0x392ad4[_0x57b4f2(0xaa)](_0x3cbba9);createSecureDirectory(_0x195666),a96_0x55bf09[_0x57b4f2(0xa4)](_0x3cbba9,_0x5c63de,{'mode':0x180}),setSecureFilePermissions(_0x3cbba9);}
@@ -1 +1 @@
1
- (function(_0x43e85a,_0x55639d){const _0x5da9c5=a97_0x4585,_0x552887=_0x43e85a();while(!![]){try{const _0x53392e=parseInt(_0x5da9c5(0x122))/0x1*(-parseInt(_0x5da9c5(0x131))/0x2)+-parseInt(_0x5da9c5(0x130))/0x3+-parseInt(_0x5da9c5(0x124))/0x4+-parseInt(_0x5da9c5(0x129))/0x5*(-parseInt(_0x5da9c5(0x127))/0x6)+parseInt(_0x5da9c5(0x133))/0x7*(-parseInt(_0x5da9c5(0x12b))/0x8)+parseInt(_0x5da9c5(0x123))/0x9*(parseInt(_0x5da9c5(0x125))/0xa)+parseInt(_0x5da9c5(0x12a))/0xb*(parseInt(_0x5da9c5(0x12f))/0xc);if(_0x53392e===_0x55639d)break;else _0x552887['push'](_0x552887['shift']());}catch(_0x312781){_0x552887['push'](_0x552887['shift']());}}}(a97_0x45c8,0x860e4));function a97_0x45c8(){const _0x51a2d1=['10218396GZjsIh','2241756jqXxPi','490142lrMLDC','tsv','7512281eujvKo','json','1BkyovC','657297WasLJq','3830260lJQoKx','30llPUlF','text','319386jKMled','jsonl','75QKhwhI','33qtspmR','8WbFBSz','table','tab','split'];a97_0x45c8=function(){return _0x51a2d1;};return a97_0x45c8();}function a97_0x4585(_0x3a2cea,_0x17862b){_0x3a2cea=_0x3a2cea-0x122;const _0x45c8c3=a97_0x45c8();let _0x458543=_0x45c8c3[_0x3a2cea];return _0x458543;}export function detectFormatFromExtension(_0x5b5f0f){const _0x47d1c4=a97_0x4585,_0x8c554b=_0x5b5f0f['toLowerCase']()[_0x47d1c4(0x12e)]('.')['pop']();switch(_0x8c554b){case _0x47d1c4(0x134):return _0x47d1c4(0x134);case _0x47d1c4(0x128):return _0x47d1c4(0x128);case'tsv':case _0x47d1c4(0x12d):return _0x47d1c4(0x132);case'txt':case _0x47d1c4(0x126):return _0x47d1c4(0x12c);default:return undefined;}}export function resolveOutputFormat(_0x1e161e,_0x594d74,_0x511453){if(_0x1e161e)return _0x1e161e;if(_0x594d74){const _0x38a9fc=detectFormatFromExtension(_0x594d74);if(_0x38a9fc)return _0x38a9fc;}return _0x511453;}
1
+ (function(_0x2b2a6e,_0x411104){const _0x28afaf=a97_0x5b0d,_0xfbd41f=_0x2b2a6e();while(!![]){try{const _0x8983f7=-parseInt(_0x28afaf(0xd2))/0x1+parseInt(_0x28afaf(0xd3))/0x2+parseInt(_0x28afaf(0xd0))/0x3*(-parseInt(_0x28afaf(0xc5))/0x4)+parseInt(_0x28afaf(0xc3))/0x5*(-parseInt(_0x28afaf(0xcd))/0x6)+parseInt(_0x28afaf(0xc8))/0x7*(-parseInt(_0x28afaf(0xca))/0x8)+-parseInt(_0x28afaf(0xc4))/0x9+-parseInt(_0x28afaf(0xcb))/0xa*(-parseInt(_0x28afaf(0xc7))/0xb);if(_0x8983f7===_0x411104)break;else _0xfbd41f['push'](_0xfbd41f['shift']());}catch(_0x2b9c66){_0xfbd41f['push'](_0xfbd41f['shift']());}}}(a97_0x3b99,0x79073));function a97_0x5b0d(_0x37d1e5,_0x1d0b84){_0x37d1e5=_0x37d1e5-0xc1;const _0x3b9913=a97_0x3b99();let _0x5b0dd8=_0x3b9913[_0x37d1e5];return _0x5b0dd8;}export function detectFormatFromExtension(_0x520a17){const _0x338137=a97_0x5b0d,_0x36cdb6=_0x520a17[_0x338137(0xc1)]()[_0x338137(0xc6)]('.')[_0x338137(0xce)]();switch(_0x36cdb6){case _0x338137(0xd1):return _0x338137(0xd1);case _0x338137(0xcc):return _0x338137(0xcc);case _0x338137(0xcf):case _0x338137(0xc2):return _0x338137(0xcf);case _0x338137(0xc9):case'text':return'table';default:return undefined;}}export function resolveOutputFormat(_0x2cf9e2,_0x514e4d,_0x1a4ff5){if(_0x2cf9e2)return _0x2cf9e2;if(_0x514e4d){const _0x3b8cb0=detectFormatFromExtension(_0x514e4d);if(_0x3b8cb0)return _0x3b8cb0;}return _0x1a4ff5;}function a97_0x3b99(){const _0x1a67b2=['tsv','282339tyCyzF','json','313604AtPwbu','899648FohXXo','toLowerCase','tab','92800weUJNS','4214367ruglzg','32SYmcQS','split','1031305MMtKqA','21NaTEta','txt','1055512atCaNi','290oVFyHG','jsonl','240rhiWqx','pop'];a97_0x3b99=function(){return _0x1a67b2;};return a97_0x3b99();}
@@ -1 +1 @@
1
- function a98_0x4255(){const _0x41afa4=['345510uAEbQp','replace','stringify','string','test','226mCPGCj','table','jsonl','pow','number','repeat','min','false','true','toISOString','5057220mhLnqd','object','length','toLowerCase','tsv','slice','map','data','startsWith','\x20rows\x20(','toFixed','floor','double','1831WKKBjc','736192ibJNhG','3590270fFUFNi','1654521HutgKF','No\x20rows\x20returned','108BYnbke','padEnd','array','join','long','columns','reduce','type','bool','date','push','log','forEach','0\x20B','\x20row','int','3286860Xaojmo','name','boolean','stdout','timestamp','toString'];a98_0x4255=function(){return _0x41afa4;};return a98_0x4255();}(function(_0x33b4f8,_0x81662a){const _0x179421=a98_0x117e,_0x434526=_0x33b4f8();while(!![]){try{const _0x22867b=-parseInt(_0x179421(0x15a))/0x1*(-parseInt(_0x179421(0x143))/0x2)+parseInt(_0x179421(0x15d))/0x3+parseInt(_0x179421(0x138))/0x4+-parseInt(_0x179421(0x15c))/0x5+parseInt(_0x179421(0x13e))/0x6+parseInt(_0x179421(0x14d))/0x7+parseInt(_0x179421(0x15b))/0x8*(-parseInt(_0x179421(0x15f))/0x9);if(_0x22867b===_0x81662a)break;else _0x434526['push'](_0x434526['shift']());}catch(_0x3663c9){_0x434526['push'](_0x434526['shift']());}}}(a98_0x4255,0x834e4));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x3e7c28=a98_0x117e;return process[_0x3e7c28(0x13b)]['columns']||Infinity;}export function formatAsTable(_0x1e51c1,_0x3f7b6c=DEFAULT_MAX_DISPLAY_ROWS,_0x5c683a=![],_0x5ab8a1={}){const _0x521c14=a98_0x117e;if(_0x1e51c1[_0x521c14(0x154)]['length']===0x0)return _0x521c14(0x15e);const _0x5226e9=_0x1e51c1['columns'][_0x521c14(0x153)](_0x10a7f2=>_0x10a7f2['name']),_0x1651b8=_0x1e51c1[_0x521c14(0x164)]['map'](_0x4ad260=>simplifyType(_0x4ad260[_0x521c14(0x166)])),_0x4b5af1=_0x1e51c1['data'][_0x521c14(0x152)](0x0,_0x3f7b6c),_0x302da7=_0x1e51c1['data']['length'],_0x4ae326=_0x302da7>_0x3f7b6c,_0x318cf3=[],_0x4fa197=getTerminalWidth(),_0x14c782=_0x4fa197!==Infinity,_0x61bab8=0x32;let _0x596e8b=_0x5226e9['map']((_0x4b8c84,_0x3667c4)=>{const _0x3c86bf=_0x521c14,_0xe20d31=stringWidth(_0x1651b8[_0x3667c4]),_0x206f9f=Math['max'](..._0x4b5af1['map'](_0x3cf3c6=>{const _0x145095=_0x3cf3c6[_0x4b8c84];return stringWidth(formatValue(_0x145095));})),_0xb4ea0e=Math['max'](stringWidth(_0x4b8c84),_0xe20d31,_0x206f9f);return _0x5c683a?_0xb4ea0e:Math[_0x3c86bf(0x149)](_0xb4ea0e,_0x61bab8);});if(_0x14c782&&!_0x5c683a&&_0x5226e9[_0x521c14(0x14f)]>0x0){const _0x362f1b=_0x222698=>{let _0x2f7689=0x1;for(const _0x1c1073 of _0x222698){_0x2f7689+=_0x1c1073+0x3;}return _0x2f7689+0x1;};let _0x167a6e=_0x362f1b(_0x596e8b);if(_0x167a6e>_0x4fa197){const _0x1adbe0=0x3;for(let _0x3a863e=_0x596e8b[_0x521c14(0x14f)]-0x1;_0x3a863e>=0x0;_0x3a863e--){_0x167a6e=_0x362f1b(_0x596e8b);if(_0x167a6e<=_0x4fa197)break;const _0x1c9349=_0x596e8b[_0x3a863e],_0x45dbaf=_0x167a6e-_0x4fa197,_0x438d6e=_0x1c9349-_0x1adbe0,_0x3c684c=Math[_0x521c14(0x149)](_0x45dbaf,_0x438d6e);_0x3c684c>0x0&&(_0x596e8b[_0x3a863e]=_0x1c9349-_0x3c684c);}}}const _0x556b4f=_0x5226e9,_0x3f2c84=_0x1651b8,_0x3bd79c=_0x596e8b,_0x388c26=_0x596e8b;_0x318cf3[_0x521c14(0x169)](colorBorder('┌'+_0x388c26['map'](_0x23f7c4=>'─'[_0x521c14(0x148)](_0x23f7c4+0x2))[_0x521c14(0x162)]('┬')+'┐',_0x5ab8a1));const _0x299fa5=_0x556b4f[_0x521c14(0x153)]((_0x5b353f,_0x11acbf)=>centerAlign(_0x5b353f,_0x3bd79c[_0x11acbf]));_0x318cf3[_0x521c14(0x169)](colorBorder('│',_0x5ab8a1)+'\x20'+_0x299fa5['join']('\x20'+colorBorder('│',_0x5ab8a1)+'\x20')+'\x20'+colorBorder('│',_0x5ab8a1));const _0x46eaa1=_0x3f2c84[_0x521c14(0x153)]((_0x47a58a,_0x4b209a)=>colorType(centerAlign(_0x47a58a,_0x3bd79c[_0x4b209a]),_0x5ab8a1));_0x318cf3[_0x521c14(0x169)](colorBorder('│',_0x5ab8a1)+'\x20'+_0x46eaa1[_0x521c14(0x162)]('\x20'+colorBorder('│',_0x5ab8a1)+'\x20')+'\x20'+colorBorder('│',_0x5ab8a1)),_0x318cf3[_0x521c14(0x169)](colorBorder('├'+_0x388c26['map'](_0x3fa7c6=>'─'['repeat'](_0x3fa7c6+0x2))[_0x521c14(0x162)]('┼')+'┤',_0x5ab8a1));const _0x565cff=(_0xbecf13,_0x420bf6)=>{const _0x4a5a26=stringWidth(_0xbecf13);if(_0x4a5a26<=_0x420bf6)return _0xbecf13;let _0x3fc6ea=_0xbecf13;while(stringWidth(_0x3fc6ea+'…')>_0x420bf6&&_0x3fc6ea['length']>0x0){_0x3fc6ea=_0x3fc6ea['slice'](0x0,-0x1);}return _0x3fc6ea+'…';};_0x4b5af1[_0x521c14(0x134)](_0x380d36=>{const _0x2a54e3=_0x521c14,_0x3e293b=_0x5226e9[_0x2a54e3(0x153)]((_0x27825,_0x2a41c6)=>{const _0x268687=_0x2a54e3,_0x3681aa=_0x380d36[_0x27825],_0x583346=formatValue(_0x3681aa),_0x367766=_0x3bd79c[_0x2a41c6],_0x1a54ea=_0x565cff(_0x583346,_0x367766),_0x321ada=typeof _0x3681aa===_0x268687(0x147)||typeof _0x3681aa===_0x268687(0x141)&&/^-?\d+$/[_0x268687(0x142)](_0x3681aa);return _0x321ada?padStart(_0x1a54ea,_0x367766):padEnd(_0x1a54ea,_0x367766);});_0x318cf3[_0x2a54e3(0x169)](colorBorder('│',_0x5ab8a1)+'\x20'+_0x3e293b[_0x2a54e3(0x162)]('\x20'+colorBorder('│',_0x5ab8a1)+'\x20')+'\x20'+colorBorder('│',_0x5ab8a1));});const _0x22f115=_0x388c26[_0x521c14(0x165)]((_0x4395fd,_0x58ce21)=>_0x4395fd+_0x58ce21+0x3,-0x1);_0x318cf3[_0x521c14(0x169)](colorBorder('├'+_0x388c26['map'](_0x351833=>'─'[_0x521c14(0x148)](_0x351833+0x2))['join']('┴')+'┤',_0x5ab8a1));let _0x52935c;_0x4ae326?_0x52935c=_0x302da7+_0x521c14(0x156)+_0x3f7b6c+'\x20shown)':_0x52935c=_0x302da7+_0x521c14(0x136)+(_0x302da7===0x1?'':'s');const _0x1cfb53=_0x52935c[_0x521c14(0x160)](_0x22f115-0x2);return _0x318cf3[_0x521c14(0x169)](colorBorder('│',_0x5ab8a1)+'\x20'+_0x1cfb53+'\x20'+colorBorder('│',_0x5ab8a1)),_0x318cf3['push'](colorBorder('└'+'─'[_0x521c14(0x148)](_0x22f115)+'┘',_0x5ab8a1)),_0x318cf3[_0x521c14(0x162)]('\x0a');}function simplifyType(_0x4edd8b){const _0x9cbfe6=a98_0x117e,_0x3e971b={'varchar':_0x9cbfe6(0x141),'bigint':_0x9cbfe6(0x163),'integer':_0x9cbfe6(0x137),'double':_0x9cbfe6(0x159),'boolean':_0x9cbfe6(0x167),'date':_0x9cbfe6(0x168),'timestamp':_0x9cbfe6(0x13c),'array':_0x9cbfe6(0x161),'map':'map','row':'row'},_0x1817db=_0x4edd8b[_0x9cbfe6(0x150)]();for(const [_0x31f944,_0x2b257f]of Object['entries'](_0x3e971b)){if(_0x1817db[_0x9cbfe6(0x155)](_0x31f944))return _0x2b257f;}return _0x4edd8b['length']>0xa?_0x4edd8b['substring'](0x0,0xa):_0x4edd8b;}export function formatAsJSON(_0x43ccca,_0x5e0cf6={}){const _0x2cd72e=a98_0x117e;if(_0x43ccca[_0x2cd72e(0x154)][_0x2cd72e(0x14f)]===0x0)return'[]';if(shouldUseColor(_0x5e0cf6))return colorizeJSON(_0x43ccca['data'],_0x5e0cf6);const _0xa88007=_0x43ccca[_0x2cd72e(0x154)][_0x2cd72e(0x153)](_0x5ca036=>'\x20\x20'+JSON[_0x2cd72e(0x140)](_0x5ca036));return'[\x0a'+_0xa88007[_0x2cd72e(0x162)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x534ee0,_0x1e70bd={}){const _0x437013=a98_0x117e;if(_0x534ee0[_0x437013(0x154)][_0x437013(0x14f)]===0x0)return'';if(shouldUseColor(_0x1e70bd))return _0x534ee0[_0x437013(0x154)][_0x437013(0x153)](_0x17705a=>colorizeJSONCompact(_0x17705a,_0x1e70bd))[_0x437013(0x162)]('\x0a');return _0x534ee0['data']['map'](_0x29aed6=>JSON[_0x437013(0x140)](_0x29aed6))[_0x437013(0x162)]('\x0a');}function a98_0x117e(_0x574e55,_0xde072d){_0x574e55=_0x574e55-0x133;const _0x42558d=a98_0x4255();let _0x117edd=_0x42558d[_0x574e55];return _0x117edd;}export function formatAsTSV(_0x34ddc3){const _0x2ae75e=a98_0x117e;if(_0x34ddc3['data']['length']===0x0)return'';const _0x5a9be9=[],_0x3c8e2b=_0x34ddc3['columns']['map'](_0x35d7e9=>_0x35d7e9[_0x2ae75e(0x139)]);return _0x5a9be9[_0x2ae75e(0x169)](_0x3c8e2b[_0x2ae75e(0x162)]('\x09')),_0x34ddc3[_0x2ae75e(0x154)][_0x2ae75e(0x134)](_0x17cfc9=>{const _0x4a488f=_0x2ae75e,_0x17772f=_0x3c8e2b['map'](_0x137c52=>{const _0x201972=_0x17cfc9[_0x137c52];return formatValueForTSV(_0x201972);});_0x5a9be9[_0x4a488f(0x169)](_0x17772f['join']('\x09'));}),_0x5a9be9[_0x2ae75e(0x162)]('\x0a');}function formatValue(_0x443a82){const _0x43ca21=a98_0x117e;if(_0x443a82===null||_0x443a82===undefined)return'';if(typeof _0x443a82===_0x43ca21(0x141)){const _0x1f87ad=_0x443a82['replace'](/\n/g,'\x5cn')[_0x43ca21(0x13f)](/\r/g,'\x5cr')[_0x43ca21(0x13f)](/\t/g,'\x5ct');return _0x1f87ad;}if(typeof _0x443a82===_0x43ca21(0x147))return String(_0x443a82);if(typeof _0x443a82==='boolean')return _0x443a82?_0x43ca21(0x14b):_0x43ca21(0x14a);if(_0x443a82 instanceof Date)return _0x443a82['toISOString']();if(typeof _0x443a82===_0x43ca21(0x14e))return JSON['stringify'](_0x443a82);return String(_0x443a82);}function formatValueForTSV(_0x2014b5){const _0x15435f=a98_0x117e;if(_0x2014b5===null||_0x2014b5===undefined)return'';if(typeof _0x2014b5===_0x15435f(0x141))return _0x2014b5['replace'](/\t/g,'\x5ct')[_0x15435f(0x13f)](/\n/g,'\x5cn');if(typeof _0x2014b5==='number'||typeof _0x2014b5===_0x15435f(0x13a))return String(_0x2014b5);if(_0x2014b5 instanceof Date)return _0x2014b5[_0x15435f(0x14c)]();if(typeof _0x2014b5==='object')return JSON[_0x15435f(0x140)](_0x2014b5);return String(_0x2014b5);}export function formatQueryResult(_0x4e2620,_0xee5b84){const _0x20d04e=a98_0x117e;switch(_0xee5b84){case _0x20d04e(0x144):return formatAsTable(_0x4e2620);case'json':return formatAsJSON(_0x4e2620);case _0x20d04e(0x145):return formatAsJSONL(_0x4e2620);case _0x20d04e(0x151):return formatAsTSV(_0x4e2620);default:return formatAsJSON(_0x4e2620);}}export function formatBytes(_0xd08b5){const _0x302508=a98_0x117e;if(_0xd08b5===0x0)return _0x302508(0x135);const _0x5d0a53=['B','KB','MB','GB','TB'],_0x5e7681=0x400,_0x3a468e=Math[_0x302508(0x158)](Math['log'](_0xd08b5)/Math[_0x302508(0x133)](_0x5e7681)),_0x549e2c=_0xd08b5/Math[_0x302508(0x146)](_0x5e7681,_0x3a468e),_0xc9bbde=_0x549e2c>=0xa?0x1:0x2;return _0x549e2c['toFixed'](_0xc9bbde)+'\x20'+_0x5d0a53[_0x3a468e];}export function formatRows(_0x21e323){const _0x54065d=a98_0x117e;if(_0x21e323==null)return'-';if(_0x21e323===0x0)return'0';if(_0x21e323<0x3e8)return _0x21e323[_0x54065d(0x13d)]();const _0x4d9231=['','K','M','B','T'],_0x4d6b22=0x3e8,_0x32d2e5=Math[_0x54065d(0x158)](Math[_0x54065d(0x133)](_0x21e323)/Math['log'](_0x4d6b22)),_0x107316=_0x21e323/Math[_0x54065d(0x146)](_0x4d6b22,_0x32d2e5),_0x57959f=_0x107316>=0xa?0x1:0x2;return''+_0x107316[_0x54065d(0x157)](_0x57959f)+_0x4d9231[_0x32d2e5];}
1
+ (function(_0x18f376,_0x1f210a){const _0x9f3bd4=a98_0x2dec,_0x2ba1bd=_0x18f376();while(!![]){try{const _0x2b2ec0=-parseInt(_0x9f3bd4(0x128))/0x1+-parseInt(_0x9f3bd4(0x12f))/0x2*(-parseInt(_0x9f3bd4(0x139))/0x3)+parseInt(_0x9f3bd4(0x11e))/0x4+-parseInt(_0x9f3bd4(0x13d))/0x5+parseInt(_0x9f3bd4(0x147))/0x6*(parseInt(_0x9f3bd4(0x136))/0x7)+parseInt(_0x9f3bd4(0x12b))/0x8+-parseInt(_0x9f3bd4(0x13c))/0x9;if(_0x2b2ec0===_0x1f210a)break;else _0x2ba1bd['push'](_0x2ba1bd['shift']());}catch(_0x4c2980){_0x2ba1bd['push'](_0x2ba1bd['shift']());}}}(a98_0x231d,0x237a9));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){return process['stdout']['columns']||Infinity;}export function formatAsTable(_0x5c87d4,_0x5e6b2e=DEFAULT_MAX_DISPLAY_ROWS,_0x20f520=![],_0x3f53ad={}){const _0x5ac0e9=a98_0x2dec;if(_0x5c87d4[_0x5ac0e9(0x118)]['length']===0x0)return _0x5ac0e9(0x132);const _0x324662=_0x5c87d4[_0x5ac0e9(0x11a)][_0x5ac0e9(0x12c)](_0x45cc12=>_0x45cc12[_0x5ac0e9(0x145)]),_0x84459f=_0x5c87d4[_0x5ac0e9(0x11a)]['map'](_0x2f4f20=>simplifyType(_0x2f4f20[_0x5ac0e9(0x13a)])),_0x24f4e6=_0x5c87d4[_0x5ac0e9(0x118)]['slice'](0x0,_0x5e6b2e),_0x2f1be8=_0x5c87d4[_0x5ac0e9(0x118)][_0x5ac0e9(0x115)],_0x472a37=_0x2f1be8>_0x5e6b2e,_0x469110=[],_0x3065f4=getTerminalWidth(),_0xd2d07f=_0x3065f4!==Infinity,_0x18b869=0x32;let _0x3e605d=_0x324662[_0x5ac0e9(0x12c)]((_0x6c1b,_0x448016)=>{const _0x5122c5=_0x5ac0e9,_0xf043b=stringWidth(_0x84459f[_0x448016]),_0x103130=Math[_0x5122c5(0x123)](..._0x24f4e6[_0x5122c5(0x12c)](_0x46d3d0=>{const _0x432378=_0x46d3d0[_0x6c1b];return stringWidth(formatValue(_0x432378));})),_0x3be52d=Math[_0x5122c5(0x123)](stringWidth(_0x6c1b),_0xf043b,_0x103130);return _0x20f520?_0x3be52d:Math[_0x5122c5(0x138)](_0x3be52d,_0x18b869);});if(_0xd2d07f&&!_0x20f520&&_0x324662['length']>0x0){const _0x508f42=_0x35a9ad=>{let _0x47cd8f=0x1;for(const _0x555ded of _0x35a9ad){_0x47cd8f+=_0x555ded+0x3;}return _0x47cd8f+0x1;};let _0x2e6bcc=_0x508f42(_0x3e605d);if(_0x2e6bcc>_0x3065f4){const _0x5f1eb4=0x3;for(let _0x29ebcf=_0x3e605d[_0x5ac0e9(0x115)]-0x1;_0x29ebcf>=0x0;_0x29ebcf--){_0x2e6bcc=_0x508f42(_0x3e605d);if(_0x2e6bcc<=_0x3065f4)break;const _0x6176c9=_0x3e605d[_0x29ebcf],_0x178289=_0x2e6bcc-_0x3065f4,_0x48e0de=_0x6176c9-_0x5f1eb4,_0x6df19e=Math[_0x5ac0e9(0x138)](_0x178289,_0x48e0de);_0x6df19e>0x0&&(_0x3e605d[_0x29ebcf]=_0x6176c9-_0x6df19e);}}}const _0xc49ccf=_0x324662,_0x1b623e=_0x84459f,_0x42fed0=_0x3e605d,_0x49712e=_0x3e605d;_0x469110[_0x5ac0e9(0x12e)](colorBorder('┌'+_0x49712e[_0x5ac0e9(0x12c)](_0x54816c=>'─'[_0x5ac0e9(0x116)](_0x54816c+0x2))[_0x5ac0e9(0x11c)]('┬')+'┐',_0x3f53ad));const _0x5e1ed6=_0xc49ccf['map']((_0x4bdcea,_0x57228c)=>centerAlign(_0x4bdcea,_0x42fed0[_0x57228c]));_0x469110[_0x5ac0e9(0x12e)](colorBorder('│',_0x3f53ad)+'\x20'+_0x5e1ed6[_0x5ac0e9(0x11c)]('\x20'+colorBorder('│',_0x3f53ad)+'\x20')+'\x20'+colorBorder('│',_0x3f53ad));const _0x5f3557=_0x1b623e['map']((_0x56b4a3,_0x1ce849)=>colorType(centerAlign(_0x56b4a3,_0x42fed0[_0x1ce849]),_0x3f53ad));_0x469110[_0x5ac0e9(0x12e)](colorBorder('│',_0x3f53ad)+'\x20'+_0x5f3557['join']('\x20'+colorBorder('│',_0x3f53ad)+'\x20')+'\x20'+colorBorder('│',_0x3f53ad)),_0x469110[_0x5ac0e9(0x12e)](colorBorder('├'+_0x49712e[_0x5ac0e9(0x12c)](_0x24cbfb=>'─'[_0x5ac0e9(0x116)](_0x24cbfb+0x2))[_0x5ac0e9(0x11c)]('┼')+'┤',_0x3f53ad));const _0x13bc7c=(_0x2072de,_0x408abe)=>{const _0x46c120=_0x5ac0e9,_0x21178b=stringWidth(_0x2072de);if(_0x21178b<=_0x408abe)return _0x2072de;let _0x50e146=_0x2072de;while(stringWidth(_0x50e146+'…')>_0x408abe&&_0x50e146[_0x46c120(0x115)]>0x0){_0x50e146=_0x50e146[_0x46c120(0x130)](0x0,-0x1);}return _0x50e146+'…';};_0x24f4e6[_0x5ac0e9(0x140)](_0x2826b4=>{const _0x2370c3=_0x5ac0e9,_0x2416c5=_0x324662[_0x2370c3(0x12c)]((_0x19ad53,_0x27aedc)=>{const _0x56f771=_0x2370c3,_0x56add6=_0x2826b4[_0x19ad53],_0x514d0a=formatValue(_0x56add6),_0x1471bd=_0x42fed0[_0x27aedc],_0x1dc8fa=_0x13bc7c(_0x514d0a,_0x1471bd),_0x347471=typeof _0x56add6===_0x56f771(0x129)||typeof _0x56add6===_0x56f771(0x114)&&/^-?\d+$/['test'](_0x56add6);return _0x347471?padStart(_0x1dc8fa,_0x1471bd):padEnd(_0x1dc8fa,_0x1471bd);});_0x469110[_0x2370c3(0x12e)](colorBorder('│',_0x3f53ad)+'\x20'+_0x2416c5[_0x2370c3(0x11c)]('\x20'+colorBorder('│',_0x3f53ad)+'\x20')+'\x20'+colorBorder('│',_0x3f53ad));});const _0x1d93dc=_0x49712e[_0x5ac0e9(0x125)]((_0x3dc387,_0x2fefd9)=>_0x3dc387+_0x2fefd9+0x3,-0x1);_0x469110['push'](colorBorder('├'+_0x49712e['map'](_0x463807=>'─'[_0x5ac0e9(0x116)](_0x463807+0x2))['join']('┴')+'┤',_0x3f53ad));let _0x3f253e;_0x472a37?_0x3f253e=_0x2f1be8+_0x5ac0e9(0x119)+_0x5e6b2e+_0x5ac0e9(0x144):_0x3f253e=_0x2f1be8+_0x5ac0e9(0x146)+(_0x2f1be8===0x1?'':'s');const _0x573bd3=_0x3f253e[_0x5ac0e9(0x126)](_0x1d93dc-0x2);return _0x469110[_0x5ac0e9(0x12e)](colorBorder('│',_0x3f53ad)+'\x20'+_0x573bd3+'\x20'+colorBorder('│',_0x3f53ad)),_0x469110[_0x5ac0e9(0x12e)](colorBorder('└'+'─'[_0x5ac0e9(0x116)](_0x1d93dc)+'┘',_0x3f53ad)),_0x469110[_0x5ac0e9(0x11c)]('\x0a');}function simplifyType(_0x424823){const _0x40964c=a98_0x2dec,_0x1c8903={'varchar':_0x40964c(0x114),'bigint':'long','integer':'int','double':'double','boolean':_0x40964c(0x122),'date':_0x40964c(0x131),'timestamp':'timestamp','array':'array','map':_0x40964c(0x12c),'row':_0x40964c(0x124)},_0x22824c=_0x424823[_0x40964c(0x127)]();for(const [_0x177220,_0x4ecf43]of Object[_0x40964c(0x134)](_0x1c8903)){if(_0x22824c['startsWith'](_0x177220))return _0x4ecf43;}return _0x424823[_0x40964c(0x115)]>0xa?_0x424823[_0x40964c(0x141)](0x0,0xa):_0x424823;}function a98_0x2dec(_0x872baf,_0x70358){_0x872baf=_0x872baf-0x114;const _0x231d0a=a98_0x231d();let _0x2dec50=_0x231d0a[_0x872baf];return _0x2dec50;}export function formatAsJSON(_0x7fe9ba,_0x498553={}){const _0x33d241=a98_0x2dec;if(_0x7fe9ba[_0x33d241(0x118)][_0x33d241(0x115)]===0x0)return'[]';if(shouldUseColor(_0x498553))return colorizeJSON(_0x7fe9ba[_0x33d241(0x118)],_0x498553);const _0x3829eb=_0x7fe9ba['data'][_0x33d241(0x12c)](_0x3ab617=>'\x20\x20'+JSON['stringify'](_0x3ab617));return'[\x0a'+_0x3829eb[_0x33d241(0x11c)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0xd3cc13,_0xe2da90={}){const _0x19d522=a98_0x2dec;if(_0xd3cc13[_0x19d522(0x118)][_0x19d522(0x115)]===0x0)return'';if(shouldUseColor(_0xe2da90))return _0xd3cc13[_0x19d522(0x118)][_0x19d522(0x12c)](_0x470c98=>colorizeJSONCompact(_0x470c98,_0xe2da90))['join']('\x0a');return _0xd3cc13['data'][_0x19d522(0x12c)](_0x520812=>JSON['stringify'](_0x520812))[_0x19d522(0x11c)]('\x0a');}export function formatAsTSV(_0x4bc891){const _0x1455df=a98_0x2dec;if(_0x4bc891[_0x1455df(0x118)][_0x1455df(0x115)]===0x0)return'';const _0x13e116=[],_0x33bff5=_0x4bc891[_0x1455df(0x11a)][_0x1455df(0x12c)](_0xcbc0ed=>_0xcbc0ed[_0x1455df(0x145)]);return _0x13e116['push'](_0x33bff5['join']('\x09')),_0x4bc891['data']['forEach'](_0x1012d6=>{const _0x57e099=_0x1455df,_0x27311c=_0x33bff5['map'](_0x20b0a5=>{const _0x33ed14=_0x1012d6[_0x20b0a5];return formatValueForTSV(_0x33ed14);});_0x13e116[_0x57e099(0x12e)](_0x27311c[_0x57e099(0x11c)]('\x09'));}),_0x13e116[_0x1455df(0x11c)]('\x0a');}function a98_0x231d(){const _0x59eff2=['json','entries','false','846601EMCmrW','toISOString','min','123393yNJrdt','type','true','3886911PxrdtR','437880mLAQTZ','boolean','stringify','forEach','substring','tsv','log','\x20shown)','name','\x20row','12HVQrEN','string','length','repeat','replace','data','\x20rows\x20(','columns','table','join','jsonl','941400FtISTP','toFixed','0\x20B','pow','bool','max','row','reduce','padEnd','toLowerCase','88240ilEoAE','number','object','1877192JYzdTQ','map','floor','push','2apFmbE','slice','date','No\x20rows\x20returned'];a98_0x231d=function(){return _0x59eff2;};return a98_0x231d();}function formatValue(_0x3254be){const _0x936fa4=a98_0x2dec;if(_0x3254be===null||_0x3254be===undefined)return'';if(typeof _0x3254be==='string'){const _0x5600e0=_0x3254be[_0x936fa4(0x117)](/\n/g,'\x5cn')['replace'](/\r/g,'\x5cr')[_0x936fa4(0x117)](/\t/g,'\x5ct');return _0x5600e0;}if(typeof _0x3254be===_0x936fa4(0x129))return String(_0x3254be);if(typeof _0x3254be===_0x936fa4(0x13e))return _0x3254be?_0x936fa4(0x13b):_0x936fa4(0x135);if(_0x3254be instanceof Date)return _0x3254be[_0x936fa4(0x137)]();if(typeof _0x3254be===_0x936fa4(0x12a))return JSON[_0x936fa4(0x13f)](_0x3254be);return String(_0x3254be);}function formatValueForTSV(_0x123cd8){const _0x297b69=a98_0x2dec;if(_0x123cd8===null||_0x123cd8===undefined)return'';if(typeof _0x123cd8===_0x297b69(0x114))return _0x123cd8[_0x297b69(0x117)](/\t/g,'\x5ct')[_0x297b69(0x117)](/\n/g,'\x5cn');if(typeof _0x123cd8===_0x297b69(0x129)||typeof _0x123cd8===_0x297b69(0x13e))return String(_0x123cd8);if(_0x123cd8 instanceof Date)return _0x123cd8['toISOString']();if(typeof _0x123cd8===_0x297b69(0x12a))return JSON[_0x297b69(0x13f)](_0x123cd8);return String(_0x123cd8);}export function formatQueryResult(_0x39e3aa,_0x5cadf0){const _0x9059d8=a98_0x2dec;switch(_0x5cadf0){case _0x9059d8(0x11b):return formatAsTable(_0x39e3aa);case _0x9059d8(0x133):return formatAsJSON(_0x39e3aa);case _0x9059d8(0x11d):return formatAsJSONL(_0x39e3aa);case _0x9059d8(0x142):return formatAsTSV(_0x39e3aa);default:return formatAsJSON(_0x39e3aa);}}export function formatBytes(_0x590be8){const _0x4fbf86=a98_0x2dec;if(_0x590be8===0x0)return _0x4fbf86(0x120);const _0x351002=['B','KB','MB','GB','TB'],_0x2d6e2d=0x400,_0x4ba503=Math[_0x4fbf86(0x12d)](Math[_0x4fbf86(0x143)](_0x590be8)/Math['log'](_0x2d6e2d)),_0x52c563=_0x590be8/Math['pow'](_0x2d6e2d,_0x4ba503),_0x2615ba=_0x52c563>=0xa?0x1:0x2;return _0x52c563[_0x4fbf86(0x11f)](_0x2615ba)+'\x20'+_0x351002[_0x4ba503];}export function formatRows(_0x7480a6){const _0x1b4058=a98_0x2dec;if(_0x7480a6==null)return'-';if(_0x7480a6===0x0)return'0';if(_0x7480a6<0x3e8)return _0x7480a6['toString']();const _0x353bd6=['','K','M','B','T'],_0x26c815=0x3e8,_0x525436=Math[_0x1b4058(0x12d)](Math[_0x1b4058(0x143)](_0x7480a6)/Math[_0x1b4058(0x143)](_0x26c815)),_0x2b5335=_0x7480a6/Math[_0x1b4058(0x121)](_0x26c815,_0x525436),_0x34bd33=_0x2b5335>=0xa?0x1:0x2;return''+_0x2b5335[_0x1b4058(0x11f)](_0x34bd33)+_0x353bd6[_0x525436];}
@@ -1 +1 @@
1
- function a99_0x31d2(){const _0x328efb=['NOT_FOUND','ENOENT','parse','Failed\x20to\x20load\x20JSON:\x20','4oFHUsg','EACCES','305060EnDDKw','311829hCDLoK','INVALID_ARGUMENT','code','PERMISSION_DENIED','16SpgueJ','6XJbxXU','utf-8','Invalid\x20JSON\x20string:\x20','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','6978EIrnlq','message','Invalid\x20JSON\x20in\x20file\x20\x27','Permission\x20denied\x20reading\x20file:\x20','260992ScQTbu','244953HIdSws','1143250mOiDia','52135TcqXJg','File\x20not\x20found:\x20'];a99_0x31d2=function(){return _0x328efb;};return a99_0x31d2();}function a99_0x4730(_0x4e84e4,_0x402e89){_0x4e84e4=_0x4e84e4-0x71;const _0x31d2a3=a99_0x31d2();let _0x473050=_0x31d2a3[_0x4e84e4];return _0x473050;}(function(_0x15ce5d,_0x247dc3){const _0x46a3a6=a99_0x4730,_0x2bbaf8=_0x15ce5d();while(!![]){try{const _0x290cbe=parseInt(_0x46a3a6(0x82))/0x1*(parseInt(_0x46a3a6(0x76))/0x2)+-parseInt(_0x46a3a6(0x79))/0x3+parseInt(_0x46a3a6(0x86))/0x4+-parseInt(_0x46a3a6(0x89))/0x5*(-parseInt(_0x46a3a6(0x7e))/0x6)+-parseInt(_0x46a3a6(0x78))/0x7+-parseInt(_0x46a3a6(0x7d))/0x8*(-parseInt(_0x46a3a6(0x87))/0x9)+parseInt(_0x46a3a6(0x88))/0xa;if(_0x290cbe===_0x247dc3)break;else _0x2bbaf8['push'](_0x2bbaf8['shift']());}catch(_0x4f0427){_0x2bbaf8['push'](_0x2bbaf8['shift']());}}}(a99_0x31d2,0x1b113));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x4f3647,_0x267e92){const _0x9876c7=a99_0x4730;try{if(_0x267e92){const _0x162264=await readFile(_0x4f3647,_0x9876c7(0x7f));try{return JSON[_0x9876c7(0x74)](_0x162264);}catch(_0x1ba39d){throw new SDKError(ErrorCode[_0x9876c7(0x7a)],_0x9876c7(0x84)+_0x4f3647+'\x27:\x20'+(_0x1ba39d instanceof Error?_0x1ba39d[_0x9876c7(0x83)]:String(_0x1ba39d)));}}else try{return JSON[_0x9876c7(0x74)](_0x4f3647);}catch(_0x2b3a1d){throw new SDKError(ErrorCode[_0x9876c7(0x7a)],_0x9876c7(0x80)+(_0x2b3a1d instanceof Error?_0x2b3a1d['message']:String(_0x2b3a1d)));}}catch(_0xf26780){if(_0xf26780 instanceof SDKError)throw _0xf26780;if(_0xf26780 instanceof Error&&_0x9876c7(0x7b)in _0xf26780){const _0x49f559=_0xf26780;if(_0x49f559[_0x9876c7(0x7b)]===_0x9876c7(0x73))throw new SDKError(ErrorCode[_0x9876c7(0x72)],_0x9876c7(0x71)+_0x4f3647);else{if(_0x49f559[_0x9876c7(0x7b)]===_0x9876c7(0x77))throw new SDKError(ErrorCode[_0x9876c7(0x7c)],_0x9876c7(0x85)+_0x4f3647);}}throw new SDKError(ErrorCode['INTERNAL'],_0x9876c7(0x75)+(_0xf26780 instanceof Error?_0xf26780[_0x9876c7(0x83)]:String(_0xf26780)));}}export async function loadJSONFromOptions(_0x44b28c,_0x3490b0){const _0x47cb41=a99_0x4730;if(_0x44b28c&&_0x3490b0)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x47cb41(0x81));if(_0x44b28c)return await loadJSON(_0x44b28c,![]);if(_0x3490b0)return await loadJSON(_0x3490b0,!![]);return undefined;}
1
+ (function(_0x65effc,_0x2a5ce4){const _0xc7facf=a99_0x5cc7,_0xec572=_0x65effc();while(!![]){try{const _0x35352c=-parseInt(_0xc7facf(0x11e))/0x1+parseInt(_0xc7facf(0x117))/0x2+-parseInt(_0xc7facf(0x112))/0x3*(parseInt(_0xc7facf(0x120))/0x4)+-parseInt(_0xc7facf(0x11c))/0x5*(-parseInt(_0xc7facf(0x10d))/0x6)+-parseInt(_0xc7facf(0x10f))/0x7+parseInt(_0xc7facf(0x10c))/0x8*(parseInt(_0xc7facf(0x113))/0x9)+parseInt(_0xc7facf(0x118))/0xa*(parseInt(_0xc7facf(0x10b))/0xb);if(_0x35352c===_0x2a5ce4)break;else _0xec572['push'](_0xec572['shift']());}catch(_0x67f435){_0xec572['push'](_0xec572['shift']());}}}(a99_0x5925,0xf15df));function a99_0x5925(){const _0x480051=['Permission\x20denied\x20reading\x20file:\x20','1599768GgaDXn','parse','16004XDyICa','INVALID_ARGUMENT','1463JGXqku','571488yItFAC','3618864MSRsWQ','ENOENT','10390667EYuRhN','code','\x27:\x20','531iaqUzk','234hZsOnQ','File\x20not\x20found:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','EACCES','350124KqeQVh','161310xNMCrq','utf-8','INTERNAL','message','5xgeBrO'];a99_0x5925=function(){return _0x480051;};return a99_0x5925();}function a99_0x5cc7(_0x54a927,_0x2e19d2){_0x54a927=_0x54a927-0x10b;const _0x592586=a99_0x5925();let _0x5cc706=_0x592586[_0x54a927];return _0x5cc706;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x278fb6,_0x4072d5){const _0x2cb108=a99_0x5cc7;try{if(_0x4072d5){const _0x3f920b=await readFile(_0x278fb6,_0x2cb108(0x119));try{return JSON[_0x2cb108(0x11f)](_0x3f920b);}catch(_0x41b6e8){throw new SDKError(ErrorCode[_0x2cb108(0x121)],_0x2cb108(0x115)+_0x278fb6+_0x2cb108(0x111)+(_0x41b6e8 instanceof Error?_0x41b6e8[_0x2cb108(0x11b)]:String(_0x41b6e8)));}}else try{return JSON[_0x2cb108(0x11f)](_0x278fb6);}catch(_0x51f909){throw new SDKError(ErrorCode[_0x2cb108(0x121)],'Invalid\x20JSON\x20string:\x20'+(_0x51f909 instanceof Error?_0x51f909[_0x2cb108(0x11b)]:String(_0x51f909)));}}catch(_0x89a484){if(_0x89a484 instanceof SDKError)throw _0x89a484;if(_0x89a484 instanceof Error&&_0x2cb108(0x110)in _0x89a484){const _0x305173=_0x89a484;if(_0x305173['code']===_0x2cb108(0x10e))throw new SDKError(ErrorCode['NOT_FOUND'],_0x2cb108(0x114)+_0x278fb6);else{if(_0x305173[_0x2cb108(0x110)]===_0x2cb108(0x116))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x2cb108(0x11d)+_0x278fb6);}}throw new SDKError(ErrorCode[_0x2cb108(0x11a)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x89a484 instanceof Error?_0x89a484[_0x2cb108(0x11b)]:String(_0x89a484)));}}export async function loadJSONFromOptions(_0x19051b,_0x49af06){const _0x53018a=a99_0x5cc7;if(_0x19051b&&_0x49af06)throw new SDKError(ErrorCode[_0x53018a(0x121)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x19051b)return await loadJSON(_0x19051b,![]);if(_0x49af06)return await loadJSON(_0x49af06,!![]);return undefined;}
@@ -1 +1 @@
1
- function a100_0x21e8(_0x15af5f,_0x160a88){_0x15af5f=_0x15af5f-0x1dd;const _0x38ceed=a100_0x38ce();let _0x21e86=_0x38ceed[_0x15af5f];return _0x21e86;}(function(_0x3887f0,_0x2dfd1c){const _0x4242a0=a100_0x21e8,_0x514459=_0x3887f0();while(!![]){try{const _0x1d2037=-parseInt(_0x4242a0(0x1dd))/0x1+parseInt(_0x4242a0(0x1e6))/0x2+-parseInt(_0x4242a0(0x1e4))/0x3*(-parseInt(_0x4242a0(0x1e8))/0x4)+-parseInt(_0x4242a0(0x1e1))/0x5+-parseInt(_0x4242a0(0x1e2))/0x6*(parseInt(_0x4242a0(0x1e7))/0x7)+-parseInt(_0x4242a0(0x1e5))/0x8+parseInt(_0x4242a0(0x1de))/0x9;if(_0x1d2037===_0x2dfd1c)break;else _0x514459['push'](_0x514459['shift']());}catch(_0x3754a6){_0x514459['push'](_0x514459['shift']());}}}(a100_0x38ce,0xb0178));function a100_0x38ce(){const _0x433ad9=['7242znCYiw','2991784BOwMFF','2578392SNSBxE','21rZnXKQ','724wfQdGN','targetAgentId','1.0','has','907277jDYaxu','17064081gHiers','targetKnowledgeBaseId','attributes','7185185KBOsBf','365160XuPSoO','get'];a100_0x38ce=function(){return _0x433ad9;};return a100_0x38ce();}export function canCreateAgent(_0x14d623,_0x4571e9){const _0x3996ee=a100_0x21e8;for(const _0x2a3201 of _0x14d623[_0x3996ee(0x1e0)]['tools']){if(_0x2a3201[_0x3996ee(0x1e9)]&&!_0x4571e9[_0x3996ee(0x1eb)](_0x2a3201[_0x3996ee(0x1e9)]))return![];}return!![];}export function remapToolIds(_0x52135c,_0x1c1722,_0x598f83){const _0x15b7ac=a100_0x21e8;return _0x52135c['map'](_0x512650=>({..._0x512650,'targetKnowledgeBaseId':_0x512650[_0x15b7ac(0x1df)]?_0x1c1722[_0x15b7ac(0x1e3)](_0x512650[_0x15b7ac(0x1df)])||_0x512650[_0x15b7ac(0x1df)]:undefined,'targetAgentId':_0x512650['targetAgentId']?_0x598f83[_0x15b7ac(0x1e3)](_0x512650['targetAgentId'])||_0x512650[_0x15b7ac(0x1e9)]:undefined}));}export function remapVariableIds(_0x5b97e8,_0x46bce2){const _0x18e5c7=a100_0x21e8;return _0x5b97e8['map'](_0x2bf28e=>({..._0x2bf28e,'targetKnowledgeBaseId':_0x46bce2[_0x18e5c7(0x1e3)](_0x2bf28e[_0x18e5c7(0x1df)])||_0x2bf28e['targetKnowledgeBaseId']}));}export function isSupportedBackupVersion(_0x42d067){const _0x156479=a100_0x21e8;return _0x42d067===_0x156479(0x1ea);}
1
+ (function(_0x444d1f,_0x1c3b18){const _0x9a2516=a100_0x4b7a,_0x3ab87f=_0x444d1f();while(!![]){try{const _0x1c436e=-parseInt(_0x9a2516(0x123))/0x1+-parseInt(_0x9a2516(0x11e))/0x2+parseInt(_0x9a2516(0x11c))/0x3+parseInt(_0x9a2516(0x11f))/0x4+parseInt(_0x9a2516(0x11d))/0x5+parseInt(_0x9a2516(0x120))/0x6+-parseInt(_0x9a2516(0x119))/0x7;if(_0x1c436e===_0x1c3b18)break;else _0x3ab87f['push'](_0x3ab87f['shift']());}catch(_0x302547){_0x3ab87f['push'](_0x3ab87f['shift']());}}}(a100_0x5c0e,0x771e5));export function canCreateAgent(_0x478e6b,_0x1c5717){const _0x273180=a100_0x4b7a;for(const _0x27e58d of _0x478e6b[_0x273180(0x11a)][_0x273180(0x116)]){if(_0x27e58d['targetAgentId']&&!_0x1c5717[_0x273180(0x115)](_0x27e58d['targetAgentId']))return![];}return!![];}function a100_0x4b7a(_0x4b02e9,_0x4c31ba){_0x4b02e9=_0x4b02e9-0x115;const _0x5c0e96=a100_0x5c0e();let _0x4b7ab1=_0x5c0e96[_0x4b02e9];return _0x4b7ab1;}export function remapToolIds(_0x3f8c78,_0x223eda,_0x4a52d9){const _0x186690=a100_0x4b7a;return _0x3f8c78[_0x186690(0x121)](_0x423c49=>({..._0x423c49,'targetKnowledgeBaseId':_0x423c49[_0x186690(0x118)]?_0x223eda[_0x186690(0x11b)](_0x423c49[_0x186690(0x118)])||_0x423c49[_0x186690(0x118)]:undefined,'targetAgentId':_0x423c49['targetAgentId']?_0x4a52d9[_0x186690(0x11b)](_0x423c49[_0x186690(0x122)])||_0x423c49['targetAgentId']:undefined}));}export function remapVariableIds(_0x59dd50,_0x4e074b){const _0x51d1c2=a100_0x4b7a;return _0x59dd50['map'](_0x12fcd2=>({..._0x12fcd2,'targetKnowledgeBaseId':_0x4e074b[_0x51d1c2(0x11b)](_0x12fcd2['targetKnowledgeBaseId'])||_0x12fcd2[_0x51d1c2(0x118)]}));}export function isSupportedBackupVersion(_0x253df3){const _0x6db6ef=a100_0x4b7a;return _0x253df3===_0x6db6ef(0x117);}function a100_0x5c0e(){const _0x30c825=['388448RNziUQ','has','tools','1.0','targetKnowledgeBaseId','7900501LmdYId','attributes','get','1979094TOEMLr','4864765poLgCC','996186LQOqUH','1163484eKZKuS','3477426pPjRfu','map','targetAgentId'];a100_0x5c0e=function(){return _0x30c825;};return a100_0x5c0e();}
@@ -1 +1 @@
1
- function a101_0x13be(_0x30f0e8,_0x2ab4df){_0x30f0e8=_0x30f0e8-0x17c;const _0x266cec=a101_0x266c();let _0x13bef4=_0x266cec[_0x30f0e8];return _0x13bef4;}const a101_0x2318f6=a101_0x13be;(function(_0x3dbaa3,_0xc4bc38){const _0x29d418=a101_0x13be,_0x5e27e4=_0x3dbaa3();while(!![]){try{const _0x56254a=-parseInt(_0x29d418(0x17f))/0x1+-parseInt(_0x29d418(0x185))/0x2+-parseInt(_0x29d418(0x186))/0x3*(parseInt(_0x29d418(0x183))/0x4)+parseInt(_0x29d418(0x17d))/0x5*(parseInt(_0x29d418(0x182))/0x6)+-parseInt(_0x29d418(0x17c))/0x7+parseInt(_0x29d418(0x184))/0x8+parseInt(_0x29d418(0x181))/0x9;if(_0x56254a===_0xc4bc38)break;else _0x5e27e4['push'](_0x5e27e4['shift']());}catch(_0x1364c2){_0x5e27e4['push'](_0x5e27e4['shift']());}}}(a101_0x266c,0x36ad9));const MODEL_ALIASES={'haiku':a101_0x2318f6(0x17e),'sonnet':a101_0x2318f6(0x180)};export function extractModelAlias(_0xfd31fc){const _0x3505f4=_0xfd31fc['match'](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x3505f4)return _0x3505f4[0x1]['toLowerCase']();return _0xfd31fc;}function a101_0x266c(){const _0x142cd3=['83573MAkgGd','10qYOFZA','claude-4.5-haiku','107624JEsHha','claude-4.5-sonnet','3498921ETvnoU','768918NPqiva','273332PfIyuT','1965440DUOxRN','684464KenjJD','9dbGesM'];a101_0x266c=function(){return _0x142cd3;};return a101_0x266c();}export function resolveModelAlias(_0x1643e5){return MODEL_ALIASES[_0x1643e5['toLowerCase']()]||_0x1643e5;}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ function a101_0x585f(_0x4882b6,_0x12f660){_0x4882b6=_0x4882b6-0x19c;const _0x5a4f70=a101_0x5a4f();let _0x585fdc=_0x5a4f70[_0x4882b6];return _0x585fdc;}const a101_0x36d6ce=a101_0x585f;(function(_0x410b74,_0x2de790){const _0x21f88e=a101_0x585f,_0x4d00e3=_0x410b74();while(!![]){try{const _0x424627=parseInt(_0x21f88e(0x1a1))/0x1*(parseInt(_0x21f88e(0x1a6))/0x2)+parseInt(_0x21f88e(0x1a3))/0x3+parseInt(_0x21f88e(0x19d))/0x4*(-parseInt(_0x21f88e(0x1a4))/0x5)+parseInt(_0x21f88e(0x1a0))/0x6*(-parseInt(_0x21f88e(0x1a7))/0x7)+-parseInt(_0x21f88e(0x1a5))/0x8*(-parseInt(_0x21f88e(0x1aa))/0x9)+-parseInt(_0x21f88e(0x1a9))/0xa+parseInt(_0x21f88e(0x19e))/0xb;if(_0x424627===_0x2de790)break;else _0x4d00e3['push'](_0x4d00e3['shift']());}catch(_0x4b8d6f){_0x4d00e3['push'](_0x4d00e3['shift']());}}}(a101_0x5a4f,0xc1cc4));const MODEL_ALIASES={'haiku':a101_0x36d6ce(0x19c),'sonnet':a101_0x36d6ce(0x1a8)};function a101_0x5a4f(){const _0x5ca84b=['6607530dxkTYu','9sECoxj','claude-4.5-haiku','4VoyuUY','14093827QCPWlQ','match','1614972XPtUdc','1222001yXWgXX','toLowerCase','1249047bQXaDD','4686335QtOwUf','4390856Zqsqyw','2evOgDF','28raCciv','claude-4.5-sonnet'];a101_0x5a4f=function(){return _0x5ca84b;};return a101_0x5a4f();}export function extractModelAlias(_0x56b3ce){const _0x375cb9=a101_0x36d6ce,_0x9a8158=_0x56b3ce[_0x375cb9(0x19f)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x9a8158)return _0x9a8158[0x1][_0x375cb9(0x1a2)]();return _0x56b3ce;}export function resolveModelAlias(_0x5c406f){const _0x313c1e=a101_0x36d6ce;return MODEL_ALIASES[_0x5c406f[_0x313c1e(0x1a2)]()]||_0x5c406f;}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x31e0af,_0x480f3b){const _0x4f7e4e=a102_0x3608,_0x1ee5da=_0x31e0af();while(!![]){try{const _0x28ed0c=parseInt(_0x4f7e4e(0x9f))/0x1+-parseInt(_0x4f7e4e(0x99))/0x2*(-parseInt(_0x4f7e4e(0x94))/0x3)+parseInt(_0x4f7e4e(0x96))/0x4*(-parseInt(_0x4f7e4e(0x91))/0x5)+-parseInt(_0x4f7e4e(0x88))/0x6*(-parseInt(_0x4f7e4e(0x89))/0x7)+parseInt(_0x4f7e4e(0x9b))/0x8*(parseInt(_0x4f7e4e(0x90))/0x9)+-parseInt(_0x4f7e4e(0x95))/0xa+-parseInt(_0x4f7e4e(0x8c))/0xb;if(_0x28ed0c===_0x480f3b)break;else _0x1ee5da['push'](_0x1ee5da['shift']());}catch(_0x1290af){_0x1ee5da['push'](_0x1ee5da['shift']());}}}(a102_0x141c,0x28a13));export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};function a102_0x141c(){const _0x327c99=['19506bIaHux','4.5','8fFvuxH','toLocaleString','default','Haiku\x204.5','248291DkTnMW','sonnet','42xczyTe','89026TVTipL','en-US','opus','1172226yNyaLc','round','toLowerCase','includes','2905803EzOzsJ','5fprqbd','Haiku\x204','Claude','45mwHfWp','2733050cYrjqk','1040756SBCqiI','haiku','4-5'];a102_0x141c=function(){return _0x327c99;};return a102_0x141c();}function a102_0x3608(_0x511b55,_0x4a82a6){_0x511b55=_0x511b55-0x88;const _0x141cdf=a102_0x141c();let _0x3608c2=_0x141cdf[_0x511b55];return _0x3608c2;}export function getModelFactor(_0x16e68c){const _0x39ed26=a102_0x3608,_0x53bb9e=_0x16e68c[_0x39ed26(0x8e)]();if(MODEL_FACTORS[_0x53bb9e])return MODEL_FACTORS[_0x53bb9e];if(_0x53bb9e['includes']('sonnet'))return MODEL_FACTORS[_0x39ed26(0xa0)];if(_0x53bb9e['includes'](_0x39ed26(0x97)))return MODEL_FACTORS[_0x39ed26(0x97)];if(_0x53bb9e['includes'](_0x39ed26(0x8b)))return MODEL_FACTORS[_0x39ed26(0x8b)];return MODEL_FACTORS[_0x39ed26(0xa0)];}export function getContextLimit(_0x31e209){const _0xc0d47c=a102_0x3608,_0x3c6878=_0x31e209[_0xc0d47c(0x8e)]();if(_0x3c6878[_0xc0d47c(0x8f)]('sonnet'))return CONTEXT_LIMITS[_0xc0d47c(0xa0)];if(_0x3c6878[_0xc0d47c(0x8f)](_0xc0d47c(0x97)))return CONTEXT_LIMITS[_0xc0d47c(0x97)];if(_0x3c6878[_0xc0d47c(0x8f)](_0xc0d47c(0x8b)))return CONTEXT_LIMITS[_0xc0d47c(0x8b)];return CONTEXT_LIMITS[_0xc0d47c(0x9d)];}export function calculateChatUnit(_0x327ae9,_0x44b3be,_0x46a487){return(_0x327ae9+_0x44b3be)/0x1388*_0x46a487;}export function calculateCredits(_0x1ca368){return _0x1ca368/0x2904;}export function getModelDisplayName(_0x18ed76){const _0x1b5bec=a102_0x3608,_0x2ac60f=_0x18ed76[_0x1b5bec(0x8e)]();if(_0x2ac60f[_0x1b5bec(0x8f)](_0x1b5bec(0xa0))){if(_0x2ac60f[_0x1b5bec(0x8f)](_0x1b5bec(0x98))||_0x2ac60f[_0x1b5bec(0x8f)](_0x1b5bec(0x9a)))return'Sonnet\x204.5';return'Sonnet\x204';}if(_0x2ac60f[_0x1b5bec(0x8f)](_0x1b5bec(0x97))){if(_0x2ac60f[_0x1b5bec(0x8f)]('4-5')||_0x2ac60f[_0x1b5bec(0x8f)](_0x1b5bec(0x9a)))return _0x1b5bec(0x9e);return _0x1b5bec(0x92);}if(_0x2ac60f['includes'](_0x1b5bec(0x8b))){if(_0x2ac60f[_0x1b5bec(0x8f)](_0x1b5bec(0x98))||_0x2ac60f[_0x1b5bec(0x8f)](_0x1b5bec(0x9a)))return'Opus\x204.5';return'Opus\x204';}return _0x1b5bec(0x93);}export function formatTokenCount(_0x2e0f21){const _0x14f76b=a102_0x3608;return _0x2e0f21[_0x14f76b(0x9c)](_0x14f76b(0x8a));}export function calculateContextPercentage(_0x566628,_0x2a2e90){const _0x5bc64e=a102_0x3608,_0xcb9966=getContextLimit(_0x2a2e90);return Math[_0x5bc64e(0x8d)](_0x566628/_0xcb9966*0x64);}
1
+ (function(_0x533a58,_0x271fba){const _0x6552f3=a102_0x2d18,_0x4470d8=_0x533a58();while(!![]){try{const _0x16646e=-parseInt(_0x6552f3(0x11c))/0x1+parseInt(_0x6552f3(0x116))/0x2+parseInt(_0x6552f3(0x10f))/0x3*(parseInt(_0x6552f3(0x11d))/0x4)+-parseInt(_0x6552f3(0x113))/0x5*(parseInt(_0x6552f3(0x11e))/0x6)+-parseInt(_0x6552f3(0x11b))/0x7*(-parseInt(_0x6552f3(0x10e))/0x8)+parseInt(_0x6552f3(0x115))/0x9+parseInt(_0x6552f3(0x11a))/0xa;if(_0x16646e===_0x271fba)break;else _0x4470d8['push'](_0x4470d8['shift']());}catch(_0xd5ea2){_0x4470d8['push'](_0x4470d8['shift']());}}}(a102_0x5228,0x2aa3a));export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x372df5){const _0x4784fe=a102_0x2d18,_0x4d2b46=_0x372df5[_0x4784fe(0x119)]();if(MODEL_FACTORS[_0x4d2b46])return MODEL_FACTORS[_0x4d2b46];if(_0x4d2b46[_0x4784fe(0x117)](_0x4784fe(0x106)))return MODEL_FACTORS[_0x4784fe(0x106)];if(_0x4d2b46['includes']('haiku'))return MODEL_FACTORS['haiku'];if(_0x4d2b46[_0x4784fe(0x117)](_0x4784fe(0x111)))return MODEL_FACTORS[_0x4784fe(0x111)];return MODEL_FACTORS['sonnet'];}export function getContextLimit(_0x270022){const _0x5bb500=a102_0x2d18,_0x736055=_0x270022['toLowerCase']();if(_0x736055[_0x5bb500(0x117)](_0x5bb500(0x106)))return CONTEXT_LIMITS[_0x5bb500(0x106)];if(_0x736055[_0x5bb500(0x117)](_0x5bb500(0x11f)))return CONTEXT_LIMITS[_0x5bb500(0x11f)];if(_0x736055[_0x5bb500(0x117)]('opus'))return CONTEXT_LIMITS[_0x5bb500(0x111)];return CONTEXT_LIMITS[_0x5bb500(0x10c)];}export function calculateChatUnit(_0x2ed198,_0x138a74,_0x83ee5a){return(_0x2ed198+_0x138a74)/0x1388*_0x83ee5a;}export function calculateCredits(_0x225ad6){return _0x225ad6/0x2904;}export function getModelDisplayName(_0x2304b0){const _0x88c963=a102_0x2d18,_0x581382=_0x2304b0[_0x88c963(0x119)]();if(_0x581382['includes'](_0x88c963(0x106))){if(_0x581382[_0x88c963(0x117)](_0x88c963(0x109))||_0x581382[_0x88c963(0x117)](_0x88c963(0x107)))return'Sonnet\x204.5';return _0x88c963(0x10a);}if(_0x581382[_0x88c963(0x117)]('haiku')){if(_0x581382['includes'](_0x88c963(0x109))||_0x581382[_0x88c963(0x117)](_0x88c963(0x107)))return _0x88c963(0x118);return _0x88c963(0x112);}if(_0x581382[_0x88c963(0x117)](_0x88c963(0x111))){if(_0x581382['includes'](_0x88c963(0x109))||_0x581382[_0x88c963(0x117)](_0x88c963(0x107)))return _0x88c963(0x10d);return _0x88c963(0x10b);}return'Claude';}export function formatTokenCount(_0x20aa92){const _0x41c3ae=a102_0x2d18;return _0x20aa92[_0x41c3ae(0x110)](_0x41c3ae(0x108));}export function calculateContextPercentage(_0x50b292,_0x1334f8){const _0x18a5bd=a102_0x2d18,_0x1bd149=getContextLimit(_0x1334f8);return Math[_0x18a5bd(0x114)](_0x50b292/_0x1bd149*0x64);}function a102_0x2d18(_0x1b742a,_0x5bba3c){_0x1b742a=_0x1b742a-0x106;const _0x52286e=a102_0x5228();let _0x2d18b9=_0x52286e[_0x1b742a];return _0x2d18b9;}function a102_0x5228(){const _0x123fed=['Haiku\x204','28005buhHRt','round','1059912gWHMcu','204334dBXRNy','includes','Haiku\x204.5','toLowerCase','555750GQnhcj','1519kfdDBQ','153484NkHJhV','18364WWjToG','360pBYVXj','haiku','sonnet','4.5','en-US','4-5','Sonnet\x204','Opus\x204','default','Opus\x204.5','8744zrHbcl','99WlpMtx','toLocaleString','opus'];a102_0x5228=function(){return _0x123fed;};return a102_0x5228();}
@@ -1 +1 @@
1
- (function(_0xbe7d8f,_0x31110d){const _0x54925e=a103_0x1f9f,_0x4e53f1=_0xbe7d8f();while(!![]){try{const _0x45b556=-parseInt(_0x54925e(0xdf))/0x1*(-parseInt(_0x54925e(0xe8))/0x2)+parseInt(_0x54925e(0xe0))/0x3+-parseInt(_0x54925e(0xea))/0x4+parseInt(_0x54925e(0xe3))/0x5*(-parseInt(_0x54925e(0xef))/0x6)+-parseInt(_0x54925e(0xeb))/0x7*(-parseInt(_0x54925e(0xe1))/0x8)+parseInt(_0x54925e(0xe7))/0x9+parseInt(_0x54925e(0xe2))/0xa*(-parseInt(_0x54925e(0xed))/0xb);if(_0x45b556===_0x31110d)break;else _0x4e53f1['push'](_0x4e53f1['shift']());}catch(_0x5b9846){_0x4e53f1['push'](_0x4e53f1['shift']());}}}(a103_0x3bba,0x43d45));function a103_0x1f9f(_0x383fad,_0x13ccaf){_0x383fad=_0x383fad-0xdf;const _0x3bba13=a103_0x3bba();let _0x1f9f63=_0x3bba13[_0x383fad];return _0x1f9f63;}export function validateLimitOption(_0x9e3b1c){const _0x36e8d0=a103_0x1f9f;if(!Number['isInteger'](_0x9e3b1c))return{'isValid':![],'error':_0x36e8d0(0xe5)+_0x9e3b1c+_0x36e8d0(0xee)};if(_0x9e3b1c<=0x0)return{'isValid':![],'error':_0x36e8d0(0xe5)+_0x9e3b1c+_0x36e8d0(0xe4)};return{'isValid':!![],'value':_0x9e3b1c};}export function validateTimeoutOption(_0x1f41c4,_0x4afbf9=0x1e){const _0x57ac39=a103_0x1f9f;if(_0x1f41c4===undefined)return{'isValid':!![],'value':_0x4afbf9};const _0x3ba067=typeof _0x1f41c4===_0x57ac39(0xe9)?_0x1f41c4:parseFloat(_0x1f41c4);if(isNaN(_0x3ba067))return{'isValid':![],'error':_0x57ac39(0xec)+_0x1f41c4+_0x57ac39(0xe6)};if(_0x3ba067<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x3ba067+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x3ba067};}function a103_0x3bba(){const _0x388b4e=['3rHAUMn','403566WOqVbG','8lMQXmR','2554060STFKKl','1516860calzWP','.\x20Must\x20be\x20a\x20positive\x20integer.','Invalid\x20limit\x20value:\x20','.\x20Must\x20be\x20a\x20number.','4354938AegtWu','307540blCxzY','number','1050192fZlzAv','136087qXBVHs','Invalid\x20timeout\x20value:\x20','11pHHNtE','.\x20Must\x20be\x20an\x20integer.','6LhKOGh'];a103_0x3bba=function(){return _0x388b4e;};return a103_0x3bba();}
1
+ (function(_0x6892ec,_0x3f1e59){const _0x21a4aa=a103_0x2c01,_0x546c09=_0x6892ec();while(!![]){try{const _0x433db0=parseInt(_0x21a4aa(0x174))/0x1+parseInt(_0x21a4aa(0x173))/0x2*(-parseInt(_0x21a4aa(0x17f))/0x3)+-parseInt(_0x21a4aa(0x178))/0x4+-parseInt(_0x21a4aa(0x172))/0x5*(parseInt(_0x21a4aa(0x175))/0x6)+-parseInt(_0x21a4aa(0x17d))/0x7*(parseInt(_0x21a4aa(0x17e))/0x8)+-parseInt(_0x21a4aa(0x17c))/0x9+parseInt(_0x21a4aa(0x176))/0xa;if(_0x433db0===_0x3f1e59)break;else _0x546c09['push'](_0x546c09['shift']());}catch(_0xf471d9){_0x546c09['push'](_0x546c09['shift']());}}}(a103_0x232b,0x46e6e));function a103_0x232b(){const _0x9d265e=['16851290LuYoHJ','Invalid\x20limit\x20value:\x20','1002876dbsuVn','isInteger','.\x20Must\x20be\x20a\x20positive\x20integer.','Invalid\x20timeout\x20value:\x20','1444185oaokeR','193459WNKIkA','120QixHFR','189uLvAXU','6430wqeMYV','13822ZWPrKZ','349953WbHBAQ','2256nyhVra'];a103_0x232b=function(){return _0x9d265e;};return a103_0x232b();}function a103_0x2c01(_0x5c06d6,_0x383a3d){_0x5c06d6=_0x5c06d6-0x172;const _0x232bf1=a103_0x232b();let _0x2c0151=_0x232bf1[_0x5c06d6];return _0x2c0151;}export function validateLimitOption(_0x2c1449){const _0x253acf=a103_0x2c01;if(!Number[_0x253acf(0x179)](_0x2c1449))return{'isValid':![],'error':_0x253acf(0x177)+_0x2c1449+'.\x20Must\x20be\x20an\x20integer.'};if(_0x2c1449<=0x0)return{'isValid':![],'error':_0x253acf(0x177)+_0x2c1449+_0x253acf(0x17a)};return{'isValid':!![],'value':_0x2c1449};}export function validateTimeoutOption(_0x397351,_0x52b4fc=0x1e){const _0x391818=a103_0x2c01;if(_0x397351===undefined)return{'isValid':!![],'value':_0x52b4fc};const _0x7c9d81=typeof _0x397351==='number'?_0x397351:parseFloat(_0x397351);if(isNaN(_0x7c9d81))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x397351+'.\x20Must\x20be\x20a\x20number.'};if(_0x7c9d81<=0x0)return{'isValid':![],'error':_0x391818(0x17b)+_0x7c9d81+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x7c9d81};}
@@ -1 +1 @@
1
- (function(_0x48b90f,_0x26cceb){const _0x53ad0f=a104_0x2bf9,_0x56a254=_0x48b90f();while(!![]){try{const _0x462bec=-parseInt(_0x53ad0f(0x185))/0x1*(parseInt(_0x53ad0f(0x181))/0x2)+parseInt(_0x53ad0f(0x18d))/0x3*(-parseInt(_0x53ad0f(0x184))/0x4)+-parseInt(_0x53ad0f(0x188))/0x5+parseInt(_0x53ad0f(0x18f))/0x6+-parseInt(_0x53ad0f(0x18a))/0x7+-parseInt(_0x53ad0f(0x187))/0x8*(parseInt(_0x53ad0f(0x186))/0x9)+parseInt(_0x53ad0f(0x194))/0xa*(parseInt(_0x53ad0f(0x189))/0xb);if(_0x462bec===_0x26cceb)break;else _0x56a254['push'](_0x56a254['shift']());}catch(_0x2abedb){_0x56a254['push'](_0x56a254['shift']());}}}(a104_0x2c0f,0x628fa));function a104_0x2c0f(){const _0x3da719=['once','3247818oGhdnb','No\x20available\x20port\x20found\x20between\x20','error','listen','close','12210spZZzX','7918Vhikhd','\x20and\x20','0.0.0.0','707512DexDUO','172ivmRQS','591723qtcOPd','88eqJxii','1987875CqPTCI','26521rdKmBh','4005232Oaptxa','EADDRINUSE','code','12ZAuEiS'];a104_0x2c0f=function(){return _0x3da719;};return a104_0x2c0f();}import{createServer}from'node:net';function a104_0x2bf9(_0x26146f,_0x1d6346){_0x26146f=_0x26146f-0x181;const _0x2c0f3b=a104_0x2c0f();let _0x2bf99b=_0x2c0f3b[_0x26146f];return _0x2bf99b;}export async function isPortAvailable(_0x46de75){return new Promise(_0x3d4b08=>{const _0x5dfb6a=a104_0x2bf9,_0x302d31=createServer();_0x302d31[_0x5dfb6a(0x18e)](_0x5dfb6a(0x191),_0x4545d1=>{const _0x1b8ffa=_0x5dfb6a;_0x4545d1[_0x1b8ffa(0x18c)]===_0x1b8ffa(0x18b)?_0x3d4b08(![]):_0x3d4b08(![]);}),_0x302d31[_0x5dfb6a(0x18e)]('listening',()=>{const _0x7db9fb=_0x5dfb6a;_0x302d31[_0x7db9fb(0x193)](),_0x3d4b08(!![]);}),_0x302d31[_0x5dfb6a(0x192)](_0x46de75,_0x5dfb6a(0x183));});}export async function findAvailablePort(_0x8f6166=0xfa0,_0x5d715a=0x64){const _0x42fee2=a104_0x2bf9;for(let _0x185c16=0x0;_0x185c16<_0x5d715a;_0x185c16++){const _0x2a4251=_0x8f6166+_0x185c16;if(await isPortAvailable(_0x2a4251))return _0x2a4251;}throw new Error(_0x42fee2(0x190)+_0x8f6166+_0x42fee2(0x182)+(_0x8f6166+_0x5d715a-0x1));}
1
+ (function(_0x53a09d,_0x1b8573){const _0x332445=a104_0x27d4,_0x7e6915=_0x53a09d();while(!![]){try{const _0x261dec=-parseInt(_0x332445(0x170))/0x1+-parseInt(_0x332445(0x177))/0x2+-parseInt(_0x332445(0x171))/0x3*(parseInt(_0x332445(0x178))/0x4)+parseInt(_0x332445(0x16a))/0x5+parseInt(_0x332445(0x16d))/0x6+parseInt(_0x332445(0x16e))/0x7+parseInt(_0x332445(0x168))/0x8*(-parseInt(_0x332445(0x16b))/0x9);if(_0x261dec===_0x1b8573)break;else _0x7e6915['push'](_0x7e6915['shift']());}catch(_0x5fe144){_0x7e6915['push'](_0x7e6915['shift']());}}}(a104_0xadc5,0x35a4a));import{createServer}from'node:net';function a104_0xadc5(){const _0x4ad3d3=['256040HCbRBU','close','1659815RAopdS','63bcEhRS','listen','841914KJVYCu','2882845yOEiyV','once','289564nsycgz','15MtaLzE','0.0.0.0','No\x20available\x20port\x20found\x20between\x20','listening','code','EADDRINUSE','168322RqPcQz','53308AJriEn'];a104_0xadc5=function(){return _0x4ad3d3;};return a104_0xadc5();}function a104_0x27d4(_0x1c2c21,_0x29a6e6){_0x1c2c21=_0x1c2c21-0x168;const _0xadc5f8=a104_0xadc5();let _0x27d402=_0xadc5f8[_0x1c2c21];return _0x27d402;}export async function isPortAvailable(_0x262eb2){return new Promise(_0x4c8f6e=>{const _0x59257b=a104_0x27d4,_0x414e67=createServer();_0x414e67['once']('error',_0x5c987d=>{const _0x159922=a104_0x27d4;_0x5c987d[_0x159922(0x175)]===_0x159922(0x176)?_0x4c8f6e(![]):_0x4c8f6e(![]);}),_0x414e67[_0x59257b(0x16f)](_0x59257b(0x174),()=>{const _0x3d9d1f=_0x59257b;_0x414e67[_0x3d9d1f(0x169)](),_0x4c8f6e(!![]);}),_0x414e67[_0x59257b(0x16c)](_0x262eb2,_0x59257b(0x172));});}export async function findAvailablePort(_0x3192d3=0xfa0,_0x51fb04=0x64){const _0x54ca46=a104_0x27d4;for(let _0x169b76=0x0;_0x169b76<_0x51fb04;_0x169b76++){const _0x2eba98=_0x3192d3+_0x169b76;if(await isPortAvailable(_0x2eba98))return _0x2eba98;}throw new Error(_0x54ca46(0x173)+_0x3192d3+'\x20and\x20'+(_0x3192d3+_0x51fb04-0x1));}
@@ -1 +1 @@
1
- const a105_0x195a89=a105_0x380a;(function(_0x21d599,_0x5f7dbc){const _0x4dd202=a105_0x380a,_0x51c234=_0x21d599();while(!![]){try{const _0x38afd0=-parseInt(_0x4dd202(0x17b))/0x1+parseInt(_0x4dd202(0x14c))/0x2*(-parseInt(_0x4dd202(0x172))/0x3)+-parseInt(_0x4dd202(0x163))/0x4*(-parseInt(_0x4dd202(0x178))/0x5)+-parseInt(_0x4dd202(0x154))/0x6*(-parseInt(_0x4dd202(0x173))/0x7)+-parseInt(_0x4dd202(0x171))/0x8*(parseInt(_0x4dd202(0x169))/0x9)+-parseInt(_0x4dd202(0x17f))/0xa*(parseInt(_0x4dd202(0x16d))/0xb)+parseInt(_0x4dd202(0x160))/0xc*(parseInt(_0x4dd202(0x16f))/0xd);if(_0x38afd0===_0x5f7dbc)break;else _0x51c234['push'](_0x51c234['shift']());}catch(_0x98c8d5){_0x51c234['push'](_0x51c234['shift']());}}}(a105_0x5656,0x1c2a6));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a105_0x195a89(0x167),'zsh','sh',a105_0x195a89(0x159),a105_0x195a89(0x174),'tcsh','csh',a105_0x195a89(0x181),a105_0x195a89(0x170),a105_0x195a89(0x14f),'nu',a105_0x195a89(0x165),a105_0x195a89(0x14d),a105_0x195a89(0x157)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a105_0x195a89(0x14a),a105_0x195a89(0x17e)]);function getProcessInfoWindows(_0x15a239){const _0x37d3fd=a105_0x195a89;try{const _0x1dfd2c=execSync(_0x37d3fd(0x158)+_0x15a239+_0x37d3fd(0x14e),{'encoding':_0x37d3fd(0x162),'windowsHide':!![]})[_0x37d3fd(0x16c)](),_0x5a8bf7=_0x1dfd2c[_0x37d3fd(0x17c)]('\x0a')['filter'](_0xdab8b3=>_0xdab8b3['trim']());if(_0x5a8bf7[_0x37d3fd(0x150)]<0x2)return null;const _0x128561=_0x5a8bf7[_0x5a8bf7[_0x37d3fd(0x150)]-0x1][_0x37d3fd(0x17c)](',');if(_0x128561[_0x37d3fd(0x150)]<0x3)return null;const _0x534cf6=_0x128561[0x1]?.[_0x37d3fd(0x16c)]()||'',_0x2c162e=parseInt(_0x128561[0x2]?.[_0x37d3fd(0x16c)]()||'0',0xa);if(isNaN(_0x2c162e)||!_0x534cf6)return null;return{'pid':_0x15a239,'ppid':_0x2c162e,'comm':_0x534cf6[_0x37d3fd(0x152)](/\.exe$/i,'')};}catch(_0x1ff194){return process['env'][_0x37d3fd(0x16e)]&&console[_0x37d3fd(0x175)](_0x37d3fd(0x155)+_0x15a239+'\x20on\x20Windows:',_0x1ff194),null;}}function getProcessInfoPosix(_0x43ba0e){const _0x1615ac=a105_0x195a89;try{const _0x2ea627=execSync('ps\x20-p\x20'+_0x43ba0e+_0x1615ac(0x179),{'encoding':_0x1615ac(0x162)})[_0x1615ac(0x16c)](),[_0x1719b6,..._0x476c5b]=_0x2ea627['split'](/\s+/),_0x1246a0=parseInt(_0x1719b6,0xa),_0x6d3331=_0x476c5b['join']('\x20');if(isNaN(_0x1246a0))return null;return{'pid':_0x43ba0e,'ppid':_0x1246a0,'comm':_0x6d3331};}catch(_0x4f5f5f){return process[_0x1615ac(0x176)][_0x1615ac(0x16e)]&&console[_0x1615ac(0x175)](_0x1615ac(0x155)+_0x43ba0e+_0x1615ac(0x15c),_0x4f5f5f),null;}}function a105_0x5656(){const _0xc18612=['ion',')\x20spawned\x20by\x20','bash','win32','20655hYoDkb','pid','comm','trim','1727wQGrDt','DEBUG','26evkESW','pwsh','432jRUJgf','3RVBLnD','175364luctYX','ksh','error','env','open','365JkNyuE','\x20-o\x20ppid=,comm=','darwin','9391epEUYP','split','pop','cursor','6430SzynDB',',\x20using\x20fallback','dash','code','xdg-open','86910irYLHd','elvish','\x20get\x20ParentProcessId,Name\x20/format:csv','powershell','length','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','replace','has','18lLTsNV','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','isInteger','xonsh','wmic\x20process\x20where\x20ProcessId=','fish','start','kill','\x20on\x20POSIX:','platform','toLowerCase','unref','961980KsBFhZ','ignore','utf-8','8636pmWIst','ppid'];a105_0x5656=function(){return _0xc18612;};return a105_0x5656();}function getProcessInfo(_0x5a289d){const _0x31c613=a105_0x195a89;if(process[_0x31c613(0x15d)]==='win32')return getProcessInfoWindows(_0x5a289d);return getProcessInfoPosix(_0x5a289d);}function getBasename(_0x27aeea){const _0x23a1a0=a105_0x195a89;return _0x27aeea['replace'](/^-/,'')[_0x23a1a0(0x17c)]('/')[_0x23a1a0(0x17d)]()?.[_0x23a1a0(0x15e)]()||'';}function isShell(_0xd7952d){return SHELL_NAMES['has'](getBasename(_0xd7952d));}function a105_0x380a(_0x4bdca2,_0x29a780){_0x4bdca2=_0x4bdca2-0x14a;const _0x565680=a105_0x5656();let _0x380ae2=_0x565680[_0x4bdca2];return _0x380ae2;}function isEphemeralShellSpawner(_0x37c2fe){const _0x1537ca=a105_0x195a89;return EPHEMERAL_SHELL_SPAWNERS[_0x1537ca(0x153)](getBasename(_0x37c2fe));}let cachedShellPID;function findShellPID(){const _0x348614=a105_0x195a89;if(process[_0x348614(0x164)]===undefined)return process[_0x348614(0x16a)];let _0x1c2583=process['ppid'];const _0xe8a893=0xa;let _0x1337ba=0x0;while(_0x1337ba<_0xe8a893){const _0x3b3729=getProcessInfo(_0x1c2583);if(!_0x3b3729){process['env'][_0x348614(0x16e)]&&console['error'](_0x348614(0x151)+_0x1c2583+_0x348614(0x180));break;}if(isShell(_0x3b3729['comm'])){const _0x39ab58=getProcessInfo(_0x3b3729[_0x348614(0x164)]);if(_0x39ab58&&isEphemeralShellSpawner(_0x39ab58[_0x348614(0x16b)])){process['env'][_0x348614(0x16e)]&&console['error']('Found\x20ephemeral\x20shell\x20'+_0x3b3729[_0x348614(0x16a)]+'\x20('+_0x3b3729['comm']+_0x348614(0x166)+_0x39ab58[_0x348614(0x16b)]+',\x20continuing\x20up');_0x1c2583=_0x3b3729[_0x348614(0x164)],_0x1337ba++;continue;}return _0x3b3729[_0x348614(0x16a)];}if(_0x3b3729[_0x348614(0x164)]===0x0||_0x3b3729[_0x348614(0x164)]===0x1){if(isShell(_0x3b3729['comm']))return _0x3b3729[_0x348614(0x16a)];break;}_0x1c2583=_0x3b3729[_0x348614(0x164)],_0x1337ba++;}return process['ppid']!==undefined?process[_0x348614(0x164)]:process[_0x348614(0x16a)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x540169){const _0x5b8069=a105_0x195a89;if(!Number[_0x5b8069(0x156)](_0x540169)||_0x540169<=0x0)return![];try{return process[_0x5b8069(0x15b)](_0x540169,0x0),!![];}catch{return![];}}export function openBrowser(_0x598938){const _0x5f56f1=a105_0x195a89,_0x15a00a=process[_0x5f56f1(0x15d)],_0x53d96b=_0x15a00a===_0x5f56f1(0x17a)?_0x5f56f1(0x177):_0x15a00a===_0x5f56f1(0x168)?_0x5f56f1(0x15a):_0x5f56f1(0x14b);spawn(_0x53d96b,[_0x598938],{'detached':!![],'stdio':_0x5f56f1(0x161)})[_0x5f56f1(0x15f)]();}
1
+ const a105_0x596186=a105_0x2897;(function(_0x13f2ec,_0x3fb6d8){const _0x3e9584=a105_0x2897,_0x373f48=_0x13f2ec();while(!![]){try{const _0x5d8d3e=parseInt(_0x3e9584(0x1d3))/0x1*(parseInt(_0x3e9584(0x1f7))/0x2)+-parseInt(_0x3e9584(0x1df))/0x3+parseInt(_0x3e9584(0x1db))/0x4*(parseInt(_0x3e9584(0x1fe))/0x5)+-parseInt(_0x3e9584(0x1e1))/0x6+parseInt(_0x3e9584(0x1f1))/0x7*(-parseInt(_0x3e9584(0x1ed))/0x8)+-parseInt(_0x3e9584(0x1cf))/0x9+parseInt(_0x3e9584(0x1cd))/0xa;if(_0x5d8d3e===_0x3fb6d8)break;else _0x373f48['push'](_0x373f48['shift']());}catch(_0x2d4e92){_0x373f48['push'](_0x373f48['shift']());}}}(a105_0x594d,0x48da3));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a105_0x596186(0x1f0),'zsh','sh',a105_0x596186(0x1dd),a105_0x596186(0x1f2),a105_0x596186(0x1d8),a105_0x596186(0x1e5),'dash',a105_0x596186(0x1eb),a105_0x596186(0x1d9),'nu',a105_0x596186(0x200),a105_0x596186(0x1e9),a105_0x596186(0x1e8)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a105_0x596186(0x1d4),a105_0x596186(0x1e2),a105_0x596186(0x1d5)]);function getProcessInfoWindows(_0x57e2c9){const _0x5dccbb=a105_0x596186;try{const _0x5b4e0a=execSync('wmic\x20process\x20where\x20ProcessId='+_0x57e2c9+_0x5dccbb(0x1ce),{'encoding':_0x5dccbb(0x1fd),'windowsHide':!![]})[_0x5dccbb(0x1d0)](),_0x2cfec9=_0x5b4e0a[_0x5dccbb(0x1ee)]('\x0a')[_0x5dccbb(0x1f6)](_0x3a4278=>_0x3a4278[_0x5dccbb(0x1d0)]());if(_0x2cfec9[_0x5dccbb(0x1ff)]<0x2)return null;const _0x4c440c=_0x2cfec9[_0x2cfec9['length']-0x1][_0x5dccbb(0x1ee)](',');if(_0x4c440c[_0x5dccbb(0x1ff)]<0x3)return null;const _0x313a33=_0x4c440c[0x1]?.[_0x5dccbb(0x1d0)]()||'',_0xcf3f7e=parseInt(_0x4c440c[0x2]?.['trim']()||'0',0xa);if(isNaN(_0xcf3f7e)||!_0x313a33)return null;return{'pid':_0x57e2c9,'ppid':_0xcf3f7e,'comm':_0x313a33[_0x5dccbb(0x1fb)](/\.exe$/i,'')};}catch(_0x537926){return process[_0x5dccbb(0x1cc)][_0x5dccbb(0x1fa)]&&console[_0x5dccbb(0x1f3)](_0x5dccbb(0x1e7)+_0x57e2c9+'\x20on\x20Windows:',_0x537926),null;}}function getProcessInfoPosix(_0x2b8bba){const _0x41d13f=a105_0x596186;try{const _0x260c70=execSync(_0x41d13f(0x1e6)+_0x2b8bba+_0x41d13f(0x1e4),{'encoding':_0x41d13f(0x1fd)})[_0x41d13f(0x1d0)](),[_0x3526fd,..._0x5b2508]=_0x260c70[_0x41d13f(0x1ee)](/\s+/),_0x3c16bc=parseInt(_0x3526fd,0xa),_0x1c545=_0x5b2508[_0x41d13f(0x1d1)]('\x20');if(isNaN(_0x3c16bc))return null;return{'pid':_0x2b8bba,'ppid':_0x3c16bc,'comm':_0x1c545};}catch(_0x7a1ba4){return process['env'][_0x41d13f(0x1fa)]&&console['error']('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x2b8bba+_0x41d13f(0x1fc),_0x7a1ba4),null;}}function a105_0x2897(_0x18c3e9,_0x11328a){_0x18c3e9=_0x18c3e9-0x1cc;const _0x594d02=a105_0x594d();let _0x2897ca=_0x594d02[_0x18c3e9];return _0x2897ca;}function getProcessInfo(_0x4c50e8){const _0x19d07a=a105_0x596186;if(process['platform']===_0x19d07a(0x1dc))return getProcessInfoWindows(_0x4c50e8);return getProcessInfoPosix(_0x4c50e8);}function getBasename(_0x1e7607){const _0x14bb09=a105_0x596186;return _0x1e7607[_0x14bb09(0x1fb)](/^-/,'')[_0x14bb09(0x1ee)]('/')[_0x14bb09(0x1f4)]()?.[_0x14bb09(0x1f8)]()||'';}function isShell(_0x250277){const _0x5aa587=a105_0x596186;return SHELL_NAMES[_0x5aa587(0x1d7)](getBasename(_0x250277));}function isEphemeralShellSpawner(_0x13d533){const _0x5592d9=a105_0x596186;return EPHEMERAL_SHELL_SPAWNERS[_0x5592d9(0x1d7)](getBasename(_0x13d533));}let cachedShellPID;function findShellPID(){const _0x5d3e83=a105_0x596186;if(process[_0x5d3e83(0x1d6)]===undefined)return process[_0x5d3e83(0x1d2)];let _0x122987=process['ppid'];const _0x10e0bc=0xa;let _0x451708=0x0;while(_0x451708<_0x10e0bc){const _0x5849e1=getProcessInfo(_0x122987);if(!_0x5849e1){process['env'][_0x5d3e83(0x1fa)]&&console[_0x5d3e83(0x1f3)](_0x5d3e83(0x1f5)+_0x122987+_0x5d3e83(0x1e3));break;}if(isShell(_0x5849e1[_0x5d3e83(0x1de)])){const _0x35262d=getProcessInfo(_0x5849e1[_0x5d3e83(0x1d6)]);if(_0x35262d&&isEphemeralShellSpawner(_0x35262d[_0x5d3e83(0x1de)])){process[_0x5d3e83(0x1cc)][_0x5d3e83(0x1fa)]&&console[_0x5d3e83(0x1f3)]('Found\x20ephemeral\x20shell\x20'+_0x5849e1['pid']+'\x20('+_0x5849e1[_0x5d3e83(0x1de)]+_0x5d3e83(0x1ea)+_0x35262d[_0x5d3e83(0x1de)]+_0x5d3e83(0x1e0));_0x122987=_0x5849e1['ppid'],_0x451708++;continue;}return _0x5849e1[_0x5d3e83(0x1d2)];}if(_0x5849e1['ppid']===0x0||_0x5849e1[_0x5d3e83(0x1d6)]===0x1){if(isShell(_0x5849e1[_0x5d3e83(0x1de)]))return _0x5849e1[_0x5d3e83(0x1d2)];break;}_0x122987=_0x5849e1['ppid'],_0x451708++;}return process[_0x5d3e83(0x1d6)]!==undefined?process[_0x5d3e83(0x1d6)]:process[_0x5d3e83(0x1d2)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}function a105_0x594d(){const _0x20f0a7=['Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','filter','396370Txkspk','toLowerCase','open','DEBUG','replace','\x20on\x20POSIX:','utf-8','1610815kdtZzc','length','ion','env','1830740mrvWSY','\x20get\x20ParentProcessId,Name\x20/format:csv','1470366TLNiBF','trim','join','pid','3czXZjy','claude','cursor','ppid','has','tcsh','powershell','start','4xjdVJK','win32','fish','comm','20934cEJTxC',',\x20continuing\x20up','1179084hrnHmi','code',',\x20using\x20fallback','\x20-o\x20ppid=,comm=','csh','ps\x20-p\x20','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','xonsh','elvish',')\x20spawned\x20by\x20','pwsh','unref','1928zoiAYF','split','kill','bash','12621istTdW','ksh','error','pop'];a105_0x594d=function(){return _0x20f0a7;};return a105_0x594d();}export function isProcessRunning(_0x148e87){const _0x52c061=a105_0x596186;if(!Number['isInteger'](_0x148e87)||_0x148e87<=0x0)return![];try{return process[_0x52c061(0x1ef)](_0x148e87,0x0),!![];}catch{return![];}}export function openBrowser(_0x4f1306){const _0x318a50=a105_0x596186,_0x556c83=process['platform'],_0x3783e4=_0x556c83==='darwin'?_0x318a50(0x1f9):_0x556c83===_0x318a50(0x1dc)?_0x318a50(0x1da):'xdg-open';spawn(_0x3783e4,[_0x4f1306],{'detached':!![],'stdio':'ignore'})[_0x318a50(0x1ec)]();}
@@ -1 +1 @@
1
- function a106_0x334a(){const _0x353ef0=['isTTY','11107932iMUiWy','\x20[y/N]\x20','resume','toLowerCase','72nJexuD','stdin','yes','pause','1166535bxQGdz','961584Riktlv','3qLLCOQ','write','removeListener','question','createInterface','close','15685lsiysz','data','55928KTaTAO','stdout','820JvvZBt','10aTVseu','661256KYixdH','162022LKbZzH','\x20(y/N):\x20','stderr'];a106_0x334a=function(){return _0x353ef0;};return a106_0x334a();}(function(_0x2cf61d,_0x299431){const _0x15d14c=a106_0x4a8c,_0x39d3c7=_0x2cf61d();while(!![]){try{const _0x33a844=parseInt(_0x15d14c(0x166))/0x1*(-parseInt(_0x15d14c(0x153))/0x2)+parseInt(_0x15d14c(0x165))/0x3+parseInt(_0x15d14c(0x155))/0x4*(parseInt(_0x15d14c(0x151))/0x5)+-parseInt(_0x15d14c(0x160))/0x6*(-parseInt(_0x15d14c(0x158))/0x7)+parseInt(_0x15d14c(0x157))/0x8+parseInt(_0x15d14c(0x164))/0x9*(parseInt(_0x15d14c(0x156))/0xa)+-parseInt(_0x15d14c(0x15c))/0xb;if(_0x33a844===_0x299431)break;else _0x39d3c7['push'](_0x39d3c7['shift']());}catch(_0x3559a1){_0x39d3c7['push'](_0x39d3c7['shift']());}}}(a106_0x334a,0x57dfd));import*as a106_0x18a1a7 from'readline';export async function confirm(_0x26e1fb){const _0x3d6cd7=a106_0x4a8c,_0x15fcb1=a106_0x18a1a7[_0x3d6cd7(0x14f)]({'input':process[_0x3d6cd7(0x161)],'output':process[_0x3d6cd7(0x154)]});return new Promise(_0x4c427b=>{const _0x1cfb36=_0x3d6cd7;_0x15fcb1[_0x1cfb36(0x169)](_0x26e1fb+_0x1cfb36(0x159),_0xbe72b2=>{const _0x415077=_0x1cfb36;_0x15fcb1[_0x415077(0x150)](),_0x4c427b(_0xbe72b2['toLowerCase']()==='y'||_0xbe72b2[_0x415077(0x15f)]()===_0x415077(0x162));});});}function a106_0x4a8c(_0xea666f,_0x212cb8){_0xea666f=_0xea666f-0x14f;const _0x334a21=a106_0x334a();let _0x4a8cb9=_0x334a21[_0xea666f];return _0x4a8cb9;}export async function confirmKey(_0x3aa60a){const _0x449217=a106_0x4a8c;if(!process[_0x449217(0x161)][_0x449217(0x15b)])return![];return process['stderr'][_0x449217(0x167)](_0x3aa60a+_0x449217(0x15d)),new Promise(_0x4bb4a4=>{const _0x1169b4=_0x449217,_0x2e69dd=process[_0x1169b4(0x161)];_0x2e69dd['setRawMode'](!![]),_0x2e69dd[_0x1169b4(0x15e)](),_0x2e69dd['setEncoding']('utf8');const _0x34a18e=_0x559901=>{const _0x171c74=_0x1169b4;_0x2e69dd['setRawMode'](![]),_0x2e69dd[_0x171c74(0x163)](),_0x2e69dd[_0x171c74(0x168)](_0x171c74(0x152),_0x34a18e);if(_0x559901==='\x1b'){process[_0x171c74(0x15a)][_0x171c74(0x167)]('\x0a'),_0x4bb4a4(![]);return;}_0x559901==='\x03'&&(process[_0x171c74(0x15a)][_0x171c74(0x167)]('\x0a'),process['exit'](0x82));if(_0x559901[_0x171c74(0x15f)]()==='y'){process['stderr'][_0x171c74(0x167)]('y\x0a'),_0x4bb4a4(!![]);return;}process[_0x171c74(0x15a)]['write']('\x0a'),_0x4bb4a4(![]);};_0x2e69dd['on'](_0x1169b4(0x152),_0x34a18e);});}
1
+ (function(_0x56d31a,_0x58f04d){const _0x2035bc=a106_0x5900,_0x43e816=_0x56d31a();while(!![]){try{const _0x1bc098=parseInt(_0x2035bc(0x1eb))/0x1*(-parseInt(_0x2035bc(0x1df))/0x2)+-parseInt(_0x2035bc(0x1e1))/0x3+parseInt(_0x2035bc(0x1ec))/0x4+-parseInt(_0x2035bc(0x1de))/0x5+-parseInt(_0x2035bc(0x1e0))/0x6+-parseInt(_0x2035bc(0x1e2))/0x7+parseInt(_0x2035bc(0x1e7))/0x8;if(_0x1bc098===_0x58f04d)break;else _0x43e816['push'](_0x43e816['shift']());}catch(_0x15a70d){_0x43e816['push'](_0x43e816['shift']());}}}(a106_0x4d5f,0xaab3c));function a106_0x5900(_0x3ed4d9,_0x280f0b){_0x3ed4d9=_0x3ed4d9-0x1d9;const _0x4d5fb0=a106_0x4d5f();let _0x5900ff=_0x4d5fb0[_0x3ed4d9];return _0x5900ff;}import*as a106_0x153834 from'readline';function a106_0x4d5f(){const _0x29abbe=['438612lhPZst','6241655CyXVWL','isTTY','setRawMode','pause','data','19207824vfIVID','removeListener','exit','\x20(y/N):\x20','8VKlpIV','3378132wgMiSI','close','write','stderr','utf8','stdin','setEncoding','createInterface','toLowerCase','1457585foqjjm','11474hIzefL','7026198qFnVgI'];a106_0x4d5f=function(){return _0x29abbe;};return a106_0x4d5f();}export async function confirm(_0x250946){const _0xae7055=a106_0x5900,_0x148f2e=a106_0x153834[_0xae7055(0x1dc)]({'input':process[_0xae7055(0x1da)],'output':process['stdout']});return new Promise(_0x340e30=>{const _0x5d18d6=_0xae7055;_0x148f2e['question'](_0x250946+_0x5d18d6(0x1ea),_0x25b244=>{const _0x341027=_0x5d18d6;_0x148f2e[_0x341027(0x1ed)](),_0x340e30(_0x25b244[_0x341027(0x1dd)]()==='y'||_0x25b244['toLowerCase']()==='yes');});});}export async function confirmKey(_0x111c6c){const _0x5654a2=a106_0x5900;if(!process[_0x5654a2(0x1da)][_0x5654a2(0x1e3)])return![];return process[_0x5654a2(0x1ef)]['write'](_0x111c6c+'\x20[y/N]\x20'),new Promise(_0x39d1e3=>{const _0x892b6f=_0x5654a2,_0x31979a=process[_0x892b6f(0x1da)];_0x31979a[_0x892b6f(0x1e4)](!![]),_0x31979a['resume'](),_0x31979a[_0x892b6f(0x1db)](_0x892b6f(0x1d9));const _0x2c3e54=_0xa30446=>{const _0x54f6f7=_0x892b6f;_0x31979a[_0x54f6f7(0x1e4)](![]),_0x31979a[_0x54f6f7(0x1e5)](),_0x31979a[_0x54f6f7(0x1e8)](_0x54f6f7(0x1e6),_0x2c3e54);if(_0xa30446==='\x1b'){process['stderr'][_0x54f6f7(0x1ee)]('\x0a'),_0x39d1e3(![]);return;}_0xa30446==='\x03'&&(process[_0x54f6f7(0x1ef)]['write']('\x0a'),process[_0x54f6f7(0x1e9)](0x82));if(_0xa30446[_0x54f6f7(0x1dd)]()==='y'){process[_0x54f6f7(0x1ef)]['write']('y\x0a'),_0x39d1e3(!![]);return;}process[_0x54f6f7(0x1ef)]['write']('\x0a'),_0x39d1e3(![]);};_0x31979a['on'](_0x892b6f(0x1e6),_0x2c3e54);});}
@@ -1 +1 @@
1
- (function(_0x2178ee,_0x560cdd){const _0x9a0cd8=a107_0x2a1a,_0xa27998=_0x2178ee();while(!![]){try{const _0x3d642c=parseInt(_0x9a0cd8(0xea))/0x1+-parseInt(_0x9a0cd8(0xd2))/0x2+parseInt(_0x9a0cd8(0xe2))/0x3*(-parseInt(_0x9a0cd8(0xfa))/0x4)+-parseInt(_0x9a0cd8(0xe6))/0x5*(-parseInt(_0x9a0cd8(0xe8))/0x6)+parseInt(_0x9a0cd8(0xd0))/0x7+-parseInt(_0x9a0cd8(0xdc))/0x8*(-parseInt(_0x9a0cd8(0xf1))/0x9)+-parseInt(_0x9a0cd8(0x100))/0xa*(-parseInt(_0x9a0cd8(0xf9))/0xb);if(_0x3d642c===_0x560cdd)break;else _0xa27998['push'](_0xa27998['shift']());}catch(_0x23c19e){_0xa27998['push'](_0xa27998['shift']());}}}(a107_0xea66,0x8513e));import{existsSync,readFileSync}from'fs';import a107_0x38e3b6 from'path';import{parse as a107_0xfd9e10}from'yaml';export function parsePath(_0x22884d){const _0xeb7e3=a107_0x2a1a;if(!_0x22884d||_0x22884d[_0xeb7e3(0xda)]()==='')throw new Error(_0xeb7e3(0xed));const _0xe942d3=_0x22884d[_0xeb7e3(0xda)]();if(_0xe942d3==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x22884d};const _0x9f3079=_0xe942d3[_0xeb7e3(0xdf)]('/')?_0xe942d3[_0xeb7e3(0xd4)](0x1):_0xe942d3,_0x2d17f8=_0x9f3079['split']('/')[_0xeb7e3(0xe0)](_0x526fd6=>_0x526fd6!=='');if(_0x2d17f8[_0xeb7e3(0xee)]===0x0)throw new Error(_0xeb7e3(0xfb));const _0x3bca88=_0xe942d3[_0xeb7e3(0xdf)]('/')||!isRelativePathSegment(_0x2d17f8[0x0]);for(const _0x481fbb of _0x2d17f8){validatePathSegment(_0x481fbb);}return{'segments':_0x2d17f8,'isAbsolute':_0x3bca88,'raw':_0x22884d};}function a107_0xea66(){const _0x1322fc=['5607153DzpUts','slice','type','parent_segment','raw','endsWith','.yaml','join','7348SQraII','1108364jUdqMj','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','test','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','root','3800JZGVIM','3359713xxqZrf','parse','1788388lTYMGz','segments','substring','replace','name','utf-8','push','dirname','trim','Relative\x20path\x20cannot\x20be\x20empty','8eUwVCP','Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field','Cannot\x20split\x20empty\x20path','startsWith','filter','journey','6FoPoRw','Path\x20attempts\x20to\x20navigate\x20above\x20root','isAbsolute','No\x20tdx.json\x20found\x20for\x20file:\x20','789205qtyspj','relative','24EokaVe','resolve','5282wKSSnZ','tdx.json','Cannot\x20navigate\x20above\x20root','Path\x20cannot\x20be\x20empty','length','pop','File\x20not\x20found:\x20'];a107_0xea66=function(){return _0x1322fc;};return a107_0xea66();}function isRelativePathSegment(_0x28e540){return _0x28e540==='.'||_0x28e540==='..';}function validatePathSegment(_0x3bea2c){const _0x5305cf=a107_0x2a1a;if(_0x3bea2c==='')throw new Error('Path\x20segment\x20cannot\x20be\x20empty');if(_0x3bea2c==='.'||_0x3bea2c==='..')return;if(/[\x00-\x1F\x7F]/[_0x5305cf(0xfc)](_0x3bea2c))throw new Error(_0x5305cf(0xfd)+_0x3bea2c);if(_0x3bea2c!==_0x3bea2c['trim']()){}}export function validatePath(_0x3baf0c){const _0x138d21=a107_0x2a1a;if(_0x3baf0c[_0x138d21(0xd3)]['length']===0x0&&!_0x3baf0c[_0x138d21(0xe4)])throw new Error(_0x138d21(0xdb));if(_0x3baf0c[_0x138d21(0xe4)]){if(_0x3baf0c[_0x138d21(0xd3)][0x0]==='..')throw new Error(_0x138d21(0xfe));let _0x249784=0x0;for(const _0x2cd821 of _0x3baf0c[_0x138d21(0xd3)]){if(_0x2cd821==='..'){if(_0x249784===0x0)throw new Error(_0x138d21(0xe3));_0x249784--;}else _0x2cd821!=='.'&&_0x249784++;}}}export function joinPaths(_0x46aebd,_0x2e5602){const _0x5b3be7=a107_0x2a1a;if(!_0x46aebd||_0x46aebd==='/')return _0x2e5602;if(!_0x2e5602||_0x2e5602==='.')return _0x46aebd;if(_0x2e5602['startsWith']('/'))return _0x2e5602;const _0x4cb47e=parsePath(_0x46aebd),_0x52fbe6=parsePath(_0x2e5602),_0x87e595=[..._0x4cb47e[_0x5b3be7(0xd3)]];for(const _0x1a059a of _0x52fbe6['segments']){if(_0x1a059a==='.')continue;else{if(_0x1a059a==='..'){if(_0x87e595['length']===0x0)throw new Error(_0x5b3be7(0xec));_0x87e595[_0x5b3be7(0xef)]();}else _0x87e595[_0x5b3be7(0xd8)](_0x1a059a);}}const _0x229c2a=_0x87e595[_0x5b3be7(0xf8)]('/');return _0x4cb47e['raw'][_0x5b3be7(0xdf)]('/')?'/'+_0x229c2a:_0x229c2a;}export function normalizePath(_0x4f3060){const _0x2143a5=a107_0x2a1a,_0x10179c=parsePath(_0x4f3060),_0xa9eaff=[];for(const _0x41f6d6 of _0x10179c['segments']){if(_0x41f6d6==='.')continue;else{if(_0x41f6d6==='..'){if(_0xa9eaff['length']===0x0){if(_0x10179c['isAbsolute'])throw new Error(_0x2143a5(0xec));_0xa9eaff[_0x2143a5(0xd8)]('..');}else _0xa9eaff[_0xa9eaff['length']-0x1]==='..'?_0xa9eaff[_0x2143a5(0xd8)]('..'):_0xa9eaff['pop']();}else _0xa9eaff[_0x2143a5(0xd8)](_0x41f6d6);}}if(_0xa9eaff[_0x2143a5(0xee)]===0x0)return _0x10179c[_0x2143a5(0xe4)]?'/':'.';const _0x163fb3=_0xa9eaff['join']('/');return _0x10179c[_0x2143a5(0xf5)][_0x2143a5(0xdf)]('/')?'/'+_0x163fb3:_0x163fb3;}export function getParentPath(_0x195d45){const _0x201489=a107_0x2a1a,_0x5c92f1=parsePath(_0x195d45);if(_0x5c92f1[_0x201489(0xd3)]['length']<=0x1)return'/';const _0x12f197=_0x5c92f1[_0x201489(0xd3)][_0x201489(0xf2)](0x0,-0x1)[_0x201489(0xf8)]('/');return _0x5c92f1[_0x201489(0xf5)]['startsWith']('/')?'/'+_0x12f197:_0x12f197;}export function getBaseName(_0x160d10){const _0x1eaff8=a107_0x2a1a,_0x38d79d=parsePath(_0x160d10);return _0x38d79d[_0x1eaff8(0xd3)][_0x38d79d[_0x1eaff8(0xd3)][_0x1eaff8(0xee)]-0x1]||'';}export function isChildPath(_0x4d3899,_0x173f8b){const _0x1cfde7=a107_0x2a1a,_0xc837f2=parsePath(_0x4d3899),_0x5e85d6=parsePath(_0x173f8b);if(_0xc837f2['segments'][_0x1cfde7(0xee)]<=_0x5e85d6[_0x1cfde7(0xd3)]['length'])return![];for(let _0x158860=0x0;_0x158860<_0x5e85d6[_0x1cfde7(0xd3)]['length'];_0x158860++){if(_0xc837f2[_0x1cfde7(0xd3)][_0x158860]!==_0x5e85d6['segments'][_0x158860])return![];}return!![];}export function splitPath(_0x4d814b){const _0x5a8efb=a107_0x2a1a,_0x181a0d=parsePath(_0x4d814b);if(_0x181a0d[_0x5a8efb(0xd3)]['length']===0x0)throw new Error(_0x5a8efb(0xde));if(_0x181a0d[_0x5a8efb(0xd3)][_0x5a8efb(0xee)]===0x1)return{'parent':_0x181a0d[_0x5a8efb(0xd3)][0x0]};return{'parent':_0x181a0d['segments'][0x0],'child':_0x181a0d[_0x5a8efb(0xd3)][_0x5a8efb(0xf2)](0x1)[_0x5a8efb(0xf8)]('/')};}function a107_0x2a1a(_0x288a69,_0x44d54b){_0x288a69=_0x288a69-0xd0;const _0xea66a=a107_0xea66();let _0x2a1a6a=_0xea66a[_0x288a69];return _0x2a1a6a;}export function isYamlFilePath(_0x4025e8){const _0x18bfc5=a107_0x2a1a;return _0x4025e8[_0x18bfc5(0xf6)]('.yml')||_0x4025e8[_0x18bfc5(0xf6)](_0x18bfc5(0xf7));}export function resolveYamlFilePath(_0x1c80ce){const _0x2e110f=a107_0x2a1a,_0x5c5675=a107_0x38e3b6[_0x2e110f(0xe9)](_0x1c80ce);if(!existsSync(_0x5c5675))throw new Error(_0x2e110f(0xf0)+_0x1c80ce);let _0x18f37d=a107_0x38e3b6['dirname'](_0x5c5675),_0x4187c4=null,_0x2f197a=null;const _0x150cbf=a107_0x38e3b6[_0x2e110f(0xd1)](_0x18f37d)[_0x2e110f(0xff)];while(_0x18f37d!==_0x150cbf){const _0x49035f=a107_0x38e3b6[_0x2e110f(0xf8)](_0x18f37d,_0x2e110f(0xeb));if(existsSync(_0x49035f)){_0x4187c4=_0x49035f,_0x2f197a=_0x18f37d;break;}_0x18f37d=a107_0x38e3b6['dirname'](_0x18f37d);}if(!_0x4187c4||!_0x2f197a)throw new Error(_0x2e110f(0xe5)+_0x1c80ce);const _0x41b4af=readFileSync(_0x4187c4,_0x2e110f(0xd7)),_0x4c45df=JSON['parse'](_0x41b4af),_0x4e2a59=_0x4c45df[_0x2e110f(0xf4)];if(!_0x4e2a59)throw new Error(_0x2e110f(0xdd));const _0x38bf55=readFileSync(_0x5c5675,_0x2e110f(0xd7)),_0x3ded72=a107_0xfd9e10(_0x38bf55),_0xb77ed=_0x3ded72[_0x2e110f(0xd6)];if(!_0xb77ed)throw new Error('Invalid\x20YAML:\x20missing\x20name\x20field\x20in\x20'+_0x1c80ce);const _0xb33fe7=_0x3ded72[_0x2e110f(0xf3)]===_0x2e110f(0xe1)?_0x2e110f(0xe1):'segment',_0x45c20b=a107_0x38e3b6[_0x2e110f(0xe7)](_0x2f197a,_0x5c5675),_0x4a2dea=a107_0x38e3b6[_0x2e110f(0xd9)](_0x45c20b),_0x5bf14a=_0x4a2dea==='.'?'':_0x4a2dea[_0x2e110f(0xd5)](/\\/g,'/'),_0x21dd96=_0x5bf14a?_0x4e2a59+'/'+_0x5bf14a+'/'+_0xb77ed:_0x4e2a59+'/'+_0xb77ed;return{'parentSegment':_0x4e2a59,'segmentName':_0xb77ed,'folderPath':_0x5bf14a,'fullPath':_0x21dd96,'resourceType':_0xb33fe7};}
1
+ (function(_0x11da75,_0x14b9d6){const _0x428bb0=a107_0x41d7,_0x4785cf=_0x11da75();while(!![]){try{const _0x54f909=parseInt(_0x428bb0(0x1f3))/0x1*(-parseInt(_0x428bb0(0x1f1))/0x2)+parseInt(_0x428bb0(0x1d1))/0x3+-parseInt(_0x428bb0(0x1d9))/0x4*(parseInt(_0x428bb0(0x1cb))/0x5)+-parseInt(_0x428bb0(0x1e2))/0x6*(-parseInt(_0x428bb0(0x1d6))/0x7)+parseInt(_0x428bb0(0x1d7))/0x8*(parseInt(_0x428bb0(0x1e5))/0x9)+-parseInt(_0x428bb0(0x1d3))/0xa+-parseInt(_0x428bb0(0x1c8))/0xb*(parseInt(_0x428bb0(0x1cd))/0xc);if(_0x54f909===_0x14b9d6)break;else _0x4785cf['push'](_0x4785cf['shift']());}catch(_0x5d75a8){_0x4785cf['push'](_0x4785cf['shift']());}}}(a107_0x35b5,0xd02b8));function a107_0x35b5(){const _0x50acf0=['slice','resolve','length','utf-8','Path\x20attempts\x20to\x20navigate\x20above\x20root','File\x20not\x20found:\x20','relative','9891114vvUaFA','startsWith','root','81YdueoA','Path\x20segment\x20cannot\x20be\x20empty','Relative\x20path\x20cannot\x20be\x20empty','isAbsolute','parse','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','name','filter','raw','trim','Cannot\x20navigate\x20above\x20root','join','2wLLRFO','segment','414964dKUAPU','dirname','Cannot\x20split\x20empty\x20path','11RszxOx','Path\x20cannot\x20be\x20empty','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','11295MsoARa','endsWith','13038684ZbAIMB','Invalid\x20YAML:\x20missing\x20name\x20field\x20in\x20','segments','push','4078902JvGOzB','parent_segment','4592260hAEMPg','replace','pop','7LwlbZs','210424LISnYL','type','764ByoUCT','split'];a107_0x35b5=function(){return _0x50acf0;};return a107_0x35b5();}import{existsSync,readFileSync}from'fs';import a107_0x24d99a from'path';function a107_0x41d7(_0x1e805f,_0x36c8ec){_0x1e805f=_0x1e805f-0x1c7;const _0x35b5ef=a107_0x35b5();let _0x41d709=_0x35b5ef[_0x1e805f];return _0x41d709;}import{parse as a107_0x664778}from'yaml';export function parsePath(_0x29a3b7){const _0x5ec175=a107_0x41d7;if(!_0x29a3b7||_0x29a3b7[_0x5ec175(0x1ee)]()==='')throw new Error(_0x5ec175(0x1c9));const _0x1849bf=_0x29a3b7[_0x5ec175(0x1ee)]();if(_0x1849bf==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x29a3b7};const _0x2832c9=_0x1849bf[_0x5ec175(0x1e3)]('/')?_0x1849bf['substring'](0x1):_0x1849bf,_0x3e3010=_0x2832c9[_0x5ec175(0x1da)]('/')[_0x5ec175(0x1ec)](_0x20a1f3=>_0x20a1f3!=='');if(_0x3e3010[_0x5ec175(0x1dd)]===0x0)throw new Error('Path\x20must\x20contain\x20at\x20least\x20one\x20segment');const _0x323b69=_0x1849bf['startsWith']('/')||!isRelativePathSegment(_0x3e3010[0x0]);for(const _0xa64702 of _0x3e3010){validatePathSegment(_0xa64702);}return{'segments':_0x3e3010,'isAbsolute':_0x323b69,'raw':_0x29a3b7};}function isRelativePathSegment(_0x3ef814){return _0x3ef814==='.'||_0x3ef814==='..';}function validatePathSegment(_0x25ff2c){const _0x243959=a107_0x41d7;if(_0x25ff2c==='')throw new Error(_0x243959(0x1e6));if(_0x25ff2c==='.'||_0x25ff2c==='..')return;if(/[\x00-\x1F\x7F]/['test'](_0x25ff2c))throw new Error(_0x243959(0x1ca)+_0x25ff2c);if(_0x25ff2c!==_0x25ff2c['trim']()){}}export function validatePath(_0x5ae36b){const _0xad331c=a107_0x41d7;if(_0x5ae36b[_0xad331c(0x1cf)][_0xad331c(0x1dd)]===0x0&&!_0x5ae36b[_0xad331c(0x1e8)])throw new Error(_0xad331c(0x1e7));if(_0x5ae36b['isAbsolute']){if(_0x5ae36b[_0xad331c(0x1cf)][0x0]==='..')throw new Error(_0xad331c(0x1ea));let _0x4bbcd2=0x0;for(const _0x5a9bd2 of _0x5ae36b[_0xad331c(0x1cf)]){if(_0x5a9bd2==='..'){if(_0x4bbcd2===0x0)throw new Error(_0xad331c(0x1df));_0x4bbcd2--;}else _0x5a9bd2!=='.'&&_0x4bbcd2++;}}}export function joinPaths(_0x79b7af,_0x3469c0){const _0x2dfddd=a107_0x41d7;if(!_0x79b7af||_0x79b7af==='/')return _0x3469c0;if(!_0x3469c0||_0x3469c0==='.')return _0x79b7af;if(_0x3469c0[_0x2dfddd(0x1e3)]('/'))return _0x3469c0;const _0x4112b0=parsePath(_0x79b7af),_0x311689=parsePath(_0x3469c0),_0x5a8c5b=[..._0x4112b0[_0x2dfddd(0x1cf)]];for(const _0x24d1b8 of _0x311689['segments']){if(_0x24d1b8==='.')continue;else{if(_0x24d1b8==='..'){if(_0x5a8c5b['length']===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x5a8c5b[_0x2dfddd(0x1d5)]();}else _0x5a8c5b[_0x2dfddd(0x1d0)](_0x24d1b8);}}const _0x33d595=_0x5a8c5b[_0x2dfddd(0x1f0)]('/');return _0x4112b0[_0x2dfddd(0x1ed)][_0x2dfddd(0x1e3)]('/')?'/'+_0x33d595:_0x33d595;}export function normalizePath(_0x833c9f){const _0x2764c6=a107_0x41d7,_0x5a9195=parsePath(_0x833c9f),_0x1f9d28=[];for(const _0x35c918 of _0x5a9195[_0x2764c6(0x1cf)]){if(_0x35c918==='.')continue;else{if(_0x35c918==='..'){if(_0x1f9d28[_0x2764c6(0x1dd)]===0x0){if(_0x5a9195['isAbsolute'])throw new Error(_0x2764c6(0x1ef));_0x1f9d28[_0x2764c6(0x1d0)]('..');}else _0x1f9d28[_0x1f9d28[_0x2764c6(0x1dd)]-0x1]==='..'?_0x1f9d28[_0x2764c6(0x1d0)]('..'):_0x1f9d28['pop']();}else _0x1f9d28['push'](_0x35c918);}}if(_0x1f9d28[_0x2764c6(0x1dd)]===0x0)return _0x5a9195['isAbsolute']?'/':'.';const _0x3b52ae=_0x1f9d28[_0x2764c6(0x1f0)]('/');return _0x5a9195[_0x2764c6(0x1ed)][_0x2764c6(0x1e3)]('/')?'/'+_0x3b52ae:_0x3b52ae;}export function getParentPath(_0x28a8e2){const _0x955f83=a107_0x41d7,_0x3138d3=parsePath(_0x28a8e2);if(_0x3138d3[_0x955f83(0x1cf)][_0x955f83(0x1dd)]<=0x1)return'/';const _0x261b44=_0x3138d3[_0x955f83(0x1cf)][_0x955f83(0x1db)](0x0,-0x1)[_0x955f83(0x1f0)]('/');return _0x3138d3[_0x955f83(0x1ed)][_0x955f83(0x1e3)]('/')?'/'+_0x261b44:_0x261b44;}export function getBaseName(_0x13afd6){const _0x1aec02=a107_0x41d7,_0x1e64f5=parsePath(_0x13afd6);return _0x1e64f5[_0x1aec02(0x1cf)][_0x1e64f5[_0x1aec02(0x1cf)][_0x1aec02(0x1dd)]-0x1]||'';}export function isChildPath(_0x277d10,_0x101175){const _0x5832bb=a107_0x41d7,_0x35c2a2=parsePath(_0x277d10),_0x394129=parsePath(_0x101175);if(_0x35c2a2['segments'][_0x5832bb(0x1dd)]<=_0x394129[_0x5832bb(0x1cf)][_0x5832bb(0x1dd)])return![];for(let _0x3e3dd6=0x0;_0x3e3dd6<_0x394129[_0x5832bb(0x1cf)][_0x5832bb(0x1dd)];_0x3e3dd6++){if(_0x35c2a2[_0x5832bb(0x1cf)][_0x3e3dd6]!==_0x394129[_0x5832bb(0x1cf)][_0x3e3dd6])return![];}return!![];}export function splitPath(_0x1c4cbe){const _0xb7ccdf=a107_0x41d7,_0x2ce8f4=parsePath(_0x1c4cbe);if(_0x2ce8f4['segments'][_0xb7ccdf(0x1dd)]===0x0)throw new Error(_0xb7ccdf(0x1c7));if(_0x2ce8f4['segments'][_0xb7ccdf(0x1dd)]===0x1)return{'parent':_0x2ce8f4['segments'][0x0]};return{'parent':_0x2ce8f4[_0xb7ccdf(0x1cf)][0x0],'child':_0x2ce8f4['segments'][_0xb7ccdf(0x1db)](0x1)[_0xb7ccdf(0x1f0)]('/')};}export function isYamlFilePath(_0x43e1ef){const _0x1f5ec0=a107_0x41d7;return _0x43e1ef[_0x1f5ec0(0x1cc)]('.yml')||_0x43e1ef['endsWith']('.yaml');}export function resolveYamlFilePath(_0x2d9c2c){const _0x82af5c=a107_0x41d7,_0x203f48=a107_0x24d99a[_0x82af5c(0x1dc)](_0x2d9c2c);if(!existsSync(_0x203f48))throw new Error(_0x82af5c(0x1e0)+_0x2d9c2c);let _0x5d69f6=a107_0x24d99a[_0x82af5c(0x1f4)](_0x203f48),_0x1b9daa=null,_0x318afe=null;const _0x511f60=a107_0x24d99a[_0x82af5c(0x1e9)](_0x5d69f6)[_0x82af5c(0x1e4)];while(_0x5d69f6!==_0x511f60){const _0x4aa8e7=a107_0x24d99a[_0x82af5c(0x1f0)](_0x5d69f6,'tdx.json');if(existsSync(_0x4aa8e7)){_0x1b9daa=_0x4aa8e7,_0x318afe=_0x5d69f6;break;}_0x5d69f6=a107_0x24d99a[_0x82af5c(0x1f4)](_0x5d69f6);}if(!_0x1b9daa||!_0x318afe)throw new Error('No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x2d9c2c);const _0x576807=readFileSync(_0x1b9daa,_0x82af5c(0x1de)),_0x213d4f=JSON[_0x82af5c(0x1e9)](_0x576807),_0x3e9b86=_0x213d4f[_0x82af5c(0x1d2)];if(!_0x3e9b86)throw new Error('Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field');const _0x265bd3=readFileSync(_0x203f48,_0x82af5c(0x1de)),_0x5b5ea7=a107_0x664778(_0x265bd3),_0x5ad62f=_0x5b5ea7[_0x82af5c(0x1eb)];if(!_0x5ad62f)throw new Error(_0x82af5c(0x1ce)+_0x2d9c2c);const _0x458529=_0x5b5ea7[_0x82af5c(0x1d8)]==='journey'?'journey':_0x82af5c(0x1f2),_0x34f588=a107_0x24d99a[_0x82af5c(0x1e1)](_0x318afe,_0x203f48),_0x3fdb07=a107_0x24d99a[_0x82af5c(0x1f4)](_0x34f588),_0x3c8825=_0x3fdb07==='.'?'':_0x3fdb07[_0x82af5c(0x1d4)](/\\/g,'/'),_0x4fe4e7=_0x3c8825?_0x3e9b86+'/'+_0x3c8825+'/'+_0x5ad62f:_0x3e9b86+'/'+_0x5ad62f;return{'parentSegment':_0x3e9b86,'segmentName':_0x5ad62f,'folderPath':_0x3c8825,'fullPath':_0x4fe4e7,'resourceType':_0x458529};}
@@ -1 +1 @@
1
- (function(_0x4e9c50,_0x22a230){const _0x278993=a108_0x5d11,_0x71b57f=_0x4e9c50();while(!![]){try{const _0x2c2ac2=parseInt(_0x278993(0x8c))/0x1*(-parseInt(_0x278993(0x8a))/0x2)+-parseInt(_0x278993(0x87))/0x3+parseInt(_0x278993(0x8b))/0x4+parseInt(_0x278993(0x90))/0x5*(parseInt(_0x278993(0x86))/0x6)+parseInt(_0x278993(0x94))/0x7*(-parseInt(_0x278993(0x8d))/0x8)+-parseInt(_0x278993(0x92))/0x9+parseInt(_0x278993(0x91))/0xa*(parseInt(_0x278993(0x8f))/0xb);if(_0x2c2ac2===_0x22a230)break;else _0x71b57f['push'](_0x71b57f['shift']());}catch(_0x3a90bc){_0x71b57f['push'](_0x71b57f['shift']());}}}(a108_0x1922,0xe89fa));function a108_0x5d11(_0x4b7380,_0x36419d){_0x4b7380=_0x4b7380-0x86;const _0x1922e6=a108_0x1922();let _0x5d11f1=_0x1922e6[_0x4b7380];return _0x5d11f1;}export function parseSegmentRef(_0x2d3bc7){const _0x15ba02=a108_0x5d11,_0x4e752b=_0x2d3bc7[_0x15ba02(0x8e)]('/');if(_0x4e752b===-0x1)return{'parentId':_0x2d3bc7};if(_0x4e752b===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x2d3bc7+_0x15ba02(0x93));const _0x5241a1=_0x2d3bc7['substring'](0x0,_0x4e752b),_0x361fb9=_0x2d3bc7[_0x15ba02(0x89)](_0x4e752b+0x1);if(_0x361fb9==='')throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x2d3bc7+_0x15ba02(0x88));return{'parentId':_0x5241a1,'childId':_0x361fb9};}function a108_0x1922(){const _0x31e870=['540681bjLUHA','32KtVqQB','indexOf','183865UorLkG','286575CgTaRv','1970ssyIuZ','16846929FAbKCV','.\x20Parent\x20name\x20cannot\x20be\x20empty','1084636fNtJzK','132GQkaaD','3560073hBFIWJ','.\x20Child\x20name\x20cannot\x20be\x20empty','substring','4GsmEnm','4635068GBzGfz'];a108_0x1922=function(){return _0x31e870;};return a108_0x1922();}
1
+ function a108_0x2cc7(_0x2b2652,_0x71c457){_0x2b2652=_0x2b2652-0x9b;const _0x318137=a108_0x3181();let _0x2cc73f=_0x318137[_0x2b2652];return _0x2cc73f;}(function(_0x246c92,_0x4c7137){const _0x29d5a6=a108_0x2cc7,_0x5c268a=_0x246c92();while(!![]){try{const _0x3aa8fe=-parseInt(_0x29d5a6(0xa9))/0x1+-parseInt(_0x29d5a6(0x9b))/0x2+-parseInt(_0x29d5a6(0xa8))/0x3*(-parseInt(_0x29d5a6(0xa5))/0x4)+-parseInt(_0x29d5a6(0x9d))/0x5*(parseInt(_0x29d5a6(0xa6))/0x6)+-parseInt(_0x29d5a6(0xa1))/0x7+-parseInt(_0x29d5a6(0xa0))/0x8*(parseInt(_0x29d5a6(0xa2))/0x9)+parseInt(_0x29d5a6(0xa7))/0xa;if(_0x3aa8fe===_0x4c7137)break;else _0x5c268a['push'](_0x5c268a['shift']());}catch(_0x19dd88){_0x5c268a['push'](_0x5c268a['shift']());}}}(a108_0x3181,0xb56e1));export function parseSegmentRef(_0x4eba43){const _0x199e65=a108_0x2cc7,_0x2f5fcc=_0x4eba43[_0x199e65(0xa3)]('/');if(_0x2f5fcc===-0x1)return{'parentId':_0x4eba43};if(_0x2f5fcc===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x4eba43+_0x199e65(0x9c));const _0x2f13ef=_0x4eba43[_0x199e65(0x9f)](0x0,_0x2f5fcc),_0x511614=_0x4eba43[_0x199e65(0x9f)](_0x2f5fcc+0x1);if(_0x511614==='')throw new Error(_0x199e65(0xa4)+_0x4eba43+_0x199e65(0x9e));return{'parentId':_0x2f13ef,'childId':_0x511614};}function a108_0x3181(){const _0x30a181=['914754uoFyyD','47687880cgSziN','17610RYQIad','645511bOxyha','2344072tKZkzx','.\x20Parent\x20name\x20cannot\x20be\x20empty','30uCYoRh','.\x20Child\x20name\x20cannot\x20be\x20empty','substring','72yiaXPg','8322363XnlpXi','1225611CcRGQa','indexOf','Invalid\x20segment\x20reference\x20format:\x20','764vQrYLo'];a108_0x3181=function(){return _0x30a181;};return a108_0x3181();}
@@ -1 +1 @@
1
- (function(_0x5de26d,_0x355875){const _0x986e62=a109_0x23f4,_0x4f00ad=_0x5de26d();while(!![]){try{const _0x4c2b9b=-parseInt(_0x986e62(0x100))/0x1+-parseInt(_0x986e62(0xf5))/0x2+parseInt(_0x986e62(0x10c))/0x3*(-parseInt(_0x986e62(0xfe))/0x4)+parseInt(_0x986e62(0x107))/0x5+-parseInt(_0x986e62(0x10b))/0x6*(-parseInt(_0x986e62(0xfb))/0x7)+parseInt(_0x986e62(0x105))/0x8*(-parseInt(_0x986e62(0xfd))/0x9)+parseInt(_0x986e62(0xf7))/0xa;if(_0x4c2b9b===_0x355875)break;else _0x4f00ad['push'](_0x4f00ad['shift']());}catch(_0x48f408){_0x4f00ad['push'](_0x4f00ad['shift']());}}}(a109_0x1b0a,0xad6fa));import a109_0x4c7684 from'ora';function a109_0x23f4(_0x18605d,_0x3e8e25){_0x18605d=_0x18605d-0xf2;const _0x1b0a34=a109_0x1b0a();let _0x23f4a0=_0x1b0a34[_0x18605d];return _0x23f4a0;}export function createCommandSpinner(_0x568d72,_0x39ed1c={}){const _0x3c96be=a109_0x23f4,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x39ed1c;return a109_0x4c7684({'text':_0x568d72,'color':_0x3c96be(0x108),'isEnabled':forceEnabled||process['stdout'][_0x3c96be(0xfa)]&&!verbose});}export async function withSpinner(_0x3a2948,_0x52bd26,_0x2ef186={}){const _0x264e37=a109_0x23f4,_0x8c07d5=_0x2ef186[_0x264e37(0x10a)]??(()=>Date[_0x264e37(0xf6)]()),_0x40702f=createCommandSpinner(_0x3a2948,_0x2ef186);_0x40702f[_0x264e37(0xf2)]();const _0x2fadf5=_0x8c07d5();try{const _0x50831d=await _0x52bd26(),_0x5d2986=_0x8c07d5()-_0x2fadf5;return _0x40702f[_0x264e37(0x102)](),{'data':_0x50831d,'elapsedMs':_0x5d2986};}catch(_0x4cf793){_0x40702f[_0x264e37(0x102)]();throw _0x4cf793;}}function a109_0x1b0a(){const _0x2a764a=['21962750PpLkFN','toFixed','replace','isTTY','413798vWIyEp','...','12238353IKoWsB','379580BzWcXT','jobId','158326BcgnAM','intervalFactory','stop','isSpinning','floor','8aGEhwI','text','4771245nCNKhI','cyan','extra','clock','18lOwnSS','6WbozsM','start','phase','\x20[Job\x20ID:\x20','1819078ZamHVM','now'];a109_0x1b0a=function(){return _0x2a764a;};return a109_0x1b0a();}export async function withQuerySpinner(_0x434893,_0x2fc727,_0x261145={}){const _0x51e096=a109_0x23f4,_0x975d10=_0x261145[_0x51e096(0x10a)]??(()=>Date[_0x51e096(0xf6)]()),_0x27e34f=_0x261145[_0x51e096(0x101)]??setInterval,_0x31210d=createCommandSpinner(_0x434893,_0x261145);_0x31210d[_0x51e096(0xf2)]();const _0x2a0d95=_0x975d10(),_0x31417c=_0x434893[_0x51e096(0xf9)](_0x51e096(0xfc),''),_0x36a934={},_0x295bc2=()=>{const _0x563408=_0x51e096;if(!_0x31210d[_0x563408(0x103)])return;const _0x1fa48f=_0x975d10()-_0x2a0d95,_0x418d85=formatElapsed(_0x1fa48f),_0x360636=_0x36a934[_0x563408(0xf3)]??_0x31417c,_0x49a1cd=_0x36a934[_0x563408(0xff)]?_0x563408(0xf4)+_0x36a934[_0x563408(0xff)]+']':'',_0x1becc0=_0x36a934['extra']?'\x20'+_0x36a934['extra']:'';_0x31210d[_0x563408(0x106)]=_0x360636+'\x20'+_0x418d85+_0x1becc0+_0x49a1cd;},_0x57fedf=_0x27e34f(()=>{_0x295bc2();},0x3e8),_0x47390d={'setPhase':_0xbde961=>{const _0xadca93=_0x51e096;_0x36a934[_0xadca93(0xf3)]=_0xbde961,_0x295bc2();},'setJobId':_0x5967b4=>{const _0x1c3612=_0x51e096;_0x36a934[_0x1c3612(0xff)]=_0x5967b4,_0x295bc2();},'setExtra':_0x614b4d=>{const _0x2563fc=_0x51e096;_0x36a934[_0x2563fc(0x109)]=_0x614b4d,_0x295bc2();}};_0x295bc2();try{const _0x50aa55=await _0x2fc727(_0x47390d),_0x5cfec2=_0x975d10()-_0x2a0d95;return{'data':_0x50aa55,'elapsedMs':_0x5cfec2};}finally{clearInterval(_0x57fedf),_0x31210d[_0x51e096(0x102)]();}}export function formatElapsed(_0x2f924b){const _0x3d87bc=a109_0x23f4,_0x5ef0ff=Math[_0x3d87bc(0x104)](_0x2f924b/0x3e8);if(_0x5ef0ff<0x3c)return(_0x2f924b/0x3e8)[_0x3d87bc(0xf8)](0x1)+'s';const _0x24cc00=Math[_0x3d87bc(0x104)](_0x5ef0ff/0x3c),_0x58d072=_0x5ef0ff%0x3c;if(_0x24cc00<0x3c)return _0x24cc00+'m\x20'+_0x58d072+'s';const _0xf77b20=Math['floor'](_0x24cc00/0x3c),_0x5f3208=_0x24cc00%0x3c;return _0xf77b20+'h\x20'+_0x5f3208+'m';}
1
+ (function(_0x54dfd6,_0x34972d){const _0x11b04e=a109_0x4f05,_0x1a0bf5=_0x54dfd6();while(!![]){try{const _0x3fb567=-parseInt(_0x11b04e(0x18e))/0x1+-parseInt(_0x11b04e(0x18f))/0x2*(-parseInt(_0x11b04e(0x17e))/0x3)+-parseInt(_0x11b04e(0x17d))/0x4+parseInt(_0x11b04e(0x189))/0x5+-parseInt(_0x11b04e(0x187))/0x6+-parseInt(_0x11b04e(0x186))/0x7+parseInt(_0x11b04e(0x185))/0x8;if(_0x3fb567===_0x34972d)break;else _0x1a0bf5['push'](_0x1a0bf5['shift']());}catch(_0x31bf86){_0x1a0bf5['push'](_0x1a0bf5['shift']());}}}(a109_0x1cc9,0x67269));import a109_0x55d5df from'ora';function a109_0x4f05(_0x47fa31,_0x3f728a){_0x47fa31=_0x47fa31-0x179;const _0x1cc9a0=a109_0x1cc9();let _0x4f0561=_0x1cc9a0[_0x47fa31];return _0x4f0561;}export function createCommandSpinner(_0x57a4f8,_0x502c1d={}){const _0x560b2f=a109_0x4f05,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x502c1d;return a109_0x55d5df({'text':_0x57a4f8,'color':_0x560b2f(0x17c),'isEnabled':forceEnabled||process['stdout'][_0x560b2f(0x180)]&&!verbose});}function a109_0x1cc9(){const _0xcd391f=['toFixed','start','jobId','phase','17203672npbeev','2899575tSMCHK','3018762VlEIsV','clock','833175fXfrzj','floor','...','text','extra','426247jSYSyj','2XZvyva','now','stop','\x20[Job\x20ID:\x20','cyan','2850532BtziRl','484929wqKUkM','replace','isTTY'];a109_0x1cc9=function(){return _0xcd391f;};return a109_0x1cc9();}export async function withSpinner(_0x47e3f0,_0x1a3d31,_0x19f886={}){const _0x198946=a109_0x4f05,_0x5c6488=_0x19f886[_0x198946(0x188)]??(()=>Date['now']()),_0x407dbe=createCommandSpinner(_0x47e3f0,_0x19f886);_0x407dbe['start']();const _0x279202=_0x5c6488();try{const _0xa00278=await _0x1a3d31(),_0x3747ad=_0x5c6488()-_0x279202;return _0x407dbe[_0x198946(0x17a)](),{'data':_0xa00278,'elapsedMs':_0x3747ad};}catch(_0xa12cb1){_0x407dbe[_0x198946(0x17a)]();throw _0xa12cb1;}}export async function withQuerySpinner(_0xd1dcaf,_0x13dd5b,_0xe02efa={}){const _0x5d669a=a109_0x4f05,_0x885b3a=_0xe02efa[_0x5d669a(0x188)]??(()=>Date[_0x5d669a(0x179)]()),_0xbd3ee5=_0xe02efa['intervalFactory']??setInterval,_0x53e827=createCommandSpinner(_0xd1dcaf,_0xe02efa);_0x53e827[_0x5d669a(0x182)]();const _0x594dd5=_0x885b3a(),_0x2db958=_0xd1dcaf[_0x5d669a(0x17f)](_0x5d669a(0x18b),''),_0x4e1874={},_0x2fe9d8=()=>{const _0x5b6632=_0x5d669a;if(!_0x53e827['isSpinning'])return;const _0xe4339=_0x885b3a()-_0x594dd5,_0x5f3e7c=formatElapsed(_0xe4339),_0x4f6ad8=_0x4e1874['phase']??_0x2db958,_0x4531b9=_0x4e1874[_0x5b6632(0x183)]?_0x5b6632(0x17b)+_0x4e1874[_0x5b6632(0x183)]+']':'',_0x3efee3=_0x4e1874[_0x5b6632(0x18d)]?'\x20'+_0x4e1874[_0x5b6632(0x18d)]:'';_0x53e827[_0x5b6632(0x18c)]=_0x4f6ad8+'\x20'+_0x5f3e7c+_0x3efee3+_0x4531b9;},_0x245bcb=_0xbd3ee5(()=>{_0x2fe9d8();},0x3e8),_0xfa065b={'setPhase':_0x1980ea=>{const _0x748a5a=_0x5d669a;_0x4e1874[_0x748a5a(0x184)]=_0x1980ea,_0x2fe9d8();},'setJobId':_0x5a5489=>{const _0x2bfc67=_0x5d669a;_0x4e1874[_0x2bfc67(0x183)]=_0x5a5489,_0x2fe9d8();},'setExtra':_0x1f3414=>{const _0x4d4b8d=_0x5d669a;_0x4e1874[_0x4d4b8d(0x18d)]=_0x1f3414,_0x2fe9d8();}};_0x2fe9d8();try{const _0x2f7388=await _0x13dd5b(_0xfa065b),_0x123849=_0x885b3a()-_0x594dd5;return{'data':_0x2f7388,'elapsedMs':_0x123849};}finally{clearInterval(_0x245bcb),_0x53e827[_0x5d669a(0x17a)]();}}export function formatElapsed(_0x4fb21a){const _0xd1f654=a109_0x4f05,_0x1b4640=Math['floor'](_0x4fb21a/0x3e8);if(_0x1b4640<0x3c)return(_0x4fb21a/0x3e8)[_0xd1f654(0x181)](0x1)+'s';const _0x4aefc0=Math[_0xd1f654(0x18a)](_0x1b4640/0x3c),_0x7e07fc=_0x1b4640%0x3c;if(_0x4aefc0<0x3c)return _0x4aefc0+'m\x20'+_0x7e07fc+'s';const _0x5324b4=Math[_0xd1f654(0x18a)](_0x4aefc0/0x3c),_0x536da1=_0x4aefc0%0x3c;return _0x5324b4+'h\x20'+_0x536da1+'m';}
@@ -1 +1 @@
1
- (function(_0x29cede,_0xe3990b){const _0x598f70=a110_0x41e1,_0x3e61a3=_0x29cede();while(!![]){try{const _0x3b1941=parseInt(_0x598f70(0x1f2))/0x1*(parseInt(_0x598f70(0x20a))/0x2)+-parseInt(_0x598f70(0x1ed))/0x3*(-parseInt(_0x598f70(0x1ff))/0x4)+parseInt(_0x598f70(0x1f9))/0x5+-parseInt(_0x598f70(0x20d))/0x6*(parseInt(_0x598f70(0x1ec))/0x7)+parseInt(_0x598f70(0x209))/0x8+parseInt(_0x598f70(0x203))/0x9*(parseInt(_0x598f70(0x1fa))/0xa)+-parseInt(_0x598f70(0x1f5))/0xb*(parseInt(_0x598f70(0x1f4))/0xc);if(_0x3b1941===_0xe3990b)break;else _0x3e61a3['push'](_0x3e61a3['shift']());}catch(_0x25e90d){_0x3e61a3['push'](_0x3e61a3['shift']());}}}(a110_0x5cd1,0x5d896));import{readFileSync}from'fs';import{createInterface}from'readline';export function stripSqlComments(_0xe84097){const _0x58a7f4=a110_0x41e1;let _0x3650e0=_0xe84097[_0x58a7f4(0x1f0)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x3650e0=_0x3650e0[_0x58a7f4(0x1f0)](/--.*$/gm,''),_0x3650e0[_0x58a7f4(0x20e)]();}function isEscaped(_0x27f802,_0x5908ef){let _0x3cdeb2=0x0;for(let _0x30bbd9=_0x5908ef-0x1;_0x30bbd9>=0x0&&_0x27f802[_0x30bbd9]==='\x5c';_0x30bbd9--){_0x3cdeb2++;}return _0x3cdeb2%0x2===0x1;}export function splitSqlStatements(_0x528724){const _0x2cfa54=a110_0x41e1,_0x45abfd=stripSqlComments(_0x528724);if(!_0x45abfd)throw new Error(_0x2cfa54(0x202));const _0x2c99c4=[];let _0x3f21ee='',_0x3aa447=![],_0x21e3ce=![],_0x364ba0=![];for(let _0x2fa4e7=0x0;_0x2fa4e7<_0x528724[_0x2cfa54(0x1fd)];_0x2fa4e7++){const _0x5f27ec=_0x528724[_0x2fa4e7];if(_0x5f27ec==='\x27'&&!isEscaped(_0x528724,_0x2fa4e7)&&!_0x21e3ce&&!_0x364ba0)_0x3aa447=!_0x3aa447;else{if(_0x5f27ec==='\x22'&&!isEscaped(_0x528724,_0x2fa4e7)&&!_0x3aa447&&!_0x364ba0)_0x21e3ce=!_0x21e3ce;else _0x5f27ec==='`'&&!isEscaped(_0x528724,_0x2fa4e7)&&!_0x3aa447&&!_0x21e3ce&&(_0x364ba0=!_0x364ba0);}if(_0x5f27ec===';'&&!_0x3aa447&&!_0x21e3ce&&!_0x364ba0){const _0x7be0c2=_0x3f21ee[_0x2cfa54(0x20e)]();_0x7be0c2&&_0x2c99c4[_0x2cfa54(0x1fb)](_0x7be0c2),_0x3f21ee='';}else _0x3f21ee+=_0x5f27ec;}const _0x10d28f=_0x3f21ee[_0x2cfa54(0x20e)]();_0x10d28f&&_0x2c99c4[_0x2cfa54(0x1fb)](_0x10d28f);const _0x2a9785=_0x2c99c4[_0x2cfa54(0x1f1)](_0x4d44ad=>_0x4d44ad['trim']())[_0x2cfa54(0x1eb)](_0x3d839d=>{const _0x5c7ed5=stripSqlComments(_0x3d839d);return _0x5c7ed5['length']>0x0;});if(_0x2a9785[_0x2cfa54(0x1fd)]===0x0)throw new Error(_0x2cfa54(0x202));return _0x2a9785;}export function readFileContent(_0x5be18c){const _0x102a03=a110_0x41e1;try{return readFileSync(_0x5be18c,'utf-8');}catch(_0x1cf8b7){const _0x2eeffa=_0x1cf8b7[_0x102a03(0x206)];if(_0x2eeffa===_0x102a03(0x207))throw new Error(_0x102a03(0x1f8)+_0x5be18c+_0x102a03(0x1f6));else{if(_0x2eeffa==='EACCES')throw new Error(_0x102a03(0x20c)+_0x5be18c+'\x27');else throw new Error(_0x102a03(0x20b)+_0x5be18c+_0x102a03(0x201)+_0x1cf8b7[_0x102a03(0x1f3)]);}}}export function readSqlStatementsFromFile(_0x1f7e04){const _0x164be3=a110_0x41e1,_0x583bc0=readFileContent(_0x1f7e04);try{return splitSqlStatements(_0x583bc0);}catch(_0x10ea0f){throw new Error(_0x164be3(0x1f8)+_0x1f7e04+'\x27\x20'+_0x10ea0f[_0x164be3(0x1f3)]['toLowerCase']());}}export async function readStdinContent(){const _0x55d530=a110_0x41e1;if(process[_0x55d530(0x1fe)][_0x55d530(0x208)])throw new Error(_0x55d530(0x204));return new Promise((_0x2ccc44,_0xc68e42)=>{const _0x9e835e=_0x55d530,_0x2713b5=[],_0x192cc0=createInterface({'input':process['stdin'],'terminal':![]});_0x192cc0['on']('line',_0x322d47=>{const _0xbd2e11=a110_0x41e1;_0x2713b5[_0xbd2e11(0x1fb)](_0x322d47);}),_0x192cc0['on'](_0x9e835e(0x200),()=>{const _0x2f1dff=_0x9e835e;_0x2ccc44(_0x2713b5[_0x2f1dff(0x1ef)]('\x0a'));}),_0x192cc0['on'](_0x9e835e(0x1ee),_0xb0793c=>{const _0x20a048=_0x9e835e;_0x192cc0[_0x20a048(0x200)](),_0xc68e42(new Error(_0x20a048(0x1fc)+_0xb0793c['message']));});});}export async function readSqlStatementsFromStdin(){const _0x204c90=a110_0x41e1,_0x178283=await readStdinContent();try{return splitSqlStatements(_0x178283);}catch(_0x1cc38c){throw new Error(_0x204c90(0x205)+_0x1cc38c['message'][_0x204c90(0x1ea)]());}}export function isSqlFilePath(_0x54f772){const _0x1c56c5=a110_0x41e1;return/\w\.sql$/[_0x1c56c5(0x1f7)](_0x54f772);}function a110_0x41e1(_0x18e047,_0x362163){_0x18e047=_0x18e047-0x1ea;const _0x5cd1ce=a110_0x5cd1();let _0x41e14c=_0x5cd1ce[_0x18e047];return _0x41e14c;}function a110_0x5cd1(){const _0x5200a7=['close','\x27:\x20','Content\x20contains\x20no\x20SQL\x20statements','783EJnugV','No\x20input\x20provided.\x20Pipe\x20SQL\x20to\x20stdin\x20or\x20use\x20a\x20file.\x0aExample:\x20echo\x20\x22SELECT\x201\x22\x20|\x20tdx\x20query\x20-','stdin\x20','code','ENOENT','isTTY','4722648fyFBGU','510yKuVWD','Error\x20reading\x20file\x20\x27','Permission\x20denied\x20reading\x20file\x20\x27','5898oblhkD','trim','toLowerCase','filter','4823DKQyHW','1119lXQxxH','error','join','replace','map','881Mfiguq','message','12RfOzSy','11562947ElWMCD','\x27\x20not\x20found','test','File\x20\x27','2162715bNWNBI','87570gbBKQQ','push','Error\x20reading\x20from\x20stdin:\x20','length','stdin','1096Xxbmyg'];a110_0x5cd1=function(){return _0x5200a7;};return a110_0x5cd1();}
1
+ (function(_0x3b6273,_0x3cfe7f){const _0x1b9fe9=a110_0x49f2,_0x47d78c=_0x3b6273();while(!![]){try{const _0x14cd0d=-parseInt(_0x1b9fe9(0x201))/0x1*(parseInt(_0x1b9fe9(0x1ef))/0x2)+parseInt(_0x1b9fe9(0x20b))/0x3+-parseInt(_0x1b9fe9(0x20a))/0x4*(parseInt(_0x1b9fe9(0x1f1))/0x5)+parseInt(_0x1b9fe9(0x207))/0x6*(parseInt(_0x1b9fe9(0x1fa))/0x7)+-parseInt(_0x1b9fe9(0x205))/0x8*(parseInt(_0x1b9fe9(0x1f0))/0x9)+-parseInt(_0x1b9fe9(0x1f9))/0xa*(parseInt(_0x1b9fe9(0x1f7))/0xb)+parseInt(_0x1b9fe9(0x20c))/0xc;if(_0x14cd0d===_0x3cfe7f)break;else _0x47d78c['push'](_0x47d78c['shift']());}catch(_0x47778c){_0x47d78c['push'](_0x47d78c['shift']());}}}(a110_0x559e,0xcacbd));import{readFileSync}from'fs';import{createInterface}from'readline';function a110_0x559e(){const _0x5ecb2b=['push','test','2GyakxW','error','stdin\x20','message','72pwkdmt','stdin','18HdDMpj','Permission\x20denied\x20reading\x20file\x20\x27','length','4290140oyOwte','1769052yPWPAt','51470916GTFgqo','isTTY','Error\x20reading\x20from\x20stdin:\x20','EACCES','1406626mhaCBU','872811flzOvI','5CZSJhi','map','replace','utf-8','filter','trim','11XpLqbk','\x27:\x20','13690010gjIOdL','1569631LaFZPD','Content\x20contains\x20no\x20SQL\x20statements','File\x20\x27','toLowerCase','ENOENT'];a110_0x559e=function(){return _0x5ecb2b;};return a110_0x559e();}function a110_0x49f2(_0x22a468,_0x11910c){_0x22a468=_0x22a468-0x1ec;const _0x559e84=a110_0x559e();let _0x49f22f=_0x559e84[_0x22a468];return _0x49f22f;}export function stripSqlComments(_0x20ba9e){const _0x3c75f7=a110_0x49f2;let _0x276455=_0x20ba9e[_0x3c75f7(0x1f3)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x276455=_0x276455['replace'](/--.*$/gm,''),_0x276455['trim']();}function isEscaped(_0x513b56,_0x47ad30){let _0x393a2e=0x0;for(let _0x1bb77a=_0x47ad30-0x1;_0x1bb77a>=0x0&&_0x513b56[_0x1bb77a]==='\x5c';_0x1bb77a--){_0x393a2e++;}return _0x393a2e%0x2===0x1;}export function splitSqlStatements(_0x594e66){const _0x153199=a110_0x49f2,_0x53f63a=stripSqlComments(_0x594e66);if(!_0x53f63a)throw new Error(_0x153199(0x1fb));const _0x10157d=[];let _0x408352='',_0x3ebbda=![],_0x821d2b=![],_0x335464=![];for(let _0x21aa5a=0x0;_0x21aa5a<_0x594e66['length'];_0x21aa5a++){const _0x1c70d4=_0x594e66[_0x21aa5a];if(_0x1c70d4==='\x27'&&!isEscaped(_0x594e66,_0x21aa5a)&&!_0x821d2b&&!_0x335464)_0x3ebbda=!_0x3ebbda;else{if(_0x1c70d4==='\x22'&&!isEscaped(_0x594e66,_0x21aa5a)&&!_0x3ebbda&&!_0x335464)_0x821d2b=!_0x821d2b;else _0x1c70d4==='`'&&!isEscaped(_0x594e66,_0x21aa5a)&&!_0x3ebbda&&!_0x821d2b&&(_0x335464=!_0x335464);}if(_0x1c70d4===';'&&!_0x3ebbda&&!_0x821d2b&&!_0x335464){const _0x290526=_0x408352[_0x153199(0x1f6)]();_0x290526&&_0x10157d[_0x153199(0x1ff)](_0x290526),_0x408352='';}else _0x408352+=_0x1c70d4;}const _0x89fbd6=_0x408352['trim']();_0x89fbd6&&_0x10157d[_0x153199(0x1ff)](_0x89fbd6);const _0x48a62b=_0x10157d[_0x153199(0x1f2)](_0x53bc21=>_0x53bc21[_0x153199(0x1f6)]())[_0x153199(0x1f5)](_0x3ed7aa=>{const _0x3530f2=_0x153199,_0x199ae0=stripSqlComments(_0x3ed7aa);return _0x199ae0[_0x3530f2(0x209)]>0x0;});if(_0x48a62b[_0x153199(0x209)]===0x0)throw new Error(_0x153199(0x1fb));return _0x48a62b;}export function readFileContent(_0x2a703f){const _0x4e51aa=a110_0x49f2;try{return readFileSync(_0x2a703f,_0x4e51aa(0x1f4));}catch(_0x2c0a8e){const _0x19b43b=_0x2c0a8e['code'];if(_0x19b43b===_0x4e51aa(0x1fe))throw new Error(_0x4e51aa(0x1fc)+_0x2a703f+'\x27\x20not\x20found');else{if(_0x19b43b===_0x4e51aa(0x1ee))throw new Error(_0x4e51aa(0x208)+_0x2a703f+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0x2a703f+_0x4e51aa(0x1f8)+_0x2c0a8e['message']);}}}export function readSqlStatementsFromFile(_0x46b466){const _0x550409=a110_0x49f2,_0x2acd71=readFileContent(_0x46b466);try{return splitSqlStatements(_0x2acd71);}catch(_0x285f16){throw new Error(_0x550409(0x1fc)+_0x46b466+'\x27\x20'+_0x285f16[_0x550409(0x204)][_0x550409(0x1fd)]());}}export async function readStdinContent(){const _0x1f8e0f=a110_0x49f2;if(process[_0x1f8e0f(0x206)][_0x1f8e0f(0x1ec)])throw new Error('No\x20input\x20provided.\x20Pipe\x20SQL\x20to\x20stdin\x20or\x20use\x20a\x20file.\x0aExample:\x20echo\x20\x22SELECT\x201\x22\x20|\x20tdx\x20query\x20-');return new Promise((_0x1e88e1,_0x1613c8)=>{const _0x40bc8c=_0x1f8e0f,_0x39ddde=[],_0x5740d3=createInterface({'input':process[_0x40bc8c(0x206)],'terminal':![]});_0x5740d3['on']('line',_0x1b27e9=>{const _0x59f27f=_0x40bc8c;_0x39ddde[_0x59f27f(0x1ff)](_0x1b27e9);}),_0x5740d3['on']('close',()=>{_0x1e88e1(_0x39ddde['join']('\x0a'));}),_0x5740d3['on'](_0x40bc8c(0x202),_0x720a4e=>{const _0x9e1b23=_0x40bc8c;_0x5740d3['close'](),_0x1613c8(new Error(_0x9e1b23(0x1ed)+_0x720a4e[_0x9e1b23(0x204)]));});});}export async function readSqlStatementsFromStdin(){const _0x4adc10=a110_0x49f2,_0x5c44f6=await readStdinContent();try{return splitSqlStatements(_0x5c44f6);}catch(_0x13a81d){throw new Error(_0x4adc10(0x203)+_0x13a81d[_0x4adc10(0x204)][_0x4adc10(0x1fd)]());}}export function isSqlFilePath(_0x16621c){const _0x43aa6f=a110_0x49f2;return/\w\.sql$/[_0x43aa6f(0x200)](_0x16621c);}
@@ -1 +1 @@
1
- function a111_0x129b(){const _0x341af4=['2232920ENUIeo','2672504rzrQKu','1400946uNnKCi','slice','body','trim','split','read','event','decode','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','9WEGKOo','5sQfnmw','796089AMhwWA','8601wOdDzD','startsWith','debug','4236786xbptad','[LLM\x20API\x20SSE]\x20','data','8DkUiGY','getReader','indexOf','513952sDcvhG'];a111_0x129b=function(){return _0x341af4;};return a111_0x129b();}(function(_0x387340,_0x3faf98){const _0x4df54b=a111_0x46a0,_0x371304=_0x387340();while(!![]){try{const _0x395b4d=-parseInt(_0x4df54b(0x14d))/0x1*(-parseInt(_0x4df54b(0x153))/0x2)+-parseInt(_0x4df54b(0x159))/0x3+-parseInt(_0x4df54b(0x156))/0x4*(-parseInt(_0x4df54b(0x14b))/0x5)+parseInt(_0x4df54b(0x150))/0x6+-parseInt(_0x4df54b(0x14c))/0x7+parseInt(_0x4df54b(0x158))/0x8+parseInt(_0x4df54b(0x14a))/0x9*(-parseInt(_0x4df54b(0x157))/0xa);if(_0x395b4d===_0x3faf98)break;else _0x371304['push'](_0x371304['shift']());}catch(_0x37462c){_0x371304['push'](_0x371304['shift']());}}}(a111_0x129b,0x616ed));export async function*parseSSEStream(_0x3d8970,_0x1e99c5){const _0x397c10=a111_0x46a0;if(!_0x3d8970[_0x397c10(0x15b)])throw new Error('Response\x20body\x20is\x20null');const _0x22e39b=_0x3d8970['body'][_0x397c10(0x154)](),_0x1c155b=new TextDecoder();let _0x3f47e9='',_0x5edb84={};try{while(!![]){const {done:_0x119d03,value:_0x300db3}=await _0x22e39b[_0x397c10(0x146)]();if(_0x119d03){if(_0x5edb84[_0x397c10(0x152)]){_0x1e99c5?.[_0x397c10(0x14f)](_0x397c10(0x151)+_0x5edb84['data']);const _0x57fe14=parseSSEData(_0x5edb84['data']);yield _0x57fe14;}break;}_0x3f47e9+=_0x1c155b[_0x397c10(0x148)](_0x300db3,{'stream':!![]});const _0x317b0d=_0x3f47e9[_0x397c10(0x145)]('\x0a');_0x3f47e9=_0x317b0d['pop']()||'';for(const _0x2e678c of _0x317b0d){if(_0x2e678c[_0x397c10(0x144)]()===''){if(_0x5edb84[_0x397c10(0x152)]){_0x1e99c5?.['debug'](_0x397c10(0x151)+_0x5edb84['data']);const _0x4b7f5a=parseSSEData(_0x5edb84[_0x397c10(0x152)]);yield _0x4b7f5a,_0x5edb84={};}continue;}if(_0x2e678c[_0x397c10(0x14e)](':'))continue;const _0x1592a8=_0x2e678c[_0x397c10(0x155)](':');if(_0x1592a8===-0x1)continue;const _0x5d379a=_0x2e678c[_0x397c10(0x15a)](0x0,_0x1592a8);let _0x180485=_0x2e678c[_0x397c10(0x15a)](_0x1592a8+0x1);_0x180485['startsWith']('\x20')&&(_0x180485=_0x180485[_0x397c10(0x15a)](0x1));switch(_0x5d379a){case _0x397c10(0x147):_0x5edb84[_0x397c10(0x147)]=_0x180485;break;case _0x397c10(0x152):_0x5edb84[_0x397c10(0x152)]=_0x5edb84[_0x397c10(0x152)]?_0x5edb84['data']+'\x0a'+_0x180485:_0x180485;break;case'id':_0x5edb84['id']=_0x180485;break;}}}}finally{_0x22e39b['releaseLock']();}}function a111_0x46a0(_0x37c080,_0x3bae84){_0x37c080=_0x37c080-0x144;const _0x129b5b=a111_0x129b();let _0x46a061=_0x129b5b[_0x37c080];return _0x46a061;}function parseSSEData(_0x139e6c){const _0x43542d=a111_0x46a0;try{return JSON['parse'](_0x139e6c);}catch(_0x364447){throw new Error(_0x43542d(0x149)+_0x139e6c,{'cause':_0x364447});}}
1
+ function a111_0x1da6(_0x12829f,_0x33bc5d){_0x12829f=_0x12829f-0x1f3;const _0x260ceb=a111_0x260c();let _0x1da614=_0x260ceb[_0x12829f];return _0x1da614;}function a111_0x260c(){const _0x5acbef=['getReader','startsWith','[LLM\x20API\x20SSE]\x20','slice','259EjDFnh','Response\x20body\x20is\x20null','debug','1639932PPPzFP','11646aiSMYr','body','1942560YrPRsP','trim','read','123088wnNvQG','pop','releaseLock','data','parse','event','213134rTTVbd','2349972PdxQTb','146088gjYyln'];a111_0x260c=function(){return _0x5acbef;};return a111_0x260c();}(function(_0x36659b,_0x423ec8){const _0x356075=a111_0x1da6,_0x476c12=_0x36659b();while(!![]){try{const _0x18f80a=-parseInt(_0x356075(0x1f9))/0x1+-parseInt(_0x356075(0x1f3))/0x2+-parseInt(_0x356075(0x204))/0x3+parseInt(_0x356075(0x203))/0x4+parseInt(_0x356075(0x206))/0x5+parseInt(_0x356075(0x1fa))/0x6+-parseInt(_0x356075(0x200))/0x7*(parseInt(_0x356075(0x1fb))/0x8);if(_0x18f80a===_0x423ec8)break;else _0x476c12['push'](_0x476c12['shift']());}catch(_0x3b253d){_0x476c12['push'](_0x476c12['shift']());}}}(a111_0x260c,0x399a4));export async function*parseSSEStream(_0x5bda6e,_0x1f9899){const _0x12c8d6=a111_0x1da6;if(!_0x5bda6e[_0x12c8d6(0x205)])throw new Error(_0x12c8d6(0x201));const _0x5b6e43=_0x5bda6e[_0x12c8d6(0x205)][_0x12c8d6(0x1fc)](),_0x240838=new TextDecoder();let _0x42a3dc='',_0x444f96={};try{while(!![]){const {done:_0xc568c7,value:_0x556c6d}=await _0x5b6e43[_0x12c8d6(0x208)]();if(_0xc568c7){if(_0x444f96[_0x12c8d6(0x1f6)]){_0x1f9899?.[_0x12c8d6(0x202)](_0x12c8d6(0x1fe)+_0x444f96[_0x12c8d6(0x1f6)]);const _0x532952=parseSSEData(_0x444f96[_0x12c8d6(0x1f6)]);yield _0x532952;}break;}_0x42a3dc+=_0x240838['decode'](_0x556c6d,{'stream':!![]});const _0x382596=_0x42a3dc['split']('\x0a');_0x42a3dc=_0x382596[_0x12c8d6(0x1f4)]()||'';for(const _0x24f5b7 of _0x382596){if(_0x24f5b7[_0x12c8d6(0x207)]()===''){if(_0x444f96[_0x12c8d6(0x1f6)]){_0x1f9899?.[_0x12c8d6(0x202)](_0x12c8d6(0x1fe)+_0x444f96[_0x12c8d6(0x1f6)]);const _0x7ecb73=parseSSEData(_0x444f96['data']);yield _0x7ecb73,_0x444f96={};}continue;}if(_0x24f5b7['startsWith'](':'))continue;const _0x5edb05=_0x24f5b7['indexOf'](':');if(_0x5edb05===-0x1)continue;const _0x5dffa0=_0x24f5b7[_0x12c8d6(0x1ff)](0x0,_0x5edb05);let _0x568b50=_0x24f5b7['slice'](_0x5edb05+0x1);_0x568b50[_0x12c8d6(0x1fd)]('\x20')&&(_0x568b50=_0x568b50['slice'](0x1));switch(_0x5dffa0){case _0x12c8d6(0x1f8):_0x444f96['event']=_0x568b50;break;case _0x12c8d6(0x1f6):_0x444f96[_0x12c8d6(0x1f6)]=_0x444f96[_0x12c8d6(0x1f6)]?_0x444f96[_0x12c8d6(0x1f6)]+'\x0a'+_0x568b50:_0x568b50;break;case'id':_0x444f96['id']=_0x568b50;break;}}}}finally{_0x5b6e43[_0x12c8d6(0x1f5)]();}}function parseSSEData(_0x49bcec){const _0x40b6b3=a111_0x1da6;try{return JSON[_0x40b6b3(0x1f7)](_0x49bcec);}catch(_0x565ca7){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x49bcec,{'cause':_0x565ca7});}}