@treasuredata/tdx 2026.3.31 → 2026.3.32
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.d.ts +1 -1
- package/dist/cli-categories.js +1 -1
- package/dist/cli-categories.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +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/auth-login-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-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-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/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.d.ts +36 -0
- package/dist/commands/work-command.d.ts.map +1 -0
- package/dist/commands/work-command.js +1 -0
- package/dist/commands/work-command.js.map +1 -0
- 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.d.ts +2 -0
- package/dist/core/project-config.d.ts.map +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/project-config.js.map +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/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-yaml.js +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.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/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.d.ts +1 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/policy.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/index.d.ts +2 -0
- package/dist/sdk/types/index.d.ts.map +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/index.js.map +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/types/workspace.d.ts +146 -0
- package/dist/sdk/types/workspace.d.ts.map +1 -0
- package/dist/sdk/types/workspace.js +1 -0
- package/dist/sdk/types/workspace.js.map +1 -0
- 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/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/sdk/workspace/frontmatter.d.ts +28 -0
- package/dist/sdk/workspace/frontmatter.d.ts.map +1 -0
- package/dist/sdk/workspace/frontmatter.js +1 -0
- package/dist/sdk/workspace/frontmatter.js.map +1 -0
- package/dist/sdk/workspace/git.d.ts +55 -0
- package/dist/sdk/workspace/git.d.ts.map +1 -0
- package/dist/sdk/workspace/git.js +1 -0
- package/dist/sdk/workspace/git.js.map +1 -0
- package/dist/sdk/workspace/index.d.ts +149 -0
- package/dist/sdk/workspace/index.d.ts.map +1 -0
- package/dist/sdk/workspace/index.js +1 -0
- package/dist/sdk/workspace/index.js.map +1 -0
- package/dist/sdk/workspace/skills.d.ts +34 -0
- package/dist/sdk/workspace/skills.d.ts.map +1 -0
- package/dist/sdk/workspace/skills.js +1 -0
- package/dist/sdk/workspace/skills.js.map +1 -0
- package/dist/sdk/workspace/templates.d.ts +17 -0
- package/dist/sdk/workspace/templates.d.ts.map +1 -0
- package/dist/sdk/workspace/templates.js +1 -0
- package/dist/sdk/workspace/templates.js.map +1 -0
- package/dist/sdk/workspace/wikilinks.d.ts +44 -0
- package/dist/sdk/workspace/wikilinks.d.ts.map +1 -0
- package/dist/sdk/workspace/wikilinks.js +1 -0
- package/dist/sdk/workspace/wikilinks.js.map +1 -0
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/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/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 a197_0xde0ba3=a197_0x3a59;function a197_0x3a59(_0x1e421b,_0x1cc331){_0x1e421b=_0x1e421b-0x1c4;const _0x240290=a197_0x2402();let _0x3a5927=_0x240290[_0x1e421b];return _0x3a5927;}(function(_0x5b4e79,_0x1d39b3){const _0x4c6d55=a197_0x3a59,_0x276ba3=_0x5b4e79();while(!![]){try{const _0x294ed9=-parseInt(_0x4c6d55(0x20d))/0x1*(parseInt(_0x4c6d55(0x227))/0x2)+parseInt(_0x4c6d55(0x203))/0x3+parseInt(_0x4c6d55(0x1c6))/0x4+parseInt(_0x4c6d55(0x1db))/0x5*(parseInt(_0x4c6d55(0x1eb))/0x6)+parseInt(_0x4c6d55(0x1df))/0x7+-parseInt(_0x4c6d55(0x1e1))/0x8+-parseInt(_0x4c6d55(0x1f6))/0x9;if(_0x294ed9===_0x1d39b3)break;else _0x276ba3['push'](_0x276ba3['shift']());}catch(_0x260204){_0x276ba3['push'](_0x276ba3['shift']());}}}(a197_0x2402,0x90a4d));export const fixtures={'database':{'basic':{'name':a197_0xde0ba3(0x229),'count':0x5,'created_at':a197_0xde0ba3(0x207),'updated_at':a197_0xde0ba3(0x207),'permission':a197_0xde0ba3(0x1f0)},'withTables':{'name':a197_0xde0ba3(0x20e),'count':0x64,'created_at':a197_0xde0ba3(0x225),'updated_at':a197_0xde0ba3(0x1f8),'permission':a197_0xde0ba3(0x1ec)}},'table':{'basic':{'id':0x3039,'name':'users','type':a197_0xde0ba3(0x1da),'schema':JSON['stringify']([['id',a197_0xde0ba3(0x1fb)],['time',a197_0xde0ba3(0x1d9)],[a197_0xde0ba3(0x1ff),a197_0xde0ba3(0x1fb)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a197_0xde0ba3(0x207),'updated_at':a197_0xde0ba3(0x207)},'events':{'id':0x303a,'name':'events','type':a197_0xde0ba3(0x1da),'schema':JSON[a197_0xde0ba3(0x1f4)]([[a197_0xde0ba3(0x1e2),a197_0xde0ba3(0x1fb)],['time',a197_0xde0ba3(0x1d9)],['user_id','string'],[a197_0xde0ba3(0x1c4),a197_0xde0ba3(0x1fb)],['properties','map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':a197_0xde0ba3(0x220),'name':'Test\x20Parent\x20Segment','description':a197_0xde0ba3(0x1ef),'status':'active','master_table':{'database':a197_0xde0ba3(0x210),'table':a197_0xde0ba3(0x1d2)},'attributes':[{'name':a197_0xde0ba3(0x1d6),'type':a197_0xde0ba3(0x1fb),'key':!![]},{'name':a197_0xde0ba3(0x22a),'type':a197_0xde0ba3(0x1fb)},{'name':a197_0xde0ba3(0x1fd),'type':a197_0xde0ba3(0x204)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a197_0xde0ba3(0x214)},'withBehaviors':{'id':a197_0xde0ba3(0x209),'name':a197_0xde0ba3(0x230),'description':a197_0xde0ba3(0x1f9),'status':'active','master_table':{'database':'cdp_db','table':a197_0xde0ba3(0x212)},'behaviors':[{'name':a197_0xde0ba3(0x1fc),'table':{'database':a197_0xde0ba3(0x21a),'table':a197_0xde0ba3(0x1fc)},'join_key':a197_0xde0ba3(0x1d6)},{'name':a197_0xde0ba3(0x1ea),'table':{'database':a197_0xde0ba3(0x21a),'table':a197_0xde0ba3(0x20a)},'join_key':a197_0xde0ba3(0x1d6)}],'created_at':a197_0xde0ba3(0x207),'updated_at':'2024-01-15T00:00:00Z'}},'segment':{'basic':{'id':'cs-456789','name':a197_0xde0ba3(0x1e3),'description':a197_0xde0ba3(0x219),'parent_segment_id':a197_0xde0ba3(0x220),'status':a197_0xde0ba3(0x215),'rules':[{'type':a197_0xde0ba3(0x1e9),'field':a197_0xde0ba3(0x231),'operator':a197_0xde0ba3(0x1e0),'value':a197_0xde0ba3(0x21c)}],'count':0x1388,'created_at':a197_0xde0ba3(0x207),'updated_at':a197_0xde0ba3(0x214)},'withMultipleRules':{'id':a197_0xde0ba3(0x20b),'name':a197_0xde0ba3(0x1f3),'description':a197_0xde0ba3(0x1d1),'parent_segment_id':'ps-123456','status':a197_0xde0ba3(0x215),'rules':[{'type':a197_0xde0ba3(0x1e9),'field':a197_0xde0ba3(0x231),'operator':a197_0xde0ba3(0x1e0),'value':a197_0xde0ba3(0x21c)},{'type':a197_0xde0ba3(0x1e9),'field':'lifetime_value','operator':a197_0xde0ba3(0x1d8),'value':0x3e8}],'count':0x5dc,'created_at':'2024-01-01T00:00:00Z','updated_at':a197_0xde0ba3(0x214)}},'journey':{'basic':{'id':a197_0xde0ba3(0x22b),'name':'Welcome\x20Journey','description':a197_0xde0ba3(0x1c7),'status':a197_0xde0ba3(0x213),'version':0x1,'steps':[{'id':a197_0xde0ba3(0x1d0),'type':'wait','duration':'1d'},{'id':a197_0xde0ba3(0x21b),'type':a197_0xde0ba3(0x211),'activation_id':a197_0xde0ba3(0x222)}],'created_at':a197_0xde0ba3(0x207),'updated_at':a197_0xde0ba3(0x214)},'withDecision':{'id':a197_0xde0ba3(0x21e),'name':'Purchase\x20Reminder','description':a197_0xde0ba3(0x1ed),'status':a197_0xde0ba3(0x215),'version':0x2,'steps':[{'id':'step-1','type':'decision_point','segment_id':a197_0xde0ba3(0x1ca),'yes_path':a197_0xde0ba3(0x21b),'no_path':a197_0xde0ba3(0x1d5)},{'id':a197_0xde0ba3(0x21b),'type':'activation','activation_id':a197_0xde0ba3(0x1e5)},{'id':a197_0xde0ba3(0x1d5),'type':a197_0xde0ba3(0x1ce)}],'created_at':a197_0xde0ba3(0x207),'updated_at':a197_0xde0ba3(0x214)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a197_0xde0ba3(0x1cb)},{'name':a197_0xde0ba3(0x1ff),'type':'varchar'},{'name':a197_0xde0ba3(0x1d3),'type':a197_0xde0ba3(0x1f5)}],'data':[['user-1',a197_0xde0ba3(0x1dd),0x64],[a197_0xde0ba3(0x1fa),a197_0xde0ba3(0x216),0xc8],[a197_0xde0ba3(0x223),a197_0xde0ba3(0x217),0x96]]},'empty':{'schema':[{'name':'id','type':a197_0xde0ba3(0x1cb)},{'name':a197_0xde0ba3(0x1ff),'type':a197_0xde0ba3(0x1cb)}],'data':[]},'singleRow':{'schema':[{'name':a197_0xde0ba3(0x1cf),'type':a197_0xde0ba3(0x1f5)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a197_0xde0ba3(0x1d4),'email':a197_0xde0ba3(0x1c8),'created_at':a197_0xde0ba3(0x207),'updated_at':a197_0xde0ba3(0x214),'administrator':![]},'admin':{'id':0x1,'name':a197_0xde0ba3(0x201),'email':'admin@example.com','created_at':a197_0xde0ba3(0x21d),'updated_at':a197_0xde0ba3(0x214),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a197_0xde0ba3(0x1cd),'database':a197_0xde0ba3(0x229),'status':a197_0xde0ba3(0x1f1),'query':a197_0xde0ba3(0x1c5),'start_at':a197_0xde0ba3(0x202),'end_at':a197_0xde0ba3(0x20c),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a197_0xde0ba3(0x1cd),'database':a197_0xde0ba3(0x229),'status':a197_0xde0ba3(0x221),'query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':a197_0xde0ba3(0x1dc),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a197_0xde0ba3(0x1cd),'database':a197_0xde0ba3(0x229),'status':a197_0xde0ba3(0x1d7),'query':a197_0xde0ba3(0x1cc),'start_at':'2024-01-15T10:10:00Z','end_at':a197_0xde0ba3(0x21f),'duration':0x1,'result_size':null,'error':'Table\x20does\x20not\x20exist:\x20nonexistent_table'}},'workflow':{'basic':{'id':a197_0xde0ba3(0x218),'name':'daily_etl','project':a197_0xde0ba3(0x205),'revision':'abc123','timezone':a197_0xde0ba3(0x22f),'schedule':{'cron':'0\x200\x20*\x20*\x20*'}},'withSessions':{'id':'wf-67890','name':'hourly_sync','project':a197_0xde0ba3(0x1c9),'revision':a197_0xde0ba3(0x1e8),'timezone':a197_0xde0ba3(0x20f),'schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':a197_0xde0ba3(0x22c),'status':a197_0xde0ba3(0x1f1),'started_at':'2024-01-15T09:00:00Z','finished_at':a197_0xde0ba3(0x22e)}}},'apiError':{'unauthorized':{'errors':{'error':a197_0xde0ba3(0x22d),'message':a197_0xde0ba3(0x22d),'severity':a197_0xde0ba3(0x1d7),'status_code':0x191}},'notFound':{'errors':{'error':a197_0xde0ba3(0x200),'message':a197_0xde0ba3(0x224),'severity':a197_0xde0ba3(0x1d7),'status_code':0x194}},'rateLimited':{'detail':a197_0xde0ba3(0x1f2)},'rfc9457':{'type':a197_0xde0ba3(0x1e6),'title':a197_0xde0ba3(0x1e7),'status':0x193,'detail':a197_0xde0ba3(0x1de),'instance':a197_0xde0ba3(0x1e4)}}};export function createDatabase(_0x1b99e1){const _0x635e17=a197_0xde0ba3;return{...fixtures[_0x635e17(0x1fe)][_0x635e17(0x226)],..._0x1b99e1};}function a197_0x2402(){const _0x1fc01e=['4880043UrkhiT','journey','2024-01-15T08:00:00Z','Parent\x20segment\x20with\x20behavioral\x20data','user-2','string','purchases','created_at','database','name','Resource\x20not\x20found','Admin\x20User','2024-01-15T10:00:00Z','425139DBtJlC','timestamp','data_pipeline','job','2024-01-01T00:00:00Z','user','ps-789012','pageviews','cs-111222','2024-01-15T10:00:05Z','554pMKjTZ','production_db','America/Los_Angeles','cdp_db','activation','customers','draft','2024-01-15T00:00:00Z','active','Bob','Charlie','wf-12345','Users\x20active\x20in\x20the\x20last\x2030\x20days','events_db','step-2','30d','2023-01-01T00:00:00Z','j-def456','2024-01-15T10:10:01Z','ps-123456','running','act-123','user-3','The\x20requested\x20resource\x20does\x20not\x20exist','2023-06-15T10:30:00Z','basic','4ovFdQF','parentSegment','test_db','email','j-abc123','sess-111','Invalid\x20API\x20key','2024-01-15T09:05:00Z','UTC','Customers\x20with\x20Behaviors','last_login','event_type','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','2080444TKZaOg','Onboarding\x20journey\x20for\x20new\x20users','test@example.com','data_sync','cs-456789','varchar','SELECT\x20*\x20FROM\x20nonexistent_table','presto','end','total','step-1','Active\x20users\x20with\x20high\x20lifetime\x20value','unified_customers','count','Test\x20User','step-3','customer_id','error','Greater','long','log','328385WDRtvW','2024-01-15T10:05:00Z','Alice','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','2066337UxgGIE','TimeWithinPast','1722248oPxbwb','event_id','Active\x20Users','/v3/database/list','act-email','https://api.treasuredata.com/errors/forbidden','Forbidden','def456','attribute','page_views','36vwgXAq','full_access','Journey\x20with\x20decision\x20point','segment','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','administrator','success','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','High\x20Value\x20Active\x20Users','stringify','bigint'];a197_0x2402=function(){return _0x1fc01e;};return a197_0x2402();}export function createTable(_0x4ecb44){const _0x35755b=a197_0xde0ba3;return{...fixtures['table'][_0x35755b(0x226)],..._0x4ecb44};}export function createParentSegment(_0x176990){const _0x5a61d3=a197_0xde0ba3;return{...fixtures[_0x5a61d3(0x228)][_0x5a61d3(0x226)],..._0x176990};}export function createSegment(_0x4f8e52){const _0x3fff21=a197_0xde0ba3;return{...fixtures[_0x3fff21(0x1ee)]['basic'],..._0x4f8e52};}export function createJourney(_0x1b6a78){const _0x22038e=a197_0xde0ba3;return{...fixtures[_0x22038e(0x1f7)]['basic'],..._0x1b6a78};}export function createQueryResult(_0x55fbe6){const _0x5f9e26=a197_0xde0ba3;return{...fixtures['queryResult'][_0x5f9e26(0x226)],..._0x55fbe6};}export function createUser(_0x2cf39f){const _0x26efc0=a197_0xde0ba3;return{...fixtures[_0x26efc0(0x208)][_0x26efc0(0x226)],..._0x2cf39f};}export function createJob(_0xd3c594){const _0x394d30=a197_0xde0ba3;return{...fixtures[_0x394d30(0x206)]['completed'],..._0xd3c594};}export function createWorkflow(_0x25edbe){return{...fixtures['workflow']['basic'],..._0x25edbe};}
|
|
1
|
+
const a205_0xec5197=a205_0x513e;(function(_0x1cebbf,_0x3c27be){const _0x78ae8c=a205_0x513e,_0x56a387=_0x1cebbf();while(!![]){try{const _0x34da38=parseInt(_0x78ae8c(0xc4))/0x1*(parseInt(_0x78ae8c(0xd9))/0x2)+-parseInt(_0x78ae8c(0x121))/0x3*(-parseInt(_0x78ae8c(0xb5))/0x4)+-parseInt(_0x78ae8c(0x114))/0x5+parseInt(_0x78ae8c(0xbc))/0x6+-parseInt(_0x78ae8c(0x119))/0x7+-parseInt(_0x78ae8c(0x10c))/0x8*(-parseInt(_0x78ae8c(0x107))/0x9)+parseInt(_0x78ae8c(0xb0))/0xa*(-parseInt(_0x78ae8c(0xd2))/0xb);if(_0x34da38===_0x3c27be)break;else _0x56a387['push'](_0x56a387['shift']());}catch(_0x4caf8b){_0x56a387['push'](_0x56a387['shift']());}}}(a205_0x34da,0xedbe6));export const fixtures={'database':{'basic':{'name':a205_0xec5197(0xfb),'count':0x5,'created_at':a205_0xec5197(0xbd),'updated_at':a205_0xec5197(0xbd),'permission':a205_0xec5197(0xec)},'withTables':{'name':'production_db','count':0x64,'created_at':a205_0xec5197(0xc7),'updated_at':'2024-01-15T08:00:00Z','permission':a205_0xec5197(0xe6)}},'table':{'basic':{'id':0x3039,'name':a205_0xec5197(0xcf),'type':a205_0xec5197(0x10e),'schema':JSON[a205_0xec5197(0xba)]([['id',a205_0xec5197(0xff)],['time',a205_0xec5197(0xc5)],[a205_0xec5197(0xc9),'string']]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a205_0xec5197(0xbd),'updated_at':a205_0xec5197(0xbd)},'events':{'id':0x303a,'name':'events','type':'log','schema':JSON[a205_0xec5197(0xba)]([[a205_0xec5197(0xbe),a205_0xec5197(0xff)],[a205_0xec5197(0xbf),a205_0xec5197(0xc5)],[a205_0xec5197(0xb2),a205_0xec5197(0xff)],[a205_0xec5197(0xb7),a205_0xec5197(0xff)],['properties',a205_0xec5197(0xf9)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a205_0xec5197(0xbd),'updated_at':a205_0xec5197(0xb9)}},'parentSegment':{'basic':{'id':a205_0xec5197(0xd0),'name':'Test\x20Parent\x20Segment','description':a205_0xec5197(0xe0),'status':a205_0xec5197(0xd6),'master_table':{'database':'cdp_db','table':'unified_customers'},'attributes':[{'name':a205_0xec5197(0xef),'type':a205_0xec5197(0xff),'key':!![]},{'name':a205_0xec5197(0xea),'type':'string'},{'name':'created_at','type':a205_0xec5197(0xe5)}],'created_at':a205_0xec5197(0xbd),'updated_at':'2024-01-15T00:00:00Z'},'withBehaviors':{'id':a205_0xec5197(0xdc),'name':a205_0xec5197(0xc3),'description':'Parent\x20segment\x20with\x20behavioral\x20data','status':a205_0xec5197(0xd6),'master_table':{'database':'cdp_db','table':a205_0xec5197(0xfe)},'behaviors':[{'name':a205_0xec5197(0x117),'table':{'database':a205_0xec5197(0x104),'table':a205_0xec5197(0x117)},'join_key':a205_0xec5197(0xef)},{'name':a205_0xec5197(0xdf),'table':{'database':'events_db','table':'pageviews'},'join_key':a205_0xec5197(0xef)}],'created_at':a205_0xec5197(0xbd),'updated_at':a205_0xec5197(0xb8)}},'segment':{'basic':{'id':a205_0xec5197(0xd3),'name':a205_0xec5197(0xca),'description':a205_0xec5197(0x103),'parent_segment_id':a205_0xec5197(0xd0),'status':a205_0xec5197(0xd6),'rules':[{'type':a205_0xec5197(0xf5),'field':a205_0xec5197(0x111),'operator':a205_0xec5197(0xd5),'value':a205_0xec5197(0xe7)}],'count':0x1388,'created_at':'2024-01-01T00:00:00Z','updated_at':a205_0xec5197(0xb8)},'withMultipleRules':{'id':a205_0xec5197(0x10f),'name':'High\x20Value\x20Active\x20Users','description':a205_0xec5197(0xde),'parent_segment_id':'ps-123456','status':'active','rules':[{'type':a205_0xec5197(0xf5),'field':a205_0xec5197(0x111),'operator':a205_0xec5197(0xd5),'value':a205_0xec5197(0xe7)},{'type':a205_0xec5197(0xf5),'field':a205_0xec5197(0xf8),'operator':a205_0xec5197(0x113),'value':0x3e8}],'count':0x5dc,'created_at':a205_0xec5197(0xbd),'updated_at':a205_0xec5197(0xb8)}},'journey':{'basic':{'id':a205_0xec5197(0x100),'name':a205_0xec5197(0x10a),'description':a205_0xec5197(0xc2),'status':a205_0xec5197(0x106),'version':0x1,'steps':[{'id':a205_0xec5197(0xd1),'type':a205_0xec5197(0xeb),'duration':'1d'},{'id':a205_0xec5197(0x11c),'type':'activation','activation_id':a205_0xec5197(0x105)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a205_0xec5197(0xb8)},'withDecision':{'id':a205_0xec5197(0xe2),'name':a205_0xec5197(0xf3),'description':a205_0xec5197(0xee),'status':a205_0xec5197(0xd6),'version':0x2,'steps':[{'id':a205_0xec5197(0xd1),'type':'decision_point','segment_id':'cs-456789','yes_path':a205_0xec5197(0x11c),'no_path':a205_0xec5197(0x11e)},{'id':a205_0xec5197(0x11c),'type':a205_0xec5197(0xc1),'activation_id':a205_0xec5197(0xf7)},{'id':a205_0xec5197(0x11e),'type':a205_0xec5197(0xe9)}],'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'}},'queryResult':{'basic':{'schema':[{'name':'id','type':a205_0xec5197(0x116)},{'name':a205_0xec5197(0xc9),'type':a205_0xec5197(0x116)},{'name':a205_0xec5197(0xf2),'type':'bigint'}],'data':[[a205_0xec5197(0x101),a205_0xec5197(0xf6),0x64],[a205_0xec5197(0xd7),'Bob',0xc8],['user-3',a205_0xec5197(0xcd),0x96]]},'empty':{'schema':[{'name':'id','type':a205_0xec5197(0x116)},{'name':a205_0xec5197(0xc9),'type':a205_0xec5197(0x116)}],'data':[]},'singleRow':{'schema':[{'name':a205_0xec5197(0xb3),'type':a205_0xec5197(0xe4)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':'test@example.com','created_at':a205_0xec5197(0xbd),'updated_at':a205_0xec5197(0xb8),'administrator':![]},'admin':{'id':0x1,'name':a205_0xec5197(0xf0),'email':a205_0xec5197(0xd8),'created_at':'2023-01-01T00:00:00Z','updated_at':a205_0xec5197(0xb8),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a205_0xec5197(0x118),'database':'test_db','status':a205_0xec5197(0xfc),'query':'SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','start_at':'2024-01-15T10:00:00Z','end_at':a205_0xec5197(0x11b),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':'presto','database':a205_0xec5197(0xfb),'status':a205_0xec5197(0xf4),'query':a205_0xec5197(0x110),'start_at':a205_0xec5197(0xe8),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a205_0xec5197(0x118),'database':a205_0xec5197(0xfb),'status':'error','query':a205_0xec5197(0xaf),'start_at':a205_0xec5197(0x108),'end_at':'2024-01-15T10:10:01Z','duration':0x1,'result_size':null,'error':a205_0xec5197(0x10d)}},'workflow':{'basic':{'id':a205_0xec5197(0xdb),'name':a205_0xec5197(0xc6),'project':a205_0xec5197(0xc8),'revision':'abc123','timezone':a205_0xec5197(0xbb),'schedule':{'cron':a205_0xec5197(0xed)}},'withSessions':{'id':a205_0xec5197(0xb6),'name':a205_0xec5197(0xe1),'project':'data_sync','revision':a205_0xec5197(0x120),'timezone':a205_0xec5197(0xfd),'schedule':{'cron':a205_0xec5197(0xcc)},'last_session':{'id':a205_0xec5197(0x115),'status':'success','started_at':a205_0xec5197(0xb1),'finished_at':a205_0xec5197(0xb4)}}},'apiError':{'unauthorized':{'errors':{'error':'Invalid\x20API\x20key','message':'Invalid\x20API\x20key','severity':a205_0xec5197(0x102),'status_code':0x191}},'notFound':{'errors':{'error':'Resource\x20not\x20found','message':a205_0xec5197(0x11d),'severity':'error','status_code':0x194}},'rateLimited':{'detail':a205_0xec5197(0xfa)},'rfc9457':{'type':a205_0xec5197(0x10b),'title':a205_0xec5197(0xf1),'status':0x193,'detail':a205_0xec5197(0xd4),'instance':'/v3/database/list'}}};export function createDatabase(_0x170611){const _0x1785e3=a205_0xec5197;return{...fixtures[_0x1785e3(0x11f)]['basic'],..._0x170611};}export function createTable(_0x53147f){const _0x7cbb21=a205_0xec5197;return{...fixtures[_0x7cbb21(0x109)]['basic'],..._0x53147f};}function a205_0x513e(_0x2925e9,_0x2cf23a){_0x2925e9=_0x2925e9-0xaf;const _0x34daa0=a205_0x34da();let _0x513e39=_0x34daa0[_0x2925e9];return _0x513e39;}export function createParentSegment(_0x31f63b){const _0xf0e8b=a205_0xec5197;return{...fixtures[_0xf0e8b(0xdd)]['basic'],..._0x31f63b};}function a205_0x34da(){const _0x562a48=['cs-456789','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','TimeWithinPast','active','user-2','admin@example.com','194ChDqXZ','user','wf-12345','ps-789012','parentSegment','Active\x20users\x20with\x20high\x20lifetime\x20value','page_views','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','hourly_sync','j-def456','job','bigint','timestamp','full_access','30d','2024-01-15T10:05:00Z','end','email','wait','administrator','0\x200\x20*\x20*\x20*','Journey\x20with\x20decision\x20point','customer_id','Admin\x20User','Forbidden','count','Purchase\x20Reminder','running','attribute','Alice','act-email','lifetime_value','map<string,string>','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','test_db','success','America/Los_Angeles','customers','string','j-abc123','user-1','error','Users\x20active\x20in\x20the\x20last\x2030\x20days','events_db','act-123','draft','9UmbmyY','2024-01-15T10:10:00Z','table','Welcome\x20Journey','https://api.treasuredata.com/errors/forbidden','4204296ajsAPh','Table\x20does\x20not\x20exist:\x20nonexistent_table','log','cs-111222','SELECT\x20COUNT(*)\x20FROM\x20events','last_login','queryResult','Greater','5508985LbeMXU','sess-111','varchar','purchases','presto','8433145ALeCBT','segment','2024-01-15T10:00:05Z','step-2','The\x20requested\x20resource\x20does\x20not\x20exist','step-3','database','def456','3452379ljQtfA','SELECT\x20*\x20FROM\x20nonexistent_table','174710tHNoAc','2024-01-15T09:00:00Z','user_id','total','2024-01-15T09:05:00Z','4qVcBxv','wf-67890','event_type','2024-01-15T00:00:00Z','2024-01-15T12:00:00Z','stringify','UTC','7181394dyIiJR','2024-01-01T00:00:00Z','event_id','time','workflow','activation','Onboarding\x20journey\x20for\x20new\x20users','Customers\x20with\x20Behaviors','10681xjoOaB','long','daily_etl','2023-06-15T10:30:00Z','data_pipeline','name','Active\x20Users','basic','0\x20*\x20*\x20*\x20*','Charlie','completed','users','ps-123456','step-1','396fZsjxR'];a205_0x34da=function(){return _0x562a48;};return a205_0x34da();}export function createSegment(_0x4e92dd){const _0x531054=a205_0xec5197;return{...fixtures[_0x531054(0x11a)][_0x531054(0xcb)],..._0x4e92dd};}export function createJourney(_0x1870c2){const _0x1a8d7f=a205_0xec5197;return{...fixtures['journey'][_0x1a8d7f(0xcb)],..._0x1870c2};}export function createQueryResult(_0xa6c253){const _0x36430a=a205_0xec5197;return{...fixtures[_0x36430a(0x112)][_0x36430a(0xcb)],..._0xa6c253};}export function createUser(_0x2d3381){const _0x3be273=a205_0xec5197;return{...fixtures[_0x3be273(0xda)][_0x3be273(0xcb)],..._0x2d3381};}export function createJob(_0x4c333e){const _0x5ac376=a205_0xec5197;return{...fixtures[_0x5ac376(0xe3)][_0x5ac376(0xce)],..._0x4c333e};}export function createWorkflow(_0x3adf94){const _0xd90b5a=a205_0xec5197;return{...fixtures[_0xd90b5a(0xc0)]['basic'],..._0x3adf94};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a206_0x1f0589=a206_0x3b94;function a206_0x3b94(_0xf26bef,_0x4adf24){_0xf26bef=_0xf26bef-0xdf;const _0x495fc0=a206_0x495f();let _0x3b9423=_0x495fc0[_0xf26bef];return _0x3b9423;}(function(_0x171ad8,_0x39d6e8){const _0x1625fb=a206_0x3b94,_0x5ec750=_0x171ad8();while(!![]){try{const _0x313102=-parseInt(_0x1625fb(0x102))/0x1+parseInt(_0x1625fb(0x115))/0x2*(parseInt(_0x1625fb(0xe4))/0x3)+-parseInt(_0x1625fb(0xfc))/0x4*(parseInt(_0x1625fb(0xe2))/0x5)+-parseInt(_0x1625fb(0x111))/0x6*(-parseInt(_0x1625fb(0xe9))/0x7)+-parseInt(_0x1625fb(0x107))/0x8*(parseInt(_0x1625fb(0x113))/0x9)+parseInt(_0x1625fb(0x101))/0xa+-parseInt(_0x1625fb(0xf2))/0xb;if(_0x313102===_0x39d6e8)break;else _0x5ec750['push'](_0x5ec750['shift']());}catch(_0x56a663){_0x5ec750['push'](_0x5ec750['shift']());}}}(a206_0x495f,0x3f07a));function a206_0x495f(){const _0x2bacb3=['Unauthorized','7047161cPdJWW','body','GET','createFetch','matcher','\x20\x20(none)','filter','Unknown','REST','method','6232ZbUdPh','verify','stubs','entries','register','4596960fmzqJm','130938CGSUcW','withQuery','test','fetchMock','Internal\x20Server\x20Error','887584jFgVlU','isArray','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','length','toLowerCase','searchParams','jsonResponse','matched','pathname','includes','20766jMwUJv','Bad\x20Request','9TNZDwF','\x20registered\x20at:\x0a','92156nHnRlO','wasCalled','mockImplementation','push','simple','Conflict','parseRequest','registerWithInspector','application/json','Too\x20Many\x20Requests','Bad\x20Gateway','rfc9457','getMatchCount','error','Request\x20body:\x20','string','stack','forEach','url','get','description','host','matchCount','Unmatched\x20stub','stringify','toUpperCase','join','getStatusText','Not\x20Found','unnamed\x20stub','985wtpNGK','fail','33QBWujf','textResponse','errorResponse','headers','withBody','973pSNhbV','jsonResponseWithHeaders','map','Service\x20Unavailable','slice','requests','No\x20stub\x20matched\x20request:\x20','reset'];a206_0x495f=function(){return _0x2bacb3;};return a206_0x495f();}import{vi}from'vitest';export class HTTPMockRegistry{[a206_0x1f0589(0xfe)]=[];['requests']=[];['fetchMock']=null;[a206_0x1f0589(0xfa)](_0x2820ae,_0xe6c05b){return _0x51c6fd=>{const _0x401ddd=a206_0x3b94;if(_0x51c6fd['method'][_0x401ddd(0x12e)]()!==_0x2820ae['toUpperCase']())return![];const _0x12e572=new URL(_0x51c6fd[_0x401ddd(0x127)]);if(typeof _0xe6c05b===_0x401ddd(0x124))return _0x12e572[_0x401ddd(0x10f)]===_0xe6c05b||_0x12e572[_0x401ddd(0x10f)][_0x401ddd(0x110)](_0xe6c05b);return _0xe6c05b['test'](_0x12e572['pathname']);};}[a206_0x1f0589(0x103)](_0x1db739,_0x417167){return _0x5513d2=>{const _0x463c41=a206_0x3b94;if(!_0x1db739(_0x5513d2))return![];const _0x38d147=new URL(_0x5513d2['url']);return Object[_0x463c41(0xff)](_0x417167)['every'](([_0x95244e,_0x55c56e])=>_0x38d147[_0x463c41(0x10c)][_0x463c41(0x128)](_0x95244e)===_0x55c56e);};}[a206_0x1f0589(0xe8)](_0x46a5bc,_0x2e1a09){return _0x575d5a=>{const _0x42516b=a206_0x3b94;if(!_0x46a5bc(_0x575d5a))return![];if(typeof _0x2e1a09==='function')return _0x2e1a09(_0x575d5a[_0x42516b(0xf3)]);return JSON[_0x42516b(0x12d)](_0x575d5a['body'])===JSON['stringify'](_0x2e1a09);};}['withHost'](_0x2bf356,_0x39466d){return _0x2f776b=>{const _0x4d9fc9=a206_0x3b94;if(!_0x2bf356(_0x2f776b))return![];const _0x13e804=new URL(_0x2f776b['url']);return _0x13e804[_0x4d9fc9(0x12a)]===_0x39466d;};}['register'](_0x3e74a4,_0x48c9aa,_0x523182){const _0x43c8e2=a206_0x1f0589;this[_0x43c8e2(0xfe)]['push']({'matcher':_0x3e74a4,'responder':_0x48c9aa,'matched':![],'matchCount':0x0,'stack':new Error()[_0x43c8e2(0x125)]??'','description':_0x523182?.['description']});}[a206_0x1f0589(0x11c)](_0x2b9587,_0x119394,_0x52597b){const _0x6988de=a206_0x1f0589,_0xfab33=_0x36e39f=>{const _0x379387=a206_0x3b94;return _0x52597b(_0x36e39f[_0x379387(0xf3)],_0x36e39f),_0x119394(_0x36e39f);};this[_0x6988de(0x100)](_0x2b9587,_0xfab33);}static[a206_0x1f0589(0x10d)](_0x17b197,_0x4bc33f=0xc8){const _0x1d4f27=a206_0x1f0589;return()=>new Response(JSON[_0x1d4f27(0x12d)](_0x17b197),{'status':_0x4bc33f,'headers':{'Content-Type':_0x1d4f27(0x11d)}});}static[a206_0x1f0589(0xe6)](_0x4e1222,_0x1df5ba,_0x4bbc6a=a206_0x1f0589(0x119)){return()=>{const _0x3e2ed5=a206_0x3b94;let _0x428f83;switch(_0x4bbc6a){case'td-api':_0x428f83={'errors':{'error':_0x1df5ba,'message':_0x1df5ba,'severity':_0x3e2ed5(0x122),'status_code':_0x4e1222}};break;case _0x3e2ed5(0x120):_0x428f83={'type':'https://api.treasuredata.com/errors/'+_0x4e1222,'title':HTTPMockRegistry[_0x3e2ed5(0xdf)](_0x4e1222),'status':_0x4e1222,'detail':_0x1df5ba};break;default:_0x428f83={'error':_0x1df5ba};}return new Response(JSON['stringify'](_0x428f83),{'status':_0x4e1222,'headers':{'Content-Type':_0x3e2ed5(0x11d)}});};}static[a206_0x1f0589(0xea)](_0x354261,_0x4d156c,_0x4c3298=0xc8){const _0xf6d1ae=a206_0x1f0589;return()=>new Response(JSON[_0xf6d1ae(0x12d)](_0x354261),{'status':_0x4c3298,'headers':{'Content-Type':_0xf6d1ae(0x11d),..._0x4d156c}});}static[a206_0x1f0589(0xe5)](_0x13b2a0,_0xdced1d=0xc8){return()=>new Response(_0x13b2a0,{'status':_0xdced1d,'headers':{'Content-Type':'text/plain'}});}static['networkError'](_0x3ce675){return()=>{throw new Error(_0x3ce675);};}[a206_0x1f0589(0xf5)](){const _0x1701fc=a206_0x1f0589;return this['fetchMock']=vi['fn']()[_0x1701fc(0x117)](async(_0x23c07f,_0x18d598)=>{const _0x2f8d60=_0x1701fc,_0x29c22d=this[_0x2f8d60(0x11b)](_0x23c07f,_0x18d598);this[_0x2f8d60(0xee)][_0x2f8d60(0x118)](_0x29c22d);for(const _0x48254f of this[_0x2f8d60(0xfe)]){if(_0x48254f[_0x2f8d60(0xf6)](_0x29c22d))return _0x48254f[_0x2f8d60(0x10e)]=!![],_0x48254f[_0x2f8d60(0x12b)]++,_0x48254f['responder'](_0x29c22d);}const _0x2f0203=this[_0x2f8d60(0xfe)][_0x2f8d60(0xeb)]((_0x257368,_0x2126d4)=>'\x20\x20'+(_0x2126d4+0x1)+'.\x20'+(_0x257368[_0x2f8d60(0x129)]??_0x2f8d60(0xe1)))[_0x2f8d60(0x12f)]('\x0a');throw new Error(_0x2f8d60(0xef)+_0x29c22d[_0x2f8d60(0xfb)]+'\x20'+_0x29c22d[_0x2f8d60(0x127)]+'\x0a'+(_0x2f8d60(0x123)+JSON[_0x2f8d60(0x12d)](_0x29c22d['body'])+'\x0a')+('Registered\x20stubs:\x0a'+(_0x2f0203||_0x2f8d60(0xf7))));}),this['fetchMock'];}[a206_0x1f0589(0x11b)](_0x308ad3,_0x3f8bbb){const _0x4d3249=a206_0x1f0589,_0x3b5415={};if(_0x3f8bbb?.['headers']){if(_0x3f8bbb[_0x4d3249(0xe7)]instanceof Headers)_0x3f8bbb['headers'][_0x4d3249(0x126)]((_0x186509,_0x9477a8)=>{const _0x2ab8fa=_0x4d3249;_0x3b5415[_0x9477a8[_0x2ab8fa(0x10b)]()]=_0x186509;});else{if(Array[_0x4d3249(0x108)](_0x3f8bbb[_0x4d3249(0xe7)]))for(const [_0x38e309,_0x1ea336]of _0x3f8bbb[_0x4d3249(0xe7)]){_0x3b5415[_0x38e309[_0x4d3249(0x10b)]()]=_0x1ea336;}else for(const [_0x7ba4e4,_0x3f77df]of Object[_0x4d3249(0xff)](_0x3f8bbb[_0x4d3249(0xe7)])){_0x3f77df!==undefined&&(_0x3b5415[_0x7ba4e4[_0x4d3249(0x10b)]()]=_0x3f77df);}}}let _0x4423d9;if(_0x3f8bbb?.['body'])try{_0x4423d9=JSON['parse'](_0x3f8bbb['body']);}catch{_0x4423d9=_0x3f8bbb[_0x4d3249(0xf3)];}return{'method':_0x3f8bbb?.[_0x4d3249(0xfb)]??_0x4d3249(0xf4),'url':_0x308ad3,'headers':_0x3b5415,'body':_0x4423d9};}[a206_0x1f0589(0xfd)](_0x386eff){const _0x10383c=a206_0x1f0589,_0x432edc=this[_0x10383c(0xfe)][_0x10383c(0xf8)](_0x47366e=>!_0x47366e['matched']);if(_0x432edc[_0x10383c(0x10a)]>0x0){const _0x2c1009=_0x432edc['map'](_0x357d74=>{const _0x137a05=_0x10383c,_0x1652d6=_0x357d74[_0x137a05(0x129)]?'\x20('+_0x357d74[_0x137a05(0x129)]+')':'',_0x173785=_0x357d74[_0x137a05(0x125)]['split']('\x0a')[_0x137a05(0xed)](0x2,0x5)['join']('\x0a');return _0x137a05(0x12c)+_0x1652d6+_0x137a05(0x114)+_0x173785;});_0x386eff[_0x10383c(0xe3)](_0x432edc[_0x10383c(0x10a)]+_0x10383c(0x109)+_0x2c1009['join']('\x0a\x0a'));}}['getRequests'](){const _0x51fbbb=a206_0x1f0589;return[...this[_0x51fbbb(0xee)]];}['getLastRequest'](){const _0x538072=a206_0x1f0589;return this['requests'][this[_0x538072(0xee)][_0x538072(0x10a)]-0x1];}[a206_0x1f0589(0x116)](_0xe2cbde,_0x3c8602){const _0x396517=a206_0x1f0589;return this[_0x396517(0xee)]['some'](_0x588668=>{const _0x2d8a4a=_0x396517;if(_0x588668[_0x2d8a4a(0xfb)][_0x2d8a4a(0x12e)]()!==_0xe2cbde[_0x2d8a4a(0x12e)]())return![];if(typeof _0x3c8602===_0x2d8a4a(0x124))return _0x588668[_0x2d8a4a(0x127)][_0x2d8a4a(0x110)](_0x3c8602);return _0x3c8602[_0x2d8a4a(0x104)](_0x588668[_0x2d8a4a(0x127)]);});}[a206_0x1f0589(0x121)](_0x1ef403){const _0x256b3b=a206_0x1f0589;return this[_0x256b3b(0xfe)][_0x1ef403]?.[_0x256b3b(0x12b)]??0x0;}[a206_0x1f0589(0xf0)](){const _0x4009ae=a206_0x1f0589;this[_0x4009ae(0xfe)]=[],this[_0x4009ae(0xee)]=[],this[_0x4009ae(0x105)]=null;}static[a206_0x1f0589(0xdf)](_0x2779e8){const _0x21c35f=a206_0x1f0589,_0x5e9e75={0xc8:'OK',0xc9:'Created',0xcc:'No\x20Content',0x190:_0x21c35f(0x112),0x191:_0x21c35f(0xf1),0x193:'Forbidden',0x194:_0x21c35f(0xe0),0x199:_0x21c35f(0x11a),0x1a6:'Unprocessable\x20Entity',0x1ad:_0x21c35f(0x11e),0x1f4:_0x21c35f(0x106),0x1f6:_0x21c35f(0x11f),0x1f7:_0x21c35f(0xec)};return _0x5e9e75[_0x2779e8]??_0x21c35f(0xf9);}}export function createHTTPMock(){return new HTTPMockRegistry();}
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2e80c8,_0x5ed42f){var _0x2cc157=a207_0x3cd4,_0x34ff2a=_0x2e80c8();while(!![]){try{var _0x1fff5e=-parseInt(_0x2cc157(0x102))/0x1+parseInt(_0x2cc157(0xfe))/0x2*(parseInt(_0x2cc157(0xff))/0x3)+parseInt(_0x2cc157(0x105))/0x4*(-parseInt(_0x2cc157(0xfd))/0x5)+parseInt(_0x2cc157(0xfc))/0x6*(-parseInt(_0x2cc157(0x100))/0x7)+-parseInt(_0x2cc157(0x104))/0x8+parseInt(_0x2cc157(0x101))/0x9+parseInt(_0x2cc157(0x103))/0xa;if(_0x1fff5e===_0x5ed42f)break;else _0x34ff2a['push'](_0x34ff2a['shift']());}catch(_0x3efe6c){_0x34ff2a['push'](_0x34ff2a['shift']());}}}(a207_0x400e,0x52181));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 a207_0x400e(){var _0x524bfe=['9732770NGspDw','3267520Dkilob','952100VeRwGK','42lCWEOT','5pgfltL','72KNqajs','49641anKBpw','291851AoQyMA','521694AIRdTP','352362KAzPkc'];a207_0x400e=function(){return _0x524bfe;};return a207_0x400e();}function a207_0x3cd4(_0x4f8857,_0x112948){_0x4f8857=_0x4f8857-0xfc;var _0x400edc=a207_0x400e();var _0x3cd482=_0x400edc[_0x4f8857];return _0x3cd482;}export{CommandRunner,createCommandRunner}from'./command-runner.js';
|
package/dist/utils/async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a208_0x6b58(_0x5a663f,_0x37af95){_0x5a663f=_0x5a663f-0x10b;const _0x5d2aa6=a208_0x5d2a();let _0x6b5878=_0x5d2aa6[_0x5a663f];return _0x6b5878;}(function(_0x1fcfbe,_0x480838){const _0x4f5fe9=a208_0x6b58,_0x5095c6=_0x1fcfbe();while(!![]){try{const _0x14fdeb=-parseInt(_0x4f5fe9(0x10d))/0x1*(parseInt(_0x4f5fe9(0x112))/0x2)+-parseInt(_0x4f5fe9(0x114))/0x3*(-parseInt(_0x4f5fe9(0x110))/0x4)+-parseInt(_0x4f5fe9(0x10b))/0x5+-parseInt(_0x4f5fe9(0x10e))/0x6+parseInt(_0x4f5fe9(0x10f))/0x7+-parseInt(_0x4f5fe9(0x116))/0x8+parseInt(_0x4f5fe9(0x111))/0x9;if(_0x14fdeb===_0x480838)break;else _0x5095c6['push'](_0x5095c6['shift']());}catch(_0x3f56e6){_0x5095c6['push'](_0x5095c6['shift']());}}}(a208_0x5d2a,0x8c1c6));function a208_0x5d2a(){const _0x1739e0=['4623996koVYPm','2766869kFaAXe','3603668euaknv','8922942qvWnjq','77242xDdbQs','push','3GohEdz','slice','545760WucRXC','3794895ItvJTE','all','3hnwRQx'];a208_0x5d2a=function(){return _0x1739e0;};return a208_0x5d2a();}export async function batchAsync(_0x33c8ad,_0x114414,_0x18c430=0xa){const _0x504a91=a208_0x6b58,_0x1fd571=[];for(let _0x4dde3d=0x0;_0x4dde3d<_0x33c8ad['length'];_0x4dde3d+=_0x18c430){const _0x2679e3=_0x33c8ad[_0x504a91(0x115)](_0x4dde3d,_0x4dde3d+_0x18c430),_0x16ac48=await Promise[_0x504a91(0x10c)](_0x2679e3['map'](_0x114414));_0x1fd571[_0x504a91(0x113)](..._0x16ac48);}return _0x1fd571;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a209_0x242df8=a209_0x3bd5;(function(_0x511e5f,_0x3b6bd1){const _0x2e37a0=a209_0x3bd5,_0x254088=_0x511e5f();while(!![]){try{const _0x17763e=-parseInt(_0x2e37a0(0xd7))/0x1*(parseInt(_0x2e37a0(0xf3))/0x2)+parseInt(_0x2e37a0(0xeb))/0x3*(-parseInt(_0x2e37a0(0xdb))/0x4)+-parseInt(_0x2e37a0(0xdc))/0x5*(parseInt(_0x2e37a0(0xd9))/0x6)+-parseInt(_0x2e37a0(0xd6))/0x7+-parseInt(_0x2e37a0(0xe3))/0x8*(parseInt(_0x2e37a0(0xe7))/0x9)+-parseInt(_0x2e37a0(0xd3))/0xa+-parseInt(_0x2e37a0(0xf1))/0xb*(-parseInt(_0x2e37a0(0xf2))/0xc);if(_0x17763e===_0x3b6bd1)break;else _0x254088['push'](_0x254088['shift']());}catch(_0x43c0f1){_0x254088['push'](_0x254088['shift']());}}}(a209_0x2adb,0xad79c));import*as a209_0x2f615e from'chalk';const Chalk=a209_0x2f615e[a209_0x242df8(0xe4)];export function shouldUseColor(_0x37667a={}){const _0x362ef0=a209_0x242df8;if(_0x37667a[_0x362ef0(0xd4)]===!![])return![];if(_0x37667a[_0x362ef0(0xde)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x362ef0(0xe2)][_0x362ef0(0xda)]??![];}export function getChalk(_0x304d9c={}){if(shouldUseColor(_0x304d9c))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x94ab89,_0x2e3b85={}){const _0x1a77fe=a209_0x242df8;return getChalk(_0x2e3b85)[_0x1a77fe(0xec)](_0x94ab89);}function a209_0x3bd5(_0x5db7ea,_0x4d2f2d){_0x5db7ea=_0x5db7ea-0xd3;const _0x2adb9b=a209_0x2adb();let _0x3bd5c9=_0x2adb9b[_0x5db7ea];return _0x3bd5c9;}export function colorHeader(_0x1ce3b1,_0x1d102b={}){const _0x3fddeb=a209_0x242df8;return getChalk(_0x1d102b)[_0x3fddeb(0xdf)](_0x1ce3b1);}export function colorType(_0x397f1d,_0x1a121b={}){const _0x28f413=a209_0x242df8;return getChalk(_0x1a121b)[_0x28f413(0xec)](_0x397f1d);}export function colorJSONKey(_0x120809,_0x3e000d={}){const _0x2019a6=a209_0x242df8;return getChalk(_0x3e000d)[_0x2019a6(0xed)](_0x120809);}export function colorJSONString(_0x152228,_0x2c4d1c={}){const _0x3a64a9=a209_0x242df8;return getChalk(_0x2c4d1c)[_0x3a64a9(0xe8)](_0x152228);}export function colorJSONNumber(_0x2b53d3,_0x47958a={}){return getChalk(_0x47958a)['cyan'](_0x2b53d3);}export function colorJSONBoolean(_0x38f41e,_0xa71a7={}){return getChalk(_0xa71a7)['yellow'](_0x38f41e);}export function colorJSONNull(_0x3ca13f,_0x3e3bfe={}){const _0x2f1cb2=a209_0x242df8;return getChalk(_0x3e3bfe)[_0x2f1cb2(0xec)](_0x3ca13f);}function a209_0x2adb(){const _0x5a1e6c=['100269cjyVdH','green','entries','join','2343579MRSavv','dim','blue','isArray','map','repeat','11dzrRGg','42726756rzqtOc','74FGFNkn','1120650nkHMVV','noColor','stringify','3202493KeBbKt','16381nbObij','object','18bIJILq','isTTY','4CtPCBv','1135790EsnEdy','null','color','cyan','length','string','stdout','152MulDKe','Chalk','boolean','number'];a209_0x2adb=function(){return _0x5a1e6c;};return a209_0x2adb();}export function colorizeJSONCompact(_0xc126e7,_0x551eae={}){const _0x28be02=a209_0x242df8;if(!shouldUseColor(_0x551eae))return JSON[_0x28be02(0xd5)](_0xc126e7);if(_0xc126e7===null)return colorJSONNull(_0x28be02(0xdd),_0x551eae);if(typeof _0xc126e7===_0x28be02(0xe5))return colorJSONBoolean(String(_0xc126e7),_0x551eae);if(typeof _0xc126e7===_0x28be02(0xe6))return colorJSONNumber(String(_0xc126e7),_0x551eae);if(typeof _0xc126e7===_0x28be02(0xe1))return colorJSONString(JSON[_0x28be02(0xd5)](_0xc126e7),_0x551eae);if(Array[_0x28be02(0xee)](_0xc126e7)){if(_0xc126e7[_0x28be02(0xe0)]===0x0)return'[]';const _0x1e8da1=_0xc126e7[_0x28be02(0xef)](_0x5bd69c=>colorizeJSONCompact(_0x5bd69c,_0x551eae));return'['+_0x1e8da1['join'](',')+']';}if(typeof _0xc126e7===_0x28be02(0xd8)){const _0x2cc052=Object[_0x28be02(0xe9)](_0xc126e7);if(_0x2cc052[_0x28be02(0xe0)]===0x0)return'{}';const _0x1a25b3=_0x2cc052['map'](([_0x15673c,_0x248490])=>{const _0x441069=_0x28be02,_0xee70bc=colorJSONKey(JSON[_0x441069(0xd5)](_0x15673c),_0x551eae),_0x58b833=colorizeJSONCompact(_0x248490,_0x551eae);return _0xee70bc+':'+_0x58b833;});return'{'+_0x1a25b3['join'](',')+'}';}return String(_0xc126e7);}export function colorizeJSON(_0x210f5f,_0xd2b0e0={},_0x23b49d=0x0){const _0x547653=a209_0x242df8;if(!shouldUseColor(_0xd2b0e0))return JSON[_0x547653(0xd5)](_0x210f5f,null,0x2);const _0x25405d='\x20'['repeat'](_0x23b49d),_0x4d44a0=_0x23b49d+0x2;if(_0x210f5f===null)return colorJSONNull(_0x547653(0xdd),_0xd2b0e0);if(typeof _0x210f5f===_0x547653(0xe5))return colorJSONBoolean(String(_0x210f5f),_0xd2b0e0);if(typeof _0x210f5f==='number')return colorJSONNumber(String(_0x210f5f),_0xd2b0e0);if(typeof _0x210f5f===_0x547653(0xe1))return colorJSONString(JSON[_0x547653(0xd5)](_0x210f5f),_0xd2b0e0);if(Array['isArray'](_0x210f5f)){if(_0x210f5f['length']===0x0)return'[]';const _0x585457=_0x210f5f[_0x547653(0xef)](_0x5e5c6d=>{const _0x51da9b=_0x547653,_0x31e6f3=colorizeJSON(_0x5e5c6d,_0xd2b0e0,_0x4d44a0);return''+'\x20'[_0x51da9b(0xf0)](_0x4d44a0)+_0x31e6f3;});return'[\x0a'+_0x585457[_0x547653(0xea)](',\x0a')+('\x0a'+_0x25405d+']');}if(typeof _0x210f5f===_0x547653(0xd8)){const _0x4f22f0=Object[_0x547653(0xe9)](_0x210f5f);if(_0x4f22f0[_0x547653(0xe0)]===0x0)return'{}';const _0x43fa66=_0x4f22f0[_0x547653(0xef)](([_0x53e372,_0x38b98e])=>{const _0xfd8556=_0x547653,_0x28fd1a=colorJSONKey(JSON[_0xfd8556(0xd5)](_0x53e372),_0xd2b0e0),_0x50da95=colorizeJSON(_0x38b98e,_0xd2b0e0,_0x4d44a0);return''+'\x20'[_0xfd8556(0xf0)](_0x4d44a0)+_0x28fd1a+':\x20'+_0x50da95;});return'{\x0a'+_0x43fa66[_0x547653(0xea)](',\x0a')+('\x0a'+_0x25405d+'}');}return String(_0x210f5f);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a210_0x5e2b(_0x50b143,_0x6bd4bf){_0x50b143=_0x50b143-0xb5;const _0x19d396=a210_0x19d3();let _0x5e2b26=_0x19d396[_0x50b143];return _0x5e2b26;}function a210_0x19d3(){const _0x3df9ee=['1360336fMHPji','content','4114953tRtHmI','\x20\x20...','\x20\x20\x20','forEach','\x20-\x20','repeat','\x20+\x20','95073jFJtho','min','old','fill','max','red','padStart','unchanged','push','length','removed','type','dim','map','1230690kJSsZt','size','643635GecXnH','cyan','4VdaBlW','add','split','9822110nlNuhO','green','1XegptZ','10622560hACacV','unshift','some','9QsvHWn','new','3348kOSzrY','added','join','49UzKdUK','has'];a210_0x19d3=function(){return _0x3df9ee;};return a210_0x19d3();}(function(_0x3734c3,_0x3ceccd){const _0xa885ad=a210_0x5e2b,_0x5cb484=_0x3734c3();while(!![]){try{const _0x57cd29=parseInt(_0xa885ad(0xc3))/0x1*(parseInt(_0xa885ad(0xce))/0x2)+-parseInt(_0xa885ad(0xd0))/0x3+parseInt(_0xa885ad(0xbe))/0x4*(parseInt(_0xa885ad(0xbc))/0x5)+parseInt(_0xa885ad(0xba))/0x6*(-parseInt(_0xa885ad(0xcc))/0x7)+parseInt(_0xa885ad(0xc4))/0x8+-parseInt(_0xa885ad(0xc7))/0x9*(parseInt(_0xa885ad(0xc1))/0xa)+parseInt(_0xa885ad(0xd7))/0xb*(parseInt(_0xa885ad(0xc9))/0xc);if(_0x57cd29===_0x3ceccd)break;else _0x5cb484['push'](_0x5cb484['shift']());}catch(_0x502f8f){_0x5cb484['push'](_0x5cb484['shift']());}}}(a210_0x19d3,0xb92ad));import a210_0x40e556 from'chalk';export function generateDiff(_0x43b4e5,_0x238bfb){const _0x5816fe=a210_0x5e2b,_0x10b39e=_0x43b4e5[_0x5816fe(0xc0)]('\x0a'),_0x59405e=_0x238bfb[_0x5816fe(0xc0)]('\x0a'),_0x2ff7a0=[],_0x25e22d=computeLCS(_0x10b39e,_0x59405e);let _0x453c2f=0x0,_0x44a945=0x0,_0x40e098=0x0;while(_0x453c2f<_0x10b39e[_0x5816fe(0xb5)]||_0x44a945<_0x59405e[_0x5816fe(0xb5)]){if(_0x40e098<_0x25e22d[_0x5816fe(0xb5)]&&_0x453c2f<_0x10b39e[_0x5816fe(0xb5)]&&_0x10b39e[_0x453c2f]===_0x25e22d[_0x40e098])_0x44a945<_0x59405e['length']&&_0x59405e[_0x44a945]===_0x25e22d[_0x40e098]?(_0x2ff7a0[_0x5816fe(0xdf)]({'type':_0x5816fe(0xde),'content':_0x10b39e[_0x453c2f]}),_0x453c2f++,_0x44a945++,_0x40e098++):(_0x2ff7a0[_0x5816fe(0xdf)]({'type':_0x5816fe(0xca),'content':_0x59405e[_0x44a945]}),_0x44a945++);else{if(_0x40e098<_0x25e22d['length']&&_0x44a945<_0x59405e[_0x5816fe(0xb5)]&&_0x59405e[_0x44a945]===_0x25e22d[_0x40e098])_0x2ff7a0[_0x5816fe(0xdf)]({'type':_0x5816fe(0xb6),'content':_0x10b39e[_0x453c2f]}),_0x453c2f++;else{if(_0x453c2f<_0x10b39e[_0x5816fe(0xb5)]&&(_0x40e098>=_0x25e22d[_0x5816fe(0xb5)]||_0x10b39e[_0x453c2f]!==_0x25e22d[_0x40e098]))_0x2ff7a0[_0x5816fe(0xdf)]({'type':_0x5816fe(0xb6),'content':_0x10b39e[_0x453c2f]}),_0x453c2f++;else _0x44a945<_0x59405e[_0x5816fe(0xb5)]&&(_0x2ff7a0[_0x5816fe(0xdf)]({'type':_0x5816fe(0xca),'content':_0x59405e[_0x44a945]}),_0x44a945++);}}}return _0x2ff7a0;}function computeLCS(_0x236d0a,_0x552896){const _0x21d564=a210_0x5e2b,_0x33ffa7=_0x236d0a[_0x21d564(0xb5)],_0x5cc6e2=_0x552896[_0x21d564(0xb5)],_0x389e94=Array(_0x33ffa7+0x1)[_0x21d564(0xda)](null)[_0x21d564(0xb9)](()=>Array(_0x5cc6e2+0x1)['fill'](0x0));for(let _0x2ab0bc=0x1;_0x2ab0bc<=_0x33ffa7;_0x2ab0bc++){for(let _0x24609d=0x1;_0x24609d<=_0x5cc6e2;_0x24609d++){_0x236d0a[_0x2ab0bc-0x1]===_0x552896[_0x24609d-0x1]?_0x389e94[_0x2ab0bc][_0x24609d]=_0x389e94[_0x2ab0bc-0x1][_0x24609d-0x1]+0x1:_0x389e94[_0x2ab0bc][_0x24609d]=Math[_0x21d564(0xdb)](_0x389e94[_0x2ab0bc-0x1][_0x24609d],_0x389e94[_0x2ab0bc][_0x24609d-0x1]);}}const _0xc67eac=[];let _0x4b48e1=_0x33ffa7,_0xf15e8b=_0x5cc6e2;while(_0x4b48e1>0x0&&_0xf15e8b>0x0){if(_0x236d0a[_0x4b48e1-0x1]===_0x552896[_0xf15e8b-0x1])_0xc67eac[_0x21d564(0xc5)](_0x236d0a[_0x4b48e1-0x1]),_0x4b48e1--,_0xf15e8b--;else _0x389e94[_0x4b48e1-0x1][_0xf15e8b]>_0x389e94[_0x4b48e1][_0xf15e8b-0x1]?_0x4b48e1--:_0xf15e8b--;}return _0xc67eac;}export function formatDiffWithColors(_0x2d4a64,_0x4e205c=0x3){const _0x5f5beb=a210_0x5e2b,_0x1a0af5=new Set();_0x2d4a64[_0x5f5beb(0xd3)]((_0xdcf9fb,_0x1bac8a)=>{const _0x14e06d=_0x5f5beb;_0xdcf9fb[_0x14e06d(0xb7)]!==_0x14e06d(0xde)&&_0x1a0af5[_0x14e06d(0xbf)](_0x1bac8a);});if(_0x1a0af5[_0x5f5beb(0xbb)]===0x0)return'';const _0x5b7445=new Set();for(const _0x1c20d5 of _0x1a0af5){for(let _0x5ab766=Math[_0x5f5beb(0xdb)](0x0,_0x1c20d5-_0x4e205c);_0x5ab766<=Math[_0x5f5beb(0xd8)](_0x2d4a64['length']-0x1,_0x1c20d5+_0x4e205c);_0x5ab766++){_0x5b7445['add'](_0x5ab766);}}const _0x1bab68=[];let _0x3f492a=-0x1;const _0x5669e2=_0x2d4a64[_0x5f5beb(0xb5)],_0x10ca22=Math['max'](0x3,String(_0x5669e2)[_0x5f5beb(0xb5)]),_0x316e6f=[];let _0x2fa3fa=0x0,_0x2e26af=0x0;for(const _0x3ed50c of _0x2d4a64){if(_0x3ed50c[_0x5f5beb(0xb7)]==='removed')_0x2fa3fa++,_0x316e6f[_0x5f5beb(0xdf)]({'old':_0x2fa3fa,'new':0x0});else _0x3ed50c[_0x5f5beb(0xb7)]===_0x5f5beb(0xca)?(_0x2e26af++,_0x316e6f[_0x5f5beb(0xdf)]({'old':0x0,'new':_0x2e26af})):(_0x2fa3fa++,_0x2e26af++,_0x316e6f['push']({'old':_0x2fa3fa,'new':_0x2e26af}));}for(let _0x4d29aa=0x0;_0x4d29aa<_0x2d4a64[_0x5f5beb(0xb5)];_0x4d29aa++){if(!_0x5b7445[_0x5f5beb(0xcd)](_0x4d29aa))continue;_0x3f492a!==-0x1&&_0x4d29aa>_0x3f492a+0x1&&_0x1bab68[_0x5f5beb(0xdf)](a210_0x40e556[_0x5f5beb(0xbd)](_0x5f5beb(0xd1)));_0x3f492a=_0x4d29aa;const _0x4f5855=_0x2d4a64[_0x4d29aa],_0x20e50e=_0x316e6f[_0x4d29aa],_0x30175f=_0x20e50e[_0x5f5beb(0xd9)]>0x0?String(_0x20e50e[_0x5f5beb(0xd9)])[_0x5f5beb(0xdd)](_0x10ca22):'\x20'[_0x5f5beb(0xd5)](_0x10ca22),_0x45efec=_0x20e50e[_0x5f5beb(0xc8)]>0x0?String(_0x20e50e[_0x5f5beb(0xc8)])[_0x5f5beb(0xdd)](_0x10ca22):'\x20'[_0x5f5beb(0xd5)](_0x10ca22);switch(_0x4f5855[_0x5f5beb(0xb7)]){case _0x5f5beb(0xb6):_0x1bab68[_0x5f5beb(0xdf)](a210_0x40e556[_0x5f5beb(0xdc)](_0x30175f+'\x20'+_0x45efec+_0x5f5beb(0xd4)+_0x4f5855[_0x5f5beb(0xcf)]));break;case _0x5f5beb(0xca):_0x1bab68['push'](a210_0x40e556[_0x5f5beb(0xc2)](_0x30175f+'\x20'+_0x45efec+_0x5f5beb(0xd6)+_0x4f5855[_0x5f5beb(0xcf)]));break;default:_0x1bab68['push'](a210_0x40e556[_0x5f5beb(0xb8)](_0x30175f+'\x20'+_0x45efec+_0x5f5beb(0xd2)+_0x4f5855[_0x5f5beb(0xcf)]));break;}}return _0x1bab68[_0x5f5beb(0xcb)]('\x0a');}export function hasChanges(_0x3c4010){const _0x11ac45=a210_0x5e2b;return _0x3c4010[_0x11ac45(0xc6)](_0x2f9cc5=>_0x2f9cc5['type']!==_0x11ac45(0xde));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1b60b8,_0xb46f00){const _0x528cc1=a211_0x1909,_0x469284=_0x1b60b8();while(!![]){try{const _0x2a6e23=parseInt(_0x528cc1(0x12e))/0x1*(-parseInt(_0x528cc1(0x129))/0x2)+parseInt(_0x528cc1(0x135))/0x3*(parseInt(_0x528cc1(0x12c))/0x4)+parseInt(_0x528cc1(0x134))/0x5*(parseInt(_0x528cc1(0x12f))/0x6)+-parseInt(_0x528cc1(0x12a))/0x7+parseInt(_0x528cc1(0x131))/0x8+parseInt(_0x528cc1(0x132))/0x9+-parseInt(_0x528cc1(0x12d))/0xa;if(_0x2a6e23===_0xb46f00)break;else _0x469284['push'](_0x469284['shift']());}catch(_0x32ec0e){_0x469284['push'](_0x469284['shift']());}}}(a211_0x26ac,0xe1192));import*as a211_0x49a4b3 from'node:fs';function a211_0x26ac(){const _0xd3714f=['952lWyird','65954ZVETpH','mkdirSync','4ouuKYq','21297640sQowvT','1622hvoZud','93894AYYjLs','mode','2033296sbcpuP','16326135xRgqYw','warn','170DoZsmi','3699051bDfxUW','\x20has\x20insecure\x20permissions\x20(','Warning:\x20','toString','chmodSync','dirname'];a211_0x26ac=function(){return _0xd3714f;};return a211_0x26ac();}import*as a211_0x5c877c from'node:path';export function setSecureFilePermissions(_0x3c1c6e){const _0x646bb8=a211_0x1909;try{a211_0x49a4b3[_0x646bb8(0x127)](_0x3c1c6e,0x180);}catch{console['warn']('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x3c1c6e);}}export function setSecureDirectoryPermissions(_0x5ba18f){const _0xc4a0f6=a211_0x1909;try{a211_0x49a4b3[_0xc4a0f6(0x127)](_0x5ba18f,0x1c0);}catch{console[_0xc4a0f6(0x133)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x5ba18f);}}export function createSecureDirectory(_0x4ae4f6){const _0x28d465=a211_0x1909;!a211_0x49a4b3['existsSync'](_0x4ae4f6)&&(a211_0x49a4b3[_0x28d465(0x12b)](_0x4ae4f6,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x4ae4f6));}function a211_0x1909(_0x23d930,_0x27496a){_0x23d930=_0x23d930-0x125;const _0x26acd6=a211_0x26ac();let _0x19099c=_0x26acd6[_0x23d930];return _0x19099c;}export function validateSecureFilePermissions(_0x4aa65d){const _0x408196=a211_0x1909;try{const _0x37837=a211_0x49a4b3['statSync'](_0x4aa65d),_0x2f639a=_0x37837[_0x408196(0x130)]&0x1ff,_0x4986fe=(_0x2f639a&0x3f)!==0x0;if(_0x4986fe)return console[_0x408196(0x133)](_0x408196(0x125)+_0x4aa65d+_0x408196(0x136)+_0x2f639a[_0x408196(0x126)](0x8)+').\x20'+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x244dbc,_0x4a3daf){const _0x114e97=a211_0x1909,_0x4c1781=a211_0x5c877c[_0x114e97(0x128)](_0x244dbc);createSecureDirectory(_0x4c1781),a211_0x49a4b3['writeFileSync'](_0x244dbc,_0x4a3daf,{'mode':0x180}),setSecureFilePermissions(_0x244dbc);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x415f7d,_0x4a164a){const _0x473108=a212_0x2d57,_0x403e29=_0x415f7d();while(!![]){try{const _0x20a14a=parseInt(_0x473108(0xba))/0x1*(parseInt(_0x473108(0xc0))/0x2)+-parseInt(_0x473108(0xb9))/0x3*(-parseInt(_0x473108(0xae))/0x4)+-parseInt(_0x473108(0xb4))/0x5+-parseInt(_0x473108(0xbf))/0x6*(-parseInt(_0x473108(0xb0))/0x7)+parseInt(_0x473108(0xaf))/0x8*(-parseInt(_0x473108(0xbd))/0x9)+-parseInt(_0x473108(0xbc))/0xa*(parseInt(_0x473108(0xb2))/0xb)+parseInt(_0x473108(0xb1))/0xc;if(_0x20a14a===_0x4a164a)break;else _0x403e29['push'](_0x403e29['shift']());}catch(_0x1a4d2c){_0x403e29['push'](_0x403e29['shift']());}}}(a212_0x59bd,0xd7449));function a212_0x2d57(_0x26e36f,_0x4cdd62){_0x26e36f=_0x26e36f-0xae;const _0x59bdbe=a212_0x59bd();let _0x2d5731=_0x59bdbe[_0x26e36f];return _0x2d5731;}import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a212_0x59bd(){const _0x548f23=['1163298wPmxxm','333734jNRQgJ','NOT_FOUND','utf-8','1086940HLwWSo','16uoNAHT','42tJuAjp','5856408HqUKJR','210716InwIkB','ENOENT','2992260LiDAFi','PERMISSION_DENIED','\x27\x20not\x20found','INTERNAL','message','15ixMZgd','4QoNlBK','Permission\x20denied\x20reading\x20file\x20\x27','240efAlye','7818939oLMfpl','EACCES'];a212_0x59bd=function(){return _0x548f23;};return a212_0x59bd();}export function readFileContent(_0x317f2b){const _0x24943a=a212_0x2d57;try{return readFileSync(_0x317f2b,_0x24943a(0xc2));}catch(_0x3a198e){const _0x6df81a=_0x3a198e['code'];if(_0x6df81a===_0x24943a(0xb3))throw new SDKError(ErrorCode[_0x24943a(0xc1)],'File\x20\x27'+_0x317f2b+_0x24943a(0xb6),_0x3a198e);else{if(_0x6df81a===_0x24943a(0xbe))throw new SDKError(ErrorCode[_0x24943a(0xb5)],_0x24943a(0xbb)+_0x317f2b+'\x27',_0x3a198e);else throw new SDKError(ErrorCode[_0x24943a(0xb7)],'Error\x20reading\x20file\x20\x27'+_0x317f2b+'\x27:\x20'+_0x3a198e[_0x24943a(0xb8)],_0x3a198e);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x366b19,_0x385dd4){const _0x357465=a213_0x3de7,_0x4277ac=_0x366b19();while(!![]){try{const _0x13b0c8=parseInt(_0x357465(0x18f))/0x1*(parseInt(_0x357465(0x186))/0x2)+-parseInt(_0x357465(0x199))/0x3+parseInt(_0x357465(0x189))/0x4+parseInt(_0x357465(0x18c))/0x5*(parseInt(_0x357465(0x18e))/0x6)+parseInt(_0x357465(0x1a2))/0x7+-parseInt(_0x357465(0x18b))/0x8*(parseInt(_0x357465(0x185))/0x9)+parseInt(_0x357465(0x192))/0xa*(-parseInt(_0x357465(0x19d))/0xb);if(_0x13b0c8===_0x385dd4)break;else _0x4277ac['push'](_0x4277ac['shift']());}catch(_0x48f3a8){_0x4277ac['push'](_0x4277ac['shift']());}}}(a213_0x557f,0xe5ab9));import*as a213_0x236a4f from'node:https';function a213_0x557f(){const _0x9b76fb=['now','2488164MUrUlI','statusCode','/repos/','171EdlyIb','3539348wIdbSL','tag_name','/releases?per_page=20','1170928VzIuwl','get','538312LsPjZb','10FsiZoD','fetchedAt','4406622CllXtV','1jNREOM','find','end','7379290jTXecz','length','data','error','application/vnd.github+json','GitHub\x20API\x20returned\x20','resolve','2788749yAJtyv','set','toString','api.github.com','11RcSJAO','releases','next','GitHub\x20API\x20request\x20timed\x20out\x20after\x20'];a213_0x557f=function(){return _0x9b76fb;};return a213_0x557f();}function a213_0x3de7(_0x10e831,_0x1f6e67){_0x10e831=_0x10e831-0x185;const _0x557ff0=a213_0x557f();let _0x3de79c=_0x557ff0[_0x10e831];return _0x3de79c;}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x2afc72,_0x25c787,_0x268fa0){const _0x505f8f=a213_0x3de7,_0x189e75=_0x2afc72+'/'+_0x25c787,_0xe29d0b=cache[_0x505f8f(0x18a)](_0x189e75);if(_0xe29d0b&&Date[_0x505f8f(0x1a1)]()-_0xe29d0b[_0x505f8f(0x18d)]<CACHE_TTL_MS)return Promise[_0x505f8f(0x198)](_0xe29d0b[_0x505f8f(0x19e)]);return new Promise((_0x1a1116,_0x78c08b)=>{const _0xaf32fd=_0x505f8f,_0x4357f7={'hostname':_0xaf32fd(0x19c),'path':_0xaf32fd(0x1a4)+_0x2afc72+'/'+_0x25c787+_0xaf32fd(0x188),'headers':{'User-Agent':_0x268fa0,'Accept':_0xaf32fd(0x196)},'timeout':REQUEST_TIMEOUT_MS},_0x43c359=a213_0x236a4f[_0xaf32fd(0x18a)](_0x4357f7,_0x194fcf=>{const _0x523723=_0xaf32fd;let _0x5e7d74='';_0x194fcf['on'](_0x523723(0x194),_0x365434=>{const _0x5a5325=_0x523723;_0x5e7d74+=_0x365434[_0x5a5325(0x19b)]();}),_0x194fcf['on'](_0x523723(0x191),()=>{const _0x2456d7=_0x523723;if(_0x194fcf[_0x2456d7(0x1a3)]!==0xc8){_0x78c08b(new Error(_0x2456d7(0x197)+_0x194fcf['statusCode']+':\x20'+_0x5e7d74['slice'](0x0,0xc8)));return;}try{const _0x3e6215=JSON['parse'](_0x5e7d74);cache[_0x2456d7(0x19a)](_0x189e75,{'releases':_0x3e6215,'fetchedAt':Date['now']()}),_0x1a1116(_0x3e6215);}catch(_0x3a88c6){_0x78c08b(_0x3a88c6);}});});_0x43c359['on']('timeout',()=>{const _0x484014=_0xaf32fd;_0x43c359['destroy'](),_0x78c08b(new Error(_0x484014(0x1a0)+REQUEST_TIMEOUT_MS+'ms'));}),_0x43c359['on'](_0xaf32fd(0x195),_0x78c08b);});}export async function resolveReleaseTag(_0x33eb0b,_0x2c8372,_0x2102e1,_0x1fbc3c){const _0xad036c=a213_0x3de7,_0x3baa70=await fetchGitHubReleases(_0x2c8372,_0x2102e1,_0x1fbc3c);if(_0x3baa70[_0xad036c(0x193)]===0x0)return null;if(_0x33eb0b===_0xad036c(0x19f))return _0x3baa70[0x0][_0xad036c(0x187)];const _0x361d19=_0x3baa70[_0xad036c(0x190)](_0x203b1b=>!_0x203b1b['prerelease']);return _0x361d19?_0x361d19[_0xad036c(0x187)]:null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x27504b,_0x162ed5){const _0x59225c=a214_0x3a63,_0x583e81=_0x27504b();while(!![]){try{const _0x454cd1=-parseInt(_0x59225c(0x7e))/0x1*(-parseInt(_0x59225c(0x7f))/0x2)+-parseInt(_0x59225c(0x93))/0x3*(-parseInt(_0x59225c(0x92))/0x4)+-parseInt(_0x59225c(0x85))/0x5+-parseInt(_0x59225c(0x87))/0x6*(-parseInt(_0x59225c(0x91))/0x7)+parseInt(_0x59225c(0x86))/0x8+parseInt(_0x59225c(0x8f))/0x9*(parseInt(_0x59225c(0x89))/0xa)+-parseInt(_0x59225c(0x82))/0xb;if(_0x454cd1===_0x162ed5)break;else _0x583e81['push'](_0x583e81['shift']());}catch(_0x56bdc1){_0x583e81['push'](_0x583e81['shift']());}}}(a214_0x3291,0xe2545));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x1522cb=a214_0x3a63;return process.env.TDX_CACHE_DIR||join(homedir(),_0x1522cb(0x90),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x1f9f8c,_0x89d811){const _0x5b8ada=a214_0x3a63,_0x4ea470=registry[_0x5b8ada(0x80)](_0x1f9f8c);if(_0x4ea470&&_0x4ea470!==_0x89d811)throw new Error('Global\x20cache\x20key\x20\x22'+_0x1f9f8c+'\x22\x20already\x20registered\x20by\x20\x22'+_0x4ea470+_0x5b8ada(0x83)+_0x89d811+'\x22');registry[_0x5b8ada(0x81)](_0x1f9f8c,_0x89d811);}export function getGlobalCachePath(_0x4df249){return join(getGlobalCacheDir(),_0x4df249);}function ensureGlobalCacheDir(){const _0x5a3c83=getGlobalCacheDir();!existsSync(_0x5a3c83)&&mkdirSync(_0x5a3c83,{'recursive':!![]});}function readCacheJson(_0x2072ce){const _0x1684b3=a214_0x3a63,_0x438ad1=getGlobalCachePath(_0x2072ce);if(!existsSync(_0x438ad1))return undefined;try{const _0xd45b1c=readFileSync(_0x438ad1,_0x1684b3(0x84));return JSON[_0x1684b3(0x8a)](_0xd45b1c);}catch{return undefined;}}function writeCacheJson(_0x17d164,_0x524428){const _0x4b3196=a214_0x3a63;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x17d164),JSON[_0x4b3196(0x8e)](_0x524428,null,0x2),_0x4b3196(0x84));}function a214_0x3a63(_0x2b61a2,_0x490e94){_0x2b61a2=_0x2b61a2-0x7e;const _0x329109=a214_0x3291();let _0x3a63d4=_0x329109[_0x2b61a2];return _0x3a63d4;}function readCacheText(_0xcb1f08){const _0x5be084=a214_0x3a63,_0xde85b7=getGlobalCachePath(_0xcb1f08);if(!existsSync(_0xde85b7))return undefined;try{return readFileSync(_0xde85b7,_0x5be084(0x84));}catch{return undefined;}}function writeCacheText(_0x5295ce,_0x3e9e9f){const _0x5da91d=a214_0x3a63;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5295ce),_0x3e9e9f,_0x5da91d(0x84));}function clearCache(_0x32a39a){const _0x57e661=getGlobalCachePath(_0x32a39a);if(existsSync(_0x57e661))try{unlinkSync(_0x57e661);}catch{}}function cacheExists(_0x262fca){return existsSync(getGlobalCachePath(_0x262fca));}export function createGlobalCache(_0x30b955,_0xa4bd9c){return registerGlobalCacheKey(_0x30b955,_0xa4bd9c),{'read':()=>readCacheJson(_0x30b955),'write':_0x19755c=>writeCacheJson(_0x30b955,_0x19755c),'clear':()=>clearCache(_0x30b955),'exists':()=>cacheExists(_0x30b955),'path':()=>getGlobalCachePath(_0x30b955)};}export function createGlobalTextCache(_0x3518c9,_0x4c9f5b){const _0x47bbbe=a214_0x3a63;return registerGlobalCacheKey(_0x3518c9,_0x4c9f5b),{'read':()=>readCacheText(_0x3518c9)?.[_0x47bbbe(0x8d)]()||undefined,'write':_0x41fb88=>writeCacheText(_0x3518c9,_0x41fb88),'clear':()=>clearCache(_0x3518c9),'exists':()=>cacheExists(_0x3518c9),'path':()=>getGlobalCachePath(_0x3518c9)};}export function createProfileCache(_0x9bd9f0,_0x1e817b){const _0x170677=_0x486125=>{const _0x4e2c00=a214_0x3a63,_0x2838fb=_0x486125||_0x4e2c00(0x88);return _0x9bd9f0[_0x4e2c00(0x8b)](_0x4e2c00(0x94),_0x2838fb);};return{'read':_0x4d3d6a=>{const _0x5699e5=_0x170677(_0x4d3d6a);return registerGlobalCacheKey(_0x5699e5,_0x1e817b),readCacheJson(_0x5699e5);},'write':(_0x50592c,_0xed981f)=>{const _0x269cfa=_0x170677(_0x50592c);registerGlobalCacheKey(_0x269cfa,_0x1e817b),writeCacheJson(_0x269cfa,_0xed981f);},'clear':_0x2d41b5=>{const _0x1b31fd=_0x170677(_0x2d41b5);clearCache(_0x1b31fd);},'exists':_0x4e4863=>{const _0x22b34c=_0x170677(_0x4e4863);return cacheExists(_0x22b34c);},'path':_0xd67118=>{const _0xc8bb36=_0x170677(_0xd67118);return getGlobalCachePath(_0xc8bb36);}};}function a214_0x3291(){const _0x2d8163=['{profile}','512758bSaKuz','4glQGOc','get','set','19578504bSvsER','\x22,\x20cannot\x20register\x20for\x20\x22','utf-8','6648385IhNfKR','8071624vuJxHA','6BdEWaH','default','624110lemIEQ','parse','replace','clear','trim','stringify','180dFSLjL','.cache','3910669yZPRMa','56iColhi','41835TXmZfw'];a214_0x3291=function(){return _0x2d8163;};return a214_0x3291();}export function createOptionalProfileCache(_0x12307c,_0x44311f,_0x296997={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x296997,_0x2cf3ab=_0x38da87=>{return _0x38da87?''+_0x12307c+profileSeparator+_0x38da87+suffix:''+_0x12307c+suffix;};return{'read':_0x5f2274=>{const _0x247024=_0x2cf3ab(_0x5f2274);return registerGlobalCacheKey(_0x247024,_0x44311f),readCacheJson(_0x247024);},'write':(_0xa44d7f,_0x1728a9)=>{const _0x67d61e=_0x2cf3ab(_0x1728a9);registerGlobalCacheKey(_0x67d61e,_0x44311f),writeCacheJson(_0x67d61e,_0xa44d7f);},'clear':_0x2571ad=>{const _0x32fec3=_0x2cf3ab(_0x2571ad);clearCache(_0x32fec3);},'exists':_0x30ce7f=>{const _0x1277f9=_0x2cf3ab(_0x30ce7f);return cacheExists(_0x1277f9);},'path':_0x1c08f3=>{const _0x4e971d=_0x2cf3ab(_0x1c08f3);return getGlobalCachePath(_0x4e971d);}};}export function clearGlobalRegistry(){const _0x5b36d6=a214_0x3a63;registry[_0x5b36d6(0x8c)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1732d5,_0xae7fea){const _0x9fe254=a215_0x4a6e,_0x56cc8d=_0x1732d5();while(!![]){try{const _0x5ae09b=parseInt(_0x9fe254(0xc5))/0x1*(parseInt(_0x9fe254(0xbf))/0x2)+parseInt(_0x9fe254(0xb7))/0x3*(-parseInt(_0x9fe254(0xb6))/0x4)+-parseInt(_0x9fe254(0xc6))/0x5+-parseInt(_0x9fe254(0xc7))/0x6+parseInt(_0x9fe254(0xbd))/0x7*(-parseInt(_0x9fe254(0xba))/0x8)+parseInt(_0x9fe254(0xc9))/0x9*(parseInt(_0x9fe254(0xc1))/0xa)+-parseInt(_0x9fe254(0xcc))/0xb*(-parseInt(_0x9fe254(0xc3))/0xc);if(_0x5ae09b===_0xae7fea)break;else _0x56cc8d['push'](_0x56cc8d['shift']());}catch(_0x220289){_0x56cc8d['push'](_0x56cc8d['shift']());}}}(a215_0x516f,0xa5676));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a215_0x516f(){const _0x321d3f=['INVALID_ARGUMENT','Failed\x20to\x20load\x20JSON:\x20','223304ypJNYG','NOT_FOUND','Permission\x20denied\x20reading\x20file:\x20','203RNcYtM','message','2vGaSYh','INTERNAL','20VgWWol','ENOENT','1956BoLyaM','\x27:\x20','69663StpjNm','5533900fQxpwj','683820UCpVws','Invalid\x20JSON\x20string:\x20','3043125YDsarD','parse','utf-8','136961mSJZCH','EACCES','PERMISSION_DENIED','4NBWBnX','203115TFcxiY'];a215_0x516f=function(){return _0x321d3f;};return a215_0x516f();}function a215_0x4a6e(_0x4ed80a,_0x2c390c){_0x4ed80a=_0x4ed80a-0xb6;const _0x516f3c=a215_0x516f();let _0x4a6e96=_0x516f3c[_0x4ed80a];return _0x4a6e96;}export async function loadJSON(_0x932904,_0xe538e6){const _0x2b39ec=a215_0x4a6e;try{if(_0xe538e6){const _0x4d263c=await readFile(_0x932904,_0x2b39ec(0xcb));try{return JSON[_0x2b39ec(0xca)](_0x4d263c);}catch(_0x4a75d6){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x932904+_0x2b39ec(0xc4)+(_0x4a75d6 instanceof Error?_0x4a75d6[_0x2b39ec(0xbe)]:String(_0x4a75d6)));}}else try{return JSON[_0x2b39ec(0xca)](_0x932904);}catch(_0x3475b0){throw new SDKError(ErrorCode[_0x2b39ec(0xb8)],_0x2b39ec(0xc8)+(_0x3475b0 instanceof Error?_0x3475b0['message']:String(_0x3475b0)));}}catch(_0x49a73e){if(_0x49a73e instanceof SDKError)throw _0x49a73e;if(_0x49a73e instanceof Error&&'code'in _0x49a73e){const _0x31e29d=_0x49a73e;if(_0x31e29d['code']===_0x2b39ec(0xc2))throw new SDKError(ErrorCode[_0x2b39ec(0xbb)],'File\x20not\x20found:\x20'+_0x932904);else{if(_0x31e29d['code']===_0x2b39ec(0xcd))throw new SDKError(ErrorCode[_0x2b39ec(0xce)],_0x2b39ec(0xbc)+_0x932904);}}throw new SDKError(ErrorCode[_0x2b39ec(0xc0)],_0x2b39ec(0xb9)+(_0x49a73e instanceof Error?_0x49a73e[_0x2b39ec(0xbe)]:String(_0x49a73e)));}}export async function loadJSONFromOptions(_0x2d4fb6,_0x22d481){const _0x40abab=a215_0x4a6e;if(_0x2d4fb6&&_0x22d481)throw new SDKError(ErrorCode[_0x40abab(0xb8)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x2d4fb6)return await loadJSON(_0x2d4fb6,![]);if(_0x22d481)return await loadJSON(_0x22d481,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a216_0xe462(_0x32dbed,_0x58f14e){_0x32dbed=_0x32dbed-0x13f;const _0x228c6e=a216_0x228c();let _0xe4626e=_0x228c6e[_0x32dbed];return _0xe4626e;}const a216_0x2a95f2=a216_0xe462;(function(_0x431bc5,_0x56a6d6){const _0x4fbcc7=a216_0xe462,_0x13505b=_0x431bc5();while(!![]){try{const _0x6a2b1a=-parseInt(_0x4fbcc7(0x144))/0x1*(parseInt(_0x4fbcc7(0x142))/0x2)+parseInt(_0x4fbcc7(0x145))/0x3*(parseInt(_0x4fbcc7(0x14c))/0x4)+-parseInt(_0x4fbcc7(0x148))/0x5+parseInt(_0x4fbcc7(0x146))/0x6+parseInt(_0x4fbcc7(0x14b))/0x7+parseInt(_0x4fbcc7(0x152))/0x8+-parseInt(_0x4fbcc7(0x151))/0x9;if(_0x6a2b1a===_0x56a6d6)break;else _0x13505b['push'](_0x13505b['shift']());}catch(_0x385d97){_0x13505b['push'](_0x13505b['shift']());}}}(a216_0x228c,0x84d15));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a216_0x2a95f2(0x147),registry=new Map();export function registerCacheKey(_0x26207d,_0x29cde5){const _0x50e325=a216_0x2a95f2,_0x17a4b7=registry[_0x50e325(0x140)](_0x26207d);if(_0x17a4b7&&_0x17a4b7!==_0x29cde5)throw new Error('Cache\x20key\x20\x22'+_0x26207d+_0x50e325(0x14f)+_0x17a4b7+_0x50e325(0x14e)+_0x29cde5+'\x22');registry[_0x50e325(0x141)](_0x26207d,_0x29cde5);}export function getCacheDir(){const _0x1d23a1=a216_0x2a95f2,_0x2f8e45=process['cwd'](),_0x3e9e3b=_0x2f8e45===parse(_0x2f8e45)[_0x1d23a1(0x14a)]?homedir():_0x2f8e45;return join(_0x3e9e3b,LOCAL_CACHE_DIR);}export function getCachePath(_0x2b6980){return join(getCacheDir(),_0x2b6980);}function ensureCacheDir(){const _0x1643c6=getCacheDir();!existsSync(_0x1643c6)&&mkdirSync(_0x1643c6,{'recursive':!![]});}function a216_0x228c(){const _0x59cb8b=['stringify','1819899OenNea','3816832ERCfbV','utf-8','get','set','2NBAhqp','clear','390511URKJpd','1257SEsLeF','3698838uZLdHU','.cache/tdx','2648280qZjyEl','trim','root','413896JnxMOJ','4904mdOoZr','parse','\x22,\x20cannot\x20register\x20for\x20\x22','\x22\x20already\x20registered\x20by\x20\x22'];a216_0x228c=function(){return _0x59cb8b;};return a216_0x228c();}function readCacheJson(_0x5cf62e){const _0x23415e=a216_0x2a95f2,_0x29eb36=getCachePath(_0x5cf62e);if(!existsSync(_0x29eb36))return undefined;try{const _0x4d240a=readFileSync(_0x29eb36,_0x23415e(0x13f));return JSON[_0x23415e(0x14d)](_0x4d240a);}catch{return undefined;}}function writeCacheJson(_0x333167,_0x52830d){const _0x206571=a216_0x2a95f2;ensureCacheDir(),writeFileSync(getCachePath(_0x333167),JSON[_0x206571(0x150)](_0x52830d,null,0x2),'utf-8');}function readCacheText(_0x2816f9){const _0x377a1d=a216_0x2a95f2,_0x22056e=getCachePath(_0x2816f9);if(!existsSync(_0x22056e))return undefined;try{return readFileSync(_0x22056e,_0x377a1d(0x13f));}catch{return undefined;}}function writeCacheText(_0x308fd5,_0x1a69bc){const _0x5ed9fa=a216_0x2a95f2;ensureCacheDir(),writeFileSync(getCachePath(_0x308fd5),_0x1a69bc,_0x5ed9fa(0x13f));}function clearCache(_0x9ee0b2){const _0x5f45f0=getCachePath(_0x9ee0b2);if(existsSync(_0x5f45f0))try{unlinkSync(_0x5f45f0);}catch{}}function cacheExists(_0xd9d517){return existsSync(getCachePath(_0xd9d517));}export function createCache(_0x5bdb5a,_0x17074f){return registerCacheKey(_0x5bdb5a,_0x17074f),{'read':()=>readCacheJson(_0x5bdb5a),'write':_0x1b3ba9=>writeCacheJson(_0x5bdb5a,_0x1b3ba9),'clear':()=>clearCache(_0x5bdb5a),'exists':()=>cacheExists(_0x5bdb5a),'path':()=>getCachePath(_0x5bdb5a)};}export function createTextCache(_0x5732e9,_0x163b1d){const _0x169ba7=a216_0x2a95f2;return registerCacheKey(_0x5732e9,_0x163b1d),{'read':()=>readCacheText(_0x5732e9)?.[_0x169ba7(0x149)]()||undefined,'write':_0x1e6612=>writeCacheText(_0x5732e9,_0x1e6612),'clear':()=>clearCache(_0x5732e9),'exists':()=>cacheExists(_0x5732e9),'path':()=>getCachePath(_0x5732e9)};}export function clearRegistry(){const _0x3b4c4d=a216_0x2a95f2;registry[_0x3b4c4d(0x143)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a217_0x1c1a(_0x3aefc8,_0x3d35f4){_0x3aefc8=_0x3aefc8-0x1a8;const _0x1d9673=a217_0x1d96();let _0x1c1a66=_0x1d9673[_0x3aefc8];return _0x1c1a66;}const a217_0x332850=a217_0x1c1a;(function(_0x135b4a,_0x4f8242){const _0x24a8a8=a217_0x1c1a,_0x35cc6b=_0x135b4a();while(!![]){try{const _0x214b4f=parseInt(_0x24a8a8(0x1c3))/0x1+parseInt(_0x24a8a8(0x1b5))/0x2*(parseInt(_0x24a8a8(0x1b2))/0x3)+parseInt(_0x24a8a8(0x1b3))/0x4*(parseInt(_0x24a8a8(0x1aa))/0x5)+parseInt(_0x24a8a8(0x1b6))/0x6*(-parseInt(_0x24a8a8(0x1b0))/0x7)+parseInt(_0x24a8a8(0x1bf))/0x8+parseInt(_0x24a8a8(0x1b7))/0x9*(parseInt(_0x24a8a8(0x1c2))/0xa)+-parseInt(_0x24a8a8(0x1b9))/0xb*(parseInt(_0x24a8a8(0x1b1))/0xc);if(_0x214b4f===_0x4f8242)break;else _0x35cc6b['push'](_0x35cc6b['shift']());}catch(_0x5f0dd4){_0x35cc6b['push'](_0x35cc6b['shift']());}}}(a217_0x1d96,0x886dd));import a217_0x176ffc from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a217_0x176ffc,ChalkClass=chalkModule[a217_0x332850(0x1b4)]||chalkModule[a217_0x332850(0x1b8)]?.[a217_0x332850(0x1b4)];export class DefaultLogFormatter{[a217_0x332850(0x1bc)];[a217_0x332850(0x1be)];constructor(_0x31c344={}){const _0x501e51=a217_0x332850;this[_0x501e51(0x1bc)]=_0x31c344[_0x501e51(0x1bc)]??![],this[_0x501e51(0x1be)]=_0x31c344[_0x501e51(0x1bc)]&&ChalkClass?new ChalkClass({'level':0x3}):a217_0x176ffc;}[a217_0x332850(0x1c4)](_0x1db1e1){const _0xd8c9e1=a217_0x332850,_0x472a73=formatTimestamp(_0x1db1e1['timestamp']),_0x5e7f0a=logLevelToString(_0x1db1e1[_0xd8c9e1(0x1a9)]);if(!this[_0xd8c9e1(0x1bc)])return _0x472a73+'\x20['+_0x5e7f0a+_0xd8c9e1(0x1ad)+_0x1db1e1[_0xd8c9e1(0x1bb)]+']\x20'+_0x1db1e1[_0xd8c9e1(0x1ac)];const _0x12c9a4=this[_0xd8c9e1(0x1be)][_0xd8c9e1(0x1ae)](_0x472a73),_0x221c08=this[_0xd8c9e1(0x1c5)](_0x5e7f0a,_0x1db1e1[_0xd8c9e1(0x1a9)]),_0x45c747=this[_0xd8c9e1(0x1be)][_0xd8c9e1(0x1c1)]('['+_0x1db1e1[_0xd8c9e1(0x1bb)]+']');return _0x12c9a4+'\x20'+_0x221c08+'\x20'+_0x45c747+'\x20'+_0x1db1e1[_0xd8c9e1(0x1ac)];}[a217_0x332850(0x1c5)](_0x230dda,_0x405895){const _0x18f4c4=a217_0x332850;switch(_0x405895){case LogLevel[_0x18f4c4(0x1af)]:return this[_0x18f4c4(0x1be)][_0x18f4c4(0x1c0)]('['+_0x230dda+']');case LogLevel[_0x18f4c4(0x1a8)]:return this['chalk']['green']('['+_0x230dda+']');case LogLevel['INFO']:return this[_0x18f4c4(0x1be)][_0x18f4c4(0x1ab)]('['+_0x230dda+']');case LogLevel[_0x18f4c4(0x1ba)]:return this['chalk']['yellow']('['+_0x230dda+']');case LogLevel[_0x18f4c4(0x1bd)]:return this[_0x18f4c4(0x1be)]['red']('['+_0x230dda+']');default:return'['+_0x230dda+']';}}}function a217_0x1d96(){const _0x10265c=['Chalk','1476938gKuYEv','900mxzxgr','290259NSCfpZ','default','11WfUUHm','WARN','component','colors','ERROR','chalk','7729952omOnLg','gray','blue','100VLCPWR','919457XQKUXe','format','colorLevel','DEBUG','level','83410FCAMcW','cyan','message',']\x20[','dim','TRACE','19859wsxGHG','23747988AKRPtx','3aoVCTv','4zPUTzV'];a217_0x1d96=function(){return _0x10265c;};return a217_0x1d96();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a218_0x25e5(_0x5a7702,_0x6c0b06){_0x5a7702=_0x5a7702-0x13a;var _0x406254=a218_0x4062();var _0x25e507=_0x406254[_0x5a7702];return _0x25e507;}function a218_0x4062(){var _0x489db3=['138120FGqdya','265951yxbAAM','2WPjvgk','778555MlJRlm','736868cughXK','101992KldlmR','5500980yYtmEQ','171AESvAS','42WCauob','306497fSMvvK'];a218_0x4062=function(){return _0x489db3;};return a218_0x4062();}(function(_0x2106c3,_0x1826f4){var _0x546f4a=a218_0x25e5,_0x5cd743=_0x2106c3();while(!![]){try{var _0x138e62=parseInt(_0x546f4a(0x13d))/0x1*(-parseInt(_0x546f4a(0x140))/0x2)+parseInt(_0x546f4a(0x13e))/0x3+-parseInt(_0x546f4a(0x142))/0x4+parseInt(_0x546f4a(0x141))/0x5+parseInt(_0x546f4a(0x13c))/0x6*(-parseInt(_0x546f4a(0x13f))/0x7)+parseInt(_0x546f4a(0x143))/0x8*(parseInt(_0x546f4a(0x13b))/0x9)+parseInt(_0x546f4a(0x13a))/0xa;if(_0x138e62===_0x1826f4)break;else _0x5cd743['push'](_0x5cd743['shift']());}catch(_0x35ada9){_0x5cd743['push'](_0x5cd743['shift']());}}}(a218_0x4062,0x39f67));export{DefaultLogFormatter}from'./default-formatter.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a219_0x235b(_0x589f89,_0x7fa13c){_0x589f89=_0x589f89-0x1d8;const _0x128341=a219_0x1283();let _0x235b78=_0x128341[_0x589f89];return _0x235b78;}function a219_0x1283(){const _0x2ff311=['1215734vNCkcs','useStderr','15032mQySPB','1562430edwdUT','4CKPGgc','minLevel','log','level','4599SujoLV','7060707qXWfhH','6622165rtmJHI','41894QxNajz','colors','format','12651610RAGzPj','WARN','195fRHapK','formatter'];a219_0x1283=function(){return _0x2ff311;};return a219_0x1283();}const a219_0x4c769d=a219_0x235b;(function(_0x3b7be2,_0x2aa63f){const _0x8f113a=a219_0x235b,_0x519803=_0x3b7be2();while(!![]){try{const _0xa9fec1=parseInt(_0x8f113a(0x1da))/0x1+parseInt(_0x8f113a(0x1e5))/0x2*(-parseInt(_0x8f113a(0x1d8))/0x3)+-parseInt(_0x8f113a(0x1de))/0x4*(-parseInt(_0x8f113a(0x1e4))/0x5)+parseInt(_0x8f113a(0x1dd))/0x6+-parseInt(_0x8f113a(0x1e2))/0x7*(parseInt(_0x8f113a(0x1dc))/0x8)+-parseInt(_0x8f113a(0x1e3))/0x9+parseInt(_0x8f113a(0x1e8))/0xa;if(_0xa9fec1===_0x2aa63f)break;else _0x519803['push'](_0x519803['shift']());}catch(_0x304a43){_0x519803['push'](_0x519803['shift']());}}}(a219_0x1283,0xa7460));import{LogLevel as a219_0x5b0110}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a219_0x4c769d(0x1df)];[a219_0x4c769d(0x1db)];[a219_0x4c769d(0x1d9)];constructor(_0x2fc7a2={}){const _0x45c3b2=a219_0x4c769d;this[_0x45c3b2(0x1df)]=_0x2fc7a2['minLevel']??a219_0x5b0110[_0x45c3b2(0x1e9)],this[_0x45c3b2(0x1db)]=_0x2fc7a2[_0x45c3b2(0x1db)]??!![],this['formatter']=new DefaultLogFormatter({'colors':_0x2fc7a2[_0x45c3b2(0x1e6)]??!![]});}['handle'](_0x490611){const _0x290027=a219_0x4c769d;if(_0x490611[_0x290027(0x1e1)]<this[_0x290027(0x1df)])return;const _0x11fd6d=this[_0x290027(0x1d9)][_0x290027(0x1e7)](_0x490611);this[_0x290027(0x1db)]&&_0x490611[_0x290027(0x1e1)]>=a219_0x5b0110[_0x290027(0x1e9)]?console['error'](_0x11fd6d):console[_0x290027(0x1e0)](_0x11fd6d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a220_0x4a1d9d=a220_0x3f73;function a220_0x3f73(_0xf95b71,_0x4428be){_0xf95b71=_0xf95b71-0xec;const _0x6af836=a220_0x6af8();let _0x3f7387=_0x6af836[_0xf95b71];return _0x3f7387;}(function(_0x25bd80,_0xd72fa0){const _0x23aa1f=a220_0x3f73,_0x276079=_0x25bd80();while(!![]){try{const _0x1f2b14=-parseInt(_0x23aa1f(0xf5))/0x1+-parseInt(_0x23aa1f(0x108))/0x2*(-parseInt(_0x23aa1f(0x103))/0x3)+parseInt(_0x23aa1f(0x10c))/0x4+-parseInt(_0x23aa1f(0xec))/0x5*(parseInt(_0x23aa1f(0x102))/0x6)+-parseInt(_0x23aa1f(0xfb))/0x7*(-parseInt(_0x23aa1f(0xf2))/0x8)+-parseInt(_0x23aa1f(0x109))/0x9*(parseInt(_0x23aa1f(0x107))/0xa)+parseInt(_0x23aa1f(0x111))/0xb;if(_0x1f2b14===_0xd72fa0)break;else _0x276079['push'](_0x276079['shift']());}catch(_0x310415){_0x276079['push'](_0x276079['shift']());}}}(a220_0x6af8,0xcd88d));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{['logPath'];[a220_0x4a1d9d(0x106)];[a220_0x4a1d9d(0x10d)];['logBaseName'];[a220_0x4a1d9d(0xf6)]=null;[a220_0x4a1d9d(0x105)];constructor(_0x4d707e={}){const _0x4c5593=a220_0x4a1d9d;this[_0x4c5593(0xf7)]=_0x4d707e['filePath']??join(getGlobalCacheDir(),_0x4c5593(0x10e),_0x4c5593(0x10a)),this[_0x4c5593(0x106)]=dirname(this[_0x4c5593(0xf7)]),this['logFileName']=basename(this[_0x4c5593(0xf7)]),this[_0x4c5593(0xfe)]=this['logFileName'][_0x4c5593(0x112)](/\.log$/,''),this[_0x4c5593(0x105)]=_0x4d707e[_0x4c5593(0x105)]??!![];}async[a220_0x4a1d9d(0xfa)](){const _0x349885=a220_0x4a1d9d;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0x349885(0x105)]&&await this[_0x349885(0xf1)](),this[_0x349885(0xf6)]=createWriteStream(this[_0x349885(0xf7)],{'flags':'a'}),this[_0x349885(0xf6)]['on']('error',_0x3f4098=>{const _0x3c85d4=_0x349885;console[_0x3c85d4(0x100)](_0x3c85d4(0xee)+this[_0x3c85d4(0x10d)]+':',_0x3f4098[_0x3c85d4(0x110)]);});}catch(_0x3a4bbb){console[_0x349885(0x100)](_0x349885(0xf4),_0x3a4bbb);}}[a220_0x4a1d9d(0xfc)](_0x96c1ba){const _0x4b8469=a220_0x4a1d9d;if(!this[_0x4b8469(0xf6)])return;const _0x257f9a=Logger[_0x4b8469(0xff)](_0x96c1ba);this[_0x4b8469(0xf6)]['write'](_0x257f9a+'\x0a');}async[a220_0x4a1d9d(0x10f)](){return new Promise(_0x1fd0e5=>{const _0x3373b6=a220_0x3f73;this['logStream']?this[_0x3373b6(0xf6)][_0x3373b6(0xf8)](()=>{this['logStream']=null,_0x1fd0e5();}):_0x1fd0e5();});}['getLogPath'](){const _0x193937=a220_0x4a1d9d;return this[_0x193937(0xf7)];}async[a220_0x4a1d9d(0xf1)](){const _0x295e14=a220_0x4a1d9d;try{const _0x379125=await readdir(this['logDir']),_0x108ecb=new Date()[_0x295e14(0x104)]()['split']('T')[0x0];if(_0x379125[_0x295e14(0xfd)](this['logFileName'])){const _0x3802b6=join(this[_0x295e14(0x106)],this[_0x295e14(0x10d)]),_0x1967b9=await stat(_0x3802b6),_0xd25b4e=new Date(_0x1967b9[_0x295e14(0x101)])[_0x295e14(0x104)]()[_0x295e14(0xf9)]('T')[0x0];if(_0xd25b4e<_0x108ecb){const _0x37f737=join(this['logDir'],this[_0x295e14(0xfe)]+'-'+_0xd25b4e+_0x295e14(0xef));await rename(_0x3802b6,_0x37f737);}}const _0x333037=await readdir(this['logDir']),_0x578f3d=this['logBaseName'][_0x295e14(0x112)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x56f326=new RegExp('^'+_0x578f3d+_0x295e14(0xf0)),_0xb111fc=_0x333037['filter'](_0x2ee89e=>_0x56f326[_0x295e14(0xf3)](_0x2ee89e));for(const _0x5c45c4 of _0xb111fc){const _0x3e736a=join(this[_0x295e14(0x106)],_0x5c45c4),_0x7f9e6=join(this[_0x295e14(0x106)],_0x5c45c4+_0x295e14(0xed));try{await pipeline(createReadStream(_0x3e736a),createGzip(),createWriteStream(_0x7f9e6)),await unlink(_0x3e736a);}catch(_0x1dc441){console['error'](_0x295e14(0x10b)+_0x5c45c4+':',_0x1dc441);}}}catch{}}}function a220_0x6af8(){const _0x4891f5=['1631FojYJJ','handle','includes','logBaseName','format','error','mtime','415320FQCwqB','93fCHtNL','toISOString','rotate','logDir','4882830HcpRXN','31026pQFmvL','27tubxJP','tdx.log','Warning:\x20Failed\x20to\x20compress\x20','1450680WhnNBl','logFileName','logs','close','message','32305119YfbUeg','replace','95aFVBCP','.gz','Warning:\x20Error\x20writing\x20to\x20','.log','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','rotateOldLogs','52344VTrZjK','test','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','1683023nSaIdE','logStream','logPath','end','split','init'];a220_0x6af8=function(){return _0x4891f5;};return a220_0x6af8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4e5e49,_0x35ac73){var _0x79c186=a221_0x429e,_0x5da329=_0x4e5e49();while(!![]){try{var _0x4b453b=-parseInt(_0x79c186(0x1a0))/0x1*(parseInt(_0x79c186(0x196))/0x2)+parseInt(_0x79c186(0x19e))/0x3*(parseInt(_0x79c186(0x197))/0x4)+parseInt(_0x79c186(0x19d))/0x5*(parseInt(_0x79c186(0x19c))/0x6)+parseInt(_0x79c186(0x1a1))/0x7+-parseInt(_0x79c186(0x19f))/0x8*(-parseInt(_0x79c186(0x199))/0x9)+-parseInt(_0x79c186(0x19a))/0xa+parseInt(_0x79c186(0x198))/0xb*(-parseInt(_0x79c186(0x19b))/0xc);if(_0x4b453b===_0x35ac73)break;else _0x5da329['push'](_0x5da329['shift']());}catch(_0x1f4e6d){_0x5da329['push'](_0x5da329['shift']());}}}(a221_0x167b,0x53867));function a221_0x167b(){var _0x4996db=['7328DCAYNW','536162OjBcvm','44559nMWwFg','1660190Omjgyr','60ngMeZM','426024alZcKr','15FusNYa','354qxyOBD','568ijwJSd','388988XUFZfv','2520889KmLugr','2RwMyQr'];a221_0x167b=function(){return _0x4996db;};return a221_0x167b();}function a221_0x429e(_0x4b522a,_0x3e8a47){_0x4b522a=_0x4b522a-0x196;var _0x167b52=a221_0x167b();var _0x429e84=_0x167b52[_0x4b522a];return _0x429e84;}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x51db60,_0x1d8064){var _0x52063a=a222_0x1910,_0x376539=_0x51db60();while(!![]){try{var _0x6f87f=parseInt(_0x52063a(0x16d))/0x1+-parseInt(_0x52063a(0x16e))/0x2*(-parseInt(_0x52063a(0x170))/0x3)+-parseInt(_0x52063a(0x16f))/0x4*(parseInt(_0x52063a(0x16c))/0x5)+-parseInt(_0x52063a(0x16a))/0x6+parseInt(_0x52063a(0x16b))/0x7+parseInt(_0x52063a(0x168))/0x8+-parseInt(_0x52063a(0x171))/0x9*(-parseInt(_0x52063a(0x169))/0xa);if(_0x6f87f===_0x1d8064)break;else _0x376539['push'](_0x376539['shift']());}catch(_0x554ee0){_0x376539['push'](_0x376539['shift']());}}}(a222_0x39b8,0x76284));function a222_0x1910(_0x770a04,_0x459e7a){_0x770a04=_0x770a04-0x168;var _0x39b8e7=a222_0x39b8();var _0x1910f0=_0x39b8e7[_0x770a04];return _0x1910f0;}function a222_0x39b8(){var _0x2886ca=['252268QHsfoM','2884vtWCsF','2516516CFgFGd','1149VeRhTE','9tuqUHn','864088KzetIZ','2124370zPFXXK','2304546reSvOG','2605330EIyCcM','5XSDKSa'];a222_0x39b8=function(){return _0x2886ca;};return a222_0x39b8();}export class NullHandler{['handle'](_0x40f492){}}
|