@treasuredata/tdx 2026.8.1 → 2026.8.3
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.js +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/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.js +1 -1
- package/dist/commands/engage-template-pull-command.js +1 -1
- package/dist/commands/engage-template-push-command.js +1 -1
- package/dist/commands/engage-template-validate-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/policy-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-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.js +1 -1
- package/dist/commands/upgrade-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/work-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/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.js +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.d.ts +9 -3
- package/dist/sdk/cas/cas-api-client.d.ts.map +1 -1
- package/dist/sdk/cas/cas-api-client.js +1 -1
- package/dist/sdk/cas/cas-api-client.js.map +1 -1
- package/dist/sdk/cas/cas-audience-schema.d.ts +2 -0
- package/dist/sdk/cas/cas-audience-schema.d.ts.map +1 -1
- package/dist/sdk/cas/cas-audience-schema.js +1 -1
- package/dist/sdk/cas/cas-audience-schema.js.map +1 -1
- package/dist/sdk/cas/cas-audience-validator.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.d.ts.map +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js.map +1 -1
- package/dist/sdk/cas/cas-segment-yaml.js +1 -1
- package/dist/sdk/cas/index.d.ts +10 -0
- package/dist/sdk/cas/index.d.ts.map +1 -1
- package/dist/sdk/cas/index.js +1 -1
- package/dist/sdk/cas/index.js.map +1 -1
- package/dist/sdk/cas/pull-workflow.js +1 -1
- package/dist/sdk/cas/push-workflow.d.ts.map +1 -1
- package/dist/sdk/cas/push-workflow.js +1 -1
- package/dist/sdk/cas/push-workflow.js.map +1 -1
- package/dist/sdk/cas/types.d.ts +2 -0
- package/dist/sdk/cas/types.d.ts.map +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.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/oauth-refresh.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/delivery.js +1 -1
- package/dist/sdk/engage/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.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.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/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/cas.d.ts +4 -0
- package/dist/sdk/types/cas.d.ts.map +1 -1
- package/dist/sdk/types/index.js +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
|
-
|
|
1
|
+
const a238_0x397b89=a238_0x4a90;(function(_0x3a82a1,_0xf4068){const _0x2a3be5=a238_0x4a90,_0x3679d1=_0x3a82a1();while(!![]){try{const _0x5dc716=-parseInt(_0x2a3be5(0xfb))/0x1+-parseInt(_0x2a3be5(0x10f))/0x2+parseInt(_0x2a3be5(0x104))/0x3+-parseInt(_0x2a3be5(0x110))/0x4+parseInt(_0x2a3be5(0xff))/0x5*(-parseInt(_0x2a3be5(0x10e))/0x6)+-parseInt(_0x2a3be5(0x10a))/0x7+parseInt(_0x2a3be5(0x109))/0x8;if(_0x5dc716===_0xf4068)break;else _0x3679d1['push'](_0x3679d1['shift']());}catch(_0x6fa9ad){_0x3679d1['push'](_0x3679d1['shift']());}}}(a238_0x11ea,0x5a952));function a238_0x4a90(_0x57631f,_0xe09a3b){_0x57631f=_0x57631f-0xf9;const _0x11ea44=a238_0x11ea();let _0x4a90b9=_0x11ea44[_0x57631f];return _0x4a90b9;}import a238_0x5a0f69 from'chalk';function a238_0x11ea(){const _0x22f9ca=['1961991PXEWCW','level','Chalk','yellow','INFO','10987616IhAaaQ','1341074zcLKpH','default','timestamp','component','588918npyGcn','1114430dmrKAw','1645152eFkmas','TRACE','red','chalk','colorLevel','398185aqppkr','green','colors','gray','5fjfMnu','blue','message','DEBUG','ERROR'];a238_0x11ea=function(){return _0x22f9ca;};return a238_0x11ea();}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a238_0x5a0f69,ChalkClass=chalkModule[a238_0x397b89(0x106)]||chalkModule[a238_0x397b89(0x10b)]?.[a238_0x397b89(0x106)];export class DefaultLogFormatter{[a238_0x397b89(0xfd)];[a238_0x397b89(0xf9)];constructor(_0x5af8ec={}){const _0x1438e6=a238_0x397b89;this[_0x1438e6(0xfd)]=_0x5af8ec[_0x1438e6(0xfd)]??![],this[_0x1438e6(0xf9)]=_0x5af8ec[_0x1438e6(0xfd)]&&ChalkClass?new ChalkClass({'level':0x3}):a238_0x5a0f69;}['format'](_0x4954e8){const _0x54bf10=a238_0x397b89,_0xa8daa8=formatTimestamp(_0x4954e8[_0x54bf10(0x10c)]),_0x869572=logLevelToString(_0x4954e8[_0x54bf10(0x105)]);if(!this[_0x54bf10(0xfd)])return _0xa8daa8+'\x20['+_0x869572+']\x20['+_0x4954e8[_0x54bf10(0x10d)]+']\x20'+_0x4954e8[_0x54bf10(0x101)];const _0x494b7d=this[_0x54bf10(0xf9)]['dim'](_0xa8daa8),_0x5a5c99=this[_0x54bf10(0xfa)](_0x869572,_0x4954e8['level']),_0x55fcc7=this[_0x54bf10(0xf9)][_0x54bf10(0x100)]('['+_0x4954e8[_0x54bf10(0x10d)]+']');return _0x494b7d+'\x20'+_0x5a5c99+'\x20'+_0x55fcc7+'\x20'+_0x4954e8[_0x54bf10(0x101)];}[a238_0x397b89(0xfa)](_0xf0b30a,_0x448c43){const _0x3e3e3f=a238_0x397b89;switch(_0x448c43){case LogLevel[_0x3e3e3f(0x111)]:return this[_0x3e3e3f(0xf9)][_0x3e3e3f(0xfe)]('['+_0xf0b30a+']');case LogLevel[_0x3e3e3f(0x102)]:return this[_0x3e3e3f(0xf9)][_0x3e3e3f(0xfc)]('['+_0xf0b30a+']');case LogLevel[_0x3e3e3f(0x108)]:return this[_0x3e3e3f(0xf9)]['cyan']('['+_0xf0b30a+']');case LogLevel['WARN']:return this[_0x3e3e3f(0xf9)][_0x3e3e3f(0x107)]('['+_0xf0b30a+']');case LogLevel[_0x3e3e3f(0x103)]:return this['chalk'][_0x3e3e3f(0x112)]('['+_0xf0b30a+']');default:return'['+_0xf0b30a+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a239_0x79b1(){var _0x14208a=['18hWuZzf','848145KJkgMx','12gboxyt','404701EIuPBE','1725112KeGxAk','37065nEPnLg','36YmwXdC','52VIKTUk','220969mFOjam','96moBoMW','195950Xzexsh','716eWZJjw'];a239_0x79b1=function(){return _0x14208a;};return a239_0x79b1();}function a239_0x39c3(_0x258fe8,_0xfbfd7b){_0x258fe8=_0x258fe8-0x1d2;var _0x79b16a=a239_0x79b1();var _0x39c33e=_0x79b16a[_0x258fe8];return _0x39c33e;}(function(_0x1e4a86,_0x455e54){var _0x8f0447=a239_0x39c3,_0x314322=_0x1e4a86();while(!![]){try{var _0x88f25=-parseInt(_0x8f0447(0x1d5))/0x1*(-parseInt(_0x8f0447(0x1d9))/0x2)+-parseInt(_0x8f0447(0x1db))/0x3+parseInt(_0x8f0447(0x1d4))/0x4*(-parseInt(_0x8f0447(0x1d3))/0x5)+parseInt(_0x8f0447(0x1dc))/0x6*(-parseInt(_0x8f0447(0x1d6))/0x7)+parseInt(_0x8f0447(0x1d2))/0x8+-parseInt(_0x8f0447(0x1da))/0x9*(-parseInt(_0x8f0447(0x1d8))/0xa)+-parseInt(_0x8f0447(0x1dd))/0xb*(-parseInt(_0x8f0447(0x1d7))/0xc);if(_0x88f25===_0x455e54)break;else _0x314322['push'](_0x314322['shift']());}catch(_0x3f5787){_0x314322['push'](_0x314322['shift']());}}}(a239_0x79b1,0x25e47));export{DefaultLogFormatter}from'./default-formatter.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a240_0x4872e2=a240_0x3ee2;(function(_0x2d0f03,_0x387e0e){const _0x9cd1cc=a240_0x3ee2,_0x4912c8=_0x2d0f03();while(!![]){try{const _0x5ad973=parseInt(_0x9cd1cc(0xfa))/0x1*(-parseInt(_0x9cd1cc(0x104))/0x2)+-parseInt(_0x9cd1cc(0xf9))/0x3+parseInt(_0x9cd1cc(0x102))/0x4+-parseInt(_0x9cd1cc(0x105))/0x5+parseInt(_0x9cd1cc(0xff))/0x6+parseInt(_0x9cd1cc(0xfc))/0x7+-parseInt(_0x9cd1cc(0x103))/0x8;if(_0x5ad973===_0x387e0e)break;else _0x4912c8['push'](_0x4912c8['shift']());}catch(_0x36c2fa){_0x4912c8['push'](_0x4912c8['shift']());}}}(a240_0x3642,0x70e44));function a240_0x3ee2(_0x1f1c45,_0x2b92e2){_0x1f1c45=_0x1f1c45-0xf7;const _0x3642af=a240_0x3642();let _0x3ee2a1=_0x3642af[_0x1f1c45];return _0x3ee2a1;}function a240_0x3642(){const _0x4a7466=['2061595WjdWKh','formatter','WARN','useStderr','format','314310lovmzr','359526niozwo','handle','6043905DTZKtG','colors','minLevel','1523484uYNJpl','log','level','2789096wHXZmu','3804672pHqJcC','2CUXtfD'];a240_0x3642=function(){return _0x4a7466;};return a240_0x3642();}import{LogLevel as a240_0x4a7b57}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a240_0x4872e2(0xfe)];[a240_0x4872e2(0xf7)];[a240_0x4872e2(0x106)];constructor(_0x486069={}){const _0x22c0ed=a240_0x4872e2;this['minLevel']=_0x486069['minLevel']??a240_0x4a7b57[_0x22c0ed(0x107)],this['useStderr']=_0x486069['useStderr']??!![],this[_0x22c0ed(0x106)]=new DefaultLogFormatter({'colors':_0x486069[_0x22c0ed(0xfd)]??!![]});}[a240_0x4872e2(0xfb)](_0xdb8f99){const _0x3999ef=a240_0x4872e2;if(_0xdb8f99[_0x3999ef(0x101)]<this[_0x3999ef(0xfe)])return;const _0x58d4fb=this[_0x3999ef(0x106)][_0x3999ef(0xf8)](_0xdb8f99);this[_0x3999ef(0xf7)]&&_0xdb8f99[_0x3999ef(0x101)]>=a240_0x4a7b57[_0x3999ef(0x107)]?console['error'](_0x58d4fb):console[_0x3999ef(0x100)](_0x58d4fb);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a241_0x21872e=a241_0x20ba;function a241_0x20ba(_0x5c39c0,_0x5de0d9){_0x5c39c0=_0x5c39c0-0x9e;const _0x5472d6=a241_0x5472();let _0x20ba20=_0x5472d6[_0x5c39c0];return _0x20ba20;}(function(_0x5057e9,_0x17a4a2){const _0x1922a3=a241_0x20ba,_0x49a39f=_0x5057e9();while(!![]){try{const _0x3a982f=parseInt(_0x1922a3(0xa8))/0x1*(parseInt(_0x1922a3(0xa9))/0x2)+-parseInt(_0x1922a3(0xa4))/0x3+-parseInt(_0x1922a3(0xc1))/0x4*(parseInt(_0x1922a3(0xc0))/0x5)+-parseInt(_0x1922a3(0xaa))/0x6*(-parseInt(_0x1922a3(0xbd))/0x7)+-parseInt(_0x1922a3(0xad))/0x8+-parseInt(_0x1922a3(0xb1))/0x9+-parseInt(_0x1922a3(0xbc))/0xa*(-parseInt(_0x1922a3(0xb5))/0xb);if(_0x3a982f===_0x17a4a2)break;else _0x49a39f['push'](_0x49a39f['shift']());}catch(_0x592db9){_0x49a39f['push'](_0x49a39f['shift']());}}}(a241_0x5472,0x3d3bb));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';function a241_0x5472(){const _0x2ff7f9=['replace','mtime','Warning:\x20Failed\x20to\x20compress\x20','end','10AsLLaH','116578BjjTqN','handle','logBaseName','66695TuWUPR','4RgLTSV','rotate','message','.gz','.log','logs','logStream','logPath','\x5c$&','error','566355WhGZAV','logFileName','tdx.log','rotateOldLogs','69ckyahB','4778hPVjyY','126dennPc','close','includes','2128096FKceTa','filePath','filter','toISOString','162225sVWNZh','format','write','logDir','2446367iXbcOU','split','Warning:\x20Error\x20writing\x20to\x20'];a241_0x5472=function(){return _0x2ff7f9;};return a241_0x5472();}import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a241_0x21872e(0xa1)];[a241_0x21872e(0xb4)];['logFileName'];[a241_0x21872e(0xbf)];[a241_0x21872e(0xa0)]=null;[a241_0x21872e(0xc2)];constructor(_0x572cdc={}){const _0x553090=a241_0x21872e;this[_0x553090(0xa1)]=_0x572cdc[_0x553090(0xae)]??join(getGlobalCacheDir(),_0x553090(0x9f),_0x553090(0xa6)),this[_0x553090(0xb4)]=dirname(this[_0x553090(0xa1)]),this[_0x553090(0xa5)]=basename(this[_0x553090(0xa1)]),this[_0x553090(0xbf)]=this[_0x553090(0xa5)]['replace'](/\.log$/,''),this[_0x553090(0xc2)]=_0x572cdc[_0x553090(0xc2)]??!![];}async['init'](){const _0xd0403c=a241_0x21872e;try{await mkdir(this[_0xd0403c(0xb4)],{'recursive':!![]}),this[_0xd0403c(0xc2)]&&await this[_0xd0403c(0xa7)](),this[_0xd0403c(0xa0)]=createWriteStream(this['logPath'],{'flags':'a'}),this['logStream']['on'](_0xd0403c(0xa3),_0x4ee7ce=>{const _0x3b6ba3=_0xd0403c;console['error'](_0x3b6ba3(0xb7)+this['logFileName']+':',_0x4ee7ce[_0x3b6ba3(0xc3)]);});}catch(_0x27ed92){console['error']('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x27ed92);}}[a241_0x21872e(0xbe)](_0x1ccb80){const _0x3495d7=a241_0x21872e;if(!this['logStream'])return;const _0xabc93=Logger[_0x3495d7(0xb2)](_0x1ccb80);this[_0x3495d7(0xa0)][_0x3495d7(0xb3)](_0xabc93+'\x0a');}async[a241_0x21872e(0xab)](){return new Promise(_0x5b3d71=>{const _0x3cca81=a241_0x20ba;this[_0x3cca81(0xa0)]?this[_0x3cca81(0xa0)][_0x3cca81(0xbb)](()=>{const _0x217a8c=_0x3cca81;this[_0x217a8c(0xa0)]=null,_0x5b3d71();}):_0x5b3d71();});}['getLogPath'](){const _0x2f9cdf=a241_0x21872e;return this[_0x2f9cdf(0xa1)];}async[a241_0x21872e(0xa7)](){const _0x1fe723=a241_0x21872e;try{const _0x7aca2=await readdir(this[_0x1fe723(0xb4)]),_0x2070d6=new Date()[_0x1fe723(0xb0)]()[_0x1fe723(0xb6)]('T')[0x0];if(_0x7aca2[_0x1fe723(0xac)](this[_0x1fe723(0xa5)])){const _0x3fa7d7=join(this[_0x1fe723(0xb4)],this['logFileName']),_0x3e3984=await stat(_0x3fa7d7),_0x5a6153=new Date(_0x3e3984[_0x1fe723(0xb9)])[_0x1fe723(0xb0)]()[_0x1fe723(0xb6)]('T')[0x0];if(_0x5a6153<_0x2070d6){const _0x31b307=join(this[_0x1fe723(0xb4)],this['logBaseName']+'-'+_0x5a6153+_0x1fe723(0x9e));await rename(_0x3fa7d7,_0x31b307);}}const _0x595b7d=await readdir(this[_0x1fe723(0xb4)]),_0xa7b38f=this[_0x1fe723(0xbf)][_0x1fe723(0xb8)](/[.*+?^${}()|[\]\\]/g,_0x1fe723(0xa2)),_0x4187e2=new RegExp('^'+_0xa7b38f+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x3e6b0a=_0x595b7d[_0x1fe723(0xaf)](_0x23efdd=>_0x4187e2['test'](_0x23efdd));for(const _0x3b72b9 of _0x3e6b0a){const _0x2f3f8e=join(this[_0x1fe723(0xb4)],_0x3b72b9),_0x5b1985=join(this[_0x1fe723(0xb4)],_0x3b72b9+_0x1fe723(0xc4));try{await pipeline(createReadStream(_0x2f3f8e),createGzip(),createWriteStream(_0x5b1985)),await unlink(_0x2f3f8e);}catch(_0x5168d6){console[_0x1fe723(0xa3)](_0x1fe723(0xba)+_0x3b72b9+':',_0x5168d6);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x50e454,_0x5a9746){var _0x375def=a242_0x2113,_0x5d438f=_0x50e454();while(!![]){try{var _0x2f15bd=-parseInt(_0x375def(0x11c))/0x1+parseInt(_0x375def(0x11d))/0x2+parseInt(_0x375def(0x11f))/0x3*(parseInt(_0x375def(0x11b))/0x4)+-parseInt(_0x375def(0x121))/0x5+parseInt(_0x375def(0x122))/0x6+parseInt(_0x375def(0x11e))/0x7*(parseInt(_0x375def(0x120))/0x8)+-parseInt(_0x375def(0x123))/0x9;if(_0x2f15bd===_0x5a9746)break;else _0x5d438f['push'](_0x5d438f['shift']());}catch(_0x67214e){_0x5d438f['push'](_0x5d438f['shift']());}}}(a242_0xd39b,0x6ddf1));function a242_0x2113(_0x4ad49c,_0x373c20){_0x4ad49c=_0x4ad49c-0x11b;var _0xd39b9b=a242_0xd39b();var _0x21137a=_0xd39b9b[_0x4ad49c];return _0x21137a;}function a242_0xd39b(){var _0x374aa9=['599248jPxLRj','1099147JMBcfz','2577HlTmuV','40DcGqBF','336655TMAsNB','593682NsYbEI','1098342XVHrlk','940RgvLob','746139kxzxjL'];a242_0xd39b=function(){return _0x374aa9;};return a242_0xd39b();}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x27aeb8,_0x17a1fc){var _0x452d05=a243_0x9334,_0x12a865=_0x27aeb8();while(!![]){try{var _0x7ab107=parseInt(_0x452d05(0x1ce))/0x1*(-parseInt(_0x452d05(0x1d2))/0x2)+parseInt(_0x452d05(0x1d0))/0x3+parseInt(_0x452d05(0x1cd))/0x4+parseInt(_0x452d05(0x1cc))/0x5+-parseInt(_0x452d05(0x1d6))/0x6*(-parseInt(_0x452d05(0x1cf))/0x7)+parseInt(_0x452d05(0x1d3))/0x8*(-parseInt(_0x452d05(0x1d1))/0x9)+parseInt(_0x452d05(0x1d4))/0xa*(-parseInt(_0x452d05(0x1d5))/0xb);if(_0x7ab107===_0x17a1fc)break;else _0x12a865['push'](_0x12a865['shift']());}catch(_0x27a16c){_0x12a865['push'](_0x12a865['shift']());}}}(a243_0x4f0b,0x5b392));export class NullHandler{['handle'](_0x2fd00a){}}function a243_0x9334(_0x1144d6,_0x596d5d){_0x1144d6=_0x1144d6-0x1cc;var _0x4f0b8f=a243_0x4f0b();var _0x933488=_0x4f0b8f[_0x1144d6];return _0x933488;}function a243_0x4f0b(){var _0x53e7a9=['9yKvToF','62qMzhrW','2165816XuVASg','70JGcIqX','924957WABUTy','534ujFzSI','3162680Mflynp','1306816vCwzXh','10308Bsnrzo','41321MnAKkD','203781sDlRWz'];a243_0x4f0b=function(){return _0x53e7a9;};return a243_0x4f0b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a244_0x50b3(_0x196880,_0x36b5a0){_0x196880=_0x196880-0x18b;var _0x512ced=a244_0x512c();var _0x50b39b=_0x512ced[_0x196880];return _0x50b39b;}(function(_0x3a272d,_0x3d369f){var _0x55d864=a244_0x50b3,_0x1f3b6f=_0x3a272d();while(!![]){try{var _0x148a84=parseInt(_0x55d864(0x191))/0x1*(parseInt(_0x55d864(0x190))/0x2)+parseInt(_0x55d864(0x18d))/0x3+parseInt(_0x55d864(0x193))/0x4*(-parseInt(_0x55d864(0x192))/0x5)+-parseInt(_0x55d864(0x195))/0x6*(parseInt(_0x55d864(0x18c))/0x7)+parseInt(_0x55d864(0x18e))/0x8*(-parseInt(_0x55d864(0x18f))/0x9)+-parseInt(_0x55d864(0x194))/0xa+parseInt(_0x55d864(0x18b))/0xb;if(_0x148a84===_0x3d369f)break;else _0x1f3b6f['push'](_0x1f3b6f['shift']());}catch(_0x5b4fd2){_0x1f3b6f['push'](_0x1f3b6f['shift']());}}}(a244_0x512c,0x9ee92));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a244_0x512c(){var _0x1b573f=['59670caCodw','21602922fpAyqW','525xEXvmj','545412rsdZGu','5047304WsOPKe','9bRlKbb','289148vIEYzZ','9EOFxXT','4424980JUBmJh','4FuBBpv','5341900AadhOQ'];a244_0x512c=function(){return _0x1b573f;};return a244_0x512c();}export{DefaultLogFormatter}from'./formatters/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a245_0x3d61(_0x147f74,_0x57cbe5){_0x147f74=_0x147f74-0x149;const _0x45130b=a245_0x4513();let _0x3d6152=_0x45130b[_0x147f74];return _0x3d6152;}const a245_0x43fcda=a245_0x3d61;function a245_0x4513(){const _0x2abfdc=['dispatch','13PtPPDG','trace','debug','init','47782tbyJqe','shouldLog','error','stringify','log','getEffectiveLevel','loggers','setLogLevel','clear','cause','get','warn','message','1717512bDETgi','4sKAqCL','slice','string','pendingRecords','toISOString','has','close','5701565MksAYn','30xAEFKR','TRACE','function',']\x20[','INFO','WARN','341qQBgNi','defaultLevel','setDefaultLevel','map','767280lXmJMo','initialized','format','component','isInitialized','stack','133vcKWEf','shutdown','formatter','ERROR','timestamp','412908NXAsFQ','clearHandlers','length','DEBUG','name','3780180imbtnR','levelOverrides','reset','join','set','info','449721FyYvPE','handlers','push'];a245_0x4513=function(){return _0x2abfdc;};return a245_0x4513();}(function(_0x5d22bf,_0xbef4f0){const _0x166075=a245_0x3d61,_0x461f12=_0x5d22bf();while(!![]){try{const _0x4a5bb9=-parseInt(_0x166075(0x16f))/0x1*(parseInt(_0x166075(0x173))/0x2)+-parseInt(_0x166075(0x165))/0x3+-parseInt(_0x166075(0x181))/0x4*(parseInt(_0x166075(0x14a))/0x5)+parseInt(_0x166075(0x160))/0x6*(-parseInt(_0x166075(0x15b))/0x7)+parseInt(_0x166075(0x155))/0x8+parseInt(_0x166075(0x16b))/0x9*(parseInt(_0x166075(0x14b))/0xa)+parseInt(_0x166075(0x151))/0xb*(parseInt(_0x166075(0x180))/0xc);if(_0x4a5bb9===_0xbef4f0)break;else _0x461f12['push'](_0x461f12['shift']());}catch(_0x20c585){_0x461f12['push'](_0x461f12['shift']());}}}(a245_0x4513,0xa22a1));import{LogLevel as a245_0x4233e8,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a245_0x4233e8[a245_0x43fcda(0x14f)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x4ccc86){const _0x594a24=a245_0x43fcda;if(typeof _0x4ccc86==='string')return _0x4ccc86;if(_0x4ccc86 instanceof Error)return _0x4ccc86[_0x594a24(0x15a)]||_0x4ccc86['name']+':\x20'+_0x4ccc86[_0x594a24(0x17f)];try{return JSON[_0x594a24(0x176)](_0x4ccc86,(_0xf61e2c,_0x436973)=>{const _0x10187f=_0x594a24;if(_0x436973 instanceof Error)return{'name':_0x436973[_0x10187f(0x164)],'message':_0x436973[_0x10187f(0x17f)],'stack':_0x436973[_0x10187f(0x15a)],'cause':_0x436973[_0x10187f(0x17c)]};return _0x436973;});}catch{return String(_0x4ccc86);}}export class Logger{[a245_0x43fcda(0x158)];constructor(_0x3966f4){this['component']=_0x3966f4;}static['of'](_0x83a572){const _0x1e59cb=a245_0x43fcda,_0x50f006=typeof _0x83a572===_0x1e59cb(0x183)?_0x83a572:_0x83a572[_0x1e59cb(0x164)];let _0x37fbbe=state['loggers'][_0x1e59cb(0x17d)](_0x50f006);return!_0x37fbbe&&(_0x37fbbe=new Logger(_0x50f006),state[_0x1e59cb(0x179)]['set'](_0x50f006,_0x37fbbe)),_0x37fbbe;}static async[a245_0x43fcda(0x172)](_0x209f2f={}){const _0x16e108=a245_0x43fcda;state['defaultLevel']=_0x209f2f[_0x16e108(0x152)]??a245_0x4233e8['INFO'],state[_0x16e108(0x16c)]=_0x209f2f[_0x16e108(0x16c)]??[],state['formatter']=_0x209f2f[_0x16e108(0x15d)]??null,state['levelOverrides'][_0x16e108(0x17b)]();if(_0x209f2f['levelOverrides'])for(const [_0x8d2ece,_0x4bca4b]of Object['entries'](_0x209f2f[_0x16e108(0x166)])){state[_0x16e108(0x166)][_0x16e108(0x169)](_0x8d2ece,_0x4bca4b);}for(const _0xf7154e of state[_0x16e108(0x16c)]){_0xf7154e['init']&&await _0xf7154e['init']();}state[_0x16e108(0x156)]=!![];for(const _0x397973 of state[_0x16e108(0x184)]){Logger['dispatch'](_0x397973);}state[_0x16e108(0x184)]=[];}static[a245_0x43fcda(0x17a)](_0x573f31,_0x14cb71){const _0x28d976=a245_0x43fcda;state[_0x28d976(0x166)]['set'](_0x573f31,_0x14cb71);}static[a245_0x43fcda(0x153)](_0x4cf4a6){const _0x35e1a9=a245_0x43fcda;state[_0x35e1a9(0x152)]=_0x4cf4a6;}static['addHandler'](_0x3926f0){const _0x53b8b3=a245_0x43fcda;state[_0x53b8b3(0x16c)][_0x53b8b3(0x16d)](_0x3926f0),state[_0x53b8b3(0x156)]&&_0x3926f0['init']&&_0x3926f0['init']();}static[a245_0x43fcda(0x161)](){const _0x1abf53=a245_0x43fcda;state[_0x1abf53(0x16c)]=[];}static async[a245_0x43fcda(0x15c)](){const _0x563441=a245_0x43fcda;for(const _0x44afe3 of state[_0x563441(0x16c)]){_0x44afe3[_0x563441(0x149)]&&await _0x44afe3['close']();}state[_0x563441(0x16c)]=[],state['initialized']=![],state[_0x563441(0x179)]['clear'](),state[_0x563441(0x184)]=[];}static[a245_0x43fcda(0x167)](){const _0x1dc66e=a245_0x43fcda;state['initialized']=![],state['defaultLevel']=a245_0x4233e8[_0x1dc66e(0x14f)],state[_0x1dc66e(0x166)][_0x1dc66e(0x17b)](),state[_0x1dc66e(0x16c)]=[],state[_0x1dc66e(0x15d)]=null,state['loggers'][_0x1dc66e(0x17b)](),state['pendingRecords']=[];}static[a245_0x43fcda(0x159)](){const _0x5c0447=a245_0x43fcda;return state[_0x5c0447(0x156)];}static[a245_0x43fcda(0x178)](_0x1bb329){const _0x286d8e=a245_0x43fcda;if(state[_0x286d8e(0x166)][_0x286d8e(0x186)](_0x1bb329))return state[_0x286d8e(0x166)][_0x286d8e(0x17d)](_0x1bb329);const _0x21c7ad=_0x1bb329['split']('.');for(let _0x970418=_0x21c7ad[_0x286d8e(0x162)]-0x1;_0x970418>0x0;_0x970418--){const _0x280113=_0x21c7ad[_0x286d8e(0x182)](0x0,_0x970418)[_0x286d8e(0x168)]('.');if(state[_0x286d8e(0x166)][_0x286d8e(0x186)](_0x280113))return state[_0x286d8e(0x166)][_0x286d8e(0x17d)](_0x280113);}return state[_0x286d8e(0x152)];}[a245_0x43fcda(0x174)](_0x327af5){const _0x1ee63a=a245_0x43fcda,_0x27375d=Logger[_0x1ee63a(0x178)](this['component']);return _0x327af5>=_0x27375d;}static['dispatch'](_0x65851b){for(const _0x25e688 of state['handlers']){_0x25e688['handle'](_0x65851b);}}[a245_0x43fcda(0x177)](_0x403f7a,_0x2a2060){const _0x23c52e=a245_0x43fcda;if(!this[_0x23c52e(0x174)](_0x403f7a))return;const _0x30c3d1=_0x2a2060[_0x23c52e(0x154)](_0x485c96=>typeof _0x485c96===_0x23c52e(0x14d)?_0x485c96():_0x485c96),_0x27387f=_0x30c3d1[_0x23c52e(0x154)](safeStringify)[_0x23c52e(0x168)]('\x20'),_0x138cd7={'timestamp':new Date(),'level':_0x403f7a,'component':this[_0x23c52e(0x158)],'message':_0x27387f};if(!state[_0x23c52e(0x156)]){state['pendingRecords'][_0x23c52e(0x162)]<MAX_PENDING_RECORDS&&state[_0x23c52e(0x184)][_0x23c52e(0x16d)](_0x138cd7);return;}Logger[_0x23c52e(0x16e)](_0x138cd7);}[a245_0x43fcda(0x170)](..._0x2c949c){const _0x16bbba=a245_0x43fcda;this[_0x16bbba(0x177)](a245_0x4233e8[_0x16bbba(0x14c)],_0x2c949c);}[a245_0x43fcda(0x171)](..._0x147bea){const _0xfff1cd=a245_0x43fcda;this[_0xfff1cd(0x177)](a245_0x4233e8[_0xfff1cd(0x163)],_0x147bea);}[a245_0x43fcda(0x16a)](..._0x4b1b91){const _0x17a9be=a245_0x43fcda;this[_0x17a9be(0x177)](a245_0x4233e8[_0x17a9be(0x14f)],_0x4b1b91);}[a245_0x43fcda(0x17e)](..._0x46e6d4){const _0x3f44bf=a245_0x43fcda;this[_0x3f44bf(0x177)](a245_0x4233e8[_0x3f44bf(0x150)],_0x46e6d4);}[a245_0x43fcda(0x175)](..._0x34f57b){const _0x836ba1=a245_0x43fcda;this['log'](a245_0x4233e8[_0x836ba1(0x15e)],_0x34f57b);}static['getFormatter'](){const _0xed08da=a245_0x43fcda;return state[_0xed08da(0x15d)];}static[a245_0x43fcda(0x157)](_0x5e75e9){const _0x113ac5=a245_0x43fcda;if(state[_0x113ac5(0x15d)])return state[_0x113ac5(0x15d)][_0x113ac5(0x157)](_0x5e75e9);return _0x5e75e9[_0x113ac5(0x15f)][_0x113ac5(0x185)]()+'\x20['+logLevelToString(_0x5e75e9['level'])+_0x113ac5(0x14e)+_0x5e75e9[_0x113ac5(0x158)]+']\x20'+_0x5e75e9[_0x113ac5(0x17f)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1d2154,_0x3d37c){const _0x45223f=a246_0x5f06,_0x14760a=_0x1d2154();while(!![]){try{const _0x9a3a75=-parseInt(_0x45223f(0x166))/0x1*(-parseInt(_0x45223f(0x16a))/0x2)+-parseInt(_0x45223f(0x164))/0x3*(parseInt(_0x45223f(0x171))/0x4)+parseInt(_0x45223f(0x163))/0x5*(parseInt(_0x45223f(0x161))/0x6)+parseInt(_0x45223f(0x16c))/0x7+-parseInt(_0x45223f(0x15d))/0x8*(parseInt(_0x45223f(0x174))/0x9)+-parseInt(_0x45223f(0x178))/0xa+-parseInt(_0x45223f(0x17a))/0xb;if(_0x9a3a75===_0x3d37c)break;else _0x14760a['push'](_0x14760a['shift']());}catch(_0x76bea4){_0x14760a['push'](_0x14760a['shift']());}}}(a246_0x33b7,0x5360e));export var LogLevel;function a246_0x5f06(_0x43ce01,_0x22c3a9){_0x43ce01=_0x43ce01-0x15c;const _0x33b718=a246_0x33b7();let _0x5f0695=_0x33b718[_0x43ce01];return _0x5f0695;}(function(_0x6f6a91){const _0x58ce8a=a246_0x5f06;_0x6f6a91[_0x6f6a91[_0x58ce8a(0x179)]=-0x2]=_0x58ce8a(0x179),_0x6f6a91[_0x6f6a91[_0x58ce8a(0x173)]=-0x1]=_0x58ce8a(0x173),_0x6f6a91[_0x6f6a91[_0x58ce8a(0x168)]=0x0]=_0x58ce8a(0x168),_0x6f6a91[_0x6f6a91[_0x58ce8a(0x170)]=0x1]='WARN',_0x6f6a91[_0x6f6a91['ERROR']=0x2]=_0x58ce8a(0x15e);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x5c2ff9){const _0x37399d=a246_0x5f06;switch(_0x5c2ff9[_0x37399d(0x176)]()){case'TRACE':return LogLevel['TRACE'];case'DEBUG':return LogLevel[_0x37399d(0x173)];case'INFO':return LogLevel['INFO'];case _0x37399d(0x170):case _0x37399d(0x162):return LogLevel['WARN'];case _0x37399d(0x15e):return LogLevel['ERROR'];default:return LogLevel[_0x37399d(0x168)];}}function a246_0x33b7(){const _0x4469ab=['1207160FLwFPK','TRACE','29403xEcdIM','getFullYear','15512TiqcFi','ERROR','warn','toString','1049754LuReVj','WARNING','5woFYpk','87519KuIidA','getTimezoneOffset','1YcBSnk','abs','INFO','debug','117590cPljLb','getHours','4090205KYSIxn','info','getMinutes','getMonth','WARN','12TYTRCd','getMilliseconds','DEBUG','1233TQegIq','floor','toUpperCase','padStart'];a246_0x33b7=function(){return _0x4469ab;};return a246_0x33b7();}export function logLevelToString(_0x32de17){const _0x328796=a246_0x5f06;switch(_0x32de17){case LogLevel[_0x328796(0x179)]:return'trace';case LogLevel[_0x328796(0x173)]:return _0x328796(0x169);case LogLevel[_0x328796(0x168)]:return'info';case LogLevel[_0x328796(0x170)]:return _0x328796(0x15f);case LogLevel[_0x328796(0x15e)]:return'error';default:return _0x328796(0x16d);}}export function formatTimestamp(_0x14e4d3){const _0x4280b9=a246_0x5f06,_0x3ee4ac=_0x14e4d3[_0x4280b9(0x15c)](),_0x213865=(_0x14e4d3[_0x4280b9(0x16f)]()+0x1)[_0x4280b9(0x160)]()[_0x4280b9(0x177)](0x2,'0'),_0x174ee7=_0x14e4d3['getDate']()[_0x4280b9(0x160)]()[_0x4280b9(0x177)](0x2,'0'),_0x429c05=_0x14e4d3[_0x4280b9(0x16b)]()[_0x4280b9(0x160)]()[_0x4280b9(0x177)](0x2,'0'),_0x512e54=_0x14e4d3[_0x4280b9(0x16e)]()[_0x4280b9(0x160)]()[_0x4280b9(0x177)](0x2,'0'),_0x40860f=_0x14e4d3['getSeconds']()['toString']()[_0x4280b9(0x177)](0x2,'0'),_0xec9b76=_0x14e4d3[_0x4280b9(0x172)]()[_0x4280b9(0x160)]()[_0x4280b9(0x177)](0x3,'0'),_0x187417=-_0x14e4d3[_0x4280b9(0x165)](),_0x1d0530=Math[_0x4280b9(0x175)](Math[_0x4280b9(0x167)](_0x187417)/0x3c),_0x17bdd2=Math[_0x4280b9(0x167)](_0x187417)%0x3c,_0x8b2c1a=_0x187417>=0x0?'+':'-',_0x8f2879=''+_0x8b2c1a+_0x1d0530[_0x4280b9(0x160)]()[_0x4280b9(0x177)](0x2,'0')+_0x17bdd2[_0x4280b9(0x160)]()[_0x4280b9(0x177)](0x2,'0');return _0x3ee4ac+'-'+_0x213865+'-'+_0x174ee7+'\x20'+_0x429c05+':'+_0x512e54+':'+_0x40860f+'.'+_0xec9b76+_0x8f2879;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a247_0x269b(_0x254502,_0x964889){_0x254502=_0x254502-0x87;const _0x5cce6b=a247_0x5cce();let _0x269b6b=_0x5cce6b[_0x254502];return _0x269b6b;}(function(_0xd03975,_0x21f0b8){const _0x199250=a247_0x269b,_0x2de7cd=_0xd03975();while(!![]){try{const _0x51a026=-parseInt(_0x199250(0x96))/0x1*(-parseInt(_0x199250(0x97))/0x2)+-parseInt(_0x199250(0x89))/0x3+parseInt(_0x199250(0x8e))/0x4*(-parseInt(_0x199250(0x8a))/0x5)+parseInt(_0x199250(0x98))/0x6*(-parseInt(_0x199250(0x8b))/0x7)+-parseInt(_0x199250(0x8d))/0x8+parseInt(_0x199250(0x93))/0x9+-parseInt(_0x199250(0x8f))/0xa*(-parseInt(_0x199250(0x92))/0xb);if(_0x51a026===_0x21f0b8)break;else _0x2de7cd['push'](_0x2de7cd['shift']());}catch(_0x2a9900){_0x2de7cd['push'](_0x2de7cd['shift']());}}}(a247_0x5cce,0xd193c));function a247_0x5cce(){const _0x552710=['.\x20Must\x20be\x20a\x20number.','341176qUuVDF','4127756WTaqOe','6199960SlFoWS','isInteger','.\x20Must\x20be\x20an\x20integer.','33cWVGeT','1913229MHZelc','.\x20Must\x20be\x20a\x20positive\x20number.','Invalid\x20limit\x20value:\x20','3JgQLQC','859578zaapzH','264aupQAs','number','Invalid\x20timeout\x20value:\x20','2124606FBfGZv','5MbQhAO','114660hDvQKO'];a247_0x5cce=function(){return _0x552710;};return a247_0x5cce();}export function validateLimitOption(_0x3edadd){const _0x5f06d4=a247_0x269b;if(!Number[_0x5f06d4(0x90)](_0x3edadd))return{'isValid':![],'error':_0x5f06d4(0x95)+_0x3edadd+_0x5f06d4(0x91)};if(_0x3edadd<=0x0)return{'isValid':![],'error':_0x5f06d4(0x95)+_0x3edadd+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x3edadd};}export function validateTimeoutOption(_0x4dd695,_0x36fbe3=0x1e){const _0x2725cd=a247_0x269b;if(_0x4dd695===undefined)return{'isValid':!![],'value':_0x36fbe3};const _0x3eaadb=typeof _0x4dd695===_0x2725cd(0x87)?_0x4dd695:parseFloat(_0x4dd695);if(isNaN(_0x3eaadb))return{'isValid':![],'error':_0x2725cd(0x88)+_0x4dd695+_0x2725cd(0x8c)};if(_0x3eaadb<=0x0)return{'isValid':![],'error':_0x2725cd(0x88)+_0x3eaadb+_0x2725cd(0x94)};return{'isValid':!![],'value':_0x3eaadb};}
|
package/dist/utils/process.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a248_0x179def=a248_0x56bb;(function(_0xea913b,_0x1abb65){const _0x531e9d=a248_0x56bb,_0x3f205e=_0xea913b();while(!![]){try{const _0x2eec79=-parseInt(_0x531e9d(0x1af))/0x1*(parseInt(_0x531e9d(0x1b0))/0x2)+parseInt(_0x531e9d(0x186))/0x3*(parseInt(_0x531e9d(0x192))/0x4)+parseInt(_0x531e9d(0x1a0))/0x5*(parseInt(_0x531e9d(0x185))/0x6)+parseInt(_0x531e9d(0x182))/0x7*(-parseInt(_0x531e9d(0x1a2))/0x8)+parseInt(_0x531e9d(0x17a))/0x9+parseInt(_0x531e9d(0x18a))/0xa+parseInt(_0x531e9d(0x17f))/0xb*(-parseInt(_0x531e9d(0x17e))/0xc);if(_0x2eec79===_0x1abb65)break;else _0x3f205e['push'](_0x3f205e['shift']());}catch(_0x286390){_0x3f205e['push'](_0x3f205e['shift']());}}}(a248_0x36a5,0x77abf));import{execFile,execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a248_0x179def(0x179),'zsh','sh','fish','ksh',a248_0x179def(0x199),a248_0x179def(0x191),a248_0x179def(0x181),a248_0x179def(0x183),a248_0x179def(0x1a1),'nu','ion','elvish',a248_0x179def(0x187)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude','code','cursor',a248_0x179def(0x1a9),a248_0x179def(0x18f)]);function getProcessInfoWindows(_0x3538a4){const _0x2b01d9=a248_0x179def;try{if(!Number[_0x2b01d9(0x19c)](_0x3538a4)||_0x3538a4<=0x0)return null;const _0x2c0931=_0x2b01d9(0x17d)+_0x3538a4+'\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}',_0x210794=execSync('powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22'+_0x2c0931+'\x22',{'encoding':_0x2b01d9(0x17b),'windowsHide':!![],'stdio':['pipe',_0x2b01d9(0x1ad),_0x2b01d9(0x1ad)]})[_0x2b01d9(0x1a8)]();if(!_0x210794)return null;const [_0x1d5c67,..._0x4604e2]=_0x210794[_0x2b01d9(0x189)](','),_0x5f11d9=parseInt(_0x1d5c67,0xa),_0x4363d5=_0x4604e2[_0x2b01d9(0x19a)](',')['trim']();if(isNaN(_0x5f11d9)||!_0x4363d5)return null;return{'pid':_0x3538a4,'ppid':_0x5f11d9,'comm':_0x4363d5[_0x2b01d9(0x18b)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x4785c1){const _0xbf60e8=a248_0x179def;try{const _0x5c149e=0x400000;if(!Number[_0xbf60e8(0x19c)](_0x4785c1)||_0x4785c1<=0x0||_0x4785c1>_0x5c149e)return null;const _0xeda69c=execSync(_0xbf60e8(0x19f)+_0x4785c1+_0xbf60e8(0x1a7),{'encoding':_0xbf60e8(0x17b),'stdio':_0xbf60e8(0x1ad)})[_0xbf60e8(0x1a8)](),[_0x1c1596,..._0x11af8d]=_0xeda69c[_0xbf60e8(0x189)](/\s+/),_0x3658f5=parseInt(_0x1c1596,0xa),_0x296895=_0x11af8d['join']('\x20');if(isNaN(_0x3658f5))return null;return{'pid':_0x4785c1,'ppid':_0x3658f5,'comm':_0x296895};}catch{return null;}}function getProcessInfo(_0x2b6942){const _0x5003c6=a248_0x179def;if(process[_0x5003c6(0x1ae)]==='win32')return getProcessInfoWindows(_0x2b6942);return getProcessInfoPosix(_0x2b6942);}function getBasename(_0x194d1a){const _0x316d87=a248_0x179def;return _0x194d1a[_0x316d87(0x18b)](/^-/,'')['split']('/')['pop']()?.[_0x316d87(0x1a5)]()||'';}function a248_0x56bb(_0xd9ec41,_0x29f338){_0xd9ec41=_0xd9ec41-0x178;const _0x36a53d=a248_0x36a5();let _0x56bb69=_0x36a53d[_0xd9ec41];return _0x56bb69;}function isShell(_0x5a5334){const _0x103459=a248_0x179def;return SHELL_NAMES[_0x103459(0x1a4)](getBasename(_0x5a5334));}function isEphemeralShellSpawner(_0x3d8675){const _0x441759=a248_0x179def;return EPHEMERAL_SHELL_SPAWNERS[_0x441759(0x1a4)](getBasename(_0x3d8675));}let cachedShellPID;function findShellPID(){const _0xcebd31=a248_0x179def;if(process[_0xcebd31(0x197)]===undefined)return process['pid'];let _0x220d63=process['ppid'];const _0x1fcd93=0xa;let _0x33944a=0x0;while(_0x33944a<_0x1fcd93){const _0x43f85e=getProcessInfo(_0x220d63);if(!_0x43f85e)break;if(isShell(_0x43f85e[_0xcebd31(0x180)])){const _0x3194e8=getProcessInfo(_0x43f85e[_0xcebd31(0x197)]);if(_0x3194e8&&isEphemeralShellSpawner(_0x3194e8[_0xcebd31(0x180)])){_0x220d63=_0x43f85e['ppid'],_0x33944a++;continue;}return _0x43f85e[_0xcebd31(0x184)];}if(_0x43f85e[_0xcebd31(0x197)]===0x0||_0x43f85e[_0xcebd31(0x197)]===0x1){if(isShell(_0x43f85e['comm']))return _0x43f85e[_0xcebd31(0x184)];break;}_0x220d63=_0x43f85e[_0xcebd31(0x197)],_0x33944a++;}return process[_0xcebd31(0x197)]!==undefined?process['ppid']:process[_0xcebd31(0x184)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x2ec270){const _0x28b745=a248_0x179def;if(!Number[_0x28b745(0x19c)](_0x2ec270)||_0x2ec270<=0x0)return![];try{return process[_0x28b745(0x194)](_0x2ec270,0x0),!![];}catch{return![];}}export function openBrowser(_0x5dda1d){const _0x2e8887=a248_0x179def;let _0x43ebe8;try{_0x43ebe8=new URL(_0x5dda1d);}catch{throw new Error(_0x2e8887(0x1a3)+_0x5dda1d);}if(_0x43ebe8[_0x2e8887(0x19b)]!==_0x2e8887(0x1ac)&&_0x43ebe8[_0x2e8887(0x19b)]!==_0x2e8887(0x1ab))throw new Error('Unsupported\x20protocol:\x20'+_0x43ebe8[_0x2e8887(0x19b)]);const _0xb55318=_0x43ebe8[_0x2e8887(0x188)],_0x544a54=process[_0x2e8887(0x1ae)];if(_0x544a54==='win32')spawn(_0x2e8887(0x195),['/c',_0x2e8887(0x193),'',_0xb55318],{'detached':!![],'stdio':_0x2e8887(0x18d)})[_0x2e8887(0x1b1)]();else{const _0x1f75b9=_0x544a54===_0x2e8887(0x19d)?'open':_0x2e8887(0x18c);spawn(_0x1f75b9,[_0xb55318],{'detached':!![],'stdio':_0x2e8887(0x18d)})[_0x2e8887(0x1b1)]();}}export function isWindows(){const _0x29a9c6=a248_0x179def;return process['platform']===_0x29a9c6(0x19e);}export function getCrossSpawnOptions(_0x597230){return{..._0x597230??{},'shell':isWindows()};}function a248_0x36a5(){const _0x5c1fc3=['stderr','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','29712DXiBqE','1452pyZikK','comm','dash','943432chgyVT','pwsh','pid','60tpFrnm','3ATeAIX','xonsh','href','split','2361640FUpeRk','replace','xdg-open','ignore','exit','treasure\x20studio','test','csh','3166796iVdoeT','start','kill','cmd.exe','which','ppid','map','tcsh','join','protocol','isInteger','darwin','win32','ps\x20-p\x20','236270qgjylf','powershell','32qNtZdF','Invalid\x20URL:\x20','has','toLowerCase','stdout','\x20-o\x20ppid=,comm=','trim','electron','where.exe','https:','http:','pipe','platform','1gazFNp','1598126jBOfTE','unref','write','bash','5892939xukzAK','utf-8'];a248_0x36a5=function(){return _0x5c1fc3;};return a248_0x36a5();}export function escapeWindowsArg(_0x4fc368){const _0x53e57f=a248_0x179def;if(!/[ \t"&|<>^%!`\r\n]/[_0x53e57f(0x190)](_0x4fc368))return _0x4fc368;const _0x3bfa3e=_0x4fc368[_0x53e57f(0x18b)](/"/g,'\x22\x22');return'\x22'+_0x3bfa3e+'\x22';}export function crossSpawn(_0x23335d,_0x5d90e7,_0x50ee94){const _0x1a5644=a248_0x179def;if(isWindows()){const _0x4bf66e=escapeWindowsArg(_0x23335d),_0x2268f2=_0x5d90e7[_0x1a5644(0x198)](escapeWindowsArg),_0x437124=[_0x4bf66e,..._0x2268f2][_0x1a5644(0x19a)]('\x20');return spawn(_0x437124,[],{..._0x50ee94,'shell':!![]});}return spawn(_0x23335d,_0x5d90e7,{..._0x50ee94,'shell':![]});}export function gracefulExit(_0x3aa051=0x0){const _0x2a252d=a248_0x179def,_0x420b25=()=>{const _0xade922=a248_0x56bb;isWindows()?setTimeout(()=>process[_0xade922(0x18e)](_0x3aa051),0x32):process[_0xade922(0x18e)](_0x3aa051);};let _0x397703=![];const _0x20aa5a=()=>{if(_0x397703)return;_0x397703=!![],_0x420b25();};let _0x284a85=0x2;const _0x1c6f6f=()=>{if(--_0x284a85===0x0)_0x20aa5a();},_0x3c592c=setTimeout(_0x20aa5a,0x7d0);if(typeof _0x3c592c[_0x2a252d(0x1b1)]==='function')_0x3c592c[_0x2a252d(0x1b1)]();process[_0x2a252d(0x1a6)][_0x2a252d(0x178)]('',_0x1c6f6f),process[_0x2a252d(0x17c)]['write']('',_0x1c6f6f);}export function findExecutable(_0x71b2b4,_0x2ec90f=0x1388){return new Promise(_0x3969fc=>{const _0x51822e=a248_0x56bb,_0x319de2=isWindows()?_0x51822e(0x1aa):_0x51822e(0x196);execFile(_0x319de2,[_0x71b2b4],{'timeout':_0x2ec90f,'windowsHide':!![]},(_0x27b588,_0x520e1e)=>{const _0x2adede=_0x51822e;if(_0x27b588||!_0x520e1e[_0x2adede(0x1a8)]())_0x3969fc(null);else{const _0xca980b=_0x520e1e['trim']()['split'](/\r?\n/)[0x0];_0x3969fc(_0xca980b);}});});}
|
package/dist/utils/prompt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2e0f8a,_0x430d57){const _0x5a657d=a249_0x452e,_0x349fd8=_0x2e0f8a();while(!![]){try{const _0x2bb0f2=-parseInt(_0x5a657d(0xbf))/0x1*(-parseInt(_0x5a657d(0xc7))/0x2)+parseInt(_0x5a657d(0xce))/0x3*(parseInt(_0x5a657d(0xc8))/0x4)+-parseInt(_0x5a657d(0xbe))/0x5+-parseInt(_0x5a657d(0xb9))/0x6*(-parseInt(_0x5a657d(0xbc))/0x7)+parseInt(_0x5a657d(0xbd))/0x8+parseInt(_0x5a657d(0xc3))/0x9+parseInt(_0x5a657d(0xba))/0xa*(-parseInt(_0x5a657d(0xc2))/0xb);if(_0x2bb0f2===_0x430d57)break;else _0x349fd8['push'](_0x349fd8['shift']());}catch(_0x4ab1c6){_0x349fd8['push'](_0x349fd8['shift']());}}}(a249_0x4cfc,0xa0d45));function a249_0x452e(_0x381eb8,_0x484907){_0x381eb8=_0x381eb8-0xb9;const _0x4cfcb0=a249_0x4cfc();let _0x452eae=_0x4cfcb0[_0x381eb8];return _0x452eae;}import*as a249_0x1740b3 from'readline';function a249_0x4cfc(){const _0x3b38db=['isTTY','createInterface','write','yes','363WNYZQU','utf8','toLowerCase','stdout','removeListener','2461548tCbCGS','111570zTrcOH','stderr','7ickpaZ','4223184gCJeMg','5239955rOnfyx','17cYHCfj','data','setEncoding','1452oKQITe','4002084pnCwZo','close','stdin','setRawMode','77458VamVXI','37628eFGdpd','question'];a249_0x4cfc=function(){return _0x3b38db;};return a249_0x4cfc();}import{gracefulExit}from'./process.js';export function isInteractive(){return process['stdin']['isTTY']===!![];}export async function confirm(_0x45bec8){const _0x1fa9b9=a249_0x452e,_0x4ac9f6=a249_0x1740b3[_0x1fa9b9(0xcb)]({'input':process[_0x1fa9b9(0xc5)],'output':process[_0x1fa9b9(0xd1)]});return new Promise(_0x1009bd=>{const _0x618000=_0x1fa9b9;_0x4ac9f6[_0x618000(0xc9)](_0x45bec8+'\x20(y/N):\x20',_0x848a9d=>{const _0x297ff5=_0x618000;_0x4ac9f6[_0x297ff5(0xc4)](),_0x1009bd(_0x848a9d[_0x297ff5(0xd0)]()==='y'||_0x848a9d[_0x297ff5(0xd0)]()===_0x297ff5(0xcd));});});}export async function confirmKey(_0x3baf2c){const _0xaa266a=a249_0x452e;if(!process['stdin'][_0xaa266a(0xca)])return![];return process[_0xaa266a(0xbb)]['write'](_0x3baf2c+'\x20[y/N]\x20'),new Promise(_0x3d5042=>{const _0x4a46a7=_0xaa266a,_0x3a58ba=process[_0x4a46a7(0xc5)];_0x3a58ba[_0x4a46a7(0xc6)](!![]),_0x3a58ba['resume'](),_0x3a58ba[_0x4a46a7(0xc1)](_0x4a46a7(0xcf));const _0x2d3c00=_0xac6e5d=>{const _0x5c03c8=_0x4a46a7;_0x3a58ba[_0x5c03c8(0xc6)](![]),_0x3a58ba['pause'](),_0x3a58ba[_0x5c03c8(0xd2)]('data',_0x2d3c00);if(_0xac6e5d==='\x1b'){process[_0x5c03c8(0xbb)][_0x5c03c8(0xcc)]('\x0a'),_0x3d5042(![]);return;}_0xac6e5d==='\x03'&&(process[_0x5c03c8(0xbb)][_0x5c03c8(0xcc)]('\x0a'),gracefulExit(0x82));if(_0xac6e5d[_0x5c03c8(0xd0)]()==='y'){process[_0x5c03c8(0xbb)]['write']('y\x0a'),_0x3d5042(!![]);return;}process['stderr'][_0x5c03c8(0xcc)]('\x0a'),_0x3d5042(![]);};_0x3a58ba['on'](_0x4a46a7(0xc0),_0x2d3c00);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a250_0x24ab(_0x4be891,_0x4e47bf){_0x4be891=_0x4be891-0x1b1;const _0x594e9b=a250_0x594e();let _0x24ab1c=_0x594e9b[_0x4be891];return _0x24ab1c;}function a250_0x594e(){const _0xa23935=['2493576EickgZ','12rygnvl','username','403872NsxXRi','120tEpOGe','28BkpYmj','****','639873JkUKKB','1049411cKjUec','1laIuHF','18HgRMiS','2464715EHvfjr','password','2371590UwjZMh','10509660UXaYDz','undici'];a250_0x594e=function(){return _0xa23935;};return a250_0x594e();}(function(_0x16dc5b,_0x4fb344){const _0x424c42=a250_0x24ab,_0x129921=_0x16dc5b();while(!![]){try{const _0x51d834=parseInt(_0x424c42(0x1c0))/0x1*(parseInt(_0x424c42(0x1b4))/0x2)+-parseInt(_0x424c42(0x1be))/0x3*(-parseInt(_0x424c42(0x1b8))/0x4)+-parseInt(_0x424c42(0x1b2))/0x5+-parseInt(_0x424c42(0x1ba))/0x6*(-parseInt(_0x424c42(0x1bc))/0x7)+-parseInt(_0x424c42(0x1b7))/0x8*(parseInt(_0x424c42(0x1b1))/0x9)+-parseInt(_0x424c42(0x1b5))/0xa+parseInt(_0x424c42(0x1bf))/0xb*(parseInt(_0x424c42(0x1bb))/0xc);if(_0x51d834===_0x4fb344)break;else _0x129921['push'](_0x129921['shift']());}catch(_0x1cb06a){_0x129921['push'](_0x129921['shift']());}}}(a250_0x594e,0xd73d7));export function maskProxyCredentials(_0xe49f5f){const _0x594de9=a250_0x24ab;try{const _0x2cf553=new URL(_0xe49f5f);return _0x2cf553[_0x594de9(0x1b9)]&&(_0x2cf553[_0x594de9(0x1b9)]=_0x594de9(0x1bd)),_0x2cf553[_0x594de9(0x1b3)]&&(_0x2cf553[_0x594de9(0x1b3)]=_0x594de9(0x1bd)),_0x2cf553['toString']();}catch{return _0xe49f5f;}}export async function createProxyFetch(_0x1e3c5b){const _0x2f6720=a250_0x24ab,{ProxyAgent:_0x40fa81,fetch:_0x19b298}=await import(_0x2f6720(0x1b6)),_0x28e488=new _0x40fa81(_0x1e3c5b);return(_0x20d3c8,_0x1079f5)=>_0x19b298(_0x20d3c8,{..._0x1079f5,'dispatcher':_0x28e488});}
|
package/dist/utils/spinner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x59b9a1,_0xd37641){const _0x303e57=a251_0x18e6,_0xed0d1d=_0x59b9a1();while(!![]){try{const _0x5e9663=parseInt(_0x303e57(0x7f))/0x1+-parseInt(_0x303e57(0x7d))/0x2+parseInt(_0x303e57(0x87))/0x3+parseInt(_0x303e57(0x8f))/0x4*(-parseInt(_0x303e57(0x8d))/0x5)+-parseInt(_0x303e57(0x79))/0x6*(-parseInt(_0x303e57(0x78))/0x7)+-parseInt(_0x303e57(0x7e))/0x8+parseInt(_0x303e57(0x91))/0x9;if(_0x5e9663===_0xd37641)break;else _0xed0d1d['push'](_0xed0d1d['shift']());}catch(_0x19c48f){_0xed0d1d['push'](_0xed0d1d['shift']());}}}(a251_0x222b,0x2c7ad));import a251_0x2e8d96 from'ora';function a251_0x222b(){const _0x1dfd93=['replace','3794058PUFRDZ','stderr','isTTY','271831MksNrj','12eYjycM','phase','floor','isSpinning','393940taoLoX','2347648CTsPFh','246352LbcCPD','extra','intervalFactory','toFixed','cyan','trim','now','\x20[Job\x20ID:\x20','304818LOlVum','start','clock','stop','...','text','872855hjhGEW','jobId','4YFlOof'];a251_0x222b=function(){return _0x1dfd93;};return a251_0x222b();}function a251_0x18e6(_0x9a3133,_0x5acdd6){_0x9a3133=_0x9a3133-0x76;const _0x222b52=a251_0x222b();let _0x18e648=_0x222b52[_0x9a3133];return _0x18e648;}import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x21d9e5,_0x18ab45={}){const _0x3e785c=a251_0x18e6,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x18ab45;return a251_0x2e8d96({'text':_0x21d9e5,'color':_0x3e785c(0x83),'stream':process['stderr'],'isEnabled':forceEnabled||process[_0x3e785c(0x76)][_0x3e785c(0x77)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x1b2571,_0xcc5fa6,_0x5305c2={}){const _0x1fd137=a251_0x18e6,_0xca7298=_0x5305c2[_0x1fd137(0x89)]??(()=>Date[_0x1fd137(0x85)]()),_0x53838b=createCommandSpinner(_0x1b2571,_0x5305c2);_0x53838b[_0x1fd137(0x88)]();const _0x375106=_0xca7298();try{const _0x33e405=await _0xcc5fa6(),_0x57d34c=_0xca7298()-_0x375106;return _0x53838b[_0x1fd137(0x8a)](),{'data':_0x33e405,'elapsedMs':_0x57d34c};}catch(_0x2bdf18){_0x53838b['stop']();throw _0x2bdf18;}}export async function withProgressSpinner(_0x2aa29d,_0x56477e,_0x37e87e={}){const _0x2b0e36=a251_0x18e6,_0x10b0bd=_0x37e87e[_0x2b0e36(0x89)]??(()=>Date[_0x2b0e36(0x85)]()),_0x5438a4=_0x37e87e[_0x2b0e36(0x81)]??setInterval,_0x1bbc59=createCommandSpinner(_0x2aa29d,_0x37e87e);_0x1bbc59[_0x2b0e36(0x88)]();const _0x2dead5=_0x10b0bd(),_0x21e22a=_0x2aa29d[_0x2b0e36(0x90)](_0x2b0e36(0x8b),'')[_0x2b0e36(0x84)]()||'Processing',_0x33c041={};let _0x2ade92=_0x2aa29d;const _0x23266f=()=>{const _0x2ba24b=_0x2b0e36;if(!_0x1bbc59[_0x2ba24b(0x7c)])return;const _0x58f9bf=_0x10b0bd()-_0x2dead5,_0x38a9ca=formatElapsed(_0x58f9bf),_0x4fec83=_0x33c041[_0x2ba24b(0x7a)]?.[_0x2ba24b(0x84)]()||_0x21e22a,_0x25914e=_0x33c041[_0x2ba24b(0x8e)]?_0x2ba24b(0x86)+_0x33c041['jobId']+']':'',_0x3443ca=_0x33c041[_0x2ba24b(0x80)]?'\x20'+_0x33c041[_0x2ba24b(0x80)]:'',_0xbb42ac=_0x4fec83+'\x20'+_0x38a9ca+_0x3443ca+_0x25914e;_0xbb42ac!==_0x2ade92&&_0xbb42ac[_0x2ba24b(0x84)]()&&(_0x1bbc59[_0x2ba24b(0x8c)]=_0xbb42ac,_0x2ade92=_0xbb42ac);},_0x4f783b=_0x5438a4(()=>{_0x23266f();},0x3e8),_0x337b2f={'setPhase':_0x46d2ec=>{const _0x502429=_0x2b0e36;_0x33c041[_0x502429(0x7a)]=_0x46d2ec;const _0x3a3236=_0x46d2ec?.['trim']()||_0x21e22a,_0x4efd27=_0x10b0bd()-_0x2dead5,_0x1bb26b=formatElapsed(_0x4efd27),_0x19e05d=_0x33c041[_0x502429(0x8e)]?_0x502429(0x86)+_0x33c041[_0x502429(0x8e)]+']':'',_0x34f6c1=_0x33c041[_0x502429(0x80)]?'\x20'+_0x33c041[_0x502429(0x80)]:'',_0x28e949=_0x3a3236+'\x20'+_0x1bb26b+_0x34f6c1+_0x19e05d;_0x1bbc59[_0x502429(0x7c)]&&_0x28e949[_0x502429(0x84)]()&&(_0x1bbc59[_0x502429(0x8c)]=_0x28e949,_0x2ade92=_0x28e949);},'setJobId':_0x4a70cf=>{const _0x24435b=_0x2b0e36;_0x33c041[_0x24435b(0x8e)]=_0x4a70cf,_0x23266f();},'setExtra':_0x3a068f=>{const _0x3445da=_0x2b0e36;_0x33c041[_0x3445da(0x80)]=_0x3a068f,_0x23266f();}};_0x23266f();try{const _0x21dbf4=await _0x56477e(_0x337b2f),_0x3e5ded=_0x10b0bd()-_0x2dead5;return{'data':_0x21dbf4,'elapsedMs':_0x3e5ded};}finally{clearInterval(_0x4f783b),_0x1bbc59[_0x2b0e36(0x8a)]();}}export function formatElapsed(_0x26139b){const _0x259921=a251_0x18e6,_0x19eec6=Math[_0x259921(0x7b)](_0x26139b/0x3e8);if(_0x19eec6<0x3c)return(_0x26139b/0x3e8)[_0x259921(0x82)](0x1)+'s';const _0x2544dc=Math[_0x259921(0x7b)](_0x19eec6/0x3c),_0x3820d2=_0x19eec6%0x3c;if(_0x2544dc<0x3c)return _0x2544dc+'m\x20'+_0x3820d2+'s';const _0x33c803=Math[_0x259921(0x7b)](_0x2544dc/0x3c),_0x59d621=_0x2544dc%0x3c;return _0x33c803+'h\x20'+_0x59d621+'m';}
|
package/dist/utils/sse-parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x497da7,_0xc061d4){const _0x31d20d=a252_0x28c8,_0x13ae80=_0x497da7();while(!![]){try{const _0x4dcaa1=parseInt(_0x31d20d(0x120))/0x1+-parseInt(_0x31d20d(0x10c))/0x2+-parseInt(_0x31d20d(0x113))/0x3+-parseInt(_0x31d20d(0x110))/0x4+parseInt(_0x31d20d(0x118))/0x5*(-parseInt(_0x31d20d(0x119))/0x6)+parseInt(_0x31d20d(0x11f))/0x7*(parseInt(_0x31d20d(0x117))/0x8)+parseInt(_0x31d20d(0x11a))/0x9;if(_0x4dcaa1===_0xc061d4)break;else _0x13ae80['push'](_0x13ae80['shift']());}catch(_0x1869e1){_0x13ae80['push'](_0x13ae80['shift']());}}}(a252_0x19c2,0xc8203));export async function*parseSSEStream(_0x49cf55,_0x2ec6ac){const _0x5771a2=a252_0x28c8;if(!_0x49cf55['body'])throw new Error(_0x5771a2(0x111));const _0x1227fa=_0x49cf55[_0x5771a2(0x10f)][_0x5771a2(0x10b)](),_0x4414c9=new TextDecoder();let _0x372b78='',_0x3aafc1={};try{while(!![]){const {done:_0x2a92b6,value:_0x216d90}=await _0x1227fa[_0x5771a2(0x114)]();if(_0x2a92b6){if(_0x3aafc1['data']){_0x2ec6ac?.[_0x5771a2(0x112)](_0x5771a2(0x11e)+_0x3aafc1[_0x5771a2(0x115)]);const _0x13005d=parseSSEData(_0x3aafc1[_0x5771a2(0x115)]);yield _0x13005d;}break;}_0x372b78+=_0x4414c9[_0x5771a2(0x11c)](_0x216d90,{'stream':!![]});const _0x38092d=_0x372b78['split']('\x0a');_0x372b78=_0x38092d['pop']()||'';for(const _0x357b15 of _0x38092d){if(_0x357b15[_0x5771a2(0x116)]()===''){if(_0x3aafc1[_0x5771a2(0x115)]){_0x2ec6ac?.[_0x5771a2(0x112)](_0x5771a2(0x11e)+_0x3aafc1[_0x5771a2(0x115)]);const _0x110183=parseSSEData(_0x3aafc1['data']);yield _0x110183,_0x3aafc1={};}continue;}if(_0x357b15[_0x5771a2(0x10d)](':'))continue;const _0xbe3abf=_0x357b15[_0x5771a2(0x10e)](':');if(_0xbe3abf===-0x1)continue;const _0x573798=_0x357b15[_0x5771a2(0x11b)](0x0,_0xbe3abf);let _0x4fac27=_0x357b15['slice'](_0xbe3abf+0x1);_0x4fac27[_0x5771a2(0x10d)]('\x20')&&(_0x4fac27=_0x4fac27[_0x5771a2(0x11b)](0x1));switch(_0x573798){case _0x5771a2(0x121):_0x3aafc1[_0x5771a2(0x121)]=_0x4fac27;break;case _0x5771a2(0x115):_0x3aafc1['data']=_0x3aafc1[_0x5771a2(0x115)]?_0x3aafc1[_0x5771a2(0x115)]+'\x0a'+_0x4fac27:_0x4fac27;break;case'id':_0x3aafc1['id']=_0x4fac27;break;}}}}finally{_0x1227fa['releaseLock']();}}function a252_0x19c2(){const _0x483bf4=['indexOf','body','1515104JyXIxK','Response\x20body\x20is\x20null','debug','4349514BXBjSA','read','data','trim','7654696qxPrhQ','5068680rpfeCP','6RNSSho','27191205dAOcmx','slice','decode','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','[LLM\x20API\x20SSE]\x20','7WwmwMW','50351qyEIHQ','event','parse','getReader','732736MawKDJ','startsWith'];a252_0x19c2=function(){return _0x483bf4;};return a252_0x19c2();}function a252_0x28c8(_0x45cb87,_0x3fa010){_0x45cb87=_0x45cb87-0x10b;const _0x19c2b0=a252_0x19c2();let _0x28c839=_0x19c2b0[_0x45cb87];return _0x28c839;}function parseSSEData(_0x3ae3c1){const _0x463927=a252_0x28c8;try{return JSON[_0x463927(0x122)](_0x3ae3c1);}catch(_0x4b2868){throw new Error(_0x463927(0x11d)+_0x3ae3c1,{'cause':_0x4b2868});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2f3182,_0x4b25b8){const _0x2ec477=a253_0x5e91,_0x1719f0=_0x2f3182();while(!![]){try{const _0x47901a=parseInt(_0x2ec477(0x1ed))/0x1+-parseInt(_0x2ec477(0x1f1))/0x2+-parseInt(_0x2ec477(0x1e0))/0x3+parseInt(_0x2ec477(0x1f0))/0x4+parseInt(_0x2ec477(0x1ef))/0x5*(-parseInt(_0x2ec477(0x1ec))/0x6)+parseInt(_0x2ec477(0x1ee))/0x7+-parseInt(_0x2ec477(0x1e5))/0x8;if(_0x47901a===_0x4b25b8)break;else _0x1719f0['push'](_0x1719f0['shift']());}catch(_0x4e0189){_0x1719f0['push'](_0x1719f0['shift']());}}}(a253_0x29cb,0x82cb5));import a253_0x5637df from'string-width';export function stringWidth(_0x25a4e0){return a253_0x5637df(_0x25a4e0);}export function padEnd(_0x3451ec,_0xc5a6b4){const _0x5f31d4=a253_0x5e91,_0xf53243=stringWidth(_0x3451ec);if(_0xf53243>=_0xc5a6b4)return _0x3451ec;return _0x3451ec+'\x20'[_0x5f31d4(0x1e8)](_0xc5a6b4-_0xf53243);}export function padStart(_0x5a9187,_0x376726){const _0x37faab=a253_0x5e91,_0x210e62=stringWidth(_0x5a9187);if(_0x210e62>=_0x376726)return _0x5a9187;return'\x20'[_0x37faab(0x1e8)](_0x376726-_0x210e62)+_0x5a9187;}function a253_0x5e91(_0x5b6342,_0x277550){_0x5b6342=_0x5b6342-0x1de;const _0x29cb1c=a253_0x29cb();let _0x5e9180=_0x29cb1c[_0x5b6342];return _0x5e9180;}export function centerAlign(_0x2fa1bf,_0x59213b){const _0x42395e=a253_0x5e91,_0x54dbd9=stringWidth(_0x2fa1bf);if(_0x54dbd9>_0x59213b){if(_0x59213b<=0x1)return'…'[_0x42395e(0x1eb)](0x0,_0x59213b);let _0x2542fe=_0x2fa1bf;while(stringWidth(_0x2542fe+'…')>_0x59213b){_0x2542fe=_0x2542fe[_0x42395e(0x1e4)](0x0,-0x1);}return _0x2542fe+'…';}if(_0x54dbd9===_0x59213b)return _0x2fa1bf;const _0x525a20=_0x59213b-_0x54dbd9,_0x5427d7=Math[_0x42395e(0x1e6)](_0x525a20/0x2),_0x1c742d=_0x525a20-_0x5427d7;return'\x20'['repeat'](_0x5427d7)+_0x2fa1bf+'\x20'[_0x42395e(0x1e8)](_0x1c742d);}export function escapeStringLiteral(_0x2bdf82){const _0x280977=a253_0x5e91;if(!_0x2bdf82||_0x2bdf82[_0x280977(0x1de)]()[_0x280977(0x1e1)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x4035da=_0x2bdf82['replace'](/'/g,'\x27\x27');return'\x27'+_0x4035da+'\x27';}export function globToLike(_0x31c880){const _0x5093b4=a253_0x5e91;let _0x511594=_0x31c880[_0x5093b4(0x1e9)](/\\/g,'\x5c\x5c')[_0x5093b4(0x1e9)](/%/g,'\x5c%')[_0x5093b4(0x1e9)](/_/g,'\x5c_');return _0x511594=_0x511594[_0x5093b4(0x1e9)](/\*/g,'%')[_0x5093b4(0x1e9)](/\?/g,'_'),_0x511594;}export function buildLikePattern(_0x8414fe){const _0x31b03a=a253_0x5e91;if(!_0x8414fe||_0x8414fe[_0x31b03a(0x1de)]()[_0x31b03a(0x1e1)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x400b3c=globToLike(_0x8414fe),_0x59d78b=_0x400b3c[_0x31b03a(0x1e9)](/'/g,'\x27\x27');return'\x27'+_0x59d78b+'\x27';}export function matchGlobPattern(_0x53e9f2,_0x51bb3a){const _0x4e312c=a253_0x5e91,_0x5605d9=_0x51bb3a['replace'](/[.+^${}()|[\]\\]/g,_0x4e312c(0x1e7))[_0x4e312c(0x1e9)](/\*/g,'.*')[_0x4e312c(0x1e9)](/\?/g,'.'),_0xdb652a=new RegExp('^'+_0x5605d9+'$');return _0xdb652a[_0x4e312c(0x1f3)](_0x53e9f2);}export function getSanitizedUsername(){const _0x5a1c8d=a253_0x5e91,_0x54e0dd=process.env.USER||process.env.USERNAME||_0x5a1c8d(0x1f2);return _0x54e0dd[_0x5a1c8d(0x1e9)](/[^a-zA-Z0-9]/g,'')[_0x5a1c8d(0x1e3)]();}export function generateRandomHex(){const _0x520532=a253_0x5e91,_0x3cca0e=Math['floor'](Math[_0x520532(0x1df)]()*0xfffff);return _0x3cca0e[_0x520532(0x1ea)](0x10)[_0x520532(0x1e2)](0x5,'0');}function a253_0x29cb(){const _0x6e8d5a=['length','padStart','toLowerCase','slice','2341600HRLxQu','floor','\x5c$&','repeat','replace','toString','substring','129666OCWzzg','372722wMWIQj','7325416ivztqh','20EhcFwx','1546272DsGVCo','1590570rPmquG','unknown','test','trim','random','286848hSeCgF'];a253_0x29cb=function(){return _0x6e8d5a;};return a253_0x29cb();}export function sanitizeFileName(_0x176758){const _0x2f2fd6=a253_0x5e91;return _0x176758[_0x2f2fd6(0x1e3)]()[_0x2f2fd6(0x1e9)](/[/\\:*?"<>|]/g,'-')[_0x2f2fd6(0x1e9)](/\s+/g,'-')['replace'](/-+/g,'-')['replace'](/^-|-$/g,'');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x22c6b3,_0x335e22){const _0x1f793d=a254_0x21ac,_0x81d788=_0x22c6b3();while(!![]){try{const _0x1c3992=parseInt(_0x1f793d(0xe7))/0x1+parseInt(_0x1f793d(0xe0))/0x2*(parseInt(_0x1f793d(0xdf))/0x3)+parseInt(_0x1f793d(0xea))/0x4*(-parseInt(_0x1f793d(0xd8))/0x5)+-parseInt(_0x1f793d(0xda))/0x6+parseInt(_0x1f793d(0xe2))/0x7+parseInt(_0x1f793d(0xdc))/0x8*(-parseInt(_0x1f793d(0xd9))/0x9)+parseInt(_0x1f793d(0xd7))/0xa;if(_0x1c3992===_0x335e22)break;else _0x81d788['push'](_0x81d788['shift']());}catch(_0x2f8869){_0x81d788['push'](_0x81d788['shift']());}}}(a254_0x4628,0x6ec1b));function a254_0x21ac(_0x21c8cb,_0x23adbe){_0x21c8cb=_0x21c8cb-0xd7;const _0x46283c=a254_0x4628();let _0x21ac7e=_0x46283c[_0x21c8cb];return _0x21ac7e;}function a254_0x4628(){const _0x4e1335=['Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','7585930BfFUMw','55LJmLpC','11547WlXLOc','4229262adaroN','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','1032gBPjcs','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','trim','1017294rVSTdK','2qojcHs','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','3925089LBNIaI','catalog','includes','push','length','523702dSvIBu','database','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','312028VriSBu','split','table'];a254_0x4628=function(){return _0x4e1335;};return a254_0x4628();}function hasWildcard(_0x5b7f4f){const _0x58b963=a254_0x21ac;return _0x5b7f4f[_0x58b963(0xe4)]('*')||_0x5b7f4f[_0x58b963(0xe4)]('?');}export function parseTableReference(_0x398d42){const _0xfd257=a254_0x21ac;if(!_0x398d42||_0x398d42[_0xfd257(0xde)]()[_0xfd257(0xe6)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x3f0576=_0x398d42[_0xfd257(0xde)](),_0x1ad0a4={'original':_0x3f0576},_0x4d6fe1=_0x3f0576[_0xfd257(0xeb)]('.');if(_0x4d6fe1[_0xfd257(0xe6)]===0x1){const _0x503ef7=_0x4d6fe1[0x0];if(!_0x503ef7)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x1ad0a4['table']=_0x503ef7;}else{if(_0x4d6fe1[_0xfd257(0xe6)]===0x2){const [_0x446657,_0x223f71]=_0x4d6fe1;if(!_0x446657)throw new Error(_0xfd257(0xe9));if(!_0x223f71)throw new Error(_0xfd257(0xdd));_0x1ad0a4[_0xfd257(0xe8)]=_0x446657,_0x1ad0a4[_0xfd257(0xec)]=_0x223f71;}else{if(_0x4d6fe1[_0xfd257(0xe6)]===0x3){const [_0x3e3e19,_0x46884a,_0x12d08e]=_0x4d6fe1;if(!_0x3e3e19||!_0x46884a||!_0x12d08e)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x1ad0a4[_0xfd257(0xe3)]=_0x3e3e19,_0x1ad0a4[_0xfd257(0xe8)]=_0x46884a,_0x1ad0a4['table']=_0x12d08e;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x1ad0a4;}export function formatTableReference(_0x5983b3){const _0x152dd1=a254_0x21ac,_0x4d2f37=[];return _0x5983b3[_0x152dd1(0xe3)]&&_0x4d2f37['push'](_0x5983b3[_0x152dd1(0xe3)]),_0x5983b3[_0x152dd1(0xe8)]&&_0x4d2f37[_0x152dd1(0xe5)](_0x5983b3[_0x152dd1(0xe8)]),_0x5983b3[_0x152dd1(0xec)]&&_0x4d2f37['push'](_0x5983b3[_0x152dd1(0xec)]),_0x4d2f37['join']('.');}export function validateTableListReference(_0x1f84e1){return undefined;}export function validateTableDescribeReference(_0x27437d){const _0x351e86=a254_0x21ac;if(!_0x27437d['table'])return _0x351e86(0xdb);if(_0x27437d[_0x351e86(0xe8)]&&hasWildcard(_0x27437d[_0x351e86(0xe8)]))return _0x351e86(0xe1);if(hasWildcard(_0x27437d['table']))return _0x351e86(0xed);return undefined;}
|
package/dist/utils/tdx-logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a255_0x514fc6=a255_0x2893;(function(_0x2bb892,_0x5a1b0d){const _0x5aed61=a255_0x2893,_0x3cd938=_0x2bb892();while(!![]){try{const _0x2c4f3a=-parseInt(_0x5aed61(0x131))/0x1+parseInt(_0x5aed61(0x13a))/0x2+-parseInt(_0x5aed61(0x12b))/0x3+-parseInt(_0x5aed61(0x134))/0x4+-parseInt(_0x5aed61(0x12e))/0x5*(-parseInt(_0x5aed61(0x137))/0x6)+parseInt(_0x5aed61(0x132))/0x7*(-parseInt(_0x5aed61(0x12d))/0x8)+parseInt(_0x5aed61(0x12c))/0x9;if(_0x2c4f3a===_0x5a1b0d)break;else _0x3cd938['push'](_0x3cd938['shift']());}catch(_0x1ee4c0){_0x3cd938['push'](_0x3cd938['shift']());}}}(a255_0x48ce,0x59879));import{join}from'path';function a255_0x2893(_0x40f396,_0xb90cac){_0x40f396=_0x40f396-0x12b;const _0x48cedf=a255_0x48ce();let _0x2893e3=_0x48cedf[_0x40f396];return _0x2893e3;}import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';function a255_0x48ce(){const _0x365fe9=['6SnSNpL','shutdown','debug','323758DxxiHz','push','warn','fileOnly','close','consoleHandler','info','logger','addHandler','init','logFileName','INFO','getLogPath','tdx.log','logDir','454584KwYTUC','7132860oCuxHy','8gZNFGY','1646835lbjoni','tdx','trace','126149DsnGZH','2638307aWpnQj','logLevel','1049980lVxnOR','error','fileHandler'];a255_0x48ce=function(){return _0x365fe9;};return a255_0x48ce();}export{LogLevel}from'./logger/index.js';export class TDXLogger{[a255_0x514fc6(0x133)];[a255_0x514fc6(0x13d)];['logDir'];[a255_0x514fc6(0x144)];['logger'];[a255_0x514fc6(0x136)]=null;[a255_0x514fc6(0x13f)]=null;constructor(_0x27f5ae=LogLevel[a255_0x514fc6(0x145)],_0x43eede=![],_0x343dbf,_0x1674b3=a255_0x514fc6(0x147)){const _0x199e44=a255_0x514fc6;this[_0x199e44(0x133)]=_0x27f5ae,this[_0x199e44(0x13d)]=_0x43eede,this['logDir']=_0x343dbf||join(getGlobalCacheDir(),'logs'),this[_0x199e44(0x144)]=_0x1674b3,this[_0x199e44(0x141)]=Logger['of'](_0x199e44(0x12f));}async['init'](){const _0x1d4717=a255_0x514fc6,_0x121fad=join(this[_0x1d4717(0x148)],this[_0x1d4717(0x144)]);if(Logger['isInitialized']()){!this[_0x1d4717(0x13d)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x1d4717(0x145)],'colors':!![]}),Logger[_0x1d4717(0x142)](this[_0x1d4717(0x13f)]));return;}this[_0x1d4717(0x136)]=new FileHandler({'filePath':_0x121fad});const _0x7fa41e=[this[_0x1d4717(0x136)]];!this['fileOnly']&&(this[_0x1d4717(0x13f)]=new ConsoleHandler({'minLevel':LogLevel[_0x1d4717(0x145)],'colors':!![]}),_0x7fa41e[_0x1d4717(0x13b)](this[_0x1d4717(0x13f)])),await Logger[_0x1d4717(0x143)]({'defaultLevel':this[_0x1d4717(0x133)],'handlers':_0x7fa41e,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a255_0x514fc6(0x139)](..._0x443022){this['logger']['debug'](..._0x443022);}[a255_0x514fc6(0x130)](..._0x27ae31){const _0x44ff8b=a255_0x514fc6;this[_0x44ff8b(0x141)][_0x44ff8b(0x130)](..._0x27ae31);}[a255_0x514fc6(0x140)](..._0x40f6e7){const _0x3363cd=a255_0x514fc6;this[_0x3363cd(0x141)][_0x3363cd(0x140)](..._0x40f6e7);}[a255_0x514fc6(0x13c)](..._0x42a775){const _0x1b399e=a255_0x514fc6;this['logger'][_0x1b399e(0x13c)](..._0x42a775);}[a255_0x514fc6(0x135)](..._0x404866){const _0xf5b638=a255_0x514fc6;this[_0xf5b638(0x141)][_0xf5b638(0x135)](..._0x404866);}async[a255_0x514fc6(0x13e)](){const _0x42f7f8=a255_0x514fc6;this[_0x42f7f8(0x141)][_0x42f7f8(0x140)]('Session\x20ended'),await Logger[_0x42f7f8(0x138)]();}[a255_0x514fc6(0x146)](){const _0x4f36db=a255_0x514fc6;return join(this[_0x4f36db(0x148)],this[_0x4f36db(0x144)]);}}
|