@treasuredata/tdx 0.25.8 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a153_0x4d7a41=a153_0x5c84;function a153_0x31d6(){const _0x5d004c=['log','error','table','1435554bosVaP','name','user-2','2024-01-15T12:00:00Z','pageviews','TimeWithinPast','administrator','Purchase\x20Reminder','completed','SELECT\x20*\x20FROM\x20nonexistent_table','cs-111222','users','ps-789012','events','user-3','properties','varchar','Onboarding\x20journey\x20for\x20new\x20users','queryResult','cs-456789','lifetime_value','High\x20Value\x20Active\x20Users','/v3/database/list','79316HVFXEj','Bob','sess-111','Table\x20does\x20not\x20exist:\x20nonexistent_table','bigint','email','test_db','act-123','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','customer_id','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','event_type','basic','timestamp','The\x20requested\x20resource\x20does\x20not\x20exist','page_views','step-1','2024-01-15T08:00:00Z','Charlie','Customers\x20with\x20Behaviors','def456','end','Parent\x20segment\x20with\x20behavioral\x20data','https://api.treasuredata.com/errors/forbidden','cdp_db','string','abc123','1286206KXGLdo','2024-01-15T00:00:00Z','Admin\x20User','stringify','Test\x20Parent\x20Segment','2024-01-15T10:10:01Z','177rzgghT','step-3','2024-01-15T10:05:00Z','running','Forbidden','production_db','2023-01-01T00:00:00Z','segment','step-2','3788953WWpDFu','success','6uKAoyt','10WXGjUZ','Invalid\x20API\x20key','Resource\x20not\x20found','Active\x20users\x20with\x20high\x20lifetime\x20value','customers','Test\x20User','UTC','j-abc123','time','data_pipeline','full_access','database','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','2024-01-01T00:00:00Z','wf-12345','2742460OEveIr','Greater','total','0\x20*\x20*\x20*\x20*','decision_point','active','purchases','Active\x20Users','Journey\x20with\x20decision\x20point','5089976jmsDsg','job','act-email','admin@example.com','wf-67890','hourly_sync','long','count','user-1','journey','2024-01-15T09:05:00Z','attribute','3053810ZbQzLg','ps-123456','last_login','events_db'];a153_0x31d6=function(){return _0x5d004c;};return a153_0x31d6();}(function(_0x19b8c7,_0x275772){const _0x26486a=a153_0x5c84,_0x8d3aee=_0x19b8c7();while(!![]){try{const _0x42f3ea=-parseInt(_0x26486a(0xf9))/0x1+parseInt(_0x26486a(0xc0))/0x2+-parseInt(_0x26486a(0xff))/0x3*(-parseInt(_0x26486a(0xde))/0x4)+-parseInt(_0x26486a(0xab))/0x5+-parseInt(_0x26486a(0x10a))/0x6*(parseInt(_0x26486a(0x108))/0x7)+parseInt(_0x26486a(0xb4))/0x8+parseInt(_0x26486a(0xc7))/0x9*(-parseInt(_0x26486a(0x10b))/0xa);if(_0x42f3ea===_0x275772)break;else _0x8d3aee['push'](_0x8d3aee['shift']());}catch(_0x5efbc9){_0x8d3aee['push'](_0x8d3aee['shift']());}}}(a153_0x31d6,0xc2b8c));export const fixtures={'database':{'basic':{'name':a153_0x4d7a41(0xe4),'count':0x5,'created_at':a153_0x4d7a41(0xa9),'updated_at':'2024-01-01T00:00:00Z','permission':a153_0x4d7a41(0xcd)},'withTables':{'name':a153_0x4d7a41(0x104),'count':0x64,'created_at':'2023-06-15T10:30:00Z','updated_at':a153_0x4d7a41(0xef),'permission':a153_0x4d7a41(0xa6)}},'table':{'basic':{'id':0x3039,'name':a153_0x4d7a41(0xd2),'type':a153_0x4d7a41(0xc4),'schema':JSON[a153_0x4d7a41(0xfc)]([['id','string'],['time','long'],['name',a153_0x4d7a41(0xf7)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a153_0x4d7a41(0xa9),'updated_at':a153_0x4d7a41(0xa9)},'events':{'id':0x303a,'name':a153_0x4d7a41(0xd4),'type':a153_0x4d7a41(0xc4),'schema':JSON[a153_0x4d7a41(0xfc)]([['event_id',a153_0x4d7a41(0xf7)],[a153_0x4d7a41(0xa4),a153_0x4d7a41(0xba)],['user_id',a153_0x4d7a41(0xf7)],[a153_0x4d7a41(0xe9),'string'],[a153_0x4d7a41(0xd6),'map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a153_0x4d7a41(0xa9),'updated_at':a153_0x4d7a41(0xca)}},'parentSegment':{'basic':{'id':a153_0x4d7a41(0xc1),'name':a153_0x4d7a41(0xfd),'description':a153_0x4d7a41(0xe8),'status':a153_0x4d7a41(0xb0),'master_table':{'database':a153_0x4d7a41(0xf6),'table':'unified_customers'},'attributes':[{'name':'customer_id','type':a153_0x4d7a41(0xf7),'key':!![]},{'name':a153_0x4d7a41(0xe3),'type':a153_0x4d7a41(0xf7)},{'name':'created_at','type':a153_0x4d7a41(0xeb)}],'created_at':a153_0x4d7a41(0xa9),'updated_at':a153_0x4d7a41(0xfa)},'withBehaviors':{'id':a153_0x4d7a41(0xd3),'name':a153_0x4d7a41(0xf1),'description':a153_0x4d7a41(0xf4),'status':a153_0x4d7a41(0xb0),'master_table':{'database':a153_0x4d7a41(0xf6),'table':a153_0x4d7a41(0x10f)},'behaviors':[{'name':'purchases','table':{'database':a153_0x4d7a41(0xc3),'table':a153_0x4d7a41(0xb1)},'join_key':a153_0x4d7a41(0xe7)},{'name':a153_0x4d7a41(0xed),'table':{'database':a153_0x4d7a41(0xc3),'table':a153_0x4d7a41(0xcb)},'join_key':a153_0x4d7a41(0xe7)}],'created_at':a153_0x4d7a41(0xa9),'updated_at':a153_0x4d7a41(0xfa)}},'segment':{'basic':{'id':a153_0x4d7a41(0xda),'name':a153_0x4d7a41(0xb2),'description':'Users\x20active\x20in\x20the\x20last\x2030\x20days','parent_segment_id':'ps-123456','status':a153_0x4d7a41(0xb0),'rules':[{'type':a153_0x4d7a41(0xbf),'field':'last_login','operator':a153_0x4d7a41(0xcc),'value':'30d'}],'count':0x1388,'created_at':a153_0x4d7a41(0xa9),'updated_at':a153_0x4d7a41(0xfa)},'withMultipleRules':{'id':a153_0x4d7a41(0xd1),'name':a153_0x4d7a41(0xdc),'description':a153_0x4d7a41(0x10e),'parent_segment_id':'ps-123456','status':a153_0x4d7a41(0xb0),'rules':[{'type':a153_0x4d7a41(0xbf),'field':a153_0x4d7a41(0xc2),'operator':a153_0x4d7a41(0xcc),'value':'30d'},{'type':a153_0x4d7a41(0xbf),'field':a153_0x4d7a41(0xdb),'operator':a153_0x4d7a41(0xac),'value':0x3e8}],'count':0x5dc,'created_at':a153_0x4d7a41(0xa9),'updated_at':'2024-01-15T00:00:00Z'}},'journey':{'basic':{'id':a153_0x4d7a41(0xa3),'name':'Welcome\x20Journey','description':a153_0x4d7a41(0xd8),'status':'draft','version':0x1,'steps':[{'id':a153_0x4d7a41(0xee),'type':'wait','duration':'1d'},{'id':a153_0x4d7a41(0x107),'type':'activation','activation_id':a153_0x4d7a41(0xe5)}],'created_at':a153_0x4d7a41(0xa9),'updated_at':a153_0x4d7a41(0xfa)},'withDecision':{'id':'j-def456','name':a153_0x4d7a41(0xce),'description':a153_0x4d7a41(0xb3),'status':'active','version':0x2,'steps':[{'id':a153_0x4d7a41(0xee),'type':a153_0x4d7a41(0xaf),'segment_id':'cs-456789','yes_path':a153_0x4d7a41(0x107),'no_path':a153_0x4d7a41(0x100)},{'id':a153_0x4d7a41(0x107),'type':'activation','activation_id':a153_0x4d7a41(0xb6)},{'id':a153_0x4d7a41(0x100),'type':a153_0x4d7a41(0xf3)}],'created_at':a153_0x4d7a41(0xa9),'updated_at':'2024-01-15T00:00:00Z'}},'queryResult':{'basic':{'schema':[{'name':'id','type':a153_0x4d7a41(0xd7)},{'name':a153_0x4d7a41(0xc8),'type':a153_0x4d7a41(0xd7)},{'name':a153_0x4d7a41(0xbb),'type':a153_0x4d7a41(0xe2)}],'data':[[a153_0x4d7a41(0xbc),'Alice',0x64],[a153_0x4d7a41(0xc9),a153_0x4d7a41(0xdf),0xc8],[a153_0x4d7a41(0xd5),a153_0x4d7a41(0xf0),0x96]]},'empty':{'schema':[{'name':'id','type':a153_0x4d7a41(0xd7)},{'name':a153_0x4d7a41(0xc8),'type':'varchar'}],'data':[]},'singleRow':{'schema':[{'name':a153_0x4d7a41(0xad),'type':a153_0x4d7a41(0xe2)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a153_0x4d7a41(0xa1),'email':'test@example.com','created_at':a153_0x4d7a41(0xa9),'updated_at':a153_0x4d7a41(0xfa),'administrator':![]},'admin':{'id':0x1,'name':a153_0x4d7a41(0xfb),'email':a153_0x4d7a41(0xb7),'created_at':a153_0x4d7a41(0x105),'updated_at':a153_0x4d7a41(0xfa),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':'presto','database':'test_db','status':'success','query':'SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','start_at':'2024-01-15T10:00:00Z','end_at':'2024-01-15T10:00:05Z','duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':'presto','database':a153_0x4d7a41(0xe4),'status':a153_0x4d7a41(0x102),'query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':a153_0x4d7a41(0x101),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':a153_0x4d7a41(0xe4),'status':'error','query':a153_0x4d7a41(0xd0),'start_at':'2024-01-15T10:10:00Z','end_at':a153_0x4d7a41(0xfe),'duration':0x1,'result_size':null,'error':a153_0x4d7a41(0xe1)}},'workflow':{'basic':{'id':a153_0x4d7a41(0xaa),'name':'daily_etl','project':a153_0x4d7a41(0xa5),'revision':a153_0x4d7a41(0xf8),'timezone':a153_0x4d7a41(0xa2),'schedule':{'cron':'0\x200\x20*\x20*\x20*'}},'withSessions':{'id':a153_0x4d7a41(0xb8),'name':a153_0x4d7a41(0xb9),'project':'data_sync','revision':a153_0x4d7a41(0xf2),'timezone':'America/Los_Angeles','schedule':{'cron':a153_0x4d7a41(0xae)},'last_session':{'id':a153_0x4d7a41(0xe0),'status':a153_0x4d7a41(0x109),'started_at':'2024-01-15T09:00:00Z','finished_at':a153_0x4d7a41(0xbe)}}},'apiError':{'unauthorized':{'errors':{'error':a153_0x4d7a41(0x10c),'message':a153_0x4d7a41(0x10c),'severity':a153_0x4d7a41(0xc5),'status_code':0x191}},'notFound':{'errors':{'error':a153_0x4d7a41(0x10d),'message':a153_0x4d7a41(0xec),'severity':a153_0x4d7a41(0xc5),'status_code':0x194}},'rateLimited':{'detail':a153_0x4d7a41(0xa8)},'rfc9457':{'type':a153_0x4d7a41(0xf5),'title':a153_0x4d7a41(0x103),'status':0x193,'detail':a153_0x4d7a41(0xe6),'instance':a153_0x4d7a41(0xdd)}}};function a153_0x5c84(_0x39b8d4,_0x573467){_0x39b8d4=_0x39b8d4-0xa1;const _0x31d663=a153_0x31d6();let _0x5c8438=_0x31d663[_0x39b8d4];return _0x5c8438;}export function createDatabase(_0x2bef68){const _0xa5abdd=a153_0x4d7a41;return{...fixtures[_0xa5abdd(0xa7)][_0xa5abdd(0xea)],..._0x2bef68};}export function createTable(_0x2c88b1){const _0x179050=a153_0x4d7a41;return{...fixtures[_0x179050(0xc6)][_0x179050(0xea)],..._0x2c88b1};}export function createParentSegment(_0x58f99e){return{...fixtures['parentSegment']['basic'],..._0x58f99e};}export function createSegment(_0xca1e17){const _0xcbde43=a153_0x4d7a41;return{...fixtures[_0xcbde43(0x106)][_0xcbde43(0xea)],..._0xca1e17};}export function createJourney(_0x1a4f10){const _0x1d9a02=a153_0x4d7a41;return{...fixtures[_0x1d9a02(0xbd)][_0x1d9a02(0xea)],..._0x1a4f10};}export function createQueryResult(_0x1e65b0){const _0x300569=a153_0x4d7a41;return{...fixtures[_0x300569(0xd9)][_0x300569(0xea)],..._0x1e65b0};}export function createUser(_0x2bdf4b){const _0x3268c4=a153_0x4d7a41;return{...fixtures['user'][_0x3268c4(0xea)],..._0x2bdf4b};}export function createJob(_0x8cddb7){const _0x54b731=a153_0x4d7a41;return{...fixtures[_0x54b731(0xb5)][_0x54b731(0xcf)],..._0x8cddb7};}export function createWorkflow(_0x5668f8){return{...fixtures['workflow']['basic'],..._0x5668f8};}
|
|
1
|
+
function a153_0x9a76(_0x498976,_0xe96281){_0x498976=_0x498976-0x161;const _0x50d9e1=a153_0x50d9();let _0x9a7601=_0x50d9e1[_0x498976];return _0x9a7601;}const a153_0x59d20c=a153_0x9a76;(function(_0x5f53d2,_0x28da16){const _0x26ae6d=a153_0x9a76,_0x2a53cd=_0x5f53d2();while(!![]){try{const _0x4a74fa=parseInt(_0x26ae6d(0x1a0))/0x1*(-parseInt(_0x26ae6d(0x181))/0x2)+-parseInt(_0x26ae6d(0x1ca))/0x3+-parseInt(_0x26ae6d(0x161))/0x4*(-parseInt(_0x26ae6d(0x19d))/0x5)+parseInt(_0x26ae6d(0x1b3))/0x6+parseInt(_0x26ae6d(0x177))/0x7+parseInt(_0x26ae6d(0x19e))/0x8*(parseInt(_0x26ae6d(0x1a7))/0x9)+parseInt(_0x26ae6d(0x1c0))/0xa*(-parseInt(_0x26ae6d(0x1b1))/0xb);if(_0x4a74fa===_0x28da16)break;else _0x2a53cd['push'](_0x2a53cd['shift']());}catch(_0x143bfe){_0x2a53cd['push'](_0x2a53cd['shift']());}}}(a153_0x50d9,0x589b6));export const fixtures={'database':{'basic':{'name':'test_db','count':0x5,'created_at':'2024-01-01T00:00:00Z','updated_at':a153_0x59d20c(0x1ad),'permission':a153_0x59d20c(0x185)},'withTables':{'name':a153_0x59d20c(0x1bc),'count':0x64,'created_at':a153_0x59d20c(0x18b),'updated_at':a153_0x59d20c(0x179),'permission':a153_0x59d20c(0x1d0)}},'table':{'basic':{'id':0x3039,'name':a153_0x59d20c(0x1c7),'type':a153_0x59d20c(0x184),'schema':JSON['stringify']([['id',a153_0x59d20c(0x17b)],[a153_0x59d20c(0x162),a153_0x59d20c(0x175)],[a153_0x59d20c(0x1bb),a153_0x59d20c(0x17b)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a153_0x59d20c(0x1ad),'updated_at':a153_0x59d20c(0x1ad)},'events':{'id':0x303a,'name':a153_0x59d20c(0x1a2),'type':a153_0x59d20c(0x184),'schema':JSON[a153_0x59d20c(0x1b6)]([[a153_0x59d20c(0x1a8),a153_0x59d20c(0x17b)],[a153_0x59d20c(0x162),a153_0x59d20c(0x175)],['user_id',a153_0x59d20c(0x17b)],['event_type',a153_0x59d20c(0x17b)],['properties',a153_0x59d20c(0x170)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a153_0x59d20c(0x1ad),'updated_at':a153_0x59d20c(0x18d)}},'parentSegment':{'basic':{'id':a153_0x59d20c(0x183),'name':a153_0x59d20c(0x1c9),'description':a153_0x59d20c(0x1b2),'status':a153_0x59d20c(0x1cd),'master_table':{'database':'cdp_db','table':'unified_customers'},'attributes':[{'name':a153_0x59d20c(0x1d1),'type':a153_0x59d20c(0x17b),'key':!![]},{'name':a153_0x59d20c(0x1cf),'type':a153_0x59d20c(0x17b)},{'name':a153_0x59d20c(0x189),'type':a153_0x59d20c(0x1a6)}],'created_at':a153_0x59d20c(0x1ad),'updated_at':a153_0x59d20c(0x19a)},'withBehaviors':{'id':a153_0x59d20c(0x1ae),'name':'Customers\x20with\x20Behaviors','description':a153_0x59d20c(0x1b7),'status':a153_0x59d20c(0x1cd),'master_table':{'database':a153_0x59d20c(0x17a),'table':a153_0x59d20c(0x188)},'behaviors':[{'name':a153_0x59d20c(0x16a),'table':{'database':a153_0x59d20c(0x173),'table':a153_0x59d20c(0x16a)},'join_key':a153_0x59d20c(0x1d1)},{'name':a153_0x59d20c(0x1c3),'table':{'database':a153_0x59d20c(0x173),'table':a153_0x59d20c(0x1a5)},'join_key':a153_0x59d20c(0x1d1)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a153_0x59d20c(0x19a)}},'segment':{'basic':{'id':a153_0x59d20c(0x1d3),'name':a153_0x59d20c(0x1d5),'description':a153_0x59d20c(0x16b),'parent_segment_id':'ps-123456','status':'active','rules':[{'type':a153_0x59d20c(0x1c8),'field':'last_login','operator':a153_0x59d20c(0x180),'value':a153_0x59d20c(0x171)}],'count':0x1388,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'},'withMultipleRules':{'id':a153_0x59d20c(0x182),'name':'High\x20Value\x20Active\x20Users','description':a153_0x59d20c(0x195),'parent_segment_id':a153_0x59d20c(0x183),'status':a153_0x59d20c(0x1cd),'rules':[{'type':a153_0x59d20c(0x1c8),'field':a153_0x59d20c(0x1a3),'operator':a153_0x59d20c(0x180),'value':a153_0x59d20c(0x171)},{'type':a153_0x59d20c(0x1c8),'field':a153_0x59d20c(0x19f),'operator':a153_0x59d20c(0x167),'value':0x3e8}],'count':0x5dc,'created_at':'2024-01-01T00:00:00Z','updated_at':a153_0x59d20c(0x19a)}},'journey':{'basic':{'id':a153_0x59d20c(0x1ce),'name':a153_0x59d20c(0x194),'description':a153_0x59d20c(0x186),'status':a153_0x59d20c(0x176),'version':0x1,'steps':[{'id':a153_0x59d20c(0x178),'type':a153_0x59d20c(0x17d),'duration':'1d'},{'id':a153_0x59d20c(0x1af),'type':a153_0x59d20c(0x1bd),'activation_id':a153_0x59d20c(0x16e)}],'created_at':a153_0x59d20c(0x1ad),'updated_at':a153_0x59d20c(0x19a)},'withDecision':{'id':'j-def456','name':a153_0x59d20c(0x198),'description':a153_0x59d20c(0x168),'status':'active','version':0x2,'steps':[{'id':a153_0x59d20c(0x178),'type':a153_0x59d20c(0x1d2),'segment_id':a153_0x59d20c(0x1d3),'yes_path':'step-2','no_path':a153_0x59d20c(0x1c5)},{'id':a153_0x59d20c(0x1af),'type':a153_0x59d20c(0x1bd),'activation_id':a153_0x59d20c(0x174)},{'id':a153_0x59d20c(0x1c5),'type':a153_0x59d20c(0x1b0)}],'created_at':a153_0x59d20c(0x1ad),'updated_at':a153_0x59d20c(0x19a)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a153_0x59d20c(0x1d6)},{'name':'name','type':a153_0x59d20c(0x1d6)},{'name':a153_0x59d20c(0x18c),'type':a153_0x59d20c(0x1cc)}],'data':[[a153_0x59d20c(0x1a1),a153_0x59d20c(0x196),0x64],['user-2',a153_0x59d20c(0x1ba),0xc8],[a153_0x59d20c(0x1c2),a153_0x59d20c(0x1b4),0x96]]},'empty':{'schema':[{'name':'id','type':a153_0x59d20c(0x1d6)},{'name':a153_0x59d20c(0x1bb),'type':a153_0x59d20c(0x1d6)}],'data':[]},'singleRow':{'schema':[{'name':a153_0x59d20c(0x1d4),'type':a153_0x59d20c(0x1cc)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a153_0x59d20c(0x1cb),'email':'test@example.com','created_at':'2024-01-01T00:00:00Z','updated_at':a153_0x59d20c(0x19a),'administrator':![]},'admin':{'id':0x1,'name':a153_0x59d20c(0x1ab),'email':a153_0x59d20c(0x1bf),'created_at':'2023-01-01T00:00:00Z','updated_at':a153_0x59d20c(0x19a),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a153_0x59d20c(0x1aa),'database':a153_0x59d20c(0x17e),'status':'success','query':a153_0x59d20c(0x17c),'start_at':a153_0x59d20c(0x1ac),'end_at':'2024-01-15T10:00:05Z','duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':'presto','database':'test_db','status':a153_0x59d20c(0x1c6),'query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':'2024-01-15T10:05:00Z','end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a153_0x59d20c(0x1aa),'database':a153_0x59d20c(0x17e),'status':'error','query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a153_0x59d20c(0x165),'end_at':a153_0x59d20c(0x166),'duration':0x1,'result_size':null,'error':a153_0x59d20c(0x193)}},'workflow':{'basic':{'id':'wf-12345','name':a153_0x59d20c(0x1a4),'project':a153_0x59d20c(0x18e),'revision':a153_0x59d20c(0x1a9),'timezone':a153_0x59d20c(0x191),'schedule':{'cron':a153_0x59d20c(0x16d)}},'withSessions':{'id':'wf-67890','name':a153_0x59d20c(0x19b),'project':a153_0x59d20c(0x18f),'revision':a153_0x59d20c(0x1b9),'timezone':a153_0x59d20c(0x17f),'schedule':{'cron':a153_0x59d20c(0x163)},'last_session':{'id':a153_0x59d20c(0x199),'status':a153_0x59d20c(0x1c4),'started_at':'2024-01-15T09:00:00Z','finished_at':'2024-01-15T09:05:00Z'}}},'apiError':{'unauthorized':{'errors':{'error':a153_0x59d20c(0x169),'message':a153_0x59d20c(0x169),'severity':a153_0x59d20c(0x1be),'status_code':0x191}},'notFound':{'errors':{'error':a153_0x59d20c(0x18a),'message':'The\x20requested\x20resource\x20does\x20not\x20exist','severity':a153_0x59d20c(0x1be),'status_code':0x194}},'rateLimited':{'detail':'Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.'},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':a153_0x59d20c(0x172),'status':0x193,'detail':a153_0x59d20c(0x164),'instance':'/v3/database/list'}}};export function createDatabase(_0x22e168){const _0x35252a=a153_0x59d20c;return{...fixtures['database'][_0x35252a(0x19c)],..._0x22e168};}export function createTable(_0x8085b0){const _0x457c8b=a153_0x59d20c;return{...fixtures[_0x457c8b(0x187)]['basic'],..._0x8085b0};}export function createParentSegment(_0x232986){const _0x350179=a153_0x59d20c;return{...fixtures[_0x350179(0x1b5)]['basic'],..._0x232986};}export function createSegment(_0x23ea93){const _0xd4a30e=a153_0x59d20c;return{...fixtures[_0xd4a30e(0x190)][_0xd4a30e(0x19c)],..._0x23ea93};}export function createJourney(_0x21d259){const _0x149ccb=a153_0x59d20c;return{...fixtures[_0x149ccb(0x1b8)]['basic'],..._0x21d259};}export function createQueryResult(_0x5261e8){const _0xe8357b=a153_0x59d20c;return{...fixtures[_0xe8357b(0x192)]['basic'],..._0x5261e8};}export function createUser(_0x429f16){const _0x3d2a1e=a153_0x59d20c;return{...fixtures[_0x3d2a1e(0x16f)][_0x3d2a1e(0x19c)],..._0x429f16};}function a153_0x50d9(){const _0x5a0587=['2024-01-01T00:00:00Z','ps-789012','step-2','end','16999939DQcPvU','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','2257602StXmTI','Charlie','parentSegment','stringify','Parent\x20segment\x20with\x20behavioral\x20data','journey','def456','Bob','name','production_db','activation','error','admin@example.com','10BeBgsn','job','user-3','page_views','success','step-3','running','users','attribute','Test\x20Parent\x20Segment','649410hHzMvK','Test\x20User','bigint','active','j-abc123','email','full_access','customer_id','decision_point','cs-456789','total','Active\x20Users','varchar','32LPcVMe','time','0\x20*\x20*\x20*\x20*','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','2024-01-15T10:10:00Z','2024-01-15T10:10:01Z','Greater','Journey\x20with\x20decision\x20point','Invalid\x20API\x20key','purchases','Users\x20active\x20in\x20the\x20last\x2030\x20days','completed','0\x200\x20*\x20*\x20*','act-123','user','map<string,string>','30d','Forbidden','events_db','act-email','long','draft','5047980imtNxW','step-1','2024-01-15T08:00:00Z','cdp_db','string','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','wait','test_db','America/Los_Angeles','TimeWithinPast','710bJtrLa','cs-111222','ps-123456','log','administrator','Onboarding\x20journey\x20for\x20new\x20users','table','customers','created_at','Resource\x20not\x20found','2023-06-15T10:30:00Z','count','2024-01-15T12:00:00Z','data_pipeline','data_sync','segment','UTC','queryResult','Table\x20does\x20not\x20exist:\x20nonexistent_table','Welcome\x20Journey','Active\x20users\x20with\x20high\x20lifetime\x20value','Alice','workflow','Purchase\x20Reminder','sess-111','2024-01-15T00:00:00Z','hourly_sync','basic','413605PHKyIT','8vCHKNe','lifetime_value','723nzWYBA','user-1','events','last_login','daily_etl','pageviews','timestamp','5601087wEnRhG','event_id','abc123','presto','Admin\x20User','2024-01-15T10:00:00Z'];a153_0x50d9=function(){return _0x5a0587;};return a153_0x50d9();}export function createJob(_0x13f548){const _0x5ea66c=a153_0x59d20c;return{...fixtures[_0x5ea66c(0x1c1)][_0x5ea66c(0x16c)],..._0x13f548};}export function createWorkflow(_0x39a9ff){const _0xaa32de=a153_0x59d20c;return{...fixtures[_0xaa32de(0x197)][_0xaa32de(0x19c)],..._0x39a9ff};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a154_0x14c40e=a154_0x4e88;(function(_0xb09ccc,_0x3cf428){const _0x5643f1=a154_0x4e88,_0x25d3f0=_0xb09ccc();while(!![]){try{const _0x47fd43=parseInt(_0x5643f1(0x159))/0x1+-parseInt(_0x5643f1(0x164))/0x2+-parseInt(_0x5643f1(0x17a))/0x3+-parseInt(_0x5643f1(0x168))/0x4+-parseInt(_0x5643f1(0x179))/0x5+-parseInt(_0x5643f1(0x139))/0x6+-parseInt(_0x5643f1(0x150))/0x7*(-parseInt(_0x5643f1(0x15e))/0x8);if(_0x47fd43===_0x3cf428)break;else _0x25d3f0['push'](_0x25d3f0['shift']());}catch(_0x481099){_0x25d3f0['push'](_0x25d3f0['shift']());}}}(a154_0x5e9b,0x9c2a0));import{vi}from'vitest';export class HTTPMockRegistry{[a154_0x14c40e(0x170)]=[];['requests']=[];['fetchMock']=null;[a154_0x14c40e(0x15d)](_0x5849e3,_0x4b4136){return _0x2e755c=>{const _0x297731=a154_0x4e88;if(_0x2e755c['method']['toUpperCase']()!==_0x5849e3[_0x297731(0x163)]())return![];const _0x47761b=new URL(_0x2e755c[_0x297731(0x14b)]);if(typeof _0x4b4136===_0x297731(0x14a))return _0x47761b['pathname']===_0x4b4136||_0x47761b[_0x297731(0x16e)]['includes'](_0x4b4136);return _0x4b4136[_0x297731(0x169)](_0x47761b[_0x297731(0x16e)]);};}[a154_0x14c40e(0x153)](_0x48ab53,_0x34c7cb){return _0x1cb8cd=>{const _0x2b41da=a154_0x4e88;if(!_0x48ab53(_0x1cb8cd))return![];const _0x509d8e=new URL(_0x1cb8cd['url']);return Object['entries'](_0x34c7cb)[_0x2b41da(0x12e)](([_0x3f59bf,_0xb48ea9])=>_0x509d8e[_0x2b41da(0x152)][_0x2b41da(0x14e)](_0x3f59bf)===_0xb48ea9);};}[a154_0x14c40e(0x173)](_0x1d7801,_0x6117fb){return _0x27920a=>{const _0x3d9aa0=a154_0x4e88;if(!_0x1d7801(_0x27920a))return![];if(typeof _0x6117fb===_0x3d9aa0(0x171))return _0x6117fb(_0x27920a['body']);return JSON['stringify'](_0x27920a['body'])===JSON[_0x3d9aa0(0x13c)](_0x6117fb);};}[a154_0x14c40e(0x176)](_0x52da45,_0x51d137){return _0x1c3389=>{const _0x1dd67d=a154_0x4e88;if(!_0x52da45(_0x1c3389))return![];const _0x266d7e=new URL(_0x1c3389[_0x1dd67d(0x14b)]);return _0x266d7e[_0x1dd67d(0x13e)]===_0x51d137;};}[a154_0x14c40e(0x16c)](_0x3aa88f,_0x3a27b0,_0x1918ff){const _0x4cfc6c=a154_0x14c40e;this['stubs']['push']({'matcher':_0x3aa88f,'responder':_0x3a27b0,'matched':![],'matchCount':0x0,'stack':new Error()[_0x4cfc6c(0x149)]??'','description':_0x1918ff?.[_0x4cfc6c(0x13b)]});}['registerWithInspector'](_0x1b293e,_0x1861f8,_0x17db79){const _0x5e91ab=a154_0x14c40e,_0x310693=_0x413ac3=>{const _0x571711=a154_0x4e88;return _0x17db79(_0x413ac3[_0x571711(0x12d)],_0x413ac3),_0x1861f8(_0x413ac3);};this[_0x5e91ab(0x16c)](_0x1b293e,_0x310693);}static[a154_0x14c40e(0x167)](_0x18229d,_0x2cbf39=0xc8){const _0x17f642=a154_0x14c40e;return()=>new Response(JSON['stringify'](_0x18229d),{'status':_0x2cbf39,'headers':{'Content-Type':_0x17f642(0x147)}});}static[a154_0x14c40e(0x14d)](_0x4d6e57,_0xdc6b7,_0x3dd438=a154_0x14c40e(0x135)){return()=>{const _0x42be3d=a154_0x4e88;let _0x26b06c;switch(_0x3dd438){case _0x42be3d(0x162):_0x26b06c={'errors':{'error':_0xdc6b7,'message':_0xdc6b7,'severity':_0x42be3d(0x12f),'status_code':_0x4d6e57}};break;case _0x42be3d(0x13f):_0x26b06c={'type':'https://api.treasuredata.com/errors/'+_0x4d6e57,'title':HTTPMockRegistry[_0x42be3d(0x13a)](_0x4d6e57),'status':_0x4d6e57,'detail':_0xdc6b7};break;default:_0x26b06c={'error':_0xdc6b7};}return new Response(JSON[_0x42be3d(0x13c)](_0x26b06c),{'status':_0x4d6e57,'headers':{'Content-Type':_0x42be3d(0x147)}});};}static[a154_0x14c40e(0x17f)](_0xebb510,_0x28ddb3,_0x191e4f=0xc8){const _0x2402d3=a154_0x14c40e;return()=>new Response(JSON[_0x2402d3(0x13c)](_0xebb510),{'status':_0x191e4f,'headers':{'Content-Type':_0x2402d3(0x147),..._0x28ddb3}});}static['textResponse'](_0x12c864,_0x55b5b9=0xc8){const _0x509268=a154_0x14c40e;return()=>new Response(_0x12c864,{'status':_0x55b5b9,'headers':{'Content-Type':_0x509268(0x165)}});}static['networkError'](_0x128bec){return()=>{throw new Error(_0x128bec);};}[a154_0x14c40e(0x15b)](){const _0x5733ac=a154_0x14c40e;return this[_0x5733ac(0x148)]=vi['fn']()[_0x5733ac(0x15c)](async(_0x4a52a3,_0x51a56b)=>{const _0x1dee2d=_0x5733ac,_0x5572f7=this[_0x1dee2d(0x160)](_0x4a52a3,_0x51a56b);this['requests'][_0x1dee2d(0x138)](_0x5572f7);for(const _0x2084e4 of this['stubs']){if(_0x2084e4[_0x1dee2d(0x132)](_0x5572f7))return _0x2084e4[_0x1dee2d(0x16d)]=!![],_0x2084e4[_0x1dee2d(0x134)]++,_0x2084e4['responder'](_0x5572f7);}const _0x4975b0=this[_0x1dee2d(0x170)][_0x1dee2d(0x177)]((_0x2eb726,_0x3d6adb)=>'\x20\x20'+(_0x3d6adb+0x1)+'.\x20'+(_0x2eb726[_0x1dee2d(0x13b)]??_0x1dee2d(0x14f)))[_0x1dee2d(0x157)]('\x0a');throw new Error('No\x20stub\x20matched\x20request:\x20'+_0x5572f7[_0x1dee2d(0x141)]+'\x20'+_0x5572f7[_0x1dee2d(0x14b)]+'\x0a'+(_0x1dee2d(0x161)+JSON[_0x1dee2d(0x13c)](_0x5572f7[_0x1dee2d(0x12d)])+'\x0a')+(_0x1dee2d(0x156)+(_0x4975b0||_0x1dee2d(0x172))));}),this['fetchMock'];}['parseRequest'](_0x5cbbeb,_0x254415){const _0x14abd4=a154_0x14c40e,_0x2b8659={};if(_0x254415?.['headers']){if(_0x254415[_0x14abd4(0x175)]instanceof Headers)_0x254415[_0x14abd4(0x175)][_0x14abd4(0x17c)]((_0xc38541,_0x54d0b0)=>{_0x2b8659[_0x54d0b0['toLowerCase']()]=_0xc38541;});else{if(Array[_0x14abd4(0x131)](_0x254415['headers']))for(const [_0xebd95f,_0x5c9346]of _0x254415[_0x14abd4(0x175)]){_0x2b8659[_0xebd95f[_0x14abd4(0x15f)]()]=_0x5c9346;}else for(const [_0x2063aa,_0x4946c1]of Object[_0x14abd4(0x181)](_0x254415[_0x14abd4(0x175)])){_0x4946c1!==undefined&&(_0x2b8659[_0x2063aa[_0x14abd4(0x15f)]()]=_0x4946c1);}}}let _0x5f386f;if(_0x254415?.['body'])try{_0x5f386f=JSON['parse'](_0x254415['body']);}catch{_0x5f386f=_0x254415[_0x14abd4(0x12d)];}return{'method':_0x254415?.[_0x14abd4(0x141)]??_0x14abd4(0x15a),'url':_0x5cbbeb,'headers':_0x2b8659,'body':_0x5f386f};}[a154_0x14c40e(0x16a)](_0x3315a2){const _0x51eedd=a154_0x14c40e,_0x3ffd73=this[_0x51eedd(0x170)][_0x51eedd(0x154)](_0x17ce2b=>!_0x17ce2b[_0x51eedd(0x16d)]);if(_0x3ffd73[_0x51eedd(0x17b)]>0x0){const _0x35ee06=_0x3ffd73[_0x51eedd(0x177)](_0x579f74=>{const _0x5e43f7=_0x51eedd,_0x5364f5=_0x579f74['description']?'\x20('+_0x579f74[_0x5e43f7(0x13b)]+')':'',_0x18159a=_0x579f74[_0x5e43f7(0x149)][_0x5e43f7(0x17d)]('\x0a')[_0x5e43f7(0x174)](0x2,0x5)[_0x5e43f7(0x157)]('\x0a');return _0x5e43f7(0x130)+_0x5364f5+_0x5e43f7(0x158)+_0x18159a;});_0x3315a2[_0x51eedd(0x140)](_0x3ffd73[_0x51eedd(0x17b)]+_0x51eedd(0x142)+_0x35ee06[_0x51eedd(0x157)]('\x0a\x0a'));}}[a154_0x14c40e(0x166)](){const _0x426f32=a154_0x14c40e;return[...this[_0x426f32(0x13d)]];}[a154_0x14c40e(0x143)](){const _0x4f3731=a154_0x14c40e;return this['requests'][this[_0x4f3731(0x13d)]['length']-0x1];}[a154_0x14c40e(0x178)](_0x52244d,_0x536d17){const _0x32ad99=a154_0x14c40e;return this['requests'][_0x32ad99(0x144)](_0x9a8e7d=>{const _0x270b50=_0x32ad99;if(_0x9a8e7d[_0x270b50(0x141)][_0x270b50(0x163)]()!==_0x52244d[_0x270b50(0x163)]())return![];if(typeof _0x536d17===_0x270b50(0x14a))return _0x9a8e7d[_0x270b50(0x14b)][_0x270b50(0x136)](_0x536d17);return _0x536d17[_0x270b50(0x169)](_0x9a8e7d[_0x270b50(0x14b)]);});}[a154_0x14c40e(0x14c)](_0x309ae9){const _0x3bfe48=a154_0x14c40e;return this['stubs'][_0x309ae9]?.[_0x3bfe48(0x134)]??0x0;}[a154_0x14c40e(0x133)](){const _0xb20189=a154_0x14c40e;this[_0xb20189(0x170)]=[],this[_0xb20189(0x13d)]=[],this[_0xb20189(0x148)]=null;}static[a154_0x14c40e(0x13a)](_0x301925){const _0x29d4fd=a154_0x14c40e,_0x4ae82a={0xc8:'OK',0xc9:'Created',0xcc:_0x29d4fd(0x17e),0x190:_0x29d4fd(0x16f),0x191:_0x29d4fd(0x180),0x193:_0x29d4fd(0x12c),0x194:_0x29d4fd(0x155),0x199:_0x29d4fd(0x16b),0x1a6:'Unprocessable\x20Entity',0x1ad:'Too\x20Many\x20Requests',0x1f4:_0x29d4fd(0x146),0x1f6:_0x29d4fd(0x145),0x1f7:_0x29d4fd(0x151)};return _0x4ae82a[_0x301925]??_0x29d4fd(0x137);}}function a154_0x4e88(_0x3b8d1b,_0x5e779){_0x3b8d1b=_0x3b8d1b-0x12c;const _0x5e9b04=a154_0x5e9b();let _0x4e8849=_0x5e9b04[_0x3b8d1b];return _0x4e8849;}function a154_0x5e9b(){const _0x537966=['every','error','Unmatched\x20stub','isArray','matcher','reset','matchCount','simple','includes','Unknown','push','3501978APHgjA','getStatusText','description','stringify','requests','host','rfc9457','fail','method','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','getLastRequest','some','Bad\x20Gateway','Internal\x20Server\x20Error','application/json','fetchMock','stack','string','url','getMatchCount','errorResponse','get','unnamed\x20stub','21XrAPXL','Service\x20Unavailable','searchParams','withQuery','filter','Not\x20Found','Registered\x20stubs:\x0a','join','\x20registered\x20at:\x0a','247661ZzQREx','GET','createFetch','mockImplementation','REST','8666328eeGpvx','toLowerCase','parseRequest','Request\x20body:\x20','td-api','toUpperCase','1413724yOUtMW','text/plain','getRequests','jsonResponse','1838988ajfUaP','test','verify','Conflict','register','matched','pathname','Bad\x20Request','stubs','function','\x20\x20(none)','withBody','slice','headers','withHost','map','wasCalled','2434935OIYlma','1861881FDUSis','length','forEach','split','No\x20Content','jsonResponseWithHeaders','Unauthorized','entries','Forbidden','body'];a154_0x5e9b=function(){return _0x537966;};return a154_0x5e9b();}export function createHTTPMock(){return new HTTPMockRegistry();}
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x90c879,_0x382440){var _0x2974de=a155_0x14cf,_0x936e3=_0x90c879();while(!![]){try{var _0x44f21e=parseInt(_0x2974de(0x194))/0x1+-parseInt(_0x2974de(0x198))/0x2+-parseInt(_0x2974de(0x196))/0x3+parseInt(_0x2974de(0x199))/0x4*(-parseInt(_0x2974de(0x193))/0x5)+-parseInt(_0x2974de(0x192))/0x6+-parseInt(_0x2974de(0x195))/0x7+parseInt(_0x2974de(0x197))/0x8;if(_0x44f21e===_0x382440)break;else _0x936e3['push'](_0x936e3['shift']());}catch(_0x2e5858){_0x936e3['push'](_0x936e3['shift']());}}}(a155_0x5017,0xc22eb));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a155_0x14cf(_0xf01d4e,_0x52e5a0){_0xf01d4e=_0xf01d4e-0x192;var _0x501752=a155_0x5017();var _0x14cf85=_0x501752[_0xf01d4e];return _0x14cf85;}function a155_0x5017(){var _0x24de65=['19556VBizTo','5915964OtZGLV','1205YrZfOf','694861GpzNgg','395682nulSDS','1232169uYLSUn','27305896VeIMJw','1362470mRBGoZ'];a155_0x5017=function(){return _0x24de65;};return a155_0x5017();}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
|
package/dist/utils/async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a156_0x5bf0(){const _0x3a53b7=['429235IQtPcJ','394037HnRJht','450363xBVTRK','9onbWef','5brHXAV','519976eAAKvL','push','187ErqKpN','30698HTHqsM','6UVLZEO','4tikquL','length','142090pYQgix','152508kLUNxv','247YYZmep','map'];a156_0x5bf0=function(){return _0x3a53b7;};return a156_0x5bf0();}function a156_0x43cb(_0x4f82d4,_0x5eac8e){_0x4f82d4=_0x4f82d4-0x1d9;const _0x5bf0f4=a156_0x5bf0();let _0x43cb7e=_0x5bf0f4[_0x4f82d4];return _0x43cb7e;}(function(_0x3d606a,_0x257363){const _0xad1018=a156_0x43cb,_0x3d04df=_0x3d606a();while(!![]){try{const _0x14e021=parseInt(_0xad1018(0x1e6))/0x1*(parseInt(_0xad1018(0x1da))/0x2)+parseInt(_0xad1018(0x1e4))/0x3*(-parseInt(_0xad1018(0x1dc))/0x4)+parseInt(_0xad1018(0x1e2))/0x5*(parseInt(_0xad1018(0x1db))/0x6)+parseInt(_0xad1018(0x1e3))/0x7+-parseInt(_0xad1018(0x1e7))/0x8*(-parseInt(_0xad1018(0x1e5))/0x9)+-parseInt(_0xad1018(0x1de))/0xa*(-parseInt(_0xad1018(0x1d9))/0xb)+parseInt(_0xad1018(0x1df))/0xc*(-parseInt(_0xad1018(0x1e0))/0xd);if(_0x14e021===_0x257363)break;else _0x3d04df['push'](_0x3d04df['shift']());}catch(_0x4c9534){_0x3d04df['push'](_0x3d04df['shift']());}}}(a156_0x5bf0,0x20ad1));export async function batchAsync(_0x3f79d9,_0x50b965,_0xa1c7b9=0xa){const _0x2ed51e=a156_0x43cb,_0x2452a2=[];for(let _0x32294b=0x0;_0x32294b<_0x3f79d9[_0x2ed51e(0x1dd)];_0x32294b+=_0xa1c7b9){const _0x32875e=_0x3f79d9['slice'](_0x32294b,_0x32294b+_0xa1c7b9),_0x4c455f=await Promise['all'](_0x32875e[_0x2ed51e(0x1e1)](_0x50b965));_0x2452a2[_0x2ed51e(0x1e8)](..._0x4c455f);}return _0x2452a2;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a157_0x19714f=a157_0x343b;(function(_0x2c9bc1,_0x5efc93){const _0x15fea5=a157_0x343b,_0xa11431=_0x2c9bc1();while(!![]){try{const _0x4c28d0=-parseInt(_0x15fea5(0xd1))/0x1+-parseInt(_0x15fea5(0xda))/0x2+parseInt(_0x15fea5(0xc9))/0x3*(parseInt(_0x15fea5(0xc8))/0x4)+parseInt(_0x15fea5(0xcc))/0x5+-parseInt(_0x15fea5(0xcf))/0x6*(parseInt(_0x15fea5(0xd3))/0x7)+-parseInt(_0x15fea5(0xc1))/0x8+parseInt(_0x15fea5(0xbf))/0x9;if(_0x4c28d0===_0x5efc93)break;else _0xa11431['push'](_0xa11431['shift']());}catch(_0x4cf69c){_0xa11431['push'](_0xa11431['shift']());}}}(a157_0x264a,0x2f11d));import*as a157_0x22d272 from'chalk';const Chalk=a157_0x22d272[a157_0x19714f(0xd6)];export function shouldUseColor(_0x4e5357={}){const _0xb8cf5a=a157_0x19714f;if(_0x4e5357['noColor']===!![])return![];if(_0x4e5357[_0xb8cf5a(0xd2)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0xb8cf5a(0xc7)][_0xb8cf5a(0xc0)]??![];}export function getChalk(_0x1aa210={}){if(shouldUseColor(_0x1aa210))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x46ea24,_0x205bbb={}){return getChalk(_0x205bbb)['dim'](_0x46ea24);}export function colorHeader(_0x1f0f6e,_0x18ca69={}){const _0x3f10dd=a157_0x19714f;return getChalk(_0x18ca69)[_0x3f10dd(0xce)](_0x1f0f6e);}export function colorType(_0x67c01a,_0x1f474c={}){const _0x463531=a157_0x19714f;return getChalk(_0x1f474c)[_0x463531(0xc2)](_0x67c01a);}export function colorJSONKey(_0xa4aa8d,_0x241bbb={}){return getChalk(_0x241bbb)['blue'](_0xa4aa8d);}export function colorJSONString(_0x4628ed,_0x4dde5b={}){const _0x19d775=a157_0x19714f;return getChalk(_0x4dde5b)[_0x19d775(0xc5)](_0x4628ed);}export function colorJSONNumber(_0x2ada3d,_0x284040={}){const _0x110d84=a157_0x19714f;return getChalk(_0x284040)[_0x110d84(0xce)](_0x2ada3d);}function a157_0x264a(){const _0x413e79=['isTTY','2991968IJyPla','dim','join','object','green','stringify','stdout','100DnNduZ','10623fDHhFJ','isArray','number','263375kcRzSL','repeat','cyan','55554zKOiyX','string','112268yiFDvu','color','21JbsQwv','map','boolean','Chalk','entries','length','yellow','86176YRxWYi','5478534WcOXZz'];a157_0x264a=function(){return _0x413e79;};return a157_0x264a();}export function colorJSONBoolean(_0x423f7d,_0x521c1c={}){const _0x5477ef=a157_0x19714f;return getChalk(_0x521c1c)[_0x5477ef(0xd9)](_0x423f7d);}export function colorJSONNull(_0x39bd22,_0x1d6e33={}){const _0x1274b0=a157_0x19714f;return getChalk(_0x1d6e33)[_0x1274b0(0xc2)](_0x39bd22);}export function colorizeJSONCompact(_0x52f048,_0x3e0982={}){const _0x244a5b=a157_0x19714f;if(!shouldUseColor(_0x3e0982))return JSON[_0x244a5b(0xc6)](_0x52f048);if(_0x52f048===null)return colorJSONNull('null',_0x3e0982);if(typeof _0x52f048==='boolean')return colorJSONBoolean(String(_0x52f048),_0x3e0982);if(typeof _0x52f048==='number')return colorJSONNumber(String(_0x52f048),_0x3e0982);if(typeof _0x52f048===_0x244a5b(0xd0))return colorJSONString(JSON[_0x244a5b(0xc6)](_0x52f048),_0x3e0982);if(Array['isArray'](_0x52f048)){if(_0x52f048[_0x244a5b(0xd8)]===0x0)return'[]';const _0x9321e1=_0x52f048['map'](_0x29a7c6=>colorizeJSONCompact(_0x29a7c6,_0x3e0982));return'['+_0x9321e1[_0x244a5b(0xc3)](',')+']';}if(typeof _0x52f048==='object'){const _0x4dec02=Object[_0x244a5b(0xd7)](_0x52f048);if(_0x4dec02[_0x244a5b(0xd8)]===0x0)return'{}';const _0x4f2147=_0x4dec02[_0x244a5b(0xd4)](([_0x274ec5,_0x2d98c6])=>{const _0xf24c52=_0x244a5b,_0x471509=colorJSONKey(JSON[_0xf24c52(0xc6)](_0x274ec5),_0x3e0982),_0xbf0166=colorizeJSONCompact(_0x2d98c6,_0x3e0982);return _0x471509+':'+_0xbf0166;});return'{'+_0x4f2147[_0x244a5b(0xc3)](',')+'}';}return String(_0x52f048);}function a157_0x343b(_0x718def,_0x5c61c3){_0x718def=_0x718def-0xbf;const _0x264a77=a157_0x264a();let _0x343ba3=_0x264a77[_0x718def];return _0x343ba3;}export function colorizeJSON(_0x27616c,_0x10b162={},_0x391a95=0x0){const _0x219034=a157_0x19714f;if(!shouldUseColor(_0x10b162))return JSON[_0x219034(0xc6)](_0x27616c,null,0x2);const _0x2f6245='\x20'[_0x219034(0xcd)](_0x391a95),_0x5cc522=_0x391a95+0x2;if(_0x27616c===null)return colorJSONNull('null',_0x10b162);if(typeof _0x27616c===_0x219034(0xd5))return colorJSONBoolean(String(_0x27616c),_0x10b162);if(typeof _0x27616c===_0x219034(0xcb))return colorJSONNumber(String(_0x27616c),_0x10b162);if(typeof _0x27616c===_0x219034(0xd0))return colorJSONString(JSON[_0x219034(0xc6)](_0x27616c),_0x10b162);if(Array[_0x219034(0xca)](_0x27616c)){if(_0x27616c['length']===0x0)return'[]';const _0x26221e=_0x27616c[_0x219034(0xd4)](_0x28914=>{const _0x55f74a=_0x219034,_0x4b61c3=colorizeJSON(_0x28914,_0x10b162,_0x5cc522);return''+'\x20'[_0x55f74a(0xcd)](_0x5cc522)+_0x4b61c3;});return'[\x0a'+_0x26221e['join'](',\x0a')+('\x0a'+_0x2f6245+']');}if(typeof _0x27616c===_0x219034(0xc4)){const _0xd771e7=Object[_0x219034(0xd7)](_0x27616c);if(_0xd771e7[_0x219034(0xd8)]===0x0)return'{}';const _0x12497b=_0xd771e7[_0x219034(0xd4)](([_0x462d0d,_0xb0ccb2])=>{const _0xef988c=_0x219034,_0x591c0e=colorJSONKey(JSON[_0xef988c(0xc6)](_0x462d0d),_0x10b162),_0x299c2c=colorizeJSON(_0xb0ccb2,_0x10b162,_0x5cc522);return''+'\x20'[_0xef988c(0xcd)](_0x5cc522)+_0x591c0e+':\x20'+_0x299c2c;});return'{\x0a'+_0x12497b[_0x219034(0xc3)](',\x0a')+('\x0a'+_0x2f6245+'}');}return String(_0x27616c);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ca385,_0x2ab3f7){const _0x516a55=a158_0x17bd,_0x5c3e74=_0x2ca385();while(!![]){try{const _0x49d0c7=-parseInt(_0x516a55(0xe2))/0x1*(parseInt(_0x516a55(0x100))/0x2)+parseInt(_0x516a55(0xdd))/0x3+parseInt(_0x516a55(0xe5))/0x4*(parseInt(_0x516a55(0xe0))/0x5)+parseInt(_0x516a55(0xfb))/0x6*(-parseInt(_0x516a55(0xfe))/0x7)+-parseInt(_0x516a55(0xe9))/0x8*(-parseInt(_0x516a55(0xf9))/0x9)+-parseInt(_0x516a55(0xe8))/0xa+parseInt(_0x516a55(0xdf))/0xb;if(_0x49d0c7===_0x2ab3f7)break;else _0x5c3e74['push'](_0x5c3e74['shift']());}catch(_0x4ce540){_0x5c3e74['push'](_0x5c3e74['shift']());}}}(a158_0x130e,0xe67b6));function a158_0x130e(){const _0x5318f6=['length','type','split','unchanged','removed','has','old','6170697ALZNEr','add','174lkDLMw','fill','repeat','33719ETqviG','padStart','436528NyBnio','1989723omWXDn','\x20-\x20','9111036VHsvwO','865HbdJgE','\x20+\x20','6gDDXGe','map','join','6676BpoLDD','content','max','725560MhVFSp','8BeXkgC','green','new','push','dim','unshift','min','added','forEach'];a158_0x130e=function(){return _0x5318f6;};return a158_0x130e();}function a158_0x17bd(_0x2a575a,_0x545478){_0x2a575a=_0x2a575a-0xdd;const _0x130e25=a158_0x130e();let _0x17bd84=_0x130e25[_0x2a575a];return _0x17bd84;}import a158_0x42f367 from'chalk';export function generateDiff(_0x47d530,_0x5ecd16){const _0xc73290=a158_0x17bd,_0x138012=_0x47d530[_0xc73290(0xf4)]('\x0a'),_0x4c7766=_0x5ecd16['split']('\x0a'),_0xf5c859=[],_0x4ee59b=computeLCS(_0x138012,_0x4c7766);let _0x4f0500=0x0,_0x52785b=0x0,_0x420bc8=0x0;while(_0x4f0500<_0x138012['length']||_0x52785b<_0x4c7766['length']){if(_0x420bc8<_0x4ee59b[_0xc73290(0xf2)]&&_0x4f0500<_0x138012[_0xc73290(0xf2)]&&_0x138012[_0x4f0500]===_0x4ee59b[_0x420bc8])_0x52785b<_0x4c7766['length']&&_0x4c7766[_0x52785b]===_0x4ee59b[_0x420bc8]?(_0xf5c859[_0xc73290(0xec)]({'type':_0xc73290(0xf5),'content':_0x138012[_0x4f0500]}),_0x4f0500++,_0x52785b++,_0x420bc8++):(_0xf5c859[_0xc73290(0xec)]({'type':_0xc73290(0xf0),'content':_0x4c7766[_0x52785b]}),_0x52785b++);else{if(_0x420bc8<_0x4ee59b[_0xc73290(0xf2)]&&_0x52785b<_0x4c7766['length']&&_0x4c7766[_0x52785b]===_0x4ee59b[_0x420bc8])_0xf5c859[_0xc73290(0xec)]({'type':_0xc73290(0xf6),'content':_0x138012[_0x4f0500]}),_0x4f0500++;else{if(_0x4f0500<_0x138012[_0xc73290(0xf2)]&&(_0x420bc8>=_0x4ee59b[_0xc73290(0xf2)]||_0x138012[_0x4f0500]!==_0x4ee59b[_0x420bc8]))_0xf5c859['push']({'type':_0xc73290(0xf6),'content':_0x138012[_0x4f0500]}),_0x4f0500++;else _0x52785b<_0x4c7766[_0xc73290(0xf2)]&&(_0xf5c859[_0xc73290(0xec)]({'type':'added','content':_0x4c7766[_0x52785b]}),_0x52785b++);}}}return _0xf5c859;}function computeLCS(_0x33656e,_0x525bef){const _0x4c26bc=a158_0x17bd,_0x456f2c=_0x33656e[_0x4c26bc(0xf2)],_0x58afb1=_0x525bef[_0x4c26bc(0xf2)],_0xe55969=Array(_0x456f2c+0x1)[_0x4c26bc(0xfc)](null)[_0x4c26bc(0xe3)](()=>Array(_0x58afb1+0x1)[_0x4c26bc(0xfc)](0x0));for(let _0x5987fa=0x1;_0x5987fa<=_0x456f2c;_0x5987fa++){for(let _0x405872=0x1;_0x405872<=_0x58afb1;_0x405872++){_0x33656e[_0x5987fa-0x1]===_0x525bef[_0x405872-0x1]?_0xe55969[_0x5987fa][_0x405872]=_0xe55969[_0x5987fa-0x1][_0x405872-0x1]+0x1:_0xe55969[_0x5987fa][_0x405872]=Math[_0x4c26bc(0xe7)](_0xe55969[_0x5987fa-0x1][_0x405872],_0xe55969[_0x5987fa][_0x405872-0x1]);}}const _0x21bbee=[];let _0x14332a=_0x456f2c,_0xc3cebf=_0x58afb1;while(_0x14332a>0x0&&_0xc3cebf>0x0){if(_0x33656e[_0x14332a-0x1]===_0x525bef[_0xc3cebf-0x1])_0x21bbee[_0x4c26bc(0xee)](_0x33656e[_0x14332a-0x1]),_0x14332a--,_0xc3cebf--;else _0xe55969[_0x14332a-0x1][_0xc3cebf]>_0xe55969[_0x14332a][_0xc3cebf-0x1]?_0x14332a--:_0xc3cebf--;}return _0x21bbee;}export function formatDiffWithColors(_0x595459,_0x4d86a7=0x3){const _0x2b80af=a158_0x17bd,_0xbb2bb2=new Set();_0x595459[_0x2b80af(0xf1)]((_0xba5079,_0x2ebf69)=>{const _0x30647b=_0x2b80af;_0xba5079[_0x30647b(0xf3)]!==_0x30647b(0xf5)&&_0xbb2bb2['add'](_0x2ebf69);});if(_0xbb2bb2['size']===0x0)return'';const _0x31aabe=new Set();for(const _0x3b4ed0 of _0xbb2bb2){for(let _0x132094=Math[_0x2b80af(0xe7)](0x0,_0x3b4ed0-_0x4d86a7);_0x132094<=Math[_0x2b80af(0xef)](_0x595459[_0x2b80af(0xf2)]-0x1,_0x3b4ed0+_0x4d86a7);_0x132094++){_0x31aabe[_0x2b80af(0xfa)](_0x132094);}}const _0x4006dc=[];let _0x585b3=-0x1;const _0x10eb76=_0x595459[_0x2b80af(0xf2)],_0x2b9e77=Math['max'](0x3,String(_0x10eb76)['length']),_0x449b5b=[];let _0x1ff970=0x0,_0x4de2dd=0x0;for(const _0x59e0c1 of _0x595459){if(_0x59e0c1[_0x2b80af(0xf3)]===_0x2b80af(0xf6))_0x1ff970++,_0x449b5b[_0x2b80af(0xec)]({'old':_0x1ff970,'new':0x0});else _0x59e0c1[_0x2b80af(0xf3)]===_0x2b80af(0xf0)?(_0x4de2dd++,_0x449b5b[_0x2b80af(0xec)]({'old':0x0,'new':_0x4de2dd})):(_0x1ff970++,_0x4de2dd++,_0x449b5b[_0x2b80af(0xec)]({'old':_0x1ff970,'new':_0x4de2dd}));}for(let _0x2b7d79=0x0;_0x2b7d79<_0x595459[_0x2b80af(0xf2)];_0x2b7d79++){if(!_0x31aabe[_0x2b80af(0xf7)](_0x2b7d79))continue;_0x585b3!==-0x1&&_0x2b7d79>_0x585b3+0x1&&_0x4006dc[_0x2b80af(0xec)](a158_0x42f367['cyan']('\x20\x20...'));_0x585b3=_0x2b7d79;const _0x42b765=_0x595459[_0x2b7d79],_0x58b10f=_0x449b5b[_0x2b7d79],_0x5ebb60=_0x58b10f[_0x2b80af(0xf8)]>0x0?String(_0x58b10f[_0x2b80af(0xf8)])[_0x2b80af(0xff)](_0x2b9e77):'\x20'[_0x2b80af(0xfd)](_0x2b9e77),_0x483761=_0x58b10f[_0x2b80af(0xeb)]>0x0?String(_0x58b10f[_0x2b80af(0xeb)])[_0x2b80af(0xff)](_0x2b9e77):'\x20'[_0x2b80af(0xfd)](_0x2b9e77);switch(_0x42b765[_0x2b80af(0xf3)]){case _0x2b80af(0xf6):_0x4006dc[_0x2b80af(0xec)](a158_0x42f367['red'](_0x5ebb60+'\x20'+_0x483761+_0x2b80af(0xde)+_0x42b765[_0x2b80af(0xe6)]));break;case'added':_0x4006dc['push'](a158_0x42f367[_0x2b80af(0xea)](_0x5ebb60+'\x20'+_0x483761+_0x2b80af(0xe1)+_0x42b765[_0x2b80af(0xe6)]));break;default:_0x4006dc[_0x2b80af(0xec)](a158_0x42f367[_0x2b80af(0xed)](_0x5ebb60+'\x20'+_0x483761+'\x20\x20\x20'+_0x42b765[_0x2b80af(0xe6)]));break;}}return _0x4006dc[_0x2b80af(0xe4)]('\x0a');}export function hasChanges(_0x3c9b8a){return _0x3c9b8a['some'](_0x4d0623=>_0x4d0623['type']!=='unchanged');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x526a58,_0x2c59c3){const _0x3b8ab0=a159_0x521d,_0x3556ef=_0x526a58();while(!![]){try{const _0x5b2402=-parseInt(_0x3b8ab0(0x167))/0x1+parseInt(_0x3b8ab0(0x165))/0x2*(parseInt(_0x3b8ab0(0x153))/0x3)+-parseInt(_0x3b8ab0(0x157))/0x4+parseInt(_0x3b8ab0(0x15c))/0x5*(parseInt(_0x3b8ab0(0x15a))/0x6)+parseInt(_0x3b8ab0(0x155))/0x7+parseInt(_0x3b8ab0(0x15d))/0x8*(-parseInt(_0x3b8ab0(0x164))/0x9)+parseInt(_0x3b8ab0(0x15e))/0xa*(parseInt(_0x3b8ab0(0x161))/0xb);if(_0x5b2402===_0x2c59c3)break;else _0x3556ef['push'](_0x3556ef['shift']());}catch(_0x35bb82){_0x3556ef['push'](_0x3556ef['shift']());}}}(a159_0x5996,0x9a045));import*as a159_0x224266 from'node:fs';function a159_0x521d(_0x49ff63,_0x42b93c){_0x49ff63=_0x49ff63-0x152;const _0x599605=a159_0x5996();let _0x521d1b=_0x599605[_0x49ff63];return _0x521d1b;}import*as a159_0x3694a2 from'node:path';export function setSecureFilePermissions(_0x5eb5a5){const _0x2aaa54=a159_0x521d;try{a159_0x224266[_0x2aaa54(0x15b)](_0x5eb5a5,0x180);}catch{console[_0x2aaa54(0x159)](_0x2aaa54(0x156)+_0x5eb5a5);}}export function setSecureDirectoryPermissions(_0x5e9b0c){const _0x4fa010=a159_0x521d;try{a159_0x224266['chmodSync'](_0x5e9b0c,0x1c0);}catch{console[_0x4fa010(0x159)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x5e9b0c);}}export function createSecureDirectory(_0xf0121a){const _0x2a76cb=a159_0x521d;!a159_0x224266[_0x2a76cb(0x158)](_0xf0121a)&&(a159_0x224266[_0x2a76cb(0x163)](_0xf0121a,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0xf0121a));}export function validateSecureFilePermissions(_0x119df3){const _0x2a70df=a159_0x521d;try{const _0x3012f8=a159_0x224266['statSync'](_0x119df3),_0x21a16c=_0x3012f8[_0x2a70df(0x154)]&0x1ff,_0x3ce6c7=(_0x21a16c&0x3f)!==0x0;if(_0x3ce6c7)return console[_0x2a70df(0x159)]('Warning:\x20'+_0x119df3+_0x2a70df(0x162)+_0x21a16c[_0x2a70df(0x15f)](0x8)+').\x20'+_0x2a70df(0x166)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x5181ce,_0x52d480){const _0x3cbc06=a159_0x521d,_0x2b77d6=a159_0x3694a2[_0x3cbc06(0x152)](_0x5181ce);createSecureDirectory(_0x2b77d6),a159_0x224266[_0x3cbc06(0x160)](_0x5181ce,_0x52d480,{'mode':0x180}),setSecureFilePermissions(_0x5181ce);}function a159_0x5996(){const _0x1fb3e8=['793506lRxlvo','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','1803012MrzvWQ','existsSync','warn','12bqTWee','chmodSync','2782415lnkIRT','24cemfqL','10zxWMcm','toString','writeFileSync','9143101exkZKR','\x20has\x20insecure\x20permissions\x20(','mkdirSync','450801AQLBfq','736142qUxpmB','Should\x20be\x200600\x20or\x20more\x20restrictive.','1193713gaEDLf','dirname','3OKPHdN','mode'];a159_0x5996=function(){return _0x1fb3e8;};return a159_0x5996();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3e2c06,_0x490a5d){const _0x2b3c3f=a160_0xc35c,_0x506ec3=_0x3e2c06();while(!![]){try{const _0x2c88ca=parseInt(_0x2b3c3f(0x1d3))/0x1+-parseInt(_0x2b3c3f(0x1d6))/0x2*(-parseInt(_0x2b3c3f(0x1da))/0x3)+parseInt(_0x2b3c3f(0x1d7))/0x4+-parseInt(_0x2b3c3f(0x1d8))/0x5+-parseInt(_0x2b3c3f(0x1e3))/0x6+parseInt(_0x2b3c3f(0x1e1))/0x7+parseInt(_0x2b3c3f(0x1dc))/0x8*(-parseInt(_0x2b3c3f(0x1d2))/0x9);if(_0x2c88ca===_0x490a5d)break;else _0x506ec3['push'](_0x506ec3['shift']());}catch(_0x1ea6b6){_0x506ec3['push'](_0x506ec3['shift']());}}}(a160_0x26d5,0xe91e7));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x23159b=a160_0xc35c;return process.env.TDX_CACHE_DIR||join(homedir(),_0x23159b(0x1dd),_0x23159b(0x1d4));}const registry=new Map();export function registerGlobalCacheKey(_0x1ec9db,_0x596cea){const _0x5e9fe4=a160_0xc35c,_0x1fe72e=registry[_0x5e9fe4(0x1e2)](_0x1ec9db);if(_0x1fe72e&&_0x1fe72e!==_0x596cea)throw new Error('Global\x20cache\x20key\x20\x22'+_0x1ec9db+_0x5e9fe4(0x1d5)+_0x1fe72e+_0x5e9fe4(0x1de)+_0x596cea+'\x22');registry['set'](_0x1ec9db,_0x596cea);}export function getGlobalCachePath(_0x384e3e){return join(getGlobalCacheDir(),_0x384e3e);}function ensureGlobalCacheDir(){const _0xed69ce=getGlobalCacheDir();!existsSync(_0xed69ce)&&mkdirSync(_0xed69ce,{'recursive':!![]});}function readCacheJson(_0x202290){const _0x5c0b62=a160_0xc35c,_0x93b487=getGlobalCachePath(_0x202290);if(!existsSync(_0x93b487))return undefined;try{const _0x5c226e=readFileSync(_0x93b487,'utf-8');return JSON[_0x5c0b62(0x1d9)](_0x5c226e);}catch{return undefined;}}function writeCacheJson(_0x40e947,_0x1ef6be){const _0x5d7f9e=a160_0xc35c;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x40e947),JSON[_0x5d7f9e(0x1e0)](_0x1ef6be,null,0x2),'utf-8');}function a160_0x26d5(){const _0x15548=['parse','1395951dQWgeO','clear','5233384NghvJm','.cache','\x22,\x20cannot\x20register\x20for\x20\x22','utf-8','stringify','6238309xAZmZA','get','7739436dBFPDP','9xQeplI','1189008MptkQd','tdx','\x22\x20already\x20registered\x20by\x20\x22','2iBjqrg','3518404wKdOpw','2630895VKuxWv'];a160_0x26d5=function(){return _0x15548;};return a160_0x26d5();}function readCacheText(_0x2ef562){const _0x52784d=a160_0xc35c,_0x19704c=getGlobalCachePath(_0x2ef562);if(!existsSync(_0x19704c))return undefined;try{return readFileSync(_0x19704c,_0x52784d(0x1df));}catch{return undefined;}}function writeCacheText(_0x5aa701,_0x4bbb87){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5aa701),_0x4bbb87,'utf-8');}function clearCache(_0x1f6cda){const _0x513aca=getGlobalCachePath(_0x1f6cda);if(existsSync(_0x513aca))try{unlinkSync(_0x513aca);}catch{}}function cacheExists(_0x18b7b9){return existsSync(getGlobalCachePath(_0x18b7b9));}export function createGlobalCache(_0x2a5e06,_0x303452){return registerGlobalCacheKey(_0x2a5e06,_0x303452),{'read':()=>readCacheJson(_0x2a5e06),'write':_0x3f80c9=>writeCacheJson(_0x2a5e06,_0x3f80c9),'clear':()=>clearCache(_0x2a5e06),'exists':()=>cacheExists(_0x2a5e06),'path':()=>getGlobalCachePath(_0x2a5e06)};}export function createGlobalTextCache(_0x571e7f,_0x3ae59c){return registerGlobalCacheKey(_0x571e7f,_0x3ae59c),{'read':()=>readCacheText(_0x571e7f)?.['trim']()||undefined,'write':_0x1617b9=>writeCacheText(_0x571e7f,_0x1617b9),'clear':()=>clearCache(_0x571e7f),'exists':()=>cacheExists(_0x571e7f),'path':()=>getGlobalCachePath(_0x571e7f)};}function a160_0xc35c(_0x2c37d0,_0x554fa4){_0x2c37d0=_0x2c37d0-0x1d2;const _0x26d59f=a160_0x26d5();let _0xc35c5c=_0x26d59f[_0x2c37d0];return _0xc35c5c;}export function createProfileCache(_0x2d3e97,_0x1de280){const _0x2ca230=_0x92c92=>{const _0x1ff3d0=_0x92c92||'default';return _0x2d3e97['replace']('{profile}',_0x1ff3d0);};return{'read':_0x1f1257=>{const _0x504421=_0x2ca230(_0x1f1257);return registerGlobalCacheKey(_0x504421,_0x1de280),readCacheJson(_0x504421);},'write':(_0x4bef1f,_0x205c58)=>{const _0x1f338b=_0x2ca230(_0x4bef1f);registerGlobalCacheKey(_0x1f338b,_0x1de280),writeCacheJson(_0x1f338b,_0x205c58);},'clear':_0x866e8d=>{const _0x40aa8a=_0x2ca230(_0x866e8d);clearCache(_0x40aa8a);},'exists':_0x823451=>{const _0x593de0=_0x2ca230(_0x823451);return cacheExists(_0x593de0);},'path':_0x32ab3c=>{const _0x12ed88=_0x2ca230(_0x32ab3c);return getGlobalCachePath(_0x12ed88);}};}export function createOptionalProfileCache(_0x50e314,_0x472fc1,_0x2709bc={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2709bc,_0x3bdf50=_0x22d600=>{return _0x22d600?''+_0x50e314+profileSeparator+_0x22d600+suffix:''+_0x50e314+suffix;};return{'read':_0x31f6fc=>{const _0x31d573=_0x3bdf50(_0x31f6fc);return registerGlobalCacheKey(_0x31d573,_0x472fc1),readCacheJson(_0x31d573);},'write':(_0x594552,_0x54efec)=>{const _0x2a980c=_0x3bdf50(_0x54efec);registerGlobalCacheKey(_0x2a980c,_0x472fc1),writeCacheJson(_0x2a980c,_0x594552);},'clear':_0x8d55ea=>{const _0x312583=_0x3bdf50(_0x8d55ea);clearCache(_0x312583);},'exists':_0x389498=>{const _0x334f91=_0x3bdf50(_0x389498);return cacheExists(_0x334f91);},'path':_0x7bd594=>{const _0x47d856=_0x3bdf50(_0x7bd594);return getGlobalCachePath(_0x47d856);}};}export function clearGlobalRegistry(){const _0x565f79=a160_0xc35c;registry[_0x565f79(0x1db)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x580035,_0x4d746c){const _0x327456=a161_0x1498,_0x33b624=_0x580035();while(!![]){try{const _0x58c050=parseInt(_0x327456(0x75))/0x1+-parseInt(_0x327456(0x67))/0x2*(parseInt(_0x327456(0x72))/0x3)+parseInt(_0x327456(0x6e))/0x4+parseInt(_0x327456(0x78))/0x5+-parseInt(_0x327456(0x7b))/0x6*(-parseInt(_0x327456(0x6f))/0x7)+-parseInt(_0x327456(0x77))/0x8*(-parseInt(_0x327456(0x74))/0x9)+parseInt(_0x327456(0x65))/0xa*(-parseInt(_0x327456(0x7a))/0xb);if(_0x58c050===_0x4d746c)break;else _0x33b624['push'](_0x33b624['shift']());}catch(_0x1f6b47){_0x33b624['push'](_0x33b624['shift']());}}}(a161_0x6ec5,0xcefe7));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a161_0x6ec5(){const _0x3ead7d=['583308IongmJ','3886239GXMruw','code','Invalid\x20JSON\x20in\x20file\x20\x27','183wbddvr','message','63OTnegq','111585QCAeRc','parse','1048488VBYzPH','6273950mWXREv','Permission\x20denied\x20reading\x20file:\x20','4809431iFovLN','6ydcAEj','20CUCfvh','NOT_FOUND','41394uSCeUo','Failed\x20to\x20load\x20JSON:\x20','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','INVALID_ARGUMENT','PERMISSION_DENIED','INTERNAL','\x27:\x20'];a161_0x6ec5=function(){return _0x3ead7d;};return a161_0x6ec5();}export async function loadJSON(_0x21841e,_0x31b91b){const _0x2d54ab=a161_0x1498;try{if(_0x31b91b){const _0x321086=await readFile(_0x21841e,'utf-8');try{return JSON[_0x2d54ab(0x76)](_0x321086);}catch(_0x6d914d){throw new SDKError(ErrorCode[_0x2d54ab(0x6a)],_0x2d54ab(0x71)+_0x21841e+_0x2d54ab(0x6d)+(_0x6d914d instanceof Error?_0x6d914d[_0x2d54ab(0x73)]:String(_0x6d914d)));}}else try{return JSON['parse'](_0x21841e);}catch(_0x4bc2bc){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20string:\x20'+(_0x4bc2bc instanceof Error?_0x4bc2bc['message']:String(_0x4bc2bc)));}}catch(_0x188274){if(_0x188274 instanceof SDKError)throw _0x188274;if(_0x188274 instanceof Error&&_0x2d54ab(0x70)in _0x188274){const _0x36aa10=_0x188274;if(_0x36aa10[_0x2d54ab(0x70)]==='ENOENT')throw new SDKError(ErrorCode[_0x2d54ab(0x66)],'File\x20not\x20found:\x20'+_0x21841e);else{if(_0x36aa10[_0x2d54ab(0x70)]==='EACCES')throw new SDKError(ErrorCode[_0x2d54ab(0x6b)],_0x2d54ab(0x79)+_0x21841e);}}throw new SDKError(ErrorCode[_0x2d54ab(0x6c)],_0x2d54ab(0x68)+(_0x188274 instanceof Error?_0x188274['message']:String(_0x188274)));}}function a161_0x1498(_0x1a2dc7,_0x12667c){_0x1a2dc7=_0x1a2dc7-0x65;const _0x6ec555=a161_0x6ec5();let _0x1498d7=_0x6ec555[_0x1a2dc7];return _0x1498d7;}export async function loadJSONFromOptions(_0x352379,_0x3ad052){const _0x548133=a161_0x1498;if(_0x352379&&_0x3ad052)throw new SDKError(ErrorCode[_0x548133(0x6a)],_0x548133(0x69));if(_0x352379)return await loadJSON(_0x352379,![]);if(_0x3ad052)return await loadJSON(_0x3ad052,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a162_0x23f89d=a162_0x5e9d;(function(_0x309ad4,_0x5bd086){const _0x5e0fe6=a162_0x5e9d,_0x468542=_0x309ad4();while(!![]){try{const _0x580afe=-parseInt(_0x5e0fe6(0x106))/0x1+-parseInt(_0x5e0fe6(0x110))/0x2+-parseInt(_0x5e0fe6(0x112))/0x3*(-parseInt(_0x5e0fe6(0x105))/0x4)+-parseInt(_0x5e0fe6(0x102))/0x5+-parseInt(_0x5e0fe6(0x10a))/0x6*(-parseInt(_0x5e0fe6(0x113))/0x7)+-parseInt(_0x5e0fe6(0x10b))/0x8*(parseInt(_0x5e0fe6(0x108))/0x9)+parseInt(_0x5e0fe6(0x107))/0xa*(parseInt(_0x5e0fe6(0x101))/0xb);if(_0x580afe===_0x5bd086)break;else _0x468542['push'](_0x468542['shift']());}catch(_0x35d917){_0x468542['push'](_0x468542['shift']());}}}(a162_0x3858,0xbccdf));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';const LOCAL_CACHE_DIR=a162_0x23f89d(0x10e),registry=new Map();function a162_0x5e9d(_0x374e91,_0x8185f8){_0x374e91=_0x374e91-0x101;const _0x3858ee=a162_0x3858();let _0x5e9d46=_0x3858ee[_0x374e91];return _0x5e9d46;}export function registerCacheKey(_0x27face,_0x2223d0){const _0x5d5675=a162_0x23f89d,_0x25d9b8=registry['get'](_0x27face);if(_0x25d9b8&&_0x25d9b8!==_0x2223d0)throw new Error(_0x5d5675(0x10c)+_0x27face+_0x5d5675(0x104)+_0x25d9b8+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x2223d0+'\x22');registry['set'](_0x27face,_0x2223d0);}export function getCacheDir(){const _0x2f1520=a162_0x23f89d;return join(process[_0x2f1520(0x114)](),LOCAL_CACHE_DIR);}export function getCachePath(_0x57790c){return join(getCacheDir(),_0x57790c);}function ensureCacheDir(){const _0x56544d=getCacheDir();!existsSync(_0x56544d)&&mkdirSync(_0x56544d,{'recursive':!![]});}function readCacheJson(_0x1d0eb7){const _0x4ae606=a162_0x23f89d,_0x551a78=getCachePath(_0x1d0eb7);if(!existsSync(_0x551a78))return undefined;try{const _0x2d9f77=readFileSync(_0x551a78,_0x4ae606(0x109));return JSON[_0x4ae606(0x103)](_0x2d9f77);}catch{return undefined;}}function writeCacheJson(_0x4bee23,_0x2d8241){const _0x8991c1=a162_0x23f89d;ensureCacheDir(),writeFileSync(getCachePath(_0x4bee23),JSON[_0x8991c1(0x10d)](_0x2d8241,null,0x2),'utf-8');}function readCacheText(_0x3bd20f){const _0x518bf2=getCachePath(_0x3bd20f);if(!existsSync(_0x518bf2))return undefined;try{return readFileSync(_0x518bf2,'utf-8');}catch{return undefined;}}function a162_0x3858(){const _0x2dcf86=['89576slTeix','Cache\x20key\x20\x22','stringify','.cache/tdx','trim','2174806bJutYg','clear','3057EwvTqp','658fGuXah','cwd','19765163ySMJkB','4423905zcUbLs','parse','\x22\x20already\x20registered\x20by\x20\x22','3492mqNelN','1027180htfadc','10nwYOBb','135YwPzOv','utf-8','80058AtQOdB'];a162_0x3858=function(){return _0x2dcf86;};return a162_0x3858();}function writeCacheText(_0x5d5f70,_0x22ef3b){const _0x1294f7=a162_0x23f89d;ensureCacheDir(),writeFileSync(getCachePath(_0x5d5f70),_0x22ef3b,_0x1294f7(0x109));}function clearCache(_0x3fe8ef){const _0x32d88a=getCachePath(_0x3fe8ef);if(existsSync(_0x32d88a))try{unlinkSync(_0x32d88a);}catch{}}function cacheExists(_0x1c1fad){return existsSync(getCachePath(_0x1c1fad));}export function createCache(_0x325871,_0x1272a8){return registerCacheKey(_0x325871,_0x1272a8),{'read':()=>readCacheJson(_0x325871),'write':_0x50d889=>writeCacheJson(_0x325871,_0x50d889),'clear':()=>clearCache(_0x325871),'exists':()=>cacheExists(_0x325871),'path':()=>getCachePath(_0x325871)};}export function createTextCache(_0x5d0b98,_0x4ff243){const _0x5db6de=a162_0x23f89d;return registerCacheKey(_0x5d0b98,_0x4ff243),{'read':()=>readCacheText(_0x5d0b98)?.[_0x5db6de(0x10f)]()||undefined,'write':_0x4bdcfb=>writeCacheText(_0x5d0b98,_0x4bdcfb),'clear':()=>clearCache(_0x5d0b98),'exists':()=>cacheExists(_0x5d0b98),'path':()=>getCachePath(_0x5d0b98)};}export function clearRegistry(){const _0x4f0ef8=a162_0x23f89d;registry[_0x4f0ef8(0x111)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a163_0x21a605=a163_0x5a4d;(function(_0x4af35f,_0x414aa2){const _0x250e79=a163_0x5a4d,_0x55d4af=_0x4af35f();while(!![]){try{const _0x4fd05c=parseInt(_0x250e79(0xd7))/0x1*(parseInt(_0x250e79(0xd6))/0x2)+parseInt(_0x250e79(0xc0))/0x3*(parseInt(_0x250e79(0xcd))/0x4)+-parseInt(_0x250e79(0xd0))/0x5+-parseInt(_0x250e79(0xbe))/0x6+parseInt(_0x250e79(0xce))/0x7+-parseInt(_0x250e79(0xcb))/0x8+-parseInt(_0x250e79(0xd2))/0x9*(-parseInt(_0x250e79(0xba))/0xa);if(_0x4fd05c===_0x414aa2)break;else _0x55d4af['push'](_0x55d4af['shift']());}catch(_0x4e1251){_0x55d4af['push'](_0x55d4af['shift']());}}}(a163_0x5277,0x5bff2));function a163_0x5a4d(_0x4e9def,_0x396a6f){_0x4e9def=_0x4e9def-0xb9;const _0x52770b=a163_0x5277();let _0x5a4d27=_0x52770b[_0x4e9def];return _0x5a4d27;}import a163_0x3e9321 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a163_0x3e9321,ChalkClass=chalkModule[a163_0x21a605(0xc8)]||chalkModule['default']?.[a163_0x21a605(0xc8)];export class DefaultLogFormatter{[a163_0x21a605(0xc5)];[a163_0x21a605(0xc9)];constructor(_0x5706d0={}){const _0x37256e=a163_0x21a605;this[_0x37256e(0xc5)]=_0x5706d0[_0x37256e(0xc5)]??![],this['chalk']=_0x5706d0[_0x37256e(0xc5)]&&ChalkClass?new ChalkClass({'level':0x3}):a163_0x3e9321;}[a163_0x21a605(0xc7)](_0x3732b0){const _0x216561=a163_0x21a605,_0x3e7c69=formatTimestamp(_0x3732b0[_0x216561(0xbd)]),_0x2861ea=logLevelToString(_0x3732b0[_0x216561(0xca)]);if(!this['colors'])return _0x3e7c69+'\x20['+_0x2861ea+_0x216561(0xb9)+_0x3732b0[_0x216561(0xd4)]+']\x20'+_0x3732b0['message'];const _0x3dfa68=this[_0x216561(0xc9)][_0x216561(0xd1)](_0x3e7c69),_0x5e5be6=this[_0x216561(0xc4)](_0x2861ea,_0x3732b0[_0x216561(0xca)]),_0x1e74a0=this['chalk'][_0x216561(0xd3)]('['+_0x3732b0[_0x216561(0xd4)]+']');return _0x3dfa68+'\x20'+_0x5e5be6+'\x20'+_0x1e74a0+'\x20'+_0x3732b0[_0x216561(0xd5)];}[a163_0x21a605(0xc4)](_0x44d17e,_0xe22120){const _0x54b474=a163_0x21a605;switch(_0xe22120){case LogLevel[_0x54b474(0xc2)]:return this['chalk'][_0x54b474(0xbf)]('['+_0x44d17e+']');case LogLevel[_0x54b474(0xcc)]:return this[_0x54b474(0xc9)][_0x54b474(0xd8)]('['+_0x44d17e+']');case LogLevel[_0x54b474(0xcf)]:return this[_0x54b474(0xc9)][_0x54b474(0xc1)]('['+_0x44d17e+']');case LogLevel[_0x54b474(0xc6)]:return this[_0x54b474(0xc9)][_0x54b474(0xbc)]('['+_0x44d17e+']');case LogLevel[_0x54b474(0xc3)]:return this[_0x54b474(0xc9)][_0x54b474(0xbb)]('['+_0x44d17e+']');default:return'['+_0x44d17e+']';}}}function a163_0x5277(){const _0x49e5e2=['colorLevel','colors','WARN','format','Chalk','chalk','level','5666704JIXqDQ','DEBUG','1208kjtXlu','527296XyoIcR','INFO','2106565PueptO','dim','261lifbcT','blue','component','message','274HfxOne','608hylOrq','green',']\x20[','452130KJRbLJ','red','yellow','timestamp','1379988EUllWJ','gray','2649llAEly','cyan','TRACE','ERROR'];a163_0x5277=function(){return _0x49e5e2;};return a163_0x5277();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d6158,_0x454dad){var _0x552e83=a164_0xbbaa,_0x4c1173=_0x1d6158();while(!![]){try{var _0xede304=-parseInt(_0x552e83(0x8f))/0x1+parseInt(_0x552e83(0x8c))/0x2*(-parseInt(_0x552e83(0x90))/0x3)+parseInt(_0x552e83(0x8b))/0x4+parseInt(_0x552e83(0x8e))/0x5+-parseInt(_0x552e83(0x92))/0x6+-parseInt(_0x552e83(0x91))/0x7+parseInt(_0x552e83(0x8d))/0x8;if(_0xede304===_0x454dad)break;else _0x4c1173['push'](_0x4c1173['shift']());}catch(_0x1f6e16){_0x4c1173['push'](_0x4c1173['shift']());}}}(a164_0x1156,0xc26ed));function a164_0xbbaa(_0x20dc7b,_0x4d7288){_0x20dc7b=_0x20dc7b-0x8b;var _0x1156a3=a164_0x1156();var _0xbbaa3a=_0x1156a3[_0x20dc7b];return _0xbbaa3a;}export{DefaultLogFormatter}from'./default-formatter.js';function a164_0x1156(){var _0x39ca85=['944968tWiGIN','509559ErjKfq','5011832StbEsw','2565120DaQRVb','712772SHHWpq','2eDQivD','13421440jXvSWd','5994205ehSJGZ'];a164_0x1156=function(){return _0x39ca85;};return a164_0x1156();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a165_0x6e5d(_0x538765,_0x1e58dd){_0x538765=_0x538765-0x10d;const _0xad1e33=a165_0xad1e();let _0x6e5dcc=_0xad1e33[_0x538765];return _0x6e5dcc;}const a165_0x531c71=a165_0x6e5d;(function(_0x13df8c,_0x5bc918){const _0x59cf1a=a165_0x6e5d,_0x9de71=_0x13df8c();while(!![]){try{const _0x581d61=-parseInt(_0x59cf1a(0x115))/0x1*(parseInt(_0x59cf1a(0x117))/0x2)+-parseInt(_0x59cf1a(0x114))/0x3+parseInt(_0x59cf1a(0x10f))/0x4*(parseInt(_0x59cf1a(0x11f))/0x5)+-parseInt(_0x59cf1a(0x111))/0x6+parseInt(_0x59cf1a(0x112))/0x7+-parseInt(_0x59cf1a(0x11e))/0x8*(-parseInt(_0x59cf1a(0x11d))/0x9)+parseInt(_0x59cf1a(0x116))/0xa*(parseInt(_0x59cf1a(0x10e))/0xb);if(_0x581d61===_0x5bc918)break;else _0x9de71['push'](_0x9de71['shift']());}catch(_0x157e0b){_0x9de71['push'](_0x9de71['shift']());}}}(a165_0xad1e,0x72cd8));function a165_0xad1e(){const _0x9c2a06=['20aEQIoQ','minLevel','3003036cHNrEx','709478SCXebg','error','769488fscszH','106FGXbca','10smJweo','6328jVlNOb','useStderr','colors','WARN','level','handle','3832776ABcOIV','16KemwNX','260485PihObv','formatter','3839561AhxgIe'];a165_0xad1e=function(){return _0x9c2a06;};return a165_0xad1e();}import{LogLevel as a165_0x282936}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a165_0x531c71(0x110)];['useStderr'];[a165_0x531c71(0x10d)];constructor(_0x2c0aaa={}){const _0x253d4e=a165_0x531c71;this[_0x253d4e(0x110)]=_0x2c0aaa[_0x253d4e(0x110)]??a165_0x282936[_0x253d4e(0x11a)],this[_0x253d4e(0x118)]=_0x2c0aaa[_0x253d4e(0x118)]??!![],this['formatter']=new DefaultLogFormatter({'colors':_0x2c0aaa[_0x253d4e(0x119)]??!![]});}[a165_0x531c71(0x11c)](_0x442e7c){const _0x38cd00=a165_0x531c71;if(_0x442e7c[_0x38cd00(0x11b)]<this[_0x38cd00(0x110)])return;const _0x5e11be=this['formatter']['format'](_0x442e7c);this[_0x38cd00(0x118)]&&_0x442e7c['level']>=a165_0x282936[_0x38cd00(0x11a)]?console[_0x38cd00(0x113)](_0x5e11be):console['log'](_0x5e11be);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a166_0x4b8168=a166_0xfb4f;(function(_0x78f6b8,_0x43504b){const _0x261845=a166_0xfb4f,_0x4a37d7=_0x78f6b8();while(!![]){try{const _0x5b17bc=parseInt(_0x261845(0x103))/0x1*(parseInt(_0x261845(0x10e))/0x2)+parseInt(_0x261845(0xeb))/0x3+-parseInt(_0x261845(0xfa))/0x4+-parseInt(_0x261845(0x10f))/0x5*(-parseInt(_0x261845(0xf4))/0x6)+-parseInt(_0x261845(0xf8))/0x7+parseInt(_0x261845(0xf6))/0x8*(parseInt(_0x261845(0xfe))/0x9)+-parseInt(_0x261845(0xed))/0xa;if(_0x5b17bc===_0x43504b)break;else _0x4a37d7['push'](_0x4a37d7['shift']());}catch(_0x23e958){_0x4a37d7['push'](_0x4a37d7['shift']());}}}(a166_0x5061,0x72139));function a166_0x5061(){const _0x520066=['214uTQont','1342905nIAeWB','924561YMrACI','write','4620800zSqupD','logStream','init','logPath','logDir','format','filter','18dWreBY','logs','2136zkRyTo','close','2072826RHTGEb','rotate','2462456uISZHi','handle','test','.log','7335uuKAeR','getLogPath','logBaseName','rotateOldLogs','mtime','4762bgbLJU','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','message','replace','toISOString','split','logFileName','error','filePath','end'];a166_0x5061=function(){return _0x520066;};return a166_0x5061();}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';function a166_0xfb4f(_0x54b136,_0x9aa6dd){_0x54b136=_0x54b136-0xeb;const _0x5061ca=a166_0x5061();let _0xfb4fd6=_0x5061ca[_0x54b136];return _0xfb4fd6;}import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a166_0x4b8168(0xf0)];[a166_0x4b8168(0xf1)];[a166_0x4b8168(0x10a)];[a166_0x4b8168(0x100)];[a166_0x4b8168(0xee)]=null;[a166_0x4b8168(0xf9)];constructor(_0x43ed46={}){const _0x2555b3=a166_0x4b8168;this[_0x2555b3(0xf0)]=_0x43ed46[_0x2555b3(0x10c)]??join(getGlobalCacheDir(),_0x2555b3(0xf5),'tdx.log'),this[_0x2555b3(0xf1)]=dirname(this[_0x2555b3(0xf0)]),this['logFileName']=basename(this[_0x2555b3(0xf0)]),this[_0x2555b3(0x100)]=this['logFileName']['replace'](/\.log$/,''),this[_0x2555b3(0xf9)]=_0x43ed46['rotate']??!![];}async[a166_0x4b8168(0xef)](){const _0x9cd6f3=a166_0x4b8168;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0x9cd6f3(0xf9)]&&await this[_0x9cd6f3(0x101)](),this[_0x9cd6f3(0xee)]=createWriteStream(this[_0x9cd6f3(0xf0)],{'flags':'a'}),this[_0x9cd6f3(0xee)]['on'](_0x9cd6f3(0x10b),_0x2e2358=>{const _0x34f9f2=_0x9cd6f3;console['error']('Warning:\x20Error\x20writing\x20to\x20'+this[_0x34f9f2(0x10a)]+':',_0x2e2358[_0x34f9f2(0x106)]);});}catch(_0x182238){console[_0x9cd6f3(0x10b)](_0x9cd6f3(0x105),_0x182238);}}[a166_0x4b8168(0xfb)](_0x42822d){const _0x17e245=a166_0x4b8168;if(!this['logStream'])return;const _0xb4e9aa=Logger[_0x17e245(0xf2)](_0x42822d);this[_0x17e245(0xee)][_0x17e245(0xec)](_0xb4e9aa+'\x0a');}async[a166_0x4b8168(0xf7)](){return new Promise(_0x39a993=>{const _0x569a45=a166_0xfb4f;this[_0x569a45(0xee)]?this['logStream'][_0x569a45(0x10d)](()=>{const _0x3c9233=_0x569a45;this[_0x3c9233(0xee)]=null,_0x39a993();}):_0x39a993();});}[a166_0x4b8168(0xff)](){return this['logPath'];}async[a166_0x4b8168(0x101)](){const _0x45b699=a166_0x4b8168;try{const _0x4dfcf6=await readdir(this['logDir']),_0x2793ad=new Date()[_0x45b699(0x108)]()[_0x45b699(0x109)]('T')[0x0];if(_0x4dfcf6['includes'](this[_0x45b699(0x10a)])){const _0x54fcc9=join(this[_0x45b699(0xf1)],this[_0x45b699(0x10a)]),_0x31b033=await stat(_0x54fcc9),_0x2bd869=new Date(_0x31b033[_0x45b699(0x102)])[_0x45b699(0x108)]()['split']('T')[0x0];if(_0x2bd869<_0x2793ad){const _0x3c91c1=join(this[_0x45b699(0xf1)],this[_0x45b699(0x100)]+'-'+_0x2bd869+_0x45b699(0xfd));await rename(_0x54fcc9,_0x3c91c1);}}const _0x1c5818=await readdir(this[_0x45b699(0xf1)]),_0x384d8f=this[_0x45b699(0x100)][_0x45b699(0x107)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x5ae9aa=new RegExp('^'+_0x384d8f+_0x45b699(0x104)),_0xce8cad=_0x1c5818[_0x45b699(0xf3)](_0xb1c0c0=>_0x5ae9aa[_0x45b699(0xfc)](_0xb1c0c0));for(const _0xb13342 of _0xce8cad){const _0x5594b6=join(this[_0x45b699(0xf1)],_0xb13342),_0x254f6a=join(this['logDir'],_0xb13342+'.gz');try{await pipeline(createReadStream(_0x5594b6),createGzip(),createWriteStream(_0x254f6a)),await unlink(_0x5594b6);}catch(_0x5c5162){console['error']('Warning:\x20Failed\x20to\x20compress\x20'+_0xb13342+':',_0x5c5162);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a081c,_0x48b916){var _0x126ee5=a167_0x48b1,_0x5cdcf2=_0x3a081c();while(!![]){try{var _0x3225a9=parseInt(_0x126ee5(0x9b))/0x1+-parseInt(_0x126ee5(0xa0))/0x2+parseInt(_0x126ee5(0x9f))/0x3+-parseInt(_0x126ee5(0x98))/0x4*(parseInt(_0x126ee5(0x9c))/0x5)+parseInt(_0x126ee5(0x9d))/0x6*(-parseInt(_0x126ee5(0x9e))/0x7)+parseInt(_0x126ee5(0x99))/0x8*(parseInt(_0x126ee5(0x9a))/0x9)+parseInt(_0x126ee5(0x97))/0xa;if(_0x3225a9===_0x48b916)break;else _0x5cdcf2['push'](_0x5cdcf2['shift']());}catch(_0x11668f){_0x5cdcf2['push'](_0x5cdcf2['shift']());}}}(a167_0x1cf6,0x9e535));function a167_0x48b1(_0x4181a2,_0x16ce4f){_0x4181a2=_0x4181a2-0x97;var _0x1cf682=a167_0x1cf6();var _0x48b1d5=_0x1cf682[_0x4181a2];return _0x48b1d5;}export{FileHandler}from'./file-handler.js';function a167_0x1cf6(){var _0x4f3b88=['4809ebWOxK','1693770EoQtjd','2270236blgrwK','8161650OJkHIm','1516ToxjTz','8CknpJm','4103208JzqWNr','9181niaVJJ','540XgrzXN','186sgSodm'];a167_0x1cf6=function(){return _0x4f3b88;};return a167_0x1cf6();}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a168_0x3ae87b=a168_0x3570;(function(_0x3e5704,_0x1dbbdd){var _0x297209=a168_0x3570,_0x3f90ad=_0x3e5704();while(!![]){try{var _0x3d75f0=-parseInt(_0x297209(0x106))/0x1+-parseInt(_0x297209(0x100))/0x2+-parseInt(_0x297209(0x103))/0x3*(parseInt(_0x297209(0xfe))/0x4)+parseInt(_0x297209(0x105))/0x5+-parseInt(_0x297209(0x102))/0x6*(parseInt(_0x297209(0x104))/0x7)+parseInt(_0x297209(0x107))/0x8+parseInt(_0x297209(0x101))/0x9;if(_0x3d75f0===_0x1dbbdd)break;else _0x3f90ad['push'](_0x3f90ad['shift']());}catch(_0x39d436){_0x3f90ad['push'](_0x3f90ad['shift']());}}}(a168_0x41ab,0x964cb));function a168_0x3570(_0x516188,_0x15562d){_0x516188=_0x516188-0xfe;var _0x41abba=a168_0x41ab();var _0x3570fe=_0x41abba[_0x516188];return _0x3570fe;}function a168_0x41ab(){var _0x3cd1df=['482880zYddGC','548uHAwvm','handle','1142336VpmUwW','23008842XvIKCy','27834uYAxqK','19953MYahPz','35cYFRlM','768155JwkiUQ','649352kViSzs'];a168_0x41ab=function(){return _0x3cd1df;};return a168_0x41ab();}export class NullHandler{[a168_0x3ae87b(0xff)](_0xe857a8){}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x9269ea,_0x4d4352){var _0x2b6e01=a169_0x54bd,_0xdb615=_0x9269ea();while(!![]){try{var _0x5600ba=parseInt(_0x2b6e01(0x140))/0x1+-parseInt(_0x2b6e01(0x143))/0x2+-parseInt(_0x2b6e01(0x13f))/0x3*(-parseInt(_0x2b6e01(0x141))/0x4)+-parseInt(_0x2b6e01(0x144))/0x5*(parseInt(_0x2b6e01(0x147))/0x6)+parseInt(_0x2b6e01(0x146))/0x7+-parseInt(_0x2b6e01(0x145))/0x8+parseInt(_0x2b6e01(0x142))/0x9;if(_0x5600ba===_0x4d4352)break;else _0xdb615['push'](_0xdb615['shift']());}catch(_0x2d6c0d){_0xdb615['push'](_0xdb615['shift']());}}}(a169_0x4603,0x3feb0));function a169_0x54bd(_0x5bc78e,_0x565b6e){_0x5bc78e=_0x5bc78e-0x13f;var _0x46039a=a169_0x4603();var _0x54bddd=_0x46039a[_0x5bc78e];return _0x54bddd;}export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a169_0x4603(){var _0x765487=['2884035oeJyOA','235842hsHwVY','93KLdzrD','433733igdCnv','46276wTdLaZ','468612RaNOtQ','95284rybtRn','55DfaPuK','4116944RDKzIY'];a169_0x4603=function(){return _0x765487;};return a169_0x4603();}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
|