@treasuredata/tdx 0.23.1 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.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/chat-command.d.ts +14 -3
- package/dist/commands/chat-command.d.ts.map +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/chat-command.js.map +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.d.ts.map +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/index.js.map +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.d.ts +4 -4
- package/dist/sdk/llm/model-factors.d.ts.map +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/llm/model-factors.js.map +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.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-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-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/llm.d.ts +1 -0
- package/dist/sdk/types/llm.d.ts.map +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/process.js.map +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
|
-
|
|
1
|
+
(function(_0x1e2b31,_0xfe85f){const _0x5a3cb3=a148_0x50ab,_0x221e01=_0x1e2b31();while(!![]){try{const _0x36d180=-parseInt(_0x5a3cb3(0x13e))/0x1+parseInt(_0x5a3cb3(0x137))/0x2*(-parseInt(_0x5a3cb3(0x13a))/0x3)+-parseInt(_0x5a3cb3(0x123))/0x4+parseInt(_0x5a3cb3(0x130))/0x5*(-parseInt(_0x5a3cb3(0x141))/0x6)+-parseInt(_0x5a3cb3(0x13f))/0x7+parseInt(_0x5a3cb3(0x12a))/0x8+parseInt(_0x5a3cb3(0x126))/0x9;if(_0x36d180===_0xfe85f)break;else _0x221e01['push'](_0x221e01['shift']());}catch(_0x3aa911){_0x221e01['push'](_0x221e01['shift']());}}}(a148_0x1320,0x949dc));import{vi}from'vitest';import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';import{getGlobalCacheDir}from'../utils/global-cache.js';export function createTestSDKContext(_0x24c61b){const _0x462ae8=a148_0x50ab;return{'site':'us01','apiKey':_0x462ae8(0x136),'logLevel':LogLevel['ERROR'],..._0x24c61b};}function a148_0x50ab(_0x166050,_0x36a797){_0x166050=_0x166050-0x123;const _0x1320bd=a148_0x1320();let _0x50ab59=_0x1320bd[_0x166050];return _0x50ab59;}export function createTestGlobalOptions(_0x1cde15){const _0x37a252=a148_0x50ab;return{'site':'us01','format':_0x37a252(0x135),'noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x37a252(0x133),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x37a252(0x124)],..._0x1cde15};}export async function initTestLogger(){const _0x34bdbc=a148_0x50ab;Logger['reset']();const _0x408377=join(getGlobalCacheDir(),_0x34bdbc(0x140),_0x34bdbc(0x12e));await Logger[_0x34bdbc(0x128)]({'defaultLevel':LogLevel[_0x34bdbc(0x143)],'handlers':[new FileHandler({'filePath':_0x408377,'rotate':![]})]});}export function resetTestLogger(){const _0x3f19f5=a148_0x50ab;Logger[_0x3f19f5(0x12b)]();}export function createMockTDX(_0x3bd383){const _0x3f629c=a148_0x50ab;return{'context':{'site':_0x3f629c(0x131),'apiKey':_0x3f629c(0x12d),'logLevel':LogLevel['ERROR']},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x3bd383?.[_0x3f629c(0x13c)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x3bd383?.[_0x3f629c(0x132)]},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x3bd383?.[_0x3f629c(0x129)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x3bd383?.[_0x3f629c(0x134)]},'user':{'show':vi['fn'](),..._0x3bd383?.[_0x3f629c(0x138)]},'api':{'request':vi['fn'](),..._0x3bd383?.[_0x3f629c(0x12f)]},..._0x3bd383};}function a148_0x1320(){const _0x4d62e4=['init','journey','1528608tiTBHc','reset','log','test-api-key','tdx-test.log','api','2996365rDCEkC','us01','segment','30000','workflow','table','test-api-key-id/test-api-key-secret','19538ANFUtC','user','push','261iuiDpE','error','query','tdx','119928ADuiEH','4903724TOxhDO','logs','6zbYwAR','warn','DEBUG','join','args','2951608AScEwr','ERROR','map','30826746sLJiQr','options'];a148_0x1320=function(){return _0x4d62e4;};return a148_0x1320();}export function createTestCommandContext(_0x33db08){const _0x17391f=a148_0x50ab,_0x42e212=createTestGlobalOptions(_0x33db08?.[_0x17391f(0x127)]),_0x2c4f62=_0x33db08?.[_0x17391f(0x13d)]??createMockTDX();return{'options':_0x42e212,'args':_0x33db08?.[_0x17391f(0x145)]??[],'tdx':_0x2c4f62};}export function captureConsole(){const _0x2ce107=a148_0x50ab,_0x1e30ae=[],_0x120691=[],_0x437f95=console[_0x2ce107(0x12c)],_0xdfef72=console['error'],_0x5b9449=console[_0x2ce107(0x142)];return console['log']=(..._0x333b04)=>{const _0x3773e0=_0x2ce107;_0x1e30ae['push'](_0x333b04[_0x3773e0(0x125)](String)['join']('\x20'));},console[_0x2ce107(0x13b)]=(..._0x36b1e0)=>{const _0x334ef2=_0x2ce107;_0x120691[_0x334ef2(0x139)](_0x36b1e0[_0x334ef2(0x125)](String)[_0x334ef2(0x144)]('\x20'));},console['warn']=(..._0x2f6f9d)=>{const _0x82ec24=_0x2ce107;_0x120691[_0x82ec24(0x139)](_0x2f6f9d[_0x82ec24(0x125)](String)[_0x82ec24(0x144)]('\x20'));},{'stdout':_0x1e30ae,'stderr':_0x120691,'restore':()=>{const _0x230625=_0x2ce107;console[_0x230625(0x12c)]=_0x437f95,console[_0x230625(0x13b)]=_0xdfef72,console[_0x230625(0x142)]=_0x5b9449;}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a149_0x20abd1=a149_0x578e;function a149_0x578e(_0x371e15,_0x338b8b){_0x371e15=_0x371e15-0xe7;const _0x29019e=a149_0x2901();let _0x578efe=_0x29019e[_0x371e15];return _0x578efe;}(function(_0x1ed602,_0x25b81a){const _0x5768ca=a149_0x578e,_0x5e5653=_0x1ed602();while(!![]){try{const _0xfc621e=parseInt(_0x5768ca(0x13a))/0x1+-parseInt(_0x5768ca(0xf0))/0x2+-parseInt(_0x5768ca(0x153))/0x3+parseInt(_0x5768ca(0x102))/0x4+parseInt(_0x5768ca(0x11a))/0x5*(-parseInt(_0x5768ca(0x115))/0x6)+parseInt(_0x5768ca(0x10e))/0x7*(-parseInt(_0x5768ca(0x143))/0x8)+-parseInt(_0x5768ca(0x130))/0x9*(-parseInt(_0x5768ca(0x142))/0xa);if(_0xfc621e===_0x25b81a)break;else _0x5e5653['push'](_0x5e5653['shift']());}catch(_0x4570ec){_0x5e5653['push'](_0x5e5653['shift']());}}}(a149_0x2901,0x1ef26));export const fixtures={'database':{'basic':{'name':a149_0x20abd1(0xfc),'count':0x5,'created_at':'2024-01-01T00:00:00Z','updated_at':a149_0x20abd1(0x137),'permission':a149_0x20abd1(0x119)},'withTables':{'name':a149_0x20abd1(0x14b),'count':0x64,'created_at':a149_0x20abd1(0x13d),'updated_at':a149_0x20abd1(0x145),'permission':'full_access'}},'table':{'basic':{'id':0x3039,'name':'users','type':a149_0x20abd1(0xfd),'schema':JSON[a149_0x20abd1(0x12f)]([['id',a149_0x20abd1(0x141)],[a149_0x20abd1(0xf6),a149_0x20abd1(0xe9)],[a149_0x20abd1(0xff),a149_0x20abd1(0x141)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a149_0x20abd1(0x137),'updated_at':'2024-01-01T00:00:00Z'},'events':{'id':0x303a,'name':a149_0x20abd1(0x11e),'type':a149_0x20abd1(0xfd),'schema':JSON['stringify']([['event_id',a149_0x20abd1(0x141)],['time',a149_0x20abd1(0xe9)],[a149_0x20abd1(0xe7),a149_0x20abd1(0x141)],[a149_0x20abd1(0xe8),a149_0x20abd1(0x141)],[a149_0x20abd1(0xeb),a149_0x20abd1(0x106)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':a149_0x20abd1(0xf9),'name':a149_0x20abd1(0x104),'description':'A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','status':a149_0x20abd1(0x123),'master_table':{'database':a149_0x20abd1(0x14d),'table':'unified_customers'},'attributes':[{'name':a149_0x20abd1(0x134),'type':a149_0x20abd1(0x141),'key':!![]},{'name':a149_0x20abd1(0x105),'type':a149_0x20abd1(0x141)},{'name':a149_0x20abd1(0x11d),'type':a149_0x20abd1(0x11c)}],'created_at':a149_0x20abd1(0x137),'updated_at':a149_0x20abd1(0x114)},'withBehaviors':{'id':'ps-789012','name':a149_0x20abd1(0x120),'description':a149_0x20abd1(0x149),'status':a149_0x20abd1(0x123),'master_table':{'database':a149_0x20abd1(0x14d),'table':a149_0x20abd1(0x13e)},'behaviors':[{'name':a149_0x20abd1(0x126),'table':{'database':a149_0x20abd1(0x12b),'table':a149_0x20abd1(0x126)},'join_key':a149_0x20abd1(0x134)},{'name':a149_0x20abd1(0x127),'table':{'database':a149_0x20abd1(0x12b),'table':a149_0x20abd1(0x132)},'join_key':'customer_id'}],'created_at':'2024-01-01T00:00:00Z','updated_at':a149_0x20abd1(0x114)}},'segment':{'basic':{'id':'cs-456789','name':a149_0x20abd1(0x136),'description':'Users\x20active\x20in\x20the\x20last\x2030\x20days','parent_segment_id':a149_0x20abd1(0xf9),'status':'active','rules':[{'type':a149_0x20abd1(0x139),'field':'last_login','operator':a149_0x20abd1(0xed),'value':a149_0x20abd1(0xea)}],'count':0x1388,'created_at':a149_0x20abd1(0x137),'updated_at':a149_0x20abd1(0x114)},'withMultipleRules':{'id':a149_0x20abd1(0x129),'name':a149_0x20abd1(0x12e),'description':a149_0x20abd1(0x121),'parent_segment_id':a149_0x20abd1(0xf9),'status':a149_0x20abd1(0x123),'rules':[{'type':a149_0x20abd1(0x139),'field':a149_0x20abd1(0x109),'operator':a149_0x20abd1(0xed),'value':a149_0x20abd1(0xea)},{'type':a149_0x20abd1(0x139),'field':a149_0x20abd1(0xf3),'operator':a149_0x20abd1(0xfb),'value':0x3e8}],'count':0x5dc,'created_at':a149_0x20abd1(0x137),'updated_at':a149_0x20abd1(0x114)}},'journey':{'basic':{'id':a149_0x20abd1(0x152),'name':'Welcome\x20Journey','description':'Onboarding\x20journey\x20for\x20new\x20users','status':a149_0x20abd1(0x108),'version':0x1,'steps':[{'id':a149_0x20abd1(0xf5),'type':a149_0x20abd1(0x150),'duration':'1d'},{'id':a149_0x20abd1(0x14a),'type':a149_0x20abd1(0x124),'activation_id':'act-123'}],'created_at':a149_0x20abd1(0x137),'updated_at':a149_0x20abd1(0x114)},'withDecision':{'id':a149_0x20abd1(0xf1),'name':a149_0x20abd1(0x100),'description':a149_0x20abd1(0x111),'status':'active','version':0x2,'steps':[{'id':'step-1','type':a149_0x20abd1(0x117),'segment_id':a149_0x20abd1(0x118),'yes_path':a149_0x20abd1(0x14a),'no_path':'step-3'},{'id':a149_0x20abd1(0x14a),'type':'activation','activation_id':a149_0x20abd1(0xee)},{'id':a149_0x20abd1(0x13f),'type':a149_0x20abd1(0x13b)}],'created_at':a149_0x20abd1(0x137),'updated_at':'2024-01-15T00:00:00Z'}},'queryResult':{'basic':{'schema':[{'name':'id','type':'varchar'},{'name':a149_0x20abd1(0xff),'type':a149_0x20abd1(0x138)},{'name':a149_0x20abd1(0x14f),'type':'bigint'}],'data':[[a149_0x20abd1(0x112),a149_0x20abd1(0x125),0x64],['user-2',a149_0x20abd1(0xec),0xc8],['user-3','Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':a149_0x20abd1(0x138)},{'name':'name','type':a149_0x20abd1(0x138)}],'data':[]},'singleRow':{'schema':[{'name':a149_0x20abd1(0x11f),'type':'bigint'}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a149_0x20abd1(0x158),'email':a149_0x20abd1(0x151),'created_at':a149_0x20abd1(0x137),'updated_at':a149_0x20abd1(0x114),'administrator':![]},'admin':{'id':0x1,'name':a149_0x20abd1(0x148),'email':a149_0x20abd1(0x144),'created_at':a149_0x20abd1(0x10c),'updated_at':a149_0x20abd1(0x114),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':'presto','database':a149_0x20abd1(0xfc),'status':a149_0x20abd1(0x12a),'query':a149_0x20abd1(0xef),'start_at':a149_0x20abd1(0x110),'end_at':a149_0x20abd1(0x10d),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a149_0x20abd1(0x11b),'database':a149_0x20abd1(0xfc),'status':a149_0x20abd1(0x103),'query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':a149_0x20abd1(0x128),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a149_0x20abd1(0x11b),'database':a149_0x20abd1(0xfc),'status':a149_0x20abd1(0xf7),'query':a149_0x20abd1(0x135),'start_at':'2024-01-15T10:10:00Z','end_at':'2024-01-15T10:10:01Z','duration':0x1,'result_size':null,'error':a149_0x20abd1(0x10f)}},'workflow':{'basic':{'id':a149_0x20abd1(0x12c),'name':a149_0x20abd1(0x14c),'project':a149_0x20abd1(0x131),'revision':a149_0x20abd1(0x10b),'timezone':a149_0x20abd1(0x116),'schedule':{'cron':'0\x200\x20*\x20*\x20*'}},'withSessions':{'id':'wf-67890','name':a149_0x20abd1(0x154),'project':'data_sync','revision':a149_0x20abd1(0x14e),'timezone':a149_0x20abd1(0x156),'schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':'sess-111','status':a149_0x20abd1(0x12a),'started_at':a149_0x20abd1(0xfe),'finished_at':a149_0x20abd1(0xf4)}}},'apiError':{'unauthorized':{'errors':{'error':a149_0x20abd1(0x10a),'message':a149_0x20abd1(0x10a),'severity':a149_0x20abd1(0xf7),'status_code':0x191}},'notFound':{'errors':{'error':a149_0x20abd1(0x13c),'message':a149_0x20abd1(0x122),'severity':'error','status_code':0x194}},'rateLimited':{'detail':a149_0x20abd1(0xf2)},'rfc9457':{'type':a149_0x20abd1(0xfa),'title':a149_0x20abd1(0x147),'status':0x193,'detail':a149_0x20abd1(0xf8),'instance':'/v3/database/list'}}};export function createDatabase(_0x3e04a7){return{...fixtures['database']['basic'],..._0x3e04a7};}export function createTable(_0xebc011){const _0x4fe9ca=a149_0x20abd1;return{...fixtures[_0x4fe9ca(0x12d)]['basic'],..._0xebc011};}export function createParentSegment(_0x2e716a){const _0x9c2df4=a149_0x20abd1;return{...fixtures[_0x9c2df4(0x133)][_0x9c2df4(0x155)],..._0x2e716a};}export function createSegment(_0x4c79a8){const _0x3ab6e3=a149_0x20abd1;return{...fixtures['segment'][_0x3ab6e3(0x155)],..._0x4c79a8};}export function createJourney(_0x126eea){const _0x53ea2e=a149_0x20abd1;return{...fixtures[_0x53ea2e(0x107)][_0x53ea2e(0x155)],..._0x126eea};}export function createQueryResult(_0xaff0a3){const _0x30dd10=a149_0x20abd1;return{...fixtures[_0x30dd10(0x113)]['basic'],..._0xaff0a3};}export function createUser(_0x51b02a){const _0x57a74a=a149_0x20abd1;return{...fixtures[_0x57a74a(0x140)]['basic'],..._0x51b02a};}export function createJob(_0x557bbf){const _0x6d21cf=a149_0x20abd1;return{...fixtures[_0x6d21cf(0x146)][_0x6d21cf(0x157)],..._0x557bbf};}function a149_0x2901(){const _0x1a7722=['Journey\x20with\x20decision\x20point','user-1','queryResult','2024-01-15T00:00:00Z','41772oBZxtp','UTC','decision_point','cs-456789','administrator','50jlttSz','presto','timestamp','created_at','events','total','Customers\x20with\x20Behaviors','Active\x20users\x20with\x20high\x20lifetime\x20value','The\x20requested\x20resource\x20does\x20not\x20exist','active','activation','Alice','purchases','page_views','2024-01-15T10:05:00Z','cs-111222','success','events_db','wf-12345','table','High\x20Value\x20Active\x20Users','stringify','1089XhbeZL','data_pipeline','pageviews','parentSegment','customer_id','SELECT\x20*\x20FROM\x20nonexistent_table','Active\x20Users','2024-01-01T00:00:00Z','varchar','attribute','121704zkUuRN','end','Resource\x20not\x20found','2023-06-15T10:30:00Z','customers','step-3','user','string','21410gFDJvn','8ZEmvzf','admin@example.com','2024-01-15T08:00:00Z','job','Forbidden','Admin\x20User','Parent\x20segment\x20with\x20behavioral\x20data','step-2','production_db','daily_etl','cdp_db','def456','count','wait','test@example.com','j-abc123','30948GiFPSM','hourly_sync','basic','America/Los_Angeles','completed','Test\x20User','user_id','event_type','long','30d','properties','Bob','TimeWithinPast','act-email','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','242500kbDNhk','j-def456','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','lifetime_value','2024-01-15T09:05:00Z','step-1','time','error','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','ps-123456','https://api.treasuredata.com/errors/forbidden','Greater','test_db','log','2024-01-15T09:00:00Z','name','Purchase\x20Reminder','workflow','398736EeKTCt','running','Test\x20Parent\x20Segment','email','map<string,string>','journey','draft','last_login','Invalid\x20API\x20key','abc123','2023-01-01T00:00:00Z','2024-01-15T10:00:05Z','1067535wFyMPm','Table\x20does\x20not\x20exist:\x20nonexistent_table','2024-01-15T10:00:00Z'];a149_0x2901=function(){return _0x1a7722;};return a149_0x2901();}export function createWorkflow(_0x57ce3c){const _0x4c72bb=a149_0x20abd1;return{...fixtures[_0x4c72bb(0x101)][_0x4c72bb(0x155)],..._0x57ce3c};}
|
|
1
|
+
const a149_0x5982fe=a149_0x1c9f;(function(_0x5e4cd8,_0x68c40e){const _0x47bd0a=a149_0x1c9f,_0x2853f6=_0x5e4cd8();while(!![]){try{const _0x3930b9=-parseInt(_0x47bd0a(0x8d))/0x1+parseInt(_0x47bd0a(0xdb))/0x2*(parseInt(_0x47bd0a(0xe7))/0x3)+-parseInt(_0x47bd0a(0xca))/0x4*(parseInt(_0x47bd0a(0x91))/0x5)+-parseInt(_0x47bd0a(0x89))/0x6*(-parseInt(_0x47bd0a(0xab))/0x7)+-parseInt(_0x47bd0a(0xe4))/0x8+-parseInt(_0x47bd0a(0xa0))/0x9+parseInt(_0x47bd0a(0xd7))/0xa;if(_0x3930b9===_0x68c40e)break;else _0x2853f6['push'](_0x2853f6['shift']());}catch(_0x1df48c){_0x2853f6['push'](_0x2853f6['shift']());}}}(a149_0x3302,0xaf8ba));export const fixtures={'database':{'basic':{'name':a149_0x5982fe(0x90),'count':0x5,'created_at':a149_0x5982fe(0xc7),'updated_at':'2024-01-01T00:00:00Z','permission':a149_0x5982fe(0xc4)},'withTables':{'name':a149_0x5982fe(0xb4),'count':0x64,'created_at':'2023-06-15T10:30:00Z','updated_at':'2024-01-15T08:00:00Z','permission':a149_0x5982fe(0xd0)}},'table':{'basic':{'id':0x3039,'name':'users','type':a149_0x5982fe(0xa7),'schema':JSON[a149_0x5982fe(0xd8)]([['id',a149_0x5982fe(0x8b)],[a149_0x5982fe(0xbc),a149_0x5982fe(0xc8)],[a149_0x5982fe(0xb1),a149_0x5982fe(0x8b)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a149_0x5982fe(0xc7),'updated_at':a149_0x5982fe(0xc7)},'events':{'id':0x303a,'name':a149_0x5982fe(0xb8),'type':a149_0x5982fe(0xa7),'schema':JSON[a149_0x5982fe(0xd8)]([[a149_0x5982fe(0xb9),a149_0x5982fe(0x8b)],[a149_0x5982fe(0xbc),a149_0x5982fe(0xc8)],['user_id','string'],[a149_0x5982fe(0x8e),a149_0x5982fe(0x8b)],[a149_0x5982fe(0xcd),a149_0x5982fe(0x9f)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a149_0x5982fe(0xc7),'updated_at':a149_0x5982fe(0x82)}},'parentSegment':{'basic':{'id':a149_0x5982fe(0x80),'name':'Test\x20Parent\x20Segment','description':a149_0x5982fe(0xe5),'status':a149_0x5982fe(0xa3),'master_table':{'database':a149_0x5982fe(0xd5),'table':a149_0x5982fe(0xb0)},'attributes':[{'name':a149_0x5982fe(0x9c),'type':a149_0x5982fe(0x8b),'key':!![]},{'name':a149_0x5982fe(0x84),'type':a149_0x5982fe(0x8b)},{'name':a149_0x5982fe(0xe6),'type':a149_0x5982fe(0xc0)}],'created_at':a149_0x5982fe(0xc7),'updated_at':'2024-01-15T00:00:00Z'},'withBehaviors':{'id':a149_0x5982fe(0x8c),'name':a149_0x5982fe(0xb5),'description':a149_0x5982fe(0x98),'status':a149_0x5982fe(0xa3),'master_table':{'database':a149_0x5982fe(0xd5),'table':'customers'},'behaviors':[{'name':a149_0x5982fe(0xae),'table':{'database':a149_0x5982fe(0xba),'table':a149_0x5982fe(0xae)},'join_key':a149_0x5982fe(0x9c)},{'name':a149_0x5982fe(0xb3),'table':{'database':a149_0x5982fe(0xba),'table':'pageviews'},'join_key':a149_0x5982fe(0x9c)}],'created_at':a149_0x5982fe(0xc7),'updated_at':'2024-01-15T00:00:00Z'}},'segment':{'basic':{'id':a149_0x5982fe(0x7e),'name':'Active\x20Users','description':a149_0x5982fe(0x9a),'parent_segment_id':a149_0x5982fe(0x80),'status':a149_0x5982fe(0xa3),'rules':[{'type':a149_0x5982fe(0x92),'field':'last_login','operator':a149_0x5982fe(0xaf),'value':a149_0x5982fe(0xc6)}],'count':0x1388,'created_at':a149_0x5982fe(0xc7),'updated_at':a149_0x5982fe(0x9b)},'withMultipleRules':{'id':a149_0x5982fe(0xcf),'name':a149_0x5982fe(0xdd),'description':a149_0x5982fe(0x95),'parent_segment_id':'ps-123456','status':a149_0x5982fe(0xa3),'rules':[{'type':a149_0x5982fe(0x92),'field':'last_login','operator':a149_0x5982fe(0xaf),'value':a149_0x5982fe(0xc6)},{'type':a149_0x5982fe(0x92),'field':a149_0x5982fe(0xa2),'operator':'Greater','value':0x3e8}],'count':0x5dc,'created_at':a149_0x5982fe(0xc7),'updated_at':a149_0x5982fe(0x9b)}},'journey':{'basic':{'id':a149_0x5982fe(0xe0),'name':a149_0x5982fe(0xcc),'description':a149_0x5982fe(0xb7),'status':a149_0x5982fe(0xc9),'version':0x1,'steps':[{'id':a149_0x5982fe(0xa5),'type':a149_0x5982fe(0xe1),'duration':'1d'},{'id':'step-2','type':a149_0x5982fe(0xa9),'activation_id':'act-123'}],'created_at':a149_0x5982fe(0xc7),'updated_at':a149_0x5982fe(0x9b)},'withDecision':{'id':a149_0x5982fe(0xc1),'name':'Purchase\x20Reminder','description':'Journey\x20with\x20decision\x20point','status':'active','version':0x2,'steps':[{'id':a149_0x5982fe(0xa5),'type':'decision_point','segment_id':a149_0x5982fe(0x7e),'yes_path':a149_0x5982fe(0xb6),'no_path':a149_0x5982fe(0xdf)},{'id':a149_0x5982fe(0xb6),'type':a149_0x5982fe(0xa9),'activation_id':a149_0x5982fe(0xc3)},{'id':a149_0x5982fe(0xdf),'type':a149_0x5982fe(0xde)}],'created_at':a149_0x5982fe(0xc7),'updated_at':'2024-01-15T00:00:00Z'}},'queryResult':{'basic':{'schema':[{'name':'id','type':a149_0x5982fe(0x97)},{'name':a149_0x5982fe(0xb1),'type':'varchar'},{'name':a149_0x5982fe(0xe3),'type':a149_0x5982fe(0x83)}],'data':[[a149_0x5982fe(0x96),a149_0x5982fe(0x87),0x64],[a149_0x5982fe(0x88),a149_0x5982fe(0x94),0xc8],[a149_0x5982fe(0x7f),'Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':'varchar'},{'name':a149_0x5982fe(0xb1),'type':a149_0x5982fe(0x97)}],'data':[]},'singleRow':{'schema':[{'name':'total','type':'bigint'}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':a149_0x5982fe(0xaa),'created_at':a149_0x5982fe(0xc7),'updated_at':a149_0x5982fe(0x9b),'administrator':![]},'admin':{'id':0x1,'name':a149_0x5982fe(0xc5),'email':a149_0x5982fe(0xac),'created_at':'2023-01-01T00:00:00Z','updated_at':a149_0x5982fe(0x9b),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a149_0x5982fe(0xa1),'database':'test_db','status':a149_0x5982fe(0xb2),'query':'SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','start_at':'2024-01-15T10:00:00Z','end_at':'2024-01-15T10:00:05Z','duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a149_0x5982fe(0xa1),'database':a149_0x5982fe(0x90),'status':'running','query':a149_0x5982fe(0xdc),'start_at':a149_0x5982fe(0xd6),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':a149_0x5982fe(0x90),'status':a149_0x5982fe(0x85),'query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a149_0x5982fe(0x86),'end_at':a149_0x5982fe(0xd4),'duration':0x1,'result_size':null,'error':a149_0x5982fe(0xc2)}},'workflow':{'basic':{'id':a149_0x5982fe(0xbf),'name':a149_0x5982fe(0xbd),'project':a149_0x5982fe(0x81),'revision':a149_0x5982fe(0xa4),'timezone':a149_0x5982fe(0x93),'schedule':{'cron':a149_0x5982fe(0x9e)}},'withSessions':{'id':'wf-67890','name':a149_0x5982fe(0xbe),'project':'data_sync','revision':a149_0x5982fe(0xd9),'timezone':'America/Los_Angeles','schedule':{'cron':a149_0x5982fe(0x9d)},'last_session':{'id':a149_0x5982fe(0xbb),'status':a149_0x5982fe(0xb2),'started_at':'2024-01-15T09:00:00Z','finished_at':a149_0x5982fe(0xa8)}}},'apiError':{'unauthorized':{'errors':{'error':a149_0x5982fe(0xd2),'message':a149_0x5982fe(0xd2),'severity':a149_0x5982fe(0x85),'status_code':0x191}},'notFound':{'errors':{'error':a149_0x5982fe(0xd3),'message':'The\x20requested\x20resource\x20does\x20not\x20exist','severity':a149_0x5982fe(0x85),'status_code':0x194}},'rateLimited':{'detail':'Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.'},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':a149_0x5982fe(0xda),'status':0x193,'detail':'You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','instance':'/v3/database/list'}}};function a149_0x1c9f(_0x15067d,_0x441f1b){_0x15067d=_0x15067d-0x7e;const _0x3302ff=a149_0x3302();let _0x1c9f80=_0x3302ff[_0x15067d];return _0x1c9f80;}export function createDatabase(_0x24eac6){const _0x3c3b25=a149_0x5982fe;return{...fixtures[_0x3c3b25(0xd1)][_0x3c3b25(0xce)],..._0x24eac6};}export function createTable(_0x53777e){const _0x1cecb4=a149_0x5982fe;return{...fixtures[_0x1cecb4(0x99)][_0x1cecb4(0xce)],..._0x53777e};}export function createParentSegment(_0x2859bf){const _0xd6c3e8=a149_0x5982fe;return{...fixtures[_0xd6c3e8(0x8f)][_0xd6c3e8(0xce)],..._0x2859bf};}export function createSegment(_0x3700e4){const _0x10b77e=a149_0x5982fe;return{...fixtures[_0x10b77e(0x8a)][_0x10b77e(0xce)],..._0x3700e4};}function a149_0x3302(){const _0x1c0544=['abc123','step-1','user','log','2024-01-15T09:05:00Z','activation','test@example.com','7vgtUHM','admin@example.com','queryResult','purchases','TimeWithinPast','unified_customers','name','success','page_views','production_db','Customers\x20with\x20Behaviors','step-2','Onboarding\x20journey\x20for\x20new\x20users','events','event_id','events_db','sess-111','time','daily_etl','hourly_sync','wf-12345','timestamp','j-def456','Table\x20does\x20not\x20exist:\x20nonexistent_table','act-email','administrator','Admin\x20User','30d','2024-01-01T00:00:00Z','long','draft','2868004TUbgtK','workflow','Welcome\x20Journey','properties','basic','cs-111222','full_access','database','Invalid\x20API\x20key','Resource\x20not\x20found','2024-01-15T10:10:01Z','cdp_db','2024-01-15T10:05:00Z','32767110beeLMd','stringify','def456','Forbidden','435964NlImyh','SELECT\x20COUNT(*)\x20FROM\x20events','High\x20Value\x20Active\x20Users','end','step-3','j-abc123','wait','journey','count','3321088DmpSpz','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','created_at','3sKrTsv','job','cs-456789','user-3','ps-123456','data_pipeline','2024-01-15T12:00:00Z','bigint','email','error','2024-01-15T10:10:00Z','Alice','user-2','6521532abrune','segment','string','ps-789012','628405fprvjy','event_type','parentSegment','test_db','10hfOwJW','attribute','UTC','Bob','Active\x20users\x20with\x20high\x20lifetime\x20value','user-1','varchar','Parent\x20segment\x20with\x20behavioral\x20data','table','Users\x20active\x20in\x20the\x20last\x2030\x20days','2024-01-15T00:00:00Z','customer_id','0\x20*\x20*\x20*\x20*','0\x200\x20*\x20*\x20*','map<string,string>','12465342RlxiDO','presto','lifetime_value','active'];a149_0x3302=function(){return _0x1c0544;};return a149_0x3302();}export function createJourney(_0x380d03){const _0x855da2=a149_0x5982fe;return{...fixtures[_0x855da2(0xe2)][_0x855da2(0xce)],..._0x380d03};}export function createQueryResult(_0x3378bb){const _0x1f9358=a149_0x5982fe;return{...fixtures[_0x1f9358(0xad)][_0x1f9358(0xce)],..._0x3378bb};}export function createUser(_0x387ea2){const _0x11e989=a149_0x5982fe;return{...fixtures[_0x11e989(0xa6)]['basic'],..._0x387ea2};}export function createJob(_0x2df5a3){const _0x2a320e=a149_0x5982fe;return{...fixtures[_0x2a320e(0xe8)]['completed'],..._0x2df5a3};}export function createWorkflow(_0x586e79){const _0x3d8737=a149_0x5982fe;return{...fixtures[_0x3d8737(0xcb)][_0x3d8737(0xce)],..._0x586e79};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a150_0x3939(_0xe56529,_0x34f927){_0xe56529=_0xe56529-0x144;const _0x232c05=a150_0x232c();let _0x39391a=_0x232c05[_0xe56529];return _0x39391a;}const a150_0x7a0b0d=a150_0x3939;(function(_0x4640f8,_0x2aab68){const _0x59d844=a150_0x3939,_0xea518b=_0x4640f8();while(!![]){try{const _0x2ce5e6=parseInt(_0x59d844(0x14d))/0x1*(-parseInt(_0x59d844(0x17e))/0x2)+-parseInt(_0x59d844(0x18d))/0x3+parseInt(_0x59d844(0x150))/0x4*(-parseInt(_0x59d844(0x187))/0x5)+-parseInt(_0x59d844(0x193))/0x6+-parseInt(_0x59d844(0x184))/0x7+-parseInt(_0x59d844(0x159))/0x8*(-parseInt(_0x59d844(0x153))/0x9)+-parseInt(_0x59d844(0x171))/0xa*(-parseInt(_0x59d844(0x160))/0xb);if(_0x2ce5e6===_0x2aab68)break;else _0xea518b['push'](_0xea518b['shift']());}catch(_0x297622){_0xea518b['push'](_0xea518b['shift']());}}}(a150_0x232c,0xd2121));import{vi}from'vitest';function a150_0x232c(){const _0x4cab2f=['3044958SmQbIr','string','split','https://api.treasuredata.com/errors/','host','fail','1849380jmQauF','parseRequest','matcher','requests','Request\x20body:\x20','No\x20Content','Conflict','parse','withHost','unnamed\x20stub','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','headers','jsonResponseWithHeaders','function','No\x20stub\x20matched\x20request:\x20','Unmatched\x20stub','Service\x20Unavailable','2138zJqRWA','td-api','length','1240acmQOX','Registered\x20stubs:\x0a','Unauthorized','142200VSStIO','getLastRequest','rfc9457','\x20registered\x20at:\x0a','text/plain','getStatusText','200TebqRX','searchParams','Internal\x20Server\x20Error','Unprocessable\x20Entity','register','registerWithInspector','errorResponse','172469dOAgkD','Bad\x20Gateway','get','GET','withQuery','push','method','stubs','Bad\x20Request','matched','responder','description','networkError','withBody','fetchMock','\x20\x20(none)','Not\x20Found','1930BGXmZQ','Created','REST','url','Unknown','error','entries','toLowerCase','includes','toUpperCase','join','Too\x20Many\x20Requests','jsonResponse','274kydWyJ','body','filter','every','verify','mockImplementation','3143672yvQpOa','stack','map','7990WImkbu','stringify','textResponse','application/json','pathname','wasCalled'];a150_0x232c=function(){return _0x4cab2f;};return a150_0x232c();}export class HTTPMockRegistry{[a150_0x7a0b0d(0x167)]=[];[a150_0x7a0b0d(0x196)]=[];['fetchMock']=null;[a150_0x7a0b0d(0x173)](_0x13661e,_0x5dc7f7){return _0x5eecdc=>{const _0x848c77=a150_0x3939;if(_0x5eecdc[_0x848c77(0x166)][_0x848c77(0x17a)]()!==_0x13661e['toUpperCase']())return![];const _0x492e29=new URL(_0x5eecdc[_0x848c77(0x174)]);if(typeof _0x5dc7f7===_0x848c77(0x18e))return _0x492e29['pathname']===_0x5dc7f7||_0x492e29[_0x848c77(0x18b)][_0x848c77(0x179)](_0x5dc7f7);return _0x5dc7f7['test'](_0x492e29[_0x848c77(0x18b)]);};}[a150_0x7a0b0d(0x164)](_0x3c4bfb,_0x411299){return _0x581394=>{const _0x3332d9=a150_0x3939;if(!_0x3c4bfb(_0x581394))return![];const _0x38f55a=new URL(_0x581394[_0x3332d9(0x174)]);return Object[_0x3332d9(0x177)](_0x411299)[_0x3332d9(0x181)](([_0x37c8a9,_0x367fbc])=>_0x38f55a[_0x3332d9(0x15a)][_0x3332d9(0x162)](_0x37c8a9)===_0x367fbc);};}[a150_0x7a0b0d(0x16d)](_0x39545f,_0x152825){return _0xabf40b=>{const _0x50ba58=a150_0x3939;if(!_0x39545f(_0xabf40b))return![];if(typeof _0x152825===_0x50ba58(0x149))return _0x152825(_0xabf40b[_0x50ba58(0x17f)]);return JSON[_0x50ba58(0x188)](_0xabf40b['body'])===JSON[_0x50ba58(0x188)](_0x152825);};}[a150_0x7a0b0d(0x144)](_0x20475e,_0x17f6f5){return _0x18deaf=>{const _0x55dd69=a150_0x3939;if(!_0x20475e(_0x18deaf))return![];const _0x451cd0=new URL(_0x18deaf[_0x55dd69(0x174)]);return _0x451cd0[_0x55dd69(0x191)]===_0x17f6f5;};}['register'](_0x5ab14d,_0xd348e2,_0xfdd190){const _0x1e80ab=a150_0x7a0b0d;this[_0x1e80ab(0x167)][_0x1e80ab(0x165)]({'matcher':_0x5ab14d,'responder':_0xd348e2,'matched':![],'matchCount':0x0,'stack':new Error()[_0x1e80ab(0x185)]??'','description':_0xfdd190?.['description']});}[a150_0x7a0b0d(0x15e)](_0x21e55b,_0xa3fb60,_0x3cd20b){const _0x1bc6c3=a150_0x7a0b0d,_0x5efbfa=_0x16d646=>{return _0x3cd20b(_0x16d646['body'],_0x16d646),_0xa3fb60(_0x16d646);};this[_0x1bc6c3(0x15d)](_0x21e55b,_0x5efbfa);}static[a150_0x7a0b0d(0x17d)](_0x30d08e,_0x46cb64=0xc8){const _0xe967c6=a150_0x7a0b0d;return()=>new Response(JSON[_0xe967c6(0x188)](_0x30d08e),{'status':_0x46cb64,'headers':{'Content-Type':_0xe967c6(0x18a)}});}static[a150_0x7a0b0d(0x15f)](_0x20cff4,_0x1e10f6,_0x5a219a='simple'){return()=>{const _0x17373f=a150_0x3939;let _0x299146;switch(_0x5a219a){case _0x17373f(0x14e):_0x299146={'errors':{'error':_0x1e10f6,'message':_0x1e10f6,'severity':_0x17373f(0x176),'status_code':_0x20cff4}};break;case _0x17373f(0x155):_0x299146={'type':_0x17373f(0x190)+_0x20cff4,'title':HTTPMockRegistry[_0x17373f(0x158)](_0x20cff4),'status':_0x20cff4,'detail':_0x1e10f6};break;default:_0x299146={'error':_0x1e10f6};}return new Response(JSON[_0x17373f(0x188)](_0x299146),{'status':_0x20cff4,'headers':{'Content-Type':_0x17373f(0x18a)}});};}static[a150_0x7a0b0d(0x148)](_0x6771a8,_0x22d516,_0xd44865=0xc8){const _0x30594b=a150_0x7a0b0d;return()=>new Response(JSON[_0x30594b(0x188)](_0x6771a8),{'status':_0xd44865,'headers':{'Content-Type':'application/json',..._0x22d516}});}static[a150_0x7a0b0d(0x189)](_0x348d93,_0x5c7821=0xc8){const _0x233695=a150_0x7a0b0d;return()=>new Response(_0x348d93,{'status':_0x5c7821,'headers':{'Content-Type':_0x233695(0x157)}});}static[a150_0x7a0b0d(0x16c)](_0x200dd1){return()=>{throw new Error(_0x200dd1);};}['createFetch'](){const _0xfc6d3f=a150_0x7a0b0d;return this['fetchMock']=vi['fn']()[_0xfc6d3f(0x183)](async(_0x1def10,_0x54ec3d)=>{const _0x483ba2=_0xfc6d3f,_0x36732a=this[_0x483ba2(0x194)](_0x1def10,_0x54ec3d);this['requests']['push'](_0x36732a);for(const _0x549f5d of this[_0x483ba2(0x167)]){if(_0x549f5d[_0x483ba2(0x195)](_0x36732a))return _0x549f5d[_0x483ba2(0x169)]=!![],_0x549f5d['matchCount']++,_0x549f5d[_0x483ba2(0x16a)](_0x36732a);}const _0x1fad8d=this['stubs'][_0x483ba2(0x186)]((_0x56b4ff,_0x5e89f3)=>'\x20\x20'+(_0x5e89f3+0x1)+'.\x20'+(_0x56b4ff[_0x483ba2(0x16b)]??_0x483ba2(0x145)))['join']('\x0a');throw new Error(_0x483ba2(0x14a)+_0x36732a[_0x483ba2(0x166)]+'\x20'+_0x36732a[_0x483ba2(0x174)]+'\x0a'+(_0x483ba2(0x197)+JSON[_0x483ba2(0x188)](_0x36732a[_0x483ba2(0x17f)])+'\x0a')+(_0x483ba2(0x151)+(_0x1fad8d||_0x483ba2(0x16f))));}),this[_0xfc6d3f(0x16e)];}[a150_0x7a0b0d(0x194)](_0x74bf5,_0x19b0eb){const _0x2c22a1=a150_0x7a0b0d,_0x4cb222={};if(_0x19b0eb?.[_0x2c22a1(0x147)]){if(_0x19b0eb['headers']instanceof Headers)_0x19b0eb['headers']['forEach']((_0x378812,_0x4aa524)=>{const _0x565465=_0x2c22a1;_0x4cb222[_0x4aa524[_0x565465(0x178)]()]=_0x378812;});else{if(Array['isArray'](_0x19b0eb[_0x2c22a1(0x147)]))for(const [_0x5459a6,_0xbf11c2]of _0x19b0eb[_0x2c22a1(0x147)]){_0x4cb222[_0x5459a6[_0x2c22a1(0x178)]()]=_0xbf11c2;}else for(const [_0xb1b917,_0x58fd09]of Object['entries'](_0x19b0eb[_0x2c22a1(0x147)])){_0x58fd09!==undefined&&(_0x4cb222[_0xb1b917[_0x2c22a1(0x178)]()]=_0x58fd09);}}}let _0x5a8fac;if(_0x19b0eb?.[_0x2c22a1(0x17f)])try{_0x5a8fac=JSON[_0x2c22a1(0x19a)](_0x19b0eb[_0x2c22a1(0x17f)]);}catch{_0x5a8fac=_0x19b0eb[_0x2c22a1(0x17f)];}return{'method':_0x19b0eb?.[_0x2c22a1(0x166)]??_0x2c22a1(0x163),'url':_0x74bf5,'headers':_0x4cb222,'body':_0x5a8fac};}[a150_0x7a0b0d(0x182)](_0x1e321b){const _0x3eea10=a150_0x7a0b0d,_0x4fd928=this[_0x3eea10(0x167)][_0x3eea10(0x180)](_0x25ede3=>!_0x25ede3[_0x3eea10(0x169)]);if(_0x4fd928[_0x3eea10(0x14f)]>0x0){const _0x1d37f8=_0x4fd928['map'](_0x3c578f=>{const _0x451ccf=_0x3eea10,_0x2fec2c=_0x3c578f['description']?'\x20('+_0x3c578f[_0x451ccf(0x16b)]+')':'',_0x4ee898=_0x3c578f[_0x451ccf(0x185)][_0x451ccf(0x18f)]('\x0a')['slice'](0x2,0x5)[_0x451ccf(0x17b)]('\x0a');return _0x451ccf(0x14b)+_0x2fec2c+_0x451ccf(0x156)+_0x4ee898;});_0x1e321b[_0x3eea10(0x192)](_0x4fd928['length']+_0x3eea10(0x146)+_0x1d37f8['join']('\x0a\x0a'));}}['getRequests'](){const _0x40eef3=a150_0x7a0b0d;return[...this[_0x40eef3(0x196)]];}[a150_0x7a0b0d(0x154)](){const _0x8556f6=a150_0x7a0b0d;return this[_0x8556f6(0x196)][this['requests'][_0x8556f6(0x14f)]-0x1];}[a150_0x7a0b0d(0x18c)](_0x183e89,_0x3e8b79){const _0x55be85=a150_0x7a0b0d;return this[_0x55be85(0x196)]['some'](_0x7d7be9=>{const _0x302065=_0x55be85;if(_0x7d7be9[_0x302065(0x166)][_0x302065(0x17a)]()!==_0x183e89[_0x302065(0x17a)]())return![];if(typeof _0x3e8b79===_0x302065(0x18e))return _0x7d7be9['url'][_0x302065(0x179)](_0x3e8b79);return _0x3e8b79['test'](_0x7d7be9[_0x302065(0x174)]);});}['getMatchCount'](_0x3c4668){const _0x58dc55=a150_0x7a0b0d;return this[_0x58dc55(0x167)][_0x3c4668]?.['matchCount']??0x0;}['reset'](){const _0x374b2a=a150_0x7a0b0d;this[_0x374b2a(0x167)]=[],this['requests']=[],this['fetchMock']=null;}static[a150_0x7a0b0d(0x158)](_0x3bd171){const _0x40c986=a150_0x7a0b0d,_0x338052={0xc8:'OK',0xc9:_0x40c986(0x172),0xcc:_0x40c986(0x198),0x190:_0x40c986(0x168),0x191:_0x40c986(0x152),0x193:'Forbidden',0x194:_0x40c986(0x170),0x199:_0x40c986(0x199),0x1a6:_0x40c986(0x15c),0x1ad:_0x40c986(0x17c),0x1f4:_0x40c986(0x15b),0x1f6:_0x40c986(0x161),0x1f7:_0x40c986(0x14c)};return _0x338052[_0x3bd171]??_0x40c986(0x175);}}export function createHTTPMock(){return new HTTPMockRegistry();}
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a151_0x138d(){var _0x67810e=['278115SPCwHP','8APIOrs','20mLgydp','1059220eLAQZe','1092203fVvxio','631941xcirWN','1031734VOjidA','15384750weyclJ','102JfEOZN','5447232YNZGfQ'];a151_0x138d=function(){return _0x67810e;};return a151_0x138d();}(function(_0x24d833,_0x2932cf){var _0x4680e9=a151_0x20d1,_0x2a9715=_0x24d833();while(!![]){try{var _0x56551c=parseInt(_0x4680e9(0x1f8))/0x1+parseInt(_0x4680e9(0x1fb))/0x2+-parseInt(_0x4680e9(0x1fa))/0x3*(-parseInt(_0x4680e9(0x1f7))/0x4)+-parseInt(_0x4680e9(0x1f5))/0x5*(parseInt(_0x4680e9(0x1fd))/0x6)+parseInt(_0x4680e9(0x1f9))/0x7*(-parseInt(_0x4680e9(0x1f6))/0x8)+parseInt(_0x4680e9(0x1f4))/0x9+-parseInt(_0x4680e9(0x1fc))/0xa;if(_0x56551c===_0x2932cf)break;else _0x2a9715['push'](_0x2a9715['shift']());}catch(_0x47072e){_0x2a9715['push'](_0x2a9715['shift']());}}}(a151_0x138d,0x90e43));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';function a151_0x20d1(_0x1a265f,_0x40e8aa){_0x1a265f=_0x1a265f-0x1f4;var _0x138d09=a151_0x138d();var _0x20d108=_0x138d09[_0x1a265f];return _0x20d108;}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
|
-
|
|
1
|
+
(function(_0x1ad9e5,_0x4761a2){const _0x50b6fb=a152_0x240d,_0x64c23f=_0x1ad9e5();while(!![]){try{const _0x38df13=parseInt(_0x50b6fb(0x10a))/0x1*(parseInt(_0x50b6fb(0x117))/0x2)+-parseInt(_0x50b6fb(0x112))/0x3+parseInt(_0x50b6fb(0x116))/0x4*(parseInt(_0x50b6fb(0x10e))/0x5)+parseInt(_0x50b6fb(0x10f))/0x6*(parseInt(_0x50b6fb(0x108))/0x7)+parseInt(_0x50b6fb(0x114))/0x8+parseInt(_0x50b6fb(0x111))/0x9+-parseInt(_0x50b6fb(0x110))/0xa*(parseInt(_0x50b6fb(0x113))/0xb);if(_0x38df13===_0x4761a2)break;else _0x64c23f['push'](_0x64c23f['shift']());}catch(_0x1891a0){_0x64c23f['push'](_0x64c23f['shift']());}}}(a152_0x5379,0x270be));function a152_0x5379(){const _0x3de9d0=['map','109hKwPjW','all','length','push','5qcQAVN','12UEDvbj','3104860pTZcmY','1946718HiRoDs','284145uQXWOd','33oNpafj','1824040GNqlvH','slice','948952QcJwcD','4768sPTvpa','856471wzjfqx'];a152_0x5379=function(){return _0x3de9d0;};return a152_0x5379();}function a152_0x240d(_0x5141d5,_0x140ab5){_0x5141d5=_0x5141d5-0x108;const _0x53799f=a152_0x5379();let _0x240d96=_0x53799f[_0x5141d5];return _0x240d96;}export async function batchAsync(_0x4e3be9,_0x232e0a,_0x5ad450=0xa){const _0x345eea=a152_0x240d,_0x4549b2=[];for(let _0x5952e4=0x0;_0x5952e4<_0x4e3be9[_0x345eea(0x10c)];_0x5952e4+=_0x5ad450){const _0x4f89e1=_0x4e3be9[_0x345eea(0x115)](_0x5952e4,_0x5952e4+_0x5ad450),_0x65c5d7=await Promise[_0x345eea(0x10b)](_0x4f89e1[_0x345eea(0x109)](_0x232e0a));_0x4549b2[_0x345eea(0x10d)](..._0x65c5d7);}return _0x4549b2;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a153_0x1decef=a153_0xebad;(function(_0x1088e7,_0x35e64e){const _0x1feca0=a153_0xebad,_0x473159=_0x1088e7();while(!![]){try{const _0x3a5e5f=-parseInt(_0x1feca0(0x86))/0x1+parseInt(_0x1feca0(0x99))/0x2*(-parseInt(_0x1feca0(0x95))/0x3)+parseInt(_0x1feca0(0x8a))/0x4+parseInt(_0x1feca0(0x88))/0x5*(parseInt(_0x1feca0(0x97))/0x6)+parseInt(_0x1feca0(0x8e))/0x7*(parseInt(_0x1feca0(0x91))/0x8)+-parseInt(_0x1feca0(0x8b))/0x9*(parseInt(_0x1feca0(0x8c))/0xa)+-parseInt(_0x1feca0(0x8f))/0xb*(-parseInt(_0x1feca0(0x89))/0xc);if(_0x3a5e5f===_0x35e64e)break;else _0x473159['push'](_0x473159['shift']());}catch(_0x3038b1){_0x473159['push'](_0x473159['shift']());}}}(a153_0x4ca9,0x68f85));import*as a153_0x514bc1 from'chalk';function a153_0x4ca9(){const _0x4273e2=['noColor','repeat','blue','stringify','object','map','Chalk','270140LzXZIa','isArray','5usprPl','1884UWkWpC','1397312dlvCIf','27jThlQB','1783400XZiFoW','boolean','49OTIwFN','70103lREaiN','length','35368SGAniy','number','green','entries','46086LXpbuh','string','784782nbkUDp','null','36dJFCQn','join','dim','stdout','cyan'];a153_0x4ca9=function(){return _0x4273e2;};return a153_0x4ca9();}const Chalk=a153_0x514bc1[a153_0x1decef(0x85)];export function shouldUseColor(_0xe71bc={}){const _0x46f698=a153_0x1decef;if(_0xe71bc[_0x46f698(0x9e)]===!![])return![];if(_0xe71bc['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x46f698(0x9c)]['isTTY']??![];}export function getChalk(_0x2a2f6c={}){if(shouldUseColor(_0x2a2f6c))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x4c79e3,_0x2291d6={}){const _0x5439b4=a153_0x1decef;return getChalk(_0x2291d6)[_0x5439b4(0x9b)](_0x4c79e3);}export function colorHeader(_0x1be085,_0x243266={}){const _0x12675c=a153_0x1decef;return getChalk(_0x243266)[_0x12675c(0x9d)](_0x1be085);}export function colorType(_0x36616f,_0x4526bc={}){return getChalk(_0x4526bc)['dim'](_0x36616f);}export function colorJSONKey(_0x2ebee4,_0x44b9e8={}){const _0x39775a=a153_0x1decef;return getChalk(_0x44b9e8)[_0x39775a(0x81)](_0x2ebee4);}export function colorJSONString(_0x30e9b3,_0x1e2a03={}){const _0x38d348=a153_0x1decef;return getChalk(_0x1e2a03)[_0x38d348(0x93)](_0x30e9b3);}function a153_0xebad(_0x2c3f56,_0x8c02e2){_0x2c3f56=_0x2c3f56-0x80;const _0x4ca987=a153_0x4ca9();let _0xebaddb=_0x4ca987[_0x2c3f56];return _0xebaddb;}export function colorJSONNumber(_0x5a3b53,_0x452d22={}){const _0x29339b=a153_0x1decef;return getChalk(_0x452d22)[_0x29339b(0x9d)](_0x5a3b53);}export function colorJSONBoolean(_0x134ace,_0x23d76f={}){return getChalk(_0x23d76f)['yellow'](_0x134ace);}export function colorJSONNull(_0x3df53c,_0x3aaaaf={}){const _0x459105=a153_0x1decef;return getChalk(_0x3aaaaf)[_0x459105(0x9b)](_0x3df53c);}export function colorizeJSONCompact(_0x26902c,_0x4a8466={}){const _0x5bb136=a153_0x1decef;if(!shouldUseColor(_0x4a8466))return JSON[_0x5bb136(0x82)](_0x26902c);if(_0x26902c===null)return colorJSONNull(_0x5bb136(0x98),_0x4a8466);if(typeof _0x26902c===_0x5bb136(0x8d))return colorJSONBoolean(String(_0x26902c),_0x4a8466);if(typeof _0x26902c==='number')return colorJSONNumber(String(_0x26902c),_0x4a8466);if(typeof _0x26902c===_0x5bb136(0x96))return colorJSONString(JSON[_0x5bb136(0x82)](_0x26902c),_0x4a8466);if(Array[_0x5bb136(0x87)](_0x26902c)){if(_0x26902c[_0x5bb136(0x90)]===0x0)return'[]';const _0x4be13f=_0x26902c['map'](_0x351fe4=>colorizeJSONCompact(_0x351fe4,_0x4a8466));return'['+_0x4be13f[_0x5bb136(0x9a)](',')+']';}if(typeof _0x26902c===_0x5bb136(0x83)){const _0x2fab19=Object[_0x5bb136(0x94)](_0x26902c);if(_0x2fab19[_0x5bb136(0x90)]===0x0)return'{}';const _0x9c1e34=_0x2fab19[_0x5bb136(0x84)](([_0x1eb2c8,_0x108521])=>{const _0x151a91=_0x5bb136,_0x2617b0=colorJSONKey(JSON[_0x151a91(0x82)](_0x1eb2c8),_0x4a8466),_0x50c905=colorizeJSONCompact(_0x108521,_0x4a8466);return _0x2617b0+':'+_0x50c905;});return'{'+_0x9c1e34[_0x5bb136(0x9a)](',')+'}';}return String(_0x26902c);}export function colorizeJSON(_0x28314b,_0x538544={},_0x46be08=0x0){const _0x3dcfdb=a153_0x1decef;if(!shouldUseColor(_0x538544))return JSON['stringify'](_0x28314b,null,0x2);const _0x58f5b4='\x20'[_0x3dcfdb(0x80)](_0x46be08),_0x3b59fd=_0x46be08+0x2;if(_0x28314b===null)return colorJSONNull('null',_0x538544);if(typeof _0x28314b==='boolean')return colorJSONBoolean(String(_0x28314b),_0x538544);if(typeof _0x28314b===_0x3dcfdb(0x92))return colorJSONNumber(String(_0x28314b),_0x538544);if(typeof _0x28314b===_0x3dcfdb(0x96))return colorJSONString(JSON['stringify'](_0x28314b),_0x538544);if(Array[_0x3dcfdb(0x87)](_0x28314b)){if(_0x28314b[_0x3dcfdb(0x90)]===0x0)return'[]';const _0x220230=_0x28314b[_0x3dcfdb(0x84)](_0x2ff3b0=>{const _0x54b04a=_0x3dcfdb,_0x5c6a6e=colorizeJSON(_0x2ff3b0,_0x538544,_0x3b59fd);return''+'\x20'[_0x54b04a(0x80)](_0x3b59fd)+_0x5c6a6e;});return'[\x0a'+_0x220230[_0x3dcfdb(0x9a)](',\x0a')+('\x0a'+_0x58f5b4+']');}if(typeof _0x28314b===_0x3dcfdb(0x83)){const _0x44965c=Object[_0x3dcfdb(0x94)](_0x28314b);if(_0x44965c['length']===0x0)return'{}';const _0x17a9b1=_0x44965c[_0x3dcfdb(0x84)](([_0x4d50e4,_0x57bef0])=>{const _0x4e0e47=_0x3dcfdb,_0x3631fa=colorJSONKey(JSON[_0x4e0e47(0x82)](_0x4d50e4),_0x538544),_0x13829c=colorizeJSON(_0x57bef0,_0x538544,_0x3b59fd);return''+'\x20'[_0x4e0e47(0x80)](_0x3b59fd)+_0x3631fa+':\x20'+_0x13829c;});return'{\x0a'+_0x17a9b1[_0x3dcfdb(0x9a)](',\x0a')+('\x0a'+_0x58f5b4+'}');}return String(_0x28314b);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a154_0x1c86(_0x4a1b7b,_0x5c01b3){_0x4a1b7b=_0x4a1b7b-0x7f;const _0x4c6915=a154_0x4c69();let _0x1c863f=_0x4c6915[_0x4a1b7b];return _0x1c863f;}function a154_0x4c69(){const _0x532898=['min','118YRYERU','new','add','red','462540cyFNGZ','has','added','1261560oItQEP','dim','green','map','padStart','1477980hXeNPN','type','size','some','removed','cyan','\x20\x20\x20','forEach','unchanged','286952fhxcdf','push','split','join','\x20+\x20','2259GRZpCl','repeat','598190lhBUmQ','length','content','541877QaSgFM','\x20-\x20','fill','max'];a154_0x4c69=function(){return _0x532898;};return a154_0x4c69();}(function(_0x148abd,_0x1b3391){const _0x3f2194=a154_0x1c86,_0xc015fe=_0x148abd();while(!![]){try{const _0x189dcf=-parseInt(_0x3f2194(0x92))/0x1*(parseInt(_0x3f2194(0x9c))/0x2)+parseInt(_0x3f2194(0x7f))/0x3+parseInt(_0x3f2194(0xa0))/0x4+parseInt(_0x3f2194(0x94))/0x5+-parseInt(_0x3f2194(0x84))/0x6+-parseInt(_0x3f2194(0x97))/0x7+parseInt(_0x3f2194(0x8d))/0x8;if(_0x189dcf===_0x1b3391)break;else _0xc015fe['push'](_0xc015fe['shift']());}catch(_0x292d8b){_0xc015fe['push'](_0xc015fe['shift']());}}}(a154_0x4c69,0x39490));import a154_0x581ba5 from'chalk';export function generateDiff(_0xd399f7,_0x413a67){const _0x226fda=a154_0x1c86,_0x301602=_0xd399f7[_0x226fda(0x8f)]('\x0a'),_0x31010e=_0x413a67[_0x226fda(0x8f)]('\x0a'),_0x503b22=[],_0x5a80bf=computeLCS(_0x301602,_0x31010e);let _0xdd99c=0x0,_0x4d41be=0x0,_0x99eb7c=0x0;while(_0xdd99c<_0x301602[_0x226fda(0x95)]||_0x4d41be<_0x31010e[_0x226fda(0x95)]){if(_0x99eb7c<_0x5a80bf[_0x226fda(0x95)]&&_0xdd99c<_0x301602[_0x226fda(0x95)]&&_0x301602[_0xdd99c]===_0x5a80bf[_0x99eb7c])_0x4d41be<_0x31010e[_0x226fda(0x95)]&&_0x31010e[_0x4d41be]===_0x5a80bf[_0x99eb7c]?(_0x503b22[_0x226fda(0x8e)]({'type':'unchanged','content':_0x301602[_0xdd99c]}),_0xdd99c++,_0x4d41be++,_0x99eb7c++):(_0x503b22['push']({'type':_0x226fda(0xa2),'content':_0x31010e[_0x4d41be]}),_0x4d41be++);else{if(_0x99eb7c<_0x5a80bf[_0x226fda(0x95)]&&_0x4d41be<_0x31010e[_0x226fda(0x95)]&&_0x31010e[_0x4d41be]===_0x5a80bf[_0x99eb7c])_0x503b22[_0x226fda(0x8e)]({'type':_0x226fda(0x88),'content':_0x301602[_0xdd99c]}),_0xdd99c++;else{if(_0xdd99c<_0x301602[_0x226fda(0x95)]&&(_0x99eb7c>=_0x5a80bf[_0x226fda(0x95)]||_0x301602[_0xdd99c]!==_0x5a80bf[_0x99eb7c]))_0x503b22[_0x226fda(0x8e)]({'type':_0x226fda(0x88),'content':_0x301602[_0xdd99c]}),_0xdd99c++;else _0x4d41be<_0x31010e[_0x226fda(0x95)]&&(_0x503b22[_0x226fda(0x8e)]({'type':_0x226fda(0xa2),'content':_0x31010e[_0x4d41be]}),_0x4d41be++);}}}return _0x503b22;}function computeLCS(_0x4de196,_0x416057){const _0x5ef302=a154_0x1c86,_0x1528f5=_0x4de196[_0x5ef302(0x95)],_0x1b5edb=_0x416057[_0x5ef302(0x95)],_0x4cb031=Array(_0x1528f5+0x1)[_0x5ef302(0x99)](null)[_0x5ef302(0x82)](()=>Array(_0x1b5edb+0x1)[_0x5ef302(0x99)](0x0));for(let _0x4489cc=0x1;_0x4489cc<=_0x1528f5;_0x4489cc++){for(let _0x1f39f6=0x1;_0x1f39f6<=_0x1b5edb;_0x1f39f6++){_0x4de196[_0x4489cc-0x1]===_0x416057[_0x1f39f6-0x1]?_0x4cb031[_0x4489cc][_0x1f39f6]=_0x4cb031[_0x4489cc-0x1][_0x1f39f6-0x1]+0x1:_0x4cb031[_0x4489cc][_0x1f39f6]=Math[_0x5ef302(0x9a)](_0x4cb031[_0x4489cc-0x1][_0x1f39f6],_0x4cb031[_0x4489cc][_0x1f39f6-0x1]);}}const _0x4deccf=[];let _0x511654=_0x1528f5,_0x1123d8=_0x1b5edb;while(_0x511654>0x0&&_0x1123d8>0x0){if(_0x4de196[_0x511654-0x1]===_0x416057[_0x1123d8-0x1])_0x4deccf['unshift'](_0x4de196[_0x511654-0x1]),_0x511654--,_0x1123d8--;else _0x4cb031[_0x511654-0x1][_0x1123d8]>_0x4cb031[_0x511654][_0x1123d8-0x1]?_0x511654--:_0x1123d8--;}return _0x4deccf;}export function formatDiffWithColors(_0x1179f4,_0x2cc7ae=0x3){const _0x5838cc=a154_0x1c86,_0x38d9a1=new Set();_0x1179f4[_0x5838cc(0x8b)]((_0xe1e3c8,_0x4ca593)=>{const _0x37b828=_0x5838cc;_0xe1e3c8[_0x37b828(0x85)]!=='unchanged'&&_0x38d9a1[_0x37b828(0x9e)](_0x4ca593);});if(_0x38d9a1[_0x5838cc(0x86)]===0x0)return'';const _0x496f22=new Set();for(const _0x363404 of _0x38d9a1){for(let _0xe86457=Math[_0x5838cc(0x9a)](0x0,_0x363404-_0x2cc7ae);_0xe86457<=Math[_0x5838cc(0x9b)](_0x1179f4[_0x5838cc(0x95)]-0x1,_0x363404+_0x2cc7ae);_0xe86457++){_0x496f22[_0x5838cc(0x9e)](_0xe86457);}}const _0x1ac357=[];let _0x252409=-0x1;const _0xe298b0=_0x1179f4[_0x5838cc(0x95)],_0x165a8b=Math[_0x5838cc(0x9a)](0x3,String(_0xe298b0)[_0x5838cc(0x95)]),_0xfa389c=[];let _0x32adf2=0x0,_0x125e05=0x0;for(const _0x5d8d79 of _0x1179f4){if(_0x5d8d79[_0x5838cc(0x85)]===_0x5838cc(0x88))_0x32adf2++,_0xfa389c[_0x5838cc(0x8e)]({'old':_0x32adf2,'new':0x0});else _0x5d8d79[_0x5838cc(0x85)]===_0x5838cc(0xa2)?(_0x125e05++,_0xfa389c[_0x5838cc(0x8e)]({'old':0x0,'new':_0x125e05})):(_0x32adf2++,_0x125e05++,_0xfa389c[_0x5838cc(0x8e)]({'old':_0x32adf2,'new':_0x125e05}));}for(let _0x57e53e=0x0;_0x57e53e<_0x1179f4[_0x5838cc(0x95)];_0x57e53e++){if(!_0x496f22[_0x5838cc(0xa1)](_0x57e53e))continue;_0x252409!==-0x1&&_0x57e53e>_0x252409+0x1&&_0x1ac357[_0x5838cc(0x8e)](a154_0x581ba5[_0x5838cc(0x89)]('\x20\x20...'));_0x252409=_0x57e53e;const _0x1eb629=_0x1179f4[_0x57e53e],_0x50cc8c=_0xfa389c[_0x57e53e],_0x441648=_0x50cc8c['old']>0x0?String(_0x50cc8c['old'])[_0x5838cc(0x83)](_0x165a8b):'\x20'[_0x5838cc(0x93)](_0x165a8b),_0x5ba740=_0x50cc8c['new']>0x0?String(_0x50cc8c[_0x5838cc(0x9d)])[_0x5838cc(0x83)](_0x165a8b):'\x20'['repeat'](_0x165a8b);switch(_0x1eb629[_0x5838cc(0x85)]){case _0x5838cc(0x88):_0x1ac357[_0x5838cc(0x8e)](a154_0x581ba5[_0x5838cc(0x9f)](_0x441648+'\x20'+_0x5ba740+_0x5838cc(0x98)+_0x1eb629[_0x5838cc(0x96)]));break;case _0x5838cc(0xa2):_0x1ac357[_0x5838cc(0x8e)](a154_0x581ba5[_0x5838cc(0x81)](_0x441648+'\x20'+_0x5ba740+_0x5838cc(0x91)+_0x1eb629[_0x5838cc(0x96)]));break;default:_0x1ac357[_0x5838cc(0x8e)](a154_0x581ba5[_0x5838cc(0x80)](_0x441648+'\x20'+_0x5ba740+_0x5838cc(0x8a)+_0x1eb629['content']));break;}}return _0x1ac357[_0x5838cc(0x90)]('\x0a');}export function hasChanges(_0x289e31){const _0xc5e3bc=a154_0x1c86;return _0x289e31[_0xc5e3bc(0x87)](_0x18e1a6=>_0x18e1a6['type']!==_0xc5e3bc(0x8c));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5ad564,_0x280121){const _0x1ac6d8=a155_0x2fa6,_0x155126=_0x5ad564();while(!![]){try{const _0x10b093=-parseInt(_0x1ac6d8(0x15b))/0x1+parseInt(_0x1ac6d8(0x154))/0x2*(-parseInt(_0x1ac6d8(0x149))/0x3)+-parseInt(_0x1ac6d8(0x15d))/0x4*(-parseInt(_0x1ac6d8(0x156))/0x5)+parseInt(_0x1ac6d8(0x15e))/0x6+-parseInt(_0x1ac6d8(0x157))/0x7+parseInt(_0x1ac6d8(0x14b))/0x8*(parseInt(_0x1ac6d8(0x153))/0x9)+parseInt(_0x1ac6d8(0x151))/0xa*(parseInt(_0x1ac6d8(0x14c))/0xb);if(_0x10b093===_0x280121)break;else _0x155126['push'](_0x155126['shift']());}catch(_0x1deaaa){_0x155126['push'](_0x155126['shift']());}}}(a155_0x2b26,0x3d279));function a155_0x2b26(){const _0x1eb00d=['\x20has\x20insecure\x20permissions\x20(','315482sUwfFO','chmodSync','4BLCkbl','805044WXEjjL','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','mkdirSync','93HnXOqH','warn','34896yqqpFg','165187OqbQxv','existsSync',').\x20','mode','Warning:\x20','50CiiyOn','writeFileSync','846gVYdhQ','3362VYQgoE','dirname','1872335ihFyCm','2629704ZkPFtC','statSync','Should\x20be\x200600\x20or\x20more\x20restrictive.'];a155_0x2b26=function(){return _0x1eb00d;};return a155_0x2b26();}import*as a155_0x22a384 from'node:fs';function a155_0x2fa6(_0x182974,_0x5b215c){_0x182974=_0x182974-0x148;const _0x2b2658=a155_0x2b26();let _0x2fa68f=_0x2b2658[_0x182974];return _0x2fa68f;}import*as a155_0xe5406f from'node:path';export function setSecureFilePermissions(_0x173e4d){try{a155_0x22a384['chmodSync'](_0x173e4d,0x180);}catch{console['warn']('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x173e4d);}}export function setSecureDirectoryPermissions(_0x5091b7){const _0x28daa0=a155_0x2fa6;try{a155_0x22a384[_0x28daa0(0x15c)](_0x5091b7,0x1c0);}catch{console[_0x28daa0(0x14a)](_0x28daa0(0x15f)+_0x5091b7);}}export function createSecureDirectory(_0x162142){const _0x2b5182=a155_0x2fa6;!a155_0x22a384[_0x2b5182(0x14d)](_0x162142)&&(a155_0x22a384[_0x2b5182(0x148)](_0x162142,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x162142));}export function validateSecureFilePermissions(_0x192daa){const _0x52b4bc=a155_0x2fa6;try{const _0x3129f0=a155_0x22a384[_0x52b4bc(0x158)](_0x192daa),_0x212687=_0x3129f0[_0x52b4bc(0x14f)]&0x1ff,_0x27d7ef=(_0x212687&0x3f)!==0x0;if(_0x27d7ef)return console[_0x52b4bc(0x14a)](_0x52b4bc(0x150)+_0x192daa+_0x52b4bc(0x15a)+_0x212687['toString'](0x8)+_0x52b4bc(0x14e)+_0x52b4bc(0x159)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x14f936,_0x3cc512){const _0xec4c46=a155_0x2fa6,_0x1a58f7=a155_0xe5406f[_0xec4c46(0x155)](_0x14f936);createSecureDirectory(_0x1a58f7),a155_0x22a384[_0xec4c46(0x152)](_0x14f936,_0x3cc512,{'mode':0x180}),setSecureFilePermissions(_0x14f936);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b1937,_0x258435){const _0x2f472a=a156_0x59ad,_0x2e430f=_0x1b1937();while(!![]){try{const _0x13c19d=-parseInt(_0x2f472a(0x83))/0x1+-parseInt(_0x2f472a(0x85))/0x2*(parseInt(_0x2f472a(0x80))/0x3)+-parseInt(_0x2f472a(0x74))/0x4+parseInt(_0x2f472a(0x7a))/0x5*(parseInt(_0x2f472a(0x7f))/0x6)+parseInt(_0x2f472a(0x6f))/0x7+parseInt(_0x2f472a(0x77))/0x8*(parseInt(_0x2f472a(0x76))/0x9)+-parseInt(_0x2f472a(0x79))/0xa*(parseInt(_0x2f472a(0x6e))/0xb);if(_0x13c19d===_0x258435)break;else _0x2e430f['push'](_0x2e430f['shift']());}catch(_0x354e01){_0x2e430f['push'](_0x2e430f['shift']());}}}(a156_0x420d,0x7cbdd));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x10fc44=a156_0x59ad;return process.env.TDX_CACHE_DIR||join(homedir(),_0x10fc44(0x7e),_0x10fc44(0x78));}const registry=new Map();function a156_0x59ad(_0x1da878,_0x1282cc){_0x1da878=_0x1da878-0x6e;const _0x420dea=a156_0x420d();let _0x59adaa=_0x420dea[_0x1da878];return _0x59adaa;}export function registerGlobalCacheKey(_0x5226ec,_0x470f6b){const _0xf5123e=a156_0x59ad,_0x1f74b5=registry[_0xf5123e(0x7c)](_0x5226ec);if(_0x1f74b5&&_0x1f74b5!==_0x470f6b)throw new Error('Global\x20cache\x20key\x20\x22'+_0x5226ec+_0xf5123e(0x75)+_0x1f74b5+_0xf5123e(0x82)+_0x470f6b+'\x22');registry[_0xf5123e(0x7d)](_0x5226ec,_0x470f6b);}export function getGlobalCachePath(_0x179ef8){return join(getGlobalCacheDir(),_0x179ef8);}function ensureGlobalCacheDir(){const _0x1ca79d=getGlobalCacheDir();!existsSync(_0x1ca79d)&&mkdirSync(_0x1ca79d,{'recursive':!![]});}function readCacheJson(_0xe4708b){const _0x1597f4=a156_0x59ad,_0x1cc4d7=getGlobalCachePath(_0xe4708b);if(!existsSync(_0x1cc4d7))return undefined;try{const _0x158b4f=readFileSync(_0x1cc4d7,_0x1597f4(0x81));return JSON[_0x1597f4(0x70)](_0x158b4f);}catch{return undefined;}}function writeCacheJson(_0x499cdd,_0x2d49d3){const _0x5c37cc=a156_0x59ad;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x499cdd),JSON['stringify'](_0x2d49d3,null,0x2),_0x5c37cc(0x81));}function readCacheText(_0x53131b){const _0x5371d3=a156_0x59ad,_0xed7bdc=getGlobalCachePath(_0x53131b);if(!existsSync(_0xed7bdc))return undefined;try{return readFileSync(_0xed7bdc,_0x5371d3(0x81));}catch{return undefined;}}function writeCacheText(_0x54fa24,_0xa5898e){const _0x5adbb1=a156_0x59ad;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x54fa24),_0xa5898e,_0x5adbb1(0x81));}function clearCache(_0xba1375){const _0x1a8f18=getGlobalCachePath(_0xba1375);if(existsSync(_0x1a8f18))try{unlinkSync(_0x1a8f18);}catch{}}function cacheExists(_0x27cb4f){return existsSync(getGlobalCachePath(_0x27cb4f));}export function createGlobalCache(_0x3b259c,_0x18f6dc){return registerGlobalCacheKey(_0x3b259c,_0x18f6dc),{'read':()=>readCacheJson(_0x3b259c),'write':_0x15d609=>writeCacheJson(_0x3b259c,_0x15d609),'clear':()=>clearCache(_0x3b259c),'exists':()=>cacheExists(_0x3b259c),'path':()=>getGlobalCachePath(_0x3b259c)};}export function createGlobalTextCache(_0x39d792,_0x4a236a){const _0x1a2e5e=a156_0x59ad;return registerGlobalCacheKey(_0x39d792,_0x4a236a),{'read':()=>readCacheText(_0x39d792)?.[_0x1a2e5e(0x71)]()||undefined,'write':_0x307253=>writeCacheText(_0x39d792,_0x307253),'clear':()=>clearCache(_0x39d792),'exists':()=>cacheExists(_0x39d792),'path':()=>getGlobalCachePath(_0x39d792)};}export function createProfileCache(_0x4d64fc,_0x398844){const _0x35f98d=_0xd4f2f6=>{const _0x433984=a156_0x59ad,_0x4de073=_0xd4f2f6||_0x433984(0x73);return _0x4d64fc[_0x433984(0x84)](_0x433984(0x7b),_0x4de073);};return{'read':_0x374ba7=>{const _0x46eb5c=_0x35f98d(_0x374ba7);return registerGlobalCacheKey(_0x46eb5c,_0x398844),readCacheJson(_0x46eb5c);},'write':(_0x42b9b3,_0xd81d46)=>{const _0xabcabf=_0x35f98d(_0x42b9b3);registerGlobalCacheKey(_0xabcabf,_0x398844),writeCacheJson(_0xabcabf,_0xd81d46);},'clear':_0xa28799=>{const _0x28307b=_0x35f98d(_0xa28799);clearCache(_0x28307b);},'exists':_0x5711ac=>{const _0x5c18b8=_0x35f98d(_0x5711ac);return cacheExists(_0x5c18b8);},'path':_0x5d114c=>{const _0x4f42df=_0x35f98d(_0x5d114c);return getGlobalCachePath(_0x4f42df);}};}export function createOptionalProfileCache(_0x1dbd3a,_0x3c3043,_0xa2c4b1={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0xa2c4b1,_0x2c9b3c=_0x12428f=>{return _0x12428f?''+_0x1dbd3a+profileSeparator+_0x12428f+suffix:''+_0x1dbd3a+suffix;};return{'read':_0x3f7ffd=>{const _0x1566f5=_0x2c9b3c(_0x3f7ffd);return registerGlobalCacheKey(_0x1566f5,_0x3c3043),readCacheJson(_0x1566f5);},'write':(_0x1c1c11,_0x3530ea)=>{const _0x1d4bd5=_0x2c9b3c(_0x3530ea);registerGlobalCacheKey(_0x1d4bd5,_0x3c3043),writeCacheJson(_0x1d4bd5,_0x1c1c11);},'clear':_0x536ee6=>{const _0x1cdd18=_0x2c9b3c(_0x536ee6);clearCache(_0x1cdd18);},'exists':_0x354362=>{const _0x31c230=_0x2c9b3c(_0x354362);return cacheExists(_0x31c230);},'path':_0x3ace99=>{const _0x1749c8=_0x2c9b3c(_0x3ace99);return getGlobalCachePath(_0x1749c8);}};}export function clearGlobalRegistry(){const _0x419f=a156_0x59ad;registry[_0x419f(0x72)]();}function a156_0x420d(){const _0x4a46ad=['clear','default','727320dxJCfj','\x22\x20already\x20registered\x20by\x20\x22','207bJiTMd','222184ckMiYT','tdx','100670vsuKBM','5HgSxED','{profile}','get','set','.cache','1117806sbUKeq','222XoYqXM','utf-8','\x22,\x20cannot\x20register\x20for\x20\x22','38862uqGQox','replace','22756INKoWx','286eIzPNm','7071869zHuqUK','parse','trim'];a156_0x420d=function(){return _0x4a46ad;};return a156_0x420d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd82cc8,_0x1a0c57){const _0x1b71ed=a157_0x3324,_0x2d7708=_0xd82cc8();while(!![]){try{const _0x445b34=parseInt(_0x1b71ed(0x1ab))/0x1+parseInt(_0x1b71ed(0x1b5))/0x2+parseInt(_0x1b71ed(0x1a2))/0x3*(parseInt(_0x1b71ed(0x1a4))/0x4)+parseInt(_0x1b71ed(0x1a6))/0x5+-parseInt(_0x1b71ed(0x1ad))/0x6+-parseInt(_0x1b71ed(0x1a9))/0x7*(-parseInt(_0x1b71ed(0x1b4))/0x8)+-parseInt(_0x1b71ed(0x1b2))/0x9;if(_0x445b34===_0x1a0c57)break;else _0x2d7708['push'](_0x2d7708['shift']());}catch(_0x182bcf){_0x2d7708['push'](_0x2d7708['shift']());}}}(a157_0x1595,0xd60dc));function a157_0x3324(_0x1fad5c,_0x44bf76){_0x1fad5c=_0x1fad5c-0x1a0;const _0x159542=a157_0x1595();let _0x33240f=_0x159542[_0x1fad5c];return _0x33240f;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a157_0x1595(){const _0x1eaf89=['code','parse','Failed\x20to\x20load\x20JSON:\x20','9300015inDNSt','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','2632stPqsZ','222052AjoEeV','Permission\x20denied\x20reading\x20file:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','3OdhSNL','EACCES','850328EhtEsQ','File\x20not\x20found:\x20','3931015SMPSii','INVALID_ARGUMENT','message','28910QVGtEF','PERMISSION_DENIED','517610STajIL','ENOENT','6456552bMGEfK','utf-8'];a157_0x1595=function(){return _0x1eaf89;};return a157_0x1595();}export async function loadJSON(_0x17f83b,_0x5da9c6){const _0x369a71=a157_0x3324;try{if(_0x5da9c6){const _0x41b6c7=await readFile(_0x17f83b,_0x369a71(0x1ae));try{return JSON[_0x369a71(0x1b0)](_0x41b6c7);}catch(_0x21c7e2){throw new SDKError(ErrorCode[_0x369a71(0x1a7)],_0x369a71(0x1a1)+_0x17f83b+'\x27:\x20'+(_0x21c7e2 instanceof Error?_0x21c7e2[_0x369a71(0x1a8)]:String(_0x21c7e2)));}}else try{return JSON['parse'](_0x17f83b);}catch(_0x555e7c){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20string:\x20'+(_0x555e7c instanceof Error?_0x555e7c[_0x369a71(0x1a8)]:String(_0x555e7c)));}}catch(_0x32f874){if(_0x32f874 instanceof SDKError)throw _0x32f874;if(_0x32f874 instanceof Error&&_0x369a71(0x1af)in _0x32f874){const _0x13180a=_0x32f874;if(_0x13180a[_0x369a71(0x1af)]===_0x369a71(0x1ac))throw new SDKError(ErrorCode['NOT_FOUND'],_0x369a71(0x1a5)+_0x17f83b);else{if(_0x13180a[_0x369a71(0x1af)]===_0x369a71(0x1a3))throw new SDKError(ErrorCode[_0x369a71(0x1aa)],_0x369a71(0x1a0)+_0x17f83b);}}throw new SDKError(ErrorCode['INTERNAL'],_0x369a71(0x1b1)+(_0x32f874 instanceof Error?_0x32f874[_0x369a71(0x1a8)]:String(_0x32f874)));}}export async function loadJSONFromOptions(_0x4c57c5,_0x243df4){const _0x2091fa=a157_0x3324;if(_0x4c57c5&&_0x243df4)throw new SDKError(ErrorCode[_0x2091fa(0x1a7)],_0x2091fa(0x1b3));if(_0x4c57c5)return await loadJSON(_0x4c57c5,![]);if(_0x243df4)return await loadJSON(_0x243df4,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a158_0x16256d=a158_0x51b8;(function(_0x586e28,_0x54474e){const _0x306f58=a158_0x51b8,_0x54a154=_0x586e28();while(!![]){try{const _0x49045b=-parseInt(_0x306f58(0x1f9))/0x1*(-parseInt(_0x306f58(0x204))/0x2)+parseInt(_0x306f58(0x1fa))/0x3+-parseInt(_0x306f58(0x1ff))/0x4*(-parseInt(_0x306f58(0x1f5))/0x5)+-parseInt(_0x306f58(0x1fb))/0x6*(-parseInt(_0x306f58(0x1fc))/0x7)+parseInt(_0x306f58(0x200))/0x8+-parseInt(_0x306f58(0x203))/0x9*(-parseInt(_0x306f58(0x1fe))/0xa)+-parseInt(_0x306f58(0x1f4))/0xb*(parseInt(_0x306f58(0x1fd))/0xc);if(_0x49045b===_0x54474e)break;else _0x54a154['push'](_0x54a154['shift']());}catch(_0xd927ae){_0x54a154['push'](_0x54a154['shift']());}}}(a158_0x5583,0x21a22));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';const LOCAL_CACHE_DIR=a158_0x16256d(0x1f3),registry=new Map();export function registerCacheKey(_0x1b58f0,_0x12d1e8){const _0x371125=a158_0x16256d,_0x5c17b0=registry['get'](_0x1b58f0);if(_0x5c17b0&&_0x5c17b0!==_0x12d1e8)throw new Error(_0x371125(0x205)+_0x1b58f0+'\x22\x20already\x20registered\x20by\x20\x22'+_0x5c17b0+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x12d1e8+'\x22');registry[_0x371125(0x201)](_0x1b58f0,_0x12d1e8);}export function getCacheDir(){return join(process['cwd'](),LOCAL_CACHE_DIR);}function a158_0x51b8(_0x39c8d1,_0x4ee3b2){_0x39c8d1=_0x39c8d1-0x1f3;const _0x5583a0=a158_0x5583();let _0x51b89c=_0x5583a0[_0x39c8d1];return _0x51b89c;}export function getCachePath(_0x2427eb){return join(getCacheDir(),_0x2427eb);}function ensureCacheDir(){const _0x2e6de8=getCacheDir();!existsSync(_0x2e6de8)&&mkdirSync(_0x2e6de8,{'recursive':!![]});}function readCacheJson(_0x545037){const _0x1570b1=a158_0x16256d,_0xec3fa6=getCachePath(_0x545037);if(!existsSync(_0xec3fa6))return undefined;try{const _0x50227d=readFileSync(_0xec3fa6,_0x1570b1(0x1f8));return JSON[_0x1570b1(0x1f6)](_0x50227d);}catch{return undefined;}}function a158_0x5583(){const _0x5f5090=['1243764aXossA','10gdOVQj','4cPvTgO','1164104iYrsoV','set','stringify','771048yPXwSz','72446zyhvBU','Cache\x20key\x20\x22','.cache/tdx','77tiFUOa','810785VhSbNZ','parse','clear','utf-8','4XERVFF','654744NYSYmp','640854hOCviX','7kOvHVa'];a158_0x5583=function(){return _0x5f5090;};return a158_0x5583();}function writeCacheJson(_0xbe3be1,_0x1ae9c1){const _0x1cf8f5=a158_0x16256d;ensureCacheDir(),writeFileSync(getCachePath(_0xbe3be1),JSON[_0x1cf8f5(0x202)](_0x1ae9c1,null,0x2),_0x1cf8f5(0x1f8));}function readCacheText(_0x1fe785){const _0x223c4c=a158_0x16256d,_0x1a0cd7=getCachePath(_0x1fe785);if(!existsSync(_0x1a0cd7))return undefined;try{return readFileSync(_0x1a0cd7,_0x223c4c(0x1f8));}catch{return undefined;}}function writeCacheText(_0xa5ec0c,_0x1f54b0){const _0xf7f2aa=a158_0x16256d;ensureCacheDir(),writeFileSync(getCachePath(_0xa5ec0c),_0x1f54b0,_0xf7f2aa(0x1f8));}function clearCache(_0x1ed5e9){const _0x1f9aa4=getCachePath(_0x1ed5e9);if(existsSync(_0x1f9aa4))try{unlinkSync(_0x1f9aa4);}catch{}}function cacheExists(_0x3f3dee){return existsSync(getCachePath(_0x3f3dee));}export function createCache(_0x899495,_0x164c7d){return registerCacheKey(_0x899495,_0x164c7d),{'read':()=>readCacheJson(_0x899495),'write':_0x5f41a4=>writeCacheJson(_0x899495,_0x5f41a4),'clear':()=>clearCache(_0x899495),'exists':()=>cacheExists(_0x899495),'path':()=>getCachePath(_0x899495)};}export function createTextCache(_0x5c9171,_0x10c3cc){return registerCacheKey(_0x5c9171,_0x10c3cc),{'read':()=>readCacheText(_0x5c9171)?.['trim']()||undefined,'write':_0x18999a=>writeCacheText(_0x5c9171,_0x18999a),'clear':()=>clearCache(_0x5c9171),'exists':()=>cacheExists(_0x5c9171),'path':()=>getCachePath(_0x5c9171)};}export function clearRegistry(){const _0x14e9a0=a158_0x16256d;registry[_0x14e9a0(0x1f7)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a159_0x473287=a159_0x512d;function a159_0x14d4(){const _0x2ba3a=['WARN','yellow','760899eETTcV','255661pSxBwT','TRACE','740xlwaRB','340HceJEq','default','cyan','chalk','dim','136VhKUPW','2056716qFxjYE','message','DEBUG',']\x20[','format','timestamp','level','colors','Chalk','200pAosfU','gray','component','green','ERROR','red','1518538OFfXgG','blue','colorLevel','130995GAGyyy','4628964VKCYXS','INFO'];a159_0x14d4=function(){return _0x2ba3a;};return a159_0x14d4();}(function(_0x3f6ffe,_0x2f3a94){const _0x4d831e=a159_0x512d,_0x3b01ca=_0x3f6ffe();while(!![]){try{const _0x4dc75c=parseInt(_0x4d831e(0x145))/0x1+parseInt(_0x4d831e(0x13d))/0x2+-parseInt(_0x4d831e(0x12e))/0x3+-parseInt(_0x4d831e(0x128))/0x4*(-parseInt(_0x4d831e(0x127))/0x5)+-parseInt(_0x4d831e(0x141))/0x6+-parseInt(_0x4d831e(0x146))/0x7*(-parseInt(_0x4d831e(0x12d))/0x8)+parseInt(_0x4d831e(0x140))/0x9*(-parseInt(_0x4d831e(0x137))/0xa);if(_0x4dc75c===_0x2f3a94)break;else _0x3b01ca['push'](_0x3b01ca['shift']());}catch(_0x70c17){_0x3b01ca['push'](_0x3b01ca['shift']());}}}(a159_0x14d4,0x62fe1));import a159_0x131393 from'chalk';function a159_0x512d(_0x5ecb29,_0x318a7e){_0x5ecb29=_0x5ecb29-0x126;const _0x14d423=a159_0x14d4();let _0x512d83=_0x14d423[_0x5ecb29];return _0x512d83;}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a159_0x131393,ChalkClass=chalkModule[a159_0x473287(0x136)]||chalkModule[a159_0x473287(0x129)]?.[a159_0x473287(0x136)];export class DefaultLogFormatter{['colors'];[a159_0x473287(0x12b)];constructor(_0x46f4a7={}){const _0x46d4f9=a159_0x473287;this[_0x46d4f9(0x135)]=_0x46f4a7[_0x46d4f9(0x135)]??![],this[_0x46d4f9(0x12b)]=_0x46f4a7[_0x46d4f9(0x135)]&&ChalkClass?new ChalkClass({'level':0x3}):a159_0x131393;}[a159_0x473287(0x132)](_0x900c53){const _0x1880ac=a159_0x473287,_0x5e4cb6=formatTimestamp(_0x900c53[_0x1880ac(0x133)]),_0x446ddd=logLevelToString(_0x900c53[_0x1880ac(0x134)]);if(!this[_0x1880ac(0x135)])return _0x5e4cb6+'\x20['+_0x446ddd+_0x1880ac(0x131)+_0x900c53['component']+']\x20'+_0x900c53[_0x1880ac(0x12f)];const _0x5d20f7=this[_0x1880ac(0x12b)][_0x1880ac(0x12c)](_0x5e4cb6),_0x34ab08=this['colorLevel'](_0x446ddd,_0x900c53['level']),_0x1f9a6e=this[_0x1880ac(0x12b)][_0x1880ac(0x13e)]('['+_0x900c53[_0x1880ac(0x139)]+']');return _0x5d20f7+'\x20'+_0x34ab08+'\x20'+_0x1f9a6e+'\x20'+_0x900c53[_0x1880ac(0x12f)];}[a159_0x473287(0x13f)](_0x2a67eb,_0x2581ff){const _0x48c77a=a159_0x473287;switch(_0x2581ff){case LogLevel[_0x48c77a(0x126)]:return this[_0x48c77a(0x12b)][_0x48c77a(0x138)]('['+_0x2a67eb+']');case LogLevel[_0x48c77a(0x130)]:return this['chalk'][_0x48c77a(0x13a)]('['+_0x2a67eb+']');case LogLevel[_0x48c77a(0x142)]:return this[_0x48c77a(0x12b)][_0x48c77a(0x12a)]('['+_0x2a67eb+']');case LogLevel[_0x48c77a(0x143)]:return this[_0x48c77a(0x12b)][_0x48c77a(0x144)]('['+_0x2a67eb+']');case LogLevel[_0x48c77a(0x13b)]:return this[_0x48c77a(0x12b)][_0x48c77a(0x13c)]('['+_0x2a67eb+']');default:return'['+_0x2a67eb+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a160_0x5bef(_0x445a3f,_0x242223){_0x445a3f=_0x445a3f-0x1da;var _0x13015b=a160_0x1301();var _0x5bef30=_0x13015b[_0x445a3f];return _0x5bef30;}function a160_0x1301(){var _0x38e995=['874948MxpNkV','4376240grvnGd','173865tHaibv','638298IZVkOb','2513EFUniT','132602KcORqa','6618CDToJD','100052eSvuVb'];a160_0x1301=function(){return _0x38e995;};return a160_0x1301();}(function(_0x52a1f3,_0x26b8c8){var _0x504bc9=a160_0x5bef,_0x397164=_0x52a1f3();while(!![]){try{var _0x2af13e=parseInt(_0x504bc9(0x1e0))/0x1+parseInt(_0x504bc9(0x1da))/0x2+parseInt(_0x504bc9(0x1de))/0x3+-parseInt(_0x504bc9(0x1db))/0x4+-parseInt(_0x504bc9(0x1dd))/0x5+-parseInt(_0x504bc9(0x1e1))/0x6*(parseInt(_0x504bc9(0x1df))/0x7)+parseInt(_0x504bc9(0x1dc))/0x8;if(_0x2af13e===_0x26b8c8)break;else _0x397164['push'](_0x397164['shift']());}catch(_0x433da4){_0x397164['push'](_0x397164['shift']());}}}(a160_0x1301,0x47849));export{DefaultLogFormatter}from'./default-formatter.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a161_0x184ae6=a161_0x167c;(function(_0x307be0,_0x459051){const _0x7978b5=a161_0x167c,_0x401a08=_0x307be0();while(!![]){try{const _0x51419d=-parseInt(_0x7978b5(0xee))/0x1+-parseInt(_0x7978b5(0xeb))/0x2+-parseInt(_0x7978b5(0xec))/0x3+parseInt(_0x7978b5(0xe9))/0x4*(-parseInt(_0x7978b5(0xe8))/0x5)+parseInt(_0x7978b5(0xf2))/0x6+parseInt(_0x7978b5(0xf0))/0x7+parseInt(_0x7978b5(0xe6))/0x8;if(_0x51419d===_0x459051)break;else _0x401a08['push'](_0x401a08['shift']());}catch(_0xbd3766){_0x401a08['push'](_0x401a08['shift']());}}}(a161_0x8846,0xe9d7c));function a161_0x8846(){const _0x25b148=['6701436AXhGho','handle','3147288PGIoxv','format','level','colors','log','minLevel','40197440BIugQx','useStderr','309235nMtFGg','104vVQute','error','2726566EyGAcU','3209001KSoCro','WARN','1507784MmORRR','formatter'];a161_0x8846=function(){return _0x25b148;};return a161_0x8846();}function a161_0x167c(_0x294b28,_0x4fb040){_0x294b28=_0x294b28-0xe3;const _0x88463f=a161_0x8846();let _0x167cdb=_0x88463f[_0x294b28];return _0x167cdb;}import{LogLevel as a161_0x469225}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a161_0x184ae6(0xe5)];[a161_0x184ae6(0xe7)];['formatter'];constructor(_0x566f4e={}){const _0x1c4ea2=a161_0x184ae6;this[_0x1c4ea2(0xe5)]=_0x566f4e[_0x1c4ea2(0xe5)]??a161_0x469225[_0x1c4ea2(0xed)],this['useStderr']=_0x566f4e[_0x1c4ea2(0xe7)]??!![],this[_0x1c4ea2(0xef)]=new DefaultLogFormatter({'colors':_0x566f4e[_0x1c4ea2(0xe3)]??!![]});}[a161_0x184ae6(0xf1)](_0x5974e){const _0x359947=a161_0x184ae6;if(_0x5974e[_0x359947(0xf4)]<this['minLevel'])return;const _0x38704c=this[_0x359947(0xef)][_0x359947(0xf3)](_0x5974e);this[_0x359947(0xe7)]&&_0x5974e[_0x359947(0xf4)]>=a161_0x469225[_0x359947(0xed)]?console[_0x359947(0xea)](_0x38704c):console[_0x359947(0xe4)](_0x38704c);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a162_0x1aed07=a162_0x4671;function a162_0x5945(){const _0x2c07a2=['split','tdx.log','logs','logPath','logDir','includes','.log','end','format','789061oDjhpx','replace','rotate','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','1298424srLehJ','.gz','error','1179210fFbSEi','Warning:\x20Error\x20writing\x20to\x20','logFileName','init','7507920cKiSdj','write','Warning:\x20Failed\x20to\x20compress\x20','13576680yVMLpU','getLogPath','handle','logStream','filePath','logBaseName','toISOString','246QKAOGM','2HazgjX','\x5c$&','1532091ijbfyA','mtime','36106mGQMtg'];a162_0x5945=function(){return _0x2c07a2;};return a162_0x5945();}(function(_0x155d03,_0x24d200){const _0x1130d7=a162_0x4671,_0x24fdf0=_0x155d03();while(!![]){try{const _0x40f5ee=parseInt(_0x1130d7(0xa0))/0x1+-parseInt(_0x1130d7(0x92))/0x2*(parseInt(_0x1130d7(0x94))/0x3)+-parseInt(_0x1130d7(0xa4))/0x4+parseInt(_0x1130d7(0xa7))/0x5+-parseInt(_0x1130d7(0x91))/0x6*(parseInt(_0x1130d7(0x96))/0x7)+-parseInt(_0x1130d7(0xab))/0x8+parseInt(_0x1130d7(0x8a))/0x9;if(_0x40f5ee===_0x24d200)break;else _0x24fdf0['push'](_0x24fdf0['shift']());}catch(_0x5f4f6d){_0x24fdf0['push'](_0x24fdf0['shift']());}}}(a162_0x5945,0x85d38));function a162_0x4671(_0x4eacfe,_0x20a769){_0x4eacfe=_0x4eacfe-0x89;const _0x594502=a162_0x5945();let _0x467134=_0x594502[_0x4eacfe];return _0x467134;}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{[a162_0x1aed07(0x9a)];['logDir'];[a162_0x1aed07(0xa9)];['logBaseName'];[a162_0x1aed07(0x8d)]=null;[a162_0x1aed07(0xa2)];constructor(_0x48c12e={}){const _0x23e8ac=a162_0x1aed07;this['logPath']=_0x48c12e[_0x23e8ac(0x8e)]??join(getGlobalCacheDir(),_0x23e8ac(0x99),_0x23e8ac(0x98)),this[_0x23e8ac(0x9b)]=dirname(this[_0x23e8ac(0x9a)]),this[_0x23e8ac(0xa9)]=basename(this[_0x23e8ac(0x9a)]),this[_0x23e8ac(0x8f)]=this[_0x23e8ac(0xa9)][_0x23e8ac(0xa1)](/\.log$/,''),this[_0x23e8ac(0xa2)]=_0x48c12e[_0x23e8ac(0xa2)]??!![];}async[a162_0x1aed07(0xaa)](){const _0x1d2954=a162_0x1aed07;try{await mkdir(this[_0x1d2954(0x9b)],{'recursive':!![]}),this[_0x1d2954(0xa2)]&&await this['rotateOldLogs'](),this[_0x1d2954(0x8d)]=createWriteStream(this[_0x1d2954(0x9a)],{'flags':'a'}),this[_0x1d2954(0x8d)]['on'](_0x1d2954(0xa6),_0x137f02=>{const _0x4156ee=_0x1d2954;console['error'](_0x4156ee(0xa8)+this[_0x4156ee(0xa9)]+':',_0x137f02['message']);});}catch(_0x366730){console[_0x1d2954(0xa6)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x366730);}}[a162_0x1aed07(0x8c)](_0x436a58){const _0x17e636=a162_0x1aed07;if(!this[_0x17e636(0x8d)])return;const _0x430f41=Logger[_0x17e636(0x9f)](_0x436a58);this['logStream'][_0x17e636(0xac)](_0x430f41+'\x0a');}async['close'](){return new Promise(_0x26c18a=>{const _0x4a5a14=a162_0x4671;this[_0x4a5a14(0x8d)]?this[_0x4a5a14(0x8d)][_0x4a5a14(0x9e)](()=>{this['logStream']=null,_0x26c18a();}):_0x26c18a();});}[a162_0x1aed07(0x8b)](){const _0x467117=a162_0x1aed07;return this[_0x467117(0x9a)];}async['rotateOldLogs'](){const _0x140714=a162_0x1aed07;try{const _0x3ddb26=await readdir(this['logDir']),_0x2b632f=new Date()[_0x140714(0x90)]()[_0x140714(0x97)]('T')[0x0];if(_0x3ddb26[_0x140714(0x9c)](this[_0x140714(0xa9)])){const _0x26038d=join(this[_0x140714(0x9b)],this[_0x140714(0xa9)]),_0x1614e5=await stat(_0x26038d),_0x1ef79c=new Date(_0x1614e5[_0x140714(0x95)])[_0x140714(0x90)]()['split']('T')[0x0];if(_0x1ef79c<_0x2b632f){const _0x576b18=join(this[_0x140714(0x9b)],this[_0x140714(0x8f)]+'-'+_0x1ef79c+_0x140714(0x9d));await rename(_0x26038d,_0x576b18);}}const _0x492a38=await readdir(this[_0x140714(0x9b)]),_0x28b281=this['logBaseName'][_0x140714(0xa1)](/[.*+?^${}()|[\]\\]/g,_0x140714(0x93)),_0x5f4a8f=new RegExp('^'+_0x28b281+_0x140714(0xa3)),_0x2d2b89=_0x492a38['filter'](_0x3ddf15=>_0x5f4a8f['test'](_0x3ddf15));for(const _0xe43940 of _0x2d2b89){const _0x4d1410=join(this['logDir'],_0xe43940),_0x39f66d=join(this['logDir'],_0xe43940+_0x140714(0xa5));try{await pipeline(createReadStream(_0x4d1410),createGzip(),createWriteStream(_0x39f66d)),await unlink(_0x4d1410);}catch(_0x31b83c){console['error'](_0x140714(0x89)+_0xe43940+':',_0x31b83c);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2ca566,_0x5136ae){var _0x2fdb79=a163_0x4058,_0x1e274d=_0x2ca566();while(!![]){try{var _0x2a7a84=-parseInt(_0x2fdb79(0xde))/0x1*(-parseInt(_0x2fdb79(0xd9))/0x2)+parseInt(_0x2fdb79(0xe4))/0x3+-parseInt(_0x2fdb79(0xe3))/0x4*(-parseInt(_0x2fdb79(0xe2))/0x5)+-parseInt(_0x2fdb79(0xe1))/0x6+parseInt(_0x2fdb79(0xe0))/0x7*(-parseInt(_0x2fdb79(0xdf))/0x8)+-parseInt(_0x2fdb79(0xdc))/0x9*(parseInt(_0x2fdb79(0xdb))/0xa)+parseInt(_0x2fdb79(0xdd))/0xb*(-parseInt(_0x2fdb79(0xda))/0xc);if(_0x2a7a84===_0x5136ae)break;else _0x1e274d['push'](_0x1e274d['shift']());}catch(_0x11980d){_0x1e274d['push'](_0x1e274d['shift']());}}}(a163_0x2a3e,0x769b6));function a163_0x4058(_0xa405f4,_0x1a6e05){_0xa405f4=_0xa405f4-0xd9;var _0x2a3e44=a163_0x2a3e();var _0x405801=_0x2a3e44[_0xa405f4];return _0x405801;}function a163_0x2a3e(){var _0xcdc4a3=['1EMDzvy','848mgxctn','17423TyIFFq','4543062akozfK','1477255dqjSex','12TepzmH','2759145uVdZqd','1358154JSYMRw','12ZRHjii','2180QVnCaA','32913cSuGYl','1992034wIvPWs'];a163_0x2a3e=function(){return _0xcdc4a3;};return a163_0x2a3e();}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a164_0x470b57=a164_0x1d7b;(function(_0x169033,_0x487a93){var _0x23f88a=a164_0x1d7b,_0x2f46fe=_0x169033();while(!![]){try{var _0x345a5a=parseInt(_0x23f88a(0xde))/0x1+-parseInt(_0x23f88a(0xdf))/0x2*(parseInt(_0x23f88a(0xe1))/0x3)+parseInt(_0x23f88a(0xdd))/0x4+-parseInt(_0x23f88a(0xdc))/0x5*(-parseInt(_0x23f88a(0xe3))/0x6)+parseInt(_0x23f88a(0xe2))/0x7+parseInt(_0x23f88a(0xe4))/0x8*(-parseInt(_0x23f88a(0xe0))/0x9)+-parseInt(_0x23f88a(0xda))/0xa;if(_0x345a5a===_0x487a93)break;else _0x2f46fe['push'](_0x2f46fe['shift']());}catch(_0x1955be){_0x2f46fe['push'](_0x2f46fe['shift']());}}}(a164_0x2b2e,0x7e18a));function a164_0x1d7b(_0x57cd65,_0x20fd15){_0x57cd65=_0x57cd65-0xda;var _0x2b2e23=a164_0x2b2e();var _0x1d7b16=_0x2b2e23[_0x57cd65];return _0x1d7b16;}function a164_0x2b2e(){var _0x44772f=['handle','69205modbiM','1915072TpjkMH','378257Cipgek','4BYrKua','9kJtRUC','519159FvNHFS','1656788BKojWJ','312ydsLOL','6137432xpUXni','1836660ORmIAU'];a164_0x2b2e=function(){return _0x44772f;};return a164_0x2b2e();}export class NullHandler{[a164_0x470b57(0xdb)](_0x1b8fe4){}}
|