@treasuredata/tdx 2026.7.4 → 2026.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/cas-command.d.ts.map +1 -1
- package/dist/commands/cas-command.js +1 -1
- package/dist/commands/cas-command.js.map +1 -1
- package/dist/commands/cas-segment-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/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-template-pull-command.js +1 -1
- package/dist/commands/engage-template-push-command.js +1 -1
- package/dist/commands/engage-template-validate-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/policy-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-move-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/table-deleted.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/upgrade-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/work-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/oauth-keychain.js +1 -1
- package/dist/core/oauth.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/tools/work-create-item.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/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/cas/cas-api-client.js +1 -1
- package/dist/sdk/cas/cas-audience-schema.d.ts +15 -3
- package/dist/sdk/cas/cas-audience-schema.d.ts.map +1 -1
- package/dist/sdk/cas/cas-audience-schema.js +1 -1
- package/dist/sdk/cas/cas-audience-schema.js.map +1 -1
- package/dist/sdk/cas/cas-audience-validator.js +1 -1
- package/dist/sdk/cas/cas-audience-validator.js.map +1 -1
- package/dist/sdk/cas/cas-audience-yaml.d.ts +8 -0
- package/dist/sdk/cas/cas-audience-yaml.d.ts.map +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js.map +1 -1
- package/dist/sdk/cas/cas-segment-yaml.js +1 -1
- package/dist/sdk/cas/index.js +1 -1
- package/dist/sdk/cas/pull-workflow.js +1 -1
- package/dist/sdk/cas/push-workflow.d.ts +47 -1
- package/dist/sdk/cas/push-workflow.d.ts.map +1 -1
- package/dist/sdk/cas/push-workflow.js +1 -1
- package/dist/sdk/cas/push-workflow.js.map +1 -1
- package/dist/sdk/cas/validate-files.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.d.ts +6 -6
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/engage-api-client.js.map +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/oauth-refresh.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/delivery.js +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/template-pull.js +1 -1
- package/dist/sdk/engage/template-push.js +1 -1
- package/dist/sdk/engage/template-validator.js +1 -1
- package/dist/sdk/engage/template-yaml.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.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/llm/user-settings.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/policy.js +1 -1
- package/dist/sdk/query/deleted-table-validation.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/segment-validator.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/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.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/cas.d.ts +5 -0
- package/dist/sdk/types/cas.d.ts.map +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/types/workspace.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/paginate.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/util/tree-search.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/task-graph.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/sdk/workspace/access-tracker.js +1 -1
- package/dist/sdk/workspace/frontmatter.js +1 -1
- package/dist/sdk/workspace/git.js +1 -1
- package/dist/sdk/workspace/index.js +1 -1
- package/dist/sdk/workspace/templates.js +1 -1
- package/dist/sdk/workspace/weekly.js +1 -1
- package/dist/sdk/workspace/wikilinks.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/claude-code-state.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/file-reader.js +1 -1
- package/dist/utils/github-releases.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/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/proxy-fetch.js +1 -1
- package/dist/utils/proxy-fetch.js.map +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
|
-
function a215_0x3daf(_0x173f41,_0x3f219a){_0x173f41=_0x173f41-0xd6;const _0x268dc5=a215_0x268d();let _0x3daf08=_0x268dc5[_0x173f41];return _0x3daf08;}const a215_0x958fb3=a215_0x3daf;(function(_0x28339d,_0x535cc6){const _0x2f791e=a215_0x3daf,_0x4395a8=_0x28339d();while(!![]){try{const _0x46a277=-parseInt(_0x2f791e(0xdd))/0x1*(-parseInt(_0x2f791e(0xef))/0x2)+parseInt(_0x2f791e(0x118))/0x3+-parseInt(_0x2f791e(0x136))/0x4+parseInt(_0x2f791e(0x117))/0x5+parseInt(_0x2f791e(0x12b))/0x6+parseInt(_0x2f791e(0x10b))/0x7+-parseInt(_0x2f791e(0xf1))/0x8;if(_0x46a277===_0x535cc6)break;else _0x4395a8['push'](_0x4395a8['shift']());}catch(_0x356f80){_0x4395a8['push'](_0x4395a8['shift']());}}}(a215_0x268d,0xb6ee7));export const fixtures={'database':{'basic':{'name':a215_0x958fb3(0x113),'count':0x5,'created_at':a215_0x958fb3(0x133),'updated_at':a215_0x958fb3(0x133),'permission':'administrator'},'withTables':{'name':a215_0x958fb3(0xf8),'count':0x64,'created_at':'2023-06-15T10:30:00Z','updated_at':a215_0x958fb3(0x119),'permission':'full_access'}},'table':{'basic':{'id':0x3039,'name':'users','type':a215_0x958fb3(0xea),'schema':JSON['stringify']([['id',a215_0x958fb3(0xfd)],[a215_0x958fb3(0xdf),a215_0x958fb3(0x110)],[a215_0x958fb3(0x132),a215_0x958fb3(0xfd)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':'2024-01-01T00:00:00Z','updated_at':a215_0x958fb3(0x133)},'events':{'id':0x303a,'name':a215_0x958fb3(0x122),'type':'log','schema':JSON['stringify']([[a215_0x958fb3(0x13d),a215_0x958fb3(0xfd)],[a215_0x958fb3(0xdf),'long'],[a215_0x958fb3(0xfa),'string'],[a215_0x958fb3(0x12a),a215_0x958fb3(0xfd)],[a215_0x958fb3(0xe9),'map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a215_0x958fb3(0x133),'updated_at':a215_0x958fb3(0x112)}},'parentSegment':{'basic':{'id':a215_0x958fb3(0x106),'name':'Test\x20Parent\x20Segment','description':a215_0x958fb3(0x12e),'status':'active','master_table':{'database':'cdp_db','table':a215_0x958fb3(0xed)},'attributes':[{'name':a215_0x958fb3(0xdc),'type':a215_0x958fb3(0xfd),'key':!![]},{'name':a215_0x958fb3(0x120),'type':a215_0x958fb3(0xfd)},{'name':'created_at','type':a215_0x958fb3(0x101)}],'created_at':a215_0x958fb3(0x133),'updated_at':a215_0x958fb3(0xde)},'withBehaviors':{'id':a215_0x958fb3(0x11b),'name':a215_0x958fb3(0x10d),'description':a215_0x958fb3(0x11a),'status':a215_0x958fb3(0xe0),'master_table':{'database':a215_0x958fb3(0x123),'table':a215_0x958fb3(0xf4)},'behaviors':[{'name':a215_0x958fb3(0x11c),'table':{'database':a215_0x958fb3(0xdb),'table':a215_0x958fb3(0x11c)},'join_key':a215_0x958fb3(0xdc)},{'name':'page_views','table':{'database':a215_0x958fb3(0xdb),'table':a215_0x958fb3(0x128)},'join_key':a215_0x958fb3(0xdc)}],'created_at':a215_0x958fb3(0x133),'updated_at':a215_0x958fb3(0xde)}},'segment':{'basic':{'id':a215_0x958fb3(0x102),'name':a215_0x958fb3(0xe1),'description':a215_0x958fb3(0xe6),'parent_segment_id':a215_0x958fb3(0x106),'status':a215_0x958fb3(0xe0),'rules':[{'type':a215_0x958fb3(0xd6),'field':a215_0x958fb3(0x10a),'operator':a215_0x958fb3(0xe4),'value':a215_0x958fb3(0x11f)}],'count':0x1388,'created_at':a215_0x958fb3(0x133),'updated_at':a215_0x958fb3(0xde)},'withMultipleRules':{'id':'cs-111222','name':a215_0x958fb3(0xec),'description':a215_0x958fb3(0xf9),'parent_segment_id':a215_0x958fb3(0x106),'status':a215_0x958fb3(0xe0),'rules':[{'type':'attribute','field':a215_0x958fb3(0x10a),'operator':'TimeWithinPast','value':a215_0x958fb3(0x11f)},{'type':'attribute','field':'lifetime_value','operator':'Greater','value':0x3e8}],'count':0x5dc,'created_at':a215_0x958fb3(0x133),'updated_at':'2024-01-15T00:00:00Z'}},'journey':{'basic':{'id':a215_0x958fb3(0xe5),'name':a215_0x958fb3(0x12d),'description':a215_0x958fb3(0x100),'status':'draft','version':0x1,'steps':[{'id':a215_0x958fb3(0xda),'type':'wait','duration':'1d'},{'id':a215_0x958fb3(0x138),'type':'activation','activation_id':'act-123'}],'created_at':a215_0x958fb3(0x133),'updated_at':a215_0x958fb3(0xde)},'withDecision':{'id':a215_0x958fb3(0x115),'name':a215_0x958fb3(0x13e),'description':a215_0x958fb3(0xfb),'status':a215_0x958fb3(0xe0),'version':0x2,'steps':[{'id':a215_0x958fb3(0xda),'type':a215_0x958fb3(0xe7),'segment_id':a215_0x958fb3(0x102),'yes_path':'step-2','no_path':a215_0x958fb3(0xd9)},{'id':a215_0x958fb3(0x138),'type':a215_0x958fb3(0x114),'activation_id':a215_0x958fb3(0x103)},{'id':a215_0x958fb3(0xd9),'type':a215_0x958fb3(0x105)}],'created_at':a215_0x958fb3(0x133),'updated_at':a215_0x958fb3(0xde)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a215_0x958fb3(0x10f)},{'name':a215_0x958fb3(0x132),'type':'varchar'},{'name':a215_0x958fb3(0x10c),'type':a215_0x958fb3(0x11e)}],'data':[[a215_0x958fb3(0xf3),'Alice',0x64],[a215_0x958fb3(0xff),a215_0x958fb3(0xf0),0xc8],[a215_0x958fb3(0x111),a215_0x958fb3(0xd8),0x96]]},'empty':{'schema':[{'name':'id','type':a215_0x958fb3(0x10f)},{'name':a215_0x958fb3(0x132),'type':a215_0x958fb3(0x10f)}],'data':[]},'singleRow':{'schema':[{'name':a215_0x958fb3(0xe2),'type':a215_0x958fb3(0x11e)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':'test@example.com','created_at':a215_0x958fb3(0x133),'updated_at':a215_0x958fb3(0xde),'administrator':![]},'admin':{'id':0x1,'name':a215_0x958fb3(0xfc),'email':a215_0x958fb3(0x121),'created_at':'2023-01-01T00:00:00Z','updated_at':a215_0x958fb3(0xde),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a215_0x958fb3(0x13a),'database':a215_0x958fb3(0x113),'status':'success','query':a215_0x958fb3(0x130),'start_at':a215_0x958fb3(0xf2),'end_at':a215_0x958fb3(0xee),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a215_0x958fb3(0x13a),'database':a215_0x958fb3(0x113),'status':'running','query':a215_0x958fb3(0x134),'start_at':a215_0x958fb3(0x126),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a215_0x958fb3(0x13a),'database':'test_db','status':'error','query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a215_0x958fb3(0xfe),'end_at':'2024-01-15T10:10:01Z','duration':0x1,'result_size':null,'error':a215_0x958fb3(0x10e)}},'workflow':{'basic':{'id':a215_0x958fb3(0xe8),'name':a215_0x958fb3(0xeb),'project':'data_pipeline','revision':a215_0x958fb3(0x127),'timezone':a215_0x958fb3(0x13c),'schedule':{'cron':'0\x200\x20*\x20*\x20*'}},'withSessions':{'id':'wf-67890','name':a215_0x958fb3(0xd7),'project':'data_sync','revision':a215_0x958fb3(0x135),'timezone':a215_0x958fb3(0x125),'schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':a215_0x958fb3(0x124),'status':'success','started_at':a215_0x958fb3(0x131),'finished_at':a215_0x958fb3(0x12f)}}},'apiError':{'unauthorized':{'errors':{'error':a215_0x958fb3(0x13b),'message':a215_0x958fb3(0x13b),'severity':a215_0x958fb3(0x12c),'status_code':0x191}},'notFound':{'errors':{'error':a215_0x958fb3(0x11d),'message':'The\x20requested\x20resource\x20does\x20not\x20exist','severity':a215_0x958fb3(0x12c),'status_code':0x194}},'rateLimited':{'detail':a215_0x958fb3(0x13f)},'rfc9457':{'type':a215_0x958fb3(0xf5),'title':a215_0x958fb3(0x116),'status':0x193,'detail':a215_0x958fb3(0x107),'instance':'/v3/database/list'}}};export function createDatabase(_0x3460f6){const _0x450dc9=a215_0x958fb3;return{...fixtures[_0x450dc9(0xf6)][_0x450dc9(0x129)],..._0x3460f6};}export function createTable(_0x45712e){const _0x2b4eba=a215_0x958fb3;return{...fixtures[_0x2b4eba(0x109)]['basic'],..._0x45712e};}function a215_0x268d(){const _0x3844ac=['2801836OhlBHz','segment','step-2','parentSegment','presto','Invalid\x20API\x20key','UTC','event_id','Purchase\x20Reminder','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','attribute','hourly_sync','Charlie','step-3','step-1','events_db','customer_id','3WjkPCG','2024-01-15T00:00:00Z','time','active','Active\x20Users','total','workflow','TimeWithinPast','j-abc123','Users\x20active\x20in\x20the\x20last\x2030\x20days','decision_point','wf-12345','properties','log','daily_etl','High\x20Value\x20Active\x20Users','unified_customers','2024-01-15T10:00:05Z','78386FkgrNX','Bob','25859616GjlKyb','2024-01-15T10:00:00Z','user-1','customers','https://api.treasuredata.com/errors/forbidden','database','journey','production_db','Active\x20users\x20with\x20high\x20lifetime\x20value','user_id','Journey\x20with\x20decision\x20point','Admin\x20User','string','2024-01-15T10:10:00Z','user-2','Onboarding\x20journey\x20for\x20new\x20users','timestamp','cs-456789','act-email','user','end','ps-123456','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','completed','table','last_login','8595279EqTfMB','count','Customers\x20with\x20Behaviors','Table\x20does\x20not\x20exist:\x20nonexistent_table','varchar','long','user-3','2024-01-15T12:00:00Z','test_db','activation','j-def456','Forbidden','5065130AtQJYO','2541417rDgFUV','2024-01-15T08:00:00Z','Parent\x20segment\x20with\x20behavioral\x20data','ps-789012','purchases','Resource\x20not\x20found','bigint','30d','email','admin@example.com','events','cdp_db','sess-111','America/Los_Angeles','2024-01-15T10:05:00Z','abc123','pageviews','basic','event_type','8859342HzIKTw','error','Welcome\x20Journey','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','2024-01-15T09:05:00Z','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','2024-01-15T09:00:00Z','name','2024-01-01T00:00:00Z','SELECT\x20COUNT(*)\x20FROM\x20events','def456'];a215_0x268d=function(){return _0x3844ac;};return a215_0x268d();}export function createParentSegment(_0x1dc0ec){const _0x3890eb=a215_0x958fb3;return{...fixtures[_0x3890eb(0x139)][_0x3890eb(0x129)],..._0x1dc0ec};}export function createSegment(_0x376120){const _0x5a86bc=a215_0x958fb3;return{...fixtures[_0x5a86bc(0x137)][_0x5a86bc(0x129)],..._0x376120};}export function createJourney(_0x5f1551){const _0x8821cc=a215_0x958fb3;return{...fixtures[_0x8821cc(0xf7)]['basic'],..._0x5f1551};}export function createQueryResult(_0x27eada){return{...fixtures['queryResult']['basic'],..._0x27eada};}export function createUser(_0x1ca841){const _0x404e08=a215_0x958fb3;return{...fixtures[_0x404e08(0x104)][_0x404e08(0x129)],..._0x1ca841};}export function createJob(_0x5c05e7){const _0xd618f=a215_0x958fb3;return{...fixtures['job'][_0xd618f(0x108)],..._0x5c05e7};}export function createWorkflow(_0x570de4){const _0x299a73=a215_0x958fb3;return{...fixtures[_0x299a73(0xe3)][_0x299a73(0x129)],..._0x570de4};}
|
|
1
|
+
const a215_0x599e34=a215_0x336f;(function(_0x50456e,_0x2c3fb2){const _0x5ed311=a215_0x336f,_0x4d2130=_0x50456e();while(!![]){try{const _0x851248=-parseInt(_0x5ed311(0x71))/0x1*(parseInt(_0x5ed311(0x84))/0x2)+-parseInt(_0x5ed311(0xa8))/0x3*(-parseInt(_0x5ed311(0xbf))/0x4)+-parseInt(_0x5ed311(0x8a))/0x5*(-parseInt(_0x5ed311(0x6d))/0x6)+parseInt(_0x5ed311(0xa3))/0x7*(parseInt(_0x5ed311(0xc3))/0x8)+-parseInt(_0x5ed311(0x9f))/0x9+-parseInt(_0x5ed311(0x82))/0xa*(-parseInt(_0x5ed311(0xac))/0xb)+parseInt(_0x5ed311(0xab))/0xc*(-parseInt(_0x5ed311(0xda))/0xd);if(_0x851248===_0x2c3fb2)break;else _0x4d2130['push'](_0x4d2130['shift']());}catch(_0x28a9ee){_0x4d2130['push'](_0x4d2130['shift']());}}}(a215_0x3f54,0x8fd3a));export const fixtures={'database':{'basic':{'name':a215_0x599e34(0xc4),'count':0x5,'created_at':a215_0x599e34(0xa0),'updated_at':a215_0x599e34(0xa0),'permission':a215_0x599e34(0x85)},'withTables':{'name':a215_0x599e34(0x87),'count':0x64,'created_at':a215_0x599e34(0xbd),'updated_at':a215_0x599e34(0x78),'permission':a215_0x599e34(0xd0)}},'table':{'basic':{'id':0x3039,'name':a215_0x599e34(0xde),'type':a215_0x599e34(0xa5),'schema':JSON[a215_0x599e34(0x76)]([['id',a215_0x599e34(0xce)],[a215_0x599e34(0x8d),a215_0x599e34(0x86)],[a215_0x599e34(0xc7),'string']]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a215_0x599e34(0xa0),'updated_at':'2024-01-01T00:00:00Z'},'events':{'id':0x303a,'name':a215_0x599e34(0xd8),'type':a215_0x599e34(0xa5),'schema':JSON[a215_0x599e34(0x76)]([[a215_0x599e34(0xd6),a215_0x599e34(0xce)],[a215_0x599e34(0x8d),'long'],['user_id',a215_0x599e34(0xce)],[a215_0x599e34(0xae),a215_0x599e34(0xce)],[a215_0x599e34(0x7e),'map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':a215_0x599e34(0x90)}},'parentSegment':{'basic':{'id':a215_0x599e34(0xc0),'name':a215_0x599e34(0xdb),'description':a215_0x599e34(0xd2),'status':'active','master_table':{'database':a215_0x599e34(0xd9),'table':'unified_customers'},'attributes':[{'name':'customer_id','type':a215_0x599e34(0xce),'key':!![]},{'name':a215_0x599e34(0x98),'type':a215_0x599e34(0xce)},{'name':a215_0x599e34(0xb0),'type':a215_0x599e34(0x93)}],'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'},'withBehaviors':{'id':a215_0x599e34(0xc5),'name':a215_0x599e34(0xbc),'description':a215_0x599e34(0xc8),'status':a215_0x599e34(0xa2),'master_table':{'database':a215_0x599e34(0xd9),'table':a215_0x599e34(0x6b)},'behaviors':[{'name':a215_0x599e34(0xb4),'table':{'database':'events_db','table':'purchases'},'join_key':a215_0x599e34(0xbe)},{'name':a215_0x599e34(0x75),'table':{'database':a215_0x599e34(0x99),'table':a215_0x599e34(0x7d)},'join_key':a215_0x599e34(0xbe)}],'created_at':a215_0x599e34(0xa0),'updated_at':a215_0x599e34(0xb6)}},'segment':{'basic':{'id':a215_0x599e34(0x96),'name':a215_0x599e34(0x83),'description':a215_0x599e34(0x94),'parent_segment_id':a215_0x599e34(0xc0),'status':a215_0x599e34(0xa2),'rules':[{'type':a215_0x599e34(0x9d),'field':a215_0x599e34(0x95),'operator':a215_0x599e34(0x80),'value':a215_0x599e34(0x8b)}],'count':0x1388,'created_at':'2024-01-01T00:00:00Z','updated_at':a215_0x599e34(0xb6)},'withMultipleRules':{'id':a215_0x599e34(0xc6),'name':'High\x20Value\x20Active\x20Users','description':a215_0x599e34(0xbb),'parent_segment_id':a215_0x599e34(0xc0),'status':a215_0x599e34(0xa2),'rules':[{'type':a215_0x599e34(0x9d),'field':a215_0x599e34(0x95),'operator':'TimeWithinPast','value':a215_0x599e34(0x8b)},{'type':a215_0x599e34(0x9d),'field':'lifetime_value','operator':a215_0x599e34(0xb2),'value':0x3e8}],'count':0x5dc,'created_at':a215_0x599e34(0xa0),'updated_at':a215_0x599e34(0xb6)}},'journey':{'basic':{'id':'j-abc123','name':a215_0x599e34(0xd5),'description':a215_0x599e34(0xa4),'status':a215_0x599e34(0x8e),'version':0x1,'steps':[{'id':a215_0x599e34(0x77),'type':a215_0x599e34(0x88),'duration':'1d'},{'id':a215_0x599e34(0xdc),'type':a215_0x599e34(0xca),'activation_id':a215_0x599e34(0x8f)}],'created_at':a215_0x599e34(0xa0),'updated_at':'2024-01-15T00:00:00Z'},'withDecision':{'id':a215_0x599e34(0xb9),'name':a215_0x599e34(0xb5),'description':a215_0x599e34(0xd1),'status':'active','version':0x2,'steps':[{'id':a215_0x599e34(0x77),'type':a215_0x599e34(0xdd),'segment_id':a215_0x599e34(0x96),'yes_path':'step-2','no_path':a215_0x599e34(0xc2)},{'id':a215_0x599e34(0xdc),'type':a215_0x599e34(0xca),'activation_id':a215_0x599e34(0xa9)},{'id':a215_0x599e34(0xc2),'type':a215_0x599e34(0x70)}],'created_at':a215_0x599e34(0xa0),'updated_at':a215_0x599e34(0xb6)}},'queryResult':{'basic':{'schema':[{'name':'id','type':'varchar'},{'name':a215_0x599e34(0xc7),'type':a215_0x599e34(0xcf)},{'name':a215_0x599e34(0x79),'type':a215_0x599e34(0x97)}],'data':[['user-1',a215_0x599e34(0x73),0x64],[a215_0x599e34(0xcb),'Bob',0xc8],[a215_0x599e34(0x92),a215_0x599e34(0x9b),0x96]]},'empty':{'schema':[{'name':'id','type':a215_0x599e34(0xcf)},{'name':'name','type':a215_0x599e34(0xcf)}],'data':[]},'singleRow':{'schema':[{'name':'total','type':a215_0x599e34(0x97)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a215_0x599e34(0xb1),'email':a215_0x599e34(0xa1),'created_at':a215_0x599e34(0xa0),'updated_at':'2024-01-15T00:00:00Z','administrator':![]},'admin':{'id':0x1,'name':a215_0x599e34(0xaf),'email':a215_0x599e34(0xd4),'created_at':'2023-01-01T00:00:00Z','updated_at':a215_0x599e34(0xb6),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a215_0x599e34(0xaa),'database':a215_0x599e34(0xc4),'status':a215_0x599e34(0xa6),'query':a215_0x599e34(0x68),'start_at':'2024-01-15T10:00:00Z','end_at':a215_0x599e34(0xcd),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a215_0x599e34(0xaa),'database':a215_0x599e34(0xc4),'status':a215_0x599e34(0x7f),'query':a215_0x599e34(0xb3),'start_at':a215_0x599e34(0x7c),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':a215_0x599e34(0xc4),'status':a215_0x599e34(0x7b),'query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a215_0x599e34(0xd7),'end_at':a215_0x599e34(0x69),'duration':0x1,'result_size':null,'error':'Table\x20does\x20not\x20exist:\x20nonexistent_table'}},'workflow':{'basic':{'id':a215_0x599e34(0x91),'name':a215_0x599e34(0xa7),'project':a215_0x599e34(0x89),'revision':'abc123','timezone':a215_0x599e34(0xcc),'schedule':{'cron':a215_0x599e34(0x6a)}},'withSessions':{'id':'wf-67890','name':a215_0x599e34(0xc1),'project':a215_0x599e34(0x81),'revision':a215_0x599e34(0xb7),'timezone':'America/Los_Angeles','schedule':{'cron':a215_0x599e34(0x7a)},'last_session':{'id':'sess-111','status':a215_0x599e34(0xa6),'started_at':'2024-01-15T09:00:00Z','finished_at':a215_0x599e34(0x72)}}},'apiError':{'unauthorized':{'errors':{'error':a215_0x599e34(0xe0),'message':'Invalid\x20API\x20key','severity':a215_0x599e34(0x7b),'status_code':0x191}},'notFound':{'errors':{'error':a215_0x599e34(0x9e),'message':a215_0x599e34(0xc9),'severity':a215_0x599e34(0x7b),'status_code':0x194}},'rateLimited':{'detail':a215_0x599e34(0x9a)},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':'Forbidden','status':0x193,'detail':a215_0x599e34(0xdf),'instance':a215_0x599e34(0xb8)}}};export function createDatabase(_0x5ee4a3){const _0x165d96=a215_0x599e34;return{...fixtures['database'][_0x165d96(0x6e)],..._0x5ee4a3};}export function createTable(_0x49a6b6){const _0x2218eb=a215_0x599e34;return{...fixtures[_0x2218eb(0xba)][_0x2218eb(0x6e)],..._0x49a6b6};}export function createParentSegment(_0x4ac82a){const _0x24e572=a215_0x599e34;return{...fixtures['parentSegment'][_0x24e572(0x6e)],..._0x4ac82a};}export function createSegment(_0xe3da2e){const _0x3ce8bd=a215_0x599e34;return{...fixtures[_0x3ce8bd(0xad)][_0x3ce8bd(0x6e)],..._0xe3da2e};}function a215_0x3f54(){const _0x41349b=['2024-01-15T12:00:00Z','wf-12345','user-3','timestamp','Users\x20active\x20in\x20the\x20last\x2030\x20days','last_login','cs-456789','bigint','email','events_db','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','Charlie','journey','attribute','Resource\x20not\x20found','699012oZZzAl','2024-01-01T00:00:00Z','test@example.com','active','5446HFRRCD','Onboarding\x20journey\x20for\x20new\x20users','log','success','daily_etl','1545fJwZgd','act-email','presto','2660112PdkIoM','151448sFIsIY','segment','event_type','Admin\x20User','created_at','Test\x20User','Greater','SELECT\x20COUNT(*)\x20FROM\x20events','purchases','Purchase\x20Reminder','2024-01-15T00:00:00Z','def456','/v3/database/list','j-def456','table','Active\x20users\x20with\x20high\x20lifetime\x20value','Customers\x20with\x20Behaviors','2023-06-15T10:30:00Z','customer_id','6716tjixjy','ps-123456','hourly_sync','step-3','2456zsxdaD','test_db','ps-789012','cs-111222','name','Parent\x20segment\x20with\x20behavioral\x20data','The\x20requested\x20resource\x20does\x20not\x20exist','activation','user-2','UTC','2024-01-15T10:00:05Z','string','varchar','full_access','Journey\x20with\x20decision\x20point','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','workflow','admin@example.com','Welcome\x20Journey','event_id','2024-01-15T10:10:00Z','events','cdp_db','26ipJZgz','Test\x20Parent\x20Segment','step-2','decision_point','users','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','Invalid\x20API\x20key','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','2024-01-15T10:10:01Z','0\x200\x20*\x20*\x20*','customers','job','8934xvNDoV','basic','completed','end','1vLUnlR','2024-01-15T09:05:00Z','Alice','queryResult','page_views','stringify','step-1','2024-01-15T08:00:00Z','count','0\x20*\x20*\x20*\x20*','error','2024-01-15T10:05:00Z','pageviews','properties','running','TimeWithinPast','data_sync','430VpQDgC','Active\x20Users','1233380HJFZIA','administrator','long','production_db','wait','data_pipeline','105WYLmnx','30d','user','time','draft','act-123'];a215_0x3f54=function(){return _0x41349b;};return a215_0x3f54();}export function createJourney(_0x141078){const _0x24c05c=a215_0x599e34;return{...fixtures[_0x24c05c(0x9c)][_0x24c05c(0x6e)],..._0x141078};}export function createQueryResult(_0x29816d){const _0x451125=a215_0x599e34;return{...fixtures[_0x451125(0x74)][_0x451125(0x6e)],..._0x29816d};}export function createUser(_0x1161fa){const _0x9306ab=a215_0x599e34;return{...fixtures[_0x9306ab(0x8c)][_0x9306ab(0x6e)],..._0x1161fa};}function a215_0x336f(_0x3fc44e,_0x3ba94f){_0x3fc44e=_0x3fc44e-0x68;const _0x3f5445=a215_0x3f54();let _0x336fff=_0x3f5445[_0x3fc44e];return _0x336fff;}export function createJob(_0x425872){const _0xe915a4=a215_0x599e34;return{...fixtures[_0xe915a4(0x6c)][_0xe915a4(0x6f)],..._0x425872};}export function createWorkflow(_0x591c3b){const _0x271d89=a215_0x599e34;return{...fixtures[_0x271d89(0xd3)][_0x271d89(0x6e)],..._0x591c3b};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a216_0x20d5fb=a216_0x5afe;(function(_0x35c811,_0x46ad05){const _0x2cdc08=a216_0x5afe,_0x297766=_0x35c811();while(!![]){try{const _0x20421f=parseInt(_0x2cdc08(0xe5))/0x1*(-parseInt(_0x2cdc08(0xc3))/0x2)+-parseInt(_0x2cdc08(0xad))/0x3*(-parseInt(_0x2cdc08(0xa6))/0x4)+-parseInt(_0x2cdc08(0xbe))/0x5+-parseInt(_0x2cdc08(0x99))/0x6+parseInt(_0x2cdc08(0xb5))/0x7*(-parseInt(_0x2cdc08(0xa9))/0x8)+-parseInt(_0x2cdc08(0xa4))/0x9*(-parseInt(_0x2cdc08(0x9d))/0xa)+parseInt(_0x2cdc08(0xc5))/0xb;if(_0x20421f===_0x46ad05)break;else _0x297766['push'](_0x297766['shift']());}catch(_0x1bdbe7){_0x297766['push'](_0x297766['shift']());}}}(a216_0x1b8e,0xf27bc));function a216_0x1b8e(){const _0x2c8981=['isArray','getMatchCount','6VHCUZg','jsonResponse','No\x20stub\x20matched\x20request:\x20','pathname','matcher','function','matchCount','map','21EOVUYr','mockImplementation','register','textResponse','includes','application/json','Unmatched\x20stub','headers','errorResponse','3958495eyrdAS','GET','get','method','host','382266auovRN','withQuery','47080KFuDnG','fetchMock','REST','string','getRequests','text/plain','simple','length','createFetch','forEach','description','Service\x20Unavailable','stack','td-api','stubs','getLastRequest','Bad\x20Request','join','Internal\x20Server\x20Error','jsonResponseWithHeaders','responder','push','registerWithInspector','Too\x20Many\x20Requests','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','split','parse','reset','networkError','withBody','filter','verify','1TYXPTr','withHost','toLowerCase','Conflict','getStatusText','parseRequest','url','4894872lIXHgo','toUpperCase','requests','test','610HGTMEM','stringify','Unprocessable\x20Entity','body','No\x20Content','entries','Created','126459MGiuIg','Bad\x20Gateway','3889772OmWSLL','\x20registered\x20at:\x0a','wasCalled','38456tZbmVF','error'];a216_0x1b8e=function(){return _0x2c8981;};return a216_0x1b8e();}import{vi}from'vitest';function a216_0x5afe(_0x367982,_0xe5a359){_0x367982=_0x367982-0x96;const _0x1b8e42=a216_0x1b8e();let _0x5afe9b=_0x1b8e42[_0x367982];return _0x5afe9b;}export class HTTPMockRegistry{['stubs']=[];[a216_0x20d5fb(0x9b)]=[];[a216_0x20d5fb(0xc6)]=null;[a216_0x20d5fb(0xc7)](_0x1eba9f,_0x437ecd){return _0x16f6de=>{const _0x5a5ff2=a216_0x5afe;if(_0x16f6de['method'][_0x5a5ff2(0x9a)]()!==_0x1eba9f[_0x5a5ff2(0x9a)]())return![];const _0x30e219=new URL(_0x16f6de[_0x5a5ff2(0x98)]);if(typeof _0x437ecd==='string')return _0x30e219[_0x5a5ff2(0xb0)]===_0x437ecd||_0x30e219[_0x5a5ff2(0xb0)][_0x5a5ff2(0xb9)](_0x437ecd);return _0x437ecd[_0x5a5ff2(0x9c)](_0x30e219[_0x5a5ff2(0xb0)]);};}[a216_0x20d5fb(0xc4)](_0x544e2b,_0x44dfc3){return _0x191dff=>{const _0x1499fa=a216_0x5afe;if(!_0x544e2b(_0x191dff))return![];const _0x21e0ab=new URL(_0x191dff[_0x1499fa(0x98)]);return Object[_0x1499fa(0xa2)](_0x44dfc3)['every'](([_0x4ba540,_0x4758e7])=>_0x21e0ab['searchParams'][_0x1499fa(0xc0)](_0x4ba540)===_0x4758e7);};}[a216_0x20d5fb(0xe2)](_0x2bb39e,_0x5c21d5){return _0x2f2106=>{const _0x13cdde=a216_0x5afe;if(!_0x2bb39e(_0x2f2106))return![];if(typeof _0x5c21d5===_0x13cdde(0xb2))return _0x5c21d5(_0x2f2106['body']);return JSON[_0x13cdde(0x9e)](_0x2f2106[_0x13cdde(0xa0)])===JSON[_0x13cdde(0x9e)](_0x5c21d5);};}[a216_0x20d5fb(0xe6)](_0xae47c1,_0x38042c){return _0x450f90=>{const _0x38abe2=a216_0x5afe;if(!_0xae47c1(_0x450f90))return![];const _0x390e99=new URL(_0x450f90[_0x38abe2(0x98)]);return _0x390e99[_0x38abe2(0xc2)]===_0x38042c;};}[a216_0x20d5fb(0xb7)](_0x46ce9b,_0x52483d,_0x5d6394){const _0x542390=a216_0x20d5fb;this[_0x542390(0xd3)][_0x542390(0xda)]({'matcher':_0x46ce9b,'responder':_0x52483d,'matched':![],'matchCount':0x0,'stack':new Error()[_0x542390(0xd1)]??'','description':_0x5d6394?.['description']});}[a216_0x20d5fb(0xdb)](_0x371169,_0x41c274,_0x4e2b8e){const _0x42dfec=_0x2e00f3=>{const _0x17c080=a216_0x5afe;return _0x4e2b8e(_0x2e00f3[_0x17c080(0xa0)],_0x2e00f3),_0x41c274(_0x2e00f3);};this['register'](_0x371169,_0x42dfec);}static[a216_0x20d5fb(0xae)](_0x5d4f98,_0x287dde=0xc8){const _0x60db11=a216_0x20d5fb;return()=>new Response(JSON[_0x60db11(0x9e)](_0x5d4f98),{'status':_0x287dde,'headers':{'Content-Type':'application/json'}});}static[a216_0x20d5fb(0xbd)](_0x54d8f2,_0x3e1071,_0x388d37=a216_0x20d5fb(0xcb)){return()=>{const _0x32aa35=a216_0x5afe;let _0x25c717;switch(_0x388d37){case _0x32aa35(0xd2):_0x25c717={'errors':{'error':_0x3e1071,'message':_0x3e1071,'severity':_0x32aa35(0xaa),'status_code':_0x54d8f2}};break;case'rfc9457':_0x25c717={'type':'https://api.treasuredata.com/errors/'+_0x54d8f2,'title':HTTPMockRegistry[_0x32aa35(0x96)](_0x54d8f2),'status':_0x54d8f2,'detail':_0x3e1071};break;default:_0x25c717={'error':_0x3e1071};}return new Response(JSON[_0x32aa35(0x9e)](_0x25c717),{'status':_0x54d8f2,'headers':{'Content-Type':_0x32aa35(0xba)}});};}static[a216_0x20d5fb(0xd8)](_0x4af82d,_0x35ed66,_0x248b71=0xc8){const _0x19c432=a216_0x20d5fb;return()=>new Response(JSON[_0x19c432(0x9e)](_0x4af82d),{'status':_0x248b71,'headers':{'Content-Type':_0x19c432(0xba),..._0x35ed66}});}static[a216_0x20d5fb(0xb8)](_0x4aac2c,_0x544f26=0xc8){const _0xfe7dc8=a216_0x20d5fb;return()=>new Response(_0x4aac2c,{'status':_0x544f26,'headers':{'Content-Type':_0xfe7dc8(0xca)}});}static[a216_0x20d5fb(0xe1)](_0x5a07e8){return()=>{throw new Error(_0x5a07e8);};}[a216_0x20d5fb(0xcd)](){const _0x5bc2da=a216_0x20d5fb;return this['fetchMock']=vi['fn']()[_0x5bc2da(0xb6)](async(_0x5bdbf7,_0x4e2714)=>{const _0x42085f=_0x5bc2da,_0x15e3fb=this['parseRequest'](_0x5bdbf7,_0x4e2714);this['requests'][_0x42085f(0xda)](_0x15e3fb);for(const _0x50fe45 of this[_0x42085f(0xd3)]){if(_0x50fe45[_0x42085f(0xb1)](_0x15e3fb))return _0x50fe45['matched']=!![],_0x50fe45['matchCount']++,_0x50fe45[_0x42085f(0xd9)](_0x15e3fb);}const _0x3d8b97=this[_0x42085f(0xd3)][_0x42085f(0xb4)]((_0x1dff10,_0x32f910)=>'\x20\x20'+(_0x32f910+0x1)+'.\x20'+(_0x1dff10[_0x42085f(0xcf)]??'unnamed\x20stub'))['join']('\x0a');throw new Error(_0x42085f(0xaf)+_0x15e3fb['method']+'\x20'+_0x15e3fb[_0x42085f(0x98)]+'\x0a'+('Request\x20body:\x20'+JSON[_0x42085f(0x9e)](_0x15e3fb[_0x42085f(0xa0)])+'\x0a')+('Registered\x20stubs:\x0a'+(_0x3d8b97||'\x20\x20(none)')));}),this[_0x5bc2da(0xc6)];}[a216_0x20d5fb(0x97)](_0x3acfbf,_0x118be2){const _0x42418b=a216_0x20d5fb,_0x4f4a31={};if(_0x118be2?.['headers']){if(_0x118be2[_0x42418b(0xbc)]instanceof Headers)_0x118be2[_0x42418b(0xbc)][_0x42418b(0xce)]((_0x4da9e9,_0x544cf1)=>{const _0x12e564=_0x42418b;_0x4f4a31[_0x544cf1[_0x12e564(0xe7)]()]=_0x4da9e9;});else{if(Array[_0x42418b(0xab)](_0x118be2[_0x42418b(0xbc)]))for(const [_0x18d302,_0x16f19f]of _0x118be2['headers']){_0x4f4a31[_0x18d302[_0x42418b(0xe7)]()]=_0x16f19f;}else for(const [_0x2cc0d9,_0x51295c]of Object[_0x42418b(0xa2)](_0x118be2['headers'])){_0x51295c!==undefined&&(_0x4f4a31[_0x2cc0d9['toLowerCase']()]=_0x51295c);}}}let _0x25371f;if(_0x118be2?.[_0x42418b(0xa0)])try{_0x25371f=JSON[_0x42418b(0xdf)](_0x118be2[_0x42418b(0xa0)]);}catch{_0x25371f=_0x118be2[_0x42418b(0xa0)];}return{'method':_0x118be2?.[_0x42418b(0xc1)]??_0x42418b(0xbf),'url':_0x3acfbf,'headers':_0x4f4a31,'body':_0x25371f};}[a216_0x20d5fb(0xe4)](_0x1b853e){const _0x25221e=a216_0x20d5fb,_0x246389=this[_0x25221e(0xd3)][_0x25221e(0xe3)](_0x3ebec1=>!_0x3ebec1['matched']);if(_0x246389[_0x25221e(0xcc)]>0x0){const _0x416238=_0x246389[_0x25221e(0xb4)](_0x9a63a=>{const _0x8f3818=_0x25221e,_0xeabb59=_0x9a63a['description']?'\x20('+_0x9a63a['description']+')':'',_0x4e0f38=_0x9a63a['stack'][_0x8f3818(0xde)]('\x0a')['slice'](0x2,0x5)['join']('\x0a');return _0x8f3818(0xbb)+_0xeabb59+_0x8f3818(0xa7)+_0x4e0f38;});_0x1b853e['fail'](_0x246389[_0x25221e(0xcc)]+_0x25221e(0xdd)+_0x416238[_0x25221e(0xd6)]('\x0a\x0a'));}}[a216_0x20d5fb(0xc9)](){return[...this['requests']];}[a216_0x20d5fb(0xd4)](){const _0x5b5dbe=a216_0x20d5fb;return this['requests'][this[_0x5b5dbe(0x9b)][_0x5b5dbe(0xcc)]-0x1];}[a216_0x20d5fb(0xa8)](_0x2c4608,_0x31d8ac){const _0x2f6af9=a216_0x20d5fb;return this[_0x2f6af9(0x9b)]['some'](_0x2a440d=>{const _0x52be30=_0x2f6af9;if(_0x2a440d[_0x52be30(0xc1)]['toUpperCase']()!==_0x2c4608[_0x52be30(0x9a)]())return![];if(typeof _0x31d8ac===_0x52be30(0xc8))return _0x2a440d[_0x52be30(0x98)][_0x52be30(0xb9)](_0x31d8ac);return _0x31d8ac[_0x52be30(0x9c)](_0x2a440d[_0x52be30(0x98)]);});}[a216_0x20d5fb(0xac)](_0x2c05c0){const _0x1f01c2=a216_0x20d5fb;return this[_0x1f01c2(0xd3)][_0x2c05c0]?.[_0x1f01c2(0xb3)]??0x0;}[a216_0x20d5fb(0xe0)](){const _0x238c76=a216_0x20d5fb;this[_0x238c76(0xd3)]=[],this[_0x238c76(0x9b)]=[],this['fetchMock']=null;}static[a216_0x20d5fb(0x96)](_0x49608b){const _0x495ca8=a216_0x20d5fb,_0x1eca73={0xc8:'OK',0xc9:_0x495ca8(0xa3),0xcc:_0x495ca8(0xa1),0x190:_0x495ca8(0xd5),0x191:'Unauthorized',0x193:'Forbidden',0x194:'Not\x20Found',0x199:_0x495ca8(0xe8),0x1a6:_0x495ca8(0x9f),0x1ad:_0x495ca8(0xdc),0x1f4:_0x495ca8(0xd7),0x1f6:_0x495ca8(0xa5),0x1f7:_0x495ca8(0xd0)};return _0x1eca73[_0x49608b]??'Unknown';}}export function createHTTPMock(){return new HTTPMockRegistry();}
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x17149a,_0x39f25e){var _0x24aaaf=a217_0x4e04,_0x77ee7d=_0x17149a();while(!![]){try{var _0x313686=parseInt(_0x24aaaf(0xb7))/0x1*(-parseInt(_0x24aaaf(0xb5))/0x2)+-parseInt(_0x24aaaf(0xb6))/0x3*(parseInt(_0x24aaaf(0xb9))/0x4)+-parseInt(_0x24aaaf(0xb3))/0x5*(parseInt(_0x24aaaf(0xae))/0x6)+parseInt(_0x24aaaf(0xaf))/0x7*(-parseInt(_0x24aaaf(0xb0))/0x8)+-parseInt(_0x24aaaf(0xb4))/0x9*(-parseInt(_0x24aaaf(0xb2))/0xa)+parseInt(_0x24aaaf(0xad))/0xb+parseInt(_0x24aaaf(0xb8))/0xc*(parseInt(_0x24aaaf(0xb1))/0xd);if(_0x313686===_0x39f25e)break;else _0x77ee7d['push'](_0x77ee7d['shift']());}catch(_0x43cd40){_0x77ee7d['push'](_0x77ee7d['shift']());}}}(a217_0x28f1,0x83fdb));function a217_0x28f1(){var _0x341c03=['10170710rsGNwR','5057628tyZPwO','62951hyroao','40qWIbwJ','65YbFLow','10yARafn','5dhSJvX','6430302rmmWZz','2428QprCdN','813SowSvA','504joqYCy','1606380iOraYE','3956NZOTSk'];a217_0x28f1=function(){return _0x341c03;};return a217_0x28f1();}export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';function a217_0x4e04(_0x4c6f16,_0x3835b6){_0x4c6f16=_0x4c6f16-0xad;var _0x28f175=a217_0x28f1();var _0x4e04c2=_0x28f175[_0x4c6f16];return _0x4e04c2;}export{CommandRunner,createCommandRunner}from'./command-runner.js';
|
package/dist/utils/async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a218_0x292a(){const _0x3ab5c9=['646206GvKber','82iRIBYR','4653yhjSws','284RRUeLY','8796952uMpwlO','25806xODQHe','15890BdioMc','1017971KPaxmN','67075nFhGAu','push','length','14uciukl','23718112rRaFtC'];a218_0x292a=function(){return _0x3ab5c9;};return a218_0x292a();}(function(_0x487bc5,_0x5928ee){const _0x5ac8b2=a218_0x2bf3,_0x2115f7=_0x487bc5();while(!![]){try{const _0x555612=parseInt(_0x5ac8b2(0x80))/0x1+-parseInt(_0x5ac8b2(0x87))/0x2*(-parseInt(_0x5ac8b2(0x7e))/0x3)+-parseInt(_0x5ac8b2(0x7c))/0x4*(-parseInt(_0x5ac8b2(0x81))/0x5)+parseInt(_0x5ac8b2(0x86))/0x6*(parseInt(_0x5ac8b2(0x84))/0x7)+parseInt(_0x5ac8b2(0x7d))/0x8+parseInt(_0x5ac8b2(0x88))/0x9*(-parseInt(_0x5ac8b2(0x7f))/0xa)+-parseInt(_0x5ac8b2(0x85))/0xb;if(_0x555612===_0x5928ee)break;else _0x2115f7['push'](_0x2115f7['shift']());}catch(_0x415200){_0x2115f7['push'](_0x2115f7['shift']());}}}(a218_0x292a,0xa13d2));function a218_0x2bf3(_0x2c4e5b,_0x271c34){_0x2c4e5b=_0x2c4e5b-0x7c;const _0x292a6f=a218_0x292a();let _0x2bf34c=_0x292a6f[_0x2c4e5b];return _0x2bf34c;}export async function batchAsync(_0x1ddb20,_0xcd512c,_0x1e1a43=0xa){const _0x2bf770=a218_0x2bf3,_0x12bd28=[];for(let _0xca818f=0x0;_0xca818f<_0x1ddb20[_0x2bf770(0x83)];_0xca818f+=_0x1e1a43){const _0xe62546=_0x1ddb20['slice'](_0xca818f,_0xca818f+_0x1e1a43),_0x2af809=await Promise['all'](_0xe62546['map'](_0xcd512c));_0x12bd28[_0x2bf770(0x82)](..._0x2af809);}return _0x12bd28;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xf54fd8,_0x419ea0){const _0x1a3217=a219_0x1dda,_0x2d3366=_0xf54fd8();while(!![]){try{const _0x2707c5=-parseInt(_0x1a3217(0xcc))/0x1*(-parseInt(_0x1a3217(0xbd))/0x2)+-parseInt(_0x1a3217(0xd3))/0x3*(-parseInt(_0x1a3217(0xc9))/0x4)+parseInt(_0x1a3217(0xd0))/0x5*(-parseInt(_0x1a3217(0xc5))/0x6)+-parseInt(_0x1a3217(0xbc))/0x7+parseInt(_0x1a3217(0xbe))/0x8*(parseInt(_0x1a3217(0xcd))/0x9)+parseInt(_0x1a3217(0xc8))/0xa+-parseInt(_0x1a3217(0xcb))/0xb;if(_0x2707c5===_0x419ea0)break;else _0x2d3366['push'](_0x2d3366['shift']());}catch(_0x24f826){_0x2d3366['push'](_0x2d3366['shift']());}}}(a219_0x4627,0x837ad));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export function getClaudeConfigDir(){return process.env.CLAUDE_CONFIG_DIR||join(homedir(),'.claude');}function getClaudeJsonPath(){const _0x354162=a219_0x1dda,_0x47f6ba=getClaudeConfigDir(),_0x1b8512=join(_0x47f6ba,_0x354162(0xbf));return existsSync(_0x1b8512)?_0x1b8512:_0x47f6ba+_0x354162(0xd4);}function a219_0x1dda(_0xc5bced,_0x536c62){_0xc5bced=_0xc5bced-0xbc;const _0x462747=a219_0x4627();let _0x1dda9e=_0x462747[_0xc5bced];return _0x1dda9e;}function a219_0x4627(){const _0x2bdf87=['length','mcpServers','6871470Pfyjqx','8fJqnWb','object','2200638ozZUpl','1XjqQpA','9819iQxrRT','string','installed_plugins.json','10435QeyJHl','parse','source','583152JwYFdX','.json','https://github.com/','utf-8','known_marketplaces.json','.mcp.json','943019pkWlqh','613436NtRynk','688zresus','.claude.json','plugins','projects','isArray','repo','url','1734jfSJZx'];a219_0x4627=function(){return _0x2bdf87;};return a219_0x4627();}function readJsonFile(_0x4cec7a){const _0x5d6a85=a219_0x1dda;if(!existsSync(_0x4cec7a))return undefined;try{return JSON[_0x5d6a85(0xd1)](readFileSync(_0x4cec7a,_0x5d6a85(0xd6)));}catch{return undefined;}}function asRecord(_0x467621){const _0x1ef583=a219_0x1dda;return typeof _0x467621===_0x1ef583(0xca)&&_0x467621!==null&&!Array[_0x1ef583(0xc2)](_0x467621)?_0x467621:undefined;}function mcpServerUrl(_0x886cf3,_0x1dd8fc){const _0x194511=a219_0x1dda,_0x3cafed=asRecord(asRecord(_0x886cf3)?.[_0x1dd8fc]);return typeof _0x3cafed?.['url']===_0x194511(0xce)?_0x3cafed['url']:undefined;}export function findMcpServerUrl(_0x5d2701,_0x50e247){const _0x3cfc9f=a219_0x1dda,_0xd3a866=asRecord(readJsonFile(getClaudeJsonPath())),_0x324ab9=asRecord(asRecord(_0xd3a866?.[_0x3cfc9f(0xc1)])?.[_0x50e247]),_0xf328f4=mcpServerUrl(_0x324ab9?.[_0x3cfc9f(0xc7)],_0x5d2701);if(_0xf328f4)return _0xf328f4;const _0x58a74f=mcpServerUrl(_0xd3a866?.[_0x3cfc9f(0xc7)],_0x5d2701);if(_0x58a74f)return _0x58a74f;return mcpServerUrl(asRecord(readJsonFile(join(_0x50e247,_0x3cfc9f(0xd8))))?.[_0x3cfc9f(0xc7)],_0x5d2701);}export function normalizeRepoUrl(_0xe97798){return _0xe97798['trim']()['toLowerCase']()['replace'](/\.git$/,'')['replace'](/\/+$/,'');}export function readMarketplaceSourceUrl(_0x4ac125){const _0x413409=a219_0x1dda,_0x5439e2=join(getClaudeConfigDir(),_0x413409(0xc0),_0x413409(0xd7)),_0x134b1a=asRecord(asRecord(readJsonFile(_0x5439e2))?.[_0x4ac125])?.[_0x413409(0xd2)],_0x3408ca=asRecord(_0x134b1a);if(!_0x3408ca)return undefined;if(typeof _0x3408ca[_0x413409(0xc4)]===_0x413409(0xce))return normalizeRepoUrl(_0x3408ca['url']);if(typeof _0x3408ca[_0x413409(0xc3)]===_0x413409(0xce))return normalizeRepoUrl(_0x413409(0xd5)+_0x3408ca[_0x413409(0xc3)]);return undefined;}export function isPluginInstalled(_0x55d3d1,_0x5192ec){const _0x42824d=a219_0x1dda,_0x346196=join(getClaudeConfigDir(),_0x42824d(0xc0),_0x42824d(0xcf)),_0x1f4ccb=readJsonFile(_0x346196),_0x2a7aa4=_0x1f4ccb?.[_0x42824d(0xc0)]?.[_0x55d3d1+'@'+_0x5192ec];return Array[_0x42824d(0xc2)](_0x2a7aa4)&&_0x2a7aa4[_0x42824d(0xc6)]>0x0;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a220_0x43e83d=a220_0x3fd3;(function(_0x35a622,_0x2b3f46){const _0x4ef597=a220_0x3fd3,_0xb57e47=_0x35a622();while(!![]){try{const _0x226334=-parseInt(_0x4ef597(0xd2))/0x1+parseInt(_0x4ef597(0xe2))/0x2*(parseInt(_0x4ef597(0xeb))/0x3)+-parseInt(_0x4ef597(0xd9))/0x4*(-parseInt(_0x4ef597(0xec))/0x5)+-parseInt(_0x4ef597(0xd5))/0x6*(parseInt(_0x4ef597(0xed))/0x7)+parseInt(_0x4ef597(0xe8))/0x8+parseInt(_0x4ef597(0xd3))/0x9*(-parseInt(_0x4ef597(0xe1))/0xa)+parseInt(_0x4ef597(0xd8))/0xb;if(_0x226334===_0x2b3f46)break;else _0xb57e47['push'](_0xb57e47['shift']());}catch(_0xce5eb2){_0xb57e47['push'](_0xb57e47['shift']());}}}(a220_0x57a5,0x40689));import*as a220_0x534f7d from'chalk';const Chalk=a220_0x534f7d[a220_0x43e83d(0xde)];export function shouldUseColor(_0x2f95ef={}){const _0x593037=a220_0x43e83d;if(_0x2f95ef[_0x593037(0xd7)]===!![])return![];if(_0x2f95ef[_0x593037(0xdf)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process['stdout'][_0x593037(0xe4)]??![];}export function getChalk(_0x213070={}){if(shouldUseColor(_0x213070))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x2b3381,_0x5f316e={}){return getChalk(_0x5f316e)['dim'](_0x2b3381);}export function colorHeader(_0x574362,_0xd947b1={}){return getChalk(_0xd947b1)['cyan'](_0x574362);}export function colorType(_0x3eeb66,_0x39e564={}){return getChalk(_0x39e564)['dim'](_0x3eeb66);}export function colorJSONKey(_0xf9afab,_0x54ea82={}){const _0x56ebbc=a220_0x43e83d;return getChalk(_0x54ea82)[_0x56ebbc(0xe6)](_0xf9afab);}export function colorJSONString(_0x24a896,_0x51e689={}){const _0x284222=a220_0x43e83d;return getChalk(_0x51e689)[_0x284222(0xe3)](_0x24a896);}export function colorJSONNumber(_0x3fa16b,_0x26ff98={}){const _0x508525=a220_0x43e83d;return getChalk(_0x26ff98)[_0x508525(0xe9)](_0x3fa16b);}function a220_0x3fd3(_0x45c20d,_0x3a66a3){_0x45c20d=_0x45c20d-0xd0;const _0x57a5bd=a220_0x57a5();let _0x3fd3c9=_0x57a5bd[_0x45c20d];return _0x3fd3c9;}export function colorJSONBoolean(_0x2aa339,_0x3c02ab={}){const _0xeecf48=a220_0x43e83d;return getChalk(_0x3c02ab)[_0xeecf48(0xef)](_0x2aa339);}export function colorJSONNull(_0x42e995,_0x595b7e={}){const _0x509127=a220_0x43e83d;return getChalk(_0x595b7e)[_0x509127(0xee)](_0x42e995);}function a220_0x57a5(){const _0x2da9d2=['2423815qqfJSH','1708zJockS','dim','yellow','boolean','stringify','274605GgeOQm','1006758MqdOKR','object','9726YNOvGu','join','noColor','4084531HxBrVl','4qBPJkl','string','map','length','isArray','Chalk','color','number','30GBThJM','78sDEgkM','green','isTTY','null','blue','entries','377592tpbvUo','cyan','repeat','28173LkkQiI'];a220_0x57a5=function(){return _0x2da9d2;};return a220_0x57a5();}export function colorizeJSONCompact(_0x1c9609,_0x9e2468={}){const _0x2d7489=a220_0x43e83d;if(!shouldUseColor(_0x9e2468))return JSON[_0x2d7489(0xd1)](_0x1c9609);if(_0x1c9609===null)return colorJSONNull('null',_0x9e2468);if(typeof _0x1c9609===_0x2d7489(0xd0))return colorJSONBoolean(String(_0x1c9609),_0x9e2468);if(typeof _0x1c9609==='number')return colorJSONNumber(String(_0x1c9609),_0x9e2468);if(typeof _0x1c9609===_0x2d7489(0xda))return colorJSONString(JSON[_0x2d7489(0xd1)](_0x1c9609),_0x9e2468);if(Array['isArray'](_0x1c9609)){if(_0x1c9609[_0x2d7489(0xdc)]===0x0)return'[]';const _0x1a8bba=_0x1c9609[_0x2d7489(0xdb)](_0x264175=>colorizeJSONCompact(_0x264175,_0x9e2468));return'['+_0x1a8bba['join'](',')+']';}if(typeof _0x1c9609===_0x2d7489(0xd4)){const _0x46c576=Object[_0x2d7489(0xe7)](_0x1c9609);if(_0x46c576[_0x2d7489(0xdc)]===0x0)return'{}';const _0x5b194d=_0x46c576['map'](([_0x233936,_0x9dc87b])=>{const _0x63d81b=_0x2d7489,_0x325940=colorJSONKey(JSON[_0x63d81b(0xd1)](_0x233936),_0x9e2468),_0x2d1d72=colorizeJSONCompact(_0x9dc87b,_0x9e2468);return _0x325940+':'+_0x2d1d72;});return'{'+_0x5b194d[_0x2d7489(0xd6)](',')+'}';}return String(_0x1c9609);}export function colorizeJSON(_0x130fad,_0x36df90={},_0x383ae0=0x0){const _0x12bcc9=a220_0x43e83d;if(!shouldUseColor(_0x36df90))return JSON['stringify'](_0x130fad,null,0x2);const _0x272997='\x20'[_0x12bcc9(0xea)](_0x383ae0),_0xb64a0a=_0x383ae0+0x2;if(_0x130fad===null)return colorJSONNull(_0x12bcc9(0xe5),_0x36df90);if(typeof _0x130fad===_0x12bcc9(0xd0))return colorJSONBoolean(String(_0x130fad),_0x36df90);if(typeof _0x130fad===_0x12bcc9(0xe0))return colorJSONNumber(String(_0x130fad),_0x36df90);if(typeof _0x130fad===_0x12bcc9(0xda))return colorJSONString(JSON['stringify'](_0x130fad),_0x36df90);if(Array[_0x12bcc9(0xdd)](_0x130fad)){if(_0x130fad[_0x12bcc9(0xdc)]===0x0)return'[]';const _0x28ab25=_0x130fad['map'](_0x4c4d71=>{const _0x15b257=_0x12bcc9,_0x5f2873=colorizeJSON(_0x4c4d71,_0x36df90,_0xb64a0a);return''+'\x20'[_0x15b257(0xea)](_0xb64a0a)+_0x5f2873;});return'[\x0a'+_0x28ab25['join'](',\x0a')+('\x0a'+_0x272997+']');}if(typeof _0x130fad===_0x12bcc9(0xd4)){const _0x43bfea=Object[_0x12bcc9(0xe7)](_0x130fad);if(_0x43bfea[_0x12bcc9(0xdc)]===0x0)return'{}';const _0xd1dd4c=_0x43bfea[_0x12bcc9(0xdb)](([_0x154e78,_0x16b587])=>{const _0x52836a=_0x12bcc9,_0x19f448=colorJSONKey(JSON[_0x52836a(0xd1)](_0x154e78),_0x36df90),_0xcd665d=colorizeJSON(_0x16b587,_0x36df90,_0xb64a0a);return''+'\x20'[_0x52836a(0xea)](_0xb64a0a)+_0x19f448+':\x20'+_0xcd665d;});return'{\x0a'+_0xd1dd4c['join'](',\x0a')+('\x0a'+_0x272997+'}');}return String(_0x130fad);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x31591a,_0x205974){const _0x432a2f=a221_0x54d9,_0x5b2b72=_0x31591a();while(!![]){try{const _0x27f17e=-parseInt(_0x432a2f(0xba))/0x1+parseInt(_0x432a2f(0xab))/0x2+parseInt(_0x432a2f(0xb9))/0x3*(-parseInt(_0x432a2f(0xb0))/0x4)+parseInt(_0x432a2f(0xa7))/0x5+parseInt(_0x432a2f(0xb3))/0x6*(parseInt(_0x432a2f(0xc4))/0x7)+-parseInt(_0x432a2f(0xac))/0x8+parseInt(_0x432a2f(0xb5))/0x9;if(_0x27f17e===_0x205974)break;else _0x5b2b72['push'](_0x5b2b72['shift']());}catch(_0xe7e4c9){_0x5b2b72['push'](_0x5b2b72['shift']());}}}(a221_0x45fc,0x3d700));import a221_0x33df6c from'chalk';function a221_0x45fc(){const _0x443d33=['2001384NfaqvE','content','some','green','88560ChrrLM','removed','\x20-\x20','894546YjXfYO','add','3084534IYtLGe','unshift','length','size','30letYOO','359156uaNIFi','fill','red','\x20\x20\x20','push','unchanged','old','added','min','has','7RqPGIl','max','new','padStart','repeat','forEach','\x20\x20...','1222670NrBOFg','type','split','map','692052qRweAG'];a221_0x45fc=function(){return _0x443d33;};return a221_0x45fc();}export function generateDiff(_0x4747fb,_0x5a8de9){const _0x3644cf=a221_0x54d9,_0xafc660=_0x4747fb[_0x3644cf(0xa9)]('\x0a'),_0x439862=_0x5a8de9[_0x3644cf(0xa9)]('\x0a'),_0x1fb01e=[],_0x1a63e3=computeLCS(_0xafc660,_0x439862);let _0x39da92=0x0,_0x3db246=0x0,_0x40bcb5=0x0;while(_0x39da92<_0xafc660[_0x3644cf(0xb7)]||_0x3db246<_0x439862[_0x3644cf(0xb7)]){if(_0x40bcb5<_0x1a63e3['length']&&_0x39da92<_0xafc660[_0x3644cf(0xb7)]&&_0xafc660[_0x39da92]===_0x1a63e3[_0x40bcb5])_0x3db246<_0x439862[_0x3644cf(0xb7)]&&_0x439862[_0x3db246]===_0x1a63e3[_0x40bcb5]?(_0x1fb01e['push']({'type':_0x3644cf(0xbf),'content':_0xafc660[_0x39da92]}),_0x39da92++,_0x3db246++,_0x40bcb5++):(_0x1fb01e['push']({'type':_0x3644cf(0xc1),'content':_0x439862[_0x3db246]}),_0x3db246++);else{if(_0x40bcb5<_0x1a63e3[_0x3644cf(0xb7)]&&_0x3db246<_0x439862[_0x3644cf(0xb7)]&&_0x439862[_0x3db246]===_0x1a63e3[_0x40bcb5])_0x1fb01e[_0x3644cf(0xbe)]({'type':'removed','content':_0xafc660[_0x39da92]}),_0x39da92++;else{if(_0x39da92<_0xafc660[_0x3644cf(0xb7)]&&(_0x40bcb5>=_0x1a63e3['length']||_0xafc660[_0x39da92]!==_0x1a63e3[_0x40bcb5]))_0x1fb01e[_0x3644cf(0xbe)]({'type':_0x3644cf(0xb1),'content':_0xafc660[_0x39da92]}),_0x39da92++;else _0x3db246<_0x439862[_0x3644cf(0xb7)]&&(_0x1fb01e[_0x3644cf(0xbe)]({'type':'added','content':_0x439862[_0x3db246]}),_0x3db246++);}}}return _0x1fb01e;}function computeLCS(_0x113535,_0x3572b0){const _0x4c13ad=a221_0x54d9,_0x52743f=_0x113535[_0x4c13ad(0xb7)],_0x121243=_0x3572b0[_0x4c13ad(0xb7)],_0x5d7708=Array(_0x52743f+0x1)[_0x4c13ad(0xbb)](null)[_0x4c13ad(0xaa)](()=>Array(_0x121243+0x1)[_0x4c13ad(0xbb)](0x0));for(let _0x1cd506=0x1;_0x1cd506<=_0x52743f;_0x1cd506++){for(let _0x3e0a99=0x1;_0x3e0a99<=_0x121243;_0x3e0a99++){_0x113535[_0x1cd506-0x1]===_0x3572b0[_0x3e0a99-0x1]?_0x5d7708[_0x1cd506][_0x3e0a99]=_0x5d7708[_0x1cd506-0x1][_0x3e0a99-0x1]+0x1:_0x5d7708[_0x1cd506][_0x3e0a99]=Math[_0x4c13ad(0xc5)](_0x5d7708[_0x1cd506-0x1][_0x3e0a99],_0x5d7708[_0x1cd506][_0x3e0a99-0x1]);}}const _0x169c7c=[];let _0x5f38b2=_0x52743f,_0x53912a=_0x121243;while(_0x5f38b2>0x0&&_0x53912a>0x0){if(_0x113535[_0x5f38b2-0x1]===_0x3572b0[_0x53912a-0x1])_0x169c7c[_0x4c13ad(0xb6)](_0x113535[_0x5f38b2-0x1]),_0x5f38b2--,_0x53912a--;else _0x5d7708[_0x5f38b2-0x1][_0x53912a]>_0x5d7708[_0x5f38b2][_0x53912a-0x1]?_0x5f38b2--:_0x53912a--;}return _0x169c7c;}function a221_0x54d9(_0x2d9c7c,_0x5f5d42){_0x2d9c7c=_0x2d9c7c-0xa4;const _0x45fcb1=a221_0x45fc();let _0x54d984=_0x45fcb1[_0x2d9c7c];return _0x54d984;}export function formatDiffWithColors(_0x2bfaf4,_0x306f89=0x3){const _0x172347=a221_0x54d9,_0x4741ba=new Set();_0x2bfaf4[_0x172347(0xa5)]((_0x5cf66c,_0x56ac16)=>{const _0x52ec36=_0x172347;_0x5cf66c[_0x52ec36(0xa8)]!==_0x52ec36(0xbf)&&_0x4741ba[_0x52ec36(0xb4)](_0x56ac16);});if(_0x4741ba[_0x172347(0xb8)]===0x0)return'';const _0x112282=new Set();for(const _0x1ba565 of _0x4741ba){for(let _0x99bb14=Math[_0x172347(0xc5)](0x0,_0x1ba565-_0x306f89);_0x99bb14<=Math[_0x172347(0xc2)](_0x2bfaf4[_0x172347(0xb7)]-0x1,_0x1ba565+_0x306f89);_0x99bb14++){_0x112282[_0x172347(0xb4)](_0x99bb14);}}const _0x4779c5=[];let _0x3bedc1=-0x1;const _0x188166=_0x2bfaf4[_0x172347(0xb7)],_0x37cd2f=Math[_0x172347(0xc5)](0x3,String(_0x188166)[_0x172347(0xb7)]),_0x27e599=[];let _0x5af8ca=0x0,_0x1c35fa=0x0;for(const _0x4b0b6f of _0x2bfaf4){if(_0x4b0b6f[_0x172347(0xa8)]==='removed')_0x5af8ca++,_0x27e599['push']({'old':_0x5af8ca,'new':0x0});else _0x4b0b6f['type']===_0x172347(0xc1)?(_0x1c35fa++,_0x27e599[_0x172347(0xbe)]({'old':0x0,'new':_0x1c35fa})):(_0x5af8ca++,_0x1c35fa++,_0x27e599[_0x172347(0xbe)]({'old':_0x5af8ca,'new':_0x1c35fa}));}for(let _0x39758a=0x0;_0x39758a<_0x2bfaf4['length'];_0x39758a++){if(!_0x112282[_0x172347(0xc3)](_0x39758a))continue;_0x3bedc1!==-0x1&&_0x39758a>_0x3bedc1+0x1&&_0x4779c5[_0x172347(0xbe)](a221_0x33df6c['cyan'](_0x172347(0xa6)));_0x3bedc1=_0x39758a;const _0x5c0304=_0x2bfaf4[_0x39758a],_0x45c2fa=_0x27e599[_0x39758a],_0xb713d7=_0x45c2fa[_0x172347(0xc0)]>0x0?String(_0x45c2fa[_0x172347(0xc0)])['padStart'](_0x37cd2f):'\x20'['repeat'](_0x37cd2f),_0x179b7c=_0x45c2fa[_0x172347(0xc6)]>0x0?String(_0x45c2fa[_0x172347(0xc6)])[_0x172347(0xc7)](_0x37cd2f):'\x20'[_0x172347(0xa4)](_0x37cd2f);switch(_0x5c0304[_0x172347(0xa8)]){case _0x172347(0xb1):_0x4779c5['push'](a221_0x33df6c[_0x172347(0xbc)](_0xb713d7+'\x20'+_0x179b7c+_0x172347(0xb2)+_0x5c0304[_0x172347(0xad)]));break;case'added':_0x4779c5[_0x172347(0xbe)](a221_0x33df6c[_0x172347(0xaf)](_0xb713d7+'\x20'+_0x179b7c+'\x20+\x20'+_0x5c0304[_0x172347(0xad)]));break;default:_0x4779c5[_0x172347(0xbe)](a221_0x33df6c['dim'](_0xb713d7+'\x20'+_0x179b7c+_0x172347(0xbd)+_0x5c0304[_0x172347(0xad)]));break;}}return _0x4779c5['join']('\x0a');}export function hasChanges(_0x1351f2){const _0x2175f8=a221_0x54d9;return _0x1351f2[_0x2175f8(0xae)](_0x27b722=>_0x27b722[_0x2175f8(0xa8)]!==_0x2175f8(0xbf));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a222_0x276e(_0xa45fd6,_0xd439a2){_0xa45fd6=_0xa45fd6-0x1d7;const _0xedc771=a222_0xedc7();let _0x276e0c=_0xedc771[_0xa45fd6];return _0x276e0c;}(function(_0x18bfc0,_0x3b89d1){const _0x449436=a222_0x276e,_0x3c5602=_0x18bfc0();while(!![]){try{const _0x5e53f7=-parseInt(_0x449436(0x1dc))/0x1+parseInt(_0x449436(0x1d7))/0x2*(-parseInt(_0x449436(0x1d9))/0x3)+-parseInt(_0x449436(0x1de))/0x4*(parseInt(_0x449436(0x1e5))/0x5)+-parseInt(_0x449436(0x1e3))/0x6+-parseInt(_0x449436(0x1db))/0x7+-parseInt(_0x449436(0x1e0))/0x8*(-parseInt(_0x449436(0x1df))/0x9)+-parseInt(_0x449436(0x1eb))/0xa*(-parseInt(_0x449436(0x1e4))/0xb);if(_0x5e53f7===_0x3b89d1)break;else _0x3c5602['push'](_0x3c5602['shift']());}catch(_0x2b46b1){_0x3c5602['push'](_0x3c5602['shift']());}}}(a222_0xedc7,0x5cb6f));import*as a222_0x492f68 from'node:fs';import*as a222_0x4c87ef from'node:path';export function setSecureFilePermissions(_0x316552){const _0x40701f=a222_0x276e;try{a222_0x492f68[_0x40701f(0x1da)](_0x316552,0x180);}catch{console[_0x40701f(0x1dd)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x316552);}}export function setSecureDirectoryPermissions(_0x298430){const _0x1e4f6a=a222_0x276e;try{a222_0x492f68[_0x1e4f6a(0x1da)](_0x298430,0x1c0);}catch{console['warn']('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x298430);}}function a222_0xedc7(){const _0x171cd3=[').\x20','Should\x20be\x200600\x20or\x20more\x20restrictive.','mode','\x20has\x20insecure\x20permissions\x20(','846610eXAvga','4814EhgKgo','mkdirSync','543eFpezz','chmodSync','3712758AiQzqR','255120OptJpi','warn','28edpGcu','41481YLxZlz','824tXjcak','existsSync','dirname','3484482opSxCV','319RPtspS','534435ByPFVK','statSync'];a222_0xedc7=function(){return _0x171cd3;};return a222_0xedc7();}export function createSecureDirectory(_0x299444){const _0x44bd9f=a222_0x276e;!a222_0x492f68[_0x44bd9f(0x1e1)](_0x299444)&&(a222_0x492f68[_0x44bd9f(0x1d8)](_0x299444,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x299444));}export function validateSecureFilePermissions(_0x1e65cc){const _0x248b46=a222_0x276e;try{const _0x415013=a222_0x492f68[_0x248b46(0x1e6)](_0x1e65cc),_0xfe0bd9=_0x415013[_0x248b46(0x1e9)]&0x1ff,_0xb54c6=(_0xfe0bd9&0x3f)!==0x0;if(_0xb54c6)return console[_0x248b46(0x1dd)]('Warning:\x20'+_0x1e65cc+_0x248b46(0x1ea)+_0xfe0bd9['toString'](0x8)+_0x248b46(0x1e7)+_0x248b46(0x1e8)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x650f95,_0xdb9980){const _0x426130=a222_0x276e,_0x1eb43d=a222_0x4c87ef[_0x426130(0x1e2)](_0x650f95);createSecureDirectory(_0x1eb43d),a222_0x492f68['writeFileSync'](_0x650f95,_0xdb9980,{'mode':0x180}),setSecureFilePermissions(_0x650f95);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x19c222,_0x50c82e){const _0xefdb07=a223_0xe3ac,_0x53be42=_0x19c222();while(!![]){try{const _0x686594=-parseInt(_0xefdb07(0x15d))/0x1*(parseInt(_0xefdb07(0x158))/0x2)+parseInt(_0xefdb07(0x152))/0x3*(parseInt(_0xefdb07(0x160))/0x4)+parseInt(_0xefdb07(0x161))/0x5*(parseInt(_0xefdb07(0x162))/0x6)+parseInt(_0xefdb07(0x163))/0x7+-parseInt(_0xefdb07(0x15e))/0x8*(parseInt(_0xefdb07(0x155))/0x9)+-parseInt(_0xefdb07(0x15a))/0xa+-parseInt(_0xefdb07(0x156))/0xb*(-parseInt(_0xefdb07(0x157))/0xc);if(_0x686594===_0x50c82e)break;else _0x53be42['push'](_0x53be42['shift']());}catch(_0x3a679e){_0x53be42['push'](_0x53be42['shift']());}}}(a223_0x32d0,0xc320b));import{readFileSync}from'fs';function a223_0xe3ac(_0x2055b8,_0x560dcc){_0x2055b8=_0x2055b8-0x152;const _0x32d090=a223_0x32d0();let _0xe3ac92=_0x32d090[_0x2055b8];return _0xe3ac92;}function a223_0x32d0(){const _0x3d9ee7=['code','message','8YdZtCD','232vCgZcD','NOT_FOUND','4IOvjIy','5165rjSLrJ','5196XcixoD','6568009bXKgZT','Permission\x20denied\x20reading\x20file\x20\x27','ENOENT','315567IoRtYq','PERMISSION_DENIED','utf-8','245925kzoUmz','12672902iiaydk','12DvJBNh','58096uDItzz','\x27\x20not\x20found','12660840WevRNA'];a223_0x32d0=function(){return _0x3d9ee7;};return a223_0x32d0();}import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x4a863c){const _0x3840ee=a223_0xe3ac;try{return readFileSync(_0x4a863c,_0x3840ee(0x154));}catch(_0x2e7be1){const _0x1ed0ca=_0x2e7be1[_0x3840ee(0x15b)];if(_0x1ed0ca===_0x3840ee(0x165))throw new SDKError(ErrorCode[_0x3840ee(0x15f)],'File\x20\x27'+_0x4a863c+_0x3840ee(0x159),_0x2e7be1);else{if(_0x1ed0ca==='EACCES')throw new SDKError(ErrorCode[_0x3840ee(0x153)],_0x3840ee(0x164)+_0x4a863c+'\x27',_0x2e7be1);else throw new SDKError(ErrorCode['INTERNAL'],'Error\x20reading\x20file\x20\x27'+_0x4a863c+'\x27:\x20'+_0x2e7be1[_0x3840ee(0x15c)],_0x2e7be1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a224_0x3d4e(){const _0xcdc4c7=['find','get','19686NtoXZs','13161610ktaGvs','603zdIpJr','now','error','set','82864YXymTI','data','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','2478114KNlAgI','statusCode','releases','tag_name','1lZgjsT','fetchedAt','1426466fwtUwG','/releases?per_page=20','/repos/','1981UdIKvj','4112190XTAMOD','448484HvWOUn','10bEBqyd','GitHub\x20API\x20returned\x20','end','toString','timeout','next','parse'];a224_0x3d4e=function(){return _0xcdc4c7;};return a224_0x3d4e();}(function(_0x4b86a6,_0x1ab7bb){const _0x1876d9=a224_0x2307,_0x10eb46=_0x4b86a6();while(!![]){try{const _0x45f8c8=parseInt(_0x1876d9(0x1c6))/0x1*(parseInt(_0x1876d9(0x1c8))/0x2)+-parseInt(_0x1876d9(0x1c2))/0x3+parseInt(_0x1876d9(0x1cd))/0x4*(-parseInt(_0x1876d9(0x1ce))/0x5)+-parseInt(_0x1876d9(0x1d7))/0x6*(-parseInt(_0x1876d9(0x1cb))/0x7)+-parseInt(_0x1876d9(0x1dd))/0x8*(-parseInt(_0x1876d9(0x1d9))/0x9)+parseInt(_0x1876d9(0x1cc))/0xa+-parseInt(_0x1876d9(0x1d8))/0xb;if(_0x45f8c8===_0x1ab7bb)break;else _0x10eb46['push'](_0x10eb46['shift']());}catch(_0x358510){_0x10eb46['push'](_0x10eb46['shift']());}}}(a224_0x3d4e,0x7a1cb));import*as a224_0x55720f from'node:https';function a224_0x2307(_0x11071,_0x1e34aa){_0x11071=_0x11071-0x1c1;const _0x3d4e9d=a224_0x3d4e();let _0x2307e5=_0x3d4e9d[_0x11071];return _0x2307e5;}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x58e11f,_0x1d3fa4,_0x26e552){const _0x27c45f=a224_0x2307,_0x3be448=_0x58e11f+'/'+_0x1d3fa4,_0x528a99=cache[_0x27c45f(0x1d6)](_0x3be448);if(_0x528a99&&Date[_0x27c45f(0x1da)]()-_0x528a99[_0x27c45f(0x1c7)]<CACHE_TTL_MS)return Promise['resolve'](_0x528a99[_0x27c45f(0x1c4)]);return new Promise((_0xe5f04d,_0x4c4e22)=>{const _0x3a02b3=_0x27c45f,_0x349680={'hostname':'api.github.com','path':_0x3a02b3(0x1ca)+_0x58e11f+'/'+_0x1d3fa4+_0x3a02b3(0x1c9),'headers':{'User-Agent':_0x26e552,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x5b83dc=a224_0x55720f[_0x3a02b3(0x1d6)](_0x349680,_0x2d2322=>{const _0x2c2d16=_0x3a02b3;let _0x5c1a79='';_0x2d2322['on'](_0x2c2d16(0x1de),_0x197d60=>{const _0x1ff919=_0x2c2d16;_0x5c1a79+=_0x197d60[_0x1ff919(0x1d1)]();}),_0x2d2322['on'](_0x2c2d16(0x1d0),()=>{const _0x1b6db8=_0x2c2d16;if(_0x2d2322[_0x1b6db8(0x1c3)]!==0xc8){_0x4c4e22(new Error(_0x1b6db8(0x1cf)+_0x2d2322[_0x1b6db8(0x1c3)]+':\x20'+_0x5c1a79['slice'](0x0,0xc8)));return;}try{const _0x3dff5d=JSON[_0x1b6db8(0x1d4)](_0x5c1a79);cache[_0x1b6db8(0x1dc)](_0x3be448,{'releases':_0x3dff5d,'fetchedAt':Date['now']()}),_0xe5f04d(_0x3dff5d);}catch(_0x464bb2){_0x4c4e22(_0x464bb2);}});});_0x5b83dc['on'](_0x3a02b3(0x1d2),()=>{const _0x3fd142=_0x3a02b3;_0x5b83dc['destroy'](),_0x4c4e22(new Error(_0x3fd142(0x1c1)+REQUEST_TIMEOUT_MS+'ms'));}),_0x5b83dc['on'](_0x3a02b3(0x1db),_0x4c4e22);});}export async function resolveReleaseTag(_0x50946e,_0x38477c,_0x46fe4f,_0x1ab0c8){const _0x2b62f3=a224_0x2307;if(_0x50946e===_0x2b62f3(0x1d3))return null;const _0x54b830=await fetchGitHubReleases(_0x38477c,_0x46fe4f,_0x1ab0c8);if(_0x54b830['length']===0x0)return null;const _0x401261=_0x54b830[_0x2b62f3(0x1d5)](_0x5cc2a2=>!_0x5cc2a2['prerelease']);return _0x401261?_0x401261[_0x2b62f3(0x1c5)]:null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x47376a,_0xb85d7){const _0x12afc8=a225_0x42fa,_0x48024e=_0x47376a();while(!![]){try{const _0xad9055=parseInt(_0x12afc8(0x1a7))/0x1+-parseInt(_0x12afc8(0x1ae))/0x2+parseInt(_0x12afc8(0x1ac))/0x3*(parseInt(_0x12afc8(0x19a))/0x4)+-parseInt(_0x12afc8(0x1a9))/0x5+-parseInt(_0x12afc8(0x19c))/0x6+parseInt(_0x12afc8(0x1ad))/0x7*(-parseInt(_0x12afc8(0x1a0))/0x8)+-parseInt(_0x12afc8(0x19d))/0x9*(-parseInt(_0x12afc8(0x1a8))/0xa);if(_0xad9055===_0xb85d7)break;else _0x48024e['push'](_0x48024e['shift']());}catch(_0x336522){_0x48024e['push'](_0x48024e['shift']());}}}(a225_0x247d,0xa7fa8));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x32d9e2=a225_0x42fa;return process.env.TDX_CACHE_DIR||join(homedir(),_0x32d9e2(0x1a1),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x5b48a5,_0x17ab2e){const _0x57bfb2=a225_0x42fa,_0x3d92e3=registry[_0x57bfb2(0x1a5)](_0x5b48a5);if(_0x3d92e3&&_0x3d92e3!==_0x17ab2e)throw new Error(_0x57bfb2(0x1ab)+_0x5b48a5+_0x57bfb2(0x1a3)+_0x3d92e3+_0x57bfb2(0x1a6)+_0x17ab2e+'\x22');registry['set'](_0x5b48a5,_0x17ab2e);}export function getGlobalCachePath(_0x47cecd){return join(getGlobalCacheDir(),_0x47cecd);}function ensureGlobalCacheDir(){const _0x23dd78=getGlobalCacheDir();!existsSync(_0x23dd78)&&mkdirSync(_0x23dd78,{'recursive':!![]});}function readCacheJson(_0x33a8c4){const _0x2a32b7=a225_0x42fa,_0x1fc5b1=getGlobalCachePath(_0x33a8c4);if(!existsSync(_0x1fc5b1))return undefined;try{const _0x391b52=readFileSync(_0x1fc5b1,_0x2a32b7(0x19f));return JSON[_0x2a32b7(0x19b)](_0x391b52);}catch{return undefined;}}function writeCacheJson(_0x1ba715,_0x1e19c6){const _0x5eb7d8=a225_0x42fa;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1ba715),JSON['stringify'](_0x1e19c6,null,0x2),_0x5eb7d8(0x19f));}function readCacheText(_0x52f29f){const _0x2a6fb6=a225_0x42fa,_0x5620bc=getGlobalCachePath(_0x52f29f);if(!existsSync(_0x5620bc))return undefined;try{return readFileSync(_0x5620bc,_0x2a6fb6(0x19f));}catch{return undefined;}}function a225_0x42fa(_0x101a3c,_0x1ce895){_0x101a3c=_0x101a3c-0x19a;const _0x247d4e=a225_0x247d();let _0x42fabe=_0x247d4e[_0x101a3c];return _0x42fabe;}function writeCacheText(_0x17940c,_0x48fb18){const _0x3afa19=a225_0x42fa;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x17940c),_0x48fb18,_0x3afa19(0x19f));}function clearCache(_0x7c24e3){const _0x434311=getGlobalCachePath(_0x7c24e3);if(existsSync(_0x434311))try{unlinkSync(_0x434311);}catch{}}function cacheExists(_0x5949eb){return existsSync(getGlobalCachePath(_0x5949eb));}export function createGlobalCache(_0x6374e2,_0x33c1c8){return registerGlobalCacheKey(_0x6374e2,_0x33c1c8),{'read':()=>readCacheJson(_0x6374e2),'write':_0x3f9674=>writeCacheJson(_0x6374e2,_0x3f9674),'clear':()=>clearCache(_0x6374e2),'exists':()=>cacheExists(_0x6374e2),'path':()=>getGlobalCachePath(_0x6374e2)};}export function createGlobalTextCache(_0x5c3bc7,_0x240817){const _0x4b118e=a225_0x42fa;return registerGlobalCacheKey(_0x5c3bc7,_0x240817),{'read':()=>readCacheText(_0x5c3bc7)?.[_0x4b118e(0x19e)]()||undefined,'write':_0xadee79=>writeCacheText(_0x5c3bc7,_0xadee79),'clear':()=>clearCache(_0x5c3bc7),'exists':()=>cacheExists(_0x5c3bc7),'path':()=>getGlobalCachePath(_0x5c3bc7)};}export function createProfileCache(_0x1f1ca8,_0x26f9e3){const _0x1cdbca=_0x12e16b=>{const _0x227ccb=a225_0x42fa,_0x5d08ba=_0x12e16b||_0x227ccb(0x1aa);return _0x1f1ca8['replace'](_0x227ccb(0x1a2),_0x5d08ba);};return{'read':_0xdd9f5f=>{const _0x1517cf=_0x1cdbca(_0xdd9f5f);return registerGlobalCacheKey(_0x1517cf,_0x26f9e3),readCacheJson(_0x1517cf);},'write':(_0xd02b7f,_0x19e19c)=>{const _0x4fdad9=_0x1cdbca(_0xd02b7f);registerGlobalCacheKey(_0x4fdad9,_0x26f9e3),writeCacheJson(_0x4fdad9,_0x19e19c);},'clear':_0x3d51be=>{const _0xd9d6fb=_0x1cdbca(_0x3d51be);clearCache(_0xd9d6fb);},'exists':_0x493983=>{const _0x3697f5=_0x1cdbca(_0x493983);return cacheExists(_0x3697f5);},'path':_0xf1b37=>{const _0x2700bf=_0x1cdbca(_0xf1b37);return getGlobalCachePath(_0x2700bf);}};}function a225_0x247d(){const _0x5396ee=['750129wZxDSA','6950hsMAun','3156470tlHRNO','default','Global\x20cache\x20key\x20\x22','9WKpDZi','287iRtMiJ','774210xyKuQr','1408564ycqNkf','parse','2668356eMRQEl','12510XcQJKB','trim','utf-8','121256pzXitb','.cache','{profile}','\x22\x20already\x20registered\x20by\x20\x22','clear','get','\x22,\x20cannot\x20register\x20for\x20\x22'];a225_0x247d=function(){return _0x5396ee;};return a225_0x247d();}export function createOptionalProfileCache(_0x56a85d,_0x5d5ff8,_0x8a5a9a={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x8a5a9a,_0xf9094c=_0x59148b=>{return _0x59148b?''+_0x56a85d+profileSeparator+_0x59148b+suffix:''+_0x56a85d+suffix;};return{'read':_0x19601d=>{const _0x358311=_0xf9094c(_0x19601d);return registerGlobalCacheKey(_0x358311,_0x5d5ff8),readCacheJson(_0x358311);},'write':(_0x47c772,_0x587b87)=>{const _0x85d496=_0xf9094c(_0x587b87);registerGlobalCacheKey(_0x85d496,_0x5d5ff8),writeCacheJson(_0x85d496,_0x47c772);},'clear':_0x35fc9c=>{const _0x45483e=_0xf9094c(_0x35fc9c);clearCache(_0x45483e);},'exists':_0x4e253c=>{const _0x5080ea=_0xf9094c(_0x4e253c);return cacheExists(_0x5080ea);},'path':_0x49659e=>{const _0x48554c=_0xf9094c(_0x49659e);return getGlobalCachePath(_0x48554c);}};}export function clearGlobalRegistry(){const _0x1ff674=a225_0x42fa;registry[_0x1ff674(0x1a4)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x11374,_0x5777e2){const _0xcf2844=a226_0x929d,_0x58b091=_0x11374();while(!![]){try{const _0x230f1b=parseInt(_0xcf2844(0xeb))/0x1*(parseInt(_0xcf2844(0xe1))/0x2)+parseInt(_0xcf2844(0xf2))/0x3*(parseInt(_0xcf2844(0xe3))/0x4)+parseInt(_0xcf2844(0xee))/0x5+-parseInt(_0xcf2844(0xf0))/0x6*(-parseInt(_0xcf2844(0xe6))/0x7)+parseInt(_0xcf2844(0xe8))/0x8+parseInt(_0xcf2844(0xe7))/0x9*(-parseInt(_0xcf2844(0xd9))/0xa)+-parseInt(_0xcf2844(0xe2))/0xb;if(_0x230f1b===_0x5777e2)break;else _0x58b091['push'](_0x58b091['shift']());}catch(_0x521f65){_0x58b091['push'](_0x58b091['shift']());}}}(a226_0x3fc8,0x767aa));function a226_0x3fc8(){const _0x5eeeb2=['NOT_FOUND','parse','2ONUCGJ','24202387zQbsoq','8baJLsR','PERMISSION_DENIED','Failed\x20to\x20load\x20JSON:\x20','400022MPzABE','198594zXrVOW','4650256uvCrfS','ENOENT','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','875283XOizar','\x27:\x20','EACCES','4248890QIYETK','message','66LxmmGB','Invalid\x20JSON\x20string:\x20','287817WJWuyj','INTERNAL','200QMrsVo','File\x20not\x20found:\x20','code','INVALID_ARGUMENT','Permission\x20denied\x20reading\x20file:\x20','Invalid\x20JSON\x20in\x20file\x20\x27'];a226_0x3fc8=function(){return _0x5eeeb2;};return a226_0x3fc8();}function a226_0x929d(_0x1fbf66,_0x543363){_0x1fbf66=_0x1fbf66-0xd9;const _0x3fc8fe=a226_0x3fc8();let _0x929d8=_0x3fc8fe[_0x1fbf66];return _0x929d8;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x2f669c,_0x6af016){const _0x10d62a=a226_0x929d;try{if(_0x6af016){const _0x47e0b1=await readFile(_0x2f669c,'utf-8');try{return JSON[_0x10d62a(0xe0)](_0x47e0b1);}catch(_0x273d35){throw new SDKError(ErrorCode[_0x10d62a(0xdc)],_0x10d62a(0xde)+_0x2f669c+_0x10d62a(0xec)+(_0x273d35 instanceof Error?_0x273d35[_0x10d62a(0xef)]:String(_0x273d35)));}}else try{return JSON['parse'](_0x2f669c);}catch(_0x220d57){throw new SDKError(ErrorCode[_0x10d62a(0xdc)],_0x10d62a(0xf1)+(_0x220d57 instanceof Error?_0x220d57[_0x10d62a(0xef)]:String(_0x220d57)));}}catch(_0x83a322){if(_0x83a322 instanceof SDKError)throw _0x83a322;if(_0x83a322 instanceof Error&&_0x10d62a(0xdb)in _0x83a322){const _0x2d370e=_0x83a322;if(_0x2d370e[_0x10d62a(0xdb)]===_0x10d62a(0xe9))throw new SDKError(ErrorCode[_0x10d62a(0xdf)],_0x10d62a(0xda)+_0x2f669c);else{if(_0x2d370e[_0x10d62a(0xdb)]===_0x10d62a(0xed))throw new SDKError(ErrorCode[_0x10d62a(0xe4)],_0x10d62a(0xdd)+_0x2f669c);}}throw new SDKError(ErrorCode[_0x10d62a(0xf3)],_0x10d62a(0xe5)+(_0x83a322 instanceof Error?_0x83a322[_0x10d62a(0xef)]:String(_0x83a322)));}}export async function loadJSONFromOptions(_0x490b3b,_0x15a6ab){const _0x585edf=a226_0x929d;if(_0x490b3b&&_0x15a6ab)throw new SDKError(ErrorCode[_0x585edf(0xdc)],_0x585edf(0xea));if(_0x490b3b)return await loadJSON(_0x490b3b,![]);if(_0x15a6ab)return await loadJSON(_0x15a6ab,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a227_0xebaf03=a227_0xbf63;(function(_0x39a653,_0x61d5d){const _0x2858c0=a227_0xbf63,_0x5dd445=_0x39a653();while(!![]){try{const _0x414325=parseInt(_0x2858c0(0x1a4))/0x1*(-parseInt(_0x2858c0(0x1a0))/0x2)+parseInt(_0x2858c0(0x1a5))/0x3+-parseInt(_0x2858c0(0x1b3))/0x4*(parseInt(_0x2858c0(0x1a2))/0x5)+-parseInt(_0x2858c0(0x1a1))/0x6+parseInt(_0x2858c0(0x19e))/0x7*(-parseInt(_0x2858c0(0x1a7))/0x8)+parseInt(_0x2858c0(0x1ad))/0x9*(parseInt(_0x2858c0(0x1ac))/0xa)+parseInt(_0x2858c0(0x1a3))/0xb*(parseInt(_0x2858c0(0x1ae))/0xc);if(_0x414325===_0x61d5d)break;else _0x5dd445['push'](_0x5dd445['shift']());}catch(_0x5efafc){_0x5dd445['push'](_0x5dd445['shift']());}}}(a227_0x366a,0x4ef43));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a227_0xebaf03(0x1a8),registry=new Map();export function registerCacheKey(_0xf89414,_0x345638){const _0x4cfa43=a227_0xebaf03,_0x35466e=registry[_0x4cfa43(0x1b0)](_0xf89414);if(_0x35466e&&_0x35466e!==_0x345638)throw new Error('Cache\x20key\x20\x22'+_0xf89414+_0x4cfa43(0x1a6)+_0x35466e+_0x4cfa43(0x19f)+_0x345638+'\x22');registry[_0x4cfa43(0x1b4)](_0xf89414,_0x345638);}export function getCacheDir(){const _0x17bf50=a227_0xebaf03,_0x426a80=process[_0x17bf50(0x1af)](),_0x34c0ba=_0x426a80===parse(_0x426a80)[_0x17bf50(0x1a9)]?homedir():_0x426a80;return join(_0x34c0ba,LOCAL_CACHE_DIR);}export function getCachePath(_0xad8993){return join(getCacheDir(),_0xad8993);}function ensureCacheDir(){const _0x20a60b=getCacheDir();!existsSync(_0x20a60b)&&mkdirSync(_0x20a60b,{'recursive':!![]});}function readCacheJson(_0x3d06e4){const _0x55a459=a227_0xebaf03,_0x3dcc68=getCachePath(_0x3d06e4);if(!existsSync(_0x3dcc68))return undefined;try{const _0x383030=readFileSync(_0x3dcc68,'utf-8');return JSON[_0x55a459(0x1aa)](_0x383030);}catch{return undefined;}}function a227_0x366a(){const _0x25e441=['\x22,\x20cannot\x20register\x20for\x20\x22','17894mTuqqW','2661738FlWfyk','869930FSNGaQ','11XhZSih','55zFgOWp','966309sFBKvS','\x22\x20already\x20registered\x20by\x20\x22','80NvAnsm','.cache/tdx','root','parse','trim','1271390JbeEmo','9PkItGr','18495564agMngf','cwd','get','clear','utf-8','4vJLjNq','set','390215TrWHHV'];a227_0x366a=function(){return _0x25e441;};return a227_0x366a();}function writeCacheJson(_0x3d1a49,_0x25910f){const _0x500925=a227_0xebaf03;ensureCacheDir(),writeFileSync(getCachePath(_0x3d1a49),JSON['stringify'](_0x25910f,null,0x2),_0x500925(0x1b2));}function readCacheText(_0x5c7a89){const _0x450edb=getCachePath(_0x5c7a89);if(!existsSync(_0x450edb))return undefined;try{return readFileSync(_0x450edb,'utf-8');}catch{return undefined;}}function writeCacheText(_0x1781e8,_0x4e8c6d){ensureCacheDir(),writeFileSync(getCachePath(_0x1781e8),_0x4e8c6d,'utf-8');}function a227_0xbf63(_0x291c80,_0x545e83){_0x291c80=_0x291c80-0x19e;const _0x366a05=a227_0x366a();let _0xbf63ea=_0x366a05[_0x291c80];return _0xbf63ea;}function clearCache(_0x171bcd){const _0x1f3226=getCachePath(_0x171bcd);if(existsSync(_0x1f3226))try{unlinkSync(_0x1f3226);}catch{}}function cacheExists(_0x2de7c5){return existsSync(getCachePath(_0x2de7c5));}export function createCache(_0xf09244,_0x27fffb){return registerCacheKey(_0xf09244,_0x27fffb),{'read':()=>readCacheJson(_0xf09244),'write':_0x4dd666=>writeCacheJson(_0xf09244,_0x4dd666),'clear':()=>clearCache(_0xf09244),'exists':()=>cacheExists(_0xf09244),'path':()=>getCachePath(_0xf09244)};}export function createTextCache(_0x22b702,_0x5f3743){const _0x1c7015=a227_0xebaf03;return registerCacheKey(_0x22b702,_0x5f3743),{'read':()=>readCacheText(_0x22b702)?.[_0x1c7015(0x1ab)]()||undefined,'write':_0x194e51=>writeCacheText(_0x22b702,_0x194e51),'clear':()=>clearCache(_0x22b702),'exists':()=>cacheExists(_0x22b702),'path':()=>getCachePath(_0x22b702)};}export function clearRegistry(){const _0x36ac5c=a227_0xebaf03;registry[_0x36ac5c(0x1b1)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a228_0x384c4f=a228_0x30f5;(function(_0x5c5300,_0x7b09df){const _0x1a3742=a228_0x30f5,_0x5e5ec5=_0x5c5300();while(!![]){try{const _0x45e293=parseInt(_0x1a3742(0x156))/0x1*(-parseInt(_0x1a3742(0x155))/0x2)+-parseInt(_0x1a3742(0x150))/0x3*(parseInt(_0x1a3742(0x15d))/0x4)+parseInt(_0x1a3742(0x152))/0x5+-parseInt(_0x1a3742(0x159))/0x6*(-parseInt(_0x1a3742(0x148))/0x7)+-parseInt(_0x1a3742(0x161))/0x8+parseInt(_0x1a3742(0x157))/0x9*(parseInt(_0x1a3742(0x14b))/0xa)+parseInt(_0x1a3742(0x165))/0xb;if(_0x45e293===_0x7b09df)break;else _0x5e5ec5['push'](_0x5e5ec5['shift']());}catch(_0x9afe7b){_0x5e5ec5['push'](_0x5e5ec5['shift']());}}}(a228_0x2ddd,0x9f3b0));import a228_0x2febd5 from'chalk';function a228_0x2ddd(){const _0x23ef63=['5599912dgCtiP','gray','colorLevel','colors','6104208aEAWEv','TRACE','21HZUhMk','blue','INFO','350jamcKa','timestamp','DEBUG',']\x20[','red','669BsvlwY','Chalk','5993075YyheBL','cyan','ERROR','4vWDrRV','193149DXxjGa','106263mOipxB','dim','1085298BHpYYr','WARN','level','chalk','17416SiBMFl','message','format','yellow'];a228_0x2ddd=function(){return _0x23ef63;};return a228_0x2ddd();}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';function a228_0x30f5(_0x3d5403,_0x3dab36){_0x3d5403=_0x3d5403-0x148;const _0x2dddf7=a228_0x2ddd();let _0x30f580=_0x2dddf7[_0x3d5403];return _0x30f580;}const chalkModule=a228_0x2febd5,ChalkClass=chalkModule[a228_0x384c4f(0x151)]||chalkModule['default']?.[a228_0x384c4f(0x151)];export class DefaultLogFormatter{[a228_0x384c4f(0x164)];[a228_0x384c4f(0x15c)];constructor(_0x3b331e={}){const _0x32cce6=a228_0x384c4f;this['colors']=_0x3b331e[_0x32cce6(0x164)]??![],this[_0x32cce6(0x15c)]=_0x3b331e['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a228_0x2febd5;}[a228_0x384c4f(0x15f)](_0x12aee6){const _0x25995e=a228_0x384c4f,_0x340aeb=formatTimestamp(_0x12aee6[_0x25995e(0x14c)]),_0x2d5637=logLevelToString(_0x12aee6[_0x25995e(0x15b)]);if(!this[_0x25995e(0x164)])return _0x340aeb+'\x20['+_0x2d5637+_0x25995e(0x14e)+_0x12aee6['component']+']\x20'+_0x12aee6['message'];const _0x43b9ce=this[_0x25995e(0x15c)][_0x25995e(0x158)](_0x340aeb),_0xd2bfe2=this[_0x25995e(0x163)](_0x2d5637,_0x12aee6['level']),_0x1af172=this['chalk'][_0x25995e(0x149)]('['+_0x12aee6['component']+']');return _0x43b9ce+'\x20'+_0xd2bfe2+'\x20'+_0x1af172+'\x20'+_0x12aee6[_0x25995e(0x15e)];}[a228_0x384c4f(0x163)](_0x52699f,_0x3df1a7){const _0x34bab0=a228_0x384c4f;switch(_0x3df1a7){case LogLevel[_0x34bab0(0x166)]:return this[_0x34bab0(0x15c)][_0x34bab0(0x162)]('['+_0x52699f+']');case LogLevel[_0x34bab0(0x14d)]:return this[_0x34bab0(0x15c)]['green']('['+_0x52699f+']');case LogLevel[_0x34bab0(0x14a)]:return this[_0x34bab0(0x15c)][_0x34bab0(0x153)]('['+_0x52699f+']');case LogLevel[_0x34bab0(0x15a)]:return this['chalk'][_0x34bab0(0x160)]('['+_0x52699f+']');case LogLevel[_0x34bab0(0x154)]:return this[_0x34bab0(0x15c)][_0x34bab0(0x14f)]('['+_0x52699f+']');default:return'['+_0x52699f+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a229_0x2933(){var _0x57824c=['1999NOCdYJ','126yBonNi','1103457ZompBr','14kyDgXc','2958928FJqZqT','19804323BaFhRF','750280bVmyff','5776630TGWyYX','12QdPizE','238kTcmUt','4995876HAhHCN'];a229_0x2933=function(){return _0x57824c;};return a229_0x2933();}function a229_0x3b33(_0x34d947,_0x80b4d0){_0x34d947=_0x34d947-0xe2;var _0x2933ca=a229_0x2933();var _0x3b339c=_0x2933ca[_0x34d947];return _0x3b339c;}(function(_0x4378dd,_0x446a68){var _0x4e01e6=a229_0x3b33,_0x523565=_0x4378dd();while(!![]){try{var _0x320500=parseInt(_0x4e01e6(0xe3))/0x1*(-parseInt(_0x4e01e6(0xec))/0x2)+-parseInt(_0x4e01e6(0xe5))/0x3*(-parseInt(_0x4e01e6(0xeb))/0x4)+parseInt(_0x4e01e6(0xea))/0x5+parseInt(_0x4e01e6(0xe2))/0x6+-parseInt(_0x4e01e6(0xe6))/0x7*(-parseInt(_0x4e01e6(0xe7))/0x8)+parseInt(_0x4e01e6(0xe4))/0x9*(-parseInt(_0x4e01e6(0xe9))/0xa)+-parseInt(_0x4e01e6(0xe8))/0xb;if(_0x320500===_0x446a68)break;else _0x523565['push'](_0x523565['shift']());}catch(_0x25c581){_0x523565['push'](_0x523565['shift']());}}}(a229_0x2933,0xb545f));export{DefaultLogFormatter}from'./default-formatter.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a230_0x5897(){const _0x28681b=['4223954nbBQtO','4806520VeAiUS','5996368QxHksp','6654RBaTvx','235204tkTUfs','WARN','handle','format','minLevel','3569630OwVjTU','580rprREL','4VHgcLT','colors','3mcSWQp','formatter','5900085fKeJEb','useStderr','level'];a230_0x5897=function(){return _0x28681b;};return a230_0x5897();}const a230_0x37115e=a230_0x5501;function a230_0x5501(_0x386f90,_0x5d1d5a){_0x386f90=_0x386f90-0x1a4;const _0x5897ae=a230_0x5897();let _0x5501ad=_0x5897ae[_0x386f90];return _0x5501ad;}(function(_0x377c0c,_0x26969a){const _0x5341fd=a230_0x5501,_0x358cfd=_0x377c0c();while(!![]){try{const _0x1c1b85=-parseInt(_0x5341fd(0x1a8))/0x1*(parseInt(_0x5341fd(0x1af))/0x2)+parseInt(_0x5341fd(0x1b1))/0x3*(parseInt(_0x5341fd(0x1a5))/0x4)+parseInt(_0x5341fd(0x1ae))/0x5*(-parseInt(_0x5341fd(0x1a7))/0x6)+parseInt(_0x5341fd(0x1a4))/0x7+parseInt(_0x5341fd(0x1a6))/0x8+-parseInt(_0x5341fd(0x1b3))/0x9+-parseInt(_0x5341fd(0x1ad))/0xa;if(_0x1c1b85===_0x26969a)break;else _0x358cfd['push'](_0x358cfd['shift']());}catch(_0x233bf1){_0x358cfd['push'](_0x358cfd['shift']());}}}(a230_0x5897,0xe63aa));import{LogLevel as a230_0x159080}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a230_0x37115e(0x1ac)];[a230_0x37115e(0x1b4)];['formatter'];constructor(_0x43a512={}){const _0x299369=a230_0x37115e;this[_0x299369(0x1ac)]=_0x43a512['minLevel']??a230_0x159080[_0x299369(0x1a9)],this['useStderr']=_0x43a512[_0x299369(0x1b4)]??!![],this[_0x299369(0x1b2)]=new DefaultLogFormatter({'colors':_0x43a512[_0x299369(0x1b0)]??!![]});}[a230_0x37115e(0x1aa)](_0x4e965f){const _0x194781=a230_0x37115e;if(_0x4e965f[_0x194781(0x1b5)]<this[_0x194781(0x1ac)])return;const _0x4270ed=this[_0x194781(0x1b2)][_0x194781(0x1ab)](_0x4e965f);this['useStderr']&&_0x4e965f[_0x194781(0x1b5)]>=a230_0x159080[_0x194781(0x1a9)]?console['error'](_0x4270ed):console['log'](_0x4270ed);}}
|