@treasuredata/tdx 2026.3.29 → 2026.3.31
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.d.ts.map +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/api-command.js.map +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/auth-login-command.js +1 -1
- package/dist/commands/cas-command.d.ts +55 -0
- package/dist/commands/cas-command.d.ts.map +1 -0
- package/dist/commands/cas-command.js +1 -0
- package/dist/commands/cas-command.js.map +1 -0
- package/dist/commands/cas-segment-command.d.ts +18 -0
- package/dist/commands/cas-segment-command.d.ts.map +1 -0
- package/dist/commands/cas-segment-command.js +1 -0
- package/dist/commands/cas-segment-command.js.map +1 -0
- 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.d.ts.map +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/unset-command.js.map +1 -1
- package/dist/commands/upgrade-command.js +1 -1
- package/dist/commands/use-command.d.ts.map +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/use-command.js.map +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.d.ts +1 -0
- package/dist/core/global-context.d.ts.map +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/global-context.js.map +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/oauth-keychain.js +1 -1
- package/dist/core/oauth.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.d.ts +2 -1
- package/dist/core/session.d.ts.map +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/session.js.map +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.d.ts +77 -0
- package/dist/sdk/cas/cas-api-client.d.ts.map +1 -0
- package/dist/sdk/cas/cas-api-client.js +1 -0
- package/dist/sdk/cas/cas-api-client.js.map +1 -0
- package/dist/sdk/cas/cas-audience-yaml.d.ts +32 -0
- package/dist/sdk/cas/cas-audience-yaml.d.ts.map +1 -0
- package/dist/sdk/cas/cas-audience-yaml.js +1 -0
- package/dist/sdk/cas/cas-audience-yaml.js.map +1 -0
- package/dist/sdk/cas/cas-segment-yaml.d.ts +38 -0
- package/dist/sdk/cas/cas-segment-yaml.d.ts.map +1 -0
- package/dist/sdk/cas/cas-segment-yaml.js +1 -0
- package/dist/sdk/cas/cas-segment-yaml.js.map +1 -0
- package/dist/sdk/cas/index.d.ts +61 -0
- package/dist/sdk/cas/index.d.ts.map +1 -0
- package/dist/sdk/cas/index.js +1 -0
- package/dist/sdk/cas/index.js.map +1 -0
- package/dist/sdk/cas/pull-workflow.d.ts +53 -0
- package/dist/sdk/cas/pull-workflow.d.ts.map +1 -0
- package/dist/sdk/cas/pull-workflow.js +1 -0
- package/dist/sdk/cas/pull-workflow.js.map +1 -0
- package/dist/sdk/cas/push-workflow.d.ts +50 -0
- package/dist/sdk/cas/push-workflow.d.ts.map +1 -0
- package/dist/sdk/cas/push-workflow.js +1 -0
- package/dist/sdk/cas/push-workflow.js.map +1 -0
- package/dist/sdk/cas/types.d.ts +115 -0
- package/dist/sdk/cas/types.d.ts.map +1 -0
- package/dist/sdk/cas/types.js +1 -0
- package/dist/sdk/cas/types.js.map +1 -0
- 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.d.ts +4 -0
- package/dist/sdk/client/endpoints.d.ts.map +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/endpoints.js.map +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 +6 -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/cas.d.ts +242 -0
- package/dist/sdk/types/cas.d.ts.map +1 -0
- package/dist/sdk/types/cas.js +1 -0
- package/dist/sdk/types/cas.js.map +1 -0
- package/dist/sdk/types/index.d.ts +3 -1
- 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/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/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
|
|
1
|
+
function a193_0x4a47(){const _0x4f425f=['last_pulled_revision','last_pushed_revision','Invalid\x20tdx.json:\x20missing\x20or\x20invalid\x20\x27workflow_project\x27\x20field','1252VXzNYL','last_pulled_at','596358GaDbYQ','91drRWeU','27wOBQPN','903625HsDxpx','string','object','8lomRoF','11JQpFuL','resolve','No\x20workflow\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20wf\x20pull\x20<project>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','2TzyrGA','workflow_project','last_pushed_at','1402121sImOmn','515180funcUi','12ucqkHu','tdx.json','stringify','root','utf-8','dirname','13693TqGtYb','workflow_project_id','cwd','807960JXrIuP','Invalid\x20tdx.json:\x20expected\x20object','join','1731JXeFep','workflows','parse','toISOString'];a193_0x4a47=function(){return _0x4f425f;};return a193_0x4a47();}function a193_0x1c3f(_0x3ffd94,_0x4e655a){_0x3ffd94=_0x3ffd94-0x107;const _0x4a47bd=a193_0x4a47();let _0x1c3fe8=_0x4a47bd[_0x3ffd94];return _0x1c3fe8;}const a193_0x4c7597=a193_0x1c3f;(function(_0x4b8761,_0x46e7e3){const _0x50b0af=a193_0x1c3f,_0x38ef7a=_0x4b8761();while(!![]){try{const _0x53ed64=-parseInt(_0x50b0af(0x10e))/0x1*(-parseInt(_0x50b0af(0x127))/0x2)+parseInt(_0x50b0af(0x114))/0x3*(-parseInt(_0x50b0af(0x11b))/0x4)+-parseInt(_0x50b0af(0x120))/0x5*(-parseInt(_0x50b0af(0x108))/0x6)+-parseInt(_0x50b0af(0x12a))/0x7*(-parseInt(_0x50b0af(0x123))/0x8)+-parseInt(_0x50b0af(0x11f))/0x9*(-parseInt(_0x50b0af(0x107))/0xa)+-parseInt(_0x50b0af(0x124))/0xb*(-parseInt(_0x50b0af(0x111))/0xc)+-parseInt(_0x50b0af(0x11e))/0xd*(parseInt(_0x50b0af(0x11d))/0xe);if(_0x53ed64===_0x46e7e3)break;else _0x38ef7a['push'](_0x38ef7a['shift']());}catch(_0x510009){_0x38ef7a['push'](_0x38ef7a['shift']());}}}(a193_0x4a47,0x4dc56));import{existsSync,readFileSync,writeFileSync}from'fs';import a193_0x495c02 from'path';const TDX_CONFIG_FILE=a193_0x4c7597(0x109),WORKFLOWS_DIR=a193_0x4c7597(0x115);export function findWorkflowTdxConfigPath(_0x17f0fb=process[a193_0x4c7597(0x110)]()){const _0x378424=a193_0x4c7597;let _0x59105d=a193_0x495c02[_0x378424(0x125)](_0x17f0fb);const _0x2fc24b=a193_0x495c02[_0x378424(0x116)](_0x59105d)[_0x378424(0x10b)];while(_0x59105d!==_0x2fc24b){const _0x219052=a193_0x495c02['join'](_0x59105d,TDX_CONFIG_FILE);if(existsSync(_0x219052))try{const _0x56bfad=readFileSync(_0x219052,'utf-8'),_0x2b545c=JSON[_0x378424(0x116)](_0x56bfad);if(_0x2b545c&&typeof _0x2b545c==='object'&&_0x378424(0x128)in _0x2b545c)return _0x219052;}catch{}_0x59105d=a193_0x495c02[_0x378424(0x10d)](_0x59105d);}return null;}export function loadWorkflowTdxConfig(_0x2f4f03){const _0x4e0e56=a193_0x4c7597,_0x1eaf71=readFileSync(_0x2f4f03,'utf-8');let _0xe084e6;try{_0xe084e6=JSON[_0x4e0e56(0x116)](_0x1eaf71);}catch{throw new Error('Invalid\x20JSON\x20in\x20'+_0x2f4f03);}if(!_0xe084e6||typeof _0xe084e6!==_0x4e0e56(0x122))throw new Error(_0x4e0e56(0x112));const _0x454030=_0xe084e6;if(!_0x454030[_0x4e0e56(0x128)]||typeof _0x454030[_0x4e0e56(0x128)]!==_0x4e0e56(0x121))throw new Error(_0x4e0e56(0x11a));return{'workflow_project':_0x454030['workflow_project'],'workflow_project_id':typeof _0x454030[_0x4e0e56(0x10f)]===_0x4e0e56(0x121)?_0x454030[_0x4e0e56(0x10f)]:undefined,'last_pulled_revision':typeof _0x454030[_0x4e0e56(0x118)]===_0x4e0e56(0x121)?_0x454030[_0x4e0e56(0x118)]:undefined,'last_pulled_at':typeof _0x454030[_0x4e0e56(0x11c)]===_0x4e0e56(0x121)?_0x454030[_0x4e0e56(0x11c)]:undefined,'last_pushed_revision':typeof _0x454030['last_pushed_revision']===_0x4e0e56(0x121)?_0x454030[_0x4e0e56(0x119)]:undefined,'last_pushed_at':typeof _0x454030[_0x4e0e56(0x129)]==='string'?_0x454030['last_pushed_at']:undefined};}export function findWorkflowTdxConfig(_0x4e8f9f=process[a193_0x4c7597(0x110)]()){const _0x35b6c0=a193_0x4c7597,_0x152e38=findWorkflowTdxConfigPath(_0x4e8f9f);if(!_0x152e38)throw new Error(_0x35b6c0(0x126));const _0x3f64d9=loadWorkflowTdxConfig(_0x152e38),_0x4fffbc=a193_0x495c02['dirname'](_0x152e38);return{'config':_0x3f64d9,'configPath':_0x152e38,'configDir':_0x4fffbc};}export function tryFindWorkflowTdxConfig(_0x6751dc){try{return findWorkflowTdxConfig(_0x6751dc);}catch{return null;}}export function getWorkflowProjectDir(_0x3132a0,_0x3e9acb=process[a193_0x4c7597(0x110)]()){const _0x2b24ee=a193_0x4c7597;return a193_0x495c02[_0x2b24ee(0x113)](_0x3e9acb,WORKFLOWS_DIR,_0x3132a0);}export function getWorkflowTdxConfigPath(_0x10015d,_0xb3f7f1=process['cwd']()){const _0x4d7db7=a193_0x4c7597;return a193_0x495c02[_0x4d7db7(0x113)](getWorkflowProjectDir(_0x10015d,_0xb3f7f1),TDX_CONFIG_FILE);}export function createWorkflowTdxConfigContent(_0x255525,_0x3579bd,_0x5861f5){const _0x1424ea=a193_0x4c7597,_0x467977={'workflow_project':_0x255525,..._0x3579bd&&{'workflow_project_id':_0x3579bd},..._0x5861f5&&{'last_pulled_revision':_0x5861f5},'last_pulled_at':new Date()[_0x1424ea(0x117)]()};return JSON['stringify'](_0x467977,null,0x2)+'\x0a';}export function saveWorkflowTdxConfig(_0x1ffd13,_0x2eb74f){const _0x31a2f6=a193_0x4c7597,_0x5490eb=JSON[_0x31a2f6(0x10a)](_0x2eb74f,null,0x2)+'\x0a';writeFileSync(_0x1ffd13,_0x5490eb,_0x31a2f6(0x10c));}export function updateWorkflowTdxConfig(_0x5c258e,_0x2be6c4){const _0x26d600=loadWorkflowTdxConfig(_0x5c258e),_0x676bf6={..._0x26d600,..._0x2be6c4};saveWorkflowTdxConfig(_0x5c258e,_0x676bf6);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a194_0x505fd5=a194_0x4b29;(function(_0x3f3ba5,_0x9f5eee){const _0x22cdb5=a194_0x4b29,_0x5814d7=_0x3f3ba5();while(!![]){try{const _0x54c5cd=-parseInt(_0x22cdb5(0x121))/0x1*(-parseInt(_0x22cdb5(0x132))/0x2)+parseInt(_0x22cdb5(0x124))/0x3+-parseInt(_0x22cdb5(0x11f))/0x4*(-parseInt(_0x22cdb5(0x130))/0x5)+-parseInt(_0x22cdb5(0x129))/0x6*(parseInt(_0x22cdb5(0x138))/0x7)+parseInt(_0x22cdb5(0x12e))/0x8*(-parseInt(_0x22cdb5(0x12f))/0x9)+parseInt(_0x22cdb5(0x131))/0xa*(-parseInt(_0x22cdb5(0x11e))/0xb)+-parseInt(_0x22cdb5(0x125))/0xc*(-parseInt(_0x22cdb5(0x120))/0xd);if(_0x54c5cd===_0x9f5eee)break;else _0x5814d7['push'](_0x5814d7['shift']());}catch(_0x25e61d){_0x5814d7['push'](_0x5814d7['shift']());}}}(a194_0x2fa5,0x5aa21));import{promises as a194_0x6bae9b}from'fs';import a194_0x4b2b99 from'path';import a194_0x373a15 from'ignore';export const WORKFLOW_FILE_EXTENSION=a194_0x505fd5(0x133);function a194_0x4b29(_0x36812c,_0x3156ec){_0x36812c=_0x36812c-0x11c;const _0x2fa549=a194_0x2fa5();let _0x4b299e=_0x2fa549[_0x36812c];return _0x4b299e;}export function shouldIncludeInArchive(_0x28d4ca){const _0x15129b=a194_0x505fd5;if(_0x28d4ca===_0x15129b(0x136))return!![];if(_0x28d4ca['startsWith']('.'))return![];if(_0x28d4ca[_0x15129b(0x126)]('~'))return![];if(_0x28d4ca===_0x15129b(0x12b)||_0x28d4ca===_0x15129b(0x11d))return![];return!![];}export function parseDigdagignore(_0x463ee9){const _0x2931cd=a194_0x505fd5;return _0x463ee9[_0x2931cd(0x12c)]('\x0a')['map'](_0x14c237=>_0x14c237[_0x2931cd(0x127)]())['filter'](_0x4e2699=>_0x4e2699[_0x2931cd(0x128)]>0x0&&!_0x4e2699[_0x2931cd(0x11c)]('#'));}export async function loadDigdagignore(_0x2555ad){const _0x365775=a194_0x505fd5,_0x1fbc44=a194_0x4b2b99[_0x365775(0x139)](_0x2555ad,'.digdagignore');try{const _0x4446f8=await a194_0x6bae9b[_0x365775(0x12a)](_0x1fbc44,_0x365775(0x137));return parseDigdagignore(_0x4446f8);}catch(_0x59edf2){if(_0x59edf2[_0x365775(0x123)]===_0x365775(0x135))return null;throw _0x59edf2;}}function a194_0x2fa5(){const _0x12652a=['1092819UPUhEk','3459444ISdBrL','endsWith','trim','length','5448FlmoJv','readFile','Thumbs.db','split','slice','111248ElPRUS','9iolTce','5wTeGyY','4390070VjiTWO','2hFZllx','.dig','map','ENOENT','.digdag','utf-8','3521vkhmgP','join','startsWith','.DS_Store','11vSvVHw','2347676WsrZXe','13xJVeUu','41391Mbqzpt','add','code'];a194_0x2fa5=function(){return _0x12652a;};return a194_0x2fa5();}export function createIgnoreInstance(_0x8b8326){const _0x2d4c5a=a194_0x505fd5,_0x25eb4c=a194_0x373a15();return _0x8b8326&&_0x8b8326['length']>0x0&&_0x25eb4c[_0x2d4c5a(0x122)](_0x8b8326),_0x25eb4c;}export function addScopedPatterns(_0x1378b9,_0x498866,_0x3dc0fb){const _0x45c4d8=a194_0x505fd5,_0x58acb4=_0x498866[_0x45c4d8(0x134)](_0x4a4131=>{const _0x59ecfc=_0x45c4d8;if(_0x4a4131[_0x59ecfc(0x11c)]('!')){const _0x64109c=_0x4a4131[_0x59ecfc(0x12d)](0x1);if(_0x64109c['startsWith']('/'))return'!'+_0x3dc0fb+_0x64109c;return'!'+_0x3dc0fb+'/'+_0x64109c;}if(_0x4a4131[_0x59ecfc(0x11c)]('/'))return''+_0x3dc0fb+_0x4a4131;return _0x3dc0fb+'/'+_0x4a4131;});return _0x1378b9[_0x45c4d8(0x122)](_0x58acb4),_0x1378b9;}export function shouldIgnoreWithInstance(_0x174e28,_0x4e77df,_0xf22b4){const _0x590833=_0x4e77df['replace'](/\\/g,'/'),_0x4b85d3=_0xf22b4?_0x590833+'/':_0x590833;return _0x174e28['ignores'](_0x4b85d3);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a195_0x41c3f9=a195_0x424b;function a195_0x4c3d(){const _0x2bf186=['http','1051298rWryBR','test-api-key-id/test-api-key-secret','createFetch','2VFCTUJ','teardown','warn','11777778DLSTeV','args','run','originalFetch','map','fetch','options','8WqesOu','1218340AWjpQs','ERROR','fail','site','push','error','log','3386568IcFZaT','70LlgnHB','5zLybtA','reset','join','3730139JYIVKk','3666243wLqikP','us01','3363371UrvswK'];a195_0x4c3d=function(){return _0x2bf186;};return a195_0x4c3d();}(function(_0x5f0491,_0x12c38f){const _0x3e7253=a195_0x424b,_0x521a7f=_0x5f0491();while(!![]){try{const _0x4dfd5e=parseInt(_0x3e7253(0x1f6))/0x1+-parseInt(_0x3e7253(0x1f9))/0x2*(parseInt(_0x3e7253(0x1f2))/0x3)+parseInt(_0x3e7253(0x204))/0x4+parseInt(_0x3e7253(0x20d))/0x5*(-parseInt(_0x3e7253(0x20b))/0x6)+parseInt(_0x3e7253(0x1f1))/0x7+-parseInt(_0x3e7253(0x203))/0x8*(parseInt(_0x3e7253(0x1fc))/0x9)+-parseInt(_0x3e7253(0x20c))/0xa*(-parseInt(_0x3e7253(0x1f4))/0xb);if(_0x4dfd5e===_0x12c38f)break;else _0x521a7f['push'](_0x521a7f['shift']());}catch(_0x26252f){_0x521a7f['push'](_0x521a7f['shift']());}}}(a195_0x4c3d,0xe4030));import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';function a195_0x424b(_0x10e5f8,_0x96e95c){_0x10e5f8=_0x10e5f8-0x1ef;const _0x4c3d59=a195_0x4c3d();let _0x424bd3=_0x4c3d59[_0x10e5f8];return _0x424bd3;}export class CommandRunner{[a195_0x41c3f9(0x1f5)];[a195_0x41c3f9(0x1ff)];constructor(){const _0x579a0=a195_0x41c3f9;this['http']=createHTTPMock(),this[_0x579a0(0x1ff)]=global[_0x579a0(0x201)];}['setup'](){const _0x150a1e=a195_0x41c3f9;this[_0x150a1e(0x1ff)]=global[_0x150a1e(0x201)],global[_0x150a1e(0x201)]=this[_0x150a1e(0x1f5)][_0x150a1e(0x1f8)]();}[a195_0x41c3f9(0x1fa)](_0x44557d){const _0xb1adc7=a195_0x41c3f9;try{_0x44557d?.[_0xb1adc7(0x206)]&&this['http']['verify'](_0x44557d);}finally{global[_0xb1adc7(0x201)]=this[_0xb1adc7(0x1ff)],this[_0xb1adc7(0x1f5)][_0xb1adc7(0x1ef)]();}}async[a195_0x41c3f9(0x1fe)](_0x43d700,_0x2ae76f={}){const _0x3d3487=a195_0x41c3f9,_0x5d79f3=[],_0x3c1933=[],_0x33302e=console[_0x3d3487(0x20a)],_0x4a9939=console[_0x3d3487(0x209)],_0x30a7fd=console[_0x3d3487(0x1fb)];console[_0x3d3487(0x20a)]=(..._0x721556)=>{const _0xd0720f=_0x3d3487;_0x5d79f3[_0xd0720f(0x208)](_0x721556[_0xd0720f(0x200)](String)[_0xd0720f(0x1f0)]('\x20'));},console[_0x3d3487(0x209)]=(..._0x3db78d)=>{const _0x3042b1=_0x3d3487;_0x3c1933['push'](_0x3db78d[_0x3042b1(0x200)](String)['join']('\x20'));},console[_0x3d3487(0x1fb)]=(..._0x869b29)=>{const _0xb11f6c=_0x3d3487;_0x3c1933['push'](_0x869b29['map'](String)[_0xb11f6c(0x1f0)]('\x20'));};try{const _0x4004c4=new TDX({'site':_0x2ae76f[_0x3d3487(0x202)]?.[_0x3d3487(0x207)]??_0x3d3487(0x1f3),'apiKey':_0x3d3487(0x1f7),'logLevel':LogLevel[_0x3d3487(0x205)]}),_0x55a56d={'options':createTestGlobalOptions(_0x2ae76f[_0x3d3487(0x202)]),'args':_0x2ae76f[_0x3d3487(0x1fd)]??[],'tdx':_0x4004c4},_0x24c5e6=new _0x43d700(),_0x179be7=await _0x24c5e6[_0x3d3487(0x1fe)](_0x55a56d);return{'exitCode':_0x179be7,'stdout':_0x5d79f3,'stderr':_0x3c1933};}finally{console[_0x3d3487(0x20a)]=_0x33302e,console[_0x3d3487(0x209)]=_0x4a9939,console[_0x3d3487(0x1fb)]=_0x30a7fd;}}async['runSequence'](_0x2da01a){const _0x123c7e=a195_0x41c3f9,_0x230573=[];for(const {command:_0x362ed4,options:_0x453cbd}of _0x2da01a){const _0x328295=await this[_0x123c7e(0x1fe)](_0x362ed4,_0x453cbd);_0x230573['push'](_0x328295);if(_0x328295['exitCode']!==0x0)break;}return _0x230573;}}export function createCommandRunner(){return new CommandRunner();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5c746d,_0x52bf31){const _0x203fcb=a196_0x34f5,_0x381ec7=_0x5c746d();while(!![]){try{const _0x384805=parseInt(_0x203fcb(0x82))/0x1+parseInt(_0x203fcb(0x7b))/0x2*(-parseInt(_0x203fcb(0x7e))/0x3)+-parseInt(_0x203fcb(0x6a))/0x4+parseInt(_0x203fcb(0x70))/0x5+-parseInt(_0x203fcb(0x78))/0x6+parseInt(_0x203fcb(0x74))/0x7+parseInt(_0x203fcb(0x7d))/0x8*(-parseInt(_0x203fcb(0x6b))/0x9);if(_0x384805===_0x52bf31)break;else _0x381ec7['push'](_0x381ec7['shift']());}catch(_0x12dd9e){_0x381ec7['push'](_0x381ec7['shift']());}}}(a196_0x4165,0xc7559));import{vi}from'vitest';import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';import{getGlobalCacheDir}from'../utils/global-cache.js';function a196_0x34f5(_0x149407,_0x315ddc){_0x149407=_0x149407-0x67;const _0x416558=a196_0x4165();let _0x34f5f9=_0x416558[_0x149407];return _0x34f5f9;}export function createTestSDKContext(_0x557e9b){const _0x491f2f=a196_0x34f5;return{'site':_0x491f2f(0x7f),'apiKey':_0x491f2f(0x79),'logLevel':LogLevel[_0x491f2f(0x72)],..._0x557e9b};}export function createTestGlobalOptions(_0x4f5e4f){const _0x16a6fe=a196_0x34f5;return{'site':_0x16a6fe(0x7f),'format':_0x16a6fe(0x7a),'noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x16a6fe(0x68),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x16a6fe(0x72)],..._0x4f5e4f};}function a196_0x4165(){const _0x5b5a23=['query','test-api-key','211107IJKhkj','segment','error','30000','init','2938388WtVUBR','18oQcsrW','log','logs','push','join','2140185eqkwaZ','map','ERROR','DEBUG','10631607MkIhkh','user','journey','reset','632310LReFra','test-api-key-id/test-api-key-secret','table','8EhvClx','warn','844328HcCTti','217806GpVHvT','us01'];a196_0x4165=function(){return _0x5b5a23;};return a196_0x4165();}export async function initTestLogger(){const _0x39f038=a196_0x34f5;Logger['reset']();const _0x3b486e=join(getGlobalCacheDir(),_0x39f038(0x6d),'tdx-test.log');await Logger[_0x39f038(0x69)]({'defaultLevel':LogLevel[_0x39f038(0x73)],'handlers':[new FileHandler({'filePath':_0x3b486e,'rotate':![]})]});}export function resetTestLogger(){const _0xe146d2=a196_0x34f5;Logger[_0xe146d2(0x77)]();}export function createMockTDX(_0x46cf99){const _0x55df00=a196_0x34f5;return{'context':{'site':'us01','apiKey':_0x55df00(0x81),'logLevel':LogLevel[_0x55df00(0x72)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x46cf99?.[_0x55df00(0x80)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x46cf99?.[_0x55df00(0x83)]},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x46cf99?.[_0x55df00(0x76)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x46cf99?.['workflow']},'user':{'show':vi['fn'](),..._0x46cf99?.[_0x55df00(0x75)]},'api':{'request':vi['fn'](),..._0x46cf99?.['api']},..._0x46cf99};}export function createTestCommandContext(_0x2e6396){const _0x4b1cbe=createTestGlobalOptions(_0x2e6396?.['options']),_0x3c6a00=_0x2e6396?.['tdx']??createMockTDX();return{'options':_0x4b1cbe,'args':_0x2e6396?.['args']??[],'tdx':_0x3c6a00};}export function captureConsole(){const _0x151ac9=a196_0x34f5,_0x2fc35c=[],_0x384fcf=[],_0x9c9d9=console['log'],_0x2a5af9=console[_0x151ac9(0x67)],_0x27cbd7=console[_0x151ac9(0x7c)];return console[_0x151ac9(0x6c)]=(..._0xbe03a0)=>{_0x2fc35c['push'](_0xbe03a0['map'](String)['join']('\x20'));},console['error']=(..._0x3b4618)=>{const _0x904369=_0x151ac9;_0x384fcf[_0x904369(0x6e)](_0x3b4618[_0x904369(0x71)](String)[_0x904369(0x6f)]('\x20'));},console['warn']=(..._0x3fdf49)=>{const _0x4356ec=_0x151ac9;_0x384fcf['push'](_0x3fdf49[_0x4356ec(0x71)](String)[_0x4356ec(0x6f)]('\x20'));},{'stdout':_0x2fc35c,'stderr':_0x384fcf,'restore':()=>{const _0x413d39=_0x151ac9;console[_0x413d39(0x6c)]=_0x9c9d9,console['error']=_0x2a5af9,console[_0x413d39(0x7c)]=_0x27cbd7;}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a187_0x69793a=a187_0x4f70;(function(_0x324c8d,_0x2c936d){const _0x6642cc=a187_0x4f70,_0xfb54f9=_0x324c8d();while(!![]){try{const _0x27fe83=parseInt(_0x6642cc(0xb6))/0x1+parseInt(_0x6642cc(0xc2))/0x2+-parseInt(_0x6642cc(0xf1))/0x3*(-parseInt(_0x6642cc(0x8e))/0x4)+parseInt(_0x6642cc(0xc3))/0x5+-parseInt(_0x6642cc(0xe9))/0x6*(parseInt(_0x6642cc(0xbe))/0x7)+parseInt(_0x6642cc(0xb1))/0x8+-parseInt(_0x6642cc(0xa4))/0x9;if(_0x27fe83===_0x2c936d)break;else _0xfb54f9['push'](_0xfb54f9['shift']());}catch(_0x93afdf){_0xfb54f9['push'](_0xfb54f9['shift']());}}}(a187_0x3408,0x4bd50));export const fixtures={'database':{'basic':{'name':a187_0x69793a(0xad),'count':0x5,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-01T00:00:00Z','permission':a187_0x69793a(0xd2)},'withTables':{'name':a187_0x69793a(0xab),'count':0x64,'created_at':a187_0x69793a(0xb8),'updated_at':a187_0x69793a(0xa8),'permission':a187_0x69793a(0xd6)}},'table':{'basic':{'id':0x3039,'name':a187_0x69793a(0xd9),'type':a187_0x69793a(0x91),'schema':JSON[a187_0x69793a(0xaf)]([['id',a187_0x69793a(0xc4)],[a187_0x69793a(0x9c),a187_0x69793a(0x8f)],[a187_0x69793a(0xa6),a187_0x69793a(0xc4)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a187_0x69793a(0x93),'updated_at':a187_0x69793a(0x93)},'events':{'id':0x303a,'name':'events','type':a187_0x69793a(0x91),'schema':JSON[a187_0x69793a(0xaf)]([[a187_0x69793a(0xb2),a187_0x69793a(0xc4)],[a187_0x69793a(0x9c),'long'],[a187_0x69793a(0xf9),a187_0x69793a(0xc4)],[a187_0x69793a(0x9e),a187_0x69793a(0xc4)],['properties','map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a187_0x69793a(0x93),'updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':a187_0x69793a(0xb7),'name':a187_0x69793a(0xe8),'description':a187_0x69793a(0xf7),'status':a187_0x69793a(0x8d),'master_table':{'database':'cdp_db','table':'unified_customers'},'attributes':[{'name':a187_0x69793a(0xe6),'type':'string','key':!![]},{'name':a187_0x69793a(0xbc),'type':a187_0x69793a(0xc4)},{'name':a187_0x69793a(0xe1),'type':'timestamp'}],'created_at':a187_0x69793a(0x93),'updated_at':a187_0x69793a(0xfa)},'withBehaviors':{'id':'ps-789012','name':a187_0x69793a(0xd0),'description':a187_0x69793a(0xf6),'status':a187_0x69793a(0x8d),'master_table':{'database':a187_0x69793a(0xd7),'table':a187_0x69793a(0xdb)},'behaviors':[{'name':a187_0x69793a(0xc5),'table':{'database':'events_db','table':a187_0x69793a(0xc5)},'join_key':a187_0x69793a(0xe6)},{'name':a187_0x69793a(0xec),'table':{'database':a187_0x69793a(0xf3),'table':a187_0x69793a(0xa9)},'join_key':a187_0x69793a(0xe6)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a187_0x69793a(0xfa)}},'segment':{'basic':{'id':a187_0x69793a(0xb9),'name':a187_0x69793a(0xed),'description':a187_0x69793a(0x98),'parent_segment_id':a187_0x69793a(0xb7),'status':a187_0x69793a(0x8d),'rules':[{'type':a187_0x69793a(0x97),'field':a187_0x69793a(0x94),'operator':a187_0x69793a(0x99),'value':'30d'}],'count':0x1388,'created_at':a187_0x69793a(0x93),'updated_at':a187_0x69793a(0xfa)},'withMultipleRules':{'id':a187_0x69793a(0xf4),'name':a187_0x69793a(0xe7),'description':a187_0x69793a(0x9d),'parent_segment_id':a187_0x69793a(0xb7),'status':a187_0x69793a(0x8d),'rules':[{'type':a187_0x69793a(0x97),'field':'last_login','operator':a187_0x69793a(0x99),'value':a187_0x69793a(0xb0)},{'type':'attribute','field':a187_0x69793a(0xd1),'operator':'Greater','value':0x3e8}],'count':0x5dc,'created_at':'2024-01-01T00:00:00Z','updated_at':a187_0x69793a(0xfa)}},'journey':{'basic':{'id':a187_0x69793a(0xa1),'name':a187_0x69793a(0xfd),'description':a187_0x69793a(0xc6),'status':'draft','version':0x1,'steps':[{'id':a187_0x69793a(0xcc),'type':'wait','duration':'1d'},{'id':a187_0x69793a(0xc1),'type':a187_0x69793a(0xf5),'activation_id':a187_0x69793a(0xfb)}],'created_at':a187_0x69793a(0x93),'updated_at':a187_0x69793a(0xfa)},'withDecision':{'id':a187_0x69793a(0xd4),'name':a187_0x69793a(0xaa),'description':a187_0x69793a(0xa7),'status':'active','version':0x2,'steps':[{'id':a187_0x69793a(0xcc),'type':a187_0x69793a(0x96),'segment_id':a187_0x69793a(0xb9),'yes_path':a187_0x69793a(0xc1),'no_path':a187_0x69793a(0xd8)},{'id':a187_0x69793a(0xc1),'type':a187_0x69793a(0xf5),'activation_id':a187_0x69793a(0xcb)},{'id':a187_0x69793a(0xd8),'type':'end'}],'created_at':a187_0x69793a(0x93),'updated_at':a187_0x69793a(0xfa)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a187_0x69793a(0xc8)},{'name':'name','type':'varchar'},{'name':a187_0x69793a(0xea),'type':a187_0x69793a(0xef)}],'data':[[a187_0x69793a(0xa0),a187_0x69793a(0xc0),0x64],[a187_0x69793a(0x9b),'Bob',0xc8],['user-3','Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':a187_0x69793a(0xc8)},{'name':a187_0x69793a(0xa6),'type':a187_0x69793a(0xc8)}],'data':[]},'singleRow':{'schema':[{'name':a187_0x69793a(0xcf),'type':'bigint'}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':'test@example.com','created_at':a187_0x69793a(0x93),'updated_at':'2024-01-15T00:00:00Z','administrator':![]},'admin':{'id':0x1,'name':'Admin\x20User','email':a187_0x69793a(0xd5),'created_at':a187_0x69793a(0xee),'updated_at':a187_0x69793a(0xfa),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a187_0x69793a(0xa5),'database':a187_0x69793a(0xad),'status':a187_0x69793a(0xca),'query':a187_0x69793a(0xae),'start_at':a187_0x69793a(0xd3),'end_at':a187_0x69793a(0x95),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a187_0x69793a(0xa5),'database':'test_db','status':a187_0x69793a(0xf8),'query':a187_0x69793a(0xe2),'start_at':a187_0x69793a(0xa2),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':a187_0x69793a(0xad),'status':a187_0x69793a(0xc9),'query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a187_0x69793a(0xce),'end_at':a187_0x69793a(0xbb),'duration':0x1,'result_size':null,'error':a187_0x69793a(0xfc)}},'workflow':{'basic':{'id':'wf-12345','name':a187_0x69793a(0xf2),'project':a187_0x69793a(0xc7),'revision':a187_0x69793a(0xb4),'timezone':a187_0x69793a(0xdf),'schedule':{'cron':a187_0x69793a(0xac)}},'withSessions':{'id':'wf-67890','name':'hourly_sync','project':a187_0x69793a(0x9a),'revision':a187_0x69793a(0xbd),'timezone':a187_0x69793a(0xba),'schedule':{'cron':a187_0x69793a(0xa3)},'last_session':{'id':a187_0x69793a(0xde),'status':a187_0x69793a(0xca),'started_at':a187_0x69793a(0xda),'finished_at':a187_0x69793a(0xb3)}}},'apiError':{'unauthorized':{'errors':{'error':a187_0x69793a(0xdc),'message':a187_0x69793a(0xdc),'severity':a187_0x69793a(0xc9),'status_code':0x191}},'notFound':{'errors':{'error':'Resource\x20not\x20found','message':a187_0x69793a(0xe5),'severity':a187_0x69793a(0xc9),'status_code':0x194}},'rateLimited':{'detail':a187_0x69793a(0xe0)},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':a187_0x69793a(0xe3),'status':0x193,'detail':a187_0x69793a(0xf0),'instance':a187_0x69793a(0x90)}}};export function createDatabase(_0x592af1){const _0x3fffc2=a187_0x69793a;return{...fixtures['database'][_0x3fffc2(0xbf)],..._0x592af1};}export function createTable(_0x3e0fdd){const _0x12f70d=a187_0x69793a;return{...fixtures[_0x12f70d(0xdd)][_0x12f70d(0xbf)],..._0x3e0fdd};}export function createParentSegment(_0x302a21){const _0x5ac965=a187_0x69793a;return{...fixtures[_0x5ac965(0x9f)][_0x5ac965(0xbf)],..._0x302a21};}export function createSegment(_0x1316d8){const _0x47336d=a187_0x69793a;return{...fixtures[_0x47336d(0xe4)][_0x47336d(0xbf)],..._0x1316d8};}function a187_0x3408(){const _0x43024e=['long','/v3/database/list','log','job','2024-01-01T00:00:00Z','last_login','2024-01-15T10:00:05Z','decision_point','attribute','Users\x20active\x20in\x20the\x20last\x2030\x20days','TimeWithinPast','data_sync','user-2','time','Active\x20users\x20with\x20high\x20lifetime\x20value','event_type','parentSegment','user-1','j-abc123','2024-01-15T10:05:00Z','0\x20*\x20*\x20*\x20*','4771656ZSyyck','presto','name','Journey\x20with\x20decision\x20point','2024-01-15T08:00:00Z','pageviews','Purchase\x20Reminder','production_db','0\x200\x20*\x20*\x20*','test_db','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','stringify','30d','2281264ybOAzv','event_id','2024-01-15T09:05:00Z','abc123','queryResult','181981LUrvWk','ps-123456','2023-06-15T10:30:00Z','cs-456789','America/Los_Angeles','2024-01-15T10:10:01Z','email','def456','1043rVFJAY','basic','Alice','step-2','669196Gsvbhc','1399260Hsglyk','string','purchases','Onboarding\x20journey\x20for\x20new\x20users','data_pipeline','varchar','error','success','act-email','step-1','journey','2024-01-15T10:10:00Z','total','Customers\x20with\x20Behaviors','lifetime_value','administrator','2024-01-15T10:00:00Z','j-def456','admin@example.com','full_access','cdp_db','step-3','users','2024-01-15T09:00:00Z','customers','Invalid\x20API\x20key','table','sess-111','UTC','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','created_at','SELECT\x20COUNT(*)\x20FROM\x20events','Forbidden','segment','The\x20requested\x20resource\x20does\x20not\x20exist','customer_id','High\x20Value\x20Active\x20Users','Test\x20Parent\x20Segment','17094VHdyXX','count','user','page_views','Active\x20Users','2023-01-01T00:00:00Z','bigint','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','275556YEXsJG','daily_etl','events_db','cs-111222','activation','Parent\x20segment\x20with\x20behavioral\x20data','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','running','user_id','2024-01-15T00:00:00Z','act-123','Table\x20does\x20not\x20exist:\x20nonexistent_table','Welcome\x20Journey','active','8EWdgsL'];a187_0x3408=function(){return _0x43024e;};return a187_0x3408();}export function createJourney(_0x3c88b0){const _0x4d55b7=a187_0x69793a;return{...fixtures[_0x4d55b7(0xcd)]['basic'],..._0x3c88b0};}function a187_0x4f70(_0x5988ba,_0x1aa0bf){_0x5988ba=_0x5988ba-0x8d;const _0x3408cf=a187_0x3408();let _0x4f70fd=_0x3408cf[_0x5988ba];return _0x4f70fd;}export function createQueryResult(_0x5aab52){const _0x85e706=a187_0x69793a;return{...fixtures[_0x85e706(0xb5)][_0x85e706(0xbf)],..._0x5aab52};}export function createUser(_0x1ff2f3){const _0x376fda=a187_0x69793a;return{...fixtures[_0x376fda(0xeb)][_0x376fda(0xbf)],..._0x1ff2f3};}export function createJob(_0xfd17e2){const _0x1a826b=a187_0x69793a;return{...fixtures[_0x1a826b(0x92)]['completed'],..._0xfd17e2};}export function createWorkflow(_0x3cdd59){return{...fixtures['workflow']['basic'],..._0x3cdd59};}
|
|
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 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a198_0x2f5059=a198_0xeab7;(function(_0xde7995,_0x154f9e){const _0x65a830=a198_0xeab7,_0xee7209=_0xde7995();while(!![]){try{const _0x10e9d1=-parseInt(_0x65a830(0x202))/0x1+parseInt(_0x65a830(0x1e6))/0x2+-parseInt(_0x65a830(0x1e1))/0x3*(-parseInt(_0x65a830(0x20c))/0x4)+-parseInt(_0x65a830(0x1fd))/0x5+parseInt(_0x65a830(0x1d0))/0x6*(parseInt(_0x65a830(0x1f9))/0x7)+-parseInt(_0x65a830(0x1f3))/0x8+parseInt(_0x65a830(0x1ea))/0x9*(-parseInt(_0x65a830(0x1d4))/0xa);if(_0x10e9d1===_0x154f9e)break;else _0xee7209['push'](_0xee7209['shift']());}catch(_0x53f591){_0xee7209['push'](_0xee7209['shift']());}}}(a198_0x3367,0x1ac3e));import{vi}from'vitest';function a198_0x3367(){const _0x2b21b5=['6104xrCgyz','responder','string','every','136125KXAnva','Internal\x20Server\x20Error','getLastRequest','matcher','filter','36112hvciYL','body','networkError','stringify','get','isArray','fail','searchParams','parseRequest','register','16TNeLJQ','length','pathname','No\x20stub\x20matched\x20request:\x20','reset','jsonResponseWithHeaders','Unmatched\x20stub','mockImplementation','REST','test','getRequests','slice','includes','toLowerCase','text/plain','simple','Too\x20Many\x20Requests','1050OIXNtn','join','matchCount','entries','117640jmLQdF','parse','stubs','map','fetchMock','td-api','error','wasCalled','Unknown','push','unnamed\x20stub','withBody','getMatchCount','30417MUFptb','withHost','rfc9457','Unprocessable\x20Entity','url','432726CTFuHW','toUpperCase','description','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','27kIphAr','Not\x20Found','https://api.treasuredata.com/errors/','host','verify','requests','matched','application/json','function','1610080PwVhFE','stack','getStatusText','headers','Request\x20body:\x20','method'];a198_0x3367=function(){return _0x2b21b5;};return a198_0x3367();}function a198_0xeab7(_0x5dbaa9,_0x415d80){_0x5dbaa9=_0x5dbaa9-0x1cc;const _0x33678b=a198_0x3367();let _0xeab745=_0x33678b[_0x5dbaa9];return _0xeab745;}export class HTTPMockRegistry{[a198_0x2f5059(0x1d6)]=[];[a198_0x2f5059(0x1ef)]=[];[a198_0x2f5059(0x1d8)]=null;[a198_0x2f5059(0x214)](_0x3f7fc6,_0x2b916d){return _0x34d212=>{const _0x29fc66=a198_0xeab7;if(_0x34d212[_0x29fc66(0x1f8)][_0x29fc66(0x1e7)]()!==_0x3f7fc6[_0x29fc66(0x1e7)]())return![];const _0x15541d=new URL(_0x34d212[_0x29fc66(0x1e5)]);if(typeof _0x2b916d===_0x29fc66(0x1fb))return _0x15541d[_0x29fc66(0x20e)]===_0x2b916d||_0x15541d['pathname'][_0x29fc66(0x218)](_0x2b916d);return _0x2b916d[_0x29fc66(0x215)](_0x15541d[_0x29fc66(0x20e)]);};}['withQuery'](_0x295f52,_0x2151be){return _0x4f017c=>{const _0x12dfc3=a198_0xeab7;if(!_0x295f52(_0x4f017c))return![];const _0x2f69f3=new URL(_0x4f017c['url']);return Object['entries'](_0x2151be)[_0x12dfc3(0x1fc)](([_0x29d9f7,_0x23fade])=>_0x2f69f3[_0x12dfc3(0x209)][_0x12dfc3(0x206)](_0x29d9f7)===_0x23fade);};}[a198_0x2f5059(0x1df)](_0x4cf339,_0xb04981){return _0x3667e5=>{const _0xfded79=a198_0xeab7;if(!_0x4cf339(_0x3667e5))return![];if(typeof _0xb04981===_0xfded79(0x1f2))return _0xb04981(_0x3667e5['body']);return JSON[_0xfded79(0x205)](_0x3667e5[_0xfded79(0x203)])===JSON[_0xfded79(0x205)](_0xb04981);};}[a198_0x2f5059(0x1e2)](_0x21871d,_0x13b1ae){return _0x191356=>{const _0x5ed845=a198_0xeab7;if(!_0x21871d(_0x191356))return![];const _0xf1ca88=new URL(_0x191356[_0x5ed845(0x1e5)]);return _0xf1ca88[_0x5ed845(0x1ed)]===_0x13b1ae;};}[a198_0x2f5059(0x20b)](_0x1b6138,_0x3d2a86,_0x3b5255){const _0x7d014d=a198_0x2f5059;this[_0x7d014d(0x1d6)][_0x7d014d(0x1dd)]({'matcher':_0x1b6138,'responder':_0x3d2a86,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x3b5255?.['description']});}['registerWithInspector'](_0xf1675d,_0x439e31,_0x2da44e){const _0x89e8d4=a198_0x2f5059,_0xde063b=_0x33896f=>{const _0x2fe25c=a198_0xeab7;return _0x2da44e(_0x33896f[_0x2fe25c(0x203)],_0x33896f),_0x439e31(_0x33896f);};this[_0x89e8d4(0x20b)](_0xf1675d,_0xde063b);}static['jsonResponse'](_0x17a1b0,_0x41f50a=0xc8){const _0x5e709b=a198_0x2f5059;return()=>new Response(JSON[_0x5e709b(0x205)](_0x17a1b0),{'status':_0x41f50a,'headers':{'Content-Type':'application/json'}});}static['errorResponse'](_0x1bf5a7,_0x3060cf,_0x2425f1=a198_0x2f5059(0x1ce)){return()=>{const _0x5182aa=a198_0xeab7;let _0x20ef6d;switch(_0x2425f1){case _0x5182aa(0x1d9):_0x20ef6d={'errors':{'error':_0x3060cf,'message':_0x3060cf,'severity':_0x5182aa(0x1da),'status_code':_0x1bf5a7}};break;case _0x5182aa(0x1e3):_0x20ef6d={'type':_0x5182aa(0x1ec)+_0x1bf5a7,'title':HTTPMockRegistry[_0x5182aa(0x1f5)](_0x1bf5a7),'status':_0x1bf5a7,'detail':_0x3060cf};break;default:_0x20ef6d={'error':_0x3060cf};}return new Response(JSON[_0x5182aa(0x205)](_0x20ef6d),{'status':_0x1bf5a7,'headers':{'Content-Type':_0x5182aa(0x1f1)}});};}static[a198_0x2f5059(0x211)](_0x137754,_0x3e13c6,_0x4b8c4e=0xc8){const _0x1971d6=a198_0x2f5059;return()=>new Response(JSON[_0x1971d6(0x205)](_0x137754),{'status':_0x4b8c4e,'headers':{'Content-Type':_0x1971d6(0x1f1),..._0x3e13c6}});}static['textResponse'](_0x18045a,_0x3d9c70=0xc8){const _0x3fc9fa=a198_0x2f5059;return()=>new Response(_0x18045a,{'status':_0x3d9c70,'headers':{'Content-Type':_0x3fc9fa(0x1cd)}});}static[a198_0x2f5059(0x204)](_0x272b7e){return()=>{throw new Error(_0x272b7e);};}['createFetch'](){const _0x37b0c7=a198_0x2f5059;return this[_0x37b0c7(0x1d8)]=vi['fn']()[_0x37b0c7(0x213)](async(_0x101e88,_0x67dfd5)=>{const _0x29d412=_0x37b0c7,_0x581a97=this[_0x29d412(0x20a)](_0x101e88,_0x67dfd5);this[_0x29d412(0x1ef)]['push'](_0x581a97);for(const _0x4e9fef of this[_0x29d412(0x1d6)]){if(_0x4e9fef[_0x29d412(0x200)](_0x581a97))return _0x4e9fef['matched']=!![],_0x4e9fef[_0x29d412(0x1d2)]++,_0x4e9fef[_0x29d412(0x1fa)](_0x581a97);}const _0x22a3a9=this[_0x29d412(0x1d6)][_0x29d412(0x1d7)]((_0xf5801c,_0x411101)=>'\x20\x20'+(_0x411101+0x1)+'.\x20'+(_0xf5801c[_0x29d412(0x1e8)]??_0x29d412(0x1de)))[_0x29d412(0x1d1)]('\x0a');throw new Error(_0x29d412(0x20f)+_0x581a97[_0x29d412(0x1f8)]+'\x20'+_0x581a97['url']+'\x0a'+(_0x29d412(0x1f7)+JSON['stringify'](_0x581a97[_0x29d412(0x203)])+'\x0a')+('Registered\x20stubs:\x0a'+(_0x22a3a9||'\x20\x20(none)')));}),this[_0x37b0c7(0x1d8)];}['parseRequest'](_0x219c05,_0x13cb2e){const _0x42e431=a198_0x2f5059,_0x2a1dff={};if(_0x13cb2e?.['headers']){if(_0x13cb2e[_0x42e431(0x1f6)]instanceof Headers)_0x13cb2e['headers']['forEach']((_0x1c9cd0,_0x5b088d)=>{const _0x164eb1=_0x42e431;_0x2a1dff[_0x5b088d[_0x164eb1(0x1cc)]()]=_0x1c9cd0;});else{if(Array[_0x42e431(0x207)](_0x13cb2e[_0x42e431(0x1f6)]))for(const [_0x344dce,_0x3a8a77]of _0x13cb2e[_0x42e431(0x1f6)]){_0x2a1dff[_0x344dce['toLowerCase']()]=_0x3a8a77;}else for(const [_0x405f6,_0x4ba4da]of Object[_0x42e431(0x1d3)](_0x13cb2e[_0x42e431(0x1f6)])){_0x4ba4da!==undefined&&(_0x2a1dff[_0x405f6['toLowerCase']()]=_0x4ba4da);}}}let _0x2def58;if(_0x13cb2e?.[_0x42e431(0x203)])try{_0x2def58=JSON[_0x42e431(0x1d5)](_0x13cb2e[_0x42e431(0x203)]);}catch{_0x2def58=_0x13cb2e['body'];}return{'method':_0x13cb2e?.[_0x42e431(0x1f8)]??'GET','url':_0x219c05,'headers':_0x2a1dff,'body':_0x2def58};}[a198_0x2f5059(0x1ee)](_0x978a7d){const _0x37fffa=a198_0x2f5059,_0x166ebf=this['stubs'][_0x37fffa(0x201)](_0x28199d=>!_0x28199d[_0x37fffa(0x1f0)]);if(_0x166ebf[_0x37fffa(0x20d)]>0x0){const _0x6af6fc=_0x166ebf[_0x37fffa(0x1d7)](_0x48b5cc=>{const _0x283e92=_0x37fffa,_0x374541=_0x48b5cc[_0x283e92(0x1e8)]?'\x20('+_0x48b5cc['description']+')':'',_0x220cb3=_0x48b5cc[_0x283e92(0x1f4)]['split']('\x0a')[_0x283e92(0x217)](0x2,0x5)[_0x283e92(0x1d1)]('\x0a');return _0x283e92(0x212)+_0x374541+'\x20registered\x20at:\x0a'+_0x220cb3;});_0x978a7d[_0x37fffa(0x208)](_0x166ebf[_0x37fffa(0x20d)]+_0x37fffa(0x1e9)+_0x6af6fc[_0x37fffa(0x1d1)]('\x0a\x0a'));}}[a198_0x2f5059(0x216)](){const _0x55a8c0=a198_0x2f5059;return[...this[_0x55a8c0(0x1ef)]];}[a198_0x2f5059(0x1ff)](){const _0xaccdd6=a198_0x2f5059;return this['requests'][this[_0xaccdd6(0x1ef)][_0xaccdd6(0x20d)]-0x1];}[a198_0x2f5059(0x1db)](_0x508ddc,_0x13795e){return this['requests']['some'](_0x526a0c=>{const _0x12356a=a198_0xeab7;if(_0x526a0c[_0x12356a(0x1f8)][_0x12356a(0x1e7)]()!==_0x508ddc[_0x12356a(0x1e7)]())return![];if(typeof _0x13795e===_0x12356a(0x1fb))return _0x526a0c[_0x12356a(0x1e5)]['includes'](_0x13795e);return _0x13795e[_0x12356a(0x215)](_0x526a0c['url']);});}[a198_0x2f5059(0x1e0)](_0x1a9364){const _0x2fc3c7=a198_0x2f5059;return this[_0x2fc3c7(0x1d6)][_0x1a9364]?.[_0x2fc3c7(0x1d2)]??0x0;}[a198_0x2f5059(0x210)](){const _0x3fc4c5=a198_0x2f5059;this[_0x3fc4c5(0x1d6)]=[],this[_0x3fc4c5(0x1ef)]=[],this[_0x3fc4c5(0x1d8)]=null;}static[a198_0x2f5059(0x1f5)](_0x1a7767){const _0xdbf6c9=a198_0x2f5059,_0xe96c4c={0xc8:'OK',0xc9:'Created',0xcc:'No\x20Content',0x190:'Bad\x20Request',0x191:'Unauthorized',0x193:'Forbidden',0x194:_0xdbf6c9(0x1eb),0x199:'Conflict',0x1a6:_0xdbf6c9(0x1e4),0x1ad:_0xdbf6c9(0x1cf),0x1f4:_0xdbf6c9(0x1fe),0x1f6:'Bad\x20Gateway',0x1f7:'Service\x20Unavailable'};return _0xe96c4c[_0x1a7767]??_0xdbf6c9(0x1dc);}}export function createHTTPMock(){return new HTTPMockRegistry();}
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x44d145,_0x3c1aec){var _0x5aa481=a199_0xf1a7,_0x5ba0b7=_0x44d145();while(!![]){try{var _0x739a92=parseInt(_0x5aa481(0xee))/0x1+parseInt(_0x5aa481(0xf5))/0x2+-parseInt(_0x5aa481(0xf4))/0x3+-parseInt(_0x5aa481(0xf3))/0x4*(parseInt(_0x5aa481(0xf6))/0x5)+parseInt(_0x5aa481(0xf0))/0x6*(-parseInt(_0x5aa481(0xf2))/0x7)+-parseInt(_0x5aa481(0xf7))/0x8*(parseInt(_0x5aa481(0xed))/0x9)+-parseInt(_0x5aa481(0xef))/0xa*(-parseInt(_0x5aa481(0xf1))/0xb);if(_0x739a92===_0x3c1aec)break;else _0x5ba0b7['push'](_0x5ba0b7['shift']());}catch(_0x3793fd){_0x5ba0b7['push'](_0x5ba0b7['shift']());}}}(a199_0x2aaa,0x71640));function a199_0xf1a7(_0x5cf489,_0x595edf){_0x5cf489=_0x5cf489-0xed;var _0x2aaaef=a199_0x2aaa();var _0xf1a76=_0x2aaaef[_0x5cf489];return _0xf1a76;}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 a199_0x2aaa(){var _0x3a0953=['1506252rJmLOG','4493215eJmgHH','7024ZaSPct','7182nUgnVO','598733dDtOmf','425690qitxEr','4486578ZZFKob','517xzFuwj','7QVRCiK','4OEfkuy','1623312fLnKIn'];a199_0x2aaa=function(){return _0x3a0953;};return a199_0x2aaa();}export{CommandRunner,createCommandRunner}from'./command-runner.js';
|
package/dist/utils/async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a200_0x95ca(){const _0xd937e5=['slice','1732804wWnyQJ','10aKvmST','9mXQYne','5605464AqKmic','map','2957676IpDxJg','43968HwqjTD','28374730OZQWPY','935343JmdVDn','70664bqgGQS','238BzeowN'];a200_0x95ca=function(){return _0xd937e5;};return a200_0x95ca();}function a200_0x196a(_0x2b2527,_0x26a394){_0x2b2527=_0x2b2527-0x118;const _0x95ca4=a200_0x95ca();let _0x196aad=_0x95ca4[_0x2b2527];return _0x196aad;}(function(_0x45754d,_0x4cf114){const _0xa43372=a200_0x196a,_0x46b376=_0x45754d();while(!![]){try{const _0x587561=parseInt(_0xa43372(0x118))/0x1+-parseInt(_0xa43372(0x122))/0x2+parseInt(_0xa43372(0x121))/0x3+parseInt(_0xa43372(0x11c))/0x4*(parseInt(_0xa43372(0x11d))/0x5)+parseInt(_0xa43372(0x11f))/0x6+-parseInt(_0xa43372(0x11a))/0x7*(parseInt(_0xa43372(0x119))/0x8)+parseInt(_0xa43372(0x11e))/0x9*(-parseInt(_0xa43372(0x123))/0xa);if(_0x587561===_0x4cf114)break;else _0x46b376['push'](_0x46b376['shift']());}catch(_0x4521d2){_0x46b376['push'](_0x46b376['shift']());}}}(a200_0x95ca,0x893b6));export async function batchAsync(_0x206811,_0x4868aa,_0x1795ce=0xa){const _0x518172=a200_0x196a,_0x4a6c0c=[];for(let _0x284dfe=0x0;_0x284dfe<_0x206811['length'];_0x284dfe+=_0x1795ce){const _0x3b1c7e=_0x206811[_0x518172(0x11b)](_0x284dfe,_0x284dfe+_0x1795ce),_0x5b8dfa=await Promise['all'](_0x3b1c7e[_0x518172(0x120)](_0x4868aa));_0x4a6c0c['push'](..._0x5b8dfa);}return _0x4a6c0c;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a201_0x22b967=a201_0x42a8;(function(_0x622bfa,_0x10e83f){const _0x317aac=a201_0x42a8,_0x8b1148=_0x622bfa();while(!![]){try{const _0xa32779=parseInt(_0x317aac(0x131))/0x1*(parseInt(_0x317aac(0x13e))/0x2)+parseInt(_0x317aac(0x144))/0x3+parseInt(_0x317aac(0x140))/0x4*(-parseInt(_0x317aac(0x130))/0x5)+parseInt(_0x317aac(0x14b))/0x6*(parseInt(_0x317aac(0x147))/0x7)+parseInt(_0x317aac(0x135))/0x8*(-parseInt(_0x317aac(0x13d))/0x9)+-parseInt(_0x317aac(0x139))/0xa+-parseInt(_0x317aac(0x13c))/0xb*(-parseInt(_0x317aac(0x12e))/0xc);if(_0xa32779===_0x10e83f)break;else _0x8b1148['push'](_0x8b1148['shift']());}catch(_0x551396){_0x8b1148['push'](_0x8b1148['shift']());}}}(a201_0x3c8d,0x56c24));import*as a201_0x4c5a07 from'chalk';const Chalk=a201_0x4c5a07[a201_0x22b967(0x148)];export function shouldUseColor(_0x2ea51a={}){const _0x114911=a201_0x22b967;if(_0x2ea51a['noColor']===!![])return![];if(_0x2ea51a[_0x114911(0x132)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x114911(0x145)][_0x114911(0x133)]??![];}export function getChalk(_0x1c109b={}){if(shouldUseColor(_0x1c109b))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x2e9a6c,_0x22ef75={}){return getChalk(_0x22ef75)['dim'](_0x2e9a6c);}function a201_0x42a8(_0x434f30,_0x3fb220){_0x434f30=_0x434f30-0x12e;const _0x3c8dc0=a201_0x3c8d();let _0x42a820=_0x3c8dc0[_0x434f30];return _0x42a820;}export function colorHeader(_0x337afd,_0x2db460={}){const _0x4920d3=a201_0x22b967;return getChalk(_0x2db460)[_0x4920d3(0x13f)](_0x337afd);}export function colorType(_0x4a6293,_0x382a57={}){return getChalk(_0x382a57)['dim'](_0x4a6293);}export function colorJSONKey(_0x11a89c,_0x3a5c00={}){const _0x2b95b4=a201_0x22b967;return getChalk(_0x3a5c00)[_0x2b95b4(0x14a)](_0x11a89c);}function a201_0x3c8d(){const _0x36a351=['length','137203pNQytd','585ovBxyk','10dOPlLM','cyan','427388puLsPO','stringify','boolean','map','432882TSYewx','stdout','object','133FXXHey','Chalk','green','blue','129384ICzYSG','264tNRxUc','number','30GODKyf','80603dsxrGo','color','isTTY','yellow','7664noOQBw','null','repeat','string','1727150YrkUKf','join'];a201_0x3c8d=function(){return _0x36a351;};return a201_0x3c8d();}export function colorJSONString(_0x22e4d4,_0x3d3e80={}){const _0x30c45b=a201_0x22b967;return getChalk(_0x3d3e80)[_0x30c45b(0x149)](_0x22e4d4);}export function colorJSONNumber(_0x347048,_0x4e88d4={}){const _0x4d218f=a201_0x22b967;return getChalk(_0x4e88d4)[_0x4d218f(0x13f)](_0x347048);}export function colorJSONBoolean(_0x16d759,_0x4114d3={}){const _0xdc030f=a201_0x22b967;return getChalk(_0x4114d3)[_0xdc030f(0x134)](_0x16d759);}export function colorJSONNull(_0x438a49,_0x27889c={}){return getChalk(_0x27889c)['dim'](_0x438a49);}export function colorizeJSONCompact(_0x49c828,_0x17875b={}){const _0x1cdd24=a201_0x22b967;if(!shouldUseColor(_0x17875b))return JSON[_0x1cdd24(0x141)](_0x49c828);if(_0x49c828===null)return colorJSONNull(_0x1cdd24(0x136),_0x17875b);if(typeof _0x49c828===_0x1cdd24(0x142))return colorJSONBoolean(String(_0x49c828),_0x17875b);if(typeof _0x49c828===_0x1cdd24(0x12f))return colorJSONNumber(String(_0x49c828),_0x17875b);if(typeof _0x49c828===_0x1cdd24(0x138))return colorJSONString(JSON[_0x1cdd24(0x141)](_0x49c828),_0x17875b);if(Array['isArray'](_0x49c828)){if(_0x49c828[_0x1cdd24(0x13b)]===0x0)return'[]';const _0x237006=_0x49c828['map'](_0x2ed144=>colorizeJSONCompact(_0x2ed144,_0x17875b));return'['+_0x237006[_0x1cdd24(0x13a)](',')+']';}if(typeof _0x49c828==='object'){const _0x5bffef=Object['entries'](_0x49c828);if(_0x5bffef[_0x1cdd24(0x13b)]===0x0)return'{}';const _0x38486e=_0x5bffef[_0x1cdd24(0x143)](([_0x4dc474,_0x316c86])=>{const _0x1f8fd3=_0x1cdd24,_0x4a2718=colorJSONKey(JSON[_0x1f8fd3(0x141)](_0x4dc474),_0x17875b),_0xd0b2cc=colorizeJSONCompact(_0x316c86,_0x17875b);return _0x4a2718+':'+_0xd0b2cc;});return'{'+_0x38486e['join'](',')+'}';}return String(_0x49c828);}export function colorizeJSON(_0x374c87,_0x1cc443={},_0x4987dc=0x0){const _0x4f42e4=a201_0x22b967;if(!shouldUseColor(_0x1cc443))return JSON[_0x4f42e4(0x141)](_0x374c87,null,0x2);const _0x98d857='\x20'[_0x4f42e4(0x137)](_0x4987dc),_0x2721c5=_0x4987dc+0x2;if(_0x374c87===null)return colorJSONNull(_0x4f42e4(0x136),_0x1cc443);if(typeof _0x374c87===_0x4f42e4(0x142))return colorJSONBoolean(String(_0x374c87),_0x1cc443);if(typeof _0x374c87===_0x4f42e4(0x12f))return colorJSONNumber(String(_0x374c87),_0x1cc443);if(typeof _0x374c87===_0x4f42e4(0x138))return colorJSONString(JSON[_0x4f42e4(0x141)](_0x374c87),_0x1cc443);if(Array['isArray'](_0x374c87)){if(_0x374c87[_0x4f42e4(0x13b)]===0x0)return'[]';const _0x183094=_0x374c87[_0x4f42e4(0x143)](_0x7cb88e=>{const _0x38c4b9=_0x4f42e4,_0x12628b=colorizeJSON(_0x7cb88e,_0x1cc443,_0x2721c5);return''+'\x20'[_0x38c4b9(0x137)](_0x2721c5)+_0x12628b;});return'[\x0a'+_0x183094[_0x4f42e4(0x13a)](',\x0a')+('\x0a'+_0x98d857+']');}if(typeof _0x374c87===_0x4f42e4(0x146)){const _0x50b9b8=Object['entries'](_0x374c87);if(_0x50b9b8[_0x4f42e4(0x13b)]===0x0)return'{}';const _0x570e4d=_0x50b9b8['map'](([_0x5c57a3,_0x2360e5])=>{const _0x2cc895=_0x4f42e4,_0x153826=colorJSONKey(JSON[_0x2cc895(0x141)](_0x5c57a3),_0x1cc443),_0x2bb81c=colorizeJSON(_0x2360e5,_0x1cc443,_0x2721c5);return''+'\x20'[_0x2cc895(0x137)](_0x2721c5)+_0x153826+':\x20'+_0x2bb81c;});return'{\x0a'+_0x570e4d[_0x4f42e4(0x13a)](',\x0a')+('\x0a'+_0x98d857+'}');}return String(_0x374c87);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x795ff6,_0x13954a){const _0x27343f=a202_0x1ec9,_0x5d4a48=_0x795ff6();while(!![]){try{const _0xd6ee9b=-parseInt(_0x27343f(0x1a8))/0x1*(parseInt(_0x27343f(0x1b0))/0x2)+parseInt(_0x27343f(0x1ad))/0x3+-parseInt(_0x27343f(0x194))/0x4*(parseInt(_0x27343f(0x18d))/0x5)+parseInt(_0x27343f(0x1a5))/0x6*(-parseInt(_0x27343f(0x19f))/0x7)+-parseInt(_0x27343f(0x193))/0x8+parseInt(_0x27343f(0x1ae))/0x9+parseInt(_0x27343f(0x1aa))/0xa;if(_0xd6ee9b===_0x13954a)break;else _0x5d4a48['push'](_0x5d4a48['shift']());}catch(_0x3a74d1){_0x5d4a48['push'](_0x5d4a48['shift']());}}}(a202_0x2b92,0xdecfa));import a202_0x37b7a7 from'chalk';export function generateDiff(_0x3e0d27,_0xa22fd2){const _0x43a0bf=a202_0x1ec9,_0x3a17c9=_0x3e0d27[_0x43a0bf(0x19c)]('\x0a'),_0x1b883a=_0xa22fd2[_0x43a0bf(0x19c)]('\x0a'),_0x223efd=[],_0x20a655=computeLCS(_0x3a17c9,_0x1b883a);let _0x1a5e89=0x0,_0x49e873=0x0,_0x5267a3=0x0;while(_0x1a5e89<_0x3a17c9[_0x43a0bf(0x19d)]||_0x49e873<_0x1b883a['length']){if(_0x5267a3<_0x20a655['length']&&_0x1a5e89<_0x3a17c9[_0x43a0bf(0x19d)]&&_0x3a17c9[_0x1a5e89]===_0x20a655[_0x5267a3])_0x49e873<_0x1b883a['length']&&_0x1b883a[_0x49e873]===_0x20a655[_0x5267a3]?(_0x223efd[_0x43a0bf(0x1ab)]({'type':_0x43a0bf(0x1ac),'content':_0x3a17c9[_0x1a5e89]}),_0x1a5e89++,_0x49e873++,_0x5267a3++):(_0x223efd['push']({'type':'added','content':_0x1b883a[_0x49e873]}),_0x49e873++);else{if(_0x5267a3<_0x20a655[_0x43a0bf(0x19d)]&&_0x49e873<_0x1b883a[_0x43a0bf(0x19d)]&&_0x1b883a[_0x49e873]===_0x20a655[_0x5267a3])_0x223efd['push']({'type':_0x43a0bf(0x1a7),'content':_0x3a17c9[_0x1a5e89]}),_0x1a5e89++;else{if(_0x1a5e89<_0x3a17c9[_0x43a0bf(0x19d)]&&(_0x5267a3>=_0x20a655[_0x43a0bf(0x19d)]||_0x3a17c9[_0x1a5e89]!==_0x20a655[_0x5267a3]))_0x223efd[_0x43a0bf(0x1ab)]({'type':_0x43a0bf(0x1a7),'content':_0x3a17c9[_0x1a5e89]}),_0x1a5e89++;else _0x49e873<_0x1b883a['length']&&(_0x223efd[_0x43a0bf(0x1ab)]({'type':_0x43a0bf(0x18f),'content':_0x1b883a[_0x49e873]}),_0x49e873++);}}}return _0x223efd;}function computeLCS(_0x597bb1,_0x4dcd57){const _0x5f1ef5=a202_0x1ec9,_0x34282d=_0x597bb1['length'],_0x465bd0=_0x4dcd57[_0x5f1ef5(0x19d)],_0x29a66f=Array(_0x34282d+0x1)[_0x5f1ef5(0x1a3)](null)[_0x5f1ef5(0x1a2)](()=>Array(_0x465bd0+0x1)[_0x5f1ef5(0x1a3)](0x0));for(let _0x531d4b=0x1;_0x531d4b<=_0x34282d;_0x531d4b++){for(let _0x4aa2ff=0x1;_0x4aa2ff<=_0x465bd0;_0x4aa2ff++){_0x597bb1[_0x531d4b-0x1]===_0x4dcd57[_0x4aa2ff-0x1]?_0x29a66f[_0x531d4b][_0x4aa2ff]=_0x29a66f[_0x531d4b-0x1][_0x4aa2ff-0x1]+0x1:_0x29a66f[_0x531d4b][_0x4aa2ff]=Math[_0x5f1ef5(0x191)](_0x29a66f[_0x531d4b-0x1][_0x4aa2ff],_0x29a66f[_0x531d4b][_0x4aa2ff-0x1]);}}const _0x511bae=[];let _0x465dce=_0x34282d,_0x207736=_0x465bd0;while(_0x465dce>0x0&&_0x207736>0x0){if(_0x597bb1[_0x465dce-0x1]===_0x4dcd57[_0x207736-0x1])_0x511bae[_0x5f1ef5(0x1b1)](_0x597bb1[_0x465dce-0x1]),_0x465dce--,_0x207736--;else _0x29a66f[_0x465dce-0x1][_0x207736]>_0x29a66f[_0x465dce][_0x207736-0x1]?_0x465dce--:_0x207736--;}return _0x511bae;}export function formatDiffWithColors(_0x37ae3a,_0x2f75b2=0x3){const _0x1e5d4d=a202_0x1ec9,_0x25cded=new Set();_0x37ae3a[_0x1e5d4d(0x19b)]((_0x266860,_0x5ab023)=>{const _0x36e94d=_0x1e5d4d;_0x266860[_0x36e94d(0x199)]!=='unchanged'&&_0x25cded[_0x36e94d(0x195)](_0x5ab023);});if(_0x25cded[_0x1e5d4d(0x197)]===0x0)return'';const _0x4a0201=new Set();for(const _0x5c17c0 of _0x25cded){for(let _0x871425=Math['max'](0x0,_0x5c17c0-_0x2f75b2);_0x871425<=Math[_0x1e5d4d(0x19e)](_0x37ae3a[_0x1e5d4d(0x19d)]-0x1,_0x5c17c0+_0x2f75b2);_0x871425++){_0x4a0201['add'](_0x871425);}}const _0x42381b=[];let _0x168205=-0x1;const _0x55aa20=_0x37ae3a[_0x1e5d4d(0x19d)],_0x4b8507=Math[_0x1e5d4d(0x191)](0x3,String(_0x55aa20)[_0x1e5d4d(0x19d)]),_0xe2031=[];let _0x3e2f8c=0x0,_0x441dcf=0x0;for(const _0x320488 of _0x37ae3a){if(_0x320488['type']===_0x1e5d4d(0x1a7))_0x3e2f8c++,_0xe2031['push']({'old':_0x3e2f8c,'new':0x0});else _0x320488['type']===_0x1e5d4d(0x18f)?(_0x441dcf++,_0xe2031['push']({'old':0x0,'new':_0x441dcf})):(_0x3e2f8c++,_0x441dcf++,_0xe2031[_0x1e5d4d(0x1ab)]({'old':_0x3e2f8c,'new':_0x441dcf}));}for(let _0x389131=0x0;_0x389131<_0x37ae3a['length'];_0x389131++){if(!_0x4a0201[_0x1e5d4d(0x196)](_0x389131))continue;_0x168205!==-0x1&&_0x389131>_0x168205+0x1&&_0x42381b[_0x1e5d4d(0x1ab)](a202_0x37b7a7[_0x1e5d4d(0x1a1)]('\x20\x20...'));_0x168205=_0x389131;const _0x30d006=_0x37ae3a[_0x389131],_0x436f60=_0xe2031[_0x389131],_0x171761=_0x436f60[_0x1e5d4d(0x198)]>0x0?String(_0x436f60[_0x1e5d4d(0x198)])[_0x1e5d4d(0x1af)](_0x4b8507):'\x20'[_0x1e5d4d(0x1a9)](_0x4b8507),_0x123f1b=_0x436f60[_0x1e5d4d(0x1a0)]>0x0?String(_0x436f60[_0x1e5d4d(0x1a0)])[_0x1e5d4d(0x1af)](_0x4b8507):'\x20'[_0x1e5d4d(0x1a9)](_0x4b8507);switch(_0x30d006[_0x1e5d4d(0x199)]){case _0x1e5d4d(0x1a7):_0x42381b[_0x1e5d4d(0x1ab)](a202_0x37b7a7['red'](_0x171761+'\x20'+_0x123f1b+_0x1e5d4d(0x192)+_0x30d006[_0x1e5d4d(0x1a6)]));break;case _0x1e5d4d(0x18f):_0x42381b[_0x1e5d4d(0x1ab)](a202_0x37b7a7[_0x1e5d4d(0x18e)](_0x171761+'\x20'+_0x123f1b+_0x1e5d4d(0x19a)+_0x30d006[_0x1e5d4d(0x1a6)]));break;default:_0x42381b['push'](a202_0x37b7a7['dim'](_0x171761+'\x20'+_0x123f1b+_0x1e5d4d(0x190)+_0x30d006[_0x1e5d4d(0x1a6)]));break;}}return _0x42381b[_0x1e5d4d(0x1b2)]('\x0a');}export function hasChanges(_0x5b0ca1){const _0x4e4235=a202_0x1ec9;return _0x5b0ca1[_0x4e4235(0x1a4)](_0x3490c1=>_0x3490c1[_0x4e4235(0x199)]!==_0x4e4235(0x1ac));}function a202_0x1ec9(_0x5a13fc,_0x2b7e75){_0x5a13fc=_0x5a13fc-0x18d;const _0x2b92fc=a202_0x2b92();let _0x1ec915=_0x2b92fc[_0x5a13fc];return _0x1ec915;}function a202_0x2b92(){const _0x157556=['size','old','type','\x20+\x20','forEach','split','length','min','7jcsZNt','new','cyan','map','fill','some','632976cVpXug','content','removed','1riBLNe','repeat','20873020dSyrFw','push','unchanged','568851mlkxww','3608307yfuJHq','padStart','821566HjXqPx','unshift','join','5310SdLDwS','green','added','\x20\x20\x20','max','\x20-\x20','9948952cdpXHc','20zxhAuR','add','has'];a202_0x2b92=function(){return _0x157556;};return a202_0x2b92();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a203_0x4d77(_0x5c4d01,_0x3cfcfc){_0x5c4d01=_0x5c4d01-0x1ed;const _0x2b8fde=a203_0x2b8f();let _0x4d77a4=_0x2b8fde[_0x5c4d01];return _0x4d77a4;}function a203_0x2b8f(){const _0x3c7eb8=['toString','existsSync','1341kDfgNM','2568xOFmSV','chmodSync','writeFileSync','290160DKHQAB','mkdirSync','215387AaQTsO','Warning:\x20','statSync','warn','2GTazYH','\x20has\x20insecure\x20permissions\x20(','mode','1104790ZEctyM','7ShfmtL','640848BAuivA','444285NOOzbR','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','106140fDuWqq'];a203_0x2b8f=function(){return _0x3c7eb8;};return a203_0x2b8f();}(function(_0x389c5b,_0x4d8299){const _0x742e56=a203_0x4d77,_0x1d087c=_0x389c5b();while(!![]){try{const _0x46af7a=-parseInt(_0x742e56(0x1f8))/0x1*(-parseInt(_0x742e56(0x1fc))/0x2)+-parseInt(_0x742e56(0x1f6))/0x3+-parseInt(_0x742e56(0x201))/0x4+parseInt(_0x742e56(0x1ed))/0x5+-parseInt(_0x742e56(0x1ef))/0x6*(-parseInt(_0x742e56(0x200))/0x7)+-parseInt(_0x742e56(0x1f3))/0x8*(parseInt(_0x742e56(0x1f2))/0x9)+parseInt(_0x742e56(0x1ff))/0xa;if(_0x46af7a===_0x4d8299)break;else _0x1d087c['push'](_0x1d087c['shift']());}catch(_0x4de79d){_0x1d087c['push'](_0x1d087c['shift']());}}}(a203_0x2b8f,0x1f2a4));import*as a203_0x41f26f from'node:fs';import*as a203_0x5e09a3 from'node:path';export function setSecureFilePermissions(_0x3720ef){const _0x4f8a9a=a203_0x4d77;try{a203_0x41f26f[_0x4f8a9a(0x1f4)](_0x3720ef,0x180);}catch{console[_0x4f8a9a(0x1fb)](_0x4f8a9a(0x1ee)+_0x3720ef);}}export function setSecureDirectoryPermissions(_0x56d427){const _0x2ab6ba=a203_0x4d77;try{a203_0x41f26f[_0x2ab6ba(0x1f4)](_0x56d427,0x1c0);}catch{console[_0x2ab6ba(0x1fb)](_0x2ab6ba(0x1ee)+_0x56d427);}}export function createSecureDirectory(_0x1f8d6d){const _0xd10c49=a203_0x4d77;!a203_0x41f26f[_0xd10c49(0x1f1)](_0x1f8d6d)&&(a203_0x41f26f[_0xd10c49(0x1f7)](_0x1f8d6d,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x1f8d6d));}export function validateSecureFilePermissions(_0x444662){const _0x269681=a203_0x4d77;try{const _0x3381dc=a203_0x41f26f[_0x269681(0x1fa)](_0x444662),_0x14db84=_0x3381dc[_0x269681(0x1fe)]&0x1ff,_0x35ef02=(_0x14db84&0x3f)!==0x0;if(_0x35ef02)return console['warn'](_0x269681(0x1f9)+_0x444662+_0x269681(0x1fd)+_0x14db84[_0x269681(0x1f0)](0x8)+').\x20'+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x16d3dc,_0x2e3149){const _0x406f79=a203_0x4d77,_0x4ab2cc=a203_0x5e09a3['dirname'](_0x16d3dc);createSecureDirectory(_0x4ab2cc),a203_0x41f26f[_0x406f79(0x1f5)](_0x16d3dc,_0x2e3149,{'mode':0x180}),setSecureFilePermissions(_0x16d3dc);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a204_0x2006(_0x2c97ba,_0xd1cf2){_0x2c97ba=_0x2c97ba-0x11c;const _0x4dd9b4=a204_0x4dd9();let _0x2006c9=_0x4dd9b4[_0x2c97ba];return _0x2006c9;}(function(_0x25fcc2,_0x48dfff){const _0x1ead09=a204_0x2006,_0x25426c=_0x25fcc2();while(!![]){try{const _0x85f92e=parseInt(_0x1ead09(0x124))/0x1*(parseInt(_0x1ead09(0x11f))/0x2)+-parseInt(_0x1ead09(0x12d))/0x3+parseInt(_0x1ead09(0x125))/0x4+-parseInt(_0x1ead09(0x12e))/0x5+-parseInt(_0x1ead09(0x12c))/0x6+parseInt(_0x1ead09(0x127))/0x7+parseInt(_0x1ead09(0x12b))/0x8*(parseInt(_0x1ead09(0x129))/0x9);if(_0x85f92e===_0x48dfff)break;else _0x25426c['push'](_0x25426c['shift']());}catch(_0x5c5c65){_0x25426c['push'](_0x25426c['shift']());}}}(a204_0x4dd9,0x49aa4));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a204_0x4dd9(){const _0x2b3755=['1111124bUXZVZ','message','51786QfmIne','File\x20\x27','584qUpViM','576012BdpMUm','614379cospgN','2556845udFHnG','EACCES','\x27\x20not\x20found','utf-8','217132bIEKrE','code','NOT_FOUND','INTERNAL','Error\x20reading\x20file\x20\x27','4WrpJby','403432bBtPZk','ENOENT'];a204_0x4dd9=function(){return _0x2b3755;};return a204_0x4dd9();}export function readFileContent(_0x545d59){const _0x991b44=a204_0x2006;try{return readFileSync(_0x545d59,_0x991b44(0x11e));}catch(_0x4b3324){const _0x1b9660=_0x4b3324[_0x991b44(0x120)];if(_0x1b9660===_0x991b44(0x126))throw new SDKError(ErrorCode[_0x991b44(0x121)],_0x991b44(0x12a)+_0x545d59+_0x991b44(0x11d),_0x4b3324);else{if(_0x1b9660===_0x991b44(0x11c))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x545d59+'\x27',_0x4b3324);else throw new SDKError(ErrorCode[_0x991b44(0x122)],_0x991b44(0x123)+_0x545d59+'\x27:\x20'+_0x4b3324[_0x991b44(0x128)],_0x4b3324);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x517d94,_0x119130){const _0x27b9db=a205_0x57a9,_0x3e0957=_0x517d94();while(!![]){try{const _0xe2d282=parseInt(_0x27b9db(0x1e0))/0x1*(parseInt(_0x27b9db(0x1d7))/0x2)+parseInt(_0x27b9db(0x1e4))/0x3+-parseInt(_0x27b9db(0x1e2))/0x4*(-parseInt(_0x27b9db(0x1d1))/0x5)+parseInt(_0x27b9db(0x1cf))/0x6*(-parseInt(_0x27b9db(0x1dc))/0x7)+parseInt(_0x27b9db(0x1da))/0x8+parseInt(_0x27b9db(0x1cb))/0x9+-parseInt(_0x27b9db(0x1d5))/0xa;if(_0xe2d282===_0x119130)break;else _0x3e0957['push'](_0x3e0957['shift']());}catch(_0x1e764f){_0x3e0957['push'](_0x3e0957['shift']());}}}(a205_0x3611,0x3cf6a));import*as a205_0x5d2b00 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x5439be,_0x1096cb,_0x47aec1){const _0x3ea0d8=a205_0x57a9,_0x184bdd=_0x5439be+'/'+_0x1096cb,_0x496bc9=cache[_0x3ea0d8(0x1ca)](_0x184bdd);if(_0x496bc9&&Date[_0x3ea0d8(0x1cc)]()-_0x496bc9[_0x3ea0d8(0x1ce)]<CACHE_TTL_MS)return Promise[_0x3ea0d8(0x1d0)](_0x496bc9[_0x3ea0d8(0x1de)]);return new Promise((_0x340717,_0x1e7d84)=>{const _0x7361bb=_0x3ea0d8,_0x295981={'hostname':_0x7361bb(0x1d3),'path':_0x7361bb(0x1cd)+_0x5439be+'/'+_0x1096cb+_0x7361bb(0x1d4),'headers':{'User-Agent':_0x47aec1,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x17e281=a205_0x5d2b00[_0x7361bb(0x1ca)](_0x295981,_0x295b98=>{let _0xa73faa='';_0x295b98['on']('data',_0x671797=>{const _0x2c7bbb=a205_0x57a9;_0xa73faa+=_0x671797[_0x2c7bbb(0x1e3)]();}),_0x295b98['on']('end',()=>{const _0x13fa5d=a205_0x57a9;if(_0x295b98[_0x13fa5d(0x1db)]!==0xc8){_0x1e7d84(new Error(_0x13fa5d(0x1df)+_0x295b98[_0x13fa5d(0x1db)]+':\x20'+_0xa73faa[_0x13fa5d(0x1d8)](0x0,0xc8)));return;}try{const _0x874531=JSON[_0x13fa5d(0x1e1)](_0xa73faa);cache['set'](_0x184bdd,{'releases':_0x874531,'fetchedAt':Date[_0x13fa5d(0x1cc)]()}),_0x340717(_0x874531);}catch(_0x26dd84){_0x1e7d84(_0x26dd84);}});});_0x17e281['on']('timeout',()=>{const _0x1b39a3=_0x7361bb;_0x17e281[_0x1b39a3(0x1d2)](),_0x1e7d84(new Error(_0x1b39a3(0x1dd)+REQUEST_TIMEOUT_MS+'ms'));}),_0x17e281['on'](_0x7361bb(0x1c9),_0x1e7d84);});}function a205_0x57a9(_0x5dedb4,_0x38bb8b){_0x5dedb4=_0x5dedb4-0x1c8;const _0x361193=a205_0x3611();let _0x57a9fa=_0x361193[_0x5dedb4];return _0x57a9fa;}function a205_0x3611(){const _0x195b3b=['statusCode','7EtMZUG','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','releases','GitHub\x20API\x20returned\x20','2Bwylpm','parse','208vbmXFK','toString','152190XNoPhi','length','error','get','3477510nttpSk','now','/repos/','fetchedAt','2021766dHGXyj','resolve','1735PlZvVr','destroy','api.github.com','/releases?per_page=20','1924980KMzAJY','tag_name','205628IJxhSa','slice','find','946984MXtAPv'];a205_0x3611=function(){return _0x195b3b;};return a205_0x3611();}export async function resolveReleaseTag(_0x208e36,_0x254959,_0x520aa0,_0xb25ca){const _0x144057=a205_0x57a9,_0x5d9ea7=await fetchGitHubReleases(_0x254959,_0x520aa0,_0xb25ca);if(_0x5d9ea7[_0x144057(0x1c8)]===0x0)return null;if(_0x208e36==='next')return _0x5d9ea7[0x0][_0x144057(0x1d6)];const _0x124084=_0x5d9ea7[_0x144057(0x1d9)](_0x4ca6e8=>!_0x4ca6e8['prerelease']);return _0x124084?_0x124084['tag_name']:null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x393d67,_0x23789e){const _0x4fc116=a206_0x1ef4,_0xbe784f=_0x393d67();while(!![]){try{const _0x4a9b70=-parseInt(_0x4fc116(0x17f))/0x1+parseInt(_0x4fc116(0x172))/0x2+parseInt(_0x4fc116(0x170))/0x3+-parseInt(_0x4fc116(0x179))/0x4+parseInt(_0x4fc116(0x178))/0x5*(parseInt(_0x4fc116(0x16f))/0x6)+-parseInt(_0x4fc116(0x177))/0x7*(-parseInt(_0x4fc116(0x176))/0x8)+-parseInt(_0x4fc116(0x17a))/0x9;if(_0x4a9b70===_0x23789e)break;else _0xbe784f['push'](_0xbe784f['shift']());}catch(_0x2e16f4){_0xbe784f['push'](_0xbe784f['shift']());}}}(a206_0x250f,0x9da14));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x32d196=a206_0x1ef4;return process.env.TDX_CACHE_DIR||join(homedir(),_0x32d196(0x175),_0x32d196(0x17b));}const registry=new Map();export function registerGlobalCacheKey(_0x315541,_0x5d3829){const _0x596e1c=a206_0x1ef4,_0x57f3be=registry['get'](_0x315541);if(_0x57f3be&&_0x57f3be!==_0x5d3829)throw new Error('Global\x20cache\x20key\x20\x22'+_0x315541+_0x596e1c(0x180)+_0x57f3be+_0x596e1c(0x17c)+_0x5d3829+'\x22');registry[_0x596e1c(0x17d)](_0x315541,_0x5d3829);}export function getGlobalCachePath(_0x5e2e97){return join(getGlobalCacheDir(),_0x5e2e97);}function ensureGlobalCacheDir(){const _0x5014bf=getGlobalCacheDir();!existsSync(_0x5014bf)&&mkdirSync(_0x5014bf,{'recursive':!![]});}function readCacheJson(_0x45bd3e){const _0x24e5d1=a206_0x1ef4,_0x495ffb=getGlobalCachePath(_0x45bd3e);if(!existsSync(_0x495ffb))return undefined;try{const _0x20cdb1=readFileSync(_0x495ffb,'utf-8');return JSON[_0x24e5d1(0x173)](_0x20cdb1);}catch{return undefined;}}function writeCacheJson(_0x45bffc,_0x43076d){const _0x2deb98=a206_0x1ef4;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x45bffc),JSON[_0x2deb98(0x16e)](_0x43076d,null,0x2),'utf-8');}function readCacheText(_0x2b2796){const _0x5eadd9=a206_0x1ef4,_0x55abf1=getGlobalCachePath(_0x2b2796);if(!existsSync(_0x55abf1))return undefined;try{return readFileSync(_0x55abf1,_0x5eadd9(0x17e));}catch{return undefined;}}function writeCacheText(_0x4999cf,_0x5238c4){const _0x4104c2=a206_0x1ef4;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4999cf),_0x5238c4,_0x4104c2(0x17e));}function clearCache(_0x4b28f2){const _0x44dfe0=getGlobalCachePath(_0x4b28f2);if(existsSync(_0x44dfe0))try{unlinkSync(_0x44dfe0);}catch{}}function cacheExists(_0x5a2d09){return existsSync(getGlobalCachePath(_0x5a2d09));}export function createGlobalCache(_0x1c8e16,_0x597934){return registerGlobalCacheKey(_0x1c8e16,_0x597934),{'read':()=>readCacheJson(_0x1c8e16),'write':_0x4eef72=>writeCacheJson(_0x1c8e16,_0x4eef72),'clear':()=>clearCache(_0x1c8e16),'exists':()=>cacheExists(_0x1c8e16),'path':()=>getGlobalCachePath(_0x1c8e16)};}function a206_0x1ef4(_0xf685e7,_0x2b8330){_0xf685e7=_0xf685e7-0x16e;const _0x250f1d=a206_0x250f();let _0x1ef4c7=_0x250f1d[_0xf685e7];return _0x1ef4c7;}export function createGlobalTextCache(_0x4d82be,_0x4a10e6){return registerGlobalCacheKey(_0x4d82be,_0x4a10e6),{'read':()=>readCacheText(_0x4d82be)?.['trim']()||undefined,'write':_0xe61a81=>writeCacheText(_0x4d82be,_0xe61a81),'clear':()=>clearCache(_0x4d82be),'exists':()=>cacheExists(_0x4d82be),'path':()=>getGlobalCachePath(_0x4d82be)};}export function createProfileCache(_0x51a810,_0x8f309b){const _0x3d090f=_0x371ea3=>{const _0x203aff=a206_0x1ef4,_0x5d656b=_0x371ea3||'default';return _0x51a810['replace'](_0x203aff(0x174),_0x5d656b);};return{'read':_0x154b47=>{const _0xeb9cb=_0x3d090f(_0x154b47);return registerGlobalCacheKey(_0xeb9cb,_0x8f309b),readCacheJson(_0xeb9cb);},'write':(_0xf2fba7,_0x320c62)=>{const _0x433607=_0x3d090f(_0xf2fba7);registerGlobalCacheKey(_0x433607,_0x8f309b),writeCacheJson(_0x433607,_0x320c62);},'clear':_0x32ca9e=>{const _0x12935e=_0x3d090f(_0x32ca9e);clearCache(_0x12935e);},'exists':_0x27feef=>{const _0x505892=_0x3d090f(_0x27feef);return cacheExists(_0x505892);},'path':_0x32f2dd=>{const _0x1e8260=_0x3d090f(_0x32f2dd);return getGlobalCachePath(_0x1e8260);}};}function a206_0x250f(){const _0x4effa8=['345426KicwsH','1801236QzcaLa','clear','1418528ocaihV','parse','{profile}','.cache','8wjYXen','2569889THZFzo','50gymfyZ','3127840WYgktk','540639TryBTn','tdx','\x22,\x20cannot\x20register\x20for\x20\x22','set','utf-8','764830EVWanm','\x22\x20already\x20registered\x20by\x20\x22','stringify'];a206_0x250f=function(){return _0x4effa8;};return a206_0x250f();}export function createOptionalProfileCache(_0x7b1be8,_0x347f76,_0x2af500={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2af500,_0x33719a=_0x2daf7f=>{return _0x2daf7f?''+_0x7b1be8+profileSeparator+_0x2daf7f+suffix:''+_0x7b1be8+suffix;};return{'read':_0x232a82=>{const _0x4c3886=_0x33719a(_0x232a82);return registerGlobalCacheKey(_0x4c3886,_0x347f76),readCacheJson(_0x4c3886);},'write':(_0x5fc246,_0x50c1a4)=>{const _0x30a45a=_0x33719a(_0x50c1a4);registerGlobalCacheKey(_0x30a45a,_0x347f76),writeCacheJson(_0x30a45a,_0x5fc246);},'clear':_0x2abca1=>{const _0x4cdc82=_0x33719a(_0x2abca1);clearCache(_0x4cdc82);},'exists':_0x2682a9=>{const _0x5aae13=_0x33719a(_0x2682a9);return cacheExists(_0x5aae13);},'path':_0x3d5a62=>{const _0x1de78a=_0x33719a(_0x3d5a62);return getGlobalCachePath(_0x1de78a);}};}export function clearGlobalRegistry(){const _0x4d0e32=a206_0x1ef4;registry[_0x4d0e32(0x171)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5545c3,_0x5de93a){const _0x42f14f=a207_0x39c1,_0x3a7326=_0x5545c3();while(!![]){try{const _0x59e322=parseInt(_0x42f14f(0x16e))/0x1+-parseInt(_0x42f14f(0x178))/0x2+-parseInt(_0x42f14f(0x170))/0x3*(parseInt(_0x42f14f(0x16f))/0x4)+parseInt(_0x42f14f(0x166))/0x5+parseInt(_0x42f14f(0x16b))/0x6+parseInt(_0x42f14f(0x179))/0x7*(parseInt(_0x42f14f(0x177))/0x8)+parseInt(_0x42f14f(0x168))/0x9;if(_0x59e322===_0x5de93a)break;else _0x3a7326['push'](_0x3a7326['shift']());}catch(_0x19e3ec){_0x3a7326['push'](_0x3a7326['shift']());}}}(a207_0x3132,0x43407));function a207_0x3132(){const _0x5b3647=['INVALID_ARGUMENT','code','NOT_FOUND','ENOENT','24ylGSUM','816766NPKyhp','770147JGymUp','\x27:\x20','Failed\x20to\x20load\x20JSON:\x20','516805jtSkIB','message','273447CDEorv','utf-8','PERMISSION_DENIED','1091442LKlWRY','File\x20not\x20found:\x20','INTERNAL','473856zGgmXv','8rJWBIQ','653586vqgcHt','Permission\x20denied\x20reading\x20file:\x20','parse'];a207_0x3132=function(){return _0x5b3647;};return a207_0x3132();}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x174625,_0x520726){const _0x1f10d1=a207_0x39c1;try{if(_0x520726){const _0x26b0c9=await readFile(_0x174625,_0x1f10d1(0x169));try{return JSON[_0x1f10d1(0x172)](_0x26b0c9);}catch(_0x2c5193){throw new SDKError(ErrorCode[_0x1f10d1(0x173)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x174625+_0x1f10d1(0x17a)+(_0x2c5193 instanceof Error?_0x2c5193[_0x1f10d1(0x167)]:String(_0x2c5193)));}}else try{return JSON['parse'](_0x174625);}catch(_0x1f3d81){throw new SDKError(ErrorCode[_0x1f10d1(0x173)],'Invalid\x20JSON\x20string:\x20'+(_0x1f3d81 instanceof Error?_0x1f3d81[_0x1f10d1(0x167)]:String(_0x1f3d81)));}}catch(_0x564117){if(_0x564117 instanceof SDKError)throw _0x564117;if(_0x564117 instanceof Error&&_0x1f10d1(0x174)in _0x564117){const _0x3d09b5=_0x564117;if(_0x3d09b5[_0x1f10d1(0x174)]===_0x1f10d1(0x176))throw new SDKError(ErrorCode[_0x1f10d1(0x175)],_0x1f10d1(0x16c)+_0x174625);else{if(_0x3d09b5[_0x1f10d1(0x174)]==='EACCES')throw new SDKError(ErrorCode[_0x1f10d1(0x16a)],_0x1f10d1(0x171)+_0x174625);}}throw new SDKError(ErrorCode[_0x1f10d1(0x16d)],_0x1f10d1(0x165)+(_0x564117 instanceof Error?_0x564117[_0x1f10d1(0x167)]:String(_0x564117)));}}function a207_0x39c1(_0x47bbe1,_0x3c364e){_0x47bbe1=_0x47bbe1-0x165;const _0x3132a9=a207_0x3132();let _0x39c1cb=_0x3132a9[_0x47bbe1];return _0x39c1cb;}export async function loadJSONFromOptions(_0x2fcac3,_0x48d05f){const _0x4a8e8e=a207_0x39c1;if(_0x2fcac3&&_0x48d05f)throw new SDKError(ErrorCode[_0x4a8e8e(0x173)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x2fcac3)return await loadJSON(_0x2fcac3,![]);if(_0x48d05f)return await loadJSON(_0x48d05f,!![]);return undefined;}
|