@treasuredata/tdx 2026.8.1 → 2026.8.2
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.js +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-always-on-campaign-pull-command.js +1 -1
- package/dist/commands/engage-always-on-campaign-push-command.js +1 -1
- package/dist/commands/engage-always-on-campaign-validate-command.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/site-mismatch.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/auth-token.js +1 -1
- package/dist/sdk/cas/cas-api-client.js +1 -1
- package/dist/sdk/cas/cas-audience-schema.d.ts +2 -0
- 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-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.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/types.d.ts +2 -0
- package/dist/sdk/cas/types.d.ts.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.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/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/always-on-campaign-pull.js +1 -1
- package/dist/sdk/engage/always-on-campaign-push.js +1 -1
- package/dist/sdk/engage/always-on-campaign-validator.js +1 -1
- package/dist/sdk/engage/always-on-campaign-yaml.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/always-on-campaign-schema.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 +4 -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/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 a225_0x25c656=a225_0x1eec;(function(_0x3e424c,_0x3560fc){const _0xf2f417=a225_0x1eec,_0x58282f=_0x3e424c();while(!![]){try{const _0x130607=-parseInt(_0xf2f417(0xd6))/0x1+-parseInt(_0xf2f417(0xed))/0x2*(-parseInt(_0xf2f417(0xaa))/0x3)+-parseInt(_0xf2f417(0xe5))/0x4*(parseInt(_0xf2f417(0xf6))/0x5)+parseInt(_0xf2f417(0xf1))/0x6*(parseInt(_0xf2f417(0xc5))/0x7)+parseInt(_0xf2f417(0xff))/0x8+parseInt(_0xf2f417(0x103))/0x9*(parseInt(_0xf2f417(0xf2))/0xa)+parseInt(_0xf2f417(0xd4))/0xb*(-parseInt(_0xf2f417(0xfc))/0xc);if(_0x130607===_0x3560fc)break;else _0x58282f['push'](_0x58282f['shift']());}catch(_0x233451){_0x58282f['push'](_0x58282f['shift']());}}}(a225_0x589c,0x8caa8));function a225_0x589c(){const _0x1da552=['def456','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','log','name','Table\x20does\x20not\x20exist:\x20nonexistent_table','customer_id','job','success','4RAoKmJ','Purchase\x20Reminder','UTC','act-123','attribute','active','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','2024-01-15T10:10:00Z','26446HMapwU','last_login','events_db','segment','6nsYVwd','19710CKRbvi','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','timestamp','2024-01-01T00:00:00Z','55010xkfyAW','step-3','activation','j-abc123','wf-12345','user_id','12rBFGvv','TimeWithinPast','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','5885904gxBWSg','Active\x20Users','abc123','lifetime_value','4437hbINMc','string','Charlie','workflow','Welcome\x20Journey','wf-67890','2024-01-15T00:00:00Z','customers','0\x20*\x20*\x20*\x20*','2024-01-15T08:00:00Z','event_id','Onboarding\x20journey\x20for\x20new\x20users','Journey\x20with\x20decision\x20point','cs-111222','2024-01-15T10:00:05Z','2024-01-15T10:05:00Z','The\x20requested\x20resource\x20does\x20not\x20exist','email','created_at','act-email','test@example.com','Invalid\x20API\x20key','30d','243jXDZAO','Admin\x20User','varchar','presto','High\x20Value\x20Active\x20Users','count','2024-01-15T10:10:01Z','full_access','user','step-2','table','basic','unified_customers','/v3/database/list','administrator','data_sync','2024-01-15T09:05:00Z','data_pipeline','production_db','Users\x20active\x20in\x20the\x20last\x2030\x20days','wait','decision_point','America/Los_Angeles','cs-456789','2023-06-15T10:30:00Z','error','cdp_db','5173693zXBZcE','0\x200\x20*\x20*\x20*','Customers\x20with\x20Behaviors','pageviews','user-2','step-1','map<string,string>','2024-01-15T12:00:00Z','event_type','purchases','https://api.treasuredata.com/errors/forbidden','daily_etl','sess-111','completed','test_db','25823963GhdnbI','Resource\x20not\x20found','582800SgnaWG','end','time','ps-123456','users','hourly_sync','bigint'];a225_0x589c=function(){return _0x1da552;};return a225_0x589c();}export const fixtures={'database':{'basic':{'name':a225_0x25c656(0xd3),'count':0x5,'created_at':a225_0x25c656(0xf5),'updated_at':a225_0x25c656(0xf5),'permission':a225_0x25c656(0xb8)},'withTables':{'name':a225_0x25c656(0xbc),'count':0x64,'created_at':a225_0x25c656(0xc2),'updated_at':a225_0x25c656(0x10c),'permission':a225_0x25c656(0xb1)}},'table':{'basic':{'id':0x3039,'name':a225_0x25c656(0xda),'type':a225_0x25c656(0xdf),'schema':JSON['stringify']([['id',a225_0x25c656(0x104)],['time','long'],[a225_0x25c656(0xe0),a225_0x25c656(0x104)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a225_0x25c656(0xf5),'updated_at':'2024-01-01T00:00:00Z'},'events':{'id':0x303a,'name':'events','type':'log','schema':JSON['stringify']([[a225_0x25c656(0x10d),a225_0x25c656(0x104)],[a225_0x25c656(0xd8),'long'],[a225_0x25c656(0xfb),a225_0x25c656(0x104)],[a225_0x25c656(0xcd),a225_0x25c656(0x104)],['properties',a225_0x25c656(0xcb)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a225_0x25c656(0xf5),'updated_at':a225_0x25c656(0xcc)}},'parentSegment':{'basic':{'id':a225_0x25c656(0xd9),'name':'Test\x20Parent\x20Segment','description':a225_0x25c656(0xf3),'status':a225_0x25c656(0xea),'master_table':{'database':a225_0x25c656(0xc4),'table':a225_0x25c656(0xb6)},'attributes':[{'name':'customer_id','type':a225_0x25c656(0x104),'key':!![]},{'name':a225_0x25c656(0xa4),'type':a225_0x25c656(0x104)},{'name':a225_0x25c656(0xa5),'type':a225_0x25c656(0xf4)}],'created_at':a225_0x25c656(0xf5),'updated_at':a225_0x25c656(0x109)},'withBehaviors':{'id':'ps-789012','name':a225_0x25c656(0xc7),'description':'Parent\x20segment\x20with\x20behavioral\x20data','status':a225_0x25c656(0xea),'master_table':{'database':a225_0x25c656(0xc4),'table':a225_0x25c656(0x10a)},'behaviors':[{'name':a225_0x25c656(0xce),'table':{'database':a225_0x25c656(0xef),'table':a225_0x25c656(0xce)},'join_key':'customer_id'},{'name':'page_views','table':{'database':a225_0x25c656(0xef),'table':a225_0x25c656(0xc8)},'join_key':a225_0x25c656(0xe2)}],'created_at':a225_0x25c656(0xf5),'updated_at':a225_0x25c656(0x109)}},'segment':{'basic':{'id':a225_0x25c656(0xc1),'name':a225_0x25c656(0x100),'description':a225_0x25c656(0xbd),'parent_segment_id':a225_0x25c656(0xd9),'status':a225_0x25c656(0xea),'rules':[{'type':a225_0x25c656(0xe9),'field':a225_0x25c656(0xee),'operator':a225_0x25c656(0xfd),'value':a225_0x25c656(0xa9)}],'count':0x1388,'created_at':a225_0x25c656(0xf5),'updated_at':a225_0x25c656(0x109)},'withMultipleRules':{'id':a225_0x25c656(0xa0),'name':a225_0x25c656(0xae),'description':'Active\x20users\x20with\x20high\x20lifetime\x20value','parent_segment_id':'ps-123456','status':a225_0x25c656(0xea),'rules':[{'type':a225_0x25c656(0xe9),'field':a225_0x25c656(0xee),'operator':a225_0x25c656(0xfd),'value':a225_0x25c656(0xa9)},{'type':a225_0x25c656(0xe9),'field':a225_0x25c656(0x102),'operator':'Greater','value':0x3e8}],'count':0x5dc,'created_at':a225_0x25c656(0xf5),'updated_at':a225_0x25c656(0x109)}},'journey':{'basic':{'id':a225_0x25c656(0xf9),'name':a225_0x25c656(0x107),'description':a225_0x25c656(0x9e),'status':'draft','version':0x1,'steps':[{'id':'step-1','type':a225_0x25c656(0xbe),'duration':'1d'},{'id':a225_0x25c656(0xb3),'type':'activation','activation_id':a225_0x25c656(0xe8)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a225_0x25c656(0x109)},'withDecision':{'id':'j-def456','name':a225_0x25c656(0xe6),'description':a225_0x25c656(0x9f),'status':a225_0x25c656(0xea),'version':0x2,'steps':[{'id':a225_0x25c656(0xca),'type':a225_0x25c656(0xbf),'segment_id':a225_0x25c656(0xc1),'yes_path':a225_0x25c656(0xb3),'no_path':a225_0x25c656(0xf7)},{'id':a225_0x25c656(0xb3),'type':a225_0x25c656(0xf8),'activation_id':a225_0x25c656(0xa6)},{'id':'step-3','type':a225_0x25c656(0xd7)}],'created_at':a225_0x25c656(0xf5),'updated_at':a225_0x25c656(0x109)}},'queryResult':{'basic':{'schema':[{'name':'id','type':'varchar'},{'name':'name','type':'varchar'},{'name':a225_0x25c656(0xaf),'type':a225_0x25c656(0xdc)}],'data':[['user-1','Alice',0x64],[a225_0x25c656(0xc9),'Bob',0xc8],['user-3',a225_0x25c656(0x105),0x96]]},'empty':{'schema':[{'name':'id','type':'varchar'},{'name':a225_0x25c656(0xe0),'type':a225_0x25c656(0xac)}],'data':[]},'singleRow':{'schema':[{'name':'total','type':a225_0x25c656(0xdc)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':a225_0x25c656(0xa7),'created_at':a225_0x25c656(0xf5),'updated_at':'2024-01-15T00:00:00Z','administrator':![]},'admin':{'id':0x1,'name':a225_0x25c656(0xab),'email':'admin@example.com','created_at':'2023-01-01T00:00:00Z','updated_at':a225_0x25c656(0x109),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':'presto','database':a225_0x25c656(0xd3),'status':a225_0x25c656(0xe4),'query':a225_0x25c656(0xfe),'start_at':'2024-01-15T10:00:00Z','end_at':a225_0x25c656(0xa1),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a225_0x25c656(0xad),'database':'test_db','status':'running','query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':a225_0x25c656(0xa2),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':a225_0x25c656(0xd3),'status':a225_0x25c656(0xc3),'query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a225_0x25c656(0xec),'end_at':a225_0x25c656(0xb0),'duration':0x1,'result_size':null,'error':a225_0x25c656(0xe1)}},'workflow':{'basic':{'id':a225_0x25c656(0xfa),'name':a225_0x25c656(0xd0),'project':a225_0x25c656(0xbb),'revision':a225_0x25c656(0x101),'timezone':a225_0x25c656(0xe7),'schedule':{'cron':a225_0x25c656(0xc6)}},'withSessions':{'id':a225_0x25c656(0x108),'name':a225_0x25c656(0xdb),'project':a225_0x25c656(0xb9),'revision':a225_0x25c656(0xdd),'timezone':a225_0x25c656(0xc0),'schedule':{'cron':a225_0x25c656(0x10b)},'last_session':{'id':a225_0x25c656(0xd1),'status':a225_0x25c656(0xe4),'started_at':'2024-01-15T09:00:00Z','finished_at':a225_0x25c656(0xba)}}},'apiError':{'unauthorized':{'errors':{'error':a225_0x25c656(0xa8),'message':a225_0x25c656(0xa8),'severity':a225_0x25c656(0xc3),'status_code':0x191}},'notFound':{'errors':{'error':a225_0x25c656(0xd5),'message':a225_0x25c656(0xa3),'severity':a225_0x25c656(0xc3),'status_code':0x194}},'rateLimited':{'detail':a225_0x25c656(0xeb)},'rfc9457':{'type':a225_0x25c656(0xcf),'title':'Forbidden','status':0x193,'detail':a225_0x25c656(0xde),'instance':a225_0x25c656(0xb7)}}};export function createDatabase(_0xf83b0e){const _0x1e22f4=a225_0x25c656;return{...fixtures['database'][_0x1e22f4(0xb5)],..._0xf83b0e};}export function createTable(_0x17fb3e){const _0x4daca6=a225_0x25c656;return{...fixtures[_0x4daca6(0xb4)][_0x4daca6(0xb5)],..._0x17fb3e};}function a225_0x1eec(_0x45ea87,_0x12b538){_0x45ea87=_0x45ea87-0x9e;const _0x589cc8=a225_0x589c();let _0x1eecc7=_0x589cc8[_0x45ea87];return _0x1eecc7;}export function createParentSegment(_0x1519a9){return{...fixtures['parentSegment']['basic'],..._0x1519a9};}export function createSegment(_0x1a509f){const _0x24511b=a225_0x25c656;return{...fixtures[_0x24511b(0xf0)][_0x24511b(0xb5)],..._0x1a509f};}export function createJourney(_0x48711c){const _0x23aee6=a225_0x25c656;return{...fixtures['journey'][_0x23aee6(0xb5)],..._0x48711c};}export function createQueryResult(_0x3d0441){const _0x46137e=a225_0x25c656;return{...fixtures['queryResult'][_0x46137e(0xb5)],..._0x3d0441};}export function createUser(_0x4589f6){const _0xafd987=a225_0x25c656;return{...fixtures[_0xafd987(0xb2)][_0xafd987(0xb5)],..._0x4589f6};}export function createJob(_0x427b1d){const _0x6b172=a225_0x25c656;return{...fixtures[_0x6b172(0xe3)][_0x6b172(0xd2)],..._0x427b1d};}export function createWorkflow(_0x4c9de6){const _0x7c1624=a225_0x25c656;return{...fixtures[_0x7c1624(0x106)][_0x7c1624(0xb5)],..._0x4c9de6};}
|
|
1
|
+
const a225_0x285963=a225_0x454d;(function(_0xba67fc,_0x2b870c){const _0x536786=a225_0x454d,_0x3f3fe4=_0xba67fc();while(!![]){try{const _0x5359a5=parseInt(_0x536786(0x110))/0x1+-parseInt(_0x536786(0x155))/0x2*(parseInt(_0x536786(0xfa))/0x3)+parseInt(_0x536786(0x13c))/0x4+-parseInt(_0x536786(0x129))/0x5+-parseInt(_0x536786(0x137))/0x6+-parseInt(_0x536786(0x102))/0x7+-parseInt(_0x536786(0x131))/0x8*(-parseInt(_0x536786(0xf6))/0x9);if(_0x5359a5===_0x2b870c)break;else _0x3f3fe4['push'](_0x3f3fe4['shift']());}catch(_0x4c7e26){_0x3f3fe4['push'](_0x3f3fe4['shift']());}}}(a225_0x1ace,0x73cb8));export const fixtures={'database':{'basic':{'name':a225_0x285963(0x107),'count':0x5,'created_at':a225_0x285963(0x13f),'updated_at':a225_0x285963(0x13f),'permission':'administrator'},'withTables':{'name':a225_0x285963(0xf7),'count':0x64,'created_at':'2023-06-15T10:30:00Z','updated_at':'2024-01-15T08:00:00Z','permission':'full_access'}},'table':{'basic':{'id':0x3039,'name':'users','type':a225_0x285963(0x11f),'schema':JSON[a225_0x285963(0x156)]([['id',a225_0x285963(0x12e)],[a225_0x285963(0x13d),a225_0x285963(0x128)],[a225_0x285963(0x14b),a225_0x285963(0x12e)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a225_0x285963(0x13f),'updated_at':a225_0x285963(0x13f)},'events':{'id':0x303a,'name':a225_0x285963(0x10c),'type':a225_0x285963(0x11f),'schema':JSON[a225_0x285963(0x156)]([[a225_0x285963(0x134),a225_0x285963(0x12e)],[a225_0x285963(0x13d),a225_0x285963(0x128)],[a225_0x285963(0x11c),a225_0x285963(0x12e)],[a225_0x285963(0x101),a225_0x285963(0x12e)],[a225_0x285963(0x133),a225_0x285963(0x115)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a225_0x285963(0x13f),'updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':a225_0x285963(0x151),'name':a225_0x285963(0x160),'description':a225_0x285963(0x111),'status':a225_0x285963(0x132),'master_table':{'database':a225_0x285963(0x120),'table':'unified_customers'},'attributes':[{'name':a225_0x285963(0xfb),'type':a225_0x285963(0x12e),'key':!![]},{'name':a225_0x285963(0x154),'type':a225_0x285963(0x12e)},{'name':a225_0x285963(0xf8),'type':a225_0x285963(0x15a)}],'created_at':a225_0x285963(0x13f),'updated_at':a225_0x285963(0x112)},'withBehaviors':{'id':a225_0x285963(0x12f),'name':a225_0x285963(0x113),'description':'Parent\x20segment\x20with\x20behavioral\x20data','status':a225_0x285963(0x132),'master_table':{'database':'cdp_db','table':a225_0x285963(0x106)},'behaviors':[{'name':a225_0x285963(0x14c),'table':{'database':a225_0x285963(0x158),'table':a225_0x285963(0x14c)},'join_key':'customer_id'},{'name':a225_0x285963(0x12a),'table':{'database':'events_db','table':a225_0x285963(0x150)},'join_key':a225_0x285963(0xfb)}],'created_at':a225_0x285963(0x13f),'updated_at':a225_0x285963(0x112)}},'segment':{'basic':{'id':a225_0x285963(0x15d),'name':a225_0x285963(0xf5),'description':a225_0x285963(0xfc),'parent_segment_id':a225_0x285963(0x151),'status':a225_0x285963(0x132),'rules':[{'type':'attribute','field':'last_login','operator':a225_0x285963(0x14d),'value':a225_0x285963(0x125)}],'count':0x1388,'created_at':a225_0x285963(0x13f),'updated_at':a225_0x285963(0x112)},'withMultipleRules':{'id':a225_0x285963(0x10a),'name':a225_0x285963(0x15b),'description':'Active\x20users\x20with\x20high\x20lifetime\x20value','parent_segment_id':a225_0x285963(0x151),'status':a225_0x285963(0x132),'rules':[{'type':a225_0x285963(0x159),'field':a225_0x285963(0x109),'operator':'TimeWithinPast','value':a225_0x285963(0x125)},{'type':a225_0x285963(0x159),'field':a225_0x285963(0x12c),'operator':a225_0x285963(0x15e),'value':0x3e8}],'count':0x5dc,'created_at':a225_0x285963(0x13f),'updated_at':a225_0x285963(0x112)}},'journey':{'basic':{'id':a225_0x285963(0x116),'name':'Welcome\x20Journey','description':a225_0x285963(0x15f),'status':a225_0x285963(0xf4),'version':0x1,'steps':[{'id':'step-1','type':a225_0x285963(0x114),'duration':'1d'},{'id':'step-2','type':a225_0x285963(0x10e),'activation_id':a225_0x285963(0x11d)}],'created_at':a225_0x285963(0x13f),'updated_at':a225_0x285963(0x112)},'withDecision':{'id':a225_0x285963(0x104),'name':'Purchase\x20Reminder','description':a225_0x285963(0x11b),'status':a225_0x285963(0x132),'version':0x2,'steps':[{'id':'step-1','type':'decision_point','segment_id':a225_0x285963(0x15d),'yes_path':a225_0x285963(0x146),'no_path':'step-3'},{'id':a225_0x285963(0x146),'type':'activation','activation_id':'act-email'},{'id':'step-3','type':a225_0x285963(0x142)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a225_0x285963(0x112)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a225_0x285963(0x135)},{'name':a225_0x285963(0x14b),'type':'varchar'},{'name':a225_0x285963(0x126),'type':a225_0x285963(0x123)}],'data':[[a225_0x285963(0x108),'Alice',0x64],[a225_0x285963(0x11a),a225_0x285963(0x145),0xc8],['user-3',a225_0x285963(0x117),0x96]]},'empty':{'schema':[{'name':'id','type':a225_0x285963(0x135)},{'name':a225_0x285963(0x14b),'type':a225_0x285963(0x135)}],'data':[]},'singleRow':{'schema':[{'name':'total','type':a225_0x285963(0x123)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a225_0x285963(0x144),'email':a225_0x285963(0x12b),'created_at':a225_0x285963(0x13f),'updated_at':'2024-01-15T00:00:00Z','administrator':![]},'admin':{'id':0x1,'name':'Admin\x20User','email':a225_0x285963(0xff),'created_at':'2023-01-01T00:00:00Z','updated_at':a225_0x285963(0x112),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a225_0x285963(0x143),'database':a225_0x285963(0x107),'status':a225_0x285963(0xf2),'query':a225_0x285963(0x139),'start_at':a225_0x285963(0x149),'end_at':a225_0x285963(0x13e),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':'presto','database':a225_0x285963(0x107),'status':a225_0x285963(0x130),'query':a225_0x285963(0xfe),'start_at':a225_0x285963(0x153),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':'test_db','status':'error','query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a225_0x285963(0x14e),'end_at':a225_0x285963(0x157),'duration':0x1,'result_size':null,'error':a225_0x285963(0x14a)}},'workflow':{'basic':{'id':a225_0x285963(0x122),'name':a225_0x285963(0x138),'project':'data_pipeline','revision':'abc123','timezone':a225_0x285963(0x141),'schedule':{'cron':a225_0x285963(0x100)}},'withSessions':{'id':a225_0x285963(0x13b),'name':a225_0x285963(0x103),'project':a225_0x285963(0xfd),'revision':'def456','timezone':a225_0x285963(0x10d),'schedule':{'cron':a225_0x285963(0x11e)},'last_session':{'id':a225_0x285963(0x124),'status':'success','started_at':a225_0x285963(0x119),'finished_at':a225_0x285963(0x136)}}},'apiError':{'unauthorized':{'errors':{'error':a225_0x285963(0x140),'message':a225_0x285963(0x140),'severity':a225_0x285963(0x14f),'status_code':0x191}},'notFound':{'errors':{'error':a225_0x285963(0x127),'message':a225_0x285963(0x118),'severity':a225_0x285963(0x14f),'status_code':0x194}},'rateLimited':{'detail':a225_0x285963(0xf9)},'rfc9457':{'type':a225_0x285963(0x10b),'title':'Forbidden','status':0x193,'detail':a225_0x285963(0x148),'instance':a225_0x285963(0x152)}}};export function createDatabase(_0x550325){const _0x4d5cce=a225_0x285963;return{...fixtures[_0x4d5cce(0xf1)]['basic'],..._0x550325};}function a225_0x1ace(){const _0x19ab55=['log','cdp_db','segment','wf-12345','bigint','sess-111','30d','count','Resource\x20not\x20found','long','1177550BFaSUW','page_views','test@example.com','lifetime_value','basic','string','ps-789012','running','1576ldugiO','active','properties','event_id','varchar','2024-01-15T09:05:00Z','5005884DHhtrW','daily_etl','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','journey','wf-67890','2140800DGJXlU','time','2024-01-15T10:00:05Z','2024-01-01T00:00:00Z','Invalid\x20API\x20key','UTC','end','presto','Test\x20User','Bob','step-2','job','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','2024-01-15T10:00:00Z','Table\x20does\x20not\x20exist:\x20nonexistent_table','name','purchases','TimeWithinPast','2024-01-15T10:10:00Z','error','pageviews','ps-123456','/v3/database/list','2024-01-15T10:05:00Z','email','2MacKMO','stringify','2024-01-15T10:10:01Z','events_db','attribute','timestamp','High\x20Value\x20Active\x20Users','queryResult','cs-456789','Greater','Onboarding\x20journey\x20for\x20new\x20users','Test\x20Parent\x20Segment','database','success','parentSegment','draft','Active\x20Users','32013AnQSxX','production_db','created_at','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','192243NpJWoN','customer_id','Users\x20active\x20in\x20the\x20last\x2030\x20days','data_sync','SELECT\x20COUNT(*)\x20FROM\x20events','admin@example.com','0\x200\x20*\x20*\x20*','event_type','467663CugpcF','hourly_sync','j-def456','workflow','customers','test_db','user-1','last_login','cs-111222','https://api.treasuredata.com/errors/forbidden','events','America/Los_Angeles','activation','user','439081nTVhAC','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','2024-01-15T00:00:00Z','Customers\x20with\x20Behaviors','wait','map<string,string>','j-abc123','Charlie','The\x20requested\x20resource\x20does\x20not\x20exist','2024-01-15T09:00:00Z','user-2','Journey\x20with\x20decision\x20point','user_id','act-123','0\x20*\x20*\x20*\x20*'];a225_0x1ace=function(){return _0x19ab55;};return a225_0x1ace();}export function createTable(_0x1dbbb9){const _0x21cedc=a225_0x285963;return{...fixtures['table'][_0x21cedc(0x12d)],..._0x1dbbb9};}export function createParentSegment(_0x4a011d){const _0x41f3f8=a225_0x285963;return{...fixtures[_0x41f3f8(0xf3)][_0x41f3f8(0x12d)],..._0x4a011d};}export function createSegment(_0x92c269){const _0x535229=a225_0x285963;return{...fixtures[_0x535229(0x121)]['basic'],..._0x92c269};}export function createJourney(_0x222155){const _0x288408=a225_0x285963;return{...fixtures[_0x288408(0x13a)][_0x288408(0x12d)],..._0x222155};}function a225_0x454d(_0x2c6eb7,_0x26bea8){_0x2c6eb7=_0x2c6eb7-0xf1;const _0x1acea9=a225_0x1ace();let _0x454deb=_0x1acea9[_0x2c6eb7];return _0x454deb;}export function createQueryResult(_0x14171c){const _0x38962a=a225_0x285963;return{...fixtures[_0x38962a(0x15c)][_0x38962a(0x12d)],..._0x14171c};}export function createUser(_0x47e32e){const _0x1c82f7=a225_0x285963;return{...fixtures[_0x1c82f7(0x10f)]['basic'],..._0x47e32e};}export function createJob(_0x34c016){const _0x30be5f=a225_0x285963;return{...fixtures[_0x30be5f(0x147)]['completed'],..._0x34c016};}export function createWorkflow(_0x7ba46e){const _0x424406=a225_0x285963;return{...fixtures[_0x424406(0x105)]['basic'],..._0x7ba46e};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a226_0x4cdb6b=a226_0x2620;(function(_0x11a085,_0x3100cd){const _0x53ebf7=a226_0x2620,_0x568fe3=_0x11a085();while(!![]){try{const _0x26c2a9=-parseInt(_0x53ebf7(0x15a))/0x1+-parseInt(_0x53ebf7(0x120))/0x2+parseInt(_0x53ebf7(0x130))/0x3+parseInt(_0x53ebf7(0x15b))/0x4+-parseInt(_0x53ebf7(0x151))/0x5*(-parseInt(_0x53ebf7(0x156))/0x6)+-parseInt(_0x53ebf7(0x124))/0x7*(parseInt(_0x53ebf7(0x13c))/0x8)+-parseInt(_0x53ebf7(0x118))/0x9;if(_0x26c2a9===_0x3100cd)break;else _0x568fe3['push'](_0x568fe3['shift']());}catch(_0xedcb7d){_0x568fe3['push'](_0x568fe3['shift']());}}}(a226_0x3402,0x38cca));import{vi}from'vitest';export class HTTPMockRegistry{['stubs']=[];[a226_0x4cdb6b(0x12d)]=[];[a226_0x4cdb6b(0x133)]=null;['REST'](_0x4b44d8,_0x2d0046){return _0xaf5f3b=>{const _0x82809c=a226_0x2620;if(_0xaf5f3b[_0x82809c(0x111)][_0x82809c(0x152)]()!==_0x4b44d8[_0x82809c(0x152)]())return![];const _0x41cc1a=new URL(_0xaf5f3b[_0x82809c(0x11c)]);if(typeof _0x2d0046===_0x82809c(0x13e))return _0x41cc1a['pathname']===_0x2d0046||_0x41cc1a[_0x82809c(0x14b)][_0x82809c(0x138)](_0x2d0046);return _0x2d0046[_0x82809c(0x145)](_0x41cc1a[_0x82809c(0x14b)]);};}[a226_0x4cdb6b(0x12b)](_0x4f6e81,_0x301729){return _0x5d29d3=>{const _0x4c201b=a226_0x2620;if(!_0x4f6e81(_0x5d29d3))return![];const _0x547aea=new URL(_0x5d29d3[_0x4c201b(0x11c)]);return Object[_0x4c201b(0x135)](_0x301729)['every'](([_0x5787c0,_0x40892b])=>_0x547aea[_0x4c201b(0x116)]['get'](_0x5787c0)===_0x40892b);};}[a226_0x4cdb6b(0x10d)](_0x549ba0,_0x42fe55){return _0x61575a=>{const _0xbbbee8=a226_0x2620;if(!_0x549ba0(_0x61575a))return![];if(typeof _0x42fe55===_0xbbbee8(0x128))return _0x42fe55(_0x61575a[_0xbbbee8(0x157)]);return JSON[_0xbbbee8(0x137)](_0x61575a[_0xbbbee8(0x157)])===JSON['stringify'](_0x42fe55);};}[a226_0x4cdb6b(0x117)](_0x36fb9f,_0x225aeb){return _0x2a9fbd=>{const _0x3cb916=a226_0x2620;if(!_0x36fb9f(_0x2a9fbd))return![];const _0x3dbdac=new URL(_0x2a9fbd['url']);return _0x3dbdac[_0x3cb916(0x115)]===_0x225aeb;};}['register'](_0x859792,_0x446cd7,_0x24124f){const _0x459f6b=a226_0x4cdb6b;this[_0x459f6b(0x14e)][_0x459f6b(0x150)]({'matcher':_0x859792,'responder':_0x446cd7,'matched':![],'matchCount':0x0,'stack':new Error()[_0x459f6b(0x141)]??'','description':_0x24124f?.[_0x459f6b(0x112)]});}[a226_0x4cdb6b(0x132)](_0x2142b0,_0x422437,_0x24176c){const _0xff1e82=a226_0x4cdb6b,_0x512da0=_0x29c28c=>{const _0x3a5575=a226_0x2620;return _0x24176c(_0x29c28c[_0x3a5575(0x157)],_0x29c28c),_0x422437(_0x29c28c);};this[_0xff1e82(0x143)](_0x2142b0,_0x512da0);}static[a226_0x4cdb6b(0x136)](_0x12b0bd,_0x4e0512=0xc8){const _0x28422c=a226_0x4cdb6b;return()=>new Response(JSON[_0x28422c(0x137)](_0x12b0bd),{'status':_0x4e0512,'headers':{'Content-Type':_0x28422c(0x12e)}});}static[a226_0x4cdb6b(0x144)](_0x4165f4,_0x4efc4b,_0x190aad=a226_0x4cdb6b(0x134)){return()=>{const _0x1dd52c=a226_0x2620;let _0x3e4c6b;switch(_0x190aad){case _0x1dd52c(0x12f):_0x3e4c6b={'errors':{'error':_0x4efc4b,'message':_0x4efc4b,'severity':'error','status_code':_0x4165f4}};break;case _0x1dd52c(0x142):_0x3e4c6b={'type':_0x1dd52c(0x114)+_0x4165f4,'title':HTTPMockRegistry[_0x1dd52c(0x11f)](_0x4165f4),'status':_0x4165f4,'detail':_0x4efc4b};break;default:_0x3e4c6b={'error':_0x4efc4b};}return new Response(JSON['stringify'](_0x3e4c6b),{'status':_0x4165f4,'headers':{'Content-Type':'application/json'}});};}static[a226_0x4cdb6b(0x126)](_0x172697,_0x4c285f,_0x666f2f=0xc8){const _0x444cf0=a226_0x4cdb6b;return()=>new Response(JSON[_0x444cf0(0x137)](_0x172697),{'status':_0x666f2f,'headers':{'Content-Type':'application/json',..._0x4c285f}});}static[a226_0x4cdb6b(0x154)](_0x1e3984,_0x16e598=0xc8){return()=>new Response(_0x1e3984,{'status':_0x16e598,'headers':{'Content-Type':'text/plain'}});}static[a226_0x4cdb6b(0x146)](_0xef8dd){return()=>{throw new Error(_0xef8dd);};}['createFetch'](){const _0x50c775=a226_0x4cdb6b;return this[_0x50c775(0x133)]=vi['fn']()[_0x50c775(0x10e)](async(_0x2dbe83,_0x37e66b)=>{const _0x48515f=_0x50c775,_0x2cb6c9=this[_0x48515f(0x110)](_0x2dbe83,_0x37e66b);this[_0x48515f(0x12d)][_0x48515f(0x150)](_0x2cb6c9);for(const _0x513b4c of this[_0x48515f(0x14e)]){if(_0x513b4c[_0x48515f(0x149)](_0x2cb6c9))return _0x513b4c[_0x48515f(0x10f)]=!![],_0x513b4c[_0x48515f(0x14d)]++,_0x513b4c[_0x48515f(0x13f)](_0x2cb6c9);}const _0x2d3bfc=this[_0x48515f(0x14e)][_0x48515f(0x129)]((_0x185829,_0x1bd0f9)=>'\x20\x20'+(_0x1bd0f9+0x1)+'.\x20'+(_0x185829[_0x48515f(0x112)]??'unnamed\x20stub'))[_0x48515f(0x125)]('\x0a');throw new Error('No\x20stub\x20matched\x20request:\x20'+_0x2cb6c9[_0x48515f(0x111)]+'\x20'+_0x2cb6c9[_0x48515f(0x11c)]+'\x0a'+(_0x48515f(0x11a)+JSON['stringify'](_0x2cb6c9[_0x48515f(0x157)])+'\x0a')+(_0x48515f(0x155)+(_0x2d3bfc||_0x48515f(0x119))));}),this[_0x50c775(0x133)];}[a226_0x4cdb6b(0x110)](_0x25fd03,_0x35bd3f){const _0x1317ec=a226_0x4cdb6b,_0x1e98e5={};if(_0x35bd3f?.['headers']){if(_0x35bd3f[_0x1317ec(0x12c)]instanceof Headers)_0x35bd3f[_0x1317ec(0x12c)]['forEach']((_0x548204,_0x3688b1)=>{const _0x7c9517=_0x1317ec;_0x1e98e5[_0x3688b1[_0x7c9517(0x147)]()]=_0x548204;});else{if(Array[_0x1317ec(0x121)](_0x35bd3f[_0x1317ec(0x12c)]))for(const [_0x174146,_0x96a3f]of _0x35bd3f[_0x1317ec(0x12c)]){_0x1e98e5[_0x174146[_0x1317ec(0x147)]()]=_0x96a3f;}else for(const [_0x5c721b,_0x34d5ae]of Object['entries'](_0x35bd3f[_0x1317ec(0x12c)])){_0x34d5ae!==undefined&&(_0x1e98e5[_0x5c721b['toLowerCase']()]=_0x34d5ae);}}}let _0x2c3aaa;if(_0x35bd3f?.[_0x1317ec(0x157)])try{_0x2c3aaa=JSON['parse'](_0x35bd3f['body']);}catch{_0x2c3aaa=_0x35bd3f[_0x1317ec(0x157)];}return{'method':_0x35bd3f?.['method']??_0x1317ec(0x140),'url':_0x25fd03,'headers':_0x1e98e5,'body':_0x2c3aaa};}['verify'](_0x125c33){const _0x53b383=a226_0x4cdb6b,_0x242985=this[_0x53b383(0x14e)][_0x53b383(0x13a)](_0x38fa4d=>!_0x38fa4d['matched']);if(_0x242985[_0x53b383(0x10c)]>0x0){const _0x1e8e92=_0x242985[_0x53b383(0x129)](_0xf4bf43=>{const _0x5e0e47=_0x53b383,_0x53ab2c=_0xf4bf43[_0x5e0e47(0x112)]?'\x20('+_0xf4bf43['description']+')':'',_0x442d0c=_0xf4bf43[_0x5e0e47(0x141)]['split']('\x0a')[_0x5e0e47(0x13b)](0x2,0x5)[_0x5e0e47(0x125)]('\x0a');return _0x5e0e47(0x14f)+_0x53ab2c+_0x5e0e47(0x139)+_0x442d0c;});_0x125c33[_0x53b383(0x11d)](_0x242985[_0x53b383(0x10c)]+_0x53b383(0x11e)+_0x1e8e92[_0x53b383(0x125)]('\x0a\x0a'));}}[a226_0x4cdb6b(0x14c)](){const _0x36aac5=a226_0x4cdb6b;return[...this[_0x36aac5(0x12d)]];}[a226_0x4cdb6b(0x153)](){const _0x23cf94=a226_0x4cdb6b;return this[_0x23cf94(0x12d)][this[_0x23cf94(0x12d)][_0x23cf94(0x10c)]-0x1];}[a226_0x4cdb6b(0x12a)](_0x4a77fa,_0x27ea18){const _0x936178=a226_0x4cdb6b;return this[_0x936178(0x12d)][_0x936178(0x113)](_0x5d5271=>{const _0xa1188f=_0x936178;if(_0x5d5271[_0xa1188f(0x111)]['toUpperCase']()!==_0x4a77fa['toUpperCase']())return![];if(typeof _0x27ea18===_0xa1188f(0x13e))return _0x5d5271[_0xa1188f(0x11c)][_0xa1188f(0x138)](_0x27ea18);return _0x27ea18[_0xa1188f(0x145)](_0x5d5271[_0xa1188f(0x11c)]);});}['getMatchCount'](_0xb76d9a){const _0x506b87=a226_0x4cdb6b;return this[_0x506b87(0x14e)][_0xb76d9a]?.[_0x506b87(0x14d)]??0x0;}['reset'](){const _0x57f67c=a226_0x4cdb6b;this['stubs']=[],this[_0x57f67c(0x12d)]=[],this[_0x57f67c(0x133)]=null;}static[a226_0x4cdb6b(0x11f)](_0x49dcce){const _0x3c98c0=a226_0x4cdb6b,_0x3a1cf4={0xc8:'OK',0xc9:_0x3c98c0(0x11b),0xcc:_0x3c98c0(0x127),0x190:'Bad\x20Request',0x191:_0x3c98c0(0x14a),0x193:'Forbidden',0x194:_0x3c98c0(0x148),0x199:_0x3c98c0(0x158),0x1a6:_0x3c98c0(0x13d),0x1ad:'Too\x20Many\x20Requests',0x1f4:_0x3c98c0(0x122),0x1f6:_0x3c98c0(0x159),0x1f7:_0x3c98c0(0x131)};return _0x3a1cf4[_0x49dcce]??_0x3c98c0(0x123);}}function a226_0x2620(_0x268014,_0x9152da){_0x268014=_0x268014-0x10c;const _0x340240=a226_0x3402();let _0x26201d=_0x340240[_0x268014];return _0x26201d;}function a226_0x3402(){const _0x3eddc6=['join','jsonResponseWithHeaders','No\x20Content','function','map','wasCalled','withQuery','headers','requests','application/json','td-api','1221522cHQGOz','Service\x20Unavailable','registerWithInspector','fetchMock','simple','entries','jsonResponse','stringify','includes','\x20registered\x20at:\x0a','filter','slice','634232LHOVaP','Unprocessable\x20Entity','string','responder','GET','stack','rfc9457','register','errorResponse','test','networkError','toLowerCase','Not\x20Found','matcher','Unauthorized','pathname','getRequests','matchCount','stubs','Unmatched\x20stub','push','39815JmwkNR','toUpperCase','getLastRequest','textResponse','Registered\x20stubs:\x0a','198epyDPq','body','Conflict','Bad\x20Gateway','313152nOqMqA','335592MTKioC','length','withBody','mockImplementation','matched','parseRequest','method','description','some','https://api.treasuredata.com/errors/','host','searchParams','withHost','931482AvdXOH','\x20\x20(none)','Request\x20body:\x20','Created','url','fail','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','getStatusText','50544eKUMHy','isArray','Internal\x20Server\x20Error','Unknown','7iYibCN'];a226_0x3402=function(){return _0x3eddc6;};return a226_0x3402();}export function createHTTPMock(){return new HTTPMockRegistry();}
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d2d4e,_0x4af21d){var _0x3b14f9=a227_0x1855,_0x111a15=_0x4d2d4e();while(!![]){try{var _0x40c910=-parseInt(_0x3b14f9(0x12c))/0x1+-parseInt(_0x3b14f9(0x12f))/0x2+parseInt(_0x3b14f9(0x128))/0x3+parseInt(_0x3b14f9(0x12d))/0x4+-parseInt(_0x3b14f9(0x12a))/0x5+parseInt(_0x3b14f9(0x12b))/0x6+parseInt(_0x3b14f9(0x12e))/0x7*(parseInt(_0x3b14f9(0x129))/0x8);if(_0x40c910===_0x4af21d)break;else _0x111a15['push'](_0x111a15['shift']());}catch(_0x5be08d){_0x111a15['push'](_0x111a15['shift']());}}}(a227_0x3fbe,0xceff1));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a227_0x3fbe(){var _0x4fc59d=['3112086LmpCNb','822346ojInHy','4791208hFBgLr','135639bWONVt','639334EiPGcX','1873989UBiovm','104hkXpry','3015885jlpZsG'];a227_0x3fbe=function(){return _0x4fc59d;};return a227_0x3fbe();}function a227_0x1855(_0x3439a8,_0x5b0dcd){_0x3439a8=_0x3439a8-0x128;var _0x3fbe7d=a227_0x3fbe();var _0x18559c=_0x3fbe7d[_0x3439a8];return _0x18559c;}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole,writeTestProfile}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
|
package/dist/utils/async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a228_0x330a(_0x3030ae,_0x546040){_0x3030ae=_0x3030ae-0x1e8;const _0x3b3fb6=a228_0x3b3f();let _0x330a43=_0x3b3fb6[_0x3030ae];return _0x330a43;}(function(_0x40be9d,_0xc5d146){const _0x27fd7e=a228_0x330a,_0x1a6fc9=_0x40be9d();while(!![]){try{const _0xdf5194=parseInt(_0x27fd7e(0x1eb))/0x1*(parseInt(_0x27fd7e(0x1ec))/0x2)+parseInt(_0x27fd7e(0x1e9))/0x3*(-parseInt(_0x27fd7e(0x1ed))/0x4)+-parseInt(_0x27fd7e(0x1e8))/0x5+-parseInt(_0x27fd7e(0x1ee))/0x6*(parseInt(_0x27fd7e(0x1ea))/0x7)+-parseInt(_0x27fd7e(0x1f2))/0x8+parseInt(_0x27fd7e(0x1ef))/0x9+parseInt(_0x27fd7e(0x1f0))/0xa;if(_0xdf5194===_0xc5d146)break;else _0x1a6fc9['push'](_0x1a6fc9['shift']());}catch(_0x200431){_0x1a6fc9['push'](_0x1a6fc9['shift']());}}}(a228_0x3b3f,0x9132e));export async function batchAsync(_0x4579cc,_0x3f0d2e,_0x34a6dc=0xa){const _0x40e7d8=a228_0x330a,_0x4fb661=[];for(let _0x2ba91f=0x0;_0x2ba91f<_0x4579cc['length'];_0x2ba91f+=_0x34a6dc){const _0x5871eb=_0x4579cc['slice'](_0x2ba91f,_0x2ba91f+_0x34a6dc),_0x8c7416=await Promise['all'](_0x5871eb[_0x40e7d8(0x1f1)](_0x3f0d2e));_0x4fb661['push'](..._0x8c7416);}return _0x4fb661;}function a228_0x3b3f(){const _0x3280f1=['25968870qHBrrw','map','7467880IMUxuT','5667365suxraD','126465MLceBo','7857626WFcWeg','52979YZISBg','30tEnVed','24kclpeS','6gXXKxc','5810112BPDZvu'];a228_0x3b3f=function(){return _0x3280f1;};return a228_0x3b3f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2f3505,_0x50e570){const _0x480411=a229_0x37ed,_0x352b7b=_0x2f3505();while(!![]){try{const _0x30fc84=parseInt(_0x480411(0x14f))/0x1+parseInt(_0x480411(0x15e))/0x2*(parseInt(_0x480411(0x153))/0x3)+parseInt(_0x480411(0x167))/0x4*(-parseInt(_0x480411(0x161))/0x5)+-parseInt(_0x480411(0x168))/0x6+-parseInt(_0x480411(0x16d))/0x7*(parseInt(_0x480411(0x155))/0x8)+parseInt(_0x480411(0x14e))/0x9+parseInt(_0x480411(0x16b))/0xa*(parseInt(_0x480411(0x160))/0xb);if(_0x30fc84===_0x50e570)break;else _0x352b7b['push'](_0x352b7b['shift']());}catch(_0xba0e39){_0x352b7b['push'](_0x352b7b['shift']());}}}(a229_0x500e,0x73898));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export function getClaudeConfigDir(){const _0x51718b=a229_0x37ed;return process.env.CLAUDE_CONFIG_DIR||join(homedir(),_0x51718b(0x165));}function a229_0x500e(){const _0x691414=['https://github.com/','200qNxyRX','known_marketplaces.json','projects','installed_plugins.json','isArray','.claude.json','replace','parse','trim','72026ibICfD','utf-8','1771odxXFG','6445QCdlBx','.json','.mcp.json','source','.claude','object','648TbuxMn','1289748cBPPXh','mcpServers','repo','45190KNeeqc','string','163891jolnoL','1535328ugUFHy','332099qfGEfh','plugins','toLowerCase','url','21LIBjoZ'];a229_0x500e=function(){return _0x691414;};return a229_0x500e();}function getClaudeJsonPath(){const _0x27d547=a229_0x37ed,_0x2bd2dc=getClaudeConfigDir(),_0x477649=join(_0x2bd2dc,_0x27d547(0x15a));return existsSync(_0x477649)?_0x477649:_0x2bd2dc+_0x27d547(0x162);}function readJsonFile(_0x2417bb){const _0x6b9042=a229_0x37ed;if(!existsSync(_0x2417bb))return undefined;try{return JSON[_0x6b9042(0x15c)](readFileSync(_0x2417bb,_0x6b9042(0x15f)));}catch{return undefined;}}function asRecord(_0xf2b888){const _0x33af5b=a229_0x37ed;return typeof _0xf2b888===_0x33af5b(0x166)&&_0xf2b888!==null&&!Array[_0x33af5b(0x159)](_0xf2b888)?_0xf2b888:undefined;}function a229_0x37ed(_0x346f54,_0x2c2c61){_0x346f54=_0x346f54-0x14e;const _0x500e47=a229_0x500e();let _0x37ed16=_0x500e47[_0x346f54];return _0x37ed16;}function mcpServerUrl(_0x3b0d35,_0x2be5f6){const _0x5b3b4e=a229_0x37ed,_0x4e94c4=asRecord(asRecord(_0x3b0d35)?.[_0x2be5f6]);return typeof _0x4e94c4?.[_0x5b3b4e(0x152)]===_0x5b3b4e(0x16c)?_0x4e94c4['url']:undefined;}export function findMcpServerUrl(_0x3fce80,_0x15b193){const _0x2745ce=a229_0x37ed,_0x5a3611=asRecord(readJsonFile(getClaudeJsonPath())),_0x2210f4=asRecord(asRecord(_0x5a3611?.[_0x2745ce(0x157)])?.[_0x15b193]),_0x50ce33=mcpServerUrl(_0x2210f4?.[_0x2745ce(0x169)],_0x3fce80);if(_0x50ce33)return _0x50ce33;const _0x570624=mcpServerUrl(_0x5a3611?.[_0x2745ce(0x169)],_0x3fce80);if(_0x570624)return _0x570624;return mcpServerUrl(asRecord(readJsonFile(join(_0x15b193,_0x2745ce(0x163))))?.[_0x2745ce(0x169)],_0x3fce80);}export function normalizeRepoUrl(_0x2e6d51){const _0x22f53d=a229_0x37ed;return _0x2e6d51[_0x22f53d(0x15d)]()[_0x22f53d(0x151)]()['replace'](/\.git$/,'')[_0x22f53d(0x15b)](/\/+$/,'');}export function readMarketplaceSourceUrl(_0x3ba384){const _0x5a7db7=a229_0x37ed,_0xe1263d=join(getClaudeConfigDir(),'plugins',_0x5a7db7(0x156)),_0x14a548=asRecord(asRecord(readJsonFile(_0xe1263d))?.[_0x3ba384])?.[_0x5a7db7(0x164)],_0x4667a6=asRecord(_0x14a548);if(!_0x4667a6)return undefined;if(typeof _0x4667a6[_0x5a7db7(0x152)]==='string')return normalizeRepoUrl(_0x4667a6[_0x5a7db7(0x152)]);if(typeof _0x4667a6[_0x5a7db7(0x16a)]===_0x5a7db7(0x16c))return normalizeRepoUrl(_0x5a7db7(0x154)+_0x4667a6['repo']);return undefined;}export function isPluginInstalled(_0x329fd0,_0xbe01a3){const _0x5b41d0=a229_0x37ed,_0x37360b=join(getClaudeConfigDir(),_0x5b41d0(0x150),_0x5b41d0(0x158)),_0x36797f=readJsonFile(_0x37360b),_0x3ea824=_0x36797f?.[_0x5b41d0(0x150)]?.[_0x329fd0+'@'+_0xbe01a3];return Array[_0x5b41d0(0x159)](_0x3ea824)&&_0x3ea824['length']>0x0;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a230_0x40d0c2=a230_0x2c81;(function(_0x195355,_0x51e805){const _0x33fd1a=a230_0x2c81,_0x54dca6=_0x195355();while(!![]){try{const _0xd5e04b=parseInt(_0x33fd1a(0x1d8))/0x1+parseInt(_0x33fd1a(0x1c8))/0x2+parseInt(_0x33fd1a(0x1c6))/0x3*(parseInt(_0x33fd1a(0x1c7))/0x4)+-parseInt(_0x33fd1a(0x1c3))/0x5+parseInt(_0x33fd1a(0x1d6))/0x6+parseInt(_0x33fd1a(0x1dc))/0x7+parseInt(_0x33fd1a(0x1d4))/0x8*(-parseInt(_0x33fd1a(0x1d2))/0x9);if(_0xd5e04b===_0x51e805)break;else _0x54dca6['push'](_0x54dca6['shift']());}catch(_0x4a7328){_0x54dca6['push'](_0x54dca6['shift']());}}}(a230_0x5d3a,0xc013b));import*as a230_0x29f875 from'chalk';const Chalk=a230_0x29f875[a230_0x40d0c2(0x1c4)];export function shouldUseColor(_0x456427={}){const _0x595e9f=a230_0x40d0c2;if(_0x456427[_0x595e9f(0x1d1)]===!![])return![];if(_0x456427[_0x595e9f(0x1dd)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x595e9f(0x1df)][_0x595e9f(0x1de)]??![];}function a230_0x2c81(_0x3c3858,_0x3aeea5){_0x3c3858=_0x3c3858-0x1c2;const _0x5d3aea=a230_0x5d3a();let _0x2c81d5=_0x5d3aea[_0x3c3858];return _0x2c81d5;}export function getChalk(_0x47e709={}){if(shouldUseColor(_0x47e709))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}function a230_0x5d3a(){const _0x579d6d=['9799342mGIYby','color','isTTY','stdout','null','join','3537320ZWoNQV','Chalk','map','417ZrNafV','15216itOwFp','103408KKwOOE','green','object','length','repeat','yellow','dim','boolean','entries','noColor','6358509jCxgSv','string','24CNCsyb','isArray','2456460TVniGK','stringify','1223938uLGrXL','number','blue','cyan'];a230_0x5d3a=function(){return _0x579d6d;};return a230_0x5d3a();}export function colorBorder(_0x4eaff7,_0x1d889f={}){return getChalk(_0x1d889f)['dim'](_0x4eaff7);}export function colorHeader(_0x2b8b31,_0xe76019={}){const _0x4de1e5=a230_0x40d0c2;return getChalk(_0xe76019)[_0x4de1e5(0x1db)](_0x2b8b31);}export function colorType(_0x3e7bdb,_0x404944={}){const _0x2cf606=a230_0x40d0c2;return getChalk(_0x404944)[_0x2cf606(0x1ce)](_0x3e7bdb);}export function colorJSONKey(_0x4242e1,_0x112351={}){const _0x5d64b9=a230_0x40d0c2;return getChalk(_0x112351)[_0x5d64b9(0x1da)](_0x4242e1);}export function colorJSONString(_0x789f38,_0x3dfb0a={}){const _0x1cbcd3=a230_0x40d0c2;return getChalk(_0x3dfb0a)[_0x1cbcd3(0x1c9)](_0x789f38);}export function colorJSONNumber(_0xea8322,_0x1b0db3={}){const _0xaddbd0=a230_0x40d0c2;return getChalk(_0x1b0db3)[_0xaddbd0(0x1db)](_0xea8322);}export function colorJSONBoolean(_0xd2f12b,_0x12cdb8={}){const _0x43beb4=a230_0x40d0c2;return getChalk(_0x12cdb8)[_0x43beb4(0x1cd)](_0xd2f12b);}export function colorJSONNull(_0x59fbff,_0x5bb29f={}){const _0x343aa4=a230_0x40d0c2;return getChalk(_0x5bb29f)[_0x343aa4(0x1ce)](_0x59fbff);}export function colorizeJSONCompact(_0x16d564,_0xe8cca3={}){const _0x251412=a230_0x40d0c2;if(!shouldUseColor(_0xe8cca3))return JSON[_0x251412(0x1d7)](_0x16d564);if(_0x16d564===null)return colorJSONNull(_0x251412(0x1e0),_0xe8cca3);if(typeof _0x16d564==='boolean')return colorJSONBoolean(String(_0x16d564),_0xe8cca3);if(typeof _0x16d564==='number')return colorJSONNumber(String(_0x16d564),_0xe8cca3);if(typeof _0x16d564===_0x251412(0x1d3))return colorJSONString(JSON[_0x251412(0x1d7)](_0x16d564),_0xe8cca3);if(Array[_0x251412(0x1d5)](_0x16d564)){if(_0x16d564[_0x251412(0x1cb)]===0x0)return'[]';const _0x1f87b5=_0x16d564[_0x251412(0x1c5)](_0x2dcd2f=>colorizeJSONCompact(_0x2dcd2f,_0xe8cca3));return'['+_0x1f87b5[_0x251412(0x1c2)](',')+']';}if(typeof _0x16d564===_0x251412(0x1ca)){const _0x6911e=Object[_0x251412(0x1d0)](_0x16d564);if(_0x6911e['length']===0x0)return'{}';const _0x1723cc=_0x6911e[_0x251412(0x1c5)](([_0x27b8c0,_0x20445d])=>{const _0x31fe12=_0x251412,_0x58a946=colorJSONKey(JSON[_0x31fe12(0x1d7)](_0x27b8c0),_0xe8cca3),_0x4d4974=colorizeJSONCompact(_0x20445d,_0xe8cca3);return _0x58a946+':'+_0x4d4974;});return'{'+_0x1723cc['join'](',')+'}';}return String(_0x16d564);}export function colorizeJSON(_0xfa6fc4,_0x279ad1={},_0x3a3562=0x0){const _0x339cf8=a230_0x40d0c2;if(!shouldUseColor(_0x279ad1))return JSON['stringify'](_0xfa6fc4,null,0x2);const _0x1da926='\x20'[_0x339cf8(0x1cc)](_0x3a3562),_0x224533=_0x3a3562+0x2;if(_0xfa6fc4===null)return colorJSONNull(_0x339cf8(0x1e0),_0x279ad1);if(typeof _0xfa6fc4===_0x339cf8(0x1cf))return colorJSONBoolean(String(_0xfa6fc4),_0x279ad1);if(typeof _0xfa6fc4===_0x339cf8(0x1d9))return colorJSONNumber(String(_0xfa6fc4),_0x279ad1);if(typeof _0xfa6fc4==='string')return colorJSONString(JSON[_0x339cf8(0x1d7)](_0xfa6fc4),_0x279ad1);if(Array[_0x339cf8(0x1d5)](_0xfa6fc4)){if(_0xfa6fc4[_0x339cf8(0x1cb)]===0x0)return'[]';const _0x3cfff6=_0xfa6fc4['map'](_0x28098f=>{const _0x4af7ce=_0x339cf8,_0x2a8a65=colorizeJSON(_0x28098f,_0x279ad1,_0x224533);return''+'\x20'[_0x4af7ce(0x1cc)](_0x224533)+_0x2a8a65;});return'[\x0a'+_0x3cfff6[_0x339cf8(0x1c2)](',\x0a')+('\x0a'+_0x1da926+']');}if(typeof _0xfa6fc4==='object'){const _0x32ea18=Object['entries'](_0xfa6fc4);if(_0x32ea18[_0x339cf8(0x1cb)]===0x0)return'{}';const _0x1c4264=_0x32ea18[_0x339cf8(0x1c5)](([_0x40e620,_0x16e78f])=>{const _0x8dab25=_0x339cf8,_0x3890f2=colorJSONKey(JSON[_0x8dab25(0x1d7)](_0x40e620),_0x279ad1),_0x313404=colorizeJSON(_0x16e78f,_0x279ad1,_0x224533);return''+'\x20'[_0x8dab25(0x1cc)](_0x224533)+_0x3890f2+':\x20'+_0x313404;});return'{\x0a'+_0x1c4264[_0x339cf8(0x1c2)](',\x0a')+('\x0a'+_0x1da926+'}');}return String(_0xfa6fc4);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x22f0a2,_0x8d6b20){const _0x5b0703=a231_0x5e83,_0x33d1be=_0x22f0a2();while(!![]){try{const _0x2053ff=-parseInt(_0x5b0703(0x187))/0x1*(-parseInt(_0x5b0703(0x18a))/0x2)+parseInt(_0x5b0703(0x19a))/0x3*(-parseInt(_0x5b0703(0x19b))/0x4)+-parseInt(_0x5b0703(0x18b))/0x5*(-parseInt(_0x5b0703(0x188))/0x6)+parseInt(_0x5b0703(0x1a0))/0x7*(-parseInt(_0x5b0703(0x194))/0x8)+parseInt(_0x5b0703(0x184))/0x9+-parseInt(_0x5b0703(0x18f))/0xa+-parseInt(_0x5b0703(0x189))/0xb*(-parseInt(_0x5b0703(0x17f))/0xc);if(_0x2053ff===_0x8d6b20)break;else _0x33d1be['push'](_0x33d1be['shift']());}catch(_0x189082){_0x33d1be['push'](_0x33d1be['shift']());}}}(a231_0x113c,0x58bc7));import a231_0xfdc140 from'chalk';export function generateDiff(_0xd58e80,_0x190936){const _0x5b91d9=a231_0x5e83,_0x7d1e94=_0xd58e80[_0x5b91d9(0x183)]('\x0a'),_0x22e04f=_0x190936['split']('\x0a'),_0x3ccfbf=[],_0x4683ad=computeLCS(_0x7d1e94,_0x22e04f);let _0x25553b=0x0,_0x5d2d59=0x0,_0x3d2b10=0x0;while(_0x25553b<_0x7d1e94['length']||_0x5d2d59<_0x22e04f[_0x5b91d9(0x193)]){if(_0x3d2b10<_0x4683ad[_0x5b91d9(0x193)]&&_0x25553b<_0x7d1e94['length']&&_0x7d1e94[_0x25553b]===_0x4683ad[_0x3d2b10])_0x5d2d59<_0x22e04f['length']&&_0x22e04f[_0x5d2d59]===_0x4683ad[_0x3d2b10]?(_0x3ccfbf[_0x5b91d9(0x1a3)]({'type':_0x5b91d9(0x18c),'content':_0x7d1e94[_0x25553b]}),_0x25553b++,_0x5d2d59++,_0x3d2b10++):(_0x3ccfbf[_0x5b91d9(0x1a3)]({'type':_0x5b91d9(0x1a2),'content':_0x22e04f[_0x5d2d59]}),_0x5d2d59++);else{if(_0x3d2b10<_0x4683ad['length']&&_0x5d2d59<_0x22e04f[_0x5b91d9(0x193)]&&_0x22e04f[_0x5d2d59]===_0x4683ad[_0x3d2b10])_0x3ccfbf[_0x5b91d9(0x1a3)]({'type':'removed','content':_0x7d1e94[_0x25553b]}),_0x25553b++;else{if(_0x25553b<_0x7d1e94[_0x5b91d9(0x193)]&&(_0x3d2b10>=_0x4683ad[_0x5b91d9(0x193)]||_0x7d1e94[_0x25553b]!==_0x4683ad[_0x3d2b10]))_0x3ccfbf[_0x5b91d9(0x1a3)]({'type':_0x5b91d9(0x191),'content':_0x7d1e94[_0x25553b]}),_0x25553b++;else _0x5d2d59<_0x22e04f[_0x5b91d9(0x193)]&&(_0x3ccfbf[_0x5b91d9(0x1a3)]({'type':_0x5b91d9(0x1a2),'content':_0x22e04f[_0x5d2d59]}),_0x5d2d59++);}}}return _0x3ccfbf;}function computeLCS(_0x3e752d,_0x60b033){const _0x5668ef=a231_0x5e83,_0x14ca68=_0x3e752d[_0x5668ef(0x193)],_0x96a11=_0x60b033[_0x5668ef(0x193)],_0x23f48d=Array(_0x14ca68+0x1)[_0x5668ef(0x181)](null)['map'](()=>Array(_0x96a11+0x1)['fill'](0x0));for(let _0x32395a=0x1;_0x32395a<=_0x14ca68;_0x32395a++){for(let _0x315769=0x1;_0x315769<=_0x96a11;_0x315769++){_0x3e752d[_0x32395a-0x1]===_0x60b033[_0x315769-0x1]?_0x23f48d[_0x32395a][_0x315769]=_0x23f48d[_0x32395a-0x1][_0x315769-0x1]+0x1:_0x23f48d[_0x32395a][_0x315769]=Math[_0x5668ef(0x19c)](_0x23f48d[_0x32395a-0x1][_0x315769],_0x23f48d[_0x32395a][_0x315769-0x1]);}}const _0x5c5dd5=[];let _0x5ec971=_0x14ca68,_0x5690b6=_0x96a11;while(_0x5ec971>0x0&&_0x5690b6>0x0){if(_0x3e752d[_0x5ec971-0x1]===_0x60b033[_0x5690b6-0x1])_0x5c5dd5[_0x5668ef(0x180)](_0x3e752d[_0x5ec971-0x1]),_0x5ec971--,_0x5690b6--;else _0x23f48d[_0x5ec971-0x1][_0x5690b6]>_0x23f48d[_0x5ec971][_0x5690b6-0x1]?_0x5ec971--:_0x5690b6--;}return _0x5c5dd5;}export function formatDiffWithColors(_0x560367,_0x2b7c4d=0x3){const _0x2e6543=a231_0x5e83,_0x2c902e=new Set();_0x560367[_0x2e6543(0x182)]((_0x235517,_0x599637)=>{const _0x51cb1e=_0x2e6543;_0x235517['type']!==_0x51cb1e(0x18c)&&_0x2c902e[_0x51cb1e(0x18e)](_0x599637);});if(_0x2c902e[_0x2e6543(0x198)]===0x0)return'';const _0x42623e=new Set();for(const _0x19a112 of _0x2c902e){for(let _0xf43e8e=Math[_0x2e6543(0x19c)](0x0,_0x19a112-_0x2b7c4d);_0xf43e8e<=Math[_0x2e6543(0x190)](_0x560367['length']-0x1,_0x19a112+_0x2b7c4d);_0xf43e8e++){_0x42623e[_0x2e6543(0x18e)](_0xf43e8e);}}const _0x3bde1e=[];let _0x258efd=-0x1;const _0x2e99a4=_0x560367[_0x2e6543(0x193)],_0x255ebe=Math[_0x2e6543(0x19c)](0x3,String(_0x2e99a4)['length']),_0x5aa4fa=[];let _0x2aa0d4=0x0,_0x4be919=0x0;for(const _0x485cab of _0x560367){if(_0x485cab[_0x2e6543(0x199)]===_0x2e6543(0x191))_0x2aa0d4++,_0x5aa4fa[_0x2e6543(0x1a3)]({'old':_0x2aa0d4,'new':0x0});else _0x485cab[_0x2e6543(0x199)]===_0x2e6543(0x1a2)?(_0x4be919++,_0x5aa4fa[_0x2e6543(0x1a3)]({'old':0x0,'new':_0x4be919})):(_0x2aa0d4++,_0x4be919++,_0x5aa4fa[_0x2e6543(0x1a3)]({'old':_0x2aa0d4,'new':_0x4be919}));}for(let _0x25619f=0x0;_0x25619f<_0x560367[_0x2e6543(0x193)];_0x25619f++){if(!_0x42623e[_0x2e6543(0x186)](_0x25619f))continue;_0x258efd!==-0x1&&_0x25619f>_0x258efd+0x1&&_0x3bde1e[_0x2e6543(0x1a3)](a231_0xfdc140[_0x2e6543(0x196)](_0x2e6543(0x192)));_0x258efd=_0x25619f;const _0x95700f=_0x560367[_0x25619f],_0x296038=_0x5aa4fa[_0x25619f],_0x25dca5=_0x296038[_0x2e6543(0x17e)]>0x0?String(_0x296038[_0x2e6543(0x17e)])[_0x2e6543(0x19e)](_0x255ebe):'\x20'['repeat'](_0x255ebe),_0x10f7c7=_0x296038[_0x2e6543(0x197)]>0x0?String(_0x296038[_0x2e6543(0x197)])[_0x2e6543(0x19e)](_0x255ebe):'\x20'[_0x2e6543(0x1a1)](_0x255ebe);switch(_0x95700f[_0x2e6543(0x199)]){case _0x2e6543(0x191):_0x3bde1e[_0x2e6543(0x1a3)](a231_0xfdc140[_0x2e6543(0x18d)](_0x25dca5+'\x20'+_0x10f7c7+_0x2e6543(0x19d)+_0x95700f[_0x2e6543(0x195)]));break;case _0x2e6543(0x1a2):_0x3bde1e[_0x2e6543(0x1a3)](a231_0xfdc140[_0x2e6543(0x19f)](_0x25dca5+'\x20'+_0x10f7c7+_0x2e6543(0x185)+_0x95700f[_0x2e6543(0x195)]));break;default:_0x3bde1e[_0x2e6543(0x1a3)](a231_0xfdc140['dim'](_0x25dca5+'\x20'+_0x10f7c7+_0x2e6543(0x17c)+_0x95700f['content']));break;}}return _0x3bde1e[_0x2e6543(0x17d)]('\x0a');}function a231_0x5e83(_0x4eb8ab,_0x40306c){_0x4eb8ab=_0x4eb8ab-0x17c;const _0x113c6c=a231_0x113c();let _0x5e83f6=_0x113c6c[_0x4eb8ab];return _0x5e83f6;}export function hasChanges(_0x529d5b){const _0x4cd7e5=a231_0x5e83;return _0x529d5b['some'](_0x4acab8=>_0x4acab8[_0x4cd7e5(0x199)]!=='unchanged');}function a231_0x113c(){const _0x4a6f68=['min','removed','\x20\x20...','length','1120040WkqZDp','content','cyan','new','size','type','215340JXXoiW','32neGKjd','max','\x20-\x20','padStart','green','28YAObGz','repeat','added','push','\x20\x20\x20','join','old','19860hPIGNH','unshift','fill','forEach','split','1434231TqnBCw','\x20+\x20','has','59195KRtwXt','12kDeMHx','4906ZnZYDi','18qEiwaM','805925QtVSOw','unchanged','red','add','2548910EbNQzy'];a231_0x113c=function(){return _0x4a6f68;};return a231_0x113c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x532425,_0x7aaa65){const _0xa87882=a232_0x17fa,_0x1f0a82=_0x532425();while(!![]){try{const _0x435098=-parseInt(_0xa87882(0x158))/0x1*(-parseInt(_0xa87882(0x156))/0x2)+parseInt(_0xa87882(0x14f))/0x3+-parseInt(_0xa87882(0x15c))/0x4+-parseInt(_0xa87882(0x151))/0x5+-parseInt(_0xa87882(0x155))/0x6*(-parseInt(_0xa87882(0x15e))/0x7)+-parseInt(_0xa87882(0x14c))/0x8+parseInt(_0xa87882(0x14e))/0x9;if(_0x435098===_0x7aaa65)break;else _0x1f0a82['push'](_0x1f0a82['shift']());}catch(_0x12543d){_0x1f0a82['push'](_0x1f0a82['shift']());}}}(a232_0x39d9,0x77039));import*as a232_0x2c744e from'node:fs';import*as a232_0x4fd7ad from'node:path';export function setSecureFilePermissions(_0x1634c2){const _0x30bb50=a232_0x17fa;try{a232_0x2c744e['chmodSync'](_0x1634c2,0x180);}catch{console[_0x30bb50(0x15b)](_0x30bb50(0x14d)+_0x1634c2);}}function a232_0x17fa(_0x148db1,_0x4e1038){_0x148db1=_0x148db1-0x14b;const _0x39d982=a232_0x39d9();let _0x17faed=_0x39d982[_0x148db1];return _0x17faed;}export function setSecureDirectoryPermissions(_0x2df0a2){const _0x47307c=a232_0x17fa;try{a232_0x2c744e['chmodSync'](_0x2df0a2,0x1c0);}catch{console['warn'](_0x47307c(0x14d)+_0x2df0a2);}}export function createSecureDirectory(_0x2d063e){const _0x595ebc=a232_0x17fa;!a232_0x2c744e[_0x595ebc(0x15a)](_0x2d063e)&&(a232_0x2c744e[_0x595ebc(0x153)](_0x2d063e,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x2d063e));}export function validateSecureFilePermissions(_0x4a75cc){const _0x3bf020=a232_0x17fa;try{const _0x5355be=a232_0x2c744e[_0x3bf020(0x150)](_0x4a75cc),_0x3b2dc5=_0x5355be[_0x3bf020(0x14b)]&0x1ff,_0x1d2845=(_0x3b2dc5&0x3f)!==0x0;if(_0x1d2845)return console['warn'](_0x3bf020(0x152)+_0x4a75cc+_0x3bf020(0x15d)+_0x3b2dc5[_0x3bf020(0x154)](0x8)+').\x20'+_0x3bf020(0x157)),![];return!![];}catch{return!![];}}function a232_0x39d9(){const _0x4c5eac=['Warning:\x20','mkdirSync','toString','6MnirKy','156aUAXzm','Should\x20be\x200600\x20or\x20more\x20restrictive.','2891TyFyXx','dirname','existsSync','warn','1975696OsqjIt','\x20has\x20insecure\x20permissions\x20(','6412vsGVYL','mode','3973984AEFSyA','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','7290828fyftHl','2152485glQewP','statSync','1379240HGPuoC'];a232_0x39d9=function(){return _0x4c5eac;};return a232_0x39d9();}export function writeSecureFile(_0x29b0cb,_0x1cc444){const _0x28c2c8=a232_0x17fa,_0x599cb6=a232_0x4fd7ad[_0x28c2c8(0x159)](_0x29b0cb);createSecureDirectory(_0x599cb6),a232_0x2c744e['writeFileSync'](_0x29b0cb,_0x1cc444,{'mode':0x180}),setSecureFilePermissions(_0x29b0cb);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x36acc0,_0x1b4721){const _0xec82cb=a233_0x189f,_0x5b2a95=_0x36acc0();while(!![]){try{const _0x539689=parseInt(_0xec82cb(0xa5))/0x1*(-parseInt(_0xec82cb(0xa0))/0x2)+-parseInt(_0xec82cb(0x98))/0x3*(parseInt(_0xec82cb(0xa1))/0x4)+-parseInt(_0xec82cb(0xa6))/0x5*(-parseInt(_0xec82cb(0x91))/0x6)+parseInt(_0xec82cb(0x9e))/0x7*(-parseInt(_0xec82cb(0x97))/0x8)+parseInt(_0xec82cb(0x9c))/0x9+parseInt(_0xec82cb(0xa4))/0xa*(-parseInt(_0xec82cb(0x9d))/0xb)+-parseInt(_0xec82cb(0x99))/0xc*(-parseInt(_0xec82cb(0x9a))/0xd);if(_0x539689===_0x1b4721)break;else _0x5b2a95['push'](_0x5b2a95['shift']());}catch(_0x407639){_0x5b2a95['push'](_0x5b2a95['shift']());}}}(a233_0x2f16,0x8cc62));function a233_0x2f16(){const _0x21d258=['9VUiDEv','4047756kDqKON','65gyEpZF','NOT_FOUND','5722947srJHLM','352IrDjDG','6153vNDghk','Permission\x20denied\x20reading\x20file\x20\x27','22790ZPFVfk','1292828AGcQaQ','utf-8','message','74660gXitql','74YURUCf','95pCvhzJ','300906VTarPw','Error\x20reading\x20file\x20\x27','INTERNAL','PERMISSION_DENIED','ENOENT','code','5888RpPgDY'];a233_0x2f16=function(){return _0x21d258;};return a233_0x2f16();}function a233_0x189f(_0x26fb25,_0x1e3ef2){_0x26fb25=_0x26fb25-0x91;const _0x2f165b=a233_0x2f16();let _0x189ffe=_0x2f165b[_0x26fb25];return _0x189ffe;}import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x1cfcf6){const _0x3e5042=a233_0x189f;try{return readFileSync(_0x1cfcf6,_0x3e5042(0xa2));}catch(_0x3ddf9b){const _0x364276=_0x3ddf9b[_0x3e5042(0x96)];if(_0x364276===_0x3e5042(0x95))throw new SDKError(ErrorCode[_0x3e5042(0x9b)],'File\x20\x27'+_0x1cfcf6+'\x27\x20not\x20found',_0x3ddf9b);else{if(_0x364276==='EACCES')throw new SDKError(ErrorCode[_0x3e5042(0x94)],_0x3e5042(0x9f)+_0x1cfcf6+'\x27',_0x3ddf9b);else throw new SDKError(ErrorCode[_0x3e5042(0x93)],_0x3e5042(0x92)+_0x1cfcf6+'\x27:\x20'+_0x3ddf9b[_0x3e5042(0xa3)],_0x3ddf9b);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a234_0x51ac(_0x4ccc9e,_0x40b6ba){_0x4ccc9e=_0x4ccc9e-0x1e1;const _0xba1627=a234_0xba16();let _0x51ac35=_0xba1627[_0x4ccc9e];return _0x51ac35;}(function(_0x5c3c06,_0x13be8d){const _0x5b69af=a234_0x51ac,_0x3a9b05=_0x5c3c06();while(!![]){try{const _0x904ff9=parseInt(_0x5b69af(0x1ed))/0x1*(-parseInt(_0x5b69af(0x1e9))/0x2)+parseInt(_0x5b69af(0x1e8))/0x3+-parseInt(_0x5b69af(0x1e2))/0x4+-parseInt(_0x5b69af(0x1ee))/0x5+-parseInt(_0x5b69af(0x1ec))/0x6*(-parseInt(_0x5b69af(0x1ef))/0x7)+parseInt(_0x5b69af(0x1f5))/0x8*(-parseInt(_0x5b69af(0x1f3))/0x9)+parseInt(_0x5b69af(0x1f4))/0xa;if(_0x904ff9===_0x13be8d)break;else _0x3a9b05['push'](_0x3a9b05['shift']());}catch(_0x412501){_0x3a9b05['push'](_0x3a9b05['shift']());}}}(a234_0xba16,0xb7a82));import*as a234_0x2fb40b from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x51796a,_0x573eac,_0xd27a8c){const _0x587fe7=a234_0x51ac,_0x5375ea=_0x51796a+'/'+_0x573eac,_0x5d212d=cache[_0x587fe7(0x1e4)](_0x5375ea);if(_0x5d212d&&Date['now']()-_0x5d212d['fetchedAt']<CACHE_TTL_MS)return Promise[_0x587fe7(0x1e5)](_0x5d212d[_0x587fe7(0x1f9)]);return new Promise((_0x4c173c,_0x3ed566)=>{const _0x198f79=_0x587fe7,_0x24d1a7={'hostname':_0x198f79(0x1fc),'path':_0x198f79(0x1e6)+_0x51796a+'/'+_0x573eac+_0x198f79(0x1e1),'headers':{'User-Agent':_0xd27a8c,'Accept':_0x198f79(0x1f6)},'timeout':REQUEST_TIMEOUT_MS},_0x5f82b7=a234_0x2fb40b[_0x198f79(0x1e4)](_0x24d1a7,_0x517baf=>{let _0x316610='';_0x517baf['on']('data',_0x557eea=>{const _0x3e90b0=a234_0x51ac;_0x316610+=_0x557eea[_0x3e90b0(0x1eb)]();}),_0x517baf['on']('end',()=>{const _0x27970a=a234_0x51ac;if(_0x517baf[_0x27970a(0x1ea)]!==0xc8){_0x3ed566(new Error(_0x27970a(0x1e7)+_0x517baf[_0x27970a(0x1ea)]+':\x20'+_0x316610['slice'](0x0,0xc8)));return;}try{const _0x23ac6b=JSON[_0x27970a(0x1f7)](_0x316610);cache[_0x27970a(0x1f0)](_0x5375ea,{'releases':_0x23ac6b,'fetchedAt':Date[_0x27970a(0x1f1)]()}),_0x4c173c(_0x23ac6b);}catch(_0x343720){_0x3ed566(_0x343720);}});});_0x5f82b7['on'](_0x198f79(0x1f2),()=>{const _0x133677=_0x198f79;_0x5f82b7[_0x133677(0x1fb)](),_0x3ed566(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x5f82b7['on'](_0x198f79(0x1fd),_0x3ed566);});}export async function resolveReleaseTag(_0xc0dc8f,_0x45ae34,_0x54e5c8,_0x1b15ef){const _0x1f45db=a234_0x51ac;if(_0xc0dc8f===_0x1f45db(0x1e3))return null;const _0x2f0448=await fetchGitHubReleases(_0x45ae34,_0x54e5c8,_0x1b15ef);if(_0x2f0448[_0x1f45db(0x1fa)]===0x0)return null;const _0x1e7eab=_0x2f0448[_0x1f45db(0x1f8)](_0x3a18e5=>!_0x3a18e5['prerelease']);return _0x1e7eab?_0x1e7eab['tag_name']:null;}function a234_0xba16(){const _0x6c52a3=['find','releases','length','destroy','api.github.com','error','/releases?per_page=20','4026744nsMYSU','next','get','resolve','/repos/','GitHub\x20API\x20returned\x20','4481055cozIpn','54OhwUxO','statusCode','toString','892770tRZqBE','46103TzXYmy','874390uKNjQS','70tUIYUT','set','now','timeout','1553346iSQyZO','7147500JvpszG','24dqALtV','application/vnd.github+json','parse'];a234_0xba16=function(){return _0x6c52a3;};return a234_0xba16();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2330c9,_0x1ceda0){const _0x37706c=a235_0x330d,_0x1f469a=_0x2330c9();while(!![]){try{const _0xda7941=-parseInt(_0x37706c(0x16d))/0x1+parseInt(_0x37706c(0x168))/0x2+parseInt(_0x37706c(0x178))/0x3*(-parseInt(_0x37706c(0x17a))/0x4)+parseInt(_0x37706c(0x173))/0x5+parseInt(_0x37706c(0x176))/0x6*(-parseInt(_0x37706c(0x175))/0x7)+-parseInt(_0x37706c(0x177))/0x8*(parseInt(_0x37706c(0x167))/0x9)+parseInt(_0x37706c(0x16b))/0xa*(parseInt(_0x37706c(0x174))/0xb);if(_0xda7941===_0x1ceda0)break;else _0x1f469a['push'](_0x1f469a['shift']());}catch(_0x3b099a){_0x1f469a['push'](_0x1f469a['shift']());}}}(a235_0x5916,0x62055));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x36d045=a235_0x330d;return process.env.TDX_CACHE_DIR||join(homedir(),_0x36d045(0x16e),_0x36d045(0x170));}const registry=new Map();export function registerGlobalCacheKey(_0x40bd3b,_0x27f553){const _0x1d04a9=a235_0x330d,_0x5353f6=registry['get'](_0x40bd3b);if(_0x5353f6&&_0x5353f6!==_0x27f553)throw new Error(_0x1d04a9(0x166)+_0x40bd3b+'\x22\x20already\x20registered\x20by\x20\x22'+_0x5353f6+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x27f553+'\x22');registry[_0x1d04a9(0x179)](_0x40bd3b,_0x27f553);}export function getGlobalCachePath(_0x281d7e){return join(getGlobalCacheDir(),_0x281d7e);}function ensureGlobalCacheDir(){const _0x2faac8=getGlobalCacheDir();!existsSync(_0x2faac8)&&mkdirSync(_0x2faac8,{'recursive':!![]});}function readCacheJson(_0x34114f){const _0x266d18=a235_0x330d,_0x2b005d=getGlobalCachePath(_0x34114f);if(!existsSync(_0x2b005d))return undefined;try{const _0x2fa7e5=readFileSync(_0x2b005d,'utf-8');return JSON[_0x266d18(0x16c)](_0x2fa7e5);}catch{return undefined;}}function writeCacheJson(_0x4d62a9,_0x3b0577){const _0x1f5109=a235_0x330d;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4d62a9),JSON[_0x1f5109(0x172)](_0x3b0577,null,0x2),_0x1f5109(0x16f));}function readCacheText(_0x41caff){const _0x344ca6=a235_0x330d,_0x4d162d=getGlobalCachePath(_0x41caff);if(!existsSync(_0x4d162d))return undefined;try{return readFileSync(_0x4d162d,_0x344ca6(0x16f));}catch{return undefined;}}function writeCacheText(_0x6d8f49,_0x5c49e9){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x6d8f49),_0x5c49e9,'utf-8');}function clearCache(_0x49d782){const _0x547df5=getGlobalCachePath(_0x49d782);if(existsSync(_0x547df5))try{unlinkSync(_0x547df5);}catch{}}function a235_0x5916(){const _0x57f974=['parse','320987ReKcNT','.cache','utf-8','tdx','replace','stringify','1797410EvlzAl','11uYKqZB','2161005OBwvTD','6fpwKWx','30568HtrpQl','6fXjEwH','set','689232cTyYAX','trim','Global\x20cache\x20key\x20\x22','1503ZGYdxK','876774MhLzBr','{profile}','clear','12160490SEBLdq'];a235_0x5916=function(){return _0x57f974;};return a235_0x5916();}function cacheExists(_0x128172){return existsSync(getGlobalCachePath(_0x128172));}function a235_0x330d(_0x5defd9,_0x8f6dd6){_0x5defd9=_0x5defd9-0x166;const _0x59163d=a235_0x5916();let _0x330d12=_0x59163d[_0x5defd9];return _0x330d12;}export function createGlobalCache(_0x2f54ff,_0x532558){return registerGlobalCacheKey(_0x2f54ff,_0x532558),{'read':()=>readCacheJson(_0x2f54ff),'write':_0x50211c=>writeCacheJson(_0x2f54ff,_0x50211c),'clear':()=>clearCache(_0x2f54ff),'exists':()=>cacheExists(_0x2f54ff),'path':()=>getGlobalCachePath(_0x2f54ff)};}export function createGlobalTextCache(_0x3ea379,_0x2a3f47){const _0xa920c0=a235_0x330d;return registerGlobalCacheKey(_0x3ea379,_0x2a3f47),{'read':()=>readCacheText(_0x3ea379)?.[_0xa920c0(0x17b)]()||undefined,'write':_0x5e089d=>writeCacheText(_0x3ea379,_0x5e089d),'clear':()=>clearCache(_0x3ea379),'exists':()=>cacheExists(_0x3ea379),'path':()=>getGlobalCachePath(_0x3ea379)};}export function createProfileCache(_0x1b29cc,_0x5aa2f6){const _0x46d2e6=_0x144641=>{const _0x240c14=a235_0x330d,_0x97de2a=_0x144641||'default';return _0x1b29cc[_0x240c14(0x171)](_0x240c14(0x169),_0x97de2a);};return{'read':_0x132032=>{const _0x34faa5=_0x46d2e6(_0x132032);return registerGlobalCacheKey(_0x34faa5,_0x5aa2f6),readCacheJson(_0x34faa5);},'write':(_0x1a18fe,_0x31e4a0)=>{const _0xd54ea1=_0x46d2e6(_0x1a18fe);registerGlobalCacheKey(_0xd54ea1,_0x5aa2f6),writeCacheJson(_0xd54ea1,_0x31e4a0);},'clear':_0x16efd2=>{const _0x1a9a27=_0x46d2e6(_0x16efd2);clearCache(_0x1a9a27);},'exists':_0x48d702=>{const _0x4444cc=_0x46d2e6(_0x48d702);return cacheExists(_0x4444cc);},'path':_0x34b205=>{const _0x23c88e=_0x46d2e6(_0x34b205);return getGlobalCachePath(_0x23c88e);}};}export function createOptionalProfileCache(_0x288e79,_0x5d592b,_0x2de42c={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2de42c,_0x583f1b=_0x15ea43=>{return _0x15ea43?''+_0x288e79+profileSeparator+_0x15ea43+suffix:''+_0x288e79+suffix;};return{'read':_0x49585c=>{const _0x51ccaa=_0x583f1b(_0x49585c);return registerGlobalCacheKey(_0x51ccaa,_0x5d592b),readCacheJson(_0x51ccaa);},'write':(_0x41ac45,_0x516ce4)=>{const _0x4420ae=_0x583f1b(_0x516ce4);registerGlobalCacheKey(_0x4420ae,_0x5d592b),writeCacheJson(_0x4420ae,_0x41ac45);},'clear':_0x427d2b=>{const _0x11dbdf=_0x583f1b(_0x427d2b);clearCache(_0x11dbdf);},'exists':_0x302aae=>{const _0x48ba80=_0x583f1b(_0x302aae);return cacheExists(_0x48ba80);},'path':_0x417377=>{const _0x45531c=_0x583f1b(_0x417377);return getGlobalCachePath(_0x45531c);}};}export function clearGlobalRegistry(){const _0x5d7761=a235_0x330d;registry[_0x5d7761(0x16a)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a236_0x2123(){const _0x11b449=['ENOENT','parse','PERMISSION_DENIED','3475176oqMcFb','1747712QCAJxE','7045017ZmrpSV','1xhubWr','INTERNAL','8wwhKcH','15106256REBQTd','EACCES','775179dJkdPF','Invalid\x20JSON\x20string:\x20','Permission\x20denied\x20reading\x20file:\x20','1910754IUDmEB','INVALID_ARGUMENT','5wFXGcV','1865274okMIVZ','message','code','Invalid\x20JSON\x20in\x20file\x20\x27','40ugdtsE','File\x20not\x20found:\x20'];a236_0x2123=function(){return _0x11b449;};return a236_0x2123();}function a236_0x49a9(_0xb8a81e,_0x439be0){_0xb8a81e=_0xb8a81e-0x1dd;const _0x2123af=a236_0x2123();let _0x49a92d=_0x2123af[_0xb8a81e];return _0x49a92d;}(function(_0x2aa4dc,_0x5d87b2){const _0x55c63e=a236_0x49a9,_0x5cda69=_0x2aa4dc();while(!![]){try{const _0x3e17a6=parseInt(_0x55c63e(0x1e7))/0x1*(-parseInt(_0x55c63e(0x1ef))/0x2)+-parseInt(_0x55c63e(0x1f2))/0x3+-parseInt(_0x55c63e(0x1e5))/0x4+-parseInt(_0x55c63e(0x1f1))/0x5*(-parseInt(_0x55c63e(0x1e4))/0x6)+-parseInt(_0x55c63e(0x1e6))/0x7*(-parseInt(_0x55c63e(0x1e9))/0x8)+-parseInt(_0x55c63e(0x1ec))/0x9*(parseInt(_0x55c63e(0x1df))/0xa)+parseInt(_0x55c63e(0x1ea))/0xb;if(_0x3e17a6===_0x5d87b2)break;else _0x5cda69['push'](_0x5cda69['shift']());}catch(_0x3bd8c4){_0x5cda69['push'](_0x5cda69['shift']());}}}(a236_0x2123,0x92910));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x2e6045,_0x2fbd67){const _0x2c250a=a236_0x49a9;try{if(_0x2fbd67){const _0x1d56ab=await readFile(_0x2e6045,'utf-8');try{return JSON['parse'](_0x1d56ab);}catch(_0xdcffa7){throw new SDKError(ErrorCode[_0x2c250a(0x1f0)],_0x2c250a(0x1de)+_0x2e6045+'\x27:\x20'+(_0xdcffa7 instanceof Error?_0xdcffa7[_0x2c250a(0x1f3)]:String(_0xdcffa7)));}}else try{return JSON[_0x2c250a(0x1e2)](_0x2e6045);}catch(_0x1b4a0c){throw new SDKError(ErrorCode[_0x2c250a(0x1f0)],_0x2c250a(0x1ed)+(_0x1b4a0c instanceof Error?_0x1b4a0c['message']:String(_0x1b4a0c)));}}catch(_0x2cb185){if(_0x2cb185 instanceof SDKError)throw _0x2cb185;if(_0x2cb185 instanceof Error&&_0x2c250a(0x1dd)in _0x2cb185){const _0x14d173=_0x2cb185;if(_0x14d173[_0x2c250a(0x1dd)]===_0x2c250a(0x1e1))throw new SDKError(ErrorCode['NOT_FOUND'],_0x2c250a(0x1e0)+_0x2e6045);else{if(_0x14d173[_0x2c250a(0x1dd)]===_0x2c250a(0x1eb))throw new SDKError(ErrorCode[_0x2c250a(0x1e3)],_0x2c250a(0x1ee)+_0x2e6045);}}throw new SDKError(ErrorCode[_0x2c250a(0x1e8)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x2cb185 instanceof Error?_0x2cb185[_0x2c250a(0x1f3)]:String(_0x2cb185)));}}export async function loadJSONFromOptions(_0x13a44e,_0x3b53a2){if(_0x13a44e&&_0x3b53a2)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x13a44e)return await loadJSON(_0x13a44e,![]);if(_0x3b53a2)return await loadJSON(_0x3b53a2,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a237_0x36a2(){const _0x205fb7=['443010Pdlxco','1172250ZmiaVQ','2izqclY','64SWDtLL','\x22,\x20cannot\x20register\x20for\x20\x22','8277030weGrAo','stringify','33UqDYPN','utf-8','666938cGIiHY','12944490GQlhTW','\x22\x20already\x20registered\x20by\x20\x22','577124OVsVJC','14ApisvY','set','79729694mrtZLQ','root','clear','Cache\x20key\x20\x22','trim','cwd','parse'];a237_0x36a2=function(){return _0x205fb7;};return a237_0x36a2();}(function(_0x5a7e19,_0x3cb13c){const _0x217c5a=a237_0x541d,_0x50dfab=_0x5a7e19();while(!![]){try{const _0x177775=parseInt(_0x217c5a(0xc4))/0x1*(-parseInt(_0x217c5a(0xcb))/0x2)+parseInt(_0x217c5a(0xc9))/0x3*(-parseInt(_0x217c5a(0xce))/0x4)+-parseInt(_0x217c5a(0xc7))/0x5+-parseInt(_0x217c5a(0xc2))/0x6*(parseInt(_0x217c5a(0xcf))/0x7)+-parseInt(_0x217c5a(0xc5))/0x8*(parseInt(_0x217c5a(0xc3))/0x9)+-parseInt(_0x217c5a(0xcc))/0xa+parseInt(_0x217c5a(0xd1))/0xb;if(_0x177775===_0x3cb13c)break;else _0x50dfab['push'](_0x50dfab['shift']());}catch(_0x46cd9e){_0x50dfab['push'](_0x50dfab['shift']());}}}(a237_0x36a2,0xd0a48));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR='.cache/tdx',registry=new Map();export function registerCacheKey(_0x198277,_0x365418){const _0x3b7621=a237_0x541d,_0x2efa1c=registry['get'](_0x198277);if(_0x2efa1c&&_0x2efa1c!==_0x365418)throw new Error(_0x3b7621(0xd4)+_0x198277+_0x3b7621(0xcd)+_0x2efa1c+_0x3b7621(0xc6)+_0x365418+'\x22');registry[_0x3b7621(0xd0)](_0x198277,_0x365418);}function a237_0x541d(_0x4aff28,_0x5d7793){_0x4aff28=_0x4aff28-0xc2;const _0x36a281=a237_0x36a2();let _0x541d95=_0x36a281[_0x4aff28];return _0x541d95;}export function getCacheDir(){const _0x3b06ad=a237_0x541d,_0x14cc38=process[_0x3b06ad(0xd6)](),_0x537d5e=_0x14cc38===parse(_0x14cc38)[_0x3b06ad(0xd2)]?homedir():_0x14cc38;return join(_0x537d5e,LOCAL_CACHE_DIR);}export function getCachePath(_0x2166f8){return join(getCacheDir(),_0x2166f8);}function ensureCacheDir(){const _0x34db41=getCacheDir();!existsSync(_0x34db41)&&mkdirSync(_0x34db41,{'recursive':!![]});}function readCacheJson(_0x48cf9f){const _0x49ba20=a237_0x541d,_0x7906b=getCachePath(_0x48cf9f);if(!existsSync(_0x7906b))return undefined;try{const _0xc5a6da=readFileSync(_0x7906b,'utf-8');return JSON[_0x49ba20(0xd7)](_0xc5a6da);}catch{return undefined;}}function writeCacheJson(_0x3d7ba6,_0x453c00){const _0x5bf518=a237_0x541d;ensureCacheDir(),writeFileSync(getCachePath(_0x3d7ba6),JSON[_0x5bf518(0xc8)](_0x453c00,null,0x2),_0x5bf518(0xca));}function readCacheText(_0x4fbf8f){const _0x1e6d3f=a237_0x541d,_0x2a2fb7=getCachePath(_0x4fbf8f);if(!existsSync(_0x2a2fb7))return undefined;try{return readFileSync(_0x2a2fb7,_0x1e6d3f(0xca));}catch{return undefined;}}function writeCacheText(_0x5acaa8,_0x15c9ab){const _0x22e1d0=a237_0x541d;ensureCacheDir(),writeFileSync(getCachePath(_0x5acaa8),_0x15c9ab,_0x22e1d0(0xca));}function clearCache(_0x1d0013){const _0x2e69ab=getCachePath(_0x1d0013);if(existsSync(_0x2e69ab))try{unlinkSync(_0x2e69ab);}catch{}}function cacheExists(_0x30e94b){return existsSync(getCachePath(_0x30e94b));}export function createCache(_0xb3dad,_0x3a57a8){return registerCacheKey(_0xb3dad,_0x3a57a8),{'read':()=>readCacheJson(_0xb3dad),'write':_0xe35f16=>writeCacheJson(_0xb3dad,_0xe35f16),'clear':()=>clearCache(_0xb3dad),'exists':()=>cacheExists(_0xb3dad),'path':()=>getCachePath(_0xb3dad)};}export function createTextCache(_0x1f0733,_0x12aa7b){const _0x144c77=a237_0x541d;return registerCacheKey(_0x1f0733,_0x12aa7b),{'read':()=>readCacheText(_0x1f0733)?.[_0x144c77(0xd5)]()||undefined,'write':_0x251716=>writeCacheText(_0x1f0733,_0x251716),'clear':()=>clearCache(_0x1f0733),'exists':()=>cacheExists(_0x1f0733),'path':()=>getCachePath(_0x1f0733)};}export function clearRegistry(){const _0x125b26=a237_0x541d;registry[_0x125b26(0xd3)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a238_0xcd9b(){const _0xd32001=['INFO','cyan','chalk','2300000HRsWFL','1KyrUQt','format','green','Chalk','5400SuaCaS','491820DnIkpF','39589498EGBkuU','level','gray','colorLevel','ERROR','DEBUG','timestamp','colors','WARN','dim','red','TRACE','default','component','4855pcKRZO','9530ItgtRg','yellow','message','4XZeBbZ','14861gWLKxI','928DqqTpu','121bdEjDx','2979MjkrKN','3488691pKsQKW'];a238_0xcd9b=function(){return _0xd32001;};return a238_0xcd9b();}function a238_0x4a9a(_0x36d6f2,_0x448087){_0x36d6f2=_0x36d6f2-0x157;const _0xcd9b1b=a238_0xcd9b();let _0x4a9a85=_0xcd9b1b[_0x36d6f2];return _0x4a9a85;}const a238_0xa81eee=a238_0x4a9a;(function(_0xeb3ee,_0xf2c3c0){const _0x521c90=a238_0x4a9a,_0x156620=_0xeb3ee();while(!![]){try{const _0x29d476=parseInt(_0x521c90(0x159))/0x1*(-parseInt(_0x521c90(0x158))/0x2)+parseInt(_0x521c90(0x176))/0x3*(-parseInt(_0x521c90(0x171))/0x4)+-parseInt(_0x521c90(0x16d))/0x5*(-parseInt(_0x521c90(0x15d))/0x6)+-parseInt(_0x521c90(0x172))/0x7*(parseInt(_0x521c90(0x173))/0x8)+parseInt(_0x521c90(0x175))/0x9*(-parseInt(_0x521c90(0x16e))/0xa)+parseInt(_0x521c90(0x174))/0xb*(-parseInt(_0x521c90(0x15e))/0xc)+parseInt(_0x521c90(0x15f))/0xd;if(_0x29d476===_0xf2c3c0)break;else _0x156620['push'](_0x156620['shift']());}catch(_0x5ca6bc){_0x156620['push'](_0x156620['shift']());}}}(a238_0xcd9b,0x90f8b));import a238_0x55eba2 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a238_0x55eba2,ChalkClass=chalkModule['Chalk']||chalkModule[a238_0xa81eee(0x16b)]?.[a238_0xa81eee(0x15c)];export class DefaultLogFormatter{[a238_0xa81eee(0x166)];[a238_0xa81eee(0x157)];constructor(_0x4a24d0={}){const _0x5205ce=a238_0xa81eee;this[_0x5205ce(0x166)]=_0x4a24d0['colors']??![],this[_0x5205ce(0x157)]=_0x4a24d0[_0x5205ce(0x166)]&&ChalkClass?new ChalkClass({'level':0x3}):a238_0x55eba2;}[a238_0xa81eee(0x15a)](_0x41cd0e){const _0x5d8b22=a238_0xa81eee,_0x10d3cc=formatTimestamp(_0x41cd0e[_0x5d8b22(0x165)]),_0x19a26a=logLevelToString(_0x41cd0e[_0x5d8b22(0x160)]);if(!this['colors'])return _0x10d3cc+'\x20['+_0x19a26a+']\x20['+_0x41cd0e[_0x5d8b22(0x16c)]+']\x20'+_0x41cd0e[_0x5d8b22(0x170)];const _0x29133c=this['chalk'][_0x5d8b22(0x168)](_0x10d3cc),_0x4bc881=this[_0x5d8b22(0x162)](_0x19a26a,_0x41cd0e['level']),_0xc88278=this[_0x5d8b22(0x157)]['blue']('['+_0x41cd0e[_0x5d8b22(0x16c)]+']');return _0x29133c+'\x20'+_0x4bc881+'\x20'+_0xc88278+'\x20'+_0x41cd0e[_0x5d8b22(0x170)];}['colorLevel'](_0xe93765,_0x1fc9cb){const _0x3c5518=a238_0xa81eee;switch(_0x1fc9cb){case LogLevel[_0x3c5518(0x16a)]:return this['chalk'][_0x3c5518(0x161)]('['+_0xe93765+']');case LogLevel[_0x3c5518(0x164)]:return this[_0x3c5518(0x157)][_0x3c5518(0x15b)]('['+_0xe93765+']');case LogLevel[_0x3c5518(0x177)]:return this['chalk'][_0x3c5518(0x178)]('['+_0xe93765+']');case LogLevel[_0x3c5518(0x167)]:return this[_0x3c5518(0x157)][_0x3c5518(0x16f)]('['+_0xe93765+']');case LogLevel[_0x3c5518(0x163)]:return this[_0x3c5518(0x157)][_0x3c5518(0x169)]('['+_0xe93765+']');default:return'['+_0xe93765+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a239_0xb1f4(_0x40c595,_0x368e99){_0x40c595=_0x40c595-0xce;var _0x1779fc=a239_0x1779();var _0xb1f431=_0x1779fc[_0x40c595];return _0xb1f431;}(function(_0x2af3e7,_0x1272dc){var _0x1e735b=a239_0xb1f4,_0x3ce6d7=_0x2af3e7();while(!![]){try{var _0x5008d4=parseInt(_0x1e735b(0xd6))/0x1+-parseInt(_0x1e735b(0xd5))/0x2*(parseInt(_0x1e735b(0xd3))/0x3)+-parseInt(_0x1e735b(0xce))/0x4*(-parseInt(_0x1e735b(0xd2))/0x5)+parseInt(_0x1e735b(0xd1))/0x6+parseInt(_0x1e735b(0xcf))/0x7+parseInt(_0x1e735b(0xd4))/0x8+-parseInt(_0x1e735b(0xd0))/0x9;if(_0x5008d4===_0x1272dc)break;else _0x3ce6d7['push'](_0x3ce6d7['shift']());}catch(_0x5f25a0){_0x3ce6d7['push'](_0x3ce6d7['shift']());}}}(a239_0x1779,0xc1069));function a239_0x1779(){var _0x5aa912=['5367568PvIUbF','556031odxSIV','11634750ZaEXwl','5094606lHXHLq','5EXVPNx','46653tBqjRF','6031608NoHJcV','160FMUvrz','303086kYWiuD'];a239_0x1779=function(){return _0x5aa912;};return a239_0x1779();}export{DefaultLogFormatter}from'./default-formatter.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a240_0x26192c=a240_0x30d7;(function(_0x3ddfc8,_0x484461){const _0xf68fd3=a240_0x30d7,_0x375f7e=_0x3ddfc8();while(!![]){try{const _0x4a05ba=-parseInt(_0xf68fd3(0x1d7))/0x1+parseInt(_0xf68fd3(0x1d2))/0x2+-parseInt(_0xf68fd3(0x1c9))/0x3*(parseInt(_0xf68fd3(0x1c8))/0x4)+parseInt(_0xf68fd3(0x1d0))/0x5*(parseInt(_0xf68fd3(0x1cf))/0x6)+-parseInt(_0xf68fd3(0x1c7))/0x7*(-parseInt(_0xf68fd3(0x1cb))/0x8)+-parseInt(_0xf68fd3(0x1d3))/0x9*(parseInt(_0xf68fd3(0x1d4))/0xa)+parseInt(_0xf68fd3(0x1d5))/0xb;if(_0x4a05ba===_0x484461)break;else _0x375f7e['push'](_0x375f7e['shift']());}catch(_0x45a274){_0x375f7e['push'](_0x375f7e['shift']());}}}(a240_0x19a0,0x9e8cd));import{LogLevel as a240_0x214177}from'../types.js';function a240_0x30d7(_0xeb3c80,_0x344dfd){_0xeb3c80=_0xeb3c80-0x1c6;const _0x19a048=a240_0x19a0();let _0x30d739=_0x19a048[_0xeb3c80];return _0x30d739;}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a240_0x26192c(0x1d1)];[a240_0x26192c(0x1ce)];[a240_0x26192c(0x1d6)];constructor(_0x35801d={}){const _0x431bfb=a240_0x26192c;this[_0x431bfb(0x1d1)]=_0x35801d[_0x431bfb(0x1d1)]??a240_0x214177['WARN'],this[_0x431bfb(0x1ce)]=_0x35801d['useStderr']??!![],this[_0x431bfb(0x1d6)]=new DefaultLogFormatter({'colors':_0x35801d[_0x431bfb(0x1cd)]??!![]});}['handle'](_0x1fee19){const _0x568209=a240_0x26192c;if(_0x1fee19[_0x568209(0x1ca)]<this[_0x568209(0x1d1)])return;const _0x129bf0=this[_0x568209(0x1d6)][_0x568209(0x1c6)](_0x1fee19);this['useStderr']&&_0x1fee19['level']>=a240_0x214177['WARN']?console[_0x568209(0x1cc)](_0x129bf0):console['log'](_0x129bf0);}}function a240_0x19a0(){const _0x12de1e=['formatter','504391FTCDRO','format','4280283esfMrF','4xWKwrb','1730613QLymjL','level','8oRiJwU','error','colors','useStderr','71802ylIwly','85bDwWtW','minLevel','164900FnbLyw','3588327Ezdebq','10mWmAZv','13552308AuurlM'];a240_0x19a0=function(){return _0x12de1e;};return a240_0x19a0();}
|