@treasuredata/tdx 2026.3.52 → 2026.3.54
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-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-template-pull-command.js +1 -1
- package/dist/commands/engage-template-push-command.js +1 -1
- package/dist/commands/engage-template-validate-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/policy-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.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/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tools/index.d.ts +2 -0
- package/dist/mcp/tools/index.d.ts.map +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/index.js.map +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.d.ts +50 -0
- package/dist/mcp/tools/work-create-item.d.ts.map +1 -0
- package/dist/mcp/tools/work-create-item.js +1 -0
- package/dist/mcp/tools/work-create-item.js.map +1 -0
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/cas/cas-api-client.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.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/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/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/template-pull.js +1 -1
- package/dist/sdk/engage/template-push.js +1 -1
- package/dist/sdk/engage/template-validator.js +1 -1
- package/dist/sdk/engage/template-yaml.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.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/personalization.js +1 -1
- package/dist/sdk/policy.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/types/workspace.d.ts +15 -0
- package/dist/sdk/types/workspace.d.ts.map +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/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/sdk/workspace/frontmatter.js +1 -1
- package/dist/sdk/workspace/git.js +1 -1
- package/dist/sdk/workspace/index.d.ts +14 -2
- package/dist/sdk/workspace/index.d.ts.map +1 -1
- package/dist/sdk/workspace/index.js +1 -1
- package/dist/sdk/workspace/index.js.map +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/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/file-reader.js +1 -1
- package/dist/utils/github-releases.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a220_0x189b47=a220_0x1a2b;(function(_0x292e47,_0xbd9fe3){const _0x541119=a220_0x1a2b,_0x2b8134=_0x292e47();while(!![]){try{const _0xb9491f=parseInt(_0x541119(0x1a3))/0x1+-parseInt(_0x541119(0x186))/0x2*(parseInt(_0x541119(0x195))/0x3)+parseInt(_0x541119(0x194))/0x4*(parseInt(_0x541119(0x188))/0x5)+parseInt(_0x541119(0x18c))/0x6+parseInt(_0x541119(0x1a0))/0x7*(parseInt(_0x541119(0x18d))/0x8)+-parseInt(_0x541119(0x187))/0x9+parseInt(_0x541119(0x196))/0xa;if(_0xb9491f===_0xbd9fe3)break;else _0x2b8134['push'](_0x2b8134['shift']());}catch(_0x315335){_0x2b8134['push'](_0x2b8134['shift']());}}}(a220_0x277d,0x78358));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';function a220_0x277d(){const _0x2477f7=['test','filePath','1250468VtyQed','7707447PjzRdB','2805pyMaqB','filter','logPath','logFileName','1354308lOqzrU','38752RneaCV','logDir','end','rotate','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','replace','includes','1724yrDhpb','3WYcFLW','5866150peSTRn','rotateOldLogs','logBaseName','tdx.log','init','getLogPath','mtime','toISOString','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','write','1162DfMfsO','error','.log','115765nblblo','logStream','handle','message','Warning:\x20Error\x20writing\x20to\x20','split'];a220_0x277d=function(){return _0x2477f7;};return a220_0x277d();}function a220_0x1a2b(_0x473e16,_0x180af8){_0x473e16=_0x473e16-0x186;const _0x277dae=a220_0x277d();let _0x1a2bc8=_0x277dae[_0x473e16];return _0x1a2bc8;}import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a220_0x189b47(0x18a)];[a220_0x189b47(0x18e)];[a220_0x189b47(0x18b)];['logBaseName'];[a220_0x189b47(0x1a4)]=null;[a220_0x189b47(0x190)];constructor(_0x800316={}){const _0x317c72=a220_0x189b47;this[_0x317c72(0x18a)]=_0x800316[_0x317c72(0x1aa)]??join(getGlobalCacheDir(),'logs',_0x317c72(0x199)),this[_0x317c72(0x18e)]=dirname(this[_0x317c72(0x18a)]),this[_0x317c72(0x18b)]=basename(this[_0x317c72(0x18a)]),this[_0x317c72(0x198)]=this[_0x317c72(0x18b)][_0x317c72(0x192)](/\.log$/,''),this['rotate']=_0x800316[_0x317c72(0x190)]??!![];}async[a220_0x189b47(0x19a)](){const _0x37dd85=a220_0x189b47;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0x37dd85(0x190)]&&await this[_0x37dd85(0x197)](),this[_0x37dd85(0x1a4)]=createWriteStream(this[_0x37dd85(0x18a)],{'flags':'a'}),this[_0x37dd85(0x1a4)]['on'](_0x37dd85(0x1a1),_0x4b6f8a=>{const _0xb0b2d9=_0x37dd85;console[_0xb0b2d9(0x1a1)](_0xb0b2d9(0x1a7)+this[_0xb0b2d9(0x18b)]+':',_0x4b6f8a[_0xb0b2d9(0x1a6)]);});}catch(_0x4d8e73){console[_0x37dd85(0x1a1)](_0x37dd85(0x19e),_0x4d8e73);}}[a220_0x189b47(0x1a5)](_0x1bd0b){const _0xee0b13=a220_0x189b47;if(!this['logStream'])return;const _0x3fd2f8=Logger['format'](_0x1bd0b);this['logStream'][_0xee0b13(0x19f)](_0x3fd2f8+'\x0a');}async['close'](){return new Promise(_0x10ad47=>{const _0x578dae=a220_0x1a2b;this[_0x578dae(0x1a4)]?this['logStream'][_0x578dae(0x18f)](()=>{const _0x14166d=_0x578dae;this[_0x14166d(0x1a4)]=null,_0x10ad47();}):_0x10ad47();});}[a220_0x189b47(0x19b)](){const _0x4e7966=a220_0x189b47;return this[_0x4e7966(0x18a)];}async[a220_0x189b47(0x197)](){const _0x546074=a220_0x189b47;try{const _0x15ad0b=await readdir(this['logDir']),_0x590d60=new Date()[_0x546074(0x19d)]()[_0x546074(0x1a8)]('T')[0x0];if(_0x15ad0b[_0x546074(0x193)](this[_0x546074(0x18b)])){const _0x5ae356=join(this[_0x546074(0x18e)],this[_0x546074(0x18b)]),_0x3107bc=await stat(_0x5ae356),_0xdb80ea=new Date(_0x3107bc[_0x546074(0x19c)])[_0x546074(0x19d)]()['split']('T')[0x0];if(_0xdb80ea<_0x590d60){const _0x25d092=join(this['logDir'],this[_0x546074(0x198)]+'-'+_0xdb80ea+_0x546074(0x1a2));await rename(_0x5ae356,_0x25d092);}}const _0x195f94=await readdir(this['logDir']),_0x229a50=this[_0x546074(0x198)][_0x546074(0x192)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x29feae=new RegExp('^'+_0x229a50+_0x546074(0x191)),_0x5b04a1=_0x195f94[_0x546074(0x189)](_0x32fb52=>_0x29feae[_0x546074(0x1a9)](_0x32fb52));for(const _0x180767 of _0x5b04a1){const _0x40b846=join(this[_0x546074(0x18e)],_0x180767),_0x4795fb=join(this[_0x546074(0x18e)],_0x180767+'.gz');try{await pipeline(createReadStream(_0x40b846),createGzip(),createWriteStream(_0x4795fb)),await unlink(_0x40b846);}catch(_0x65fb4a){console['error']('Warning:\x20Failed\x20to\x20compress\x20'+_0x180767+':',_0x65fb4a);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x586096,_0x36e618){var _0x2c101f=a221_0x3f86,_0xee7944=_0x586096();while(!![]){try{var _0x12717b=parseInt(_0x2c101f(0x152))/0x1+parseInt(_0x2c101f(0x150))/0x2*(parseInt(_0x2c101f(0x158))/0x3)+parseInt(_0x2c101f(0x155))/0x4*(parseInt(_0x2c101f(0x157))/0x5)+parseInt(_0x2c101f(0x151))/0x6+-parseInt(_0x2c101f(0x156))/0x7*(-parseInt(_0x2c101f(0x159))/0x8)+-parseInt(_0x2c101f(0x154))/0x9*(-parseInt(_0x2c101f(0x153))/0xa)+-parseInt(_0x2c101f(0x14f))/0xb;if(_0x12717b===_0x36e618)break;else _0xee7944['push'](_0xee7944['shift']());}catch(_0x3e9a47){_0xee7944['push'](_0xee7944['shift']());}}}(a221_0x1f8d,0xd8fa9));export{FileHandler}from'./file-handler.js';function a221_0x3f86(_0x3bca57,_0x19f628){_0x3bca57=_0x3bca57-0x14f;var _0x1f8d0c=a221_0x1f8d();var _0x3f86d5=_0x1f8d0c[_0x3bca57];return _0x3f86d5;}function a221_0x1f8d(){var _0x29bda8=['23540WzkNwQ','2493qxEpwA','4tnCOuV','56sUGCOU','5087965jQNWkb','6843aMGiox','1596440gBLuBZ','56038268IKRXjf','536WPWJsA','4707240ruEYuo','1321194PynLMn'];a221_0x1f8d=function(){return _0x29bda8;};return a221_0x1f8d();}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a222_0x445a(_0x3cf106,_0x3dc14b){_0x3cf106=_0x3cf106-0x1a4;var _0x457224=a222_0x4572();var _0x445a0a=_0x457224[_0x3cf106];return _0x445a0a;}var a222_0x700aae=a222_0x445a;function a222_0x4572(){var _0x5dec6d=['171035KMivaZ','3400734cDjLWg','1827588VkXlJA','handle','1396404iHgvZt','630960VmaKaR','5696wWSOAA','10129JdawVf','376935fsOiZC'];a222_0x4572=function(){return _0x5dec6d;};return a222_0x4572();}(function(_0x527e0d,_0x3fbedb){var _0x3580c9=a222_0x445a,_0x5ac7a3=_0x527e0d();while(!![]){try{var _0x314216=parseInt(_0x3580c9(0x1aa))/0x1+-parseInt(_0x3580c9(0x1a5))/0x2+-parseInt(_0x3580c9(0x1a9))/0x3+-parseInt(_0x3580c9(0x1ac))/0x4+-parseInt(_0x3580c9(0x1a6))/0x5+parseInt(_0x3580c9(0x1ab))/0x6+parseInt(_0x3580c9(0x1a8))/0x7*(parseInt(_0x3580c9(0x1a7))/0x8);if(_0x314216===_0x3fbedb)break;else _0x5ac7a3['push'](_0x5ac7a3['shift']());}catch(_0xfc2cc7){_0x5ac7a3['push'](_0x5ac7a3['shift']());}}}(a222_0x4572,0x582c0));export class NullHandler{[a222_0x700aae(0x1a4)](_0x1a65e6){}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4be95a,_0x3b8b8f){var _0x28bee4=a223_0x16eb,_0x3d1d46=_0x4be95a();while(!![]){try{var _0x33aa9b=parseInt(_0x28bee4(0x144))/0x1+-parseInt(_0x28bee4(0x147))/0x2+-parseInt(_0x28bee4(0x145))/0x3+-parseInt(_0x28bee4(0x14b))/0x4+-parseInt(_0x28bee4(0x148))/0x5+parseInt(_0x28bee4(0x14a))/0x6*(-parseInt(_0x28bee4(0x149))/0x7)+parseInt(_0x28bee4(0x146))/0x8*(parseInt(_0x28bee4(0x14c))/0x9);if(_0x33aa9b===_0x3b8b8f)break;else _0x3d1d46['push'](_0x3d1d46['shift']());}catch(_0x13a462){_0x3d1d46['push'](_0x3d1d46['shift']());}}}(a223_0x439a,0xa554c));function a223_0x16eb(_0x55ef9d,_0x15fe12){_0x55ef9d=_0x55ef9d-0x144;var _0x439a81=a223_0x439a();var _0x16ebd8=_0x439a81[_0x55ef9d];return _0x16ebd8;}function a223_0x439a(){var _0x316a51=['294AOUIHq','5367928eWnLpS','980982wjivcL','417664aJaZtB','3217539dKToGa','280ZkdqqT','776516qHEIFc','2527200dirXVA','35315qOqxQP'];a223_0x439a=function(){return _0x316a51;};return a223_0x439a();}export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a224_0x3eeed0=a224_0x1186;(function(_0x52a6e5,_0xf948f3){const _0x124088=a224_0x1186,_0x400079=_0x52a6e5();while(!![]){try{const _0x1b7936=-parseInt(_0x124088(0x1dc))/0x1+-parseInt(_0x124088(0x1cf))/0x2*(parseInt(_0x124088(0x1b3))/0x3)+parseInt(_0x124088(0x1ad))/0x4*(parseInt(_0x124088(0x1bb))/0x5)+parseInt(_0x124088(0x1ac))/0x6*(-parseInt(_0x124088(0x1d7))/0x7)+-parseInt(_0x124088(0x1ca))/0x8+-parseInt(_0x124088(0x1bd))/0x9+parseInt(_0x124088(0x1d5))/0xa;if(_0x1b7936===_0xf948f3)break;else _0x400079['push'](_0x400079['shift']());}catch(_0x37556e){_0x400079['push'](_0x400079['shift']());}}}(a224_0x1280,0x4d01b));import{LogLevel as a224_0x51e436,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a224_0x51e436[a224_0x3eeed0(0x1b6)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function a224_0x1280(){const _0x822b04=['function','init','loggers','string','55SGfSyz','stringify','1721115PVgacr','name','join','component','map','clear','formatter','get','setLogLevel','info','WARN',']\x20[','format','4003056YKYSOO','addHandler','defaultLevel','handlers','log','38JeXRxe','entries','trace','warn','pendingRecords','initialized','13359620HQKmpE','level','252CbyPqi','getFormatter','ERROR','DEBUG','shouldLog','212925EnOSrj','levelOverrides','isInitialized','toISOString','message','debug','has','stack','split','dispatch','reset','handle','cause','86574RSojEB','160808lcnMKm','shutdown','set','TRACE','close','push','6123ahQVjH','clearHandlers','setDefaultLevel','INFO'];a224_0x1280=function(){return _0x822b04;};return a224_0x1280();}function safeStringify(_0x495e50){const _0x9a2b9c=a224_0x3eeed0;if(typeof _0x495e50===_0x9a2b9c(0x1ba))return _0x495e50;if(_0x495e50 instanceof Error)return _0x495e50[_0x9a2b9c(0x1e3)]||_0x495e50['name']+':\x20'+_0x495e50[_0x9a2b9c(0x1e0)];try{return JSON[_0x9a2b9c(0x1bc)](_0x495e50,(_0x12bd8e,_0x177a35)=>{const _0x42aa7c=_0x9a2b9c;if(_0x177a35 instanceof Error)return{'name':_0x177a35[_0x42aa7c(0x1be)],'message':_0x177a35[_0x42aa7c(0x1e0)],'stack':_0x177a35[_0x42aa7c(0x1e3)],'cause':_0x177a35[_0x42aa7c(0x1ab)]};return _0x177a35;});}catch{return String(_0x495e50);}}function a224_0x1186(_0x55581d,_0x8c2bf5){_0x55581d=_0x55581d-0x1ab;const _0x1280af=a224_0x1280();let _0x118681=_0x1280af[_0x55581d];return _0x118681;}export class Logger{[a224_0x3eeed0(0x1c0)];constructor(_0xe4a824){this['component']=_0xe4a824;}static['of'](_0x3f3c11){const _0x1482ce=a224_0x3eeed0,_0x76b461=typeof _0x3f3c11===_0x1482ce(0x1ba)?_0x3f3c11:_0x3f3c11[_0x1482ce(0x1be)];let _0x344eed=state['loggers'][_0x1482ce(0x1c4)](_0x76b461);return!_0x344eed&&(_0x344eed=new Logger(_0x76b461),state[_0x1482ce(0x1b9)][_0x1482ce(0x1af)](_0x76b461,_0x344eed)),_0x344eed;}static async[a224_0x3eeed0(0x1b8)](_0x586e7e={}){const _0x455d42=a224_0x3eeed0;state[_0x455d42(0x1cc)]=_0x586e7e[_0x455d42(0x1cc)]??a224_0x51e436[_0x455d42(0x1b6)],state[_0x455d42(0x1cd)]=_0x586e7e[_0x455d42(0x1cd)]??[],state[_0x455d42(0x1c3)]=_0x586e7e[_0x455d42(0x1c3)]??null,state[_0x455d42(0x1dd)][_0x455d42(0x1c2)]();if(_0x586e7e[_0x455d42(0x1dd)])for(const [_0x9debb4,_0x567e36]of Object[_0x455d42(0x1d0)](_0x586e7e[_0x455d42(0x1dd)])){state[_0x455d42(0x1dd)]['set'](_0x9debb4,_0x567e36);}for(const _0x5d1b17 of state['handlers']){_0x5d1b17[_0x455d42(0x1b8)]&&await _0x5d1b17[_0x455d42(0x1b8)]();}state[_0x455d42(0x1d4)]=!![];for(const _0x280cef of state[_0x455d42(0x1d3)]){Logger[_0x455d42(0x1e5)](_0x280cef);}state[_0x455d42(0x1d3)]=[];}static[a224_0x3eeed0(0x1c5)](_0x4b1643,_0x455c53){const _0x860a3d=a224_0x3eeed0;state[_0x860a3d(0x1dd)][_0x860a3d(0x1af)](_0x4b1643,_0x455c53);}static[a224_0x3eeed0(0x1b5)](_0x2c9ab7){const _0x3ba0ed=a224_0x3eeed0;state[_0x3ba0ed(0x1cc)]=_0x2c9ab7;}static[a224_0x3eeed0(0x1cb)](_0x23f3af){const _0x1684b8=a224_0x3eeed0;state['handlers'][_0x1684b8(0x1b2)](_0x23f3af),state[_0x1684b8(0x1d4)]&&_0x23f3af[_0x1684b8(0x1b8)]&&_0x23f3af[_0x1684b8(0x1b8)]();}static[a224_0x3eeed0(0x1b4)](){const _0xc4f73d=a224_0x3eeed0;state[_0xc4f73d(0x1cd)]=[];}static async[a224_0x3eeed0(0x1ae)](){const _0x2f7104=a224_0x3eeed0;for(const _0x45cd51 of state[_0x2f7104(0x1cd)]){_0x45cd51[_0x2f7104(0x1b1)]&&await _0x45cd51[_0x2f7104(0x1b1)]();}state[_0x2f7104(0x1cd)]=[],state[_0x2f7104(0x1d4)]=![],state[_0x2f7104(0x1b9)][_0x2f7104(0x1c2)](),state[_0x2f7104(0x1d3)]=[];}static[a224_0x3eeed0(0x1e6)](){const _0x5dee14=a224_0x3eeed0;state['initialized']=![],state['defaultLevel']=a224_0x51e436[_0x5dee14(0x1b6)],state[_0x5dee14(0x1dd)][_0x5dee14(0x1c2)](),state[_0x5dee14(0x1cd)]=[],state[_0x5dee14(0x1c3)]=null,state['loggers'][_0x5dee14(0x1c2)](),state[_0x5dee14(0x1d3)]=[];}static[a224_0x3eeed0(0x1de)](){const _0x381d3a=a224_0x3eeed0;return state[_0x381d3a(0x1d4)];}static['getEffectiveLevel'](_0x2aa3ec){const _0x2f4f43=a224_0x3eeed0;if(state[_0x2f4f43(0x1dd)]['has'](_0x2aa3ec))return state['levelOverrides'][_0x2f4f43(0x1c4)](_0x2aa3ec);const _0x490ee6=_0x2aa3ec[_0x2f4f43(0x1e4)]('.');for(let _0x5d07a3=_0x490ee6['length']-0x1;_0x5d07a3>0x0;_0x5d07a3--){const _0x362958=_0x490ee6['slice'](0x0,_0x5d07a3)[_0x2f4f43(0x1bf)]('.');if(state[_0x2f4f43(0x1dd)][_0x2f4f43(0x1e2)](_0x362958))return state[_0x2f4f43(0x1dd)][_0x2f4f43(0x1c4)](_0x362958);}return state[_0x2f4f43(0x1cc)];}[a224_0x3eeed0(0x1db)](_0x5ea2aa){const _0x561d7e=a224_0x3eeed0,_0x559e14=Logger['getEffectiveLevel'](this[_0x561d7e(0x1c0)]);return _0x5ea2aa>=_0x559e14;}static[a224_0x3eeed0(0x1e5)](_0x5a51eb){const _0x405692=a224_0x3eeed0;for(const _0xd5fe2b of state[_0x405692(0x1cd)]){_0xd5fe2b[_0x405692(0x1e7)](_0x5a51eb);}}[a224_0x3eeed0(0x1ce)](_0x590b10,_0x3f8e26){const _0x335587=a224_0x3eeed0;if(!this[_0x335587(0x1db)](_0x590b10))return;const _0x25a3fe=_0x3f8e26[_0x335587(0x1c1)](_0x4807b1=>typeof _0x4807b1===_0x335587(0x1b7)?_0x4807b1():_0x4807b1),_0x47085c=_0x25a3fe['map'](safeStringify)[_0x335587(0x1bf)]('\x20'),_0x5ba08f={'timestamp':new Date(),'level':_0x590b10,'component':this['component'],'message':_0x47085c};if(!state[_0x335587(0x1d4)]){state['pendingRecords']['length']<MAX_PENDING_RECORDS&&state[_0x335587(0x1d3)][_0x335587(0x1b2)](_0x5ba08f);return;}Logger[_0x335587(0x1e5)](_0x5ba08f);}[a224_0x3eeed0(0x1d1)](..._0x3c7bed){const _0xcb14b3=a224_0x3eeed0;this[_0xcb14b3(0x1ce)](a224_0x51e436[_0xcb14b3(0x1b0)],_0x3c7bed);}[a224_0x3eeed0(0x1e1)](..._0x1ff673){const _0x3f6a8d=a224_0x3eeed0;this['log'](a224_0x51e436[_0x3f6a8d(0x1da)],_0x1ff673);}[a224_0x3eeed0(0x1c6)](..._0x6b9a4d){const _0x2768ba=a224_0x3eeed0;this['log'](a224_0x51e436[_0x2768ba(0x1b6)],_0x6b9a4d);}[a224_0x3eeed0(0x1d2)](..._0x5326c6){const _0x440138=a224_0x3eeed0;this[_0x440138(0x1ce)](a224_0x51e436[_0x440138(0x1c7)],_0x5326c6);}['error'](..._0x2d06f7){const _0x586f3a=a224_0x3eeed0;this['log'](a224_0x51e436[_0x586f3a(0x1d9)],_0x2d06f7);}static[a224_0x3eeed0(0x1d8)](){const _0x206c4d=a224_0x3eeed0;return state[_0x206c4d(0x1c3)];}static[a224_0x3eeed0(0x1c9)](_0x40da69){const _0x325928=a224_0x3eeed0;if(state[_0x325928(0x1c3)])return state[_0x325928(0x1c3)][_0x325928(0x1c9)](_0x40da69);return _0x40da69['timestamp'][_0x325928(0x1df)]()+'\x20['+logLevelToString(_0x40da69[_0x325928(0x1d6)])+_0x325928(0x1c8)+_0x40da69[_0x325928(0x1c0)]+']\x20'+_0x40da69['message'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x412e94,_0x3a3dd3){const _0x59ac62=a225_0x51c1,_0x29cdc7=_0x412e94();while(!![]){try{const _0x1dfd5a=-parseInt(_0x59ac62(0x7d))/0x1*(parseInt(_0x59ac62(0x8b))/0x2)+parseInt(_0x59ac62(0x78))/0x3*(-parseInt(_0x59ac62(0x83))/0x4)+-parseInt(_0x59ac62(0x87))/0x5*(-parseInt(_0x59ac62(0x72))/0x6)+parseInt(_0x59ac62(0x7c))/0x7+-parseInt(_0x59ac62(0x7a))/0x8+-parseInt(_0x59ac62(0x81))/0x9*(-parseInt(_0x59ac62(0x77))/0xa)+parseInt(_0x59ac62(0x76))/0xb;if(_0x1dfd5a===_0x3a3dd3)break;else _0x29cdc7['push'](_0x29cdc7['shift']());}catch(_0xae65af){_0x29cdc7['push'](_0x29cdc7['shift']());}}}(a225_0x29b4,0x8fd68));export var LogLevel;function a225_0x29b4(){const _0x2ef484=['ERROR','padStart','7062616lcAbGG','1609070tdZbsz','21Cuzfhe','getFullYear','6320312jqNNaS','WARN','219821CEmqjL','270EkiSDC','debug','getMonth','abs','36nOiVPw','DEBUG','71320MqHpvQ','toString','INFO','toUpperCase','978955DDCGDp','warn','floor','TRACE','1516yCpbwu','trace','WARNING','error','12EihMuG','getMilliseconds'];a225_0x29b4=function(){return _0x2ef484;};return a225_0x29b4();}(function(_0x453415){const _0x43bd72=a225_0x51c1;_0x453415[_0x453415[_0x43bd72(0x8a)]=-0x2]=_0x43bd72(0x8a),_0x453415[_0x453415[_0x43bd72(0x82)]=-0x1]='DEBUG',_0x453415[_0x453415[_0x43bd72(0x85)]=0x0]=_0x43bd72(0x85),_0x453415[_0x453415[_0x43bd72(0x7b)]=0x1]='WARN',_0x453415[_0x453415[_0x43bd72(0x74)]=0x2]=_0x43bd72(0x74);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x3ce4fe){const _0x491b5e=a225_0x51c1;switch(_0x3ce4fe[_0x491b5e(0x86)]()){case _0x491b5e(0x8a):return LogLevel[_0x491b5e(0x8a)];case'DEBUG':return LogLevel[_0x491b5e(0x82)];case _0x491b5e(0x85):return LogLevel['INFO'];case _0x491b5e(0x7b):case _0x491b5e(0x70):return LogLevel['WARN'];case _0x491b5e(0x74):return LogLevel[_0x491b5e(0x74)];default:return LogLevel[_0x491b5e(0x85)];}}export function logLevelToString(_0x3eea31){const _0x54df59=a225_0x51c1;switch(_0x3eea31){case LogLevel[_0x54df59(0x8a)]:return _0x54df59(0x8c);case LogLevel[_0x54df59(0x82)]:return _0x54df59(0x7e);case LogLevel['INFO']:return'info';case LogLevel['WARN']:return _0x54df59(0x88);case LogLevel['ERROR']:return _0x54df59(0x71);default:return'info';}}function a225_0x51c1(_0x20917f,_0x2e741f){_0x20917f=_0x20917f-0x70;const _0x29b410=a225_0x29b4();let _0x51c164=_0x29b410[_0x20917f];return _0x51c164;}export function formatTimestamp(_0x54cb41){const _0xef8cf4=a225_0x51c1,_0x3b4d1f=_0x54cb41[_0xef8cf4(0x79)](),_0x30d836=(_0x54cb41[_0xef8cf4(0x7f)]()+0x1)['toString']()['padStart'](0x2,'0'),_0x111b62=_0x54cb41['getDate']()[_0xef8cf4(0x84)]()[_0xef8cf4(0x75)](0x2,'0'),_0x183919=_0x54cb41['getHours']()[_0xef8cf4(0x84)]()[_0xef8cf4(0x75)](0x2,'0'),_0x2d7c35=_0x54cb41['getMinutes']()[_0xef8cf4(0x84)]()[_0xef8cf4(0x75)](0x2,'0'),_0x50b4c1=_0x54cb41['getSeconds']()[_0xef8cf4(0x84)]()[_0xef8cf4(0x75)](0x2,'0'),_0x4c4ea5=_0x54cb41[_0xef8cf4(0x73)]()[_0xef8cf4(0x84)]()[_0xef8cf4(0x75)](0x3,'0'),_0x41ed33=-_0x54cb41['getTimezoneOffset'](),_0x18b0f7=Math[_0xef8cf4(0x89)](Math['abs'](_0x41ed33)/0x3c),_0x152229=Math[_0xef8cf4(0x80)](_0x41ed33)%0x3c,_0x53a06d=_0x41ed33>=0x0?'+':'-',_0x348de4=''+_0x53a06d+_0x18b0f7[_0xef8cf4(0x84)]()[_0xef8cf4(0x75)](0x2,'0')+_0x152229[_0xef8cf4(0x84)]()[_0xef8cf4(0x75)](0x2,'0');return _0x3b4d1f+'-'+_0x30d836+'-'+_0x111b62+'\x20'+_0x183919+':'+_0x2d7c35+':'+_0x50b4c1+'.'+_0x4c4ea5+_0x348de4;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x96ab39,_0x3d1251){const _0x4f40c4=a226_0x19c1,_0x5bc0f1=_0x96ab39();while(!![]){try{const _0x797f9f=parseInt(_0x4f40c4(0x77))/0x1+-parseInt(_0x4f40c4(0x7b))/0x2+-parseInt(_0x4f40c4(0x83))/0x3+parseInt(_0x4f40c4(0x7a))/0x4+-parseInt(_0x4f40c4(0x82))/0x5+-parseInt(_0x4f40c4(0x7e))/0x6+parseInt(_0x4f40c4(0x80))/0x7;if(_0x797f9f===_0x3d1251)break;else _0x5bc0f1['push'](_0x5bc0f1['shift']());}catch(_0x499807){_0x5bc0f1['push'](_0x5bc0f1['shift']());}}}(a226_0x367e,0x4c85c));function a226_0x367e(){const _0x14f800=['719272JoLCZz','.\x20Must\x20be\x20a\x20positive\x20number.','isInteger','3365844kQFXPV','.\x20Must\x20be\x20a\x20number.','10049543IecUSh','Invalid\x20limit\x20value:\x20','954185yjaXWW','1851261xYdGCS','Invalid\x20timeout\x20value:\x20','170433QZHbWc','.\x20Must\x20be\x20a\x20positive\x20integer.','.\x20Must\x20be\x20an\x20integer.','1743552GOpQZy'];a226_0x367e=function(){return _0x14f800;};return a226_0x367e();}export function validateLimitOption(_0x4e98a4){const _0x2b254f=a226_0x19c1;if(!Number[_0x2b254f(0x7d)](_0x4e98a4))return{'isValid':![],'error':_0x2b254f(0x81)+_0x4e98a4+_0x2b254f(0x79)};if(_0x4e98a4<=0x0)return{'isValid':![],'error':_0x2b254f(0x81)+_0x4e98a4+_0x2b254f(0x78)};return{'isValid':!![],'value':_0x4e98a4};}function a226_0x19c1(_0x3d32a0,_0x3c877a){_0x3d32a0=_0x3d32a0-0x76;const _0x367ea1=a226_0x367e();let _0x19c149=_0x367ea1[_0x3d32a0];return _0x19c149;}export function validateTimeoutOption(_0x273237,_0x4cc5df=0x1e){const _0x141262=a226_0x19c1;if(_0x273237===undefined)return{'isValid':!![],'value':_0x4cc5df};const _0x45a4b7=typeof _0x273237==='number'?_0x273237:parseFloat(_0x273237);if(isNaN(_0x45a4b7))return{'isValid':![],'error':_0x141262(0x76)+_0x273237+_0x141262(0x7f)};if(_0x45a4b7<=0x0)return{'isValid':![],'error':_0x141262(0x76)+_0x45a4b7+_0x141262(0x7c)};return{'isValid':!![],'value':_0x45a4b7};}
|
package/dist/utils/process.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a227_0x22b8(_0x3ec075,_0xc4d37b){_0x3ec075=_0x3ec075-0xc8;const _0x2f94a3=a227_0x2f94();let _0x22b83d=_0x2f94a3[_0x3ec075];return _0x22b83d;}const a227_0x36b2e3=a227_0x22b8;(function(_0x316095,_0x5216f5){const _0x57e6ec=a227_0x22b8,_0x16fedd=_0x316095();while(!![]){try{const _0x543ca2=-parseInt(_0x57e6ec(0xf7))/0x1*(-parseInt(_0x57e6ec(0xe0))/0x2)+parseInt(_0x57e6ec(0xd9))/0x3+-parseInt(_0x57e6ec(0xe8))/0x4*(-parseInt(_0x57e6ec(0xd5))/0x5)+parseInt(_0x57e6ec(0xe6))/0x6+-parseInt(_0x57e6ec(0xc8))/0x7+parseInt(_0x57e6ec(0xd6))/0x8*(-parseInt(_0x57e6ec(0xcd))/0x9)+parseInt(_0x57e6ec(0xd3))/0xa*(-parseInt(_0x57e6ec(0xfe))/0xb);if(_0x543ca2===_0x5216f5)break;else _0x16fedd['push'](_0x16fedd['shift']());}catch(_0x1541c8){_0x16fedd['push'](_0x16fedd['shift']());}}}(a227_0x2f94,0xd591c));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a227_0x36b2e3(0xeb),a227_0x36b2e3(0xe5),'sh',a227_0x36b2e3(0xd0),a227_0x36b2e3(0xf2),'tcsh',a227_0x36b2e3(0xd8),a227_0x36b2e3(0xfd),a227_0x36b2e3(0x101),'powershell','nu',a227_0x36b2e3(0xcb),a227_0x36b2e3(0xfa),a227_0x36b2e3(0xdc)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a227_0x36b2e3(0x100),a227_0x36b2e3(0xef),a227_0x36b2e3(0xfb),a227_0x36b2e3(0xd7),a227_0x36b2e3(0xf9)]);function getProcessInfoWindows(_0x3a1856){const _0x4c7061=a227_0x36b2e3;try{if(!Number['isInteger'](_0x3a1856)||_0x3a1856<=0x0)return null;const _0x3d647d='Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId='+_0x3a1856+'\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}',_0x28d8f4=execSync(_0x4c7061(0xf5)+_0x3d647d+'\x22',{'encoding':_0x4c7061(0x104),'windowsHide':!![],'stdio':[_0x4c7061(0xcf),_0x4c7061(0xcf),'pipe']})[_0x4c7061(0xca)]();if(!_0x28d8f4)return null;const [_0x4400ff,..._0x1b2446]=_0x28d8f4[_0x4c7061(0xd2)](','),_0x3d45f4=parseInt(_0x4400ff,0xa),_0x1cc9b6=_0x1b2446[_0x4c7061(0x106)](',')[_0x4c7061(0xca)]();if(isNaN(_0x3d45f4)||!_0x1cc9b6)return null;return{'pid':_0x3a1856,'ppid':_0x3d45f4,'comm':_0x1cc9b6[_0x4c7061(0xea)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x295450){const _0x285f88=a227_0x36b2e3;try{const _0x42f046=0x400000;if(!Number['isInteger'](_0x295450)||_0x295450<=0x0||_0x295450>_0x42f046)return null;const _0x348908=execSync(_0x285f88(0xf4)+_0x295450+'\x20-o\x20ppid=,comm=',{'encoding':_0x285f88(0x104),'stdio':_0x285f88(0xcf)})[_0x285f88(0xca)](),[_0x642c86,..._0x52d64e]=_0x348908['split'](/\s+/),_0x49977f=parseInt(_0x642c86,0xa),_0x1ddc32=_0x52d64e['join']('\x20');if(isNaN(_0x49977f))return null;return{'pid':_0x295450,'ppid':_0x49977f,'comm':_0x1ddc32};}catch{return null;}}function getProcessInfo(_0x11374d){const _0x3c65ce=a227_0x36b2e3;if(process[_0x3c65ce(0xec)]===_0x3c65ce(0xe2))return getProcessInfoWindows(_0x11374d);return getProcessInfoPosix(_0x11374d);}function getBasename(_0x5b6b08){const _0x37b639=a227_0x36b2e3;return _0x5b6b08['replace'](/^-/,'')[_0x37b639(0xd2)]('/')[_0x37b639(0xd4)]()?.[_0x37b639(0xdf)]()||'';}function isShell(_0x4fb6d2){const _0x1507ea=a227_0x36b2e3;return SHELL_NAMES[_0x1507ea(0xf1)](getBasename(_0x4fb6d2));}function isEphemeralShellSpawner(_0x3c32b3){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x3c32b3));}let cachedShellPID;function findShellPID(){const _0x43ccf7=a227_0x36b2e3;if(process[_0x43ccf7(0xfc)]===undefined)return process['pid'];let _0x6c155f=process[_0x43ccf7(0xfc)];const _0x47bae4=0xa;let _0x3fd0cd=0x0;while(_0x3fd0cd<_0x47bae4){const _0x299cea=getProcessInfo(_0x6c155f);if(!_0x299cea)break;if(isShell(_0x299cea[_0x43ccf7(0xf8)])){const _0x4e54c=getProcessInfo(_0x299cea[_0x43ccf7(0xfc)]);if(_0x4e54c&&isEphemeralShellSpawner(_0x4e54c[_0x43ccf7(0xf8)])){_0x6c155f=_0x299cea[_0x43ccf7(0xfc)],_0x3fd0cd++;continue;}return _0x299cea[_0x43ccf7(0x105)];}if(_0x299cea[_0x43ccf7(0xfc)]===0x0||_0x299cea[_0x43ccf7(0xfc)]===0x1){if(isShell(_0x299cea[_0x43ccf7(0xf8)]))return _0x299cea['pid'];break;}_0x6c155f=_0x299cea[_0x43ccf7(0xfc)],_0x3fd0cd++;}return process[_0x43ccf7(0xfc)]!==undefined?process[_0x43ccf7(0xfc)]:process[_0x43ccf7(0x105)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x57d6c7){const _0x1c7717=a227_0x36b2e3;if(!Number[_0x1c7717(0xe9)](_0x57d6c7)||_0x57d6c7<=0x0)return![];try{return process[_0x1c7717(0xd1)](_0x57d6c7,0x0),!![];}catch{return![];}}export function openBrowser(_0x5d523c){const _0x108179=a227_0x36b2e3;let _0x2f7c26;try{_0x2f7c26=new URL(_0x5d523c);}catch{throw new Error(_0x108179(0xf6)+_0x5d523c);}if(_0x2f7c26[_0x108179(0xda)]!==_0x108179(0xe1)&&_0x2f7c26[_0x108179(0xda)]!=='https:')throw new Error('Unsupported\x20protocol:\x20'+_0x2f7c26[_0x108179(0xda)]);const _0x4de6cc=_0x2f7c26[_0x108179(0xc9)],_0x17be03=process[_0x108179(0xec)];if(_0x17be03===_0x108179(0xe2))spawn(_0x108179(0xf0),['/c','start','',_0x4de6cc],{'detached':!![],'stdio':_0x108179(0xe7)})[_0x108179(0xe3)]();else{const _0x5eef46=_0x17be03===_0x108179(0xde)?'open':_0x108179(0xdd);spawn(_0x5eef46,[_0x4de6cc],{'detached':!![],'stdio':_0x108179(0xe7)})[_0x108179(0xe3)]();}}export function isWindows(){const _0x37243d=a227_0x36b2e3;return process[_0x37243d(0xec)]===_0x37243d(0xe2);}export function getCrossSpawnOptions(_0x500148){return{..._0x500148??{},'shell':isWindows()};}function a227_0x2f94(){const _0x378422=['xdg-open','darwin','toLowerCase','30FqNfCp','http:','win32','unref','stdout','zsh','2204034irokav','ignore','980XDttpD','isInteger','replace','bash','platform','test','stderr','code','cmd.exe','has','ksh','which','ps\x20-p\x20','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','Invalid\x20URL:\x20','3117wTqDIr','comm','treasure\x20studio','elvish','cursor','ppid','dash','7882391PEqvjq','data','claude','pwsh','where.exe','error','utf-8','pid','join','1161384jVFdPl','href','trim','ion','exit','27NeNiuX','toString','pipe','fish','kill','split','20riDRmU','pop','32890gykMNi','1943896GLqHHs','electron','csh','3531333XnvCOt','protocol','map','xonsh'];a227_0x2f94=function(){return _0x378422;};return a227_0x2f94();}export function escapeWindowsArg(_0x2a823b){const _0x38a47e=a227_0x36b2e3;if(!/[ \t"&|<>^%!`\r\n]/[_0x38a47e(0xed)](_0x2a823b))return _0x2a823b;const _0x545bbb=_0x2a823b['replace'](/"/g,'\x22\x22');return'\x22'+_0x545bbb+'\x22';}export function crossSpawn(_0x4f49e9,_0x1c362e,_0x477691){const _0x3f6eb9=a227_0x36b2e3;if(isWindows()){const _0x5ce355=escapeWindowsArg(_0x4f49e9),_0x174931=_0x1c362e[_0x3f6eb9(0xdb)](escapeWindowsArg),_0x5e463e=[_0x5ce355,..._0x174931][_0x3f6eb9(0x106)]('\x20');return spawn(_0x5e463e,[],{..._0x477691,'shell':!![]});}return spawn(_0x4f49e9,_0x1c362e,{..._0x477691,'shell':![]});}export function gracefulExit(_0xfc870d=0x0){const _0x4b4d79=a227_0x36b2e3;isWindows()?setTimeout(()=>process[_0x4b4d79(0xcc)](_0xfc870d),0x32):process['exit'](_0xfc870d);}export function findExecutable(_0x5d0b42,_0x557951=0x1388){return new Promise(_0x1f0488=>{const _0x26f023=a227_0x22b8,_0x3e25aa=isWindows()?_0x26f023(0x102):_0x26f023(0xf3);let _0x2850d5=![];const _0x41732d=crossSpawn(_0x3e25aa,[_0x5d0b42],{'stdio':_0x26f023(0xcf),'shell':isWindows()}),_0x69a207=setTimeout(()=>{const _0xd059a5=_0x26f023;!_0x2850d5&&(_0x2850d5=!![],_0x41732d[_0xd059a5(0xd1)](),_0x1f0488(null));},_0x557951);let _0x591595='';_0x41732d[_0x26f023(0xe4)]?.['on'](_0x26f023(0xff),_0x5f4a01=>{const _0x45ca9c=_0x26f023;_0x591595+=_0x5f4a01[_0x45ca9c(0xce)]();}),_0x41732d[_0x26f023(0xee)]?.['on'](_0x26f023(0xff),()=>{}),_0x41732d['on'](_0x26f023(0xcc),_0x12c0da=>{if(_0x2850d5)return;_0x2850d5=!![],clearTimeout(_0x69a207);if(_0x12c0da===0x0&&_0x591595['trim']()){const _0x3c242f=_0x591595['trim']()['split'](/\r?\n/)[0x0];_0x1f0488(_0x3c242f);}else _0x1f0488(null);}),_0x41732d['on'](_0x26f023(0x103),()=>{if(_0x2850d5)return;_0x2850d5=!![],clearTimeout(_0x69a207),_0x1f0488(null);});});}
|
package/dist/utils/prompt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x20849f,_0x2e335d){const _0x32f519=a228_0x3f61,_0xceb4af=_0x20849f();while(!![]){try{const _0x33203f=-parseInt(_0x32f519(0x168))/0x1+-parseInt(_0x32f519(0x164))/0x2*(parseInt(_0x32f519(0x161))/0x3)+parseInt(_0x32f519(0x15d))/0x4+-parseInt(_0x32f519(0x159))/0x5+parseInt(_0x32f519(0x162))/0x6*(parseInt(_0x32f519(0x169))/0x7)+parseInt(_0x32f519(0x15c))/0x8+parseInt(_0x32f519(0x15a))/0x9*(parseInt(_0x32f519(0x15f))/0xa);if(_0x33203f===_0x2e335d)break;else _0xceb4af['push'](_0xceb4af['shift']());}catch(_0xeaf11c){_0xceb4af['push'](_0xceb4af['shift']());}}}(a228_0x1a2c,0x5f9c6));import*as a228_0x1faf42 from'readline';function a228_0x1a2c(){const _0x3ae2f4=['\x20(y/N):\x20','pause','write','data','2603165EqVMKx','166473ZzUbWs','\x20[y/N]\x20','4281672jUnLGa','1753244sUEGpt','createInterface','30cltyQN','toLowerCase','3MqnGuY','73572btqwlK','stdout','83374bMlwVO','stdin','question','setRawMode','357095CRTtOk','161FnHcxj','stderr'];a228_0x1a2c=function(){return _0x3ae2f4;};return a228_0x1a2c();}import{gracefulExit}from'./process.js';export function isInteractive(){const _0x4e57f9=a228_0x3f61;return process[_0x4e57f9(0x165)]['isTTY']===!![];}function a228_0x3f61(_0x1f72b3,_0x5a4126){_0x1f72b3=_0x1f72b3-0x159;const _0x1a2cff=a228_0x1a2c();let _0x3f6179=_0x1a2cff[_0x1f72b3];return _0x3f6179;}export async function confirm(_0xbc3aad){const _0x3dc6a8=a228_0x3f61,_0x5ab68a=a228_0x1faf42[_0x3dc6a8(0x15e)]({'input':process['stdin'],'output':process[_0x3dc6a8(0x163)]});return new Promise(_0x5171d9=>{const _0x128f57=_0x3dc6a8;_0x5ab68a[_0x128f57(0x166)](_0xbc3aad+_0x128f57(0x16b),_0x1f23c=>{const _0x58b133=_0x128f57;_0x5ab68a['close'](),_0x5171d9(_0x1f23c[_0x58b133(0x160)]()==='y'||_0x1f23c[_0x58b133(0x160)]()==='yes');});});}export async function confirmKey(_0x3b975e){const _0x4641cf=a228_0x3f61;if(!process[_0x4641cf(0x165)]['isTTY'])return![];return process[_0x4641cf(0x16a)][_0x4641cf(0x16d)](_0x3b975e+_0x4641cf(0x15b)),new Promise(_0xb263e7=>{const _0x102fa3=_0x4641cf,_0x3df97d=process[_0x102fa3(0x165)];_0x3df97d[_0x102fa3(0x167)](!![]),_0x3df97d['resume'](),_0x3df97d['setEncoding']('utf8');const _0x1eb86a=_0x230eba=>{const _0x37614b=_0x102fa3;_0x3df97d['setRawMode'](![]),_0x3df97d[_0x37614b(0x16c)](),_0x3df97d['removeListener'](_0x37614b(0x16e),_0x1eb86a);if(_0x230eba==='\x1b'){process['stderr'][_0x37614b(0x16d)]('\x0a'),_0xb263e7(![]);return;}_0x230eba==='\x03'&&(process['stderr'][_0x37614b(0x16d)]('\x0a'),gracefulExit(0x82));if(_0x230eba['toLowerCase']()==='y'){process[_0x37614b(0x16a)][_0x37614b(0x16d)]('y\x0a'),_0xb263e7(!![]);return;}process[_0x37614b(0x16a)][_0x37614b(0x16d)]('\x0a'),_0xb263e7(![]);};_0x3df97d['on'](_0x102fa3(0x16e),_0x1eb86a);});}
|
package/dist/utils/spinner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x8f3576,_0x55607c){const _0x25ac2a=a229_0x2988,_0xb09fe4=_0x8f3576();while(!![]){try{const _0xe89a83=parseInt(_0x25ac2a(0x1ec))/0x1+-parseInt(_0x25ac2a(0x1d0))/0x2+parseInt(_0x25ac2a(0x1d9))/0x3*(parseInt(_0x25ac2a(0x1e2))/0x4)+parseInt(_0x25ac2a(0x1ea))/0x5*(-parseInt(_0x25ac2a(0x1d2))/0x6)+-parseInt(_0x25ac2a(0x1eb))/0x7*(-parseInt(_0x25ac2a(0x1d4))/0x8)+parseInt(_0x25ac2a(0x1e0))/0x9*(-parseInt(_0x25ac2a(0x1ce))/0xa)+parseInt(_0x25ac2a(0x1df))/0xb;if(_0xe89a83===_0x55607c)break;else _0xb09fe4['push'](_0xb09fe4['shift']());}catch(_0x54a106){_0xb09fe4['push'](_0xb09fe4['shift']());}}}(a229_0x191b,0x83ce8));function a229_0x2988(_0x534e74,_0x3e0860){_0x534e74=_0x534e74-0x1ce;const _0x191b27=a229_0x191b();let _0x298806=_0x191b27[_0x534e74];return _0x298806;}import a229_0x59dea0 from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x212d3f,_0x3d5eb8={}){const _0x30f25d=a229_0x2988,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x3d5eb8;return a229_0x59dea0({'text':_0x212d3f,'color':_0x30f25d(0x1dc),'stream':process[_0x30f25d(0x1da)],'isEnabled':forceEnabled||process['stderr'][_0x30f25d(0x1cf)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x34c25c,_0x2475c3,_0x12aa84={}){const _0x558d0a=a229_0x2988,_0x11427=_0x12aa84['clock']??(()=>Date[_0x558d0a(0x1d6)]()),_0x911f21=createCommandSpinner(_0x34c25c,_0x12aa84);_0x911f21[_0x558d0a(0x1d8)]();const _0x12fab9=_0x11427();try{const _0xd4912e=await _0x2475c3(),_0x34b54c=_0x11427()-_0x12fab9;return _0x911f21[_0x558d0a(0x1dd)](),{'data':_0xd4912e,'elapsedMs':_0x34b54c};}catch(_0x1eaa61){_0x911f21[_0x558d0a(0x1dd)]();throw _0x1eaa61;}}export async function withProgressSpinner(_0x465d04,_0x17e2e6,_0x374aa9={}){const _0x16fbd9=a229_0x2988,_0x3ce23b=_0x374aa9[_0x16fbd9(0x1e3)]??(()=>Date[_0x16fbd9(0x1d6)]()),_0x23cbe3=_0x374aa9[_0x16fbd9(0x1e9)]??setInterval,_0x2d975f=createCommandSpinner(_0x465d04,_0x374aa9);_0x2d975f['start']();const _0x46cfd1=_0x3ce23b(),_0x37d28a=_0x465d04[_0x16fbd9(0x1d1)](_0x16fbd9(0x1de),'')[_0x16fbd9(0x1d5)]()||_0x16fbd9(0x1e6),_0x3f4f3b={};let _0x10586f=_0x465d04;const _0x1f5f04=()=>{const _0x2d245f=_0x16fbd9;if(!_0x2d975f[_0x2d245f(0x1d7)])return;const _0x14abbb=_0x3ce23b()-_0x46cfd1,_0x3f94f9=formatElapsed(_0x14abbb),_0x5ed99b=_0x3f4f3b[_0x2d245f(0x1e1)]?.[_0x2d245f(0x1d5)]()||_0x37d28a,_0x5b8434=_0x3f4f3b[_0x2d245f(0x1e5)]?_0x2d245f(0x1e4)+_0x3f4f3b[_0x2d245f(0x1e5)]+']':'',_0x1b086d=_0x3f4f3b['extra']?'\x20'+_0x3f4f3b['extra']:'',_0x1d5209=_0x5ed99b+'\x20'+_0x3f94f9+_0x1b086d+_0x5b8434;_0x1d5209!==_0x10586f&&_0x1d5209[_0x2d245f(0x1d5)]()&&(_0x2d975f[_0x2d245f(0x1e8)]=_0x1d5209,_0x10586f=_0x1d5209);},_0x1d0dac=_0x23cbe3(()=>{_0x1f5f04();},0x3e8),_0x4b5011={'setPhase':_0x3c2f96=>{const _0x41af61=_0x16fbd9;_0x3f4f3b[_0x41af61(0x1e1)]=_0x3c2f96;const _0x1ad37f=_0x3c2f96?.['trim']()||_0x37d28a,_0x516bb9=_0x3ce23b()-_0x46cfd1,_0x39eb8f=formatElapsed(_0x516bb9),_0x5c487c=_0x3f4f3b[_0x41af61(0x1e5)]?_0x41af61(0x1e4)+_0x3f4f3b['jobId']+']':'',_0x2dee6c=_0x3f4f3b[_0x41af61(0x1e7)]?'\x20'+_0x3f4f3b[_0x41af61(0x1e7)]:'',_0x47c7ee=_0x1ad37f+'\x20'+_0x39eb8f+_0x2dee6c+_0x5c487c;_0x2d975f[_0x41af61(0x1d7)]&&_0x47c7ee[_0x41af61(0x1d5)]()&&(_0x2d975f[_0x41af61(0x1e8)]=_0x47c7ee,_0x10586f=_0x47c7ee);},'setJobId':_0x4cd6e7=>{const _0x2a86db=_0x16fbd9;_0x3f4f3b[_0x2a86db(0x1e5)]=_0x4cd6e7,_0x1f5f04();},'setExtra':_0x21353a=>{const _0x178f23=_0x16fbd9;_0x3f4f3b[_0x178f23(0x1e7)]=_0x21353a,_0x1f5f04();}};_0x1f5f04();try{const _0x1f2cbd=await _0x17e2e6(_0x4b5011),_0x3457d8=_0x3ce23b()-_0x46cfd1;return{'data':_0x1f2cbd,'elapsedMs':_0x3457d8};}finally{clearInterval(_0x1d0dac),_0x2d975f[_0x16fbd9(0x1dd)]();}}export function formatElapsed(_0x6d7765){const _0x301376=a229_0x2988,_0x53a0f3=Math[_0x301376(0x1d3)](_0x6d7765/0x3e8);if(_0x53a0f3<0x3c)return(_0x6d7765/0x3e8)[_0x301376(0x1db)](0x1)+'s';const _0x35a2b6=Math[_0x301376(0x1d3)](_0x53a0f3/0x3c),_0x5619f9=_0x53a0f3%0x3c;if(_0x35a2b6<0x3c)return _0x35a2b6+'m\x20'+_0x5619f9+'s';const _0x45b4ef=Math[_0x301376(0x1d3)](_0x35a2b6/0x3c),_0x4a05b7=_0x35a2b6%0x3c;return _0x45b4ef+'h\x20'+_0x4a05b7+'m';}function a229_0x191b(){const _0x1fc7f4=['stop','...','7895646IpOtKX','10323fRvtGg','phase','60eNIjyX','clock','\x20[Job\x20ID:\x20','jobId','Processing','extra','text','intervalFactory','446815qfkeHw','2968phBsTn','119452pSPxIO','2330XJpDfu','isTTY','935176EmTjiX','replace','42DqPqGe','floor','1864uSNclY','trim','now','isSpinning','start','192846htvhwu','stderr','toFixed','cyan'];a229_0x191b=function(){return _0x1fc7f4;};return a229_0x191b();}
|
package/dist/utils/sse-parser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a230_0x58bb(_0x1c002b,_0x2a9a66){_0x1c002b=_0x1c002b-0xc4;const _0x16c49b=a230_0x16c4();let _0x58bb1b=_0x16c49b[_0x1c002b];return _0x58bb1b;}(function(_0x2731df,_0x437cae){const _0x34358e=a230_0x58bb,_0x41840e=_0x2731df();while(!![]){try{const _0x53f02c=parseInt(_0x34358e(0xd3))/0x1*(-parseInt(_0x34358e(0xcd))/0x2)+parseInt(_0x34358e(0xc9))/0x3*(-parseInt(_0x34358e(0xc5))/0x4)+-parseInt(_0x34358e(0xda))/0x5+parseInt(_0x34358e(0xc6))/0x6*(-parseInt(_0x34358e(0xca))/0x7)+parseInt(_0x34358e(0xc4))/0x8+parseInt(_0x34358e(0xcc))/0x9+parseInt(_0x34358e(0xd6))/0xa;if(_0x53f02c===_0x437cae)break;else _0x41840e['push'](_0x41840e['shift']());}catch(_0xd3fb7a){_0x41840e['push'](_0x41840e['shift']());}}}(a230_0x16c4,0x44b71));export async function*parseSSEStream(_0x54c9a3,_0x2a1498){const _0x564217=a230_0x58bb;if(!_0x54c9a3[_0x564217(0xc7)])throw new Error('Response\x20body\x20is\x20null');const _0x342047=_0x54c9a3[_0x564217(0xc7)][_0x564217(0xd7)](),_0x5d4501=new TextDecoder();let _0x266390='',_0x3ec2ce={};try{while(!![]){const {done:_0x1cd7bf,value:_0x225150}=await _0x342047[_0x564217(0xd9)]();if(_0x1cd7bf){if(_0x3ec2ce['data']){_0x2a1498?.[_0x564217(0xcf)](_0x564217(0xc8)+_0x3ec2ce[_0x564217(0xd8)]);const _0xe95130=parseSSEData(_0x3ec2ce[_0x564217(0xd8)]);yield _0xe95130;}break;}_0x266390+=_0x5d4501[_0x564217(0xd1)](_0x225150,{'stream':!![]});const _0x26bf33=_0x266390[_0x564217(0xd4)]('\x0a');_0x266390=_0x26bf33['pop']()||'';for(const _0x129064 of _0x26bf33){if(_0x129064[_0x564217(0xd5)]()===''){if(_0x3ec2ce[_0x564217(0xd8)]){_0x2a1498?.[_0x564217(0xcf)](_0x564217(0xc8)+_0x3ec2ce[_0x564217(0xd8)]);const _0x35bd2d=parseSSEData(_0x3ec2ce[_0x564217(0xd8)]);yield _0x35bd2d,_0x3ec2ce={};}continue;}if(_0x129064['startsWith'](':'))continue;const _0x1474ec=_0x129064[_0x564217(0xcb)](':');if(_0x1474ec===-0x1)continue;const _0x2c864f=_0x129064[_0x564217(0xdb)](0x0,_0x1474ec);let _0x270049=_0x129064[_0x564217(0xdb)](_0x1474ec+0x1);_0x270049['startsWith']('\x20')&&(_0x270049=_0x270049[_0x564217(0xdb)](0x1));switch(_0x2c864f){case _0x564217(0xdc):_0x3ec2ce[_0x564217(0xdc)]=_0x270049;break;case _0x564217(0xd8):_0x3ec2ce[_0x564217(0xd8)]=_0x3ec2ce[_0x564217(0xd8)]?_0x3ec2ce['data']+'\x0a'+_0x270049:_0x270049;break;case'id':_0x3ec2ce['id']=_0x270049;break;}}}}finally{_0x342047[_0x564217(0xce)]();}}function parseSSEData(_0x5371c8){const _0x56f8a0=a230_0x58bb;try{return JSON[_0x56f8a0(0xd2)](_0x5371c8);}catch(_0x11a7cf){throw new Error(_0x56f8a0(0xd0)+_0x5371c8,{'cause':_0x11a7cf});}}function a230_0x16c4(){const _0x76b52b=['body','[LLM\x20API\x20SSE]\x20','6hPbKLL','629713CGAdiH','indexOf','2379159zQtSro','140BBSrQt','releaseLock','debug','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','decode','parse','3467WIijdY','split','trim','7899600tDEFEB','getReader','data','read','1727785oNdRgm','slice','event','2999776YUPfLQ','219568NURnVK','30noohRS'];a230_0x16c4=function(){return _0x76b52b;};return a230_0x16c4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ffbb0,_0x5d1132){const _0x3f3201=a231_0x5f3a,_0x41b431=_0x2ffbb0();while(!![]){try{const _0x74c9c2=parseInt(_0x3f3201(0x97))/0x1+-parseInt(_0x3f3201(0x9b))/0x2*(parseInt(_0x3f3201(0x92))/0x3)+-parseInt(_0x3f3201(0x98))/0x4+-parseInt(_0x3f3201(0x95))/0x5+-parseInt(_0x3f3201(0xa2))/0x6*(-parseInt(_0x3f3201(0x8f))/0x7)+parseInt(_0x3f3201(0xa1))/0x8+parseInt(_0x3f3201(0xa0))/0x9;if(_0x74c9c2===_0x5d1132)break;else _0x41b431['push'](_0x41b431['shift']());}catch(_0x3b8a02){_0x41b431['push'](_0x41b431['shift']());}}}(a231_0x3034,0xb958f));import a231_0x383749 from'string-width';function a231_0x5f3a(_0x34884f,_0x250ff4){_0x34884f=_0x34884f-0x8e;const _0x3034dd=a231_0x3034();let _0x5f3a9b=_0x3034dd[_0x34884f];return _0x5f3a9b;}export function stringWidth(_0x41dc71){return a231_0x383749(_0x41dc71);}function a231_0x3034(){const _0xbaf4d0=['substring','20266920yORrYB','1103464bnmNwg','30YzkchG','\x5c$&','120596zWUhaL','repeat','unknown','826521zEXksh','slice','trim','6381195ANuPzg','floor','924533vBtKJY','4358228XBFOLz','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','toLowerCase','2wZvGvL','replace','length','test'];a231_0x3034=function(){return _0xbaf4d0;};return a231_0x3034();}export function padEnd(_0x36d2a0,_0x59e1f0){const _0x3112f5=a231_0x5f3a,_0x2990ee=stringWidth(_0x36d2a0);if(_0x2990ee>=_0x59e1f0)return _0x36d2a0;return _0x36d2a0+'\x20'[_0x3112f5(0x90)](_0x59e1f0-_0x2990ee);}export function padStart(_0x3ce64c,_0x59ab14){const _0x122382=a231_0x5f3a,_0x316151=stringWidth(_0x3ce64c);if(_0x316151>=_0x59ab14)return _0x3ce64c;return'\x20'[_0x122382(0x90)](_0x59ab14-_0x316151)+_0x3ce64c;}export function centerAlign(_0x2edbc,_0xd7c32b){const _0x47af69=a231_0x5f3a,_0xaf7e52=stringWidth(_0x2edbc);if(_0xaf7e52>_0xd7c32b){if(_0xd7c32b<=0x1)return'…'[_0x47af69(0x9f)](0x0,_0xd7c32b);let _0x1dd268=_0x2edbc;while(stringWidth(_0x1dd268+'…')>_0xd7c32b){_0x1dd268=_0x1dd268[_0x47af69(0x93)](0x0,-0x1);}return _0x1dd268+'…';}if(_0xaf7e52===_0xd7c32b)return _0x2edbc;const _0x2e7766=_0xd7c32b-_0xaf7e52,_0x5e1902=Math[_0x47af69(0x96)](_0x2e7766/0x2),_0x505b10=_0x2e7766-_0x5e1902;return'\x20'[_0x47af69(0x90)](_0x5e1902)+_0x2edbc+'\x20'[_0x47af69(0x90)](_0x505b10);}export function escapeStringLiteral(_0x15d14d){const _0x14b7da=a231_0x5f3a;if(!_0x15d14d||_0x15d14d[_0x14b7da(0x94)]()[_0x14b7da(0x9d)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x2340b7=_0x15d14d[_0x14b7da(0x9c)](/'/g,'\x27\x27');return'\x27'+_0x2340b7+'\x27';}export function globToLike(_0x2d9f5f){const _0x25abc5=a231_0x5f3a;let _0x193f26=_0x2d9f5f[_0x25abc5(0x9c)](/\\/g,'\x5c\x5c')[_0x25abc5(0x9c)](/%/g,'\x5c%')[_0x25abc5(0x9c)](/_/g,'\x5c_');return _0x193f26=_0x193f26[_0x25abc5(0x9c)](/\*/g,'%')[_0x25abc5(0x9c)](/\?/g,'_'),_0x193f26;}export function buildLikePattern(_0x2bb2b8){const _0x2893b4=a231_0x5f3a;if(!_0x2bb2b8||_0x2bb2b8['trim']()[_0x2893b4(0x9d)]===0x0)throw new Error(_0x2893b4(0x99));const _0x135d66=globToLike(_0x2bb2b8),_0x465072=_0x135d66[_0x2893b4(0x9c)](/'/g,'\x27\x27');return'\x27'+_0x465072+'\x27';}export function matchGlobPattern(_0x1812d7,_0x145237){const _0x5d8706=a231_0x5f3a,_0x3b0c66=_0x145237[_0x5d8706(0x9c)](/[.+^${}()|[\]\\]/g,_0x5d8706(0x8e))[_0x5d8706(0x9c)](/\*/g,'.*')[_0x5d8706(0x9c)](/\?/g,'.'),_0x57d73d=new RegExp('^'+_0x3b0c66+'$');return _0x57d73d[_0x5d8706(0x9e)](_0x1812d7);}export function getSanitizedUsername(){const _0x216476=a231_0x5f3a,_0x45c8b9=process.env.USER||process.env.USERNAME||_0x216476(0x91);return _0x45c8b9['replace'](/[^a-zA-Z0-9]/g,'')[_0x216476(0x9a)]();}export function generateRandomHex(){const _0x42457c=a231_0x5f3a,_0x532628=Math[_0x42457c(0x96)](Math['random']()*0xfffff);return _0x532628['toString'](0x10)['padStart'](0x5,'0');}export function sanitizeFileName(_0x40fcd9){const _0x469877=a231_0x5f3a;return _0x40fcd9[_0x469877(0x9a)]()['replace'](/[/\\:*?"<>|]/g,'-')[_0x469877(0x9c)](/\s+/g,'-')[_0x469877(0x9c)](/-+/g,'-')[_0x469877(0x9c)](/^-|-$/g,'');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xcfc3f1,_0x3c33a2){const _0x226e8a=a232_0x35ef,_0x5ea76d=_0xcfc3f1();while(!![]){try{const _0x488534=-parseInt(_0x226e8a(0x1e1))/0x1*(parseInt(_0x226e8a(0x1f4))/0x2)+parseInt(_0x226e8a(0x1f1))/0x3+-parseInt(_0x226e8a(0x1de))/0x4+-parseInt(_0x226e8a(0x1f3))/0x5*(-parseInt(_0x226e8a(0x1e0))/0x6)+-parseInt(_0x226e8a(0x1dc))/0x7*(parseInt(_0x226e8a(0x1e6))/0x8)+parseInt(_0x226e8a(0x1f2))/0x9*(parseInt(_0x226e8a(0x1ee))/0xa)+parseInt(_0x226e8a(0x1e3))/0xb;if(_0x488534===_0x3c33a2)break;else _0x5ea76d['push'](_0x5ea76d['shift']());}catch(_0x2a10c3){_0x5ea76d['push'](_0x5ea76d['shift']());}}}(a232_0x3d7d,0x9e067));function hasWildcard(_0x387420){const _0x5943b2=a232_0x35ef;return _0x387420[_0x5943b2(0x1e4)]('*')||_0x387420[_0x5943b2(0x1e4)]('?');}export function parseTableReference(_0x2290ee){const _0x395db3=a232_0x35ef;if(!_0x2290ee||_0x2290ee[_0x395db3(0x1e5)]()[_0x395db3(0x1e9)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x56ef6d=_0x2290ee[_0x395db3(0x1e5)](),_0x383280={'original':_0x56ef6d},_0x5c4cad=_0x56ef6d['split']('.');if(_0x5c4cad[_0x395db3(0x1e9)]===0x1){const _0x2ff917=_0x5c4cad[0x0];if(!_0x2ff917)throw new Error(_0x395db3(0x1ef));_0x383280[_0x395db3(0x1ea)]=_0x2ff917;}else{if(_0x5c4cad[_0x395db3(0x1e9)]===0x2){const [_0x1f522a,_0x290c29]=_0x5c4cad;if(!_0x1f522a)throw new Error(_0x395db3(0x1df));if(!_0x290c29)throw new Error(_0x395db3(0x1e7));_0x383280[_0x395db3(0x1e8)]=_0x1f522a,_0x383280[_0x395db3(0x1ea)]=_0x290c29;}else{if(_0x5c4cad['length']===0x3){const [_0x27d5f7,_0x2e1600,_0x3ec055]=_0x5c4cad;if(!_0x27d5f7||!_0x2e1600||!_0x3ec055)throw new Error(_0x395db3(0x1ed));_0x383280[_0x395db3(0x1f0)]=_0x27d5f7,_0x383280['database']=_0x2e1600,_0x383280[_0x395db3(0x1ea)]=_0x3ec055;}else throw new Error(_0x395db3(0x1db));}}return _0x383280;}export function formatTableReference(_0x18e1a0){const _0x11f3c4=a232_0x35ef,_0x4d3399=[];return _0x18e1a0[_0x11f3c4(0x1f0)]&&_0x4d3399['push'](_0x18e1a0[_0x11f3c4(0x1f0)]),_0x18e1a0[_0x11f3c4(0x1e8)]&&_0x4d3399[_0x11f3c4(0x1dd)](_0x18e1a0['database']),_0x18e1a0[_0x11f3c4(0x1ea)]&&_0x4d3399[_0x11f3c4(0x1dd)](_0x18e1a0[_0x11f3c4(0x1ea)]),_0x4d3399[_0x11f3c4(0x1ec)]('.');}export function validateTableListReference(_0x5aa954){return undefined;}export function validateTableDescribeReference(_0x559829){const _0x9366cb=a232_0x35ef;if(!_0x559829[_0x9366cb(0x1ea)])return _0x9366cb(0x1eb);if(_0x559829[_0x9366cb(0x1e8)]&&hasWildcard(_0x559829['database']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x559829[_0x9366cb(0x1ea)]))return _0x9366cb(0x1e2);return undefined;}function a232_0x35ef(_0x2708ff,_0x3d68b7){_0x2708ff=_0x2708ff-0x1db;const _0x3d7d46=a232_0x3d7d();let _0x35efd2=_0x3d7d46[_0x2708ff];return _0x35efd2;}function a232_0x3d7d(){const _0x35fba5=['push','1053060VQqDHt','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','198bitehx','7EiAUFd','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','5056667ueYmmr','includes','trim','40pRKKKz','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','database','length','table','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','join','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','890KHmKOU','Pattern\x20cannot\x20be\x20just\x20a\x20dot','catalog','2914812MktDjD','21249hCqEIG','70350ZKrfXb','251734VLpUXM','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','439789kUYpOB'];a232_0x3d7d=function(){return _0x35fba5;};return a232_0x3d7d();}
|
package/dist/utils/tdx-logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a233_0x112b3c=a233_0x4867;(function(_0x4f4d6a,_0x1c09eb){const _0x2aef77=a233_0x4867,_0x33fbfb=_0x4f4d6a();while(!![]){try{const _0x104c13=parseInt(_0x2aef77(0x11b))/0x1+-parseInt(_0x2aef77(0x10e))/0x2*(parseInt(_0x2aef77(0x116))/0x3)+-parseInt(_0x2aef77(0x125))/0x4*(parseInt(_0x2aef77(0x110))/0x5)+parseInt(_0x2aef77(0x111))/0x6*(-parseInt(_0x2aef77(0x117))/0x7)+parseInt(_0x2aef77(0x11a))/0x8*(parseInt(_0x2aef77(0x120))/0x9)+-parseInt(_0x2aef77(0x113))/0xa+parseInt(_0x2aef77(0x10d))/0xb;if(_0x104c13===_0x1c09eb)break;else _0x33fbfb['push'](_0x33fbfb['shift']());}catch(_0x5e3434){_0x33fbfb['push'](_0x33fbfb['shift']());}}}(a233_0x380d,0x880a3));import{join}from'path';import{Logger,LogLevel,FileHandler,ConsoleHandler,DefaultLogFormatter}from'./logger/index.js';import{getGlobalCacheDir}from'./global-cache.js';function a233_0x4867(_0x15f55f,_0x5afb19){_0x15f55f=_0x15f55f-0x105;const _0x380dc9=a233_0x380d();let _0x486729=_0x380dc9[_0x15f55f];return _0x486729;}export{LogLevel}from'./logger/index.js';function a233_0x380d(){const _0x4fa4ac=['debug','25YIuVlT','3358854wBDVBv','logger','485050lChpee','addHandler','trace','2238PfauAJ','7bhdIsB','getLogPath','tdx.log','40QoMtHH','117707JqRByq','fileHandler','warn','close','push','1581003bJNUKJ','INFO','logFileName','logLevel','isInitialized','110164vuHOwq','fileOnly','logDir','init','consoleHandler','tdx','Session\x20ended','info','error','15204002OzyCgj','2882udAoYD'];a233_0x380d=function(){return _0x4fa4ac;};return a233_0x380d();}export class TDXLogger{[a233_0x112b3c(0x123)];[a233_0x112b3c(0x105)];[a233_0x112b3c(0x106)];[a233_0x112b3c(0x122)];[a233_0x112b3c(0x112)];[a233_0x112b3c(0x11c)]=null;['consoleHandler']=null;constructor(_0x145f7e=LogLevel[a233_0x112b3c(0x121)],_0x3c9921=![],_0x26a5c9,_0x5594fe=a233_0x112b3c(0x119)){const _0x471573=a233_0x112b3c;this[_0x471573(0x123)]=_0x145f7e,this['fileOnly']=_0x3c9921,this['logDir']=_0x26a5c9||join(getGlobalCacheDir(),'logs'),this[_0x471573(0x122)]=_0x5594fe,this[_0x471573(0x112)]=Logger['of'](_0x471573(0x109));}async[a233_0x112b3c(0x107)](){const _0x5d58ed=a233_0x112b3c,_0x7edd7d=join(this['logDir'],this[_0x5d58ed(0x122)]);if(Logger[_0x5d58ed(0x124)]()){!this[_0x5d58ed(0x105)]&&(this['consoleHandler']=new ConsoleHandler({'minLevel':LogLevel[_0x5d58ed(0x121)],'colors':!![]}),Logger[_0x5d58ed(0x114)](this[_0x5d58ed(0x108)]));return;}this[_0x5d58ed(0x11c)]=new FileHandler({'filePath':_0x7edd7d});const _0x20d2d1=[this[_0x5d58ed(0x11c)]];!this[_0x5d58ed(0x105)]&&(this[_0x5d58ed(0x108)]=new ConsoleHandler({'minLevel':LogLevel[_0x5d58ed(0x121)],'colors':!![]}),_0x20d2d1[_0x5d58ed(0x11f)](this['consoleHandler'])),await Logger[_0x5d58ed(0x107)]({'defaultLevel':this['logLevel'],'handlers':_0x20d2d1,'formatter':new DefaultLogFormatter({'colors':!![]})});}[a233_0x112b3c(0x10f)](..._0x337f45){const _0x40ae28=a233_0x112b3c;this[_0x40ae28(0x112)][_0x40ae28(0x10f)](..._0x337f45);}['trace'](..._0x16e0fe){const _0x5f5d73=a233_0x112b3c;this[_0x5f5d73(0x112)][_0x5f5d73(0x115)](..._0x16e0fe);}['info'](..._0x2c1eda){const _0x1cc4e7=a233_0x112b3c;this[_0x1cc4e7(0x112)][_0x1cc4e7(0x10b)](..._0x2c1eda);}[a233_0x112b3c(0x11d)](..._0x188577){const _0xaa17f5=a233_0x112b3c;this[_0xaa17f5(0x112)][_0xaa17f5(0x11d)](..._0x188577);}[a233_0x112b3c(0x10c)](..._0x31666e){const _0x32b853=a233_0x112b3c;this['logger'][_0x32b853(0x10c)](..._0x31666e);}async[a233_0x112b3c(0x11e)](){const _0x33921e=a233_0x112b3c;this['logger'][_0x33921e(0x10b)](_0x33921e(0x10a)),await Logger['shutdown']();}[a233_0x112b3c(0x118)](){const _0x451d2c=a233_0x112b3c;return join(this[_0x451d2c(0x106)],this['logFileName']);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a234_0x2d4979=a234_0x48a7;(function(_0x366273,_0x27f8dd){const _0x5b2add=a234_0x48a7,_0x5ed14c=_0x366273();while(!![]){try{const _0x48198e=parseInt(_0x5b2add(0xb2))/0x1*(-parseInt(_0x5b2add(0xba))/0x2)+parseInt(_0x5b2add(0xb8))/0x3*(-parseInt(_0x5b2add(0xa7))/0x4)+parseInt(_0x5b2add(0xc0))/0x5+-parseInt(_0x5b2add(0xc9))/0x6*(parseInt(_0x5b2add(0xb0))/0x7)+-parseInt(_0x5b2add(0xbb))/0x8+parseInt(_0x5b2add(0xa9))/0x9+parseInt(_0x5b2add(0xca))/0xa;if(_0x48198e===_0x27f8dd)break;else _0x5ed14c['push'](_0x5ed14c['shift']());}catch(_0x50ecc0){_0x5ed14c['push'](_0x5ed14c['shift']());}}}(a234_0x520e,0x88d79));import{get}from'https';import{gt,valid}from'semver';function a234_0x520e(){const _0x3f6ebb=['unref','681770DmkuVb','last_version_check_next','toISOString','\x0aUpdate\x20available:\x20','statusCode','green','destroy','stable','channel','52866RjivtO','8334740EAARDH','getTime','HTTP\x20','now','https://registry.npmjs.org/@treasuredata/tdx','utils/version-check-next','latest','tdx\x20upgrade','Request\x20timeout','stderr','Update\x20available:','write','4nuezWg','data','9569196IoKdbw','tdx\x20upgrade\x20--next','cyan','latestVersion','end','version','\x0aRun:\x20','14VwQKfR','currentVersion','83303zDEMLI','Invalid\x20version\x20format','isTTY','next','lastCheck','read','1814076KAqqne','updateAvailable','4yJZzUg','5469176rFwydp','socket','dim','parse'];a234_0x520e=function(){return _0x3f6ebb;};return a234_0x520e();}import a234_0x2fc6df from'chalk';import{createGlobalCache}from'./global-cache.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_BASE=a234_0x2d4979(0xce),TIMEOUT_MS=0x7d0,stableVersionCache=createGlobalCache('last_version_check','utils/version-check'),nextVersionCache=createGlobalCache(a234_0x2d4979(0xc1),a234_0x2d4979(0xcf));function getCacheForChannel(_0x4d6bd9){const _0xd2c2d7=a234_0x2d4979;return _0x4d6bd9===_0xd2c2d7(0xb5)?nextVersionCache:stableVersionCache;}function readCache(_0x327927){const _0x2f251b=a234_0x2d4979;return getCacheForChannel(_0x327927)[_0x2f251b(0xb7)]()??null;}function writeCache(_0xc943e3,_0x355a19){const _0x1398a9=a234_0x2d4979;try{getCacheForChannel(_0x355a19)[_0x1398a9(0xa6)]({'lastCheck':new Date()[_0x1398a9(0xc2)](),'latestVersion':_0xc943e3});}catch{}}function isCacheValid(_0x160b28){const _0x1806a2=a234_0x2d4979;if(!_0x160b28)return![];const _0x5a95ab=new Date(_0x160b28[_0x1806a2(0xb6)])[_0x1806a2(0xcb)](),_0x3ab983=Date[_0x1806a2(0xcd)]();return _0x3ab983-_0x5a95ab<CACHE_DURATION_MS;}function a234_0x48a7(_0x52bdcd,_0x589b6e){_0x52bdcd=_0x52bdcd-0xa4;const _0x520eda=a234_0x520e();let _0x48a75d=_0x520eda[_0x52bdcd];return _0x48a75d;}export function fetchLatestVersion(_0x1229b7=a234_0x2d4979(0xc7)){const _0x3301b6=a234_0x2d4979,_0x16e3f7=_0x1229b7===_0x3301b6(0xb5)?_0x3301b6(0xb5):_0x3301b6(0xd0),_0x4ebae3=NPM_REGISTRY_BASE+'/'+_0x16e3f7;return new Promise((_0x4ad119,_0x3c08b6)=>{const _0x4c8e5a=_0x3301b6,_0x22ec92=get(_0x4ebae3,{'timeout':TIMEOUT_MS},_0x5c6872=>{const _0x5611c6=a234_0x48a7;if(_0x5c6872[_0x5611c6(0xc4)]!==0xc8){clearTimeout(_0x5e06fc),_0x3c08b6(new Error(_0x5611c6(0xcc)+_0x5c6872[_0x5611c6(0xc4)]));return;}let _0x2c16fa='';_0x5c6872['on'](_0x5611c6(0xa8),_0x1e9dbc=>{_0x2c16fa+=_0x1e9dbc;}),_0x5c6872['on'](_0x5611c6(0xad),()=>{const _0x35b3be=_0x5611c6;clearTimeout(_0x5e06fc);try{const _0x28c6cb=JSON[_0x35b3be(0xbe)](_0x2c16fa);if(!valid(_0x28c6cb[_0x35b3be(0xae)])){_0x3c08b6(new Error(_0x35b3be(0xb3)));return;}_0x4ad119(_0x28c6cb[_0x35b3be(0xae)]);}catch(_0x188040){_0x3c08b6(_0x188040);}});})['on']('error',_0x3b47f2=>{clearTimeout(_0x5e06fc),_0x3c08b6(_0x3b47f2);});_0x22ec92['on'](_0x4c8e5a(0xbc),_0x49f8f4=>{const _0x304a30=_0x4c8e5a;_0x49f8f4[_0x304a30(0xbf)]();});const _0x5e06fc=setTimeout(()=>{const _0x13e3e0=_0x4c8e5a;_0x22ec92[_0x13e3e0(0xc6)](),_0x3c08b6(new Error(_0x13e3e0(0xd2)));},TIMEOUT_MS);_0x5e06fc[_0x4c8e5a(0xbf)]();});}export async function checkForUpdate(_0x16a2cb,_0x48ffbb=a234_0x2d4979(0xc7)){const _0x6d2720=a234_0x2d4979;try{const _0x3377cf=readCache(_0x48ffbb);if(isCacheValid(_0x3377cf)){const _0xb835ac=gt(_0x3377cf['latestVersion'],_0x16a2cb);return{'updateAvailable':_0xb835ac,'currentVersion':_0x16a2cb,'latestVersion':_0x3377cf[_0x6d2720(0xac)],'channel':_0x48ffbb};}const _0x4c6582=await fetchLatestVersion(_0x48ffbb);writeCache(_0x4c6582,_0x48ffbb);const _0x22366d=gt(_0x4c6582,_0x16a2cb);return{'updateAvailable':_0x22366d,'currentVersion':_0x16a2cb,'latestVersion':_0x4c6582,'channel':_0x48ffbb};}catch{return null;}}export function displayUpdateNotification(_0x22a5e8){const _0x4e73b1=a234_0x2d4979;if(!_0x22a5e8[_0x4e73b1(0xb9)])return;const _0x471660=_0x22a5e8[_0x4e73b1(0xc8)]===_0x4e73b1(0xb5)?_0x4e73b1(0xaa):_0x4e73b1(0xd1),_0x17d6ba=process[_0x4e73b1(0xa4)][_0x4e73b1(0xb4)]&&!process.env.NO_COLOR,_0x292b59=_0x17d6ba?a234_0x2fc6df['gray']('→'):'→',_0x477780=_0x17d6ba?a234_0x2fc6df[_0x4e73b1(0xbd)](_0x22a5e8[_0x4e73b1(0xb1)]):_0x22a5e8[_0x4e73b1(0xb1)],_0x358a83=_0x17d6ba?a234_0x2fc6df[_0x4e73b1(0xc5)](_0x22a5e8[_0x4e73b1(0xac)]):_0x22a5e8[_0x4e73b1(0xac)],_0x1dd572=_0x17d6ba?a234_0x2fc6df[_0x4e73b1(0xab)](_0x471660):_0x471660,_0x54622a=_0x17d6ba?'\x0a'+a234_0x2fc6df['yellow'](_0x4e73b1(0xa5))+'\x20'+_0x477780+'\x20'+_0x292b59+'\x20'+_0x358a83+'\x0a'+a234_0x2fc6df[_0x4e73b1(0xbd)]('Run:')+'\x20'+_0x1dd572+'\x0a':_0x4e73b1(0xc3)+_0x477780+'\x20'+_0x292b59+'\x20'+_0x358a83+_0x4e73b1(0xaf)+_0x1dd572+'\x0a';process[_0x4e73b1(0xa4)][_0x4e73b1(0xa6)](_0x54622a);}
|