@treasuredata/tdx 2026.8.6 → 2026.8.7
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/cas-command.js +1 -1
- package/dist/commands/cas-segment-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/codex-command.d.ts +2 -1
- package/dist/commands/codex-command.d.ts.map +1 -1
- package/dist/commands/codex-command.js +1 -1
- package/dist/commands/codex-command.js.map +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-always-on-campaign-pull-command.js +1 -1
- package/dist/commands/engage-always-on-campaign-push-command.js +1 -1
- package/dist/commands/engage-always-on-campaign-validate-command.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.d.ts.map +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-command.js.map +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/p13n-command.d.ts +16 -1
- package/dist/commands/p13n-command.d.ts.map +1 -1
- package/dist/commands/p13n-command.js +1 -1
- package/dist/commands/p13n-command.js.map +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/policy-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-move-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/table-deleted.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.d.ts +1 -0
- 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 +1 -0
- 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/work-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.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/site-mismatch.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/tools/work-create-item.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/auth-token.js +1 -1
- package/dist/sdk/cas/cas-api-client.js +1 -1
- package/dist/sdk/cas/cas-audience-schema.js +1 -1
- package/dist/sdk/cas/cas-audience-validator.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js +1 -1
- package/dist/sdk/cas/cas-segment-schema.js +1 -1
- package/dist/sdk/cas/cas-segment-validator.js +1 -1
- package/dist/sdk/cas/cas-segment-yaml.js +1 -1
- package/dist/sdk/cas/index.js +1 -1
- package/dist/sdk/cas/pull-workflow.js +1 -1
- package/dist/sdk/cas/push-workflow.js +1 -1
- package/dist/sdk/cas/validate-files.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.d.ts +10 -2
- package/dist/sdk/client/engage-api-client.d.ts.map +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/engage-api-client.js.map +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/oauth-refresh.js +1 -1
- package/dist/sdk/client/p13n-studio-api-client.d.ts +65 -1
- package/dist/sdk/client/p13n-studio-api-client.d.ts.map +1 -1
- package/dist/sdk/client/p13n-studio-api-client.js +1 -1
- package/dist/sdk/client/p13n-studio-api-client.js.map +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/delivery.js +1 -1
- package/dist/sdk/engage/always-on-campaign-pull.js +1 -1
- package/dist/sdk/engage/always-on-campaign-push.js +1 -1
- package/dist/sdk/engage/always-on-campaign-validator.js +1 -1
- package/dist/sdk/engage/always-on-campaign-yaml.js +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/template-pull.js +1 -1
- package/dist/sdk/engage/template-push.js +1 -1
- package/dist/sdk/engage/template-validator.js +1 -1
- package/dist/sdk/engage/template-yaml.js +1 -1
- package/dist/sdk/engage/types/always-on-campaign-schema.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.js +1 -1
- package/dist/sdk/engage.d.ts +7 -2
- package/dist/sdk/engage.d.ts.map +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/engage.js.map +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.d.ts +5 -1
- 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/llm/user-settings.js +1 -1
- package/dist/sdk/p13n-studio.d.ts +148 -1
- package/dist/sdk/p13n-studio.d.ts.map +1 -1
- package/dist/sdk/p13n-studio.js +1 -1
- package/dist/sdk/p13n-studio.js.map +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/policy.js +1 -1
- package/dist/sdk/query/deleted-table-validation.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/engage.d.ts +41 -0
- package/dist/sdk/types/engage.d.ts.map +1 -1
- package/dist/sdk/types/index.d.ts +3 -2
- 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/p13n-studio.d.ts +73 -0
- package/dist/sdk/types/p13n-studio.d.ts.map +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/types/workspace.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/paginate.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/util/tree-search.js +1 -1
- package/dist/sdk/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/task-graph.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/sdk/workspace/access-tracker.js +1 -1
- package/dist/sdk/workspace/frontmatter.js +1 -1
- package/dist/sdk/workspace/git.js +1 -1
- package/dist/sdk/workspace/index.js +1 -1
- package/dist/sdk/workspace/templates.js +1 -1
- package/dist/sdk/workspace/weekly.js +1 -1
- package/dist/sdk/workspace/wikilinks.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/claude-code-state.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/file-reader.js +1 -1
- package/dist/utils/github-releases.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/proxy-fetch.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a233_0x1c50e2=a233_0x240b;(function(_0x20c7ad,_0x439135){const _0x419669=a233_0x240b,_0xf4bfe1=_0x20c7ad();while(!![]){try{const _0x5de97b=-parseInt(_0x419669(0xb4))/0x1+-parseInt(_0x419669(0xa7))/0x2+-parseInt(_0x419669(0xad))/0x3*(parseInt(_0x419669(0xc2))/0x4)+parseInt(_0x419669(0xbd))/0x5+-parseInt(_0x419669(0xf0))/0x6*(-parseInt(_0x419669(0xa8))/0x7)+-parseInt(_0x419669(0xbe))/0x8+-parseInt(_0x419669(0xb9))/0x9*(-parseInt(_0x419669(0xb0))/0xa);if(_0x5de97b===_0x439135)break;else _0xf4bfe1['push'](_0xf4bfe1['shift']());}catch(_0x445455){_0xf4bfe1['push'](_0xf4bfe1['shift']());}}}(a233_0x477f,0x7dee2));import{vi}from'vitest';function a233_0x240b(_0x14d2ec,_0x3bfbab){_0x14d2ec=_0x14d2ec-0xa2;const _0x477f21=a233_0x477f();let _0x240b6d=_0x477f21[_0x14d2ec];return _0x240b6d;}export class HTTPMockRegistry{['stubs']=[];[a233_0x1c50e2(0xc5)]=[];[a233_0x1c50e2(0xa9)]=null;[a233_0x1c50e2(0xca)](_0xdb7a33,_0x3e4f39){return _0x5bccaf=>{const _0x2a77f6=a233_0x240b;if(_0x5bccaf[_0x2a77f6(0xae)][_0x2a77f6(0xc8)]()!==_0xdb7a33[_0x2a77f6(0xc8)]())return![];const _0x5ddaaa=new URL(_0x5bccaf[_0x2a77f6(0xf1)]);if(typeof _0x3e4f39==='string')return _0x5ddaaa['pathname']===_0x3e4f39||_0x5ddaaa[_0x2a77f6(0xc0)][_0x2a77f6(0xe3)](_0x3e4f39);return _0x3e4f39[_0x2a77f6(0xbb)](_0x5ddaaa['pathname']);};}[a233_0x1c50e2(0xb7)](_0x382902,_0x396bf4){return _0x51d7f9=>{const _0x1535b9=a233_0x240b;if(!_0x382902(_0x51d7f9))return![];const _0x517ccf=new URL(_0x51d7f9[_0x1535b9(0xf1)]);return Object[_0x1535b9(0xe1)](_0x396bf4)[_0x1535b9(0xc9)](([_0x1100fc,_0x2b6d91])=>_0x517ccf[_0x1535b9(0xe5)]['get'](_0x1100fc)===_0x2b6d91);};}[a233_0x1c50e2(0xe9)](_0x57412c,_0x790a63){return _0x5bf4b5=>{const _0x115f39=a233_0x240b;if(!_0x57412c(_0x5bf4b5))return![];if(typeof _0x790a63===_0x115f39(0xcd))return _0x790a63(_0x5bf4b5['body']);return JSON[_0x115f39(0xaf)](_0x5bf4b5[_0x115f39(0xeb)])===JSON[_0x115f39(0xaf)](_0x790a63);};}[a233_0x1c50e2(0xde)](_0x4061f6,_0x1a1868){return _0x52c8ed=>{const _0x53c8ea=a233_0x240b;if(!_0x4061f6(_0x52c8ed))return![];const _0x2b5120=new URL(_0x52c8ed[_0x53c8ea(0xf1)]);return _0x2b5120[_0x53c8ea(0xdd)]===_0x1a1868;};}[a233_0x1c50e2(0xb5)](_0xbb009e,_0x3a9393,_0x29ed81){const _0x59c076=a233_0x1c50e2;this[_0x59c076(0xc1)][_0x59c076(0xb8)]({'matcher':_0xbb009e,'responder':_0x3a9393,'matched':![],'matchCount':0x0,'stack':new Error()[_0x59c076(0xb1)]??'','description':_0x29ed81?.['description']});}[a233_0x1c50e2(0xe2)](_0x31752f,_0x2d1bce,_0x2d5625){const _0x5ba430=a233_0x1c50e2,_0x3446ee=_0x22b60b=>{return _0x2d5625(_0x22b60b['body'],_0x22b60b),_0x2d1bce(_0x22b60b);};this[_0x5ba430(0xb5)](_0x31752f,_0x3446ee);}static[a233_0x1c50e2(0xa5)](_0x337a0f,_0x5622c2=0xc8){const _0x36fad8=a233_0x1c50e2;return()=>new Response(JSON[_0x36fad8(0xaf)](_0x337a0f),{'status':_0x5622c2,'headers':{'Content-Type':'application/json'}});}static[a233_0x1c50e2(0xdc)](_0x1b293e,_0x373f40,_0x3e83a3=a233_0x1c50e2(0xf6)){return()=>{const _0x6523e3=a233_0x240b;let _0x30499d;switch(_0x3e83a3){case _0x6523e3(0xa6):_0x30499d={'errors':{'error':_0x373f40,'message':_0x373f40,'severity':'error','status_code':_0x1b293e}};break;case _0x6523e3(0xee):_0x30499d={'type':'https://api.treasuredata.com/errors/'+_0x1b293e,'title':HTTPMockRegistry[_0x6523e3(0xac)](_0x1b293e),'status':_0x1b293e,'detail':_0x373f40};break;default:_0x30499d={'error':_0x373f40};}return new Response(JSON[_0x6523e3(0xaf)](_0x30499d),{'status':_0x1b293e,'headers':{'Content-Type':_0x6523e3(0xf2)}});};}static[a233_0x1c50e2(0xcb)](_0x1956ba,_0x2ea627,_0x27f4f0=0xc8){const _0x2be930=a233_0x1c50e2;return()=>new Response(JSON[_0x2be930(0xaf)](_0x1956ba),{'status':_0x27f4f0,'headers':{'Content-Type':'application/json',..._0x2ea627}});}static[a233_0x1c50e2(0xf4)](_0x547733,_0x3654bd=0xc8){const _0x16a86d=a233_0x1c50e2;return()=>new Response(_0x547733,{'status':_0x3654bd,'headers':{'Content-Type':_0x16a86d(0xcf)}});}static[a233_0x1c50e2(0xd8)](_0x463e1e){return()=>{throw new Error(_0x463e1e);};}['createFetch'](){const _0x165bb8=a233_0x1c50e2;return this['fetchMock']=vi['fn']()[_0x165bb8(0xc3)](async(_0x275540,_0x2e0ed9)=>{const _0x44bc7f=_0x165bb8,_0x595299=this[_0x44bc7f(0xbc)](_0x275540,_0x2e0ed9);this['requests'][_0x44bc7f(0xb8)](_0x595299);for(const _0x33a669 of this[_0x44bc7f(0xc1)]){if(_0x33a669[_0x44bc7f(0xd6)](_0x595299))return _0x33a669['matched']=!![],_0x33a669[_0x44bc7f(0xf5)]++,_0x33a669[_0x44bc7f(0xd5)](_0x595299);}const _0x5ca523=this[_0x44bc7f(0xc1)][_0x44bc7f(0xd0)]((_0x408791,_0x156cb9)=>'\x20\x20'+(_0x156cb9+0x1)+'.\x20'+(_0x408791[_0x44bc7f(0xd7)]??_0x44bc7f(0xc6)))[_0x44bc7f(0xed)]('\x0a');throw new Error('No\x20stub\x20matched\x20request:\x20'+_0x595299[_0x44bc7f(0xae)]+'\x20'+_0x595299[_0x44bc7f(0xf1)]+'\x0a'+('Request\x20body:\x20'+JSON['stringify'](_0x595299[_0x44bc7f(0xeb)])+'\x0a')+('Registered\x20stubs:\x0a'+(_0x5ca523||_0x44bc7f(0xdb))));}),this['fetchMock'];}[a233_0x1c50e2(0xbc)](_0x1eae8c,_0x3d74c2){const _0x94fe27=a233_0x1c50e2,_0x2565ef={};if(_0x3d74c2?.['headers']){if(_0x3d74c2[_0x94fe27(0xe0)]instanceof Headers)_0x3d74c2[_0x94fe27(0xe0)][_0x94fe27(0xda)]((_0x3213f0,_0x4f3ff7)=>{const _0x3a01e2=_0x94fe27;_0x2565ef[_0x4f3ff7[_0x3a01e2(0xe6)]()]=_0x3213f0;});else{if(Array[_0x94fe27(0xea)](_0x3d74c2[_0x94fe27(0xe0)]))for(const [_0x5d31c7,_0x136abd]of _0x3d74c2[_0x94fe27(0xe0)]){_0x2565ef[_0x5d31c7[_0x94fe27(0xe6)]()]=_0x136abd;}else for(const [_0x568050,_0x260752]of Object[_0x94fe27(0xe1)](_0x3d74c2[_0x94fe27(0xe0)])){_0x260752!==undefined&&(_0x2565ef[_0x568050[_0x94fe27(0xe6)]()]=_0x260752);}}}let _0x51f759;if(_0x3d74c2?.[_0x94fe27(0xeb)])try{_0x51f759=JSON[_0x94fe27(0xaa)](_0x3d74c2['body']);}catch{_0x51f759=_0x3d74c2[_0x94fe27(0xeb)];}return{'method':_0x3d74c2?.[_0x94fe27(0xae)]??_0x94fe27(0xbf),'url':_0x1eae8c,'headers':_0x2565ef,'body':_0x51f759};}['verify'](_0x37151b){const _0x124a62=a233_0x1c50e2,_0x222ec1=this[_0x124a62(0xc1)][_0x124a62(0xba)](_0x32e2e1=>!_0x32e2e1[_0x124a62(0xdf)]);if(_0x222ec1[_0x124a62(0xf3)]>0x0){const _0x52c42b=_0x222ec1[_0x124a62(0xd0)](_0x3ababb=>{const _0x5327b4=_0x124a62,_0x36bfb2=_0x3ababb[_0x5327b4(0xd7)]?'\x20('+_0x3ababb[_0x5327b4(0xd7)]+')':'',_0xb713ce=_0x3ababb[_0x5327b4(0xb1)][_0x5327b4(0xab)]('\x0a')[_0x5327b4(0xb6)](0x2,0x5)[_0x5327b4(0xed)]('\x0a');return _0x5327b4(0xe8)+_0x36bfb2+_0x5327b4(0xb2)+_0xb713ce;});_0x37151b[_0x124a62(0xd3)](_0x222ec1[_0x124a62(0xf3)]+_0x124a62(0xd1)+_0x52c42b[_0x124a62(0xed)]('\x0a\x0a'));}}['getRequests'](){const _0x3d8f2b=a233_0x1c50e2;return[...this[_0x3d8f2b(0xc5)]];}[a233_0x1c50e2(0xa4)](){const _0x1ad52f=a233_0x1c50e2;return this['requests'][this[_0x1ad52f(0xc5)][_0x1ad52f(0xf3)]-0x1];}['wasCalled'](_0x4d7a65,_0x2a1f64){const _0x257f65=a233_0x1c50e2;return this[_0x257f65(0xc5)][_0x257f65(0xcc)](_0x10f8b6=>{const _0x4cbd0f=_0x257f65;if(_0x10f8b6[_0x4cbd0f(0xae)][_0x4cbd0f(0xc8)]()!==_0x4d7a65[_0x4cbd0f(0xc8)]())return![];if(typeof _0x2a1f64===_0x4cbd0f(0xc7))return _0x10f8b6[_0x4cbd0f(0xf1)][_0x4cbd0f(0xe3)](_0x2a1f64);return _0x2a1f64[_0x4cbd0f(0xbb)](_0x10f8b6[_0x4cbd0f(0xf1)]);});}[a233_0x1c50e2(0xa2)](_0x2aa905){return this['stubs'][_0x2aa905]?.['matchCount']??0x0;}[a233_0x1c50e2(0xd2)](){const _0x489b05=a233_0x1c50e2;this[_0x489b05(0xc1)]=[],this[_0x489b05(0xc5)]=[],this['fetchMock']=null;}static[a233_0x1c50e2(0xac)](_0x4b1989){const _0x14013e=a233_0x1c50e2,_0x4537dc={0xc8:'OK',0xc9:_0x14013e(0xd4),0xcc:_0x14013e(0xef),0x190:'Bad\x20Request',0x191:_0x14013e(0xc4),0x193:_0x14013e(0xd9),0x194:'Not\x20Found',0x199:_0x14013e(0xce),0x1a6:'Unprocessable\x20Entity',0x1ad:_0x14013e(0xec),0x1f4:_0x14013e(0xa3),0x1f6:_0x14013e(0xb3),0x1f7:_0x14013e(0xe4)};return _0x4537dc[_0x4b1989]??_0x14013e(0xe7);}}function a233_0x477f(){const _0x16814b=['GET','pathname','stubs','4ckQHQf','mockImplementation','Unauthorized','requests','unnamed\x20stub','string','toUpperCase','every','REST','jsonResponseWithHeaders','some','function','Conflict','text/plain','map','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','reset','fail','Created','responder','matcher','description','networkError','Forbidden','forEach','\x20\x20(none)','errorResponse','host','withHost','matched','headers','entries','registerWithInspector','includes','Service\x20Unavailable','searchParams','toLowerCase','Unknown','Unmatched\x20stub','withBody','isArray','body','Too\x20Many\x20Requests','join','rfc9457','No\x20Content','3440388EycBxq','url','application/json','length','textResponse','matchCount','simple','getMatchCount','Internal\x20Server\x20Error','getLastRequest','jsonResponse','td-api','964768NsjEUg','7KGpdoy','fetchMock','parse','split','getStatusText','693747rpuoat','method','stringify','1127570jfCGzb','stack','\x20registered\x20at:\x0a','Bad\x20Gateway','771469HkSmCL','register','slice','withQuery','push','153FiwQju','filter','test','parseRequest','128090NMrkjg','4119784YPImSG'];a233_0x477f=function(){return _0x16814b;};return a233_0x477f();}export function createHTTPMock(){return new HTTPMockRegistry();}
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3a6aed,_0xfa8d5a){var _0x335026=a234_0x4d96,_0x1ee333=_0x3a6aed();while(!![]){try{var _0xb15cb5=parseInt(_0x335026(0x1ed))/0x1*(parseInt(_0x335026(0x1f4))/0x2)+-parseInt(_0x335026(0x1f3))/0x3+parseInt(_0x335026(0x1eb))/0x4+parseInt(_0x335026(0x1ef))/0x5*(parseInt(_0x335026(0x1f2))/0x6)+parseInt(_0x335026(0x1ec))/0x7+parseInt(_0x335026(0x1f0))/0x8+-parseInt(_0x335026(0x1ee))/0x9*(parseInt(_0x335026(0x1f1))/0xa);if(_0xb15cb5===_0xfa8d5a)break;else _0x1ee333['push'](_0x1ee333['shift']());}catch(_0x2ec8e3){_0x1ee333['push'](_0x1ee333['shift']());}}}(a234_0x1514,0x73590));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a234_0x1514(){var _0x3d00fb=['2187255Xxcrkv','16993RIBTsk','16814475GFfbDi','230qgytLp','3643464xMAgKc','10izwSID','97074XIEVuB','1870872vLArCD','74pDZKdj','3293960rzsYrL'];a234_0x1514=function(){return _0x3d00fb;};return a234_0x1514();}function a234_0x4d96(_0x30f6d3,_0x34f108){_0x30f6d3=_0x30f6d3-0x1eb;var _0x151403=a234_0x1514();var _0x4d962=_0x151403[_0x30f6d3];return _0x4d962;}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole,writeTestProfile}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
|
package/dist/utils/async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a235_0xcbc2(){const _0x5bd313=['map','28479EWLscz','243vaedfc','24feMAhQ','5680xtYSiJ','4700193pltjdA','249072cyOQdW','3784372aQXKzM','917694gCSHwL','2IJThcM','length','all','239300lHgcnK','slice','2793385KhAXXE'];a235_0xcbc2=function(){return _0x5bd313;};return a235_0xcbc2();}(function(_0x46f42d,_0x3acbbf){const _0x4a9faa=a235_0x1814,_0x5d035f=_0x46f42d();while(!![]){try{const _0x43bba6=-parseInt(_0x4a9faa(0x150))/0x1+parseInt(_0x4a9faa(0x151))/0x2*(parseInt(_0x4a9faa(0x14d))/0x3)+parseInt(_0x4a9faa(0x14f))/0x4+-parseInt(_0x4a9faa(0x154))/0x5+-parseInt(_0x4a9faa(0x14b))/0x6*(-parseInt(_0x4a9faa(0x156))/0x7)+-parseInt(_0x4a9faa(0x14e))/0x8*(parseInt(_0x4a9faa(0x159))/0x9)+parseInt(_0x4a9faa(0x14c))/0xa*(-parseInt(_0x4a9faa(0x158))/0xb);if(_0x43bba6===_0x3acbbf)break;else _0x5d035f['push'](_0x5d035f['shift']());}catch(_0x4a4d9a){_0x5d035f['push'](_0x5d035f['shift']());}}}(a235_0xcbc2,0xcb340));function a235_0x1814(_0x43192d,_0x5a66d9){_0x43192d=_0x43192d-0x14b;const _0xcbc2f2=a235_0xcbc2();let _0x18148f=_0xcbc2f2[_0x43192d];return _0x18148f;}export async function batchAsync(_0x183fc6,_0x3f3356,_0x334163=0xa){const _0x501893=a235_0x1814,_0x118dfc=[];for(let _0x125e89=0x0;_0x125e89<_0x183fc6[_0x501893(0x152)];_0x125e89+=_0x334163){const _0x30a784=_0x183fc6[_0x501893(0x155)](_0x125e89,_0x125e89+_0x334163),_0x4f1f76=await Promise[_0x501893(0x153)](_0x30a784[_0x501893(0x157)](_0x3f3356));_0x118dfc['push'](..._0x4f1f76);}return _0x118dfc;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a236_0x486e(){const _0x337bad=['object','1452006wcYQwx','repo','3309504abqilR','length','url','string','1724821ivRpfV','known_marketplaces.json','utf-8','8tWjibZ','https://github.com/','replace','installed_plugins.json','.claude','2227850jkSXLA','isArray','.mcp.json','projects','plugins','parse','1208004WUdwbq','.claude.json','4eqJOZL','mcpServers','toLowerCase','12434445sStUeI','624577OSqnSy'];a236_0x486e=function(){return _0x337bad;};return a236_0x486e();}(function(_0x1ffc3a,_0x2db613){const _0x4d0213=a236_0x36d4,_0x14a75f=_0x1ffc3a();while(!![]){try{const _0x4867f0=-parseInt(_0x4d0213(0x1b6))/0x1+parseInt(_0x4d0213(0x1b0))/0x2+parseInt(_0x4d0213(0x1b8))/0x3+parseInt(_0x4d0213(0x1b2))/0x4*(parseInt(_0x4d0213(0x1aa))/0x5)+parseInt(_0x4d0213(0x19e))/0x6+parseInt(_0x4d0213(0x1a2))/0x7*(parseInt(_0x4d0213(0x1a5))/0x8)+-parseInt(_0x4d0213(0x1b5))/0x9;if(_0x4867f0===_0x2db613)break;else _0x14a75f['push'](_0x14a75f['shift']());}catch(_0x2cf006){_0x14a75f['push'](_0x14a75f['shift']());}}}(a236_0x486e,0x4f703));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export function getClaudeConfigDir(){const _0x594c34=a236_0x36d4;return process.env.CLAUDE_CONFIG_DIR||join(homedir(),_0x594c34(0x1a9));}function getClaudeJsonPath(){const _0x654c8f=a236_0x36d4,_0x3884ba=getClaudeConfigDir(),_0x2e939a=join(_0x3884ba,_0x654c8f(0x1b1));return existsSync(_0x2e939a)?_0x2e939a:_0x3884ba+'.json';}function readJsonFile(_0x592b5d){const _0x196fb3=a236_0x36d4;if(!existsSync(_0x592b5d))return undefined;try{return JSON[_0x196fb3(0x1af)](readFileSync(_0x592b5d,_0x196fb3(0x1a4)));}catch{return undefined;}}function asRecord(_0x54e54f){const _0x2584a7=a236_0x36d4;return typeof _0x54e54f===_0x2584a7(0x1b7)&&_0x54e54f!==null&&!Array[_0x2584a7(0x1ab)](_0x54e54f)?_0x54e54f:undefined;}function mcpServerUrl(_0x1858c0,_0x385528){const _0x503ec5=a236_0x36d4,_0xb76a16=asRecord(asRecord(_0x1858c0)?.[_0x385528]);return typeof _0xb76a16?.['url']==='string'?_0xb76a16[_0x503ec5(0x1a0)]:undefined;}export function findMcpServerUrl(_0x7fd824,_0x47669c){const _0x2bfbde=a236_0x36d4,_0x199da5=asRecord(readJsonFile(getClaudeJsonPath())),_0x5caf04=asRecord(asRecord(_0x199da5?.[_0x2bfbde(0x1ad)])?.[_0x47669c]),_0x46c0bb=mcpServerUrl(_0x5caf04?.[_0x2bfbde(0x1b3)],_0x7fd824);if(_0x46c0bb)return _0x46c0bb;const _0xf558a7=mcpServerUrl(_0x199da5?.['mcpServers'],_0x7fd824);if(_0xf558a7)return _0xf558a7;return mcpServerUrl(asRecord(readJsonFile(join(_0x47669c,_0x2bfbde(0x1ac))))?.[_0x2bfbde(0x1b3)],_0x7fd824);}export function normalizeRepoUrl(_0x3bb350){const _0x1a28ed=a236_0x36d4;return _0x3bb350['trim']()[_0x1a28ed(0x1b4)]()['replace'](/\.git$/,'')[_0x1a28ed(0x1a7)](/\/+$/,'');}export function readMarketplaceSourceUrl(_0x45fe55){const _0x147df9=a236_0x36d4,_0x127fc1=join(getClaudeConfigDir(),_0x147df9(0x1ae),_0x147df9(0x1a3)),_0xaeb363=asRecord(asRecord(readJsonFile(_0x127fc1))?.[_0x45fe55])?.['source'],_0x5f1ae7=asRecord(_0xaeb363);if(!_0x5f1ae7)return undefined;if(typeof _0x5f1ae7[_0x147df9(0x1a0)]===_0x147df9(0x1a1))return normalizeRepoUrl(_0x5f1ae7[_0x147df9(0x1a0)]);if(typeof _0x5f1ae7['repo']===_0x147df9(0x1a1))return normalizeRepoUrl(_0x147df9(0x1a6)+_0x5f1ae7[_0x147df9(0x1b9)]);return undefined;}function a236_0x36d4(_0x4de958,_0x4c8195){_0x4de958=_0x4de958-0x19e;const _0x486e99=a236_0x486e();let _0x36d47f=_0x486e99[_0x4de958];return _0x36d47f;}export function isPluginInstalled(_0x172a7f,_0x13e579){const _0x19cb00=a236_0x36d4,_0x55f219=join(getClaudeConfigDir(),_0x19cb00(0x1ae),_0x19cb00(0x1a8)),_0x28bc46=readJsonFile(_0x55f219),_0x2616b9=_0x28bc46?.['plugins']?.[_0x172a7f+'@'+_0x13e579];return Array['isArray'](_0x2616b9)&&_0x2616b9[_0x19cb00(0x19f)]>0x0;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x406060,_0x5ae66f){const _0x10e5c1=a237_0x42f8,_0x1c64c1=_0x406060();while(!![]){try{const _0x2f146c=parseInt(_0x10e5c1(0x152))/0x1*(parseInt(_0x10e5c1(0x154))/0x2)+parseInt(_0x10e5c1(0x14d))/0x3+-parseInt(_0x10e5c1(0x148))/0x4*(-parseInt(_0x10e5c1(0x146))/0x5)+parseInt(_0x10e5c1(0x144))/0x6+parseInt(_0x10e5c1(0x149))/0x7+-parseInt(_0x10e5c1(0x140))/0x8+parseInt(_0x10e5c1(0x141))/0x9*(-parseInt(_0x10e5c1(0x13a))/0xa);if(_0x2f146c===_0x5ae66f)break;else _0x1c64c1['push'](_0x1c64c1['shift']());}catch(_0x2ad5f6){_0x1c64c1['push'](_0x1c64c1['shift']());}}}(a237_0x2767,0xb6b95));import*as a237_0x241c11 from'chalk';const Chalk=a237_0x241c11['Chalk'];export function shouldUseColor(_0x1138c9={}){const _0x2771a0=a237_0x42f8;if(_0x1138c9[_0x2771a0(0x14a)]===!![])return![];if(_0x1138c9[_0x2771a0(0x158)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x2771a0(0x157)][_0x2771a0(0x150)]??![];}function a237_0x42f8(_0x5f4333,_0xbcee6d){_0x5f4333=_0x5f4333-0x13a;const _0x276716=a237_0x2767();let _0x42f88f=_0x276716[_0x5f4333];return _0x42f88f;}function a237_0x2767(){const _0x5b4744=['number','object','dim','4897952kxdtZP','9coEZTy','repeat','cyan','6839730GDvsGQ','string','532055suGlvd','entries','8eYZtlg','3821699ftXWbe','noColor','stringify','map','515667eeHmOI','join','isArray','isTTY','yellow','815fkyvyn','blue','654uBlJuU','length','green','stdout','color','9764470loFitW','null','boolean'];a237_0x2767=function(){return _0x5b4744;};return a237_0x2767();}export function getChalk(_0xa1d47b={}){if(shouldUseColor(_0xa1d47b))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0xfab27c,_0x5c16f3={}){const _0x4ea8b2=a237_0x42f8;return getChalk(_0x5c16f3)[_0x4ea8b2(0x13f)](_0xfab27c);}export function colorHeader(_0x5d94bb,_0x5515b8={}){const _0x2fa15b=a237_0x42f8;return getChalk(_0x5515b8)[_0x2fa15b(0x143)](_0x5d94bb);}export function colorType(_0x3902da,_0x199235={}){const _0x1aee45=a237_0x42f8;return getChalk(_0x199235)[_0x1aee45(0x13f)](_0x3902da);}export function colorJSONKey(_0x145b90,_0x1116c3={}){const _0x371902=a237_0x42f8;return getChalk(_0x1116c3)[_0x371902(0x153)](_0x145b90);}export function colorJSONString(_0x3a8c3c,_0x337c32={}){const _0x2388db=a237_0x42f8;return getChalk(_0x337c32)[_0x2388db(0x156)](_0x3a8c3c);}export function colorJSONNumber(_0x437c35,_0x25cd3a={}){return getChalk(_0x25cd3a)['cyan'](_0x437c35);}export function colorJSONBoolean(_0x28c006,_0x1558ce={}){const _0x275b09=a237_0x42f8;return getChalk(_0x1558ce)[_0x275b09(0x151)](_0x28c006);}export function colorJSONNull(_0x144121,_0x1c37cb={}){return getChalk(_0x1c37cb)['dim'](_0x144121);}export function colorizeJSONCompact(_0xa4f095,_0x28051b={}){const _0x5d9d07=a237_0x42f8;if(!shouldUseColor(_0x28051b))return JSON[_0x5d9d07(0x14b)](_0xa4f095);if(_0xa4f095===null)return colorJSONNull('null',_0x28051b);if(typeof _0xa4f095===_0x5d9d07(0x13c))return colorJSONBoolean(String(_0xa4f095),_0x28051b);if(typeof _0xa4f095===_0x5d9d07(0x13d))return colorJSONNumber(String(_0xa4f095),_0x28051b);if(typeof _0xa4f095===_0x5d9d07(0x145))return colorJSONString(JSON['stringify'](_0xa4f095),_0x28051b);if(Array[_0x5d9d07(0x14f)](_0xa4f095)){if(_0xa4f095['length']===0x0)return'[]';const _0xd74b84=_0xa4f095[_0x5d9d07(0x14c)](_0x5ded7d=>colorizeJSONCompact(_0x5ded7d,_0x28051b));return'['+_0xd74b84[_0x5d9d07(0x14e)](',')+']';}if(typeof _0xa4f095===_0x5d9d07(0x13e)){const _0x1cccce=Object[_0x5d9d07(0x147)](_0xa4f095);if(_0x1cccce[_0x5d9d07(0x155)]===0x0)return'{}';const _0xc745ec=_0x1cccce[_0x5d9d07(0x14c)](([_0x3d962b,_0x4bb776])=>{const _0x33b97c=_0x5d9d07,_0x2d36e6=colorJSONKey(JSON[_0x33b97c(0x14b)](_0x3d962b),_0x28051b),_0x5e5f41=colorizeJSONCompact(_0x4bb776,_0x28051b);return _0x2d36e6+':'+_0x5e5f41;});return'{'+_0xc745ec[_0x5d9d07(0x14e)](',')+'}';}return String(_0xa4f095);}export function colorizeJSON(_0x53e0b4,_0x261ebd={},_0x2eaeb8=0x0){const _0x3e55b5=a237_0x42f8;if(!shouldUseColor(_0x261ebd))return JSON[_0x3e55b5(0x14b)](_0x53e0b4,null,0x2);const _0x21e368='\x20'[_0x3e55b5(0x142)](_0x2eaeb8),_0x398d8c=_0x2eaeb8+0x2;if(_0x53e0b4===null)return colorJSONNull(_0x3e55b5(0x13b),_0x261ebd);if(typeof _0x53e0b4===_0x3e55b5(0x13c))return colorJSONBoolean(String(_0x53e0b4),_0x261ebd);if(typeof _0x53e0b4===_0x3e55b5(0x13d))return colorJSONNumber(String(_0x53e0b4),_0x261ebd);if(typeof _0x53e0b4===_0x3e55b5(0x145))return colorJSONString(JSON[_0x3e55b5(0x14b)](_0x53e0b4),_0x261ebd);if(Array[_0x3e55b5(0x14f)](_0x53e0b4)){if(_0x53e0b4[_0x3e55b5(0x155)]===0x0)return'[]';const _0x1a57b3=_0x53e0b4[_0x3e55b5(0x14c)](_0x315011=>{const _0x276dec=_0x3e55b5,_0x3ddbc6=colorizeJSON(_0x315011,_0x261ebd,_0x398d8c);return''+'\x20'[_0x276dec(0x142)](_0x398d8c)+_0x3ddbc6;});return'[\x0a'+_0x1a57b3[_0x3e55b5(0x14e)](',\x0a')+('\x0a'+_0x21e368+']');}if(typeof _0x53e0b4===_0x3e55b5(0x13e)){const _0x3ded0a=Object[_0x3e55b5(0x147)](_0x53e0b4);if(_0x3ded0a[_0x3e55b5(0x155)]===0x0)return'{}';const _0x3c97e8=_0x3ded0a['map'](([_0x98691d,_0x231d0d])=>{const _0x5f7ebf=_0x3e55b5,_0x4552e1=colorJSONKey(JSON[_0x5f7ebf(0x14b)](_0x98691d),_0x261ebd),_0x11790d=colorizeJSON(_0x231d0d,_0x261ebd,_0x398d8c);return''+'\x20'[_0x5f7ebf(0x142)](_0x398d8c)+_0x4552e1+':\x20'+_0x11790d;});return'{\x0a'+_0x3c97e8[_0x3e55b5(0x14e)](',\x0a')+('\x0a'+_0x21e368+'}');}return String(_0x53e0b4);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x396214,_0x5e1d67){const _0x173f7e=a238_0x485b,_0x55636a=_0x396214();while(!![]){try{const _0xc08aa6=parseInt(_0x173f7e(0x1fc))/0x1+parseInt(_0x173f7e(0x1f3))/0x2*(-parseInt(_0x173f7e(0x1e4))/0x3)+-parseInt(_0x173f7e(0x1fa))/0x4+parseInt(_0x173f7e(0x1ec))/0x5+parseInt(_0x173f7e(0x1f1))/0x6+parseInt(_0x173f7e(0x1f2))/0x7*(-parseInt(_0x173f7e(0x1e8))/0x8)+parseInt(_0x173f7e(0x1ed))/0x9;if(_0xc08aa6===_0x5e1d67)break;else _0x55636a['push'](_0x55636a['shift']());}catch(_0x125167){_0x55636a['push'](_0x55636a['shift']());}}}(a238_0x2dfa,0x2f8d0));import a238_0x2dbfc2 from'chalk';function a238_0x2dfa(){const _0x55ec32=['8yzLrxW','length','new','old','479090XCQhSs','4027140fDccaW','add','map','push','631284tKctcY','2255827EhFMoV','48SJMfSg','added','cyan','\x20\x20...','\x20+\x20','padStart','removed','859872syPjfN','size','325401CbjIoO','has','forEach','repeat','red','split','unchanged','some','type','content','join','30237pdjKdH','\x20\x20\x20','fill','green'];a238_0x2dfa=function(){return _0x55ec32;};return a238_0x2dfa();}export function generateDiff(_0x20ea1e,_0x212f1f){const _0x178918=a238_0x485b,_0x21532b=_0x20ea1e[_0x178918(0x201)]('\x0a'),_0x571d9e=_0x212f1f[_0x178918(0x201)]('\x0a'),_0x100097=[],_0x47732e=computeLCS(_0x21532b,_0x571d9e);let _0x226598=0x0,_0x2a996e=0x0,_0x5a2c8e=0x0;while(_0x226598<_0x21532b[_0x178918(0x1e9)]||_0x2a996e<_0x571d9e['length']){if(_0x5a2c8e<_0x47732e[_0x178918(0x1e9)]&&_0x226598<_0x21532b[_0x178918(0x1e9)]&&_0x21532b[_0x226598]===_0x47732e[_0x5a2c8e])_0x2a996e<_0x571d9e[_0x178918(0x1e9)]&&_0x571d9e[_0x2a996e]===_0x47732e[_0x5a2c8e]?(_0x100097[_0x178918(0x1f0)]({'type':_0x178918(0x202),'content':_0x21532b[_0x226598]}),_0x226598++,_0x2a996e++,_0x5a2c8e++):(_0x100097[_0x178918(0x1f0)]({'type':_0x178918(0x1f4),'content':_0x571d9e[_0x2a996e]}),_0x2a996e++);else{if(_0x5a2c8e<_0x47732e['length']&&_0x2a996e<_0x571d9e['length']&&_0x571d9e[_0x2a996e]===_0x47732e[_0x5a2c8e])_0x100097[_0x178918(0x1f0)]({'type':_0x178918(0x1f9),'content':_0x21532b[_0x226598]}),_0x226598++;else{if(_0x226598<_0x21532b[_0x178918(0x1e9)]&&(_0x5a2c8e>=_0x47732e[_0x178918(0x1e9)]||_0x21532b[_0x226598]!==_0x47732e[_0x5a2c8e]))_0x100097[_0x178918(0x1f0)]({'type':_0x178918(0x1f9),'content':_0x21532b[_0x226598]}),_0x226598++;else _0x2a996e<_0x571d9e['length']&&(_0x100097['push']({'type':'added','content':_0x571d9e[_0x2a996e]}),_0x2a996e++);}}}return _0x100097;}function computeLCS(_0x12b7a4,_0x34426d){const _0x338f55=a238_0x485b,_0x1b646a=_0x12b7a4[_0x338f55(0x1e9)],_0x2b0745=_0x34426d[_0x338f55(0x1e9)],_0x30f5ba=Array(_0x1b646a+0x1)['fill'](null)[_0x338f55(0x1ef)](()=>Array(_0x2b0745+0x1)[_0x338f55(0x1e6)](0x0));for(let _0xb96d7=0x1;_0xb96d7<=_0x1b646a;_0xb96d7++){for(let _0x56dd7e=0x1;_0x56dd7e<=_0x2b0745;_0x56dd7e++){_0x12b7a4[_0xb96d7-0x1]===_0x34426d[_0x56dd7e-0x1]?_0x30f5ba[_0xb96d7][_0x56dd7e]=_0x30f5ba[_0xb96d7-0x1][_0x56dd7e-0x1]+0x1:_0x30f5ba[_0xb96d7][_0x56dd7e]=Math['max'](_0x30f5ba[_0xb96d7-0x1][_0x56dd7e],_0x30f5ba[_0xb96d7][_0x56dd7e-0x1]);}}const _0x4799f0=[];let _0x4a4f79=_0x1b646a,_0x41e5d2=_0x2b0745;while(_0x4a4f79>0x0&&_0x41e5d2>0x0){if(_0x12b7a4[_0x4a4f79-0x1]===_0x34426d[_0x41e5d2-0x1])_0x4799f0['unshift'](_0x12b7a4[_0x4a4f79-0x1]),_0x4a4f79--,_0x41e5d2--;else _0x30f5ba[_0x4a4f79-0x1][_0x41e5d2]>_0x30f5ba[_0x4a4f79][_0x41e5d2-0x1]?_0x4a4f79--:_0x41e5d2--;}return _0x4799f0;}function a238_0x485b(_0x480515,_0x76cbd4){_0x480515=_0x480515-0x1e4;const _0x2dfa9b=a238_0x2dfa();let _0x485bae=_0x2dfa9b[_0x480515];return _0x485bae;}export function formatDiffWithColors(_0x2f0c38,_0x2d6646=0x3){const _0x517ea6=a238_0x485b,_0x23dc71=new Set();_0x2f0c38[_0x517ea6(0x1fe)]((_0x5c82e1,_0xc3fa28)=>{const _0x263010=_0x517ea6;_0x5c82e1[_0x263010(0x204)]!=='unchanged'&&_0x23dc71[_0x263010(0x1ee)](_0xc3fa28);});if(_0x23dc71[_0x517ea6(0x1fb)]===0x0)return'';const _0x55669e=new Set();for(const _0x407bcb of _0x23dc71){for(let _0x48157b=Math['max'](0x0,_0x407bcb-_0x2d6646);_0x48157b<=Math['min'](_0x2f0c38['length']-0x1,_0x407bcb+_0x2d6646);_0x48157b++){_0x55669e[_0x517ea6(0x1ee)](_0x48157b);}}const _0x259ee1=[];let _0x11069e=-0x1;const _0x16c79c=_0x2f0c38[_0x517ea6(0x1e9)],_0x35a22f=Math['max'](0x3,String(_0x16c79c)[_0x517ea6(0x1e9)]),_0x5e3b1a=[];let _0x555254=0x0,_0x509e55=0x0;for(const _0x3dc4aa of _0x2f0c38){if(_0x3dc4aa[_0x517ea6(0x204)]===_0x517ea6(0x1f9))_0x555254++,_0x5e3b1a['push']({'old':_0x555254,'new':0x0});else _0x3dc4aa[_0x517ea6(0x204)]===_0x517ea6(0x1f4)?(_0x509e55++,_0x5e3b1a[_0x517ea6(0x1f0)]({'old':0x0,'new':_0x509e55})):(_0x555254++,_0x509e55++,_0x5e3b1a[_0x517ea6(0x1f0)]({'old':_0x555254,'new':_0x509e55}));}for(let _0x18d655=0x0;_0x18d655<_0x2f0c38[_0x517ea6(0x1e9)];_0x18d655++){if(!_0x55669e[_0x517ea6(0x1fd)](_0x18d655))continue;_0x11069e!==-0x1&&_0x18d655>_0x11069e+0x1&&_0x259ee1[_0x517ea6(0x1f0)](a238_0x2dbfc2[_0x517ea6(0x1f5)](_0x517ea6(0x1f6)));_0x11069e=_0x18d655;const _0x59f9c3=_0x2f0c38[_0x18d655],_0x1f755c=_0x5e3b1a[_0x18d655],_0x371fee=_0x1f755c[_0x517ea6(0x1eb)]>0x0?String(_0x1f755c[_0x517ea6(0x1eb)])[_0x517ea6(0x1f8)](_0x35a22f):'\x20'[_0x517ea6(0x1ff)](_0x35a22f),_0x5ac857=_0x1f755c[_0x517ea6(0x1ea)]>0x0?String(_0x1f755c[_0x517ea6(0x1ea)])[_0x517ea6(0x1f8)](_0x35a22f):'\x20'['repeat'](_0x35a22f);switch(_0x59f9c3['type']){case _0x517ea6(0x1f9):_0x259ee1[_0x517ea6(0x1f0)](a238_0x2dbfc2[_0x517ea6(0x200)](_0x371fee+'\x20'+_0x5ac857+'\x20-\x20'+_0x59f9c3[_0x517ea6(0x205)]));break;case _0x517ea6(0x1f4):_0x259ee1[_0x517ea6(0x1f0)](a238_0x2dbfc2[_0x517ea6(0x1e7)](_0x371fee+'\x20'+_0x5ac857+_0x517ea6(0x1f7)+_0x59f9c3['content']));break;default:_0x259ee1[_0x517ea6(0x1f0)](a238_0x2dbfc2['dim'](_0x371fee+'\x20'+_0x5ac857+_0x517ea6(0x1e5)+_0x59f9c3[_0x517ea6(0x205)]));break;}}return _0x259ee1[_0x517ea6(0x206)]('\x0a');}export function hasChanges(_0x25825a){const _0x2f4344=a238_0x485b;return _0x25825a[_0x2f4344(0x203)](_0x171c49=>_0x171c49[_0x2f4344(0x204)]!==_0x2f4344(0x202));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x89044d,_0x160a3e){const _0x7643a5=a239_0x5440,_0x2f602a=_0x89044d();while(!![]){try{const _0x36401b=-parseInt(_0x7643a5(0x10c))/0x1+-parseInt(_0x7643a5(0x10b))/0x2*(-parseInt(_0x7643a5(0x10a))/0x3)+-parseInt(_0x7643a5(0x106))/0x4*(-parseInt(_0x7643a5(0x114))/0x5)+parseInt(_0x7643a5(0x11b))/0x6*(-parseInt(_0x7643a5(0x10e))/0x7)+-parseInt(_0x7643a5(0x118))/0x8*(parseInt(_0x7643a5(0x109))/0x9)+parseInt(_0x7643a5(0x112))/0xa*(parseInt(_0x7643a5(0x10f))/0xb)+parseInt(_0x7643a5(0x115))/0xc;if(_0x36401b===_0x160a3e)break;else _0x2f602a['push'](_0x2f602a['shift']());}catch(_0x1b8edc){_0x2f602a['push'](_0x2f602a['shift']());}}}(a239_0x5423,0x6958b));import*as a239_0x4e9847 from'node:fs';import*as a239_0x44ab1c from'node:path';export function setSecureFilePermissions(_0x4c7d10){const _0x561411=a239_0x5440;try{a239_0x4e9847[_0x561411(0x119)](_0x4c7d10,0x180);}catch{console['warn'](_0x561411(0x117)+_0x4c7d10);}}function a239_0x5423(){const _0x279e53=['503470doUTyu','dirname','toString','70nCfXpr','Should\x20be\x200600\x20or\x20more\x20restrictive.','13915xxLlqm','9830712mXBWyB','warn','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','1944tkHwkN','chmodSync','mkdirSync','33882oqTFmU','1208EGqMtA','\x20has\x20insecure\x20permissions\x20(','existsSync','26325guNAOt','20022FHSKrv','44OrekoU','730521VNJwrd','Warning:\x20','315dnxRFe'];a239_0x5423=function(){return _0x279e53;};return a239_0x5423();}function a239_0x5440(_0x111f78,_0x1e17ad){_0x111f78=_0x111f78-0x106;const _0x5423b9=a239_0x5423();let _0x5440af=_0x5423b9[_0x111f78];return _0x5440af;}export function setSecureDirectoryPermissions(_0x40e1b7){const _0x2ede7d=a239_0x5440;try{a239_0x4e9847[_0x2ede7d(0x119)](_0x40e1b7,0x1c0);}catch{console[_0x2ede7d(0x116)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x40e1b7);}}export function createSecureDirectory(_0x227cc4){const _0x2e593e=a239_0x5440;!a239_0x4e9847[_0x2e593e(0x108)](_0x227cc4)&&(a239_0x4e9847[_0x2e593e(0x11a)](_0x227cc4,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x227cc4));}export function validateSecureFilePermissions(_0x2956ef){const _0x4e8573=a239_0x5440;try{const _0x517e58=a239_0x4e9847['statSync'](_0x2956ef),_0x36522f=_0x517e58['mode']&0x1ff,_0x3fd683=(_0x36522f&0x3f)!==0x0;if(_0x3fd683)return console[_0x4e8573(0x116)](_0x4e8573(0x10d)+_0x2956ef+_0x4e8573(0x107)+_0x36522f[_0x4e8573(0x111)](0x8)+').\x20'+_0x4e8573(0x113)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x1bd230,_0x5ca147){const _0x2f9694=a239_0x5440,_0x2e82ea=a239_0x44ab1c[_0x2f9694(0x110)](_0x1bd230);createSecureDirectory(_0x2e82ea),a239_0x4e9847['writeFileSync'](_0x1bd230,_0x5ca147,{'mode':0x180}),setSecureFilePermissions(_0x1bd230);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xdfeddf,_0x326529){const _0xe6e0a0=a240_0x3804,_0x401995=_0xdfeddf();while(!![]){try{const _0x3cd446=parseInt(_0xe6e0a0(0xaa))/0x1+-parseInt(_0xe6e0a0(0xb1))/0x2+-parseInt(_0xe6e0a0(0xb3))/0x3+-parseInt(_0xe6e0a0(0xa9))/0x4+-parseInt(_0xe6e0a0(0xa7))/0x5*(-parseInt(_0xe6e0a0(0xb2))/0x6)+parseInt(_0xe6e0a0(0xad))/0x7+parseInt(_0xe6e0a0(0xb6))/0x8;if(_0x3cd446===_0x326529)break;else _0x401995['push'](_0x401995['shift']());}catch(_0xbf09c6){_0x401995['push'](_0x401995['shift']());}}}(a240_0x3e10,0xacf97));import{readFileSync}from'fs';function a240_0x3e10(){const _0x206a6c=['5067696sNNozF','260885nXMMQp','message','NOT_FOUND','5789805PecGEp','ENOENT','\x27:\x20','INTERNAL','154000KcOvQZ','6XVCkTu','63225seqjbO','Permission\x20denied\x20reading\x20file\x20\x27','\x27\x20not\x20found','5647640RPhAAC','utf-8','Error\x20reading\x20file\x20\x27','EACCES','1397735CkvleI','File\x20\x27'];a240_0x3e10=function(){return _0x206a6c;};return a240_0x3e10();}function a240_0x3804(_0x32c732,_0x5e9d60){_0x32c732=_0x32c732-0xa7;const _0x3e103b=a240_0x3e10();let _0x3804f6=_0x3e103b[_0x32c732];return _0x3804f6;}import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x1e3773){const _0x1043fb=a240_0x3804;try{return readFileSync(_0x1e3773,_0x1043fb(0xb7));}catch(_0x4c548d){const _0x520564=_0x4c548d['code'];if(_0x520564===_0x1043fb(0xae))throw new SDKError(ErrorCode[_0x1043fb(0xac)],_0x1043fb(0xa8)+_0x1e3773+_0x1043fb(0xb5),_0x4c548d);else{if(_0x520564===_0x1043fb(0xb9))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x1043fb(0xb4)+_0x1e3773+'\x27',_0x4c548d);else throw new SDKError(ErrorCode[_0x1043fb(0xb0)],_0x1043fb(0xb8)+_0x1e3773+_0x1043fb(0xaf)+_0x4c548d[_0x1043fb(0xab)],_0x4c548d);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5728cd,_0x448e56){const _0x411b3f=a241_0x5c53,_0x52009a=_0x5728cd();while(!![]){try{const _0x300a2d=-parseInt(_0x411b3f(0x1cd))/0x1+parseInt(_0x411b3f(0x1d9))/0x2+-parseInt(_0x411b3f(0x1df))/0x3*(parseInt(_0x411b3f(0x1d7))/0x4)+parseInt(_0x411b3f(0x1d1))/0x5*(parseInt(_0x411b3f(0x1e1))/0x6)+-parseInt(_0x411b3f(0x1e7))/0x7*(-parseInt(_0x411b3f(0x1d6))/0x8)+-parseInt(_0x411b3f(0x1e0))/0x9*(parseInt(_0x411b3f(0x1ce))/0xa)+parseInt(_0x411b3f(0x1e4))/0xb;if(_0x300a2d===_0x448e56)break;else _0x52009a['push'](_0x52009a['shift']());}catch(_0x526de3){_0x52009a['push'](_0x52009a['shift']());}}}(a241_0x4590,0x7cfd5));import*as a241_0x8e0adc from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a241_0x5c53(_0x479226,_0x38a488){_0x479226=_0x479226-0x1cc;const _0x4590e9=a241_0x4590();let _0x5c53ec=_0x4590e9[_0x479226];return _0x5c53ec;}export function fetchGitHubReleases(_0x674820,_0x5f0cbe,_0x472648){const _0x40f4a7=a241_0x5c53,_0x24a6ae=_0x674820+'/'+_0x5f0cbe,_0x55317e=cache[_0x40f4a7(0x1d4)](_0x24a6ae);if(_0x55317e&&Date[_0x40f4a7(0x1e3)]()-_0x55317e[_0x40f4a7(0x1ea)]<CACHE_TTL_MS)return Promise[_0x40f4a7(0x1cf)](_0x55317e[_0x40f4a7(0x1d8)]);return new Promise((_0x4a5db1,_0x1f4a3a)=>{const _0x5af5b7=_0x40f4a7,_0x1a74ad={'hostname':_0x5af5b7(0x1d5),'path':_0x5af5b7(0x1da)+_0x674820+'/'+_0x5f0cbe+_0x5af5b7(0x1e8),'headers':{'User-Agent':_0x472648,'Accept':_0x5af5b7(0x1db)},'timeout':REQUEST_TIMEOUT_MS},_0x4e5e9f=a241_0x8e0adc[_0x5af5b7(0x1d4)](_0x1a74ad,_0x3f6061=>{const _0x198279=_0x5af5b7;let _0x174826='';_0x3f6061['on'](_0x198279(0x1de),_0x50bef0=>{const _0x49ef8c=_0x198279;_0x174826+=_0x50bef0[_0x49ef8c(0x1d2)]();}),_0x3f6061['on']('end',()=>{const _0x11681d=_0x198279;if(_0x3f6061[_0x11681d(0x1e5)]!==0xc8){_0x1f4a3a(new Error(_0x11681d(0x1cc)+_0x3f6061['statusCode']+':\x20'+_0x174826[_0x11681d(0x1e2)](0x0,0xc8)));return;}try{const _0x2e462b=JSON[_0x11681d(0x1dd)](_0x174826);cache[_0x11681d(0x1e9)](_0x24a6ae,{'releases':_0x2e462b,'fetchedAt':Date[_0x11681d(0x1e3)]()}),_0x4a5db1(_0x2e462b);}catch(_0x1b0f0c){_0x1f4a3a(_0x1b0f0c);}});});_0x4e5e9f['on'](_0x5af5b7(0x1dc),()=>{const _0xc6b55d=_0x5af5b7;_0x4e5e9f[_0xc6b55d(0x1d3)](),_0x1f4a3a(new Error(_0xc6b55d(0x1e6)+REQUEST_TIMEOUT_MS+'ms'));}),_0x4e5e9f['on'](_0x5af5b7(0x1d0),_0x1f4a3a);});}export async function resolveReleaseTag(_0x12955a,_0x5df619,_0x44bc4b,_0x476863){const _0x3ff8b7=a241_0x5c53;if(_0x12955a==='next')return null;const _0x2bd6ce=await fetchGitHubReleases(_0x5df619,_0x44bc4b,_0x476863);if(_0x2bd6ce['length']===0x0)return null;const _0x3d0376=_0x2bd6ce[_0x3ff8b7(0x1eb)](_0x34d9f2=>!_0x34d9f2['prerelease']);return _0x3d0376?_0x3d0376['tag_name']:null;}function a241_0x4590(){const _0xa1f0f3=['/repos/','application/vnd.github+json','timeout','parse','data','33vbJtwm','8232273syxkVu','102RpNKZV','slice','now','12851619Kytxlu','statusCode','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','2560453NQmDCs','/releases?per_page=20','set','fetchedAt','find','GitHub\x20API\x20returned\x20','446537LiXstC','10jghHvc','resolve','error','224365OtnXYY','toString','destroy','get','api.github.com','8HuNhLW','269708AJjuJa','releases','635878WfQaCx'];a241_0x4590=function(){return _0xa1f0f3;};return a241_0x4590();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x252ab5,_0x187c33){const _0x452900=a242_0x2653,_0x468991=_0x252ab5();while(!![]){try{const _0xd63a33=-parseInt(_0x452900(0x125))/0x1*(-parseInt(_0x452900(0x121))/0x2)+-parseInt(_0x452900(0x11d))/0x3*(-parseInt(_0x452900(0x11f))/0x4)+-parseInt(_0x452900(0x120))/0x5+parseInt(_0x452900(0x123))/0x6+parseInt(_0x452900(0x124))/0x7+-parseInt(_0x452900(0x119))/0x8+-parseInt(_0x452900(0x11b))/0x9;if(_0xd63a33===_0x187c33)break;else _0x468991['push'](_0x468991['shift']());}catch(_0x56a4a1){_0x468991['push'](_0x468991['shift']());}}}(a242_0x2af9,0xc2b2b));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';function a242_0x2653(_0x21b9be,_0x29a6bc){_0x21b9be=_0x21b9be-0x112;const _0x2af9d2=a242_0x2af9();let _0x265319=_0x2af9d2[_0x21b9be];return _0x265319;}import{homedir}from'os';export function getGlobalCacheDir(){const _0x22340f=a242_0x2653;return process.env.TDX_CACHE_DIR||join(homedir(),_0x22340f(0x11e),_0x22340f(0x116));}const registry=new Map();export function registerGlobalCacheKey(_0x5f35f4,_0x2a5201){const _0x3af554=a242_0x2653,_0x38540f=registry['get'](_0x5f35f4);if(_0x38540f&&_0x38540f!==_0x2a5201)throw new Error(_0x3af554(0x112)+_0x5f35f4+_0x3af554(0x11c)+_0x38540f+_0x3af554(0x122)+_0x2a5201+'\x22');registry[_0x3af554(0x115)](_0x5f35f4,_0x2a5201);}export function getGlobalCachePath(_0x2cc823){return join(getGlobalCacheDir(),_0x2cc823);}function ensureGlobalCacheDir(){const _0x19d8ec=getGlobalCacheDir();!existsSync(_0x19d8ec)&&mkdirSync(_0x19d8ec,{'recursive':!![]});}function readCacheJson(_0x597912){const _0x519c93=a242_0x2653,_0x1b9911=getGlobalCachePath(_0x597912);if(!existsSync(_0x1b9911))return undefined;try{const _0x13ad43=readFileSync(_0x1b9911,_0x519c93(0x118));return JSON[_0x519c93(0x113)](_0x13ad43);}catch{return undefined;}}function writeCacheJson(_0x294bab,_0x47fbe1){const _0x4e2392=a242_0x2653;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x294bab),JSON[_0x4e2392(0x126)](_0x47fbe1,null,0x2),_0x4e2392(0x118));}function readCacheText(_0x5181ff){const _0x2db715=a242_0x2653,_0x5e2f40=getGlobalCachePath(_0x5181ff);if(!existsSync(_0x5e2f40))return undefined;try{return readFileSync(_0x5e2f40,_0x2db715(0x118));}catch{return undefined;}}function a242_0x2af9(){const _0x1e16bc=['set','tdx','default','utf-8','5613760wILfkX','clear','10113345QGzBiX','\x22\x20already\x20registered\x20by\x20\x22','518337GzUuRT','.cache','32jshTls','1427240jBsHwA','566236XvLFPk','\x22,\x20cannot\x20register\x20for\x20\x22','1806192TcLNiG','4611992kNaxRl','2zfdeMW','stringify','trim','Global\x20cache\x20key\x20\x22','parse','replace'];a242_0x2af9=function(){return _0x1e16bc;};return a242_0x2af9();}function writeCacheText(_0x189684,_0x2b37ea){const _0x5b59f0=a242_0x2653;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x189684),_0x2b37ea,_0x5b59f0(0x118));}function clearCache(_0x9a0d67){const _0x11418e=getGlobalCachePath(_0x9a0d67);if(existsSync(_0x11418e))try{unlinkSync(_0x11418e);}catch{}}function cacheExists(_0x2d98f5){return existsSync(getGlobalCachePath(_0x2d98f5));}export function createGlobalCache(_0xceb5b9,_0x134afa){return registerGlobalCacheKey(_0xceb5b9,_0x134afa),{'read':()=>readCacheJson(_0xceb5b9),'write':_0x1f6342=>writeCacheJson(_0xceb5b9,_0x1f6342),'clear':()=>clearCache(_0xceb5b9),'exists':()=>cacheExists(_0xceb5b9),'path':()=>getGlobalCachePath(_0xceb5b9)};}export function createGlobalTextCache(_0x5ede60,_0x591958){const _0x4e4ef5=a242_0x2653;return registerGlobalCacheKey(_0x5ede60,_0x591958),{'read':()=>readCacheText(_0x5ede60)?.[_0x4e4ef5(0x127)]()||undefined,'write':_0x1cf5a6=>writeCacheText(_0x5ede60,_0x1cf5a6),'clear':()=>clearCache(_0x5ede60),'exists':()=>cacheExists(_0x5ede60),'path':()=>getGlobalCachePath(_0x5ede60)};}export function createProfileCache(_0x3bea7e,_0x1fe52b){const _0x538019=_0x28b8eb=>{const _0x182cad=a242_0x2653,_0x595e00=_0x28b8eb||_0x182cad(0x117);return _0x3bea7e[_0x182cad(0x114)]('{profile}',_0x595e00);};return{'read':_0x391285=>{const _0x43a58d=_0x538019(_0x391285);return registerGlobalCacheKey(_0x43a58d,_0x1fe52b),readCacheJson(_0x43a58d);},'write':(_0x37609b,_0x43671a)=>{const _0x2bd610=_0x538019(_0x37609b);registerGlobalCacheKey(_0x2bd610,_0x1fe52b),writeCacheJson(_0x2bd610,_0x43671a);},'clear':_0x2aeb0b=>{const _0x1c9533=_0x538019(_0x2aeb0b);clearCache(_0x1c9533);},'exists':_0x443aba=>{const _0x373ae3=_0x538019(_0x443aba);return cacheExists(_0x373ae3);},'path':_0x26055d=>{const _0x17daa2=_0x538019(_0x26055d);return getGlobalCachePath(_0x17daa2);}};}export function createOptionalProfileCache(_0x54f279,_0x1405c7,_0xd56933={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0xd56933,_0x53665f=_0x5c5ae6=>{return _0x5c5ae6?''+_0x54f279+profileSeparator+_0x5c5ae6+suffix:''+_0x54f279+suffix;};return{'read':_0x30c376=>{const _0x4301f5=_0x53665f(_0x30c376);return registerGlobalCacheKey(_0x4301f5,_0x1405c7),readCacheJson(_0x4301f5);},'write':(_0x3ca5f9,_0x1a27f9)=>{const _0x3f6317=_0x53665f(_0x1a27f9);registerGlobalCacheKey(_0x3f6317,_0x1405c7),writeCacheJson(_0x3f6317,_0x3ca5f9);},'clear':_0x751c07=>{const _0x528e7a=_0x53665f(_0x751c07);clearCache(_0x528e7a);},'exists':_0x38aba8=>{const _0x297e43=_0x53665f(_0x38aba8);return cacheExists(_0x297e43);},'path':_0x5d5fff=>{const _0x33c6e3=_0x53665f(_0x5d5fff);return getGlobalCachePath(_0x33c6e3);}};}export function clearGlobalRegistry(){const _0x58cec1=a242_0x2653;registry[_0x58cec1(0x11a)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a243_0x31a5(){const _0x2de9d0=['code','172XChmvA','INTERNAL','Permission\x20denied\x20reading\x20file:\x20','2338lvCGVi','12122ykBiPe','1165367hZtFrs','650daMLtN','PERMISSION_DENIED','ENOENT','NOT_FOUND','File\x20not\x20found:\x20','9WSDFoB','Failed\x20to\x20load\x20JSON:\x20','483024YIAYru','1221592nIiJIt','\x27:\x20','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','utf-8','32CYXAbS','247110qlEefB','EACCES','14015teZSga','parse','message','INVALID_ARGUMENT','Invalid\x20JSON\x20in\x20file\x20\x27'];a243_0x31a5=function(){return _0x2de9d0;};return a243_0x31a5();}(function(_0x5c16b4,_0x38c534){const _0x4f19e3=a243_0x39e2,_0x15906a=_0x5c16b4();while(!![]){try{const _0x3d6137=parseInt(_0x4f19e3(0x1fe))/0x1*(-parseInt(_0x4f19e3(0x1f2))/0x2)+parseInt(_0x4f19e3(0x1ed))/0x3+-parseInt(_0x4f19e3(0x1fb))/0x4*(parseInt(_0x4f19e3(0x1f5))/0x5)+parseInt(_0x4f19e3(0x1f3))/0x6+-parseInt(_0x4f19e3(0x200))/0x7+parseInt(_0x4f19e3(0x1ee))/0x8*(parseInt(_0x4f19e3(0x1eb))/0x9)+parseInt(_0x4f19e3(0x1e6))/0xa*(parseInt(_0x4f19e3(0x1ff))/0xb);if(_0x3d6137===_0x38c534)break;else _0x15906a['push'](_0x15906a['shift']());}catch(_0x5b3728){_0x15906a['push'](_0x15906a['shift']());}}}(a243_0x31a5,0x18ed8));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a243_0x39e2(_0x53da03,_0x1c9b88){_0x53da03=_0x53da03-0x1e6;const _0x31a5b9=a243_0x31a5();let _0x39e20c=_0x31a5b9[_0x53da03];return _0x39e20c;}export async function loadJSON(_0x5b0cd4,_0x3d3804){const _0x58a34e=a243_0x39e2;try{if(_0x3d3804){const _0x3b99b0=await readFile(_0x5b0cd4,_0x58a34e(0x1f1));try{return JSON[_0x58a34e(0x1f6)](_0x3b99b0);}catch(_0x305088){throw new SDKError(ErrorCode[_0x58a34e(0x1f8)],_0x58a34e(0x1f9)+_0x5b0cd4+_0x58a34e(0x1ef)+(_0x305088 instanceof Error?_0x305088[_0x58a34e(0x1f7)]:String(_0x305088)));}}else try{return JSON[_0x58a34e(0x1f6)](_0x5b0cd4);}catch(_0x1a8e4c){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20string:\x20'+(_0x1a8e4c instanceof Error?_0x1a8e4c[_0x58a34e(0x1f7)]:String(_0x1a8e4c)));}}catch(_0x156b61){if(_0x156b61 instanceof SDKError)throw _0x156b61;if(_0x156b61 instanceof Error&&_0x58a34e(0x1fa)in _0x156b61){const _0x438bcf=_0x156b61;if(_0x438bcf[_0x58a34e(0x1fa)]===_0x58a34e(0x1e8))throw new SDKError(ErrorCode[_0x58a34e(0x1e9)],_0x58a34e(0x1ea)+_0x5b0cd4);else{if(_0x438bcf[_0x58a34e(0x1fa)]===_0x58a34e(0x1f4))throw new SDKError(ErrorCode[_0x58a34e(0x1e7)],_0x58a34e(0x1fd)+_0x5b0cd4);}}throw new SDKError(ErrorCode[_0x58a34e(0x1fc)],_0x58a34e(0x1ec)+(_0x156b61 instanceof Error?_0x156b61['message']:String(_0x156b61)));}}export async function loadJSONFromOptions(_0x1a33ad,_0x114bb5){const _0x461373=a243_0x39e2;if(_0x1a33ad&&_0x114bb5)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x461373(0x1f0));if(_0x1a33ad)return await loadJSON(_0x1a33ad,![]);if(_0x114bb5)return await loadJSON(_0x114bb5,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a244_0x5b8c59=a244_0x8a18;(function(_0x5a0831,_0x3dba4f){const _0xe7e3dc=a244_0x8a18,_0x3fb3e9=_0x5a0831();while(!![]){try{const _0x213e56=-parseInt(_0xe7e3dc(0x157))/0x1+parseInt(_0xe7e3dc(0x150))/0x2*(parseInt(_0xe7e3dc(0x155))/0x3)+parseInt(_0xe7e3dc(0x153))/0x4*(parseInt(_0xe7e3dc(0x154))/0x5)+-parseInt(_0xe7e3dc(0x15e))/0x6+-parseInt(_0xe7e3dc(0x15f))/0x7*(-parseInt(_0xe7e3dc(0x15b))/0x8)+parseInt(_0xe7e3dc(0x160))/0x9*(parseInt(_0xe7e3dc(0x151))/0xa)+-parseInt(_0xe7e3dc(0x158))/0xb;if(_0x213e56===_0x3dba4f)break;else _0x3fb3e9['push'](_0x3fb3e9['shift']());}catch(_0x587cd0){_0x3fb3e9['push'](_0x3fb3e9['shift']());}}}(a244_0x8daf,0x2c3ad));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a244_0x5b8c59(0x15d),registry=new Map();export function registerCacheKey(_0x54781f,_0x4d7907){const _0x3d4141=a244_0x5b8c59,_0x35fc25=registry[_0x3d4141(0x156)](_0x54781f);if(_0x35fc25&&_0x35fc25!==_0x4d7907)throw new Error('Cache\x20key\x20\x22'+_0x54781f+_0x3d4141(0x159)+_0x35fc25+_0x3d4141(0x162)+_0x4d7907+'\x22');registry['set'](_0x54781f,_0x4d7907);}export function getCacheDir(){const _0x420a40=a244_0x5b8c59,_0xaf06c6=process['cwd'](),_0x40f59d=_0xaf06c6===parse(_0xaf06c6)[_0x420a40(0x161)]?homedir():_0xaf06c6;return join(_0x40f59d,LOCAL_CACHE_DIR);}export function getCachePath(_0x36f44b){return join(getCacheDir(),_0x36f44b);}function ensureCacheDir(){const _0x21b984=getCacheDir();!existsSync(_0x21b984)&&mkdirSync(_0x21b984,{'recursive':!![]});}function a244_0x8a18(_0x65bbb,_0x459de5){_0x65bbb=_0x65bbb-0x150;const _0x8daf5d=a244_0x8daf();let _0x8a1850=_0x8daf5d[_0x65bbb];return _0x8a1850;}function readCacheJson(_0x5ccbde){const _0x265e44=a244_0x5b8c59,_0x51e6a4=getCachePath(_0x5ccbde);if(!existsSync(_0x51e6a4))return undefined;try{const _0x143b22=readFileSync(_0x51e6a4,_0x265e44(0x152));return JSON['parse'](_0x143b22);}catch{return undefined;}}function writeCacheJson(_0x5d310a,_0x2bc86f){const _0x183638=a244_0x5b8c59;ensureCacheDir(),writeFileSync(getCachePath(_0x5d310a),JSON[_0x183638(0x163)](_0x2bc86f,null,0x2),'utf-8');}function readCacheText(_0x265049){const _0x2d091e=a244_0x5b8c59,_0x136816=getCachePath(_0x265049);if(!existsSync(_0x136816))return undefined;try{return readFileSync(_0x136816,_0x2d091e(0x152));}catch{return undefined;}}function writeCacheText(_0x5a1047,_0x224c2f){const _0x1b9a1d=a244_0x5b8c59;ensureCacheDir(),writeFileSync(getCachePath(_0x5a1047),_0x224c2f,_0x1b9a1d(0x152));}function clearCache(_0x5c49dd){const _0x46be8c=getCachePath(_0x5c49dd);if(existsSync(_0x46be8c))try{unlinkSync(_0x46be8c);}catch{}}function cacheExists(_0x32378c){return existsSync(getCachePath(_0x32378c));}export function createCache(_0x353fd5,_0x1bc4b5){return registerCacheKey(_0x353fd5,_0x1bc4b5),{'read':()=>readCacheJson(_0x353fd5),'write':_0x573f60=>writeCacheJson(_0x353fd5,_0x573f60),'clear':()=>clearCache(_0x353fd5),'exists':()=>cacheExists(_0x353fd5),'path':()=>getCachePath(_0x353fd5)};}export function createTextCache(_0xb11672,_0x1036fe){const _0x401ff3=a244_0x5b8c59;return registerCacheKey(_0xb11672,_0x1036fe),{'read':()=>readCacheText(_0xb11672)?.[_0x401ff3(0x15c)]()||undefined,'write':_0x2cb86c=>writeCacheText(_0xb11672,_0x2cb86c),'clear':()=>clearCache(_0xb11672),'exists':()=>cacheExists(_0xb11672),'path':()=>getCachePath(_0xb11672)};}function a244_0x8daf(){const _0x355ff5=['261830pyEvjq','3eAVJNy','get','361013gQhkbA','1348589sGagTJ','\x22\x20already\x20registered\x20by\x20\x22','clear','8bFYaFm','trim','.cache/tdx','184518lMeeop','1271242vsQwbx','27hpdnEA','root','\x22,\x20cannot\x20register\x20for\x20\x22','stringify','588322AgLpWi','557990ILkQxH','utf-8','4kYcHXu'];a244_0x8daf=function(){return _0x355ff5;};return a244_0x8daf();}export function clearRegistry(){const _0x5be0d0=a244_0x5b8c59;registry[_0x5be0d0(0x15a)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a245_0x362708=a245_0x4a52;(function(_0x5bb0e8,_0x736141){const _0x1fb76d=a245_0x4a52,_0x4eadb4=_0x5bb0e8();while(!![]){try{const _0x2b2faf=-parseInt(_0x1fb76d(0x7f))/0x1+-parseInt(_0x1fb76d(0x8a))/0x2+parseInt(_0x1fb76d(0x8f))/0x3*(parseInt(_0x1fb76d(0x82))/0x4)+-parseInt(_0x1fb76d(0x7b))/0x5*(parseInt(_0x1fb76d(0x88))/0x6)+-parseInt(_0x1fb76d(0x8c))/0x7+-parseInt(_0x1fb76d(0x8d))/0x8+parseInt(_0x1fb76d(0x78))/0x9;if(_0x2b2faf===_0x736141)break;else _0x4eadb4['push'](_0x4eadb4['shift']());}catch(_0x349155){_0x4eadb4['push'](_0x4eadb4['shift']());}}}(a245_0x53fe,0x61597));import a245_0x3de26c from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';function a245_0x4a52(_0x106fa5,_0xfd2598){_0x106fa5=_0x106fa5-0x76;const _0x53fe7a=a245_0x53fe();let _0x4a5257=_0x53fe7a[_0x106fa5];return _0x4a5257;}function a245_0x53fe(){const _0x126e6e=['1032mzLjWU','DEBUG','23014fAEPHO','TRACE','682213AMxkNf','5180376cwwXrL','yellow','3SQjsLo','component','Chalk',']\x20[','12295737xKZovb','cyan','INFO','3440LNHBbr','message','chalk','format','460312EHzDTo','default','WARN','1470844PiBzrT','colors','timestamp','level','ERROR','colorLevel'];a245_0x53fe=function(){return _0x126e6e;};return a245_0x53fe();}const chalkModule=a245_0x3de26c,ChalkClass=chalkModule[a245_0x362708(0x76)]||chalkModule[a245_0x362708(0x80)]?.['Chalk'];export class DefaultLogFormatter{[a245_0x362708(0x83)];[a245_0x362708(0x7d)];constructor(_0x3bfca8={}){const _0x516e0e=a245_0x362708;this[_0x516e0e(0x83)]=_0x3bfca8[_0x516e0e(0x83)]??![],this[_0x516e0e(0x7d)]=_0x3bfca8[_0x516e0e(0x83)]&&ChalkClass?new ChalkClass({'level':0x3}):a245_0x3de26c;}[a245_0x362708(0x7e)](_0x5f09ac){const _0x94b549=a245_0x362708,_0x4cd03a=formatTimestamp(_0x5f09ac[_0x94b549(0x84)]),_0x1e3c69=logLevelToString(_0x5f09ac[_0x94b549(0x85)]);if(!this[_0x94b549(0x83)])return _0x4cd03a+'\x20['+_0x1e3c69+_0x94b549(0x77)+_0x5f09ac[_0x94b549(0x90)]+']\x20'+_0x5f09ac[_0x94b549(0x7c)];const _0x30e6d2=this[_0x94b549(0x7d)]['dim'](_0x4cd03a),_0x279eb3=this[_0x94b549(0x87)](_0x1e3c69,_0x5f09ac['level']),_0x40a29f=this[_0x94b549(0x7d)]['blue']('['+_0x5f09ac[_0x94b549(0x90)]+']');return _0x30e6d2+'\x20'+_0x279eb3+'\x20'+_0x40a29f+'\x20'+_0x5f09ac['message'];}['colorLevel'](_0x551ddd,_0x268d24){const _0x38bfd8=a245_0x362708;switch(_0x268d24){case LogLevel[_0x38bfd8(0x8b)]:return this[_0x38bfd8(0x7d)]['gray']('['+_0x551ddd+']');case LogLevel[_0x38bfd8(0x89)]:return this[_0x38bfd8(0x7d)]['green']('['+_0x551ddd+']');case LogLevel[_0x38bfd8(0x7a)]:return this[_0x38bfd8(0x7d)][_0x38bfd8(0x79)]('['+_0x551ddd+']');case LogLevel[_0x38bfd8(0x81)]:return this[_0x38bfd8(0x7d)][_0x38bfd8(0x8e)]('['+_0x551ddd+']');case LogLevel[_0x38bfd8(0x86)]:return this[_0x38bfd8(0x7d)]['red']('['+_0x551ddd+']');default:return'['+_0x551ddd+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a246_0x1672(_0x52a8d1,_0x40a7ad){_0x52a8d1=_0x52a8d1-0x10b;var _0x1e5b40=a246_0x1e5b();var _0x167219=_0x1e5b40[_0x52a8d1];return _0x167219;}(function(_0x27738a,_0x4b2de5){var _0x124085=a246_0x1672,_0x1aea51=_0x27738a();while(!![]){try{var _0x40922b=-parseInt(_0x124085(0x10f))/0x1*(parseInt(_0x124085(0x10e))/0x2)+parseInt(_0x124085(0x114))/0x3+parseInt(_0x124085(0x111))/0x4*(parseInt(_0x124085(0x10c))/0x5)+parseInt(_0x124085(0x113))/0x6*(-parseInt(_0x124085(0x110))/0x7)+parseInt(_0x124085(0x112))/0x8+-parseInt(_0x124085(0x10d))/0x9+parseInt(_0x124085(0x10b))/0xa;if(_0x40922b===_0x4b2de5)break;else _0x1aea51['push'](_0x1aea51['shift']());}catch(_0x478d7c){_0x1aea51['push'](_0x1aea51['shift']());}}}(a246_0x1e5b,0x7595f));export{DefaultLogFormatter}from'./default-formatter.js';function a246_0x1e5b(){var _0x113322=['232967VGJuZQ','192012Czkulf','5822464ylKSbW','156JYLyRc','2669550GTCvum','3922970AyljNM','45pocobo','6634539aeUxKN','4WMPruH','178937GrZZTc'];a246_0x1e5b=function(){return _0x113322;};return a246_0x1e5b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a247_0x330b22=a247_0x389a;(function(_0x5937d8,_0x38e87d){const _0x2bf431=a247_0x389a,_0x2ac8e3=_0x5937d8();while(!![]){try{const _0x305b7=-parseInt(_0x2bf431(0x100))/0x1+parseInt(_0x2bf431(0xf6))/0x2+parseInt(_0x2bf431(0xfb))/0x3*(parseInt(_0x2bf431(0xf7))/0x4)+-parseInt(_0x2bf431(0xf4))/0x5*(-parseInt(_0x2bf431(0xf2))/0x6)+-parseInt(_0x2bf431(0x103))/0x7*(parseInt(_0x2bf431(0x102))/0x8)+parseInt(_0x2bf431(0xfd))/0x9*(parseInt(_0x2bf431(0xf3))/0xa)+parseInt(_0x2bf431(0x101))/0xb;if(_0x305b7===_0x38e87d)break;else _0x2ac8e3['push'](_0x2ac8e3['shift']());}catch(_0x2ef4b5){_0x2ac8e3['push'](_0x2ac8e3['shift']());}}}(a247_0x2573,0x8105b));import{LogLevel as a247_0x4ab254}from'../types.js';function a247_0x2573(){const _0x25574b=['formatter','9sAzNby','level','70659EVVPQU','useStderr','WARN','1036906ENxGVF','5166348kswUfp','4376920lvzWQf','7bBqNAu','582mzyHOM','690KRBebc','42995AzCzRa','error','43668QcQsfE','326896zdGgVU','minLevel','handle'];a247_0x2573=function(){return _0x25574b;};return a247_0x2573();}function a247_0x389a(_0x528303,_0xfa8164){_0x528303=_0x528303-0xf2;const _0x25731f=a247_0x2573();let _0x389a11=_0x25731f[_0x528303];return _0x389a11;}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a247_0x330b22(0xf8)];[a247_0x330b22(0xfe)];[a247_0x330b22(0xfa)];constructor(_0x2b6be8={}){const _0x1ae67a=a247_0x330b22;this[_0x1ae67a(0xf8)]=_0x2b6be8[_0x1ae67a(0xf8)]??a247_0x4ab254[_0x1ae67a(0xff)],this[_0x1ae67a(0xfe)]=_0x2b6be8[_0x1ae67a(0xfe)]??!![],this[_0x1ae67a(0xfa)]=new DefaultLogFormatter({'colors':_0x2b6be8['colors']??!![]});}[a247_0x330b22(0xf9)](_0x52d044){const _0x4d4b31=a247_0x330b22;if(_0x52d044[_0x4d4b31(0xfc)]<this[_0x4d4b31(0xf8)])return;const _0x2cbc73=this['formatter']['format'](_0x52d044);this['useStderr']&&_0x52d044[_0x4d4b31(0xfc)]>=a247_0x4ab254[_0x4d4b31(0xff)]?console[_0x4d4b31(0xf5)](_0x2cbc73):console['log'](_0x2cbc73);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a248_0x1fa441=a248_0x4096;(function(_0x162285,_0x1b4f74){const _0xeff1ce=a248_0x4096,_0x3d73bf=_0x162285();while(!![]){try{const _0x35bf5e=-parseInt(_0xeff1ce(0x98))/0x1+-parseInt(_0xeff1ce(0x97))/0x2*(parseInt(_0xeff1ce(0x8b))/0x3)+parseInt(_0xeff1ce(0x7b))/0x4*(-parseInt(_0xeff1ce(0x7d))/0x5)+-parseInt(_0xeff1ce(0x82))/0x6*(parseInt(_0xeff1ce(0x7f))/0x7)+-parseInt(_0xeff1ce(0x89))/0x8+-parseInt(_0xeff1ce(0x8e))/0x9*(-parseInt(_0xeff1ce(0x73))/0xa)+parseInt(_0xeff1ce(0x7c))/0xb;if(_0x35bf5e===_0x1b4f74)break;else _0x3d73bf['push'](_0x3d73bf['shift']());}catch(_0x22fbe3){_0x3d73bf['push'](_0x3d73bf['shift']());}}}(a248_0x53ea,0xe5034));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a248_0x53ea(){const _0x3f8d79=['toISOString','mtime','init','end','8228vMiUEo','36452416UbHtLK','3455WgOgnL','logFileName','622860uDFhMB','.log','rotateOldLogs','30FtwBJX','includes','\x5c$&','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','logStream','filter','message','6187656vYbBwh','handle','12EILheP','error','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','15189048lrtFxM','logDir','tdx.log','getLogPath','write','logPath','close','split','logBaseName','509188rHVpTJ','405372soGChT','10xcLSLy','rotate','filePath','replace'];a248_0x53ea=function(){return _0x3f8d79;};return a248_0x53ea();}import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';function a248_0x4096(_0x58332c,_0x351eea){_0x58332c=_0x58332c-0x73;const _0x53ea70=a248_0x53ea();let _0x4096a4=_0x53ea70[_0x58332c];return _0x4096a4;}import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{['logPath'];[a248_0x1fa441(0x8f)];[a248_0x1fa441(0x7e)];[a248_0x1fa441(0x96)];[a248_0x1fa441(0x86)]=null;[a248_0x1fa441(0x74)];constructor(_0x33399a={}){const _0x55ae37=a248_0x1fa441;this[_0x55ae37(0x93)]=_0x33399a[_0x55ae37(0x75)]??join(getGlobalCacheDir(),'logs',_0x55ae37(0x90)),this[_0x55ae37(0x8f)]=dirname(this[_0x55ae37(0x93)]),this[_0x55ae37(0x7e)]=basename(this[_0x55ae37(0x93)]),this[_0x55ae37(0x96)]=this[_0x55ae37(0x7e)][_0x55ae37(0x76)](/\.log$/,''),this[_0x55ae37(0x74)]=_0x33399a[_0x55ae37(0x74)]??!![];}async[a248_0x1fa441(0x79)](){const _0x21c845=a248_0x1fa441;try{await mkdir(this[_0x21c845(0x8f)],{'recursive':!![]}),this['rotate']&&await this[_0x21c845(0x81)](),this[_0x21c845(0x86)]=createWriteStream(this[_0x21c845(0x93)],{'flags':'a'}),this[_0x21c845(0x86)]['on'](_0x21c845(0x8c),_0x5ac667=>{const _0x5e96db=_0x21c845;console[_0x5e96db(0x8c)]('Warning:\x20Error\x20writing\x20to\x20'+this['logFileName']+':',_0x5ac667[_0x5e96db(0x88)]);});}catch(_0x33118f){console[_0x21c845(0x8c)](_0x21c845(0x85),_0x33118f);}}[a248_0x1fa441(0x8a)](_0x1e1a4c){const _0x1ab0d8=a248_0x1fa441;if(!this['logStream'])return;const _0x334447=Logger['format'](_0x1e1a4c);this['logStream'][_0x1ab0d8(0x92)](_0x334447+'\x0a');}async[a248_0x1fa441(0x94)](){return new Promise(_0x48c183=>{const _0x10d75a=a248_0x4096;this['logStream']?this[_0x10d75a(0x86)][_0x10d75a(0x7a)](()=>{const _0x5ce228=_0x10d75a;this[_0x5ce228(0x86)]=null,_0x48c183();}):_0x48c183();});}[a248_0x1fa441(0x91)](){const _0x5d3e53=a248_0x1fa441;return this[_0x5d3e53(0x93)];}async[a248_0x1fa441(0x81)](){const _0x4375e0=a248_0x1fa441;try{const _0x4a64bd=await readdir(this[_0x4375e0(0x8f)]),_0x48c795=new Date()[_0x4375e0(0x77)]()[_0x4375e0(0x95)]('T')[0x0];if(_0x4a64bd[_0x4375e0(0x83)](this[_0x4375e0(0x7e)])){const _0x3d56c8=join(this[_0x4375e0(0x8f)],this[_0x4375e0(0x7e)]),_0x150aa0=await stat(_0x3d56c8),_0x416a83=new Date(_0x150aa0[_0x4375e0(0x78)])[_0x4375e0(0x77)]()[_0x4375e0(0x95)]('T')[0x0];if(_0x416a83<_0x48c795){const _0x571c2f=join(this[_0x4375e0(0x8f)],this[_0x4375e0(0x96)]+'-'+_0x416a83+_0x4375e0(0x80));await rename(_0x3d56c8,_0x571c2f);}}const _0x40da9b=await readdir(this['logDir']),_0x47f6d0=this['logBaseName'][_0x4375e0(0x76)](/[.*+?^${}()|[\]\\]/g,_0x4375e0(0x84)),_0x5dc3d1=new RegExp('^'+_0x47f6d0+_0x4375e0(0x8d)),_0xec89e5=_0x40da9b[_0x4375e0(0x87)](_0x318aa6=>_0x5dc3d1['test'](_0x318aa6));for(const _0x401f03 of _0xec89e5){const _0x3a8dfa=join(this[_0x4375e0(0x8f)],_0x401f03),_0x3fccb6=join(this[_0x4375e0(0x8f)],_0x401f03+'.gz');try{await pipeline(createReadStream(_0x3a8dfa),createGzip(),createWriteStream(_0x3fccb6)),await unlink(_0x3a8dfa);}catch(_0x329bc8){console[_0x4375e0(0x8c)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x401f03+':',_0x329bc8);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a249_0x4411(_0x155e41,_0x114c95){_0x155e41=_0x155e41-0x7c;var _0x5733a5=a249_0x5733();var _0x4411a7=_0x5733a5[_0x155e41];return _0x4411a7;}function a249_0x5733(){var _0x2f39da=['6719224yHMKBC','3126zBGNfU','336866BZvhbF','4146006QwrsKX','7GEqGXq','30DbcnmV','2343213DeFeQI','12TlFpIG','264510zlxfiR','1791163omPPsY','1XFlxNd','932ByECKL'];a249_0x5733=function(){return _0x2f39da;};return a249_0x5733();}(function(_0x5f1781,_0x5af53c){var _0x56ff92=a249_0x4411,_0x3f483c=_0x5f1781();while(!![]){try{var _0x2d8ddd=parseInt(_0x56ff92(0x86))/0x1*(-parseInt(_0x56ff92(0x7e))/0x2)+parseInt(_0x56ff92(0x7d))/0x3*(-parseInt(_0x56ff92(0x87))/0x4)+parseInt(_0x56ff92(0x84))/0x5+-parseInt(_0x56ff92(0x7f))/0x6*(-parseInt(_0x56ff92(0x80))/0x7)+-parseInt(_0x56ff92(0x7c))/0x8+parseInt(_0x56ff92(0x82))/0x9*(parseInt(_0x56ff92(0x81))/0xa)+-parseInt(_0x56ff92(0x85))/0xb*(-parseInt(_0x56ff92(0x83))/0xc);if(_0x2d8ddd===_0x5af53c)break;else _0x3f483c['push'](_0x3f483c['shift']());}catch(_0x4695da){_0x3f483c['push'](_0x3f483c['shift']());}}}(a249_0x5733,0x6a9cd));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1b819a,_0xb801c){var _0x2a5bef=a250_0x52c2,_0x389419=_0x1b819a();while(!![]){try{var _0x4dc2e3=-parseInt(_0x2a5bef(0x172))/0x1*(-parseInt(_0x2a5bef(0x16f))/0x2)+parseInt(_0x2a5bef(0x170))/0x3*(-parseInt(_0x2a5bef(0x174))/0x4)+parseInt(_0x2a5bef(0x175))/0x5+parseInt(_0x2a5bef(0x173))/0x6+parseInt(_0x2a5bef(0x171))/0x7+parseInt(_0x2a5bef(0x176))/0x8*(-parseInt(_0x2a5bef(0x16e))/0x9)+-parseInt(_0x2a5bef(0x178))/0xa*(parseInt(_0x2a5bef(0x177))/0xb);if(_0x4dc2e3===_0xb801c)break;else _0x389419['push'](_0x389419['shift']());}catch(_0xcdce91){_0x389419['push'](_0x389419['shift']());}}}(a250_0x36c3,0xbda80));export class NullHandler{['handle'](_0x2705d4){}}function a250_0x52c2(_0x3df8b7,_0x3b8a01){_0x3df8b7=_0x3df8b7-0x16e;var _0x36c3be=a250_0x36c3();var _0x52c2c6=_0x36c3be[_0x3df8b7];return _0x52c2c6;}function a250_0x36c3(){var _0x4e99f4=['2053160AVGsyE','7157355UMADne','536NXTYBB','16984Xzrzca','5620IXLUcB','22374tRmmpv','12YISVWJ','6bCDYVq','2974671VahwQO','71739htxxQv','3305064ixQvXj'];a250_0x36c3=function(){return _0x4e99f4;};return a250_0x36c3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a251_0xeeff(_0x18477a,_0x319665){_0x18477a=_0x18477a-0x148;var _0x361d85=a251_0x361d();var _0xeeff27=_0x361d85[_0x18477a];return _0xeeff27;}(function(_0xaf4ecc,_0x3abdd4){var _0x4232e8=a251_0xeeff,_0xf48b8a=_0xaf4ecc();while(!![]){try{var _0x2e71f8=-parseInt(_0x4232e8(0x14c))/0x1*(-parseInt(_0x4232e8(0x14f))/0x2)+parseInt(_0x4232e8(0x151))/0x3+parseInt(_0x4232e8(0x14e))/0x4+parseInt(_0x4232e8(0x150))/0x5+-parseInt(_0x4232e8(0x148))/0x6*(-parseInt(_0x4232e8(0x14a))/0x7)+parseInt(_0x4232e8(0x149))/0x8+parseInt(_0x4232e8(0x14b))/0x9*(-parseInt(_0x4232e8(0x14d))/0xa);if(_0x2e71f8===_0x3abdd4)break;else _0xf48b8a['push'](_0xf48b8a['shift']());}catch(_0x1d01c9){_0xf48b8a['push'](_0xf48b8a['shift']());}}}(a251_0x361d,0x23962));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';function a251_0x361d(){var _0x292159=['454470QFKlWY','504489YVnYrZ','3210rAOriX','109480SdtZhU','3171TEKLCi','47079llaczU','42345PnPVcF','1220qiEgVp','736628mhQpEQ','4fXFNtJ'];a251_0x361d=function(){return _0x292159;};return a251_0x361d();}
|