@treasuredata/tdx 2026.8.6 → 2026.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/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 +48 -0
- 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-landing-page-command.d.ts +48 -0
- package/dist/commands/engage-landing-page-command.d.ts.map +1 -0
- package/dist/commands/engage-landing-page-command.js +1 -0
- package/dist/commands/engage-landing-page-command.js.map +1 -0
- 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.d.ts +28 -0
- package/dist/mcp/tools/tdx-run.d.ts.map +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-run.js.map +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 +67 -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/landing-page-init.d.ts +15 -0
- package/dist/sdk/engage/landing-page-init.d.ts.map +1 -0
- package/dist/sdk/engage/landing-page-init.js +1 -0
- package/dist/sdk/engage/landing-page-init.js.map +1 -0
- package/dist/sdk/engage/landing-page-public-asset.d.ts +16 -0
- package/dist/sdk/engage/landing-page-public-asset.d.ts.map +1 -0
- package/dist/sdk/engage/landing-page-public-asset.js +1 -0
- package/dist/sdk/engage/landing-page-public-asset.js.map +1 -0
- package/dist/sdk/engage/landing-page-pull.d.ts +42 -0
- package/dist/sdk/engage/landing-page-pull.d.ts.map +1 -0
- package/dist/sdk/engage/landing-page-pull.js +1 -0
- package/dist/sdk/engage/landing-page-pull.js.map +1 -0
- package/dist/sdk/engage/landing-page-push.d.ts +44 -0
- package/dist/sdk/engage/landing-page-push.d.ts.map +1 -0
- package/dist/sdk/engage/landing-page-push.js +1 -0
- package/dist/sdk/engage/landing-page-push.js.map +1 -0
- package/dist/sdk/engage/landing-page-static-site.d.ts +37 -0
- package/dist/sdk/engage/landing-page-static-site.d.ts.map +1 -0
- package/dist/sdk/engage/landing-page-static-site.js +1 -0
- package/dist/sdk/engage/landing-page-static-site.js.map +1 -0
- package/dist/sdk/engage/landing-page-validator.d.ts +17 -0
- package/dist/sdk/engage/landing-page-validator.d.ts.map +1 -0
- package/dist/sdk/engage/landing-page-validator.js +1 -0
- package/dist/sdk/engage/landing-page-validator.js.map +1 -0
- package/dist/sdk/engage/landing-page-workspace.d.ts +10 -0
- package/dist/sdk/engage/landing-page-workspace.d.ts.map +1 -0
- package/dist/sdk/engage/landing-page-workspace.js +1 -0
- package/dist/sdk/engage/landing-page-workspace.js.map +1 -0
- package/dist/sdk/engage/landing-page-yaml.d.ts +20 -0
- package/dist/sdk/engage/landing-page-yaml.d.ts.map +1 -0
- package/dist/sdk/engage/landing-page-yaml.js +1 -0
- package/dist/sdk/engage/landing-page-yaml.js.map +1 -0
- 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/landing-page-schema.d.ts +21 -0
- package/dist/sdk/engage/types/landing-page-schema.d.ts.map +1 -0
- package/dist/sdk/engage/types/landing-page-schema.js +1 -0
- package/dist/sdk/engage/types/landing-page-schema.js.map +1 -0
- package/dist/sdk/engage/types/template-schema.js +1 -1
- package/dist/sdk/engage.d.ts +97 -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 +6 -2
- 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.d.ts +1 -1
- package/dist/sdk/segment/yaml-validator.d.ts.map +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment/yaml-validator.js.map +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/engage.d.ts +223 -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 a243_0x1a5174=a243_0x1537;(function(_0x3c8eba,_0x1b9c82){const _0x4b6ab0=a243_0x1537,_0x3792f5=_0x3c8eba();while(!![]){try{const _0x5988a5=-parseInt(_0x4b6ab0(0x1cb))/0x1*(-parseInt(_0x4b6ab0(0x1c2))/0x2)+-parseInt(_0x4b6ab0(0x1e4))/0x3*(parseInt(_0x4b6ab0(0x1cd))/0x4)+parseInt(_0x4b6ab0(0x1da))/0x5*(parseInt(_0x4b6ab0(0x1bc))/0x6)+parseInt(_0x4b6ab0(0x1f6))/0x7*(parseInt(_0x4b6ab0(0x1f5))/0x8)+-parseInt(_0x4b6ab0(0x1ed))/0x9*(-parseInt(_0x4b6ab0(0x1c8))/0xa)+-parseInt(_0x4b6ab0(0x1b1))/0xb+-parseInt(_0x4b6ab0(0x1e6))/0xc*(-parseInt(_0x4b6ab0(0x1ea))/0xd);if(_0x5988a5===_0x1b9c82)break;else _0x3792f5['push'](_0x3792f5['shift']());}catch(_0x5f1fee){_0x3792f5['push'](_0x3792f5['shift']());}}}(a243_0x1ea8,0x84033));function a243_0x1537(_0x25fb4f,_0xf9a3a4){_0x25fb4f=_0x25fb4f-0x1ad;const _0x1ea8cf=a243_0x1ea8();let _0x15373d=_0x1ea8cf[_0x25fb4f];return _0x15373d;}import{vi}from'vitest';export class HTTPMockRegistry{[a243_0x1a5174(0x1d6)]=[];[a243_0x1a5174(0x1bb)]=[];[a243_0x1a5174(0x1d5)]=null;['REST'](_0x299c09,_0x216040){return _0x17425d=>{const _0x3e248f=a243_0x1537;if(_0x17425d['method'][_0x3e248f(0x1e9)]()!==_0x299c09[_0x3e248f(0x1e9)]())return![];const _0x190579=new URL(_0x17425d[_0x3e248f(0x1ba)]);if(typeof _0x216040==='string')return _0x190579[_0x3e248f(0x1d7)]===_0x216040||_0x190579[_0x3e248f(0x1d7)][_0x3e248f(0x1ec)](_0x216040);return _0x216040[_0x3e248f(0x1db)](_0x190579['pathname']);};}['withQuery'](_0x13531a,_0xf6c804){return _0x4fc71a=>{const _0x533985=a243_0x1537;if(!_0x13531a(_0x4fc71a))return![];const _0x4e980e=new URL(_0x4fc71a[_0x533985(0x1ba)]);return Object[_0x533985(0x1ce)](_0xf6c804)[_0x533985(0x1c6)](([_0x1a7dd6,_0x3e7788])=>_0x4e980e[_0x533985(0x1eb)]['get'](_0x1a7dd6)===_0x3e7788);};}['withBody'](_0x482c7d,_0x2a9050){return _0x31351a=>{const _0xa68516=a243_0x1537;if(!_0x482c7d(_0x31351a))return![];if(typeof _0x2a9050===_0xa68516(0x1f9))return _0x2a9050(_0x31351a['body']);return JSON['stringify'](_0x31351a[_0xa68516(0x1c7)])===JSON[_0xa68516(0x1cc)](_0x2a9050);};}['withHost'](_0x362384,_0x123116){return _0x36599=>{const _0x56996d=a243_0x1537;if(!_0x362384(_0x36599))return![];const _0x12e5bb=new URL(_0x36599['url']);return _0x12e5bb[_0x56996d(0x1f2)]===_0x123116;};}['register'](_0x2346e4,_0x2fa17d,_0x309e92){const _0x5790f1=a243_0x1a5174;this[_0x5790f1(0x1d6)][_0x5790f1(0x1b7)]({'matcher':_0x2346e4,'responder':_0x2fa17d,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x309e92?.[_0x5790f1(0x1df)]});}[a243_0x1a5174(0x1b0)](_0x188c68,_0x1b2d4e,_0x51cd17){const _0x35e7a0=a243_0x1a5174,_0x305e03=_0x534af8=>{const _0xd02570=a243_0x1537;return _0x51cd17(_0x534af8[_0xd02570(0x1c7)],_0x534af8),_0x1b2d4e(_0x534af8);};this[_0x35e7a0(0x1f8)](_0x188c68,_0x305e03);}static[a243_0x1a5174(0x1d9)](_0x1c3b5f,_0x3d26e4=0xc8){const _0x3d113b=a243_0x1a5174;return()=>new Response(JSON[_0x3d113b(0x1cc)](_0x1c3b5f),{'status':_0x3d26e4,'headers':{'Content-Type':'application/json'}});}static['errorResponse'](_0x19c174,_0x29ea10,_0x1f08c5='simple'){return()=>{const _0x36768b=a243_0x1537;let _0x609c47;switch(_0x1f08c5){case _0x36768b(0x1d8):_0x609c47={'errors':{'error':_0x29ea10,'message':_0x29ea10,'severity':_0x36768b(0x1c1),'status_code':_0x19c174}};break;case'rfc9457':_0x609c47={'type':_0x36768b(0x1c3)+_0x19c174,'title':HTTPMockRegistry[_0x36768b(0x1ee)](_0x19c174),'status':_0x19c174,'detail':_0x29ea10};break;default:_0x609c47={'error':_0x29ea10};}return new Response(JSON[_0x36768b(0x1cc)](_0x609c47),{'status':_0x19c174,'headers':{'Content-Type':_0x36768b(0x1b3)}});};}static[a243_0x1a5174(0x1e0)](_0x234f12,_0x1cccf3,_0x44cec7=0xc8){const _0x361b36=a243_0x1a5174;return()=>new Response(JSON['stringify'](_0x234f12),{'status':_0x44cec7,'headers':{'Content-Type':_0x361b36(0x1b3),..._0x1cccf3}});}static['textResponse'](_0x10f2ec,_0x16b41d=0xc8){const _0x4e71d3=a243_0x1a5174;return()=>new Response(_0x10f2ec,{'status':_0x16b41d,'headers':{'Content-Type':_0x4e71d3(0x1c0)}});}static[a243_0x1a5174(0x1d4)](_0x52d34a){return()=>{throw new Error(_0x52d34a);};}[a243_0x1a5174(0x1fd)](){const _0x29b3ff=a243_0x1a5174;return this[_0x29b3ff(0x1d5)]=vi['fn']()[_0x29b3ff(0x1fa)](async(_0x3a3bab,_0x1214b3)=>{const _0x353c9e=_0x29b3ff,_0xcd71fb=this[_0x353c9e(0x1c9)](_0x3a3bab,_0x1214b3);this[_0x353c9e(0x1bb)][_0x353c9e(0x1b7)](_0xcd71fb);for(const _0x149123 of this['stubs']){if(_0x149123['matcher'](_0xcd71fb))return _0x149123[_0x353c9e(0x1be)]=!![],_0x149123[_0x353c9e(0x1d1)]++,_0x149123[_0x353c9e(0x1af)](_0xcd71fb);}const _0x5dde5d=this[_0x353c9e(0x1d6)][_0x353c9e(0x1b9)]((_0x5db656,_0x1ef519)=>'\x20\x20'+(_0x1ef519+0x1)+'.\x20'+(_0x5db656[_0x353c9e(0x1df)]??_0x353c9e(0x1bd)))[_0x353c9e(0x1ae)]('\x0a');throw new Error('No\x20stub\x20matched\x20request:\x20'+_0xcd71fb[_0x353c9e(0x1f4)]+'\x20'+_0xcd71fb['url']+'\x0a'+('Request\x20body:\x20'+JSON['stringify'](_0xcd71fb[_0x353c9e(0x1c7)])+'\x0a')+(_0x353c9e(0x1bf)+(_0x5dde5d||_0x353c9e(0x1cf))));}),this[_0x29b3ff(0x1d5)];}['parseRequest'](_0x176e68,_0x514293){const _0x11fb08=a243_0x1a5174,_0x5022b9={};if(_0x514293?.[_0x11fb08(0x1d3)]){if(_0x514293[_0x11fb08(0x1d3)]instanceof Headers)_0x514293[_0x11fb08(0x1d3)][_0x11fb08(0x1d0)]((_0x220f96,_0x12ce1f)=>{const _0xb32483=_0x11fb08;_0x5022b9[_0x12ce1f[_0xb32483(0x1e7)]()]=_0x220f96;});else{if(Array[_0x11fb08(0x1ff)](_0x514293[_0x11fb08(0x1d3)]))for(const [_0x520342,_0x169956]of _0x514293[_0x11fb08(0x1d3)]){_0x5022b9[_0x520342[_0x11fb08(0x1e7)]()]=_0x169956;}else for(const [_0x13ad76,_0x40f2e4]of Object[_0x11fb08(0x1ce)](_0x514293[_0x11fb08(0x1d3)])){_0x40f2e4!==undefined&&(_0x5022b9[_0x13ad76[_0x11fb08(0x1e7)]()]=_0x40f2e4);}}}let _0x438a0e;if(_0x514293?.['body'])try{_0x438a0e=JSON[_0x11fb08(0x1f1)](_0x514293[_0x11fb08(0x1c7)]);}catch{_0x438a0e=_0x514293[_0x11fb08(0x1c7)];}return{'method':_0x514293?.[_0x11fb08(0x1f4)]??_0x11fb08(0x1c4),'url':_0x176e68,'headers':_0x5022b9,'body':_0x438a0e};}['verify'](_0x48b32e){const _0x1bf239=a243_0x1a5174,_0x4ca8af=this[_0x1bf239(0x1d6)]['filter'](_0x41614e=>!_0x41614e['matched']);if(_0x4ca8af[_0x1bf239(0x1f3)]>0x0){const _0x1ca5d3=_0x4ca8af[_0x1bf239(0x1b9)](_0x3e7d07=>{const _0x50dc83=_0x1bf239,_0x37e89d=_0x3e7d07['description']?'\x20('+_0x3e7d07[_0x50dc83(0x1df)]+')':'',_0x1464ce=_0x3e7d07[_0x50dc83(0x1f7)][_0x50dc83(0x1dd)]('\x0a')[_0x50dc83(0x1c5)](0x2,0x5)[_0x50dc83(0x1ae)]('\x0a');return _0x50dc83(0x1e1)+_0x37e89d+_0x50dc83(0x1b5)+_0x1464ce;});_0x48b32e[_0x1bf239(0x1fc)](_0x4ca8af[_0x1bf239(0x1f3)]+_0x1bf239(0x1e2)+_0x1ca5d3[_0x1bf239(0x1ae)]('\x0a\x0a'));}}[a243_0x1a5174(0x1e3)](){const _0x441eb4=a243_0x1a5174;return[...this[_0x441eb4(0x1bb)]];}[a243_0x1a5174(0x1b2)](){const _0x5a1d61=a243_0x1a5174;return this[_0x5a1d61(0x1bb)][this['requests']['length']-0x1];}[a243_0x1a5174(0x1b6)](_0x314fad,_0x388623){const _0x3bfac5=a243_0x1a5174;return this[_0x3bfac5(0x1bb)][_0x3bfac5(0x1fe)](_0x4b1a06=>{const _0x3379ae=_0x3bfac5;if(_0x4b1a06[_0x3379ae(0x1f4)][_0x3379ae(0x1e9)]()!==_0x314fad[_0x3379ae(0x1e9)]())return![];if(typeof _0x388623===_0x3379ae(0x1e8))return _0x4b1a06[_0x3379ae(0x1ba)]['includes'](_0x388623);return _0x388623[_0x3379ae(0x1db)](_0x4b1a06[_0x3379ae(0x1ba)]);});}['getMatchCount'](_0x4dae50){const _0x221835=a243_0x1a5174;return this[_0x221835(0x1d6)][_0x4dae50]?.[_0x221835(0x1d1)]??0x0;}[a243_0x1a5174(0x1e5)](){const _0x3326e8=a243_0x1a5174;this['stubs']=[],this[_0x3326e8(0x1bb)]=[],this[_0x3326e8(0x1d5)]=null;}static[a243_0x1a5174(0x1ee)](_0xb83330){const _0x55667b=a243_0x1a5174,_0x37ba81={0xc8:'OK',0xc9:_0x55667b(0x1d2),0xcc:'No\x20Content',0x190:'Bad\x20Request',0x191:_0x55667b(0x1ca),0x193:_0x55667b(0x1ad),0x194:_0x55667b(0x1de),0x199:'Conflict',0x1a6:_0x55667b(0x1fb),0x1ad:_0x55667b(0x1b8),0x1f4:_0x55667b(0x1dc),0x1f6:_0x55667b(0x1b4),0x1f7:_0x55667b(0x1ef)};return _0x37ba81[_0xb83330]??_0x55667b(0x1f0);}}function a243_0x1ea8(){const _0x4fe675=['test','Internal\x20Server\x20Error','split','Not\x20Found','description','jsonResponseWithHeaders','Unmatched\x20stub','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','getRequests','9XHjRxd','reset','12yOynNt','toLowerCase','string','toUpperCase','8786375qBgxXw','searchParams','includes','121617Cwvoad','getStatusText','Service\x20Unavailable','Unknown','parse','host','length','method','8SaskMt','6849563svZfSU','stack','register','function','mockImplementation','Unprocessable\x20Entity','fail','createFetch','some','isArray','Forbidden','join','responder','registerWithInspector','10164352KzeXem','getLastRequest','application/json','Bad\x20Gateway','\x20registered\x20at:\x0a','wasCalled','push','Too\x20Many\x20Requests','map','url','requests','6fCtOuT','unnamed\x20stub','matched','Registered\x20stubs:\x0a','text/plain','error','2stGsFR','https://api.treasuredata.com/errors/','GET','slice','every','body','20MceUeE','parseRequest','Unauthorized','98416xMrqqB','stringify','782284XUHTVQ','entries','\x20\x20(none)','forEach','matchCount','Created','headers','networkError','fetchMock','stubs','pathname','td-api','jsonResponse','1358210uRynMP'];a243_0x1ea8=function(){return _0x4fe675;};return a243_0x1ea8();}export function createHTTPMock(){return new HTTPMockRegistry();}
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4ec777,_0x18229d){var _0xdb51d1=a244_0x12f3,_0xaebf94=_0x4ec777();while(!![]){try{var _0x2066aa=parseInt(_0xdb51d1(0x18f))/0x1*(-parseInt(_0xdb51d1(0x18e))/0x2)+parseInt(_0xdb51d1(0x189))/0x3+parseInt(_0xdb51d1(0x18b))/0x4*(-parseInt(_0xdb51d1(0x188))/0x5)+parseInt(_0xdb51d1(0x18c))/0x6*(-parseInt(_0xdb51d1(0x18a))/0x7)+parseInt(_0xdb51d1(0x186))/0x8+parseInt(_0xdb51d1(0x18d))/0x9+parseInt(_0xdb51d1(0x187))/0xa;if(_0x2066aa===_0x18229d)break;else _0xaebf94['push'](_0xaebf94['shift']());}catch(_0x693683){_0xaebf94['push'](_0xaebf94['shift']());}}}(a244_0x4c78,0x32f15));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a244_0x4c78(){var _0x3ecd98=['1416573RRxljr','2ySSwQH','368447kXIsKM','1733328YDihxK','1174590lAwTXq','15lixiDU','887433mNRwEo','63hYpXiu','5680KXTfZH','137310zwAYlt'];a244_0x4c78=function(){return _0x3ecd98;};return a244_0x4c78();}function a244_0x12f3(_0x348fe7,_0x86c93){_0x348fe7=_0x348fe7-0x186;var _0x4c78fb=a244_0x4c78();var _0x12f3bc=_0x4c78fb[_0x348fe7];return _0x12f3bc;}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 a245_0x5636(_0x525aa1,_0x1f830a){_0x525aa1=_0x525aa1-0x109;const _0x3e38bf=a245_0x3e38();let _0x563624=_0x3e38bf[_0x525aa1];return _0x563624;}function a245_0x3e38(){const _0x278822=['28mBQhMk','6TPXlPU','69529RMazie','all','map','2025632GJTVXQ','slice','301071LCEQbr','14179FYwHRV','5mpioJO','length','7306428nzFKBf','1118472TzNdMP','63tPmKcb','670mPHHow','2982168uGzflg'];a245_0x3e38=function(){return _0x278822;};return a245_0x3e38();}(function(_0xc80897,_0x5d2420){const _0x31875c=a245_0x5636,_0x4c2c6c=_0xc80897();while(!![]){try{const _0xdbbb77=-parseInt(_0x31875c(0x116))/0x1*(-parseInt(_0x31875c(0x115))/0x2)+-parseInt(_0x31875c(0x10b))/0x3*(-parseInt(_0x31875c(0x114))/0x4)+parseInt(_0x31875c(0x10d))/0x5*(-parseInt(_0x31875c(0x10f))/0x6)+parseInt(_0x31875c(0x109))/0x7+-parseInt(_0x31875c(0x110))/0x8*(-parseInt(_0x31875c(0x111))/0x9)+parseInt(_0x31875c(0x112))/0xa*(-parseInt(_0x31875c(0x10c))/0xb)+-parseInt(_0x31875c(0x113))/0xc;if(_0xdbbb77===_0x5d2420)break;else _0x4c2c6c['push'](_0x4c2c6c['shift']());}catch(_0xcb29a0){_0x4c2c6c['push'](_0x4c2c6c['shift']());}}}(a245_0x3e38,0x98f4e));export async function batchAsync(_0x523e6f,_0x5edafe,_0x583e2e=0xa){const _0x1575ad=a245_0x5636,_0x59535a=[];for(let _0x5c36ee=0x0;_0x5c36ee<_0x523e6f[_0x1575ad(0x10e)];_0x5c36ee+=_0x583e2e){const _0x473d3d=_0x523e6f[_0x1575ad(0x10a)](_0x5c36ee,_0x5c36ee+_0x583e2e),_0x3673f5=await Promise[_0x1575ad(0x117)](_0x473d3d[_0x1575ad(0x118)](_0x5edafe));_0x59535a['push'](..._0x3673f5);}return _0x59535a;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2095f2,_0x1aca23){const _0x11dd64=a246_0x32a2,_0x342a25=_0x2095f2();while(!![]){try{const _0xa1ea09=-parseInt(_0x11dd64(0x170))/0x1*(-parseInt(_0x11dd64(0x177))/0x2)+-parseInt(_0x11dd64(0x176))/0x3*(-parseInt(_0x11dd64(0x166))/0x4)+-parseInt(_0x11dd64(0x160))/0x5*(parseInt(_0x11dd64(0x16f))/0x6)+parseInt(_0x11dd64(0x16b))/0x7*(-parseInt(_0x11dd64(0x169))/0x8)+parseInt(_0x11dd64(0x178))/0x9*(parseInt(_0x11dd64(0x15d))/0xa)+-parseInt(_0x11dd64(0x15e))/0xb*(-parseInt(_0x11dd64(0x165))/0xc)+parseInt(_0x11dd64(0x162))/0xd*(-parseInt(_0x11dd64(0x172))/0xe);if(_0xa1ea09===_0x1aca23)break;else _0x342a25['push'](_0x342a25['shift']());}catch(_0x218392){_0x342a25['push'](_0x342a25['shift']());}}}(a246_0x5094,0xa1566));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';function a246_0x5094(){const _0x268c92=['projects','348166RXguFW','url','plugins','1248mQuxsy','12gUpMvT','source','isArray','542288tLIiQz','mcpServers','77PrdgXW','utf-8','length','string','420mffxuv','44726kydmKP','known_marketplaces.json','140crpsRz','object','installed_plugins.json','toLowerCase','943659hxUBOV','32kaQuzX','369RgUdPt','.claude','.json','188470dYOnbR','52943lJMgke','trim','89875TJDMcO'];a246_0x5094=function(){return _0x268c92;};return a246_0x5094();}import{join}from'node:path';export function getClaudeConfigDir(){const _0x36fcf5=a246_0x32a2;return process.env.CLAUDE_CONFIG_DIR||join(homedir(),_0x36fcf5(0x15b));}function getClaudeJsonPath(){const _0x22bda0=a246_0x32a2,_0x5e024a=getClaudeConfigDir(),_0x45704e=join(_0x5e024a,'.claude.json');return existsSync(_0x45704e)?_0x45704e:_0x5e024a+_0x22bda0(0x15c);}function readJsonFile(_0x14bc97){const _0x3c7c14=a246_0x32a2;if(!existsSync(_0x14bc97))return undefined;try{return JSON['parse'](readFileSync(_0x14bc97,_0x3c7c14(0x16c)));}catch{return undefined;}}function a246_0x32a2(_0x54e9ce,_0x20a27d){_0x54e9ce=_0x54e9ce-0x15b;const _0x5094eb=a246_0x5094();let _0x32a220=_0x5094eb[_0x54e9ce];return _0x32a220;}function asRecord(_0x3e8e51){const _0x501b24=a246_0x32a2;return typeof _0x3e8e51===_0x501b24(0x173)&&_0x3e8e51!==null&&!Array[_0x501b24(0x168)](_0x3e8e51)?_0x3e8e51:undefined;}function mcpServerUrl(_0x4b75eb,_0x1d33a2){const _0xa76c92=a246_0x32a2,_0x2a59ac=asRecord(asRecord(_0x4b75eb)?.[_0x1d33a2]);return typeof _0x2a59ac?.['url']==='string'?_0x2a59ac[_0xa76c92(0x163)]:undefined;}export function findMcpServerUrl(_0x51be75,_0x655d01){const _0x4b6afe=a246_0x32a2,_0x2195ae=asRecord(readJsonFile(getClaudeJsonPath())),_0x350192=asRecord(asRecord(_0x2195ae?.[_0x4b6afe(0x161)])?.[_0x655d01]),_0x1ba883=mcpServerUrl(_0x350192?.[_0x4b6afe(0x16a)],_0x51be75);if(_0x1ba883)return _0x1ba883;const _0x51a20b=mcpServerUrl(_0x2195ae?.[_0x4b6afe(0x16a)],_0x51be75);if(_0x51a20b)return _0x51a20b;return mcpServerUrl(asRecord(readJsonFile(join(_0x655d01,'.mcp.json')))?.[_0x4b6afe(0x16a)],_0x51be75);}export function normalizeRepoUrl(_0x17e93d){const _0x301fba=a246_0x32a2;return _0x17e93d[_0x301fba(0x15f)]()[_0x301fba(0x175)]()['replace'](/\.git$/,'')['replace'](/\/+$/,'');}export function readMarketplaceSourceUrl(_0xc15ada){const _0x43961b=a246_0x32a2,_0xe4542c=join(getClaudeConfigDir(),'plugins',_0x43961b(0x171)),_0x555d3c=asRecord(asRecord(readJsonFile(_0xe4542c))?.[_0xc15ada])?.[_0x43961b(0x167)],_0x1c168e=asRecord(_0x555d3c);if(!_0x1c168e)return undefined;if(typeof _0x1c168e[_0x43961b(0x163)]===_0x43961b(0x16e))return normalizeRepoUrl(_0x1c168e[_0x43961b(0x163)]);if(typeof _0x1c168e['repo']===_0x43961b(0x16e))return normalizeRepoUrl('https://github.com/'+_0x1c168e['repo']);return undefined;}export function isPluginInstalled(_0x5a3388,_0x4de21f){const _0x306b06=a246_0x32a2,_0x365315=join(getClaudeConfigDir(),'plugins',_0x306b06(0x174)),_0x2e663c=readJsonFile(_0x365315),_0x2e6d03=_0x2e663c?.[_0x306b06(0x164)]?.[_0x5a3388+'@'+_0x4de21f];return Array[_0x306b06(0x168)](_0x2e6d03)&&_0x2e6d03[_0x306b06(0x16d)]>0x0;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a247_0x55ce(){const _0x4fee18=['yellow','13766110ZoEzvH','repeat','isArray','3672APJFZA','string','noColor','50fAzQJF','stringify','length','number','2121976UZWioF','22288GHdkvv','object','2575CaEzLm','boolean','710298IhgLAM','color','dim','11OdFDSr','stdout','49535952szynlu','Chalk','cyan','null','map','join','42OQOycp','181372TmKhEF','66CTMYys'];a247_0x55ce=function(){return _0x4fee18;};return a247_0x55ce();}const a247_0x107f23=a247_0x10d5;(function(_0x2d6dd9,_0x2a80f0){const _0x2ea64b=a247_0x10d5,_0x269959=_0x2d6dd9();while(!![]){try{const _0x4970b8=parseInt(_0x2ea64b(0x118))/0x1*(parseInt(_0x2ea64b(0x11d))/0x2)+-parseInt(_0x2ea64b(0x110))/0x3*(parseInt(_0x2ea64b(0x10f))/0x4)+parseInt(_0x2ea64b(0x11f))/0x5*(parseInt(_0x2ea64b(0x115))/0x6)+parseInt(_0x2ea64b(0x10e))/0x7*(-parseInt(_0x2ea64b(0x11c))/0x8)+-parseInt(_0x2ea64b(0x121))/0x9+-parseInt(_0x2ea64b(0x112))/0xa*(parseInt(_0x2ea64b(0x124))/0xb)+parseInt(_0x2ea64b(0x126))/0xc;if(_0x4970b8===_0x2a80f0)break;else _0x269959['push'](_0x269959['shift']());}catch(_0x3823be){_0x269959['push'](_0x269959['shift']());}}}(a247_0x55ce,0xe95a7));import*as a247_0x296377 from'chalk';const Chalk=a247_0x296377[a247_0x107f23(0x127)];export function shouldUseColor(_0x496ca5={}){const _0x132335=a247_0x107f23;if(_0x496ca5[_0x132335(0x117)]===!![])return![];if(_0x496ca5[_0x132335(0x122)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x132335(0x125)]['isTTY']??![];}export function getChalk(_0x19c15e={}){if(shouldUseColor(_0x19c15e))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x235aa3,_0x1c3127={}){return getChalk(_0x1c3127)['dim'](_0x235aa3);}function a247_0x10d5(_0x23ca79,_0x162d1b){_0x23ca79=_0x23ca79-0x10a;const _0x55cea0=a247_0x55ce();let _0x10d5c2=_0x55cea0[_0x23ca79];return _0x10d5c2;}export function colorHeader(_0x1ff9d5,_0x1b079c={}){const _0x309ca5=a247_0x107f23;return getChalk(_0x1b079c)[_0x309ca5(0x10a)](_0x1ff9d5);}export function colorType(_0x53c2de,_0x1bb0f1={}){const _0x17975f=a247_0x107f23;return getChalk(_0x1bb0f1)[_0x17975f(0x123)](_0x53c2de);}export function colorJSONKey(_0x2063bd,_0x1584f0={}){return getChalk(_0x1584f0)['blue'](_0x2063bd);}export function colorJSONString(_0x482f4d,_0x4431a0={}){return getChalk(_0x4431a0)['green'](_0x482f4d);}export function colorJSONNumber(_0x2e5438,_0x3193c={}){const _0xad27c=a247_0x107f23;return getChalk(_0x3193c)[_0xad27c(0x10a)](_0x2e5438);}export function colorJSONBoolean(_0x89eb63,_0x103e42={}){const _0x3d6eb9=a247_0x107f23;return getChalk(_0x103e42)[_0x3d6eb9(0x111)](_0x89eb63);}export function colorJSONNull(_0xde0296,_0xccb4d7={}){const _0xfa3aa0=a247_0x107f23;return getChalk(_0xccb4d7)[_0xfa3aa0(0x123)](_0xde0296);}export function colorizeJSONCompact(_0x5c49b4,_0x51fc12={}){const _0x4a2d4b=a247_0x107f23;if(!shouldUseColor(_0x51fc12))return JSON[_0x4a2d4b(0x119)](_0x5c49b4);if(_0x5c49b4===null)return colorJSONNull('null',_0x51fc12);if(typeof _0x5c49b4===_0x4a2d4b(0x120))return colorJSONBoolean(String(_0x5c49b4),_0x51fc12);if(typeof _0x5c49b4===_0x4a2d4b(0x11b))return colorJSONNumber(String(_0x5c49b4),_0x51fc12);if(typeof _0x5c49b4===_0x4a2d4b(0x116))return colorJSONString(JSON[_0x4a2d4b(0x119)](_0x5c49b4),_0x51fc12);if(Array[_0x4a2d4b(0x114)](_0x5c49b4)){if(_0x5c49b4[_0x4a2d4b(0x11a)]===0x0)return'[]';const _0x1e72e3=_0x5c49b4[_0x4a2d4b(0x10c)](_0x264a03=>colorizeJSONCompact(_0x264a03,_0x51fc12));return'['+_0x1e72e3[_0x4a2d4b(0x10d)](',')+']';}if(typeof _0x5c49b4===_0x4a2d4b(0x11e)){const _0x1a453a=Object['entries'](_0x5c49b4);if(_0x1a453a[_0x4a2d4b(0x11a)]===0x0)return'{}';const _0x1eba78=_0x1a453a['map'](([_0x1ba018,_0x2fcc54])=>{const _0x4794a6=_0x4a2d4b,_0x1dc3ea=colorJSONKey(JSON[_0x4794a6(0x119)](_0x1ba018),_0x51fc12),_0x1b2a4b=colorizeJSONCompact(_0x2fcc54,_0x51fc12);return _0x1dc3ea+':'+_0x1b2a4b;});return'{'+_0x1eba78['join'](',')+'}';}return String(_0x5c49b4);}export function colorizeJSON(_0x24bd9a,_0x2b8255={},_0x2f2f5f=0x0){const _0x3d44e4=a247_0x107f23;if(!shouldUseColor(_0x2b8255))return JSON[_0x3d44e4(0x119)](_0x24bd9a,null,0x2);const _0x1b73f7='\x20'[_0x3d44e4(0x113)](_0x2f2f5f),_0x4b1304=_0x2f2f5f+0x2;if(_0x24bd9a===null)return colorJSONNull(_0x3d44e4(0x10b),_0x2b8255);if(typeof _0x24bd9a==='boolean')return colorJSONBoolean(String(_0x24bd9a),_0x2b8255);if(typeof _0x24bd9a===_0x3d44e4(0x11b))return colorJSONNumber(String(_0x24bd9a),_0x2b8255);if(typeof _0x24bd9a===_0x3d44e4(0x116))return colorJSONString(JSON[_0x3d44e4(0x119)](_0x24bd9a),_0x2b8255);if(Array[_0x3d44e4(0x114)](_0x24bd9a)){if(_0x24bd9a[_0x3d44e4(0x11a)]===0x0)return'[]';const _0x1ca24d=_0x24bd9a['map'](_0x1bbb4d=>{const _0x593481=colorizeJSON(_0x1bbb4d,_0x2b8255,_0x4b1304);return''+'\x20'['repeat'](_0x4b1304)+_0x593481;});return'[\x0a'+_0x1ca24d['join'](',\x0a')+('\x0a'+_0x1b73f7+']');}if(typeof _0x24bd9a===_0x3d44e4(0x11e)){const _0x45640d=Object['entries'](_0x24bd9a);if(_0x45640d[_0x3d44e4(0x11a)]===0x0)return'{}';const _0x7b98ae=_0x45640d[_0x3d44e4(0x10c)](([_0x57f3ec,_0x2652a4])=>{const _0x4e6ad8=_0x3d44e4,_0x3c2804=colorJSONKey(JSON[_0x4e6ad8(0x119)](_0x57f3ec),_0x2b8255),_0x2ea3c4=colorizeJSON(_0x2652a4,_0x2b8255,_0x4b1304);return''+'\x20'[_0x4e6ad8(0x113)](_0x4b1304)+_0x3c2804+':\x20'+_0x2ea3c4;});return'{\x0a'+_0x7b98ae[_0x3d44e4(0x10d)](',\x0a')+('\x0a'+_0x1b73f7+'}');}return String(_0x24bd9a);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x36adbc,_0x31fab6){const _0x1f9336=a248_0x3db5,_0x120d82=_0x36adbc();while(!![]){try{const _0x3711be=-parseInt(_0x1f9336(0x1fc))/0x1*(-parseInt(_0x1f9336(0x1eb))/0x2)+-parseInt(_0x1f9336(0x1e9))/0x3+-parseInt(_0x1f9336(0x200))/0x4+parseInt(_0x1f9336(0x204))/0x5+-parseInt(_0x1f9336(0x1f4))/0x6*(parseInt(_0x1f9336(0x1f6))/0x7)+-parseInt(_0x1f9336(0x208))/0x8+parseInt(_0x1f9336(0x1f2))/0x9;if(_0x3711be===_0x31fab6)break;else _0x120d82['push'](_0x120d82['shift']());}catch(_0x3759f5){_0x120d82['push'](_0x120d82['shift']());}}}(a248_0x5a71,0x19dae));import a248_0x2bedec from'chalk';function a248_0x5a71(){const _0x362d63=['map','297999NllDyq','some','730aYDDGX','dim','type','green','split','\x20\x20\x20','added','2358936EhtYoT','add','30xFcImT','length','139937CtYbvU','padStart','repeat','push','min','\x20+\x20','509iYNBHp','join','content','max','824392fglVMi','has','unchanged','new','625585GgIAdf','fill','unshift','\x20-\x20','493744XooQbB','removed','old'];a248_0x5a71=function(){return _0x362d63;};return a248_0x5a71();}function a248_0x3db5(_0x332666,_0x23d6a6){_0x332666=_0x332666-0x1e9;const _0x5a7101=a248_0x5a71();let _0x3db511=_0x5a7101[_0x332666];return _0x3db511;}export function generateDiff(_0x21dba9,_0x4895f2){const _0x27fd98=a248_0x3db5,_0x4fcebb=_0x21dba9[_0x27fd98(0x1ef)]('\x0a'),_0x2b67e5=_0x4895f2[_0x27fd98(0x1ef)]('\x0a'),_0x5d6a97=[],_0x10407c=computeLCS(_0x4fcebb,_0x2b67e5);let _0x2f2b0d=0x0,_0x5bd4ae=0x0,_0x5a0cc2=0x0;while(_0x2f2b0d<_0x4fcebb[_0x27fd98(0x1f5)]||_0x5bd4ae<_0x2b67e5[_0x27fd98(0x1f5)]){if(_0x5a0cc2<_0x10407c[_0x27fd98(0x1f5)]&&_0x2f2b0d<_0x4fcebb[_0x27fd98(0x1f5)]&&_0x4fcebb[_0x2f2b0d]===_0x10407c[_0x5a0cc2])_0x5bd4ae<_0x2b67e5['length']&&_0x2b67e5[_0x5bd4ae]===_0x10407c[_0x5a0cc2]?(_0x5d6a97[_0x27fd98(0x1f9)]({'type':_0x27fd98(0x202),'content':_0x4fcebb[_0x2f2b0d]}),_0x2f2b0d++,_0x5bd4ae++,_0x5a0cc2++):(_0x5d6a97[_0x27fd98(0x1f9)]({'type':_0x27fd98(0x1f1),'content':_0x2b67e5[_0x5bd4ae]}),_0x5bd4ae++);else{if(_0x5a0cc2<_0x10407c[_0x27fd98(0x1f5)]&&_0x5bd4ae<_0x2b67e5[_0x27fd98(0x1f5)]&&_0x2b67e5[_0x5bd4ae]===_0x10407c[_0x5a0cc2])_0x5d6a97['push']({'type':'removed','content':_0x4fcebb[_0x2f2b0d]}),_0x2f2b0d++;else{if(_0x2f2b0d<_0x4fcebb['length']&&(_0x5a0cc2>=_0x10407c[_0x27fd98(0x1f5)]||_0x4fcebb[_0x2f2b0d]!==_0x10407c[_0x5a0cc2]))_0x5d6a97[_0x27fd98(0x1f9)]({'type':_0x27fd98(0x209),'content':_0x4fcebb[_0x2f2b0d]}),_0x2f2b0d++;else _0x5bd4ae<_0x2b67e5['length']&&(_0x5d6a97[_0x27fd98(0x1f9)]({'type':'added','content':_0x2b67e5[_0x5bd4ae]}),_0x5bd4ae++);}}}return _0x5d6a97;}function computeLCS(_0x426840,_0x7c1f09){const _0x26fc32=a248_0x3db5,_0x4bccce=_0x426840[_0x26fc32(0x1f5)],_0x4f8af7=_0x7c1f09[_0x26fc32(0x1f5)],_0x56d556=Array(_0x4bccce+0x1)['fill'](null)[_0x26fc32(0x20b)](()=>Array(_0x4f8af7+0x1)[_0x26fc32(0x205)](0x0));for(let _0x585cab=0x1;_0x585cab<=_0x4bccce;_0x585cab++){for(let _0x4a2458=0x1;_0x4a2458<=_0x4f8af7;_0x4a2458++){_0x426840[_0x585cab-0x1]===_0x7c1f09[_0x4a2458-0x1]?_0x56d556[_0x585cab][_0x4a2458]=_0x56d556[_0x585cab-0x1][_0x4a2458-0x1]+0x1:_0x56d556[_0x585cab][_0x4a2458]=Math[_0x26fc32(0x1ff)](_0x56d556[_0x585cab-0x1][_0x4a2458],_0x56d556[_0x585cab][_0x4a2458-0x1]);}}const _0x2baaa7=[];let _0x3b8d66=_0x4bccce,_0x5b7293=_0x4f8af7;while(_0x3b8d66>0x0&&_0x5b7293>0x0){if(_0x426840[_0x3b8d66-0x1]===_0x7c1f09[_0x5b7293-0x1])_0x2baaa7[_0x26fc32(0x206)](_0x426840[_0x3b8d66-0x1]),_0x3b8d66--,_0x5b7293--;else _0x56d556[_0x3b8d66-0x1][_0x5b7293]>_0x56d556[_0x3b8d66][_0x5b7293-0x1]?_0x3b8d66--:_0x5b7293--;}return _0x2baaa7;}export function formatDiffWithColors(_0x2be39a,_0x1b1962=0x3){const _0x3475c0=a248_0x3db5,_0x476819=new Set();_0x2be39a['forEach']((_0x3d5253,_0x43a3f6)=>{const _0x301525=a248_0x3db5;_0x3d5253['type']!==_0x301525(0x202)&&_0x476819[_0x301525(0x1f3)](_0x43a3f6);});if(_0x476819['size']===0x0)return'';const _0xa88c22=new Set();for(const _0xa462af of _0x476819){for(let _0x3be694=Math[_0x3475c0(0x1ff)](0x0,_0xa462af-_0x1b1962);_0x3be694<=Math[_0x3475c0(0x1fa)](_0x2be39a[_0x3475c0(0x1f5)]-0x1,_0xa462af+_0x1b1962);_0x3be694++){_0xa88c22[_0x3475c0(0x1f3)](_0x3be694);}}const _0x35a785=[];let _0x33f278=-0x1;const _0xf04051=_0x2be39a[_0x3475c0(0x1f5)],_0x5db391=Math[_0x3475c0(0x1ff)](0x3,String(_0xf04051)[_0x3475c0(0x1f5)]),_0x1eb8d6=[];let _0x3e23a1=0x0,_0x1077ac=0x0;for(const _0x4faa20 of _0x2be39a){if(_0x4faa20[_0x3475c0(0x1ed)]===_0x3475c0(0x209))_0x3e23a1++,_0x1eb8d6[_0x3475c0(0x1f9)]({'old':_0x3e23a1,'new':0x0});else _0x4faa20[_0x3475c0(0x1ed)]==='added'?(_0x1077ac++,_0x1eb8d6[_0x3475c0(0x1f9)]({'old':0x0,'new':_0x1077ac})):(_0x3e23a1++,_0x1077ac++,_0x1eb8d6[_0x3475c0(0x1f9)]({'old':_0x3e23a1,'new':_0x1077ac}));}for(let _0x13fd59=0x0;_0x13fd59<_0x2be39a[_0x3475c0(0x1f5)];_0x13fd59++){if(!_0xa88c22[_0x3475c0(0x201)](_0x13fd59))continue;_0x33f278!==-0x1&&_0x13fd59>_0x33f278+0x1&&_0x35a785[_0x3475c0(0x1f9)](a248_0x2bedec['cyan']('\x20\x20...'));_0x33f278=_0x13fd59;const _0x389a50=_0x2be39a[_0x13fd59],_0x1be7e0=_0x1eb8d6[_0x13fd59],_0x3c24db=_0x1be7e0[_0x3475c0(0x20a)]>0x0?String(_0x1be7e0[_0x3475c0(0x20a)])[_0x3475c0(0x1f7)](_0x5db391):'\x20'[_0x3475c0(0x1f8)](_0x5db391),_0x2bb1cb=_0x1be7e0[_0x3475c0(0x203)]>0x0?String(_0x1be7e0[_0x3475c0(0x203)])[_0x3475c0(0x1f7)](_0x5db391):'\x20'[_0x3475c0(0x1f8)](_0x5db391);switch(_0x389a50[_0x3475c0(0x1ed)]){case _0x3475c0(0x209):_0x35a785[_0x3475c0(0x1f9)](a248_0x2bedec['red'](_0x3c24db+'\x20'+_0x2bb1cb+_0x3475c0(0x207)+_0x389a50[_0x3475c0(0x1fe)]));break;case _0x3475c0(0x1f1):_0x35a785['push'](a248_0x2bedec[_0x3475c0(0x1ee)](_0x3c24db+'\x20'+_0x2bb1cb+_0x3475c0(0x1fb)+_0x389a50[_0x3475c0(0x1fe)]));break;default:_0x35a785[_0x3475c0(0x1f9)](a248_0x2bedec[_0x3475c0(0x1ec)](_0x3c24db+'\x20'+_0x2bb1cb+_0x3475c0(0x1f0)+_0x389a50['content']));break;}}return _0x35a785[_0x3475c0(0x1fd)]('\x0a');}export function hasChanges(_0x8efa0b){const _0x336970=a248_0x3db5;return _0x8efa0b[_0x336970(0x1ea)](_0x2035ba=>_0x2035ba[_0x336970(0x1ed)]!==_0x336970(0x202));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x577997,_0x31daae){const _0x5278f2=a249_0x3264,_0x66c243=_0x577997();while(!![]){try{const _0x142b9e=parseInt(_0x5278f2(0x11c))/0x1+parseInt(_0x5278f2(0x12a))/0x2*(-parseInt(_0x5278f2(0x12d))/0x3)+parseInt(_0x5278f2(0x125))/0x4+parseInt(_0x5278f2(0x12f))/0x5+parseInt(_0x5278f2(0x11f))/0x6*(parseInt(_0x5278f2(0x126))/0x7)+parseInt(_0x5278f2(0x121))/0x8+-parseInt(_0x5278f2(0x127))/0x9;if(_0x142b9e===_0x31daae)break;else _0x66c243['push'](_0x66c243['shift']());}catch(_0x23bc1b){_0x66c243['push'](_0x66c243['shift']());}}}(a249_0x4930,0x4bfdb));import*as a249_0x3ea69d from'node:fs';function a249_0x4930(){const _0xe61c80=['909aWWLoU','chmodSync','231040riGrHK','30673IHOqFm','existsSync','Warning:\x20','6MSdPtm','statSync','1319280LTWrvn','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','mkdirSync','\x20has\x20insecure\x20permissions\x20(','316324rtXvRz','3217774LDQRYs','2137500grWBcf','dirname','warn','1530qGSwoE',').\x20','toString'];a249_0x4930=function(){return _0xe61c80;};return a249_0x4930();}import*as a249_0x2bbcb8 from'node:path';export function setSecureFilePermissions(_0x2cc4a5){const _0x2bf2d7=a249_0x3264;try{a249_0x3ea69d[_0x2bf2d7(0x12e)](_0x2cc4a5,0x180);}catch{console[_0x2bf2d7(0x129)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x2cc4a5);}}export function setSecureDirectoryPermissions(_0x4cad3b){const _0x3b9482=a249_0x3264;try{a249_0x3ea69d[_0x3b9482(0x12e)](_0x4cad3b,0x1c0);}catch{console[_0x3b9482(0x129)](_0x3b9482(0x122)+_0x4cad3b);}}function a249_0x3264(_0xba682,_0x273d3c){_0xba682=_0xba682-0x11c;const _0x493007=a249_0x4930();let _0x32642d=_0x493007[_0xba682];return _0x32642d;}export function createSecureDirectory(_0x190a3a){const _0x1237ad=a249_0x3264;!a249_0x3ea69d[_0x1237ad(0x11d)](_0x190a3a)&&(a249_0x3ea69d[_0x1237ad(0x123)](_0x190a3a,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x190a3a));}export function validateSecureFilePermissions(_0x1709f4){const _0x3df9dc=a249_0x3264;try{const _0x47330e=a249_0x3ea69d[_0x3df9dc(0x120)](_0x1709f4),_0x2c4bd1=_0x47330e['mode']&0x1ff,_0x194f66=(_0x2c4bd1&0x3f)!==0x0;if(_0x194f66)return console[_0x3df9dc(0x129)](_0x3df9dc(0x11e)+_0x1709f4+_0x3df9dc(0x124)+_0x2c4bd1[_0x3df9dc(0x12c)](0x8)+_0x3df9dc(0x12b)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x7209f3,_0x30a3f6){const _0x4fb588=a249_0x3264,_0xeff8fe=a249_0x2bbcb8[_0x4fb588(0x128)](_0x7209f3);createSecureDirectory(_0xeff8fe),a249_0x3ea69d['writeFileSync'](_0x7209f3,_0x30a3f6,{'mode':0x180}),setSecureFilePermissions(_0x7209f3);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1eb016,_0x4484a6){const _0x376463=a250_0x9e0d,_0x3eebe3=_0x1eb016();while(!![]){try{const _0x244319=-parseInt(_0x376463(0x9e))/0x1+parseInt(_0x376463(0x99))/0x2+-parseInt(_0x376463(0xa5))/0x3*(-parseInt(_0x376463(0xa2))/0x4)+-parseInt(_0x376463(0x9d))/0x5*(-parseInt(_0x376463(0x9f))/0x6)+-parseInt(_0x376463(0xa0))/0x7+parseInt(_0x376463(0xa8))/0x8*(parseInt(_0x376463(0x98))/0x9)+-parseInt(_0x376463(0x9c))/0xa*(parseInt(_0x376463(0xa1))/0xb);if(_0x244319===_0x4484a6)break;else _0x3eebe3['push'](_0x3eebe3['shift']());}catch(_0x2ca24b){_0x3eebe3['push'](_0x3eebe3['shift']());}}}(a250_0x1b83,0x6f2f5));import{readFileSync}from'fs';function a250_0x1b83(){const _0x1bbc64=['Permission\x20denied\x20reading\x20file\x20\x27','File\x20\x27','138jCrCGm','PERMISSION_DENIED','\x27:\x20','4000TAgHxY','Error\x20reading\x20file\x20\x27','utf-8','NOT_FOUND','11052TRNuIl','324582HAjwCY','\x27\x20not\x20found','message','3439970jCfXkJ','55EPpioB','409961VfjGiq','123648ICjdZJ','4880946jPbjKf','11MKBzqb','78580nkKbUH'];a250_0x1b83=function(){return _0x1bbc64;};return a250_0x1b83();}import{SDKError,ErrorCode}from'../sdk/errors.js';function a250_0x9e0d(_0x4aecde,_0x4d6e1b){_0x4aecde=_0x4aecde-0x97;const _0x1b8310=a250_0x1b83();let _0x9e0dc9=_0x1b8310[_0x4aecde];return _0x9e0dc9;}export function readFileContent(_0x496f0c){const _0x3fe7c6=a250_0x9e0d;try{return readFileSync(_0x496f0c,_0x3fe7c6(0xaa));}catch(_0x4e3685){const _0x24d5a4=_0x4e3685['code'];if(_0x24d5a4==='ENOENT')throw new SDKError(ErrorCode[_0x3fe7c6(0x97)],_0x3fe7c6(0xa4)+_0x496f0c+_0x3fe7c6(0x9a),_0x4e3685);else{if(_0x24d5a4==='EACCES')throw new SDKError(ErrorCode[_0x3fe7c6(0xa6)],_0x3fe7c6(0xa3)+_0x496f0c+'\x27',_0x4e3685);else throw new SDKError(ErrorCode['INTERNAL'],_0x3fe7c6(0xa9)+_0x496f0c+_0x3fe7c6(0xa7)+_0x4e3685[_0x3fe7c6(0x9b)],_0x4e3685);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a251_0xf8b9(){const _0x25b8d1=['8148vvtULM','10804248JaVRDK','api.github.com','prerelease','statusCode','find','length','21ZNqXlf','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','2947uXupfB','GitHub\x20API\x20returned\x20','parse','805pIpeFs','now','timeout','13320950KvFntr','tag_name','415076hrIpLg','118101qsuxjZ','25176AneEAc','next','get','resolve','fetchedAt','slice','1202794YATBHx','set','data','error'];a251_0xf8b9=function(){return _0x25b8d1;};return a251_0xf8b9();}(function(_0x44057e,_0x27e272){const _0x3f7aa7=a251_0x4a2b,_0x1443f9=_0x44057e();while(!![]){try{const _0x40788e=-parseInt(_0x3f7aa7(0x9a))/0x1+parseInt(_0x3f7aa7(0xa1))/0x2+parseInt(_0x3f7aa7(0x8f))/0x3*(-parseInt(_0x3f7aa7(0x99))/0x4)+-parseInt(_0x3f7aa7(0x94))/0x5*(parseInt(_0x3f7aa7(0x88))/0x6)+-parseInt(_0x3f7aa7(0x91))/0x7*(parseInt(_0x3f7aa7(0x9b))/0x8)+parseInt(_0x3f7aa7(0x89))/0x9+parseInt(_0x3f7aa7(0x97))/0xa;if(_0x40788e===_0x27e272)break;else _0x1443f9['push'](_0x1443f9['shift']());}catch(_0x3c81b9){_0x1443f9['push'](_0x1443f9['shift']());}}}(a251_0xf8b9,0xb61e3));function a251_0x4a2b(_0x768d0d,_0x23d18b){_0x768d0d=_0x768d0d-0x88;const _0xf8b9f6=a251_0xf8b9();let _0x4a2b88=_0xf8b9f6[_0x768d0d];return _0x4a2b88;}import*as a251_0x5264f9 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x2b4df0,_0x10905c,_0x4dc54a){const _0x35aa1c=a251_0x4a2b,_0x12f4e7=_0x2b4df0+'/'+_0x10905c,_0x4bee81=cache[_0x35aa1c(0x9d)](_0x12f4e7);if(_0x4bee81&&Date[_0x35aa1c(0x95)]()-_0x4bee81[_0x35aa1c(0x9f)]<CACHE_TTL_MS)return Promise[_0x35aa1c(0x9e)](_0x4bee81['releases']);return new Promise((_0x89681,_0x5edde4)=>{const _0x525e4e=_0x35aa1c,_0x4d1568={'hostname':_0x525e4e(0x8a),'path':'/repos/'+_0x2b4df0+'/'+_0x10905c+'/releases?per_page=20','headers':{'User-Agent':_0x4dc54a,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x28832d=a251_0x5264f9['get'](_0x4d1568,_0xf839b0=>{const _0x2064d2=_0x525e4e;let _0x2c6aa4='';_0xf839b0['on'](_0x2064d2(0xa3),_0x46a022=>{_0x2c6aa4+=_0x46a022['toString']();}),_0xf839b0['on']('end',()=>{const _0x5b121f=_0x2064d2;if(_0xf839b0[_0x5b121f(0x8c)]!==0xc8){_0x5edde4(new Error(_0x5b121f(0x92)+_0xf839b0[_0x5b121f(0x8c)]+':\x20'+_0x2c6aa4[_0x5b121f(0xa0)](0x0,0xc8)));return;}try{const _0x4e24ca=JSON[_0x5b121f(0x93)](_0x2c6aa4);cache[_0x5b121f(0xa2)](_0x12f4e7,{'releases':_0x4e24ca,'fetchedAt':Date[_0x5b121f(0x95)]()}),_0x89681(_0x4e24ca);}catch(_0x3f1f89){_0x5edde4(_0x3f1f89);}});});_0x28832d['on'](_0x525e4e(0x96),()=>{const _0x4b0d33=_0x525e4e;_0x28832d['destroy'](),_0x5edde4(new Error(_0x4b0d33(0x90)+REQUEST_TIMEOUT_MS+'ms'));}),_0x28832d['on'](_0x525e4e(0xa4),_0x5edde4);});}export async function resolveReleaseTag(_0x56d76b,_0xa8af8d,_0x22ef97,_0x53617e){const _0x343a9d=a251_0x4a2b;if(_0x56d76b===_0x343a9d(0x9c))return null;const _0xdab54c=await fetchGitHubReleases(_0xa8af8d,_0x22ef97,_0x53617e);if(_0xdab54c[_0x343a9d(0x8e)]===0x0)return null;const _0x265ff8=_0xdab54c[_0x343a9d(0x8d)](_0x5c8a0e=>!_0x5c8a0e[_0x343a9d(0x8b)]);return _0x265ff8?_0x265ff8[_0x343a9d(0x98)]:null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x21abde,_0x2cf17f){const _0x38c6c3=a252_0x4406,_0x2bb009=_0x21abde();while(!![]){try{const _0x5e1de0=-parseInt(_0x38c6c3(0x93))/0x1*(-parseInt(_0x38c6c3(0x9f))/0x2)+parseInt(_0x38c6c3(0x99))/0x3+-parseInt(_0x38c6c3(0x9a))/0x4*(-parseInt(_0x38c6c3(0x94))/0x5)+parseInt(_0x38c6c3(0x9d))/0x6*(parseInt(_0x38c6c3(0x91))/0x7)+-parseInt(_0x38c6c3(0x9b))/0x8+parseInt(_0x38c6c3(0x97))/0x9+-parseInt(_0x38c6c3(0x90))/0xa;if(_0x5e1de0===_0x2cf17f)break;else _0x2bb009['push'](_0x2bb009['shift']());}catch(_0xb04d62){_0x2bb009['push'](_0x2bb009['shift']());}}}(a252_0x1a1a,0x1f55d));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';function a252_0x4406(_0x162f3f,_0xaa2a4b){_0x162f3f=_0x162f3f-0x8c;const _0x1a1a9a=a252_0x1a1a();let _0x440641=_0x1a1a9a[_0x162f3f];return _0x440641;}import{homedir}from'os';export function getGlobalCacheDir(){const _0x1a3a66=a252_0x4406;return process.env.TDX_CACHE_DIR||join(homedir(),_0x1a3a66(0x95),_0x1a3a66(0x8e));}const registry=new Map();export function registerGlobalCacheKey(_0x30c357,_0x4d612d){const _0x33ca13=a252_0x4406,_0xd62b43=registry[_0x33ca13(0x98)](_0x30c357);if(_0xd62b43&&_0xd62b43!==_0x4d612d)throw new Error(_0x33ca13(0x8c)+_0x30c357+_0x33ca13(0x8d)+_0xd62b43+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x4d612d+'\x22');registry['set'](_0x30c357,_0x4d612d);}export function getGlobalCachePath(_0x47149c){return join(getGlobalCacheDir(),_0x47149c);}function ensureGlobalCacheDir(){const _0x6df1f=getGlobalCacheDir();!existsSync(_0x6df1f)&&mkdirSync(_0x6df1f,{'recursive':!![]});}function readCacheJson(_0x58b5d8){const _0x351cd2=a252_0x4406,_0x531f2b=getGlobalCachePath(_0x58b5d8);if(!existsSync(_0x531f2b))return undefined;try{const _0x5a0911=readFileSync(_0x531f2b,_0x351cd2(0x92));return JSON['parse'](_0x5a0911);}catch{return undefined;}}function writeCacheJson(_0x30be1a,_0x421104){const _0x4b91ee=a252_0x4406;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x30be1a),JSON['stringify'](_0x421104,null,0x2),_0x4b91ee(0x92));}function readCacheText(_0x3f128f){const _0x55d5e7=a252_0x4406,_0x5dfe96=getGlobalCachePath(_0x3f128f);if(!existsSync(_0x5dfe96))return undefined;try{return readFileSync(_0x5dfe96,_0x55d5e7(0x92));}catch{return undefined;}}function writeCacheText(_0x40db90,_0x1b70ca){const _0xfce0f8=a252_0x4406;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x40db90),_0x1b70ca,_0xfce0f8(0x92));}function clearCache(_0x4a7a4a){const _0x4ca82b=getGlobalCachePath(_0x4a7a4a);if(existsSync(_0x4ca82b))try{unlinkSync(_0x4ca82b);}catch{}}function a252_0x1a1a(){const _0x2d68a4=['\x22\x20already\x20registered\x20by\x20\x22','tdx','clear','1980460yBvmoh','7zyCDvz','utf-8','1lLBThW','32865KMIgyG','.cache','replace','6507PmSgux','get','284016hJRvgd','68oKVIbr','1301168hDHBAE','trim','1524618SNmgaQ','{profile}','55604IaMcyw','Global\x20cache\x20key\x20\x22'];a252_0x1a1a=function(){return _0x2d68a4;};return a252_0x1a1a();}function cacheExists(_0x32710b){return existsSync(getGlobalCachePath(_0x32710b));}export function createGlobalCache(_0xdc2a38,_0xb7cd5f){return registerGlobalCacheKey(_0xdc2a38,_0xb7cd5f),{'read':()=>readCacheJson(_0xdc2a38),'write':_0x3bcfdb=>writeCacheJson(_0xdc2a38,_0x3bcfdb),'clear':()=>clearCache(_0xdc2a38),'exists':()=>cacheExists(_0xdc2a38),'path':()=>getGlobalCachePath(_0xdc2a38)};}export function createGlobalTextCache(_0x3ae7d7,_0x374ca1){const _0xd3947f=a252_0x4406;return registerGlobalCacheKey(_0x3ae7d7,_0x374ca1),{'read':()=>readCacheText(_0x3ae7d7)?.[_0xd3947f(0x9c)]()||undefined,'write':_0x3fed7c=>writeCacheText(_0x3ae7d7,_0x3fed7c),'clear':()=>clearCache(_0x3ae7d7),'exists':()=>cacheExists(_0x3ae7d7),'path':()=>getGlobalCachePath(_0x3ae7d7)};}export function createProfileCache(_0x1f2764,_0x41f73d){const _0x4fe83a=_0x282d12=>{const _0x2e74e1=a252_0x4406,_0x4359c1=_0x282d12||'default';return _0x1f2764[_0x2e74e1(0x96)](_0x2e74e1(0x9e),_0x4359c1);};return{'read':_0x3ac7c6=>{const _0x85804d=_0x4fe83a(_0x3ac7c6);return registerGlobalCacheKey(_0x85804d,_0x41f73d),readCacheJson(_0x85804d);},'write':(_0x5b9e31,_0x163bb0)=>{const _0x38a3eb=_0x4fe83a(_0x5b9e31);registerGlobalCacheKey(_0x38a3eb,_0x41f73d),writeCacheJson(_0x38a3eb,_0x163bb0);},'clear':_0x36f794=>{const _0x326aed=_0x4fe83a(_0x36f794);clearCache(_0x326aed);},'exists':_0x2a64bd=>{const _0x11c620=_0x4fe83a(_0x2a64bd);return cacheExists(_0x11c620);},'path':_0x5e6d45=>{const _0xcca485=_0x4fe83a(_0x5e6d45);return getGlobalCachePath(_0xcca485);}};}export function createOptionalProfileCache(_0x41a87e,_0x329f7c,_0x440280={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x440280,_0x5778dc=_0x53f951=>{return _0x53f951?''+_0x41a87e+profileSeparator+_0x53f951+suffix:''+_0x41a87e+suffix;};return{'read':_0x468d19=>{const _0x47413d=_0x5778dc(_0x468d19);return registerGlobalCacheKey(_0x47413d,_0x329f7c),readCacheJson(_0x47413d);},'write':(_0xf2ea3f,_0xf62064)=>{const _0x33efcf=_0x5778dc(_0xf62064);registerGlobalCacheKey(_0x33efcf,_0x329f7c),writeCacheJson(_0x33efcf,_0xf2ea3f);},'clear':_0x3693e2=>{const _0x364b4f=_0x5778dc(_0x3693e2);clearCache(_0x364b4f);},'exists':_0x4d3a55=>{const _0x57be13=_0x5778dc(_0x4d3a55);return cacheExists(_0x57be13);},'path':_0x246519=>{const _0x1e559d=_0x5778dc(_0x246519);return getGlobalCachePath(_0x1e559d);}};}export function clearGlobalRegistry(){const _0x5ed101=a252_0x4406;registry[_0x5ed101(0x8f)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x17f0d5,_0x4f6363){const _0x31e53a=a253_0x52fe,_0x380450=_0x17f0d5();while(!![]){try{const _0x379e57=parseInt(_0x31e53a(0x1b5))/0x1+-parseInt(_0x31e53a(0x1c3))/0x2*(-parseInt(_0x31e53a(0x1bb))/0x3)+parseInt(_0x31e53a(0x1b4))/0x4+parseInt(_0x31e53a(0x1b6))/0x5*(parseInt(_0x31e53a(0x1c5))/0x6)+-parseInt(_0x31e53a(0x1bc))/0x7+-parseInt(_0x31e53a(0x1c1))/0x8+parseInt(_0x31e53a(0x1ba))/0x9*(parseInt(_0x31e53a(0x1c0))/0xa);if(_0x379e57===_0x4f6363)break;else _0x380450['push'](_0x380450['shift']());}catch(_0x575de1){_0x380450['push'](_0x380450['shift']());}}}(a253_0x563b,0x91f26));function a253_0x563b(){const _0x144660=['Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','8048STsDiM','Failed\x20to\x20load\x20JSON:\x20','753822Zzbirt','Permission\x20denied\x20reading\x20file:\x20','parse','utf-8','EACCES','ENOENT','2042500veTzwC','661463gDKJrA','5gUCmjt','NOT_FOUND','INVALID_ARGUMENT','message','1996389PHYgBL','429YFVbhq','5335421tSZwIN','PERMISSION_DENIED','Invalid\x20JSON\x20string:\x20','code','30QmrfZa','9428952YYTkHW'];a253_0x563b=function(){return _0x144660;};return a253_0x563b();}import{readFile}from'fs/promises';function a253_0x52fe(_0x3ebf04,_0x3851e9){_0x3ebf04=_0x3ebf04-0x1b4;const _0x563b42=a253_0x563b();let _0x52fe62=_0x563b42[_0x3ebf04];return _0x52fe62;}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x1391cb,_0x2741a8){const _0x594a8b=a253_0x52fe;try{if(_0x2741a8){const _0x66593d=await readFile(_0x1391cb,_0x594a8b(0x1c8));try{return JSON[_0x594a8b(0x1c7)](_0x66593d);}catch(_0x277a91){throw new SDKError(ErrorCode[_0x594a8b(0x1b8)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x1391cb+'\x27:\x20'+(_0x277a91 instanceof Error?_0x277a91[_0x594a8b(0x1b9)]:String(_0x277a91)));}}else try{return JSON['parse'](_0x1391cb);}catch(_0x29c3c0){throw new SDKError(ErrorCode[_0x594a8b(0x1b8)],_0x594a8b(0x1be)+(_0x29c3c0 instanceof Error?_0x29c3c0['message']:String(_0x29c3c0)));}}catch(_0x5e1ba8){if(_0x5e1ba8 instanceof SDKError)throw _0x5e1ba8;if(_0x5e1ba8 instanceof Error&&'code'in _0x5e1ba8){const _0x381899=_0x5e1ba8;if(_0x381899[_0x594a8b(0x1bf)]===_0x594a8b(0x1ca))throw new SDKError(ErrorCode[_0x594a8b(0x1b7)],'File\x20not\x20found:\x20'+_0x1391cb);else{if(_0x381899['code']===_0x594a8b(0x1c9))throw new SDKError(ErrorCode[_0x594a8b(0x1bd)],_0x594a8b(0x1c6)+_0x1391cb);}}throw new SDKError(ErrorCode['INTERNAL'],_0x594a8b(0x1c4)+(_0x5e1ba8 instanceof Error?_0x5e1ba8[_0x594a8b(0x1b9)]:String(_0x5e1ba8)));}}export async function loadJSONFromOptions(_0x379799,_0x5b6641){const _0x4dddc7=a253_0x52fe;if(_0x379799&&_0x5b6641)throw new SDKError(ErrorCode[_0x4dddc7(0x1b8)],_0x4dddc7(0x1c2));if(_0x379799)return await loadJSON(_0x379799,![]);if(_0x5b6641)return await loadJSON(_0x5b6641,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a254_0x1376(){const _0x46550c=['960831nShDIS','trim','set','cwd','1882518ihhhOG','10nokcma','parse','.cache/tdx','root','63812DilMtZ','stringify','468ZbQzVy','clear','143743QHtJEW','utf-8','4314144FVPiSx','80845KFpQlY','8TOeSlx','212etEzFq','10157191zGjoTf','Cache\x20key\x20\x22'];a254_0x1376=function(){return _0x46550c;};return a254_0x1376();}const a254_0x32a2c4=a254_0x3c6b;(function(_0x4ad765,_0x1927ba){const _0x2d5b30=a254_0x3c6b,_0x41de59=_0x4ad765();while(!![]){try{const _0x10f652=parseInt(_0x2d5b30(0x171))/0x1*(-parseInt(_0x2d5b30(0x175))/0x2)+-parseInt(_0x2d5b30(0x168))/0x3+parseInt(_0x2d5b30(0x161))/0x4*(parseInt(_0x2d5b30(0x174))/0x5)+-parseInt(_0x2d5b30(0x16f))/0x6*(parseInt(_0x2d5b30(0x16d))/0x7)+parseInt(_0x2d5b30(0x173))/0x8+-parseInt(_0x2d5b30(0x164))/0x9*(-parseInt(_0x2d5b30(0x169))/0xa)+parseInt(_0x2d5b30(0x162))/0xb;if(_0x10f652===_0x1927ba)break;else _0x41de59['push'](_0x41de59['shift']());}catch(_0x1c52f1){_0x41de59['push'](_0x41de59['shift']());}}}(a254_0x1376,0x7d347));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a254_0x32a2c4(0x16b),registry=new Map();export function registerCacheKey(_0x211bd6,_0x2584a8){const _0x251775=a254_0x32a2c4,_0x539eb6=registry['get'](_0x211bd6);if(_0x539eb6&&_0x539eb6!==_0x2584a8)throw new Error(_0x251775(0x163)+_0x211bd6+'\x22\x20already\x20registered\x20by\x20\x22'+_0x539eb6+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x2584a8+'\x22');registry[_0x251775(0x166)](_0x211bd6,_0x2584a8);}export function getCacheDir(){const _0x122cea=a254_0x32a2c4,_0xb459e4=process[_0x122cea(0x167)](),_0x1a6ea0=_0xb459e4===parse(_0xb459e4)[_0x122cea(0x16c)]?homedir():_0xb459e4;return join(_0x1a6ea0,LOCAL_CACHE_DIR);}function a254_0x3c6b(_0x14cbab,_0x10e502){_0x14cbab=_0x14cbab-0x161;const _0x1376fe=a254_0x1376();let _0x3c6bae=_0x1376fe[_0x14cbab];return _0x3c6bae;}export function getCachePath(_0x31ecba){return join(getCacheDir(),_0x31ecba);}function ensureCacheDir(){const _0x2e80c2=getCacheDir();!existsSync(_0x2e80c2)&&mkdirSync(_0x2e80c2,{'recursive':!![]});}function readCacheJson(_0x5e7739){const _0x8ec8a5=a254_0x32a2c4,_0x418c5f=getCachePath(_0x5e7739);if(!existsSync(_0x418c5f))return undefined;try{const _0x1f7e9b=readFileSync(_0x418c5f,_0x8ec8a5(0x172));return JSON[_0x8ec8a5(0x16a)](_0x1f7e9b);}catch{return undefined;}}function writeCacheJson(_0x47e851,_0x4e0e67){const _0x310ec1=a254_0x32a2c4;ensureCacheDir(),writeFileSync(getCachePath(_0x47e851),JSON[_0x310ec1(0x16e)](_0x4e0e67,null,0x2),_0x310ec1(0x172));}function readCacheText(_0x1f628f){const _0x6cc597=a254_0x32a2c4,_0x75db17=getCachePath(_0x1f628f);if(!existsSync(_0x75db17))return undefined;try{return readFileSync(_0x75db17,_0x6cc597(0x172));}catch{return undefined;}}function writeCacheText(_0x251c0d,_0x258772){const _0x582908=a254_0x32a2c4;ensureCacheDir(),writeFileSync(getCachePath(_0x251c0d),_0x258772,_0x582908(0x172));}function clearCache(_0x41e1a3){const _0x1f9c34=getCachePath(_0x41e1a3);if(existsSync(_0x1f9c34))try{unlinkSync(_0x1f9c34);}catch{}}function cacheExists(_0x24c28e){return existsSync(getCachePath(_0x24c28e));}export function createCache(_0x4ce79d,_0xafd9bb){return registerCacheKey(_0x4ce79d,_0xafd9bb),{'read':()=>readCacheJson(_0x4ce79d),'write':_0x37d3cb=>writeCacheJson(_0x4ce79d,_0x37d3cb),'clear':()=>clearCache(_0x4ce79d),'exists':()=>cacheExists(_0x4ce79d),'path':()=>getCachePath(_0x4ce79d)};}export function createTextCache(_0x2a2010,_0x2f8459){const _0x46edaa=a254_0x32a2c4;return registerCacheKey(_0x2a2010,_0x2f8459),{'read':()=>readCacheText(_0x2a2010)?.[_0x46edaa(0x165)]()||undefined,'write':_0xb4f061=>writeCacheText(_0x2a2010,_0xb4f061),'clear':()=>clearCache(_0x2a2010),'exists':()=>cacheExists(_0x2a2010),'path':()=>getCachePath(_0x2a2010)};}export function clearRegistry(){const _0x3e376a=a254_0x32a2c4;registry[_0x3e376a(0x170)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a255_0x177a76=a255_0x545f;(function(_0x34ea89,_0x5e003a){const _0x4cd6dc=a255_0x545f,_0x537da4=_0x34ea89();while(!![]){try{const _0x318216=parseInt(_0x4cd6dc(0x101))/0x1+-parseInt(_0x4cd6dc(0x107))/0x2*(-parseInt(_0x4cd6dc(0x114))/0x3)+-parseInt(_0x4cd6dc(0x11c))/0x4+parseInt(_0x4cd6dc(0x10b))/0x5+-parseInt(_0x4cd6dc(0x115))/0x6+parseInt(_0x4cd6dc(0x104))/0x7+-parseInt(_0x4cd6dc(0x118))/0x8*(parseInt(_0x4cd6dc(0x108))/0x9);if(_0x318216===_0x5e003a)break;else _0x537da4['push'](_0x537da4['shift']());}catch(_0x30c530){_0x537da4['push'](_0x537da4['shift']());}}}(a255_0x157f,0x692f6));import a255_0x83f1bd from'chalk';function a255_0x545f(_0x2ecab2,_0x444b08){_0x2ecab2=_0x2ecab2-0xfe;const _0x157ff4=a255_0x157f();let _0x545f1e=_0x157ff4[_0x2ecab2];return _0x545f1e;}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a255_0x83f1bd,ChalkClass=chalkModule[a255_0x177a76(0x105)]||chalkModule[a255_0x177a76(0xfe)]?.[a255_0x177a76(0x105)];export class DefaultLogFormatter{[a255_0x177a76(0x11d)];[a255_0x177a76(0x10d)];constructor(_0x1b9491={}){const _0x1dc265=a255_0x177a76;this[_0x1dc265(0x11d)]=_0x1b9491[_0x1dc265(0x11d)]??![],this['chalk']=_0x1b9491[_0x1dc265(0x11d)]&&ChalkClass?new ChalkClass({'level':0x3}):a255_0x83f1bd;}[a255_0x177a76(0x10f)](_0x33fced){const _0x6fdbb8=a255_0x177a76,_0x2dc44a=formatTimestamp(_0x33fced[_0x6fdbb8(0x111)]),_0x454259=logLevelToString(_0x33fced[_0x6fdbb8(0x11a)]);if(!this['colors'])return _0x2dc44a+'\x20['+_0x454259+_0x6fdbb8(0xff)+_0x33fced[_0x6fdbb8(0x10c)]+']\x20'+_0x33fced[_0x6fdbb8(0x119)];const _0x10e399=this[_0x6fdbb8(0x10d)][_0x6fdbb8(0x116)](_0x2dc44a),_0x5b12c8=this[_0x6fdbb8(0x103)](_0x454259,_0x33fced[_0x6fdbb8(0x11a)]),_0x48564d=this['chalk'][_0x6fdbb8(0x10e)]('['+_0x33fced[_0x6fdbb8(0x10c)]+']');return _0x10e399+'\x20'+_0x5b12c8+'\x20'+_0x48564d+'\x20'+_0x33fced['message'];}[a255_0x177a76(0x103)](_0x264f7f,_0x1e6766){const _0x337a89=a255_0x177a76;switch(_0x1e6766){case LogLevel[_0x337a89(0x100)]:return this['chalk'][_0x337a89(0x11b)]('['+_0x264f7f+']');case LogLevel[_0x337a89(0x117)]:return this[_0x337a89(0x10d)][_0x337a89(0x109)]('['+_0x264f7f+']');case LogLevel[_0x337a89(0x106)]:return this[_0x337a89(0x10d)][_0x337a89(0x112)]('['+_0x264f7f+']');case LogLevel[_0x337a89(0x10a)]:return this['chalk'][_0x337a89(0x113)]('['+_0x264f7f+']');case LogLevel[_0x337a89(0x102)]:return this['chalk'][_0x337a89(0x110)]('['+_0x264f7f+']');default:return'['+_0x264f7f+']';}}}function a255_0x157f(){const _0x577c16=['message','level','gray','2731748elIPLB','colors','default',']\x20[','TRACE','224982GhhsrN','ERROR','colorLevel','544523Jqxupe','Chalk','INFO','4082sdhSGZ','454419NHLNIa','green','WARN','3255380HqhYLv','component','chalk','blue','format','red','timestamp','cyan','yellow','831yLjVqS','1220790DuJmwh','dim','DEBUG','32sotOQe'];a255_0x157f=function(){return _0x577c16;};return a255_0x157f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1440c1,_0x176d26){var _0x34f9e6=a256_0x33f3,_0x168e92=_0x1440c1();while(!![]){try{var _0x1a0ec0=-parseInt(_0x34f9e6(0x1b5))/0x1+parseInt(_0x34f9e6(0x1b6))/0x2+-parseInt(_0x34f9e6(0x1bb))/0x3+parseInt(_0x34f9e6(0x1bc))/0x4*(-parseInt(_0x34f9e6(0x1b8))/0x5)+-parseInt(_0x34f9e6(0x1b7))/0x6+-parseInt(_0x34f9e6(0x1bd))/0x7*(-parseInt(_0x34f9e6(0x1be))/0x8)+parseInt(_0x34f9e6(0x1b9))/0x9*(parseInt(_0x34f9e6(0x1ba))/0xa);if(_0x1a0ec0===_0x176d26)break;else _0x168e92['push'](_0x168e92['shift']());}catch(_0x5eebb4){_0x168e92['push'](_0x168e92['shift']());}}}(a256_0x1e0d,0x47a7c));function a256_0x33f3(_0x55dae7,_0x1a4bff){_0x55dae7=_0x55dae7-0x1b5;var _0x1e0d3a=a256_0x1e0d();var _0x33f371=_0x1e0d3a[_0x55dae7];return _0x33f371;}function a256_0x1e0d(){var _0x5573c6=['63318JjTUaa','5226bCVdBN','1376742eyFfqL','92780NCgQrX','3328605peAmxc','20irQRTA','1302120QcDovK','52pgjjEH','3634680PUrztm','8UniSpc'];a256_0x1e0d=function(){return _0x5573c6;};return a256_0x1e0d();}export{DefaultLogFormatter}from'./default-formatter.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a257_0x342150=a257_0x481a;function a257_0x481a(_0x324f0e,_0x4359b5){_0x324f0e=_0x324f0e-0x191;const _0x4690bd=a257_0x4690();let _0x481a73=_0x4690bd[_0x324f0e];return _0x481a73;}(function(_0x58208a,_0x157ea3){const _0x217031=a257_0x481a,_0x2cad2a=_0x58208a();while(!![]){try{const _0x3f4957=parseInt(_0x217031(0x19d))/0x1+parseInt(_0x217031(0x191))/0x2+-parseInt(_0x217031(0x199))/0x3+-parseInt(_0x217031(0x197))/0x4+parseInt(_0x217031(0x19c))/0x5+parseInt(_0x217031(0x196))/0x6*(-parseInt(_0x217031(0x19e))/0x7)+-parseInt(_0x217031(0x1a1))/0x8*(-parseInt(_0x217031(0x19b))/0x9);if(_0x3f4957===_0x157ea3)break;else _0x2cad2a['push'](_0x2cad2a['shift']());}catch(_0xf434a7){_0x2cad2a['push'](_0x2cad2a['shift']());}}}(a257_0x4690,0x8e553));import{LogLevel as a257_0x8fed5c}from'../types.js';function a257_0x4690(){const _0x3c7b6f=['1570854xKFMTE','WARN','log','colors','minLevel','740766KUIKLC','2613600PkFbNJ','level','3311115XshykG','error','855063weSNWl','3752510YIcqoL','851434VXjjDT','35GaGuVk','handle','formatter','48WjNYBg','useStderr'];a257_0x4690=function(){return _0x3c7b6f;};return a257_0x4690();}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{['minLevel'];[a257_0x342150(0x1a2)];[a257_0x342150(0x1a0)];constructor(_0x36e4c2={}){const _0x310ae1=a257_0x342150;this[_0x310ae1(0x195)]=_0x36e4c2[_0x310ae1(0x195)]??a257_0x8fed5c[_0x310ae1(0x192)],this[_0x310ae1(0x1a2)]=_0x36e4c2[_0x310ae1(0x1a2)]??!![],this[_0x310ae1(0x1a0)]=new DefaultLogFormatter({'colors':_0x36e4c2[_0x310ae1(0x194)]??!![]});}[a257_0x342150(0x19f)](_0x2250a9){const _0xe8cd7c=a257_0x342150;if(_0x2250a9['level']<this[_0xe8cd7c(0x195)])return;const _0x17e28d=this['formatter']['format'](_0x2250a9);this[_0xe8cd7c(0x1a2)]&&_0x2250a9[_0xe8cd7c(0x198)]>=a257_0x8fed5c[_0xe8cd7c(0x192)]?console[_0xe8cd7c(0x19a)](_0x17e28d):console[_0xe8cd7c(0x193)](_0x17e28d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a258_0x3673b5=a258_0xc607;function a258_0xc607(_0x3f62cf,_0x15609a){_0x3f62cf=_0x3f62cf-0x71;const _0x47695a=a258_0x4769();let _0xc60723=_0x47695a[_0x3f62cf];return _0xc60723;}(function(_0x2f42c1,_0x1654e5){const _0x552425=a258_0xc607,_0x31cc73=_0x2f42c1();while(!![]){try{const _0x3929dd=-parseInt(_0x552425(0x7e))/0x1*(-parseInt(_0x552425(0x7b))/0x2)+-parseInt(_0x552425(0x77))/0x3+-parseInt(_0x552425(0x85))/0x4*(-parseInt(_0x552425(0x71))/0x5)+parseInt(_0x552425(0x76))/0x6+-parseInt(_0x552425(0x98))/0x7+-parseInt(_0x552425(0x93))/0x8*(-parseInt(_0x552425(0x7c))/0x9)+parseInt(_0x552425(0x75))/0xa*(parseInt(_0x552425(0x97))/0xb);if(_0x3929dd===_0x1654e5)break;else _0x31cc73['push'](_0x31cc73['shift']());}catch(_0x3517b8){_0x31cc73['push'](_0x31cc73['shift']());}}}(a258_0x4769,0x215e1));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a258_0x3673b5(0x92)];[a258_0x3673b5(0x94)];[a258_0x3673b5(0x95)];[a258_0x3673b5(0x8c)];[a258_0x3673b5(0x7a)]=null;['rotate'];constructor(_0x3d8c1b={}){const _0x2333da=a258_0x3673b5;this[_0x2333da(0x92)]=_0x3d8c1b[_0x2333da(0x87)]??join(getGlobalCacheDir(),_0x2333da(0x90),_0x2333da(0x83)),this[_0x2333da(0x94)]=dirname(this['logPath']),this[_0x2333da(0x95)]=basename(this[_0x2333da(0x92)]),this[_0x2333da(0x8c)]=this[_0x2333da(0x95)][_0x2333da(0x82)](/\.log$/,''),this['rotate']=_0x3d8c1b[_0x2333da(0x79)]??!![];}async['init'](){const _0x4450d9=a258_0x3673b5;try{await mkdir(this[_0x4450d9(0x94)],{'recursive':!![]}),this['rotate']&&await this[_0x4450d9(0x99)](),this[_0x4450d9(0x7a)]=createWriteStream(this[_0x4450d9(0x92)],{'flags':'a'}),this[_0x4450d9(0x7a)]['on'](_0x4450d9(0x8f),_0xdfb1dc=>{const _0x358638=_0x4450d9;console[_0x358638(0x8f)](_0x358638(0x89)+this[_0x358638(0x95)]+':',_0xdfb1dc[_0x358638(0x8e)]);});}catch(_0x270af3){console['error']('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x270af3);}}[a258_0x3673b5(0x8a)](_0x9fcf9d){const _0x27664b=a258_0x3673b5;if(!this[_0x27664b(0x7a)])return;const _0x1b38ed=Logger[_0x27664b(0x74)](_0x9fcf9d);this['logStream'][_0x27664b(0x88)](_0x1b38ed+'\x0a');}async[a258_0x3673b5(0x96)](){return new Promise(_0x3803f3=>{const _0x20a09c=a258_0xc607;this[_0x20a09c(0x7a)]?this[_0x20a09c(0x7a)][_0x20a09c(0x72)](()=>{this['logStream']=null,_0x3803f3();}):_0x3803f3();});}[a258_0x3673b5(0x78)](){const _0x1451e2=a258_0x3673b5;return this[_0x1451e2(0x92)];}async[a258_0x3673b5(0x99)](){const _0x1fdbd2=a258_0x3673b5;try{const _0x41ce3c=await readdir(this[_0x1fdbd2(0x94)]),_0x188aef=new Date()[_0x1fdbd2(0x81)]()[_0x1fdbd2(0x8b)]('T')[0x0];if(_0x41ce3c[_0x1fdbd2(0x7f)](this[_0x1fdbd2(0x95)])){const _0x363f58=join(this[_0x1fdbd2(0x94)],this[_0x1fdbd2(0x95)]),_0x3678ff=await stat(_0x363f58),_0x17ac25=new Date(_0x3678ff[_0x1fdbd2(0x91)])[_0x1fdbd2(0x81)]()[_0x1fdbd2(0x8b)]('T')[0x0];if(_0x17ac25<_0x188aef){const _0xa4cadc=join(this[_0x1fdbd2(0x94)],this[_0x1fdbd2(0x8c)]+'-'+_0x17ac25+_0x1fdbd2(0x73));await rename(_0x363f58,_0xa4cadc);}}const _0x223170=await readdir(this['logDir']),_0x54ddc0=this[_0x1fdbd2(0x8c)]['replace'](/[.*+?^${}()|[\]\\]/g,_0x1fdbd2(0x8d)),_0x297c28=new RegExp('^'+_0x54ddc0+_0x1fdbd2(0x80)),_0x12caed=_0x223170[_0x1fdbd2(0x7d)](_0x5799dc=>_0x297c28['test'](_0x5799dc));for(const _0x475558 of _0x12caed){const _0x3bd1d1=join(this['logDir'],_0x475558),_0x325d18=join(this[_0x1fdbd2(0x94)],_0x475558+_0x1fdbd2(0x86));try{await pipeline(createReadStream(_0x3bd1d1),createGzip(),createWriteStream(_0x325d18)),await unlink(_0x3bd1d1);}catch(_0x3caf90){console[_0x1fdbd2(0x8f)](_0x1fdbd2(0x84)+_0x475558+':',_0x3caf90);}}}catch{}}}function a258_0x4769(){const _0x317eb2=['92ENaTYy','.gz','filePath','write','Warning:\x20Error\x20writing\x20to\x20','handle','split','logBaseName','\x5c$&','message','error','logs','mtime','logPath','87496Vglthg','logDir','logFileName','close','66ggYnTt','1096270YzOmCl','rotateOldLogs','11460MsvyRr','end','.log','format','201150hQWsQg','852558jNnQZT','524223NrnZfC','getLogPath','rotate','logStream','4SQDcNY','99pStkZE','filter','16109Grgesg','includes','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','toISOString','replace','tdx.log','Warning:\x20Failed\x20to\x20compress\x20'];a258_0x4769=function(){return _0x317eb2;};return a258_0x4769();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a259_0x32e0(){var _0x110eed=['7190IDBFlz','11437160RebscP','12gafmkT','7cxsHKM','3267258SSrPvT','5479626TpmOHR','138407aSweQd','15021GMbecg','6357665BSSBTE','587616PJCPka'];a259_0x32e0=function(){return _0x110eed;};return a259_0x32e0();}(function(_0x3d3e14,_0x37fdb5){var _0x38a2da=a259_0x4662,_0x4179d1=_0x3d3e14();while(!![]){try{var _0xef3f72=parseInt(_0x38a2da(0x1ec))/0x1*(-parseInt(_0x38a2da(0x1e8))/0x2)+parseInt(_0x38a2da(0x1ea))/0x3+parseInt(_0x38a2da(0x1e5))/0x4+-parseInt(_0x38a2da(0x1e4))/0x5+-parseInt(_0x38a2da(0x1eb))/0x6*(parseInt(_0x38a2da(0x1e9))/0x7)+parseInt(_0x38a2da(0x1e7))/0x8+parseInt(_0x38a2da(0x1e3))/0x9*(parseInt(_0x38a2da(0x1e6))/0xa);if(_0xef3f72===_0x37fdb5)break;else _0x4179d1['push'](_0x4179d1['shift']());}catch(_0x232b0c){_0x4179d1['push'](_0x4179d1['shift']());}}}(a259_0x32e0,0xcf9e0));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';function a259_0x4662(_0x55d331,_0x55c44a){_0x55d331=_0x55d331-0x1e3;var _0x32e006=a259_0x32e0();var _0x466247=_0x32e006[_0x55d331];return _0x466247;}export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a260_0x54c2bf=a260_0x162d;function a260_0x162d(_0x610300,_0x57d6b7){_0x610300=_0x610300-0xf1;var _0x4f70f2=a260_0x4f70();var _0x162d08=_0x4f70f2[_0x610300];return _0x162d08;}(function(_0x717eb1,_0x349971){var _0x5a0730=a260_0x162d,_0x2b1bfe=_0x717eb1();while(!![]){try{var _0x38f15d=parseInt(_0x5a0730(0xfc))/0x1*(-parseInt(_0x5a0730(0xf4))/0x2)+-parseInt(_0x5a0730(0xf5))/0x3+parseInt(_0x5a0730(0xf2))/0x4*(parseInt(_0x5a0730(0xf1))/0x5)+parseInt(_0x5a0730(0xf9))/0x6*(-parseInt(_0x5a0730(0xf3))/0x7)+parseInt(_0x5a0730(0xf8))/0x8+parseInt(_0x5a0730(0xfb))/0x9+-parseInt(_0x5a0730(0xf6))/0xa*(parseInt(_0x5a0730(0xf7))/0xb);if(_0x38f15d===_0x349971)break;else _0x2b1bfe['push'](_0x2b1bfe['shift']());}catch(_0x3c0bde){_0x2b1bfe['push'](_0x2b1bfe['shift']());}}}(a260_0x4f70,0x9a80b));export class NullHandler{[a260_0x54c2bf(0xfa)](_0x4c51bc){}}function a260_0x4f70(){var _0xfb39fb=['2396697mXIKut','40gTdXPP','1341659zBOEOl','8195608hQWbyF','60jhEobw','handle','7383321eMreJp','2355TBKHAw','1326665ecqRMV','4ToswIl','92162BQdWvr','50kmoWmJ'];a260_0x4f70=function(){return _0xfb39fb;};return a260_0x4f70();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4726e0,_0x4756e9){var _0x2dbffb=a261_0x3dad,_0x1c7b45=_0x4726e0();while(!![]){try{var _0x3defd7=parseInt(_0x2dbffb(0x155))/0x1+parseInt(_0x2dbffb(0x14f))/0x2+parseInt(_0x2dbffb(0x150))/0x3+-parseInt(_0x2dbffb(0x14d))/0x4*(parseInt(_0x2dbffb(0x152))/0x5)+-parseInt(_0x2dbffb(0x14c))/0x6+parseInt(_0x2dbffb(0x14e))/0x7*(-parseInt(_0x2dbffb(0x151))/0x8)+-parseInt(_0x2dbffb(0x153))/0x9*(-parseInt(_0x2dbffb(0x154))/0xa);if(_0x3defd7===_0x4756e9)break;else _0x1c7b45['push'](_0x1c7b45['shift']());}catch(_0x21bb76){_0x1c7b45['push'](_0x1c7b45['shift']());}}}(a261_0xb272,0xc306a));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a261_0xb272(){var _0x5b047c=['2724626euIqHi','156243TMjzSV','166136WbHpTc','164070ntwDYJ','9FVArQQ','6380630ecNtox','78616LLEQQm','4404816IPFTXh','40YNUSJH','91AJWnIa'];a261_0xb272=function(){return _0x5b047c;};return a261_0xb272();}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a261_0x3dad(_0x663e64,_0x133e54){_0x663e64=_0x663e64-0x14c;var _0xb272b3=a261_0xb272();var _0x3dad19=_0xb272b3[_0x663e64];return _0x3dad19;}export{DefaultLogFormatter}from'./formatters/index.js';
|